replicas-cli 0.3.212 → 0.3.214
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/index.cjs +2 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -29894,6 +29894,7 @@ function coerceClaudeResultPayload(payload) {
|
|
|
29894
29894
|
is_error: typeof payload.is_error === "boolean" ? payload.is_error : void 0,
|
|
29895
29895
|
subtype: typeof payload.subtype === "string" ? payload.subtype : void 0,
|
|
29896
29896
|
errors: Array.isArray(payload.errors) ? payload.errors.filter((e) => typeof e === "string") : void 0,
|
|
29897
|
+
result: typeof payload.result === "string" ? payload.result : void 0,
|
|
29897
29898
|
terminal_reason: typeof payload.terminal_reason === "string" ? payload.terminal_reason : void 0
|
|
29898
29899
|
};
|
|
29899
29900
|
}
|
|
@@ -30246,7 +30247,7 @@ function parseClaudeEvents(events, parentToolUseId) {
|
|
|
30246
30247
|
messages.push({
|
|
30247
30248
|
id: `error-${event.timestamp}`,
|
|
30248
30249
|
type: "error",
|
|
30249
|
-
message: genuineErrors.length > 0 ? genuineErrors.join("\n") : "Claude session encountered an unexpected error.",
|
|
30250
|
+
message: genuineErrors.length > 0 ? genuineErrors.join("\n") : payload.result || "Claude session encountered an unexpected error.",
|
|
30250
30251
|
timestamp: event.timestamp
|
|
30251
30252
|
});
|
|
30252
30253
|
}
|