@computesdk/workbench 7.0.3 → 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.
package/dist/index.js CHANGED
@@ -953,9 +953,11 @@ Switch with: ${c.cyan("provider e2b")} (gateway) or ${c.cyan("provider direct e2
953
953
  function toggleVerbose(state) {
954
954
  state.verbose = !state.verbose;
955
955
  if (state.verbose) {
956
- logSuccess("Verbose mode enabled - will show full command results");
956
+ process.env.COMPUTESDK_DEBUG = "1";
957
+ logSuccess("Verbose mode enabled - will show full command results and SDK debug logs");
957
958
  console.log(c.dim("Commands will return full result objects with metadata\n"));
958
959
  } else {
960
+ delete process.env.COMPUTESDK_DEBUG;
959
961
  logSuccess("Verbose mode disabled - showing clean output only");
960
962
  console.log(c.dim("Commands will only show stdout/stderr\n"));
961
963
  }
@@ -966,6 +968,7 @@ function showVerbose(state) {
966
968
  Verbose mode: ${status}`);
967
969
  if (state.verbose) {
968
970
  console.log(c.dim("Commands return full result objects with metadata"));
971
+ console.log(c.dim("SDK debug logging is enabled"));
969
972
  } else {
970
973
  console.log(c.dim("Commands show only stdout/stderr"));
971
974
  }
@@ -1135,6 +1138,7 @@ async function connectToLocal(state, subdomain) {
1135
1138
  const duration = Date.now() - startTime;
1136
1139
  setSandbox(state, sandboxInstance, "local");
1137
1140
  state.verbose = true;
1141
+ process.env.COMPUTESDK_DEBUG = "1";
1138
1142
  spinner.succeed(`Connected to local sandbox ${c.dim(`(${formatDuration(duration)})`)}`);
1139
1143
  console.log(c.dim(`Sandbox: ${targetSubdomain}`));
1140
1144
  console.log(c.dim(`URL: ${sandboxUrl}`));
@@ -1869,6 +1873,7 @@ async function startWorkbench() {
1869
1873
  state.currentProvider = "local";
1870
1874
  state.useDirectMode = false;
1871
1875
  state.verbose = true;
1876
+ process.env.COMPUTESDK_DEBUG = "1";
1872
1877
  } else {
1873
1878
  const hasGateway = state.availableProviders.includes("gateway");
1874
1879
  const backendProviders = state.availableProviders.filter((p) => p !== "gateway" && p !== "local");