@xmoon76/dsh-pi-tui 0.5.8 → 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 +61 -25
- package/README.md +61 -25
- package/cordis.patch.yml +13 -0
- package/dist/acp-stdio.mjs +151 -0
- package/dist/{bootstrap-CMIjGyuk.mjs → bootstrap-CVyHGQDX.mjs} +21901 -6575
- package/dist/browser-CDUSHIIr.mjs +76 -0
- package/dist/builtins.mjs +2 -2
- package/dist/{client-bootstrap-BjGPc-DM.mjs → client-bootstrap-4UoeVIHE.mjs} +2488 -2734
- package/dist/client-runtime-BHBlVUf5.mjs +1376 -0
- package/dist/{daemon-launcher-Dult7Jxv.mjs → daemon-launcher-DxIgjBHW.mjs} +1549 -172
- package/dist/daemon-launcher.d.mts +85 -14
- package/dist/daemon-launcher.mjs +2 -2
- package/dist/{local-profile-daemon-admin-BmQSdzT0.mjs → diagnostics-Db5iVcuJ.mjs} +3 -90
- package/dist/{entry-control-DjNsE3I0.mjs → entry-control-BDLZgg4m.mjs} +1 -1
- package/dist/{extensions-B4uLpSTv.mjs → extensions-Dx7ncPNA.mjs} +1 -1
- 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-DMNTmNrH.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 +22334 -6695
- 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 +292 -63
- package/dist/local-daemon-control-BFJAC8Kg.mjs +2199 -0
- package/dist/local-daemon-control-Bm3imctD.mjs +2101 -0
- package/dist/{local-discovery-uOBfFq5j.mjs → local-discovery-BMhaGIiJ.mjs} +254 -544
- package/dist/{local-discovery-egN4_gsQ.mjs → local-discovery-Ba7_-NNC.mjs} +1 -1
- package/dist/{local-discovery-DOSsCh9q.mjs → local-discovery-QSbFpjK2.mjs} +301 -544
- package/dist/local-host.mjs +952 -501
- package/dist/local-profile-daemon-admin-otpm69R6.mjs +469 -0
- package/dist/{local-scope-DamiMqPd.mjs → local-scope-5DEKA_lW.mjs} +1023 -96
- package/dist/{local-transport-Iwo0mtu3.mjs → local-transport-DeWmdZ5E.mjs} +14 -3
- package/dist/{local-web-control-DMrjwCkl.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-C6tSs86s.mjs → session-Cs8iLCEx.mjs} +784 -342
- package/dist/{session-CstInGIA.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-EG5UqIcd.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-CpfpQO_h.mjs → terminal-progress-source-VsczdXA-.mjs} +610 -332
- package/dist/{transcript-view-CuJYWkhp.mjs → transcript-view-B6vCnukn.mjs} +2096 -977
- package/dist/{transcript-view-C1YtJ49Y.mjs → transcript-view-DSSdE2vK.mjs} +2078 -651
- package/dist/write-failure-xNKczXH7.mjs +189 -0
- package/package.json +20 -3
- package/dist/local-acp-listener-B65J0Bx4.mjs +0 -3115
- package/dist/local-daemon-control-C14q9KnD.mjs +0 -1588
- package/dist/local-daemon-control-TCnERL7n.mjs +0 -1424
- package/dist/preset-BcWqOtY7.mjs +0 -46
package/dist/preferences.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as PreferencesConfig } from "./schema-
|
|
1
|
+
import { r as PreferencesConfig } from "./schema-t97l3aK8.mjs";
|
|
2
2
|
//#region src/app/config/preferences.ts
|
|
3
3
|
/** Stable Cordis plugin name (the Loader row id in `cordis.patch.yml`). */
|
|
4
4
|
const name = "pi-tui-preferences";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { o as migrateProfileTuiPreferences } from "./profile-preferences-migration-
|
|
1
|
+
import { o as migrateProfileTuiPreferences } from "./profile-preferences-migration-IrnXcJWK.mjs";
|
|
2
2
|
export { migrateProfileTuiPreferences };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as resolveDisplayPreset, n as PREFERENCE_FIELD_NAMES, r as PreferencesConfig } from "./schema-CCLvDa7Q.mjs";
|
|
2
2
|
import { l as isFooterLayout, t as parseFooterCommandConfig, u as parseFooterLayout } from "./command-trust-DChWUamk.mjs";
|
|
3
|
-
import { n as PREFERENCE_FIELD_NAMES, r as PreferencesConfig } from "./schema-qE_P09zJ.mjs";
|
|
4
3
|
import { existsSync, readFileSync } from "node:fs";
|
|
5
4
|
import { join } from "node:path";
|
|
6
5
|
import { readFile } from "node:fs/promises";
|
|
@@ -26,8 +25,8 @@ import { parse } from "yaml";
|
|
|
26
25
|
* (the runtime parsers own validation), while the caller keeps the original
|
|
27
26
|
* sources untouched.
|
|
28
27
|
* - `focusMode` exists here ONLY as a legacy input: it converges into
|
|
29
|
-
* `displayPreset` (canonical valid → copy,
|
|
30
|
-
* else full) and is never carried as a canonical field.
|
|
28
|
+
* `displayPreset` (canonical valid → copy, invalid canonical string → full,
|
|
29
|
+
* else focusMode 'on' → focus, else full) and is never carried as a canonical field.
|
|
31
30
|
*
|
|
32
31
|
* @module @xmoon76/dsh-pi-tui/app/config/legacy-settings-migration
|
|
33
32
|
*/
|
|
@@ -162,10 +161,13 @@ function legacyPreferenceValues(section, diag) {
|
|
|
162
161
|
}
|
|
163
162
|
values[field] = value;
|
|
164
163
|
}
|
|
165
|
-
if (section.displayPreset !== void 0 || section.focusMode !== void 0)
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
164
|
+
if (section.displayPreset !== void 0 || section.focusMode !== void 0) {
|
|
165
|
+
const display = resolveDisplayPreset({
|
|
166
|
+
displayPreset: typeof section.displayPreset === "string" ? section.displayPreset : void 0,
|
|
167
|
+
focusMode: typeof section.focusMode === "string" ? section.focusMode : void 0
|
|
168
|
+
});
|
|
169
|
+
values.displayPreset = display.source === "default" ? "full" : display.preset;
|
|
170
|
+
}
|
|
169
171
|
return values;
|
|
170
172
|
}
|
|
171
173
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { s as isFocusDisplayPreset } from "./schema-CCLvDa7Q.mjs";
|
|
2
2
|
import { d as boundedHostUserShellResultStreams, l as MAX_HOST_USER_SHELL_STREAM_BYTES, o as MAX_HOST_USER_SHELL_MESSAGE_BYTES, u as boundedHostUserShellOutput } from "./pi-tui-terminal-progress-contract-B3RoEzjK.mjs";
|
|
3
3
|
import { isUserInvocable } from "@deepseek-ai/dsh-skill";
|
|
4
4
|
import { DEFAULT_FILE_SEARCH_EXCLUDED_DIRECTORIES, DEFAULT_FILE_SEARCH_MAX_ENTRIES, DEFAULT_FILE_SEARCH_MAX_RESULTS, WorkspaceFileSearch } from "@deepseek-ai/dsh-file-reference-local/search";
|
|
@@ -291,12 +291,19 @@ var OfficialWorkspaceSearchPool = class {
|
|
|
291
291
|
* The one Host user-shell execution core shared by the Direct adapter and the
|
|
292
292
|
* authenticated split-Host service.
|
|
293
293
|
*
|
|
294
|
-
* Both policies run the raw command through
|
|
295
|
-
*
|
|
294
|
+
* Both policies run the raw command through one official host local shell
|
|
295
|
+
* dialect selected by the caller (no wrapper, relay or shell-flag translation):
|
|
296
|
+
* - a POSIX Host uses `['bash', '-c', command]`;
|
|
297
|
+
* - a Windows Host uses the exact live official `pwshPath` with the official
|
|
298
|
+
* `-NoLogo -NoProfile -NonInteractive -Command <preamble><command>` argv and
|
|
299
|
+
* the official environment overrides (one argv element carries the command,
|
|
300
|
+
* so no second parse layer exists).
|
|
296
301
|
* - `bypass` spawns that argv directly;
|
|
297
302
|
* - `sandbox` resolves the EXACT Session policy and calls the installed
|
|
298
|
-
* official `ctx.sandbox.confine` exactly once, requires
|
|
299
|
-
*
|
|
303
|
+
* official `ctx.sandbox.confine` exactly once, requires the enforcement the
|
|
304
|
+
* selected official backend actually provides (`full` on POSIX; the official
|
|
305
|
+
* Windows ACL backend's `partial` or `full`), and spawns the EXACT argv
|
|
306
|
+
* returned by that one call.
|
|
300
307
|
*
|
|
301
308
|
* Output is bounded by the subprocess collect/spill dispositions and read only
|
|
302
309
|
* after `done` AND `waitForExit` proved the managed range empty. Cancellation
|
|
@@ -364,11 +371,18 @@ function collectedOutput(reader) {
|
|
|
364
371
|
* @returns the bounded semantic result or a truthful refusal/failure.
|
|
365
372
|
*/
|
|
366
373
|
async function executeHostShellOnce(request) {
|
|
367
|
-
const { command, cwd, policy, signal, subprocess } = request;
|
|
368
|
-
const rawArgv = [
|
|
374
|
+
const { command, cwd, policy, signal, subprocess, shell } = request;
|
|
375
|
+
const rawArgv = shell.dialect === "bash" ? [
|
|
369
376
|
"bash",
|
|
370
377
|
"-c",
|
|
371
378
|
command
|
|
379
|
+
] : [
|
|
380
|
+
shell.executable,
|
|
381
|
+
"-NoLogo",
|
|
382
|
+
"-NoProfile",
|
|
383
|
+
"-NonInteractive",
|
|
384
|
+
"-Command",
|
|
385
|
+
`${shell.encodingPreamble}${command}`
|
|
372
386
|
];
|
|
373
387
|
let confined;
|
|
374
388
|
if (policy === "sandbox") {
|
|
@@ -392,7 +406,8 @@ async function executeHostShellOnce(request) {
|
|
|
392
406
|
}
|
|
393
407
|
},
|
|
394
408
|
graceMs: HOST_USER_SHELL_GRACE_MS,
|
|
395
|
-
signal
|
|
409
|
+
signal,
|
|
410
|
+
...shell.dialect === "pwsh" ? { env: shell.envOverrides } : {}
|
|
396
411
|
};
|
|
397
412
|
request.beforeSpawn?.();
|
|
398
413
|
signal.throwIfAborted();
|
|
@@ -477,7 +492,10 @@ async function confineSandbox(rawArgv, request) {
|
|
|
477
492
|
signal.throwIfAborted();
|
|
478
493
|
return refused(`Host shell sandbox could not establish confinement: ${hostShellDiagnostic(error)} — nothing was executed`);
|
|
479
494
|
}
|
|
480
|
-
if (confined.enforcement !== "full")
|
|
495
|
+
if (confined.enforcement !== "full") {
|
|
496
|
+
if (request.shell.dialect === "bash") return refused("Host shell sandbox enforcement is not full — nothing was executed");
|
|
497
|
+
if (confined.enforcement !== "partial") return refused("Host shell sandbox enforcement is neither the official partial nor full result — nothing was executed");
|
|
498
|
+
}
|
|
481
499
|
return confined;
|
|
482
500
|
}
|
|
483
501
|
//#endregion
|
|
@@ -631,4 +649,4 @@ function installFocusSection(systemPrompt, turn) {
|
|
|
631
649
|
});
|
|
632
650
|
}
|
|
633
651
|
//#endregion
|
|
634
|
-
export { liveDisplayTurnPolicy as a,
|
|
652
|
+
export { liveDisplayTurnPolicy as a, hostShellDiagnostic as c, parseProgressUpdates as d, parseResponseStyle as f, installResponseStyleSection as i, OfficialWorkspaceSearchPool as l, installGitAttributionSection as n, HostShellExecutionVeto as o, isUserInvocableSkill as p, installProgressUpdatesSection as r, executeHostShellOnce as s, installFocusSection as t, parseGitAttributionMode as u };
|
|
@@ -1,55 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as isFocusDisplayPreset } from "./schema-t97l3aK8.mjs";
|
|
2
|
+
import { i as installedDshAnchor, n as assertDeclaredPeerDependency, o as readManifestObject, r as assertInstallClosure, t as assertDeclaredDependency } from "./installed-dsh-BjUiJSwR.mjs";
|
|
3
|
+
import { createRequire } from "node:module";
|
|
4
|
+
import { accessSync, closeSync, constants, mkdirSync, openSync, readdirSync, realpathSync, statSync, writeSync } from "node:fs";
|
|
2
5
|
import { homedir } from "node:os";
|
|
3
|
-
import { delimiter, join, posix, win32 } from "node:path";
|
|
6
|
+
import { delimiter, dirname, isAbsolute, join, posix, win32 } from "node:path";
|
|
4
7
|
import { isUserInvocable } from "@deepseek-ai/dsh-skill";
|
|
5
8
|
import { spawn } from "node:child_process";
|
|
9
|
+
import { pathToFileURL } from "node:url";
|
|
6
10
|
import { DEFAULT_FILE_SEARCH_EXCLUDED_DIRECTORIES, DEFAULT_FILE_SEARCH_MAX_ENTRIES, DEFAULT_FILE_SEARCH_MAX_RESULTS, WorkspaceFileSearch } from "@deepseek-ai/dsh-file-reference-local/search";
|
|
7
11
|
import { classifyRunnerFailure, isRunnerSpawnFailure, matchesSignature } from "@deepseek-ai/dsh-sandbox";
|
|
8
|
-
//#region src/domain/display/preset.ts
|
|
9
|
-
/** Whether a value is one of the complete display preset names. */
|
|
10
|
-
function isDisplayPreset(value) {
|
|
11
|
-
return value === "focus" || value === "compact" || value === "full";
|
|
12
|
-
}
|
|
13
|
-
/** Every preset whose projection exists in this build ships as available. */
|
|
14
|
-
function isDisplayPresetAvailable(preset) {
|
|
15
|
-
return preset === "focus" || preset === "compact" || preset === "full";
|
|
16
|
-
}
|
|
17
|
-
/** Whether a preset enables the model-facing Focus behavioral policy. The
|
|
18
|
-
* neutral behavioral answer is exactly the preset identity — it must never
|
|
19
|
-
* depend on the terminal disclosure policy. */
|
|
20
|
-
function isFocusDisplayPreset(preset) {
|
|
21
|
-
return preset === "focus";
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Resolve the canonical field before the legacy Focus field. Every recognized
|
|
25
|
-
* preset (Compact included) is canonical as of PR3 and is never rewritten; an
|
|
26
|
-
* unrecognized value falls back to Full.
|
|
27
|
-
*/
|
|
28
|
-
function resolveDisplayPreset(input) {
|
|
29
|
-
if (input.displayPreset !== void 0) {
|
|
30
|
-
if (isDisplayPreset(input.displayPreset)) return {
|
|
31
|
-
preset: input.displayPreset,
|
|
32
|
-
canonicalize: false,
|
|
33
|
-
source: "canonical"
|
|
34
|
-
};
|
|
35
|
-
return {
|
|
36
|
-
preset: "full",
|
|
37
|
-
canonicalize: true,
|
|
38
|
-
source: "invalid-canonical"
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
if (input.focusMode === "on") return {
|
|
42
|
-
preset: "focus",
|
|
43
|
-
canonicalize: true,
|
|
44
|
-
source: "legacy-focus"
|
|
45
|
-
};
|
|
46
|
-
return {
|
|
47
|
-
preset: "full",
|
|
48
|
-
canonicalize: true,
|
|
49
|
-
source: "legacy-full"
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
//#endregion
|
|
53
12
|
//#region src/domain/communication/policy.ts
|
|
54
13
|
/**
|
|
55
14
|
* Model-facing communication policy, independent of transcript presentation.
|
|
@@ -184,6 +143,124 @@ function safeErrorString(value) {
|
|
|
184
143
|
}
|
|
185
144
|
}
|
|
186
145
|
//#endregion
|
|
146
|
+
//#region src/runtime/process/diagnostics.ts
|
|
147
|
+
/**
|
|
148
|
+
* Structured process diagnostics for the TUI.
|
|
149
|
+
*
|
|
150
|
+
* The TUI cannot rely on `ctx.logger` for human-visible troubleshooting:
|
|
151
|
+
* no dsh server-side package registers a logger exporter, so those lines
|
|
152
|
+
* only fill cordis's in-memory buffer. This module owns a dedicated
|
|
153
|
+
* diagnostics channel instead — one line per event, written to stderr
|
|
154
|
+
* (warn/error by default, matching the legacy `[tui]` fd-2 lines) and to a
|
|
155
|
+
* log file (info by default) under `$DSH_HOME/logs/`.
|
|
156
|
+
*
|
|
157
|
+
* Configuration (env):
|
|
158
|
+
* - `DSH_PI_TUI_LOG` — log file path, or `off` to disable the file sink.
|
|
159
|
+
* - `DSH_PI_TUI_LOG_LEVEL` — one of debug/info/warn/error (default `info`).
|
|
160
|
+
*
|
|
161
|
+
* Writes are best-effort and never throw; a failed file sink is disabled
|
|
162
|
+
* silently so diagnostics can never take the TUI down.
|
|
163
|
+
* @module @xmoon76/dsh-pi-tui/runtime/process/diagnostics
|
|
164
|
+
*/
|
|
165
|
+
const LEVEL_RANK = {
|
|
166
|
+
debug: 0,
|
|
167
|
+
info: 1,
|
|
168
|
+
warn: 2,
|
|
169
|
+
error: 3
|
|
170
|
+
};
|
|
171
|
+
/** `2026-08-15T10:00:00.000+08:00` — local wall time with the zone offset. */
|
|
172
|
+
function formatDiagTime(date) {
|
|
173
|
+
const pad = (value, width = 2) => String(value).padStart(width, "0");
|
|
174
|
+
const offsetMinutes = -date.getTimezoneOffset();
|
|
175
|
+
const offset = `${offsetMinutes >= 0 ? "+" : "-"}${pad(Math.floor(Math.abs(offsetMinutes) / 60))}:${pad(Math.abs(offsetMinutes) % 60)}`;
|
|
176
|
+
return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}T${pad(date.getHours())}:${pad(date.getMinutes())}:${pad(date.getSeconds())}.${pad(date.getMilliseconds(), 3)}${offset}`;
|
|
177
|
+
}
|
|
178
|
+
/** Render a single field value for the `k=v` line format. */
|
|
179
|
+
function formatField(value) {
|
|
180
|
+
if (typeof value === "string") return value;
|
|
181
|
+
if (typeof value === "number" || typeof value === "boolean" || value === null || value === void 0) return String(value);
|
|
182
|
+
try {
|
|
183
|
+
return JSON.stringify(value) ?? String(value);
|
|
184
|
+
} catch {
|
|
185
|
+
return safeErrorMessage(value);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
/** The dsh home directory (`$DSH_HOME`, defaulting to `~/.dsh`). */
|
|
189
|
+
function dshHome(env) {
|
|
190
|
+
const explicit = env.DSH_HOME;
|
|
191
|
+
if (explicit !== void 0 && explicit !== "") return explicit;
|
|
192
|
+
return join(homedir(), ".dsh");
|
|
193
|
+
}
|
|
194
|
+
/** Build the default diagnostics log path: `$DSH_HOME/logs/pi-tui-<pid>.log`. */
|
|
195
|
+
function defaultDiagLogPath(env) {
|
|
196
|
+
const configured = env.DSH_PI_TUI_LOG;
|
|
197
|
+
if (configured === "off" || configured === "") return void 0;
|
|
198
|
+
if (configured !== void 0) return configured;
|
|
199
|
+
return join(dshHome(env), "logs", `pi-tui-${process.pid}.log`);
|
|
200
|
+
}
|
|
201
|
+
/** Resolve the effective file level from `DSH_PI_TUI_LOG_LEVEL`. */
|
|
202
|
+
function diagLevelFromEnv(env) {
|
|
203
|
+
const configured = env.DSH_PI_TUI_LOG_LEVEL;
|
|
204
|
+
if (configured === "debug" || configured === "info" || configured === "warn" || configured === "error") return configured;
|
|
205
|
+
return "info";
|
|
206
|
+
}
|
|
207
|
+
/** Create the diagnostics channel from the process environment. */
|
|
208
|
+
function diagFromEnv(env) {
|
|
209
|
+
return createDiag({
|
|
210
|
+
fileLevel: diagLevelFromEnv(env),
|
|
211
|
+
filePath: defaultDiagLogPath(env)
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
/** Create one diagnostics channel. Writes are best-effort, never throw. */
|
|
215
|
+
function createDiag(options = {}) {
|
|
216
|
+
const fileLevel = options.fileLevel ?? "info";
|
|
217
|
+
const stderrLevel = options.stderrLevel ?? "warn";
|
|
218
|
+
const now = options.now ?? (() => /* @__PURE__ */ new Date());
|
|
219
|
+
const sinks = [...options.sinks ?? []];
|
|
220
|
+
let fileHandle;
|
|
221
|
+
let fileDisabled = false;
|
|
222
|
+
if (options.filePath !== void 0) try {
|
|
223
|
+
const dir = options.filePath.slice(0, Math.max(options.filePath.lastIndexOf("/"), 0));
|
|
224
|
+
if (dir !== "") mkdirSync(dir, { recursive: true });
|
|
225
|
+
fileHandle = openSync(options.filePath, "a");
|
|
226
|
+
} catch {
|
|
227
|
+
fileDisabled = true;
|
|
228
|
+
}
|
|
229
|
+
const emit = (level, message, fields) => {
|
|
230
|
+
const stamp = formatDiagTime(now());
|
|
231
|
+
const suffix = fields === void 0 ? "" : ` ${Object.entries(fields).map(([key, value]) => `${key}=${formatField(value)}`).join(" ")}`;
|
|
232
|
+
const line = `[tui] ${stamp} ${level.toUpperCase()} ${message}${suffix}\n`;
|
|
233
|
+
for (const sink of sinks) try {
|
|
234
|
+
sink.write(line);
|
|
235
|
+
} catch {}
|
|
236
|
+
if (stderrLevel !== "off" && LEVEL_RANK[level] >= LEVEL_RANK[stderrLevel]) try {
|
|
237
|
+
writeSync(2, line);
|
|
238
|
+
} catch {}
|
|
239
|
+
if (fileHandle !== void 0 && !fileDisabled && LEVEL_RANK[level] >= LEVEL_RANK[fileLevel]) try {
|
|
240
|
+
writeSync(fileHandle, line);
|
|
241
|
+
} catch {
|
|
242
|
+
fileDisabled = true;
|
|
243
|
+
try {
|
|
244
|
+
writeSync(2, `[tui] ${formatDiagTime(now())} WARN diag file sink disabled\n`);
|
|
245
|
+
} catch {}
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
return {
|
|
249
|
+
debug: (message, fields) => emit("debug", message, fields),
|
|
250
|
+
info: (message, fields) => emit("info", message, fields),
|
|
251
|
+
warn: (message, fields) => emit("warn", message, fields),
|
|
252
|
+
error: (message, fields) => emit("error", message, fields),
|
|
253
|
+
dispose: () => {
|
|
254
|
+
if (fileHandle !== void 0) {
|
|
255
|
+
try {
|
|
256
|
+
closeSync(fileHandle);
|
|
257
|
+
} catch {}
|
|
258
|
+
fileHandle = void 0;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
//#endregion
|
|
187
264
|
//#region src/runtime/process/tasks.ts
|
|
188
265
|
/**
|
|
189
266
|
* Whether an error represents an abort/cancel rather than a real failure.
|
|
@@ -572,6 +649,50 @@ function joinRelativeScope(cwd, rawPath, windowsDialect, windowsHost) {
|
|
|
572
649
|
function isBareScopeForm(raw) {
|
|
573
650
|
return raw === "" || raw === "." || raw === ".." || raw === "./" || raw === "../" || raw === "~" || raw === "~/" || raw === "~\\" || raw === "/" || raw === ".\\" || raw === "..\\";
|
|
574
651
|
}
|
|
652
|
+
/** Whether a raw token names an unambiguous local Windows NTFS path.
|
|
653
|
+
* Drive-relative (`C:foo`), PowerShell provider/PSDrive-qualified (`HKLM:`,
|
|
654
|
+
* `Env:`) and UNC/network (`\\\\server\\share`) spellings are not the promised
|
|
655
|
+
* local path shape and are refused by the Windows literal-path completion
|
|
656
|
+
* route rather than guessed. A normal drive-absolute (`C:\\x`), rooted/relative
|
|
657
|
+
* (`\\x`, `sub\\x`, `.\\x`) or home token is admitted. */
|
|
658
|
+
const WINDOWS_UNC_PREFIX = /^[\\/]{2}/u;
|
|
659
|
+
const WINDOWS_DRIVE_RELATIVE = /^[A-Za-z]:(?![/\\])/u;
|
|
660
|
+
const WINDOWS_PROVIDER_PATH = /^[A-Za-z][A-Za-z0-9_-]+:/u;
|
|
661
|
+
function unsupportedWindowsPathToken(raw) {
|
|
662
|
+
if (raw === "") return false;
|
|
663
|
+
if (WINDOWS_UNC_PREFIX.test(raw)) return true;
|
|
664
|
+
if (WINDOWS_DRIVE_RELATIVE.test(raw)) return true;
|
|
665
|
+
return WINDOWS_PROVIDER_PATH.test(raw);
|
|
666
|
+
}
|
|
667
|
+
/**
|
|
668
|
+
* Turn one Windows Host literal token into the token the path query resolves.
|
|
669
|
+
* Only the promised local NTFS shapes reach the query; an unambiguous
|
|
670
|
+
* drive-relative (`C:foo`), PowerShell provider/PSDrive-qualified (`HKLM:`,
|
|
671
|
+
* `Env:`) or UNC/network spelling is a truthful unavailable. An UNQUOTED home
|
|
672
|
+
* token (`~`, `~/x`, `~\x`) is expanded against the injected home directory and
|
|
673
|
+
* returned ABSOLUTE, so accepting it as a PowerShell single-quoted literal
|
|
674
|
+
* cannot change the expansion. A quoted `~` never reaches this function as a
|
|
675
|
+
* home token (the Client sends the literal `./~...` form instead).
|
|
676
|
+
* PURE: both the home directory and the host platform are explicit facts.
|
|
677
|
+
* @param raw - the raw token as typed (quotes already handled by the caller).
|
|
678
|
+
* @param homeDir - the locality owner's home directory fact.
|
|
679
|
+
*/
|
|
680
|
+
function resolveWindowsHostPrefix(raw, homeDir) {
|
|
681
|
+
if (unsupportedWindowsPathToken(raw)) return {
|
|
682
|
+
kind: "unavailable",
|
|
683
|
+
reason: "the Windows path form is not an unambiguous local NTFS path (drive-relative, provider or UNC spellings are not supported)"
|
|
684
|
+
};
|
|
685
|
+
if (raw !== "~" && !raw.startsWith("~/") && !raw.startsWith("~\\")) return {
|
|
686
|
+
kind: "ok",
|
|
687
|
+
prefix: raw
|
|
688
|
+
};
|
|
689
|
+
const tail = raw === "~" ? "" : raw.slice(2);
|
|
690
|
+
const joined = tail === "" ? homeDir : win32.join(homeDir, tail);
|
|
691
|
+
return {
|
|
692
|
+
kind: "ok",
|
|
693
|
+
prefix: raw === "~" || tail === "" || tail.endsWith("/") || tail.endsWith("\\") ? `${joined.replace(/[\\/]+$/u, "")}\\` : joined
|
|
694
|
+
};
|
|
695
|
+
}
|
|
575
696
|
/**
|
|
576
697
|
* Resolve ONE raw completion token into the pure path query.
|
|
577
698
|
* @param raw - the token as typed (quotes stripped; leading separator
|
|
@@ -1647,12 +1768,19 @@ async function listPiTuiHostFileReferences(agent, query, signal, deps) {
|
|
|
1647
1768
|
* The one Host user-shell execution core shared by the Direct adapter and the
|
|
1648
1769
|
* authenticated split-Host service.
|
|
1649
1770
|
*
|
|
1650
|
-
* Both policies run the raw command through
|
|
1651
|
-
*
|
|
1771
|
+
* Both policies run the raw command through one official host local shell
|
|
1772
|
+
* dialect selected by the caller (no wrapper, relay or shell-flag translation):
|
|
1773
|
+
* - a POSIX Host uses `['bash', '-c', command]`;
|
|
1774
|
+
* - a Windows Host uses the exact live official `pwshPath` with the official
|
|
1775
|
+
* `-NoLogo -NoProfile -NonInteractive -Command <preamble><command>` argv and
|
|
1776
|
+
* the official environment overrides (one argv element carries the command,
|
|
1777
|
+
* so no second parse layer exists).
|
|
1652
1778
|
* - `bypass` spawns that argv directly;
|
|
1653
1779
|
* - `sandbox` resolves the EXACT Session policy and calls the installed
|
|
1654
|
-
* official `ctx.sandbox.confine` exactly once, requires
|
|
1655
|
-
*
|
|
1780
|
+
* official `ctx.sandbox.confine` exactly once, requires the enforcement the
|
|
1781
|
+
* selected official backend actually provides (`full` on POSIX; the official
|
|
1782
|
+
* Windows ACL backend's `partial` or `full`), and spawns the EXACT argv
|
|
1783
|
+
* returned by that one call.
|
|
1656
1784
|
*
|
|
1657
1785
|
* Output is bounded by the subprocess collect/spill dispositions and read only
|
|
1658
1786
|
* after `done` AND `waitForExit` proved the managed range empty. Cancellation
|
|
@@ -1720,11 +1848,18 @@ function collectedOutput(reader) {
|
|
|
1720
1848
|
* @returns the bounded semantic result or a truthful refusal/failure.
|
|
1721
1849
|
*/
|
|
1722
1850
|
async function executeHostShellOnce(request) {
|
|
1723
|
-
const { command, cwd, policy, signal, subprocess } = request;
|
|
1724
|
-
const rawArgv = [
|
|
1851
|
+
const { command, cwd, policy, signal, subprocess, shell } = request;
|
|
1852
|
+
const rawArgv = shell.dialect === "bash" ? [
|
|
1725
1853
|
"bash",
|
|
1726
1854
|
"-c",
|
|
1727
1855
|
command
|
|
1856
|
+
] : [
|
|
1857
|
+
shell.executable,
|
|
1858
|
+
"-NoLogo",
|
|
1859
|
+
"-NoProfile",
|
|
1860
|
+
"-NonInteractive",
|
|
1861
|
+
"-Command",
|
|
1862
|
+
`${shell.encodingPreamble}${command}`
|
|
1728
1863
|
];
|
|
1729
1864
|
let confined;
|
|
1730
1865
|
if (policy === "sandbox") {
|
|
@@ -1748,7 +1883,8 @@ async function executeHostShellOnce(request) {
|
|
|
1748
1883
|
}
|
|
1749
1884
|
},
|
|
1750
1885
|
graceMs: HOST_USER_SHELL_GRACE_MS,
|
|
1751
|
-
signal
|
|
1886
|
+
signal,
|
|
1887
|
+
...shell.dialect === "pwsh" ? { env: shell.envOverrides } : {}
|
|
1752
1888
|
};
|
|
1753
1889
|
request.beforeSpawn?.();
|
|
1754
1890
|
signal.throwIfAborted();
|
|
@@ -1833,10 +1969,160 @@ async function confineSandbox(rawArgv, request) {
|
|
|
1833
1969
|
signal.throwIfAborted();
|
|
1834
1970
|
return refused(`Host shell sandbox could not establish confinement: ${hostShellDiagnostic(error)} — nothing was executed`);
|
|
1835
1971
|
}
|
|
1836
|
-
if (confined.enforcement !== "full")
|
|
1972
|
+
if (confined.enforcement !== "full") {
|
|
1973
|
+
if (request.shell.dialect === "bash") return refused("Host shell sandbox enforcement is not full — nothing was executed");
|
|
1974
|
+
if (confined.enforcement !== "partial") return refused("Host shell sandbox enforcement is neither the official partial nor full result — nothing was executed");
|
|
1975
|
+
}
|
|
1837
1976
|
return confined;
|
|
1838
1977
|
}
|
|
1839
1978
|
//#endregion
|
|
1979
|
+
//#region src/runtime/host-shell-capability.ts
|
|
1980
|
+
/**
|
|
1981
|
+
* The Windows Host's official PowerShell capability: the live installed
|
|
1982
|
+
* `@deepseek-ai/dsh-pwsh-local` public module constants plus the ONE live
|
|
1983
|
+
* `ctx.shell.pwshPath` getter read per attempt.
|
|
1984
|
+
*
|
|
1985
|
+
* Nothing here is a second executor, resolver or configuration authority. The
|
|
1986
|
+
* module is located through the running official DSH installation only: the
|
|
1987
|
+
* real DSH anchor (an explicit profile install anchor, the Direct launcher, or
|
|
1988
|
+
* the launcher-verified Split anchor) resolves the official
|
|
1989
|
+
* `@deepseek-ai/dsh-pwsh-sandbox` manifest, which declares `dsh-pwsh-local` as
|
|
1990
|
+
* a peer; the public ESM entry is resolved from that sandbox manifest's own
|
|
1991
|
+
* module context and proved inside the same installed closure. The immutable
|
|
1992
|
+
* module (its public constants) is cached by install identity; the service and
|
|
1993
|
+
* its `pwshPath` value are never cached.
|
|
1994
|
+
*
|
|
1995
|
+
* POSIX hosts never load this module: the shared execution core keeps the
|
|
1996
|
+
* existing Bash dialect.
|
|
1997
|
+
* @module @xmoon76/dsh-pi-tui/runtime/host-shell-capability
|
|
1998
|
+
*/
|
|
1999
|
+
const loadedModules = /* @__PURE__ */ new Map();
|
|
2000
|
+
/**
|
|
2001
|
+
* Resolve the installed official pwsh-local public module once per install
|
|
2002
|
+
* identity. A failed load is not cached: a later attempt after the installation
|
|
2003
|
+
* is repaired must be able to load it.
|
|
2004
|
+
* @param explicitAnchor - the official profile install anchor when the caller
|
|
2005
|
+
* already holds one (Direct/Split-Host composition); otherwise the
|
|
2006
|
+
* launcher/environment anchor is resolved.
|
|
2007
|
+
*/
|
|
2008
|
+
async function resolvePwshHostShellModule(explicitAnchor) {
|
|
2009
|
+
const anchor = installedDshAnchor(explicitAnchor);
|
|
2010
|
+
if (anchor === void 0) throw new Error("the installed @deepseek-ai/dsh anchor is unavailable");
|
|
2011
|
+
const cached = loadedModules.get(anchor);
|
|
2012
|
+
if (cached !== void 0) return cached;
|
|
2013
|
+
const loading = loadPwshHostShellModule(anchor);
|
|
2014
|
+
loadedModules.set(anchor, loading);
|
|
2015
|
+
try {
|
|
2016
|
+
return await loading;
|
|
2017
|
+
} catch (error) {
|
|
2018
|
+
loadedModules.delete(anchor);
|
|
2019
|
+
throw error;
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
2022
|
+
async function loadPwshHostShellModule(anchor) {
|
|
2023
|
+
const anchorManifest = readManifestObject(anchor);
|
|
2024
|
+
if (anchorManifest?.name !== "@deepseek-ai/dsh") throw new Error("the DSH anchor is not an installed @deepseek-ai/dsh manifest");
|
|
2025
|
+
assertDeclaredDependency(anchorManifest, "@deepseek-ai/dsh-pwsh-sandbox", "@deepseek-ai/dsh");
|
|
2026
|
+
const anchorRequire = createRequire(anchor);
|
|
2027
|
+
const sandboxManifestPath = realpathSync(anchorRequire.resolve("@deepseek-ai/dsh-pwsh-sandbox/package.json"));
|
|
2028
|
+
const sandboxManifest = readManifestObject(sandboxManifestPath);
|
|
2029
|
+
if (sandboxManifest?.name !== "@deepseek-ai/dsh-pwsh-sandbox") throw new Error("the resolved sandbox manifest is not @deepseek-ai/dsh-pwsh-sandbox");
|
|
2030
|
+
assertDeclaredPeerDependency(sandboxManifest, "@deepseek-ai/dsh-pwsh-local", "@deepseek-ai/dsh-pwsh-sandbox");
|
|
2031
|
+
const sandboxRequire = createRequire(sandboxManifestPath);
|
|
2032
|
+
const localEntry = realpathSync(sandboxRequire.resolve("@deepseek-ai/dsh-pwsh-local"));
|
|
2033
|
+
assertInstallClosure(dirname(anchor), dirname(localEntry), "@deepseek-ai/dsh-pwsh-local");
|
|
2034
|
+
const imported = await import(pathToFileURL(localEntry).href);
|
|
2035
|
+
if (typeof imported.ENCODING_PREAMBLE !== "string" || imported.ENCODING_PREAMBLE === "") throw new Error("the installed pwsh-local module does not export ENCODING_PREAMBLE");
|
|
2036
|
+
const overrides = imported.ENV_OVERRIDES;
|
|
2037
|
+
if (overrides === null || typeof overrides !== "object" || Array.isArray(overrides)) throw new Error("the installed pwsh-local module does not export ENV_OVERRIDES");
|
|
2038
|
+
const envOverrides = {};
|
|
2039
|
+
for (const [name, value] of Object.entries(overrides)) {
|
|
2040
|
+
if (typeof value !== "string") throw new Error(`the installed pwsh-local ENV_OVERRIDES entry ${name} is not a string`);
|
|
2041
|
+
envOverrides[name] = value;
|
|
2042
|
+
}
|
|
2043
|
+
return {
|
|
2044
|
+
encodingPreamble: imported.ENCODING_PREAMBLE,
|
|
2045
|
+
envOverrides
|
|
2046
|
+
};
|
|
2047
|
+
}
|
|
2048
|
+
/**
|
|
2049
|
+
* Build the Host-local shell inputs for ONE attempt. POSIX keeps the existing
|
|
2050
|
+
* Bash dialect without touching the Windows module. On Windows the live
|
|
2051
|
+
* official service must be mounted and expose its executable getter; the
|
|
2052
|
+
* executable is read exactly once for this attempt, then the immutable module
|
|
2053
|
+
* constants are loaded. A missing capability is an explicit undefined, never a
|
|
2054
|
+
* fallback to a bare `pwsh`, `cmd` or another executor.
|
|
2055
|
+
*/
|
|
2056
|
+
async function hostShellLocalForAttempt(options) {
|
|
2057
|
+
if (options.platform !== "win32") return { dialect: "bash" };
|
|
2058
|
+
const executable = options.shell?.pwshPath;
|
|
2059
|
+
if (typeof executable !== "string" || executable === "") return void 0;
|
|
2060
|
+
const capability = await resolvePwshHostShellModule(options.anchor);
|
|
2061
|
+
return {
|
|
2062
|
+
dialect: "pwsh",
|
|
2063
|
+
executable,
|
|
2064
|
+
encodingPreamble: capability.encodingPreamble,
|
|
2065
|
+
envOverrides: capability.envOverrides
|
|
2066
|
+
};
|
|
2067
|
+
}
|
|
2068
|
+
//#endregion
|
|
2069
|
+
//#region src/runtime/remote/pi-tui-host-user-shell-host-bridge.ts
|
|
2070
|
+
/**
|
|
2071
|
+
* The ONE Host path completion bridge: it resolves the user's literal path
|
|
2072
|
+
* token through the neutral domain algebra and enumerates the HOST filesystem.
|
|
2073
|
+
* It is shared by the split Host and the Direct Windows Host adapter; despite
|
|
2074
|
+
* living beside the Remote Host feature modules it imports no Remote
|
|
2075
|
+
* composition, transport or Client capability.
|
|
2076
|
+
* @module @xmoon76/dsh-pi-tui/runtime/remote/pi-tui-host-user-shell-host-bridge
|
|
2077
|
+
*/
|
|
2078
|
+
const MAX_SHELL_CANDIDATES = 50;
|
|
2079
|
+
function isReadableDirectory(path) {
|
|
2080
|
+
if (!isAbsolute(path)) return false;
|
|
2081
|
+
try {
|
|
2082
|
+
return statSync(path).isDirectory() && accessSync(path, constants.R_OK | constants.X_OK) === void 0;
|
|
2083
|
+
} catch {
|
|
2084
|
+
return false;
|
|
2085
|
+
}
|
|
2086
|
+
}
|
|
2087
|
+
function displayValue(path, kind, separator) {
|
|
2088
|
+
return kind === "directory" ? `${path}${separator}` : path;
|
|
2089
|
+
}
|
|
2090
|
+
/** Host filesystem adapter for the shared path query/ranking policy. */
|
|
2091
|
+
function createHostShellPathCompletionBridge(options = {}) {
|
|
2092
|
+
const driver = options.driver ?? new DirectHostDiscoveryDriver();
|
|
2093
|
+
const environment = options.environment ?? hostPathQueryEnvironment();
|
|
2094
|
+
return { async complete(cwd, prefix, signal) {
|
|
2095
|
+
signal.throwIfAborted();
|
|
2096
|
+
let rawPrefix = prefix;
|
|
2097
|
+
if (environment.windowsHost) {
|
|
2098
|
+
const admitted = resolveWindowsHostPrefix(prefix, environment.homeDir);
|
|
2099
|
+
if (admitted.kind === "unavailable") return admitted;
|
|
2100
|
+
rawPrefix = admitted.prefix;
|
|
2101
|
+
}
|
|
2102
|
+
const query = resolvePathQuery(rawPrefix, cwd, environment);
|
|
2103
|
+
if (!isReadableDirectory(query.searchBase)) return {
|
|
2104
|
+
kind: "unavailable",
|
|
2105
|
+
reason: "the Host path scope is unavailable"
|
|
2106
|
+
};
|
|
2107
|
+
try {
|
|
2108
|
+
const discovered = await discoverForQuery(query, driver, signal);
|
|
2109
|
+
signal.throwIfAborted();
|
|
2110
|
+
const ranked = rankPathCandidates(discovered.map((candidate) => reattachDisplayBase(candidate, query)), query.searchTerm);
|
|
2111
|
+
const separator = separatorOfRaw(rawPrefix, query.winAbsolute || rawPrefix.includes("\\"));
|
|
2112
|
+
return {
|
|
2113
|
+
kind: "ok",
|
|
2114
|
+
candidates: ranked.slice(0, MAX_SHELL_CANDIDATES).map((candidate) => displayValue(candidate.path, candidate.kind, separator))
|
|
2115
|
+
};
|
|
2116
|
+
} catch (error) {
|
|
2117
|
+
signal.throwIfAborted();
|
|
2118
|
+
return {
|
|
2119
|
+
kind: "unavailable",
|
|
2120
|
+
reason: error instanceof Error ? error.message : String(error)
|
|
2121
|
+
};
|
|
2122
|
+
}
|
|
2123
|
+
} };
|
|
2124
|
+
}
|
|
2125
|
+
//#endregion
|
|
1840
2126
|
//#region src/app/agent/turn-policy.ts
|
|
1841
2127
|
/** The Turn number of one boundary event (`turn/start`/`turn/end` data). */
|
|
1842
2128
|
function turnNumberOf(event) {
|
|
@@ -2229,4 +2515,4 @@ function installTuiPromptSections(input) {
|
|
|
2229
2515
|
];
|
|
2230
2516
|
}
|
|
2231
2517
|
//#endregion
|
|
2232
|
-
export {
|
|
2518
|
+
export { parseProgressUpdates as $, parseGitAttributionMode as A, serializeTuiSettingsMutation as B, resolveFdPath as C, MAX_HOST_USER_SHELL_RESULT_BYTES as D, MAX_HOST_USER_SHELL_MESSAGE_BYTES as E, rankPathCandidates as F, isCancellation as G, projectedWorkingDirectory as H, reattachDisplayBase as I, runOwned as J, observeSettled as K, resolvePathQuery as L, discoverForQuery as M, escapeFinderRegex as N, MAX_HOST_USER_SHELL_SPILL_PATH_BYTES as O, createBoundedFinderCandidateCollector as P, safeErrorString as Q, separatorOfRaw as R, hostPathQueryEnvironment as S, HostUserShellSandboxRunnerError as T, isUserInvocableSkill as U, effectiveAgentCwd as V, cancellationError as W, dshHome as X, diagFromEnv as Y, safeErrorMessage as Z, isExplicitHostFileQuery as _, installTuiPromptSections as a, OfficialWorkspaceSearchPool as b, PI_TUI_TERMINAL_PROGRESS_WATCH as c, createHostShellPathCompletionBridge as d, parseResponseStyle as et, hostShellLocalForAttempt as f, hostShellDiagnostic as g, executeHostShellOnce as h, installResponseStyleSection as i, createFinderRecordStream as j, MAX_HOST_USER_SHELL_STREAM_BYTES as k, createTerminalProgressInterval as l, HostShellExecutionVeto as m, installGitAttributionSection as n, liveDisplayTurnPolicy as o, HOST_USER_SHELL_GRACE_MS as p, runDetached as q, installProgressUpdatesSection as r, PI_TUI_TERMINAL_PROGRESS_NAMESPACE as s, installFocusSection as t, installTuiPromptTurnLatch as u, listPiTuiExplicitHostFileReferences as v, HostUserShellOutcomeUnknownError as w, DirectHostDiscoveryDriver as x, listPiTuiHostFileReferences as y, CANONICAL_TUI_SETTINGS_NS as z };
|