{"_id":"@agent-earth/workspace-ui","name":"@agent-earth/workspace-ui","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.2":{"name":"@agent-earth/workspace-ui","version":"0.0.2","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","publishConfig":{"registry":"https://geocode.geovisearth.com/api/v4/projects/633/packages/npm/"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./styles.css":"./dist/index.css"},"dependencies":{"echarts":"^6.0.0"},"devDependencies":{"@types/node":"^22.0.0","@vitejs/plugin-vue":"^5.2.0","typescript":"^5.8.0","vite":"^6.0.0","vue":"^3.5.0","vue-tsc":"^2.2.0"},"peerDependencies":{"vue":"^3.5.0"},"scripts":{"build":"pnpm clean && vue-tsc --declaration --emitDeclarationOnly --outDir dist --noEmit false --composite false && vite build","dev":"vite build --watch","clean":"rimraf dist","typecheck":"vue-tsc -p tsconfig.typecheck.json"},"_id":"@agent-earth/workspace-ui@0.0.2","description":"可嵌入式工作区 UI 运行时。提供：","_integrity":"sha512-K9HLtjG42X7E2W3giZA0FhpJRkzh4Plhc3PMMCxMy5BtbwoN79UG0cftXafLpMOMCNwdxZrA+MvnSTHk+XDYiA==","_resolved":"C:\\Users\\Lenovo\\AppData\\Local\\Temp\\agent-earth-npm-publish-1786446964\\agent-earth-workspace-ui-0.0.2.tgz","_from":"file:C:/Users/Lenovo/AppData/Local/Temp/agent-earth-npm-publish-1786446964/agent-earth-workspace-ui-0.0.2.tgz","_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-K9HLtjG42X7E2W3giZA0FhpJRkzh4Plhc3PMMCxMy5BtbwoN79UG0cftXafLpMOMCNwdxZrA+MvnSTHk+XDYiA==","shasum":"387378b622bd47de21d4c08567f2bb4e98e34209","tarball":"https://registry.npmjs.org/@agent-earth/workspace-ui/-/workspace-ui-0.0.2.tgz","fileCount":38,"unpackedSize":33640,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDjpy3G3F4T0NfTnZToG0LN3Vax6F2ZNA9PQYl0SAE5YwIgPAEAFrkQWSulSZqU7Ya69OVQCu65g8VUVwbut/8Cn5k="}]},"_npmUser":{"name":"asun01","email":"452212601@qq.com"},"directories":{},"maintainers":[{"name":"asun01","email":"452212601@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/workspace-ui_0.0.2_1786447388189_0.26672376357637595"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-11T11:23:08.074Z","0.0.2":"2026-08-11T11:23:08.337Z","modified":"2026-08-11T11:23:08.638Z"},"maintainers":[{"name":"asun01","email":"452212601@qq.com"}],"description":"可嵌入式工作区 UI 运行时。提供：","readme":"# @agent-earth/workspace-ui\r\n\r\n可嵌入式工作区 UI 运行时。提供：\r\n\r\n- 地球上方的动态 UI 浮层\r\n- ECharts 面板\r\n- HTML / iframe 面板\r\n- 可复用的工作区状态控制器\r\n\r\n## 场景 1: 预览壳\r\n\r\n```ts\r\nimport { createWorkspaceController, WorkspaceSurface } from '@agent-earth/workspace-ui';\r\n```\r\n\r\n把 `WorkspaceSurface` 叠加到 Cesium 容器上，收到命令后把 widget 塞进 controller。\r\n\r\n## 场景 2: 用户自己的 Cesium 工程\r\n\r\n```ts\r\nimport { createWorkspaceController, WorkspaceOverlay } from '@agent-earth/workspace-ui';\r\n```\r\n\r\n宿主项目自己提供 Cesium Viewer，workspace-ui 只负责渲染 overlay 和 widget。\r\n\r\n## 场景 3: iframe 页面\r\n\r\n```ts\r\nworkspace.upsertWidget({\r\n  id: 'hermes-page',\r\n  kind: 'iframe',\r\n  title: 'Hermes Page',\r\n  layout: { x: 24, y: 24, width: 960, height: 640 },\r\n  src: 'http://hermes-agent.local/page',\r\n  sandbox: 'allow-scripts allow-forms allow-same-origin',\r\n});\r\n```\r\n\r\niframe 面板可以直接叠加在地球或独立宿主上。\r\n","readmeFilename":"README.md","_rev":"1-ed9b36bae5918c23e2c9b23625b951cc"}