@fullstackhouse/cerber 1.4.0-pr.85.8e2bbbe → 1.4.0-pr.85.afc3a56
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/core/artifact.js +6 -3
- package/dist/server/index.js +1 -3
- package/package.json +1 -1
package/dist/core/artifact.js
CHANGED
|
@@ -76,9 +76,12 @@ export const CommentSchema = z.object({
|
|
|
76
76
|
/** Merge impact of this finding; null for remarks that are not findings. */
|
|
77
77
|
severity: SeveritySchema.nullable().default(null),
|
|
78
78
|
origin: z.enum(["ai", "user"]),
|
|
79
|
-
// "approved" was the cockpit's old "keep"
|
|
80
|
-
//
|
|
81
|
-
status: z
|
|
79
|
+
// Every comment not dropped posts. "approved" was the cockpit's old "keep"
|
|
80
|
+
// mark, which never changed that, so files still carrying it read as drafts.
|
|
81
|
+
status: z
|
|
82
|
+
.enum(["draft", "approved", "dropped"])
|
|
83
|
+
.default("draft")
|
|
84
|
+
.transform((s) => (s === "approved" ? "draft" : s)),
|
|
82
85
|
/** Set when the user edits an AI comment's body — calibration signal. */
|
|
83
86
|
editedByUser: z.boolean().default(false),
|
|
84
87
|
/** Line this comment was written against, when a refresh has since moved it. */
|
package/dist/server/index.js
CHANGED
|
@@ -557,9 +557,7 @@ export async function buildApp(opts) {
|
|
|
557
557
|
...(body.severity !== undefined
|
|
558
558
|
? { severity: SeveritySchema.nullable().parse(body.severity) }
|
|
559
559
|
: {}),
|
|
560
|
-
...(body.status
|
|
561
|
-
? { status: body.status }
|
|
562
|
-
: {}),
|
|
560
|
+
...(body.status === "draft" || body.status === "dropped" ? { status: body.status } : {}),
|
|
563
561
|
...(body.body !== undefined && body.body !== cm.body && cm.origin === "ai"
|
|
564
562
|
? { editedByUser: true }
|
|
565
563
|
: {}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fullstackhouse/cerber",
|
|
3
|
-
"version": "1.4.0-pr.85.
|
|
3
|
+
"version": "1.4.0-pr.85.afc3a56",
|
|
4
4
|
"description": "AI code-review cockpit: Claude reviews your PRs into local artifacts; nothing reaches GitHub until you say so.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|