UNPKG

@code-yeongyu/senpi

Version:

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

18 lines • 1.37 kB
export type SessionEnv = Readonly<Record<string, string>>; /** Comma-separated names the host additionally lets a caller pass; read from the host's own environment. */ export declare const CALLER_ENV_NAMES_ENV = "SENPI_RPC_CALLER_ENV_NAMES"; export declare const DEFAULT_CALLER_ENV_NAMES: readonly string[]; export declare function callerEnvPassableNames(hostEnv?: Readonly<Record<string, string | undefined>>): ReadonlySet<string>; /** Detail for an `open_session.env` the host refuses by shape alone, or undefined when absent or well formed. */ export declare function sessionEnvShapeError(value: unknown): string | undefined; /** * Detail for an `open_session.env` the host refuses, or undefined when it is absent or every name is * caller-passable on this host. The refusal names the offending variable and the passable set, never a value. */ export declare function sessionEnvError(value: unknown, hostEnv?: Readonly<Record<string, string | undefined>>): string | undefined; /** * A task child's env: its parent's caller env, with the child's own explicit entries winning. Both are * already validated, so the result holds passable names only. Undefined when nothing remains. */ export declare function inheritedSessionEnv(parent: SessionEnv | undefined, requested: SessionEnv | undefined): SessionEnv | undefined; //# sourceMappingURL=session-caller-env.d.ts.map