@crewx/memory 0.1.10 → 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.
Files changed (2) hide show
  1. package/SKILL.md +11 -11
  2. 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 정의된 에이전트 ID. summary.md 생성에 사용
566
- searcher_agent: "@memory_searcher" # crewx.yaml 정의된 에이전트 ID. semantic search에 사용
567
- summarizer_timeout: 60000 # summarizer 에이전트 호출 타임아웃 (ms). 초과 bullet-point fallback
568
- searcher_timeout: 300000 # searcher 에이전트 호출 타임아웃 (ms). 초과 에러 반환
569
- summary_days: 7 # index 명령의 중기기억(MTM) 요약 범위 (일 단위)
570
- recent_days: 30 # index --recent / recent 명령의 조회 범위 (일 단위)
571
- short_term_hours: 24 # index 명령의 단기기억(STM, "🔥 Recent Work") 범위 (시간 단위)
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"`): 잘못된 숫자 값(예: "abc")은 NaN으로 설정되어 예기치 않은 동작을 유발할 있습니다. 숫자 필드에는 반드시 유효한 정수만 입력하세요.
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 # 기본 7 → 2주로 확장
604
- summarizer_agent: "@my_custom_summarizer" # 커스텀 요약 에이전트 (crewx.yaml agents 섹션에 정의 필요)
605
- summarizer_timeout: 120000 # 커스텀 에이전트에 맞춰 타임아웃 2분으로 증가
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.10",
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.6",
40
- "@crewx/shared": "0.0.5"
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
+ }