@memorax/memorax-code 0.1.4 → 0.1.5
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 +1 -1
- package/lib/memorax-code-backend/dist/lifecycle/backend/process.js +21 -0
- package/lib/memorax-code-backend/package.json +2 -2
- package/lib/memorax-code-claude-adapter/.claude-plugin/plugin.json +1 -1
- package/lib/memorax-code-claude-adapter/hooks/runtime-shell.json +1 -1
- package/lib/memorax-code-claude-adapter/package.json +1 -1
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/.claude-plugin/plugin.json +1 -1
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/hooks/runtime-shell.json +1 -1
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/package.json +1 -1
- package/lib/memorax-code-codex-adapter/.codex-plugin/plugin.json +1 -1
- package/lib/memorax-code-codex-adapter/hooks/runtime-shell.json +1 -1
- package/lib/memorax-code-codex-adapter/package.json +1 -1
- package/lib/memorax-code-dsh-adapter/package.json +1 -1
- package/lib/memorax-code-opencode-adapter/package.json +1 -1
- package/lib/node-version.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Harness, and OpenCode.
|
|
|
5
5
|
|
|
6
6
|
## Requirements
|
|
7
7
|
|
|
8
|
-
- Node.js
|
|
8
|
+
- Node.js 20 or newer (Node.js 24 LTS recommended) and npm.
|
|
9
9
|
- At least one of Codex, Claude Code, DeepSeek Harness, OpenCode Desktop, or
|
|
10
10
|
the OpenCode CLI.
|
|
11
11
|
- A MemoraX account, Base User ID, and API key for memory features.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { spawnSync } from "node:child_process";
|
|
2
|
+
import { readFileSync } from "node:fs";
|
|
2
3
|
import { join } from "node:path";
|
|
3
4
|
const POSIX_PROCESS_PROBE_TIMEOUT_MS = 2_000;
|
|
4
5
|
const WINDOWS_PROCESS_PROBE_TIMEOUT_MS = 10_000;
|
|
@@ -48,6 +49,26 @@ export function probeProcessCommandLine(pid, runtime = {}) {
|
|
|
48
49
|
if (!Number.isSafeInteger(pid) || pid <= 0) {
|
|
49
50
|
return { status: "inconclusive", reason: "invalid_pid", timeoutMs };
|
|
50
51
|
}
|
|
52
|
+
if (platform === "linux") {
|
|
53
|
+
try {
|
|
54
|
+
const rawCommandLine = (runtime.readFileSync ?? readFileSync)(`/proc/${pid}/cmdline`);
|
|
55
|
+
const commandLine = rawCommandLine.toString("utf8").replaceAll("\0", " ").trim();
|
|
56
|
+
return commandLine
|
|
57
|
+
? { status: "ok", commandLine }
|
|
58
|
+
: { status: "not_found" };
|
|
59
|
+
}
|
|
60
|
+
catch (error) {
|
|
61
|
+
const code = error instanceof Error
|
|
62
|
+
? error.code
|
|
63
|
+
: undefined;
|
|
64
|
+
return {
|
|
65
|
+
status: "inconclusive",
|
|
66
|
+
reason: "read_error",
|
|
67
|
+
timeoutMs,
|
|
68
|
+
...(code ? { code } : {}),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
}
|
|
51
72
|
const run = runtime.spawnSync ?? runProbeCommand;
|
|
52
73
|
let command;
|
|
53
74
|
let args;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memorax-code/backend",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Local memory integration, lifecycle, trace, and diagnostics for MemoraX Code.",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"test:memory-viewer": "npm run build && node --test --test-timeout=5000 --test-force-exit test/viewer/http/memory-viewer-routes.test.mjs"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@types/node": "^
|
|
20
|
+
"@types/node": "^20.0.0",
|
|
21
21
|
"typescript": "^5.9.0"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
package/lib/node-version.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memorax/memorax-code",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Persistent coding memory for Codex, Claude Code, DeepSeek Harness, and OpenCode.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"README.md"
|
|
38
38
|
],
|
|
39
39
|
"engines": {
|
|
40
|
-
"node": ">=
|
|
40
|
+
"node": ">=20"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"smol-toml": "^1.7.0"
|