Commit Graph
6 Commits
Author SHA1 Message Date
liukx0205 a3c870e3e4 feat(session)!: use SQLite and import legacy JSONL on open 2026-11-15 01:38:51 +08:00
winewill 3fd0c6683d fix(desktop): narrow publisher metadata parse recovery 2026-11-12 12:15:13 +08:00
_Kerman 5ea79d1fe7 fix(ci): prune retired Python PTC catch entries 2026-11-11 15:29:39 +08:00
Turtle 62cce39c06 fix(infra): drop --record and treat a new defect on a recorded empty catch as new 2026-11-11 12:47:01 +08:00
turtle1999 6572c8a63b chore(infra): record the clauses master added before this gate
The merge brings apps/desktop/src/client/WelcomePage.tsx:132,
apps/desktop/src/preload-platform-account.ts:26,
packages/credentials/deepseek-account-platform/src/index.ts:432, and
packages/credentials/deepseek-account-platform/src/logout.ts:33 into the
recorded inventory, so the gate passes on the merged tree. The two wide `try`
clauses need their owners' judgement: narrowing one changes which failures its
clause discards.
2026-11-11 12:47:01 +08:00
turtle1999 05883ff6b5 feat(infra): reject silent empty catch clauses
AGENTS.md requires an empty `catch` to name the discarded error, state why it
needs no handling, and keep its `try` to one statement, but nothing enforced
it: 119 clauses break a condition today.

The new `verify-empty-catch` gate scans tracked and non-ignored untracked
first-party source with the TypeScript syntax tree. It records those 119 legacy
clauses by path, syntax fingerprint, and count in
`scripts/empty-catch.baseline.json`, so enforcement starts without a
repository-wide edit. A new or changed clause fails the gate, and fixing a
recorded clause requires `--prune` to retire its allowance; no command adds
one.

The recorded-inventory bookkeeping shared with `verify-no-unknown-casts` moves
to `scripts/baseline-inventory.ts`, which keeps one copy of baseline
validation, counting, pruning, and the command itself.
2026-11-11 12:47:00 +08:00