Skip to content

Add plugin SDK: third-party AC_* commands via entry points#239

Merged
JE-Chen merged 1 commit into
devfrom
feat/plugin-sdk-batch
Jun 19, 2026
Merged

Add plugin SDK: third-party AC_* commands via entry points#239
JE-Chen merged 1 commit into
devfrom
feat/plugin-sdk-batch

Conversation

@JE-Chen

@JE-Chen JE-Chen commented Jun 19, 2026

Copy link
Copy Markdown
Member

Medium-integration batch — declarative plugin discovery (importlib.metadata entry points), full layers + tests + EN/Zh v31 docs + README.

Feature (utils/plugin_sdk, pure-stdlib)

  • discover_plugins(group='je_auto_control.commands') loads each entry point's factory → merges {command_name: handler}; broken plugins skipped (logged). load_plugins registers them into the executor via add_command_to_executor. AC_list_plugins / AC_load_plugins + ac_*. Entry-point source injectable for tests. Declarative/namespaced complement to the runtime path loader.

Verification

  • 6 tests pass (merge mappings, skip broken, empty, register+invoke through executor, wiring); ruff clean; radon no CC≥C; bandit clean; PySide6-free.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 22 complexity · 0 duplication

Metric Results
Complexity 22
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@JE-Chen JE-Chen merged commit ddd11a1 into dev Jun 19, 2026
16 checks passed
@JE-Chen JE-Chen deleted the feat/plugin-sdk-batch branch June 19, 2026 14:23
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant