From f3810c4b97b8d2d4a4cc6e11ea64027a820fbaf8 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Wed, 2 Sep 2026 16:07:36 -0700 Subject: [PATCH] refactor(skills_hub): keep ensure_hub_dirs seed literals (tests stub HubLockFile with a lambda) --- tools/skills_hub.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/skills_hub.py b/tools/skills_hub.py index 1bb60a3e40..224e3b6d81 100644 --- a/tools/skills_hub.py +++ b/tools/skills_hub.py @@ -353,9 +353,9 @@ def ensure_hub_dirs() -> None: _quarantine_dir().mkdir(exist_ok=True) _index_cache_dir().mkdir(exist_ok=True) for path, initial in ( - (_lock_file(), json.dumps(HubLockFile.EMPTY) + "\n"), + (_lock_file(), '{"version": 1, "installed": {}}\n'), (_audit_log(), ""), - (_taps_file(), json.dumps(TapsManager.EMPTY) + "\n"), + (_taps_file(), '{"taps": []}\n'), ): if not path.exists(): path.write_text(initial, encoding="utf-8")