Theia API Documentation v1.75.0
    Preparing search index...

    Validates, expands and resolves plugin.json and mcp.json per Agent Plugins v1.0.0.

    Performs no filesystem and no network access: the caller walks the plugin directory and hands in the file contents plus the already filesystem-resolved plugin root and data directory.

    Index

    Constructors

    Methods

    • Single non-recursive pass: replacement text is never re-scanned, and unrecognized placeholder-like text stays literal.

      Parameters

      • value: string
      • pluginRoot: string
      • pluginData: string

      Returns string

    • A UNC root keeps its leading //: Path.normalize drops empty segments, folding \\server\share\x to /server/share/x - a different location, and one that would then disagree with the PLUGIN_ROOT the backend derives with Node's path.join.

      Parameters

      • path: string

      Returns string

    • Parameters

      • value: string
      • containmentRoot: string
      • base: undefined | string
      • field: string

      Returns string

      ServerEntryInvalid when value resolves outside containmentRoot.

    • Omitted cwd means the plugin root. A ./- or ${PLUGIN_ROOT}-rooted value must stay inside the plugin root; a ${PLUGIN_DATA}-rooted one must stay inside the data directory.

      Parameters

      • entry: Record<string, unknown>
      • pluginRoot: string
      • pluginData: string

      Returns string