| ... | @@ -50,14 +50,6 @@ export function buildAgentAwarenessDeepLink(input: { | ... | @@ -50,14 +50,6 @@ export function buildAgentAwarenessDeepLink(input: { |
| 50 | return `/threads/${encodeURIComponent(input.environmentId)}/${encodeURIComponent(input.threadId)}`; | 50 | return `/threads/${encodeURIComponent(input.environmentId)}/${encodeURIComponent(input.threadId)}`; |
| 51 | } | 51 | } |
| 52 | | 52 | |
| 53 | export function isTerminalAgentAwarenessPhase(phase: AgentAwarenessPhase): boolean { | | |
| 54 | return phase === "completed" || phase === "failed"; | | |
| 55 | } | | |
| 56 | | | |
| 57 | export function isInterruptiveAgentAwarenessPhase(phase: AgentAwarenessPhase): boolean { | | |
| 58 | return phase === "waiting_for_approval" || phase === "waiting_for_input" || phase === "failed"; | | |
| 59 | } | | |
| 60 | | | |
| 61 | export function projectThreadAwareness( | 53 | export function projectThreadAwareness( |
| 62 | input: ProjectThreadAwarenessInput, | 54 | input: ProjectThreadAwarenessInput, |
| 63 | ): AgentAwarenessState | null { | 55 | ): AgentAwarenessState | null { |