@bakers-build/bakers 0.5.1-next.850 → 0.5.1-next.851

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.
Files changed (2) hide show
  1. package/dist/src/config.js +9 -8
  2. package/package.json +29 -29
@@ -174,8 +174,7 @@ function buildConfigCommand(parent, operation, deps, hiddenScope, description) {
174
174
  command
175
175
  .option('--dry-run', 'report planned changes without imports, network or writes')
176
176
  .addOption(new Option('--project-connection <choice>', 'retired; use --connection'))
177
- .option('--machine-id <id>', 'explicit host identity')
178
- .option('--user-id <id>', 'local operator identifier')
177
+ .option('--label <name>', 'machine display label (default: the short hostname)')
179
178
  .option('--max-parallel <number>', 'positive integer host capacity')
180
179
  .option('--base-url <url>', 'connection server URL')
181
180
  .option('--client-id <id>', 'OAuth client identifier')
@@ -210,8 +209,7 @@ function buildConfigCommand(parent, operation, deps, hiddenScope, description) {
210
209
  }
211
210
  const inputs = {};
212
211
  for (const key of [
213
- 'machineId',
214
- 'userId',
212
+ 'label',
215
213
  'baseUrl',
216
214
  'clientId',
217
215
  'workspaceId',
@@ -223,6 +221,10 @@ function buildConfigCommand(parent, operation, deps, hiddenScope, description) {
223
221
  }
224
222
  if (options.maxParallel !== undefined)
225
223
  inputs.maxParallel = Number(options.maxParallel);
224
+ // Without a terminal to ask, the machine label is the short hostname.
225
+ const defaultLabel = hostname().split('.')[0];
226
+ if (!interactive && inputs.label === undefined && defaultLabel)
227
+ inputs.label = defaultLabel;
226
228
  const secret = options.secretEnv ? env[options.secretEnv] : undefined;
227
229
  if (secret !== undefined)
228
230
  inputs.secret = secret;
@@ -312,8 +314,7 @@ function buildConfigCommand(parent, operation, deps, hiddenScope, description) {
312
314
  !plan.report.findings.some((f) => f.stage === 'scope')) {
313
315
  const deviceCode = inputs.authType === 'oauth2_device_code';
314
316
  const fields = [
315
- ['machineId', 'machine_id', 'Machine identity'],
316
- ['userId', 'user_id', 'Local operator identifier'],
317
+ ['label', 'label', 'Machine label'],
317
318
  ['baseUrl', 'site.base_url', 'Server base URL'],
318
319
  ['clientId', 'client_id', 'OAuth client identifier'],
319
320
  ['secret', 'client_secret', 'OAuth client secret'],
@@ -332,8 +333,8 @@ function buildConfigCommand(parent, operation, deps, hiddenScope, description) {
332
333
  (f.key === key || f.key?.endsWith(`.${key}`)))))
333
334
  continue;
334
335
  try {
335
- const suggested = input === 'machineId'
336
- ? hostname().split('.')[0]
336
+ const suggested = input === 'label'
337
+ ? defaultLabel
337
338
  : input === 'baseUrl'
338
339
  ? // Suggests keytec's own fleet instance so pressing Enter
339
340
  // reaches a working setup with no site to look up first;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bakers-build/bakers",
3
- "version": "0.5.1-next.850",
3
+ "version": "0.5.1-next.851",
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,37 +38,37 @@
38
38
  "jsonapi"
39
39
  ],
40
40
  "dependencies": {
41
- "@bakers-build/addon-agents": "^0.5.1-next.850",
42
- "@bakers-build/addon-auth-basic": "^0.5.1-next.850",
43
- "@bakers-build/addon-claude": "^0.5.1-next.850",
44
- "@bakers-build/addon-codex": "^0.5.1-next.850",
45
- "@bakers-build/addon-deployment": "^0.5.1-next.850",
46
- "@bakers-build/addon-dropsh": "^0.5.1-next.850",
47
- "@bakers-build/addon-essentials": "^0.5.1-next.850",
48
- "@bakers-build/addon-bakers-ui": "^0.5.1-next.850",
49
- "@bakers-build/addon-bakers-ui-artifacts": "^0.5.1-next.850",
50
- "@bakers-build/addon-grok": "^0.5.1-next.850",
51
- "@bakers-build/addon-herdr": "^0.5.1-next.850",
52
- "@bakers-build/addon-info": "^0.5.1-next.850",
53
- "@bakers-build/addon-kimi": "^0.5.1-next.850",
54
- "@bakers-build/addon-opencode": "^0.5.1-next.850",
55
- "@bakers-build/addon-orca": "^0.5.1-next.850",
56
- "@bakers-build/addon-pi": "^0.5.1-next.850",
57
- "@bakers-build/addon-ports": "^0.5.1-next.850",
58
- "@bakers-build/addon-ports-cloudflare": "^0.5.1-next.850",
59
- "@bakers-build/addon-ports-cloudflare-quick": "^0.5.1-next.850",
60
- "@bakers-build/addon-ports-frp": "^0.5.1-next.850",
61
- "@bakers-build/addon-remote-drupal": "^0.5.1-next.850",
62
- "@bakers-build/addon-track": "^0.5.1-next.850",
63
- "@bakers-build/addon-workspace": "^0.5.1-next.850",
64
- "@bakers-build/addon-workspace-git": "^0.5.1-next.850",
65
- "@bakers-build/conductor": "^0.5.1-next.850",
66
- "@bakers-build/core": "^0.5.1-next.850",
67
- "@bakers-build/ui": "^0.5.1-next.850",
41
+ "@bakers-build/addon-agents": "^0.5.1-next.851",
42
+ "@bakers-build/addon-auth-basic": "^0.5.1-next.851",
43
+ "@bakers-build/addon-claude": "^0.5.1-next.851",
44
+ "@bakers-build/addon-codex": "^0.5.1-next.851",
45
+ "@bakers-build/addon-deployment": "^0.5.1-next.851",
46
+ "@bakers-build/addon-dropsh": "^0.5.1-next.851",
47
+ "@bakers-build/addon-essentials": "^0.5.1-next.851",
48
+ "@bakers-build/addon-bakers-ui": "^0.5.1-next.851",
49
+ "@bakers-build/addon-bakers-ui-artifacts": "^0.5.1-next.851",
50
+ "@bakers-build/addon-grok": "^0.5.1-next.851",
51
+ "@bakers-build/addon-herdr": "^0.5.1-next.851",
52
+ "@bakers-build/addon-info": "^0.5.1-next.851",
53
+ "@bakers-build/addon-kimi": "^0.5.1-next.851",
54
+ "@bakers-build/addon-opencode": "^0.5.1-next.851",
55
+ "@bakers-build/addon-orca": "^0.5.1-next.851",
56
+ "@bakers-build/addon-pi": "^0.5.1-next.851",
57
+ "@bakers-build/addon-ports": "^0.5.1-next.851",
58
+ "@bakers-build/addon-ports-cloudflare": "^0.5.1-next.851",
59
+ "@bakers-build/addon-ports-cloudflare-quick": "^0.5.1-next.851",
60
+ "@bakers-build/addon-ports-frp": "^0.5.1-next.851",
61
+ "@bakers-build/addon-remote-drupal": "^0.5.1-next.851",
62
+ "@bakers-build/addon-track": "^0.5.1-next.851",
63
+ "@bakers-build/addon-workspace": "^0.5.1-next.851",
64
+ "@bakers-build/addon-workspace-git": "^0.5.1-next.851",
65
+ "@bakers-build/conductor": "^0.5.1-next.851",
66
+ "@bakers-build/core": "^0.5.1-next.851",
67
+ "@bakers-build/ui": "^0.5.1-next.851",
68
68
  "commander": "^12.1.0"
69
69
  },
70
70
  "bakersBuild": {
71
- "commit": "5f928492b2ed78efe1f782a9618ecf8bde49be3d",
71
+ "commit": "9547fdedfc72a8623ba101d72a39c20a9fef5a8e",
72
72
  "channel": "next"
73
73
  }
74
74
  }