installer: require ArmorIQ account; abort on declined connect#5
Merged
Merged
Conversation
Previously the installer let users decline the "Connect your ArmorIQ account now?" prompt and continued installing in local-only mode. Per product direction, ArmorCopilot is account-gated. If the user declines, or runs without a TTY without ARMORIQ_API_KEY, the installer now: - uninstalls the plugin - removes the marketplace registration - removes the install dir - exits non-zero with a clear "re-run when ready" message Also drops --skip-login (no longer a supported state) and re-runs the same teardown if armoriq-dev login fails or produces no credentials. If ARMORIQ_API_KEY is set or ~/.armoriq/credentials.json already exists, the connect step is skipped non-interactively (no prompt, no abort). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Pulkit7070
approved these changes
May 29, 2026
This was referenced Jun 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--skip-loginflag (no longer supported).ARMORIQ_API_KEYis set or~/.armoriq/credentials.jsonalready exists, the connect step is skipped non-interactively.Why
Product direction: ArmorCopilot is account-gated. Without credentials the plugin cannot issue signed intent tokens, ship audit, or apply policy with backend visibility. Letting users finish installation in a half-broken local-only state surfaces a worse experience than aborting cleanly.
Test plan
~/.armoriq/armorCopilotremoved, exit code 1, "re-run when ready" message shown.bash <(curl ...)(no TTY) withoutARMORIQ_API_KEY: aborts with the no-TTY message and teardown.ARMORIQ_API_KEYset: skips the prompt, completes silently.🤖 Generated with Claude Code