Repository navigation
Conversation
--headless configures the codebase with no prompts: the static snippet install, then CSP, identity, analytics linkage, and masking through a terminal agent when one is installed. Writes .subtext/install-result.json and exits 0 when the snippet is installed. --org skips auth via the public snippet service. --external-agent writes the remaining agent work to .subtext/agent-prompt.md for an agent that is already running (hosted installs) instead of launching a local CLI.
This branch has not been deployed
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.
Stacked on #54. Review that first; this PR shows only the headless diff and should be retargeted to
mainonce #54 merges.Summary
Adds a no-prompt mode for automation, such as CI or a hosted install that runs the wizard inside a customer's repo with credentials it already holds.
--headlessconfigures the codebase only:.subtext/install-result.json; exits0when the snippet is installed,1when it isn't,2with no credential--org <id>uses the public snippet service without a credential, so telemetry is skipped.--external-agentdoes the deterministic steps, then writes the remaining agent work to.subtext/agent-prompt.mdinstead of launching a local agent CLI. This is for a hosted agent (for example an Anthropic Managed Agents session) that runs the wizard itself.Test plan
npm test(103 passing, including newheadless.test.ts: no-credential exit, static install with no prompts, failure without agent,--external-agentwith and without a static install,--orgwithout a credential)npm run typecheck