@loreai/core 0.12.0 → 0.13.0
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/bun/agents-file.d.ts +29 -8
- package/dist/bun/agents-file.d.ts.map +1 -1
- package/dist/bun/config.d.ts +1 -0
- package/dist/bun/config.d.ts.map +1 -1
- package/dist/bun/db.d.ts.map +1 -1
- package/dist/bun/distillation.d.ts +29 -0
- package/dist/bun/distillation.d.ts.map +1 -1
- package/dist/bun/embedding.d.ts +15 -1
- package/dist/bun/embedding.d.ts.map +1 -1
- package/dist/bun/gradient.d.ts +53 -5
- package/dist/bun/gradient.d.ts.map +1 -1
- package/dist/bun/index.d.ts +4 -4
- package/dist/bun/index.d.ts.map +1 -1
- package/dist/bun/index.js +696 -243
- package/dist/bun/index.js.map +4 -4
- package/dist/bun/pattern-extract.d.ts +36 -0
- package/dist/bun/pattern-extract.d.ts.map +1 -0
- package/dist/bun/recall.d.ts +1 -0
- package/dist/bun/recall.d.ts.map +1 -1
- package/dist/bun/search.d.ts +13 -1
- package/dist/bun/search.d.ts.map +1 -1
- package/dist/bun/types.d.ts +41 -1
- package/dist/bun/types.d.ts.map +1 -1
- package/dist/bun/worker-model.d.ts +22 -0
- package/dist/bun/worker-model.d.ts.map +1 -1
- package/dist/node/agents-file.d.ts +29 -8
- package/dist/node/agents-file.d.ts.map +1 -1
- package/dist/node/config.d.ts +1 -0
- package/dist/node/config.d.ts.map +1 -1
- package/dist/node/db.d.ts.map +1 -1
- package/dist/node/distillation.d.ts +29 -0
- package/dist/node/distillation.d.ts.map +1 -1
- package/dist/node/embedding.d.ts +15 -1
- package/dist/node/embedding.d.ts.map +1 -1
- package/dist/node/gradient.d.ts +53 -5
- package/dist/node/gradient.d.ts.map +1 -1
- package/dist/node/index.d.ts +4 -4
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.js +696 -243
- package/dist/node/index.js.map +4 -4
- package/dist/node/pattern-extract.d.ts +36 -0
- package/dist/node/pattern-extract.d.ts.map +1 -0
- package/dist/node/recall.d.ts +1 -0
- package/dist/node/recall.d.ts.map +1 -1
- package/dist/node/search.d.ts +13 -1
- package/dist/node/search.d.ts.map +1 -1
- package/dist/node/types.d.ts +41 -1
- package/dist/node/types.d.ts.map +1 -1
- package/dist/node/worker-model.d.ts +22 -0
- package/dist/node/worker-model.d.ts.map +1 -1
- package/dist/types/agents-file.d.ts +29 -8
- package/dist/types/agents-file.d.ts.map +1 -1
- package/dist/types/config.d.ts +1 -0
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/db.d.ts.map +1 -1
- package/dist/types/distillation.d.ts +29 -0
- package/dist/types/distillation.d.ts.map +1 -1
- package/dist/types/embedding.d.ts +15 -1
- package/dist/types/embedding.d.ts.map +1 -1
- package/dist/types/gradient.d.ts +53 -5
- package/dist/types/gradient.d.ts.map +1 -1
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/pattern-extract.d.ts +36 -0
- package/dist/types/pattern-extract.d.ts.map +1 -0
- package/dist/types/recall.d.ts +1 -0
- package/dist/types/recall.d.ts.map +1 -1
- package/dist/types/search.d.ts +13 -1
- package/dist/types/search.d.ts.map +1 -1
- package/dist/types/types.d.ts +41 -1
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/worker-model.d.ts +22 -0
- package/dist/types/worker-model.d.ts.map +1 -1
- package/package.json +3 -2
- package/src/agents-file.ts +111 -28
- package/src/config.ts +25 -18
- package/src/curator.ts +2 -2
- package/src/db.ts +19 -2
- package/src/distillation.ts +152 -15
- package/src/embedding.ts +158 -14
- package/src/gradient.ts +398 -227
- package/src/index.ts +13 -5
- package/src/pattern-extract.ts +108 -0
- package/src/recall.ts +124 -6
- package/src/search.ts +37 -1
- package/src/types.ts +41 -1
- package/src/worker-model.ts +142 -5
|
@@ -9,6 +9,12 @@
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const LORE_SECTION_START = "<!-- This section is maintained by the coding agent via lore (https://github.com/BYK/loreai) -->";
|
|
11
11
|
export declare const LORE_SECTION_END = "<!-- End lore-managed section -->";
|
|
12
|
+
/**
|
|
13
|
+
* Filename for the dedicated lore knowledge file. Always at the project root.
|
|
14
|
+
* Unlike the agents file (AGENTS.md / CLAUDE.md), this file is entirely owned
|
|
15
|
+
* by lore — no section markers needed, no non-lore content to preserve.
|
|
16
|
+
*/
|
|
17
|
+
export declare const LORE_FILE = ".lore.md";
|
|
12
18
|
export type ParsedFileEntry = {
|
|
13
19
|
/** UUID from `<!-- lore:UUID -->` marker, or null for hand-written entries. */
|
|
14
20
|
id: string | null;
|
|
@@ -27,8 +33,9 @@ export type ParsedFileEntry = {
|
|
|
27
33
|
*/
|
|
28
34
|
export declare function parseEntriesFromSection(section: string): ParsedFileEntry[];
|
|
29
35
|
/**
|
|
30
|
-
* Write
|
|
31
|
-
* non-lore content.
|
|
36
|
+
* Write a pointer to `.lore.md` inside the agents file (AGENTS.md / CLAUDE.md),
|
|
37
|
+
* preserving all non-lore content. Also writes `.lore.md` with the actual
|
|
38
|
+
* knowledge entries as a side effect.
|
|
32
39
|
*/
|
|
33
40
|
export declare function exportToFile(input: {
|
|
34
41
|
projectPath: string;
|
|
@@ -45,15 +52,29 @@ export declare function shouldImport(input: {
|
|
|
45
52
|
}): boolean;
|
|
46
53
|
/**
|
|
47
54
|
* Import knowledge entries from the agents file into the local DB.
|
|
48
|
-
*
|
|
49
|
-
* Behaviour per entry:
|
|
50
|
-
* - Known UUID (already in DB) → update content if it changed (manual edit)
|
|
51
|
-
* - Unknown UUID (other machine)→ create with that exact ID
|
|
52
|
-
* - No UUID (hand-written) → create with a new UUIDv7
|
|
53
|
-
* - Duplicate UUID in same file → first occurrence wins, rest ignored
|
|
55
|
+
* Used for backward compatibility when `.lore.md` doesn't exist yet.
|
|
54
56
|
*/
|
|
55
57
|
export declare function importFromFile(input: {
|
|
56
58
|
projectPath: string;
|
|
57
59
|
filePath: string;
|
|
58
60
|
}): void;
|
|
61
|
+
/**
|
|
62
|
+
* Returns true if a `.lore.md` file exists in the project root.
|
|
63
|
+
*/
|
|
64
|
+
export declare function loreFileExists(projectPath: string): boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Export current knowledge entries to `.lore.md` in the project root.
|
|
67
|
+
* The entire file is lore-owned — no section markers, no content to preserve.
|
|
68
|
+
*/
|
|
69
|
+
export declare function exportLoreFile(projectPath: string): void;
|
|
70
|
+
/**
|
|
71
|
+
* Returns true if `.lore.md` needs to be imported:
|
|
72
|
+
* - File exists and its content differs from what lore would currently produce
|
|
73
|
+
*/
|
|
74
|
+
export declare function shouldImportLoreFile(projectPath: string): boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Import knowledge entries from `.lore.md` into the local DB.
|
|
77
|
+
* Parses the full file content (no section markers to split on).
|
|
78
|
+
*/
|
|
79
|
+
export declare function importLoreFile(projectPath: string): void;
|
|
59
80
|
//# sourceMappingURL=agents-file.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents-file.d.ts","sourceRoot":"","sources":["../../src/agents-file.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAWH,eAAO,MAAM,kBAAkB,qGACqE,CAAC;AACrG,eAAO,MAAM,gBAAgB,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"agents-file.d.ts","sourceRoot":"","sources":["../../src/agents-file.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAWH,eAAO,MAAM,kBAAkB,qGACqE,CAAC;AACrG,eAAO,MAAM,gBAAgB,sCAAsC,CAAC;AAepE;;;;GAIG;AACH,eAAO,MAAM,SAAS,aAAa,CAAC;AAepC,MAAM,MAAM,eAAe,GAAG;IAC5B,+EAA+E;IAC/E,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AA+EF;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe,EAAE,CAgD1E;AAmFD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,IAAI,CA8BP;AAMD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,OAAO,CAcV;AAsED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,IAAI,CAeP;AAMD;;GAEG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAE3D;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAIxD;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAOjE;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CASxD"}
|
package/dist/bun/config.d.ts
CHANGED
package/dist/bun/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkKrB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAIpD,wBAAgB,MAAM,IAAI,UAAU,CAEnC;AAED,wBAAsB,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CASjE"}
|
package/dist/bun/db.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../src/db.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../src/db.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AA0WtC,wBAAgB,EAAE,IAAI,QAAQ,CAkC7B;AAmGD,wBAAgB,KAAK,SAKpB;AAGD,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAYjE;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAK1D;AAED,2DAA2D;AAC3D,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAKrD;AAED;;;GAGG;AACH,wBAAgB,UAAU,IAAI,OAAO,CAKpC;AAMD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAK3D;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAYxE"}
|
|
@@ -80,6 +80,10 @@ export type Distillation = {
|
|
|
80
80
|
generation: number;
|
|
81
81
|
token_count: number;
|
|
82
82
|
created_at: number;
|
|
83
|
+
/** k/√N compression ratio. NULL for pre-v12 rows or meta-distillations. */
|
|
84
|
+
r_compression: number | null;
|
|
85
|
+
/** Temporal clustering [0,1]. NULL for pre-v12 rows or meta-distillations. */
|
|
86
|
+
c_norm: number | null;
|
|
83
87
|
};
|
|
84
88
|
/**
|
|
85
89
|
* Load distillations for a session, oldest first.
|
|
@@ -106,6 +110,17 @@ export declare function run(input: {
|
|
|
106
110
|
};
|
|
107
111
|
/** Skip minMessages threshold check — distill whatever is pending */
|
|
108
112
|
force?: boolean;
|
|
113
|
+
/** Skip meta-distillation even when gen-0 count exceeds the threshold.
|
|
114
|
+
* Used when the upstream prompt cache is likely still warm — meta-distillation
|
|
115
|
+
* rewrites distillation row IDs, which invalidates the distilled prefix cache
|
|
116
|
+
* and causes a cache bust on the next turn. Callers should set this to true
|
|
117
|
+
* when `Date.now() - getLastTurnAt(sessionID) < cacheTTL`. */
|
|
118
|
+
skipMeta?: boolean;
|
|
119
|
+
/** When true, all LLM calls in this run are marked urgent and bypass the
|
|
120
|
+
* batch queue (if one is active). Use for compaction and overflow recovery
|
|
121
|
+
* where the caller is blocking on the result. Background/idle distillation
|
|
122
|
+
* should leave this false to benefit from batch API 50% cost savings. */
|
|
123
|
+
urgent?: boolean;
|
|
109
124
|
}): Promise<{
|
|
110
125
|
rounds: number;
|
|
111
126
|
distilled: number;
|
|
@@ -126,5 +141,19 @@ export declare function metaDistill(input: {
|
|
|
126
141
|
providerID: string;
|
|
127
142
|
modelID: string;
|
|
128
143
|
};
|
|
144
|
+
urgent?: boolean;
|
|
129
145
|
}): Promise<DistillationResult | null>;
|
|
146
|
+
/**
|
|
147
|
+
* Backfill `r_compression` and `c_norm` for distillations that were created
|
|
148
|
+
* before schema v12 (or before PR #113 added the computation).
|
|
149
|
+
*
|
|
150
|
+
* For each distillation with NULL metrics, loads source temporal messages via
|
|
151
|
+
* `source_ids`, computes `compressionRatio()` and `temporalCnorm()`, and
|
|
152
|
+
* writes the values back. Skips rows where source messages have been pruned
|
|
153
|
+
* or source_ids is empty.
|
|
154
|
+
*
|
|
155
|
+
* Designed to run once at startup — idempotent (only touches NULL rows).
|
|
156
|
+
* Returns the number of rows updated.
|
|
157
|
+
*/
|
|
158
|
+
export declare function backfillMetrics(): number;
|
|
130
159
|
//# sourceMappingURL=distillation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"distillation.d.ts","sourceRoot":"","sources":["../../src/distillation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"distillation.d.ts","sourceRoot":"","sources":["../../src/distillation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AAavC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGzC,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAE5B,KAAK,eAAe,GAAG,QAAQ,CAAC,eAAe,CAAC;AAEhD;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAC9B,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,GACnB,MAAM,CAGR;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,eAAe,EAAE,EAC3B,UAAU,EAAE,MAAM,GACjB,eAAe,EAAE,EAAE,CAGrB;AAwGD;;;;;;;;;;;;GAYG;AACH,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,GACf,MAAM,CAwBR;AAgBD;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,eAAe,EAAE,EAC3B,kBAAkB,CAAC,EAAE,MAAM,GAC1B,MAAM,CAUR;AAED,KAAK,kBAAkB,GAAG;IACxB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAwBF;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CACpC,W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W,CAAC,KAAK,EAAE;IACvC,GAAG,EAAE,SAAS,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAChD,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,GAAG,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAiGrC;AAMD;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,IAAI,MAAM,CAkDxC"}
|
package/dist/bun/embedding.d.ts
CHANGED
|
@@ -72,9 +72,23 @@ export declare function embedDistillation(id: string, observations: string): voi
|
|
|
72
72
|
* Returns true if embeddings were cleared (full re-embed needed).
|
|
73
73
|
*/
|
|
74
74
|
export declare function checkConfigChange(): boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Run all embedding backfills and log coverage stats.
|
|
77
|
+
*
|
|
78
|
+
* This is the canonical entry point that every host adapter (OpenCode, Pi,
|
|
79
|
+
* future ACP) should call once during init. It:
|
|
80
|
+
* 1. Detects config changes (provider swap) and clears stale embeddings
|
|
81
|
+
* 2. Backfills knowledge entries missing embeddings
|
|
82
|
+
* 3. Backfills non-archived distillations missing embeddings
|
|
83
|
+
* 4. Logs a one-line coverage summary to stderr (always visible, not gated)
|
|
84
|
+
*
|
|
85
|
+
* Fire-and-forget: callers should `.catch()` — embedding failures must not
|
|
86
|
+
* block plugin initialization.
|
|
87
|
+
*/
|
|
88
|
+
export declare function runStartupBackfill(): Promise<void>;
|
|
75
89
|
/**
|
|
76
90
|
* Embed all knowledge entries that are missing embeddings.
|
|
77
|
-
* Called
|
|
91
|
+
* Called by `runStartupBackfill()`.
|
|
78
92
|
* Also handles config changes: if provider/model/dimensions changed, clears
|
|
79
93
|
* stale embeddings first, then re-embeds all entries.
|
|
80
94
|
* Returns the number of entries embedded.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embedding.d.ts","sourceRoot":"","sources":["../../src/embedding.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAeH,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,UAAU,GAAG,OAAO,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;IACjF,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B;
|
|
1
|
+
{"version":3,"file":"embedding.d.ts","sourceRoot":"","sources":["../../src/embedding.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAeH,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,UAAU,GAAG,OAAO,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;IACjF,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B;AAyPD,0DAA0D;AAC1D,wBAAgB,aAAa,IAAI,IAAI,CAEpC;AAMD;;qEAEqE;AACrE,wBAAgB,WAAW,IAAI,OAAO,CAErC;AAMD;;;;;;;GAOG;AACH,wBAAsB,KAAK,CACzB,KAAK,EAAE,MAAM,EAAE,EACf,SAAS,EAAE,UAAU,GAAG,OAAO,GAC9B,OAAO,CAAC,YAAY,EAAE,CAAC,CAIzB;AAMD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,YAAY,GAAG,MAAM,CAazE;AAMD,8DAA8D;AAC9D,wBAAgB,MAAM,CAAC,GAAG,EAAE,YAAY,GAAG,MAAM,CAEhD;AAED,oEAAoE;AACpE,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,YAAY,CAGhE;AAMD,KAAK,SAAS,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpD;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,cAAc,EAAE,YAAY,EAC5B,KAAK,SAAK,GACT,SAAS,EAAE,CAcb;AAMD;;;;GAIG;AACH,wBAAgB,yBAAyB,CACvC,cAAc,EAAE,YAAY,EAC5B,KAAK,SAAK,GACT,SAAS,EAAE,CAgBb;AAMD;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,GACd,IAAI,CAWN;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,EAAE,EAAE,MAAM,EACV,YAAY,EAAE,MAAM,GACnB,IAAI,CAUN;AAkBD;;;;;;GAMG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAoC3C;AAMD;;;;;;;;;;;;GAYG;AACH,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC,CA0CxD;AAMD;;;;;;GAMG;AACH,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,MAAM,CAAC,CAuC1D;AAMD;;;;GAIG;AACH,wBAAsB,8BAA8B,IAAI,OAAO,CAAC,MAAM,CAAC,CAsCtE"}
|
package/dist/bun/gradient.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { LoreMessageWithParts } from "./types";
|
|
2
2
|
type MessageWithParts = LoreMessageWithParts;
|
|
3
|
+
type DistillationSnapshot = {
|
|
4
|
+
/** Cached distillation rows from the most recent DB read */
|
|
5
|
+
rows: Distillation[];
|
|
6
|
+
/** ID of the last user message when this snapshot was taken */
|
|
7
|
+
lastUserMsgId: string | null;
|
|
8
|
+
};
|
|
3
9
|
/**
|
|
4
10
|
* Detect cold-cache resumption and refresh byte-identity caches.
|
|
5
11
|
*
|
|
@@ -37,6 +43,13 @@ export declare function onIdleResume(sessionID: string, thresholdMs: number, now
|
|
|
37
43
|
triggered: true;
|
|
38
44
|
idleMs: number;
|
|
39
45
|
};
|
|
46
|
+
/**
|
|
47
|
+
* Return the wall-clock timestamp (epoch ms) of the most recent transform()
|
|
48
|
+
* call for this session. Returns 0 if the session has never been transformed.
|
|
49
|
+
* Used by callers (e.g. meta-distillation gating) to check whether the
|
|
50
|
+
* upstream prompt cache is likely still warm.
|
|
51
|
+
*/
|
|
52
|
+
export declare function getLastTurnAt(sessionID: string): number;
|
|
40
53
|
/**
|
|
41
54
|
* Read-and-clear the cameOutOfIdle flag. The OpenCode host's LTM degraded-
|
|
42
55
|
* recovery branch consumes this to decide whether to bypass the
|
|
@@ -57,10 +70,14 @@ export declare function setModelLimits(limits: {
|
|
|
57
70
|
export declare function setMaxLayer0Tokens(tokens: number): void;
|
|
58
71
|
/** Compute the layer-0 token cap from a per-turn cost target and cache-read price. */
|
|
59
72
|
export declare function computeLayer0Cap(targetCostPerTurn: number, cacheReadCostPerToken: number): number;
|
|
60
|
-
/** Called by the system transform hook after formatting LTM knowledge.
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
73
|
+
/** Called by the system transform hook after formatting LTM knowledge.
|
|
74
|
+
* When sessionID is provided, stores on per-session state to prevent
|
|
75
|
+
* cross-session budget contamination. Falls back to module-level global
|
|
76
|
+
* for callers without a session ID. */
|
|
77
|
+
export declare function setLtmTokens(tokens: number, sessionID?: string): void;
|
|
78
|
+
/** Returns the LTM token count for the given session, falling back to
|
|
79
|
+
* the module-level global when no session ID is provided. */
|
|
80
|
+
export declare function getLtmTokens(sessionID?: string): number;
|
|
64
81
|
/**
|
|
65
82
|
* Returns the token budget available for LTM system-prompt injection.
|
|
66
83
|
* This is the usable context (after output + overhead) multiplied by
|
|
@@ -96,7 +113,9 @@ export declare function inspectSessionState(sessionID: string): {
|
|
|
96
113
|
hasPrefixCache: boolean;
|
|
97
114
|
hasRawWindowCache: boolean;
|
|
98
115
|
cameOutOfIdle: boolean;
|
|
116
|
+
postIdleCompact: boolean;
|
|
99
117
|
lastTurnAt: number;
|
|
118
|
+
distillationSnapshot: DistillationSnapshot | null;
|
|
100
119
|
} | null;
|
|
101
120
|
/**
|
|
102
121
|
* For testing only — set the session's lastTurnAt field. Used to simulate
|
|
@@ -104,7 +123,33 @@ export declare function inspectSessionState(sessionID: string): {
|
|
|
104
123
|
* tests don't need to seed it via a transform() call.
|
|
105
124
|
*/
|
|
106
125
|
export declare function setLastTurnAtForTest(sessionID: string, ms: number): void;
|
|
126
|
+
type Distillation = {
|
|
127
|
+
id: string;
|
|
128
|
+
observations: string;
|
|
129
|
+
generation: number;
|
|
130
|
+
token_count: number;
|
|
131
|
+
created_at: number;
|
|
132
|
+
session_id: string;
|
|
133
|
+
};
|
|
107
134
|
export declare function toolStripAnnotation(toolName: string, output: string): string;
|
|
135
|
+
/** Parsed read-tool input: file path plus optional line range. */
|
|
136
|
+
type ReadRange = {
|
|
137
|
+
path: string;
|
|
138
|
+
/** 1-based start line. undefined = from beginning. */
|
|
139
|
+
offset: number | undefined;
|
|
140
|
+
/** Number of lines to read. undefined = to end. */
|
|
141
|
+
limit: number | undefined;
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* Does `later` cover the line range of `earlier`?
|
|
145
|
+
*
|
|
146
|
+
* Coverage rules:
|
|
147
|
+
* - Full-file read (no offset/limit) covers everything for the same path.
|
|
148
|
+
* - A ranged read covers another ranged read when its [offset, offset+limit)
|
|
149
|
+
* interval is a superset of (or equal to) the other's interval.
|
|
150
|
+
* - A ranged read does NOT cover a full-file read.
|
|
151
|
+
*/
|
|
152
|
+
export declare function laterReadCovers(later: ReadRange, earlier: ReadRange): boolean;
|
|
108
153
|
/**
|
|
109
154
|
* Replace duplicate tool outputs with compact back-references, keeping only
|
|
110
155
|
* the latest occurrence of each unique output. Reduces context token usage
|
|
@@ -112,7 +157,9 @@ export declare function toolStripAnnotation(toolName: string, output: string): s
|
|
|
112
157
|
*
|
|
113
158
|
* Deduplicates by:
|
|
114
159
|
* 1. Exact content hash: identical tool outputs (same file read twice, same command output)
|
|
115
|
-
* 2.
|
|
160
|
+
* 2. Range-aware file reads: read_file/read outputs for the same path where a later
|
|
161
|
+
* read covers the same or wider line range (full-file covers everything; a ranged
|
|
162
|
+
* read only covers another ranged read when its interval is a superset).
|
|
116
163
|
*
|
|
117
164
|
* The current turn (from currentTurnIdx onward) is never touched — the model
|
|
118
165
|
* needs full context for its active work. Tool parts are never removed entirely;
|
|
@@ -122,6 +169,7 @@ export declare function toolStripAnnotation(toolName: string, output: string): s
|
|
|
122
169
|
*/
|
|
123
170
|
export declare function deduplicateToolOutputs(messages: MessageWithParts[], currentTurnIdx: number): MessageWithParts[];
|
|
124
171
|
export declare function resetPrefixCache(sessionID?: string): void;
|
|
172
|
+
export declare function resetDistillationSnapshot(sessionID?: string): void;
|
|
125
173
|
export declare function resetRawWindowCache(sessionID?: string): void;
|
|
126
174
|
export type SafetyLayer = 0 | 1 | 2 | 3 | 4;
|
|
127
175
|
export type TransformResult = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gradient.d.ts","sourceRoot":"","sources":["../../src/gradient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAyB,oBAAoB,EAAqE,MAAM,SAAS,CAAC;AAQ9I,KAAK,gBAAgB,GAAG,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"gradient.d.ts","sourceRoot":"","sources":["../../src/gradient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAyB,oBAAoB,EAAqE,MAAM,SAAS,CAAC;AAQ9I,KAAK,gBAAgB,GAAG,oBAAoB,CAAC;AAkE7C,KAAK,oBAAoB,GAAG;IAC1B,4DAA4D;IAC5D,IAAI,EAAE,YAAY,EAAE,CAAC;IACrB,+DAA+D;IAC/D,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B,CAAC;AAoHF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,YAAY,CAC1B,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,EACnB,GAAG,GAAE,MAAmB,GACvB;IAAE,SAAS,EA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Ac,EAAE,MAAM,GACrB,gBAAgB,EAAE,CA+FpB;AAmQD,wBAAgB,gBAAgB,CAAC,SAAS,CAAC,EAAE,MAAM,QAOlD;AAGD,wBAAgB,yBAAyB,CAAC,SAAS,CAAC,EAAE,MAAM,QAO3D;AAgCD,wBAAgB,mBAAmB,CAAC,SAAS,CAAC,EAAE,MAAM,QAOrD;AAuHD,MAAM,MAAM,WAAW,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,KAAK,EAAE,WAAW,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IAEpB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAIF,wBAAgB,uBAAuB,IAAI,OAAO,CAIjD;AAkUD,wBAAgB,SAAS,CAAC,KAAK,EAAE;IAC/B,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,eAAe,CAgFlB;AAGD,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,gBAAgB,EAAE,GAAG,MAAM,CAErE"}
|
package/dist/bun/index.d.ts
CHANGED
|
@@ -4,18 +4,18 @@ export * as distillation from "./distillation";
|
|
|
4
4
|
export * as curator from "./curator";
|
|
5
5
|
export * as embedding from "./embedding";
|
|
6
6
|
export * as latReader from "./lat-reader";
|
|
7
|
+
export * as patternExtract from "./pattern-extract";
|
|
7
8
|
export * as log from "./log";
|
|
8
9
|
export { runRecall, RECALL_TOOL_DESCRIPTION, RECALL_PARAM_DESCRIPTIONS, type RecallInput, type RecallResult, type RecallScope, type ScoredDistillation, } from "./recall";
|
|
9
10
|
export type { LoreMessage, LoreUserMessage, LoreAssistantMessage, LorePart, LoreTextPart, LoreReasoningPart, LoreToolPart, LoreGenericPart, LoreToolState, LoreToolStatePending, LoreToolStateRunning, LoreToolStateCompleted, LoreToolStateError, LoreMessageWithParts, LLMClient, } from "./types";
|
|
10
11
|
export { isTextPart, isReasoningPart, isToolPart } from "./types";
|
|
11
12
|
export { load, config, type LoreConfig } from "./config";
|
|
12
13
|
export { db, ensureProject, isFirstRun, projectId, projectName, loadForceMinLayer, saveForceMinLayer, close, } from "./db";
|
|
13
|
-
export { transform, setModelLimits, setMaxLayer0Tokens, computeLayer0Cap, needsUrgentDistillation, calibrate, setLtmTokens, getLtmTokens, getLtmBudget, setForceMinLayer, getLastTransformedCount, getLastTransformEstimate, toolStripAnnotation, onIdleResume, consumeCameOutOfIdle, setLastTurnAtForTest, inspectSessionState, } from "./gradient";
|
|
14
|
+
export { transform, setModelLimits, setMaxLayer0Tokens, computeLayer0Cap, needsUrgentDistillation, calibrate, setLtmTokens, getLtmTokens, getLtmBudget, setForceMinLayer, getLastTransformedCount, getLastTransformEstimate, toolStripAnnotation, onIdleResume, getLastTurnAt, consumeCameOutOfIdle, setLastTurnAtForTest, inspectSessionState, } from "./gradient";
|
|
14
15
|
export { formatKnowledge, formatDistillations, DISTILLATION_SYSTEM, distillationUser, RECURSIVE_SYSTEM, recursiveUser, CURATOR_SYSTEM, curatorUser, CONSOLIDATION_SYSTEM, consolidationUser, QUERY_EXPANSION_SYSTEM, COMPACT_SUMMARY_TEMPLATE, buildCompactPrompt, } from "./prompt";
|
|
15
|
-
export { shouldImport, importFromFile, exportToFile } from "./agents-file";
|
|
16
|
+
export { shouldImport, importFromFile, exportToFile, exportLoreFile, importLoreFile, shouldImportLoreFile, loreFileExists, LORE_FILE, } from "./agents-file";
|
|
16
17
|
export { workerSessionIDs, isWorkerSession } from "./worker";
|
|
17
18
|
export * as workerModel from "./worker-model";
|
|
18
|
-
export {
|
|
19
|
-
export { ftsQuery, ftsQueryOr, EMPTY_QUERY, reciprocalRankFusion, expandQuery, extractTopTerms, } from "./search";
|
|
19
|
+
export { ftsQuery, ftsQueryOr, EMPTY_QUERY, reciprocalRankFusion, expandQuery, extractTopTerms, exactTermMatchRank, } from "./search";
|
|
20
20
|
export { serialize, inline, h, p, ul, lip, liph, t, root, strong, normalize, sanitizeSurrogates, unescapeMarkdown, } from "./markdown";
|
|
21
21
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/bun/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC;AAC7B,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC;AAE7B,OAAO,EACL,SAAS,EACT,uBAAuB,EACvB,yBAAyB,EACzB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,kBAAkB,GACxB,MAAM,UAAU,CAAC;AAElB,YAAY,EACV,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,QAAQ,EACR,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,GACV,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAElE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,EACL,EAAE,EACF,aAAa,EACb,UAAU,EACV,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,KAAK,GACN,MAAM,MAAM,CAAC;AACd,OAAO,EACL,SAAS,EACT,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,uBAAuB,EACvB,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,uBAAuB,EACvB,wBAAwB,EACxB,mBAAmB,EACnB,YAAY,EACZ,oBAAoB,EAGpB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,WAAW,EACX,oBAAoB,EACpB,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,UAAU,CAAC;AAClB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC;AAC7B,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,cAAc,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC;AAE7B,OAAO,EACL,SAAS,EACT,uBAAuB,EACvB,yBAAyB,EACzB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,kBAAkB,GACxB,MAAM,UAAU,CAAC;AAElB,YAAY,EACV,WAAW,EACX,eAAe,EACf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