| 1 | import { |
| 2 | threadRuntimeCanArchive, |
| 3 | type ThreadRuntimeSummary, |
| 4 | } from "@t3tools/client-runtime/state/models"; |
| 5 | |
| 6 | /** |
| 7 | * Archiving may discard queued work, but it must not detach a provider while |
| 8 | * that provider is still executing a turn. |
| 9 | */ |
| 10 | export function threadCanArchive(runtime: ThreadRuntimeSummary | null | undefined): boolean { |
| 11 | return threadRuntimeCanArchive(runtime); |
| 12 | } |