@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
21 lines • 1.53 kB
TypeScript
import { type HostDecision, type HostDecisionClient, type HostProtocolInfo } from "./host-decision.ts";
import type { EnsureHostOptions } from "./host-ensure-types.ts";
/** An ensure must produce a host; an unavailable upgrade falls back to a compatible attachment. */
export declare function decideEnsureAction(options: EnsureHostOptions, startedByUs: boolean, protocol: HostProtocolInfo | undefined): Exclude<HostDecision, {
action: "fallback";
}>;
/** This build as a client: which protocol it speaks, what it needs from a host, and which build it is. */
export declare function ensureClient(options: EnsureHostOptions, startedByUs: boolean): HostDecisionClient;
/**
* An explicit `--tool-runtime` in `hostArgs` is a requirement (senpi#3566): a host advertising another runtime - or none,
* because it predates the flag - is not reused for this client. Without the flag the client requires nothing new.
*/
export declare function requestedToolRuntime(hostArgs: readonly string[]): string[];
/** The argv the supervisor gives its host child; the launch profile has to describe THAT host. */
export declare function hostChildArgv(hostArgs: readonly string[]): string[];
/**
* Compatibility, for the attach decision and the readiness gate alike: a host is compatible exactly
* when a client that is forbidden to upgrade would attach to it. Never a version-string comparison (I2).
*/
export declare function isCompatible(protocol: HostProtocolInfo | undefined): boolean;
//# sourceMappingURL=host-ensure-client.d.ts.map