lee-spec-kit 0.4.11 → 0.4.13
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/README.en.md +48 -1
- package/README.md +52 -1
- package/dist/index.js +305 -124
- package/package.json +1 -1
- package/templates/en/common/agents/pr-template.md +15 -7
- package/templates/en/common/agents/skills/create-feature.md +1 -1
- package/templates/en/common/agents/skills/create-pr.md +20 -3
- package/templates/en/common/agents/skills/execute-task.md +5 -2
- package/templates/en/fullstack/README.md +5 -2
- package/templates/en/fullstack/agents/agents.md +2 -1
- package/templates/en/fullstack/features/feature-base/plan.md +1 -1
- package/templates/en/fullstack/features/feature-base/spec.md +1 -1
- package/templates/en/fullstack/features/feature-base/tasks.md +11 -2
- package/templates/en/single/README.md +5 -2
- package/templates/en/single/agents/agents.md +2 -1
- package/templates/en/single/features/feature-base/plan.md +1 -1
- package/templates/en/single/features/feature-base/spec.md +1 -1
- package/templates/en/single/features/feature-base/tasks.md +11 -2
- package/templates/ko/common/agents/pr-template.md +15 -7
- package/templates/ko/common/agents/skills/create-feature.md +3 -3
- package/templates/ko/common/agents/skills/create-pr.md +20 -3
- package/templates/ko/common/agents/skills/execute-task.md +7 -5
- package/templates/ko/fullstack/README.md +5 -2
- package/templates/ko/fullstack/agents/agents.md +2 -1
- package/templates/ko/fullstack/features/feature-base/plan.md +1 -1
- package/templates/ko/fullstack/features/feature-base/spec.md +1 -1
- package/templates/ko/fullstack/features/feature-base/tasks.md +12 -3
- package/templates/ko/single/README.md +5 -2
- package/templates/ko/single/agents/agents.md +2 -1
- package/templates/ko/single/features/feature-base/plan.md +1 -1
- package/templates/ko/single/features/feature-base/spec.md +1 -1
- package/templates/ko/single/features/feature-base/tasks.md +12 -3
package/README.en.md
CHANGED
|
@@ -168,7 +168,8 @@ Running `init` creates `.lee-spec-kit.json` in your docs root (default: `docs/`)
|
|
|
168
168
|
"projectType": "single",
|
|
169
169
|
"lang": "en",
|
|
170
170
|
"createdAt": "YYYY-MM-DD",
|
|
171
|
-
"docsRepo": "embedded"
|
|
171
|
+
"docsRepo": "embedded",
|
|
172
|
+
"approval": { "mode": "builtin" }
|
|
172
173
|
}
|
|
173
174
|
```
|
|
174
175
|
|
|
@@ -182,10 +183,56 @@ Running `init` creates `.lee-spec-kit.json` in your docs root (default: `docs/`)
|
|
|
182
183
|
| `pushDocs` | (standalone only) whether to manage/push docs repo as a separate git repo |
|
|
183
184
|
| `docsRemote` | (standalone + pushDocs) docs repo remote URL |
|
|
184
185
|
| `projectRoot` | (standalone only) project repo path (single: string, fullstack: {fe, be}) |
|
|
186
|
+
| `approval` | (optional) Override CHECK-required policy in `context` output (for automation/semi-auto) |
|
|
185
187
|
|
|
186
188
|
> In standalone mode, `init` can add `pushDocs`, `docsRemote`, and `projectRoot` to this config.
|
|
187
189
|
> If you run the CLI outside the docs repo in standalone mode, set `LEE_SPEC_KIT_DOCS_DIR` to the docs repo path.
|
|
188
190
|
|
|
191
|
+
### approval (check policy)
|
|
192
|
+
|
|
193
|
+
`approval` only affects the following values produced by `context`:
|
|
194
|
+
|
|
195
|
+
- the `[CHECK required]` tag in text output
|
|
196
|
+
- `actions[].requiresUserCheck` in `context --json`
|
|
197
|
+
- `checkPolicy.token` (`context --json`): recommended approval token (`OK`)
|
|
198
|
+
|
|
199
|
+
> This does not enforce/deny execution by itself; it’s a signal for agents.
|
|
200
|
+
> If `approval` is omitted, it behaves as `builtin`. (No migration required)
|
|
201
|
+
> When `requiresUserCheck: true`, it’s recommended that agents wait for an explicit `OK` response before proceeding.
|
|
202
|
+
|
|
203
|
+
#### Modes
|
|
204
|
+
|
|
205
|
+
- `builtin` (default): keep built-in `requiresUserCheck` in steps/actions
|
|
206
|
+
- `category` (recommended): control CHECK policy by `actions[].category`
|
|
207
|
+
- `steps`: control by step numbers (not recommended; fragile)
|
|
208
|
+
|
|
209
|
+
#### Fields
|
|
210
|
+
|
|
211
|
+
- `default` (`category` only): `keep` | `require` | `skip` (default: `keep`)
|
|
212
|
+
- `requireCheckCategories` (`category` only): categories that **always** require CHECK (e.g. `["pr_create"]`, `["*"]`)
|
|
213
|
+
- `skipCheckCategories` (`category` only): categories that **never** require CHECK (e.g. `["docs_commit"]`, `["*"]`)
|
|
214
|
+
- `requireCheckSteps` (`steps` only): step numbers that require CHECK (e.g. `[3, 5, 12]`)
|
|
215
|
+
|
|
216
|
+
#### category examples
|
|
217
|
+
|
|
218
|
+
```json
|
|
219
|
+
{
|
|
220
|
+
"approval": { "mode": "category", "default": "skip" }
|
|
221
|
+
}
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
```json
|
|
225
|
+
{
|
|
226
|
+
"approval": {
|
|
227
|
+
"mode": "category",
|
|
228
|
+
"default": "keep",
|
|
229
|
+
"skipCheckCategories": ["docs_commit"]
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
> To discover available `category` values, check `actions[].category` in `context --json`.
|
|
235
|
+
|
|
189
236
|
## Generated Structure
|
|
190
237
|
|
|
191
238
|
See the Korean README for the full tree examples and workflow details: `README.md`.
|
package/README.md
CHANGED
|
@@ -149,6 +149,10 @@ npx lee-spec-kit context --json
|
|
|
149
149
|
|
|
150
150
|
- `type: "command"`: `scope`(project|docs), `cwd`, `cmd` 제공 (복사하여 붙여넣기 가능한 형태로 `cd ... && git ...` 형태로 출력)
|
|
151
151
|
- `type: "instruction"`: 사람이 수행해야 하는 안내 메시지
|
|
152
|
+
- `category`: 액션 분류 (자동화/반자동용 `approval.mode: "category"`에서 사용)
|
|
153
|
+
- `requiresUserCheck`: 사용자 확인 필요 여부 (에이전트는 **사용자 응답을 정확히 `OK`로 제한**하는 것을 권장 / 설정의 `approval`로 오버라이드 가능)
|
|
154
|
+
|
|
155
|
+
또한 `checkPolicy`가 포함되어, 에이전트가 사용자 확인 정책을 적용할 때 참고할 수 있습니다. (`docPath`, `hint`, `token: "OK"`, `config`)
|
|
152
156
|
|
|
153
157
|
### 상태 확인
|
|
154
158
|
|
|
@@ -209,7 +213,8 @@ npx lee-spec-kit update --force
|
|
|
209
213
|
"projectType": "single",
|
|
210
214
|
"lang": "ko",
|
|
211
215
|
"createdAt": "YYYY-MM-DD",
|
|
212
|
-
"docsRepo": "embedded"
|
|
216
|
+
"docsRepo": "embedded",
|
|
217
|
+
"approval": { "mode": "builtin" }
|
|
213
218
|
}
|
|
214
219
|
```
|
|
215
220
|
|
|
@@ -223,12 +228,58 @@ npx lee-spec-kit update --force
|
|
|
223
228
|
| `pushDocs` | (standalone만) docs 레포를 별도 Git으로 관리/푸시할지 여부 |
|
|
224
229
|
| `docsRemote` | (standalone+pushDocs) docs 레포 remote URL |
|
|
225
230
|
| `projectRoot` | (standalone만) 프로젝트 레포지토리 경로 (single: string, fullstack: {fe, be}) |
|
|
231
|
+
| `approval` | (선택) `context` 출력의 `[확인 필요]`/`requiresUserCheck` 정책 오버라이드 (자동화/반자동용) |
|
|
226
232
|
|
|
227
233
|
> `docsRepo: "standalone"`을 선택하면 `pushDocs`, `docsRemote`, `projectRoot`가 추가됩니다.
|
|
228
234
|
|
|
229
235
|
> 어디서 실행하든 설정을 찾을 수 있도록, CLI는 현재 디렉토리에서 상위로 올라가며 `.lee-spec-kit.json` 또는 `docs/.lee-spec-kit.json`을 탐색합니다.
|
|
230
236
|
> standalone 환경에서 docs 레포 바깥(예: 프로젝트 레포)에서 실행해야 한다면 `LEE_SPEC_KIT_DOCS_DIR`에 docs 레포 경로를 지정할 수 있습니다.
|
|
231
237
|
|
|
238
|
+
### approval (사용자 확인 정책)
|
|
239
|
+
|
|
240
|
+
`approval`은 `context`가 출력하는 다음 값에만 영향을 줍니다:
|
|
241
|
+
|
|
242
|
+
- 텍스트 출력의 `[확인 필요]` 표시
|
|
243
|
+
- `context --json`의 `actions[].requiresUserCheck`
|
|
244
|
+
- `checkPolicy.token` (`context --json`): 승인 토큰 (`OK`)
|
|
245
|
+
|
|
246
|
+
> 실제 명령 실행을 강제/차단하는 기능은 아닙니다. (에이전트가 참고하도록 신호를 제공)
|
|
247
|
+
> 기존 설정에 `approval`이 없으면 `builtin`으로 동작합니다. (마이그레이션 불필요)
|
|
248
|
+
> `requiresUserCheck: true`인 액션은 에이전트가 사용자로부터 **정확히 `OK` 응답**을 받은 뒤 진행하는 것을 권장합니다.
|
|
249
|
+
|
|
250
|
+
#### 모드
|
|
251
|
+
|
|
252
|
+
- `builtin` (기본): 코드에 내장된 `requiresUserCheck`를 그대로 사용
|
|
253
|
+
- `category` (권장): `actions[].category` 기준으로 확인 정책을 제어
|
|
254
|
+
- `steps`: step 번호 기준(변경에 취약하므로 권장하지 않음)
|
|
255
|
+
|
|
256
|
+
#### 설정 필드
|
|
257
|
+
|
|
258
|
+
- `default` (`category`만): `keep` | `require` | `skip` (기본: `keep`)
|
|
259
|
+
- `requireCheckCategories` (`category`만): 확인을 **항상** 요구할 category 목록 (예: `["pr_create"]`, `["*"]`)
|
|
260
|
+
- `skipCheckCategories` (`category`만): 확인을 **절대** 요구하지 않을 category 목록 (예: `["docs_commit"]`, `["*"]`)
|
|
261
|
+
- `requireCheckSteps` (`steps`만): 확인이 필요한 step 번호 목록 (예: `[3, 5, 12]`)
|
|
262
|
+
|
|
263
|
+
#### category 예시
|
|
264
|
+
|
|
265
|
+
```json
|
|
266
|
+
{
|
|
267
|
+
"approval": { "mode": "category", "default": "skip" }
|
|
268
|
+
}
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
```json
|
|
272
|
+
{
|
|
273
|
+
"approval": {
|
|
274
|
+
"mode": "category",
|
|
275
|
+
"default": "keep",
|
|
276
|
+
"skipCheckCategories": ["docs_commit"]
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
> 사용 가능한 `category` 값은 `context --json`의 `actions[].category`로 확인하는 것을 권장합니다.
|
|
282
|
+
|
|
232
283
|
### Standalone 프로젝트 설정 예시
|
|
233
284
|
|
|
234
285
|
**Single 프로젝트:**
|