@peasant-labs/schema 0.1.0-rc10
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 +13 -0
- package/README.md +66 -0
- package/dist/fixtures/quality.d.ts +81 -0
- package/dist/fixtures/quality.js +36 -0
- package/dist/fixtures/timeline.d.ts +53 -0
- package/dist/fixtures/timeline.js +2 -0
- package/dist/fixtures.d.ts +2 -0
- package/dist/fixtures.js +2 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +36 -0
- package/dist/internal/generated/contract/zod.gen.d.ts +3441 -0
- package/dist/internal/generated/contract/zod.gen.js +1623 -0
- package/dist/internal/generated/enums.gen.d.ts +406 -0
- package/dist/internal/generated/enums.gen.js +445 -0
- package/dist/internal/generated/local-api.d.ts +1047 -0
- package/dist/internal/generated/local-api.js +1 -0
- package/dist/internal/generated/public-contract.gen.d.ts +2 -0
- package/dist/internal/generated/public-contract.gen.js +2 -0
- package/dist/internal/generated/quality-fixtures.gen.d.ts +2 -0
- package/dist/internal/generated/quality-fixtures.gen.js +367 -0
- package/dist/internal/generated/testcase.gen.d.ts +17 -0
- package/dist/internal/generated/testcase.gen.js +20 -0
- package/dist/internal/generated/timeline-fixtures.gen.d.ts +2 -0
- package/dist/internal/generated/timeline-fixtures.gen.js +1554 -0
- package/dist/internal/generated/versions.gen.d.ts +4 -0
- package/dist/internal/generated/versions.gen.js +5 -0
- package/dist/internal/generated/village-api.d.ts +652 -0
- package/dist/internal/generated/village-api.js +1 -0
- package/dist/local-api.d.ts +4 -0
- package/dist/local-api.js +1 -0
- package/dist/testcase.d.ts +32 -0
- package/dist/testcase.js +144 -0
- package/dist/types.d.ts +2 -0
- package/dist/types.js +2 -0
- package/dist/village-api.d.ts +4 -0
- package/dist/village-api.js +1 -0
- package/package.json +75 -0
|
@@ -0,0 +1,3441 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
export declare const zActivityEdge: z.ZodObject<{
|
|
3
|
+
from: z.ZodString;
|
|
4
|
+
taskCount: z.ZodInt;
|
|
5
|
+
to: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type ActivityEdge = z.infer<typeof zActivityEdge>;
|
|
8
|
+
/**
|
|
9
|
+
* Annotation Axis
|
|
10
|
+
*
|
|
11
|
+
* Subscription dimension for annotation channels
|
|
12
|
+
*/
|
|
13
|
+
export declare const zAnnotationAxis: z.ZodEnum<{
|
|
14
|
+
type: "type";
|
|
15
|
+
session: "session";
|
|
16
|
+
project: "project";
|
|
17
|
+
}>;
|
|
18
|
+
export type AnnotationAxis = z.infer<typeof zAnnotationAxis>;
|
|
19
|
+
/**
|
|
20
|
+
* Annotation Datatype
|
|
21
|
+
*
|
|
22
|
+
* Storage type for annotation values (maps to SQLite STRICT column type)
|
|
23
|
+
*/
|
|
24
|
+
export declare const zAnnotationDatatype: z.ZodEnum<{
|
|
25
|
+
boolean: "boolean";
|
|
26
|
+
real: "real";
|
|
27
|
+
text: "text";
|
|
28
|
+
integer: "integer";
|
|
29
|
+
}>;
|
|
30
|
+
export type AnnotationDatatype = z.infer<typeof zAnnotationDatatype>;
|
|
31
|
+
export declare const zAnnotationEntryTarget: z.ZodObject<{
|
|
32
|
+
endIndex: z.ZodInt;
|
|
33
|
+
entryIndex: z.ZodInt;
|
|
34
|
+
sessionId: z.ZodString;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export type AnnotationEntryTarget = z.infer<typeof zAnnotationEntryTarget>;
|
|
37
|
+
export declare const zAnnotationManifestResponse: z.ZodObject<{
|
|
38
|
+
digest: z.ZodString;
|
|
39
|
+
hashes: z.ZodArray<z.ZodString>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export type AnnotationManifestResponse = z.infer<typeof zAnnotationManifestResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Annotation Push Status
|
|
44
|
+
*
|
|
45
|
+
* Per-item annotation push outcome
|
|
46
|
+
*/
|
|
47
|
+
export declare const zAnnotationPushStatus: z.ZodEnum<{
|
|
48
|
+
skipped: "skipped";
|
|
49
|
+
error: "error";
|
|
50
|
+
created: "created";
|
|
51
|
+
updated: "updated";
|
|
52
|
+
}>;
|
|
53
|
+
export type AnnotationPushStatus = z.infer<typeof zAnnotationPushStatus>;
|
|
54
|
+
export declare const zAnnotationPushResult: z.ZodObject<{
|
|
55
|
+
contentHash: z.ZodOptional<z.ZodString>;
|
|
56
|
+
error: z.ZodOptional<z.ZodString>;
|
|
57
|
+
status: z.ZodEnum<{
|
|
58
|
+
skipped: "skipped";
|
|
59
|
+
error: "error";
|
|
60
|
+
created: "created";
|
|
61
|
+
updated: "updated";
|
|
62
|
+
}>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
export type AnnotationPushResult = z.infer<typeof zAnnotationPushResult>;
|
|
65
|
+
export declare const zAnnotationPushResponse: z.ZodObject<{
|
|
66
|
+
created: z.ZodInt;
|
|
67
|
+
errors: z.ZodInt;
|
|
68
|
+
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
69
|
+
contentHash: z.ZodOptional<z.ZodString>;
|
|
70
|
+
error: z.ZodOptional<z.ZodString>;
|
|
71
|
+
status: z.ZodEnum<{
|
|
72
|
+
skipped: "skipped";
|
|
73
|
+
error: "error";
|
|
74
|
+
created: "created";
|
|
75
|
+
updated: "updated";
|
|
76
|
+
}>;
|
|
77
|
+
}, z.core.$strip>>>;
|
|
78
|
+
skipped: z.ZodInt;
|
|
79
|
+
updated: z.ZodInt;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
export type AnnotationPushResponse = z.infer<typeof zAnnotationPushResponse>;
|
|
82
|
+
/**
|
|
83
|
+
* Annotation Status
|
|
84
|
+
*
|
|
85
|
+
* ISO 11179 lifecycle state of an annotation type
|
|
86
|
+
*/
|
|
87
|
+
export declare const zAnnotationStatus: z.ZodEnum<{
|
|
88
|
+
active: "active";
|
|
89
|
+
deprecated: "deprecated";
|
|
90
|
+
proposed: "proposed";
|
|
91
|
+
retired: "retired";
|
|
92
|
+
}>;
|
|
93
|
+
export type AnnotationStatus = z.infer<typeof zAnnotationStatus>;
|
|
94
|
+
/**
|
|
95
|
+
* Annotator Kind
|
|
96
|
+
*
|
|
97
|
+
* Type of entity that produced an annotation: human, agent (AI model), or rule (automated classifier)
|
|
98
|
+
*/
|
|
99
|
+
export declare const zAnnotatorKind: z.ZodEnum<{
|
|
100
|
+
human: "human";
|
|
101
|
+
agent: "agent";
|
|
102
|
+
rule: "rule";
|
|
103
|
+
}>;
|
|
104
|
+
export type AnnotatorKind = z.infer<typeof zAnnotatorKind>;
|
|
105
|
+
export declare const zAnnotatorSummary: z.ZodObject<{
|
|
106
|
+
description: z.ZodOptional<z.ZodString>;
|
|
107
|
+
displayName: z.ZodString;
|
|
108
|
+
id: z.ZodString;
|
|
109
|
+
kind: z.ZodEnum<{
|
|
110
|
+
human: "human";
|
|
111
|
+
agent: "agent";
|
|
112
|
+
rule: "rule";
|
|
113
|
+
}>;
|
|
114
|
+
modelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
115
|
+
name: z.ZodString;
|
|
116
|
+
providerKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
|
+
status: z.ZodString;
|
|
118
|
+
}, z.core.$strip>;
|
|
119
|
+
export type AnnotatorSummary = z.infer<typeof zAnnotatorSummary>;
|
|
120
|
+
/**
|
|
121
|
+
* Association Conclusion
|
|
122
|
+
*
|
|
123
|
+
* Producer-supplied conclusion for a session-to-commit association: confirmed or candidate
|
|
124
|
+
*/
|
|
125
|
+
export declare const zAssociationConclusion: z.ZodEnum<{
|
|
126
|
+
candidate: "candidate";
|
|
127
|
+
confirmed: "confirmed";
|
|
128
|
+
}>;
|
|
129
|
+
export type AssociationConclusion = z.infer<typeof zAssociationConclusion>;
|
|
130
|
+
/**
|
|
131
|
+
* Association Evidence Kind
|
|
132
|
+
*
|
|
133
|
+
* Atomic observation supporting a session-to-commit association
|
|
134
|
+
*/
|
|
135
|
+
export declare const zAssociationEvidenceKind: z.ZodEnum<{
|
|
136
|
+
recorded_commit: "recorded_commit";
|
|
137
|
+
touched_file: "touched_file";
|
|
138
|
+
branch_membership: "branch_membership";
|
|
139
|
+
time_window: "time_window";
|
|
140
|
+
}>;
|
|
141
|
+
export type AssociationEvidenceKind = z.infer<typeof zAssociationEvidenceKind>;
|
|
142
|
+
export declare const zAssociationEvidenceObservation: z.ZodObject<{
|
|
143
|
+
branchName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
144
|
+
kind: z.ZodEnum<{
|
|
145
|
+
recorded_commit: "recorded_commit";
|
|
146
|
+
touched_file: "touched_file";
|
|
147
|
+
branch_membership: "branch_membership";
|
|
148
|
+
time_window: "time_window";
|
|
149
|
+
}>;
|
|
150
|
+
recordedCommitHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
151
|
+
touchedFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
152
|
+
windowEndMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
153
|
+
windowStartMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
154
|
+
}, z.core.$strip>;
|
|
155
|
+
export type AssociationEvidenceObservation = z.infer<typeof zAssociationEvidenceObservation>;
|
|
156
|
+
/**
|
|
157
|
+
* Association ID
|
|
158
|
+
*
|
|
159
|
+
* Opaque durable Peasant identifier for one session-to-commit association
|
|
160
|
+
*/
|
|
161
|
+
export declare const zAssociationID: z.ZodString;
|
|
162
|
+
export type AssociationID = z.infer<typeof zAssociationID>;
|
|
163
|
+
export declare const zBatchCreateAnnotationsErrorResponse: z.ZodObject<{
|
|
164
|
+
error: z.ZodString;
|
|
165
|
+
failingIndex: z.ZodInt;
|
|
166
|
+
}, z.core.$strip>;
|
|
167
|
+
export type BatchCreateAnnotationsErrorResponse = z.infer<typeof zBatchCreateAnnotationsErrorResponse>;
|
|
168
|
+
export declare const zBatchCreateAnnotationsResponse: z.ZodObject<{
|
|
169
|
+
ids: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
export type BatchCreateAnnotationsResponse = z.infer<typeof zBatchCreateAnnotationsResponse>;
|
|
172
|
+
/**
|
|
173
|
+
* Built-in Command
|
|
174
|
+
*
|
|
175
|
+
* Claude Code built-in slash command name without the leading slash
|
|
176
|
+
*/
|
|
177
|
+
export declare const zBuiltinCommand: z.ZodEnum<{
|
|
178
|
+
new: "new";
|
|
179
|
+
clear: "clear";
|
|
180
|
+
resume: "resume";
|
|
181
|
+
exit: "exit";
|
|
182
|
+
compact: "compact";
|
|
183
|
+
config: "config";
|
|
184
|
+
model: "model";
|
|
185
|
+
usage: "usage";
|
|
186
|
+
cost: "cost";
|
|
187
|
+
context: "context";
|
|
188
|
+
plugin: "plugin";
|
|
189
|
+
permissions: "permissions";
|
|
190
|
+
login: "login";
|
|
191
|
+
plan: "plan";
|
|
192
|
+
fast: "fast";
|
|
193
|
+
voice: "voice";
|
|
194
|
+
todos: "todos";
|
|
195
|
+
"reload-plugins": "reload-plugins";
|
|
196
|
+
sandbox: "sandbox";
|
|
197
|
+
statusline: "statusline";
|
|
198
|
+
upgrade: "upgrade";
|
|
199
|
+
"extra-usage": "extra-usage";
|
|
200
|
+
"rate-limit-options": "rate-limit-options";
|
|
201
|
+
"privacy-settings": "privacy-settings";
|
|
202
|
+
help: "help";
|
|
203
|
+
commands: "commands";
|
|
204
|
+
}>;
|
|
205
|
+
export type BuiltinCommand = z.infer<typeof zBuiltinCommand>;
|
|
206
|
+
export declare const zCLILoginQuery: z.ZodObject<{
|
|
207
|
+
port: z.ZodInt;
|
|
208
|
+
state: z.ZodString;
|
|
209
|
+
}, z.core.$strip>;
|
|
210
|
+
export type CLILoginQuery = z.infer<typeof zCLILoginQuery>;
|
|
211
|
+
/**
|
|
212
|
+
* Change Binding
|
|
213
|
+
*
|
|
214
|
+
* Strength of the evidence connecting a recorded session to a code change
|
|
215
|
+
*/
|
|
216
|
+
export declare const zChangeBinding: z.ZodEnum<{
|
|
217
|
+
candidate: "candidate";
|
|
218
|
+
bound: "bound";
|
|
219
|
+
}>;
|
|
220
|
+
export type ChangeBinding = z.infer<typeof zChangeBinding>;
|
|
221
|
+
export declare const zChangeSummary: z.ZodObject<{
|
|
222
|
+
aheadCount: z.ZodInt;
|
|
223
|
+
baseHash: z.ZodOptional<z.ZodString>;
|
|
224
|
+
behindCount: z.ZodInt;
|
|
225
|
+
branch: z.ZodString;
|
|
226
|
+
filesChanged: z.ZodInt;
|
|
227
|
+
lastWorkMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
228
|
+
mergeCommitHash: z.ZodOptional<z.ZodString>;
|
|
229
|
+
merged: z.ZodBoolean;
|
|
230
|
+
mergedAtMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
231
|
+
newEdges: z.ZodInt;
|
|
232
|
+
removedEdges: z.ZodInt;
|
|
233
|
+
reverted: z.ZodOptional<z.ZodBoolean>;
|
|
234
|
+
sessionCount: z.ZodInt;
|
|
235
|
+
taskCount: z.ZodInt;
|
|
236
|
+
tipCommitMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
237
|
+
violations: z.ZodInt;
|
|
238
|
+
}, z.core.$strip>;
|
|
239
|
+
export type ChangeSummary = z.infer<typeof zChangeSummary>;
|
|
240
|
+
/**
|
|
241
|
+
* Channel Topic
|
|
242
|
+
*
|
|
243
|
+
* Subscribable WebSocket data stream
|
|
244
|
+
*/
|
|
245
|
+
export declare const zChannelTopic: z.ZodEnum<{
|
|
246
|
+
quality: "quality";
|
|
247
|
+
dashboard: "dashboard";
|
|
248
|
+
sessions: "sessions";
|
|
249
|
+
session_detail: "session_detail";
|
|
250
|
+
trends: "trends";
|
|
251
|
+
annotations: "annotations";
|
|
252
|
+
project_familiarity: "project_familiarity";
|
|
253
|
+
}>;
|
|
254
|
+
export type ChannelTopic = z.infer<typeof zChannelTopic>;
|
|
255
|
+
export declare const zChannelSubscription: z.ZodObject<{
|
|
256
|
+
axis: z.ZodOptional<z.ZodEnum<{
|
|
257
|
+
type: "type";
|
|
258
|
+
session: "session";
|
|
259
|
+
project: "project";
|
|
260
|
+
}>>;
|
|
261
|
+
id: z.ZodOptional<z.ZodString>;
|
|
262
|
+
topic: z.ZodEnum<{
|
|
263
|
+
quality: "quality";
|
|
264
|
+
dashboard: "dashboard";
|
|
265
|
+
sessions: "sessions";
|
|
266
|
+
session_detail: "session_detail";
|
|
267
|
+
trends: "trends";
|
|
268
|
+
annotations: "annotations";
|
|
269
|
+
project_familiarity: "project_familiarity";
|
|
270
|
+
}>;
|
|
271
|
+
}, z.core.$strip>;
|
|
272
|
+
export type ChannelSubscription = z.infer<typeof zChannelSubscription>;
|
|
273
|
+
export declare const zChildSessionRef: z.ZodObject<{
|
|
274
|
+
id: z.ZodString;
|
|
275
|
+
project: z.ZodOptional<z.ZodString>;
|
|
276
|
+
startTime: z.ZodISODateTime;
|
|
277
|
+
}, z.core.$strip>;
|
|
278
|
+
export type ChildSessionRef = z.infer<typeof zChildSessionRef>;
|
|
279
|
+
export declare const zCommitInfo: z.ZodObject<{
|
|
280
|
+
authorEmail: z.ZodString;
|
|
281
|
+
authorName: z.ZodString;
|
|
282
|
+
authorTime: z.ZodCoercedBigInt<unknown>;
|
|
283
|
+
commitTime: z.ZodCoercedBigInt<unknown>;
|
|
284
|
+
hash: z.ZodString;
|
|
285
|
+
message: z.ZodString;
|
|
286
|
+
}, z.core.$strip>;
|
|
287
|
+
export type CommitInfo = z.infer<typeof zCommitInfo>;
|
|
288
|
+
/**
|
|
289
|
+
* Confidence
|
|
290
|
+
*
|
|
291
|
+
* Strength of evidence behind a derived relationship: high, medium, or low
|
|
292
|
+
*/
|
|
293
|
+
export declare const zConfidence: z.ZodEnum<{
|
|
294
|
+
high: "high";
|
|
295
|
+
low: "low";
|
|
296
|
+
medium: "medium";
|
|
297
|
+
}>;
|
|
298
|
+
export type Confidence = z.infer<typeof zConfidence>;
|
|
299
|
+
/**
|
|
300
|
+
* Content Kind
|
|
301
|
+
*
|
|
302
|
+
* Payload kind carried by a transcript content envelope
|
|
303
|
+
*/
|
|
304
|
+
export declare const zContentKind: z.ZodEnum<{
|
|
305
|
+
session_detail: "session_detail";
|
|
306
|
+
}>;
|
|
307
|
+
export type ContentKind = z.infer<typeof zContentKind>;
|
|
308
|
+
export declare const zContractVersion: z.ZodNullable<z.ZodString>;
|
|
309
|
+
export type ContractVersion = z.infer<typeof zContractVersion>;
|
|
310
|
+
export declare const zCreateAnnotationRequest: z.ZodObject<{
|
|
311
|
+
annotatorName: z.ZodOptional<z.ZodString>;
|
|
312
|
+
confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
313
|
+
isPrimary: z.ZodBoolean;
|
|
314
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
315
|
+
sessionId: z.ZodString;
|
|
316
|
+
targetAnnotationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
317
|
+
targetEntryEndIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
318
|
+
targetEntryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
319
|
+
typeId: z.ZodString;
|
|
320
|
+
value: z.ZodString;
|
|
321
|
+
}, z.core.$strip>;
|
|
322
|
+
export type CreateAnnotationRequest = z.infer<typeof zCreateAnnotationRequest>;
|
|
323
|
+
export declare const zBatchCreateAnnotationsRequest: z.ZodObject<{
|
|
324
|
+
annotations: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
325
|
+
annotatorName: z.ZodOptional<z.ZodString>;
|
|
326
|
+
confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
327
|
+
isPrimary: z.ZodBoolean;
|
|
328
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
329
|
+
sessionId: z.ZodString;
|
|
330
|
+
targetAnnotationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
331
|
+
targetEntryEndIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
332
|
+
targetEntryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
333
|
+
typeId: z.ZodString;
|
|
334
|
+
value: z.ZodString;
|
|
335
|
+
}, z.core.$strip>>>;
|
|
336
|
+
}, z.core.$strip>;
|
|
337
|
+
export type BatchCreateAnnotationsRequest = z.infer<typeof zBatchCreateAnnotationsRequest>;
|
|
338
|
+
export declare const zCreateAnnotationResponse: z.ZodObject<{
|
|
339
|
+
id: z.ZodString;
|
|
340
|
+
}, z.core.$strip>;
|
|
341
|
+
export type CreateAnnotationResponse = z.infer<typeof zCreateAnnotationResponse>;
|
|
342
|
+
export declare const zDashboardPayload: z.ZodObject<{
|
|
343
|
+
acceptanceRate: z.ZodNumber;
|
|
344
|
+
avgDurationMins: z.ZodNumber;
|
|
345
|
+
avgTurnsPerSession: z.ZodNumber;
|
|
346
|
+
harnessBreakdown: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodInt>>;
|
|
347
|
+
totalSessions: z.ZodInt;
|
|
348
|
+
totalTokens: z.ZodInt;
|
|
349
|
+
}, z.core.$strip>;
|
|
350
|
+
export type DashboardPayload = z.infer<typeof zDashboardPayload>;
|
|
351
|
+
export declare const zDayStats: z.ZodObject<{
|
|
352
|
+
date: z.ZodString;
|
|
353
|
+
sessions: z.ZodInt;
|
|
354
|
+
tokens: z.ZodInt;
|
|
355
|
+
}, z.core.$strip>;
|
|
356
|
+
export type DayStats = z.infer<typeof zDayStats>;
|
|
357
|
+
/**
|
|
358
|
+
* Decay Level
|
|
359
|
+
*
|
|
360
|
+
* Recency band for project file familiarity
|
|
361
|
+
*/
|
|
362
|
+
export declare const zDecayLevel: z.ZodEnum<{
|
|
363
|
+
fresh: "fresh";
|
|
364
|
+
fading: "fading";
|
|
365
|
+
stale: "stale";
|
|
366
|
+
unexplored: "unexplored";
|
|
367
|
+
}>;
|
|
368
|
+
export type DecayLevel = z.infer<typeof zDecayLevel>;
|
|
369
|
+
export declare const zDiagnosticEntry: z.ZodObject<{
|
|
370
|
+
errorType: z.ZodString;
|
|
371
|
+
location: z.ZodString;
|
|
372
|
+
message: z.ZodString;
|
|
373
|
+
remediation: z.ZodString;
|
|
374
|
+
}, z.core.$strip>;
|
|
375
|
+
export type DiagnosticEntry = z.infer<typeof zDiagnosticEntry>;
|
|
376
|
+
export declare const zDiagnosticsInfo: z.ZodObject<{
|
|
377
|
+
partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
378
|
+
warnings: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
379
|
+
errorType: z.ZodString;
|
|
380
|
+
location: z.ZodString;
|
|
381
|
+
message: z.ZodString;
|
|
382
|
+
remediation: z.ZodString;
|
|
383
|
+
}, z.core.$strip>>>;
|
|
384
|
+
}, z.core.$strip>;
|
|
385
|
+
export type DiagnosticsInfo = z.infer<typeof zDiagnosticsInfo>;
|
|
386
|
+
/**
|
|
387
|
+
* Diff Line Kind
|
|
388
|
+
*
|
|
389
|
+
* Unified-diff line kind: context, addition, or deletion
|
|
390
|
+
*/
|
|
391
|
+
export declare const zDiffLineKind: z.ZodEnum<{
|
|
392
|
+
add: "add";
|
|
393
|
+
del: "del";
|
|
394
|
+
context: "context";
|
|
395
|
+
}>;
|
|
396
|
+
export type DiffLineKind = z.infer<typeof zDiffLineKind>;
|
|
397
|
+
export declare const zDiffLine: z.ZodObject<{
|
|
398
|
+
kind: z.ZodEnum<{
|
|
399
|
+
add: "add";
|
|
400
|
+
del: "del";
|
|
401
|
+
context: "context";
|
|
402
|
+
}>;
|
|
403
|
+
text: z.ZodString;
|
|
404
|
+
}, z.core.$strip>;
|
|
405
|
+
export type DiffLine = z.infer<typeof zDiffLine>;
|
|
406
|
+
export declare const zDiffHunk: z.ZodObject<{
|
|
407
|
+
header: z.ZodOptional<z.ZodString>;
|
|
408
|
+
lines: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
409
|
+
kind: z.ZodEnum<{
|
|
410
|
+
add: "add";
|
|
411
|
+
del: "del";
|
|
412
|
+
context: "context";
|
|
413
|
+
}>;
|
|
414
|
+
text: z.ZodString;
|
|
415
|
+
}, z.core.$strip>>>;
|
|
416
|
+
newLines: z.ZodInt;
|
|
417
|
+
newStart: z.ZodInt;
|
|
418
|
+
oldLines: z.ZodInt;
|
|
419
|
+
oldStart: z.ZodInt;
|
|
420
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
421
|
+
sessionTitle: z.ZodOptional<z.ZodString>;
|
|
422
|
+
}, z.core.$strip>;
|
|
423
|
+
export type DiffHunk = z.infer<typeof zDiffHunk>;
|
|
424
|
+
/**
|
|
425
|
+
* Edge Violation Kind
|
|
426
|
+
*
|
|
427
|
+
* Structural violation detected on a map edge
|
|
428
|
+
*/
|
|
429
|
+
export declare const zEdgeViolationKind: z.ZodEnum<{
|
|
430
|
+
cycle: "cycle";
|
|
431
|
+
wrong_way: "wrong_way";
|
|
432
|
+
}>;
|
|
433
|
+
export type EdgeViolationKind = z.infer<typeof zEdgeViolationKind>;
|
|
434
|
+
export declare const zEdgeViolation: z.ZodObject<{
|
|
435
|
+
from: z.ZodString;
|
|
436
|
+
kind: z.ZodEnum<{
|
|
437
|
+
cycle: "cycle";
|
|
438
|
+
wrong_way: "wrong_way";
|
|
439
|
+
}>;
|
|
440
|
+
to: z.ZodString;
|
|
441
|
+
}, z.core.$strip>;
|
|
442
|
+
export type EdgeViolation = z.infer<typeof zEdgeViolation>;
|
|
443
|
+
/**
|
|
444
|
+
* Entry Type
|
|
445
|
+
*
|
|
446
|
+
* Classification of a single entry within an agent session transcript
|
|
447
|
+
*/
|
|
448
|
+
export declare const zEntryType: z.ZodEnum<{
|
|
449
|
+
error: "error";
|
|
450
|
+
text: "text";
|
|
451
|
+
tool_use: "tool_use";
|
|
452
|
+
tool_result: "tool_result";
|
|
453
|
+
thinking: "thinking";
|
|
454
|
+
system: "system";
|
|
455
|
+
result: "result";
|
|
456
|
+
}>;
|
|
457
|
+
export type EntryType = z.infer<typeof zEntryType>;
|
|
458
|
+
export declare const zExchangeCodeRequest: z.ZodObject<{
|
|
459
|
+
code: z.ZodString;
|
|
460
|
+
state: z.ZodString;
|
|
461
|
+
}, z.core.$strip>;
|
|
462
|
+
export type ExchangeCodeRequest = z.infer<typeof zExchangeCodeRequest>;
|
|
463
|
+
export declare const zExchangeCodeResponse: z.ZodObject<{
|
|
464
|
+
api_key: z.ZodString;
|
|
465
|
+
key_id: z.ZodString;
|
|
466
|
+
user_id: z.ZodString;
|
|
467
|
+
username: z.ZodString;
|
|
468
|
+
}, z.core.$strip>;
|
|
469
|
+
export type ExchangeCodeResponse = z.infer<typeof zExchangeCodeResponse>;
|
|
470
|
+
/**
|
|
471
|
+
* File Change Status
|
|
472
|
+
*
|
|
473
|
+
* Git file delta status: modified, added, deleted, or renamed
|
|
474
|
+
*/
|
|
475
|
+
export declare const zFileChangeStatus: z.ZodEnum<{
|
|
476
|
+
M: "M";
|
|
477
|
+
A: "A";
|
|
478
|
+
D: "D";
|
|
479
|
+
R: "R";
|
|
480
|
+
}>;
|
|
481
|
+
export type FileChangeStatus = z.infer<typeof zFileChangeStatus>;
|
|
482
|
+
export declare const zChangeDiffPayload: z.ZodObject<{
|
|
483
|
+
binary: z.ZodBoolean;
|
|
484
|
+
branch: z.ZodString;
|
|
485
|
+
file: z.ZodString;
|
|
486
|
+
hunks: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
487
|
+
header: z.ZodOptional<z.ZodString>;
|
|
488
|
+
lines: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
489
|
+
kind: z.ZodEnum<{
|
|
490
|
+
add: "add";
|
|
491
|
+
del: "del";
|
|
492
|
+
context: "context";
|
|
493
|
+
}>;
|
|
494
|
+
text: z.ZodString;
|
|
495
|
+
}, z.core.$strip>>>;
|
|
496
|
+
newLines: z.ZodInt;
|
|
497
|
+
newStart: z.ZodInt;
|
|
498
|
+
oldLines: z.ZodInt;
|
|
499
|
+
oldStart: z.ZodInt;
|
|
500
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
501
|
+
sessionTitle: z.ZodOptional<z.ZodString>;
|
|
502
|
+
}, z.core.$strip>>>;
|
|
503
|
+
oldPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
504
|
+
status: z.ZodEnum<{
|
|
505
|
+
M: "M";
|
|
506
|
+
A: "A";
|
|
507
|
+
D: "D";
|
|
508
|
+
R: "R";
|
|
509
|
+
}>;
|
|
510
|
+
truncated: z.ZodBoolean;
|
|
511
|
+
}, z.core.$strip>;
|
|
512
|
+
export type ChangeDiffPayload = z.infer<typeof zChangeDiffPayload>;
|
|
513
|
+
export declare const zFileChange: z.ZodObject<{
|
|
514
|
+
linesAdded: z.ZodInt;
|
|
515
|
+
linesRemoved: z.ZodInt;
|
|
516
|
+
oldPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
517
|
+
path: z.ZodString;
|
|
518
|
+
status: z.ZodEnum<{
|
|
519
|
+
M: "M";
|
|
520
|
+
A: "A";
|
|
521
|
+
D: "D";
|
|
522
|
+
R: "R";
|
|
523
|
+
}>;
|
|
524
|
+
}, z.core.$strip>;
|
|
525
|
+
export type FileChange = z.infer<typeof zFileChange>;
|
|
526
|
+
export declare const zFileFamiliarity: z.ZodObject<{
|
|
527
|
+
daysSince: z.ZodNullable<z.ZodInt>;
|
|
528
|
+
decayLevel: z.ZodEnum<{
|
|
529
|
+
fresh: "fresh";
|
|
530
|
+
fading: "fading";
|
|
531
|
+
stale: "stale";
|
|
532
|
+
unexplored: "unexplored";
|
|
533
|
+
}>;
|
|
534
|
+
depth: z.ZodInt;
|
|
535
|
+
humanTurns: z.ZodInt;
|
|
536
|
+
isSourceFile: z.ZodBoolean;
|
|
537
|
+
lastEngagedAt: z.ZodNullable<z.ZodString>;
|
|
538
|
+
path: z.ZodString;
|
|
539
|
+
sessionCount: z.ZodInt;
|
|
540
|
+
totalTurns: z.ZodInt;
|
|
541
|
+
}, z.core.$strip>;
|
|
542
|
+
export type FileFamiliarity = z.infer<typeof zFileFamiliarity>;
|
|
543
|
+
export declare const zFrictionCluster: z.ZodObject<{
|
|
544
|
+
count: z.ZodInt;
|
|
545
|
+
file: z.ZodString;
|
|
546
|
+
kind: z.ZodString;
|
|
547
|
+
label: z.ZodString;
|
|
548
|
+
sessions: z.ZodInt;
|
|
549
|
+
}, z.core.$strip>;
|
|
550
|
+
export type FrictionCluster = z.infer<typeof zFrictionCluster>;
|
|
551
|
+
/**
|
|
552
|
+
* Harness
|
|
553
|
+
*
|
|
554
|
+
* AI coding tool or development environment
|
|
555
|
+
*/
|
|
556
|
+
export declare const zHarness: z.ZodEnum<{
|
|
557
|
+
strike: "strike";
|
|
558
|
+
cursor: "cursor";
|
|
559
|
+
"claude-code": "claude-code";
|
|
560
|
+
"gemini-cli": "gemini-cli";
|
|
561
|
+
codex: "codex";
|
|
562
|
+
opencode: "opencode";
|
|
563
|
+
antigravity: "antigravity";
|
|
564
|
+
}>;
|
|
565
|
+
export type Harness = z.infer<typeof zHarness>;
|
|
566
|
+
export declare const zHealthResponse: z.ZodObject<{
|
|
567
|
+
status: z.ZodString;
|
|
568
|
+
}, z.core.$strip>;
|
|
569
|
+
export type HealthResponse = z.infer<typeof zHealthResponse>;
|
|
570
|
+
/**
|
|
571
|
+
* Host Slug
|
|
572
|
+
*
|
|
573
|
+
* Sanitized, filesystem-safe identifier derived from git remote; contains only [a-zA-Z0-9._<>-]
|
|
574
|
+
*/
|
|
575
|
+
export declare const zHostSlug: z.ZodString;
|
|
576
|
+
export type HostSlug = z.infer<typeof zHostSlug>;
|
|
577
|
+
export declare const zInsightClassification: z.ZodObject<{
|
|
578
|
+
category: z.ZodString;
|
|
579
|
+
cause: z.ZodString;
|
|
580
|
+
resolution: z.ZodString;
|
|
581
|
+
severityLocus: z.ZodString;
|
|
582
|
+
severityScope: z.ZodString;
|
|
583
|
+
}, z.core.$strip>;
|
|
584
|
+
export type InsightClassification = z.infer<typeof zInsightClassification>;
|
|
585
|
+
/**
|
|
586
|
+
* Insight Kind
|
|
587
|
+
*
|
|
588
|
+
* What a SessionInsight observed: a decision, friction, an unusual rate elevation, or a retry loop
|
|
589
|
+
*/
|
|
590
|
+
export declare const zInsightKind: z.ZodEnum<{
|
|
591
|
+
decision: "decision";
|
|
592
|
+
friction: "friction";
|
|
593
|
+
unusual: "unusual";
|
|
594
|
+
retry_loop: "retry_loop";
|
|
595
|
+
}>;
|
|
596
|
+
export type InsightKind = z.infer<typeof zInsightKind>;
|
|
597
|
+
/**
|
|
598
|
+
* Insight Provenance
|
|
599
|
+
*
|
|
600
|
+
* How a SessionInsight was produced: mechanical (rule-derived) or mined
|
|
601
|
+
*/
|
|
602
|
+
export declare const zInsightProvenance: z.ZodEnum<{
|
|
603
|
+
mechanical: "mechanical";
|
|
604
|
+
mined: "mined";
|
|
605
|
+
}>;
|
|
606
|
+
export type InsightProvenance = z.infer<typeof zInsightProvenance>;
|
|
607
|
+
/**
|
|
608
|
+
* Interaction Type
|
|
609
|
+
*
|
|
610
|
+
* How deeply a session engaged with a project file
|
|
611
|
+
*/
|
|
612
|
+
export declare const zInteractionType: z.ZodEnum<{
|
|
613
|
+
mentioned: "mentioned";
|
|
614
|
+
read: "read";
|
|
615
|
+
discussed: "discussed";
|
|
616
|
+
questioned: "questioned";
|
|
617
|
+
}>;
|
|
618
|
+
export type InteractionType = z.infer<typeof zInteractionType>;
|
|
619
|
+
/**
|
|
620
|
+
* License
|
|
621
|
+
*
|
|
622
|
+
* Content license for a published transcript
|
|
623
|
+
*/
|
|
624
|
+
export declare const zLicense: z.ZodEnum<{
|
|
625
|
+
"CC0-1.0": "CC0-1.0";
|
|
626
|
+
"CC-BY-4.0": "CC-BY-4.0";
|
|
627
|
+
"CC-BY-SA-4.0": "CC-BY-SA-4.0";
|
|
628
|
+
}>;
|
|
629
|
+
export type License = z.infer<typeof zLicense>;
|
|
630
|
+
export declare const zMapEdge: z.ZodObject<{
|
|
631
|
+
count: z.ZodInt;
|
|
632
|
+
from: z.ZodString;
|
|
633
|
+
to: z.ZodString;
|
|
634
|
+
}, z.core.$strip>;
|
|
635
|
+
export type MapEdge = z.infer<typeof zMapEdge>;
|
|
636
|
+
/**
|
|
637
|
+
* Map Node Kind
|
|
638
|
+
*
|
|
639
|
+
* Path-derived map node classification
|
|
640
|
+
*/
|
|
641
|
+
export declare const zMapNodeKind: z.ZodEnum<{
|
|
642
|
+
file: "file";
|
|
643
|
+
module: "module";
|
|
644
|
+
package: "package";
|
|
645
|
+
}>;
|
|
646
|
+
export type MapNodeKind = z.infer<typeof zMapNodeKind>;
|
|
647
|
+
/**
|
|
648
|
+
* Message Type
|
|
649
|
+
*
|
|
650
|
+
* WebSocket message discriminator
|
|
651
|
+
*/
|
|
652
|
+
export declare const zMessageType: z.ZodEnum<{
|
|
653
|
+
error: "error";
|
|
654
|
+
connected: "connected";
|
|
655
|
+
quality: "quality";
|
|
656
|
+
dashboard: "dashboard";
|
|
657
|
+
sessions: "sessions";
|
|
658
|
+
session_detail: "session_detail";
|
|
659
|
+
trends: "trends";
|
|
660
|
+
annotations: "annotations";
|
|
661
|
+
project_familiarity: "project_familiarity";
|
|
662
|
+
subscribe: "subscribe";
|
|
663
|
+
unsubscribe: "unsubscribe";
|
|
664
|
+
}>;
|
|
665
|
+
export type MessageType = z.infer<typeof zMessageType>;
|
|
666
|
+
export declare const zClientMessage: z.ZodObject<{
|
|
667
|
+
channels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
668
|
+
axis: z.ZodOptional<z.ZodEnum<{
|
|
669
|
+
type: "type";
|
|
670
|
+
session: "session";
|
|
671
|
+
project: "project";
|
|
672
|
+
}>>;
|
|
673
|
+
id: z.ZodOptional<z.ZodString>;
|
|
674
|
+
topic: z.ZodEnum<{
|
|
675
|
+
quality: "quality";
|
|
676
|
+
dashboard: "dashboard";
|
|
677
|
+
sessions: "sessions";
|
|
678
|
+
session_detail: "session_detail";
|
|
679
|
+
trends: "trends";
|
|
680
|
+
annotations: "annotations";
|
|
681
|
+
project_familiarity: "project_familiarity";
|
|
682
|
+
}>;
|
|
683
|
+
}, z.core.$strip>>>;
|
|
684
|
+
type: z.ZodEnum<{
|
|
685
|
+
error: "error";
|
|
686
|
+
connected: "connected";
|
|
687
|
+
quality: "quality";
|
|
688
|
+
dashboard: "dashboard";
|
|
689
|
+
sessions: "sessions";
|
|
690
|
+
session_detail: "session_detail";
|
|
691
|
+
trends: "trends";
|
|
692
|
+
annotations: "annotations";
|
|
693
|
+
project_familiarity: "project_familiarity";
|
|
694
|
+
subscribe: "subscribe";
|
|
695
|
+
unsubscribe: "unsubscribe";
|
|
696
|
+
}>;
|
|
697
|
+
}, z.core.$strip>;
|
|
698
|
+
export type ClientMessage = z.infer<typeof zClientMessage>;
|
|
699
|
+
export declare const zMockConfigResponse: z.ZodObject<{
|
|
700
|
+
api: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
701
|
+
enabled: z.ZodBoolean;
|
|
702
|
+
tui: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
703
|
+
web: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
704
|
+
}, z.core.$strip>;
|
|
705
|
+
export type MockConfigResponse = z.infer<typeof zMockConfigResponse>;
|
|
706
|
+
/**
|
|
707
|
+
* Model ID
|
|
708
|
+
*
|
|
709
|
+
* Model identifier (e.g. 'claude-opus-4-6', 'gemini-2.0-flash')
|
|
710
|
+
*/
|
|
711
|
+
export declare const zModelID: z.ZodString;
|
|
712
|
+
export type ModelID = z.infer<typeof zModelID>;
|
|
713
|
+
export declare const zModelInfo: z.ZodObject<{
|
|
714
|
+
harness: z.ZodEnum<{
|
|
715
|
+
strike: "strike";
|
|
716
|
+
cursor: "cursor";
|
|
717
|
+
"claude-code": "claude-code";
|
|
718
|
+
"gemini-cli": "gemini-cli";
|
|
719
|
+
codex: "codex";
|
|
720
|
+
opencode: "opencode";
|
|
721
|
+
antigravity: "antigravity";
|
|
722
|
+
}>;
|
|
723
|
+
hostSlug: z.ZodOptional<z.ZodString>;
|
|
724
|
+
model: z.ZodString;
|
|
725
|
+
version: z.ZodOptional<z.ZodString>;
|
|
726
|
+
}, z.core.$strip>;
|
|
727
|
+
export type ModelInfo = z.infer<typeof zModelInfo>;
|
|
728
|
+
/**
|
|
729
|
+
* Project Hash
|
|
730
|
+
*
|
|
731
|
+
* SHA-256 hex digest of the project's origin URL or local path
|
|
732
|
+
*/
|
|
733
|
+
export declare const zProjectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
|
|
734
|
+
export type ProjectHash = z.infer<typeof zProjectHash>;
|
|
735
|
+
export declare const zProjectContext: z.ZodObject<{
|
|
736
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
737
|
+
hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
|
|
738
|
+
name: z.ZodString;
|
|
739
|
+
}, z.core.$strip>;
|
|
740
|
+
export type ProjectContext = z.infer<typeof zProjectContext>;
|
|
741
|
+
export declare const zProjectResolutionPayload: z.ZodObject<{
|
|
742
|
+
project: z.ZodString;
|
|
743
|
+
projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
|
|
744
|
+
}, z.core.$strip>;
|
|
745
|
+
export type ProjectResolutionPayload = z.infer<typeof zProjectResolutionPayload>;
|
|
746
|
+
export declare const zProjectSummary: z.ZodObject<{
|
|
747
|
+
lastWorkMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
748
|
+
openChanges: z.ZodInt;
|
|
749
|
+
project: z.ZodString;
|
|
750
|
+
projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
|
|
751
|
+
recordedFiles: z.ZodInt;
|
|
752
|
+
sessions: z.ZodInt;
|
|
753
|
+
totalFiles: z.ZodInt;
|
|
754
|
+
}, z.core.$strip>;
|
|
755
|
+
export type ProjectSummary = z.infer<typeof zProjectSummary>;
|
|
756
|
+
export declare const zProjectSummariesPayload: z.ZodObject<{
|
|
757
|
+
projects: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
758
|
+
lastWorkMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
759
|
+
openChanges: z.ZodInt;
|
|
760
|
+
project: z.ZodString;
|
|
761
|
+
projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
|
|
762
|
+
recordedFiles: z.ZodInt;
|
|
763
|
+
sessions: z.ZodInt;
|
|
764
|
+
totalFiles: z.ZodInt;
|
|
765
|
+
}, z.core.$strip>>>;
|
|
766
|
+
}, z.core.$strip>;
|
|
767
|
+
export type ProjectSummariesPayload = z.infer<typeof zProjectSummariesPayload>;
|
|
768
|
+
export declare const zProvenance: z.ZodObject<{
|
|
769
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
770
|
+
function: z.ZodOptional<z.ZodString>;
|
|
771
|
+
method: z.ZodString;
|
|
772
|
+
version: z.ZodOptional<z.ZodString>;
|
|
773
|
+
}, z.core.$strip>;
|
|
774
|
+
export type Provenance = z.infer<typeof zProvenance>;
|
|
775
|
+
export declare const zPublishResponse: z.ZodObject<{
|
|
776
|
+
blobKey: z.ZodString;
|
|
777
|
+
blobSizeBytes: z.ZodCoercedBigInt<unknown>;
|
|
778
|
+
created: z.ZodBoolean;
|
|
779
|
+
publishedAt: z.ZodCoercedBigInt<unknown>;
|
|
780
|
+
transcriptId: z.ZodString;
|
|
781
|
+
updatedAt: z.ZodCoercedBigInt<unknown>;
|
|
782
|
+
}, z.core.$strip>;
|
|
783
|
+
export type PublishResponse = z.infer<typeof zPublishResponse>;
|
|
784
|
+
export declare const zPublishedAssociation: z.ZodObject<{
|
|
785
|
+
id: z.ZodString;
|
|
786
|
+
observedCommitHash: z.ZodString;
|
|
787
|
+
}, z.core.$strip>;
|
|
788
|
+
export type PublishedAssociation = z.infer<typeof zPublishedAssociation>;
|
|
789
|
+
export declare const zGitContext: z.ZodObject<{
|
|
790
|
+
associations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
791
|
+
id: z.ZodString;
|
|
792
|
+
observedCommitHash: z.ZodString;
|
|
793
|
+
}, z.core.$strip>>>;
|
|
794
|
+
branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
795
|
+
commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
796
|
+
authorEmail: z.ZodString;
|
|
797
|
+
authorName: z.ZodString;
|
|
798
|
+
authorTime: z.ZodCoercedBigInt<unknown>;
|
|
799
|
+
commitTime: z.ZodCoercedBigInt<unknown>;
|
|
800
|
+
hash: z.ZodString;
|
|
801
|
+
message: z.ZodString;
|
|
802
|
+
}, z.core.$strip>>>;
|
|
803
|
+
remote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
804
|
+
tracking: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
805
|
+
worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
806
|
+
}, z.core.$strip>;
|
|
807
|
+
export type GitContext = z.infer<typeof zGitContext>;
|
|
808
|
+
/**
|
|
809
|
+
* Read Attribution State
|
|
810
|
+
*
|
|
811
|
+
* Whether per-file read attribution is recoverable for a node's editing sessions: complete, partial, or unavailable
|
|
812
|
+
*/
|
|
813
|
+
export declare const zReadAttributionState: z.ZodEnum<{
|
|
814
|
+
complete: "complete";
|
|
815
|
+
partial: "partial";
|
|
816
|
+
unavailable: "unavailable";
|
|
817
|
+
}>;
|
|
818
|
+
export type ReadAttributionState = z.infer<typeof zReadAttributionState>;
|
|
819
|
+
/**
|
|
820
|
+
* Read State Grade
|
|
821
|
+
*
|
|
822
|
+
* Ordinal explicit read-state act: none, viewed, reviewed, or reviewed_in_detail
|
|
823
|
+
*/
|
|
824
|
+
export declare const zReadStateGrade: z.ZodEnum<{
|
|
825
|
+
none: "none";
|
|
826
|
+
viewed: "viewed";
|
|
827
|
+
reviewed: "reviewed";
|
|
828
|
+
reviewed_in_detail: "reviewed_in_detail";
|
|
829
|
+
}>;
|
|
830
|
+
export type ReadStateGrade = z.infer<typeof zReadStateGrade>;
|
|
831
|
+
export declare const zMapNode: z.ZodObject<{
|
|
832
|
+
agentEditedCount: z.ZodInt;
|
|
833
|
+
attributedRegionCount: z.ZodInt;
|
|
834
|
+
changedRegionCount: z.ZodInt;
|
|
835
|
+
effortDensity: z.ZodNumber;
|
|
836
|
+
fileCount: z.ZodInt;
|
|
837
|
+
id: z.ZodString;
|
|
838
|
+
kind: z.ZodEnum<{
|
|
839
|
+
file: "file";
|
|
840
|
+
module: "module";
|
|
841
|
+
package: "package";
|
|
842
|
+
}>;
|
|
843
|
+
language: z.ZodOptional<z.ZodString>;
|
|
844
|
+
layer: z.ZodInt;
|
|
845
|
+
loc: z.ZodInt;
|
|
846
|
+
name: z.ZodString;
|
|
847
|
+
order: z.ZodInt;
|
|
848
|
+
parent: z.ZodOptional<z.ZodString>;
|
|
849
|
+
readAttribution: z.ZodEnum<{
|
|
850
|
+
complete: "complete";
|
|
851
|
+
partial: "partial";
|
|
852
|
+
unavailable: "unavailable";
|
|
853
|
+
}>;
|
|
854
|
+
readCount: z.ZodInt;
|
|
855
|
+
readState: z.ZodEnum<{
|
|
856
|
+
none: "none";
|
|
857
|
+
viewed: "viewed";
|
|
858
|
+
reviewed: "reviewed";
|
|
859
|
+
reviewed_in_detail: "reviewed_in_detail";
|
|
860
|
+
}>;
|
|
861
|
+
recordedFiles: z.ZodInt;
|
|
862
|
+
reviewedRegionCount: z.ZodInt;
|
|
863
|
+
totalFiles: z.ZodInt;
|
|
864
|
+
touchCount: z.ZodInt;
|
|
865
|
+
}, z.core.$strip>;
|
|
866
|
+
export type MapNode = z.infer<typeof zMapNode>;
|
|
867
|
+
export declare const zMapGraphPayload: z.ZodObject<{
|
|
868
|
+
activityEdges: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
869
|
+
from: z.ZodString;
|
|
870
|
+
taskCount: z.ZodInt;
|
|
871
|
+
to: z.ZodString;
|
|
872
|
+
}, z.core.$strip>>>;
|
|
873
|
+
atCommit: z.ZodOptional<z.ZodString>;
|
|
874
|
+
generatedAtMs: z.ZodCoercedBigInt<unknown>;
|
|
875
|
+
nodes: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
876
|
+
agentEditedCount: z.ZodInt;
|
|
877
|
+
attributedRegionCount: z.ZodInt;
|
|
878
|
+
changedRegionCount: z.ZodInt;
|
|
879
|
+
effortDensity: z.ZodNumber;
|
|
880
|
+
fileCount: z.ZodInt;
|
|
881
|
+
id: z.ZodString;
|
|
882
|
+
kind: z.ZodEnum<{
|
|
883
|
+
file: "file";
|
|
884
|
+
module: "module";
|
|
885
|
+
package: "package";
|
|
886
|
+
}>;
|
|
887
|
+
language: z.ZodOptional<z.ZodString>;
|
|
888
|
+
layer: z.ZodInt;
|
|
889
|
+
loc: z.ZodInt;
|
|
890
|
+
name: z.ZodString;
|
|
891
|
+
order: z.ZodInt;
|
|
892
|
+
parent: z.ZodOptional<z.ZodString>;
|
|
893
|
+
readAttribution: z.ZodEnum<{
|
|
894
|
+
complete: "complete";
|
|
895
|
+
partial: "partial";
|
|
896
|
+
unavailable: "unavailable";
|
|
897
|
+
}>;
|
|
898
|
+
readCount: z.ZodInt;
|
|
899
|
+
readState: z.ZodEnum<{
|
|
900
|
+
none: "none";
|
|
901
|
+
viewed: "viewed";
|
|
902
|
+
reviewed: "reviewed";
|
|
903
|
+
reviewed_in_detail: "reviewed_in_detail";
|
|
904
|
+
}>;
|
|
905
|
+
recordedFiles: z.ZodInt;
|
|
906
|
+
reviewedRegionCount: z.ZodInt;
|
|
907
|
+
totalFiles: z.ZodInt;
|
|
908
|
+
touchCount: z.ZodInt;
|
|
909
|
+
}, z.core.$strip>>>;
|
|
910
|
+
parsedLanguages: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
911
|
+
projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
|
|
912
|
+
repoFound: z.ZodBoolean;
|
|
913
|
+
repoPath: z.ZodOptional<z.ZodString>;
|
|
914
|
+
structureEdges: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
915
|
+
count: z.ZodInt;
|
|
916
|
+
from: z.ZodString;
|
|
917
|
+
to: z.ZodString;
|
|
918
|
+
}, z.core.$strip>>>;
|
|
919
|
+
violations: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
920
|
+
from: z.ZodString;
|
|
921
|
+
kind: z.ZodEnum<{
|
|
922
|
+
cycle: "cycle";
|
|
923
|
+
wrong_way: "wrong_way";
|
|
924
|
+
}>;
|
|
925
|
+
to: z.ZodString;
|
|
926
|
+
}, z.core.$strip>>>;
|
|
927
|
+
}, z.core.$strip>;
|
|
928
|
+
export type MapGraphPayload = z.infer<typeof zMapGraphPayload>;
|
|
929
|
+
export declare const zMapSlice: z.ZodObject<{
|
|
930
|
+
activityEdges: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
931
|
+
from: z.ZodString;
|
|
932
|
+
taskCount: z.ZodInt;
|
|
933
|
+
to: z.ZodString;
|
|
934
|
+
}, z.core.$strip>>>;
|
|
935
|
+
nodes: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
936
|
+
agentEditedCount: z.ZodInt;
|
|
937
|
+
attributedRegionCount: z.ZodInt;
|
|
938
|
+
changedRegionCount: z.ZodInt;
|
|
939
|
+
effortDensity: z.ZodNumber;
|
|
940
|
+
fileCount: z.ZodInt;
|
|
941
|
+
id: z.ZodString;
|
|
942
|
+
kind: z.ZodEnum<{
|
|
943
|
+
file: "file";
|
|
944
|
+
module: "module";
|
|
945
|
+
package: "package";
|
|
946
|
+
}>;
|
|
947
|
+
language: z.ZodOptional<z.ZodString>;
|
|
948
|
+
layer: z.ZodInt;
|
|
949
|
+
loc: z.ZodInt;
|
|
950
|
+
name: z.ZodString;
|
|
951
|
+
order: z.ZodInt;
|
|
952
|
+
parent: z.ZodOptional<z.ZodString>;
|
|
953
|
+
readAttribution: z.ZodEnum<{
|
|
954
|
+
complete: "complete";
|
|
955
|
+
partial: "partial";
|
|
956
|
+
unavailable: "unavailable";
|
|
957
|
+
}>;
|
|
958
|
+
readCount: z.ZodInt;
|
|
959
|
+
readState: z.ZodEnum<{
|
|
960
|
+
none: "none";
|
|
961
|
+
viewed: "viewed";
|
|
962
|
+
reviewed: "reviewed";
|
|
963
|
+
reviewed_in_detail: "reviewed_in_detail";
|
|
964
|
+
}>;
|
|
965
|
+
recordedFiles: z.ZodInt;
|
|
966
|
+
reviewedRegionCount: z.ZodInt;
|
|
967
|
+
totalFiles: z.ZodInt;
|
|
968
|
+
touchCount: z.ZodInt;
|
|
969
|
+
}, z.core.$strip>>>;
|
|
970
|
+
structureEdges: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
971
|
+
count: z.ZodInt;
|
|
972
|
+
from: z.ZodString;
|
|
973
|
+
to: z.ZodString;
|
|
974
|
+
}, z.core.$strip>>>;
|
|
975
|
+
}, z.core.$strip>;
|
|
976
|
+
export type MapSlice = z.infer<typeof zMapSlice>;
|
|
977
|
+
export declare const zRedactionInfo: z.ZodObject<{
|
|
978
|
+
applied: z.ZodBoolean;
|
|
979
|
+
content_hash_at_redact: z.ZodOptional<z.ZodString>;
|
|
980
|
+
level: z.ZodOptional<z.ZodString>;
|
|
981
|
+
redacted_at_ms: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
982
|
+
rule_set_version: z.ZodOptional<z.ZodString>;
|
|
983
|
+
}, z.core.$strip>;
|
|
984
|
+
export type RedactionInfo = z.infer<typeof zRedactionInfo>;
|
|
985
|
+
export declare const zReviewSuggestion: z.ZodObject<{
|
|
986
|
+
daysSince: z.ZodInt;
|
|
987
|
+
lastEngaged: z.ZodString;
|
|
988
|
+
path: z.ZodString;
|
|
989
|
+
suggestedPrompt: z.ZodString;
|
|
990
|
+
}, z.core.$strip>;
|
|
991
|
+
export type ReviewSuggestion = z.infer<typeof zReviewSuggestion>;
|
|
992
|
+
/**
|
|
993
|
+
* Rewrite Method
|
|
994
|
+
*
|
|
995
|
+
* Mechanism the resolver used to map a ghost commit to its successor
|
|
996
|
+
*/
|
|
997
|
+
export declare const zRewriteMethod: z.ZodEnum<{
|
|
998
|
+
none: "none";
|
|
999
|
+
hash: "hash";
|
|
1000
|
+
patch_id: "patch_id";
|
|
1001
|
+
author_identity: "author_identity";
|
|
1002
|
+
message_embedded: "message_embedded";
|
|
1003
|
+
temporal: "temporal";
|
|
1004
|
+
}>;
|
|
1005
|
+
export type RewriteMethod = z.infer<typeof zRewriteMethod>;
|
|
1006
|
+
/**
|
|
1007
|
+
* Rewrite Resolution
|
|
1008
|
+
*
|
|
1009
|
+
* Whether a ledger-observed commit hash is live, was rewritten, or could not be resolved
|
|
1010
|
+
*/
|
|
1011
|
+
export declare const zRewriteResolution: z.ZodEnum<{
|
|
1012
|
+
live: "live";
|
|
1013
|
+
rewritten: "rewritten";
|
|
1014
|
+
unresolved: "unresolved";
|
|
1015
|
+
}>;
|
|
1016
|
+
export type RewriteResolution = z.infer<typeof zRewriteResolution>;
|
|
1017
|
+
/**
|
|
1018
|
+
* Role
|
|
1019
|
+
*
|
|
1020
|
+
* Sender role of a message turn
|
|
1021
|
+
*/
|
|
1022
|
+
export declare const zRole: z.ZodEnum<{
|
|
1023
|
+
user: "user";
|
|
1024
|
+
system: "system";
|
|
1025
|
+
assistant: "assistant";
|
|
1026
|
+
tool: "tool";
|
|
1027
|
+
}>;
|
|
1028
|
+
export type Role = z.infer<typeof zRole>;
|
|
1029
|
+
/**
|
|
1030
|
+
* Scale Kind
|
|
1031
|
+
*
|
|
1032
|
+
* Stevens measurement level: nominal (categories without order), ordinal (ordered categories), continuous (numeric range)
|
|
1033
|
+
*/
|
|
1034
|
+
export declare const zScaleKind: z.ZodEnum<{
|
|
1035
|
+
ordinal: "ordinal";
|
|
1036
|
+
nominal: "nominal";
|
|
1037
|
+
continuous: "continuous";
|
|
1038
|
+
}>;
|
|
1039
|
+
export type ScaleKind = z.infer<typeof zScaleKind>;
|
|
1040
|
+
export declare const zSchemaVersionResponse: z.ZodObject<{
|
|
1041
|
+
annotationSchemaVersion: z.ZodString;
|
|
1042
|
+
minPullContractVersion: z.ZodOptional<z.ZodString>;
|
|
1043
|
+
minPushContractVersion: z.ZodString;
|
|
1044
|
+
pullContractVersion: z.ZodOptional<z.ZodString>;
|
|
1045
|
+
pushContractVersion: z.ZodString;
|
|
1046
|
+
supportedTargetKinds: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
1047
|
+
supportedTypeIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
1048
|
+
}, z.core.$strip>;
|
|
1049
|
+
export type SchemaVersionResponse = z.infer<typeof zSchemaVersionResponse>;
|
|
1050
|
+
export declare const zSearchResult: z.ZodObject<{
|
|
1051
|
+
entryIndex: z.ZodInt;
|
|
1052
|
+
project: z.ZodString;
|
|
1053
|
+
projectHash: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>;
|
|
1054
|
+
role: z.ZodString;
|
|
1055
|
+
score: z.ZodNumber;
|
|
1056
|
+
sessionId: z.ZodString;
|
|
1057
|
+
snippet: z.ZodString;
|
|
1058
|
+
}, z.core.$strip>;
|
|
1059
|
+
export type SearchResult = z.infer<typeof zSearchResult>;
|
|
1060
|
+
export declare const zSearchPayload: z.ZodObject<{
|
|
1061
|
+
query: z.ZodString;
|
|
1062
|
+
results: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1063
|
+
entryIndex: z.ZodInt;
|
|
1064
|
+
project: z.ZodString;
|
|
1065
|
+
projectHash: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>;
|
|
1066
|
+
role: z.ZodString;
|
|
1067
|
+
score: z.ZodNumber;
|
|
1068
|
+
sessionId: z.ZodString;
|
|
1069
|
+
snippet: z.ZodString;
|
|
1070
|
+
}, z.core.$strip>>>;
|
|
1071
|
+
}, z.core.$strip>;
|
|
1072
|
+
export type SearchPayload = z.infer<typeof zSearchPayload>;
|
|
1073
|
+
export declare const zServerMessage: z.ZodObject<{
|
|
1074
|
+
axis: z.ZodOptional<z.ZodEnum<{
|
|
1075
|
+
type: "type";
|
|
1076
|
+
session: "session";
|
|
1077
|
+
project: "project";
|
|
1078
|
+
}>>;
|
|
1079
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
1080
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1081
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1082
|
+
topic: z.ZodOptional<z.ZodEnum<{
|
|
1083
|
+
quality: "quality";
|
|
1084
|
+
dashboard: "dashboard";
|
|
1085
|
+
sessions: "sessions";
|
|
1086
|
+
session_detail: "session_detail";
|
|
1087
|
+
trends: "trends";
|
|
1088
|
+
annotations: "annotations";
|
|
1089
|
+
project_familiarity: "project_familiarity";
|
|
1090
|
+
}>>;
|
|
1091
|
+
type: z.ZodEnum<{
|
|
1092
|
+
error: "error";
|
|
1093
|
+
connected: "connected";
|
|
1094
|
+
quality: "quality";
|
|
1095
|
+
dashboard: "dashboard";
|
|
1096
|
+
sessions: "sessions";
|
|
1097
|
+
session_detail: "session_detail";
|
|
1098
|
+
trends: "trends";
|
|
1099
|
+
annotations: "annotations";
|
|
1100
|
+
project_familiarity: "project_familiarity";
|
|
1101
|
+
subscribe: "subscribe";
|
|
1102
|
+
unsubscribe: "unsubscribe";
|
|
1103
|
+
}>;
|
|
1104
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1105
|
+
}, z.core.$strip>;
|
|
1106
|
+
export type ServerMessage = z.infer<typeof zServerMessage>;
|
|
1107
|
+
/**
|
|
1108
|
+
* Session ID
|
|
1109
|
+
*
|
|
1110
|
+
* Unique session identifier (UUID, agent-{hex}, ses_{id}, sess_{id} (ACP), msg_{id}, or a Strike session ID)
|
|
1111
|
+
*/
|
|
1112
|
+
export declare const zSessionID: z.ZodString;
|
|
1113
|
+
export type SessionID = z.infer<typeof zSessionID>;
|
|
1114
|
+
export declare const zInsightEvidence: z.ZodObject<{
|
|
1115
|
+
commitHash: z.ZodOptional<z.ZodString>;
|
|
1116
|
+
entryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1117
|
+
file: z.ZodOptional<z.ZodString>;
|
|
1118
|
+
sessionId: z.ZodString;
|
|
1119
|
+
}, z.core.$strip>;
|
|
1120
|
+
export type InsightEvidence = z.infer<typeof zInsightEvidence>;
|
|
1121
|
+
export declare const zSessionAssociation: z.ZodObject<{
|
|
1122
|
+
conclusion: z.ZodEnum<{
|
|
1123
|
+
candidate: "candidate";
|
|
1124
|
+
confirmed: "confirmed";
|
|
1125
|
+
}>;
|
|
1126
|
+
confidence: z.ZodEnum<{
|
|
1127
|
+
high: "high";
|
|
1128
|
+
low: "low";
|
|
1129
|
+
medium: "medium";
|
|
1130
|
+
}>;
|
|
1131
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
1132
|
+
branchName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1133
|
+
kind: z.ZodEnum<{
|
|
1134
|
+
recorded_commit: "recorded_commit";
|
|
1135
|
+
touched_file: "touched_file";
|
|
1136
|
+
branch_membership: "branch_membership";
|
|
1137
|
+
time_window: "time_window";
|
|
1138
|
+
}>;
|
|
1139
|
+
recordedCommitHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1140
|
+
touchedFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1141
|
+
windowEndMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1142
|
+
windowStartMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1143
|
+
}, z.core.$strip>>;
|
|
1144
|
+
id: z.ZodString;
|
|
1145
|
+
sessionId: z.ZodString;
|
|
1146
|
+
}, z.core.$strip>;
|
|
1147
|
+
export type SessionAssociation = z.infer<typeof zSessionAssociation>;
|
|
1148
|
+
export declare const zCommitRef: z.ZodObject<{
|
|
1149
|
+
associations: z.ZodArray<z.ZodObject<{
|
|
1150
|
+
conclusion: z.ZodEnum<{
|
|
1151
|
+
candidate: "candidate";
|
|
1152
|
+
confirmed: "confirmed";
|
|
1153
|
+
}>;
|
|
1154
|
+
confidence: z.ZodEnum<{
|
|
1155
|
+
high: "high";
|
|
1156
|
+
low: "low";
|
|
1157
|
+
medium: "medium";
|
|
1158
|
+
}>;
|
|
1159
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
1160
|
+
branchName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1161
|
+
kind: z.ZodEnum<{
|
|
1162
|
+
recorded_commit: "recorded_commit";
|
|
1163
|
+
touched_file: "touched_file";
|
|
1164
|
+
branch_membership: "branch_membership";
|
|
1165
|
+
time_window: "time_window";
|
|
1166
|
+
}>;
|
|
1167
|
+
recordedCommitHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1168
|
+
touchedFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1169
|
+
windowEndMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1170
|
+
windowStartMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1171
|
+
}, z.core.$strip>>;
|
|
1172
|
+
id: z.ZodString;
|
|
1173
|
+
sessionId: z.ZodString;
|
|
1174
|
+
}, z.core.$strip>>;
|
|
1175
|
+
hasSession: z.ZodBoolean;
|
|
1176
|
+
hash: z.ZodString;
|
|
1177
|
+
sessionIds: z.ZodArray<z.ZodString>;
|
|
1178
|
+
subject: z.ZodString;
|
|
1179
|
+
timeMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1180
|
+
}, z.core.$strip>;
|
|
1181
|
+
export type CommitRef = z.infer<typeof zCommitRef>;
|
|
1182
|
+
export declare const zRewrittenCommit: z.ZodObject<{
|
|
1183
|
+
associations: z.ZodArray<z.ZodObject<{
|
|
1184
|
+
conclusion: z.ZodEnum<{
|
|
1185
|
+
candidate: "candidate";
|
|
1186
|
+
confirmed: "confirmed";
|
|
1187
|
+
}>;
|
|
1188
|
+
confidence: z.ZodEnum<{
|
|
1189
|
+
high: "high";
|
|
1190
|
+
low: "low";
|
|
1191
|
+
medium: "medium";
|
|
1192
|
+
}>;
|
|
1193
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
1194
|
+
branchName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1195
|
+
kind: z.ZodEnum<{
|
|
1196
|
+
recorded_commit: "recorded_commit";
|
|
1197
|
+
touched_file: "touched_file";
|
|
1198
|
+
branch_membership: "branch_membership";
|
|
1199
|
+
time_window: "time_window";
|
|
1200
|
+
}>;
|
|
1201
|
+
recordedCommitHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1202
|
+
touchedFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1203
|
+
windowEndMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1204
|
+
windowStartMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1205
|
+
}, z.core.$strip>>;
|
|
1206
|
+
id: z.ZodString;
|
|
1207
|
+
sessionId: z.ZodString;
|
|
1208
|
+
}, z.core.$strip>>;
|
|
1209
|
+
authorTimeMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1210
|
+
confidence: z.ZodEnum<{
|
|
1211
|
+
high: "high";
|
|
1212
|
+
low: "low";
|
|
1213
|
+
medium: "medium";
|
|
1214
|
+
}>;
|
|
1215
|
+
ghostHash: z.ZodString;
|
|
1216
|
+
method: z.ZodEnum<{
|
|
1217
|
+
none: "none";
|
|
1218
|
+
hash: "hash";
|
|
1219
|
+
patch_id: "patch_id";
|
|
1220
|
+
author_identity: "author_identity";
|
|
1221
|
+
message_embedded: "message_embedded";
|
|
1222
|
+
temporal: "temporal";
|
|
1223
|
+
}>;
|
|
1224
|
+
resolution: z.ZodEnum<{
|
|
1225
|
+
live: "live";
|
|
1226
|
+
rewritten: "rewritten";
|
|
1227
|
+
unresolved: "unresolved";
|
|
1228
|
+
}>;
|
|
1229
|
+
sessionIds: z.ZodArray<z.ZodString>;
|
|
1230
|
+
subject: z.ZodString;
|
|
1231
|
+
successorHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1232
|
+
}, z.core.$strip>;
|
|
1233
|
+
export type RewrittenCommit = z.infer<typeof zRewrittenCommit>;
|
|
1234
|
+
export declare const zSessionIdentity: z.ZodObject<{
|
|
1235
|
+
parentUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1236
|
+
schemaVersion: z.ZodInt;
|
|
1237
|
+
sessionId: z.ZodString;
|
|
1238
|
+
}, z.core.$strip>;
|
|
1239
|
+
export type SessionIdentity = z.infer<typeof zSessionIdentity>;
|
|
1240
|
+
export declare const zSessionInsight: z.ZodObject<{
|
|
1241
|
+
classification: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1242
|
+
category: z.ZodString;
|
|
1243
|
+
cause: z.ZodString;
|
|
1244
|
+
resolution: z.ZodString;
|
|
1245
|
+
severityLocus: z.ZodString;
|
|
1246
|
+
severityScope: z.ZodString;
|
|
1247
|
+
}, z.core.$strip>>>;
|
|
1248
|
+
confidence: z.ZodEnum<{
|
|
1249
|
+
high: "high";
|
|
1250
|
+
low: "low";
|
|
1251
|
+
medium: "medium";
|
|
1252
|
+
}>;
|
|
1253
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
1254
|
+
commitHash: z.ZodOptional<z.ZodString>;
|
|
1255
|
+
entryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1256
|
+
file: z.ZodOptional<z.ZodString>;
|
|
1257
|
+
sessionId: z.ZodString;
|
|
1258
|
+
}, z.core.$strip>>;
|
|
1259
|
+
kind: z.ZodEnum<{
|
|
1260
|
+
decision: "decision";
|
|
1261
|
+
friction: "friction";
|
|
1262
|
+
unusual: "unusual";
|
|
1263
|
+
retry_loop: "retry_loop";
|
|
1264
|
+
}>;
|
|
1265
|
+
provenance: z.ZodEnum<{
|
|
1266
|
+
mechanical: "mechanical";
|
|
1267
|
+
mined: "mined";
|
|
1268
|
+
}>;
|
|
1269
|
+
subjects: z.ZodArray<z.ZodString>;
|
|
1270
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1271
|
+
title: z.ZodString;
|
|
1272
|
+
}, z.core.$strip>;
|
|
1273
|
+
export type SessionInsight = z.infer<typeof zSessionInsight>;
|
|
1274
|
+
/**
|
|
1275
|
+
* Session Outcome
|
|
1276
|
+
*
|
|
1277
|
+
* Resolution status of the session
|
|
1278
|
+
*/
|
|
1279
|
+
export declare const zSessionOutcome: z.ZodEnum<{
|
|
1280
|
+
failed: "failed";
|
|
1281
|
+
partial: "partial";
|
|
1282
|
+
resolved: "resolved";
|
|
1283
|
+
}>;
|
|
1284
|
+
export type SessionOutcome = z.infer<typeof zSessionOutcome>;
|
|
1285
|
+
export declare const zQualityMetrics: z.ZodObject<{
|
|
1286
|
+
computeVersion: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1287
|
+
computedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1288
|
+
costCacheReadUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1289
|
+
costCacheWriteUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1290
|
+
costInputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1291
|
+
costModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1292
|
+
costOutputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1293
|
+
costReasoningUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1294
|
+
costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1295
|
+
discoveryTurns: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1296
|
+
durationMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1297
|
+
explorationRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1298
|
+
filesTouched: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1299
|
+
inputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1300
|
+
linesChanged: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1301
|
+
m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1302
|
+
m3UniqueToolCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1303
|
+
m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1304
|
+
m4ErrorRecoveryCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1305
|
+
m5AvgMessageTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1306
|
+
m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1307
|
+
m5PeakContextTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1308
|
+
m6LinesSurvived: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1309
|
+
m6LinesTotal: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1310
|
+
m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1311
|
+
m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1312
|
+
m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1313
|
+
m7SpecWordCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1314
|
+
outcome: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1315
|
+
failed: "failed";
|
|
1316
|
+
partial: "partial";
|
|
1317
|
+
resolved: "resolved";
|
|
1318
|
+
}>>>;
|
|
1319
|
+
outputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1320
|
+
retryLoops: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1321
|
+
retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1322
|
+
scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1323
|
+
scopeBreadth: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1324
|
+
signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1325
|
+
specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1326
|
+
subagentCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1327
|
+
titleGenerated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1328
|
+
toolCalls: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1329
|
+
totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1330
|
+
turnCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1331
|
+
withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1332
|
+
}, z.core.$strip>;
|
|
1333
|
+
export type QualityMetrics = z.infer<typeof zQualityMetrics>;
|
|
1334
|
+
export declare const zSessionScorecard: z.ZodObject<{
|
|
1335
|
+
costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1336
|
+
m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1337
|
+
m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1338
|
+
m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1339
|
+
m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1340
|
+
m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1341
|
+
m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1342
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
1343
|
+
failed: "failed";
|
|
1344
|
+
partial: "partial";
|
|
1345
|
+
resolved: "resolved";
|
|
1346
|
+
}>>;
|
|
1347
|
+
retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1348
|
+
signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1349
|
+
specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1350
|
+
totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1351
|
+
withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1352
|
+
}, z.core.$strip>;
|
|
1353
|
+
export type SessionScorecard = z.infer<typeof zSessionScorecard>;
|
|
1354
|
+
export declare const zSessionStats: z.ZodObject<{
|
|
1355
|
+
cachedReadTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1356
|
+
cachedWriteTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1357
|
+
durationMs: z.ZodCoercedBigInt<unknown>;
|
|
1358
|
+
subagentCount: z.ZodInt;
|
|
1359
|
+
thoughtTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1360
|
+
tokensIn: z.ZodInt;
|
|
1361
|
+
tokensOut: z.ZodInt;
|
|
1362
|
+
toolCallCount: z.ZodInt;
|
|
1363
|
+
turnCount: z.ZodInt;
|
|
1364
|
+
}, z.core.$strip>;
|
|
1365
|
+
export type SessionStats = z.infer<typeof zSessionStats>;
|
|
1366
|
+
export declare const zSessionSummary: z.ZodObject<{
|
|
1367
|
+
durationMins: z.ZodNumber;
|
|
1368
|
+
harness: z.ZodEnum<{
|
|
1369
|
+
strike: "strike";
|
|
1370
|
+
cursor: "cursor";
|
|
1371
|
+
"claude-code": "claude-code";
|
|
1372
|
+
"gemini-cli": "gemini-cli";
|
|
1373
|
+
codex: "codex";
|
|
1374
|
+
opencode: "opencode";
|
|
1375
|
+
antigravity: "antigravity";
|
|
1376
|
+
}>;
|
|
1377
|
+
id: z.ZodString;
|
|
1378
|
+
outcome: z.ZodOptional<z.ZodString>;
|
|
1379
|
+
parentSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1380
|
+
preview: z.ZodOptional<z.ZodString>;
|
|
1381
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1382
|
+
projectHash: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>;
|
|
1383
|
+
startTime: z.ZodISODateTime;
|
|
1384
|
+
toolCallCount: z.ZodInt;
|
|
1385
|
+
totalTokens: z.ZodInt;
|
|
1386
|
+
turnCount: z.ZodInt;
|
|
1387
|
+
}, z.core.$strip>;
|
|
1388
|
+
export type SessionSummary = z.infer<typeof zSessionSummary>;
|
|
1389
|
+
export declare const zSessionsPayload: z.ZodObject<{
|
|
1390
|
+
sessions: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1391
|
+
durationMins: z.ZodNumber;
|
|
1392
|
+
harness: z.ZodEnum<{
|
|
1393
|
+
strike: "strike";
|
|
1394
|
+
cursor: "cursor";
|
|
1395
|
+
"claude-code": "claude-code";
|
|
1396
|
+
"gemini-cli": "gemini-cli";
|
|
1397
|
+
codex: "codex";
|
|
1398
|
+
opencode: "opencode";
|
|
1399
|
+
antigravity: "antigravity";
|
|
1400
|
+
}>;
|
|
1401
|
+
id: z.ZodString;
|
|
1402
|
+
outcome: z.ZodOptional<z.ZodString>;
|
|
1403
|
+
parentSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1404
|
+
preview: z.ZodOptional<z.ZodString>;
|
|
1405
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1406
|
+
projectHash: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>;
|
|
1407
|
+
startTime: z.ZodISODateTime;
|
|
1408
|
+
toolCallCount: z.ZodInt;
|
|
1409
|
+
totalTokens: z.ZodInt;
|
|
1410
|
+
turnCount: z.ZodInt;
|
|
1411
|
+
}, z.core.$strip>>>;
|
|
1412
|
+
}, z.core.$strip>;
|
|
1413
|
+
export type SessionsPayload = z.infer<typeof zSessionsPayload>;
|
|
1414
|
+
export declare const zShutdownResponse: z.ZodObject<{
|
|
1415
|
+
status: z.ZodString;
|
|
1416
|
+
}, z.core.$strip>;
|
|
1417
|
+
export type ShutdownResponse = z.infer<typeof zShutdownResponse>;
|
|
1418
|
+
/**
|
|
1419
|
+
* Source Format
|
|
1420
|
+
*
|
|
1421
|
+
* Transcript file format
|
|
1422
|
+
*/
|
|
1423
|
+
export declare const zSourceFormat: z.ZodEnum<{
|
|
1424
|
+
json: "json";
|
|
1425
|
+
jsonl: "jsonl";
|
|
1426
|
+
}>;
|
|
1427
|
+
export type SourceFormat = z.infer<typeof zSourceFormat>;
|
|
1428
|
+
export declare const zSourceInfo: z.ZodObject<{
|
|
1429
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
1430
|
+
format: z.ZodEnum<{
|
|
1431
|
+
json: "json";
|
|
1432
|
+
jsonl: "jsonl";
|
|
1433
|
+
}>;
|
|
1434
|
+
}, z.core.$strip>;
|
|
1435
|
+
export type SourceInfo = z.infer<typeof zSourceInfo>;
|
|
1436
|
+
/**
|
|
1437
|
+
* Stop Reason
|
|
1438
|
+
*
|
|
1439
|
+
* Reason why a session or turn ended (ACP-aligned)
|
|
1440
|
+
*/
|
|
1441
|
+
export declare const zStopReason: z.ZodEnum<{
|
|
1442
|
+
end_turn: "end_turn";
|
|
1443
|
+
cancelled: "cancelled";
|
|
1444
|
+
max_tokens: "max_tokens";
|
|
1445
|
+
max_turn_requests: "max_turn_requests";
|
|
1446
|
+
refusal: "refusal";
|
|
1447
|
+
}>;
|
|
1448
|
+
export type StopReason = z.infer<typeof zStopReason>;
|
|
1449
|
+
export declare const zSubagentRef: z.ZodObject<{
|
|
1450
|
+
parentUuid: z.ZodString;
|
|
1451
|
+
sessionId: z.ZodString;
|
|
1452
|
+
}, z.core.$strip>;
|
|
1453
|
+
export type SubagentRef = z.infer<typeof zSubagentRef>;
|
|
1454
|
+
/**
|
|
1455
|
+
* Target Kind
|
|
1456
|
+
*
|
|
1457
|
+
* What is being annotated: session-level, entry-level (turn/tool call), meta-annotation, project-level, a specific file version (content-hash keyed read-state receipt), or a durable session-to-commit association
|
|
1458
|
+
*/
|
|
1459
|
+
export declare const zTargetKind: z.ZodEnum<{
|
|
1460
|
+
session: "session";
|
|
1461
|
+
annotation: "annotation";
|
|
1462
|
+
project: "project";
|
|
1463
|
+
entry: "entry";
|
|
1464
|
+
file_version: "file_version";
|
|
1465
|
+
association: "association";
|
|
1466
|
+
}>;
|
|
1467
|
+
export type TargetKind = z.infer<typeof zTargetKind>;
|
|
1468
|
+
export declare const zAnnotationPushItem: z.ZodIntersection<z.ZodUnion<readonly [z.ZodObject<{
|
|
1469
|
+
targetAssociationId: z.ZodString;
|
|
1470
|
+
targetKind: z.ZodLiteral<"association">;
|
|
1471
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1472
|
+
sessionId: z.ZodString;
|
|
1473
|
+
targetKind: z.ZodLiteral<"session">;
|
|
1474
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1475
|
+
entryTarget: z.ZodObject<{
|
|
1476
|
+
endIndex: z.ZodInt;
|
|
1477
|
+
entryIndex: z.ZodInt;
|
|
1478
|
+
sessionId: z.ZodString;
|
|
1479
|
+
}, z.core.$strip>;
|
|
1480
|
+
targetKind: z.ZodLiteral<"entry">;
|
|
1481
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1482
|
+
annotationId: z.ZodString;
|
|
1483
|
+
targetKind: z.ZodLiteral<"annotation">;
|
|
1484
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1485
|
+
projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
|
|
1486
|
+
targetKind: z.ZodLiteral<"project">;
|
|
1487
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
1488
|
+
annotationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1489
|
+
annotatorName: z.ZodOptional<z.ZodString>;
|
|
1490
|
+
confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1491
|
+
contentHash: z.ZodString;
|
|
1492
|
+
entryTarget: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1493
|
+
endIndex: z.ZodInt;
|
|
1494
|
+
entryIndex: z.ZodInt;
|
|
1495
|
+
sessionId: z.ZodString;
|
|
1496
|
+
}, z.core.$strip>>>;
|
|
1497
|
+
isPrimary: z.ZodBoolean;
|
|
1498
|
+
projectHash: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>>;
|
|
1499
|
+
provenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1500
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1501
|
+
function: z.ZodOptional<z.ZodString>;
|
|
1502
|
+
method: z.ZodString;
|
|
1503
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1504
|
+
}, z.core.$strip>>>;
|
|
1505
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1506
|
+
sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1507
|
+
targetAssociationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1508
|
+
targetKind: z.ZodEnum<{
|
|
1509
|
+
session: "session";
|
|
1510
|
+
annotation: "annotation";
|
|
1511
|
+
project: "project";
|
|
1512
|
+
entry: "entry";
|
|
1513
|
+
file_version: "file_version";
|
|
1514
|
+
association: "association";
|
|
1515
|
+
}>;
|
|
1516
|
+
typeId: z.ZodString;
|
|
1517
|
+
value: z.ZodString;
|
|
1518
|
+
}, z.core.$strip>>;
|
|
1519
|
+
export type AnnotationPushItem = z.infer<typeof zAnnotationPushItem>;
|
|
1520
|
+
export declare const zAnnotationPushRequest: z.ZodObject<{
|
|
1521
|
+
annotations: z.ZodArray<z.ZodIntersection<z.ZodUnion<readonly [z.ZodObject<{
|
|
1522
|
+
targetAssociationId: z.ZodString;
|
|
1523
|
+
targetKind: z.ZodLiteral<"association">;
|
|
1524
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1525
|
+
sessionId: z.ZodString;
|
|
1526
|
+
targetKind: z.ZodLiteral<"session">;
|
|
1527
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1528
|
+
entryTarget: z.ZodObject<{
|
|
1529
|
+
endIndex: z.ZodInt;
|
|
1530
|
+
entryIndex: z.ZodInt;
|
|
1531
|
+
sessionId: z.ZodString;
|
|
1532
|
+
}, z.core.$strip>;
|
|
1533
|
+
targetKind: z.ZodLiteral<"entry">;
|
|
1534
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1535
|
+
annotationId: z.ZodString;
|
|
1536
|
+
targetKind: z.ZodLiteral<"annotation">;
|
|
1537
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1538
|
+
projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
|
|
1539
|
+
targetKind: z.ZodLiteral<"project">;
|
|
1540
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
1541
|
+
annotationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1542
|
+
annotatorName: z.ZodOptional<z.ZodString>;
|
|
1543
|
+
confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1544
|
+
contentHash: z.ZodString;
|
|
1545
|
+
entryTarget: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1546
|
+
endIndex: z.ZodInt;
|
|
1547
|
+
entryIndex: z.ZodInt;
|
|
1548
|
+
sessionId: z.ZodString;
|
|
1549
|
+
}, z.core.$strip>>>;
|
|
1550
|
+
isPrimary: z.ZodBoolean;
|
|
1551
|
+
projectHash: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>>;
|
|
1552
|
+
provenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1553
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1554
|
+
function: z.ZodOptional<z.ZodString>;
|
|
1555
|
+
method: z.ZodString;
|
|
1556
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1557
|
+
}, z.core.$strip>>>;
|
|
1558
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1559
|
+
sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1560
|
+
targetAssociationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1561
|
+
targetKind: z.ZodEnum<{
|
|
1562
|
+
session: "session";
|
|
1563
|
+
annotation: "annotation";
|
|
1564
|
+
project: "project";
|
|
1565
|
+
entry: "entry";
|
|
1566
|
+
file_version: "file_version";
|
|
1567
|
+
association: "association";
|
|
1568
|
+
}>;
|
|
1569
|
+
typeId: z.ZodString;
|
|
1570
|
+
value: z.ZodString;
|
|
1571
|
+
}, z.core.$strip>>>;
|
|
1572
|
+
retractions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1573
|
+
}, z.core.$strip>;
|
|
1574
|
+
export type AnnotationPushRequest = z.infer<typeof zAnnotationPushRequest>;
|
|
1575
|
+
export declare const zAnnotationSummary: z.ZodObject<{
|
|
1576
|
+
annotatorKind: z.ZodEnum<{
|
|
1577
|
+
human: "human";
|
|
1578
|
+
agent: "agent";
|
|
1579
|
+
rule: "rule";
|
|
1580
|
+
}>;
|
|
1581
|
+
annotatorName: z.ZodString;
|
|
1582
|
+
confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1583
|
+
contentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1584
|
+
createdAt: z.ZodCoercedBigInt<unknown>;
|
|
1585
|
+
id: z.ZodString;
|
|
1586
|
+
isPrimary: z.ZodBoolean;
|
|
1587
|
+
provenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1588
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1589
|
+
function: z.ZodOptional<z.ZodString>;
|
|
1590
|
+
method: z.ZodString;
|
|
1591
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1592
|
+
}, z.core.$strip>>>;
|
|
1593
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1594
|
+
supersededBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1595
|
+
targetAnnotationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1596
|
+
targetAssociationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1597
|
+
targetContentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1598
|
+
targetEntryEndIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1599
|
+
targetEntryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1600
|
+
targetFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1601
|
+
targetKind: z.ZodEnum<{
|
|
1602
|
+
session: "session";
|
|
1603
|
+
annotation: "annotation";
|
|
1604
|
+
project: "project";
|
|
1605
|
+
entry: "entry";
|
|
1606
|
+
file_version: "file_version";
|
|
1607
|
+
association: "association";
|
|
1608
|
+
}>;
|
|
1609
|
+
targetProjectHash: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>>;
|
|
1610
|
+
targetSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1611
|
+
typeId: z.ZodString;
|
|
1612
|
+
typeName: z.ZodString;
|
|
1613
|
+
value: z.ZodString;
|
|
1614
|
+
}, z.core.$strip>;
|
|
1615
|
+
export type AnnotationSummary = z.infer<typeof zAnnotationSummary>;
|
|
1616
|
+
export declare const zAnnotationsPayload: z.ZodObject<{
|
|
1617
|
+
annotations: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1618
|
+
annotatorKind: z.ZodEnum<{
|
|
1619
|
+
human: "human";
|
|
1620
|
+
agent: "agent";
|
|
1621
|
+
rule: "rule";
|
|
1622
|
+
}>;
|
|
1623
|
+
annotatorName: z.ZodString;
|
|
1624
|
+
confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1625
|
+
contentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1626
|
+
createdAt: z.ZodCoercedBigInt<unknown>;
|
|
1627
|
+
id: z.ZodString;
|
|
1628
|
+
isPrimary: z.ZodBoolean;
|
|
1629
|
+
provenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1630
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1631
|
+
function: z.ZodOptional<z.ZodString>;
|
|
1632
|
+
method: z.ZodString;
|
|
1633
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1634
|
+
}, z.core.$strip>>>;
|
|
1635
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1636
|
+
supersededBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1637
|
+
targetAnnotationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1638
|
+
targetAssociationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1639
|
+
targetContentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1640
|
+
targetEntryEndIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1641
|
+
targetEntryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1642
|
+
targetFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1643
|
+
targetKind: z.ZodEnum<{
|
|
1644
|
+
session: "session";
|
|
1645
|
+
annotation: "annotation";
|
|
1646
|
+
project: "project";
|
|
1647
|
+
entry: "entry";
|
|
1648
|
+
file_version: "file_version";
|
|
1649
|
+
association: "association";
|
|
1650
|
+
}>;
|
|
1651
|
+
targetProjectHash: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>>;
|
|
1652
|
+
targetSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1653
|
+
typeId: z.ZodString;
|
|
1654
|
+
typeName: z.ZodString;
|
|
1655
|
+
value: z.ZodString;
|
|
1656
|
+
}, z.core.$strip>>>;
|
|
1657
|
+
axis: z.ZodEnum<{
|
|
1658
|
+
type: "type";
|
|
1659
|
+
session: "session";
|
|
1660
|
+
project: "project";
|
|
1661
|
+
}>;
|
|
1662
|
+
id: z.ZodString;
|
|
1663
|
+
}, z.core.$strip>;
|
|
1664
|
+
export type AnnotationsPayload = z.infer<typeof zAnnotationsPayload>;
|
|
1665
|
+
export declare const zPullAnnotation: z.ZodObject<{
|
|
1666
|
+
annotatorKind: z.ZodOptional<z.ZodEnum<{
|
|
1667
|
+
human: "human";
|
|
1668
|
+
agent: "agent";
|
|
1669
|
+
rule: "rule";
|
|
1670
|
+
}>>;
|
|
1671
|
+
annotatorName: z.ZodOptional<z.ZodString>;
|
|
1672
|
+
authorUserId: z.ZodString;
|
|
1673
|
+
authorUsername: z.ZodString;
|
|
1674
|
+
confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1675
|
+
contentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1676
|
+
createdAt: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
|
|
1677
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1678
|
+
isPrimary: z.ZodOptional<z.ZodBoolean>;
|
|
1679
|
+
provenance: z.ZodOptional<z.ZodObject<{
|
|
1680
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1681
|
+
function: z.ZodOptional<z.ZodString>;
|
|
1682
|
+
method: z.ZodString;
|
|
1683
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1684
|
+
}, z.core.$strip>>;
|
|
1685
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1686
|
+
supersededBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1687
|
+
targetAnnotationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1688
|
+
targetAssociationId: z.ZodOptional<z.ZodString>;
|
|
1689
|
+
targetContentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1690
|
+
targetEntryEndIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1691
|
+
targetEntryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1692
|
+
targetFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1693
|
+
targetKind: z.ZodOptional<z.ZodEnum<{
|
|
1694
|
+
session: "session";
|
|
1695
|
+
annotation: "annotation";
|
|
1696
|
+
project: "project";
|
|
1697
|
+
entry: "entry";
|
|
1698
|
+
file_version: "file_version";
|
|
1699
|
+
association: "association";
|
|
1700
|
+
}>>;
|
|
1701
|
+
targetProjectHash: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>;
|
|
1702
|
+
targetSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1703
|
+
typeId: z.ZodOptional<z.ZodString>;
|
|
1704
|
+
typeName: z.ZodOptional<z.ZodString>;
|
|
1705
|
+
value: z.ZodOptional<z.ZodString>;
|
|
1706
|
+
}, z.core.$strip>;
|
|
1707
|
+
export type PullAnnotation = z.infer<typeof zPullAnnotation>;
|
|
1708
|
+
export declare const zQualitySession: z.ZodObject<{
|
|
1709
|
+
date: z.ZodString;
|
|
1710
|
+
discoveryTurns: z.ZodInt;
|
|
1711
|
+
durationMinutes: z.ZodNumber;
|
|
1712
|
+
effectiveAnnotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1713
|
+
annotatorKind: z.ZodEnum<{
|
|
1714
|
+
human: "human";
|
|
1715
|
+
agent: "agent";
|
|
1716
|
+
rule: "rule";
|
|
1717
|
+
}>;
|
|
1718
|
+
annotatorName: z.ZodString;
|
|
1719
|
+
confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1720
|
+
contentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1721
|
+
createdAt: z.ZodCoercedBigInt<unknown>;
|
|
1722
|
+
id: z.ZodString;
|
|
1723
|
+
isPrimary: z.ZodBoolean;
|
|
1724
|
+
provenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1725
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1726
|
+
function: z.ZodOptional<z.ZodString>;
|
|
1727
|
+
method: z.ZodString;
|
|
1728
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1729
|
+
}, z.core.$strip>>>;
|
|
1730
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1731
|
+
supersededBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1732
|
+
targetAnnotationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1733
|
+
targetAssociationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1734
|
+
targetContentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1735
|
+
targetEntryEndIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1736
|
+
targetEntryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1737
|
+
targetFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1738
|
+
targetKind: z.ZodEnum<{
|
|
1739
|
+
session: "session";
|
|
1740
|
+
annotation: "annotation";
|
|
1741
|
+
project: "project";
|
|
1742
|
+
entry: "entry";
|
|
1743
|
+
file_version: "file_version";
|
|
1744
|
+
association: "association";
|
|
1745
|
+
}>;
|
|
1746
|
+
targetProjectHash: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>>;
|
|
1747
|
+
targetSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1748
|
+
typeId: z.ZodString;
|
|
1749
|
+
typeName: z.ZodString;
|
|
1750
|
+
value: z.ZodString;
|
|
1751
|
+
}, z.core.$strip>>>;
|
|
1752
|
+
explorationRatio: z.ZodNumber;
|
|
1753
|
+
filesTouched: z.ZodInt;
|
|
1754
|
+
id: z.ZodString;
|
|
1755
|
+
inputTokens: z.ZodInt;
|
|
1756
|
+
linesChanged: z.ZodInt;
|
|
1757
|
+
outcome: z.ZodString;
|
|
1758
|
+
outputTokens: z.ZodInt;
|
|
1759
|
+
project: z.ZodString;
|
|
1760
|
+
retryLoops: z.ZodInt;
|
|
1761
|
+
retryTokensWasted: z.ZodInt;
|
|
1762
|
+
scope: z.ZodString;
|
|
1763
|
+
scopeBreadth: z.ZodInt;
|
|
1764
|
+
signalDensity: z.ZodNumber;
|
|
1765
|
+
specQualityScore: z.ZodNumber;
|
|
1766
|
+
title: z.ZodString;
|
|
1767
|
+
toolCalls: z.ZodInt;
|
|
1768
|
+
totalTokens: z.ZodInt;
|
|
1769
|
+
turnCount: z.ZodInt;
|
|
1770
|
+
withinSessionReverts: z.ZodInt;
|
|
1771
|
+
}, z.core.$strip>;
|
|
1772
|
+
export type QualitySession = z.infer<typeof zQualitySession>;
|
|
1773
|
+
export declare const zQualityPayload: z.ZodObject<{
|
|
1774
|
+
sessions: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1775
|
+
date: z.ZodString;
|
|
1776
|
+
discoveryTurns: z.ZodInt;
|
|
1777
|
+
durationMinutes: z.ZodNumber;
|
|
1778
|
+
effectiveAnnotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1779
|
+
annotatorKind: z.ZodEnum<{
|
|
1780
|
+
human: "human";
|
|
1781
|
+
agent: "agent";
|
|
1782
|
+
rule: "rule";
|
|
1783
|
+
}>;
|
|
1784
|
+
annotatorName: z.ZodString;
|
|
1785
|
+
confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1786
|
+
contentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1787
|
+
createdAt: z.ZodCoercedBigInt<unknown>;
|
|
1788
|
+
id: z.ZodString;
|
|
1789
|
+
isPrimary: z.ZodBoolean;
|
|
1790
|
+
provenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1791
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1792
|
+
function: z.ZodOptional<z.ZodString>;
|
|
1793
|
+
method: z.ZodString;
|
|
1794
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1795
|
+
}, z.core.$strip>>>;
|
|
1796
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1797
|
+
supersededBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1798
|
+
targetAnnotationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1799
|
+
targetAssociationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1800
|
+
targetContentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1801
|
+
targetEntryEndIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1802
|
+
targetEntryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1803
|
+
targetFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1804
|
+
targetKind: z.ZodEnum<{
|
|
1805
|
+
session: "session";
|
|
1806
|
+
annotation: "annotation";
|
|
1807
|
+
project: "project";
|
|
1808
|
+
entry: "entry";
|
|
1809
|
+
file_version: "file_version";
|
|
1810
|
+
association: "association";
|
|
1811
|
+
}>;
|
|
1812
|
+
targetProjectHash: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>>;
|
|
1813
|
+
targetSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1814
|
+
typeId: z.ZodString;
|
|
1815
|
+
typeName: z.ZodString;
|
|
1816
|
+
value: z.ZodString;
|
|
1817
|
+
}, z.core.$strip>>>;
|
|
1818
|
+
explorationRatio: z.ZodNumber;
|
|
1819
|
+
filesTouched: z.ZodInt;
|
|
1820
|
+
id: z.ZodString;
|
|
1821
|
+
inputTokens: z.ZodInt;
|
|
1822
|
+
linesChanged: z.ZodInt;
|
|
1823
|
+
outcome: z.ZodString;
|
|
1824
|
+
outputTokens: z.ZodInt;
|
|
1825
|
+
project: z.ZodString;
|
|
1826
|
+
retryLoops: z.ZodInt;
|
|
1827
|
+
retryTokensWasted: z.ZodInt;
|
|
1828
|
+
scope: z.ZodString;
|
|
1829
|
+
scopeBreadth: z.ZodInt;
|
|
1830
|
+
signalDensity: z.ZodNumber;
|
|
1831
|
+
specQualityScore: z.ZodNumber;
|
|
1832
|
+
title: z.ZodString;
|
|
1833
|
+
toolCalls: z.ZodInt;
|
|
1834
|
+
totalTokens: z.ZodInt;
|
|
1835
|
+
turnCount: z.ZodInt;
|
|
1836
|
+
withinSessionReverts: z.ZodInt;
|
|
1837
|
+
}, z.core.$strip>>>;
|
|
1838
|
+
}, z.core.$strip>;
|
|
1839
|
+
export type QualityPayload = z.infer<typeof zQualityPayload>;
|
|
1840
|
+
export declare const zTaskSummary: z.ZodObject<{
|
|
1841
|
+
editedFiles: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
1842
|
+
entryIndex: z.ZodInt;
|
|
1843
|
+
labels: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
1844
|
+
outcome: z.ZodOptional<z.ZodString>;
|
|
1845
|
+
readCount: z.ZodInt;
|
|
1846
|
+
readFiles: z.ZodArray<z.ZodString>;
|
|
1847
|
+
retryLoop: z.ZodBoolean;
|
|
1848
|
+
sessionId: z.ZodString;
|
|
1849
|
+
startMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1850
|
+
title: z.ZodString;
|
|
1851
|
+
}, z.core.$strip>;
|
|
1852
|
+
export type TaskSummary = z.infer<typeof zTaskSummary>;
|
|
1853
|
+
export declare const zChangeSession: z.ZodObject<{
|
|
1854
|
+
binding: z.ZodEnum<{
|
|
1855
|
+
candidate: "candidate";
|
|
1856
|
+
bound: "bound";
|
|
1857
|
+
}>;
|
|
1858
|
+
harness: z.ZodString;
|
|
1859
|
+
sessionId: z.ZodString;
|
|
1860
|
+
startMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1861
|
+
tasks: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1862
|
+
editedFiles: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
1863
|
+
entryIndex: z.ZodInt;
|
|
1864
|
+
labels: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
1865
|
+
outcome: z.ZodOptional<z.ZodString>;
|
|
1866
|
+
readCount: z.ZodInt;
|
|
1867
|
+
readFiles: z.ZodArray<z.ZodString>;
|
|
1868
|
+
retryLoop: z.ZodBoolean;
|
|
1869
|
+
sessionId: z.ZodString;
|
|
1870
|
+
startMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1871
|
+
title: z.ZodString;
|
|
1872
|
+
}, z.core.$strip>>>;
|
|
1873
|
+
title: z.ZodString;
|
|
1874
|
+
}, z.core.$strip>;
|
|
1875
|
+
export type ChangeSession = z.infer<typeof zChangeSession>;
|
|
1876
|
+
export declare const zMapNodeDetailPayload: z.ZodObject<{
|
|
1877
|
+
costUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1878
|
+
dependsOn: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
1879
|
+
insights: z.ZodArray<z.ZodObject<{
|
|
1880
|
+
classification: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1881
|
+
category: z.ZodString;
|
|
1882
|
+
cause: z.ZodString;
|
|
1883
|
+
resolution: z.ZodString;
|
|
1884
|
+
severityLocus: z.ZodString;
|
|
1885
|
+
severityScope: z.ZodString;
|
|
1886
|
+
}, z.core.$strip>>>;
|
|
1887
|
+
confidence: z.ZodEnum<{
|
|
1888
|
+
high: "high";
|
|
1889
|
+
low: "low";
|
|
1890
|
+
medium: "medium";
|
|
1891
|
+
}>;
|
|
1892
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
1893
|
+
commitHash: z.ZodOptional<z.ZodString>;
|
|
1894
|
+
entryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1895
|
+
file: z.ZodOptional<z.ZodString>;
|
|
1896
|
+
sessionId: z.ZodString;
|
|
1897
|
+
}, z.core.$strip>>;
|
|
1898
|
+
kind: z.ZodEnum<{
|
|
1899
|
+
decision: "decision";
|
|
1900
|
+
friction: "friction";
|
|
1901
|
+
unusual: "unusual";
|
|
1902
|
+
retry_loop: "retry_loop";
|
|
1903
|
+
}>;
|
|
1904
|
+
provenance: z.ZodEnum<{
|
|
1905
|
+
mechanical: "mechanical";
|
|
1906
|
+
mined: "mined";
|
|
1907
|
+
}>;
|
|
1908
|
+
subjects: z.ZodArray<z.ZodString>;
|
|
1909
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1910
|
+
title: z.ZodString;
|
|
1911
|
+
}, z.core.$strip>>;
|
|
1912
|
+
kind: z.ZodEnum<{
|
|
1913
|
+
file: "file";
|
|
1914
|
+
module: "module";
|
|
1915
|
+
package: "package";
|
|
1916
|
+
}>;
|
|
1917
|
+
language: z.ZodOptional<z.ZodString>;
|
|
1918
|
+
lastTouchMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1919
|
+
loc: z.ZodInt;
|
|
1920
|
+
path: z.ZodString;
|
|
1921
|
+
reEdits: z.ZodInt;
|
|
1922
|
+
recentCommits: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1923
|
+
associations: z.ZodArray<z.ZodObject<{
|
|
1924
|
+
conclusion: z.ZodEnum<{
|
|
1925
|
+
candidate: "candidate";
|
|
1926
|
+
confirmed: "confirmed";
|
|
1927
|
+
}>;
|
|
1928
|
+
confidence: z.ZodEnum<{
|
|
1929
|
+
high: "high";
|
|
1930
|
+
low: "low";
|
|
1931
|
+
medium: "medium";
|
|
1932
|
+
}>;
|
|
1933
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
1934
|
+
branchName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1935
|
+
kind: z.ZodEnum<{
|
|
1936
|
+
recorded_commit: "recorded_commit";
|
|
1937
|
+
touched_file: "touched_file";
|
|
1938
|
+
branch_membership: "branch_membership";
|
|
1939
|
+
time_window: "time_window";
|
|
1940
|
+
}>;
|
|
1941
|
+
recordedCommitHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1942
|
+
touchedFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1943
|
+
windowEndMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1944
|
+
windowStartMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1945
|
+
}, z.core.$strip>>;
|
|
1946
|
+
id: z.ZodString;
|
|
1947
|
+
sessionId: z.ZodString;
|
|
1948
|
+
}, z.core.$strip>>;
|
|
1949
|
+
hasSession: z.ZodBoolean;
|
|
1950
|
+
hash: z.ZodString;
|
|
1951
|
+
sessionIds: z.ZodArray<z.ZodString>;
|
|
1952
|
+
subject: z.ZodString;
|
|
1953
|
+
timeMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1954
|
+
}, z.core.$strip>>>;
|
|
1955
|
+
recordedFiles: z.ZodInt;
|
|
1956
|
+
retryLoops: z.ZodInt;
|
|
1957
|
+
rewrittenCommits: z.ZodArray<z.ZodObject<{
|
|
1958
|
+
associations: z.ZodArray<z.ZodObject<{
|
|
1959
|
+
conclusion: z.ZodEnum<{
|
|
1960
|
+
candidate: "candidate";
|
|
1961
|
+
confirmed: "confirmed";
|
|
1962
|
+
}>;
|
|
1963
|
+
confidence: z.ZodEnum<{
|
|
1964
|
+
high: "high";
|
|
1965
|
+
low: "low";
|
|
1966
|
+
medium: "medium";
|
|
1967
|
+
}>;
|
|
1968
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
1969
|
+
branchName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1970
|
+
kind: z.ZodEnum<{
|
|
1971
|
+
recorded_commit: "recorded_commit";
|
|
1972
|
+
touched_file: "touched_file";
|
|
1973
|
+
branch_membership: "branch_membership";
|
|
1974
|
+
time_window: "time_window";
|
|
1975
|
+
}>;
|
|
1976
|
+
recordedCommitHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1977
|
+
touchedFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1978
|
+
windowEndMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1979
|
+
windowStartMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1980
|
+
}, z.core.$strip>>;
|
|
1981
|
+
id: z.ZodString;
|
|
1982
|
+
sessionId: z.ZodString;
|
|
1983
|
+
}, z.core.$strip>>;
|
|
1984
|
+
authorTimeMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1985
|
+
confidence: z.ZodEnum<{
|
|
1986
|
+
high: "high";
|
|
1987
|
+
low: "low";
|
|
1988
|
+
medium: "medium";
|
|
1989
|
+
}>;
|
|
1990
|
+
ghostHash: z.ZodString;
|
|
1991
|
+
method: z.ZodEnum<{
|
|
1992
|
+
none: "none";
|
|
1993
|
+
hash: "hash";
|
|
1994
|
+
patch_id: "patch_id";
|
|
1995
|
+
author_identity: "author_identity";
|
|
1996
|
+
message_embedded: "message_embedded";
|
|
1997
|
+
temporal: "temporal";
|
|
1998
|
+
}>;
|
|
1999
|
+
resolution: z.ZodEnum<{
|
|
2000
|
+
live: "live";
|
|
2001
|
+
rewritten: "rewritten";
|
|
2002
|
+
unresolved: "unresolved";
|
|
2003
|
+
}>;
|
|
2004
|
+
sessionIds: z.ZodArray<z.ZodString>;
|
|
2005
|
+
subject: z.ZodString;
|
|
2006
|
+
successorHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2007
|
+
}, z.core.$strip>>;
|
|
2008
|
+
sessionCount: z.ZodInt;
|
|
2009
|
+
shapedBy: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2010
|
+
editedFiles: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
2011
|
+
entryIndex: z.ZodInt;
|
|
2012
|
+
labels: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
2013
|
+
outcome: z.ZodOptional<z.ZodString>;
|
|
2014
|
+
readCount: z.ZodInt;
|
|
2015
|
+
readFiles: z.ZodArray<z.ZodString>;
|
|
2016
|
+
retryLoop: z.ZodBoolean;
|
|
2017
|
+
sessionId: z.ZodString;
|
|
2018
|
+
startMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2019
|
+
title: z.ZodString;
|
|
2020
|
+
}, z.core.$strip>>>;
|
|
2021
|
+
taskCount: z.ZodInt;
|
|
2022
|
+
totalFiles: z.ZodInt;
|
|
2023
|
+
usedBy: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
2024
|
+
}, z.core.$strip>;
|
|
2025
|
+
export type MapNodeDetailPayload = z.infer<typeof zMapNodeDetailPayload>;
|
|
2026
|
+
export declare const zProjectTasksPayload: z.ZodObject<{
|
|
2027
|
+
fileFilter: z.ZodOptional<z.ZodString>;
|
|
2028
|
+
projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
|
|
2029
|
+
tasks: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2030
|
+
editedFiles: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
2031
|
+
entryIndex: z.ZodInt;
|
|
2032
|
+
labels: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
2033
|
+
outcome: z.ZodOptional<z.ZodString>;
|
|
2034
|
+
readCount: z.ZodInt;
|
|
2035
|
+
readFiles: z.ZodArray<z.ZodString>;
|
|
2036
|
+
retryLoop: z.ZodBoolean;
|
|
2037
|
+
sessionId: z.ZodString;
|
|
2038
|
+
startMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2039
|
+
title: z.ZodString;
|
|
2040
|
+
}, z.core.$strip>>>;
|
|
2041
|
+
}, z.core.$strip>;
|
|
2042
|
+
export type ProjectTasksPayload = z.infer<typeof zProjectTasksPayload>;
|
|
2043
|
+
export declare const zTimelineSessionRef: z.ZodObject<{
|
|
2044
|
+
harness: z.ZodEnum<{
|
|
2045
|
+
strike: "strike";
|
|
2046
|
+
cursor: "cursor";
|
|
2047
|
+
"claude-code": "claude-code";
|
|
2048
|
+
"gemini-cli": "gemini-cli";
|
|
2049
|
+
codex: "codex";
|
|
2050
|
+
opencode: "opencode";
|
|
2051
|
+
antigravity: "antigravity";
|
|
2052
|
+
}>;
|
|
2053
|
+
hasCommitBinding: z.ZodBoolean;
|
|
2054
|
+
sessionId: z.ZodString;
|
|
2055
|
+
startMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2056
|
+
title: z.ZodString;
|
|
2057
|
+
}, z.core.$strip>;
|
|
2058
|
+
export type TimelineSessionRef = z.infer<typeof zTimelineSessionRef>;
|
|
2059
|
+
export declare const zReviewListPayload: z.ZodObject<{
|
|
2060
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
2061
|
+
aheadCount: z.ZodInt;
|
|
2062
|
+
baseHash: z.ZodOptional<z.ZodString>;
|
|
2063
|
+
behindCount: z.ZodInt;
|
|
2064
|
+
branch: z.ZodString;
|
|
2065
|
+
filesChanged: z.ZodInt;
|
|
2066
|
+
lastWorkMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2067
|
+
mergeCommitHash: z.ZodOptional<z.ZodString>;
|
|
2068
|
+
merged: z.ZodBoolean;
|
|
2069
|
+
mergedAtMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2070
|
+
newEdges: z.ZodInt;
|
|
2071
|
+
removedEdges: z.ZodInt;
|
|
2072
|
+
reverted: z.ZodOptional<z.ZodBoolean>;
|
|
2073
|
+
sessionCount: z.ZodInt;
|
|
2074
|
+
taskCount: z.ZodInt;
|
|
2075
|
+
tipCommitMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2076
|
+
violations: z.ZodInt;
|
|
2077
|
+
}, z.core.$strip>>;
|
|
2078
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
2079
|
+
projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
|
|
2080
|
+
recentCommits: z.ZodArray<z.ZodObject<{
|
|
2081
|
+
associations: z.ZodArray<z.ZodObject<{
|
|
2082
|
+
conclusion: z.ZodEnum<{
|
|
2083
|
+
candidate: "candidate";
|
|
2084
|
+
confirmed: "confirmed";
|
|
2085
|
+
}>;
|
|
2086
|
+
confidence: z.ZodEnum<{
|
|
2087
|
+
high: "high";
|
|
2088
|
+
low: "low";
|
|
2089
|
+
medium: "medium";
|
|
2090
|
+
}>;
|
|
2091
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
2092
|
+
branchName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2093
|
+
kind: z.ZodEnum<{
|
|
2094
|
+
recorded_commit: "recorded_commit";
|
|
2095
|
+
touched_file: "touched_file";
|
|
2096
|
+
branch_membership: "branch_membership";
|
|
2097
|
+
time_window: "time_window";
|
|
2098
|
+
}>;
|
|
2099
|
+
recordedCommitHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2100
|
+
touchedFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2101
|
+
windowEndMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2102
|
+
windowStartMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2103
|
+
}, z.core.$strip>>;
|
|
2104
|
+
id: z.ZodString;
|
|
2105
|
+
sessionId: z.ZodString;
|
|
2106
|
+
}, z.core.$strip>>;
|
|
2107
|
+
hasSession: z.ZodBoolean;
|
|
2108
|
+
hash: z.ZodString;
|
|
2109
|
+
sessionIds: z.ZodArray<z.ZodString>;
|
|
2110
|
+
subject: z.ZodString;
|
|
2111
|
+
timeMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2112
|
+
}, z.core.$strip>>;
|
|
2113
|
+
repoFound: z.ZodBoolean;
|
|
2114
|
+
rewrittenCommits: z.ZodArray<z.ZodObject<{
|
|
2115
|
+
associations: z.ZodArray<z.ZodObject<{
|
|
2116
|
+
conclusion: z.ZodEnum<{
|
|
2117
|
+
candidate: "candidate";
|
|
2118
|
+
confirmed: "confirmed";
|
|
2119
|
+
}>;
|
|
2120
|
+
confidence: z.ZodEnum<{
|
|
2121
|
+
high: "high";
|
|
2122
|
+
low: "low";
|
|
2123
|
+
medium: "medium";
|
|
2124
|
+
}>;
|
|
2125
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
2126
|
+
branchName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2127
|
+
kind: z.ZodEnum<{
|
|
2128
|
+
recorded_commit: "recorded_commit";
|
|
2129
|
+
touched_file: "touched_file";
|
|
2130
|
+
branch_membership: "branch_membership";
|
|
2131
|
+
time_window: "time_window";
|
|
2132
|
+
}>;
|
|
2133
|
+
recordedCommitHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2134
|
+
touchedFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2135
|
+
windowEndMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2136
|
+
windowStartMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2137
|
+
}, z.core.$strip>>;
|
|
2138
|
+
id: z.ZodString;
|
|
2139
|
+
sessionId: z.ZodString;
|
|
2140
|
+
}, z.core.$strip>>;
|
|
2141
|
+
authorTimeMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2142
|
+
confidence: z.ZodEnum<{
|
|
2143
|
+
high: "high";
|
|
2144
|
+
low: "low";
|
|
2145
|
+
medium: "medium";
|
|
2146
|
+
}>;
|
|
2147
|
+
ghostHash: z.ZodString;
|
|
2148
|
+
method: z.ZodEnum<{
|
|
2149
|
+
none: "none";
|
|
2150
|
+
hash: "hash";
|
|
2151
|
+
patch_id: "patch_id";
|
|
2152
|
+
author_identity: "author_identity";
|
|
2153
|
+
message_embedded: "message_embedded";
|
|
2154
|
+
temporal: "temporal";
|
|
2155
|
+
}>;
|
|
2156
|
+
resolution: z.ZodEnum<{
|
|
2157
|
+
live: "live";
|
|
2158
|
+
rewritten: "rewritten";
|
|
2159
|
+
unresolved: "unresolved";
|
|
2160
|
+
}>;
|
|
2161
|
+
sessionIds: z.ZodArray<z.ZodString>;
|
|
2162
|
+
subject: z.ZodString;
|
|
2163
|
+
successorHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2164
|
+
}, z.core.$strip>>;
|
|
2165
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
2166
|
+
harness: z.ZodEnum<{
|
|
2167
|
+
strike: "strike";
|
|
2168
|
+
cursor: "cursor";
|
|
2169
|
+
"claude-code": "claude-code";
|
|
2170
|
+
"gemini-cli": "gemini-cli";
|
|
2171
|
+
codex: "codex";
|
|
2172
|
+
opencode: "opencode";
|
|
2173
|
+
antigravity: "antigravity";
|
|
2174
|
+
}>;
|
|
2175
|
+
hasCommitBinding: z.ZodBoolean;
|
|
2176
|
+
sessionId: z.ZodString;
|
|
2177
|
+
startMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2178
|
+
title: z.ZodString;
|
|
2179
|
+
}, z.core.$strip>>;
|
|
2180
|
+
}, z.core.$strip>;
|
|
2181
|
+
export type ReviewListPayload = z.infer<typeof zReviewListPayload>;
|
|
2182
|
+
export declare const zTimestampInfo: z.ZodObject<{
|
|
2183
|
+
end: z.ZodCoercedBigInt<unknown>;
|
|
2184
|
+
ingested: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2185
|
+
start: z.ZodCoercedBigInt<unknown>;
|
|
2186
|
+
}, z.core.$strip>;
|
|
2187
|
+
export type TimestampInfo = z.infer<typeof zTimestampInfo>;
|
|
2188
|
+
/**
|
|
2189
|
+
* Tool Call Kind
|
|
2190
|
+
*
|
|
2191
|
+
* Classification of a tool call, aligned with ACP ToolCallUpdate.kind
|
|
2192
|
+
*/
|
|
2193
|
+
export declare const zToolCallKind: z.ZodEnum<{
|
|
2194
|
+
search: "search";
|
|
2195
|
+
other: "other";
|
|
2196
|
+
move: "move";
|
|
2197
|
+
fetch: "fetch";
|
|
2198
|
+
delete: "delete";
|
|
2199
|
+
read: "read";
|
|
2200
|
+
edit: "edit";
|
|
2201
|
+
execute: "execute";
|
|
2202
|
+
think: "think";
|
|
2203
|
+
}>;
|
|
2204
|
+
export type ToolCallKind = z.infer<typeof zToolCallKind>;
|
|
2205
|
+
export declare const zSessionEntry: z.ZodObject<{
|
|
2206
|
+
contentPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2207
|
+
depth: z.ZodInt;
|
|
2208
|
+
entryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2209
|
+
entryIndex: z.ZodInt;
|
|
2210
|
+
entryType: z.ZodEnum<{
|
|
2211
|
+
error: "error";
|
|
2212
|
+
text: "text";
|
|
2213
|
+
tool_use: "tool_use";
|
|
2214
|
+
tool_result: "tool_result";
|
|
2215
|
+
thinking: "thinking";
|
|
2216
|
+
system: "system";
|
|
2217
|
+
result: "result";
|
|
2218
|
+
}>;
|
|
2219
|
+
extra: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2220
|
+
harness: z.ZodEnum<{
|
|
2221
|
+
strike: "strike";
|
|
2222
|
+
cursor: "cursor";
|
|
2223
|
+
"claude-code": "claude-code";
|
|
2224
|
+
"gemini-cli": "gemini-cli";
|
|
2225
|
+
codex: "codex";
|
|
2226
|
+
opencode: "opencode";
|
|
2227
|
+
antigravity: "antigravity";
|
|
2228
|
+
}>;
|
|
2229
|
+
hasThinking: z.ZodBoolean;
|
|
2230
|
+
hasToolUse: z.ZodBoolean;
|
|
2231
|
+
isError: z.ZodBoolean;
|
|
2232
|
+
parentEntryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2233
|
+
parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2234
|
+
partType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2235
|
+
rawByteLength: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2236
|
+
role: z.ZodEnum<{
|
|
2237
|
+
user: "user";
|
|
2238
|
+
system: "system";
|
|
2239
|
+
assistant: "assistant";
|
|
2240
|
+
tool: "tool";
|
|
2241
|
+
}>;
|
|
2242
|
+
sessionId: z.ZodString;
|
|
2243
|
+
stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2244
|
+
end_turn: "end_turn";
|
|
2245
|
+
cancelled: "cancelled";
|
|
2246
|
+
max_tokens: "max_tokens";
|
|
2247
|
+
max_turn_requests: "max_turn_requests";
|
|
2248
|
+
refusal: "refusal";
|
|
2249
|
+
}>>>;
|
|
2250
|
+
timestampMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2251
|
+
tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2252
|
+
tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2253
|
+
toolCallId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2254
|
+
toolInput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2255
|
+
toolKind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2256
|
+
search: "search";
|
|
2257
|
+
other: "other";
|
|
2258
|
+
move: "move";
|
|
2259
|
+
fetch: "fetch";
|
|
2260
|
+
delete: "delete";
|
|
2261
|
+
read: "read";
|
|
2262
|
+
edit: "edit";
|
|
2263
|
+
execute: "execute";
|
|
2264
|
+
think: "think";
|
|
2265
|
+
}>>>;
|
|
2266
|
+
toolNamesCsv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2267
|
+
toolOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2268
|
+
}, z.core.$strip>;
|
|
2269
|
+
export type SessionEntry = z.infer<typeof zSessionEntry>;
|
|
2270
|
+
export declare const zPublishRequest: z.ZodObject<{
|
|
2271
|
+
diagnostics: z.ZodObject<{
|
|
2272
|
+
partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2273
|
+
warnings: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2274
|
+
errorType: z.ZodString;
|
|
2275
|
+
location: z.ZodString;
|
|
2276
|
+
message: z.ZodString;
|
|
2277
|
+
remediation: z.ZodString;
|
|
2278
|
+
}, z.core.$strip>>>;
|
|
2279
|
+
}, z.core.$strip>;
|
|
2280
|
+
entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2281
|
+
contentPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2282
|
+
depth: z.ZodInt;
|
|
2283
|
+
entryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2284
|
+
entryIndex: z.ZodInt;
|
|
2285
|
+
entryType: z.ZodEnum<{
|
|
2286
|
+
error: "error";
|
|
2287
|
+
text: "text";
|
|
2288
|
+
tool_use: "tool_use";
|
|
2289
|
+
tool_result: "tool_result";
|
|
2290
|
+
thinking: "thinking";
|
|
2291
|
+
system: "system";
|
|
2292
|
+
result: "result";
|
|
2293
|
+
}>;
|
|
2294
|
+
extra: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2295
|
+
harness: z.ZodEnum<{
|
|
2296
|
+
strike: "strike";
|
|
2297
|
+
cursor: "cursor";
|
|
2298
|
+
"claude-code": "claude-code";
|
|
2299
|
+
"gemini-cli": "gemini-cli";
|
|
2300
|
+
codex: "codex";
|
|
2301
|
+
opencode: "opencode";
|
|
2302
|
+
antigravity: "antigravity";
|
|
2303
|
+
}>;
|
|
2304
|
+
hasThinking: z.ZodBoolean;
|
|
2305
|
+
hasToolUse: z.ZodBoolean;
|
|
2306
|
+
isError: z.ZodBoolean;
|
|
2307
|
+
parentEntryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2308
|
+
parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2309
|
+
partType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2310
|
+
rawByteLength: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2311
|
+
role: z.ZodEnum<{
|
|
2312
|
+
user: "user";
|
|
2313
|
+
system: "system";
|
|
2314
|
+
assistant: "assistant";
|
|
2315
|
+
tool: "tool";
|
|
2316
|
+
}>;
|
|
2317
|
+
sessionId: z.ZodString;
|
|
2318
|
+
stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2319
|
+
end_turn: "end_turn";
|
|
2320
|
+
cancelled: "cancelled";
|
|
2321
|
+
max_tokens: "max_tokens";
|
|
2322
|
+
max_turn_requests: "max_turn_requests";
|
|
2323
|
+
refusal: "refusal";
|
|
2324
|
+
}>>>;
|
|
2325
|
+
timestampMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2326
|
+
tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2327
|
+
tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2328
|
+
toolCallId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2329
|
+
toolInput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2330
|
+
toolKind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2331
|
+
search: "search";
|
|
2332
|
+
other: "other";
|
|
2333
|
+
move: "move";
|
|
2334
|
+
fetch: "fetch";
|
|
2335
|
+
delete: "delete";
|
|
2336
|
+
read: "read";
|
|
2337
|
+
edit: "edit";
|
|
2338
|
+
execute: "execute";
|
|
2339
|
+
think: "think";
|
|
2340
|
+
}>>>;
|
|
2341
|
+
toolNamesCsv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2342
|
+
toolOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2343
|
+
}, z.core.$strip>>>;
|
|
2344
|
+
git: z.ZodObject<{
|
|
2345
|
+
associations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2346
|
+
id: z.ZodString;
|
|
2347
|
+
observedCommitHash: z.ZodString;
|
|
2348
|
+
}, z.core.$strip>>>;
|
|
2349
|
+
branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2350
|
+
commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2351
|
+
authorEmail: z.ZodString;
|
|
2352
|
+
authorName: z.ZodString;
|
|
2353
|
+
authorTime: z.ZodCoercedBigInt<unknown>;
|
|
2354
|
+
commitTime: z.ZodCoercedBigInt<unknown>;
|
|
2355
|
+
hash: z.ZodString;
|
|
2356
|
+
message: z.ZodString;
|
|
2357
|
+
}, z.core.$strip>>>;
|
|
2358
|
+
remote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2359
|
+
tracking: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2360
|
+
worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2361
|
+
}, z.core.$strip>;
|
|
2362
|
+
identity: z.ZodObject<{
|
|
2363
|
+
parentUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2364
|
+
schemaVersion: z.ZodInt;
|
|
2365
|
+
sessionId: z.ZodString;
|
|
2366
|
+
}, z.core.$strip>;
|
|
2367
|
+
license: z.ZodOptional<z.ZodEnum<{
|
|
2368
|
+
"CC0-1.0": "CC0-1.0";
|
|
2369
|
+
"CC-BY-4.0": "CC-BY-4.0";
|
|
2370
|
+
"CC-BY-SA-4.0": "CC-BY-SA-4.0";
|
|
2371
|
+
}>>;
|
|
2372
|
+
model: z.ZodObject<{
|
|
2373
|
+
harness: z.ZodEnum<{
|
|
2374
|
+
strike: "strike";
|
|
2375
|
+
cursor: "cursor";
|
|
2376
|
+
"claude-code": "claude-code";
|
|
2377
|
+
"gemini-cli": "gemini-cli";
|
|
2378
|
+
codex: "codex";
|
|
2379
|
+
opencode: "opencode";
|
|
2380
|
+
antigravity: "antigravity";
|
|
2381
|
+
}>;
|
|
2382
|
+
hostSlug: z.ZodOptional<z.ZodString>;
|
|
2383
|
+
model: z.ZodString;
|
|
2384
|
+
version: z.ZodOptional<z.ZodString>;
|
|
2385
|
+
}, z.core.$strip>;
|
|
2386
|
+
project: z.ZodObject<{
|
|
2387
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
2388
|
+
hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
|
|
2389
|
+
name: z.ZodString;
|
|
2390
|
+
}, z.core.$strip>;
|
|
2391
|
+
quality: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2392
|
+
computeVersion: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2393
|
+
computedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2394
|
+
costCacheReadUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2395
|
+
costCacheWriteUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2396
|
+
costInputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2397
|
+
costModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2398
|
+
costOutputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2399
|
+
costReasoningUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2400
|
+
costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2401
|
+
discoveryTurns: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2402
|
+
durationMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2403
|
+
explorationRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2404
|
+
filesTouched: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2405
|
+
inputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2406
|
+
linesChanged: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2407
|
+
m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2408
|
+
m3UniqueToolCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2409
|
+
m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2410
|
+
m4ErrorRecoveryCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2411
|
+
m5AvgMessageTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2412
|
+
m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2413
|
+
m5PeakContextTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2414
|
+
m6LinesSurvived: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2415
|
+
m6LinesTotal: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2416
|
+
m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2417
|
+
m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2418
|
+
m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2419
|
+
m7SpecWordCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2420
|
+
outcome: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2421
|
+
failed: "failed";
|
|
2422
|
+
partial: "partial";
|
|
2423
|
+
resolved: "resolved";
|
|
2424
|
+
}>>>;
|
|
2425
|
+
outputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2426
|
+
retryLoops: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2427
|
+
retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2428
|
+
scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2429
|
+
scopeBreadth: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2430
|
+
signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2431
|
+
specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2432
|
+
subagentCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2433
|
+
titleGenerated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2434
|
+
toolCalls: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2435
|
+
totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2436
|
+
turnCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2437
|
+
withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2438
|
+
}, z.core.$strip>>>;
|
|
2439
|
+
source: z.ZodObject<{
|
|
2440
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
2441
|
+
format: z.ZodEnum<{
|
|
2442
|
+
json: "json";
|
|
2443
|
+
jsonl: "jsonl";
|
|
2444
|
+
}>;
|
|
2445
|
+
}, z.core.$strip>;
|
|
2446
|
+
stats: z.ZodObject<{
|
|
2447
|
+
cachedReadTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2448
|
+
cachedWriteTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2449
|
+
durationMs: z.ZodCoercedBigInt<unknown>;
|
|
2450
|
+
subagentCount: z.ZodInt;
|
|
2451
|
+
thoughtTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2452
|
+
tokensIn: z.ZodInt;
|
|
2453
|
+
tokensOut: z.ZodInt;
|
|
2454
|
+
toolCallCount: z.ZodInt;
|
|
2455
|
+
turnCount: z.ZodInt;
|
|
2456
|
+
}, z.core.$strip>;
|
|
2457
|
+
subagents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2458
|
+
parentUuid: z.ZodString;
|
|
2459
|
+
sessionId: z.ZodString;
|
|
2460
|
+
}, z.core.$strip>>>;
|
|
2461
|
+
timestamp: z.ZodObject<{
|
|
2462
|
+
end: z.ZodCoercedBigInt<unknown>;
|
|
2463
|
+
ingested: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2464
|
+
start: z.ZodCoercedBigInt<unknown>;
|
|
2465
|
+
}, z.core.$strip>;
|
|
2466
|
+
}, z.core.$strip>;
|
|
2467
|
+
export type PublishRequest = z.infer<typeof zPublishRequest>;
|
|
2468
|
+
export declare const zToolCallDetail: z.ZodObject<{
|
|
2469
|
+
arguments: z.ZodString;
|
|
2470
|
+
durationMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2471
|
+
exitCode: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2472
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
2473
|
+
id: z.ZodString;
|
|
2474
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
2475
|
+
name: z.ZodString;
|
|
2476
|
+
result: z.ZodString;
|
|
2477
|
+
toolKind: z.ZodOptional<z.ZodEnum<{
|
|
2478
|
+
search: "search";
|
|
2479
|
+
other: "other";
|
|
2480
|
+
move: "move";
|
|
2481
|
+
fetch: "fetch";
|
|
2482
|
+
delete: "delete";
|
|
2483
|
+
read: "read";
|
|
2484
|
+
edit: "edit";
|
|
2485
|
+
execute: "execute";
|
|
2486
|
+
think: "think";
|
|
2487
|
+
}>>;
|
|
2488
|
+
}, z.core.$strip>;
|
|
2489
|
+
export type ToolCallDetail = z.infer<typeof zToolCallDetail>;
|
|
2490
|
+
/**
|
|
2491
|
+
* Transcript ID
|
|
2492
|
+
*
|
|
2493
|
+
* Village-side transcript identifier (canonical lowercase-hex UUID)
|
|
2494
|
+
*/
|
|
2495
|
+
export declare const zTranscriptID: z.ZodUUID;
|
|
2496
|
+
export type TranscriptID = z.infer<typeof zTranscriptID>;
|
|
2497
|
+
export declare const zPullSkipGateItem: z.ZodObject<{
|
|
2498
|
+
annotationHashes: z.ZodArray<z.ZodString>;
|
|
2499
|
+
contentHash: z.ZodString;
|
|
2500
|
+
transcriptId: z.ZodUUID;
|
|
2501
|
+
}, z.core.$strip>;
|
|
2502
|
+
export type PullSkipGateItem = z.infer<typeof zPullSkipGateItem>;
|
|
2503
|
+
export declare const zPullSkipGateRequest: z.ZodObject<{
|
|
2504
|
+
items: z.ZodArray<z.ZodObject<{
|
|
2505
|
+
annotationHashes: z.ZodArray<z.ZodString>;
|
|
2506
|
+
contentHash: z.ZodString;
|
|
2507
|
+
transcriptId: z.ZodUUID;
|
|
2508
|
+
}, z.core.$strip>>;
|
|
2509
|
+
}, z.core.$strip>;
|
|
2510
|
+
export type PullSkipGateRequest = z.infer<typeof zPullSkipGateRequest>;
|
|
2511
|
+
export declare const zPullSkipGateResult: z.ZodObject<{
|
|
2512
|
+
annotationsCurrent: z.ZodBoolean;
|
|
2513
|
+
contentCurrent: z.ZodBoolean;
|
|
2514
|
+
transcriptId: z.ZodUUID;
|
|
2515
|
+
}, z.core.$strip>;
|
|
2516
|
+
export type PullSkipGateResult = z.infer<typeof zPullSkipGateResult>;
|
|
2517
|
+
export declare const zPullSkipGateResponse: z.ZodObject<{
|
|
2518
|
+
results: z.ZodArray<z.ZodObject<{
|
|
2519
|
+
annotationsCurrent: z.ZodBoolean;
|
|
2520
|
+
contentCurrent: z.ZodBoolean;
|
|
2521
|
+
transcriptId: z.ZodUUID;
|
|
2522
|
+
}, z.core.$strip>>;
|
|
2523
|
+
}, z.core.$strip>;
|
|
2524
|
+
export type PullSkipGateResponse = z.infer<typeof zPullSkipGateResponse>;
|
|
2525
|
+
export declare const zTrendsPayload: z.ZodObject<{
|
|
2526
|
+
days: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2527
|
+
date: z.ZodString;
|
|
2528
|
+
sessions: z.ZodInt;
|
|
2529
|
+
tokens: z.ZodInt;
|
|
2530
|
+
}, z.core.$strip>>>;
|
|
2531
|
+
totalSessions: z.ZodInt;
|
|
2532
|
+
totalTokens: z.ZodInt;
|
|
2533
|
+
}, z.core.$strip>;
|
|
2534
|
+
export type TrendsPayload = z.infer<typeof zTrendsPayload>;
|
|
2535
|
+
export declare const zTurnDetail: z.ZodObject<{
|
|
2536
|
+
agentName: z.ZodOptional<z.ZodString>;
|
|
2537
|
+
content: z.ZodString;
|
|
2538
|
+
depth: z.ZodInt;
|
|
2539
|
+
entryType: z.ZodOptional<z.ZodEnum<{
|
|
2540
|
+
error: "error";
|
|
2541
|
+
text: "text";
|
|
2542
|
+
tool_use: "tool_use";
|
|
2543
|
+
tool_result: "tool_result";
|
|
2544
|
+
thinking: "thinking";
|
|
2545
|
+
system: "system";
|
|
2546
|
+
result: "result";
|
|
2547
|
+
}>>;
|
|
2548
|
+
hasThinking: z.ZodOptional<z.ZodBoolean>;
|
|
2549
|
+
index: z.ZodInt;
|
|
2550
|
+
parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2551
|
+
role: z.ZodEnum<{
|
|
2552
|
+
user: "user";
|
|
2553
|
+
system: "system";
|
|
2554
|
+
assistant: "assistant";
|
|
2555
|
+
tool: "tool";
|
|
2556
|
+
}>;
|
|
2557
|
+
stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2558
|
+
end_turn: "end_turn";
|
|
2559
|
+
cancelled: "cancelled";
|
|
2560
|
+
max_tokens: "max_tokens";
|
|
2561
|
+
max_turn_requests: "max_turn_requests";
|
|
2562
|
+
refusal: "refusal";
|
|
2563
|
+
}>>>;
|
|
2564
|
+
timestamp: z.ZodISODateTime;
|
|
2565
|
+
tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2566
|
+
tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2567
|
+
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2568
|
+
arguments: z.ZodString;
|
|
2569
|
+
durationMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2570
|
+
exitCode: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2571
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
2572
|
+
id: z.ZodString;
|
|
2573
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
2574
|
+
name: z.ZodString;
|
|
2575
|
+
result: z.ZodString;
|
|
2576
|
+
toolKind: z.ZodOptional<z.ZodEnum<{
|
|
2577
|
+
search: "search";
|
|
2578
|
+
other: "other";
|
|
2579
|
+
move: "move";
|
|
2580
|
+
fetch: "fetch";
|
|
2581
|
+
delete: "delete";
|
|
2582
|
+
read: "read";
|
|
2583
|
+
edit: "edit";
|
|
2584
|
+
execute: "execute";
|
|
2585
|
+
think: "think";
|
|
2586
|
+
}>>;
|
|
2587
|
+
}, z.core.$strip>>>;
|
|
2588
|
+
}, z.core.$strip>;
|
|
2589
|
+
export type TurnDetail = z.infer<typeof zTurnDetail>;
|
|
2590
|
+
export declare const zSessionDetailPayload: z.ZodObject<{
|
|
2591
|
+
childSessions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2592
|
+
id: z.ZodString;
|
|
2593
|
+
project: z.ZodOptional<z.ZodString>;
|
|
2594
|
+
startTime: z.ZodISODateTime;
|
|
2595
|
+
}, z.core.$strip>>>;
|
|
2596
|
+
durationMins: z.ZodNumber;
|
|
2597
|
+
endTime: z.ZodISODateTime;
|
|
2598
|
+
gitBranch: z.ZodOptional<z.ZodString>;
|
|
2599
|
+
gitRemote: z.ZodOptional<z.ZodString>;
|
|
2600
|
+
harness: z.ZodEnum<{
|
|
2601
|
+
strike: "strike";
|
|
2602
|
+
cursor: "cursor";
|
|
2603
|
+
"claude-code": "claude-code";
|
|
2604
|
+
"gemini-cli": "gemini-cli";
|
|
2605
|
+
codex: "codex";
|
|
2606
|
+
opencode: "opencode";
|
|
2607
|
+
antigravity: "antigravity";
|
|
2608
|
+
}>;
|
|
2609
|
+
id: z.ZodString;
|
|
2610
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2611
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
2612
|
+
failed: "failed";
|
|
2613
|
+
partial: "partial";
|
|
2614
|
+
resolved: "resolved";
|
|
2615
|
+
}>>;
|
|
2616
|
+
project: z.ZodOptional<z.ZodString>;
|
|
2617
|
+
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
2618
|
+
scorecard: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2619
|
+
costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2620
|
+
m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2621
|
+
m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2622
|
+
m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2623
|
+
m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2624
|
+
m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2625
|
+
m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2626
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
2627
|
+
failed: "failed";
|
|
2628
|
+
partial: "partial";
|
|
2629
|
+
resolved: "resolved";
|
|
2630
|
+
}>>;
|
|
2631
|
+
retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2632
|
+
signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2633
|
+
specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2634
|
+
totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2635
|
+
withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2636
|
+
}, z.core.$strip>>>;
|
|
2637
|
+
source: z.ZodOptional<z.ZodString>;
|
|
2638
|
+
startTime: z.ZodISODateTime;
|
|
2639
|
+
status: z.ZodOptional<z.ZodString>;
|
|
2640
|
+
tokensIn: z.ZodInt;
|
|
2641
|
+
tokensOut: z.ZodInt;
|
|
2642
|
+
toolCallCount: z.ZodInt;
|
|
2643
|
+
totalTokens: z.ZodInt;
|
|
2644
|
+
turnCount: z.ZodInt;
|
|
2645
|
+
turns: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2646
|
+
agentName: z.ZodOptional<z.ZodString>;
|
|
2647
|
+
content: z.ZodString;
|
|
2648
|
+
depth: z.ZodInt;
|
|
2649
|
+
entryType: z.ZodOptional<z.ZodEnum<{
|
|
2650
|
+
error: "error";
|
|
2651
|
+
text: "text";
|
|
2652
|
+
tool_use: "tool_use";
|
|
2653
|
+
tool_result: "tool_result";
|
|
2654
|
+
thinking: "thinking";
|
|
2655
|
+
system: "system";
|
|
2656
|
+
result: "result";
|
|
2657
|
+
}>>;
|
|
2658
|
+
hasThinking: z.ZodOptional<z.ZodBoolean>;
|
|
2659
|
+
index: z.ZodInt;
|
|
2660
|
+
parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2661
|
+
role: z.ZodEnum<{
|
|
2662
|
+
user: "user";
|
|
2663
|
+
system: "system";
|
|
2664
|
+
assistant: "assistant";
|
|
2665
|
+
tool: "tool";
|
|
2666
|
+
}>;
|
|
2667
|
+
stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2668
|
+
end_turn: "end_turn";
|
|
2669
|
+
cancelled: "cancelled";
|
|
2670
|
+
max_tokens: "max_tokens";
|
|
2671
|
+
max_turn_requests: "max_turn_requests";
|
|
2672
|
+
refusal: "refusal";
|
|
2673
|
+
}>>>;
|
|
2674
|
+
timestamp: z.ZodISODateTime;
|
|
2675
|
+
tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2676
|
+
tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2677
|
+
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2678
|
+
arguments: z.ZodString;
|
|
2679
|
+
durationMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2680
|
+
exitCode: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2681
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
2682
|
+
id: z.ZodString;
|
|
2683
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
2684
|
+
name: z.ZodString;
|
|
2685
|
+
result: z.ZodString;
|
|
2686
|
+
toolKind: z.ZodOptional<z.ZodEnum<{
|
|
2687
|
+
search: "search";
|
|
2688
|
+
other: "other";
|
|
2689
|
+
move: "move";
|
|
2690
|
+
fetch: "fetch";
|
|
2691
|
+
delete: "delete";
|
|
2692
|
+
read: "read";
|
|
2693
|
+
edit: "edit";
|
|
2694
|
+
execute: "execute";
|
|
2695
|
+
think: "think";
|
|
2696
|
+
}>>;
|
|
2697
|
+
}, z.core.$strip>>>;
|
|
2698
|
+
}, z.core.$strip>>>;
|
|
2699
|
+
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
2700
|
+
}, z.core.$strip>;
|
|
2701
|
+
export type SessionDetailPayload = z.infer<typeof zSessionDetailPayload>;
|
|
2702
|
+
export declare const zTranscriptContent: z.ZodObject<{
|
|
2703
|
+
contractVersion: z.ZodString;
|
|
2704
|
+
kind: z.ZodEnum<{
|
|
2705
|
+
session_detail: "session_detail";
|
|
2706
|
+
}>;
|
|
2707
|
+
sessionDetail: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2708
|
+
childSessions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2709
|
+
id: z.ZodString;
|
|
2710
|
+
project: z.ZodOptional<z.ZodString>;
|
|
2711
|
+
startTime: z.ZodISODateTime;
|
|
2712
|
+
}, z.core.$strip>>>;
|
|
2713
|
+
durationMins: z.ZodNumber;
|
|
2714
|
+
endTime: z.ZodISODateTime;
|
|
2715
|
+
gitBranch: z.ZodOptional<z.ZodString>;
|
|
2716
|
+
gitRemote: z.ZodOptional<z.ZodString>;
|
|
2717
|
+
harness: z.ZodEnum<{
|
|
2718
|
+
strike: "strike";
|
|
2719
|
+
cursor: "cursor";
|
|
2720
|
+
"claude-code": "claude-code";
|
|
2721
|
+
"gemini-cli": "gemini-cli";
|
|
2722
|
+
codex: "codex";
|
|
2723
|
+
opencode: "opencode";
|
|
2724
|
+
antigravity: "antigravity";
|
|
2725
|
+
}>;
|
|
2726
|
+
id: z.ZodString;
|
|
2727
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2728
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
2729
|
+
failed: "failed";
|
|
2730
|
+
partial: "partial";
|
|
2731
|
+
resolved: "resolved";
|
|
2732
|
+
}>>;
|
|
2733
|
+
project: z.ZodOptional<z.ZodString>;
|
|
2734
|
+
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
2735
|
+
scorecard: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2736
|
+
costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2737
|
+
m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2738
|
+
m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2739
|
+
m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2740
|
+
m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2741
|
+
m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2742
|
+
m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2743
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
2744
|
+
failed: "failed";
|
|
2745
|
+
partial: "partial";
|
|
2746
|
+
resolved: "resolved";
|
|
2747
|
+
}>>;
|
|
2748
|
+
retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2749
|
+
signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2750
|
+
specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2751
|
+
totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2752
|
+
withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2753
|
+
}, z.core.$strip>>>;
|
|
2754
|
+
source: z.ZodOptional<z.ZodString>;
|
|
2755
|
+
startTime: z.ZodISODateTime;
|
|
2756
|
+
status: z.ZodOptional<z.ZodString>;
|
|
2757
|
+
tokensIn: z.ZodInt;
|
|
2758
|
+
tokensOut: z.ZodInt;
|
|
2759
|
+
toolCallCount: z.ZodInt;
|
|
2760
|
+
totalTokens: z.ZodInt;
|
|
2761
|
+
turnCount: z.ZodInt;
|
|
2762
|
+
turns: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2763
|
+
agentName: z.ZodOptional<z.ZodString>;
|
|
2764
|
+
content: z.ZodString;
|
|
2765
|
+
depth: z.ZodInt;
|
|
2766
|
+
entryType: z.ZodOptional<z.ZodEnum<{
|
|
2767
|
+
error: "error";
|
|
2768
|
+
text: "text";
|
|
2769
|
+
tool_use: "tool_use";
|
|
2770
|
+
tool_result: "tool_result";
|
|
2771
|
+
thinking: "thinking";
|
|
2772
|
+
system: "system";
|
|
2773
|
+
result: "result";
|
|
2774
|
+
}>>;
|
|
2775
|
+
hasThinking: z.ZodOptional<z.ZodBoolean>;
|
|
2776
|
+
index: z.ZodInt;
|
|
2777
|
+
parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2778
|
+
role: z.ZodEnum<{
|
|
2779
|
+
user: "user";
|
|
2780
|
+
system: "system";
|
|
2781
|
+
assistant: "assistant";
|
|
2782
|
+
tool: "tool";
|
|
2783
|
+
}>;
|
|
2784
|
+
stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2785
|
+
end_turn: "end_turn";
|
|
2786
|
+
cancelled: "cancelled";
|
|
2787
|
+
max_tokens: "max_tokens";
|
|
2788
|
+
max_turn_requests: "max_turn_requests";
|
|
2789
|
+
refusal: "refusal";
|
|
2790
|
+
}>>>;
|
|
2791
|
+
timestamp: z.ZodISODateTime;
|
|
2792
|
+
tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2793
|
+
tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2794
|
+
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2795
|
+
arguments: z.ZodString;
|
|
2796
|
+
durationMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2797
|
+
exitCode: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2798
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
2799
|
+
id: z.ZodString;
|
|
2800
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
2801
|
+
name: z.ZodString;
|
|
2802
|
+
result: z.ZodString;
|
|
2803
|
+
toolKind: z.ZodOptional<z.ZodEnum<{
|
|
2804
|
+
search: "search";
|
|
2805
|
+
other: "other";
|
|
2806
|
+
move: "move";
|
|
2807
|
+
fetch: "fetch";
|
|
2808
|
+
delete: "delete";
|
|
2809
|
+
read: "read";
|
|
2810
|
+
edit: "edit";
|
|
2811
|
+
execute: "execute";
|
|
2812
|
+
think: "think";
|
|
2813
|
+
}>>;
|
|
2814
|
+
}, z.core.$strip>>>;
|
|
2815
|
+
}, z.core.$strip>>>;
|
|
2816
|
+
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
2817
|
+
}, z.core.$strip>>>;
|
|
2818
|
+
}, z.core.$strip>;
|
|
2819
|
+
export type TranscriptContent = z.infer<typeof zTranscriptContent>;
|
|
2820
|
+
/**
|
|
2821
|
+
* Type Origin
|
|
2822
|
+
*
|
|
2823
|
+
* Who created an annotation type: system (built-in), user (individual), or group (shared)
|
|
2824
|
+
*/
|
|
2825
|
+
export declare const zTypeOrigin: z.ZodEnum<{
|
|
2826
|
+
user: "user";
|
|
2827
|
+
group: "group";
|
|
2828
|
+
system: "system";
|
|
2829
|
+
}>;
|
|
2830
|
+
export type TypeOrigin = z.infer<typeof zTypeOrigin>;
|
|
2831
|
+
export declare const zUnifiedMetadata: z.ZodObject<{
|
|
2832
|
+
contentHash: z.ZodString;
|
|
2833
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
2834
|
+
derivedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2835
|
+
diagnostics: z.ZodObject<{
|
|
2836
|
+
partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2837
|
+
warnings: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2838
|
+
errorType: z.ZodString;
|
|
2839
|
+
location: z.ZodString;
|
|
2840
|
+
message: z.ZodString;
|
|
2841
|
+
remediation: z.ZodString;
|
|
2842
|
+
}, z.core.$strip>>>;
|
|
2843
|
+
}, z.core.$strip>;
|
|
2844
|
+
git: z.ZodObject<{
|
|
2845
|
+
associations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2846
|
+
id: z.ZodString;
|
|
2847
|
+
observedCommitHash: z.ZodString;
|
|
2848
|
+
}, z.core.$strip>>>;
|
|
2849
|
+
branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2850
|
+
commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2851
|
+
authorEmail: z.ZodString;
|
|
2852
|
+
authorName: z.ZodString;
|
|
2853
|
+
authorTime: z.ZodCoercedBigInt<unknown>;
|
|
2854
|
+
commitTime: z.ZodCoercedBigInt<unknown>;
|
|
2855
|
+
hash: z.ZodString;
|
|
2856
|
+
message: z.ZodString;
|
|
2857
|
+
}, z.core.$strip>>>;
|
|
2858
|
+
remote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2859
|
+
tracking: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2860
|
+
worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2861
|
+
}, z.core.$strip>;
|
|
2862
|
+
harness: z.ZodEnum<{
|
|
2863
|
+
strike: "strike";
|
|
2864
|
+
cursor: "cursor";
|
|
2865
|
+
"claude-code": "claude-code";
|
|
2866
|
+
"gemini-cli": "gemini-cli";
|
|
2867
|
+
codex: "codex";
|
|
2868
|
+
opencode: "opencode";
|
|
2869
|
+
antigravity: "antigravity";
|
|
2870
|
+
}>;
|
|
2871
|
+
hostSlug: z.ZodString;
|
|
2872
|
+
metadataHash: z.ZodString;
|
|
2873
|
+
model: z.ZodString;
|
|
2874
|
+
parentUuid: z.ZodNullable<z.ZodString>;
|
|
2875
|
+
project: z.ZodObject<{
|
|
2876
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
2877
|
+
hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
|
|
2878
|
+
name: z.ZodString;
|
|
2879
|
+
}, z.core.$strip>;
|
|
2880
|
+
redaction: z.ZodObject<{
|
|
2881
|
+
applied: z.ZodBoolean;
|
|
2882
|
+
content_hash_at_redact: z.ZodOptional<z.ZodString>;
|
|
2883
|
+
level: z.ZodOptional<z.ZodString>;
|
|
2884
|
+
redacted_at_ms: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2885
|
+
rule_set_version: z.ZodOptional<z.ZodString>;
|
|
2886
|
+
}, z.core.$strip>;
|
|
2887
|
+
schemaVersion: z.ZodInt;
|
|
2888
|
+
sessionId: z.ZodString;
|
|
2889
|
+
source: z.ZodObject<{
|
|
2890
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
2891
|
+
format: z.ZodEnum<{
|
|
2892
|
+
json: "json";
|
|
2893
|
+
jsonl: "jsonl";
|
|
2894
|
+
}>;
|
|
2895
|
+
}, z.core.$strip>;
|
|
2896
|
+
stats: z.ZodObject<{
|
|
2897
|
+
cachedReadTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2898
|
+
cachedWriteTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2899
|
+
durationMs: z.ZodCoercedBigInt<unknown>;
|
|
2900
|
+
subagentCount: z.ZodInt;
|
|
2901
|
+
thoughtTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2902
|
+
tokensIn: z.ZodInt;
|
|
2903
|
+
tokensOut: z.ZodInt;
|
|
2904
|
+
toolCallCount: z.ZodInt;
|
|
2905
|
+
turnCount: z.ZodInt;
|
|
2906
|
+
}, z.core.$strip>;
|
|
2907
|
+
subagents: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2908
|
+
parentUuid: z.ZodString;
|
|
2909
|
+
sessionId: z.ZodString;
|
|
2910
|
+
}, z.core.$strip>>>;
|
|
2911
|
+
timestamp: z.ZodObject<{
|
|
2912
|
+
end: z.ZodCoercedBigInt<unknown>;
|
|
2913
|
+
ingested: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2914
|
+
start: z.ZodCoercedBigInt<unknown>;
|
|
2915
|
+
}, z.core.$strip>;
|
|
2916
|
+
version: z.ZodString;
|
|
2917
|
+
}, z.core.$strip>;
|
|
2918
|
+
export type UnifiedMetadata = z.infer<typeof zUnifiedMetadata>;
|
|
2919
|
+
export declare const zUnusualSignal: z.ZodObject<{
|
|
2920
|
+
kind: z.ZodString;
|
|
2921
|
+
label: z.ZodString;
|
|
2922
|
+
perChange: z.ZodNumber;
|
|
2923
|
+
perProject: z.ZodNumber;
|
|
2924
|
+
}, z.core.$strip>;
|
|
2925
|
+
export type UnusualSignal = z.infer<typeof zUnusualSignal>;
|
|
2926
|
+
export declare const zChangeDetailPayload: z.ZodObject<{
|
|
2927
|
+
baseRef: z.ZodString;
|
|
2928
|
+
branch: z.ZodString;
|
|
2929
|
+
costUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2930
|
+
defaultBranch: z.ZodString;
|
|
2931
|
+
files: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2932
|
+
linesAdded: z.ZodInt;
|
|
2933
|
+
linesRemoved: z.ZodInt;
|
|
2934
|
+
oldPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2935
|
+
path: z.ZodString;
|
|
2936
|
+
status: z.ZodEnum<{
|
|
2937
|
+
M: "M";
|
|
2938
|
+
A: "A";
|
|
2939
|
+
D: "D";
|
|
2940
|
+
R: "R";
|
|
2941
|
+
}>;
|
|
2942
|
+
}, z.core.$strip>>>;
|
|
2943
|
+
frictions: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2944
|
+
count: z.ZodInt;
|
|
2945
|
+
file: z.ZodString;
|
|
2946
|
+
kind: z.ZodString;
|
|
2947
|
+
label: z.ZodString;
|
|
2948
|
+
sessions: z.ZodInt;
|
|
2949
|
+
}, z.core.$strip>>>;
|
|
2950
|
+
insights: z.ZodArray<z.ZodObject<{
|
|
2951
|
+
classification: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2952
|
+
category: z.ZodString;
|
|
2953
|
+
cause: z.ZodString;
|
|
2954
|
+
resolution: z.ZodString;
|
|
2955
|
+
severityLocus: z.ZodString;
|
|
2956
|
+
severityScope: z.ZodString;
|
|
2957
|
+
}, z.core.$strip>>>;
|
|
2958
|
+
confidence: z.ZodEnum<{
|
|
2959
|
+
high: "high";
|
|
2960
|
+
low: "low";
|
|
2961
|
+
medium: "medium";
|
|
2962
|
+
}>;
|
|
2963
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
2964
|
+
commitHash: z.ZodOptional<z.ZodString>;
|
|
2965
|
+
entryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2966
|
+
file: z.ZodOptional<z.ZodString>;
|
|
2967
|
+
sessionId: z.ZodString;
|
|
2968
|
+
}, z.core.$strip>>;
|
|
2969
|
+
kind: z.ZodEnum<{
|
|
2970
|
+
decision: "decision";
|
|
2971
|
+
friction: "friction";
|
|
2972
|
+
unusual: "unusual";
|
|
2973
|
+
retry_loop: "retry_loop";
|
|
2974
|
+
}>;
|
|
2975
|
+
provenance: z.ZodEnum<{
|
|
2976
|
+
mechanical: "mechanical";
|
|
2977
|
+
mined: "mined";
|
|
2978
|
+
}>;
|
|
2979
|
+
subjects: z.ZodArray<z.ZodString>;
|
|
2980
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
2981
|
+
title: z.ZodString;
|
|
2982
|
+
}, z.core.$strip>>;
|
|
2983
|
+
linesAdded: z.ZodInt;
|
|
2984
|
+
linesRemoved: z.ZodInt;
|
|
2985
|
+
newEdges: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2986
|
+
count: z.ZodInt;
|
|
2987
|
+
from: z.ZodString;
|
|
2988
|
+
to: z.ZodString;
|
|
2989
|
+
}, z.core.$strip>>>;
|
|
2990
|
+
newNodes: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
2991
|
+
outputTokens: z.ZodCoercedBigInt<unknown>;
|
|
2992
|
+
removedEdges: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2993
|
+
count: z.ZodInt;
|
|
2994
|
+
from: z.ZodString;
|
|
2995
|
+
to: z.ZodString;
|
|
2996
|
+
}, z.core.$strip>>>;
|
|
2997
|
+
removedNodes: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
2998
|
+
slice: z.ZodObject<{
|
|
2999
|
+
activityEdges: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3000
|
+
from: z.ZodString;
|
|
3001
|
+
taskCount: z.ZodInt;
|
|
3002
|
+
to: z.ZodString;
|
|
3003
|
+
}, z.core.$strip>>>;
|
|
3004
|
+
nodes: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3005
|
+
agentEditedCount: z.ZodInt;
|
|
3006
|
+
attributedRegionCount: z.ZodInt;
|
|
3007
|
+
changedRegionCount: z.ZodInt;
|
|
3008
|
+
effortDensity: z.ZodNumber;
|
|
3009
|
+
fileCount: z.ZodInt;
|
|
3010
|
+
id: z.ZodString;
|
|
3011
|
+
kind: z.ZodEnum<{
|
|
3012
|
+
file: "file";
|
|
3013
|
+
module: "module";
|
|
3014
|
+
package: "package";
|
|
3015
|
+
}>;
|
|
3016
|
+
language: z.ZodOptional<z.ZodString>;
|
|
3017
|
+
layer: z.ZodInt;
|
|
3018
|
+
loc: z.ZodInt;
|
|
3019
|
+
name: z.ZodString;
|
|
3020
|
+
order: z.ZodInt;
|
|
3021
|
+
parent: z.ZodOptional<z.ZodString>;
|
|
3022
|
+
readAttribution: z.ZodEnum<{
|
|
3023
|
+
complete: "complete";
|
|
3024
|
+
partial: "partial";
|
|
3025
|
+
unavailable: "unavailable";
|
|
3026
|
+
}>;
|
|
3027
|
+
readCount: z.ZodInt;
|
|
3028
|
+
readState: z.ZodEnum<{
|
|
3029
|
+
none: "none";
|
|
3030
|
+
viewed: "viewed";
|
|
3031
|
+
reviewed: "reviewed";
|
|
3032
|
+
reviewed_in_detail: "reviewed_in_detail";
|
|
3033
|
+
}>;
|
|
3034
|
+
recordedFiles: z.ZodInt;
|
|
3035
|
+
reviewedRegionCount: z.ZodInt;
|
|
3036
|
+
totalFiles: z.ZodInt;
|
|
3037
|
+
touchCount: z.ZodInt;
|
|
3038
|
+
}, z.core.$strip>>>;
|
|
3039
|
+
structureEdges: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3040
|
+
count: z.ZodInt;
|
|
3041
|
+
from: z.ZodString;
|
|
3042
|
+
to: z.ZodString;
|
|
3043
|
+
}, z.core.$strip>>>;
|
|
3044
|
+
}, z.core.$strip>;
|
|
3045
|
+
unrecordedCommits: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3046
|
+
associations: z.ZodArray<z.ZodObject<{
|
|
3047
|
+
conclusion: z.ZodEnum<{
|
|
3048
|
+
candidate: "candidate";
|
|
3049
|
+
confirmed: "confirmed";
|
|
3050
|
+
}>;
|
|
3051
|
+
confidence: z.ZodEnum<{
|
|
3052
|
+
high: "high";
|
|
3053
|
+
low: "low";
|
|
3054
|
+
medium: "medium";
|
|
3055
|
+
}>;
|
|
3056
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
3057
|
+
branchName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3058
|
+
kind: z.ZodEnum<{
|
|
3059
|
+
recorded_commit: "recorded_commit";
|
|
3060
|
+
touched_file: "touched_file";
|
|
3061
|
+
branch_membership: "branch_membership";
|
|
3062
|
+
time_window: "time_window";
|
|
3063
|
+
}>;
|
|
3064
|
+
recordedCommitHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3065
|
+
touchedFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3066
|
+
windowEndMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3067
|
+
windowStartMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3068
|
+
}, z.core.$strip>>;
|
|
3069
|
+
id: z.ZodString;
|
|
3070
|
+
sessionId: z.ZodString;
|
|
3071
|
+
}, z.core.$strip>>;
|
|
3072
|
+
hasSession: z.ZodBoolean;
|
|
3073
|
+
hash: z.ZodString;
|
|
3074
|
+
sessionIds: z.ZodArray<z.ZodString>;
|
|
3075
|
+
subject: z.ZodString;
|
|
3076
|
+
timeMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3077
|
+
}, z.core.$strip>>>;
|
|
3078
|
+
unusual: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3079
|
+
kind: z.ZodString;
|
|
3080
|
+
label: z.ZodString;
|
|
3081
|
+
perChange: z.ZodNumber;
|
|
3082
|
+
perProject: z.ZodNumber;
|
|
3083
|
+
}, z.core.$strip>>>;
|
|
3084
|
+
violations: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3085
|
+
from: z.ZodString;
|
|
3086
|
+
kind: z.ZodEnum<{
|
|
3087
|
+
cycle: "cycle";
|
|
3088
|
+
wrong_way: "wrong_way";
|
|
3089
|
+
}>;
|
|
3090
|
+
to: z.ZodString;
|
|
3091
|
+
}, z.core.$strip>>>;
|
|
3092
|
+
work: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3093
|
+
binding: z.ZodEnum<{
|
|
3094
|
+
candidate: "candidate";
|
|
3095
|
+
bound: "bound";
|
|
3096
|
+
}>;
|
|
3097
|
+
harness: z.ZodString;
|
|
3098
|
+
sessionId: z.ZodString;
|
|
3099
|
+
startMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3100
|
+
tasks: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3101
|
+
editedFiles: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
3102
|
+
entryIndex: z.ZodInt;
|
|
3103
|
+
labels: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
3104
|
+
outcome: z.ZodOptional<z.ZodString>;
|
|
3105
|
+
readCount: z.ZodInt;
|
|
3106
|
+
readFiles: z.ZodArray<z.ZodString>;
|
|
3107
|
+
retryLoop: z.ZodBoolean;
|
|
3108
|
+
sessionId: z.ZodString;
|
|
3109
|
+
startMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3110
|
+
title: z.ZodString;
|
|
3111
|
+
}, z.core.$strip>>>;
|
|
3112
|
+
title: z.ZodString;
|
|
3113
|
+
}, z.core.$strip>>>;
|
|
3114
|
+
}, z.core.$strip>;
|
|
3115
|
+
export type ChangeDetailPayload = z.infer<typeof zChangeDetailPayload>;
|
|
3116
|
+
/**
|
|
3117
|
+
* Value Domain Kind
|
|
3118
|
+
*
|
|
3119
|
+
* ISO 11179 value domain: enumerated (finite allowed set) or described (range/pattern constraint)
|
|
3120
|
+
*/
|
|
3121
|
+
export declare const zValueDomainKind: z.ZodEnum<{
|
|
3122
|
+
enumerated: "enumerated";
|
|
3123
|
+
described: "described";
|
|
3124
|
+
}>;
|
|
3125
|
+
export type ValueDomainKind = z.infer<typeof zValueDomainKind>;
|
|
3126
|
+
export declare const zValueDomain: z.ZodObject<{
|
|
3127
|
+
constraintSpec: z.ZodOptional<z.ZodString>;
|
|
3128
|
+
datatype: z.ZodEnum<{
|
|
3129
|
+
boolean: "boolean";
|
|
3130
|
+
real: "real";
|
|
3131
|
+
text: "text";
|
|
3132
|
+
integer: "integer";
|
|
3133
|
+
}>;
|
|
3134
|
+
kind: z.ZodEnum<{
|
|
3135
|
+
enumerated: "enumerated";
|
|
3136
|
+
described: "described";
|
|
3137
|
+
}>;
|
|
3138
|
+
permissibleValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3139
|
+
}, z.core.$strip>;
|
|
3140
|
+
export type ValueDomain = z.infer<typeof zValueDomain>;
|
|
3141
|
+
export declare const zAnnotationTypeSummary: z.ZodObject<{
|
|
3142
|
+
allowedTargetKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3143
|
+
session: "session";
|
|
3144
|
+
annotation: "annotation";
|
|
3145
|
+
project: "project";
|
|
3146
|
+
entry: "entry";
|
|
3147
|
+
file_version: "file_version";
|
|
3148
|
+
association: "association";
|
|
3149
|
+
}>>>;
|
|
3150
|
+
class: z.ZodString;
|
|
3151
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3152
|
+
displayName: z.ZodString;
|
|
3153
|
+
family: z.ZodString;
|
|
3154
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3155
|
+
lowerIsBetter: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3156
|
+
origin: z.ZodEnum<{
|
|
3157
|
+
user: "user";
|
|
3158
|
+
group: "group";
|
|
3159
|
+
system: "system";
|
|
3160
|
+
}>;
|
|
3161
|
+
priorityOverride: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3162
|
+
scaleKind: z.ZodOptional<z.ZodEnum<{
|
|
3163
|
+
ordinal: "ordinal";
|
|
3164
|
+
nominal: "nominal";
|
|
3165
|
+
continuous: "continuous";
|
|
3166
|
+
}>>;
|
|
3167
|
+
status: z.ZodEnum<{
|
|
3168
|
+
active: "active";
|
|
3169
|
+
deprecated: "deprecated";
|
|
3170
|
+
proposed: "proposed";
|
|
3171
|
+
retired: "retired";
|
|
3172
|
+
}>;
|
|
3173
|
+
typeId: z.ZodString;
|
|
3174
|
+
valueDomain: z.ZodObject<{
|
|
3175
|
+
constraintSpec: z.ZodOptional<z.ZodString>;
|
|
3176
|
+
datatype: z.ZodEnum<{
|
|
3177
|
+
boolean: "boolean";
|
|
3178
|
+
real: "real";
|
|
3179
|
+
text: "text";
|
|
3180
|
+
integer: "integer";
|
|
3181
|
+
}>;
|
|
3182
|
+
kind: z.ZodEnum<{
|
|
3183
|
+
enumerated: "enumerated";
|
|
3184
|
+
described: "described";
|
|
3185
|
+
}>;
|
|
3186
|
+
permissibleValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3187
|
+
}, z.core.$strip>;
|
|
3188
|
+
version: z.ZodInt;
|
|
3189
|
+
}, z.core.$strip>;
|
|
3190
|
+
export type AnnotationTypeSummary = z.infer<typeof zAnnotationTypeSummary>;
|
|
3191
|
+
export declare const zTaxonomyFamilyNode: z.ZodObject<{
|
|
3192
|
+
family: z.ZodString;
|
|
3193
|
+
types: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3194
|
+
allowedTargetKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3195
|
+
session: "session";
|
|
3196
|
+
annotation: "annotation";
|
|
3197
|
+
project: "project";
|
|
3198
|
+
entry: "entry";
|
|
3199
|
+
file_version: "file_version";
|
|
3200
|
+
association: "association";
|
|
3201
|
+
}>>>;
|
|
3202
|
+
class: z.ZodString;
|
|
3203
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3204
|
+
displayName: z.ZodString;
|
|
3205
|
+
family: z.ZodString;
|
|
3206
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3207
|
+
lowerIsBetter: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3208
|
+
origin: z.ZodEnum<{
|
|
3209
|
+
user: "user";
|
|
3210
|
+
group: "group";
|
|
3211
|
+
system: "system";
|
|
3212
|
+
}>;
|
|
3213
|
+
priorityOverride: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3214
|
+
scaleKind: z.ZodOptional<z.ZodEnum<{
|
|
3215
|
+
ordinal: "ordinal";
|
|
3216
|
+
nominal: "nominal";
|
|
3217
|
+
continuous: "continuous";
|
|
3218
|
+
}>>;
|
|
3219
|
+
status: z.ZodEnum<{
|
|
3220
|
+
active: "active";
|
|
3221
|
+
deprecated: "deprecated";
|
|
3222
|
+
proposed: "proposed";
|
|
3223
|
+
retired: "retired";
|
|
3224
|
+
}>;
|
|
3225
|
+
typeId: z.ZodString;
|
|
3226
|
+
valueDomain: z.ZodObject<{
|
|
3227
|
+
constraintSpec: z.ZodOptional<z.ZodString>;
|
|
3228
|
+
datatype: z.ZodEnum<{
|
|
3229
|
+
boolean: "boolean";
|
|
3230
|
+
real: "real";
|
|
3231
|
+
text: "text";
|
|
3232
|
+
integer: "integer";
|
|
3233
|
+
}>;
|
|
3234
|
+
kind: z.ZodEnum<{
|
|
3235
|
+
enumerated: "enumerated";
|
|
3236
|
+
described: "described";
|
|
3237
|
+
}>;
|
|
3238
|
+
permissibleValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3239
|
+
}, z.core.$strip>;
|
|
3240
|
+
version: z.ZodInt;
|
|
3241
|
+
}, z.core.$strip>>>;
|
|
3242
|
+
}, z.core.$strip>;
|
|
3243
|
+
export type TaxonomyFamilyNode = z.infer<typeof zTaxonomyFamilyNode>;
|
|
3244
|
+
export declare const zTaxonomyNode: z.ZodObject<{
|
|
3245
|
+
class: z.ZodString;
|
|
3246
|
+
families: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3247
|
+
family: z.ZodString;
|
|
3248
|
+
types: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3249
|
+
allowedTargetKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3250
|
+
session: "session";
|
|
3251
|
+
annotation: "annotation";
|
|
3252
|
+
project: "project";
|
|
3253
|
+
entry: "entry";
|
|
3254
|
+
file_version: "file_version";
|
|
3255
|
+
association: "association";
|
|
3256
|
+
}>>>;
|
|
3257
|
+
class: z.ZodString;
|
|
3258
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3259
|
+
displayName: z.ZodString;
|
|
3260
|
+
family: z.ZodString;
|
|
3261
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3262
|
+
lowerIsBetter: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3263
|
+
origin: z.ZodEnum<{
|
|
3264
|
+
user: "user";
|
|
3265
|
+
group: "group";
|
|
3266
|
+
system: "system";
|
|
3267
|
+
}>;
|
|
3268
|
+
priorityOverride: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3269
|
+
scaleKind: z.ZodOptional<z.ZodEnum<{
|
|
3270
|
+
ordinal: "ordinal";
|
|
3271
|
+
nominal: "nominal";
|
|
3272
|
+
continuous: "continuous";
|
|
3273
|
+
}>>;
|
|
3274
|
+
status: z.ZodEnum<{
|
|
3275
|
+
active: "active";
|
|
3276
|
+
deprecated: "deprecated";
|
|
3277
|
+
proposed: "proposed";
|
|
3278
|
+
retired: "retired";
|
|
3279
|
+
}>;
|
|
3280
|
+
typeId: z.ZodString;
|
|
3281
|
+
valueDomain: z.ZodObject<{
|
|
3282
|
+
constraintSpec: z.ZodOptional<z.ZodString>;
|
|
3283
|
+
datatype: z.ZodEnum<{
|
|
3284
|
+
boolean: "boolean";
|
|
3285
|
+
real: "real";
|
|
3286
|
+
text: "text";
|
|
3287
|
+
integer: "integer";
|
|
3288
|
+
}>;
|
|
3289
|
+
kind: z.ZodEnum<{
|
|
3290
|
+
enumerated: "enumerated";
|
|
3291
|
+
described: "described";
|
|
3292
|
+
}>;
|
|
3293
|
+
permissibleValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3294
|
+
}, z.core.$strip>;
|
|
3295
|
+
version: z.ZodInt;
|
|
3296
|
+
}, z.core.$strip>>>;
|
|
3297
|
+
}, z.core.$strip>>>;
|
|
3298
|
+
}, z.core.$strip>;
|
|
3299
|
+
export type TaxonomyNode = z.infer<typeof zTaxonomyNode>;
|
|
3300
|
+
/**
|
|
3301
|
+
* Visibility
|
|
3302
|
+
*
|
|
3303
|
+
* Access control level for a published transcript
|
|
3304
|
+
*/
|
|
3305
|
+
export declare const zVisibility: z.ZodEnum<{
|
|
3306
|
+
private: "private";
|
|
3307
|
+
public: "public";
|
|
3308
|
+
group: "group";
|
|
3309
|
+
}>;
|
|
3310
|
+
export type Visibility = z.infer<typeof zVisibility>;
|
|
3311
|
+
export declare const zPullTranscriptInfo: z.ZodObject<{
|
|
3312
|
+
annotationCount: z.ZodInt;
|
|
3313
|
+
contentHash: z.ZodOptional<z.ZodString>;
|
|
3314
|
+
contractVersion: z.ZodOptional<z.ZodString>;
|
|
3315
|
+
harness: z.ZodOptional<z.ZodEnum<{
|
|
3316
|
+
strike: "strike";
|
|
3317
|
+
cursor: "cursor";
|
|
3318
|
+
"claude-code": "claude-code";
|
|
3319
|
+
"gemini-cli": "gemini-cli";
|
|
3320
|
+
codex: "codex";
|
|
3321
|
+
opencode: "opencode";
|
|
3322
|
+
antigravity: "antigravity";
|
|
3323
|
+
}>>;
|
|
3324
|
+
license: z.ZodOptional<z.ZodEnum<{
|
|
3325
|
+
"CC0-1.0": "CC0-1.0";
|
|
3326
|
+
"CC-BY-4.0": "CC-BY-4.0";
|
|
3327
|
+
"CC-BY-SA-4.0": "CC-BY-SA-4.0";
|
|
3328
|
+
}>>;
|
|
3329
|
+
localId: z.ZodOptional<z.ZodString>;
|
|
3330
|
+
ownerUserId: z.ZodString;
|
|
3331
|
+
ownerUsername: z.ZodString;
|
|
3332
|
+
projectName: z.ZodOptional<z.ZodString>;
|
|
3333
|
+
publishedAt: z.ZodCoercedBigInt<unknown>;
|
|
3334
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3335
|
+
transcriptId: z.ZodUUID;
|
|
3336
|
+
updatedAt: z.ZodCoercedBigInt<unknown>;
|
|
3337
|
+
visibility: z.ZodEnum<{
|
|
3338
|
+
private: "private";
|
|
3339
|
+
public: "public";
|
|
3340
|
+
group: "group";
|
|
3341
|
+
}>;
|
|
3342
|
+
}, z.core.$strip>;
|
|
3343
|
+
export type PullTranscriptInfo = z.infer<typeof zPullTranscriptInfo>;
|
|
3344
|
+
export declare const zPullListResponse: z.ZodObject<{
|
|
3345
|
+
limit: z.ZodInt;
|
|
3346
|
+
page: z.ZodInt;
|
|
3347
|
+
total: z.ZodInt;
|
|
3348
|
+
transcripts: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3349
|
+
annotationCount: z.ZodInt;
|
|
3350
|
+
contentHash: z.ZodOptional<z.ZodString>;
|
|
3351
|
+
contractVersion: z.ZodOptional<z.ZodString>;
|
|
3352
|
+
harness: z.ZodOptional<z.ZodEnum<{
|
|
3353
|
+
strike: "strike";
|
|
3354
|
+
cursor: "cursor";
|
|
3355
|
+
"claude-code": "claude-code";
|
|
3356
|
+
"gemini-cli": "gemini-cli";
|
|
3357
|
+
codex: "codex";
|
|
3358
|
+
opencode: "opencode";
|
|
3359
|
+
antigravity: "antigravity";
|
|
3360
|
+
}>>;
|
|
3361
|
+
license: z.ZodOptional<z.ZodEnum<{
|
|
3362
|
+
"CC0-1.0": "CC0-1.0";
|
|
3363
|
+
"CC-BY-4.0": "CC-BY-4.0";
|
|
3364
|
+
"CC-BY-SA-4.0": "CC-BY-SA-4.0";
|
|
3365
|
+
}>>;
|
|
3366
|
+
localId: z.ZodOptional<z.ZodString>;
|
|
3367
|
+
ownerUserId: z.ZodString;
|
|
3368
|
+
ownerUsername: z.ZodString;
|
|
3369
|
+
projectName: z.ZodOptional<z.ZodString>;
|
|
3370
|
+
publishedAt: z.ZodCoercedBigInt<unknown>;
|
|
3371
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3372
|
+
transcriptId: z.ZodUUID;
|
|
3373
|
+
updatedAt: z.ZodCoercedBigInt<unknown>;
|
|
3374
|
+
visibility: z.ZodEnum<{
|
|
3375
|
+
private: "private";
|
|
3376
|
+
public: "public";
|
|
3377
|
+
group: "group";
|
|
3378
|
+
}>;
|
|
3379
|
+
}, z.core.$strip>>>;
|
|
3380
|
+
}, z.core.$strip>;
|
|
3381
|
+
export type PullListResponse = z.infer<typeof zPullListResponse>;
|
|
3382
|
+
export declare const zWalkthroughStep: z.ZodObject<{
|
|
3383
|
+
excerpt: z.ZodString;
|
|
3384
|
+
file: z.ZodString;
|
|
3385
|
+
line: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3386
|
+
}, z.core.$strip>;
|
|
3387
|
+
export type WalkthroughStep = z.infer<typeof zWalkthroughStep>;
|
|
3388
|
+
export declare const zWalkthroughTrail: z.ZodObject<{
|
|
3389
|
+
date: z.ZodString;
|
|
3390
|
+
isCoherent: z.ZodBoolean;
|
|
3391
|
+
sessionId: z.ZodString;
|
|
3392
|
+
steps: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3393
|
+
excerpt: z.ZodString;
|
|
3394
|
+
file: z.ZodString;
|
|
3395
|
+
line: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3396
|
+
}, z.core.$strip>>>;
|
|
3397
|
+
title: z.ZodString;
|
|
3398
|
+
turnCount: z.ZodInt;
|
|
3399
|
+
}, z.core.$strip>;
|
|
3400
|
+
export type WalkthroughTrail = z.infer<typeof zWalkthroughTrail>;
|
|
3401
|
+
export declare const zFamiliarityPayload: z.ZodObject<{
|
|
3402
|
+
familiarityPct: z.ZodNumber;
|
|
3403
|
+
files: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3404
|
+
daysSince: z.ZodNullable<z.ZodInt>;
|
|
3405
|
+
decayLevel: z.ZodEnum<{
|
|
3406
|
+
fresh: "fresh";
|
|
3407
|
+
fading: "fading";
|
|
3408
|
+
stale: "stale";
|
|
3409
|
+
unexplored: "unexplored";
|
|
3410
|
+
}>;
|
|
3411
|
+
depth: z.ZodInt;
|
|
3412
|
+
humanTurns: z.ZodInt;
|
|
3413
|
+
isSourceFile: z.ZodBoolean;
|
|
3414
|
+
lastEngagedAt: z.ZodNullable<z.ZodString>;
|
|
3415
|
+
path: z.ZodString;
|
|
3416
|
+
sessionCount: z.ZodInt;
|
|
3417
|
+
totalTurns: z.ZodInt;
|
|
3418
|
+
}, z.core.$strip>>>;
|
|
3419
|
+
freshnessDays: z.ZodNullable<z.ZodInt>;
|
|
3420
|
+
projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
|
|
3421
|
+
suggestions: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3422
|
+
daysSince: z.ZodInt;
|
|
3423
|
+
lastEngaged: z.ZodString;
|
|
3424
|
+
path: z.ZodString;
|
|
3425
|
+
suggestedPrompt: z.ZodString;
|
|
3426
|
+
}, z.core.$strip>>>;
|
|
3427
|
+
trails: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3428
|
+
date: z.ZodString;
|
|
3429
|
+
isCoherent: z.ZodBoolean;
|
|
3430
|
+
sessionId: z.ZodString;
|
|
3431
|
+
steps: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3432
|
+
excerpt: z.ZodString;
|
|
3433
|
+
file: z.ZodString;
|
|
3434
|
+
line: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3435
|
+
}, z.core.$strip>>>;
|
|
3436
|
+
title: z.ZodString;
|
|
3437
|
+
turnCount: z.ZodInt;
|
|
3438
|
+
}, z.core.$strip>>>;
|
|
3439
|
+
unexploredCount: z.ZodInt;
|
|
3440
|
+
}, z.core.$strip>;
|
|
3441
|
+
export type FamiliarityPayload = z.infer<typeof zFamiliarityPayload>;
|