@tryarcanist/cli 0.1.155 → 0.1.157
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 +10 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -324,10 +324,11 @@ function randomIdempotencyKey() {
|
|
|
324
324
|
return randomUUID();
|
|
325
325
|
}
|
|
326
326
|
function assertArcanistSessionMutationAllowed(subcommand) {
|
|
327
|
-
|
|
327
|
+
const role = process.env.ARCANIST_AGENT_ROLE?.trim();
|
|
328
|
+
if (role !== "verification" && role !== "intent") return;
|
|
328
329
|
throw new CliError(
|
|
329
330
|
"user",
|
|
330
|
-
`\`arcanist sessions ${subcommand}\` is disabled inside
|
|
331
|
+
`\`arcanist sessions ${subcommand}\` is disabled inside ${role} sessions because nested Arcanist sessions are not observable to the verifier.`,
|
|
331
332
|
{
|
|
332
333
|
hint: "Use direct local/sandbox evidence instead, or report a verification gap rather than spawning another Arcanist session."
|
|
333
334
|
}
|
|
@@ -1119,6 +1120,13 @@ function noChangeOutcomeCopy(reason) {
|
|
|
1119
1120
|
title: "Finalization failed before changes could be prepared.",
|
|
1120
1121
|
detail: null
|
|
1121
1122
|
};
|
|
1123
|
+
case "post_prep_failed":
|
|
1124
|
+
return {
|
|
1125
|
+
state: "no_change_abnormal",
|
|
1126
|
+
tone: "error",
|
|
1127
|
+
title: "Finalization failed after changes were prepared.",
|
|
1128
|
+
detail: null
|
|
1129
|
+
};
|
|
1122
1130
|
default:
|
|
1123
1131
|
return {
|
|
1124
1132
|
state: "no_change_abnormal",
|