create-claude-cabinet 0.8.0 → 0.8.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.
package/lib/cli.js CHANGED
@@ -103,7 +103,7 @@ const MODULES = {
103
103
  default: true,
104
104
  lean: false,
105
105
  needsOmega: true,
106
- templates: ['hooks/memory-session-start.sh', 'hooks/memory-post-compact.sh', 'scripts/cabinet-memory-adapter.py', 'rules/memory-capture.md'],
106
+ templates: ['skills/memory', 'hooks/memory-session-start.sh', 'hooks/memory-post-compact.sh', 'scripts/cabinet-memory-adapter.py', 'rules/memory-capture.md'],
107
107
  },
108
108
  };
109
109
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-claude-cabinet",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Claude Cabinet — opinionated process scaffolding for Claude Code projects",
5
5
  "bin": {
6
6
  "create-claude-cabinet": "bin/create-claude-cabinet.js"
@@ -0,0 +1,94 @@
1
+ ---
2
+ name: memory
3
+ description: |
4
+ Browse and search semantic memory. Shows what omega remembers — decisions,
5
+ lessons, preferences, constraints. Use when: "what's in memory", "memory",
6
+ "/memory", "what do you remember", "show memories", "search memory".
7
+ user-invocable: true
8
+ ---
9
+
10
+ # /memory — Browse Semantic Memory
11
+
12
+ ## Purpose
13
+
14
+ Give the user visibility into what omega remembers. Browse, search, and
15
+ manage the semantic memory store.
16
+
17
+ ## Prerequisites
18
+
19
+ Check that omega is available:
20
+ - `~/.claude-cabinet/omega-venv/bin/python3` exists
21
+ - `scripts/cabinet-memory-adapter.py` exists
22
+
23
+ If not available, tell the user:
24
+ > Memory module is not set up. Run `npx create-claude-cabinet` to install it.
25
+
26
+ ## Commands
27
+
28
+ Parse the user's intent from their prompt:
29
+
30
+ ### Browse (default — no arguments)
31
+
32
+ Show the timeline and stats:
33
+
34
+ ```bash
35
+ ~/.claude-cabinet/omega-venv/bin/omega timeline 2>&1
36
+ ~/.claude-cabinet/omega-venv/bin/omega stats 2>&1
37
+ ```
38
+
39
+ Present both outputs. The timeline shows what's stored chronologically,
40
+ stats shows the type distribution.
41
+
42
+ ### Search — user provides a topic
43
+
44
+ Query omega for memories matching the topic:
45
+
46
+ ```bash
47
+ echo '{"text": "the user query", "limit": 10}' | \
48
+ ~/.claude-cabinet/omega-venv/bin/python3 scripts/cabinet-memory-adapter.py query
49
+ ```
50
+
51
+ Present the results conversationally — don't just dump JSON.
52
+
53
+ ### Remember — user wants to store something
54
+
55
+ Store a new memory:
56
+
57
+ ```bash
58
+ echo '{"text": "what to remember", "type": "preference"}' | \
59
+ ~/.claude-cabinet/omega-venv/bin/python3 scripts/cabinet-memory-adapter.py store
60
+ ```
61
+
62
+ Pick the type based on what the user said:
63
+ - `decision` — they made a choice and want it recorded
64
+ - `lesson` — they learned something
65
+ - `preference` — they want something done a certain way
66
+ - `constraint` — a limitation or prerequisite
67
+ - `pattern` — a convention or recurring approach
68
+
69
+ Confirm what was stored.
70
+
71
+ ### Forget — user wants to remove something
72
+
73
+ Look up the memory first with a query, show them what matched, confirm
74
+ which one to remove. Use omega's delete:
75
+
76
+ ```bash
77
+ ~/.claude-cabinet/omega-venv/bin/omega query "the topic" 2>&1
78
+ ```
79
+
80
+ Then delete by ID:
81
+
82
+ ```bash
83
+ echo '{"text": "delete mem-XXXX", "type": "memory"}' | \
84
+ ~/.claude-cabinet/omega-venv/bin/python3 scripts/cabinet-memory-adapter.py store
85
+ ```
86
+
87
+ Note: omega doesn't have a direct delete API in the adapter yet. For now,
88
+ tell the user the memory ID and that direct deletion requires the omega CLI.
89
+
90
+ ## Presentation
91
+
92
+ Keep it conversational. Don't dump raw CLI output — summarize it.
93
+ For timeline, present as a readable list. For search results, highlight
94
+ the most relevant matches and their types.