dsh-context-compression-improved 0.8.0-beta.4 → 0.8.0-beta.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/CHANGELOG.md +13 -0
- package/package.json +1 -1
- package/packages/selector/dsh.plugin.json +1 -1
- package/packages/selector/lib/client.d.ts +22 -0
- package/packages/selector/lib/client.js +528 -3
- package/packages/selector/lib/{intent-gate.js → config.js} +153 -136
- package/packages/selector/lib/index.d.ts +13 -1
- package/packages/selector/lib/index.js +215 -50
- package/packages/selector/lib/profiles.d.ts +6 -0
- package/packages/selector/lib/pruner.d.ts +6 -0
- package/packages/selector/lib/pruner.js +1 -1
- package/packages/selector/src/client/CompressionProfileControls.tsx +33 -0
- package/packages/selector/src/client/CompressionProfileSelector.tsx +1 -0
- package/packages/selector/src/client/decode.ts +5 -1
- package/packages/selector/src/client/index.ts +37 -0
- package/packages/selector/src/client/locales/de.ts +21 -0
- package/packages/selector/src/client/locales/es.ts +21 -0
- package/packages/selector/src/client/locales/fr.ts +21 -0
- package/packages/selector/src/client/locales/it.ts +21 -0
- package/packages/selector/src/client/locales/ja.ts +21 -0
- package/packages/selector/src/client/locales/ko.ts +21 -0
- package/packages/selector/src/client/locales/ru.ts +21 -0
- package/packages/selector/src/client/locales.ts +42 -0
- package/packages/selector/src/client/monitor-fab.ts +307 -0
- package/packages/selector/src/client/settings-section.tsx +9 -2
- package/packages/selector/src/index.ts +126 -60
- package/packages/selector/src/profiles.ts +17 -0
- package/packages/selector/src/runtime/config.ts +26 -1
- package/packages/selector/src/runtime/monitor.ts +149 -0
- package/packages/selector/src/runtime/types.ts +7 -0
- package/packages/selector/tests/estimator-route-registration.host.spec.ts +8 -6
- package/packages/selector/tests/monitor-fab.client.spec.ts +117 -0
- package/packages/selector/tests/runtime/monitor.spec.ts +236 -0
- package/packages/selector/tests/settings-seat.client.spec.ts +1 -1
- package/scripts/packed-install-e2e.mjs +1 -1
- package/scripts/verify-release.mjs +1 -1
|
@@ -75,6 +75,10 @@ interface CodeSkeletonSettings {
|
|
|
75
75
|
interface IntentSummarySettings {
|
|
76
76
|
enabled: boolean;
|
|
77
77
|
}
|
|
78
|
+
/** Floating compression-monitor panel (FAB); visibility switch. */
|
|
79
|
+
interface MonitorPanelSettings {
|
|
80
|
+
enabled: boolean;
|
|
81
|
+
}
|
|
78
82
|
/** Browser-safe mirror of the runtime presetOptions section. */
|
|
79
83
|
interface PresetOptionsSettings {
|
|
80
84
|
readonly dedupeToolResults?: boolean;
|
|
@@ -107,6 +111,8 @@ interface ContextCompressionSettings {
|
|
|
107
111
|
codeSkeleton: CodeSkeletonSettings;
|
|
108
112
|
/** Turn-tail intent-summary gate captured independently of `profile`. */
|
|
109
113
|
intentSummary: IntentSummarySettings;
|
|
114
|
+
/** Floating compression-monitor panel (FAB); absent inherits hidden. */
|
|
115
|
+
monitorPanel?: MonitorPanelSettings;
|
|
110
116
|
/** Optional tokenpilot-inspired sub-capability overrides (presence-validated only). */
|
|
111
117
|
presetOptions?: PresetOptionsSettings;
|
|
112
118
|
}
|
|
@@ -143,6 +143,10 @@ interface CodeSkeletonSettings {
|
|
|
143
143
|
interface IntentSummarySettings {
|
|
144
144
|
enabled: boolean;
|
|
145
145
|
}
|
|
146
|
+
/** Floating compression-monitor panel (FAB); visibility switch. */
|
|
147
|
+
interface MonitorPanelSettings {
|
|
148
|
+
enabled: boolean;
|
|
149
|
+
}
|
|
146
150
|
/**
|
|
147
151
|
* Persisted sub-capability overrides for the `tokenpilot-inspired` preset.
|
|
148
152
|
* Absent fields inherit the preset defaults; the section is only meaningful
|
|
@@ -184,6 +188,8 @@ interface ContextCompressionSettings {
|
|
|
184
188
|
codeSkeleton: CodeSkeletonSettings;
|
|
185
189
|
/** Turn-tail intent-summary gate snapped independently of `profile`. */
|
|
186
190
|
intentSummary: IntentSummarySettings;
|
|
191
|
+
/** Floating compression-monitor panel (FAB); absent inherits hidden. */
|
|
192
|
+
monitorPanel?: MonitorPanelSettings;
|
|
187
193
|
/** Optional tokenpilot-inspired sub-capability overrides; absent inherits preset defaults. */
|
|
188
194
|
presetOptions?: PresetOptionsSettings;
|
|
189
195
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as recordIntentFold, C as evaluateIntentGate, D as getSummaryOverride, F as decimalRateNanoUnits, I as priceOfficialDeepSeekUsage, L as resolveOfficialDeepSeekPrice, M as recordScore, O as invalidateOnTaskChange, P as DEEPSEEK_OFFICIAL_PRICE_CATALOG_VERSION, R as getSavingsLedger, _ 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, j as recordRecertified, k as observeIntentEnabled, 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, w as getAdvisorState, y as deepFreeze } from "./config.js";
|
|
2
2
|
import { a as validatePublishedTailTrim, i as tailTrimStub, n as tailTrimMessage, o as eventBySeq, r as tailTrimRef, s as sessionEvents, t as parseTailTrimRef } from "./tail-trim.js";
|
|
3
3
|
import z from "@deepseek-ai/schemastery";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
@@ -239,6 +239,39 @@ export function IntentSummaryControls({ value, disabled, save, settle, t }: Inte
|
|
|
239
239
|
)
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
+
interface MonitorPanelControlsProps {
|
|
243
|
+
value: boolean
|
|
244
|
+
disabled: boolean
|
|
245
|
+
save: (enabled: boolean) => Promise<void>
|
|
246
|
+
settle: (operation: () => Promise<void>) => void
|
|
247
|
+
t: (key: ContextCompressionLocaleKey) => string
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Visibility switch of the floating compression-monitor panel (FAB). The
|
|
252
|
+
* panel itself is a body-level overlay driven by the monitor route; this card
|
|
253
|
+
* only decides whether it mounts.
|
|
254
|
+
*/
|
|
255
|
+
export function MonitorPanelControls({ value, disabled, save, settle, t }: MonitorPanelControlsProps) {
|
|
256
|
+
return (
|
|
257
|
+
<section className={css.autoCompact} aria-labelledby="context-compression-monitorpanel-title">
|
|
258
|
+
<h3 id="context-compression-monitorpanel-title" className={css.autoCompactTitle}>{t('monitorPanel.title')}</h3>
|
|
259
|
+
<p className={css.customNote}>{t('monitorPanel.description')}</p>
|
|
260
|
+
<label className={css.field}>
|
|
261
|
+
<span>{t('monitorPanel.enabled')}</span>
|
|
262
|
+
<select
|
|
263
|
+
value={value ? 'on' : 'off'}
|
|
264
|
+
disabled={disabled}
|
|
265
|
+
onChange={(event) => { settle(() => save(event.currentTarget.value === 'on')) }}
|
|
266
|
+
>
|
|
267
|
+
<option value="on">{t('monitorPanel.enabled.on')}</option>
|
|
268
|
+
<option value="off">{t('monitorPanel.enabled.off')}</option>
|
|
269
|
+
</select>
|
|
270
|
+
</label>
|
|
271
|
+
</section>
|
|
272
|
+
)
|
|
273
|
+
}
|
|
274
|
+
|
|
242
275
|
export function CodeSkeletonControls({ value, disabled, save, settle, t }: CodeSkeletonControlsProps) {
|
|
243
276
|
return (
|
|
244
277
|
<section className={css.autoCompact} aria-labelledby="context-compression-codeskeleton-title">
|
|
@@ -30,6 +30,7 @@ export interface CompressionSelectorInjected {
|
|
|
30
30
|
saveAutoCompact: (thresholdPercent: number) => Promise<void>
|
|
31
31
|
saveCodeSkeleton: (enabled: boolean) => Promise<void>
|
|
32
32
|
saveIntentSummary: (enabled: boolean) => Promise<void>
|
|
33
|
+
saveMonitorPanel: (enabled: boolean) => Promise<void>
|
|
33
34
|
/** Patch of `presetOptions` members; an explicit `undefined` clears that field. */
|
|
34
35
|
savePresetOptions: (options: import('./preset-options.ts').PresetOptionsPatch) => Promise<void>
|
|
35
36
|
}
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
decodeAutoCompactSettings,
|
|
7
7
|
decodeCodeSkeletonSettings,
|
|
8
8
|
decodeIntentSummarySettings,
|
|
9
|
+
decodeMonitorPanelSettings,
|
|
9
10
|
decodePresetOptionsSettings,
|
|
10
11
|
isCustomCompressionPolicy,
|
|
11
12
|
isPlainRecord,
|
|
@@ -26,7 +27,7 @@ import {
|
|
|
26
27
|
export function decodeSettings(value: unknown): ContextCompressionSettings | undefined {
|
|
27
28
|
if (!isPlainRecord(value)) return undefined
|
|
28
29
|
const keys = Object.keys(value)
|
|
29
|
-
if (keys.some(key => key !== 'profile' && key !== 'custom' && key !== 'autoCompact' && key !== 'codeSkeleton' && key !== 'intentSummary' && key !== 'presetOptions')) {
|
|
30
|
+
if (keys.some(key => key !== 'profile' && key !== 'custom' && key !== 'autoCompact' && key !== 'codeSkeleton' && key !== 'intentSummary' && key !== 'monitorPanel' && key !== 'presetOptions')) {
|
|
30
31
|
return undefined
|
|
31
32
|
}
|
|
32
33
|
const profile = (value as { profile?: unknown }).profile
|
|
@@ -34,6 +35,7 @@ export function decodeSettings(value: unknown): ContextCompressionSettings | und
|
|
|
34
35
|
const autoCompact = decodeAutoCompactSettings((value as { autoCompact?: unknown }).autoCompact)
|
|
35
36
|
const codeSkeleton = decodeCodeSkeletonSettings((value as { codeSkeleton?: unknown }).codeSkeleton)
|
|
36
37
|
const intentSummary = decodeIntentSummarySettings((value as { intentSummary?: unknown }).intentSummary)
|
|
38
|
+
const monitorPanel = decodeMonitorPanelSettings((value as { monitorPanel?: unknown }).monitorPanel)
|
|
37
39
|
const presetOptions = decodePresetOptionsSettings((value as { presetOptions?: unknown }).presetOptions)
|
|
38
40
|
return typeof profile === 'string'
|
|
39
41
|
&& (COMPRESSION_PROFILES as readonly string[]).includes(profile)
|
|
@@ -41,12 +43,14 @@ export function decodeSettings(value: unknown): ContextCompressionSettings | und
|
|
|
41
43
|
&& autoCompact !== undefined
|
|
42
44
|
&& codeSkeleton !== undefined
|
|
43
45
|
&& intentSummary !== undefined
|
|
46
|
+
&& monitorPanel !== undefined
|
|
44
47
|
? {
|
|
45
48
|
profile: profile as CompressionProfile,
|
|
46
49
|
custom: canonicalizeCustomPolicy(custom),
|
|
47
50
|
autoCompact,
|
|
48
51
|
codeSkeleton,
|
|
49
52
|
intentSummary,
|
|
53
|
+
...monitorPanel === undefined ? {} : { monitorPanel },
|
|
50
54
|
...presetOptions === undefined ? {} : { presetOptions },
|
|
51
55
|
}
|
|
52
56
|
: undefined
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
} from './CompressionProfileSelector.tsx'
|
|
11
11
|
import { DEFAULT_CUSTOM_COMPRESSION_POLICY } from '../profiles.ts'
|
|
12
12
|
import { decodeSettings } from './decode.ts'
|
|
13
|
+
import { initMonitorFab } from './monitor-fab.ts'
|
|
13
14
|
import { en, zh } from './locales.ts'
|
|
14
15
|
import { de } from './locales/de.ts'
|
|
15
16
|
import { es } from './locales/es.ts'
|
|
@@ -107,6 +108,36 @@ export function apply(ctx: ClientContext): void {
|
|
|
107
108
|
// binder, so locale switches are still followed.
|
|
108
109
|
const localeSvc = ctx.locale as { bind?: (n: string) => (key: string) => string } | undefined
|
|
109
110
|
const tNav = localeSvc?.bind?.(NS) ?? ((key: string) => key)
|
|
111
|
+
|
|
112
|
+
// 浮动监控面板(FAB): body 级幂等单例。enabled 读取走设置文档——表单句柄的
|
|
113
|
+
// 激活规则与旧 bind 相同,故 apply 侧 try/catch 兜底,注入工厂内再刷新读取闭包。
|
|
114
|
+
let readMonitorPanelEnabled = (): boolean => {
|
|
115
|
+
try {
|
|
116
|
+
const form = ctx.configForms.get<Record<string, unknown>>(ENTRY_ID)
|
|
117
|
+
return decodeSettings(form.getSnapshot().value?.settings)?.monitorPanel?.enabled ?? false
|
|
118
|
+
} catch {
|
|
119
|
+
return false
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
initMonitorFab({
|
|
123
|
+
t: tNav,
|
|
124
|
+
sessionIdOf: () => undefined, // v1: 全会话聚合(savings 卡同口径);会话级绑定待输入栏座位
|
|
125
|
+
enabledOf: () => readMonitorPanelEnabled(),
|
|
126
|
+
fetchSnapshot: async (sessionId) => {
|
|
127
|
+
const query = sessionId === undefined ? '' : `?sessionId=${encodeURIComponent(sessionId)}`
|
|
128
|
+
const response = await fetch(`/api/dsh-context-compression-improved/monitor${query}`, { headers: { 'cache-control': 'no-cache' } })
|
|
129
|
+
if (!response.ok) throw new Error(`monitor snapshot ${response.status}`)
|
|
130
|
+
return await response.json() as Parameters<typeof initMonitorFab>[0]['fetchSnapshot'] extends (...args: never[]) => Promise<infer T> ? T : never
|
|
131
|
+
},
|
|
132
|
+
applyOverride: async (sessionId, action) => {
|
|
133
|
+
const query = sessionId === undefined ? '' : `?sessionId=${encodeURIComponent(sessionId)}`
|
|
134
|
+
await fetch(`/api/dsh-context-compression-improved/monitor${query}`, {
|
|
135
|
+
method: 'POST',
|
|
136
|
+
headers: { 'content-type': 'application/json' },
|
|
137
|
+
body: JSON.stringify({ action }),
|
|
138
|
+
})
|
|
139
|
+
},
|
|
140
|
+
})
|
|
110
141
|
const injected = (): CompressionSelectorInjected => {
|
|
111
142
|
// 0.1.7: the compression document rides the selector row's entry config as
|
|
112
143
|
// the volatile `settings` field. The form handle is fetched per factory
|
|
@@ -116,6 +147,8 @@ export function apply(ctx: ClientContext): void {
|
|
|
116
147
|
const form = ctx.configForms.get<Record<string, unknown>>(ENTRY_ID)
|
|
117
148
|
const readDoc = (): ContextCompressionSettings | undefined =>
|
|
118
149
|
decodeSettings(form.getSnapshot().value?.settings)
|
|
150
|
+
readMonitorPanelEnabled = (): boolean =>
|
|
151
|
+
decodeSettings(form.getSnapshot().value?.settings)?.monitorPanel?.enabled ?? false
|
|
119
152
|
// useSyncExternalStore requires a getSnapshot that returns a STABLE
|
|
120
153
|
// reference between changes — a fresh object per call is React error #185
|
|
121
154
|
// (maximum update depth exceeded). Cache the projection keyed on the form
|
|
@@ -211,6 +244,10 @@ export function apply(ctx: ClientContext): void {
|
|
|
211
244
|
() => scope.set('intentSummary', { enabled }),
|
|
212
245
|
settings => settings.intentSummary.enabled === enabled,
|
|
213
246
|
),
|
|
247
|
+
saveMonitorPanel: enabled => writeAndConfirm(
|
|
248
|
+
() => scope.set('monitorPanel', { enabled }),
|
|
249
|
+
settings => settings.monitorPanel?.enabled === enabled,
|
|
250
|
+
),
|
|
214
251
|
savePresetOptions: options => {
|
|
215
252
|
// Path-addressed so one field write cannot delete its siblings: the
|
|
216
253
|
// previous whole-section set erased estimatorMode (and every other
|
|
@@ -69,6 +69,27 @@ export const de = {
|
|
|
69
69
|
'intentSummary.enabled': 'Abschluss-Zusammenfassung',
|
|
70
70
|
'intentSummary.enabled.on': 'Ein',
|
|
71
71
|
'intentSummary.enabled.off': 'Aus (Standard)',
|
|
72
|
+
'monitor.fab.title': 'Komprimierungs-Monitor',
|
|
73
|
+
'monitor.panel.title': 'Komprimierungs-Monitor',
|
|
74
|
+
'monitor.panel.net': 'Nettoeinsparung',
|
|
75
|
+
'monitor.panel.gross': 'Bruttoeinsparung',
|
|
76
|
+
'monitor.panel.offsets': 'Ausgleiche',
|
|
77
|
+
'monitor.panel.cacheHit': 'Cache-Trefferquote',
|
|
78
|
+
'monitor.panel.cost': 'Kosten (ist / gespart gesch.)',
|
|
79
|
+
'monitor.panel.intent': 'Intent-Zusammenfassung',
|
|
80
|
+
'monitor.panel.overrideHint': 'Sitzungs-Übersteuerung',
|
|
81
|
+
'monitor.panel.resume': 'Fortsetzen',
|
|
82
|
+
'monitor.panel.disable': 'Deaktivieren',
|
|
83
|
+
'monitor.panel.stateOn': 'ein',
|
|
84
|
+
'monitor.panel.stateOff': 'aus',
|
|
85
|
+
'monitor.panel.gateUnknown': 'noch nicht bewertet',
|
|
86
|
+
'monitor.panel.lastFold': 'Letzte Faltung',
|
|
87
|
+
'monitor.panel.stale': 'Snapshot nicht erreichbar — letzte Daten',
|
|
88
|
+
'monitorPanel.title': 'Komprimierungs-Monitorpanel',
|
|
89
|
+
'monitorPanel.description': 'Aktiviert erscheint neben dem Eingabebereich eine ziehbare Schwebekugel — öffne sie, um den Live-Komprimierungszustand zu beobachten: Nettoeinsparung (exakte Basis), Cache-Trefferquote, Kostenschätzung, das Turn-Tail-Gate und letzte Ausgleiche. Das Panel kann den Intent-Zusammenfassungsschalter der aktuellen Sitzung temporär übersteuern. Das Konto ist prozesslokal (Reset bei Host-Neustart).',
|
|
90
|
+
'monitorPanel.enabled': 'Monitorpanel',
|
|
91
|
+
'monitorPanel.enabled.on': 'Ein',
|
|
92
|
+
'monitorPanel.enabled.off': 'Aus (Standard)',
|
|
72
93
|
'custom.title': 'Eigene Strategie',
|
|
73
94
|
'custom.settingsHint': 'Detaillierte Parameter unter Einstellungen > Kontextkomprimierung wählen bearbeiten.',
|
|
74
95
|
'custom.sessionScope': 'Gespeicherte Änderungen greifen, wenn die aktuelle Compression-Runtime eine Sitzung zum ersten Mal beobachtet. Eine von dieser Runtime bereits beobachtete Sitzung behält ihre eingefrorene Strategie.',
|
|
@@ -69,6 +69,27 @@ export const es = {
|
|
|
69
69
|
'intentSummary.enabled': 'Resumen de intención al cierre',
|
|
70
70
|
'intentSummary.enabled.on': 'Sí',
|
|
71
71
|
'intentSummary.enabled.off': 'No (predeterminado)',
|
|
72
|
+
'monitor.fab.title': 'Monitor de compresión',
|
|
73
|
+
'monitor.panel.title': 'Monitor de compresión',
|
|
74
|
+
'monitor.panel.net': 'Ahorro neto',
|
|
75
|
+
'monitor.panel.gross': 'Ahorro bruto',
|
|
76
|
+
'monitor.panel.offsets': 'Compensaciones',
|
|
77
|
+
'monitor.panel.cacheHit': 'Tasa de acierto de caché',
|
|
78
|
+
'monitor.panel.cost': 'Coste (real / ahorro est.)',
|
|
79
|
+
'monitor.panel.intent': 'Resumen de intención',
|
|
80
|
+
'monitor.panel.overrideHint': 'Invalidación de sesión',
|
|
81
|
+
'monitor.panel.resume': 'Reanudar',
|
|
82
|
+
'monitor.panel.disable': 'Desactivar',
|
|
83
|
+
'monitor.panel.stateOn': 'sí',
|
|
84
|
+
'monitor.panel.stateOff': 'no',
|
|
85
|
+
'monitor.panel.gateUnknown': 'aún sin evaluar',
|
|
86
|
+
'monitor.panel.lastFold': 'Último plegado',
|
|
87
|
+
'monitor.panel.stale': 'Instantánea inalcanzable — se muestran los últimos datos',
|
|
88
|
+
'monitorPanel.title': 'Panel de monitor de compresión',
|
|
89
|
+
'monitorPanel.description': 'Al activarlo, junto al área de entrada aparece una burbuja flotante arrastrable — ábrela para observar el estado de compresión en vivo: ahorro neto (base exacta), tasa de acierto de caché, estimación de coste, la puerta de resumen de intención del turno y compensaciones recientes. El panel puede invalidar temporalmente el interruptor de resumen de intención de la sesión actual. El libro es por proceso (se reinicia al rearrancar el host).',
|
|
90
|
+
'monitorPanel.enabled': 'Panel de monitor',
|
|
91
|
+
'monitorPanel.enabled.on': 'Sí',
|
|
92
|
+
'monitorPanel.enabled.off': 'No (predeterminado)',
|
|
72
93
|
'custom.title': 'Política personalizada',
|
|
73
94
|
'custom.settingsHint': 'Edita los parámetros detallados en Ajustes > Selector de compresión de contexto.',
|
|
74
95
|
'custom.sessionScope': 'Los cambios guardados se aplican cuando el runtime de compresión actual observa una Session por primera vez. Una Session ya observada por ese runtime conserva su política congelada.',
|
|
@@ -69,6 +69,27 @@ export const fr = {
|
|
|
69
69
|
'intentSummary.enabled': 'Résumé d\'intention en fin de tour',
|
|
70
70
|
'intentSummary.enabled.on': 'Activé',
|
|
71
71
|
'intentSummary.enabled.off': 'Désactivé (par défaut)',
|
|
72
|
+
'monitor.fab.title': 'Monitor de compression',
|
|
73
|
+
'monitor.panel.title': 'Monitor de compression',
|
|
74
|
+
'monitor.panel.net': 'Économie nette',
|
|
75
|
+
'monitor.panel.gross': 'Économie brute',
|
|
76
|
+
'monitor.panel.offsets': 'Compensations',
|
|
77
|
+
'monitor.panel.cacheHit': 'Taux de réussite du cache',
|
|
78
|
+
'monitor.panel.cost': 'Coût (réel / écon. est.)',
|
|
79
|
+
'monitor.panel.intent': 'Résumé d\'intention',
|
|
80
|
+
'monitor.panel.overrideHint': 'Priorité de session',
|
|
81
|
+
'monitor.panel.resume': 'Reprendre',
|
|
82
|
+
'monitor.panel.disable': 'Désactiver',
|
|
83
|
+
'monitor.panel.stateOn': 'activé',
|
|
84
|
+
'monitor.panel.stateOff': 'désactivé',
|
|
85
|
+
'monitor.panel.gateUnknown': 'pas encore évalué',
|
|
86
|
+
'monitor.panel.lastFold': 'Dernier pliage',
|
|
87
|
+
'monitor.panel.stale': 'Instantané injoignable — dernières données',
|
|
88
|
+
'monitorPanel.title': 'Panneau de monitorage de compression',
|
|
89
|
+
'monitorPanel.description': 'Activé, une bulle flottante déplaçable apparaît près de la zone de saisie — ouvrez-la pour observer l\'état de compression en direct : économie nette (base exacte), taux de réussite du cache, estimation de coût, la porte de résumé d\'intention du tour et les compensations récentes. Le panneau peut contourner temporairement l\'interrupteur de résumé d\'intention de la session courante. Le registre est propre au processus (remis à zéro au redémarrage de l\'hôte).',
|
|
90
|
+
'monitorPanel.enabled': 'Panneau de monitorage',
|
|
91
|
+
'monitorPanel.enabled.on': 'Activé',
|
|
92
|
+
'monitorPanel.enabled.off': 'Désactivé (par défaut)',
|
|
72
93
|
'custom.title': 'Stratégie personnalisée',
|
|
73
94
|
'custom.settingsHint': 'Modifiez les paramètres détaillés dans Réglages > Sélecteur de compression du contexte.',
|
|
74
95
|
'custom.sessionScope': 'Les changements enregistrés s’appliquent quand le runtime de compression actuel observe une Session pour la première fois. Une Session déjà observée par ce runtime garde sa stratégie figée.',
|
|
@@ -69,6 +69,27 @@ export const it = {
|
|
|
69
69
|
'intentSummary.enabled': 'Riepilogo di intento a fine turno',
|
|
70
70
|
'intentSummary.enabled.on': 'On',
|
|
71
71
|
'intentSummary.enabled.off': 'Off (predefinito)',
|
|
72
|
+
'monitor.fab.title': 'Monitor compressione',
|
|
73
|
+
'monitor.panel.title': 'Monitor compressione',
|
|
74
|
+
'monitor.panel.net': 'Risparmio netto',
|
|
75
|
+
'monitor.panel.gross': 'Risparmio lordo',
|
|
76
|
+
'monitor.panel.offsets': 'Compensazioni',
|
|
77
|
+
'monitor.panel.cacheHit': 'Tasso di hit della cache',
|
|
78
|
+
'monitor.panel.cost': 'Costo (effettivo / stimo)',
|
|
79
|
+
'monitor.panel.intent': 'Riepilogo di intento',
|
|
80
|
+
'monitor.panel.overrideHint': 'Override di sessione',
|
|
81
|
+
'monitor.panel.resume': 'Riprendi',
|
|
82
|
+
'monitor.panel.disable': 'Disattiva',
|
|
83
|
+
'monitor.panel.stateOn': 'on',
|
|
84
|
+
'monitor.panel.stateOff': 'off',
|
|
85
|
+
'monitor.panel.gateUnknown': 'non ancora valutato',
|
|
86
|
+
'monitor.panel.lastFold': 'Ultima piegatura',
|
|
87
|
+
'monitor.panel.stale': 'Snapshot non raggiungibile — ultimi dati',
|
|
88
|
+
'monitorPanel.title': 'Pannello di monitoraggio compressione',
|
|
89
|
+
'monitorPanel.description': 'Quando attivo, accanto all\'area di input appare una bolla flottante trascinabile — aprila per osservare lo stato di compressione in tempo reale: risparmio netto (base esatta), tasso di hit della cache, stima dei costi, la soglia del riepilogo di intento del turno e le compensazioni recenti. Il pannello può ignorare temporaneamente l\'interruttore del riepilogo di intento della sessione corrente. Il registro è per processo (azzerato al riavvio dell\'host).',
|
|
90
|
+
'monitorPanel.enabled': 'Pannello di monitoraggio',
|
|
91
|
+
'monitorPanel.enabled.on': 'On',
|
|
92
|
+
'monitorPanel.enabled.off': 'Off (predefinito)',
|
|
72
93
|
'custom.title': 'Politica personalizzata',
|
|
73
94
|
'custom.settingsHint': 'Modifica i parametri dettagliati in Impostazioni > Selettore di compressione del contesto.',
|
|
74
95
|
'custom.sessionScope': 'Le modifiche salvate si applicano quando l’attuale runtime di compressione osserva una Sessione per la prima volta. Una Sessione già osservata da quel runtime mantiene la sua politica congelata.',
|
|
@@ -69,6 +69,27 @@ export const ja = {
|
|
|
69
69
|
'intentSummary.enabled': 'ターン末尾インテント要約',
|
|
70
70
|
'intentSummary.enabled.on': 'オン',
|
|
71
71
|
'intentSummary.enabled.off': 'オフ(既定)',
|
|
72
|
+
'monitor.fab.title': '圧縮モニター',
|
|
73
|
+
'monitor.panel.title': '圧縮モニター',
|
|
74
|
+
'monitor.panel.net': '正味節約',
|
|
75
|
+
'monitor.panel.gross': '総節約',
|
|
76
|
+
'monitor.panel.offsets': '相殺',
|
|
77
|
+
'monitor.panel.cacheHit': 'キャッシュ ヒット率',
|
|
78
|
+
'monitor.panel.cost': 'コスト(実績 / 節約概算)',
|
|
79
|
+
'monitor.panel.intent': 'インテント要約',
|
|
80
|
+
'monitor.panel.overrideHint': 'セッション上書き',
|
|
81
|
+
'monitor.panel.resume': '再開',
|
|
82
|
+
'monitor.panel.disable': '停止',
|
|
83
|
+
'monitor.panel.stateOn': 'オン',
|
|
84
|
+
'monitor.panel.stateOff': 'オフ',
|
|
85
|
+
'monitor.panel.gateUnknown': '未評価',
|
|
86
|
+
'monitor.panel.lastFold': '最後の折り畳み',
|
|
87
|
+
'monitor.panel.stale': 'スナップショット到達不能——前回データを表示',
|
|
88
|
+
'monitorPanel.title': '圧縮モニター パネル',
|
|
89
|
+
'monitorPanel.description': '有効にすると、入力欄のそばにドラッグできるフローティング バブルが現れます。開くとライブの圧縮状態を監視できます。正味節約(正確 basis)、キャッシュ ヒット率、コスト概算、ターン末尾インテント要約ゲート、最近の相殺。パネルから現セッションのインテント要約スイッチを一時的に上書きできます。台帳はプロセス単位(ホスト再起動でリセット)。',
|
|
90
|
+
'monitorPanel.enabled': 'モニター パネル',
|
|
91
|
+
'monitorPanel.enabled.on': 'オン',
|
|
92
|
+
'monitorPanel.enabled.off': 'オフ(既定)',
|
|
72
93
|
'custom.title': 'カスタムポリシー',
|
|
73
94
|
'custom.settingsHint': '詳細パラメーターは「設定 > コンテキスト圧縮セレクター」で編集してください。',
|
|
74
95
|
'custom.sessionScope': '保存した変更は、現在の圧縮ランタイムが次に Session を初めて観測したときに適用されます。そのランタイムに既に観測された Session は凍結済みポリシーを使い続けます。',
|
|
@@ -69,6 +69,27 @@ export const ko = {
|
|
|
69
69
|
'intentSummary.enabled': '턴 말머리 인텐트 요약',
|
|
70
70
|
'intentSummary.enabled.on': '켜기',
|
|
71
71
|
'intentSummary.enabled.off': '끄기(기본)',
|
|
72
|
+
'monitor.fab.title': '압축 모니터',
|
|
73
|
+
'monitor.panel.title': '압축 모니터',
|
|
74
|
+
'monitor.panel.net': '순 절감',
|
|
75
|
+
'monitor.panel.gross': '총 절감',
|
|
76
|
+
'monitor.panel.offsets': '상쇄',
|
|
77
|
+
'monitor.panel.cacheHit': '캐시 적중률',
|
|
78
|
+
'monitor.panel.cost': '비용 (실제 / 절감 추정)',
|
|
79
|
+
'monitor.panel.intent': '인텐트 요약',
|
|
80
|
+
'monitor.panel.overrideHint': '세션 재정의',
|
|
81
|
+
'monitor.panel.resume': '재개',
|
|
82
|
+
'monitor.panel.disable': '중지',
|
|
83
|
+
'monitor.panel.stateOn': '켬',
|
|
84
|
+
'monitor.panel.stateOff': '끔',
|
|
85
|
+
'monitor.panel.gateUnknown': '아직 평가 안 됨',
|
|
86
|
+
'monitor.panel.lastFold': '마지막 접기',
|
|
87
|
+
'monitor.panel.stale': '스냅샷 도달 불가——이전 데이터 표시',
|
|
88
|
+
'monitorPanel.title': '압축 모니터 패널',
|
|
89
|
+
'monitorPanel.description': '켜면 입력 영역 옆에 드래그 가능한 플로팅 버블이 나타납니다. 열면 라이브 압축 상태를 볼 수 있습니다. 순 절감(정확 기준), 캐시 적중률, 비용 추정, 턴 말머리 인텐트 요약 게이트, 최근 상쇄. 패널에서 현재 세션의 인텐트 요약 스위치를 임시로 전환할 수 있습니다. 장부는 프로세스 단위(호스트 재시작 시 초기화).',
|
|
90
|
+
'monitorPanel.enabled': '모니터 패널',
|
|
91
|
+
'monitorPanel.enabled.on': '켜기',
|
|
92
|
+
'monitorPanel.enabled.off': '끄기(기본)',
|
|
72
93
|
'custom.title': '커스텀 정책',
|
|
73
94
|
'custom.settingsHint': '세부 파라미터는 「설정 > 컨텍스트 압축 셀렉터」에서 편집하세요.',
|
|
74
95
|
'custom.sessionScope': '저장된 변경 사항은 현재 압축 런타임이 Session을 처음 관측하는 시점에 적용됩니다. 해당 런타임이 이미 관측한 Session은 동결된 정책을 계속 사용합니다.',
|
|
@@ -69,6 +69,27 @@ export const ru = {
|
|
|
69
69
|
'intentSummary.enabled': 'Итог намерения в конце хода',
|
|
70
70
|
'intentSummary.enabled.on': 'Вкл',
|
|
71
71
|
'intentSummary.enabled.off': 'Выкл (по умолчанию)',
|
|
72
|
+
'monitor.fab.title': 'Монитор сжатия',
|
|
73
|
+
'monitor.panel.title': 'Монитор сжатия',
|
|
74
|
+
'monitor.panel.net': 'Чистая экономия',
|
|
75
|
+
'monitor.panel.gross': 'Валовая экономия',
|
|
76
|
+
'monitor.panel.offsets': 'Компенсации',
|
|
77
|
+
'monitor.panel.cacheHit': 'Процент попаданий кэша',
|
|
78
|
+
'monitor.panel.cost': 'Стоимость (факт / эконом. оценка)',
|
|
79
|
+
'monitor.panel.intent': 'Итог намерения',
|
|
80
|
+
'monitor.panel.overrideHint': 'Приоритет сессии',
|
|
81
|
+
'monitor.panel.resume': 'Возобновить',
|
|
82
|
+
'monitor.panel.disable': 'Отключить',
|
|
83
|
+
'monitor.panel.stateOn': 'вкл',
|
|
84
|
+
'monitor.panel.stateOff': 'выкл',
|
|
85
|
+
'monitor.panel.gateUnknown': 'ещё не оценено',
|
|
86
|
+
'monitor.panel.lastFold': 'Последняя свёртка',
|
|
87
|
+
'monitor.panel.stale': 'Снимок недоступен — показаны последние данные',
|
|
88
|
+
'monitorPanel.title': 'Панель мониторинга сжатия',
|
|
89
|
+
'monitorPanel.description': 'При включении рядом с областью ввода появляется перетаскиваемый плавающий шарик — откройте его, чтобы следить за состоянием сжатия в реальном времени: чистая экономия (точная база), процент попаданий кэша, оценка стоимости, шлюз итогов намерения хода и последние компенсации. Панель может временно переключить тумблер итогов намерения текущей сессии. Реестр живёт в процессе (обнуляется при перезапуске хоста).',
|
|
90
|
+
'monitorPanel.enabled': 'Панель мониторинга',
|
|
91
|
+
'monitorPanel.enabled.on': 'Вкл',
|
|
92
|
+
'monitorPanel.enabled.off': 'Выкл (по умолчанию)',
|
|
72
93
|
'custom.title': 'Пользовательская стратегия',
|
|
73
94
|
'custom.settingsHint': 'Подробные параметры — в «Настройки > Выбор сжатия контекста».',
|
|
74
95
|
'custom.sessionScope': 'Сохранённые изменения применяются, когда текущий runtime сжатия впервые наблюдает Session. Session, уже наблюдаемая этим runtime, сохраняет свою замороженную стратегию.',
|
|
@@ -67,6 +67,27 @@ export const zh = {
|
|
|
67
67
|
'intentSummary.enabled': '回合末意图摘要',
|
|
68
68
|
'intentSummary.enabled.on': '开',
|
|
69
69
|
'intentSummary.enabled.off': '关(默认)',
|
|
70
|
+
'monitor.fab.title': '压缩监控',
|
|
71
|
+
'monitor.panel.title': '压缩监控',
|
|
72
|
+
'monitor.panel.net': '净节省',
|
|
73
|
+
'monitor.panel.gross': '毛节省',
|
|
74
|
+
'monitor.panel.offsets': '抵消',
|
|
75
|
+
'monitor.panel.cacheHit': '缓存命中率',
|
|
76
|
+
'monitor.panel.cost': '成本(实际 / 省估)',
|
|
77
|
+
'monitor.panel.intent': '意图摘要',
|
|
78
|
+
'monitor.panel.overrideHint': '会话覆盖',
|
|
79
|
+
'monitor.panel.resume': '恢复',
|
|
80
|
+
'monitor.panel.disable': '停用',
|
|
81
|
+
'monitor.panel.stateOn': '开',
|
|
82
|
+
'monitor.panel.stateOff': '关',
|
|
83
|
+
'monitor.panel.gateUnknown': '未评估',
|
|
84
|
+
'monitor.panel.lastFold': '最近折叠',
|
|
85
|
+
'monitor.panel.stale': '快照不可达——显示上次数据',
|
|
86
|
+
'monitorPanel.title': '压缩监控悬浮面板',
|
|
87
|
+
'monitorPanel.description': '开启后,输入区旁出现可拖拽的悬浮球,点开即监控当前压缩状态:净节省(精确口径)、缓存命中率、成本估算、回合末意图摘要门控与最近抵消;面板内可临时覆盖当前会话的意图摘要开关。账本为进程内口径(宿主重启归零)。',
|
|
88
|
+
'monitorPanel.enabled': '悬浮面板',
|
|
89
|
+
'monitorPanel.enabled.on': '开',
|
|
90
|
+
'monitorPanel.enabled.off': '关(默认)',
|
|
70
91
|
'custom.title': 'Custom 策略',
|
|
71
92
|
'custom.settingsHint': '具体参数请前往“设置 > 上下文压缩选择器”中编辑。',
|
|
72
93
|
'custom.sessionScope': '保存后的修改会在当前压缩运行时随后首次观察某个 Session 时生效;已被该运行时观察的 Session 继续使用其冻结策略。',
|
|
@@ -188,6 +209,27 @@ export const en = {
|
|
|
188
209
|
'intentSummary.enabled': 'Turn-tail intent summary',
|
|
189
210
|
'intentSummary.enabled.on': 'On',
|
|
190
211
|
'intentSummary.enabled.off': 'Off (default)',
|
|
212
|
+
'monitor.fab.title': 'Compression monitor',
|
|
213
|
+
'monitor.panel.title': 'Compression monitor',
|
|
214
|
+
'monitor.panel.net': 'Net savings',
|
|
215
|
+
'monitor.panel.gross': 'Gross savings',
|
|
216
|
+
'monitor.panel.offsets': 'Offsets',
|
|
217
|
+
'monitor.panel.cacheHit': 'Cache hit rate',
|
|
218
|
+
'monitor.panel.cost': 'Cost (actual / saved est.)',
|
|
219
|
+
'monitor.panel.intent': 'Intent summary',
|
|
220
|
+
'monitor.panel.overrideHint': 'Session override',
|
|
221
|
+
'monitor.panel.resume': 'Resume',
|
|
222
|
+
'monitor.panel.disable': 'Disable',
|
|
223
|
+
'monitor.panel.stateOn': 'on',
|
|
224
|
+
'monitor.panel.stateOff': 'off',
|
|
225
|
+
'monitor.panel.gateUnknown': 'not evaluated yet',
|
|
226
|
+
'monitor.panel.lastFold': 'Last fold',
|
|
227
|
+
'monitor.panel.stale': 'Snapshot unreachable — showing last data',
|
|
228
|
+
'monitorPanel.title': 'Compression monitor panel',
|
|
229
|
+
'monitorPanel.description': 'When on, a draggable floating bubble appears next to the input area — open it to watch live compression state: net savings (exact basis), cache hit rate, cost estimate, the turn-tail intent-summary gate and recent offsets. The panel can temporarily override the current session\'s intent-summary switch. The ledger is per-process (reset when the host restarts).',
|
|
230
|
+
'monitorPanel.enabled': 'Monitor panel',
|
|
231
|
+
'monitorPanel.enabled.on': 'On',
|
|
232
|
+
'monitorPanel.enabled.off': 'Off (default)',
|
|
191
233
|
'custom.title': 'Custom policy',
|
|
192
234
|
'custom.settingsHint': 'Edit detailed parameters in Settings > Context compression selector.',
|
|
193
235
|
'custom.sessionScope': 'Saved changes apply when the current compression runtime next observes a Session for the first time. A Session already observed by that runtime keeps its frozen policy.',
|