import type { EffortLevel, RouteSafetyMode } from "@mono-agent/config"; import type { InstallSkillTarget } from "./install-skill.js"; import type { CodexLoginMode } from "./provider-setup.js"; declare const KNOWN_COMMANDS: readonly ["init", "setup", "validate", "doctor", "auth", "sandbox", "config", "presets", "start", "restart", "stop", "status", "logs", "tui", "web", "bridge", "install-skill", "backfill", "runs", "memory", "continuations", "jobs", "__launchd-log-maintenance", "__web-log-maintenance"]; export declare const REMOVED_COMMANDS: Map; type CliCommand = Exclude<(typeof KNOWN_COMMANDS)[number], "doctor" | "setup"> | "help" | "version"; export interface ParsedCliArgs { readonly command: CliCommand; readonly configPath?: string; readonly name?: string; readonly model?: string; readonly fallbacks?: readonly CliFallbackArg[]; readonly routeSafety?: RouteSafetyMode; readonly effort?: string; readonly memory?: "lite" | "journal" | "bujo"; /** init/validate: build/check against this preset id. */ readonly preset?: string; /** init: additional channels to enable on top of the preset/default config. */ readonly withChannels?: readonly string[]; /** init: skip the interactive wizard and write the default/preset scaffold. */ readonly yes?: boolean; /** init: opt in to running provider auth/preflight commands before writing files. */ readonly auth?: boolean; /** auth: explicit destination for the Pi auth store. */ readonly piAuthPath?: string; /** auth: explicitly read one API key from redirected standard input. */ readonly apiKeyStdin?: boolean; /** init/auth: direct Codex browser callback or headless device-code flow. */ readonly codexAuthMode?: CodexLoginMode; /** Non-flag arguments (e.g. `presets show `). */ readonly positionals: readonly string[]; readonly envFile?: string; /** Internal recovery-controller source CLI; never a public option. */ readonly controllerCliPath?: string; /** Internal recovery-controller consumer cwd; never a public option. */ readonly agentCwd?: string; /** Internal recovery-controller worker PATH; never a public option. */ readonly agentPath?: string; /** Internal owner-private launchd transport; never a public start option. */ readonly expectedBackgroundSnapshot?: string; /** Internal finalized-runtime proof; never a public start option. */ readonly expectedManagedRuntimeLaunch?: string; /** Exact composite main web plist identity; private helper only. */ readonly expectedWebPlistIdentity?: string; readonly target?: InstallSkillTarget; readonly force: boolean; /** restart: canonical spelling that clears pi sessions + active conversation history. */ readonly clearSessions?: boolean; /** start: run the blocking foreground worker instead of backgrounding. */ readonly foreground: boolean; /** logs: keep streaming new output (tail -F). */ readonly follow: boolean; /** logs: number of trailing lines to print. */ readonly lines?: number; /** backfill: export exactly this run id. */ readonly run?: string; /** backfill: export every recorded run. */ readonly all: boolean; /** backfill: only runs whose startedAt is >= this ISO instant. */ readonly since?: string; /** backfill: only runs whose startedAt is <= this ISO instant. */ readonly until?: string; /** backfill: map + serialize but do not POST. */ readonly dryRun: boolean; /** runs/backfill: include memory-run artifacts. */ readonly includeMemory: boolean; /** runs: read this artifact directory directly. */ readonly artifactDir?: string; /** runs report: group totals by this summary dimension. */ readonly groupBy?: "model" | "channel" | "failureKind"; /** validate/runs audit: resolve config, env, artifacts, and checks relative to this consumer folder. */ readonly consumerPath?: string; /** tui: connect to this running agent (label or sourceId) directly. */ readonly agent?: string; /** tui: conversation id to chat under. */ readonly conversation?: string; /** tui: build the current-folder responder in-process. */ readonly local?: boolean; /** tui: start with the conversational configuration invitation. */ readonly configure?: boolean; /** install-skill: operate on the current agent's managed project skills. */ readonly project?: boolean; /** install-skill --project: report drift without writing. */ readonly check?: boolean; /** install-skill --project: safely update unchanged managed copies. */ readonly update?: boolean; /** install-skill: copy the skill without pairing the version-matched documentation MCP. */ readonly noDocsMcp?: boolean; /** runs audit: override the stale-running cutoff interval. */ readonly staleAfterMs?: number; /** runs: print the full machine-readable report. */ readonly json?: boolean; /** memory audit: fail closed on degraded or unknown health. */ readonly strict?: boolean; /** memory: max rows for search/top/entity preview. */ readonly limit?: number; /** continuations list: opaque keyset cursor from the previous page. */ readonly cursor?: string; /** memory forget prepare: newline-delimited explicit memory ids. */ readonly idsFile?: string; /** memory forget prepare: lowercase operator reason slug. */ readonly reason?: string; /** memory forget prepare/apply: owner-private plan artifact. */ readonly planPath?: string; /** memory forget restore: owner-private backup directory. */ readonly backupPath?: string; /** `mono-agent memory export|import` bundle directory. */ readonly bundlePath?: string; /** `mono-agent memory export`: also copy audit/monthly/legacy companions. */ readonly includeExtras?: boolean; /** `mono-agent memory export`: export over unreplayed durable work. */ readonly allowPending?: boolean; /** `mono-agent memory import prepare`: memory-id collision policy. */ readonly onConflict?: "fail" | "skip"; /** `mono-agent memory import prepare`: entity-slug collision policy. */ readonly entityConflict?: "target" | "source"; /** `mono-agent memory import prepare`: accept removal of derived associations. */ readonly acceptDerivedAssociationDrift?: boolean; /** web: bind host (defaults to 0.0.0.0). */ readonly host?: string; /** web: bind port (defaults to 5050). */ readonly port?: number; /** web: curated visual theme for this host console. */ readonly theme?: string; /** web: narrow the default LAN bind to 127.0.0.1. */ readonly loopback?: boolean; /** bridge acp: exact trace-source id to expose. */ readonly sourceId?: string; /** bridge acp: emit the sanitized machine-readable discovery contract. */ readonly discover?: boolean; /** bridge acp: fail initialization unless request tool env is enabled. */ readonly requireToolEnvironment?: boolean; } interface CliFallbackArg { readonly model: string; readonly effort?: EffortLevel; } export declare function parseCliArgs(argv: readonly string[]): ParsedCliArgs; /** * Loads env vars from a dotenv file when it exists; already-set variables are * never overwritten, so exported shell variables take precedence. Returns * false when the file is missing or unreadable. */ export declare function loadCliEnvFile(path: string): boolean; export {}; //# sourceMappingURL=cli-args.d.ts.map