@bakers-build/ui 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.
- package/dist/src/ui.d.ts +1 -1
- package/dist/src/ui.js +16 -4
- package/package.json +5 -5
package/dist/src/ui.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export interface RunBbUiOptions {
|
|
|
41
41
|
/**
|
|
42
42
|
* The `.bakers` dir of the project the ui was started in, when there is one.
|
|
43
43
|
*
|
|
44
|
-
* Replaces the `
|
|
44
|
+
* Replaces the `ownConductorId` the local registry used to supply
|
|
45
45
|
* (BB-232): the renderer matches this against each conductor's
|
|
46
46
|
* `workspace_root` to find which record is this machine's own — it holds the
|
|
47
47
|
* JSON:API client, and this entry does not.
|
package/dist/src/ui.js
CHANGED
|
@@ -236,9 +236,16 @@ export async function cmdUi(deps = {}) {
|
|
|
236
236
|
return;
|
|
237
237
|
}
|
|
238
238
|
const mcPath = machineContextPath();
|
|
239
|
-
// The machine context
|
|
240
|
-
//
|
|
241
|
-
|
|
239
|
+
// The machine context supplies the agent binary; it is NOT the connection
|
|
240
|
+
// any more — core resolves that. A stale file stops here, naming bakers init.
|
|
241
|
+
let machine;
|
|
242
|
+
try {
|
|
243
|
+
machine = deps.machine ?? (await readMachineContext(mcPath));
|
|
244
|
+
}
|
|
245
|
+
catch (err) {
|
|
246
|
+
fail(err instanceof Error ? err.message : String(err));
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
242
249
|
const rooting = resolveProjectRooting(cwd, homedir());
|
|
243
250
|
const conductorPath = rooting.bakersDir
|
|
244
251
|
? (host.projectContext?.resolveConfigPath(cwd) ??
|
|
@@ -357,6 +364,11 @@ export async function cmdUi(deps = {}) {
|
|
|
357
364
|
`(${err instanceof Error ? err.message : String(err)}); ` +
|
|
358
365
|
'edits will be attempted through the read client.');
|
|
359
366
|
}
|
|
367
|
+
// The current user is whoever this connection signs in as; best-effort, a
|
|
368
|
+
// cockpit that cannot read it runs without the "mine" filters.
|
|
369
|
+
const currentUser = await writeClient
|
|
370
|
+
?.me?.()
|
|
371
|
+
.catch(() => undefined);
|
|
360
372
|
const project = deps.project;
|
|
361
373
|
// AC-7, always on: the resolution lands in the log even when the TUI takes
|
|
362
374
|
// over the screen a moment later.
|
|
@@ -431,7 +443,7 @@ export async function cmdUi(deps = {}) {
|
|
|
431
443
|
cwd: rooting.cwd,
|
|
432
444
|
...(project !== undefined ? { project } : {}),
|
|
433
445
|
agents,
|
|
434
|
-
...(
|
|
446
|
+
...(currentUser ? { currentUser } : {}),
|
|
435
447
|
...(rooting.bakersDir ? { bakersDir: rooting.bakersDir } : {}),
|
|
436
448
|
...(resolved.workspace_id ? { workspaceId: resolved.workspace_id } : {}),
|
|
437
449
|
configPath: resolved.config_path,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bakers-build/ui",
|
|
3
|
-
"version": "0.5.1-next.
|
|
3
|
+
"version": "0.5.1-next.851",
|
|
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,14 +26,14 @@
|
|
|
26
26
|
"directory": "bakers-cli/ui"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@bakers-build/core": "^0.5.1-next.
|
|
30
|
-
"@bakers-build/addon-herdr": "^0.5.1-next.
|
|
31
|
-
"@bakers-build/addon-workspace": "^0.5.1-next.
|
|
29
|
+
"@bakers-build/core": "^0.5.1-next.851",
|
|
30
|
+
"@bakers-build/addon-herdr": "^0.5.1-next.851",
|
|
31
|
+
"@bakers-build/addon-workspace": "^0.5.1-next.851",
|
|
32
32
|
"commander": "^12.1.0",
|
|
33
33
|
"dropsh": "^0.8.2"
|
|
34
34
|
},
|
|
35
35
|
"bakersBuild": {
|
|
36
|
-
"commit": "
|
|
36
|
+
"commit": "9547fdedfc72a8623ba101d72a39c20a9fef5a8e",
|
|
37
37
|
"channel": "next"
|
|
38
38
|
}
|
|
39
39
|
}
|