@tangle-network/agent-integrations 0.53.53 → 0.53.54
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 +23 -0
- package/data/bundled-adapter-manifests.json +1 -0
- package/dist/audit-DMTzJQJU.d.ts +51 -0
- package/dist/catalog.d.ts +3 -3
- package/dist/catalog.js +2 -12
- package/dist/chunk-A4OJ5EQT.js +133156 -0
- package/dist/chunk-A4OJ5EQT.js.map +1 -0
- package/dist/chunk-ABA4HWIQ.js +58 -0
- package/dist/chunk-ABA4HWIQ.js.map +1 -0
- package/dist/chunk-DED3J7F6.js +1 -0
- package/dist/chunk-ESY2FBBM.js +33 -0
- package/dist/chunk-ESY2FBBM.js.map +1 -0
- package/dist/chunk-GIK6EXU2.js +121 -0
- package/dist/chunk-GIK6EXU2.js.map +1 -0
- package/dist/{chunk-TWR2KAZG.js → chunk-MH4IEJCL.js} +1 -1
- package/dist/chunk-MH4IEJCL.js.map +1 -0
- package/dist/chunk-QVWTBQXP.js +267 -0
- package/dist/chunk-QVWTBQXP.js.map +1 -0
- package/dist/{chunk-2GEGKSL5.js → chunk-QWOX5SIM.js} +6 -33
- package/dist/chunk-QWOX5SIM.js.map +1 -0
- package/dist/chunk-RSJRICPU.js +394 -0
- package/dist/chunk-RSJRICPU.js.map +1 -0
- package/dist/chunk-WPQJK4S4.js +400 -0
- package/dist/chunk-WPQJK4S4.js.map +1 -0
- package/dist/connect/index.d.ts +2 -2
- package/dist/connectors/adapters/index.d.ts +2 -2
- package/dist/connectors/index.d.ts +10 -22
- package/dist/connectors/index.js +12 -10
- package/dist/{consumer-BbQWkIzU.d.ts → consumer-CIq2D22y.d.ts} +4 -51
- package/dist/consumer.d.ts +5 -4
- package/dist/{core-types-A-xIaTzb.d.ts → core-types-DZJQRBya.d.ts} +2 -2
- package/dist/coverage-catalog.d.ts +2 -2
- package/dist/coverage-catalog.js +1 -1
- package/dist/{importers-BMigcDVf.d.ts → importers-Cyk5osDs.d.ts} +1 -1
- package/dist/index.d.ts +17 -104
- package/dist/index.js +72 -62
- package/dist/internal/bundled-manifest-runtime.d.ts +15 -0
- package/dist/internal/bundled-manifest-runtime.js +13 -0
- package/dist/internal/bundled-manifest-runtime.js.map +1 -0
- package/dist/mcp.d.ts +3 -3
- package/dist/mcp.js +10 -5
- package/dist/mcp.js.map +1 -1
- package/dist/middleware/index.d.ts +2 -2
- package/dist/registry-core-DqdQjTkh.d.ts +49 -0
- package/dist/registry.d.ts +6 -49
- package/dist/registry.js +16 -10
- package/dist/runtime.d.ts +3 -3
- package/dist/runtime.js +3 -12
- package/dist/specs.d.ts +2 -2
- package/dist/specs.js +4 -6
- package/dist/{tangle-id-gFOGXe4Y.d.ts → tangle-id-Oy2z4W3p.d.ts} +1 -1
- package/dist/{types-DpKEBiX6.d.ts → types-DIis6QtV.d.ts} +1 -1
- package/dist/worker.d.ts +99 -0
- package/dist/worker.js +28 -0
- package/dist/worker.js.map +1 -0
- package/docs/repo-structure.md +29 -6
- package/package.json +10 -1
- package/dist/chunk-2GEGKSL5.js.map +0 -1
- package/dist/chunk-E2QYXDJQ.js +0 -147
- package/dist/chunk-E2QYXDJQ.js.map +0 -1
- package/dist/chunk-P4FFI752.js +0 -1
- package/dist/chunk-TWR2KAZG.js.map +0 -1
- package/dist/chunk-ZC3ZE7TN.js +0 -4849
- package/dist/chunk-ZC3ZE7TN.js.map +0 -1
- /package/dist/{chunk-P4FFI752.js.map → chunk-DED3J7F6.js.map} +0 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CONNECTOR_ADAPTER_FACTORIES,
|
|
3
|
+
adapters_exports
|
|
4
|
+
} from "./chunk-QL6CRJ3E.js";
|
|
5
|
+
|
|
6
|
+
// src/connectors/bundled-manifest-runtime.ts
|
|
7
|
+
var MANIFEST_PROBE_PREFIX = "tangle-adapter-metadata-";
|
|
8
|
+
function isConnectorAdapter(value) {
|
|
9
|
+
if (!value || typeof value !== "object") return false;
|
|
10
|
+
const manifest = value.manifest;
|
|
11
|
+
if (!manifest || typeof manifest !== "object") return false;
|
|
12
|
+
return typeof manifest.kind === "string";
|
|
13
|
+
}
|
|
14
|
+
function manifestFromFactory(definition) {
|
|
15
|
+
const probeOptions = Object.fromEntries(
|
|
16
|
+
Object.keys(definition.envMap).map((name) => [name, `${MANIFEST_PROBE_PREFIX}${name}`])
|
|
17
|
+
);
|
|
18
|
+
try {
|
|
19
|
+
return definition.factory(probeOptions).manifest;
|
|
20
|
+
} catch {
|
|
21
|
+
return void 0;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function listBundledConnectorAdapters() {
|
|
25
|
+
const byKind = /* @__PURE__ */ new Map();
|
|
26
|
+
const exportByKind = /* @__PURE__ */ new Map();
|
|
27
|
+
for (const [exportName, value] of Object.entries(adapters_exports)) {
|
|
28
|
+
if (!isConnectorAdapter(value) || value.inboundOnly) continue;
|
|
29
|
+
const kind = value.manifest.kind;
|
|
30
|
+
const existingExport = exportByKind.get(kind);
|
|
31
|
+
if (existingExport) {
|
|
32
|
+
throw new Error(
|
|
33
|
+
`Duplicate public connector adapter kind "${kind}" exported by "${existingExport}" and "${exportName}".`
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
exportByKind.set(kind, exportName);
|
|
37
|
+
byKind.set(kind, value);
|
|
38
|
+
}
|
|
39
|
+
return [...byKind.values()];
|
|
40
|
+
}
|
|
41
|
+
function buildRuntimeBundledAdapterManifests() {
|
|
42
|
+
const byKind = /* @__PURE__ */ new Map();
|
|
43
|
+
for (const adapter of listBundledConnectorAdapters()) {
|
|
44
|
+
byKind.set(adapter.manifest.kind, adapter.manifest);
|
|
45
|
+
}
|
|
46
|
+
for (const definition of CONNECTOR_ADAPTER_FACTORIES) {
|
|
47
|
+
if (byKind.has(definition.kind)) continue;
|
|
48
|
+
const manifest = manifestFromFactory(definition);
|
|
49
|
+
if (manifest) byKind.set(manifest.kind, manifest);
|
|
50
|
+
}
|
|
51
|
+
return [...byKind.values()];
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export {
|
|
55
|
+
listBundledConnectorAdapters,
|
|
56
|
+
buildRuntimeBundledAdapterManifests
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=chunk-ABA4HWIQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/connectors/bundled-manifest-runtime.ts"],"sourcesContent":["import type { ConnectorAdapter, ConnectorManifest } from './types.js'\nimport {\n CONNECTOR_ADAPTER_FACTORIES,\n type ConnectorAdapterFactoryDefinition,\n} from './adapters/factories.js'\nimport * as bundledAdapters from './adapters/index.js'\n\nconst MANIFEST_PROBE_PREFIX = 'tangle-adapter-metadata-'\n\nfunction isConnectorAdapter(value: unknown): value is ConnectorAdapter {\n if (!value || typeof value !== 'object') return false\n const manifest = (value as { manifest?: unknown }).manifest\n if (!manifest || typeof manifest !== 'object') return false\n return typeof (manifest as { kind?: unknown }).kind === 'string'\n}\n\nfunction manifestFromFactory(\n definition: ConnectorAdapterFactoryDefinition,\n): ConnectorManifest | undefined {\n const probeOptions = Object.fromEntries(\n Object.keys(definition.envMap).map((name) => [name, `${MANIFEST_PROBE_PREFIX}${name}`]),\n )\n try {\n return definition.factory(probeOptions).manifest\n } catch {\n return undefined\n }\n}\n\n/**\n * Direct adapter instances that public catalog and action hosts may register.\n *\n * Factory adapters are intentionally absent: their construction requires\n * product-owned OAuth configuration. Inbound-only adapters remain available\n * as named exports for webhook hosts, but never compete with action adapters\n * for a public connector kind.\n */\nexport function listBundledConnectorAdapters(): ConnectorAdapter[] {\n const byKind = new Map<string, ConnectorAdapter>()\n const exportByKind = new Map<string, string>()\n for (const [exportName, value] of Object.entries(bundledAdapters)) {\n if (!isConnectorAdapter(value) || value.inboundOnly) continue\n const kind = value.manifest.kind\n const existingExport = exportByKind.get(kind)\n if (existingExport) {\n throw new Error(\n `Duplicate public connector adapter kind \"${kind}\" exported by \"${existingExport}\" and \"${exportName}\".`,\n )\n }\n exportByKind.set(kind, exportName)\n byKind.set(kind, value)\n }\n return [...byKind.values()]\n}\n\n/** Build the runtime manifest registry used to regenerate the static snapshot. */\nexport function buildRuntimeBundledAdapterManifests(): ConnectorManifest[] {\n const byKind = new Map<string, ConnectorManifest>()\n for (const adapter of listBundledConnectorAdapters()) {\n byKind.set(adapter.manifest.kind, adapter.manifest)\n }\n for (const definition of CONNECTOR_ADAPTER_FACTORIES) {\n if (byKind.has(definition.kind)) continue\n const manifest = manifestFromFactory(definition)\n if (manifest) byKind.set(manifest.kind, manifest)\n }\n return [...byKind.values()]\n}\n"],"mappings":";;;;;;AAOA,IAAM,wBAAwB;AAE9B,SAAS,mBAAmB,OAA2C;AACrE,MAAI,CAAC,SAAS,OAAO,UAAU,SAAU,QAAO;AAChD,QAAM,WAAY,MAAiC;AACnD,MAAI,CAAC,YAAY,OAAO,aAAa,SAAU,QAAO;AACtD,SAAO,OAAQ,SAAgC,SAAS;AAC1D;AAEA,SAAS,oBACP,YAC+B;AAC/B,QAAM,eAAe,OAAO;AAAA,IAC1B,OAAO,KAAK,WAAW,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,qBAAqB,GAAG,IAAI,EAAE,CAAC;AAAA,EACxF;AACA,MAAI;AACF,WAAO,WAAW,QAAQ,YAAY,EAAE;AAAA,EAC1C,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAUO,SAAS,+BAAmD;AACjE,QAAM,SAAS,oBAAI,IAA8B;AACjD,QAAM,eAAe,oBAAI,IAAoB;AAC7C,aAAW,CAAC,YAAY,KAAK,KAAK,OAAO,QAAQ,gBAAe,GAAG;AACjE,QAAI,CAAC,mBAAmB,KAAK,KAAK,MAAM,YAAa;AACrD,UAAM,OAAO,MAAM,SAAS;AAC5B,UAAM,iBAAiB,aAAa,IAAI,IAAI;AAC5C,QAAI,gBAAgB;AAClB,YAAM,IAAI;AAAA,QACR,4CAA4C,IAAI,kBAAkB,cAAc,UAAU,UAAU;AAAA,MACtG;AAAA,IACF;AACA,iBAAa,IAAI,MAAM,UAAU;AACjC,WAAO,IAAI,MAAM,KAAK;AAAA,EACxB;AACA,SAAO,CAAC,GAAG,OAAO,OAAO,CAAC;AAC5B;AAGO,SAAS,sCAA2D;AACzE,QAAM,SAAS,oBAAI,IAA+B;AAClD,aAAW,WAAW,6BAA6B,GAAG;AACpD,WAAO,IAAI,QAAQ,SAAS,MAAM,QAAQ,QAAQ;AAAA,EACpD;AACA,aAAW,cAAc,6BAA6B;AACpD,QAAI,OAAO,IAAI,WAAW,IAAI,EAAG;AACjC,UAAM,WAAW,oBAAoB,UAAU;AAC/C,QAAI,SAAU,QAAO,IAAI,SAAS,MAAM,QAAQ;AAAA,EAClD;AACA,SAAO,CAAC,GAAG,OAAO,OAAO,CAAC;AAC5B;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-DED3J7F6.js.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// src/integration-kind-aliases.ts
|
|
2
|
+
var INTEGRATION_KIND_ALIASES = {
|
|
3
|
+
"notion-database": "notion",
|
|
4
|
+
"microsoft-onedrive": "onedrive",
|
|
5
|
+
"microsoft-sharepoint": "sharepoint",
|
|
6
|
+
"microsoft-excel": "microsoft-excel-365",
|
|
7
|
+
"aws-s3": "amazon-s3",
|
|
8
|
+
"outlook-calendar": "microsoft-calendar",
|
|
9
|
+
"microsoft-outlook-calendar": "microsoft-calendar",
|
|
10
|
+
"microsoft-outlook": "outlook-mail",
|
|
11
|
+
"gmail-mail": "gmail",
|
|
12
|
+
"google-pubsub": "gcloud-pubsub",
|
|
13
|
+
bigquery: "google-bigquery",
|
|
14
|
+
"slack-bolt": "slack",
|
|
15
|
+
"help-scout": "helpscout",
|
|
16
|
+
"mycase-piece": "mycase",
|
|
17
|
+
jira: "jira-cloud",
|
|
18
|
+
stripe: "stripe-pack",
|
|
19
|
+
twilio: "twilio-sms",
|
|
20
|
+
"twilio-voice": "twilio-sms",
|
|
21
|
+
"telegram-bot": "telegram",
|
|
22
|
+
"x-twitter": "twitter",
|
|
23
|
+
scrapegrapghai: "scrapegraphai"
|
|
24
|
+
};
|
|
25
|
+
function canonicalIntegrationKind(kind) {
|
|
26
|
+
return INTEGRATION_KIND_ALIASES[kind] ?? kind;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export {
|
|
30
|
+
INTEGRATION_KIND_ALIASES,
|
|
31
|
+
canonicalIntegrationKind
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=chunk-ESY2FBBM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/integration-kind-aliases.ts"],"sourcesContent":["/** Canonical provider ids shared by catalog, setup, runtime, and audits. */\nexport const INTEGRATION_KIND_ALIASES: Readonly<Record<string, string>> = {\n 'notion-database': 'notion',\n 'microsoft-onedrive': 'onedrive',\n 'microsoft-sharepoint': 'sharepoint',\n 'microsoft-excel': 'microsoft-excel-365',\n 'aws-s3': 'amazon-s3',\n 'outlook-calendar': 'microsoft-calendar',\n 'microsoft-outlook-calendar': 'microsoft-calendar',\n 'microsoft-outlook': 'outlook-mail',\n 'gmail-mail': 'gmail',\n 'google-pubsub': 'gcloud-pubsub',\n bigquery: 'google-bigquery',\n 'slack-bolt': 'slack',\n 'help-scout': 'helpscout',\n 'mycase-piece': 'mycase',\n jira: 'jira-cloud',\n stripe: 'stripe-pack',\n twilio: 'twilio-sms',\n 'twilio-voice': 'twilio-sms',\n 'telegram-bot': 'telegram',\n 'x-twitter': 'twitter',\n scrapegrapghai: 'scrapegraphai',\n}\n\nexport function canonicalIntegrationKind(kind: string): string {\n return INTEGRATION_KIND_ALIASES[kind] ?? kind\n}\n"],"mappings":";AACO,IAAM,2BAA6D;AAAA,EACxE,mBAAmB;AAAA,EACnB,sBAAsB;AAAA,EACtB,wBAAwB;AAAA,EACxB,mBAAmB;AAAA,EACnB,UAAU;AAAA,EACV,oBAAoB;AAAA,EACpB,8BAA8B;AAAA,EAC9B,qBAAqB;AAAA,EACrB,cAAc;AAAA,EACd,iBAAiB;AAAA,EACjB,UAAU;AAAA,EACV,cAAc;AAAA,EACd,cAAc;AAAA,EACd,gBAAgB;AAAA,EAChB,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,aAAa;AAAA,EACb,gBAAgB;AAClB;AAEO,SAAS,yBAAyB,MAAsB;AAC7D,SAAO,yBAAyB,IAAI,KAAK;AAC3C;","names":[]}
|