@tryarcanist/cli 0.1.292 → 0.1.293
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.js +9 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7368,8 +7368,9 @@ import { Command } from "commander";
|
|
|
7368
7368
|
import { createRequire } from "module";
|
|
7369
7369
|
|
|
7370
7370
|
// ../../shared/utils/errors.ts
|
|
7371
|
-
function stringifyError(error) {
|
|
7372
|
-
|
|
7371
|
+
function stringifyError(error, fallback = "") {
|
|
7372
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
7373
|
+
return message || fallback;
|
|
7373
7374
|
}
|
|
7374
7375
|
|
|
7375
7376
|
// ../../shared/utils/url.ts
|
|
@@ -9317,7 +9318,12 @@ async function reviewCommand(prUrl, options = {}, command) {
|
|
|
9317
9318
|
);
|
|
9318
9319
|
if (status.status !== "completed") return null;
|
|
9319
9320
|
assertSameAttempt(triggeredSessionId, status.sessionId, "PR review");
|
|
9320
|
-
return {
|
|
9321
|
+
return {
|
|
9322
|
+
...status,
|
|
9323
|
+
status: "completed",
|
|
9324
|
+
sessionId: status.sessionId ?? triggeredSessionId,
|
|
9325
|
+
verdict: status.verdict ?? "unknown"
|
|
9326
|
+
};
|
|
9321
9327
|
}
|
|
9322
9328
|
});
|
|
9323
9329
|
emit(command, options, result, (payload) => {
|