Repository navigation
release: v0.6.5 — remove, archive and move plans from the CLI (TBP-806) - #62
Merged
Merged
Conversation
A plan could be created and reshaped from the CLI but never removed, so a scripted reset (a demo app back to clean) always ended with "delete these plans in the dashboard". `bridge plan delete --key <key>` removes it. The server decides what that means: a plan no workspace is on is deleted, one workspaces are on is archived (they keep it, nobody new can choose it), and the answer's `action` says which. `--dry-run` shows that decision and the workspaces on the plan, through the delete's read-only preview route, like `tenant delete` and `flag delete`. Needs delete authority (`auth login --admin`). Refs: TBP-806 Claude-Session: 9e06c000
…plan archive and tenant set-plan (TBP-806) Owner decision: deleting a plan workspaces are on is refused, not turned into an archive. The server answers 409 PLAN_IN_USE with how many workspaces are on it and the choices, which the CLI prints as the fix: archive the plan (`bridge plan archive`, `--undo` brings it back), or move those workspaces (`bridge tenant set-plan`, the dashboard's plan picker on the same route, Stripe subscription included) or delete them, then delete. Refs: TBP-806 Claude-Session: 9e06c000
…TBP-806)
- --dry-run calls only the deletion-preview route and never sends a DELETE.
- The delete sends a DELETE to the encoded key path and prints the
server's answer.
- A 409 PLAN_IN_USE answer comes out as that code, with the server's fix as
the hint and exit code 1.
- plan archive sends { archived: true }; --undo sends false.
- tenant set-plan picks the plan's price and posts to planDetails. An
unknown plan, price or tenant, or an ambiguous tenant name, sends nothing.
- The three commands are registered.
Not run yet: no running container mounts bridge-cli.
Refs: TBP-806
Claude-Session: 9e06c000
…_plan and set_tenant_plan (TBP-806) Refs: TBP-806 Claude-Session: 9e06c000
Refs: TBP-806 Claude-Session: 9e06c000
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.
Ships #61 (plan delete, plan archive, tenant set-plan) as 0.6.5 on npm latest. This PR is #61's branch plus the version bump and the changelog entry. #61 closes as superseded.
The server side (bridge-api MR !217) is merged to stage.
Ticket: TBP-806