@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,4 +1,6 @@
|
|
|
1
|
+
import { win32 } from "node:path";
|
|
1
2
|
import { spawn } from "node:child_process";
|
|
3
|
+
import { Buffer } from "node:buffer";
|
|
2
4
|
//#region src/client/url/open.ts
|
|
3
5
|
/**
|
|
4
6
|
* Open one external URL with the platform opener (fullscreen OSC 8 link
|
|
@@ -21,35 +23,37 @@ function openExternalUrl(rawUrl) {
|
|
|
21
23
|
return;
|
|
22
24
|
}
|
|
23
25
|
if (url.protocol !== "https:" && url.protocol !== "http:") return;
|
|
24
|
-
const { command, args } = openerFor(url.href, process.platform);
|
|
25
26
|
try {
|
|
27
|
+
const { command, args } = openerFor(url.href, process.platform);
|
|
28
|
+
const detached = process.platform !== "win32";
|
|
26
29
|
const child = spawn(command, args, {
|
|
27
30
|
stdio: "ignore",
|
|
28
|
-
detached
|
|
31
|
+
detached
|
|
29
32
|
});
|
|
30
33
|
child.on("error", () => {});
|
|
31
|
-
child.unref();
|
|
34
|
+
if (detached) child.unref();
|
|
32
35
|
} catch {}
|
|
33
36
|
}
|
|
34
37
|
/**
|
|
35
|
-
* The platform opener command line.
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* would split into a second COMMAND. The URL is therefore wrapped in
|
|
39
|
-
* literal double quotes — the WHATWG URL serializer never emits a raw
|
|
40
|
-
* quote/space/control character in href, so the quoted token cannot be
|
|
41
|
-
* escaped — and cmd treats everything inside double quotes as literal.
|
|
38
|
+
* The platform opener command line. Windows carries the URL as Base64 data in a
|
|
39
|
+
* fixed PowerShell script, then carries that script as an EncodedCommand. The
|
|
40
|
+
* raw URL never enters cmd, a PowerShell source string or any log/diagnostic.
|
|
42
41
|
*/
|
|
43
|
-
function openerFor(href, platform = process.platform) {
|
|
44
|
-
if (platform === "win32")
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
42
|
+
function openerFor(href, platform = process.platform, systemRoot = process.env.SystemRoot) {
|
|
43
|
+
if (platform === "win32") {
|
|
44
|
+
if (systemRoot === void 0 || !/^[A-Za-z]:[\\/]/u.test(systemRoot)) throw new Error("Windows system root is unavailable");
|
|
45
|
+
const script = `$url = [Text.Encoding]::UTF8.GetString([Convert]::FromBase64String('${Buffer.from(href, "utf8").toString("base64")}'))\r\nStart-Process -FilePath $url -ErrorAction Stop`;
|
|
46
|
+
return {
|
|
47
|
+
command: win32.join(systemRoot, "System32", "WindowsPowerShell", "v1.0", "powershell.exe"),
|
|
48
|
+
args: [
|
|
49
|
+
"-NoLogo",
|
|
50
|
+
"-NoProfile",
|
|
51
|
+
"-NonInteractive",
|
|
52
|
+
"-EncodedCommand",
|
|
53
|
+
Buffer.from(script, "utf16le").toString("base64")
|
|
54
|
+
]
|
|
55
|
+
};
|
|
56
|
+
}
|
|
53
57
|
if (platform === "darwin") return {
|
|
54
58
|
command: "open",
|
|
55
59
|
args: [href]
|