Repository navigation
Conversation
Hidden --step-id on `rc paywalls edit <flow-id>` runs the Astra v3 editor focused on one screen step of a Flow and saves only the steps the run edited back to the flow draft, guarded by the revision read before the run. A failed run saves nothing; a revision conflict is reported and not retried. Edits without --step-id keep the v1 paywall path. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ow edit
The flow draft PATCH now carries {"paywall": {...}} per edited step instead of echoing the whole draft step back, so no read-only keys reach the strict PATCH schema. Tests assert the exact body.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Flow session loading starts fresh only when the file is missing and reports parse errors like the v1 loader. The flow session drops its unused version and identity fields and reuses savePaywallAISession. A duplicate v1 test and the request-shape assertions already covered in paywallai are removed. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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.
Checklist
go build ./...,go test ./..., andgofmtpassMotivation
rc paywalls editcan only edit a standalone paywall, so CLI users can't have Astra edit a screen inside a flow. Part of FUN-2337.Description
Adds
--step-idtorc paywalls editso Astra edits one flow screen and saves it into the flow draft. It saves only the edited paywall per step, leaving the other steps untouched.How this stack fits together
rc flowscommands (Josh) (uses its flows client)Gates:
ASTRA_EDITOR_V3_PUBLIC_CLIENTSandASTRA_FLOW_CREATE_PUBLIC_CLIENTSdefault off, and the MCP tools sit behindFUNNELS_PUBLIC_CLIENTS, so nothing changes until they are switched on. Public tokens needprojects:read+offerings:read_write+workflows:read_write.Testing: unit tests; end-to-end on a local stack with a real model:
rc paywalls edit <flow> --step-id <step> --prompt ...edited the target step of a funnel and bumped the draft revision with exit 0 (a workflows-only token is rejected by Astra, so the token needs the scopes above).Part of FUN-2337
🤖 Generated with Claude Code