UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

26 lines • 1.39 kB
import type { RpcLaunchProfileCore } from "./rpc-types.ts"; /** Host capability: reports `runtimeBuildId` and runs the conditional idle handover. */ export declare const RUNTIME_IDENTITY_HANDOVER_CAPABILITY = "runtime_identity_handover"; export type RuntimeFlavour = "compiled" | "packaged" | "dev"; export interface RuntimeSource { readonly flavour: RuntimeFlavour; readonly root: string; } export interface RuntimeBuildIdInput { readonly profile: Pick<RpcLaunchProfileCore, "extensions" | "multi_session" | "session_runtime">; /** Defaults to the runtime this module was loaded from. */ readonly source?: RuntimeSource; readonly platform?: string; readonly arch?: string; readonly engine?: string; } /** A well-formed id, or undefined: anything else proves nothing. */ export declare function parseRuntimeBuildId(value: unknown): string | undefined; export declare function computeRuntimeBuildId(input: RuntimeBuildIdInput): Promise<string>; /** * Where the code of THIS process lives. A compiled binary is its own executable. Otherwise the * package root is the nearest ancestor holding a `package.json`, and the tree this module sits in * names the flavour: `dist/bundle` (the bundle), `dist` (the unbundled tree) or `src` (a checkout). */ export declare function loadedRuntimeSource(): RuntimeSource; //# sourceMappingURL=runtime-build-id.d.ts.map