@tryarcanist/cli 0.1.198 → 0.1.199
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 +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -529,11 +529,11 @@ function randomIdempotencyKey() {
|
|
|
529
529
|
}
|
|
530
530
|
function assertArcanistSessionMutationAllowed(subcommand) {
|
|
531
531
|
const role = process.env.ARCANIST_AGENT_ROLE?.trim();
|
|
532
|
-
if (role !== "verification") return;
|
|
532
|
+
if (role !== "verification" && role !== "review") return;
|
|
533
533
|
if (subcommand === "respond") {
|
|
534
534
|
throw new CliError(
|
|
535
535
|
"user",
|
|
536
|
-
|
|
536
|
+
`\`arcanist sessions respond\` is disabled inside ${role} sessions because read-only agents cannot mutate the session under review.`,
|
|
537
537
|
{
|
|
538
538
|
hint: "Report the unanswered question as a verification blocker instead."
|
|
539
539
|
}
|
|
@@ -541,7 +541,7 @@ function assertArcanistSessionMutationAllowed(subcommand) {
|
|
|
541
541
|
}
|
|
542
542
|
throw new CliError(
|
|
543
543
|
"user",
|
|
544
|
-
`\`arcanist sessions ${subcommand}\` is disabled inside ${role} sessions because nested Arcanist sessions are not observable to
|
|
544
|
+
`\`arcanist sessions ${subcommand}\` is disabled inside ${role} sessions because nested Arcanist sessions are not observable to read-only agents.`,
|
|
545
545
|
{
|
|
546
546
|
hint: "Use direct local/sandbox evidence instead, or report a verification gap rather than spawning another Arcanist session."
|
|
547
547
|
}
|