feat(review-story): add model-backed review story

This commit is contained in:
Felipe Coury
2026-05-23 18:05:09 -03:00
parent 7924743c38
commit 5e8a5b2c7c
58 changed files with 6544 additions and 5 deletions
@@ -2671,6 +2671,61 @@
],
"type": "object"
},
"ReviewStoryListParams": {
"properties": {
"cursor": {
"type": [
"string",
"null"
]
},
"limit": {
"format": "uint32",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"threadId": {
"type": "string"
}
},
"required": [
"threadId"
],
"type": "object"
},
"ReviewStoryReadParams": {
"properties": {
"storySnapshotId": {
"type": "string"
},
"threadId": {
"type": "string"
}
},
"required": [
"storySnapshotId",
"threadId"
],
"type": "object"
},
"ReviewStoryStartParams": {
"properties": {
"target": {
"$ref": "#/definitions/ReviewTarget"
},
"threadId": {
"type": "string"
}
},
"required": [
"target",
"threadId"
],
"type": "object"
},
"ReviewTarget": {
"oneOf": [
{
@@ -5425,6 +5480,78 @@
"title": "Review/startRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/RequestId"
},
"method": {
"enum": [
"reviewStory/start"
],
"title": "ReviewStory/startRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/ReviewStoryStartParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "ReviewStory/startRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/RequestId"
},
"method": {
"enum": [
"reviewStory/read"
],
"title": "ReviewStory/readRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/ReviewStoryReadParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "ReviewStory/readRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/RequestId"
},
"method": {
"enum": [
"reviewStory/list"
],
"title": "ReviewStory/listRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/ReviewStoryListParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "ReviewStory/listRequest",
"type": "object"
},
{
"properties": {
"id": {
@@ -2946,6 +2946,294 @@
},
"type": "object"
},
"ReviewStoryAnchor": {
"properties": {
"anchorId": {
"type": "string"
},
"changeKind": {
"$ref": "#/definitions/ReviewStoryAnchorKind"
},
"diff": {
"type": "string"
},
"filePath": {
"type": "string"
},
"summary": {
"type": "string"
}
},
"required": [
"anchorId",
"changeKind",
"diff",
"filePath",
"summary"
],
"type": "object"
},
"ReviewStoryAnchorKind": {
"enum": [
"added",
"modified",
"deleted",
"renamed",
"copied",
"unknown"
],
"type": "string"
},
"ReviewStorySnapshot": {
"properties": {
"anchors": {
"items": {
"$ref": "#/definitions/ReviewStoryAnchor"
},
"type": "array"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"overview": {
"type": "string"
},
"previousStorySnapshotId": {
"type": [
"string",
"null"
]
},
"sourceFingerprint": {
"type": "string"
},
"stale": {
"type": "boolean"
},
"status": {
"$ref": "#/definitions/ReviewStorySnapshotStatus"
},
"steps": {
"items": {
"$ref": "#/definitions/ReviewStoryStep"
},
"type": "array"
},
"storySnapshotId": {
"type": "string"
},
"target": {
"$ref": "#/definitions/ReviewTarget"
},
"threadId": {
"type": "string"
},
"title": {
"type": "string"
},
"updatedAt": {
"format": "int64",
"type": "integer"
}
},
"required": [
"anchors",
"createdAt",
"overview",
"sourceFingerprint",
"stale",
"status",
"steps",
"storySnapshotId",
"target",
"threadId",
"title",
"updatedAt"
],
"type": "object"
},
"ReviewStorySnapshotStatus": {
"enum": [
"building",
"ready",
"partial",
"failed"
],
"type": "string"
},
"ReviewStorySnapshotUpdatedNotification": {
"properties": {
"snapshot": {
"$ref": "#/definitions/ReviewStorySnapshot"
},
"threadId": {
"type": "string"
}
},
"required": [
"snapshot",
"threadId"
],
"type": "object"
},
"ReviewStoryStep": {
"properties": {
"anchorIds": {
"items": {
"type": "string"
},
"type": "array"
},
"dependencyRationale": {
"type": "string"
},
"error": {
"type": [
"string",
"null"
]
},
"goal": {
"type": "string"
},
"index": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
},
"readiness": {
"$ref": "#/definitions/ReviewStoryStepReadiness"
},
"reviewFocus": {
"items": {
"type": "string"
},
"type": "array"
},
"stepId": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"anchorIds",
"dependencyRationale",
"goal",
"index",
"readiness",
"reviewFocus",
"stepId",
"summary",
"title"
],
"type": "object"
},
"ReviewStoryStepReadiness": {
"enum": [
"outline",
"enriching",
"ready",
"failed"
],
"type": "string"
},
"ReviewTarget": {
"oneOf": [
{
"description": "Review the working tree: staged, unstaged, and untracked files.",
"properties": {
"type": {
"enum": [
"uncommittedChanges"
],
"title": "UncommittedChangesReviewTargetType",
"type": "string"
}
},
"required": [
"type"
],
"title": "UncommittedChangesReviewTarget",
"type": "object"
},
{
"description": "Review changes between the current branch and the given base branch.",
"properties": {
"branch": {
"type": "string"
},
"type": {
"enum": [
"baseBranch"
],
"title": "BaseBranchReviewTargetType",
"type": "string"
}
},
"required": [
"branch",
"type"
],
"title": "BaseBranchReviewTarget",
"type": "object"
},
{
"description": "Review the changes introduced by a specific commit.",
"properties": {
"sha": {
"type": "string"
},
"title": {
"description": "Optional human-readable label (e.g., commit subject) for UIs.",
"type": [
"string",
"null"
]
},
"type": {
"enum": [
"commit"
],
"title": "CommitReviewTargetType",
"type": "string"
}
},
"required": [
"sha",
"type"
],
"title": "CommitReviewTarget",
"type": "object"
},
{
"description": "Arbitrary instructions, equivalent to the old free-form prompt.",
"properties": {
"instructions": {
"type": "string"
},
"type": {
"enum": [
"custom"
],
"title": "CustomReviewTargetType",
"type": "string"
}
},
"required": [
"instructions",
"type"
],
"title": "CustomReviewTarget",
"type": "object"
}
]
},
"SandboxPolicy": {
"oneOf": [
{
@@ -5557,6 +5845,26 @@
"title": "Turn/completedNotification",
"type": "object"
},
{
"properties": {
"method": {
"enum": [
"reviewStory/snapshot/updated"
],
"title": "ReviewStory/snapshot/updatedNotificationMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/ReviewStorySnapshotUpdatedNotification"
}
},
"required": [
"method",
"params"
],
"title": "ReviewStory/snapshot/updatedNotification",
"type": "object"
},
{
"properties": {
"method": {
@@ -1429,6 +1429,78 @@
"title": "Review/startRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/v2/RequestId"
},
"method": {
"enum": [
"reviewStory/start"
],
"title": "ReviewStory/startRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/v2/ReviewStoryStartParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "ReviewStory/startRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/v2/RequestId"
},
"method": {
"enum": [
"reviewStory/read"
],
"title": "ReviewStory/readRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/v2/ReviewStoryReadParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "ReviewStory/readRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/v2/RequestId"
},
"method": {
"enum": [
"reviewStory/list"
],
"title": "ReviewStory/listRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/v2/ReviewStoryListParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "ReviewStory/listRequest",
"type": "object"
},
{
"properties": {
"id": {
@@ -4227,6 +4299,26 @@
"title": "Turn/completedNotification",
"type": "object"
},
{
"properties": {
"method": {
"enum": [
"reviewStory/snapshot/updated"
],
"title": "ReviewStory/snapshot/updatedNotificationMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/v2/ReviewStorySnapshotUpdatedNotification"
}
},
"required": [
"method",
"params"
],
"title": "ReviewStory/snapshot/updatedNotification",
"type": "object"
},
{
"properties": {
"method": {
@@ -14411,6 +14503,379 @@
"title": "ReviewStartResponse",
"type": "object"
},
"ReviewStoryAnchor": {
"properties": {
"anchorId": {
"type": "string"
},
"changeKind": {
"$ref": "#/definitions/v2/ReviewStoryAnchorKind"
},
"diff": {
"type": "string"
},
"filePath": {
"type": "string"
},
"summary": {
"type": "string"
}
},
"required": [
"anchorId",
"changeKind",
"diff",
"filePath",
"summary"
],
"type": "object"
},
"ReviewStoryAnchorKind": {
"enum": [
"added",
"modified",
"deleted",
"renamed",
"copied",
"unknown"
],
"type": "string"
},
"ReviewStoryListParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"cursor": {
"type": [
"string",
"null"
]
},
"limit": {
"format": "uint32",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"threadId": {
"type": "string"
}
},
"required": [
"threadId"
],
"title": "ReviewStoryListParams",
"type": "object"
},
"ReviewStoryListResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"data": {
"items": {
"$ref": "#/definitions/v2/ReviewStorySnapshotSummary"
},
"type": "array"
},
"nextCursor": {
"type": [
"string",
"null"
]
}
},
"required": [
"data"
],
"title": "ReviewStoryListResponse",
"type": "object"
},
"ReviewStoryReadParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"storySnapshotId": {
"type": "string"
},
"threadId": {
"type": "string"
}
},
"required": [
"storySnapshotId",
"threadId"
],
"title": "ReviewStoryReadParams",
"type": "object"
},
"ReviewStoryReadResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"snapshot": {
"anyOf": [
{
"$ref": "#/definitions/v2/ReviewStorySnapshot"
},
{
"type": "null"
}
]
}
},
"title": "ReviewStoryReadResponse",
"type": "object"
},
"ReviewStorySnapshot": {
"properties": {
"anchors": {
"items": {
"$ref": "#/definitions/v2/ReviewStoryAnchor"
},
"type": "array"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"overview": {
"type": "string"
},
"previousStorySnapshotId": {
"type": [
"string",
"null"
]
},
"sourceFingerprint": {
"type": "string"
},
"stale": {
"type": "boolean"
},
"status": {
"$ref": "#/definitions/v2/ReviewStorySnapshotStatus"
},
"steps": {
"items": {
"$ref": "#/definitions/v2/ReviewStoryStep"
},
"type": "array"
},
"storySnapshotId": {
"type": "string"
},
"target": {
"$ref": "#/definitions/v2/ReviewTarget"
},
"threadId": {
"type": "string"
},
"title": {
"type": "string"
},
"updatedAt": {
"format": "int64",
"type": "integer"
}
},
"required": [
"anchors",
"createdAt",
"overview",
"sourceFingerprint",
"stale",
"status",
"steps",
"storySnapshotId",
"target",
"threadId",
"title",
"updatedAt"
],
"type": "object"
},
"ReviewStorySnapshotStatus": {
"enum": [
"building",
"ready",
"partial",
"failed"
],
"type": "string"
},
"ReviewStorySnapshotSummary": {
"properties": {
"createdAt": {
"format": "int64",
"type": "integer"
},
"previousStorySnapshotId": {
"type": [
"string",
"null"
]
},
"sourceFingerprint": {
"type": "string"
},
"status": {
"$ref": "#/definitions/v2/ReviewStorySnapshotStatus"
},
"stepCount": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
},
"storySnapshotId": {
"type": "string"
},
"target": {
"$ref": "#/definitions/v2/ReviewTarget"
},
"threadId": {
"type": "string"
},
"title": {
"type": "string"
},
"updatedAt": {
"format": "int64",
"type": "integer"
}
},
"required": [
"createdAt",
"sourceFingerprint",
"status",
"stepCount",
"storySnapshotId",
"target",
"threadId",
"title",
"updatedAt"
],
"type": "object"
},
"ReviewStorySnapshotUpdatedNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"snapshot": {
"$ref": "#/definitions/v2/ReviewStorySnapshot"
},
"threadId": {
"type": "string"
}
},
"required": [
"snapshot",
"threadId"
],
"title": "ReviewStorySnapshotUpdatedNotification",
"type": "object"
},
"ReviewStoryStartParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"target": {
"$ref": "#/definitions/v2/ReviewTarget"
},
"threadId": {
"type": "string"
}
},
"required": [
"target",
"threadId"
],
"title": "ReviewStoryStartParams",
"type": "object"
},
"ReviewStoryStartResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"snapshot": {
"$ref": "#/definitions/v2/ReviewStorySnapshot"
},
"storySnapshotId": {
"type": "string"
},
"turn": {
"$ref": "#/definitions/v2/Turn"
}
},
"required": [
"snapshot",
"storySnapshotId",
"turn"
],
"title": "ReviewStoryStartResponse",
"type": "object"
},
"ReviewStoryStep": {
"properties": {
"anchorIds": {
"items": {
"type": "string"
},
"type": "array"
},
"dependencyRationale": {
"type": "string"
},
"error": {
"type": [
"string",
"null"
]
},
"goal": {
"type": "string"
},
"index": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
},
"readiness": {
"$ref": "#/definitions/v2/ReviewStoryStepReadiness"
},
"reviewFocus": {
"items": {
"type": "string"
},
"type": "array"
},
"stepId": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"anchorIds",
"dependencyRationale",
"goal",
"index",
"readiness",
"reviewFocus",
"stepId",
"summary",
"title"
],
"type": "object"
},
"ReviewStoryStepReadiness": {
"enum": [
"outline",
"enriching",
"ready",
"failed"
],
"type": "string"
},
"ReviewTarget": {
"oneOf": [
{
@@ -2155,6 +2155,78 @@
"title": "Review/startRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/RequestId"
},
"method": {
"enum": [
"reviewStory/start"
],
"title": "ReviewStory/startRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/ReviewStoryStartParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "ReviewStory/startRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/RequestId"
},
"method": {
"enum": [
"reviewStory/read"
],
"title": "ReviewStory/readRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/ReviewStoryReadParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "ReviewStory/readRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/RequestId"
},
"method": {
"enum": [
"reviewStory/list"
],
"title": "ReviewStory/listRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/ReviewStoryListParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "ReviewStory/listRequest",
"type": "object"
},
{
"properties": {
"id": {
@@ -10940,6 +11012,379 @@
"title": "ReviewStartResponse",
"type": "object"
},
"ReviewStoryAnchor": {
"properties": {
"anchorId": {
"type": "string"
},
"changeKind": {
"$ref": "#/definitions/ReviewStoryAnchorKind"
},
"diff": {
"type": "string"
},
"filePath": {
"type": "string"
},
"summary": {
"type": "string"
}
},
"required": [
"anchorId",
"changeKind",
"diff",
"filePath",
"summary"
],
"type": "object"
},
"ReviewStoryAnchorKind": {
"enum": [
"added",
"modified",
"deleted",
"renamed",
"copied",
"unknown"
],
"type": "string"
},
"ReviewStoryListParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"cursor": {
"type": [
"string",
"null"
]
},
"limit": {
"format": "uint32",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"threadId": {
"type": "string"
}
},
"required": [
"threadId"
],
"title": "ReviewStoryListParams",
"type": "object"
},
"ReviewStoryListResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"data": {
"items": {
"$ref": "#/definitions/ReviewStorySnapshotSummary"
},
"type": "array"
},
"nextCursor": {
"type": [
"string",
"null"
]
}
},
"required": [
"data"
],
"title": "ReviewStoryListResponse",
"type": "object"
},
"ReviewStoryReadParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"storySnapshotId": {
"type": "string"
},
"threadId": {
"type": "string"
}
},
"required": [
"storySnapshotId",
"threadId"
],
"title": "ReviewStoryReadParams",
"type": "object"
},
"ReviewStoryReadResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"snapshot": {
"anyOf": [
{
"$ref": "#/definitions/ReviewStorySnapshot"
},
{
"type": "null"
}
]
}
},
"title": "ReviewStoryReadResponse",
"type": "object"
},
"ReviewStorySnapshot": {
"properties": {
"anchors": {
"items": {
"$ref": "#/definitions/ReviewStoryAnchor"
},
"type": "array"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"overview": {
"type": "string"
},
"previousStorySnapshotId": {
"type": [
"string",
"null"
]
},
"sourceFingerprint": {
"type": "string"
},
"stale": {
"type": "boolean"
},
"status": {
"$ref": "#/definitions/ReviewStorySnapshotStatus"
},
"steps": {
"items": {
"$ref": "#/definitions/ReviewStoryStep"
},
"type": "array"
},
"storySnapshotId": {
"type": "string"
},
"target": {
"$ref": "#/definitions/ReviewTarget"
},
"threadId": {
"type": "string"
},
"title": {
"type": "string"
},
"updatedAt": {
"format": "int64",
"type": "integer"
}
},
"required": [
"anchors",
"createdAt",
"overview",
"sourceFingerprint",
"stale",
"status",
"steps",
"storySnapshotId",
"target",
"threadId",
"title",
"updatedAt"
],
"type": "object"
},
"ReviewStorySnapshotStatus": {
"enum": [
"building",
"ready",
"partial",
"failed"
],
"type": "string"
},
"ReviewStorySnapshotSummary": {
"properties": {
"createdAt": {
"format": "int64",
"type": "integer"
},
"previousStorySnapshotId": {
"type": [
"string",
"null"
]
},
"sourceFingerprint": {
"type": "string"
},
"status": {
"$ref": "#/definitions/ReviewStorySnapshotStatus"
},
"stepCount": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
},
"storySnapshotId": {
"type": "string"
},
"target": {
"$ref": "#/definitions/ReviewTarget"
},
"threadId": {
"type": "string"
},
"title": {
"type": "string"
},
"updatedAt": {
"format": "int64",
"type": "integer"
}
},
"required": [
"createdAt",
"sourceFingerprint",
"status",
"stepCount",
"storySnapshotId",
"target",
"threadId",
"title",
"updatedAt"
],
"type": "object"
},
"ReviewStorySnapshotUpdatedNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"snapshot": {
"$ref": "#/definitions/ReviewStorySnapshot"
},
"threadId": {
"type": "string"
}
},
"required": [
"snapshot",
"threadId"
],
"title": "ReviewStorySnapshotUpdatedNotification",
"type": "object"
},
"ReviewStoryStartParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"target": {
"$ref": "#/definitions/ReviewTarget"
},
"threadId": {
"type": "string"
}
},
"required": [
"target",
"threadId"
],
"title": "ReviewStoryStartParams",
"type": "object"
},
"ReviewStoryStartResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"snapshot": {
"$ref": "#/definitions/ReviewStorySnapshot"
},
"storySnapshotId": {
"type": "string"
},
"turn": {
"$ref": "#/definitions/Turn"
}
},
"required": [
"snapshot",
"storySnapshotId",
"turn"
],
"title": "ReviewStoryStartResponse",
"type": "object"
},
"ReviewStoryStep": {
"properties": {
"anchorIds": {
"items": {
"type": "string"
},
"type": "array"
},
"dependencyRationale": {
"type": "string"
},
"error": {
"type": [
"string",
"null"
]
},
"goal": {
"type": "string"
},
"index": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
},
"readiness": {
"$ref": "#/definitions/ReviewStoryStepReadiness"
},
"reviewFocus": {
"items": {
"type": "string"
},
"type": "array"
},
"stepId": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"anchorIds",
"dependencyRationale",
"goal",
"index",
"readiness",
"reviewFocus",
"stepId",
"summary",
"title"
],
"type": "object"
},
"ReviewStoryStepReadiness": {
"enum": [
"outline",
"enriching",
"ready",
"failed"
],
"type": "string"
},
"ReviewTarget": {
"oneOf": [
{
@@ -11493,6 +11938,26 @@
"title": "Turn/completedNotification",
"type": "object"
},
{
"properties": {
"method": {
"enum": [
"reviewStory/snapshot/updated"
],
"title": "ReviewStory/snapshot/updatedNotificationMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/ReviewStorySnapshotUpdatedNotification"
}
},
"required": [
"method",
"params"
],
"title": "ReviewStory/snapshot/updatedNotification",
"type": "object"
},
{
"properties": {
"method": {
@@ -0,0 +1,27 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"cursor": {
"type": [
"string",
"null"
]
},
"limit": {
"format": "uint32",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"threadId": {
"type": "string"
}
},
"required": [
"threadId"
],
"title": "ReviewStoryListParams",
"type": "object"
}
@@ -0,0 +1,177 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"ReviewStorySnapshotStatus": {
"enum": [
"building",
"ready",
"partial",
"failed"
],
"type": "string"
},
"ReviewStorySnapshotSummary": {
"properties": {
"createdAt": {
"format": "int64",
"type": "integer"
},
"previousStorySnapshotId": {
"type": [
"string",
"null"
]
},
"sourceFingerprint": {
"type": "string"
},
"status": {
"$ref": "#/definitions/ReviewStorySnapshotStatus"
},
"stepCount": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
},
"storySnapshotId": {
"type": "string"
},
"target": {
"$ref": "#/definitions/ReviewTarget"
},
"threadId": {
"type": "string"
},
"title": {
"type": "string"
},
"updatedAt": {
"format": "int64",
"type": "integer"
}
},
"required": [
"createdAt",
"sourceFingerprint",
"status",
"stepCount",
"storySnapshotId",
"target",
"threadId",
"title",
"updatedAt"
],
"type": "object"
},
"ReviewTarget": {
"oneOf": [
{
"description": "Review the working tree: staged, unstaged, and untracked files.",
"properties": {
"type": {
"enum": [
"uncommittedChanges"
],
"title": "UncommittedChangesReviewTargetType",
"type": "string"
}
},
"required": [
"type"
],
"title": "UncommittedChangesReviewTarget",
"type": "object"
},
{
"description": "Review changes between the current branch and the given base branch.",
"properties": {
"branch": {
"type": "string"
},
"type": {
"enum": [
"baseBranch"
],
"title": "BaseBranchReviewTargetType",
"type": "string"
}
},
"required": [
"branch",
"type"
],
"title": "BaseBranchReviewTarget",
"type": "object"
},
{
"description": "Review the changes introduced by a specific commit.",
"properties": {
"sha": {
"type": "string"
},
"title": {
"description": "Optional human-readable label (e.g., commit subject) for UIs.",
"type": [
"string",
"null"
]
},
"type": {
"enum": [
"commit"
],
"title": "CommitReviewTargetType",
"type": "string"
}
},
"required": [
"sha",
"type"
],
"title": "CommitReviewTarget",
"type": "object"
},
{
"description": "Arbitrary instructions, equivalent to the old free-form prompt.",
"properties": {
"instructions": {
"type": "string"
},
"type": {
"enum": [
"custom"
],
"title": "CustomReviewTargetType",
"type": "string"
}
},
"required": [
"instructions",
"type"
],
"title": "CustomReviewTarget",
"type": "object"
}
]
}
},
"properties": {
"data": {
"items": {
"$ref": "#/definitions/ReviewStorySnapshotSummary"
},
"type": "array"
},
"nextCursor": {
"type": [
"string",
"null"
]
}
},
"required": [
"data"
],
"title": "ReviewStoryListResponse",
"type": "object"
}
@@ -0,0 +1,17 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"storySnapshotId": {
"type": "string"
},
"threadId": {
"type": "string"
}
},
"required": [
"storySnapshotId",
"threadId"
],
"title": "ReviewStoryReadParams",
"type": "object"
}
@@ -0,0 +1,292 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"ReviewStoryAnchor": {
"properties": {
"anchorId": {
"type": "string"
},
"changeKind": {
"$ref": "#/definitions/ReviewStoryAnchorKind"
},
"diff": {
"type": "string"
},
"filePath": {
"type": "string"
},
"summary": {
"type": "string"
}
},
"required": [
"anchorId",
"changeKind",
"diff",
"filePath",
"summary"
],
"type": "object"
},
"ReviewStoryAnchorKind": {
"enum": [
"added",
"modified",
"deleted",
"renamed",
"copied",
"unknown"
],
"type": "string"
},
"ReviewStorySnapshot": {
"properties": {
"anchors": {
"items": {
"$ref": "#/definitions/ReviewStoryAnchor"
},
"type": "array"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"overview": {
"type": "string"
},
"previousStorySnapshotId": {
"type": [
"string",
"null"
]
},
"sourceFingerprint": {
"type": "string"
},
"stale": {
"type": "boolean"
},
"status": {
"$ref": "#/definitions/ReviewStorySnapshotStatus"
},
"steps": {
"items": {
"$ref": "#/definitions/ReviewStoryStep"
},
"type": "array"
},
"storySnapshotId": {
"type": "string"
},
"target": {
"$ref": "#/definitions/ReviewTarget"
},
"threadId": {
"type": "string"
},
"title": {
"type": "string"
},
"updatedAt": {
"format": "int64",
"type": "integer"
}
},
"required": [
"anchors",
"createdAt",
"overview",
"sourceFingerprint",
"stale",
"status",
"steps",
"storySnapshotId",
"target",
"threadId",
"title",
"updatedAt"
],
"type": "object"
},
"ReviewStorySnapshotStatus": {
"enum": [
"building",
"ready",
"partial",
"failed"
],
"type": "string"
},
"ReviewStoryStep": {
"properties": {
"anchorIds": {
"items": {
"type": "string"
},
"type": "array"
},
"dependencyRationale": {
"type": "string"
},
"error": {
"type": [
"string",
"null"
]
},
"goal": {
"type": "string"
},
"index": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
},
"readiness": {
"$ref": "#/definitions/ReviewStoryStepReadiness"
},
"reviewFocus": {
"items": {
"type": "string"
},
"type": "array"
},
"stepId": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"anchorIds",
"dependencyRationale",
"goal",
"index",
"readiness",
"reviewFocus",
"stepId",
"summary",
"title"
],
"type": "object"
},
"ReviewStoryStepReadiness": {
"enum": [
"outline",
"enriching",
"ready",
"failed"
],
"type": "string"
},
"ReviewTarget": {
"oneOf": [
{
"description": "Review the working tree: staged, unstaged, and untracked files.",
"properties": {
"type": {
"enum": [
"uncommittedChanges"
],
"title": "UncommittedChangesReviewTargetType",
"type": "string"
}
},
"required": [
"type"
],
"title": "UncommittedChangesReviewTarget",
"type": "object"
},
{
"description": "Review changes between the current branch and the given base branch.",
"properties": {
"branch": {
"type": "string"
},
"type": {
"enum": [
"baseBranch"
],
"title": "BaseBranchReviewTargetType",
"type": "string"
}
},
"required": [
"branch",
"type"
],
"title": "BaseBranchReviewTarget",
"type": "object"
},
{
"description": "Review the changes introduced by a specific commit.",
"properties": {
"sha": {
"type": "string"
},
"title": {
"description": "Optional human-readable label (e.g., commit subject) for UIs.",
"type": [
"string",
"null"
]
},
"type": {
"enum": [
"commit"
],
"title": "CommitReviewTargetType",
"type": "string"
}
},
"required": [
"sha",
"type"
],
"title": "CommitReviewTarget",
"type": "object"
},
{
"description": "Arbitrary instructions, equivalent to the old free-form prompt.",
"properties": {
"instructions": {
"type": "string"
},
"type": {
"enum": [
"custom"
],
"title": "CustomReviewTargetType",
"type": "string"
}
},
"required": [
"instructions",
"type"
],
"title": "CustomReviewTarget",
"type": "object"
}
]
}
},
"properties": {
"snapshot": {
"anyOf": [
{
"$ref": "#/definitions/ReviewStorySnapshot"
},
{
"type": "null"
}
]
}
},
"title": "ReviewStoryReadResponse",
"type": "object"
}
@@ -0,0 +1,292 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"ReviewStoryAnchor": {
"properties": {
"anchorId": {
"type": "string"
},
"changeKind": {
"$ref": "#/definitions/ReviewStoryAnchorKind"
},
"diff": {
"type": "string"
},
"filePath": {
"type": "string"
},
"summary": {
"type": "string"
}
},
"required": [
"anchorId",
"changeKind",
"diff",
"filePath",
"summary"
],
"type": "object"
},
"ReviewStoryAnchorKind": {
"enum": [
"added",
"modified",
"deleted",
"renamed",
"copied",
"unknown"
],
"type": "string"
},
"ReviewStorySnapshot": {
"properties": {
"anchors": {
"items": {
"$ref": "#/definitions/ReviewStoryAnchor"
},
"type": "array"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"overview": {
"type": "string"
},
"previousStorySnapshotId": {
"type": [
"string",
"null"
]
},
"sourceFingerprint": {
"type": "string"
},
"stale": {
"type": "boolean"
},
"status": {
"$ref": "#/definitions/ReviewStorySnapshotStatus"
},
"steps": {
"items": {
"$ref": "#/definitions/ReviewStoryStep"
},
"type": "array"
},
"storySnapshotId": {
"type": "string"
},
"target": {
"$ref": "#/definitions/ReviewTarget"
},
"threadId": {
"type": "string"
},
"title": {
"type": "string"
},
"updatedAt": {
"format": "int64",
"type": "integer"
}
},
"required": [
"anchors",
"createdAt",
"overview",
"sourceFingerprint",
"stale",
"status",
"steps",
"storySnapshotId",
"target",
"threadId",
"title",
"updatedAt"
],
"type": "object"
},
"ReviewStorySnapshotStatus": {
"enum": [
"building",
"ready",
"partial",
"failed"
],
"type": "string"
},
"ReviewStoryStep": {
"properties": {
"anchorIds": {
"items": {
"type": "string"
},
"type": "array"
},
"dependencyRationale": {
"type": "string"
},
"error": {
"type": [
"string",
"null"
]
},
"goal": {
"type": "string"
},
"index": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
},
"readiness": {
"$ref": "#/definitions/ReviewStoryStepReadiness"
},
"reviewFocus": {
"items": {
"type": "string"
},
"type": "array"
},
"stepId": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"anchorIds",
"dependencyRationale",
"goal",
"index",
"readiness",
"reviewFocus",
"stepId",
"summary",
"title"
],
"type": "object"
},
"ReviewStoryStepReadiness": {
"enum": [
"outline",
"enriching",
"ready",
"failed"
],
"type": "string"
},
"ReviewTarget": {
"oneOf": [
{
"description": "Review the working tree: staged, unstaged, and untracked files.",
"properties": {
"type": {
"enum": [
"uncommittedChanges"
],
"title": "UncommittedChangesReviewTargetType",
"type": "string"
}
},
"required": [
"type"
],
"title": "UncommittedChangesReviewTarget",
"type": "object"
},
{
"description": "Review changes between the current branch and the given base branch.",
"properties": {
"branch": {
"type": "string"
},
"type": {
"enum": [
"baseBranch"
],
"title": "BaseBranchReviewTargetType",
"type": "string"
}
},
"required": [
"branch",
"type"
],
"title": "BaseBranchReviewTarget",
"type": "object"
},
{
"description": "Review the changes introduced by a specific commit.",
"properties": {
"sha": {
"type": "string"
},
"title": {
"description": "Optional human-readable label (e.g., commit subject) for UIs.",
"type": [
"string",
"null"
]
},
"type": {
"enum": [
"commit"
],
"title": "CommitReviewTargetType",
"type": "string"
}
},
"required": [
"sha",
"type"
],
"title": "CommitReviewTarget",
"type": "object"
},
{
"description": "Arbitrary instructions, equivalent to the old free-form prompt.",
"properties": {
"instructions": {
"type": "string"
},
"type": {
"enum": [
"custom"
],
"title": "CustomReviewTargetType",
"type": "string"
}
},
"required": [
"instructions",
"type"
],
"title": "CustomReviewTarget",
"type": "object"
}
]
}
},
"properties": {
"snapshot": {
"$ref": "#/definitions/ReviewStorySnapshot"
},
"threadId": {
"type": "string"
}
},
"required": [
"snapshot",
"threadId"
],
"title": "ReviewStorySnapshotUpdatedNotification",
"type": "object"
}
@@ -0,0 +1,110 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"ReviewTarget": {
"oneOf": [
{
"description": "Review the working tree: staged, unstaged, and untracked files.",
"properties": {
"type": {
"enum": [
"uncommittedChanges"
],
"title": "UncommittedChangesReviewTargetType",
"type": "string"
}
},
"required": [
"type"
],
"title": "UncommittedChangesReviewTarget",
"type": "object"
},
{
"description": "Review changes between the current branch and the given base branch.",
"properties": {
"branch": {
"type": "string"
},
"type": {
"enum": [
"baseBranch"
],
"title": "BaseBranchReviewTargetType",
"type": "string"
}
},
"required": [
"branch",
"type"
],
"title": "BaseBranchReviewTarget",
"type": "object"
},
{
"description": "Review the changes introduced by a specific commit.",
"properties": {
"sha": {
"type": "string"
},
"title": {
"description": "Optional human-readable label (e.g., commit subject) for UIs.",
"type": [
"string",
"null"
]
},
"type": {
"enum": [
"commit"
],
"title": "CommitReviewTargetType",
"type": "string"
}
},
"required": [
"sha",
"type"
],
"title": "CommitReviewTarget",
"type": "object"
},
{
"description": "Arbitrary instructions, equivalent to the old free-form prompt.",
"properties": {
"instructions": {
"type": "string"
},
"type": {
"enum": [
"custom"
],
"title": "CustomReviewTargetType",
"type": "string"
}
},
"required": [
"instructions",
"type"
],
"title": "CustomReviewTarget",
"type": "object"
}
]
}
},
"properties": {
"target": {
"$ref": "#/definitions/ReviewTarget"
},
"threadId": {
"type": "string"
}
},
"required": [
"target",
"threadId"
],
"title": "ReviewStoryStartParams",
"type": "object"
}
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,6 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ReviewStoryAnchorKind } from "./ReviewStoryAnchorKind";
export type ReviewStoryAnchor = { anchorId: string, filePath: string, changeKind: ReviewStoryAnchorKind, summary: string, diff: string, };
@@ -0,0 +1,5 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ReviewStoryAnchorKind = "added" | "modified" | "deleted" | "renamed" | "copied" | "unknown";
@@ -0,0 +1,5 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ReviewStoryListParams = { threadId: string, cursor?: string | null, limit?: number | null, };
@@ -0,0 +1,6 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ReviewStorySnapshotSummary } from "./ReviewStorySnapshotSummary";
export type ReviewStoryListResponse = { data: Array<ReviewStorySnapshotSummary>, nextCursor: string | null, };
@@ -0,0 +1,5 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ReviewStoryReadParams = { threadId: string, storySnapshotId: string, };
@@ -0,0 +1,6 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ReviewStorySnapshot } from "./ReviewStorySnapshot";
export type ReviewStoryReadResponse = { snapshot: ReviewStorySnapshot | null, };
@@ -0,0 +1,9 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ReviewStoryAnchor } from "./ReviewStoryAnchor";
import type { ReviewStorySnapshotStatus } from "./ReviewStorySnapshotStatus";
import type { ReviewStoryStep } from "./ReviewStoryStep";
import type { ReviewTarget } from "./ReviewTarget";
export type ReviewStorySnapshot = { storySnapshotId: string, threadId: string, title: string, overview: string, target: ReviewTarget, sourceFingerprint: string, status: ReviewStorySnapshotStatus, createdAt: bigint, updatedAt: bigint, previousStorySnapshotId: string | null, stale: boolean, steps: Array<ReviewStoryStep>, anchors: Array<ReviewStoryAnchor>, };
@@ -0,0 +1,5 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ReviewStorySnapshotStatus = "building" | "ready" | "partial" | "failed";
@@ -0,0 +1,7 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ReviewStorySnapshotStatus } from "./ReviewStorySnapshotStatus";
import type { ReviewTarget } from "./ReviewTarget";
export type ReviewStorySnapshotSummary = { storySnapshotId: string, threadId: string, title: string, target: ReviewTarget, sourceFingerprint: string, status: ReviewStorySnapshotStatus, createdAt: bigint, updatedAt: bigint, previousStorySnapshotId: string | null, stepCount: number, };
@@ -0,0 +1,6 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ReviewStorySnapshot } from "./ReviewStorySnapshot";
export type ReviewStorySnapshotUpdatedNotification = { threadId: string, snapshot: ReviewStorySnapshot, };
@@ -0,0 +1,6 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ReviewTarget } from "./ReviewTarget";
export type ReviewStoryStartParams = { threadId: string, target: ReviewTarget, };
@@ -0,0 +1,7 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ReviewStorySnapshot } from "./ReviewStorySnapshot";
import type { Turn } from "./Turn";
export type ReviewStoryStartResponse = { turn: Turn, storySnapshotId: string, snapshot: ReviewStorySnapshot, };
@@ -0,0 +1,6 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ReviewStoryStepReadiness } from "./ReviewStoryStepReadiness";
export type ReviewStoryStep = { stepId: string, index: number, title: string, goal: string, summary: string, dependencyRationale: string, anchorIds: Array<string>, reviewFocus: Array<string>, readiness: ReviewStoryStepReadiness, error: string | null, };
@@ -0,0 +1,5 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ReviewStoryStepReadiness = "outline" | "enriching" | "ready" | "failed";
@@ -323,6 +323,20 @@ export type { ResidencyRequirement } from "./ResidencyRequirement";
export type { ReviewDelivery } from "./ReviewDelivery";
export type { ReviewStartParams } from "./ReviewStartParams";
export type { ReviewStartResponse } from "./ReviewStartResponse";
export type { ReviewStoryAnchor } from "./ReviewStoryAnchor";
export type { ReviewStoryAnchorKind } from "./ReviewStoryAnchorKind";
export type { ReviewStoryListParams } from "./ReviewStoryListParams";
export type { ReviewStoryListResponse } from "./ReviewStoryListResponse";
export type { ReviewStoryReadParams } from "./ReviewStoryReadParams";
export type { ReviewStoryReadResponse } from "./ReviewStoryReadResponse";
export type { ReviewStorySnapshot } from "./ReviewStorySnapshot";
export type { ReviewStorySnapshotStatus } from "./ReviewStorySnapshotStatus";
export type { ReviewStorySnapshotSummary } from "./ReviewStorySnapshotSummary";
export type { ReviewStorySnapshotUpdatedNotification } from "./ReviewStorySnapshotUpdatedNotification";
export type { ReviewStoryStartParams } from "./ReviewStoryStartParams";
export type { ReviewStoryStartResponse } from "./ReviewStoryStartResponse";
export type { ReviewStoryStep } from "./ReviewStoryStep";
export type { ReviewStoryStepReadiness } from "./ReviewStoryStepReadiness";
export type { ReviewTarget } from "./ReviewTarget";
export type { SandboxMode } from "./SandboxMode";
export type { SandboxPolicy } from "./SandboxPolicy";