Vibe.Plugin.Manager.Collections (vibe v0.2.3)

Copy Markdown View Source

Collects commands, APIs, presentation documents, and prompt blocks from plugins.

Summary

Types

plugin_entry()

@type plugin_entry() :: {module(), %{state: term()}}

Functions

apis(plugins)

@spec apis([plugin_entry()]) :: [Vibe.Plugin.API.t()]

commands(plugins)

@spec commands([plugin_entry()]) :: [module()]

presentation_document(plugins, module)

@spec presentation_document(map(), module()) :: Vibe.Presentation.Document.t()

system_prompt_blocks(plugins, context, state, put_plugin_state)

@spec system_prompt_blocks([plugin_entry()], map(), term(), function()) ::
  {[String.t()], term()}