@computesdk/workbench 21.0.0 → 21.0.2
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/bin/workbench.js +4 -5
- package/dist/bin/workbench.js.map +1 -1
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/package.json +24 -20
package/dist/bin/workbench.js
CHANGED
|
@@ -564,6 +564,8 @@ 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");
|
|
569
571
|
case "secure-exec":
|
|
@@ -1388,9 +1390,6 @@ function injectWorkbenchCommands(replServer, state) {
|
|
|
1388
1390
|
return sandbox.runCommand(command, options);
|
|
1389
1391
|
};
|
|
1390
1392
|
replServer.context.create = async (options) => {
|
|
1391
|
-
if (state.useDirectMode) {
|
|
1392
|
-
throw new Error('Named sandboxes are only available in gateway mode. Use "mode gateway" to switch.');
|
|
1393
|
-
}
|
|
1394
1393
|
const { getComputeInstance: getComputeInstance2, confirmSandboxSwitch: confirmSandboxSwitch2 } = await Promise.resolve().then(() => (init_commands(), commands_exports));
|
|
1395
1394
|
const { setSandbox: setSandbox2 } = await Promise.resolve().then(() => (init_state(), state_exports));
|
|
1396
1395
|
const { logSuccess: logSuccess2 } = await Promise.resolve().then(() => (init_output(), output_exports));
|
|
@@ -1401,7 +1400,7 @@ function injectWorkbenchCommands(replServer, state) {
|
|
|
1401
1400
|
return {
|
|
1402
1401
|
sandboxId: sandbox2.sandboxId,
|
|
1403
1402
|
provider: sandbox2.provider,
|
|
1404
|
-
metadata: sandbox2.getInstance()
|
|
1403
|
+
metadata: sandbox2.getInstance?.()?.config?.metadata || {}
|
|
1405
1404
|
};
|
|
1406
1405
|
}
|
|
1407
1406
|
const compute2 = await getComputeInstance2(state);
|
|
@@ -1411,7 +1410,7 @@ function injectWorkbenchCommands(replServer, state) {
|
|
|
1411
1410
|
return {
|
|
1412
1411
|
sandboxId: sandbox.sandboxId,
|
|
1413
1412
|
provider: sandbox.provider,
|
|
1414
|
-
metadata: sandbox.getInstance()
|
|
1413
|
+
metadata: sandbox.getInstance?.()?.config?.metadata || {}
|
|
1415
1414
|
};
|
|
1416
1415
|
};
|
|
1417
1416
|
replServer.context.findOrCreate = async (options) => {
|