@aipper/aiws-spec 0.0.28 → 0.0.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 (101) hide show
  1. package/docs/cli-interface.md +10 -12
  2. package/docs/opencode-autonomous-swarm.md +178 -0
  3. package/docs/opencode-omo-adapter.md +123 -4
  4. package/docs/opencode-omo-validation-checklist.md +47 -0
  5. package/docs/opencode-subagent-first.md +187 -0
  6. package/docs/workflow-delegation-context-injection.md +217 -0
  7. package/docs/workflow-delegation-contracts.json +68 -1
  8. package/docs/workflow-delegation-contracts.md +3 -0
  9. package/docs/workflow-delegation-contracts.schema.json +95 -0
  10. package/docs/workflow-governance-rules.json +47 -6
  11. package/docs/workflow-governance-rules.md +7 -6
  12. package/docs/workflow-governance-rules.schema.json +39 -1
  13. package/docs/workflow-router-rules.json +36 -4
  14. package/docs/workflow-router-rules.md +8 -4
  15. package/docs/workflow-stage-contracts.json +2 -3
  16. package/docs/workflow-stage-contracts.md +2 -3
  17. package/package.json +1 -1
  18. package/templates/workspace/.agents/skills/using-aiws/SKILL.md +8 -6
  19. package/templates/workspace/.agents/skills/ws-commit/SKILL.md +6 -118
  20. package/templates/workspace/.agents/skills/ws-deliver/SKILL.md +6 -218
  21. package/templates/workspace/.agents/skills/ws-dev/SKILL.md +52 -141
  22. package/templates/workspace/.agents/skills/ws-finish/SKILL.md +6 -205
  23. package/templates/workspace/.agents/skills/ws-handoff/SKILL.md +10 -44
  24. package/templates/workspace/.agents/skills/ws-plan-verify/SKILL.md +6 -58
  25. package/templates/workspace/.agents/skills/ws-review/SKILL.md +6 -1
  26. package/templates/workspace/.agents/skills/ws-verify-before-complete/SKILL.md +12 -53
  27. package/templates/workspace/.claude/commands/ws-review.md +5 -1
  28. package/templates/workspace/.claude/settings.json.example +26 -0
  29. package/templates/workspace/.claude/skills/ws-commit/SKILL.md +6 -118
  30. package/templates/workspace/.claude/skills/ws-deliver/SKILL.md +6 -218
  31. package/templates/workspace/.claude/skills/ws-dev/SKILL.md +52 -141
  32. package/templates/workspace/.claude/skills/ws-finish/SKILL.md +6 -205
  33. package/templates/workspace/.claude/skills/ws-handoff/SKILL.md +10 -44
  34. package/templates/workspace/.claude/skills/ws-plan-verify/SKILL.md +6 -49
  35. package/templates/workspace/.claude/skills/ws-review/SKILL.md +6 -1
  36. package/templates/workspace/.claude/skills/ws-verify-before-complete/SKILL.md +12 -53
  37. package/templates/workspace/.opencode/command/ws-auto.md +33 -0
  38. package/templates/workspace/.opencode/command/ws-autonomy.md +25 -0
  39. package/templates/workspace/.opencode/command/ws-review.md +5 -1
  40. package/templates/workspace/.opencode/commands/ws-auto.md +33 -0
  41. package/templates/workspace/.opencode/commands/ws-autonomy.md +25 -0
  42. package/templates/workspace/.opencode/commands/ws-commit.md +4 -56
  43. package/templates/workspace/.opencode/commands/ws-deliver.md +10 -50
  44. package/templates/workspace/.opencode/commands/ws-finish.md +8 -65
  45. package/templates/workspace/.opencode/commands/ws-handoff.md +9 -17
  46. package/templates/workspace/.opencode/commands/ws-migrate.md +10 -17
  47. package/templates/workspace/.opencode/commands/ws-plan-verify.md +5 -15
  48. package/templates/workspace/.opencode/commands/ws-pull.md +6 -75
  49. package/templates/workspace/.opencode/commands/ws-push.md +7 -82
  50. package/templates/workspace/.opencode/commands/ws-review.md +5 -1
  51. package/templates/workspace/.opencode/commands/ws-submodule-setup.md +8 -47
  52. package/templates/workspace/.opencode/commands/ws-verify-before-complete.md +10 -19
  53. package/templates/workspace/.opencode/helpers/approval-whitelist-check.sh +148 -0
  54. package/templates/workspace/.opencode/helpers/approval-whitelist-run.sh +82 -0
  55. package/templates/workspace/.opencode/helpers/approval-whitelist-watchdog.sh +144 -0
  56. package/templates/workspace/.opencode/helpers/tmux-swarm-rescue.sh +56 -0
  57. package/templates/workspace/.opencode/helpers/tmux-swarm-scan.sh +46 -0
  58. package/templates/workspace/.opencode/oh-my-opencode.json.example +64 -4
  59. package/templates/workspace/.opencode/skills/using-aiws/SKILL.md +93 -77
  60. package/templates/workspace/.opencode/skills/ws-analyze/SKILL.md +1 -1
  61. package/templates/workspace/.opencode/skills/ws-auto/SKILL.md +46 -0
  62. package/templates/workspace/.opencode/skills/ws-autonomy/SKILL.md +62 -0
  63. package/templates/workspace/.opencode/skills/ws-bugfix/SKILL.md +1 -1
  64. package/templates/workspace/.opencode/skills/ws-commit/SKILL.md +6 -118
  65. package/templates/workspace/.opencode/skills/ws-delegate/SKILL.md +93 -40
  66. package/templates/workspace/.opencode/skills/ws-deliver/SKILL.md +6 -218
  67. package/templates/workspace/.opencode/skills/ws-dev/SKILL.md +53 -142
  68. package/templates/workspace/.opencode/skills/ws-dev-lite/SKILL.md +19 -6
  69. package/templates/workspace/.opencode/skills/ws-finish/SKILL.md +6 -205
  70. package/templates/workspace/.opencode/skills/ws-frontend-design/SKILL.md +1 -1
  71. package/templates/workspace/.opencode/skills/ws-handoff/SKILL.md +10 -44
  72. package/templates/workspace/.opencode/skills/ws-intake/SKILL.md +11 -2
  73. package/templates/workspace/.opencode/skills/ws-migrate/SKILL.md +6 -42
  74. package/templates/workspace/.opencode/skills/ws-plan/SKILL.md +4 -2
  75. package/templates/workspace/.opencode/skills/ws-plan-verify/SKILL.md +6 -49
  76. package/templates/workspace/.opencode/skills/ws-preflight/SKILL.md +1 -1
  77. package/templates/workspace/.opencode/skills/ws-pull/SKILL.md +8 -109
  78. package/templates/workspace/.opencode/skills/ws-push/SKILL.md +8 -100
  79. package/templates/workspace/.opencode/skills/ws-quality-review/SKILL.md +1 -1
  80. package/templates/workspace/.opencode/skills/ws-req-change/SKILL.md +1 -1
  81. package/templates/workspace/.opencode/skills/ws-req-contract-sync/SKILL.md +1 -1
  82. package/templates/workspace/.opencode/skills/ws-req-contract-validate/SKILL.md +1 -1
  83. package/templates/workspace/.opencode/skills/ws-req-flow-sync/SKILL.md +1 -1
  84. package/templates/workspace/.opencode/skills/ws-req-review/SKILL.md +1 -1
  85. package/templates/workspace/.opencode/skills/ws-review/SKILL.md +14 -3
  86. package/templates/workspace/.opencode/skills/ws-rule/SKILL.md +1 -1
  87. package/templates/workspace/.opencode/skills/ws-spec-review/SKILL.md +1 -1
  88. package/templates/workspace/.opencode/skills/ws-submodule-setup/SKILL.md +10 -57
  89. package/templates/workspace/.opencode/skills/ws-verify-before-complete/SKILL.md +12 -53
  90. package/templates/workspace/AGENTS.md +5 -2
  91. package/templates/workspace/AI_PROJECT.md +1 -1
  92. package/templates/workspace/changes/README.md +9 -12
  93. package/templates/workspace/manifest.json +265 -207
  94. package/templates/workspace/.agents/skills/ws-migrate/SKILL.md +0 -54
  95. package/templates/workspace/.agents/skills/ws-pull/SKILL.md +0 -119
  96. package/templates/workspace/.agents/skills/ws-push/SKILL.md +0 -110
  97. package/templates/workspace/.agents/skills/ws-submodule-setup/SKILL.md +0 -65
  98. package/templates/workspace/.claude/skills/ws-migrate/SKILL.md +0 -54
  99. package/templates/workspace/.claude/skills/ws-pull/SKILL.md +0 -119
  100. package/templates/workspace/.claude/skills/ws-push/SKILL.md +0 -110
  101. package/templates/workspace/.claude/skills/ws-submodule-setup/SKILL.md +0 -65
@@ -1,65 +0,0 @@
1
- ---
2
- name: ws-submodule-setup
3
- description: 子模块分支对齐(写入 .gitmodules 的 submodule.<name>.branch;减少 detached 与人为差异)
4
- ---
5
-
6
- 用中文输出(命令/路径/代码标识符保持原样不翻译)。
7
-
8
- 目标:
9
- - 为每个 submodule 写入 `.gitmodules` 的 `submodule.<name>.branch`,让 `ws-pull` / `ws-finish` 能确定性地“挂回分支/fast-forward push”,避免 origin 多分支时靠猜导致偏差。
10
- - 该变更是 **superproject 的团队真值**:需要提交 `.gitmodules`。
11
-
12
- 安全约束(强制):
13
- - 不自动提交、不自动 push(必须先输出 diff 并让用户确认)
14
- - 不在 submodule 中做破坏性操作(不 `reset --hard` / 不改动远端)
15
-
16
- 步骤(建议):
17
- 1) 确认工作区干净(否则停止):
18
- ```bash
19
- git status --porcelain
20
- ```
21
-
22
- 2) 列出 submodules(没有则停止并说明无需配置):
23
- ```bash
24
- test -f .gitmodules || { echo "no .gitmodules"; exit 0; }
25
- git config --file .gitmodules --get-regexp '^submodule\\..*\\.path$'
26
- ```
27
-
28
- 3) 对每个 submodule,输出当前配置与建议分支(让用户确认每个 submodule 的 branch):
29
- ```bash
30
- while read -r key sub_path; do
31
- name="${key#submodule.}"; name="${name%.path}"
32
- echo "== submodule: ${name} path=${sub_path} =="
33
- echo "[current] branch=$(git config --file .gitmodules --get submodule.${name}.branch || true)"
34
- echo "[origin] HEAD=$(git -C \"${sub_path}\" symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null || true)"
35
- git -C "${sub_path}" branch -r --list "origin/*" | sed -n '1,30p' || true
36
- echo "[choose] set one of:"
37
- echo " - a concrete branch, e.g. main / master / release/x.y"
38
- echo " - '.' to follow superproject current branch name (only if your team uses matching branch names)"
39
- done < <(git config --file .gitmodules --get-regexp '^submodule\\..*\\.path$')
40
- ```
41
-
42
- 4) 逐个写入分支配置(每次写完都回显,避免误配):
43
- ```bash
44
- # Example:
45
- # git submodule set-branch --branch main path/to/submodule
46
- # git submodule set-branch --branch . path/to/submodule
47
- ```
48
-
49
- 5) 输出变更并让用户确认是否提交:
50
- ```bash
51
- git diff -- .gitmodules
52
- git status --porcelain
53
- ```
54
-
55
- 6) 若用户确认要提交:
56
- ```bash
57
- git add .gitmodules
58
- git commit -m "chore(submodule): set tracking branches"
59
- ```
60
-
61
- 输出要求:
62
- - `Submodules:` name/path + 选择的 branch(每个都列出)
63
- - `Diff:` `.gitmodules` 的 diff(或至少 `git diff -- .gitmodules` 的摘要)
64
- - `Next:` 提示后续用 `$ws-pull` 拉取可自动减少 detached;`aiws validate` 会检查该配置是否齐全
65
-