maskweaver 0.9.3 → 0.9.5

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 (246) hide show
  1. package/README.ko.md +279 -325
  2. package/README.md +109 -113
  3. package/assets/commands/meta/commands.json +34 -34
  4. package/assets/commands/weave-agents.md +12 -52
  5. package/assets/commands/weave-approve.md +12 -51
  6. package/assets/commands/weave-archive.md +21 -0
  7. package/assets/commands/weave-build.md +20 -89
  8. package/assets/commands/weave-craft.md +22 -43
  9. package/assets/commands/weave-help.md +37 -106
  10. package/assets/commands/weave-init.md +26 -108
  11. package/assets/commands/weave-interview.md +13 -111
  12. package/assets/commands/weave-map.md +13 -99
  13. package/assets/commands/weave-prepare.md +23 -69
  14. package/assets/commands/weave-refine-plan.md +26 -59
  15. package/assets/commands/weave-repair.md +22 -70
  16. package/assets/commands/weave-status.md +22 -155
  17. package/assets/commands/weave-troubleshoot.md +11 -47
  18. package/assets/commands/weave-verify.md +23 -44
  19. package/assets/commands/weave-worktree.md +27 -69
  20. package/dist/cli/doctor.js +5 -21
  21. package/dist/cli/install.d.ts +0 -8
  22. package/dist/cli/install.js +0 -39
  23. package/dist/context/config.d.ts +0 -22
  24. package/dist/context/config.js +0 -28
  25. package/dist/context/feature.d.ts +0 -39
  26. package/dist/context/feature.js +0 -77
  27. package/dist/context/files.d.ts +0 -13
  28. package/dist/context/files.js +1 -24
  29. package/dist/context/index.d.ts +0 -7
  30. package/dist/context/index.js +0 -12
  31. package/dist/context/project.d.ts +0 -21
  32. package/dist/context/project.js +0 -30
  33. package/dist/context/types.d.ts +0 -48
  34. package/dist/context/types.js +0 -12
  35. package/dist/context/utils.d.ts +0 -18
  36. package/dist/context/utils.js +0 -27
  37. package/dist/core/engine/promptBuilder.d.ts +0 -17
  38. package/dist/core/engine/promptBuilder.js +0 -28
  39. package/dist/core/index.d.ts +0 -6
  40. package/dist/core/index.js +0 -9
  41. package/dist/core/loader/MaskLoader.d.ts +0 -23
  42. package/dist/core/loader/MaskLoader.js +0 -29
  43. package/dist/core/schema/types.d.ts +0 -47
  44. package/dist/core/schema/types.js +0 -6
  45. package/dist/core/schema/validator.d.ts +0 -14
  46. package/dist/core/schema/validator.js +0 -18
  47. package/dist/i18n/index.d.ts +0 -18
  48. package/dist/i18n/index.js +4 -23
  49. package/dist/index.d.ts +0 -8
  50. package/dist/index.js +0 -8
  51. package/dist/lib.d.ts +0 -5
  52. package/dist/lib.js +0 -12
  53. package/dist/memory/chunking.d.ts +0 -22
  54. package/dist/memory/chunking.js +2 -37
  55. package/dist/memory/core.d.ts +0 -29
  56. package/dist/memory/core.js +1 -52
  57. package/dist/memory/index.d.ts +0 -5
  58. package/dist/memory/index.js +0 -10
  59. package/dist/memory/indexer.d.ts +0 -21
  60. package/dist/memory/indexer.js +0 -44
  61. package/dist/memory/providers/examples.d.ts +0 -5
  62. package/dist/memory/providers/examples.js +4 -64
  63. package/dist/memory/providers/factory.d.ts +0 -44
  64. package/dist/memory/providers/factory.js +0 -46
  65. package/dist/memory/providers/index.d.ts +0 -26
  66. package/dist/memory/providers/index.js +0 -28
  67. package/dist/memory/providers/ollama.d.ts +0 -6
  68. package/dist/memory/providers/ollama.js +1 -8
  69. package/dist/memory/providers/openai.d.ts +0 -6
  70. package/dist/memory/providers/openai.js +1 -8
  71. package/dist/memory/providers/openrouter.d.ts +0 -6
  72. package/dist/memory/providers/openrouter.js +0 -8
  73. package/dist/memory/providers/text-only.d.ts +0 -13
  74. package/dist/memory/providers/text-only.js +0 -17
  75. package/dist/memory/providers/types.d.ts +0 -39
  76. package/dist/memory/providers/types.js +0 -7
  77. package/dist/memory/providers/voyage.d.ts +0 -22
  78. package/dist/memory/providers/voyage.js +1 -24
  79. package/dist/memory/search/hybrid.d.ts +0 -12
  80. package/dist/memory/search/hybrid.js +1 -22
  81. package/dist/memory/store/sqlite.d.ts +0 -72
  82. package/dist/memory/store/sqlite.js +4 -127
  83. package/dist/plugin/config/index.d.ts +0 -112
  84. package/dist/plugin/config/index.js +0 -115
  85. package/dist/plugin/index.d.ts +0 -13
  86. package/dist/plugin/index.js +1 -124
  87. package/dist/plugin/tools/command-registry.d.ts +0 -6
  88. package/dist/plugin/tools/command-registry.js +0 -14
  89. package/dist/plugin/tools/context.d.ts +0 -12
  90. package/dist/plugin/tools/context.js +0 -58
  91. package/dist/plugin/tools/maskSave.d.ts +0 -3
  92. package/dist/plugin/tools/maskSave.js +0 -3
  93. package/dist/plugin/tools/memoryGet.d.ts +0 -3
  94. package/dist/plugin/tools/memoryGet.js +0 -3
  95. package/dist/plugin/tools/memoryIndexer.d.ts +0 -3
  96. package/dist/plugin/tools/memoryIndexer.js +0 -10
  97. package/dist/plugin/tools/memorySearch.d.ts +0 -31
  98. package/dist/plugin/tools/memorySearch.js +0 -79
  99. package/dist/plugin/tools/memoryWrite.d.ts +0 -8
  100. package/dist/plugin/tools/memoryWrite.js +0 -32
  101. package/dist/plugin/tools/retrospect.d.ts +0 -3
  102. package/dist/plugin/tools/retrospect.js +0 -3
  103. package/dist/plugin/tools/slashcommand.d.ts +0 -11
  104. package/dist/plugin/tools/slashcommand.js +0 -38
  105. package/dist/plugin/tools/squad.d.ts +0 -12
  106. package/dist/plugin/tools/squad.js +11 -83
  107. package/dist/plugin/tools/weave.d.ts +0 -6
  108. package/dist/plugin/tools/weave.js +0 -78
  109. package/dist/plugin/types.d.ts +0 -20
  110. package/dist/plugin/types.js +0 -7
  111. package/dist/retrospect/index.d.ts +0 -7
  112. package/dist/retrospect/index.js +0 -9
  113. package/dist/retrospect/mask-save.d.ts +0 -12
  114. package/dist/retrospect/mask-save.js +1 -80
  115. package/dist/retrospect/retrospect.d.ts +0 -18
  116. package/dist/retrospect/retrospect.js +0 -63
  117. package/dist/retrospect/strategies/base.d.ts +0 -15
  118. package/dist/retrospect/strategies/base.js +0 -7
  119. package/dist/retrospect/strategies/deep.d.ts +0 -12
  120. package/dist/retrospect/strategies/deep.js +0 -24
  121. package/dist/retrospect/strategies/index.d.ts +0 -12
  122. package/dist/retrospect/strategies/index.js +0 -12
  123. package/dist/retrospect/strategies/quick.d.ts +0 -12
  124. package/dist/retrospect/strategies/quick.js +0 -19
  125. package/dist/retrospect/strategies/standard.d.ts +0 -12
  126. package/dist/retrospect/strategies/standard.js +0 -15
  127. package/dist/retrospect/types.d.ts +0 -7
  128. package/dist/retrospect/types.js +0 -7
  129. package/dist/shared/config.d.ts +0 -105
  130. package/dist/shared/config.js +0 -33
  131. package/dist/shared/errors.d.ts +0 -18
  132. package/dist/shared/errors.js +0 -19
  133. package/dist/shared/generate-agents.d.ts +0 -69
  134. package/dist/shared/generate-agents.js +2 -86
  135. package/dist/shared/image.d.ts +0 -67
  136. package/dist/shared/image.js +6 -104
  137. package/dist/shared/index.d.ts +0 -5
  138. package/dist/shared/index.js +0 -7
  139. package/dist/shared/model-registry.d.ts +0 -72
  140. package/dist/shared/model-registry.js +5 -95
  141. package/dist/shared/types.d.ts +0 -15
  142. package/dist/shared/types.js +0 -3
  143. package/dist/shared-context/dag.d.ts +0 -105
  144. package/dist/shared-context/dag.js +3 -114
  145. package/dist/shared-context/index.d.ts +0 -5
  146. package/dist/shared-context/index.js +0 -15
  147. package/dist/shared-context/logger.d.ts +0 -37
  148. package/dist/shared-context/logger.js +0 -41
  149. package/dist/shared-context/parallel-executor.d.ts +0 -54
  150. package/dist/shared-context/parallel-executor.js +4 -56
  151. package/dist/shared-context/session.d.ts +0 -56
  152. package/dist/shared-context/session.js +0 -47
  153. package/dist/shared-context/squad.d.ts +0 -68
  154. package/dist/shared-context/squad.js +0 -63
  155. package/dist/shared-context/storage.d.ts +0 -132
  156. package/dist/shared-context/storage.js +0 -116
  157. package/dist/shared-context/task.d.ts +0 -120
  158. package/dist/shared-context/task.js +0 -152
  159. package/dist/shared-context/test/dag.test.js +9 -14
  160. package/dist/shared-context/test/logger.test.d.ts +0 -8
  161. package/dist/shared-context/test/logger.test.js +0 -52
  162. package/dist/shared-context/test/session.test.d.ts +0 -7
  163. package/dist/shared-context/test/session.test.js +0 -63
  164. package/dist/shared-context/test/squad.test.d.ts +0 -10
  165. package/dist/shared-context/test/squad.test.js +2 -68
  166. package/dist/shared-context/test/storage.test.d.ts +0 -8
  167. package/dist/shared-context/test/storage.test.js +0 -68
  168. package/dist/shared-context/test/task.test.d.ts +0 -7
  169. package/dist/shared-context/test/task.test.js +0 -54
  170. package/dist/shared-context/test/watchdog.test.d.ts +0 -7
  171. package/dist/shared-context/test/watchdog.test.js +3 -58
  172. package/dist/shared-context/types.d.ts +0 -215
  173. package/dist/shared-context/types.js +0 -125
  174. package/dist/shared-context/watchdog.d.ts +0 -127
  175. package/dist/shared-context/watchdog.js +0 -148
  176. package/dist/shared-context/worktree.d.ts +0 -68
  177. package/dist/shared-context/worktree.js +2 -34
  178. package/dist/verify/budget.d.ts +0 -29
  179. package/dist/verify/budget.js +0 -34
  180. package/dist/verify/critical-files.d.ts +0 -17
  181. package/dist/verify/critical-files.js +0 -37
  182. package/dist/verify/escalation.d.ts +0 -20
  183. package/dist/verify/escalation.js +0 -22
  184. package/dist/verify/index.d.ts +0 -5
  185. package/dist/verify/index.js +0 -11
  186. package/dist/verify/prompts.d.ts +0 -20
  187. package/dist/verify/prompts.js +0 -20
  188. package/dist/verify/types.d.ts +0 -26
  189. package/dist/verify/types.js +1 -12
  190. package/dist/verify/verifier.d.ts +0 -29
  191. package/dist/verify/verifier.js +0 -54
  192. package/dist/version.d.ts +1 -16
  193. package/dist/version.js +1 -16
  194. package/dist/weave/bridge.d.ts +0 -35
  195. package/dist/weave/bridge.js +0 -51
  196. package/dist/weave/environment/detector.d.ts +0 -6
  197. package/dist/weave/environment/detector.js +4 -45
  198. package/dist/weave/environment/index.d.ts +0 -19
  199. package/dist/weave/environment/index.js +1 -39
  200. package/dist/weave/environment/issues.d.ts +0 -35
  201. package/dist/weave/environment/issues.js +0 -59
  202. package/dist/weave/git.d.ts +0 -8
  203. package/dist/weave/git.js +0 -8
  204. package/dist/weave/index.d.ts +0 -13
  205. package/dist/weave/index.js +2 -28
  206. package/dist/weave/knowledge/global.d.ts +0 -39
  207. package/dist/weave/knowledge/global.js +2 -78
  208. package/dist/weave/loop.js +0 -3
  209. package/dist/weave/orchestrator.d.ts +0 -69
  210. package/dist/weave/orchestrator.js +1 -101
  211. package/dist/weave/phase-manager.d.ts +0 -64
  212. package/dist/weave/phase-manager.js +0 -89
  213. package/dist/weave/security/secret-scan.d.ts +0 -14
  214. package/dist/weave/security/secret-scan.js +0 -19
  215. package/dist/weave/stages/build.js +0 -15
  216. package/dist/weave/stages/execute.d.ts +0 -42
  217. package/dist/weave/stages/execute.js +4 -86
  218. package/dist/weave/stages/handoff.d.ts +0 -7
  219. package/dist/weave/stages/handoff.js +0 -43
  220. package/dist/weave/stages/index.d.ts +0 -3
  221. package/dist/weave/stages/index.js +0 -3
  222. package/dist/weave/stages/intake.d.ts +0 -8
  223. package/dist/weave/stages/intake.js +5 -65
  224. package/dist/weave/stages/map.d.ts +0 -1
  225. package/dist/weave/stages/openspec.d.ts +0 -1
  226. package/dist/weave/stages/plan.d.ts +0 -11
  227. package/dist/weave/stages/plan.js +1 -53
  228. package/dist/weave/stages/refine.d.ts +0 -7
  229. package/dist/weave/stages/refine.js +0 -7
  230. package/dist/weave/stages/research.d.ts +0 -6
  231. package/dist/weave/stages/research.js +0 -6
  232. package/dist/weave/stages/spec.d.ts +0 -12
  233. package/dist/weave/stages/spec.js +0 -17
  234. package/dist/weave/types.d.ts +0 -20
  235. package/dist/weave/types.js +0 -5
  236. package/dist/weave/verification/commands.d.ts +0 -12
  237. package/dist/weave/verification/commands.js +0 -19
  238. package/dist/weave/verification/index.d.ts +0 -6
  239. package/dist/weave/verification/index.js +1 -19
  240. package/dist/weave/verification/playwright.d.ts +0 -47
  241. package/dist/weave/verification/playwright.js +1 -90
  242. package/dist/weave/worktree.d.ts +0 -16
  243. package/dist/weave/worktree.js +0 -23
  244. package/dist/weave/yaml-repair.d.ts +0 -39
  245. package/dist/weave/yaml-repair.js +13 -116
  246. package/package.json +1 -1
@@ -1,62 +1,22 @@
1
1
  ---
2
- description: 에이전트 파일 동기화 설정 초기화
2
+ description: Sync generated agent files and initialize runtime configuration
3
3
  ---
4
4
 
5
- # /weave-agents - 에이전트 및 설정 관리
5
+ # /weave-agents
6
6
 
7
- ## 개요
7
+ Manage the agent files that Maskweaver exposes to opencode.
8
8
 
9
- 에이전트 파일과 설정 파일을 관리합니다. 기존 `sync-agents`와 `init-config`를 통합한 명령어입니다.
9
+ Use the `weave` tool:
10
10
 
11
- | 플래그 | 설명 | 대응 기존 명령어 |
12
- |--------|------|-----------------|
13
- | `sync` | 설정 기준으로 더미 에이전트 파일 강제 재생성 | `weave sync-agents` |
14
- | `init` | 기본 설정 파일(maskweaver.config.json) 생성 | `weave init-config` |
15
-
16
- ---
17
-
18
- ## 사용법
19
-
20
- ```bash
21
- # 에이전트 파일 동기화
22
- /weave-agents --sync
23
-
24
- # 기본 설정 파일 생성
25
- /weave-agents --init
26
-
27
- # 동시 실행
28
- /weave-agents --sync --init
29
- ```
30
-
31
- ---
32
-
33
- ## 입력
34
-
35
- ```yaml
36
- sync: true # (선택) 에이전트 파일 강제 재생성
37
- init: true # (선택) 기본 설정 파일 생성 (기존 파일 덮어쓰지 않음)
38
- ```
39
-
40
- ---
41
-
42
- ## 출력 예시
43
-
44
- ### 동기화
45
-
46
- ```markdown
47
- ## 🔄 Agent Sync
48
-
49
- ✅ Updated: `.opencode/agents/dummy-human-1.md`
50
- ✅ Updated: `.opencode/agents/dummy-human-2.md`
51
-
52
- > ⚠️ **Important:** You may need to restart OpenCode for the updated agent files to take effect.
11
+ ```txt
12
+ weave command=agents sync=true
13
+ weave command=agents init=true
53
14
  ```
54
15
 
55
- ### 설정 초기화
16
+ ## Modes
56
17
 
57
- ```markdown
58
- ## 📝 Config Initialization
18
+ - `sync=true`: regenerate `.opencode/agents/*.md` from the configured dummy-human pool.
19
+ - `init=true`: create the default runtime and plugin configuration files when they do not exist.
20
+ - `sync=true init=true`: initialize config and refresh generated agent files in one pass.
59
21
 
60
- Created runtime config: maskweaver.config.json
61
- ✅ Created plugin config: .opencode/maskweaver.json
62
- ```
22
+ Prefer this command when agent markdown files are missing, stale, or out of sync with `maskweaver.config.json`.
@@ -1,61 +1,22 @@
1
1
  ---
2
- description: Plan 승인 게이트 통과 (구현 필수)
2
+ description: Approve the plan or finalize a crafted phase
3
3
  ---
4
4
 
5
- # /weave-approve - Plan 승인 게이트
5
+ # /weave-approve
6
6
 
7
- ## 개요
7
+ Pass the approval gate before implementation, or finalize a phase after craft and verify have completed.
8
8
 
9
- 구현 **반드시 통과해야 하는 승인 게이트**입니다. Plan을 검토하고 승인하거나, 이미 craft 완료된 Phase를 최종 확정(finalize)합니다.
9
+ Use the `weave` tool:
10
10
 
11
- **이전 명령어**: `approve-plan` (v0.9까지 alias로 동작)
12
-
13
- ---
14
-
15
- ## 사용법
16
-
17
- ```bash
18
- # Plan 승인 (가장 일반적)
19
- /weave-approve
20
-
21
- # Craft 완료된 Phase 최종 확정
22
- /weave-approve P1
11
+ ```txt
12
+ weave command=approve
13
+ weave command=approve phaseId="P1"
23
14
  ```
24
15
 
25
- ---
26
-
27
- ## 입력
28
-
29
- ```yaml
30
- phaseId: "P1" # (선택) 최종 확정할 Phase ID. 미지정 시 Plan 승인
31
- planReview: "..." # (선택) Plan 검토 요약
32
- applyNotes: true # (선택) plan-notes 자동 반영 여부 (기본: true)
33
- ```
34
-
35
- ---
16
+ ## Behavior
36
17
 
37
- ## 동작 흐름
18
+ - Without `phaseId`, approve the active plan so implementation can begin.
19
+ - With `phaseId`, finalize the crafted phase after verification.
20
+ - `applyNotes=true` applies structured notes before approval when plan notes are present.
38
21
 
39
- ```
40
- 1. 활성 Plan 로드
41
- 2. phaseId 미지정 → Plan 승인
42
- └─ applyNotes=true → plan-notes 자동 반영 후 승인
43
- 3. phaseId 지정 → Phase 최종 확정 (finalize)
44
- └─ verify → 통과 시 완료 처리
45
- ```
46
-
47
- ---
48
-
49
- ## 출력 예시
50
-
51
- ### Plan 승인
52
-
53
- ```markdown
54
- ## ✅ Plan Approved
55
-
56
- - Plan: `.opencode/weave/plans/emotion-diary.yaml`
57
- - Approved at: 2025-04-28T10:30:00.000Z
58
- - Review note: Approved without additional notes.
59
-
60
- 다음 단계: `weave command=craft phaseId="P1"`
61
- ```
22
+ Do not treat approval as a substitute for verification. Use `/weave-verify` or `/build` for evidence before finalizing work.
@@ -0,0 +1,21 @@
1
+ ---
2
+ description: Archive the verified active change artifact
3
+ ---
4
+
5
+ # /weave-archive
6
+
7
+ Archive the active change after implementation has been verified and the phase or plan no longer needs to stay active.
8
+
9
+ Use the `weave` tool:
10
+
11
+ ```txt
12
+ weave command=archive
13
+ ```
14
+
15
+ ## When To Use
16
+
17
+ - The active change has passed build/test verification.
18
+ - The user has accepted the implementation result.
19
+ - The plan should be preserved for history but removed from the active workflow.
20
+
21
+ Do not archive unverified work. Run `/weave-verify` or `/build` first and keep the verification result in the change record.
@@ -1,99 +1,30 @@
1
1
  ---
2
- description: 자율 빌드 루프 실행 및 관리 (run, status, stop, list, resume, sync)
2
+ description: Run, resume, stop, list, or inspect autonomous build loops
3
3
  ---
4
4
 
5
- # /weave-build - 자율 빌드 루프 실행 및 관리
5
+ # /weave-build
6
6
 
7
- ## 개요
7
+ Run the Maskweaver autonomous build loop for approved phases, or manage an existing build loop.
8
8
 
9
- 승인된 플랜의 지정된 Phase(들)를 **자율 빌드 루프**로 실행하거나, 기존 빌드의 상태를 확인/관리합니다.
9
+ Use the `weave` tool:
10
10
 
11
- | 서브 액션 | 설명 | 대응 기존 명령어 |
12
- |-----------|------|-----------------|
13
- | `run` (기본) | 활성 Phase를 Ralph-loop로 자율 실행 | `weave build`, `weave loop-run` |
14
- | `status` | 특정 빌드/루프의 상태 확인 | `weave loop-status` |
15
- | `stop` | 실행 중인 빌드/루프 중단 요청 | `weave loop-stop` |
16
- | `list` | 모든 빌드/루프 목록 조회 | `weave loop-list` |
17
- | `resume` | 중단(blocked)된 빌드 재개 | `weave build-resume` |
18
- | `sync` | 위임된 squad 결과 동기화 | `weave loop-sync` |
19
-
20
- ---
21
-
22
- ## 사용법
23
-
24
- ```bash
25
- # 자율 빌드 시작 (기본)
26
- /weave-build
27
- /weave-build P1,P2
28
-
29
- # 빌드 상태 확인
30
- /weave-build --status build-20250428-a1b2
31
-
32
- # 빌드 중단
33
- /weave-build --stop build-20250428-a1b2
34
-
35
- # 빌드 목록
36
- /weave-build --list
37
-
38
- # 중단 빌드 재개
39
- /weave-build --resume build-20250428-a1b2
40
-
41
- # 위임 결과 동기화
42
- /weave-build --sync build-20250428-a1b2
11
+ ```txt
12
+ weave command=build
13
+ weave command=build action=run phaseIds="P1,P2"
14
+ weave command=build action=status buildId="build-20250428-a1b2"
15
+ weave command=build action=stop buildId="build-20250428-a1b2"
16
+ weave command=build action=list
17
+ weave command=build action=resume buildId="build-20250428-a1b2"
18
+ weave command=build action=sync buildId="build-20250428-a1b2"
43
19
  ```
44
20
 
45
- ---
46
-
47
- ## 입력
48
-
49
- ```yaml
50
- action: run | status | stop | list | resume | sync # (선택) 서브 액션. 기본값: run
51
- phaseIds: "P1,P2" # (선택, action=run) 쉼표로 구분된 Phase ID
52
- buildId: "build-xxx" # (선택, action=status/stop/resume/sync) 대상 빌드 ID
53
- maxRetries: 3 # (선택, action=run) 태스크당 최대 재시도
54
- maxIterations: 1 # (선택) 최대 반복 횟수
55
- maxNoProgress: 1 # (선택) 무진행 허용 횟수
56
- ```
57
-
58
- ---
59
-
60
- ## 출력 예시
61
-
62
- ### 성공 (run)
63
-
64
- ```markdown
65
- ## ✅ Build Complete
66
-
67
- **Build ID**: `build-20250428-a1b2`
68
- **Plan**: `emotion-diary`
69
- **Phases**: P1, P2
70
-
71
- | Phase | 상태 | 소요 시간 |
72
- |-------|------|----------|
73
- | P1 | ✅ 완료 | 12분 |
74
- | P2 | ✅ 완료 | 8분 |
75
- ```
76
-
77
- ### 일부 실패 (blocked)
78
-
79
- ```markdown
80
- ## ⚠️ Build Blocked
81
-
82
- **Build ID**: `build-20250428-c3d4`
83
- **Plan**: `emotion-diary`
84
-
85
- | Phase | 상태 | 실패 원인 |
86
- |-------|------|----------|
87
- | P1 | ✅ 완료 | - |
88
- | P2 | 🚫 blocked | 타입 검증 실패 (3회 재시도 소진) |
89
-
90
- **다음 동작**: `weave build action=resume buildId="build-20250428-c3d4"`
91
- ```
92
-
93
- ---
21
+ ## Actions
94
22
 
95
- ## 관련 명령어
23
+ - `run`: execute selected phases, or the next approved work when phase IDs are omitted.
24
+ - `status`: inspect one build loop.
25
+ - `stop`: request a running loop to stop.
26
+ - `list`: show known build loops.
27
+ - `resume`: continue a blocked or stopped build.
28
+ - `sync`: import squad/runtime results into the build record.
96
29
 
97
- - `/weave-craft [phaseId]` 단일 Phase 수동 실행 준비
98
- - `/weave-verify` — 현재 워크트리 검증
99
- - `/weave-status` — 전체 진행 상황
30
+ The short `/build` command is also installed for opencode users who expect build to appear as a direct command.
@@ -1,43 +1,22 @@
1
- ---
2
- description: Phase 실행 준비 (실행 컨텍스트 생성)
3
- ---
4
-
5
- # /weave-craft - Phase 실행 준비
6
-
7
- ## 개요
8
-
9
- `/weave-craft`는 활성 플랜의 Phase를 실행 가능한 상태로 준비합니다.
10
-
11
- - 대상 phase 자동 선택(또는 직접 지정)
12
- - phase 상태/실행 계획 로드
13
- - 구현에 필요한 다음 액션 안내
14
-
15
- > 이 명령은 과거 자동 루프를 돌리지 않습니다.
16
-
17
- ## 사용법
18
-
19
- ```txt
20
- /weave-craft $ARGUMENTS
21
- ```
22
-
23
- - `$ARGUMENTS` = 선택적 Phase ID (`P1`, `P2` 등)
24
-
25
- 예시:
26
-
27
- ```txt
28
- /weave-craft
29
- /weave-craft P1
30
- ```
31
-
32
- ## 내부 호출
33
-
34
- ```txt
35
- weave command=craft phaseId="$ARGUMENTS"
36
- ```
37
-
38
- ## 권장 흐름
39
-
40
- 1. `weave command=craft`로 phase 실행 컨텍스트 준비
41
- 2. 코드 구현/위임 수행
42
- 3. `weave command=verify`로 검증
43
- 4. `weave command=approve-plan`으로 phase 확정
1
+ ---
2
+ description: Prepare execution context for a phase
3
+ ---
4
+
5
+ # /weave-craft
6
+
7
+ Prepare one approved phase for implementation.
8
+
9
+ Use the `weave` tool:
10
+
11
+ ```txt
12
+ weave command=craft
13
+ weave command=craft phaseId="P1"
14
+ ```
15
+
16
+ ## Behavior
17
+
18
+ - Selects the next runnable phase when `phaseId` is omitted.
19
+ - Loads plan, spec, masks, and execution context for the chosen phase.
20
+ - Gives the implementer the bounded task context needed to start work.
21
+
22
+ After implementation, run `/weave-verify` or `/build` before using `/weave-approve` to finalize the phase.
@@ -1,114 +1,45 @@
1
1
  ---
2
- description: Weave 워크플로우 도움말
2
+ description: Show weave workflow help
3
3
  ---
4
4
 
5
- # /weave-help - Weave 워크플로우 도움말
5
+ # /weave-help
6
6
 
7
- > **Maskweaver v0.9.1**
7
+ Weave is Maskweaver's phase-driven workflow for moving from requirements to verified implementation.
8
8
 
9
- ## Weave란?
9
+ ## Main Flow
10
10
 
11
- Maskweaver의 **Phase-Driven Development** 워크플로우입니다.
12
- "AI가 검증하고, 유저가 확인한다"
13
-
14
- **멀티 플랜**: 하나의 프로젝트에서 여러 플랜을 동시에 관리할 수 있습니다.
15
-
16
- ---
17
-
18
- ## 버전 확인
19
-
20
- | 방법 | 명령어 |
21
- |------|--------|
22
- | CLI | `maskweaver --version` 또는 `maskweaver -V` |
23
- | npm | `npm list maskweaver` |
24
- | 채팅 내 | `maskweaver_status` 도구 사용 |
25
- | Weave | `/weave help` |
26
-
27
- ---
28
-
29
- ## 핵심 철학
30
-
31
- ```
32
- 1. 테스트 먼저 (Protect Before Change)
33
- 2. 작게 자주 (Small & Often)
34
- 3. 동작이 정답 (Working > Perfect)
11
+ ```txt
12
+ /weave-init
13
+ /weave-map
14
+ /weave-interview
15
+ /weave-prepare
16
+ /weave-refine-plan
17
+ /weave-approve
18
+ /weave-craft
19
+ /build
20
+ /weave-verify
21
+ /weave-archive
35
22
  ```
36
23
 
37
- ---
38
-
39
- ## 통합 명령어 목록 (v0.9+)
40
-
41
- | 명령어 | 설명 |
42
- |--------|------|
43
- | `/weave-init` | Weave 초기화 (프로젝트당 1회) |
44
- | `/weave-map [deep]` | 코드베이스 구조 분석 + GDC 그래프 연동 |
45
- | `/weave-interview [docs]` | 코드베이스 기반 멀티스텝 요구사항 인터뷰 |
46
- | `/weave-prepare [docs]` | **research + spec + plan 번에 생성** (큰 계획은 자동 분할) |
47
- | `/weave-refine-plan` | `tasks/plan-notes.md` 지시문을 plan에 자동 반영 |
48
- | `/weave-approve` | 구현 계획 승인 게이트 통과 |
49
- | `/weave-craft [phase-id]` | 활성 플랜의 Phase 실행 준비 (실행 컨텍스트 생성) |
50
- | `/weave-build [action]` | **자율 빌드 루프** run, status, stop, list, resume, sync |
51
- | `/weave-status` | 전체 플랜 목록 + 진행 상황 |
52
- | `/weave-worktree` | git worktree 기반 병렬 작업 관리 |
53
- | `/weave-verify` | 빌드/테스트 검증 실행 (프로젝트 유형 자동 감지) |
54
- | `/weave-archive` | 검증된 변경사항 아카이브 |
55
- | `/weave-troubleshoot [error]` | 글로벌 지식 검색 / 솔루션 기록 (`--record`) |
56
- | `/weave-repair` | plan YAML 자동 검사 수리 |
57
- | `/weave-agents [flags]` | 에이전트 동기화 (`--sync`) / 설정 초기화 (`--init`) |
58
- | `/weave-help` | 도움말 |
59
-
60
- ---
61
-
62
- ## 워크플로우
63
-
64
- ```
65
- /weave-init ← 프로젝트 초기화 (1회)
66
-
67
- /weave-prepare docs/ ← research + spec + plan 한 번에 생성
68
-
69
- /weave-refine-plan ← (선택) plan-notes 기반 자동 정제
70
-
71
- /weave-approve ← 구현 전 계획 승인 (필수)
72
-
73
- /weave-craft ← 다음 Phase 자동 선택 실행 준비
74
-
75
- /weave-build ← 자율 빌드 루프 실행
76
-
77
- /weave-verify ← 검증
78
-
79
- /weave-archive ← 아카이브
80
- ```
81
-
82
- ---
83
-
84
- ## 파일 구조
85
-
86
- ```
87
- .opencode/weave/
88
- ├── state.yaml ← 활성 플랜 추적
89
- ├── specs/
90
- │ └── *.yaml ← baseline spec
91
- └── plans/
92
- └── *.yaml ← 플랜
93
- ```
94
-
95
- ---
96
-
97
- ## 마이그레이션 노트 (v0.9)
98
-
99
- | 기존 명령어 | 새 명령어 | 비고 |
100
- |-------------|-----------|------|
101
- | `approve-plan` | `approve` | alias로 v0.9까지 동작 |
102
- | `build-resume` | `build --resume` | alias로 v0.9까지 동작 |
103
- | `loop-run` | `build` | alias로 v0.9까지 동작 |
104
- | `loop-status` | `build --status` | alias로 v0.9까지 동작 |
105
- | `loop-stop` | `build --stop` | alias로 v0.9까지 동작 |
106
- | `loop-list` | `build --list` | alias로 v0.9까지 동작 |
107
- | `loop-sync` | `build --sync` | alias로 v0.9까지 동작 |
108
- | `record` | `troubleshoot --record` | alias로 v0.9까지 동작 |
109
- | `sync-agents` | `agents --sync` | alias로 v0.9까지 동작 |
110
- | `init-config` | `agents --init` | alias로 v0.9까지 동작 |
111
- | `research` | `prepare` | deprecated alias (v0.9 경고) |
112
- | `spec` | `prepare` | deprecated alias (v0.9 경고) |
113
- | `design` | `prepare` | deprecated alias (v0.9 경고) |
114
- | `flow` | `prepare` → `approve` → `craft` | deprecated alias (v0.9 경고) |
24
+ ## Commands
25
+
26
+ | Command | Purpose |
27
+ | --- | --- |
28
+ | `/weave-init` | Initialize workspace files and probe GDC integration |
29
+ | `/weave-map` | Analyze codebase structure |
30
+ | `/weave-interview` | Clarify requirements before planning |
31
+ | `/weave-prepare` | Create research, spec, and plan artifacts |
32
+ | `/weave-refine-plan` | Apply structured notes to the active plan |
33
+ | `/weave-approve` | Approve a plan or finalize a verified phase |
34
+ | `/weave-craft` | Prepare phase execution context |
35
+ | `/build` | Run or manage the autonomous build loop |
36
+ | `/weave-build` | Long-form build command |
37
+ | `/weave-status` | View plan and phase progress |
38
+ | `/weave-worktree` | Manage git worktrees for parallel work |
39
+ | `/weave-verify` | Run build/test verification |
40
+ | `/weave-archive` | Archive a verified active change |
41
+ | `/weave-troubleshoot` | Search or record solution knowledge |
42
+ | `/weave-repair` | Repair corrupted plan YAML |
43
+ | `/weave-agents` | Sync generated agent files and config |
44
+
45
+ Use `/build` for the common autonomous build path. Keep `/weave-*` for workflow commands so opencode built-in commands stay clear.
@@ -1,108 +1,26 @@
1
- ---
2
- description: Weave 워크플로우 초기화 (프로젝트별 1회)
3
- ---
4
-
5
- # /weave-init - Weave 워크플로우 초기화
6
-
7
- ## 개요
8
-
9
- 현재 프로젝트에서 Weave 워크플로우를 사용할 수 있도록 초기화합니다.
10
- **프로젝트당 1회**만 실행하면 됩니다.
11
-
12
- ---
13
-
14
- ## 수행 작업
15
-
16
- ### 1. `.ignore` 파일 설정
17
-
18
- 프로젝트 루트에 `.ignore` 파일을 생성/수정하여 `.opencode/weave/` 경로를 AI 도구가 탐색할 수 있도록 합니다.
19
-
20
- **왜 필요한가?**
21
- - `.gitignore`에 `.opencode/`가 있으면 ripgrep 기반 도구(glob, grep, list)가 PLAN 파일을 찾지 못합니다
22
- - `.ignore` 파일로 이 규칙을 덮어씌워 AI가 접근할 수 있게 합니다
23
- - Git 추적 상태는 변하지 않습니다 (`.gitignore`는 그대로)
24
-
25
- **생성할 내용**:
26
- ```
27
- # Allow AI tools to access weave plans (overrides .gitignore)
28
- !.opencode/weave/
29
- ```
30
-
31
- 만약 `.ignore` 파일이 이미 있다면, `!.opencode/weave/` 줄만 추가합니다 (중복 방지).
32
-
33
- ### 2. 디렉토리 구조 생성
34
-
35
- ```bash
36
- mkdir -p .opencode/weave/plans
37
- ```
38
-
39
- ### 3. `state.yaml` 초기화
40
-
41
- `.opencode/weave/state.yaml` 파일을 생성합니다:
42
-
43
- ```yaml
44
- # Weave Multi-Plan State
45
- # 이 파일은 활성 플랜을 추적합니다
46
- active_plan: null
47
- ```
48
-
49
- ### 4. 기존 PLAN.yaml 마이그레이션 (해당 시)
50
-
51
- 만약 `.opencode/weave/PLAN.yaml` (구버전 단일 플랜)이 존재하면:
52
- 1. 기존 PLAN을 읽어 multi-plan 포맷으로 저장
53
- 2. `state.yaml`의 `active_plan`을 해당 플랜으로 설정
54
- 3. 기존 PLAN.yaml 삭제 (가능한 경우)
55
-
56
- ### 5. GDC 연동 점검 및 그래프 동기화
57
-
58
- `weave init`은 GDC 연동 상태를 확인합니다.
59
-
60
- - `.gdc` 워크스페이스 미감지 시:
61
- - 안내 메시지 출력 (`gdc init --language <lang>`)
62
- - 감지 + 연동 활성화 시:
63
- - `gdc version --machine`
64
- - `gdc sync --machine`
65
- - `gdc check --machine`
66
- - `gdc stats --machine`
67
-
68
- 이 단계는 **정보 제공 및 부트스트랩 목적**이며, 실패해도 Weave 초기화 자체는 완료됩니다.
69
-
70
- ---
71
-
72
- ## 완료 메시지
73
-
74
- ```markdown
75
- ## ✅ Weave 초기화 완료!
76
-
77
- ### 생성된 파일
78
- - `.ignore` — AI 도구 접근 허용 설정
79
- - `.opencode/weave/state.yaml` — 플랜 상태 추적
80
- - `.opencode/weave/plans/` — 플랜 저장 디렉토리
81
-
82
- ### 다음 단계
83
- 프로젝트 계획을 세우려면:
84
- `weave command=prepare docsPath="docs/"`
85
- ```
86
-
87
- ---
88
-
89
- ## 이미 초기화된 경우
90
-
91
- `.opencode/weave/state.yaml`이 이미 존재하면:
92
-
93
- ```markdown
94
- ℹ️ 이미 Weave가 초기화되어 있습니다.
95
-
96
- 활성 플랜: {active_plan 또는 "없음"}
97
- 전체 플랜 수: {plans/ 내 yaml 파일 수}
98
-
99
- 상태 확인: `/weave-status`
100
- ```
101
-
102
- ---
103
-
104
- ## 주의사항
105
-
106
- - `.ignore` 파일은 `.gitignore`와 **같은 레벨(프로젝트 루트)**에 생성합니다
107
- - `.ignore`는 Git이 아니라 ripgrep만 참조하므로 Git 추적에 영향 없음
108
- - `.ignore` 파일 자체는 `.gitignore`에 넣지 마세요 (AI가 읽어야 하므로)
1
+ ---
2
+ description: Initialize weave workspace files and probe GDC integration
3
+ ---
4
+
5
+ # /weave-init
6
+
7
+ Initialize the Weave workspace for the current project.
8
+
9
+ Use the `weave` tool:
10
+
11
+ ```txt
12
+ weave command=init
13
+ ```
14
+
15
+ ## What It Creates
16
+
17
+ - `.opencode/weave/state.yaml`
18
+ - `.opencode/weave/plans/`
19
+ - `.opencode/weave/specs/`
20
+ - `.ignore` entry that lets AI tools read `.opencode/weave/` even when `.opencode/` is gitignored
21
+
22
+ ## GDC Probe
23
+
24
+ When GDC is present, init probes the workspace and reports status. Missing or unavailable GDC should be reported as a setup hint, not as a failed Weave initialization.
25
+
26
+ Run this once per project root. Worktrees should be created with `/weave-worktree` so Weave artifacts are bootstrapped correctly.