dotmd-cli 0.17.0 → 0.17.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.
Files changed (2) hide show
  1. package/README.md +14 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -441,13 +441,19 @@ The session id survives `/clear` and auto-compaction, so a re-attach after
441
441
  either is silent.
442
442
 
443
443
  **Auto-release on Claude Code session end** — add this to
444
- `~/.claude/settings.json`:
444
+ `~/.claude/settings.json` (or your project's `.claude/settings.json`):
445
445
 
446
446
  ```json
447
447
  {
448
- "SessionEnd": [
449
- { "type": "command", "command": "dotmd unpickup", "timeout": 10 }
450
- ]
448
+ "hooks": {
449
+ "SessionEnd": [
450
+ {
451
+ "hooks": [
452
+ { "type": "command", "command": "dotmd unpickup", "timeout": 10 }
453
+ ]
454
+ }
455
+ ]
456
+ }
451
457
  }
452
458
  ```
453
459
 
@@ -455,6 +461,10 @@ When the Claude Code session ends, the hook runs `dotmd unpickup` with
455
461
  `$CLAUDE_CODE_SESSION_ID` in the environment, releasing every lease for
456
462
  that session and flipping plans back to their prior status.
457
463
 
464
+ > The double-`hooks` nesting is correct: `hooks.SessionEnd[*].hooks[*]`
465
+ > is the schema Claude Code requires. `Bash(dotmd:*)` should be in your
466
+ > `permissions.allow` list as well, otherwise the hook will be blocked.
467
+
458
468
  `dotmd briefing` surfaces a `Stuck in-session: N` line when stale leases
459
469
  exist, with a `dotmd unpickup --stale` suggestion.
460
470
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dotmd-cli",
3
- "version": "0.17.0",
3
+ "version": "0.17.1",
4
4
  "description": "CLI for managing markdown documents with YAML frontmatter — index, query, validate, graph, export, Notion sync, AI summaries.",
5
5
  "type": "module",
6
6
  "license": "MIT",