@crewx/memory 0.1.23-rc.254 → 0.1.23-rc.255

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 CHANGED
@@ -5,3 +5,17 @@ Memory engine for CrewX - markdown + frontmatter based long-term memory.
5
5
  ```bash
6
6
  crewx memory index <agent_id>
7
7
  ```
8
+
9
+ ## Native read commands
10
+
11
+ On supported npm installations, bare `index` and `get`, plus `find` with one non-empty query argument, use the packaged Go reader. The Node CLI remains the implementation for every write, AI-backed command, alias, flag-bearing form, empty query, and unsupported invocation. CrewX Desktop continues to use Node.
12
+
13
+ ```bash
14
+ crewx memory index <agent_id>
15
+ crewx memory get <agent_id> <memory_id>
16
+ crewx memory find <agent_id> "<non-empty query>"
17
+ ```
18
+
19
+ Set `CREWX_MEMORY_RUNTIME=node` to force the existing Node implementation. `auto` is the default and falls back to Node before execution if the command or packaged native artifact is unsupported, including an empty `find` query. `CREWX_MEMORY_RUNTIME=go` requires one of the three exact forms above and reports an error when native support is unavailable. A failed native operation is never retried in Node.
20
+
21
+ The package currently includes native artifacts for macOS arm64/amd64, Linux arm64/amd64, and Windows amd64. Windows native operation still requires separate platform validation. After installing/building the Windows artifact, the foreground cleanup harness is `pwsh -File packages/built-in/memory/tests/windows-native-cleanup.ps1 -Launcher (Resolve-Path .\bin\crewx.js)`. Runtime artifact lookup is confined to the installed `@crewx/memory` package; no downloads are performed.
package/SKILL.md CHANGED
@@ -8,6 +8,16 @@ metadata:
8
8
 
9
9
  # Memory V2 Skill
10
10
 
11
+ ## Native read routing
12
+
13
+ The default `auto` runtime uses the packaged Go reader only for these exact bare commands:
14
+
15
+ - `crewx memory index <agent_id>`
16
+ - `crewx memory get <agent_id> <memory_id>`
17
+ - `crewx memory find <agent_id> "<non-empty query>"`
18
+
19
+ Flags, aliases, writes, AI-backed commands, empty queries, and all other memory commands continue through the existing Node implementation. CrewX Desktop also stays on 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. `auto` falls back before a native operation starts. It never retries a failed native operation in Node.
20
+
11
21
  A long-term memory management skill based on markdown + frontmatter.
12
22
 
13
23
  ## Installation
@@ -1,3 +1,6 @@
1
- export { parseFrontmatter, stringifyFrontmatter } from '@crewx/knowledge-core';
2
- export type { ParsedFrontmatter } from '@crewx/knowledge-core';
1
+ import { stringifyFrontmatter } from '@crewx/knowledge-core';
2
+ import type { ParsedFrontmatter } from '@crewx/knowledge-core';
3
+ export declare function parseFrontmatter(raw: string): ParsedFrontmatter;
4
+ export { stringifyFrontmatter };
5
+ export type { ParsedFrontmatter };
3
6
 
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.stringifyFrontmatter=exports.parseFrontmatter=void 0;var e=require("@crewx/knowledge-core");Object.defineProperty(exports,"parseFrontmatter",{enumerable:true,get:function(){return e.parseFrontmatter}});Object.defineProperty(exports,"stringifyFrontmatter",{enumerable:true,get:function(){return e.stringifyFrontmatter}});
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.stringifyFrontmatter=void 0;exports.parseFrontmatter=a;const e=require("@crewx/knowledge-core");Object.defineProperty(exports,"stringifyFrontmatter",{enumerable:true,get:function(){return e.stringifyFrontmatter}});const n="Invalid memory frontmatter YAML";function a(o){let r;try{r=(0,e.parseFrontmatter)(o)}catch(t){if(t instanceof Error&&t.name==="YAMLException"){throw new Error(n)}throw t}if(r.data===null||typeof r.data!=="object"||Array.isArray(r.data)){throw new Error(n)}return r}
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,27 @@
1
+ {
2
+ "formatVersion": 1,
3
+ "protocol": 1,
4
+ "packageVersion": "0.1.23-rc.255",
5
+ "targets": {
6
+ "darwin-arm64": {
7
+ "file": "go/bin/crewx-memory-darwin-arm64",
8
+ "sha256": "05ecd7e26efd3635775f207bdded79aa684447c77b4615d96d6fc801d989b980"
9
+ },
10
+ "darwin-amd64": {
11
+ "file": "go/bin/crewx-memory-darwin-amd64",
12
+ "sha256": "e0f3d4f631d92d74e38531fb9c86e4323db1aa5aa34fa0b963026fa96e247e94"
13
+ },
14
+ "linux-amd64": {
15
+ "file": "go/bin/crewx-memory-linux-amd64",
16
+ "sha256": "48f119e755110dcef59b665f33bc7ac93d362ff7316b71a0e88189021111778a"
17
+ },
18
+ "linux-arm64": {
19
+ "file": "go/bin/crewx-memory-linux-arm64",
20
+ "sha256": "dcc883fee12f6b26adfbdbfba905e1ab8eaeb41c0320c85180c13a5996c54596"
21
+ },
22
+ "windows-amd64": {
23
+ "file": "go/bin/crewx-memory-windows-amd64.exe",
24
+ "sha256": "2f6bfb5714384d5b960d1ec6cfefb2b488444974ec9097008a5c6174798657f8"
25
+ }
26
+ }
27
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewx/memory",
3
- "version": "0.1.23-rc.254",
3
+ "version": "0.1.23-rc.255",
4
4
  "description": "Memory engine for CrewX - markdown + frontmatter based long-term memory",
5
5
  "type": "commonjs",
6
6
  "main": "dist/src/engine.js",
@@ -23,7 +23,9 @@
23
23
  },
24
24
  "files": [
25
25
  "dist",
26
- "SKILL.md"
26
+ "SKILL.md",
27
+ "go/bin",
28
+ "go/native-manifest.json"
27
29
  ],
28
30
  "keywords": [
29
31
  "crewx",
@@ -36,9 +38,9 @@
36
38
  "gray-matter": "^4.0.3",
37
39
  "js-yaml": "^4.1.0",
38
40
  "nanoid": "^3.3.11",
39
- "@crewx/sdk": "0.9.0-rc.236",
40
- "@crewx/shared": "0.0.6-rc.151",
41
- "@crewx/knowledge-core": "0.1.17-rc.247"
41
+ "@crewx/knowledge-core": "0.1.17-rc.248",
42
+ "@crewx/shared": "0.0.6-rc.152",
43
+ "@crewx/sdk": "0.9.0-rc.237"
42
44
  },
43
45
  "devDependencies": {
44
46
  "@types/js-yaml": "^4.0.9",