@loucompanion/forge-bridge 0.1.3-dev.fbe15023cdfe → 0.1.4-dev.03584818ede5
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.md +146 -5
- package/dist/bridge/bridge-chat-provider-command.d.ts +16 -0
- package/dist/bridge/bridge-chat-provider-command.js +137 -0
- package/dist/bridge/bridge-chat.types.d.ts +121 -0
- package/dist/bridge/bridge-chat.types.js +416 -0
- package/dist/bridge/bridge.base.d.ts +13 -1
- package/dist/bridge/bridge.service.d.ts +155 -4
- package/dist/bridge/bridge.service.js +1805 -155
- package/dist/bridge/bridge.types.d.ts +68 -1
- package/dist/bridge/dispatch-result-outbox.d.ts +35 -0
- package/dist/bridge/dispatch-result-outbox.js +87 -0
- package/dist/bridge/dispatch-result-worker.d.ts +2 -0
- package/dist/bridge/dispatch-result-worker.js +122 -0
- package/dist/bridge/internals.d.ts +2 -0
- package/dist/bridge/internals.js +1 -0
- package/dist/bridge/local-yield-flag.d.ts +6 -0
- package/dist/bridge/local-yield-flag.js +34 -0
- package/dist/bridge/readiness-result-outbox.d.ts +21 -0
- package/dist/bridge/readiness-result-outbox.js +54 -0
- package/dist/bridge/readiness-result-worker.d.ts +2 -0
- package/dist/bridge/readiness-result-worker.js +121 -0
- package/dist/bridge/runner-host-capabilities.d.ts +20 -0
- package/dist/bridge/runner-host-capabilities.js +110 -0
- package/dist/bridge/test-postgres-capability.d.ts +14 -0
- package/dist/bridge/test-postgres-capability.js +120 -0
- package/dist/cleanup/cleanup.service.d.ts +10 -0
- package/dist/cleanup/cleanup.service.js +128 -104
- package/dist/cleanup/cleanup.types.d.ts +4 -0
- package/dist/cleanup/forge-owned-paths.d.ts +9 -0
- package/dist/cleanup/forge-owned-paths.js +53 -0
- package/dist/cleanup/host-runtime-ledger.d.ts +5 -0
- package/dist/cleanup/host-runtime-ledger.js +109 -0
- package/dist/cleanup/managed-branch-sweep.d.ts +27 -0
- package/dist/cleanup/managed-branch-sweep.js +111 -0
- package/dist/cli/cli.help.js +22 -4
- package/dist/cli/cli.service.d.ts +30 -6
- package/dist/cli/cli.service.js +216 -31
- package/dist/cli/local-config.d.ts +5 -0
- package/dist/cli/local-config.js +30 -4
- package/dist/runtime/aspnet-runtime-prebuild.d.ts +36 -0
- package/dist/runtime/aspnet-runtime-prebuild.js +429 -0
- package/dist/runtime/attempt-database-broker.d.ts +89 -0
- package/dist/runtime/attempt-database-broker.js +390 -0
- package/dist/runtime/attempt-node-runtime-launcher.d.ts +2 -1
- package/dist/runtime/attempt-node-runtime-launcher.js +57 -18
- package/dist/runtime/attempt-path-operation.d.ts +21 -0
- package/dist/runtime/attempt-path-operation.js +94 -0
- package/dist/runtime/attempt-private-directory.d.ts +6 -0
- package/dist/runtime/attempt-private-directory.js +54 -0
- package/dist/runtime/attempt-process-supervisor.d.ts +35 -0
- package/dist/runtime/attempt-process-supervisor.js +144 -23
- package/dist/runtime/canonical-source-file.d.ts +3 -0
- package/dist/runtime/canonical-source-file.js +54 -0
- package/dist/runtime/docker-engine-probe.d.ts +90 -0
- package/dist/runtime/docker-engine-probe.js +333 -0
- package/dist/runtime/generated-output-reset.d.ts +10 -0
- package/dist/runtime/generated-output-reset.js +62 -8
- package/dist/runtime/host-database-capability-boundary.d.ts +16 -0
- package/dist/runtime/host-database-capability-boundary.js +63 -0
- package/dist/runtime/host-diagnostics.d.ts +11 -0
- package/dist/runtime/host-diagnostics.js +192 -0
- package/dist/runtime/host-execution-root.d.ts +4 -0
- package/dist/runtime/host-execution-root.js +39 -0
- package/dist/runtime/host-facts.d.ts +36 -0
- package/dist/runtime/host-facts.js +95 -0
- package/dist/runtime/host-listener-inspector.d.ts +8 -1
- package/dist/runtime/host-listener-inspector.js +121 -60
- package/dist/runtime/host-load-admission.d.ts +67 -0
- package/dist/runtime/host-load-admission.js +99 -0
- package/dist/runtime/host-load-child-environment.d.ts +27 -0
- package/dist/runtime/host-load-child-environment.js +76 -0
- package/dist/runtime/host-load-forge-cgroups.d.ts +49 -0
- package/dist/runtime/host-load-forge-cgroups.js +140 -0
- package/dist/runtime/host-load-governor-config.d.ts +52 -0
- package/dist/runtime/host-load-governor-config.js +83 -0
- package/dist/runtime/host-load-governor.d.ts +184 -0
- package/dist/runtime/host-load-governor.js +632 -0
- package/dist/runtime/host-load-ledger-lock.d.ts +69 -0
- package/dist/runtime/host-load-ledger-lock.js +185 -0
- package/dist/runtime/host-load-runtime-settings.d.ts +25 -0
- package/dist/runtime/host-load-runtime-settings.js +78 -0
- package/dist/runtime/host-load-sampler.d.ts +149 -0
- package/dist/runtime/host-load-sampler.js +291 -0
- package/dist/runtime/host-load-step-class.d.ts +70 -0
- package/dist/runtime/host-load-step-class.js +161 -0
- package/dist/runtime/host-load-step-reaper.d.ts +27 -0
- package/dist/runtime/host-load-step-reaper.js +95 -0
- package/dist/runtime/host-load-step-run.d.ts +73 -0
- package/dist/runtime/host-load-step-run.js +102 -0
- package/dist/runtime/host-load-test-slot.d.ts +43 -0
- package/dist/runtime/host-load-test-slot.js +81 -0
- package/dist/runtime/host-load-token-ledger.d.ts +200 -0
- package/dist/runtime/host-load-token-ledger.js +453 -0
- package/dist/runtime/host-load-windows-cpu.d.ts +34 -0
- package/dist/runtime/host-load-windows-cpu.js +85 -0
- package/dist/runtime/host-pressure-stall.d.ts +61 -0
- package/dist/runtime/host-pressure-stall.js +168 -0
- package/dist/runtime/host-runtime-contract.d.ts +16 -1
- package/dist/runtime/host-runtime-contract.js +174 -56
- package/dist/runtime/host-runtime-lease.d.ts +163 -9
- package/dist/runtime/host-runtime-lease.js +1464 -121
- package/dist/runtime/host-runtime-promotion.d.ts +35 -3
- package/dist/runtime/host-runtime-promotion.js +107 -12
- package/dist/runtime/host-runtime-requirements-check.d.ts +17 -0
- package/dist/runtime/host-runtime-requirements-check.js +29 -0
- package/dist/runtime/host-runtime-requirements.d.ts +36 -0
- package/dist/runtime/host-runtime-requirements.js +117 -0
- package/dist/runtime/managed-command-teardown.d.ts +62 -0
- package/dist/runtime/managed-command-teardown.js +607 -0
- package/dist/runtime/memory-capacity.d.ts +70 -0
- package/dist/runtime/memory-capacity.js +123 -0
- package/dist/runtime/native-test-postgres-fallback.d.ts +25 -0
- package/dist/runtime/native-test-postgres-fallback.js +91 -0
- package/dist/runtime/node-host-runtime-adapter.d.ts +3 -0
- package/dist/runtime/node-host-runtime-adapter.js +29 -11
- package/dist/runtime/pinned-directory-process.d.ts +9 -0
- package/dist/runtime/pinned-directory-process.js +61 -0
- package/dist/runtime/pinned-source-directory.d.ts +17 -0
- package/dist/runtime/pinned-source-directory.js +94 -0
- package/dist/runtime/playwright-browser-cache.d.ts +39 -0
- package/dist/runtime/playwright-browser-cache.js +227 -0
- package/dist/runtime/playwright-host-runtime-adapter.d.ts +19 -0
- package/dist/runtime/playwright-host-runtime-adapter.js +113 -59
- package/dist/runtime/prepared-runtime-identity.d.ts +6 -0
- package/dist/runtime/prepared-runtime-identity.js +218 -0
- package/dist/runtime/prepared-runtime-readiness.d.ts +30 -0
- package/dist/runtime/prepared-runtime-readiness.js +285 -0
- package/dist/runtime/runner-settings.d.ts +100 -0
- package/dist/runtime/runner-settings.js +214 -0
- package/dist/runtime/runtime-isolation-lease.js +4 -1
- package/dist/runtime/workspace-resource-estimator.d.ts +17 -0
- package/dist/runtime/workspace-resource-estimator.js +174 -0
- package/dist/sandbox/host-capacity-broker.d.ts +113 -0
- package/dist/sandbox/host-capacity-broker.js +334 -0
- package/dist/sandbox/preflight.d.ts +31 -1
- package/dist/sandbox/preflight.js +237 -51
- package/dist/sandbox/repository-lock.d.ts +2 -1
- package/dist/sandbox/repository-lock.js +19 -9
- package/dist/sandbox/runtime.d.ts +16 -2
- package/dist/sandbox/runtime.js +182 -109
- package/dist/sandbox/sandbox-cgroups.d.ts +14 -0
- package/dist/sandbox/sandbox-cgroups.js +42 -0
- package/dist/sandbox/sandbox.types.d.ts +7 -0
- package/dist/sandbox/workspace.service.js +2 -0
- package/dist/session/architect-waits.d.ts +2 -0
- package/dist/session/architect-waits.js +138 -0
- package/dist/session/managed-attempt-tools.d.ts +44 -1
- package/dist/session/managed-attempt-tools.js +816 -46
- package/dist/session/managed-build-coordinator.d.ts +5 -0
- package/dist/session/managed-build-coordinator.js +109 -0
- package/dist/session/managed-build-receipt.d.ts +21 -0
- package/dist/session/managed-build-receipt.js +337 -0
- package/dist/session/managed-command-host-load.d.ts +47 -0
- package/dist/session/managed-command-host-load.js +83 -0
- package/dist/session/managed-verification-timeouts.d.ts +8 -0
- package/dist/session/managed-verification-timeouts.js +17 -0
- package/dist/session/mcp-argument-coercion.d.ts +23 -0
- package/dist/session/mcp-argument-coercion.js +121 -0
- package/dist/session/phase-completion.artifacts.d.ts +24 -0
- package/dist/session/phase-completion.artifacts.js +319 -44
- package/dist/session/phase-completion.command-validation.d.ts +7 -0
- package/dist/session/phase-completion.command-validation.js +77 -0
- package/dist/session/phase-completion.d.ts +15 -1
- package/dist/session/phase-completion.helpers.d.ts +5 -0
- package/dist/session/phase-completion.helpers.js +43 -19
- package/dist/session/phase-completion.js +18 -3
- package/dist/session/phase-completion.prompts.js +22 -18
- package/dist/session/phase-completion.runtime.d.ts +6 -2
- package/dist/session/phase-completion.runtime.js +191 -47
- package/dist/session/phase-completion.schema-parts.d.ts +19 -0
- package/dist/session/phase-completion.schema-parts.js +188 -0
- package/dist/session/phase-completion.schemas.d.ts +3 -3
- package/dist/session/phase-completion.schemas.js +250 -226
- package/dist/session/phase-completion.validation.d.ts +3 -3
- package/dist/session/phase-completion.validation.js +135 -89
- package/dist/session/pre-publication-host-load.d.ts +27 -0
- package/dist/session/pre-publication-host-load.js +111 -0
- package/dist/session/pre-publication-pass.d.ts +61 -0
- package/dist/session/pre-publication-pass.js +148 -0
- package/dist/session/pre-publication-process.d.ts +23 -0
- package/dist/session/pre-publication-process.js +109 -0
- package/dist/session/pre-publication-skipped-tests.d.ts +21 -0
- package/dist/session/pre-publication-skipped-tests.js +109 -0
- package/dist/session/pre-publication-step-execution.d.ts +11 -0
- package/dist/session/pre-publication-step-execution.js +49 -0
- package/dist/session/pre-publication-validation.d.ts +87 -0
- package/dist/session/pre-publication-validation.js +668 -0
- package/dist/session/provider-cli/bridge-cli.conformance-fixtures.d.ts +72 -0
- package/dist/session/provider-cli/bridge-cli.conformance-fixtures.js +462 -0
- package/dist/session/provider-cli/ci-repair-readiness.d.ts +8 -0
- package/dist/session/provider-cli/ci-repair-readiness.js +23 -3
- package/dist/session/provider-cli/claude-background-work.d.ts +66 -0
- package/dist/session/provider-cli/claude-background-work.js +180 -0
- package/dist/session/provider-cli/pre-publication-repair.d.ts +40 -0
- package/dist/session/provider-cli/pre-publication-repair.js +243 -0
- package/dist/session/provider-cli/provider-cli.artifacts.d.ts +6 -3
- package/dist/session/provider-cli/provider-cli.artifacts.js +62 -22
- package/dist/session/provider-cli/provider-cli.child-environment.d.ts +7 -0
- package/dist/session/provider-cli/provider-cli.child-environment.js +73 -0
- package/dist/session/provider-cli/provider-cli.codex-models-cache.d.ts +3 -0
- package/dist/session/provider-cli/provider-cli.codex-models-cache.js +37 -0
- package/dist/session/provider-cli/provider-cli.deterministic.js +34 -2
- package/dist/session/provider-cli/provider-cli.merge-integrity.d.ts +89 -0
- package/dist/session/provider-cli/provider-cli.merge-integrity.js +310 -0
- package/dist/session/provider-cli/provider-cli.process.d.ts +92 -14
- package/dist/session/provider-cli/provider-cli.process.js +583 -210
- package/dist/session/provider-cli/provider-cli.prompts.d.ts +12 -0
- package/dist/session/provider-cli/provider-cli.prompts.js +200 -25
- package/dist/session/provider-cli/provider-cli.repair-epoch.d.ts +6 -0
- package/dist/session/provider-cli/provider-cli.repair-epoch.js +11 -0
- package/dist/session/provider-cli/provider-cli.runtime.d.ts +14 -1
- package/dist/session/provider-cli/provider-cli.runtime.js +61 -3
- package/dist/session/provider-cli/provider-cli.service.d.ts +33 -5
- package/dist/session/provider-cli/provider-cli.service.js +819 -84
- package/dist/session/provider-cli/provider-cli.types.d.ts +32 -0
- package/dist/session/provider-cli/provider-cli.windows-environment.d.ts +10 -0
- package/dist/session/provider-cli/provider-cli.windows-environment.js +151 -0
- package/dist/session/provider-cli/provider-in-flight-work.d.ts +10 -0
- package/dist/session/provider-cli/provider-in-flight-work.js +92 -0
- package/dist/session/provider-cli/provider-output-pipes.d.ts +30 -0
- package/dist/session/provider-cli/provider-output-pipes.js +67 -0
- package/dist/session/provider-cli/provider-output-state.d.ts +18 -0
- package/dist/session/provider-cli/provider-output-state.js +376 -17
- package/dist/session/provider-cli/provider-usage.d.ts +9 -1
- package/dist/session/provider-cli/provider-usage.js +28 -5
- package/dist/session/publishable-worktree-changes.d.ts +54 -0
- package/dist/session/publishable-worktree-changes.js +193 -0
- package/dist/session/sandbox-host-capacity-gate.d.ts +30 -0
- package/dist/session/sandbox-host-capacity-gate.js +238 -0
- package/dist/session/session-redaction.js +434 -9
- package/dist/session/session.base.d.ts +9 -1
- package/dist/session/session.service.d.ts +9 -2
- package/dist/session/session.service.js +264 -27
- package/dist/session/session.types.d.ts +150 -2
- package/dist/session/session.types.js +599 -7
- package/dist/session/unreferenced-exports.d.ts +12 -0
- package/dist/session/unreferenced-exports.js +59 -0
- package/dist/session/workspace-runtime-fingerprint.d.ts +32 -0
- package/dist/session/workspace-runtime-fingerprint.js +138 -0
- package/dist/shared/format/format-bytes.d.ts +1 -0
- package/dist/shared/format/format-bytes.js +9 -0
- package/dist/shared/git/git.js +2 -1
- package/dist/shared/path/path.d.ts +1 -0
- package/dist/shared/path/path.js +18 -0
- package/dist/shared/process/dotnet-toolchain.d.ts +17 -0
- package/dist/shared/process/dotnet-toolchain.js +307 -0
- package/dist/shared/process/host-process-recovery.js +3 -2
- package/dist/shared/process/host-process-supervisor.d.ts +3 -0
- package/dist/shared/process/host-process-supervisor.js +61 -12
- package/dist/shared/process/process-tree.d.ts +52 -0
- package/dist/shared/process/process-tree.js +144 -0
- package/dist/shared/process/process.d.ts +69 -0
- package/dist/shared/process/process.js +223 -16
- package/dist/shared/process/windows-app-execution-alias.d.ts +19 -0
- package/dist/shared/process/windows-app-execution-alias.js +45 -0
- package/dist/shared/process/windows-launch.d.ts +18 -0
- package/dist/shared/process/windows-launch.js +68 -0
- package/dist/shared/provider-capabilities.d.ts +3 -0
- package/dist/shared/provider-capabilities.js +84 -0
- package/dist/shared/redaction/redaction.d.ts +1 -0
- package/dist/shared/redaction/redaction.js +39 -3
- package/dist/shared/time/monotonic.d.ts +1 -0
- package/dist/shared/time/monotonic.js +8 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/worktree/dependency-warmer.d.ts +66 -9
- package/dist/worktree/dependency-warmer.js +609 -24
- package/dist/worktree/index.d.ts +1 -1
- package/dist/worktree/story-qa-reference-hydrator.d.ts +4 -0
- package/dist/worktree/story-qa-reference-hydrator.js +253 -0
- package/dist/worktree/worktree.service.d.ts +17 -1
- package/dist/worktree/worktree.service.js +293 -21
- package/dist/worktree/worktree.types.d.ts +14 -1
- package/package.json +8 -6
- package/runtime/windows-job-supervisor.ps1 +380 -14
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tools an agent commonly starts by bare name. When one of them resolves to a Microsoft Store
|
|
3
|
+
* app-execution alias (`%LOCALAPPDATA%\Microsoft\WindowsApps\pwsh.exe` and the like), Windows
|
|
4
|
+
* creates the process it starts outside the provider's Job Object: it survives the job, keeps the
|
|
5
|
+
* pipe handles it inherited, and holds the attempt's output open until it exits on its own.
|
|
6
|
+
*/
|
|
7
|
+
export declare const APP_EXECUTION_ALIAS_SENSITIVE_TOOLS: readonly ["pwsh", "node", "dotnet"];
|
|
8
|
+
export interface AppExecutionAliasFinding {
|
|
9
|
+
readonly tool: string;
|
|
10
|
+
/** The alias the tool's bare name resolves to. */
|
|
11
|
+
readonly aliasPath: string;
|
|
12
|
+
/** The first regular install later on PATH, or null when the alias is the only one. */
|
|
13
|
+
readonly nextInstallPath: string | null;
|
|
14
|
+
}
|
|
15
|
+
/** The sensitive tools whose bare name resolves, on this PATH, to an app-execution alias. */
|
|
16
|
+
export declare function findAppExecutionAliasTools(pathValue: string, pathExtValue?: string, tools?: readonly string[]): AppExecutionAliasFinding[];
|
|
17
|
+
export declare function describeAppExecutionAliasFindings(findings: readonly AppExecutionAliasFinding[]): string | null;
|
|
18
|
+
/** Reads PATH and PATHEXT from an environment whose key case is not normalized (Windows: "Path"). */
|
|
19
|
+
export declare function appExecutionAliasWarning(env: Readonly<Record<string, string | undefined>>, platform?: NodeJS.Platform): string | null;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { isWindowsAppExecutionAliasPath, resolveWindowsCommandFromPath } from "./windows-launch.js";
|
|
2
|
+
/**
|
|
3
|
+
* Tools an agent commonly starts by bare name. When one of them resolves to a Microsoft Store
|
|
4
|
+
* app-execution alias (`%LOCALAPPDATA%\Microsoft\WindowsApps\pwsh.exe` and the like), Windows
|
|
5
|
+
* creates the process it starts outside the provider's Job Object: it survives the job, keeps the
|
|
6
|
+
* pipe handles it inherited, and holds the attempt's output open until it exits on its own.
|
|
7
|
+
*/
|
|
8
|
+
export const APP_EXECUTION_ALIAS_SENSITIVE_TOOLS = ["pwsh", "node", "dotnet"];
|
|
9
|
+
/** The sensitive tools whose bare name resolves, on this PATH, to an app-execution alias. */
|
|
10
|
+
export function findAppExecutionAliasTools(pathValue, pathExtValue, tools = APP_EXECUTION_ALIAS_SENSITIVE_TOOLS) {
|
|
11
|
+
const findings = [];
|
|
12
|
+
for (const tool of tools) {
|
|
13
|
+
const aliasPath = resolveWindowsCommandFromPath(tool, pathValue, pathExtValue);
|
|
14
|
+
if (!aliasPath || !isWindowsAppExecutionAliasPath(aliasPath))
|
|
15
|
+
continue;
|
|
16
|
+
const nextInstallPath = resolveWindowsCommandFromPath(tool, pathValue, pathExtValue, { skipAppExecutionAliases: true });
|
|
17
|
+
findings.push({ tool, aliasPath, nextInstallPath });
|
|
18
|
+
}
|
|
19
|
+
return findings;
|
|
20
|
+
}
|
|
21
|
+
export function describeAppExecutionAliasFindings(findings) {
|
|
22
|
+
if (findings.length === 0)
|
|
23
|
+
return null;
|
|
24
|
+
const tools = findings.map(finding => `${finding.tool} -> ${finding.aliasPath}${finding.nextInstallPath
|
|
25
|
+
? ` (a regular install later on PATH: ${finding.nextInstallPath})`
|
|
26
|
+
: " (no regular install on PATH)"}`);
|
|
27
|
+
return "Host readiness warning: on the provider PATH, "
|
|
28
|
+
+ `${tools.join("; ")} resolve${findings.length === 1 ? "s" : ""} to a Microsoft Store app-execution alias under WindowsApps. `
|
|
29
|
+
+ "A process started through an alias is created outside the provider's Windows Job Object, survives it, "
|
|
30
|
+
+ "and can hold the attempt's output pipes open until it exits. Install the tool normally "
|
|
31
|
+
+ "(for PowerShell, the MSI under C:\\Program Files\\PowerShell\\7) and put it ahead of WindowsApps on PATH.";
|
|
32
|
+
}
|
|
33
|
+
/** Reads PATH and PATHEXT from an environment whose key case is not normalized (Windows: "Path"). */
|
|
34
|
+
export function appExecutionAliasWarning(env, platform = process.platform) {
|
|
35
|
+
if (platform !== "win32")
|
|
36
|
+
return null;
|
|
37
|
+
const pathValue = environmentValue(env, "PATH");
|
|
38
|
+
if (!pathValue)
|
|
39
|
+
return null;
|
|
40
|
+
return describeAppExecutionAliasFindings(findAppExecutionAliasTools(pathValue, environmentValue(env, "PATHEXT")));
|
|
41
|
+
}
|
|
42
|
+
function environmentValue(env, name) {
|
|
43
|
+
const key = Object.keys(env).find(candidate => candidate.toUpperCase() === name);
|
|
44
|
+
return key === undefined ? undefined : env[key];
|
|
45
|
+
}
|
|
@@ -6,3 +6,21 @@ export declare function buildWindowsCmdLaunch(command: string, args: readonly st
|
|
|
6
6
|
export declare function buildWindowsLaunchCommand(commandPath: string, args: readonly string[]): LaunchCommand;
|
|
7
7
|
export declare function windowsCommandLine(command: string, args: readonly string[]): string;
|
|
8
8
|
export declare function quoteWindowsCommandLineArg(value: string): string;
|
|
9
|
+
export interface WindowsCommandPathOptions {
|
|
10
|
+
/**
|
|
11
|
+
* Skip candidates under a `WindowsApps` directory. Those are Microsoft Store app-execution
|
|
12
|
+
* aliases: the process they start is created outside the caller's Job Object, so it survives the
|
|
13
|
+
* job and keeps any inherited pipe open. Resolve the next real install on PATH instead.
|
|
14
|
+
*/
|
|
15
|
+
readonly skipAppExecutionAliases?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Resolves Windows commands without spawning where.exe. Runtime launches can
|
|
19
|
+
* happen while the machine is under enough process pressure for where.exe to
|
|
20
|
+
* miss its timeout; returning the unresolved package-manager name in that case
|
|
21
|
+
* makes Node fall back to a shell shim that cannot survive Job Object wrapping.
|
|
22
|
+
*/
|
|
23
|
+
export declare function resolveWindowsCommandFromPath(command: string, pathValue?: string, pathExtValue?: string, options?: WindowsCommandPathOptions): string | null;
|
|
24
|
+
export declare function chooseWindowsCommandCandidate(candidates: readonly string[]): string | null;
|
|
25
|
+
/** True for a path inside a `WindowsApps` directory, where Store app-execution aliases live. */
|
|
26
|
+
export declare function isWindowsAppExecutionAliasPath(candidate: string): boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import fs from "node:fs";
|
|
1
2
|
import path from "node:path";
|
|
2
3
|
export function buildWindowsCmdLaunch(command, args, comSpec = process.env.ComSpec) {
|
|
3
4
|
const resolvedComSpec = comSpec?.trim();
|
|
@@ -39,3 +40,70 @@ function powershellExecutable() {
|
|
|
39
40
|
? path.join(systemRoot, "System32", "WindowsPowerShell", "v1.0", "powershell.exe")
|
|
40
41
|
: "powershell.exe";
|
|
41
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* Resolves Windows commands without spawning where.exe. Runtime launches can
|
|
45
|
+
* happen while the machine is under enough process pressure for where.exe to
|
|
46
|
+
* miss its timeout; returning the unresolved package-manager name in that case
|
|
47
|
+
* makes Node fall back to a shell shim that cannot survive Job Object wrapping.
|
|
48
|
+
*/
|
|
49
|
+
export function resolveWindowsCommandFromPath(command, pathValue = process.env.PATH ?? "", pathExtValue = process.env.PATHEXT ?? ".COM;.EXE;.BAT;.CMD", options = {}) {
|
|
50
|
+
if (!command || path.isAbsolute(command) || command.includes("/") || command.includes("\\")) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
const hasExtension = path.extname(command).length > 0;
|
|
54
|
+
const extensions = hasExtension
|
|
55
|
+
? [""]
|
|
56
|
+
: [...new Set([
|
|
57
|
+
"",
|
|
58
|
+
".exe",
|
|
59
|
+
".ps1",
|
|
60
|
+
".cmd",
|
|
61
|
+
".bat",
|
|
62
|
+
...pathExtValue.split(";").map(value => value.trim().toLowerCase()).filter(Boolean),
|
|
63
|
+
])];
|
|
64
|
+
for (const rawDirectory of pathValue.split(path.delimiter)) {
|
|
65
|
+
const directory = rawDirectory.trim().replace(/^"|"$/gu, "");
|
|
66
|
+
if (!directory)
|
|
67
|
+
continue;
|
|
68
|
+
const candidates = [];
|
|
69
|
+
for (const extension of extensions) {
|
|
70
|
+
const candidate = path.join(directory, `${command}${extension}`);
|
|
71
|
+
if (options.skipAppExecutionAliases && isWindowsAppExecutionAliasPath(candidate))
|
|
72
|
+
continue;
|
|
73
|
+
if (pathEntryExists(candidate))
|
|
74
|
+
candidates.push(candidate);
|
|
75
|
+
}
|
|
76
|
+
const resolved = chooseWindowsCommandCandidate(candidates);
|
|
77
|
+
if (resolved)
|
|
78
|
+
return resolved;
|
|
79
|
+
}
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
export function chooseWindowsCommandCandidate(candidates) {
|
|
83
|
+
const normalized = candidates
|
|
84
|
+
.map((candidate) => candidate.trim())
|
|
85
|
+
.filter((candidate) => candidate.length > 0);
|
|
86
|
+
if (normalized.length === 0) {
|
|
87
|
+
return null;
|
|
88
|
+
}
|
|
89
|
+
const preferredExtensions = [".exe", ".ps1", ".cmd", ".bat", ""];
|
|
90
|
+
for (const extension of preferredExtensions) {
|
|
91
|
+
const candidate = normalized.find((entry) => path.extname(entry).toLowerCase() === extension);
|
|
92
|
+
if (candidate) {
|
|
93
|
+
return candidate;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return normalized[0];
|
|
97
|
+
}
|
|
98
|
+
/** True for a path inside a `WindowsApps` directory, where Store app-execution aliases live. */
|
|
99
|
+
export function isWindowsAppExecutionAliasPath(candidate) {
|
|
100
|
+
return candidate.split(/[\\/]+/u).some(segment => segment.toLowerCase() === "windowsapps");
|
|
101
|
+
}
|
|
102
|
+
// An app-execution alias is a reparse point that stat() may not open, so an
|
|
103
|
+
// alias is also accepted when only lstat() can see it.
|
|
104
|
+
function pathEntryExists(candidate) {
|
|
105
|
+
if (fs.existsSync(candidate))
|
|
106
|
+
return true;
|
|
107
|
+
return isWindowsAppExecutionAliasPath(candidate)
|
|
108
|
+
&& fs.lstatSync(candidate, { throwIfNoEntry: false }) !== undefined;
|
|
109
|
+
}
|
|
@@ -1 +1,4 @@
|
|
|
1
|
+
import { type BridgeChatCapability } from "../bridge/bridge-chat.types.js";
|
|
2
|
+
import type { BridgeProviderStatus } from "../bridge/bridge.types.js";
|
|
1
3
|
export declare function supportsDraftImageAttachmentsFor(cliProviders: readonly string[]): boolean;
|
|
4
|
+
export declare function bridgeChatCapabilityFor(cliProviders: readonly string[], providerStatuses: Readonly<Record<string, BridgeProviderStatus>>, baseCapability?: BridgeChatCapability | null): BridgeChatCapability;
|
|
@@ -1,3 +1,87 @@
|
|
|
1
|
+
import { bridgeChatProtocolVersion, normalizeBridgeChatCapability, unavailableBridgeChatCapability, } from "../bridge/bridge-chat.types.js";
|
|
2
|
+
const defaultBridgeChatMaxMessageBytes = 128 * 1024;
|
|
3
|
+
const defaultBridgeChatMaxContextRefs = 8;
|
|
1
4
|
export function supportsDraftImageAttachmentsFor(cliProviders) {
|
|
2
5
|
return cliProviders.some((provider) => provider.trim().toLowerCase() === "codex");
|
|
3
6
|
}
|
|
7
|
+
export function bridgeChatCapabilityFor(cliProviders, providerStatuses, baseCapability) {
|
|
8
|
+
const base = normalizeBridgeChatCapability(baseCapability ?? unavailableBridgeChatCapability());
|
|
9
|
+
if (base.protocolVersion !== bridgeChatProtocolVersion) {
|
|
10
|
+
return base;
|
|
11
|
+
}
|
|
12
|
+
const providers = chatProviderEntries(cliProviders, providerStatuses);
|
|
13
|
+
const usableProviders = providers.filter((provider) => provider.status?.signedIn !== false);
|
|
14
|
+
if (usableProviders.length === 0) {
|
|
15
|
+
return unavailableBridgeChatCapability(bridgeChatProtocolVersion, providers.length === 0 ? "no_cli_providers" : "no_signed_in_cli_providers", providers.length === 0
|
|
16
|
+
? "No CLI providers are configured for Bridge Chat."
|
|
17
|
+
: "No signed-in CLI providers are available for Bridge Chat.");
|
|
18
|
+
}
|
|
19
|
+
return normalizeBridgeChatCapability({
|
|
20
|
+
...base,
|
|
21
|
+
availability: usableProviders.length === providers.length ? "available" : "degraded",
|
|
22
|
+
protocolVersion: bridgeChatProtocolVersion,
|
|
23
|
+
supportedProviders: usableProviders.map((provider) => provider.providerKind),
|
|
24
|
+
supportedModels: sortedUniqueStrings(usableProviders.flatMap((provider) => provider.status?.models ?? []), false),
|
|
25
|
+
supportsTextStreaming: true,
|
|
26
|
+
supportsCancel: true,
|
|
27
|
+
supportsResume: true,
|
|
28
|
+
supportsProviderThreadContinuity: true,
|
|
29
|
+
supportsAttachments: true,
|
|
30
|
+
supportsActionBrokerGrants: true,
|
|
31
|
+
maxMessageBytes: base.maxMessageBytes || defaultBridgeChatMaxMessageBytes,
|
|
32
|
+
maxContextRefs: base.maxContextRefs || defaultBridgeChatMaxContextRefs,
|
|
33
|
+
unavailableCode: null,
|
|
34
|
+
unavailableReason: null,
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
function chatProviderEntries(cliProviders, providerStatuses) {
|
|
38
|
+
const statuses = new Map();
|
|
39
|
+
for (const [provider, status] of Object.entries(providerStatuses)) {
|
|
40
|
+
const providerKind = provider.trim().toLowerCase();
|
|
41
|
+
if (providerKind.length === 0)
|
|
42
|
+
continue;
|
|
43
|
+
statuses.set(providerKind, { status });
|
|
44
|
+
}
|
|
45
|
+
// Only configured CLI providers can run a Bridge Chat turn. A status entry for a
|
|
46
|
+
// provider that is not in cliProviders (for example a leftover entry in
|
|
47
|
+
// bridge.json for a CLI that is no longer installed) annotates nothing and must
|
|
48
|
+
// not be advertised as a chat provider.
|
|
49
|
+
const providers = new Map();
|
|
50
|
+
for (const provider of cliProviders) {
|
|
51
|
+
const providerKind = provider.trim().toLowerCase();
|
|
52
|
+
if (providerKind.length === 0)
|
|
53
|
+
continue;
|
|
54
|
+
providers.set(providerKind, {
|
|
55
|
+
providerKind,
|
|
56
|
+
status: statuses.get(providerKind)?.status,
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
return [...providers.values()].sort((left, right) => compareStable(left.providerKind, right.providerKind));
|
|
60
|
+
}
|
|
61
|
+
function sortedUniqueStrings(values, lower) {
|
|
62
|
+
const byKey = new Map();
|
|
63
|
+
for (const value of values) {
|
|
64
|
+
const clean = value.trim();
|
|
65
|
+
if (clean.length === 0)
|
|
66
|
+
continue;
|
|
67
|
+
const normalized = lower ? clean.toLowerCase() : clean;
|
|
68
|
+
const key = normalized.toLowerCase();
|
|
69
|
+
if (!byKey.has(key)) {
|
|
70
|
+
byKey.set(key, normalized);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return [...byKey.values()].sort(compareStable);
|
|
74
|
+
}
|
|
75
|
+
function compareStable(left, right) {
|
|
76
|
+
const leftKey = left.toLowerCase();
|
|
77
|
+
const rightKey = right.toLowerCase();
|
|
78
|
+
if (leftKey < rightKey)
|
|
79
|
+
return -1;
|
|
80
|
+
if (leftKey > rightKey)
|
|
81
|
+
return 1;
|
|
82
|
+
if (left < right)
|
|
83
|
+
return -1;
|
|
84
|
+
if (left > right)
|
|
85
|
+
return 1;
|
|
86
|
+
return 0;
|
|
87
|
+
}
|
|
@@ -1,14 +1,41 @@
|
|
|
1
1
|
const secretKeyPattern = /(api[_-]?key|authorization|bearer|client[_-]?secret|password|secret|token)/i;
|
|
2
|
+
// Serialized artifact keys follow the existing assignment policy, not the broad
|
|
3
|
+
// object redactor: tokenCount/maxTokens are evidence, not credential values.
|
|
4
|
+
const jsonCredentialKeyPattern = /(api[_-]?key|client[_-]?secret|password|secret|token)$/i;
|
|
2
5
|
const attachmentContentKeyPattern = /^(textContent|contentBase64)$/i;
|
|
6
|
+
const bridgeChatHandoffGrantKeyPattern = /^(tempFileToken|grantNonce|nonce|handle|grantId|handoffId|attachmentId)$/i;
|
|
7
|
+
const sensitiveFilenameKeyPattern = /^(fileName|filename)$/i;
|
|
3
8
|
const serializedAttachmentContentPattern = /("(?:textContent|contentBase64)"\s*:\s*")(?:(?:\\.)|[^"\\])*(")/gi;
|
|
9
|
+
const serializedBridgeChatHandoffGrantPattern = /("(?:tempFileToken|grantNonce|nonce|handle|grantId|handoffId|attachmentId)"\s*:\s*")(?:(?:\\.)|[^"\\])*(")/gi;
|
|
10
|
+
const serializedSensitiveFilenamePattern = /("(?:fileName|filename)"\s*:\s*")(?:(?:\\.)|[^"\\])*(")/gi;
|
|
4
11
|
const authorizationCredentialPattern = /(\bauthorization\s*[:=]\s*(?:bearer|basic)?\s*)([^"',\s]+)/gi;
|
|
5
12
|
const bearerCredentialPattern = /(\bbearer\s+)([^"',\s]+)/gi;
|
|
6
13
|
const secretAssignmentPattern = /(api[_-]?key|client[_-]?secret|password|secret|token)(\s*["']?\s*[:=]\s*["']?\s*)([^"',\s]+)/gi;
|
|
14
|
+
// Keep this boundary in parity with Forge.Api's SecretRedactor. Without it, the
|
|
15
|
+
// `sk-` substring in a structural identifier such as `task-skill-contract`
|
|
16
|
+
// is mistaken for a provider credential and corrupts the artifact after it has
|
|
17
|
+
// already passed schema validation.
|
|
18
|
+
const providerKeyPattern = /(?<![a-zA-Z0-9])sk-[a-zA-Z0-9_-]{12,}/g;
|
|
7
19
|
export function redactSecrets(value, exactSecrets = []) {
|
|
8
20
|
return redactValue(value, exactSecrets);
|
|
9
21
|
}
|
|
22
|
+
export function shouldRedactJsonProperty(key) {
|
|
23
|
+
// Assignment redaction already permits whitespace before the delimiter. Match
|
|
24
|
+
// that policy without normalizing the actual JSON property name on the wire.
|
|
25
|
+
const policyKey = key.trim();
|
|
26
|
+
return jsonCredentialKeyPattern.test(policyKey)
|
|
27
|
+
|| /^(authorization|bearer)$/i.test(policyKey)
|
|
28
|
+
|| attachmentContentKeyPattern.test(policyKey)
|
|
29
|
+
|| bridgeChatHandoffGrantKeyPattern.test(policyKey)
|
|
30
|
+
|| (redactSensitiveFilenames() && sensitiveFilenameKeyPattern.test(policyKey));
|
|
31
|
+
}
|
|
10
32
|
export function redactText(value, exactSecrets = []) {
|
|
11
|
-
let redacted = value
|
|
33
|
+
let redacted = value
|
|
34
|
+
.replace(serializedAttachmentContentPattern, "$1[REDACTED]$2")
|
|
35
|
+
.replace(serializedBridgeChatHandoffGrantPattern, "$1[REDACTED]$2");
|
|
36
|
+
if (redactSensitiveFilenames()) {
|
|
37
|
+
redacted = redacted.replace(serializedSensitiveFilenamePattern, "$1[REDACTED]$2");
|
|
38
|
+
}
|
|
12
39
|
for (const secret of exactSecrets) {
|
|
13
40
|
if (secret.length > 0) {
|
|
14
41
|
redacted = redacted.split(secret).join("[REDACTED]");
|
|
@@ -18,7 +45,7 @@ export function redactText(value, exactSecrets = []) {
|
|
|
18
45
|
.replace(authorizationCredentialPattern, "$1[REDACTED]")
|
|
19
46
|
.replace(bearerCredentialPattern, "$1[REDACTED]")
|
|
20
47
|
.replace(secretAssignmentPattern, "$1$2[REDACTED]")
|
|
21
|
-
.replace(
|
|
48
|
+
.replace(providerKeyPattern, "[REDACTED]");
|
|
22
49
|
}
|
|
23
50
|
function redactValue(value, exactSecrets) {
|
|
24
51
|
if (typeof value === "string") {
|
|
@@ -32,6 +59,15 @@ function redactValue(value, exactSecrets) {
|
|
|
32
59
|
}
|
|
33
60
|
return Object.fromEntries(Object.entries(value).map(([key, item]) => [
|
|
34
61
|
key,
|
|
35
|
-
secretKeyPattern.test(key)
|
|
62
|
+
secretKeyPattern.test(key)
|
|
63
|
+
|| attachmentContentKeyPattern.test(key)
|
|
64
|
+
|| bridgeChatHandoffGrantKeyPattern.test(key)
|
|
65
|
+
|| (redactSensitiveFilenames() && sensitiveFilenameKeyPattern.test(key))
|
|
66
|
+
? "[REDACTED]"
|
|
67
|
+
: redactValue(item, exactSecrets)
|
|
36
68
|
]));
|
|
37
69
|
}
|
|
70
|
+
function redactSensitiveFilenames() {
|
|
71
|
+
const value = process.env.FORGE_REDACT_FILENAMES?.trim().toLowerCase();
|
|
72
|
+
return value === "1" || value === "true" || value === "yes";
|
|
73
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function monotonicNowMs(): number;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Elapsed time and local deadlines use the monotonic clock. The wall clock can step:
|
|
2
|
+
// a WSL VM's clock is corrected in multi-second jumps, which would end a local wait
|
|
3
|
+
// early or count time that never passed. Timestamps that are persisted or compared
|
|
4
|
+
// across processes (lease expiry, receipts, file mtimes) stay on the wall clock.
|
|
5
|
+
// Read through the global so test fake timers that replace `performance` apply.
|
|
6
|
+
export function monotonicNowMs() {
|
|
7
|
+
return performance.now();
|
|
8
|
+
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const forgeBridgeVersion = "0.1.
|
|
1
|
+
export declare const forgeBridgeVersion = "0.1.4-dev.03584818ede5";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const forgeBridgeVersion = "0.1.
|
|
1
|
+
export const forgeBridgeVersion = "0.1.4-dev.03584818ede5";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { HostLoadStepGate } from "../runtime/host-load-governor.js";
|
|
2
|
+
import type { HostLoadTokenPriority } from "../runtime/host-load-token-ledger.js";
|
|
1
3
|
export type DependencyEcosystem = "node" | "dotnet" | "python";
|
|
2
4
|
export interface WarmPathEntry {
|
|
3
5
|
readonly relativePath: string;
|
|
@@ -9,6 +11,25 @@ export interface WarmDependenciesRequest {
|
|
|
9
11
|
readonly worktreePath: string;
|
|
10
12
|
readonly allowedRoot: string;
|
|
11
13
|
readonly warmPathOverrides?: readonly string[];
|
|
14
|
+
readonly preparationPolicy?: DependencyPreparationPolicy;
|
|
15
|
+
/** Install fallbacks wait for host capacity first (decision 0013). */
|
|
16
|
+
readonly hostLoad?: DependencyInstallHostLoad;
|
|
17
|
+
/**
|
|
18
|
+
* The attempt's cancellation: a queued install stops waiting and a running one
|
|
19
|
+
* is stopped (its whole process group) before its host capacity is returned.
|
|
20
|
+
*/
|
|
21
|
+
readonly signal?: AbortSignal;
|
|
22
|
+
}
|
|
23
|
+
export interface DependencyInstallHostLoad {
|
|
24
|
+
readonly gate: HostLoadStepGate;
|
|
25
|
+
readonly dispatchAttemptId: string | null;
|
|
26
|
+
readonly priority: HostLoadTokenPriority;
|
|
27
|
+
}
|
|
28
|
+
export interface DependencyPreparationPolicy {
|
|
29
|
+
readonly isolation?: string;
|
|
30
|
+
readonly trustDomain?: string;
|
|
31
|
+
readonly invalidationEpoch?: string;
|
|
32
|
+
readonly toolchainVersions?: Readonly<Partial<Record<DependencyEcosystem | "npm" | "pnpm", string>>>;
|
|
12
33
|
}
|
|
13
34
|
export interface InstallFallbackResult {
|
|
14
35
|
readonly ecosystem: DependencyEcosystem;
|
|
@@ -20,12 +41,33 @@ export interface WarmDependenciesResult {
|
|
|
20
41
|
readonly linked: readonly string[];
|
|
21
42
|
readonly skipped: readonly string[];
|
|
22
43
|
readonly fallbacks: readonly InstallFallbackResult[];
|
|
44
|
+
readonly receipts: readonly DependencyPreparationReceiptResult[];
|
|
45
|
+
}
|
|
46
|
+
export interface DependencyPreparationReceiptResult {
|
|
47
|
+
readonly ecosystem: DependencyEcosystem;
|
|
48
|
+
readonly packageRoot: string;
|
|
49
|
+
readonly command: string;
|
|
50
|
+
readonly cacheHit: boolean;
|
|
51
|
+
readonly fingerprint: string;
|
|
52
|
+
readonly receiptPath: string;
|
|
53
|
+
/** End-to-end receipt lookup/preparation time, including coordinator wait. */
|
|
54
|
+
readonly durationMs: number;
|
|
23
55
|
}
|
|
24
56
|
export interface CommandExecutor {
|
|
25
57
|
run(cwd: string, command: string, args: readonly string[], options?: CommandExecutionOptions): Promise<void>;
|
|
26
58
|
}
|
|
27
59
|
export interface CommandExecutionOptions {
|
|
28
60
|
readonly env?: NodeJS.ProcessEnv;
|
|
61
|
+
readonly windowsVerbatimArguments?: boolean;
|
|
62
|
+
/** Stops the install (a reclaimed host load token, decision 0013). */
|
|
63
|
+
readonly signal?: AbortSignal;
|
|
64
|
+
/** Called with the install's pid once it starts, so its token records the process. */
|
|
65
|
+
readonly onSpawn?: (pid: number) => void;
|
|
66
|
+
/**
|
|
67
|
+
* Unix: the install leads its own process group, which is stopped as a whole
|
|
68
|
+
* (on abort, and anything left once the install exits) before the run settles.
|
|
69
|
+
*/
|
|
70
|
+
readonly processGroup?: boolean;
|
|
29
71
|
}
|
|
30
72
|
export declare function detectWarmPaths(repoRoot: string, warmPathOverrides?: readonly string[]): Promise<WarmPathEntry[]>;
|
|
31
73
|
export declare function warmWorktreeDependencies(request: WarmDependenciesRequest, executor?: CommandExecutor): Promise<WarmDependenciesResult>;
|
|
@@ -39,14 +81,29 @@ export interface NpmLaunchOptions {
|
|
|
39
81
|
readonly platform?: NodeJS.Platform;
|
|
40
82
|
readonly homeDir?: string;
|
|
41
83
|
readonly candidates?: readonly string[];
|
|
84
|
+
readonly pathExists?: (candidate: string) => boolean;
|
|
85
|
+
}
|
|
86
|
+
export interface PackageManagerEnvironmentOptions {
|
|
87
|
+
readonly platform?: NodeJS.Platform;
|
|
88
|
+
readonly execPath?: string;
|
|
89
|
+
readonly pathExists?: (candidate: string) => boolean;
|
|
90
|
+
readonly maximumPathLength?: number;
|
|
91
|
+
readonly packageRoot?: string;
|
|
92
|
+
readonly requiredPathDirectories?: readonly string[];
|
|
93
|
+
}
|
|
94
|
+
export interface PackageManagerLaunch {
|
|
95
|
+
readonly command: string;
|
|
96
|
+
readonly args: readonly string[];
|
|
97
|
+
readonly requiredPathDirectories?: readonly string[];
|
|
98
|
+
readonly windowsVerbatimArguments?: boolean;
|
|
42
99
|
}
|
|
43
|
-
export declare function resolveNpmLaunch(args: readonly string[], options?: NpmLaunchOptions):
|
|
44
|
-
|
|
45
|
-
args: readonly string[];
|
|
46
|
-
};
|
|
47
|
-
export declare function resolvePnpmLaunch(args: readonly string[]): {
|
|
48
|
-
command: string;
|
|
49
|
-
args: readonly string[];
|
|
50
|
-
};
|
|
100
|
+
export declare function resolveNpmLaunch(args: readonly string[], options?: NpmLaunchOptions): PackageManagerLaunch;
|
|
101
|
+
export declare function resolvePnpmLaunch(args: readonly string[], options?: NpmLaunchOptions): PackageManagerLaunch;
|
|
51
102
|
export declare function formatCommandFailureOutput(stdout: string, stderr: string): string;
|
|
52
|
-
export declare function unattendedPackageManagerEnvironment(env?: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
|
|
103
|
+
export declare function unattendedPackageManagerEnvironment(env?: NodeJS.ProcessEnv, options?: PackageManagerEnvironmentOptions): NodeJS.ProcessEnv;
|
|
104
|
+
export declare function unattendedDependencyEnvironment(env?: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
|
|
105
|
+
export declare function compactWindowsPackageManagerPath(pathValue: string, env?: NodeJS.ProcessEnv, options?: PackageManagerEnvironmentOptions): string;
|
|
106
|
+
export declare function windowsPackageManagerLifecyclePathPrefix(packageRoot: string): string;
|
|
107
|
+
export declare function windowsPackageManagerPathBudget(packageRoot: string): number;
|
|
108
|
+
/** Runs dependency installs; exported for tests. */
|
|
109
|
+
export declare const defaultCommandExecutor: CommandExecutor;
|