@computesdk/workbench 7.0.1 → 7.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.
@@ -556,6 +556,8 @@ async function loadProvider(providerName) {
556
556
  return await import("@computesdk/blaxel");
557
557
  case "namespace":
558
558
  return await import("@computesdk/namespace");
559
+ case "hopx":
560
+ return await import("@computesdk/hopx");
559
561
  default:
560
562
  throw new Error(`Unknown provider: ${providerName}`);
561
563
  }
@@ -956,9 +958,11 @@ Switch with: ${c.cyan("provider e2b")} (gateway) or ${c.cyan("provider direct e2
956
958
  function toggleVerbose(state) {
957
959
  state.verbose = !state.verbose;
958
960
  if (state.verbose) {
959
- logSuccess("Verbose mode enabled - will show full command results");
961
+ process.env.COMPUTESDK_DEBUG = "1";
962
+ logSuccess("Verbose mode enabled - will show full command results and SDK debug logs");
960
963
  console.log(c.dim("Commands will return full result objects with metadata\n"));
961
964
  } else {
965
+ delete process.env.COMPUTESDK_DEBUG;
962
966
  logSuccess("Verbose mode disabled - showing clean output only");
963
967
  console.log(c.dim("Commands will only show stdout/stderr\n"));
964
968
  }
@@ -969,6 +973,7 @@ function showVerbose(state) {
969
973
  Verbose mode: ${status}`);
970
974
  if (state.verbose) {
971
975
  console.log(c.dim("Commands return full result objects with metadata"));
976
+ console.log(c.dim("SDK debug logging is enabled"));
972
977
  } else {
973
978
  console.log(c.dim("Commands show only stdout/stderr"));
974
979
  }
@@ -1138,6 +1143,7 @@ async function connectToLocal(state, subdomain) {
1138
1143
  const duration = Date.now() - startTime;
1139
1144
  setSandbox(state, sandboxInstance, "local");
1140
1145
  state.verbose = true;
1146
+ process.env.COMPUTESDK_DEBUG = "1";
1141
1147
  spinner.succeed(`Connected to local sandbox ${c.dim(`(${formatDuration(duration)})`)}`);
1142
1148
  console.log(c.dim(`Sandbox: ${targetSubdomain}`));
1143
1149
  console.log(c.dim(`URL: ${sandboxUrl}`));
@@ -1876,6 +1882,7 @@ async function startWorkbench() {
1876
1882
  state.currentProvider = "local";
1877
1883
  state.useDirectMode = false;
1878
1884
  state.verbose = true;
1885
+ process.env.COMPUTESDK_DEBUG = "1";
1879
1886
  } else {
1880
1887
  const hasGateway = state.availableProviders.includes("gateway");
1881
1888
  const backendProviders = state.availableProviders.filter((p) => p !== "gateway" && p !== "local");