@xmoon76/dsh-pi-tui 0.5.8 → 0.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +61 -25
- package/README.md +61 -25
- package/cordis.patch.yml +13 -0
- package/dist/acp-stdio.mjs +151 -0
- package/dist/{bootstrap-CMIjGyuk.mjs → bootstrap-CVyHGQDX.mjs} +21901 -6575
- package/dist/browser-CDUSHIIr.mjs +76 -0
- package/dist/builtins.mjs +2 -2
- package/dist/{client-bootstrap-BjGPc-DM.mjs → client-bootstrap-4UoeVIHE.mjs} +2488 -2734
- package/dist/client-runtime-BHBlVUf5.mjs +1376 -0
- package/dist/{daemon-launcher-Dult7Jxv.mjs → daemon-launcher-DxIgjBHW.mjs} +1549 -172
- package/dist/daemon-launcher.d.mts +85 -14
- package/dist/daemon-launcher.mjs +2 -2
- package/dist/{local-profile-daemon-admin-BmQSdzT0.mjs → diagnostics-Db5iVcuJ.mjs} +3 -90
- package/dist/{entry-control-DjNsE3I0.mjs → entry-control-BDLZgg4m.mjs} +1 -1
- package/dist/{extensions-B4uLpSTv.mjs → extensions-Dx7ncPNA.mjs} +1 -1
- package/dist/extensions.mjs +1 -1
- package/dist/handoff-BjoEy3f8.mjs +106 -0
- package/dist/history-search-limits-Cx2UvRC2.mjs +16 -0
- package/dist/history-search-remote-BHuoellG.mjs +113 -0
- package/dist/history-search-remote-BzXdvrxk.mjs +26 -0
- package/dist/history-search-seat-BcHJTpeB.mjs +639 -0
- package/dist/history-search-seat-rZcq0XV6.mjs +639 -0
- package/dist/{host-bootstrap-MVxks641.mjs → host-bootstrap-BfnufpnW.mjs} +37 -72
- package/dist/{host-foundation-probe-DMNTmNrH.mjs → host-foundation-probe-DlD8-N_Q.mjs} +2 -2
- package/dist/host-runtime.mjs +5611 -290
- package/dist/index.d.mts +13 -6
- package/dist/index.mjs +22334 -6695
- package/dist/installed-dsh-BjUiJSwR.mjs +142 -0
- package/dist/interaction-port-D1Yv9zgu.mjs +45 -0
- package/dist/local-acp-control-CC5z4Xbq.mjs +304 -0
- package/dist/local-acp-endpoint-D1jYdJdv.mjs +41 -0
- package/dist/local-acp-listener-Cmgb5M0H.mjs +9493 -0
- package/dist/local-acp-status-B_25Q6kU.mjs +101 -0
- package/dist/local-client.mjs +292 -63
- package/dist/local-daemon-control-BFJAC8Kg.mjs +2199 -0
- package/dist/local-daemon-control-Bm3imctD.mjs +2101 -0
- package/dist/{local-discovery-uOBfFq5j.mjs → local-discovery-BMhaGIiJ.mjs} +254 -544
- package/dist/{local-discovery-egN4_gsQ.mjs → local-discovery-Ba7_-NNC.mjs} +1 -1
- package/dist/{local-discovery-DOSsCh9q.mjs → local-discovery-QSbFpjK2.mjs} +301 -544
- package/dist/local-host.mjs +952 -501
- package/dist/local-profile-daemon-admin-otpm69R6.mjs +469 -0
- package/dist/{local-scope-DamiMqPd.mjs → local-scope-5DEKA_lW.mjs} +1023 -96
- package/dist/{local-transport-Iwo0mtu3.mjs → local-transport-DeWmdZ5E.mjs} +14 -3
- package/dist/{local-web-control-DMrjwCkl.mjs → local-web-control-Dny93N-r.mjs} +10 -7
- package/dist/{local-workspace-object-D06GL0UO.mjs → local-workspace-object-D0RVQt8U.mjs} +33 -9
- package/dist/model-selection-CYlqg2DV.mjs +83 -0
- package/dist/native-client-domains-Dg4srzYt.mjs +2 -0
- package/dist/native-client.d.mts +735 -0
- package/dist/native-client.mjs +3534 -0
- package/dist/{open-CmOBxSjN.mjs → open-QQva8-ar.mjs} +24 -20
- package/dist/{pi-tui-remote-contribution-Do8ECrUy.mjs → pi-tui-remote-contribution-565wiLWp.mjs} +741 -150
- package/dist/preferences.mjs +1 -1
- package/dist/{profile-preferences-migration-CThz4rHH.mjs → profile-preferences-migration-CNOWIdnr.mjs} +1 -1
- package/dist/{profile-preferences-migration-BfUGdPZx.mjs → profile-preferences-migration-IrnXcJWK.mjs} +10 -8
- package/dist/{prompt-sections-DXmjB58H.mjs → prompt-sections-Bi-9_Gr_.mjs} +28 -10
- package/dist/{prompt-sections-DUKmWb8g.mjs → prompt-sections-DFS1dqsY.mjs} +342 -56
- package/dist/{dist-BFgC-5tL.mjs → recall-scope-9Nuoto_i.mjs} +353 -1
- package/dist/rolldown-runtime-8H4AJuhK.mjs +14 -0
- package/dist/schema-CCLvDa7Q.mjs +177 -0
- package/dist/{schema-qE_P09zJ.mjs → schema-t97l3aK8.mjs} +56 -3
- package/dist/{session-C6tSs86s.mjs → session-Cs8iLCEx.mjs} +784 -342
- package/dist/{session-CstInGIA.mjs → session-EBRZF6Ow.mjs} +783 -341
- package/dist/session-create-facts-CkfG5DpQ.mjs +20 -0
- package/dist/{startup-CarQxWwi.d.mts → startup-Dti3Udne.d.mts} +30 -3
- package/dist/{startup-EG5UqIcd.mjs → startup-UtFQSDe_.mjs} +90 -15
- package/dist/startup.d.mts +2 -2
- package/dist/startup.mjs +1 -1
- package/dist/task-read-remote-DRtkXDrZ.mjs +1083 -0
- package/dist/{terminal-progress-source-CpfpQO_h.mjs → terminal-progress-source-VsczdXA-.mjs} +610 -332
- package/dist/{transcript-view-CuJYWkhp.mjs → transcript-view-B6vCnukn.mjs} +2096 -977
- package/dist/{transcript-view-C1YtJ49Y.mjs → transcript-view-DSSdE2vK.mjs} +2078 -651
- package/dist/write-failure-xNKczXH7.mjs +189 -0
- package/package.json +20 -3
- package/dist/local-acp-listener-B65J0Bx4.mjs +0 -3115
- package/dist/local-daemon-control-C14q9KnD.mjs +0 -1588
- package/dist/local-daemon-control-TCnERL7n.mjs +0 -1424
- package/dist/preset-BcWqOtY7.mjs +0 -46
|
@@ -1,19 +1,22 @@
|
|
|
1
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
3
|
import { n as PI_TUI_ACP_ACCESS_NAMESPACE } from "./pi-tui-acp-access-contract-BdLwduU6.mjs";
|
|
4
|
-
import "./
|
|
4
|
+
import "./schema-CCLvDa7Q.mjs";
|
|
5
|
+
import "./prompt-sections-Bi-9_Gr_.mjs";
|
|
5
6
|
import { t as PI_TUI_TERMINAL_PROGRESS_NAMESPACE } from "./pi-tui-terminal-progress-contract-B3RoEzjK.mjs";
|
|
6
|
-
import "./
|
|
7
|
-
import
|
|
7
|
+
import { c as PI_TUI_FILE_REFERENCES_NAMESPACE, f as PI_TUI_CREDENTIAL_RECORDS_NAMESPACE, h as PI_TUI_AUTHORIZATION_NAMESPACE, l as PI_TUI_SKILLS_NAMESPACE, o as PI_TUI_DEFAULT_MODEL_NAMESPACE, s as PI_TUI_SESSION_POLICY_NAMESPACE } from "./pi-tui-remote-contribution-565wiLWp.mjs";
|
|
8
|
+
import "node:module";
|
|
8
9
|
import "node:crypto";
|
|
9
10
|
import "node:fs";
|
|
10
11
|
import "node:path";
|
|
12
|
+
import "node:fs/promises";
|
|
11
13
|
import "node:string_decoder";
|
|
12
14
|
import { symbols } from "@deepseek-ai/cordis";
|
|
13
15
|
import "@deepseek-ai/dsh-credentials";
|
|
14
16
|
import "@deepseek-ai/dsh-authorization";
|
|
15
17
|
import "@deepseek-ai/dsh-sandbox";
|
|
16
18
|
import "@deepseek-ai/dsh-typert-protocol";
|
|
19
|
+
import "@deepseek-ai/dsh-session-query";
|
|
17
20
|
//#region src/app/remote/host-prerequisites.ts
|
|
18
21
|
/**
|
|
19
22
|
* Host services the ordinary Host Context must already expose before any
|
|
@@ -82,7 +85,10 @@ const PI_TUI_HOST_READY_SERVICE = "piTuiHostReady";
|
|
|
82
85
|
* and Workspace Controller rows must be the sole owners of their packages (the
|
|
83
86
|
* controller with a real `workspace` Typert binding), the loopback webserver
|
|
84
87
|
* must be bound, and the TUI/Client-UI rows the Host-only overlay disables must
|
|
85
|
-
* not be active.
|
|
88
|
+
* not be active. The built-in Host Runtime owns and verifies the private Typert
|
|
89
|
+
* bindings before publishing its readiness marker; this audit requires that
|
|
90
|
+
* marker and the live required services without repeating the private binding
|
|
91
|
+
* roster. It never composes a second Host graph.
|
|
86
92
|
*
|
|
87
93
|
* @module app/remote-process/host-bootstrap
|
|
88
94
|
*/
|
|
@@ -207,45 +213,6 @@ const OFFICIAL_LOADER_OWNER_PACKAGES = [
|
|
|
207
213
|
name: "@deepseek-ai/dsh-deepseek-account"
|
|
208
214
|
}
|
|
209
215
|
];
|
|
210
|
-
/** The package's private endpoint bindings. */
|
|
211
|
-
const PRIVATE_TYPERT_BINDINGS = [
|
|
212
|
-
{
|
|
213
|
-
serviceKey: "piTuiFileReferences",
|
|
214
|
-
namespace: PI_TUI_FILE_REFERENCES_NAMESPACE
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
serviceKey: "piTuiTerminalProgress",
|
|
218
|
-
namespace: PI_TUI_TERMINAL_PROGRESS_NAMESPACE
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
serviceKey: "piTuiWebAccess",
|
|
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
|
|
247
|
-
}
|
|
248
|
-
];
|
|
249
216
|
/**
|
|
250
217
|
* Assert one Host service is readable AND carries the expected Typert binding.
|
|
251
218
|
* A truthy service alone is not proof: the Gateway dispatches on the binding.
|
|
@@ -282,32 +249,6 @@ function collectHostEntryStatus(context, identity) {
|
|
|
282
249
|
assertRemoteHostPrerequisites(context);
|
|
283
250
|
assertHostOnlyComposition(context);
|
|
284
251
|
const entries = [...loaderOf(context).entries()];
|
|
285
|
-
const services = {};
|
|
286
|
-
for (const service of REMOTE_HOST_PREREQUISITE_SERVICES) services[service] = context.reflect.get(service) !== void 0;
|
|
287
|
-
for (const service of [
|
|
288
|
-
"sessionController",
|
|
289
|
-
"fileUploads",
|
|
290
|
-
"settingsController",
|
|
291
|
-
"deepseekAccount",
|
|
292
|
-
"workspaceController",
|
|
293
|
-
"directoryPickerController",
|
|
294
|
-
PI_TUI_FILE_REFERENCES_NAMESPACE,
|
|
295
|
-
PI_TUI_TERMINAL_PROGRESS_NAMESPACE,
|
|
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,
|
|
303
|
-
PI_TUI_HOST_READY_SERVICE,
|
|
304
|
-
"piTuiPerformanceReady"
|
|
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;
|
|
311
252
|
/** Only ACTIVE rows own a service; a disabled/absent row proves nothing. */
|
|
312
253
|
const activeIds = (id) => entries.filter((entry) => entry.options.id === id && entry.fiber?.state === FIBER_ACTIVE).map((entry) => entry.options.id);
|
|
313
254
|
const ownerEntries = {
|
|
@@ -344,9 +285,33 @@ function collectHostEntryStatus(context, identity) {
|
|
|
344
285
|
}
|
|
345
286
|
}
|
|
346
287
|
assertHostInspectProviders(context);
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
288
|
+
const services = {};
|
|
289
|
+
for (const service of REMOTE_HOST_PREREQUISITE_SERVICES) services[service] = context.reflect.get(service) !== void 0;
|
|
290
|
+
for (const { serviceKey, namespace } of OFFICIAL_TYPERT_BINDINGS) {
|
|
291
|
+
assertTypertBinding(context, serviceKey, namespace);
|
|
292
|
+
services[serviceKey] = true;
|
|
293
|
+
}
|
|
294
|
+
for (const service of [
|
|
295
|
+
PI_TUI_FILE_REFERENCES_NAMESPACE,
|
|
296
|
+
PI_TUI_TERMINAL_PROGRESS_NAMESPACE,
|
|
297
|
+
PI_TUI_WEB_ACCESS_NAMESPACE,
|
|
298
|
+
PI_TUI_ACP_ACCESS_NAMESPACE,
|
|
299
|
+
PI_TUI_SKILLS_NAMESPACE,
|
|
300
|
+
PI_TUI_AUTHORIZATION_NAMESPACE,
|
|
301
|
+
PI_TUI_CREDENTIAL_RECORDS_NAMESPACE,
|
|
302
|
+
PI_TUI_SESSION_POLICY_NAMESPACE,
|
|
303
|
+
PI_TUI_DEFAULT_MODEL_NAMESPACE,
|
|
304
|
+
PI_TUI_HOST_READY_SERVICE,
|
|
305
|
+
"piTuiPerformanceReady"
|
|
306
|
+
]) {
|
|
307
|
+
if (context.reflect.get(service) === void 0) throw new Error(`local host entry: the Host did not publish the "${service}" service`);
|
|
308
|
+
services[service] = true;
|
|
309
|
+
}
|
|
310
|
+
for (const service of [
|
|
311
|
+
"messageFeedback",
|
|
312
|
+
"pluginInventory",
|
|
313
|
+
"sessionReferenceResolver"
|
|
314
|
+
]) if (context.reflect.get(service) !== void 0) services[service] = true;
|
|
350
315
|
if (context.reflect.get("connection") === void 0) throw new Error("local host entry: the Host did not publish the official Connection service");
|
|
351
316
|
const webServer = context.reflect.get("webServer");
|
|
352
317
|
if (webServer?.host !== "127.0.0.1" || webServer.port === void 0 || webServer.port < 1) throw new Error("local host entry: the Host webserver must bind 127.0.0.1 on an OS-assigned port");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as writeEntryRecord } from "./entry-control-
|
|
1
|
+
import { r as writeEntryRecord } from "./entry-control-BDLZgg4m.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-565wiLWp.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import { existsSync, realpathSync } from "node:fs";
|
|
6
6
|
import { isAbsolute } from "node:path";
|