Files
lobehub__lobehub/packages/device-control/package.json
Innei 07fb752547 🐛 fix(portal): guide outside-workspace HTML publishing (#19338)
* 🐛 fix(portal): guide outside-workspace HTML publishing

* 💄 style(portal): keep external-read consent above footer

* ✨ feat(portal): confirm external file access

* 💄 style(portal): align external-read consent typography

* 🐛 fix(portal): harden outside-workspace publishing

* 🐛 fix: secure external workspace HTML publishing

* 🐛 fix(portal): bound external publish reads and honour local base hrefs

- reject an external publish asset by `stat` size before reading it, on both
  the device-control and Electron transports, instead of letting the renderer
  find out after a multi-gigabyte base64 round trip
- keep a `<base href>` that escapes the workspace, so its refs are reported as
  real outside-workspace dependencies instead of resolving back inside
- drop a local `<base>` from the relocated copy, whose resource hrefs are
  already rewritten relative to its own directory

Claude-Session: https://claude.ai/code/session_017KB2isGJ1RDpSaHiv88Xto

* 🔧 chore(deps): register html-artifact in the standalone app workspaces

`apps/cli` and `apps/desktop` enumerate their workspace packages instead of
globbing, so `packages/device-control`'s new `@lobechat/html-artifact`
dependency could not resolve there.

Claude-Session: https://claude.ai/code/session_017KB2isGJ1RDpSaHiv88Xto
2026-09-11 15:58:31 +08:00

32 lines
869 B
JSON

{
"name": "@lobechat/device-control",
"version": "1.0.0",
"private": true,
"sideEffects": false,
"exports": {
".": "./src/index.ts",
"./file-preview": "./src/filePreview.ts",
"./project-file-index": "./src/projectFileIndex.ts",
"./skill-directory": "./src/skillDirectory.ts",
"./workspace": "./src/workspace.ts"
},
"main": "./src/index.ts",
"types": "./src/index.ts",
"scripts": {
"test": "bunx vitest run --silent='passed-only'",
"test:coverage": "bunx vitest run --coverage"
},
"dependencies": {
"@lobechat/heterogeneous-agents": "workspace:*",
"@lobechat/html-artifact": "workspace:*",
"@lobechat/local-file-shell": "workspace:*",
"@lobechat/utils": "workspace:*",
"fast-glob": "^3.3.3",
"fflate": "^0.8.3",
"gray-matter": "^4.0.3"
},
"devDependencies": {
"vitest": "5.0.0"
}
}