Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 1 addition & 2 deletions .agents/skills/code-generation/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ Several packages generate TypeScript code from external sources rather than bein

## 1. Protobuf-Based Code Generation (`build:proto`)

Four packages generate TypeScript from the PostgreSQL protobuf definition at `__fixtures__/proto/17-latest.proto`:
Three packages generate TypeScript from the PostgreSQL protobuf definition at `__fixtures__/proto/17-latest.proto`:

| Package | Script | What it generates |
|---------|--------|-------------------|
| `@pgsql/utils` | `npm run build:proto` | AST helper functions (`src/`), wrapped helpers (`wrapped.ts`), runtime schema (`runtime-schema.ts`) |
| `@pgsql/traverse` | `npm run build:proto` | Visitor-pattern traversal utilities |
| `@pgsql/transform` | `npm run build:proto` | Multi-version AST transformer utilities |
| `pg-ast` | `npm run build:proto` | Low-level AST type helpers |

Each package has a `scripts/pg-proto-parser.ts` that configures `PgProtoParser` with package-specific options (which features to enable, output paths, type sources).

Expand Down
2 changes: 0 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ A pnpm monorepo for PostgreSQL AST parsing, deparsing, and code generation. All
| `@pgsql/quotes` | `packages/quotes` | SQL identifier/string quoting and keyword classification |
| `@pgsql/cli` | `packages/pgsql-cli` | CLI tool for parse/deparse operations |
| `pg-proto-parser` | `packages/proto-parser` | Generate TypeScript from PostgreSQL protobuf definitions |
| `pg-ast` | `packages/pg-ast` | Low-level AST helpers |

## Setup

Expand Down Expand Up @@ -91,7 +90,6 @@ Every package supports these scripts:
| `utils` | `npm run build:proto` | Generate AST helpers from protobuf |
| `traverse` | `npm run build:proto` | Generate traversal utilities from protobuf |
| `transform` | `npm run build:proto` | Generate transformer utilities from protobuf |
| `pg-ast` | `npm run build:proto` | Generate AST types from protobuf |
| `pgsql-types` | `npm run infer` | Infer field metadata from SQL fixtures |
| `pgsql-types` | `npm run generate` | Generate narrowed types from metadata |
| `proto-parser` | `npm run generate:test-utils` | Generate test utilities from protobuf |
Expand Down
58 changes: 0 additions & 58 deletions packages/pg-ast/CHANGELOG.md

This file was deleted.

176 changes: 0 additions & 176 deletions packages/pg-ast/README.md

This file was deleted.

38 changes: 0 additions & 38 deletions packages/pg-ast/__test__/__snapshots__/utils.test.ts.snap

This file was deleted.

Loading
Loading