Skip to content

refactor(transform): keep @pgsql/transform pure AST-level; move change-aware pieces up - #318

Merged
pyramation merged 1 commit into
mainfrom
feat/transform-pure-ast
Jul 27, 2026
Merged

refactor(transform): keep @pgsql/transform pure AST-level; move change-aware pieces up#318
pyramation merged 1 commit into
mainfrom
feat/transform-pure-ast

Conversation

@pyramation

Copy link
Copy Markdown
Collaborator

Summary

Layering fix agreed after #316/#317: this repo has no notion of pgpm "changes", so @pgsql/transform keeps only the pure AST-level surface — transformSql, qualifyUnqualified, classifyStatements facts, and round-trip validation.

Removed (with their tests): categorize.ts (CategoryProfile / TIER_PROFILE / buildCategoryOf — keyed by change name) and fixture-closure.ts (resolveFixtureClosure — takes changes + plan dependencies). They move up to a new @pgpmjs/transform package in constructive-io/constructive, which will be a superset: export * from '@pgsql/transform' plus the change-aware layer (categorize, fixture-closure, bundle-driver from the closed #317).

160 tests still pass. Tracked in constructive-io/constructive-planning#1271.

Link to Devin session: https://app.devin.ai/sessions/1aa52746e60c4df38ef2678d168269b9
Requested by: @pyramation

@pyramation pyramation self-assigned this Jul 27, 2026
@devin-ai-integration

Copy link
Copy Markdown
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@pyramation
pyramation merged commit fa301fa into main Jul 27, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant