@tangle-network/agent-integrations 0.39.0 → 0.40.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/README.md CHANGED
@@ -176,7 +176,7 @@ OAuth credentials.
176
176
  | `validateProviderPassthroughRequest` | Policy-gated provider-native HTTP escape hatch validation. |
177
177
  | `buildIntegrationToolCatalog` | Converts connector actions into agent/tool definitions. |
178
178
  | `discoverWorkspaceCapabilities` | Per-workspace capability discovery: scope-gated, MCP-shape tool descriptors for agent runtime binding. |
179
- | `WebhookRouter` (+ `stripeWebhookProvider`, `docusealWebhookProvider`, `slackWebhookProvider`, `gmailWebhookProvider`, `gdriveWebhookProvider`, `genericHmacWebhookProvider`) | Inbound webhook router: verify signature, parse, idempotency dedup, async deliver. |
179
+ | `WebhookRouter` (+ `stripeWebhookProvider`, `docusealWebhookProvider`, `slackWebhookProvider`, `gmailWebhookProvider`, `gdriveWebhookProvider`, `telegramWebhookProvider`, `hellosignWebhookProvider`, `genericHmacWebhookProvider`) | Inbound webhook router: verify signature, parse, idempotency dedup, async deliver. |
180
180
  | `searchIntegrationTools` | Intent search over normalized integration tools. |
181
181
  | `buildDefaultIntegrationRegistry` | Composes setup specs and vendored catalog metadata into one deduplicated connector registry. |
182
182
  | `composeIntegrationRegistry` | Merges arbitrary catalog sources with explicit aliases, precedence, support tiers, and conflict diagnostics. |
package/dist/catalog.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  parseIntegrationToolName,
8
8
  searchIntegrationTools,
9
9
  toMcpTools
10
- } from "./chunk-P3RWMLK3.js";
10
+ } from "./chunk-4GZU3PB5.js";
11
11
  import "./chunk-TC5OMANJ.js";
12
12
  import "./chunk-IKCXDQVP.js";
13
13
  import "./chunk-H4XYLS7T.js";
@@ -15,7 +15,7 @@ import "./chunk-FAFQZJPZ.js";
15
15
  import "./chunk-IA5GCKM6.js";
16
16
  import "./chunk-7P2LN4VT.js";
17
17
  import "./chunk-376UBTNB.js";
18
- import "./chunk-6MUBOVI4.js";
18
+ import "./chunk-4TI3WXAD.js";
19
19
  import "./chunk-2TW2QKGZ.js";
20
20
  import "./chunk-OMLQCESJ.js";
21
21
  import "./chunk-PZ5AY32C.js";
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-IA5GCKM6.js";
9
9
  import {
10
10
  adapters_exports
11
- } from "./chunk-6MUBOVI4.js";
11
+ } from "./chunk-4TI3WXAD.js";
12
12
 
13
13
  // src/activepieces-catalog.ts
14
14
  import { readFileSync } from "fs";
@@ -4304,4 +4304,4 @@ export {
4304
4304
  signCapability,
4305
4305
  verifyCapabilityToken
4306
4306
  };
4307
- //# sourceMappingURL=chunk-P3RWMLK3.js.map
4307
+ //# sourceMappingURL=chunk-4GZU3PB5.js.map
@@ -37520,23 +37520,27 @@ function parseInboundBody(rawBody) {
37520
37520
  if (json && typeof json === "object") return json;
37521
37521
  } catch {
37522
37522
  }
37523
- const match = /(?:^|&)json=([^&]+)/.exec(rawBody);
37524
- if (match) {
37523
+ const formJson = new URLSearchParams(rawBody).get("json");
37524
+ if (formJson) {
37525
37525
  try {
37526
- return JSON.parse(decodeURIComponent(match[1]));
37526
+ return JSON.parse(formJson);
37527
37527
  } catch {
37528
37528
  return null;
37529
37529
  }
37530
37530
  }
37531
- const partMatch = /name="json"[^]*?\r?\n\r?\n([\s\S]*?)\r?\n--/m.exec(rawBody);
37532
- if (partMatch) {
37533
- try {
37534
- return JSON.parse(partMatch[1]);
37535
- } catch {
37536
- return null;
37537
- }
37531
+ const nameIdx = rawBody.indexOf('name="json"');
37532
+ if (nameIdx === -1) return null;
37533
+ const afterName = rawBody.slice(nameIdx);
37534
+ const sep = /\r?\n\r?\n/.exec(afterName);
37535
+ if (!sep) return null;
37536
+ const partBody = afterName.slice(sep.index + sep[0].length);
37537
+ const end = /\r?\n--/.exec(partBody);
37538
+ if (!end) return null;
37539
+ try {
37540
+ return JSON.parse(partBody.slice(0, end.index));
37541
+ } catch {
37542
+ return null;
37538
37543
  }
37539
- return null;
37540
37544
  }
37541
37545
  async function ensureFreshAccessToken7(creds, clientId, clientSecret, inv) {
37542
37546
  if (creds.kind !== "oauth2") {
@@ -119188,4 +119192,4 @@ export {
119188
119192
  pipedreamConnector,
119189
119193
  adapters_exports
119190
119194
  };
119191
- //# sourceMappingURL=chunk-6MUBOVI4.js.map
119195
+ //# sourceMappingURL=chunk-4TI3WXAD.js.map