refactor(mytoolkit): 移除历史兼容,统一分层配置键,补全 Config 单测

- config.Config 仅支持 ~/.mytoolkit/config.json 分层键
- 删除旧 env.json/module-config.json 迁移逻辑与 flat-key 别名
- ssh/bib/image 命令改用 connections.* / paths.* / secrets.api_keys.*
- 单测覆盖分层读写、嵌套删除、export、resolve_key、权限
This commit is contained in:
Zhengshou Lai
2026-07-19 11:56:26 +08:00
parent b517bd3796
commit 69efc6b3e2
6 changed files with 131 additions and 380 deletions
-1
View File
@@ -9,4 +9,3 @@ import os
import tempfile
os.environ["MYTOOLKIT_HOME"] = tempfile.mkdtemp(prefix="mytoolkit-test-home-")
os.environ["MYTOOLKIT_NO_EXTERNAL_MIGRATION"] = "1"