@bakers-build/addon-dropsh 0.2.1-next.211 → 0.3.1-next.308
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 +6 -1
- package/package.json +6 -5
package/dist/src/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createBbConnectionContext, discoverBbWorkspaces, loadBbConnectionBootstrap, loadReadyBbConnection, } from '@bakers-build/core';
|
|
2
|
+
import { toolPlugin } from '@dropsh/plugin-tool';
|
|
2
3
|
import { buildProgram as buildDropshProgram } from 'dropsh';
|
|
3
4
|
import { registerTemplateCommand } from './template.js';
|
|
4
5
|
import { hideUnpublishedComments } from './unpublished-comments.js';
|
|
@@ -95,8 +96,12 @@ export async function dispatchBbDropsh(host, argv, options = {}) {
|
|
|
95
96
|
: auth
|
|
96
97
|
? await loadBbConnectionBootstrap(host, opts)
|
|
97
98
|
: await loadReadyBbConnection(host, opts);
|
|
99
|
+
const plugins = connection?.plugins ?? [];
|
|
98
100
|
const program = buildDropshProgram({
|
|
99
|
-
|
|
101
|
+
// `dropsh tool` (MCP, default endpoint /mcp) rides the same connection and auth profile.
|
|
102
|
+
plugins: plugins.some((plugin) => plugin.id === 'tool')
|
|
103
|
+
? plugins
|
|
104
|
+
: [...plugins, toolPlugin()],
|
|
100
105
|
...(options.stdout ? { stdout: options.stdout } : {}),
|
|
101
106
|
...(options.stderr ? { stderr: options.stderr } : {}),
|
|
102
107
|
...(connection
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bakers-build/addon-dropsh",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1-next.308",
|
|
4
4
|
"description": "bakers.build dropsh command plugin: the `bakers dropsh` JSON:API shell bound to the split connection config.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,12 +20,13 @@
|
|
|
20
20
|
"directory": "bakers-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.8.2",
|
|
24
|
+
"@dropsh/plugin-oauth2": "^0.8.2",
|
|
25
|
+
"@dropsh/plugin-tool": "^0.8.2",
|
|
25
26
|
"commander": "^12.1.0",
|
|
26
|
-
"dropsh": "^0.
|
|
27
|
+
"dropsh": "^0.8.2"
|
|
27
28
|
},
|
|
28
29
|
"peerDependencies": {
|
|
29
|
-
"@bakers-build/core": "^0.
|
|
30
|
+
"@bakers-build/core": "^0.3.1-next.308"
|
|
30
31
|
}
|
|
31
32
|
}
|