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

Method removeComponents

src/agent/ComponentManager.ts:237–249  ·  view source on GitHub ↗

* 批量移除组件

(ids: string[])

Source from the content-addressed store, hash-verified

235 * 批量移除组件
236 */
237 public async removeComponents(ids: string[]): Promise<{ [id: string]: boolean }> {
238 const results: { [id: string]: boolean } = {};
239
240 for (const id of ids) {
241 try {
242 results[id] = await this.removeComponent(id);
243 } catch (error) {
244 results[id] = false;
245 }
246 }
247
248 return results;
249 }
250
251 /**
252 * 重启组件

Callers

nothing calls this directly

Calls 1

removeComponentMethod · 0.95

Tested by

no test coverage detected