MCPcopy Create free account
hub / github.com/echoVic/blade-code / registerComponents

Method registerComponents

src/agent/ComponentManager.ts:228–232  ·  view source on GitHub ↗

* 批量注册组件

(components: BaseComponent[])

Source from the content-addressed store, hash-verified

226 * 批量注册组件
227 */
228 public async registerComponents(components: BaseComponent[]): Promise<void> {
229 for (const component of components) {
230 await this.registerComponent(component);
231 }
232 }
233
234 /**
235 * 批量移除组件

Callers

nothing calls this directly

Calls 1

registerComponentMethod · 0.95

Tested by

no test coverage detected