@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
37 lines • 1.82 kB
TypeScript
import type { ShardKind } from "../modes/rpc/host-daemon-paths.ts";
import type { HostDecisionPolicy } from "../modes/rpc/host-decision.ts";
import type { IdleHandoverTerms } from "../modes/rpc/host-handover-request.ts";
import { type HostStopGeneration } from "../modes/rpc/host-stop-generation.ts";
declare const SUBCOMMANDS: readonly ["ensure", "status", "stop", "handoff", "shard-path", "gc"];
type HostSubcommand = (typeof SUBCOMMANDS)[number];
export interface ParsedHostArgs {
readonly presenterBootstrapFd?: number;
readonly mcpPresenterEnforcement?: boolean;
readonly subcommand: HostSubcommand;
readonly specPath?: string;
readonly policy: HostDecisionPolicy;
readonly socket?: string;
readonly includeWorkers: boolean;
readonly all: boolean;
readonly drain: boolean;
readonly force: boolean;
readonly expectedGeneration?: HostStopGeneration;
/** `stop --drain`: the generation to drain, by instance id. */
readonly instanceId?: string;
/** `stop --drain`: how long to wait for the drained generation to exit. */
readonly waitMs?: number;
readonly json: boolean;
readonly kind?: ShardKind;
readonly owner?: string;
readonly root?: string;
readonly agentDir?: string;
/** Endpoint credentials only: where the public endpoint's key records live; the profile is unchanged. */
readonly keyRoot?: string;
readonly handover?: IdleHandoverTerms;
/** `handoff --allow-downgrade`: hand the running host over even to an older engine (senpi#7018). */
readonly allowDowngrade?: boolean;
}
/** Parses the command line, or answers with the message that says why it could not. */
export declare function parseHostArgs(args: readonly string[]): ParsedHostArgs | string;
export {};
//# sourceMappingURL=host-command-args.d.ts.map