Repository navigation
Conversation
Nine tool stubs exposed through `altimate tool run` (dbt_run_results, dbt_defer_state, dbt_map_relations, docs_share_comments, dbt_cost_estimate, dbt_health, dbt_sql_graph, dbt_docs_coverage, dbt_cte_profile), an exported `AltimateApi.apiRequest` that calls the backend with the stored credentials, and `dbtAdapterFor`, the one gate every adapter-backed tool goes through: it refuses read-only calls, other projects, and an adapter that did not start. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ile target Reads dbt.deferConfigPerProject from .vscode/settings.json (comments allowed), returns whether defer is on, favor state, the local state directory, and the profile's default target and output names. Remote mode reports that it is not supported yet instead of guessing a download request. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
…er is off and rejects unreadable settings The state directory is resolved whether or not defer is on, so a session can switch it on; settings that do not parse and unknown manifest types no longer enable defer; a state directory needs a manifest.json; profile and target written as env_var() are resolved with the shared profiles helpers. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
👋 This PR was automatically closed by our quality checks. Common reasons:
If you believe this was a mistake, please open an issue explaining your intended contribution and a maintainer will help you. |
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.
Type of change
What does this PR do?
Implements the
dbt_defer_statetool (package P-04, altimate-code half). Given a dbt project folder it readsdbt.deferConfigPerProjectfrom.vscode/settings.json(comments and trailing commas allowed), finds the entry keyed by the project's path relative to its workspace folder, and returns{ enabled, favorState, mode, stateDir, reason, defaultTarget, targets }.manifestPathForDeferral(with${workspaceFolder}and${env:NAME}expanded, relative paths resolved against the project) is returned asstateDironly when it is a directory; otherwisereasonsays why.mode: remotewithenabled: falseand a clear reason. The request shape ofdbt/v1/fetch_artifact_urlcould not be verified, so no download is attempted andapi/fetch-artifact-url.tsis not added.targetand its output names come fromprofiles.yml(DBT_PROFILES_DIR, the project folder, then~/.dbt).This branch includes the foundation commits (dbt Power User tool foundation); retarget/rebase once that PR merges. The plugin half is in the altimate-claude-plugin PR for
feat/defer-target, which should merge after this one.How did you verify your code works?
bun test test/altimate/dbt-defer-state.test.ts: 8 tests pass (local mode, defer off, no entry, root project key, non-directory state path, remote reported unsupported, missing settings/profiles, comments and trailing commas).bun typecheckpasses.Cost side effects
None. The tool only reads local files; it adds no model calls, warehouse queries or cloud resources.
Checklist
Changelog
dbt_defer_state: reads the dbt Power User defer-to-production setting and the profile's default target for a dbt project.🤖 Generated with Claude Code
Summary by cubic
Adds the
dbt_defer_statetool, which reads the dbt Power User defer setting from.vscode/settings.jsonand reports whether defer is on, the state directory, and the profile's default target, plus the foundation the other dbt Power User tools build on.manifest.json. Remote mode, missing or unparseable settings, unknown manifest types, and non-directory paths are reported with reasons instead;env_var()in the profile, target, and state path is resolved.dbtAdapterFor, the gate every adapter-backed tool goes through: it refuses read-only calls, plan mode, sessions in other projects, and adapters that failed to start.AltimateApi.apiRequestfor endpoint files to call the backend with the stored credentials.dbt_defer_statereturn "not implemented" placeholders.dbt_defer_stateis read-only; it adds no API calls, warehouse queries, or cloud resources.Written for commit 983309a. Summary will update on new commits.