Conversation
`branch`, `info`, and `preview` previously shelled out to the upstream Forward `tb` package. Wire them to the SDK's existing native implementations (run_branch_list/status/delete, run_info, run_preview) so these commands work without `tb` installed alongside the SDK. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
6 of 7 tasks
…alled Tinybird CLI branch, info, and preview already work correctly via the real tb CLI delegation path (main's SDK_OWNED_COMMANDS policy). Reimplementing them against the raw API duplicates logic the installed CLI already owns and can drift from its actual behavior. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.
Summary
branch(list/status/delete),info, andpreviewpreviously shelled out to the upstream Forwardtbpackage instead of using the SDK's own native implementations. This wires them to the existingrun_branch_list/run_branch_status/run_branch_delete,run_info, andrun_previewimplementations, same pattern as Wire native build/deploy/dev commands to CLI entry point #25 (build/deploy/dev) and Wire native pull/login commands to CLI entry point #26 (pull/login).tinybird branch listprints branch names;tinybird branch status [name]andtinybird branch delete <name>match the CLI's existing argument shape.tinybird info [--json]prints workspace/project/branch info.tinybird preview [--dry-run] [--check] [--name] [--local|--branch]builds and deploys to a temporary preview branch.tinybird preview, which wasn't previously documented.Closes PROTM-2258: https://linear.app/tinybird/issue/PROTM-2258/python-sdk-wire-native-branchinfopreview-commands-to-cli-entry-point
Checklist
lint,typecheck,test,secrets)pre-commit run --all-filespasses locallyREADME.md/CONTRIBUTING.md) if neededCHANGELOG.mdwas updated when user-facing behavior changedNote: the
secrets/gitleaks pre-commit target fails in this sandbox on an unrelated SSL cert error fetching its environment — not related to this change (same note as PRs #24-#26).