@cat-factory/contracts 0.235.0 → 0.237.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/companion.js +1 -1
- package/dist/companion.js.map +1 -1
- package/dist/debug-api.d.ts +66 -0
- package/dist/debug-api.d.ts.map +1 -1
- package/dist/debug-api.js +44 -1
- package/dist/debug-api.js.map +1 -1
- package/dist/execution.d.ts +0 -194
- package/dist/execution.d.ts.map +1 -1
- package/dist/execution.js +8 -87
- package/dist/execution.js.map +1 -1
- package/dist/human-verdict-gates.d.ts +4 -0
- package/dist/human-verdict-gates.d.ts.map +1 -1
- package/dist/human-verdict-gates.js +10 -2
- package/dist/human-verdict-gates.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/observability.d.ts +59 -0
- package/dist/observability.d.ts.map +1 -1
- package/dist/observability.js +69 -0
- package/dist/observability.js.map +1 -1
- package/dist/public-decisions.d.ts +878 -6
- package/dist/public-decisions.d.ts.map +1 -1
- package/dist/public-decisions.js +431 -13
- package/dist/public-decisions.js.map +1 -1
- package/dist/routes/debug-api.d.ts +65 -0
- package/dist/routes/debug-api.d.ts.map +1 -1
- package/dist/routes/debug-api.js +9 -1
- package/dist/routes/debug-api.js.map +1 -1
- package/dist/routes/public-decisions.d.ts +5957 -41
- package/dist/routes/public-decisions.d.ts.map +1 -1
- package/dist/routes/public-decisions.js +239 -1
- package/dist/routes/public-decisions.js.map +1 -1
- package/dist/step-decisions.d.ts +130 -0
- package/dist/step-decisions.d.ts.map +1 -0
- package/dist/step-decisions.js +118 -0
- package/dist/step-decisions.js.map +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-decisions.d.ts","sourceRoot":"","sources":["../../src/routes/public-decisions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqC,MAAM,yB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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhD,CAAA;AAEF,6EAA6E;AAC7E,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMnD,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ContractNoBody, defineApiContract, withObjectKeys } from '@toad-contracts/valibot';
|
|
2
2
|
import * as v from 'valibot';
|
|
3
|
-
import {
|
|
3
|
+
import { brainstormStageSchema } from '../brainstorm.js';
|
|
4
|
+
import { publicApproveStepSchema, publicChallengePrReviewFindingSchema, publicChooseForkSchema, publicRejectStepSchema, publicRequestGateFixSchema, publicRequestStepChangesSchema, publicResolveAgentDecisionSchema, publicResolveInputGateSchema, publicResolveJudgeSchema, publicResolvePrReviewSchema, publicResolveStepExceededSchema, publicDecisionListSchema, publicIncorporateSchema, publicReplyFindingSchema, publicResolveExceededSchema, publicSetFindingStatusSchema, } from '../public-decisions.js';
|
|
4
5
|
import { errorResponses, singleStringParam } from './_shared.js';
|
|
5
6
|
// ---------------------------------------------------------------------------
|
|
6
7
|
// Public-API route contracts for a run's PARKED HUMAN DECISIONS — the external counterpart of
|
|
@@ -18,6 +19,15 @@ import { errorResponses, singleStringParam } from './_shared.js';
|
|
|
18
19
|
// ---------------------------------------------------------------------------
|
|
19
20
|
const runIdParams = singleStringParam('runId');
|
|
20
21
|
const runItemParams = withObjectKeys(v.object({ runId: v.string(), itemId: v.string() }));
|
|
22
|
+
const runApprovalParams = withObjectKeys(v.object({ runId: v.string(), approvalId: v.string() }));
|
|
23
|
+
const runDecisionParams = withObjectKeys(v.object({ runId: v.string(), decisionId: v.string() }));
|
|
24
|
+
const runFindingParams = withObjectKeys(v.object({ runId: v.string(), findingId: v.string() }));
|
|
25
|
+
// The brainstorm routes are STAGE-keyed: a block may hold one live `requirements` session and one
|
|
26
|
+
// live `architecture` session at once, so the stage is part of the address rather than something
|
|
27
|
+
// the server picks. Validated by the contract, so an unknown stage is a shared 400 rather than a
|
|
28
|
+
// controller's hand-rolled refusal.
|
|
29
|
+
const runStageParams = withObjectKeys(v.object({ runId: v.string(), stage: brainstormStageSchema }));
|
|
30
|
+
const runStageItemParams = withObjectKeys(v.object({ runId: v.string(), stage: brainstormStageSchema, itemId: v.string() }));
|
|
21
31
|
/** List a run's currently-parked decisions (findings, fork options) — `read`. */
|
|
22
32
|
export const listPublicRunDecisionsContract = defineApiContract({
|
|
23
33
|
method: 'get',
|
|
@@ -115,4 +125,232 @@ export const resolvePublicRunInputGateContract = defineApiContract({
|
|
|
115
125
|
requestBodySchema: publicResolveInputGateSchema,
|
|
116
126
|
responsesByStatusCode: { 200: publicDecisionListSchema, ...errorResponses },
|
|
117
127
|
});
|
|
128
|
+
// ---- approval gates ---------------------------------------------------------
|
|
129
|
+
//
|
|
130
|
+
// Addressed by the gate's own `approvalId`, read from `GET .../decisions`. That is not ceremony
|
|
131
|
+
// over a value the caller never chose (the reason the requirements routes deliberately drop the
|
|
132
|
+
// review id): the engine ARBITRATES a parked gate by this id, so a call that omitted it would have
|
|
133
|
+
// the server pick whichever gate the run has reached by the time it lands — which is precisely how
|
|
134
|
+
// a slow integration would approve a step nobody looked at.
|
|
135
|
+
/** Approve a parked gate's proposal (optionally replacing it with an edited one). */
|
|
136
|
+
export const approvePublicRunStepContract = defineApiContract({
|
|
137
|
+
method: 'post',
|
|
138
|
+
requestPathParamsSchema: runApprovalParams,
|
|
139
|
+
pathResolver: ({ runId, approvalId }) => `/api/v1/runs/${runId}/decisions/approvals/${approvalId}/approve`,
|
|
140
|
+
requestBodySchema: publicApproveStepSchema,
|
|
141
|
+
responsesByStatusCode: { 200: publicDecisionListSchema, ...errorResponses },
|
|
142
|
+
});
|
|
143
|
+
/** Request changes on a parked gate: the step re-runs with the supplied guidance. */
|
|
144
|
+
export const requestPublicRunStepChangesContract = defineApiContract({
|
|
145
|
+
method: 'post',
|
|
146
|
+
requestPathParamsSchema: runApprovalParams,
|
|
147
|
+
pathResolver: ({ runId, approvalId }) => `/api/v1/runs/${runId}/decisions/approvals/${approvalId}/request-changes`,
|
|
148
|
+
requestBodySchema: publicRequestStepChangesSchema,
|
|
149
|
+
responsesByStatusCode: { 200: publicDecisionListSchema, ...errorResponses },
|
|
150
|
+
});
|
|
151
|
+
/** Reject a parked gate: the run stops entirely (a terminal, retryable failure). */
|
|
152
|
+
export const rejectPublicRunStepContract = defineApiContract({
|
|
153
|
+
method: 'post',
|
|
154
|
+
requestPathParamsSchema: runApprovalParams,
|
|
155
|
+
pathResolver: ({ runId, approvalId }) => `/api/v1/runs/${runId}/decisions/approvals/${approvalId}/reject`,
|
|
156
|
+
requestBodySchema: publicRejectStepSchema,
|
|
157
|
+
responsesByStatusCode: { 200: publicDecisionListSchema, ...errorResponses },
|
|
158
|
+
});
|
|
159
|
+
/**
|
|
160
|
+
* Resolve a companion gate parked at its automatic-rework cap (extra round / proceed / stop and
|
|
161
|
+
* reset). Distinct from `approve` on purpose, exactly as in the app: a capped companion gate is
|
|
162
|
+
* asking a different question, and letting the generic approve settle it would ship output the
|
|
163
|
+
* companion never passed.
|
|
164
|
+
*/
|
|
165
|
+
export const resolvePublicRunStepExceededContract = defineApiContract({
|
|
166
|
+
method: 'post',
|
|
167
|
+
requestPathParamsSchema: runApprovalParams,
|
|
168
|
+
pathResolver: ({ runId, approvalId }) => `/api/v1/runs/${runId}/decisions/approvals/${approvalId}/resolve-exceeded`,
|
|
169
|
+
requestBodySchema: publicResolveStepExceededSchema,
|
|
170
|
+
responsesByStatusCode: { 200: publicDecisionListSchema, ...errorResponses },
|
|
171
|
+
});
|
|
172
|
+
// ---- agent-raised decisions -------------------------------------------------
|
|
173
|
+
/**
|
|
174
|
+
* Answer a decision an agent raised mid-work. Resolving RE-RUNS the asking step with the choice
|
|
175
|
+
* folded in, rather than advancing past it — the difference from an approval gate.
|
|
176
|
+
*/
|
|
177
|
+
export const resolvePublicRunAgentDecisionContract = defineApiContract({
|
|
178
|
+
method: 'post',
|
|
179
|
+
requestPathParamsSchema: runDecisionParams,
|
|
180
|
+
pathResolver: ({ runId, decisionId }) => `/api/v1/runs/${runId}/decisions/questions/${decisionId}/answer`,
|
|
181
|
+
requestBodySchema: publicResolveAgentDecisionSchema,
|
|
182
|
+
responsesByStatusCode: { 200: publicDecisionListSchema, ...errorResponses },
|
|
183
|
+
});
|
|
184
|
+
// ---- clarity review (bug-report triage) -------------------------------------
|
|
185
|
+
//
|
|
186
|
+
// The requirements twin, verb for verb, and addressed the same way: by ITEM id, with the live
|
|
187
|
+
// review resolved from the run's block. The INTERNAL clarity routes are review-keyed
|
|
188
|
+
// (`/clarity-reviews/:reviewId/items/:itemId/reply`); copying that here would make a headless
|
|
189
|
+
// caller thread through a review id it never chose.
|
|
190
|
+
/** Answer one clarity finding. */
|
|
191
|
+
export const replyPublicRunClarityFindingContract = defineApiContract({
|
|
192
|
+
method: 'post',
|
|
193
|
+
requestPathParamsSchema: runItemParams,
|
|
194
|
+
pathResolver: ({ runId, itemId }) => `/api/v1/runs/${runId}/decisions/clarity/findings/${itemId}/reply`,
|
|
195
|
+
requestBodySchema: publicReplyFindingSchema,
|
|
196
|
+
responsesByStatusCode: { 200: publicDecisionListSchema, ...errorResponses },
|
|
197
|
+
});
|
|
198
|
+
/** Dismiss a clarity finding as not applicable, or reopen one dismissed by mistake. */
|
|
199
|
+
export const setPublicRunClarityFindingStatusContract = defineApiContract({
|
|
200
|
+
method: 'patch',
|
|
201
|
+
requestPathParamsSchema: runItemParams,
|
|
202
|
+
pathResolver: ({ runId, itemId }) => `/api/v1/runs/${runId}/decisions/clarity/findings/${itemId}`,
|
|
203
|
+
requestBodySchema: publicSetFindingStatusSchema,
|
|
204
|
+
responsesByStatusCode: { 200: publicDecisionListSchema, ...errorResponses },
|
|
205
|
+
});
|
|
206
|
+
/** Fold the recorded answers into the standardized bug report. ASYNCHRONOUS, as requirements. */
|
|
207
|
+
export const incorporatePublicRunClarityContract = defineApiContract({
|
|
208
|
+
method: 'post',
|
|
209
|
+
requestPathParamsSchema: runIdParams,
|
|
210
|
+
pathResolver: ({ runId }) => `/api/v1/runs/${runId}/decisions/clarity/incorporate`,
|
|
211
|
+
requestBodySchema: publicIncorporateSchema,
|
|
212
|
+
responsesByStatusCode: { 200: publicDecisionListSchema, ...errorResponses },
|
|
213
|
+
});
|
|
214
|
+
/** Run one more triage pass over the clarified report. */
|
|
215
|
+
export const reReviewPublicRunClarityContract = defineApiContract({
|
|
216
|
+
method: 'post',
|
|
217
|
+
requestPathParamsSchema: runIdParams,
|
|
218
|
+
pathResolver: ({ runId }) => `/api/v1/runs/${runId}/decisions/clarity/re-review`,
|
|
219
|
+
requestBodySchema: ContractNoBody,
|
|
220
|
+
responsesByStatusCode: { 200: publicDecisionListSchema, ...errorResponses },
|
|
221
|
+
});
|
|
222
|
+
/** Settle the clarity phase and advance the parked run. */
|
|
223
|
+
export const proceedPublicRunClarityContract = defineApiContract({
|
|
224
|
+
method: 'post',
|
|
225
|
+
requestPathParamsSchema: runIdParams,
|
|
226
|
+
pathResolver: ({ runId }) => `/api/v1/runs/${runId}/decisions/clarity/proceed`,
|
|
227
|
+
requestBodySchema: ContractNoBody,
|
|
228
|
+
responsesByStatusCode: { 200: publicDecisionListSchema, ...errorResponses },
|
|
229
|
+
});
|
|
230
|
+
/** Resolve a clarity review that hit its iteration cap (extra round / proceed / stop and reset). */
|
|
231
|
+
export const resolvePublicRunClarityExceededContract = defineApiContract({
|
|
232
|
+
method: 'post',
|
|
233
|
+
requestPathParamsSchema: runIdParams,
|
|
234
|
+
pathResolver: ({ runId }) => `/api/v1/runs/${runId}/decisions/clarity/resolve-exceeded`,
|
|
235
|
+
requestBodySchema: publicResolveExceededSchema,
|
|
236
|
+
responsesByStatusCode: { 200: publicDecisionListSchema, ...errorResponses },
|
|
237
|
+
});
|
|
238
|
+
// ---- brainstorm dialogues ---------------------------------------------------
|
|
239
|
+
/** Respond to one proposed option (pick it, or steer it). */
|
|
240
|
+
export const replyPublicRunBrainstormOptionContract = defineApiContract({
|
|
241
|
+
method: 'post',
|
|
242
|
+
requestPathParamsSchema: runStageItemParams,
|
|
243
|
+
pathResolver: ({ runId, stage, itemId }) => `/api/v1/runs/${runId}/decisions/brainstorm/${stage}/options/${itemId}/reply`,
|
|
244
|
+
requestBodySchema: publicReplyFindingSchema,
|
|
245
|
+
responsesByStatusCode: { 200: publicDecisionListSchema, ...errorResponses },
|
|
246
|
+
});
|
|
247
|
+
/** Dismiss a proposed option, or reopen one dismissed by mistake. */
|
|
248
|
+
export const setPublicRunBrainstormOptionStatusContract = defineApiContract({
|
|
249
|
+
method: 'patch',
|
|
250
|
+
requestPathParamsSchema: runStageItemParams,
|
|
251
|
+
pathResolver: ({ runId, stage, itemId }) => `/api/v1/runs/${runId}/decisions/brainstorm/${stage}/options/${itemId}`,
|
|
252
|
+
requestBodySchema: publicSetFindingStatusSchema,
|
|
253
|
+
responsesByStatusCode: { 200: publicDecisionListSchema, ...errorResponses },
|
|
254
|
+
});
|
|
255
|
+
/** Fold the picks into one converged direction. ASYNCHRONOUS, as requirements. */
|
|
256
|
+
export const incorporatePublicRunBrainstormContract = defineApiContract({
|
|
257
|
+
method: 'post',
|
|
258
|
+
requestPathParamsSchema: runStageParams,
|
|
259
|
+
pathResolver: ({ runId, stage }) => `/api/v1/runs/${runId}/decisions/brainstorm/${stage}/incorporate`,
|
|
260
|
+
requestBodySchema: publicIncorporateSchema,
|
|
261
|
+
responsesByStatusCode: { 200: publicDecisionListSchema, ...errorResponses },
|
|
262
|
+
});
|
|
263
|
+
/** Run one more brainstorm pass against the converged direction. */
|
|
264
|
+
export const reReviewPublicRunBrainstormContract = defineApiContract({
|
|
265
|
+
method: 'post',
|
|
266
|
+
requestPathParamsSchema: runStageParams,
|
|
267
|
+
pathResolver: ({ runId, stage }) => `/api/v1/runs/${runId}/decisions/brainstorm/${stage}/re-review`,
|
|
268
|
+
requestBodySchema: ContractNoBody,
|
|
269
|
+
responsesByStatusCode: { 200: publicDecisionListSchema, ...errorResponses },
|
|
270
|
+
});
|
|
271
|
+
/** Settle the brainstorm (the last converged direction wins downstream) and advance the run. */
|
|
272
|
+
export const proceedPublicRunBrainstormContract = defineApiContract({
|
|
273
|
+
method: 'post',
|
|
274
|
+
requestPathParamsSchema: runStageParams,
|
|
275
|
+
pathResolver: ({ runId, stage }) => `/api/v1/runs/${runId}/decisions/brainstorm/${stage}/proceed`,
|
|
276
|
+
requestBodySchema: ContractNoBody,
|
|
277
|
+
responsesByStatusCode: { 200: publicDecisionListSchema, ...errorResponses },
|
|
278
|
+
});
|
|
279
|
+
/** Resolve a brainstorm that hit its iteration cap (extra round / proceed / stop and reset). */
|
|
280
|
+
export const resolvePublicRunBrainstormExceededContract = defineApiContract({
|
|
281
|
+
method: 'post',
|
|
282
|
+
requestPathParamsSchema: runStageParams,
|
|
283
|
+
pathResolver: ({ runId, stage }) => `/api/v1/runs/${runId}/decisions/brainstorm/${stage}/resolve-exceeded`,
|
|
284
|
+
requestBodySchema: publicResolveExceededSchema,
|
|
285
|
+
responsesByStatusCode: { 200: publicDecisionListSchema, ...errorResponses },
|
|
286
|
+
});
|
|
287
|
+
// ---- PR deep review ---------------------------------------------------------
|
|
288
|
+
/**
|
|
289
|
+
* Resolve a parked PR deep review with the curated selection. `fix` and `post` act on the real
|
|
290
|
+
* pull request (a fixer commit, inline review comments), which is the one place this surface has
|
|
291
|
+
* an effect outside the platform — reachable only for a board task run, since a `pr-reviewer` step
|
|
292
|
+
* is container-backed and the jobs surface is inline-only.
|
|
293
|
+
*/
|
|
294
|
+
export const resolvePublicRunPrReviewContract = defineApiContract({
|
|
295
|
+
method: 'post',
|
|
296
|
+
requestPathParamsSchema: runIdParams,
|
|
297
|
+
pathResolver: ({ runId }) => `/api/v1/runs/${runId}/decisions/pr-review/resolve`,
|
|
298
|
+
requestBodySchema: publicResolvePrReviewSchema,
|
|
299
|
+
responsesByStatusCode: { 200: publicDecisionListSchema, ...errorResponses },
|
|
300
|
+
});
|
|
301
|
+
/** Drop one finding from the parked review entirely (curation; the run stays parked). */
|
|
302
|
+
export const dismissPublicRunPrReviewFindingContract = defineApiContract({
|
|
303
|
+
method: 'post',
|
|
304
|
+
requestPathParamsSchema: runFindingParams,
|
|
305
|
+
pathResolver: ({ runId, findingId }) => `/api/v1/runs/${runId}/decisions/pr-review/findings/${findingId}/dismiss`,
|
|
306
|
+
requestBodySchema: ContractNoBody,
|
|
307
|
+
responsesByStatusCode: { 200: publicDecisionListSchema, ...errorResponses },
|
|
308
|
+
});
|
|
309
|
+
/** Challenge one finding: a read-only investigator re-examines it against the full source. */
|
|
310
|
+
export const challengePublicRunPrReviewFindingContract = defineApiContract({
|
|
311
|
+
method: 'post',
|
|
312
|
+
requestPathParamsSchema: runFindingParams,
|
|
313
|
+
pathResolver: ({ runId, findingId }) => `/api/v1/runs/${runId}/decisions/pr-review/findings/${findingId}/challenge`,
|
|
314
|
+
requestBodySchema: publicChallengePrReviewFindingSchema,
|
|
315
|
+
responsesByStatusCode: { 200: publicDecisionListSchema, ...errorResponses },
|
|
316
|
+
});
|
|
317
|
+
// ---- human-verdict gates ----------------------------------------------------
|
|
318
|
+
//
|
|
319
|
+
// Only the two VERDICT verbs per gate. The app's environment-management affordances (recreate /
|
|
320
|
+
// destroy / pull-main on human-test, recapture on visual-confirmation) are deliberately absent:
|
|
321
|
+
// they are things a person does WHILE looking at the environment, not answers to the park, and
|
|
322
|
+
// each is an unbounded lever on infrastructure rather than a decision the run is waiting for.
|
|
323
|
+
// A caller that needs a fresh environment requests a fix or stops the run.
|
|
324
|
+
/** Confirm the change works in the ephemeral environment: tear it down and advance the run. */
|
|
325
|
+
export const confirmPublicRunHumanTestContract = defineApiContract({
|
|
326
|
+
method: 'post',
|
|
327
|
+
requestPathParamsSchema: runIdParams,
|
|
328
|
+
pathResolver: ({ runId }) => `/api/v1/runs/${runId}/decisions/human-test/confirm`,
|
|
329
|
+
requestBodySchema: ContractNoBody,
|
|
330
|
+
responsesByStatusCode: { 200: publicDecisionListSchema, ...errorResponses },
|
|
331
|
+
});
|
|
332
|
+
/** Submit findings against the tested environment and dispatch a fixer. */
|
|
333
|
+
export const requestPublicRunHumanTestFixContract = defineApiContract({
|
|
334
|
+
method: 'post',
|
|
335
|
+
requestPathParamsSchema: runIdParams,
|
|
336
|
+
pathResolver: ({ runId }) => `/api/v1/runs/${runId}/decisions/human-test/request-fix`,
|
|
337
|
+
requestBodySchema: publicRequestGateFixSchema,
|
|
338
|
+
responsesByStatusCode: { 200: publicDecisionListSchema, ...errorResponses },
|
|
339
|
+
});
|
|
340
|
+
/** Approve the reviewed screenshots and advance the run. */
|
|
341
|
+
export const approvePublicRunVisualConfirmContract = defineApiContract({
|
|
342
|
+
method: 'post',
|
|
343
|
+
requestPathParamsSchema: runIdParams,
|
|
344
|
+
pathResolver: ({ runId }) => `/api/v1/runs/${runId}/decisions/visual-confirmation/approve`,
|
|
345
|
+
requestBodySchema: ContractNoBody,
|
|
346
|
+
responsesByStatusCode: { 200: publicDecisionListSchema, ...errorResponses },
|
|
347
|
+
});
|
|
348
|
+
/** Submit findings against the reviewed screenshots and dispatch a fixer. */
|
|
349
|
+
export const requestPublicRunVisualConfirmFixContract = defineApiContract({
|
|
350
|
+
method: 'post',
|
|
351
|
+
requestPathParamsSchema: runIdParams,
|
|
352
|
+
pathResolver: ({ runId }) => `/api/v1/runs/${runId}/decisions/visual-confirmation/request-fix`,
|
|
353
|
+
requestBodySchema: publicRequestGateFixSchema,
|
|
354
|
+
responsesByStatusCode: { 200: publicDecisionListSchema, ...errorResponses },
|
|
355
|
+
});
|
|
118
356
|
//# sourceMappingURL=public-decisions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-decisions.js","sourceRoot":"","sources":["../../src/routes/public-decisions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAC3F,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EACL,sBAAsB,EACtB,4BAA4B,EAC5B,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,2BAA2B,EAC3B,4BAA4B,GAC7B,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEhE,8EAA8E;AAC9E,8FAA8F;AAC9F,gGAAgG;AAChG,6DAA6D;AAC7D,EAAE;AACF,4FAA4F;AAC5F,0FAA0F;AAC1F,8FAA8F;AAC9F,gBAAgB;AAChB,EAAE;AACF,6FAA6F;AAC7F,gFAAgF;AAChF,0DAA0D;AAC1D,8EAA8E;AAE9E,MAAM,WAAW,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAA;AAC9C,MAAM,aAAa,GAAG,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAA;AAEzF,iFAAiF;AACjF,MAAM,CAAC,MAAM,8BAA8B,GAAG,iBAAiB,CAAC;IAC9D,MAAM,EAAE,KAAK;IACb,uBAAuB,EAAE,WAAW;IACpC,YAAY,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,gBAAgB,KAAK,YAAY;IAC9D,qBAAqB,EAAE,EAAE,GAAG,EAAE,wBAAwB,EAAE,GAAG,cAAc,EAAE;CAC5E,CAA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AAE,wBAAwB,EAAE,GAAG,cAAc,EAAE;CAC5E,CAAC,CAAA;AAEF,4DAA4D;AAC5D,MAAM,CAAC,MAAM,qCAAqC,GAAG,iBAAiB,CAAC;IACrE,MAAM,EAAE,MAAM;IACd,uBAAuB,EAAE,WAAW;IACpC,YAAY,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,gBAAgB,KAAK,wCAAwC;IAC1F,iBAAiB,EAAE,cAAc;IACjC,qBAAqB,EAAE,EAAE,GAAG,EAAE,wBAAwB,EAAE,GAAG,cAAc,EAAE;CAC5E,CAAC,CAAA;AAEF,6EAA6E;AAC7E,MAAM,CAAC,MAAM,wCAAwC,GAAG,iBAAiB,CAAC;IACxE,MAAM,EAAE,MAAM;IACd,uBAAuB,EAAE,WAAW;IACpC,YAAY,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,gBAAgB,KAAK,4CAA4C;IAC9F,iBAAiB,EAAE,0BAA0B;IAC7C,qBAAqB,EAAE,EAAE,GAAG,EAAE,wBAAwB,EAAE,GAAG,cAAc,EAAE;CAC5E,CAAC,CAAA"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
/**
|
|
3
|
+
* A question an agent raised mid-work and would not answer unilaterally. Unlike an approval gate
|
|
4
|
+
* (which fires AFTER a step produced its output), resolving a decision RE-RUNS the same step with
|
|
5
|
+
* the choice folded in. `chosen` is null while the run is parked on it.
|
|
6
|
+
*/
|
|
7
|
+
export declare const decisionSchema: v.ObjectSchema<{
|
|
8
|
+
readonly id: v.StringSchema<undefined>;
|
|
9
|
+
readonly question: v.StringSchema<undefined>;
|
|
10
|
+
readonly options: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
11
|
+
readonly chosen: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
12
|
+
}, undefined>;
|
|
13
|
+
export type Decision = v.InferOutput<typeof decisionSchema>;
|
|
14
|
+
/**
|
|
15
|
+
* One GitHub-review-style comment left on a specific block or item of an agent's
|
|
16
|
+
* proposal — either by a human reviewing an approval gate, or by a quality
|
|
17
|
+
* companion (e.g. the Spec Reviewer) grading a structured output. `quotedSource`
|
|
18
|
+
* is the verbatim raw markdown of the block the comment targets (sliced from the
|
|
19
|
+
* proposal by its source line range), so a "request changes" re-run can quote the
|
|
20
|
+
* agent's own text back to it rather than a re-rendered approximation. It is
|
|
21
|
+
* OPTIONAL because a comment may instead anchor to a structured item via
|
|
22
|
+
* {@link anchorId} (e.g. a spec requirement / acceptance-criterion id), where the
|
|
23
|
+
* reviewed output is rendered as discrete items rather than free prose and there is
|
|
24
|
+
* no quoted source range — the shape a companion returns.
|
|
25
|
+
*/
|
|
26
|
+
export declare const stepReviewCommentSchema: v.ObjectSchema<{
|
|
27
|
+
/**
|
|
28
|
+
* Verbatim raw-markdown source of the commented prose block. Optional: a comment
|
|
29
|
+
* may instead anchor to a structured item via {@link anchorId}, where there is no
|
|
30
|
+
* prose source to quote.
|
|
31
|
+
*/
|
|
32
|
+
readonly quotedSource: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
33
|
+
/**
|
|
34
|
+
* 0-based source line range [start, end) of the commented prose block, for
|
|
35
|
+
* best-effort re-anchoring. Optional: a comment may instead anchor to a structured
|
|
36
|
+
* item via {@link anchorId} (e.g. a spec requirement/acceptance-criterion id), where
|
|
37
|
+
* there is no prose line range.
|
|
38
|
+
*/
|
|
39
|
+
readonly srcStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
40
|
+
readonly srcEnd: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
41
|
+
/**
|
|
42
|
+
* Stable id of the structured item the comment targets (e.g. a spec
|
|
43
|
+
* requirement/criterion id), when the reviewed output is rendered as structured
|
|
44
|
+
* items rather than free prose. Absent for prose-range comments.
|
|
45
|
+
*/
|
|
46
|
+
readonly anchorId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
47
|
+
/** The reviewer's note on this block / item. */
|
|
48
|
+
readonly body: v.StringSchema<undefined>;
|
|
49
|
+
}, undefined>;
|
|
50
|
+
export type StepReviewComment = v.InferOutput<typeof stepReviewCommentSchema>;
|
|
51
|
+
/**
|
|
52
|
+
* The standardized, stored verdict a quality companion produced for an output it
|
|
53
|
+
* graded — shared by every companion site (the pipeline companion step and the
|
|
54
|
+
* requirements-rework gate). The raw model response is {@link companionAssessmentSchema}
|
|
55
|
+
* (rating + summary + comments); this is the persisted, self-describing record of how
|
|
56
|
+
* that assessment was applied: the `rating`, the `threshold` it was judged against,
|
|
57
|
+
* whether it `passed`, and the `feedback` surfaced to the human / fed into a rework.
|
|
58
|
+
*/
|
|
59
|
+
export declare const companionVerdictSchema: v.ObjectSchema<{
|
|
60
|
+
/** Overall quality of the graded output (0..1, higher = better). */
|
|
61
|
+
readonly rating: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
62
|
+
/** The quality bar the rating had to reach to pass. */
|
|
63
|
+
readonly threshold: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
64
|
+
/** Whether the rating met the threshold. */
|
|
65
|
+
readonly passed: v.BooleanSchema<undefined>;
|
|
66
|
+
/** The companion's challenge / justification (its assessment summary). */
|
|
67
|
+
readonly feedback: v.StringSchema<undefined>;
|
|
68
|
+
}, undefined>;
|
|
69
|
+
export type CompanionVerdict = v.InferOutput<typeof companionVerdictSchema>;
|
|
70
|
+
/**
|
|
71
|
+
* An approval gate's lifecycle: `pending` while awaiting the human; terminal
|
|
72
|
+
* `approved`/`rejected`; `changes_requested` re-runs the step. Named (rather
|
|
73
|
+
* than inlined in {@link stepApprovalSchema}) because the public decision
|
|
74
|
+
* projection reports the same states, and two picklists spelling one lifecycle
|
|
75
|
+
* is how the SPA and the API end up disagreeing about what `pending` means.
|
|
76
|
+
*/
|
|
77
|
+
export declare const stepApprovalStatusSchema: v.PicklistSchema<["pending", "approved", "changes_requested", "rejected"], undefined>;
|
|
78
|
+
export type StepApprovalStatus = v.InferOutput<typeof stepApprovalStatusSchema>;
|
|
79
|
+
/**
|
|
80
|
+
* A human approval gate raised after a step whose pipeline marked it
|
|
81
|
+
* `requiresApproval`. Unlike a {@link Decision} (which an agent raises and which
|
|
82
|
+
* re-runs the same step on resolution), an approval gate fires once the step has
|
|
83
|
+
* already produced its `proposal`; approving advances the run (carrying the —
|
|
84
|
+
* possibly edited — proposal forward as context), requesting changes re-runs the
|
|
85
|
+
* same step with the human's `feedback` (+ per-block `comments`), and rejecting
|
|
86
|
+
* stops the run entirely (a terminal `rejected` failure the board can retry).
|
|
87
|
+
*
|
|
88
|
+
* It is also the engine's GENERIC parking mechanism, which is the trap for anything that reads it:
|
|
89
|
+
* a review gate, a brainstorm, a fork choice, a human-verdict gate, a follow-up triage and an
|
|
90
|
+
* interview all leave a `pending` approval here while being driven by their own verbs entirely.
|
|
91
|
+
* "This step has a pending approval" therefore does NOT mean "this is an approval gate"; the
|
|
92
|
+
* engine's `dedicatedParkSurface` is what tells the two apart.
|
|
93
|
+
*/
|
|
94
|
+
export declare const stepApprovalSchema: v.ObjectSchema<{
|
|
95
|
+
/** Unique id of this gate; the durable run parks on it like a decision. */
|
|
96
|
+
readonly id: v.StringSchema<undefined>;
|
|
97
|
+
/** `pending` while awaiting the human; terminal `approved`/`rejected`; `changes_requested` re-runs the step. */
|
|
98
|
+
readonly status: v.PicklistSchema<["pending", "approved", "changes_requested", "rejected"], undefined>;
|
|
99
|
+
/** The agent's output the human is reviewing (editable before approval). */
|
|
100
|
+
readonly proposal: v.StringSchema<undefined>;
|
|
101
|
+
/** When changes were requested, the human's freeform guidance fed into the re-run. */
|
|
102
|
+
readonly feedback: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
103
|
+
/** When changes were requested, per-block review comments fed into the re-run. */
|
|
104
|
+
readonly comments: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
105
|
+
/**
|
|
106
|
+
* Verbatim raw-markdown source of the commented prose block. Optional: a comment
|
|
107
|
+
* may instead anchor to a structured item via {@link anchorId}, where there is no
|
|
108
|
+
* prose source to quote.
|
|
109
|
+
*/
|
|
110
|
+
readonly quotedSource: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
111
|
+
/**
|
|
112
|
+
* 0-based source line range [start, end) of the commented prose block, for
|
|
113
|
+
* best-effort re-anchoring. Optional: a comment may instead anchor to a structured
|
|
114
|
+
* item via {@link anchorId} (e.g. a spec requirement/acceptance-criterion id), where
|
|
115
|
+
* there is no prose line range.
|
|
116
|
+
*/
|
|
117
|
+
readonly srcStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
118
|
+
readonly srcEnd: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
119
|
+
/**
|
|
120
|
+
* Stable id of the structured item the comment targets (e.g. a spec
|
|
121
|
+
* requirement/criterion id), when the reviewed output is rendered as structured
|
|
122
|
+
* items rather than free prose. Absent for prose-range comments.
|
|
123
|
+
*/
|
|
124
|
+
readonly anchorId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
125
|
+
/** The reviewer's note on this block / item. */
|
|
126
|
+
readonly body: v.StringSchema<undefined>;
|
|
127
|
+
}, undefined>, undefined>, undefined>;
|
|
128
|
+
}, undefined>;
|
|
129
|
+
export type StepApproval = v.InferOutput<typeof stepApprovalSchema>;
|
|
130
|
+
//# sourceMappingURL=step-decisions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-decisions.d.ts","sourceRoot":"","sources":["../src/step-decisions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAc5B;;;;GAIG;AACH,eAAO,MAAM,cAAc;;;;;aAKzB,CAAA;AACF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,cAAc,CAAC,CAAA;AAE3D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,uBAAuB;IAClC;;;;OAIG;;IAEH;;;;;OAKG;;;IAGH;;;;OAIG;;IAEH,gDAAgD;;aAEhD,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE7E;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB;IACjC,oEAAoE;;IAEpE,uDAAuD;;IAEvD,4CAA4C;;IAE5C,0EAA0E;;aAE1E,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE3E;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,uFAKnC,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE/E;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB;IAC7B,2EAA2E;;IAE3E,gHAAgH;;IAEhH,4EAA4E;;IAE5E,sFAAsF;;IAEtF,kFAAkF;;QApFlF;;;;WAIG;;QAEH;;;;;WAKG;;;QAGH;;;;WAIG;;QAEH,gDAAgD;;;aAkEhD,CAAA;AACF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAA"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
// ---------------------------------------------------------------------------
|
|
3
|
+
// The HUMAN decisions a run's step can be holding: a question an agent raised, the review comments
|
|
4
|
+
// a person or a quality companion left on an output, a companion's stored verdict, and the approval
|
|
5
|
+
// gate a step parks on.
|
|
6
|
+
//
|
|
7
|
+
// Split out of `execution.ts` (which keeps the run/step runtime state that COMPOSES these), for the
|
|
8
|
+
// same reason `gate.ts` and `human-verdict-gates.ts` are separate: they are one cohesive cluster,
|
|
9
|
+
// they are what a decision-answering surface reads, and `execution.ts` is at its size budget. Both
|
|
10
|
+
// files are re-exported from the package barrel, so consumers are unaffected. This file depends on
|
|
11
|
+
// nothing else in the package; `execution.ts` composes it, not the other way round.
|
|
12
|
+
// ---------------------------------------------------------------------------
|
|
13
|
+
/**
|
|
14
|
+
* A question an agent raised mid-work and would not answer unilaterally. Unlike an approval gate
|
|
15
|
+
* (which fires AFTER a step produced its output), resolving a decision RE-RUNS the same step with
|
|
16
|
+
* the choice folded in. `chosen` is null while the run is parked on it.
|
|
17
|
+
*/
|
|
18
|
+
export const decisionSchema = v.object({
|
|
19
|
+
id: v.string(),
|
|
20
|
+
question: v.string(),
|
|
21
|
+
options: v.array(v.string()),
|
|
22
|
+
chosen: v.nullable(v.string()),
|
|
23
|
+
});
|
|
24
|
+
/**
|
|
25
|
+
* One GitHub-review-style comment left on a specific block or item of an agent's
|
|
26
|
+
* proposal — either by a human reviewing an approval gate, or by a quality
|
|
27
|
+
* companion (e.g. the Spec Reviewer) grading a structured output. `quotedSource`
|
|
28
|
+
* is the verbatim raw markdown of the block the comment targets (sliced from the
|
|
29
|
+
* proposal by its source line range), so a "request changes" re-run can quote the
|
|
30
|
+
* agent's own text back to it rather than a re-rendered approximation. It is
|
|
31
|
+
* OPTIONAL because a comment may instead anchor to a structured item via
|
|
32
|
+
* {@link anchorId} (e.g. a spec requirement / acceptance-criterion id), where the
|
|
33
|
+
* reviewed output is rendered as discrete items rather than free prose and there is
|
|
34
|
+
* no quoted source range — the shape a companion returns.
|
|
35
|
+
*/
|
|
36
|
+
export const stepReviewCommentSchema = v.object({
|
|
37
|
+
/**
|
|
38
|
+
* Verbatim raw-markdown source of the commented prose block. Optional: a comment
|
|
39
|
+
* may instead anchor to a structured item via {@link anchorId}, where there is no
|
|
40
|
+
* prose source to quote.
|
|
41
|
+
*/
|
|
42
|
+
quotedSource: v.optional(v.string()),
|
|
43
|
+
/**
|
|
44
|
+
* 0-based source line range [start, end) of the commented prose block, for
|
|
45
|
+
* best-effort re-anchoring. Optional: a comment may instead anchor to a structured
|
|
46
|
+
* item via {@link anchorId} (e.g. a spec requirement/acceptance-criterion id), where
|
|
47
|
+
* there is no prose line range.
|
|
48
|
+
*/
|
|
49
|
+
srcStart: v.optional(v.number()),
|
|
50
|
+
srcEnd: v.optional(v.number()),
|
|
51
|
+
/**
|
|
52
|
+
* Stable id of the structured item the comment targets (e.g. a spec
|
|
53
|
+
* requirement/criterion id), when the reviewed output is rendered as structured
|
|
54
|
+
* items rather than free prose. Absent for prose-range comments.
|
|
55
|
+
*/
|
|
56
|
+
anchorId: v.optional(v.string()),
|
|
57
|
+
/** The reviewer's note on this block / item. */
|
|
58
|
+
body: v.string(),
|
|
59
|
+
});
|
|
60
|
+
/**
|
|
61
|
+
* The standardized, stored verdict a quality companion produced for an output it
|
|
62
|
+
* graded — shared by every companion site (the pipeline companion step and the
|
|
63
|
+
* requirements-rework gate). The raw model response is {@link companionAssessmentSchema}
|
|
64
|
+
* (rating + summary + comments); this is the persisted, self-describing record of how
|
|
65
|
+
* that assessment was applied: the `rating`, the `threshold` it was judged against,
|
|
66
|
+
* whether it `passed`, and the `feedback` surfaced to the human / fed into a rework.
|
|
67
|
+
*/
|
|
68
|
+
export const companionVerdictSchema = v.object({
|
|
69
|
+
/** Overall quality of the graded output (0..1, higher = better). */
|
|
70
|
+
rating: v.pipe(v.number(), v.minValue(0), v.maxValue(1)),
|
|
71
|
+
/** The quality bar the rating had to reach to pass. */
|
|
72
|
+
threshold: v.pipe(v.number(), v.minValue(0), v.maxValue(1)),
|
|
73
|
+
/** Whether the rating met the threshold. */
|
|
74
|
+
passed: v.boolean(),
|
|
75
|
+
/** The companion's challenge / justification (its assessment summary). */
|
|
76
|
+
feedback: v.string(),
|
|
77
|
+
});
|
|
78
|
+
/**
|
|
79
|
+
* An approval gate's lifecycle: `pending` while awaiting the human; terminal
|
|
80
|
+
* `approved`/`rejected`; `changes_requested` re-runs the step. Named (rather
|
|
81
|
+
* than inlined in {@link stepApprovalSchema}) because the public decision
|
|
82
|
+
* projection reports the same states, and two picklists spelling one lifecycle
|
|
83
|
+
* is how the SPA and the API end up disagreeing about what `pending` means.
|
|
84
|
+
*/
|
|
85
|
+
export const stepApprovalStatusSchema = v.picklist([
|
|
86
|
+
'pending',
|
|
87
|
+
'approved',
|
|
88
|
+
'changes_requested',
|
|
89
|
+
'rejected',
|
|
90
|
+
]);
|
|
91
|
+
/**
|
|
92
|
+
* A human approval gate raised after a step whose pipeline marked it
|
|
93
|
+
* `requiresApproval`. Unlike a {@link Decision} (which an agent raises and which
|
|
94
|
+
* re-runs the same step on resolution), an approval gate fires once the step has
|
|
95
|
+
* already produced its `proposal`; approving advances the run (carrying the —
|
|
96
|
+
* possibly edited — proposal forward as context), requesting changes re-runs the
|
|
97
|
+
* same step with the human's `feedback` (+ per-block `comments`), and rejecting
|
|
98
|
+
* stops the run entirely (a terminal `rejected` failure the board can retry).
|
|
99
|
+
*
|
|
100
|
+
* It is also the engine's GENERIC parking mechanism, which is the trap for anything that reads it:
|
|
101
|
+
* a review gate, a brainstorm, a fork choice, a human-verdict gate, a follow-up triage and an
|
|
102
|
+
* interview all leave a `pending` approval here while being driven by their own verbs entirely.
|
|
103
|
+
* "This step has a pending approval" therefore does NOT mean "this is an approval gate"; the
|
|
104
|
+
* engine's `dedicatedParkSurface` is what tells the two apart.
|
|
105
|
+
*/
|
|
106
|
+
export const stepApprovalSchema = v.object({
|
|
107
|
+
/** Unique id of this gate; the durable run parks on it like a decision. */
|
|
108
|
+
id: v.string(),
|
|
109
|
+
/** `pending` while awaiting the human; terminal `approved`/`rejected`; `changes_requested` re-runs the step. */
|
|
110
|
+
status: stepApprovalStatusSchema,
|
|
111
|
+
/** The agent's output the human is reviewing (editable before approval). */
|
|
112
|
+
proposal: v.string(),
|
|
113
|
+
/** When changes were requested, the human's freeform guidance fed into the re-run. */
|
|
114
|
+
feedback: v.optional(v.string()),
|
|
115
|
+
/** When changes were requested, per-block review comments fed into the re-run. */
|
|
116
|
+
comments: v.optional(v.array(stepReviewCommentSchema)),
|
|
117
|
+
});
|
|
118
|
+
//# sourceMappingURL=step-decisions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-decisions.js","sourceRoot":"","sources":["../src/step-decisions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,8EAA8E;AAC9E,mGAAmG;AACnG,oGAAoG;AACpG,wBAAwB;AACxB,EAAE;AACF,oGAAoG;AACpG,kGAAkG;AAClG,mGAAmG;AACnG,mGAAmG;AACnG,oFAAoF;AACpF,8EAA8E;AAE9E;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC5B,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC/B,CAAC,CAAA;AAGF;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C;;;;OAIG;IACH,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACpC;;;;;OAKG;IACH,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAChC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAChC,gDAAgD;IAChD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC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