@prismshadow/penguin-library-agent · library/agent/src/ports.ts:64

AgentPluginInstaller

interface

Writes a library plugin onto an Agent's Agent State — its skills, hook package, workbenches and MCP servers, whole or refused (the server binds core's installPlugin: it reads the plugin library through the host the server names, so the write runs on the server's own core copy).

API

@Interface()
export abstract class AgentPluginInstaller {
  abstract install(
      root: string,
      projectId: string,
      agentId: string,
      plugin: LibraryPlugin,
    ): Promise<void>;
  abstract installBare(
      root: string,
      projectId: string,
      agentId: string,
      plugin: LibraryPlugin,
    ): Promise<void>;
}

Contract Topology

Static AST wiring across @Module / @Provide / @Use
@Useconsumed by (1)

Members (2)

install

install(root: string, projectId: string, agentId: string, plugin: LibraryPlugin): Promise<void>

The write with a taken MCP server name translated: creating an Agent answers the creator's choice with 409 mcp_server_name_taken.

@paramrootstring
@paramprojectIdstring
@paramagentIdstring
@parampluginLibraryPlugin
@returnsPromise<void>

installBare

installBare(root: string, projectId: string, agentId: string, plugin: LibraryPlugin): Promise<void>

The same write with core's own error left bare: a plugin update's caller reads the McpServerNameTakenError (the holder's server, agent and ownership on it), as the whole-plugin update's contract spells.

@paramrootstring
@paramprojectIdstring
@paramagentIdstring
@parampluginLibraryPlugin
@returnsPromise<void>