@bakers-build/bakers 0.5.1-next.758 → 0.5.1-next.801

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.
@@ -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 dropsh auth login, then bakers config check --scope connection --online.'
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 names.includes(a) ? a : undefined;
103
+ return i;
103
104
  }
104
- return undefined;
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.758",
3
+ "version": "0.5.1-next.801",
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.758",
42
- "@bakers-build/addon-auth-basic": "^0.5.1-next.758",
43
- "@bakers-build/addon-claude": "^0.5.1-next.758",
44
- "@bakers-build/addon-codex": "^0.5.1-next.758",
45
- "@bakers-build/addon-deployment": "^0.5.1-next.758",
46
- "@bakers-build/addon-dropsh": "^0.5.1-next.758",
47
- "@bakers-build/addon-essentials": "^0.5.1-next.758",
48
- "@bakers-build/addon-bakers-ui": "^0.5.1-next.758",
49
- "@bakers-build/addon-bakers-ui-artifacts": "^0.5.1-next.758",
50
- "@bakers-build/addon-grok": "^0.5.1-next.758",
51
- "@bakers-build/addon-herdr": "^0.5.1-next.758",
52
- "@bakers-build/addon-info": "^0.5.1-next.758",
53
- "@bakers-build/addon-kimi": "^0.5.1-next.758",
54
- "@bakers-build/addon-opencode": "^0.5.1-next.758",
55
- "@bakers-build/addon-orca": "^0.5.1-next.758",
56
- "@bakers-build/addon-pi": "^0.5.1-next.758",
57
- "@bakers-build/addon-ports": "^0.5.1-next.758",
58
- "@bakers-build/addon-ports-cloudflare": "^0.5.1-next.758",
59
- "@bakers-build/addon-ports-cloudflare-quick": "^0.5.1-next.758",
60
- "@bakers-build/addon-ports-frp": "^0.5.1-next.758",
61
- "@bakers-build/addon-remote-drupal": "^0.5.1-next.758",
62
- "@bakers-build/addon-track": "^0.5.1-next.758",
63
- "@bakers-build/addon-workspace": "^0.5.1-next.758",
64
- "@bakers-build/addon-workspace-git": "^0.5.1-next.758",
65
- "@bakers-build/conductor": "^0.5.1-next.758",
66
- "@bakers-build/core": "^0.5.1-next.758",
67
- "@bakers-build/ui": "^0.5.1-next.758",
41
+ "@bakers-build/addon-agents": "^0.5.1-next.801",
42
+ "@bakers-build/addon-auth-basic": "^0.5.1-next.801",
43
+ "@bakers-build/addon-claude": "^0.5.1-next.801",
44
+ "@bakers-build/addon-codex": "^0.5.1-next.801",
45
+ "@bakers-build/addon-deployment": "^0.5.1-next.801",
46
+ "@bakers-build/addon-dropsh": "^0.5.1-next.801",
47
+ "@bakers-build/addon-essentials": "^0.5.1-next.801",
48
+ "@bakers-build/addon-bakers-ui": "^0.5.1-next.801",
49
+ "@bakers-build/addon-bakers-ui-artifacts": "^0.5.1-next.801",
50
+ "@bakers-build/addon-grok": "^0.5.1-next.801",
51
+ "@bakers-build/addon-herdr": "^0.5.1-next.801",
52
+ "@bakers-build/addon-info": "^0.5.1-next.801",
53
+ "@bakers-build/addon-kimi": "^0.5.1-next.801",
54
+ "@bakers-build/addon-opencode": "^0.5.1-next.801",
55
+ "@bakers-build/addon-orca": "^0.5.1-next.801",
56
+ "@bakers-build/addon-pi": "^0.5.1-next.801",
57
+ "@bakers-build/addon-ports": "^0.5.1-next.801",
58
+ "@bakers-build/addon-ports-cloudflare": "^0.5.1-next.801",
59
+ "@bakers-build/addon-ports-cloudflare-quick": "^0.5.1-next.801",
60
+ "@bakers-build/addon-ports-frp": "^0.5.1-next.801",
61
+ "@bakers-build/addon-remote-drupal": "^0.5.1-next.801",
62
+ "@bakers-build/addon-track": "^0.5.1-next.801",
63
+ "@bakers-build/addon-workspace": "^0.5.1-next.801",
64
+ "@bakers-build/addon-workspace-git": "^0.5.1-next.801",
65
+ "@bakers-build/conductor": "^0.5.1-next.801",
66
+ "@bakers-build/core": "^0.5.1-next.801",
67
+ "@bakers-build/ui": "^0.5.1-next.801",
68
68
  "commander": "^12.1.0"
69
69
  }
70
70
  }