@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.
package/dist/index.js CHANGED
@@ -559,8 +559,14 @@ async function loadProvider(providerName) {
559
559
  return await import("@computesdk/hopx");
560
560
  case "sprites":
561
561
  return await import("@computesdk/sprites");
562
+ case "agentuity":
563
+ return await import("@computesdk/agentuity");
562
564
  case "freestyle":
563
565
  return await import("@computesdk/freestyle");
566
+ case "secure-exec":
567
+ return await import("@computesdk/secure-exec");
568
+ case "upstash":
569
+ return await import("@computesdk/upstash");
564
570
  default:
565
571
  throw new Error(`Unknown provider: ${providerName}`);
566
572
  }
@@ -1375,9 +1381,6 @@ function injectWorkbenchCommands(replServer, state) {
1375
1381
  return sandbox.runCommand(command, options);
1376
1382
  };
1377
1383
  replServer.context.create = async (options) => {
1378
- if (state.useDirectMode) {
1379
- throw new Error('Named sandboxes are only available in gateway mode. Use "mode gateway" to switch.');
1380
- }
1381
1384
  const { getComputeInstance: getComputeInstance2, confirmSandboxSwitch: confirmSandboxSwitch2 } = await Promise.resolve().then(() => (init_commands(), commands_exports));
1382
1385
  const { setSandbox: setSandbox2 } = await Promise.resolve().then(() => (init_state(), state_exports));
1383
1386
  const { logSuccess: logSuccess2 } = await Promise.resolve().then(() => (init_output(), output_exports));
@@ -1388,7 +1391,7 @@ function injectWorkbenchCommands(replServer, state) {
1388
1391
  return {
1389
1392
  sandboxId: sandbox2.sandboxId,
1390
1393
  provider: sandbox2.provider,
1391
- metadata: sandbox2.getInstance().config.metadata || {}
1394
+ metadata: sandbox2.getInstance?.()?.config?.metadata || {}
1392
1395
  };
1393
1396
  }
1394
1397
  const compute2 = await getComputeInstance2(state);
@@ -1398,7 +1401,7 @@ function injectWorkbenchCommands(replServer, state) {
1398
1401
  return {
1399
1402
  sandboxId: sandbox.sandboxId,
1400
1403
  provider: sandbox.provider,
1401
- metadata: sandbox.getInstance().config.metadata || {}
1404
+ metadata: sandbox.getInstance?.()?.config?.metadata || {}
1402
1405
  };
1403
1406
  };
1404
1407
  replServer.context.findOrCreate = async (options) => {