@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,85 +0,0 @@
|
|
|
1
|
-
import { i as PI_TUI_WEB_ACCESS_SET_ENABLED, n as PI_TUI_WEB_ACCESS_GET_STATUS, t as PI_TUI_WEB_ACCESS_GET_AUTHENTICATED_URL } from "./pi-tui-web-access-contract-BN8Cc_Ho.mjs";
|
|
2
|
-
import { n as PI_TUI_TERMINAL_PROGRESS_WATCH } from "./pi-tui-terminal-progress-contract-CdBH9j78.mjs";
|
|
3
|
-
//#region src/runtime/remote/pi-tui-file-reference-contract.ts
|
|
4
|
-
/** The wire namespace (and Host Cordis service key) of the augmentation. */
|
|
5
|
-
const PI_TUI_FILE_REFERENCES_NAMESPACE = "piTuiFileReferences";
|
|
6
|
-
/** The private method's stable endpoint identity. */
|
|
7
|
-
const PI_TUI_FILE_REFERENCES_LIST_ENDPOINT = "@xmoon76/dsh-pi-tui#piTuiFileReferences/list";
|
|
8
|
-
/** One strict JSON codec that validates a wire string. */
|
|
9
|
-
function stringCodec(typeSymbol) {
|
|
10
|
-
return {
|
|
11
|
-
mode: "strict",
|
|
12
|
-
typeSymbol,
|
|
13
|
-
create: () => ({ parse: (value) => {
|
|
14
|
-
if (typeof value !== "string") throw new TypeError(`${typeSymbol}: the wire value must be a string`);
|
|
15
|
-
return value;
|
|
16
|
-
} })
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Validate and detach one wire `HostFileListResult`. The result is produced by
|
|
21
|
-
* this package's own Host router, but it is still a wire boundary on the Client
|
|
22
|
-
* and the ONLY place the shape crosses.
|
|
23
|
-
*/
|
|
24
|
-
function decodeHostFileListResult(value) {
|
|
25
|
-
if (typeof value !== "object" || value === null) throw new TypeError("piTuiFileReferences/list: the result must be an object");
|
|
26
|
-
const record = value;
|
|
27
|
-
if (record.kind === "unavailable") {
|
|
28
|
-
if (typeof record.reason !== "string") throw new TypeError("piTuiFileReferences/list: an unavailable result needs a reason");
|
|
29
|
-
return {
|
|
30
|
-
kind: "unavailable",
|
|
31
|
-
reason: record.reason
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
if (record.kind !== "ok" || !Array.isArray(record.items)) throw new TypeError("piTuiFileReferences/list: the result must be ok(items) or unavailable(reason)");
|
|
35
|
-
return {
|
|
36
|
-
kind: "ok",
|
|
37
|
-
items: record.items.map((entry) => {
|
|
38
|
-
if (typeof entry !== "object" || entry === null) throw new TypeError("piTuiFileReferences/list: every candidate must be an object");
|
|
39
|
-
const candidate = entry;
|
|
40
|
-
if (typeof candidate.path !== "string" || candidate.kind !== "file" && candidate.kind !== "directory") throw new TypeError("piTuiFileReferences/list: every candidate needs a string path and a file/directory kind");
|
|
41
|
-
return {
|
|
42
|
-
path: candidate.path,
|
|
43
|
-
kind: candidate.kind
|
|
44
|
-
};
|
|
45
|
-
})
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
const HOST_FILE_LIST_RESULT_CODEC = {
|
|
49
|
-
mode: "strict",
|
|
50
|
-
typeSymbol: "@xmoon76/dsh-pi-tui#piTuiFileReferences/list:result",
|
|
51
|
-
create: () => ({ parse: decodeHostFileListResult }),
|
|
52
|
-
decode: decodeHostFileListResult
|
|
53
|
-
};
|
|
54
|
-
/** The explicit Client contribution mounted once with `ctx.remote.$mount`. */
|
|
55
|
-
const PI_TUI_CLIENT_CONTRIBUTION = {
|
|
56
|
-
package: "@xmoon76/dsh-pi-tui",
|
|
57
|
-
descriptors: [
|
|
58
|
-
{
|
|
59
|
-
id: PI_TUI_FILE_REFERENCES_LIST_ENDPOINT,
|
|
60
|
-
service: PI_TUI_FILE_REFERENCES_NAMESPACE,
|
|
61
|
-
namespace: PI_TUI_FILE_REFERENCES_NAMESPACE,
|
|
62
|
-
method: "list",
|
|
63
|
-
invocation: { kind: "direct" },
|
|
64
|
-
parameters: [{
|
|
65
|
-
name: "sessionId",
|
|
66
|
-
wire: "sessionId",
|
|
67
|
-
source: "json",
|
|
68
|
-
codec: stringCodec("@xmoon76/dsh-pi-tui#piTuiFileReferences/list:sessionId")
|
|
69
|
-
}, {
|
|
70
|
-
name: "query",
|
|
71
|
-
wire: "query",
|
|
72
|
-
source: "json",
|
|
73
|
-
codec: stringCodec("@xmoon76/dsh-pi-tui#piTuiFileReferences/list:query")
|
|
74
|
-
}],
|
|
75
|
-
cancellation: { parameter: "signal" },
|
|
76
|
-
result: HOST_FILE_LIST_RESULT_CODEC
|
|
77
|
-
},
|
|
78
|
-
PI_TUI_TERMINAL_PROGRESS_WATCH,
|
|
79
|
-
PI_TUI_WEB_ACCESS_GET_STATUS,
|
|
80
|
-
PI_TUI_WEB_ACCESS_SET_ENABLED,
|
|
81
|
-
PI_TUI_WEB_ACCESS_GET_AUTHENTICATED_URL
|
|
82
|
-
]
|
|
83
|
-
};
|
|
84
|
-
//#endregion
|
|
85
|
-
export { PI_TUI_FILE_REFERENCES_NAMESPACE as n, PI_TUI_CLIENT_CONTRIBUTION as t };
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
//#region src/runtime/remote/pi-tui-terminal-progress-contract.ts
|
|
2
|
-
/** The wire namespace (and Host Cordis service key) of the private stream. */
|
|
3
|
-
const PI_TUI_TERMINAL_PROGRESS_NAMESPACE = "piTuiTerminalProgress";
|
|
4
|
-
/** The private method's stable endpoint identity. */
|
|
5
|
-
const PI_TUI_TERMINAL_PROGRESS_WATCH_ENDPOINT = "@xmoon76/dsh-pi-tui#piTuiTerminalProgress/watch";
|
|
6
|
-
/** One strict JSON codec that validates a wire string. */
|
|
7
|
-
function stringCodec(typeSymbol) {
|
|
8
|
-
return {
|
|
9
|
-
mode: "strict",
|
|
10
|
-
typeSymbol,
|
|
11
|
-
create: () => ({ parse: (value) => {
|
|
12
|
-
if (typeof value !== "string") throw new TypeError(`${typeSymbol}: the wire value must be a string`);
|
|
13
|
-
return value;
|
|
14
|
-
} })
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Validate and detach one `PiTuiTerminalProgressFrame`. This is the ONE
|
|
19
|
-
* structural validator of the frame shape: the descriptor's `result` codec
|
|
20
|
-
* uses it, and the R2 Client source must call it on every downlink item because
|
|
21
|
-
* the framework does not (see the module JSDoc).
|
|
22
|
-
*/
|
|
23
|
-
function parsePiTuiTerminalProgressFrame(value) {
|
|
24
|
-
if (typeof value !== "object" || value === null) throw new TypeError("piTuiTerminalProgress/watch: the frame must be an object");
|
|
25
|
-
const frame = value;
|
|
26
|
-
if (frame.kind !== "snapshot" && frame.kind !== "update") throw new TypeError("piTuiTerminalProgress/watch: the frame kind must be snapshot or update");
|
|
27
|
-
if (typeof frame.sessionId !== "string") throw new TypeError("piTuiTerminalProgress/watch: the frame needs a string sessionId");
|
|
28
|
-
if (typeof frame.hostEpoch !== "string") throw new TypeError("piTuiTerminalProgress/watch: the frame needs a string hostEpoch");
|
|
29
|
-
if (typeof frame.agentEpoch !== "number") throw new TypeError("piTuiTerminalProgress/watch: the frame needs a numeric agentEpoch");
|
|
30
|
-
if (typeof frame.revision !== "number") throw new TypeError("piTuiTerminalProgress/watch: the frame needs a numeric revision");
|
|
31
|
-
if (typeof frame.running !== "boolean") throw new TypeError("piTuiTerminalProgress/watch: the frame needs a boolean running");
|
|
32
|
-
if (frame.outcome !== "idle" && frame.outcome !== "done" && frame.outcome !== "error") throw new TypeError("piTuiTerminalProgress/watch: the frame outcome must be idle, done or error");
|
|
33
|
-
return {
|
|
34
|
-
kind: frame.kind,
|
|
35
|
-
sessionId: frame.sessionId,
|
|
36
|
-
hostEpoch: frame.hostEpoch,
|
|
37
|
-
agentEpoch: frame.agentEpoch,
|
|
38
|
-
revision: frame.revision,
|
|
39
|
-
running: frame.running,
|
|
40
|
-
outcome: frame.outcome
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
const PI_TUI_TERMINAL_PROGRESS_FRAME_CODEC = {
|
|
44
|
-
mode: "strict",
|
|
45
|
-
typeSymbol: "@xmoon76/dsh-pi-tui#piTuiTerminalProgress/watch:frame",
|
|
46
|
-
create: () => ({ parse: parsePiTuiTerminalProgressFrame }),
|
|
47
|
-
decode: parsePiTuiTerminalProgressFrame
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* The ONE shared invocation descriptor both contributions derive from. The
|
|
51
|
-
* Host registers this exact object; the Client mounts this exact object.
|
|
52
|
-
*/
|
|
53
|
-
const PI_TUI_TERMINAL_PROGRESS_WATCH = {
|
|
54
|
-
id: PI_TUI_TERMINAL_PROGRESS_WATCH_ENDPOINT,
|
|
55
|
-
service: PI_TUI_TERMINAL_PROGRESS_NAMESPACE,
|
|
56
|
-
namespace: PI_TUI_TERMINAL_PROGRESS_NAMESPACE,
|
|
57
|
-
method: "watch",
|
|
58
|
-
mode: "stream",
|
|
59
|
-
invocation: { kind: "direct" },
|
|
60
|
-
parameters: [{
|
|
61
|
-
name: "sessionId",
|
|
62
|
-
wire: "sessionId",
|
|
63
|
-
source: "json",
|
|
64
|
-
codec: stringCodec("@xmoon76/dsh-pi-tui#piTuiTerminalProgress/watch:sessionId")
|
|
65
|
-
}],
|
|
66
|
-
cancellation: { parameter: "signal" },
|
|
67
|
-
result: PI_TUI_TERMINAL_PROGRESS_FRAME_CODEC
|
|
68
|
-
};
|
|
69
|
-
//#endregion
|
|
70
|
-
export { PI_TUI_TERMINAL_PROGRESS_WATCH as n, parsePiTuiTerminalProgressFrame as r, PI_TUI_TERMINAL_PROGRESS_NAMESPACE as t };
|