dsh-context-compression-improved 0.2.4 → 0.2.5
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/.gitattributes +2 -1
- package/.githooks/pre-push +37 -0
- package/.github/workflows/ci.yml +8 -8
- package/CHANGELOG.ja.md +169 -39
- package/CHANGELOG.ko.md +167 -39
- package/CHANGELOG.md +212 -16
- package/CHANGELOG.zh.md +152 -39
- package/CONTRIBUTING.md +22 -22
- package/README.ja.md +85 -104
- package/README.ko.md +85 -103
- package/README.md +1 -19
- package/README.zh.md +85 -101
- package/THIRD_PARTY_NOTICES.md +14 -14
- package/docs/compat-0.1.5-report.md +77 -0
- package/docs/installation.ja.md +78 -76
- package/docs/installation.ko.md +78 -76
- package/docs/installation.md +103 -76
- package/docs/installation.zh.md +100 -76
- package/docs/repair-log.md +657 -582
- package/eslint.config.js +30 -30
- package/package.json +75 -54
- package/packages/selector/README.md +7 -12
- package/packages/selector/README.zh.md +6 -13
- package/packages/selector/THIRD_PARTY_NOTICES.md +32 -38
- package/packages/selector/cordis.patch.yml +27 -19
- package/packages/selector/dsh.plugin.json +16 -16
- package/packages/selector/lib/client.d.ts +97 -5
- package/packages/selector/lib/client.js +1884 -92
- package/packages/selector/lib/config.js +863 -6
- package/packages/selector/lib/index.d.ts +29 -21
- package/packages/selector/lib/index.js +424 -18
- package/packages/selector/lib/invariant.js +4 -4
- package/packages/selector/lib/pruner.d.ts +179 -4
- package/packages/selector/lib/pruner.js +1406 -371
- package/packages/selector/lib/style.css +42 -0
- package/packages/selector/lib/tail-trim.js +13 -4
- package/packages/selector/package.json +18 -27
- package/packages/selector/screenshots.json +3 -6
- package/packages/selector/src/client/CompressionProfileControls.tsx +293 -229
- package/packages/selector/src/client/CompressionProfileSelector.module.css +199 -170
- package/packages/selector/src/client/CompressionProfileSelector.tsx +85 -79
- package/packages/selector/src/client/EstimatorControls.tsx +277 -281
- package/packages/selector/src/client/decode.ts +57 -49
- package/packages/selector/src/client/index.ts +200 -62
- package/packages/selector/src/client/locales/de.ts +141 -0
- package/packages/selector/src/client/locales/es.ts +141 -0
- package/packages/selector/src/client/locales/fr.ts +141 -0
- package/packages/selector/src/client/locales/it.ts +141 -0
- package/packages/selector/src/client/locales/ja.ts +141 -0
- package/packages/selector/src/client/locales/ko.ts +141 -0
- package/packages/selector/src/client/locales/ru.ts +141 -0
- package/packages/selector/src/client/locales.ts +282 -198
- package/packages/selector/src/client/monitor-fab.ts +336 -0
- package/packages/selector/src/client/preset-options.ts +88 -70
- package/packages/selector/src/client/savings-card.tsx +150 -0
- package/packages/selector/src/client/settings-section.tsx +140 -126
- package/packages/selector/src/deepseek-v4-tokenizer.ts +205 -210
- package/packages/selector/src/index.ts +671 -327
- package/packages/selector/src/invariant.ts +113 -113
- package/packages/selector/src/profiles.ts +431 -342
- package/packages/selector/src/pruner/state.ts +57 -43
- package/packages/selector/src/pruner.ts +2736 -2154
- package/packages/selector/src/runtime/audit.ts +303 -231
- package/packages/selector/src/runtime/config.ts +756 -642
- package/packages/selector/src/runtime/measurement.ts +436 -432
- package/packages/selector/src/runtime/monitor.ts +235 -0
- package/packages/selector/src/runtime/retrieve.ts +479 -457
- package/packages/selector/src/runtime/savings.ts +337 -0
- package/packages/selector/src/runtime/session-events.ts +30 -17
- package/packages/selector/src/runtime/summary-command.ts +127 -0
- package/packages/selector/src/runtime/tail-trim.ts +166 -166
- package/packages/selector/src/runtime/tokenpilot/advisor-prompt.ts +233 -0
- package/packages/selector/src/runtime/tokenpilot/advisor-state.ts +204 -0
- package/packages/selector/src/runtime/tokenpilot/advisor.ts +419 -0
- package/packages/selector/src/runtime/tokenpilot/benefit.ts +200 -0
- package/packages/selector/src/runtime/tokenpilot/estimator.ts +151 -183
- package/packages/selector/src/runtime/tokenpilot/intent-fold.ts +53 -0
- package/packages/selector/src/runtime/tokenpilot/intent-gate.ts +65 -0
- package/packages/selector/src/runtime/tokenpilot/intent-input-mask.ts +125 -0
- package/packages/selector/src/runtime/tokenpilot/intent-range.ts +37 -0
- package/packages/selector/src/runtime/tokenpilot/sidechannel.ts +303 -275
- package/packages/selector/src/runtime/types.ts +365 -325
- package/packages/selector/tests/advisor-report.host.spec.ts +223 -0
- package/packages/selector/tests/auto-compact.client.spec.tsx +214 -226
- package/packages/selector/tests/built/client-artifact.spec.ts +59 -51
- package/packages/selector/tests/code-skeleton.client.spec.ts +91 -88
- package/packages/selector/tests/custom-contract.client.spec.ts +205 -202
- package/packages/selector/tests/estimator-channel.client.spec.tsx +253 -247
- package/packages/selector/tests/estimator-route-registration.host.spec.ts +194 -176
- package/packages/selector/tests/host-preset-overlay.host.spec.ts +206 -204
- package/packages/selector/tests/monitor-fab.client.spec.ts +138 -0
- package/packages/selector/tests/preset-options-write.client.spec.ts +207 -181
- package/packages/selector/tests/preset-overlay-loader.e2e.host.spec.ts +201 -196
- package/packages/selector/tests/preset-overlay.host.spec.ts +8 -18
- package/packages/selector/tests/profiles.client.spec.tsx +436 -434
- package/packages/selector/tests/public/package-contract.client.spec.ts +78 -33
- package/packages/selector/tests/runtime/advice-never-withholds.host.spec.ts +232 -0
- package/packages/selector/tests/runtime/advisor-invariant.spec.ts +272 -0
- package/packages/selector/tests/runtime/advisor.spec.ts +226 -0
- package/packages/selector/tests/runtime/audit.spec.ts +275 -172
- package/packages/selector/tests/runtime/deprecated-preset-options.spec.ts +96 -0
- package/packages/selector/tests/runtime/intent-gate.spec.ts +62 -0
- package/packages/selector/tests/runtime/intent-summary.spec.ts +156 -0
- package/packages/selector/tests/runtime/monitor.spec.ts +301 -0
- package/packages/selector/tests/runtime/public/public-runtime.spec.ts +2724 -2702
- package/packages/selector/tests/runtime/savings.spec.ts +120 -0
- package/packages/selector/tests/runtime/session-events.spec.ts +27 -27
- package/packages/selector/tests/runtime/summary-command.spec.ts +154 -0
- package/packages/selector/tests/runtime/tokenpilot/benefit.spec.ts +217 -0
- package/packages/selector/tests/runtime/tokenpilot/estimator.spec.ts +79 -56
- package/packages/selector/tests/runtime/tokenpilot/profile-baseline.spec.ts +116 -100
- package/packages/selector/tests/settings-seat.client.spec.ts +130 -0
- package/packages/selector/tests/standing-generation.host.spec.ts +142 -87
- package/packages/selector/tests/subagent-cache-reuse.host.spec.ts +253 -250
- package/pnpm-workspace.yaml +66 -19
- package/scripts/capture-profile-baseline.mjs +42 -0
- package/scripts/generate-tokenizer-fixtures.py +81 -81
- package/scripts/generate-vision-fixtures.py +208 -208
- package/scripts/{packed-components-smoke.ts → packed-components-smoke.mjs} +732 -713
- package/scripts/{packed-install-e2e.ts → packed-install-e2e.mjs} +1273 -1072
- package/scripts/toolclass-corpus-replay.mjs +281 -273
- package/scripts/{verify-release.ts → verify-release.mjs} +318 -300
- package/tests/TEST_INVENTORY.md +41 -42
- package/scripts/capture-profile-baseline.ts +0 -80
- package/tsconfig.scripts.json +0 -13
- /package/{packages/selector/assets/screenshots → docs/assets}/context-compression-selector-profiles.jpg +0 -0
- /package/{packages/selector/assets/screenshots → docs/assets}/context-compression-selector-settings.png +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import z from "@deepseek-ai/schemastery";
|
|
2
2
|
import { Context, Service } from "@deepseek-ai/cordis";
|
|
3
|
-
import {
|
|
3
|
+
import { ContentBlock, ToolCallId } from "@deepseek-ai/dsh-llm";
|
|
4
4
|
import { Session } from "@deepseek-ai/dsh-session";
|
|
5
5
|
import { TokenMeasurement } from "@deepseek-ai/dsh-token-meter";
|
|
6
6
|
//#region src/runtime/tokenpilot/dedup.d.ts
|
|
@@ -82,6 +82,20 @@ interface PresetOptions {
|
|
|
82
82
|
readonly estimator: {
|
|
83
83
|
readonly mode: '' | 'host' | 'direct';
|
|
84
84
|
};
|
|
85
|
+
/**
|
|
86
|
+
* Advisory relevance advisor: statistics and suggestions only — every output
|
|
87
|
+
* (summaries, scores, decay, recertification) is observational and must never
|
|
88
|
+
* suppress, delay, or rewrite any reduction that would land. `''` (the
|
|
89
|
+
* default) keeps the advisor fully off.
|
|
90
|
+
*/
|
|
91
|
+
readonly advisor: {
|
|
92
|
+
readonly mode: '' | 'host' | 'direct';
|
|
93
|
+
readonly timeoutMs: number;
|
|
94
|
+
readonly refreshTurns: number;
|
|
95
|
+
readonly scoreThreshold: number;
|
|
96
|
+
readonly sampleLimit: number;
|
|
97
|
+
readonly minTokens: number;
|
|
98
|
+
};
|
|
85
99
|
}
|
|
86
100
|
/** Common user-authored Custom stages shared by persisted policy versions. */
|
|
87
101
|
interface CustomCompressionPolicyFields<HistoryPolicy> {
|
|
@@ -120,6 +134,19 @@ interface AutoCompactSettings {
|
|
|
120
134
|
interface CodeSkeletonSettings {
|
|
121
135
|
enabled: boolean;
|
|
122
136
|
}
|
|
137
|
+
/**
|
|
138
|
+
* Orthogonal turn-tail intent-summary gate. Independent of every profile:
|
|
139
|
+
* when enabled, the turn-boundary growth gate may fold consumed-increment
|
|
140
|
+
* tool results into an LLM-written intent block (skeleton + verbatim error
|
|
141
|
+
* lines are kept; the model only ever writes the summary segment).
|
|
142
|
+
*/
|
|
143
|
+
interface IntentSummarySettings {
|
|
144
|
+
enabled: boolean;
|
|
145
|
+
}
|
|
146
|
+
/** Floating compression-monitor panel (FAB); visibility switch. */
|
|
147
|
+
interface MonitorPanelSettings {
|
|
148
|
+
enabled: boolean;
|
|
149
|
+
}
|
|
123
150
|
/**
|
|
124
151
|
* Persisted sub-capability overrides for the `tokenpilot-inspired` preset.
|
|
125
152
|
* Absent fields inherit the preset defaults; the section is only meaningful
|
|
@@ -141,6 +168,13 @@ interface PresetOptionsSettings {
|
|
|
141
168
|
readonly estimatorBaseUrl?: string;
|
|
142
169
|
readonly estimatorApiKey?: string;
|
|
143
170
|
readonly estimatorTimeoutMs?: number;
|
|
171
|
+
/** Advisory advisor channel; `''` (the default) keeps the advisor off. */
|
|
172
|
+
readonly advisorMode?: '' | 'host' | 'direct';
|
|
173
|
+
readonly advisorTimeoutMs?: number;
|
|
174
|
+
readonly advisorRefreshTurns?: number;
|
|
175
|
+
readonly advisorScoreThreshold?: number;
|
|
176
|
+
readonly advisorSampleLimit?: number;
|
|
177
|
+
readonly advisorMinTokens?: number;
|
|
144
178
|
}
|
|
145
179
|
/** Durable global preference exposed through `ctx.settings`. */
|
|
146
180
|
interface ContextCompressionSettings {
|
|
@@ -152,6 +186,10 @@ interface ContextCompressionSettings {
|
|
|
152
186
|
autoCompact: AutoCompactSettings;
|
|
153
187
|
/** Code-skeleton reducer gate snapped independently of `profile`. */
|
|
154
188
|
codeSkeleton: CodeSkeletonSettings;
|
|
189
|
+
/** Turn-tail intent-summary gate snapped independently of `profile`. */
|
|
190
|
+
intentSummary: IntentSummarySettings;
|
|
191
|
+
/** Floating compression-monitor panel (FAB); absent inherits hidden. */
|
|
192
|
+
monitorPanel?: MonitorPanelSettings;
|
|
155
193
|
/** Optional tokenpilot-inspired sub-capability overrides; absent inherits preset defaults. */
|
|
156
194
|
presetOptions?: PresetOptionsSettings;
|
|
157
195
|
}
|
|
@@ -295,7 +333,7 @@ interface PrunedEntry {
|
|
|
295
333
|
/** Newly appended compressed tool-result event. */
|
|
296
334
|
readonly replacementSeq: number;
|
|
297
335
|
/** Tool call shared by the original and replacement. */
|
|
298
|
-
readonly callId:
|
|
336
|
+
readonly callId: ToolCallId;
|
|
299
337
|
/** Reducer or aging strategy that produced the replacement. */
|
|
300
338
|
readonly reducer: string;
|
|
301
339
|
/** Pass stage that landed the replacement. */
|
|
@@ -319,6 +357,56 @@ interface PruneResult {
|
|
|
319
357
|
readonly tokensRemoved: number;
|
|
320
358
|
}
|
|
321
359
|
//#endregion
|
|
360
|
+
//#region src/runtime/tokenpilot/sidechannel.d.ts
|
|
361
|
+
/** Audit record of one side-channel call (Phase 13). All fields optional-safe. */
|
|
362
|
+
interface SideChannelAudit {
|
|
363
|
+
readonly ok: boolean;
|
|
364
|
+
readonly latencyMs: number;
|
|
365
|
+
/** host|direct plus the resolved provider/model identity. */
|
|
366
|
+
readonly channel?: string;
|
|
367
|
+
/** L2 coverage: content shown N of node content total M. */
|
|
368
|
+
readonly coverage?: {
|
|
369
|
+
readonly shown: number;
|
|
370
|
+
readonly total: number;
|
|
371
|
+
};
|
|
372
|
+
readonly reason?: string;
|
|
373
|
+
}
|
|
374
|
+
interface SideChannelRequest {
|
|
375
|
+
readonly system: string;
|
|
376
|
+
readonly user: string;
|
|
377
|
+
readonly signal: AbortSignal;
|
|
378
|
+
}
|
|
379
|
+
/** One bound side channel. `ask` resolves `undefined` on ANY failure. */
|
|
380
|
+
declare class SideChannel {
|
|
381
|
+
private readonly ctx;
|
|
382
|
+
private readonly options;
|
|
383
|
+
private readonly overrides?;
|
|
384
|
+
/**
|
|
385
|
+
* @param overrides - per-consumer overrides of the estimator-named options.
|
|
386
|
+
* The estimator itself never passes them (byte-identical behavior); the
|
|
387
|
+
* advisory advisor passes its own mode/timeout/output budget so both
|
|
388
|
+
* consumers share one transport without sharing one configuration.
|
|
389
|
+
*/
|
|
390
|
+
constructor(ctx: Context, options: PresetOptionsSettings, overrides?: {
|
|
391
|
+
readonly mode?: "" | "host" | "direct";
|
|
392
|
+
readonly timeoutMs?: number;
|
|
393
|
+
readonly maxTokens?: number;
|
|
394
|
+
} | undefined);
|
|
395
|
+
private get mode();
|
|
396
|
+
get enabled(): boolean;
|
|
397
|
+
ask(request: SideChannelRequest): Promise<string | undefined>;
|
|
398
|
+
/** Failure-open wrapper that also records one audit record per call. */
|
|
399
|
+
askAudited(request: SideChannelRequest): Promise<{
|
|
400
|
+
text?: string;
|
|
401
|
+
audit: SideChannelAudit;
|
|
402
|
+
}>;
|
|
403
|
+
identity(): string | undefined;
|
|
404
|
+
/** Same host-route resolution as the estimator: explicit, then host default. */
|
|
405
|
+
private resolveHostRoute;
|
|
406
|
+
private askHost;
|
|
407
|
+
private askDirect;
|
|
408
|
+
}
|
|
409
|
+
//#endregion
|
|
322
410
|
//#region src/runtime/tokenpilot/estimator.d.ts
|
|
323
411
|
/** Per-session estimator failure bookkeeping for exponential backoff. */
|
|
324
412
|
interface EstimatorFailures {
|
|
@@ -326,6 +414,32 @@ interface EstimatorFailures {
|
|
|
326
414
|
cooldownUntil: number;
|
|
327
415
|
}
|
|
328
416
|
//#endregion
|
|
417
|
+
//#region src/runtime/tokenpilot/intent-input-mask.d.ts
|
|
418
|
+
type IntentRole = 'read-mask' | 'write-keep' | 'conservative';
|
|
419
|
+
//#endregion
|
|
420
|
+
//#region src/runtime/tokenpilot/intent-fold.d.ts
|
|
421
|
+
/** One staged fold awaiting the next pressure round. */
|
|
422
|
+
interface PendingIntentFold {
|
|
423
|
+
readonly createdAt: number;
|
|
424
|
+
readonly turn: number;
|
|
425
|
+
/** Inclusive seq span of the folded candidates. */
|
|
426
|
+
readonly startSeq: number;
|
|
427
|
+
readonly endSeq: number;
|
|
428
|
+
/** LLM-written summary segment (fail-open parsed, char-capped). */
|
|
429
|
+
readonly summary: string;
|
|
430
|
+
/** Verbatim error lines collected across the batch (never LLM-revoiced). */
|
|
431
|
+
readonly errorLines: readonly string[];
|
|
432
|
+
/** Per-candidate faces: read-mask single lines ride the block, keep-class lines prompt-only. */
|
|
433
|
+
readonly records: ReadonlyArray<{
|
|
434
|
+
readonly seq: number;
|
|
435
|
+
readonly role: IntentRole;
|
|
436
|
+
readonly toolName: string;
|
|
437
|
+
readonly line: string;
|
|
438
|
+
}>;
|
|
439
|
+
/** Characters consumed by the summary-writer call (credit accounting). */
|
|
440
|
+
readonly summaryCallChars: number;
|
|
441
|
+
}
|
|
442
|
+
//#endregion
|
|
329
443
|
//#region src/pruner/state.d.ts
|
|
330
444
|
/** Mutable per-session state bag used inside {@link ToolResultPruner}. */
|
|
331
445
|
interface PrunerState {
|
|
@@ -353,6 +467,18 @@ interface PrunerState {
|
|
|
353
467
|
readonly tailTrimBoundaryAttempts: WeakMap<Session, object>;
|
|
354
468
|
/** Last effective policy audit key emitted for each Session. */
|
|
355
469
|
readonly policyResolutionAudits: WeakMap<Session, string>;
|
|
470
|
+
/** Last observed turn index per Session: the monotonic clock for advisory records. */
|
|
471
|
+
readonly turnClocks: WeakMap<Session, number>;
|
|
472
|
+
/** Estimator-reported remaining turns Ŝ per Session; advisory only. */
|
|
473
|
+
readonly estimatorRemainingTurns: WeakMap<Session, number>;
|
|
474
|
+
/** Per-session advisor side channel, constructed once with the advisor overrides. */
|
|
475
|
+
readonly advisorChannels: WeakMap<Session, SideChannel>;
|
|
476
|
+
/** Staged intent fold awaiting the next pressure round (at most one per session). */
|
|
477
|
+
readonly pendingIntentFolds: WeakMap<Session, PendingIntentFold>;
|
|
478
|
+
/** Landed intent-fold seqs: fold-once, never reconsidered by any later stage. */
|
|
479
|
+
readonly intentFoldedSeqs: WeakMap<Session, Set<number>>;
|
|
480
|
+
/** Live-surface tokens when the last intent fold landed (growth-gate baseline). */
|
|
481
|
+
readonly intentBaselines: WeakMap<Session, number>;
|
|
356
482
|
}
|
|
357
483
|
//#endregion
|
|
358
484
|
//#region src/runtime/custom-policy.d.ts
|
|
@@ -627,13 +753,14 @@ declare class ToolResultPruner extends Service {
|
|
|
627
753
|
static Config: z<ToolResultPruneConfig>;
|
|
628
754
|
/** Consolidated per-session mutable state. */
|
|
629
755
|
readonly state: PrunerState;
|
|
756
|
+
/** 0.1.5-specific: per-session sets of already-audited native summary seqs. */
|
|
757
|
+
private readonly auditedNativeSummaries;
|
|
630
758
|
constructor(ctx: Context, config?: ToolResultPruneConfig);
|
|
631
759
|
/**
|
|
632
760
|
* Measure text content in Unicode code points; non-text blocks cost zero.
|
|
633
761
|
* @param blocks - tool-result content to measure.
|
|
634
762
|
* @returns total Unicode code points across text blocks.
|
|
635
763
|
*/
|
|
636
|
-
measureContent(blocks: readonly ContentBlock[]): number;
|
|
637
764
|
/**
|
|
638
765
|
* Apply the configured native head/middle/tail transform.
|
|
639
766
|
* @param blocks - original tool-result content.
|
|
@@ -665,6 +792,46 @@ declare class ToolResultPruner extends Service {
|
|
|
665
792
|
* superseded classification.
|
|
666
793
|
*/
|
|
667
794
|
private postflightEstimatorPass;
|
|
795
|
+
/**
|
|
796
|
+
* Advisory advisor pass at the turn boundary, strictly fire-and-forget.
|
|
797
|
+
* Produces todolist-bound tail-task summaries, incremental relevance
|
|
798
|
+
* scores, and a prefix-decay figure — all observational. Every short
|
|
799
|
+
* circuit below (mode off, re-entry, cooldown, no task semantics, no
|
|
800
|
+
* direct endpoint) returns without touching any state the pruning chain
|
|
801
|
+
* reads, so the default configuration adds exactly zero behavior.
|
|
802
|
+
*/
|
|
803
|
+
private postflightAdvisorPass;
|
|
804
|
+
/**
|
|
805
|
+
* Fire-and-forget postflight: evaluate the growth gate, and only when it
|
|
806
|
+
* passes, select the consumed increment OUTSIDE the protected working set,
|
|
807
|
+
* mask it to semantic-role records, and spend ONE summary-writer call. The
|
|
808
|
+
* verdict stages as a pending fold that the NEXT pressure round lands via
|
|
809
|
+
* the ordinary plan/apply machinery — the synchronous decision path never
|
|
810
|
+
* waits on an LLM.
|
|
811
|
+
*/
|
|
812
|
+
private postflightIntentFoldPass;
|
|
813
|
+
/**
|
|
814
|
+
* Convert a staged pending fold into per-candidate planned replacements
|
|
815
|
+
* (reducer `intent-summary`). Fail-open: a candidate that would grow, is
|
|
816
|
+
* rich-content, or no longer exists keeps its original text. Returns
|
|
817
|
+
* `undefined` when there is nothing (or no longer anything) to fold.
|
|
818
|
+
*/
|
|
819
|
+
private applyPendingIntentFold;
|
|
820
|
+
/**
|
|
821
|
+
* Monotonic per-session turn clock for advisory records. Bumped by the agent
|
|
822
|
+
* loop payloads (`pre-step`); passes without a turn coordinate reuse the last
|
|
823
|
+
* observed value.
|
|
824
|
+
*/
|
|
825
|
+
private turnClock;
|
|
826
|
+
/**
|
|
827
|
+
* Advisory benefit-model hook — what the retired human-gated review pipeline
|
|
828
|
+
* left behind. It is the IDENTITY on the landing path: every plan it is given
|
|
829
|
+
* comes back unchanged, because a reduction must never block automatic
|
|
830
|
+
* processing. The model's band is published as a `reduction-advice` audit and
|
|
831
|
+
* snapshotted onto the advisor state for the read-only report route, so the
|
|
832
|
+
* cache-accounting insight survives without a gate.
|
|
833
|
+
*/
|
|
834
|
+
private adviseReplacements;
|
|
668
835
|
private activePolicy;
|
|
669
836
|
private contextWindowForRequest;
|
|
670
837
|
private runRequestBoundary;
|
|
@@ -720,10 +887,18 @@ declare class ToolResultPruner extends Service {
|
|
|
720
887
|
private hasRecoveryTool;
|
|
721
888
|
private auditHistoryEvaluation;
|
|
722
889
|
private auditComponent;
|
|
890
|
+
/** Emit the native-auto-compact audit for one summary manifest, once. */
|
|
891
|
+
private emitNativeSummaryAudit;
|
|
892
|
+
/**
|
|
893
|
+
* 0.1.5 commits Native auto-compact by reopening the Session with a seed
|
|
894
|
+
* log; seed events never reach the `session/event` firehose, so scan the
|
|
895
|
+
* snapshot for summary manifests the live listener could not observe.
|
|
896
|
+
*/
|
|
897
|
+
private scanForSeededNativeSummary;
|
|
723
898
|
private auditFailure;
|
|
724
899
|
private auditPublicationFailure;
|
|
725
900
|
private warnExactUnavailable;
|
|
726
901
|
private warnOnce;
|
|
727
902
|
}
|
|
728
903
|
//#endregion
|
|
729
|
-
export { AUTO_COMPACT_THRESHOLD_LIMITS, type AutoCompactSettings, COMPRESSION_PROFILES, CONTEXT_COMPRESSION_SETTINGS_NAMESPACE, type CodeSkeletonSettings, type CompactionTokenView, type CompressionPolicy, type CompressionProfile, type ContextCompressionSettings, ContextCompressionSettingsSchema, type CustomCompressionBudget, type CustomCompressionPolicy, CustomCompressionPolicySchema, type CustomCompressionPolicyV1, type CustomCompressionPolicyV2, type CustomCompressionPolicyV3, type CustomCompressionUnit, type CustomHistoryPolicy, type CustomPolicyResolutionOptions, type CustomPrefixPolicy, type CustomTailTrimPolicy, DEFAULTS, DEFAULT_CUSTOM_COMPRESSION_POLICY, type HistoryMode, type MeasuredTokenSurfaceNode, PRUNE_MARKER, type PruneResult, type PruneSessionOptions, type PruneStage, type PrunedEntry, type
|
|
904
|
+
export { AUTO_COMPACT_THRESHOLD_LIMITS, type AutoCompactSettings, COMPRESSION_PROFILES, CONTEXT_COMPRESSION_SETTINGS_NAMESPACE, type CodeSkeletonSettings, type CompactionTokenView, type CompressionPolicy, type CompressionProfile, type ContextCompressionSettings, ContextCompressionSettingsSchema, type CustomCompressionBudget, type CustomCompressionPolicy, CustomCompressionPolicySchema, type CustomCompressionPolicyV1, type CustomCompressionPolicyV2, type CustomCompressionPolicyV3, type CustomCompressionUnit, type CustomHistoryPolicy, type CustomPolicyResolutionOptions, type CustomPrefixPolicy, type CustomTailTrimPolicy, DEFAULTS, DEFAULT_CUSTOM_COMPRESSION_POLICY, type HistoryMode, type MeasuredTokenSurfaceNode, PRUNE_MARKER, type PruneResult, type PruneSessionOptions, type PruneStage, type PrunedEntry, type ToolResultPruneConfig, ToolResultPruner, ToolResultPruner as default, codePointLength, historicalPlaceholder, isCompressionProfile, isValidAutoCompactThresholdPercent, measureForCompaction, normalizeTerminalText, parseContextCompressionSettings, reduceFreshToolResult, resolveConfig, resolveCustomPolicy, resolvePolicy, verifyReduction };
|