@praudent/dagma 0.0.0-stage → 0.1.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 (177) hide show
  1. package/dist/admin-ui/assets/index-CHJ8lsZp.js +120 -0
  2. package/dist/admin-ui/assets/index-XyqtD-IA.css +1 -0
  3. package/dist/admin-ui/index.html +12 -0
  4. package/dist/blueprint/agent.d.ts +148 -0
  5. package/dist/blueprint/agent.js +1 -0
  6. package/dist/blueprint/declaration-site.d.ts +7 -0
  7. package/dist/blueprint/declaration-site.js +8 -0
  8. package/dist/blueprint/declared-structure.d.ts +145 -0
  9. package/dist/blueprint/declared-structure.js +213 -0
  10. package/dist/blueprint/define-run-state.d.ts +79 -0
  11. package/dist/blueprint/define-run-state.js +89 -0
  12. package/dist/blueprint/load-blueprint.d.ts +28 -0
  13. package/dist/blueprint/load-blueprint.js +85 -0
  14. package/dist/blueprint/outcomes.d.ts +76 -0
  15. package/dist/blueprint/outcomes.js +10 -0
  16. package/dist/blueprint/phase.d.ts +153 -0
  17. package/dist/blueprint/phase.js +1 -0
  18. package/dist/blueprint/places.d.ts +26 -0
  19. package/dist/blueprint/places.js +37 -0
  20. package/dist/blueprint/prompt-file.d.ts +81 -0
  21. package/dist/blueprint/prompt-file.js +131 -0
  22. package/dist/blueprint/reply-reader.d.ts +36 -0
  23. package/dist/blueprint/reply-reader.js +38 -0
  24. package/dist/blueprint/run-settings.d.ts +38 -0
  25. package/dist/blueprint/run-settings.js +1 -0
  26. package/dist/blueprint/serializer.d.ts +14 -0
  27. package/dist/blueprint/serializer.js +4 -0
  28. package/dist/blueprint/write-scope.d.ts +39 -0
  29. package/dist/blueprint/write-scope.js +106 -0
  30. package/dist/command.d.ts +2 -0
  31. package/dist/command.js +148 -0
  32. package/dist/commands/calls-answering.d.ts +16 -0
  33. package/dist/commands/calls-answering.js +63 -0
  34. package/dist/commands/json-file.d.ts +6 -0
  35. package/dist/commands/json-file.js +19 -0
  36. package/dist/commands/run-command.d.ts +23 -0
  37. package/dist/commands/run-command.js +172 -0
  38. package/dist/commands/typed-answers.d.ts +10 -0
  39. package/dist/commands/typed-answers.js +43 -0
  40. package/dist/config.d.ts +27 -0
  41. package/dist/config.js +20 -0
  42. package/dist/devtool-server/app-pages.d.ts +12 -0
  43. package/dist/devtool-server/app-pages.js +68 -0
  44. package/dist/devtool-server/blueprint-description.d.ts +21 -0
  45. package/dist/devtool-server/blueprint-description.js +27 -0
  46. package/dist/devtool-server/connected-runs.d.ts +36 -0
  47. package/dist/devtool-server/connected-runs.js +201 -0
  48. package/dist/devtool-server/devtool-server.d.ts +17 -0
  49. package/dist/devtool-server/devtool-server.js +294 -0
  50. package/dist/devtool-server/devtool-shapes.d.ts +312 -0
  51. package/dist/devtool-server/devtool-shapes.js +24 -0
  52. package/dist/devtool-server/listed-runs.d.ts +17 -0
  53. package/dist/devtool-server/listed-runs.js +42 -0
  54. package/dist/devtool-server/print-blueprint.d.ts +1 -0
  55. package/dist/devtool-server/print-blueprint.js +36 -0
  56. package/dist/example/added-species.d.ts +21 -0
  57. package/dist/example/added-species.js +19 -0
  58. package/dist/example/cover.d.ts +21 -0
  59. package/dist/example/cover.js +67 -0
  60. package/dist/example/cross-references.d.ts +21 -0
  61. package/dist/example/cross-references.js +77 -0
  62. package/dist/example/entry-drafts.d.ts +21 -0
  63. package/dist/example/entry-drafts.js +63 -0
  64. package/dist/example/entry-merge.d.ts +108 -0
  65. package/dist/example/entry-merge.js +284 -0
  66. package/dist/example/field-guide.d.ts +26 -0
  67. package/dist/example/field-guide.js +40 -0
  68. package/dist/example/guide-page.d.ts +21 -0
  69. package/dist/example/guide-page.js +15 -0
  70. package/dist/example/missing-species.d.ts +21 -0
  71. package/dist/example/missing-species.js +59 -0
  72. package/dist/example/run-state.d.ts +803 -0
  73. package/dist/example/run-state.js +58 -0
  74. package/dist/example/serializers.d.ts +32 -0
  75. package/dist/example/serializers.js +42 -0
  76. package/dist/example/species-list.d.ts +47 -0
  77. package/dist/example/species-list.js +93 -0
  78. package/dist/index.d.ts +35 -0
  79. package/dist/index.js +25 -0
  80. package/dist/inference/anthropic-api.d.ts +37 -0
  81. package/dist/inference/anthropic-api.js +197 -0
  82. package/dist/inference/anthropic-prices.d.ts +18 -0
  83. package/dist/inference/anthropic-prices.js +39 -0
  84. package/dist/inference/anthropic-request.d.ts +51 -0
  85. package/dist/inference/anthropic-request.js +208 -0
  86. package/dist/inference/bedrock-api.d.ts +45 -0
  87. package/dist/inference/bedrock-api.js +242 -0
  88. package/dist/inference/bedrock-prices.d.ts +22 -0
  89. package/dist/inference/bedrock-prices.js +79 -0
  90. package/dist/inference/bedrock-request.d.ts +27 -0
  91. package/dist/inference/bedrock-request.js +193 -0
  92. package/dist/inference/call-queue-shapes.d.ts +273 -0
  93. package/dist/inference/call-queue-shapes.js +82 -0
  94. package/dist/inference/call-queue.d.ts +109 -0
  95. package/dist/inference/call-queue.js +408 -0
  96. package/dist/inference/gemini-api.d.ts +44 -0
  97. package/dist/inference/gemini-api.js +191 -0
  98. package/dist/inference/gemini-prices.d.ts +19 -0
  99. package/dist/inference/gemini-prices.js +33 -0
  100. package/dist/inference/gemini-request.d.ts +25 -0
  101. package/dist/inference/gemini-request.js +126 -0
  102. package/dist/inference/inference.d.ts +84 -0
  103. package/dist/inference/inference.js +9 -0
  104. package/dist/inference/openai-api.d.ts +29 -0
  105. package/dist/inference/openai-api.js +138 -0
  106. package/dist/inference/openai-prices.d.ts +12 -0
  107. package/dist/inference/openai-prices.js +25 -0
  108. package/dist/inference/openai-request.d.ts +50 -0
  109. package/dist/inference/openai-request.js +100 -0
  110. package/dist/inference/own-worker.d.ts +6 -0
  111. package/dist/inference/own-worker.js +16 -0
  112. package/dist/inference/scripted.d.ts +146 -0
  113. package/dist/inference/scripted.js +67 -0
  114. package/dist/run/assignments/agent-call.d.ts +32 -0
  115. package/dist/run/assignments/agent-call.js +218 -0
  116. package/dist/run/assignments/agent-phase.d.ts +14 -0
  117. package/dist/run/assignments/agent-phase.js +243 -0
  118. package/dist/run/assignments/assignment-memory.d.ts +42 -0
  119. package/dist/run/assignments/assignment-memory.js +52 -0
  120. package/dist/run/assignments/assignment.d.ts +17 -0
  121. package/dist/run/assignments/assignment.js +252 -0
  122. package/dist/run/assignments/model-settings.d.ts +39 -0
  123. package/dist/run/assignments/model-settings.js +57 -0
  124. package/dist/run/assignments/prepared-call.d.ts +28 -0
  125. package/dist/run/assignments/prepared-call.js +115 -0
  126. package/dist/run/assignments/tool-call.d.ts +26 -0
  127. package/dist/run/assignments/tool-call.js +108 -0
  128. package/dist/run/blueprint-mistake.d.ts +8 -0
  129. package/dist/run/blueprint-mistake.js +14 -0
  130. package/dist/run/code-phase.d.ts +11 -0
  131. package/dist/run/code-phase.js +59 -0
  132. package/dist/run/create-run.d.ts +36 -0
  133. package/dist/run/create-run.js +119 -0
  134. package/dist/run/execute-run.d.ts +7 -0
  135. package/dist/run/execute-run.js +158 -0
  136. package/dist/run/record/apply-event.d.ts +13 -0
  137. package/dist/run/record/apply-event.js +256 -0
  138. package/dist/run/record/events.d.ts +187 -0
  139. package/dist/run/record/events.js +1 -0
  140. package/dist/run/record/postgres-run-store.d.ts +13 -0
  141. package/dist/run/record/postgres-run-store.js +189 -0
  142. package/dist/run/record/progress-projection.d.ts +83 -0
  143. package/dist/run/record/progress-projection.js +167 -0
  144. package/dist/run/record/progress.d.ts +207 -0
  145. package/dist/run/record/progress.js +63 -0
  146. package/dist/run/record/run-store.d.ts +74 -0
  147. package/dist/run/record/run-store.js +1 -0
  148. package/dist/run/record/run-summary.d.ts +8 -0
  149. package/dist/run/record/run-summary.js +19 -0
  150. package/dist/run/record/run-types.d.ts +95 -0
  151. package/dist/run/record/run-types.js +1 -0
  152. package/dist/run/record/state-changes.d.ts +42 -0
  153. package/dist/run/record/state-changes.js +157 -0
  154. package/dist/run/resume-run.d.ts +25 -0
  155. package/dist/run/resume-run.js +99 -0
  156. package/dist/run/run-endings.d.ts +20 -0
  157. package/dist/run/run-endings.js +20 -0
  158. package/dist/run/run-option-shapes.d.ts +176 -0
  159. package/dist/run/run-option-shapes.js +47 -0
  160. package/dist/run/run-session.d.ts +144 -0
  161. package/dist/run/run-session.js +278 -0
  162. package/dist/worker/answer-queued-call.d.ts +19 -0
  163. package/dist/worker/answer-queued-call.js +100 -0
  164. package/dist/worker/launchers/claude-code.d.ts +7 -0
  165. package/dist/worker/launchers/claude-code.js +156 -0
  166. package/dist/worker/launchers/codex.d.ts +6 -0
  167. package/dist/worker/launchers/codex.js +141 -0
  168. package/dist/worker/launchers/launch.d.ts +31 -0
  169. package/dist/worker/launchers/launch.js +6 -0
  170. package/dist/worker/launchers/program-run.d.ts +30 -0
  171. package/dist/worker/launchers/program-run.js +92 -0
  172. package/dist/worker/launchers/tool-server.d.ts +26 -0
  173. package/dist/worker/launchers/tool-server.js +90 -0
  174. package/dist/worker/worker.d.ts +13 -0
  175. package/dist/worker/worker.js +170 -0
  176. package/package.json +43 -4
  177. package/README.md +0 -3
@@ -0,0 +1,803 @@
1
+ import { z } from 'zod';
2
+ export declare const SpeciesSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ name: z.ZodString;
5
+ subspecies: z.ZodArray<z.ZodString, "many">;
6
+ }, "strict", z.ZodTypeAny, {
7
+ name: string;
8
+ id: string;
9
+ subspecies: string[];
10
+ }, {
11
+ name: string;
12
+ id: string;
13
+ subspecies: string[];
14
+ }>;
15
+ export type Species = z.infer<typeof SpeciesSchema>;
16
+ export declare const DraftSchema: z.ZodObject<{
17
+ speciesId: z.ZodString;
18
+ text: z.ZodString;
19
+ }, "strict", z.ZodTypeAny, {
20
+ text: string;
21
+ speciesId: string;
22
+ }, {
23
+ text: string;
24
+ speciesId: string;
25
+ }>;
26
+ export type Draft = z.infer<typeof DraftSchema>;
27
+ export declare const EntrySchema: z.ZodObject<{
28
+ speciesId: z.ZodString;
29
+ name: z.ZodString;
30
+ text: z.ZodString;
31
+ /** Names of the other species the text mentions. */
32
+ mentions: z.ZodArray<z.ZodString, "many">;
33
+ /** Null until the cross-references phase has written them. */
34
+ seeAlso: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
35
+ }, "strict", z.ZodTypeAny, {
36
+ name: string;
37
+ text: string;
38
+ speciesId: string;
39
+ mentions: string[];
40
+ seeAlso: string[] | null;
41
+ }, {
42
+ name: string;
43
+ text: string;
44
+ speciesId: string;
45
+ mentions: string[];
46
+ seeAlso: string[] | null;
47
+ }>;
48
+ export type Entry = z.infer<typeof EntrySchema>;
49
+ export declare const FieldGuideSchema: z.ZodObject<{
50
+ topic: z.ZodString;
51
+ species: z.ZodArray<z.ZodObject<{
52
+ id: z.ZodString;
53
+ name: z.ZodString;
54
+ subspecies: z.ZodArray<z.ZodString, "many">;
55
+ }, "strict", z.ZodTypeAny, {
56
+ name: string;
57
+ id: string;
58
+ subspecies: string[];
59
+ }, {
60
+ name: string;
61
+ id: string;
62
+ subspecies: string[];
63
+ }>, "many">;
64
+ drafts: z.ZodArray<z.ZodObject<{
65
+ speciesId: z.ZodString;
66
+ text: z.ZodString;
67
+ }, "strict", z.ZodTypeAny, {
68
+ text: string;
69
+ speciesId: string;
70
+ }, {
71
+ text: string;
72
+ speciesId: string;
73
+ }>, "many">;
74
+ entries: z.ZodArray<z.ZodObject<{
75
+ speciesId: z.ZodString;
76
+ name: z.ZodString;
77
+ text: z.ZodString;
78
+ /** Names of the other species the text mentions. */
79
+ mentions: z.ZodArray<z.ZodString, "many">;
80
+ /** Null until the cross-references phase has written them. */
81
+ seeAlso: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
82
+ }, "strict", z.ZodTypeAny, {
83
+ name: string;
84
+ text: string;
85
+ speciesId: string;
86
+ mentions: string[];
87
+ seeAlso: string[] | null;
88
+ }, {
89
+ name: string;
90
+ text: string;
91
+ speciesId: string;
92
+ mentions: string[];
93
+ seeAlso: string[] | null;
94
+ }>, "many">;
95
+ /** Names the gap finder says the guide lacks; the species author lists them and empties this. */
96
+ missingSpecies: z.ZodArray<z.ZodString, "many">;
97
+ title: z.ZodNullable<z.ZodString>;
98
+ }, "strict", z.ZodTypeAny, {
99
+ entries: {
100
+ name: string;
101
+ text: string;
102
+ speciesId: string;
103
+ mentions: string[];
104
+ seeAlso: string[] | null;
105
+ }[];
106
+ topic: string;
107
+ species: {
108
+ name: string;
109
+ id: string;
110
+ subspecies: string[];
111
+ }[];
112
+ drafts: {
113
+ text: string;
114
+ speciesId: string;
115
+ }[];
116
+ missingSpecies: string[];
117
+ title: string | null;
118
+ }, {
119
+ entries: {
120
+ name: string;
121
+ text: string;
122
+ speciesId: string;
123
+ mentions: string[];
124
+ seeAlso: string[] | null;
125
+ }[];
126
+ topic: string;
127
+ species: {
128
+ name: string;
129
+ id: string;
130
+ subspecies: string[];
131
+ }[];
132
+ drafts: {
133
+ text: string;
134
+ speciesId: string;
135
+ }[];
136
+ missingSpecies: string[];
137
+ title: string | null;
138
+ }>;
139
+ export type FieldGuide = z.infer<typeof FieldGuideSchema>;
140
+ export declare const defineBlueprint: <Input>(blueprint: {
141
+ name: string;
142
+ description: string;
143
+ input: z.ZodType<Input, z.ZodTypeDef, unknown>;
144
+ startingState: {
145
+ description: string;
146
+ from: (reads: {
147
+ input: Input;
148
+ }) => {
149
+ entries: {
150
+ name: string;
151
+ text: string;
152
+ speciesId: string;
153
+ mentions: string[];
154
+ seeAlso: string[] | null;
155
+ }[];
156
+ topic: string;
157
+ species: {
158
+ name: string;
159
+ id: string;
160
+ subspecies: string[];
161
+ }[];
162
+ drafts: {
163
+ text: string;
164
+ speciesId: string;
165
+ }[];
166
+ missingSpecies: string[];
167
+ title: string | null;
168
+ };
169
+ };
170
+ promptFolder: string;
171
+ templates?: {
172
+ [name: string]: string;
173
+ } | undefined;
174
+ modelSettings: import("../index.js").ModelSettings;
175
+ workers?: import("../index.js").BlueprintWorkers;
176
+ trunk: readonly import("../index.js").Phase<{
177
+ entries: {
178
+ name: string;
179
+ text: string;
180
+ speciesId: string;
181
+ mentions: string[];
182
+ seeAlso: string[] | null;
183
+ }[];
184
+ topic: string;
185
+ species: {
186
+ name: string;
187
+ id: string;
188
+ subspecies: string[];
189
+ }[];
190
+ drafts: {
191
+ text: string;
192
+ speciesId: string;
193
+ }[];
194
+ missingSpecies: string[];
195
+ title: string | null;
196
+ }, unknown>[];
197
+ sideLines?: readonly import("../blueprint/phase.js").SideLine<{
198
+ entries: {
199
+ name: string;
200
+ text: string;
201
+ speciesId: string;
202
+ mentions: string[];
203
+ seeAlso: string[] | null;
204
+ }[];
205
+ topic: string;
206
+ species: {
207
+ name: string;
208
+ id: string;
209
+ subspecies: string[];
210
+ }[];
211
+ drafts: {
212
+ text: string;
213
+ speciesId: string;
214
+ }[];
215
+ missingSpecies: string[];
216
+ title: string | null;
217
+ }, unknown>[] | undefined;
218
+ }) => import("../index.js").Blueprint<{
219
+ entries: {
220
+ name: string;
221
+ text: string;
222
+ speciesId: string;
223
+ mentions: string[];
224
+ seeAlso: string[] | null;
225
+ }[];
226
+ topic: string;
227
+ species: {
228
+ name: string;
229
+ id: string;
230
+ subspecies: string[];
231
+ }[];
232
+ drafts: {
233
+ text: string;
234
+ speciesId: string;
235
+ }[];
236
+ missingSpecies: string[];
237
+ title: string | null;
238
+ }, Input, unknown>, defineSideLine: (sideLine: import("../blueprint/phase.js").SideLineDeclaration<{
239
+ entries: {
240
+ name: string;
241
+ text: string;
242
+ speciesId: string;
243
+ mentions: string[];
244
+ seeAlso: string[] | null;
245
+ }[];
246
+ topic: string;
247
+ species: {
248
+ name: string;
249
+ id: string;
250
+ subspecies: string[];
251
+ }[];
252
+ drafts: {
253
+ text: string;
254
+ speciesId: string;
255
+ }[];
256
+ missingSpecies: string[];
257
+ title: string | null;
258
+ }, unknown>) => import("../blueprint/phase.js").SideLine<{
259
+ entries: {
260
+ name: string;
261
+ text: string;
262
+ speciesId: string;
263
+ mentions: string[];
264
+ seeAlso: string[] | null;
265
+ }[];
266
+ topic: string;
267
+ species: {
268
+ name: string;
269
+ id: string;
270
+ subspecies: string[];
271
+ }[];
272
+ drafts: {
273
+ text: string;
274
+ speciesId: string;
275
+ }[];
276
+ missingSpecies: string[];
277
+ title: string | null;
278
+ }, unknown>, defineAgentPhase: <Subject>(phase: import("../blueprint/phase.js").AgentPhaseDeclaration<{
279
+ entries: {
280
+ name: string;
281
+ text: string;
282
+ speciesId: string;
283
+ mentions: string[];
284
+ seeAlso: string[] | null;
285
+ }[];
286
+ topic: string;
287
+ species: {
288
+ name: string;
289
+ id: string;
290
+ subspecies: string[];
291
+ }[];
292
+ drafts: {
293
+ text: string;
294
+ speciesId: string;
295
+ }[];
296
+ missingSpecies: string[];
297
+ title: string | null;
298
+ }, Subject>) => import("../index.js").Phase<{
299
+ entries: {
300
+ name: string;
301
+ text: string;
302
+ speciesId: string;
303
+ mentions: string[];
304
+ seeAlso: string[] | null;
305
+ }[];
306
+ topic: string;
307
+ species: {
308
+ name: string;
309
+ id: string;
310
+ subspecies: string[];
311
+ }[];
312
+ drafts: {
313
+ text: string;
314
+ speciesId: string;
315
+ }[];
316
+ missingSpecies: string[];
317
+ title: string | null;
318
+ }, unknown>, defineLane: <Subject>(lane: import("../blueprint/phase.js").LaneDeclaration<{
319
+ entries: {
320
+ name: string;
321
+ text: string;
322
+ speciesId: string;
323
+ mentions: string[];
324
+ seeAlso: string[] | null;
325
+ }[];
326
+ topic: string;
327
+ species: {
328
+ name: string;
329
+ id: string;
330
+ subspecies: string[];
331
+ }[];
332
+ drafts: {
333
+ text: string;
334
+ speciesId: string;
335
+ }[];
336
+ missingSpecies: string[];
337
+ title: string | null;
338
+ }, Subject>) => import("../index.js").Lane<{
339
+ entries: {
340
+ name: string;
341
+ text: string;
342
+ speciesId: string;
343
+ mentions: string[];
344
+ seeAlso: string[] | null;
345
+ }[];
346
+ topic: string;
347
+ species: {
348
+ name: string;
349
+ id: string;
350
+ subspecies: string[];
351
+ }[];
352
+ drafts: {
353
+ text: string;
354
+ speciesId: string;
355
+ }[];
356
+ missingSpecies: string[];
357
+ title: string | null;
358
+ }>, defineCodePhase: (phase: import("../blueprint/phase.js").CodePhaseDeclaration<{
359
+ entries: {
360
+ name: string;
361
+ text: string;
362
+ speciesId: string;
363
+ mentions: string[];
364
+ seeAlso: string[] | null;
365
+ }[];
366
+ topic: string;
367
+ species: {
368
+ name: string;
369
+ id: string;
370
+ subspecies: string[];
371
+ }[];
372
+ drafts: {
373
+ text: string;
374
+ speciesId: string;
375
+ }[];
376
+ missingSpecies: string[];
377
+ title: string | null;
378
+ }, unknown>) => import("../index.js").Phase<{
379
+ entries: {
380
+ name: string;
381
+ text: string;
382
+ speciesId: string;
383
+ mentions: string[];
384
+ seeAlso: string[] | null;
385
+ }[];
386
+ topic: string;
387
+ species: {
388
+ name: string;
389
+ id: string;
390
+ subspecies: string[];
391
+ }[];
392
+ drafts: {
393
+ text: string;
394
+ speciesId: string;
395
+ }[];
396
+ missingSpecies: string[];
397
+ title: string | null;
398
+ }, unknown>, defineAgent: <Reply, Subject = unknown, SerializerArguments extends {
399
+ [placeholder: string]: unknown;
400
+ } = {}>(agent: {
401
+ name: string;
402
+ label?: string;
403
+ role?: string;
404
+ description: string;
405
+ subject?: z.ZodType<Subject, z.ZodTypeDef, unknown> | undefined;
406
+ prompt: string;
407
+ inputs: import("../blueprint/agent.js").AgentInputs<{
408
+ entries: {
409
+ name: string;
410
+ text: string;
411
+ speciesId: string;
412
+ mentions: string[];
413
+ seeAlso: string[] | null;
414
+ }[];
415
+ topic: string;
416
+ species: {
417
+ name: string;
418
+ id: string;
419
+ subspecies: string[];
420
+ }[];
421
+ drafts: {
422
+ text: string;
423
+ speciesId: string;
424
+ }[];
425
+ missingSpecies: string[];
426
+ title: string | null;
427
+ }, Subject, SerializerArguments>;
428
+ attachedImages?: import("../blueprint/agent.js").AttachedImages<{
429
+ entries: {
430
+ name: string;
431
+ text: string;
432
+ speciesId: string;
433
+ mentions: string[];
434
+ seeAlso: string[] | null;
435
+ }[];
436
+ topic: string;
437
+ species: {
438
+ name: string;
439
+ id: string;
440
+ subspecies: string[];
441
+ }[];
442
+ drafts: {
443
+ text: string;
444
+ speciesId: string;
445
+ }[];
446
+ missingSpecies: string[];
447
+ title: string | null;
448
+ }, Subject> | undefined;
449
+ replyReader: import("../index.js").ReplyReader<Reply>;
450
+ checks?: import("../index.js").ReplyCheck<{
451
+ entries: {
452
+ name: string;
453
+ text: string;
454
+ speciesId: string;
455
+ mentions: string[];
456
+ seeAlso: string[] | null;
457
+ }[];
458
+ topic: string;
459
+ species: {
460
+ name: string;
461
+ id: string;
462
+ subspecies: string[];
463
+ }[];
464
+ drafts: {
465
+ text: string;
466
+ speciesId: string;
467
+ }[];
468
+ missingSpecies: string[];
469
+ title: string | null;
470
+ }, Subject, Reply>[] | undefined;
471
+ mayChange?: import("../index.js").WriteScopeRule<{
472
+ entries: {
473
+ name: string;
474
+ text: string;
475
+ speciesId: string;
476
+ mentions: string[];
477
+ seeAlso: string[] | null;
478
+ }[];
479
+ topic: string;
480
+ species: {
481
+ name: string;
482
+ id: string;
483
+ subspecies: string[];
484
+ }[];
485
+ drafts: {
486
+ text: string;
487
+ speciesId: string;
488
+ }[];
489
+ missingSpecies: string[];
490
+ title: string | null;
491
+ }, Subject>[] | undefined;
492
+ replyOutcome: {
493
+ description: string;
494
+ decide: (reads: import("../blueprint/agent.js").DecideReads<{
495
+ entries: {
496
+ name: string;
497
+ text: string;
498
+ speciesId: string;
499
+ mentions: string[];
500
+ seeAlso: string[] | null;
501
+ }[];
502
+ topic: string;
503
+ species: {
504
+ name: string;
505
+ id: string;
506
+ subspecies: string[];
507
+ }[];
508
+ drafts: {
509
+ text: string;
510
+ speciesId: string;
511
+ }[];
512
+ missingSpecies: string[];
513
+ title: string | null;
514
+ }, Subject, Reply>) => import("../blueprint/outcomes.js").ReplyOutcome<{
515
+ entries: {
516
+ name: string;
517
+ text: string;
518
+ speciesId: string;
519
+ mentions: string[];
520
+ seeAlso: string[] | null;
521
+ }[];
522
+ topic: string;
523
+ species: {
524
+ name: string;
525
+ id: string;
526
+ subspecies: string[];
527
+ }[];
528
+ drafts: {
529
+ text: string;
530
+ speciesId: string;
531
+ }[];
532
+ missingSpecies: string[];
533
+ title: string | null;
534
+ }>;
535
+ };
536
+ maxCorrections: number;
537
+ whenCallFails?: import("../blueprint/agent.js").WhenCallFails<{
538
+ entries: {
539
+ name: string;
540
+ text: string;
541
+ speciesId: string;
542
+ mentions: string[];
543
+ seeAlso: string[] | null;
544
+ }[];
545
+ topic: string;
546
+ species: {
547
+ name: string;
548
+ id: string;
549
+ subspecies: string[];
550
+ }[];
551
+ drafts: {
552
+ text: string;
553
+ speciesId: string;
554
+ }[];
555
+ missingSpecies: string[];
556
+ title: string | null;
557
+ }, Subject> | undefined;
558
+ tools?: import("../index.js").Tool<{
559
+ entries: {
560
+ name: string;
561
+ text: string;
562
+ speciesId: string;
563
+ mentions: string[];
564
+ seeAlso: string[] | null;
565
+ }[];
566
+ topic: string;
567
+ species: {
568
+ name: string;
569
+ id: string;
570
+ subspecies: string[];
571
+ }[];
572
+ drafts: {
573
+ text: string;
574
+ speciesId: string;
575
+ }[];
576
+ missingSpecies: string[];
577
+ title: string | null;
578
+ }, NoInfer<Subject>>[] | undefined;
579
+ asks?: string;
580
+ worker?: string;
581
+ modelSettings?: import("../index.js").ModelSettings;
582
+ }) => import("../index.js").Agent<{
583
+ entries: {
584
+ name: string;
585
+ text: string;
586
+ speciesId: string;
587
+ mentions: string[];
588
+ seeAlso: string[] | null;
589
+ }[];
590
+ topic: string;
591
+ species: {
592
+ name: string;
593
+ id: string;
594
+ subspecies: string[];
595
+ }[];
596
+ drafts: {
597
+ text: string;
598
+ speciesId: string;
599
+ }[];
600
+ missingSpecies: string[];
601
+ title: string | null;
602
+ }, Subject, Reply>, defineTool: <Arguments, Subject = unknown>(tool: {
603
+ name: string;
604
+ description: string;
605
+ input: z.ZodType<Arguments, z.ZodTypeDef, unknown>;
606
+ subject?: z.ZodType<Subject, z.ZodTypeDef, unknown> | undefined;
607
+ annotations?: {
608
+ [hint: string]: unknown;
609
+ } | undefined;
610
+ asks?: string;
611
+ handle: (reads: import("../blueprint/agent.js").HandleReads<{
612
+ entries: {
613
+ name: string;
614
+ text: string;
615
+ speciesId: string;
616
+ mentions: string[];
617
+ seeAlso: string[] | null;
618
+ }[];
619
+ topic: string;
620
+ species: {
621
+ name: string;
622
+ id: string;
623
+ subspecies: string[];
624
+ }[];
625
+ drafts: {
626
+ text: string;
627
+ speciesId: string;
628
+ }[];
629
+ missingSpecies: string[];
630
+ title: string | null;
631
+ }, Subject, Arguments>) => import("../blueprint/outcomes.js").ToolOutcome<{
632
+ entries: {
633
+ name: string;
634
+ text: string;
635
+ speciesId: string;
636
+ mentions: string[];
637
+ seeAlso: string[] | null;
638
+ }[];
639
+ topic: string;
640
+ species: {
641
+ name: string;
642
+ id: string;
643
+ subspecies: string[];
644
+ }[];
645
+ drafts: {
646
+ text: string;
647
+ speciesId: string;
648
+ }[];
649
+ missingSpecies: string[];
650
+ title: string | null;
651
+ }> | Promise<import("../blueprint/outcomes.js").ToolOutcome<{
652
+ entries: {
653
+ name: string;
654
+ text: string;
655
+ speciesId: string;
656
+ mentions: string[];
657
+ seeAlso: string[] | null;
658
+ }[];
659
+ topic: string;
660
+ species: {
661
+ name: string;
662
+ id: string;
663
+ subspecies: string[];
664
+ }[];
665
+ drafts: {
666
+ text: string;
667
+ speciesId: string;
668
+ }[];
669
+ missingSpecies: string[];
670
+ title: string | null;
671
+ }>>;
672
+ }) => import("../index.js").Tool<{
673
+ entries: {
674
+ name: string;
675
+ text: string;
676
+ speciesId: string;
677
+ mentions: string[];
678
+ seeAlso: string[] | null;
679
+ }[];
680
+ topic: string;
681
+ species: {
682
+ name: string;
683
+ id: string;
684
+ subspecies: string[];
685
+ }[];
686
+ drafts: {
687
+ text: string;
688
+ speciesId: string;
689
+ }[];
690
+ missingSpecies: string[];
691
+ title: string | null;
692
+ }, Subject>, accept: (writes?: {
693
+ change?: import("../index.js").Change<{
694
+ entries: {
695
+ name: string;
696
+ text: string;
697
+ speciesId: string;
698
+ mentions: string[];
699
+ seeAlso: string[] | null;
700
+ }[];
701
+ topic: string;
702
+ species: {
703
+ name: string;
704
+ id: string;
705
+ subspecies: string[];
706
+ }[];
707
+ drafts: {
708
+ text: string;
709
+ speciesId: string;
710
+ }[];
711
+ missingSpecies: string[];
712
+ title: string | null;
713
+ }> | undefined;
714
+ artifacts?: import("../index.js").Artifact[];
715
+ }) => import("../blueprint/outcomes.js").Accepted<{
716
+ entries: {
717
+ name: string;
718
+ text: string;
719
+ speciesId: string;
720
+ mentions: string[];
721
+ seeAlso: string[] | null;
722
+ }[];
723
+ topic: string;
724
+ species: {
725
+ name: string;
726
+ id: string;
727
+ subspecies: string[];
728
+ }[];
729
+ drafts: {
730
+ text: string;
731
+ speciesId: string;
732
+ }[];
733
+ missingSpecies: string[];
734
+ title: string | null;
735
+ }>, ask: <Asks extends import("../blueprint/outcomes.js").AskParts<{
736
+ entries: {
737
+ name: string;
738
+ text: string;
739
+ speciesId: string;
740
+ mentions: string[];
741
+ seeAlso: string[] | null;
742
+ }[];
743
+ topic: string;
744
+ species: {
745
+ name: string;
746
+ id: string;
747
+ subspecies: string[];
748
+ }[];
749
+ drafts: {
750
+ text: string;
751
+ speciesId: string;
752
+ }[];
753
+ missingSpecies: string[];
754
+ title: string | null;
755
+ }>>(asks: Asks & { [Part in Exclude<keyof Asks, keyof import("../blueprint/outcomes.js").AskParts<State>>]: never; }) => {
756
+ outcome: "asked";
757
+ } & Asks;
758
+ export declare function speciesWithoutEntry({ state }: {
759
+ state: FieldGuide;
760
+ }): {
761
+ name: string;
762
+ id: string;
763
+ subspecies: string[];
764
+ }[];
765
+ /** The species on the list that have neither a draft nor an entry: added after the drafts were
766
+ * written. */
767
+ export declare function speciesNotStarted({ state }: {
768
+ state: FieldGuide;
769
+ }): {
770
+ name: string;
771
+ id: string;
772
+ subspecies: string[];
773
+ }[];
774
+ export declare function draftsOf({ state, species }: {
775
+ state: FieldGuide;
776
+ species: Species;
777
+ }): {
778
+ text: string;
779
+ speciesId: string;
780
+ }[];
781
+ /** The entries this entry mentions that stand before it in the guide. */
782
+ export declare function entriesMentionedBefore({ state, entry }: {
783
+ state: FieldGuide;
784
+ entry: Entry;
785
+ }): {
786
+ name: string;
787
+ text: string;
788
+ speciesId: string;
789
+ mentions: string[];
790
+ seeAlso: string[] | null;
791
+ }[];
792
+ export declare function speciesNamed({ name, subspecies, }: {
793
+ name: string;
794
+ subspecies: string[];
795
+ }): Species;
796
+ export declare function withEntry({ state, species, entry, }: {
797
+ state: FieldGuide;
798
+ species: Species;
799
+ entry: {
800
+ text: string;
801
+ mentions: string[];
802
+ };
803
+ }): FieldGuide;