Integrate OpenHandoff factory workspace (#212)

This commit is contained in:
Nathan Flurry 2026-03-09 14:00:20 -07:00 committed by GitHub
parent 3d9476ed0b
commit bf282199b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
251 changed files with 42824 additions and 692 deletions

View file

@ -0,0 +1,16 @@
interface QueueSendResult {
status: "completed" | "timedOut";
response?: unknown;
}
export function expectQueueResponse<T>(result: QueueSendResult | void): T {
if (!result || result.status === "timedOut") {
throw new Error("Queue command timed out");
}
return result.response as T;
}
export function normalizeMessages<T>(input: T | T[] | null | undefined): T[] {
if (!input) return [];
return Array.isArray(input) ? input : [input];
}