Load business config as JSONC (comments + trailing commas) via an in-repo stripper then stdlib json — no new deps. Default path prefers config.jsonc, falls back to legacy config.json. Auth write-back targets only sibling secrets.json so JSONC comments are never wiped; secrets overlay merges on load. Examples, compose, Docker, docs, favsort and tools all share the same loader. Phase A only — no DB settings migration.
28 lines
399 B
Plaintext
28 lines
399 B
Plaintext
# 本地凭据与业务配置,绝对不要提交
|
|
config.json
|
|
config.jsonc
|
|
config.json.bak
|
|
config.jsonc.bak
|
|
config.json.tmp
|
|
config.jsonc.tmp
|
|
secrets.json
|
|
secrets.json.bak
|
|
secrets.json.tmp
|
|
|
|
# 计划 / 日志 / 快照
|
|
data/
|
|
*.journal.jsonl
|
|
|
|
# 从示例复制出的本地 compose 文件
|
|
compose.yml
|
|
docker-compose.yml
|
|
|
|
# Python
|
|
__pycache__/
|
|
*.pyc
|
|
.venv/
|
|
|
|
# uv / test tooling cache
|
|
.uv/
|
|
.pytest_cache/
|