@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 16 lines 581 Bytes
Raw
1 import { OrchestrationDispatchCommandError } from "@t3tools/contracts";
2 import * as Schema from "effect/Schema";
3
4 const isOrchestrationDispatchCommandError = Schema.is(OrchestrationDispatchCommandError);
5
6 export function wasBootstrapThreadDeleted(error: unknown): boolean {
7 return (
8 isOrchestrationDispatchCommandError(error) && error.bootstrapThreadDisposition === "deleted"
9 );
10 }
11
12 export function wasBootstrapThreadNotCreated(error: unknown): boolean {
13 return (
14 isOrchestrationDispatchCommandError(error) && error.bootstrapThreadDisposition === "not-created"
15 );
16 }