Files
deepseek-harness/lefthook.yml
T
Magolor 7110b615eb fix(llm): 生成提供方元数据并显示凭据检测状态 (#6106)
* fix(llm): generate provider metadata and clarify credential hints

* fix(settings): shorten credential hints and mark detected sources in green

* fix(llm): verify staged provider metadata and document regeneration

* fix(provider-metadata): reconcile authentication hints and key controls

* test(user-text): calibrate ratio headroom across unmatched workloads

* test(gates): include provider metadata in hygiene expectations

* fix(models): hide authentication hints for entered keys
2026-10-14 12:29:31 +08:00

50 lines
1.7 KiB
YAML

# Git hooks (lefthook). Keep these local checkpoints fast; CI owns the full
# repository-wide gate matrix.
# Install: `node scripts/install-lefthook.mjs` (runs automatically via postinstall).
pre-commit:
jobs:
- name: translation pairing (staged records)
glob: '*.i18n.yaml'
exclude:
- '.agents/notes/archived/**'
run: node_modules/.bin/tsx scripts/verify-translation-pairing.ts --cached {staged_files}
- name: archived agent notes
glob: '.agents/notes/archived/**'
run: node_modules/.bin/tsx scripts/verify-archived-agent-notes.ts
- name: lint (staged)
glob: '*.{ts,tsx,mts,cts,mjs}'
exclude:
- 'vendor/*/src/**'
run: node_modules/.bin/tsx scripts/run-oxlint.ts --config .oxlintrc.staged.json --fix --no-error-on-unmatched-pattern {staged_files}
stage_fixed: true
- name: whitespace (staged)
run: git diff --cached --check
- name: pi-ai provider metadata
glob: '{pnpm-lock.yaml,packages/llm/llm-pi-ai/package.json,packages/llm/llm-pi-ai/scripts/gen-provider-data.ts,packages/llm/llm-pi-ai/src/provider-data.generated.ts}'
run: node_modules/.bin/tsx packages/llm/llm-pi-ai/scripts/gen-provider-data.ts --check --cached
- name: vendor manifest guard
run: scripts/check-vendor-manifest.sh
pre-merge-commit:
jobs:
- name: translation pairing (staged records)
glob: '*.i18n.yaml'
exclude:
- '.agents/notes/archived/**'
run: node_modules/.bin/tsx scripts/verify-translation-pairing.ts --cached {staged_files}
- name: archived agent notes
glob: '.agents/notes/archived/**'
run: node_modules/.bin/tsx scripts/verify-archived-agent-notes.ts
pre-push:
jobs:
- name: typecheck
run: pnpm run typecheck