maskweaver 0.8.2 → 0.8.4

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 (36) hide show
  1. package/README.ko.md +64 -47
  2. package/README.md +63 -46
  3. package/assets/commands/weave-craft.md +26 -398
  4. package/assets/commands/weave-flow.md +13 -30
  5. package/assets/commands/weave-help.md +4 -4
  6. package/assets/commands/weave-prepare.md +1 -1
  7. package/assets/commands/weave-refine-plan.md +0 -1
  8. package/assets/commands/weave-status.md +2 -7
  9. package/dist/plugin/tools/slashcommand.js +6 -6
  10. package/dist/plugin/tools/slashcommand.js.map +1 -1
  11. package/dist/plugin/tools/weave.d.ts +0 -2
  12. package/dist/plugin/tools/weave.d.ts.map +1 -1
  13. package/dist/plugin/tools/weave.js +316 -826
  14. package/dist/plugin/tools/weave.js.map +1 -1
  15. package/dist/shared/config.d.ts +14 -0
  16. package/dist/shared/config.d.ts.map +1 -1
  17. package/dist/shared/config.js +7 -0
  18. package/dist/shared/config.js.map +1 -1
  19. package/dist/shared-context/test/squad.test.js +2 -2
  20. package/dist/shared-context/test/squad.test.js.map +1 -1
  21. package/dist/shared-context/test/storage.test.js +3 -3
  22. package/dist/shared-context/test/storage.test.js.map +1 -1
  23. package/dist/shared-context/test/task.test.js +6 -6
  24. package/dist/shared-context/test/task.test.js.map +1 -1
  25. package/dist/weave/gdc.d.ts +59 -0
  26. package/dist/weave/gdc.d.ts.map +1 -0
  27. package/dist/weave/gdc.js +221 -0
  28. package/dist/weave/gdc.js.map +1 -0
  29. package/dist/weave/stages/execute.d.ts.map +1 -1
  30. package/dist/weave/stages/execute.js +6 -7
  31. package/dist/weave/stages/execute.js.map +1 -1
  32. package/dist/weave/stages/research.d.ts +1 -1
  33. package/dist/weave/stages/research.d.ts.map +1 -1
  34. package/dist/weave/stages/research.js +225 -5
  35. package/dist/weave/stages/research.js.map +1 -1
  36. package/package.json +8 -2
package/README.ko.md CHANGED
@@ -24,9 +24,10 @@
24
24
  - **전문가 페르소나 (Masks)**: 전설적인 개발자들의 철학을 담은 표준 YAML 프로필.
25
25
  - **스마트 위임**: OpenCode에 최적화된 멀티 에이전트 워크플로우.
26
26
  - **프로젝트 메모리**: 코드베이스 전체에 대한 하이브리드 의미론적 검색.
27
- - **🆕 Weave 워크플로우**: AI 자체 검증이 포함된 Phase 기반 개발.
28
-
29
- ---
27
+ - **🆕 Weave 워크플로우**: AI 자체 검증이 포함된 Phase 기반 개발.
28
+ - **🔗 GDC 통합**: Graph-Driven Codebase 지원으로 리서치 품질 향상 및 설계 시점 검증 게이트 추가.
29
+
30
+ ---
30
31
 
31
32
  ## 왜 Maskweaver인가요?
32
33
 
@@ -165,7 +166,7 @@ profile:
165
166
 
166
167
  **Phase 기반 개발** — "AI가 검증하고, 유저가 확인한다"
167
168
 
168
- Weave는 Maskweaver의 핵심 워크플로우입니다. 작업을 테스트 가능한 Phase로 나누고, 전문가 마스크를 자동 선택하며, 유저에게 전달하기 전에 자체 검증 루프를 실행합니다.
169
+ Weave는 Maskweaver의 핵심 워크플로우입니다. 작업을 테스트 가능한 Phase로 나누고, 전문가 마스크를 자동 선택하며, 유저 전달 구조화된 검증 단계를 제공합니다.
169
170
 
170
171
  #### 명령어
171
172
 
@@ -176,10 +177,10 @@ Weave는 Maskweaver의 핵심 워크플로우입니다. 작업을 테스트 가
176
177
  | `/weave prepare [docs]` | (수동 경로) research + baseline spec + phase plan 생성 (큰 계획은 자동 분할) |
177
178
  | `/weave refine-plan` | `tasks/plan-notes.md` 지시문을 active plan에 반영 |
178
179
  | `/weave approve-plan` | 구현 전 사람이 계획 승인(게이트) |
179
- | `/weave flow [docs]` | (권장) 원커맨드 경로: prepare -> approve-plan gate -> craft auto-loop + auto finalize |
180
+ | `/weave flow [docs]` | (권장) 원커맨드 경로: prepare -> auto-approve -> craft -> verify -> finalize |
180
181
  | `/weave spec [docs]` | baseline spec만 생성 (선택) |
181
182
  | `/weave design [docs]` | 요구사항 분석 → Phase 계획 생성 (`/weave plan`은 별칭/호환, 큰 계획은 자동 분할) |
182
- | `/weave craft [P#]` | Phase 실행 계획 생성/실행 + 자동 task loop + 목표 체크 + auto finalize |
183
+ | `/weave craft [P#]` | Phase 실행 컨텍스트/가이드 생성 |
183
184
  | `/weave verify` | 빌드/테스트 검증 실행 (자동 감지) |
184
185
  | `/weave worktree ...` | git worktree 기반 병렬 작업 관리 |
185
186
  | `/weave status` | 프로젝트 진행 상황 및 통계 확인 |
@@ -193,7 +194,7 @@ Weave는 Maskweaver의 핵심 워크플로우입니다. 작업을 테스트 가
193
194
  0. INIT (1회): /weave init
194
195
 
195
196
  1. 원커맨드(권장): /weave flow docs/
196
- - 실행: prepare -> approve-plan gate -> craft auto-loop
197
+ - 실행: prepare -> auto-approve -> craft -> verify -> finalize
197
198
 
198
199
  (또는 수동 경로)
199
200
 
@@ -207,9 +208,9 @@ Weave는 Maskweaver의 핵심 워크플로우입니다. 작업을 테스트 가
207
208
  - craft 실행 전 필수 승인
208
209
 
209
210
  5. CRAFT: /weave craft
210
- - Phase 실행 계획 생성 + 자동 task loop 실행
211
- - PASS/FAIL/재시도/re-plan craft 루프에서 처리
212
- - 마지막에 phase 목표 체크 + full verify + 완료 처리를 자동 수행
211
+ - Phase 실행 계획과 다음 액션 안내 생성
212
+ - 구현/검증 후 approve-plan으로 phase 완료 처리
213
+ - `/weave verify`로 빌드/테스트 검증 가능
213
214
 
214
215
  6. HANDOFF: 유저가 UX/의도 확인 후 다음 Phase로 진행
215
216
  ```
@@ -227,9 +228,43 @@ Weave는 Maskweaver의 핵심 워크플로우입니다. 작업을 테스트 가
227
228
  | 5️⃣ E2E Tests | 테스트 | **Playwright** |
228
229
  | 6️⃣ Screenshot | 시각 | Playwright / 브라우저 캡처 |
229
230
  | 7️⃣ API Check | API | `fetch` 헬스 체크 |
230
- | 8️⃣ A11y | 접근성 | `axe-core` |
231
-
232
- #### 마스크 자동 선택
231
+ | 8️⃣ A11y | 접근성 | `axe-core` |
232
+ | 0️⃣ GDC Check | 설계 | `gdc check --machine` |
233
+
234
+ #### GDC 통합 (Graph-Driven Codebase)
235
+
236
+ Weave는 [GDC](https://github.com/ulgerang/gdc)(Graph-Driven Codebase)와 통합되어 리서치 품질을 향상시키고 설계 시점 검증 게이트를 추가합니다:
237
+
238
+ **리서치 강화:**
239
+ - `.gdc` 워크스페이스 자동 감지
240
+ - GDC `stats`, `graph`, `check` 결과를 `tasks/research.md`에 포함
241
+ - 그래프 엣지 기반 의존성 영향 범위(Blast Radius) 분석
242
+ - 기능 키워드와 매칭된 재사용 후보 노드
243
+ - 새 보고서 섹션: `GDC Node Coverage`, `Dependency Blast Radius`, `Existing Spec vs Implementation Drift`, `Candidate Reuse Nodes`
244
+
245
+ **Pre-Verify 게이트:**
246
+ GDC가 감지되면 `weave verify`와 `weave flow`가 자동으로 실행:
247
+ 1. `gdc sync --machine` - 스펙과 구현 동기화
248
+ 2. `gdc check --machine` - 스펙/구현 일치성 검증
249
+
250
+ GDC check의 블로킹 에러는 검증을 중단시킵니다(`strictVerify` 모드로 설정 가능).
251
+
252
+ **설정** (`maskweaver.config.json`):
253
+ ```json
254
+ {
255
+ "gdc": {
256
+ "enabled": "auto",
257
+ "strictVerify": false,
258
+ "autoSyncOnPrepare": true
259
+ }
260
+ }
261
+ ```
262
+
263
+ - `enabled`: `true` | `false` | `"auto"` (기본값: `.gdc` 디렉터리 자동 감지)
264
+ - `strictVerify`: `true`면 GDC check 실패 시 검증 차단; `false`면 경고 후 계속 진행
265
+ - `autoSyncOnPrepare`: `weave prepare` 시 `gdc sync` 실행
266
+
267
+ #### 마스크 자동 선택
233
268
 
234
269
  AI가 각 작업에 가장 적합한 전문가를 자동으로 선택합니다:
235
270
 
@@ -333,14 +368,15 @@ import { MaskLoader } from 'maskweaver/core';
333
368
  import { WeaveOrchestrator, GlobalKnowledge } from 'maskweaver/weave';
334
369
  ```
335
370
 
336
- **모듈:**
337
- - `maskweaver/core` - 가면 로딩, 검증 (YAML/JSON)
338
- - `maskweaver/memory` - 임베딩 + 벡터 검색 (5개 프로바이더)
339
- - `maskweaver/context` - 기능 기반 작업 추적
340
- - `maskweaver/verify` - 교차 가면 코드 리뷰
341
- - `maskweaver/retrospect` - 세션 효과 분석
342
- - `maskweaver/weave` - Phase 기반 개발 워크플로우
343
- - `maskweaver/plugin` - OpenCode 플러그인 엔트리 포인트
371
+ **모듈:**
372
+ - `maskweaver/core` - 가면 로딩, 검증 (YAML/JSON)
373
+ - `maskweaver/memory` - 임베딩 + 벡터 검색 (5개 프로바이더)
374
+ - `maskweaver/context` - 기능 기반 작업 추적
375
+ - `maskweaver/verify` - 교차 가면 코드 리뷰
376
+ - `maskweaver/retrospect` - 세션 효과 분석
377
+ - `maskweaver/weave` - Phase 기반 개발 워크플로우
378
+ - `maskweaver/gdc` - GDC(Graph-Driven Codebase) 통합 유틸리티
379
+ - `maskweaver/plugin` - OpenCode 플러그인 엔트리 포인트
344
380
 
345
381
  ---
346
382
 
@@ -360,7 +396,7 @@ import { WeaveOrchestrator, GlobalKnowledge } from 'maskweaver/weave';
360
396
  /weave flow docs/
361
397
  ```
362
398
 
363
- 한 번에 `prepare -> approve-plan gate -> craft auto-loop`까지 실행합니다.
399
+ 한 번에 `prepare -> auto-approve -> craft -> verify -> finalize`까지 실행합니다.
364
400
 
365
401
  수동 happy path (research + spec + plan 한 번에):
366
402
 
@@ -415,47 +451,28 @@ AI 인사이트가 포함된 현대적 감정 일기 앱 구축
415
451
  /weave craft
416
452
  ```
417
453
 
418
- `/weave craft`는 실행 계획을 생성한 뒤 자동 task loop를 즉시 실행합니다(phase 미지정 시 다음 phase 자동 선택). 구현 반영 후 같은 명령을 다시 실행하면 이어서 진행됩니다.
454
+ `/weave craft`는 phase 실행 컨텍스트를 생성합니다(phase 미지정 시 다음 phase 자동 선택). 구현 반영 후 같은 명령으로 계획을 다시 확인할 있습니다.
419
455
 
420
- ### 4단계: Craft 루프 이어서 진행
456
+ ### 4단계: 구현 진행
421
457
 
422
458
  ```txt
423
459
  weave command=craft phaseId="P1"
424
- weave command=craft phaseId="P1" taskId="P1-T1"
460
+ weave command=verify
425
461
  ```
426
462
 
427
- 원커맨드로 계속 이어서 진행하려면:
463
+ 원커맨드로 이어서 진행하려면:
428
464
 
429
465
  ```txt
430
466
  weave command=flow
431
467
  ```
432
468
 
433
- ### 5단계: 자동 완료 처리
469
+ ### 5단계: Phase 완료 처리
434
470
 
435
471
  ```txt
436
472
  weave command=verify
437
- weave command=craft
473
+ weave command=approve-plan
438
474
  ```
439
475
 
440
- 진행 상황 출력:
441
- ```markdown
442
- ### Task 진행 상황
443
-
444
- #### Task 1: EmotionButton 컴포넌트
445
- - [x] 마스크: 🧪 켄트 벡
446
- - [x] 테스트 작성
447
- - [x] 구현
448
- - [x] 검증 완료 ✅
449
-
450
- #### Task 2: 상태 관리
451
- - [x] 마스크: ⚛️ 댄 아브라모프
452
- - [x] 테스트 작성
453
- - [x] 구현
454
- - [ ] 검증 중 🔄 (재시도 2/5)
455
- - 💡 유사 솔루션 발견: "React 상태 타이밍 이슈"
456
- - 수정: useEffect 의존성 배열 추가
457
- ```
458
-
459
476
  ### 6단계: 핸드오프 & 검증
460
477
 
461
478
  모든 검증이 통과되면:
package/README.md CHANGED
@@ -24,9 +24,10 @@ While it can be used as a standalone library, it works great with OpenCode to ad
24
24
  - **Expert Personas (Masks)**: Standardized YAML profiles for legendary developers.
25
25
  - **Smart Delegation**: Multi-agent workflows optimized for OpenCode.
26
26
  - **Project Memory**: Hybrid semantic search for your entire codebase.
27
- - **🆕 Weave Workflow**: Phase-driven development with AI self-verification.
28
-
29
- ---
27
+ - **🆕 Weave Workflow**: Phase-driven development with AI self-verification.
28
+ - **🔗 GDC Integration**: Graph-Driven Codebase support for enhanced research and design-time verification gates.
29
+
30
+ ---
30
31
 
31
32
  ## Why Maskweaver?
32
33
 
@@ -184,7 +185,7 @@ Smart subagents for cost-efficient multi-agent workflows:
184
185
 
185
186
  **Phase-Driven Development** — "AI verifies, Human validates"
186
187
 
187
- Weave is Maskweaver's flagship workflow. It breaks work into testable phases, auto-selects expert masks, and runs self-verification loops before handing off to you.
188
+ Weave is Maskweaver's flagship workflow. It breaks work into testable phases, auto-selects expert masks, and provides structured verification before handoff.
188
189
 
189
190
  #### Commands
190
191
 
@@ -195,10 +196,10 @@ Weave is Maskweaver's flagship workflow. It breaks work into testable phases, au
195
196
  | `/weave prepare [docs]` | (Manual path) Generate research + baseline spec + phase plan (auto-split if oversized) |
196
197
  | `/weave refine-plan` | Apply structured plan notes (`tasks/plan-notes.md`) to active plan |
197
198
  | `/weave approve-plan` | Explicit human approval gate before implementation |
198
- | `/weave flow [docs]` | (Recommended) One-command path: prepare -> approve-plan gate -> craft auto-loop + auto finalize |
199
+ | `/weave flow [docs]` | (Recommended) One-command path: prepare -> auto-approve -> craft -> verify -> finalize |
199
200
  | `/weave spec [docs]` | Generate baseline spec only (optional) |
200
201
  | `/weave design [docs]` | Analyze requirements → Generate phase plan (`/weave plan` alias, auto-split if oversized) |
201
- | `/weave craft [P#]` | Generate/run execution plan + auto task loop + goal check + auto finalize |
202
+ | `/weave craft [P#]` | Prepare phase execution context and guidance |
202
203
  | `/weave verify` | Run build/test verification (auto-detect) |
203
204
  | `/weave worktree ...` | Manage git worktrees for parallel work |
204
205
  | `/weave status` | View project progress and stats |
@@ -212,7 +213,7 @@ Weave is Maskweaver's flagship workflow. It breaks work into testable phases, au
212
213
  0. INIT (once): /weave init
213
214
 
214
215
  1. ONE-COMMAND (recommended): /weave flow docs/
215
- - runs: prepare -> approve-plan gate -> craft auto-loop
216
+ - runs: prepare -> auto-approve -> craft -> verify -> finalize
216
217
 
217
218
  (or manual path)
218
219
 
@@ -226,9 +227,9 @@ Weave is Maskweaver's flagship workflow. It breaks work into testable phases, au
226
227
  - required before craft execution
227
228
 
228
229
  5. CRAFT: /weave craft
229
- - Generates an execution plan + runs auto task loop
230
- - PASS/FAIL/retry/re-plan are handled in the craft loop
231
- - Final goal check + full verification + phase completion are automatic
230
+ - Generates an execution plan and next actions
231
+ - Implement/verify changes, then finalize with approve-plan
232
+ - Use `/weave verify` anytime for build/test checks
232
233
 
233
234
  6. HANDOFF: You validate UX/intent and move to next phase
234
235
  ```
@@ -246,9 +247,43 @@ Before handing off to you, AI runs these verification layers:
246
247
  | 5️⃣ E2E Tests | Test | **Playwright** |
247
248
  | 6️⃣ Screenshot | Visual | Playwright / browser capture |
248
249
  | 7️⃣ API Check | API | `fetch` health checks |
249
- | 8️⃣ A11y | Accessibility | `axe-core` |
250
-
251
- #### Autonomous Mask Selection
250
+ | 8️⃣ A11y | Accessibility | `axe-core` |
251
+ | 0️⃣ GDC Check | Design | `gdc check --machine` |
252
+
253
+ #### GDC Integration (Graph-Driven Codebase)
254
+
255
+ Weave integrates with [GDC](https://github.com/ulgerang/gdc) (Graph-Driven Codebase) to enhance research quality and add design-time verification gates:
256
+
257
+ **Research Enhancement:**
258
+ - Automatic `.gdc` workspace detection
259
+ - GDC `stats`, `graph`, and `check` results embedded in `tasks/research.md`
260
+ - Dependency blast radius analysis from graph edges
261
+ - Candidate reuse nodes matched against feature keywords
262
+ - New report sections: `GDC Node Coverage`, `Dependency Blast Radius`, `Existing Spec vs Implementation Drift`, `Candidate Reuse Nodes`
263
+
264
+ **Pre-Verify Gate:**
265
+ When GDC is detected, `weave verify` and `weave flow` automatically run:
266
+ 1. `gdc sync --machine` - Sync specs with implementation
267
+ 2. `gdc check --machine` - Validate spec/implementation alignment
268
+
269
+ Blocking errors from GDC check will halt verification (configurable via `strictVerify` mode).
270
+
271
+ **Configuration** (`maskweaver.config.json`):
272
+ ```json
273
+ {
274
+ "gdc": {
275
+ "enabled": "auto",
276
+ "strictVerify": false,
277
+ "autoSyncOnPrepare": true
278
+ }
279
+ }
280
+ ```
281
+
282
+ - `enabled`: `true` | `false` | `"auto"` (default: auto-detect from `.gdc` directory)
283
+ - `strictVerify`: If `true`, GDC check failures block verification; if `false`, continues with warning
284
+ - `autoSyncOnPrepare`: Run `gdc sync` during `weave prepare`
285
+
286
+ #### Autonomous Mask Selection
252
287
 
253
288
  The AI automatically picks the best expert for each task:
254
289
 
@@ -352,14 +387,15 @@ import { MaskLoader } from 'maskweaver/core';
352
387
  import { WeaveOrchestrator, GlobalKnowledge } from 'maskweaver/weave';
353
388
  ```
354
389
 
355
- **Modules:**
356
- - `maskweaver/core` - Mask loading, validation (YAML/JSON)
357
- - `maskweaver/memory` - Embeddings + vector search (5 providers)
358
- - `maskweaver/context` - Feature-based work tracking
359
- - `maskweaver/verify` - Cross-mask code review
360
- - `maskweaver/retrospect` - Session effectiveness analysis
361
- - `maskweaver/weave` - Phase-driven development workflow
362
- - `maskweaver/plugin` - OpenCode plugin entry point
390
+ **Modules:**
391
+ - `maskweaver/core` - Mask loading, validation (YAML/JSON)
392
+ - `maskweaver/memory` - Embeddings + vector search (5 providers)
393
+ - `maskweaver/context` - Feature-based work tracking
394
+ - `maskweaver/verify` - Cross-mask code review
395
+ - `maskweaver/retrospect` - Session effectiveness analysis
396
+ - `maskweaver/weave` - Phase-driven development workflow
397
+ - `maskweaver/gdc` - GDC (Graph-Driven Codebase) integration utilities
398
+ - `maskweaver/plugin` - OpenCode plugin entry point
363
399
 
364
400
  ---
365
401
 
@@ -379,7 +415,7 @@ Fastest path (one command):
379
415
  /weave flow docs/
380
416
  ```
381
417
 
382
- This runs `prepare -> approve-plan gate -> craft auto-loop` in one shot.
418
+ This runs `prepare -> auto-approve -> craft -> verify -> finalize` in one shot.
383
419
 
384
420
  Manual happy path (research + spec + plan in one command):
385
421
 
@@ -434,13 +470,13 @@ Start with the first phase:
434
470
  /weave craft
435
471
  ```
436
472
 
437
- `/weave craft` returns an execution plan and immediately runs the auto task loop. Re-run `/weave craft` after implementation updates to continue the same phase.
473
+ `/weave craft` returns execution context for the phase. Implement changes, then rerun `/weave craft` if you want to refresh the plan view.
438
474
 
439
- ### Step 4: Continue the Craft Loop
475
+ ### Step 4: Continue Implementation
440
476
 
441
477
  ```txt
442
478
  weave command=craft phaseId="P1"
443
- weave command=craft phaseId="P1" taskId="P1-T1"
479
+ weave command=verify
444
480
  ```
445
481
 
446
482
  One-command resume:
@@ -449,32 +485,13 @@ One-command resume:
449
485
  weave command=flow
450
486
  ```
451
487
 
452
- ### Step 5: Auto Finalization
488
+ ### Step 5: Finalize the Phase
453
489
 
454
490
  ```txt
455
491
  weave command=verify
456
- weave command=craft
492
+ weave command=approve-plan
457
493
  ```
458
494
 
459
- Progress output:
460
- ```markdown
461
- ### Task Progress
462
-
463
- #### Task 1: EmotionButton Component
464
- - [x] Mask: 🧪 Kent Beck
465
- - [x] Tests written
466
- - [x] Implementation
467
- - [x] Verified ✅
468
-
469
- #### Task 2: State Management
470
- - [x] Mask: ⚛️ Dan Abramov
471
- - [x] Tests written
472
- - [x] Implementation
473
- - [ ] Verifying 🔄 (retry 2/5)
474
- - 💡 Similar solution found: "React state timing issue"
475
- - Fix: Added useEffect dependency array
476
- ```
477
-
478
495
  ### Step 6: Handoff & Validate
479
496
 
480
497
  When all verifications pass: