@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
@@ -1 +1 @@
1
- {"version":3,"file":"letters.js","sourceRoot":"","sources":["../src/letters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EACL,aAAa,GAKd,MAAM,YAAY,CAAC;AAKpB,MAAM,UAAU,aAAa,CAAC,IAAgB;IAC5C,IAAI,IAAI,KAAK,MAAM;QAAE,OAAO,QAAQ,CAAC;IACrC,IAAI,IAAI,KAAK,UAAU,IAAI,IAAI,KAAK,YAAY;QAAE,OAAO,OAAO,CAAC;IACjE,OAAO,MAAM,CAAC;AACh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C;IACjD,IAAI,MAAM,CAAC,IAAI,KAAK,YAAY,IAAI,MAAM,CAAC,GAAG,EAAE,CAAC;QAC/C,OAAO,MAAM,CAAC,WAAW;YACvB,CAAC,CAAC,mJAAmJ;YACrJ,CAAC,CAAC,oFAAoF,CAAC;IAC3F,CAAC;IACD,IAAI,MAAM,CAAC,WAAW,EAAE,CAAC;QACvB,OAAO,8CAA8C,MAAM,CAAC,IAAI,GAAG,CAAC;IACtE,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,0EAA0E;AAC1E,MAAM,cAAc,GAAG,KAAK,CAAC;AAE7B;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,IAAY,EAAE,QAAgB;IACvD,IAAI,IAAI,CAAC,MAAM,IAAI,cAAc;QAAE,OAAO,IAAI,CAAC;IAC/C,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,cAAc,CAAC,gDAAgD,QAAQ,iBAAiB,CAAC;AACnH,CAAC;AAED,2EAA2E;AAC3E,MAAM,UAAU,aAAa,CAAC,IAAY;IACxC,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;AACrC,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,OAAO,CACrB,QAAiE,EACjE,IAAgB,EAChB,IAAY,EACZ,SAAkB;IAElB,OAAO,CACL,QAAQ,EAAE,IAAI,KAAK,IAAI;QACvB,QAAQ,CAAC,SAAS,KAAK,SAAS;QAChC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,aAAa,CAAC,IAAI,CAAC,CACrD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { type FindingSeverity } from '../findings.js';
2
+ import { type Recipe } from './recipe.js';
3
+ /** How many rounds of fixes a review goes through at most when its input names no number. */
4
+ export declare const DEFAULT_REVIEW_ROUNDS = 2;
5
+ /** The lightest finding the author is sent back to fix when the input names no threshold. */
6
+ export declare const DEFAULT_REVIEW_THRESHOLD: FindingSeverity;
7
+ /**
8
+ * `review`: an agent of another harness reads the work of a job that is done and names what it
9
+ * found, the author fixes what weighs enough, and the reviewer looks again, for as many rounds
10
+ * as the input allows. The job of the recipe ends with how the review ended and what is still
11
+ * open.
12
+ *
13
+ * Input: `job`, the job whose work is reviewed, one the caller handed over or carried out.
14
+ * `by`, who reviews: an agent, or a harness word for a fresh session, another harness than the
15
+ * author's by default. `rounds`, how many times the author is sent back at most, 2 by default,
16
+ * 0 for a review that sends nothing back. `threshold`, the lightest finding worth sending back,
17
+ * `major` by default. `focus`, what to look at above all.
18
+ */
19
+ export declare const reviewRecipe: Recipe;
20
+ /**
21
+ * `build`: do, check, review, fix, check. The text of the recipe's job is handed to an agent as
22
+ * a job in a git worktree of its own, with the checks of the input. Its work is reviewed as by
23
+ * `review`, and the author is sent back until the review is clean and the checks pass, or the
24
+ * rounds run out. The work stays in the worktree of the first job: whoever started the recipe
25
+ * takes it with `accept`.
26
+ *
27
+ * Input: `to`, who does the work. `checks`, the commands that show the result holds, run by the
28
+ * bridge on every report. `worktree`, false to work in the caller's folder. `context`, what the
29
+ * caller knows and the agent does not, as `delegate` takes it. And `by`, `rounds`, `threshold`
30
+ * and `focus` of the review.
31
+ */
32
+ export declare const buildRecipe: Recipe;
33
+ /** The recipes the conductor of the bridge knows unless its host names others. */
34
+ export declare const BUILT_IN_RECIPES: readonly Recipe[];
35
+ //# sourceMappingURL=built-in.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"built-in.d.ts","sourceRoot":"","sources":["../../src/recipes/built-in.ts"],"names":[],"mappings":"AAIA,OAAO,EAOL,KAAK,eAAe,EACrB,MAAM,gBAAgB,CAAC;AAMxB,OAAO,EAEL,KAAK,MAAM,EAIZ,MAAM,aAAa,CAAC;AAarB,6FAA6F;AAC7F,eAAO,MAAM,qBAAqB,IAAI,CAAC;AAEvC,6FAA6F;AAC7F,eAAO,MAAM,wBAAwB,EAAE,eAAyB,CAAC;AAyXjE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,EAAE,MA8CzB,CAAC;AAEH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,WAAW,EAAE,MAyCxB,CAAC;AAEH,kFAAkF;AAClF,eAAO,MAAM,gBAAgB,EAAE,SAAS,MAAM,EAK7C,CAAC"}
@@ -0,0 +1,386 @@
1
+ import { isAbsolute, join, relative } from 'node:path';
2
+ import { WorkflowBuilder } from '@cogitator-ai/workflows';
3
+ import { z } from 'zod';
4
+ import { FINDING_SEVERITIES, atLeast, findingLine, findingsCount, parseFindings, } from '../findings.js';
5
+ import { JobContextSchema } from '../handover.js';
6
+ import { oneLine, quoted } from '../letters.js';
7
+ import { JobCheckSchema } from '../types.js';
8
+ import { debateRecipe } from './debate.js';
9
+ import { raceRecipe } from './race.js';
10
+ import { defineRecipe, } from './recipe.js';
11
+ import { Address, TASK_LENGTH, checkedOf, clip, endOf, freshFor, handBack, plural, } from './steps.js';
12
+ /** How many rounds of fixes a review goes through at most when its input names no number. */
13
+ export const DEFAULT_REVIEW_ROUNDS = 2;
14
+ /** The lightest finding the author is sent back to fix when the input names no threshold. */
15
+ export const DEFAULT_REVIEW_THRESHOLD = 'major';
16
+ const Severity = z.enum(FINDING_SEVERITIES);
17
+ const ReviewOptions = {
18
+ by: Address.optional(),
19
+ rounds: z.number().int().min(0).max(5).optional(),
20
+ threshold: Severity.optional(),
21
+ focus: z.string().trim().min(1).max(4_000).optional(),
22
+ };
23
+ /** The work of a job that is done, as a review needs it. */
24
+ async function workOf(run, job, report) {
25
+ const author = await run.agent(job.to);
26
+ const worktree = job.worktree && !job.worktree.end ? job.worktree : undefined;
27
+ const end = job.worktree?.end;
28
+ const below = job.worktree ? relative(job.worktree.path, job.cwd) : '';
29
+ const inside = below.startsWith('..') || isAbsolute(below) ? '' : below;
30
+ const taken = end?.how === 'accepted' && end.into ? join(end.into, inside) : undefined;
31
+ return {
32
+ job: job.number,
33
+ author: job.to,
34
+ harness: author?.harness ?? '',
35
+ cwd: worktree ? job.cwd : (taken ?? (job.worktree ? run.job.cwd : job.cwd)),
36
+ ...(worktree && { root: worktree.path, base: worktree.base }),
37
+ task: await run.taskOf(job),
38
+ checks: job.checks,
39
+ ...(report && { report }),
40
+ };
41
+ }
42
+ /**
43
+ * Whether whoever started the recipe may have the work of a job reviewed: the agent that did the
44
+ * job, the one that handed it over, and the one that started the recipe the job was a step of.
45
+ */
46
+ async function mayHaveReviewed(run, job) {
47
+ const caller = run.job.from;
48
+ if (job.to === caller)
49
+ return true;
50
+ const conductors = (await run.agent(run.conductor))?.harness;
51
+ for (let at = job; at;) {
52
+ if (at.from === caller)
53
+ return true;
54
+ const byRecipe = (await run.agent(at.from))?.harness === conductors;
55
+ if (!byRecipe || at.parent === undefined)
56
+ return false;
57
+ at = await run.lookAt(at.parent);
58
+ }
59
+ return false;
60
+ }
61
+ /**
62
+ * Who reviews when the input names nobody: a fresh session of another harness than the
63
+ * author's, which reads the work with other eyes, and of the author's own when the bridge can
64
+ * start no other. A harness word in the input gets a fresh session too: a session that is open
65
+ * already may be the one that asked for the review.
66
+ */
67
+ async function reviewerFor(run, plan, work) {
68
+ if (plan.by)
69
+ return freshFor(plan.by);
70
+ const startable = await run.startable();
71
+ const other = startable.find((harness) => harness !== work.harness);
72
+ const harness = other ?? (startable.includes(work.harness) ? work.harness : undefined);
73
+ if (!harness) {
74
+ throw new Error('The bridge can start no session to review the work. Name the reviewer in the input of the recipe: by');
75
+ }
76
+ return `${harness}:new`;
77
+ }
78
+ function whereText(work) {
79
+ return work.base
80
+ ? `The work is in ${work.root ?? work.cwd}, a git worktree made from commit ${work.base.slice(0, 10)}: \`git diff ${work.base.slice(0, 10)}\` there shows what the job changed, committed or not, and \`git status\` the files it added.${work.root && work.root !== work.cwd ? ` The job was done in ${work.cwd}.` : ''}`
81
+ : `The work is in ${work.cwd}, where the job was done: \`git status\` and \`git diff\` there show what is not committed yet.`;
82
+ }
83
+ const HOW_TO_REPORT = [
84
+ 'Report what you found as findings, each with its severity: blocker (must not go in as it is), major (should be fixed first), minor (worth fixing), nit (a matter of taste).',
85
+ 'Name them in the findings of your report when your report takes them. Otherwise write one line for each, in exactly this form:',
86
+ '[severity] path/to/file:line - what is wrong, and what would be right',
87
+ 'and the single line [none] when you found nothing. Report only what you checked in the code yourself.',
88
+ ].join('\n');
89
+ function reviewText(work, plan, state, round) {
90
+ const before = state.rounds.at(-1);
91
+ const parts = [
92
+ `Review the work of job #${work.job}, done by ${work.author}. Change no file: read, run what you need to check, and report.`,
93
+ `The job was:\n${quoted(clip(work.task, TASK_LENGTH))}`,
94
+ whereText(work),
95
+ ];
96
+ if (plan.focus)
97
+ parts.push(`Look at this above all:\n${quoted(plan.focus)}`);
98
+ if (round > 1 && before) {
99
+ const asked = (before.findings ?? []).filter((finding) => atLeast(finding, plan.threshold));
100
+ parts.push([
101
+ `This is round ${round}. ${work.author} was sent back to fix what the round before found:`,
102
+ ...(asked.length > 0 ? asked.map(findingLine) : ['the checks of the job, which failed']),
103
+ ...(before.fixReport ? [`and reported:\n${quoted(clip(before.fixReport))}`] : []),
104
+ 'Check that each is fixed, and that the fixes broke nothing.',
105
+ ].join('\n'));
106
+ }
107
+ parts.push(HOW_TO_REPORT);
108
+ return parts.join('\n\n');
109
+ }
110
+ function fixText(work, plan, state) {
111
+ const findings = state.rounds.at(-1)?.findings ?? [];
112
+ const must = findings.filter((finding) => atLeast(finding, plan.threshold));
113
+ const may = findings.filter((finding) => !atLeast(finding, plan.threshold));
114
+ const parts = [
115
+ `Fix what the review of your work on job #${work.job} found. You work where you did the job: ${work.cwd}.`,
116
+ ];
117
+ if (must.length > 0)
118
+ parts.push(['To fix:', ...must.map(findingLine)].join('\n'));
119
+ if (state.checked?.failed) {
120
+ parts.push(`The checks of the job do not pass${state.checked.summary ? `: ${oneLine(state.checked.summary)}` : ''}. Make them pass.`);
121
+ }
122
+ if (may.length > 0) {
123
+ parts.push(['Found too, fix what is quick and safe to fix:', ...may.map(findingLine)].join('\n'));
124
+ }
125
+ parts.push('Fix each one, or say in your report why it is no problem. Leave alone what the findings do not touch.');
126
+ return parts.join('\n\n');
127
+ }
128
+ function needsFix(state, plan) {
129
+ const findings = state.rounds.at(-1)?.findings ?? [];
130
+ return (findings.some((finding) => atLeast(finding, plan.threshold)) || state.checked?.failed === true);
131
+ }
132
+ async function review(run, plan, state, round) {
133
+ const work = state.work;
134
+ if (!work || state.stopped)
135
+ return {};
136
+ const job = {
137
+ title: `Review of job #${work.job}${round > 1 ? `, round ${round}` : ''}`,
138
+ cwd: work.cwd,
139
+ body: reviewText(work, plan, state, round),
140
+ };
141
+ const before = state.rounds.at(-1);
142
+ const reviewer = before ? await run.agent(before.reviewer) : undefined;
143
+ const outcome = before && reviewer
144
+ ? await handBack(run, `review-${round}`, reviewer, job, 'You did not see the rounds before: read the work as it is now.')
145
+ : await run.handOver(`review-${round}`, {
146
+ ...job,
147
+ to: state.reviewer ?? (await reviewerFor(run, plan, work)),
148
+ });
149
+ if (outcome.job.state !== 'completed') {
150
+ return {
151
+ rounds: [...state.rounds, { review: outcome.job.number, reviewer: outcome.job.to }],
152
+ stopped: 'review-failed',
153
+ };
154
+ }
155
+ const findings = outcome.job.findings ?? (outcome.report ? parseFindings(outcome.report) : undefined);
156
+ const rounds = [
157
+ ...state.rounds,
158
+ { review: outcome.job.number, reviewer: outcome.job.to, ...(findings && { findings }) },
159
+ ];
160
+ if (!findings)
161
+ return { rounds, stopped: 'unreadable', report: outcome.report };
162
+ const next = { ...state, rounds };
163
+ return { rounds, findings, ...(!needsFix(next, plan) && { stopped: 'clean' }) };
164
+ }
165
+ async function fix(run, plan, state, round) {
166
+ const work = state.work;
167
+ const last = state.rounds.at(-1);
168
+ if (!work || !last || state.stopped)
169
+ return {};
170
+ const outcome = await handBack(run, `fix-${round}`, { name: work.author, harness: work.harness }, {
171
+ title: `Fixes after the review of job #${work.job}${round > 1 ? `, round ${round}` : ''}`,
172
+ cwd: work.cwd,
173
+ checks: work.checks,
174
+ body: fixText(work, plan, state),
175
+ }, `You did not do that job yourself. It was:\n${quoted(clip(work.task, TASK_LENGTH))}\n\n${whereText(work)}`);
176
+ const rounds = [
177
+ ...state.rounds.slice(0, -1),
178
+ {
179
+ ...last,
180
+ fix: outcome.job.number,
181
+ ...(outcome.report && { fixReport: outcome.report }),
182
+ },
183
+ ];
184
+ if (outcome.job.state !== 'completed')
185
+ return { rounds, stopped: 'fix-failed' };
186
+ const checked = checkedOf(outcome.job);
187
+ return { rounds, ...(checked && { checked }) };
188
+ }
189
+ /** What the recipe tells whoever started it: how the review ended, round by round. */
190
+ function summary(state, plan) {
191
+ const work = state.work;
192
+ if (!work)
193
+ return state.report ? {} : { failed: true, report: 'The recipe found no work' };
194
+ const last = state.rounds.at(-1);
195
+ const fixes = state.rounds.filter((round) => round.fix !== undefined).length;
196
+ const open = (last?.findings ?? []).filter((finding) => atLeast(finding, plan.threshold));
197
+ const after = fixes > 0 ? ` after ${plural(fixes, 'round')} of fixes` : '';
198
+ const lines = [];
199
+ if (!last) {
200
+ lines.push(`The work of job #${work.job} by ${work.author} was not reviewed.`);
201
+ }
202
+ else if (state.stopped === 'clean') {
203
+ lines.push(`The work of job #${work.job} by ${work.author} passed the review of ${last.reviewer}${after}: nothing at or above ${plan.threshold} is open.`);
204
+ }
205
+ else if (state.stopped === 'review-failed') {
206
+ lines.push(`The review of job #${work.job} did not finish: job #${last.review} of ${last.reviewer} ended without a report of what it found.`);
207
+ }
208
+ else if (state.stopped === 'unreadable') {
209
+ lines.push(`${last.reviewer} reviewed job #${work.job} and named its findings in no form the bridge reads, so nothing was sent back to be fixed. Its report:`, quoted(clip(state.report ?? '')));
210
+ }
211
+ else if (state.stopped === 'fix-failed') {
212
+ lines.push(`The review of job #${work.job} is not clean: ${work.author} did not finish the fixes of job #${last.fix ?? last.review}. ${findingsCount(open)} at or above ${plan.threshold} were open before them.`);
213
+ }
214
+ else {
215
+ const left = [
216
+ ...(open.length > 0
217
+ ? [
218
+ `${findingsCount(open)} at or above ${plan.threshold} ${open.length === 1 ? 'is' : 'are'} still open`,
219
+ ]
220
+ : []),
221
+ ...(state.checked?.failed ? ['the checks do not pass'] : []),
222
+ ];
223
+ lines.push(`The review of job #${work.job} is not clean${after}: ${left.join(', and ')}.`);
224
+ }
225
+ if (state.checked) {
226
+ lines.push(`Checks: ${state.checked.verified ? 'passed' : state.checked.failed ? 'not passed' : 'not verified, the bridge did not run all of them'}${state.checked.summary ? `. ${oneLine(state.checked.summary)}` : ''}`);
227
+ }
228
+ for (const [at, round] of state.rounds.entries()) {
229
+ const found = round.findings ? findingsCount(round.findings) : 'no findings the bridge reads';
230
+ const fixed = round.fix === undefined ? '' : `, fixes in job #${round.fix}`;
231
+ lines.push(`Round ${at + 1}: review in job #${round.review} by ${round.reviewer}, ${found}${fixed}.`);
232
+ }
233
+ lines.push(work.base
234
+ ? `The work is in the worktree of job #${work.job}, with the fixes: look at it with diff, take it with accept, drop it with reject, each for job ${work.job}.`
235
+ : `The work is in ${work.cwd}, with the fixes.`);
236
+ if (work.report)
237
+ lines.push(`${work.author} reported on the job:\n${quoted(clip(work.report))}`);
238
+ return {
239
+ report: lines.join('\n'),
240
+ ...(state.stopped === 'review-failed' && { failed: true }),
241
+ ...(last?.findings && { findings: last.findings }),
242
+ };
243
+ }
244
+ function planOf(input) {
245
+ return {
246
+ rounds: input.rounds ?? DEFAULT_REVIEW_ROUNDS,
247
+ threshold: input.threshold ?? DEFAULT_REVIEW_THRESHOLD,
248
+ ...(input.focus && { focus: input.focus }),
249
+ ...(input.by && { by: input.by }),
250
+ };
251
+ }
252
+ /**
253
+ * The steps of a review, after the one that finds the work: a review, then for every round a fix
254
+ * by the author and a review of it, then the report. Each step looks at the state first and does
255
+ * nothing once the review is clean or cannot go on, so the steps run in one line and a run that
256
+ * was restarted passes over those it finished.
257
+ */
258
+ function reviewWorkflow(name, run, plan, find) {
259
+ const builder = new WorkflowBuilder(name).initialState({ rounds: [] });
260
+ let last;
261
+ const step = (stepName, work) => {
262
+ builder.addNode(stepName, async ({ state }) => ({ state: await work(state) }), last === undefined ? undefined : { after: [last] });
263
+ last = stepName;
264
+ };
265
+ step('work', find);
266
+ step('review-1', (state) => review(run, plan, state, 1));
267
+ for (let round = 1; round <= plan.rounds; round += 1) {
268
+ step(`fix-${round}`, (state) => fix(run, plan, state, round));
269
+ step(`review-${round + 1}`, (state) => review(run, plan, state, round + 1));
270
+ }
271
+ step('report', async (state) => summary(state, plan));
272
+ return builder.build();
273
+ }
274
+ /**
275
+ * `review`: an agent of another harness reads the work of a job that is done and names what it
276
+ * found, the author fixes what weighs enough, and the reviewer looks again, for as many rounds
277
+ * as the input allows. The job of the recipe ends with how the review ended and what is still
278
+ * open.
279
+ *
280
+ * Input: `job`, the job whose work is reviewed, one the caller handed over or carried out.
281
+ * `by`, who reviews: an agent, or a harness word for a fresh session, another harness than the
282
+ * author's by default. `rounds`, how many times the author is sent back at most, 2 by default,
283
+ * 0 for a review that sends nothing back. `threshold`, the lightest finding worth sending back,
284
+ * `major` by default. `focus`, what to look at above all.
285
+ */
286
+ export const reviewRecipe = defineRecipe({
287
+ name: 'review',
288
+ summary: 'An agent of another harness reviews the work of a job, the author fixes what was found, the reviewer checks again',
289
+ input: z.strictObject({ job: z.number().int().positive(), ...ReviewOptions }),
290
+ workflow(input, run) {
291
+ const plan = planOf(input);
292
+ return reviewWorkflow('bridge-review', run, plan, async () => {
293
+ const job = await run.lookAt(input.job);
294
+ if (!(await mayHaveReviewed(run, job))) {
295
+ return {
296
+ failed: true,
297
+ stopped: 'no-work',
298
+ report: `Job #${job.number} is between ${job.from} and ${job.to}: only they, and whoever started the recipe it is a step of, have it reviewed.`,
299
+ };
300
+ }
301
+ const none = (report) => ({
302
+ failed: true,
303
+ stopped: 'no-work',
304
+ report,
305
+ });
306
+ if (job.recipe) {
307
+ return none(`Job #${job.number} is a recipe and holds no work itself: have the job reviewed that its report names as holding the work.`);
308
+ }
309
+ if (job.state !== 'completed' || job.checking) {
310
+ return none(`There is no finished work to review: ${endOf(job)}${job.checking ? ', and its checks still run' : ''}.`);
311
+ }
312
+ const end = job.worktree?.end;
313
+ if (end && end.how !== 'accepted') {
314
+ return none(`The work of job #${job.number} is not there to review: it was ${end.how === 'branch' ? 'left as a branch' : end.how === 'rejected' ? 'dropped' : 'put away by the bridge'}.`);
315
+ }
316
+ const work = await workOf(run, job);
317
+ const checked = checkedOf(job);
318
+ return {
319
+ work,
320
+ reviewer: await reviewerFor(run, plan, work),
321
+ ...(checked && { checked }),
322
+ };
323
+ });
324
+ },
325
+ });
326
+ /**
327
+ * `build`: do, check, review, fix, check. The text of the recipe's job is handed to an agent as
328
+ * a job in a git worktree of its own, with the checks of the input. Its work is reviewed as by
329
+ * `review`, and the author is sent back until the review is clean and the checks pass, or the
330
+ * rounds run out. The work stays in the worktree of the first job: whoever started the recipe
331
+ * takes it with `accept`.
332
+ *
333
+ * Input: `to`, who does the work. `checks`, the commands that show the result holds, run by the
334
+ * bridge on every report. `worktree`, false to work in the caller's folder. `context`, what the
335
+ * caller knows and the agent does not, as `delegate` takes it. And `by`, `rounds`, `threshold`
336
+ * and `focus` of the review.
337
+ */
338
+ export const buildRecipe = defineRecipe({
339
+ name: 'build',
340
+ summary: 'An agent does the job in a worktree of its own, the bridge runs the checks, another agent reviews, the author fixes, until it is clean',
341
+ input: z.strictObject({
342
+ to: Address,
343
+ checks: z.array(JobCheckSchema).max(50).optional(),
344
+ worktree: z.boolean().optional(),
345
+ context: JobContextSchema.optional(),
346
+ ...ReviewOptions,
347
+ }),
348
+ workflow(input, run) {
349
+ const plan = planOf(input);
350
+ return reviewWorkflow('bridge-build', run, plan, async () => {
351
+ const outcome = await run.handOver('work', {
352
+ to: input.to,
353
+ title: run.job.title,
354
+ body: run.task,
355
+ ...(input.worktree !== false && { worktree: true }),
356
+ ...(input.checks && { checks: input.checks }),
357
+ ...(input.context && { context: input.context }),
358
+ });
359
+ if (outcome.job.state !== 'completed') {
360
+ return {
361
+ failed: true,
362
+ stopped: 'no-work',
363
+ report: [
364
+ `The work was not done: ${endOf(outcome.job)}.`,
365
+ ...(outcome.report ? [quoted(clip(outcome.report))] : []),
366
+ ].join('\n'),
367
+ };
368
+ }
369
+ const work = await workOf(run, outcome.job, outcome.report);
370
+ const checked = checkedOf(outcome.job);
371
+ return {
372
+ work,
373
+ reviewer: await reviewerFor(run, plan, work),
374
+ ...(checked && { checked }),
375
+ };
376
+ });
377
+ },
378
+ });
379
+ /** The recipes the conductor of the bridge knows unless its host names others. */
380
+ export const BUILT_IN_RECIPES = [
381
+ reviewRecipe,
382
+ buildRecipe,
383
+ raceRecipe,
384
+ debateRecipe,
385
+ ];
386
+ //# sourceMappingURL=built-in.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"built-in.js","sourceRoot":"","sources":["../../src/recipes/built-in.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,kBAAkB,EAClB,OAAO,EACP,WAAW,EACX,aAAa,EACb,aAAa,GAGd,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,cAAc,EAAiC,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EACL,YAAY,GAKb,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,OAAO,EACP,WAAW,EACX,SAAS,EACT,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,MAAM,GAEP,MAAM,YAAY,CAAC;AAEpB,6FAA6F;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BACN,0BAA0B,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG;wBAC/C,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;qBAC1D,CAAC,IAAI,CAAC,IAAI,CAAC;iBACb,CAAC;YACJ,CAAC;YACD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;YAC5D,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;YACvC,OAAO;gBACL,IAAI;gBACJ,QAAQ,EAAE,MAAM,WAAW,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC;gBAC5C,GAAG,CAAC,OAAO,IAAI,EAAE,OAAO,EAAE,CAAC;aAC5B,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC;AAEH,kFAAkF;AAClF,MAAM,CAAC,MAAM,gBAAgB,GAAsB;IACjD,YAAY;IACZ,WAAW;IACX,UAAU;IACV,YAAY;CACb,CAAC"}
@@ -0,0 +1,61 @@
1
+ import { Cogitator } from '@cogitator-ai/core';
2
+ import type { CheckpointStore } from '@cogitator-ai/types';
3
+ import type { BridgeAdapter } from '../adapter.js';
4
+ import type { Recipe } from './recipe.js';
5
+ /** How letters reach the conductor: handed to it in the process of the dispatcher. */
6
+ export declare const RECIPE_DELIVERY = "recipe";
7
+ export interface RecipeAdapterOptions {
8
+ /** The recipes the conductor knows, the built-in ones (`BUILT_IN_RECIPES`) by default */
9
+ recipes?: readonly Recipe[];
10
+ /**
11
+ * Where the checkpoints of the runs are kept. With a store that outlives the process, such as
12
+ * `FileCheckpointStore`, a recipe goes on from its last finished step after the dispatcher was
13
+ * restarted. In memory by default, which loses the place of a run with the process
14
+ */
15
+ checkpoints?: CheckpointStore;
16
+ /**
17
+ * The runtime the steps run in, for a recipe whose step runs an agent of its own. One without
18
+ * models is made when absent: the built-in recipes call no model
19
+ */
20
+ runtime?: Cogitator;
21
+ /** The harness word of the conductor, `recipe` by default */
22
+ harness?: string;
23
+ /**
24
+ * How often the conductor looks at a job it waits for when no letter about it comes, 5 s by
25
+ * default. A report wakes it at once: this catches a job that ended without a letter to it
26
+ */
27
+ pollMs?: number;
28
+ /** Hears what went wrong outside a call of the bridge: a report that could not be sent */
29
+ onError?: (error: Error) => void;
30
+ /** How long a run that was told to stop is waited for when the host closes, 5 s by default */
31
+ stopGraceMs?: number;
32
+ }
33
+ /**
34
+ * The conductor of the bridge: an agent without a model that carries a job out by the steps of
35
+ * a recipe. A job that names a recipe goes to it (`createJob({ to: 'recipe', recipe })`), and it
36
+ * hands jobs of its own to the other agents, waits for their reports and reports to whoever
37
+ * started the recipe. Those jobs are part of the recipe's job, so its budget, its deadline, the
38
+ * rules of whoever started it and its cancel hold for all of them.
39
+ *
40
+ * Every run is a workflow with a checkpoint after each step. A job is handed over under an id
41
+ * made of the run and the step, so a step that runs again finds the job it handed over before:
42
+ * with checkpoints that outlive the process a recipe goes on where it was after the dispatcher
43
+ * was restarted, without doing anything twice.
44
+ *
45
+ * A question of an agent that works on a step is passed on to whoever started the recipe, and
46
+ * the answer back. A call such an agent asks leave for is allowed when the rules of whoever
47
+ * started the recipe allow it without asking, and is the person's to allow otherwise.
48
+ *
49
+ * @example
50
+ * ```ts
51
+ * import { hostBridge } from '@cogitator-ai/bridge';
52
+ * import { recipeAdapter } from '@cogitator-ai/bridge/recipes';
53
+ * import { FileCheckpointStore } from '@cogitator-ai/workflows';
54
+ *
55
+ * const host = await hostBridge({
56
+ * adapters: [claude, codex, recipeAdapter({ checkpoints: new FileCheckpointStore(dir) })],
57
+ * });
58
+ * ```
59
+ */
60
+ export declare function recipeAdapter(options?: RecipeAdapterOptions): BridgeAdapter;
61
+ //# sourceMappingURL=conductor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conductor.d.ts","sourceRoot":"","sources":["../../src/recipes/conductor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAY,MAAM,qBAAqB,CAAC;AAErE,OAAO,KAAK,EACV,aAAa,EAMd,MAAM,eAAe,CAAC;AAQvB,OAAO,KAAK,EAAE,MAAM,EAAwC,MAAM,aAAa,CAAC;AAEhF,sFAAsF;AACtF,eAAO,MAAM,eAAe,WAAW,CAAC;AAExC,MAAM,WAAW,oBAAoB;IACnC,yFAAyF;IACzF,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B;;;;OAIG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,6DAA6D;IAC7D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,0FAA0F;IAC1F,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,8FAA8F;IAC9F,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA2ED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,aAAa,CAAC,OAAO,GAAE,oBAAyB,GAAG,aAAa,CAwgB/E"}