@workbench-ai/workbench 0.0.85 → 0.0.86
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 +9 -2
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1118,7 +1118,7 @@ async function startCloudExecution(command, parsed, io) {
|
|
|
1118
1118
|
const token = await workbenchCloudToken({ baseUrl: source.baseUrl });
|
|
1119
1119
|
if (!token) {
|
|
1120
1120
|
throw new WorkbenchCodedError("auth_required", `workbench ${command} --cloud requires Workbench Cloud auth.`, {
|
|
1121
|
-
remediation:
|
|
1121
|
+
remediation: workbenchLoginRemediation(source.baseUrl),
|
|
1122
1122
|
exitCode: 1,
|
|
1123
1123
|
});
|
|
1124
1124
|
}
|
|
@@ -1444,7 +1444,7 @@ async function ensureCloudRemoteForExecution(root, parsed) {
|
|
|
1444
1444
|
const token = await workbenchCloudToken({ baseUrl: source.baseUrl });
|
|
1445
1445
|
if (!token) {
|
|
1446
1446
|
throw new WorkbenchCodedError("auth_required", "workbench --cloud requires Workbench Cloud auth.", {
|
|
1447
|
-
remediation:
|
|
1447
|
+
remediation: workbenchLoginRemediation(source.baseUrl),
|
|
1448
1448
|
exitCode: 1,
|
|
1449
1449
|
});
|
|
1450
1450
|
}
|
|
@@ -1799,6 +1799,13 @@ function optionalWorkbenchBaseUrl(input = {}) {
|
|
|
1799
1799
|
DEFAULT_WORKBENCH_CLOUD_BASE_URL;
|
|
1800
1800
|
return normalizeBaseUrl(value);
|
|
1801
1801
|
}
|
|
1802
|
+
function workbenchLoginRemediation(baseUrl) {
|
|
1803
|
+
const normalized = baseUrl ? normalizeBaseUrl(baseUrl) : DEFAULT_WORKBENCH_CLOUD_BASE_URL;
|
|
1804
|
+
if (normalized === DEFAULT_WORKBENCH_CLOUD_BASE_URL) {
|
|
1805
|
+
return "Run workbench login.";
|
|
1806
|
+
}
|
|
1807
|
+
return `Run workbench login --base-url ${normalized}.`;
|
|
1808
|
+
}
|
|
1802
1809
|
function normalizeBaseUrl(value) {
|
|
1803
1810
|
return value.trim().replace(/\/+$/u, "");
|
|
1804
1811
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workbench-ai/workbench",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.86",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/workbench-ai/workbench.git",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"skills": "1.5.11",
|
|
24
24
|
"yaml": "^2.8.2",
|
|
25
|
-
"@workbench-ai/workbench-built-in-adapters": "0.0.
|
|
26
|
-
"@workbench-ai/workbench-
|
|
27
|
-
"@workbench-ai/workbench-core": "0.0.
|
|
28
|
-
"@workbench-ai/workbench-
|
|
25
|
+
"@workbench-ai/workbench-built-in-adapters": "0.0.86",
|
|
26
|
+
"@workbench-ai/workbench-contract": "0.0.86",
|
|
27
|
+
"@workbench-ai/workbench-core": "0.0.86",
|
|
28
|
+
"@workbench-ai/workbench-protocol": "0.0.86"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@tailwindcss/postcss": "^4.2.2",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"react-dom": "^19.2.0",
|
|
37
37
|
"typescript": "^5.9.2",
|
|
38
38
|
"vitest": "^3.2.4",
|
|
39
|
-
"@workbench-ai/workbench-ui": "0.0.
|
|
39
|
+
"@workbench-ai/workbench-ui": "0.0.86"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "rm -rf dist && tsc -p tsconfig.json && chmod 755 dist/workbench.js && node ./scripts/build-dev-open-assets.mjs",
|