@tryarcanist/cli 0.1.197 → 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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. 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
- "`arcanist sessions respond` is disabled inside verification sessions because verification agents cannot mutate the session under review.",
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 the verifier.`,
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryarcanist/cli",
3
- "version": "0.1.197",
3
+ "version": "0.1.199",
4
4
  "description": "CLI for Arcanist — create and manage coding agent sessions",
5
5
  "type": "module",
6
6
  "bin": {