@bakers-build/bakers 0.5.1-next.758 → 0.5.1-next.776
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/config.js +1 -1
- package/dist/src/host.js +14 -7
- package/package.json +28 -28
package/dist/src/config.js
CHANGED
|
@@ -463,7 +463,7 @@ function buildConfigCommand(parent, operation, deps, hiddenScope, description) {
|
|
|
463
463
|
...(deps.stateDir ? { stateDir: deps.stateDir } : {}),
|
|
464
464
|
}))
|
|
465
465
|
? 'A session for this connection already exists; verify it with bakers config check --scope connection --online.'
|
|
466
|
-
: 'Sign-in is the next step: run bakers
|
|
466
|
+
: 'Sign-in is the next step: run bakers auth login, then bakers config check --scope connection --online.'
|
|
467
467
|
: 'Online validation skipped because offline errors require repair or input was cancelled.';
|
|
468
468
|
report.verification.online.reason = reason;
|
|
469
469
|
report.verification.skipped.push({
|
package/dist/src/host.js
CHANGED
|
@@ -87,28 +87,29 @@ async function loadCommandPlugin(entry, bases) {
|
|
|
87
87
|
* first positional, or a bare invocation.
|
|
88
88
|
*/
|
|
89
89
|
export function scanTarget(argv, names) {
|
|
90
|
+
const index = firstPositionalIndex(argv);
|
|
91
|
+
const name = argv[index] === 'help' ? argv[index + 1] : argv[index];
|
|
92
|
+
return name !== undefined && names.includes(name) ? name : undefined;
|
|
93
|
+
}
|
|
94
|
+
function firstPositionalIndex(argv) {
|
|
90
95
|
for (let i = 0; i < argv.length; i++) {
|
|
91
96
|
const a = argv[i];
|
|
92
97
|
if (a === '--conductor') {
|
|
93
98
|
i++; // skip its value
|
|
94
99
|
continue;
|
|
95
100
|
}
|
|
96
|
-
if (a === 'help') {
|
|
97
|
-
const next = argv[i + 1];
|
|
98
|
-
return next !== undefined && names.includes(next) ? next : undefined;
|
|
99
|
-
}
|
|
100
101
|
if (a.startsWith('-'))
|
|
101
102
|
continue; // any other flag
|
|
102
|
-
return
|
|
103
|
+
return i;
|
|
103
104
|
}
|
|
104
|
-
return
|
|
105
|
+
return -1;
|
|
105
106
|
}
|
|
106
107
|
/** Add a describe-only stub for a not-loaded command so `--help` stays complete.
|
|
107
108
|
* If it is ever dispatched (a mis-scan), its action self-loads the real plugin
|
|
108
109
|
* and re-runs the host forcing that target. */
|
|
109
110
|
function addStub(program, entry, bases, argv) {
|
|
110
111
|
program
|
|
111
|
-
.command(entry.name)
|
|
112
|
+
.command(entry.name, { hidden: entry.hidden ?? false })
|
|
112
113
|
.description(pluginDescribe(entry))
|
|
113
114
|
.allowUnknownOption(true)
|
|
114
115
|
.allowExcessArguments(true)
|
|
@@ -211,6 +212,12 @@ export async function buildHostProgram(argv, opts = {}) {
|
|
|
211
212
|
}
|
|
212
213
|
/** Parse argv against the host program, mapping commander's clean exits. */
|
|
213
214
|
export async function runHost(argv, opts = {}) {
|
|
215
|
+
// Forward help to plugins that render their own complete option list.
|
|
216
|
+
const index = firstPositionalIndex(argv);
|
|
217
|
+
if (argv[index] === 'help' &&
|
|
218
|
+
resolveCommands().some((c) => c.forwardHelp && c.name === argv[index + 1])) {
|
|
219
|
+
argv = [...argv.slice(0, index), ...argv.slice(index + 1), '--help'];
|
|
220
|
+
}
|
|
214
221
|
const program = await buildHostProgram(argv, opts);
|
|
215
222
|
try {
|
|
216
223
|
await program.parseAsync(argv, { from: 'user' });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bakers-build/bakers",
|
|
3
|
-
"version": "0.5.1-next.
|
|
3
|
+
"version": "0.5.1-next.776",
|
|
4
4
|
"description": "bakers.build meta package: the `bakers` plugin-host CLI + all runtime plugins. Global install target.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,33 +38,33 @@
|
|
|
38
38
|
"jsonapi"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@bakers-build/addon-agents": "^0.5.1-next.
|
|
42
|
-
"@bakers-build/addon-auth-basic": "^0.5.1-next.
|
|
43
|
-
"@bakers-build/addon-claude": "^0.5.1-next.
|
|
44
|
-
"@bakers-build/addon-codex": "^0.5.1-next.
|
|
45
|
-
"@bakers-build/addon-deployment": "^0.5.1-next.
|
|
46
|
-
"@bakers-build/addon-dropsh": "^0.5.1-next.
|
|
47
|
-
"@bakers-build/addon-essentials": "^0.5.1-next.
|
|
48
|
-
"@bakers-build/addon-bakers-ui": "^0.5.1-next.
|
|
49
|
-
"@bakers-build/addon-bakers-ui-artifacts": "^0.5.1-next.
|
|
50
|
-
"@bakers-build/addon-grok": "^0.5.1-next.
|
|
51
|
-
"@bakers-build/addon-herdr": "^0.5.1-next.
|
|
52
|
-
"@bakers-build/addon-info": "^0.5.1-next.
|
|
53
|
-
"@bakers-build/addon-kimi": "^0.5.1-next.
|
|
54
|
-
"@bakers-build/addon-opencode": "^0.5.1-next.
|
|
55
|
-
"@bakers-build/addon-orca": "^0.5.1-next.
|
|
56
|
-
"@bakers-build/addon-pi": "^0.5.1-next.
|
|
57
|
-
"@bakers-build/addon-ports": "^0.5.1-next.
|
|
58
|
-
"@bakers-build/addon-ports-cloudflare": "^0.5.1-next.
|
|
59
|
-
"@bakers-build/addon-ports-cloudflare-quick": "^0.5.1-next.
|
|
60
|
-
"@bakers-build/addon-ports-frp": "^0.5.1-next.
|
|
61
|
-
"@bakers-build/addon-remote-drupal": "^0.5.1-next.
|
|
62
|
-
"@bakers-build/addon-track": "^0.5.1-next.
|
|
63
|
-
"@bakers-build/addon-workspace": "^0.5.1-next.
|
|
64
|
-
"@bakers-build/addon-workspace-git": "^0.5.1-next.
|
|
65
|
-
"@bakers-build/conductor": "^0.5.1-next.
|
|
66
|
-
"@bakers-build/core": "^0.5.1-next.
|
|
67
|
-
"@bakers-build/ui": "^0.5.1-next.
|
|
41
|
+
"@bakers-build/addon-agents": "^0.5.1-next.776",
|
|
42
|
+
"@bakers-build/addon-auth-basic": "^0.5.1-next.776",
|
|
43
|
+
"@bakers-build/addon-claude": "^0.5.1-next.776",
|
|
44
|
+
"@bakers-build/addon-codex": "^0.5.1-next.776",
|
|
45
|
+
"@bakers-build/addon-deployment": "^0.5.1-next.776",
|
|
46
|
+
"@bakers-build/addon-dropsh": "^0.5.1-next.776",
|
|
47
|
+
"@bakers-build/addon-essentials": "^0.5.1-next.776",
|
|
48
|
+
"@bakers-build/addon-bakers-ui": "^0.5.1-next.776",
|
|
49
|
+
"@bakers-build/addon-bakers-ui-artifacts": "^0.5.1-next.776",
|
|
50
|
+
"@bakers-build/addon-grok": "^0.5.1-next.776",
|
|
51
|
+
"@bakers-build/addon-herdr": "^0.5.1-next.776",
|
|
52
|
+
"@bakers-build/addon-info": "^0.5.1-next.776",
|
|
53
|
+
"@bakers-build/addon-kimi": "^0.5.1-next.776",
|
|
54
|
+
"@bakers-build/addon-opencode": "^0.5.1-next.776",
|
|
55
|
+
"@bakers-build/addon-orca": "^0.5.1-next.776",
|
|
56
|
+
"@bakers-build/addon-pi": "^0.5.1-next.776",
|
|
57
|
+
"@bakers-build/addon-ports": "^0.5.1-next.776",
|
|
58
|
+
"@bakers-build/addon-ports-cloudflare": "^0.5.1-next.776",
|
|
59
|
+
"@bakers-build/addon-ports-cloudflare-quick": "^0.5.1-next.776",
|
|
60
|
+
"@bakers-build/addon-ports-frp": "^0.5.1-next.776",
|
|
61
|
+
"@bakers-build/addon-remote-drupal": "^0.5.1-next.776",
|
|
62
|
+
"@bakers-build/addon-track": "^0.5.1-next.776",
|
|
63
|
+
"@bakers-build/addon-workspace": "^0.5.1-next.776",
|
|
64
|
+
"@bakers-build/addon-workspace-git": "^0.5.1-next.776",
|
|
65
|
+
"@bakers-build/conductor": "^0.5.1-next.776",
|
|
66
|
+
"@bakers-build/core": "^0.5.1-next.776",
|
|
67
|
+
"@bakers-build/ui": "^0.5.1-next.776",
|
|
68
68
|
"commander": "^12.1.0"
|
|
69
69
|
}
|
|
70
70
|
}
|