22 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 小壹智能体运行时(apps/detail-agent-pi)
Pi SDK 驱动的本机 Node 进程:管理会话、工具循环与目标续跑;画布与界面仍是 Rust 客户端。随包运行时固定 Node 24.22.1 及同线后续安全版本(`src/runtime-policy.mjs` 校验)。
## 边界
- 凭据只在 Rust 侧:Node 只连原生受限模型桥,不持有 Key。
- 结果未知的付费或写入请求只按原请求编号只读核查,不自动重发;不清空旧记录来绕过检查。
- 用户接手、人工修改或切换文档后停止剩余自动写入。
- 对用户可见的文案只用产品术语(小壹、画布、工作台、制作助手),由 `test/whitelabel.test.mjs` 强制。
## 开发
```powershell
cd apps/detail-agent-pi
npm ci --ignore-scripts
npm test # node --test test/*.test.mjs
npm run test:skill-runtime
```
Skill 脚本镜像:首次需要本机 `bash:5.2`、`python:3.13-alpine` 镜像和 Pillow 12.3.0 的 musl wheel,构建命令见 `package.json` 的 `skill-runtime:build`。
打包与 Windows 发布见 `docs/development/xiaoyi/windows-update-release.md`。真实模型验收会消耗个人 Key 额度,只在明确验收时运行;尝试记录用独占文件防止误重跑,遇到未知只读恢复,不能删除尝试记录再提交。