Add bounded setup command for agent onboarding#74
Merged
Conversation
|
Implements an idempotent 🎯 Quality: 74% Good · 📦 Size: Large — consider splitting if possible 🛡️ Standards: no pre-flight fit check ran for this change — wire 📈 This month: Your 228th PR — above team average · Averaging Average |
mariojgt
approved these changes
Jul 14, 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.
Agent onboarding previously required interpreting guide output and manually editing build hooks, which cautious hosted assistants could treat as an unbounded instruction chain.
This adds an idempotent
patchstack-connect setupcommand that scans or reuses the site, manages the widget, preserves and wires existing npm/Bun build scripts, and never runs the project build orprotect.It also improves native package-manager detection, replaces claim-oriented wording with neutral dashboard language, and replaces the 699-byte prompt with an authorization-led request that pre-approves the widget and production hooks while documenting a dependency-first Bolt fallback.
Validation:
npm test(391 tests),npm run typecheck,npm run build,npm pack --dry-run --json,node field-test/setup-demo.mjs, the scripted field-test (8/8), andgit diff --check.