import type { OrchestrationV2ThreadShell } from "@t3tools/contracts"; export const isInternalSubagentThread = ( thread: Pick, ) => thread.lineage.relationshipToParent === "subagent" || thread.forkedFrom?.type === "node"; export const isUserFacingThread = ( thread: Pick, ) => !isInternalSubagentThread(thread);