UNPKG

@code-yeongyu/senpi

Version:

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

26 lines • 2.52 kB
/** Where both sides write payload references (`<root>/<generation>/`); the server owns and tears it down. */ export declare const TOOL_CHILD_REFS_ROOT_ENV = "SENPI_TOOL_CHILD_REFS_ROOT"; /** This generation's ledger path; the child reads it to sweep owned groups when its host disappears. */ export declare const TOOL_CHILD_LEDGER_ENV = "SENPI_TOOL_CHILD_LEDGER"; /** How to re-enter this engine (set by the server when it starts the tool child); the launch shim is started the same way. */ export declare const TOOL_CHILD_REENTRY_ENV = "SENPI_TOOL_CHILD_REENTRY"; /** The Windows command line a `launch-shim` starts outside the tool child's Job Object. */ export declare const LAUNCH_SHIM_COMMAND_LINE_ENV = "SENPI_LAUNCH_SHIM_COMMAND_LINE"; /** * Every variable the server sets only for the tool child itself. The child scrubs them from its own environment once it * has read them, so no command it starts inherits them (a nested senpi would otherwise enter the tool-child role). * `internal-env.test.ts` pins this list against the constants it names. */ export declare const TOOL_CHILD_INTERNAL_ENV: readonly ["SENPI_INTERNAL_ROLE", "SENPI_TOOL_CHILD_CHANNEL", "SENPI_TOOL_CHILD_CHANNEL_SECRET", "SENPI_TOOL_CHILD_GENERATION", "SENPI_TOOL_CHILD_LEDGER", "SENPI_TOOL_CHILD_MODULE_ROOTS", "SENPI_TOOL_CHILD_REFS_ROOT", "SENPI_TOOL_CHILD_REENTRY"]; /** Every internal variable: the server's, and the ones the tool child sets for its own launch shim. */ export declare const INTERNAL_ENV: readonly ["SENPI_INTERNAL_ROLE", "SENPI_TOOL_CHILD_CHANNEL", "SENPI_TOOL_CHILD_CHANNEL_SECRET", "SENPI_TOOL_CHILD_GENERATION", "SENPI_TOOL_CHILD_LEDGER", "SENPI_TOOL_CHILD_MODULE_ROOTS", "SENPI_TOOL_CHILD_REFS_ROOT", "SENPI_TOOL_CHILD_REENTRY", "SENPI_LAUNCH_SHIM_COMMAND_LINE"]; /** * The one sanitizer for the environment of a command a user (or user code) asked for: none of the internal variables, * whatever platform path starts it. A user command that kept one could enter a senpi internal role or re-enter the shim. */ export declare function withoutInternalEnv(env: NodeJS.ProcessEnv, platform?: NodeJS.Platform): NodeJS.ProcessEnv; export declare function scrubToolChildEnv(env: NodeJS.ProcessEnv): void; /** The tool child reads its re-entry command once, before the scrub; job workers get it through their worker data. */ export declare function rememberToolChildReentry(raw: string | undefined): void; export declare function toolChildReentry(): string | undefined; //# sourceMappingURL=launch-env-names.d.ts.map