MCPcopy
hub / github.com/ResearAI/DeepScientist / IPluginResolver

Interface IPluginResolver

src/ui/src/lib/types/plugin-resolver.ts:21–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 * This decoupling allows Tab system to work before Plugin system is ready.
20 */
21export interface IPluginResolver {
22 /**
23 * Get the React component for a plugin
24 *
25 * @param pluginId - Plugin identifier (e.g., '@ds/plugin-pdf-viewer')
26 * @returns React component or null if not found
27 */
28 getPluginComponent(
29 pluginId: string
30 ): ComponentType<PluginComponentProps> | null;
31
32 /**
33 * Get the default plugin ID for a MIME type
34 *
35 * @param mimeType - MIME type (e.g., 'application/pdf')
36 * @returns Plugin ID or null if no default handler
37 */
38 getDefaultPluginForMimeType(mimeType: string): string | null;
39
40 /**
41 * Check if a plugin is registered
42 *
43 * @param pluginId - Plugin identifier
44 * @returns true if plugin is registered
45 */
46 isPluginRegistered(pluginId: string): boolean;
47}
48
49/**
50 * Default MIME type to Plugin mapping

Callers

nothing calls this directly

Implementers 2

PluginResolverStubsrc/ui/src/lib/plugin-resolver-stub.ts
PluginRegistrysrc/ui/src/lib/plugin/registry.ts

Calls

no outgoing calls

Tested by

no test coverage detected