@crewx/memory 0.1.23-rc.99 → 0.1.24
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/README.md +29 -1
- package/SKILL.md +77 -64
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +3 -340
- package/dist/src/engine.d.ts +17 -3
- package/dist/src/engine.js +94 -1204
- package/dist/src/host-classifier.d.ts +2 -0
- package/dist/src/host-classifier.js +1 -0
- package/dist/src/mindmap.d.ts +3 -1
- package/dist/src/mindmap.js +18 -518
- package/dist/src/native-adapter.d.ts +45 -0
- package/dist/src/native-adapter.js +1 -0
- package/dist/src/native-host.d.ts +35 -0
- package/dist/src/native-host.js +1 -0
- package/dist/src/parser.d.ts +6 -3
- package/dist/src/parser.js +1 -7
- package/dist/src/settings.d.ts +15 -0
- package/dist/src/settings.js +1 -0
- package/dist/src/storage.d.ts +42 -0
- package/dist/src/storage.js +1 -0
- package/dist/src/summarizer-failure.d.ts +8 -0
- package/dist/src/summarizer-failure.js +1 -0
- package/dist/src/summary-scheduling.d.ts +6 -0
- package/dist/src/summary-scheduling.js +1 -0
- package/dist/src/types.d.ts +1 -1
- package/dist/src/types.js +1 -15
- package/go/bin/crewx-memory-darwin-amd64 +0 -0
- package/go/bin/crewx-memory-darwin-arm64 +0 -0
- package/go/bin/crewx-memory-linux-amd64 +0 -0
- package/go/bin/crewx-memory-linux-arm64 +0 -0
- package/go/bin/crewx-memory-windows-amd64.exe +0 -0
- package/go/native-manifest.json +74 -0
- package/package.json +12 -5
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/src/engine.d.ts.map +0 -1
- package/dist/src/engine.js.map +0 -1
- package/dist/src/mindmap.d.ts.map +0 -1
- package/dist/src/mindmap.js.map +0 -1
- package/dist/src/parser.d.ts.map +0 -1
- package/dist/src/parser.js.map +0 -1
- package/dist/src/types.d.ts.map +0 -1
- package/dist/src/types.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,7 +1,35 @@
|
|
|
1
1
|
# @crewx/memory
|
|
2
2
|
|
|
3
|
+
## Known limits
|
|
4
|
+
|
|
5
|
+
- On the POSIX replacement path (Darwin and Linux), replacing an entry with an extended ACL can drop that ACL. Windows replacement uses `ReplaceFileW` so the operating system carries the target ACL.
|
|
6
|
+
- A clean read racing a full write and recovery cycle is not detected.
|
|
7
|
+
|
|
3
8
|
Memory engine for CrewX - markdown + frontmatter based long-term memory.
|
|
4
9
|
|
|
5
10
|
```bash
|
|
6
|
-
|
|
11
|
+
crewx memory index <agent_id>
|
|
7
12
|
```
|
|
13
|
+
|
|
14
|
+
## Native command routing
|
|
15
|
+
|
|
16
|
+
On supported npm installations, ordinary reads use the packaged Go reader: `index` (including `--full` and `--recent`), `get`/`read`, `find`, `list` (including `--category`, `--tag`, and `--json`), `recent`/`ls`, `stats`, and `tags` with or without a topic. CRUD writes (`save`, `update`, `delete`/`rm`, and `merge`) use the packaged Go writer by default on macOS, Linux, and Windows. Empty or invalid argument forms keep the existing Node validation behavior.
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
crewx memory index <agent_id>
|
|
20
|
+
crewx memory index <agent_id> --full
|
|
21
|
+
crewx memory index <agent_id> --recent=30
|
|
22
|
+
crewx memory get <agent_id> <memory_id>
|
|
23
|
+
crewx memory read <agent_id> <memory_id>
|
|
24
|
+
crewx memory find <agent_id> "<non-empty query>"
|
|
25
|
+
crewx memory list <agent_id> --category=decision --tag=crewx,api
|
|
26
|
+
crewx memory list <agent_id> --json
|
|
27
|
+
crewx memory recent <agent_id> 30
|
|
28
|
+
crewx memory ls <agent_id> 30
|
|
29
|
+
crewx memory stats <agent_id>
|
|
30
|
+
crewx memory tags <agent_id> [topic]
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
AI-backed commands, graph/mindmap, help, and unsupported invocations remain on the existing Node implementation. CrewX Desktop also stays on Node until shell-native packaging is available. Set `CREWX_MEMORY_RUNTIME=node` to force the existing implementation. `auto` is the default and falls back before execution when the command or packaged artifact lacks the required capability. `CREWX_MEMORY_RUNTIME=go` requires native support and reports an actionable error when unavailable. A native operation that has started is never retried in Node.
|
|
34
|
+
|
|
35
|
+
The package includes native artifacts for macOS arm64/amd64, Linux arm64/amd64, and Windows amd64. Runtime artifact lookup is confined to the installed `@crewx/memory` package; no downloads are performed.
|
package/SKILL.md
CHANGED
|
@@ -8,11 +8,24 @@ metadata:
|
|
|
8
8
|
|
|
9
9
|
# Memory V2 Skill
|
|
10
10
|
|
|
11
|
+
## Native command routing
|
|
12
|
+
|
|
13
|
+
The default `auto` runtime uses the packaged Go reader for ordinary read commands and their existing options/aliases:
|
|
14
|
+
|
|
15
|
+
- `index` with `--full` and `--recent`
|
|
16
|
+
- `get` / `read`, and `find`
|
|
17
|
+
- `list` with `--category`, `--tag`, and `--json`
|
|
18
|
+
- `recent` / `ls`, `stats`, and `tags [topic]`
|
|
19
|
+
|
|
20
|
+
Empty or invalid argument forms keep the existing Node validation behavior. `auto` checks the packaged artifact's protocol capability before starting an operation and falls back before execution when unsupported. It never retries a failed native operation in Node. Set `CREWX_MEMORY_RUNTIME=node` to roll back explicitly; set `CREWX_MEMORY_RUNTIME=go` to require native support and fail with an actionable error when it is unavailable.
|
|
21
|
+
|
|
22
|
+
CRUD writes (`save`, `update`, `delete` / `rm`, and `merge`) use the packaged Go writer by default on macOS, Linux, and Windows. AI-backed commands, graph/mindmap, help, and other unsupported operations continue through the existing Node implementation. CrewX Desktop also stays on Node until shell-native packaging is available.
|
|
23
|
+
|
|
11
24
|
A long-term memory management skill based on markdown + frontmatter.
|
|
12
25
|
|
|
13
26
|
## Installation
|
|
14
27
|
|
|
15
|
-
Included in `packages/built-in/memory`, used via the `
|
|
28
|
+
Included in `packages/built-in/memory`, used via the `crewx memory` command.
|
|
16
29
|
|
|
17
30
|
## Features
|
|
18
31
|
|
|
@@ -34,11 +47,11 @@ Shorthand aliases for frequently used commands. They work identically to the ori
|
|
|
34
47
|
|
|
35
48
|
```bash
|
|
36
49
|
# The following two commands are identical
|
|
37
|
-
|
|
38
|
-
|
|
50
|
+
crewx memory get agent_id ABC123
|
|
51
|
+
crewx memory read agent_id ABC123
|
|
39
52
|
|
|
40
|
-
|
|
41
|
-
|
|
53
|
+
crewx memory index agent_id
|
|
54
|
+
crewx memory list agent_id
|
|
42
55
|
```
|
|
43
56
|
|
|
44
57
|
## Directory Structure
|
|
@@ -59,7 +72,7 @@ memory/
|
|
|
59
72
|
### Save
|
|
60
73
|
|
|
61
74
|
```bash
|
|
62
|
-
|
|
75
|
+
crewx memory save <agent_id> "<summary>" [category] [--topic=xxx] [--tags=a,b,c] [--body="detailed content"]
|
|
63
76
|
```
|
|
64
77
|
|
|
65
78
|
**Options:**
|
|
@@ -78,18 +91,18 @@ npx memory save <agent_id> "<summary>" [category] [--topic=xxx] [--tags=a,b,c] [
|
|
|
78
91
|
**Examples:**
|
|
79
92
|
```bash
|
|
80
93
|
# [BAD] Bad example - no details
|
|
81
|
-
|
|
94
|
+
crewx memory save cto "Gemini 3.0 Flash moment" decision --topic=crewx-strategy
|
|
82
95
|
|
|
83
96
|
# [GOOD] Good example - details included
|
|
84
|
-
|
|
97
|
+
crewx memory save cto "Gemini 3.0 Flash moment - strategic turning point" decision --topic=crewx-strategy --tags=gemini,pricing --body="SWE-bench 78% dominates Claude 3.5 Sonnet (49%). Price is 1/6. CrewX strategy validated -- orchestration is the key moat."
|
|
85
98
|
```
|
|
86
99
|
|
|
87
100
|
### Index Query
|
|
88
101
|
|
|
89
102
|
```bash
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
103
|
+
crewx memory index <agent_id> # Medium-term memory (topic summaries only)
|
|
104
|
+
crewx memory index <agent_id> --recent # Recent entry list
|
|
105
|
+
crewx memory index <agent_id> --full # Full view
|
|
93
106
|
```
|
|
94
107
|
|
|
95
108
|
**Drill-down pattern:** `index` -> drill into needed topic with `topic` -> drill into needed entry with `get`
|
|
@@ -97,19 +110,19 @@ npx memory index <agent_id> --full # Full view
|
|
|
97
110
|
### Topic Drill-down
|
|
98
111
|
|
|
99
112
|
```bash
|
|
100
|
-
|
|
113
|
+
crewx memory topic <agent_id> <topic_name>
|
|
101
114
|
```
|
|
102
115
|
|
|
103
116
|
### Recent Memories
|
|
104
117
|
|
|
105
118
|
```bash
|
|
106
|
-
|
|
119
|
+
crewx memory recent <agent_id> [days=30]
|
|
107
120
|
```
|
|
108
121
|
|
|
109
122
|
### Keyword Search (Fast)
|
|
110
123
|
|
|
111
124
|
```bash
|
|
112
|
-
|
|
125
|
+
crewx memory find <agent_id> "<keyword>"
|
|
113
126
|
```
|
|
114
127
|
|
|
115
128
|
Grep-based string matching. Fast and free.
|
|
@@ -117,7 +130,7 @@ Grep-based string matching. Fast and free.
|
|
|
117
130
|
### Semantic Search (AI)
|
|
118
131
|
|
|
119
132
|
```bash
|
|
120
|
-
|
|
133
|
+
crewx memory search <agent_id> "<query>"
|
|
121
134
|
```
|
|
122
135
|
|
|
123
136
|
Semantic search powered by **Gemini 2.0 Flash**. Understands synonyms and context.
|
|
@@ -128,22 +141,22 @@ Semantic search powered by **Gemini 2.0 Flash**. Understands synonyms and contex
|
|
|
128
141
|
**Examples:**
|
|
129
142
|
```bash
|
|
130
143
|
# Keyword search (fast)
|
|
131
|
-
|
|
144
|
+
crewx memory find crewx_dev_lead "agent"
|
|
132
145
|
|
|
133
146
|
# Semantic search (AI)
|
|
134
|
-
|
|
147
|
+
crewx memory search crewx_dev_lead "things to watch out for when assigning tasks"
|
|
135
148
|
```
|
|
136
149
|
|
|
137
150
|
### Detail View (Drill-down)
|
|
138
151
|
|
|
139
152
|
```bash
|
|
140
|
-
|
|
153
|
+
crewx memory get <agent_id> <memory_id>
|
|
141
154
|
```
|
|
142
155
|
|
|
143
156
|
### Update Memory
|
|
144
157
|
|
|
145
158
|
```bash
|
|
146
|
-
|
|
159
|
+
crewx memory update <agent_id> <memory_id> [options]
|
|
147
160
|
```
|
|
148
161
|
|
|
149
162
|
**Options:**
|
|
@@ -158,16 +171,16 @@ npx memory update <agent_id> <memory_id> [options]
|
|
|
158
171
|
**Examples:**
|
|
159
172
|
```bash
|
|
160
173
|
# Update summary and detailed content
|
|
161
|
-
|
|
174
|
+
crewx memory update cto VkY9X6 --summary="Updated summary" --body="Updated detailed content"
|
|
162
175
|
|
|
163
176
|
# Change topic only
|
|
164
|
-
|
|
177
|
+
crewx memory update cto VkY9X6 --topic=new-topic
|
|
165
178
|
```
|
|
166
179
|
|
|
167
180
|
### Delete Memory
|
|
168
181
|
|
|
169
182
|
```bash
|
|
170
|
-
|
|
183
|
+
crewx memory delete <agent_id> <memory_id> [--force]
|
|
171
184
|
```
|
|
172
185
|
|
|
173
186
|
- Without `--force`, only a confirmation message is displayed
|
|
@@ -176,16 +189,16 @@ npx memory delete <agent_id> <memory_id> [--force]
|
|
|
176
189
|
**Examples:**
|
|
177
190
|
```bash
|
|
178
191
|
# Deletion confirmation
|
|
179
|
-
|
|
192
|
+
crewx memory delete cto VkY9X6
|
|
180
193
|
|
|
181
194
|
# Actual deletion
|
|
182
|
-
|
|
195
|
+
crewx memory delete cto VkY9X6 --force
|
|
183
196
|
```
|
|
184
197
|
|
|
185
198
|
### Merge Memories
|
|
186
199
|
|
|
187
200
|
```bash
|
|
188
|
-
|
|
201
|
+
crewx memory merge <agent_id> <memory_id1> <memory_id2> [--summary="merge summary"]
|
|
189
202
|
```
|
|
190
203
|
|
|
191
204
|
- Merges two memories into one
|
|
@@ -196,16 +209,16 @@ npx memory merge <agent_id> <memory_id1> <memory_id2> [--summary="merge summary"
|
|
|
196
209
|
**Examples:**
|
|
197
210
|
```bash
|
|
198
211
|
# Merge two memories
|
|
199
|
-
|
|
212
|
+
crewx memory merge cto abc123 def456
|
|
200
213
|
|
|
201
214
|
# Merge with custom summary
|
|
202
|
-
|
|
215
|
+
crewx memory merge cto abc123 def456 --summary="VLM fine-tuning comprehensive summary"
|
|
203
216
|
```
|
|
204
217
|
|
|
205
218
|
### Generate Summary (summarize)
|
|
206
219
|
|
|
207
220
|
```bash
|
|
208
|
-
|
|
221
|
+
crewx memory summarize <agent_id> [--force]
|
|
209
222
|
```
|
|
210
223
|
|
|
211
224
|
Memory summarization using the MemGAS incremental summarization approach.
|
|
@@ -229,10 +242,10 @@ Memory summarization using the MemGAS incremental summarization approach.
|
|
|
229
242
|
**Examples:**
|
|
230
243
|
```bash
|
|
231
244
|
# Incremental summary (reflects new entries only)
|
|
232
|
-
|
|
245
|
+
crewx memory summarize ui_devlead
|
|
233
246
|
|
|
234
247
|
# Force full regeneration
|
|
235
|
-
|
|
248
|
+
crewx memory summarize ui_devlead --force
|
|
236
249
|
```
|
|
237
250
|
|
|
238
251
|
### Generate Summary (summarize-dirty)
|
|
@@ -241,12 +254,12 @@ npx memory summarize ui_devlead --force
|
|
|
241
254
|
Cron checks and executes every 1 minute.
|
|
242
255
|
|
|
243
256
|
```bash
|
|
244
|
-
|
|
257
|
+
crewx memory summarize-dirty
|
|
245
258
|
```
|
|
246
259
|
|
|
247
260
|
**Cron registration example:**
|
|
248
261
|
```bash
|
|
249
|
-
|
|
262
|
+
crewx cron add "*/1 * * * *" "crewx memory summarize-dirty" --mode command --name "memory-debounce"
|
|
250
263
|
```
|
|
251
264
|
|
|
252
265
|
**summary.md format:**
|
|
@@ -271,7 +284,7 @@ CLI shell environment detection performance improvement...
|
|
|
271
284
|
### Filename Migration (migrate)
|
|
272
285
|
|
|
273
286
|
```bash
|
|
274
|
-
|
|
287
|
+
crewx memory migrate <agent_id>
|
|
275
288
|
```
|
|
276
289
|
|
|
277
290
|
Batch converts existing slug filenames (`2026-02-16-slug-name.md`) to ID-based filenames (`QOSIOs.md`).
|
|
@@ -282,7 +295,7 @@ Batch converts existing slug filenames (`2026-02-16-slug-name.md`) to ID-based f
|
|
|
282
295
|
|
|
283
296
|
**Example:**
|
|
284
297
|
```bash
|
|
285
|
-
|
|
298
|
+
crewx memory migrate ui_devlead
|
|
286
299
|
```
|
|
287
300
|
|
|
288
301
|
## Frontmatter Schema
|
|
@@ -307,12 +320,12 @@ summary: "One-line summary"
|
|
|
307
320
|
## At Conversation Start (Required!)
|
|
308
321
|
```bash
|
|
309
322
|
# Load medium-term memory (topic summaries + drill-down guide)
|
|
310
|
-
|
|
323
|
+
crewx memory index {{agent_id}}
|
|
311
324
|
|
|
312
325
|
# Drill down as needed
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
326
|
+
crewx memory index {{agent_id}} --recent # Recent list
|
|
327
|
+
crewx memory topic {{agent_id}} <topic> # Topic details
|
|
328
|
+
crewx memory get {{agent_id}} <id> # Individual memory
|
|
316
329
|
```
|
|
317
330
|
|
|
318
331
|
## Memory Save Triggers
|
|
@@ -336,16 +349,16 @@ npx memory get {{agent_id}} <id> # Individual memory
|
|
|
336
349
|
**Examples:**
|
|
337
350
|
```bash
|
|
338
351
|
# Add to existing topic
|
|
339
|
-
|
|
352
|
+
crewx memory save {{agent_id}} "VLM learning rate adjustment" decision --topic=vlm-finetuning
|
|
340
353
|
|
|
341
354
|
# Create new topic
|
|
342
|
-
|
|
355
|
+
crewx memory save {{agent_id}} "New feature planning" decision --topic=new-feature-x
|
|
343
356
|
```
|
|
344
357
|
|
|
345
358
|
## Save Command (--body required!)
|
|
346
359
|
```bash
|
|
347
360
|
# WARNING: Always save with --body included!
|
|
348
|
-
|
|
361
|
+
crewx memory save {{agent_id}} "<summary>" <category> --topic=<topic> --body="<detailed content>"
|
|
349
362
|
```
|
|
350
363
|
|
|
351
364
|
**--body writing guide:**
|
|
@@ -383,7 +396,7 @@ Manages associations between memories as a graph.
|
|
|
383
396
|
### Build Graph
|
|
384
397
|
|
|
385
398
|
```bash
|
|
386
|
-
|
|
399
|
+
crewx memory mindmap build <agent_id>
|
|
387
400
|
```
|
|
388
401
|
|
|
389
402
|
Rule-based connection generation:
|
|
@@ -408,13 +421,13 @@ Rule-based connection generation:
|
|
|
408
421
|
**[BAD] Bad example (no connections)**
|
|
409
422
|
```bash
|
|
410
423
|
# topic=general, category=general -> 0 connections
|
|
411
|
-
|
|
424
|
+
crewx memory save agent "Discord settings removal" general
|
|
412
425
|
```
|
|
413
426
|
|
|
414
427
|
**[GOOD] Good example (strong connections)**
|
|
415
428
|
```bash
|
|
416
429
|
# topic + category + tags -> maximum connections
|
|
417
|
-
|
|
430
|
+
crewx memory save agent "Discord settings removal decision" decision \
|
|
418
431
|
--topic=discord \
|
|
419
432
|
--tags=settings,cpo-decision,oauth \
|
|
420
433
|
--body="CPO meeting result..."
|
|
@@ -428,7 +441,7 @@ npx memory save agent "Discord settings removal decision" decision \
|
|
|
428
441
|
### View Graph Summary
|
|
429
442
|
|
|
430
443
|
```bash
|
|
431
|
-
|
|
444
|
+
crewx memory mindmap show <agent_id>
|
|
432
445
|
```
|
|
433
446
|
|
|
434
447
|
Displays topic-based clusters, hub nodes (memories with many connections), etc.
|
|
@@ -437,9 +450,9 @@ Default output is in **Mermaid format**, which can be visualized as a graph in V
|
|
|
437
450
|
|
|
438
451
|
**Period filter options:**
|
|
439
452
|
```bash
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
453
|
+
crewx memory mindmap show <agent_id> --period=stm # 24h
|
|
454
|
+
crewx memory mindmap show <agent_id> --period=mtm # 7d
|
|
455
|
+
crewx memory mindmap show <agent_id> --period=ltm # 30d
|
|
443
456
|
```
|
|
444
457
|
|
|
445
458
|
### Export as PNG Image
|
|
@@ -448,13 +461,13 @@ Convert Mermaid output to PNG images for visual inspection.
|
|
|
448
461
|
|
|
449
462
|
```bash
|
|
450
463
|
# 1. Save mermaid code to file
|
|
451
|
-
|
|
464
|
+
crewx memory mindmap show <agent_id> | sed 's/^```mermaid$//' | sed 's/^```$//' > /tmp/graph.mmd
|
|
452
465
|
|
|
453
466
|
# 2. Convert to PNG (runs without installation via npx)
|
|
454
467
|
npx @mermaid-js/mermaid-cli -i /tmp/graph.mmd -o graph.png -w 2400 -H 1600 -b white
|
|
455
468
|
|
|
456
469
|
# Period filter + PNG (e.g., last 24 hours only)
|
|
457
|
-
|
|
470
|
+
crewx memory mindmap show <agent_id> --period=stm | sed 's/^```mermaid$//' | sed 's/^```$//' | grep -v '^(' > /tmp/graph-stm.mmd
|
|
458
471
|
npx @mermaid-js/mermaid-cli -i /tmp/graph-stm.mmd -o graph-stm.png -w 1600 -H 900 -b white
|
|
459
472
|
```
|
|
460
473
|
|
|
@@ -463,7 +476,7 @@ npx @mermaid-js/mermaid-cli -i /tmp/graph-stm.mmd -o graph-stm.png -w 1600 -H 90
|
|
|
463
476
|
### Query Related Memories
|
|
464
477
|
|
|
465
478
|
```bash
|
|
466
|
-
|
|
479
|
+
crewx memory mindmap related <agent_id> <memory_id>
|
|
467
480
|
```
|
|
468
481
|
|
|
469
482
|
Displays memories connected to a specific memory, sorted by weight.
|
|
@@ -472,16 +485,16 @@ Displays memories connected to a specific memory, sorted by weight.
|
|
|
472
485
|
|
|
473
486
|
```bash
|
|
474
487
|
# Add connection
|
|
475
|
-
|
|
488
|
+
crewx memory mindmap add <agent_id> <from_id> <to_id> [type]
|
|
476
489
|
|
|
477
490
|
# Remove connection
|
|
478
|
-
|
|
491
|
+
crewx memory mindmap remove <agent_id> <from_id> <to_id>
|
|
479
492
|
```
|
|
480
493
|
|
|
481
494
|
### Visualization (HTML) - Shared Graph
|
|
482
495
|
|
|
483
496
|
```bash
|
|
484
|
-
|
|
497
|
+
crewx memory mindmap html
|
|
485
498
|
```
|
|
486
499
|
|
|
487
500
|
Generates a **shared visualization combining connection graphs of all agents** in one place.
|
|
@@ -499,22 +512,22 @@ Generates a **shared visualization combining connection graphs of all agents** i
|
|
|
499
512
|
**Usage:**
|
|
500
513
|
```bash
|
|
501
514
|
# 1. Generate shared HTML (no agent_id needed)
|
|
502
|
-
|
|
515
|
+
crewx memory mindmap html
|
|
503
516
|
|
|
504
517
|
# 2. Open in browser
|
|
505
|
-
|
|
518
|
+
crewx memory mindmap open
|
|
506
519
|
```
|
|
507
520
|
|
|
508
521
|
**Example:**
|
|
509
522
|
```bash
|
|
510
523
|
# Generate integrated visualization of all agent graphs
|
|
511
|
-
|
|
524
|
+
crewx memory mindmap html
|
|
512
525
|
```
|
|
513
526
|
|
|
514
527
|
### Open in Browser
|
|
515
528
|
|
|
516
529
|
```bash
|
|
517
|
-
|
|
530
|
+
crewx memory mindmap open [agent_id]
|
|
518
531
|
```
|
|
519
532
|
|
|
520
533
|
Opens a specific agent's graph directly in the browser.
|
|
@@ -522,17 +535,17 @@ Opens a specific agent's graph directly in the browser.
|
|
|
522
535
|
**Examples:**
|
|
523
536
|
```bash
|
|
524
537
|
# Open CTO graph
|
|
525
|
-
|
|
538
|
+
crewx memory mindmap open cto
|
|
526
539
|
|
|
527
540
|
# Open default (all agents)
|
|
528
|
-
|
|
541
|
+
crewx memory mindmap open
|
|
529
542
|
```
|
|
530
543
|
|
|
531
544
|
### Storage Location
|
|
532
545
|
|
|
533
546
|
```
|
|
534
547
|
memory/{agent_id}/graph.json # Graph data
|
|
535
|
-
memory/mindmap.html # Shared visualization HTML (generated by
|
|
548
|
+
memory/mindmap.html # Shared visualization HTML (generated by crewx memory mindmap html)
|
|
536
549
|
```
|
|
537
550
|
|
|
538
551
|
---
|
|
@@ -585,7 +598,7 @@ settings:
|
|
|
585
598
|
By default, `crewx.yaml` is read from the project root. To use a different path, set the `CREWX_CONFIG` environment variable:
|
|
586
599
|
|
|
587
600
|
```bash
|
|
588
|
-
CREWX_CONFIG=/path/to/custom-crewx.yaml
|
|
601
|
+
CREWX_CONFIG=/path/to/custom-crewx.yaml crewx memory index my_agent
|
|
589
602
|
```
|
|
590
603
|
|
|
591
604
|
### Error handling
|
|
@@ -608,7 +621,7 @@ settings:
|
|
|
608
621
|
Or override via environment variable (e.g., in CI/CD):
|
|
609
622
|
|
|
610
623
|
```bash
|
|
611
|
-
MEMORY_SUMMARY_DAYS=14
|
|
624
|
+
MEMORY_SUMMARY_DAYS=14 crewx memory summarize my_agent
|
|
612
625
|
```
|
|
613
626
|
|
|
614
627
|
---
|
|
@@ -616,5 +629,5 @@ MEMORY_SUMMARY_DAYS=14 npx memory summarize my_agent
|
|
|
616
629
|
## v1 -> v2 Migration
|
|
617
630
|
|
|
618
631
|
```bash
|
|
619
|
-
|
|
632
|
+
crewx memory migrate <agent_id>
|
|
620
633
|
```
|
package/dist/cli.d.ts
CHANGED