@contractspec/bundle.library 2.9.1 → 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 +38 -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
@@ -207,7 +207,7 @@ bun contractspec build src/contracts/mySpec.ts`
207
207
  },
208
208
  {
209
209
  title: "Ecosystem",
210
- description: "Plugin API, templates, and integrations",
210
+ description: "Cursor marketplace plugins, templates, manifest, and integrations",
211
211
  href: "/docs/ecosystem/plugins"
212
212
  },
213
213
  {
@@ -0,0 +1,203 @@
1
+ // src/components/docs/architecture/ArchitectureControlPlanePage.tsx
2
+ import { CodeBlock } from "@contractspec/lib.design-system";
3
+ import Link from "@contractspec/lib.ui-link";
4
+ import { ChevronRight } from "lucide-react";
5
+ import { jsxDEV } from "react/jsx-dev-runtime";
6
+ function ArchitectureControlPlanePage() {
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: "Control Plane Runtime"
16
+ }, undefined, false, undefined, this),
17
+ /* @__PURE__ */ jsxDEV("p", {
18
+ className: "text-muted-foreground",
19
+ children: "The control plane is the governance layer for agentic execution. It turns incoming intent into deterministic plans, enforces risk policy before side effects, and records replayable traces for audits."
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: "Canonical execution loop"
29
+ }, undefined, false, undefined, this),
30
+ /* @__PURE__ */ jsxDEV("ol", {
31
+ className: "text-muted-foreground list-inside list-decimal space-y-2",
32
+ children: [
33
+ /* @__PURE__ */ jsxDEV("li", {
34
+ children: "Accept intent and create execution identity + trace context."
35
+ }, undefined, false, undefined, this),
36
+ /* @__PURE__ */ jsxDEV("li", {
37
+ children: "Compile intent into a typed, deterministic plan DAG."
38
+ }, undefined, false, undefined, this),
39
+ /* @__PURE__ */ jsxDEV("li", {
40
+ children: "Verify plan against policy and risk rules."
41
+ }, undefined, false, undefined, this),
42
+ /* @__PURE__ */ jsxDEV("li", {
43
+ children: "Route into autonomous or assist mode based on verdict."
44
+ }, undefined, false, undefined, this),
45
+ /* @__PURE__ */ jsxDEV("li", {
46
+ children: "Execute steps with idempotent keys and explicit stage events."
47
+ }, undefined, false, undefined, this),
48
+ /* @__PURE__ */ jsxDEV("li", {
49
+ children: "Persist outcomes for replay, audits, and operator visibility."
50
+ }, undefined, false, undefined, this)
51
+ ]
52
+ }, undefined, true, undefined, this)
53
+ ]
54
+ }, undefined, true, undefined, this),
55
+ /* @__PURE__ */ jsxDEV("div", {
56
+ className: "space-y-4",
57
+ children: [
58
+ /* @__PURE__ */ jsxDEV("h2", {
59
+ className: "text-2xl font-bold",
60
+ children: "Contract surfaces (v1 baseline)"
61
+ }, undefined, false, undefined, this),
62
+ /* @__PURE__ */ jsxDEV("p", {
63
+ className: "text-muted-foreground",
64
+ children: [
65
+ "The runtime is contract-first. Commands, queries, events, and capabilities are explicit and versioned under",
66
+ /* @__PURE__ */ jsxDEV("code", {
67
+ children: " @contractspec/lib.contracts-spec"
68
+ }, undefined, false, undefined, this),
69
+ "."
70
+ ]
71
+ }, undefined, true, undefined, this),
72
+ /* @__PURE__ */ jsxDEV(CodeBlock, {
73
+ language: "text",
74
+ code: `Commands
75
+ - controlPlane.intent.submit
76
+ - controlPlane.plan.compile
77
+ - controlPlane.plan.verify
78
+ - controlPlane.execution.start
79
+ - controlPlane.execution.approve
80
+ - controlPlane.execution.reject
81
+ - controlPlane.execution.cancel
82
+ - controlPlane.skill.install
83
+ - controlPlane.skill.disable
84
+
85
+ Queries
86
+ - controlPlane.execution.get
87
+ - controlPlane.execution.list
88
+ - controlPlane.trace.get
89
+ - controlPlane.policy.explain
90
+ - controlPlane.skill.list
91
+ - controlPlane.skill.verify
92
+
93
+ Events
94
+ - controlPlane.intent.received
95
+ - controlPlane.plan.compiled
96
+ - controlPlane.plan.rejected
97
+ - controlPlane.execution.step.started
98
+ - controlPlane.execution.step.blocked
99
+ - controlPlane.execution.step.completed
100
+ - controlPlane.execution.completed
101
+ - controlPlane.execution.failed
102
+ - controlPlane.skill.installed
103
+ - controlPlane.skill.rejected
104
+
105
+ Capabilities
106
+ - control-plane.core
107
+ - control-plane.approval
108
+ - control-plane.audit
109
+ - control-plane.skill-registry
110
+ - control-plane.channel-runtime`
111
+ }, undefined, false, undefined, this)
112
+ ]
113
+ }, undefined, true, undefined, this),
114
+ /* @__PURE__ */ jsxDEV("div", {
115
+ className: "space-y-4",
116
+ children: [
117
+ /* @__PURE__ */ jsxDEV("h2", {
118
+ className: "text-2xl font-bold",
119
+ children: "Policy and safety posture"
120
+ }, undefined, false, undefined, this),
121
+ /* @__PURE__ */ jsxDEV("ul", {
122
+ className: "text-muted-foreground list-inside list-disc space-y-2",
123
+ children: [
124
+ /* @__PURE__ */ jsxDEV("li", {
125
+ children: "No side-effect action executes unless it comes from a compiled plan."
126
+ }, undefined, false, undefined, this),
127
+ /* @__PURE__ */ jsxDEV("li", {
128
+ children: "High-risk actions are blocked from autonomous mode in v1."
129
+ }, undefined, false, undefined, this),
130
+ /* @__PURE__ */ jsxDEV("li", {
131
+ children: "Approval commands provide explicit human-in-the-loop transitions."
132
+ }, undefined, false, undefined, this),
133
+ /* @__PURE__ */ jsxDEV("li", {
134
+ children: "Skill installation is modeled as governance-controlled operations."
135
+ }, undefined, false, undefined, this),
136
+ /* @__PURE__ */ jsxDEV("li", {
137
+ children: "Trace queries expose policy rationale and step outcomes for replay."
138
+ }, undefined, false, undefined, this)
139
+ ]
140
+ }, undefined, true, undefined, this)
141
+ ]
142
+ }, undefined, true, undefined, this),
143
+ /* @__PURE__ */ jsxDEV("div", {
144
+ className: "space-y-4",
145
+ children: [
146
+ /* @__PURE__ */ jsxDEV("h2", {
147
+ className: "text-2xl font-bold",
148
+ children: "Implementation map"
149
+ }, undefined, false, undefined, this),
150
+ /* @__PURE__ */ jsxDEV(CodeBlock, {
151
+ language: "text",
152
+ code: `packages/libs/contracts-spec/src/control-plane/
153
+ commands/
154
+ queries/
155
+ events/
156
+ capabilities/
157
+ contracts.ts
158
+ contracts.test.ts
159
+
160
+ packages/apps/web-landing/src/app/docs/architecture/control-plane/page.tsx
161
+ implementation_plan_controle_plane.md`
162
+ }, undefined, false, undefined, this)
163
+ ]
164
+ }, undefined, true, undefined, this),
165
+ /* @__PURE__ */ jsxDEV("div", {
166
+ className: "space-y-4",
167
+ children: [
168
+ /* @__PURE__ */ jsxDEV("h2", {
169
+ className: "text-2xl font-bold",
170
+ children: "What comes next"
171
+ }, undefined, false, undefined, this),
172
+ /* @__PURE__ */ jsxDEV("p", {
173
+ className: "text-muted-foreground",
174
+ children: "WS1 delivers the contract fabric. Next increments add planner/executor split, policy escalation, capability-bound authorization, signed skill compatibility checks, and full replay tooling."
175
+ }, undefined, false, 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/architecture/integration-binding",
183
+ className: "btn-ghost",
184
+ children: "Previous: Integration Binding"
185
+ }, undefined, false, undefined, this),
186
+ /* @__PURE__ */ jsxDEV(Link, {
187
+ href: "/docs/safety/auditing",
188
+ className: "btn-primary",
189
+ children: [
190
+ "Audit Logs ",
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
+ ArchitectureControlPlanePage
203
+ };
@@ -15,7 +15,7 @@ function ArchitectureOverviewPage() {
15
15
  }, undefined, false, undefined, this),
16
16
  /* @__PURE__ */ jsxDEV("p", {
17
17
  className: "text-muted-foreground",
18
- children: "ContractSpec's architecture is built on a foundation of typed specifications served by runtime adapters. This section covers the core architectural concepts: app configuration, integration binding, and knowledge management."
18
+ children: "ContractSpec's architecture is built on a foundation of typed specifications served by runtime adapters. This section covers the core architectural concepts: app configuration, integration binding, control-plane governance, and knowledge management."
19
19
  }, undefined, false, undefined, this)
20
20
  ]
21
21
  }, undefined, true, undefined, this),
@@ -205,6 +205,17 @@ function ArchitectureOverviewPage() {
205
205
  " - Enforces policies on every operation"
206
206
  ]
207
207
  }, undefined, true, undefined, this),
208
+ /* @__PURE__ */ jsxDEV("li", {
209
+ children: [
210
+ /* @__PURE__ */ jsxDEV(Link, {
211
+ href: "/docs/architecture/control-plane",
212
+ className: "text-violet-400 hover:text-violet-300",
213
+ children: "Control Plane Runtime"
214
+ }, undefined, false, undefined, this),
215
+ " ",
216
+ "- Deterministic intent to plan to policy to execution loop"
217
+ ]
218
+ }, undefined, true, undefined, this),
208
219
  /* @__PURE__ */ jsxDEV("li", {
209
220
  children: [
210
221
  /* @__PURE__ */ jsxDEV("strong", {
@@ -428,6 +439,11 @@ function ArchitectureOverviewPage() {
428
439
  }, undefined, false, undefined, this)
429
440
  ]
430
441
  }, undefined, true, undefined, this),
442
+ /* @__PURE__ */ jsxDEV(Link, {
443
+ href: "/docs/architecture/control-plane",
444
+ className: "btn-ghost",
445
+ children: "Control Plane Runtime"
446
+ }, undefined, false, undefined, this),
431
447
  /* @__PURE__ */ jsxDEV(Link, {
432
448
  href: "/docs/integrations",
433
449
  className: "btn-ghost",