dsh-context-compression-improved 0.8.0-beta.7 → 0.9.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/.gitattributes +2 -2
- package/.githooks/pre-push +37 -37
- package/.github/workflows/ci.yml +39 -39
- package/CHANGELOG.de.md +41 -0
- package/CHANGELOG.es.md +41 -0
- package/CHANGELOG.fr.md +42 -0
- package/CHANGELOG.it.md +41 -0
- package/CHANGELOG.ja.md +35 -0
- package/CHANGELOG.ko.md +34 -0
- package/CHANGELOG.md +47 -0
- package/CHANGELOG.ru.md +37 -0
- package/CHANGELOG.zh.md +32 -0
- package/CONTRIBUTING.md +22 -22
- package/LICENSE +21 -21
- package/README.de.md +7 -9
- package/README.es.md +7 -9
- package/README.fr.md +7 -9
- package/README.it.md +7 -9
- package/README.ja.md +6 -2
- package/README.ko.md +6 -2
- package/README.md +96 -98
- package/README.ru.md +7 -9
- package/README.zh.md +89 -85
- package/SECURITY.md +18 -18
- package/THIRD_PARTY_NOTICES.md +14 -14
- package/docs/compat-0.1.5-report.md +77 -77
- package/docs/installation.de.md +5 -5
- package/docs/installation.es.md +5 -5
- package/docs/installation.fr.md +5 -5
- package/docs/installation.it.md +5 -5
- package/docs/installation.ja.md +5 -5
- package/docs/installation.ko.md +5 -5
- package/docs/installation.md +5 -5
- package/docs/installation.ru.md +5 -5
- package/docs/installation.zh.md +5 -5
- package/docs/repair-log.md +657 -657
- package/package.json +163 -163
- package/packages/selector/LICENSE +21 -21
- package/packages/selector/README.md +26 -26
- package/packages/selector/README.zh.md +24 -24
- package/packages/selector/THIRD_PARTY_NOTICES.md +32 -32
- package/packages/selector/cordis.patch.yml +27 -27
- package/packages/selector/docs/history-tool-call-working-set-spec.md +112 -112
- package/packages/selector/docs/native-tool-result-selector-spec.md +34 -34
- package/packages/selector/docs/subagent-cache-reuse-spec.md +46 -46
- package/packages/selector/dsh.plugin.json +16 -16
- package/packages/selector/lib/client.js +178 -21
- package/packages/selector/lib/host-generation.js +62 -0
- package/packages/selector/lib/index.js +208 -1
- package/packages/selector/lib/invariant.js +1 -1
- package/packages/selector/lib/pruner.js +41 -43
- package/packages/selector/lib/style.css +53 -53
- package/packages/selector/lib/tail-trim.js +73 -4
- package/packages/selector/package.json +80 -21
- package/packages/selector/screenshots.json +3 -3
- package/packages/selector/src/client/CustomPolicyEditor.tsx +216 -216
- package/packages/selector/src/client/EstimatorControls.tsx +277 -277
- package/packages/selector/src/client/bridge-scope.ts +125 -0
- package/packages/selector/src/client/index.ts +109 -31
- package/packages/selector/src/client/monitor-fab.ts +0 -2
- package/packages/selector/src/client/preset-options.ts +88 -88
- package/packages/selector/src/client/scope-face.ts +24 -24
- package/packages/selector/src/compat/host-generation.ts +96 -0
- package/packages/selector/src/compat/settings-lease.ts +108 -0
- package/packages/selector/src/compat/tool-result.ts +91 -0
- package/packages/selector/src/css-modules.d.ts +6 -6
- package/packages/selector/src/deepseek-v4-tokenizer.ts +205 -205
- package/packages/selector/src/estimator-catalog.ts +104 -104
- package/packages/selector/src/index.ts +8 -0
- package/packages/selector/src/invariant.ts +113 -113
- package/packages/selector/src/preset-overlay.ts +626 -626
- package/packages/selector/src/pruner/content.ts +198 -198
- package/packages/selector/src/pruner/session.ts +97 -96
- package/packages/selector/src/pruner/tuning.ts +23 -23
- package/packages/selector/src/pruner/types.ts +78 -78
- package/packages/selector/src/pruner.ts +45 -40
- package/packages/selector/src/runtime/adaptive-cost.ts +205 -205
- package/packages/selector/src/runtime/custom-policy.ts +278 -278
- package/packages/selector/src/runtime/deepseek-official-pricing.ts +298 -298
- package/packages/selector/src/runtime/deepseek-v4-vision-tokens.ts +254 -254
- package/packages/selector/src/runtime/measurement.ts +431 -431
- package/packages/selector/src/runtime/reducers.ts +1674 -1674
- package/packages/selector/src/runtime/retrieve.ts +7 -3
- package/packages/selector/src/runtime/session-events.ts +30 -30
- package/packages/selector/src/runtime/tail-trim.ts +175 -165
- package/packages/selector/src/runtime/token-count.ts +72 -72
- package/packages/selector/src/runtime/tokenpilot/advisor.ts +419 -419
- package/packages/selector/src/runtime/tokenpilot/benefit.ts +200 -200
- package/packages/selector/src/runtime/tokenpilot/dedup.ts +81 -81
- package/packages/selector/src/runtime/tokenpilot/estimator.ts +151 -151
- package/packages/selector/src/runtime/tokenpilot/locator.ts +128 -128
- package/packages/selector/src/runtime/tokenpilot/read-state.ts +98 -98
- package/packages/selector/src/runtime/tokenpilot/sidechannel.ts +303 -303
- package/packages/selector/src/runtime/toolclass.ts +103 -103
- package/packages/selector/src/runtime/value.ts +48 -48
- package/packages/selector/src/settings-bridge.ts +175 -0
- package/packages/selector/tests/advisor-report.host.spec.ts +223 -223
- package/packages/selector/tests/built/client-artifact.spec.ts +6 -9
- package/packages/selector/tests/cache-prefix-audit.spec.ts +123 -123
- package/packages/selector/tests/code-skeleton.client.spec.ts +98 -94
- package/packages/selector/tests/compat/compat-narrow-waist.spec.ts +150 -0
- package/packages/selector/tests/custom-contract.client.spec.ts +226 -223
- package/packages/selector/tests/estimator-catalog.spec.ts +70 -70
- package/packages/selector/tests/estimator-route-registration.host.spec.ts +199 -194
- package/packages/selector/tests/helpers/legacy-namespace.ts +35 -35
- package/packages/selector/tests/helpers/legacy-settings/index.ts +15 -15
- package/packages/selector/tests/helpers/legacy-settings/legacy/provider.d.ts +41 -41
- package/packages/selector/tests/helpers/legacy-settings/legacy/provider.js +647 -647
- package/packages/selector/tests/helpers/legacy-settings/legacy/redact.js +78 -78
- package/packages/selector/tests/helpers/legacy-settings/legacy/util-values.js +234 -234
- package/packages/selector/tests/host-preset-overlay.host.spec.ts +204 -204
- package/packages/selector/tests/preset-options-write.client.spec.ts +192 -188
- package/packages/selector/tests/preset-overlay-loader.e2e.host.spec.ts +200 -200
- package/packages/selector/tests/preset-overlay.host.spec.ts +246 -246
- package/packages/selector/tests/public/package-contract.client.spec.ts +11 -3
- package/packages/selector/tests/runtime/adaptive-cost.spec.ts +167 -167
- package/packages/selector/tests/runtime/advice-never-withholds.host.spec.ts +230 -230
- package/packages/selector/tests/runtime/advisor-invariant.spec.ts +272 -272
- package/packages/selector/tests/runtime/advisor.spec.ts +226 -226
- package/packages/selector/tests/runtime/auto-compact-config.spec.ts +523 -523
- package/packages/selector/tests/runtime/char-basis.spec.ts +30 -30
- package/packages/selector/tests/runtime/code-skeleton.spec.ts +152 -152
- package/packages/selector/tests/runtime/deepseek-official-pricing.spec.ts +186 -186
- package/packages/selector/tests/runtime/deepseek-v4-tokenizer.spec.ts +122 -122
- package/packages/selector/tests/runtime/deepseek-v4-vision-tokens.spec.ts +122 -122
- package/packages/selector/tests/runtime/deprecated-preset-options.spec.ts +96 -96
- package/packages/selector/tests/runtime/fixtures/profile-baseline.json +273 -273
- package/packages/selector/tests/runtime/fixtures/tokenizer-golden.json +106 -106
- package/packages/selector/tests/runtime/fixtures/vision-golden.json +459 -459
- package/packages/selector/tests/runtime/frequency-longstrings.spec.ts +74 -74
- package/packages/selector/tests/runtime/html-reducer.spec.ts +212 -212
- package/packages/selector/tests/runtime/line-mapping.spec.ts +153 -153
- package/packages/selector/tests/runtime/prose-reducers.spec.ts +133 -133
- package/packages/selector/tests/runtime/public/public-runtime.spec.ts +3 -3
- package/packages/selector/tests/runtime/read-input-cap.spec.ts +33 -33
- package/packages/selector/tests/runtime/search-reducer.spec.ts +110 -110
- package/packages/selector/tests/runtime/session-events.spec.ts +27 -27
- package/packages/selector/tests/runtime/sidechannel.spec.ts +241 -241
- package/packages/selector/tests/runtime/toc-and-bundled.spec.ts +159 -159
- package/packages/selector/tests/runtime/tokenizer-golden.spec.ts +53 -53
- package/packages/selector/tests/runtime/tokenpilot/benefit.spec.ts +217 -217
- package/packages/selector/tests/runtime/tokenpilot/dedup.spec.ts +52 -52
- package/packages/selector/tests/runtime/tokenpilot/estimator.spec.ts +79 -79
- package/packages/selector/tests/runtime/tokenpilot/locator.spec.ts +76 -76
- package/packages/selector/tests/runtime/tokenpilot/profile-baseline.spec.ts +116 -116
- package/packages/selector/tests/runtime/tokenpilot/read-state.spec.ts +82 -82
- package/packages/selector/tests/runtime/toolclass.spec.ts +156 -156
- package/packages/selector/tests/runtime/value.spec.ts +23 -23
- package/packages/selector/tests/settings-seat.client.spec.ts +45 -7
- package/packages/selector/tests/standing-generation.host.spec.ts +724 -724
- package/packages/selector/tests/subagent-cache-reuse.host.spec.ts +269 -269
- package/packages/selector/tests/support/cache-prefix-audit.ts +105 -105
- package/packages/selector/tests/support/mock-adapter.ts +37 -37
- package/packages/selector/tests/support/ui-primitives.tsx +34 -34
- package/packages/selector/tsconfig.json +11 -11
- package/packages/selector/tsdown.client.config.ts +102 -102
- package/packages/selector/tsdown.config.ts +20 -20
- package/scripts/capture-profile-baseline.mjs +42 -42
- package/scripts/generate-tokenizer-fixtures.py +81 -81
- package/scripts/generate-vision-fixtures.py +208 -208
- package/scripts/hosts.mjs +74 -0
- package/scripts/packed-components-smoke.mjs +763 -732
- package/scripts/packed-install-e2e.mjs +1330 -1273
- package/scripts/sync-hosts.mjs +174 -0
- package/scripts/toolclass-corpus-replay.mjs +281 -281
- package/scripts/verify-release.mjs +335 -318
- package/tsconfig.base.json +18 -18
- package/tsconfig.json +7 -7
- package/tsconfig.tests.json +15 -15
- package/vitest.built.config.ts +9 -9
- package/vitest.config.ts +46 -43
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as decimalRateNanoUnits, F as recordIntentFold, H as resolveOfficialDeepSeekPrice, I as recordRecertified, L as recordScore, M as getSummaryOverride, N as invalidateOnTaskChange, O as evaluateIntentGate, P as observeIntentEnabled, T as observeContextUsage, U as getSavingsLedger, V as priceOfficialDeepSeekUsage, _ as resolveCustomPolicy, b as COMPRESSION_PROFILES, c as charsToTokens, d as isValidAutoCompactThresholdPercent, f as parseContextCompressionSettings, g as DEFAULT_CUSTOM_COMPRESSION_POLICY, h as CustomCompressionPolicySchema, i as DEFAULTS, k as getAdvisorState, l as codePointLength, m as resolvePolicy, n as CONTEXT_COMPRESSION_SETTINGS_NAMESPACE, o as PRUNE_MARKER, p as resolveConfig, r as ContextCompressionSettingsSchema, s as charsForTokens, t as AUTO_COMPACT_THRESHOLD_LIMITS, u as isCompressionProfile, v as assertNever, y as deepFreeze, z as DEEPSEEK_OFFICIAL_PRICE_CATALOG_VERSION } from "./config.js";
|
|
2
|
-
import { a as validatePublishedTailTrim, i as tailTrimStub, n as tailTrimMessage, o as
|
|
2
|
+
import { a as validatePublishedTailTrim, c as eventBySeq, i as tailTrimStub, l as sessionEvents, n as tailTrimMessage, o as compressionMessageSource, r as tailTrimRef, s as viewToolResult, t as parseTailTrimRef } from "./tail-trim.js";
|
|
3
3
|
import z from "@deepseek-ai/schemastery";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
import { Service } from "@deepseek-ai/cordis";
|
|
@@ -814,7 +814,8 @@ function installContextCompressionRetrieve(ctx, config = {}) {
|
|
|
814
814
|
const event = sessionEvents(exec.agent.session)[seq];
|
|
815
815
|
if (event?.type !== "tool/result") throw new Error(`context_compression_retrieve: event ${String(seq)} is not a tool/result in the current session`);
|
|
816
816
|
const maxLines = resolveMaxLines(args.max_lines);
|
|
817
|
-
const
|
|
817
|
+
const resultView = viewToolResult(event.data.message);
|
|
818
|
+
const scan = scanBlocks(resultView.blocks, maxScanChars);
|
|
818
819
|
const scannedLines = splitScannedLines(scan);
|
|
819
820
|
const lines = scannedLines.lines;
|
|
820
821
|
const query = args.query;
|
|
@@ -823,8 +824,8 @@ function installContextCompressionRetrieve(ctx, config = {}) {
|
|
|
823
824
|
const total = scan.complete ? String(lines.length) : `at least ${String(lines.length)}`;
|
|
824
825
|
const bounded = boundCodePoints(`${[
|
|
825
826
|
`source: ${args.ref}`,
|
|
826
|
-
`tool_call_id: ${
|
|
827
|
-
`status: ${
|
|
827
|
+
`tool_call_id: ${resultView.callId}`,
|
|
828
|
+
`status: ${resultView.isError ? "error" : "completed"}`,
|
|
828
829
|
`lines: ${String(selected.start)}-${String(selected.end)} of ${total}`,
|
|
829
830
|
scan.complete ? "" : "note: source scan limit reached; later lines were not inspected",
|
|
830
831
|
selected.partialLine === void 0 ? "" : `note: line ${String(selected.partialLine)} is a partial prefix ending at the source scan limit`,
|
|
@@ -1127,7 +1128,7 @@ function tokenizerAuditFact(route) {
|
|
|
1127
1128
|
}
|
|
1128
1129
|
/** Check whether a snapshot candidate represents an error result. */
|
|
1129
1130
|
function isError(candidate) {
|
|
1130
|
-
return candidate.event.data.message.isError
|
|
1131
|
+
return viewToolResult(candidate.event.data.message).isError || candidate.event.data.error !== void 0;
|
|
1131
1132
|
}
|
|
1132
1133
|
/** Wrap a plan list into a HistoryPlanOutcome. */
|
|
1133
1134
|
function historyOutcome(plans) {
|
|
@@ -3966,7 +3967,7 @@ function emitCompressionAudit(logger, record) {
|
|
|
3966
3967
|
*/
|
|
3967
3968
|
/** 节省统计配对键用原文(纯文本块才可配对;富内容返回 undefined)。 */
|
|
3968
3969
|
function originalTextForSavings(candidate) {
|
|
3969
|
-
return flattenPlainText(candidate.event.data.message.
|
|
3970
|
+
return flattenPlainText(viewToolResult(candidate.event.data.message).blocks);
|
|
3970
3971
|
}
|
|
3971
3972
|
/** Mixed deterministic selector behind the existing `ctx.toolResultPruner` seam. */
|
|
3972
3973
|
var ToolResultPruner = class extends Service {
|
|
@@ -4227,7 +4228,7 @@ var ToolResultPruner = class extends Service {
|
|
|
4227
4228
|
lastText.text = `${lastText.text}\n\n${block}`;
|
|
4228
4229
|
const replacement = createUserMessage({
|
|
4229
4230
|
content,
|
|
4230
|
-
source:
|
|
4231
|
+
source: compressionMessageSource()
|
|
4231
4232
|
});
|
|
4232
4233
|
session.append("user/message", replacement, {
|
|
4233
4234
|
surfaceOp: {
|
|
@@ -4369,7 +4370,7 @@ var ToolResultPruner = class extends Service {
|
|
|
4369
4370
|
const candidates = this.snapshot(session, view).filter((candidate) => !this.isRecoveryExempt(session, candidate)).map((candidate) => ({
|
|
4370
4371
|
seq: candidate.seq,
|
|
4371
4372
|
characterPressure: candidate.characterPressure,
|
|
4372
|
-
preview: advisorCandidatePreview(candidate.call.name, candidate.event.data.message.
|
|
4373
|
+
preview: advisorCandidatePreview(candidate.call.name, viewToolResult(candidate.event.data.message).blocks)
|
|
4373
4374
|
}));
|
|
4374
4375
|
let sawFailure = false;
|
|
4375
4376
|
const outcome = await runSessionAdvisorPass(session, channel, (record) => {
|
|
@@ -4459,8 +4460,7 @@ var ToolResultPruner = class extends Service {
|
|
|
4459
4460
|
for (const seq of range.seqs) {
|
|
4460
4461
|
const candidate = bySeq.get(seq);
|
|
4461
4462
|
if (candidate === void 0) continue;
|
|
4462
|
-
const
|
|
4463
|
-
const text = onlyTextBlock(result.content)?.text ?? "";
|
|
4463
|
+
const text = onlyTextBlock(viewToolResult(candidate.event.data.message).blocks)?.text ?? "";
|
|
4464
4464
|
const masked = maskCandidateForSummary(seq, candidate.call.name, candidate.call.arguments, text);
|
|
4465
4465
|
records.push({
|
|
4466
4466
|
seq,
|
|
@@ -4552,8 +4552,7 @@ var ToolResultPruner = class extends Service {
|
|
|
4552
4552
|
let charsAfter = 0;
|
|
4553
4553
|
for (const seq of foldable) {
|
|
4554
4554
|
const candidate = bySeq.get(seq);
|
|
4555
|
-
const
|
|
4556
|
-
const block = onlyTextBlock(result.content);
|
|
4555
|
+
const block = onlyTextBlock(viewToolResult(candidate.event.data.message).blocks);
|
|
4557
4556
|
if (block === null) continue;
|
|
4558
4557
|
const text = renderIntentFoldBlock(pending, seq);
|
|
4559
4558
|
const plan = this.plan(candidate, [{
|
|
@@ -4927,7 +4926,7 @@ var ToolResultPruner = class extends Service {
|
|
|
4927
4926
|
const ledger = getSavingsLedger();
|
|
4928
4927
|
const sid = String(session.id);
|
|
4929
4928
|
for (const candidate of candidates) {
|
|
4930
|
-
const text = flattenPlainText(candidate.event.data.message.
|
|
4929
|
+
const text = flattenPlainText(viewToolResult(candidate.event.data.message).blocks);
|
|
4931
4930
|
if (text === void 0) continue;
|
|
4932
4931
|
ledger.noteFullText({
|
|
4933
4932
|
sessionId: sid,
|
|
@@ -5019,11 +5018,12 @@ var ToolResultPruner = class extends Service {
|
|
|
5019
5018
|
if (event?.type !== "tool/result") continue;
|
|
5020
5019
|
const shadowedHeuristicTokenCount = projectionPrices.get(seq);
|
|
5021
5020
|
if (shadowedHeuristicTokenCount === void 0) throw new Error(`surface node ${String(seq)} is absent from the atomic legacy projection`);
|
|
5022
|
-
const
|
|
5021
|
+
const resultView = viewToolResult(event.data.message);
|
|
5022
|
+
const content = resultView.blocks;
|
|
5023
5023
|
candidates.push({
|
|
5024
5024
|
seq,
|
|
5025
5025
|
event,
|
|
5026
|
-
call: calls.get(
|
|
5026
|
+
call: calls.get(resultView.callId ?? "") ?? {
|
|
5027
5027
|
name: "unknown",
|
|
5028
5028
|
arguments: "{}"
|
|
5029
5029
|
},
|
|
@@ -5037,15 +5037,14 @@ var ToolResultPruner = class extends Service {
|
|
|
5037
5037
|
planNative(candidate, session, stage, policy, view) {
|
|
5038
5038
|
if (this.isRecoveryExempt(session, candidate)) return null;
|
|
5039
5039
|
if (candidate.characterPressure <= charsForTokens(policy.nativeTriggerTokens)) return null;
|
|
5040
|
-
const
|
|
5041
|
-
if (onlyTextBlocks(
|
|
5040
|
+
const resultContent = viewToolResult(candidate.event.data.message).blocks;
|
|
5041
|
+
if (onlyTextBlocks(resultContent) === null) return null;
|
|
5042
5042
|
const sourceSeq = rootToolResultSeq(session, candidate.seq);
|
|
5043
5043
|
const marker = (startLine) => recoveryMarker(sourceRef(session, sourceSeq), "tool result middle pruned", startLine);
|
|
5044
5044
|
let head = this.state.config.headChars;
|
|
5045
5045
|
let tail = this.state.config.tailChars;
|
|
5046
5046
|
for (let attempt = 0; attempt < 10; attempt += 1) {
|
|
5047
|
-
const
|
|
5048
|
-
const content = nativePruneContent(result.content, threshold, head, tail, marker);
|
|
5047
|
+
const content = nativePruneContent(resultContent, head + codePointLength(marker(1)) + tail, head, tail, marker);
|
|
5049
5048
|
if (content !== null) {
|
|
5050
5049
|
const plan = this.plan(candidate, content, sourceSeq, "native-head-tail", stage, "native-tool-result", void 0, view);
|
|
5051
5050
|
if (plan !== null && plan.tokensAfter <= policy.nativeTargetTokens) return plan;
|
|
@@ -5064,8 +5063,7 @@ var ToolResultPruner = class extends Service {
|
|
|
5064
5063
|
*/
|
|
5065
5064
|
planDedupe(candidate, session, policy, view) {
|
|
5066
5065
|
if (typeof candidate.event.surfaceOp === "object") return null;
|
|
5067
|
-
const
|
|
5068
|
-
const text = flattenPlainText(result.content);
|
|
5066
|
+
const text = flattenPlainText(viewToolResult(candidate.event.data.message).blocks);
|
|
5069
5067
|
if (text === void 0) return null;
|
|
5070
5068
|
if (candidate.characterPressure <= charsForTokens(policy.freshTriggerTokens)) return null;
|
|
5071
5069
|
let table = this.state.dedupeTables.get(session);
|
|
@@ -5094,11 +5092,11 @@ var ToolResultPruner = class extends Service {
|
|
|
5094
5092
|
}
|
|
5095
5093
|
planFresh(candidate, session, policy, view) {
|
|
5096
5094
|
if (typeof candidate.event.surfaceOp === "object") return null;
|
|
5097
|
-
const
|
|
5095
|
+
const resultView = viewToolResult(candidate.event.data.message);
|
|
5098
5096
|
if (candidate.characterPressure <= charsForTokens(policy.freshTriggerTokens)) return null;
|
|
5099
5097
|
const sourceSeq = candidate.seq;
|
|
5100
5098
|
const sourceRef$1 = sourceRef(session, sourceSeq);
|
|
5101
|
-
const textBlock = onlyTextBlock(
|
|
5099
|
+
const textBlock = onlyTextBlock(resultView.blocks);
|
|
5102
5100
|
if (textBlock !== null) {
|
|
5103
5101
|
let budgetChars = Math.max(1, Math.floor(codePointLength(textBlock.text) * .75));
|
|
5104
5102
|
const codeSkeleton = this.activeSettings(session).codeSkeleton.enabled;
|
|
@@ -5109,7 +5107,7 @@ var ToolResultPruner = class extends Service {
|
|
|
5109
5107
|
text: textBlock.text,
|
|
5110
5108
|
budgetChars,
|
|
5111
5109
|
sourceRef: sourceRef$1,
|
|
5112
|
-
isError:
|
|
5110
|
+
isError: resultView.isError || candidate.event.data.error !== void 0,
|
|
5113
5111
|
codeSkeleton
|
|
5114
5112
|
});
|
|
5115
5113
|
if (output !== null) {
|
|
@@ -5132,8 +5130,8 @@ var ToolResultPruner = class extends Service {
|
|
|
5132
5130
|
if (isError(candidate)) return this.planErrorEvidence(candidate, session, view, stage, targetTokens, component, historyMode);
|
|
5133
5131
|
const sourceSeq = rootToolResultSeq(session, candidate.seq);
|
|
5134
5132
|
const sourceRef$2 = sourceRef(session, sourceSeq);
|
|
5135
|
-
const
|
|
5136
|
-
if (onlyTextBlocks(
|
|
5133
|
+
const redactedContent = viewToolResult(candidate.event.data.message).blocks;
|
|
5134
|
+
if (onlyTextBlocks(redactedContent) === null) return null;
|
|
5137
5135
|
const text = [
|
|
5138
5136
|
"[Tool result reduced to satisfy the completed-step aggregate budget]",
|
|
5139
5137
|
`tool: ${candidate.call.name}`,
|
|
@@ -5149,8 +5147,7 @@ var ToolResultPruner = class extends Service {
|
|
|
5149
5147
|
/** Preserve bounded diagnostic evidence whenever an all-text error is reduced. */
|
|
5150
5148
|
planErrorEvidence(candidate, session, view, stage, targetTokens, component = "aggregate", historyMode) {
|
|
5151
5149
|
if (!isError(candidate)) return null;
|
|
5152
|
-
const
|
|
5153
|
-
const blocks = onlyTextBlocks(result.content);
|
|
5150
|
+
const blocks = onlyTextBlocks(viewToolResult(candidate.event.data.message).blocks);
|
|
5154
5151
|
if (blocks === null) return null;
|
|
5155
5152
|
const text = blocks.map((block) => block.text).join("\n");
|
|
5156
5153
|
const sourceSeq = rootToolResultSeq(session, candidate.seq);
|
|
@@ -5188,8 +5185,7 @@ var ToolResultPruner = class extends Service {
|
|
|
5188
5185
|
const protectedSeqs = this.protectedHistoryCandidateSeqs(candidates, policy);
|
|
5189
5186
|
const isUnsafe = (candidate) => {
|
|
5190
5187
|
if (this.isRecoveryExempt(session, candidate)) return true;
|
|
5191
|
-
const
|
|
5192
|
-
const block = onlyTextBlock(result.content);
|
|
5188
|
+
const block = onlyTextBlock(viewToolResult(candidate.event.data.message).blocks);
|
|
5193
5189
|
if (block?.text.includes("[Intent summary") === true) return true;
|
|
5194
5190
|
return block?.text.includes("[Old tool result content cleared from active context]") === true;
|
|
5195
5191
|
};
|
|
@@ -5229,8 +5225,8 @@ var ToolResultPruner = class extends Service {
|
|
|
5229
5225
|
const required = Math.max(minReclaimChars, total - trigger, ...microTarget === void 0 ? [] : [charsForTokens(view.totalTokens) - microTarget]);
|
|
5230
5226
|
const batchTarget = microTarget === void 0 ? minReclaimChars : required;
|
|
5231
5227
|
for (const candidate of eligible) {
|
|
5232
|
-
const
|
|
5233
|
-
const block = onlyTextBlock(
|
|
5228
|
+
const resultView = viewToolResult(candidate.event.data.message);
|
|
5229
|
+
const block = onlyTextBlock(resultView.blocks);
|
|
5234
5230
|
if (policy.presetOptions?.readState === true && block !== null) {
|
|
5235
5231
|
const readPath = toolCallPath(candidate.call.arguments);
|
|
5236
5232
|
const estimatorExpired = this.state.estimatorVerdicts.get(session)?.get(candidate.seq) === true;
|
|
@@ -5256,7 +5252,7 @@ var ToolResultPruner = class extends Service {
|
|
|
5256
5252
|
toolName: candidate.call.name,
|
|
5257
5253
|
sourceRef: sourceRef(session, sourceSeq),
|
|
5258
5254
|
charsBefore: codePointLength(block.text),
|
|
5259
|
-
isError:
|
|
5255
|
+
isError: resultView.isError || candidate.event.data.error !== void 0,
|
|
5260
5256
|
text: block.text,
|
|
5261
5257
|
compact: false
|
|
5262
5258
|
});
|
|
@@ -5266,7 +5262,7 @@ var ToolResultPruner = class extends Service {
|
|
|
5266
5262
|
text: block.text,
|
|
5267
5263
|
budgetChars: 1200,
|
|
5268
5264
|
sourceRef: sourceRef(session, sourceSeq),
|
|
5269
|
-
isError:
|
|
5265
|
+
isError: resultView.isError || candidate.event.data.error !== void 0
|
|
5270
5266
|
}, output)) continue;
|
|
5271
5267
|
let replacementText = output.text;
|
|
5272
5268
|
if (policy.presetOptions?.readState === true) {
|
|
@@ -5368,15 +5364,16 @@ var ToolResultPruner = class extends Service {
|
|
|
5368
5364
|
const resultSeqs = nodes.slice(index + 1, index + 1 + calls.length);
|
|
5369
5365
|
if (resultSeqs.length !== calls.length || resultSeqs.some((seq) => protectedResults.has(seq))) continue;
|
|
5370
5366
|
const results = resultSeqs.map((seq) => events[seq]);
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
const
|
|
5374
|
-
if (
|
|
5375
|
-
|
|
5367
|
+
const resultViews = results.map((event) => event?.type === "tool/result" ? viewToolResult(event.data.message) : void 0);
|
|
5368
|
+
if (results.some((event, resultIndex) => {
|
|
5369
|
+
const view = resultViews[resultIndex];
|
|
5370
|
+
if (event?.type !== "tool/result" || view === void 0 || event.data.turn !== assistant.data.turn || event.data.step !== assistant.data.step || event.data.error !== void 0) return true;
|
|
5371
|
+
if (view.isError) return true;
|
|
5372
|
+
return view.blocks.some((contentBlock) => contentBlock.type !== "text");
|
|
5376
5373
|
})) continue;
|
|
5377
5374
|
const next = events[nodes[index + 1 + calls.length] ?? -1];
|
|
5378
5375
|
if (next?.type === "tool/result" && next.data.turn === assistant.data.turn && next.data.step === assistant.data.step) continue;
|
|
5379
|
-
const resultIds =
|
|
5376
|
+
const resultIds = resultViews.map((view) => view === void 0 ? "" : String(view.callId));
|
|
5380
5377
|
if (new Set(resultIds).size !== resultIds.length || resultIds.some((id, resultIndex) => id !== callIds[resultIndex])) continue;
|
|
5381
5378
|
const shadowedSeqs = [assistantSeq, ...resultSeqs];
|
|
5382
5379
|
const roots = shadowedSeqs.map((seq) => this.uniqueAppendRoot(session, seq));
|
|
@@ -5464,7 +5461,7 @@ var ToolResultPruner = class extends Service {
|
|
|
5464
5461
|
tokenizerId: exact === true && exactSurface !== void 0 ? exactSurface.tokenizerId : "characters",
|
|
5465
5462
|
tokenizerRevision: exact === true && exactSurface !== void 0 ? exactSurface.tokenizerRevision : "chars-per-token-4.0"
|
|
5466
5463
|
});
|
|
5467
|
-
const groupText = shadowedSeqs.map((seq) => sessionEvents(session)[seq]).filter((event) => event?.type === "tool/result").map((event) => flattenPlainText(event.data.message.
|
|
5464
|
+
const groupText = shadowedSeqs.map((seq) => sessionEvents(session)[seq]).filter((event) => event?.type === "tool/result").map((event) => flattenPlainText(viewToolResult(event.data.message).blocks)).filter((text) => text !== void 0).join("\n");
|
|
5468
5465
|
if (groupText.length > 0) getSavingsLedger().recordSaving({
|
|
5469
5466
|
sessionId: String(session.id),
|
|
5470
5467
|
component: "tail-trim",
|
|
@@ -5527,7 +5524,7 @@ var ToolResultPruner = class extends Service {
|
|
|
5527
5524
|
const tokensBefore = exact ? countBefore.tokens : charsToTokens(charsBefore);
|
|
5528
5525
|
const tokensAfter = exact ? countAfter.tokens : charsToTokens(charsAfter);
|
|
5529
5526
|
if (options.noNetSavingsGuard === true) {
|
|
5530
|
-
const originalBlocks = onlyTextBlocks(candidate.event.data.message.
|
|
5527
|
+
const originalBlocks = onlyTextBlocks(viewToolResult(candidate.event.data.message).blocks);
|
|
5531
5528
|
const replacementBlocks = onlyTextBlocks(content);
|
|
5532
5529
|
if (originalBlocks !== null && replacementBlocks !== null) {
|
|
5533
5530
|
const originalChars = originalBlocks.reduce((sum, block) => sum + codePointLength(block.text), 0);
|
|
@@ -5554,6 +5551,7 @@ var ToolResultPruner = class extends Service {
|
|
|
5554
5551
|
}
|
|
5555
5552
|
land(session, plan) {
|
|
5556
5553
|
const { candidate } = plan;
|
|
5554
|
+
const resultView = viewToolResult(candidate.event.data.message);
|
|
5557
5555
|
const message = freezeMessage({
|
|
5558
5556
|
...candidate.event.data.message,
|
|
5559
5557
|
content: plan.content
|
|
@@ -5618,7 +5616,7 @@ var ToolResultPruner = class extends Service {
|
|
|
5618
5616
|
originalSeq: candidate.seq,
|
|
5619
5617
|
sourceSeq: plan.sourceSeq,
|
|
5620
5618
|
replacementSeq: replacement.seq,
|
|
5621
|
-
callId:
|
|
5619
|
+
callId: resultView.callId,
|
|
5622
5620
|
reducer: plan.reducer,
|
|
5623
5621
|
stage: plan.stage,
|
|
5624
5622
|
charsBefore: plan.charsBefore,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._5-1n_a_settingsSection {
|
|
2
2
|
max-width: 720px;
|
|
3
3
|
color: var(--dsw-alias-label-primary);
|
|
4
4
|
flex-direction: column;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
display: flex;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
.
|
|
9
|
+
._5-1n_a_settingsTitle {
|
|
10
10
|
color: var(--dsw-alias-label-primary);
|
|
11
11
|
margin: 0;
|
|
12
12
|
font-size: 16px;
|
|
@@ -14,24 +14,24 @@
|
|
|
14
14
|
line-height: 24px;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.
|
|
17
|
+
._5-1n_a_settingsDescription {
|
|
18
18
|
color: var(--dsw-alias-label-tertiary);
|
|
19
19
|
margin: 0;
|
|
20
20
|
font-size: 14px;
|
|
21
21
|
line-height: 22px;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
.
|
|
24
|
+
._5-1n_a_root {
|
|
25
25
|
width: 100%;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
.
|
|
28
|
+
._5-1n_a_profileGrid {
|
|
29
29
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
30
30
|
gap: 10px;
|
|
31
31
|
display: grid;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
.
|
|
34
|
+
._5-1n_a_profileCard {
|
|
35
35
|
border: 1px solid var(--dsw-alias-border-l2);
|
|
36
36
|
min-height: 112px;
|
|
37
37
|
color: var(--dsw-alias-label-primary);
|
|
@@ -45,41 +45,41 @@
|
|
|
45
45
|
display: flex;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.
|
|
48
|
+
._5-1n_a_profileCard:hover:not(:disabled) {
|
|
49
49
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.
|
|
52
|
+
._5-1n_a_profileCard[aria-pressed="true"] {
|
|
53
53
|
border-color: var(--dsw-alias-label-primary);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
.
|
|
56
|
+
._5-1n_a_profileCard:active:not(:disabled) {
|
|
57
57
|
transform: scale(.99);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
.
|
|
60
|
+
._5-1n_a_profileCard:disabled {
|
|
61
61
|
cursor: default;
|
|
62
62
|
opacity: .6;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
.
|
|
65
|
+
._5-1n_a_profileCard:focus-visible {
|
|
66
66
|
outline-offset: 2px;
|
|
67
67
|
outline: 2px solid;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
.
|
|
70
|
+
._5-1n_a_profileCardTop {
|
|
71
71
|
align-items: center;
|
|
72
72
|
gap: 8px;
|
|
73
73
|
display: flex;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
.
|
|
76
|
+
._5-1n_a_profileCardTitle {
|
|
77
77
|
font-size: 14px;
|
|
78
78
|
font-weight: 500;
|
|
79
79
|
line-height: 20px;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
.
|
|
82
|
+
._5-1n_a_profileCurrent {
|
|
83
83
|
background: var(--dsw-alias-label-primary);
|
|
84
84
|
color: var(--dsw-alias-bg-base);
|
|
85
85
|
border-radius: 999px;
|
|
@@ -88,13 +88,13 @@
|
|
|
88
88
|
line-height: 14px;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
.
|
|
91
|
+
._5-1n_a_profileCardDetail {
|
|
92
92
|
color: var(--dsw-alias-label-secondary);
|
|
93
93
|
font-size: 12px;
|
|
94
94
|
line-height: 18px;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
.
|
|
97
|
+
._5-1n_a_button {
|
|
98
98
|
border: 1px solid var(--dsw-alias-border-l2);
|
|
99
99
|
width: 100%;
|
|
100
100
|
min-height: 34px;
|
|
@@ -109,27 +109,27 @@
|
|
|
109
109
|
display: flex;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
.
|
|
112
|
+
._5-1n_a_button:hover {
|
|
113
113
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
.
|
|
116
|
+
._5-1n_a_button:disabled {
|
|
117
117
|
cursor: default;
|
|
118
118
|
opacity: .6;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
.
|
|
121
|
+
._5-1n_a_copy {
|
|
122
122
|
flex: 1;
|
|
123
123
|
min-width: 0;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
.
|
|
126
|
+
._5-1n_a_label {
|
|
127
127
|
color: var(--dsw-alias-label-tertiary);
|
|
128
128
|
font-size: 11px;
|
|
129
129
|
line-height: 14px;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
.
|
|
132
|
+
._5-1n_a_value {
|
|
133
133
|
text-overflow: ellipsis;
|
|
134
134
|
white-space: nowrap;
|
|
135
135
|
font-size: 13px;
|
|
@@ -137,24 +137,24 @@
|
|
|
137
137
|
overflow: hidden;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
.
|
|
140
|
+
._5-1n_a_chevron {
|
|
141
141
|
color: var(--dsw-alias-label-secondary);
|
|
142
142
|
flex: none;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
.
|
|
145
|
+
._5-1n_a_menuCopy {
|
|
146
146
|
flex-direction: column;
|
|
147
147
|
gap: 2px;
|
|
148
148
|
min-width: 220px;
|
|
149
149
|
display: flex;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
.
|
|
152
|
+
._5-1n_a_menuTitle {
|
|
153
153
|
font-size: 13px;
|
|
154
154
|
line-height: 17px;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
.
|
|
157
|
+
._5-1n_a_menuDetail {
|
|
158
158
|
white-space: normal;
|
|
159
159
|
max-width: 290px;
|
|
160
160
|
color: var(--dsw-alias-label-tertiary);
|
|
@@ -162,61 +162,61 @@
|
|
|
162
162
|
line-height: 15px;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
.
|
|
165
|
+
._5-1n_a_error {
|
|
166
166
|
color: var(--dsw-alias-state-error-primary);
|
|
167
167
|
padding: 4px 8px 0;
|
|
168
168
|
font-size: 11px;
|
|
169
169
|
line-height: 15px;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
.
|
|
172
|
+
._5-1n_a_unavailable {
|
|
173
173
|
color: var(--dsw-alias-label-tertiary);
|
|
174
174
|
padding: 4px 8px 0;
|
|
175
175
|
font-size: 11px;
|
|
176
176
|
line-height: 15px;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
.
|
|
179
|
+
._5-1n_a_settingsHint {
|
|
180
180
|
color: var(--dsw-alias-label-secondary);
|
|
181
181
|
padding: 4px 8px 0;
|
|
182
182
|
font-size: 11px;
|
|
183
183
|
line-height: 15px;
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
.
|
|
186
|
+
._5-1n_a_pricing {
|
|
187
187
|
color: var(--dsw-alias-label-tertiary);
|
|
188
188
|
padding: 4px 8px 0;
|
|
189
189
|
font-size: 11px;
|
|
190
190
|
line-height: 15px;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
.
|
|
193
|
+
._5-1n_a_custom {
|
|
194
194
|
border-top: 1px solid var(--dsw-alias-border-l2);
|
|
195
195
|
margin-top: 16px;
|
|
196
196
|
padding: 16px 0 0;
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
.
|
|
199
|
+
._5-1n_a_customTitle {
|
|
200
200
|
margin: 0 0 6px;
|
|
201
201
|
font-size: 13px;
|
|
202
202
|
line-height: 17px;
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
-
.
|
|
205
|
+
._5-1n_a_customNote {
|
|
206
206
|
color: var(--dsw-alias-label-tertiary);
|
|
207
207
|
margin: 4px 0;
|
|
208
208
|
font-size: 11px;
|
|
209
209
|
line-height: 15px;
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
.
|
|
212
|
+
._5-1n_a_stage {
|
|
213
213
|
border: 0;
|
|
214
214
|
border-top: 1px solid var(--dsw-alias-border-l2);
|
|
215
215
|
margin: 12px 0 0;
|
|
216
216
|
padding: 12px 0 0;
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
-
.
|
|
219
|
+
._5-1n_a_stageToggle {
|
|
220
220
|
align-items: center;
|
|
221
221
|
gap: 6px;
|
|
222
222
|
font-size: 12px;
|
|
@@ -224,13 +224,13 @@
|
|
|
224
224
|
display: inline-flex;
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
-
.
|
|
227
|
+
._5-1n_a_fieldGrid {
|
|
228
228
|
grid-template-columns: 1fr;
|
|
229
229
|
gap: 8px;
|
|
230
230
|
display: grid;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
.
|
|
233
|
+
._5-1n_a_field {
|
|
234
234
|
min-width: 0;
|
|
235
235
|
color: var(--dsw-alias-label-secondary);
|
|
236
236
|
flex-direction: column;
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
display: flex;
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
.
|
|
244
|
+
._5-1n_a_field input, ._5-1n_a_field select {
|
|
245
245
|
box-sizing: border-box;
|
|
246
246
|
border: 1px solid var(--dsw-alias-border-l2);
|
|
247
247
|
background: var(--dsw-alias-bg-base);
|
|
@@ -253,19 +253,19 @@
|
|
|
253
253
|
padding: 4px 6px;
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
.
|
|
256
|
+
._5-1n_a_field input:focus-visible, ._5-1n_a_field select:focus-visible, ._5-1n_a_actions button:focus-visible {
|
|
257
257
|
outline-offset: 2px;
|
|
258
258
|
outline: 2px solid;
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
.
|
|
261
|
+
._5-1n_a_actions {
|
|
262
262
|
flex-wrap: wrap;
|
|
263
263
|
gap: 8px;
|
|
264
264
|
margin-top: 10px;
|
|
265
265
|
display: flex;
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
.
|
|
268
|
+
._5-1n_a_actions button {
|
|
269
269
|
border: 1px solid var(--dsw-alias-border-l2);
|
|
270
270
|
min-height: 30px;
|
|
271
271
|
color: var(--dsw-alias-label-primary);
|
|
@@ -274,40 +274,40 @@
|
|
|
274
274
|
padding: 4px 8px;
|
|
275
275
|
}
|
|
276
276
|
|
|
277
|
-
.
|
|
277
|
+
._5-1n_a_actions button:active:not(:disabled) {
|
|
278
278
|
transform: scale(.98);
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
-
.
|
|
281
|
+
._5-1n_a_actions button:disabled {
|
|
282
282
|
opacity: .6;
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
@media (width <= 560px) {
|
|
286
|
-
.
|
|
286
|
+
._5-1n_a_profileGrid {
|
|
287
287
|
grid-template-columns: 1fr;
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
.
|
|
291
|
+
._5-1n_a_autoCompact {
|
|
292
292
|
border: 1px solid #80808059;
|
|
293
293
|
border-radius: 8px;
|
|
294
294
|
margin-top: 24px;
|
|
295
295
|
padding: 16px;
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
-
.
|
|
298
|
+
._5-1n_a_autoCompactTitle {
|
|
299
299
|
margin: 0 0 8px;
|
|
300
300
|
font-size: 15px;
|
|
301
301
|
font-weight: 600;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
.
|
|
304
|
+
._5-1n_a_autoCompactRisk {
|
|
305
305
|
opacity: .9;
|
|
306
306
|
margin: 8px 0 0;
|
|
307
307
|
font-size: 12px;
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
-
.
|
|
310
|
+
._5-1n_a_savingsCard {
|
|
311
311
|
border: 1px solid #ffffff1a;
|
|
312
312
|
border-radius: 8px;
|
|
313
313
|
flex-direction: column;
|
|
@@ -317,33 +317,33 @@
|
|
|
317
317
|
display: flex;
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
-
.
|
|
320
|
+
._5-1n_a_savingsRow {
|
|
321
321
|
justify-content: space-between;
|
|
322
322
|
align-items: baseline;
|
|
323
323
|
gap: 12px;
|
|
324
324
|
display: flex;
|
|
325
325
|
}
|
|
326
326
|
|
|
327
|
-
.
|
|
327
|
+
._5-1n_a_savingsNetPositive strong {
|
|
328
328
|
color: #30d158;
|
|
329
329
|
}
|
|
330
330
|
|
|
331
|
-
.
|
|
331
|
+
._5-1n_a_savingsNetNegative strong {
|
|
332
332
|
color: #ff9f0a;
|
|
333
333
|
}
|
|
334
334
|
|
|
335
|
-
.
|
|
335
|
+
._5-1n_a_savingsMuted {
|
|
336
336
|
opacity: .66;
|
|
337
337
|
font-size: .92em;
|
|
338
338
|
}
|
|
339
339
|
|
|
340
|
-
.
|
|
340
|
+
._5-1n_a_savingsBreakdown {
|
|
341
341
|
border-top: 1px solid #ffffff14;
|
|
342
342
|
margin-top: 4px;
|
|
343
343
|
padding-top: 4px;
|
|
344
344
|
}
|
|
345
345
|
|
|
346
|
-
.
|
|
346
|
+
._5-1n_a_savingsNote {
|
|
347
347
|
opacity: .5;
|
|
348
348
|
margin-top: 4px;
|
|
349
349
|
font-size: .85em;
|