@computesdk/workbench 20.0.2 → 21.0.1

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.
@@ -564,8 +564,14 @@ async function loadProvider(providerName) {
564
564
  return await import("@computesdk/hopx");
565
565
  case "sprites":
566
566
  return await import("@computesdk/sprites");
567
+ case "agentuity":
568
+ return await import("@computesdk/agentuity");
567
569
  case "freestyle":
568
570
  return await import("@computesdk/freestyle");
571
+ case "secure-exec":
572
+ return await import("@computesdk/secure-exec");
573
+ case "upstash":
574
+ return await import("@computesdk/upstash");
569
575
  default:
570
576
  throw new Error(`Unknown provider: ${providerName}`);
571
577
  }
@@ -1384,9 +1390,6 @@ function injectWorkbenchCommands(replServer, state) {
1384
1390
  return sandbox.runCommand(command, options);
1385
1391
  };
1386
1392
  replServer.context.create = async (options) => {
1387
- if (state.useDirectMode) {
1388
- throw new Error('Named sandboxes are only available in gateway mode. Use "mode gateway" to switch.');
1389
- }
1390
1393
  const { getComputeInstance: getComputeInstance2, confirmSandboxSwitch: confirmSandboxSwitch2 } = await Promise.resolve().then(() => (init_commands(), commands_exports));
1391
1394
  const { setSandbox: setSandbox2 } = await Promise.resolve().then(() => (init_state(), state_exports));
1392
1395
  const { logSuccess: logSuccess2 } = await Promise.resolve().then(() => (init_output(), output_exports));
@@ -1397,7 +1400,7 @@ function injectWorkbenchCommands(replServer, state) {
1397
1400
  return {
1398
1401
  sandboxId: sandbox2.sandboxId,
1399
1402
  provider: sandbox2.provider,
1400
- metadata: sandbox2.getInstance().config.metadata || {}
1403
+ metadata: sandbox2.getInstance?.()?.config?.metadata || {}
1401
1404
  };
1402
1405
  }
1403
1406
  const compute2 = await getComputeInstance2(state);
@@ -1407,7 +1410,7 @@ function injectWorkbenchCommands(replServer, state) {
1407
1410
  return {
1408
1411
  sandboxId: sandbox.sandboxId,
1409
1412
  provider: sandbox.provider,
1410
- metadata: sandbox.getInstance().config.metadata || {}
1413
+ metadata: sandbox.getInstance?.()?.config?.metadata || {}
1411
1414
  };
1412
1415
  };
1413
1416
  replServer.context.findOrCreate = async (options) => {