gsd-cc 1.3.1 → 1.3.3

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/bin/install.js CHANGED
@@ -157,19 +157,21 @@ function install(isGlobal) {
157
157
 
158
158
  // 5. Install hooks
159
159
  const hooksSrc = path.join(__dirname, '..', 'hooks');
160
- const hooksDest = path.join(skillsBase, 'gsd-cc-shared', 'hooks');
160
+ const hooksBase = isGlobal
161
+ ? path.join(os.homedir(), '.claude', 'hooks')
162
+ : path.join(process.cwd(), '.claude', 'hooks');
161
163
  if (fs.existsSync(hooksSrc)) {
162
- copyDir(hooksSrc, hooksDest);
164
+ copyDir(hooksSrc, hooksBase);
163
165
  // Make hooks executable
164
- const hookFiles = fs.readdirSync(hooksDest);
166
+ const hookFiles = fs.readdirSync(hooksBase);
165
167
  for (const f of hookFiles) {
166
- fs.chmodSync(path.join(hooksDest, f), 0o755);
168
+ fs.chmodSync(path.join(hooksBase, f), 0o755);
167
169
  }
168
170
  fileCount += hookFiles.length;
169
171
  }
170
172
 
171
173
  // 6. Configure hooks in settings.json
172
- installHooks(isGlobal, hooksDest);
174
+ installHooks(isGlobal, hooksBase);
173
175
 
174
176
  console.log(` ${green}✓${reset} Installed ${fileCount} files to ${label}`);
175
177
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gsd-cc",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "description": "Get Shit Done on Claude Code — structured AI development with your Max plan",
5
5
  "author": "Philipp Briese (https://github.com/0ui-labs)",
6
6
  "homepage": "https://github.com/0ui-labs/GSD-CC#readme",
@@ -38,7 +38,7 @@ If not: "jq is required for auto-mode. Install with: `brew install jq`"
38
38
 
39
39
  ### claude -p works
40
40
  ```bash
41
- claude -p "echo test" --output-format json --bare --max-turns 1
41
+ claude -p "echo test" --output-format json --max-turns 1
42
42
  ```
43
43
  If fails: "claude -p is not working. Make sure Claude Code is installed and you're logged in with a Max plan."
44
44
 
@@ -145,7 +145,7 @@ while true; do
145
145
  RESULT_FILE="/tmp/gsd-result-$$.json"
146
146
  timeout 600 claude -p "$(cat "$PROMPT_FILE")" \
147
147
  --allowedTools "Read,Write,Edit,Glob,Grep,Bash(git checkout *),Bash(git merge *),Bash(git commit *)" \
148
- --output-format json --bare \
148
+ --output-format json \
149
149
  --max-turns 15 > "$RESULT_FILE" 2>/dev/null || {
150
150
  echo "❌ UNIFY dispatch failed. Check .gsd/auto.lock for recovery."
151
151
  break
@@ -164,7 +164,7 @@ while true; do
164
164
  # Check roadmap for remaining slices
165
165
  NEXT_RESULT=$(claude -p "Read .gsd/STATE.md and all .gsd/M*-ROADMAP.md and .gsd/S*-UNIFY.md files. Determine the next slice that needs work (no PLAN.md or no UNIFY.md). Output ONLY valid JSON: {\"slice\":\"S01\",\"phase\":\"plan\"} or {\"done\":true} if all slices are unified." \
166
166
  --allowedTools "Read,Glob" \
167
- --output-format json --bare --max-turns 3 2>/dev/null) || {
167
+ --output-format json --max-turns 3 2>/dev/null) || {
168
168
  echo "❌ Failed to determine next unit."
169
169
  break
170
170
  }
@@ -274,7 +274,7 @@ while true; do
274
274
 
275
275
  timeout "$TIMEOUT" claude -p "$(cat "$PROMPT_FILE")" \
276
276
  --allowedTools "$ALLOWED_TOOLS" \
277
- --output-format json --bare \
277
+ --output-format json \
278
278
  --max-turns "$MAX_TURNS" > "$RESULT_FILE" 2>/dev/null || {
279
279
  EXIT_CODE=$?
280
280
  if [[ $EXIT_CODE -eq 124 ]]; then