blocked はユーザー入力で解決可能な状態、error はプロバイダー障害として意味を明確化。 PieceEngine で error ステータスを検知して即座に abort する。 Codex クライアントにトランジェントエラー(stream disconnected, transport error 等)の 指数バックオフリトライ(最大3回)を追加。
31 lines
636 B
TypeScript
31 lines
636 B
TypeScript
/**
|
|
* Status and classification types
|
|
*/
|
|
|
|
/** Built-in agent types */
|
|
export type AgentType = 'coder' | 'architect' | 'supervisor' | 'custom';
|
|
|
|
/** Execution status for agents and pieces */
|
|
export type Status =
|
|
| 'pending'
|
|
| 'done'
|
|
| 'blocked'
|
|
| 'error'
|
|
| 'approved'
|
|
| 'rejected'
|
|
| 'improve'
|
|
| 'cancelled'
|
|
| 'interrupted'
|
|
| 'answer';
|
|
|
|
/** How a rule match was detected */
|
|
export type RuleMatchMethod =
|
|
| 'aggregate'
|
|
| 'phase3_tag'
|
|
| 'phase1_tag'
|
|
| 'ai_judge'
|
|
| 'ai_judge_fallback';
|
|
|
|
/** Permission mode for tool execution (provider-agnostic) */
|
|
export type PermissionMode = 'readonly' | 'edit' | 'full';
|