mirror of
https://github.com/block/buzz.git
synced 2026-10-31 14:31:02 +00:00
chore(desktop): repair pre-existing clippy and file-size gate breakage
Two quality gates fail at the branch head with no working-tree changes, blocking any new commit behind the pre-commit/pre-push hooks: - clippy 1.95 flags the redundant closure around process_is_running in should-restart discovery wiring (agent_discovery.rs); pass the function directly. - agent_discovery.rs measures 1400 lines against its 1398 file-size ledger limit (two lines landed without a matching ratchet bump); ratchet the ledger to match reality — this change adds no lines. The ledger also carries the ratchet bumps (discovery.rs 1130 -> 1134, tauri.ts 1317 -> 1320, types.ts 1049 -> 1051) for the Doctor bundled-adapter copy change that lands in the next commit: lefthook checks out the staged half of a partially staged file while running pre-commit, so splitting the ledger hunks across the two commits makes the gate judge the next commit's files against the old limits. Verification: cargo clippy --lib --tests -D warnings (desktop/src-tauri) clean; node desktop/scripts/check-file-sizes.mjs passes. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Signed-off-by: Matt Toohey <contact@matttoohey.com>
This commit is contained in:
@@ -203,7 +203,9 @@ const overrides = new Map([
|
||||
// checkAcpNodeRuntime wrapper for the bundled-bridge Node.js doctor check
|
||||
// (+35 lines on rebase union with main's Doctor/team growth). Queued to
|
||||
// split with the rest of this file.
|
||||
["src/shared/api/tauri.ts", 1340],
|
||||
// bundled-adapter-doctor-copy: adapter_bundled field on
|
||||
// RawAcpRuntimeCatalogEntry + mapper passthrough (+3 lines).
|
||||
["src/shared/api/tauri.ts", 1343],
|
||||
// doctor-npm-eacces-preflight: hint field added to InstallStepResult (+1 line).
|
||||
// doctor-install-reliability: AuthStatus tagged union + nodeRequired/authStatus/
|
||||
// loginHint fields on AcpRuntimeCatalogEntry (+14 lines). Load-bearing new feature.
|
||||
@@ -221,7 +223,9 @@ const overrides = new Map([
|
||||
// bundled-bridge Node.js doctor check (+23 lines on rebase union with
|
||||
// main's Git Bash / signout-wipe / team-instructions type growth);
|
||||
// "adapter_outdated" availability retired with the codex version gate (-1 line).
|
||||
["src/shared/api/types.ts", 1069],
|
||||
// bundled-adapter-doctor-copy: adapterBundled field on
|
||||
// AcpRuntimeCatalogEntry (+2 lines).
|
||||
["src/shared/api/types.ts", 1071],
|
||||
// readiness-gate: PersonaDialog.tsx threads computeLocalModeGate +
|
||||
// requiredCredentialEnvKeys + RequiredFieldLabel so the "New agent" dialog
|
||||
// shows required markers and credential amber rows (parity with
|
||||
@@ -280,7 +284,9 @@ const overrides = new Map([
|
||||
// codex_adapter_availability/is_outdated, AdapterOutdated arm) made
|
||||
// obsolete by pinned bundling; ratcheting 1371 -> 1250 to bank the
|
||||
// deletions (main's Windows Doctor install growth stays).
|
||||
["src-tauri/src/managed_agents/discovery.rs", 1250],
|
||||
// bundled-adapter-doctor-copy: adapter_bundled computed in the discovery
|
||||
// sweep so the Doctor UI can hide the bundle path (+4 lines).
|
||||
["src-tauri/src/managed_agents/discovery.rs", 1254],
|
||||
// rebase over codex-acp-package-swap: its version-probe tests union with the
|
||||
// doctor-install-reliability nvm/login-shell/semver tests — each side alone
|
||||
// stayed under the 1000 default; the union exceeds it.
|
||||
|
||||
Reference in New Issue
Block a user