@fitlab-ai/agent-infra 0.9.10 → 0.9.12

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 (375) hide show
  1. package/README.md +19 -9
  2. package/README.zh-CN.md +19 -9
  3. package/bin/cli.ts +17 -4
  4. package/dist/bin/cli.js +19 -4
  5. package/dist/bin/internal-cli.js +55 -4
  6. package/dist/lib/agent-client.js +0 -1
  7. package/dist/lib/agent-clients/adapters/codex-lifecycle/build-identity.js +71 -10
  8. package/dist/lib/agent-clients/adapters/opencode-sandbox.js +0 -4
  9. package/dist/lib/agent-clients/adapters/traecli.js +7 -8
  10. package/dist/lib/agent-clients/config.js +14 -99
  11. package/dist/lib/agent-clients/reconcile.js +1 -11
  12. package/dist/lib/agent-clients/schema.js +5 -4
  13. package/dist/lib/agent-clients/tokens.js +5 -15
  14. package/dist/lib/decide.js +14 -30
  15. package/dist/lib/defaults.json +8 -0
  16. package/dist/lib/git/workflow.js +43 -1
  17. package/dist/lib/init.js +3 -2
  18. package/dist/lib/internal/git-workflow.js +8 -1
  19. package/dist/lib/internal/platform-pr.js +8 -2
  20. package/dist/lib/internal/release-workflow.js +0 -1
  21. package/dist/lib/internal/task-delivery.js +59 -0
  22. package/dist/lib/internal/task-finalization.js +19 -9
  23. package/dist/lib/internal/task-ledger.js +8 -2
  24. package/dist/lib/internal/task-lifecycle.js +17 -93
  25. package/dist/lib/internal/task-orchestration.js +30 -216
  26. package/dist/lib/internal/task-validate.js +2 -1
  27. package/dist/lib/merge.js +205 -103
  28. package/dist/lib/platform/github-client.js +7 -1
  29. package/dist/lib/platform/pr-checks.js +8 -5
  30. package/dist/lib/platform/pr-summary.js +12 -8
  31. package/dist/lib/platform/pull-requests.js +393 -91
  32. package/dist/lib/platform/verification-required.js +13 -2
  33. package/dist/lib/platform/verification-sync.js +9 -4
  34. package/dist/lib/pr-review/evidence-grading.js +12 -4
  35. package/dist/lib/process-data/normalize.js +2 -9
  36. package/dist/lib/run/host.js +46 -16
  37. package/dist/lib/sandbox/agent-client-reconciler.js +4 -12
  38. package/dist/lib/sandbox/commands/create.js +3 -3
  39. package/dist/lib/sandbox/commands/enter.js +18 -4
  40. package/dist/lib/sandbox/config.js +8 -12
  41. package/dist/lib/sandbox/control/executor.js +131 -39
  42. package/dist/lib/sandbox/control/lifecycle.js +55 -24
  43. package/dist/lib/sandbox/control/server.js +18 -16
  44. package/dist/lib/sandbox/mounts.js +3 -2
  45. package/dist/lib/sandbox/recovery.js +123 -22
  46. package/dist/lib/sandbox/workspace-identity.js +14 -0
  47. package/dist/lib/sandbox/workspace-view.js +8 -9
  48. package/dist/lib/self-update.js +278 -0
  49. package/dist/lib/server/process-state.js +2 -2
  50. package/dist/lib/server/protocol.js +5 -5
  51. package/dist/lib/task/activity-log.js +4 -1
  52. package/dist/lib/task/artifact-lifecycle.js +6 -4
  53. package/dist/lib/task/codex-orchestration.js +1 -1
  54. package/dist/lib/task/command-options.js +1 -3
  55. package/dist/lib/task/commands/cat.js +0 -5
  56. package/dist/lib/task/commands/decisions.js +76 -92
  57. package/dist/lib/task/commands/files.js +6 -6
  58. package/dist/lib/task/commands/grep.js +25 -61
  59. package/dist/lib/task/commands/issue-body.js +6 -6
  60. package/dist/lib/task/commands/log.js +25 -10
  61. package/dist/lib/task/commands/show.js +5 -6
  62. package/dist/lib/task/commands/status.js +8 -8
  63. package/dist/lib/task/commit-intent.js +100 -0
  64. package/dist/lib/task/commit-operation.js +181 -91
  65. package/dist/lib/task/commit-policy.js +1 -1
  66. package/dist/lib/task/control-authority.js +431 -0
  67. package/dist/lib/task/create.js +39 -8
  68. package/dist/lib/task/current-contract.js +35 -0
  69. package/dist/lib/task/decision-details.js +218 -0
  70. package/dist/lib/task/decision-intents.js +5 -2
  71. package/dist/lib/task/delivery-target.js +97 -0
  72. package/dist/lib/task/delivery.js +153 -0
  73. package/dist/lib/task/events.js +11 -5
  74. package/dist/lib/task/human-override.js +5 -2
  75. package/dist/lib/task/index.js +19 -20
  76. package/dist/lib/task/ledger-intents.js +8 -9
  77. package/dist/lib/task/ledger.js +13 -6
  78. package/dist/lib/task/lifecycle.js +122 -9
  79. package/dist/lib/task/orchestration.js +105 -75
  80. package/dist/lib/task/pr-delivery-fact.js +182 -0
  81. package/dist/lib/task/review-artifacts.js +31 -12
  82. package/dist/lib/task/review-finalization.js +13 -4
  83. package/dist/lib/task/review-fingerprint.js +8 -0
  84. package/dist/lib/task/verification-engine.js +86 -39
  85. package/dist/lib/task/verification-review.js +2 -2
  86. package/dist/lib/task/workspace-snapshot.js +5 -11
  87. package/dist/lib/task/write.js +11 -1
  88. package/dist/lib/update.js +13 -35
  89. package/dist/lib/version.js +5 -1
  90. package/dist/lifecycle-build-manifest.json +3 -3
  91. package/lib/agent-client.ts +0 -1
  92. package/lib/agent-clients/adapters/codex-lifecycle/build-identity.ts +105 -10
  93. package/lib/agent-clients/adapters/codex-lifecycle/manifest-files.json +12 -1
  94. package/lib/agent-clients/adapters/opencode-sandbox.ts +0 -5
  95. package/lib/agent-clients/adapters/traecli.ts +7 -8
  96. package/lib/agent-clients/config.ts +14 -144
  97. package/lib/agent-clients/reconcile.ts +1 -12
  98. package/lib/agent-clients/schema.ts +5 -4
  99. package/lib/agent-clients/tokens.ts +5 -18
  100. package/lib/decide.ts +12 -22
  101. package/lib/defaults.json +8 -0
  102. package/lib/git/workflow.ts +38 -1
  103. package/lib/init.ts +5 -2
  104. package/lib/internal/git-workflow.ts +7 -1
  105. package/lib/internal/platform-pr.ts +8 -1
  106. package/lib/internal/release-workflow.ts +0 -1
  107. package/lib/internal/task-delivery.ts +53 -0
  108. package/lib/internal/task-finalization.ts +27 -13
  109. package/lib/internal/task-ledger.ts +8 -2
  110. package/lib/internal/task-lifecycle.ts +33 -76
  111. package/lib/internal/task-orchestration.ts +33 -190
  112. package/lib/internal/task-validate.ts +3 -2
  113. package/lib/merge.ts +236 -120
  114. package/lib/platform/github-client.ts +8 -1
  115. package/lib/platform/pr-checks.ts +7 -5
  116. package/lib/platform/pr-summary.ts +10 -7
  117. package/lib/platform/pull-requests.ts +425 -87
  118. package/lib/platform/verification-required.ts +12 -2
  119. package/lib/platform/verification-sync.ts +9 -4
  120. package/lib/pr-review/evidence-grading.ts +7 -4
  121. package/lib/process-data/normalize.ts +2 -8
  122. package/lib/run/host.ts +63 -14
  123. package/lib/sandbox/agent-client-reconciler.ts +5 -15
  124. package/lib/sandbox/commands/create.ts +4 -4
  125. package/lib/sandbox/commands/enter.ts +24 -4
  126. package/lib/sandbox/config.ts +9 -14
  127. package/lib/sandbox/control/container-identity.ts +2 -2
  128. package/lib/sandbox/control/executor.ts +148 -51
  129. package/lib/sandbox/control/lifecycle.ts +59 -31
  130. package/lib/sandbox/control/protocol.ts +1 -3
  131. package/lib/sandbox/control/server.ts +15 -12
  132. package/lib/sandbox/control/state.ts +7 -7
  133. package/lib/sandbox/mounts.ts +4 -3
  134. package/lib/sandbox/recovery.ts +162 -34
  135. package/lib/sandbox/tools.ts +1 -1
  136. package/lib/sandbox/workspace-identity.ts +28 -0
  137. package/lib/sandbox/workspace-view.ts +14 -10
  138. package/lib/self-update.ts +341 -0
  139. package/lib/server/process-state.ts +2 -2
  140. package/lib/server/protocol.ts +5 -5
  141. package/lib/task/activity-log.ts +6 -1
  142. package/lib/task/artifact-lifecycle.ts +7 -5
  143. package/lib/task/codex-orchestration.ts +2 -1
  144. package/lib/task/command-options.ts +1 -2
  145. package/lib/task/commands/cat.ts +0 -4
  146. package/lib/task/commands/decisions.ts +80 -75
  147. package/lib/task/commands/files.ts +6 -6
  148. package/lib/task/commands/grep.ts +23 -51
  149. package/lib/task/commands/issue-body.ts +6 -6
  150. package/lib/task/commands/log.ts +22 -10
  151. package/lib/task/commands/show.ts +5 -6
  152. package/lib/task/commands/status.ts +8 -8
  153. package/lib/task/commit-intent.ts +137 -0
  154. package/lib/task/commit-operation.ts +161 -79
  155. package/lib/task/commit-policy.ts +1 -2
  156. package/lib/task/control-authority.ts +563 -0
  157. package/lib/task/create.ts +40 -10
  158. package/lib/task/current-contract.ts +49 -0
  159. package/lib/task/decision-details.ts +280 -0
  160. package/lib/task/decision-intents.ts +7 -2
  161. package/lib/task/delivery-target.ts +130 -0
  162. package/lib/task/delivery.ts +160 -0
  163. package/lib/task/events.ts +10 -5
  164. package/lib/task/human-override.ts +5 -2
  165. package/lib/task/index.ts +19 -20
  166. package/lib/task/ledger-intents.ts +6 -8
  167. package/lib/task/ledger.ts +17 -7
  168. package/lib/task/lifecycle.ts +113 -4
  169. package/lib/task/orchestration.ts +102 -80
  170. package/lib/task/pr-delivery-fact.ts +254 -0
  171. package/lib/task/review-artifacts.ts +53 -15
  172. package/lib/task/review-finalization.ts +21 -5
  173. package/lib/task/review-fingerprint.ts +10 -0
  174. package/lib/task/verification-engine.ts +78 -46
  175. package/lib/task/verification-review.ts +3 -1
  176. package/lib/task/workspace-snapshot.ts +4 -13
  177. package/lib/task/write.ts +20 -1
  178. package/lib/update.ts +14 -38
  179. package/lib/version.ts +6 -1
  180. package/package.json +1 -1
  181. package/templates/.agents/README.en.md +5 -3
  182. package/templates/.agents/README.zh-CN.md +5 -3
  183. package/templates/.agents/rules/README.en.md +4 -2
  184. package/templates/.agents/rules/README.zh-CN.md +4 -2
  185. package/templates/.agents/rules/compatibility-policy.en.md +5 -4
  186. package/templates/.agents/rules/compatibility-policy.zh-CN.md +5 -4
  187. package/templates/.agents/rules/create-issue.en.md +11 -2
  188. package/templates/.agents/rules/create-issue.zh-CN.md +24 -2
  189. package/templates/.agents/rules/human-decision-context.en.md +9 -7
  190. package/templates/.agents/rules/human-decision-context.zh-CN.md +9 -7
  191. package/templates/.agents/rules/{issue-fields.github.en.md → issue-fields.en.md} +1 -1
  192. package/templates/.agents/rules/{issue-fields.github.zh-CN.md → issue-fields.zh-CN.md} +1 -1
  193. package/templates/.agents/rules/issue-pr-commands.en.md +5 -18
  194. package/templates/.agents/rules/issue-pr-commands.zh-CN.md +1 -1
  195. package/templates/.agents/rules/issue-sync.en.md +26 -5
  196. package/templates/.agents/rules/issue-sync.zh-CN.md +62 -5
  197. package/templates/.agents/rules/label-milestone-setup.en.md +15 -2
  198. package/templates/.agents/rules/label-milestone-setup.zh-CN.md +15 -2
  199. package/templates/.agents/rules/local-artifact-repair.en.md +46 -0
  200. package/templates/.agents/rules/local-artifact-repair.zh-CN.md +46 -0
  201. package/templates/.agents/rules/milestone-inference.en.md +12 -2
  202. package/templates/.agents/rules/milestone-inference.zh-CN.md +25 -3
  203. package/templates/.agents/rules/next-step-output.en.md +3 -3
  204. package/templates/.agents/rules/next-step-output.zh-CN.md +3 -3
  205. package/templates/.agents/rules/no-mid-flow-questions.en.md +1 -1
  206. package/templates/.agents/rules/no-mid-flow-questions.zh-CN.md +1 -1
  207. package/templates/.agents/rules/pr-sync.en.md +23 -14
  208. package/templates/.agents/rules/pr-sync.zh-CN.md +23 -2
  209. package/templates/.agents/rules/release-commands.en.md +42 -3
  210. package/templates/.agents/rules/release-commands.zh-CN.md +42 -3
  211. package/templates/.agents/rules/review-handshake.en.md +1 -1
  212. package/templates/.agents/rules/review-handshake.zh-CN.md +1 -1
  213. package/templates/.agents/rules/security-alerts.en.md +17 -2
  214. package/templates/.agents/rules/security-alerts.zh-CN.md +17 -2
  215. package/templates/.agents/rules/sync-content-generation.en.md +8 -0
  216. package/templates/.agents/rules/sync-content-generation.zh-CN.md +8 -0
  217. package/templates/.agents/rules/task-management.en.md +2 -3
  218. package/templates/.agents/rules/task-management.zh-CN.md +2 -3
  219. package/templates/.agents/scripts/security-alerts.github.sh +151 -0
  220. package/templates/.agents/scripts/security-alerts.sh +31 -0
  221. package/templates/.agents/skills/analyze-task/SKILL.en.md +4 -3
  222. package/templates/.agents/skills/analyze-task/SKILL.zh-CN.md +4 -3
  223. package/templates/.agents/skills/block-task/SKILL.en.md +2 -2
  224. package/templates/.agents/skills/block-task/SKILL.zh-CN.md +2 -2
  225. package/templates/.agents/skills/cancel-task/SKILL.en.md +2 -2
  226. package/templates/.agents/skills/cancel-task/SKILL.zh-CN.md +2 -2
  227. package/templates/.agents/skills/check-task/SKILL.en.md +2 -2
  228. package/templates/.agents/skills/check-task/SKILL.zh-CN.md +2 -2
  229. package/templates/.agents/skills/close-codescan/SKILL.en.md +3 -3
  230. package/templates/.agents/skills/close-codescan/SKILL.zh-CN.md +3 -3
  231. package/templates/.agents/skills/close-dependabot/SKILL.en.md +3 -3
  232. package/templates/.agents/skills/close-dependabot/SKILL.zh-CN.md +3 -3
  233. package/templates/.agents/skills/code-task/SKILL.en.md +8 -5
  234. package/templates/.agents/skills/code-task/SKILL.zh-CN.md +9 -6
  235. package/templates/.agents/skills/commit/SKILL.en.md +30 -10
  236. package/templates/.agents/skills/commit/SKILL.zh-CN.md +6 -7
  237. package/templates/.agents/skills/commit/config/verify.json +1 -1
  238. package/templates/.agents/skills/commit/reference/commit-orchestration.en.md +3 -3
  239. package/templates/.agents/skills/commit/reference/commit-orchestration.zh-CN.md +3 -3
  240. package/templates/.agents/skills/commit/reference/pr-summary-sync.en.md +1 -1
  241. package/templates/.agents/skills/commit/reference/pr-summary-sync.zh-CN.md +1 -1
  242. package/templates/.agents/skills/commit/reference/task-status-update.en.md +2 -2
  243. package/templates/.agents/skills/commit/reference/task-status-update.zh-CN.md +2 -2
  244. package/templates/.agents/skills/complete-manual-validation/SKILL.en.md +7 -6
  245. package/templates/.agents/skills/complete-manual-validation/SKILL.zh-CN.md +7 -6
  246. package/templates/.agents/skills/complete-manual-validation/config/verify.en.json +1 -1
  247. package/templates/.agents/skills/complete-manual-validation/config/verify.zh-CN.json +1 -1
  248. package/templates/.agents/skills/complete-manual-validation/reference/summary-update.en.md +1 -1
  249. package/templates/.agents/skills/complete-manual-validation/reference/summary-update.zh-CN.md +1 -1
  250. package/templates/.agents/skills/complete-task/SKILL.en.md +13 -13
  251. package/templates/.agents/skills/complete-task/SKILL.zh-CN.md +13 -13
  252. package/templates/.agents/skills/complete-task/reference/external-delivery.en.md +2 -2
  253. package/templates/.agents/skills/complete-task/reference/external-delivery.zh-CN.md +2 -2
  254. package/templates/.agents/skills/create-pr/SKILL.en.md +9 -11
  255. package/templates/.agents/skills/create-pr/SKILL.zh-CN.md +9 -11
  256. package/templates/.agents/skills/create-pr/reference/change-report.en.md +9 -4
  257. package/templates/.agents/skills/create-pr/reference/change-report.zh-CN.md +9 -4
  258. package/templates/.agents/skills/create-pr/scripts/change-report.mjs +203 -0
  259. package/templates/.agents/skills/create-release-note/SKILL.en.md +5 -6
  260. package/templates/.agents/skills/create-release-note/SKILL.zh-CN.md +5 -6
  261. package/templates/.agents/skills/create-task/SKILL.en.md +2 -1
  262. package/templates/.agents/skills/create-task/SKILL.zh-CN.md +2 -1
  263. package/templates/.agents/skills/import-codescan/SKILL.en.md +1 -1
  264. package/templates/.agents/skills/import-codescan/SKILL.zh-CN.md +1 -1
  265. package/templates/.agents/skills/import-dependabot/SKILL.en.md +1 -1
  266. package/templates/.agents/skills/import-dependabot/SKILL.zh-CN.md +1 -1
  267. package/templates/.agents/skills/import-issue/SKILL.en.md +1 -1
  268. package/templates/.agents/skills/import-issue/SKILL.zh-CN.md +1 -1
  269. package/templates/.agents/skills/init-labels/SKILL.en.md +9 -10
  270. package/templates/.agents/skills/init-labels/SKILL.zh-CN.md +9 -10
  271. package/templates/.agents/skills/init-labels/scripts/init-labels.github.sh +57 -1
  272. package/templates/.agents/skills/init-labels/scripts/init-labels.sh +27 -1
  273. package/templates/.agents/skills/init-milestones/SKILL.en.md +3 -5
  274. package/templates/.agents/skills/init-milestones/SKILL.zh-CN.md +3 -5
  275. package/templates/.agents/skills/plan-task/SKILL.en.md +4 -3
  276. package/templates/.agents/skills/plan-task/SKILL.zh-CN.md +4 -3
  277. package/templates/.agents/skills/restore-task/SKILL.en.md +1 -1
  278. package/templates/.agents/skills/restore-task/SKILL.zh-CN.md +1 -1
  279. package/templates/.agents/skills/review-analysis/SKILL.en.md +8 -5
  280. package/templates/.agents/skills/review-analysis/SKILL.zh-CN.md +8 -5
  281. package/templates/.agents/skills/review-analysis/config/verify.en.json +1 -0
  282. package/templates/.agents/skills/review-analysis/config/verify.zh-CN.json +1 -0
  283. package/templates/.agents/skills/review-analysis/reference/output-templates.en.md +18 -0
  284. package/templates/.agents/skills/review-analysis/reference/output-templates.zh-CN.md +18 -0
  285. package/templates/.agents/skills/review-code/SKILL.en.md +11 -8
  286. package/templates/.agents/skills/review-code/SKILL.zh-CN.md +11 -8
  287. package/templates/.agents/skills/review-code/config/verify.en.json +1 -0
  288. package/templates/.agents/skills/review-code/config/verify.zh-CN.json +1 -0
  289. package/templates/.agents/skills/review-code/reference/migration-risks.en.md +2 -1
  290. package/templates/.agents/skills/review-code/reference/migration-risks.zh-CN.md +2 -1
  291. package/templates/.agents/skills/review-code/reference/output-templates.en.md +19 -1
  292. package/templates/.agents/skills/review-code/reference/output-templates.zh-CN.md +19 -1
  293. package/templates/.agents/skills/review-code/reference/report-template.en.md +4 -2
  294. package/templates/.agents/skills/review-code/reference/report-template.zh-CN.md +4 -2
  295. package/templates/.agents/skills/review-plan/SKILL.en.md +8 -5
  296. package/templates/.agents/skills/review-plan/SKILL.zh-CN.md +8 -5
  297. package/templates/.agents/skills/review-plan/config/verify.en.json +1 -0
  298. package/templates/.agents/skills/review-plan/config/verify.zh-CN.json +1 -0
  299. package/templates/.agents/skills/review-plan/reference/output-templates.en.md +18 -0
  300. package/templates/.agents/skills/review-plan/reference/output-templates.zh-CN.md +18 -0
  301. package/templates/.agents/skills/review-pr/SKILL.en.md +1 -0
  302. package/templates/.agents/skills/review-pr/SKILL.zh-CN.md +1 -0
  303. package/templates/.agents/skills/review-pr/reference/evidence-grading.en.md +2 -2
  304. package/templates/.agents/skills/review-pr/reference/evidence-grading.zh-CN.md +2 -2
  305. package/templates/.agents/skills/run-manual-validation/SKILL.en.md +5 -0
  306. package/templates/.agents/skills/run-manual-validation/SKILL.zh-CN.md +5 -0
  307. package/templates/.agents/skills/run-task/SKILL.en.md +5 -1
  308. package/templates/.agents/skills/run-task/SKILL.zh-CN.md +5 -1
  309. package/templates/.agents/skills/update-agent-infra/SKILL.en.md +2 -2
  310. package/templates/.agents/skills/update-agent-infra/SKILL.zh-CN.md +2 -2
  311. package/templates/.agents/skills/update-agent-infra/scripts/sync-templates.js +144 -109
  312. package/templates/.agents/skills/watch-pr/SKILL.en.md +5 -5
  313. package/templates/.agents/skills/watch-pr/SKILL.zh-CN.md +5 -5
  314. package/templates/.agents/templates/task.en.md +6 -2
  315. package/templates/.agents/templates/task.zh-CN.md +6 -2
  316. package/templates/.agents/workflows/bug-fix.en.yaml +9 -8
  317. package/templates/.agents/workflows/bug-fix.zh-CN.yaml +9 -8
  318. package/templates/.agents/workflows/feature-development.en.yaml +9 -8
  319. package/templates/.agents/workflows/feature-development.zh-CN.yaml +9 -8
  320. package/templates/.agents/workflows/refactoring.en.yaml +9 -8
  321. package/templates/.agents/workflows/refactoring.zh-CN.yaml +9 -8
  322. package/templates/.claude/commands/analyze-task.en.md +1 -1
  323. package/templates/.claude/commands/analyze-task.zh-CN.md +1 -1
  324. package/templates/.claude/commands/block-task.en.md +1 -1
  325. package/templates/.claude/commands/block-task.zh-CN.md +1 -1
  326. package/templates/.claude/commands/cancel-task.en.md +1 -1
  327. package/templates/.claude/commands/cancel-task.zh-CN.md +1 -1
  328. package/templates/.claude/commands/check-task.en.md +1 -1
  329. package/templates/.claude/commands/check-task.zh-CN.md +1 -1
  330. package/templates/.claude/commands/code-task.en.md +1 -1
  331. package/templates/.claude/commands/code-task.zh-CN.md +1 -1
  332. package/templates/.claude/commands/commit.en.md +1 -1
  333. package/templates/.claude/commands/commit.zh-CN.md +1 -1
  334. package/templates/.claude/commands/complete-manual-validation.en.md +1 -1
  335. package/templates/.claude/commands/complete-manual-validation.zh-CN.md +1 -1
  336. package/templates/.claude/commands/complete-task.en.md +1 -1
  337. package/templates/.claude/commands/complete-task.zh-CN.md +1 -1
  338. package/templates/.claude/commands/create-pr.en.md +1 -1
  339. package/templates/.claude/commands/create-pr.zh-CN.md +1 -1
  340. package/templates/.claude/commands/plan-task.en.md +1 -1
  341. package/templates/.claude/commands/plan-task.zh-CN.md +1 -1
  342. package/templates/.claude/commands/review-analysis.en.md +1 -1
  343. package/templates/.claude/commands/review-analysis.zh-CN.md +1 -1
  344. package/templates/.claude/commands/review-code.en.md +1 -1
  345. package/templates/.claude/commands/review-code.zh-CN.md +1 -1
  346. package/templates/.claude/commands/review-plan.en.md +1 -1
  347. package/templates/.claude/commands/review-plan.zh-CN.md +1 -1
  348. package/templates/.claude/commands/run-manual-validation.en.md +1 -1
  349. package/templates/.claude/commands/run-manual-validation.zh-CN.md +1 -1
  350. package/templates/.claude/commands/run-task.en.md +1 -1
  351. package/templates/.claude/commands/run-task.zh-CN.md +1 -1
  352. package/templates/.claude/commands/watch-pr.en.md +1 -1
  353. package/templates/.claude/commands/watch-pr.zh-CN.md +1 -1
  354. package/templates/{.trae/skills → .traecli/commands}/update-agent-infra.en.md +0 -1
  355. package/templates/{.trae/skills → .traecli/commands}/update-agent-infra.zh-CN.md +0 -1
  356. package/dist/lib/builtin-tuis.js +0 -40
  357. package/lib/builtin-tuis.ts +0 -56
  358. package/templates/.agents/rules/create-issue.github.en.md +0 -14
  359. package/templates/.agents/rules/create-issue.github.zh-CN.md +0 -27
  360. package/templates/.agents/rules/issue-pr-commands.github.en.md +0 -34
  361. package/templates/.agents/rules/issue-pr-commands.github.zh-CN.md +0 -49
  362. package/templates/.agents/rules/issue-sync.github.en.md +0 -40
  363. package/templates/.agents/rules/issue-sync.github.zh-CN.md +0 -76
  364. package/templates/.agents/rules/label-milestone-setup.github.en.md +0 -60
  365. package/templates/.agents/rules/label-milestone-setup.github.zh-CN.md +0 -60
  366. package/templates/.agents/rules/milestone-inference.github.en.md +0 -15
  367. package/templates/.agents/rules/milestone-inference.github.zh-CN.md +0 -27
  368. package/templates/.agents/rules/pr-checks-commands.github.en.md +0 -18
  369. package/templates/.agents/rules/pr-checks-commands.github.zh-CN.md +0 -34
  370. package/templates/.agents/rules/pr-sync.github.en.md +0 -43
  371. package/templates/.agents/rules/pr-sync.github.zh-CN.md +0 -69
  372. package/templates/.agents/rules/release-commands.github.en.md +0 -38
  373. package/templates/.agents/rules/release-commands.github.zh-CN.md +0 -38
  374. package/templates/.agents/rules/security-alerts.github.en.md +0 -43
  375. package/templates/.agents/rules/security-alerts.github.zh-CN.md +0 -43
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # Note: whether a step's `pr_tasks` list counts toward workflow progress follows the "PR path" rule:
5
5
  # `.agents/.airc.json:prFlow="required"` always counts; `prFlow="disabled"` never counts;
6
- # when the field is absent, exclude only if task.md's `pr_status=skipped`, otherwise count
6
+ # when the field is absent, exclude only if task.md's `pr_delivery_fact.state=skipped`, otherwise count
7
7
  # (see .agents/skills/complete-task/SKILL.md).
8
8
 
9
9
  name: bug-fix
@@ -126,6 +126,7 @@ steps:
126
126
  - Add a regression test that fails without the fix
127
127
  - Fix findings from the latest code-review artifact when in fix mode
128
128
  - Verify existing tests still pass
129
+ - Create a local checkpoint commit after tests pass
129
130
  - Ensure code follows project conventions
130
131
  inputs:
131
132
  - Approved fix plan
@@ -177,21 +178,21 @@ steps:
177
178
  - Code review report
178
179
  - Findings list, if any
179
180
 
180
- - name: commit
181
- description: Finalize the defect fix and create a pull request (the PR portion runs only on the PR path).
181
+ - name: delivery
182
+ description: Deliver the approved checkpoint as a pull request, then complete the task after merge and final gates.
182
183
  recommended_agents:
183
184
  - claude
184
185
  - human
185
186
  tasks:
186
- - Ensure all tests pass
187
- - Write a commit message that references the defect or Issue
188
- - Move the task to completed
187
+ - Verify the current HEAD still equals the approved checkpoint
188
+ - Confirm the task-bound delivery remote and base branch remain valid
189
+ - Move the task to completed after PR merge and final gates
189
190
  pr_tasks:
190
191
  - Create a pull request with a defect-fix description
191
192
  - Link the PR to the defect report Issue
192
193
  inputs:
193
- - Final bug-fix branch
194
+ - Approved local checkpoint
194
195
  - Task workspace
195
196
  outputs:
196
- - Completed task workspace under .agents/workspace/completed/
197
197
  - Pull request (only on the PR path)
198
+ - Completed task workspace under .agents/workspace/completed/ after merge and final gates
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # 注:步骤中的 `pr_tasks` 列表按「走 PR 路径」判定是否计入工作流进度:
5
5
  # `.agents/.airc.json:prFlow="required"` 始终计入;`prFlow="disabled"` 不计入;
6
- # 字段缺省时仅当 task.md 的 `pr_status=skipped` 排除,否则计入(详见 .agents/skills/complete-task/SKILL.md)。
6
+ # 字段缺省时仅当 task.md 的 `pr_delivery_fact.state=skipped` 排除,否则计入(详见 .agents/skills/complete-task/SKILL.md)。
7
7
 
8
8
  name: bug-fix
9
9
  description: 诊断和修复缺陷的工作流。
@@ -125,6 +125,7 @@ steps:
125
125
  - 添加在没有修复时会失败的回归测试
126
126
  - 修复最新 code-review 产物中要求处理的问题(如处于修复模式)
127
127
  - 验证现有测试仍然通过
128
+ - 测试通过后创建本地 checkpoint commit
128
129
  - 确保代码遵循项目规范
129
130
  inputs:
130
131
  - 已通过审查的修复方案
@@ -176,21 +177,21 @@ steps:
176
177
  - 代码审查报告
177
178
  - 问题列表(如有)
178
179
 
179
- - name: commit
180
- description: 最终确认缺陷修复并创建拉取请求(PR 部分仅在走 PR 路径时执行)。
180
+ - name: delivery
181
+ description: 将已审查的 checkpoint 交付为 PR,并在合并及最终门禁通过后完成任务。
181
182
  recommended_agents:
182
183
  - claude
183
184
  - human
184
185
  tasks:
185
- - 确保所有测试通过
186
- - 编写引用缺陷/Issue 的提交信息
187
- - 将任务移至已完成
186
+ - 验证当前 HEAD 仍等于已审查的 checkpoint
187
+ - 确认任务绑定的交付 remote 和目标分支仍有效
188
+ - 在 PR 合并及最终门禁通过后将任务移至已完成
188
189
  pr_tasks:
189
190
  - 创建包含缺陷修复描述的拉取请求
190
191
  - 将 PR 关联到缺陷报告 Issue
191
192
  inputs:
192
- - 最终缺陷修复分支
193
+ - 已审查的本地 checkpoint
193
194
  - 任务文件
194
195
  outputs:
195
- - 已完成的任务文件(位于 .agents/workspace/completed/)
196
196
  - 拉取请求(仅走 PR 路径时)
197
+ - 已完成的任务文件(PR 合并和最终门禁通过后)
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # Note: whether a step's `pr_tasks` list counts toward workflow progress follows the "PR path" rule:
5
5
  # `.agents/.airc.json:prFlow="required"` always counts; `prFlow="disabled"` never counts;
6
- # when the field is absent, exclude only if task.md's `pr_status=skipped`, otherwise count
6
+ # when the field is absent, exclude only if task.md's `pr_delivery_fact.state=skipped`, otherwise count
7
7
  # (see .agents/skills/complete-task/SKILL.md).
8
8
 
9
9
  name: feature-development
@@ -126,6 +126,7 @@ steps:
126
126
  - Write unit tests
127
127
  - Write integration tests when applicable
128
128
  - Fix findings from the latest code-review artifact when in fix mode
129
+ - Create a local checkpoint commit after tests pass
129
130
  - Ensure code follows project conventions
130
131
  inputs:
131
132
  - Approved technical design
@@ -177,21 +178,21 @@ steps:
177
178
  - Code review report
178
179
  - Findings to fix
179
180
 
180
- - name: commit
181
- description: Finalize changes and create a pull request (the PR portion runs only on the PR path).
181
+ - name: delivery
182
+ description: Deliver the approved checkpoint as a pull request, then complete the task after merge and final gates.
182
183
  recommended_agents:
183
184
  - claude
184
185
  - human
185
186
  tasks:
186
- - Ensure all tests pass
187
- - Write a clear commit message following conventions
188
- - Move the task to completed
187
+ - Verify the current HEAD still equals the approved checkpoint
188
+ - Confirm the task-bound delivery remote and base branch remain valid
189
+ - Move the task to completed after PR merge and final gates
189
190
  pr_tasks:
190
191
  - Create a pull request with an appropriate description
191
192
  - Link the PR to the related Issue
192
193
  inputs:
193
- - Final implementation branch
194
+ - Approved local checkpoint
194
195
  - Task workspace
195
196
  outputs:
196
- - Completed task workspace under .agents/workspace/completed/
197
197
  - Pull request (only on the PR path)
198
+ - Completed task workspace under .agents/workspace/completed/ after merge and final gates
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # 注:步骤中的 `pr_tasks` 列表按「走 PR 路径」判定是否计入工作流进度:
5
5
  # `.agents/.airc.json:prFlow="required"` 始终计入;`prFlow="disabled"` 不计入;
6
- # 字段缺省时仅当 task.md 的 `pr_status=skipped` 排除,否则计入(详见 .agents/skills/complete-task/SKILL.md)。
6
+ # 字段缺省时仅当 task.md 的 `pr_delivery_fact.state=skipped` 排除,否则计入(详见 .agents/skills/complete-task/SKILL.md)。
7
7
 
8
8
  name: feature-development
9
9
  description: 开发新功能的端到端工作流。
@@ -125,6 +125,7 @@ steps:
125
125
  - 编写单元测试
126
126
  - 编写集成测试(如适用)
127
127
  - 修复最新 code-review 产物中要求处理的问题(如处于修复模式)
128
+ - 测试通过后创建本地 checkpoint commit
128
129
  - 确保代码遵循项目规范
129
130
  inputs:
130
131
  - 已通过审查的技术设计
@@ -176,21 +177,21 @@ steps:
176
177
  - 代码审查报告
177
178
  - 待修复问题列表
178
179
 
179
- - name: commit
180
- description: 最终确认变更并创建拉取请求(PR 部分仅在走 PR 路径时执行)。
180
+ - name: delivery
181
+ description: 将已审查的 checkpoint 交付为 PR,并在合并及最终门禁通过后完成任务。
181
182
  recommended_agents:
182
183
  - claude
183
184
  - human
184
185
  tasks:
185
- - 确保所有测试通过
186
- - 按规范编写清晰的提交信息
187
- - 将任务移至已完成
186
+ - 验证当前 HEAD 仍等于已审查的 checkpoint
187
+ - 确认任务绑定的交付 remote 和目标分支仍有效
188
+ - 在 PR 合并及最终门禁通过后将任务移至已完成
188
189
  pr_tasks:
189
190
  - 创建包含适当描述的拉取请求
190
191
  - 将 PR 关联到相关 Issue
191
192
  inputs:
192
- - 最终实现分支
193
+ - 已审查的本地 checkpoint
193
194
  - 任务文件
194
195
  outputs:
195
- - 已完成的任务文件(位于 .agents/workspace/completed/)
196
196
  - 拉取请求(仅走 PR 路径时)
197
+ - 已完成的任务文件(PR 合并和最终门禁通过后)
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # Note: whether a step's `pr_tasks` list counts toward workflow progress follows the "PR path" rule:
5
5
  # `.agents/.airc.json:prFlow="required"` always counts; `prFlow="disabled"` never counts;
6
- # when the field is absent, exclude only if task.md's `pr_status=skipped`, otherwise count
6
+ # when the field is absent, exclude only if task.md's `pr_delivery_fact.state=skipped`, otherwise count
7
7
  # (see .agents/skills/complete-task/SKILL.md).
8
8
 
9
9
  name: refactoring
@@ -128,6 +128,7 @@ steps:
128
128
  - Verify tests after each step
129
129
  - Fix findings from the latest code-review artifact when in fix mode
130
130
  - Update affected docs or comments
131
+ - Create a local checkpoint commit after tests pass
131
132
  - Ensure code follows project conventions
132
133
  inputs:
133
134
  - Approved refactoring plan
@@ -181,21 +182,21 @@ steps:
181
182
  - Code review report
182
183
  - Findings list, if any
183
184
 
184
- - name: commit
185
- description: Finalize the refactoring and create a pull request (the PR portion runs only on the PR path).
185
+ - name: delivery
186
+ description: Deliver the approved checkpoint as a pull request, then complete the task after merge and final gates.
186
187
  recommended_agents:
187
188
  - claude
188
189
  - human
189
190
  tasks:
190
- - Ensure all tests pass
191
- - Write a clear commit message explaining the refactoring
192
- - Move the task to completed
191
+ - Verify the current HEAD still equals the approved checkpoint
192
+ - Confirm the task-bound delivery remote and base branch remain valid
193
+ - Move the task to completed after PR merge and final gates
193
194
  pr_tasks:
194
195
  - Create a pull request with detailed changes
195
196
  - Link the PR to the related Issue
196
197
  inputs:
197
- - Final refactoring branch
198
+ - Approved local checkpoint
198
199
  - Task workspace
199
200
  outputs:
200
- - Completed task workspace under .agents/workspace/completed/
201
201
  - Pull request (only on the PR path)
202
+ - Completed task workspace under .agents/workspace/completed/ after merge and final gates
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # 注:步骤中的 `pr_tasks` 列表按「走 PR 路径」判定是否计入工作流进度:
5
5
  # `.agents/.airc.json:prFlow="required"` 始终计入;`prFlow="disabled"` 不计入;
6
- # 字段缺省时仅当 task.md 的 `pr_status=skipped` 排除,否则计入(详见 .agents/skills/complete-task/SKILL.md)。
6
+ # 字段缺省时仅当 task.md 的 `pr_delivery_fact.state=skipped` 排除,否则计入(详见 .agents/skills/complete-task/SKILL.md)。
7
7
 
8
8
  name: refactoring
9
9
  description: 安全且结构化的代码重构工作流。
@@ -127,6 +127,7 @@ steps:
127
127
  - 每步后验证测试通过
128
128
  - 修复最新 code-review 产物中要求处理的问题(如处于修复模式)
129
129
  - 更新受影响的文档或注释
130
+ - 测试通过后创建本地 checkpoint commit
130
131
  - 确保代码遵循项目规范
131
132
  inputs:
132
133
  - 已通过审查的重构计划
@@ -180,21 +181,21 @@ steps:
180
181
  - 代码审查报告
181
182
  - 问题列表(如有)
182
183
 
183
- - name: commit
184
- description: 最终确认重构并创建拉取请求(PR 部分仅在走 PR 路径时执行)。
184
+ - name: delivery
185
+ description: 将已审查的 checkpoint 交付为 PR,并在合并及最终门禁通过后完成任务。
185
186
  recommended_agents:
186
187
  - claude
187
188
  - human
188
189
  tasks:
189
- - 确保所有测试通过
190
- - 编写清晰的提交信息说明重构内容
191
- - 将任务移至已完成
190
+ - 验证当前 HEAD 仍等于已审查的 checkpoint
191
+ - 确认任务绑定的交付 remote 和目标分支仍有效
192
+ - 在 PR 合并及最终门禁通过后将任务移至已完成
192
193
  pr_tasks:
193
194
  - 创建包含详细变更描述的拉取请求
194
195
  - 将 PR 关联到相关 Issue
195
196
  inputs:
196
- - 最终重构分支
197
+ - 已审查的本地 checkpoint
197
198
  - 任务文件
198
199
  outputs:
199
- - 已完成的任务文件(位于 .agents/workspace/completed/)
200
200
  - 拉取请求(仅走 PR 路径时)
201
+ - 已完成的任务文件(PR 合并和最终门禁通过后)
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "Analyze a task and produce a requirements document"
3
- usage: "/analyze-task [task-ref | --task <ref>]"
3
+ usage: "/analyze-task [--task <ref> | -t <ref>]"
4
4
  ---
5
5
 
6
6
  Read and execute the analyze-task skill from `.agents/skills/analyze-task/SKILL.md`.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "分析任务并输出需求分析文档"
3
- usage: "/analyze-task [task-ref | --task <ref>]"
3
+ usage: "/analyze-task [--task <ref> | -t <ref>]"
4
4
  ---
5
5
 
6
6
  读取并执行 `.agents/skills/analyze-task/SKILL.md` 中的 analyze-task 技能。
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "Mark a task as blocked and record the reason"
3
- usage: "/block-task [task-ref | --task <ref>] [reason]"
3
+ usage: "/block-task [--task <ref> | -t <ref>] [reason]"
4
4
  disable-model-invocation: true
5
5
  ---
6
6
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "标记任务为阻塞状态并记录原因"
3
- usage: "/block-task [task-ref | --task <ref>] [reason]"
3
+ usage: "/block-task [--task <ref> | -t <ref>] [reason]"
4
4
  disable-model-invocation: true
5
5
  ---
6
6
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "Cancel a task and archive it"
3
- usage: "/cancel-task [task-ref | --task <ref>] <reason>"
3
+ usage: "/cancel-task [--task <ref> | -t <ref>] <reason>"
4
4
  disable-model-invocation: true
5
5
  ---
6
6
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "取消任务并归档"
3
- usage: "/cancel-task [task-ref | --task <ref>] <reason>"
3
+ usage: "/cancel-task [--task <ref> | -t <ref>] <reason>"
4
4
  disable-model-invocation: true
5
5
  ---
6
6
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "Check a task's current status and progress"
3
- usage: "/check-task [task-ref | --task <ref>]"
3
+ usage: "/check-task [--task <ref> | -t <ref>]"
4
4
  disable-model-invocation: true
5
5
  ---
6
6
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "查看任务的当前状态和进度"
3
- usage: "/check-task [task-ref | --task <ref>]"
3
+ usage: "/check-task [--task <ref> | -t <ref>]"
4
4
  disable-model-invocation: true
5
5
  ---
6
6
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "Code a task from its technical plan and output a report"
3
- usage: "/code-task [task-ref | --task <ref>]"
3
+ usage: "/code-task [--task <ref> | -t <ref>]"
4
4
  ---
5
5
 
6
6
  Read and execute the code-task skill from `.agents/skills/code-task/SKILL.md`.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "根据技术方案编码任务并输出报告"
3
- usage: "/code-task [task-ref | --task <ref>]"
3
+ usage: "/code-task [--task <ref> | -t <ref>]"
4
4
  ---
5
5
 
6
6
  读取并执行 `.agents/skills/code-task/SKILL.md` 中的 code-task 技能。
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "Commit the current changes to Git"
3
- usage: "/commit [task-ref | --task <ref>]"
3
+ usage: "/commit [--task <ref> | -t <ref>]"
4
4
  ---
5
5
 
6
6
  Read and execute the commit skill from `.agents/skills/commit/SKILL.md`.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "提交当前变更到 Git"
3
- usage: "/commit [task-ref | --task <ref>]"
3
+ usage: "/commit [--task <ref> | -t <ref>]"
4
4
  ---
5
5
 
6
6
  读取并执行 `.agents/skills/commit/SKILL.md` 中的 commit 技能。
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "Mark PR manual validation as completed and update the summary comment"
3
- usage: "/complete-manual-validation [task-ref | --task <ref>] [pr-ref] <verification-summary>"
3
+ usage: "/complete-manual-validation [--task <ref> | -t <ref>] [pr-ref] <verification-summary>"
4
4
  disable-model-invocation: true
5
5
  ---
6
6
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "标记 PR 人工验证已完成并更新摘要评论"
3
- usage: "/complete-manual-validation [task-ref | --task <ref>] [pr-ref] <verification-summary>"
3
+ usage: "/complete-manual-validation [--task <ref> | -t <ref>] [pr-ref] <verification-summary>"
4
4
  disable-model-invocation: true
5
5
  ---
6
6
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "Mark a task as completed and archive it"
3
- usage: "/complete-task [task-ref | --task <ref>]"
3
+ usage: "/complete-task [--task <ref> | -t <ref>] [--skip-pr] [--force]"
4
4
  ---
5
5
 
6
6
  Read and execute the complete-task skill from `.agents/skills/complete-task/SKILL.md`.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "标记任务完成并归档"
3
- usage: "/complete-task [task-ref | --task <ref>]"
3
+ usage: "/complete-task [--task <ref> | -t <ref>] [--skip-pr] [--force]"
4
4
  ---
5
5
 
6
6
  读取并执行 `.agents/skills/complete-task/SKILL.md` 中的 complete-task 技能。
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "Create a Pull Request to a target branch"
3
- usage: "/create-pr [task-ref | --task <ref>] [target-branch]"
3
+ usage: "/create-pr [--task <ref> | -t <ref>] [target-branch]"
4
4
  ---
5
5
 
6
6
  Read and execute the create-pr skill from `.agents/skills/create-pr/SKILL.md`.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "创建 Pull Request 到目标分支"
3
- usage: "/create-pr [task-ref | --task <ref>] [target-branch]"
3
+ usage: "/create-pr [--task <ref> | -t <ref>] [target-branch]"
4
4
  ---
5
5
 
6
6
  读取并执行 `.agents/skills/create-pr/SKILL.md` 中的 create-pr 技能。
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "Design a technical plan for a task"
3
- usage: "/plan-task [task-ref | --task <ref>]"
3
+ usage: "/plan-task [--task <ref> | -t <ref>]"
4
4
  ---
5
5
 
6
6
  Read and execute the plan-task skill from `.agents/skills/plan-task/SKILL.md`.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "为任务设计技术方案和实施计划"
3
- usage: "/plan-task [task-ref | --task <ref>]"
3
+ usage: "/plan-task [--task <ref> | -t <ref>]"
4
4
  ---
5
5
 
6
6
  读取并执行 `.agents/skills/plan-task/SKILL.md` 中的 plan-task 技能。
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "Review a requirement analysis report"
3
- usage: "/review-analysis [task-ref | --task <ref>]"
3
+ usage: "/review-analysis [--task <ref> | -t <ref>]"
4
4
  ---
5
5
 
6
6
  Read and execute the review-analysis skill from `.agents/skills/review-analysis/SKILL.md`.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "审查需求分析报告"
3
- usage: "/review-analysis [task-ref | --task <ref>]"
3
+ usage: "/review-analysis [--task <ref> | -t <ref>]"
4
4
  ---
5
5
 
6
6
  读取并执行 `.agents/skills/review-analysis/SKILL.md` 中的 review-analysis 技能。
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "Review code implementation and output a code review report"
3
- usage: "/review-code [task-ref | --task <ref>]"
3
+ usage: "/review-code [--task <ref> | -t <ref>]"
4
4
  ---
5
5
 
6
6
  Read and execute the review-code skill from `.agents/skills/review-code/SKILL.md`.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "审查代码实现并输出代码审查报告"
3
- usage: "/review-code [task-ref | --task <ref>]"
3
+ usage: "/review-code [--task <ref> | -t <ref>]"
4
4
  ---
5
5
 
6
6
  读取并执行 `.agents/skills/review-code/SKILL.md` 中的 review-code 技能。
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "Review a technical plan"
3
- usage: "/review-plan [task-ref | --task <ref>]"
3
+ usage: "/review-plan [--task <ref> | -t <ref>]"
4
4
  ---
5
5
 
6
6
  Read and execute the review-plan skill from `.agents/skills/review-plan/SKILL.md`.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "审查技术方案"
3
- usage: "/review-plan [task-ref | --task <ref>]"
3
+ usage: "/review-plan [--task <ref> | -t <ref>]"
4
4
  ---
5
5
 
6
6
  读取并执行 `.agents/skills/review-plan/SKILL.md` 中的 review-plan 技能。
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "Run host-side task validation and record sanitized evidence"
3
- usage: "/run-manual-validation <task-ref> [--scope snapshot|inplace] [--timeout <ms>] [--format text|json] -- <command...>"
3
+ usage: "/run-manual-validation [--task <ref> | -t <ref>] [--scope snapshot|inplace] [--timeout <ms>] [--format text|json] -- <command...>"
4
4
  disable-model-invocation: true
5
5
  ---
6
6
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "运行宿主侧任务校验并记录去敏证据"
3
- usage: "/run-manual-validation <task-ref> [--scope snapshot|inplace] [--timeout <ms>] [--format text|json] -- <command...>"
3
+ usage: "/run-manual-validation [--task <ref> | -t <ref>] [--scope snapshot|inplace] [--timeout <ms>] [--format text|json] -- <command...>"
4
4
  disable-model-invocation: true
5
5
  ---
6
6
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "Orchestrate a task lifecycle with fresh isolated agents"
3
- usage: "/run-task [task-ref | --task <ref>]"
3
+ usage: "/run-task [--task <ref> | -t <ref>] [--executor-model <model> --executor-reasoning-effort <effort> --reviewer-model <model> --reviewer-reasoning-effort <effort>]"
4
4
  ---
5
5
 
6
6
  Read and execute the run-task skill from `.agents/skills/run-task/SKILL.md`.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "使用 fresh 隔离 Agent 总控任务生命周期"
3
- usage: "/run-task [task-ref | --task <ref>]"
3
+ usage: "/run-task [--task <ref> | -t <ref>] [--executor-model <model> --executor-reasoning-effort <effort> --reviewer-model <model> --reviewer-reasoning-effort <effort>]"
4
4
  ---
5
5
 
6
6
  读取并执行 `.agents/skills/run-task/SKILL.md` 中的 run-task 技能。
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "Watch all checks on a PR and self-heal on failure"
3
- usage: "/watch-pr [task-ref | --task <ref> | --pr <number>]"
3
+ usage: "/watch-pr [--task <ref> | -t <ref>] | [--pr <number>] | [<pr-url>]"
4
4
  ---
5
5
 
6
6
  Read and execute the watch-pr skill from `.agents/skills/watch-pr/SKILL.md`.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: "监控 PR 的全部 checks 并在失败时自愈"
3
- usage: "/watch-pr [task-ref | --task <ref> | --pr <number>]"
3
+ usage: "/watch-pr [--task <ref> | -t <ref>] | [--pr <number>] | [<pr-url>]"
4
4
  ---
5
5
 
6
6
  读取并执行 `.agents/skills/watch-pr/SKILL.md` 中的 watch-pr 技能。
@@ -1,6 +1,5 @@
1
1
  ---
2
2
  description: "Update the project AI collaboration configuration"
3
- disable-model-invocation: true
4
3
  ---
5
4
 
6
5
  Read and execute the update-agent-infra skill from `.agents/skills/update-agent-infra/SKILL.md`.
@@ -1,6 +1,5 @@
1
1
  ---
2
2
  description: "更新项目 AI 协作配置"
3
- disable-model-invocation: true
4
3
  ---
5
4
 
6
5
  读取并执行 `.agents/skills/update-agent-infra/SKILL.md` 中的 update-agent-infra 技能。
@@ -1,40 +0,0 @@
1
- import { AGENT_CLIENT_IDS, isAgentClientId } from './agent-clients/types.js';
2
- import { listAgentClientAdapters } from './agent-clients/registry.js';
3
- const BUILTIN_TUI_IDS = AGENT_CLIENT_IDS;
4
- const BUILTIN_TUI_DISPLAY = Object.fromEntries(listAgentClientAdapters().map((adapter) => [adapter.id, adapter.displayName]));
5
- const BUILTIN_TUI_OWNED_PATH_PREFIXES = Object.fromEntries(listAgentClientAdapters().map((adapter) => [
6
- adapter.id,
7
- [...adapter.project.ownedPathPrefixes]
8
- ]));
9
- function isBuiltinTUIId(value) {
10
- return isAgentClientId(value);
11
- }
12
- function resolveEnabledTUIs(value) {
13
- // Missing field / null / non-array → full set (backward compat for legacy
14
- // .airc.json predating the `tuis` field).
15
- if (!Array.isArray(value))
16
- return new Set(BUILTIN_TUI_IDS);
17
- // Empty array is a meaningful, user-set value: "no built-in TUI managed".
18
- // This supports the customTUI-only project layout.
19
- const set = new Set();
20
- for (const v of value) {
21
- if (isBuiltinTUIId(v))
22
- set.add(v);
23
- }
24
- return set;
25
- }
26
- function isPathOwnedByDisabledTUI(rel, enabled) {
27
- const normalized = String(rel || '').replace(/\\/g, '/').replace(/^\.\//, '');
28
- for (const tui of BUILTIN_TUI_IDS) {
29
- if (enabled.has(tui))
30
- continue;
31
- for (const prefix of BUILTIN_TUI_OWNED_PATH_PREFIXES[tui]) {
32
- const trimmed = prefix.replace(/\/$/, '');
33
- if (normalized === trimmed || normalized.startsWith(prefix))
34
- return true;
35
- }
36
- }
37
- return false;
38
- }
39
- export { BUILTIN_TUI_IDS, BUILTIN_TUI_DISPLAY, BUILTIN_TUI_OWNED_PATH_PREFIXES, isBuiltinTUIId, resolveEnabledTUIs, isPathOwnedByDisabledTUI };
40
- //# sourceMappingURL=builtin-tuis.js.map