Track fixed and ignored review findings
This commit is contained in:
@@ -518,6 +518,27 @@ export interface paths {
|
||||
patch?: never;
|
||||
trace?: never;
|
||||
};
|
||||
"/api/reviews/{reviewId}/findings/{index}": {
|
||||
parameters: {
|
||||
query?: never;
|
||||
header?: never;
|
||||
path: {
|
||||
reviewId: string;
|
||||
/** @description The finding's position in the review's findings, from 0. */
|
||||
index: number;
|
||||
};
|
||||
cookie?: never;
|
||||
};
|
||||
get?: never;
|
||||
/** @description Records that the human addressed a finding of a done review, by sending it to the agent to fix or by ignoring it. */
|
||||
put: operations["setFindingState"];
|
||||
post?: never;
|
||||
delete?: never;
|
||||
options?: never;
|
||||
head?: never;
|
||||
patch?: never;
|
||||
trace?: never;
|
||||
};
|
||||
"/api/tasks/{taskId}/snapshots/{n}/fork": {
|
||||
parameters: {
|
||||
query?: never;
|
||||
@@ -1061,6 +1082,18 @@ export interface components {
|
||||
created_at: string;
|
||||
/** Format: date-time */
|
||||
finished_at?: string;
|
||||
/** @description How the human addressed each finding, keyed by its index in result.findings; a finding not listed is open. */
|
||||
finding_states: {
|
||||
[key: string]: components["schemas"]["FindingState"];
|
||||
};
|
||||
};
|
||||
/**
|
||||
* @description fixed: sent to the task's agent to fix. ignored: dismissed, and left out of the Merge warning.
|
||||
* @enum {string}
|
||||
*/
|
||||
FindingState: "fixed" | "ignored";
|
||||
FindingStateUpdate: {
|
||||
state: components["schemas"]["FindingState"];
|
||||
};
|
||||
AgentSession: {
|
||||
id: string;
|
||||
@@ -2115,6 +2148,36 @@ export interface operations {
|
||||
404: components["responses"]["Error"];
|
||||
};
|
||||
};
|
||||
setFindingState: {
|
||||
parameters: {
|
||||
query?: never;
|
||||
header?: never;
|
||||
path: {
|
||||
reviewId: string;
|
||||
/** @description The finding's position in the review's findings, from 0. */
|
||||
index: number;
|
||||
};
|
||||
cookie?: never;
|
||||
};
|
||||
requestBody: {
|
||||
content: {
|
||||
"application/json": components["schemas"]["FindingStateUpdate"];
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
/** @description The review. */
|
||||
200: {
|
||||
headers: {
|
||||
[name: string]: unknown;
|
||||
};
|
||||
content: {
|
||||
"application/json": components["schemas"]["Review"];
|
||||
};
|
||||
};
|
||||
400: components["responses"]["Error"];
|
||||
404: components["responses"]["Error"];
|
||||
};
|
||||
};
|
||||
forkSnapshot: {
|
||||
parameters: {
|
||||
query?: never;
|
||||
|
||||
Reference in New Issue
Block a user