Files
2026-08-20 23:36:14 +00:00

18 lines
1.2 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
interface ProxyCliModule {
runProxyCli(options: {
argv: readonly string[];
}): Promise<number>;
}
type ProxyCliImporter = () => Promise<ProxyCliModule>;
export declare function runProxyCommand(argv: string[], importer?: ProxyCliImporter): Promise<number>;
export type CommandHandler = (argv: string[]) => Promise<number>;
export declare const ASYNC_COMMANDS: Readonly<Record<string, CommandHandler>>;
/** Verbs handled by the synchronous runCli core (read-only views + local ops). Kept in sync with runCli's switch
* — the source of truth for these stays runCli; this list completes the surface for the registry contract. */
export declare const SYNC_COMMANDS: readonly ["status", "cycles", "trigger", "value", "narrative", "retention", "gene-value", "replay", "rebuild-views", "reset-local-secret"];
/** Every top-level verb `evolver` resolves to (async-dispatched runCli core). */
export declare const ALL_COMMANDS: ReadonlySet<string>;
export declare function v1TopLevelRunArgs(argv: readonly string[]): readonly string[] | undefined;
/** Run a top-level argv against the registry: async handler if present, else the synchronous runCli core. */
export declare function dispatch(argv: readonly string[]): Promise<number> | number;
export {};