partial: apply autonomy lifecycle fixes from f2e9af4 (queue lifecycle + transitions types)

This commit is contained in:
James Feng 2026-06-04 11:29:30 +08:00
parent a3ef9a1b12
commit 663ae6d627

View File

@ -1,3 +1,20 @@
// Auto-generated stub — replace with real implementation
export type Terminal = any;
export type Continue = any;
export type Terminal =
| { reason: 'completed' }
| { reason: 'blocking_limit' }
| { reason: 'image_error' }
| { reason: 'model_error'; error?: unknown }
| { reason: 'aborted_streaming' }
| { reason: 'aborted_tools' }
| { reason: 'prompt_too_long' }
| { reason: 'stop_hook_prevented' }
| { reason: 'hook_stopped' }
| { reason: 'max_turns'; turnCount: number }
export type Continue =
| { reason: 'collapse_drain_retry'; committed: number }
| { reason: 'reactive_compact_retry' }
| { reason: 'max_output_tokens_escalate' }
| { reason: 'max_output_tokens_recovery'; attempt: number }
| { reason: 'stop_hook_blocking' }
| { reason: 'token_budget_continuation' }
| { reason: 'next_turn' }