9e538d2809
二、门禁与唤醒(新插件 dsh-plugin-team-ledger 0.2.0)
宿主 Agent Teams 缺两块能力,补在独立仓
D:/Code/AI/dsh-plugin-team-ledger:
- 状态存放:<工作区>/.dsh/team/gate.jsonl 追加账本,记验收
清单、实测证据、认领历史,跨重启存活;canonical JSON +
fsync,坏尾行截断恢复。
- 唤醒模型:门禁推进后按事件计划唤醒下一责任人,借活体
Lead 作 caller 走宿主 sendMessage;无定时器;30 分钟滑动
窗口限 4 次防复活风暴。
- 验收独立性由机器强制:执行人/历史认领者不能 accept,
checklist 逐项 passed=true 缺一不可。
- team_member_revive(Lead 专用):成员模型路由死亡后的
复活通道——可换 provider/model,再经 subagents.sendMessage
冷恢复唤醒,绕过宿主 roster 的 phase=active 门禁。
二、角色绑定跨重启还原(roles fork 0.5.2)
persona 与工具白名单只有运行中 agent 的内存态,宿主重启后
冷恢复的成员既无 persona 也无白名单——实测出现 doc-writer
成员带全量工具面(qq_*/ImageGen),属静默权限放大。改为
注入成功时持久化 childId -> {roleId, cwd} 到
~/.dsh/role-inject-bindings.json,并在 agent/created 时重放。
追加 team_member_rebind 补绑定,覆盖 0.5.2 之前已存在的成员。
三、配套
- .dsh/roles 八个角色白名单加入门禁工具;AGENTS.md 委派策略
补门禁/复活/重绑三套操作口径。
- docs/环境与部署/子Agent角色自动注入实现说明.md 新增
§5.1,记录绑定机制、存量成员缺口与「成员自省不可全信」的
台架教训。
74 lines
1.9 KiB
JSON
74 lines
1.9 KiB
JSON
{
|
|
"name": "dsh-plugin-subagent-roles",
|
|
"version": "0.5.2-team-fork",
|
|
"description": "File-defined subagent roles for DeepSeek Harness with Agent Teams integration: role files, catalog, tool filtering, tool-call budget, and automatic persona injection for teammates via @role:<id> marker in spawn_teammate prompt.",
|
|
"type": "module",
|
|
"main": "lib/index.js",
|
|
"exports": {
|
|
".": "./lib/index.js",
|
|
"./client": "./lib/client.js",
|
|
"./package.json": "./package.json"
|
|
},
|
|
"files": [
|
|
"lib",
|
|
"scripts",
|
|
"examples",
|
|
"cordis.patch.yml",
|
|
"README.md",
|
|
"README.zh.md",
|
|
"CHANGELOG.md",
|
|
"LICENSE"
|
|
],
|
|
"scripts": {
|
|
"test": "node --test",
|
|
"lint": "for f in lib/*.js scripts/*.mjs test/*.js; do node --check \"$f\" || exit 1; done"
|
|
},
|
|
"dsh": {
|
|
"bundle": {
|
|
"patch": "./cordis.patch.yml"
|
|
},
|
|
"client": {
|
|
"platform": "web"
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@deepseek-ai/schemastery": "^3.18.2",
|
|
"yaml": "^2.5.0"
|
|
},
|
|
"peerDependencies": {
|
|
"@deepseek-ai/cordis": "^4.0.5",
|
|
"@deepseek-ai/dsh-llm": "^0.2.1-rc.1",
|
|
"@deepseek-ai/dsh-subagent": "^0.2.1-rc.1",
|
|
"@deepseek-ai/dsh-tools": "^0.2.1-rc.1"
|
|
},
|
|
"devDependencies": {
|
|
"@deepseek-ai/dsh-client-ui-theme": "0.2.1-rc.2",
|
|
"@deepseek-ai/dsh-llm": "0.2.1-rc.2",
|
|
"@deepseek-ai/dsh-session": "0.2.1-rc.2",
|
|
"@deepseek-ai/dsh-subagent": "0.2.1-rc.2",
|
|
"@deepseek-ai/dsh-tool-subagent": "0.2.1-rc.2",
|
|
"@deepseek-ai/dsh-tools": "0.2.1-rc.2"
|
|
},
|
|
"engines": {
|
|
"node": ">=20",
|
|
"dsh": "^0.2.1-rc.1"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/troytse/dsh-plugin-subagent-roles.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/troytse/dsh-plugin-subagent-roles/issues"
|
|
},
|
|
"homepage": "https://github.com/troytse/dsh-plugin-subagent-roles",
|
|
"keywords": [
|
|
"dsh",
|
|
"deepseek-harness",
|
|
"cordis",
|
|
"plugin",
|
|
"subagent",
|
|
"roles"
|
|
],
|
|
"license": "MIT"
|
|
}
|