@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.
Files changed (90) hide show
  1. package/LICENSE +33 -0
  2. package/README.en.md +103 -814
  3. package/README.md +102 -711
  4. package/cordis.patch.yml +186 -0
  5. package/dist/acp-preferences.d.mts +29 -0
  6. package/dist/acp-preferences.mjs +15 -0
  7. package/dist/{bootstrap-DQ4YPL-7.mjs → bootstrap-CMIjGyuk.mjs} +33515 -7587
  8. package/dist/builtins.mjs +3 -3
  9. package/dist/{client-bootstrap-Cr1JCaF5.mjs → client-bootstrap-BjGPc-DM.mjs} +4637 -492
  10. package/dist/client-extension-loader-probe-BUw7q8bJ.mjs +119 -0
  11. package/dist/command-trust-DChWUamk.mjs +406 -0
  12. package/dist/daemon-launcher-Dult7Jxv.mjs +1932 -0
  13. package/dist/daemon-launcher.d.mts +159 -0
  14. package/dist/daemon-launcher.mjs +2 -0
  15. package/dist/diagnostics-D5jwc-q1.d.mts +11 -0
  16. package/dist/{dist-CIsR7cz4.mjs → dist-BFgC-5tL.mjs} +938 -487
  17. package/dist/entry-control-DjNsE3I0.mjs +190 -0
  18. package/dist/extension/advanced.d.mts +1 -1
  19. package/dist/extension/unstable.d.mts +1 -1
  20. package/dist/extension-config-probe-BDdvutkG.mjs +95 -0
  21. package/dist/extension-config.d.mts +29 -0
  22. package/dist/extension-config.mjs +22 -0
  23. package/dist/{extensions-Bp0L37lP.mjs → extensions-B4uLpSTv.mjs} +1109 -100
  24. package/dist/{extensions-Bte3XOt5.d.mts → extensions-C8eAM0gX.d.mts} +1 -1
  25. package/dist/extensions.d.mts +2 -2
  26. package/dist/extensions.mjs +1 -1
  27. package/dist/{host-bootstrap-DilsvA6f.mjs → host-bootstrap-MVxks641.mjs} +129 -24
  28. package/dist/{host-foundation-probe--5jtvHVe.mjs → host-foundation-probe-DMNTmNrH.mjs} +2 -2
  29. package/dist/host-runtime.d.mts +11 -5
  30. package/dist/host-runtime.mjs +4171 -920
  31. package/dist/index.d.mts +86 -174
  32. package/dist/index.mjs +38087 -9967
  33. package/dist/local-acp-listener-B65J0Bx4.mjs +3115 -0
  34. package/dist/local-client.mjs +1158 -59
  35. package/dist/local-daemon-control-C14q9KnD.mjs +1588 -0
  36. package/dist/local-daemon-control-TCnERL7n.mjs +1424 -0
  37. package/dist/local-discovery-DOSsCh9q.mjs +2883 -0
  38. package/dist/local-discovery-egN4_gsQ.mjs +2 -0
  39. package/dist/local-discovery-uOBfFq5j.mjs +2764 -0
  40. package/dist/local-host.mjs +812 -89
  41. package/dist/local-profile-daemon-admin-BmQSdzT0.mjs +210 -0
  42. package/dist/local-scope-DamiMqPd.mjs +1340 -0
  43. package/dist/{local-transport-BVwFYq_Y.mjs → local-transport-Iwo0mtu3.mjs} +313 -38
  44. package/dist/local-web-control-DMrjwCkl.mjs +454 -0
  45. package/dist/local-workspace-object-D06GL0UO.mjs +248 -0
  46. package/dist/native/darwin/prebuilds/darwin-arm64/darwin-platform.node +0 -0
  47. package/dist/native/darwin/prebuilds/darwin-x64/darwin-platform.node +0 -0
  48. package/dist/open-CmOBxSjN.mjs +63 -0
  49. package/dist/persisted-setting-probe-DWZLtWoB.mjs +145 -0
  50. package/dist/pi-tui-acp-access-contract-BdLwduU6.mjs +75 -0
  51. package/dist/pi-tui-remote-contribution-Do8ECrUy.mjs +1492 -0
  52. package/dist/pi-tui-terminal-progress-contract-B3RoEzjK.mjs +146 -0
  53. package/dist/preferences.d.mts +17 -0
  54. package/dist/preferences.mjs +20 -0
  55. package/dist/preset-BcWqOtY7.mjs +46 -0
  56. package/dist/profile-preferences-migration-BfUGdPZx.mjs +500 -0
  57. package/dist/profile-preferences-migration-CThz4rHH.mjs +2 -0
  58. package/dist/prompt-sections-DUKmWb8g.mjs +2232 -0
  59. package/dist/prompt-sections-DXmjB58H.mjs +634 -0
  60. package/dist/{public-types-Dgf1bDke.d.mts → public-types-C1YgFtwC.d.mts} +56 -3
  61. package/dist/row-id-DPbyt9Nn.mjs +24 -0
  62. package/dist/{runtime-status-Cj1nFOdS.mjs → runtime-status-v-FTnWcD.mjs} +49 -3
  63. package/dist/schema-BTGYn8_X.d.mts +54 -0
  64. package/dist/schema-qE_P09zJ.mjs +124 -0
  65. package/dist/{session-BKGXyh80.mjs → session-C6tSs86s.mjs} +9672 -7270
  66. package/dist/{session-CPt_U8_f.mjs → session-CstInGIA.mjs} +9674 -7273
  67. package/dist/startup-CarQxWwi.d.mts +213 -0
  68. package/dist/{startup-7BYWuvBU.mjs → startup-EG5UqIcd.mjs} +341 -26
  69. package/dist/startup.d.mts +2 -99
  70. package/dist/startup.mjs +2 -2
  71. package/dist/{terminal-progress-source-DrqQhtT8.mjs → terminal-progress-source-CpfpQO_h.mjs} +2038 -67
  72. package/dist/{pasted-path-range-CMnxuGPx.mjs → transcript-view-C1YtJ49Y.mjs} +11590 -6718
  73. package/dist/{pasted-path-range-r6qzV_tC.mjs → transcript-view-CuJYWkhp.mjs} +12296 -6923
  74. package/dist/version-B9yC7bBk.mjs +83 -0
  75. package/dist/visual-tools.d.mts +1 -1
  76. package/dist/visual-tools.mjs +1 -1
  77. package/dist/web-preferences.d.mts +1 -1
  78. package/dist/{web-roster-CjqnUXNk.mjs → web-roster-Dis7BhrA.mjs} +63 -3
  79. package/generated/dsh-presets/cordis.patch.yml +4 -2
  80. package/generated/dsh-presets/ptc.patch.yml +4 -0
  81. package/generated/dsh-presets/standard.patch.yml +7 -0
  82. package/generated/web-access/cordis.patch.yml +239 -0
  83. package/package.json +217 -170
  84. package/dist/entry-control-DnduyDiw.mjs +0 -92
  85. package/dist/local-discovery-C9VMjc0K.mjs +0 -759
  86. package/dist/local-discovery-CDaQHA_R.mjs +0 -2
  87. package/dist/pi-tui-remote-contribution-B0EQsP0N.mjs +0 -85
  88. package/dist/pi-tui-terminal-progress-contract-CdBH9j78.mjs +0 -70
  89. package/dist/pi-tui-terminal-progress-contract-MLXZ-i3t.mjs +0 -905
  90. 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-Dgf1bDke.mjs";
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
 
@@ -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-Dgf1bDke.mjs";
2
- import { a as PiTuiExtensionService, i as PI_TUI_EXTENSIONS_SERVICE, n as inject, r as name, t as apply } from "./extensions-Bte3XOt5.mjs";
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 };
@@ -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-Bp0L37lP.mjs";
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-CjqnUXNk.mjs";
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 { t as PI_TUI_TERMINAL_PROGRESS_NAMESPACE } from "./pi-tui-terminal-progress-contract-CdBH9j78.mjs";
4
- import { n as PI_TUI_FILE_REFERENCES_NAMESPACE } from "./pi-tui-remote-contribution-B0EQsP0N.mjs";
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 overlay's canonical order. */
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
- * The two official Workspace owners, identified by their PACKAGE as well as
134
- * their row id. A same-namespace competitor registered under a different Loader
135
- * id would keep the `exactly one <id> row` check green while owning the service
136
- * or the `workspace` namespace a second time, so uniqueness is proven on the
137
- * package identity the Host actually imported.
138
- */
139
- const WORKSPACE_OWNER_PACKAGES = [{
140
- owner: "workspaceRegistry",
141
- id: "workspace",
142
- name: "@deepseek-ai/dsh-workspace"
143
- }, {
144
- owner: "workspaceController",
145
- id: "workspace-controller",
146
- name: "@deepseek-ai/dsh-api-workspace-controller"
147
- }];
148
- /** The package's three private endpoint bindings. */
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 WORKSPACE_OWNER_PACKAGES) {
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-DnduyDiw.mjs";
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-B0EQsP0N.mjs";
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";
@@ -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 the
21
- * file-reference service, mount the terminal-progress service, mount the Web
22
- * access service, verify ALL live bindings, then publish the readiness gate.
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 };