@xmoon76/dsh-pi-tui 0.5.3 → 0.5.5
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 +195 -150
- package/README.md +137 -103
- package/cordis.patch.yml +54 -2
- package/dist/application-runtime-CbBO4bY-.mjs +6860 -0
- package/dist/bootstrap-DLOydLLj.mjs +108410 -0
- package/dist/builtins.mjs +2 -3
- package/dist/client-bootstrap-DwSFzcTW.mjs +872 -0
- package/dist/context-summary-Bz0AGXa1.mjs +12027 -0
- package/dist/context-summary-D9mhxPXL.mjs +10015 -0
- package/dist/custom-items-CKrOBCox.mjs +655 -0
- package/dist/disposal-BYBbEpVY.mjs +54 -0
- package/dist/dispose-cause-BzcXo4hu.mjs +123 -0
- package/dist/dispose-cause-CNFuUnjR.mjs +24 -0
- package/dist/dist-C7QMk0ws.mjs +15431 -0
- package/dist/entry-control-DnduyDiw.mjs +92 -0
- package/dist/extension/advanced.d.mts +1 -1
- package/dist/extension/unstable.d.mts +1 -1
- package/dist/{extensions-DzpBiiYb.d.mts → extensions-Bte3XOt5.d.mts} +1 -1
- package/dist/{extensions-a-rxanjw.mjs → extensions-pcFiH7Qe.mjs} +1498 -410
- package/dist/extensions.d.mts +2 -2
- package/dist/extensions.mjs +1 -1
- package/dist/host-bootstrap-CKdfLkNS.mjs +188 -0
- package/dist/host-foundation-probe-CYHsbAw6.mjs +143 -0
- package/dist/host-prerequisites-9JBTtVNu.mjs +36 -0
- package/dist/host-runtime.d.mts +26 -0
- package/dist/host-runtime.mjs +450 -0
- package/dist/index.d.mts +9 -2
- package/dist/index.mjs +45779 -24480
- package/dist/local-client.mjs +1816 -0
- package/dist/local-discovery-CXnLT4GF.mjs +755 -0
- package/dist/local-discovery-DVFFpfBG.mjs +2 -0
- package/dist/local-host.mjs +1025 -0
- package/dist/local-transport-C9aonplC.mjs +513 -0
- package/dist/performance-host.d.mts +2 -2
- package/dist/performance-host.mjs +258 -1
- package/dist/{performance-view-jvvd8Jn7.mjs → performance-view-CfGvLZyD.mjs} +1 -1
- package/dist/pi-tui-remote-contribution-DRk6Tl3J.mjs +78 -0
- package/dist/pi-tui-terminal-progress-contract-CdBH9j78.mjs +70 -0
- package/dist/pi-tui-terminal-progress-contract-XTQKj-WW.mjs +905 -0
- package/dist/{public-types-gZi3iFNh.d.mts → public-types-Dgf1bDke.d.mts} +3 -3
- package/dist/{runtime-BtPH-UUb.mjs → runtime-Bh5OsftD.mjs} +1311 -1024
- package/dist/runtime-C5ROZqFj.mjs +2 -0
- package/dist/runtime-status-0lp9CM0V.mjs +1923 -0
- package/dist/session-4keoXjk0.mjs +10869 -0
- package/dist/session-B2zqv4wr.mjs +10869 -0
- package/dist/{startup-D5Xu8diR.mjs → startup-Ct2UUjUL.mjs} +55 -13
- package/dist/startup.d.mts +2 -1
- package/dist/startup.mjs +1 -1
- package/dist/terminal-progress-source-BhufrZ74.mjs +6000 -0
- package/dist/terminal-progress-source-CsBinCJ_.mjs +965 -0
- package/dist/visual-tools.d.mts +62 -0
- package/dist/visual-tools.mjs +556 -0
- package/generated/dsh-presets/README.md +1 -1
- package/package.json +145 -117
- package/dist/context-summary-CxUpNkA9.mjs +0 -2951
- package/dist/performance-host-BJT6scGF.mjs +0 -266
- package/dist/rolldown-runtime-8H4AJuhK.mjs +0 -14
- package/dist/session-BZLxhrPQ.mjs +0 -5697
- package/dist/terminal-progress-source-BlmksrSD.mjs +0 -2200
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
2
|
import { readFileSync, realpathSync } from "node:fs";
|
|
3
|
-
import { dirname, join } from "node:path";
|
|
3
|
+
import { basename, dirname, join } from "node:path";
|
|
4
4
|
import { parseCmdline } from "@deepseek-ai/dsh-cmdline";
|
|
5
5
|
//#region src/dsh-compat-matrix.json
|
|
6
6
|
var dsh_compat_matrix_default = {
|
|
@@ -15,7 +15,7 @@ var dsh_compat_matrix_default = {
|
|
|
15
15
|
"RESERVED candidate release identity this checkout carries while a promotion line is",
|
|
16
16
|
"being developed and qualified — reservation starts that release line but does not by",
|
|
17
17
|
"itself freeze product scope, and the value becomes an ordinary published fact once",
|
|
18
|
-
"the corresponding release tag is published (see docs/releasing.md). There is deliberately no second",
|
|
18
|
+
"the corresponding release tag is published (see docs/guides/releasing.md). There is deliberately no second",
|
|
19
19
|
"candidate matrix.",
|
|
20
20
|
"`floor` is the catch-all below the oldest row. `current` describes the line this",
|
|
21
21
|
"checkout ships: the release line whose identity it reserves (`since`, kept equal to",
|
|
@@ -32,11 +32,11 @@ var dsh_compat_matrix_default = {
|
|
|
32
32
|
"not by itself qualify every such prerelease."
|
|
33
33
|
],
|
|
34
34
|
current: {
|
|
35
|
-
"since": "0.5.
|
|
35
|
+
"since": "0.5.5",
|
|
36
36
|
"requires": "DeepSeek Harness 0.2.1-rc.2 or later",
|
|
37
|
-
"upgradeDsh": "0.2.1-rc.
|
|
38
|
-
"upgradeCommand": "npm install -g --allow-scripts=@deepseek-ai/dsh-subprocess-local,koffi,node-pty @deepseek-ai/dsh@0.2.1-rc.
|
|
39
|
-
"guidance": "
|
|
37
|
+
"upgradeDsh": "0.2.1-rc.5",
|
|
38
|
+
"upgradeCommand": "npm install -g --allow-scripts=@deepseek-ai/dsh-subprocess-local,koffi,node-pty @deepseek-ai/dsh@0.2.1-rc.5",
|
|
39
|
+
"guidance": "The 0.5.5 release requires DeepSeek Harness 0.2.1-rc.2 or later; this checkout validates that runtime floor and targets 0.2.1-rc.5. See README.en.md for the DSH/TUI pairing table, and docs/guides/dsh-compatibility.md for compatibility/recovery rules."
|
|
40
40
|
},
|
|
41
41
|
floor: {
|
|
42
42
|
"below": "0.1.0-rc.8",
|
|
@@ -121,8 +121,13 @@ var dsh_compat_matrix_default = {
|
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
"dshFrom": "0.2.1-rc.2",
|
|
124
|
-
"tui": "0.5.
|
|
125
|
-
"versions": [
|
|
124
|
+
"tui": "0.5.5",
|
|
125
|
+
"versions": [
|
|
126
|
+
"0.2.1-rc.2",
|
|
127
|
+
"0.2.1-rc.3",
|
|
128
|
+
"0.2.1-rc.4",
|
|
129
|
+
"0.2.1-rc.5"
|
|
130
|
+
]
|
|
126
131
|
}
|
|
127
132
|
]
|
|
128
133
|
};
|
|
@@ -135,6 +140,34 @@ var dsh_compat_matrix_default = {
|
|
|
135
140
|
* `cmdlineArgs`, providing a service that flag-configured rows inject.
|
|
136
141
|
* @module @xmoon76/dsh-pi-tui/startup
|
|
137
142
|
*/
|
|
143
|
+
/** Launcher-provided process role. The M4-A0 host-only entry sets `host`:
|
|
144
|
+
* that process composes the production Host rows gated on `tuiStartup` but
|
|
145
|
+
* deliberately mounts no TUI surface, so this row must not deliver the
|
|
146
|
+
* TUI-surface verdict (which would exit a healthy Host). Any other value
|
|
147
|
+
* (including unset) keeps the production TUI startup contract unchanged. */
|
|
148
|
+
const PROCESS_ROLE_ENV = "DSH_PI_TUI_ROLE";
|
|
149
|
+
/** The Host entry's own executable path, written by the entry itself. */
|
|
150
|
+
const HOST_ENTRY_ENV = "DSH_PI_TUI_HOST_ENTRY";
|
|
151
|
+
/**
|
|
152
|
+
* True only for the real M4-A0 Host entry, never for a regular CLI that merely
|
|
153
|
+
* inherited the role string. The role alone is not authoritative: the marker
|
|
154
|
+
* must name the running main module, and that module must be the internal
|
|
155
|
+
* `local-host.mjs` artifact. This prevents `DSH_PI_TUI_ROLE=host dsh --profile
|
|
156
|
+
* pi-tui` (or a child CLI spawned by a Host) from bypassing the Direct
|
|
157
|
+
* TUI-surface verdict.
|
|
158
|
+
*/
|
|
159
|
+
function isHostOnlyRole() {
|
|
160
|
+
if (process.env[PROCESS_ROLE_ENV] !== "host") return false;
|
|
161
|
+
const declaredEntry = process.env[HOST_ENTRY_ENV];
|
|
162
|
+
const mainEntry = process.argv[1];
|
|
163
|
+
if (declaredEntry === void 0 || declaredEntry === "" || mainEntry === void 0) return false;
|
|
164
|
+
try {
|
|
165
|
+
const mainReal = realpathSync(mainEntry);
|
|
166
|
+
return basename(mainReal) === "local-host.mjs" && realpathSync(declaredEntry) === mainReal;
|
|
167
|
+
} catch {
|
|
168
|
+
return false;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
138
171
|
/** The installed dsh version, resolved from the launcher's real path. */
|
|
139
172
|
function installedDshVersion() {
|
|
140
173
|
const bin = process.argv[1];
|
|
@@ -303,11 +336,20 @@ function apply(ctx) {
|
|
|
303
336
|
}
|
|
304
337
|
}
|
|
305
338
|
let surfaceMounted = false;
|
|
306
|
-
ctx.get("appReady")
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
339
|
+
const ready = ctx.get("appReady");
|
|
340
|
+
if (!isHostOnlyRole() && ready !== void 0) {
|
|
341
|
+
let registrationReturned = false;
|
|
342
|
+
const cancel = ready.onReady(() => {
|
|
343
|
+
if (!registrationReturned) return;
|
|
344
|
+
if (surfaceMounted) return;
|
|
345
|
+
process.stderr.write(`\n${surfaceNotMountedMessage()}\n\n`);
|
|
346
|
+
ctx.get("appExit")?.(1);
|
|
347
|
+
});
|
|
348
|
+
registrationReturned = true;
|
|
349
|
+
ctx.effect(() => () => {
|
|
350
|
+
cancel();
|
|
351
|
+
}, "tui-startup readiness handshake");
|
|
352
|
+
}
|
|
311
353
|
const options = program.opts();
|
|
312
354
|
ctx.provide(TUI_STARTUP_SERVICE, {
|
|
313
355
|
...options.session !== void 0 ? { sessionId: options.session } : {},
|
package/dist/startup.d.mts
CHANGED
|
@@ -19,7 +19,8 @@ declare const inject: string[];
|
|
|
19
19
|
* bundle's own version cannot be read, so the message stays truthful.
|
|
20
20
|
*
|
|
21
21
|
* The current line has a minimum of the published npm release
|
|
22
|
-
* dsh-v0.2.1-rc.2
|
|
22
|
+
* dsh-v0.2.1-rc.2 and a recommended upgrade target of the newer
|
|
23
|
+
* dsh-v0.2.1-rc.5. The recovery guidance names the recommended published
|
|
23
24
|
* upgrade target — which may be NEWER than the floor — and allows its native
|
|
24
25
|
* install scripts. The already-published 0.5.0 line keeps its own
|
|
25
26
|
* rc.1-era contract and remains the compatible fallback for a
|
package/dist/startup.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as harnessCompatEntryFor, c as name, i as bundleVersionLabel, n as TUI_STARTUP_SERVICE, o as incompatibleHarnessMessage, r as apply, s as inject, t as HARNESS_COMPAT } from "./startup-
|
|
1
|
+
import { a as harnessCompatEntryFor, c as name, i as bundleVersionLabel, n as TUI_STARTUP_SERVICE, o as incompatibleHarnessMessage, r as apply, s as inject, t as HARNESS_COMPAT } from "./startup-Ct2UUjUL.mjs";
|
|
2
2
|
export { HARNESS_COMPAT, TUI_STARTUP_SERVICE, apply, bundleVersionLabel, harnessCompatEntryFor, incompatibleHarnessMessage, inject, name };
|