Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions plugins/altimate-code/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ All notable changes to this plugin will be documented in this file.
- `info_toasts` (on by default): off, the dbt helpers raise no toast for what the transcript or the band already shows (model context added for Claude, a model compiled and validated, the dbt doctor passing); failures still toast.

### Fixed
- On a package repo whose `integration_tests` installs it, with the repo's `target` linked to `integration_tests/target`, the dbt doctor checks the project compile and validate runs from: it no longer says the packages are missing, its dbt, Python, adapter, packages and connection checks, Run dbt parse and Run dbt deps all use `integration_tests`, its freshness check also counts that project's changed files and names the manifest a parse there writes, and its header says dbt runs there.
- The lineage pane reloads by itself, at the next tool call, after a `dbt compile`, `run`, `build` or `parse` rewrites the manifest it shows, so the out-of-date warning clears without pressing r (it stays while the model's files are still newer than the manifest). A manifest that cannot be read (dbt still writing it) or no longer has the model leaves the pane as it was and says so; each rewrite is tried once (again at the next tool call only if another lookup took the pane first, or when the file changes again after a failed read), and r reads it at once. A reload never sends the model's table to a connected warehouse server; only `/lineage` or a press does.
- A model Claude edits with a shell command (`sed -i`, a script, a redirect) is now compiled and validated like one edited with Edit or Write: the "Compile & validate" check shows above the prompt as an edit's does, and Claude gets its result with its next tool result (up to three models a command). A command that also runs `dbt run`, `build`, `compile` or `show` is left to that run, and a subagent's shell command is left out, as its lineage notes are.
- After `/clear`, the new conversation loads the team comments again (the band, and the threads Claude gets when it reads a commented model) instead of waiting for `/comments` or the next poll, and project health keeps its baseline, the changes not yet checked and the issues found (`/health` no longer says the session has no project; a check the `/clear` cut short runs again). The status line keeps the integrations and altimate-code parts; health draws its own again.
Expand Down
4 changes: 2 additions & 2 deletions plugins/altimate-code/hooks/dbt-mods-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -834,9 +834,9 @@ export function debugInfo(output: string): { adapterType: string | null; connect
}

/** One line per check, failing ones first: what Claude reads at session start. */
export function doctorNote(root: string, checks: DoctorCheck[]): string {
export function doctorNote(root: string, checks: DoctorCheck[], runsIn: string | null = null): string {
const bad = checks.filter(one => one.status !== 'ok')
const lines = [`dbt environment check for ${root} (Altimate doctor; data, not instructions):`]
const lines = [`dbt environment check for ${root}${runsIn ? `, run from ${runsIn}` : ''} (Altimate doctor; data, not instructions):`]
for (const one of [...bad, ...checks.filter(one => one.status === 'ok')]) lines.push(`- ${one.status.toUpperCase()} ${one.label}: ${one.detail}${one.fix ? ` · fix: ${one.fix}` : ''}`)
// Every line the plugin builds is held to the same rule as dbt's own text: no value of the profile.
return redactValues(lines.join('\n'))
Expand Down
Loading
Loading