Skip to content

feat(marketplace): extend SDUI RPC protocol with getCapabilities, getServerStats, getObjectMetadata, and cancelQuery - #327

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/323-sdui-rpc-protocol
Jul 12, 2026
Merged

feat(marketplace): extend SDUI RPC protocol with getCapabilities, getServerStats, getObjectMetadata, and cancelQuery#327
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/323-sdui-rpc-protocol

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

Extends the SDUI RPC protocol (PluginRpcBridge & ExtensionDriverSession) with wrappers and strongly typed models for capabilities, server statistics, object DDL/metadata inspection, and query cancellation.

Closes #323
Part of Epic #322

Changes

  • Added ExtensionDriverCapabilities model (supportsTransactions, supportsCancel, supportsDDLInspection, supportsPrivileges, hasServerStats).
  • Added ExtensionServerStats model for standard metric parsing (serverVersion, uptimeSeconds, activeConnections, memoryUsageBytes, databaseSizes, extraMetrics).
  • Added ExtensionObjectMetadata & ExtensionObjectColumn models for DDL inspection (db.getObjectMetadata).
  • Added wrapper methods in ExtensionDriverSession:
    • getCapabilities(ConnectionRow row)
    • getServerStats(ConnectionRow row)
    • getObjectMetadata(ConnectionRow row, {required String nodeId, required String nodeType})
    • cancelQuery(ConnectionRow row, {required String queryId})
  • Added fallback handling: if an older or simplified extension plugin does not implement these methods, ExtensionDriverSession returns safe defaults without throwing exceptions or dropping the session.

Verification

  • Ran flutter test test/core/extensions/extension_driver_session_test.dart (All tests passed, including new DTO unit tests).
  • Ran flutter analyze (No issues found).

…ServerStats, getObjectMetadata, and cancelQuery
@github-actions github-actions Bot added enhancement New feature or request marketplace Extensions marketplace, ExtensionManifest core Core library logic and services labels Jul 12, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 5629736 into dev Jul 12, 2026
4 checks passed
@ZhuchkaTriplesix ZhuchkaTriplesix self-assigned this Jul 12, 2026
ZhuchkaTriplesix added a commit that referenced this pull request Jul 27, 2026
feat(marketplace): extend SDUI RPC protocol with getCapabilities, getServerStats, getObjectMetadata, and cancelQuery
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/323-sdui-rpc-protocol branch July 27, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core library logic and services enhancement New feature or request marketplace Extensions marketplace, ExtensionManifest

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant