@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.
Files changed (78) hide show
  1. package/README.en.md +64 -26
  2. package/README.md +64 -26
  3. package/cordis.patch.yml +13 -0
  4. package/dist/acp-stdio.mjs +151 -0
  5. package/dist/{bootstrap-C9nl6e13.mjs → bootstrap-CVyHGQDX.mjs} +22330 -6888
  6. package/dist/browser-CDUSHIIr.mjs +76 -0
  7. package/dist/builtins.mjs +2 -2
  8. package/dist/{client-bootstrap-CGezi85O.mjs → client-bootstrap-4UoeVIHE.mjs} +2407 -1830
  9. package/dist/client-runtime-BHBlVUf5.mjs +1376 -0
  10. package/dist/{daemon-launcher-H_1r5Cqs.mjs → daemon-launcher-DxIgjBHW.mjs} +1551 -57
  11. package/dist/daemon-launcher.d.mts +85 -14
  12. package/dist/daemon-launcher.mjs +2 -2
  13. package/dist/diagnostics-Db5iVcuJ.mjs +123 -0
  14. package/dist/{entry-control-jBfKn1qO.mjs → entry-control-BDLZgg4m.mjs} +1 -1
  15. package/dist/{extensions-6a5vvJUT.mjs → extensions-Dx7ncPNA.mjs} +1 -4
  16. package/dist/extensions.mjs +1 -1
  17. package/dist/handoff-BjoEy3f8.mjs +106 -0
  18. package/dist/history-search-limits-Cx2UvRC2.mjs +16 -0
  19. package/dist/history-search-remote-BHuoellG.mjs +113 -0
  20. package/dist/history-search-remote-BzXdvrxk.mjs +26 -0
  21. package/dist/history-search-seat-BcHJTpeB.mjs +639 -0
  22. package/dist/history-search-seat-rZcq0XV6.mjs +639 -0
  23. package/dist/{host-bootstrap-MVxks641.mjs → host-bootstrap-BfnufpnW.mjs} +37 -72
  24. package/dist/{host-foundation-probe-DK7n5jDu.mjs → host-foundation-probe-DlD8-N_Q.mjs} +2 -2
  25. package/dist/host-runtime.mjs +5611 -290
  26. package/dist/index.d.mts +13 -6
  27. package/dist/index.mjs +22766 -6893
  28. package/dist/installed-dsh-BjUiJSwR.mjs +142 -0
  29. package/dist/interaction-port-D1Yv9zgu.mjs +45 -0
  30. package/dist/local-acp-control-CC5z4Xbq.mjs +304 -0
  31. package/dist/local-acp-endpoint-D1jYdJdv.mjs +41 -0
  32. package/dist/local-acp-listener-Cmgb5M0H.mjs +9493 -0
  33. package/dist/local-acp-status-B_25Q6kU.mjs +101 -0
  34. package/dist/local-client.mjs +719 -93
  35. package/dist/local-daemon-control-BFJAC8Kg.mjs +2199 -0
  36. package/dist/local-daemon-control-Bm3imctD.mjs +2101 -0
  37. package/dist/{local-discovery-BPZw1wEd.mjs → local-discovery-BMhaGIiJ.mjs} +254 -544
  38. package/dist/{local-discovery-BMoNXZjJ.mjs → local-discovery-Ba7_-NNC.mjs} +1 -1
  39. package/dist/{local-discovery-Bq3jLAn1.mjs → local-discovery-QSbFpjK2.mjs} +301 -544
  40. package/dist/local-host.mjs +970 -501
  41. package/dist/local-profile-daemon-admin-otpm69R6.mjs +469 -0
  42. package/dist/{local-scope-DEuGAy8l.mjs → local-scope-5DEKA_lW.mjs} +1075 -31
  43. package/dist/{local-transport-X4ZCe2uE.mjs → local-transport-DeWmdZ5E.mjs} +14 -3
  44. package/dist/{local-web-control-DKWtXIkr.mjs → local-web-control-Dny93N-r.mjs} +10 -7
  45. package/dist/{local-workspace-object-D06GL0UO.mjs → local-workspace-object-D0RVQt8U.mjs} +33 -9
  46. package/dist/model-selection-CYlqg2DV.mjs +83 -0
  47. package/dist/native-client-domains-Dg4srzYt.mjs +2 -0
  48. package/dist/native-client.d.mts +735 -0
  49. package/dist/native-client.mjs +3534 -0
  50. package/dist/{open-CmOBxSjN.mjs → open-QQva8-ar.mjs} +24 -20
  51. package/dist/{pi-tui-remote-contribution-Do8ECrUy.mjs → pi-tui-remote-contribution-565wiLWp.mjs} +741 -150
  52. package/dist/preferences.mjs +1 -1
  53. package/dist/{profile-preferences-migration-CThz4rHH.mjs → profile-preferences-migration-CNOWIdnr.mjs} +1 -1
  54. package/dist/{profile-preferences-migration-BfUGdPZx.mjs → profile-preferences-migration-IrnXcJWK.mjs} +10 -8
  55. package/dist/{prompt-sections-DXmjB58H.mjs → prompt-sections-Bi-9_Gr_.mjs} +28 -10
  56. package/dist/{prompt-sections-DUKmWb8g.mjs → prompt-sections-DFS1dqsY.mjs} +342 -56
  57. package/dist/{dist-BFgC-5tL.mjs → recall-scope-9Nuoto_i.mjs} +353 -1
  58. package/dist/rolldown-runtime-8H4AJuhK.mjs +14 -0
  59. package/dist/schema-CCLvDa7Q.mjs +177 -0
  60. package/dist/{schema-qE_P09zJ.mjs → schema-t97l3aK8.mjs} +56 -3
  61. package/dist/{session-DC0XQr5O.mjs → session-Cs8iLCEx.mjs} +784 -342
  62. package/dist/{session-Cihe8PPS.mjs → session-EBRZF6Ow.mjs} +783 -341
  63. package/dist/session-create-facts-CkfG5DpQ.mjs +20 -0
  64. package/dist/{startup-CarQxWwi.d.mts → startup-Dti3Udne.d.mts} +30 -3
  65. package/dist/{startup-CARqn3kV.mjs → startup-UtFQSDe_.mjs} +90 -15
  66. package/dist/startup.d.mts +2 -2
  67. package/dist/startup.mjs +1 -1
  68. package/dist/task-read-remote-DRtkXDrZ.mjs +1083 -0
  69. package/dist/{terminal-progress-source-D4DHyXDo.mjs → terminal-progress-source-VsczdXA-.mjs} +610 -335
  70. package/dist/{transcript-view-a7cROAaI.mjs → transcript-view-B6vCnukn.mjs} +2284 -1166
  71. package/dist/{transcript-view-hvNVkPtv.mjs → transcript-view-DSSdE2vK.mjs} +2191 -765
  72. package/dist/write-failure-xNKczXH7.mjs +189 -0
  73. package/package.json +25 -8
  74. package/dist/local-acp-listener-CNkguN5-.mjs +0 -2566
  75. package/dist/local-daemon-control-Bg9s2aYi.mjs +0 -1424
  76. package/dist/local-daemon-control-Cu_4FIdd.mjs +0 -1585
  77. package/dist/local-profile-daemon-admin-AXgVH-6y.mjs +0 -91
  78. 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 };
@@ -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 };