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/dist/index.js +133 -35
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/templates/en/common/agents/agents.md +2 -0
- package/templates/en/common/agents/pr-template.md +3 -1
- package/templates/en/common/agents/skills/execute-task.md +2 -0
- package/templates/ko/common/agents/agents.md +2 -0
- package/templates/ko/common/agents/pr-template.md +3 -1
- package/templates/ko/common/agents/skills/execute-task.md +2 -0
package/package.json
CHANGED
|
@@ -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. )}
|
|
72
72
|
|
|
73
|
-
## Architecture Diagram
|
|
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
|
{μ€ν¬λ¦°μ· λ§ν¬λ€μ΄ (μ: )}
|
|
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`)
|