@contractspec/bundle.library 2.9.1 → 3.1.1
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/.turbo/turbo-build.log +240 -214
- package/AGENTS.md +19 -12
- package/CHANGELOG.md +84 -0
- package/dist/application/context-storage/index.d.ts +18 -0
- package/dist/application/context-storage/index.js +29 -0
- package/dist/application/index.d.ts +1 -0
- package/dist/application/index.js +662 -2
- package/dist/application/mcp/cliMcp.js +12 -2
- package/dist/application/mcp/common.d.ts +11 -1
- package/dist/application/mcp/common.js +12 -2
- package/dist/application/mcp/contractsMcp.d.ts +51 -0
- package/dist/application/mcp/contractsMcp.js +531 -0
- package/dist/application/mcp/contractsMcpResources.d.ts +7 -0
- package/dist/application/mcp/contractsMcpResources.js +124 -0
- package/dist/application/mcp/contractsMcpTools.d.ts +9 -0
- package/dist/application/mcp/contractsMcpTools.js +200 -0
- package/dist/application/mcp/contractsMcpTypes.d.ts +50 -0
- package/dist/application/mcp/contractsMcpTypes.js +1 -0
- package/dist/application/mcp/docsMcp.js +12 -2
- package/dist/application/mcp/index.d.ts +2 -0
- package/dist/application/mcp/index.js +635 -2
- package/dist/application/mcp/internalMcp.js +12 -2
- package/dist/application/mcp/providerRankingMcp.d.ts +46 -0
- package/dist/application/mcp/providerRankingMcp.js +494 -0
- package/dist/components/docs/DocsIndexPage.js +1 -1
- package/dist/components/docs/architecture/ArchitectureControlPlanePage.d.ts +1 -0
- package/dist/components/docs/architecture/ArchitectureControlPlanePage.js +204 -0
- package/dist/components/docs/architecture/ArchitectureOverviewPage.js +17 -1
- package/dist/components/docs/architecture/index.d.ts +1 -0
- package/dist/components/docs/architecture/index.js +507 -289
- package/dist/components/docs/ecosystem/IntegrationsPage.js +6 -3
- package/dist/components/docs/ecosystem/PluginsPage.js +98 -98
- package/dist/components/docs/ecosystem/RegistryPage.js +39 -42
- package/dist/components/docs/ecosystem/TemplatesPage.js +26 -21
- package/dist/components/docs/ecosystem/ecosystem.docblocks.js +10 -10
- package/dist/components/docs/ecosystem/index.js +179 -174
- package/dist/components/docs/index.js +6795 -5376
- package/dist/components/docs/integrations/IntegrationsElevenLabsPage.js +2 -2
- package/dist/components/docs/integrations/IntegrationsGithubPage.d.ts +1 -0
- package/dist/components/docs/integrations/IntegrationsGithubPage.js +155 -0
- package/dist/components/docs/integrations/IntegrationsHealthRoutingPage.d.ts +1 -0
- package/dist/components/docs/integrations/IntegrationsHealthRoutingPage.js +168 -0
- package/dist/components/docs/integrations/IntegrationsMistralPage.d.ts +1 -0
- package/dist/components/docs/integrations/IntegrationsMistralPage.js +203 -0
- package/dist/components/docs/integrations/IntegrationsOpenAIPage.js +2 -2
- package/dist/components/docs/integrations/IntegrationsOverviewPage.js +136 -9
- package/dist/components/docs/integrations/IntegrationsSlackPage.d.ts +1 -0
- package/dist/components/docs/integrations/IntegrationsSlackPage.js +161 -0
- package/dist/components/docs/integrations/IntegrationsSpecModelPage.js +72 -0
- package/dist/components/docs/integrations/IntegrationsTwilioPage.js +2 -2
- package/dist/components/docs/integrations/IntegrationsWhatsappMetaPage.d.ts +1 -0
- package/dist/components/docs/integrations/IntegrationsWhatsappMetaPage.js +157 -0
- package/dist/components/docs/integrations/IntegrationsWhatsappTwilioPage.d.ts +1 -0
- package/dist/components/docs/integrations/IntegrationsWhatsappTwilioPage.js +165 -0
- package/dist/components/docs/integrations/index.d.ts +6 -0
- package/dist/components/docs/integrations/index.js +1688 -492
- package/dist/index.js +8016 -6597
- package/dist/node/application/context-storage/index.js +28 -0
- package/dist/node/application/index.js +662 -2
- package/dist/node/application/mcp/cliMcp.js +12 -2
- package/dist/node/application/mcp/common.js +12 -2
- package/dist/node/application/mcp/contractsMcp.js +530 -0
- package/dist/node/application/mcp/contractsMcpResources.js +123 -0
- package/dist/node/application/mcp/contractsMcpTools.js +199 -0
- package/dist/node/application/mcp/contractsMcpTypes.js +0 -0
- package/dist/node/application/mcp/docsMcp.js +12 -2
- package/dist/node/application/mcp/index.js +635 -2
- package/dist/node/application/mcp/internalMcp.js +12 -2
- package/dist/node/application/mcp/providerRankingMcp.js +493 -0
- package/dist/node/components/docs/DocsIndexPage.js +1 -1
- package/dist/node/components/docs/architecture/ArchitectureControlPlanePage.js +203 -0
- package/dist/node/components/docs/architecture/ArchitectureOverviewPage.js +17 -1
- package/dist/node/components/docs/architecture/index.js +507 -289
- package/dist/node/components/docs/ecosystem/IntegrationsPage.js +6 -3
- package/dist/node/components/docs/ecosystem/PluginsPage.js +98 -98
- package/dist/node/components/docs/ecosystem/RegistryPage.js +39 -42
- package/dist/node/components/docs/ecosystem/TemplatesPage.js +26 -21
- package/dist/node/components/docs/ecosystem/ecosystem.docblocks.js +10 -10
- package/dist/node/components/docs/ecosystem/index.js +179 -174
- package/dist/node/components/docs/index.js +6795 -5376
- package/dist/node/components/docs/integrations/IntegrationsElevenLabsPage.js +2 -2
- package/dist/node/components/docs/integrations/IntegrationsGithubPage.js +154 -0
- package/dist/node/components/docs/integrations/IntegrationsHealthRoutingPage.js +167 -0
- package/dist/node/components/docs/integrations/IntegrationsMistralPage.js +202 -0
- package/dist/node/components/docs/integrations/IntegrationsOpenAIPage.js +2 -2
- package/dist/node/components/docs/integrations/IntegrationsOverviewPage.js +136 -9
- package/dist/node/components/docs/integrations/IntegrationsSlackPage.js +160 -0
- package/dist/node/components/docs/integrations/IntegrationsSpecModelPage.js +72 -0
- package/dist/node/components/docs/integrations/IntegrationsTwilioPage.js +2 -2
- package/dist/node/components/docs/integrations/IntegrationsWhatsappMetaPage.js +156 -0
- package/dist/node/components/docs/integrations/IntegrationsWhatsappTwilioPage.js +164 -0
- package/dist/node/components/docs/integrations/index.js +1688 -492
- package/dist/node/index.js +8016 -6597
- package/package.json +195 -25
- package/src/application/context-storage/index.ts +58 -0
- package/src/application/index.ts +1 -0
- package/src/application/mcp/common.ts +28 -1
- package/src/application/mcp/contractsMcp.ts +34 -0
- package/src/application/mcp/contractsMcpResources.ts +142 -0
- package/src/application/mcp/contractsMcpTools.ts +246 -0
- package/src/application/mcp/contractsMcpTypes.ts +47 -0
- package/src/application/mcp/index.ts +2 -0
- package/src/application/mcp/providerRankingMcp.ts +380 -0
- package/src/components/docs/DocsIndexPage.tsx +2 -1
- package/src/components/docs/architecture/ArchitectureControlPlanePage.tsx +136 -0
- package/src/components/docs/architecture/ArchitectureOverviewPage.tsx +13 -1
- package/src/components/docs/architecture/index.ts +1 -0
- package/src/components/docs/ecosystem/IntegrationsPage.tsx +4 -3
- package/src/components/docs/ecosystem/PluginsPage.tsx +68 -87
- package/src/components/docs/ecosystem/RegistryPage.tsx +35 -43
- package/src/components/docs/ecosystem/TemplatesPage.tsx +28 -21
- package/src/components/docs/ecosystem/ecosystem.docblocks.ts +12 -10
- package/src/components/docs/generated/docs-index._common.json +1119 -1
- package/src/components/docs/generated/docs-index.health.json +98 -0
- package/src/components/docs/generated/docs-index.manifest.json +15 -5
- package/src/components/docs/generated/docs-index.metrics.json +8 -0
- package/src/components/docs/generated/docs-index.platform-integrations.json +89 -1
- package/src/components/docs/generated/docs-index.video-api-showcase.json +26 -0
- package/src/components/docs/integrations/IntegrationsElevenLabsPage.tsx +2 -2
- package/src/components/docs/integrations/IntegrationsGithubPage.tsx +90 -0
- package/src/components/docs/integrations/IntegrationsHealthRoutingPage.tsx +112 -0
- package/src/components/docs/integrations/IntegrationsMistralPage.tsx +133 -0
- package/src/components/docs/integrations/IntegrationsOpenAIPage.tsx +2 -2
- package/src/components/docs/integrations/IntegrationsOverviewPage.tsx +108 -9
- package/src/components/docs/integrations/IntegrationsSlackPage.tsx +98 -0
- package/src/components/docs/integrations/IntegrationsSpecModelPage.tsx +59 -0
- package/src/components/docs/integrations/IntegrationsTwilioPage.tsx +2 -2
- package/src/components/docs/integrations/IntegrationsWhatsappMetaPage.tsx +90 -0
- package/src/components/docs/integrations/IntegrationsWhatsappTwilioPage.tsx +92 -0
- package/src/components/docs/integrations/index.ts +6 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/components/docs/integrations/IntegrationsWhatsappTwilioPage.tsx
|
|
3
|
+
import Link from "@contractspec/lib.ui-link";
|
|
4
|
+
import { ChevronRight } from "lucide-react";
|
|
5
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
6
|
+
function IntegrationsWhatsappTwilioPage() {
|
|
7
|
+
return /* @__PURE__ */ jsxDEV("div", {
|
|
8
|
+
className: "space-y-8",
|
|
9
|
+
children: [
|
|
10
|
+
/* @__PURE__ */ jsxDEV("div", {
|
|
11
|
+
className: "space-y-4",
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ jsxDEV("h1", {
|
|
14
|
+
className: "text-4xl font-bold",
|
|
15
|
+
children: "WhatsApp Twilio"
|
|
16
|
+
}, undefined, false, undefined, this),
|
|
17
|
+
/* @__PURE__ */ jsxDEV("p", {
|
|
18
|
+
className: "text-muted-foreground",
|
|
19
|
+
children: "Twilio WhatsApp support provides a durable fallback channel with signature verification and outbox-backed outbound dispatch."
|
|
20
|
+
}, undefined, false, undefined, this)
|
|
21
|
+
]
|
|
22
|
+
}, undefined, true, undefined, this),
|
|
23
|
+
/* @__PURE__ */ jsxDEV("div", {
|
|
24
|
+
className: "space-y-4",
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ jsxDEV("h2", {
|
|
27
|
+
className: "text-2xl font-bold",
|
|
28
|
+
children: "Required secrets and config"
|
|
29
|
+
}, undefined, false, undefined, this),
|
|
30
|
+
/* @__PURE__ */ jsxDEV("div", {
|
|
31
|
+
className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded-lg border p-4 font-mono text-sm",
|
|
32
|
+
children: /* @__PURE__ */ jsxDEV("pre", {
|
|
33
|
+
children: `// secret payload
|
|
34
|
+
{
|
|
35
|
+
"accountSid": "AC123",
|
|
36
|
+
"authToken": "..."
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// optional connection config
|
|
40
|
+
{
|
|
41
|
+
"fromNumber": "whatsapp:+15550002"
|
|
42
|
+
}`
|
|
43
|
+
}, undefined, false, undefined, this)
|
|
44
|
+
}, undefined, false, undefined, this)
|
|
45
|
+
]
|
|
46
|
+
}, undefined, true, undefined, this),
|
|
47
|
+
/* @__PURE__ */ jsxDEV("div", {
|
|
48
|
+
className: "space-y-4",
|
|
49
|
+
children: [
|
|
50
|
+
/* @__PURE__ */ jsxDEV("h2", {
|
|
51
|
+
className: "text-2xl font-bold",
|
|
52
|
+
children: "Webhook ingress"
|
|
53
|
+
}, undefined, false, undefined, this),
|
|
54
|
+
/* @__PURE__ */ jsxDEV("ul", {
|
|
55
|
+
className: "text-muted-foreground list-inside list-disc space-y-2",
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ jsxDEV("li", {
|
|
58
|
+
children: [
|
|
59
|
+
"Inbound Twilio form payloads are accepted on",
|
|
60
|
+
" ",
|
|
61
|
+
/* @__PURE__ */ jsxDEV("code", {
|
|
62
|
+
className: "bg-background/50 rounded px-2 py-1",
|
|
63
|
+
children: "/webhooks/whatsapp/twilio"
|
|
64
|
+
}, undefined, false, undefined, this),
|
|
65
|
+
"."
|
|
66
|
+
]
|
|
67
|
+
}, undefined, true, undefined, this),
|
|
68
|
+
/* @__PURE__ */ jsxDEV("li", {
|
|
69
|
+
children: [
|
|
70
|
+
"Signatures are validated with",
|
|
71
|
+
" ",
|
|
72
|
+
/* @__PURE__ */ jsxDEV("code", {
|
|
73
|
+
className: "bg-background/50 rounded px-2 py-1",
|
|
74
|
+
children: "x-twilio-signature"
|
|
75
|
+
}, undefined, false, undefined, this),
|
|
76
|
+
" ",
|
|
77
|
+
"and the configured auth token."
|
|
78
|
+
]
|
|
79
|
+
}, undefined, true, undefined, this),
|
|
80
|
+
/* @__PURE__ */ jsxDEV("li", {
|
|
81
|
+
children: [
|
|
82
|
+
"For deterministic verification, set the exact public webhook URL in",
|
|
83
|
+
" ",
|
|
84
|
+
/* @__PURE__ */ jsxDEV("code", {
|
|
85
|
+
className: "bg-background/50 rounded px-2 py-1",
|
|
86
|
+
children: "WHATSAPP_TWILIO_WEBHOOK_URL"
|
|
87
|
+
}, undefined, false, undefined, this),
|
|
88
|
+
"."
|
|
89
|
+
]
|
|
90
|
+
}, undefined, true, undefined, this)
|
|
91
|
+
]
|
|
92
|
+
}, undefined, true, undefined, this)
|
|
93
|
+
]
|
|
94
|
+
}, undefined, true, undefined, this),
|
|
95
|
+
/* @__PURE__ */ jsxDEV("div", {
|
|
96
|
+
className: "space-y-4",
|
|
97
|
+
children: [
|
|
98
|
+
/* @__PURE__ */ jsxDEV("h2", {
|
|
99
|
+
className: "text-2xl font-bold",
|
|
100
|
+
children: "Workspace mapping"
|
|
101
|
+
}, undefined, false, undefined, this),
|
|
102
|
+
/* @__PURE__ */ jsxDEV("div", {
|
|
103
|
+
className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded-lg border p-4 font-mono text-sm",
|
|
104
|
+
children: /* @__PURE__ */ jsxDEV("pre", {
|
|
105
|
+
children: `CHANNEL_WORKSPACE_MAP_WHATSAPP_TWILIO={"AC123":"workspace-acme"}`
|
|
106
|
+
}, undefined, false, undefined, this)
|
|
107
|
+
}, undefined, false, undefined, this)
|
|
108
|
+
]
|
|
109
|
+
}, undefined, true, undefined, this),
|
|
110
|
+
/* @__PURE__ */ jsxDEV("div", {
|
|
111
|
+
className: "space-y-4",
|
|
112
|
+
children: [
|
|
113
|
+
/* @__PURE__ */ jsxDEV("h2", {
|
|
114
|
+
className: "text-2xl font-bold",
|
|
115
|
+
children: "Best practices"
|
|
116
|
+
}, undefined, false, undefined, this),
|
|
117
|
+
/* @__PURE__ */ jsxDEV("ul", {
|
|
118
|
+
className: "text-muted-foreground list-inside list-disc space-y-2",
|
|
119
|
+
children: [
|
|
120
|
+
/* @__PURE__ */ jsxDEV("li", {
|
|
121
|
+
children: "Use Twilio as fallback when Meta WhatsApp is your primary route."
|
|
122
|
+
}, undefined, false, undefined, this),
|
|
123
|
+
/* @__PURE__ */ jsxDEV("li", {
|
|
124
|
+
children: "Keep account SID mapping explicit to avoid tenant misrouting."
|
|
125
|
+
}, undefined, false, undefined, this),
|
|
126
|
+
/* @__PURE__ */ jsxDEV("li", {
|
|
127
|
+
children: [
|
|
128
|
+
"Protect internal dispatch endpoints with",
|
|
129
|
+
/* @__PURE__ */ jsxDEV("code", {
|
|
130
|
+
className: "bg-background/50 ml-1 rounded px-2 py-1",
|
|
131
|
+
children: "CHANNEL_DISPATCH_TOKEN"
|
|
132
|
+
}, undefined, false, undefined, this),
|
|
133
|
+
"."
|
|
134
|
+
]
|
|
135
|
+
}, undefined, true, undefined, this)
|
|
136
|
+
]
|
|
137
|
+
}, undefined, true, undefined, this)
|
|
138
|
+
]
|
|
139
|
+
}, undefined, true, undefined, this),
|
|
140
|
+
/* @__PURE__ */ jsxDEV("div", {
|
|
141
|
+
className: "flex items-center gap-4 pt-4",
|
|
142
|
+
children: [
|
|
143
|
+
/* @__PURE__ */ jsxDEV(Link, {
|
|
144
|
+
href: "/docs/integrations/whatsapp-meta",
|
|
145
|
+
className: "btn-ghost",
|
|
146
|
+
children: "Previous: WhatsApp Meta"
|
|
147
|
+
}, undefined, false, undefined, this),
|
|
148
|
+
/* @__PURE__ */ jsxDEV(Link, {
|
|
149
|
+
href: "/docs/integrations/health-routing",
|
|
150
|
+
className: "btn-primary",
|
|
151
|
+
children: [
|
|
152
|
+
"Next: Health Routing ",
|
|
153
|
+
/* @__PURE__ */ jsxDEV(ChevronRight, {
|
|
154
|
+
size: 16
|
|
155
|
+
}, undefined, false, undefined, this)
|
|
156
|
+
]
|
|
157
|
+
}, undefined, true, undefined, this)
|
|
158
|
+
]
|
|
159
|
+
}, undefined, true, undefined, this)
|
|
160
|
+
]
|
|
161
|
+
}, undefined, true, undefined, this);
|
|
162
|
+
}
|
|
163
|
+
export {
|
|
164
|
+
IntegrationsWhatsappTwilioPage
|
|
165
|
+
};
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
export { IntegrationsOverviewPage } from './IntegrationsOverviewPage';
|
|
2
2
|
export { IntegrationsCircuitBreakersPage } from './IntegrationsCircuitBreakersPage';
|
|
3
3
|
export { IntegrationsElevenLabsPage } from './IntegrationsElevenLabsPage';
|
|
4
|
+
export { IntegrationsGithubPage } from './IntegrationsGithubPage';
|
|
4
5
|
export { IntegrationsGmailPage } from './IntegrationsGmailPage';
|
|
5
6
|
export { IntegrationsGoogleCalendarPage } from './IntegrationsGoogleCalendarPage';
|
|
7
|
+
export { IntegrationsHealthRoutingPage } from './IntegrationsHealthRoutingPage';
|
|
8
|
+
export { IntegrationsMistralPage } from './IntegrationsMistralPage';
|
|
6
9
|
export { IntegrationsOpenAIPage } from './IntegrationsOpenAIPage';
|
|
7
10
|
export { IntegrationsPostmarkPage } from './IntegrationsPostmarkPage';
|
|
8
11
|
export { IntegrationsPowensPage } from './IntegrationsPowensPage';
|
|
9
12
|
export { IntegrationsQdrantPage } from './IntegrationsQdrantPage';
|
|
10
13
|
export { IntegrationsResendPage } from './IntegrationsResendPage';
|
|
11
14
|
export { IntegrationsS3Page } from './IntegrationsS3Page';
|
|
15
|
+
export { IntegrationsSlackPage } from './IntegrationsSlackPage';
|
|
12
16
|
export { IntegrationsSpecModelPage } from './IntegrationsSpecModelPage';
|
|
13
17
|
export { IntegrationsStripePage } from './IntegrationsStripePage';
|
|
14
18
|
export { IntegrationsTwilioPage } from './IntegrationsTwilioPage';
|
|
19
|
+
export { IntegrationsWhatsappMetaPage } from './IntegrationsWhatsappMetaPage';
|
|
20
|
+
export { IntegrationsWhatsappTwilioPage } from './IntegrationsWhatsappTwilioPage';
|