@vercel/factory 0.0.16 → 0.0.18
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/CHANGELOG.md +52 -0
- package/dist/api-contracts.d.mts +665 -715
- package/dist/api-contracts.mjs +91 -4
- package/dist/api-contracts.mjs.map +1 -1
- package/dist/api-task-graph.mjs +14 -5
- package/dist/api-task-graph.mjs.map +1 -1
- package/dist/api.d.mts +58 -11
- package/dist/api.mjs +715 -399
- package/dist/api.mjs.map +1 -1
- package/dist/approval-access.d.mts +1 -1
- package/dist/approval-contracts.d.mts +3 -4
- package/dist/approval-contracts.mjs +1 -2
- package/dist/approval-contracts.mjs.map +1 -1
- package/dist/blob/index.d.mts +1 -1
- package/dist/budget.mjs +20 -3
- package/dist/budget.mjs.map +1 -1
- package/dist/change-verification/brief.d.mts +1 -1
- package/dist/change-verification/dispatch.mjs +8 -1
- package/dist/change-verification/dispatch.mjs.map +1 -1
- package/dist/changes/eve-record-change.mjs +4 -1
- package/dist/changes/eve-record-change.mjs.map +1 -1
- package/dist/client-stream.d.mts +19 -2
- package/dist/client-stream.mjs +115 -53
- package/dist/client-stream.mjs.map +1 -1
- package/dist/client-transcript.d.mts +25 -2
- package/dist/client-transcript.mjs +95 -13
- package/dist/client-transcript.mjs.map +1 -1
- package/dist/client.d.mts +145 -19
- package/dist/client.mjs +89 -16
- package/dist/client.mjs.map +1 -1
- package/dist/code-review/contracts.d.mts +1 -0
- package/dist/code-review/eve-post-review.d.mts +4 -2
- package/dist/code-review/eve-post-review.mjs +8 -0
- package/dist/code-review/eve-post-review.mjs.map +1 -1
- package/dist/code-review/github-reporter.d.mts +6 -2
- package/dist/code-review/github-reporter.mjs +86 -35
- package/dist/code-review/github-reporter.mjs.map +1 -1
- package/dist/code-review/preparation.d.mts +2 -1
- package/dist/code-review/preparation.mjs +2 -1
- package/dist/code-review/preparation.mjs.map +1 -1
- package/dist/code-review/stall.mjs +11 -2
- package/dist/code-review/stall.mjs.map +1 -1
- package/dist/connectors/github.d.mts +1 -1
- package/dist/connectors/index.d.mts +1 -1
- package/dist/connectors/slack.d.mts +1 -1
- package/dist/delivery-metrics/metrics.d.mts +1 -1
- package/dist/dispatch.mjs +3 -3
- package/dist/dispatch.mjs.map +1 -1
- package/dist/eve/index.d.mts +1 -1
- package/dist/eve/index.mjs +8 -1
- package/dist/eve/index.mjs.map +1 -1
- package/dist/eve/task-execution.d.mts +4 -4
- package/dist/eve/transcript.d.mts +3 -1
- package/dist/eve/transcript.mjs.map +1 -1
- package/dist/finding-remediation/admission.d.mts +1 -1
- package/dist/finding-remediation/brief.d.mts +1 -1
- package/dist/github-app.d.mts +1 -1
- package/dist/github-publication.d.mts +1 -1
- package/dist/github.d.mts +9 -1
- package/dist/github.mjs +29 -11
- package/dist/github.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/intake-contracts.d.mts +1 -0
- package/dist/intake-contracts.mjs +2 -1
- package/dist/intake-contracts.mjs.map +1 -1
- package/dist/integrations/github-issues.d.mts +53 -0
- package/dist/integrations/github-issues.mjs +170 -0
- package/dist/integrations/github-issues.mjs.map +1 -0
- package/dist/integrations/github.d.mts +2 -1
- package/dist/integrations/github.mjs +2 -1
- package/dist/multi-repository-changes/coordination.mjs +1 -1
- package/dist/planning/reconcile.mjs +15 -2
- package/dist/planning/reconcile.mjs.map +1 -1
- package/dist/postgres/index.d.mts +2 -1
- package/dist/postgres/index.mjs +11 -5
- package/dist/postgres/index.mjs.map +1 -1
- package/dist/postgres/indexed-codec.mjs +137 -0
- package/dist/postgres/indexed-codec.mjs.map +1 -0
- package/dist/postgres/indexed-schema.mjs +99 -0
- package/dist/postgres/indexed-schema.mjs.map +1 -0
- package/dist/postgres/indexed.d.mts +28 -0
- package/dist/postgres/indexed.mjs +277 -0
- package/dist/postgres/indexed.mjs.map +1 -0
- package/dist/postgres/record-predicates.mjs +23 -0
- package/dist/postgres/record-predicates.mjs.map +1 -0
- package/dist/presets/software-development/deepsec-brief.d.mts +1 -1
- package/dist/presets/software-development/dispatch.mjs +1 -1
- package/dist/presets/software-development/dispatch.mjs.map +1 -1
- package/dist/presets/software-development/recovery.mjs +9 -2
- package/dist/presets/software-development/recovery.mjs.map +1 -1
- package/dist/pull-requests/eve-fetch.d.mts +4 -1
- package/dist/pull-requests/eve-fetch.mjs +9 -0
- package/dist/pull-requests/eve-fetch.mjs.map +1 -1
- package/dist/pull-requests/github-publisher.d.mts +1 -1
- package/dist/pull-requests/github-publisher.mjs +19 -7
- package/dist/pull-requests/github-publisher.mjs.map +1 -1
- package/dist/repositories.mjs +20 -13
- package/dist/repositories.mjs.map +1 -1
- package/dist/sandbox/execution-run-ledger.d.mts +2 -2
- package/dist/sandbox/execution-run-ledger.mjs.map +1 -1
- package/dist/sandbox/execution.d.mts +2 -2
- package/dist/sandbox/execution.mjs.map +1 -1
- package/dist/schema/catalog.mjs +1 -1
- package/dist/schema/change.d.mts +1 -1
- package/dist/schema/communication.d.mts +2 -2
- package/dist/schema/factory-config.d.mts +1 -1
- package/dist/schema/outbox.d.mts +6 -6
- package/dist/schema/session-summary.d.mts +218 -0
- package/dist/schema/session-summary.mjs +68 -0
- package/dist/schema/session-summary.mjs.map +1 -0
- package/dist/schema/session.d.mts +39 -59
- package/dist/schema/session.mjs +6 -6
- package/dist/schema/session.mjs.map +1 -1
- package/dist/schema/task-graph.d.mts +24 -24
- package/dist/schema/transcript.d.mts +141 -3
- package/dist/schema/transcript.mjs +19 -3
- package/dist/schema/transcript.mjs.map +1 -1
- package/dist/schema/transitions.d.mts +1 -1
- package/dist/schema/transitions.mjs +1 -1
- package/dist/schema/transitions.mjs.map +1 -1
- package/dist/signals.d.mts +1 -1
- package/dist/stall.mjs +10 -2
- package/dist/stall.mjs.map +1 -1
- package/dist/storage.d.mts +10 -1
- package/dist/storage.mjs +7 -1
- package/dist/store/approvals.d.mts +14 -0
- package/dist/store/approvals.mjs +78 -0
- package/dist/store/approvals.mjs.map +1 -0
- package/dist/store/conversations.d.mts +59 -0
- package/dist/store/conversations.mjs +549 -0
- package/dist/store/conversations.mjs.map +1 -0
- package/dist/store/driver.d.mts +1 -1
- package/dist/store/driver.mjs.map +1 -1
- package/dist/store/engine.d.mts +38 -16
- package/dist/store/engine.mjs +229 -106
- package/dist/store/engine.mjs.map +1 -1
- package/dist/store/indexed-engine.d.mts +57 -0
- package/dist/store/indexed-engine.mjs +155 -0
- package/dist/store/indexed-engine.mjs.map +1 -0
- package/dist/store/indexed-memory.d.mts +7 -0
- package/dist/store/indexed-memory.mjs +200 -0
- package/dist/store/indexed-memory.mjs.map +1 -0
- package/dist/store/indexed-projections.d.mts +280 -0
- package/dist/store/indexed-projections.mjs +481 -0
- package/dist/store/indexed-projections.mjs.map +1 -0
- package/dist/store/indexed.d.mts +101 -0
- package/dist/store/indexed.mjs +19 -0
- package/dist/store/indexed.mjs.map +1 -0
- package/dist/store/iterate.d.mts +9 -0
- package/dist/store/iterate.mjs +23 -0
- package/dist/store/iterate.mjs.map +1 -0
- package/dist/store/query-scope.mjs +62 -0
- package/dist/store/query-scope.mjs.map +1 -0
- package/dist/store/query.d.mts +32 -0
- package/dist/store/query.mjs +103 -0
- package/dist/store/query.mjs.map +1 -0
- package/dist/store/session-history.mjs +24 -0
- package/dist/store/session-history.mjs.map +1 -0
- package/dist/store/slack-pr-notifications.d.mts +2 -2
- package/dist/store/slack-pr-notifications.mjs.map +1 -1
- package/dist/store/state.d.mts +26 -0
- package/dist/store/state.mjs +95 -0
- package/dist/store/state.mjs.map +1 -0
- package/dist/store/task-effects.d.mts +1 -1
- package/dist/store/task-graphs.d.mts +1 -1
- package/dist/store/task-messages.d.mts +1 -1
- package/dist/store/task-work.d.mts +1 -1
- package/dist/store/task-work.mjs +1 -1
- package/dist/store/transcripts.mjs +308 -0
- package/dist/store/transcripts.mjs.map +1 -0
- package/dist/sweep.d.mts +1 -1
- package/dist/sweep.mjs +12 -7
- package/dist/sweep.mjs.map +1 -1
- package/dist/task-communication.mjs +15 -1
- package/dist/task-communication.mjs.map +1 -1
- package/dist/task-protocols.d.mts +3 -3
- package/dist/tasks.d.mts +1 -1
- package/dist/vercel.d.mts +1 -1
- package/dist/work-triage/find-existing-work.d.mts +1 -1
- package/dist/work-triage/find-existing-work.mjs +12 -2
- package/dist/work-triage/find-existing-work.mjs.map +1 -1
- package/docs/index.md +4 -0
- package/docs/recipes/persistence-recovery.md +15 -9
- package/docs/recipes/postgres-indexed-engine.md +108 -0
- package/docs/recipes/postgres-indexed-storage.md +145 -0
- package/package.json +6 -1
package/dist/api-contracts.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ChangeId, TaskId } from "./schema/id.mjs";
|
|
2
|
-
import { RepositorySlug } from "./schema/repository.mjs";
|
|
3
2
|
import { AgentRouteBinding, AgentRouteBindingInput } from "./schema/agent-route.mjs";
|
|
4
3
|
import { JsonValue } from "./schema/work.mjs";
|
|
5
4
|
import { Task, TaskKind } from "./schema/task.mjs";
|
|
6
5
|
import "./workflows.mjs";
|
|
7
6
|
import { ImageAttachment } from "./image-input.mjs";
|
|
8
7
|
import { AgentSession } from "./schema/session.mjs";
|
|
8
|
+
import { RepositorySlug } from "./schema/repository.mjs";
|
|
9
9
|
import "./tasks.mjs";
|
|
10
10
|
import "./client.mjs";
|
|
11
11
|
import { z } from "zod";
|
|
@@ -131,9 +131,417 @@ interface AnswerSessionQuestionRequest {
|
|
|
131
131
|
readonly questionId: TaskId;
|
|
132
132
|
readonly answer: string;
|
|
133
133
|
}
|
|
134
|
+
/** Validates an operator conversation card with read-only finding metadata for approval work. */
|
|
135
|
+
declare const sessionSummarySchema: z.ZodObject<{
|
|
136
|
+
session: z.ZodObject<{
|
|
137
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
138
|
+
id: z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
139
|
+
owner: z.ZodString;
|
|
140
|
+
agent: z.ZodString;
|
|
141
|
+
repositoryId: z.ZodOptional<z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>;
|
|
142
|
+
route: z.ZodOptional<z.core.$ZodBranded<z.ZodObject<{
|
|
143
|
+
id: z.ZodString;
|
|
144
|
+
version: z.ZodNumber;
|
|
145
|
+
}, z.core.$strict>, "AgentRouteBinding", "out">>;
|
|
146
|
+
model: z.ZodOptional<z.ZodString>;
|
|
147
|
+
attachments: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
148
|
+
id: z.ZodType<`img_${string}`, string, z.core.$ZodTypeInternals<`img_${string}`, string>>;
|
|
149
|
+
filename: z.ZodString;
|
|
150
|
+
mediaType: z.ZodEnum<{
|
|
151
|
+
"image/png": "image/png";
|
|
152
|
+
"image/jpeg": "image/jpeg";
|
|
153
|
+
"image/webp": "image/webp";
|
|
154
|
+
}>;
|
|
155
|
+
size: z.ZodNumber;
|
|
156
|
+
}, z.core.$strict>>>>;
|
|
157
|
+
changeId: z.ZodOptional<z.ZodType<`chg_${string}`, string, z.core.$ZodTypeInternals<`chg_${string}`, string>>>;
|
|
158
|
+
taskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
159
|
+
attached: z.ZodOptional<z.ZodBoolean>;
|
|
160
|
+
latestContinuationId: z.ZodOptional<z.ZodString>;
|
|
161
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
162
|
+
provider: z.ZodString;
|
|
163
|
+
sessionId: z.ZodString;
|
|
164
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
165
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
166
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
167
|
+
}, z.core.$strict>>;
|
|
168
|
+
external: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
169
|
+
replyTo: z.ZodObject<{
|
|
170
|
+
channel: z.ZodString;
|
|
171
|
+
address: z.ZodString;
|
|
172
|
+
}, z.core.$strict>;
|
|
173
|
+
repositoryIds: z.ZodReadonly<z.ZodTuple<[z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>], z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>>;
|
|
174
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
175
|
+
}, z.core.$strict>>>;
|
|
176
|
+
latestNotificationId: z.ZodOptional<z.ZodString>;
|
|
177
|
+
createdAt: z.ZodISODateTime;
|
|
178
|
+
message: z.ZodString;
|
|
179
|
+
}, z.core.$strip>;
|
|
180
|
+
task: z.ZodNullable<z.ZodObject<{
|
|
181
|
+
id: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
182
|
+
replyTo: z.ZodObject<{
|
|
183
|
+
channel: z.ZodString;
|
|
184
|
+
address: z.ZodString;
|
|
185
|
+
}, z.core.$strict>;
|
|
186
|
+
attempt: z.ZodNumber;
|
|
187
|
+
state: z.ZodEnum<{
|
|
188
|
+
queued: "queued";
|
|
189
|
+
running: "running";
|
|
190
|
+
stalled: "stalled";
|
|
191
|
+
verifying: "verifying";
|
|
192
|
+
succeeded: "succeeded";
|
|
193
|
+
failed: "failed";
|
|
194
|
+
needs_human: "needs_human";
|
|
195
|
+
cancelled: "cancelled";
|
|
196
|
+
}>;
|
|
197
|
+
updatedAt: z.ZodISODateTime;
|
|
198
|
+
createdAt: z.ZodISODateTime;
|
|
199
|
+
repositoryIds: z.ZodReadonly<z.ZodTuple<[z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>], z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>>;
|
|
200
|
+
kind: z.ZodType<TaskKind, unknown, z.core.$ZodTypeInternals<TaskKind, unknown>>;
|
|
201
|
+
approval: z.ZodOptional<z.ZodEnum<{
|
|
202
|
+
required: "required";
|
|
203
|
+
granted: "granted";
|
|
204
|
+
denied: "denied";
|
|
205
|
+
}>>;
|
|
206
|
+
rootTaskId: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
207
|
+
parentTaskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
208
|
+
stalledReason: z.ZodOptional<z.ZodString>;
|
|
209
|
+
needsHumanAction: z.ZodOptional<z.ZodString>;
|
|
210
|
+
changeId: z.ZodOptional<z.ZodType<`chg_${string}`, string, z.core.$ZodTypeInternals<`chg_${string}`, string>>>;
|
|
211
|
+
work: z.ZodObject<{
|
|
212
|
+
title: z.ZodString;
|
|
213
|
+
route: z.ZodOptional<z.core.$ZodBranded<z.ZodObject<{
|
|
214
|
+
id: z.ZodString;
|
|
215
|
+
version: z.ZodNumber;
|
|
216
|
+
}, z.core.$strict>, "AgentRouteBinding", "out">>;
|
|
217
|
+
}, z.core.$strip>;
|
|
218
|
+
}, z.core.$strip>>;
|
|
219
|
+
question: z.ZodNullable<z.ZodObject<{
|
|
220
|
+
id: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
221
|
+
updatedAt: z.ZodISODateTime;
|
|
222
|
+
question: z.ZodOptional<z.ZodObject<{
|
|
223
|
+
text: z.ZodString;
|
|
224
|
+
options: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
225
|
+
closingOptions: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
226
|
+
answer: z.ZodOptional<z.ZodString>;
|
|
227
|
+
answeredBy: z.ZodOptional<z.ZodString>;
|
|
228
|
+
}, z.core.$strict>>;
|
|
229
|
+
}, z.core.$strip>>;
|
|
230
|
+
execution: z.ZodNullable<z.ZodObject<{
|
|
231
|
+
provider: z.ZodString;
|
|
232
|
+
sessionId: z.ZodString;
|
|
233
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
234
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
235
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
236
|
+
}, z.core.$strict>>;
|
|
237
|
+
activeAgent: z.ZodOptional<z.ZodString>;
|
|
238
|
+
source: z.ZodOptional<z.ZodString>;
|
|
239
|
+
prUrl: z.ZodOptional<z.ZodString>;
|
|
240
|
+
attention: z.ZodOptional<z.ZodEnum<{
|
|
241
|
+
stalled: "stalled";
|
|
242
|
+
failed: "failed";
|
|
243
|
+
question: "question";
|
|
244
|
+
review: "review";
|
|
245
|
+
conversation: "conversation";
|
|
246
|
+
}>>;
|
|
247
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
248
|
+
stalled: "stalled";
|
|
249
|
+
verifying: "verifying";
|
|
250
|
+
failed: "failed";
|
|
251
|
+
ready: "ready";
|
|
252
|
+
working: "working";
|
|
253
|
+
delegated: "delegated";
|
|
254
|
+
needs_input: "needs_input";
|
|
255
|
+
awaiting_approval: "awaiting_approval";
|
|
256
|
+
}>>;
|
|
257
|
+
statusRevision: z.ZodOptional<z.ZodString>;
|
|
258
|
+
hasWorkflowFailure: z.ZodOptional<z.ZodBoolean>;
|
|
259
|
+
canCancel: z.ZodOptional<z.ZodBoolean>;
|
|
260
|
+
canFollowUp: z.ZodOptional<z.ZodBoolean>;
|
|
261
|
+
dependencyTaskIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>>>;
|
|
262
|
+
relatedTasks: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
263
|
+
id: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
264
|
+
replyTo: z.ZodObject<{
|
|
265
|
+
channel: z.ZodString;
|
|
266
|
+
address: z.ZodString;
|
|
267
|
+
}, z.core.$strict>;
|
|
268
|
+
attempt: z.ZodNumber;
|
|
269
|
+
state: z.ZodEnum<{
|
|
270
|
+
queued: "queued";
|
|
271
|
+
running: "running";
|
|
272
|
+
stalled: "stalled";
|
|
273
|
+
verifying: "verifying";
|
|
274
|
+
succeeded: "succeeded";
|
|
275
|
+
failed: "failed";
|
|
276
|
+
needs_human: "needs_human";
|
|
277
|
+
cancelled: "cancelled";
|
|
278
|
+
}>;
|
|
279
|
+
updatedAt: z.ZodISODateTime;
|
|
280
|
+
createdAt: z.ZodISODateTime;
|
|
281
|
+
repositoryIds: z.ZodReadonly<z.ZodTuple<[z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>], z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>>;
|
|
282
|
+
kind: z.ZodType<TaskKind, unknown, z.core.$ZodTypeInternals<TaskKind, unknown>>;
|
|
283
|
+
approval: z.ZodOptional<z.ZodEnum<{
|
|
284
|
+
required: "required";
|
|
285
|
+
granted: "granted";
|
|
286
|
+
denied: "denied";
|
|
287
|
+
}>>;
|
|
288
|
+
rootTaskId: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
289
|
+
parentTaskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
290
|
+
stalledReason: z.ZodOptional<z.ZodString>;
|
|
291
|
+
needsHumanAction: z.ZodOptional<z.ZodString>;
|
|
292
|
+
changeId: z.ZodOptional<z.ZodType<`chg_${string}`, string, z.core.$ZodTypeInternals<`chg_${string}`, string>>>;
|
|
293
|
+
work: z.ZodObject<{
|
|
294
|
+
title: z.ZodString;
|
|
295
|
+
route: z.ZodOptional<z.core.$ZodBranded<z.ZodObject<{
|
|
296
|
+
id: z.ZodString;
|
|
297
|
+
version: z.ZodNumber;
|
|
298
|
+
}, z.core.$strict>, "AgentRouteBinding", "out">>;
|
|
299
|
+
}, z.core.$strip>;
|
|
300
|
+
}, z.core.$strip>>>>;
|
|
301
|
+
finding: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
302
|
+
priority: z.ZodEnum<{
|
|
303
|
+
P0: "P0";
|
|
304
|
+
P1: "P1";
|
|
305
|
+
P2: "P2";
|
|
306
|
+
P3: "P3";
|
|
307
|
+
}>;
|
|
308
|
+
category: z.ZodEnum<{
|
|
309
|
+
security: "security";
|
|
310
|
+
correctness: "correctness";
|
|
311
|
+
reliability: "reliability";
|
|
312
|
+
performance: "performance";
|
|
313
|
+
compatibility: "compatibility";
|
|
314
|
+
accessibility: "accessibility";
|
|
315
|
+
documentation: "documentation";
|
|
316
|
+
maintainability: "maintainability";
|
|
317
|
+
testing: "testing";
|
|
318
|
+
usability: "usability";
|
|
319
|
+
}>;
|
|
320
|
+
}, z.core.$strict>>>;
|
|
321
|
+
}, z.core.$strip>;
|
|
322
|
+
/** Compact operator conversation card; full finding evidence is available on SessionView. */
|
|
323
|
+
type SessionSummary = z.infer<typeof sessionSummarySchema>;
|
|
324
|
+
/** Validates the provider lifecycle reported for a pull request linked to a conversation. */
|
|
325
|
+
declare const sessionPullRequestStateSchema: z.ZodEnum<{
|
|
326
|
+
closed: "closed";
|
|
327
|
+
merged: "merged";
|
|
328
|
+
draft: "draft";
|
|
329
|
+
open: "open";
|
|
330
|
+
}>;
|
|
331
|
+
/** Validates one current pull-request status resolved from authorized conversation work. */
|
|
332
|
+
declare const sessionPullRequestSchema: z.ZodObject<{
|
|
333
|
+
changeId: z.ZodType<`chg_${string}`, string, z.core.$ZodTypeInternals<`chg_${string}`, string>>;
|
|
334
|
+
repositoryId: z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>;
|
|
335
|
+
repository: z.ZodType<`${string}/${string}`, string, z.core.$ZodTypeInternals<`${string}/${string}`, string>>;
|
|
336
|
+
number: z.ZodNumber;
|
|
337
|
+
url: z.ZodURL;
|
|
338
|
+
state: z.ZodNullable<z.ZodEnum<{
|
|
339
|
+
closed: "closed";
|
|
340
|
+
merged: "merged";
|
|
341
|
+
draft: "draft";
|
|
342
|
+
open: "open";
|
|
343
|
+
}>>;
|
|
344
|
+
changeState: z.ZodEnum<{
|
|
345
|
+
verifying: "verifying";
|
|
346
|
+
ready: "ready";
|
|
347
|
+
closed: "closed";
|
|
348
|
+
merged: "merged";
|
|
349
|
+
deployed: "deployed";
|
|
350
|
+
rolled_out: "rolled_out";
|
|
351
|
+
rolled_back: "rolled_back";
|
|
352
|
+
}>;
|
|
353
|
+
verification: z.ZodEnum<{
|
|
354
|
+
unknown: "unknown";
|
|
355
|
+
pending: "pending";
|
|
356
|
+
passed: "passed";
|
|
357
|
+
}>;
|
|
358
|
+
reviewReadiness: z.ZodEnum<{
|
|
359
|
+
unknown: "unknown";
|
|
360
|
+
ready: "ready";
|
|
361
|
+
closed: "closed";
|
|
362
|
+
draft: "draft";
|
|
363
|
+
not_ready: "not_ready";
|
|
364
|
+
complete: "complete";
|
|
365
|
+
}>;
|
|
366
|
+
sync: z.ZodEnum<{
|
|
367
|
+
fresh: "fresh";
|
|
368
|
+
stale: "stale";
|
|
369
|
+
unavailable: "unavailable";
|
|
370
|
+
}>;
|
|
371
|
+
observedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
372
|
+
checkedAt: z.ZodISODateTime;
|
|
373
|
+
syncMessage: z.ZodOptional<z.ZodString>;
|
|
374
|
+
}, z.core.$strict>;
|
|
375
|
+
/** Current provider and Factory lifecycle of a pull request linked to a conversation. */
|
|
376
|
+
type SessionPullRequest = z.infer<typeof sessionPullRequestSchema>;
|
|
377
|
+
/** Validates one concise delegated-task row in an operator conversation. */
|
|
378
|
+
declare const sessionWorkTaskSchema: z.ZodObject<{
|
|
379
|
+
taskId: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
380
|
+
title: z.ZodString;
|
|
381
|
+
agent: z.ZodString;
|
|
382
|
+
state: z.ZodEnum<{
|
|
383
|
+
queued: "queued";
|
|
384
|
+
running: "running";
|
|
385
|
+
stalled: "stalled";
|
|
386
|
+
verifying: "verifying";
|
|
387
|
+
succeeded: "succeeded";
|
|
388
|
+
failed: "failed";
|
|
389
|
+
needs_human: "needs_human";
|
|
390
|
+
cancelled: "cancelled";
|
|
391
|
+
}>;
|
|
392
|
+
attempt: z.ZodNumber;
|
|
393
|
+
}, z.core.$strict>;
|
|
394
|
+
/** Concise delegated-task progress shown inside a conversation work group. */
|
|
395
|
+
type SessionWorkTask = z.infer<typeof sessionWorkTaskSchema>;
|
|
396
|
+
/** Validates the single final result presented for one completed conversation request. */
|
|
397
|
+
declare const sessionWorkResultSchema: z.ZodObject<{
|
|
398
|
+
summary: z.ZodString;
|
|
399
|
+
verification: z.ZodEnum<{
|
|
400
|
+
unknown: "unknown";
|
|
401
|
+
failed: "failed";
|
|
402
|
+
passed: "passed";
|
|
403
|
+
not_required: "not_required";
|
|
404
|
+
}>;
|
|
405
|
+
remainingAction: z.ZodOptional<z.ZodString>;
|
|
406
|
+
}, z.core.$strict>;
|
|
407
|
+
/** One application-presented final result derived from validated workflow completion. */
|
|
408
|
+
type SessionWorkResult = z.infer<typeof sessionWorkResultSchema>;
|
|
409
|
+
/** Validates delegated progress and its optional final result, grouped by root request identity. */
|
|
410
|
+
declare const sessionWorkGroupSchema: z.ZodObject<{
|
|
411
|
+
requestId: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
412
|
+
title: z.ZodString;
|
|
413
|
+
agent: z.ZodString;
|
|
414
|
+
state: z.ZodEnum<{
|
|
415
|
+
queued: "queued";
|
|
416
|
+
running: "running";
|
|
417
|
+
stalled: "stalled";
|
|
418
|
+
verifying: "verifying";
|
|
419
|
+
succeeded: "succeeded";
|
|
420
|
+
failed: "failed";
|
|
421
|
+
needs_human: "needs_human";
|
|
422
|
+
cancelled: "cancelled";
|
|
423
|
+
}>;
|
|
424
|
+
tasks: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
425
|
+
taskId: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
426
|
+
title: z.ZodString;
|
|
427
|
+
agent: z.ZodString;
|
|
428
|
+
state: z.ZodEnum<{
|
|
429
|
+
queued: "queued";
|
|
430
|
+
running: "running";
|
|
431
|
+
stalled: "stalled";
|
|
432
|
+
verifying: "verifying";
|
|
433
|
+
succeeded: "succeeded";
|
|
434
|
+
failed: "failed";
|
|
435
|
+
needs_human: "needs_human";
|
|
436
|
+
cancelled: "cancelled";
|
|
437
|
+
}>;
|
|
438
|
+
attempt: z.ZodNumber;
|
|
439
|
+
}, z.core.$strict>>>;
|
|
440
|
+
changeIds: z.ZodDefault<z.ZodReadonly<z.ZodArray<z.ZodType<`chg_${string}`, string, z.core.$ZodTypeInternals<`chg_${string}`, string>>>>>;
|
|
441
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
442
|
+
summary: z.ZodString;
|
|
443
|
+
verification: z.ZodEnum<{
|
|
444
|
+
unknown: "unknown";
|
|
445
|
+
failed: "failed";
|
|
446
|
+
passed: "passed";
|
|
447
|
+
not_required: "not_required";
|
|
448
|
+
}>;
|
|
449
|
+
remainingAction: z.ZodOptional<z.ZodString>;
|
|
450
|
+
}, z.core.$strict>>;
|
|
451
|
+
}, z.core.$strict>;
|
|
452
|
+
/** Delegated conversation work grouped by its stable root request identity. */
|
|
453
|
+
type SessionWorkGroup = z.infer<typeof sessionWorkGroupSchema>;
|
|
134
454
|
/** Validates the current operator-facing projection of a Factory session. */
|
|
135
455
|
declare const sessionViewSchema: z.ZodObject<{
|
|
136
456
|
session: z.ZodType<AgentSession, unknown, z.core.$ZodTypeInternals<AgentSession, unknown>>;
|
|
457
|
+
continuation: z.ZodDefault<z.ZodNullable<z.ZodPipe<z.ZodReadonly<z.ZodObject<{
|
|
458
|
+
operationId: z.ZodString;
|
|
459
|
+
taskId: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
460
|
+
parentTaskId: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
461
|
+
agent: z.ZodString;
|
|
462
|
+
message: z.ZodString;
|
|
463
|
+
attachments: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
464
|
+
id: z.ZodType<`img_${string}`, string, z.core.$ZodTypeInternals<`img_${string}`, string>>;
|
|
465
|
+
filename: z.ZodString;
|
|
466
|
+
mediaType: z.ZodEnum<{
|
|
467
|
+
"image/png": "image/png";
|
|
468
|
+
"image/jpeg": "image/jpeg";
|
|
469
|
+
"image/webp": "image/webp";
|
|
470
|
+
}>;
|
|
471
|
+
size: z.ZodNumber;
|
|
472
|
+
}, z.core.$strict>>>>;
|
|
473
|
+
contextAttachments: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
474
|
+
id: z.ZodType<`img_${string}`, string, z.core.$ZodTypeInternals<`img_${string}`, string>>;
|
|
475
|
+
filename: z.ZodString;
|
|
476
|
+
mediaType: z.ZodEnum<{
|
|
477
|
+
"image/png": "image/png";
|
|
478
|
+
"image/jpeg": "image/jpeg";
|
|
479
|
+
"image/webp": "image/webp";
|
|
480
|
+
}>;
|
|
481
|
+
size: z.ZodNumber;
|
|
482
|
+
}, z.core.$strict>>>>;
|
|
483
|
+
context: z.ZodOptional<z.ZodString>;
|
|
484
|
+
createdAt: z.ZodISODateTime;
|
|
485
|
+
}, z.core.$strict>>, z.ZodTransform<{
|
|
486
|
+
operationId: string;
|
|
487
|
+
taskId: `task_${string}`;
|
|
488
|
+
parentTaskId: `task_${string}`;
|
|
489
|
+
agent: string;
|
|
490
|
+
message: string;
|
|
491
|
+
createdAt: string;
|
|
492
|
+
attachments?: readonly {
|
|
493
|
+
id: `img_${string}`;
|
|
494
|
+
filename: string;
|
|
495
|
+
mediaType: "image/png" | "image/jpeg" | "image/webp";
|
|
496
|
+
size: number;
|
|
497
|
+
}[] | undefined;
|
|
498
|
+
}, Readonly<{
|
|
499
|
+
operationId: string;
|
|
500
|
+
taskId: `task_${string}`;
|
|
501
|
+
parentTaskId: `task_${string}`;
|
|
502
|
+
agent: string;
|
|
503
|
+
message: string;
|
|
504
|
+
createdAt: string;
|
|
505
|
+
attachments?: readonly {
|
|
506
|
+
id: `img_${string}`;
|
|
507
|
+
filename: string;
|
|
508
|
+
mediaType: "image/png" | "image/jpeg" | "image/webp";
|
|
509
|
+
size: number;
|
|
510
|
+
}[] | undefined;
|
|
511
|
+
contextAttachments?: readonly {
|
|
512
|
+
id: `img_${string}`;
|
|
513
|
+
filename: string;
|
|
514
|
+
mediaType: "image/png" | "image/jpeg" | "image/webp";
|
|
515
|
+
size: number;
|
|
516
|
+
}[] | undefined;
|
|
517
|
+
context?: string | undefined;
|
|
518
|
+
}>>>>>;
|
|
519
|
+
notifications: z.ZodDefault<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
520
|
+
eventId: z.ZodString;
|
|
521
|
+
repositoryIds: z.ZodReadonly<z.ZodTuple<[z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>], z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>>;
|
|
522
|
+
taskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
523
|
+
changeId: z.ZodOptional<z.ZodType<`chg_${string}`, string, z.core.$ZodTypeInternals<`chg_${string}`, string>>>;
|
|
524
|
+
replyTo: z.ZodObject<{
|
|
525
|
+
channel: z.ZodString;
|
|
526
|
+
address: z.ZodString;
|
|
527
|
+
}, z.core.$strict>;
|
|
528
|
+
outcome: z.ZodEnum<{
|
|
529
|
+
message: "message";
|
|
530
|
+
succeeded: "succeeded";
|
|
531
|
+
failed: "failed";
|
|
532
|
+
needs_human: "needs_human";
|
|
533
|
+
cancelled: "cancelled";
|
|
534
|
+
accepted: "accepted";
|
|
535
|
+
rolled_back: "rolled_back";
|
|
536
|
+
question: "question";
|
|
537
|
+
started: "started";
|
|
538
|
+
digest: "digest";
|
|
539
|
+
budget_warning: "budget_warning";
|
|
540
|
+
budget_exhausted: "budget_exhausted";
|
|
541
|
+
}>;
|
|
542
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
543
|
+
}, z.core.$strict>>>>;
|
|
544
|
+
notificationsNextCursor: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
137
545
|
task: z.ZodNullable<Omit<z.ZodObject<{
|
|
138
546
|
schemaVersion: z.ZodLiteral<1>;
|
|
139
547
|
id: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
@@ -382,6 +790,52 @@ declare const sessionViewSchema: z.ZodObject<{
|
|
|
382
790
|
changeId?: string | undefined;
|
|
383
791
|
reportRef?: string | undefined;
|
|
384
792
|
}>>>;
|
|
793
|
+
finding: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
794
|
+
title: z.ZodString;
|
|
795
|
+
body: z.ZodString;
|
|
796
|
+
path: z.ZodOptional<z.ZodString>;
|
|
797
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
798
|
+
endLine: z.ZodOptional<z.ZodNumber>;
|
|
799
|
+
priority: z.ZodEnum<{
|
|
800
|
+
P0: "P0";
|
|
801
|
+
P1: "P1";
|
|
802
|
+
P2: "P2";
|
|
803
|
+
P3: "P3";
|
|
804
|
+
}>;
|
|
805
|
+
category: z.ZodEnum<{
|
|
806
|
+
security: "security";
|
|
807
|
+
correctness: "correctness";
|
|
808
|
+
reliability: "reliability";
|
|
809
|
+
performance: "performance";
|
|
810
|
+
compatibility: "compatibility";
|
|
811
|
+
accessibility: "accessibility";
|
|
812
|
+
documentation: "documentation";
|
|
813
|
+
maintainability: "maintainability";
|
|
814
|
+
testing: "testing";
|
|
815
|
+
usability: "usability";
|
|
816
|
+
}>;
|
|
817
|
+
verification: z.ZodObject<{
|
|
818
|
+
level: z.ZodEnum<{
|
|
819
|
+
unverified: "unverified";
|
|
820
|
+
supported: "supported";
|
|
821
|
+
confirmed: "confirmed";
|
|
822
|
+
}>;
|
|
823
|
+
method: z.ZodEnum<{
|
|
824
|
+
documentation: "documentation";
|
|
825
|
+
code_inspection: "code_inspection";
|
|
826
|
+
static_analysis: "static_analysis";
|
|
827
|
+
manual_reproduction: "manual_reproduction";
|
|
828
|
+
unit_test: "unit_test";
|
|
829
|
+
integration_test: "integration_test";
|
|
830
|
+
e2e_test: "e2e_test";
|
|
831
|
+
runtime_observation: "runtime_observation";
|
|
832
|
+
}>;
|
|
833
|
+
summary: z.ZodString;
|
|
834
|
+
limitations: z.ZodOptional<z.ZodString>;
|
|
835
|
+
}, z.core.$strict>;
|
|
836
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
837
|
+
ruleId: z.ZodOptional<z.ZodString>;
|
|
838
|
+
}, z.core.$strict>>>;
|
|
385
839
|
dependencyTaskIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>>>;
|
|
386
840
|
execution: z.ZodNullable<z.ZodObject<{
|
|
387
841
|
provider: z.ZodString;
|
|
@@ -391,8 +845,105 @@ declare const sessionViewSchema: z.ZodObject<{
|
|
|
391
845
|
traceId: z.ZodOptional<z.ZodString>;
|
|
392
846
|
}, z.core.$strict>>;
|
|
393
847
|
activeAgent: z.ZodOptional<z.ZodString>;
|
|
848
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
849
|
+
stalled: "stalled";
|
|
850
|
+
verifying: "verifying";
|
|
851
|
+
failed: "failed";
|
|
852
|
+
ready: "ready";
|
|
853
|
+
working: "working";
|
|
854
|
+
delegated: "delegated";
|
|
855
|
+
needs_input: "needs_input";
|
|
856
|
+
awaiting_approval: "awaiting_approval";
|
|
857
|
+
}>>;
|
|
858
|
+
statusRevision: z.ZodOptional<z.ZodString>;
|
|
394
859
|
source: z.ZodOptional<z.ZodString>;
|
|
395
860
|
prUrl: z.ZodOptional<z.ZodString>;
|
|
861
|
+
pullRequests: z.ZodDefault<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
862
|
+
changeId: z.ZodType<`chg_${string}`, string, z.core.$ZodTypeInternals<`chg_${string}`, string>>;
|
|
863
|
+
repositoryId: z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>;
|
|
864
|
+
repository: z.ZodType<`${string}/${string}`, string, z.core.$ZodTypeInternals<`${string}/${string}`, string>>;
|
|
865
|
+
number: z.ZodNumber;
|
|
866
|
+
url: z.ZodURL;
|
|
867
|
+
state: z.ZodNullable<z.ZodEnum<{
|
|
868
|
+
closed: "closed";
|
|
869
|
+
merged: "merged";
|
|
870
|
+
draft: "draft";
|
|
871
|
+
open: "open";
|
|
872
|
+
}>>;
|
|
873
|
+
changeState: z.ZodEnum<{
|
|
874
|
+
verifying: "verifying";
|
|
875
|
+
ready: "ready";
|
|
876
|
+
closed: "closed";
|
|
877
|
+
merged: "merged";
|
|
878
|
+
deployed: "deployed";
|
|
879
|
+
rolled_out: "rolled_out";
|
|
880
|
+
rolled_back: "rolled_back";
|
|
881
|
+
}>;
|
|
882
|
+
verification: z.ZodEnum<{
|
|
883
|
+
unknown: "unknown";
|
|
884
|
+
pending: "pending";
|
|
885
|
+
passed: "passed";
|
|
886
|
+
}>;
|
|
887
|
+
reviewReadiness: z.ZodEnum<{
|
|
888
|
+
unknown: "unknown";
|
|
889
|
+
ready: "ready";
|
|
890
|
+
closed: "closed";
|
|
891
|
+
draft: "draft";
|
|
892
|
+
not_ready: "not_ready";
|
|
893
|
+
complete: "complete";
|
|
894
|
+
}>;
|
|
895
|
+
sync: z.ZodEnum<{
|
|
896
|
+
fresh: "fresh";
|
|
897
|
+
stale: "stale";
|
|
898
|
+
unavailable: "unavailable";
|
|
899
|
+
}>;
|
|
900
|
+
observedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
901
|
+
checkedAt: z.ZodISODateTime;
|
|
902
|
+
syncMessage: z.ZodOptional<z.ZodString>;
|
|
903
|
+
}, z.core.$strict>>>>;
|
|
904
|
+
pullRequestsTruncated: z.ZodDefault<z.ZodBoolean>;
|
|
905
|
+
workGroups: z.ZodDefault<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
906
|
+
requestId: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
907
|
+
title: z.ZodString;
|
|
908
|
+
agent: z.ZodString;
|
|
909
|
+
state: z.ZodEnum<{
|
|
910
|
+
queued: "queued";
|
|
911
|
+
running: "running";
|
|
912
|
+
stalled: "stalled";
|
|
913
|
+
verifying: "verifying";
|
|
914
|
+
succeeded: "succeeded";
|
|
915
|
+
failed: "failed";
|
|
916
|
+
needs_human: "needs_human";
|
|
917
|
+
cancelled: "cancelled";
|
|
918
|
+
}>;
|
|
919
|
+
tasks: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
920
|
+
taskId: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
921
|
+
title: z.ZodString;
|
|
922
|
+
agent: z.ZodString;
|
|
923
|
+
state: z.ZodEnum<{
|
|
924
|
+
queued: "queued";
|
|
925
|
+
running: "running";
|
|
926
|
+
stalled: "stalled";
|
|
927
|
+
verifying: "verifying";
|
|
928
|
+
succeeded: "succeeded";
|
|
929
|
+
failed: "failed";
|
|
930
|
+
needs_human: "needs_human";
|
|
931
|
+
cancelled: "cancelled";
|
|
932
|
+
}>;
|
|
933
|
+
attempt: z.ZodNumber;
|
|
934
|
+
}, z.core.$strict>>>;
|
|
935
|
+
changeIds: z.ZodDefault<z.ZodReadonly<z.ZodArray<z.ZodType<`chg_${string}`, string, z.core.$ZodTypeInternals<`chg_${string}`, string>>>>>;
|
|
936
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
937
|
+
summary: z.ZodString;
|
|
938
|
+
verification: z.ZodEnum<{
|
|
939
|
+
unknown: "unknown";
|
|
940
|
+
failed: "failed";
|
|
941
|
+
passed: "passed";
|
|
942
|
+
not_required: "not_required";
|
|
943
|
+
}>;
|
|
944
|
+
remainingAction: z.ZodOptional<z.ZodString>;
|
|
945
|
+
}, z.core.$strict>>;
|
|
946
|
+
}, z.core.$strict>>>>;
|
|
396
947
|
attention: z.ZodOptional<z.ZodEnum<{
|
|
397
948
|
stalled: "stalled";
|
|
398
949
|
failed: "failed";
|
|
@@ -403,6 +954,8 @@ declare const sessionViewSchema: z.ZodObject<{
|
|
|
403
954
|
canFollowUp: z.ZodOptional<z.ZodBoolean>;
|
|
404
955
|
hasWorkflowFailure: z.ZodOptional<z.ZodBoolean>;
|
|
405
956
|
canCancel: z.ZodOptional<z.ZodBoolean>;
|
|
957
|
+
historyNextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
958
|
+
relatedTasksNextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
406
959
|
history: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
407
960
|
taskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
408
961
|
agent: z.ZodString;
|
|
@@ -927,14 +1480,57 @@ type SessionView = z.infer<typeof sessionViewSchema>;
|
|
|
927
1480
|
/** Validates a cursor-paginated page of operator-facing sessions. */
|
|
928
1481
|
declare const sessionPageSchema: z.ZodObject<{
|
|
929
1482
|
sessions: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
930
|
-
session: z.
|
|
931
|
-
task: z.ZodNullable<Omit<z.ZodObject<{
|
|
1483
|
+
session: z.ZodObject<{
|
|
932
1484
|
schemaVersion: z.ZodLiteral<1>;
|
|
933
|
-
id: z.ZodType<`
|
|
934
|
-
|
|
935
|
-
|
|
1485
|
+
id: z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1486
|
+
owner: z.ZodString;
|
|
1487
|
+
agent: z.ZodString;
|
|
1488
|
+
repositoryId: z.ZodOptional<z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>;
|
|
1489
|
+
route: z.ZodOptional<z.core.$ZodBranded<z.ZodObject<{
|
|
1490
|
+
id: z.ZodString;
|
|
1491
|
+
version: z.ZodNumber;
|
|
1492
|
+
}, z.core.$strict>, "AgentRouteBinding", "out">>;
|
|
936
1493
|
model: z.ZodOptional<z.ZodString>;
|
|
937
|
-
|
|
1494
|
+
attachments: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1495
|
+
id: z.ZodType<`img_${string}`, string, z.core.$ZodTypeInternals<`img_${string}`, string>>;
|
|
1496
|
+
filename: z.ZodString;
|
|
1497
|
+
mediaType: z.ZodEnum<{
|
|
1498
|
+
"image/png": "image/png";
|
|
1499
|
+
"image/jpeg": "image/jpeg";
|
|
1500
|
+
"image/webp": "image/webp";
|
|
1501
|
+
}>;
|
|
1502
|
+
size: z.ZodNumber;
|
|
1503
|
+
}, z.core.$strict>>>>;
|
|
1504
|
+
changeId: z.ZodOptional<z.ZodType<`chg_${string}`, string, z.core.$ZodTypeInternals<`chg_${string}`, string>>>;
|
|
1505
|
+
taskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
1506
|
+
attached: z.ZodOptional<z.ZodBoolean>;
|
|
1507
|
+
latestContinuationId: z.ZodOptional<z.ZodString>;
|
|
1508
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
1509
|
+
provider: z.ZodString;
|
|
1510
|
+
sessionId: z.ZodString;
|
|
1511
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
1512
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
1513
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
1514
|
+
}, z.core.$strict>>;
|
|
1515
|
+
external: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
1516
|
+
replyTo: z.ZodObject<{
|
|
1517
|
+
channel: z.ZodString;
|
|
1518
|
+
address: z.ZodString;
|
|
1519
|
+
}, z.core.$strict>;
|
|
1520
|
+
repositoryIds: z.ZodReadonly<z.ZodTuple<[z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>], z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>>;
|
|
1521
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
1522
|
+
}, z.core.$strict>>>;
|
|
1523
|
+
latestNotificationId: z.ZodOptional<z.ZodString>;
|
|
1524
|
+
createdAt: z.ZodISODateTime;
|
|
1525
|
+
message: z.ZodString;
|
|
1526
|
+
}, z.core.$strip>;
|
|
1527
|
+
task: z.ZodNullable<z.ZodObject<{
|
|
1528
|
+
id: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
1529
|
+
replyTo: z.ZodObject<{
|
|
1530
|
+
channel: z.ZodString;
|
|
1531
|
+
address: z.ZodString;
|
|
1532
|
+
}, z.core.$strict>;
|
|
1533
|
+
attempt: z.ZodNumber;
|
|
938
1534
|
state: z.ZodEnum<{
|
|
939
1535
|
queued: "queued";
|
|
940
1536
|
running: "running";
|
|
@@ -945,67 +1541,31 @@ declare const sessionPageSchema: z.ZodObject<{
|
|
|
945
1541
|
needs_human: "needs_human";
|
|
946
1542
|
cancelled: "cancelled";
|
|
947
1543
|
}>;
|
|
1544
|
+
updatedAt: z.ZodISODateTime;
|
|
1545
|
+
createdAt: z.ZodISODateTime;
|
|
1546
|
+
repositoryIds: z.ZodReadonly<z.ZodTuple<[z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>], z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>>;
|
|
1547
|
+
kind: z.ZodType<TaskKind, unknown, z.core.$ZodTypeInternals<TaskKind, unknown>>;
|
|
948
1548
|
approval: z.ZodOptional<z.ZodEnum<{
|
|
949
1549
|
required: "required";
|
|
950
1550
|
granted: "granted";
|
|
951
1551
|
denied: "denied";
|
|
952
1552
|
}>>;
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
1553
|
+
rootTaskId: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
1554
|
+
parentTaskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
1555
|
+
stalledReason: z.ZodOptional<z.ZodString>;
|
|
1556
|
+
needsHumanAction: z.ZodOptional<z.ZodString>;
|
|
1557
|
+
changeId: z.ZodOptional<z.ZodType<`chg_${string}`, string, z.core.$ZodTypeInternals<`chg_${string}`, string>>>;
|
|
957
1558
|
work: z.ZodObject<{
|
|
958
1559
|
title: z.ZodString;
|
|
959
|
-
input: z.ZodCustom<JsonValue, JsonValue>;
|
|
960
|
-
completionCriteria: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
961
|
-
workflow: z.core.$ZodBranded<z.ZodObject<{
|
|
962
|
-
id: z.ZodString;
|
|
963
|
-
version: z.ZodNumber;
|
|
964
|
-
}, z.core.$strict>, "WorkflowBinding", "out">;
|
|
965
1560
|
route: z.ZodOptional<z.core.$ZodBranded<z.ZodObject<{
|
|
966
1561
|
id: z.ZodString;
|
|
967
1562
|
version: z.ZodNumber;
|
|
968
1563
|
}, z.core.$strict>, "AgentRouteBinding", "out">>;
|
|
969
|
-
}, z.core.$
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
waitingForMessages: z.ZodOptional<z.ZodBoolean>;
|
|
975
|
-
workflowPhase: z.ZodOptional<z.ZodString>;
|
|
976
|
-
rootTaskId: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
977
|
-
parentTaskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
978
|
-
parentTaskAttempt: z.ZodOptional<z.ZodNumber>;
|
|
979
|
-
replyTo: z.ZodObject<{
|
|
980
|
-
channel: z.ZodString;
|
|
981
|
-
address: z.ZodString;
|
|
982
|
-
}, z.core.$strict>;
|
|
983
|
-
pendingCommunicationReceiptIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<`rcpt_${string}`, string, z.core.$ZodTypeInternals<`rcpt_${string}`, string>>>>>;
|
|
984
|
-
failureReceiptId: z.ZodOptional<z.ZodType<`rcpt_${string}`, string, z.core.$ZodTypeInternals<`rcpt_${string}`, string>>>;
|
|
985
|
-
attempt: z.ZodNumber;
|
|
986
|
-
execution: z.ZodOptional<z.ZodObject<{
|
|
987
|
-
provider: z.ZodString;
|
|
988
|
-
sessionId: z.ZodString;
|
|
989
|
-
environmentId: z.ZodOptional<z.ZodString>;
|
|
990
|
-
harness: z.ZodOptional<z.ZodString>;
|
|
991
|
-
traceId: z.ZodOptional<z.ZodString>;
|
|
992
|
-
}, z.core.$strict>>;
|
|
993
|
-
lastProgressAt: z.ZodOptional<z.ZodISODateTime>;
|
|
994
|
-
stalledAt: z.ZodOptional<z.ZodISODateTime>;
|
|
995
|
-
stalledReason: z.ZodOptional<z.ZodString>;
|
|
996
|
-
needsHumanAction: z.ZodOptional<z.ZodString>;
|
|
997
|
-
needsHumanNotifiedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
998
|
-
reservedUsd: z.ZodOptional<z.ZodNumber>;
|
|
999
|
-
reservedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1000
|
-
usage: z.ZodOptional<z.ZodObject<{
|
|
1001
|
-
costUsd: z.ZodNumber;
|
|
1002
|
-
inputTokens: z.ZodNumber;
|
|
1003
|
-
outputTokens: z.ZodNumber;
|
|
1004
|
-
cacheReadTokens: z.ZodNumber;
|
|
1005
|
-
cacheWriteTokens: z.ZodNumber;
|
|
1006
|
-
steps: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
1007
|
-
}, z.core.$strict>>;
|
|
1008
|
-
settledUsd: z.ZodOptional<z.ZodNumber>;
|
|
1564
|
+
}, z.core.$strip>;
|
|
1565
|
+
}, z.core.$strip>>;
|
|
1566
|
+
question: z.ZodNullable<z.ZodObject<{
|
|
1567
|
+
id: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
1568
|
+
updatedAt: z.ZodISODateTime;
|
|
1009
1569
|
question: z.ZodOptional<z.ZodObject<{
|
|
1010
1570
|
text: z.ZodString;
|
|
1011
1571
|
options: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
@@ -1013,170 +1573,7 @@ declare const sessionPageSchema: z.ZodObject<{
|
|
|
1013
1573
|
answer: z.ZodOptional<z.ZodString>;
|
|
1014
1574
|
answeredBy: z.ZodOptional<z.ZodString>;
|
|
1015
1575
|
}, z.core.$strict>>;
|
|
1016
|
-
|
|
1017
|
-
answerEventIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<`ans_${string}`, string, z.core.$ZodTypeInternals<`ans_${string}`, string>>>>>;
|
|
1018
|
-
changeId: z.ZodOptional<z.ZodType<`chg_${string}`, string, z.core.$ZodTypeInternals<`chg_${string}`, string>>>;
|
|
1019
|
-
reportRef: z.ZodOptional<z.ZodString>;
|
|
1020
|
-
createdAt: z.ZodISODateTime;
|
|
1021
|
-
updatedAt: z.ZodISODateTime;
|
|
1022
|
-
}, z.core.$strict>, keyof z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>> & z.ZodType<Task, {
|
|
1023
|
-
schemaVersion: 1;
|
|
1024
|
-
id: string;
|
|
1025
|
-
repositoryIds: readonly [string, ...string[]];
|
|
1026
|
-
kind: unknown;
|
|
1027
|
-
state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
|
|
1028
|
-
origin: {
|
|
1029
|
-
signalId?: string | undefined;
|
|
1030
|
-
operator?: string | undefined;
|
|
1031
|
-
};
|
|
1032
|
-
work: {
|
|
1033
|
-
title: string;
|
|
1034
|
-
input: JsonValue;
|
|
1035
|
-
completionCriteria: readonly string[];
|
|
1036
|
-
workflow: {
|
|
1037
|
-
id: string;
|
|
1038
|
-
version: number;
|
|
1039
|
-
};
|
|
1040
|
-
route?: {
|
|
1041
|
-
id: string;
|
|
1042
|
-
version: number;
|
|
1043
|
-
} | undefined;
|
|
1044
|
-
};
|
|
1045
|
-
rootTaskId: string;
|
|
1046
|
-
replyTo: {
|
|
1047
|
-
channel: string;
|
|
1048
|
-
address: string;
|
|
1049
|
-
};
|
|
1050
|
-
attempt: number;
|
|
1051
|
-
createdAt: string;
|
|
1052
|
-
updatedAt: string;
|
|
1053
|
-
model?: string | undefined;
|
|
1054
|
-
area?: string | undefined;
|
|
1055
|
-
approval?: "required" | "granted" | "denied" | undefined;
|
|
1056
|
-
workResult?: {
|
|
1057
|
-
output: JsonValue;
|
|
1058
|
-
completedAt: string;
|
|
1059
|
-
} | undefined;
|
|
1060
|
-
waitingForMessages?: boolean | undefined;
|
|
1061
|
-
workflowPhase?: string | undefined;
|
|
1062
|
-
parentTaskId?: string | undefined;
|
|
1063
|
-
parentTaskAttempt?: number | undefined;
|
|
1064
|
-
pendingCommunicationReceiptIds?: readonly string[] | undefined;
|
|
1065
|
-
failureReceiptId?: string | undefined;
|
|
1066
|
-
execution?: {
|
|
1067
|
-
provider: string;
|
|
1068
|
-
sessionId: string;
|
|
1069
|
-
environmentId?: string | undefined;
|
|
1070
|
-
harness?: string | undefined;
|
|
1071
|
-
traceId?: string | undefined;
|
|
1072
|
-
} | undefined;
|
|
1073
|
-
lastProgressAt?: string | undefined;
|
|
1074
|
-
stalledAt?: string | undefined;
|
|
1075
|
-
stalledReason?: string | undefined;
|
|
1076
|
-
needsHumanAction?: string | undefined;
|
|
1077
|
-
needsHumanNotifiedAt?: string | undefined;
|
|
1078
|
-
reservedUsd?: number | undefined;
|
|
1079
|
-
reservedAt?: string | undefined;
|
|
1080
|
-
usage?: {
|
|
1081
|
-
costUsd: number;
|
|
1082
|
-
inputTokens: number;
|
|
1083
|
-
outputTokens: number;
|
|
1084
|
-
cacheReadTokens: number;
|
|
1085
|
-
cacheWriteTokens: number;
|
|
1086
|
-
steps: Record<string, number>;
|
|
1087
|
-
} | undefined;
|
|
1088
|
-
settledUsd?: number | undefined;
|
|
1089
|
-
question?: {
|
|
1090
|
-
text: string;
|
|
1091
|
-
options: readonly string[];
|
|
1092
|
-
closingOptions?: readonly string[] | undefined;
|
|
1093
|
-
answer?: string | undefined;
|
|
1094
|
-
answeredBy?: string | undefined;
|
|
1095
|
-
} | undefined;
|
|
1096
|
-
questionTaskId?: string | undefined;
|
|
1097
|
-
answerEventIds?: readonly string[] | undefined;
|
|
1098
|
-
changeId?: string | undefined;
|
|
1099
|
-
reportRef?: string | undefined;
|
|
1100
|
-
}, z.core.$ZodTypeInternals<Task, {
|
|
1101
|
-
schemaVersion: 1;
|
|
1102
|
-
id: string;
|
|
1103
|
-
repositoryIds: readonly [string, ...string[]];
|
|
1104
|
-
kind: unknown;
|
|
1105
|
-
state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
|
|
1106
|
-
origin: {
|
|
1107
|
-
signalId?: string | undefined;
|
|
1108
|
-
operator?: string | undefined;
|
|
1109
|
-
};
|
|
1110
|
-
work: {
|
|
1111
|
-
title: string;
|
|
1112
|
-
input: JsonValue;
|
|
1113
|
-
completionCriteria: readonly string[];
|
|
1114
|
-
workflow: {
|
|
1115
|
-
id: string;
|
|
1116
|
-
version: number;
|
|
1117
|
-
};
|
|
1118
|
-
route?: {
|
|
1119
|
-
id: string;
|
|
1120
|
-
version: number;
|
|
1121
|
-
} | undefined;
|
|
1122
|
-
};
|
|
1123
|
-
rootTaskId: string;
|
|
1124
|
-
replyTo: {
|
|
1125
|
-
channel: string;
|
|
1126
|
-
address: string;
|
|
1127
|
-
};
|
|
1128
|
-
attempt: number;
|
|
1129
|
-
createdAt: string;
|
|
1130
|
-
updatedAt: string;
|
|
1131
|
-
model?: string | undefined;
|
|
1132
|
-
area?: string | undefined;
|
|
1133
|
-
approval?: "required" | "granted" | "denied" | undefined;
|
|
1134
|
-
workResult?: {
|
|
1135
|
-
output: JsonValue;
|
|
1136
|
-
completedAt: string;
|
|
1137
|
-
} | undefined;
|
|
1138
|
-
waitingForMessages?: boolean | undefined;
|
|
1139
|
-
workflowPhase?: string | undefined;
|
|
1140
|
-
parentTaskId?: string | undefined;
|
|
1141
|
-
parentTaskAttempt?: number | undefined;
|
|
1142
|
-
pendingCommunicationReceiptIds?: readonly string[] | undefined;
|
|
1143
|
-
failureReceiptId?: string | undefined;
|
|
1144
|
-
execution?: {
|
|
1145
|
-
provider: string;
|
|
1146
|
-
sessionId: string;
|
|
1147
|
-
environmentId?: string | undefined;
|
|
1148
|
-
harness?: string | undefined;
|
|
1149
|
-
traceId?: string | undefined;
|
|
1150
|
-
} | undefined;
|
|
1151
|
-
lastProgressAt?: string | undefined;
|
|
1152
|
-
stalledAt?: string | undefined;
|
|
1153
|
-
stalledReason?: string | undefined;
|
|
1154
|
-
needsHumanAction?: string | undefined;
|
|
1155
|
-
needsHumanNotifiedAt?: string | undefined;
|
|
1156
|
-
reservedUsd?: number | undefined;
|
|
1157
|
-
reservedAt?: string | undefined;
|
|
1158
|
-
usage?: {
|
|
1159
|
-
costUsd: number;
|
|
1160
|
-
inputTokens: number;
|
|
1161
|
-
outputTokens: number;
|
|
1162
|
-
cacheReadTokens: number;
|
|
1163
|
-
cacheWriteTokens: number;
|
|
1164
|
-
steps: Record<string, number>;
|
|
1165
|
-
} | undefined;
|
|
1166
|
-
settledUsd?: number | undefined;
|
|
1167
|
-
question?: {
|
|
1168
|
-
text: string;
|
|
1169
|
-
options: readonly string[];
|
|
1170
|
-
closingOptions?: readonly string[] | undefined;
|
|
1171
|
-
answer?: string | undefined;
|
|
1172
|
-
answeredBy?: string | undefined;
|
|
1173
|
-
} | undefined;
|
|
1174
|
-
questionTaskId?: string | undefined;
|
|
1175
|
-
answerEventIds?: readonly string[] | undefined;
|
|
1176
|
-
changeId?: string | undefined;
|
|
1177
|
-
reportRef?: string | undefined;
|
|
1178
|
-
}>>>;
|
|
1179
|
-
dependencyTaskIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>>>;
|
|
1576
|
+
}, z.core.$strip>>;
|
|
1180
1577
|
execution: z.ZodNullable<z.ZodObject<{
|
|
1181
1578
|
provider: z.ZodString;
|
|
1182
1579
|
sessionId: z.ZodString;
|
|
@@ -1194,286 +1591,28 @@ declare const sessionPageSchema: z.ZodObject<{
|
|
|
1194
1591
|
review: "review";
|
|
1195
1592
|
conversation: "conversation";
|
|
1196
1593
|
}>>;
|
|
1197
|
-
|
|
1594
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
1595
|
+
stalled: "stalled";
|
|
1596
|
+
verifying: "verifying";
|
|
1597
|
+
failed: "failed";
|
|
1598
|
+
ready: "ready";
|
|
1599
|
+
working: "working";
|
|
1600
|
+
delegated: "delegated";
|
|
1601
|
+
needs_input: "needs_input";
|
|
1602
|
+
awaiting_approval: "awaiting_approval";
|
|
1603
|
+
}>>;
|
|
1604
|
+
statusRevision: z.ZodOptional<z.ZodString>;
|
|
1198
1605
|
hasWorkflowFailure: z.ZodOptional<z.ZodBoolean>;
|
|
1199
1606
|
canCancel: z.ZodOptional<z.ZodBoolean>;
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
message: z.ZodString;
|
|
1204
|
-
attachments: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1205
|
-
id: z.ZodType<`img_${string}`, string, z.core.$ZodTypeInternals<`img_${string}`, string>>;
|
|
1206
|
-
filename: z.ZodString;
|
|
1207
|
-
mediaType: z.ZodEnum<{
|
|
1208
|
-
"image/png": "image/png";
|
|
1209
|
-
"image/jpeg": "image/jpeg";
|
|
1210
|
-
"image/webp": "image/webp";
|
|
1211
|
-
}>;
|
|
1212
|
-
size: z.ZodNumber;
|
|
1213
|
-
}, z.core.$strict>>>>;
|
|
1214
|
-
execution: z.ZodObject<{
|
|
1215
|
-
provider: z.ZodString;
|
|
1216
|
-
sessionId: z.ZodString;
|
|
1217
|
-
environmentId: z.ZodOptional<z.ZodString>;
|
|
1218
|
-
harness: z.ZodOptional<z.ZodString>;
|
|
1219
|
-
traceId: z.ZodOptional<z.ZodString>;
|
|
1220
|
-
}, z.core.$strict>;
|
|
1221
|
-
}, z.core.$strict>>>>;
|
|
1222
|
-
relatedTasks: z.ZodOptional<z.ZodReadonly<z.ZodArray<Omit<z.ZodObject<{
|
|
1223
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
1607
|
+
canFollowUp: z.ZodOptional<z.ZodBoolean>;
|
|
1608
|
+
dependencyTaskIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>>>;
|
|
1609
|
+
relatedTasks: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1224
1610
|
id: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
1225
|
-
repositoryIds: z.ZodReadonly<z.ZodTuple<[z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>], z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>>;
|
|
1226
|
-
kind: z.ZodType<TaskKind, unknown, z.core.$ZodTypeInternals<TaskKind, unknown>>;
|
|
1227
|
-
model: z.ZodOptional<z.ZodString>;
|
|
1228
|
-
area: z.ZodOptional<z.ZodString>;
|
|
1229
|
-
state: z.ZodEnum<{
|
|
1230
|
-
queued: "queued";
|
|
1231
|
-
running: "running";
|
|
1232
|
-
stalled: "stalled";
|
|
1233
|
-
verifying: "verifying";
|
|
1234
|
-
succeeded: "succeeded";
|
|
1235
|
-
failed: "failed";
|
|
1236
|
-
needs_human: "needs_human";
|
|
1237
|
-
cancelled: "cancelled";
|
|
1238
|
-
}>;
|
|
1239
|
-
approval: z.ZodOptional<z.ZodEnum<{
|
|
1240
|
-
required: "required";
|
|
1241
|
-
granted: "granted";
|
|
1242
|
-
denied: "denied";
|
|
1243
|
-
}>>;
|
|
1244
|
-
origin: z.ZodObject<{
|
|
1245
|
-
signalId: z.ZodOptional<z.ZodType<`sig_${string}`, string, z.core.$ZodTypeInternals<`sig_${string}`, string>>>;
|
|
1246
|
-
operator: z.ZodOptional<z.ZodString>;
|
|
1247
|
-
}, z.core.$strict>;
|
|
1248
|
-
work: z.ZodObject<{
|
|
1249
|
-
title: z.ZodString;
|
|
1250
|
-
input: z.ZodCustom<JsonValue, JsonValue>;
|
|
1251
|
-
completionCriteria: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
1252
|
-
workflow: z.core.$ZodBranded<z.ZodObject<{
|
|
1253
|
-
id: z.ZodString;
|
|
1254
|
-
version: z.ZodNumber;
|
|
1255
|
-
}, z.core.$strict>, "WorkflowBinding", "out">;
|
|
1256
|
-
route: z.ZodOptional<z.core.$ZodBranded<z.ZodObject<{
|
|
1257
|
-
id: z.ZodString;
|
|
1258
|
-
version: z.ZodNumber;
|
|
1259
|
-
}, z.core.$strict>, "AgentRouteBinding", "out">>;
|
|
1260
|
-
}, z.core.$strict>;
|
|
1261
|
-
workResult: z.ZodOptional<z.ZodObject<{
|
|
1262
|
-
output: z.ZodCustom<JsonValue, JsonValue>;
|
|
1263
|
-
completedAt: z.ZodISODateTime;
|
|
1264
|
-
}, z.core.$strict>>;
|
|
1265
|
-
waitingForMessages: z.ZodOptional<z.ZodBoolean>;
|
|
1266
|
-
workflowPhase: z.ZodOptional<z.ZodString>;
|
|
1267
|
-
rootTaskId: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
1268
|
-
parentTaskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
1269
|
-
parentTaskAttempt: z.ZodOptional<z.ZodNumber>;
|
|
1270
1611
|
replyTo: z.ZodObject<{
|
|
1271
1612
|
channel: z.ZodString;
|
|
1272
1613
|
address: z.ZodString;
|
|
1273
1614
|
}, z.core.$strict>;
|
|
1274
|
-
pendingCommunicationReceiptIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<`rcpt_${string}`, string, z.core.$ZodTypeInternals<`rcpt_${string}`, string>>>>>;
|
|
1275
|
-
failureReceiptId: z.ZodOptional<z.ZodType<`rcpt_${string}`, string, z.core.$ZodTypeInternals<`rcpt_${string}`, string>>>;
|
|
1276
1615
|
attempt: z.ZodNumber;
|
|
1277
|
-
execution: z.ZodOptional<z.ZodObject<{
|
|
1278
|
-
provider: z.ZodString;
|
|
1279
|
-
sessionId: z.ZodString;
|
|
1280
|
-
environmentId: z.ZodOptional<z.ZodString>;
|
|
1281
|
-
harness: z.ZodOptional<z.ZodString>;
|
|
1282
|
-
traceId: z.ZodOptional<z.ZodString>;
|
|
1283
|
-
}, z.core.$strict>>;
|
|
1284
|
-
lastProgressAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1285
|
-
stalledAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1286
|
-
stalledReason: z.ZodOptional<z.ZodString>;
|
|
1287
|
-
needsHumanAction: z.ZodOptional<z.ZodString>;
|
|
1288
|
-
needsHumanNotifiedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1289
|
-
reservedUsd: z.ZodOptional<z.ZodNumber>;
|
|
1290
|
-
reservedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1291
|
-
usage: z.ZodOptional<z.ZodObject<{
|
|
1292
|
-
costUsd: z.ZodNumber;
|
|
1293
|
-
inputTokens: z.ZodNumber;
|
|
1294
|
-
outputTokens: z.ZodNumber;
|
|
1295
|
-
cacheReadTokens: z.ZodNumber;
|
|
1296
|
-
cacheWriteTokens: z.ZodNumber;
|
|
1297
|
-
steps: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
1298
|
-
}, z.core.$strict>>;
|
|
1299
|
-
settledUsd: z.ZodOptional<z.ZodNumber>;
|
|
1300
|
-
question: z.ZodOptional<z.ZodObject<{
|
|
1301
|
-
text: z.ZodString;
|
|
1302
|
-
options: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
1303
|
-
closingOptions: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1304
|
-
answer: z.ZodOptional<z.ZodString>;
|
|
1305
|
-
answeredBy: z.ZodOptional<z.ZodString>;
|
|
1306
|
-
}, z.core.$strict>>;
|
|
1307
|
-
questionTaskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
1308
|
-
answerEventIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<`ans_${string}`, string, z.core.$ZodTypeInternals<`ans_${string}`, string>>>>>;
|
|
1309
|
-
changeId: z.ZodOptional<z.ZodType<`chg_${string}`, string, z.core.$ZodTypeInternals<`chg_${string}`, string>>>;
|
|
1310
|
-
reportRef: z.ZodOptional<z.ZodString>;
|
|
1311
|
-
createdAt: z.ZodISODateTime;
|
|
1312
|
-
updatedAt: z.ZodISODateTime;
|
|
1313
|
-
}, z.core.$strict>, keyof z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>> & z.ZodType<Task, {
|
|
1314
|
-
schemaVersion: 1;
|
|
1315
|
-
id: string;
|
|
1316
|
-
repositoryIds: readonly [string, ...string[]];
|
|
1317
|
-
kind: unknown;
|
|
1318
|
-
state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
|
|
1319
|
-
origin: {
|
|
1320
|
-
signalId?: string | undefined;
|
|
1321
|
-
operator?: string | undefined;
|
|
1322
|
-
};
|
|
1323
|
-
work: {
|
|
1324
|
-
title: string;
|
|
1325
|
-
input: JsonValue;
|
|
1326
|
-
completionCriteria: readonly string[];
|
|
1327
|
-
workflow: {
|
|
1328
|
-
id: string;
|
|
1329
|
-
version: number;
|
|
1330
|
-
};
|
|
1331
|
-
route?: {
|
|
1332
|
-
id: string;
|
|
1333
|
-
version: number;
|
|
1334
|
-
} | undefined;
|
|
1335
|
-
};
|
|
1336
|
-
rootTaskId: string;
|
|
1337
|
-
replyTo: {
|
|
1338
|
-
channel: string;
|
|
1339
|
-
address: string;
|
|
1340
|
-
};
|
|
1341
|
-
attempt: number;
|
|
1342
|
-
createdAt: string;
|
|
1343
|
-
updatedAt: string;
|
|
1344
|
-
model?: string | undefined;
|
|
1345
|
-
area?: string | undefined;
|
|
1346
|
-
approval?: "required" | "granted" | "denied" | undefined;
|
|
1347
|
-
workResult?: {
|
|
1348
|
-
output: JsonValue;
|
|
1349
|
-
completedAt: string;
|
|
1350
|
-
} | undefined;
|
|
1351
|
-
waitingForMessages?: boolean | undefined;
|
|
1352
|
-
workflowPhase?: string | undefined;
|
|
1353
|
-
parentTaskId?: string | undefined;
|
|
1354
|
-
parentTaskAttempt?: number | undefined;
|
|
1355
|
-
pendingCommunicationReceiptIds?: readonly string[] | undefined;
|
|
1356
|
-
failureReceiptId?: string | undefined;
|
|
1357
|
-
execution?: {
|
|
1358
|
-
provider: string;
|
|
1359
|
-
sessionId: string;
|
|
1360
|
-
environmentId?: string | undefined;
|
|
1361
|
-
harness?: string | undefined;
|
|
1362
|
-
traceId?: string | undefined;
|
|
1363
|
-
} | undefined;
|
|
1364
|
-
lastProgressAt?: string | undefined;
|
|
1365
|
-
stalledAt?: string | undefined;
|
|
1366
|
-
stalledReason?: string | undefined;
|
|
1367
|
-
needsHumanAction?: string | undefined;
|
|
1368
|
-
needsHumanNotifiedAt?: string | undefined;
|
|
1369
|
-
reservedUsd?: number | undefined;
|
|
1370
|
-
reservedAt?: string | undefined;
|
|
1371
|
-
usage?: {
|
|
1372
|
-
costUsd: number;
|
|
1373
|
-
inputTokens: number;
|
|
1374
|
-
outputTokens: number;
|
|
1375
|
-
cacheReadTokens: number;
|
|
1376
|
-
cacheWriteTokens: number;
|
|
1377
|
-
steps: Record<string, number>;
|
|
1378
|
-
} | undefined;
|
|
1379
|
-
settledUsd?: number | undefined;
|
|
1380
|
-
question?: {
|
|
1381
|
-
text: string;
|
|
1382
|
-
options: readonly string[];
|
|
1383
|
-
closingOptions?: readonly string[] | undefined;
|
|
1384
|
-
answer?: string | undefined;
|
|
1385
|
-
answeredBy?: string | undefined;
|
|
1386
|
-
} | undefined;
|
|
1387
|
-
questionTaskId?: string | undefined;
|
|
1388
|
-
answerEventIds?: readonly string[] | undefined;
|
|
1389
|
-
changeId?: string | undefined;
|
|
1390
|
-
reportRef?: string | undefined;
|
|
1391
|
-
}, z.core.$ZodTypeInternals<Task, {
|
|
1392
|
-
schemaVersion: 1;
|
|
1393
|
-
id: string;
|
|
1394
|
-
repositoryIds: readonly [string, ...string[]];
|
|
1395
|
-
kind: unknown;
|
|
1396
|
-
state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
|
|
1397
|
-
origin: {
|
|
1398
|
-
signalId?: string | undefined;
|
|
1399
|
-
operator?: string | undefined;
|
|
1400
|
-
};
|
|
1401
|
-
work: {
|
|
1402
|
-
title: string;
|
|
1403
|
-
input: JsonValue;
|
|
1404
|
-
completionCriteria: readonly string[];
|
|
1405
|
-
workflow: {
|
|
1406
|
-
id: string;
|
|
1407
|
-
version: number;
|
|
1408
|
-
};
|
|
1409
|
-
route?: {
|
|
1410
|
-
id: string;
|
|
1411
|
-
version: number;
|
|
1412
|
-
} | undefined;
|
|
1413
|
-
};
|
|
1414
|
-
rootTaskId: string;
|
|
1415
|
-
replyTo: {
|
|
1416
|
-
channel: string;
|
|
1417
|
-
address: string;
|
|
1418
|
-
};
|
|
1419
|
-
attempt: number;
|
|
1420
|
-
createdAt: string;
|
|
1421
|
-
updatedAt: string;
|
|
1422
|
-
model?: string | undefined;
|
|
1423
|
-
area?: string | undefined;
|
|
1424
|
-
approval?: "required" | "granted" | "denied" | undefined;
|
|
1425
|
-
workResult?: {
|
|
1426
|
-
output: JsonValue;
|
|
1427
|
-
completedAt: string;
|
|
1428
|
-
} | undefined;
|
|
1429
|
-
waitingForMessages?: boolean | undefined;
|
|
1430
|
-
workflowPhase?: string | undefined;
|
|
1431
|
-
parentTaskId?: string | undefined;
|
|
1432
|
-
parentTaskAttempt?: number | undefined;
|
|
1433
|
-
pendingCommunicationReceiptIds?: readonly string[] | undefined;
|
|
1434
|
-
failureReceiptId?: string | undefined;
|
|
1435
|
-
execution?: {
|
|
1436
|
-
provider: string;
|
|
1437
|
-
sessionId: string;
|
|
1438
|
-
environmentId?: string | undefined;
|
|
1439
|
-
harness?: string | undefined;
|
|
1440
|
-
traceId?: string | undefined;
|
|
1441
|
-
} | undefined;
|
|
1442
|
-
lastProgressAt?: string | undefined;
|
|
1443
|
-
stalledAt?: string | undefined;
|
|
1444
|
-
stalledReason?: string | undefined;
|
|
1445
|
-
needsHumanAction?: string | undefined;
|
|
1446
|
-
needsHumanNotifiedAt?: string | undefined;
|
|
1447
|
-
reservedUsd?: number | undefined;
|
|
1448
|
-
reservedAt?: string | undefined;
|
|
1449
|
-
usage?: {
|
|
1450
|
-
costUsd: number;
|
|
1451
|
-
inputTokens: number;
|
|
1452
|
-
outputTokens: number;
|
|
1453
|
-
cacheReadTokens: number;
|
|
1454
|
-
cacheWriteTokens: number;
|
|
1455
|
-
steps: Record<string, number>;
|
|
1456
|
-
} | undefined;
|
|
1457
|
-
settledUsd?: number | undefined;
|
|
1458
|
-
question?: {
|
|
1459
|
-
text: string;
|
|
1460
|
-
options: readonly string[];
|
|
1461
|
-
closingOptions?: readonly string[] | undefined;
|
|
1462
|
-
answer?: string | undefined;
|
|
1463
|
-
answeredBy?: string | undefined;
|
|
1464
|
-
} | undefined;
|
|
1465
|
-
questionTaskId?: string | undefined;
|
|
1466
|
-
answerEventIds?: readonly string[] | undefined;
|
|
1467
|
-
changeId?: string | undefined;
|
|
1468
|
-
reportRef?: string | undefined;
|
|
1469
|
-
}>>>>>;
|
|
1470
|
-
question: z.ZodNullable<Omit<z.ZodObject<{
|
|
1471
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
1472
|
-
id: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
1473
|
-
repositoryIds: z.ZodReadonly<z.ZodTuple<[z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>], z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>>;
|
|
1474
|
-
kind: z.ZodType<TaskKind, unknown, z.core.$ZodTypeInternals<TaskKind, unknown>>;
|
|
1475
|
-
model: z.ZodOptional<z.ZodString>;
|
|
1476
|
-
area: z.ZodOptional<z.ZodString>;
|
|
1477
1616
|
state: z.ZodEnum<{
|
|
1478
1617
|
queued: "queued";
|
|
1479
1618
|
running: "running";
|
|
@@ -1484,238 +1623,49 @@ declare const sessionPageSchema: z.ZodObject<{
|
|
|
1484
1623
|
needs_human: "needs_human";
|
|
1485
1624
|
cancelled: "cancelled";
|
|
1486
1625
|
}>;
|
|
1626
|
+
updatedAt: z.ZodISODateTime;
|
|
1627
|
+
createdAt: z.ZodISODateTime;
|
|
1628
|
+
repositoryIds: z.ZodReadonly<z.ZodTuple<[z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>], z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>>;
|
|
1629
|
+
kind: z.ZodType<TaskKind, unknown, z.core.$ZodTypeInternals<TaskKind, unknown>>;
|
|
1487
1630
|
approval: z.ZodOptional<z.ZodEnum<{
|
|
1488
1631
|
required: "required";
|
|
1489
1632
|
granted: "granted";
|
|
1490
1633
|
denied: "denied";
|
|
1491
1634
|
}>>;
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1635
|
+
rootTaskId: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
1636
|
+
parentTaskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
1637
|
+
stalledReason: z.ZodOptional<z.ZodString>;
|
|
1638
|
+
needsHumanAction: z.ZodOptional<z.ZodString>;
|
|
1639
|
+
changeId: z.ZodOptional<z.ZodType<`chg_${string}`, string, z.core.$ZodTypeInternals<`chg_${string}`, string>>>;
|
|
1496
1640
|
work: z.ZodObject<{
|
|
1497
1641
|
title: z.ZodString;
|
|
1498
|
-
input: z.ZodCustom<JsonValue, JsonValue>;
|
|
1499
|
-
completionCriteria: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
1500
|
-
workflow: z.core.$ZodBranded<z.ZodObject<{
|
|
1501
|
-
id: z.ZodString;
|
|
1502
|
-
version: z.ZodNumber;
|
|
1503
|
-
}, z.core.$strict>, "WorkflowBinding", "out">;
|
|
1504
1642
|
route: z.ZodOptional<z.core.$ZodBranded<z.ZodObject<{
|
|
1505
1643
|
id: z.ZodString;
|
|
1506
1644
|
version: z.ZodNumber;
|
|
1507
1645
|
}, z.core.$strict>, "AgentRouteBinding", "out">>;
|
|
1508
|
-
}, z.core.$
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
}, z.core.$strict>>;
|
|
1532
|
-
lastProgressAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1533
|
-
stalledAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1534
|
-
stalledReason: z.ZodOptional<z.ZodString>;
|
|
1535
|
-
needsHumanAction: z.ZodOptional<z.ZodString>;
|
|
1536
|
-
needsHumanNotifiedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1537
|
-
reservedUsd: z.ZodOptional<z.ZodNumber>;
|
|
1538
|
-
reservedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1539
|
-
usage: z.ZodOptional<z.ZodObject<{
|
|
1540
|
-
costUsd: z.ZodNumber;
|
|
1541
|
-
inputTokens: z.ZodNumber;
|
|
1542
|
-
outputTokens: z.ZodNumber;
|
|
1543
|
-
cacheReadTokens: z.ZodNumber;
|
|
1544
|
-
cacheWriteTokens: z.ZodNumber;
|
|
1545
|
-
steps: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
1546
|
-
}, z.core.$strict>>;
|
|
1547
|
-
settledUsd: z.ZodOptional<z.ZodNumber>;
|
|
1548
|
-
question: z.ZodOptional<z.ZodObject<{
|
|
1549
|
-
text: z.ZodString;
|
|
1550
|
-
options: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
1551
|
-
closingOptions: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1552
|
-
answer: z.ZodOptional<z.ZodString>;
|
|
1553
|
-
answeredBy: z.ZodOptional<z.ZodString>;
|
|
1554
|
-
}, z.core.$strict>>;
|
|
1555
|
-
questionTaskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
1556
|
-
answerEventIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<`ans_${string}`, string, z.core.$ZodTypeInternals<`ans_${string}`, string>>>>>;
|
|
1557
|
-
changeId: z.ZodOptional<z.ZodType<`chg_${string}`, string, z.core.$ZodTypeInternals<`chg_${string}`, string>>>;
|
|
1558
|
-
reportRef: z.ZodOptional<z.ZodString>;
|
|
1559
|
-
createdAt: z.ZodISODateTime;
|
|
1560
|
-
updatedAt: z.ZodISODateTime;
|
|
1561
|
-
}, z.core.$strict>, keyof z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>> & z.ZodType<Task, {
|
|
1562
|
-
schemaVersion: 1;
|
|
1563
|
-
id: string;
|
|
1564
|
-
repositoryIds: readonly [string, ...string[]];
|
|
1565
|
-
kind: unknown;
|
|
1566
|
-
state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
|
|
1567
|
-
origin: {
|
|
1568
|
-
signalId?: string | undefined;
|
|
1569
|
-
operator?: string | undefined;
|
|
1570
|
-
};
|
|
1571
|
-
work: {
|
|
1572
|
-
title: string;
|
|
1573
|
-
input: JsonValue;
|
|
1574
|
-
completionCriteria: readonly string[];
|
|
1575
|
-
workflow: {
|
|
1576
|
-
id: string;
|
|
1577
|
-
version: number;
|
|
1578
|
-
};
|
|
1579
|
-
route?: {
|
|
1580
|
-
id: string;
|
|
1581
|
-
version: number;
|
|
1582
|
-
} | undefined;
|
|
1583
|
-
};
|
|
1584
|
-
rootTaskId: string;
|
|
1585
|
-
replyTo: {
|
|
1586
|
-
channel: string;
|
|
1587
|
-
address: string;
|
|
1588
|
-
};
|
|
1589
|
-
attempt: number;
|
|
1590
|
-
createdAt: string;
|
|
1591
|
-
updatedAt: string;
|
|
1592
|
-
model?: string | undefined;
|
|
1593
|
-
area?: string | undefined;
|
|
1594
|
-
approval?: "required" | "granted" | "denied" | undefined;
|
|
1595
|
-
workResult?: {
|
|
1596
|
-
output: JsonValue;
|
|
1597
|
-
completedAt: string;
|
|
1598
|
-
} | undefined;
|
|
1599
|
-
waitingForMessages?: boolean | undefined;
|
|
1600
|
-
workflowPhase?: string | undefined;
|
|
1601
|
-
parentTaskId?: string | undefined;
|
|
1602
|
-
parentTaskAttempt?: number | undefined;
|
|
1603
|
-
pendingCommunicationReceiptIds?: readonly string[] | undefined;
|
|
1604
|
-
failureReceiptId?: string | undefined;
|
|
1605
|
-
execution?: {
|
|
1606
|
-
provider: string;
|
|
1607
|
-
sessionId: string;
|
|
1608
|
-
environmentId?: string | undefined;
|
|
1609
|
-
harness?: string | undefined;
|
|
1610
|
-
traceId?: string | undefined;
|
|
1611
|
-
} | undefined;
|
|
1612
|
-
lastProgressAt?: string | undefined;
|
|
1613
|
-
stalledAt?: string | undefined;
|
|
1614
|
-
stalledReason?: string | undefined;
|
|
1615
|
-
needsHumanAction?: string | undefined;
|
|
1616
|
-
needsHumanNotifiedAt?: string | undefined;
|
|
1617
|
-
reservedUsd?: number | undefined;
|
|
1618
|
-
reservedAt?: string | undefined;
|
|
1619
|
-
usage?: {
|
|
1620
|
-
costUsd: number;
|
|
1621
|
-
inputTokens: number;
|
|
1622
|
-
outputTokens: number;
|
|
1623
|
-
cacheReadTokens: number;
|
|
1624
|
-
cacheWriteTokens: number;
|
|
1625
|
-
steps: Record<string, number>;
|
|
1626
|
-
} | undefined;
|
|
1627
|
-
settledUsd?: number | undefined;
|
|
1628
|
-
question?: {
|
|
1629
|
-
text: string;
|
|
1630
|
-
options: readonly string[];
|
|
1631
|
-
closingOptions?: readonly string[] | undefined;
|
|
1632
|
-
answer?: string | undefined;
|
|
1633
|
-
answeredBy?: string | undefined;
|
|
1634
|
-
} | undefined;
|
|
1635
|
-
questionTaskId?: string | undefined;
|
|
1636
|
-
answerEventIds?: readonly string[] | undefined;
|
|
1637
|
-
changeId?: string | undefined;
|
|
1638
|
-
reportRef?: string | undefined;
|
|
1639
|
-
}, z.core.$ZodTypeInternals<Task, {
|
|
1640
|
-
schemaVersion: 1;
|
|
1641
|
-
id: string;
|
|
1642
|
-
repositoryIds: readonly [string, ...string[]];
|
|
1643
|
-
kind: unknown;
|
|
1644
|
-
state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
|
|
1645
|
-
origin: {
|
|
1646
|
-
signalId?: string | undefined;
|
|
1647
|
-
operator?: string | undefined;
|
|
1648
|
-
};
|
|
1649
|
-
work: {
|
|
1650
|
-
title: string;
|
|
1651
|
-
input: JsonValue;
|
|
1652
|
-
completionCriteria: readonly string[];
|
|
1653
|
-
workflow: {
|
|
1654
|
-
id: string;
|
|
1655
|
-
version: number;
|
|
1656
|
-
};
|
|
1657
|
-
route?: {
|
|
1658
|
-
id: string;
|
|
1659
|
-
version: number;
|
|
1660
|
-
} | undefined;
|
|
1661
|
-
};
|
|
1662
|
-
rootTaskId: string;
|
|
1663
|
-
replyTo: {
|
|
1664
|
-
channel: string;
|
|
1665
|
-
address: string;
|
|
1666
|
-
};
|
|
1667
|
-
attempt: number;
|
|
1668
|
-
createdAt: string;
|
|
1669
|
-
updatedAt: string;
|
|
1670
|
-
model?: string | undefined;
|
|
1671
|
-
area?: string | undefined;
|
|
1672
|
-
approval?: "required" | "granted" | "denied" | undefined;
|
|
1673
|
-
workResult?: {
|
|
1674
|
-
output: JsonValue;
|
|
1675
|
-
completedAt: string;
|
|
1676
|
-
} | undefined;
|
|
1677
|
-
waitingForMessages?: boolean | undefined;
|
|
1678
|
-
workflowPhase?: string | undefined;
|
|
1679
|
-
parentTaskId?: string | undefined;
|
|
1680
|
-
parentTaskAttempt?: number | undefined;
|
|
1681
|
-
pendingCommunicationReceiptIds?: readonly string[] | undefined;
|
|
1682
|
-
failureReceiptId?: string | undefined;
|
|
1683
|
-
execution?: {
|
|
1684
|
-
provider: string;
|
|
1685
|
-
sessionId: string;
|
|
1686
|
-
environmentId?: string | undefined;
|
|
1687
|
-
harness?: string | undefined;
|
|
1688
|
-
traceId?: string | undefined;
|
|
1689
|
-
} | undefined;
|
|
1690
|
-
lastProgressAt?: string | undefined;
|
|
1691
|
-
stalledAt?: string | undefined;
|
|
1692
|
-
stalledReason?: string | undefined;
|
|
1693
|
-
needsHumanAction?: string | undefined;
|
|
1694
|
-
needsHumanNotifiedAt?: string | undefined;
|
|
1695
|
-
reservedUsd?: number | undefined;
|
|
1696
|
-
reservedAt?: string | undefined;
|
|
1697
|
-
usage?: {
|
|
1698
|
-
costUsd: number;
|
|
1699
|
-
inputTokens: number;
|
|
1700
|
-
outputTokens: number;
|
|
1701
|
-
cacheReadTokens: number;
|
|
1702
|
-
cacheWriteTokens: number;
|
|
1703
|
-
steps: Record<string, number>;
|
|
1704
|
-
} | undefined;
|
|
1705
|
-
settledUsd?: number | undefined;
|
|
1706
|
-
question?: {
|
|
1707
|
-
text: string;
|
|
1708
|
-
options: readonly string[];
|
|
1709
|
-
closingOptions?: readonly string[] | undefined;
|
|
1710
|
-
answer?: string | undefined;
|
|
1711
|
-
answeredBy?: string | undefined;
|
|
1712
|
-
} | undefined;
|
|
1713
|
-
questionTaskId?: string | undefined;
|
|
1714
|
-
answerEventIds?: readonly string[] | undefined;
|
|
1715
|
-
changeId?: string | undefined;
|
|
1716
|
-
reportRef?: string | undefined;
|
|
1717
|
-
}>>>;
|
|
1718
|
-
}, z.core.$strict>>>;
|
|
1646
|
+
}, z.core.$strip>;
|
|
1647
|
+
}, z.core.$strip>>>>;
|
|
1648
|
+
finding: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1649
|
+
priority: z.ZodEnum<{
|
|
1650
|
+
P0: "P0";
|
|
1651
|
+
P1: "P1";
|
|
1652
|
+
P2: "P2";
|
|
1653
|
+
P3: "P3";
|
|
1654
|
+
}>;
|
|
1655
|
+
category: z.ZodEnum<{
|
|
1656
|
+
security: "security";
|
|
1657
|
+
correctness: "correctness";
|
|
1658
|
+
reliability: "reliability";
|
|
1659
|
+
performance: "performance";
|
|
1660
|
+
compatibility: "compatibility";
|
|
1661
|
+
accessibility: "accessibility";
|
|
1662
|
+
documentation: "documentation";
|
|
1663
|
+
maintainability: "maintainability";
|
|
1664
|
+
testing: "testing";
|
|
1665
|
+
usability: "usability";
|
|
1666
|
+
}>;
|
|
1667
|
+
}, z.core.$strict>>>;
|
|
1668
|
+
}, z.core.$strip>>>;
|
|
1719
1669
|
nextCursor: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1720
1670
|
totalCount: z.ZodOptional<z.ZodNumber>;
|
|
1721
1671
|
}, z.core.$strict>;
|
|
@@ -1764,5 +1714,5 @@ type PendingFollowUp = Readonly<Omit<z.output<typeof pendingFollowUpSchema>, "at
|
|
|
1764
1714
|
readonly attachments?: readonly ImageAttachment[];
|
|
1765
1715
|
};
|
|
1766
1716
|
//#endregion
|
|
1767
|
-
export { AnswerSessionQuestionRequest, ApiAgent, ApiAgentInput, ControlSessionRequest, CreateSessionRequest, PendingFollowUp, RepositoryDetails, RepositorySummary, SendSessionMessageRequest, SessionInputResponse, SessionPage, SessionView, SubmitSessionInputRequest, answerSessionQuestionRequestSchema, apiAgentSchema, controlSessionRequestSchema, createSessionRequestSchema, pendingFollowUpSchema, repositoryDetailsSchema, repositorySummarySchema, sendSessionMessageRequestSchema, sessionInputResponseSchema, sessionPageSchema, sessionViewSchema, submitSessionInputRequestSchema };
|
|
1717
|
+
export { AnswerSessionQuestionRequest, ApiAgent, ApiAgentInput, ControlSessionRequest, CreateSessionRequest, PendingFollowUp, RepositoryDetails, RepositorySummary, SendSessionMessageRequest, SessionInputResponse, SessionPage, SessionPullRequest, SessionSummary, SessionView, SessionWorkGroup, SessionWorkResult, SessionWorkTask, SubmitSessionInputRequest, answerSessionQuestionRequestSchema, apiAgentSchema, controlSessionRequestSchema, createSessionRequestSchema, pendingFollowUpSchema, repositoryDetailsSchema, repositorySummarySchema, sendSessionMessageRequestSchema, sessionInputResponseSchema, sessionPageSchema, sessionPullRequestSchema, sessionPullRequestStateSchema, sessionSummarySchema, sessionViewSchema, sessionWorkGroupSchema, sessionWorkResultSchema, sessionWorkTaskSchema, submitSessionInputRequestSchema };
|
|
1768
1718
|
//# sourceMappingURL=api-contracts.d.mts.map
|