@zhuifengqug/dsh-ant 0.0.0-stage → 0.1.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +70 -2
  3. package/assets/agent-teams/action-celebrating-v2.png +0 -0
  4. package/assets/agent-teams/action-reporting-v2.png +0 -0
  5. package/assets/agent-teams/action-sending-v2.png +0 -0
  6. package/assets/agent-teams/action-sleeping-v2.png +0 -0
  7. package/assets/agent-teams/action-thinking-v2.png +0 -0
  8. package/assets/agent-teams/action-working-v2.png +0 -0
  9. package/assets/agent-teams/member-data-v2.png +0 -0
  10. package/assets/agent-teams/member-designer-v2.png +0 -0
  11. package/assets/agent-teams/member-docs-v2.png +0 -0
  12. package/assets/agent-teams/member-engineer-v2.png +0 -0
  13. package/assets/agent-teams/member-operator-v2.png +0 -0
  14. package/assets/agent-teams/member-qa-v2.png +0 -0
  15. package/assets/agent-teams/member-researcher-v2.png +0 -0
  16. package/assets/agent-teams/member-security-v2.png +0 -0
  17. package/assets/agent-teams/team-lead-v2.png +0 -0
  18. package/compatibility.json +91 -0
  19. package/cordis.patch.yml +21 -0
  20. package/lib/artifacts.js +465 -0
  21. package/lib/capabilities.js +110 -0
  22. package/lib/client/ActivityPanel.js +881 -0
  23. package/lib/client/AgentTeamsCard.js +63 -0
  24. package/lib/client/StagingPlanEditor.js +493 -0
  25. package/lib/client/TeamChatEntry.js +22 -0
  26. package/lib/client/WorkspaceActivity.js +105 -0
  27. package/lib/client/activity-model.js +279 -0
  28. package/lib/client/activity-monitor.js +404 -0
  29. package/lib/client/agent-teams-card-definition.js +189 -0
  30. package/lib/client/artwork.js +43 -0
  31. package/lib/client/icons.js +18 -0
  32. package/lib/client/index.js +86 -0
  33. package/lib/client/locales.js +455 -0
  34. package/lib/client/panel-geometry.js +143 -0
  35. package/lib/client/session-navigation.js +39 -0
  36. package/lib/client/workspace-state.js +43 -0
  37. package/lib/client.js +4896 -0
  38. package/lib/client.js.map +1 -0
  39. package/lib/command.js +147 -0
  40. package/lib/event-types.js +12 -0
  41. package/lib/events.js +60 -0
  42. package/lib/git-artifact-stamp.json +5 -0
  43. package/lib/harness-compat.js +454 -0
  44. package/lib/index.js +531 -0
  45. package/lib/lineage.js +198 -0
  46. package/lib/mailbox.js +209 -0
  47. package/lib/members.js +1050 -0
  48. package/lib/profiles.js +573 -0
  49. package/lib/quality-gates.js +1914 -0
  50. package/lib/scheduler.js +471 -0
  51. package/lib/snapshot.js +299 -0
  52. package/lib/state.js +1308 -0
  53. package/lib/tool-names.js +12 -0
  54. package/lib/tool-policies.js +187 -0
  55. package/lib/tools.js +2764 -0
  56. package/lib/types/artifacts.d.ts +69 -0
  57. package/lib/types/capabilities.d.ts +13 -0
  58. package/lib/types/client/ActivityPanel.d.ts +78 -0
  59. package/lib/types/client/AgentTeamsCard.d.ts +35 -0
  60. package/lib/types/client/StagingPlanEditor.d.ts +17 -0
  61. package/lib/types/client/TeamChatEntry.d.ts +4 -0
  62. package/lib/types/client/WorkspaceActivity.d.ts +22 -0
  63. package/lib/types/client/activity-model.d.ts +176 -0
  64. package/lib/types/client/activity-monitor.d.ts +223 -0
  65. package/lib/types/client/agent-teams-card-definition.d.ts +108 -0
  66. package/lib/types/client/artwork.d.ts +19 -0
  67. package/lib/types/client/icons.d.ts +5 -0
  68. package/lib/types/client/index.d.ts +17 -0
  69. package/lib/types/client/locales.d.ts +459 -0
  70. package/lib/types/client/panel-geometry.d.ts +49 -0
  71. package/lib/types/client/session-navigation.d.ts +40 -0
  72. package/lib/types/client/workspace-state.d.ts +19 -0
  73. package/lib/types/command.d.ts +25 -0
  74. package/lib/types/event-types.d.ts +153 -0
  75. package/lib/types/events.d.ts +37 -0
  76. package/lib/types/harness-compat.d.ts +176 -0
  77. package/lib/types/index.d.ts +100 -0
  78. package/lib/types/lineage.d.ts +92 -0
  79. package/lib/types/mailbox.d.ts +13 -0
  80. package/lib/types/members.d.ts +322 -0
  81. package/lib/types/profiles.d.ts +130 -0
  82. package/lib/types/quality-gates.d.ts +450 -0
  83. package/lib/types/scheduler.d.ts +79 -0
  84. package/lib/types/snapshot.d.ts +196 -0
  85. package/lib/types/state.d.ts +289 -0
  86. package/lib/types/tool-names.d.ts +4 -0
  87. package/lib/types/tool-policies.d.ts +119 -0
  88. package/lib/types/tools.d.ts +118 -0
  89. package/lib/types/types.d.ts +367 -0
  90. package/lib/types/web-routes.d.ts +21 -0
  91. package/lib/types/workspace-audit-service.d.ts +35 -0
  92. package/lib/types/workspace-audit-worker.d.ts +1 -0
  93. package/lib/types/workspace-audit.d.ts +27 -0
  94. package/lib/types.js +22 -0
  95. package/lib/web-routes.js +117 -0
  96. package/lib/workspace-audit-service.js +165 -0
  97. package/lib/workspace-audit-worker.js +11 -0
  98. package/lib/workspace-audit.js +53 -0
  99. package/package.json +261 -4
  100. package/pnpm-workspace.yaml +321 -0
  101. package/release-notes/v0.1.10.md +48 -0
  102. package/release-notes/v0.1.11.md +52 -0
  103. package/release-notes/v0.1.12.md +54 -0
  104. package/release-notes/v0.1.13.md +60 -0
  105. package/release-notes/v0.1.14.md +68 -0
  106. package/release-notes/v0.1.15-alpha.1.md +61 -0
  107. package/release-notes/v0.1.15.md +57 -0
  108. package/release-notes/v0.1.16-rc.1.md +33 -0
  109. package/release-notes/v0.1.16-rc.2.md +33 -0
  110. package/release-notes/v0.1.16-rc.3.md +33 -0
  111. package/release-notes/v0.1.17-rc.1.md +20 -0
  112. package/release-notes/v0.1.17.md +19 -0
  113. package/release-notes/v0.1.18.md +21 -0
  114. package/release-notes/v0.1.19.md +20 -0
  115. package/release-notes/v0.1.20.md +20 -0
  116. package/release-notes/v0.1.21-rc.1.md +14 -0
  117. package/release-notes/v0.1.21.md +23 -0
  118. package/release-notes/v0.1.22-rc.1.md +24 -0
  119. package/release-notes/v0.1.22.md +18 -0
  120. package/release-notes/v0.1.23.md +34 -0
  121. package/release-notes/v0.1.24-rc.1.md +13 -0
  122. package/release-notes/v0.1.24.md +18 -0
  123. package/release-notes/v0.1.25.md +16 -0
  124. package/release-notes/v0.1.26.md +19 -0
  125. package/release-notes/v0.1.27.md +42 -0
  126. package/release-notes/v0.1.28.md +45 -0
  127. package/release-notes/v0.1.29.md +23 -0
  128. package/scripts/compatibility.mjs +188 -0
  129. package/scripts/doctor.mjs +139 -0
  130. package/scripts/legacy-session-source-repair.mjs +344 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 程序员阿江(Relakkes)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,71 @@
1
- # Temporary Holding Version
1
+ # 玄驹
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ DeepSeek Harness 的多智能体团队插件。一句话把当前会话变成队长:拆任务、派队员、按依赖自动调度,Web 界面里看得见谁在干什么。
4
+
5
+ 包名 `@zhuifengqug/dsh-ant`,宿主侧插件 id 仍是 `agent-teams`。
6
+
7
+ ## 与上游的关系
8
+
9
+ 本仓库是 [NanmiCoder/dsh-agent-teams](https://github.com/NanmiCoder/dsh-agent-teams) 的分支(fork),基线 `0.1.29`。上游的功能照单全收,本分支只叠加四件事,全部有测试兜底:
10
+
11
+ - **中文语言约束**:团队提示词与全部工具参数描述要求队名、成员名、任务标题与描述、计划摘要一律用当前对话语言书写,工具名、id、路径、代码标识符保留原文。
12
+ - **归档团队永久删除**:归档列表里可以真正删掉一个团队(先精确匹配 id,再绑定归属会话,两击确认),不再只能堆积。
13
+ - **无进展标记**:快照按滑动窗口算出 `noProgress` / `noProgressForMs`,卡住的任务可被观测;只读,不改派发。
14
+ - **验证只重跑失败命令 + 证据绑定**:质量门禁的复核只重跑失败或缺的命令,验收证据打上 attempt 戳,跨代证据在闸门前就被拒。
15
+
16
+ 路由决策、难度评分卡、成本汇总、routeAudit 这几块上游本来就没有,本分支也不引入。
17
+
18
+ ## 安装
19
+
20
+ 本地开发目录安装(`link:` 指向本仓库):
21
+
22
+ ```powershell
23
+ dsh plugin --profile desktop add D:\dsh-workspaces\dev\虫珀\玄驹
24
+ ```
25
+
26
+ 装完在 profile 的 `dsh.profile.bundles` 里出现 `@zhuifengqug/dsh-ant`,重启 DSH Desktop 生效。
27
+
28
+ ## 用起来
29
+
30
+ 自然语言即可。说「用 AgentTeams 做 X」,队长会:
31
+
32
+ 1. 调用 `agent_teams_create` 提交团队计划(默认待审批)。
33
+ 2. 你在 Web 计划面板里确认成员、模型与任务图,明确批准后开跑。
34
+ 3. 队长派活、队员认领、依赖满足即调度;你随时可以问 `agent_teams_status`。
35
+
36
+ 宿主侧共 14 个协调工具(`create` / `approve` / `edit_plan` / `add_member` / `remove_member` / `create_task` / `reassign_task` / `claim_task` / `update_task` / `amend_task` / `send_message` / `status` / `resume` / `delete`),队员子集是其中 4 个。
37
+
38
+ ## 界面
39
+
40
+ - 会话标题栏的团队入口,点开是活动面板:成员、模型、任务依赖、收件箱。
41
+ - 右栏标签与工作区完成卡、收件箱卡。
42
+ - 团队状态存在 `<工作区>/<stateDir>/<团队 id>/` 下(`team.json` + `inbox/*.jsonl`)。
43
+
44
+ ## 文档
45
+
46
+ - [使用说明](./docs/usage.md)
47
+ - [质量门禁](./docs/quality-gates.md)
48
+ - [验证指南](./docs/verification-guide.md)
49
+ - [渐进披露](./docs/progressive-loading.md)
50
+ - [维护流程](./docs/maintenance-workflow.md)
51
+ - [插件开发](./docs/developing-dsh-plugins.md)
52
+ - [README 写作规范](./docs/readme-writing-guide.md)
53
+ - [贡献指南](./CONTRIBUTING.md)
54
+
55
+ ## 验证
56
+
57
+ ```powershell
58
+ npx pnpm run typecheck
59
+ npx pnpm run build
60
+ npx pnpm run verify
61
+ ```
62
+
63
+ `verify` 串起契约、质量门禁、兼容性、客户端与 fork 自有四处改动的全部用例,末段会校验 `lib/` 与源码一致(`git-artifacts`)。
64
+
65
+ ## 兼容性
66
+
67
+ 宿主最低版本由 [`compatibility.json`](./compatibility.json) 里最旧的兼容项派生:推荐 `0.2.1-rc.2`,已在 `0.2.2-rc.1`(preview)上验证。当前开发的宿主是 `0.2.2-rc.1`。
68
+
69
+ ## 许可
70
+
71
+ MIT,见 [LICENSE](./LICENSE)。上游版权归 NanmiCoder,本分支改动同样以 MIT 发布。
@@ -0,0 +1,91 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "recommendedHost": "0.2.1-rc.2",
4
+ "previewTag": "next",
5
+ "supportedHosts": [
6
+ {
7
+ "version": "0.2.2-rc.1",
8
+ "track": "preview"
9
+ },
10
+ {
11
+ "version": "0.2.1-rc.3",
12
+ "track": "preview"
13
+ },
14
+ {
15
+ "version": "0.2.1-rc.2",
16
+ "track": "recommended"
17
+ },
18
+ {
19
+ "version": "0.2.1-rc.1",
20
+ "track": "legacy",
21
+ "platforms": [
22
+ "ubuntu-latest"
23
+ ],
24
+ "legacyDirectInstallReason": "Historical direct-fixture coverage only; native plugin-manager installation has not been qualified for this target."
25
+ },
26
+ {
27
+ "version": "0.2.0-rc.2",
28
+ "track": "legacy",
29
+ "platforms": [
30
+ "ubuntu-latest"
31
+ ],
32
+ "legacyDirectInstallReason": "Historical direct-fixture coverage only; native plugin-manager installation has not been qualified for this target."
33
+ },
34
+ {
35
+ "version": "0.1.7-rc.2",
36
+ "track": "legacy",
37
+ "platforms": [
38
+ "ubuntu-latest"
39
+ ],
40
+ "legacyDirectInstallReason": "Historical direct-fixture coverage only; native plugin-manager installation has not been qualified for this target."
41
+ },
42
+ {
43
+ "version": "0.1.5-rc.3",
44
+ "track": "legacy",
45
+ "platforms": [
46
+ "ubuntu-latest"
47
+ ],
48
+ "legacyDirectInstallReason": "Historical direct-fixture coverage only; native plugin-manager installation has not been qualified for this target."
49
+ },
50
+ {
51
+ "version": "0.1.5-rc.2",
52
+ "track": "legacy",
53
+ "platforms": [
54
+ "ubuntu-latest"
55
+ ],
56
+ "legacyDirectInstallReason": "Historical direct-fixture coverage only; native plugin-manager installation has not been qualified for this target."
57
+ },
58
+ {
59
+ "version": "0.1.5-rc.1",
60
+ "track": "legacy",
61
+ "platforms": [
62
+ "ubuntu-latest"
63
+ ],
64
+ "legacyDirectInstallReason": "Historical direct-fixture coverage only; native plugin-manager installation has not been qualified for this target."
65
+ },
66
+ {
67
+ "version": "0.1.2-rc.1",
68
+ "track": "legacy",
69
+ "platforms": [
70
+ "ubuntu-latest"
71
+ ],
72
+ "legacyDirectInstallReason": "Historical direct-fixture coverage only; native plugin-manager installation has not been qualified for this target."
73
+ },
74
+ {
75
+ "version": "0.1.2-alpha.5",
76
+ "track": "preview",
77
+ "platforms": [
78
+ "ubuntu-latest"
79
+ ],
80
+ "legacyDirectInstallReason": "Historical direct-fixture coverage only; native plugin-manager installation has not been qualified for this target."
81
+ },
82
+ {
83
+ "version": "0.1.2-alpha.2",
84
+ "track": "legacy",
85
+ "platforms": [
86
+ "ubuntu-latest"
87
+ ],
88
+ "legacyDirectInstallReason": "Historical direct-fixture coverage only; native plugin-manager installation has not been qualified for this target."
89
+ }
90
+ ]
91
+ }
@@ -0,0 +1,21 @@
1
+ # dsh-agent-teams bundle patch: mounts the agent-teams plugin into the host
2
+ # composition of a dsh profile. The plugin registers its `agent_teams_*` tools
3
+ # into the shared `tools` registry and one usage section into the global
4
+ # system prompt, so every session of the profile can drive AgentTeams through
5
+ # natural language ("用 AgentTeams 做 X").
6
+ #
7
+ # Install: `dsh plugin --profile <name> add <this package>` (npm or a local
8
+ # path). The `dsh plugin` command pnpm-installs the package into the profile
9
+ # and reconciles it into the profile's `dsh.profile.bundles` layer list.
10
+ - insert:
11
+ - id: agent-teams
12
+ # Node-resolvable package name — must stay in sync with package.json
13
+ # `name`. Quoted because `@` is a reserved indicator in YAML and cannot
14
+ # open a plain scalar.
15
+ name: '@zhuifengqug/dsh-ant'
16
+ config:
17
+ # Team state lives under `<session workspace>/<stateDir>/<teamId>/`
18
+ # (team.json + inbox/*.jsonl mailboxes).
19
+ stateDir: .agent-teams
20
+ # Provider used to spawn member subagents ('spawn' or 'fork').
21
+ memberProvider: spawn