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