@gaia-ai/addon-dropsh 0.9.2 → 0.11.0
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/src/index.js +8 -1
- package/package.json +5 -5
package/dist/src/index.js
CHANGED
|
@@ -53,7 +53,14 @@ async function buildDropshCommand(host) {
|
|
|
53
53
|
const c = await loadGaiaConfig(host, { explicit: override });
|
|
54
54
|
resolvedPath = c.config_path;
|
|
55
55
|
}
|
|
56
|
-
catch {
|
|
56
|
+
catch (cause) {
|
|
57
|
+
// A config that was FOUND and then REJECTED (no `site.base_url`, no
|
|
58
|
+
// `workspace_id`) must not be reported as "no config could be loaded":
|
|
59
|
+
// that sends the reader hunting for a file which is right there and
|
|
60
|
+
// names its own problem. Only a genuine resolution failure gets the hint.
|
|
61
|
+
if (cause?.name === 'GaiaConnectionConfigError') {
|
|
62
|
+
throw cause;
|
|
63
|
+
}
|
|
57
64
|
throw new Error(dropshConfigHint(override));
|
|
58
65
|
}
|
|
59
66
|
if (!process.env.DROPSH_CONFIG) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gaia-ai/addon-dropsh",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "GAIA dropsh command plugin: the `gaia dropsh` JSON:API shell bound to the split connection config.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"directory": "gaia-cli/addons/dropsh"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@dropsh/plugin-jsonapi-schema": "^0.
|
|
24
|
-
"@dropsh/plugin-oauth2": "^0.
|
|
23
|
+
"@dropsh/plugin-jsonapi-schema": "^0.6.1",
|
|
24
|
+
"@dropsh/plugin-oauth2": "^0.6.1",
|
|
25
25
|
"commander": "^12.1.0",
|
|
26
|
-
"dropsh": "^0.
|
|
26
|
+
"dropsh": "^0.6.1"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@gaia-ai/core": "^0.
|
|
29
|
+
"@gaia-ai/core": "^0.11.0"
|
|
30
30
|
}
|
|
31
31
|
}
|