@tangle-network/agent-integrations 1.0.2 → 1.0.4
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 +31 -30
- package/data/bundled-adapter-manifests.json +1 -1
- package/dist/{adapters-DbYKxFVp.js → adapters-x5V_2d6D.js} +447 -678
- package/dist/{adapters-DbYKxFVp.js.map → adapters-x5V_2d6D.js.map} +1 -1
- package/dist/{billing-access-policy-CtvuHvM8.d.ts → billing-access-policy-Ce3WWxG5.d.ts} +2 -3
- package/dist/billing-access-policy-Ce3WWxG5.d.ts.map +1 -0
- package/dist/billing-access-policy-DJ63AxZ5.js.map +1 -1
- package/dist/{bundled-manifest-data-CgUuwak6.js → bundled-manifest-data-DLzwtr7z.js} +89 -1
- package/dist/{bundled-manifest-data-CgUuwak6.js.map → bundled-manifest-data-DLzwtr7z.js.map} +1 -1
- package/dist/{bundled-manifest-runtime-EpjLQKA9.d.ts → bundled-manifest-runtime-nc86Eowo.d.ts} +2 -2
- package/dist/{bundled-manifest-runtime-EpjLQKA9.d.ts.map → bundled-manifest-runtime-nc86Eowo.d.ts.map} +1 -1
- package/dist/{catalog-CFvKzwVj.js → catalog-DEbD4Cn3.js} +6 -10
- package/dist/catalog-DEbD4Cn3.js.map +1 -0
- package/dist/{catalog-z4zNeXVL.d.ts → catalog-VQlC1Ew0.d.ts} +8 -12
- package/dist/{catalog-z4zNeXVL.d.ts.map → catalog-VQlC1Ew0.d.ts.map} +1 -1
- package/dist/catalog.d.ts +1 -1
- package/dist/catalog.js +1 -1
- package/dist/connect/index.d.ts +1 -1
- package/dist/connectors/adapters/index.d.ts +3 -2
- package/dist/connectors/adapters/index.js +1 -1
- package/dist/connectors/index.d.ts +7 -7
- package/dist/connectors/index.js +2 -2
- package/dist/connectors/oauth.d.ts +1 -1
- package/dist/{consumer-PHOoRorX.d.ts → consumer-BMWxApGG.d.ts} +10 -122
- package/dist/consumer-BMWxApGG.d.ts.map +1 -0
- package/dist/consumer.d.ts +1 -1
- package/dist/{types-Bq85dJDW.d.ts → core-types-ZuEjjJAr.d.ts} +546 -14
- package/dist/core-types-ZuEjjJAr.d.ts.map +1 -0
- package/dist/{coverage-catalog-5LheuThC.d.ts → coverage-catalog-CsJmShn5.d.ts} +3 -4
- package/dist/{coverage-catalog-5LheuThC.d.ts.map → coverage-catalog-CsJmShn5.d.ts.map} +1 -1
- package/dist/coverage-catalog.d.ts +2 -2
- package/dist/coverage-catalog.js +1 -22
- package/dist/coverage-catalog.js.map +1 -1
- package/dist/{errors-8ePwEZRM.d.ts → errors-CvjrGB5r.d.ts} +4 -1
- package/dist/errors-CvjrGB5r.d.ts.map +1 -0
- package/dist/{errors-CvO_y8JO.js → errors-DSdeYms8.js} +16 -3
- package/dist/errors-DSdeYms8.js.map +1 -0
- package/dist/{hub-DkiKVWJX.d.ts → hub-CRteFmOR.d.ts} +3 -3
- package/dist/{hub-DkiKVWJX.d.ts.map → hub-CRteFmOR.d.ts.map} +1 -1
- package/dist/{hub-Du6wsA1o.js → hub-DnPkr4xn.js} +2 -1
- package/dist/hub-DnPkr4xn.js.map +1 -0
- package/dist/hub.d.ts +1 -1
- package/dist/hub.js +1 -1
- package/dist/{index-BFK-G6g1.d.ts → index-BAI3O7bc.d.ts} +2 -2
- package/dist/{index-BFK-G6g1.d.ts.map → index-BAI3O7bc.d.ts.map} +1 -1
- package/dist/{index-poLalSQ6.d.ts → index-BbluAb0U.d.ts} +3 -12
- package/dist/index-BbluAb0U.d.ts.map +1 -0
- package/dist/{index-HBXVPkSs.d.ts → index-C5W0VfzQ.d.ts} +19 -194
- package/dist/index-C5W0VfzQ.d.ts.map +1 -0
- package/dist/{index-CkCYzn8f.d.ts → index-CezgaMuD.d.ts} +3 -3
- package/dist/{index-CkCYzn8f.d.ts.map → index-CezgaMuD.d.ts.map} +1 -1
- package/dist/{index-DoJFdW9K.d.ts → index-Dev4r3_u.d.ts} +3 -3
- package/dist/{index-DoJFdW9K.d.ts.map → index-Dev4r3_u.d.ts.map} +1 -1
- package/dist/index.d.ts +19 -20
- package/dist/index.js +11 -11
- package/dist/internal/bundled-manifest-runtime.d.ts +1 -1
- package/dist/internal/bundled-manifest-runtime.js +1 -1
- package/dist/mcp.d.ts +2 -2
- package/dist/mcp.js +2 -2
- package/dist/middleware/index.d.ts +1 -1
- package/dist/{oauth-DoUCpYU_.d.ts → oauth-Br5r5Ms0.d.ts} +2 -2
- package/dist/{oauth-DoUCpYU_.d.ts.map → oauth-Br5r5Ms0.d.ts.map} +1 -1
- package/dist/{policy-C8jynxf9.d.ts → policy-BH4ZAZ4s.d.ts} +3 -14
- package/dist/policy-BH4ZAZ4s.d.ts.map +1 -0
- package/dist/{policy-UOPcZqdE.js → policy-C0XpcajG.js} +5 -30
- package/dist/policy-C0XpcajG.js.map +1 -0
- package/dist/{redaction-B6R-ZeWT.js → redaction-dXj4op-I.js} +16 -2
- package/dist/redaction-dXj4op-I.js.map +1 -0
- package/dist/{registry-0xWMSBUu.d.ts → registry-CJFl46d3.d.ts} +3 -3
- package/dist/{registry-0xWMSBUu.d.ts.map → registry-CJFl46d3.d.ts.map} +1 -1
- package/dist/{registry-core-B1ApiG47.d.ts → registry-core-_BnkpeSe.d.ts} +2 -2
- package/dist/{registry-core-B1ApiG47.d.ts.map → registry-core-_BnkpeSe.d.ts.map} +1 -1
- package/dist/registry.d.ts +2 -2
- package/dist/registry.js +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/dist/sandbox.d.ts +2 -2
- package/dist/sandbox.js +5 -20
- package/dist/sandbox.js.map +1 -1
- package/dist/{specs-amTqWDjy.js → specs-BQHb_KgP.js} +4 -23
- package/dist/specs-BQHb_KgP.js.map +1 -0
- package/dist/specs.d.ts +2 -2
- package/dist/specs.js +2 -2
- package/dist/{src-DsEhuVEx.js → src-BZmlzQzN.js} +8 -186
- package/dist/src-BZmlzQzN.js.map +1 -0
- package/dist/stripe/index.d.ts +3 -79
- package/dist/stripe/index.d.ts.map +1 -1
- package/dist/stripe/index.js +5 -52
- package/dist/stripe/index.js.map +1 -1
- package/dist/{tangle-id-BW5dTiGi.d.ts → tangle-id-BnzGOA_W.d.ts} +2 -2
- package/dist/{tangle-id-BW5dTiGi.d.ts.map → tangle-id-BnzGOA_W.d.ts.map} +1 -1
- package/dist/types-CjrugGcd.js.map +1 -1
- package/dist/worker.d.ts +3 -3
- package/dist/worker.js +2 -2
- package/docs/external-product-integration.md +14 -5
- package/docs/integration-coverage-checklist.md +1 -12
- package/docs/private-audio-transcription.md +1 -1
- package/package.json +2 -1
- package/dist/billing-access-policy-CtvuHvM8.d.ts.map +0 -1
- package/dist/catalog-CFvKzwVj.js.map +0 -1
- package/dist/consumer-PHOoRorX.d.ts.map +0 -1
- package/dist/core-types-0BenSoZJ.d.ts +0 -365
- package/dist/core-types-0BenSoZJ.d.ts.map +0 -1
- package/dist/errors-8ePwEZRM.d.ts.map +0 -1
- package/dist/errors-CvO_y8JO.js.map +0 -1
- package/dist/hub-Du6wsA1o.js.map +0 -1
- package/dist/index-HBXVPkSs.d.ts.map +0 -1
- package/dist/index-poLalSQ6.d.ts.map +0 -1
- package/dist/policy-C8jynxf9.d.ts.map +0 -1
- package/dist/policy-UOPcZqdE.js.map +0 -1
- package/dist/redaction-B6R-ZeWT.js.map +0 -1
- package/dist/specs-amTqWDjy.js.map +0 -1
- package/dist/src-DsEhuVEx.js.map +0 -1
- package/dist/types-Bq85dJDW.d.ts.map +0 -1
- package/docs/generated-integration-coverage-checklist.md +0 -156
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { go as CONNECTOR_ADAPTER_FACTORIES } from "./adapters-
|
|
2
|
-
import { m as IntegrationError } from "./hub-
|
|
3
|
-
import {
|
|
1
|
+
import { go as CONNECTOR_ADAPTER_FACTORIES } from "./adapters-x5V_2d6D.js";
|
|
2
|
+
import { m as IntegrationError } from "./hub-DnPkr4xn.js";
|
|
3
|
+
import { c as createIntegrationAuditEvent, t as StaticIntegrationPolicyEngine } from "./policy-C0XpcajG.js";
|
|
4
4
|
import "./billing-access-policy-DJ63AxZ5.js";
|
|
5
|
-
import { n as normalizeIntegrationError, t as IntegrationRuntimeError } from "./errors-
|
|
5
|
+
import { n as normalizeIntegrationError, t as IntegrationRuntimeError } from "./errors-DSdeYms8.js";
|
|
6
6
|
import "./tangle-id-DUsy7I9_.js";
|
|
7
7
|
import "./consumer.js";
|
|
8
8
|
import "./connect/index.js";
|
|
@@ -11,8 +11,8 @@ import { n as canonicalIntegrationKind } from "./integration-kind-aliases-DeUJgB
|
|
|
11
11
|
import { i as summarizeIntegrationRegistry, n as composeIntegrationRegistry } from "./registry-core-BZo69C37.js";
|
|
12
12
|
import { listBundledConnectorAdapters } from "./internal/bundled-manifest-runtime.js";
|
|
13
13
|
import "./connectors/index.js";
|
|
14
|
-
import { n as buildIntegrationToolCatalog } from "./catalog-
|
|
15
|
-
import {
|
|
14
|
+
import { n as buildIntegrationToolCatalog } from "./catalog-DEbD4Cn3.js";
|
|
15
|
+
import { c as integrationSpecToConnector, u as listIntegrationSpecs } from "./specs-BQHb_KgP.js";
|
|
16
16
|
import { createHash } from "node:crypto";
|
|
17
17
|
//#region src/approval.ts
|
|
18
18
|
var InMemoryIntegrationApprovalStore = class {
|
|
@@ -94,9 +94,6 @@ var ApprovalBackedPolicyEngine = class {
|
|
|
94
94
|
return record;
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
|
-
function createApprovalBackedPolicyEngine(options) {
|
|
98
|
-
return new ApprovalBackedPolicyEngine(options);
|
|
99
|
-
}
|
|
100
97
|
async function resolveIntegrationApproval(input) {
|
|
101
98
|
const record = await input.store.get(input.approvalId);
|
|
102
99
|
if (!record) throw new Error(`Approval ${input.approvalId} not found.`);
|
|
@@ -545,15 +542,6 @@ function parseIntegrationBridgeEnvironment(env, options = {}) {
|
|
|
545
542
|
if (!encoded) throw new Error(`Missing ${envVar}.`);
|
|
546
543
|
return decodeIntegrationBridgePayload(encoded);
|
|
547
544
|
}
|
|
548
|
-
function redactIntegrationBridgePayload(payload) {
|
|
549
|
-
return {
|
|
550
|
-
...payload,
|
|
551
|
-
tools: payload.tools.map((tool) => ({
|
|
552
|
-
...tool,
|
|
553
|
-
capabilityToken: "[REDACTED]"
|
|
554
|
-
}))
|
|
555
|
-
};
|
|
556
|
-
}
|
|
557
545
|
function assertBridgePayload(value) {
|
|
558
546
|
if (!value || typeof value !== "object") throw new Error("Invalid integration bridge payload.");
|
|
559
547
|
const payload = value;
|
|
@@ -878,20 +866,6 @@ function renderConsentSummary(manifestOrResolution, options = {}) {
|
|
|
878
866
|
connectorIds
|
|
879
867
|
};
|
|
880
868
|
}
|
|
881
|
-
function renderApprovalCopy(input) {
|
|
882
|
-
return {
|
|
883
|
-
title: `${input.appName} wants to ${input.action.title.toLowerCase()}`,
|
|
884
|
-
body: `${input.appName} is requesting permission to run "${input.action.title}" on ${input.connectorTitle}.`,
|
|
885
|
-
bullets: [
|
|
886
|
-
`Risk: ${input.action.risk}`,
|
|
887
|
-
`Data: ${input.action.dataClass}`,
|
|
888
|
-
...input.approvalId ? [`Approval id: ${input.approvalId}`] : []
|
|
889
|
-
],
|
|
890
|
-
primaryAction: input.action.risk === "read" ? "Allow" : "Approve action",
|
|
891
|
-
risk: input.action.risk,
|
|
892
|
-
connectorIds: []
|
|
893
|
-
};
|
|
894
|
-
}
|
|
895
869
|
function sentenceForRequirement(appName, requirement) {
|
|
896
870
|
if (requirement.connectorId === "google-calendar" && requirement.mode === "read") return `${appName} wants to read your Google Calendar to find schedule-aware recommendations.`;
|
|
897
871
|
if (requirement.connectorId === "google-calendar" && requirement.mode === "write") return `${appName} wants to create or update Google Calendar events after your approval.`;
|
|
@@ -1023,47 +997,6 @@ function toTrigger$1(connector, trigger, connection) {
|
|
|
1023
997
|
connectionId: connection?.id
|
|
1024
998
|
};
|
|
1025
999
|
}
|
|
1026
|
-
/**
|
|
1027
|
-
* Filter a {@link WorkspaceCapabilityDiscovery} result by the calling
|
|
1028
|
-
* user's effective id.tangle.tools workspace scopes. Pair with the
|
|
1029
|
-
* `tangleIdentity()` adapter's `list_workspaces` / `switch_workspace`
|
|
1030
|
-
* output to keep what the agent runtime sees aligned with what the
|
|
1031
|
-
* workspace's plan actually permits.
|
|
1032
|
-
*
|
|
1033
|
-
* Semantics:
|
|
1034
|
-
* - Every workspace scope is matched against every capability's
|
|
1035
|
-
* `scopes` list. Wildcard scopes (`tangle:*`, `<connectorId>:*`) are
|
|
1036
|
-
* respected — a workspace with `tangle:*` sees everything; a
|
|
1037
|
-
* workspace with `gmail:*` sees every gmail capability regardless of
|
|
1038
|
-
* the upstream OAuth scope.
|
|
1039
|
-
* - When `workspaceScopes` is empty, returns the discovery as-is (no
|
|
1040
|
-
* workspace gate). Pass an explicit `denyByDefault: true` to flip
|
|
1041
|
-
* that to "empty workspace sees nothing" — matches the platform's
|
|
1042
|
-
* fail-closed posture for production tenants.
|
|
1043
|
-
*
|
|
1044
|
-
* Pure with respect to the inputs — no side effects.
|
|
1045
|
-
*/
|
|
1046
|
-
function filterDiscoveryByWorkspaceScopes(discovery, workspaceScopes, opts = {}) {
|
|
1047
|
-
if (workspaceScopes.length === 0 && !opts.denyByDefault) return discovery;
|
|
1048
|
-
const granted = new Set(workspaceScopes);
|
|
1049
|
-
const hasWildcard = granted.has("tangle:*");
|
|
1050
|
-
function allowed(connectorId, scopes) {
|
|
1051
|
-
if (hasWildcard) return true;
|
|
1052
|
-
if (granted.has(`${connectorId}:*`)) return true;
|
|
1053
|
-
for (const scope of scopes) if (!granted.has(scope)) return false;
|
|
1054
|
-
return true;
|
|
1055
|
-
}
|
|
1056
|
-
const capabilities = discovery.capabilities.filter((cap) => allowed(cap.connectorId, cap.scopes));
|
|
1057
|
-
const triggers = discovery.triggers.filter((t) => allowed(t.connectorId, t.scopes));
|
|
1058
|
-
const countsByConnector = {};
|
|
1059
|
-
for (const cap of capabilities) countsByConnector[cap.connectorId] = (countsByConnector[cap.connectorId] ?? 0) + 1;
|
|
1060
|
-
return {
|
|
1061
|
-
capabilities,
|
|
1062
|
-
triggers,
|
|
1063
|
-
countsByConnector,
|
|
1064
|
-
unreachableConnectors: discovery.unreachableConnectors
|
|
1065
|
-
};
|
|
1066
|
-
}
|
|
1067
1000
|
//#endregion
|
|
1068
1001
|
//#region src/events.ts
|
|
1069
1002
|
var InMemoryIntegrationEventStore = class {
|
|
@@ -1246,15 +1179,6 @@ async function runIntegrationHealthchecks(input) {
|
|
|
1246
1179
|
}
|
|
1247
1180
|
return results;
|
|
1248
1181
|
}
|
|
1249
|
-
function healthcheckRequest(action = "healthcheck") {
|
|
1250
|
-
return {
|
|
1251
|
-
connectionId: "__healthcheck__",
|
|
1252
|
-
action,
|
|
1253
|
-
input: {},
|
|
1254
|
-
dryRun: true,
|
|
1255
|
-
metadata: { healthcheck: true }
|
|
1256
|
-
};
|
|
1257
|
-
}
|
|
1258
1182
|
function connectionStatusCheck(connection, now) {
|
|
1259
1183
|
if (connection.status !== "active") return {
|
|
1260
1184
|
id: "connection-active",
|
|
@@ -1423,15 +1347,6 @@ function inferIntegrationManifestFromTools(options) {
|
|
|
1423
1347
|
assertValidIntegrationManifest(manifest);
|
|
1424
1348
|
return manifest;
|
|
1425
1349
|
}
|
|
1426
|
-
function explainMissingRequirements(resolution) {
|
|
1427
|
-
return [...resolution.missing, ...resolution.optionalMissing].map((item) => ({
|
|
1428
|
-
requirementId: item.requirement.id,
|
|
1429
|
-
connectorId: item.requirement.connectorId,
|
|
1430
|
-
status: item.status,
|
|
1431
|
-
message: item.message,
|
|
1432
|
-
userAction: item.requirement.optional ? "ignore_optional" : item.status === "not_executable" ? "enable" : "connect"
|
|
1433
|
-
}));
|
|
1434
|
-
}
|
|
1435
1350
|
function calendarExercisePlannerManifest(id = "exercise-calendar-planner") {
|
|
1436
1351
|
return {
|
|
1437
1352
|
id,
|
|
@@ -1460,7 +1375,6 @@ function unique$2(values) {
|
|
|
1460
1375
|
}
|
|
1461
1376
|
//#endregion
|
|
1462
1377
|
//#region src/passthrough.ts
|
|
1463
|
-
const PROVIDER_PASSTHROUGH_ACTION = CANONICAL_INTEGRATION_ACTIONS.providerHttpRequest;
|
|
1464
1378
|
function validateProviderPassthroughRequest(input, policy) {
|
|
1465
1379
|
if (!policy.enabled) throw new IntegrationRuntimeError({
|
|
1466
1380
|
code: "passthrough_disabled",
|
|
@@ -130229,9 +130143,6 @@ function listTangleNativeAdapterIds() {
|
|
|
130229
130143
|
for (const adapter of listBundledConnectorAdapters()) ids.add(adapter.manifest.kind);
|
|
130230
130144
|
return [...ids].sort();
|
|
130231
130145
|
}
|
|
130232
|
-
function listTangleIntegrationCatalogEntries() {
|
|
130233
|
-
return listActivepiecesCatalogEntries().map((entry) => sanitizeEntry(entry));
|
|
130234
|
-
}
|
|
130235
130146
|
function listTangleIntegrationContracts() {
|
|
130236
130147
|
const nativeAdapterIds = new Set(listTangleNativeAdapterIds().map(canonicalIntegrationKind));
|
|
130237
130148
|
return listActivepiecesCatalogEntries().map((entry) => {
|
|
@@ -130296,17 +130207,6 @@ function buildTangleCatalogRuntimePackageManifest(options = {}) {
|
|
|
130296
130207
|
}
|
|
130297
130208
|
};
|
|
130298
130209
|
}
|
|
130299
|
-
function renderTangleCatalogRuntimePnpmAddCommand(options = {}) {
|
|
130300
|
-
const manifest = buildTangleCatalogRuntimePackageManifest({
|
|
130301
|
-
includeAgentIntegrationsPackage: options.includeAgentIntegrationsPackage,
|
|
130302
|
-
agentIntegrationsVersion: options.agentIntegrationsVersion
|
|
130303
|
-
});
|
|
130304
|
-
return [
|
|
130305
|
-
"pnpm",
|
|
130306
|
-
"add",
|
|
130307
|
-
...Object.entries(manifest.dependencies).map(([name, version]) => `${name}@${version}`)
|
|
130308
|
-
].join(" ");
|
|
130309
|
-
}
|
|
130310
130210
|
function buildTangleIntegrationCatalogConnectors(options = {}) {
|
|
130311
130211
|
const providerId = options.providerId ?? "tangle-catalog";
|
|
130312
130212
|
return buildActivepiecesConnectors({
|
|
@@ -130314,62 +130214,6 @@ function buildTangleIntegrationCatalogConnectors(options = {}) {
|
|
|
130314
130214
|
providerId
|
|
130315
130215
|
}).map((connector) => sanitizeConnector(connector, providerId));
|
|
130316
130216
|
}
|
|
130317
|
-
function createTangleCatalogExecutorProvider(options) {
|
|
130318
|
-
const providerId = options.id ?? "tangle-catalog";
|
|
130319
|
-
const connectors = options.connectors ?? buildTangleIntegrationCatalogConnectors({
|
|
130320
|
-
providerId,
|
|
130321
|
-
includeCatalogActions: true,
|
|
130322
|
-
executable: true
|
|
130323
|
-
});
|
|
130324
|
-
const byEntry = new Map(listActivepiecesCatalogEntries().map((entry) => [entry.id, entry]));
|
|
130325
|
-
return createCatalogExecutorProvider({
|
|
130326
|
-
id: providerId,
|
|
130327
|
-
kind: "tangle_catalog",
|
|
130328
|
-
connectors,
|
|
130329
|
-
startAuth: options.startAuth,
|
|
130330
|
-
completeAuth: options.completeAuth,
|
|
130331
|
-
executeAction: async ({ connection, request, connector, action }) => {
|
|
130332
|
-
const importedEntry = byEntry.get(connector.id);
|
|
130333
|
-
if (!importedEntry) throw new IntegrationError(`Tangle catalog entry ${connector.id} not found.`, "connector_not_found");
|
|
130334
|
-
const catalogAction = importedEntry.actions.find((candidate) => candidate.id === action.id);
|
|
130335
|
-
return options.executeAction({
|
|
130336
|
-
connection,
|
|
130337
|
-
request,
|
|
130338
|
-
connector,
|
|
130339
|
-
catalogEntry: sanitizeEntry(importedEntry),
|
|
130340
|
-
piece: {
|
|
130341
|
-
id: importedEntry.id,
|
|
130342
|
-
packageName: importedEntry.npmPackage,
|
|
130343
|
-
version: importedEntry.version,
|
|
130344
|
-
actionId: action.id,
|
|
130345
|
-
upstreamActionName: catalogAction?.upstreamName
|
|
130346
|
-
}
|
|
130347
|
-
});
|
|
130348
|
-
},
|
|
130349
|
-
subscribeTrigger: options.subscribeTrigger ? async (connection, trigger, targetUrl) => {
|
|
130350
|
-
const connector = connectors.find((candidate) => candidate.id === connection.connectorId);
|
|
130351
|
-
const importedEntry = byEntry.get(connection.connectorId);
|
|
130352
|
-
if (!connector || !importedEntry) throw new IntegrationError(`Tangle catalog entry ${connection.connectorId} not found.`, "connector_not_found");
|
|
130353
|
-
const catalogTrigger = importedEntry.triggers.find((candidate) => candidate.id === trigger.id);
|
|
130354
|
-
return options.subscribeTrigger({
|
|
130355
|
-
connection,
|
|
130356
|
-
connector,
|
|
130357
|
-
catalogEntry: sanitizeEntry(importedEntry),
|
|
130358
|
-
trigger,
|
|
130359
|
-
targetUrl,
|
|
130360
|
-
piece: {
|
|
130361
|
-
id: importedEntry.id,
|
|
130362
|
-
packageName: importedEntry.npmPackage,
|
|
130363
|
-
version: importedEntry.version,
|
|
130364
|
-
triggerId: trigger.id,
|
|
130365
|
-
upstreamTriggerName: catalogTrigger?.upstreamName
|
|
130366
|
-
}
|
|
130367
|
-
});
|
|
130368
|
-
} : void 0,
|
|
130369
|
-
unsubscribeTrigger: options.unsubscribeTrigger,
|
|
130370
|
-
normalizeTriggerEvent: options.normalizeTriggerEvent
|
|
130371
|
-
});
|
|
130372
|
-
}
|
|
130373
130217
|
const extractExternalCatalogPublicCount = extractActivepiecesPublicPieceCount;
|
|
130374
130218
|
async function auditTangleIntegrationCatalogFreshness(options = {}) {
|
|
130375
130219
|
const result = await auditIntegrationCatalogFreshness(options);
|
|
@@ -130399,28 +130243,6 @@ async function auditTangleIntegrationCatalogFreshness(options = {}) {
|
|
|
130399
130243
|
warnings: result.warnings.map((warning) => warning.replaceAll("Activepieces", "Tangle Integrations Catalog"))
|
|
130400
130244
|
};
|
|
130401
130245
|
}
|
|
130402
|
-
function sanitizeEntry(entry) {
|
|
130403
|
-
return {
|
|
130404
|
-
id: entry.id,
|
|
130405
|
-
title: entry.title,
|
|
130406
|
-
description: entry.description,
|
|
130407
|
-
category: entry.category,
|
|
130408
|
-
auth: entry.auth,
|
|
130409
|
-
authFields: entry.authFields,
|
|
130410
|
-
domains: entry.domains.filter((domain) => !domain.toLowerCase().includes("activepieces")),
|
|
130411
|
-
actions: entry.actions.map((action) => ({
|
|
130412
|
-
id: action.id,
|
|
130413
|
-
title: action.title,
|
|
130414
|
-
risk: action.risk,
|
|
130415
|
-
upstreamName: action.upstreamName
|
|
130416
|
-
})),
|
|
130417
|
-
triggers: entry.triggers.map((trigger) => ({
|
|
130418
|
-
id: trigger.id,
|
|
130419
|
-
title: trigger.title,
|
|
130420
|
-
upstreamName: trigger.upstreamName
|
|
130421
|
-
}))
|
|
130422
|
-
};
|
|
130423
|
-
}
|
|
130424
130246
|
function sanitizeConnector(connector, providerId) {
|
|
130425
130247
|
const metadata = connector.metadata ?? {};
|
|
130426
130248
|
return {
|
|
@@ -130675,6 +130497,6 @@ async function postJson(fetcher, url, body, bearer) {
|
|
|
130675
130497
|
return response.json();
|
|
130676
130498
|
}
|
|
130677
130499
|
//#endregion
|
|
130678
|
-
export {
|
|
130500
|
+
export { buildIntegrationBridgeEnvironment as $, importMcpConnector as A, runIntegrationHealthcheck as B, buildActivepiecesConnectors as C, createGatewayCatalogProvider as D, getActivepiecesOverride as E, assertValidIntegrationManifest as F, discoverWorkspaceCapabilities as G, InMemoryIntegrationEventStore as H, calendarExercisePlannerManifest as I, createTangleIntegrationsClient as J, renderConsentSummary as K, inferIntegrationManifestFromTools as L, createCatalogExecutorProvider as M, createPlatformIntegrationPolicyPreset as N, normalizeGatewayCatalog as O, validateProviderPassthroughRequest as P, DEFAULT_INTEGRATION_BRIDGE_ENV as Q, validateIntegrationManifest as R, createActivepiecesExecutorProvider as S, ACTIVEPIECES_OVERRIDES as T, receiveIntegrationWebhook as U, runIntegrationHealthchecks as V, storedEventToTriggerEvent as W, createTangleAppsClient as X, TangleAppsClient as Y, requireBrokerGrantReceipt as Z, ACTIVEPIECES_PUBLIC_CATALOG_URL as _, InMemoryIntegrationWorkflowStore as a, buildCanonicalLaunchConnectors as at, buildDefaultIntegrationRegistry as b, TANGLE_INTEGRATIONS_CATALOG_PROVIDER_ID as c, InMemoryIntegrationApprovalStore as ct, buildTangleCatalogRuntimePackageManifest as d, buildIntegrationBridgePayload as et, buildTangleIntegrationCatalogConnectors as f, listTangleNativeAdapterIds as g, listTangleIntegrationContracts as h, sanitizeConnection as i, CANONICAL_INTEGRATION_ACTIONS as it, importOpenApiConnector as j, importGraphqlConnector as k, TANGLE_INTEGRATIONS_CATALOG_SOURCE as l, resolveIntegrationApproval as lt, listTangleIntegrationCatalogRuntimePackages as m, createHttpIntegrationProvider as n, encodeIntegrationBridgePayload as nt, IntegrationWorkflowRuntime as o, canonicalActionConnectorId as ot, extractExternalCatalogPublicCount as p, TangleIntegrationsClient as q, createMockIntegrationProvider as r, parseIntegrationBridgeEnvironment as rt, createIntegrationWorkflowRuntime as s, ApprovalBackedPolicyEngine as st, InMemoryConnectionStore as t, decodeIntegrationBridgePayload as tt, auditTangleIntegrationCatalogFreshness as u, auditIntegrationCatalogFreshness as v, listActivepiecesCatalogEntries as w, classifyIntegrationCatalogExecutability as x, extractActivepiecesPublicPieceCount as y, InMemoryIntegrationHealthcheckStore as z };
|
|
130679
130501
|
|
|
130680
|
-
//# sourceMappingURL=src-
|
|
130502
|
+
//# sourceMappingURL=src-BZmlzQzN.js.map
|