Something went wrong. Try again.
Long-term memory for AI chat companions
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869import { defineConfig, type OxfmtConfig } from "oxfmt";
// Shared formatting options for the root, docs, and workspace configs.export const fmtBase: OxfmtConfig = { printWidth: 100, tabWidth: 2, useTabs: false, endOfLine: "lf", semi: true, singleQuote: false, trailingComma: "all", insertFinalNewline: true, sortImports: true, sortPackageJson: true, sortTailwindcss: true,};
// Docs that a push can change without starting a Workers Builds build or the `check` job// (the excludes of the Workers Builds trigger and the `changes` filter in ci.yml), so// `check` must not read them: a mistake in one would fail the next unrelated build. Bare// names match at any depth, which a workspace config needs because oxfmt formats a file// with its nearest config and a config's patterns match only below its own directory.export const skippedDocs = [ "README.md", // machine-memory init owns the managed block in AGENTS.md. "AGENTS.md", "CLAUDE.md",];
// Workspace packages also sort package.json scripts, and leave built output alone.export const workspaceFmt: OxfmtConfig = { ...fmtBase, sortPackageJson: { sortScripts: true }, ignorePatterns: ["dist/**", ...skippedDocs],};
// The root formats only its own files; each workspace formats itself with its own// oxfmt.config.ts. The Rust workspace and the Hermes plugin keep their own tooling.export default defineConfig({ ...fmtBase, ignorePatterns: [ "admin/**", "docs/**", "iac/**", "ingest/**", "router/**", "crates/**", ".cargo/**", "Cargo.toml", "Cargo.lock", "deny.toml", "hermes/**", "skills/**", "target/**", "node_modules/**", ".amp/**", ...skippedDocs, // The rest of the skipped paths that are at the root (see skippedDocs). LICENSE* is // not a format oxfmt reads. "STANDARD.md", ".agents/**", ".zed/**", ".vscode/**", ".github/dependabot.yml", "LICENSES/**", "REUSE.toml", ],});