@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 CHANGED
@@ -315,9 +315,19 @@ class SandboxClient {
315
315
  if (!capturedRunId) {
316
316
  throw error;
317
317
  }
318
- let run = await this.getRun(capturedRunId);
319
- if (!run.isComplete) {
320
- run = await run.waitForCompletion();
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 = await this.getRun(capturedRunId);
317
- if (!run.isComplete) {
318
- run = await run.waitForCompletion();
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/sandbox-sdk",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {