Repository navigation
Closed
Labels
phaseEpic implementation phase
Description
Summary
Upgrade the current bundled-only plugin manager into an EEGPrep Extension Manager that helps researchers understand what is installed, what is curated, what failed, and how to install extensions safely.
EEGPrep should not host or unzip arbitrary extension code. The manager should guide package-manager installation and show trusted metadata.
Key Work
- Extend
plugin_menu,plugin_status, and related public APIs to use the new extension registry while preserving EEGLAB-style naming where useful. - Build a GUI Extension Manager that shows bundled, installed, curated, disabled, incompatible, failed, and missing-dependency states.
- Add details panel: extension description, version, maintainer, package name, docs URL, source, capabilities, errors, and install/update guidance.
- Define a curated catalog metadata schema. The catalog should point to packages/repos/docs and never store code zips.
- Support a local/catalog JSON file for tests and future catalog download integration.
- Generate safe install commands such as
uv add eegprep-ext-foo,pip install eegprep-ext-foo, oruv add git+https://...without silently executing them. - Add clear user copy about trust: installing Python packages executes third-party code.
- Keep headless
plugin_menu(show=False)useful for scripts and console.
Edge Cases To Cover
- Catalog lists an extension that is not installed.
- Installed extension is absent from catalog.
- Catalog metadata conflicts with installed package metadata.
- Extension is installed but incompatible with current EEGPrep.
- Extension is disabled.
- Extension load failed but catalog metadata is available.
- No internet / no catalog available.
- Private lab extension installed from editable path.
Acceptance Criteria
- Extension Manager is useful both headlessly and in GUI.
- It clearly separates installed state from catalog/curation state.
- It never downloads/unzips/runs installation without explicit user action.
- Tests cover installed-only, catalog-only, installed-plus-catalog, incompatible, disabled, failed, and private/local extension states.
- GUI layout is visually polished and consistent with EEGPrep's EEGLAB-inspired UI.
- Docs explain how to install extensions from PyPI, GitHub, and local editable paths.
/goal Prompt
/goal Build EEGPrep's Extension Manager around the extension registry and a metadata-only curated catalog. Preserve plugin_menu/plugin_status compatibility where useful, never host or unzip arbitrary code, provide safe install guidance, support headless and GUI use, cover installed/catalog/failure edge cases, add docs, visual QA, lint/type checks, and focused tests.
Metadata
Metadata
Assignees
Labels
phaseEpic implementation phase
Activity
claude commentedon Jun 2, 2026
🤖 Plan:
Research
Phase 3 is an epic-scale GUI + catalog + state-model rebuild, not a small bug fix. It is also explicitly gated by Phase 1 (#113, defines
ExtensionSpec+ registry + entry-point discovery + status enum) and coordinated with Phase 2 (#114, runtime menu/console/help integration). Phase 1 has not landed: noeegprep.extensionsmodule, noExtensionSpec, noimportlib.metadataentry-point discovery, and no real status model — just a hard-coded bundled tuple.Relevant code
_BUNDLED_PLUGINS, no registry, no catalogplugin_status/plugin_menuAPI surface to preserveEEGPrepSession.PLUGINLISTmirror that must stay sync'dDuplicate-work preflight: no open PRs touch this area. Open siblings: #113 (Phase 1), #114 (Phase 2), #116 (Phase 4), #117 (Phase 5), #118 (Phase 6). Per epic #112: "Phase 1 must merge first because it defines the extension API and registry contract."
Proposed Approach (for human review)
Scope is well over 100 lines and crosses multiple modules (admin/plugin_menu, new catalog module, new GUI dialog, session, menu_actions, docs, tests, help resource). Following fix-issue guidance ("do NOT open a parallel implementation PR" when overlapping work exists), this should not be merged before #113 lands, because the status model,
ExtensionSpec, and discovery behavior define the data Phase 3 renders.Suggested sequencing once #113 is merged:
src/eegprep/functions/adminfunc/extension_catalog.py—CatalogEntrydataclass (name, display_name, package, version_constraints, source_type {pypi|git|local}, source_url, docs_url, maintainer, capabilities, description, tags). Loader for a packaged default JSON + override viaEEGPREP_EXTENSION_CATALOGpath. No network fetch in Phase 3.src/eegprep/resources/extension_catalog.json(curated metadata only, never code).plugin_menu.pythat joins (a) Phase 1 registry records, (b) bundled inventory, (c) catalog entries into a single normalized record with astatefield:bundled,installed,curated,disabled,incompatible,failed,missing_dependency,installed_uncurated,catalog_metadata_conflict. Preserveplugin_status/plugin_menu/format_plugin_menusignatures.build_install_commands(entry) -> {\"uv\": \"uv add ...\", \"pip\": \"pip install ...\", \"git\": \"uv add git+...\"}. Returns strings; never executes. Headlessplugin_menu(show=False)exposes them on each record._show_plugin_dialog: left table with state-colored badges + filter bar; right details panel (description, version, maintainer, package, docs URL, source, capabilities, errors, copy-to-clipboard install commands); trust banner above install commands. Visual parity loop via theeeglab-gui-visual-parityskill.src/eegprep/resources/help/plugin_menu.mdwired through the existing Help button path.docs/source/covering install from PyPI / GitHub / local editable + trust warning.tests/test_plugin_menu.py(extend, don't replace) covering all eight states from the edge-cases list, headless safe-command output,EEGPrepSession.PLUGINLISTsync, dispatcher round-trip, and catalog-override env var.Open questions for a human before implementation:
ExtensionSpec/registry shim to unblock parallel work? Epic Epic: Build EEGPrep external extension ecosystem #112 says Phases 2/3/4/5 can run in parallel after Phase 1: Extension SDK, registry, discovery, and compatibility contract #113.bundledstate?subprocess.runwith an explicit confirmation modal? Issue text strongly implies copy-only.extension_managervs. keepingplugin_menuas the public API? Epic prefers "Extension Manager" terminology but issue says "preserve EEGLAB-style naming where useful."No PR opened — awaiting Phase 1 (#113) and approach sign-off.