@cueloop/schema 0.1.0-alpha.85 → 0.1.0-alpha.87
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/package.json +1 -1
- package/src/types.ts +29 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cueloop/schema",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.87",
|
|
4
4
|
"description": "The Thread primitive: types, markdown block model, quote-primary anchors, feedback serialization",
|
|
5
5
|
"homepage": "https://github.com/mmurakaru/cueloop#readme",
|
|
6
6
|
"bugs": {
|
package/src/types.ts
CHANGED
|
@@ -68,6 +68,16 @@ export interface ArtifactMeta {
|
|
|
68
68
|
prototypePath?: string;
|
|
69
69
|
/** Pull request reference the diff came from, so the message can be posted back. */
|
|
70
70
|
pr?: string;
|
|
71
|
+
/** Markdown shown in the Thread pane beside a pull request diff. */
|
|
72
|
+
prBrief?: string;
|
|
73
|
+
/** Exact pull request commits captured by this review. */
|
|
74
|
+
prBaseSha?: string;
|
|
75
|
+
prHeadSha?: string;
|
|
76
|
+
/** Newer remote commits detected by the poller; the reviewer chooses when to refresh. */
|
|
77
|
+
prRefreshBaseSha?: string;
|
|
78
|
+
prRefreshHeadSha?: string;
|
|
79
|
+
/** Canonical GitHub pull request URL. */
|
|
80
|
+
prUrl?: string;
|
|
71
81
|
/** herdr pane the submitting agent runs in - the review returns focus there. */
|
|
72
82
|
herdrPane?: string;
|
|
73
83
|
title?: string;
|
|
@@ -179,6 +189,8 @@ export interface Annotation {
|
|
|
179
189
|
* planner can tell whose note is whose and never overwrite a collaborator's.
|
|
180
190
|
*/
|
|
181
191
|
author?: string;
|
|
192
|
+
/** GitHub line anchor and presentation fields for an agent-authored PR review comment. */
|
|
193
|
+
reviewComment?: ReviewComment;
|
|
182
194
|
/**
|
|
183
195
|
* The root comment this one replies to. Absent on a root. A reply shares its
|
|
184
196
|
* root's anchor, so a discussion stays one conversation when the text moves.
|
|
@@ -194,6 +206,23 @@ export interface Annotation {
|
|
|
194
206
|
createdAt: string;
|
|
195
207
|
}
|
|
196
208
|
|
|
209
|
+
export const REVIEW_SEVERITIES = ["p0", "p1", "p2"] as const;
|
|
210
|
+
export type ReviewSeverity = (typeof REVIEW_SEVERITIES)[number];
|
|
211
|
+
|
|
212
|
+
/** Data needed to render and publish one agent-authored pull request comment. */
|
|
213
|
+
export interface ReviewComment {
|
|
214
|
+
severity: ReviewSeverity;
|
|
215
|
+
title: string;
|
|
216
|
+
path: string;
|
|
217
|
+
line: number;
|
|
218
|
+
startLine?: number;
|
|
219
|
+
/** Quote-primary anchor for the first line of a multiline finding. */
|
|
220
|
+
startAnchor?: Anchor;
|
|
221
|
+
side: "LEFT" | "RIGHT";
|
|
222
|
+
suggestion?: string;
|
|
223
|
+
prompt?: string;
|
|
224
|
+
}
|
|
225
|
+
|
|
197
226
|
export interface AnnotationResolution {
|
|
198
227
|
/** The revision number whose submission addressed this annotation. */
|
|
199
228
|
revision: number;
|