UNPKG

donobu

Version:

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

22 lines 779 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TargetRuntimePluginRegistry = void 0; /** * An immutable registry of target runtime plugins, keyed by target type. * Created once at startup and threaded through the application. */ class TargetRuntimePluginRegistry { constructor(plugins) { this.plugins = new Map(plugins.map((p) => [p.type, p])); } /** Look up a registered target runtime plugin by target type. */ get(type) { return this.plugins.get(type); } /** Return all registered target runtime plugins. */ getAll() { return Array.from(this.plugins.values()); } } exports.TargetRuntimePluginRegistry = TargetRuntimePluginRegistry; //# sourceMappingURL=TargetRuntimePlugin.js.map