delimit-cli 4.1.13 → 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.
@@ -338,7 +338,8 @@ function installClaudeHooks(tool, hookConfig) {
338
338
  fs.mkdirSync(hooksDir, { recursive: true });
339
339
  const hookScript = path.join(hooksDir, 'delimit');
340
340
  const delimitHome = path.join(home, '.delimit');
341
- fs.writeFileSync(hookScript, `#!/bin/bash
341
+ // Write hook script — use explicit newline prefix to avoid terminal escape contamination
342
+ const scriptContent = '#!/bin/bash\n' + `
342
343
  # Delimit SessionStart — generated by delimit-cli setup
343
344
  DELIMIT_HOME="\${DELIMIT_HOME:-${delimitHome}}"
344
345
  echo "=== Delimit Status ==="
@@ -378,7 +379,8 @@ if [ -d "$SESSIONS" ]; then
378
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
379
380
  fi
380
381
  echo "=== Delimit Ready ==="
381
- `);
382
+ `;
383
+ fs.writeFileSync(hookScript, scriptContent);
382
384
  fs.chmodSync(hookScript, '755');
383
385
 
384
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.13",
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": [