lee-spec-kit 0.6.16 β†’ 0.6.18

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.16",
3
+ "version": "0.6.18",
4
4
  "description": "Project documentation structure generator for AI-assisted development",
5
5
  "type": "module",
6
6
  "bin": {
@@ -49,13 +49,18 @@
49
49
  "eslint-config-prettier": "^10.1.8",
50
50
  "prettier": "^3.7.4",
51
51
  "tsup": "^8.5.1",
52
- "typescript": "^5.9.3"
52
+ "typescript": "^5.9.3",
53
+ "vitest": "^4.0.18"
53
54
  },
54
55
  "scripts": {
55
56
  "build": "tsup",
56
57
  "dev": "tsup --watch",
57
58
  "lint": "eslint src",
58
- "test:race": "pnpm build && node --test tests/race.test.mjs",
59
+ "lint:test": "eslint tests",
60
+ "typecheck": "tsc --noEmit",
61
+ "typecheck:test": "tsc -p tsconfig.tests.json --noEmit",
62
+ "test": "pnpm build && vitest run",
63
+ "test:race": "pnpm build && vitest run tests/race.test.mjs",
59
64
  "format": "prettier --write ."
60
65
  }
61
66
  }
@@ -5,11 +5,14 @@ This documentation is organized by feature to help agents quickly understand the
5
5
  ## Agent Session Start Checklist
6
6
 
7
7
  ```bash
8
+ # (recommended once at start) run onboarding checks
9
+ npx lee-spec-kit onboard --strict
10
+
8
11
  # 1) Detect project
9
12
  npx lee-spec-kit detect --json
10
13
 
11
14
  # 2) If detected, read context first
12
- npx lee-spec-kit context --json
15
+ npx lee-spec-kit context --json-compact
13
16
  ```
14
17
 
15
18
  - Apply lee-spec-kit workflow only when `isLeeSpecKitProject: true`.
@@ -20,7 +23,8 @@ npx lee-spec-kit context --json
20
23
 
21
24
  - Scaffold the code project first (for example Next.js/NestJS), then run `lee-spec-kit init`.
22
25
  - After that, verify detection with `detect --json`, then continue with `feature` and `context`.
23
- - This sequence assumes default `docsRepo: embedded`. For `standalone`, run against the docs repo path (`--dir` or `LEE_SPEC_KIT_DOCS_DIR`).
26
+ - In most cases (default: embedded), the steps above are all you need.
27
+ - Choose standalone only when docs are managed separately from the code repo. In that case, prefer running init from a parent workspace folder (for example `workspace/docs`, `workspace/project`) and set both docs/project paths together. (e.g. `npx lee-spec-kit init --docs-repo standalone --dir ./docs --project-root ./project`)
24
28
 
25
29
  ## Directory Structure
26
30
 
@@ -33,7 +33,7 @@ Prohibited:
33
33
  ## 🧾 Label Response Contract (SSOT)
34
34
 
35
35
  - End **every user-facing reply** with current status + available labels.
36
- - Use the latest `npx lee-spec-kit context --json` (or `flow --json`) as source.
36
+ - Use the latest `npx lee-spec-kit context --json-compact` as the default source (fallback: `context --json` or `flow --json` when full detail is required).
37
37
  - Use `actionOptions[].detail` or command `cmd` **verbatim**. Do not paraphrase.
38
38
  - Even when the user asks something else, append the same label block at the end if executable labels exist.
39
39
  - If no executable labels exist, print `Available labels: none` and guide re-check with `npx lee-spec-kit context`.
@@ -82,9 +82,16 @@ main
82
82
  ### Branch Creation
83
83
 
84
84
  ```bash
85
- git checkout -b feat/{issue-number}-{feature-name}
85
+ # Default (recommended): create dedicated worktree + branch
86
+ mkdir -p .worktrees
87
+ git worktree add -b feat/{issue-number}-{feature-name} .worktrees/feat-{issue-number}-{feature-name}
88
+
89
+ # If branch already exists, attach worktree only
90
+ git worktree add .worktrees/feat-{issue-number}-{feature-name} feat/{issue-number}-{feature-name}
86
91
  ```
87
92
 
93
+ > Continue implementation from the created worktree path (`.worktrees/feat-{issue-number}-{feature-name}`).
94
+
88
95
  ### Document Commit Rules (Continuous Sync)
89
96
 
90
97
  > πŸ”„ **Docs synchronization is mandatory when Project code changes.**
@@ -22,12 +22,8 @@
22
22
  - [ ] (verifiable criterion 1)
23
23
  - [ ] (verifiable criterion 2)
24
24
 
25
- ## Out of Scope
26
-
27
- - (what this issue does not cover)
28
-
29
25
  ## Related Docs
30
26
 
31
- - Spec: `./spec.md`
32
- - Plan: `./plan.md`
33
- - Tasks: `./tasks.md`
27
+ - Spec: `docs/.../spec.md`
28
+ - Plan: `docs/.../plan.md`
29
+ - Tasks: `docs/.../tasks.md`
@@ -27,6 +27,6 @@
27
27
 
28
28
  ## Related Docs
29
29
 
30
- - Spec: `./spec.md`
31
- - Tasks: `./tasks.md`
32
- - Decisions: `./decisions.md`
30
+ - Spec: `docs/.../spec.md`
31
+ - Tasks: `docs/.../tasks.md`
32
+ - Decisions: `docs/.../decisions.md`
@@ -5,11 +5,14 @@
5
5
  ## μ—μ΄μ „νŠΈ μ„Έμ…˜ μ‹œμž‘ 체크리슀트
6
6
 
7
7
  ```bash
8
+ # (졜초 1회 ꢌμž₯) 초기 μ˜¨λ³΄λ”© 점검
9
+ npx lee-spec-kit onboard --strict
10
+
8
11
  # 1) ν”„λ‘œμ νŠΈ 감지
9
12
  npx lee-spec-kit detect --json
10
13
 
11
14
  # 2) 감지 성곡 μ‹œ μ»¨ν…μŠ€νŠΈ 쑰회
12
- npx lee-spec-kit context --json
15
+ npx lee-spec-kit context --json-compact
13
16
  ```
14
17
 
15
18
  - `isLeeSpecKitProject: true`일 λ•Œλ§Œ lee-spec-kit μ›Œν¬ν”Œλ‘œμš°λ₯Ό μ μš©ν•©λ‹ˆλ‹€.
@@ -20,7 +23,8 @@ npx lee-spec-kit context --json
20
23
 
21
24
  - μ½”λ“œ ν”„λ‘œμ νŠΈ μŠ€μΊν΄λ”©(예: Next.js/NestJS) ν›„ `lee-spec-kit init`을 μ‹€ν–‰ν•˜μ„Έμš”.
22
25
  - κ·Έ λ‹€μŒ `detect --json`으둜 감지 κ²°κ³Όλ₯Ό ν™•μΈν•˜κ³ , `feature`/`context` μˆœμ„œλ‘œ μ§„ν–‰ν•˜μ„Έμš”.
23
- - μœ„ μˆœμ„œλŠ” 기본값인 `docsRepo: embedded` κΈ°μ€€μž…λ‹ˆλ‹€. `standalone`이면 docs 레포 경둜 κΈ°μ€€(`--dir` λ˜λŠ” `LEE_SPEC_KIT_DOCS_DIR`)으둜 μ‹€ν–‰ν•˜μ„Έμš”.
26
+ - λŒ€λΆ€λΆ„μ˜ 경우(κΈ°λ³Έκ°’: embedded) μœ„ μˆœμ„œλ§Œ λ”°λ₯΄λ©΄ λ©λ‹ˆλ‹€.
27
+ - docsλ₯Ό μ½”λ“œ μ €μž₯μ†Œμ™€ 뢄리해 μš΄μ˜ν•  λ•Œλ§Œ standalone을 μ„ νƒν•˜μ„Έμš”. μ΄λ•ŒλŠ” μƒμœ„ μ›Œν¬μŠ€νŽ˜μ΄μŠ€ 폴더(예: `workspace/docs`, `workspace/project`)μ—μ„œ `init`을 μ‹€ν–‰ν•΄ docs/project 경둜λ₯Ό ν•¨κ»˜ μ§€μ •ν•˜λŠ” 방식을 ꢌμž₯ν•©λ‹ˆλ‹€. (예: `npx lee-spec-kit init --docs-repo standalone --dir ./docs --project-root ./project`)
24
28
 
25
29
  ## μƒμœ„ ꡬ쑰 μš”μ•½
26
30
 
@@ -33,7 +33,7 @@
33
33
  ## 🧾 라벨 응닡 계약 (SSOT)
34
34
 
35
35
  - μ‚¬μš©μžμ—κ²Œ λ³΄λ‚΄λŠ” **λͺ¨λ“  μ‘λ‹΅μ˜ λ§ˆμ§€λ§‰**에 ν˜„μž¬ μƒνƒœ + 선택 κ°€λŠ₯ν•œ 라벨을 ν‘œμ‹œν•©λ‹ˆλ‹€.
36
- - κΈ°μ€€ λ°μ΄ν„°λŠ” μ΅œμ‹  `npx lee-spec-kit context --json`(λ˜λŠ” `flow --json`)μž…λ‹ˆλ‹€.
36
+ - κΈ°μ€€ λ°μ΄ν„°λŠ” μ΅œμ‹  `npx lee-spec-kit context --json-compact`λ₯Ό 기본으둜 μ‚¬μš©ν•˜κ³ , 상세 ν•„λ“œκ°€ ν•„μš”ν•  λ•Œλ§Œ `context --json`(λ˜λŠ” `flow --json`)을 μ‚¬μš©ν•©λ‹ˆλ‹€.
37
37
  - 라벨 μ„€λͺ…은 `actionOptions[].detail` λ˜λŠ” command `cmd`λ₯Ό **원문 κ·ΈλŒ€λ‘œ** μ‚¬μš©ν•©λ‹ˆλ‹€. (μš”μ•½/μ˜μ—­ κΈˆμ§€)
38
38
  - μ‚¬μš©μžκ°€ λ‹€λ₯Έ μ§ˆλ¬Έμ„ ν•˜λ”λΌλ„, μ‹€ν–‰ κ°€λŠ₯ν•œ 라벨이 있으면 응닡 λ§ˆμ§€λ§‰μ— 동일 블둝을 λ‹€μ‹œ ν‘œμ‹œν•©λ‹ˆλ‹€.
39
39
  - μ‹€ν–‰ κ°€λŠ₯ν•œ 라벨이 μ—†μœΌλ©΄ `선택 κ°€λŠ₯: μ—†μŒ` + `npx lee-spec-kit context` μž¬ν™•μΈμ„ μ•ˆλ‚΄ν•©λ‹ˆλ‹€.
@@ -82,9 +82,16 @@ main
82
82
  ### 브랜치 생성
83
83
 
84
84
  ```bash
85
- git checkout -b feat/{issue-number}-{feature-name}
85
+ # κΈ°λ³Έ(ꢌμž₯): μ „μš© worktree + 브랜치 생성
86
+ mkdir -p .worktrees
87
+ git worktree add -b feat/{issue-number}-{feature-name} .worktrees/feat-{issue-number}-{feature-name}
88
+
89
+ # 이미 λΈŒλžœμΉ˜κ°€ μ‘΄μž¬ν•˜λ©΄ worktree만 μ—°κ²°
90
+ git worktree add .worktrees/feat-{issue-number}-{feature-name} feat/{issue-number}-{feature-name}
86
91
  ```
87
92
 
93
+ > 이후 μž‘μ—…μ€ μƒμ„±λœ worktree 경둜(`.worktrees/feat-{issue-number}-{feature-name}`)μ—μ„œ μ§„ν–‰ν•˜μ„Έμš”.
94
+
88
95
  ### λ¬Έμ„œ 컀밋 κ·œμΉ™ (Continuous Sync)
89
96
 
90
97
  > πŸ”„ **Project μ½”λ“œ λ³€κ²½ μ‹œ Docs λ™κΈ°ν™”λŠ” ν•„μˆ˜μž…λ‹ˆλ‹€.**
@@ -22,12 +22,8 @@
22
22
  - [ ] (검증 κ°€λŠ₯ν•œ μ™„λ£Œ κΈ°μ€€ 1)
23
23
  - [ ] (검증 κ°€λŠ₯ν•œ μ™„λ£Œ κΈ°μ€€ 2)
24
24
 
25
- ## μ œμ™Έ λ²”μœ„
26
-
27
- - (이번 μ΄μŠˆμ—μ„œ 닀루지 μ•ŠλŠ” λ‚΄μš©)
28
-
29
25
  ## κ΄€λ ¨ λ¬Έμ„œ
30
26
 
31
- - Spec: `./spec.md`
32
- - Plan: `./plan.md`
33
- - Tasks: `./tasks.md`
27
+ - Spec: `docs/.../spec.md`
28
+ - Plan: `docs/.../plan.md`
29
+ - Tasks: `docs/.../tasks.md`
@@ -27,6 +27,6 @@
27
27
 
28
28
  ## κ΄€λ ¨ λ¬Έμ„œ
29
29
 
30
- - Spec: `./spec.md`
31
- - Tasks: `./tasks.md`
32
- - Decisions: `./decisions.md`
30
+ - Spec: `docs/.../spec.md`
31
+ - Tasks: `docs/.../tasks.md`
32
+ - Decisions: `docs/.../decisions.md`