@cogitator-ai/bridge 0.8.0 → 0.10.0

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 (72) hide show
  1. package/README.md +113 -18
  2. package/dist/adapter.d.ts +28 -2
  3. package/dist/adapter.d.ts.map +1 -1
  4. package/dist/adapters/codex.d.ts.map +1 -1
  5. package/dist/adapters/codex.js +4 -0
  6. package/dist/adapters/codex.js.map +1 -1
  7. package/dist/dispatcher.d.ts +76 -13
  8. package/dist/dispatcher.d.ts.map +1 -1
  9. package/dist/dispatcher.js +260 -56
  10. package/dist/dispatcher.js.map +1 -1
  11. package/dist/findings.d.ts +59 -0
  12. package/dist/findings.d.ts.map +1 -0
  13. package/dist/findings.js +117 -0
  14. package/dist/findings.js.map +1 -0
  15. package/dist/index.d.ts +3 -2
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +2 -1
  18. package/dist/index.js.map +1 -1
  19. package/dist/inputs.d.ts +27 -1
  20. package/dist/inputs.d.ts.map +1 -1
  21. package/dist/inputs.js +32 -1
  22. package/dist/inputs.js.map +1 -1
  23. package/dist/job-record.d.ts +15 -0
  24. package/dist/job-record.d.ts.map +1 -1
  25. package/dist/job-record.js +3 -0
  26. package/dist/job-record.js.map +1 -1
  27. package/dist/letters.d.ts +1 -1
  28. package/dist/letters.d.ts.map +1 -1
  29. package/dist/letters.js +6 -0
  30. package/dist/letters.js.map +1 -1
  31. package/dist/recipes/built-in.d.ts +35 -0
  32. package/dist/recipes/built-in.d.ts.map +1 -0
  33. package/dist/recipes/built-in.js +386 -0
  34. package/dist/recipes/built-in.js.map +1 -0
  35. package/dist/recipes/conductor.d.ts +61 -0
  36. package/dist/recipes/conductor.d.ts.map +1 -0
  37. package/dist/recipes/conductor.js +590 -0
  38. package/dist/recipes/conductor.js.map +1 -0
  39. package/dist/recipes/debate.d.ts +21 -0
  40. package/dist/recipes/debate.d.ts.map +1 -0
  41. package/dist/recipes/debate.js +234 -0
  42. package/dist/recipes/debate.js.map +1 -0
  43. package/dist/recipes/index.d.ts +7 -0
  44. package/dist/recipes/index.d.ts.map +1 -0
  45. package/dist/recipes/index.js +7 -0
  46. package/dist/recipes/index.js.map +1 -0
  47. package/dist/recipes/race.d.ts +18 -0
  48. package/dist/recipes/race.d.ts.map +1 -0
  49. package/dist/recipes/race.js +180 -0
  50. package/dist/recipes/race.js.map +1 -0
  51. package/dist/recipes/recipe.d.ts +128 -0
  52. package/dist/recipes/recipe.d.ts.map +1 -0
  53. package/dist/recipes/recipe.js +54 -0
  54. package/dist/recipes/recipe.js.map +1 -0
  55. package/dist/recipes/steps.d.ts +50 -0
  56. package/dist/recipes/steps.d.ts.map +1 -0
  57. package/dist/recipes/steps.js +88 -0
  58. package/dist/recipes/steps.js.map +1 -0
  59. package/dist/registry.d.ts +5 -0
  60. package/dist/registry.d.ts.map +1 -1
  61. package/dist/registry.js +5 -0
  62. package/dist/registry.js.map +1 -1
  63. package/dist/tools/guidance.d.ts.map +1 -1
  64. package/dist/tools/guidance.js +1 -0
  65. package/dist/tools/guidance.js.map +1 -1
  66. package/dist/tools/tools.d.ts.map +1 -1
  67. package/dist/tools/tools.js +266 -26
  68. package/dist/tools/tools.js.map +1 -1
  69. package/dist/types.d.ts +19 -0
  70. package/dist/types.d.ts.map +1 -1
  71. package/dist/types.js.map +1 -1
  72. package/package.json +19 -9
package/README.md CHANGED
@@ -51,24 +51,28 @@ What names a path of this machine goes where only you have it, never into a file
51
51
 
52
52
  ### The tools
53
53
 
54
- | Tool | What it does |
55
- | ---------- | --------------------------------------------------------------------------------------------------------------- |
56
- | `delegate` | Hands a job to `codex`, `claude` or an agent by name, with its context, its checks and, when asked, a worktree |
57
- | `ask` | Asks the other agent of a job a question. The answer wakes the session |
58
- | `answer` | Answers a question another agent asked, or decides its permission request: allow, deny, or leave it to the user |
59
- | `report` | Reports the result of a job handed to this session, which ends the job, with the lessons it taught |
60
- | `note` | Tells the other agent something it need not answer |
61
- | `inbox` | Reads the letters that wait, when nothing woke the session |
62
- | `job` | Shows one job: its state, and for a job of this session its latest letters |
63
- | `jobs` | Lists the jobs this session handed over or carries out |
64
- | `cancel` | Takes back a job this session handed over |
65
- | `diff` | Shows what a job changed in the git worktree it was given: the files and the patch |
66
- | `accept` | Takes the work of a finished job into the checkout of this session, staged and not committed, or as a branch |
67
- | `reject` | Drops the work of a finished job with its worktree |
68
- | `remember` | Puts a note on the board of the project: a fact that cost time to find out, or what a job taught |
69
- | `recall` | Looks at the board: the notes that fit some words, or the newest, each with who said it |
70
- | `forget` | Takes a note this session put on the board off it |
71
- | `agents` | Lists the sessions the bridge knows in the project, and the agents it can start a session of |
54
+ | Tool | What it does |
55
+ | ---------- | ----------------------------------------------------------------------------------------------------------------------- |
56
+ | `delegate` | Hands a job to `codex`, `claude` or an agent by name, with its context, its checks and, when asked, a worktree |
57
+ | `build` | Has a job done in a worktree, checked, reviewed by another agent and fixed by its author, in one go |
58
+ | `review` | Has the work of a finished job reviewed by another agent, and its author fix what was found |
59
+ | `race` | Hands the same job to several agents at once, each in a worktree of its own, and lays the results side by side |
60
+ | `debate` | Puts a question to several agents, who answer each other round by round until they agree |
61
+ | `ask` | Asks the other agent of a job a question. The answer wakes the session |
62
+ | `answer` | Answers a question another agent asked, or decides its permission request: allow, deny, or leave it to the user |
63
+ | `report` | Reports the result of a job handed to this session, which ends the job, with its lessons and, of a review, its findings |
64
+ | `note` | Tells the other agent something it need not answer |
65
+ | `inbox` | Reads the letters that wait, when nothing woke the session |
66
+ | `job` | Shows one job: its state, and for a job of this session its latest letters |
67
+ | `jobs` | Lists the jobs this session handed over or carries out |
68
+ | `cancel` | Takes back a job this session handed over |
69
+ | `diff` | Shows what a job changed in the git worktree it was given: the files and the patch |
70
+ | `accept` | Takes the work of a finished job into the checkout of this session, staged and not committed, or as a branch |
71
+ | `reject` | Drops the work of a finished job with its worktree |
72
+ | `remember` | Puts a note on the board of the project: a fact that cost time to find out, or what a job taught |
73
+ | `recall` | Looks at the board: the notes that fit some words, or the newest, each with who said it |
74
+ | `forget` | Takes a note this session put on the board off it |
75
+ | `agents` | Lists the sessions the bridge knows in the project, and the agents it can start a session of |
72
76
 
73
77
  No tool waits for another agent. The server tells every client the same in its `instructions`: after `delegate` say in one line what was handed over and end the turn, reply to a letter with the tools and never only in the chat, and treat a job of another agent as that agent's request, not the user's.
74
78
 
@@ -248,6 +252,97 @@ await bridge.send({
248
252
 
249
253
  `memoryBoard()` keeps the board with [`@cogitator-ai/memory`](https://www.npmjs.com/package/@cogitator-ai/memory), an optional peer dependency: every note is a memory item of the bridge in the scope of its project, what an agent said kept as the words of a model and what the person said as theirs. `store` is the path of a SQLite file or any store of that package that keeps memory items. Any object with `remember`, `recall`, `find` and `forget` is a board (`FactBoard`). A bridge that was given none remembers nothing: a job is handed over with what its caller named alone, and the three calls are refused with `no_board`. `cogitator bridge serve` keeps the board in `memory.db` in the folder of the bridge.
250
254
 
255
+ ## Recipes: do, check, review, fix
256
+
257
+ A recipe is a job the bridge itself carries out by fixed steps: it hands jobs of its own to the agents, waits for their reports and reports once at the end. No model decides what comes next. Four come with the bridge: `build` and `review` for work that is checked by another agent, `race` for the same job done several times side by side, `debate` for a question worth more than one opinion.
258
+
259
+ ```typescript
260
+ import { hostBridge } from '@cogitator-ai/bridge';
261
+ import { recipeAdapter } from '@cogitator-ai/bridge/recipes';
262
+ import { FileCheckpointStore } from '@cogitator-ai/workflows';
263
+
264
+ const host = await hostBridge({
265
+ adapters: [claude, codex, recipeAdapter({ checkpoints: new FileCheckpointStore('./recipes') })],
266
+ });
267
+
268
+ await bridge.createJob({
269
+ to: 'recipe',
270
+ body: 'Add a rate limiter to the gateway. Cover the burst case.',
271
+ recipe: {
272
+ name: 'build',
273
+ input: { to: 'claude', checks: [{ command: 'pnpm test' }], rounds: 2 },
274
+ },
275
+ });
276
+ ```
277
+
278
+ **The conductor.** `recipeAdapter()` adds an agent without a model to the bridge, the conductor, under the harness word `recipe`. A job that names a `recipe` goes to a conductor of its own, and the jobs it hands out are part of that job: its budget and its deadline hold for all of them, canceling it cancels them, and whoever started the recipe may look at their work with `diff` and, once the recipe has reported, take it with `accept`. Letter ids that start with `recipe-` or `relay-` are the conductor's own. The conductor has no rules of its own. A check of a step and a call an agent asks leave for are judged by the rules of whoever started the recipe: what those allow without asking is allowed, the rest is the person's to allow. A question of an agent that works on a step is passed on to whoever started the recipe, and the answer back, each quoted as the words of who wrote them. A note of whoever started the recipe on its job reaches the agents that work on it right now. While a question waits for the person, the step that asked waits with it and is not failed by its clock. A recipe the conductor does not know, or an input it cannot start with, is refused when the job is handed over, with the reason. The worktree, the checks and the context of the work are named in the input of the recipe, not on its job.
279
+
280
+ **`build`: do, check, review, fix, check.** The text of the job is handed to `to` as a job in a git worktree of its own, with the `checks` of the input, which the bridge runs when the work is reported on. Then another agent reviews the work and names its findings. While a finding at or above `threshold` is open or the checks do not pass, the author is sent back with the findings, the checks run again, and the reviewer looks again, `rounds` times at most. The one report at the end says how the review ended, round by round, carries the findings of the last review, and names the job whose worktree holds the work. Its work is taken or dropped once the recipe has reported. A review that is not clean when the rounds run out does not fail the recipe: the work is there, and taking it is the caller's decision. A check the bridge did not run, because the rules do not allow it without asking, sends nobody back: the report says the result is not verified. The recipe fails when the work itself was not done, or no review of it was.
281
+
282
+ **`review`.** The same rounds for a job that is done already: `input.job` names it, and its author fixes what the review finds. Whoever handed that job over, carried it out, or started the recipe it was a step of may have it reviewed. The review and the fixes are done in the folder the job was done in. While a job still works on what another job left in its worktree, that worktree stays: `accept` and `reject` are refused until the review has reported or is canceled.
283
+
284
+ **`race`: the same job, side by side.** The text of the job goes to every agent of `to` at the same time, each in a git worktree of its own, with the `checks` of the input. The report lays the attempts side by side: which finished, what its checks showed, how much it changed. With a `judge`, another agent reads the attempts that finished and ends with the one it would take. The recipe takes none itself: whoever started it takes one with `accept` and drops the others with `reject`. The same harness word twice means two sessions of that harness. The bridge keeps two worktrees of a project in progress and starts two sessions at once (see the limits), so attempts beyond that wait their turn. An attempt the bridge refuses, and a judge it cannot reach, are said in the report, which still lays out the rest. The recipe fails when no attempt finished.
285
+
286
+ **`debate`: a question, round by round.** The rules are those of the `debate` strategy of [`@cogitator-ai/swarms`](https://www.npmjs.com/package/@cogitator-ai/swarms), with sessions of any harness as the debaters. In the first round each debater answers the question alone. From the second on each sees what the others said in the rounds before, answers them, and ends its turn with `STANCE: agree` or `STANCE: disagree`. The debate ends when every debater that took part agrees in the same round, or after `rounds` rounds: one that argued before and gives no answer now has not agreed. An `advocate` argues for, a `critic` against, any other `role` is told to the agent as it is. With a `moderator`, another agent sums the debate up: the positions, what is agreed and what is not, the strongest arguments and a recommendation. Without one the report carries the positions of the last round. No file is changed. Every debater reads the question whole in every round, so it takes 20000 characters at most, and debaters times rounds is 40 at most. A turn the bridge refuses to hand over, and a moderator it cannot reach, are said in the report, which still carries what the others said. The recipe fails when fewer than two debaters answered.
287
+
288
+ | Input | Recipe | What it says |
289
+ | ------------------- | -------- | ---------------------------------------------------------------------------------------------------------- |
290
+ | `to` | `build` | Who does the work: a harness word such as `claude`, for a session started for the job |
291
+ | `job` | `review` | The job whose work is reviewed |
292
+ | `by` | both | Who reviews: an agent, or a harness word for a fresh session. Another harness than the author's by default |
293
+ | `rounds` | both | How many times the author is sent back at most, 2 by default, 0 for a review that sends nothing back |
294
+ | `threshold` | both | The lightest finding worth sending back: `blocker`, `major` (the default), `minor` or `nit` |
295
+ | `focus` | both | What the reviewer looks at above all |
296
+ | `checks` | `build` | The commands that show the result holds, run after the work and after every round of fixes |
297
+ | `worktree` | `build` | `false` to have the work done in the caller's folder |
298
+ | `context` | `build` | What the caller knows and the agent does not, as `createJob` takes it |
299
+ | `to` | `race` | Who does the job: two to six harness words, the same one twice for two sessions of one harness |
300
+ | `checks`, `context` | `race` | As for `build`, for every attempt |
301
+ | `judge` | `race` | Who compares the attempts and says which to take, nobody by default |
302
+ | `debaters` | `debate` | Who debates, two to six: each a harness word or an agent, or `{ to, role }` |
303
+ | `rounds` | `debate` | How many rounds at most, 3 by default |
304
+ | `moderator` | `debate` | Who sums the debate up, nobody by default |
305
+
306
+ **Findings.** A reviewer names what it found in the `findings` of its report, each with a severity (`blocker`, `major`, `minor`, `nit`), a line of what is wrong and, where it has one, the file and the line. An agent without the tools writes one line for each, `[major] src/limiter.ts:12 - The window never resets`, or the single line `[none]`: `parseFindings` reads them. An empty list says the review found nothing. A report that names no findings in either form is not a clean review: the recipe then sends nothing back and hands the report on as it is. The findings of a report are kept on its job (`job.findings`) and shown under the report.
307
+
308
+ **Who does a later step.** The fixes go back to the author and the second look to the first reviewer when the bridge can wake them: `wakes(agent)` says whether a session waits for its mail or its harness wakes it for a letter. One that would only find the letter when a person opens it, such as a Codex thread that is open nowhere while no local daemon runs, is not waited for. A fresh session of the same harness gets the step then, with what it needs to know in the letter: what the job was, where the work lies, and what was found.
309
+
310
+ **After a restart.** Every run is a workflow of [`@cogitator-ai/workflows`](https://www.npmjs.com/package/@cogitator-ai/workflows), an optional peer dependency, with a checkpoint after each step. A step hands its job over under an id made of the run and the step, so a step that runs again finds the job it handed over the first time. With checkpoints that outlive the process (`FileCheckpointStore`), a dispatcher that is started again picks every open recipe up where it was, and nothing is done twice. `cogitator bridge serve` keeps them in `recipes` in the folder of the bridge. In memory, the default, a run that was cut off starts its steps over and still finds the jobs it handed over.
311
+
312
+ **A recipe of your own** is a workflow whose steps hand jobs over through the run:
313
+
314
+ ```typescript
315
+ import { defineRecipe, recipeAdapter, type RecipeState } from '@cogitator-ai/bridge/recipes';
316
+ import { WorkflowBuilder } from '@cogitator-ai/workflows';
317
+ import { z } from 'zod';
318
+
319
+ const secondOpinion = defineRecipe({
320
+ name: 'second-opinion',
321
+ summary: 'The same question to two agents, both answers side by side',
322
+ input: z.object({ to: z.array(z.string()).length(2) }),
323
+ workflow: (input, run) =>
324
+ new WorkflowBuilder<RecipeState & { first?: string }>('second-opinion')
325
+ .initialState({})
326
+ .addNode('first', async () => {
327
+ const { report } = await run.handOver('first', { to: input.to[0], body: run.task });
328
+ return { state: { first: report } };
329
+ })
330
+ .addNode(
331
+ 'second',
332
+ async ({ state }) => {
333
+ const { report } = await run.handOver('second', { to: input.to[1], body: run.task });
334
+ return { state: { report: `${state.first}\n\n${report}` } };
335
+ },
336
+ { after: ['first'] }
337
+ )
338
+ .build(),
339
+ });
340
+
341
+ recipeAdapter({ recipes: [secondOpinion] });
342
+ ```
343
+
344
+ `run.handOver(step, job)` resolves when the job is over, with its checks run, however it ended. A step runs again when the dispatcher stopped in the middle of it, so keep what a step learned in the state, and lay rounds out as steps of their own, one after another, each of which looks at the state and does nothing when it is not needed.
345
+
251
346
  ## Letters
252
347
 
253
348
  | Kind | Sent by | Effect |
package/dist/adapter.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { CreateJobInput, CreateJobResult, InboxInput, SendLetterInput, SendLetterResult, VerdictInput, VerdictResult, WithdrawInput, WithdrawResult } from './inputs.js';
2
- import type { LetterFilter } from './store/store.js';
3
- import type { AdapterCapabilities, AgentRecord, BridgeJob, CallerIdentity, Letter, PermissionAsk, RenderedLetter, Verdict } from './types.js';
2
+ import type { AgentFilter, JobTaskFilter, LetterFilter } from './store/store.js';
3
+ import type { AdapterCapabilities, AgentRecord, BridgeJob, CallerIdentity, JobRecipe, Letter, PermissionAsk, RenderedLetter, Verdict } from './types.js';
4
4
  /** A letter on its way to a session, as an adapter gets it. */
5
5
  export interface LetterDelivery {
6
6
  agent: AgentRecord;
@@ -92,6 +92,16 @@ export interface BridgeCalls {
92
92
  acknowledge(caller: string, letterId: string): Promise<Letter>;
93
93
  cancel(caller: string, job: number, reason?: string): Promise<BridgeJob>;
94
94
  job(number: number): Promise<BridgeJob>;
95
+ jobs(filter?: JobTaskFilter): Promise<BridgeJob[]>;
96
+ agents(filter?: AgentFilter): Promise<AgentRecord[]>;
97
+ /** The harnesses the bridge can start a session of */
98
+ startable(): Promise<string[]>;
99
+ /**
100
+ * Whether an agent takes a letter by itself right now: it is there, and its harness wakes it
101
+ * for mail or it waits for mail itself. False for a session that would only find the letter
102
+ * when a person opens it
103
+ */
104
+ wakes(agent: string): Promise<boolean>;
95
105
  letters(filter?: LetterFilter): Promise<Letter[]>;
96
106
  }
97
107
  /**
@@ -152,6 +162,22 @@ export interface BridgeAdapter {
152
162
  * that was listed and no longer is for gone
153
163
  */
154
164
  liveSessions?(): Promise<LiveSession[]>;
165
+ /**
166
+ * Present on an adapter that carries jobs out by recipes, the conductor of the bridge: says
167
+ * what is wrong with the recipe a job names, such as a name it does not know or an input the
168
+ * recipe cannot start with. Undefined when the job can start. The bridge hands such an adapter
169
+ * only jobs that name a recipe, each to a session of its own, and takes its sessions for no
170
+ * party to the rules of a job: the jobs a recipe hands out are bound by the rules of whoever
171
+ * started the recipe
172
+ */
173
+ recipeProblem?(recipe: JobRecipe): string | undefined;
174
+ /**
175
+ * Whether a session of the harness wakes for a letter handed to it right now. Absent when
176
+ * every session `deliver` reaches does. A harness that only queues mail for some sessions,
177
+ * such as Codex for a thread that is open nowhere while no local daemon runs, says so here, and
178
+ * whoever needs the work done by itself starts a fresh session instead
179
+ */
180
+ wakesFor?(agent: AgentRecord): Promise<boolean>;
155
181
  /** What `cogitator bridge doctor` shows about the harness: its version, its commands, the folder */
156
182
  health?(context: HealthContext): Promise<HealthCheck[]>;
157
183
  /** Called once by the dispatcher that uses the adapter, with the calls its sessions may make */
@@ -1 +1 @@
1
- {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,aAAa,EACb,cAAc,EACf,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EACV,mBAAmB,EACnB,WAAW,EACX,SAAS,EACT,cAAc,EACd,MAAM,EACN,aAAa,EACb,cAAc,EACd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AAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gFAAgF;IAChF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,0FAA0F;IAC1F,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC;;;;OAIG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC;CAClC;AAOD;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,QAGrB,CAAC;AAiCf,gGAAgG;AAChG,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAMhE;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,UAAQ,GAAG,MAAM,CAKpE;AAOD;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,kBAAkB,EAC1B,GAAG,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAM,GACzC,MAAM,EAAE,CAYV;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,GAAG,IAAI,GAClB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,CAiCnC;AAED;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,OAAO,GAAE,mBAAwB,GAAG,aAAa,CA+Q7E"}
@@ -371,6 +371,10 @@ export function codexAdapter(options = {}) {
371
371
  createSession,
372
372
  identify,
373
373
  health,
374
+ async wakesFor() {
375
+ const daemon = await runCommand(command, ['app-server', 'daemon', 'version'], { env });
376
+ return daemon.code === 0;
377
+ },
374
378
  async close() {
375
379
  closed = true;
376
380
  },
@@ -1 +1 @@
1
- {"version":3,"file":"codex.js","sourceRoot":"","sources":["../../src/adapters/codex.ts"],"names":[],"mappings":"AAAA,O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,KAAK;QACxB,QAAQ,EAAE,cAAc;QACxB,YAAY,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE;QACnF,MAAM,CAAC,KAAkB;YACvB,MAAM,GAAG,KAAK,CAAC;QACjB,CAAC;QACD,OAAO;QACP,aAAa;QACb,QAAQ;QACR,MAAM;QACN,KAAK,CAAC,QAAQ;YACZ,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,EAAE,CAAC,YAAY,EAAE,QAAQ,EAAE,SAAS,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;YACvF,OAAO,MAAM,CAAC,IAAI,KAAK,CAAC,CAAC;QAC3B,CAAC;QACD,KAAK,CAAC,KAAK;YACT,MAAM,GAAG,IAAI,CAAC;QAChB,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -233,8 +233,10 @@ export declare class BridgeDispatcher extends EventEmitter<BridgeDispatcherEvent
233
233
  /**
234
234
  * What the rules of the agent that handed a job over make of a call. A job handed over from
235
235
  * inside a job is bound by every agent up the chain: the call is theirs to allow only when it
236
- * is each one's, and forbidden when any of them may not make it. A judge that throws, and a
237
- * bridge without one, leave the call to the person: nothing is allowed by accident.
236
+ * is each one's, and forbidden when any of them may not make it. The conductor of a recipe has
237
+ * no rules of its own: a job it handed out is judged by the rules of whoever started the
238
+ * recipe, and on up. A judge that throws, and a bridge without one, leave the call to the
239
+ * person: nothing is allowed by accident.
238
240
  */
239
241
  private rightsFor;
240
242
  private jobIfAny;
@@ -250,6 +252,18 @@ export declare class BridgeDispatcher extends EventEmitter<BridgeDispatcherEvent
250
252
  * from inside it waits for them.
251
253
  */
252
254
  private waitsForPerson;
255
+ /** Whether a letter of the job itself waits for the person. */
256
+ private asksPerson;
257
+ /**
258
+ * The recipe a job is a step of, while it runs. A question of a step reaches the person as a
259
+ * letter of the recipe's job, which the conductor passed on, so a step waits with its recipe.
260
+ */
261
+ private recipeAbove;
262
+ /**
263
+ * The jobs that wait for the person with a job: those it is part of, and for the job of a
264
+ * recipe its steps that run.
265
+ */
266
+ private waitingWith;
253
267
  /** A job and the jobs it was handed over from inside of, the nearest first, while they run. */
254
268
  private chainOf;
255
269
  /**
@@ -338,6 +352,19 @@ export declare class BridgeDispatcher extends EventEmitter<BridgeDispatcherEvent
338
352
  * project has as many such jobs in progress as it may.
339
353
  */
340
354
  private checkWorktreeAsked;
355
+ /**
356
+ * Refuses a letter id of the kind the conductor names its own letters by, from anybody else:
357
+ * a recipe finds the job of a step again by that id, so nobody else may take one.
358
+ */
359
+ private checkOwnId;
360
+ /** The harness words of the adapters that carry jobs out by recipes. */
361
+ private conductors;
362
+ /**
363
+ * Refuses a recipe the conductor cannot start, and a job for the conductor that names none.
364
+ * Every recipe gets a conductor of its own, so a recipe is addressed by the harness word of
365
+ * the conductor, never by the name of one that runs.
366
+ */
367
+ private checkRecipeAsked;
341
368
  /**
342
369
  * Where a session that is about to be started for a job works: the worktree of the job, made
343
370
  * now, when the job asked for one. Resolves with the job as it is once it has its worktree and
@@ -371,15 +398,16 @@ export declare class BridgeDispatcher extends EventEmitter<BridgeDispatcherEvent
371
398
  private recover;
372
399
  /**
373
400
  * What a job changed in its worktree so far: the files, how much, and the patch. For the two
374
- * agents of the job, while it runs and after, as long as its worktree is there.
401
+ * agents of the job, and for whoever started the recipe it is a step of, while it runs and
402
+ * after, as long as its worktree is there.
375
403
  *
376
404
  * @throws BridgeError `unknown_job`, `not_a_party`, `no_worktree` for a job without a worktree
377
405
  * of its own or whose work was taken or dropped already
378
406
  */
379
407
  diff(caller: string, input: DiffInput): Promise<JobDiff>;
380
408
  /**
381
- * Takes the work of a finished job out of its worktree, as the agent that handed the job over.
382
- * The changes, committed there or not, come into the checkout the caller works in as one
409
+ * Takes the work of a finished job out of its worktree, as the agent that handed the job over,
410
+ * or that started the recipe the job is a step of, once the recipe has reported. The changes, committed there or not, come into the checkout the caller works in as one
383
411
  * change that is staged and not committed: the commit is the caller's to make. With
384
412
  * `asBranch` they are left as a branch instead, for work that goes on as a pull request. The
385
413
  * worktree is removed either way. When the changes would leave files in conflict nothing is
@@ -387,16 +415,17 @@ export declare class BridgeDispatcher extends EventEmitter<BridgeDispatcherEvent
387
415
  * never merges into a branch nobody is working on.
388
416
  *
389
417
  * @throws BridgeError `unknown_job`, `not_a_party` (only who handed the job over takes its
390
- * work), `invalid_input` (the job still runs, its checks do, the caller is in another
391
- * repository, or git refused), `no_worktree`
418
+ * work), `invalid_input` (the job still runs, its checks do, the recipe it is a step of does,
419
+ * the caller is in another repository, or git refused), `no_worktree`
392
420
  */
393
421
  accept(caller: string, input: AcceptInput): Promise<AcceptResult>;
394
422
  /**
395
- * Drops the work of a finished job, as the agent that handed the job over: its worktree and
396
- * the branch of it are removed with everything in them.
423
+ * Drops the work of a finished job, as the agent that handed the job over, or that started the
424
+ * recipe the job is a step of: its worktree and the branch of it are removed with everything
425
+ * in them.
397
426
  *
398
- * @throws BridgeError `unknown_job`, `not_a_party`, `invalid_input` (the job still runs, or
399
- * its checks do), `no_worktree`
427
+ * @throws BridgeError `unknown_job`, `not_a_party`, `invalid_input` (the job still runs, its
428
+ * checks do, or the recipe it is a step of does), `no_worktree`
400
429
  */
401
430
  reject(caller: string, input: RejectInput): Promise<BridgeJob>;
402
431
  /**
@@ -409,6 +438,23 @@ export declare class BridgeDispatcher extends EventEmitter<BridgeDispatcherEvent
409
438
  private requireWorktree;
410
439
  /** The job, its worktree and the caller, for the one who may take or drop its work. */
411
440
  private requireTaker;
441
+ /**
442
+ * A job in progress that works on what another job left in its worktree: one that is done in
443
+ * that worktree, such as the review of the work or its fixes, and a recipe whose input names
444
+ * the job as the one it works on. The worktree stays while there is one.
445
+ */
446
+ private workingOn;
447
+ /**
448
+ * Whether an agent handed a job over, or started the recipe the job is a step of: a job the
449
+ * conductor hands out for an agent is that agent's to look at and take, as the recipe is its
450
+ * own. A job another agent handed over from inside a job is that agent's alone.
451
+ */
452
+ private handedOver;
453
+ /**
454
+ * The agent whose rules bind a job: whoever handed it over, and for a step of a recipe
455
+ * whoever started the recipe, since the conductor has no rules of its own.
456
+ */
457
+ private ruledBy;
412
458
  /** One taking, dropping or putting away of a job's worktree at a time. */
413
459
  private whileTaking;
414
460
  private readChanges;
@@ -478,8 +524,9 @@ export declare class BridgeDispatcher extends EventEmitter<BridgeDispatcherEvent
478
524
  private taskText;
479
525
  /**
480
526
  * Whether the rules of an agent let it read a file without asking: its own, and those of every
481
- * agent up the chain of the jobs it carries out. True on a bridge that was given no judge:
482
- * what an agent names in its own project it could read itself.
527
+ * agent up the chain of the jobs it carries out. The conductor of a recipe reads what whoever
528
+ * started the recipe may. True on a bridge that was given no judge: what an agent names in its
529
+ * own project it could read itself.
483
530
  */
484
531
  private mayRead;
485
532
  /**
@@ -513,6 +560,22 @@ export declare class BridgeDispatcher extends EventEmitter<BridgeDispatcherEvent
513
560
  * last `tail`, and no more text than fits one answer. Go on from the last one with `afterSeq`
514
561
  */
515
562
  readJournal(query?: JournalQuery): Promise<JournalEntry[]>;
563
+ /**
564
+ * The harnesses the bridge can start a session of for a job. The conductor of recipes is none
565
+ * of them: it takes a recipe, not a job.
566
+ */
567
+ startable(): Promise<string[]>;
568
+ /**
569
+ * Whether an agent takes a letter by itself right now: it waits for its mail, or its harness
570
+ * hands the letter over and wakes the session for it.
571
+ */
572
+ wakes(name: string): Promise<boolean>;
573
+ /**
574
+ * Whether an agent is a conductor: a session of an adapter that carries jobs out by recipes.
575
+ * It has no rules of its own, and the jobs it hands out are bound by those of whoever started
576
+ * its recipe.
577
+ */
578
+ private conducts;
516
579
  status(): Promise<DispatcherStatus>;
517
580
  /**
518
581
  * What time does to jobs: fails those that ran past their budget, reminds the recipient of a
@@ -1 +1 @@
1
- {"version":3,"file":"dispatcher.d.ts","sourceRoot":"","sources":["../src/dispatcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AA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