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