@bakers-build/ui 0.7.1-next.7 → 0.8.1-next.1

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.
@@ -46,7 +46,7 @@ export interface ProjectRooting {
46
46
  *
47
47
  * The marker is core's `findProjectBbDir` — "is there a `.bakers/` here" —
48
48
  * NOT the connection walk-up `findBbConfig`. Since BB-230 the latter skips
49
- * an engine-only `conductor.config.js`, which BB-218 makes the canonical repo
49
+ * an engine-only `project.config.js`, which BB-218 makes the canonical repo
50
50
  * shape, so keying on it would leave the most common project rooted at home.
51
51
  *
52
52
  * `~/.bakers` is excluded for the same reason core labels it `home`: the walk-up
@@ -27,7 +27,7 @@ import { findProjectBbDir, homeBbDir } from '@bakers-build/core';
27
27
  *
28
28
  * The marker is core's `findProjectBbDir` — "is there a `.bakers/` here" —
29
29
  * NOT the connection walk-up `findBbConfig`. Since BB-230 the latter skips
30
- * an engine-only `conductor.config.js`, which BB-218 makes the canonical repo
30
+ * an engine-only `project.config.js`, which BB-218 makes the canonical repo
31
31
  * shape, so keying on it would leave the most common project rooted at home.
32
32
  *
33
33
  * `~/.bakers` is excluded for the same reason core labels it `home`: the walk-up
@@ -41,7 +41,7 @@ export function resolveProjectRooting(cwd, homeDir) {
41
41
  const bakersDir = findProjectBbDir(cwd);
42
42
  // Core owns where `.bakers` lives; the ui never spells the path itself. No
43
43
  // argument here: `homeDir` is the fallback cwd (the OS home), not the
44
- // `.bakers` root, and an explicit argument would beat BB_HOME by design.
44
+ // `.bakers` root, and an explicit argument would beat BAKERS_HOME by design.
45
45
  const homeDotBb = resolve(homeBbDir());
46
46
  if (bakersDir !== undefined && resolve(bakersDir) !== homeDotBb) {
47
47
  return { cwd: dirname(bakersDir), bakersDir };
package/dist/src/ui.js CHANGED
@@ -55,7 +55,7 @@ async function readCurrentBranch(cwd) {
55
55
  * with no `origin`, it yields '' and the ladder produces its named error.
56
56
  *
57
57
  * Revision 4 replaced the previous rung (an `import()` of the repo's engine
58
- * `conductor.config.js` plus a longest-prefix fallback over the then-still-alive
58
+ * `project.config.js` plus a longest-prefix fallback over the then-still-alive
59
59
  * local conductor registry) with this one read: neither could answer inside a
60
60
  * worktree (both keyed on `.bakers` DIRS, and a worktree has its own), the config
61
61
  * read needed a dynamic import of a possibly secret-bearing module, and the
@@ -73,7 +73,7 @@ async function readOriginRemoteUrl(cwd) {
73
73
  }
74
74
  }
75
75
  /**
76
- * The explicit connection leg (AC-4, D2): `--config` → `$BB_CONFIG` →
76
+ * The explicit connection leg (AC-4, D2): `--config` → `$BAKERS_CONFIG` →
77
77
  * `$DROPSH_CONFIG`, first non-empty wins. The two env vars are read because
78
78
  * core's resolver already names all three as the explicit leg and the renderer's
79
79
  * launcher already honours a pre-set `$DROPSH_CONFIG` — so the path `bakers ui`
@@ -82,7 +82,7 @@ async function readOriginRemoteUrl(cwd) {
82
82
  function resolveExplicitConfig(flag) {
83
83
  for (const candidate of [
84
84
  flag,
85
- process.env.BB_CONFIG,
85
+ process.env.BAKERS_CONFIG,
86
86
  process.env.DROPSH_CONFIG,
87
87
  ]) {
88
88
  if (candidate !== undefined && candidate.trim() !== '')
@@ -174,7 +174,7 @@ export async function cmdUi(deps = {}) {
174
174
  // else. It is set on THIS process rather than only on the re-exec's `env`
175
175
  // argument, and that placement is the whole point: `reExecUnderBun` passes
176
176
  // `env: process.env`, so the Bun child inherits it for free, while the three
177
- // paths that never re-exec (already under Bun, `$BB_UI_NO_BUN` on Node 26 +
177
+ // paths that never re-exec (already under Bun, `$BAKERS_UI_NO_BUN` on Node 26 +
178
178
  // --experimental-ffi, an injected `runUi`) load `@opentui/core` in THIS
179
179
  // process and would otherwise get the glibc default on Alpine. `@opentui/core`
180
180
  // reads the variable when it resolves its native asset — strictly later than
@@ -189,14 +189,14 @@ export async function cmdUi(deps = {}) {
189
189
  // deep-link ladder, so nothing is resolved twice across the two processes.
190
190
  if (shouldReExecUnderBun({
191
191
  bunVersion: process.versions.bun,
192
- noBun: process.env.BB_UI_NO_BUN,
192
+ noBun: process.env.BAKERS_UI_NO_BUN,
193
193
  printConfig: Boolean(deps.printConfig),
194
194
  injectedRenderer: deps.runUi !== undefined,
195
195
  })) {
196
196
  const bin = resolveBunBinary(host.resolveBases);
197
197
  if (bin === undefined) {
198
198
  fail('bakers ui: could not resolve the bun runtime. `@bakers-build/addon-bakers-ui` ' +
199
- 'depends on it; reinstall, or set $BB_UI_NO_BUN=1 to run on Node ' +
199
+ 'depends on it; reinstall, or set $BAKERS_UI_NO_BUN=1 to run on Node ' +
200
200
  '26+ with --experimental-ffi.');
201
201
  return;
202
202
  }
@@ -235,7 +235,7 @@ export async function cmdUi(deps = {}) {
235
235
  const rooting = resolveProjectRooting(cwd, homedir());
236
236
  const conductorPath = rooting.bakersDir
237
237
  ? (host.projectContext?.resolveConfigPath(cwd) ??
238
- join(rooting.bakersDir, 'conductor.config.js'))
238
+ join(rooting.bakersDir, 'project.config.js'))
239
239
  : undefined;
240
240
  const workspaceSelector = deps.workspace ??
241
241
  (conductorPath
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bakers-build/ui",
3
- "version": "0.7.1-next.7",
3
+ "version": "0.8.1-next.1",
4
4
  "description": "bakers.build project-first cockpit: the `bakers ui` command plugin (renderer resolved dynamically).",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -26,13 +26,13 @@
26
26
  "directory": "bakers-cli/ui"
27
27
  },
28
28
  "dependencies": {
29
- "@bakers-build/core": "^0.7.1-next.7",
30
- "@bakers-build/addon-workspace": "^0.7.1-next.7",
29
+ "@bakers-build/core": "^0.8.1-next.1",
30
+ "@bakers-build/addon-workspace": "^0.8.1-next.1",
31
31
  "commander": "^12.1.0",
32
32
  "dropsh": "^0.8.2"
33
33
  },
34
34
  "bakersBuild": {
35
- "commit": "082d8c57436f78e751f5a9a26a4446cec42209ce",
35
+ "commit": "c4a887bee37bb2fed14bb9ba15ad0aacf0e26f7e",
36
36
  "channel": "next"
37
37
  }
38
38
  }