@contractspec/bundle.library 3.4.3 → 3.5.2

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 (556) hide show
  1. package/.turbo/turbo-build.log +494 -488
  2. package/CHANGELOG.md +91 -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/generated/docs-index.generated.d.ts +6 -6
  44. package/dist/components/docs/getting-started/CLIPage.js +95 -95
  45. package/dist/components/docs/getting-started/CompatibilityPage.js +81 -81
  46. package/dist/components/docs/getting-started/DataViewTutorialPage.js +57 -57
  47. package/dist/components/docs/getting-started/DeveloperToolsPage.js +61 -61
  48. package/dist/components/docs/getting-started/HelloWorldPage.js +77 -77
  49. package/dist/components/docs/getting-started/InstallationPage.js +65 -65
  50. package/dist/components/docs/getting-started/StartHerePage.js +51 -51
  51. package/dist/components/docs/getting-started/TroubleshootingPage.js +73 -73
  52. package/dist/components/docs/getting-started/VSCodeExtensionPage.js +171 -171
  53. package/dist/components/docs/getting-started/index.js +731 -731
  54. package/dist/components/docs/guides/GuideCIDiffGatingPage.js +80 -80
  55. package/dist/components/docs/guides/GuideContractTypesPage.js +232 -232
  56. package/dist/components/docs/guides/GuideDocsPipelinePage.js +82 -82
  57. package/dist/components/docs/guides/GuideGenerateDocsClientsSchemasPage.js +84 -84
  58. package/dist/components/docs/guides/GuideImportExistingCodebasesPage.js +324 -324
  59. package/dist/components/docs/guides/GuideNextjsOneEndpointPage.js +107 -107
  60. package/dist/components/docs/guides/GuideSpecValidationTypingPage.js +78 -78
  61. package/dist/components/docs/guides/GuidesIndexPage.js +43 -43
  62. package/dist/components/docs/guides/index.js +976 -976
  63. package/dist/components/docs/index.js +10792 -10792
  64. package/dist/components/docs/integrations/IntegrationsCircuitBreakersPage.js +17 -17
  65. package/dist/components/docs/integrations/IntegrationsElevenLabsPage.js +47 -47
  66. package/dist/components/docs/integrations/IntegrationsGithubPage.js +61 -61
  67. package/dist/components/docs/integrations/IntegrationsGmailPage.js +49 -49
  68. package/dist/components/docs/integrations/IntegrationsGoogleCalendarPage.js +33 -33
  69. package/dist/components/docs/integrations/IntegrationsHealthRoutingPage.js +65 -65
  70. package/dist/components/docs/integrations/IntegrationsMistralPage.js +69 -69
  71. package/dist/components/docs/integrations/IntegrationsOpenAIPage.js +65 -65
  72. package/dist/components/docs/integrations/IntegrationsOverviewPage.js +313 -313
  73. package/dist/components/docs/integrations/IntegrationsPostmarkPage.js +101 -101
  74. package/dist/components/docs/integrations/IntegrationsPowensPage.js +121 -121
  75. package/dist/components/docs/integrations/IntegrationsQdrantPage.js +49 -49
  76. package/dist/components/docs/integrations/IntegrationsResendPage.js +45 -45
  77. package/dist/components/docs/integrations/IntegrationsS3Page.js +57 -57
  78. package/dist/components/docs/integrations/IntegrationsSlackPage.js +63 -63
  79. package/dist/components/docs/integrations/IntegrationsSpecModelPage.js +139 -139
  80. package/dist/components/docs/integrations/IntegrationsStripePage.js +159 -159
  81. package/dist/components/docs/integrations/IntegrationsTwilioPage.js +61 -61
  82. package/dist/components/docs/integrations/IntegrationsWhatsappMetaPage.js +63 -63
  83. package/dist/components/docs/integrations/IntegrationsWhatsappTwilioPage.js +65 -65
  84. package/dist/components/docs/integrations/index.js +1642 -1642
  85. package/dist/components/docs/intent/ContractFirstApiPage.js +51 -51
  86. package/dist/components/docs/intent/DeterministicCodegenPage.js +59 -59
  87. package/dist/components/docs/intent/GenerateClientFromSchemaPage.js +85 -85
  88. package/dist/components/docs/intent/OpenapiAlternativePage.js +91 -91
  89. package/dist/components/docs/intent/SchemaValidationTypescriptPage.js +59 -59
  90. package/dist/components/docs/intent/SpecDrivenDevelopmentPage.js +51 -51
  91. package/dist/components/docs/intent/index.js +396 -396
  92. package/dist/components/docs/knowledge/KnowledgeCategoriesPage.js +371 -371
  93. package/dist/components/docs/knowledge/KnowledgeExamplesPage.js +79 -79
  94. package/dist/components/docs/knowledge/KnowledgeOverviewPage.js +185 -185
  95. package/dist/components/docs/knowledge/KnowledgeSourcesPage.js +187 -187
  96. package/dist/components/docs/knowledge/KnowledgeSpacesPage.js +141 -141
  97. package/dist/components/docs/knowledge/index.js +963 -963
  98. package/dist/components/docs/libraries/LibrariesAccessibilityPage.js +85 -85
  99. package/dist/components/docs/libraries/LibrariesAiAgentPage.js +63 -63
  100. package/dist/components/docs/libraries/LibrariesAnalyticsPage.js +33 -33
  101. package/dist/components/docs/libraries/LibrariesContentGenPage.js +43 -43
  102. package/dist/components/docs/libraries/LibrariesContractsPage.js +125 -125
  103. package/dist/components/docs/libraries/LibrariesCostTrackingPage.js +45 -45
  104. package/dist/components/docs/libraries/LibrariesDataBackendPage.js +69 -69
  105. package/dist/components/docs/libraries/LibrariesDataViewsPage.js +79 -79
  106. package/dist/components/docs/libraries/LibrariesDesignSystemPage.js +129 -129
  107. package/dist/components/docs/libraries/LibrariesEvolutionPage.js +49 -49
  108. package/dist/components/docs/libraries/LibrariesGraphQLPage.js +73 -73
  109. package/dist/components/docs/libraries/LibrariesGrowthPage.js +35 -35
  110. package/dist/components/docs/libraries/LibrariesMultiTenancyPage.js +43 -43
  111. package/dist/components/docs/libraries/LibrariesObservabilityPage.js +53 -53
  112. package/dist/components/docs/libraries/LibrariesOverlayEnginePage.js +45 -45
  113. package/dist/components/docs/libraries/LibrariesOverviewPage.js +191 -191
  114. package/dist/components/docs/libraries/LibrariesPersonalizationPage.js +47 -47
  115. package/dist/components/docs/libraries/LibrariesProgressiveDeliveryPage.js +53 -53
  116. package/dist/components/docs/libraries/LibrariesResiliencePage.js +49 -49
  117. package/dist/components/docs/libraries/LibrariesRuntimePage.js +87 -87
  118. package/dist/components/docs/libraries/LibrariesSLOPage.js +47 -47
  119. package/dist/components/docs/libraries/LibrariesSchemaPage.js +139 -139
  120. package/dist/components/docs/libraries/LibrariesSupportBotPage.js +57 -57
  121. package/dist/components/docs/libraries/LibrariesTestingPage.js +49 -49
  122. package/dist/components/docs/libraries/LibrariesUIKitPage.js +107 -107
  123. package/dist/components/docs/libraries/LibrariesWorkflowComposerPage.js +35 -35
  124. package/dist/components/docs/libraries/LibrariesWorkflowsPage.js +89 -89
  125. package/dist/components/docs/libraries/index.js +1919 -1919
  126. package/dist/components/docs/manifesto/ManifestoPage.js +79 -79
  127. package/dist/components/docs/ops/AutoEvolutionOpsPage.js +59 -59
  128. package/dist/components/docs/ops/DistributedTracingOpsPage.js +33 -33
  129. package/dist/components/docs/ops/index.js +92 -92
  130. package/dist/components/docs/reference/DocsMarkdownContent.js +27 -27
  131. package/dist/components/docs/reference/DocsReferenceContent.js +34 -34
  132. package/dist/components/docs/reference/DocsReferenceIndexClient.js +23 -23
  133. package/dist/components/docs/reference/DocsReferenceIndexPage.js +26 -26
  134. package/dist/components/docs/reference/DocsReferencePage.js +37 -37
  135. package/dist/components/docs/reference/index.js +63 -63
  136. package/dist/components/docs/safety/SafetyAuditingPage.js +161 -161
  137. package/dist/components/docs/safety/SafetyMigrationsPage.js +169 -169
  138. package/dist/components/docs/safety/SafetyOverviewPage.js +99 -99
  139. package/dist/components/docs/safety/SafetyPDPPage.js +137 -137
  140. package/dist/components/docs/safety/SafetySecurityTrustPage.js +95 -95
  141. package/dist/components/docs/safety/SafetySigningPage.js +39 -39
  142. package/dist/components/docs/safety/SafetyTenantIsolationPage.js +33 -33
  143. package/dist/components/docs/safety/index.js +733 -733
  144. package/dist/components/docs/shared/StudioPrompt.js +9 -9
  145. package/dist/components/docs/specs/SpecsCapabilitiesPage.js +61 -61
  146. package/dist/components/docs/specs/SpecsDataViewsPage.js +119 -119
  147. package/dist/components/docs/specs/SpecsOverlaysPage.js +171 -171
  148. package/dist/components/docs/specs/SpecsOverviewPage.js +167 -167
  149. package/dist/components/docs/specs/SpecsPolicyPage.js +179 -179
  150. package/dist/components/docs/specs/SpecsWorkflowsPage.js +141 -141
  151. package/dist/components/docs/specs/index.js +838 -838
  152. package/dist/components/docs/studio/StudioBYOKPage.js +9 -9
  153. package/dist/components/docs/studio/StudioDeploymentsPage.js +9 -9
  154. package/dist/components/docs/studio/StudioGettingStartedPage.js +9 -9
  155. package/dist/components/docs/studio/StudioIntegrationsPage.js +9 -9
  156. package/dist/components/docs/studio/StudioOverviewPage.js +33 -33
  157. package/dist/components/docs/studio/StudioVisualBuilderPage.js +9 -9
  158. package/dist/components/docs/studio/index.js +78 -78
  159. package/dist/components/integrations/index.js +209 -209
  160. package/dist/components/integrations/molecules/IntegrationCard.js +33 -33
  161. package/dist/components/integrations/organisms/IntegrationMarketplace.js +71 -71
  162. package/dist/components/integrations/organisms/IntegrationSettings.js +98 -98
  163. package/dist/components/integrations/organisms/KnowledgeSourceList.js +40 -40
  164. package/dist/components/legal/PrivacyTemplate.js +477 -477
  165. package/dist/components/legal/TermsTemplate.js +421 -421
  166. package/dist/components/legal/index.js +898 -898
  167. package/dist/components/shared/FeatureGateNotice.js +13 -13
  168. package/dist/components/shared/index.js +13 -13
  169. package/dist/components/shell/WorkspaceHeader.js +37 -37
  170. package/dist/components/shell/WorkspaceProjectShellLayout.js +77 -77
  171. package/dist/components/shell/WorkspaceShellRenderer.d.ts +17 -0
  172. package/dist/components/shell/WorkspaceShellRenderer.js +229 -0
  173. package/dist/components/shell/WorkspaceSidebar.js +27 -27
  174. package/dist/components/shell/index.d.ts +1 -0
  175. package/dist/components/shell/index.js +140 -77
  176. package/dist/components/templates/index.js +272 -272
  177. package/dist/components/templates/messaging/ConversationList.js +27 -27
  178. package/dist/components/templates/messaging/MessageComposer.js +27 -27
  179. package/dist/components/templates/messaging/MessageThread.js +18 -18
  180. package/dist/components/templates/messaging/MessagingWorkspace.js +65 -65
  181. package/dist/components/templates/messaging/index.js +65 -65
  182. package/dist/components/templates/recipes/LanguageSwitcher.js +5 -5
  183. package/dist/components/templates/recipes/RecipeCard.js +26 -26
  184. package/dist/components/templates/recipes/RecipeDetail.js +33 -33
  185. package/dist/components/templates/recipes/RecipeList.js +80 -80
  186. package/dist/components/templates/recipes/index.js +80 -80
  187. package/dist/components/templates/todos/FilterBar.js +39 -39
  188. package/dist/components/templates/todos/TaskForm.js +43 -43
  189. package/dist/components/templates/todos/TaskItem.js +30 -30
  190. package/dist/components/templates/todos/TaskList.js +127 -127
  191. package/dist/components/templates/todos/index.js +127 -127
  192. package/dist/index.js +12324 -12261
  193. package/dist/infrastructure/elysia/index.js +8 -8
  194. package/dist/infrastructure/elysia/logger.js +8 -8
  195. package/dist/infrastructure/index.js +8 -8
  196. package/dist/libs/posthog/client.js +2 -2
  197. package/dist/node/application/index.js +8 -8
  198. package/dist/node/application/mcp/cliMcp.js +8 -8
  199. package/dist/node/application/mcp/contractsMcp.js +8 -8
  200. package/dist/node/application/mcp/docsMcp.js +8 -8
  201. package/dist/node/application/mcp/index.js +8 -8
  202. package/dist/node/application/mcp/internalMcp.js +8 -8
  203. package/dist/node/application/mcp/providerRankingMcp.js +8 -8
  204. package/dist/node/bundles/LibraryBundle.js +138 -0
  205. package/dist/node/bundles/index.js +138 -0
  206. package/dist/node/components/docs/DocsIndexPage.js +91 -91
  207. package/dist/node/components/docs/advanced/AdvancedMCPPage.js +125 -125
  208. package/dist/node/components/docs/advanced/AdvancedOverlayEditorPage.js +49 -49
  209. package/dist/node/components/docs/advanced/AdvancedRenderersPage.js +51 -51
  210. package/dist/node/components/docs/advanced/AdvancedSpecExperimentsPage.js +35 -35
  211. package/dist/node/components/docs/advanced/AdvancedTelemetryPage.js +177 -177
  212. package/dist/node/components/docs/advanced/AdvancedWorkflowMonitoringPage.js +45 -45
  213. package/dist/node/components/docs/advanced/index.js +482 -482
  214. package/dist/node/components/docs/architecture/ArchitectureAppConfigPage.js +107 -107
  215. package/dist/node/components/docs/architecture/ArchitectureControlPlanePage.js +73 -73
  216. package/dist/node/components/docs/architecture/ArchitectureIntegrationBindingPage.js +117 -117
  217. package/dist/node/components/docs/architecture/ArchitectureKnowledgeBindingPage.js +175 -175
  218. package/dist/node/components/docs/architecture/ArchitectureMultiTenancyPage.js +71 -71
  219. package/dist/node/components/docs/architecture/ArchitectureOverviewPage.js +205 -205
  220. package/dist/node/components/docs/architecture/index.js +748 -748
  221. package/dist/node/components/docs/comparison/ComparisonAutomationPlatformsPage.js +117 -117
  222. package/dist/node/components/docs/comparison/ComparisonEnterprisePlatformsPage.js +111 -111
  223. package/dist/node/components/docs/comparison/ComparisonInternalToolBuildersPage.js +117 -117
  224. package/dist/node/components/docs/comparison/ComparisonOverviewPage.js +97 -97
  225. package/dist/node/components/docs/comparison/ComparisonWindmillPage.js +125 -125
  226. package/dist/node/components/docs/comparison/ComparisonWorkflowEnginesPage.js +171 -171
  227. package/dist/node/components/docs/comparison/index.js +738 -738
  228. package/dist/node/components/docs/ecosystem/IntegrationsPage.js +45 -45
  229. package/dist/node/components/docs/ecosystem/PluginsPage.js +73 -73
  230. package/dist/node/components/docs/ecosystem/RegistryPage.js +37 -37
  231. package/dist/node/components/docs/ecosystem/TemplatesPage.js +56 -56
  232. package/dist/node/components/docs/ecosystem/index.js +211 -211
  233. package/dist/node/components/docs/examples/DocsExamplesPage.js +21 -21
  234. package/dist/node/components/docs/examples/index.js +21 -21
  235. package/dist/node/components/docs/getting-started/CLIPage.js +95 -95
  236. package/dist/node/components/docs/getting-started/CompatibilityPage.js +81 -81
  237. package/dist/node/components/docs/getting-started/DataViewTutorialPage.js +57 -57
  238. package/dist/node/components/docs/getting-started/DeveloperToolsPage.js +61 -61
  239. package/dist/node/components/docs/getting-started/HelloWorldPage.js +77 -77
  240. package/dist/node/components/docs/getting-started/InstallationPage.js +65 -65
  241. package/dist/node/components/docs/getting-started/StartHerePage.js +51 -51
  242. package/dist/node/components/docs/getting-started/TroubleshootingPage.js +73 -73
  243. package/dist/node/components/docs/getting-started/VSCodeExtensionPage.js +171 -171
  244. package/dist/node/components/docs/getting-started/index.js +731 -731
  245. package/dist/node/components/docs/guides/GuideCIDiffGatingPage.js +80 -80
  246. package/dist/node/components/docs/guides/GuideContractTypesPage.js +232 -232
  247. package/dist/node/components/docs/guides/GuideDocsPipelinePage.js +82 -82
  248. package/dist/node/components/docs/guides/GuideGenerateDocsClientsSchemasPage.js +84 -84
  249. package/dist/node/components/docs/guides/GuideImportExistingCodebasesPage.js +324 -324
  250. package/dist/node/components/docs/guides/GuideNextjsOneEndpointPage.js +107 -107
  251. package/dist/node/components/docs/guides/GuideSpecValidationTypingPage.js +78 -78
  252. package/dist/node/components/docs/guides/GuidesIndexPage.js +43 -43
  253. package/dist/node/components/docs/guides/index.js +976 -976
  254. package/dist/node/components/docs/index.js +10792 -10792
  255. package/dist/node/components/docs/integrations/IntegrationsCircuitBreakersPage.js +17 -17
  256. package/dist/node/components/docs/integrations/IntegrationsElevenLabsPage.js +47 -47
  257. package/dist/node/components/docs/integrations/IntegrationsGithubPage.js +61 -61
  258. package/dist/node/components/docs/integrations/IntegrationsGmailPage.js +49 -49
  259. package/dist/node/components/docs/integrations/IntegrationsGoogleCalendarPage.js +33 -33
  260. package/dist/node/components/docs/integrations/IntegrationsHealthRoutingPage.js +65 -65
  261. package/dist/node/components/docs/integrations/IntegrationsMistralPage.js +69 -69
  262. package/dist/node/components/docs/integrations/IntegrationsOpenAIPage.js +65 -65
  263. package/dist/node/components/docs/integrations/IntegrationsOverviewPage.js +313 -313
  264. package/dist/node/components/docs/integrations/IntegrationsPostmarkPage.js +101 -101
  265. package/dist/node/components/docs/integrations/IntegrationsPowensPage.js +121 -121
  266. package/dist/node/components/docs/integrations/IntegrationsQdrantPage.js +49 -49
  267. package/dist/node/components/docs/integrations/IntegrationsResendPage.js +45 -45
  268. package/dist/node/components/docs/integrations/IntegrationsS3Page.js +57 -57
  269. package/dist/node/components/docs/integrations/IntegrationsSlackPage.js +63 -63
  270. package/dist/node/components/docs/integrations/IntegrationsSpecModelPage.js +139 -139
  271. package/dist/node/components/docs/integrations/IntegrationsStripePage.js +159 -159
  272. package/dist/node/components/docs/integrations/IntegrationsTwilioPage.js +61 -61
  273. package/dist/node/components/docs/integrations/IntegrationsWhatsappMetaPage.js +63 -63
  274. package/dist/node/components/docs/integrations/IntegrationsWhatsappTwilioPage.js +65 -65
  275. package/dist/node/components/docs/integrations/index.js +1642 -1642
  276. package/dist/node/components/docs/intent/ContractFirstApiPage.js +51 -51
  277. package/dist/node/components/docs/intent/DeterministicCodegenPage.js +59 -59
  278. package/dist/node/components/docs/intent/GenerateClientFromSchemaPage.js +85 -85
  279. package/dist/node/components/docs/intent/OpenapiAlternativePage.js +91 -91
  280. package/dist/node/components/docs/intent/SchemaValidationTypescriptPage.js +59 -59
  281. package/dist/node/components/docs/intent/SpecDrivenDevelopmentPage.js +51 -51
  282. package/dist/node/components/docs/intent/index.js +396 -396
  283. package/dist/node/components/docs/knowledge/KnowledgeCategoriesPage.js +371 -371
  284. package/dist/node/components/docs/knowledge/KnowledgeExamplesPage.js +79 -79
  285. package/dist/node/components/docs/knowledge/KnowledgeOverviewPage.js +185 -185
  286. package/dist/node/components/docs/knowledge/KnowledgeSourcesPage.js +187 -187
  287. package/dist/node/components/docs/knowledge/KnowledgeSpacesPage.js +141 -141
  288. package/dist/node/components/docs/knowledge/index.js +963 -963
  289. package/dist/node/components/docs/libraries/LibrariesAccessibilityPage.js +85 -85
  290. package/dist/node/components/docs/libraries/LibrariesAiAgentPage.js +63 -63
  291. package/dist/node/components/docs/libraries/LibrariesAnalyticsPage.js +33 -33
  292. package/dist/node/components/docs/libraries/LibrariesContentGenPage.js +43 -43
  293. package/dist/node/components/docs/libraries/LibrariesContractsPage.js +125 -125
  294. package/dist/node/components/docs/libraries/LibrariesCostTrackingPage.js +45 -45
  295. package/dist/node/components/docs/libraries/LibrariesDataBackendPage.js +69 -69
  296. package/dist/node/components/docs/libraries/LibrariesDataViewsPage.js +79 -79
  297. package/dist/node/components/docs/libraries/LibrariesDesignSystemPage.js +129 -129
  298. package/dist/node/components/docs/libraries/LibrariesEvolutionPage.js +49 -49
  299. package/dist/node/components/docs/libraries/LibrariesGraphQLPage.js +73 -73
  300. package/dist/node/components/docs/libraries/LibrariesGrowthPage.js +35 -35
  301. package/dist/node/components/docs/libraries/LibrariesMultiTenancyPage.js +43 -43
  302. package/dist/node/components/docs/libraries/LibrariesObservabilityPage.js +53 -53
  303. package/dist/node/components/docs/libraries/LibrariesOverlayEnginePage.js +45 -45
  304. package/dist/node/components/docs/libraries/LibrariesOverviewPage.js +191 -191
  305. package/dist/node/components/docs/libraries/LibrariesPersonalizationPage.js +47 -47
  306. package/dist/node/components/docs/libraries/LibrariesProgressiveDeliveryPage.js +53 -53
  307. package/dist/node/components/docs/libraries/LibrariesResiliencePage.js +49 -49
  308. package/dist/node/components/docs/libraries/LibrariesRuntimePage.js +87 -87
  309. package/dist/node/components/docs/libraries/LibrariesSLOPage.js +47 -47
  310. package/dist/node/components/docs/libraries/LibrariesSchemaPage.js +139 -139
  311. package/dist/node/components/docs/libraries/LibrariesSupportBotPage.js +57 -57
  312. package/dist/node/components/docs/libraries/LibrariesTestingPage.js +49 -49
  313. package/dist/node/components/docs/libraries/LibrariesUIKitPage.js +107 -107
  314. package/dist/node/components/docs/libraries/LibrariesWorkflowComposerPage.js +35 -35
  315. package/dist/node/components/docs/libraries/LibrariesWorkflowsPage.js +89 -89
  316. package/dist/node/components/docs/libraries/index.js +1919 -1919
  317. package/dist/node/components/docs/manifesto/ManifestoPage.js +79 -79
  318. package/dist/node/components/docs/ops/AutoEvolutionOpsPage.js +59 -59
  319. package/dist/node/components/docs/ops/DistributedTracingOpsPage.js +33 -33
  320. package/dist/node/components/docs/ops/index.js +92 -92
  321. package/dist/node/components/docs/reference/DocsMarkdownContent.js +27 -27
  322. package/dist/node/components/docs/reference/DocsReferenceContent.js +34 -34
  323. package/dist/node/components/docs/reference/DocsReferenceIndexClient.js +23 -23
  324. package/dist/node/components/docs/reference/DocsReferenceIndexPage.js +26 -26
  325. package/dist/node/components/docs/reference/DocsReferencePage.js +37 -37
  326. package/dist/node/components/docs/reference/index.js +63 -63
  327. package/dist/node/components/docs/safety/SafetyAuditingPage.js +161 -161
  328. package/dist/node/components/docs/safety/SafetyMigrationsPage.js +169 -169
  329. package/dist/node/components/docs/safety/SafetyOverviewPage.js +99 -99
  330. package/dist/node/components/docs/safety/SafetyPDPPage.js +137 -137
  331. package/dist/node/components/docs/safety/SafetySecurityTrustPage.js +95 -95
  332. package/dist/node/components/docs/safety/SafetySigningPage.js +39 -39
  333. package/dist/node/components/docs/safety/SafetyTenantIsolationPage.js +33 -33
  334. package/dist/node/components/docs/safety/index.js +733 -733
  335. package/dist/node/components/docs/shared/StudioPrompt.js +9 -9
  336. package/dist/node/components/docs/specs/SpecsCapabilitiesPage.js +61 -61
  337. package/dist/node/components/docs/specs/SpecsDataViewsPage.js +119 -119
  338. package/dist/node/components/docs/specs/SpecsOverlaysPage.js +171 -171
  339. package/dist/node/components/docs/specs/SpecsOverviewPage.js +167 -167
  340. package/dist/node/components/docs/specs/SpecsPolicyPage.js +179 -179
  341. package/dist/node/components/docs/specs/SpecsWorkflowsPage.js +141 -141
  342. package/dist/node/components/docs/specs/index.js +838 -838
  343. package/dist/node/components/docs/studio/StudioBYOKPage.js +9 -9
  344. package/dist/node/components/docs/studio/StudioDeploymentsPage.js +9 -9
  345. package/dist/node/components/docs/studio/StudioGettingStartedPage.js +9 -9
  346. package/dist/node/components/docs/studio/StudioIntegrationsPage.js +9 -9
  347. package/dist/node/components/docs/studio/StudioOverviewPage.js +33 -33
  348. package/dist/node/components/docs/studio/StudioVisualBuilderPage.js +9 -9
  349. package/dist/node/components/docs/studio/index.js +78 -78
  350. package/dist/node/components/integrations/index.js +209 -209
  351. package/dist/node/components/integrations/molecules/IntegrationCard.js +33 -33
  352. package/dist/node/components/integrations/organisms/IntegrationMarketplace.js +71 -71
  353. package/dist/node/components/integrations/organisms/IntegrationSettings.js +98 -98
  354. package/dist/node/components/integrations/organisms/KnowledgeSourceList.js +40 -40
  355. package/dist/node/components/legal/PrivacyTemplate.js +477 -477
  356. package/dist/node/components/legal/TermsTemplate.js +421 -421
  357. package/dist/node/components/legal/index.js +898 -898
  358. package/dist/node/components/shared/FeatureGateNotice.js +13 -13
  359. package/dist/node/components/shared/index.js +13 -13
  360. package/dist/node/components/shell/WorkspaceHeader.js +37 -37
  361. package/dist/node/components/shell/WorkspaceProjectShellLayout.js +77 -77
  362. package/dist/node/components/shell/WorkspaceShellRenderer.js +228 -0
  363. package/dist/node/components/shell/WorkspaceSidebar.js +27 -27
  364. package/dist/node/components/shell/index.js +140 -77
  365. package/dist/node/components/templates/index.js +272 -272
  366. package/dist/node/components/templates/messaging/ConversationList.js +27 -27
  367. package/dist/node/components/templates/messaging/MessageComposer.js +27 -27
  368. package/dist/node/components/templates/messaging/MessageThread.js +18 -18
  369. package/dist/node/components/templates/messaging/MessagingWorkspace.js +65 -65
  370. package/dist/node/components/templates/messaging/index.js +65 -65
  371. package/dist/node/components/templates/recipes/LanguageSwitcher.js +5 -5
  372. package/dist/node/components/templates/recipes/RecipeCard.js +26 -26
  373. package/dist/node/components/templates/recipes/RecipeDetail.js +33 -33
  374. package/dist/node/components/templates/recipes/RecipeList.js +80 -80
  375. package/dist/node/components/templates/recipes/index.js +80 -80
  376. package/dist/node/components/templates/todos/FilterBar.js +39 -39
  377. package/dist/node/components/templates/todos/TaskForm.js +43 -43
  378. package/dist/node/components/templates/todos/TaskItem.js +30 -30
  379. package/dist/node/components/templates/todos/TaskList.js +127 -127
  380. package/dist/node/components/templates/todos/index.js +127 -127
  381. package/dist/node/index.js +12324 -12261
  382. package/dist/node/infrastructure/elysia/index.js +8 -8
  383. package/dist/node/infrastructure/elysia/logger.js +8 -8
  384. package/dist/node/infrastructure/index.js +8 -8
  385. package/dist/node/libs/posthog/client.js +2 -2
  386. package/dist/node/presentation/features/atoms/FeatureIcon/FeatureIcon.js +3 -3
  387. package/dist/node/presentation/features/atoms/FeatureIcon/index.js +3 -3
  388. package/dist/node/presentation/features/atoms/index.js +3 -3
  389. package/dist/node/presentation/features/index.js +915 -915
  390. package/dist/node/presentation/features/molecules/FeatureCard/FeatureCard.js +101 -101
  391. package/dist/node/presentation/features/molecules/FeatureCard/index.js +101 -101
  392. package/dist/node/presentation/features/molecules/FeatureCategoryHeader/FeatureCategoryHeader.js +15 -15
  393. package/dist/node/presentation/features/molecules/FeatureCategoryHeader/index.js +15 -15
  394. package/dist/node/presentation/features/molecules/FeatureFilters/FeatureFilters.js +23 -23
  395. package/dist/node/presentation/features/molecules/FeatureFilters/index.js +23 -23
  396. package/dist/node/presentation/features/molecules/FeatureHoverPreview/FeatureHoverPreview.js +67 -67
  397. package/dist/node/presentation/features/molecules/FeatureHoverPreview/index.js +67 -67
  398. package/dist/node/presentation/features/molecules/index.js +139 -139
  399. package/dist/node/presentation/features/organisms/FeatureDataViewsList.js +7 -7
  400. package/dist/node/presentation/features/organisms/FeatureDetail/FeatureDetail.js +57 -57
  401. package/dist/node/presentation/features/organisms/FeatureDetail/index.js +57 -57
  402. package/dist/node/presentation/features/organisms/FeatureDiscovery/FeatureDiscovery.js +183 -183
  403. package/dist/node/presentation/features/organisms/FeatureDiscovery/index.js +183 -183
  404. package/dist/node/presentation/features/organisms/FeatureEventsList.js +7 -7
  405. package/dist/node/presentation/features/organisms/FeatureFormsList.js +7 -7
  406. package/dist/node/presentation/features/organisms/FeatureOperationsList.js +7 -7
  407. package/dist/node/presentation/features/organisms/FeaturePresentationsList.js +7 -7
  408. package/dist/node/presentation/features/organisms/index.js +275 -275
  409. package/dist/node/presentation/features/templates/FeatureDataViewDetailTemplate/FeatureDataViewDetailTemplate.js +126 -126
  410. package/dist/node/presentation/features/templates/FeatureDataViewDetailTemplate/index.js +126 -126
  411. package/dist/node/presentation/features/templates/FeatureDataViewsTemplate/FeatureDataViewsTemplate.js +16 -16
  412. package/dist/node/presentation/features/templates/FeatureDataViewsTemplate/index.js +16 -16
  413. package/dist/node/presentation/features/templates/FeatureEventDetailTemplate/FeatureEventDetailTemplate.js +112 -112
  414. package/dist/node/presentation/features/templates/FeatureEventDetailTemplate/index.js +112 -112
  415. package/dist/node/presentation/features/templates/FeatureEventsTemplate/FeatureEventsTemplate.js +16 -16
  416. package/dist/node/presentation/features/templates/FeatureEventsTemplate/index.js +16 -16
  417. package/dist/node/presentation/features/templates/FeatureFormDetailTemplate/FeatureFormDetailTemplate.js +126 -126
  418. package/dist/node/presentation/features/templates/FeatureFormDetailTemplate/index.js +126 -126
  419. package/dist/node/presentation/features/templates/FeatureFormsTemplate/FeatureFormsTemplate.js +16 -16
  420. package/dist/node/presentation/features/templates/FeatureFormsTemplate/index.js +16 -16
  421. package/dist/node/presentation/features/templates/FeatureOperationDetailTemplate/FeatureOperationDetailTemplate.js +110 -110
  422. package/dist/node/presentation/features/templates/FeatureOperationDetailTemplate/index.js +110 -110
  423. package/dist/node/presentation/features/templates/FeatureOperationsTemplate/FeatureOperationsTemplate.js +16 -16
  424. package/dist/node/presentation/features/templates/FeatureOperationsTemplate/index.js +16 -16
  425. package/dist/node/presentation/features/templates/FeatureOverviewTemplate/FeatureOverviewTemplate.js +66 -66
  426. package/dist/node/presentation/features/templates/FeatureOverviewTemplate/index.js +66 -66
  427. package/dist/node/presentation/features/templates/FeaturePresentationDetailTemplate/FeaturePresentationDetailTemplate.js +112 -112
  428. package/dist/node/presentation/features/templates/FeaturePresentationDetailTemplate/index.js +112 -112
  429. package/dist/node/presentation/features/templates/FeaturePresentationsTemplate/FeaturePresentationsTemplate.js +16 -16
  430. package/dist/node/presentation/features/templates/FeaturePresentationsTemplate/index.js +16 -16
  431. package/dist/presentation/features/atoms/FeatureIcon/FeatureIcon.js +3 -3
  432. package/dist/presentation/features/atoms/FeatureIcon/index.js +3 -3
  433. package/dist/presentation/features/atoms/index.js +3 -3
  434. package/dist/presentation/features/index.js +915 -915
  435. package/dist/presentation/features/molecules/FeatureCard/FeatureCard.js +101 -101
  436. package/dist/presentation/features/molecules/FeatureCard/index.js +101 -101
  437. package/dist/presentation/features/molecules/FeatureCategoryHeader/FeatureCategoryHeader.js +15 -15
  438. package/dist/presentation/features/molecules/FeatureCategoryHeader/index.js +15 -15
  439. package/dist/presentation/features/molecules/FeatureFilters/FeatureFilters.js +23 -23
  440. package/dist/presentation/features/molecules/FeatureFilters/index.js +23 -23
  441. package/dist/presentation/features/molecules/FeatureHoverPreview/FeatureHoverPreview.js +67 -67
  442. package/dist/presentation/features/molecules/FeatureHoverPreview/index.js +67 -67
  443. package/dist/presentation/features/molecules/index.js +139 -139
  444. package/dist/presentation/features/organisms/FeatureDataViewsList.js +7 -7
  445. package/dist/presentation/features/organisms/FeatureDetail/FeatureDetail.js +57 -57
  446. package/dist/presentation/features/organisms/FeatureDetail/index.js +57 -57
  447. package/dist/presentation/features/organisms/FeatureDiscovery/FeatureDiscovery.js +183 -183
  448. package/dist/presentation/features/organisms/FeatureDiscovery/index.js +183 -183
  449. package/dist/presentation/features/organisms/FeatureEventsList.js +7 -7
  450. package/dist/presentation/features/organisms/FeatureFormsList.js +7 -7
  451. package/dist/presentation/features/organisms/FeatureOperationsList.js +7 -7
  452. package/dist/presentation/features/organisms/FeaturePresentationsList.js +7 -7
  453. package/dist/presentation/features/organisms/index.js +275 -275
  454. package/dist/presentation/features/templates/FeatureDataViewDetailTemplate/FeatureDataViewDetailTemplate.js +126 -126
  455. package/dist/presentation/features/templates/FeatureDataViewDetailTemplate/index.js +126 -126
  456. package/dist/presentation/features/templates/FeatureDataViewsTemplate/FeatureDataViewsTemplate.js +16 -16
  457. package/dist/presentation/features/templates/FeatureDataViewsTemplate/index.js +16 -16
  458. package/dist/presentation/features/templates/FeatureEventDetailTemplate/FeatureEventDetailTemplate.js +112 -112
  459. package/dist/presentation/features/templates/FeatureEventDetailTemplate/index.js +112 -112
  460. package/dist/presentation/features/templates/FeatureEventsTemplate/FeatureEventsTemplate.js +16 -16
  461. package/dist/presentation/features/templates/FeatureEventsTemplate/index.js +16 -16
  462. package/dist/presentation/features/templates/FeatureFormDetailTemplate/FeatureFormDetailTemplate.js +126 -126
  463. package/dist/presentation/features/templates/FeatureFormDetailTemplate/index.js +126 -126
  464. package/dist/presentation/features/templates/FeatureFormsTemplate/FeatureFormsTemplate.js +16 -16
  465. package/dist/presentation/features/templates/FeatureFormsTemplate/index.js +16 -16
  466. package/dist/presentation/features/templates/FeatureOperationDetailTemplate/FeatureOperationDetailTemplate.js +110 -110
  467. package/dist/presentation/features/templates/FeatureOperationDetailTemplate/index.js +110 -110
  468. package/dist/presentation/features/templates/FeatureOperationsTemplate/FeatureOperationsTemplate.js +16 -16
  469. package/dist/presentation/features/templates/FeatureOperationsTemplate/index.js +16 -16
  470. package/dist/presentation/features/templates/FeatureOverviewTemplate/FeatureOverviewTemplate.js +66 -66
  471. package/dist/presentation/features/templates/FeatureOverviewTemplate/index.js +66 -66
  472. package/dist/presentation/features/templates/FeaturePresentationDetailTemplate/FeaturePresentationDetailTemplate.js +112 -112
  473. package/dist/presentation/features/templates/FeaturePresentationDetailTemplate/index.js +112 -112
  474. package/dist/presentation/features/templates/FeaturePresentationsTemplate/FeaturePresentationsTemplate.js +16 -16
  475. package/dist/presentation/features/templates/FeaturePresentationsTemplate/index.js +16 -16
  476. package/package.json +71 -22
  477. package/src/bundles/LibraryBundle.ts +152 -0
  478. package/src/bundles/index.ts +1 -0
  479. package/src/components/docs/generated/docs-index._common.json +441 -90
  480. package/src/components/docs/generated/docs-index.agent-console.json +1 -1
  481. package/src/components/docs/generated/docs-index.ai-chat.json +1 -1
  482. package/src/components/docs/generated/docs-index.ai-support-bot.json +1 -1
  483. package/src/components/docs/generated/docs-index.analytics-dashboard.json +1 -1
  484. package/src/components/docs/generated/docs-index.app-config.json +1 -1
  485. package/src/components/docs/generated/docs-index.audit-trail.json +1 -1
  486. package/src/components/docs/generated/docs-index.calendar-google.json +1 -1
  487. package/src/components/docs/generated/docs-index.content-generation.json +1 -1
  488. package/src/components/docs/generated/docs-index.crm-pipeline.json +1 -1
  489. package/src/components/docs/generated/docs-index.email-gmail.json +1 -1
  490. package/src/components/docs/generated/docs-index.feature-flags.json +1 -1
  491. package/src/components/docs/generated/docs-index.files.json +1 -1
  492. package/src/components/docs/generated/docs-index.generated.ts +7 -7
  493. package/src/components/docs/generated/docs-index.health.json +1 -1
  494. package/src/components/docs/generated/docs-index.identity-rbac.json +1 -1
  495. package/src/components/docs/generated/docs-index.in-app-docs.json +1 -1
  496. package/src/components/docs/generated/docs-index.integration-hub.json +1 -1
  497. package/src/components/docs/generated/docs-index.integration-posthog.json +1 -1
  498. package/src/components/docs/generated/docs-index.integration-stripe.json +1 -1
  499. package/src/components/docs/generated/docs-index.integration-supabase.json +1 -1
  500. package/src/components/docs/generated/docs-index.jobs.json +1 -1
  501. package/src/components/docs/generated/docs-index.kb-update-pipeline.json +1 -1
  502. package/src/components/docs/generated/docs-index.knowledge-canon.json +1 -1
  503. package/src/components/docs/generated/docs-index.learning-journey-ambient-coach.json +1 -1
  504. package/src/components/docs/generated/docs-index.learning-journey-crm-onboarding.json +1 -1
  505. package/src/components/docs/generated/docs-index.learning-journey-duo-drills.json +1 -1
  506. package/src/components/docs/generated/docs-index.learning-journey-platform-tour.json +1 -1
  507. package/src/components/docs/generated/docs-index.learning-journey-quest-challenges.json +1 -1
  508. package/src/components/docs/generated/docs-index.learning-journey-registry.json +1 -1
  509. package/src/components/docs/generated/docs-index.learning-journey-studio-onboarding.json +1 -1
  510. package/src/components/docs/generated/docs-index.learning-journey-ui-coaching.json +1 -1
  511. package/src/components/docs/generated/docs-index.learning-journey-ui-gamified.json +1 -1
  512. package/src/components/docs/generated/docs-index.learning-journey-ui-onboarding.json +1 -1
  513. package/src/components/docs/generated/docs-index.learning-journey-ui-shared.json +1 -1
  514. package/src/components/docs/generated/docs-index.learning-journey.json +1 -1
  515. package/src/components/docs/generated/docs-index.learning-patterns.json +1 -1
  516. package/src/components/docs/generated/docs-index.lifecycle-cli.json +1 -1
  517. package/src/components/docs/generated/docs-index.lifecycle-dashboard.json +1 -1
  518. package/src/components/docs/generated/docs-index.locale-jurisdiction-gate.json +1 -1
  519. package/src/components/docs/generated/docs-index.manifest.json +2 -2
  520. package/src/components/docs/generated/docs-index.marketplace.json +1 -1
  521. package/src/components/docs/generated/docs-index.meeting-recorder-providers.json +1 -1
  522. package/src/components/docs/generated/docs-index.meeting-recorder.json +1 -1
  523. package/src/components/docs/generated/docs-index.metrics.json +1 -1
  524. package/src/components/docs/generated/docs-index.minimal.json +1 -1
  525. package/src/components/docs/generated/docs-index.notifications.json +1 -1
  526. package/src/components/docs/generated/docs-index.openbanking-powens.json +1 -1
  527. package/src/components/docs/generated/docs-index.openbanking.json +1 -1
  528. package/src/components/docs/generated/docs-index.opencode-cli.json +1 -1
  529. package/src/components/docs/generated/docs-index.personalization.json +1 -1
  530. package/src/components/docs/generated/docs-index.platform-acp.json +1 -1
  531. package/src/components/docs/generated/docs-index.platform-agent.json +1 -1
  532. package/src/components/docs/generated/docs-index.platform-context.json +1 -1
  533. package/src/components/docs/generated/docs-index.platform-database.json +1 -1
  534. package/src/components/docs/generated/docs-index.platform-docs.json +1 -1
  535. package/src/components/docs/generated/docs-index.platform-integrations.json +1 -1
  536. package/src/components/docs/generated/docs-index.platform-knowledge.json +1 -1
  537. package/src/components/docs/generated/docs-index.platform-provider-ranking.json +1 -1
  538. package/src/components/docs/generated/docs-index.pocket-family-office.json +1 -1
  539. package/src/components/docs/generated/docs-index.policy-safe-knowledge-assistant.json +1 -1
  540. package/src/components/docs/generated/docs-index.product-intent.json +1 -1
  541. package/src/components/docs/generated/docs-index.project-management-sync.json +1 -1
  542. package/src/components/docs/generated/docs-index.saas-boilerplate.json +1 -1
  543. package/src/components/docs/generated/docs-index.service-business-os.json +1 -1
  544. package/src/components/docs/generated/docs-index.team-hub.json +1 -1
  545. package/src/components/docs/generated/docs-index.unknown.json +1 -1
  546. package/src/components/docs/generated/docs-index.versioned-knowledge-base.json +1 -1
  547. package/src/components/docs/generated/docs-index.video-api-showcase.json +1 -1
  548. package/src/components/docs/generated/docs-index.video-docs-terminal.json +1 -1
  549. package/src/components/docs/generated/docs-index.video-marketing-clip.json +1 -1
  550. package/src/components/docs/generated/docs-index.voice-providers.json +1 -1
  551. package/src/components/docs/generated/docs-index.wealth-snapshot.json +1 -1
  552. package/src/components/docs/generated/docs-index.workflow-system.json +1 -1
  553. package/src/components/docs/generated/docs-index.workspace-cli.json +1 -1
  554. package/src/components/docs/guides/GuideNextjsOneEndpointPage.tsx +1 -1
  555. package/src/components/shell/WorkspaceShellRenderer.tsx +90 -0
  556. package/src/components/shell/index.ts +1 -0
@@ -2,185 +2,185 @@
2
2
  // src/components/docs/knowledge/KnowledgeOverviewPage.tsx
3
3
  import Link from "@contractspec/lib.ui-link";
4
4
  import { ChevronRight } from "lucide-react";
5
- import { jsxDEV } from "react/jsx-dev-runtime";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
6
  function KnowledgeOverviewPage() {
7
- return /* @__PURE__ */ jsxDEV("div", {
7
+ return /* @__PURE__ */ jsxs("div", {
8
8
  className: "space-y-8",
9
9
  children: [
10
- /* @__PURE__ */ jsxDEV("div", {
10
+ /* @__PURE__ */ jsxs("div", {
11
11
  className: "space-y-4",
12
12
  children: [
13
- /* @__PURE__ */ jsxDEV("h1", {
13
+ /* @__PURE__ */ jsx("h1", {
14
14
  className: "text-4xl font-bold",
15
15
  children: "Knowledge & Context"
16
- }, undefined, false, undefined, this),
17
- /* @__PURE__ */ jsxDEV("p", {
16
+ }),
17
+ /* @__PURE__ */ jsx("p", {
18
18
  className: "text-muted-foreground",
19
19
  children: "ContractSpec provides first-class support for knowledge management, enabling semantic search, RAG (Retrieval-Augmented Generation), and context-aware decision-making. Knowledge is organized into typed spaces with different trust levels and access controls."
20
- }, undefined, false, undefined, this)
20
+ })
21
21
  ]
22
- }, undefined, true, undefined, this),
23
- /* @__PURE__ */ jsxDEV("div", {
22
+ }),
23
+ /* @__PURE__ */ jsxs("div", {
24
24
  className: "space-y-4",
25
25
  children: [
26
- /* @__PURE__ */ jsxDEV("h2", {
26
+ /* @__PURE__ */ jsx("h2", {
27
27
  className: "text-2xl font-bold",
28
28
  children: "Why knowledge matters"
29
- }, undefined, false, undefined, this),
30
- /* @__PURE__ */ jsxDEV("p", {
29
+ }),
30
+ /* @__PURE__ */ jsx("p", {
31
31
  className: "text-muted-foreground",
32
32
  children: "Modern applications need to:"
33
- }, undefined, false, undefined, this),
34
- /* @__PURE__ */ jsxDEV("ul", {
33
+ }),
34
+ /* @__PURE__ */ jsxs("ul", {
35
35
  className: "text-muted-foreground list-inside list-disc space-y-2",
36
36
  children: [
37
- /* @__PURE__ */ jsxDEV("li", {
37
+ /* @__PURE__ */ jsxs("li", {
38
38
  children: [
39
- /* @__PURE__ */ jsxDEV("strong", {
39
+ /* @__PURE__ */ jsx("strong", {
40
40
  children: "Understand context"
41
- }, undefined, false, undefined, this),
41
+ }),
42
42
  " - Access relevant information to make informed decisions"
43
43
  ]
44
- }, undefined, true, undefined, this),
45
- /* @__PURE__ */ jsxDEV("li", {
44
+ }),
45
+ /* @__PURE__ */ jsxs("li", {
46
46
  children: [
47
- /* @__PURE__ */ jsxDEV("strong", {
47
+ /* @__PURE__ */ jsx("strong", {
48
48
  children: "Learn from history"
49
- }, undefined, false, undefined, this),
49
+ }),
50
50
  " - Use past interactions to improve future responses"
51
51
  ]
52
- }, undefined, true, undefined, this),
53
- /* @__PURE__ */ jsxDEV("li", {
52
+ }),
53
+ /* @__PURE__ */ jsxs("li", {
54
54
  children: [
55
- /* @__PURE__ */ jsxDEV("strong", {
55
+ /* @__PURE__ */ jsx("strong", {
56
56
  children: "Trust sources"
57
- }, undefined, false, undefined, this),
57
+ }),
58
58
  " - Distinguish between authoritative and reference information"
59
59
  ]
60
- }, undefined, true, undefined, this),
61
- /* @__PURE__ */ jsxDEV("li", {
60
+ }),
61
+ /* @__PURE__ */ jsxs("li", {
62
62
  children: [
63
- /* @__PURE__ */ jsxDEV("strong", {
63
+ /* @__PURE__ */ jsx("strong", {
64
64
  children: "Scale knowledge"
65
- }, undefined, false, undefined, this),
65
+ }),
66
66
  " - Handle growing amounts of documentation and data"
67
67
  ]
68
- }, undefined, true, undefined, this),
69
- /* @__PURE__ */ jsxDEV("li", {
68
+ }),
69
+ /* @__PURE__ */ jsxs("li", {
70
70
  children: [
71
- /* @__PURE__ */ jsxDEV("strong", {
71
+ /* @__PURE__ */ jsx("strong", {
72
72
  children: "Maintain privacy"
73
- }, undefined, false, undefined, this),
73
+ }),
74
74
  " - Keep tenant knowledge isolated and secure"
75
75
  ]
76
- }, undefined, true, undefined, this)
76
+ })
77
77
  ]
78
- }, undefined, true, undefined, this)
78
+ })
79
79
  ]
80
- }, undefined, true, undefined, this),
81
- /* @__PURE__ */ jsxDEV("div", {
80
+ }),
81
+ /* @__PURE__ */ jsxs("div", {
82
82
  className: "space-y-4",
83
83
  children: [
84
- /* @__PURE__ */ jsxDEV("h2", {
84
+ /* @__PURE__ */ jsx("h2", {
85
85
  className: "text-2xl font-bold",
86
86
  children: "Knowledge architecture"
87
- }, undefined, false, undefined, this),
88
- /* @__PURE__ */ jsxDEV("p", {
87
+ }),
88
+ /* @__PURE__ */ jsx("p", {
89
89
  className: "text-muted-foreground",
90
90
  children: "ContractSpec's knowledge system has three main components:"
91
- }, undefined, false, undefined, this),
92
- /* @__PURE__ */ jsxDEV("div", {
91
+ }),
92
+ /* @__PURE__ */ jsxs("div", {
93
93
  className: "space-y-6",
94
94
  children: [
95
- /* @__PURE__ */ jsxDEV("div", {
95
+ /* @__PURE__ */ jsxs("div", {
96
96
  className: "card-subtle p-4",
97
97
  children: [
98
- /* @__PURE__ */ jsxDEV("h3", {
98
+ /* @__PURE__ */ jsx("h3", {
99
99
  className: "mb-2 text-lg font-semibold",
100
100
  children: "1. Knowledge Categories"
101
- }, undefined, false, undefined, this),
102
- /* @__PURE__ */ jsxDEV("p", {
101
+ }),
102
+ /* @__PURE__ */ jsx("p", {
103
103
  className: "text-muted-foreground mb-3 text-sm",
104
104
  children: "Four trust levels that determine how knowledge is used:"
105
- }, undefined, false, undefined, this),
106
- /* @__PURE__ */ jsxDEV("div", {
105
+ }),
106
+ /* @__PURE__ */ jsxs("div", {
107
107
  className: "space-y-2 text-sm",
108
108
  children: [
109
- /* @__PURE__ */ jsxDEV("div", {
109
+ /* @__PURE__ */ jsxs("div", {
110
110
  className: "flex items-start gap-3",
111
111
  children: [
112
- /* @__PURE__ */ jsxDEV("code", {
112
+ /* @__PURE__ */ jsx("code", {
113
113
  className: "bg-background/50 rounded px-2 py-1 text-xs",
114
114
  children: "canonical"
115
- }, undefined, false, undefined, this),
116
- /* @__PURE__ */ jsxDEV("span", {
115
+ }),
116
+ /* @__PURE__ */ jsx("span", {
117
117
  className: "text-muted-foreground",
118
118
  children: "Ground truth - product specs, schemas, official policies"
119
- }, undefined, false, undefined, this)
119
+ })
120
120
  ]
121
- }, undefined, true, undefined, this),
122
- /* @__PURE__ */ jsxDEV("div", {
121
+ }),
122
+ /* @__PURE__ */ jsxs("div", {
123
123
  className: "flex items-start gap-3",
124
124
  children: [
125
- /* @__PURE__ */ jsxDEV("code", {
125
+ /* @__PURE__ */ jsx("code", {
126
126
  className: "bg-background/50 rounded px-2 py-1 text-xs",
127
127
  children: "operational"
128
- }, undefined, false, undefined, this),
129
- /* @__PURE__ */ jsxDEV("span", {
128
+ }),
129
+ /* @__PURE__ */ jsx("span", {
130
130
  className: "text-muted-foreground",
131
131
  children: "Internal docs - support tickets, runbooks, sales materials"
132
- }, undefined, false, undefined, this)
132
+ })
133
133
  ]
134
- }, undefined, true, undefined, this),
135
- /* @__PURE__ */ jsxDEV("div", {
134
+ }),
135
+ /* @__PURE__ */ jsxs("div", {
136
136
  className: "flex items-start gap-3",
137
137
  children: [
138
- /* @__PURE__ */ jsxDEV("code", {
138
+ /* @__PURE__ */ jsx("code", {
139
139
  className: "bg-background/50 rounded px-2 py-1 text-xs",
140
140
  children: "external"
141
- }, undefined, false, undefined, this),
142
- /* @__PURE__ */ jsxDEV("span", {
141
+ }),
142
+ /* @__PURE__ */ jsx("span", {
143
143
  className: "text-muted-foreground",
144
144
  children: "Third-party - PSP docs, regulations, integration guides"
145
- }, undefined, false, undefined, this)
145
+ })
146
146
  ]
147
- }, undefined, true, undefined, this),
148
- /* @__PURE__ */ jsxDEV("div", {
147
+ }),
148
+ /* @__PURE__ */ jsxs("div", {
149
149
  className: "flex items-start gap-3",
150
150
  children: [
151
- /* @__PURE__ */ jsxDEV("code", {
151
+ /* @__PURE__ */ jsx("code", {
152
152
  className: "bg-background/50 rounded px-2 py-1 text-xs",
153
153
  children: "ephemeral"
154
- }, undefined, false, undefined, this),
155
- /* @__PURE__ */ jsxDEV("span", {
154
+ }),
155
+ /* @__PURE__ */ jsx("span", {
156
156
  className: "text-muted-foreground",
157
157
  children: "Temporary - agent scratchpads, session context, drafts"
158
- }, undefined, false, undefined, this)
158
+ })
159
159
  ]
160
- }, undefined, true, undefined, this)
160
+ })
161
161
  ]
162
- }, undefined, true, undefined, this),
163
- /* @__PURE__ */ jsxDEV(Link, {
162
+ }),
163
+ /* @__PURE__ */ jsx(Link, {
164
164
  href: "/docs/knowledge/categories",
165
165
  className: "mt-3 inline-block text-sm text-violet-400 hover:text-violet-300",
166
166
  children: "Learn more about categories \u2192"
167
- }, undefined, false, undefined, this)
167
+ })
168
168
  ]
169
- }, undefined, true, undefined, this),
170
- /* @__PURE__ */ jsxDEV("div", {
169
+ }),
170
+ /* @__PURE__ */ jsxs("div", {
171
171
  className: "card-subtle p-4",
172
172
  children: [
173
- /* @__PURE__ */ jsxDEV("h3", {
173
+ /* @__PURE__ */ jsx("h3", {
174
174
  className: "mb-2 text-lg font-semibold",
175
175
  children: "2. Knowledge Spaces"
176
- }, undefined, false, undefined, this),
177
- /* @__PURE__ */ jsxDEV("p", {
176
+ }),
177
+ /* @__PURE__ */ jsx("p", {
178
178
  className: "text-muted-foreground mb-3 text-sm",
179
179
  children: "Logical domains of knowledge defined globally:"
180
- }, undefined, false, undefined, this),
181
- /* @__PURE__ */ jsxDEV("div", {
180
+ }),
181
+ /* @__PURE__ */ jsx("div", {
182
182
  className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded border p-3 font-mono text-xs",
183
- children: /* @__PURE__ */ jsxDEV("pre", {
183
+ children: /* @__PURE__ */ jsx("pre", {
184
184
  children: `type KnowledgeSpaceSpec = {
185
185
  id: string;
186
186
  label: string;
@@ -190,29 +190,29 @@ function KnowledgeOverviewPage() {
190
190
  retentionPolicy: { days?: number };
191
191
  intendedAudience: "agents" | "humans" | "admin-only";
192
192
  };`
193
- }, undefined, false, undefined, this)
194
- }, undefined, false, undefined, this),
195
- /* @__PURE__ */ jsxDEV(Link, {
193
+ })
194
+ }),
195
+ /* @__PURE__ */ jsx(Link, {
196
196
  href: "/docs/knowledge/spaces",
197
197
  className: "mt-3 inline-block text-sm text-violet-400 hover:text-violet-300",
198
198
  children: "Learn more about spaces \u2192"
199
- }, undefined, false, undefined, this)
199
+ })
200
200
  ]
201
- }, undefined, true, undefined, this),
202
- /* @__PURE__ */ jsxDEV("div", {
201
+ }),
202
+ /* @__PURE__ */ jsxs("div", {
203
203
  className: "card-subtle p-4",
204
204
  children: [
205
- /* @__PURE__ */ jsxDEV("h3", {
205
+ /* @__PURE__ */ jsx("h3", {
206
206
  className: "mb-2 text-lg font-semibold",
207
207
  children: "3. Knowledge Sources"
208
- }, undefined, false, undefined, this),
209
- /* @__PURE__ */ jsxDEV("p", {
208
+ }),
209
+ /* @__PURE__ */ jsx("p", {
210
210
  className: "text-muted-foreground mb-3 text-sm",
211
211
  children: "Per-tenant data sources that feed knowledge spaces:"
212
- }, undefined, false, undefined, this),
213
- /* @__PURE__ */ jsxDEV("div", {
212
+ }),
213
+ /* @__PURE__ */ jsx("div", {
214
214
  className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded border p-3 font-mono text-xs",
215
- children: /* @__PURE__ */ jsxDEV("pre", {
215
+ children: /* @__PURE__ */ jsx("pre", {
216
216
  children: `type KnowledgeSourceConfig = {
217
217
  id: string;
218
218
  tenantId: string;
@@ -223,149 +223,149 @@ function KnowledgeOverviewPage() {
223
223
  syncPolicy: { interval?: string; webhook?: boolean };
224
224
  lastSyncedAt?: string;
225
225
  };`
226
- }, undefined, false, undefined, this)
227
- }, undefined, false, undefined, this),
228
- /* @__PURE__ */ jsxDEV(Link, {
226
+ })
227
+ }),
228
+ /* @__PURE__ */ jsx(Link, {
229
229
  href: "/docs/knowledge/sources",
230
230
  className: "mt-3 inline-block text-sm text-violet-400 hover:text-violet-300",
231
231
  children: "Learn more about sources \u2192"
232
- }, undefined, false, undefined, this)
232
+ })
233
233
  ]
234
- }, undefined, true, undefined, this)
234
+ })
235
235
  ]
236
- }, undefined, true, undefined, this)
236
+ })
237
237
  ]
238
- }, undefined, true, undefined, this),
239
- /* @__PURE__ */ jsxDEV("div", {
238
+ }),
239
+ /* @__PURE__ */ jsxs("div", {
240
240
  className: "space-y-4",
241
241
  children: [
242
- /* @__PURE__ */ jsxDEV("h2", {
242
+ /* @__PURE__ */ jsx("h2", {
243
243
  className: "text-2xl font-bold",
244
244
  children: "How it works"
245
- }, undefined, false, undefined, this),
246
- /* @__PURE__ */ jsxDEV("p", {
245
+ }),
246
+ /* @__PURE__ */ jsx("p", {
247
247
  className: "text-muted-foreground",
248
248
  children: "Knowledge flows through ContractSpec in four stages:"
249
- }, undefined, false, undefined, this),
250
- /* @__PURE__ */ jsxDEV("ol", {
249
+ }),
250
+ /* @__PURE__ */ jsxs("ol", {
251
251
  className: "text-muted-foreground list-inside list-decimal space-y-3",
252
252
  children: [
253
- /* @__PURE__ */ jsxDEV("li", {
253
+ /* @__PURE__ */ jsxs("li", {
254
254
  children: [
255
- /* @__PURE__ */ jsxDEV("strong", {
255
+ /* @__PURE__ */ jsx("strong", {
256
256
  children: "Define spaces"
257
- }, undefined, false, undefined, this),
257
+ }),
258
258
  ' - Create KnowledgeSpaceSpec for each logical domain (e.g., "Product Canon", "Support FAQ")'
259
259
  ]
260
- }, undefined, true, undefined, this),
261
- /* @__PURE__ */ jsxDEV("li", {
260
+ }),
261
+ /* @__PURE__ */ jsxs("li", {
262
262
  children: [
263
- /* @__PURE__ */ jsxDEV("strong", {
263
+ /* @__PURE__ */ jsx("strong", {
264
264
  children: "Configure sources"
265
- }, undefined, false, undefined, this),
265
+ }),
266
266
  " - Tenants connect their data sources (Notion, Gmail, uploads, etc.)"
267
267
  ]
268
- }, undefined, true, undefined, this),
269
- /* @__PURE__ */ jsxDEV("li", {
268
+ }),
269
+ /* @__PURE__ */ jsxs("li", {
270
270
  children: [
271
- /* @__PURE__ */ jsxDEV("strong", {
271
+ /* @__PURE__ */ jsx("strong", {
272
272
  children: "Sync & index"
273
- }, undefined, false, undefined, this),
273
+ }),
274
274
  " - Sources are synced, chunked, and indexed in vector databases"
275
275
  ]
276
- }, undefined, true, undefined, this),
277
- /* @__PURE__ */ jsxDEV("li", {
276
+ }),
277
+ /* @__PURE__ */ jsxs("li", {
278
278
  children: [
279
- /* @__PURE__ */ jsxDEV("strong", {
279
+ /* @__PURE__ */ jsx("strong", {
280
280
  children: "Query & retrieve"
281
- }, undefined, false, undefined, this),
281
+ }),
282
282
  " - Workflows and agents perform semantic search to find relevant context"
283
283
  ]
284
- }, undefined, true, undefined, this)
284
+ })
285
285
  ]
286
- }, undefined, true, undefined, this)
286
+ })
287
287
  ]
288
- }, undefined, true, undefined, this),
289
- /* @__PURE__ */ jsxDEV("div", {
288
+ }),
289
+ /* @__PURE__ */ jsxs("div", {
290
290
  className: "space-y-4",
291
291
  children: [
292
- /* @__PURE__ */ jsxDEV("h2", {
292
+ /* @__PURE__ */ jsx("h2", {
293
293
  className: "text-2xl font-bold",
294
294
  children: "Use cases"
295
- }, undefined, false, undefined, this),
296
- /* @__PURE__ */ jsxDEV("div", {
295
+ }),
296
+ /* @__PURE__ */ jsxs("div", {
297
297
  className: "grid gap-4 md:grid-cols-2",
298
298
  children: [
299
- /* @__PURE__ */ jsxDEV("div", {
299
+ /* @__PURE__ */ jsxs("div", {
300
300
  className: "card-subtle p-4",
301
301
  children: [
302
- /* @__PURE__ */ jsxDEV("h3", {
302
+ /* @__PURE__ */ jsx("h3", {
303
303
  className: "mb-2 font-semibold",
304
304
  children: "Support Agents"
305
- }, undefined, false, undefined, this),
306
- /* @__PURE__ */ jsxDEV("p", {
305
+ }),
306
+ /* @__PURE__ */ jsx("p", {
307
307
  className: "text-muted-foreground text-sm",
308
308
  children: "Answer customer questions using product documentation (canonical) and past support tickets (operational)."
309
- }, undefined, false, undefined, this)
309
+ })
310
310
  ]
311
- }, undefined, true, undefined, this),
312
- /* @__PURE__ */ jsxDEV("div", {
311
+ }),
312
+ /* @__PURE__ */ jsxs("div", {
313
313
  className: "card-subtle p-4",
314
314
  children: [
315
- /* @__PURE__ */ jsxDEV("h3", {
315
+ /* @__PURE__ */ jsx("h3", {
316
316
  className: "mb-2 font-semibold",
317
317
  children: "Invoice Generation"
318
- }, undefined, false, undefined, this),
319
- /* @__PURE__ */ jsxDEV("p", {
318
+ }),
319
+ /* @__PURE__ */ jsx("p", {
320
320
  className: "text-muted-foreground text-sm",
321
321
  children: "Generate invoices using product catalog (canonical) and pricing rules (operational)."
322
- }, undefined, false, undefined, this)
322
+ })
323
323
  ]
324
- }, undefined, true, undefined, this),
325
- /* @__PURE__ */ jsxDEV("div", {
324
+ }),
325
+ /* @__PURE__ */ jsxs("div", {
326
326
  className: "card-subtle p-4",
327
327
  children: [
328
- /* @__PURE__ */ jsxDEV("h3", {
328
+ /* @__PURE__ */ jsx("h3", {
329
329
  className: "mb-2 font-semibold",
330
330
  children: "Compliance Checking"
331
- }, undefined, false, undefined, this),
332
- /* @__PURE__ */ jsxDEV("p", {
331
+ }),
332
+ /* @__PURE__ */ jsx("p", {
333
333
  className: "text-muted-foreground text-sm",
334
334
  children: "Validate operations against regulatory requirements (external) and internal policies (canonical)."
335
- }, undefined, false, undefined, this)
335
+ })
336
336
  ]
337
- }, undefined, true, undefined, this),
338
- /* @__PURE__ */ jsxDEV("div", {
337
+ }),
338
+ /* @__PURE__ */ jsxs("div", {
339
339
  className: "card-subtle p-4",
340
340
  children: [
341
- /* @__PURE__ */ jsxDEV("h3", {
341
+ /* @__PURE__ */ jsx("h3", {
342
342
  className: "mb-2 font-semibold",
343
343
  children: "Semantic Search"
344
- }, undefined, false, undefined, this),
345
- /* @__PURE__ */ jsxDEV("p", {
344
+ }),
345
+ /* @__PURE__ */ jsx("p", {
346
346
  className: "text-muted-foreground text-sm",
347
347
  children: "Find relevant documents, tickets, or records using natural language queries."
348
- }, undefined, false, undefined, this)
348
+ })
349
349
  ]
350
- }, undefined, true, undefined, this)
350
+ })
351
351
  ]
352
- }, undefined, true, undefined, this)
352
+ })
353
353
  ]
354
- }, undefined, true, undefined, this),
355
- /* @__PURE__ */ jsxDEV("div", {
354
+ }),
355
+ /* @__PURE__ */ jsxs("div", {
356
356
  className: "space-y-4",
357
357
  children: [
358
- /* @__PURE__ */ jsxDEV("h2", {
358
+ /* @__PURE__ */ jsx("h2", {
359
359
  className: "text-2xl font-bold",
360
360
  children: "Integration with workflows"
361
- }, undefined, false, undefined, this),
362
- /* @__PURE__ */ jsxDEV("p", {
361
+ }),
362
+ /* @__PURE__ */ jsx("p", {
363
363
  className: "text-muted-foreground",
364
364
  children: "Knowledge spaces are consumed by workflows through standard capabilities:"
365
- }, undefined, false, undefined, this),
366
- /* @__PURE__ */ jsxDEV("div", {
365
+ }),
366
+ /* @__PURE__ */ jsx("div", {
367
367
  className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded-lg border p-4 font-mono text-sm",
368
- children: /* @__PURE__ */ jsxDEV("pre", {
368
+ children: /* @__PURE__ */ jsx("pre", {
369
369
  children: `import { defineWorkflow } from '@contractspec/lib.contracts-spec/workflow';
370
370
  import { OpenAIEmbeddings, VectorSearch, OpenAIChat } from './specs';
371
371
 
@@ -410,201 +410,201 @@ export const AnswerSupportQuestion = defineWorkflow({
410
410
  },
411
411
  ],
412
412
  });`
413
- }, undefined, false, undefined, this)
414
- }, undefined, false, undefined, this)
413
+ })
414
+ })
415
415
  ]
416
- }, undefined, true, undefined, this),
417
- /* @__PURE__ */ jsxDEV("div", {
416
+ }),
417
+ /* @__PURE__ */ jsxs("div", {
418
418
  className: "space-y-4",
419
419
  children: [
420
- /* @__PURE__ */ jsxDEV("h2", {
420
+ /* @__PURE__ */ jsx("h2", {
421
421
  className: "text-2xl font-bold",
422
422
  children: "Real-world examples"
423
- }, undefined, false, undefined, this),
424
- /* @__PURE__ */ jsxDEV("p", {
423
+ }),
424
+ /* @__PURE__ */ jsx("p", {
425
425
  className: "text-muted-foreground",
426
426
  children: "See how different applications use knowledge spaces:"
427
- }, undefined, false, undefined, this),
428
- /* @__PURE__ */ jsxDEV(Link, {
427
+ }),
428
+ /* @__PURE__ */ jsxs(Link, {
429
429
  href: "/docs/knowledge/examples",
430
430
  className: "btn-primary inline-flex items-center gap-2",
431
431
  children: [
432
432
  "View Examples ",
433
- /* @__PURE__ */ jsxDEV(ChevronRight, {
433
+ /* @__PURE__ */ jsx(ChevronRight, {
434
434
  size: 16
435
- }, undefined, false, undefined, this)
435
+ })
436
436
  ]
437
- }, undefined, true, undefined, this)
437
+ })
438
438
  ]
439
- }, undefined, true, undefined, this),
440
- /* @__PURE__ */ jsxDEV("div", {
439
+ }),
440
+ /* @__PURE__ */ jsxs("div", {
441
441
  className: "flex items-center gap-4 pt-4",
442
442
  children: [
443
- /* @__PURE__ */ jsxDEV(Link, {
443
+ /* @__PURE__ */ jsxs(Link, {
444
444
  href: "/docs/knowledge/categories",
445
445
  className: "btn-primary",
446
446
  children: [
447
447
  "Knowledge Categories ",
448
- /* @__PURE__ */ jsxDEV(ChevronRight, {
448
+ /* @__PURE__ */ jsx(ChevronRight, {
449
449
  size: 16
450
- }, undefined, false, undefined, this)
450
+ })
451
451
  ]
452
- }, undefined, true, undefined, this),
453
- /* @__PURE__ */ jsxDEV(Link, {
452
+ }),
453
+ /* @__PURE__ */ jsx(Link, {
454
454
  href: "/docs/knowledge/spaces",
455
455
  className: "btn-ghost",
456
456
  children: "Knowledge Spaces"
457
- }, undefined, false, undefined, this)
457
+ })
458
458
  ]
459
- }, undefined, true, undefined, this)
459
+ })
460
460
  ]
461
- }, undefined, true, undefined, this);
461
+ });
462
462
  }
463
463
 
464
464
  // src/components/docs/knowledge/KnowledgeCategoriesPage.tsx
465
465
  import Link2 from "@contractspec/lib.ui-link";
466
466
  import { ChevronRight as ChevronRight2 } from "lucide-react";
467
- import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
467
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
468
468
  function KnowledgeCategoriesPage() {
469
- return /* @__PURE__ */ jsxDEV2("div", {
469
+ return /* @__PURE__ */ jsxs2("div", {
470
470
  className: "space-y-8",
471
471
  children: [
472
- /* @__PURE__ */ jsxDEV2("div", {
472
+ /* @__PURE__ */ jsxs2("div", {
473
473
  className: "space-y-4",
474
474
  children: [
475
- /* @__PURE__ */ jsxDEV2("h1", {
475
+ /* @__PURE__ */ jsx2("h1", {
476
476
  className: "text-4xl font-bold",
477
477
  children: "Knowledge Categories"
478
- }, undefined, false, undefined, this),
479
- /* @__PURE__ */ jsxDEV2("p", {
478
+ }),
479
+ /* @__PURE__ */ jsx2("p", {
480
480
  className: "text-muted-foreground",
481
481
  children: "ContractSpec classifies knowledge into four categories based on trust level, source authority, and intended use. This classification determines how knowledge can be used in workflows, policy decisions, and agent responses."
482
- }, undefined, false, undefined, this)
482
+ })
483
483
  ]
484
- }, undefined, true, undefined, this),
485
- /* @__PURE__ */ jsxDEV2("div", {
484
+ }),
485
+ /* @__PURE__ */ jsxs2("div", {
486
486
  className: "space-y-4",
487
487
  children: [
488
- /* @__PURE__ */ jsxDEV2("h2", {
488
+ /* @__PURE__ */ jsx2("h2", {
489
489
  className: "text-2xl font-bold",
490
490
  children: "The four categories"
491
- }, undefined, false, undefined, this),
492
- /* @__PURE__ */ jsxDEV2("div", {
491
+ }),
492
+ /* @__PURE__ */ jsx2("div", {
493
493
  className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded-lg border p-4 font-mono text-sm",
494
- children: /* @__PURE__ */ jsxDEV2("pre", {
494
+ children: /* @__PURE__ */ jsx2("pre", {
495
495
  children: `type KnowledgeCategory =
496
496
  | "canonical" // Internal ground truth
497
497
  | "operational" // Internal operational docs
498
498
  | "external" // Third-party reference
499
499
  | "ephemeral"; // Temporary context`
500
- }, undefined, false, undefined, this)
501
- }, undefined, false, undefined, this)
500
+ })
501
+ })
502
502
  ]
503
- }, undefined, true, undefined, this),
504
- /* @__PURE__ */ jsxDEV2("div", {
503
+ }),
504
+ /* @__PURE__ */ jsxs2("div", {
505
505
  className: "space-y-6",
506
506
  children: [
507
- /* @__PURE__ */ jsxDEV2("div", {
507
+ /* @__PURE__ */ jsxs2("div", {
508
508
  className: "space-y-4",
509
509
  children: [
510
- /* @__PURE__ */ jsxDEV2("h3", {
510
+ /* @__PURE__ */ jsx2("h3", {
511
511
  className: "text-xl font-semibold",
512
512
  children: "1. Canonical"
513
- }, undefined, false, undefined, this),
514
- /* @__PURE__ */ jsxDEV2("p", {
513
+ }),
514
+ /* @__PURE__ */ jsxs2("p", {
515
515
  className: "text-muted-foreground",
516
516
  children: [
517
- /* @__PURE__ */ jsxDEV2("strong", {
517
+ /* @__PURE__ */ jsx2("strong", {
518
518
  children: "Trust level:"
519
- }, undefined, false, undefined, this),
519
+ }),
520
520
  " Highest - Authoritative ground truth"
521
521
  ]
522
- }, undefined, true, undefined, this),
523
- /* @__PURE__ */ jsxDEV2("div", {
522
+ }),
523
+ /* @__PURE__ */ jsxs2("div", {
524
524
  className: "space-y-3",
525
525
  children: [
526
- /* @__PURE__ */ jsxDEV2("div", {
526
+ /* @__PURE__ */ jsxs2("div", {
527
527
  children: [
528
- /* @__PURE__ */ jsxDEV2("h4", {
528
+ /* @__PURE__ */ jsx2("h4", {
529
529
  className: "mb-2 text-sm font-semibold",
530
530
  children: "What it contains:"
531
- }, undefined, false, undefined, this),
532
- /* @__PURE__ */ jsxDEV2("ul", {
531
+ }),
532
+ /* @__PURE__ */ jsxs2("ul", {
533
533
  className: "text-muted-foreground ml-4 list-inside list-disc space-y-1 text-sm",
534
534
  children: [
535
- /* @__PURE__ */ jsxDEV2("li", {
535
+ /* @__PURE__ */ jsx2("li", {
536
536
  children: "Official product specifications and schemas"
537
- }, undefined, false, undefined, this),
538
- /* @__PURE__ */ jsxDEV2("li", {
537
+ }),
538
+ /* @__PURE__ */ jsx2("li", {
539
539
  children: "Company policies and procedures"
540
- }, undefined, false, undefined, this),
541
- /* @__PURE__ */ jsxDEV2("li", {
540
+ }),
541
+ /* @__PURE__ */ jsx2("li", {
542
542
  children: "Legal terms and compliance requirements"
543
- }, undefined, false, undefined, this),
544
- /* @__PURE__ */ jsxDEV2("li", {
543
+ }),
544
+ /* @__PURE__ */ jsx2("li", {
545
545
  children: "Pricing rules and business logic"
546
- }, undefined, false, undefined, this),
547
- /* @__PURE__ */ jsxDEV2("li", {
546
+ }),
547
+ /* @__PURE__ */ jsx2("li", {
548
548
  children: "Data classification and security policies"
549
- }, undefined, false, undefined, this)
549
+ })
550
550
  ]
551
- }, undefined, true, undefined, this)
551
+ })
552
552
  ]
553
- }, undefined, true, undefined, this),
554
- /* @__PURE__ */ jsxDEV2("div", {
553
+ }),
554
+ /* @__PURE__ */ jsxs2("div", {
555
555
  children: [
556
- /* @__PURE__ */ jsxDEV2("h4", {
556
+ /* @__PURE__ */ jsx2("h4", {
557
557
  className: "mb-2 text-sm font-semibold",
558
558
  children: "How it's used:"
559
- }, undefined, false, undefined, this),
560
- /* @__PURE__ */ jsxDEV2("ul", {
559
+ }),
560
+ /* @__PURE__ */ jsxs2("ul", {
561
561
  className: "text-muted-foreground ml-4 list-inside list-disc space-y-1 text-sm",
562
562
  children: [
563
- /* @__PURE__ */ jsxDEV2("li", {
563
+ /* @__PURE__ */ jsxs2("li", {
564
564
  children: [
565
- /* @__PURE__ */ jsxDEV2("strong", {
565
+ /* @__PURE__ */ jsx2("strong", {
566
566
  children: "Policy decisions"
567
- }, undefined, false, undefined, this),
567
+ }),
568
568
  " - Can drive PDP decisions"
569
569
  ]
570
- }, undefined, true, undefined, this),
571
- /* @__PURE__ */ jsxDEV2("li", {
570
+ }),
571
+ /* @__PURE__ */ jsxs2("li", {
572
572
  children: [
573
- /* @__PURE__ */ jsxDEV2("strong", {
573
+ /* @__PURE__ */ jsx2("strong", {
574
574
  children: "Validation"
575
- }, undefined, false, undefined, this),
575
+ }),
576
576
  " - Used to validate user inputs and operations"
577
577
  ]
578
- }, undefined, true, undefined, this),
579
- /* @__PURE__ */ jsxDEV2("li", {
578
+ }),
579
+ /* @__PURE__ */ jsxs2("li", {
580
580
  children: [
581
- /* @__PURE__ */ jsxDEV2("strong", {
581
+ /* @__PURE__ */ jsx2("strong", {
582
582
  children: "Code generation"
583
- }, undefined, false, undefined, this),
583
+ }),
584
584
  " - Source of truth for generated code"
585
585
  ]
586
- }, undefined, true, undefined, this),
587
- /* @__PURE__ */ jsxDEV2("li", {
586
+ }),
587
+ /* @__PURE__ */ jsxs2("li", {
588
588
  children: [
589
- /* @__PURE__ */ jsxDEV2("strong", {
589
+ /* @__PURE__ */ jsx2("strong", {
590
590
  children: "Compliance"
591
- }, undefined, false, undefined, this),
591
+ }),
592
592
  " - Reference for audit and regulatory checks"
593
593
  ]
594
- }, undefined, true, undefined, this)
594
+ })
595
595
  ]
596
- }, undefined, true, undefined, this)
596
+ })
597
597
  ]
598
- }, undefined, true, undefined, this),
599
- /* @__PURE__ */ jsxDEV2("div", {
598
+ }),
599
+ /* @__PURE__ */ jsxs2("div", {
600
600
  children: [
601
- /* @__PURE__ */ jsxDEV2("h4", {
601
+ /* @__PURE__ */ jsx2("h4", {
602
602
  className: "mb-2 text-sm font-semibold",
603
603
  children: "Examples:"
604
- }, undefined, false, undefined, this),
605
- /* @__PURE__ */ jsxDEV2("div", {
604
+ }),
605
+ /* @__PURE__ */ jsx2("div", {
606
606
  className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded border p-3 font-mono text-xs",
607
- children: /* @__PURE__ */ jsxDEV2("pre", {
607
+ children: /* @__PURE__ */ jsx2("pre", {
608
608
  children: `// Product Canon space
609
609
  {
610
610
  id: "product-canon",
@@ -626,127 +626,127 @@ function KnowledgeCategoriesPage() {
626
626
  "compliance-requirements.md"
627
627
  ]
628
628
  }`
629
- }, undefined, false, undefined, this)
630
- }, undefined, false, undefined, this)
629
+ })
630
+ })
631
631
  ]
632
- }, undefined, true, undefined, this),
633
- /* @__PURE__ */ jsxDEV2("div", {
632
+ }),
633
+ /* @__PURE__ */ jsx2("div", {
634
634
  className: "card-subtle border-violet-500/30 bg-violet-500/10 p-3",
635
- children: /* @__PURE__ */ jsxDEV2("p", {
635
+ children: /* @__PURE__ */ jsxs2("p", {
636
636
  className: "text-sm text-violet-300",
637
637
  children: [
638
- /* @__PURE__ */ jsxDEV2("strong", {
638
+ /* @__PURE__ */ jsx2("strong", {
639
639
  children: "\u26A0\uFE0F Important:"
640
- }, undefined, false, undefined, this),
640
+ }),
641
641
  " Canonical knowledge is immutable once indexed. Changes require re-sync and versioning."
642
642
  ]
643
- }, undefined, true, undefined, this)
644
- }, undefined, false, undefined, this)
643
+ })
644
+ })
645
645
  ]
646
- }, undefined, true, undefined, this)
646
+ })
647
647
  ]
648
- }, undefined, true, undefined, this),
649
- /* @__PURE__ */ jsxDEV2("div", {
648
+ }),
649
+ /* @__PURE__ */ jsxs2("div", {
650
650
  className: "space-y-4",
651
651
  children: [
652
- /* @__PURE__ */ jsxDEV2("h3", {
652
+ /* @__PURE__ */ jsx2("h3", {
653
653
  className: "text-xl font-semibold",
654
654
  children: "2. Operational"
655
- }, undefined, false, undefined, this),
656
- /* @__PURE__ */ jsxDEV2("p", {
655
+ }),
656
+ /* @__PURE__ */ jsxs2("p", {
657
657
  className: "text-muted-foreground",
658
658
  children: [
659
- /* @__PURE__ */ jsxDEV2("strong", {
659
+ /* @__PURE__ */ jsx2("strong", {
660
660
  children: "Trust level:"
661
- }, undefined, false, undefined, this),
661
+ }),
662
662
  " High - Internal but not authoritative"
663
663
  ]
664
- }, undefined, true, undefined, this),
665
- /* @__PURE__ */ jsxDEV2("div", {
664
+ }),
665
+ /* @__PURE__ */ jsxs2("div", {
666
666
  className: "space-y-3",
667
667
  children: [
668
- /* @__PURE__ */ jsxDEV2("div", {
668
+ /* @__PURE__ */ jsxs2("div", {
669
669
  children: [
670
- /* @__PURE__ */ jsxDEV2("h4", {
670
+ /* @__PURE__ */ jsx2("h4", {
671
671
  className: "mb-2 text-sm font-semibold",
672
672
  children: "What it contains:"
673
- }, undefined, false, undefined, this),
674
- /* @__PURE__ */ jsxDEV2("ul", {
673
+ }),
674
+ /* @__PURE__ */ jsxs2("ul", {
675
675
  className: "text-muted-foreground ml-4 list-inside list-disc space-y-1 text-sm",
676
676
  children: [
677
- /* @__PURE__ */ jsxDEV2("li", {
677
+ /* @__PURE__ */ jsx2("li", {
678
678
  children: "Support ticket history and resolutions"
679
- }, undefined, false, undefined, this),
680
- /* @__PURE__ */ jsxDEV2("li", {
679
+ }),
680
+ /* @__PURE__ */ jsx2("li", {
681
681
  children: "Internal runbooks and playbooks"
682
- }, undefined, false, undefined, this),
683
- /* @__PURE__ */ jsxDEV2("li", {
682
+ }),
683
+ /* @__PURE__ */ jsx2("li", {
684
684
  children: "Sales materials and customer communications"
685
- }, undefined, false, undefined, this),
686
- /* @__PURE__ */ jsxDEV2("li", {
685
+ }),
686
+ /* @__PURE__ */ jsx2("li", {
687
687
  children: "Product management docs and roadmaps"
688
- }, undefined, false, undefined, this),
689
- /* @__PURE__ */ jsxDEV2("li", {
688
+ }),
689
+ /* @__PURE__ */ jsx2("li", {
690
690
  children: "Team wikis and knowledge bases"
691
- }, undefined, false, undefined, this)
691
+ })
692
692
  ]
693
- }, undefined, true, undefined, this)
693
+ })
694
694
  ]
695
- }, undefined, true, undefined, this),
696
- /* @__PURE__ */ jsxDEV2("div", {
695
+ }),
696
+ /* @__PURE__ */ jsxs2("div", {
697
697
  children: [
698
- /* @__PURE__ */ jsxDEV2("h4", {
698
+ /* @__PURE__ */ jsx2("h4", {
699
699
  className: "mb-2 text-sm font-semibold",
700
700
  children: "How it's used:"
701
- }, undefined, false, undefined, this),
702
- /* @__PURE__ */ jsxDEV2("ul", {
701
+ }),
702
+ /* @__PURE__ */ jsxs2("ul", {
703
703
  className: "text-muted-foreground ml-4 list-inside list-disc space-y-1 text-sm",
704
704
  children: [
705
- /* @__PURE__ */ jsxDEV2("li", {
705
+ /* @__PURE__ */ jsxs2("li", {
706
706
  children: [
707
- /* @__PURE__ */ jsxDEV2("strong", {
707
+ /* @__PURE__ */ jsx2("strong", {
708
708
  children: "Context"
709
- }, undefined, false, undefined, this),
709
+ }),
710
710
  " - Provides helpful context for decisions"
711
711
  ]
712
- }, undefined, true, undefined, this),
713
- /* @__PURE__ */ jsxDEV2("li", {
712
+ }),
713
+ /* @__PURE__ */ jsxs2("li", {
714
714
  children: [
715
- /* @__PURE__ */ jsxDEV2("strong", {
715
+ /* @__PURE__ */ jsx2("strong", {
716
716
  children: "Suggestions"
717
- }, undefined, false, undefined, this),
717
+ }),
718
718
  " - Informs recommendations, not requirements"
719
719
  ]
720
- }, undefined, true, undefined, this),
721
- /* @__PURE__ */ jsxDEV2("li", {
720
+ }),
721
+ /* @__PURE__ */ jsxs2("li", {
722
722
  children: [
723
- /* @__PURE__ */ jsxDEV2("strong", {
723
+ /* @__PURE__ */ jsx2("strong", {
724
724
  children: "Learning"
725
- }, undefined, false, undefined, this),
725
+ }),
726
726
  " - Helps agents learn from past interactions"
727
727
  ]
728
- }, undefined, true, undefined, this),
729
- /* @__PURE__ */ jsxDEV2("li", {
728
+ }),
729
+ /* @__PURE__ */ jsxs2("li", {
730
730
  children: [
731
- /* @__PURE__ */ jsxDEV2("strong", {
731
+ /* @__PURE__ */ jsx2("strong", {
732
732
  children: "Troubleshooting"
733
- }, undefined, false, undefined, this),
733
+ }),
734
734
  " - Guides problem-solving workflows"
735
735
  ]
736
- }, undefined, true, undefined, this)
736
+ })
737
737
  ]
738
- }, undefined, true, undefined, this)
738
+ })
739
739
  ]
740
- }, undefined, true, undefined, this),
741
- /* @__PURE__ */ jsxDEV2("div", {
740
+ }),
741
+ /* @__PURE__ */ jsxs2("div", {
742
742
  children: [
743
- /* @__PURE__ */ jsxDEV2("h4", {
743
+ /* @__PURE__ */ jsx2("h4", {
744
744
  className: "mb-2 text-sm font-semibold",
745
745
  children: "Examples:"
746
- }, undefined, false, undefined, this),
747
- /* @__PURE__ */ jsxDEV2("div", {
746
+ }),
747
+ /* @__PURE__ */ jsx2("div", {
748
748
  className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded border p-3 font-mono text-xs",
749
- children: /* @__PURE__ */ jsxDEV2("pre", {
749
+ children: /* @__PURE__ */ jsx2("pre", {
750
750
  children: `// Support History space
751
751
  {
752
752
  id: "support-history",
@@ -768,115 +768,115 @@ function KnowledgeCategoriesPage() {
768
768
  "google-drive:runbooks"
769
769
  ]
770
770
  }`
771
- }, undefined, false, undefined, this)
772
- }, undefined, false, undefined, this)
771
+ })
772
+ })
773
773
  ]
774
- }, undefined, true, undefined, this)
774
+ })
775
775
  ]
776
- }, undefined, true, undefined, this)
776
+ })
777
777
  ]
778
- }, undefined, true, undefined, this),
779
- /* @__PURE__ */ jsxDEV2("div", {
778
+ }),
779
+ /* @__PURE__ */ jsxs2("div", {
780
780
  className: "space-y-4",
781
781
  children: [
782
- /* @__PURE__ */ jsxDEV2("h3", {
782
+ /* @__PURE__ */ jsx2("h3", {
783
783
  className: "text-xl font-semibold",
784
784
  children: "3. External"
785
- }, undefined, false, undefined, this),
786
- /* @__PURE__ */ jsxDEV2("p", {
785
+ }),
786
+ /* @__PURE__ */ jsxs2("p", {
787
787
  className: "text-muted-foreground",
788
788
  children: [
789
- /* @__PURE__ */ jsxDEV2("strong", {
789
+ /* @__PURE__ */ jsx2("strong", {
790
790
  children: "Trust level:"
791
- }, undefined, false, undefined, this),
791
+ }),
792
792
  " Medium - Reference only"
793
793
  ]
794
- }, undefined, true, undefined, this),
795
- /* @__PURE__ */ jsxDEV2("div", {
794
+ }),
795
+ /* @__PURE__ */ jsxs2("div", {
796
796
  className: "space-y-3",
797
797
  children: [
798
- /* @__PURE__ */ jsxDEV2("div", {
798
+ /* @__PURE__ */ jsxs2("div", {
799
799
  children: [
800
- /* @__PURE__ */ jsxDEV2("h4", {
800
+ /* @__PURE__ */ jsx2("h4", {
801
801
  className: "mb-2 text-sm font-semibold",
802
802
  children: "What it contains:"
803
- }, undefined, false, undefined, this),
804
- /* @__PURE__ */ jsxDEV2("ul", {
803
+ }),
804
+ /* @__PURE__ */ jsxs2("ul", {
805
805
  className: "text-muted-foreground ml-4 list-inside list-disc space-y-1 text-sm",
806
806
  children: [
807
- /* @__PURE__ */ jsxDEV2("li", {
807
+ /* @__PURE__ */ jsx2("li", {
808
808
  children: "Third-party integration documentation (Stripe, Twilio)"
809
- }, undefined, false, undefined, this),
810
- /* @__PURE__ */ jsxDEV2("li", {
809
+ }),
810
+ /* @__PURE__ */ jsx2("li", {
811
811
  children: "Regulatory and compliance documents"
812
- }, undefined, false, undefined, this),
813
- /* @__PURE__ */ jsxDEV2("li", {
812
+ }),
813
+ /* @__PURE__ */ jsx2("li", {
814
814
  children: "Industry standards and best practices"
815
- }, undefined, false, undefined, this),
816
- /* @__PURE__ */ jsxDEV2("li", {
815
+ }),
816
+ /* @__PURE__ */ jsx2("li", {
817
817
  children: "Public API documentation"
818
- }, undefined, false, undefined, this),
819
- /* @__PURE__ */ jsxDEV2("li", {
818
+ }),
819
+ /* @__PURE__ */ jsx2("li", {
820
820
  children: "External knowledge bases"
821
- }, undefined, false, undefined, this)
821
+ })
822
822
  ]
823
- }, undefined, true, undefined, this)
823
+ })
824
824
  ]
825
- }, undefined, true, undefined, this),
826
- /* @__PURE__ */ jsxDEV2("div", {
825
+ }),
826
+ /* @__PURE__ */ jsxs2("div", {
827
827
  children: [
828
- /* @__PURE__ */ jsxDEV2("h4", {
828
+ /* @__PURE__ */ jsx2("h4", {
829
829
  className: "mb-2 text-sm font-semibold",
830
830
  children: "How it's used:"
831
- }, undefined, false, undefined, this),
832
- /* @__PURE__ */ jsxDEV2("ul", {
831
+ }),
832
+ /* @__PURE__ */ jsxs2("ul", {
833
833
  className: "text-muted-foreground ml-4 list-inside list-disc space-y-1 text-sm",
834
834
  children: [
835
- /* @__PURE__ */ jsxDEV2("li", {
835
+ /* @__PURE__ */ jsxs2("li", {
836
836
  children: [
837
- /* @__PURE__ */ jsxDEV2("strong", {
837
+ /* @__PURE__ */ jsx2("strong", {
838
838
  children: "Reference"
839
- }, undefined, false, undefined, this),
839
+ }),
840
840
  " - Consulted but not authoritative"
841
841
  ]
842
- }, undefined, true, undefined, this),
843
- /* @__PURE__ */ jsxDEV2("li", {
842
+ }),
843
+ /* @__PURE__ */ jsxs2("li", {
844
844
  children: [
845
- /* @__PURE__ */ jsxDEV2("strong", {
845
+ /* @__PURE__ */ jsx2("strong", {
846
846
  children: "Integration help"
847
- }, undefined, false, undefined, this),
847
+ }),
848
848
  " - Guides external API usage"
849
849
  ]
850
- }, undefined, true, undefined, this),
851
- /* @__PURE__ */ jsxDEV2("li", {
850
+ }),
851
+ /* @__PURE__ */ jsxs2("li", {
852
852
  children: [
853
- /* @__PURE__ */ jsxDEV2("strong", {
853
+ /* @__PURE__ */ jsx2("strong", {
854
854
  children: "Compliance context"
855
- }, undefined, false, undefined, this),
855
+ }),
856
856
  " - Provides regulatory background"
857
857
  ]
858
- }, undefined, true, undefined, this),
859
- /* @__PURE__ */ jsxDEV2("li", {
858
+ }),
859
+ /* @__PURE__ */ jsxs2("li", {
860
860
  children: [
861
- /* @__PURE__ */ jsxDEV2("strong", {
861
+ /* @__PURE__ */ jsx2("strong", {
862
862
  children: "Never for policy"
863
- }, undefined, false, undefined, this),
863
+ }),
864
864
  " - Cannot drive policy decisions"
865
865
  ]
866
- }, undefined, true, undefined, this)
866
+ })
867
867
  ]
868
- }, undefined, true, undefined, this)
868
+ })
869
869
  ]
870
- }, undefined, true, undefined, this),
871
- /* @__PURE__ */ jsxDEV2("div", {
870
+ }),
871
+ /* @__PURE__ */ jsxs2("div", {
872
872
  children: [
873
- /* @__PURE__ */ jsxDEV2("h4", {
873
+ /* @__PURE__ */ jsx2("h4", {
874
874
  className: "mb-2 text-sm font-semibold",
875
875
  children: "Examples:"
876
- }, undefined, false, undefined, this),
877
- /* @__PURE__ */ jsxDEV2("div", {
876
+ }),
877
+ /* @__PURE__ */ jsx2("div", {
878
878
  className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded border p-3 font-mono text-xs",
879
- children: /* @__PURE__ */ jsxDEV2("pre", {
879
+ children: /* @__PURE__ */ jsx2("pre", {
880
880
  children: `// External Provider Docs space
881
881
  {
882
882
  id: "provider-docs",
@@ -898,127 +898,127 @@ function KnowledgeCategoriesPage() {
898
898
  "pdf:SOC2-requirements.pdf"
899
899
  ]
900
900
  }`
901
- }, undefined, false, undefined, this)
902
- }, undefined, false, undefined, this)
901
+ })
902
+ })
903
903
  ]
904
- }, undefined, true, undefined, this),
905
- /* @__PURE__ */ jsxDEV2("div", {
904
+ }),
905
+ /* @__PURE__ */ jsx2("div", {
906
906
  className: "card-subtle border-amber-500/30 bg-amber-500/10 p-3",
907
- children: /* @__PURE__ */ jsxDEV2("p", {
907
+ children: /* @__PURE__ */ jsxs2("p", {
908
908
  className: "text-sm text-amber-300",
909
909
  children: [
910
- /* @__PURE__ */ jsxDEV2("strong", {
910
+ /* @__PURE__ */ jsx2("strong", {
911
911
  children: "\u26A0\uFE0F Note:"
912
- }, undefined, false, undefined, this),
912
+ }),
913
913
  ` External knowledge should be clearly marked in agent responses as "according to [source]" to indicate it's not internal authority.`
914
914
  ]
915
- }, undefined, true, undefined, this)
916
- }, undefined, false, undefined, this)
915
+ })
916
+ })
917
917
  ]
918
- }, undefined, true, undefined, this)
918
+ })
919
919
  ]
920
- }, undefined, true, undefined, this),
921
- /* @__PURE__ */ jsxDEV2("div", {
920
+ }),
921
+ /* @__PURE__ */ jsxs2("div", {
922
922
  className: "space-y-4",
923
923
  children: [
924
- /* @__PURE__ */ jsxDEV2("h3", {
924
+ /* @__PURE__ */ jsx2("h3", {
925
925
  className: "text-xl font-semibold",
926
926
  children: "4. Ephemeral"
927
- }, undefined, false, undefined, this),
928
- /* @__PURE__ */ jsxDEV2("p", {
927
+ }),
928
+ /* @__PURE__ */ jsxs2("p", {
929
929
  className: "text-muted-foreground",
930
930
  children: [
931
- /* @__PURE__ */ jsxDEV2("strong", {
931
+ /* @__PURE__ */ jsx2("strong", {
932
932
  children: "Trust level:"
933
- }, undefined, false, undefined, this),
933
+ }),
934
934
  " Low - Temporary context only"
935
935
  ]
936
- }, undefined, true, undefined, this),
937
- /* @__PURE__ */ jsxDEV2("div", {
936
+ }),
937
+ /* @__PURE__ */ jsxs2("div", {
938
938
  className: "space-y-3",
939
939
  children: [
940
- /* @__PURE__ */ jsxDEV2("div", {
940
+ /* @__PURE__ */ jsxs2("div", {
941
941
  children: [
942
- /* @__PURE__ */ jsxDEV2("h4", {
942
+ /* @__PURE__ */ jsx2("h4", {
943
943
  className: "mb-2 text-sm font-semibold",
944
944
  children: "What it contains:"
945
- }, undefined, false, undefined, this),
946
- /* @__PURE__ */ jsxDEV2("ul", {
945
+ }),
946
+ /* @__PURE__ */ jsxs2("ul", {
947
947
  className: "text-muted-foreground ml-4 list-inside list-disc space-y-1 text-sm",
948
948
  children: [
949
- /* @__PURE__ */ jsxDEV2("li", {
949
+ /* @__PURE__ */ jsx2("li", {
950
950
  children: "Agent conversation history and scratchpads"
951
- }, undefined, false, undefined, this),
952
- /* @__PURE__ */ jsxDEV2("li", {
951
+ }),
952
+ /* @__PURE__ */ jsx2("li", {
953
953
  children: "Session-specific context and state"
954
- }, undefined, false, undefined, this),
955
- /* @__PURE__ */ jsxDEV2("li", {
954
+ }),
955
+ /* @__PURE__ */ jsx2("li", {
956
956
  children: "Draft documents and work-in-progress"
957
- }, undefined, false, undefined, this),
958
- /* @__PURE__ */ jsxDEV2("li", {
957
+ }),
958
+ /* @__PURE__ */ jsx2("li", {
959
959
  children: "Temporary calculations and intermediate results"
960
- }, undefined, false, undefined, this),
961
- /* @__PURE__ */ jsxDEV2("li", {
960
+ }),
961
+ /* @__PURE__ */ jsx2("li", {
962
962
  children: "User-provided context for current task"
963
- }, undefined, false, undefined, this)
963
+ })
964
964
  ]
965
- }, undefined, true, undefined, this)
965
+ })
966
966
  ]
967
- }, undefined, true, undefined, this),
968
- /* @__PURE__ */ jsxDEV2("div", {
967
+ }),
968
+ /* @__PURE__ */ jsxs2("div", {
969
969
  children: [
970
- /* @__PURE__ */ jsxDEV2("h4", {
970
+ /* @__PURE__ */ jsx2("h4", {
971
971
  className: "mb-2 text-sm font-semibold",
972
972
  children: "How it's used:"
973
- }, undefined, false, undefined, this),
974
- /* @__PURE__ */ jsxDEV2("ul", {
973
+ }),
974
+ /* @__PURE__ */ jsxs2("ul", {
975
975
  className: "text-muted-foreground ml-4 list-inside list-disc space-y-1 text-sm",
976
976
  children: [
977
- /* @__PURE__ */ jsxDEV2("li", {
977
+ /* @__PURE__ */ jsxs2("li", {
978
978
  children: [
979
- /* @__PURE__ */ jsxDEV2("strong", {
979
+ /* @__PURE__ */ jsx2("strong", {
980
980
  children: "Session continuity"
981
- }, undefined, false, undefined, this),
981
+ }),
982
982
  " - Maintains conversation context"
983
983
  ]
984
- }, undefined, true, undefined, this),
985
- /* @__PURE__ */ jsxDEV2("li", {
984
+ }),
985
+ /* @__PURE__ */ jsxs2("li", {
986
986
  children: [
987
- /* @__PURE__ */ jsxDEV2("strong", {
987
+ /* @__PURE__ */ jsx2("strong", {
988
988
  children: "Working memory"
989
- }, undefined, false, undefined, this),
989
+ }),
990
990
  " - Stores intermediate results"
991
991
  ]
992
- }, undefined, true, undefined, this),
993
- /* @__PURE__ */ jsxDEV2("li", {
992
+ }),
993
+ /* @__PURE__ */ jsxs2("li", {
994
994
  children: [
995
- /* @__PURE__ */ jsxDEV2("strong", {
995
+ /* @__PURE__ */ jsx2("strong", {
996
996
  children: "Never persisted long-term"
997
- }, undefined, false, undefined, this),
997
+ }),
998
998
  " - Auto-purged after session"
999
999
  ]
1000
- }, undefined, true, undefined, this),
1001
- /* @__PURE__ */ jsxDEV2("li", {
1000
+ }),
1001
+ /* @__PURE__ */ jsxs2("li", {
1002
1002
  children: [
1003
- /* @__PURE__ */ jsxDEV2("strong", {
1003
+ /* @__PURE__ */ jsx2("strong", {
1004
1004
  children: "Never for decisions"
1005
- }, undefined, false, undefined, this),
1005
+ }),
1006
1006
  " - Cannot influence policy or validation"
1007
1007
  ]
1008
- }, undefined, true, undefined, this)
1008
+ })
1009
1009
  ]
1010
- }, undefined, true, undefined, this)
1010
+ })
1011
1011
  ]
1012
- }, undefined, true, undefined, this),
1013
- /* @__PURE__ */ jsxDEV2("div", {
1012
+ }),
1013
+ /* @__PURE__ */ jsxs2("div", {
1014
1014
  children: [
1015
- /* @__PURE__ */ jsxDEV2("h4", {
1015
+ /* @__PURE__ */ jsx2("h4", {
1016
1016
  className: "mb-2 text-sm font-semibold",
1017
1017
  children: "Examples:"
1018
- }, undefined, false, undefined, this),
1019
- /* @__PURE__ */ jsxDEV2("div", {
1018
+ }),
1019
+ /* @__PURE__ */ jsx2("div", {
1020
1020
  className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded border p-3 font-mono text-xs",
1021
- children: /* @__PURE__ */ jsxDEV2("pre", {
1021
+ children: /* @__PURE__ */ jsx2("pre", {
1022
1022
  children: `// Agent Scratchpad space
1023
1023
  {
1024
1024
  id: "agent-scratchpad",
@@ -1040,296 +1040,296 @@ function KnowledgeCategoriesPage() {
1040
1040
  "session:form-drafts"
1041
1041
  ]
1042
1042
  }`
1043
- }, undefined, false, undefined, this)
1044
- }, undefined, false, undefined, this)
1043
+ })
1044
+ })
1045
1045
  ]
1046
- }, undefined, true, undefined, this),
1047
- /* @__PURE__ */ jsxDEV2("div", {
1046
+ }),
1047
+ /* @__PURE__ */ jsx2("div", {
1048
1048
  className: "card-subtle border-red-500/30 bg-red-500/10 p-3",
1049
- children: /* @__PURE__ */ jsxDEV2("p", {
1049
+ children: /* @__PURE__ */ jsxs2("p", {
1050
1050
  className: "text-sm text-red-300",
1051
1051
  children: [
1052
- /* @__PURE__ */ jsxDEV2("strong", {
1052
+ /* @__PURE__ */ jsx2("strong", {
1053
1053
  children: "\u26A0\uFE0F Critical:"
1054
- }, undefined, false, undefined, this),
1054
+ }),
1055
1055
  " Ephemeral knowledge is never used for policy decisions, compliance checks, or any authoritative purpose."
1056
1056
  ]
1057
- }, undefined, true, undefined, this)
1058
- }, undefined, false, undefined, this)
1057
+ })
1058
+ })
1059
1059
  ]
1060
- }, undefined, true, undefined, this)
1060
+ })
1061
1061
  ]
1062
- }, undefined, true, undefined, this)
1062
+ })
1063
1063
  ]
1064
- }, undefined, true, undefined, this),
1065
- /* @__PURE__ */ jsxDEV2("div", {
1064
+ }),
1065
+ /* @__PURE__ */ jsxs2("div", {
1066
1066
  className: "space-y-4",
1067
1067
  children: [
1068
- /* @__PURE__ */ jsxDEV2("h2", {
1068
+ /* @__PURE__ */ jsx2("h2", {
1069
1069
  className: "text-2xl font-bold",
1070
1070
  children: "Category comparison"
1071
- }, undefined, false, undefined, this),
1072
- /* @__PURE__ */ jsxDEV2("div", {
1071
+ }),
1072
+ /* @__PURE__ */ jsx2("div", {
1073
1073
  className: "border-border/50 overflow-x-auto rounded-lg border",
1074
- children: /* @__PURE__ */ jsxDEV2("table", {
1074
+ children: /* @__PURE__ */ jsxs2("table", {
1075
1075
  className: "w-full text-left text-sm",
1076
1076
  children: [
1077
- /* @__PURE__ */ jsxDEV2("thead", {
1077
+ /* @__PURE__ */ jsx2("thead", {
1078
1078
  className: "bg-card/50",
1079
- children: /* @__PURE__ */ jsxDEV2("tr", {
1079
+ children: /* @__PURE__ */ jsxs2("tr", {
1080
1080
  className: "border-border/50 border-b",
1081
1081
  children: [
1082
- /* @__PURE__ */ jsxDEV2("th", {
1082
+ /* @__PURE__ */ jsx2("th", {
1083
1083
  className: "px-4 py-3 font-semibold",
1084
1084
  children: "Feature"
1085
- }, undefined, false, undefined, this),
1086
- /* @__PURE__ */ jsxDEV2("th", {
1085
+ }),
1086
+ /* @__PURE__ */ jsx2("th", {
1087
1087
  className: "px-4 py-3 font-semibold",
1088
1088
  children: "Canonical"
1089
- }, undefined, false, undefined, this),
1090
- /* @__PURE__ */ jsxDEV2("th", {
1089
+ }),
1090
+ /* @__PURE__ */ jsx2("th", {
1091
1091
  className: "px-4 py-3 font-semibold",
1092
1092
  children: "Operational"
1093
- }, undefined, false, undefined, this),
1094
- /* @__PURE__ */ jsxDEV2("th", {
1093
+ }),
1094
+ /* @__PURE__ */ jsx2("th", {
1095
1095
  className: "px-4 py-3 font-semibold",
1096
1096
  children: "External"
1097
- }, undefined, false, undefined, this),
1098
- /* @__PURE__ */ jsxDEV2("th", {
1097
+ }),
1098
+ /* @__PURE__ */ jsx2("th", {
1099
1099
  className: "px-4 py-3 font-semibold",
1100
1100
  children: "Ephemeral"
1101
- }, undefined, false, undefined, this)
1101
+ })
1102
1102
  ]
1103
- }, undefined, true, undefined, this)
1104
- }, undefined, false, undefined, this),
1105
- /* @__PURE__ */ jsxDEV2("tbody", {
1103
+ })
1104
+ }),
1105
+ /* @__PURE__ */ jsxs2("tbody", {
1106
1106
  className: "divide-border/50 divide-y",
1107
1107
  children: [
1108
- /* @__PURE__ */ jsxDEV2("tr", {
1108
+ /* @__PURE__ */ jsxs2("tr", {
1109
1109
  children: [
1110
- /* @__PURE__ */ jsxDEV2("td", {
1110
+ /* @__PURE__ */ jsx2("td", {
1111
1111
  className: "px-4 py-3 font-semibold",
1112
1112
  children: "Trust Level"
1113
- }, undefined, false, undefined, this),
1114
- /* @__PURE__ */ jsxDEV2("td", {
1113
+ }),
1114
+ /* @__PURE__ */ jsx2("td", {
1115
1115
  className: "px-4 py-3",
1116
1116
  children: "Highest"
1117
- }, undefined, false, undefined, this),
1118
- /* @__PURE__ */ jsxDEV2("td", {
1117
+ }),
1118
+ /* @__PURE__ */ jsx2("td", {
1119
1119
  className: "px-4 py-3",
1120
1120
  children: "High"
1121
- }, undefined, false, undefined, this),
1122
- /* @__PURE__ */ jsxDEV2("td", {
1121
+ }),
1122
+ /* @__PURE__ */ jsx2("td", {
1123
1123
  className: "px-4 py-3",
1124
1124
  children: "Medium"
1125
- }, undefined, false, undefined, this),
1126
- /* @__PURE__ */ jsxDEV2("td", {
1125
+ }),
1126
+ /* @__PURE__ */ jsx2("td", {
1127
1127
  className: "px-4 py-3",
1128
1128
  children: "Low"
1129
- }, undefined, false, undefined, this)
1129
+ })
1130
1130
  ]
1131
- }, undefined, true, undefined, this),
1132
- /* @__PURE__ */ jsxDEV2("tr", {
1131
+ }),
1132
+ /* @__PURE__ */ jsxs2("tr", {
1133
1133
  children: [
1134
- /* @__PURE__ */ jsxDEV2("td", {
1134
+ /* @__PURE__ */ jsx2("td", {
1135
1135
  className: "px-4 py-3 font-semibold",
1136
1136
  children: "Policy Impact"
1137
- }, undefined, false, undefined, this),
1138
- /* @__PURE__ */ jsxDEV2("td", {
1137
+ }),
1138
+ /* @__PURE__ */ jsx2("td", {
1139
1139
  className: "px-4 py-3",
1140
1140
  children: "\u2705 Can drive decisions"
1141
- }, undefined, false, undefined, this),
1142
- /* @__PURE__ */ jsxDEV2("td", {
1141
+ }),
1142
+ /* @__PURE__ */ jsx2("td", {
1143
1143
  className: "px-4 py-3",
1144
1144
  children: "\u26A0\uFE0F Can inform"
1145
- }, undefined, false, undefined, this),
1146
- /* @__PURE__ */ jsxDEV2("td", {
1145
+ }),
1146
+ /* @__PURE__ */ jsx2("td", {
1147
1147
  className: "px-4 py-3",
1148
1148
  children: "\u274C Reference only"
1149
- }, undefined, false, undefined, this),
1150
- /* @__PURE__ */ jsxDEV2("td", {
1149
+ }),
1150
+ /* @__PURE__ */ jsx2("td", {
1151
1151
  className: "px-4 py-3",
1152
1152
  children: "\u274C Never used"
1153
- }, undefined, false, undefined, this)
1153
+ })
1154
1154
  ]
1155
- }, undefined, true, undefined, this),
1156
- /* @__PURE__ */ jsxDEV2("tr", {
1155
+ }),
1156
+ /* @__PURE__ */ jsxs2("tr", {
1157
1157
  children: [
1158
- /* @__PURE__ */ jsxDEV2("td", {
1158
+ /* @__PURE__ */ jsx2("td", {
1159
1159
  className: "px-4 py-3 font-semibold",
1160
1160
  children: "Mutability"
1161
- }, undefined, false, undefined, this),
1162
- /* @__PURE__ */ jsxDEV2("td", {
1161
+ }),
1162
+ /* @__PURE__ */ jsx2("td", {
1163
1163
  className: "px-4 py-3",
1164
1164
  children: "Immutable"
1165
- }, undefined, false, undefined, this),
1166
- /* @__PURE__ */ jsxDEV2("td", {
1165
+ }),
1166
+ /* @__PURE__ */ jsx2("td", {
1167
1167
  className: "px-4 py-3",
1168
1168
  children: "Mutable"
1169
- }, undefined, false, undefined, this),
1170
- /* @__PURE__ */ jsxDEV2("td", {
1169
+ }),
1170
+ /* @__PURE__ */ jsx2("td", {
1171
1171
  className: "px-4 py-3",
1172
1172
  children: "Mutable"
1173
- }, undefined, false, undefined, this),
1174
- /* @__PURE__ */ jsxDEV2("td", {
1173
+ }),
1174
+ /* @__PURE__ */ jsx2("td", {
1175
1175
  className: "px-4 py-3",
1176
1176
  children: "Temporary"
1177
- }, undefined, false, undefined, this)
1177
+ })
1178
1178
  ]
1179
- }, undefined, true, undefined, this),
1180
- /* @__PURE__ */ jsxDEV2("tr", {
1179
+ }),
1180
+ /* @__PURE__ */ jsxs2("tr", {
1181
1181
  children: [
1182
- /* @__PURE__ */ jsxDEV2("td", {
1182
+ /* @__PURE__ */ jsx2("td", {
1183
1183
  className: "px-4 py-3 font-semibold",
1184
1184
  children: "Retention"
1185
- }, undefined, false, undefined, this),
1186
- /* @__PURE__ */ jsxDEV2("td", {
1185
+ }),
1186
+ /* @__PURE__ */ jsx2("td", {
1187
1187
  className: "px-4 py-3",
1188
1188
  children: "Permanent"
1189
- }, undefined, false, undefined, this),
1190
- /* @__PURE__ */ jsxDEV2("td", {
1189
+ }),
1190
+ /* @__PURE__ */ jsx2("td", {
1191
1191
  className: "px-4 py-3",
1192
1192
  children: "Long-term"
1193
- }, undefined, false, undefined, this),
1194
- /* @__PURE__ */ jsxDEV2("td", {
1193
+ }),
1194
+ /* @__PURE__ */ jsx2("td", {
1195
1195
  className: "px-4 py-3",
1196
1196
  children: "Long-term"
1197
- }, undefined, false, undefined, this),
1198
- /* @__PURE__ */ jsxDEV2("td", {
1197
+ }),
1198
+ /* @__PURE__ */ jsx2("td", {
1199
1199
  className: "px-4 py-3",
1200
1200
  children: "Short-term"
1201
- }, undefined, false, undefined, this)
1201
+ })
1202
1202
  ]
1203
- }, undefined, true, undefined, this),
1204
- /* @__PURE__ */ jsxDEV2("tr", {
1203
+ }),
1204
+ /* @__PURE__ */ jsxs2("tr", {
1205
1205
  children: [
1206
- /* @__PURE__ */ jsxDEV2("td", {
1206
+ /* @__PURE__ */ jsx2("td", {
1207
1207
  className: "px-4 py-3 font-semibold",
1208
1208
  children: "Audit Level"
1209
- }, undefined, false, undefined, this),
1210
- /* @__PURE__ */ jsxDEV2("td", {
1209
+ }),
1210
+ /* @__PURE__ */ jsx2("td", {
1211
1211
  className: "px-4 py-3",
1212
1212
  children: "Full audit"
1213
- }, undefined, false, undefined, this),
1214
- /* @__PURE__ */ jsxDEV2("td", {
1213
+ }),
1214
+ /* @__PURE__ */ jsx2("td", {
1215
1215
  className: "px-4 py-3",
1216
1216
  children: "Full audit"
1217
- }, undefined, false, undefined, this),
1218
- /* @__PURE__ */ jsxDEV2("td", {
1217
+ }),
1218
+ /* @__PURE__ */ jsx2("td", {
1219
1219
  className: "px-4 py-3",
1220
1220
  children: "Basic audit"
1221
- }, undefined, false, undefined, this),
1222
- /* @__PURE__ */ jsxDEV2("td", {
1221
+ }),
1222
+ /* @__PURE__ */ jsx2("td", {
1223
1223
  className: "px-4 py-3",
1224
1224
  children: "Minimal audit"
1225
- }, undefined, false, undefined, this)
1225
+ })
1226
1226
  ]
1227
- }, undefined, true, undefined, this)
1227
+ })
1228
1228
  ]
1229
- }, undefined, true, undefined, this)
1229
+ })
1230
1230
  ]
1231
- }, undefined, true, undefined, this)
1232
- }, undefined, false, undefined, this)
1231
+ })
1232
+ })
1233
1233
  ]
1234
- }, undefined, true, undefined, this),
1235
- /* @__PURE__ */ jsxDEV2("div", {
1234
+ }),
1235
+ /* @__PURE__ */ jsxs2("div", {
1236
1236
  className: "space-y-4",
1237
1237
  children: [
1238
- /* @__PURE__ */ jsxDEV2("h2", {
1238
+ /* @__PURE__ */ jsx2("h2", {
1239
1239
  className: "text-2xl font-bold",
1240
1240
  children: "Best practices"
1241
- }, undefined, false, undefined, this),
1242
- /* @__PURE__ */ jsxDEV2("ul", {
1241
+ }),
1242
+ /* @__PURE__ */ jsxs2("ul", {
1243
1243
  className: "text-muted-foreground list-inside list-disc space-y-2",
1244
1244
  children: [
1245
- /* @__PURE__ */ jsxDEV2("li", {
1245
+ /* @__PURE__ */ jsx2("li", {
1246
1246
  children: "Use canonical for anything that affects policy, pricing, or compliance"
1247
- }, undefined, false, undefined, this),
1248
- /* @__PURE__ */ jsxDEV2("li", {
1247
+ }),
1248
+ /* @__PURE__ */ jsx2("li", {
1249
1249
  children: "Use operational for context that helps but doesn't dictate decisions"
1250
- }, undefined, false, undefined, this),
1251
- /* @__PURE__ */ jsxDEV2("li", {
1250
+ }),
1251
+ /* @__PURE__ */ jsx2("li", {
1252
1252
  children: "Use external for reference material that's helpful but not authoritative"
1253
- }, undefined, false, undefined, this),
1254
- /* @__PURE__ */ jsxDEV2("li", {
1253
+ }),
1254
+ /* @__PURE__ */ jsx2("li", {
1255
1255
  children: "Use ephemeral for temporary working memory that shouldn't persist"
1256
- }, undefined, false, undefined, this),
1257
- /* @__PURE__ */ jsxDEV2("li", {
1256
+ }),
1257
+ /* @__PURE__ */ jsx2("li", {
1258
1258
  children: "Never mix categories in a single knowledge space - keep them separate"
1259
- }, undefined, false, undefined, this),
1260
- /* @__PURE__ */ jsxDEV2("li", {
1259
+ }),
1260
+ /* @__PURE__ */ jsx2("li", {
1261
1261
  children: "Document the category and purpose of each knowledge space clearly"
1262
- }, undefined, false, undefined, this)
1262
+ })
1263
1263
  ]
1264
- }, undefined, true, undefined, this)
1264
+ })
1265
1265
  ]
1266
- }, undefined, true, undefined, this),
1267
- /* @__PURE__ */ jsxDEV2("div", {
1266
+ }),
1267
+ /* @__PURE__ */ jsxs2("div", {
1268
1268
  className: "flex items-center gap-4 pt-4",
1269
1269
  children: [
1270
- /* @__PURE__ */ jsxDEV2(Link2, {
1270
+ /* @__PURE__ */ jsx2(Link2, {
1271
1271
  href: "/docs/knowledge",
1272
1272
  className: "btn-ghost",
1273
1273
  children: "Back to Knowledge"
1274
- }, undefined, false, undefined, this),
1275
- /* @__PURE__ */ jsxDEV2(Link2, {
1274
+ }),
1275
+ /* @__PURE__ */ jsxs2(Link2, {
1276
1276
  href: "/docs/knowledge/spaces",
1277
1277
  className: "btn-primary",
1278
1278
  children: [
1279
1279
  "Knowledge Spaces ",
1280
- /* @__PURE__ */ jsxDEV2(ChevronRight2, {
1280
+ /* @__PURE__ */ jsx2(ChevronRight2, {
1281
1281
  size: 16
1282
- }, undefined, false, undefined, this)
1282
+ })
1283
1283
  ]
1284
- }, undefined, true, undefined, this)
1284
+ })
1285
1285
  ]
1286
- }, undefined, true, undefined, this)
1286
+ })
1287
1287
  ]
1288
- }, undefined, true, undefined, this);
1288
+ });
1289
1289
  }
1290
1290
 
1291
1291
  // src/components/docs/knowledge/KnowledgeExamplesPage.tsx
1292
1292
  import Link3 from "@contractspec/lib.ui-link";
1293
- import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
1293
+ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
1294
1294
  function KnowledgeExamplesPage() {
1295
- return /* @__PURE__ */ jsxDEV3("div", {
1295
+ return /* @__PURE__ */ jsxs3("div", {
1296
1296
  className: "space-y-8",
1297
1297
  children: [
1298
- /* @__PURE__ */ jsxDEV3("div", {
1298
+ /* @__PURE__ */ jsxs3("div", {
1299
1299
  className: "space-y-4",
1300
1300
  children: [
1301
- /* @__PURE__ */ jsxDEV3("h1", {
1301
+ /* @__PURE__ */ jsx3("h1", {
1302
1302
  className: "text-4xl font-bold",
1303
1303
  children: "Knowledge Examples"
1304
- }, undefined, false, undefined, this),
1305
- /* @__PURE__ */ jsxDEV3("p", {
1304
+ }),
1305
+ /* @__PURE__ */ jsx3("p", {
1306
1306
  className: "text-muted-foreground",
1307
1307
  children: "Real-world examples of how different applications use knowledge spaces to power intelligent workflows and agents."
1308
- }, undefined, false, undefined, this)
1308
+ })
1309
1309
  ]
1310
- }, undefined, true, undefined, this),
1311
- /* @__PURE__ */ jsxDEV3("div", {
1310
+ }),
1311
+ /* @__PURE__ */ jsxs3("div", {
1312
1312
  className: "space-y-6",
1313
1313
  children: [
1314
- /* @__PURE__ */ jsxDEV3("div", {
1314
+ /* @__PURE__ */ jsxs3("div", {
1315
1315
  className: "space-y-4",
1316
1316
  children: [
1317
- /* @__PURE__ */ jsxDEV3("h2", {
1317
+ /* @__PURE__ */ jsx3("h2", {
1318
1318
  className: "text-2xl font-bold",
1319
1319
  children: "Example 1: ArtisanOS Support Agent"
1320
- }, undefined, false, undefined, this),
1321
- /* @__PURE__ */ jsxDEV3("p", {
1320
+ }),
1321
+ /* @__PURE__ */ jsxs3("p", {
1322
1322
  className: "text-muted-foreground",
1323
1323
  children: [
1324
- /* @__PURE__ */ jsxDEV3("strong", {
1324
+ /* @__PURE__ */ jsx3("strong", {
1325
1325
  children: "Context:"
1326
- }, undefined, false, undefined, this),
1326
+ }),
1327
1327
  " ArtisanOS needs a support agent that can answer product questions using official documentation and learn from past support tickets."
1328
1328
  ]
1329
- }, undefined, true, undefined, this),
1330
- /* @__PURE__ */ jsxDEV3("div", {
1329
+ }),
1330
+ /* @__PURE__ */ jsx3("div", {
1331
1331
  className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded-lg border p-4 font-mono text-sm",
1332
- children: /* @__PURE__ */ jsxDEV3("pre", {
1332
+ children: /* @__PURE__ */ jsx3("pre", {
1333
1333
  children: `// Knowledge spaces
1334
1334
  knowledgeSpaces: [
1335
1335
  {
@@ -1385,29 +1385,29 @@ steps:
1385
1385
  Question: \${input.question}
1386
1386
  Docs: \${steps.search-canon.output.results}
1387
1387
  History: \${steps.search-history.output.results}`
1388
- }, undefined, false, undefined, this)
1389
- }, undefined, false, undefined, this)
1388
+ })
1389
+ })
1390
1390
  ]
1391
- }, undefined, true, undefined, this),
1392
- /* @__PURE__ */ jsxDEV3("div", {
1391
+ }),
1392
+ /* @__PURE__ */ jsxs3("div", {
1393
1393
  className: "space-y-4",
1394
1394
  children: [
1395
- /* @__PURE__ */ jsxDEV3("h2", {
1395
+ /* @__PURE__ */ jsx3("h2", {
1396
1396
  className: "text-2xl font-bold",
1397
1397
  children: "Example 2: HCircle Invoice Generation"
1398
- }, undefined, false, undefined, this),
1399
- /* @__PURE__ */ jsxDEV3("p", {
1398
+ }),
1399
+ /* @__PURE__ */ jsxs3("p", {
1400
1400
  className: "text-muted-foreground",
1401
1401
  children: [
1402
- /* @__PURE__ */ jsxDEV3("strong", {
1402
+ /* @__PURE__ */ jsx3("strong", {
1403
1403
  children: "Context:"
1404
- }, undefined, false, undefined, this),
1404
+ }),
1405
1405
  " HCircle needs to generate invoices using house playbook rules and resident service history."
1406
1406
  ]
1407
- }, undefined, true, undefined, this),
1408
- /* @__PURE__ */ jsxDEV3("div", {
1407
+ }),
1408
+ /* @__PURE__ */ jsx3("div", {
1409
1409
  className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded-lg border p-4 font-mono text-sm",
1410
- children: /* @__PURE__ */ jsxDEV3("pre", {
1410
+ children: /* @__PURE__ */ jsx3("pre", {
1411
1411
  children: `// Knowledge spaces
1412
1412
  knowledgeSpaces: [
1413
1413
  {
@@ -1455,29 +1455,29 @@ steps:
1455
1455
  inputs:
1456
1456
  table: "invoices"
1457
1457
  data: \${steps.calculate-total.output}`
1458
- }, undefined, false, undefined, this)
1459
- }, undefined, false, undefined, this)
1458
+ })
1459
+ })
1460
1460
  ]
1461
- }, undefined, true, undefined, this),
1462
- /* @__PURE__ */ jsxDEV3("div", {
1461
+ }),
1462
+ /* @__PURE__ */ jsxs3("div", {
1463
1463
  className: "space-y-4",
1464
1464
  children: [
1465
- /* @__PURE__ */ jsxDEV3("h2", {
1465
+ /* @__PURE__ */ jsx3("h2", {
1466
1466
  className: "text-2xl font-bold",
1467
1467
  children: "Example 3: Multi-tenant SaaS with External Docs"
1468
- }, undefined, false, undefined, this),
1469
- /* @__PURE__ */ jsxDEV3("p", {
1468
+ }),
1469
+ /* @__PURE__ */ jsxs3("p", {
1470
1470
  className: "text-muted-foreground",
1471
1471
  children: [
1472
- /* @__PURE__ */ jsxDEV3("strong", {
1472
+ /* @__PURE__ */ jsx3("strong", {
1473
1473
  children: "Context:"
1474
- }, undefined, false, undefined, this),
1474
+ }),
1475
1475
  " A SaaS platform needs to help users integrate with Stripe, using both internal guides and Stripe's official documentation."
1476
1476
  ]
1477
- }, undefined, true, undefined, this),
1478
- /* @__PURE__ */ jsxDEV3("div", {
1477
+ }),
1478
+ /* @__PURE__ */ jsx3("div", {
1479
1479
  className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded-lg border p-4 font-mono text-sm",
1480
- children: /* @__PURE__ */ jsxDEV3("pre", {
1480
+ children: /* @__PURE__ */ jsx3("pre", {
1481
1481
  children: `// Knowledge spaces
1482
1482
  knowledgeSpaces: [
1483
1483
  {
@@ -1547,122 +1547,122 @@ steps:
1547
1547
  Internal: \${steps.search-internal-guides.output.results}
1548
1548
  Stripe: \${steps.search-stripe-docs.output.results}
1549
1549
  Past: \${steps.search-past-questions.output.results}`
1550
- }, undefined, false, undefined, this)
1551
- }, undefined, false, undefined, this)
1550
+ })
1551
+ })
1552
1552
  ]
1553
- }, undefined, true, undefined, this)
1553
+ })
1554
1554
  ]
1555
- }, undefined, true, undefined, this),
1556
- /* @__PURE__ */ jsxDEV3("div", {
1555
+ }),
1556
+ /* @__PURE__ */ jsxs3("div", {
1557
1557
  className: "space-y-4",
1558
1558
  children: [
1559
- /* @__PURE__ */ jsxDEV3("h2", {
1559
+ /* @__PURE__ */ jsx3("h2", {
1560
1560
  className: "text-2xl font-bold",
1561
1561
  children: "Key patterns"
1562
- }, undefined, false, undefined, this),
1563
- /* @__PURE__ */ jsxDEV3("ul", {
1562
+ }),
1563
+ /* @__PURE__ */ jsxs3("ul", {
1564
1564
  className: "text-muted-foreground list-inside list-disc space-y-2",
1565
1565
  children: [
1566
- /* @__PURE__ */ jsxDEV3("li", {
1566
+ /* @__PURE__ */ jsxs3("li", {
1567
1567
  children: [
1568
- /* @__PURE__ */ jsxDEV3("strong", {
1568
+ /* @__PURE__ */ jsx3("strong", {
1569
1569
  children: "Canonical first"
1570
- }, undefined, false, undefined, this),
1570
+ }),
1571
1571
  " - Always search canonical spaces before operational or external"
1572
1572
  ]
1573
- }, undefined, true, undefined, this),
1574
- /* @__PURE__ */ jsxDEV3("li", {
1573
+ }),
1574
+ /* @__PURE__ */ jsxs3("li", {
1575
1575
  children: [
1576
- /* @__PURE__ */ jsxDEV3("strong", {
1576
+ /* @__PURE__ */ jsx3("strong", {
1577
1577
  children: "Category-aware prompts"
1578
- }, undefined, false, undefined, this),
1578
+ }),
1579
1579
  " - Tell the LLM which sources are authoritative vs reference"
1580
1580
  ]
1581
- }, undefined, true, undefined, this),
1582
- /* @__PURE__ */ jsxDEV3("li", {
1581
+ }),
1582
+ /* @__PURE__ */ jsxs3("li", {
1583
1583
  children: [
1584
- /* @__PURE__ */ jsxDEV3("strong", {
1584
+ /* @__PURE__ */ jsx3("strong", {
1585
1585
  children: "Multi-space queries"
1586
- }, undefined, false, undefined, this),
1586
+ }),
1587
1587
  " - Combine results from multiple spaces for richer context"
1588
1588
  ]
1589
- }, undefined, true, undefined, this),
1590
- /* @__PURE__ */ jsxDEV3("li", {
1589
+ }),
1590
+ /* @__PURE__ */ jsxs3("li", {
1591
1591
  children: [
1592
- /* @__PURE__ */ jsxDEV3("strong", {
1592
+ /* @__PURE__ */ jsx3("strong", {
1593
1593
  children: "Limit results"
1594
- }, undefined, false, undefined, this),
1594
+ }),
1595
1595
  " - Use appropriate limits (3-5) to avoid token overflow"
1596
1596
  ]
1597
- }, undefined, true, undefined, this),
1598
- /* @__PURE__ */ jsxDEV3("li", {
1597
+ }),
1598
+ /* @__PURE__ */ jsxs3("li", {
1599
1599
  children: [
1600
- /* @__PURE__ */ jsxDEV3("strong", {
1600
+ /* @__PURE__ */ jsx3("strong", {
1601
1601
  children: "Audit everything"
1602
- }, undefined, false, undefined, this),
1602
+ }),
1603
1603
  " - Log all knowledge queries for debugging and compliance"
1604
1604
  ]
1605
- }, undefined, true, undefined, this)
1605
+ })
1606
1606
  ]
1607
- }, undefined, true, undefined, this)
1607
+ })
1608
1608
  ]
1609
- }, undefined, true, undefined, this),
1610
- /* @__PURE__ */ jsxDEV3("div", {
1609
+ }),
1610
+ /* @__PURE__ */ jsxs3("div", {
1611
1611
  className: "flex items-center gap-4 pt-4",
1612
1612
  children: [
1613
- /* @__PURE__ */ jsxDEV3(Link3, {
1613
+ /* @__PURE__ */ jsx3(Link3, {
1614
1614
  href: "/docs/knowledge/sources",
1615
1615
  className: "btn-ghost",
1616
1616
  children: "Previous: Sources"
1617
- }, undefined, false, undefined, this),
1618
- /* @__PURE__ */ jsxDEV3(Link3, {
1617
+ }),
1618
+ /* @__PURE__ */ jsx3(Link3, {
1619
1619
  href: "/docs/architecture/knowledge-binding",
1620
1620
  className: "btn-ghost",
1621
1621
  children: "Knowledge Binding"
1622
- }, undefined, false, undefined, this)
1622
+ })
1623
1623
  ]
1624
- }, undefined, true, undefined, this)
1624
+ })
1625
1625
  ]
1626
- }, undefined, true, undefined, this);
1626
+ });
1627
1627
  }
1628
1628
 
1629
1629
  // src/components/docs/knowledge/KnowledgeSourcesPage.tsx
1630
1630
  import Link4 from "@contractspec/lib.ui-link";
1631
1631
  import { ChevronRight as ChevronRight3 } from "lucide-react";
1632
- import { jsxDEV as jsxDEV4 } from "react/jsx-dev-runtime";
1632
+ import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
1633
1633
  function KnowledgeSourcesPage() {
1634
- return /* @__PURE__ */ jsxDEV4("div", {
1634
+ return /* @__PURE__ */ jsxs4("div", {
1635
1635
  className: "space-y-8",
1636
1636
  children: [
1637
- /* @__PURE__ */ jsxDEV4("div", {
1637
+ /* @__PURE__ */ jsxs4("div", {
1638
1638
  className: "space-y-4",
1639
1639
  children: [
1640
- /* @__PURE__ */ jsxDEV4("h1", {
1640
+ /* @__PURE__ */ jsx4("h1", {
1641
1641
  className: "text-4xl font-bold",
1642
1642
  children: "Knowledge Sources"
1643
- }, undefined, false, undefined, this),
1644
- /* @__PURE__ */ jsxDEV4("p", {
1643
+ }),
1644
+ /* @__PURE__ */ jsxs4("p", {
1645
1645
  className: "text-muted-foreground",
1646
1646
  children: [
1647
1647
  "A ",
1648
- /* @__PURE__ */ jsxDEV4("strong", {
1648
+ /* @__PURE__ */ jsx4("strong", {
1649
1649
  children: "KnowledgeSourceConfig"
1650
- }, undefined, false, undefined, this),
1650
+ }),
1651
1651
  " connects a tenant's data sources (Notion, Gmail, uploads, databases) to knowledge spaces. Each source is synced, chunked, embedded, and indexed according to the space's configuration."
1652
1652
  ]
1653
- }, undefined, true, undefined, this)
1653
+ })
1654
1654
  ]
1655
- }, undefined, true, undefined, this),
1656
- /* @__PURE__ */ jsxDEV4("div", {
1655
+ }),
1656
+ /* @__PURE__ */ jsxs4("div", {
1657
1657
  className: "space-y-4",
1658
1658
  children: [
1659
- /* @__PURE__ */ jsxDEV4("h2", {
1659
+ /* @__PURE__ */ jsx4("h2", {
1660
1660
  className: "text-2xl font-bold",
1661
1661
  children: "KnowledgeSourceConfig"
1662
- }, undefined, false, undefined, this),
1663
- /* @__PURE__ */ jsxDEV4("div", {
1662
+ }),
1663
+ /* @__PURE__ */ jsx4("div", {
1664
1664
  className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded-lg border p-4 font-mono text-sm",
1665
- children: /* @__PURE__ */ jsxDEV4("pre", {
1665
+ children: /* @__PURE__ */ jsx4("pre", {
1666
1666
  children: `type KnowledgeSourceConfig = {
1667
1667
  id: string;
1668
1668
  tenantId: string;
@@ -1691,243 +1691,243 @@ function KnowledgeSourcesPage() {
1691
1691
  createdAt: string;
1692
1692
  updatedAt: string;
1693
1693
  };`
1694
- }, undefined, false, undefined, this)
1695
- }, undefined, false, undefined, this)
1694
+ })
1695
+ })
1696
1696
  ]
1697
- }, undefined, true, undefined, this),
1698
- /* @__PURE__ */ jsxDEV4("div", {
1697
+ }),
1698
+ /* @__PURE__ */ jsxs4("div", {
1699
1699
  className: "space-y-4",
1700
1700
  children: [
1701
- /* @__PURE__ */ jsxDEV4("h2", {
1701
+ /* @__PURE__ */ jsx4("h2", {
1702
1702
  className: "text-2xl font-bold",
1703
1703
  children: "Source types"
1704
- }, undefined, false, undefined, this),
1705
- /* @__PURE__ */ jsxDEV4("div", {
1704
+ }),
1705
+ /* @__PURE__ */ jsxs4("div", {
1706
1706
  className: "space-y-6",
1707
1707
  children: [
1708
- /* @__PURE__ */ jsxDEV4("div", {
1708
+ /* @__PURE__ */ jsxs4("div", {
1709
1709
  className: "card-subtle p-4",
1710
1710
  children: [
1711
- /* @__PURE__ */ jsxDEV4("h3", {
1711
+ /* @__PURE__ */ jsx4("h3", {
1712
1712
  className: "mb-2 text-lg font-semibold",
1713
1713
  children: "Uploaded Documents"
1714
- }, undefined, false, undefined, this),
1715
- /* @__PURE__ */ jsxDEV4("div", {
1714
+ }),
1715
+ /* @__PURE__ */ jsx4("div", {
1716
1716
  className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded border p-3 font-mono text-xs",
1717
- children: /* @__PURE__ */ jsxDEV4("pre", {
1717
+ children: /* @__PURE__ */ jsx4("pre", {
1718
1718
  children: `{
1719
1719
  kind: "uploaded-document",
1720
1720
  location: "s3://bucket/tenant-123/docs/product-spec.pdf",
1721
1721
  syncPolicy: { manual: true }
1722
1722
  }`
1723
- }, undefined, false, undefined, this)
1724
- }, undefined, false, undefined, this),
1725
- /* @__PURE__ */ jsxDEV4("p", {
1723
+ })
1724
+ }),
1725
+ /* @__PURE__ */ jsx4("p", {
1726
1726
  className: "text-muted-foreground mt-2 text-sm",
1727
1727
  children: "PDFs, Word docs, presentations uploaded by users"
1728
- }, undefined, false, undefined, this)
1728
+ })
1729
1729
  ]
1730
- }, undefined, true, undefined, this),
1731
- /* @__PURE__ */ jsxDEV4("div", {
1730
+ }),
1731
+ /* @__PURE__ */ jsxs4("div", {
1732
1732
  className: "card-subtle p-4",
1733
1733
  children: [
1734
- /* @__PURE__ */ jsxDEV4("h3", {
1734
+ /* @__PURE__ */ jsx4("h3", {
1735
1735
  className: "mb-2 text-lg font-semibold",
1736
1736
  children: "Notion"
1737
- }, undefined, false, undefined, this),
1738
- /* @__PURE__ */ jsxDEV4("div", {
1737
+ }),
1738
+ /* @__PURE__ */ jsx4("div", {
1739
1739
  className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded border p-3 font-mono text-xs",
1740
- children: /* @__PURE__ */ jsxDEV4("pre", {
1740
+ children: /* @__PURE__ */ jsx4("pre", {
1741
1741
  children: `{
1742
1742
  kind: "notion",
1743
1743
  location: "https://notion.so/workspace/product-docs",
1744
1744
  syncPolicy: { interval: "1h", webhook: true }
1745
1745
  }`
1746
- }, undefined, false, undefined, this)
1747
- }, undefined, false, undefined, this),
1748
- /* @__PURE__ */ jsxDEV4("p", {
1746
+ })
1747
+ }),
1748
+ /* @__PURE__ */ jsx4("p", {
1749
1749
  className: "text-muted-foreground mt-2 text-sm",
1750
1750
  children: "Notion pages and databases with real-time webhook updates"
1751
- }, undefined, false, undefined, this)
1751
+ })
1752
1752
  ]
1753
- }, undefined, true, undefined, this),
1754
- /* @__PURE__ */ jsxDEV4("div", {
1753
+ }),
1754
+ /* @__PURE__ */ jsxs4("div", {
1755
1755
  className: "card-subtle p-4",
1756
1756
  children: [
1757
- /* @__PURE__ */ jsxDEV4("h3", {
1757
+ /* @__PURE__ */ jsx4("h3", {
1758
1758
  className: "mb-2 text-lg font-semibold",
1759
1759
  children: "Gmail / Email"
1760
- }, undefined, false, undefined, this),
1761
- /* @__PURE__ */ jsxDEV4("div", {
1760
+ }),
1761
+ /* @__PURE__ */ jsx4("div", {
1762
1762
  className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded border p-3 font-mono text-xs",
1763
- children: /* @__PURE__ */ jsxDEV4("pre", {
1763
+ children: /* @__PURE__ */ jsx4("pre", {
1764
1764
  children: `{
1765
1765
  kind: "email",
1766
1766
  location: "support@company.com",
1767
1767
  syncPolicy: { webhook: true }
1768
1768
  }`
1769
- }, undefined, false, undefined, this)
1770
- }, undefined, false, undefined, this),
1771
- /* @__PURE__ */ jsxDEV4("p", {
1769
+ })
1770
+ }),
1771
+ /* @__PURE__ */ jsx4("p", {
1772
1772
  className: "text-muted-foreground mt-2 text-sm",
1773
1773
  children: "Email threads from Gmail or other providers"
1774
- }, undefined, false, undefined, this)
1774
+ })
1775
1775
  ]
1776
- }, undefined, true, undefined, this),
1777
- /* @__PURE__ */ jsxDEV4("div", {
1776
+ }),
1777
+ /* @__PURE__ */ jsxs4("div", {
1778
1778
  className: "card-subtle p-4",
1779
1779
  children: [
1780
- /* @__PURE__ */ jsxDEV4("h3", {
1780
+ /* @__PURE__ */ jsx4("h3", {
1781
1781
  className: "mb-2 text-lg font-semibold",
1782
1782
  children: "Database Query"
1783
- }, undefined, false, undefined, this),
1784
- /* @__PURE__ */ jsxDEV4("div", {
1783
+ }),
1784
+ /* @__PURE__ */ jsx4("div", {
1785
1785
  className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded border p-3 font-mono text-xs",
1786
- children: /* @__PURE__ */ jsxDEV4("pre", {
1786
+ children: /* @__PURE__ */ jsx4("pre", {
1787
1787
  children: `{
1788
1788
  kind: "database-query",
1789
1789
  location: "SELECT * FROM products WHERE active = true",
1790
1790
  syncPolicy: { interval: "24h" }
1791
1791
  }`
1792
- }, undefined, false, undefined, this)
1793
- }, undefined, false, undefined, this),
1794
- /* @__PURE__ */ jsxDEV4("p", {
1792
+ })
1793
+ }),
1794
+ /* @__PURE__ */ jsx4("p", {
1795
1795
  className: "text-muted-foreground mt-2 text-sm",
1796
1796
  children: "Structured data from application databases"
1797
- }, undefined, false, undefined, this)
1797
+ })
1798
1798
  ]
1799
- }, undefined, true, undefined, this),
1800
- /* @__PURE__ */ jsxDEV4("div", {
1799
+ }),
1800
+ /* @__PURE__ */ jsxs4("div", {
1801
1801
  className: "card-subtle p-4",
1802
1802
  children: [
1803
- /* @__PURE__ */ jsxDEV4("h3", {
1803
+ /* @__PURE__ */ jsx4("h3", {
1804
1804
  className: "mb-2 text-lg font-semibold",
1805
1805
  children: "URL / Web Scraping"
1806
- }, undefined, false, undefined, this),
1807
- /* @__PURE__ */ jsxDEV4("div", {
1806
+ }),
1807
+ /* @__PURE__ */ jsx4("div", {
1808
1808
  className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded border p-3 font-mono text-xs",
1809
- children: /* @__PURE__ */ jsxDEV4("pre", {
1809
+ children: /* @__PURE__ */ jsx4("pre", {
1810
1810
  children: `{
1811
1811
  kind: "url",
1812
1812
  location: "https://stripe.com/docs",
1813
1813
  syncPolicy: { interval: "24h" }
1814
1814
  }`
1815
- }, undefined, false, undefined, this)
1816
- }, undefined, false, undefined, this),
1817
- /* @__PURE__ */ jsxDEV4("p", {
1815
+ })
1816
+ }),
1817
+ /* @__PURE__ */ jsx4("p", {
1818
1818
  className: "text-muted-foreground mt-2 text-sm",
1819
1819
  children: "External documentation and web content"
1820
- }, undefined, false, undefined, this)
1820
+ })
1821
1821
  ]
1822
- }, undefined, true, undefined, this)
1822
+ })
1823
1823
  ]
1824
- }, undefined, true, undefined, this)
1824
+ })
1825
1825
  ]
1826
- }, undefined, true, undefined, this),
1827
- /* @__PURE__ */ jsxDEV4("div", {
1826
+ }),
1827
+ /* @__PURE__ */ jsxs4("div", {
1828
1828
  className: "space-y-4",
1829
1829
  children: [
1830
- /* @__PURE__ */ jsxDEV4("h2", {
1830
+ /* @__PURE__ */ jsx4("h2", {
1831
1831
  className: "text-2xl font-bold",
1832
1832
  children: "Sync strategies"
1833
- }, undefined, false, undefined, this),
1834
- /* @__PURE__ */ jsxDEV4("div", {
1833
+ }),
1834
+ /* @__PURE__ */ jsx4("div", {
1835
1835
  className: "border-border/50 overflow-x-auto rounded-lg border",
1836
- children: /* @__PURE__ */ jsxDEV4("table", {
1836
+ children: /* @__PURE__ */ jsxs4("table", {
1837
1837
  className: "w-full text-left text-sm",
1838
1838
  children: [
1839
- /* @__PURE__ */ jsxDEV4("thead", {
1839
+ /* @__PURE__ */ jsx4("thead", {
1840
1840
  className: "bg-card/50",
1841
- children: /* @__PURE__ */ jsxDEV4("tr", {
1841
+ children: /* @__PURE__ */ jsxs4("tr", {
1842
1842
  className: "border-border/50 border-b",
1843
1843
  children: [
1844
- /* @__PURE__ */ jsxDEV4("th", {
1844
+ /* @__PURE__ */ jsx4("th", {
1845
1845
  className: "px-4 py-3 font-semibold",
1846
1846
  children: "Strategy"
1847
- }, undefined, false, undefined, this),
1848
- /* @__PURE__ */ jsxDEV4("th", {
1847
+ }),
1848
+ /* @__PURE__ */ jsx4("th", {
1849
1849
  className: "px-4 py-3 font-semibold",
1850
1850
  children: "When to Use"
1851
- }, undefined, false, undefined, this),
1852
- /* @__PURE__ */ jsxDEV4("th", {
1851
+ }),
1852
+ /* @__PURE__ */ jsx4("th", {
1853
1853
  className: "px-4 py-3 font-semibold",
1854
1854
  children: "Latency"
1855
- }, undefined, false, undefined, this)
1855
+ })
1856
1856
  ]
1857
- }, undefined, true, undefined, this)
1858
- }, undefined, false, undefined, this),
1859
- /* @__PURE__ */ jsxDEV4("tbody", {
1857
+ })
1858
+ }),
1859
+ /* @__PURE__ */ jsxs4("tbody", {
1860
1860
  className: "divide-border/50 divide-y",
1861
1861
  children: [
1862
- /* @__PURE__ */ jsxDEV4("tr", {
1862
+ /* @__PURE__ */ jsxs4("tr", {
1863
1863
  children: [
1864
- /* @__PURE__ */ jsxDEV4("td", {
1864
+ /* @__PURE__ */ jsx4("td", {
1865
1865
  className: "px-4 py-3 font-mono text-xs",
1866
1866
  children: "webhook"
1867
- }, undefined, false, undefined, this),
1868
- /* @__PURE__ */ jsxDEV4("td", {
1867
+ }),
1868
+ /* @__PURE__ */ jsx4("td", {
1869
1869
  className: "px-4 py-3",
1870
1870
  children: "Real-time updates (Notion, Gmail, Slack)"
1871
- }, undefined, false, undefined, this),
1872
- /* @__PURE__ */ jsxDEV4("td", {
1871
+ }),
1872
+ /* @__PURE__ */ jsx4("td", {
1873
1873
  className: "px-4 py-3",
1874
1874
  children: "Seconds"
1875
- }, undefined, false, undefined, this)
1875
+ })
1876
1876
  ]
1877
- }, undefined, true, undefined, this),
1878
- /* @__PURE__ */ jsxDEV4("tr", {
1877
+ }),
1878
+ /* @__PURE__ */ jsxs4("tr", {
1879
1879
  children: [
1880
- /* @__PURE__ */ jsxDEV4("td", {
1880
+ /* @__PURE__ */ jsx4("td", {
1881
1881
  className: "px-4 py-3 font-mono text-xs",
1882
1882
  children: "interval"
1883
- }, undefined, false, undefined, this),
1884
- /* @__PURE__ */ jsxDEV4("td", {
1883
+ }),
1884
+ /* @__PURE__ */ jsx4("td", {
1885
1885
  className: "px-4 py-3",
1886
1886
  children: "Periodic sync (databases, URLs)"
1887
- }, undefined, false, undefined, this),
1888
- /* @__PURE__ */ jsxDEV4("td", {
1887
+ }),
1888
+ /* @__PURE__ */ jsx4("td", {
1889
1889
  className: "px-4 py-3",
1890
1890
  children: "Minutes to hours"
1891
- }, undefined, false, undefined, this)
1891
+ })
1892
1892
  ]
1893
- }, undefined, true, undefined, this),
1894
- /* @__PURE__ */ jsxDEV4("tr", {
1893
+ }),
1894
+ /* @__PURE__ */ jsxs4("tr", {
1895
1895
  children: [
1896
- /* @__PURE__ */ jsxDEV4("td", {
1896
+ /* @__PURE__ */ jsx4("td", {
1897
1897
  className: "px-4 py-3 font-mono text-xs",
1898
1898
  children: "manual"
1899
- }, undefined, false, undefined, this),
1900
- /* @__PURE__ */ jsxDEV4("td", {
1899
+ }),
1900
+ /* @__PURE__ */ jsx4("td", {
1901
1901
  className: "px-4 py-3",
1902
1902
  children: "User-triggered (uploads, one-time imports)"
1903
- }, undefined, false, undefined, this),
1904
- /* @__PURE__ */ jsxDEV4("td", {
1903
+ }),
1904
+ /* @__PURE__ */ jsx4("td", {
1905
1905
  className: "px-4 py-3",
1906
1906
  children: "On-demand"
1907
- }, undefined, false, undefined, this)
1907
+ })
1908
1908
  ]
1909
- }, undefined, true, undefined, this)
1909
+ })
1910
1910
  ]
1911
- }, undefined, true, undefined, this)
1911
+ })
1912
1912
  ]
1913
- }, undefined, true, undefined, this)
1914
- }, undefined, false, undefined, this)
1913
+ })
1914
+ })
1915
1915
  ]
1916
- }, undefined, true, undefined, this),
1917
- /* @__PURE__ */ jsxDEV4("div", {
1916
+ }),
1917
+ /* @__PURE__ */ jsxs4("div", {
1918
1918
  className: "space-y-4",
1919
1919
  children: [
1920
- /* @__PURE__ */ jsxDEV4("h2", {
1920
+ /* @__PURE__ */ jsx4("h2", {
1921
1921
  className: "text-2xl font-bold",
1922
1922
  children: "Example: Multi-source space"
1923
- }, undefined, false, undefined, this),
1924
- /* @__PURE__ */ jsxDEV4("p", {
1923
+ }),
1924
+ /* @__PURE__ */ jsx4("p", {
1925
1925
  className: "text-muted-foreground",
1926
1926
  children: "A single knowledge space can be fed by multiple sources:"
1927
- }, undefined, false, undefined, this),
1928
- /* @__PURE__ */ jsxDEV4("div", {
1927
+ }),
1928
+ /* @__PURE__ */ jsx4("div", {
1929
1929
  className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded-lg border p-4 font-mono text-sm",
1930
- children: /* @__PURE__ */ jsxDEV4("pre", {
1930
+ children: /* @__PURE__ */ jsx4("pre", {
1931
1931
  children: `// Product Canon space with multiple sources
1932
1932
  {
1933
1933
  spaceId: "product-canon",
@@ -1952,169 +1952,169 @@ function KnowledgeSourcesPage() {
1952
1952
  }
1953
1953
  ]
1954
1954
  }`
1955
- }, undefined, false, undefined, this)
1956
- }, undefined, false, undefined, this)
1955
+ })
1956
+ })
1957
1957
  ]
1958
- }, undefined, true, undefined, this),
1959
- /* @__PURE__ */ jsxDEV4("div", {
1958
+ }),
1959
+ /* @__PURE__ */ jsxs4("div", {
1960
1960
  className: "space-y-4",
1961
1961
  children: [
1962
- /* @__PURE__ */ jsxDEV4("h2", {
1962
+ /* @__PURE__ */ jsx4("h2", {
1963
1963
  className: "text-2xl font-bold",
1964
1964
  children: "Processing pipeline"
1965
- }, undefined, false, undefined, this),
1966
- /* @__PURE__ */ jsxDEV4("p", {
1965
+ }),
1966
+ /* @__PURE__ */ jsx4("p", {
1967
1967
  className: "text-muted-foreground",
1968
1968
  children: "When a source is synced, ContractSpec processes it through several stages:"
1969
- }, undefined, false, undefined, this),
1970
- /* @__PURE__ */ jsxDEV4("ol", {
1969
+ }),
1970
+ /* @__PURE__ */ jsxs4("ol", {
1971
1971
  className: "text-muted-foreground list-inside list-decimal space-y-3",
1972
1972
  children: [
1973
- /* @__PURE__ */ jsxDEV4("li", {
1973
+ /* @__PURE__ */ jsxs4("li", {
1974
1974
  children: [
1975
- /* @__PURE__ */ jsxDEV4("strong", {
1975
+ /* @__PURE__ */ jsx4("strong", {
1976
1976
  children: "Fetch"
1977
- }, undefined, false, undefined, this),
1977
+ }),
1978
1978
  " - Retrieve content from source (API, database, file)"
1979
1979
  ]
1980
- }, undefined, true, undefined, this),
1981
- /* @__PURE__ */ jsxDEV4("li", {
1980
+ }),
1981
+ /* @__PURE__ */ jsxs4("li", {
1982
1982
  children: [
1983
- /* @__PURE__ */ jsxDEV4("strong", {
1983
+ /* @__PURE__ */ jsx4("strong", {
1984
1984
  children: "Parse"
1985
- }, undefined, false, undefined, this),
1985
+ }),
1986
1986
  " - Extract text from documents (PDF, Word, HTML)"
1987
1987
  ]
1988
- }, undefined, true, undefined, this),
1989
- /* @__PURE__ */ jsxDEV4("li", {
1988
+ }),
1989
+ /* @__PURE__ */ jsxs4("li", {
1990
1990
  children: [
1991
- /* @__PURE__ */ jsxDEV4("strong", {
1991
+ /* @__PURE__ */ jsx4("strong", {
1992
1992
  children: "Chunk"
1993
- }, undefined, false, undefined, this),
1993
+ }),
1994
1994
  " - Split into semantic chunks (paragraphs, sections)"
1995
1995
  ]
1996
- }, undefined, true, undefined, this),
1997
- /* @__PURE__ */ jsxDEV4("li", {
1996
+ }),
1997
+ /* @__PURE__ */ jsxs4("li", {
1998
1998
  children: [
1999
- /* @__PURE__ */ jsxDEV4("strong", {
1999
+ /* @__PURE__ */ jsx4("strong", {
2000
2000
  children: "Embed"
2001
- }, undefined, false, undefined, this),
2001
+ }),
2002
2002
  " - Generate vector embeddings (OpenAI, Cohere)"
2003
2003
  ]
2004
- }, undefined, true, undefined, this),
2005
- /* @__PURE__ */ jsxDEV4("li", {
2004
+ }),
2005
+ /* @__PURE__ */ jsxs4("li", {
2006
2006
  children: [
2007
- /* @__PURE__ */ jsxDEV4("strong", {
2007
+ /* @__PURE__ */ jsx4("strong", {
2008
2008
  children: "Index"
2009
- }, undefined, false, undefined, this),
2009
+ }),
2010
2010
  " - Store in vector database (Qdrant) or search engine"
2011
2011
  ]
2012
- }, undefined, true, undefined, this),
2013
- /* @__PURE__ */ jsxDEV4("li", {
2012
+ }),
2013
+ /* @__PURE__ */ jsxs4("li", {
2014
2014
  children: [
2015
- /* @__PURE__ */ jsxDEV4("strong", {
2015
+ /* @__PURE__ */ jsx4("strong", {
2016
2016
  children: "Audit"
2017
- }, undefined, false, undefined, this),
2017
+ }),
2018
2018
  " - Log sync operation and results"
2019
2019
  ]
2020
- }, undefined, true, undefined, this)
2020
+ })
2021
2021
  ]
2022
- }, undefined, true, undefined, this)
2022
+ })
2023
2023
  ]
2024
- }, undefined, true, undefined, this),
2025
- /* @__PURE__ */ jsxDEV4("div", {
2024
+ }),
2025
+ /* @__PURE__ */ jsxs4("div", {
2026
2026
  className: "space-y-4",
2027
2027
  children: [
2028
- /* @__PURE__ */ jsxDEV4("h2", {
2028
+ /* @__PURE__ */ jsx4("h2", {
2029
2029
  className: "text-2xl font-bold",
2030
2030
  children: "Best practices"
2031
- }, undefined, false, undefined, this),
2032
- /* @__PURE__ */ jsxDEV4("ul", {
2031
+ }),
2032
+ /* @__PURE__ */ jsxs4("ul", {
2033
2033
  className: "text-muted-foreground list-inside list-disc space-y-2",
2034
2034
  children: [
2035
- /* @__PURE__ */ jsxDEV4("li", {
2035
+ /* @__PURE__ */ jsx4("li", {
2036
2036
  children: "Use webhooks for real-time sources (Notion, Gmail) to minimize latency"
2037
- }, undefined, false, undefined, this),
2038
- /* @__PURE__ */ jsxDEV4("li", {
2037
+ }),
2038
+ /* @__PURE__ */ jsx4("li", {
2039
2039
  children: "Set appropriate sync intervals - hourly for active docs, daily for stable content"
2040
- }, undefined, false, undefined, this),
2041
- /* @__PURE__ */ jsxDEV4("li", {
2040
+ }),
2041
+ /* @__PURE__ */ jsx4("li", {
2042
2042
  children: "Monitor sync failures and set up alerts for critical sources"
2043
- }, undefined, false, undefined, this),
2044
- /* @__PURE__ */ jsxDEV4("li", {
2043
+ }),
2044
+ /* @__PURE__ */ jsx4("li", {
2045
2045
  children: "Test sources in sandbox before enabling in production"
2046
- }, undefined, false, undefined, this),
2047
- /* @__PURE__ */ jsxDEV4("li", {
2046
+ }),
2047
+ /* @__PURE__ */ jsx4("li", {
2048
2048
  children: "Document the purpose and ownership of each source for your team"
2049
- }, undefined, false, undefined, this),
2050
- /* @__PURE__ */ jsxDEV4("li", {
2049
+ }),
2050
+ /* @__PURE__ */ jsx4("li", {
2051
2051
  children: "Use manual sync for sensitive or infrequently updated content"
2052
- }, undefined, false, undefined, this)
2052
+ })
2053
2053
  ]
2054
- }, undefined, true, undefined, this)
2054
+ })
2055
2055
  ]
2056
- }, undefined, true, undefined, this),
2057
- /* @__PURE__ */ jsxDEV4("div", {
2056
+ }),
2057
+ /* @__PURE__ */ jsxs4("div", {
2058
2058
  className: "flex items-center gap-4 pt-4",
2059
2059
  children: [
2060
- /* @__PURE__ */ jsxDEV4(Link4, {
2060
+ /* @__PURE__ */ jsx4(Link4, {
2061
2061
  href: "/docs/knowledge/spaces",
2062
2062
  className: "btn-ghost",
2063
2063
  children: "Previous: Spaces"
2064
- }, undefined, false, undefined, this),
2065
- /* @__PURE__ */ jsxDEV4(Link4, {
2064
+ }),
2065
+ /* @__PURE__ */ jsxs4(Link4, {
2066
2066
  href: "/docs/knowledge/examples",
2067
2067
  className: "btn-primary",
2068
2068
  children: [
2069
2069
  "Examples ",
2070
- /* @__PURE__ */ jsxDEV4(ChevronRight3, {
2070
+ /* @__PURE__ */ jsx4(ChevronRight3, {
2071
2071
  size: 16
2072
- }, undefined, false, undefined, this)
2072
+ })
2073
2073
  ]
2074
- }, undefined, true, undefined, this)
2074
+ })
2075
2075
  ]
2076
- }, undefined, true, undefined, this)
2076
+ })
2077
2077
  ]
2078
- }, undefined, true, undefined, this);
2078
+ });
2079
2079
  }
2080
2080
 
2081
2081
  // src/components/docs/knowledge/KnowledgeSpacesPage.tsx
2082
2082
  import Link5 from "@contractspec/lib.ui-link";
2083
2083
  import { ChevronRight as ChevronRight4 } from "lucide-react";
2084
- import { jsxDEV as jsxDEV5 } from "react/jsx-dev-runtime";
2084
+ import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
2085
2085
  function KnowledgeSpacesPage() {
2086
- return /* @__PURE__ */ jsxDEV5("div", {
2086
+ return /* @__PURE__ */ jsxs5("div", {
2087
2087
  className: "space-y-8",
2088
2088
  children: [
2089
- /* @__PURE__ */ jsxDEV5("div", {
2089
+ /* @__PURE__ */ jsxs5("div", {
2090
2090
  className: "space-y-4",
2091
2091
  children: [
2092
- /* @__PURE__ */ jsxDEV5("h1", {
2092
+ /* @__PURE__ */ jsx5("h1", {
2093
2093
  className: "text-4xl font-bold",
2094
2094
  children: "Knowledge Spaces"
2095
- }, undefined, false, undefined, this),
2096
- /* @__PURE__ */ jsxDEV5("p", {
2095
+ }),
2096
+ /* @__PURE__ */ jsxs5("p", {
2097
2097
  className: "text-muted-foreground",
2098
2098
  children: [
2099
2099
  "A ",
2100
- /* @__PURE__ */ jsxDEV5("strong", {
2100
+ /* @__PURE__ */ jsx5("strong", {
2101
2101
  children: "KnowledgeSpaceSpec"
2102
- }, undefined, false, undefined, this),
2102
+ }),
2103
2103
  " defines a logical domain of knowledge with a specific category, storage strategy, and intended audience. Spaces are defined globally and populated per-tenant through knowledge sources."
2104
2104
  ]
2105
- }, undefined, true, undefined, this)
2105
+ })
2106
2106
  ]
2107
- }, undefined, true, undefined, this),
2108
- /* @__PURE__ */ jsxDEV5("div", {
2107
+ }),
2108
+ /* @__PURE__ */ jsxs5("div", {
2109
2109
  className: "space-y-4",
2110
2110
  children: [
2111
- /* @__PURE__ */ jsxDEV5("h2", {
2111
+ /* @__PURE__ */ jsx5("h2", {
2112
2112
  className: "text-2xl font-bold",
2113
2113
  children: "KnowledgeSpaceSpec"
2114
- }, undefined, false, undefined, this),
2115
- /* @__PURE__ */ jsxDEV5("div", {
2114
+ }),
2115
+ /* @__PURE__ */ jsx5("div", {
2116
2116
  className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded-lg border p-4 font-mono text-sm",
2117
- children: /* @__PURE__ */ jsxDEV5("pre", {
2117
+ children: /* @__PURE__ */ jsx5("pre", {
2118
2118
  children: `type KnowledgeSpaceSpec = {
2119
2119
  id: string;
2120
2120
  label: string;
@@ -2141,30 +2141,30 @@ function KnowledgeSpacesPage() {
2141
2141
  createdAt: string;
2142
2142
  updatedAt: string;
2143
2143
  };`
2144
- }, undefined, false, undefined, this)
2145
- }, undefined, false, undefined, this)
2144
+ })
2145
+ })
2146
2146
  ]
2147
- }, undefined, true, undefined, this),
2148
- /* @__PURE__ */ jsxDEV5("div", {
2147
+ }),
2148
+ /* @__PURE__ */ jsxs5("div", {
2149
2149
  className: "space-y-4",
2150
2150
  children: [
2151
- /* @__PURE__ */ jsxDEV5("h2", {
2151
+ /* @__PURE__ */ jsx5("h2", {
2152
2152
  className: "text-2xl font-bold",
2153
2153
  children: "Common knowledge spaces"
2154
- }, undefined, false, undefined, this),
2155
- /* @__PURE__ */ jsxDEV5("div", {
2154
+ }),
2155
+ /* @__PURE__ */ jsxs5("div", {
2156
2156
  className: "space-y-6",
2157
2157
  children: [
2158
- /* @__PURE__ */ jsxDEV5("div", {
2158
+ /* @__PURE__ */ jsxs5("div", {
2159
2159
  className: "card-subtle p-4",
2160
2160
  children: [
2161
- /* @__PURE__ */ jsxDEV5("h3", {
2161
+ /* @__PURE__ */ jsx5("h3", {
2162
2162
  className: "mb-2 text-lg font-semibold",
2163
2163
  children: "Product Canon"
2164
- }, undefined, false, undefined, this),
2165
- /* @__PURE__ */ jsxDEV5("div", {
2164
+ }),
2165
+ /* @__PURE__ */ jsx5("div", {
2166
2166
  className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded border p-3 font-mono text-xs",
2167
- children: /* @__PURE__ */ jsxDEV5("pre", {
2167
+ children: /* @__PURE__ */ jsx5("pre", {
2168
2168
  children: `{
2169
2169
  id: "product-canon",
2170
2170
  label: "Product Canon",
@@ -2176,29 +2176,29 @@ function KnowledgeSpacesPage() {
2176
2176
  vectorDimensions: 1536,
2177
2177
  retentionPolicy: { versions: 10 }
2178
2178
  }`
2179
- }, undefined, false, undefined, this)
2180
- }, undefined, false, undefined, this),
2181
- /* @__PURE__ */ jsxDEV5("p", {
2179
+ })
2180
+ }),
2181
+ /* @__PURE__ */ jsxs5("p", {
2182
2182
  className: "text-muted-foreground mt-2 text-sm",
2183
2183
  children: [
2184
- /* @__PURE__ */ jsxDEV5("strong", {
2184
+ /* @__PURE__ */ jsx5("strong", {
2185
2185
  children: "Use cases:"
2186
- }, undefined, false, undefined, this),
2186
+ }),
2187
2187
  " Invoice generation, quote creation, product recommendations, schema validation"
2188
2188
  ]
2189
- }, undefined, true, undefined, this)
2189
+ })
2190
2190
  ]
2191
- }, undefined, true, undefined, this),
2192
- /* @__PURE__ */ jsxDEV5("div", {
2191
+ }),
2192
+ /* @__PURE__ */ jsxs5("div", {
2193
2193
  className: "card-subtle p-4",
2194
2194
  children: [
2195
- /* @__PURE__ */ jsxDEV5("h3", {
2195
+ /* @__PURE__ */ jsx5("h3", {
2196
2196
  className: "mb-2 text-lg font-semibold",
2197
2197
  children: "Support History"
2198
- }, undefined, false, undefined, this),
2199
- /* @__PURE__ */ jsxDEV5("div", {
2198
+ }),
2199
+ /* @__PURE__ */ jsx5("div", {
2200
2200
  className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded border p-3 font-mono text-xs",
2201
- children: /* @__PURE__ */ jsxDEV5("pre", {
2201
+ children: /* @__PURE__ */ jsx5("pre", {
2202
2202
  children: `{
2203
2203
  id: "support-history",
2204
2204
  label: "Support History",
@@ -2210,29 +2210,29 @@ function KnowledgeSpacesPage() {
2210
2210
  vectorDimensions: 1536,
2211
2211
  retentionPolicy: { days: 365 }
2212
2212
  }`
2213
- }, undefined, false, undefined, this)
2214
- }, undefined, false, undefined, this),
2215
- /* @__PURE__ */ jsxDEV5("p", {
2213
+ })
2214
+ }),
2215
+ /* @__PURE__ */ jsxs5("p", {
2216
2216
  className: "text-muted-foreground mt-2 text-sm",
2217
2217
  children: [
2218
- /* @__PURE__ */ jsxDEV5("strong", {
2218
+ /* @__PURE__ */ jsx5("strong", {
2219
2219
  children: "Use cases:"
2220
- }, undefined, false, undefined, this),
2220
+ }),
2221
2221
  " Customer support, troubleshooting, similar issue detection"
2222
2222
  ]
2223
- }, undefined, true, undefined, this)
2223
+ })
2224
2224
  ]
2225
- }, undefined, true, undefined, this),
2226
- /* @__PURE__ */ jsxDEV5("div", {
2225
+ }),
2226
+ /* @__PURE__ */ jsxs5("div", {
2227
2227
  className: "card-subtle p-4",
2228
2228
  children: [
2229
- /* @__PURE__ */ jsxDEV5("h3", {
2229
+ /* @__PURE__ */ jsx5("h3", {
2230
2230
  className: "mb-2 text-lg font-semibold",
2231
2231
  children: "External Provider Docs"
2232
- }, undefined, false, undefined, this),
2233
- /* @__PURE__ */ jsxDEV5("div", {
2232
+ }),
2233
+ /* @__PURE__ */ jsx5("div", {
2234
2234
  className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded border p-3 font-mono text-xs",
2235
- children: /* @__PURE__ */ jsxDEV5("pre", {
2235
+ children: /* @__PURE__ */ jsx5("pre", {
2236
2236
  children: `{
2237
2237
  id: "provider-docs",
2238
2238
  label: "External Provider Docs",
@@ -2243,29 +2243,29 @@ function KnowledgeSpacesPage() {
2243
2243
  indexProvider: "elasticsearch",
2244
2244
  retentionPolicy: { days: 90 }
2245
2245
  }`
2246
- }, undefined, false, undefined, this)
2247
- }, undefined, false, undefined, this),
2248
- /* @__PURE__ */ jsxDEV5("p", {
2246
+ })
2247
+ }),
2248
+ /* @__PURE__ */ jsxs5("p", {
2249
2249
  className: "text-muted-foreground mt-2 text-sm",
2250
2250
  children: [
2251
- /* @__PURE__ */ jsxDEV5("strong", {
2251
+ /* @__PURE__ */ jsx5("strong", {
2252
2252
  children: "Use cases:"
2253
- }, undefined, false, undefined, this),
2253
+ }),
2254
2254
  " Integration help, API reference, troubleshooting external services"
2255
2255
  ]
2256
- }, undefined, true, undefined, this)
2256
+ })
2257
2257
  ]
2258
- }, undefined, true, undefined, this),
2259
- /* @__PURE__ */ jsxDEV5("div", {
2258
+ }),
2259
+ /* @__PURE__ */ jsxs5("div", {
2260
2260
  className: "card-subtle p-4",
2261
2261
  children: [
2262
- /* @__PURE__ */ jsxDEV5("h3", {
2262
+ /* @__PURE__ */ jsx5("h3", {
2263
2263
  className: "mb-2 text-lg font-semibold",
2264
2264
  children: "Agent Scratchpad"
2265
- }, undefined, false, undefined, this),
2266
- /* @__PURE__ */ jsxDEV5("div", {
2265
+ }),
2266
+ /* @__PURE__ */ jsx5("div", {
2267
2267
  className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded border p-3 font-mono text-xs",
2268
- children: /* @__PURE__ */ jsxDEV5("pre", {
2268
+ children: /* @__PURE__ */ jsx5("pre", {
2269
2269
  children: `{
2270
2270
  id: "agent-scratchpad",
2271
2271
  label: "Agent Scratchpad",
@@ -2277,164 +2277,164 @@ function KnowledgeSpacesPage() {
2277
2277
  vectorDimensions: 1536,
2278
2278
  retentionPolicy: { days: 1 }
2279
2279
  }`
2280
- }, undefined, false, undefined, this)
2281
- }, undefined, false, undefined, this),
2282
- /* @__PURE__ */ jsxDEV5("p", {
2280
+ })
2281
+ }),
2282
+ /* @__PURE__ */ jsxs5("p", {
2283
2283
  className: "text-muted-foreground mt-2 text-sm",
2284
2284
  children: [
2285
- /* @__PURE__ */ jsxDEV5("strong", {
2285
+ /* @__PURE__ */ jsx5("strong", {
2286
2286
  children: "Use cases:"
2287
- }, undefined, false, undefined, this),
2287
+ }),
2288
2288
  " Conversation continuity, intermediate calculations, session state"
2289
2289
  ]
2290
- }, undefined, true, undefined, this)
2290
+ })
2291
2291
  ]
2292
- }, undefined, true, undefined, this)
2292
+ })
2293
2293
  ]
2294
- }, undefined, true, undefined, this)
2294
+ })
2295
2295
  ]
2296
- }, undefined, true, undefined, this),
2297
- /* @__PURE__ */ jsxDEV5("div", {
2296
+ }),
2297
+ /* @__PURE__ */ jsxs5("div", {
2298
2298
  className: "space-y-4",
2299
2299
  children: [
2300
- /* @__PURE__ */ jsxDEV5("h2", {
2300
+ /* @__PURE__ */ jsx5("h2", {
2301
2301
  className: "text-2xl font-bold",
2302
2302
  children: "Storage strategies"
2303
- }, undefined, false, undefined, this),
2304
- /* @__PURE__ */ jsxDEV5("div", {
2303
+ }),
2304
+ /* @__PURE__ */ jsx5("div", {
2305
2305
  className: "border-border/50 overflow-x-auto rounded-lg border",
2306
- children: /* @__PURE__ */ jsxDEV5("table", {
2306
+ children: /* @__PURE__ */ jsxs5("table", {
2307
2307
  className: "w-full text-left text-sm",
2308
2308
  children: [
2309
- /* @__PURE__ */ jsxDEV5("thead", {
2309
+ /* @__PURE__ */ jsx5("thead", {
2310
2310
  className: "bg-card/50",
2311
- children: /* @__PURE__ */ jsxDEV5("tr", {
2311
+ children: /* @__PURE__ */ jsxs5("tr", {
2312
2312
  className: "border-border/50 border-b",
2313
2313
  children: [
2314
- /* @__PURE__ */ jsxDEV5("th", {
2314
+ /* @__PURE__ */ jsx5("th", {
2315
2315
  className: "px-4 py-3 font-semibold",
2316
2316
  children: "Strategy"
2317
- }, undefined, false, undefined, this),
2318
- /* @__PURE__ */ jsxDEV5("th", {
2317
+ }),
2318
+ /* @__PURE__ */ jsx5("th", {
2319
2319
  className: "px-4 py-3 font-semibold",
2320
2320
  children: "Best For"
2321
- }, undefined, false, undefined, this),
2322
- /* @__PURE__ */ jsxDEV5("th", {
2321
+ }),
2322
+ /* @__PURE__ */ jsx5("th", {
2323
2323
  className: "px-4 py-3 font-semibold",
2324
2324
  children: "Providers"
2325
- }, undefined, false, undefined, this)
2325
+ })
2326
2326
  ]
2327
- }, undefined, true, undefined, this)
2328
- }, undefined, false, undefined, this),
2329
- /* @__PURE__ */ jsxDEV5("tbody", {
2327
+ })
2328
+ }),
2329
+ /* @__PURE__ */ jsxs5("tbody", {
2330
2330
  className: "divide-border/50 divide-y",
2331
2331
  children: [
2332
- /* @__PURE__ */ jsxDEV5("tr", {
2332
+ /* @__PURE__ */ jsxs5("tr", {
2333
2333
  children: [
2334
- /* @__PURE__ */ jsxDEV5("td", {
2334
+ /* @__PURE__ */ jsx5("td", {
2335
2335
  className: "px-4 py-3 font-mono text-xs",
2336
2336
  children: "vector"
2337
- }, undefined, false, undefined, this),
2338
- /* @__PURE__ */ jsxDEV5("td", {
2337
+ }),
2338
+ /* @__PURE__ */ jsx5("td", {
2339
2339
  className: "px-4 py-3",
2340
2340
  children: "Semantic search, RAG, similarity matching"
2341
- }, undefined, false, undefined, this),
2342
- /* @__PURE__ */ jsxDEV5("td", {
2341
+ }),
2342
+ /* @__PURE__ */ jsx5("td", {
2343
2343
  className: "px-4 py-3",
2344
2344
  children: "Qdrant, Pinecone, Weaviate"
2345
- }, undefined, false, undefined, this)
2345
+ })
2346
2346
  ]
2347
- }, undefined, true, undefined, this),
2348
- /* @__PURE__ */ jsxDEV5("tr", {
2347
+ }),
2348
+ /* @__PURE__ */ jsxs5("tr", {
2349
2349
  children: [
2350
- /* @__PURE__ */ jsxDEV5("td", {
2350
+ /* @__PURE__ */ jsx5("td", {
2351
2351
  className: "px-4 py-3 font-mono text-xs",
2352
2352
  children: "search"
2353
- }, undefined, false, undefined, this),
2354
- /* @__PURE__ */ jsxDEV5("td", {
2353
+ }),
2354
+ /* @__PURE__ */ jsx5("td", {
2355
2355
  className: "px-4 py-3",
2356
2356
  children: "Keyword search, exact matching, filtering"
2357
- }, undefined, false, undefined, this),
2358
- /* @__PURE__ */ jsxDEV5("td", {
2357
+ }),
2358
+ /* @__PURE__ */ jsx5("td", {
2359
2359
  className: "px-4 py-3",
2360
2360
  children: "Elasticsearch, Algolia"
2361
- }, undefined, false, undefined, this)
2361
+ })
2362
2362
  ]
2363
- }, undefined, true, undefined, this),
2364
- /* @__PURE__ */ jsxDEV5("tr", {
2363
+ }),
2364
+ /* @__PURE__ */ jsxs5("tr", {
2365
2365
  children: [
2366
- /* @__PURE__ */ jsxDEV5("td", {
2366
+ /* @__PURE__ */ jsx5("td", {
2367
2367
  className: "px-4 py-3 font-mono text-xs",
2368
2368
  children: "hybrid"
2369
- }, undefined, false, undefined, this),
2370
- /* @__PURE__ */ jsxDEV5("td", {
2369
+ }),
2370
+ /* @__PURE__ */ jsx5("td", {
2371
2371
  className: "px-4 py-3",
2372
2372
  children: "Combined semantic + keyword search"
2373
- }, undefined, false, undefined, this),
2374
- /* @__PURE__ */ jsxDEV5("td", {
2373
+ }),
2374
+ /* @__PURE__ */ jsx5("td", {
2375
2375
  className: "px-4 py-3",
2376
2376
  children: "Qdrant + Elasticsearch"
2377
- }, undefined, false, undefined, this)
2377
+ })
2378
2378
  ]
2379
- }, undefined, true, undefined, this)
2379
+ })
2380
2380
  ]
2381
- }, undefined, true, undefined, this)
2381
+ })
2382
2382
  ]
2383
- }, undefined, true, undefined, this)
2384
- }, undefined, false, undefined, this)
2383
+ })
2384
+ })
2385
2385
  ]
2386
- }, undefined, true, undefined, this),
2387
- /* @__PURE__ */ jsxDEV5("div", {
2386
+ }),
2387
+ /* @__PURE__ */ jsxs5("div", {
2388
2388
  className: "space-y-4",
2389
2389
  children: [
2390
- /* @__PURE__ */ jsxDEV5("h2", {
2390
+ /* @__PURE__ */ jsx5("h2", {
2391
2391
  className: "text-2xl font-bold",
2392
2392
  children: "Best practices"
2393
- }, undefined, false, undefined, this),
2394
- /* @__PURE__ */ jsxDEV5("ul", {
2393
+ }),
2394
+ /* @__PURE__ */ jsxs5("ul", {
2395
2395
  className: "text-muted-foreground list-inside list-disc space-y-2",
2396
2396
  children: [
2397
- /* @__PURE__ */ jsxDEV5("li", {
2397
+ /* @__PURE__ */ jsx5("li", {
2398
2398
  children: "Choose storage strategy based on query patterns - use vector for semantic, search for exact"
2399
- }, undefined, false, undefined, this),
2400
- /* @__PURE__ */ jsxDEV5("li", {
2399
+ }),
2400
+ /* @__PURE__ */ jsx5("li", {
2401
2401
  children: "Set appropriate retention policies - canonical is permanent, ephemeral is short-lived"
2402
- }, undefined, false, undefined, this),
2403
- /* @__PURE__ */ jsxDEV5("li", {
2402
+ }),
2403
+ /* @__PURE__ */ jsx5("li", {
2404
2404
  children: "Use consistent vector dimensions across spaces that will be queried together"
2405
- }, undefined, false, undefined, this),
2406
- /* @__PURE__ */ jsxDEV5("li", {
2405
+ }),
2406
+ /* @__PURE__ */ jsx5("li", {
2407
2407
  children: "Document the intended audience and use cases for each space"
2408
- }, undefined, false, undefined, this),
2409
- /* @__PURE__ */ jsxDEV5("li", {
2408
+ }),
2409
+ /* @__PURE__ */ jsx5("li", {
2410
2410
  children: "Monitor space size and query performance - add sharding if needed"
2411
- }, undefined, false, undefined, this)
2411
+ })
2412
2412
  ]
2413
- }, undefined, true, undefined, this)
2413
+ })
2414
2414
  ]
2415
- }, undefined, true, undefined, this),
2416
- /* @__PURE__ */ jsxDEV5("div", {
2415
+ }),
2416
+ /* @__PURE__ */ jsxs5("div", {
2417
2417
  className: "flex items-center gap-4 pt-4",
2418
2418
  children: [
2419
- /* @__PURE__ */ jsxDEV5(Link5, {
2419
+ /* @__PURE__ */ jsx5(Link5, {
2420
2420
  href: "/docs/knowledge/categories",
2421
2421
  className: "btn-ghost",
2422
2422
  children: "Previous: Categories"
2423
- }, undefined, false, undefined, this),
2424
- /* @__PURE__ */ jsxDEV5(Link5, {
2423
+ }),
2424
+ /* @__PURE__ */ jsxs5(Link5, {
2425
2425
  href: "/docs/knowledge/sources",
2426
2426
  className: "btn-primary",
2427
2427
  children: [
2428
2428
  "Knowledge Sources ",
2429
- /* @__PURE__ */ jsxDEV5(ChevronRight4, {
2429
+ /* @__PURE__ */ jsx5(ChevronRight4, {
2430
2430
  size: 16
2431
- }, undefined, false, undefined, this)
2431
+ })
2432
2432
  ]
2433
- }, undefined, true, undefined, this)
2433
+ })
2434
2434
  ]
2435
- }, undefined, true, undefined, this)
2435
+ })
2436
2436
  ]
2437
- }, undefined, true, undefined, this);
2437
+ });
2438
2438
  }
2439
2439
  export {
2440
2440
  KnowledgeSpacesPage,