get-shit-done-cc 1.7.0 → 1.7.1

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.
@@ -140,7 +140,7 @@ Task(
140
140
  </constraints>
141
141
 
142
142
  <output>
143
- Write PLAN.md to: ${QUICK_DIR}/PLAN.md
143
+ Write plan to: ${QUICK_DIR}/${next_num}-PLAN.md
144
144
  Return: ## PLANNING COMPLETE with plan path
145
145
  </output>
146
146
  ",
@@ -150,11 +150,11 @@ Return: ## PLANNING COMPLETE with plan path
150
150
  ```
151
151
 
152
152
  After planner returns:
153
- 1. Verify PLAN.md exists at `${QUICK_DIR}/PLAN.md`
153
+ 1. Verify plan exists at `${QUICK_DIR}/${next_num}-PLAN.md`
154
154
  2. Extract plan count (typically 1 for quick tasks)
155
- 3. Report: "Plan created: ${QUICK_DIR}/PLAN.md"
155
+ 3. Report: "Plan created: ${QUICK_DIR}/${next_num}-PLAN.md"
156
156
 
157
- If PLAN.md not found, error: "Planner failed to create PLAN.md"
157
+ If plan not found, error: "Planner failed to create ${next_num}-PLAN.md"
158
158
 
159
159
  ---
160
160
 
@@ -167,13 +167,13 @@ Task(
167
167
  prompt="
168
168
  Execute quick task ${next_num}.
169
169
 
170
- Plan: @${QUICK_DIR}/PLAN.md
170
+ Plan: @${QUICK_DIR}/${next_num}-PLAN.md
171
171
  Project state: @.planning/STATE.md
172
172
 
173
173
  <constraints>
174
174
  - Execute all tasks in the plan
175
175
  - Commit each task atomically
176
- - Create SUMMARY.md in the quick task directory
176
+ - Create summary at: ${QUICK_DIR}/${next_num}-SUMMARY.md
177
177
  - Do NOT update ROADMAP.md (quick tasks are separate from planned phases)
178
178
  </constraints>
179
179
  ",
@@ -183,11 +183,11 @@ Project state: @.planning/STATE.md
183
183
  ```
184
184
 
185
185
  After executor returns:
186
- 1. Verify SUMMARY.md exists at `${QUICK_DIR}/SUMMARY.md`
186
+ 1. Verify summary exists at `${QUICK_DIR}/${next_num}-SUMMARY.md`
187
187
  2. Extract commit hash from executor output
188
188
  3. Report completion status
189
189
 
190
- If SUMMARY.md not found, error: "Executor failed to create SUMMARY.md"
190
+ If summary not found, error: "Executor failed to create ${next_num}-SUMMARY.md"
191
191
 
192
192
  Note: For quick tasks producing multiple plans (rare), spawn executors in parallel waves per execute-phase patterns.
193
193
 
@@ -235,8 +235,8 @@ Stage and commit quick task artifacts:
235
235
 
236
236
  ```bash
237
237
  # Stage quick task artifacts
238
- git add ${QUICK_DIR}/PLAN.md
239
- git add ${QUICK_DIR}/SUMMARY.md
238
+ git add ${QUICK_DIR}/${next_num}-PLAN.md
239
+ git add ${QUICK_DIR}/${next_num}-SUMMARY.md
240
240
  git add .planning/STATE.md
241
241
 
242
242
  # Commit with quick task format
@@ -263,7 +263,7 @@ GSD > QUICK TASK COMPLETE
263
263
 
264
264
  Quick Task ${next_num}: ${DESCRIPTION}
265
265
 
266
- Summary: ${QUICK_DIR}/SUMMARY.md
266
+ Summary: ${QUICK_DIR}/${next_num}-SUMMARY.md
267
267
  Commit: ${commit_hash}
268
268
 
269
269
  ---
@@ -279,8 +279,8 @@ Ready for next task: /gsd:quick
279
279
  - [ ] Slug generated (lowercase, hyphens, max 40 chars)
280
280
  - [ ] Next number calculated (001, 002, 003...)
281
281
  - [ ] Directory created at `.planning/quick/NNN-slug/`
282
- - [ ] PLAN.md created by planner
283
- - [ ] SUMMARY.md created by executor
282
+ - [ ] `${next_num}-PLAN.md` created by planner
283
+ - [ ] `${next_num}-SUMMARY.md` created by executor
284
284
  - [ ] STATE.md updated with quick task row
285
285
  - [ ] Artifacts committed
286
286
  </success_criteria>
@@ -5,12 +5,16 @@
5
5
  const fs = require('fs');
6
6
  const path = require('path');
7
7
  const os = require('os');
8
- const { execSync, spawn } = require('child_process');
8
+ const { spawn } = require('child_process');
9
9
 
10
10
  const homeDir = os.homedir();
11
+ const cwd = process.cwd();
11
12
  const cacheDir = path.join(homeDir, '.claude', 'cache');
12
13
  const cacheFile = path.join(cacheDir, 'gsd-update-check.json');
13
- const versionFile = path.join(homeDir, '.claude', 'get-shit-done', 'VERSION');
14
+
15
+ // VERSION file locations (check project first, then global)
16
+ const projectVersionFile = path.join(cwd, '.claude', 'get-shit-done', 'VERSION');
17
+ const globalVersionFile = path.join(homeDir, '.claude', 'get-shit-done', 'VERSION');
14
18
 
15
19
  // Ensure cache directory exists
16
20
  if (!fs.existsSync(cacheDir)) {
@@ -23,11 +27,17 @@ const child = spawn(process.execPath, ['-e', `
23
27
  const { execSync } = require('child_process');
24
28
 
25
29
  const cacheFile = ${JSON.stringify(cacheFile)};
26
- const versionFile = ${JSON.stringify(versionFile)};
30
+ const projectVersionFile = ${JSON.stringify(projectVersionFile)};
31
+ const globalVersionFile = ${JSON.stringify(globalVersionFile)};
27
32
 
33
+ // Check project directory first (local install), then global
28
34
  let installed = '0.0.0';
29
35
  try {
30
- installed = fs.readFileSync(versionFile, 'utf8').trim();
36
+ if (fs.existsSync(projectVersionFile)) {
37
+ installed = fs.readFileSync(projectVersionFile, 'utf8').trim();
38
+ } else if (fs.existsSync(globalVersionFile)) {
39
+ installed = fs.readFileSync(globalVersionFile, 'utf8').trim();
40
+ }
31
41
  } catch (e) {}
32
42
 
33
43
  let latest = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "get-shit-done-cc",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "A meta-prompting, context engineering and spec-driven development system for Claude Code by TÂCHES.",
5
5
  "bin": {
6
6
  "get-shit-done-cc": "bin/install.js"