Write HTML. Render video. Built for agents.
JavaScript aiai-agentsanimationclaude-codeffmpegframeworkgsaphtmlhtml-to-videomcpmotion-graphicspuppeteerrenderingtypescriptvideo-editor
fix(hooks): run the checkout's own oxfmt, oxlint and tsc instead of bunx (#5751)
Miguel Ángelb3f58690357b
diff --git a/AGENTS.md b/AGENTS.mdindex 5259adebe7..53308f0ea8 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -55,9 +55,9 @@ any test file that no runner reaches.Uses **oxlint** and **oxfmt** (not eslint, not prettier, not biome).```bash-bunx oxlint <files> # Lint-bunx oxfmt <files> # Format-bunx oxfmt --check <files> # Check formatting (CI / pre-commit)+node_modules/.bin/oxlint <files> # Lint+node_modules/.bin/oxfmt <files> # Format+node_modules/.bin/oxfmt --check <files> # Check formatting (CI / pre-commit)```Always lint and format changed files before committing. Lefthook pre-commit hooks enforce this automatically.diff --git a/CLAUDE.md b/CLAUDE.mdindex f2ab235cf9..eb398f0856 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -53,9 +53,9 @@ bun run test # Run all testsUses **oxlint** and **oxfmt** (not eslint, not prettier, not biome).```bash-bunx oxlint <files> # Lint-bunx oxfmt <files> # Format-bunx oxfmt --check <files> # Check formatting (CI / pre-commit)+node_modules/.bin/oxlint <files> # Lint+node_modules/.bin/oxfmt <files> # Format+node_modules/.bin/oxfmt --check <files> # Check formatting (CI / pre-commit)```Always lint and format changed files before committing. Lefthook pre-commit hooks enforce this automatically.diff --git a/lefthook.yml b/lefthook.ymlindex 8af36f84bd..aea4e7448f 100644--- a/lefthook.yml+++ b/lefthook.yml@@ -3,13 +3,13 @@ pre-commit:commands:lint:glob: "*.{js,jsx,ts,tsx,mjs,cjs,mts,cts}"- run: bunx oxlint --no-error-on-unmatched-pattern {staged_files}+ run: node_modules/.bin/oxlint --no-error-on-unmatched-pattern {staged_files}format:glob: "*.{js,jsx,ts,tsx,mjs,cjs,mts,cts,json,md,yaml,yml}"# Auto-format and re-stage so the committed snapshot is always formatted.# Replaces --check which only reports — that left unformatted files in# commits when the hook ran after the amend snapshot was taken.- run: bunx oxfmt --no-error-on-unmatched-pattern {staged_files} && git add -f {staged_files}+ run: node_modules/.bin/oxfmt --no-error-on-unmatched-pattern {staged_files} && git add -f {staged_files}skills-manifest:glob: "skills/**"# Regenerate the freshness fingerprint when a skill changes, then re-stage@@ -19,7 +19,7 @@ pre-commit:run: bun packages/cli/scripts/gen-skills-manifest.ts && git add skills-manifest.jsontypecheck:glob: "*.{ts,tsx}"- run: cd packages/core && bunx tsc --noEmit && cd ../studio && bunx tsc --noEmit && cd ../.. && bunx tsc --noEmit -p scripts/tsconfig.json+ run: cd packages/core && node_modules/.bin/tsc --noEmit && cd ../studio && node_modules/.bin/tsc --noEmit && cd ../.. && node_modules/.bin/tsc --noEmit -p scripts/tsconfig.json# Mirrors the CI gate (same `--base origin/main` so the local hook can't# pass on a branch CI would fail). Audits the working tree, which means# unstaged WIP in `packages/**` is part of the diff — stash before@@ -65,4 +65,4 @@ pre-commit:commit-msg:commands:commitlint:- run: bunx commitlint --edit "{1}"+ run: node_modules/.bin/commitlint --edit "{1}"