lee-spec-kit 0.6.28 โ 0.6.30
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 +208 -34
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/templates/en/common/agents/agents.md +3 -0
- package/templates/en/common/agents/skills/create-issue.md +1 -1
- package/templates/en/common/agents/skills/execute-task.md +3 -0
- package/templates/ko/common/agents/agents.md +3 -0
- package/templates/ko/common/agents/skills/create-issue.md +1 -1
- package/templates/ko/common/agents/skills/execute-task.md +3 -0
package/package.json
CHANGED
|
@@ -42,6 +42,9 @@ Prohibited:
|
|
|
42
42
|
- If user input does not contain a valid label, do not execute; request label selection again.
|
|
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
|
+
- 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.
|
|
45
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).
|
|
46
49
|
- When fallback is used, report a one-line fallback reason to the user before running the command in the main agent.
|
|
47
50
|
|
|
@@ -42,7 +42,7 @@ Use `issue.md` status (`Draft | Ready`) as the actual workflow state.
|
|
|
42
42
|
|
|
43
43
|
> ๐จ **User Approval Required**
|
|
44
44
|
|
|
45
|
-
Share the `issue.md` draft and wait for
|
|
45
|
+
Share the `issue.md` draft and wait for label approval (`A` or `A OK`):
|
|
46
46
|
|
|
47
47
|
- Title
|
|
48
48
|
- Full body draft (from `issue.md`)
|
|
@@ -26,6 +26,9 @@ Execute exactly one option from `๐ Next Options (Atomic)` as printed by the C
|
|
|
26
26
|
- `true`: wait for label-token approval (`A`, `A OK`) before execution.
|
|
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
|
+
- 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.
|
|
29
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.
|
|
30
33
|
- If `context --json-compact` exposes `autoRun.available=true`, you may use `autoRun.command` to continue automatically until approval-required categories are reached.
|
|
31
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).
|
|
@@ -42,6 +42,9 @@
|
|
|
42
42
|
- ์ฌ์ฉ์ ์
๋ ฅ์ ์ ํจ ๋ผ๋ฒจ์ด ์์ผ๋ฉด ์คํํ์ง ๋ง๊ณ ๋ผ๋ฒจ ์ ํ์ ๋ค์ ์์ฒญํฉ๋๋ค.
|
|
43
43
|
- ์น์ธ๋ command ์ต์
์คํ์ `flow --approve <LABEL> --execute` 1ํ ํธ์ถ์ ๊ธฐ๋ณธ์ผ๋ก ํ๋ฉฐ, `context --approve`์ `context --execute --ticket`๋ฅผ ํด/์ธ์
์ฌ์ด๋ก ๋ถ๋ฆฌํ์ง ์์ต๋๋ค.
|
|
44
44
|
- `agentOrchestration.currentActionShouldDelegate=true`์ด๊ณ ์ ํํ ์ต์
์ด `actionType="command"`๋ฉด ์์์ด ํ์์
๋๋ค. ๋จผ์ `spawn_agent`๋ฅผ ํธ์ถํ๊ณ , ํด๋น ๋ช
๋ น์ ๋ฉ์ธ ์์ด์ ํธ์์ ์ง์ ์คํํ์ง ์์ต๋๋ค.
|
|
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` ๊ธฐ์ค), ๋ถ์ผ์น ์ ์ฆ์ ์ค๋จ/๋ณด๊ณ ํฉ๋๋ค. ์์ธ ๋ก๊ทธ ์์ง์ ๋ถ์ผ์น ์์๋ง ์ํํฉ๋๋ค.
|
|
45
48
|
- ๋ฉ์ธ ์์ด์ ํธ fallback์ ์๋ธ ์์ด์ ํธ ์คํ์ด ๋ถ๊ฐ๋ฅํ ๊ฒฝ์ฐ(์: ๋๊ตฌ ๋ฏธ์ง์, spawn ์คํจ, ๋ช
๋ น ์คํ ์ ์๋ธ ์์ด์ ํธ ์คํจ)์๋ง ํ์ฉํฉ๋๋ค.
|
|
46
49
|
- fallback์ ์ฌ์ฉํ ๋๋ ๋ฉ์ธ ์คํ ์ ์ fallback ์ฌ์ ๋ฅผ ์ฌ์ฉ์์๊ฒ ํ ์ค๋ก ๋จผ์ ์๋ฆฝ๋๋ค.
|
|
47
50
|
|
|
@@ -42,7 +42,7 @@ npx lee-spec-kit github issue F001 --json
|
|
|
42
42
|
|
|
43
43
|
> ๐จ **์ฌ์ฉ์ ํ์ธ ํ์**
|
|
44
44
|
|
|
45
|
-
`issue.md` ์ด์ ๊ธฐ์ค์ผ๋ก ๋ค์ ๋ด์ฉ์ ๊ณต์ ํ๊ณ
|
|
45
|
+
`issue.md` ์ด์ ๊ธฐ์ค์ผ๋ก ๋ค์ ๋ด์ฉ์ ๊ณต์ ํ๊ณ ๋ผ๋ฒจ ์น์ธ(`A` ๋๋ `A OK`) ๋๊ธฐ:
|
|
46
46
|
|
|
47
47
|
- ์ ๋ชฉ
|
|
48
48
|
- ๋ณธ๋ฌธ ์ ์ฒด ์ด์ (`issue.md` ๊ธฐ์ค)
|
|
@@ -26,6 +26,9 @@ CLI๊ฐ ๊ฐ๋ฆฌํค๋ **Active Task** ๋๋ **`๐ Next Options (Atomic)`์ ๋จ
|
|
|
26
26
|
- ์น์ธ ๋๊ธฐ ์ฌ๋ถ๋ `context --json-compact`์ `approvalRequest.required`๋ฅผ SSOT๋ก ๋ฐ๋ฆ
๋๋ค. (`--json`์ ์์ธ ๋๋ฒ๊น
์ด ํ์ํ ๋๋ง ์ฌ์ฉ) `false`๋ฉด ๋ผ๋ฒจ ์น์ธ ์์ด ์งํํ๊ณ , `true`๋ฉด ๋ผ๋ฒจ ๊ท์น(`A`, `A OK`)์ผ๋ก ์น์ธ ํ ์งํํฉ๋๋ค.
|
|
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
|
+
- `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ํ๋ง ์คํํฉ๋๋ค. ๋ถ์ผ์น ์ ์ฆ์ ์ค๋จ/๋ณด๊ณ ํ๊ณ , ์์ธ ๋ก๊ทธ๋ ๋ถ์ผ์น ์์๋ง ์์งํฉ๋๋ค.
|
|
29
32
|
- ๋ฉ์ธ ์์ด์ ํธ fallback์ ์๋ธ ์์ด์ ํธ ์คํ์ด ๋ถ๊ฐ๋ฅํ ๊ฒฝ์ฐ(์: ๋๊ตฌ ๋ฏธ์ง์, spawn ์คํจ, ๋ช
๋ น ์คํ ์ ์๋ธ ์์ด์ ํธ ์คํจ)์๋ง ํ์ฉํฉ๋๋ค. fallback ์คํ ์ ์๋ ์ฌ์ ๋ฅผ ์ฌ์ฉ์์๊ฒ ํ ์ค๋ก ๋จผ์ ์๋ฆฝ๋๋ค.
|
|
30
33
|
- `context --json-compact`์ `autoRun.available=true`๊ฐ ์์ผ๋ฉด `autoRun.command`๋ฅผ ์ฌ์ฉํด ์น์ธ ํ์ ์นดํ
๊ณ ๋ฆฌ ์ ๊น์ง ์๋ ์งํํ ์ ์์ต๋๋ค.
|
|
31
34
|
- ์ฅ์๊ฐ ์๋ ์คํ์ด ํ์ํ๋ฉด `flow <feature> --auto-... --start-auto --json-compact`์ผ๋ก run id๋ฅผ ์์ฑํ๊ณ , ์ค๋จ/์์ถ ํ์๋ `autoRun.run.resumeCommand`(`flow --resume <RUN_ID>`)๋ฅผ ์ฐ์ ์ฌ์ฉํด ์ฌ๊ฐํฉ๋๋ค. (์์ธ ๋๋ฒ๊น
ํ๋๊ฐ ํ์ํ ๋๋ง `--json`)
|