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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "service": "patchrelay",
3
- "version": "0.52.0",
4
- "commit": "818b35cc9b05",
5
- "builtAt": "2026-04-22T14:41:18.426Z"
3
+ "version": "0.52.1",
4
+ "commit": "ce226d1e6424",
5
+ "builtAt": "2026-04-22T15:51:04.485Z"
6
6
  }
@@ -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 body = compactOperatorSentence(item.text);
22
- if (!body) {
21
+ const fullBody = sanitizeOperatorFacingText(item.text)?.replace(/\s+/g, " ").trim();
22
+ if (!fullBody) {
23
23
  return undefined;
24
24
  }
25
- if (looksLikeVerification(body)) {
25
+ const ephemeralBody = compactOperatorSentence(fullBody) ?? fullBody;
26
+ if (looksLikeVerification(fullBody)) {
26
27
  return {
27
28
  kind: "verification_started",
28
- meaningKey: `verification:${normalizeMeaningKey(body)}`,
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(body)) {
34
+ if (looksLikePublishing(fullBody)) {
34
35
  return {
35
36
  kind: "publishing_started",
36
- meaningKey: `publishing:${normalizeMeaningKey(body)}`,
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(body)) {
42
+ if (looksLikeRootCause(fullBody)) {
42
43
  return {
43
44
  kind: "root_cause_found",
44
- meaningKey: `finding:${normalizeMeaningKey(body)}`,
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
- type: "response",
82
- body: `Updated ${prLabel} to address review feedback.${detail}`,
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
- type: "response",
87
- body: `Updated ${prLabel} after CI repair.${detail}`,
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
- type: "response",
92
- body: `Updated ${prLabel} after merge-queue repair.${detail}`,
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: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchrelay",
3
- "version": "0.52.0",
3
+ "version": "0.52.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {