patchrelay 0.52.0 → 0.52.1
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/build-info.json
CHANGED
|
@@ -18,32 +18,33 @@ function deriveProgressFactFromCompletedItem(rawItem, issue) {
|
|
|
18
18
|
if (item.type !== "agentMessage" || typeof item.text !== "string") {
|
|
19
19
|
return undefined;
|
|
20
20
|
}
|
|
21
|
-
const
|
|
22
|
-
if (!
|
|
21
|
+
const fullBody = sanitizeOperatorFacingText(item.text)?.replace(/\s+/g, " ").trim();
|
|
22
|
+
if (!fullBody) {
|
|
23
23
|
return undefined;
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
const ephemeralBody = compactOperatorSentence(fullBody) ?? fullBody;
|
|
26
|
+
if (looksLikeVerification(fullBody)) {
|
|
26
27
|
return {
|
|
27
28
|
kind: "verification_started",
|
|
28
|
-
meaningKey: `verification:${normalizeMeaningKey(
|
|
29
|
-
ephemeralContent: { type: "thought", body },
|
|
30
|
-
historyContent: { type: "thought", body },
|
|
29
|
+
meaningKey: `verification:${normalizeMeaningKey(fullBody)}`,
|
|
30
|
+
ephemeralContent: { type: "thought", body: ephemeralBody },
|
|
31
|
+
historyContent: { type: "thought", body: fullBody },
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
|
-
if (looksLikePublishing(
|
|
34
|
+
if (looksLikePublishing(fullBody)) {
|
|
34
35
|
return {
|
|
35
36
|
kind: "publishing_started",
|
|
36
|
-
meaningKey: `publishing:${normalizeMeaningKey(
|
|
37
|
-
ephemeralContent: { type: "thought", body },
|
|
38
|
-
historyContent: { type: "thought", body },
|
|
37
|
+
meaningKey: `publishing:${normalizeMeaningKey(fullBody)}`,
|
|
38
|
+
ephemeralContent: { type: "thought", body: ephemeralBody },
|
|
39
|
+
historyContent: { type: "thought", body: fullBody },
|
|
39
40
|
};
|
|
40
41
|
}
|
|
41
|
-
if (looksLikeRootCause(
|
|
42
|
+
if (looksLikeRootCause(fullBody)) {
|
|
42
43
|
return {
|
|
43
44
|
kind: "root_cause_found",
|
|
44
|
-
meaningKey: `finding:${normalizeMeaningKey(
|
|
45
|
-
ephemeralContent: { type: "thought", body },
|
|
46
|
-
historyContent: { type: "thought", body },
|
|
45
|
+
meaningKey: `finding:${normalizeMeaningKey(fullBody)}`,
|
|
46
|
+
ephemeralContent: { type: "thought", body: ephemeralBody },
|
|
47
|
+
historyContent: { type: "thought", body: fullBody },
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
50
|
return undefined;
|
|
@@ -77,20 +77,35 @@ export function buildRunCompletedActivity(params) {
|
|
|
77
77
|
}
|
|
78
78
|
return undefined;
|
|
79
79
|
case "review_fix":
|
|
80
|
-
return
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
return summary
|
|
81
|
+
? {
|
|
82
|
+
type: "response",
|
|
83
|
+
body: summary,
|
|
84
|
+
}
|
|
85
|
+
: {
|
|
86
|
+
type: "response",
|
|
87
|
+
body: `Updated ${prLabel} to address review feedback.`,
|
|
88
|
+
};
|
|
84
89
|
case "ci_repair":
|
|
85
|
-
return
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
90
|
+
return summary
|
|
91
|
+
? {
|
|
92
|
+
type: "response",
|
|
93
|
+
body: summary,
|
|
94
|
+
}
|
|
95
|
+
: {
|
|
96
|
+
type: "response",
|
|
97
|
+
body: `Updated ${prLabel} after CI repair.`,
|
|
98
|
+
};
|
|
89
99
|
case "queue_repair":
|
|
90
|
-
return
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
100
|
+
return summary
|
|
101
|
+
? {
|
|
102
|
+
type: "response",
|
|
103
|
+
body: summary,
|
|
104
|
+
}
|
|
105
|
+
: {
|
|
106
|
+
type: "response",
|
|
107
|
+
body: `Updated ${prLabel} after merge-queue repair.`,
|
|
108
|
+
};
|
|
94
109
|
case "branch_upkeep":
|
|
95
110
|
return undefined;
|
|
96
111
|
default: {
|