@wrenautomation/birdwatch 0.0.0-stage → 0.29.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.
- package/LICENSE.md +61 -0
- package/README.md +337 -2
- package/dist/app/cli.d.ts +4 -0
- package/dist/app/cli.js +149 -0
- package/dist/app/cli.js.map +1 -0
- package/dist/app/engine-cli.d.ts +50 -0
- package/dist/app/engine-cli.js +738 -0
- package/dist/app/engine-cli.js.map +1 -0
- package/dist/app/index.d.ts +6 -0
- package/dist/app/index.js +7 -0
- package/dist/app/index.js.map +1 -0
- package/dist/app/serve.d.ts +14 -0
- package/dist/app/serve.js +102 -0
- package/dist/app/serve.js.map +1 -0
- package/dist/document/body.d.ts +6 -0
- package/dist/document/body.js +18 -0
- package/dist/document/body.js.map +1 -0
- package/dist/document/check.d.ts +35 -0
- package/dist/document/check.js +68 -0
- package/dist/document/check.js.map +1 -0
- package/dist/document/extract.d.ts +81 -0
- package/dist/document/extract.js +226 -0
- package/dist/document/extract.js.map +1 -0
- package/dist/document/index.d.ts +11 -0
- package/dist/document/index.js +12 -0
- package/dist/document/index.js.map +1 -0
- package/dist/document/model.d.ts +10 -0
- package/dist/document/model.js +2 -0
- package/dist/document/model.js.map +1 -0
- package/dist/document/readers.d.ts +24 -0
- package/dist/document/readers.js +87 -0
- package/dist/document/readers.js.map +1 -0
- package/dist/document/types.d.ts +99 -0
- package/dist/document/types.js +93 -0
- package/dist/document/types.js.map +1 -0
- package/dist/engine/agent.d.ts +473 -0
- package/dist/engine/agent.js +989 -0
- package/dist/engine/agent.js.map +1 -0
- package/dist/engine/canonical.d.ts +4 -0
- package/dist/engine/canonical.js +55 -0
- package/dist/engine/canonical.js.map +1 -0
- package/dist/engine/cost.d.ts +13 -0
- package/dist/engine/cost.js +31 -0
- package/dist/engine/cost.js.map +1 -0
- package/dist/engine/index.d.ts +16 -0
- package/dist/engine/index.js +17 -0
- package/dist/engine/index.js.map +1 -0
- package/dist/engine/judge.d.ts +158 -0
- package/dist/engine/judge.js +323 -0
- package/dist/engine/judge.js.map +1 -0
- package/dist/engine/people.d.ts +34 -0
- package/dist/engine/people.js +125 -0
- package/dist/engine/people.js.map +1 -0
- package/dist/engine/plan.d.ts +6 -0
- package/dist/engine/plan.js +7 -0
- package/dist/engine/plan.js.map +1 -0
- package/dist/engine/ports.d.ts +124 -0
- package/dist/engine/ports.js +28 -0
- package/dist/engine/ports.js.map +1 -0
- package/dist/engine/recall.d.ts +42 -0
- package/dist/engine/recall.js +71 -0
- package/dist/engine/recall.js.map +1 -0
- package/dist/engine/runner.d.ts +30 -0
- package/dist/engine/runner.js +209 -0
- package/dist/engine/runner.js.map +1 -0
- package/dist/engine/state.d.ts +99 -0
- package/dist/engine/state.js +186 -0
- package/dist/engine/state.js.map +1 -0
- package/dist/engine/steps.d.ts +98 -0
- package/dist/engine/steps.js +560 -0
- package/dist/engine/steps.js.map +1 -0
- package/dist/engine/tree.d.ts +76 -0
- package/dist/engine/tree.js +148 -0
- package/dist/engine/tree.js.map +1 -0
- package/dist/engine/view.d.ts +138 -0
- package/dist/engine/view.js +188 -0
- package/dist/engine/view.js.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -0
- package/dist/ledger/files.d.ts +39 -0
- package/dist/ledger/files.js +113 -0
- package/dist/ledger/files.js.map +1 -0
- package/dist/ledger/ids.d.ts +4 -0
- package/dist/ledger/ids.js +9 -0
- package/dist/ledger/ids.js.map +1 -0
- package/dist/ledger/index.d.ts +11 -0
- package/dist/ledger/index.js +12 -0
- package/dist/ledger/index.js.map +1 -0
- package/dist/ledger/ledger.d.ts +46 -0
- package/dist/ledger/ledger.js +105 -0
- package/dist/ledger/ledger.js.map +1 -0
- package/dist/ledger/memory.d.ts +19 -0
- package/dist/ledger/memory.js +19 -0
- package/dist/ledger/memory.js.map +1 -0
- package/dist/ledger/records.d.ts +1424 -0
- package/dist/ledger/records.js +292 -0
- package/dist/ledger/records.js.map +1 -0
- package/dist/plan/index.d.ts +7 -0
- package/dist/plan/index.js +8 -0
- package/dist/plan/index.js.map +1 -0
- package/dist/plan/model.d.ts +6 -0
- package/dist/plan/model.js +7 -0
- package/dist/plan/model.js.map +1 -0
- package/dist/plan/plan.d.ts +31 -0
- package/dist/plan/plan.js +87 -0
- package/dist/plan/plan.js.map +1 -0
- package/dist/plan/plans/index.d.ts +17 -0
- package/dist/plan/plans/index.js +236 -0
- package/dist/plan/plans/index.js.map +1 -0
- package/dist/plan/render.d.ts +41 -0
- package/dist/plan/render.js +75 -0
- package/dist/plan/render.js.map +1 -0
- package/dist/plan/review.d.ts +11 -0
- package/dist/plan/review.js +39 -0
- package/dist/plan/review.js.map +1 -0
- package/dist/plan/triage.d.ts +18 -0
- package/dist/plan/triage.js +65 -0
- package/dist/plan/triage.js.map +1 -0
- package/dist/plan/types.d.ts +401 -0
- package/dist/plan/types.js +223 -0
- package/dist/plan/types.js.map +1 -0
- package/dist/sources/arxiv.d.ts +105 -0
- package/dist/sources/arxiv.js +321 -0
- package/dist/sources/arxiv.js.map +1 -0
- package/dist/sources/exa.d.ts +19 -0
- package/dist/sources/exa.js +59 -0
- package/dist/sources/exa.js.map +1 -0
- package/dist/sources/fetcher.d.ts +35 -0
- package/dist/sources/fetcher.js +67 -0
- package/dist/sources/fetcher.js.map +1 -0
- package/dist/sources/google.d.ts +16 -0
- package/dist/sources/google.js +64 -0
- package/dist/sources/google.js.map +1 -0
- package/dist/sources/index.d.ts +17 -0
- package/dist/sources/index.js +18 -0
- package/dist/sources/index.js.map +1 -0
- package/dist/sources/junk.d.ts +10 -0
- package/dist/sources/junk.js +16 -0
- package/dist/sources/junk.js.map +1 -0
- package/dist/sources/ladder.d.ts +47 -0
- package/dist/sources/ladder.js +158 -0
- package/dist/sources/ladder.js.map +1 -0
- package/dist/sources/ledger.d.ts +7 -0
- package/dist/sources/ledger.js +35 -0
- package/dist/sources/ledger.js.map +1 -0
- package/dist/sources/paste.d.ts +8 -0
- package/dist/sources/paste.js +22 -0
- package/dist/sources/paste.js.map +1 -0
- package/dist/sources/searxng.d.ts +11 -0
- package/dist/sources/searxng.js +38 -0
- package/dist/sources/searxng.js.map +1 -0
- package/dist/sources/sites.d.ts +53 -0
- package/dist/sources/sites.js +285 -0
- package/dist/sources/sites.js.map +1 -0
- package/dist/sources/ytdlp.d.ts +43 -0
- package/dist/sources/ytdlp.js +117 -0
- package/dist/sources/ytdlp.js.map +1 -0
- package/package.json +65 -3
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The planner's shapes. A query says what to look for and who asked for it; a plan is the
|
|
3
|
+
* queries of one round plus the sources and budget it runs under; a plan file is the tuned
|
|
4
|
+
* recipe per ask kind. Hits are the engine's; the planner sees them through `HitView`, the fields a
|
|
5
|
+
* source shows for free, because the engine depends on the planner and not the reverse.
|
|
6
|
+
*/
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
export declare const AskKind: z.ZodEnum<{
|
|
9
|
+
video: "video";
|
|
10
|
+
channel: "channel";
|
|
11
|
+
web: "web";
|
|
12
|
+
person: "person";
|
|
13
|
+
site: "site";
|
|
14
|
+
}>;
|
|
15
|
+
export type AskKind = z.infer<typeof AskKind>;
|
|
16
|
+
/** Who wrote a record: a model, a plan file or a person. */
|
|
17
|
+
export declare const From: z.ZodEnum<{
|
|
18
|
+
ai: "ai";
|
|
19
|
+
human: "human";
|
|
20
|
+
}>;
|
|
21
|
+
export type From = z.infer<typeof From>;
|
|
22
|
+
/**
|
|
23
|
+
* One yes-or-no test a good source passes, named: the judge answers it on every hit and every
|
|
24
|
+
* page read whole. A hint and a router, never a gate.
|
|
25
|
+
*/
|
|
26
|
+
export declare const Criterion: z.ZodObject<{
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
question: z.ZodString;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export type Criterion = z.infer<typeof Criterion>;
|
|
31
|
+
/** What someone wants to know, and what is known already. */
|
|
32
|
+
export declare const Ask: z.ZodObject<{
|
|
33
|
+
text: z.ZodString;
|
|
34
|
+
kind: z.ZodEnum<{
|
|
35
|
+
video: "video";
|
|
36
|
+
channel: "channel";
|
|
37
|
+
web: "web";
|
|
38
|
+
person: "person";
|
|
39
|
+
site: "site";
|
|
40
|
+
}>;
|
|
41
|
+
known: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
42
|
+
premises: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
43
|
+
steer: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
44
|
+
open: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
45
|
+
criteria: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
46
|
+
name: z.ZodString;
|
|
47
|
+
question: z.ZodString;
|
|
48
|
+
}, z.core.$strip>>>;
|
|
49
|
+
site: z.ZodOptional<z.ZodString>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
export type Ask = z.infer<typeof Ask>;
|
|
52
|
+
/** One thing to look for. `terms` is what a person would type; a source adapter forms its own call from it. */
|
|
53
|
+
export declare const Query: z.ZodObject<{
|
|
54
|
+
kind: z.ZodEnum<{
|
|
55
|
+
video: "video";
|
|
56
|
+
channel: "channel";
|
|
57
|
+
web: "web";
|
|
58
|
+
person: "person";
|
|
59
|
+
site: "site";
|
|
60
|
+
}>;
|
|
61
|
+
terms: z.ZodString;
|
|
62
|
+
site: z.ZodOptional<z.ZodString>;
|
|
63
|
+
why: z.ZodString;
|
|
64
|
+
facet: z.ZodOptional<z.ZodString>;
|
|
65
|
+
tier: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
needs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
67
|
+
from: z.ZodEnum<{
|
|
68
|
+
ai: "ai";
|
|
69
|
+
human: "human";
|
|
70
|
+
}>;
|
|
71
|
+
by: z.ZodString;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
export type Query = z.infer<typeof Query>;
|
|
74
|
+
/** Queries from one proposer. The model is one; a plan file, a teammate or a second model are others. */
|
|
75
|
+
export declare const Proposal: z.ZodObject<{
|
|
76
|
+
from: z.ZodEnum<{
|
|
77
|
+
ai: "ai";
|
|
78
|
+
human: "human";
|
|
79
|
+
}>;
|
|
80
|
+
by: z.ZodString;
|
|
81
|
+
queries: z.ZodArray<z.ZodObject<{
|
|
82
|
+
kind: z.ZodEnum<{
|
|
83
|
+
video: "video";
|
|
84
|
+
channel: "channel";
|
|
85
|
+
web: "web";
|
|
86
|
+
person: "person";
|
|
87
|
+
site: "site";
|
|
88
|
+
}>;
|
|
89
|
+
why: z.ZodString;
|
|
90
|
+
site: z.ZodOptional<z.ZodString>;
|
|
91
|
+
terms: z.ZodString;
|
|
92
|
+
facet: z.ZodOptional<z.ZodString>;
|
|
93
|
+
tier: z.ZodOptional<z.ZodNumber>;
|
|
94
|
+
needs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
95
|
+
}, z.core.$strip>>;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
export type Proposal = z.infer<typeof Proposal>;
|
|
98
|
+
/** One query as a leaf of the tree: what a person would type, and why. */
|
|
99
|
+
export declare const Leaf: z.ZodObject<{
|
|
100
|
+
terms: z.ZodString;
|
|
101
|
+
why: z.ZodString;
|
|
102
|
+
site: z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
export type Leaf = z.infer<typeof Leaf>;
|
|
105
|
+
/**
|
|
106
|
+
* One side of the ask a researcher covers: a number, a how, a who, a counter-view, a primary
|
|
107
|
+
* source. `tries` are its alternatives in order: the first runs; the next runs only when the
|
|
108
|
+
* one before it yielded thin (fewer new hits than the guide's `thin`), or when the agent asks.
|
|
109
|
+
*/
|
|
110
|
+
export declare const Facet: z.ZodObject<{
|
|
111
|
+
name: z.ZodString;
|
|
112
|
+
why: z.ZodString;
|
|
113
|
+
needs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
114
|
+
tries: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
115
|
+
terms: z.ZodString;
|
|
116
|
+
why: z.ZodString;
|
|
117
|
+
site: z.ZodOptional<z.ZodString>;
|
|
118
|
+
}, z.core.$strip>>>;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
export type Facet = z.infer<typeof Facet>;
|
|
121
|
+
/** The fan-out for one round: the facets, each with its tries. The agent writes it; birdwatch runs it. */
|
|
122
|
+
export declare const QueryTree: z.ZodObject<{
|
|
123
|
+
facets: z.ZodArray<z.ZodObject<{
|
|
124
|
+
name: z.ZodString;
|
|
125
|
+
why: z.ZodString;
|
|
126
|
+
needs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
127
|
+
tries: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
128
|
+
terms: z.ZodString;
|
|
129
|
+
why: z.ZodString;
|
|
130
|
+
site: z.ZodOptional<z.ZodString>;
|
|
131
|
+
}, z.core.$strip>>>;
|
|
132
|
+
}, z.core.$strip>>;
|
|
133
|
+
}, z.core.$strip>;
|
|
134
|
+
export type QueryTree = z.infer<typeof QueryTree>;
|
|
135
|
+
/** The plan file's guide for a tree: the facets a tree of this kind covers, and what thin means. A guide, not a cap: a tree may add facets; one it leaves out is a warning. */
|
|
136
|
+
export declare const TreeGuide: z.ZodObject<{
|
|
137
|
+
facets: z.ZodArray<z.ZodObject<{
|
|
138
|
+
name: z.ZodString;
|
|
139
|
+
why: z.ZodString;
|
|
140
|
+
}, z.core.$strip>>;
|
|
141
|
+
thin: z.ZodNumber;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
export type TreeGuide = z.infer<typeof TreeGuide>;
|
|
144
|
+
export declare const Budget: z.ZodObject<{
|
|
145
|
+
queries: z.ZodNumber;
|
|
146
|
+
reads: z.ZodNumber;
|
|
147
|
+
rounds: z.ZodNumber;
|
|
148
|
+
checks: z.ZodDefault<z.ZodNumber>;
|
|
149
|
+
}, z.core.$strip>;
|
|
150
|
+
export type Budget = z.infer<typeof Budget>;
|
|
151
|
+
/**
|
|
152
|
+
* The recipe for one ask kind: the prompts, the sources it may use, the budget. Versioned and
|
|
153
|
+
* tuned like an SOP, stored beside the ledger. `{name}` marks in a prompt are filled from the
|
|
154
|
+
* ask: `{ask}`, `{known}`, `{yield}`, `{n}`, `{year}`, `{site}`, `{open}`, `{age}`; the review's
|
|
155
|
+
* also `{gaps}` and `{checks}`.
|
|
156
|
+
*/
|
|
157
|
+
export declare const PlanFile: z.ZodObject<{
|
|
158
|
+
id: z.ZodString;
|
|
159
|
+
kind: z.ZodEnum<{
|
|
160
|
+
video: "video";
|
|
161
|
+
channel: "channel";
|
|
162
|
+
web: "web";
|
|
163
|
+
person: "person";
|
|
164
|
+
site: "site";
|
|
165
|
+
}>;
|
|
166
|
+
version: z.ZodNumber;
|
|
167
|
+
propose: z.ZodString;
|
|
168
|
+
triage: z.ZodString;
|
|
169
|
+
review: z.ZodString;
|
|
170
|
+
sources: z.ZodArray<z.ZodString>;
|
|
171
|
+
budget: z.ZodObject<{
|
|
172
|
+
queries: z.ZodNumber;
|
|
173
|
+
reads: z.ZodNumber;
|
|
174
|
+
rounds: z.ZodNumber;
|
|
175
|
+
checks: z.ZodDefault<z.ZodNumber>;
|
|
176
|
+
}, z.core.$strip>;
|
|
177
|
+
age: z.ZodOptional<z.ZodString>;
|
|
178
|
+
tree: z.ZodOptional<z.ZodObject<{
|
|
179
|
+
facets: z.ZodArray<z.ZodObject<{
|
|
180
|
+
name: z.ZodString;
|
|
181
|
+
why: z.ZodString;
|
|
182
|
+
}, z.core.$strip>>;
|
|
183
|
+
thin: z.ZodNumber;
|
|
184
|
+
}, z.core.$strip>>;
|
|
185
|
+
runs: z.ZodOptional<z.ZodObject<{
|
|
186
|
+
depth: z.ZodNumber;
|
|
187
|
+
children: z.ZodNumber;
|
|
188
|
+
reads: z.ZodOptional<z.ZodNumber>;
|
|
189
|
+
}, z.core.$strip>>;
|
|
190
|
+
}, z.core.$strip>;
|
|
191
|
+
export type PlanFile = z.infer<typeof PlanFile>;
|
|
192
|
+
/** What a source, channel or proposer yielded before. The planner reads it; wren or the files ledger writes it. */
|
|
193
|
+
export declare const YieldRow: z.ZodObject<{
|
|
194
|
+
by: z.ZodOptional<z.ZodString>;
|
|
195
|
+
source: z.ZodOptional<z.ZodString>;
|
|
196
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
197
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
198
|
+
video: "video";
|
|
199
|
+
channel: "channel";
|
|
200
|
+
web: "web";
|
|
201
|
+
person: "person";
|
|
202
|
+
site: "site";
|
|
203
|
+
}>>;
|
|
204
|
+
hits: z.ZodNumber;
|
|
205
|
+
reads: z.ZodNumber;
|
|
206
|
+
proposed: z.ZodNumber;
|
|
207
|
+
kept: z.ZodNumber;
|
|
208
|
+
}, z.core.$strip>;
|
|
209
|
+
export type YieldRow = z.infer<typeof YieldRow>;
|
|
210
|
+
/** What the planner was given for one round: the RL state, kept with the plan. */
|
|
211
|
+
export declare const Snapshot: z.ZodObject<{
|
|
212
|
+
at: z.ZodString;
|
|
213
|
+
known: z.ZodArray<z.ZodString>;
|
|
214
|
+
planFile: z.ZodObject<{
|
|
215
|
+
id: z.ZodString;
|
|
216
|
+
version: z.ZodNumber;
|
|
217
|
+
}, z.core.$strip>;
|
|
218
|
+
model: z.ZodNullable<z.ZodString>;
|
|
219
|
+
yieldRows: z.ZodNumber;
|
|
220
|
+
}, z.core.$strip>;
|
|
221
|
+
export type Snapshot = z.infer<typeof Snapshot>;
|
|
222
|
+
export declare const Plan: z.ZodObject<{
|
|
223
|
+
ask: z.ZodObject<{
|
|
224
|
+
text: z.ZodString;
|
|
225
|
+
kind: z.ZodEnum<{
|
|
226
|
+
video: "video";
|
|
227
|
+
channel: "channel";
|
|
228
|
+
web: "web";
|
|
229
|
+
person: "person";
|
|
230
|
+
site: "site";
|
|
231
|
+
}>;
|
|
232
|
+
known: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
233
|
+
premises: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
234
|
+
steer: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
235
|
+
open: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
236
|
+
criteria: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
237
|
+
name: z.ZodString;
|
|
238
|
+
question: z.ZodString;
|
|
239
|
+
}, z.core.$strip>>>;
|
|
240
|
+
site: z.ZodOptional<z.ZodString>;
|
|
241
|
+
}, z.core.$strip>;
|
|
242
|
+
round: z.ZodNumber;
|
|
243
|
+
queries: z.ZodArray<z.ZodObject<{
|
|
244
|
+
kind: z.ZodEnum<{
|
|
245
|
+
video: "video";
|
|
246
|
+
channel: "channel";
|
|
247
|
+
web: "web";
|
|
248
|
+
person: "person";
|
|
249
|
+
site: "site";
|
|
250
|
+
}>;
|
|
251
|
+
terms: z.ZodString;
|
|
252
|
+
site: z.ZodOptional<z.ZodString>;
|
|
253
|
+
why: z.ZodString;
|
|
254
|
+
facet: z.ZodOptional<z.ZodString>;
|
|
255
|
+
tier: z.ZodOptional<z.ZodNumber>;
|
|
256
|
+
needs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
257
|
+
from: z.ZodEnum<{
|
|
258
|
+
ai: "ai";
|
|
259
|
+
human: "human";
|
|
260
|
+
}>;
|
|
261
|
+
by: z.ZodString;
|
|
262
|
+
}, z.core.$strip>>;
|
|
263
|
+
sources: z.ZodArray<z.ZodString>;
|
|
264
|
+
budget: z.ZodObject<{
|
|
265
|
+
queries: z.ZodNumber;
|
|
266
|
+
reads: z.ZodNumber;
|
|
267
|
+
rounds: z.ZodNumber;
|
|
268
|
+
checks: z.ZodDefault<z.ZodNumber>;
|
|
269
|
+
}, z.core.$strip>;
|
|
270
|
+
snapshot: z.ZodObject<{
|
|
271
|
+
at: z.ZodString;
|
|
272
|
+
known: z.ZodArray<z.ZodString>;
|
|
273
|
+
planFile: z.ZodObject<{
|
|
274
|
+
id: z.ZodString;
|
|
275
|
+
version: z.ZodNumber;
|
|
276
|
+
}, z.core.$strip>;
|
|
277
|
+
model: z.ZodNullable<z.ZodString>;
|
|
278
|
+
yieldRows: z.ZodNumber;
|
|
279
|
+
}, z.core.$strip>;
|
|
280
|
+
}, z.core.$strip>;
|
|
281
|
+
export type Plan = z.infer<typeof Plan>;
|
|
282
|
+
/** A hit as a source shows it for free: no read has happened. `sources` is every source that returned it. */
|
|
283
|
+
export declare const HitView: z.ZodObject<{
|
|
284
|
+
url: z.ZodString;
|
|
285
|
+
title: z.ZodOptional<z.ZodString>;
|
|
286
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
287
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
288
|
+
date: z.ZodOptional<z.ZodString>;
|
|
289
|
+
snippet: z.ZodOptional<z.ZodString>;
|
|
290
|
+
sources: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
291
|
+
odds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
292
|
+
}, z.core.$strip>;
|
|
293
|
+
export type HitView = z.infer<typeof HitView>;
|
|
294
|
+
/** A hit as a caller may pass it: `sources` optional. */
|
|
295
|
+
export type HitViewIn = z.input<typeof HitView>;
|
|
296
|
+
export declare const Triage: z.ZodObject<{
|
|
297
|
+
url: z.ZodString;
|
|
298
|
+
read: z.ZodBoolean;
|
|
299
|
+
why: z.ZodString;
|
|
300
|
+
from: z.ZodEnum<{
|
|
301
|
+
ai: "ai";
|
|
302
|
+
human: "human";
|
|
303
|
+
}>;
|
|
304
|
+
by: z.ZodString;
|
|
305
|
+
}, z.core.$strip>;
|
|
306
|
+
export type Triage = z.infer<typeof Triage>;
|
|
307
|
+
/** The extractor's word on one read document: how much of the ask it served, what is still missing. */
|
|
308
|
+
export declare const Verdict: z.ZodObject<{
|
|
309
|
+
url: z.ZodString;
|
|
310
|
+
quality: z.ZodEnum<{
|
|
311
|
+
rich: "rich";
|
|
312
|
+
thin: "thin";
|
|
313
|
+
off: "off";
|
|
314
|
+
empty: "empty";
|
|
315
|
+
}>;
|
|
316
|
+
gap: z.ZodOptional<z.ZodString>;
|
|
317
|
+
}, z.core.$strip>;
|
|
318
|
+
export type Verdict = z.infer<typeof Verdict>;
|
|
319
|
+
/** What one round came to, as counts, verdicts and notes. The runner fills it; the planner reads it. */
|
|
320
|
+
export declare const Round: z.ZodObject<{
|
|
321
|
+
ask: z.ZodObject<{
|
|
322
|
+
text: z.ZodString;
|
|
323
|
+
kind: z.ZodEnum<{
|
|
324
|
+
video: "video";
|
|
325
|
+
channel: "channel";
|
|
326
|
+
web: "web";
|
|
327
|
+
person: "person";
|
|
328
|
+
site: "site";
|
|
329
|
+
}>;
|
|
330
|
+
known: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
331
|
+
premises: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
332
|
+
steer: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
333
|
+
open: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
334
|
+
criteria: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
335
|
+
name: z.ZodString;
|
|
336
|
+
question: z.ZodString;
|
|
337
|
+
}, z.core.$strip>>>;
|
|
338
|
+
site: z.ZodOptional<z.ZodString>;
|
|
339
|
+
}, z.core.$strip>;
|
|
340
|
+
round: z.ZodNumber;
|
|
341
|
+
budget: z.ZodObject<{
|
|
342
|
+
queries: z.ZodNumber;
|
|
343
|
+
reads: z.ZodNumber;
|
|
344
|
+
rounds: z.ZodNumber;
|
|
345
|
+
checks: z.ZodDefault<z.ZodNumber>;
|
|
346
|
+
}, z.core.$strip>;
|
|
347
|
+
hits: z.ZodNumber;
|
|
348
|
+
reads: z.ZodNumber;
|
|
349
|
+
proposed: z.ZodNumber;
|
|
350
|
+
kept: z.ZodNumber;
|
|
351
|
+
found: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
352
|
+
notes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
353
|
+
verdicts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
354
|
+
url: z.ZodString;
|
|
355
|
+
quality: z.ZodEnum<{
|
|
356
|
+
rich: "rich";
|
|
357
|
+
thin: "thin";
|
|
358
|
+
off: "off";
|
|
359
|
+
empty: "empty";
|
|
360
|
+
}>;
|
|
361
|
+
gap: z.ZodOptional<z.ZodString>;
|
|
362
|
+
}, z.core.$strip>>>;
|
|
363
|
+
gaps: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
364
|
+
checks: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
365
|
+
earlier: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
366
|
+
hits: z.ZodNumber;
|
|
367
|
+
kept: z.ZodNumber;
|
|
368
|
+
}, z.core.$strip>>>;
|
|
369
|
+
}, z.core.$strip>;
|
|
370
|
+
export type Round = z.infer<typeof Round>;
|
|
371
|
+
export declare const Step: z.ZodEnum<{
|
|
372
|
+
triage: "triage";
|
|
373
|
+
read: "read";
|
|
374
|
+
plan: "plan";
|
|
375
|
+
fetch: "fetch";
|
|
376
|
+
extract: "extract";
|
|
377
|
+
}>;
|
|
378
|
+
export type Step = z.infer<typeof Step>;
|
|
379
|
+
/** The edge out of a round. `again` is a new round from `plan`; `back` reruns one step of this round. */
|
|
380
|
+
export declare const Edge: z.ZodObject<{
|
|
381
|
+
next: z.ZodEnum<{
|
|
382
|
+
stop: "stop";
|
|
383
|
+
again: "again";
|
|
384
|
+
back: "back";
|
|
385
|
+
}>;
|
|
386
|
+
to: z.ZodOptional<z.ZodEnum<{
|
|
387
|
+
triage: "triage";
|
|
388
|
+
read: "read";
|
|
389
|
+
plan: "plan";
|
|
390
|
+
fetch: "fetch";
|
|
391
|
+
extract: "extract";
|
|
392
|
+
}>>;
|
|
393
|
+
why: z.ZodString;
|
|
394
|
+
from: z.ZodEnum<{
|
|
395
|
+
ai: "ai";
|
|
396
|
+
human: "human";
|
|
397
|
+
}>;
|
|
398
|
+
by: z.ZodString;
|
|
399
|
+
}, z.core.$strip>;
|
|
400
|
+
export type Edge = z.infer<typeof Edge>;
|
|
401
|
+
export { z };
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The planner's shapes. A query says what to look for and who asked for it; a plan is the
|
|
3
|
+
* queries of one round plus the sources and budget it runs under; a plan file is the tuned
|
|
4
|
+
* recipe per ask kind. Hits are the engine's; the planner sees them through `HitView`, the fields a
|
|
5
|
+
* source shows for free, because the engine depends on the planner and not the reverse.
|
|
6
|
+
*/
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
export const AskKind = z.enum(["web", "video", "channel", "person", "site"]);
|
|
9
|
+
/** Who wrote a record: a model, a plan file or a person. */
|
|
10
|
+
export const From = z.enum(["ai", "human"]);
|
|
11
|
+
/**
|
|
12
|
+
* One yes-or-no test a good source passes, named: the judge answers it on every hit and every
|
|
13
|
+
* page read whole. A hint and a router, never a gate.
|
|
14
|
+
*/
|
|
15
|
+
export const Criterion = z.object({
|
|
16
|
+
name: z.string().regex(/^[a-z][a-z0-9_]*$/),
|
|
17
|
+
question: z.string().min(1),
|
|
18
|
+
});
|
|
19
|
+
/** What someone wants to know, and what is known already. */
|
|
20
|
+
export const Ask = z.object({
|
|
21
|
+
text: z.string().min(1),
|
|
22
|
+
kind: AskKind,
|
|
23
|
+
/** Facts already in hand, one line each: the planner looks past them. */
|
|
24
|
+
known: z.array(z.string()).default([]),
|
|
25
|
+
/** Lines taken as given with no source behind them: the plan tests each, never looks past it. */
|
|
26
|
+
premises: z.array(z.string()).default([]),
|
|
27
|
+
/** What the person said along the way, one line each: every prompt renders it first. */
|
|
28
|
+
steer: z.array(z.string()).default([]),
|
|
29
|
+
/** What the last round left open, one line each: its review's why, its gaps. The planner looks there first. */
|
|
30
|
+
open: z.array(z.string()).default([]),
|
|
31
|
+
/** The person's tests of a good source; empty: none. */
|
|
32
|
+
criteria: z.array(Criterion).default([]),
|
|
33
|
+
/** Only for kind `site`, or when a query must stay on one host. */
|
|
34
|
+
site: z.string().optional(),
|
|
35
|
+
});
|
|
36
|
+
/** One thing to look for. `terms` is what a person would type; a source adapter forms its own call from it. */
|
|
37
|
+
export const Query = z.object({
|
|
38
|
+
kind: AskKind,
|
|
39
|
+
terms: z.string().min(1),
|
|
40
|
+
site: z.string().optional(),
|
|
41
|
+
/** Why this query serves the ask: the line a reviewer reads first. */
|
|
42
|
+
why: z.string(),
|
|
43
|
+
/** The tree's facet it serves, and which try (1 = the first). Absent on a flat query. */
|
|
44
|
+
facet: z.string().optional(),
|
|
45
|
+
tier: z.number().int().positive().optional(),
|
|
46
|
+
/** The source classes the facet needs (a spend claim: survey, primary_data); the engine checks the names. */
|
|
47
|
+
needs: z.array(z.string().min(1)).optional(),
|
|
48
|
+
from: From,
|
|
49
|
+
/** Model id, plan file id or a person's name. */
|
|
50
|
+
by: z.string(),
|
|
51
|
+
});
|
|
52
|
+
/** Queries from one proposer. The model is one; a plan file, a teammate or a second model are others. */
|
|
53
|
+
export const Proposal = z.object({
|
|
54
|
+
from: From,
|
|
55
|
+
by: z.string(),
|
|
56
|
+
queries: z.array(Query.omit({ from: true, by: true })),
|
|
57
|
+
});
|
|
58
|
+
/** One query as a leaf of the tree: what a person would type, and why. */
|
|
59
|
+
export const Leaf = z.object({
|
|
60
|
+
terms: z.string().min(1),
|
|
61
|
+
why: z.string(),
|
|
62
|
+
site: z.string().optional(),
|
|
63
|
+
});
|
|
64
|
+
/**
|
|
65
|
+
* One side of the ask a researcher covers: a number, a how, a who, a counter-view, a primary
|
|
66
|
+
* source. `tries` are its alternatives in order: the first runs; the next runs only when the
|
|
67
|
+
* one before it yielded thin (fewer new hits than the guide's `thin`), or when the agent asks.
|
|
68
|
+
*/
|
|
69
|
+
export const Facet = z.object({
|
|
70
|
+
name: z.string().min(1),
|
|
71
|
+
/** What this facet would prove. */
|
|
72
|
+
why: z.string(),
|
|
73
|
+
/** The source classes that can prove it; a facet whose read pages have none of them is flagged. */
|
|
74
|
+
needs: z.array(z.string().min(1)).optional(),
|
|
75
|
+
tries: z.array(z.array(Leaf).min(1)).min(1),
|
|
76
|
+
});
|
|
77
|
+
/** The fan-out for one round: the facets, each with its tries. The agent writes it; birdwatch runs it. */
|
|
78
|
+
export const QueryTree = z.object({ facets: z.array(Facet).min(1) });
|
|
79
|
+
/** The plan file's guide for a tree: the facets a tree of this kind covers, and what thin means. A guide, not a cap: a tree may add facets; one it leaves out is a warning. */
|
|
80
|
+
export const TreeGuide = z.object({
|
|
81
|
+
facets: z.array(z.object({ name: z.string().min(1), why: z.string() })),
|
|
82
|
+
/** New hits under which a try counts as thin, so the next try runs. */
|
|
83
|
+
thin: z.number().int().nonnegative(),
|
|
84
|
+
});
|
|
85
|
+
export const Budget = z.object({
|
|
86
|
+
/** Queries per round after the merge. Human queries never count against it. */
|
|
87
|
+
queries: z.number().int().positive(),
|
|
88
|
+
/** Documents to read per round. */
|
|
89
|
+
reads: z.number().int().positive(),
|
|
90
|
+
/** Rounds before `review` must stop. */
|
|
91
|
+
rounds: z.number().int().positive(),
|
|
92
|
+
/** Kept findings per round that a model checks against their document: a sample spread across the documents. 0: none. */
|
|
93
|
+
checks: z.number().int().nonnegative().default(3),
|
|
94
|
+
});
|
|
95
|
+
/**
|
|
96
|
+
* The recipe for one ask kind: the prompts, the sources it may use, the budget. Versioned and
|
|
97
|
+
* tuned like an SOP, stored beside the ledger. `{name}` marks in a prompt are filled from the
|
|
98
|
+
* ask: `{ask}`, `{known}`, `{yield}`, `{n}`, `{year}`, `{site}`, `{open}`, `{age}`; the review's
|
|
99
|
+
* also `{gaps}` and `{checks}`.
|
|
100
|
+
*/
|
|
101
|
+
export const PlanFile = z.object({
|
|
102
|
+
id: z.string().min(1),
|
|
103
|
+
kind: AskKind,
|
|
104
|
+
version: z.number().int().positive(),
|
|
105
|
+
/** Asks the model for queries. Must say to answer with `{"queries":[{"terms","why","site?"}]}`. */
|
|
106
|
+
propose: z.string().min(1),
|
|
107
|
+
/** Asks the model to read or skip each hit. Must say to answer with `{"hits":[{"url","read","why"}]}`. */
|
|
108
|
+
triage: z.string().min(1),
|
|
109
|
+
/** Asks the model which edge to take after a round. Must say to answer with `{"next","to?","why"}`. */
|
|
110
|
+
review: z.string().min(1),
|
|
111
|
+
/** Source names a run may use, in order of preference. A run can narrow the list, never widen it. */
|
|
112
|
+
sources: z.array(z.string()),
|
|
113
|
+
budget: Budget,
|
|
114
|
+
/** How much a source's age counts for this kind, one sentence: filled as `{age}`. Never a cutoff. */
|
|
115
|
+
age: z.string().optional(),
|
|
116
|
+
/** The facets a query tree of this kind covers. Absent on a file from before version 6: the kind's default. */
|
|
117
|
+
tree: TreeGuide.optional(),
|
|
118
|
+
/**
|
|
119
|
+
* The run tree's caps. `depth`: levels from the root (2: the root and its children); past it a
|
|
120
|
+
* warning, not a stop. `children`: per parent round. `reads`: pages the whole tree may read, the
|
|
121
|
+
* one hard stop; absent, the root's reads times rounds times (children + 1). Absent: 2 and 6.
|
|
122
|
+
*/
|
|
123
|
+
runs: z
|
|
124
|
+
.object({
|
|
125
|
+
depth: z.number().int().positive(),
|
|
126
|
+
children: z.number().int().positive(),
|
|
127
|
+
reads: z.number().int().positive().optional(),
|
|
128
|
+
})
|
|
129
|
+
.optional(),
|
|
130
|
+
});
|
|
131
|
+
/** What a source, channel or proposer yielded before. The planner reads it; wren or the files ledger writes it. */
|
|
132
|
+
export const YieldRow = z.object({
|
|
133
|
+
by: z.string().optional(),
|
|
134
|
+
source: z.string().optional(),
|
|
135
|
+
channel: z.string().optional(),
|
|
136
|
+
kind: AskKind.optional(),
|
|
137
|
+
hits: z.number().int().nonnegative(),
|
|
138
|
+
reads: z.number().int().nonnegative(),
|
|
139
|
+
proposed: z.number().int().nonnegative(),
|
|
140
|
+
kept: z.number().int().nonnegative(),
|
|
141
|
+
});
|
|
142
|
+
/** What the planner was given for one round: the RL state, kept with the plan. */
|
|
143
|
+
export const Snapshot = z.object({
|
|
144
|
+
at: z.string(),
|
|
145
|
+
known: z.array(z.string()),
|
|
146
|
+
planFile: z.object({ id: z.string(), version: z.number().int() }),
|
|
147
|
+
model: z.string().nullable(),
|
|
148
|
+
yieldRows: z.number().int().nonnegative(),
|
|
149
|
+
});
|
|
150
|
+
export const Plan = z.object({
|
|
151
|
+
ask: Ask,
|
|
152
|
+
round: z.number().int().positive(),
|
|
153
|
+
queries: z.array(Query),
|
|
154
|
+
sources: z.array(z.string()),
|
|
155
|
+
budget: Budget,
|
|
156
|
+
snapshot: Snapshot,
|
|
157
|
+
});
|
|
158
|
+
/** A hit as a source shows it for free: no read has happened. `sources` is every source that returned it. */
|
|
159
|
+
export const HitView = z.object({
|
|
160
|
+
url: z.string().min(1),
|
|
161
|
+
title: z.string().optional(),
|
|
162
|
+
channel: z.string().optional(),
|
|
163
|
+
/** Seconds, for video and audio. */
|
|
164
|
+
length: z.number().nonnegative().optional(),
|
|
165
|
+
/** ISO date, when the source gives one. */
|
|
166
|
+
date: z.string().optional(),
|
|
167
|
+
snippet: z.string().optional(),
|
|
168
|
+
sources: z.array(z.string()).default([]),
|
|
169
|
+
/** The judge's yes odds by question (serves, each criterion): a hint the triage prompt shows. */
|
|
170
|
+
odds: z.record(z.string(), z.number()).optional(),
|
|
171
|
+
});
|
|
172
|
+
export const Triage = z.object({
|
|
173
|
+
url: z.string(),
|
|
174
|
+
read: z.boolean(),
|
|
175
|
+
/** The model's line on a read; a skip's is fixed text, so the model writes none. */
|
|
176
|
+
why: z.string(),
|
|
177
|
+
from: From,
|
|
178
|
+
by: z.string(),
|
|
179
|
+
});
|
|
180
|
+
/** The extractor's word on one read document: how much of the ask it served, what is still missing. */
|
|
181
|
+
export const Verdict = z.object({
|
|
182
|
+
url: z.string(),
|
|
183
|
+
quality: z.enum(["rich", "thin", "off", "empty"]),
|
|
184
|
+
gap: z.string().optional(),
|
|
185
|
+
});
|
|
186
|
+
/** What one round came to, as counts, verdicts and notes. The runner fills it; the planner reads it. */
|
|
187
|
+
export const Round = z.object({
|
|
188
|
+
ask: Ask,
|
|
189
|
+
round: z.number().int().positive(),
|
|
190
|
+
budget: Budget,
|
|
191
|
+
hits: z.number().int().nonnegative(),
|
|
192
|
+
reads: z.number().int().nonnegative(),
|
|
193
|
+
proposed: z.number().int().nonnegative(),
|
|
194
|
+
kept: z.number().int().nonnegative(),
|
|
195
|
+
/** What the kept findings say, one line each: the planner sees what is answered. */
|
|
196
|
+
found: z.array(z.string()).default([]),
|
|
197
|
+
/** What went wrong or ran out, one line each. */
|
|
198
|
+
notes: z.array(z.string()).default([]),
|
|
199
|
+
/** The extractor's verdict on each document read this round: the planner sees what the reads were worth. */
|
|
200
|
+
verdicts: z.array(Verdict).default([]),
|
|
201
|
+
/** What a step or a person said the round lacks, one line each, the step or the person first. */
|
|
202
|
+
gaps: z.array(z.string()).default([]),
|
|
203
|
+
/** The sample check: whether each checked finding's quote backs it, one line each. */
|
|
204
|
+
checks: z.array(z.string()).default([]),
|
|
205
|
+
/** Each earlier round's new hits and kept findings: the review sees the trend, and decides. */
|
|
206
|
+
earlier: z
|
|
207
|
+
.array(z.object({
|
|
208
|
+
hits: z.number().int().nonnegative(),
|
|
209
|
+
kept: z.number().int().nonnegative(),
|
|
210
|
+
}))
|
|
211
|
+
.default([]),
|
|
212
|
+
});
|
|
213
|
+
export const Step = z.enum(["plan", "fetch", "triage", "read", "extract"]);
|
|
214
|
+
/** The edge out of a round. `again` is a new round from `plan`; `back` reruns one step of this round. */
|
|
215
|
+
export const Edge = z.object({
|
|
216
|
+
next: z.enum(["stop", "again", "back"]),
|
|
217
|
+
to: Step.optional(),
|
|
218
|
+
why: z.string(),
|
|
219
|
+
from: From,
|
|
220
|
+
by: z.string(),
|
|
221
|
+
});
|
|
222
|
+
export { z };
|
|
223
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/plan/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,CAAC,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