Skip to content
Merged
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
12 changes: 12 additions & 0 deletions treefmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,18 @@ command = "gofmt"
options = ["-w"]
includes = ["*.go"]

# Regenerates pkgs/mcpx/plugin/opencode/mcpx/ops.gen.ts from the /v1
# route table whenever the API package changes (#4814): generated
# files refresh with formatting, like just-recipes.json in `just fix`.
# The command ignores the file list treefmt passes it — the generator
# rewrites the one output file. The nix build independently
# regenerates in preCheck (#4807); this keeps the TREE fresh for
# raw-source consumers of the plugin. Idempotent.
[formatter.mcpx-ops]
command = "bash"
options = ["-c", "cd pkgs/mcpx && go test ./internal/api -run '^TestPluginOpsAreGenerated$' -update", "_"]
includes = ["pkgs/mcpx/internal/api/*.go"]

[formatter.haskell]
command = "ormolu"
options = [
Expand Down