Commit Graph

4 Commits

Author SHA1 Message Date
evan188199-tech
a325ddfbbd test(plugins): pin entry-point loader contract across load, isolation, duplicate and gating paths (#1740)
* test(plugins): pin entry-point loader contract across load, isolation, duplicate and gating paths

* style(plugins): format test_entrypoint_loader to satisfy ruff format

---------

Co-authored-by: XZH <cto@xzh.ai>
2026-10-07 20:13:55 +08:00
Bingxi Zhao (Frank)
02ba56793e chore: checkpoint backend stabilization workspace 2026-09-01 21:28:15 +08:00
Bingxi Zhao (Frank)
802a19779f refactor: one place loads plugin entry points
#908 and #911 landed two plugin groups — deeptutor.plugins for registry
capabilities, deeptutor.loop_capabilities for chat-loop ones — each with its own
copy of the same plumbing: read the group, import each target, warn and skip
whatever fails. Only the coercer actually differed.

Move the plumbing into core/entry_points.py, which both layers already depend
on, so the containment guarantee (one bad plugin cannot stop the others) is
stated and tested once instead of twice. Both suites now stub the single seam
rather than a module-local alias.

Drops #908's Python <3.10 entry_points() fallback along the way: the project
requires >=3.11, so the keyword form is the only API in play.
2026-08-20 00:34:08 +08:00
alanguan73
0c9093db90 feat(plugins): add the deeptutor.plugins entry-point loader (#908)
CapabilityRegistry.load_plugins() and /plugins/list already imported deeptutor.plugins.loader behind a try/except, but the module never existed — plugin discovery was a dead path. Implement it: discover manifests from the deeptutor.plugins entry-point group and instantiate BaseCapability subclasses. PluginManifest carries exactly the fields both call sites read.
2026-08-19 23:59:14 +08:00