chat-recall 0.7.51 → 0.7.54
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/cli.js +928 -630
- package/dist/cli.js.map +1 -1
- package/dist/ledger-reconcile.d.ts +50 -0
- package/dist/ledger-reconcile.d.ts.map +1 -0
- package/dist/ledger-reconcile.js +102 -0
- package/dist/ledger-reconcile.js.map +1 -0
- package/dist/mcp.js +10922 -10720
- package/dist/scan-worker.js +52 -3
- package/dist/session-source-probe.d.ts +8 -0
- package/dist/session-source-probe.d.ts.map +1 -0
- package/dist/session-source-probe.js +18 -0
- package/dist/session-source-probe.js.map +1 -0
- package/dist/sync-client.d.ts.map +1 -1
- package/dist/sync-client.js +27 -11
- package/dist/sync-client.js.map +1 -1
- package/dist/sync-ledger.d.ts +5 -0
- package/dist/sync-ledger.d.ts.map +1 -1
- package/dist/sync-ledger.js +22 -0
- package/dist/sync-ledger.js.map +1 -1
- package/dist/tombstone-rule.d.ts +47 -0
- package/dist/tombstone-rule.d.ts.map +1 -0
- package/dist/tombstone-rule.js +64 -0
- package/dist/tombstone-rule.js.map +1 -0
- package/dist/walk-budget.d.ts.map +1 -1
- package/dist/walk-budget.js +1 -1
- package/dist/walk-budget.js.map +1 -1
- package/dist/watch.js +11829 -11626
- package/package.json +1 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export type ReconcileMode = 'off' | 'report' | 'act';
|
|
2
|
+
/** Rows one run may clear, so the walks that follow stay inside their bounds. */
|
|
3
|
+
export declare const RECONCILE_MAX_PER_RUN = 2000;
|
|
4
|
+
export declare const RECONCILE_INTERVAL_MS: number;
|
|
5
|
+
/** `CHAT_RECALL_LEDGER_RECONCILE`: `act` (default), `report` or `off`. */
|
|
6
|
+
export declare function reconcileMode(env?: NodeJS.ProcessEnv): ReconcileMode;
|
|
7
|
+
export interface ReconcilePlan {
|
|
8
|
+
/** Every ledger session that the server lacks, newest first. */
|
|
9
|
+
missing: string[];
|
|
10
|
+
/** The part of `missing` that one run clears. */
|
|
11
|
+
queued: string[];
|
|
12
|
+
}
|
|
13
|
+
export declare function planReconcile(opts: {
|
|
14
|
+
ledger: ReadonlyMap<string, {
|
|
15
|
+
m: number;
|
|
16
|
+
}>;
|
|
17
|
+
serverIds: ReadonlySet<string>;
|
|
18
|
+
deletedIds?: ReadonlySet<string>;
|
|
19
|
+
limit?: number;
|
|
20
|
+
}): ReconcilePlan;
|
|
21
|
+
export interface ServerSessionList {
|
|
22
|
+
ids: Set<string>;
|
|
23
|
+
deleted: Set<string>;
|
|
24
|
+
}
|
|
25
|
+
type Fetcher = (url: string, init?: RequestInit, ms?: number) => Promise<Response>;
|
|
26
|
+
/** One request. Throws when the answer is not a session list, so a failed call never reads as an empty server. */
|
|
27
|
+
export declare function fetchServerSessions(server: string, token: string, fetcher?: Fetcher): Promise<ServerSessionList>;
|
|
28
|
+
export interface ReconcileResult {
|
|
29
|
+
mode: ReconcileMode;
|
|
30
|
+
missing: number;
|
|
31
|
+
cleared: number;
|
|
32
|
+
first: string[];
|
|
33
|
+
}
|
|
34
|
+
export interface ReconcileDeps {
|
|
35
|
+
listServer?: (server: string, token: string) => Promise<ServerSessionList>;
|
|
36
|
+
ledgerRows?: (server: string) => ReadonlyMap<string, {
|
|
37
|
+
m: number;
|
|
38
|
+
}>;
|
|
39
|
+
forget?: (server: string, ids: string[]) => void;
|
|
40
|
+
log?: (line: string) => void;
|
|
41
|
+
}
|
|
42
|
+
export declare function reconcileLedger(server: string, token: string, mode?: ReconcileMode, deps?: ReconcileDeps): Promise<ReconcileResult>;
|
|
43
|
+
/**
|
|
44
|
+
* The first call of a process runs, and later calls run once a day. A failure is
|
|
45
|
+
* logged and does not stop the walk: the ledger stays as it was.
|
|
46
|
+
*/
|
|
47
|
+
export declare function reconcileLedgerIfDue(server: string, token: string, now?: number, deps?: ReconcileDeps): Promise<ReconcileResult | null>;
|
|
48
|
+
export declare function _resetReconcileClockForTests(): void;
|
|
49
|
+
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G,OAAO,CAAC,iBAAiB,CAAC,CAexI;AAED,MAAM,WAAW,eAAe;IAAG,IAAI,EAAE,aAAa,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE,CAAA;CAAE;AAE3G,MAAM,WAAW,aAAa;IAC5B,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC3E,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,WAAW,CAAC,MAAM,EAAE;QAAE,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACpE,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACjD,GAAG,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9B;AAED,wBAAsB,eAAe,CACnC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,GAAE,aAA+B,EAAE,IAAI,GAAE,aAAkB,GAC7F,OAAO,CAAC,eAAe,CAAC,CAe1B;AAID;;;GAGG;AACH,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,GAAE,MAAmB,EAAE,IAAI,GAAE,aAAkB,GAChF,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,CAWjC;AAED,wBAAgB,4BAA4B,IAAI,IAAI,CAAuB"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compare the ledger with the server and queue the sessions the server lacks
|
|
3
|
+
* (issue #21).
|
|
4
|
+
*
|
|
5
|
+
* For four days the ledger said 4,000 sessions were synced while the server held
|
|
6
|
+
* 479, and nothing compared the two. One request to `/api/status/sessions` (about
|
|
7
|
+
* 1 MB for 12,000 sessions) gives the server's list. A ledger row whose session
|
|
8
|
+
* the server does not list is cleared, and the next bounded walk sends the
|
|
9
|
+
* session. A session the server lists without a stored conversation counts as
|
|
10
|
+
* missing. A session with a tombstone on the server is left alone: the server
|
|
11
|
+
* refuses it.
|
|
12
|
+
*/
|
|
13
|
+
import { fetchWithTimeout } from './http.js';
|
|
14
|
+
import { getSyncedRows, forgetSessions } from './sync-ledger.js';
|
|
15
|
+
/** Rows one run may clear, so the walks that follow stay inside their bounds. */
|
|
16
|
+
export const RECONCILE_MAX_PER_RUN = 2000;
|
|
17
|
+
export const RECONCILE_INTERVAL_MS = 24 * 60 * 60_000;
|
|
18
|
+
/** `CHAT_RECALL_LEDGER_RECONCILE`: `act` (default), `report` or `off`. */
|
|
19
|
+
export function reconcileMode(env = process.env) {
|
|
20
|
+
const raw = env.CHAT_RECALL_LEDGER_RECONCILE?.trim().toLowerCase();
|
|
21
|
+
if (raw === 'off' || raw === 'report' || raw === 'act')
|
|
22
|
+
return raw;
|
|
23
|
+
return 'act';
|
|
24
|
+
}
|
|
25
|
+
export function planReconcile(opts) {
|
|
26
|
+
const limit = opts.limit ?? RECONCILE_MAX_PER_RUN;
|
|
27
|
+
const missing = [];
|
|
28
|
+
for (const [id, row] of opts.ledger) {
|
|
29
|
+
if (opts.serverIds.has(id) || opts.deletedIds?.has(id))
|
|
30
|
+
continue;
|
|
31
|
+
missing.push([id, row.m]);
|
|
32
|
+
}
|
|
33
|
+
missing.sort((a, b) => b[1] - a[1]);
|
|
34
|
+
const ids = missing.map(([id]) => id);
|
|
35
|
+
return { missing: ids, queued: ids.slice(0, limit) };
|
|
36
|
+
}
|
|
37
|
+
/** One request. Throws when the answer is not a session list, so a failed call never reads as an empty server. */
|
|
38
|
+
export async function fetchServerSessions(server, token, fetcher = fetchWithTimeout) {
|
|
39
|
+
const headers = {};
|
|
40
|
+
if (token)
|
|
41
|
+
headers.authorization = `Bearer ${token}`;
|
|
42
|
+
const res = await fetcher(`${server}/api/status/sessions`, { headers }, 120_000);
|
|
43
|
+
if (!res.ok)
|
|
44
|
+
throw new Error(`HTTP ${res.status} from /api/status/sessions`);
|
|
45
|
+
const body = await res.json();
|
|
46
|
+
if (!Array.isArray(body.sessions))
|
|
47
|
+
throw new Error('/api/status/sessions did not return a session list');
|
|
48
|
+
const ids = new Set();
|
|
49
|
+
for (const s of body.sessions)
|
|
50
|
+
if (typeof s.id === 'string')
|
|
51
|
+
ids.add(s.id);
|
|
52
|
+
// A session the server stores without a conversation counts as missing: the
|
|
53
|
+
// restore of 2026-11-14 brought back about 7,300 rows whose conversations were gone.
|
|
54
|
+
for (const e of body.empty ?? [])
|
|
55
|
+
if (typeof e === 'string')
|
|
56
|
+
ids.delete(e);
|
|
57
|
+
const deleted = new Set();
|
|
58
|
+
for (const d of body.deleted ?? [])
|
|
59
|
+
if (typeof d === 'string')
|
|
60
|
+
deleted.add(d);
|
|
61
|
+
return { ids, deleted };
|
|
62
|
+
}
|
|
63
|
+
export async function reconcileLedger(server, token, mode = reconcileMode(), deps = {}) {
|
|
64
|
+
const log = deps.log ?? ((l) => console.error(l));
|
|
65
|
+
if (mode === 'off')
|
|
66
|
+
return { mode, missing: 0, cleared: 0, first: [] };
|
|
67
|
+
const list = await (deps.listServer ?? fetchServerSessions)(server, token);
|
|
68
|
+
const plan = planReconcile({
|
|
69
|
+
ledger: (deps.ledgerRows ?? getSyncedRows)(server),
|
|
70
|
+
serverIds: list.ids,
|
|
71
|
+
deletedIds: list.deleted,
|
|
72
|
+
});
|
|
73
|
+
const first = plan.queued.slice(0, 5);
|
|
74
|
+
if (plan.missing.length === 0)
|
|
75
|
+
return { mode, missing: 0, cleared: 0, first };
|
|
76
|
+
log(`[sync] the server lacks ${plan.missing.length} session(s) that the ledger marks as synced (mode ${mode}); first ids: ${first.join(', ')}`);
|
|
77
|
+
if (mode === 'report')
|
|
78
|
+
return { mode, missing: plan.missing.length, cleared: 0, first };
|
|
79
|
+
(deps.forget ?? forgetSessions)(server, plan.queued);
|
|
80
|
+
return { mode, missing: plan.missing.length, cleared: plan.queued.length, first };
|
|
81
|
+
}
|
|
82
|
+
const lastRunAt = new Map();
|
|
83
|
+
/**
|
|
84
|
+
* The first call of a process runs, and later calls run once a day. A failure is
|
|
85
|
+
* logged and does not stop the walk: the ledger stays as it was.
|
|
86
|
+
*/
|
|
87
|
+
export async function reconcileLedgerIfDue(server, token, now = Date.now(), deps = {}) {
|
|
88
|
+
const last = lastRunAt.get(server);
|
|
89
|
+
if (last !== undefined && now - last < RECONCILE_INTERVAL_MS)
|
|
90
|
+
return null;
|
|
91
|
+
lastRunAt.set(server, now);
|
|
92
|
+
try {
|
|
93
|
+
return await reconcileLedger(server, token, reconcileMode(), deps);
|
|
94
|
+
}
|
|
95
|
+
catch (err) {
|
|
96
|
+
lastRunAt.delete(server);
|
|
97
|
+
(deps.log ?? ((l) => console.error(l)))(`[sync] ledger check against the server failed (the walk goes on): ${err instanceof Error ? err.message : err}`);
|
|
98
|
+
return null;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
export function _resetReconcileClockForTests() { lastRunAt.clear(); }
|
|
102
|
+
//# sourceMappingURL=ledger-reconcile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ledger-reconcile.js","sourceRoot":"","sources":["../src/ledger-reconcile.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIjE,iFAAiF;AACjF,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAC1C,MAAM,CAAC,MAAM,qBAAqB,GAAG,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC;AAEtD,0EAA0E;AAC1E,MAAM,UAAU,aAAa,CAAC,MAAyB,OAAO,CAAC,GAAG;IAChE,MAAM,GAAG,GAAG,GAAG,CAAC,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