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

AgentPluginModules

interface

The plugins' server modules, brought along at the end of Agent creation (the server's PluginModules.ensure; the assembly binds it).

API

@Interface()
export abstract class AgentPluginModules {
  abstract ensure(
      projectId: string,
      plugins: readonly string[],
      actor: ModuleActor | null,
      ask: "install" | "explicit",
      agentId?: string,
    ): Promise<AgentPluginModuleAction[]>;
}

Contract Topology

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

Members (1)

ensure

ensure(projectId: string, plugins: readonly string[], actor: ModuleActor | null, ask: "install" | "explicit", agentId?: string): Promise<AgentPluginModuleAction[]>

Applies the module rule to the named library plugins; may re-assemble the App, so a caller runs it last. Never throws for one plugin: what went wrong is that plugin's failed action.

@paramprojectIdstring
@parampluginsreadonly string[]
@paramactorModuleActor | null
@paramask"install" | "explicit"
@paramagentId?string
@returnsPromise<AgentPluginModuleAction[]>