@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,80 +0,0 @@
|
|
|
1
|
-
import { readFileSync, realpathSync } from "node:fs";
|
|
2
|
-
import { dirname, join } from "node:path";
|
|
3
|
-
//#region src/client/launcher/version.ts
|
|
4
|
-
/**
|
|
5
|
-
* The Client-local launcher/version reads: the installed dsh (DeepSeek
|
|
6
|
-
* Harness CLI) version, resolved from the launcher's real path — `process.argv[1]`
|
|
7
|
-
* is the `dsh` bin, whose realpath walks up to the `@deepseek-ai/dsh/package.json`
|
|
8
|
-
* that owns it — plus the bundle's OWN version reads (`bundleVersion`,
|
|
9
|
-
* `packageVersion`). The header and the welcome card show the harness the TUI
|
|
10
|
-
* runs on, not this bundle's own patch level; `dshVersion` is undefined when
|
|
11
|
-
* the launcher path is unreadable. The combined welcome-card display line lives
|
|
12
|
-
* in the application presentation owner (`app/surface/version-display.ts`).
|
|
13
|
-
*
|
|
14
|
-
* This is Client-local platform IO: it reads the local process argv and the
|
|
15
|
-
* locally installed package manifests. The zero-dependency startup island keeps
|
|
16
|
-
* its own private comparator and never imports this module.
|
|
17
|
-
* @module @xmoon76/dsh-pi-tui/client/launcher/version
|
|
18
|
-
*/
|
|
19
|
-
/** @returns the installed dsh version string, or undefined. */
|
|
20
|
-
function dshVersion() {
|
|
21
|
-
const bin = process.argv[1];
|
|
22
|
-
if (bin === void 0) return void 0;
|
|
23
|
-
try {
|
|
24
|
-
let dir = dirname(realpathSync(bin));
|
|
25
|
-
for (let depth = 0; depth < 8; depth += 1) {
|
|
26
|
-
try {
|
|
27
|
-
const pkg = JSON.parse(readFileSync(join(dir, "package.json"), "utf8"));
|
|
28
|
-
if (pkg.name === "@deepseek-ai/dsh" && typeof pkg.version === "string") return pkg.version;
|
|
29
|
-
} catch {}
|
|
30
|
-
const parent = dirname(dir);
|
|
31
|
-
if (parent === dir) return void 0;
|
|
32
|
-
dir = parent;
|
|
33
|
-
}
|
|
34
|
-
} catch {}
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* The bundle's OWN manifest version (`@xmoon76/dsh-pi-tui`), resolved by
|
|
38
|
-
* walking up from THIS module's directory instead of assuming a fixed depth:
|
|
39
|
-
* the source layout (`src/client/launcher/**`, the depth TS8-F2 introduced)
|
|
40
|
-
* and the flat packed layout (`dist/*.mjs`) both reach the shipped manifest,
|
|
41
|
-
* and an installed copy reaches its own `node_modules` manifest first.
|
|
42
|
-
* @returns the version string, or undefined when no own manifest is reachable.
|
|
43
|
-
*/
|
|
44
|
-
function ownBundleVersion() {
|
|
45
|
-
let dir = import.meta.dirname;
|
|
46
|
-
for (let depth = 0; depth < 8; depth += 1) {
|
|
47
|
-
try {
|
|
48
|
-
const pkg = JSON.parse(readFileSync(join(dir, "package.json"), "utf8"));
|
|
49
|
-
if (pkg.name === "@xmoon76/dsh-pi-tui" && typeof pkg.version === "string") return pkg.version;
|
|
50
|
-
} catch {}
|
|
51
|
-
const parent = dirname(dir);
|
|
52
|
-
if (parent === dir) return void 0;
|
|
53
|
-
dir = parent;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* The bundle's own version, read from package.json at runtime so the welcome
|
|
58
|
-
* card never drifts from the shipped version. The DISPLAYED version prefers
|
|
59
|
-
* the installed dsh version (`dshVersion` — shared with the header badge),
|
|
60
|
-
* falling back to this one.
|
|
61
|
-
* @returns the version string, or a fallback when the file is unreadable.
|
|
62
|
-
*/
|
|
63
|
-
function packageVersion() {
|
|
64
|
-
return dshVersion() ?? ownBundleVersion() ?? "0.0.0";
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* The BUNDLE's OWN version (`@xmoon76/dsh-pi-tui`'s package.json),
|
|
68
|
-
* INDEPENDENT of the installed dsh version. The status snapshot's
|
|
69
|
-
* host.tuiVersion and the footer's `version(format=tui)` item must report
|
|
70
|
-
* the TUI's own patch level — the welcome-card helper above deliberately
|
|
71
|
-
* prefers the dsh version for display, so reusing it made `tui` show the
|
|
72
|
-
* harness version (and `both` show the dsh version twice) inside a real
|
|
73
|
-
* dsh installation (the review's P2).
|
|
74
|
-
* @returns the bundle version string, or a fallback when the file is unreadable.
|
|
75
|
-
*/
|
|
76
|
-
function bundleVersion() {
|
|
77
|
-
return ownBundleVersion() ?? "0.0.0";
|
|
78
|
-
}
|
|
79
|
-
//#endregion
|
|
80
|
-
export { dshVersion as n, packageVersion as r, bundleVersion as t };
|