dsh-context-compression-improved 0.10.0 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -110
- package/README.zh.md +14 -104
- package/THIRD_PARTY_NOTICES.md +25 -7
- package/{packages/selector/dsh.plugin.json → dsh.plugin.json} +2 -2
- package/{packages/selector/lib → lib}/client.js +73 -12
- package/package.json +129 -116
- package/screenshots.json +3 -6
- package/.agents/plans/improve/checklist.md +0 -32
- package/.agents/plans/improve/findings.md +0 -102
- package/.agents/plans/improve/spec.md +0 -53
- package/.agents/plans/improve/tasks.md +0 -70
- package/.gitattributes +0 -2
- package/.githooks/pre-push +0 -37
- package/.github/workflows/ci.yml +0 -39
- package/CHANGELOG.de.md +0 -580
- package/CHANGELOG.es.md +0 -588
- package/CHANGELOG.fr.md +0 -576
- package/CHANGELOG.it.md +0 -577
- package/CHANGELOG.ja.md +0 -261
- package/CHANGELOG.ko.md +0 -254
- package/CHANGELOG.md +0 -544
- package/CHANGELOG.ru.md +0 -554
- package/CHANGELOG.zh.md +0 -238
- package/CONTRIBUTING.md +0 -22
- package/README.de.md +0 -96
- package/README.es.md +0 -96
- package/README.fr.md +0 -96
- package/README.it.md +0 -96
- package/README.ja.md +0 -102
- package/README.ko.md +0 -102
- package/README.ru.md +0 -96
- package/SECURITY.md +0 -18
- package/assets/board.png +0 -0
- package/assets/context.png +0 -0
- package/docs/assets/context-compression-selector-profiles.jpg +0 -0
- package/docs/assets/context-compression-selector-settings.png +0 -0
- package/docs/compat-0.1.5-report.md +0 -77
- package/docs/installation.de.md +0 -104
- package/docs/installation.es.md +0 -104
- package/docs/installation.fr.md +0 -104
- package/docs/installation.it.md +0 -104
- package/docs/installation.ja.md +0 -78
- package/docs/installation.ko.md +0 -78
- package/docs/installation.md +0 -103
- package/docs/installation.ru.md +0 -104
- package/docs/installation.zh.md +0 -100
- package/docs/repair-log.md +0 -657
- package/eslint.config.js +0 -30
- package/packages/selector/LICENSE +0 -21
- package/packages/selector/README.md +0 -26
- package/packages/selector/README.zh.md +0 -24
- package/packages/selector/THIRD_PARTY_NOTICES.md +0 -32
- package/packages/selector/docs/history-tool-call-working-set-spec.md +0 -112
- package/packages/selector/docs/native-tool-result-selector-spec.md +0 -34
- package/packages/selector/docs/subagent-cache-reuse-spec.md +0 -46
- package/packages/selector/lib/style.css +0 -350
- package/packages/selector/package.json +0 -178
- package/packages/selector/screenshots.json +0 -3
- package/packages/selector/src/client/CompressionProfileControls.tsx +0 -293
- package/packages/selector/src/client/CompressionProfileSelector.module.css +0 -199
- package/packages/selector/src/client/CompressionProfileSelector.tsx +0 -85
- package/packages/selector/src/client/CustomPolicyEditor.tsx +0 -216
- package/packages/selector/src/client/EstimatorControls.tsx +0 -277
- package/packages/selector/src/client/bridge-scope.ts +0 -125
- package/packages/selector/src/client/decode.ts +0 -57
- package/packages/selector/src/client/index.ts +0 -424
- package/packages/selector/src/client/locales/de.ts +0 -158
- package/packages/selector/src/client/locales/es.ts +0 -158
- package/packages/selector/src/client/locales/fr.ts +0 -158
- package/packages/selector/src/client/locales/it.ts +0 -158
- package/packages/selector/src/client/locales/ja.ts +0 -158
- package/packages/selector/src/client/locales/ko.ts +0 -158
- package/packages/selector/src/client/locales/ru.ts +0 -158
- package/packages/selector/src/client/locales.ts +0 -316
- package/packages/selector/src/client/monitor-fab.ts +0 -419
- package/packages/selector/src/client/preset-options.ts +0 -88
- package/packages/selector/src/client/savings-card.tsx +0 -269
- package/packages/selector/src/client/scope-face.ts +0 -24
- package/packages/selector/src/client/settings-section.tsx +0 -140
- package/packages/selector/src/compat/host-generation.ts +0 -96
- package/packages/selector/src/compat/llm-messages.ts +0 -50
- package/packages/selector/src/compat/settings-lease.ts +0 -108
- package/packages/selector/src/compat/tool-result.ts +0 -91
- package/packages/selector/src/css-modules.d.ts +0 -6
- package/packages/selector/src/deepseek-v4-tokenizer.ts +0 -205
- package/packages/selector/src/estimator-catalog.ts +0 -104
- package/packages/selector/src/index.ts +0 -890
- package/packages/selector/src/invariant.ts +0 -113
- package/packages/selector/src/preset-overlay.ts +0 -749
- package/packages/selector/src/profiles.ts +0 -431
- package/packages/selector/src/pruner/content.ts +0 -198
- package/packages/selector/src/pruner/session.ts +0 -97
- package/packages/selector/src/pruner/state.ts +0 -61
- package/packages/selector/src/pruner/tuning.ts +0 -23
- package/packages/selector/src/pruner/types.ts +0 -78
- package/packages/selector/src/pruner.ts +0 -2914
- package/packages/selector/src/runtime/adaptive-cost.ts +0 -205
- package/packages/selector/src/runtime/audit.ts +0 -320
- package/packages/selector/src/runtime/config.ts +0 -756
- package/packages/selector/src/runtime/custom-policy.ts +0 -278
- package/packages/selector/src/runtime/deepseek-official-pricing.ts +0 -298
- package/packages/selector/src/runtime/deepseek-v4-vision-tokens.ts +0 -254
- package/packages/selector/src/runtime/display-prefs.ts +0 -98
- package/packages/selector/src/runtime/measurement.ts +0 -444
- package/packages/selector/src/runtime/monitor.ts +0 -310
- package/packages/selector/src/runtime/panel-command.ts +0 -213
- package/packages/selector/src/runtime/reducers.ts +0 -1754
- package/packages/selector/src/runtime/retrieve.ts +0 -503
- package/packages/selector/src/runtime/savings-integral.ts +0 -117
- package/packages/selector/src/runtime/savings-projection.ts +0 -229
- package/packages/selector/src/runtime/savings-verify.ts +0 -446
- package/packages/selector/src/runtime/savings.ts +0 -526
- package/packages/selector/src/runtime/session-events.ts +0 -30
- package/packages/selector/src/runtime/session-file-decode.ts +0 -523
- package/packages/selector/src/runtime/stats-backfill.ts +0 -541
- package/packages/selector/src/runtime/stats-db.ts +0 -492
- package/packages/selector/src/runtime/stats-schema.ts +0 -123
- package/packages/selector/src/runtime/stats-sync.ts +0 -307
- package/packages/selector/src/runtime/summary-command.ts +0 -127
- package/packages/selector/src/runtime/tail-trim.ts +0 -176
- package/packages/selector/src/runtime/token-count.ts +0 -72
- package/packages/selector/src/runtime/tokenpilot/advisor-prompt.ts +0 -233
- package/packages/selector/src/runtime/tokenpilot/advisor-state.ts +0 -204
- package/packages/selector/src/runtime/tokenpilot/advisor.ts +0 -419
- package/packages/selector/src/runtime/tokenpilot/benefit.ts +0 -200
- package/packages/selector/src/runtime/tokenpilot/dedup.ts +0 -81
- package/packages/selector/src/runtime/tokenpilot/estimator.ts +0 -151
- package/packages/selector/src/runtime/tokenpilot/intent-fold.ts +0 -53
- package/packages/selector/src/runtime/tokenpilot/intent-gate.ts +0 -65
- package/packages/selector/src/runtime/tokenpilot/intent-input-mask.ts +0 -125
- package/packages/selector/src/runtime/tokenpilot/intent-range.ts +0 -37
- package/packages/selector/src/runtime/tokenpilot/locator.ts +0 -128
- package/packages/selector/src/runtime/tokenpilot/read-state.ts +0 -98
- package/packages/selector/src/runtime/tokenpilot/sidechannel.ts +0 -303
- package/packages/selector/src/runtime/toolclass.ts +0 -103
- package/packages/selector/src/runtime/types.ts +0 -365
- package/packages/selector/src/runtime/value.ts +0 -48
- package/packages/selector/src/settings-bridge.ts +0 -175
- package/packages/selector/tests/advisor-report.host.spec.ts +0 -223
- package/packages/selector/tests/auto-compact.client.spec.tsx +0 -214
- package/packages/selector/tests/built/client-artifact.spec.ts +0 -56
- package/packages/selector/tests/cache-prefix-audit.spec.ts +0 -123
- package/packages/selector/tests/code-skeleton.client.spec.ts +0 -98
- package/packages/selector/tests/compat/compat-narrow-waist.spec.ts +0 -150
- package/packages/selector/tests/custom-contract.client.spec.ts +0 -226
- package/packages/selector/tests/estimator-catalog.spec.ts +0 -70
- package/packages/selector/tests/estimator-channel.client.spec.tsx +0 -253
- package/packages/selector/tests/estimator-route-registration.host.spec.ts +0 -202
- package/packages/selector/tests/helpers/legacy-namespace.ts +0 -35
- package/packages/selector/tests/helpers/legacy-settings/index.ts +0 -15
- package/packages/selector/tests/helpers/legacy-settings/legacy/provider.d.ts +0 -41
- package/packages/selector/tests/helpers/legacy-settings/legacy/provider.js +0 -647
- package/packages/selector/tests/helpers/legacy-settings/legacy/redact.js +0 -78
- package/packages/selector/tests/helpers/legacy-settings/legacy/util-values.js +0 -234
- package/packages/selector/tests/host-preset-overlay.host.spec.ts +0 -204
- package/packages/selector/tests/monitor-fab.client.spec.ts +0 -220
- package/packages/selector/tests/preset-options-write.client.spec.ts +0 -192
- package/packages/selector/tests/preset-overlay-loader.e2e.host.spec.ts +0 -200
- package/packages/selector/tests/preset-overlay.host.spec.ts +0 -246
- package/packages/selector/tests/profiles.client.spec.tsx +0 -436
- package/packages/selector/tests/public/package-contract.client.spec.ts +0 -86
- package/packages/selector/tests/runtime/adaptive-cost.spec.ts +0 -167
- package/packages/selector/tests/runtime/advice-never-withholds.host.spec.ts +0 -230
- package/packages/selector/tests/runtime/advisor-invariant.spec.ts +0 -272
- package/packages/selector/tests/runtime/advisor.spec.ts +0 -226
- package/packages/selector/tests/runtime/audit.spec.ts +0 -275
- package/packages/selector/tests/runtime/auto-compact-config.spec.ts +0 -523
- package/packages/selector/tests/runtime/char-basis.spec.ts +0 -30
- package/packages/selector/tests/runtime/code-skeleton.spec.ts +0 -152
- package/packages/selector/tests/runtime/deepseek-official-pricing.spec.ts +0 -186
- package/packages/selector/tests/runtime/deepseek-v4-tokenizer.spec.ts +0 -122
- package/packages/selector/tests/runtime/deepseek-v4-vision-tokens.spec.ts +0 -122
- package/packages/selector/tests/runtime/deprecated-preset-options.spec.ts +0 -96
- package/packages/selector/tests/runtime/fixtures/profile-baseline.json +0 -273
- package/packages/selector/tests/runtime/fixtures/session-v4-dump.jsonl +0 -46
- package/packages/selector/tests/runtime/fixtures/tokenizer-golden.json +0 -106
- package/packages/selector/tests/runtime/fixtures/vision-golden.json +0 -459
- package/packages/selector/tests/runtime/frequency-longstrings.spec.ts +0 -74
- package/packages/selector/tests/runtime/fresh-gate.spec.ts +0 -43
- package/packages/selector/tests/runtime/html-reducer.spec.ts +0 -212
- package/packages/selector/tests/runtime/intent-gate.spec.ts +0 -62
- package/packages/selector/tests/runtime/intent-summary.spec.ts +0 -156
- package/packages/selector/tests/runtime/jsonl-reducer.spec.ts +0 -79
- package/packages/selector/tests/runtime/line-mapping.spec.ts +0 -153
- package/packages/selector/tests/runtime/monitor.spec.ts +0 -354
- package/packages/selector/tests/runtime/panel-command.spec.ts +0 -101
- package/packages/selector/tests/runtime/prose-reducers.spec.ts +0 -133
- package/packages/selector/tests/runtime/public/public-runtime.spec.ts +0 -2781
- package/packages/selector/tests/runtime/read-input-cap.spec.ts +0 -33
- package/packages/selector/tests/runtime/savings-accounting.spec.ts +0 -291
- package/packages/selector/tests/runtime/savings-integral.spec.ts +0 -169
- package/packages/selector/tests/runtime/savings-projection.spec.ts +0 -89
- package/packages/selector/tests/runtime/savings-verify.spec.ts +0 -226
- package/packages/selector/tests/runtime/savings.spec.ts +0 -139
- package/packages/selector/tests/runtime/search-reducer.spec.ts +0 -110
- package/packages/selector/tests/runtime/session-events.spec.ts +0 -27
- package/packages/selector/tests/runtime/session-file-decode.spec.ts +0 -281
- package/packages/selector/tests/runtime/settings-unwrap.spec.ts +0 -58
- package/packages/selector/tests/runtime/sidechannel.spec.ts +0 -241
- package/packages/selector/tests/runtime/stats-backfill-scheduler.spec.ts +0 -167
- package/packages/selector/tests/runtime/stats-backfill.spec.ts +0 -348
- package/packages/selector/tests/runtime/stats-db.spec.ts +0 -361
- package/packages/selector/tests/runtime/stats-privacy.spec.ts +0 -55
- package/packages/selector/tests/runtime/stats-sync.spec.ts +0 -278
- package/packages/selector/tests/runtime/summary-command.spec.ts +0 -154
- package/packages/selector/tests/runtime/toc-and-bundled.spec.ts +0 -159
- package/packages/selector/tests/runtime/tokenizer-golden.spec.ts +0 -53
- package/packages/selector/tests/runtime/tokenpilot/benefit.spec.ts +0 -217
- package/packages/selector/tests/runtime/tokenpilot/dedup.spec.ts +0 -52
- package/packages/selector/tests/runtime/tokenpilot/estimator.spec.ts +0 -79
- package/packages/selector/tests/runtime/tokenpilot/locator.spec.ts +0 -76
- package/packages/selector/tests/runtime/tokenpilot/profile-baseline.spec.ts +0 -119
- package/packages/selector/tests/runtime/tokenpilot/read-state.spec.ts +0 -82
- package/packages/selector/tests/runtime/toolclass.spec.ts +0 -156
- package/packages/selector/tests/runtime/value.spec.ts +0 -23
- package/packages/selector/tests/savings-sessions.client.spec.tsx +0 -140
- package/packages/selector/tests/settings-seat.client.spec.ts +0 -215
- package/packages/selector/tests/standing-generation.host.spec.ts +0 -724
- package/packages/selector/tests/subagent-cache-reuse.host.spec.ts +0 -269
- package/packages/selector/tests/support/cache-prefix-audit.ts +0 -105
- package/packages/selector/tests/support/mock-adapter.ts +0 -37
- package/packages/selector/tests/support/ui-primitives.tsx +0 -34
- package/packages/selector/tsconfig.json +0 -11
- package/packages/selector/tsdown.client.config.ts +0 -102
- package/packages/selector/tsdown.config.ts +0 -20
- package/pnpm-workspace.yaml +0 -76
- package/scripts/capture-profile-baseline.mjs +0 -42
- package/scripts/cell-browser-e2e.mjs +0 -354
- package/scripts/generate-tokenizer-fixtures.py +0 -81
- package/scripts/generate-vision-fixtures.py +0 -208
- package/scripts/hosts.mjs +0 -78
- package/scripts/packed-components-smoke.mjs +0 -763
- package/scripts/packed-install-e2e.mjs +0 -1346
- package/scripts/sync-hosts.mjs +0 -174
- package/scripts/toolclass-corpus-replay.mjs +0 -281
- package/scripts/verify-release.mjs +0 -338
- package/tests/TEST_INVENTORY.md +0 -41
- package/tsconfig.base.json +0 -18
- package/tsconfig.json +0 -7
- package/tsconfig.tests.json +0 -15
- package/vitest.built.config.ts +0 -9
- package/vitest.config.ts +0 -54
- /package/{packages/selector/assets → assets}/deepseek-v4/LICENSE.DeepSeek-V4-Pro.txt +0 -0
- /package/{packages/selector/assets → assets}/deepseek-v4/manifest.json +0 -0
- /package/{packages/selector/assets → assets}/deepseek-v4/tokenizer.json +0 -0
- /package/{packages/selector/assets → assets}/deepseek-v4/tokenizer_config.json +0 -0
- /package/{packages/selector/assets → assets}/deepseek-v4-vision-exp/LICENSE.DeepSeek-V4-Flash-Vision-Exp.txt +0 -0
- /package/{packages/selector/assets → assets}/deepseek-v4-vision-exp/manifest.json +0 -0
- /package/{packages/selector/assets → assets}/deepseek-v4-vision-exp/tokenizer.json +0 -0
- /package/{packages/selector/assets → assets}/deepseek-v4-vision-exp/tokenizer_config.json +0 -0
- /package/{packages/selector/cordis.patch.yml → cordis.patch.yml} +0 -0
- /package/{packages/selector/lib → lib}/client.d.ts +0 -0
- /package/{packages/selector/lib → lib}/index.d.ts +0 -0
- /package/{packages/selector/lib → lib}/index.js +0 -0
- /package/{packages/selector/lib → lib}/invariant.d.ts +0 -0
- /package/{packages/selector/lib → lib}/invariant.js +0 -0
- /package/{packages/selector/lib → lib}/profiles.d.ts +0 -0
- /package/{packages/selector/lib → lib}/pruner.d.ts +0 -0
- /package/{packages/selector/lib → lib}/pruner.js +0 -0
- /package/{packages/selector/lib → lib}/savings-integral.js +0 -0
- /package/{packages/selector/lib → lib}/tail-trim.js +0 -0
- /package/{packages/selector/lib → lib}/tool-result.js +0 -0
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import type { ContextCompressionLocaleKey } from '../locales.ts'
|
|
2
|
-
|
|
3
|
-
/** Russian copy matching every simplified Chinese selector key. */
|
|
4
|
-
export const ru = {
|
|
5
|
-
'nav': 'Выбор сжатия контекста',
|
|
6
|
-
'settings.title': 'Выбор сжатия контекста',
|
|
7
|
-
'settings.description': 'Выберите профиль сжатия для текущей сессии и настройте его параметры.',
|
|
8
|
-
'label': 'Сжатие контекста',
|
|
9
|
-
'status.loading': 'Загрузка',
|
|
10
|
-
'status.unavailable': 'Недоступно',
|
|
11
|
-
'status.presetUnavailable': 'Пресет этой сессии не предоставляет сжатие контекста, либо доступность пока не подтверждена.',
|
|
12
|
-
'status.minimalUnavailable': 'Минимальный режим не загружает сжатие контекста для этой сессии: селектор фактически выключен, действует нативное поведение Harness. Переключитесь на Standard, PTC / Coding, Creative или на поддерживающий её пользовательский пресет, чтобы настроить сжатие.',
|
|
13
|
-
'status.saveFailed': 'Не удалось сохранить. Повторите попытку.',
|
|
14
|
-
'pricing.disclosure': 'Официальные цены DeepSeek проверены 2026-08-25. Пиковые часы пн–пт 09:00–12:00 и 14:00–18:00 (Asia/Shanghai), остальное — непиковые. Для запросов на границе интервалов используется диапазон стоимости.',
|
|
15
|
-
'profile.balanced': 'Сбалансированный',
|
|
16
|
-
'profile.cache-strict': 'Cache Strict (защита префикса)',
|
|
17
|
-
'profile.savings': 'Экономия',
|
|
18
|
-
'profile.adaptive': 'Адаптивный (консервативная цена)',
|
|
19
|
-
'profile.tokenpilot-inspired': 'По мотивам TokenPilot',
|
|
20
|
-
'estimator.title': 'Оценщик (опционально)',
|
|
21
|
-
'estimator.description': 'Небольшая вспомогательная модель без примеров оценивает, вероятно ли старое чтение файла всё ещё востребовано; только рекомендация для старения истории. Без настройки или при сбое — режим только правил.',
|
|
22
|
-
'estimator.mode': 'Канал',
|
|
23
|
-
'estimator.mode.off': 'Выключен (только правила)',
|
|
24
|
-
'estimator.mode.host': 'Модель хоста (повторно использует настроенных провайдеров)',
|
|
25
|
-
'estimator.mode.direct': 'Прямой OpenAI-совместимый эндпоинт',
|
|
26
|
-
'estimator.inactive': 'Оценщик есть только у профиля «По мотивам TokenPilot»: пресет-опции этого профиля (указатели дедупликации, якоря резюме, семантика состояния чтения и канал оценщика) никогда не переносятся в другой профиль, поэтому у текущего профиля «{profile}» нет канала оценщика. Выберите «По мотивам TokenPilot» — в этом разделе появится выбор канала: настроенные провайдеры (модель хоста) или прямой OpenAI-совместимый эндпоинт.',
|
|
27
|
-
'estimator.provider': 'Провайдер',
|
|
28
|
-
'estimator.provider.placeholder': 'Пусто — следует модели по умолчанию сессии; выберите из списка или введите свой id',
|
|
29
|
-
'estimator.model.placeholder': 'Пусто — следует модели по умолчанию сессии; выберите из списка или введите свой id',
|
|
30
|
-
'estimator.hostReuse': 'Канал хоста повторно использует провайдеров и учётные данные, уже настроенные в DSH: ключ API не нужен — и здесь он не принимается.',
|
|
31
|
-
'estimator.hostRoute': 'Действующий маршрут: {route}.',
|
|
32
|
-
'estimator.hostUnresolved': 'пока не определено (выберите модель по умолчанию в настройках DSH или укажите здесь провайдера и модель)',
|
|
33
|
-
'estimator.baseUrl': 'Базовый URL эндпоинта (/v1)',
|
|
34
|
-
'estimator.model': 'Модель',
|
|
35
|
-
'estimator.apiKey': 'Ключ API (только запись, никогда не показывается)',
|
|
36
|
-
'estimator.apiKey.placeholder': 'Введите ключ эндпоинта; сохранение при выходе из поля',
|
|
37
|
-
'estimator.apiKey.set': 'Задан · введите новое значение, чтобы перезаписать',
|
|
38
|
-
'estimator.apiKey.clear': 'Очистить',
|
|
39
|
-
'estimator.apiKey.overwrite': 'Секрет сохранён; введите новое значение и выйдите из поля, чтобы перезаписать его.',
|
|
40
|
-
'detail.tokenpilot-inspired': 'Поверх «Сбалансированного»: указатели дедупликации, освобождение от восстановления, якоря резюме, стабилизация префикса и семантика состояния чтения; оценщику нужен отдельно настроенный эндпоинт',
|
|
41
|
-
'profile.custom': 'Пользовательский / Экспериментальный',
|
|
42
|
-
'profile.native': 'Нативная база',
|
|
43
|
-
'profile.off': 'Плагин выключен',
|
|
44
|
-
'profile.current': 'Текущий профиль',
|
|
45
|
-
'detail.balanced': 'Детерминированно сокращает свежие результаты инструментов; старые устаревают при высоком уровне заполнения',
|
|
46
|
-
'detail.cache-strict': 'Устаревание отправленной истории только при подтверждённой нехватке ёмкости; попадания в кэш провайдера остаются best-effort',
|
|
47
|
-
'detail.savings': 'Меньшие целевые значения и более раннее устаревание старых результатов инструментов; более дешёвый запрос не гарантирован',
|
|
48
|
-
'detail.adaptive': 'Использует Fresh/Aggregate «Сбалансированного»; история устаревает, только если соседний официальный usage и текущие официальные цены доказывают явную экономию',
|
|
49
|
-
'detail.custom': 'Выберите реализованные этапы и измеренные пороги для новых сессий',
|
|
50
|
-
'detail.native': 'Только нативная обрезка начала/конца Harness',
|
|
51
|
-
'detail.off': 'Отключает детерминированный селектор; нативный auto-compact настраивается отдельно',
|
|
52
|
-
'autoCompact.title': 'Уровень срабатывания Auto Compact',
|
|
53
|
-
'autoCompact.description': 'Управляемый моделью Auto Compact срабатывает, когда занятость запроса превышает этот уровень. Пороги History стандартного профиля, минимальное освобождение и недавний хвост следуют за уровнем; изменения касаются только новых сессий.',
|
|
54
|
-
'autoCompact.inputLabel': 'Порог Auto Compact (%)',
|
|
55
|
-
'autoCompact.sliderLabel': 'Ползунок порога Auto Compact',
|
|
56
|
-
'autoCompact.quick': 'Быстрые значения',
|
|
57
|
-
'autoCompact.riskLow': 'Ниже рекомендуемого диапазона: раннее срабатывание увеличивает вызовы резюмирования и перестройки префикса.',
|
|
58
|
-
'autoCompact.riskHigh': 'Выше рекомендуемого диапазона: ёмкость контекста делится между запросами и выводом, позднее срабатывание сокращает запас для одиночных больших выводов, рассуждений и схем инструментов.',
|
|
59
|
-
'autoCompact.invalid': 'Порог Auto Compact должен быть целым числом от 50 до 90.',
|
|
60
|
-
'autoCompact.save': 'Сохранить порог Auto Compact',
|
|
61
|
-
'autoCompact.summaryHint': 'Порог Auto Compact: {percent}%. Можно изменить в настройках.',
|
|
62
|
-
'codeSkeleton.title': 'Скелетное сжатие кода (по включению)',
|
|
63
|
-
'codeSkeleton.description': 'Отдельный переключатель, независимый от профилей выше. Когда включено, слишком большой свежий результат инструмента с исходным кодом сначала пробует скелет, сохраняющий импорты и объявления (тела опущены, строки ошибок сохранены), а при неудаче возвращается к исходной обрезке головы. Нужен точный токенизатор; касается только новых сессий.',
|
|
64
|
-
'codeSkeleton.enabled': 'Скелетное сжатие кода',
|
|
65
|
-
'codeSkeleton.enabled.on': 'Вкл',
|
|
66
|
-
'codeSkeleton.enabled.off': 'Выкл (по умолчанию)',
|
|
67
|
-
'intentSummary.title': 'Итог намерения в конце хода',
|
|
68
|
-
'intentSummary.description': 'При включении постфлайт на границе хода сворачивает потреблённый прирост в блоки итогов намерения по семантическим ролям: результаты читающих инструментов становятся однострочными записями цель/масштаб, пишущие сохраняют заголовок скелета и дословные строки ошибок; приземляется в следующем раунде давления через обычный конвейер свёртки. Срабатывает только при прохождении шлюза роста (активная поверхность >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.totalNet': 'Чистое итого (все)',
|
|
78
|
-
'monitor.panel.totalGross': 'Валовое итого (все)',
|
|
79
|
-
'monitor.panel.totalOffsets': 'Компенсации итого (все)',
|
|
80
|
-
'monitor.panel.compositionBackfill': 'ретро-оценка',
|
|
81
|
-
'monitor.panel.cumulative': 'Накоплено (N вызовов)',
|
|
82
|
-
'monitor.panel.money': 'Оценка экономии',
|
|
83
|
-
'monitor.panel.composition': 'Как экономит (по путям)',
|
|
84
|
-
'monitor.panel.compositionScope': 'Последняя сжатая сессия',
|
|
85
|
-
'monitor.panel.context': 'Заполнение контекста',
|
|
86
|
-
'monitor.panel.suggest': 'Заполнение контекста достигло {pct}% — близко к зоне катастрофического забывания; рекомендуется сжать или обрезать историю',
|
|
87
|
-
'monitor.panel.cacheHit': 'Процент попаданий кэша',
|
|
88
|
-
'monitor.panel.cost': 'Стоимость (факт / эконом. оценка)',
|
|
89
|
-
'monitor.panel.intent': 'Итог намерения',
|
|
90
|
-
'monitor.panel.overrideHint': 'Приоритет сессии',
|
|
91
|
-
'monitor.panel.overridePrefix': 'Приоритет сессии',
|
|
92
|
-
'monitor.panel.resume': 'Возобновить',
|
|
93
|
-
'monitor.panel.disable': 'Отключить',
|
|
94
|
-
'monitor.panel.stateOn': 'вкл',
|
|
95
|
-
'monitor.panel.stateOff': 'выкл',
|
|
96
|
-
'monitor.panel.gateUnknown': 'ещё не оценено',
|
|
97
|
-
'monitor.panel.lastFold': 'Последняя свёртка',
|
|
98
|
-
'monitor.panel.stale': 'Снимок недоступен — показаны последние данные',
|
|
99
|
-
'monitorPanel.title': 'Панель мониторинга сжатия',
|
|
100
|
-
'monitorPanel.description': 'При включении рядом с областью ввода появляется перетаскиваемый плавающий шарик — откройте его, чтобы следить за состоянием сжатия в реальном времени: чистая экономия (точная база), процент попаданий кэша, оценка стоимости, шлюз итогов намерения хода и последние компенсации. Панель может временно переключить тумблер итогов намерения текущей сессии. Статистика персистентна в SQLite и переживает перезапуск хоста.',
|
|
101
|
-
'monitorPanel.enabled': 'Панель мониторинга',
|
|
102
|
-
'monitorPanel.enabled.on': 'Вкл',
|
|
103
|
-
'monitorPanel.enabled.off': 'Выкл (по умолчанию)',
|
|
104
|
-
'custom.title': 'Пользовательская стратегия',
|
|
105
|
-
'custom.settingsHint': 'Подробные параметры — в «Настройки > Выбор сжатия контекста».',
|
|
106
|
-
'custom.sessionScope': 'Сохранённые изменения применяются, когда текущий runtime сжатия впервые наблюдает Session. Session, уже наблюдаемая этим runtime, сохраняет свою замороженную стратегию.',
|
|
107
|
-
'custom.measurement': 'Сначала точный токенизатор DeepSeek; иначе оценка токенизатором с калибровкой как запасной вариант. Никогда chars/4. Атрибуция кэша остаётся неизвестной.',
|
|
108
|
-
'custom.unit': 'Каноническая единица',
|
|
109
|
-
'custom.unit.tokens': 'Токены',
|
|
110
|
-
'custom.unit.contextPercent': 'Проценты контекста',
|
|
111
|
-
'custom.enabled': 'Включено',
|
|
112
|
-
'custom.enabled.on': 'Вкл',
|
|
113
|
-
'custom.enabled.off': 'Выкл',
|
|
114
|
-
'custom.fresh.enabled': 'Включить Fresh',
|
|
115
|
-
'custom.fresh.trigger': 'Порог Fresh',
|
|
116
|
-
'custom.fresh.target': 'Цель Fresh',
|
|
117
|
-
'custom.aggregate.enabled': 'Включить Aggregate',
|
|
118
|
-
'custom.aggregate.trigger': 'Порог Aggregate',
|
|
119
|
-
'custom.aggregate.target': 'Цель Aggregate',
|
|
120
|
-
'custom.history.enabled': 'Включить History',
|
|
121
|
-
'custom.history.trigger': 'Порог History',
|
|
122
|
-
'custom.history.keepRecentToolCalls': 'Защищённые недавние вызовы инструментов',
|
|
123
|
-
'custom.history.keepRecentTokens': 'Защищённый недавний хвост результатов инструментов',
|
|
124
|
-
'custom.history.minReclaim': 'Минимальное освобождение',
|
|
125
|
-
'custom.prefixPolicy': 'Политика отправленного префикса',
|
|
126
|
-
'custom.prefixPolicy.preserve': 'Сохранять до нехватки ёмкости',
|
|
127
|
-
'custom.prefixPolicy.pressureBreak': 'Разрешить обычное старение истории',
|
|
128
|
-
'custom.experimental': 'Экспериментально: эти настройки только для пользовательского профиля и никогда не добавляются в стандартные.',
|
|
129
|
-
'custom.tailTrim.enabled': 'Включить TailTrim (экспериментально)',
|
|
130
|
-
'custom.tailTrim.trigger': 'Порог TailTrim',
|
|
131
|
-
'custom.tailTrim.warning': 'TailTrim требует точный токенизатор и заменяет максимум одну полную, завершённую, без ошибок группу только из инструментов на восстанавливаемую ссылку. Он использует общие с History защищённые недавние вызовы инструментов, защищённый недавний хвост результатов инструментов и минимальное освобождение. Он переписывает отправленный префикс и может снизить попадания в кэш.',
|
|
132
|
-
'custom.save': 'Сохранить пользовательскую стратегию',
|
|
133
|
-
'custom.reset': 'Сбросить пользовательскую стратегию',
|
|
134
|
-
'custom.invalid': 'Значения пользовательской стратегии недопустимы.',
|
|
135
|
-
'savings.title': 'Экономия (этот процесс)',
|
|
136
|
-
'savings.netExact': 'Чистая экономия (точная база)',
|
|
137
|
-
'savings.netEstimated': 'Чистая экономия (оценочная база)',
|
|
138
|
-
'savings.gross': 'Валовая экономия (при публикации)',
|
|
139
|
-
'savings.offsets': 'Компенсации (сжатый контент затем прочитан полностью)',
|
|
140
|
-
'savings.empty': 'Сжатия пока не было — чистая экономия появится после первого сокращения.',
|
|
141
|
-
'savings.basisExact': 'точно',
|
|
142
|
-
'savings.basisEstimated': 'оценка',
|
|
143
|
-
'savings.basisNote': 'Базы приводятся раздельно и не смешиваются: точно = токенизатор DeepSeek; оценка = chars/4. Скелет с последующим полным чтением учитывается как отрицательная экономия (чистая может уйти в минус).',
|
|
144
|
-
'savings.requests': '요청 수',
|
|
145
|
-
'savings.cacheHit': '캐시 적중률',
|
|
146
|
-
'savings.actualCost': '실제 비용(공식 가격)',
|
|
147
|
-
'savings.savedMoney': '추정 절감액(입력 가격)',
|
|
148
|
-
'savings.perSession': '세션',
|
|
149
|
-
'savings.focus': "фокус",
|
|
150
|
-
'savings.degraded': "Персистентность деградировала — статистика только в памяти",
|
|
151
|
-
'savings.persisted': "Персистентно",
|
|
152
|
-
'savings.pageNext': "Далее",
|
|
153
|
-
'savings.pagePrev': "Назад",
|
|
154
|
-
'savings.sessions': "Журнал сессий",
|
|
155
|
-
'savings.money': "Сэкономлено (взвешено по кэшу)",
|
|
156
|
-
'savings.cumulative': "Накоплено (за N вызовов)",
|
|
157
|
-
|
|
158
|
-
} satisfies Record<ContextCompressionLocaleKey, string>
|
|
@@ -1,316 +0,0 @@
|
|
|
1
|
-
/** Simplified Chinese copy for the context-compression selector. */
|
|
2
|
-
export const zh = {
|
|
3
|
-
'nav': '上下文压缩选择器',
|
|
4
|
-
'settings.title': '上下文压缩选择器',
|
|
5
|
-
'settings.description': '为当前会话选择压缩 Profile,并配置该 Profile 提供的参数。',
|
|
6
|
-
'label': '上下文压缩',
|
|
7
|
-
'status.loading': '加载中',
|
|
8
|
-
'status.unavailable': '不可用',
|
|
9
|
-
'status.presetUnavailable': '此会话的 preset 未提供上下文压缩,或能力尚未确认。',
|
|
10
|
-
'status.minimalUnavailable': '极简模式不会为此会话加载上下文压缩能力,因此选择器在本会话中等效为关闭,仅保留 Harness 原生行为。切换到标准、PTC/Coding、创造模式,或支持该能力的自定义 preset 后即可配置。',
|
|
11
|
-
'status.saveFailed': '保存失败,请重试',
|
|
12
|
-
'pricing.disclosure': 'DeepSeek 官方价格目录复核于 2026-08-25。Asia/Shanghai 周一至周五 09:00–12:00、14:00–18:00 为峰时,其余为谷时;跨边界请求按成本区间处理。',
|
|
13
|
-
'profile.balanced': '平衡模式',
|
|
14
|
-
'profile.cache-strict': 'Cache Strict(前缀保护)',
|
|
15
|
-
'profile.savings': '节省模式',
|
|
16
|
-
'profile.adaptive': 'Adaptive(保守成本)',
|
|
17
|
-
'profile.tokenpilot-inspired': 'TokenPilot 启发模式',
|
|
18
|
-
'estimator.title': '估计器(可选)',
|
|
19
|
-
'estimator.description': '辅助小模型零样本判断旧文件读取是否仍有引用价值,仅建议性加速历史清理;未配置或失败时自动退回纯规则通道,不影响主流程。',
|
|
20
|
-
'estimator.mode': '通道',
|
|
21
|
-
'estimator.mode.off': '关闭(纯规则)',
|
|
22
|
-
'estimator.mode.host': '宿主模型(复用已配置供应商)',
|
|
23
|
-
'estimator.mode.direct': '直连 OpenAI 兼容端点',
|
|
24
|
-
'estimator.inactive': '估计器只随「TokenPilot 启发模式」提供:该模式的预设选项(去重指针、摘要定位块、读取状态语义与估计器通道)不会合并进其他 Profile,因此当前 Profile「{profile}」下没有可配置的估计器通道。选择「TokenPilot 启发模式」后,本区块会出现「通道」选择,可复用已配置供应商(宿主模型)或直连 OpenAI 兼容端点。',
|
|
25
|
-
'estimator.provider': '供应商',
|
|
26
|
-
'estimator.provider.placeholder': '留空则跟随会话默认模型,可从下拉选择或自定义输入',
|
|
27
|
-
'estimator.model.placeholder': '留空则跟随会话默认模型,可从下拉选择或自定义输入',
|
|
28
|
-
'estimator.hostReuse': '宿主通道直接复用你在 DSH 中已配置的供应商与凭据,无需填写 API Key;此通道也不接收 API Key。',
|
|
29
|
-
'estimator.hostRoute': '当前生效路由:{route}。',
|
|
30
|
-
'estimator.hostUnresolved': '尚未确定(请在 DSH 设置中选择默认模型,或在此指定供应商与模型)',
|
|
31
|
-
'estimator.baseUrl': '端点地址(/v1)',
|
|
32
|
-
'estimator.model': '模型',
|
|
33
|
-
'estimator.apiKey': 'API Key(仅写入,不回显)',
|
|
34
|
-
'estimator.apiKey.placeholder': '输入端点密钥并失焦保存',
|
|
35
|
-
'estimator.apiKey.set': '已设置 · 输入新值覆盖',
|
|
36
|
-
'estimator.apiKey.clear': '清除',
|
|
37
|
-
'estimator.apiKey.overwrite': '已设置保密值,输入新值并失焦即可覆盖。',
|
|
38
|
-
'detail.tokenpilot-inspired': '在平衡模式之上叠加去重指针、恢复豁免、摘要定位块、前缀稳定与读取状态语义;估计器需另行配置端点',
|
|
39
|
-
'profile.custom': 'Custom/实验模式',
|
|
40
|
-
'profile.native': '原生对照',
|
|
41
|
-
'profile.off': '插件关闭',
|
|
42
|
-
'profile.current': '当前选择',
|
|
43
|
-
'detail.balanced': '确定性压缩新工具结果;高水位时老化旧结果',
|
|
44
|
-
'detail.cache-strict': '仅在确认容量压力时老化已发送历史;服务端缓存命中仍是 best-effort',
|
|
45
|
-
'detail.savings': '使用更小目标并更早清理旧工具结果;不保证每个请求更便宜',
|
|
46
|
-
'detail.adaptive': 'Fresh/Aggregate 与平衡模式一致;仅当紧邻官方 usage 与当前官方价格证明历史压缩明确更省钱时老化历史,否则保留',
|
|
47
|
-
'detail.custom': '为新会话选择已实现的压缩阶段和计量阈值',
|
|
48
|
-
'detail.native': '只使用 DeepSeek Harness 原生头尾裁剪',
|
|
49
|
-
'detail.off': '关闭确定性选择器;原生 auto-compact 仍由 Harness 配置决定',
|
|
50
|
-
'autoCompact.title': 'Auto Compact 触发水位',
|
|
51
|
-
'autoCompact.description': '模型驱动 Auto Compact 在请求占用达到该水位时触发。调整后,标准 Profile 的 History 触发值、最小回收量与近期尾窗随水位联动;修改只影响新会话。',
|
|
52
|
-
'autoCompact.inputLabel': 'Auto Compact 阈值(%)',
|
|
53
|
-
'autoCompact.sliderLabel': 'Auto Compact 阈值滑杆',
|
|
54
|
-
'autoCompact.quick': '快捷值',
|
|
55
|
-
'autoCompact.riskLow': '低于推荐范围:更早触发会增加摘要调用与前缀重建。',
|
|
56
|
-
'autoCompact.riskHigh': '高于推荐范围:上下文容量为请求与输出共享,过晚触发会减少单次大输出、推理与工具 schema 的余量。',
|
|
57
|
-
'autoCompact.invalid': 'Auto Compact 阈值必须是 50–90 之间的整数。',
|
|
58
|
-
'autoCompact.save': '保存 Auto Compact 阈值',
|
|
59
|
-
'autoCompact.summaryHint': 'Auto Compact 阈值:{percent}%。可在设置中修改。',
|
|
60
|
-
'codeSkeleton.title': '代码骨架压缩(备选)',
|
|
61
|
-
'codeSkeleton.description': '正交开关:独立于上方 Profile。开启后,首次曝光的超大源码类工具结果会先尝试保留导入与声明的骨架(省略函数体并保留错误行),失败时自动回退到原头部裁剪;需要精确 tokenizer,修改只影响新会话。',
|
|
62
|
-
'codeSkeleton.enabled': '代码骨架压缩',
|
|
63
|
-
'codeSkeleton.enabled.on': '开',
|
|
64
|
-
'codeSkeleton.enabled.off': '关(默认)',
|
|
65
|
-
'intentSummary.title': '回合末意图摘要(转向尾部压缩)',
|
|
66
|
-
'intentSummary.description': '开启后,回合收尾阶段把本次消费的增量按语义角色折叠为意图摘要块:读类工具结果压成单行目标/规模记录,写类保留骨架头与逐字错误行,于下一次压力回合经既有折叠管线落地;仅当增长门控通过(活跃表面 >45% 且距上次折叠增长 >50K token)才触发。修改只影响新会话;当前会话可用 /ctx-summary off|on|status 临时覆盖。',
|
|
67
|
-
'intentSummary.enabled': '回合末意图摘要',
|
|
68
|
-
'intentSummary.enabled.on': '开',
|
|
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.totalNet': '总净节省(全部会话)',
|
|
76
|
-
'monitor.panel.totalGross': '总毛节省(全部会话)',
|
|
77
|
-
'monitor.panel.totalOffsets': '总抵消(全部会话)',
|
|
78
|
-
'monitor.panel.compositionBackfill': '回填估算',
|
|
79
|
-
'monitor.panel.cumulative': '累计(按 N 次 call)',
|
|
80
|
-
'monitor.panel.money': '省钱估计',
|
|
81
|
-
'monitor.panel.composition': '怎么省的(按压缩路径)',
|
|
82
|
-
'monitor.panel.compositionScope': '最近压缩会话',
|
|
83
|
-
'monitor.panel.context': '上下文占用',
|
|
84
|
-
'monitor.panel.suggest': '上下文占用已达 {pct}%——临近灾难性遗忘区,建议压缩或裁剪历史',
|
|
85
|
-
'monitor.panel.cacheHit': '缓存命中率',
|
|
86
|
-
'monitor.panel.cost': '成本(实际 / 省估)',
|
|
87
|
-
'monitor.panel.intent': '意图摘要',
|
|
88
|
-
'monitor.panel.overrideHint': '会话覆盖',
|
|
89
|
-
'monitor.panel.overridePrefix': '会话覆盖',
|
|
90
|
-
'monitor.panel.resume': '恢复',
|
|
91
|
-
'monitor.panel.disable': '停用',
|
|
92
|
-
'monitor.panel.stateOn': '开',
|
|
93
|
-
'monitor.panel.stateOff': '关',
|
|
94
|
-
'monitor.panel.gateUnknown': '未评估',
|
|
95
|
-
'monitor.panel.lastFold': '最近折叠',
|
|
96
|
-
'monitor.panel.stale': '快照不可达——显示上次数据',
|
|
97
|
-
'monitorPanel.title': '压缩监控悬浮面板',
|
|
98
|
-
'monitorPanel.description': '开启后,输入区旁出现可拖拽的悬浮球,点开即监控当前压缩状态:净节省(精确口径)、缓存命中率、成本估算、回合末意图摘要门控与最近抵消;面板内可临时覆盖当前会话的意图摘要开关。统计经 SQLite 持久化,跨宿主重启保留。',
|
|
99
|
-
'monitorPanel.enabled': '悬浮面板',
|
|
100
|
-
'monitorPanel.enabled.on': '开',
|
|
101
|
-
'monitorPanel.enabled.off': '关(默认)',
|
|
102
|
-
'custom.title': 'Custom 策略',
|
|
103
|
-
'custom.settingsHint': '具体参数请前往“设置 > 上下文压缩选择器”中编辑。',
|
|
104
|
-
'custom.sessionScope': '保存后的修改会在当前压缩运行时随后首次观察某个 Session 时生效;已被该运行时观察的 Session 继续使用其冻结策略。',
|
|
105
|
-
'custom.measurement': '首选 DeepSeek 精确 tokenizer;不可用时回退到带校准的 tokenizer estimate,绝不使用 chars/4。缓存归因仍未知。',
|
|
106
|
-
'custom.unit': '规范单位',
|
|
107
|
-
'custom.unit.tokens': 'Tokens',
|
|
108
|
-
'custom.unit.contextPercent': '上下文百分比',
|
|
109
|
-
'custom.enabled': '是否启用',
|
|
110
|
-
'custom.enabled.on': '开',
|
|
111
|
-
'custom.enabled.off': '关',
|
|
112
|
-
'custom.fresh.enabled': '启用 Fresh',
|
|
113
|
-
'custom.fresh.trigger': 'Fresh 触发值',
|
|
114
|
-
'custom.fresh.target': 'Fresh 目标值',
|
|
115
|
-
'custom.aggregate.enabled': '启用 Aggregate',
|
|
116
|
-
'custom.aggregate.trigger': 'Aggregate 触发值',
|
|
117
|
-
'custom.aggregate.target': 'Aggregate 目标值',
|
|
118
|
-
'custom.history.enabled': '启用 History',
|
|
119
|
-
'custom.history.trigger': 'History 触发值',
|
|
120
|
-
'custom.history.keepRecentToolCalls': '保护近期工具调用数',
|
|
121
|
-
'custom.history.keepRecentTokens': '保护近期工具结果尾窗',
|
|
122
|
-
'custom.history.minReclaim': '最小回收量',
|
|
123
|
-
'custom.prefixPolicy': '已发送前缀策略',
|
|
124
|
-
'custom.prefixPolicy.preserve': '仅在容量压力时改写',
|
|
125
|
-
'custom.prefixPolicy.pressureBreak': '允许常规历史老化',
|
|
126
|
-
'custom.experimental': 'Experimental:以下功能仅用于 Custom,不会加入标准 Profile。',
|
|
127
|
-
'custom.tailTrim.enabled': '启用 TailTrim(实验)',
|
|
128
|
-
'custom.tailTrim.trigger': 'TailTrim 触发值',
|
|
129
|
-
'custom.tailTrim.warning': 'TailTrim 只在精确 tokenizer 可用时,把一个完整、已结束且非错误的纯工具组替换为可恢复引用;它与 History 共用近期工具调用数、工具结果尾窗和最小回收参数。它会改写已发送前缀,可能降低缓存命中。',
|
|
130
|
-
'custom.save': '保存 Custom 策略',
|
|
131
|
-
'custom.reset': '重置 Custom 策略',
|
|
132
|
-
'custom.invalid': 'Custom 策略参数无效。',
|
|
133
|
-
'savings.title': '节省统计(本进程)',
|
|
134
|
-
'savings.netExact': '净节省(精确口径)',
|
|
135
|
-
'savings.netEstimated': '净节省(估算口径)',
|
|
136
|
-
'savings.gross': '毛节省(压缩落盘时)',
|
|
137
|
-
'savings.offsets': '负节省(压缩后再读全文的抵消)',
|
|
138
|
-
'savings.empty': '尚无压缩记录——发生首次裁剪后这里会显示净节省。',
|
|
139
|
-
'savings.basisExact': '精确',
|
|
140
|
-
'savings.basisEstimated': '估算',
|
|
141
|
-
'savings.basisNote': '口径分列不混算:精确 = DeepSeek tokenizer;估算 = chars/4。先取骨架后取全文会计负节省(净额可能为负)。',
|
|
142
|
-
'savings.requests': '请求轮次',
|
|
143
|
-
'savings.cacheHit': '缓存命中率',
|
|
144
|
-
'savings.actualCost': '实际成本(官方牌价)',
|
|
145
|
-
'savings.savedMoney': '估算节省金额(按输入价)',
|
|
146
|
-
'savings.perSession': '会话',
|
|
147
|
-
'savings.focus': "聚焦",
|
|
148
|
-
'savings.degraded': "持久化降级——统计仅内存",
|
|
149
|
-
'savings.persisted': "已持久化",
|
|
150
|
-
'savings.pageNext': "下一页",
|
|
151
|
-
'savings.pagePrev': "上一页",
|
|
152
|
-
'savings.sessions': "会话账本",
|
|
153
|
-
'savings.money': "省钱估计(缓存分权)",
|
|
154
|
-
'savings.cumulative': "累计(按 N 次 call)",
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
} satisfies Record<string, string>
|
|
158
|
-
|
|
159
|
-
/** Locale keys that every context-compression selector dictionary must provide. */
|
|
160
|
-
export type ContextCompressionLocaleKey = keyof typeof zh
|
|
161
|
-
|
|
162
|
-
/** English copy matching every simplified Chinese selector key. */
|
|
163
|
-
export const en = {
|
|
164
|
-
'nav': 'Context compression selector',
|
|
165
|
-
'settings.title': 'Context compression selector',
|
|
166
|
-
'settings.description': 'Choose a compression profile for the current session and configure the parameters it provides.',
|
|
167
|
-
'label': 'Context compression',
|
|
168
|
-
'status.loading': 'Loading',
|
|
169
|
-
'status.unavailable': 'Unavailable',
|
|
170
|
-
'status.presetUnavailable': 'This session’s preset does not provide context compression, or availability is not yet confirmed.',
|
|
171
|
-
'status.minimalUnavailable': 'Minimal mode does not load context compression for this session. The selector is effectively off and Harness native behavior remains. Switch to Standard, PTC / Coding, Creative, or a capable custom preset to configure it.',
|
|
172
|
-
'status.saveFailed': 'Save failed. Try again.',
|
|
173
|
-
'pricing.disclosure': 'DeepSeek official prices checked 2026-08-25. Peak Mon–Fri 09:00–12:00 and 14:00–18:00 Asia/Shanghai; otherwise off-peak. Cross-boundary requests use a cost range.',
|
|
174
|
-
'profile.balanced': 'Balanced',
|
|
175
|
-
'profile.cache-strict': 'Cache Strict (prefix protection)',
|
|
176
|
-
'profile.savings': 'Savings',
|
|
177
|
-
'profile.adaptive': 'Adaptive (conservative cost)',
|
|
178
|
-
'profile.tokenpilot-inspired': 'TokenPilot-inspired',
|
|
179
|
-
'estimator.title': 'Estimator (optional)',
|
|
180
|
-
'estimator.description': 'A small auxiliary model zero-shots whether old file reads are still likely referenced, advisory-only for history aging; unconfigured or failing endpoints fall back to rule-only behavior.',
|
|
181
|
-
'estimator.mode': 'Channel',
|
|
182
|
-
'estimator.mode.off': 'Off (rule-only)',
|
|
183
|
-
'estimator.mode.host': 'Host model (reuse configured providers)',
|
|
184
|
-
'estimator.mode.direct': 'Direct OpenAI-compatible endpoint',
|
|
185
|
-
'estimator.inactive': 'The estimator ships only with the TokenPilot-inspired profile: that profile’s preset options (dedupe pointers, summary locators, read-state semantics, and the estimator channel) are never merged into another profile, so the current profile “{profile}” has no estimator channel to configure. Select TokenPilot-inspired and this section gains a Channel choice — reuse configured providers (host model) or a direct OpenAI-compatible endpoint.',
|
|
186
|
-
'estimator.provider': 'Provider',
|
|
187
|
-
'estimator.provider.placeholder': 'Empty follows the session default model; pick from the dropdown or type a custom id',
|
|
188
|
-
'estimator.model.placeholder': 'Empty follows the session default model; pick from the dropdown or type a custom id',
|
|
189
|
-
'estimator.hostReuse': 'The host channel reuses the providers and credentials you already configured in DSH, so no API key is needed — and none is accepted here.',
|
|
190
|
-
'estimator.hostRoute': 'Effective route: {route}.',
|
|
191
|
-
'estimator.hostUnresolved': 'not determined yet (choose a default model in DSH settings, or name a provider and model here)',
|
|
192
|
-
'estimator.baseUrl': 'Endpoint base URL (/v1)',
|
|
193
|
-
'estimator.model': 'Model',
|
|
194
|
-
'estimator.apiKey': 'API key (write-only, never echoed)',
|
|
195
|
-
'estimator.apiKey.placeholder': 'Type the endpoint key; blur to save',
|
|
196
|
-
'estimator.apiKey.set': 'Set · type a new value to overwrite',
|
|
197
|
-
'estimator.apiKey.clear': 'Clear',
|
|
198
|
-
'estimator.apiKey.overwrite': 'A secret is stored; type a new value and blur to overwrite it.',
|
|
199
|
-
'detail.tokenpilot-inspired': 'Layered on Balanced: dedupe pointers, recovery exemption, summary locators, prefix stabilization, and read-state semantics; the estimator needs an endpoint configured separately',
|
|
200
|
-
'profile.custom': 'Custom / Experimental',
|
|
201
|
-
'profile.native': 'Native baseline',
|
|
202
|
-
'profile.off': 'Plugin off',
|
|
203
|
-
'profile.current': 'Current profile',
|
|
204
|
-
'detail.balanced': 'Reduce fresh tool results deterministically; age old results at high watermarks',
|
|
205
|
-
'detail.cache-strict': 'Age sent history only under confirmed capacity pressure; provider cache hits remain best-effort',
|
|
206
|
-
'detail.savings': 'Use smaller targets and age old tool results earlier; does not guarantee a cheaper request',
|
|
207
|
-
'detail.adaptive': 'Use Balanced Fresh/Aggregate; age history only when adjacent official usage and current official prices prove a clear saving',
|
|
208
|
-
'detail.custom': 'Choose implemented stages and measured thresholds for new sessions',
|
|
209
|
-
'detail.native': 'Use only the Harness native head/tail pruner',
|
|
210
|
-
'detail.off': 'Disable the deterministic selector; native auto-compact remains separately configured',
|
|
211
|
-
'autoCompact.title': 'Auto Compact trigger level',
|
|
212
|
-
'autoCompact.description': 'Model-driven Auto Compact triggers once request usage crosses this level. Standard-profile History triggers, minimum reclaim, and the recent tail follow the level; changes affect new sessions only.',
|
|
213
|
-
'autoCompact.inputLabel': 'Auto Compact threshold (%)',
|
|
214
|
-
'autoCompact.sliderLabel': 'Auto Compact threshold slider',
|
|
215
|
-
'autoCompact.quick': 'Quick values',
|
|
216
|
-
'autoCompact.riskLow': 'Below the recommended band: triggering earlier increases summarization calls and prefix rebuilds.',
|
|
217
|
-
'autoCompact.riskHigh': 'Above the recommended band: context capacity is shared by requests and output, so triggering later reduces headroom for single large outputs, reasoning, and tool schemas.',
|
|
218
|
-
'autoCompact.invalid': 'The Auto Compact threshold must be an integer between 50 and 90.',
|
|
219
|
-
'autoCompact.save': 'Save Auto Compact threshold',
|
|
220
|
-
'autoCompact.summaryHint': 'Auto Compact threshold: {percent}%. Change it in Settings.',
|
|
221
|
-
'codeSkeleton.title': 'Code skeleton compression (opt-in)',
|
|
222
|
-
'codeSkeleton.description': 'Orthogonal switch, independent of the profiles above. When enabled, an oversized fresh source-code tool result first tries a skeleton that keeps imports and declarations (bodies elided, error lines kept) and falls back to the original head pruning on failure. Requires the exact tokenizer; changes affect new sessions only.',
|
|
223
|
-
'codeSkeleton.enabled': 'Code skeleton compression',
|
|
224
|
-
'codeSkeleton.enabled.on': 'On',
|
|
225
|
-
'codeSkeleton.enabled.off': 'Off (default)',
|
|
226
|
-
'intentSummary.title': 'Turn-tail intent summary',
|
|
227
|
-
'intentSummary.description': 'When on, the turn-boundary postflight folds the consumed increment into intent-summary blocks by semantic role: read-class tool results become one-line target/scale records and write-class keep skeleton heads plus verbatim error lines, landing on the next pressure round through the ordinary fold pipeline. Only fires when the growth gate passes (live surface >45% and >50K tokens grown since the last fold). Applies to new sessions; override the current one with /ctx-summary off|on|status.',
|
|
228
|
-
'intentSummary.enabled': 'Turn-tail intent summary',
|
|
229
|
-
'intentSummary.enabled.on': 'On',
|
|
230
|
-
'intentSummary.enabled.off': 'Off (default)',
|
|
231
|
-
'monitor.fab.title': 'Compression monitor',
|
|
232
|
-
'monitor.panel.title': 'Compression monitor',
|
|
233
|
-
'monitor.panel.net': 'Net Δ',
|
|
234
|
-
'monitor.panel.gross': 'Gross Δ',
|
|
235
|
-
'monitor.panel.offsets': 'Recall-recheck Δ',
|
|
236
|
-
'monitor.panel.totalNet': 'Total net (all sessions)',
|
|
237
|
-
'monitor.panel.totalGross': 'Total gross (all sessions)',
|
|
238
|
-
'monitor.panel.totalOffsets': 'Total offsets (all sessions)',
|
|
239
|
-
'monitor.panel.compositionBackfill': 'backfill est.',
|
|
240
|
-
'monitor.panel.cumulative': 'Cumulative (by N calls)',
|
|
241
|
-
'monitor.panel.money': 'Money estimate',
|
|
242
|
-
'monitor.panel.composition': 'How it saves (by path)',
|
|
243
|
-
'monitor.panel.compositionScope': 'Latest compressed session',
|
|
244
|
-
'monitor.panel.context': 'Context occupancy',
|
|
245
|
-
'monitor.panel.suggest': 'Context occupancy reached {pct}% — nearing the catastrophic-forgetting zone; consider compressing or trimming history',
|
|
246
|
-
'monitor.panel.cacheHit': 'Cache hit rate',
|
|
247
|
-
'monitor.panel.cost': 'Cost (actual / saved est.)',
|
|
248
|
-
'monitor.panel.intent': 'Intent summary',
|
|
249
|
-
'monitor.panel.overrideHint': 'Session override',
|
|
250
|
-
'monitor.panel.overridePrefix': 'Session override',
|
|
251
|
-
'monitor.panel.resume': 'Resume',
|
|
252
|
-
'monitor.panel.disable': 'Disable',
|
|
253
|
-
'monitor.panel.stateOn': 'on',
|
|
254
|
-
'monitor.panel.stateOff': 'off',
|
|
255
|
-
'monitor.panel.gateUnknown': 'not evaluated yet',
|
|
256
|
-
'monitor.panel.lastFold': 'Last fold',
|
|
257
|
-
'monitor.panel.stale': 'Snapshot unreachable — showing last data',
|
|
258
|
-
'monitorPanel.title': 'Compression monitor panel',
|
|
259
|
-
'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. Stats persist in SQLite and survive host restarts.',
|
|
260
|
-
'monitorPanel.enabled': 'Monitor panel',
|
|
261
|
-
'monitorPanel.enabled.on': 'On',
|
|
262
|
-
'monitorPanel.enabled.off': 'Off (default)',
|
|
263
|
-
'custom.title': 'Custom policy',
|
|
264
|
-
'custom.settingsHint': 'Edit detailed parameters in Settings > Context compression selector.',
|
|
265
|
-
'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.',
|
|
266
|
-
'custom.measurement': 'Exact DeepSeek tokenizer first; tokenizer estimate with calibration fallback. Never chars/4. Cache attribution remains unknown.',
|
|
267
|
-
'custom.unit': 'Canonical unit',
|
|
268
|
-
'custom.unit.tokens': 'Tokens',
|
|
269
|
-
'custom.unit.contextPercent': 'Context percent',
|
|
270
|
-
'custom.enabled': 'Enabled',
|
|
271
|
-
'custom.enabled.on': 'On',
|
|
272
|
-
'custom.enabled.off': 'Off',
|
|
273
|
-
'custom.fresh.enabled': 'Enable Fresh',
|
|
274
|
-
'custom.fresh.trigger': 'Fresh trigger',
|
|
275
|
-
'custom.fresh.target': 'Fresh target',
|
|
276
|
-
'custom.aggregate.enabled': 'Enable Aggregate',
|
|
277
|
-
'custom.aggregate.trigger': 'Aggregate trigger',
|
|
278
|
-
'custom.aggregate.target': 'Aggregate target',
|
|
279
|
-
'custom.history.enabled': 'Enable History',
|
|
280
|
-
'custom.history.trigger': 'History trigger',
|
|
281
|
-
'custom.history.keepRecentToolCalls': 'Protected recent tool calls',
|
|
282
|
-
'custom.history.keepRecentTokens': 'Protected recent tool-result tail',
|
|
283
|
-
'custom.history.minReclaim': 'Minimum reclaim',
|
|
284
|
-
'custom.prefixPolicy': 'Sent-prefix policy',
|
|
285
|
-
'custom.prefixPolicy.preserve': 'Preserve until capacity pressure',
|
|
286
|
-
'custom.prefixPolicy.pressureBreak': 'Allow routine history aging',
|
|
287
|
-
'custom.experimental': 'Experimental: these controls are Custom-only and never added to standard profiles.',
|
|
288
|
-
'custom.tailTrim.enabled': 'Enable TailTrim (experimental)',
|
|
289
|
-
'custom.tailTrim.trigger': 'TailTrim trigger',
|
|
290
|
-
'custom.tailTrim.warning': 'TailTrim requires the exact tokenizer and replaces at most one complete, finished, non-error tool-only group with a recoverable reference. It shares Protected recent tool calls, Protected recent tool-result tail, and Minimum reclaim with History. It rewrites a sent prefix and may reduce cache hits.',
|
|
291
|
-
'custom.save': 'Save Custom policy',
|
|
292
|
-
'custom.reset': 'Reset Custom policy',
|
|
293
|
-
'custom.invalid': 'Custom policy values are invalid.',
|
|
294
|
-
'savings.title': 'Savings (this process)',
|
|
295
|
-
'savings.netExact': 'Net saved (exact basis)',
|
|
296
|
-
'savings.netEstimated': 'Net saved (estimated basis)',
|
|
297
|
-
'savings.gross': 'Gross saved (at publish time)',
|
|
298
|
-
'savings.offsets': 'Offsets (compressed content re-read in full)',
|
|
299
|
-
'savings.empty': 'No compression yet — net savings appear after the first reduction lands.',
|
|
300
|
-
'savings.basisExact': 'exact',
|
|
301
|
-
'savings.basisEstimated': 'estimated',
|
|
302
|
-
'savings.basisNote': 'Bases are reported separately, never merged: exact = DeepSeek tokenizer; estimated = chars/4. A skeleton followed by a full read counts as negative savings (net can go below zero).',
|
|
303
|
-
'savings.requests': 'Requests',
|
|
304
|
-
'savings.cacheHit': 'Cache hit rate',
|
|
305
|
-
'savings.actualCost': 'Actual cost (official prices)',
|
|
306
|
-
'savings.savedMoney': 'Estimated saved cost (input price)',
|
|
307
|
-
'savings.perSession': 'Session',
|
|
308
|
-
"savings.focus": "focus",
|
|
309
|
-
"savings.degraded": "Persistence degraded — stats are in-memory only",
|
|
310
|
-
"savings.persisted": "Persisted",
|
|
311
|
-
"savings.pageNext": "Next",
|
|
312
|
-
"savings.pagePrev": "Prev",
|
|
313
|
-
"savings.sessions": "Session ledger",
|
|
314
|
-
"savings.money": "Money saved (cache-weighted)",
|
|
315
|
-
"savings.cumulative": "Cumulative (across N calls)",
|
|
316
|
-
} satisfies Record<ContextCompressionLocaleKey, string>
|