@tangle-network/agent-integrations 0.53.4 → 0.53.6
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 +4 -4
- package/dist/{chunk-4DZR436A.js → chunk-66XHW2PL.js} +5203 -5130
- package/dist/{chunk-4DZR436A.js.map → chunk-66XHW2PL.js.map} +1 -1
- package/dist/{chunk-FPBOGTHV.js → chunk-7FAITNYP.js} +2 -2
- package/dist/{chunk-UXRMMG6W.js → chunk-FH3LR7K3.js} +2 -2
- package/dist/{chunk-S77LC6LM.js → chunk-PUSU2UPD.js} +19 -5
- package/dist/chunk-PUSU2UPD.js.map +1 -0
- package/dist/connectors/adapters/index.js +1 -1
- package/dist/connectors/index.js +2 -2
- package/dist/index.js +4 -4
- package/dist/mcp.js +4 -4
- package/dist/registry.js +4 -4
- package/dist/runtime.js +4 -4
- package/dist/specs.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-S77LC6LM.js.map +0 -1
- /package/dist/{chunk-FPBOGTHV.js.map → chunk-7FAITNYP.js.map} +0 -0
- /package/dist/{chunk-UXRMMG6W.js.map → chunk-FH3LR7K3.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CONNECTOR_ADAPTER_FACTORIES,
|
|
3
3
|
adapters_exports
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-66XHW2PL.js";
|
|
5
5
|
|
|
6
6
|
// src/connectors/bundled-manifests.ts
|
|
7
7
|
var MANIFEST_PROBE_PREFIX = "tangle-adapter-metadata-";
|
|
@@ -106,4 +106,4 @@ export {
|
|
|
106
106
|
bundledApiKeyHint,
|
|
107
107
|
bundledOAuth2Auth
|
|
108
108
|
};
|
|
109
|
-
//# sourceMappingURL=chunk-
|
|
109
|
+
//# sourceMappingURL=chunk-7FAITNYP.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
bundledAuthMode,
|
|
8
8
|
bundledOAuth2Auth,
|
|
9
9
|
getBundledAdapterManifest
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7FAITNYP.js";
|
|
11
11
|
|
|
12
12
|
// src/specs/types.ts
|
|
13
13
|
function specAuthToConnectorAuth(auth) {
|
|
@@ -891,4 +891,4 @@ export {
|
|
|
891
891
|
validateCredentialFormat,
|
|
892
892
|
validateCredentialSet
|
|
893
893
|
};
|
|
894
|
-
//# sourceMappingURL=chunk-
|
|
894
|
+
//# sourceMappingURL=chunk-FH3LR7K3.js.map
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
integrationSpecToConnector,
|
|
7
7
|
listIntegrationSpecs
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FH3LR7K3.js";
|
|
9
9
|
import {
|
|
10
10
|
CONNECTOR_ADAPTER_FACTORIES,
|
|
11
11
|
adapters_exports
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-66XHW2PL.js";
|
|
13
13
|
|
|
14
14
|
// src/activepieces-catalog.ts
|
|
15
15
|
import { readFileSync } from "fs";
|
|
@@ -343,15 +343,23 @@ function createConnectorAdapterProvider(options) {
|
|
|
343
343
|
body
|
|
344
344
|
});
|
|
345
345
|
} catch (cause) {
|
|
346
|
+
const detail = redactSensitiveText(
|
|
347
|
+
cause?.message ?? "unknown",
|
|
348
|
+
[request.code, client.clientId, client.clientSecret]
|
|
349
|
+
);
|
|
346
350
|
throw new IntegrationError(
|
|
347
|
-
`OAuth token exchange transport error for ${request.connectorId}: ${
|
|
351
|
+
`OAuth token exchange transport error for ${request.connectorId}: ${detail}`,
|
|
348
352
|
"provider_failure"
|
|
349
353
|
);
|
|
350
354
|
}
|
|
351
355
|
if (!res.ok) {
|
|
352
356
|
const text = await res.text().catch(() => "");
|
|
357
|
+
const detail = redactSensitiveText(
|
|
358
|
+
`${res.status} ${res.statusText} \u2014 ${text.slice(0, 200)}`,
|
|
359
|
+
[request.code, client.clientId, client.clientSecret]
|
|
360
|
+
);
|
|
353
361
|
throw new IntegrationError(
|
|
354
|
-
`OAuth token exchange failed for ${request.connectorId}: ${
|
|
362
|
+
`OAuth token exchange failed for ${request.connectorId}: ${detail}`,
|
|
355
363
|
"provider_failure"
|
|
356
364
|
);
|
|
357
365
|
}
|
|
@@ -537,6 +545,12 @@ function oauthManifestAuth(auth) {
|
|
|
537
545
|
if (auth.kind !== "one_of") return void 0;
|
|
538
546
|
return auth.options.find((option) => option.kind === "oauth2");
|
|
539
547
|
}
|
|
548
|
+
function redactSensitiveText(text, secrets) {
|
|
549
|
+
return secrets.filter((secret) => secret.length > 0).reduce(
|
|
550
|
+
(redacted, secret) => redacted.split(secret).join("[REDACTED]"),
|
|
551
|
+
text
|
|
552
|
+
);
|
|
553
|
+
}
|
|
540
554
|
function captureTokenMetadata(tokenMetadata, json, connectorId) {
|
|
541
555
|
if (!tokenMetadata) return {};
|
|
542
556
|
const captured = {};
|
|
@@ -4349,4 +4363,4 @@ export {
|
|
|
4349
4363
|
signCapability,
|
|
4350
4364
|
verifyCapabilityToken
|
|
4351
4365
|
};
|
|
4352
|
-
//# sourceMappingURL=chunk-
|
|
4366
|
+
//# sourceMappingURL=chunk-PUSU2UPD.js.map
|