UNPKG

@code-yeongyu/senpi

Version:

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

16 lines • 1.03 kB
import type { ToolChildJobContext } from "./entry.ts"; export declare const MODULE_JOB_KIND = "module"; export declare const TOOL_CHILD_MODULE_ROOTS_ENV = "SENPI_TOOL_CHILD_MODULE_ROOTS"; export interface ModuleJobArgs { readonly modulePath: string; readonly export: string; readonly args: unknown; } export declare function parseModuleJobArgs(value: unknown): ModuleJobArgs; export declare function parseModuleRoots(env: NodeJS.ProcessEnv): readonly string[]; /** The module's realpath when it is a granted file or lies inside a granted directory (both realpath'd); otherwise refused. */ export declare function containedModulePath(modulePath: string, roots: readonly string[]): string; /** How long a cancelled module body may take to settle on its own before its worker is ended. */ export declare const MODULE_CANCEL_GRACE_MS = 2000; export declare function createModuleJobHandler(env?: NodeJS.ProcessEnv): (value: unknown, context: ToolChildJobContext) => Promise<unknown>; //# sourceMappingURL=module-job.d.ts.map