Skip to content

perf(cli): drop oxfmt from the compiled binary - #6712

Merged
jgoux merged 5 commits into
perf/stack-managed-snapshotsfrom
perf/cli-drop-oxfmt
Sep 23, 2026
Merged

jgoux merged 5 commits into
perf/stack-managed-snapshotsfrom
perf/cli-drop-oxfmt

Conversation

@avallete

@avallete avallete commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

Local and database-URL TypeScript generation now emits the generator’s unformatted output, removing the oxfmt implementation and native addon from the compiled CLI. The CLI explains on stderr that users can format the output after saving it. TypeScript returned by the Management API and Go, Python, and Swift generation are unchanged.

Builds replace the unused typegen formatter import with a stub and retain the shared minification, ESM, and bytecode settings from #6708.

Minify, ESM, and bytecode depth 2 shorten compiled startup for local binaries and release builds.
@avallete
avallete requested a review from a team as a code owner September 22, 2026 15:49

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 AI Review

Claude reported no findings. Codex reported one user-guidance nit, which is confirmed: the formatter hint assumes an output filename that the command does not control.

Findings

Severity Location Category Sources Claim
⚪ NIT apps/cli/src/commands/gen/types/types.handler.ts:359 user-guidance codex The formatter hint hardcodes database.types.ts, so it is inaccurate when stdout is redirected to another filename or left in the terminal.

Stats

Claude findings: 0 · Codex findings: 1 · Confirmed: 1 · Refuted: 0 · Uncertain: 0


Models: claude-opus-5 + gpt-5.6-sol · Trigger: auto · Workflow run

This review runs once per PR. A maintainer can request another with a /ai-review comment.

Comment thread apps/cli/src/commands/gen/types/types.handler.ts Outdated
@avallete
avallete requested a review from jgoux September 22, 2026 20:25
jgoux and others added 2 commits September 23, 2026 10:04
In-process gen types TypeScript is no longer formatted. stderr suggests
npx oxfmt on the saved file. Linked and project-id TypeScript still come
back formatted from the Management API.
@jgoux
jgoux changed the base branch from develop to perf/cli-compile-bytecode September 23, 2026 08:07
@jgoux
jgoux force-pushed the perf/cli-drop-oxfmt branch from 98b85d5 to 74f877c Compare September 23, 2026 08:08
@jgoux

jgoux commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Rebased onto #6708 and resolved all four build-file conflicts. Release, local, and E2E builds retain the shared compile options and the oxfmt stub. The author’s concurrently pushed filename-neutral hint fix was preserved.

Formatting, generic and Effect lint, type-checking, all 89 focused generator/handler tests, native compilation, and startup checks pass. A compiled populated-schema probe using the shared options and stub emits valid TypeScript identical to source execution. Foreign-platform execution was not repeated.

Base automatically changed from perf/cli-compile-bytecode to perf/stack-managed-snapshots September 23, 2026 08:11
@jgoux
jgoux merged commit 9c83c66 into perf/stack-managed-snapshots Sep 23, 2026
10 of 11 checks passed
@jgoux
jgoux deleted the perf/cli-drop-oxfmt branch September 23, 2026 08:18
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.

2 participants