dsh-context-compression-improved 0.5.7 → 0.5.8
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 +9 -0
- package/package.json +16 -17
- package/packages/selector/dsh.plugin.json +1 -1
- package/packages/selector/lib/client.d.ts +59 -0
- package/packages/selector/lib/client.js +1012 -17
- package/packages/selector/lib/{advisor-state.js → config.js} +816 -65
- package/packages/selector/lib/index.d.ts +13 -1
- package/packages/selector/lib/index.js +295 -3
- package/packages/selector/lib/pruner.d.ts +65 -0
- package/packages/selector/lib/pruner.js +497 -262
- package/packages/selector/lib/style.css +42 -0
- package/packages/selector/src/client/CompressionProfileControls.tsx +67 -0
- package/packages/selector/src/client/CompressionProfileSelector.module.css +29 -0
- package/packages/selector/src/client/CompressionProfileSelector.tsx +2 -0
- package/packages/selector/src/client/decode.ts +10 -2
- package/packages/selector/src/client/index.ts +62 -0
- package/packages/selector/src/client/locales/de.ts +43 -0
- package/packages/selector/src/client/locales/es.ts +43 -0
- package/packages/selector/src/client/locales/fr.ts +43 -0
- package/packages/selector/src/client/locales/it.ts +43 -0
- package/packages/selector/src/client/locales/ja.ts +43 -0
- package/packages/selector/src/client/locales/ko.ts +43 -0
- package/packages/selector/src/client/locales/ru.ts +43 -0
- package/packages/selector/src/client/locales.ts +86 -0
- package/packages/selector/src/client/monitor-fab.ts +336 -0
- package/packages/selector/src/client/savings-card.tsx +150 -0
- package/packages/selector/src/client/settings-section.tsx +18 -2
- package/packages/selector/src/index.ts +215 -5
- package/packages/selector/src/profiles.ts +37 -0
- package/packages/selector/src/pruner/state.ts +7 -0
- package/packages/selector/src/pruner.ts +337 -3
- package/packages/selector/src/runtime/audit.ts +17 -0
- package/packages/selector/src/runtime/config.ts +52 -2
- package/packages/selector/src/runtime/monitor.ts +235 -0
- package/packages/selector/src/runtime/retrieve.ts +24 -2
- package/packages/selector/src/runtime/savings.ts +337 -0
- package/packages/selector/src/runtime/summary-command.ts +127 -0
- package/packages/selector/src/runtime/tokenpilot/advisor-prompt.ts +46 -1
- package/packages/selector/src/runtime/tokenpilot/advisor-state.ts +55 -0
- 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/types.ts +19 -0
- package/packages/selector/tests/auto-compact.client.spec.tsx +2 -1
- package/packages/selector/tests/code-skeleton.client.spec.ts +3 -2
- package/packages/selector/tests/custom-contract.client.spec.ts +3 -2
- package/packages/selector/tests/estimator-channel.client.spec.tsx +1 -0
- package/packages/selector/tests/estimator-route-registration.host.spec.ts +10 -4
- package/packages/selector/tests/monitor-fab.client.spec.ts +138 -0
- package/packages/selector/tests/preset-options-write.client.spec.ts +1 -0
- package/packages/selector/tests/profiles.client.spec.tsx +4 -2
- package/packages/selector/tests/runtime/audit.spec.ts +1 -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/savings.spec.ts +120 -0
- package/packages/selector/tests/runtime/summary-command.spec.ts +154 -0
- package/packages/selector/tests/settings-seat.client.spec.ts +19 -7
- package/scripts/packed-install-e2e.mjs +1 -1
- package/scripts/verify-release.mjs +2 -1
|
@@ -306,3 +306,45 @@
|
|
|
306
306
|
margin: 8px 0 0;
|
|
307
307
|
font-size: 12px;
|
|
308
308
|
}
|
|
309
|
+
|
|
310
|
+
.xdtbuW_savingsCard {
|
|
311
|
+
border: 1px solid #ffffff1a;
|
|
312
|
+
border-radius: 8px;
|
|
313
|
+
flex-direction: column;
|
|
314
|
+
gap: 4px;
|
|
315
|
+
margin-top: 14px;
|
|
316
|
+
padding: 10px 12px;
|
|
317
|
+
display: flex;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.xdtbuW_savingsRow {
|
|
321
|
+
justify-content: space-between;
|
|
322
|
+
align-items: baseline;
|
|
323
|
+
gap: 12px;
|
|
324
|
+
display: flex;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.xdtbuW_savingsNetPositive strong {
|
|
328
|
+
color: #30d158;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.xdtbuW_savingsNetNegative strong {
|
|
332
|
+
color: #ff9f0a;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.xdtbuW_savingsMuted {
|
|
336
|
+
opacity: .66;
|
|
337
|
+
font-size: .92em;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.xdtbuW_savingsBreakdown {
|
|
341
|
+
border-top: 1px solid #ffffff14;
|
|
342
|
+
margin-top: 4px;
|
|
343
|
+
padding-top: 4px;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.xdtbuW_savingsNote {
|
|
347
|
+
opacity: .5;
|
|
348
|
+
margin-top: 4px;
|
|
349
|
+
font-size: .85em;
|
|
350
|
+
}
|
|
@@ -205,6 +205,73 @@ interface CodeSkeletonControlsProps {
|
|
|
205
205
|
* section. Deliberately minimal — an on/off select plus its own save path —
|
|
206
206
|
* because the gate is orthogonal to every profile and carries no parameters.
|
|
207
207
|
*/
|
|
208
|
+
interface IntentSummaryControlsProps {
|
|
209
|
+
value: boolean
|
|
210
|
+
disabled: boolean
|
|
211
|
+
save: (enabled: boolean) => Promise<void>
|
|
212
|
+
settle: (operation: () => Promise<void>) => void
|
|
213
|
+
t: (key: ContextCompressionLocaleKey) => string
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* The turn-tail intent summary fold gate. Same deliberately minimal shape as
|
|
218
|
+
* the code-skeleton gate: an on/off select with its own save path; the fold
|
|
219
|
+
* itself is gated by the growth constants and the per-session /ctx-summary
|
|
220
|
+
* override, none of which belong in this card.
|
|
221
|
+
*/
|
|
222
|
+
export function IntentSummaryControls({ value, disabled, save, settle, t }: IntentSummaryControlsProps) {
|
|
223
|
+
return (
|
|
224
|
+
<section className={css.autoCompact} aria-labelledby="context-compression-intentsummary-title">
|
|
225
|
+
<h3 id="context-compression-intentsummary-title" className={css.autoCompactTitle}>{t('intentSummary.title')}</h3>
|
|
226
|
+
<p className={css.customNote}>{t('intentSummary.description')}</p>
|
|
227
|
+
<label className={css.field}>
|
|
228
|
+
<span>{t('intentSummary.enabled')}</span>
|
|
229
|
+
<select
|
|
230
|
+
value={value ? 'on' : 'off'}
|
|
231
|
+
disabled={disabled}
|
|
232
|
+
onChange={(event) => { settle(() => save(event.currentTarget.value === 'on')) }}
|
|
233
|
+
>
|
|
234
|
+
<option value="on">{t('intentSummary.enabled.on')}</option>
|
|
235
|
+
<option value="off">{t('intentSummary.enabled.off')}</option>
|
|
236
|
+
</select>
|
|
237
|
+
</label>
|
|
238
|
+
</section>
|
|
239
|
+
)
|
|
240
|
+
}
|
|
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
|
+
|
|
208
275
|
export function CodeSkeletonControls({ value, disabled, save, settle, t }: CodeSkeletonControlsProps) {
|
|
209
276
|
return (
|
|
210
277
|
<section className={css.autoCompact} aria-labelledby="context-compression-codeskeleton-title">
|
|
@@ -168,3 +168,32 @@
|
|
|
168
168
|
font-size: 12px;
|
|
169
169
|
opacity: 0.9;
|
|
170
170
|
}
|
|
171
|
+
|
|
172
|
+
.savingsCard {
|
|
173
|
+
margin-top: 14px;
|
|
174
|
+
padding: 10px 12px;
|
|
175
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
176
|
+
border-radius: 8px;
|
|
177
|
+
display: flex;
|
|
178
|
+
flex-direction: column;
|
|
179
|
+
gap: 4px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.savingsRow {
|
|
183
|
+
display: flex;
|
|
184
|
+
justify-content: space-between;
|
|
185
|
+
align-items: baseline;
|
|
186
|
+
gap: 12px;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.savingsNetPositive strong { color: #30d158; }
|
|
190
|
+
.savingsNetNegative strong { color: #ff9f0a; }
|
|
191
|
+
.savingsMuted { opacity: 0.66; font-size: 0.92em; }
|
|
192
|
+
|
|
193
|
+
.savingsBreakdown {
|
|
194
|
+
border-top: 1px solid rgba(255, 255, 255, 0.08);
|
|
195
|
+
margin-top: 4px;
|
|
196
|
+
padding-top: 4px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.savingsNote { opacity: 0.5; font-size: 0.85em; margin-top: 4px; }
|
|
@@ -29,6 +29,8 @@ export interface CompressionSelectorInjected {
|
|
|
29
29
|
resetCustom: () => Promise<void>
|
|
30
30
|
saveAutoCompact: (thresholdPercent: number) => Promise<void>
|
|
31
31
|
saveCodeSkeleton: (enabled: boolean) => Promise<void>
|
|
32
|
+
saveIntentSummary: (enabled: boolean) => Promise<void>
|
|
33
|
+
saveMonitorPanel: (enabled: boolean) => Promise<void>
|
|
32
34
|
/** Patch of `presetOptions` members; an explicit `undefined` clears that field. */
|
|
33
35
|
savePresetOptions: (options: import('./preset-options.ts').PresetOptionsPatch) => Promise<void>
|
|
34
36
|
}
|
|
@@ -5,6 +5,8 @@ import {
|
|
|
5
5
|
COMPRESSION_PROFILES,
|
|
6
6
|
decodeAutoCompactSettings,
|
|
7
7
|
decodeCodeSkeletonSettings,
|
|
8
|
+
decodeIntentSummarySettings,
|
|
9
|
+
decodeMonitorPanelSettings,
|
|
8
10
|
decodePresetOptionsSettings,
|
|
9
11
|
isCustomCompressionPolicy,
|
|
10
12
|
isPlainRecord,
|
|
@@ -15,7 +17,7 @@ import {
|
|
|
15
17
|
/**
|
|
16
18
|
* Decode one stored context-compression settings document with exactly the
|
|
17
19
|
* runtime schema's strictness: a plain object with only `profile`, `custom`,
|
|
18
|
-
* `autoCompact`, and `
|
|
20
|
+
* `autoCompact`, `codeSkeleton`, and `intentSummary` keys, a supported profile, a valid Custom
|
|
19
21
|
* document canonicalized to v3 exactly as the runtime resolver would, a
|
|
20
22
|
* strictly-shaped autoCompact section (absent inherits the 80% default), and
|
|
21
23
|
* a strictly-shaped codeSkeleton gate (absent inherits off). Anything else
|
|
@@ -25,24 +27,30 @@ import {
|
|
|
25
27
|
export function decodeSettings(value: unknown): ContextCompressionSettings | undefined {
|
|
26
28
|
if (!isPlainRecord(value)) return undefined
|
|
27
29
|
const keys = Object.keys(value)
|
|
28
|
-
if (keys.some(key => key !== 'profile' && key !== 'custom' && key !== 'autoCompact' && key !== 'codeSkeleton' && key !== 'presetOptions')) {
|
|
30
|
+
if (keys.some(key => key !== 'profile' && key !== 'custom' && key !== 'autoCompact' && key !== 'codeSkeleton' && key !== 'intentSummary' && key !== 'monitorPanel' && key !== 'presetOptions')) {
|
|
29
31
|
return undefined
|
|
30
32
|
}
|
|
31
33
|
const profile = (value as { profile?: unknown }).profile
|
|
32
34
|
const custom = (value as { custom?: unknown }).custom
|
|
33
35
|
const autoCompact = decodeAutoCompactSettings((value as { autoCompact?: unknown }).autoCompact)
|
|
34
36
|
const codeSkeleton = decodeCodeSkeletonSettings((value as { codeSkeleton?: unknown }).codeSkeleton)
|
|
37
|
+
const intentSummary = decodeIntentSummarySettings((value as { intentSummary?: unknown }).intentSummary)
|
|
38
|
+
const monitorPanel = decodeMonitorPanelSettings((value as { monitorPanel?: unknown }).monitorPanel)
|
|
35
39
|
const presetOptions = decodePresetOptionsSettings((value as { presetOptions?: unknown }).presetOptions)
|
|
36
40
|
return typeof profile === 'string'
|
|
37
41
|
&& (COMPRESSION_PROFILES as readonly string[]).includes(profile)
|
|
38
42
|
&& isCustomCompressionPolicy(custom)
|
|
39
43
|
&& autoCompact !== undefined
|
|
40
44
|
&& codeSkeleton !== undefined
|
|
45
|
+
&& intentSummary !== undefined
|
|
46
|
+
&& monitorPanel !== undefined
|
|
41
47
|
? {
|
|
42
48
|
profile: profile as CompressionProfile,
|
|
43
49
|
custom: canonicalizeCustomPolicy(custom),
|
|
44
50
|
autoCompact,
|
|
45
51
|
codeSkeleton,
|
|
52
|
+
intentSummary,
|
|
53
|
+
...monitorPanel === undefined ? {} : { monitorPanel },
|
|
46
54
|
...presetOptions === undefined ? {} : { presetOptions },
|
|
47
55
|
}
|
|
48
56
|
: undefined
|
|
@@ -19,6 +19,7 @@ import { ja } from './locales/ja.ts'
|
|
|
19
19
|
import { ko } from './locales/ko.ts'
|
|
20
20
|
import { ru } from './locales/ru.ts'
|
|
21
21
|
import { planPresetOptionsOps, presetOptionsOpsAccepted } from './preset-options.ts'
|
|
22
|
+
import { initMonitorFab } from './monitor-fab.ts'
|
|
22
23
|
|
|
23
24
|
/**
|
|
24
25
|
* Harness 0.1.5 mounts the web core's `slots` service on the client context
|
|
@@ -96,11 +97,47 @@ export function apply(ctx: ClientContext): void {
|
|
|
96
97
|
console.warn(`[dsh-context-compression-improved] locale "${language.id}" registration failed:`, error)
|
|
97
98
|
}
|
|
98
99
|
}
|
|
100
|
+
// Section label translator, captured EAGERLY: the settings shell evaluates
|
|
101
|
+
// `label()` during its own render; a lazy ctx.locale accessor inside the
|
|
102
|
+
// thunk would throw there if `locale` ever left this module's inject list.
|
|
103
|
+
const localeSvc = ctx.locale as { bind?: (n: string) => (key: string) => string } | undefined
|
|
104
|
+
const tNav = localeSvc?.bind?.(NS) ?? ((key: string) => key)
|
|
105
|
+
|
|
106
|
+
// 浮动监控面板(FAB): body 级幂等单例。enabled 读取走 0.1.5 的 settingsScope
|
|
107
|
+
// 文档——注入工厂内再刷新读取闭包(bind 发生在 settings.section 工厂里)。
|
|
108
|
+
let readMonitorPanelEnabled = (): boolean => false
|
|
109
|
+
// 浮动面板会话绑定:跟随输入栏座位的 inject 回调(裸 sessionId,pm longtask 同款)。
|
|
110
|
+
let latestSessionId: string | undefined
|
|
111
|
+
try {
|
|
112
|
+
initMonitorFab({
|
|
113
|
+
t: tNav,
|
|
114
|
+
sessionIdOf: () => latestSessionId,
|
|
115
|
+
enabledOf: () => readMonitorPanelEnabled(),
|
|
116
|
+
fetchSnapshot: async (sessionId) => {
|
|
117
|
+
const query = sessionId === undefined ? '' : `?sessionId=${encodeURIComponent(sessionId)}`
|
|
118
|
+
const response = await fetch(`/api/dsh-context-compression-improved/monitor${query}`, { headers: { 'cache-control': 'no-cache' } })
|
|
119
|
+
if (!response.ok) throw new Error(`monitor snapshot ${response.status}`)
|
|
120
|
+
return await response.json() as Parameters<typeof initMonitorFab>[0]['fetchSnapshot'] extends (...args: never[]) => Promise<infer T> ? T : never
|
|
121
|
+
},
|
|
122
|
+
applyOverride: async (sessionId, action) => {
|
|
123
|
+
const query = sessionId === undefined ? '' : `?sessionId=${encodeURIComponent(sessionId)}`
|
|
124
|
+
await fetch(`/api/dsh-context-compression-improved/monitor${query}`, {
|
|
125
|
+
method: 'POST',
|
|
126
|
+
headers: { 'content-type': 'application/json' },
|
|
127
|
+
body: JSON.stringify({ action }),
|
|
128
|
+
})
|
|
129
|
+
},
|
|
130
|
+
})
|
|
131
|
+
} catch (error) {
|
|
132
|
+
console.warn('[dsh-context-compression-improved] 监控浮动球挂载失败(不影响设置分节):', error)
|
|
133
|
+
}
|
|
99
134
|
const injected = (): CompressionSelectorInjected => {
|
|
100
135
|
// Bind per factory call on the caller's fiber (0.1.5: activation must
|
|
101
136
|
// never block on the settings transport; the scope disposer belongs to
|
|
102
137
|
// the calling registration's lifecycle).
|
|
103
138
|
const scope = ctx.settingsScope.bind<ContextCompressionSettings>({ namespace: NS, decode: decodeSettings })
|
|
139
|
+
readMonitorPanelEnabled = (): boolean =>
|
|
140
|
+
scope.getSnapshot().value?.monitorPanel?.enabled ?? false
|
|
104
141
|
const writeAndConfirm = async (
|
|
105
142
|
write: () => Promise<void>,
|
|
106
143
|
accepts: (settings: ContextCompressionSettings) => boolean,
|
|
@@ -141,6 +178,14 @@ export function apply(ctx: ClientContext): void {
|
|
|
141
178
|
() => scope.set('codeSkeleton', { enabled }),
|
|
142
179
|
settings => settings.codeSkeleton.enabled === enabled,
|
|
143
180
|
),
|
|
181
|
+
saveIntentSummary: enabled => writeAndConfirm(
|
|
182
|
+
() => scope.set('intentSummary', { enabled }),
|
|
183
|
+
settings => settings.intentSummary.enabled === enabled,
|
|
184
|
+
),
|
|
185
|
+
saveMonitorPanel: enabled => writeAndConfirm(
|
|
186
|
+
() => scope.set('monitorPanel', { enabled }),
|
|
187
|
+
settings => settings.monitorPanel?.enabled === enabled,
|
|
188
|
+
),
|
|
144
189
|
savePresetOptions: options => {
|
|
145
190
|
// Path-addressed so one field write cannot delete its siblings: the
|
|
146
191
|
// previous whole-section set erased estimatorMode (and every other
|
|
@@ -170,6 +215,23 @@ export function apply(ctx: ClientContext): void {
|
|
|
170
215
|
} catch (error) {
|
|
171
216
|
console.warn('[dsh-context-compression-improved] settings.section 注册失败(新宿主已收编):', error)
|
|
172
217
|
}
|
|
218
|
+
|
|
219
|
+
// 输入栏左座(0.1.5+ 宿主):组件刻意空渲染——注册此座位只为接收宿主的
|
|
220
|
+
// sessionId 注入回调,供浮动监控面板绑定会话(pm longtask 同款)。旧宿主
|
|
221
|
+
// 未声明该槽时激活期会抛错,try/catch 守卫(同上双槽冗余先例)。
|
|
222
|
+
try {
|
|
223
|
+
ctx.slots.inject('conversation.input.left', () => ctx.slots.register({
|
|
224
|
+
name: 'conversation.input.left',
|
|
225
|
+
id: 'context-compression-session-bind',
|
|
226
|
+
order: 170,
|
|
227
|
+
inject: (sessionId: string) => {
|
|
228
|
+
latestSessionId = sessionId
|
|
229
|
+
return {}
|
|
230
|
+
},
|
|
231
|
+
}, () => null))
|
|
232
|
+
} catch (error) {
|
|
233
|
+
console.warn('[dsh-context-compression-improved] conversation.input.left 注册失败(旧宿主无该槽,浮动面板保持聚合口径):', error)
|
|
234
|
+
}
|
|
173
235
|
}
|
|
174
236
|
|
|
175
237
|
export type {
|
|
@@ -64,6 +64,34 @@ export const de = {
|
|
|
64
64
|
'codeSkeleton.enabled': 'Code-Skelettkomprimierung',
|
|
65
65
|
'codeSkeleton.enabled.on': 'Ein',
|
|
66
66
|
'codeSkeleton.enabled.off': 'Aus (Standard)',
|
|
67
|
+
'intentSummary.title': 'Abschluss-Zusammenfassung (Turn-Tail)',
|
|
68
|
+
'intentSummary.description': 'Aktiviert faltet der Turn-Abschluss den verbrauchten Zuwachs nach semantischen Rollen zu Intent-Zusammenfassungsblöcken: Lese-Tool-Ergebnisse werden zu Einzeilern mit Ziel/Umfang, die Schreibklasse behält Skelettköpfe plus wörtliche Fehlerzeilen; die Landung erfolgt in der nächsten Druckrunde über die gewöhnliche Falt-Pipeline. Zündet nur, wenn die Wachstumsschwelle passiert ist (live Oberfläche >45 % und >50K Token seit der letzten Faltung). Gilt für neue Sitzungen; die aktuelle lässt sich mit /ctx-summary off|on|status übersteuern.',
|
|
69
|
+
'intentSummary.enabled': 'Abschluss-Zusammenfassung',
|
|
70
|
+
'intentSummary.enabled.on': 'Ein',
|
|
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.context': 'Kontextbelegung',
|
|
78
|
+
'monitor.panel.suggest': 'Kontextbelegung bei {pct}% — nahe der katastrophalen Vergessenszone; Komprimieren oder Kürzen des Verlaufs empfohlen',
|
|
79
|
+
'monitor.panel.cacheHit': 'Cache-Trefferquote',
|
|
80
|
+
'monitor.panel.cost': 'Kosten (ist / gespart gesch.)',
|
|
81
|
+
'monitor.panel.intent': 'Intent-Zusammenfassung',
|
|
82
|
+
'monitor.panel.overrideHint': 'Sitzungs-Übersteuerung',
|
|
83
|
+
'monitor.panel.resume': 'Fortsetzen',
|
|
84
|
+
'monitor.panel.disable': 'Deaktivieren',
|
|
85
|
+
'monitor.panel.stateOn': 'ein',
|
|
86
|
+
'monitor.panel.stateOff': 'aus',
|
|
87
|
+
'monitor.panel.gateUnknown': 'noch nicht bewertet',
|
|
88
|
+
'monitor.panel.lastFold': 'Letzte Faltung',
|
|
89
|
+
'monitor.panel.stale': 'Snapshot nicht erreichbar — letzte Daten',
|
|
90
|
+
'monitorPanel.title': 'Komprimierungs-Monitorpanel',
|
|
91
|
+
'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).',
|
|
92
|
+
'monitorPanel.enabled': 'Monitorpanel',
|
|
93
|
+
'monitorPanel.enabled.on': 'Ein',
|
|
94
|
+
'monitorPanel.enabled.off': 'Aus (Standard)',
|
|
67
95
|
'custom.title': 'Eigene Strategie',
|
|
68
96
|
'custom.settingsHint': 'Detaillierte Parameter unter Einstellungen > Kontextkomprimierung wählen bearbeiten.',
|
|
69
97
|
'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.',
|
|
@@ -95,4 +123,19 @@ export const de = {
|
|
|
95
123
|
'custom.save': 'Eigene Strategie speichern',
|
|
96
124
|
'custom.reset': 'Eigene Strategie zurücksetzen',
|
|
97
125
|
'custom.invalid': 'Werte der eigenen Strategie sind ungültig.',
|
|
126
|
+
'savings.title': 'Einsparungen (dieser Prozess)',
|
|
127
|
+
'savings.netExact': 'Netto gespeichert (exakte Basis)',
|
|
128
|
+
'savings.netEstimated': 'Netto gespeichert (geschätzte Basis)',
|
|
129
|
+
'savings.gross': 'Brutto gespeichert (bei Veröffentlichung)',
|
|
130
|
+
'savings.offsets': 'Abschläge (komprimiert, später vollständig gelesen)',
|
|
131
|
+
'savings.empty': 'Noch keine Komprimierung — Nettoeinsparungen erscheinen nach der ersten Reduktion.',
|
|
132
|
+
'savings.basisExact': 'exakt',
|
|
133
|
+
'savings.basisEstimated': 'geschätzt',
|
|
134
|
+
'savings.basisNote': 'Basen werden getrennt ausgewiesen, nie gemischt: exakt = DeepSeek-Tokenizer; geschätzt = chars/4. Erst Skelett, dann Volltext zählt als negative Einsparung (Netto kann unter null fallen).',
|
|
135
|
+
'savings.requests': 'Requests',
|
|
136
|
+
'savings.cacheHit': 'Cache hit rate',
|
|
137
|
+
'savings.actualCost': 'Actual cost (official prices)',
|
|
138
|
+
'savings.savedMoney': 'Estimated saved cost (input price)',
|
|
139
|
+
'savings.perSession': 'Session',
|
|
140
|
+
|
|
98
141
|
} satisfies Record<ContextCompressionLocaleKey, string>
|
|
@@ -64,6 +64,34 @@ export const es = {
|
|
|
64
64
|
'codeSkeleton.enabled': 'Compresión de esqueleto del código',
|
|
65
65
|
'codeSkeleton.enabled.on': 'Activado',
|
|
66
66
|
'codeSkeleton.enabled.off': 'Desactivado (predeterminado)',
|
|
67
|
+
'intentSummary.title': 'Resumen de intención al cierre del turno',
|
|
68
|
+
'intentSummary.description': 'Al activarlo, el postflight de cierre de turno pliega el incremento consumido en bloques de resumen de intención por rol semántico: los resultados de herramientas de lectura se convierten en registros de una línea con objetivo/escala y los de escritura conservan la cabecera de esqueleto más las líneas de error textuales; aterriza en la siguiente ronda de presión por el conducto de plegado normal. Solo se dispara si se supera la puerta de crecimiento (superficie activa >45 % y >50K tokens desde el último plegado). Aplica a sesiones nuevas; la actual se gobierna con /ctx-summary off|on|status.',
|
|
69
|
+
'intentSummary.enabled': 'Resumen de intención al cierre',
|
|
70
|
+
'intentSummary.enabled.on': 'Sí',
|
|
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.context': 'Ocupación del contexto',
|
|
78
|
+
'monitor.panel.suggest': 'La ocupación del contexto alcanzó el {pct} % — cerca de la zona de olvido catastrófico; se recomienda comprimir o recortar el historial',
|
|
79
|
+
'monitor.panel.cacheHit': 'Tasa de acierto de caché',
|
|
80
|
+
'monitor.panel.cost': 'Coste (real / ahorro est.)',
|
|
81
|
+
'monitor.panel.intent': 'Resumen de intención',
|
|
82
|
+
'monitor.panel.overrideHint': 'Invalidación de sesión',
|
|
83
|
+
'monitor.panel.resume': 'Reanudar',
|
|
84
|
+
'monitor.panel.disable': 'Desactivar',
|
|
85
|
+
'monitor.panel.stateOn': 'sí',
|
|
86
|
+
'monitor.panel.stateOff': 'no',
|
|
87
|
+
'monitor.panel.gateUnknown': 'aún sin evaluar',
|
|
88
|
+
'monitor.panel.lastFold': 'Último plegado',
|
|
89
|
+
'monitor.panel.stale': 'Instantánea inalcanzable — se muestran los últimos datos',
|
|
90
|
+
'monitorPanel.title': 'Panel de monitor de compresión',
|
|
91
|
+
'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).',
|
|
92
|
+
'monitorPanel.enabled': 'Panel de monitor',
|
|
93
|
+
'monitorPanel.enabled.on': 'Sí',
|
|
94
|
+
'monitorPanel.enabled.off': 'No (predeterminado)',
|
|
67
95
|
'custom.title': 'Política personalizada',
|
|
68
96
|
'custom.settingsHint': 'Edita los parámetros detallados en Ajustes > Selector de compresión de contexto.',
|
|
69
97
|
'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.',
|
|
@@ -95,4 +123,19 @@ export const es = {
|
|
|
95
123
|
'custom.save': 'Guardar la política personalizada',
|
|
96
124
|
'custom.reset': 'Restablecer la política personalizada',
|
|
97
125
|
'custom.invalid': 'Los valores de la política personalizada no son válidos.',
|
|
126
|
+
'savings.title': 'Ahorro (este proceso)',
|
|
127
|
+
'savings.netExact': 'Ahorro neto (base exacta)',
|
|
128
|
+
'savings.netEstimated': 'Ahorro neto (base estimada)',
|
|
129
|
+
'savings.gross': 'Ahorro bruto (al publicar)',
|
|
130
|
+
'savings.offsets': 'Compensaciones (contenido comprimido y luego releído completo)',
|
|
131
|
+
'savings.empty': 'Aún sin compresión: el ahorro neto aparece tras la primera reducción.',
|
|
132
|
+
'savings.basisExact': 'exacta',
|
|
133
|
+
'savings.basisEstimated': 'estimada',
|
|
134
|
+
'savings.basisNote': 'Las bases se informan por separado, nunca mezcladas: exacta = tokenizador DeepSeek; estimada = chars/4. Esqueleto seguido de lectura completa cuenta como ahorro negativo (el neto puede ser negativo).',
|
|
135
|
+
'savings.requests': 'Anfragen',
|
|
136
|
+
'savings.cacheHit': 'Cache-Trefferquote',
|
|
137
|
+
'savings.actualCost': 'Tatsächliche Kosten (offizielle Preise)',
|
|
138
|
+
'savings.savedMoney': 'Geschätzte Einsparung (Eingabepreis)',
|
|
139
|
+
'savings.perSession': 'Sitzung',
|
|
140
|
+
|
|
98
141
|
} satisfies Record<ContextCompressionLocaleKey, string>
|
|
@@ -64,6 +64,34 @@ export const fr = {
|
|
|
64
64
|
'codeSkeleton.enabled': 'Compression du code en squelette',
|
|
65
65
|
'codeSkeleton.enabled.on': 'Activé',
|
|
66
66
|
'codeSkeleton.enabled.off': 'Désactivé (par défaut)',
|
|
67
|
+
'intentSummary.title': 'Résumé d\'intention en fin de tour',
|
|
68
|
+
'intentSummary.description': 'Activé, le postflight de fin de tour plie l\'incrément consommé en blocs de résumé d\'intention par rôle sémantique : les résultats d\'outils de lecture deviennent des enregistrements une-ligne objectif/échelle, les écrits gardent la tête de squelette plus les lignes d\'erreur verbatim ; l\'atterrissage se fait au prochain tour de pression via le pipeline de pliage habituel. Ne se déclenche que si la porte de croissance passe (surface active >45 % et >50K tokens depuis le dernier pliage). S\'applique aux nouvelles sessions ; la session courante se pilote avec /ctx-summary off|on|status.',
|
|
69
|
+
'intentSummary.enabled': 'Résumé d\'intention en fin de tour',
|
|
70
|
+
'intentSummary.enabled.on': 'Activé',
|
|
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.context': 'Occupation du contexte',
|
|
78
|
+
'monitor.panel.suggest': 'Occupation du contexte à {pct} % — zone de perte de contexte imminente ; pensez à lancer une compression ou à réduire les anciens échanges',
|
|
79
|
+
'monitor.panel.cacheHit': 'Taux de réussite du cache',
|
|
80
|
+
'monitor.panel.cost': 'Coût (réel / écon. est.)',
|
|
81
|
+
'monitor.panel.intent': 'Résumé d\'intention',
|
|
82
|
+
'monitor.panel.overrideHint': 'Priorité de session',
|
|
83
|
+
'monitor.panel.resume': 'Reprendre',
|
|
84
|
+
'monitor.panel.disable': 'Désactiver',
|
|
85
|
+
'monitor.panel.stateOn': 'activé',
|
|
86
|
+
'monitor.panel.stateOff': 'désactivé',
|
|
87
|
+
'monitor.panel.gateUnknown': 'pas encore évalué',
|
|
88
|
+
'monitor.panel.lastFold': 'Dernier pliage',
|
|
89
|
+
'monitor.panel.stale': 'Instantané injoignable — dernières données',
|
|
90
|
+
'monitorPanel.title': 'Panneau de monitorage de compression',
|
|
91
|
+
'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).',
|
|
92
|
+
'monitorPanel.enabled': 'Panneau de monitorage',
|
|
93
|
+
'monitorPanel.enabled.on': 'Activé',
|
|
94
|
+
'monitorPanel.enabled.off': 'Désactivé (par défaut)',
|
|
67
95
|
'custom.title': 'Stratégie personnalisée',
|
|
68
96
|
'custom.settingsHint': 'Modifiez les paramètres détaillés dans Réglages > Sélecteur de compression du contexte.',
|
|
69
97
|
'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.',
|
|
@@ -95,4 +123,19 @@ export const fr = {
|
|
|
95
123
|
'custom.save': 'Enregistrer la stratégie personnalisée',
|
|
96
124
|
'custom.reset': 'Réinitialiser la stratégie personnalisée',
|
|
97
125
|
'custom.invalid': 'Valeurs de la stratégie personnalisée invalides.',
|
|
126
|
+
'savings.title': 'Économies (ce processus)',
|
|
127
|
+
'savings.netExact': 'Économie nette (base exacte)',
|
|
128
|
+
'savings.netEstimated': 'Économie nette (base estimée)',
|
|
129
|
+
'savings.gross': 'Économie brute (à la publication)',
|
|
130
|
+
'savings.offsets': 'Compensations (contenu compressé puis relu intégralement)',
|
|
131
|
+
'savings.empty': 'Aucune compression pour l’instant — l’économie nette apparaît après la première réduction.',
|
|
132
|
+
'savings.basisExact': 'exacte',
|
|
133
|
+
'savings.basisEstimated': 'estimée',
|
|
134
|
+
'savings.basisNote': 'Les bases sont présentées séparément, jamais mélangées : exacte = tokenizer DeepSeek ; estimée = chars/4. Un squelette suivi d’une lecture complète compte comme économie négative (le net peut être négatif).',
|
|
135
|
+
'savings.requests': 'Solicitudes',
|
|
136
|
+
'savings.cacheHit': 'Tasa de aciertos de caché',
|
|
137
|
+
'savings.actualCost': 'Coste real (precios oficiales)',
|
|
138
|
+
'savings.savedMoney': 'Ahorro estimado (precio de entrada)',
|
|
139
|
+
'savings.perSession': 'Sesión',
|
|
140
|
+
|
|
98
141
|
} satisfies Record<ContextCompressionLocaleKey, string>
|
|
@@ -64,6 +64,34 @@ export const it = {
|
|
|
64
64
|
'codeSkeleton.enabled': 'Compressione a scheletro del codice',
|
|
65
65
|
'codeSkeleton.enabled.on': 'Attivato',
|
|
66
66
|
'codeSkeleton.enabled.off': 'Disattivato (predefinito)',
|
|
67
|
+
'intentSummary.title': 'Riepilogo di intento a fine turno',
|
|
68
|
+
'intentSummary.description': 'Quando attivo, il postflight di fine turno piega l\'incremento consumato in blocchi di riepilogo di intento per ruolo semantico: i risultati degli strumenti di lettura diventano record a riga singola obiettivo/scala, quelli di scrittura mantengono la testa dello scheletro più le righe di errore testuali; atterra al prossimo round di pressione tramite la pipeline di piegatura ordinaria. Si attiva solo se la soglia di crescita passa (superficie attiva >45% e >50K token dall\'ultima piegatura). Vale per le nuove sessioni; quella corrente si governa con /ctx-summary off|on|status.',
|
|
69
|
+
'intentSummary.enabled': 'Riepilogo di intento a fine turno',
|
|
70
|
+
'intentSummary.enabled.on': 'On',
|
|
71
|
+
'intentSummary.enabled.off': 'Disattivato (predefinito)',
|
|
72
|
+
'monitorPanel.title': 'Pannello di monitoraggio compressione',
|
|
73
|
+
'monitor.fab.title': 'Monitor compressione',
|
|
74
|
+
'monitor.panel.title': 'Monitor compressione',
|
|
75
|
+
'monitor.panel.net': 'Risparmio netto',
|
|
76
|
+
'monitor.panel.gross': 'Risparmio lordo',
|
|
77
|
+
'monitor.panel.offsets': 'Compensazioni',
|
|
78
|
+
'monitor.panel.context': 'Occupazione del contesto',
|
|
79
|
+
'monitor.panel.suggest': 'Occupazione del contesto al {pct}% — vicini alla zona di dimenticanza catastrofica; consigliato comprimere o tagliare la cronologia',
|
|
80
|
+
'monitor.panel.cacheHit': 'Tasso di hit della cache',
|
|
81
|
+
'monitor.panel.cost': 'Costo (effettivo / stimo)',
|
|
82
|
+
'monitor.panel.intent': 'Riepilogo di intento',
|
|
83
|
+
'monitor.panel.overrideHint': 'Override di sessione',
|
|
84
|
+
'monitor.panel.resume': 'Riprendi',
|
|
85
|
+
'monitor.panel.disable': 'Disattiva',
|
|
86
|
+
'monitor.panel.stateOn': 'on',
|
|
87
|
+
'monitor.panel.stateOff': 'off',
|
|
88
|
+
'monitor.panel.gateUnknown': 'non ancora valutato',
|
|
89
|
+
'monitor.panel.lastFold': 'Ultima piegatura',
|
|
90
|
+
'monitor.panel.stale': 'Snapshot non raggiungibile — ultimi dati',
|
|
91
|
+
'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).',
|
|
92
|
+
'monitorPanel.enabled': 'Pannello di monitoraggio',
|
|
93
|
+
'monitorPanel.enabled.on': 'On',
|
|
94
|
+
'monitorPanel.enabled.off': 'Off (predefinito)',
|
|
67
95
|
'custom.title': 'Politica personalizzata',
|
|
68
96
|
'custom.settingsHint': 'Modifica i parametri dettagliati in Impostazioni > Selettore di compressione del contesto.',
|
|
69
97
|
'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.',
|
|
@@ -95,4 +123,19 @@ export const it = {
|
|
|
95
123
|
'custom.save': 'Salva la politica personalizzata',
|
|
96
124
|
'custom.reset': 'Reimposta la politica personalizzata',
|
|
97
125
|
'custom.invalid': 'I valori della politica personalizzata non sono validi.',
|
|
126
|
+
'savings.title': 'Risparmi (questo processo)',
|
|
127
|
+
'savings.netExact': 'Risparmio netto (base esatta)',
|
|
128
|
+
'savings.netEstimated': 'Risparmio netto (base stimata)',
|
|
129
|
+
'savings.gross': 'Risparmio lordo (alla pubblicazione)',
|
|
130
|
+
'savings.offsets': 'Compensazioni (contenuto compresso e poi riletto per intero)',
|
|
131
|
+
'savings.empty': 'Nessuna compressione — il risparmio netto appare dopo la prima riduzione.',
|
|
132
|
+
'savings.basisExact': 'esatta',
|
|
133
|
+
'savings.basisEstimated': 'stimata',
|
|
134
|
+
'savings.basisNote': 'Le basi sono riportate separatamente, mai miste: esatta = tokenizer DeepSeek; stimata = chars/4. Uno scheletro seguito dalla lettura completa conta come risparmio negativo (il netto può scendere sotto zero).',
|
|
135
|
+
'savings.requests': 'Requêtes',
|
|
136
|
+
'savings.cacheHit': 'Taux de cache',
|
|
137
|
+
'savings.actualCost': 'Coût réel (tarifs officiels)',
|
|
138
|
+
'savings.savedMoney': 'Économie estimée (prix d’entrée)',
|
|
139
|
+
'savings.perSession': 'Session',
|
|
140
|
+
|
|
98
141
|
} satisfies Record<ContextCompressionLocaleKey, string>
|
|
@@ -64,6 +64,34 @@ export const ja = {
|
|
|
64
64
|
'codeSkeleton.enabled': 'コードスケルトン圧縮',
|
|
65
65
|
'codeSkeleton.enabled.on': 'オン',
|
|
66
66
|
'codeSkeleton.enabled.off': 'オフ(既定)',
|
|
67
|
+
'intentSummary.title': 'ターン末尾インテント要約',
|
|
68
|
+
'intentSummary.description': '有効にすると、ターン境界のポストフライトが消費済み増分を意味役割ごとにインテント要約ブロックへ折り畳みます。読み系ツール結果は目標/規模の 1 行レコードに、書き系は骨格ヘッダーと逐語エラー行を保持し、次の圧力ラウンドで通常の折り畳みパイプラインを通じて着地します。成長ゲート(ライブ表面 >45%、前回の折り畳みから >50K トークン増)を通過したときだけ発火します。変更は新セッションに適用され、現セッションは /ctx-summary off|on|status で上書きできます。',
|
|
69
|
+
'intentSummary.enabled': 'ターン末尾インテント要約',
|
|
70
|
+
'intentSummary.enabled.on': 'オン',
|
|
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.context': 'コンテキスト占有',
|
|
78
|
+
'monitor.panel.suggest': 'コンテキスト占有が {pct}% に達しました——壊滅的忘却ゾーンに近づいています。圧縮または履歴の削減を推奨',
|
|
79
|
+
'monitor.panel.cacheHit': 'キャッシュ ヒット率',
|
|
80
|
+
'monitor.panel.cost': 'コスト(実績 / 節約概算)',
|
|
81
|
+
'monitor.panel.intent': 'インテント要約',
|
|
82
|
+
'monitor.panel.overrideHint': 'セッション上書き',
|
|
83
|
+
'monitor.panel.resume': '再開',
|
|
84
|
+
'monitor.panel.disable': '停止',
|
|
85
|
+
'monitor.panel.stateOn': 'オン',
|
|
86
|
+
'monitor.panel.stateOff': 'オフ',
|
|
87
|
+
'monitor.panel.gateUnknown': '未評価',
|
|
88
|
+
'monitor.panel.lastFold': '最後の折り畳み',
|
|
89
|
+
'monitor.panel.stale': 'スナップショット到達不能——前回データを表示',
|
|
90
|
+
'monitorPanel.title': '圧縮モニター パネル',
|
|
91
|
+
'monitorPanel.description': '有効にすると、入力欄のそばにドラッグできるフローティング バブルが現れます。開くとライブの圧縮状態を監視できます。正味節約(正確 basis)、キャッシュ ヒット率、コスト概算、ターン末尾インテント要約ゲート、最近の相殺。パネルから現セッションのインテント要約スイッチを一時的に上書きできます。台帳はプロセス単位(ホスト再起動でリセット)。',
|
|
92
|
+
'monitorPanel.enabled': 'モニター パネル',
|
|
93
|
+
'monitorPanel.enabled.on': 'オン',
|
|
94
|
+
'monitorPanel.enabled.off': 'オフ(既定)',
|
|
67
95
|
'custom.title': 'カスタムポリシー',
|
|
68
96
|
'custom.settingsHint': '詳細パラメーターは「設定 > コンテキスト圧縮セレクター」で編集してください。',
|
|
69
97
|
'custom.sessionScope': '保存した変更は、現在の圧縮ランタイムが次に Session を初めて観測したときに適用されます。そのランタイムに既に観測された Session は凍結済みポリシーを使い続けます。',
|
|
@@ -95,4 +123,19 @@ export const ja = {
|
|
|
95
123
|
'custom.save': 'カスタムポリシーを保存',
|
|
96
124
|
'custom.reset': 'カスタムポリシーをリセット',
|
|
97
125
|
'custom.invalid': 'カスタムポリシーの値が不正です。',
|
|
126
|
+
'savings.title': '節約統計(このプロセス)',
|
|
127
|
+
'savings.netExact': '純節約(正確口径)',
|
|
128
|
+
'savings.netEstimated': '純節約(推定口径)',
|
|
129
|
+
'savings.gross': '総節約(圧縮確定時)',
|
|
130
|
+
'savings.offsets': '相殺(圧縮後に全文再読)',
|
|
131
|
+
'savings.empty': 'まだ圧縮がありません。最初の削減後に純節約が表示されます。',
|
|
132
|
+
'savings.basisExact': '正確',
|
|
133
|
+
'savings.basisEstimated': '推定',
|
|
134
|
+
'savings.basisNote': '口径は分列し混算しません:正確 = DeepSeek トークナイザー、推定 = chars/4。スケルトン後に全文を読むと負の節約として計上されます(純額はマイナスになり得ます)。',
|
|
135
|
+
'savings.requests': 'Richieste',
|
|
136
|
+
'savings.cacheHit': 'Tasso di cache',
|
|
137
|
+
'savings.actualCost': 'Costo reale (prezzi ufficiali)',
|
|
138
|
+
'savings.savedMoney': 'Risparmio stimato (prezzo di input)',
|
|
139
|
+
'savings.perSession': 'Sessione',
|
|
140
|
+
|
|
98
141
|
} satisfies Record<ContextCompressionLocaleKey, string>
|