Skip to content

refactor: connector plugin registry to eliminate parallel connector conflicts#30

Merged
MaximeGaudin merged 4 commits into
mainfrom
refactor/connector-registry
Jun 22, 2026
Merged

refactor: connector plugin registry to eliminate parallel connector conflicts#30
MaximeGaudin merged 4 commits into
mainfrom
refactor/connector-registry

Conversation

@MaximeGaudin

Copy link
Copy Markdown
Owner

Summary

  • Introduce a compile-time connector plugin registry (inventory) in void-cli with one descriptor per connector (build, setup, parse/show settings, capabilities).
  • Replace ConnectorType enum and ConnectionSettings in void-core with a string newtype and generic toml::Table settings (redacting Debug).
  • Rewire factory, output, reply/send, setup menu, sync engine, and config UI to iterate the registry instead of central match arms.

Test plan

  • ./scripts/check.sh (fmt, clippy -D warnings, full workspace tests)
  • cargo +1.95 check --workspace --locked (MSRV)
  • Registry tests: unique ids/badges, alias resolution, slack settings validation

Made with Cursor

MaximeGaudin and others added 4 commits June 21, 2026 19:10
…onflicts

Replace the central ConnectorType enum and ConnectionSettings match
wiring with a compile-time inventory registry. Each connector registers
a single descriptor; void-core uses string identity and generic TOML
settings tables.

Co-authored-by: Cursor <cursoragent@cursor.com>
Wire validate_all_connections through setup, sync, and doctor; iterate
the full setup wizard over the plugin registry; pass sync poll intervals
into Gmail/Calendar connectors; route typed CLI builders through plugin
build helpers; and add registry coverage tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@MaximeGaudin MaximeGaudin reopened this Jun 22, 2026
@MaximeGaudin MaximeGaudin merged commit d88f306 into main Jun 22, 2026
14 checks passed
MaximeGaudin added a commit that referenced this pull request Jun 22, 2026
Merge main after #30: register Reddit via inventory::submit! plugin
descriptor, migrate settings to generic TOML tables, and align with
ConnectorType string identity and Message.is_saved field.

Co-authored-by: Cursor <cursoragent@cursor.com>
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