mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-20 16:05:18 +00:00
Rename Foundry handoffs to tasks (#239)
* Restore foundry onboarding stack * Consolidate foundry rename * Create foundry tasks without prompts * Rename Foundry handoffs to tasks
This commit is contained in:
parent
d30cc0bcc8
commit
d75e8c31d1
281 changed files with 9242 additions and 4356 deletions
|
|
@ -1,16 +0,0 @@
|
|||
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];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue