@xmoon76/dsh-pi-tui 0.5.7 → 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 +64 -26
- package/README.md +64 -26
- package/cordis.patch.yml +13 -0
- package/dist/acp-stdio.mjs +151 -0
- package/dist/{bootstrap-C9nl6e13.mjs → bootstrap-CVyHGQDX.mjs} +22330 -6888
- package/dist/browser-CDUSHIIr.mjs +76 -0
- package/dist/builtins.mjs +2 -2
- package/dist/{client-bootstrap-CGezi85O.mjs → client-bootstrap-4UoeVIHE.mjs} +2407 -1830
- package/dist/client-runtime-BHBlVUf5.mjs +1376 -0
- package/dist/{daemon-launcher-H_1r5Cqs.mjs → daemon-launcher-DxIgjBHW.mjs} +1551 -57
- package/dist/daemon-launcher.d.mts +85 -14
- package/dist/daemon-launcher.mjs +2 -2
- package/dist/diagnostics-Db5iVcuJ.mjs +123 -0
- package/dist/{entry-control-jBfKn1qO.mjs → entry-control-BDLZgg4m.mjs} +1 -1
- package/dist/{extensions-6a5vvJUT.mjs → extensions-Dx7ncPNA.mjs} +1 -4
- 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-DK7n5jDu.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 +22766 -6893
- 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 +719 -93
- package/dist/local-daemon-control-BFJAC8Kg.mjs +2199 -0
- package/dist/local-daemon-control-Bm3imctD.mjs +2101 -0
- package/dist/{local-discovery-BPZw1wEd.mjs → local-discovery-BMhaGIiJ.mjs} +254 -544
- package/dist/{local-discovery-BMoNXZjJ.mjs → local-discovery-Ba7_-NNC.mjs} +1 -1
- package/dist/{local-discovery-Bq3jLAn1.mjs → local-discovery-QSbFpjK2.mjs} +301 -544
- package/dist/local-host.mjs +970 -501
- package/dist/local-profile-daemon-admin-otpm69R6.mjs +469 -0
- package/dist/{local-scope-DEuGAy8l.mjs → local-scope-5DEKA_lW.mjs} +1075 -31
- package/dist/{local-transport-X4ZCe2uE.mjs → local-transport-DeWmdZ5E.mjs} +14 -3
- package/dist/{local-web-control-DKWtXIkr.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-DC0XQr5O.mjs → session-Cs8iLCEx.mjs} +784 -342
- package/dist/{session-Cihe8PPS.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-CARqn3kV.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-D4DHyXDo.mjs → terminal-progress-source-VsczdXA-.mjs} +610 -335
- package/dist/{transcript-view-a7cROAaI.mjs → transcript-view-B6vCnukn.mjs} +2284 -1166
- package/dist/{transcript-view-hvNVkPtv.mjs → transcript-view-DSSdE2vK.mjs} +2191 -765
- package/dist/write-failure-xNKczXH7.mjs +189 -0
- package/package.json +25 -8
- package/dist/local-acp-listener-CNkguN5-.mjs +0 -2566
- package/dist/local-daemon-control-Bg9s2aYi.mjs +0 -1424
- package/dist/local-daemon-control-Cu_4FIdd.mjs +0 -1585
- package/dist/local-profile-daemon-admin-AXgVH-6y.mjs +0 -91
- package/dist/preset-BcWqOtY7.mjs +0 -46
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { d as readInstalledDshVersion } from "./local-scope-DEuGAy8l.mjs";
|
|
2
|
-
import "./entry-control-jBfKn1qO.mjs";
|
|
3
|
-
import { createRequire } from "node:module";
|
|
4
|
-
import { readFileSync, realpathSync } from "node:fs";
|
|
5
|
-
import { dirname, join } from "node:path";
|
|
6
|
-
import "node:url";
|
|
7
|
-
import "node:os";
|
|
8
|
-
import "node:child_process";
|
|
9
|
-
//#region src/app/remote-process/daemon-launcher.ts
|
|
10
|
-
/**
|
|
11
|
-
* Resolve this installed bundle's package root through the OFFICIAL profile
|
|
12
|
-
* resolution. The launcher module itself may be reached through a symlinked
|
|
13
|
-
* `dist`, so its own module URL is not a reliable package-root locator.
|
|
14
|
-
* Exported for the M6 UX PR2 Direct-side admin port, which must reuse the SAME
|
|
15
|
-
* official Profile resolution as this CLI path — never a second copy.
|
|
16
|
-
*/
|
|
17
|
-
function resolveProfilePackageRoot(profileDir) {
|
|
18
|
-
let manifestPath;
|
|
19
|
-
try {
|
|
20
|
-
manifestPath = createRequire(join(profileDir, "package.json")).resolve("@xmoon76/dsh-pi-tui/package.json");
|
|
21
|
-
} catch (error) {
|
|
22
|
-
throw new Error("pi-tui daemon launcher: the official profile does not resolve the installed @xmoon76/dsh-pi-tui", { cause: error });
|
|
23
|
-
}
|
|
24
|
-
const root = realpathSync(dirname(manifestPath));
|
|
25
|
-
let manifest;
|
|
26
|
-
try {
|
|
27
|
-
manifest = JSON.parse(readFileSync(join(root, "package.json"), "utf8"));
|
|
28
|
-
} catch (error) {
|
|
29
|
-
throw new Error("pi-tui daemon launcher: the installed package manifest is not readable", { cause: error });
|
|
30
|
-
}
|
|
31
|
-
if (manifest === null || typeof manifest !== "object" || manifest.name !== "@xmoon76/dsh-pi-tui") throw new Error("pi-tui daemon launcher: the official profile resolves a different package");
|
|
32
|
-
return root;
|
|
33
|
-
}
|
|
34
|
-
//#endregion
|
|
35
|
-
//#region src/app/remote-process/local-profile-daemon-admin.ts
|
|
36
|
-
/**
|
|
37
|
-
* Bind the EXACT official Profile facts to the existing control plane.
|
|
38
|
-
*
|
|
39
|
-
* The profile is captured by value here: callers pass the profile their process
|
|
40
|
-
* composition already verified (the Host `profileContext` on Direct, the split
|
|
41
|
-
* Client entry's official `profileDir`/`dshHome`/`packageRoot`/anchor facts on
|
|
42
|
-
* Daemon). Nothing is re-resolved from argv, cwd or an environment guess later.
|
|
43
|
-
* @param profile - the official Profile facts this process belongs to.
|
|
44
|
-
* @param deps - the bound run seam.
|
|
45
|
-
* @returns the port the Settings follow-up and the final exit root consume.
|
|
46
|
-
*/
|
|
47
|
-
function createProfileDaemonAdmin(profile, deps) {
|
|
48
|
-
const bound = Object.freeze({ ...profile });
|
|
49
|
-
return Object.freeze({
|
|
50
|
-
profile: bound.name,
|
|
51
|
-
run: (verb) => deps.run(verb)
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* The production run seam for ONE official Profile. The existing
|
|
56
|
-
* `local-daemon-control` module is imported lazily so that neither a cold
|
|
57
|
-
* launch nor a Settings read pulls the OS managers into the process graph; it
|
|
58
|
-
* also keeps `src/app/bootstrap.ts` free of a static manager dependency.
|
|
59
|
-
* @param profile - the official Profile facts.
|
|
60
|
-
* @returns the unbound run function the port is built over.
|
|
61
|
-
*/
|
|
62
|
-
function profileDaemonAdminRun(profile, deps = {}) {
|
|
63
|
-
return async (verb) => {
|
|
64
|
-
const { runDaemonControl } = await import("./local-daemon-control-Bg9s2aYi.mjs");
|
|
65
|
-
return await runDaemonControl({ verb }, profile, deps);
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Resolve the Direct-side admin Profile from the SAME official Host
|
|
70
|
-
* `profileContext` the CLI cold-control path consumes, with the SAME
|
|
71
|
-
* installed-package resolution (`daemon-launcher.resolveProfilePackageRoot` +
|
|
72
|
-
* `readInstalledDshVersion`). This proves the local install capability WITHOUT
|
|
73
|
-
* loading the OS managers: it reads the profile manifest and the installed DSH
|
|
74
|
-
* version only, never a Host/manager probe.
|
|
75
|
-
* @param profileContext - the official Host profile facts.
|
|
76
|
-
* @returns the bound Profile facts, or `undefined` when the installed profile
|
|
77
|
-
* cannot be proven — the caller then offers no install/stop action (fail
|
|
78
|
-
* closed) instead of falling back to a guessed identity.
|
|
79
|
-
*/ function resolveDirectDaemonAdminProfile(profileContext) {
|
|
80
|
-
const packageRoot = resolveProfilePackageRoot(profileContext.dir);
|
|
81
|
-
return {
|
|
82
|
-
name: profileContext.name,
|
|
83
|
-
dir: profileContext.dir,
|
|
84
|
-
home: profileContext.home,
|
|
85
|
-
installAnchor: profileContext.installAnchor,
|
|
86
|
-
packageRoot,
|
|
87
|
-
dshVersion: readInstalledDshVersion(profileContext.installAnchor)
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
//#endregion
|
|
91
|
-
export { profileDaemonAdminRun as n, resolveDirectDaemonAdminProfile as r, createProfileDaemonAdmin as t };
|
package/dist/preset-BcWqOtY7.mjs
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
//#region src/domain/display/preset.ts
|
|
2
|
-
/** Whether a value is one of the complete display preset names. */
|
|
3
|
-
function isDisplayPreset(value) {
|
|
4
|
-
return value === "focus" || value === "compact" || value === "full";
|
|
5
|
-
}
|
|
6
|
-
/** Every preset whose projection exists in this build ships as available. */
|
|
7
|
-
function isDisplayPresetAvailable(preset) {
|
|
8
|
-
return preset === "focus" || preset === "compact" || preset === "full";
|
|
9
|
-
}
|
|
10
|
-
/** Whether a preset enables the model-facing Focus behavioral policy. The
|
|
11
|
-
* neutral behavioral answer is exactly the preset identity — it must never
|
|
12
|
-
* depend on the terminal disclosure policy. */
|
|
13
|
-
function isFocusDisplayPreset(preset) {
|
|
14
|
-
return preset === "focus";
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Resolve the canonical field before the legacy Focus field. Every recognized
|
|
18
|
-
* preset (Compact included) is canonical as of PR3 and is never rewritten; an
|
|
19
|
-
* unrecognized value falls back to Full.
|
|
20
|
-
*/
|
|
21
|
-
function resolveDisplayPreset(input) {
|
|
22
|
-
if (input.displayPreset !== void 0) {
|
|
23
|
-
if (isDisplayPreset(input.displayPreset)) return {
|
|
24
|
-
preset: input.displayPreset,
|
|
25
|
-
canonicalize: false,
|
|
26
|
-
source: "canonical"
|
|
27
|
-
};
|
|
28
|
-
return {
|
|
29
|
-
preset: "full",
|
|
30
|
-
canonicalize: true,
|
|
31
|
-
source: "invalid-canonical"
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
if (input.focusMode === "on") return {
|
|
35
|
-
preset: "focus",
|
|
36
|
-
canonicalize: true,
|
|
37
|
-
source: "legacy-focus"
|
|
38
|
-
};
|
|
39
|
-
return {
|
|
40
|
-
preset: "full",
|
|
41
|
-
canonicalize: true,
|
|
42
|
-
source: "legacy-full"
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
//#endregion
|
|
46
|
-
export { resolveDisplayPreset as i, isDisplayPresetAvailable as n, isFocusDisplayPreset as r, isDisplayPreset as t };
|