UNPKG

@code-yeongyu/senpi

Version:

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

16 lines • 606 B
import { statSync } from "node:fs"; import { goalFilePath } from "./extensions/builtin/goal/persistence.js"; import { readGoal } from "./extensions/builtin/goal/store.js"; /** No-goal sessions must not wait for unrelated asynchronous filesystem work before admission. */ export function readLifecycleGoal(ref) { try { statSync(goalFilePath(ref)); } catch (error) { if (error instanceof Error && "code" in error && error.code === "ENOENT") return Promise.resolve(null); throw error; } return readGoal(ref); } //# sourceMappingURL=lifecycle-goal.js.map