UNPKG

@code-yeongyu/senpi

Version:

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

19 lines • 1.02 kB
import { type LatestPiRelease } from "./utils/version-check.ts"; export interface SelfUpdateBootstrapCommand { command: string; args: string[]; display: string; steps?: SelfUpdateBootstrapCommand[]; } interface BootstrapSelfUpdateDependencies { getLatestRelease?: (currentVersion: string) => Promise<LatestPiRelease | undefined>; getSelfUpdateCommand?: (packageName: string, npmCommand?: string[], updatePackageName?: string) => SelfUpdateBootstrapCommand | undefined; getUnavailableInstruction?: (packageName: string, npmCommand?: string[], updatePackageName?: string) => string; readNpmCommand?: () => string[] | undefined; runCommand?: (step: SelfUpdateBootstrapCommand) => Promise<void>; writeStdout?: (line: string) => void; writeStderr?: (line: string) => void; } export declare function handleBootstrapSelfUpdate(args: readonly string[], dependencies?: BootstrapSelfUpdateDependencies): Promise<boolean>; export {}; //# sourceMappingURL=self-update-bootstrap.d.ts.map