@crewx/memory 0.1.9 → 0.1.11
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/SKILL.md +11 -11
- package/package.json +12 -11
package/SKILL.md
CHANGED
|
@@ -562,13 +562,13 @@ Memory engine settings can be customized via the `settings.memory` block in `cre
|
|
|
562
562
|
```yaml
|
|
563
563
|
settings:
|
|
564
564
|
memory:
|
|
565
|
-
summarizer_agent: "@memory_summarizer" # crewx.yaml
|
|
566
|
-
searcher_agent: "@memory_searcher" # crewx.yaml
|
|
567
|
-
summarizer_timeout: 60000 #
|
|
568
|
-
searcher_timeout: 300000 #
|
|
569
|
-
summary_days: 7 #
|
|
570
|
-
recent_days: 30 # index --recent / recent
|
|
571
|
-
short_term_hours: 24 #
|
|
565
|
+
summarizer_agent: "@memory_summarizer" # Agent ID defined in crewx.yaml. Used for summary.md generation
|
|
566
|
+
searcher_agent: "@memory_searcher" # Agent ID defined in crewx.yaml. Used for semantic search
|
|
567
|
+
summarizer_timeout: 60000 # Summarizer agent call timeout (ms). Falls back to bullet-point on timeout
|
|
568
|
+
searcher_timeout: 300000 # Searcher agent call timeout (ms). Returns error on timeout
|
|
569
|
+
summary_days: 7 # Mid-term memory (MTM) summary range for index command (days)
|
|
570
|
+
recent_days: 30 # Query range for index --recent / recent command (days)
|
|
571
|
+
short_term_hours: 24 # Short-term memory (STM, "🔥 Recent Work") range for index command (hours)
|
|
572
572
|
```
|
|
573
573
|
|
|
574
574
|
### Resolve priority
|
|
@@ -591,7 +591,7 @@ CREWX_CONFIG=/path/to/custom-crewx.yaml npx memory index my_agent
|
|
|
591
591
|
### Error handling
|
|
592
592
|
|
|
593
593
|
- **YAML parse failure** (file missing, syntax error): All fields silently fall back to built-in defaults. No error is raised — check your YAML syntax if settings seem ignored.
|
|
594
|
-
- **Invalid numeric value** (e.g., `summary_days: "abc"`):
|
|
594
|
+
- **Invalid numeric value** (e.g., `summary_days: "abc"`): Invalid values are set to NaN, which may cause unexpected behavior. Always use valid integers for numeric fields.
|
|
595
595
|
|
|
596
596
|
### Customization example
|
|
597
597
|
|
|
@@ -600,9 +600,9 @@ Expand the summary window to 2 weeks and use a custom summarizer agent:
|
|
|
600
600
|
```yaml
|
|
601
601
|
settings:
|
|
602
602
|
memory:
|
|
603
|
-
summary_days: 14 #
|
|
604
|
-
summarizer_agent: "@my_custom_summarizer" #
|
|
605
|
-
summarizer_timeout: 120000 #
|
|
603
|
+
summary_days: 14 # Default 7 days → extended to 2 weeks
|
|
604
|
+
summarizer_agent: "@my_custom_summarizer" # Custom summarizer agent (must be defined in crewx.yaml agents section)
|
|
605
|
+
summarizer_timeout: 120000 # Timeout increased to 2 min for custom agent
|
|
606
606
|
```
|
|
607
607
|
|
|
608
608
|
Or override via environment variable (e.g., in CI/CD):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crewx/memory",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "Memory engine for CrewX - markdown + frontmatter based long-term memory",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "dist/src/engine.js",
|
|
@@ -25,6 +25,13 @@
|
|
|
25
25
|
"dist",
|
|
26
26
|
"SKILL.md"
|
|
27
27
|
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"prepare": "npm run build",
|
|
30
|
+
"build": "tsc",
|
|
31
|
+
"dev": "ts-node cli.ts",
|
|
32
|
+
"clean": "rm -rf dist",
|
|
33
|
+
"test": "echo no tests"
|
|
34
|
+
},
|
|
28
35
|
"keywords": [
|
|
29
36
|
"crewx",
|
|
30
37
|
"memory",
|
|
@@ -33,22 +40,16 @@
|
|
|
33
40
|
],
|
|
34
41
|
"license": "MIT",
|
|
35
42
|
"dependencies": {
|
|
43
|
+
"@crewx/shared": "workspace:*",
|
|
44
|
+
"@crewx/knowledge-core": "workspace:*",
|
|
36
45
|
"gray-matter": "^4.0.3",
|
|
37
46
|
"js-yaml": "^4.1.0",
|
|
38
|
-
"nanoid": "^3.3.11"
|
|
39
|
-
"@crewx/knowledge-core": "0.1.4",
|
|
40
|
-
"@crewx/shared": "0.0.4"
|
|
47
|
+
"nanoid": "^3.3.11"
|
|
41
48
|
},
|
|
42
49
|
"devDependencies": {
|
|
43
50
|
"@types/js-yaml": "^4.0.9",
|
|
44
51
|
"@types/node": "^20.0.0",
|
|
45
52
|
"ts-node": "^10.9.0",
|
|
46
53
|
"typescript": "^5.0.0"
|
|
47
|
-
},
|
|
48
|
-
"scripts": {
|
|
49
|
-
"build": "tsc",
|
|
50
|
-
"dev": "ts-node cli.ts",
|
|
51
|
-
"clean": "rm -rf dist",
|
|
52
|
-
"test": "echo no tests"
|
|
53
54
|
}
|
|
54
|
-
}
|
|
55
|
+
}
|