Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
module.exports = {
'*.{js,jsx,ts,tsx}': [
'node scripts/sort-imports.mts',
'prettier --write',
// The design rules read each primitive's `cva` variants through
// @librechat/client, which resolves to packages/client/dist, so the metadata
// has to exist before the fixing pass below reads it: run first, that pass
// would classify against a stale build and report counts neither the runner
// nor CI agrees with — and its failure aborts lint-staged before the runner
// gets to rebuild. tsdown is ~1s when nothing changed.
() => 'npm run --silent build:client-package',
// Same invocation as the Static Checks CI job: warnings are failures there,
// and changed files under config-ignored paths must not trip it.
// --pass-on-unpruned-suppressions: fixing a design-rule violation recorded in
// eslint-suppressions.json otherwise fails the commit that fixed it. Tighten the
// recorded counts with `npm run lint:design:prune`.
// One invocation, not a bare `eslint --fix` followed by this one: ESLint applies
// suppressions after fixes, so a single run reports the post-fix state, while a
// first run without the flag exits 2 on the suppression the fix just made unused
// and lint-staged never reaches the command that tolerates it.
'eslint --fix --config eslint.config.mjs --no-warn-ignored --max-warnings=0 --pass-on-unpruned-suppressions',
// The runner is the CI mirror — same arguments — and rebuilds the metadata
// itself when a staged change made it stale, so the commit and the lane
// agree on what the rules classify.
'node scripts/static-checks.mts --only eslint',
],
'*.json': ['prettier --write'],
// No group here for the recorded backlog, the design metadata or this gate's
// own source: `.husky/pre-commit` ends by running the runner over the staged
// diff with `--skip eslint,prettier,imports`, and that run selects its groups
// from the same filters the Static Checks lane's paths-filter mirrors. It also
// sees a deletion, which lint-staged does not hand to a task at all. A group
// here would run the whole-record sweep a second time for the same commit.
};