@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
19 lines • 1.08 kB
TypeScript
import type { ExtensionAPI } from "../../types.ts";
import type { DelayedContinuationKind } from "./monitor-continuation-types.ts";
/** RPC request a client sends to run the armed continuation now instead of at its due time (senpi#3196). */
export declare const GOAL_CONTINUATION_FIRE_NOW_REQUEST = "goal_continuation_fire_now";
export type GoalContinuationFireNowResult = {
readonly fired: true;
readonly kind: DelayedContinuationKind;
} | {
readonly fired: false;
readonly reason: "not_armed" | "held";
};
/**
* Publishes a continuation event to in-process listeners and, as an `extension_event`, to RPC
* clients, so a desktop thread shows the same wait the TUI's ticker shows. A retired runtime
* cannot reach a client; its staleness is expected there and is dropped.
*/
export declare function publishGoalContinuationEvent(pi: ExtensionAPI, name: string, data: unknown): void;
export declare function registerGoalFireNowRequest(pi: ExtensionAPI, fireNow: () => Promise<GoalContinuationFireNowResult>): void;
//# sourceMappingURL=rpc-wait-surface.d.ts.map