11 Commits

Author SHA1 Message Date
DDSRem
2de976f6b3 Merge pull request #7050 from DDSRem-Dev/codex-comment-migration
docs: 统一全项目中文注释和结构化契约说明
2026-10-17 19:26:29 +08:00
jxxghp
9e978cc047 refactor(types): declare database session lifecycle results 2026-10-16 20:13:23 +08:00
freeman
f3ad81b39e style: apply safe ruff auto-fixes and exempt startup late imports
Run `ruff check app tests scripts --fix` with the configured rule set
(E4/E7/E9/F/I): import sorting (I001), f-strings without placeholders
(F541), lambda/variable/unused-import cleanups that ruff marks safe.
Nine files whose only ruff debt sits next to pre-existing pylint
import-resolution errors (lazy exports, sys.path script imports) or
whose "unused" imports are reached through attribute access by tests are
left untouched so the changed-file pylint gate and the benchmark tests
stay green; their diagnostics remain in the baseline.

app/startup/lifecycle/__init__.py and app/main.py import business
modules after cache composition, import-path and stdio setup on purpose
(the source comments document the contract), so declare E402
per-file-ignores for them instead of adding per-line noqa.

Ruff ratchet watermark drops from 498 to 100; sync the baseline fixture
and the optimization checklist figure.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-09 13:29:09 +08:00
Aqr-K
22e4439bd9 feat(db): 新增按插件隔离的自管理数据库框架
新增 app/db/plugin 包(base/container/locator/migration/registry),
以独立 MetaData、独立 SQLite 库文件或 PostgreSQL schema 隔离插件自有表;
从 app/db/engine.py 抽出 build_sqlite_engine/apply_sqlite_journal_mode 供
宿主引擎与插件引擎共用同一套连接语义;close_database 在宿主引擎释放前先
释放全部插件数据库连接。框架本身尚无调用方,可独立测试。
2026-09-02 02:14:19 -04:00
jxxghp
8460e72c42 refactor(scheduler): split runtime owners and preserve plugin ABI 2026-08-28 23:17:45 +08:00
jxxghp
92e745fc97 refactor(architecture): split chain owners and close runtime boundaries 2026-08-28 22:26:19 +08:00
jxxghp
9dbe424c3d refactor(config): retire RuntimeSettingsCompat host usage 2026-08-26 15:55:21 +08:00
InfinityPacer
1d2984b95f fix(runtime): enforce main event loop ownership (#6424) 2026-08-23 20:14:31 +08:00
jxxghp
1a71e4809f feat: wire host database and extension metrics 2026-08-22 13:22:33 +08:00
jxxghp
5128ae9e1e refactor: 推进后端分层架构治理 2026-08-18 00:29:14 +08:00
Aqr-K
8a11214a43 refactor(db): 修复异步连接池无界增长,并完成 SQLAlchemy 2.0 迁移与分层归位 (#6320) 2026-08-15 06:58:38 +08:00