@tangle-network/agent-integrations 0.14.0 → 0.15.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 +15 -0
- package/dist/index.d.ts +552 -248
- package/dist/index.js +938 -164
- package/dist/index.js.map +1 -1
- package/docs/architecture.md +7 -0
- package/docs/production-completion-checklist.md +63 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,6 +45,8 @@ agent-facing tool contract.
|
|
|
45
45
|
same user-owned connections safely.
|
|
46
46
|
- Workflow trigger installation and normalized event dispatch for non-agent UI
|
|
47
47
|
automation, sync jobs, webhooks, and product workflows.
|
|
48
|
+
- Approval persistence, audit events, healthchecks, credential resolution,
|
|
49
|
+
webhook ingestion, idempotency guards, and sandbox/CLI bridge payloads.
|
|
48
50
|
- A generated `IntegrationSpec` registry used for setup docs, admin UI steps,
|
|
49
51
|
normalized permissions, healthcheck plans, and tool descriptions.
|
|
50
52
|
|
|
@@ -86,6 +88,12 @@ pnpm add @tangle-network/agent-integrations
|
|
|
86
88
|
| `IntegrationGrant` | Persistent grant from a user-owned connection to an app, agent, or sandbox consumer. |
|
|
87
89
|
| `createIntegrationRuntime` | Facade for manifest resolution, grant creation, and sandbox capability bundles. |
|
|
88
90
|
| `createIntegrationWorkflowRuntime` | Installs trigger workflows and dispatches normalized provider events. |
|
|
91
|
+
| `createApprovalBackedPolicyEngine` | Persists approval requests and allows approved invocations to resume. |
|
|
92
|
+
| `createDefaultIntegrationActionGuard` | Adds idempotency replay, dry-run mutation handling, rate-limit hooks, and audit events. |
|
|
93
|
+
| `createConnectionCredentialResolver` | Resolves secret refs into in-memory connector credentials and refreshes expired OAuth credentials. |
|
|
94
|
+
| `runIntegrationHealthchecks` | Checks connection status, registry executability, scope shape, and optional live provider tests. |
|
|
95
|
+
| `receiveIntegrationWebhook` | Verifies inbound webhooks, dedupes provider events, and dispatches normalized trigger events. |
|
|
96
|
+
| `buildIntegrationBridgeEnvironment` | Encodes scoped sandbox capabilities for sandbox processes or executor-style CLIs. |
|
|
89
97
|
| `buildIntegrationToolCatalog` | Converts connector actions into agent/tool definitions. |
|
|
90
98
|
| `searchIntegrationTools` | Intent search over normalized integration tools. |
|
|
91
99
|
| `buildDefaultIntegrationRegistry` | Composes setup specs and vendored catalog metadata into one deduplicated connector registry. |
|
|
@@ -142,6 +150,8 @@ const bundle = await runtime.buildSandboxBundle({
|
|
|
142
150
|
|
|
143
151
|
Generated apps and sandboxes receive scoped capability tokens and tool
|
|
144
152
|
definitions. They never receive OAuth refresh tokens, API keys, or raw secrets.
|
|
153
|
+
For sandbox processes, pass the bundle through `buildIntegrationBridgeEnvironment()`;
|
|
154
|
+
the payload contains short-lived capability tokens and tool names only.
|
|
145
155
|
|
|
146
156
|
The same manifest/grant model works for non-agent workflows:
|
|
147
157
|
|
|
@@ -214,9 +224,14 @@ without obscuring the package contract.
|
|
|
214
224
|
- Capability tokens expire.
|
|
215
225
|
- Capability tokens do not contain provider credentials.
|
|
216
226
|
- Connection records carry secret references, not raw secrets.
|
|
227
|
+
- Secret stores are consumer-pluggable; the package only resolves secret refs at
|
|
228
|
+
call time and keeps raw credentials in memory.
|
|
217
229
|
- Write and destructive actions can require approval.
|
|
230
|
+
- Approval records are bound to the subject, connection, connector, and action.
|
|
231
|
+
- Default guards provide idempotency replay and same-key drift detection.
|
|
218
232
|
- Invocation envelopes validate action/tool consistency, idempotency keys,
|
|
219
233
|
metadata shape, known tools, and input size.
|
|
234
|
+
- Webhook ingestion supports signature verification and provider-event dedupe.
|
|
220
235
|
- Action invocation checks ownership, connection status, scopes, allowed actions,
|
|
221
236
|
and expiration.
|
|
222
237
|
- `IntegrationActionGuard` can enforce idempotency, approval, audit logging,
|