@contractspec/bundle.library 3.4.2 → 3.5.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 (479) hide show
  1. package/.turbo/turbo-build.log +494 -488
  2. package/CHANGELOG.md +61 -0
  3. package/dist/application/index.js +8 -8
  4. package/dist/application/mcp/cliMcp.js +8 -8
  5. package/dist/application/mcp/contractsMcp.js +8 -8
  6. package/dist/application/mcp/docsMcp.js +8 -8
  7. package/dist/application/mcp/index.js +8 -8
  8. package/dist/application/mcp/internalMcp.js +8 -8
  9. package/dist/application/mcp/providerRankingMcp.js +8 -8
  10. package/dist/bundles/LibraryBundle.d.ts +126 -0
  11. package/dist/bundles/LibraryBundle.js +139 -0
  12. package/dist/bundles/index.d.ts +1 -0
  13. package/dist/bundles/index.js +139 -0
  14. package/dist/components/docs/DocsIndexPage.js +91 -91
  15. package/dist/components/docs/advanced/AdvancedMCPPage.js +125 -125
  16. package/dist/components/docs/advanced/AdvancedOverlayEditorPage.js +49 -49
  17. package/dist/components/docs/advanced/AdvancedRenderersPage.js +51 -51
  18. package/dist/components/docs/advanced/AdvancedSpecExperimentsPage.js +35 -35
  19. package/dist/components/docs/advanced/AdvancedTelemetryPage.js +177 -177
  20. package/dist/components/docs/advanced/AdvancedWorkflowMonitoringPage.js +45 -45
  21. package/dist/components/docs/advanced/index.js +482 -482
  22. package/dist/components/docs/architecture/ArchitectureAppConfigPage.js +107 -107
  23. package/dist/components/docs/architecture/ArchitectureControlPlanePage.js +73 -73
  24. package/dist/components/docs/architecture/ArchitectureIntegrationBindingPage.js +117 -117
  25. package/dist/components/docs/architecture/ArchitectureKnowledgeBindingPage.js +175 -175
  26. package/dist/components/docs/architecture/ArchitectureMultiTenancyPage.js +71 -71
  27. package/dist/components/docs/architecture/ArchitectureOverviewPage.js +205 -205
  28. package/dist/components/docs/architecture/index.js +748 -748
  29. package/dist/components/docs/comparison/ComparisonAutomationPlatformsPage.js +117 -117
  30. package/dist/components/docs/comparison/ComparisonEnterprisePlatformsPage.js +111 -111
  31. package/dist/components/docs/comparison/ComparisonInternalToolBuildersPage.js +117 -117
  32. package/dist/components/docs/comparison/ComparisonOverviewPage.js +97 -97
  33. package/dist/components/docs/comparison/ComparisonWindmillPage.js +125 -125
  34. package/dist/components/docs/comparison/ComparisonWorkflowEnginesPage.js +171 -171
  35. package/dist/components/docs/comparison/index.js +738 -738
  36. package/dist/components/docs/ecosystem/IntegrationsPage.js +45 -45
  37. package/dist/components/docs/ecosystem/PluginsPage.js +73 -73
  38. package/dist/components/docs/ecosystem/RegistryPage.js +37 -37
  39. package/dist/components/docs/ecosystem/TemplatesPage.js +56 -56
  40. package/dist/components/docs/ecosystem/index.js +211 -211
  41. package/dist/components/docs/examples/DocsExamplesPage.js +21 -21
  42. package/dist/components/docs/examples/index.js +21 -21
  43. package/dist/components/docs/getting-started/CLIPage.js +95 -95
  44. package/dist/components/docs/getting-started/CompatibilityPage.js +81 -81
  45. package/dist/components/docs/getting-started/DataViewTutorialPage.js +57 -57
  46. package/dist/components/docs/getting-started/DeveloperToolsPage.js +61 -61
  47. package/dist/components/docs/getting-started/HelloWorldPage.js +77 -77
  48. package/dist/components/docs/getting-started/InstallationPage.js +65 -65
  49. package/dist/components/docs/getting-started/StartHerePage.js +51 -51
  50. package/dist/components/docs/getting-started/TroubleshootingPage.js +73 -73
  51. package/dist/components/docs/getting-started/VSCodeExtensionPage.js +171 -171
  52. package/dist/components/docs/getting-started/index.js +731 -731
  53. package/dist/components/docs/guides/GuideCIDiffGatingPage.js +80 -80
  54. package/dist/components/docs/guides/GuideContractTypesPage.js +232 -232
  55. package/dist/components/docs/guides/GuideDocsPipelinePage.js +82 -82
  56. package/dist/components/docs/guides/GuideGenerateDocsClientsSchemasPage.js +84 -84
  57. package/dist/components/docs/guides/GuideImportExistingCodebasesPage.js +324 -324
  58. package/dist/components/docs/guides/GuideNextjsOneEndpointPage.js +106 -106
  59. package/dist/components/docs/guides/GuideSpecValidationTypingPage.js +78 -78
  60. package/dist/components/docs/guides/GuidesIndexPage.js +43 -43
  61. package/dist/components/docs/guides/index.js +975 -975
  62. package/dist/components/docs/index.js +10791 -10791
  63. package/dist/components/docs/integrations/IntegrationsCircuitBreakersPage.js +17 -17
  64. package/dist/components/docs/integrations/IntegrationsElevenLabsPage.js +47 -47
  65. package/dist/components/docs/integrations/IntegrationsGithubPage.js +61 -61
  66. package/dist/components/docs/integrations/IntegrationsGmailPage.js +49 -49
  67. package/dist/components/docs/integrations/IntegrationsGoogleCalendarPage.js +33 -33
  68. package/dist/components/docs/integrations/IntegrationsHealthRoutingPage.js +65 -65
  69. package/dist/components/docs/integrations/IntegrationsMistralPage.js +69 -69
  70. package/dist/components/docs/integrations/IntegrationsOpenAIPage.js +65 -65
  71. package/dist/components/docs/integrations/IntegrationsOverviewPage.js +313 -313
  72. package/dist/components/docs/integrations/IntegrationsPostmarkPage.js +101 -101
  73. package/dist/components/docs/integrations/IntegrationsPowensPage.js +121 -121
  74. package/dist/components/docs/integrations/IntegrationsQdrantPage.js +49 -49
  75. package/dist/components/docs/integrations/IntegrationsResendPage.js +45 -45
  76. package/dist/components/docs/integrations/IntegrationsS3Page.js +57 -57
  77. package/dist/components/docs/integrations/IntegrationsSlackPage.js +63 -63
  78. package/dist/components/docs/integrations/IntegrationsSpecModelPage.js +139 -139
  79. package/dist/components/docs/integrations/IntegrationsStripePage.js +159 -159
  80. package/dist/components/docs/integrations/IntegrationsTwilioPage.js +61 -61
  81. package/dist/components/docs/integrations/IntegrationsWhatsappMetaPage.js +63 -63
  82. package/dist/components/docs/integrations/IntegrationsWhatsappTwilioPage.js +65 -65
  83. package/dist/components/docs/integrations/index.js +1642 -1642
  84. package/dist/components/docs/intent/ContractFirstApiPage.js +51 -51
  85. package/dist/components/docs/intent/DeterministicCodegenPage.js +59 -59
  86. package/dist/components/docs/intent/GenerateClientFromSchemaPage.js +85 -85
  87. package/dist/components/docs/intent/OpenapiAlternativePage.js +91 -91
  88. package/dist/components/docs/intent/SchemaValidationTypescriptPage.js +59 -59
  89. package/dist/components/docs/intent/SpecDrivenDevelopmentPage.js +51 -51
  90. package/dist/components/docs/intent/index.js +396 -396
  91. package/dist/components/docs/knowledge/KnowledgeCategoriesPage.js +371 -371
  92. package/dist/components/docs/knowledge/KnowledgeExamplesPage.js +79 -79
  93. package/dist/components/docs/knowledge/KnowledgeOverviewPage.js +185 -185
  94. package/dist/components/docs/knowledge/KnowledgeSourcesPage.js +187 -187
  95. package/dist/components/docs/knowledge/KnowledgeSpacesPage.js +141 -141
  96. package/dist/components/docs/knowledge/index.js +963 -963
  97. package/dist/components/docs/libraries/LibrariesAccessibilityPage.js +85 -85
  98. package/dist/components/docs/libraries/LibrariesAiAgentPage.js +63 -63
  99. package/dist/components/docs/libraries/LibrariesAnalyticsPage.js +33 -33
  100. package/dist/components/docs/libraries/LibrariesContentGenPage.js +43 -43
  101. package/dist/components/docs/libraries/LibrariesContractsPage.js +125 -125
  102. package/dist/components/docs/libraries/LibrariesCostTrackingPage.js +45 -45
  103. package/dist/components/docs/libraries/LibrariesDataBackendPage.js +69 -69
  104. package/dist/components/docs/libraries/LibrariesDataViewsPage.js +79 -79
  105. package/dist/components/docs/libraries/LibrariesDesignSystemPage.js +129 -129
  106. package/dist/components/docs/libraries/LibrariesEvolutionPage.js +49 -49
  107. package/dist/components/docs/libraries/LibrariesGraphQLPage.js +73 -73
  108. package/dist/components/docs/libraries/LibrariesGrowthPage.js +35 -35
  109. package/dist/components/docs/libraries/LibrariesMultiTenancyPage.js +43 -43
  110. package/dist/components/docs/libraries/LibrariesObservabilityPage.js +53 -53
  111. package/dist/components/docs/libraries/LibrariesOverlayEnginePage.js +45 -45
  112. package/dist/components/docs/libraries/LibrariesOverviewPage.js +191 -191
  113. package/dist/components/docs/libraries/LibrariesPersonalizationPage.js +47 -47
  114. package/dist/components/docs/libraries/LibrariesProgressiveDeliveryPage.js +53 -53
  115. package/dist/components/docs/libraries/LibrariesResiliencePage.js +49 -49
  116. package/dist/components/docs/libraries/LibrariesRuntimePage.js +87 -87
  117. package/dist/components/docs/libraries/LibrariesSLOPage.js +47 -47
  118. package/dist/components/docs/libraries/LibrariesSchemaPage.js +139 -139
  119. package/dist/components/docs/libraries/LibrariesSupportBotPage.js +57 -57
  120. package/dist/components/docs/libraries/LibrariesTestingPage.js +49 -49
  121. package/dist/components/docs/libraries/LibrariesUIKitPage.js +107 -107
  122. package/dist/components/docs/libraries/LibrariesWorkflowComposerPage.js +35 -35
  123. package/dist/components/docs/libraries/LibrariesWorkflowsPage.js +89 -89
  124. package/dist/components/docs/libraries/index.js +1919 -1919
  125. package/dist/components/docs/manifesto/ManifestoPage.js +79 -79
  126. package/dist/components/docs/ops/AutoEvolutionOpsPage.js +59 -59
  127. package/dist/components/docs/ops/DistributedTracingOpsPage.js +33 -33
  128. package/dist/components/docs/ops/index.js +92 -92
  129. package/dist/components/docs/reference/DocsMarkdownContent.js +27 -27
  130. package/dist/components/docs/reference/DocsReferenceContent.js +34 -34
  131. package/dist/components/docs/reference/DocsReferenceIndexClient.js +23 -23
  132. package/dist/components/docs/reference/DocsReferenceIndexPage.js +26 -26
  133. package/dist/components/docs/reference/DocsReferencePage.js +37 -37
  134. package/dist/components/docs/reference/index.js +63 -63
  135. package/dist/components/docs/safety/SafetyAuditingPage.js +161 -161
  136. package/dist/components/docs/safety/SafetyMigrationsPage.js +169 -169
  137. package/dist/components/docs/safety/SafetyOverviewPage.js +99 -99
  138. package/dist/components/docs/safety/SafetyPDPPage.js +137 -137
  139. package/dist/components/docs/safety/SafetySecurityTrustPage.js +95 -95
  140. package/dist/components/docs/safety/SafetySigningPage.js +39 -39
  141. package/dist/components/docs/safety/SafetyTenantIsolationPage.js +33 -33
  142. package/dist/components/docs/safety/index.js +733 -733
  143. package/dist/components/docs/shared/StudioPrompt.js +9 -9
  144. package/dist/components/docs/specs/SpecsCapabilitiesPage.js +61 -61
  145. package/dist/components/docs/specs/SpecsDataViewsPage.js +119 -119
  146. package/dist/components/docs/specs/SpecsOverlaysPage.js +171 -171
  147. package/dist/components/docs/specs/SpecsOverviewPage.js +167 -167
  148. package/dist/components/docs/specs/SpecsPolicyPage.js +179 -179
  149. package/dist/components/docs/specs/SpecsWorkflowsPage.js +141 -141
  150. package/dist/components/docs/specs/index.js +838 -838
  151. package/dist/components/docs/studio/StudioBYOKPage.js +9 -9
  152. package/dist/components/docs/studio/StudioDeploymentsPage.js +9 -9
  153. package/dist/components/docs/studio/StudioGettingStartedPage.js +9 -9
  154. package/dist/components/docs/studio/StudioIntegrationsPage.js +9 -9
  155. package/dist/components/docs/studio/StudioOverviewPage.js +33 -33
  156. package/dist/components/docs/studio/StudioVisualBuilderPage.js +9 -9
  157. package/dist/components/docs/studio/index.js +78 -78
  158. package/dist/components/integrations/index.js +209 -209
  159. package/dist/components/integrations/molecules/IntegrationCard.js +33 -33
  160. package/dist/components/integrations/organisms/IntegrationMarketplace.js +71 -71
  161. package/dist/components/integrations/organisms/IntegrationSettings.js +98 -98
  162. package/dist/components/integrations/organisms/KnowledgeSourceList.js +40 -40
  163. package/dist/components/legal/PrivacyTemplate.js +477 -477
  164. package/dist/components/legal/TermsTemplate.js +421 -421
  165. package/dist/components/legal/index.js +898 -898
  166. package/dist/components/shared/FeatureGateNotice.js +13 -13
  167. package/dist/components/shared/index.js +13 -13
  168. package/dist/components/shell/WorkspaceHeader.js +37 -37
  169. package/dist/components/shell/WorkspaceProjectShellLayout.js +77 -77
  170. package/dist/components/shell/WorkspaceShellRenderer.d.ts +17 -0
  171. package/dist/components/shell/WorkspaceShellRenderer.js +229 -0
  172. package/dist/components/shell/WorkspaceSidebar.js +27 -27
  173. package/dist/components/shell/index.d.ts +1 -0
  174. package/dist/components/shell/index.js +140 -77
  175. package/dist/components/templates/index.js +272 -272
  176. package/dist/components/templates/messaging/ConversationList.js +27 -27
  177. package/dist/components/templates/messaging/MessageComposer.js +27 -27
  178. package/dist/components/templates/messaging/MessageThread.js +18 -18
  179. package/dist/components/templates/messaging/MessagingWorkspace.js +65 -65
  180. package/dist/components/templates/messaging/index.js +65 -65
  181. package/dist/components/templates/recipes/LanguageSwitcher.js +5 -5
  182. package/dist/components/templates/recipes/RecipeCard.js +26 -26
  183. package/dist/components/templates/recipes/RecipeDetail.js +33 -33
  184. package/dist/components/templates/recipes/RecipeList.js +80 -80
  185. package/dist/components/templates/recipes/index.js +80 -80
  186. package/dist/components/templates/todos/FilterBar.js +39 -39
  187. package/dist/components/templates/todos/TaskForm.js +43 -43
  188. package/dist/components/templates/todos/TaskItem.js +30 -30
  189. package/dist/components/templates/todos/TaskList.js +127 -127
  190. package/dist/components/templates/todos/index.js +127 -127
  191. package/dist/index.js +12323 -12260
  192. package/dist/infrastructure/elysia/index.js +8 -8
  193. package/dist/infrastructure/elysia/logger.js +8 -8
  194. package/dist/infrastructure/index.js +8 -8
  195. package/dist/libs/posthog/client.js +2 -2
  196. package/dist/node/application/index.js +8 -8
  197. package/dist/node/application/mcp/cliMcp.js +8 -8
  198. package/dist/node/application/mcp/contractsMcp.js +8 -8
  199. package/dist/node/application/mcp/docsMcp.js +8 -8
  200. package/dist/node/application/mcp/index.js +8 -8
  201. package/dist/node/application/mcp/internalMcp.js +8 -8
  202. package/dist/node/application/mcp/providerRankingMcp.js +8 -8
  203. package/dist/node/bundles/LibraryBundle.js +138 -0
  204. package/dist/node/bundles/index.js +138 -0
  205. package/dist/node/components/docs/DocsIndexPage.js +91 -91
  206. package/dist/node/components/docs/advanced/AdvancedMCPPage.js +125 -125
  207. package/dist/node/components/docs/advanced/AdvancedOverlayEditorPage.js +49 -49
  208. package/dist/node/components/docs/advanced/AdvancedRenderersPage.js +51 -51
  209. package/dist/node/components/docs/advanced/AdvancedSpecExperimentsPage.js +35 -35
  210. package/dist/node/components/docs/advanced/AdvancedTelemetryPage.js +177 -177
  211. package/dist/node/components/docs/advanced/AdvancedWorkflowMonitoringPage.js +45 -45
  212. package/dist/node/components/docs/advanced/index.js +482 -482
  213. package/dist/node/components/docs/architecture/ArchitectureAppConfigPage.js +107 -107
  214. package/dist/node/components/docs/architecture/ArchitectureControlPlanePage.js +73 -73
  215. package/dist/node/components/docs/architecture/ArchitectureIntegrationBindingPage.js +117 -117
  216. package/dist/node/components/docs/architecture/ArchitectureKnowledgeBindingPage.js +175 -175
  217. package/dist/node/components/docs/architecture/ArchitectureMultiTenancyPage.js +71 -71
  218. package/dist/node/components/docs/architecture/ArchitectureOverviewPage.js +205 -205
  219. package/dist/node/components/docs/architecture/index.js +748 -748
  220. package/dist/node/components/docs/comparison/ComparisonAutomationPlatformsPage.js +117 -117
  221. package/dist/node/components/docs/comparison/ComparisonEnterprisePlatformsPage.js +111 -111
  222. package/dist/node/components/docs/comparison/ComparisonInternalToolBuildersPage.js +117 -117
  223. package/dist/node/components/docs/comparison/ComparisonOverviewPage.js +97 -97
  224. package/dist/node/components/docs/comparison/ComparisonWindmillPage.js +125 -125
  225. package/dist/node/components/docs/comparison/ComparisonWorkflowEnginesPage.js +171 -171
  226. package/dist/node/components/docs/comparison/index.js +738 -738
  227. package/dist/node/components/docs/ecosystem/IntegrationsPage.js +45 -45
  228. package/dist/node/components/docs/ecosystem/PluginsPage.js +73 -73
  229. package/dist/node/components/docs/ecosystem/RegistryPage.js +37 -37
  230. package/dist/node/components/docs/ecosystem/TemplatesPage.js +56 -56
  231. package/dist/node/components/docs/ecosystem/index.js +211 -211
  232. package/dist/node/components/docs/examples/DocsExamplesPage.js +21 -21
  233. package/dist/node/components/docs/examples/index.js +21 -21
  234. package/dist/node/components/docs/getting-started/CLIPage.js +95 -95
  235. package/dist/node/components/docs/getting-started/CompatibilityPage.js +81 -81
  236. package/dist/node/components/docs/getting-started/DataViewTutorialPage.js +57 -57
  237. package/dist/node/components/docs/getting-started/DeveloperToolsPage.js +61 -61
  238. package/dist/node/components/docs/getting-started/HelloWorldPage.js +77 -77
  239. package/dist/node/components/docs/getting-started/InstallationPage.js +65 -65
  240. package/dist/node/components/docs/getting-started/StartHerePage.js +51 -51
  241. package/dist/node/components/docs/getting-started/TroubleshootingPage.js +73 -73
  242. package/dist/node/components/docs/getting-started/VSCodeExtensionPage.js +171 -171
  243. package/dist/node/components/docs/getting-started/index.js +731 -731
  244. package/dist/node/components/docs/guides/GuideCIDiffGatingPage.js +80 -80
  245. package/dist/node/components/docs/guides/GuideContractTypesPage.js +232 -232
  246. package/dist/node/components/docs/guides/GuideDocsPipelinePage.js +82 -82
  247. package/dist/node/components/docs/guides/GuideGenerateDocsClientsSchemasPage.js +84 -84
  248. package/dist/node/components/docs/guides/GuideImportExistingCodebasesPage.js +324 -324
  249. package/dist/node/components/docs/guides/GuideNextjsOneEndpointPage.js +106 -106
  250. package/dist/node/components/docs/guides/GuideSpecValidationTypingPage.js +78 -78
  251. package/dist/node/components/docs/guides/GuidesIndexPage.js +43 -43
  252. package/dist/node/components/docs/guides/index.js +975 -975
  253. package/dist/node/components/docs/index.js +10791 -10791
  254. package/dist/node/components/docs/integrations/IntegrationsCircuitBreakersPage.js +17 -17
  255. package/dist/node/components/docs/integrations/IntegrationsElevenLabsPage.js +47 -47
  256. package/dist/node/components/docs/integrations/IntegrationsGithubPage.js +61 -61
  257. package/dist/node/components/docs/integrations/IntegrationsGmailPage.js +49 -49
  258. package/dist/node/components/docs/integrations/IntegrationsGoogleCalendarPage.js +33 -33
  259. package/dist/node/components/docs/integrations/IntegrationsHealthRoutingPage.js +65 -65
  260. package/dist/node/components/docs/integrations/IntegrationsMistralPage.js +69 -69
  261. package/dist/node/components/docs/integrations/IntegrationsOpenAIPage.js +65 -65
  262. package/dist/node/components/docs/integrations/IntegrationsOverviewPage.js +313 -313
  263. package/dist/node/components/docs/integrations/IntegrationsPostmarkPage.js +101 -101
  264. package/dist/node/components/docs/integrations/IntegrationsPowensPage.js +121 -121
  265. package/dist/node/components/docs/integrations/IntegrationsQdrantPage.js +49 -49
  266. package/dist/node/components/docs/integrations/IntegrationsResendPage.js +45 -45
  267. package/dist/node/components/docs/integrations/IntegrationsS3Page.js +57 -57
  268. package/dist/node/components/docs/integrations/IntegrationsSlackPage.js +63 -63
  269. package/dist/node/components/docs/integrations/IntegrationsSpecModelPage.js +139 -139
  270. package/dist/node/components/docs/integrations/IntegrationsStripePage.js +159 -159
  271. package/dist/node/components/docs/integrations/IntegrationsTwilioPage.js +61 -61
  272. package/dist/node/components/docs/integrations/IntegrationsWhatsappMetaPage.js +63 -63
  273. package/dist/node/components/docs/integrations/IntegrationsWhatsappTwilioPage.js +65 -65
  274. package/dist/node/components/docs/integrations/index.js +1642 -1642
  275. package/dist/node/components/docs/intent/ContractFirstApiPage.js +51 -51
  276. package/dist/node/components/docs/intent/DeterministicCodegenPage.js +59 -59
  277. package/dist/node/components/docs/intent/GenerateClientFromSchemaPage.js +85 -85
  278. package/dist/node/components/docs/intent/OpenapiAlternativePage.js +91 -91
  279. package/dist/node/components/docs/intent/SchemaValidationTypescriptPage.js +59 -59
  280. package/dist/node/components/docs/intent/SpecDrivenDevelopmentPage.js +51 -51
  281. package/dist/node/components/docs/intent/index.js +396 -396
  282. package/dist/node/components/docs/knowledge/KnowledgeCategoriesPage.js +371 -371
  283. package/dist/node/components/docs/knowledge/KnowledgeExamplesPage.js +79 -79
  284. package/dist/node/components/docs/knowledge/KnowledgeOverviewPage.js +185 -185
  285. package/dist/node/components/docs/knowledge/KnowledgeSourcesPage.js +187 -187
  286. package/dist/node/components/docs/knowledge/KnowledgeSpacesPage.js +141 -141
  287. package/dist/node/components/docs/knowledge/index.js +963 -963
  288. package/dist/node/components/docs/libraries/LibrariesAccessibilityPage.js +85 -85
  289. package/dist/node/components/docs/libraries/LibrariesAiAgentPage.js +63 -63
  290. package/dist/node/components/docs/libraries/LibrariesAnalyticsPage.js +33 -33
  291. package/dist/node/components/docs/libraries/LibrariesContentGenPage.js +43 -43
  292. package/dist/node/components/docs/libraries/LibrariesContractsPage.js +125 -125
  293. package/dist/node/components/docs/libraries/LibrariesCostTrackingPage.js +45 -45
  294. package/dist/node/components/docs/libraries/LibrariesDataBackendPage.js +69 -69
  295. package/dist/node/components/docs/libraries/LibrariesDataViewsPage.js +79 -79
  296. package/dist/node/components/docs/libraries/LibrariesDesignSystemPage.js +129 -129
  297. package/dist/node/components/docs/libraries/LibrariesEvolutionPage.js +49 -49
  298. package/dist/node/components/docs/libraries/LibrariesGraphQLPage.js +73 -73
  299. package/dist/node/components/docs/libraries/LibrariesGrowthPage.js +35 -35
  300. package/dist/node/components/docs/libraries/LibrariesMultiTenancyPage.js +43 -43
  301. package/dist/node/components/docs/libraries/LibrariesObservabilityPage.js +53 -53
  302. package/dist/node/components/docs/libraries/LibrariesOverlayEnginePage.js +45 -45
  303. package/dist/node/components/docs/libraries/LibrariesOverviewPage.js +191 -191
  304. package/dist/node/components/docs/libraries/LibrariesPersonalizationPage.js +47 -47
  305. package/dist/node/components/docs/libraries/LibrariesProgressiveDeliveryPage.js +53 -53
  306. package/dist/node/components/docs/libraries/LibrariesResiliencePage.js +49 -49
  307. package/dist/node/components/docs/libraries/LibrariesRuntimePage.js +87 -87
  308. package/dist/node/components/docs/libraries/LibrariesSLOPage.js +47 -47
  309. package/dist/node/components/docs/libraries/LibrariesSchemaPage.js +139 -139
  310. package/dist/node/components/docs/libraries/LibrariesSupportBotPage.js +57 -57
  311. package/dist/node/components/docs/libraries/LibrariesTestingPage.js +49 -49
  312. package/dist/node/components/docs/libraries/LibrariesUIKitPage.js +107 -107
  313. package/dist/node/components/docs/libraries/LibrariesWorkflowComposerPage.js +35 -35
  314. package/dist/node/components/docs/libraries/LibrariesWorkflowsPage.js +89 -89
  315. package/dist/node/components/docs/libraries/index.js +1919 -1919
  316. package/dist/node/components/docs/manifesto/ManifestoPage.js +79 -79
  317. package/dist/node/components/docs/ops/AutoEvolutionOpsPage.js +59 -59
  318. package/dist/node/components/docs/ops/DistributedTracingOpsPage.js +33 -33
  319. package/dist/node/components/docs/ops/index.js +92 -92
  320. package/dist/node/components/docs/reference/DocsMarkdownContent.js +27 -27
  321. package/dist/node/components/docs/reference/DocsReferenceContent.js +34 -34
  322. package/dist/node/components/docs/reference/DocsReferenceIndexClient.js +23 -23
  323. package/dist/node/components/docs/reference/DocsReferenceIndexPage.js +26 -26
  324. package/dist/node/components/docs/reference/DocsReferencePage.js +37 -37
  325. package/dist/node/components/docs/reference/index.js +63 -63
  326. package/dist/node/components/docs/safety/SafetyAuditingPage.js +161 -161
  327. package/dist/node/components/docs/safety/SafetyMigrationsPage.js +169 -169
  328. package/dist/node/components/docs/safety/SafetyOverviewPage.js +99 -99
  329. package/dist/node/components/docs/safety/SafetyPDPPage.js +137 -137
  330. package/dist/node/components/docs/safety/SafetySecurityTrustPage.js +95 -95
  331. package/dist/node/components/docs/safety/SafetySigningPage.js +39 -39
  332. package/dist/node/components/docs/safety/SafetyTenantIsolationPage.js +33 -33
  333. package/dist/node/components/docs/safety/index.js +733 -733
  334. package/dist/node/components/docs/shared/StudioPrompt.js +9 -9
  335. package/dist/node/components/docs/specs/SpecsCapabilitiesPage.js +61 -61
  336. package/dist/node/components/docs/specs/SpecsDataViewsPage.js +119 -119
  337. package/dist/node/components/docs/specs/SpecsOverlaysPage.js +171 -171
  338. package/dist/node/components/docs/specs/SpecsOverviewPage.js +167 -167
  339. package/dist/node/components/docs/specs/SpecsPolicyPage.js +179 -179
  340. package/dist/node/components/docs/specs/SpecsWorkflowsPage.js +141 -141
  341. package/dist/node/components/docs/specs/index.js +838 -838
  342. package/dist/node/components/docs/studio/StudioBYOKPage.js +9 -9
  343. package/dist/node/components/docs/studio/StudioDeploymentsPage.js +9 -9
  344. package/dist/node/components/docs/studio/StudioGettingStartedPage.js +9 -9
  345. package/dist/node/components/docs/studio/StudioIntegrationsPage.js +9 -9
  346. package/dist/node/components/docs/studio/StudioOverviewPage.js +33 -33
  347. package/dist/node/components/docs/studio/StudioVisualBuilderPage.js +9 -9
  348. package/dist/node/components/docs/studio/index.js +78 -78
  349. package/dist/node/components/integrations/index.js +209 -209
  350. package/dist/node/components/integrations/molecules/IntegrationCard.js +33 -33
  351. package/dist/node/components/integrations/organisms/IntegrationMarketplace.js +71 -71
  352. package/dist/node/components/integrations/organisms/IntegrationSettings.js +98 -98
  353. package/dist/node/components/integrations/organisms/KnowledgeSourceList.js +40 -40
  354. package/dist/node/components/legal/PrivacyTemplate.js +477 -477
  355. package/dist/node/components/legal/TermsTemplate.js +421 -421
  356. package/dist/node/components/legal/index.js +898 -898
  357. package/dist/node/components/shared/FeatureGateNotice.js +13 -13
  358. package/dist/node/components/shared/index.js +13 -13
  359. package/dist/node/components/shell/WorkspaceHeader.js +37 -37
  360. package/dist/node/components/shell/WorkspaceProjectShellLayout.js +77 -77
  361. package/dist/node/components/shell/WorkspaceShellRenderer.js +228 -0
  362. package/dist/node/components/shell/WorkspaceSidebar.js +27 -27
  363. package/dist/node/components/shell/index.js +140 -77
  364. package/dist/node/components/templates/index.js +272 -272
  365. package/dist/node/components/templates/messaging/ConversationList.js +27 -27
  366. package/dist/node/components/templates/messaging/MessageComposer.js +27 -27
  367. package/dist/node/components/templates/messaging/MessageThread.js +18 -18
  368. package/dist/node/components/templates/messaging/MessagingWorkspace.js +65 -65
  369. package/dist/node/components/templates/messaging/index.js +65 -65
  370. package/dist/node/components/templates/recipes/LanguageSwitcher.js +5 -5
  371. package/dist/node/components/templates/recipes/RecipeCard.js +26 -26
  372. package/dist/node/components/templates/recipes/RecipeDetail.js +33 -33
  373. package/dist/node/components/templates/recipes/RecipeList.js +80 -80
  374. package/dist/node/components/templates/recipes/index.js +80 -80
  375. package/dist/node/components/templates/todos/FilterBar.js +39 -39
  376. package/dist/node/components/templates/todos/TaskForm.js +43 -43
  377. package/dist/node/components/templates/todos/TaskItem.js +30 -30
  378. package/dist/node/components/templates/todos/TaskList.js +127 -127
  379. package/dist/node/components/templates/todos/index.js +127 -127
  380. package/dist/node/index.js +12323 -12260
  381. package/dist/node/infrastructure/elysia/index.js +8 -8
  382. package/dist/node/infrastructure/elysia/logger.js +8 -8
  383. package/dist/node/infrastructure/index.js +8 -8
  384. package/dist/node/libs/posthog/client.js +2 -2
  385. package/dist/node/presentation/features/atoms/FeatureIcon/FeatureIcon.js +3 -3
  386. package/dist/node/presentation/features/atoms/FeatureIcon/index.js +3 -3
  387. package/dist/node/presentation/features/atoms/index.js +3 -3
  388. package/dist/node/presentation/features/index.js +915 -915
  389. package/dist/node/presentation/features/molecules/FeatureCard/FeatureCard.js +101 -101
  390. package/dist/node/presentation/features/molecules/FeatureCard/index.js +101 -101
  391. package/dist/node/presentation/features/molecules/FeatureCategoryHeader/FeatureCategoryHeader.js +15 -15
  392. package/dist/node/presentation/features/molecules/FeatureCategoryHeader/index.js +15 -15
  393. package/dist/node/presentation/features/molecules/FeatureFilters/FeatureFilters.js +23 -23
  394. package/dist/node/presentation/features/molecules/FeatureFilters/index.js +23 -23
  395. package/dist/node/presentation/features/molecules/FeatureHoverPreview/FeatureHoverPreview.js +67 -67
  396. package/dist/node/presentation/features/molecules/FeatureHoverPreview/index.js +67 -67
  397. package/dist/node/presentation/features/molecules/index.js +139 -139
  398. package/dist/node/presentation/features/organisms/FeatureDataViewsList.js +7 -7
  399. package/dist/node/presentation/features/organisms/FeatureDetail/FeatureDetail.js +57 -57
  400. package/dist/node/presentation/features/organisms/FeatureDetail/index.js +57 -57
  401. package/dist/node/presentation/features/organisms/FeatureDiscovery/FeatureDiscovery.js +183 -183
  402. package/dist/node/presentation/features/organisms/FeatureDiscovery/index.js +183 -183
  403. package/dist/node/presentation/features/organisms/FeatureEventsList.js +7 -7
  404. package/dist/node/presentation/features/organisms/FeatureFormsList.js +7 -7
  405. package/dist/node/presentation/features/organisms/FeatureOperationsList.js +7 -7
  406. package/dist/node/presentation/features/organisms/FeaturePresentationsList.js +7 -7
  407. package/dist/node/presentation/features/organisms/index.js +275 -275
  408. package/dist/node/presentation/features/templates/FeatureDataViewDetailTemplate/FeatureDataViewDetailTemplate.js +126 -126
  409. package/dist/node/presentation/features/templates/FeatureDataViewDetailTemplate/index.js +126 -126
  410. package/dist/node/presentation/features/templates/FeatureDataViewsTemplate/FeatureDataViewsTemplate.js +16 -16
  411. package/dist/node/presentation/features/templates/FeatureDataViewsTemplate/index.js +16 -16
  412. package/dist/node/presentation/features/templates/FeatureEventDetailTemplate/FeatureEventDetailTemplate.js +112 -112
  413. package/dist/node/presentation/features/templates/FeatureEventDetailTemplate/index.js +112 -112
  414. package/dist/node/presentation/features/templates/FeatureEventsTemplate/FeatureEventsTemplate.js +16 -16
  415. package/dist/node/presentation/features/templates/FeatureEventsTemplate/index.js +16 -16
  416. package/dist/node/presentation/features/templates/FeatureFormDetailTemplate/FeatureFormDetailTemplate.js +126 -126
  417. package/dist/node/presentation/features/templates/FeatureFormDetailTemplate/index.js +126 -126
  418. package/dist/node/presentation/features/templates/FeatureFormsTemplate/FeatureFormsTemplate.js +16 -16
  419. package/dist/node/presentation/features/templates/FeatureFormsTemplate/index.js +16 -16
  420. package/dist/node/presentation/features/templates/FeatureOperationDetailTemplate/FeatureOperationDetailTemplate.js +110 -110
  421. package/dist/node/presentation/features/templates/FeatureOperationDetailTemplate/index.js +110 -110
  422. package/dist/node/presentation/features/templates/FeatureOperationsTemplate/FeatureOperationsTemplate.js +16 -16
  423. package/dist/node/presentation/features/templates/FeatureOperationsTemplate/index.js +16 -16
  424. package/dist/node/presentation/features/templates/FeatureOverviewTemplate/FeatureOverviewTemplate.js +66 -66
  425. package/dist/node/presentation/features/templates/FeatureOverviewTemplate/index.js +66 -66
  426. package/dist/node/presentation/features/templates/FeaturePresentationDetailTemplate/FeaturePresentationDetailTemplate.js +112 -112
  427. package/dist/node/presentation/features/templates/FeaturePresentationDetailTemplate/index.js +112 -112
  428. package/dist/node/presentation/features/templates/FeaturePresentationsTemplate/FeaturePresentationsTemplate.js +16 -16
  429. package/dist/node/presentation/features/templates/FeaturePresentationsTemplate/index.js +16 -16
  430. package/dist/presentation/features/atoms/FeatureIcon/FeatureIcon.js +3 -3
  431. package/dist/presentation/features/atoms/FeatureIcon/index.js +3 -3
  432. package/dist/presentation/features/atoms/index.js +3 -3
  433. package/dist/presentation/features/index.js +915 -915
  434. package/dist/presentation/features/molecules/FeatureCard/FeatureCard.js +101 -101
  435. package/dist/presentation/features/molecules/FeatureCard/index.js +101 -101
  436. package/dist/presentation/features/molecules/FeatureCategoryHeader/FeatureCategoryHeader.js +15 -15
  437. package/dist/presentation/features/molecules/FeatureCategoryHeader/index.js +15 -15
  438. package/dist/presentation/features/molecules/FeatureFilters/FeatureFilters.js +23 -23
  439. package/dist/presentation/features/molecules/FeatureFilters/index.js +23 -23
  440. package/dist/presentation/features/molecules/FeatureHoverPreview/FeatureHoverPreview.js +67 -67
  441. package/dist/presentation/features/molecules/FeatureHoverPreview/index.js +67 -67
  442. package/dist/presentation/features/molecules/index.js +139 -139
  443. package/dist/presentation/features/organisms/FeatureDataViewsList.js +7 -7
  444. package/dist/presentation/features/organisms/FeatureDetail/FeatureDetail.js +57 -57
  445. package/dist/presentation/features/organisms/FeatureDetail/index.js +57 -57
  446. package/dist/presentation/features/organisms/FeatureDiscovery/FeatureDiscovery.js +183 -183
  447. package/dist/presentation/features/organisms/FeatureDiscovery/index.js +183 -183
  448. package/dist/presentation/features/organisms/FeatureEventsList.js +7 -7
  449. package/dist/presentation/features/organisms/FeatureFormsList.js +7 -7
  450. package/dist/presentation/features/organisms/FeatureOperationsList.js +7 -7
  451. package/dist/presentation/features/organisms/FeaturePresentationsList.js +7 -7
  452. package/dist/presentation/features/organisms/index.js +275 -275
  453. package/dist/presentation/features/templates/FeatureDataViewDetailTemplate/FeatureDataViewDetailTemplate.js +126 -126
  454. package/dist/presentation/features/templates/FeatureDataViewDetailTemplate/index.js +126 -126
  455. package/dist/presentation/features/templates/FeatureDataViewsTemplate/FeatureDataViewsTemplate.js +16 -16
  456. package/dist/presentation/features/templates/FeatureDataViewsTemplate/index.js +16 -16
  457. package/dist/presentation/features/templates/FeatureEventDetailTemplate/FeatureEventDetailTemplate.js +112 -112
  458. package/dist/presentation/features/templates/FeatureEventDetailTemplate/index.js +112 -112
  459. package/dist/presentation/features/templates/FeatureEventsTemplate/FeatureEventsTemplate.js +16 -16
  460. package/dist/presentation/features/templates/FeatureEventsTemplate/index.js +16 -16
  461. package/dist/presentation/features/templates/FeatureFormDetailTemplate/FeatureFormDetailTemplate.js +126 -126
  462. package/dist/presentation/features/templates/FeatureFormDetailTemplate/index.js +126 -126
  463. package/dist/presentation/features/templates/FeatureFormsTemplate/FeatureFormsTemplate.js +16 -16
  464. package/dist/presentation/features/templates/FeatureFormsTemplate/index.js +16 -16
  465. package/dist/presentation/features/templates/FeatureOperationDetailTemplate/FeatureOperationDetailTemplate.js +110 -110
  466. package/dist/presentation/features/templates/FeatureOperationDetailTemplate/index.js +110 -110
  467. package/dist/presentation/features/templates/FeatureOperationsTemplate/FeatureOperationsTemplate.js +16 -16
  468. package/dist/presentation/features/templates/FeatureOperationsTemplate/index.js +16 -16
  469. package/dist/presentation/features/templates/FeatureOverviewTemplate/FeatureOverviewTemplate.js +66 -66
  470. package/dist/presentation/features/templates/FeatureOverviewTemplate/index.js +66 -66
  471. package/dist/presentation/features/templates/FeaturePresentationDetailTemplate/FeaturePresentationDetailTemplate.js +112 -112
  472. package/dist/presentation/features/templates/FeaturePresentationDetailTemplate/index.js +112 -112
  473. package/dist/presentation/features/templates/FeaturePresentationsTemplate/FeaturePresentationsTemplate.js +16 -16
  474. package/dist/presentation/features/templates/FeaturePresentationsTemplate/index.js +16 -16
  475. package/package.json +71 -22
  476. package/src/bundles/LibraryBundle.ts +152 -0
  477. package/src/bundles/index.ts +1 -0
  478. package/src/components/shell/WorkspaceShellRenderer.tsx +90 -0
  479. package/src/components/shell/index.ts +1 -0
@@ -1,152 +1,152 @@
1
1
  // src/components/docs/safety/SafetyMigrationsPage.tsx
2
2
  import Link from "@contractspec/lib.ui-link";
3
3
  import { ChevronRight } from "lucide-react";
4
- import { jsxDEV } from "react/jsx-dev-runtime";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
5
  function SafetyMigrationsPage() {
6
- return /* @__PURE__ */ jsxDEV("div", {
6
+ return /* @__PURE__ */ jsxs("div", {
7
7
  className: "space-y-8",
8
8
  children: [
9
- /* @__PURE__ */ jsxDEV("div", {
9
+ /* @__PURE__ */ jsxs("div", {
10
10
  className: "space-y-4",
11
11
  children: [
12
- /* @__PURE__ */ jsxDEV("h1", {
12
+ /* @__PURE__ */ jsx("h1", {
13
13
  className: "text-4xl font-bold",
14
14
  children: "Migrations"
15
- }, undefined, false, undefined, this),
16
- /* @__PURE__ */ jsxDEV("p", {
15
+ }),
16
+ /* @__PURE__ */ jsxs("p", {
17
17
  className: "text-muted-foreground",
18
18
  children: [
19
19
  "A ",
20
- /* @__PURE__ */ jsxDEV("strong", {
20
+ /* @__PURE__ */ jsx("strong", {
21
21
  children: "schema migration"
22
- }, undefined, false, undefined, this),
22
+ }),
23
23
  " (also called a database migration) is a set of incremental, reversible changes to a database schema. According to",
24
24
  " ",
25
- /* @__PURE__ */ jsxDEV("a", {
25
+ /* @__PURE__ */ jsx("a", {
26
26
  href: "https://en.wikipedia.org/wiki/Schema_migration",
27
27
  target: "_blank",
28
28
  rel: "noopener noreferrer",
29
29
  className: "text-violet-400 hover:text-violet-300",
30
30
  children: "Wikipedia"
31
- }, undefined, false, undefined, this),
31
+ }),
32
32
  `, schema migrations "allow the database schema to evolve as the application's requirements change, while preserving existing data."`
33
33
  ]
34
- }, undefined, true, undefined, this)
34
+ })
35
35
  ]
36
- }, undefined, true, undefined, this),
37
- /* @__PURE__ */ jsxDEV("div", {
36
+ }),
37
+ /* @__PURE__ */ jsxs("div", {
38
38
  className: "space-y-4",
39
39
  children: [
40
- /* @__PURE__ */ jsxDEV("h2", {
40
+ /* @__PURE__ */ jsx("h2", {
41
41
  className: "text-2xl font-bold",
42
42
  children: "Why migrations matter"
43
- }, undefined, false, undefined, this),
44
- /* @__PURE__ */ jsxDEV("p", {
43
+ }),
44
+ /* @__PURE__ */ jsx("p", {
45
45
  className: "text-muted-foreground",
46
46
  children: "As your application evolves, you'll need to change your data model—adding new fields, renaming tables, changing data types, or restructuring relationships. Without a disciplined approach, these changes can lead to:"
47
- }, undefined, false, undefined, this),
48
- /* @__PURE__ */ jsxDEV("ul", {
47
+ }),
48
+ /* @__PURE__ */ jsxs("ul", {
49
49
  className: "text-muted-foreground list-inside list-disc space-y-2",
50
50
  children: [
51
- /* @__PURE__ */ jsxDEV("li", {
51
+ /* @__PURE__ */ jsx("li", {
52
52
  children: "Data loss or corruption"
53
- }, undefined, false, undefined, this),
54
- /* @__PURE__ */ jsxDEV("li", {
53
+ }),
54
+ /* @__PURE__ */ jsx("li", {
55
55
  children: "Downtime during deployments"
56
- }, undefined, false, undefined, this),
57
- /* @__PURE__ */ jsxDEV("li", {
56
+ }),
57
+ /* @__PURE__ */ jsx("li", {
58
58
  children: "Inconsistencies between environments (dev, staging, production)"
59
- }, undefined, false, undefined, this),
60
- /* @__PURE__ */ jsxDEV("li", {
59
+ }),
60
+ /* @__PURE__ */ jsx("li", {
61
61
  children: "Difficulty rolling back failed changes"
62
- }, undefined, false, undefined, this)
62
+ })
63
63
  ]
64
- }, undefined, true, undefined, this),
65
- /* @__PURE__ */ jsxDEV("p", {
64
+ }),
65
+ /* @__PURE__ */ jsx("p", {
66
66
  className: "text-muted-foreground",
67
67
  children: "Migrations solve these problems by treating schema changes as versioned, tested, and reversible operations."
68
- }, undefined, false, undefined, this)
68
+ })
69
69
  ]
70
- }, undefined, true, undefined, this),
71
- /* @__PURE__ */ jsxDEV("div", {
70
+ }),
71
+ /* @__PURE__ */ jsxs("div", {
72
72
  className: "space-y-4",
73
73
  children: [
74
- /* @__PURE__ */ jsxDEV("h2", {
74
+ /* @__PURE__ */ jsx("h2", {
75
75
  className: "text-2xl font-bold",
76
76
  children: "How MigrationSpec works"
77
- }, undefined, false, undefined, this),
78
- /* @__PURE__ */ jsxDEV("p", {
77
+ }),
78
+ /* @__PURE__ */ jsxs("p", {
79
79
  className: "text-muted-foreground",
80
80
  children: [
81
81
  "In ContractSpec, migrations are defined using",
82
82
  " ",
83
- /* @__PURE__ */ jsxDEV("strong", {
83
+ /* @__PURE__ */ jsx("strong", {
84
84
  children: "MigrationSpec"
85
- }, undefined, false, undefined, this),
85
+ }),
86
86
  ". Each migration has:"
87
87
  ]
88
- }, undefined, true, undefined, this),
89
- /* @__PURE__ */ jsxDEV("ul", {
88
+ }),
89
+ /* @__PURE__ */ jsxs("ul", {
90
90
  className: "text-muted-foreground list-inside list-disc space-y-2",
91
91
  children: [
92
- /* @__PURE__ */ jsxDEV("li", {
92
+ /* @__PURE__ */ jsxs("li", {
93
93
  children: [
94
- /* @__PURE__ */ jsxDEV("strong", {
94
+ /* @__PURE__ */ jsx("strong", {
95
95
  children: "Version"
96
- }, undefined, false, undefined, this),
96
+ }),
97
97
  ' – A unique identifier (e.g., "2025-11-13-001") that determines the order of execution.'
98
98
  ]
99
- }, undefined, true, undefined, this),
100
- /* @__PURE__ */ jsxDEV("li", {
99
+ }),
100
+ /* @__PURE__ */ jsxs("li", {
101
101
  children: [
102
- /* @__PURE__ */ jsxDEV("strong", {
102
+ /* @__PURE__ */ jsx("strong", {
103
103
  children: "Up function"
104
- }, undefined, false, undefined, this),
104
+ }),
105
105
  ` – The forward migration that applies the change (e.g., "add column 'email_verified'").`
106
106
  ]
107
- }, undefined, true, undefined, this),
108
- /* @__PURE__ */ jsxDEV("li", {
107
+ }),
108
+ /* @__PURE__ */ jsxs("li", {
109
109
  children: [
110
- /* @__PURE__ */ jsxDEV("strong", {
110
+ /* @__PURE__ */ jsx("strong", {
111
111
  children: "Down function"
112
- }, undefined, false, undefined, this),
112
+ }),
113
113
  ` – The reverse migration that undoes the change (e.g., "drop column 'email_verified'").`
114
114
  ]
115
- }, undefined, true, undefined, this),
116
- /* @__PURE__ */ jsxDEV("li", {
115
+ }),
116
+ /* @__PURE__ */ jsxs("li", {
117
117
  children: [
118
- /* @__PURE__ */ jsxDEV("strong", {
118
+ /* @__PURE__ */ jsx("strong", {
119
119
  children: "Dependencies"
120
- }, undefined, false, undefined, this),
120
+ }),
121
121
  " – Other migrations that must run before this one."
122
122
  ]
123
- }, undefined, true, undefined, this),
124
- /* @__PURE__ */ jsxDEV("li", {
123
+ }),
124
+ /* @__PURE__ */ jsxs("li", {
125
125
  children: [
126
- /* @__PURE__ */ jsxDEV("strong", {
126
+ /* @__PURE__ */ jsx("strong", {
127
127
  children: "Validation"
128
- }, undefined, false, undefined, this),
128
+ }),
129
129
  ' – Optional checks to ensure the migration succeeded (e.g., "verify all users have an email address").'
130
130
  ]
131
- }, undefined, true, undefined, this)
131
+ })
132
132
  ]
133
- }, undefined, true, undefined, this)
133
+ })
134
134
  ]
135
- }, undefined, true, undefined, this),
136
- /* @__PURE__ */ jsxDEV("div", {
135
+ }),
136
+ /* @__PURE__ */ jsxs("div", {
137
137
  className: "space-y-4",
138
138
  children: [
139
- /* @__PURE__ */ jsxDEV("h2", {
139
+ /* @__PURE__ */ jsx("h2", {
140
140
  className: "text-2xl font-bold",
141
141
  children: "Example MigrationSpec"
142
- }, undefined, false, undefined, this),
143
- /* @__PURE__ */ jsxDEV("p", {
142
+ }),
143
+ /* @__PURE__ */ jsx("p", {
144
144
  className: "text-muted-foreground",
145
145
  children: "Here's a migration that adds an email verification field to the users table:"
146
- }, undefined, false, undefined, this),
147
- /* @__PURE__ */ jsxDEV("div", {
146
+ }),
147
+ /* @__PURE__ */ jsx("div", {
148
148
  className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded-lg border p-4 font-mono text-sm",
149
- children: /* @__PURE__ */ jsxDEV("pre", {
149
+ children: /* @__PURE__ */ jsx("pre", {
150
150
  children: `migrationId: add-email-verified
151
151
  version: 2025-11-13-001
152
152
  dependencies: []
@@ -171,210 +171,210 @@ validation:
171
171
  SELECT COUNT(*) FROM users
172
172
  WHERE email_verified IS NULL;
173
173
  expectZeroRows: true`
174
- }, undefined, false, undefined, this)
175
- }, undefined, false, undefined, this)
174
+ })
175
+ })
176
176
  ]
177
- }, undefined, true, undefined, this),
178
- /* @__PURE__ */ jsxDEV("div", {
177
+ }),
178
+ /* @__PURE__ */ jsxs("div", {
179
179
  className: "space-y-4",
180
180
  children: [
181
- /* @__PURE__ */ jsxDEV("h2", {
181
+ /* @__PURE__ */ jsx("h2", {
182
182
  className: "text-2xl font-bold",
183
183
  children: "Running migrations"
184
- }, undefined, false, undefined, this),
185
- /* @__PURE__ */ jsxDEV("p", {
184
+ }),
185
+ /* @__PURE__ */ jsx("p", {
186
186
  className: "text-muted-foreground",
187
187
  children: "Migrations are applied automatically during deployment. The ContractSpec runtime:"
188
- }, undefined, false, undefined, this),
189
- /* @__PURE__ */ jsxDEV("ol", {
188
+ }),
189
+ /* @__PURE__ */ jsxs("ol", {
190
190
  className: "text-muted-foreground list-inside list-decimal space-y-2",
191
191
  children: [
192
- /* @__PURE__ */ jsxDEV("li", {
192
+ /* @__PURE__ */ jsx("li", {
193
193
  children: "Checks which migrations have already been applied (stored in a migrations table)."
194
- }, undefined, false, undefined, this),
195
- /* @__PURE__ */ jsxDEV("li", {
194
+ }),
195
+ /* @__PURE__ */ jsx("li", {
196
196
  children: "Identifies new migrations that need to run."
197
- }, undefined, false, undefined, this),
198
- /* @__PURE__ */ jsxDEV("li", {
197
+ }),
198
+ /* @__PURE__ */ jsx("li", {
199
199
  children: "Executes them in order, respecting dependencies."
200
- }, undefined, false, undefined, this),
201
- /* @__PURE__ */ jsxDEV("li", {
200
+ }),
201
+ /* @__PURE__ */ jsx("li", {
202
202
  children: "Runs validation checks to ensure success."
203
- }, undefined, false, undefined, this),
204
- /* @__PURE__ */ jsxDEV("li", {
203
+ }),
204
+ /* @__PURE__ */ jsx("li", {
205
205
  children: "Records the migration as applied."
206
- }, undefined, false, undefined, this)
206
+ })
207
207
  ]
208
- }, undefined, true, undefined, this),
209
- /* @__PURE__ */ jsxDEV("p", {
208
+ }),
209
+ /* @__PURE__ */ jsx("p", {
210
210
  className: "text-muted-foreground",
211
211
  children: "If a migration fails, the deployment is aborted, and the system remains in its previous state. You can then fix the migration and redeploy."
212
- }, undefined, false, undefined, this)
212
+ })
213
213
  ]
214
- }, undefined, true, undefined, this),
215
- /* @__PURE__ */ jsxDEV("div", {
214
+ }),
215
+ /* @__PURE__ */ jsxs("div", {
216
216
  className: "space-y-4",
217
217
  children: [
218
- /* @__PURE__ */ jsxDEV("h2", {
218
+ /* @__PURE__ */ jsx("h2", {
219
219
  className: "text-2xl font-bold",
220
220
  children: "Rolling back migrations"
221
- }, undefined, false, undefined, this),
222
- /* @__PURE__ */ jsxDEV("p", {
221
+ }),
222
+ /* @__PURE__ */ jsxs("p", {
223
223
  className: "text-muted-foreground",
224
224
  children: [
225
225
  "If you need to roll back a deployment, ContractSpec automatically runs the ",
226
- /* @__PURE__ */ jsxDEV("strong", {
226
+ /* @__PURE__ */ jsx("strong", {
227
227
  children: "down"
228
- }, undefined, false, undefined, this),
228
+ }),
229
229
  " functions of any migrations that were applied. This restores the database to its previous state."
230
230
  ]
231
- }, undefined, true, undefined, this),
232
- /* @__PURE__ */ jsxDEV("p", {
231
+ }),
232
+ /* @__PURE__ */ jsx("p", {
233
233
  className: "text-muted-foreground",
234
234
  children: "Note that rollbacks are not always possible—for example, if you've deleted a column, you cannot recover the data unless you have a backup. For destructive changes, it's best to use a multi-step migration:"
235
- }, undefined, false, undefined, this),
236
- /* @__PURE__ */ jsxDEV("ol", {
235
+ }),
236
+ /* @__PURE__ */ jsxs("ol", {
237
237
  className: "text-muted-foreground list-inside list-decimal space-y-2",
238
238
  children: [
239
- /* @__PURE__ */ jsxDEV("li", {
239
+ /* @__PURE__ */ jsx("li", {
240
240
  children: "Add the new column (reversible)."
241
- }, undefined, false, undefined, this),
242
- /* @__PURE__ */ jsxDEV("li", {
241
+ }),
242
+ /* @__PURE__ */ jsx("li", {
243
243
  children: "Backfill data from the old column to the new column (reversible)."
244
- }, undefined, false, undefined, this),
245
- /* @__PURE__ */ jsxDEV("li", {
244
+ }),
245
+ /* @__PURE__ */ jsx("li", {
246
246
  children: "Update application code to use the new column (reversible)."
247
- }, undefined, false, undefined, this),
248
- /* @__PURE__ */ jsxDEV("li", {
247
+ }),
248
+ /* @__PURE__ */ jsx("li", {
249
249
  children: "Drop the old column (irreversible—only do this after confirming the new column works)."
250
- }, undefined, false, undefined, this)
250
+ })
251
251
  ]
252
- }, undefined, true, undefined, this)
252
+ })
253
253
  ]
254
- }, undefined, true, undefined, this),
255
- /* @__PURE__ */ jsxDEV("div", {
254
+ }),
255
+ /* @__PURE__ */ jsxs("div", {
256
256
  className: "space-y-4",
257
257
  children: [
258
- /* @__PURE__ */ jsxDEV("h2", {
258
+ /* @__PURE__ */ jsx("h2", {
259
259
  className: "text-2xl font-bold",
260
260
  children: "Best practices"
261
- }, undefined, false, undefined, this),
262
- /* @__PURE__ */ jsxDEV("ul", {
261
+ }),
262
+ /* @__PURE__ */ jsxs("ul", {
263
263
  className: "text-muted-foreground list-inside list-disc space-y-2",
264
264
  children: [
265
- /* @__PURE__ */ jsxDEV("li", {
265
+ /* @__PURE__ */ jsxs("li", {
266
266
  children: [
267
- /* @__PURE__ */ jsxDEV("strong", {
267
+ /* @__PURE__ */ jsx("strong", {
268
268
  children: "Test migrations locally"
269
- }, undefined, false, undefined, this),
269
+ }),
270
270
  " – Run them against a copy of production data to catch issues before deploying."
271
271
  ]
272
- }, undefined, true, undefined, this),
273
- /* @__PURE__ */ jsxDEV("li", {
272
+ }),
273
+ /* @__PURE__ */ jsxs("li", {
274
274
  children: [
275
- /* @__PURE__ */ jsxDEV("strong", {
275
+ /* @__PURE__ */ jsx("strong", {
276
276
  children: "Keep migrations small"
277
- }, undefined, false, undefined, this),
277
+ }),
278
278
  " – Each migration should do one thing. This makes them easier to understand and roll back."
279
279
  ]
280
- }, undefined, true, undefined, this),
281
- /* @__PURE__ */ jsxDEV("li", {
280
+ }),
281
+ /* @__PURE__ */ jsxs("li", {
282
282
  children: [
283
- /* @__PURE__ */ jsxDEV("strong", {
283
+ /* @__PURE__ */ jsx("strong", {
284
284
  children: "Write reversible migrations"
285
- }, undefined, false, undefined, this),
285
+ }),
286
286
  " – Always provide a down function, even if you don't plan to roll back."
287
287
  ]
288
- }, undefined, true, undefined, this),
289
- /* @__PURE__ */ jsxDEV("li", {
288
+ }),
289
+ /* @__PURE__ */ jsxs("li", {
290
290
  children: [
291
- /* @__PURE__ */ jsxDEV("strong", {
291
+ /* @__PURE__ */ jsx("strong", {
292
292
  children: "Use transactions"
293
- }, undefined, false, undefined, this),
293
+ }),
294
294
  " – Wrap migrations in database transactions so they either fully succeed or fully fail."
295
295
  ]
296
- }, undefined, true, undefined, this),
297
- /* @__PURE__ */ jsxDEV("li", {
296
+ }),
297
+ /* @__PURE__ */ jsxs("li", {
298
298
  children: [
299
- /* @__PURE__ */ jsxDEV("strong", {
299
+ /* @__PURE__ */ jsx("strong", {
300
300
  children: "Avoid destructive changes"
301
- }, undefined, false, undefined, this),
301
+ }),
302
302
  " – Prefer additive changes (adding columns) over destructive ones (dropping columns). If you must delete data, archive it first."
303
303
  ]
304
- }, undefined, true, undefined, this),
305
- /* @__PURE__ */ jsxDEV("li", {
304
+ }),
305
+ /* @__PURE__ */ jsxs("li", {
306
306
  children: [
307
- /* @__PURE__ */ jsxDEV("strong", {
307
+ /* @__PURE__ */ jsx("strong", {
308
308
  children: "Version your migrations"
309
- }, undefined, false, undefined, this),
309
+ }),
310
310
  " – Use timestamps or sequential numbers to ensure migrations run in the correct order."
311
311
  ]
312
- }, undefined, true, undefined, this),
313
- /* @__PURE__ */ jsxDEV("li", {
312
+ }),
313
+ /* @__PURE__ */ jsxs("li", {
314
314
  children: [
315
- /* @__PURE__ */ jsxDEV("strong", {
315
+ /* @__PURE__ */ jsx("strong", {
316
316
  children: "Document breaking changes"
317
- }, undefined, false, undefined, this),
317
+ }),
318
318
  " – If a migration requires application code changes, note this in the migration description."
319
319
  ]
320
- }, undefined, true, undefined, this)
320
+ })
321
321
  ]
322
- }, undefined, true, undefined, this)
322
+ })
323
323
  ]
324
- }, undefined, true, undefined, this),
325
- /* @__PURE__ */ jsxDEV("div", {
324
+ }),
325
+ /* @__PURE__ */ jsxs("div", {
326
326
  className: "space-y-4",
327
327
  children: [
328
- /* @__PURE__ */ jsxDEV("h2", {
328
+ /* @__PURE__ */ jsx("h2", {
329
329
  className: "text-2xl font-bold",
330
330
  children: "Zero-downtime migrations"
331
- }, undefined, false, undefined, this),
332
- /* @__PURE__ */ jsxDEV("p", {
331
+ }),
332
+ /* @__PURE__ */ jsx("p", {
333
333
  className: "text-muted-foreground",
334
334
  children: "Some migrations can cause downtime if not handled carefully. For example, adding a NOT NULL column to a large table can lock the table for minutes. To avoid this, use a multi-step approach:"
335
- }, undefined, false, undefined, this),
336
- /* @__PURE__ */ jsxDEV("ol", {
335
+ }),
336
+ /* @__PURE__ */ jsxs("ol", {
337
337
  className: "text-muted-foreground list-inside list-decimal space-y-2",
338
338
  children: [
339
- /* @__PURE__ */ jsxDEV("li", {
339
+ /* @__PURE__ */ jsx("li", {
340
340
  children: "Add the column as nullable."
341
- }, undefined, false, undefined, this),
342
- /* @__PURE__ */ jsxDEV("li", {
341
+ }),
342
+ /* @__PURE__ */ jsx("li", {
343
343
  children: "Backfill the column in batches (without locking the table)."
344
- }, undefined, false, undefined, this),
345
- /* @__PURE__ */ jsxDEV("li", {
344
+ }),
345
+ /* @__PURE__ */ jsx("li", {
346
346
  children: "Add the NOT NULL constraint once all rows are populated."
347
- }, undefined, false, undefined, this)
347
+ })
348
348
  ]
349
- }, undefined, true, undefined, this),
350
- /* @__PURE__ */ jsxDEV("p", {
349
+ }),
350
+ /* @__PURE__ */ jsx("p", {
351
351
  className: "text-muted-foreground",
352
352
  children: "ContractSpec's migration system supports this pattern by allowing you to split a logical change into multiple versioned migrations."
353
- }, undefined, false, undefined, this)
353
+ })
354
354
  ]
355
- }, undefined, true, undefined, this),
356
- /* @__PURE__ */ jsxDEV("div", {
355
+ }),
356
+ /* @__PURE__ */ jsxs("div", {
357
357
  className: "flex items-center gap-4 pt-4",
358
358
  children: [
359
- /* @__PURE__ */ jsxDEV(Link, {
359
+ /* @__PURE__ */ jsx(Link, {
360
360
  href: "/docs/safety/auditing",
361
361
  className: "btn-ghost",
362
362
  children: "Previous: Audit Logs"
363
- }, undefined, false, undefined, this),
364
- /* @__PURE__ */ jsxDEV(Link, {
363
+ }),
364
+ /* @__PURE__ */ jsxs(Link, {
365
365
  href: "/docs/advanced/renderers",
366
366
  className: "btn-primary",
367
367
  children: [
368
368
  "Next: Advanced Topics ",
369
- /* @__PURE__ */ jsxDEV(ChevronRight, {
369
+ /* @__PURE__ */ jsx(ChevronRight, {
370
370
  size: 16
371
- }, undefined, false, undefined, this)
371
+ })
372
372
  ]
373
- }, undefined, true, undefined, this)
373
+ })
374
374
  ]
375
- }, undefined, true, undefined, this)
375
+ })
376
376
  ]
377
- }, undefined, true, undefined, this);
377
+ });
378
378
  }
379
379
  export {
380
380
  SafetyMigrationsPage