@remnic/core 10.0.111 → 10.0.113
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/access-admin-ops-surface.js +58 -57
- package/dist/access-cli.js +58 -57
- package/dist/access-cli.js.map +1 -1
- package/dist/access-extraction-force-flush.js +58 -57
- package/dist/access-http-briefing.js +58 -57
- package/dist/access-http-query.js +58 -57
- package/dist/access-http.js +58 -57
- package/dist/access-identity-continuity-surface.js +58 -57
- package/dist/access-lcm-surface.js +58 -57
- package/dist/access-mcp.js +58 -57
- package/dist/access-observe-write-category.js +5 -5
- package/dist/access-observe-write-surface.js +58 -57
- package/dist/access-operations-batch.js +58 -57
- package/dist/access-operations.js +58 -57
- package/dist/access-recall-concurrency.js +58 -57
- package/dist/access-recall-response.js +58 -57
- package/dist/access-recall-surface.js +58 -57
- package/dist/access-schema.js +4 -4
- package/dist/access-service.js +58 -57
- package/dist/active-recall.js +7 -7
- package/dist/briefing.js +8 -8
- package/dist/{capsule-crypto-7FJQINUR.js → capsule-crypto-YO5QJ6L3.js} +2 -2
- package/dist/causal-consolidation.js +9 -9
- package/dist/{chunk-WDAIXMEU.js → chunk-4N7L2N54.js} +70 -70
- package/dist/{chunk-F32RH72R.js → chunk-5RONA5FF.js} +26 -16
- package/dist/chunk-5RONA5FF.js.map +1 -0
- package/dist/{chunk-PBE7NFB5.js → chunk-BNQJKWWZ.js} +4 -4
- package/dist/{chunk-2NLLXCJG.js → chunk-BXLOS5AJ.js} +2 -2
- package/dist/{chunk-LFPGCYXE.js → chunk-C2KBLOKE.js} +2 -2
- package/dist/{chunk-Z64ANMII.js → chunk-C6WVKVHZ.js} +2 -2
- package/dist/{chunk-UY3JSQ7H.js → chunk-CTQ2XD4R.js} +2 -2
- package/dist/{chunk-XNI3URDR.js → chunk-D5F3D7DA.js} +2 -2
- package/dist/{chunk-FYQUUIPI.js → chunk-DLZGSZVC.js} +4 -4
- package/dist/{chunk-YK6SFDP2.js → chunk-DOJBV6WR.js} +4 -4
- package/dist/{chunk-X7Y7WX73.js → chunk-DQEMWVMT.js} +1 -1
- package/dist/{chunk-I5PCMNN5.js → chunk-EKWS6NCF.js} +3 -3
- package/dist/{chunk-XSFDRM2P.js → chunk-G6TDGYVC.js} +2 -2
- package/dist/{chunk-TR4HFZBD.js → chunk-GRS34Y7V.js} +2 -2
- package/dist/{chunk-BZAI3ETM.js → chunk-HM62567O.js} +2 -2
- package/dist/{chunk-AJCXPMDA.js → chunk-IOLFR3JJ.js} +2 -2
- package/dist/{chunk-F6GNH5UY.js → chunk-J5MBTYDO.js} +2 -2
- package/dist/{chunk-HRMOKGQM.js → chunk-JCKN3E6Y.js} +2 -2
- package/dist/{chunk-E5DYZM56.js → chunk-JTO63AXR.js} +2 -2
- package/dist/{chunk-G7QANNRD.js → chunk-KPFOFT4I.js} +2 -2
- package/dist/{chunk-R3LYKUZH.js → chunk-NRZJKDGO.js} +2 -2
- package/dist/{chunk-X3HLHS5E.js → chunk-O5DO5LXA.js} +13 -13
- package/dist/{chunk-BFRNDOHO.js → chunk-OSYHJCLK.js} +2 -2
- package/dist/{chunk-P3AQ2YSX.js → chunk-PFUXPTBT.js} +4 -4
- package/dist/chunk-PQVLF42S.js +87 -0
- package/dist/chunk-PQVLF42S.js.map +1 -0
- package/dist/{chunk-YQ7H7P4Y.js → chunk-Q7UY2CSW.js} +7 -7
- package/dist/{chunk-R2DOFBG4.js → chunk-QNTBJKTN.js} +2 -2
- package/dist/{chunk-27YNNLRB.js → chunk-QYN6I3CG.js} +2 -2
- package/dist/{chunk-KQAFEZQX.js → chunk-R45L4TV6.js} +6 -6
- package/dist/{chunk-25JBIXAV.js → chunk-R76L66OW.js} +3 -3
- package/dist/{chunk-INXS64LQ.js → chunk-RJTHGVO3.js} +2 -2
- package/dist/{chunk-HWMIXG3J.js → chunk-RLXD2L3G.js} +4 -4
- package/dist/{chunk-25BUV3TU.js → chunk-S4G7WX7Q.js} +2 -2
- package/dist/{chunk-IOTMEQUC.js → chunk-SMAPUZYV.js} +2 -2
- package/dist/{chunk-AAF7RX22.js → chunk-T4FW43AG.js} +3 -3
- package/dist/{chunk-SZXDGB32.js → chunk-T5DX6A7T.js} +2 -2
- package/dist/{chunk-Z4NOA733.js → chunk-T6H5HNA6.js} +2 -2
- package/dist/{chunk-MPIMRX3I.js → chunk-TA6IK76H.js} +2 -2
- package/dist/{chunk-6DUBULUV.js → chunk-TPAIKAT5.js} +3 -3
- package/dist/{chunk-YTNLLRHQ.js → chunk-TS34Y2T5.js} +2 -2
- package/dist/{chunk-ZAMVB4JK.js → chunk-VHWQGBXY.js} +3 -3
- package/dist/{chunk-6YXIL26Y.js → chunk-VMEFUPOM.js} +2 -2
- package/dist/{chunk-477SVZUZ.js → chunk-WP25PXBB.js} +2 -2
- package/dist/{chunk-GG3QMQEG.js → chunk-XOCAG2LF.js} +2 -2
- package/dist/{chunk-BGM7O5TD.js → chunk-YPDUSAPH.js} +2 -2
- package/dist/cli.js +58 -57
- package/dist/coding/export-okf-codegraph.js +7 -7
- package/dist/compounding/engine.js +9 -9
- package/dist/config.js +7 -7
- package/dist/connectors/codex-materialize-runner.js +8 -8
- package/dist/connectors/index.js +8 -8
- package/dist/convergence-refresh.js +10 -10
- package/dist/corpus-watermark.js +10 -10
- package/dist/deep-recall-http-glue.js +5 -5
- package/dist/entity-retrieval.js +8 -8
- package/dist/explicit-capture.js +58 -57
- package/dist/extraction.js +8 -8
- package/dist/harmonic-retrieval.js +8 -8
- package/dist/index.js +70 -69
- package/dist/lcm/engine.js +2 -2
- package/dist/lcm/index.js +5 -5
- package/dist/location/index.js +9 -9
- package/dist/maintenance/memory-governance.js +8 -8
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +8 -8
- package/dist/maintenance/rebuild-memory-projection-runner.js +10 -10
- package/dist/maintenance/rebuild-memory-projection.js +9 -9
- package/dist/namespaces/migrate.js +9 -9
- package/dist/namespaces/search.js +6 -6
- package/dist/namespaces/storage.js +8 -8
- package/dist/operator-doctor-corpus.js +11 -11
- package/dist/operator-toolkit.js +14 -14
- package/dist/orchestration/backlog-scheduler.js +59 -58
- package/dist/orchestration/backlog-scheduler.js.map +1 -1
- package/dist/orchestration/buffer-drain-runner.js +59 -58
- package/dist/orchestration/maintenance.js +16 -16
- package/dist/orchestrator.js +58 -57
- package/dist/recall-navigation.js +58 -57
- package/dist/resume-bundles.js +10 -9
- package/dist/search/factory.js +5 -5
- package/dist/search/index.js +5 -5
- package/dist/search/lancedb-backend.js +2 -2
- package/dist/search/meilisearch-backend.js +2 -2
- package/dist/search/orama-backend.js +2 -2
- package/dist/semantic-consolidation.js +9 -9
- package/dist/semantic-rule-promotion.js +8 -8
- package/dist/semantic-rule-verifier.js +8 -8
- package/dist/source-agent-qualifier.js +8 -8
- package/dist/standup/build.js +8 -8
- package/dist/storage.js +7 -7
- package/dist/transcript-write-dir-memo.d.ts +43 -0
- package/dist/transcript-write-dir-memo.d.ts.map +1 -0
- package/dist/transcript-write-dir-memo.js +10 -0
- package/dist/transcript-write-dir-memo.js.map +1 -0
- package/dist/transcript.d.ts +4 -0
- package/dist/transcript.d.ts.map +1 -1
- package/dist/transcript.js +2 -1
- package/dist/transfer/autodetect.js +1 -1
- package/dist/transfer/backup.js +2 -2
- package/dist/transfer/capsule-export.js +3 -3
- package/dist/transfer/capsule-import.js +2 -2
- package/dist/transfer/export-okf.js +8 -8
- package/dist/verified-recall.js +8 -8
- package/dist/who-knows-cli.js +9 -9
- package/dist/who-knows.js +8 -8
- package/package.json +2 -2
- package/src/transcript-ownership-digest.test.ts +8 -0
- package/src/transcript-write-dir-memo.test.ts +340 -0
- package/src/transcript-write-dir-memo.ts +104 -0
- package/src/transcript.ts +23 -16
- package/dist/chunk-F32RH72R.js.map +0 -1
- /package/dist/{capsule-crypto-7FJQINUR.js.map → capsule-crypto-YO5QJ6L3.js.map} +0 -0
- /package/dist/{chunk-WDAIXMEU.js.map → chunk-4N7L2N54.js.map} +0 -0
- /package/dist/{chunk-PBE7NFB5.js.map → chunk-BNQJKWWZ.js.map} +0 -0
- /package/dist/{chunk-2NLLXCJG.js.map → chunk-BXLOS5AJ.js.map} +0 -0
- /package/dist/{chunk-LFPGCYXE.js.map → chunk-C2KBLOKE.js.map} +0 -0
- /package/dist/{chunk-Z64ANMII.js.map → chunk-C6WVKVHZ.js.map} +0 -0
- /package/dist/{chunk-UY3JSQ7H.js.map → chunk-CTQ2XD4R.js.map} +0 -0
- /package/dist/{chunk-XNI3URDR.js.map → chunk-D5F3D7DA.js.map} +0 -0
- /package/dist/{chunk-FYQUUIPI.js.map → chunk-DLZGSZVC.js.map} +0 -0
- /package/dist/{chunk-YK6SFDP2.js.map → chunk-DOJBV6WR.js.map} +0 -0
- /package/dist/{chunk-X7Y7WX73.js.map → chunk-DQEMWVMT.js.map} +0 -0
- /package/dist/{chunk-I5PCMNN5.js.map → chunk-EKWS6NCF.js.map} +0 -0
- /package/dist/{chunk-XSFDRM2P.js.map → chunk-G6TDGYVC.js.map} +0 -0
- /package/dist/{chunk-TR4HFZBD.js.map → chunk-GRS34Y7V.js.map} +0 -0
- /package/dist/{chunk-BZAI3ETM.js.map → chunk-HM62567O.js.map} +0 -0
- /package/dist/{chunk-AJCXPMDA.js.map → chunk-IOLFR3JJ.js.map} +0 -0
- /package/dist/{chunk-F6GNH5UY.js.map → chunk-J5MBTYDO.js.map} +0 -0
- /package/dist/{chunk-HRMOKGQM.js.map → chunk-JCKN3E6Y.js.map} +0 -0
- /package/dist/{chunk-E5DYZM56.js.map → chunk-JTO63AXR.js.map} +0 -0
- /package/dist/{chunk-G7QANNRD.js.map → chunk-KPFOFT4I.js.map} +0 -0
- /package/dist/{chunk-R3LYKUZH.js.map → chunk-NRZJKDGO.js.map} +0 -0
- /package/dist/{chunk-X3HLHS5E.js.map → chunk-O5DO5LXA.js.map} +0 -0
- /package/dist/{chunk-BFRNDOHO.js.map → chunk-OSYHJCLK.js.map} +0 -0
- /package/dist/{chunk-P3AQ2YSX.js.map → chunk-PFUXPTBT.js.map} +0 -0
- /package/dist/{chunk-YQ7H7P4Y.js.map → chunk-Q7UY2CSW.js.map} +0 -0
- /package/dist/{chunk-R2DOFBG4.js.map → chunk-QNTBJKTN.js.map} +0 -0
- /package/dist/{chunk-27YNNLRB.js.map → chunk-QYN6I3CG.js.map} +0 -0
- /package/dist/{chunk-KQAFEZQX.js.map → chunk-R45L4TV6.js.map} +0 -0
- /package/dist/{chunk-25JBIXAV.js.map → chunk-R76L66OW.js.map} +0 -0
- /package/dist/{chunk-INXS64LQ.js.map → chunk-RJTHGVO3.js.map} +0 -0
- /package/dist/{chunk-HWMIXG3J.js.map → chunk-RLXD2L3G.js.map} +0 -0
- /package/dist/{chunk-25BUV3TU.js.map → chunk-S4G7WX7Q.js.map} +0 -0
- /package/dist/{chunk-IOTMEQUC.js.map → chunk-SMAPUZYV.js.map} +0 -0
- /package/dist/{chunk-AAF7RX22.js.map → chunk-T4FW43AG.js.map} +0 -0
- /package/dist/{chunk-SZXDGB32.js.map → chunk-T5DX6A7T.js.map} +0 -0
- /package/dist/{chunk-Z4NOA733.js.map → chunk-T6H5HNA6.js.map} +0 -0
- /package/dist/{chunk-MPIMRX3I.js.map → chunk-TA6IK76H.js.map} +0 -0
- /package/dist/{chunk-6DUBULUV.js.map → chunk-TPAIKAT5.js.map} +0 -0
- /package/dist/{chunk-YTNLLRHQ.js.map → chunk-TS34Y2T5.js.map} +0 -0
- /package/dist/{chunk-ZAMVB4JK.js.map → chunk-VHWQGBXY.js.map} +0 -0
- /package/dist/{chunk-6YXIL26Y.js.map → chunk-VMEFUPOM.js.map} +0 -0
- /package/dist/{chunk-477SVZUZ.js.map → chunk-WP25PXBB.js.map} +0 -0
- /package/dist/{chunk-GG3QMQEG.js.map → chunk-XOCAG2LF.js.map} +0 -0
- /package/dist/{chunk-BGM7O5TD.js.map → chunk-YPDUSAPH.js.map} +0 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/** One entry per session, ~200 B each. */
|
|
2
|
+
export declare const DEFAULT_WRITE_DIR_MEMO_ENTRIES = 4096;
|
|
3
|
+
export interface WriteDirChoice {
|
|
4
|
+
dir: string;
|
|
5
|
+
channelDir: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Remembers which storage directory a session's appends were verified to own,
|
|
9
|
+
* so only a session's first append in a process pays the directory ownership
|
|
10
|
+
* check (a full read of every daily file). The key holds the session key as a
|
|
11
|
+
* digest so caller-chosen keys cannot inflate memory; the map is an LRU.
|
|
12
|
+
*
|
|
13
|
+
* The remembered choice is not re-derived from the bytes. A file edited on
|
|
14
|
+
* disk behind the process is noticed on the session's first append after a
|
|
15
|
+
* restart or after an append error ({@link forget}), not on every append.
|
|
16
|
+
*/
|
|
17
|
+
export declare class WriteDirMemo {
|
|
18
|
+
private readonly maxEntries;
|
|
19
|
+
private readonly entries;
|
|
20
|
+
/** Bumped by every invalidation; a choice that was pending across one is not remembered. */
|
|
21
|
+
private generation;
|
|
22
|
+
/** Tail of the queue of memo-miss runs, per primary directory. */
|
|
23
|
+
private readonly lanes;
|
|
24
|
+
constructor(maxEntries?: number);
|
|
25
|
+
/** Primary directories with a first append queued or running; empty when idle. */
|
|
26
|
+
get pendingLanes(): number;
|
|
27
|
+
/** The remembered choice for the session, else the result of `choose` (remembered when it resolves). */
|
|
28
|
+
resolve(root: string, sessionKey: string, choose: () => Promise<WriteDirChoice>): Promise<WriteDirChoice>;
|
|
29
|
+
/**
|
|
30
|
+
* Run a session's append. A session whose directory is already remembered
|
|
31
|
+
* runs at once. Any other session's first append runs after the earlier
|
|
32
|
+
* first appends that share its primary directory: two sessions that map to
|
|
33
|
+
* one directory (two agents in one channel) must not both find it empty and
|
|
34
|
+
* both claim it, so the second check has to see the first session's row.
|
|
35
|
+
*/
|
|
36
|
+
run<T>(root: string, sessionKey: string, primaryDir: string, fn: () => Promise<T>): Promise<T>;
|
|
37
|
+
/** Run a file removal, then drop every remembered directory: the removal may have emptied one that another session can now claim. */
|
|
38
|
+
removing<T>(remove: () => Promise<T>): Promise<T>;
|
|
39
|
+
clear(): void;
|
|
40
|
+
forget(root: string, sessionKey: string): void;
|
|
41
|
+
private keyFor;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=transcript-write-dir-memo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transcript-write-dir-memo.d.ts","sourceRoot":"","sources":["../src/transcript-write-dir-memo.ts"],"names":[],"mappings":"AAEA,0CAA0C;AAC1C,eAAO,MAAM,8BAA8B,OAAO,CAAC;AAEnD,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;GASG;AACH,qBAAa,YAAY;IAOX,OAAO,CAAC,QAAQ,CAAC,UAAU;IANvC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAqC;IAC7D,4FAA4F;IAC5F,OAAO,CAAC,UAAU,CAAK;IACvB,kEAAkE;IAClE,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAoC;gBAE7B,UAAU,GAAE,MAAuC;IAMhF,kFAAkF;IAClF,IAAI,YAAY,IAAI,MAAM,CAEzB;IAED,wGAAwG;IAClG,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC,cAAc,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC;IAmB/G;;;;;;OAMG;IACG,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAgBpG,qIAAqI;IAC/H,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAQvD,KAAK,IAAI,IAAI;IAKb,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI;IAK9C,OAAO,CAAC,MAAM;CAGf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/transcript.d.ts
CHANGED
|
@@ -34,6 +34,8 @@ export declare class TranscriptManager {
|
|
|
34
34
|
private config;
|
|
35
35
|
private sessionFootprintCache;
|
|
36
36
|
private ownershipDigests;
|
|
37
|
+
/** Per-session verified write dir: only a session's first append pays the directory ownership read. */
|
|
38
|
+
private writeDirs;
|
|
37
39
|
/** Default checkpoint TTL in hours */
|
|
38
40
|
private static readonly DEFAULT_CHECKPOINT_TTL_HOURS;
|
|
39
41
|
constructor(config: PluginConfig);
|
|
@@ -98,6 +100,8 @@ export declare class TranscriptManager {
|
|
|
98
100
|
}>;
|
|
99
101
|
private estimateSessionBytesInFile;
|
|
100
102
|
private isLegacyTranscriptFile;
|
|
103
|
+
/** Drop the remembered write dirs so every session's next append re-verifies directory ownership. */
|
|
104
|
+
resetWriteDirs(): void;
|
|
101
105
|
/**
|
|
102
106
|
* Append a turn to the appropriate transcript file.
|
|
103
107
|
* Files are stored hierarchically: transcripts/{channelType}/{channelId}.jsonl
|
package/dist/transcript.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transcript.d.ts","sourceRoot":"","sources":["../src/transcript.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC5E,OAAO,EAA2B,KAAK,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"transcript.d.ts","sourceRoot":"","sources":["../src/transcript.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC5E,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TranscriptManager,
|
|
3
3
|
utcDayRange
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5RONA5FF.js";
|
|
5
5
|
import "./chunk-ADJXJKU6.js";
|
|
6
6
|
import "./chunk-GE5J2T67.js";
|
|
7
|
+
import "./chunk-PQVLF42S.js";
|
|
7
8
|
import "./chunk-5Y43VGYB.js";
|
|
8
9
|
import "./chunk-KFY3SGN7.js";
|
|
9
10
|
import "./chunk-TOTT6S2V.js";
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
import "../chunk-2DL3OFLD.js";
|
|
5
5
|
import "../chunk-G4IAEX6D.js";
|
|
6
6
|
import "../chunk-765K3SAT.js";
|
|
7
|
-
import "../chunk-WEHSQBFR.js";
|
|
8
7
|
import "../chunk-J4EB7DNW.js";
|
|
8
|
+
import "../chunk-WEHSQBFR.js";
|
|
9
9
|
import "../chunk-UI3NYK34.js";
|
|
10
10
|
import "../chunk-GCGJW34D.js";
|
|
11
11
|
import "../chunk-PZ5AY32C.js";
|
package/dist/transfer/backup.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
backupMemoryDir
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-BXLOS5AJ.js";
|
|
4
4
|
import "../chunk-765K3SAT.js";
|
|
5
|
-
import "../chunk-X7Y7WX73.js";
|
|
6
5
|
import "../chunk-J4EB7DNW.js";
|
|
6
|
+
import "../chunk-DQEMWVMT.js";
|
|
7
7
|
import "../chunk-BJMBJZ2Y.js";
|
|
8
8
|
import "../chunk-UKJAGEXH.js";
|
|
9
9
|
import "../chunk-FP2373TW.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exportCapsule,
|
|
3
3
|
isValidCapsuleSince
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-WEHSQBFR.js";
|
|
6
|
-
import "../chunk-X7Y7WX73.js";
|
|
4
|
+
} from "../chunk-R45L4TV6.js";
|
|
7
5
|
import "../chunk-J4EB7DNW.js";
|
|
6
|
+
import "../chunk-WEHSQBFR.js";
|
|
7
|
+
import "../chunk-DQEMWVMT.js";
|
|
8
8
|
import "../chunk-BJMBJZ2Y.js";
|
|
9
9
|
import "../chunk-UKJAGEXH.js";
|
|
10
10
|
import "../chunk-FP2373TW.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
importCapsule
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-JCKN3E6Y.js";
|
|
4
4
|
import "../chunk-QV2VZKD5.js";
|
|
5
5
|
import "../chunk-KUQLUYIR.js";
|
|
6
6
|
import "../chunk-O3GZPLVY.js";
|
|
7
7
|
import "../chunk-5WITETWU.js";
|
|
8
8
|
import "../chunk-6CIAGZ6X.js";
|
|
9
9
|
import "../chunk-WEHSQBFR.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-DQEMWVMT.js";
|
|
11
11
|
import "../chunk-BJMBJZ2Y.js";
|
|
12
12
|
import "../chunk-UKJAGEXH.js";
|
|
13
13
|
import "../chunk-FP2373TW.js";
|
|
@@ -4,28 +4,28 @@ import {
|
|
|
4
4
|
exportOkfBundle,
|
|
5
5
|
firstHeading,
|
|
6
6
|
parseIncludeStatus
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-JTO63AXR.js";
|
|
8
8
|
import {
|
|
9
9
|
OKF_EXPORT_VERSION
|
|
10
10
|
} from "../chunk-I7TR2OCU.js";
|
|
11
11
|
import "../chunk-D24OXEPB.js";
|
|
12
12
|
import "../chunk-3UXOZBHV.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-T5DX6A7T.js";
|
|
14
14
|
import "../chunk-QGVCFVX6.js";
|
|
15
15
|
import "../chunk-UHVXE24Y.js";
|
|
16
16
|
import "../chunk-O3JG4PD3.js";
|
|
17
17
|
import "../chunk-G6OFEGUR.js";
|
|
18
18
|
import "../chunk-RFUL2ZIQ.js";
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-GRS34Y7V.js";
|
|
20
|
+
import "../chunk-RLXD2L3G.js";
|
|
21
21
|
import "../chunk-OVZIYLBZ.js";
|
|
22
22
|
import "../chunk-EXYT52NR.js";
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-DOJBV6WR.js";
|
|
24
|
+
import "../chunk-PFUXPTBT.js";
|
|
25
25
|
import "../chunk-CYEPCZN5.js";
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-Y5NLBXPV.js";
|
|
26
|
+
import "../chunk-DLZGSZVC.js";
|
|
28
27
|
import "../chunk-WNEVEMJ3.js";
|
|
28
|
+
import "../chunk-Y5NLBXPV.js";
|
|
29
29
|
import "../chunk-TFA6HPOA.js";
|
|
30
30
|
import "../chunk-F4TWWUMP.js";
|
|
31
31
|
import "../chunk-72A4L5JJ.js";
|
package/dist/verified-recall.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compareVerifiedEpisodeResults,
|
|
3
3
|
searchVerifiedEpisodes
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TA6IK76H.js";
|
|
5
5
|
import "./chunk-B7RWBZXW.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-T5DX6A7T.js";
|
|
7
7
|
import "./chunk-QGVCFVX6.js";
|
|
8
8
|
import "./chunk-UHVXE24Y.js";
|
|
9
9
|
import "./chunk-O3JG4PD3.js";
|
|
10
10
|
import "./chunk-G6OFEGUR.js";
|
|
11
11
|
import "./chunk-RFUL2ZIQ.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-GRS34Y7V.js";
|
|
13
|
+
import "./chunk-RLXD2L3G.js";
|
|
14
14
|
import "./chunk-OVZIYLBZ.js";
|
|
15
15
|
import "./chunk-EXYT52NR.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-DOJBV6WR.js";
|
|
17
|
+
import "./chunk-PFUXPTBT.js";
|
|
18
18
|
import "./chunk-CYEPCZN5.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-Y5NLBXPV.js";
|
|
19
|
+
import "./chunk-DLZGSZVC.js";
|
|
21
20
|
import "./chunk-WNEVEMJ3.js";
|
|
21
|
+
import "./chunk-Y5NLBXPV.js";
|
|
22
22
|
import "./chunk-TFA6HPOA.js";
|
|
23
23
|
import "./chunk-F4TWWUMP.js";
|
|
24
24
|
import "./chunk-72A4L5JJ.js";
|
package/dist/who-knows-cli.js
CHANGED
|
@@ -4,24 +4,24 @@ import {
|
|
|
4
4
|
renderWhoKnows,
|
|
5
5
|
renderWhoKnowsJson,
|
|
6
6
|
renderWhoKnowsText
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-RJTHGVO3.js";
|
|
8
|
+
import "./chunk-C2KBLOKE.js";
|
|
9
|
+
import "./chunk-T5DX6A7T.js";
|
|
10
10
|
import "./chunk-QGVCFVX6.js";
|
|
11
11
|
import "./chunk-UHVXE24Y.js";
|
|
12
12
|
import "./chunk-O3JG4PD3.js";
|
|
13
13
|
import "./chunk-G6OFEGUR.js";
|
|
14
14
|
import "./chunk-RFUL2ZIQ.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-GRS34Y7V.js";
|
|
16
|
+
import "./chunk-RLXD2L3G.js";
|
|
17
17
|
import "./chunk-OVZIYLBZ.js";
|
|
18
18
|
import "./chunk-EXYT52NR.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-DOJBV6WR.js";
|
|
20
|
+
import "./chunk-PFUXPTBT.js";
|
|
21
21
|
import "./chunk-CYEPCZN5.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-Y5NLBXPV.js";
|
|
22
|
+
import "./chunk-DLZGSZVC.js";
|
|
24
23
|
import "./chunk-WNEVEMJ3.js";
|
|
24
|
+
import "./chunk-Y5NLBXPV.js";
|
|
25
25
|
import "./chunk-TFA6HPOA.js";
|
|
26
26
|
import "./chunk-F4TWWUMP.js";
|
|
27
27
|
import "./chunk-72A4L5JJ.js";
|
package/dist/who-knows.js
CHANGED
|
@@ -9,23 +9,23 @@ import {
|
|
|
9
9
|
loadWhoKnowsEntities,
|
|
10
10
|
tokenizeTopic,
|
|
11
11
|
validateWhoKnowsInput
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-C2KBLOKE.js";
|
|
13
|
+
import "./chunk-T5DX6A7T.js";
|
|
14
14
|
import "./chunk-QGVCFVX6.js";
|
|
15
15
|
import "./chunk-UHVXE24Y.js";
|
|
16
16
|
import "./chunk-O3JG4PD3.js";
|
|
17
17
|
import "./chunk-G6OFEGUR.js";
|
|
18
18
|
import "./chunk-RFUL2ZIQ.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-GRS34Y7V.js";
|
|
20
|
+
import "./chunk-RLXD2L3G.js";
|
|
21
21
|
import "./chunk-OVZIYLBZ.js";
|
|
22
22
|
import "./chunk-EXYT52NR.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-DOJBV6WR.js";
|
|
24
|
+
import "./chunk-PFUXPTBT.js";
|
|
25
25
|
import "./chunk-CYEPCZN5.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-Y5NLBXPV.js";
|
|
26
|
+
import "./chunk-DLZGSZVC.js";
|
|
28
27
|
import "./chunk-WNEVEMJ3.js";
|
|
28
|
+
import "./chunk-Y5NLBXPV.js";
|
|
29
29
|
import "./chunk-TFA6HPOA.js";
|
|
30
30
|
import "./chunk-F4TWWUMP.js";
|
|
31
31
|
import "./chunk-72A4L5JJ.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remnic/core",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.113",
|
|
4
4
|
"description": "Framework-agnostic Remnic memory engine — orchestrator, storage, extraction, search, trust zones",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -3386,7 +3386,7 @@
|
|
|
3386
3386
|
"core"
|
|
3387
3387
|
],
|
|
3388
3388
|
"peerDependencies": {
|
|
3389
|
-
"@remnic/coding-graph": "^10.0.
|
|
3389
|
+
"@remnic/coding-graph": "^10.0.113"
|
|
3390
3390
|
},
|
|
3391
3391
|
"peerDependenciesMeta": {
|
|
3392
3392
|
"@remnic/coding-graph": {
|
|
@@ -64,6 +64,7 @@ test("same-size foreign rewrite with restored mtime is never served a cached own
|
|
|
64
64
|
const primary = path.join(root, dir, file);
|
|
65
65
|
await rewriteSameSize(primary, (text) => text.replaceAll(owner, intruder));
|
|
66
66
|
|
|
67
|
+
manager.resetWriteDirs();
|
|
67
68
|
await manager.append(entry(owner, "3"));
|
|
68
69
|
|
|
69
70
|
const primaryText = await jsonlContents(path.join(root, dir));
|
|
@@ -83,6 +84,7 @@ test("same-size malformed rewrite with restored mtime is never served a cached o
|
|
|
83
84
|
const primary = path.join(root, dir, file);
|
|
84
85
|
await rewriteSameSize(primary, (text) => text.replace('{"timestamp"', '{"timestamp:'));
|
|
85
86
|
|
|
87
|
+
manager.resetWriteDirs();
|
|
86
88
|
await manager.append(entry(owner, "3"));
|
|
87
89
|
|
|
88
90
|
assert.equal((await jsonlContents(path.join(root, dir))).includes('"turnId":"3"'), false);
|
|
@@ -102,6 +104,7 @@ test("a read error after a cached owner verdict makes the directory occupied", a
|
|
|
102
104
|
await manager.append(entry(owner, "2"));
|
|
103
105
|
const primary = path.join(root, dir, file);
|
|
104
106
|
await chmod(primary, 0o000);
|
|
107
|
+
manager.resetWriteDirs();
|
|
105
108
|
try {
|
|
106
109
|
await manager.append(entry(owner, "3"));
|
|
107
110
|
} finally {
|
|
@@ -126,6 +129,7 @@ test("editing a cached prefix while the file grows is detected by content, not s
|
|
|
126
129
|
const grown = (await readFile(primary, "utf-8")) + JSON.stringify(entry(owner, "x")) + "\n";
|
|
127
130
|
await writeFile(primary, grown, "utf-8");
|
|
128
131
|
|
|
132
|
+
manager.resetWriteDirs();
|
|
129
133
|
await manager.append(entry(owner, "4"));
|
|
130
134
|
|
|
131
135
|
assert.equal((await jsonlContents(path.join(root, dir))).includes('"turnId":"4"'), false);
|
|
@@ -172,6 +176,7 @@ test("steady-state appends parse only new lines, not the accumulated history", a
|
|
|
172
176
|
assert.ok(parseSpy.mock.callCount() >= 20 * linesPerDay, "first append must verify the full history");
|
|
173
177
|
for (const id of ["a2", "a3", "a4"]) {
|
|
174
178
|
parseSpy.mock.resetCalls();
|
|
179
|
+
manager.resetWriteDirs(); // keep the directory check, and so the incremental digest path, in play
|
|
175
180
|
await manager.append(entry(owner, id));
|
|
176
181
|
const parses = parseSpy.mock.callCount();
|
|
177
182
|
assert.ok(parses <= 2, `append ${id} re-parsed ${parses} lines`);
|
|
@@ -375,12 +380,14 @@ test("warm multi-file directory: equal-size restored-mtime foreign rewrite of an
|
|
|
375
380
|
const original = await readFile(target, "utf-8");
|
|
376
381
|
await rewriteSameSize(target, (text) => text.replaceAll(owner, intruder));
|
|
377
382
|
|
|
383
|
+
manager.resetWriteDirs();
|
|
378
384
|
await manager.append(entry(owner, "after-foreign"));
|
|
379
385
|
|
|
380
386
|
assert.equal((await jsonlContents(path.join(root, dir))).includes('"turnId":"after-foreign"'), false);
|
|
381
387
|
assert.equal((await jsonlContents(path.join(root, alternateDir))).includes('"turnId":"after-foreign"'), true);
|
|
382
388
|
|
|
383
389
|
await writeFile(target, original, "utf-8");
|
|
390
|
+
manager.resetWriteDirs();
|
|
384
391
|
await manager.append(entry(owner, "after-restore"));
|
|
385
392
|
|
|
386
393
|
assert.equal((await jsonlContents(path.join(root, dir))).includes('"turnId":"after-restore"'), true);
|
|
@@ -395,6 +402,7 @@ test("warm multi-file directory: equal-size restored-mtime malformed rewrite of
|
|
|
395
402
|
const target = await warmedHistory(manager, root, owner);
|
|
396
403
|
await rewriteSameSize(target, (text) => text.replace('{"timestamp"', '{"timestamp:'));
|
|
397
404
|
|
|
405
|
+
manager.resetWriteDirs();
|
|
398
406
|
await manager.append(entry(owner, "after-malformed"));
|
|
399
407
|
|
|
400
408
|
assert.equal((await jsonlContents(path.join(root, dir))).includes('"turnId":"after-malformed"'), false);
|