UNPKG

donobu

Version:

Create browser automations with an LLM agent and replay them as Playwright scripts.

18 lines 623 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GptClientPluginRegistry = void 0; /** * An immutable registry of GPT client plugins, keyed by config type. * Created once at startup and threaded through the application. */ class GptClientPluginRegistry { constructor(plugins) { this.plugins = new Map(plugins.map((p) => [p.type, p])); } /** Look up a registered GPT client plugin by config type. */ get(type) { return this.plugins.get(type); } } exports.GptClientPluginRegistry = GptClientPluginRegistry; //# sourceMappingURL=GptClientPlugin.js.map