dsh-agent-enhancer 0.3.2 → 0.3.4
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.en.md +11 -18
- package/README.md +11 -18
- package/lib/client/context/right-tab.d.ts.map +1 -1
- package/lib/client/dsh/controls.d.ts.map +1 -1
- package/lib/client/dsh/persist-settings.d.ts +71 -0
- package/lib/client/dsh/persist-settings.d.ts.map +1 -0
- package/lib/client/dsh/settings-form.d.ts +19 -1
- package/lib/client/dsh/settings-form.d.ts.map +1 -1
- package/lib/client/dsh/settings.d.ts +4 -1
- package/lib/client/dsh/settings.d.ts.map +1 -1
- package/lib/client/index.d.ts.map +1 -1
- package/lib/client/locales.d.ts +5 -1
- package/lib/client/locales.d.ts.map +1 -1
- package/lib/client.js +169 -26
- package/lib/client.js.map +1 -1
- package/lib/host/auto-route/session-hook.d.ts.map +1 -1
- package/lib/host/auto-route/session-selection.d.ts +5 -1
- package/lib/host/auto-route/session-selection.d.ts.map +1 -1
- package/lib/host/checkpoint/dsh.d.ts.map +1 -1
- package/lib/host/context-compact.d.ts +27 -8
- package/lib/host/context-compact.d.ts.map +1 -1
- package/lib/host/index.d.ts +3 -6
- package/lib/host/index.d.ts.map +1 -1
- package/lib/identity.d.ts +1 -1
- package/lib/index.js +176 -131
- package/lib/index.js.map +4 -4
- package/package.json +4 -2
package/README.en.md
CHANGED
|
@@ -95,7 +95,7 @@ Then open the **Plugin Market** tab, search, and install this plugin. Some third
|
|
|
95
95
|
When the `dsh` CLI is available and you intend to write the **desktop** profile:
|
|
96
96
|
|
|
97
97
|
```sh
|
|
98
|
-
dsh plugin --profile desktop add dsh-agent-enhancer@0.3.
|
|
98
|
+
dsh plugin --profile desktop add dsh-agent-enhancer@0.3.4
|
|
99
99
|
```
|
|
100
100
|
|
|
101
101
|
Or unpinned: `dsh plugin --profile desktop add dsh-agent-enhancer`.
|
|
@@ -104,27 +104,20 @@ You should then see the optimize control and **Agent Enhance** in settings.
|
|
|
104
104
|
|
|
105
105
|
### Local directory (development)
|
|
106
106
|
|
|
107
|
-
**Do not** run `dsh plugin --profile desktop add <absolute-path>` against this repo: some Desktop / CLI builds rewrite the plugin
|
|
107
|
+
**Do not** run `dsh plugin --profile desktop add <absolute-path>` against this repo: some Desktop / CLI builds rewrite the plugin `package.json` or corrupt the profile. Use the one-shot switchers (they only edit `~/.dsh/profiles/desktop/package.json`, **never** the plugin Git tree):
|
|
108
108
|
|
|
109
109
|
```powershell
|
|
110
110
|
corepack pnpm install --frozen-lockfile
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
if (-not $json.dependencies) { $json | Add-Member -NotePropertyName dependencies -NotePropertyValue ([pscustomobject]@{}) }
|
|
118
|
-
$json.dependencies | Add-Member -NotePropertyName 'dsh-agent-enhancer' -NotePropertyValue "link:$Repo" -Force
|
|
119
|
-
$bundles = @($json.dsh.profile.bundles)
|
|
120
|
-
if ($bundles -notcontains 'dsh-agent-enhancer') {
|
|
121
|
-
$json.dsh.profile.bundles = @($bundles + 'dsh-agent-enhancer')
|
|
122
|
-
}
|
|
123
|
-
($json | ConvertTo-Json -Depth 20) | Set-Content -LiteralPath $ProfilePkg -Encoding utf8
|
|
124
|
-
dsh plugin --profile desktop install
|
|
111
|
+
|
|
112
|
+
# Local dev: build → pack → extract into profile/.dsh-enhancer-pack/pkg, then install
|
|
113
|
+
corepack pnpm desktop:link
|
|
114
|
+
|
|
115
|
+
# Back to npm (defaults to this package.json version; or: pnpm desktop:npm -- 0.3.4)
|
|
116
|
+
corepack pnpm desktop:npm
|
|
125
117
|
```
|
|
126
118
|
|
|
127
|
-
Fully quit and restart Desktop afterward.
|
|
119
|
+
Fully quit and restart Desktop afterward. After local code changes, run `corepack pnpm desktop:link` again (pack-snapshot install; no live repo hot reload).
|
|
120
|
+
Do not point `link:` / `file:` at the repo directory: on Windows that becomes a Junction and exposes this repo's `node_modules`, which leaves the plugin permanently off.
|
|
128
121
|
Keep host-shared DSH packages in both `peerDependencies` and `devDependencies`, not in `dependencies`.
|
|
129
122
|
|
|
130
123
|
---
|
|
@@ -156,7 +149,7 @@ Keep host-shared DSH packages in both `peerDependencies` and `devDependencies`,
|
|
|
156
149
|
| --- | --- |
|
|
157
150
|
| Official Desktop / dsh-market | Uninstall or disable the plugin on the in-app **Plugins** page; or `dsh plugin --profile desktop remove dsh-agent-enhancer` |
|
|
158
151
|
| CLI npm | `dsh plugin --profile desktop remove dsh-agent-enhancer` |
|
|
159
|
-
| Local `
|
|
152
|
+
| Local `file:` / dev install | **Do not** `remove` / run `pnpm remove` in the profile (a directory link can delete the source repo). Follow below |
|
|
160
153
|
|
|
161
154
|
1. Quit Desktop (including tray)
|
|
162
155
|
2. Edit the **profile** `package.json`: drop this plugin from `dependencies` and `dsh.profile.bundles`
|
package/README.md
CHANGED
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
本机已配置 `dsh` CLI、且要写入 **desktop** profile 时:
|
|
96
96
|
|
|
97
97
|
```sh
|
|
98
|
-
dsh plugin --profile desktop add dsh-agent-enhancer@0.3.
|
|
98
|
+
dsh plugin --profile desktop add dsh-agent-enhancer@0.3.4
|
|
99
99
|
```
|
|
100
100
|
|
|
101
101
|
也可不钉版本:`dsh plugin --profile desktop add dsh-agent-enhancer`。
|
|
@@ -104,27 +104,20 @@ dsh plugin --profile desktop add dsh-agent-enhancer@0.3.2
|
|
|
104
104
|
|
|
105
105
|
### 本地目录(开发)
|
|
106
106
|
|
|
107
|
-
**不要**对本地仓库执行 `dsh plugin --profile desktop add <绝对路径>`:部分 Desktop / CLI
|
|
107
|
+
**不要**对本地仓库执行 `dsh plugin --profile desktop add <绝对路径>`:部分 Desktop / CLI 会改写仓库 `package.json` 或弄坏 profile。本仓库提供一键切换(只改 `~/.dsh/profiles/desktop/package.json`,**不会**进插件 Git):
|
|
108
108
|
|
|
109
109
|
```powershell
|
|
110
110
|
corepack pnpm install --frozen-lockfile
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
if (-not $json.dependencies) { $json | Add-Member -NotePropertyName dependencies -NotePropertyValue ([pscustomobject]@{}) }
|
|
118
|
-
$json.dependencies | Add-Member -NotePropertyName 'dsh-agent-enhancer' -NotePropertyValue "link:$Repo" -Force
|
|
119
|
-
$bundles = @($json.dsh.profile.bundles)
|
|
120
|
-
if ($bundles -notcontains 'dsh-agent-enhancer') {
|
|
121
|
-
$json.dsh.profile.bundles = @($bundles + 'dsh-agent-enhancer')
|
|
122
|
-
}
|
|
123
|
-
($json | ConvertTo-Json -Depth 20) | Set-Content -LiteralPath $ProfilePkg -Encoding utf8
|
|
124
|
-
dsh plugin --profile desktop install
|
|
111
|
+
|
|
112
|
+
# 本机开发:build → pack → 解压到 profile/.dsh-enhancer-pack/pkg 再安装
|
|
113
|
+
corepack pnpm desktop:link
|
|
114
|
+
|
|
115
|
+
# 切回线上 npm(默认用本仓库 package.json 的 version;也可 pnpm desktop:npm -- 0.3.4)
|
|
116
|
+
corepack pnpm desktop:npm
|
|
125
117
|
```
|
|
126
118
|
|
|
127
|
-
然后完全退出并重启 Desktop
|
|
119
|
+
然后完全退出并重启 Desktop。本地改代码后需再执行 `corepack pnpm desktop:link`(当前为 pack 快照安装,不支持对着仓库热更新)。
|
|
120
|
+
不要对仓库目录用 `link:` / `file:`:Windows 上会变成 Junction,把仓库 `node_modules` 暴露给宿主,插件会一直「已关闭」。
|
|
128
121
|
与宿主共享的 DSH 包请同时放在 `peerDependencies` 与 `devDependencies`,不要放进 `dependencies`。
|
|
129
122
|
|
|
130
123
|
---
|
|
@@ -156,7 +149,7 @@ dsh plugin --profile desktop install
|
|
|
156
149
|
| --- | --- |
|
|
157
150
|
| 官方桌面端 / dsh-market | 在应用内 **插件** 页对本插件选择卸载或禁用;或 `dsh plugin --profile desktop remove dsh-agent-enhancer` |
|
|
158
151
|
| 命令行 npm | `dsh plugin --profile desktop remove dsh-agent-enhancer` |
|
|
159
|
-
| 本地 `
|
|
152
|
+
| 本地 `file:` / 开发安装 | **不要** `remove` / 在 profile 里 `pnpm remove`(若仍是目录链接可能删源仓库)。按下面做 |
|
|
160
153
|
|
|
161
154
|
1. 退出 Desktop(含托盘)
|
|
162
155
|
2. 编辑 **profile** 的 `package.json`:从 `dependencies` 与 `dsh.profile.bundles` 去掉本插件
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"right-tab.d.ts","sourceRoot":"","sources":["../../../src/client/context/right-tab.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAEjF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAC/D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAA;AACzE,OAAO,KAAK,EACV,sBAAsB,EAItB,oBAAoB,EACrB,MAAM,+BAA+B,CAAA;AAetC,MAAM,WAAW,2BAA4B,SAAQ,YAAY,CAAC,wBAAwB,CAAC;IACzF,QAAQ,CAAC,OAAO,EAAE,CAChB,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,sBAAsB,EAChC,MAAM,EAAE,WAAW,KAChB,OAAO,CAAC,oBAAoB,CAAC,CAAA;IAClC,QAAQ,CAAC,OAAO,EAAE,CAChB,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,WAAW,KAChB,OAAO,CAAC,oBAAoB,CAAC,CAAA;IAClC,QAAQ,CAAC,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAA;CAC1C;AA4DD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,
|
|
1
|
+
{"version":3,"file":"right-tab.d.ts","sourceRoot":"","sources":["../../../src/client/context/right-tab.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;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,
|
|
1
|
+
{"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../../../src/client/dsh/controls.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAGnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAIzD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAA;IAC/B,QAAQ,CAAC,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAA;CAC1C;AAUD,wBAAgB,aAAa,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,kBAAkB,kDAqC/D"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host settings write for the enhancer namespace.
|
|
3
|
+
*
|
|
4
|
+
* Typert requires arity 3 (`expected 3 argument(s), got 2`). Trailing
|
|
5
|
+
* `undefined` becomes `null` on the JSON wire, and Host treats null as a real
|
|
6
|
+
* expected revision (always conflicts). Always pass a numeric revision.
|
|
7
|
+
*
|
|
8
|
+
* When ConfigForm's mirrored revision is stale, refresh via describe and retry
|
|
9
|
+
* once — same recovery idea as ConfigForm.recover, without its pre-queue pin.
|
|
10
|
+
*/
|
|
11
|
+
export declare const ENHANCER_SETTINGS_NS = "agent-enhancer";
|
|
12
|
+
export type SettingsPersistOp = {
|
|
13
|
+
readonly op: 'set' | 'unset';
|
|
14
|
+
readonly path: readonly string[];
|
|
15
|
+
readonly value?: unknown;
|
|
16
|
+
};
|
|
17
|
+
type SettingsMutateOk = {
|
|
18
|
+
readonly ok: true;
|
|
19
|
+
readonly value?: unknown;
|
|
20
|
+
};
|
|
21
|
+
type SettingsMutateFail = {
|
|
22
|
+
readonly ok: false;
|
|
23
|
+
readonly error?: {
|
|
24
|
+
readonly message?: string;
|
|
25
|
+
} | string;
|
|
26
|
+
};
|
|
27
|
+
type SettingsMutateResponse = SettingsMutateOk | SettingsMutateFail;
|
|
28
|
+
type SettingsDescribeOk = {
|
|
29
|
+
readonly ok: true;
|
|
30
|
+
readonly value: {
|
|
31
|
+
readonly namespaces?: ReadonlyArray<{
|
|
32
|
+
readonly ns: string;
|
|
33
|
+
readonly revision: number;
|
|
34
|
+
}>;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
type SettingsDescribeFail = {
|
|
38
|
+
readonly ok: false;
|
|
39
|
+
readonly error?: unknown;
|
|
40
|
+
};
|
|
41
|
+
type SettingsDescribeResponse = SettingsDescribeOk | SettingsDescribeFail;
|
|
42
|
+
export type SettingsRemote = {
|
|
43
|
+
readonly settings: {
|
|
44
|
+
readonly mutate: (ns: string, ops: readonly SettingsPersistOp[], expectedRevision: number) => Promise<SettingsMutateResponse>;
|
|
45
|
+
readonly describe?: () => Promise<SettingsDescribeResponse>;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export type RevisionReader = () => number | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Soft-resolve `remote.settings`. Cordis blocks nested faces that are not in
|
|
51
|
+
* `inject`, so callers that did not hard-inject must use
|
|
52
|
+
* {@link withSettingsRemote} (lazy inject) instead of this alone.
|
|
53
|
+
*/
|
|
54
|
+
export declare function settingsRemoteOf(remote: unknown): SettingsRemote;
|
|
55
|
+
type InjectHost = {
|
|
56
|
+
readonly inject: (deps: readonly string[], callback: (scope: {
|
|
57
|
+
readonly remote: unknown;
|
|
58
|
+
}) => void | (() => void)) => {
|
|
59
|
+
readonly dispose: () => void | Promise<void>;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Run `run` with `remote.settings` available via a one-shot Cordis inject.
|
|
64
|
+
* Avoids putting `remote.settings` on the plugin's boot `inject` list (that
|
|
65
|
+
* delayed Desktop account paint).
|
|
66
|
+
*/
|
|
67
|
+
export declare function withSettingsRemote<T>(ctx: InjectHost, run: (remote: unknown) => Promise<T>): Promise<T>;
|
|
68
|
+
/** Persist enhancer config. Throws with Host detail on refusal. */
|
|
69
|
+
export declare function persistEnhancerSettings(remote: unknown, ops: readonly SettingsPersistOp[], readRevision?: RevisionReader): Promise<void>;
|
|
70
|
+
export {};
|
|
71
|
+
//# sourceMappingURL=persist-settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"persist-settings.d.ts","sourceRoot":"","sources":["../../../src/client/dsh/persist-settings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,eAAO,MAAM,oBAAoB,mBAAmB,CAAA;AAEpD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,EAAE,EAAE,KAAK,GAAG,OAAO,CAAA;IAC5B,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;IAChC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CACzB,CAAA;AAED,KAAK,gBAAgB,GAAG;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,CAAA;AACvE,KAAK,kBAAkB,GAAG;IACxB,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAA;IAClB,QAAQ,CAAC,KAAK,CAAC,EAAE;QAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAA;CACxD,CAAA;AACD,KAAK,sBAAsB,GAAG,gBAAgB,GAAG,kBAAkB,CAAA;AAEnE,KAAK,kBAAkB,GAAG;IACxB,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAA;IACjB,QAAQ,CAAC,KAAK,EAAE;QACd,QAAQ,CAAC,UAAU,CAAC,EAAE,aAAa,CAAC;YAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;SAAE,CAAC,CAAA;KACxF,CAAA;CACF,CAAA;AACD,KAAK,oBAAoB,GAAG;IAAE,QAA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AY,CAAC,EAAE,cAAc,GAC5B,OAAO,CAAC,IAAI,CAAC,CAcf"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { ConfigForm, ConfigFormSnapshot } from '@deepseek-ai/dsh-client-ui-settings/client';
|
|
2
2
|
import type { EnhancerSettings } from '../../config.ts';
|
|
3
|
-
export type SettingsForm = Pick<ConfigForm<EnhancerSettings>, 'getSnapshot' | 'subscribe' | 'set'>;
|
|
3
|
+
export type SettingsForm = Pick<ConfigForm<EnhancerSettings>, 'getSnapshot' | 'subscribe' | 'set' | 'mutate'>;
|
|
4
|
+
type SettingsPathOp = {
|
|
5
|
+
readonly op: 'set' | 'unset';
|
|
6
|
+
readonly path: readonly string[];
|
|
7
|
+
readonly value?: unknown;
|
|
8
|
+
};
|
|
4
9
|
export declare class AcceptedSettingsForm implements SettingsForm {
|
|
5
10
|
private readonly form;
|
|
6
11
|
private readonly listeners;
|
|
@@ -10,6 +15,19 @@ export declare class AcceptedSettingsForm implements SettingsForm {
|
|
|
10
15
|
getSnapshot(): ConfigFormSnapshot<EnhancerSettings>;
|
|
11
16
|
subscribe(listener: () => void): () => void;
|
|
12
17
|
set(field: string, value: unknown): Promise<boolean>;
|
|
18
|
+
/**
|
|
19
|
+
* Optimistic overlay after a successful fence-free Host write (see
|
|
20
|
+
* `persistEnhancerSettings`). Keeps pills in sync until ConfigForm mirrors
|
|
21
|
+
* the document-updated event.
|
|
22
|
+
*/
|
|
23
|
+
acceptLocal(ops: readonly SettingsPathOp[]): void;
|
|
24
|
+
/**
|
|
25
|
+
* Fallback Host write through ConfigForm. Prefer `persistEnhancerSettings`
|
|
26
|
+
* for UI saves — ConfigForm always attaches a revision fence.
|
|
27
|
+
*/
|
|
28
|
+
mutate(ops: readonly SettingsPathOp[], expectedRevision?: number): Promise<boolean>;
|
|
29
|
+
private remember;
|
|
13
30
|
private refresh;
|
|
14
31
|
}
|
|
32
|
+
export {};
|
|
15
33
|
//# sourceMappingURL=settings-form.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings-form.d.ts","sourceRoot":"","sources":["../../../src/client/dsh/settings-form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAA;AAChG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAEvD,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAAE,aAAa,GAAG,WAAW,GAAG,KAAK,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"settings-form.d.ts","sourceRoot":"","sources":["../../../src/client/dsh/settings-form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAA;AAChG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAEvD,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAAE,aAAa,GAAG,WAAW,GAAG,KAAK,GAAG,QAAQ,CAAC,CAAA;AAK7G,KAAK,cAAc,GAAG;IACpB,QAAQ,CAAC,EAAE,EAAE,KAAK,GAAG,OAAO,CAAA;IAC5B,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;IAChC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CACzB,CAAA;AAED,qBAAa,oBAAqB,YAAW,YAAY;IAK3C,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAwB;IAClD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA6B;IACtD,OAAO,CAAC,QAAQ,CAAsC;gBAEzB,IAAI,EAAE,YAAY;IAI/C,WAAW,IAAI,kBAAkB,CAAC,gBAAgB,CAAC;IAInD,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI;IAYrC,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAI1D;;;;OAIG;IACH,WAAW,CAAC,GAAG,EAAE,SAAS,cAAc,EAAE,GAAG,IAAI;IAIjD;;;OAGG;IACG,MAAM,CACV,GAAG,EAAE,SAAS,cAAc,EAAE,EAC9B,gBAAgB,CAAC,EAAE,MAAM,GACxB,OAAO,CAAC,OAAO,CAAC;IAgBnB,OAAO,CAAC,QAAQ;IAWhB,OAAO,CAAC,OAAO;CAehB"}
|
|
@@ -3,10 +3,13 @@ import type { ConfigForm } from '@deepseek-ai/dsh-client-ui-settings/client';
|
|
|
3
3
|
import type { ModelCatalog } from '@deepseek-ai/dsh-api-session-controller/types';
|
|
4
4
|
import type { EnhancerSettings } from '../../config.ts';
|
|
5
5
|
import type { ApplyUpdateResult, UpdateCheckResult } from '../../host/update/types.ts';
|
|
6
|
-
type
|
|
6
|
+
import type { SettingsPersistOp } from './persist-settings.ts';
|
|
7
|
+
type SettingsForm = Pick<ConfigForm<EnhancerSettings>, 'getSnapshot' | 'subscribe' | 'set' | 'mutate'>;
|
|
7
8
|
export interface PluginSettingsProps {
|
|
8
9
|
readonly form: SettingsForm;
|
|
9
10
|
readonly t: TranslateNS<'agent-enhancer'>;
|
|
11
|
+
/** Fence-free Host write; preferred over form.mutate/set for Desktop 0.2.2. */
|
|
12
|
+
readonly persist?: (ops: readonly SettingsPersistOp[]) => Promise<void>;
|
|
10
13
|
readonly loadCatalog?: () => Promise<ModelCatalog>;
|
|
11
14
|
readonly checkUpdate?: () => Promise<UpdateCheckResult>;
|
|
12
15
|
readonly applyUpdate?: () => Promise<ApplyUpdateResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/client/dsh/settings.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAA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,CAAC,CAAA;IACvD,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC,iBAAiB,CAAC,CAAA;CACxD;AA8wBD,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,2CAUxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAyFlD,eAAO,MAAM,MAAM,UAMlB,CAAA;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CA6fxC"}
|
package/lib/client/locales.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare module '@deepseek-ai/dsh-client-ui-slots' {
|
|
2
2
|
interface LocaleNamespaceMap {
|
|
3
|
-
'agent-enhancer': 'historyTitle' | 'historySearch' | 'historyResults' | 'historyClose' | 'optimize' | 'optimizePending' | 'optimizeUndo' | 'optimizeError' | 'optimizeChips' | 'optimizeChipSelection' | 'optimizeModelUnavailable' | 'optimizeRequestFailed' | 'optimizeInvalidOutput' | 'optimizeRollbackFailed' | 'optimizeSessionChanged' | 'settingsTitle' | 'settingsSubtitle' | 'history' | 'historyDescription' | 'optimizeDescription' | 'predict' | 'predictDescription' | 'privacyTitle' | 'privacy' | 'coexistence' | 'settingsError' | 'modelCatalogLoading' | 'modelCatalogError' | 'modelLabel' | 'modelFollowSession' | 'modelAuto' | 'modelUnconfigured' | 'reasoningDefault' | 'settingsBack' | 'settingsConfigure' | 'usageTitle' | 'usageNote' | 'usageMeterOpen' | 'usageBuckets' | 'usageBucketInput' | 'usageBucketOutput' | 'usageBucketCacheRead' | 'usageBucketCacheWrite' | 'usageReasoningNote' | 'usageChartSources' | 'usageChartModels' | 'usageChartTotal' | 'usageChartEmpty' | 'usageHeatmap' | 'usageHeatmapHint' | 'usageHeatmapHourHint' | 'usageShareBar' | 'usageTotalLabel' | 'usageEstimateLabel' | 'usageEstimateHint' | 'usageUnpriced' | 'usageBalanceLabel' | 'usageBalanceDetail' | 'usageBalanceStale' | 'usageBalanceNoKey' | 'usageBalanceUnavailable' | 'providerBalanceLabel' | 'providerBalanceDetail' | 'providerBalanceStale' | 'providerBalanceLoading' | 'providerBalanceNoKey' | 'providerBalanceSignedOut' | 'providerBalanceUnavailable' | 'providerBalanceRefreshHint' | 'usageRecordModel' | 'usageRecordProvider' | 'usageRecordEffort' | 'usageRecordInput' | 'usageRecordOutput' | 'usageRecordCacheRead' | 'usageRecordCacheWrite' | 'usageModelRouteEffort' | 'usageBack' | 'usageRecordsOpen' | 'usageRecordsHint' | 'usageRecordsEmpty' | 'usageLoading' | 'usageLoadFailed' | 'usageRetry' | 'usageRefresh' | 'usageUnavailable' | 'usageEmpty' | 'usageRangeLabel' | 'usageRange_today' | 'usageRange_7d' | 'usageRange_30d' | 'usageRange_all' | 'usageRecent' | 'usageRetention' | 'usageCalls' | 'usageModelRoute' | 'usageSource_optimize' | 'usageSource_predict' | 'usageSource_compact' | 'usageSource_autoClassifier' | 'usageSource_session' | 'usageSource_compaction' | 'usageSource_sessionTitle' | 'usageSource_other' | 'updateTitle' | 'updateCurrent' | 'updateCheck' | 'updateChecking' | 'updateLatest' | 'updateAvailable' | 'updateApply' | 'updateApplying' | 'updateRestart' | 'updateLinkBlocked' | 'updateManual' | 'updateFailed' | 'updateCheckFailed' | 'updateCopy' | 'updateCopied' | 'autoRouting' | 'autoRoutingDescription' | 'autoClassifier' | 'autoClassifierDescription' | 'autoMappingTitle' | 'autoTier_instant' | 'autoTier_thinking' | 'autoTier_pro' | 'autoTier_classifier' | 'overlapHistory' | 'overlapOptimize' | 'overlapPredict' | 'dismissHint' | 'rollback' | 'rollbackDescription' | 'rollbackBoundary' | 'rollbackAction' | 'rollbackUndoAction' | 'rollbackUndoCommandDescription' | 'rollbackTitle' | 'rollbackScope' | 'rollbackScopeAlready' | 'rollbackScopeCovered' | 'rollbackUndoTitle' | 'rollbackUndoScope' | 'rollbackUndoScopeConversation' | 'rollbackClose' | 'rollbackConfirm' | 'rollbackConfirmConversation' | 'rollbackConfirmAlready' | 'rollbackConfirmConversationAlready' | 'rollbackUndoConfirm' | 'rollbackUndoConfirmConversation' | 'rollbackCancel' | 'rollbackLoading' | 'rollbackAlreadyRestored' | 'rollbackCoveredByEarlier' | 'rollbackRestoring' | 'rollbackRestoringConversation' | 'rollbackUndoRestoring' | 'rollbackUndoRestoringConversation' | 'rollbackFailed' | 'rollbackFailedUnavailable' | 'rollbackFailedConflict' | 'rollbackFailedRecovery' | 'rollbackRetry' | 'rollbackTurnOpen' | 'rollbackTurnStartMissing' | 'rollbackSummary' | 'rollbackSummaryLabel' | 'rollbackMessageEmpty' | 'rollbackRole_user' | 'rollbackRole_assistant' | 'rollbackRole_tool' | 'rollbackRole_system' | 'rollbackRole_other' | 'rollbackCoverageFiles' | 'rollbackCoveragePartial' | 'rollbackCoverageConversation' | 'rollbackTimelineTitle' | 'rollbackTimelineOpen' | 'rollbackTimelineLead' | 'rollbackTimelineLeadRestoredNote' | 'rollbackTimelineRestoreHint' | 'rollbackTimelineFilterEmpty' | 'rollbackTimelineSearchLabel' | 'rollbackTimelineSearchPlaceholder' | 'rollbackTimelineLoading' | 'rollbackTimelineFailed' | 'rollbackTimelineEmpty' | 'rollbackTimelineNoSession' | 'rollbackTimelineTurn' | 'rollbackTimelineRolledBack' | 'rollbackTimelineTip' | 'rollbackTimelineOpening' | 'rollbackTimelineCoveredHint' | 'rollbackTimelineNoPrompt' | 'rollbackTimelineFileFallback' | 'rollbackTimelineFilesFallback' | 'rollbackTimelineCoverageFiles' | 'rollbackTimelineCoveragePartial' | 'rollbackTimelineCoverageConversation' | 'rollbackTimelineCoverageUnknown' | 'rollbackMessages' | 'rollbackFiles' | 'rollbackGaps' | 'rollbackFilesLimited' | 'rollbackFilesLimitedHint' | 'rollbackConflicts' | 'rollbackNoMessages' | 'rollbackNoFiles' | 'rollbackFile_create' | 'rollbackFile_modify' | 'rollbackFile_delete' | 'rollbackGapWorkspace' | 'rollbackGapPrompt' | 'rollbackUnavailableCheckpoint' | 'rollbackUnavailableIncomplete' | 'rollbackUnavailableSessionChanged' | 'rollbackUnavailableRunning' | 'rollbackUnavailablePermission' | 'rollbackUnavailableDisabled' | 'rollbackUnavailableIncompatible' | 'rollbackUnavailableCompacted' | 'rollbackUnavailableSubagent' | 'rollbackUnavailableUnknown' | 'rollbackUnavailableAlready' | 'rollbackUnavailableCovered' | 'rollbackConflictUnsafe' | 'rollbackConflictSymlink' | 'rollbackConflictRegular' | 'rollbackConflictBinary' | 'rollbackConflictLarge' | 'rollbackConflictBefore' | 'rollbackConflictHash' | 'rollbackConflictHashHint' | 'contextInspect' | 'contextInspectDescription' | 'contextInspectDetailTitle' | 'contextInspectNote' | 'contextInspectEmpty' | 'contextInspectApproxTotal' | 'contextInspectApproxBadge' | 'contextInspectOpenCategory' | 'contextInspectCategories' | 'contextInspectItemDetail' | 'contextInspectLoading' | 'contextInspectLoadFailed' | 'contextInspectNoSession' | 'contextInspectChartOverview' | 'contextInspectChartCategory' | 'contextInspectChartMessages' | 'contextInspectChartOther' | 'contextInspectCategory_system' | 'contextInspectCategory_tools' | 'contextInspectCategory_messages' | 'contextInspectKind_user' | 'contextInspectKind_inject' | 'contextInspectKind_assistant' | 'contextInspectKind_tool' | 'contextInspectKind_developer' | 'contextInspectHeadroom' | 'contextInspectOccupied' | 'contextInspectEvents' | 'contextInspectEvent_compact' | 'contextInspectEvent_prune' | 'contextInspectEvent_replace' | 'contextInspectReplaced' | 'contextInspectCompact' | 'contextInspectCompactHint' | 'contextInspectCompacting' | 'contextInspectCompactDone' | 'contextInspectCompactNoop' | 'contextInspectCompactUnavailable' | 'contextInspectCompactBusy' | 'contextInspectCompactFailed' | 'contextInspectCompactSummary' | 'contextInspectCompactChanged';
|
|
3
|
+
'agent-enhancer': 'historyTitle' | 'historySearch' | 'historyResults' | 'historyClose' | 'optimize' | 'optimizePending' | 'optimizeUndo' | 'optimizeError' | 'optimizeChips' | 'optimizeChipSelection' | 'optimizeModelUnavailable' | 'optimizeRequestFailed' | 'optimizeInvalidOutput' | 'optimizeRollbackFailed' | 'optimizeSessionChanged' | 'settingsTitle' | 'settingsSubtitle' | 'history' | 'historyDescription' | 'optimizeDescription' | 'predict' | 'predictDescription' | 'privacyTitle' | 'privacy' | 'coexistence' | 'settingsError' | 'settingsUnavailable' | 'modelCatalogLoading' | 'modelCatalogError' | 'modelLabel' | 'modelFollowSession' | 'modelAuto' | 'modelUnconfigured' | 'reasoningDefault' | 'settingsBack' | 'settingsConfigure' | 'usageTitle' | 'usageNote' | 'usageMeterOpen' | 'usageBuckets' | 'usageBucketInput' | 'usageBucketOutput' | 'usageBucketCacheRead' | 'usageBucketCacheWrite' | 'usageReasoningNote' | 'usageChartSources' | 'usageChartModels' | 'usageChartTotal' | 'usageChartEmpty' | 'usageHeatmap' | 'usageHeatmapHint' | 'usageHeatmapHourHint' | 'usageShareBar' | 'usageTotalLabel' | 'usageEstimateLabel' | 'usageEstimateHint' | 'usageUnpriced' | 'usageBalanceLabel' | 'usageBalanceDetail' | 'usageBalanceStale' | 'usageBalanceNoKey' | 'usageBalanceUnavailable' | 'providerBalanceLabel' | 'providerBalanceDetail' | 'providerBalanceStale' | 'providerBalanceLoading' | 'providerBalanceNoKey' | 'providerBalanceSignedOut' | 'providerBalanceUnavailable' | 'providerBalanceRefreshHint' | 'usageRecordModel' | 'usageRecordProvider' | 'usageRecordEffort' | 'usageRecordInput' | 'usageRecordOutput' | 'usageRecordCacheRead' | 'usageRecordCacheWrite' | 'usageModelRouteEffort' | 'usageBack' | 'usageRecordsOpen' | 'usageRecordsHint' | 'usageRecordsEmpty' | 'usageLoading' | 'usageLoadFailed' | 'usageRetry' | 'usageRefresh' | 'usageUnavailable' | 'usageEmpty' | 'usageRangeLabel' | 'usageRange_today' | 'usageRange_7d' | 'usageRange_30d' | 'usageRange_all' | 'usageRecent' | 'usageRetention' | 'usageCalls' | 'usageModelRoute' | 'usageSource_optimize' | 'usageSource_predict' | 'usageSource_compact' | 'usageSource_autoClassifier' | 'usageSource_session' | 'usageSource_compaction' | 'usageSource_sessionTitle' | 'usageSource_other' | 'updateTitle' | 'updateCurrent' | 'updateCheck' | 'updateChecking' | 'updateLatest' | 'updateAvailable' | 'updateApply' | 'updateApplying' | 'updateRestart' | 'updateLinkBlocked' | 'updateManual' | 'updateFailed' | 'updateCheckFailed' | 'updateCopy' | 'updateCopied' | 'autoRouting' | 'autoRoutingDescription' | 'autoClassifier' | 'autoClassifierDescription' | 'autoMappingTitle' | 'autoTier_instant' | 'autoTier_thinking' | 'autoTier_pro' | 'autoTier_classifier' | 'overlapHistory' | 'overlapOptimize' | 'overlapPredict' | 'dismissHint' | 'rollback' | 'rollbackDescription' | 'rollbackBoundary' | 'rollbackAction' | 'rollbackUndoAction' | 'rollbackUndoCommandDescription' | 'rollbackTitle' | 'rollbackScope' | 'rollbackScopeAlready' | 'rollbackScopeCovered' | 'rollbackUndoTitle' | 'rollbackUndoScope' | 'rollbackUndoScopeConversation' | 'rollbackClose' | 'rollbackConfirm' | 'rollbackConfirmConversation' | 'rollbackConfirmAlready' | 'rollbackConfirmConversationAlready' | 'rollbackUndoConfirm' | 'rollbackUndoConfirmConversation' | 'rollbackCancel' | 'rollbackLoading' | 'rollbackAlreadyRestored' | 'rollbackCoveredByEarlier' | 'rollbackRestoring' | 'rollbackRestoringConversation' | 'rollbackUndoRestoring' | 'rollbackUndoRestoringConversation' | 'rollbackFailed' | 'rollbackFailedUnavailable' | 'rollbackFailedConflict' | 'rollbackFailedRecovery' | 'rollbackRetry' | 'rollbackTurnOpen' | 'rollbackTurnStartMissing' | 'rollbackSummary' | 'rollbackSummaryLabel' | 'rollbackMessageEmpty' | 'rollbackRole_user' | 'rollbackRole_assistant' | 'rollbackRole_tool' | 'rollbackRole_system' | 'rollbackRole_other' | 'rollbackCoverageFiles' | 'rollbackCoveragePartial' | 'rollbackCoverageConversation' | 'rollbackTimelineTitle' | 'rollbackTimelineOpen' | 'rollbackTimelineLead' | 'rollbackTimelineLeadRestoredNote' | 'rollbackTimelineRestoreHint' | 'rollbackTimelineFilterEmpty' | 'rollbackTimelineSearchLabel' | 'rollbackTimelineSearchPlaceholder' | 'rollbackTimelineLoading' | 'rollbackTimelineFailed' | 'rollbackTimelineEmpty' | 'rollbackTimelineNoSession' | 'rollbackTimelineTurn' | 'rollbackTimelineRolledBack' | 'rollbackTimelineTip' | 'rollbackTimelineOpening' | 'rollbackTimelineCoveredHint' | 'rollbackTimelineNoPrompt' | 'rollbackTimelineFileFallback' | 'rollbackTimelineFilesFallback' | 'rollbackTimelineCoverageFiles' | 'rollbackTimelineCoveragePartial' | 'rollbackTimelineCoverageConversation' | 'rollbackTimelineCoverageUnknown' | 'rollbackMessages' | 'rollbackFiles' | 'rollbackGaps' | 'rollbackFilesLimited' | 'rollbackFilesLimitedHint' | 'rollbackConflicts' | 'rollbackNoMessages' | 'rollbackNoFiles' | 'rollbackFile_create' | 'rollbackFile_modify' | 'rollbackFile_delete' | 'rollbackGapWorkspace' | 'rollbackGapPrompt' | 'rollbackUnavailableCheckpoint' | 'rollbackUnavailableIncomplete' | 'rollbackUnavailableSessionChanged' | 'rollbackUnavailableRunning' | 'rollbackUnavailablePermission' | 'rollbackUnavailableDisabled' | 'rollbackUnavailableIncompatible' | 'rollbackUnavailableCompacted' | 'rollbackUnavailableSubagent' | 'rollbackUnavailableUnknown' | 'rollbackUnavailableAlready' | 'rollbackUnavailableCovered' | 'rollbackConflictUnsafe' | 'rollbackConflictSymlink' | 'rollbackConflictRegular' | 'rollbackConflictBinary' | 'rollbackConflictLarge' | 'rollbackConflictBefore' | 'rollbackConflictHash' | 'rollbackConflictHashHint' | 'contextInspect' | 'contextInspectDescription' | 'contextInspectDetailTitle' | 'contextInspectNote' | 'contextInspectEmpty' | 'contextInspectApproxTotal' | 'contextInspectApproxBadge' | 'contextInspectOpenCategory' | 'contextInspectCategories' | 'contextInspectItemDetail' | 'contextInspectLoading' | 'contextInspectLoadFailed' | 'contextInspectNoSession' | 'contextInspectChartOverview' | 'contextInspectChartCategory' | 'contextInspectChartMessages' | 'contextInspectChartOther' | 'contextInspectCategory_system' | 'contextInspectCategory_tools' | 'contextInspectCategory_messages' | 'contextInspectKind_user' | 'contextInspectKind_inject' | 'contextInspectKind_assistant' | 'contextInspectKind_tool' | 'contextInspectKind_developer' | 'contextInspectHeadroom' | 'contextInspectOccupied' | 'contextInspectEvents' | 'contextInspectEvent_compact' | 'contextInspectEvent_prune' | 'contextInspectEvent_replace' | 'contextInspectReplaced' | 'contextInspectCompact' | 'contextInspectCompactHint' | 'contextInspectCompacting' | 'contextInspectCompactDone' | 'contextInspectCompactNoop' | 'contextInspectCompactUnavailable' | 'contextInspectCompactBusy' | 'contextInspectCompactFailed' | 'contextInspectCompactModel' | 'contextInspectCompactSummary' | 'contextInspectCompactChanged';
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
6
|
export declare const agentLocales: {
|
|
@@ -133,6 +133,7 @@ export declare const agentLocales: {
|
|
|
133
133
|
readonly privacy: "优化、预测与上下文压缩会把相关内容发送给所选模型提供商(默认跟随当前会话模型);历史不请求模型;不采集提示词内容或采纳率遥测。模型账单只记录功能、模型和 token,留在本机,不上传。";
|
|
134
134
|
readonly coexistence: "检测到官方或第三方同类能力时仅提示,不会自动停用。";
|
|
135
135
|
readonly settingsError: "设置未保存,请重试。";
|
|
136
|
+
readonly settingsUnavailable: "插件未在宿主侧启用,无法写入设置。请在插件页打开「智能体增强」后重试。";
|
|
136
137
|
readonly overlapHistory: "检测到另一个历史提示词功能。智能体增强的历史仍保持开启。";
|
|
137
138
|
readonly overlapOptimize: "检测到另一个提示词优化功能。智能体增强的优化仍保持开启。";
|
|
138
139
|
readonly overlapPredict: "检测到另一个回复建议功能。智能体增强的预测仍保持开启。";
|
|
@@ -177,6 +178,7 @@ export declare const agentLocales: {
|
|
|
177
178
|
readonly contextInspectCompactUnavailable: "当前环境未提供官方压缩能力。";
|
|
178
179
|
readonly contextInspectCompactBusy: "智能体忙碌中,请结束后再压缩。";
|
|
179
180
|
readonly contextInspectCompactFailed: "压缩未完成,会话可能未变化,请稍后重试。";
|
|
181
|
+
readonly contextInspectCompactModel: "压缩模型不可用。请在设置里为压缩指定具体模型,或先用非 Auto 模型发一轮对话。";
|
|
180
182
|
readonly contextInspectCompactSummary: "未能生成可用摘要,会话未变化;可换模型后重试。";
|
|
181
183
|
readonly contextInspectCompactChanged: "压缩过程中历史已变化,会话未写入;请稍后重试。";
|
|
182
184
|
readonly rollback: "对话与文件恢复";
|
|
@@ -412,6 +414,7 @@ export declare const agentLocales: {
|
|
|
412
414
|
readonly privacy: "Optimize, predict, and context compact send related content to the selected model provider (defaults to the current session model). History never requests a model. No prompt content or acceptance-rate telemetry is collected. The model bill records only the feature, model, and token counts on this computer, and is not uploaded.";
|
|
413
415
|
readonly coexistence: "Similar official or third-party features are only reported; they are never disabled automatically.";
|
|
414
416
|
readonly settingsError: "Setting was not saved. Try again.";
|
|
417
|
+
readonly settingsUnavailable: "The plugin is not enabled on the host, so settings cannot be written. Turn on Agent Enhance in Plugins, then try again.";
|
|
415
418
|
readonly overlapHistory: "Another prompt-history feature is enabled. Agent Enhance history remains enabled.";
|
|
416
419
|
readonly overlapOptimize: "Another prompt-optimization feature is enabled. Agent Enhance optimization remains enabled.";
|
|
417
420
|
readonly overlapPredict: "Another reply-suggestion feature is enabled. Agent Enhance prediction remains enabled.";
|
|
@@ -456,6 +459,7 @@ export declare const agentLocales: {
|
|
|
456
459
|
readonly contextInspectCompactUnavailable: "Official compaction is not available here.";
|
|
457
460
|
readonly contextInspectCompactBusy: "The agent is busy. Try again when it is idle.";
|
|
458
461
|
readonly contextInspectCompactFailed: "Compaction did not finish. The conversation may be unchanged; try again.";
|
|
462
|
+
readonly contextInspectCompactModel: "No usable compact model. Pick a concrete model for compact in settings, or send one turn with a non-Auto model first.";
|
|
459
463
|
readonly contextInspectCompactSummary: "Could not produce a useful summary; the conversation is unchanged. Try another model.";
|
|
460
464
|
readonly contextInspectCompactChanged: "History changed during compaction; nothing was written. Try again.";
|
|
461
465
|
readonly rollback: "Conversation and file restore";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../src/client/locales.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,kCAAkC,CAAC;IAChD,UAAU,kBAAkB;QAC1B,gBAAgB,EAAE,cAAc,GAAG,eAAe,GAAG,gBAAgB,GAAG,cAAc,GACpF,UAAU,GAAG,iBAAiB,GAAG,cAAc,GAAG,eAAe,GAAG,eAAe,GAAG,uBAAuB,GAC7G,0BAA0B,GAAG,uBAAuB,GAAG,uBAAuB,GAAG,wBAAwB,GAAG,wBAAwB,GACpI,eAAe,GAAG,kBAAkB,GAAG,SAAS,GAAG,oBAAoB,GAAG,qBAAqB,GAC/F,SAAS,GAAG,oBAAoB,GAAG,cAAc,GAAG,SAAS,GAAG,aAAa,GAAG,eAAe,
|
|
1
|
+
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../src/client/locales.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,kCAAkC,CAAC;IAChD,UAAU,kBAAkB;QAC1B,gBAAgB,EAAE,cAAc,GAAG,eAAe,GAAG,gBAAgB,GAAG,cAAc,GACpF,UAAU,GAAG,iBAAiB,GAAG,cAAc,GAAG,eAAe,GAAG,eAAe,GAAG,uBAAuB,GAC7G,0BAA0B,GAAG,uBAAuB,GAAG,uBAAuB,GAAG,wBAAwB,GAAG,wBAAwB,GACpI,eAAe,GAAG,kBAAkB,GAAG,SAAS,GAAG,oBAAoB,GAAG,qBAAqB,GAC/F,SAAS,GAAG,oBAAoB,G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