@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/bin/workbench.js +6 -1
- package/dist/bin/workbench.js.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +14 -14
package/dist/bin/workbench.js
CHANGED
|
@@ -958,9 +958,11 @@ Switch with: ${c.cyan("provider e2b")} (gateway) or ${c.cyan("provider direct e2
|
|
|
958
958
|
function toggleVerbose(state) {
|
|
959
959
|
state.verbose = !state.verbose;
|
|
960
960
|
if (state.verbose) {
|
|
961
|
-
|
|
961
|
+
process.env.COMPUTESDK_DEBUG = "1";
|
|
962
|
+
logSuccess("Verbose mode enabled - will show full command results and SDK debug logs");
|
|
962
963
|
console.log(c.dim("Commands will return full result objects with metadata\n"));
|
|
963
964
|
} else {
|
|
965
|
+
delete process.env.COMPUTESDK_DEBUG;
|
|
964
966
|
logSuccess("Verbose mode disabled - showing clean output only");
|
|
965
967
|
console.log(c.dim("Commands will only show stdout/stderr\n"));
|
|
966
968
|
}
|
|
@@ -971,6 +973,7 @@ function showVerbose(state) {
|
|
|
971
973
|
Verbose mode: ${status}`);
|
|
972
974
|
if (state.verbose) {
|
|
973
975
|
console.log(c.dim("Commands return full result objects with metadata"));
|
|
976
|
+
console.log(c.dim("SDK debug logging is enabled"));
|
|
974
977
|
} else {
|
|
975
978
|
console.log(c.dim("Commands show only stdout/stderr"));
|
|
976
979
|
}
|
|
@@ -1140,6 +1143,7 @@ async function connectToLocal(state, subdomain) {
|
|
|
1140
1143
|
const duration = Date.now() - startTime;
|
|
1141
1144
|
setSandbox(state, sandboxInstance, "local");
|
|
1142
1145
|
state.verbose = true;
|
|
1146
|
+
process.env.COMPUTESDK_DEBUG = "1";
|
|
1143
1147
|
spinner.succeed(`Connected to local sandbox ${c.dim(`(${formatDuration(duration)})`)}`);
|
|
1144
1148
|
console.log(c.dim(`Sandbox: ${targetSubdomain}`));
|
|
1145
1149
|
console.log(c.dim(`URL: ${sandboxUrl}`));
|
|
@@ -1878,6 +1882,7 @@ async function startWorkbench() {
|
|
|
1878
1882
|
state.currentProvider = "local";
|
|
1879
1883
|
state.useDirectMode = false;
|
|
1880
1884
|
state.verbose = true;
|
|
1885
|
+
process.env.COMPUTESDK_DEBUG = "1";
|
|
1881
1886
|
} else {
|
|
1882
1887
|
const hasGateway = state.availableProviders.includes("gateway");
|
|
1883
1888
|
const backendProviders = state.availableProviders.filter((p) => p !== "gateway" && p !== "local");
|