MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / attachPlugin

Method attachPlugin

lib.commonjs/providers/network.js:116–122  ·  view source on GitHub ↗

* Attach a new %%plugin%% to this Network. The network name * must be unique, excluding any fragment.

(plugin)

Source from the content-addressed store, hash-verified

114 * must be unique, excluding any fragment.
115 */
116 attachPlugin(plugin) {
117 if (this.#plugins.get(plugin.name)) {
118 throw new Error(`cannot replace existing plugin: ${plugin.name} `);
119 }
120 this.#plugins.set(plugin.name, plugin.clone());
121 return this;
122 }
123 /**
124 * Return the plugin, if any, matching %%name%% exactly. Plugins
125 * with fragments will not be returned unless %%name%% includes

Callers 3

cloneMethod · 0.95
fromMethod · 0.95
funcFunction · 0.95

Calls 2

setMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected