@contractspec/bundle.library 2.9.0 → 3.0.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.
Files changed (86) hide show
  1. package/.turbo/turbo-build.log +129 -115
  2. package/CHANGELOG.md +53 -0
  3. package/dist/components/docs/DocsIndexPage.js +1 -1
  4. package/dist/components/docs/architecture/ArchitectureControlPlanePage.d.ts +1 -0
  5. package/dist/components/docs/architecture/ArchitectureControlPlanePage.js +204 -0
  6. package/dist/components/docs/architecture/ArchitectureOverviewPage.js +17 -1
  7. package/dist/components/docs/architecture/index.d.ts +1 -0
  8. package/dist/components/docs/architecture/index.js +507 -289
  9. package/dist/components/docs/ecosystem/IntegrationsPage.js +6 -3
  10. package/dist/components/docs/ecosystem/PluginsPage.js +98 -98
  11. package/dist/components/docs/ecosystem/RegistryPage.js +39 -42
  12. package/dist/components/docs/ecosystem/TemplatesPage.js +26 -21
  13. package/dist/components/docs/ecosystem/ecosystem.docblocks.js +10 -10
  14. package/dist/components/docs/ecosystem/index.js +179 -174
  15. package/dist/components/docs/index.js +6795 -5376
  16. package/dist/components/docs/integrations/IntegrationsElevenLabsPage.js +2 -2
  17. package/dist/components/docs/integrations/IntegrationsGithubPage.d.ts +1 -0
  18. package/dist/components/docs/integrations/IntegrationsGithubPage.js +155 -0
  19. package/dist/components/docs/integrations/IntegrationsHealthRoutingPage.d.ts +1 -0
  20. package/dist/components/docs/integrations/IntegrationsHealthRoutingPage.js +168 -0
  21. package/dist/components/docs/integrations/IntegrationsMistralPage.d.ts +1 -0
  22. package/dist/components/docs/integrations/IntegrationsMistralPage.js +203 -0
  23. package/dist/components/docs/integrations/IntegrationsOpenAIPage.js +2 -2
  24. package/dist/components/docs/integrations/IntegrationsOverviewPage.js +136 -9
  25. package/dist/components/docs/integrations/IntegrationsSlackPage.d.ts +1 -0
  26. package/dist/components/docs/integrations/IntegrationsSlackPage.js +161 -0
  27. package/dist/components/docs/integrations/IntegrationsSpecModelPage.js +72 -0
  28. package/dist/components/docs/integrations/IntegrationsTwilioPage.js +2 -2
  29. package/dist/components/docs/integrations/IntegrationsWhatsappMetaPage.d.ts +1 -0
  30. package/dist/components/docs/integrations/IntegrationsWhatsappMetaPage.js +157 -0
  31. package/dist/components/docs/integrations/IntegrationsWhatsappTwilioPage.d.ts +1 -0
  32. package/dist/components/docs/integrations/IntegrationsWhatsappTwilioPage.js +165 -0
  33. package/dist/components/docs/integrations/index.d.ts +6 -0
  34. package/dist/components/docs/integrations/index.js +1688 -492
  35. package/dist/index.js +8016 -6597
  36. package/dist/node/components/docs/DocsIndexPage.js +1 -1
  37. package/dist/node/components/docs/architecture/ArchitectureControlPlanePage.js +203 -0
  38. package/dist/node/components/docs/architecture/ArchitectureOverviewPage.js +17 -1
  39. package/dist/node/components/docs/architecture/index.js +507 -289
  40. package/dist/node/components/docs/ecosystem/IntegrationsPage.js +6 -3
  41. package/dist/node/components/docs/ecosystem/PluginsPage.js +98 -98
  42. package/dist/node/components/docs/ecosystem/RegistryPage.js +39 -42
  43. package/dist/node/components/docs/ecosystem/TemplatesPage.js +26 -21
  44. package/dist/node/components/docs/ecosystem/ecosystem.docblocks.js +10 -10
  45. package/dist/node/components/docs/ecosystem/index.js +179 -174
  46. package/dist/node/components/docs/index.js +6795 -5376
  47. package/dist/node/components/docs/integrations/IntegrationsElevenLabsPage.js +2 -2
  48. package/dist/node/components/docs/integrations/IntegrationsGithubPage.js +154 -0
  49. package/dist/node/components/docs/integrations/IntegrationsHealthRoutingPage.js +167 -0
  50. package/dist/node/components/docs/integrations/IntegrationsMistralPage.js +202 -0
  51. package/dist/node/components/docs/integrations/IntegrationsOpenAIPage.js +2 -2
  52. package/dist/node/components/docs/integrations/IntegrationsOverviewPage.js +136 -9
  53. package/dist/node/components/docs/integrations/IntegrationsSlackPage.js +160 -0
  54. package/dist/node/components/docs/integrations/IntegrationsSpecModelPage.js +72 -0
  55. package/dist/node/components/docs/integrations/IntegrationsTwilioPage.js +2 -2
  56. package/dist/node/components/docs/integrations/IntegrationsWhatsappMetaPage.js +156 -0
  57. package/dist/node/components/docs/integrations/IntegrationsWhatsappTwilioPage.js +164 -0
  58. package/dist/node/components/docs/integrations/index.js +1688 -492
  59. package/dist/node/index.js +8016 -6597
  60. package/package.json +104 -20
  61. package/src/components/docs/DocsIndexPage.tsx +2 -1
  62. package/src/components/docs/architecture/ArchitectureControlPlanePage.tsx +136 -0
  63. package/src/components/docs/architecture/ArchitectureOverviewPage.tsx +13 -1
  64. package/src/components/docs/architecture/index.ts +1 -0
  65. package/src/components/docs/ecosystem/IntegrationsPage.tsx +4 -3
  66. package/src/components/docs/ecosystem/PluginsPage.tsx +68 -87
  67. package/src/components/docs/ecosystem/RegistryPage.tsx +35 -43
  68. package/src/components/docs/ecosystem/TemplatesPage.tsx +28 -21
  69. package/src/components/docs/ecosystem/ecosystem.docblocks.ts +12 -10
  70. package/src/components/docs/generated/docs-index._common.json +240 -0
  71. package/src/components/docs/generated/docs-index.health.json +98 -0
  72. package/src/components/docs/generated/docs-index.manifest.json +14 -4
  73. package/src/components/docs/generated/docs-index.platform-integrations.json +81 -1
  74. package/src/components/docs/generated/docs-index.video-api-showcase.json +26 -0
  75. package/src/components/docs/integrations/IntegrationsElevenLabsPage.tsx +2 -2
  76. package/src/components/docs/integrations/IntegrationsGithubPage.tsx +90 -0
  77. package/src/components/docs/integrations/IntegrationsHealthRoutingPage.tsx +112 -0
  78. package/src/components/docs/integrations/IntegrationsMistralPage.tsx +133 -0
  79. package/src/components/docs/integrations/IntegrationsOpenAIPage.tsx +2 -2
  80. package/src/components/docs/integrations/IntegrationsOverviewPage.tsx +108 -9
  81. package/src/components/docs/integrations/IntegrationsSlackPage.tsx +98 -0
  82. package/src/components/docs/integrations/IntegrationsSpecModelPage.tsx +59 -0
  83. package/src/components/docs/integrations/IntegrationsTwilioPage.tsx +2 -2
  84. package/src/components/docs/integrations/IntegrationsWhatsappMetaPage.tsx +90 -0
  85. package/src/components/docs/integrations/IntegrationsWhatsappTwilioPage.tsx +92 -0
  86. package/src/components/docs/integrations/index.ts +6 -0
@@ -100,9 +100,9 @@ outputs:
100
100
  className: "flex items-center gap-4 pt-4",
101
101
  children: [
102
102
  /* @__PURE__ */ jsxDEV(Link, {
103
- href: "/docs/integrations/openai",
103
+ href: "/docs/integrations/mistral",
104
104
  className: "btn-ghost",
105
- children: "Previous: OpenAI"
105
+ children: "Previous: Mistral"
106
106
  }, undefined, false, undefined, this),
107
107
  /* @__PURE__ */ jsxDEV(Link, {
108
108
  href: "/docs/integrations/qdrant",
@@ -0,0 +1 @@
1
+ export declare function IntegrationsGithubPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,155 @@
1
+ // @bun
2
+ // src/components/docs/integrations/IntegrationsGithubPage.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 IntegrationsGithubPage() {
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: "GitHub Messaging"
16
+ }, undefined, false, undefined, this),
17
+ /* @__PURE__ */ jsxDEV("p", {
18
+ className: "text-muted-foreground",
19
+ children: "Use GitHub issue and pull request comments as an AI-native messaging channel with webhook verification, policy checks, and reliable 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
+ "token": "ghp_...",
36
+ "webhookSecret": "..."
37
+ }
38
+
39
+ // optional connection config
40
+ {
41
+ "defaultOwner": "lssm-tech",
42
+ "defaultRepo": "contractspec",
43
+ "apiBaseUrl": "https://api.github.com"
44
+ }`
45
+ }, undefined, false, undefined, this)
46
+ }, undefined, false, undefined, this)
47
+ ]
48
+ }, undefined, true, undefined, this),
49
+ /* @__PURE__ */ jsxDEV("div", {
50
+ className: "space-y-4",
51
+ children: [
52
+ /* @__PURE__ */ jsxDEV("h2", {
53
+ className: "text-2xl font-bold",
54
+ children: "Webhook ingress"
55
+ }, undefined, false, undefined, this),
56
+ /* @__PURE__ */ jsxDEV("ul", {
57
+ className: "text-muted-foreground list-inside list-disc space-y-2",
58
+ children: [
59
+ /* @__PURE__ */ jsxDEV("li", {
60
+ children: [
61
+ "Inbound GitHub events are accepted on",
62
+ " ",
63
+ /* @__PURE__ */ jsxDEV("code", {
64
+ className: "bg-background/50 rounded px-2 py-1",
65
+ children: "/webhooks/github/events"
66
+ }, undefined, false, undefined, this),
67
+ "."
68
+ ]
69
+ }, undefined, true, undefined, this),
70
+ /* @__PURE__ */ jsxDEV("li", {
71
+ children: [
72
+ "Signatures are checked using",
73
+ " ",
74
+ /* @__PURE__ */ jsxDEV("code", {
75
+ className: "bg-background/50 rounded px-2 py-1",
76
+ children: "x-hub-signature-256"
77
+ }, undefined, false, undefined, this),
78
+ " ",
79
+ "and the configured webhook secret."
80
+ ]
81
+ }, undefined, true, undefined, this),
82
+ /* @__PURE__ */ jsxDEV("li", {
83
+ children: "Current normalization focuses on issue comment workflows and durable comment dispatch."
84
+ }, undefined, false, undefined, this)
85
+ ]
86
+ }, undefined, true, undefined, this)
87
+ ]
88
+ }, undefined, true, undefined, this),
89
+ /* @__PURE__ */ jsxDEV("div", {
90
+ className: "space-y-4",
91
+ children: [
92
+ /* @__PURE__ */ jsxDEV("h2", {
93
+ className: "text-2xl font-bold",
94
+ children: "Workspace mapping"
95
+ }, undefined, false, undefined, this),
96
+ /* @__PURE__ */ jsxDEV("div", {
97
+ className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded-lg border p-4 font-mono text-sm",
98
+ children: /* @__PURE__ */ jsxDEV("pre", {
99
+ children: `CHANNEL_WORKSPACE_MAP_GITHUB={"lssm-tech/contractspec":"workspace-acme"}
100
+
101
+ # Optional dev fallback (off by default)
102
+ CHANNEL_ALLOW_UNMAPPED_WORKSPACE=0`
103
+ }, undefined, false, undefined, this)
104
+ }, undefined, false, undefined, this)
105
+ ]
106
+ }, undefined, true, undefined, this),
107
+ /* @__PURE__ */ jsxDEV("div", {
108
+ className: "space-y-4",
109
+ children: [
110
+ /* @__PURE__ */ jsxDEV("h2", {
111
+ className: "text-2xl font-bold",
112
+ children: "Best practices"
113
+ }, undefined, false, undefined, this),
114
+ /* @__PURE__ */ jsxDEV("ul", {
115
+ className: "text-muted-foreground list-inside list-disc space-y-2",
116
+ children: [
117
+ /* @__PURE__ */ jsxDEV("li", {
118
+ children: "Use a least-privileged token scoped for comment operations."
119
+ }, undefined, false, undefined, this),
120
+ /* @__PURE__ */ jsxDEV("li", {
121
+ children: "Route repositories explicitly with workspace maps in multi-tenant environments."
122
+ }, undefined, false, undefined, this),
123
+ /* @__PURE__ */ jsxDEV("li", {
124
+ children: "Keep dispatch endpoints protected with token or bearer auth."
125
+ }, undefined, false, undefined, this)
126
+ ]
127
+ }, undefined, true, undefined, this)
128
+ ]
129
+ }, undefined, true, undefined, this),
130
+ /* @__PURE__ */ jsxDEV("div", {
131
+ className: "flex items-center gap-4 pt-4",
132
+ children: [
133
+ /* @__PURE__ */ jsxDEV(Link, {
134
+ href: "/docs/integrations/slack",
135
+ className: "btn-ghost",
136
+ children: "Previous: Slack Messaging"
137
+ }, undefined, false, undefined, this),
138
+ /* @__PURE__ */ jsxDEV(Link, {
139
+ href: "/docs/integrations/whatsapp-meta",
140
+ className: "btn-primary",
141
+ children: [
142
+ "Next: WhatsApp Meta ",
143
+ /* @__PURE__ */ jsxDEV(ChevronRight, {
144
+ size: 16
145
+ }, undefined, false, undefined, this)
146
+ ]
147
+ }, undefined, true, undefined, this)
148
+ ]
149
+ }, undefined, true, undefined, this)
150
+ ]
151
+ }, undefined, true, undefined, this);
152
+ }
153
+ export {
154
+ IntegrationsGithubPage
155
+ };
@@ -0,0 +1 @@
1
+ export declare function IntegrationsHealthRoutingPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,168 @@
1
+ // @bun
2
+ // src/components/docs/integrations/IntegrationsHealthRoutingPage.tsx
3
+ import Link from "@contractspec/lib.ui-link";
4
+ import { jsxDEV } from "react/jsx-dev-runtime";
5
+ function IntegrationsHealthRoutingPage() {
6
+ return /* @__PURE__ */ jsxDEV("div", {
7
+ className: "space-y-8",
8
+ children: [
9
+ /* @__PURE__ */ jsxDEV("div", {
10
+ className: "space-y-4",
11
+ children: [
12
+ /* @__PURE__ */ jsxDEV("h1", {
13
+ className: "text-4xl font-bold",
14
+ children: "Health Routing Strategy"
15
+ }, undefined, false, undefined, this),
16
+ /* @__PURE__ */ jsxDEV("p", {
17
+ className: "text-muted-foreground",
18
+ children: "Health integrations resolve providers through deterministic transport strategy order with explicit capability gating and unofficial-route controls."
19
+ }, undefined, false, undefined, this)
20
+ ]
21
+ }, undefined, true, undefined, this),
22
+ /* @__PURE__ */ jsxDEV("div", {
23
+ className: "space-y-4",
24
+ children: [
25
+ /* @__PURE__ */ jsxDEV("h2", {
26
+ className: "text-2xl font-bold",
27
+ children: "Connection config fields"
28
+ }, undefined, false, undefined, this),
29
+ /* @__PURE__ */ jsxDEV("div", {
30
+ className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded-lg border p-4 font-mono text-sm",
31
+ children: /* @__PURE__ */ jsxDEV("pre", {
32
+ children: `{
33
+ "defaultTransport": "official-api",
34
+ "strategyOrder": [
35
+ "official-api",
36
+ "official-mcp",
37
+ "aggregator-api",
38
+ "aggregator-mcp",
39
+ "unofficial"
40
+ ],
41
+ "allowUnofficial": false,
42
+ "unofficialAllowList": ["health.peloton"],
43
+ "apiBaseUrl": "https://api.provider.example",
44
+ "mcpUrl": "https://mcp.provider.example",
45
+ "oauthTokenUrl": "https://api.provider.example/oauth/token"
46
+ }`
47
+ }, undefined, false, undefined, this)
48
+ }, undefined, false, undefined, this)
49
+ ]
50
+ }, undefined, true, undefined, this),
51
+ /* @__PURE__ */ jsxDEV("div", {
52
+ className: "space-y-4",
53
+ children: [
54
+ /* @__PURE__ */ jsxDEV("h2", {
55
+ className: "text-2xl font-bold",
56
+ children: "Secret payload fields"
57
+ }, undefined, false, undefined, this),
58
+ /* @__PURE__ */ jsxDEV("div", {
59
+ className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded-lg border p-4 font-mono text-sm",
60
+ children: /* @__PURE__ */ jsxDEV("pre", {
61
+ children: `{
62
+ "apiKey": "...",
63
+ "accessToken": "...",
64
+ "refreshToken": "...",
65
+ "clientId": "...",
66
+ "clientSecret": "...",
67
+ "tokenExpiresAt": "2026-02-01T00:00:00.000Z",
68
+ "mcpAccessToken": "...",
69
+ "webhookSecret": "..."
70
+ }`
71
+ }, undefined, false, undefined, this)
72
+ }, undefined, false, undefined, this)
73
+ ]
74
+ }, undefined, true, undefined, this),
75
+ /* @__PURE__ */ jsxDEV("div", {
76
+ className: "space-y-4",
77
+ children: [
78
+ /* @__PURE__ */ jsxDEV("h2", {
79
+ className: "text-2xl font-bold",
80
+ children: "Routing behavior"
81
+ }, undefined, false, undefined, this),
82
+ /* @__PURE__ */ jsxDEV("ul", {
83
+ className: "text-muted-foreground list-inside list-disc space-y-2",
84
+ children: [
85
+ /* @__PURE__ */ jsxDEV("li", {
86
+ children: "Unsupported strategies are skipped per provider capability matrix."
87
+ }, undefined, false, undefined, this),
88
+ /* @__PURE__ */ jsxDEV("li", {
89
+ children: "Missing credentials fail closed and fall through only when a later strategy is valid."
90
+ }, undefined, false, undefined, this),
91
+ /* @__PURE__ */ jsxDEV("li", {
92
+ children: [
93
+ "Unofficial routes are disabled unless",
94
+ /* @__PURE__ */ jsxDEV("code", {
95
+ className: "bg-background/50 ml-1 rounded px-2 py-1",
96
+ children: "allowUnofficial"
97
+ }, undefined, false, undefined, this),
98
+ "is true."
99
+ ]
100
+ }, undefined, true, undefined, this),
101
+ /* @__PURE__ */ jsxDEV("li", {
102
+ children: [
103
+ "When",
104
+ /* @__PURE__ */ jsxDEV("code", {
105
+ className: "bg-background/50 ml-1 rounded px-2 py-1",
106
+ children: "unofficialAllowList"
107
+ }, undefined, false, undefined, this),
108
+ "is set, only listed provider keys can route unofficially."
109
+ ]
110
+ }, undefined, true, undefined, this),
111
+ /* @__PURE__ */ jsxDEV("li", {
112
+ children: [
113
+ "OAuth refresh uses",
114
+ /* @__PURE__ */ jsxDEV("code", {
115
+ className: "bg-background/50 ml-1 rounded px-2 py-1",
116
+ children: "oauthTokenUrl"
117
+ }, undefined, false, undefined, this),
118
+ "with refresh/client credentials when APIs return 401."
119
+ ]
120
+ }, undefined, true, undefined, this)
121
+ ]
122
+ }, undefined, true, undefined, this)
123
+ ]
124
+ }, undefined, true, undefined, this),
125
+ /* @__PURE__ */ jsxDEV("div", {
126
+ className: "space-y-4",
127
+ children: [
128
+ /* @__PURE__ */ jsxDEV("h2", {
129
+ className: "text-2xl font-bold",
130
+ children: "Provider guidance"
131
+ }, undefined, false, undefined, this),
132
+ /* @__PURE__ */ jsxDEV("ul", {
133
+ className: "text-muted-foreground list-inside list-disc space-y-2",
134
+ children: [
135
+ /* @__PURE__ */ jsxDEV("li", {
136
+ children: "Use official APIs when available (Whoop, Oura, Strava, Fitbit)."
137
+ }, undefined, false, undefined, this),
138
+ /* @__PURE__ */ jsxDEV("li", {
139
+ children: "Use aggregator routing for providers without stable official APIs (Garmin, MyFitnessPal, Eight Sleep, Peloton)."
140
+ }, undefined, false, undefined, this),
141
+ /* @__PURE__ */ jsxDEV("li", {
142
+ children: "Keep unofficial automation opt-in and auditable for production."
143
+ }, undefined, false, undefined, this)
144
+ ]
145
+ }, undefined, true, undefined, this)
146
+ ]
147
+ }, undefined, true, undefined, this),
148
+ /* @__PURE__ */ jsxDEV("div", {
149
+ className: "flex items-center gap-4 pt-4",
150
+ children: [
151
+ /* @__PURE__ */ jsxDEV(Link, {
152
+ href: "/docs/integrations/whatsapp-twilio",
153
+ className: "btn-ghost",
154
+ children: "Previous: WhatsApp Twilio"
155
+ }, undefined, false, undefined, this),
156
+ /* @__PURE__ */ jsxDEV(Link, {
157
+ href: "/docs/integrations",
158
+ className: "btn-primary",
159
+ children: "Back to Integrations"
160
+ }, undefined, false, undefined, this)
161
+ ]
162
+ }, undefined, true, undefined, this)
163
+ ]
164
+ }, undefined, true, undefined, this);
165
+ }
166
+ export {
167
+ IntegrationsHealthRoutingPage
168
+ };
@@ -0,0 +1 @@
1
+ export declare function IntegrationsMistralPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,203 @@
1
+ // @bun
2
+ // src/components/docs/integrations/IntegrationsMistralPage.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 IntegrationsMistralPage() {
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: "Mistral"
16
+ }, undefined, false, undefined, this),
17
+ /* @__PURE__ */ jsxDEV("p", {
18
+ className: "text-muted-foreground",
19
+ children: "Integrate Mistral models for chat, reasoning, embeddings, speech-to-text, and conversational voice workflows. ContractSpec ships first-class Mistral support across contracts, provider runtime wiring, and CLI provider selection."
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: "Setup"
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: `# .env
34
+ MISTRAL_API_KEY=...`
35
+ }, undefined, false, undefined, this)
36
+ }, undefined, false, undefined, this)
37
+ ]
38
+ }, undefined, true, undefined, this),
39
+ /* @__PURE__ */ jsxDEV("div", {
40
+ className: "space-y-4",
41
+ children: [
42
+ /* @__PURE__ */ jsxDEV("h2", {
43
+ className: "text-2xl font-bold",
44
+ children: "Chat and reasoning"
45
+ }, undefined, false, undefined, this),
46
+ /* @__PURE__ */ jsxDEV("div", {
47
+ className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded-lg border p-4 font-mono text-sm",
48
+ children: /* @__PURE__ */ jsxDEV("pre", {
49
+ children: `capabilityId: mistral-chat
50
+ provider:
51
+ type: mistral
52
+ operation: chatCompletion
53
+
54
+ inputs:
55
+ messages:
56
+ type: array
57
+ model:
58
+ type: string
59
+ default: "mistral-large-latest"
60
+ temperature:
61
+ type: number
62
+ optional: true
63
+
64
+ outputs:
65
+ content:
66
+ type: string
67
+ usage:
68
+ type: object`
69
+ }, undefined, false, undefined, this)
70
+ }, undefined, false, undefined, this)
71
+ ]
72
+ }, undefined, true, undefined, this),
73
+ /* @__PURE__ */ jsxDEV("div", {
74
+ className: "space-y-4",
75
+ children: [
76
+ /* @__PURE__ */ jsxDEV("h2", {
77
+ className: "text-2xl font-bold",
78
+ children: "Embeddings"
79
+ }, undefined, false, undefined, this),
80
+ /* @__PURE__ */ jsxDEV("div", {
81
+ className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded-lg border p-4 font-mono text-sm",
82
+ children: /* @__PURE__ */ jsxDEV("pre", {
83
+ children: `capabilityId: mistral-embeddings
84
+ provider:
85
+ type: mistral
86
+ operation: createEmbedding
87
+
88
+ inputs:
89
+ text:
90
+ type: string
91
+ model:
92
+ type: string
93
+ default: "mistral-embed"
94
+
95
+ outputs:
96
+ embedding:
97
+ type: array
98
+ items:
99
+ type: number`
100
+ }, undefined, false, undefined, this)
101
+ }, undefined, false, undefined, this)
102
+ ]
103
+ }, undefined, true, undefined, this),
104
+ /* @__PURE__ */ jsxDEV("div", {
105
+ className: "space-y-4",
106
+ children: [
107
+ /* @__PURE__ */ jsxDEV("h2", {
108
+ className: "text-2xl font-bold",
109
+ children: "Speech-to-Text (Voxtral)"
110
+ }, undefined, false, undefined, this),
111
+ /* @__PURE__ */ jsxDEV("div", {
112
+ className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded-lg border p-4 font-mono text-sm",
113
+ children: /* @__PURE__ */ jsxDEV("pre", {
114
+ children: `capabilityId: mistral-stt
115
+ provider:
116
+ type: mistral
117
+ operation: transcribe
118
+
119
+ inputs:
120
+ audio:
121
+ type: bytes
122
+ format:
123
+ type: string
124
+ language:
125
+ type: string
126
+ optional: true
127
+
128
+ outputs:
129
+ text:
130
+ type: string
131
+ segments:
132
+ type: array
133
+ language:
134
+ type: string`
135
+ }, undefined, false, undefined, this)
136
+ }, undefined, false, undefined, this)
137
+ ]
138
+ }, undefined, true, undefined, this),
139
+ /* @__PURE__ */ jsxDEV("div", {
140
+ className: "space-y-4",
141
+ children: [
142
+ /* @__PURE__ */ jsxDEV("h2", {
143
+ className: "text-2xl font-bold",
144
+ children: "Conversational voice sessions"
145
+ }, undefined, false, undefined, this),
146
+ /* @__PURE__ */ jsxDEV("p", {
147
+ className: "text-muted-foreground",
148
+ children: "Use the conversational provider for session-based realtime voice flows (turn handling, events, and interruption-safe streaming)."
149
+ }, undefined, false, undefined, this)
150
+ ]
151
+ }, undefined, true, undefined, this),
152
+ /* @__PURE__ */ jsxDEV("div", {
153
+ className: "space-y-4",
154
+ children: [
155
+ /* @__PURE__ */ jsxDEV("h2", {
156
+ className: "text-2xl font-bold",
157
+ children: "Best practices"
158
+ }, undefined, false, undefined, this),
159
+ /* @__PURE__ */ jsxDEV("ul", {
160
+ className: "text-muted-foreground list-inside list-disc space-y-2",
161
+ children: [
162
+ /* @__PURE__ */ jsxDEV("li", {
163
+ children: "Choose model families by workload: coding, reasoning, or speech"
164
+ }, undefined, false, undefined, this),
165
+ /* @__PURE__ */ jsxDEV("li", {
166
+ children: "Persist session IDs for conversational continuity across turns"
167
+ }, undefined, false, undefined, this),
168
+ /* @__PURE__ */ jsxDEV("li", {
169
+ children: "Capture token and latency telemetry for provider-level tuning"
170
+ }, undefined, false, undefined, this),
171
+ /* @__PURE__ */ jsxDEV("li", {
172
+ children: "Set explicit fallbacks for network and rate-limit failures"
173
+ }, undefined, false, undefined, this)
174
+ ]
175
+ }, undefined, true, undefined, this)
176
+ ]
177
+ }, undefined, true, undefined, this),
178
+ /* @__PURE__ */ jsxDEV("div", {
179
+ className: "flex items-center gap-4 pt-4",
180
+ children: [
181
+ /* @__PURE__ */ jsxDEV(Link, {
182
+ href: "/docs/integrations/openai",
183
+ className: "btn-ghost",
184
+ children: "Previous: OpenAI"
185
+ }, undefined, false, undefined, this),
186
+ /* @__PURE__ */ jsxDEV(Link, {
187
+ href: "/docs/integrations/elevenlabs",
188
+ className: "btn-primary",
189
+ children: [
190
+ "Next: ElevenLabs ",
191
+ /* @__PURE__ */ jsxDEV(ChevronRight, {
192
+ size: 16
193
+ }, undefined, false, undefined, this)
194
+ ]
195
+ }, undefined, true, undefined, this)
196
+ ]
197
+ }, undefined, true, undefined, this)
198
+ ]
199
+ }, undefined, true, undefined, this);
200
+ }
201
+ export {
202
+ IntegrationsMistralPage
203
+ };
@@ -177,10 +177,10 @@ outputs:
177
177
  children: "Previous: Google Calendar"
178
178
  }, undefined, false, undefined, this),
179
179
  /* @__PURE__ */ jsxDEV(Link, {
180
- href: "/docs/integrations/elevenlabs",
180
+ href: "/docs/integrations/mistral",
181
181
  className: "btn-primary",
182
182
  children: [
183
- "Next: ElevenLabs ",
183
+ "Next: Mistral ",
184
184
  /* @__PURE__ */ jsxDEV(ChevronRight, {
185
185
  size: 16
186
186
  }, undefined, false, undefined, this)