@tangle-network/agent-integrations 0.50.0 → 0.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/catalog.js CHANGED
@@ -7,15 +7,16 @@ import {
7
7
  parseIntegrationToolName,
8
8
  searchIntegrationTools,
9
9
  toMcpTools
10
- } from "./chunk-AJ67SDTL.js";
10
+ } from "./chunk-BBUJPJRA.js";
11
11
  import "./chunk-S2BUASSV.js";
12
12
  import "./chunk-LA76XB7M.js";
13
13
  import "./chunk-H4XYLS7T.js";
14
14
  import "./chunk-VLVSP7SP.js";
15
- import "./chunk-IA5GCKM6.js";
15
+ import "./chunk-FOQ7S4TK.js";
16
16
  import "./chunk-7P2LN4VT.js";
17
- import "./chunk-376UBTNB.js";
18
- import "./chunk-RM6JJK4Q.js";
17
+ import "./chunk-P4FFI752.js";
18
+ import "./chunk-PUXYDSXI.js";
19
+ import "./chunk-XEJKVCXB.js";
19
20
  import "./chunk-XC54EOUQ.js";
20
21
  import "./chunk-UWF33ESC.js";
21
22
  import "./chunk-PZ5AY32C.js";
@@ -5,11 +5,11 @@ import {
5
5
  import {
6
6
  integrationSpecToConnector,
7
7
  listIntegrationSpecs
8
- } from "./chunk-IA5GCKM6.js";
8
+ } from "./chunk-FOQ7S4TK.js";
9
9
  import {
10
10
  CONNECTOR_ADAPTER_FACTORIES,
11
11
  adapters_exports
12
- } from "./chunk-RM6JJK4Q.js";
12
+ } from "./chunk-XEJKVCXB.js";
13
13
 
14
14
  // src/activepieces-catalog.ts
15
15
  import { readFileSync } from "fs";
@@ -4167,9 +4167,17 @@ function toMcpTools(tools) {
4167
4167
  function scoreTool(tool, terms) {
4168
4168
  if (terms.length === 0) return { tool, score: 1, matched: [] };
4169
4169
  const haystack = new Set(tool.tags);
4170
+ const identity = new Set(
4171
+ [tool.connectorId, tool.connectorTitle, tool.providerId].flatMap(tokenize)
4172
+ );
4170
4173
  const matched = [];
4171
4174
  let score = 0;
4172
4175
  for (const term of terms) {
4176
+ if (identity.has(term)) {
4177
+ matched.push(term);
4178
+ score += 6;
4179
+ continue;
4180
+ }
4173
4181
  if (haystack.has(term)) {
4174
4182
  matched.push(term);
4175
4183
  score += 4;
@@ -4339,4 +4347,4 @@ export {
4339
4347
  signCapability,
4340
4348
  verifyCapabilityToken
4341
4349
  };
4342
- //# sourceMappingURL=chunk-AJ67SDTL.js.map
4350
+ //# sourceMappingURL=chunk-BBUJPJRA.js.map