@computesdk/workbench 21.0.0 → 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,6 +559,8 @@ 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");
564
566
  case "secure-exec":
@@ -1379,9 +1381,6 @@ function injectWorkbenchCommands(replServer, state) {
1379
1381
  return sandbox.runCommand(command, options);
1380
1382
  };
1381
1383
  replServer.context.create = async (options) => {
1382
- if (state.useDirectMode) {
1383
- throw new Error('Named sandboxes are only available in gateway mode. Use "mode gateway" to switch.');
1384
- }
1385
1384
  const { getComputeInstance: getComputeInstance2, confirmSandboxSwitch: confirmSandboxSwitch2 } = await Promise.resolve().then(() => (init_commands(), commands_exports));
1386
1385
  const { setSandbox: setSandbox2 } = await Promise.resolve().then(() => (init_state(), state_exports));
1387
1386
  const { logSuccess: logSuccess2 } = await Promise.resolve().then(() => (init_output(), output_exports));
@@ -1392,7 +1391,7 @@ function injectWorkbenchCommands(replServer, state) {
1392
1391
  return {
1393
1392
  sandboxId: sandbox2.sandboxId,
1394
1393
  provider: sandbox2.provider,
1395
- metadata: sandbox2.getInstance().config.metadata || {}
1394
+ metadata: sandbox2.getInstance?.()?.config?.metadata || {}
1396
1395
  };
1397
1396
  }
1398
1397
  const compute2 = await getComputeInstance2(state);
@@ -1402,7 +1401,7 @@ function injectWorkbenchCommands(replServer, state) {
1402
1401
  return {
1403
1402
  sandboxId: sandbox.sandboxId,
1404
1403
  provider: sandbox.provider,
1405
- metadata: sandbox.getInstance().config.metadata || {}
1404
+ metadata: sandbox.getInstance?.()?.config?.metadata || {}
1406
1405
  };
1407
1406
  };
1408
1407
  replServer.context.findOrCreate = async (options) => {