delimit-cli 4.1.8 → 4.1.9

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.
@@ -322,12 +322,18 @@ function installClaudeHooks(tool, hookConfig) {
322
322
  const changes = [];
323
323
 
324
324
  // --- SessionStart hook (no condition) ---
325
+ // Always update to latest version (reinstall-safe)
325
326
  if (hookConfig.session_start) {
326
327
  if (!config.hooks.SessionStart) {
327
328
  config.hooks.SessionStart = [];
328
329
  }
329
330
  const existing = findClaudeHookGroup(config.hooks.SessionStart, 'delimit-cli hook session-start');
330
- if (!existing) {
331
+ if (existing) {
332
+ // Remove old entry so we can replace it
333
+ const idx = config.hooks.SessionStart.indexOf(existing);
334
+ if (idx >= 0) config.hooks.SessionStart.splice(idx, 1);
335
+ }
336
+ {
331
337
  config.hooks.SessionStart.push({
332
338
  matcher: '',
333
339
  hooks: [{
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.8",
4
+ "version": "4.1.9",
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": [