@contractspec/bundle.library 3.4.3 → 3.5.0

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