@dxos/app-framework - v0.9.0
    Preparing search index...

    Interface PluginProvider

    Abstraction over the plugin registry catalog backend. Implementations may call Edge, a local cache, or a stub.

    The interface itself is transport-agnostic; concrete implementations live alongside it in this package (see EdgeRegistryPluginProvider) so we avoid app-framework ↔ edge-client cycles, but they only need to satisfy this shape — callers can substitute their own.

    interface PluginProvider {
        getPlugin(
            repo: string,
            version?: string,
        ): Effect<Registry.Plugin, Error>;
        listPlugins(): Effect<readonly Registry.Plugin[], Error>;
        listVersions(repo: string): Effect<readonly PluginVersion[], Error>;
    }

    Implemented by

    Index

    Methods

    • Returns all known versions of a plugin identified by its GitHub repo slug. Until the backend implements a versions endpoint, implementations MUST return at least one entry representing the current/latest release.

      Parameters

      • repo: string

      Returns Effect<readonly PluginVersion[], Error>