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