@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
18 lines • 1.46 kB
TypeScript
export type AnthropicSubscriptionSessionState = "ABSENT" | "STARTING" | "IDLE_SYNCED" | "TURN_WAITING" | "TURN_SENT" | "TURN_CLAIMED" | "TURN_STREAMING" | "TURN_RESULT_SEEN" | "TAINTED" | "CLOSING" | "CLOSED" | "BROKEN";
type StatefulSession = {
state: AnthropicSubscriptionSessionState;
};
export declare function transitionSessionState<T extends StatefulSession>(entry: T, next: AnthropicSubscriptionSessionState): T;
export declare const transitionToStarting: <T extends StatefulSession>(entry: T) => T;
export declare const transitionToIdleSynced: <T extends StatefulSession>(entry: T) => T;
export declare const transitionToTurnWaiting: <T extends StatefulSession>(entry: T) => T;
export declare const transitionToTurnSent: <T extends StatefulSession>(entry: T) => T;
export declare const transitionToTurnClaimed: <T extends StatefulSession>(entry: T) => T;
export declare const transitionToTurnStreaming: <T extends StatefulSession>(entry: T) => T;
export declare const transitionToTurnResultSeen: <T extends StatefulSession>(entry: T) => T;
export declare const transitionToTainted: <T extends StatefulSession>(entry: T) => T;
export declare const transitionToClosing: <T extends StatefulSession>(entry: T) => T;
export declare const transitionToClosed: <T extends StatefulSession>(entry: T) => T;
export declare const transitionToBroken: <T extends StatefulSession>(entry: T) => T;
export {};
//# sourceMappingURL=session-registry-state.d.ts.map