Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

test: keep package setup verification read-only

morlutoacaf03056d6b
diff --git a/scripts/verify-package.mjs b/scripts/verify-package.mjs
index 65598341f..dc34a0a91 100644
--- a/scripts/verify-package.mjs
+++ b/scripts/verify-package.mjs
@@ -406,7 +406,7 @@ try {
const aligned = json(alignedExecution.stdout);
const secondExecution = await runWithStatus(
cli,
- ["setup", "--yes", "--install-hopper", "--json"],
+ ["setup", "--install-hopper", "--json"],
environment,
);
const second = json(secondExecution.stdout);
@@ -414,15 +414,15 @@ try {
const status = process.platform === "linux" ? "needs_human" : "ready";
if (
first.status !== status ||
- second.status !== status ||
+ second.status !== "needs_confirmation" ||
firstExecution.status !== (status === "ready" ? 0 : 1) ||
- secondExecution.status !== (status === "ready" ? 0 : 1) ||
+ secondExecution.status !== 1 ||
aligned.status !== status ||
alignedExecution.status !== (status === "ready" ? 0 : 1) ||
aligned.plannedActions.length !== 0 ||
aligned.appliedActions.length !== 0 ||
!second.plannedActions.some(({ kind }) => kind === "install_hopper") ||
- !second.appliedActions.includes("installed_hopper")
+ second.appliedActions.length !== 0
)
throw new Error(
`packaged setup did not preserve idempotent defaults and explicit Hopper reinstall behavior: ${JSON.stringify({ first, aligned, second })}`,