mirror of
https://github.com/stablyai/orca.git
synced 2026-10-31 00:57:45 +00:00
10 lines
493 B
TypeScript
10 lines
493 B
TypeScript
// Deliberately not `term_`: `issueHandle` revalidates the renderer graph epoch against the
|
|
// renderer-driven leaves map, so a main-minted `term_` leaf evaporates on the next window reload.
|
|
export const STRUCTURED_WORKER_HANDLE_PREFIX = 'structworker_'
|
|
|
|
export function isStructuredWorkerHandle(
|
|
handle: string | null | undefined
|
|
): handle is `${typeof STRUCTURED_WORKER_HANDLE_PREFIX}${string}` {
|
|
return typeof handle === 'string' && handle.startsWith(STRUCTURED_WORKER_HANDLE_PREFIX)
|
|
}
|