@maycombhq/sdk 2.0.0-beta.1 → 2.0.0-beta.3
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/{dist → npm}/cache.d.ts +1 -1
- package/npm/core/api.d.ts +6098 -0
- package/npm/core/assistant-actor.d.ts +15 -0
- package/npm/core/branches.d.ts +21 -0
- package/npm/core/cancel.d.ts +9 -0
- package/npm/core/catalog.d.ts +4733 -0
- package/npm/core/change-types-migrate.d.ts +10 -0
- package/npm/core/cite.d.ts +54 -0
- package/npm/core/curated.d.ts +37 -0
- package/npm/core/facts-callers.d.ts +150 -0
- package/npm/core/facts-carry.d.ts +36 -0
- package/npm/core/facts-join-prototype.d.ts +177 -0
- package/npm/core/facts-join-vendor.d.ts +92 -0
- package/npm/core/facts-join.d.ts +256 -0
- package/npm/core/facts.d.ts +94 -0
- package/npm/core/fs.d.ts +47 -0
- package/npm/core/gates-migrate.d.ts +10 -0
- package/npm/core/host-questions.d.ts +24 -0
- package/npm/core/identity.d.ts +17 -0
- package/npm/core/index.d.ts +62 -0
- package/npm/core/json-schema.d.ts +20 -0
- package/npm/core/judgments.d.ts +63 -0
- package/npm/core/light.d.ts +8 -0
- package/npm/core/log.d.ts +49 -0
- package/npm/core/manifest-edit.d.ts +48 -0
- package/npm/core/merge.d.ts +78 -0
- package/npm/core/metarepo.d.ts +83 -0
- package/npm/core/migrate.d.ts +31 -0
- package/npm/core/migration-files.d.ts +13 -0
- package/npm/core/orgpack-defaults.d.ts +194 -0
- package/npm/core/orgpack-load.d.ts +86 -0
- package/npm/core/questions.d.ts +267 -0
- package/npm/core/record-cache.d.ts +52 -0
- package/npm/core/refs.d.ts +9 -0
- package/npm/core/repo-description.d.ts +44 -0
- package/npm/core/runtime-migrate.d.ts +11 -0
- package/npm/core/schema/ai.d.ts +397 -0
- package/npm/core/schema/change.d.ts +244 -0
- package/npm/core/schema/common.d.ts +135 -0
- package/npm/core/schema/dialect.d.ts +801 -0
- package/npm/core/schema/executors.d.ts +396 -0
- package/npm/core/schema/fact-corrections.d.ts +55 -0
- package/npm/core/schema/facts.d.ts +1476 -0
- package/npm/core/schema/frameworks.d.ts +371 -0
- package/npm/core/schema/judgment.d.ts +77 -0
- package/npm/core/schema/kinds.d.ts +5166 -0
- package/npm/core/schema/layout.d.ts +25 -0
- package/npm/core/schema/orgpack.d.ts +1167 -0
- package/npm/core/schema/plugin.d.ts +73 -0
- package/npm/core/schema/question.d.ts +152 -0
- package/npm/core/schema/repo-type.d.ts +109 -0
- package/npm/core/schema/review.d.ts +558 -0
- package/npm/core/schema/scan-settings.d.ts +34 -0
- package/npm/core/schema/scan-verify.d.ts +535 -0
- package/npm/core/schema/spec.d.ts +269 -0
- package/npm/core/schema/version.d.ts +9 -0
- package/npm/core/schema/workspace.d.ts +312 -0
- package/npm/core/serialize.d.ts +17 -0
- package/npm/core/sources-migrate.d.ts +15 -0
- package/npm/core/specs.d.ts +66 -0
- package/npm/core/tar-read.d.ts +13 -0
- package/npm/core/template.d.ts +101 -0
- package/npm/core/words.d.ts +13 -0
- package/npm/core/zip-read.d.ts +37 -0
- package/npm/core/zip.d.ts +13 -0
- package/npm/index.js +8892 -0
- package/{dist → npm}/plugin.d.ts +1 -1
- package/{dist → npm}/runner.d.ts +1 -1
- package/package.json +10 -11
- package/dist/cache.js +0 -115
- package/dist/cache.js.map +0 -1
- package/dist/fs-repo.js +0 -120
- package/dist/fs-repo.js.map +0 -1
- package/dist/index.js +0 -7
- package/dist/index.js.map +0 -1
- package/dist/parse-cache.js +0 -275
- package/dist/parse-cache.js.map +0 -1
- package/dist/plugin.js +0 -85
- package/dist/plugin.js.map +0 -1
- package/dist/runner.js +0 -209
- package/dist/runner.js.map +0 -1
- package/dist/sandbox.js +0 -443
- package/dist/sandbox.js.map +0 -1
- /package/{dist → npm}/fs-repo.d.ts +0 -0
- /package/{dist → npm}/index.d.ts +0 -0
- /package/{dist → npm}/parse-cache.d.ts +0 -0
- /package/{dist → npm}/sandbox.d.ts +0 -0
|
@@ -0,0 +1,535 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* The AI verify step of a scan (ADR 0082): the assistant reads the repo, compares it with what
|
|
4
|
+
* the last scan recorded, and lists what the scan missed, what it has wrong and what it
|
|
5
|
+
* confirms. Every item cites the file and line it read, and each carries a fix: scan settings
|
|
6
|
+
* when they can express it, a question for a person when the code can't settle it, or a change
|
|
7
|
+
* to a reader. The answer is checked against the code; what passes is kept in a proposal,
|
|
8
|
+
* proposals/scan/<repo>.yaml, that a person accepts.
|
|
9
|
+
*/
|
|
10
|
+
export declare const SCAN_VERIFY_SCHEMA_VERSION: 1;
|
|
11
|
+
/** What kind of fact an item is about, in the words of the bench (ADR 0074). */
|
|
12
|
+
export declare const VerifyFactKind: z.ZodEnum<{
|
|
13
|
+
other: "other";
|
|
14
|
+
table: "table";
|
|
15
|
+
call: "call";
|
|
16
|
+
deployment: "deployment";
|
|
17
|
+
"entry-point": "entry-point";
|
|
18
|
+
}>;
|
|
19
|
+
export type VerifyFactKind = z.infer<typeof VerifyFactKind>;
|
|
20
|
+
/** Scan settings entries (ADR 0075, 0076), without the file's header. */
|
|
21
|
+
export declare const VerifySettings: z.ZodObject<{
|
|
22
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
23
|
+
path: z.ZodString;
|
|
24
|
+
why: z.ZodString;
|
|
25
|
+
at: z.ZodString;
|
|
26
|
+
}, z.core.$strict>>>;
|
|
27
|
+
clients: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
28
|
+
paths: z.ZodArray<z.ZodString>;
|
|
29
|
+
base: z.ZodString;
|
|
30
|
+
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
31
|
+
why: z.ZodString;
|
|
32
|
+
at: z.ZodString;
|
|
33
|
+
value: z.ZodString;
|
|
34
|
+
}, z.core.$strict>>>;
|
|
35
|
+
prefixes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
36
|
+
paths: z.ZodArray<z.ZodString>;
|
|
37
|
+
prefix: z.ZodString;
|
|
38
|
+
why: z.ZodString;
|
|
39
|
+
at: z.ZodString;
|
|
40
|
+
value: z.ZodString;
|
|
41
|
+
}, z.core.$strict>>>;
|
|
42
|
+
}, z.core.$strict>;
|
|
43
|
+
export type VerifySettings = z.infer<typeof VerifySettings>;
|
|
44
|
+
/** How to put an item right: exactly one of settings, a question, or a reader change. */
|
|
45
|
+
export declare const VerifyFix: z.ZodUnion<readonly [z.ZodObject<{
|
|
46
|
+
settings: z.ZodObject<{
|
|
47
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
48
|
+
path: z.ZodString;
|
|
49
|
+
why: z.ZodString;
|
|
50
|
+
at: z.ZodString;
|
|
51
|
+
}, z.core.$strict>>>;
|
|
52
|
+
clients: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
53
|
+
paths: z.ZodArray<z.ZodString>;
|
|
54
|
+
base: z.ZodString;
|
|
55
|
+
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
56
|
+
why: z.ZodString;
|
|
57
|
+
at: z.ZodString;
|
|
58
|
+
value: z.ZodString;
|
|
59
|
+
}, z.core.$strict>>>;
|
|
60
|
+
prefixes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
61
|
+
paths: z.ZodArray<z.ZodString>;
|
|
62
|
+
prefix: z.ZodString;
|
|
63
|
+
why: z.ZodString;
|
|
64
|
+
at: z.ZodString;
|
|
65
|
+
value: z.ZodString;
|
|
66
|
+
}, z.core.$strict>>>;
|
|
67
|
+
}, z.core.$strict>;
|
|
68
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
69
|
+
question: z.ZodObject<{
|
|
70
|
+
question: z.ZodString;
|
|
71
|
+
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
72
|
+
label: z.ZodString;
|
|
73
|
+
means: z.ZodString;
|
|
74
|
+
changes: z.ZodString;
|
|
75
|
+
}, z.core.$strict>>>;
|
|
76
|
+
evidence: z.ZodArray<z.ZodString>;
|
|
77
|
+
scope: z.ZodDefault<z.ZodEnum<{
|
|
78
|
+
repo: "repo";
|
|
79
|
+
"repo-type": "repo-type";
|
|
80
|
+
}>>;
|
|
81
|
+
repoType: z.ZodOptional<z.ZodString>;
|
|
82
|
+
sameAs: z.ZodOptional<z.ZodObject<{
|
|
83
|
+
id: z.ZodString;
|
|
84
|
+
verdict: z.ZodEnum<{
|
|
85
|
+
answered: "answered";
|
|
86
|
+
narrower: "narrower";
|
|
87
|
+
same: "same";
|
|
88
|
+
}>;
|
|
89
|
+
quote: z.ZodString;
|
|
90
|
+
}, z.core.$strict>>;
|
|
91
|
+
}, z.core.$strict>;
|
|
92
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
93
|
+
reader: z.ZodString;
|
|
94
|
+
}, z.core.$strict>]>;
|
|
95
|
+
export type VerifyFix = z.infer<typeof VerifyFix>;
|
|
96
|
+
/** Something in the code the scan didn't record. */
|
|
97
|
+
export declare const VerifyMissed: z.ZodObject<{
|
|
98
|
+
at: z.ZodString;
|
|
99
|
+
says: z.ZodString;
|
|
100
|
+
why: z.ZodString;
|
|
101
|
+
fix: z.ZodUnion<readonly [z.ZodObject<{
|
|
102
|
+
settings: z.ZodObject<{
|
|
103
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
104
|
+
path: z.ZodString;
|
|
105
|
+
why: z.ZodString;
|
|
106
|
+
at: z.ZodString;
|
|
107
|
+
}, z.core.$strict>>>;
|
|
108
|
+
clients: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
109
|
+
paths: z.ZodArray<z.ZodString>;
|
|
110
|
+
base: z.ZodString;
|
|
111
|
+
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
112
|
+
why: z.ZodString;
|
|
113
|
+
at: z.ZodString;
|
|
114
|
+
value: z.ZodString;
|
|
115
|
+
}, z.core.$strict>>>;
|
|
116
|
+
prefixes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
117
|
+
paths: z.ZodArray<z.ZodString>;
|
|
118
|
+
prefix: z.ZodString;
|
|
119
|
+
why: z.ZodString;
|
|
120
|
+
at: z.ZodString;
|
|
121
|
+
value: z.ZodString;
|
|
122
|
+
}, z.core.$strict>>>;
|
|
123
|
+
}, z.core.$strict>;
|
|
124
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
125
|
+
question: z.ZodObject<{
|
|
126
|
+
question: z.ZodString;
|
|
127
|
+
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
128
|
+
label: z.ZodString;
|
|
129
|
+
means: z.ZodString;
|
|
130
|
+
changes: z.ZodString;
|
|
131
|
+
}, z.core.$strict>>>;
|
|
132
|
+
evidence: z.ZodArray<z.ZodString>;
|
|
133
|
+
scope: z.ZodDefault<z.ZodEnum<{
|
|
134
|
+
repo: "repo";
|
|
135
|
+
"repo-type": "repo-type";
|
|
136
|
+
}>>;
|
|
137
|
+
repoType: z.ZodOptional<z.ZodString>;
|
|
138
|
+
sameAs: z.ZodOptional<z.ZodObject<{
|
|
139
|
+
id: z.ZodString;
|
|
140
|
+
verdict: z.ZodEnum<{
|
|
141
|
+
answered: "answered";
|
|
142
|
+
narrower: "narrower";
|
|
143
|
+
same: "same";
|
|
144
|
+
}>;
|
|
145
|
+
quote: z.ZodString;
|
|
146
|
+
}, z.core.$strict>>;
|
|
147
|
+
}, z.core.$strict>;
|
|
148
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
149
|
+
reader: z.ZodString;
|
|
150
|
+
}, z.core.$strict>]>;
|
|
151
|
+
kind: z.ZodEnum<{
|
|
152
|
+
other: "other";
|
|
153
|
+
table: "table";
|
|
154
|
+
call: "call";
|
|
155
|
+
deployment: "deployment";
|
|
156
|
+
"entry-point": "entry-point";
|
|
157
|
+
}>;
|
|
158
|
+
method: z.ZodOptional<z.ZodString>;
|
|
159
|
+
name: z.ZodString;
|
|
160
|
+
}, z.core.$strict>;
|
|
161
|
+
export type VerifyMissed = z.infer<typeof VerifyMissed>;
|
|
162
|
+
/** A record the scan has that the code doesn't support. */
|
|
163
|
+
export declare const VerifyWrong: z.ZodObject<{
|
|
164
|
+
at: z.ZodString;
|
|
165
|
+
says: z.ZodString;
|
|
166
|
+
why: z.ZodString;
|
|
167
|
+
fix: z.ZodUnion<readonly [z.ZodObject<{
|
|
168
|
+
settings: z.ZodObject<{
|
|
169
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
170
|
+
path: z.ZodString;
|
|
171
|
+
why: z.ZodString;
|
|
172
|
+
at: z.ZodString;
|
|
173
|
+
}, z.core.$strict>>>;
|
|
174
|
+
clients: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
175
|
+
paths: z.ZodArray<z.ZodString>;
|
|
176
|
+
base: z.ZodString;
|
|
177
|
+
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
178
|
+
why: z.ZodString;
|
|
179
|
+
at: z.ZodString;
|
|
180
|
+
value: z.ZodString;
|
|
181
|
+
}, z.core.$strict>>>;
|
|
182
|
+
prefixes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
183
|
+
paths: z.ZodArray<z.ZodString>;
|
|
184
|
+
prefix: z.ZodString;
|
|
185
|
+
why: z.ZodString;
|
|
186
|
+
at: z.ZodString;
|
|
187
|
+
value: z.ZodString;
|
|
188
|
+
}, z.core.$strict>>>;
|
|
189
|
+
}, z.core.$strict>;
|
|
190
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
191
|
+
question: z.ZodObject<{
|
|
192
|
+
question: z.ZodString;
|
|
193
|
+
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
194
|
+
label: z.ZodString;
|
|
195
|
+
means: z.ZodString;
|
|
196
|
+
changes: z.ZodString;
|
|
197
|
+
}, z.core.$strict>>>;
|
|
198
|
+
evidence: z.ZodArray<z.ZodString>;
|
|
199
|
+
scope: z.ZodDefault<z.ZodEnum<{
|
|
200
|
+
repo: "repo";
|
|
201
|
+
"repo-type": "repo-type";
|
|
202
|
+
}>>;
|
|
203
|
+
repoType: z.ZodOptional<z.ZodString>;
|
|
204
|
+
sameAs: z.ZodOptional<z.ZodObject<{
|
|
205
|
+
id: z.ZodString;
|
|
206
|
+
verdict: z.ZodEnum<{
|
|
207
|
+
answered: "answered";
|
|
208
|
+
narrower: "narrower";
|
|
209
|
+
same: "same";
|
|
210
|
+
}>;
|
|
211
|
+
quote: z.ZodString;
|
|
212
|
+
}, z.core.$strict>>;
|
|
213
|
+
}, z.core.$strict>;
|
|
214
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
215
|
+
reader: z.ZodString;
|
|
216
|
+
}, z.core.$strict>]>;
|
|
217
|
+
record: z.ZodString;
|
|
218
|
+
}, z.core.$strict>;
|
|
219
|
+
export type VerifyWrong = z.infer<typeof VerifyWrong>;
|
|
220
|
+
/**
|
|
221
|
+
* A record the assistant read in the code and agrees with, citing the line that shows it
|
|
222
|
+
* (ADR 0112): in the file the record was read from, with a short quote found on that line.
|
|
223
|
+
*/
|
|
224
|
+
export declare const VerifyConfirmed: z.ZodObject<{
|
|
225
|
+
record: z.ZodString;
|
|
226
|
+
at: z.ZodString;
|
|
227
|
+
says: z.ZodString;
|
|
228
|
+
}, z.core.$strict>;
|
|
229
|
+
export type VerifyConfirmed = z.infer<typeof VerifyConfirmed>;
|
|
230
|
+
/** The assistant's answer, as it writes it. */
|
|
231
|
+
export declare const VerifyAnswer: z.ZodObject<{
|
|
232
|
+
missed: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
233
|
+
at: z.ZodString;
|
|
234
|
+
says: z.ZodString;
|
|
235
|
+
why: z.ZodString;
|
|
236
|
+
fix: z.ZodUnion<readonly [z.ZodObject<{
|
|
237
|
+
settings: z.ZodObject<{
|
|
238
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
239
|
+
path: z.ZodString;
|
|
240
|
+
why: z.ZodString;
|
|
241
|
+
at: z.ZodString;
|
|
242
|
+
}, z.core.$strict>>>;
|
|
243
|
+
clients: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
244
|
+
paths: z.ZodArray<z.ZodString>;
|
|
245
|
+
base: z.ZodString;
|
|
246
|
+
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
247
|
+
why: z.ZodString;
|
|
248
|
+
at: z.ZodString;
|
|
249
|
+
value: z.ZodString;
|
|
250
|
+
}, z.core.$strict>>>;
|
|
251
|
+
prefixes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
252
|
+
paths: z.ZodArray<z.ZodString>;
|
|
253
|
+
prefix: z.ZodString;
|
|
254
|
+
why: z.ZodString;
|
|
255
|
+
at: z.ZodString;
|
|
256
|
+
value: z.ZodString;
|
|
257
|
+
}, z.core.$strict>>>;
|
|
258
|
+
}, z.core.$strict>;
|
|
259
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
260
|
+
question: z.ZodObject<{
|
|
261
|
+
question: z.ZodString;
|
|
262
|
+
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
263
|
+
label: z.ZodString;
|
|
264
|
+
means: z.ZodString;
|
|
265
|
+
changes: z.ZodString;
|
|
266
|
+
}, z.core.$strict>>>;
|
|
267
|
+
evidence: z.ZodArray<z.ZodString>;
|
|
268
|
+
scope: z.ZodDefault<z.ZodEnum<{
|
|
269
|
+
repo: "repo";
|
|
270
|
+
"repo-type": "repo-type";
|
|
271
|
+
}>>;
|
|
272
|
+
repoType: z.ZodOptional<z.ZodString>;
|
|
273
|
+
sameAs: z.ZodOptional<z.ZodObject<{
|
|
274
|
+
id: z.ZodString;
|
|
275
|
+
verdict: z.ZodEnum<{
|
|
276
|
+
answered: "answered";
|
|
277
|
+
narrower: "narrower";
|
|
278
|
+
same: "same";
|
|
279
|
+
}>;
|
|
280
|
+
quote: z.ZodString;
|
|
281
|
+
}, z.core.$strict>>;
|
|
282
|
+
}, z.core.$strict>;
|
|
283
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
284
|
+
reader: z.ZodString;
|
|
285
|
+
}, z.core.$strict>]>;
|
|
286
|
+
kind: z.ZodEnum<{
|
|
287
|
+
other: "other";
|
|
288
|
+
table: "table";
|
|
289
|
+
call: "call";
|
|
290
|
+
deployment: "deployment";
|
|
291
|
+
"entry-point": "entry-point";
|
|
292
|
+
}>;
|
|
293
|
+
method: z.ZodOptional<z.ZodString>;
|
|
294
|
+
name: z.ZodString;
|
|
295
|
+
}, z.core.$strict>>>;
|
|
296
|
+
wrong: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
297
|
+
at: z.ZodString;
|
|
298
|
+
says: z.ZodString;
|
|
299
|
+
why: z.ZodString;
|
|
300
|
+
fix: z.ZodUnion<readonly [z.ZodObject<{
|
|
301
|
+
settings: z.ZodObject<{
|
|
302
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
303
|
+
path: z.ZodString;
|
|
304
|
+
why: z.ZodString;
|
|
305
|
+
at: z.ZodString;
|
|
306
|
+
}, z.core.$strict>>>;
|
|
307
|
+
clients: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
308
|
+
paths: z.ZodArray<z.ZodString>;
|
|
309
|
+
base: z.ZodString;
|
|
310
|
+
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
311
|
+
why: z.ZodString;
|
|
312
|
+
at: z.ZodString;
|
|
313
|
+
value: z.ZodString;
|
|
314
|
+
}, z.core.$strict>>>;
|
|
315
|
+
prefixes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
316
|
+
paths: z.ZodArray<z.ZodString>;
|
|
317
|
+
prefix: z.ZodString;
|
|
318
|
+
why: z.ZodString;
|
|
319
|
+
at: z.ZodString;
|
|
320
|
+
value: z.ZodString;
|
|
321
|
+
}, z.core.$strict>>>;
|
|
322
|
+
}, z.core.$strict>;
|
|
323
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
324
|
+
question: z.ZodObject<{
|
|
325
|
+
question: z.ZodString;
|
|
326
|
+
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
327
|
+
label: z.ZodString;
|
|
328
|
+
means: z.ZodString;
|
|
329
|
+
changes: z.ZodString;
|
|
330
|
+
}, z.core.$strict>>>;
|
|
331
|
+
evidence: z.ZodArray<z.ZodString>;
|
|
332
|
+
scope: z.ZodDefault<z.ZodEnum<{
|
|
333
|
+
repo: "repo";
|
|
334
|
+
"repo-type": "repo-type";
|
|
335
|
+
}>>;
|
|
336
|
+
repoType: z.ZodOptional<z.ZodString>;
|
|
337
|
+
sameAs: z.ZodOptional<z.ZodObject<{
|
|
338
|
+
id: z.ZodString;
|
|
339
|
+
verdict: z.ZodEnum<{
|
|
340
|
+
answered: "answered";
|
|
341
|
+
narrower: "narrower";
|
|
342
|
+
same: "same";
|
|
343
|
+
}>;
|
|
344
|
+
quote: z.ZodString;
|
|
345
|
+
}, z.core.$strict>>;
|
|
346
|
+
}, z.core.$strict>;
|
|
347
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
348
|
+
reader: z.ZodString;
|
|
349
|
+
}, z.core.$strict>]>;
|
|
350
|
+
record: z.ZodString;
|
|
351
|
+
}, z.core.$strict>>>;
|
|
352
|
+
confirmed: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
353
|
+
record: z.ZodString;
|
|
354
|
+
at: z.ZodString;
|
|
355
|
+
says: z.ZodString;
|
|
356
|
+
}, z.core.$strict>]>>>;
|
|
357
|
+
}, z.core.$strict>;
|
|
358
|
+
export type VerifyAnswer = z.infer<typeof VerifyAnswer>;
|
|
359
|
+
/** A record the assistant confirmed, pinned to the line its evidence cites. */
|
|
360
|
+
export declare const VerifiedRecord: z.ZodObject<{
|
|
361
|
+
record: z.ZodString;
|
|
362
|
+
at: z.ZodString;
|
|
363
|
+
line: z.ZodOptional<z.ZodString>;
|
|
364
|
+
}, z.core.$strict>;
|
|
365
|
+
export type VerifiedRecord = z.infer<typeof VerifiedRecord>;
|
|
366
|
+
/** proposals/scan/<repo>.yaml: what a verify run found and proposes, for a person to accept. */
|
|
367
|
+
export declare const ScanVerifyProposal: z.ZodObject<{
|
|
368
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
369
|
+
repo: z.ZodString;
|
|
370
|
+
run: z.ZodOptional<z.ZodString>;
|
|
371
|
+
at: z.ZodISODateTime;
|
|
372
|
+
settings: z.ZodObject<{
|
|
373
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
374
|
+
path: z.ZodString;
|
|
375
|
+
why: z.ZodString;
|
|
376
|
+
at: z.ZodString;
|
|
377
|
+
}, z.core.$strict>>>;
|
|
378
|
+
clients: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
379
|
+
paths: z.ZodArray<z.ZodString>;
|
|
380
|
+
base: z.ZodString;
|
|
381
|
+
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
382
|
+
why: z.ZodString;
|
|
383
|
+
at: z.ZodString;
|
|
384
|
+
value: z.ZodString;
|
|
385
|
+
}, z.core.$strict>>>;
|
|
386
|
+
prefixes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
387
|
+
paths: z.ZodArray<z.ZodString>;
|
|
388
|
+
prefix: z.ZodString;
|
|
389
|
+
why: z.ZodString;
|
|
390
|
+
at: z.ZodString;
|
|
391
|
+
value: z.ZodString;
|
|
392
|
+
}, z.core.$strict>>>;
|
|
393
|
+
}, z.core.$strict>;
|
|
394
|
+
missed: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
395
|
+
at: z.ZodString;
|
|
396
|
+
says: z.ZodString;
|
|
397
|
+
why: z.ZodString;
|
|
398
|
+
fix: z.ZodUnion<readonly [z.ZodObject<{
|
|
399
|
+
settings: z.ZodObject<{
|
|
400
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
401
|
+
path: z.ZodString;
|
|
402
|
+
why: z.ZodString;
|
|
403
|
+
at: z.ZodString;
|
|
404
|
+
}, z.core.$strict>>>;
|
|
405
|
+
clients: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
406
|
+
paths: z.ZodArray<z.ZodString>;
|
|
407
|
+
base: z.ZodString;
|
|
408
|
+
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
409
|
+
why: z.ZodString;
|
|
410
|
+
at: z.ZodString;
|
|
411
|
+
value: z.ZodString;
|
|
412
|
+
}, z.core.$strict>>>;
|
|
413
|
+
prefixes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
414
|
+
paths: z.ZodArray<z.ZodString>;
|
|
415
|
+
prefix: z.ZodString;
|
|
416
|
+
why: z.ZodString;
|
|
417
|
+
at: z.ZodString;
|
|
418
|
+
value: z.ZodString;
|
|
419
|
+
}, z.core.$strict>>>;
|
|
420
|
+
}, z.core.$strict>;
|
|
421
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
422
|
+
question: z.ZodObject<{
|
|
423
|
+
question: z.ZodString;
|
|
424
|
+
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
425
|
+
label: z.ZodString;
|
|
426
|
+
means: z.ZodString;
|
|
427
|
+
changes: z.ZodString;
|
|
428
|
+
}, z.core.$strict>>>;
|
|
429
|
+
evidence: z.ZodArray<z.ZodString>;
|
|
430
|
+
scope: z.ZodDefault<z.ZodEnum<{
|
|
431
|
+
repo: "repo";
|
|
432
|
+
"repo-type": "repo-type";
|
|
433
|
+
}>>;
|
|
434
|
+
repoType: z.ZodOptional<z.ZodString>;
|
|
435
|
+
sameAs: z.ZodOptional<z.ZodObject<{
|
|
436
|
+
id: z.ZodString;
|
|
437
|
+
verdict: z.ZodEnum<{
|
|
438
|
+
answered: "answered";
|
|
439
|
+
narrower: "narrower";
|
|
440
|
+
same: "same";
|
|
441
|
+
}>;
|
|
442
|
+
quote: z.ZodString;
|
|
443
|
+
}, z.core.$strict>>;
|
|
444
|
+
}, z.core.$strict>;
|
|
445
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
446
|
+
reader: z.ZodString;
|
|
447
|
+
}, z.core.$strict>]>;
|
|
448
|
+
kind: z.ZodEnum<{
|
|
449
|
+
other: "other";
|
|
450
|
+
table: "table";
|
|
451
|
+
call: "call";
|
|
452
|
+
deployment: "deployment";
|
|
453
|
+
"entry-point": "entry-point";
|
|
454
|
+
}>;
|
|
455
|
+
method: z.ZodOptional<z.ZodString>;
|
|
456
|
+
name: z.ZodString;
|
|
457
|
+
}, z.core.$strict>>>;
|
|
458
|
+
wrong: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
459
|
+
at: z.ZodString;
|
|
460
|
+
says: z.ZodString;
|
|
461
|
+
why: z.ZodString;
|
|
462
|
+
fix: z.ZodUnion<readonly [z.ZodObject<{
|
|
463
|
+
settings: z.ZodObject<{
|
|
464
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
465
|
+
path: z.ZodString;
|
|
466
|
+
why: z.ZodString;
|
|
467
|
+
at: z.ZodString;
|
|
468
|
+
}, z.core.$strict>>>;
|
|
469
|
+
clients: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
470
|
+
paths: z.ZodArray<z.ZodString>;
|
|
471
|
+
base: z.ZodString;
|
|
472
|
+
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
473
|
+
why: z.ZodString;
|
|
474
|
+
at: z.ZodString;
|
|
475
|
+
value: z.ZodString;
|
|
476
|
+
}, z.core.$strict>>>;
|
|
477
|
+
prefixes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
478
|
+
paths: z.ZodArray<z.ZodString>;
|
|
479
|
+
prefix: z.ZodString;
|
|
480
|
+
why: z.ZodString;
|
|
481
|
+
at: z.ZodString;
|
|
482
|
+
value: z.ZodString;
|
|
483
|
+
}, z.core.$strict>>>;
|
|
484
|
+
}, z.core.$strict>;
|
|
485
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
486
|
+
question: z.ZodObject<{
|
|
487
|
+
question: z.ZodString;
|
|
488
|
+
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
489
|
+
label: z.ZodString;
|
|
490
|
+
means: z.ZodString;
|
|
491
|
+
changes: z.ZodString;
|
|
492
|
+
}, z.core.$strict>>>;
|
|
493
|
+
evidence: z.ZodArray<z.ZodString>;
|
|
494
|
+
scope: z.ZodDefault<z.ZodEnum<{
|
|
495
|
+
repo: "repo";
|
|
496
|
+
"repo-type": "repo-type";
|
|
497
|
+
}>>;
|
|
498
|
+
repoType: z.ZodOptional<z.ZodString>;
|
|
499
|
+
sameAs: z.ZodOptional<z.ZodObject<{
|
|
500
|
+
id: z.ZodString;
|
|
501
|
+
verdict: z.ZodEnum<{
|
|
502
|
+
answered: "answered";
|
|
503
|
+
narrower: "narrower";
|
|
504
|
+
same: "same";
|
|
505
|
+
}>;
|
|
506
|
+
quote: z.ZodString;
|
|
507
|
+
}, z.core.$strict>>;
|
|
508
|
+
}, z.core.$strict>;
|
|
509
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
510
|
+
reader: z.ZodString;
|
|
511
|
+
}, z.core.$strict>]>;
|
|
512
|
+
record: z.ZodString;
|
|
513
|
+
kind: z.ZodEnum<{
|
|
514
|
+
other: "other";
|
|
515
|
+
table: "table";
|
|
516
|
+
call: "call";
|
|
517
|
+
deployment: "deployment";
|
|
518
|
+
"entry-point": "entry-point";
|
|
519
|
+
}>;
|
|
520
|
+
method: z.ZodOptional<z.ZodString>;
|
|
521
|
+
name: z.ZodString;
|
|
522
|
+
}, z.core.$strict>>>;
|
|
523
|
+
verified: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
524
|
+
record: z.ZodString;
|
|
525
|
+
at: z.ZodString;
|
|
526
|
+
line: z.ZodOptional<z.ZodString>;
|
|
527
|
+
}, z.core.$strict>>>;
|
|
528
|
+
questions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
529
|
+
accepted: z.ZodOptional<z.ZodObject<{
|
|
530
|
+
at: z.ZodISODateTime;
|
|
531
|
+
by: z.ZodString;
|
|
532
|
+
entries: z.ZodNumber;
|
|
533
|
+
}, z.core.$strict>>;
|
|
534
|
+
}, z.core.$strict>;
|
|
535
|
+
export type ScanVerifyProposal = z.infer<typeof ScanVerifyProposal>;
|