acp-kernel 0.0.82-pr.357.224 → 0.0.82-pr.359.223
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 +32 -2
- package/dist/{chunk-DEUCMZ7S.js → chunk-5TQA7ZQM.js} +2 -11
- package/dist/chunk-5TQA7ZQM.js.map +1 -0
- package/dist/compress-tools.d.ts +0 -51
- package/dist/compress-tools.d.ts.map +1 -1
- package/dist/compress.d.ts.map +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/crush.d.ts +142 -0
- package/dist/crush.d.ts.map +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1327 -361
- package/dist/index.js.map +1 -1
- package/dist/persist/index.js +2 -4
- package/dist/persist/index.js.map +1 -1
- package/dist/persist/state-merge.d.ts.map +1 -1
- package/dist/state.d.ts.map +1 -1
- package/dist/types.d.ts +15 -41
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-DEUCMZ7S.js.map +0 -1
- package/dist/image-compress.d.ts +0 -156
- package/dist/image-compress.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -37,8 +37,9 @@ const state = createInitialState();
|
|
|
37
37
|
const config = defaultConfig(200000); // modelContextLimit (positional); optional overrides as 2nd arg
|
|
38
38
|
|
|
39
39
|
// processTurn runs the canonical node pipeline every turn:
|
|
40
|
-
// assign-refs → sync-blocks →
|
|
41
|
-
// hide-compress-calls →
|
|
40
|
+
// assign-refs → sync-blocks → prune → absorb-hide → crush → absorb-prompt
|
|
41
|
+
// → filter → hide-compress-calls → recommend → nudge-inject
|
|
42
|
+
// → emergency-truncate → render-refs
|
|
42
43
|
const { messages, state: nextState, nudge } = core.processTurn({
|
|
43
44
|
messages, state, config, tokenCount,
|
|
44
45
|
});
|
|
@@ -162,6 +163,35 @@ The nudge system tells the model *when* to compress. It implements:
|
|
|
162
163
|
- **Compressible-range computation**: reports the actual compressible ranges (excluding covered + preserved-recent messages) so the model knows what to target.
|
|
163
164
|
- **Baseline reset on compress**: `applyCompression` clears the growth baseline on success, preventing the feedback-loop bug where the nudge re-fires post-compress.
|
|
164
165
|
|
|
166
|
+
### Tool-result crush gate
|
|
167
|
+
|
|
168
|
+
Deterministic first tier of the two-tier absorb gate. When a tool result qualifies as an absorb candidate and context pressure is on, the `crush` node (between `absorb-hide` and `absorb-prompt`) re-evaluates it **in view** with pure, deterministic strategies before the absorb-prompt decision runs:
|
|
169
|
+
|
|
170
|
+
- **skip** — below `absorb.minToolTokens` or under `absorb.contextThresholdPct`; bytes untouched.
|
|
171
|
+
- **crushed** — deterministic compression brought it under `minToolTokens`; no model round-trip. The wire carries the crushed payload (e.g. `__acp_crush` rows/identical-run envelopes for JSON, decodable byte-for-byte).
|
|
172
|
+
- **distill** — still over (or uncrushable); forwarded to the `[ACP absorb]` prompt path, carrying the crushed payload when crushing succeeded.
|
|
173
|
+
|
|
174
|
+
Built-in strategies form an ordered plugin registry (hosts can add/replace/disable via `registerCrushPlugin` / config):
|
|
175
|
+
|
|
176
|
+
| Strategy | Kind | Lossy | What it does |
|
|
177
|
+
|----------|------|-------|--------------|
|
|
178
|
+
| `json-fold` | json | no | constant-field hoisting + identical row/run collapse into annotated envelopes |
|
|
179
|
+
| `code-trim` | code | yes | comment/docstring elision behind a string-literal-aware scanner; template literals and assigned triple-quoted strings survive verbatim; unterminated constructs fail open |
|
|
180
|
+
| `log-select` | log | yes | level-classified line selection; **every distinct ERROR/FAIL line survives verbatim** (kernel-enforced invariant — output dropping one is rejected); warnings deduped, stack frames collapsed, honest `[N lines omitted]` footer |
|
|
181
|
+
|
|
182
|
+
Kernel-enforced guarantees: dispatch guards keep each payload kind on its own strategies; plugins must be pure and deterministic (same payload + config ⇒ same bytes, prefix-cache friendly); any throw, sub-`minReduction` result, or invariant violation fails open to the next candidate or pass-through. **Default off** (`crush.enabled: false`) and requires `absorb.enabled: true`; when disabled the pipeline is byte-identical to pre-crush behavior.
|
|
183
|
+
|
|
184
|
+
```json
|
|
185
|
+
"crush": {
|
|
186
|
+
"enabled": false,
|
|
187
|
+
"minReduction": 0.1,
|
|
188
|
+
"strategies": {
|
|
189
|
+
"json-fold": { "enabled": false },
|
|
190
|
+
"code-trim": { "excludeTools": ["bash"] }
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
```
|
|
194
|
+
|
|
165
195
|
## Wire codec (`acp-kernel/wire`)
|
|
166
196
|
|
|
167
197
|
The `acp-kernel/wire` subpath ships the provider wire-body codecs (lossless
|
|
@@ -11,19 +11,10 @@ function createInitialState() {
|
|
|
11
11
|
anchors: {},
|
|
12
12
|
lastShownByTier: {}
|
|
13
13
|
},
|
|
14
|
-
stats: {
|
|
15
|
-
tokensCompressed: 0,
|
|
16
|
-
compressionCount: 0,
|
|
17
|
-
absorbedTokens: 0,
|
|
18
|
-
imagesShrunk: 0,
|
|
19
|
-
imageBytesSaved: 0,
|
|
20
|
-
imageTokensSaved: 0
|
|
21
|
-
},
|
|
14
|
+
stats: { tokensCompressed: 0, compressionCount: 0, absorbedTokens: 0 },
|
|
22
15
|
absorbed: [],
|
|
23
16
|
rules: [],
|
|
24
17
|
nextRuleId: 1,
|
|
25
|
-
imageFullRestored: [],
|
|
26
|
-
imageShrinks: [],
|
|
27
18
|
nextBlockId: 1,
|
|
28
19
|
nextRunId: 1
|
|
29
20
|
};
|
|
@@ -79,4 +70,4 @@ export {
|
|
|
79
70
|
highestActiveTier,
|
|
80
71
|
advanceSurvival
|
|
81
72
|
};
|
|
82
|
-
//# sourceMappingURL=chunk-
|
|
73
|
+
//# sourceMappingURL=chunk-5TQA7ZQM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/state.ts"],"sourcesContent":["import type { CompressionBlock, CompressionState } from \"./types.js\";\n\nexport function createInitialState(): CompressionState {\n return {\n blocks: [],\n messageRefs: { byRaw: {}, byRef: {} },\n tokenSnapshot: {},\n nudge: {\n lastPerMessageNudgeTokens: 0,\n lastNudgeShownTokens: 0,\n baselineTokens: 0,\n anchors: {},\n lastShownByTier: {},\n },\n stats: { tokensCompressed: 0, compressionCount: 0, absorbedTokens: 0 },\n absorbed: [],\n rules: [],\n nextRuleId: 1,\n nextBlockId: 1,\n nextRunId: 1,\n };\n}\n\nexport function allocateBlockId(state: CompressionState): string {\n const id = state.nextBlockId;\n state.nextBlockId = Math.max(1, id) + 1;\n return `b${id}`;\n}\n\nexport function allocateRunId(state: CompressionState): string {\n const id = state.nextRunId;\n state.nextRunId = Math.max(1, id) + 1;\n return `r${id}`;\n}\n\nexport function blockById(\n state: CompressionState,\n blockId: string,\n): CompressionBlock | undefined {\n return state.blocks.find((block) => block.blockId === blockId);\n}\n\nexport function activeBlocks(state: CompressionState): CompressionBlock[] {\n return state.blocks.filter((block) => block.active);\n}\n\nexport function coveredMessageIds(state: CompressionState): Set<string> {\n const covered = new Set<string>();\n for (const block of state.blocks) {\n if (!block.active) continue;\n for (const id of block.effectiveMessageIds) covered.add(id);\n }\n return covered;\n}\n\nexport function highestActiveTier(state: CompressionState): 0 | 1 | 2 | 3 {\n let highest: 0 | 1 | 2 | 3 = 0;\n for (const block of state.blocks) {\n if (block.active && block.tier > highest) highest = block.tier;\n }\n return highest;\n}\n\nexport function advanceSurvival(\n state: CompressionState,\n promotionThreshold: number,\n): void {\n for (const block of state.blocks) {\n if (!block.active) continue;\n block.survivedCount += 1;\n if (block.survivedCount >= promotionThreshold) {\n block.generation = \"old\";\n }\n }\n}\n"],"mappings":";AAEO,SAAS,qBAAuC;AACrD,SAAO;AAAA,IACL,QAAQ,CAAC;AAAA,IACT,aAAa,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,EAAE;AAAA,IACpC,eAAe,CAAC;AAAA,IAChB,OAAO;AAAA,MACL,2BAA2B;AAAA,MAC3B,sBAAsB;AAAA,MACtB,gBAAgB;AAAA,MAChB,SAAS,CAAC;AAAA,MACV,iBAAiB,CAAC;AAAA,IACpB;AA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@ export declare const SEARCH_CONTEXT_TOOL_NAME = "search_context";
|
|
|
16
16
|
export declare const ACP_STATUS_TOOL_NAME = "acp_status";
|
|
17
17
|
export declare const ACP_CACHE_TOOL_NAME = "acp_cache";
|
|
18
18
|
export declare const ABSORB_TOOL_NAME = "absorb";
|
|
19
|
-
export declare const IMAGE_FULL_TOOL_NAME = "image_full";
|
|
20
19
|
/** Text-protocol trigger tags. The model emits these in its text output to
|
|
21
20
|
* request compression (used when host client tools cannot coexist with a
|
|
22
21
|
* declared `tools` field — e.g. OpenAI Codex code_mode). Distinct from the
|
|
@@ -1047,54 +1046,4 @@ export declare const ABSORB_TOOL_GOOGLE: {
|
|
|
1047
1046
|
required: string[];
|
|
1048
1047
|
};
|
|
1049
1048
|
};
|
|
1050
|
-
/** Opt-in image_full tool (restore original-resolution images for a previously
|
|
1051
|
-
* downscaled message). Inject/register only when
|
|
1052
|
-
* config.imageCompression.enabled — NOT part of ACP_TOOLS_* arrays. */
|
|
1053
|
-
export declare const IMAGE_FULL_TOOL_DESCRIPTION = "Restore original-resolution images for a previously downscaled message. Call when you cannot read details (text, colors, alignment) in a reduced image: pass the message ref (\"mNNNNN\") from the [Downscaled screenshots] note. Full resolution applies for the rest of this session.";
|
|
1054
|
-
export declare const IMAGE_FULL_TOOL: {
|
|
1055
|
-
name: string;
|
|
1056
|
-
description: string;
|
|
1057
|
-
input_schema: {
|
|
1058
|
-
type: "object";
|
|
1059
|
-
properties: {
|
|
1060
|
-
ref: {
|
|
1061
|
-
type: string;
|
|
1062
|
-
description: string;
|
|
1063
|
-
};
|
|
1064
|
-
};
|
|
1065
|
-
required: string[];
|
|
1066
|
-
};
|
|
1067
|
-
};
|
|
1068
|
-
export declare const IMAGE_FULL_TOOL_OPENAI: {
|
|
1069
|
-
type: "function";
|
|
1070
|
-
function: {
|
|
1071
|
-
name: string;
|
|
1072
|
-
description: string;
|
|
1073
|
-
parameters: {
|
|
1074
|
-
type: "object";
|
|
1075
|
-
properties: {
|
|
1076
|
-
ref: {
|
|
1077
|
-
type: string;
|
|
1078
|
-
description: string;
|
|
1079
|
-
};
|
|
1080
|
-
};
|
|
1081
|
-
required: string[];
|
|
1082
|
-
};
|
|
1083
|
-
};
|
|
1084
|
-
};
|
|
1085
|
-
export declare const IMAGE_FULL_TOOL_RESPONSES: {
|
|
1086
|
-
type: "function";
|
|
1087
|
-
name: string;
|
|
1088
|
-
description: string;
|
|
1089
|
-
parameters: {
|
|
1090
|
-
type: "object";
|
|
1091
|
-
properties: {
|
|
1092
|
-
ref: {
|
|
1093
|
-
type: string;
|
|
1094
|
-
description: string;
|
|
1095
|
-
};
|
|
1096
|
-
};
|
|
1097
|
-
required: string[];
|
|
1098
|
-
};
|
|
1099
|
-
};
|
|
1100
1049
|
//# sourceMappingURL=compress-tools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compress-tools.d.ts","sourceRoot":"","sources":["../src/compress-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAkB,KAAK,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5D,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,kBAAkB,aAAa,CAAC;AAC7C,eAAO,MAAM,oBAAoB,eAAe,CAAC;AACjD,eAAO,MAAM,wBAAwB,mBAAmB,CAAC;AACzD,eAAO,MAAM,oBAAoB,eAAe,CAAC;AACjD,eAAO,MAAM,mBAAmB,cAAc,CAAC;AAC/C,eAAO,MAAM,gBAAgB,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"compress-tools.d.ts","sourceRoot":"","sources":["../src/compress-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAkB,KAAK,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5D,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,kBAAkB,aAAa,C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;;;;;;;;;;;;;;;;;;;;;;;;;EAKnB,CAAC;AAEX,wEAAwE;AACxE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;CAI9B,CAAC"}
|
package/dist/compress.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compress.d.ts","sourceRoot":"","sources":["../src/compress.ts"],"names":[],"mappings":"AAIA,OAAO,EAAkC,kBAAkB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"compress.d.ts","sourceRoot":"","sources":["../src/compress.ts"],"names":[],"mappings":"AAIA,OAAO,EAAkC,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAiBhF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAcvD,OAAO,EAGL,KAAK,YAAY,EAGlB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EACV,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAEhB,MAAM,EAEN,WAAW,EAGX,iBAAiB,EAEjB,YAAY,EACb,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,KAAK;IACpB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;CACxC;AAED,MAAM,WAAW,eAAe;IAC9B,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,iBAAiB,CAAC;IACxD,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,sBAAsB,CAAC;IACvE,YAAY,IAAI,YAAY,EAAE,CAAC;IAC/B,UAAU,CACR,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,gBAAgB,GACtB,gBAAgB,GAAG,SAAS,CAAC;IAChC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,CAAC;IACnE,MAAM,CACJ,KAAK,EAAE,gBAAgB,EACvB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,GACb,YAAY,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,KAAK,EAAE,gBAAgB,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;;;;;;;OAWG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC;CAC7B;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE;QACN,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,EAAE,CAAC;IACJ,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,KAAK,EAAE,gBAAgB,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,mBAAmB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CACnC;AA2GD,wBAAgB,UAAU,CAAC,KAAK,GAAE,KAAU,GAAG,eAAe,CAiV7D;AA8nCD,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEzC,wBAAgB,aAAa,CAC3B,iBAAiB,EAAE,MAAM,EACzB,SAAS,GAAE,OAAO,CAAC,MAAM,CAAM,GAC9B,MAAM,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEzC,wBAAgB,aAAa,CAC3B,iBAAiB,EAAE,MAAM,EACzB,SAAS,GAAE,OAAO,CAAC,MAAM,CAAM,GAC9B,MAAM,CAqDR;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CA0GvD"}
|
package/dist/crush.d.ts
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tool-result valuator + deterministic compression ("crush") channel (#354):
|
|
3
|
+
* the two-tier absorb gate owned by the kernel. Tier 1: mechanical size
|
|
4
|
+
* reduction of eligible oversized tool results via registered crush plugins;
|
|
5
|
+
* tier 2: model distillation (the existing `[ACP absorb]` prompt path) only
|
|
6
|
+
* when a result is still over threshold after crushing. Pure function of
|
|
7
|
+
* (payload, config) — identical bytes on every turn a result is re-sent
|
|
8
|
+
* (prefix-cache stable); view-only like the absorb prompt, no kernel state
|
|
9
|
+
* is mutated.
|
|
10
|
+
*
|
|
11
|
+
* Plugin contract (CrushPluginDef.run): pure & deterministic, input never
|
|
12
|
+
* mutated, fail-open on any anomaly, sub-minimum-size inputs untouched. The
|
|
13
|
+
* kernel enforces what plugins must not each own: dispatch guards (JSON /
|
|
14
|
+
* source / log payloads never reach a strategy for another kind), the
|
|
15
|
+
* minReduction floor, and — for lossy log output — that every ERROR/FAIL line
|
|
16
|
+
* of the input survives in the output verbatim, else the result is rejected
|
|
17
|
+
* and the payload passes through unchanged.
|
|
18
|
+
*
|
|
19
|
+
* Default strategies (dispatched by content sniffing):
|
|
20
|
+
* - json-fold: field-variance folding (concept adapted from headroom
|
|
21
|
+
* SmartCrusher, headroomlabs-ai/headroom, Apache-2.0; implementation
|
|
22
|
+
* original TS). LOSSLESS BY CONSTRUCTION. Annotation vocabulary (reserved
|
|
23
|
+
* key `__acp_crush`):
|
|
24
|
+
* {"__acp_crush":"rows","rows":N,"const":{k:v,...},"items":[...]}
|
|
25
|
+
* array of N rows; every row = `const` merged with its `items` entry
|
|
26
|
+
* (same order); `items` omitted iff no row has a non-constant field.
|
|
27
|
+
* {"__acp_crush":"identical-run","count":N,"item":X}
|
|
28
|
+
* N consecutive identical elements X.
|
|
29
|
+
* Payloads legitimately containing a `__acp_crush` key cannot be told apart
|
|
30
|
+
* from crushed output — disable crush for them.
|
|
31
|
+
* - code-trim: structural trimmer (Python, JavaScript/TypeScript; sound for
|
|
32
|
+
* other // -comment languages). LOSSY: full-line comments, docstrings and
|
|
33
|
+
* blank-line runs are elided into one marker line (`# [acp-crush: elided N
|
|
34
|
+
* lines]` / `// [acp-crush: elided N lines]`) and NOT retained. Code lines,
|
|
35
|
+
* string literals and trailing comments stay byte-exact. A stronger AST
|
|
36
|
+
* implementation can register under kinds ["code"] to replace it.
|
|
37
|
+
* - log-select: build/test log condenser (ported from headroom LogCompressor,
|
|
38
|
+
* Apache-2.0): classifies every line (level / summary / stack-trace
|
|
39
|
+
* membership), keeps errors+fails first (within a keep budget; the kernel
|
|
40
|
+
* invariant above rejects any lossy result that drops an error line),
|
|
41
|
+
* deduped warnings, bounded stack traces (runtime frames collapsed to a
|
|
42
|
+
* marker), summary lines and ±3 context, caps the rest by score. LOSSY:
|
|
43
|
+
* noise lines are dropped, not retained. Upstream deviations: no CCR store
|
|
44
|
+
* — the omission footer carries honest counts instead of a retrieve hash;
|
|
45
|
+
* the keep budget is the fixed 100-line cap instead of headroom's adaptive
|
|
46
|
+
* Kneedle sizing (the cap only bounds output; the absorb gate and model
|
|
47
|
+
* compression already bound cost downstream). Only attempted when the
|
|
48
|
+
* payload is neither JSON-shaped nor confidently detected source code.
|
|
49
|
+
*
|
|
50
|
+
* Fail-open: parse errors, scanner bails (unterminated string/comment/
|
|
51
|
+
* template), low-confidence language detection, plugin exceptions, or
|
|
52
|
+
* reduction below the configured minimum leave the payload byte-identical.
|
|
53
|
+
* Query-aware relevance selection (headroom layer b) is deliberately not
|
|
54
|
+
* ported: hosts re-send tool results every turn, so the crush must stay
|
|
55
|
+
* query-independent or provider prefix caches churn.
|
|
56
|
+
*/
|
|
57
|
+
import { type TokenCountFn } from "./tokenize.js";
|
|
58
|
+
import type { AbsorbConfig, Config, CoreMessage, CrushConfig } from "./types.js";
|
|
59
|
+
export declare const DEFAULT_CRUSH_CONFIG: CrushConfig;
|
|
60
|
+
export type CrushKind = "json" | "code" | "log";
|
|
61
|
+
/** Caller context handed to every plugin run (tool identity etc.). */
|
|
62
|
+
export interface CrushMeta {
|
|
63
|
+
toolName?: string;
|
|
64
|
+
}
|
|
65
|
+
export interface CrushOutput {
|
|
66
|
+
text: string;
|
|
67
|
+
strategy: string;
|
|
68
|
+
lossy: boolean;
|
|
69
|
+
stats?: Record<string, unknown>;
|
|
70
|
+
}
|
|
71
|
+
/** Narrow synchronous compression contract. `null` = pass-through. */
|
|
72
|
+
export interface CrushPluginDef {
|
|
73
|
+
readonly id: string;
|
|
74
|
+
/** Content kinds this plugin may be dispatched on; the kernel refuses others. */
|
|
75
|
+
readonly kinds: readonly CrushKind[];
|
|
76
|
+
run(text: string, meta: CrushMeta): Omit<CrushOutput, "strategy"> | null;
|
|
77
|
+
}
|
|
78
|
+
export interface CrushOptions {
|
|
79
|
+
minReduction?: number;
|
|
80
|
+
countTokens?: TokenCountFn;
|
|
81
|
+
meta?: CrushMeta;
|
|
82
|
+
/** Plugins to try, in order. Default: all registered, registry order. */
|
|
83
|
+
plugins?: readonly CrushPluginDef[];
|
|
84
|
+
}
|
|
85
|
+
export type CrushDecisionKind = "skip" | "crushed" | "distill";
|
|
86
|
+
/** Valuator decision for one tool-result payload. */
|
|
87
|
+
export interface CrushEvaluation {
|
|
88
|
+
kind: CrushDecisionKind;
|
|
89
|
+
/** Final text: original for skip, crushed otherwise. */
|
|
90
|
+
text: string;
|
|
91
|
+
rawTokens: number;
|
|
92
|
+
newTokens?: number;
|
|
93
|
+
reduction?: number;
|
|
94
|
+
strategy?: string;
|
|
95
|
+
lossy?: boolean;
|
|
96
|
+
}
|
|
97
|
+
export declare function classifyCrushText(text: string): CrushKind;
|
|
98
|
+
/** Single-call entry shared by the arrival path (processTurn crush node) and
|
|
99
|
+
* the future retrieve path (#1097): classify, dispatch in order to the first
|
|
100
|
+
* kind-matched plugin that produces an accepted result. `null` = pass-through. */
|
|
101
|
+
export declare function crushText(text: string, options?: CrushOptions): CrushOutput | null;
|
|
102
|
+
export declare function crushJson(text: string): string | null;
|
|
103
|
+
export declare function crushCode(text: string): string | null;
|
|
104
|
+
export declare function crushLog(text: string): string | null;
|
|
105
|
+
export declare const jsonFoldPlugin: CrushPluginDef;
|
|
106
|
+
export declare const codeTrimPlugin: CrushPluginDef;
|
|
107
|
+
export declare const logSelectPlugin: CrushPluginDef;
|
|
108
|
+
export declare function registerCrushPlugin(def: CrushPluginDef): void;
|
|
109
|
+
export declare function unregisterCrushPlugin(id: string): void;
|
|
110
|
+
export declare function listCrushPlugins(): Array<Pick<CrushPluginDef, "id" | "kinds">>;
|
|
111
|
+
/** Test support: restore the built-in set exactly, in built-in order. */
|
|
112
|
+
export declare function resetCrushPlugins(): void;
|
|
113
|
+
export declare function resolveCrushConfig(config: Config): CrushConfig;
|
|
114
|
+
export interface EvaluateCrushInput {
|
|
115
|
+
text: string;
|
|
116
|
+
absorb: AbsorbConfig;
|
|
117
|
+
crush: CrushConfig;
|
|
118
|
+
/** Current context token count (context-pressure signal). */
|
|
119
|
+
tokenCount: number;
|
|
120
|
+
modelContextLimit: number;
|
|
121
|
+
meta?: CrushMeta;
|
|
122
|
+
countTokens?: TokenCountFn;
|
|
123
|
+
}
|
|
124
|
+
/** Two-tier gate decision for one tool-result payload. Pure: same input ⇒
|
|
125
|
+
* same bytes. `skip` = under the absorb gates; `crushed` = deterministic
|
|
126
|
+
* compression brought it under minToolTokens (no model round-trip);
|
|
127
|
+
* `distill` = still over (or uncrushable) — hand `text` to the absorb prompt
|
|
128
|
+
* path; when crushing succeeded `text` is the crushed payload. */
|
|
129
|
+
export declare function evaluateToolResult(input: EvaluateCrushInput): CrushEvaluation;
|
|
130
|
+
export interface ApplyCrushResult {
|
|
131
|
+
messages: CoreMessage[];
|
|
132
|
+
/** Results crushed below minToolTokens (no model round-trip). */
|
|
133
|
+
crushedCount: number;
|
|
134
|
+
/** Results forwarded to the absorb prompt path with crushed text. */
|
|
135
|
+
distilledCount: number;
|
|
136
|
+
}
|
|
137
|
+
/** Pipeline-facing application: view-only, deterministic per turn. Runs
|
|
138
|
+
* between absorb-hide and absorb-prompt so the prompt node re-decides on
|
|
139
|
+
* post-crush sizes in the same turn (atomic two-tier gate). Returns the
|
|
140
|
+
* input array unchanged when nothing qualifies. */
|
|
141
|
+
export declare function applyCrushToMessages(messages: CoreMessage[], config: Config, tokenCount: number, countTokens: TokenCountFn): ApplyCrushResult;
|
|
142
|
+
//# sourceMappingURL=crush.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crush.d.ts","sourceRoot":"","sources":["../src/crush.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AAQH,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,KAAK,EACV,YAAY,EACZ,MAAM,EACN,WAAW,EACX,WAAW,EACZ,MAAM,YAAY,CAAC;AAEpB,eAAO,MAAM,oBAAoB,EAAE,WAGlC,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC;AAEhD,sEAAsE;AACtE,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC;AAED,sEAAsE;AACtE,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,iFAAiF;IACjF,QAAQ,CAAC,KAAK,EAA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eAAO,MAAM,eAAe,EAAE,cAO7B,CAAC;AAUF,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,IAAI,CAE7D;AAED,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAEtD;AAED,wBAAgB,gBAAgB,IAAI,KAAK,CACvC,IAAI,CAAC,cAAc,EAAE,IAAI,GAAG,OAAO,CAAC,CACrC,CAKA;AAED,yEAAyE;AACzE,wBAAgB,iBAAiB,IAAI,IAAI,CAGxC;AAMD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,CAE9D;AAmBD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,YAAY,CAAC;IACrB,KAAK,EAAE,WAAW,CAAC;IACnB,6DAA6D;IAC7D,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,YAAY,CAAC;CAC5B;AAED;;;;mEAImE;AACnE,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,kBAAkB,GAAG,eAAe,CAgC7E;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,iEAAiE;IACjE,YAAY,EAAE,MAAM,CAAC;IACrB,qEAAqE;IACrE,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;oDAGoD;AACpD,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,WAAW,EAAE,EACvB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,YAAY,GACxB,gBAAgB,CAqClB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -32,13 +32,13 @@ export { renderHandoff, renderMessage, matchSession } from "./handoff.js";
|
|
|
32
32
|
export type { HandoffInput, HandoffMeta, HandoffBlockFull } from "./handoff.js";
|
|
33
33
|
export { hideConsumedCompressCalls } from "./hide-consumed.js";
|
|
34
34
|
export type { HideConsumedResult } from "./hide-consumed.js";
|
|
35
|
-
export { ABSORB_TOOL_NAME, ABSORB_TOOL, ABSORB_TOOL_OPENAI,
|
|
35
|
+
export { ABSORB_TOOL_NAME, ABSORB_TOOL, ABSORB_TOOL_OPENAI, } from "./compress-tools.js";
|
|
36
36
|
export { ABSORB_PROMPT_MARKER, DEFAULT_ABSORB_CONFIG, resolveAbsorbConfig, buildAbsorbPrompt, buildAbsorbSystemPrompt, isAbsorbCandidate, hideAbsorbedMessages, appendAbsorbPrompts, parseAbsorbInput, applyAbsorb, } from "./absorb.js";
|
|
37
37
|
export type { AbsorbInput, AbsorbOutcome, ParsedAbsorb, AppendAbsorbPromptsResult, } from "./absorb.js";
|
|
38
38
|
export { RULE_TOOL_NAME, DEFAULT_RULE_LIMITS, RULES_USAGE_PROMPT, listRules, allocateRuleId, resolveRuleLimits, addRule, removeRule, clearRules, formatRulesForPrompt, formatRulesList, } from "./rules.js";
|
|
39
39
|
export type { RuleLimits, AddRuleResult, RemoveRuleResult, ClearRulesResult, } from "./rules.js";
|
|
40
|
-
export {
|
|
41
|
-
export type {
|
|
40
|
+
export { DEFAULT_CRUSH_CONFIG, classifyCrushText, crushText, evaluateToolResult, applyCrushToMessages, resolveCrushConfig, registerCrushPlugin, unregisterCrushPlugin, listCrushPlugins, resetCrushPlugins, jsonFoldPlugin, codeTrimPlugin, logSelectPlugin, } from "./crush.js";
|
|
41
|
+
export type { CrushKind, CrushMeta, CrushOutput, CrushOptions, CrushPluginDef, CrushDecisionKind, CrushEvaluation, EvaluateCrushInput, ApplyCrushResult, } from "./crush.js";
|
|
42
42
|
export { rebuildCompressionState } from "./rebuild.js";
|
|
43
43
|
export type { RebuildResult, RebuildPorts } from "./rebuild.js";
|
|
44
44
|
export { parseCompressArgs } from "./parse-compress-input.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,YAAY,EACV,KAAK,EACL,eAAe,EACf,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,GAChB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC5D,cAAc,qBAAqB,CAAC;AACpC,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,UAAU,EACV,SAAS,EACT,SAAS,EACT,WAAW,GACZ,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,KAAK,EACL,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAChE,YAAY,EACV,UAAU,EACV,aAAa,EACb,mBAAmB,GACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,oBA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