lee-spec-kit 0.6.29 β†’ 0.6.31

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lee-spec-kit",
3
- "version": "0.6.29",
3
+ "version": "0.6.31",
4
4
  "description": "Project documentation structure generator for AI-assisted development",
5
5
  "type": "module",
6
6
  "bin": {
@@ -43,6 +43,8 @@ Prohibited:
43
43
  - For approved command options, prefer one-shot `flow --approve <LABEL> --execute`; do not split `context --approve` and `context --execute --ticket` across turns/sessions.
44
44
  - If `agentOrchestration.currentActionShouldDelegate=true` and the selected option is `actionType="command"`, delegation is mandatory: call `spawn_agent` first. Do not execute that command directly from the main agent.
45
45
  - If `agentOrchestration.autoRunShouldDelegate=true`, delegate auto loops (`autoRun.command`, `flow --auto-*`) to a sub-agent.
46
+ - Prefer `agentOrchestration.subAgentHandoff` as the handoff SSOT. Pass only its minimal fields (`featureRef`, `category`, `cwd`, `cmd`) to the sub-agent.
47
+ - For delegated runs, execute one-time verification from `subAgentHandoff.verify` (`pwd`, `git rev-parse --show-toplevel`) and cache by `verify.cacheKey`. If mismatched, stop and report; collect detailed logs only on mismatch.
46
48
  - Main-agent fallback is allowed only when sub-agent execution is unavailable (for example: tool not available, spawn failed, or sub-agent failed before command execution).
47
49
  - When fallback is used, report a one-line fallback reason to the user before running the command in the main agent.
48
50
 
@@ -70,7 +70,9 @@ For file links within the repo in PR body, **always use current branch name**:
70
70
 
71
71
  {Screenshot markdown (e.g. ![](URL))}
72
72
 
73
- ## Architecture Diagram (Backend / core structure changes)
73
+ ## Architecture Diagram
74
+
75
+ <!-- Fill this section when backend/core-structure changes are included. -->
74
76
 
75
77
  ```mermaid
76
78
  sequenceDiagram
@@ -27,6 +27,8 @@ Execute exactly one option from `πŸ‘‰ Next Options (Atomic)` as printed by the C
27
27
  - Default execution model is **main-agent orchestration + selective sub-agent execution**. Keep short steps (spec/plan/tasks approvals, issue/PR metadata sync) in the main agent, and delegate long-running loops (`task_execute`, `code_review`, `review_fix_commit`, `pre_pr_review`, auto-run) to a sub-agent.
28
28
  - When `agentOrchestration.currentActionShouldDelegate=true` and the selected option is `actionType="command"`, delegation is mandatory: call `spawn_agent` first and do not execute the command directly from the main agent.
29
29
  - When `agentOrchestration.autoRunShouldDelegate=true`, delegate auto loops (`autoRun.command`, `flow --auto-*`) to a sub-agent.
30
+ - Use `agentOrchestration.subAgentHandoff` as the minimal handoff contract (`featureRef`, `category`, `cwd`, `cmd`).
31
+ - Run `subAgentHandoff.verify.commands` only once per session using `verify.cacheKey` (`pwd`, `git rev-parse --show-toplevel`). Stop/report on mismatch, and gather detailed logs only when mismatch happens.
30
32
  - Main-agent fallback is allowed only when sub-agent execution is unavailable (for example: tool not available, spawn failed, or sub-agent failed before command execution). Before fallback execution, report a one-line fallback reason to the user.
31
33
  - If `context --json-compact` exposes `autoRun.available=true`, you may use `autoRun.command` to continue automatically until approval-required categories are reached.
32
34
  - For long-running auto execution, start with `flow <feature> --auto-... --start-auto --json-compact` and prefer `autoRun.run.resumeCommand` (`flow --resume <RUN_ID>`) after interruption/compression (`--json` only when full-detail debugging fields are required).
@@ -43,6 +43,8 @@
43
43
  - 승인된 command μ˜΅μ…˜ 싀행은 `flow --approve <LABEL> --execute` 1회 ν˜ΈμΆœμ„ 기본으둜 ν•˜λ©°, `context --approve`와 `context --execute --ticket`λ₯Ό ν„΄/μ„Έμ…˜ μ‚¬μ΄λ‘œ λΆ„λ¦¬ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.
44
44
  - `agentOrchestration.currentActionShouldDelegate=true`이고 μ„ νƒν•œ μ˜΅μ…˜μ΄ `actionType="command"`λ©΄ μœ„μž„μ΄ ν•„μˆ˜μž…λ‹ˆλ‹€. λ¨Όμ € `spawn_agent`λ₯Ό ν˜ΈμΆœν•˜κ³ , ν•΄λ‹Ή λͺ…령을 메인 μ—μ΄μ „νŠΈμ—μ„œ 직접 μ‹€ν–‰ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.
45
45
  - `agentOrchestration.autoRunShouldDelegate=true`λ©΄ auto 루프(`autoRun.command`, `flow --auto-*`)λ₯Ό μ„œλΈŒ μ—μ΄μ „νŠΈμ— μœ„μž„ν•©λ‹ˆλ‹€.
46
+ - μœ„μž„ μ‹œμ—λŠ” `agentOrchestration.subAgentHandoff`λ₯Ό handoff SSOT둜 μ‚¬μš©ν•˜κ³ , μ΅œμ†Œ ν•„λ“œ(`featureRef`, `category`, `cwd`, `cmd`)만 μ „λ‹¬ν•©λ‹ˆλ‹€.
47
+ - μœ„μž„ μ‹€ν–‰ μ „ `subAgentHandoff.verify`의 검증 λͺ…λ Ή(`pwd`, `git rev-parse --show-toplevel`)을 μ„Έμ…˜λ‹Ή 1회만 μ‹€ν–‰ν•˜κ³ (`verify.cacheKey` κΈ°μ€€), 뢈일치 μ‹œ μ¦‰μ‹œ 쀑단/λ³΄κ³ ν•©λ‹ˆλ‹€. 상세 둜그 μˆ˜μ§‘μ€ 뢈일치 μ‹œμ—λ§Œ μˆ˜ν–‰ν•©λ‹ˆλ‹€.
46
48
  - 메인 μ—μ΄μ „νŠΈ fallback은 μ„œλΈŒ μ—μ΄μ „νŠΈ 싀행이 λΆˆκ°€λŠ₯ν•œ 경우(예: 도ꡬ 미지원, spawn μ‹€νŒ¨, λͺ…λ Ή μ‹€ν–‰ μ „ μ„œλΈŒ μ—μ΄μ „νŠΈ μ‹€νŒ¨)μ—λ§Œ ν—ˆμš©ν•©λ‹ˆλ‹€.
47
49
  - fallback을 μ‚¬μš©ν•  λ•ŒλŠ” 메인 μ‹€ν–‰ 전에 fallback μ‚¬μœ λ₯Ό μ‚¬μš©μžμ—κ²Œ ν•œ μ€„λ‘œ λ¨Όμ € μ•Œλ¦½λ‹ˆλ‹€.
48
50
 
@@ -68,7 +68,9 @@ PR λ³Έλ¬Έμ—μ„œ 레포 λ‚΄ 파일 λ§ν¬λŠ” **λ°˜λ“œμ‹œ ν˜„μž¬ 브랜치λͺ…을
68
68
 
69
69
  {μŠ€ν¬λ¦°μƒ· λ§ˆν¬λ‹€μš΄ (예: ![](URL))}
70
70
 
71
- ## μ•„ν‚€ν…μ²˜ λ‹€μ΄μ–΄κ·Έλž¨ (λ°±μ—”λ“œ / 핡심 ꡬ쑰 λ³€κ²½ μ‹œ)
71
+ ## μ•„ν‚€ν…μ²˜ λ‹€μ΄μ–΄κ·Έλž¨
72
+
73
+ <!-- λ°±μ—”λ“œ / 핡심 ꡬ쑰 λ³€κ²½ μ‹œ μž‘μ„± -->
72
74
 
73
75
  ```mermaid
74
76
  sequenceDiagram
@@ -27,6 +27,8 @@ CLIκ°€ κ°€λ¦¬ν‚€λŠ” **Active Task** λ˜λŠ” **`πŸ‘‰ Next Options (Atomic)`의 단
27
27
  - κΈ°λ³Έ μ‹€ν–‰ λͺ¨λΈμ€ **메인 μ—μ΄μ „νŠΈ μ˜€μΌ€μŠ€νŠΈλ ˆμ΄μ…˜ + 선택적 μ„œλΈŒ μ—μ΄μ „νŠΈ μ‹€ν–‰**μž…λ‹ˆλ‹€. 짧은 단계(spec/plan/tasks 승인, 이슈/PR 메타 동기화 λ“±)λŠ” 메인 μ—μ΄μ „νŠΈκ°€ 직접 μ²˜λ¦¬ν•˜κ³ , μž₯μ‹œκ°„ 루프(`task_execute`, `code_review`, `review_fix_commit`, `pre_pr_review`, auto-run)λŠ” μ„œλΈŒ μ—μ΄μ „νŠΈμ— μœ„μž„ν•©λ‹ˆλ‹€.
28
28
  - `agentOrchestration.currentActionShouldDelegate=true`이고 μ„ νƒν•œ μ˜΅μ…˜μ΄ `actionType="command"`λ©΄ μœ„μž„μ΄ ν•„μˆ˜μž…λ‹ˆλ‹€. λ¨Όμ € `spawn_agent`λ₯Ό ν˜ΈμΆœν•˜κ³ , ν•΄λ‹Ή λͺ…령을 메인 μ—μ΄μ „νŠΈμ—μ„œ 직접 μ‹€ν–‰ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.
29
29
  - `agentOrchestration.autoRunShouldDelegate=true`λ©΄ auto 루프(`autoRun.command`, `flow --auto-*`)λ₯Ό μ„œλΈŒ μ—μ΄μ „νŠΈμ— μœ„μž„ν•©λ‹ˆλ‹€.
30
+ - `agentOrchestration.subAgentHandoff`λ₯Ό μ΅œμ†Œ handoff 계약(`featureRef`, `category`, `cwd`, `cmd`)으둜 μ‚¬μš©ν•©λ‹ˆλ‹€.
31
+ - `subAgentHandoff.verify.commands`(`pwd`, `git rev-parse --show-toplevel`)은 `verify.cacheKey` κΈ°μ€€ μ„Έμ…˜λ‹Ή 1회만 μ‹€ν–‰ν•©λ‹ˆλ‹€. 뢈일치 μ‹œ μ¦‰μ‹œ 쀑단/λ³΄κ³ ν•˜κ³ , 상세 λ‘œκ·ΈλŠ” 뢈일치 μ‹œμ—λ§Œ μˆ˜μ§‘ν•©λ‹ˆλ‹€.
30
32
  - 메인 μ—μ΄μ „νŠΈ fallback은 μ„œλΈŒ μ—μ΄μ „νŠΈ 싀행이 λΆˆκ°€λŠ₯ν•œ 경우(예: 도ꡬ 미지원, spawn μ‹€νŒ¨, λͺ…λ Ή μ‹€ν–‰ μ „ μ„œλΈŒ μ—μ΄μ „νŠΈ μ‹€νŒ¨)μ—λ§Œ ν—ˆμš©ν•©λ‹ˆλ‹€. fallback μ‹€ν–‰ μ „μ—λŠ” μ‚¬μœ λ₯Ό μ‚¬μš©μžμ—κ²Œ ν•œ μ€„λ‘œ λ¨Όμ € μ•Œλ¦½λ‹ˆλ‹€.
31
33
  - `context --json-compact`에 `autoRun.available=true`κ°€ 있으면 `autoRun.command`λ₯Ό μ‚¬μš©ν•΄ 승인 ν•„μš” μΉ΄ν…Œκ³ λ¦¬ μ „κΉŒμ§€ μžλ™ μ§„ν–‰ν•  수 μžˆμŠ΅λ‹ˆλ‹€.
32
34
  - μž₯μ‹œκ°„ μžλ™ 싀행이 ν•„μš”ν•˜λ©΄ `flow <feature> --auto-... --start-auto --json-compact`으둜 run idλ₯Ό μƒμ„±ν•˜κ³ , 쀑단/μ••μΆ• ν›„μ—λŠ” `autoRun.run.resumeCommand`(`flow --resume <RUN_ID>`)λ₯Ό μš°μ„  μ‚¬μš©ν•΄ μž¬κ°œν•©λ‹ˆλ‹€. (상세 디버깅 ν•„λ“œκ°€ ν•„μš”ν•  λ•Œλ§Œ `--json`)