MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / pushUniqueExplicitPluginTarget

Function pushUniqueExplicitPluginTarget

src/core/bridge_coordinator.ts:20460–20468  ·  view source on GitHub ↗
(targets: ExplicitPluginTargetHint[], target: ExplicitPluginTargetHint)

Source from the content-addressed store, hash-verified

20458}
20459
20460function pushUniqueExplicitPluginTarget(targets: ExplicitPluginTargetHint[], target: ExplicitPluginTargetHint): void {
20461 if (!target || typeof target !== 'object') {
20462 return;
20463 }
20464 if (targets.some((entry) => entry.pluginId === target.pluginId)) {
20465 return;
20466 }
20467 targets.push(target);
20468}
20469
20470function resolvePluginTargetHintFromCatalog({
20471 token,

Calls

no outgoing calls

Tested by

no test coverage detected