@etilic/rutter_ai 0.2.0 → 0.2.2
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/bin/cli.cjs +1 -1
- package/client/darwin-arm64/manifest.json +1 -1
- package/client/darwin-arm64/transcript.cjs +8 -3
- package/client/darwin-x64/manifest.json +1 -1
- package/client/darwin-x64/transcript.cjs +8 -3
- package/client/linux-x64-glibc/manifest.json +1 -1
- package/client/linux-x64-glibc/transcript.cjs +8 -3
- package/client/win32-x64/manifest.json +1 -1
- package/client/win32-x64/transcript.cjs +8 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ rutter-ai setup
|
|
|
10
10
|
npm update -g @etilic/rutter_ai
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
Requires **Node.js
|
|
13
|
+
Requires **Node.js 16.0.0+**. Included runtimes: Linux x64 glibc 2.31+, Windows x64,
|
|
14
14
|
macOS Intel x64 and Apple Silicon arm64. Linux musl/Alpine, Linux arm64 and
|
|
15
15
|
Windows arm64 are not included. No compiler, Git or external `tar` is required
|
|
16
16
|
on the user's computer. Use a writable npm global prefix; changing Node/npm
|
package/bin/cli.cjs
CHANGED
|
@@ -10,7 +10,7 @@ const { installBundle } = runtime;
|
|
|
10
10
|
const DEFAULT_SERVER = 'https://efficiencybyai.com/knowledge';
|
|
11
11
|
|
|
12
12
|
function main(argv = process.argv.slice(2), { bundle, env = process.env, packageRoot = path.resolve(__dirname, '..') } = {}) {
|
|
13
|
-
if (Number(process.versions.node.split('.')[0]) <
|
|
13
|
+
if (Number(process.versions.node.split('.')[0]) < 16) throw new Error('Node.js 16 or newer is required.');
|
|
14
14
|
bundle = bundle || runtime.selectBundle(packageRoot);
|
|
15
15
|
if (argv[0] === '--version' || argv[0] === 'version') {
|
|
16
16
|
const active = runtime.readActive(env);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"84ae1eb7cadcd060ff4c","runtime":{"platform":"darwin","arch":"arm64","napi":6,"sqlite_version":"3.52.0","sqlite_source_id":"2026-03-06 16:01:44 557aeb43869d3585137b17690cb3b64f7de6921774daae9e56403c3717dceab6","libc":null},"files":{"hook.cjs":"87ed807aadec959cd328e8780f207d8cbb951ceb1545e295b642e8dc43f13395","install.cjs":"38450e5904f0825e0ec30056843ddfdcb3ed4e847666402b203600559a188333","mcp.cjs":"cab9765876232d6e868dadbbe85292060cb6c285eff99ebff7fb3976407dc621","transcript.cjs":"6f7b83146cb941dccb24f81c0d2d38b5d8028aad5c900908631124dc33002d31","upload.cjs":"20e68bc8bf02efd8b079899ff48772a8bda8e898dea49d94744f10a4beef58e5","compat.cjs":"36cd86982401bc6274fbea33772aa837498442215f9e2dbaa92e808960193fa3","outbox.cjs":"0befb8a890e2806422453f20545a4677045bd917e1c55dae252460673762c8f0","worker.cjs":"5bba7f2682c107d5b2f30d0dbe018ae878f7d341d643755f3639f15fb24dd80f","ordered-upload.cjs":"7327d2cf7811611e3c094363f279e1e1485a9e134e33fcee01f9a852bbf84b52","recovery.cjs":"d71bde0478699eef0df0e54f4eaeb81fba38627bcc7b013e3a39794bee36a926","migration.cjs":"1cd26b2ef709cae16e1ae00cd475a090378fd1d8ea5924da46f7cb4eaff13a32","sqlite3.cjs":"2834e6944034d788eb252f8b19d737fd994b9e87b30abb02a54bc687c819d7ae","node_sqlite3.node":"ba14c3b1975cb0f70321b38c9fea614ef09b27e996aec58794d4e210d2ee91f2"}}
|
|
@@ -125,10 +125,15 @@ function parseOrderedTranscript(client, sessionId, input, consentAt = 0, { stopC
|
|
|
125
125
|
else if (authorizedPrompt && position >= authorizedPrompt.after_bytes
|
|
126
126
|
&& crypto.createHash('sha256').update(content).digest('hex') === authorizedPrompt.hash) initialPrompt = record;
|
|
127
127
|
}
|
|
128
|
-
else {
|
|
128
|
+
else {
|
|
129
|
+
pending = timestamp >= consentAt ? record : null;
|
|
130
|
+
if (final) { push(pending); pending = null; }
|
|
131
|
+
}
|
|
129
132
|
}
|
|
130
|
-
//
|
|
131
|
-
//
|
|
133
|
+
// Codex's explicit final channel is a completion barrier. If Stop sees only
|
|
134
|
+
// an unfinished assistant item, ask the caller to reread the transcript.
|
|
135
|
+
if (client === 'codex' && stopCompleted && pending) incomplete = true;
|
|
136
|
+
// Claude Stop is itself a completed-turn event.
|
|
132
137
|
if (client === 'claude' && stopCompleted && !incomplete) push(pending);
|
|
133
138
|
if (!incomplete) push(initialPrompt);
|
|
134
139
|
output.sort((a, b) => a.source_order - b.source_order);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"e754fa0d2f0bbc09d8f3","runtime":{"platform":"darwin","arch":"x64","napi":6,"sqlite_version":"3.52.0","sqlite_source_id":"2026-03-06 16:01:44 557aeb43869d3585137b17690cb3b64f7de6921774daae9e56403c3717dceab6","libc":null},"files":{"hook.cjs":"87ed807aadec959cd328e8780f207d8cbb951ceb1545e295b642e8dc43f13395","install.cjs":"38450e5904f0825e0ec30056843ddfdcb3ed4e847666402b203600559a188333","mcp.cjs":"cab9765876232d6e868dadbbe85292060cb6c285eff99ebff7fb3976407dc621","transcript.cjs":"6f7b83146cb941dccb24f81c0d2d38b5d8028aad5c900908631124dc33002d31","upload.cjs":"20e68bc8bf02efd8b079899ff48772a8bda8e898dea49d94744f10a4beef58e5","compat.cjs":"36cd86982401bc6274fbea33772aa837498442215f9e2dbaa92e808960193fa3","outbox.cjs":"0befb8a890e2806422453f20545a4677045bd917e1c55dae252460673762c8f0","worker.cjs":"5bba7f2682c107d5b2f30d0dbe018ae878f7d341d643755f3639f15fb24dd80f","ordered-upload.cjs":"7327d2cf7811611e3c094363f279e1e1485a9e134e33fcee01f9a852bbf84b52","recovery.cjs":"d71bde0478699eef0df0e54f4eaeb81fba38627bcc7b013e3a39794bee36a926","migration.cjs":"1cd26b2ef709cae16e1ae00cd475a090378fd1d8ea5924da46f7cb4eaff13a32","sqlite3.cjs":"2834e6944034d788eb252f8b19d737fd994b9e87b30abb02a54bc687c819d7ae","node_sqlite3.node":"3e256bf5a51b06346197d545770e495be3baf20ca92b94017ae96ce388fe4e8e"}}
|
|
@@ -125,10 +125,15 @@ function parseOrderedTranscript(client, sessionId, input, consentAt = 0, { stopC
|
|
|
125
125
|
else if (authorizedPrompt && position >= authorizedPrompt.after_bytes
|
|
126
126
|
&& crypto.createHash('sha256').update(content).digest('hex') === authorizedPrompt.hash) initialPrompt = record;
|
|
127
127
|
}
|
|
128
|
-
else {
|
|
128
|
+
else {
|
|
129
|
+
pending = timestamp >= consentAt ? record : null;
|
|
130
|
+
if (final) { push(pending); pending = null; }
|
|
131
|
+
}
|
|
129
132
|
}
|
|
130
|
-
//
|
|
131
|
-
//
|
|
133
|
+
// Codex's explicit final channel is a completion barrier. If Stop sees only
|
|
134
|
+
// an unfinished assistant item, ask the caller to reread the transcript.
|
|
135
|
+
if (client === 'codex' && stopCompleted && pending) incomplete = true;
|
|
136
|
+
// Claude Stop is itself a completed-turn event.
|
|
132
137
|
if (client === 'claude' && stopCompleted && !incomplete) push(pending);
|
|
133
138
|
if (!incomplete) push(initialPrompt);
|
|
134
139
|
output.sort((a, b) => a.source_order - b.source_order);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"caecc1d4be7a974f84c8","runtime":{"platform":"linux","arch":"x64","napi":6,"sqlite_version":"3.51.3","sqlite_source_id":"2026-03-13 10:38:09 737ae4a34738ffa0c3ff7f9bb18df914dd1cad163f28fd6b6e114a344fe6d618","libc":"glibc"},"files":{"hook.cjs":"87ed807aadec959cd328e8780f207d8cbb951ceb1545e295b642e8dc43f13395","install.cjs":"38450e5904f0825e0ec30056843ddfdcb3ed4e847666402b203600559a188333","mcp.cjs":"cab9765876232d6e868dadbbe85292060cb6c285eff99ebff7fb3976407dc621","transcript.cjs":"6f7b83146cb941dccb24f81c0d2d38b5d8028aad5c900908631124dc33002d31","upload.cjs":"20e68bc8bf02efd8b079899ff48772a8bda8e898dea49d94744f10a4beef58e5","compat.cjs":"36cd86982401bc6274fbea33772aa837498442215f9e2dbaa92e808960193fa3","outbox.cjs":"0befb8a890e2806422453f20545a4677045bd917e1c55dae252460673762c8f0","worker.cjs":"5bba7f2682c107d5b2f30d0dbe018ae878f7d341d643755f3639f15fb24dd80f","ordered-upload.cjs":"7327d2cf7811611e3c094363f279e1e1485a9e134e33fcee01f9a852bbf84b52","recovery.cjs":"d71bde0478699eef0df0e54f4eaeb81fba38627bcc7b013e3a39794bee36a926","migration.cjs":"1cd26b2ef709cae16e1ae00cd475a090378fd1d8ea5924da46f7cb4eaff13a32","sqlite3.cjs":"2834e6944034d788eb252f8b19d737fd994b9e87b30abb02a54bc687c819d7ae","node_sqlite3.node":"05df22ecef5dee67c66866f1b73ffb3e55fc433789d93b733f1b55671887d27b"}}
|
|
@@ -125,10 +125,15 @@ function parseOrderedTranscript(client, sessionId, input, consentAt = 0, { stopC
|
|
|
125
125
|
else if (authorizedPrompt && position >= authorizedPrompt.after_bytes
|
|
126
126
|
&& crypto.createHash('sha256').update(content).digest('hex') === authorizedPrompt.hash) initialPrompt = record;
|
|
127
127
|
}
|
|
128
|
-
else {
|
|
128
|
+
else {
|
|
129
|
+
pending = timestamp >= consentAt ? record : null;
|
|
130
|
+
if (final) { push(pending); pending = null; }
|
|
131
|
+
}
|
|
129
132
|
}
|
|
130
|
-
//
|
|
131
|
-
//
|
|
133
|
+
// Codex's explicit final channel is a completion barrier. If Stop sees only
|
|
134
|
+
// an unfinished assistant item, ask the caller to reread the transcript.
|
|
135
|
+
if (client === 'codex' && stopCompleted && pending) incomplete = true;
|
|
136
|
+
// Claude Stop is itself a completed-turn event.
|
|
132
137
|
if (client === 'claude' && stopCompleted && !incomplete) push(pending);
|
|
133
138
|
if (!incomplete) push(initialPrompt);
|
|
134
139
|
output.sort((a, b) => a.source_order - b.source_order);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"54fa11c00147e4290a2d","runtime":{"platform":"win32","arch":"x64","napi":6,"sqlite_version":"3.52.0","sqlite_source_id":"2026-03-06 16:01:44 557aeb43869d3585137b17690cb3b64f7de6921774daae9e56403c3717dceab6","libc":null},"files":{"hook.cjs":"87ed807aadec959cd328e8780f207d8cbb951ceb1545e295b642e8dc43f13395","install.cjs":"38450e5904f0825e0ec30056843ddfdcb3ed4e847666402b203600559a188333","mcp.cjs":"cab9765876232d6e868dadbbe85292060cb6c285eff99ebff7fb3976407dc621","transcript.cjs":"6f7b83146cb941dccb24f81c0d2d38b5d8028aad5c900908631124dc33002d31","upload.cjs":"20e68bc8bf02efd8b079899ff48772a8bda8e898dea49d94744f10a4beef58e5","compat.cjs":"36cd86982401bc6274fbea33772aa837498442215f9e2dbaa92e808960193fa3","outbox.cjs":"0befb8a890e2806422453f20545a4677045bd917e1c55dae252460673762c8f0","worker.cjs":"5bba7f2682c107d5b2f30d0dbe018ae878f7d341d643755f3639f15fb24dd80f","ordered-upload.cjs":"7327d2cf7811611e3c094363f279e1e1485a9e134e33fcee01f9a852bbf84b52","recovery.cjs":"d71bde0478699eef0df0e54f4eaeb81fba38627bcc7b013e3a39794bee36a926","migration.cjs":"1cd26b2ef709cae16e1ae00cd475a090378fd1d8ea5924da46f7cb4eaff13a32","sqlite3.cjs":"2834e6944034d788eb252f8b19d737fd994b9e87b30abb02a54bc687c819d7ae","node_sqlite3.node":"5e1d1275e126c3fc584bcf5752fbf747bff89454bfcf8bc76c982b24e7815057"}}
|
|
@@ -125,10 +125,15 @@ function parseOrderedTranscript(client, sessionId, input, consentAt = 0, { stopC
|
|
|
125
125
|
else if (authorizedPrompt && position >= authorizedPrompt.after_bytes
|
|
126
126
|
&& crypto.createHash('sha256').update(content).digest('hex') === authorizedPrompt.hash) initialPrompt = record;
|
|
127
127
|
}
|
|
128
|
-
else {
|
|
128
|
+
else {
|
|
129
|
+
pending = timestamp >= consentAt ? record : null;
|
|
130
|
+
if (final) { push(pending); pending = null; }
|
|
131
|
+
}
|
|
129
132
|
}
|
|
130
|
-
//
|
|
131
|
-
//
|
|
133
|
+
// Codex's explicit final channel is a completion barrier. If Stop sees only
|
|
134
|
+
// an unfinished assistant item, ask the caller to reread the transcript.
|
|
135
|
+
if (client === 'codex' && stopCompleted && pending) incomplete = true;
|
|
136
|
+
// Claude Stop is itself a completed-turn event.
|
|
132
137
|
if (client === 'claude' && stopCompleted && !incomplete) push(pending);
|
|
133
138
|
if (!incomplete) push(initialPrompt);
|
|
134
139
|
output.sort((a, b) => a.source_order - b.source_order);
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etilic/rutter_ai",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Install Rutter Memory hooks and MCP for Codex and Claude Code",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
7
|
-
"node": ">=
|
|
7
|
+
"node": ">=16.0.0"
|
|
8
8
|
},
|
|
9
9
|
"bin": {
|
|
10
10
|
"rutter-direct-memory": "bin/cli.cjs",
|