/** * Trusted-surface Commander probe. * * Host and bundled command declarations are immutable code shipped with this * binary, so they may be mounted before runtime coordination. The probe runs * Commander with captured output and a preAction sentinel: * * - help, version, and parse failures on that trusted surface are final and * require no project/user discovery or runtime lease; * - a valid action falls through to the normal leased bootstrap; * - an unknown root verb also falls through because it may name an installed * or authored Tool. Unknown nested verbs on a known bundled/host command are * final parse failures because external Tools cannot extend that surface. */ import { type Command } from 'commander'; import type { ToolRuntimeExecutionMode } from './worker-datastore.js'; export interface LightweightCommandProbeInput { readonly program: Command; readonly argv: readonly string[]; readonly projectDir: string; readonly cwd: string; readonly cliEntryUrl: string; readonly runtimeMode: ToolRuntimeExecutionMode; } /** * Return `true` when the trusted probe completely handled this invocation. * `false` means the caller must perform the normal leased discovery/dispatch. */ export declare function runLightweightCommandProbe(input: LightweightCommandProbeInput): Promise; //# sourceMappingURL=lightweight-command-probe.d.ts.map