@xmoon76/dsh-pi-tui 0.5.6 → 0.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +33 -0
- package/README.en.md +103 -814
- package/README.md +102 -711
- package/cordis.patch.yml +186 -0
- package/dist/acp-preferences.d.mts +29 -0
- package/dist/acp-preferences.mjs +15 -0
- package/dist/{bootstrap-DQ4YPL-7.mjs → bootstrap-CMIjGyuk.mjs} +33515 -7587
- package/dist/builtins.mjs +3 -3
- package/dist/{client-bootstrap-Cr1JCaF5.mjs → client-bootstrap-BjGPc-DM.mjs} +4637 -492
- package/dist/client-extension-loader-probe-BUw7q8bJ.mjs +119 -0
- package/dist/command-trust-DChWUamk.mjs +406 -0
- package/dist/daemon-launcher-Dult7Jxv.mjs +1932 -0
- package/dist/daemon-launcher.d.mts +159 -0
- package/dist/daemon-launcher.mjs +2 -0
- package/dist/diagnostics-D5jwc-q1.d.mts +11 -0
- package/dist/{dist-CIsR7cz4.mjs → dist-BFgC-5tL.mjs} +938 -487
- package/dist/entry-control-DjNsE3I0.mjs +190 -0
- package/dist/extension/advanced.d.mts +1 -1
- package/dist/extension/unstable.d.mts +1 -1
- package/dist/extension-config-probe-BDdvutkG.mjs +95 -0
- package/dist/extension-config.d.mts +29 -0
- package/dist/extension-config.mjs +22 -0
- package/dist/{extensions-Bp0L37lP.mjs → extensions-B4uLpSTv.mjs} +1109 -100
- package/dist/{extensions-Bte3XOt5.d.mts → extensions-C8eAM0gX.d.mts} +1 -1
- package/dist/extensions.d.mts +2 -2
- package/dist/extensions.mjs +1 -1
- package/dist/{host-bootstrap-DilsvA6f.mjs → host-bootstrap-MVxks641.mjs} +129 -24
- package/dist/{host-foundation-probe--5jtvHVe.mjs → host-foundation-probe-DMNTmNrH.mjs} +2 -2
- package/dist/host-runtime.d.mts +11 -5
- package/dist/host-runtime.mjs +4171 -920
- package/dist/index.d.mts +86 -174
- package/dist/index.mjs +38087 -9967
- package/dist/local-acp-listener-B65J0Bx4.mjs +3115 -0
- package/dist/local-client.mjs +1158 -59
- package/dist/local-daemon-control-C14q9KnD.mjs +1588 -0
- package/dist/local-daemon-control-TCnERL7n.mjs +1424 -0
- package/dist/local-discovery-DOSsCh9q.mjs +2883 -0
- package/dist/local-discovery-egN4_gsQ.mjs +2 -0
- package/dist/local-discovery-uOBfFq5j.mjs +2764 -0
- package/dist/local-host.mjs +812 -89
- package/dist/local-profile-daemon-admin-BmQSdzT0.mjs +210 -0
- package/dist/local-scope-DamiMqPd.mjs +1340 -0
- package/dist/{local-transport-BVwFYq_Y.mjs → local-transport-Iwo0mtu3.mjs} +313 -38
- package/dist/local-web-control-DMrjwCkl.mjs +454 -0
- package/dist/local-workspace-object-D06GL0UO.mjs +248 -0
- package/dist/native/darwin/prebuilds/darwin-arm64/darwin-platform.node +0 -0
- package/dist/native/darwin/prebuilds/darwin-x64/darwin-platform.node +0 -0
- package/dist/open-CmOBxSjN.mjs +63 -0
- package/dist/persisted-setting-probe-DWZLtWoB.mjs +145 -0
- package/dist/pi-tui-acp-access-contract-BdLwduU6.mjs +75 -0
- package/dist/pi-tui-remote-contribution-Do8ECrUy.mjs +1492 -0
- package/dist/pi-tui-terminal-progress-contract-B3RoEzjK.mjs +146 -0
- package/dist/preferences.d.mts +17 -0
- package/dist/preferences.mjs +20 -0
- package/dist/preset-BcWqOtY7.mjs +46 -0
- package/dist/profile-preferences-migration-BfUGdPZx.mjs +500 -0
- package/dist/profile-preferences-migration-CThz4rHH.mjs +2 -0
- package/dist/prompt-sections-DUKmWb8g.mjs +2232 -0
- package/dist/prompt-sections-DXmjB58H.mjs +634 -0
- package/dist/{public-types-Dgf1bDke.d.mts → public-types-C1YgFtwC.d.mts} +56 -3
- package/dist/row-id-DPbyt9Nn.mjs +24 -0
- package/dist/{runtime-status-Cj1nFOdS.mjs → runtime-status-v-FTnWcD.mjs} +49 -3
- package/dist/schema-BTGYn8_X.d.mts +54 -0
- package/dist/schema-qE_P09zJ.mjs +124 -0
- package/dist/{session-BKGXyh80.mjs → session-C6tSs86s.mjs} +9672 -7270
- package/dist/{session-CPt_U8_f.mjs → session-CstInGIA.mjs} +9674 -7273
- package/dist/startup-CarQxWwi.d.mts +213 -0
- package/dist/{startup-7BYWuvBU.mjs → startup-EG5UqIcd.mjs} +341 -26
- package/dist/startup.d.mts +2 -99
- package/dist/startup.mjs +2 -2
- package/dist/{terminal-progress-source-DrqQhtT8.mjs → terminal-progress-source-CpfpQO_h.mjs} +2038 -67
- package/dist/{pasted-path-range-CMnxuGPx.mjs → transcript-view-C1YtJ49Y.mjs} +11590 -6718
- package/dist/{pasted-path-range-r6qzV_tC.mjs → transcript-view-CuJYWkhp.mjs} +12296 -6923
- package/dist/version-B9yC7bBk.mjs +83 -0
- package/dist/visual-tools.d.mts +1 -1
- package/dist/visual-tools.mjs +1 -1
- package/dist/web-preferences.d.mts +1 -1
- package/dist/{web-roster-CjqnUXNk.mjs → web-roster-Dis7BhrA.mjs} +63 -3
- package/generated/dsh-presets/cordis.patch.yml +4 -2
- package/generated/dsh-presets/ptc.patch.yml +4 -0
- package/generated/dsh-presets/standard.patch.yml +7 -0
- package/generated/web-access/cordis.patch.yml +239 -0
- package/package.json +217 -170
- package/dist/entry-control-DnduyDiw.mjs +0 -92
- package/dist/local-discovery-C9VMjc0K.mjs +0 -759
- package/dist/local-discovery-CDaQHA_R.mjs +0 -2
- package/dist/pi-tui-remote-contribution-B0EQsP0N.mjs +0 -85
- package/dist/pi-tui-terminal-progress-contract-CdBH9j78.mjs +0 -70
- package/dist/pi-tui-terminal-progress-contract-MLXZ-i3t.mjs +0 -905
- package/dist/version-a-eF-QER.mjs +0 -80
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as TuiKeybindingContribution, D as PiTuiApiInfo, K as TuiAutocompleteRegistryView, M as RegistrationSpec, Q as TuiCommandHandle, X as TuiCommandBridgeView, Z as TuiCommandContribution, at as TuiOverlayHandle, dt as TuiSettingHandle, et as TuiKeybindingHandle, gt as TuiThemeHandle, ht as TuiThemeContribution, i as AutocompleteProviderContribution, it as TuiMessageRendererContribution, j as RegistrationHandle, l as EditorContribution, lt as TuiRendererRegistryView, nt as TuiKeybindingRegistryView, ot as TuiOverlayOptions, pt as TuiSettingsRegistryView, r as AutocompleteHandle, st as TuiRendererHandle, u as EditorHandle, ut as TuiSettingContribution, v as ExtensionView, vt as TuiThemeRegistryView, yt as TuiToolRendererContribution, z as SurfaceStateValues } from "./public-types-
|
|
1
|
+
import { $ as TuiKeybindingContribution, D as PiTuiApiInfo, K as TuiAutocompleteRegistryView, M as RegistrationSpec, Q as TuiCommandHandle, X as TuiCommandBridgeView, Z as TuiCommandContribution, at as TuiOverlayHandle, dt as TuiSettingHandle, et as TuiKeybindingHandle, gt as TuiThemeHandle, ht as TuiThemeContribution, i as AutocompleteProviderContribution, it as TuiMessageRendererContribution, j as RegistrationHandle, l as EditorContribution, lt as TuiRendererRegistryView, nt as TuiKeybindingRegistryView, ot as TuiOverlayOptions, pt as TuiSettingsRegistryView, r as AutocompleteHandle, st as TuiRendererHandle, u as EditorHandle, ut as TuiSettingContribution, v as ExtensionView, vt as TuiThemeRegistryView, yt as TuiToolRendererContribution, z as SurfaceStateValues } from "./public-types-C1YgFtwC.mjs";
|
|
2
2
|
import { EventEmitter } from "events";
|
|
3
3
|
import { Context, Service } from "@deepseek-ai/cordis";
|
|
4
4
|
|
package/dist/extensions.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as TuiKeybindingContribution, A as PiTuiSlotSemantic, B as TextView, C as InputWidget, D as PiTuiApiInfo, E as NormalizedKey, F as SpacerView, G as TuiAutocompleteQuery, H as TuiAction, I as StackView, J as TuiColorPalette, K as TuiAutocompleteRegistryView, L as StyledSpan, M as RegistrationSpec, N as RowsView, O as PiTuiCapability, P as SessionSnapshot, Q as TuiCommandHandle, R as SurfaceSnapshot, S as HeaderBadge, T as MessagePresentationSnapshot, U as TuiAutocompleteItem, V as ToolPresentationSnapshot, W as TuiAutocompleteProvider, X as TuiCommandBridgeView, Y as TuiCommandBridgeSnapshot, Z as TuiCommandContribution, _t as TuiThemeRegistrySnapshot, a as ContributionHealth, at as TuiOverlayHandle, b as FooterSegment, bt as describeKey, c as DockItem, ct as TuiRendererRegistrySnapshot, d as EditorHost, dt as TuiSettingHandle, et as TuiKeybindingHandle, f as EditorHostAction, ft as TuiSettingsRegistrySnapshot, g as ExtensionEditor, gt as TuiThemeHandle, h as EditorSnapshot, ht as TuiThemeContribution, i as AutocompleteProviderContribution, it as TuiMessageRendererContribution, j as RegistrationHandle, k as PiTuiSlotName, l as EditorContribution, m as EditorInputEvent, mt as TuiSizeValue, n as ActivitySnapshot, nt as TuiKeybindingRegistryView, o as ContributionRecord, ot as TuiOverlayOptions, p as EditorHostActionResult, pt as TuiSettingsRegistryView, q as TuiAutocompleteSuggestions, r as AutocompleteHandle, rt as TuiLocalCommandHandler, s as ContributionState, st as TuiRendererHandle, t as API_VERSION, tt as TuiKeybindingRegistrySnapshot, u as EditorHandle, ut as TuiSettingContribution, v as ExtensionView, vt as TuiThemeRegistryView, w as MarkdownView, x as FrameView, y as FooterItemContribution, yt as TuiToolRendererContribution, z as SurfaceStateValues } from "./public-types-
|
|
2
|
-
import { a as PiTuiExtensionService, i as PI_TUI_EXTENSIONS_SERVICE, n as inject, r as name, t as apply } from "./extensions-
|
|
1
|
+
import { $ as TuiKeybindingContribution, A as PiTuiSlotSemantic, B as TextView, C as InputWidget, D as PiTuiApiInfo, E as NormalizedKey, F as SpacerView, G as TuiAutocompleteQuery, H as TuiAction, I as StackView, J as TuiColorPalette, K as TuiAutocompleteRegistryView, L as StyledSpan, M as RegistrationSpec, N as RowsView, O as PiTuiCapability, P as SessionSnapshot, Q as TuiCommandHandle, R as SurfaceSnapshot, S as HeaderBadge, T as MessagePresentationSnapshot, U as TuiAutocompleteItem, V as ToolPresentationSnapshot, W as TuiAutocompleteProvider, X as TuiCommandBridgeView, Y as TuiCommandBridgeSnapshot, Z as TuiCommandContribution, _t as TuiThemeRegistrySnapshot, a as ContributionHealth, at as TuiOverlayHandle, b as FooterSegment, bt as describeKey, c as DockItem, ct as TuiRendererRegistrySnapshot, d as EditorHost, dt as TuiSettingHandle, et as TuiKeybindingHandle, f as EditorHostAction, ft as TuiSettingsRegistrySnapshot, g as ExtensionEditor, gt as TuiThemeHandle, h as EditorSnapshot, ht as TuiThemeContribution, i as AutocompleteProviderContribution, it as TuiMessageRendererContribution, j as RegistrationHandle, k as PiTuiSlotName, l as EditorContribution, m as EditorInputEvent, mt as TuiSizeValue, n as ActivitySnapshot, nt as TuiKeybindingRegistryView, o as ContributionRecord, ot as TuiOverlayOptions, p as EditorHostActionResult, pt as TuiSettingsRegistryView, q as TuiAutocompleteSuggestions, r as AutocompleteHandle, rt as TuiLocalCommandHandler, s as ContributionState, st as TuiRendererHandle, t as API_VERSION, tt as TuiKeybindingRegistrySnapshot, u as EditorHandle, ut as TuiSettingContribution, v as ExtensionView, vt as TuiThemeRegistryView, w as MarkdownView, x as FrameView, y as FooterItemContribution, yt as TuiToolRendererContribution, z as SurfaceStateValues } from "./public-types-C1YgFtwC.mjs";
|
|
2
|
+
import { a as PiTuiExtensionService, i as PI_TUI_EXTENSIONS_SERVICE, n as inject, r as name, t as apply } from "./extensions-C8eAM0gX.mjs";
|
|
3
3
|
export { API_VERSION, type ActivitySnapshot, type AutocompleteHandle, type AutocompleteProviderContribution, type ContributionHealth, type ContributionRecord, type ContributionState, type DockItem, type EditorContribution, type EditorHandle, type EditorHost, type EditorHostAction, type EditorHostActionResult, type EditorInputEvent, type EditorSnapshot, type ExtensionEditor, type ExtensionView, type FooterItemContribution, type FooterSegment, type FrameView, type HeaderBadge, type InputWidget, type MarkdownView, type MessagePresentationSnapshot, type NormalizedKey, PI_TUI_EXTENSIONS_SERVICE, type PiTuiApiInfo, type PiTuiCapability, type PiTuiExtensionService, type PiTuiSlotName, type PiTuiSlotSemantic, type RegistrationHandle, type RegistrationSpec, type RowsView, type SessionSnapshot, type SpacerView, type StackView, type StyledSpan, type SurfaceSnapshot, type SurfaceStateValues, type TextView, type ToolPresentationSnapshot, type TuiAction, type TuiAutocompleteItem, type TuiAutocompleteProvider, type TuiAutocompleteQuery, type TuiAutocompleteRegistryView, type TuiAutocompleteSuggestions, type TuiColorPalette, type TuiCommandBridgeSnapshot, type TuiCommandBridgeView, type TuiCommandContribution, type TuiCommandHandle, type TuiKeybindingContribution, type TuiKeybindingHandle, type TuiKeybindingRegistrySnapshot, type TuiKeybindingRegistryView, type TuiLocalCommandHandler, type TuiMessageRendererContribution, type TuiOverlayHandle, type TuiOverlayOptions, type TuiRendererHandle, type TuiRendererRegistrySnapshot, type TuiSettingContribution, type TuiSettingHandle, type TuiSettingsRegistrySnapshot, type TuiSettingsRegistryView, type TuiSizeValue, type TuiThemeContribution, type TuiThemeHandle, type TuiThemeRegistrySnapshot, type TuiThemeRegistryView, type TuiToolRendererContribution, apply, describeKey, inject, name };
|
package/dist/extensions.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as API_VERSION, i as PI_TUI_EXTENSIONS_SERVICE, n as inject, o as describeKey, r as name, t as apply } from "./extensions-
|
|
1
|
+
import { a as API_VERSION, i as PI_TUI_EXTENSIONS_SERVICE, n as inject, o as describeKey, r as name, t as apply } from "./extensions-B4uLpSTv.mjs";
|
|
2
2
|
export { API_VERSION, PI_TUI_EXTENSIONS_SERVICE, apply, describeKey, inject, name };
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
import { t as PI_TUI_WEB_ACCESS_ROWS } from "./web-roster-
|
|
1
|
+
import { t as PI_TUI_WEB_ACCESS_ROWS } from "./web-roster-Dis7BhrA.mjs";
|
|
2
2
|
import { r as PI_TUI_WEB_ACCESS_NAMESPACE } from "./pi-tui-web-access-contract-BN8Cc_Ho.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
3
|
+
import { n as PI_TUI_ACP_ACCESS_NAMESPACE } from "./pi-tui-acp-access-contract-BdLwduU6.mjs";
|
|
4
|
+
import "./prompt-sections-DXmjB58H.mjs";
|
|
5
|
+
import { t as PI_TUI_TERMINAL_PROGRESS_NAMESPACE } from "./pi-tui-terminal-progress-contract-B3RoEzjK.mjs";
|
|
6
|
+
import "./schema-qE_P09zJ.mjs";
|
|
7
|
+
import { a as PI_TUI_SKILLS_NAMESPACE, c as PI_TUI_CREDENTIAL_RECORDS_NAMESPACE, d as PI_TUI_AUTHORIZATION_NAMESPACE, i as PI_TUI_FILE_REFERENCES_NAMESPACE, n as PI_TUI_DEFAULT_MODEL_NAMESPACE, r as PI_TUI_SESSION_POLICY_NAMESPACE } from "./pi-tui-remote-contribution-Do8ECrUy.mjs";
|
|
8
|
+
import "node:crypto";
|
|
9
|
+
import "node:fs";
|
|
10
|
+
import "node:path";
|
|
11
|
+
import "node:string_decoder";
|
|
5
12
|
import { symbols } from "@deepseek-ai/cordis";
|
|
13
|
+
import "@deepseek-ai/dsh-credentials";
|
|
14
|
+
import "@deepseek-ai/dsh-authorization";
|
|
15
|
+
import "@deepseek-ai/dsh-sandbox";
|
|
6
16
|
import "@deepseek-ai/dsh-typert-protocol";
|
|
7
17
|
//#region src/app/remote/host-prerequisites.ts
|
|
8
18
|
/**
|
|
@@ -28,7 +38,8 @@ const REMOTE_HOST_PREREQUISITE_SERVICES = [
|
|
|
28
38
|
"sessionQuery",
|
|
29
39
|
"workspaceRegistry",
|
|
30
40
|
"jobController",
|
|
31
|
-
"workspaceFiles"
|
|
41
|
+
"workspaceFiles",
|
|
42
|
+
"subprocess"
|
|
32
43
|
];
|
|
33
44
|
/**
|
|
34
45
|
* Fail fast when the ordinary Host lacks one of the required base services.
|
|
@@ -48,7 +59,7 @@ const BROWSER_GRAPH_ROWS = [
|
|
|
48
59
|
"terminal-controller"
|
|
49
60
|
];
|
|
50
61
|
const SPA_ROW = "web-runtime";
|
|
51
|
-
/** The Browser presentation rows, in the
|
|
62
|
+
/** The Browser presentation rows, in the production roster's canonical order. */
|
|
52
63
|
const PRESENTATION_ROWS = PI_TUI_WEB_ACCESS_ROWS.map((row) => row.id).filter((id) => id !== SPA_ROW && !BROWSER_GRAPH_ROWS.includes(id));
|
|
53
64
|
[...BROWSER_GRAPH_ROWS, ...PRESENTATION_ROWS];
|
|
54
65
|
[...[...PRESENTATION_ROWS].reverse(), ...[...BROWSER_GRAPH_ROWS].reverse()];
|
|
@@ -101,6 +112,20 @@ function fiberStateLabel(entry) {
|
|
|
101
112
|
* prove the Host watch was cancelled, so the split-process smoke reads this
|
|
102
113
|
* count from the Host status after the probe.
|
|
103
114
|
*/
|
|
115
|
+
function skillInvalidationWatchCount(context) {
|
|
116
|
+
const service = context.reflect.get("piTuiSkills");
|
|
117
|
+
if (service === void 0) throw new Error("local host entry: the private Skills service is not readable");
|
|
118
|
+
const raw = service[symbols.original] ?? service;
|
|
119
|
+
if (typeof raw.activeSubscriptions !== "number") throw new Error("local host entry: the private Skills service has no subscription count");
|
|
120
|
+
return raw.activeSubscriptions;
|
|
121
|
+
}
|
|
122
|
+
function authorizationAttemptCount(context) {
|
|
123
|
+
const service = context.reflect.get("piTuiAuthorization");
|
|
124
|
+
if (service === void 0) throw new Error("local host entry: the private authorization service is not readable");
|
|
125
|
+
const attempts = (service[symbols.original] ?? service).activeAttempts;
|
|
126
|
+
if (typeof attempts !== "number") throw new Error("local host entry: the private authorization service has no attempt count");
|
|
127
|
+
return attempts;
|
|
128
|
+
}
|
|
104
129
|
function terminalProgressWatchCount(context) {
|
|
105
130
|
const service = context.reflect.get("piTuiTerminalProgress");
|
|
106
131
|
if (service === void 0) throw new Error("local host entry: the private terminal-progress service is not readable");
|
|
@@ -110,6 +135,28 @@ function terminalProgressWatchCount(context) {
|
|
|
110
135
|
for (const record of records.values()) watches += record.subscribers?.size ?? 0;
|
|
111
136
|
return watches;
|
|
112
137
|
}
|
|
138
|
+
/** The four first-party Host inspect providers the Split Host registers once. */
|
|
139
|
+
const REQUIRED_HOST_INSPECT_PROVIDERS = [
|
|
140
|
+
"Service",
|
|
141
|
+
"Event",
|
|
142
|
+
"Config",
|
|
143
|
+
"Tool"
|
|
144
|
+
];
|
|
145
|
+
/**
|
|
146
|
+
* Prove the process-global Cordis inspect registry holds the four Host
|
|
147
|
+
* providers exactly once. The Loader row being ACTIVE alone is not proof: the
|
|
148
|
+
* official plugin registers inside its Fiber, so an absent or duplicate
|
|
149
|
+
* provider must fail Host Ready before publication.
|
|
150
|
+
*/
|
|
151
|
+
function assertHostInspectProviders(context) {
|
|
152
|
+
const registry = context.reflect.get("cordisInspect");
|
|
153
|
+
if (registry === void 0) throw new Error("local host entry: the official cordisInspect registry is not live");
|
|
154
|
+
const hostProviders = registry.list().filter((provider) => provider.platform === "host");
|
|
155
|
+
for (const id of REQUIRED_HOST_INSPECT_PROVIDERS) {
|
|
156
|
+
const matches = hostProviders.filter((provider) => provider.id === id);
|
|
157
|
+
if (matches.length !== 1) throw new Error(`local host entry: expected exactly one "${id}" Host Cordis inspect provider, found ${String(matches.length)}`);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
113
160
|
/** The official Session-serving services whose Typert namespace must be real. */
|
|
114
161
|
const OFFICIAL_TYPERT_BINDINGS = [
|
|
115
162
|
{
|
|
@@ -124,28 +171,43 @@ const OFFICIAL_TYPERT_BINDINGS = [
|
|
|
124
171
|
serviceKey: "settingsController",
|
|
125
172
|
namespace: "settings"
|
|
126
173
|
},
|
|
174
|
+
{
|
|
175
|
+
serviceKey: "deepseekAccount",
|
|
176
|
+
namespace: "account"
|
|
177
|
+
},
|
|
127
178
|
{
|
|
128
179
|
serviceKey: "workspaceController",
|
|
129
180
|
namespace: "workspace"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
serviceKey: "directoryPickerController",
|
|
184
|
+
namespace: "directoryPicker"
|
|
130
185
|
}
|
|
131
186
|
];
|
|
132
|
-
/**
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
},
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
187
|
+
/** The official Loader owners whose package identity must be unique. */
|
|
188
|
+
const OFFICIAL_LOADER_OWNER_PACKAGES = [
|
|
189
|
+
{
|
|
190
|
+
owner: "workspaceRegistry",
|
|
191
|
+
id: "workspace",
|
|
192
|
+
name: "@deepseek-ai/dsh-workspace"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
owner: "workspaceController",
|
|
196
|
+
id: "workspace-controller",
|
|
197
|
+
name: "@deepseek-ai/dsh-api-workspace-controller"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
owner: "directoryPicker",
|
|
201
|
+
id: "directory-picker",
|
|
202
|
+
name: "@deepseek-ai/dsh-host-directory-picker-browse"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
owner: "deepseekAccount",
|
|
206
|
+
id: "deepseek-account",
|
|
207
|
+
name: "@deepseek-ai/dsh-deepseek-account"
|
|
208
|
+
}
|
|
209
|
+
];
|
|
210
|
+
/** The package's private endpoint bindings. */
|
|
149
211
|
const PRIVATE_TYPERT_BINDINGS = [
|
|
150
212
|
{
|
|
151
213
|
serviceKey: "piTuiFileReferences",
|
|
@@ -158,6 +220,30 @@ const PRIVATE_TYPERT_BINDINGS = [
|
|
|
158
220
|
{
|
|
159
221
|
serviceKey: "piTuiWebAccess",
|
|
160
222
|
namespace: PI_TUI_WEB_ACCESS_NAMESPACE
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
serviceKey: "piTuiAcpAccess",
|
|
226
|
+
namespace: PI_TUI_ACP_ACCESS_NAMESPACE
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
serviceKey: PI_TUI_SKILLS_NAMESPACE,
|
|
230
|
+
namespace: PI_TUI_SKILLS_NAMESPACE
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
serviceKey: "piTuiAuthorization",
|
|
234
|
+
namespace: PI_TUI_AUTHORIZATION_NAMESPACE
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
serviceKey: PI_TUI_CREDENTIAL_RECORDS_NAMESPACE,
|
|
238
|
+
namespace: PI_TUI_CREDENTIAL_RECORDS_NAMESPACE
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
serviceKey: PI_TUI_SESSION_POLICY_NAMESPACE,
|
|
242
|
+
namespace: PI_TUI_SESSION_POLICY_NAMESPACE
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
serviceKey: PI_TUI_DEFAULT_MODEL_NAMESPACE,
|
|
246
|
+
namespace: PI_TUI_DEFAULT_MODEL_NAMESPACE
|
|
161
247
|
}
|
|
162
248
|
];
|
|
163
249
|
/**
|
|
@@ -202,13 +288,26 @@ function collectHostEntryStatus(context, identity) {
|
|
|
202
288
|
"sessionController",
|
|
203
289
|
"fileUploads",
|
|
204
290
|
"settingsController",
|
|
291
|
+
"deepseekAccount",
|
|
205
292
|
"workspaceController",
|
|
293
|
+
"directoryPickerController",
|
|
206
294
|
PI_TUI_FILE_REFERENCES_NAMESPACE,
|
|
207
295
|
PI_TUI_TERMINAL_PROGRESS_NAMESPACE,
|
|
208
296
|
PI_TUI_WEB_ACCESS_NAMESPACE,
|
|
297
|
+
PI_TUI_ACP_ACCESS_NAMESPACE,
|
|
298
|
+
PI_TUI_SKILLS_NAMESPACE,
|
|
299
|
+
PI_TUI_AUTHORIZATION_NAMESPACE,
|
|
300
|
+
PI_TUI_CREDENTIAL_RECORDS_NAMESPACE,
|
|
301
|
+
PI_TUI_SESSION_POLICY_NAMESPACE,
|
|
302
|
+
PI_TUI_DEFAULT_MODEL_NAMESPACE,
|
|
209
303
|
PI_TUI_HOST_READY_SERVICE,
|
|
210
304
|
"piTuiPerformanceReady"
|
|
211
305
|
]) services[service] = context.reflect.get(service) !== void 0;
|
|
306
|
+
for (const service of [
|
|
307
|
+
"messageFeedback",
|
|
308
|
+
"pluginInventory",
|
|
309
|
+
"sessionReferenceResolver"
|
|
310
|
+
]) if (context.reflect.get(service) !== void 0) services[service] = true;
|
|
212
311
|
/** Only ACTIVE rows own a service; a disabled/absent row proves nothing. */
|
|
213
312
|
const activeIds = (id) => entries.filter((entry) => entry.options.id === id && entry.fiber?.state === FIBER_ACTIVE).map((entry) => entry.options.id);
|
|
214
313
|
const ownerEntries = {
|
|
@@ -223,24 +322,28 @@ function collectHostEntryStatus(context, identity) {
|
|
|
223
322
|
turnOutline: activeIds("split-host-turn-outline"),
|
|
224
323
|
sessionController: activeIds("split-host-session-controller"),
|
|
225
324
|
settingsController: activeIds("split-host-settings-controller"),
|
|
325
|
+
deepseekAccount: activeIds("deepseek-account"),
|
|
226
326
|
sessionLogExport: activeIds("split-host-session-log-download"),
|
|
227
327
|
piTuiHostRuntime: activeIds("split-host-pi-tui-runtime"),
|
|
328
|
+
cordisInspectProviders: activeIds("split-host-cordis-inspect-providers"),
|
|
228
329
|
performance: activeIds("pi-tui-performance-host"),
|
|
229
330
|
visualTools: activeIds("pi-tui-visual-tools"),
|
|
230
331
|
workspaceRegistry: activeIds("workspace"),
|
|
231
|
-
workspaceController: activeIds("workspace-controller")
|
|
332
|
+
workspaceController: activeIds("workspace-controller"),
|
|
333
|
+
directoryPicker: activeIds("directory-picker")
|
|
232
334
|
};
|
|
233
335
|
for (const [owner, ids] of Object.entries(ownerEntries)) if (ids.length !== 1) {
|
|
234
336
|
const visible = entries.map((entry) => `${entry.options.id}:${fiberStateLabel(entry)}`);
|
|
235
337
|
throw new Error(`local host entry: expected exactly one active ${owner} owner row, found ${String(ids.length)}; entries=${visible.join(",")}`);
|
|
236
338
|
}
|
|
237
|
-
for (const { owner, id, name } of
|
|
339
|
+
for (const { owner, id, name } of OFFICIAL_LOADER_OWNER_PACKAGES) {
|
|
238
340
|
const active = entries.filter((entry) => entry.fiber?.state === FIBER_ACTIVE && entry.options.name === name);
|
|
239
341
|
if (active.length !== 1 || active[0].options.id !== id) {
|
|
240
342
|
const visible = active.length === 0 ? "none" : active.map((entry) => entry.options.id).join(",");
|
|
241
343
|
throw new Error(`local host entry: expected exactly one active ${owner} row for "${name}" named "${id}", found ${visible}`);
|
|
242
344
|
}
|
|
243
345
|
}
|
|
346
|
+
assertHostInspectProviders(context);
|
|
244
347
|
for (const { serviceKey, namespace } of [...OFFICIAL_TYPERT_BINDINGS, ...PRIVATE_TYPERT_BINDINGS]) assertTypertBinding(context, serviceKey, namespace);
|
|
245
348
|
if (context.reflect.get("piTuiHostReady") === void 0) throw new Error(`local host entry: the built-in PiTui Host Runtime did not publish "${PI_TUI_HOST_READY_SERVICE}"`);
|
|
246
349
|
if (context.reflect.get("piTuiPerformanceReady") === void 0) throw new Error("local host entry: the existing pi-tui-performance-host row did not publish piTuiPerformanceReady");
|
|
@@ -263,6 +366,8 @@ function collectHostEntryStatus(context, identity) {
|
|
|
263
366
|
profile: identity.profile,
|
|
264
367
|
services,
|
|
265
368
|
terminalProgressWatches: terminalProgressWatchCount(context),
|
|
369
|
+
skillInvalidationWatches: skillInvalidationWatchCount(context),
|
|
370
|
+
authorizationAttempts: authorizationAttemptCount(context),
|
|
266
371
|
ownerEntries,
|
|
267
372
|
entries: entries.map((entry) => ({
|
|
268
373
|
id: entry.options.id,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as writeEntryRecord } from "./entry-control-
|
|
1
|
+
import { r as writeEntryRecord } from "./entry-control-DjNsE3I0.mjs";
|
|
2
2
|
import { t as mergeCause } from "./dispose-cause-CNFuUnjR.mjs";
|
|
3
|
-
import { t as PI_TUI_CLIENT_CONTRIBUTION } from "./pi-tui-remote-contribution-
|
|
3
|
+
import { t as PI_TUI_CLIENT_CONTRIBUTION } from "./pi-tui-remote-contribution-Do8ECrUy.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import { existsSync, realpathSync } from "node:fs";
|
|
6
6
|
import { isAbsolute } from "node:path";
|
package/dist/host-runtime.d.mts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
+
import { t as Config$1 } from "./schema-BTGYn8_X.mjs";
|
|
1
2
|
import { Context } from "@deepseek-ai/cordis";
|
|
2
3
|
|
|
3
4
|
//#region src/app/host/pi-tui-host-runtime.d.ts
|
|
4
5
|
/** Stable Cordis plugin name (the Loader row id in the Host-only overlay). */
|
|
5
6
|
declare const name = "pi-tui-host-runtime";
|
|
7
|
+
/** The legacy Split Host TUI settings schema. It is kept ONLY for installed
|
|
8
|
+
* profile compatibility and as a migration source: the runtime reads the
|
|
9
|
+
* canonical `piTuiPreferences` service, and this row's auto-generated page is
|
|
10
|
+
* hidden so users cannot edit a namespace that no longer drives behavior. */
|
|
11
|
+
declare const Config: import("@deepseek-ai/schemastery").default<Config$1>;
|
|
6
12
|
/**
|
|
7
13
|
* Explicit Host dependencies: the private Typert registry plus the two live
|
|
8
14
|
* Host facts the business rows resolve per call. `tuiStartup` remains a Loader
|
|
@@ -17,14 +23,14 @@ declare const PI_TUI_HOST_READY_SERVICE = "piTuiHostReady";
|
|
|
17
23
|
/**
|
|
18
24
|
* Mount the built-in PiTui Host Runtime on the launching Host Context.
|
|
19
25
|
*
|
|
20
|
-
* Startup order is fixed: register the package's ONE contribution, mount
|
|
21
|
-
*
|
|
22
|
-
*
|
|
26
|
+
* Startup order is fixed: register the package's ONE contribution, mount every
|
|
27
|
+
* private business service in order, verify ALL live bindings, then publish the
|
|
28
|
+
* readiness gate.
|
|
23
29
|
* Every child fiber is recorded BEFORE it is awaited; a partial rejection
|
|
24
30
|
* disposes the recorded children in reverse order (contribution last) while
|
|
25
31
|
* keeping the original error primary and attaching cleanup failures to its
|
|
26
32
|
* cause chain.
|
|
27
33
|
*/
|
|
28
|
-
declare function apply(ctx: Context): Promise<void>;
|
|
34
|
+
declare function apply(ctx: Context, _config: Config$1): Promise<void>;
|
|
29
35
|
//#endregion
|
|
30
|
-
export { PI_TUI_HOST_READY_SERVICE, apply, inject, name };
|
|
36
|
+
export { Config, PI_TUI_HOST_READY_SERVICE, apply, inject, name };
|