From c6490096da9ca129c0ac3a1331a0cd6d17ac627d Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Thu, 13 Aug 2026 21:55:53 +0000 Subject: [PATCH] fix(kyberforge): scope check-plugin-content-sync to sync-relevant paths The pre-push hook ran a full `apm pack` + directory diff across every plugin on every push (always_run: true), even for changes that could never affect the sync (e.g. a README edit). Add a files: regex scoped to what scripts/sync-plugin-content.sh actually consumes -- each plugin's apm.yml, .mcp.json (read by reinject_mcp_servers), .apm/** (the sync source), the flat mirror output dirs themselves (agents/, skills/, commands/, instructions/, extensions/, hooks.json -- so a direct edit to compiled output is still caught as drift), the marketplace.json --all reads to build the plugin list, and the sync script itself -- and drop always_run now that files: covers every input path. --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2d75850..1fbafde 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -69,7 +69,7 @@ repos: language: system stages: [pre-push] pass_filenames: false - always_run: true + files: '^(scripts/sync-plugin-content\.sh|\.claude-plugin/marketplace\.json|plugins/[^/]+/(apm\.yml|\.mcp\.json|hooks\.json|\.apm/|agents/|skills/|commands/|instructions/|extensions/))' - id: check-marketplace-mirror-sync name: Check marketplace mirror sync