@bakers-build/conductor 0.11.1-next.7 → 0.11.1-next.8
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.
|
@@ -9,4 +9,4 @@ export interface ResolvedBbProjectContext {
|
|
|
9
9
|
export declare class AmbiguousProjectNameError extends Error {
|
|
10
10
|
readonly name = "AmbiguousProjectNameError";
|
|
11
11
|
}
|
|
12
|
-
export declare function resolveBbProjectContext(client: JsonApiClient, selection: BbProjectSelection): Promise<ResolvedBbProjectContext>;
|
|
12
|
+
export declare function resolveBbProjectContext(client: JsonApiClient, selection: BbProjectSelection, configPath?: string): Promise<ResolvedBbProjectContext>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export class AmbiguousProjectNameError extends Error {
|
|
2
2
|
name = 'AmbiguousProjectNameError';
|
|
3
3
|
}
|
|
4
|
-
export async function resolveBbProjectContext(client, selection) {
|
|
4
|
+
export async function resolveBbProjectContext(client, selection, configPath) {
|
|
5
5
|
let selectedWorkspace;
|
|
6
6
|
if (selection.workspace) {
|
|
7
7
|
const workspaces = await client
|
|
@@ -27,12 +27,16 @@ export async function resolveBbProjectContext(client, selection) {
|
|
|
27
27
|
query = query.where('group_id.workspace_id.id', '=', selectedWorkspace.id);
|
|
28
28
|
const projects = await query.page(2).list();
|
|
29
29
|
if (projects.length === 0) {
|
|
30
|
-
const reachable =
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
const reachable = (await client.collection('bb_workspace').page(100).list())
|
|
31
|
+
.map((row) => row.attr('name') ?? row.id)
|
|
32
|
+
.join(', ');
|
|
33
|
+
const pinned = selectedWorkspace
|
|
34
|
+
? ` in workspace "${selectedWorkspace.name}"`
|
|
35
|
+
: '';
|
|
36
|
+
const fix = selectedWorkspace
|
|
37
|
+
? ` Fix project.workspace${configPath ? ` in ${configPath}` : ''}.`
|
|
38
|
+
: '';
|
|
39
|
+
throw new Error(`bakers.build project "${selection.project}" not found${pinned}. Reachable workspaces: ${reachable || '(none)'}.${fix}`);
|
|
36
40
|
}
|
|
37
41
|
const contexts = await Promise.all(projects.map(async (project) => {
|
|
38
42
|
const groupId = project.rel('group_id');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bakers-build/conductor",
|
|
3
|
-
"version": "0.11.1-next.
|
|
3
|
+
"version": "0.11.1-next.8",
|
|
4
4
|
"description": "bakers.build conductor engine + CLI: registers, claims tickets via JSON:API, dispatches agents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@dropsh/plugin-jsonapi-schema": "^0.8.2",
|
|
34
34
|
"@dropsh/plugin-oauth2": "^0.8.2",
|
|
35
|
-
"@bakers-build/core": "^0.11.1-next.
|
|
36
|
-
"@bakers-build/message": "^0.11.1-next.
|
|
35
|
+
"@bakers-build/core": "^0.11.1-next.8",
|
|
36
|
+
"@bakers-build/message": "^0.11.1-next.8",
|
|
37
37
|
"@modelcontextprotocol/sdk": "1.32.1",
|
|
38
38
|
"commander": "^12.1.0",
|
|
39
39
|
"dropsh": "^0.8.2"
|
|
40
40
|
},
|
|
41
41
|
"bakersBuild": {
|
|
42
|
-
"commit": "
|
|
42
|
+
"commit": "8807d1cd2569de7e4555aa0485037cec48ad1d1e",
|
|
43
43
|
"channel": "next"
|
|
44
44
|
}
|
|
45
45
|
}
|