@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
19 lines • 1.25 kB
TypeScript
/**
* `senpi schedule list|cancel|run` - the out-of-process half of durable scheduled prompts.
*
* The `schedule_prompt` tool only writes job files (`core/extensions/builtin/schedule/`); this
* command fires them, so a job scheduled by a `--print` run that has long exited still runs.
* `run` fires what is due once and exits (cron-friendly); `run --watch` stays up (launchd/systemd
* friendly). Every runner holds a lease with a heartbeat, which lets other runners recover
* occurrences it abandoned by crashing and lets the tool tell the model whether a runner is live.
*
* Delivery: `--exec <command>` runs a shell command with the event as JSON on stdin (integrations
* such as a chat bridge own the delivery); without it, the scheduling session is resumed headlessly
* with `senpi -p --session <file|id> <message>` in the session's working directory, deferred while
* another process has that session open.
*
* `run` prints one JSON line per event on stdout so a service log is machine-readable.
*/
/** Runs `senpi schedule ...` (argv without the leading `schedule`) and returns the exit code. */
export declare function runScheduleCommand(args: readonly string[]): Promise<number>;
//# sourceMappingURL=schedule-command.d.ts.map