[PR #2307] [MERGED] Add core module registry #5527

Closed
opened 2026-10-22 04:17:05 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2307
Author: @Xelvanis
Created: 6/5/2026
Status: ✅ Merged
Merged: 6/5/2026
Merged by: @Xelvanis

Base: refactor ← Head: feature/core-modules-registry


📝 Commits (2)

  • 9930d32 Add core module registry
  • 3bbb3dc Fix core module lint findings

📊 Changes

17 files changed (+562 additions, -2 deletions)

View changed files

📝 AGENTS.md (+2 -0)
📝 knip.json (+3 -0)
📝 src-tauri/src/commands/storage/contracts.rs (+8 -0)
📝 src/app/App.tsx (+2 -0)
📝 src/engine/capabilities/storage.ts (+3 -2)
➕ src/engine/contracts/schemas/core-module.schema.ts (+14 -0)
➕ src/engine/contracts/types/core-module.ts (+39 -0)
📝 src/features/shell/discovery/discovery-entries.json (+11 -0)
➕ src/features/shell/plugins/components/CoreModuleRuntimeProvider.tsx (+28 -0)
➕ src/features/shell/plugins/components/CoreModulesSettings.tsx (+186 -0)
➕ src/features/shell/plugins/hooks/use-core-modules.ts (+55 -0)
➕ src/features/shell/plugins/lib/core-module-registry.ts (+58 -0)
➕ src/features/shell/plugins/placeholder/CoreModulePlaceholder.tsx (+13 -0)
➕ src/features/shell/plugins/shell.ts (+2 -0)
📝 src/features/shell/settings/components/SettingsPanel.tsx (+3 -0)
➕ src/shared/api/core-modules-api.ts (+51 -0)
➕ src/shared/api/plugin-memory-api.ts (+84 -0)

📄 Description

Linked issue

N/A

Why this change

  • Adds a small, trusted core-module surface so bundled opt-in features can be registered, displayed in settings, toggled, and mounted without mixing the module runtime into unrelated shell code.

What changed

  • Added React-free core module contracts and settings schema.
  • Added a shell-owned core module registry, settings panel, hooks, and runtime provider.
  • Added a simple placeholder module badge so the runtime can be exercised independently from the ME Notes follow-up.
  • Added plugin-memory storage plumbing and Knip allowances for the deferred Notepad module path.
  • Added Discover metadata and AGENTS map entries for the new core module surface.

Refactor impact

Primary owner:

  • App shell / shell plugins, with shared API and Rust storage support for plugin memory.

Impact areas reviewed:

  • src/app runtime provider mounting.
  • src/features/shell/settings plugin tab routing.
  • src/features/shell/plugins registry, settings UI, hooks, and placeholder runtime surface.
  • src/shared/api storage wrappers for core module settings and plugin memory.
  • src-tauri/src/commands/storage/contracts.rs generic storage collection contract.
  • src/features/shell/discovery discoverability metadata.

Boundary notes:

  • UI lives under src/features/shell/plugins.
  • Settings and plugin memory calls go through focused src/shared/api wrappers.
  • Plugin memory uses the existing remote-capable generic storage_* path; no feature code imports raw Tauri or remote-runtime fetch.
  • Rust change is limited to allowing the plugin-memory collection contract.

Pressure points touched:

  • src/app/App.tsx mounts the shell runtime provider.
  • SettingsPanel.tsx adds the Plugins settings tab.
  • knip.json intentionally allows future Notepad-facing plugin memory exports instead of removing them.

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • Full pnpm check passes before PR push/handoff
  • Human/manual validation completed by contributor or reviewer

Manual verification notes

  • pnpm lint passed after addressing the CI lint findings.
  • Temporary local harness pnpm exec vitest run src/plugin-storage-proof.test.ts passed before deletion; it covered app-settings/core-modules first-run create, reload, update, and plugin-memory create/get/update/list/delete wrapper behavior.
  • pnpm check passed locally after the reviewer-fix commit.
  • Manual/Tauri UI proof was not run for the placeholder badge.

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • Adds a new Plugins settings surface for bundled core modules.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

  • Not captured. The user-facing runtime surface is a small placeholder badge used to keep this PR separate from the ME Notes follow-up.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/2307 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 6/5/2026 **Status:** ✅ Merged **Merged:** 6/5/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `refactor` ← **Head:** `feature/core-modules-registry` --- ### 📝 Commits (2) - [`9930d32`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9930d327f1670fd514b2f20004f7ebe9e9c3c774) Add core module registry - [`3bbb3dc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3bbb3dc8cc25448f297296fe0bbfa4e23e835816) Fix core module lint findings ### 📊 Changes **17 files changed** (+562 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `AGENTS.md` (+2 -0) 📝 `knip.json` (+3 -0) 📝 `src-tauri/src/commands/storage/contracts.rs` (+8 -0) 📝 `src/app/App.tsx` (+2 -0) 📝 `src/engine/capabilities/storage.ts` (+3 -2) ➕ `src/engine/contracts/schemas/core-module.schema.ts` (+14 -0) ➕ `src/engine/contracts/types/core-module.ts` (+39 -0) 📝 `src/features/shell/discovery/discovery-entries.json` (+11 -0) ➕ `src/features/shell/plugins/components/CoreModuleRuntimeProvider.tsx` (+28 -0) ➕ `src/features/shell/plugins/components/CoreModulesSettings.tsx` (+186 -0) ➕ `src/features/shell/plugins/hooks/use-core-modules.ts` (+55 -0) ➕ `src/features/shell/plugins/lib/core-module-registry.ts` (+58 -0) ➕ `src/features/shell/plugins/placeholder/CoreModulePlaceholder.tsx` (+13 -0) ➕ `src/features/shell/plugins/shell.ts` (+2 -0) 📝 `src/features/shell/settings/components/SettingsPanel.tsx` (+3 -0) ➕ `src/shared/api/core-modules-api.ts` (+51 -0) ➕ `src/shared/api/plugin-memory-api.ts` (+84 -0) </details> ### 📄 Description ## Linked issue N/A ## Why this change - Adds a small, trusted core-module surface so bundled opt-in features can be registered, displayed in settings, toggled, and mounted without mixing the module runtime into unrelated shell code. ## What changed - Added React-free core module contracts and settings schema. - Added a shell-owned core module registry, settings panel, hooks, and runtime provider. - Added a simple placeholder module badge so the runtime can be exercised independently from the ME Notes follow-up. - Added plugin-memory storage plumbing and Knip allowances for the deferred Notepad module path. - Added Discover metadata and AGENTS map entries for the new core module surface. ## Refactor impact Primary owner: - App shell / shell plugins, with shared API and Rust storage support for plugin memory. Impact areas reviewed: - `src/app` runtime provider mounting. - `src/features/shell/settings` plugin tab routing. - `src/features/shell/plugins` registry, settings UI, hooks, and placeholder runtime surface. - `src/shared/api` storage wrappers for core module settings and plugin memory. - `src-tauri/src/commands/storage/contracts.rs` generic storage collection contract. - `src/features/shell/discovery` discoverability metadata. Boundary notes: - UI lives under `src/features/shell/plugins`. - Settings and plugin memory calls go through focused `src/shared/api` wrappers. - Plugin memory uses the existing remote-capable generic `storage_*` path; no feature code imports raw Tauri or remote-runtime fetch. - Rust change is limited to allowing the `plugin-memory` collection contract. Pressure points touched: - `src/app/App.tsx` mounts the shell runtime provider. - `SettingsPanel.tsx` adds the Plugins settings tab. - `knip.json` intentionally allows future Notepad-facing plugin memory exports instead of removing them. ## Validation - [x] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [x] Full `pnpm check` passes before PR push/handoff - [ ] Human/manual validation completed by contributor or reviewer ### Manual verification notes - `pnpm lint` passed after addressing the CI lint findings. - Temporary local harness `pnpm exec vitest run src/plugin-storage-proof.test.ts` passed before deletion; it covered `app-settings/core-modules` first-run create, reload, update, and `plugin-memory` create/get/update/list/delete wrapper behavior. - `pnpm check` passed locally after the reviewer-fix commit. - Manual/Tauri UI proof was not run for the placeholder badge. ## Feature Discoverability Check exactly one: - [x] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [ ] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - Adds a new Plugins settings surface for bundled core modules. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [x] Updated repo skills or `AGENTS.md` - [x] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence - Not captured. The user-facing runtime surface is a small placeholder badge used to keep this PR separate from the ME Notes follow-up. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:17:05 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5527
No description provided.