delimit-cli 4.1.12 → 4.1.14

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.
@@ -333,11 +333,13 @@ function installClaudeHooks(tool, hookConfig) {
333
333
  // --- SessionStart hook ---
334
334
  // Write a standalone bash script so it works without npm in PATH
335
335
  if (hookConfig.session_start) {
336
+ const home = getHome();
336
337
  const hooksDir = path.join(home, '.claude', 'hooks');
337
338
  fs.mkdirSync(hooksDir, { recursive: true });
338
339
  const hookScript = path.join(hooksDir, 'delimit');
339
340
  const delimitHome = path.join(home, '.delimit');
340
- fs.writeFileSync(hookScript, `#!/bin/bash
341
+ // Write hook script — use explicit newline prefix to avoid terminal escape contamination
342
+ const scriptContent = '#!/bin/bash\n' + `
341
343
  # Delimit SessionStart — generated by delimit-cli setup
342
344
  DELIMIT_HOME="\${DELIMIT_HOME:-${delimitHome}}"
343
345
  echo "=== Delimit Status ==="
@@ -377,7 +379,8 @@ if [ -d "$SESSIONS" ]; then
377
379
  [ -n "$LATEST" ] && python3 -c "import json; d=json.load(open('$LATEST')); s=d.get('summary','')[:150]; print(f'Last session: {s}')" 2>/dev/null
378
380
  fi
379
381
  echo "=== Delimit Ready ==="
380
- `);
382
+ `;
383
+ fs.writeFileSync(hookScript, scriptContent);
381
384
  fs.chmodSync(hookScript, '755');
382
385
 
383
386
  if (!config.hooks.SessionStart) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "delimit-cli",
3
3
  "mcpName": "io.github.delimit-ai/delimit-mcp-server",
4
- "version": "4.1.12",
4
+ "version": "4.1.14",
5
5
  "description": "Unify Claude Code, Codex, Cursor, and Gemini CLI with persistent context, governance, and multi-model debate.",
6
6
  "main": "index.js",
7
7
  "files": [