@meistrari/sandbox-sdk 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +13 -3
- package/dist/index.mjs +13 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -315,9 +315,19 @@ class SandboxClient {
|
|
|
315
315
|
if (!capturedRunId) {
|
|
316
316
|
throw error;
|
|
317
317
|
}
|
|
318
|
-
let run
|
|
319
|
-
|
|
320
|
-
run = await
|
|
318
|
+
let run;
|
|
319
|
+
try {
|
|
320
|
+
run = await this.getRun(capturedRunId);
|
|
321
|
+
if (!run.isComplete) {
|
|
322
|
+
run = await run.waitForCompletion();
|
|
323
|
+
}
|
|
324
|
+
} catch (pollError) {
|
|
325
|
+
yield {
|
|
326
|
+
type: "error",
|
|
327
|
+
runId: capturedRunId,
|
|
328
|
+
content: pollError instanceof Error ? pollError.message : "Polling fallback failed"
|
|
329
|
+
};
|
|
330
|
+
return;
|
|
321
331
|
}
|
|
322
332
|
if (run.status !== "completed") {
|
|
323
333
|
yield {
|
package/dist/index.mjs
CHANGED
|
@@ -313,9 +313,19 @@ class SandboxClient {
|
|
|
313
313
|
if (!capturedRunId) {
|
|
314
314
|
throw error;
|
|
315
315
|
}
|
|
316
|
-
let run
|
|
317
|
-
|
|
318
|
-
run = await
|
|
316
|
+
let run;
|
|
317
|
+
try {
|
|
318
|
+
run = await this.getRun(capturedRunId);
|
|
319
|
+
if (!run.isComplete) {
|
|
320
|
+
run = await run.waitForCompletion();
|
|
321
|
+
}
|
|
322
|
+
} catch (pollError) {
|
|
323
|
+
yield {
|
|
324
|
+
type: "error",
|
|
325
|
+
runId: capturedRunId,
|
|
326
|
+
content: pollError instanceof Error ? pollError.message : "Polling fallback failed"
|
|
327
|
+
};
|
|
328
|
+
return;
|
|
319
329
|
}
|
|
320
330
|
if (run.status !== "completed") {
|
|
321
331
|
yield {
|