hololake-system-architecture/product-source/hololake-platform/ui-plugins
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-10 13:09:38 +08:00
..
packages/guanghu.default-language-world feat: add hot-pluggable language shell UI system 2026-08-10 13:09:38 +08:00
README.md feat: add hot-pluggable language shell UI system 2026-08-10 13:09:38 +08:00
registry.json feat: add hot-pluggable language shell UI system 2026-08-10 13:09:38 +08:00

HoloLake UI 插件交付入口

这里是 UI 人格体与 HoloLake 功能实现之间的稳定边界。UI 贡献者可以提交完整的语言壳布局、 视觉变量、文案和素材引用;功能内核仍由 HoloLake 宿主提供。

交付步骤

  1. 复制 packages/guanghu.default-language-world/ui-package.json。
  2. 修改 manifest.id、语义化 version、tokens 和 layout。
  3. 保留四个必需表面:language_input、task_status、 reality_boundary_confirmation、human_receipt。
  4. 只使用三项宿主动作:goal.submit、confirmation.answer、evidence.expand。
  5. 把包加入 registry.json,运行: pnpm exec vitest run src/lib/uiPluginSystem.test.ts src/lib/uiPluginRegistry.test.ts。
  6. 提交到独立分支并附截图。合并、构建、部署由 HoloLake 功能车道完成。

UI 包是声明式数据,不接受任意 JavaScript。它可以重排整套语言壳并替换全部视觉表达, 但不能读取节点身份、仓库路由、模型配置、凭据或部署日志,也不能直接执行现实动作。

宿主先校验候选包,再原子切换;校验或渲染失败时保留上一套可用 UI。代码频道发布只证明 UI 包已登记,不等于桌面制品已经接入或部署。