chat-recall 0.7.36 → 0.7.37
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/dist/channel-detect.d.ts.map +1 -1
- package/dist/channel-detect.js +9 -0
- package/dist/channel-detect.js.map +1 -1
- package/dist/channel-state.d.ts.map +1 -1
- package/dist/channel-state.js +16 -2
- package/dist/channel-state.js.map +1 -1
- package/dist/cli.js +4 -4
- package/dist/mcp-relay.js +11 -1
- package/dist/mcp.js +1406 -610
- package/dist/message-hook.js +16 -4
- package/dist/watch.js +5 -5
- package/package.json +1 -1
package/dist/message-hook.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __cr } from 'module'; const require = __cr(import.meta.url);
|
|
2
2
|
|
|
3
3
|
// src/message-hook.ts
|
|
4
|
-
import { execFileSync } from "node:child_process";
|
|
4
|
+
import { execFileSync as execFileSync2 } from "node:child_process";
|
|
5
5
|
import { mkdirSync as mkdirSync3, readFileSync as readFileSync7, readdirSync as readdirSync2, statSync as statSync2, unlinkSync as unlinkSync2, writeFileSync as writeFileSync3 } from "node:fs";
|
|
6
6
|
import { join as join6 } from "node:path";
|
|
7
7
|
|
|
@@ -267,7 +267,7 @@ try {
|
|
|
267
267
|
CLI_VERSION = JSON.parse(readFileSync5(new URL("../package.json", import.meta.url), "utf-8")).version || CLI_VERSION;
|
|
268
268
|
} catch {
|
|
269
269
|
try {
|
|
270
|
-
if (true) CLI_VERSION = "0.7.
|
|
270
|
+
if (true) CLI_VERSION = "0.7.37";
|
|
271
271
|
} catch {
|
|
272
272
|
}
|
|
273
273
|
}
|
|
@@ -284,6 +284,7 @@ function fetchWithTimeout(url, init = {}, ms = 15e3) {
|
|
|
284
284
|
}
|
|
285
285
|
|
|
286
286
|
// src/channel-state.ts
|
|
287
|
+
import { execFileSync } from "node:child_process";
|
|
287
288
|
import { mkdirSync as mkdirSync2, readFileSync as readFileSync6, readdirSync, statSync, unlinkSync, writeFileSync as writeFileSync2 } from "node:fs";
|
|
288
289
|
import { join as join5 } from "node:path";
|
|
289
290
|
var CHANNEL_GONE_MS = 12e4;
|
|
@@ -308,7 +309,18 @@ function startTimeOf(pid) {
|
|
|
308
309
|
const stat = readFileSync6(`/proc/${pid}/stat`, "utf-8");
|
|
309
310
|
const rest = stat.slice(stat.lastIndexOf(")") + 2).split(" ");
|
|
310
311
|
const started = rest[19];
|
|
311
|
-
|
|
312
|
+
if (started && /^\d+$/.test(started)) return started;
|
|
313
|
+
} catch {
|
|
314
|
+
}
|
|
315
|
+
if (process.platform === "win32") return null;
|
|
316
|
+
try {
|
|
317
|
+
const out = execFileSync("ps", ["-o", "lstart=", "-p", String(pid)], {
|
|
318
|
+
encoding: "utf8",
|
|
319
|
+
timeout: 2e3,
|
|
320
|
+
stdio: ["ignore", "pipe", "ignore"]
|
|
321
|
+
}).trim();
|
|
322
|
+
const ms = out ? Date.parse(out) : NaN;
|
|
323
|
+
return Number.isFinite(ms) ? String(ms) : null;
|
|
312
324
|
} catch {
|
|
313
325
|
return null;
|
|
314
326
|
}
|
|
@@ -750,7 +762,7 @@ function ancestors() {
|
|
|
750
762
|
} catch {
|
|
751
763
|
if (process.platform === "win32") return out;
|
|
752
764
|
try {
|
|
753
|
-
const ppid = Number(
|
|
765
|
+
const ppid = Number(execFileSync2("ps", ["-o", "ppid=", "-p", String(process.ppid)], { encoding: "utf8", timeout: 2e3, stdio: ["ignore", "pipe", "ignore"] }).trim());
|
|
754
766
|
if (ppid > 1) out.push(ppid);
|
|
755
767
|
} catch {
|
|
756
768
|
}
|
package/dist/watch.js
CHANGED
|
@@ -27785,7 +27785,7 @@ var init_http = __esm({
|
|
|
27785
27785
|
CLI_VERSION = JSON.parse(readFileSync37(new URL("../package.json", import.meta.url), "utf-8")).version || CLI_VERSION;
|
|
27786
27786
|
} catch {
|
|
27787
27787
|
try {
|
|
27788
|
-
if (true) CLI_VERSION = "0.7.
|
|
27788
|
+
if (true) CLI_VERSION = "0.7.37";
|
|
27789
27789
|
} catch {
|
|
27790
27790
|
}
|
|
27791
27791
|
}
|
|
@@ -28279,7 +28279,7 @@ var init_telemetry = __esm({
|
|
|
28279
28279
|
init_sync_client();
|
|
28280
28280
|
cliVersion = () => {
|
|
28281
28281
|
try {
|
|
28282
|
-
return true ? "0.7.
|
|
28282
|
+
return true ? "0.7.37" : "dev";
|
|
28283
28283
|
} catch {
|
|
28284
28284
|
return "dev";
|
|
28285
28285
|
}
|
|
@@ -30650,7 +30650,7 @@ var init_sync_client = __esm({
|
|
|
30650
30650
|
ownVersion = JSON.parse(readFileSync41(join47(dir, "../package.json"), "utf-8")).version || ownVersion;
|
|
30651
30651
|
} catch {
|
|
30652
30652
|
try {
|
|
30653
|
-
if (true) ownVersion = "0.7.
|
|
30653
|
+
if (true) ownVersion = "0.7.37";
|
|
30654
30654
|
} catch {
|
|
30655
30655
|
}
|
|
30656
30656
|
}
|
|
@@ -32456,7 +32456,7 @@ var init_intent_drain = __esm({
|
|
|
32456
32456
|
ownVersion2 = JSON.parse(readFileSync45(join53(dir, "../package.json"), "utf-8")).version || ownVersion2;
|
|
32457
32457
|
} catch {
|
|
32458
32458
|
try {
|
|
32459
|
-
if (true) ownVersion2 = "0.7.
|
|
32459
|
+
if (true) ownVersion2 = "0.7.37";
|
|
32460
32460
|
} catch {
|
|
32461
32461
|
}
|
|
32462
32462
|
}
|
|
@@ -34805,7 +34805,7 @@ var init_indexer = __esm({
|
|
|
34805
34805
|
init_collector_migrate();
|
|
34806
34806
|
init_sync_ledger();
|
|
34807
34807
|
init_collector_health();
|
|
34808
|
-
CLI_VERSION3 = true ? "0.7.
|
|
34808
|
+
CLI_VERSION3 = true ? "0.7.37" : "0.0.0";
|
|
34809
34809
|
DEBOUNCE_MS = 5e3;
|
|
34810
34810
|
PLANS_DIR = claudeBackend.plansDir();
|
|
34811
34811
|
TASKS_DIR = claudeBackend.tasksDir();
|