@bakers-build/conductor 0.4.0 → 0.4.1-next.353

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.
@@ -21,7 +21,7 @@ export { findBbDir, resolveConfigPath, } from '@bakers-build/core';
21
21
  * that a short `sh '<file>'` line runs (BB-635), so its length is not bound
22
22
  * by the tty canonical cap (macOS 1024 B, Linux 4096 B). The prompt is still
23
23
  * kept single-line (BB-128 test).
24
- * Placeholders: `{identifier}`, `{state}`, `{runUuid}` ({state} falls back to
24
+ * Placeholders: `{identifier}`, `{state}`, `{runUuid}`, `{ticketUuid}` ({state} falls back to
25
25
  * `qualification` for unclassified tickets).
26
26
  *
27
27
  * WHERE THE PROMPT SENDS THE AGENT, and why it no longer names a WORKFLOW.md
@@ -29,7 +29,7 @@ export { findBbDir, resolveConfigPath, } from '@bakers-build/core';
29
29
  * that a short `sh '<file>'` line runs (BB-635), so its length is not bound
30
30
  * by the tty canonical cap (macOS 1024 B, Linux 4096 B). The prompt is still
31
31
  * kept single-line (BB-128 test).
32
- * Placeholders: `{identifier}`, `{state}`, `{runUuid}` ({state} falls back to
32
+ * Placeholders: `{identifier}`, `{state}`, `{runUuid}`, `{ticketUuid}` ({state} falls back to
33
33
  * `qualification` for unclassified tickets).
34
34
  *
35
35
  * WHERE THE PROMPT SENDS THE AGENT, and why it no longer names a WORKFLOW.md
@@ -49,7 +49,8 @@ export { findBbDir, resolveConfigPath, } from '@bakers-build/core';
49
49
  * only against the most literal readers.
50
50
  */
51
51
  export const DEFAULT_AGENT_PROMPT = `You are working ticket {identifier}, current state: {state}. Read the ticket and all comments ` +
52
- `(bakers dropsh --format md read bb_ticket/bb_ticket/$BB_ID --include comments), ` +
52
+ `(bakers dropsh --format md read bb_ticket/bb_ticket/{ticketUuid} --include comments, ` +
53
+ `run as a Bash call of its own: chained to another command it stays sandboxed without its config), ` +
53
54
  `then read ./WORKFLOW.md, load the bakers.build skill its loader names for this ticket's work type ` +
54
55
  `and state, and execute only that skill's {state} section. ` +
55
56
  `Do not start or prepare a later state. ` +
@@ -151,7 +151,8 @@ function renderPrompt(template, values) {
151
151
  return template
152
152
  .replaceAll('{identifier}', values.identifier)
153
153
  .replaceAll('{state}', values.state)
154
- .replaceAll('{runUuid}', values.runUuid);
154
+ .replaceAll('{runUuid}', values.runUuid)
155
+ .replaceAll('{ticketUuid}', values.ticketUuid);
155
156
  }
156
157
  export class Conductor {
157
158
  config;
@@ -1155,6 +1156,7 @@ export class Conductor {
1155
1156
  identifier: t.identifier,
1156
1157
  state: t.state || 'qualification',
1157
1158
  runUuid: run.runUuid,
1159
+ ticketUuid: t.uuid,
1158
1160
  })
1159
1161
  : '';
1160
1162
  // BB-473 review round 2 (Critical 1): pinning the run's own UUID
@@ -34,7 +34,7 @@ export interface ConductorSettings {
34
34
  * Agent prompt template - the bakers.build run contract, NOT project workflow. Bounds
35
35
  * the agent to exactly one state and tells it to release + stop, keeping run
36
36
  * mechanics out of the repo's WORKFLOW.md. Placeholders: `{identifier}`,
37
- * `{state}`, `{runUuid}`. Defaults to `DEFAULT_AGENT_PROMPT`.
37
+ * `{state}`, `{runUuid}`, `{ticketUuid}`. Defaults to `DEFAULT_AGENT_PROMPT`.
38
38
  */
39
39
  prompt: string;
40
40
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bakers-build/conductor",
3
- "version": "0.4.0",
3
+ "version": "0.4.1-next.353",
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,8 +32,8 @@
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.4.0",
36
- "@bakers-build/message": "^0.4.0",
35
+ "@bakers-build/core": "^0.4.1-next.353",
36
+ "@bakers-build/message": "^0.4.1-next.353",
37
37
  "commander": "^12.1.0",
38
38
  "dropsh": "^0.8.2"
39
39
  }