@deepseek-harness-tui/dsh-tui 0.20.1 → 0.20.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 +14 -3
- package/guide/dsh-tui-guide/configuration.en.md +26 -12
- package/guide/dsh-tui-guide/configuration.md +18 -9
- package/guide/dsh-tui-guide/getting-started.en.md +17 -9
- package/guide/dsh-tui-guide/getting-started.md +11 -7
- package/guide/dsh-tui-guide/interaction.en.md +1 -0
- package/guide/dsh-tui-guide/interaction.md +1 -0
- package/guide/dsh-tui-guide/themes.en.md +1 -1
- package/guide/dsh-tui-guide/themes.md +1 -1
- package/guide/dsh-tui-guide/user-guide.en.md +8 -2
- package/guide/dsh-tui-guide/user-guide.md +8 -2
- package/lib/settings.json +19 -3
- package/lib/types/adapter/ports/channel-settings.d.ts +6 -0
- package/lib/types/adapter/ports/channel-settings.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-view.d.ts +28 -2
- package/lib/types/adapter/ports/channel-view.d.ts.map +1 -1
- package/lib/types/backends/claude/session/lifecycle.d.ts.map +1 -1
- package/lib/types/backends/claude/session/lifecycle.js +11 -9
- package/lib/types/backends/claude/side-query.d.ts +2 -0
- package/lib/types/backends/claude/side-query.d.ts.map +1 -1
- package/lib/types/backends/claude/side-query.js +30 -13
- package/lib/types/components/messages/AssistantToolUseMessage.d.ts +1 -1
- package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
- package/lib/types/components/messages/AssistantToolUseMessage.js +228 -27
- package/lib/types/components/messages/presentCardBackground.d.ts +28 -0
- package/lib/types/components/messages/presentCardBackground.d.ts.map +1 -0
- package/lib/types/components/messages/presentCardBackground.js +23 -0
- package/lib/types/dsh-adapter/backend/translate.d.ts.map +1 -1
- package/lib/types/dsh-adapter/backend/translate.js +28 -1
- package/lib/types/dsh-adapter/channel/core/compose.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/files.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/file-actions.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/file-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/file-actions.js +11 -4
- package/lib/types/dsh-adapter/channel/settings-host.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/settings-host.js +78 -12
- package/lib/types/dsh-adapter/channel/state.d.ts +4 -3
- package/lib/types/dsh-adapter/channel/state.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/state.js +4 -3
- package/lib/types/dsh-adapter/channel/types.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/types.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel.d.ts +1 -1
- package/lib/types/dsh-adapter/channel.d.ts.map +1 -1
- package/lib/types/dsh-adapter/contract.d.ts +18 -7
- package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
- package/lib/types/dsh-adapter/contract.js +20 -7
- package/lib/types/dsh-adapter/host-contract.d.ts +1 -1
- package/lib/types/dsh-adapter/host-contract.js +1 -1
- package/lib/types/dsh-adapter/host-entry.js +4 -2
- package/lib/types/dsh-adapter/host-service-diagnostics.d.ts +61 -0
- package/lib/types/dsh-adapter/host-service-diagnostics.d.ts.map +1 -0
- package/lib/types/dsh-adapter/host-service-diagnostics.js +103 -0
- package/lib/types/dsh-adapter/index.d.ts +5 -0
- package/lib/types/dsh-adapter/index.d.ts.map +1 -1
- package/lib/types/dsh-adapter/index.js +1 -0
- package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin.js +39 -2
- package/lib/types/dsh-adapter/present-tool.d.ts +20 -0
- package/lib/types/dsh-adapter/present-tool.d.ts.map +1 -0
- package/lib/types/dsh-adapter/present-tool.js +96 -0
- package/lib/types/i18n.d.ts +15 -0
- package/lib/types/i18n.d.ts.map +1 -1
- package/lib/types/i18n.js +6 -0
- package/lib/types/ink/components/ScrollBox.d.ts.map +1 -1
- package/lib/types/ink/components/ScrollBox.js +13 -0
- package/lib/types/ink/dom.d.ts +3 -0
- package/lib/types/ink/dom.d.ts.map +1 -1
- package/lib/types/ink/ink.d.ts.map +1 -1
- package/lib/types/ink/ink.js +30 -34
- package/lib/types/ink/render-node-to-output.d.ts +3 -0
- package/lib/types/ink/render-node-to-output.d.ts.map +1 -1
- package/lib/types/ink/render-node-to-output.js +54 -40
- package/lib/types/ink/selection.d.ts +38 -28
- package/lib/types/ink/selection.d.ts.map +1 -1
- package/lib/types/ink/selection.js +201 -130
- package/lib/types/kernelPrefs.d.ts +5 -2
- package/lib/types/kernelPrefs.d.ts.map +1 -1
- package/lib/types/kernelPrefs.js +5 -2
- package/lib/types/settings/definitions.d.ts +12 -0
- package/lib/types/settings/definitions.d.ts.map +1 -1
- package/lib/types/settings/definitions.js +10 -2
- package/lib/types/theme.d.ts +4 -0
- package/lib/types/theme.d.ts.map +1 -1
- package/lib/types/theme.js +20 -2
- package/lib/types/tuiDisplayPrefs.d.ts +3 -0
- package/lib/types/tuiDisplayPrefs.d.ts.map +1 -1
- package/lib/types/tuiDisplayPrefs.js +10 -0
- package/lib/types/update.d.ts +74 -5
- package/lib/types/update.d.ts.map +1 -1
- package/lib/types/update.js +297 -46
- package/lib/types/updateHost.d.ts.map +1 -1
- package/lib/types/updateHost.js +16 -5
- package/lib/types/usageStats.d.ts +6 -0
- package/lib/types/usageStats.d.ts.map +1 -1
- package/lib/types/usageStats.js +8 -0
- package/lib/types/utils/colorMix.d.ts +19 -0
- package/lib/types/utils/colorMix.d.ts.map +1 -0
- package/lib/types/utils/colorMix.js +51 -0
- package/lib/types/utils/commandLine.d.ts +8 -0
- package/lib/types/utils/commandLine.d.ts.map +1 -0
- package/lib/types/utils/commandLine.js +37 -0
- package/lib/types/utils/desktopEntry.d.ts +32 -0
- package/lib/types/utils/desktopEntry.d.ts.map +1 -0
- package/lib/types/utils/desktopEntry.js +302 -0
- package/lib/types/utils/externalEditor.d.ts +2 -5
- package/lib/types/utils/externalEditor.d.ts.map +1 -1
- package/lib/types/utils/externalEditor.js +4 -36
- package/lib/types/utils/openExternal.d.ts +9 -0
- package/lib/types/utils/openExternal.d.ts.map +1 -1
- package/lib/types/utils/openExternal.js +87 -3
- package/lib/types/utils/terminalLaunch.d.ts +16 -0
- package/lib/types/utils/terminalLaunch.d.ts.map +1 -0
- package/lib/types/utils/terminalLaunch.js +121 -0
- package/package.json +112 -111
- package/tui-profile/feed/README.md +1 -1
- package/tui-profile/feed/first-party.json +1 -1
|
@@ -66,6 +66,7 @@ export function webSettingsSections(ctx, namespaces) {
|
|
|
66
66
|
if (apiNs === undefined)
|
|
67
67
|
return [];
|
|
68
68
|
const valueOf = (ns) => ns === undefined ? undefined : namespaces.find(view => view.ns === ns)?.value;
|
|
69
|
+
const baseOf = (ns) => ns === undefined ? undefined : namespaces.find(view => view.ns === ns)?.base;
|
|
69
70
|
const webValue = valueOf(webNs);
|
|
70
71
|
const apiValue = valueOf(apiNs);
|
|
71
72
|
// 0.2.2-rc.2 replaced the shared `baseURL`/`apiKeyEnv` pair with per-capability
|
|
@@ -131,31 +132,59 @@ export function webSettingsSections(ctx, namespaces) {
|
|
|
131
132
|
// fields a pinned `searchApiKeyEnv` names the store, otherwise the shared
|
|
132
133
|
// DEEPSEEK_API_KEY the provider falls back to; the legacy Messages route
|
|
133
134
|
// keeps its own `apiKeyEnv`.
|
|
134
|
-
|
|
135
|
+
// 0.2.2-rc.5 composes no provider: the unset selection is the per-route
|
|
136
|
+
// Automatic mode, which runs Messages search on a DeepSeek model route and
|
|
137
|
+
// the Search API on every other route. It therefore keeps the Messages
|
|
138
|
+
// route's control and gains the Search API's when the two read different
|
|
139
|
+
// credential references.
|
|
140
|
+
const webProvider = getPath(webValue, ['searchProvider']);
|
|
141
|
+
const automaticSearch = webProvider === undefined || webProvider === null || webProvider === '';
|
|
142
|
+
const searchApi = webProvider === 'deepseek-search-api';
|
|
135
143
|
const searchNs = searchApi ? apiNs : messagesNs ?? apiNs;
|
|
136
144
|
const searchOwner = searchApi ? apiOwner : messagesOwner ?? apiOwner;
|
|
137
145
|
const searchRef = searchApi && splitApi
|
|
138
146
|
? apiKeyRef('search')
|
|
139
147
|
: credentialRefAt(searchNs, ['apiKeyEnv']) ?? 'DEEPSEEK_API_KEY';
|
|
140
148
|
const pinnedSearch = searchApi && splitApi;
|
|
149
|
+
const automaticRouteRef = automaticSearch && splitApi ? apiKeyRef('search') : undefined;
|
|
150
|
+
const routeSearchKey = automaticRouteRef === undefined || automaticRouteRef === searchRef
|
|
151
|
+
? undefined
|
|
152
|
+
: secretField({
|
|
153
|
+
path: ['searchApiKey'], label: 'Search API key', zh: '搜索 API 密钥',
|
|
154
|
+
hint: 'Paste the key for the Search API route (its searchApiKeyEnv reference, or the shared DEEPSEEK_API_KEY). Under Automatic, conversations not on a DeepSeek model route use it. Saved keys are never displayed.',
|
|
155
|
+
hintZh: '粘贴搜索 API 路由所用密钥(searchApiKeyEnv 引用;未设置时为共享的 DEEPSEEK_API_KEY)。「自动」下,非 DeepSeek 模型路由的会话使用它,保存后不再显示原值。',
|
|
156
|
+
ns: apiNs, owner: apiOwner, ref: automaticRouteRef,
|
|
157
|
+
});
|
|
141
158
|
const searchKey = secretField({
|
|
142
|
-
path: pinnedSearch ? ['searchApiKey'] : ['apiKey'],
|
|
143
|
-
|
|
159
|
+
path: pinnedSearch ? ['searchApiKey'] : ['apiKey'],
|
|
160
|
+
label: routeSearchKey === undefined ? 'API key' : 'Messages API key',
|
|
161
|
+
zh: routeSearchKey === undefined ? 'API 密钥' : 'Messages API 密钥',
|
|
162
|
+
...(automaticSearch
|
|
144
163
|
? {
|
|
145
|
-
hint: 'Paste
|
|
146
|
-
hintZh: '
|
|
164
|
+
hint: 'Paste a key for Messages search (its apiKeyEnv reference, or DEEPSEEK_API_KEY). Under Automatic, conversations on a DeepSeek model route use it. Saved keys are never displayed.',
|
|
165
|
+
hintZh: '粘贴 Messages 搜索所用密钥(apiKeyEnv 引用;未设置时为 DEEPSEEK_API_KEY)。「自动」下,DeepSeek 模型路由的会话使用它,保存后不再显示原值。',
|
|
147
166
|
}
|
|
148
|
-
:
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
167
|
+
: pinnedSearch
|
|
168
|
+
? {
|
|
169
|
+
hint: 'Paste the key for the pinned Search endpoint (its searchApiKeyEnv reference, or the shared DEEPSEEK_API_KEY). Saved keys are never displayed.',
|
|
170
|
+
hintZh: '粘贴固定搜索端点所用密钥(searchApiKeyEnv 引用,未设置时为共享的 DEEPSEEK_API_KEY),保存后不再显示原值。',
|
|
171
|
+
}
|
|
172
|
+
: {
|
|
173
|
+
hint: 'Paste a key for the selected search API (the active DeepSeek API-key route reference; DEEPSEEK_API_KEY when no route is configured). Saved keys are never displayed.',
|
|
174
|
+
hintZh: '粘贴当前搜索 API 的密钥(跟随当前 DeepSeek API 密钥路由的引用;没有该路由时为 DEEPSEEK_API_KEY),保存后不再显示原值。',
|
|
175
|
+
}),
|
|
152
176
|
ns: searchNs, owner: searchOwner, ref: searchRef,
|
|
153
177
|
});
|
|
154
178
|
// The Fetch API can pin its own key on rc.2; when it shares the Search ref,
|
|
155
179
|
// the one control above already writes it.
|
|
156
180
|
const fetchApi = splitApi && getPath(webValue, ['fetchProvider']) === 'deepseek-fetch-api';
|
|
157
181
|
const fetchRef = fetchApi ? apiKeyRef('fetch') : undefined;
|
|
158
|
-
|
|
182
|
+
// The Search controls already cover these references; a third control over
|
|
183
|
+
// the same reference would only duplicate their write.
|
|
184
|
+
const shownSearchRefs = new Set([searchRef]);
|
|
185
|
+
if (routeSearchKey !== undefined && automaticRouteRef !== undefined)
|
|
186
|
+
shownSearchRefs.add(automaticRouteRef);
|
|
187
|
+
const fetchKey = fetchRef === undefined || shownSearchRefs.has(fetchRef)
|
|
159
188
|
? undefined
|
|
160
189
|
: secretField({
|
|
161
190
|
path: ['fetchApiKey'], label: 'Fetch API key', zh: '抓取 API 密钥',
|
|
@@ -163,6 +192,16 @@ export function webSettingsSections(ctx, namespaces) {
|
|
|
163
192
|
hintZh: '粘贴抓取端点所用密钥(fetchApiKeyEnv 引用;与搜索共用密钥时跟随当前路由引用),保存后不再显示原值。',
|
|
164
193
|
ns: apiNs, owner: apiOwner, ref: fetchRef,
|
|
165
194
|
});
|
|
195
|
+
// Only a base layer that pins a provider hides Automatic: the settings
|
|
196
|
+
// service rewrites an unset back to that inherited value, so the option
|
|
197
|
+
// would bounce. No base means no lower layer configures the namespace, and
|
|
198
|
+
// the per-route selection still applies; this is the same source the
|
|
199
|
+
// official Web menu reads.
|
|
200
|
+
const webBase = baseOf(webNs);
|
|
201
|
+
const baseProvider = getPath(webBase, ['searchProvider']);
|
|
202
|
+
const automaticOffered = webBase === undefined || webBase === null
|
|
203
|
+
? true
|
|
204
|
+
: baseProvider === undefined || baseProvider === null || baseProvider === '';
|
|
166
205
|
const sections = [];
|
|
167
206
|
if (webNs !== undefined)
|
|
168
207
|
sections.push({
|
|
@@ -170,9 +209,34 @@ export function webSettingsSections(ctx, namespaces) {
|
|
|
170
209
|
fields: [
|
|
171
210
|
{
|
|
172
211
|
path: ['searchProvider'], label: 'Search', descriptions: { zh: '搜索' }, kind: 'text',
|
|
173
|
-
|
|
174
|
-
|
|
212
|
+
// The unset selection is 0.2.2-rc.5's per-route Automatic mode, not the
|
|
213
|
+
// legacy Messages provider, so it clears the user layer. A host whose
|
|
214
|
+
// base layer still pins the provider keeps its value and hides the
|
|
215
|
+
// option, as its own Web menu does.
|
|
216
|
+
format: value => typeof value === 'string' && value !== '' ? value : 'automatic',
|
|
217
|
+
parse: text => {
|
|
218
|
+
const value = text.trim();
|
|
219
|
+
if (value === '')
|
|
220
|
+
return { kind: 'clear' };
|
|
221
|
+
if (value.toLowerCase() === 'automatic') {
|
|
222
|
+
// Only a selection where the base leaves the provider unset;
|
|
223
|
+
// elsewhere a clear would be rewritten back to the base value.
|
|
224
|
+
return automaticOffered ? { kind: 'clear' } : undefined;
|
|
225
|
+
}
|
|
226
|
+
return { kind: 'set', value };
|
|
227
|
+
},
|
|
228
|
+
hint: automaticOffered
|
|
229
|
+
? 'Select Automatic, DeepSeek Search API or Messages search. Automatic runs Messages search on a DeepSeek model route and the Search API elsewhere. Custom provider IDs are also accepted.'
|
|
230
|
+
: 'Select DeepSeek Search API or Messages search. Custom provider IDs are also accepted.',
|
|
231
|
+
hintDescriptions: {
|
|
232
|
+
zh: automaticOffered
|
|
233
|
+
? '选择「自动」、「搜索 API」或 Messages 搜索。「自动」在 DeepSeek 模型路由上使用 Messages 搜索,其他路由使用搜索 API;也可输入自定义提供者 ID。'
|
|
234
|
+
: '选择 DeepSeek Search API 或 Messages 搜索,也可输入自定义提供者 ID。',
|
|
235
|
+
},
|
|
175
236
|
options: [
|
|
237
|
+
...(automaticOffered
|
|
238
|
+
? [{ value: 'automatic', label: 'Automatic', descriptions: { zh: '自动' } }]
|
|
239
|
+
: []),
|
|
176
240
|
{ value: 'deepseek-search-api', label: 'Search API', descriptions: { zh: '搜索 API' } },
|
|
177
241
|
{ value: 'deepseek-official', label: 'Messages' },
|
|
178
242
|
],
|
|
@@ -187,6 +251,7 @@ export function webSettingsSections(ctx, namespaces) {
|
|
|
187
251
|
],
|
|
188
252
|
},
|
|
189
253
|
...(searchKey === undefined ? [] : [searchKey]),
|
|
254
|
+
...(routeSearchKey === undefined ? [] : [routeSearchKey]),
|
|
190
255
|
...(fetchKey === undefined ? [] : [fetchKey]),
|
|
191
256
|
],
|
|
192
257
|
});
|
|
@@ -298,6 +363,7 @@ export function createSettingsHosts(ctx, assertActive = () => undefined) {
|
|
|
298
363
|
applies: descriptor.applies,
|
|
299
364
|
value: descriptor.value,
|
|
300
365
|
user: descriptor.user,
|
|
366
|
+
base: descriptor.base,
|
|
301
367
|
warning: descriptor.warning,
|
|
302
368
|
}));
|
|
303
369
|
},
|
|
@@ -25,9 +25,10 @@ export interface ChannelStartup {
|
|
|
25
25
|
readonly agentPreset?: string;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
|
-
* A startup open that failed for a reason `/new` cannot fix
|
|
29
|
-
*
|
|
30
|
-
*
|
|
28
|
+
* A startup open that failed for a reason `/new` cannot fix: the in-process DSH
|
|
29
|
+
* kernel's composition failed, or a Host row its preset needs is disabled in
|
|
30
|
+
* the profile, so there is no session to open on. Its `hint` replaces the
|
|
31
|
+
* failure row's `/new` hint (`startup-open-failed-hint`).
|
|
31
32
|
*/
|
|
32
33
|
export declare class StartupOpenError extends Error {
|
|
33
34
|
readonly hint: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/channel/state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AACxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AACnE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,EAAkH,KAAK,gBAAgB,EAAE,KAAK,iBAAiB,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAE1Q,OAAO,EAAuB,KAAK,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAC7F,OAAO,EAAyB,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAC5E,OAAO,KA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AG,OAAO,GAAG,eAAe,GAAG,SAAS,GAAG,aAAa,GAC9E,WAAW,GAAG,WAAW,GAAG,aAAa,GAAG,KAAK,GAAG,YAAY,GAAG,iBAAiB,GAAG,UAAU,GAAG,cAAc,GAAG,WAAW,GAAG,gBAAgB,GAAG,WAAW,CAClK,CA6BA"}
|
|
@@ -5,9 +5,10 @@ import { normalizeBrandSetting } from '../../branding.js';
|
|
|
5
5
|
/** The DSH backend's user-facing name (capability snapshot default). */
|
|
6
6
|
export const DSH_BACKEND_LABEL = 'DSH';
|
|
7
7
|
/**
|
|
8
|
-
* A startup open that failed for a reason `/new` cannot fix
|
|
9
|
-
*
|
|
10
|
-
*
|
|
8
|
+
* A startup open that failed for a reason `/new` cannot fix: the in-process DSH
|
|
9
|
+
* kernel's composition failed, or a Host row its preset needs is disabled in
|
|
10
|
+
* the profile, so there is no session to open on. Its `hint` replaces the
|
|
11
|
+
* failure row's `/new` hint (`startup-open-failed-hint`).
|
|
11
12
|
*/
|
|
12
13
|
export class StartupOpenError extends Error {
|
|
13
14
|
hint;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ChannelUi } from '../../adapter/ports/channel-ui.js';
|
|
2
2
|
import type { AttachedContext, RawTrajEvent, ChatRow, ToolCallView, ToolResultView, NotificationItem, TodoPanelItem, PendingMessage, StagedImageAdjustment, ComposerImageRef, TrajectorySource } from '../../adapter/ports/channel-view.js';
|
|
3
|
-
export type { AttachedContext, ChatRow, ToolRow, ToolCallView, ToolFileDiff, ToolResultView, SubagentRow, JobGroupRow, JobRow, TokenUsage, TokenBucket, CostTokenBuckets, SessionCostByModel, SubagentCostEntry, NotificationItem, ChannelGoal, TodoPanelItem, LoadedContext, LoadedContextEntry, LoadedContextFile, LoadedContextSkill, LoadedContextTool, PendingMessage, SubagentControl, SubagentTranscriptView, JobControl, StagedImageInput, StagedImageAdjustment, StagedImageHandle, ComposerImageRef, ComposerSubmission, ExternalCommandOutcome, TranscriptImage, ResumeResult, EffortOption, PermissionPresetSnapshot, PermissionPresetAvailability, PermissionPresetOption, PermissionPresetCurrent, PresetOption, SkillInfo, CredentialStatus, AgentViewRow, AgentViewStatus, AgentViewDispatchResult, BackgroundResult, BackendModeOption, BackendChannelOption, TrajectorySource } from '../../adapter/ports/channel-view.js';
|
|
3
|
+
export type { AttachedContext, ChatRow, ToolRow, ToolCallView, ToolFileDiff, ToolPresentedFile, ToolResultView, SubagentRow, JobGroupRow, JobRow, TokenUsage, TokenBucket, CostTokenBuckets, SessionCostByModel, SubagentCostEntry, NotificationItem, ChannelGoal, TodoPanelItem, LoadedContext, LoadedContextEntry, LoadedContextFile, LoadedContextSkill, LoadedContextTool, PendingMessage, SubagentControl, SubagentTranscriptView, JobControl, StagedImageInput, StagedImageAdjustment, StagedImageHandle, ComposerImageRef, ComposerSubmission, ExternalCommandOutcome, TranscriptImage, ResumeResult, EffortOption, PermissionPresetSnapshot, PermissionPresetAvailability, PermissionPresetOption, PermissionPresetCurrent, PresetOption, SkillInfo, CredentialStatus, AgentViewRow, AgentViewStatus, AgentViewDispatchResult, BackgroundResult, BackendModeOption, BackendChannelOption, TrajectorySource } from '../../adapter/ports/channel-view.js';
|
|
4
4
|
import { type ContentBlock, type StreamChunk } from '@deepseek-ai/dsh-llm';
|
|
5
5
|
import { type SessionEvent } from '@deepseek-ai/dsh-session';
|
|
6
6
|
import { type BackgroundJobState } from '../jobs.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/channel/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAA;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,OAAO,EAAW,YAAY,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/channel/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAA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E,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAA;QAClC,6BAA6B;QAC7B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;QAC/B,QAAQ,CAAC,UAAU,EAAE,SAAS,qBAAqB,EAAE,CAAA;KACtD,CAAA;IACD,SAAS,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,UAAU,CAAC;QAAC,SAAS,EAAE,qBAAqB,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,CAAA;CAClI;AAED,4EAA4E;AAC5E,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/B,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,OAAO,CAAA;KAAE,CAAA;CAC/C;AAED,MAAM,WAAW,gBAAgB;IAC/B,2EAA2E;IAC3E,MAAM,EAAE,YAAY,EAAE,CAAA;IACtB,2EAA2E;IAC3E,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,0EAA0E;IAC1E,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,+EAA+E;IAC/E,gBAAgB,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,qBAAqB,CAAA;KAAE,EAAE,CAAA;IACxE,kFAAkF;IAClF,aAAa,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CACnD"}
|
|
@@ -27,6 +27,6 @@ export declare function createChannel(ctx: Context, initial: AgentSession | Agen
|
|
|
27
27
|
export type { ChannelLaunchOptions } from './channel/state.js';
|
|
28
28
|
export { expandMentions } from './channel/mentions.js';
|
|
29
29
|
export { sessionCwdMatches } from './channel/paths.js';
|
|
30
|
-
export type { AgentViewDispatchResult, AgentViewRow, AgentViewStatus, BackgroundResult, BackendModeOption, BackendChannelOption, Channel, ChannelGoal, ChannelState, ChatRow, ComposerImageRef, ComposerSubmission, CredentialStatus, EffortOption, ExternalCommandOutcome, JobControl, JobGroupRow, JobRow, LoadedContext, LoadedContextEntry, LoadedContextFile, LoadedContextSkill, LoadedContextTool, MentionAttachments, MentionExpansion, MentionFs, NotificationItem, PendingMessage, PermissionPresetAvailability, PermissionPresetCurrent, PermissionPresetOption, PermissionPresetSnapshot, PresetOption, ResumeResult, SkillInfo, StagedImageHandle, StagedImageInput, SubagentControl, SubagentRow, TodoPanelItem, TokenBucket, TokenUsage, ToolCallView, ToolFileDiff, ToolResultView, ToolRow, ToolViewPresenter, TranscriptImage } from './channel/types.js';
|
|
30
|
+
export type { AgentViewDispatchResult, AgentViewRow, AgentViewStatus, BackgroundResult, BackendModeOption, BackendChannelOption, Channel, ChannelGoal, ChannelState, ChatRow, ComposerImageRef, ComposerSubmission, CredentialStatus, EffortOption, ExternalCommandOutcome, JobControl, JobGroupRow, JobRow, LoadedContext, LoadedContextEntry, LoadedContextFile, LoadedContextSkill, LoadedContextTool, MentionAttachments, MentionExpansion, MentionFs, NotificationItem, PendingMessage, PermissionPresetAvailability, PermissionPresetCurrent, PermissionPresetOption, PermissionPresetSnapshot, PresetOption, ResumeResult, SkillInfo, StagedImageHandle, StagedImageInput, SubagentControl, SubagentRow, TodoPanelItem, TokenBucket, TokenUsage, ToolCallView, ToolFileDiff, ToolPresentedFile, ToolResultView, ToolRow, ToolViewPresenter, TranscriptImage } from './channel/types.js';
|
|
31
31
|
export { emptyTokenUsage } from './channel/usage.js';
|
|
32
32
|
//# sourceMappingURL=channel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/channel.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,KAAK,E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AE,iBAAiB,EAAE,gBAAgB,EAAE,eAAe,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAC91B,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Primary validated upstream line (newest). */
|
|
2
|
-
export declare const UPSTREAM_VALIDATED_VERSION = "0.2.2-rc.
|
|
2
|
+
export declare const UPSTREAM_VALIDATED_VERSION = "0.2.2-rc.5";
|
|
3
3
|
/**
|
|
4
4
|
* The host CLI package whose installation `/update` aligns with the TUI.
|
|
5
5
|
* Re-exported here (the literal stays in host-contract.ts) so engine planning
|
|
@@ -15,11 +15,21 @@ export declare const UPSTREAM_HOST_PEER_PACKAGE: "@deepseek-ai/dsh-app-boot";
|
|
|
15
15
|
/**
|
|
16
16
|
* Explicitly supported upstream prerelease lines, oldest first.
|
|
17
17
|
*
|
|
18
|
-
* 0.2.2-rc.
|
|
18
|
+
* 0.2.2-rc.5 = primary continuous-CI line (dsh-base stops pinning
|
|
19
|
+
* `web.searchProvider`, so dsh-web selects per model provider route — legacy
|
|
20
|
+
* Messages search on a DeepSeek model route, the Search API elsewhere — and
|
|
21
|
+
* `WebSearchRequest` gains an optional `llmProvider`; the host lib files this
|
|
22
|
+
* adapter reproduces are byte-identical to rc.3, and the web-app patch is
|
|
23
|
+
* unchanged, so only the base patch surface moves);
|
|
24
|
+
* 0.2.2-rc.4 = previous 0.2.2 prerelease (dsh-llm adds the `CONTENT_REFUSED`
|
|
25
|
+
* finish code for a DeepSeek `refusal` stop reason in place of
|
|
26
|
+
* `MALFORMED_RESPONSE`; the TUI classifies turns by `reason.kind`, not by
|
|
27
|
+
* finish code, so no adapter change);
|
|
28
|
+
* 0.2.2-rc.3 = earlier 0.2.2 line (a release-train republish: the
|
|
19
29
|
* published code is identical to rc.2 apart from the web-only
|
|
20
30
|
* deepseek-chat-import bundle and one Cordis API catalog entry, so the
|
|
21
31
|
* replica and patch surfaces are unchanged);
|
|
22
|
-
* 0.2.2-rc.2 =
|
|
32
|
+
* 0.2.2-rc.2 = earlier 0.2.2 prerelease (AgentTeam moved into dsh-base
|
|
23
33
|
* with a per-session switch and named subagents, account notifications
|
|
24
34
|
* replaced the bonus API, DeepSeek Search/Fetch split their settings);
|
|
25
35
|
* 0.2.2-rc.1 = earlier 0.2.2 prerelease (the model-selection projection,
|
|
@@ -40,7 +50,7 @@ export declare const UPSTREAM_HOST_PEER_PACKAGE: "@deepseek-ai/dsh-app-boot";
|
|
|
40
50
|
* The peer range in package.json is deliberately wider than this list: an
|
|
41
51
|
* install on an older or newer line is allowed but reports drift at boot.
|
|
42
52
|
*/
|
|
43
|
-
export declare const UPSTREAM_VALIDATED_VERSIONS: readonly ["0.1.0-rc.6", "0.1.0-rc.7", "0.1.0-rc.8", "0.1.1-rc.1", "0.1.1-rc.2", "0.1.2-alpha.3", "0.1.2-alpha.4", "0.1.2-alpha.5", "0.1.2-rc.1", "0.1.3-alpha.2", "0.1.5-alpha.1", "0.1.5-alpha.2", "0.1.5-rc.1", "0.1.7-rc.1", "0.1.7-rc.2", "0.2.0-rc.1", "0.2.0-rc.2", "0.2.1-rc.2", "0.2.1-rc.3", "0.2.1-rc.4", "0.2.1-rc.5", "0.2.2-rc.1", "0.2.2-rc.2", "0.2.2-rc.3"];
|
|
53
|
+
export declare const UPSTREAM_VALIDATED_VERSIONS: readonly ["0.1.0-rc.6", "0.1.0-rc.7", "0.1.0-rc.8", "0.1.1-rc.1", "0.1.1-rc.2", "0.1.2-alpha.3", "0.1.2-alpha.4", "0.1.2-alpha.5", "0.1.2-rc.1", "0.1.3-alpha.2", "0.1.5-alpha.1", "0.1.5-alpha.2", "0.1.5-rc.1", "0.1.7-rc.1", "0.1.7-rc.2", "0.2.0-rc.1", "0.2.0-rc.2", "0.2.1-rc.2", "0.2.1-rc.3", "0.2.1-rc.4", "0.2.1-rc.5", "0.2.2-rc.1", "0.2.2-rc.2", "0.2.2-rc.3", "0.2.2-rc.4", "0.2.2-rc.5"];
|
|
44
54
|
/**
|
|
45
55
|
* Framework packages version on their own lines; the contract validates
|
|
46
56
|
* their MAJOR (breaking surface), not the harness prerelease number.
|
|
@@ -90,9 +100,10 @@ export declare function installedKernelVersion(): string | undefined;
|
|
|
90
100
|
* 已装宿主(`@deepseek-ai/dsh`)包的真实目录;源码 checkout(宿主不是本包
|
|
91
101
|
* 依赖)下为 undefined。
|
|
92
102
|
*
|
|
93
|
-
* `/update`
|
|
94
|
-
* `node_modules/@deepseek-ai/dsh`
|
|
95
|
-
*
|
|
103
|
+
* `/update` 只在「本进程启动的宿主」和 PATH 都给不出目录时用它做最后回退:
|
|
104
|
+
* profile 副本的 `node_modules/@deepseek-ai/dsh` 是模块回退链接,可能指向另一
|
|
105
|
+
* 个安装(例如旧 npx 缓存,issue #2028),不能当作当前引擎的唯一真源。拿到
|
|
106
|
+
* 目录后仍由 `src/updateHost.ts` 的 `detectHostInstall` 判定安装布局。
|
|
96
107
|
*/
|
|
97
108
|
export declare function installedKernelPackageDir(): string | undefined;
|
|
98
109
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/contract.ts"],"names":[],"mappings":"AAoBA,gDAAgD;AAChD,eAAO,MAAM,0BAA0B,eAAe,CAAA;AAEtD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,qBAAe,CAAA;AAUjD;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,6BAA4B,CAAA;AAEnE
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/contract.ts"],"names":[],"mappings":"AAoBA,gDAAgD;AAChD,eAAO,MAAM,0BAA0B,eAAe,CAAA;AAEtD;;;;GAIG;AACH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QG;AACH,wBAAgB,yBAAyB,IAAI,MAAM,GAAG,SAAS,CAM9D;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAKnF;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,iBAAiB,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAA+B,GAC5F,MAAM,EAAE,CAQV;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,iBAAiB,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAA+B,GAC5F,kBAAkB,EAAE,CAuBtB;AAED;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAA;AAEtE,wEAAwE;AACxE,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,iBAAiB,CAAA;IACvB,sFAAsF;IACtF,QAAQ,EAAE,MAAM,EAAE,CAAA;CACnB;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,iBAAiB,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAA+B,GAC5F,oBAAoB,GAAG,SAAS,CA0BlC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Upstream compatibility contract.
|
|
3
3
|
*
|
|
4
4
|
* The TUI is validated against a set of upstream prerelease lines — the
|
|
5
|
-
* current primary (0.2.2-rc.
|
|
5
|
+
* current primary (0.2.2-rc.5) plus older lines kept in backward
|
|
6
6
|
* compatibility across the 0.2.0, 0.1.7, 0.1.5, 0.1.3, 0.1.2, 0.1.1 and 0.1.0
|
|
7
7
|
* release families.
|
|
8
8
|
* Every official package this adapter touches is blessed here; anything
|
|
@@ -18,7 +18,7 @@ import { dirname } from 'node:path';
|
|
|
18
18
|
import { fileURLToPath } from 'node:url';
|
|
19
19
|
import { ADAPTER_TYPE_PACKAGES, HOST_MODULES, HOST_PACKAGE, HOST_TYPE_PACKAGES } from './host-contract.js';
|
|
20
20
|
/** Primary validated upstream line (newest). */
|
|
21
|
-
export const UPSTREAM_VALIDATED_VERSION = '0.2.2-rc.
|
|
21
|
+
export const UPSTREAM_VALIDATED_VERSION = '0.2.2-rc.5';
|
|
22
22
|
/**
|
|
23
23
|
* The host CLI package whose installation `/update` aligns with the TUI.
|
|
24
24
|
* Re-exported here (the literal stays in host-contract.ts) so engine planning
|
|
@@ -41,11 +41,21 @@ export const UPSTREAM_HOST_PEER_PACKAGE = APP_BOOT_MODULE.specifier;
|
|
|
41
41
|
/**
|
|
42
42
|
* Explicitly supported upstream prerelease lines, oldest first.
|
|
43
43
|
*
|
|
44
|
-
* 0.2.2-rc.
|
|
44
|
+
* 0.2.2-rc.5 = primary continuous-CI line (dsh-base stops pinning
|
|
45
|
+
* `web.searchProvider`, so dsh-web selects per model provider route — legacy
|
|
46
|
+
* Messages search on a DeepSeek model route, the Search API elsewhere — and
|
|
47
|
+
* `WebSearchRequest` gains an optional `llmProvider`; the host lib files this
|
|
48
|
+
* adapter reproduces are byte-identical to rc.3, and the web-app patch is
|
|
49
|
+
* unchanged, so only the base patch surface moves);
|
|
50
|
+
* 0.2.2-rc.4 = previous 0.2.2 prerelease (dsh-llm adds the `CONTENT_REFUSED`
|
|
51
|
+
* finish code for a DeepSeek `refusal` stop reason in place of
|
|
52
|
+
* `MALFORMED_RESPONSE`; the TUI classifies turns by `reason.kind`, not by
|
|
53
|
+
* finish code, so no adapter change);
|
|
54
|
+
* 0.2.2-rc.3 = earlier 0.2.2 line (a release-train republish: the
|
|
45
55
|
* published code is identical to rc.2 apart from the web-only
|
|
46
56
|
* deepseek-chat-import bundle and one Cordis API catalog entry, so the
|
|
47
57
|
* replica and patch surfaces are unchanged);
|
|
48
|
-
* 0.2.2-rc.2 =
|
|
58
|
+
* 0.2.2-rc.2 = earlier 0.2.2 prerelease (AgentTeam moved into dsh-base
|
|
49
59
|
* with a per-session switch and named subagents, account notifications
|
|
50
60
|
* replaced the bonus API, DeepSeek Search/Fetch split their settings);
|
|
51
61
|
* 0.2.2-rc.1 = earlier 0.2.2 prerelease (the model-selection projection,
|
|
@@ -91,6 +101,8 @@ export const UPSTREAM_VALIDATED_VERSIONS = [
|
|
|
91
101
|
'0.2.2-rc.1',
|
|
92
102
|
'0.2.2-rc.2',
|
|
93
103
|
'0.2.2-rc.3',
|
|
104
|
+
'0.2.2-rc.4',
|
|
105
|
+
'0.2.2-rc.5',
|
|
94
106
|
];
|
|
95
107
|
/**
|
|
96
108
|
* Framework packages version on their own lines; the contract validates
|
|
@@ -268,9 +280,10 @@ export function installedKernelVersion() {
|
|
|
268
280
|
* 已装宿主(`@deepseek-ai/dsh`)包的真实目录;源码 checkout(宿主不是本包
|
|
269
281
|
* 依赖)下为 undefined。
|
|
270
282
|
*
|
|
271
|
-
* `/update`
|
|
272
|
-
* `node_modules/@deepseek-ai/dsh`
|
|
273
|
-
*
|
|
283
|
+
* `/update` 只在「本进程启动的宿主」和 PATH 都给不出目录时用它做最后回退:
|
|
284
|
+
* profile 副本的 `node_modules/@deepseek-ai/dsh` 是模块回退链接,可能指向另一
|
|
285
|
+
* 个安装(例如旧 npx 缓存,issue #2028),不能当作当前引擎的唯一真源。拿到
|
|
286
|
+
* 目录后仍由 `src/updateHost.ts` 的 `detectHostInstall` 判定安装布局。
|
|
274
287
|
*/
|
|
275
288
|
export function installedKernelPackageDir() {
|
|
276
289
|
try {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
/** The host CLI package whose installation the entry loads. */
|
|
8
8
|
export declare const HOST_PACKAGE = "@deepseek-ai/dsh";
|
|
9
9
|
/** The host line the reproduced pieces were checked against (host-replica.snapshot.json). */
|
|
10
|
-
export declare const HOST_REPLICA_VERSION = "0.2.2-rc.
|
|
10
|
+
export declare const HOST_REPLICA_VERSION = "0.2.2-rc.5";
|
|
11
11
|
/** Where the entry resolves a host module from. */
|
|
12
12
|
export type HostModuleVia =
|
|
13
13
|
/** The host package's own `createRequire` (its nested node_modules). */
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
/** The host CLI package whose installation the entry loads. */
|
|
8
8
|
export const HOST_PACKAGE = '@deepseek-ai/dsh';
|
|
9
9
|
/** The host line the reproduced pieces were checked against (host-replica.snapshot.json). */
|
|
10
|
-
export const HOST_REPLICA_VERSION = '0.2.2-rc.
|
|
10
|
+
export const HOST_REPLICA_VERSION = '0.2.2-rc.5';
|
|
11
11
|
/** The host modules the entry loads, all from one installation, in load order. */
|
|
12
12
|
export const HOST_MODULES = [
|
|
13
13
|
{ key: 'cordis', specifier: '@deepseek-ai/cordis', via: 'host', exports: ['Context'] },
|
|
@@ -10,7 +10,7 @@ import { spawn } from 'node:child_process';
|
|
|
10
10
|
import { markBoot } from '../utils/bootTrace.js';
|
|
11
11
|
import { configuredBackend, delegatesToProfile, entryKernel, hostProfile } from '../hostEntryRoute.js';
|
|
12
12
|
import { HANDOFF_ACK_FD_ENV } from '../handoffAck.js';
|
|
13
|
-
import { HOST_NOTICE_ENV } from '../kernelPrefs.js';
|
|
13
|
+
import { HOST_ENTRY_DELEGATED_ENV, HOST_NOTICE_ENV } from '../kernelPrefs.js';
|
|
14
14
|
import { logForDebugging } from '../utils/debug.js';
|
|
15
15
|
import { setProcessName } from '../utils/processName.js';
|
|
16
16
|
import { cmdEscapeArgument } from '../utils/shellQuote.js';
|
|
@@ -22,6 +22,8 @@ markBoot('entry-start');
|
|
|
22
22
|
// #1831: process listings show the inherited main-thread name ("MainThread");
|
|
23
23
|
// the process that becomes the screen names itself as early as it can.
|
|
24
24
|
setProcessName('dsh-tui');
|
|
25
|
+
// A new entry boot decides its own route; only delegateToDsh marks its child.
|
|
26
|
+
delete process.env[HOST_ENTRY_DELEGATED_ENV];
|
|
25
27
|
// DSH's native flock loader reads `process.report.getReport()`; with sockets
|
|
26
28
|
// already open, the network section's reverse lookups block the event loop.
|
|
27
29
|
if (process.report !== undefined)
|
|
@@ -51,7 +53,7 @@ function delegateToDsh() {
|
|
|
51
53
|
// prompt with `&`, `|`, `<` or `>` stays one argument.
|
|
52
54
|
const child = spawn('dsh', windows ? args.map(arg => cmdEscapeArgument(arg, true)) : args, {
|
|
53
55
|
stdio: ack ? ['inherit', 'inherit', 'inherit', 3] : 'inherit',
|
|
54
|
-
env: process.env,
|
|
56
|
+
env: { ...process.env, [HOST_ENTRY_DELEGATED_ENV]: '1' },
|
|
55
57
|
...(windows ? { shell: true } : {}),
|
|
56
58
|
});
|
|
57
59
|
// The terminal's own signals reach dsh through the process group; one sent
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Explain a missing Host-scope service when the row that would provide it is
|
|
3
|
+
* disabled in the profile (issue #1842).
|
|
4
|
+
*
|
|
5
|
+
* dsh's compatibility gate can disable every row of an incompatible plugin,
|
|
6
|
+
* print one `disabling profile plugin row` line on stderr, and keep booting.
|
|
7
|
+
* A preset that switched the capability on then fails inside `agents.create`
|
|
8
|
+
* naming only the missing service — never the plugin. The Loader still holds
|
|
9
|
+
* the disabled row (or several rows sharing one specifier), but it does not
|
|
10
|
+
* record *why* a row was disabled, so the diagnostic states only what it can
|
|
11
|
+
* see and gives each cause its own fix.
|
|
12
|
+
*
|
|
13
|
+
* Failure diagnostics, not policy: this never re-evaluates compatibility and
|
|
14
|
+
* never suppresses the original error — including when reading the row itself
|
|
15
|
+
* fails, because `Entry.disabled` evaluates `!!js` expressions. The long text is
|
|
16
|
+
* only guaranteed on the stderr boot-failure path; the startup notice renders a
|
|
17
|
+
* truncated first line plus `StartupOpenError.hint`, and the `/new` toast renders
|
|
18
|
+
* only the first line of `message` — so callers build their own one-line hint
|
|
19
|
+
* from {@link MissingHostService.packageName} through the i18n dictionary
|
|
20
|
+
* (`startup-host-row-disabled-hint`) instead of reusing the English text.
|
|
21
|
+
*/
|
|
22
|
+
/** The Loader fields read here; `disabled`/`options.name` follow bundled-presets.ts. */
|
|
23
|
+
export interface LoaderRow {
|
|
24
|
+
readonly disabled: boolean;
|
|
25
|
+
readonly options?: {
|
|
26
|
+
readonly id?: unknown;
|
|
27
|
+
readonly name?: unknown;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
/** The slice of a Cordis context this needs; {@link describeMissingHostService} stays testable. */
|
|
31
|
+
export interface HostServiceLookup {
|
|
32
|
+
readonly baseUrl?: string;
|
|
33
|
+
get(name: string): unknown;
|
|
34
|
+
}
|
|
35
|
+
/** A disabled provider of the missing service, and the package a caller aligns. */
|
|
36
|
+
export interface MissingHostService {
|
|
37
|
+
/** English boot-failure text: stderr keeps it whole, the TUI keeps its first line. */
|
|
38
|
+
readonly detail: string;
|
|
39
|
+
/** The plugin package the row belongs to; the localized one-line hint builds on it. */
|
|
40
|
+
readonly packageName: string;
|
|
41
|
+
}
|
|
42
|
+
/** The package a specifier belongs to: `@scope/pkg/sub` → `@scope/pkg`, `pkg/sub` → `pkg`. */
|
|
43
|
+
export declare function packageNameOf(specifier: string): string;
|
|
44
|
+
/**
|
|
45
|
+
* The version installed where the profile resolves it, undefined when unreadable.
|
|
46
|
+
* `findPackageJSON` walks node_modules instead of the exports map, so a package
|
|
47
|
+
* that hides `./package.json` still reports its version.
|
|
48
|
+
*/
|
|
49
|
+
export declare function installedVersion(ctx: HostServiceLookup, packageName: string): string | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Explain a missing Host-scope service when the row naming it is disabled.
|
|
52
|
+
*
|
|
53
|
+
* One Loader walk per call: `disabled` is a getter that re-evaluates the row's
|
|
54
|
+
* `!!js` expression, so the row list and the disabled state are read once and
|
|
55
|
+
* both the long text and the caller's hint are derived from that result.
|
|
56
|
+
* @param ctx - the TUI plugin context (profile resolution base + Loader service).
|
|
57
|
+
* @param message - the original failure message; left untouched otherwise.
|
|
58
|
+
* @returns the diagnostic and owning package, or undefined when this is not the case.
|
|
59
|
+
*/
|
|
60
|
+
export declare function describeMissingHostService(ctx: HostServiceLookup, message: string): MissingHostService | undefined;
|
|
61
|
+
//# sourceMappingURL=host-service-diagnostics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-service-diagnostics.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/host-service-diagnostics.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAQH,wFAAwF;AACxF,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE,CAAA;CACtE;AAyBD,mGAAmG;AACnG,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;CAC3B;AAED,mFAAmF;AACnF,MAAM,WAAW,kBAAkB;IACjC,sFAAsF;IACtF,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,uFAAuF;IACvF,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAC7B;AAED,8FAA8F;AAC9F,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAGvD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAUhG;AAED;;;;;;;;;GASG;AACH,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,iBAAiB,EACtB,OAAO,EAAE,MAAM,GACd,kBAAkB,GAAG,SAAS,CAyChC"}
|