@contractspec/bundle.library 3.7.6 → 3.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +258 -252
- package/AGENTS.md +42 -24
- package/CHANGELOG.md +56 -0
- package/README.md +59 -37
- package/dist/application/index.d.ts +1 -1
- package/dist/application/index.js +842 -840
- package/dist/application/mcp/cliMcp.js +30 -30
- package/dist/application/mcp/common.d.ts +2 -2
- package/dist/application/mcp/common.js +2 -2
- package/dist/application/mcp/contractsMcp.d.ts +1 -1
- package/dist/application/mcp/contractsMcp.js +163 -163
- package/dist/application/mcp/docsMcp.js +31 -31
- package/dist/application/mcp/index.d.ts +2 -2
- package/dist/application/mcp/index.js +842 -840
- package/dist/application/mcp/internalMcp.js +30 -30
- package/dist/application/mcp/providerRankingMcp.js +35 -33
- package/dist/components/docs/DocsIndexPage.js +859 -212
- package/dist/components/docs/advanced/AdvancedMCPPage.js +15 -15
- package/dist/components/docs/advanced/AdvancedOverlayEditorPage.js +4 -4
- package/dist/components/docs/advanced/AdvancedRenderersPage.js +7 -7
- package/dist/components/docs/advanced/AdvancedSpecExperimentsPage.js +9 -9
- package/dist/components/docs/advanced/AdvancedTelemetryPage.js +16 -16
- package/dist/components/docs/advanced/AdvancedWorkflowMonitoringPage.js +6 -6
- package/dist/components/docs/advanced/index.d.ts +2 -2
- package/dist/components/docs/advanced/index.js +57 -57
- package/dist/components/docs/architecture/ArchitectureAppConfigPage.js +10 -10
- package/dist/components/docs/architecture/ArchitectureControlPlanePage.js +8 -8
- package/dist/components/docs/architecture/ArchitectureIntegrationBindingPage.js +14 -14
- package/dist/components/docs/architecture/ArchitectureKnowledgeBindingPage.js +16 -16
- package/dist/components/docs/architecture/ArchitectureMultiTenancyPage.js +7 -7
- package/dist/components/docs/architecture/ArchitectureOverviewPage.js +90 -411
- package/dist/components/docs/architecture/index.d.ts +3 -3
- package/dist/components/docs/architecture/index.js +145 -466
- package/dist/components/docs/comparison/ComparisonAutomationPlatformsPage.js +6 -6
- package/dist/components/docs/comparison/ComparisonEnterprisePlatformsPage.js +7 -7
- package/dist/components/docs/comparison/ComparisonInternalToolBuildersPage.js +6 -6
- package/dist/components/docs/comparison/ComparisonOverviewPage.js +4 -4
- package/dist/components/docs/comparison/ComparisonWindmillPage.js +6 -6
- package/dist/components/docs/comparison/ComparisonWorkflowEnginesPage.js +6 -6
- package/dist/components/docs/comparison/index.d.ts +2 -2
- package/dist/components/docs/comparison/index.js +35 -35
- package/dist/components/docs/docsManifest.d.ts +42 -0
- package/dist/components/docs/docsManifest.js +612 -0
- package/dist/components/docs/ecosystem/IntegrationsPage.js +5 -5
- package/dist/components/docs/ecosystem/PluginsPage.js +7 -7
- package/dist/components/docs/ecosystem/RegistryPage.js +4 -4
- package/dist/components/docs/ecosystem/TemplatesPage.js +11 -11
- package/dist/components/docs/ecosystem/index.d.ts +2 -2
- package/dist/components/docs/ecosystem/index.js +27 -27
- package/dist/components/docs/examples/DocsExamplesPage.js +59 -6
- package/dist/components/docs/examples/ExampleShowcasePage.d.ts +5 -0
- package/dist/components/docs/examples/ExampleShowcasePage.js +258 -0
- package/dist/components/docs/examples/exampleShowcaseData.d.ts +10 -0
- package/dist/components/docs/examples/exampleShowcaseData.js +53 -0
- package/dist/components/docs/examples/index.d.ts +1 -0
- package/dist/components/docs/examples/index.js +265 -6
- package/dist/components/docs/getting-started/CLIPage.js +9 -9
- package/dist/components/docs/getting-started/CompatibilityPage.js +12 -12
- package/dist/components/docs/getting-started/DataViewTutorialPage.js +7 -7
- package/dist/components/docs/getting-started/DeveloperToolsPage.js +10 -10
- package/dist/components/docs/getting-started/HelloWorldPage.js +8 -8
- package/dist/components/docs/getting-started/InstallationPage.js +10 -10
- package/dist/components/docs/getting-started/StartHerePage.js +8 -8
- package/dist/components/docs/getting-started/TroubleshootingPage.js +12 -12
- package/dist/components/docs/getting-started/VSCodeExtensionPage.js +13 -13
- package/dist/components/docs/getting-started/index.d.ts +5 -5
- package/dist/components/docs/getting-started/index.js +89 -89
- package/dist/components/docs/guides/GuideCIDiffGatingPage.js +13 -13
- package/dist/components/docs/guides/GuideContractTypesPage.js +33 -33
- package/dist/components/docs/guides/GuideDocsPipelinePage.js +13 -13
- package/dist/components/docs/guides/GuideGenerateDocsClientsSchemasPage.js +13 -13
- package/dist/components/docs/guides/GuideImportExistingCodebasesPage.js +35 -35
- package/dist/components/docs/guides/GuideNextjsOneEndpointPage.js +15 -15
- package/dist/components/docs/guides/GuideSpecValidationTypingPage.js +13 -13
- package/dist/components/docs/guides/GuidesIndexPage.js +69 -46
- package/dist/components/docs/guides/index.d.ts +4 -4
- package/dist/components/docs/guides/index.js +174 -151
- package/dist/components/docs/index.d.ts +13 -12
- package/dist/components/docs/index.js +15220 -16233
- package/dist/components/docs/integrations/IntegrationsCircuitBreakersPage.js +4 -4
- package/dist/components/docs/integrations/IntegrationsElevenLabsPage.js +7 -7
- package/dist/components/docs/integrations/IntegrationsGithubPage.js +11 -11
- package/dist/components/docs/integrations/IntegrationsGmailPage.js +7 -7
- package/dist/components/docs/integrations/IntegrationsGoogleCalendarPage.js +5 -5
- package/dist/components/docs/integrations/IntegrationsHealthRoutingPage.js +12 -12
- package/dist/components/docs/integrations/IntegrationsMistralPage.js +12 -12
- package/dist/components/docs/integrations/IntegrationsOpenAIPage.js +11 -11
- package/dist/components/docs/integrations/IntegrationsOverviewPage.js +119 -736
- package/dist/components/docs/integrations/IntegrationsPostmarkPage.js +12 -12
- package/dist/components/docs/integrations/IntegrationsPowensPage.js +24 -24
- package/dist/components/docs/integrations/IntegrationsQdrantPage.js +9 -9
- package/dist/components/docs/integrations/IntegrationsResendPage.js +7 -7
- package/dist/components/docs/integrations/IntegrationsS3Page.js +9 -9
- package/dist/components/docs/integrations/IntegrationsSlackPage.js +11 -11
- package/dist/components/docs/integrations/IntegrationsSpecModelPage.js +19 -19
- package/dist/components/docs/integrations/IntegrationsStripePage.js +25 -25
- package/dist/components/docs/integrations/IntegrationsTwilioPage.js +9 -9
- package/dist/components/docs/integrations/IntegrationsWhatsappMetaPage.js +12 -12
- package/dist/components/docs/integrations/IntegrationsWhatsappTwilioPage.js +13 -13
- package/dist/components/docs/integrations/index.d.ts +1 -1
- package/dist/components/docs/integrations/index.js +614 -1231
- package/dist/components/docs/intent/ContractFirstApiPage.js +8 -8
- package/dist/components/docs/intent/DeterministicCodegenPage.js +9 -9
- package/dist/components/docs/intent/GenerateClientFromSchemaPage.js +13 -13
- package/dist/components/docs/intent/OpenapiAlternativePage.js +13 -13
- package/dist/components/docs/intent/SchemaValidationTypescriptPage.js +9 -9
- package/dist/components/docs/intent/SpecDrivenDevelopmentPage.js +8 -8
- package/dist/components/docs/intent/index.d.ts +3 -3
- package/dist/components/docs/intent/index.js +766 -766
- package/dist/components/docs/knowledge/KnowledgeCategoriesPage.js +38 -38
- package/dist/components/docs/knowledge/KnowledgeExamplesPage.js +9 -9
- package/dist/components/docs/knowledge/KnowledgeOverviewPage.js +91 -439
- package/dist/components/docs/knowledge/KnowledgeSourcesPage.js +28 -28
- package/dist/components/docs/knowledge/KnowledgeSpacesPage.js +21 -21
- package/dist/components/docs/knowledge/index.d.ts +1 -1
- package/dist/components/docs/knowledge/index.js +437 -785
- package/dist/components/docs/libraries/LibrariesAccessibilityPage.js +16 -16
- package/dist/components/docs/libraries/LibrariesAiAgentPage.js +8 -8
- package/dist/components/docs/libraries/LibrariesAnalyticsPage.js +6 -6
- package/dist/components/docs/libraries/LibrariesContentGenPage.js +6 -6
- package/dist/components/docs/libraries/LibrariesContractsPage.js +16 -16
- package/dist/components/docs/libraries/LibrariesCostTrackingPage.js +6 -6
- package/dist/components/docs/libraries/LibrariesDataBackendPage.js +14 -14
- package/dist/components/docs/libraries/LibrariesDataViewsPage.js +7 -7
- package/dist/components/docs/libraries/LibrariesDesignSystemPage.js +13 -13
- package/dist/components/docs/libraries/LibrariesEvolutionPage.js +7 -7
- package/dist/components/docs/libraries/LibrariesGraphQLPage.js +13 -13
- package/dist/components/docs/libraries/LibrariesGrowthPage.js +5 -5
- package/dist/components/docs/libraries/LibrariesMultiTenancyPage.js +5 -5
- package/dist/components/docs/libraries/LibrariesObservabilityPage.js +7 -7
- package/dist/components/docs/libraries/LibrariesOverlayEnginePage.js +6 -6
- package/dist/components/docs/libraries/LibrariesOverviewPage.js +117 -430
- package/dist/components/docs/libraries/LibrariesPersonalizationPage.js +6 -6
- package/dist/components/docs/libraries/LibrariesProgressiveDeliveryPage.js +6 -6
- package/dist/components/docs/libraries/LibrariesResiliencePage.js +6 -6
- package/dist/components/docs/libraries/LibrariesRuntimePage.js +13 -13
- package/dist/components/docs/libraries/LibrariesSLOPage.js +6 -6
- package/dist/components/docs/libraries/LibrariesSchemaPage.js +16 -16
- package/dist/components/docs/libraries/LibrariesSupportBotPage.js +7 -7
- package/dist/components/docs/libraries/LibrariesTestingPage.js +7 -7
- package/dist/components/docs/libraries/LibrariesUIKitPage.js +10 -10
- package/dist/components/docs/libraries/LibrariesWorkflowComposerPage.js +5 -5
- package/dist/components/docs/libraries/LibrariesWorkflowsPage.js +8 -8
- package/dist/components/docs/libraries/index.d.ts +4 -4
- package/dist/components/docs/libraries/index.js +1308 -1621
- package/dist/components/docs/manifesto/ManifestoPage.js +33 -138
- package/dist/components/docs/ops/AutoEvolutionOpsPage.js +9 -9
- package/dist/components/docs/ops/DistributedTracingOpsPage.js +5 -5
- package/dist/components/docs/ops/index.js +14 -14
- package/dist/components/docs/reference/DocsMarkdownContent.js +1 -1
- package/dist/components/docs/reference/DocsReferenceContent.js +2 -2
- package/dist/components/docs/reference/DocsReferenceIndexClient.js +8 -8
- package/dist/components/docs/reference/DocsReferenceIndexPage.js +8 -8
- package/dist/components/docs/reference/DocsReferencePage.js +2 -2
- package/dist/components/docs/reference/index.js +10 -10
- package/dist/components/docs/safety/SafetyAuditingPage.js +16 -16
- package/dist/components/docs/safety/SafetyMigrationsPage.js +15 -15
- package/dist/components/docs/safety/SafetyOverviewPage.js +69 -206
- package/dist/components/docs/safety/SafetyPDPPage.js +12 -12
- package/dist/components/docs/safety/SafetySecurityTrustPage.js +11 -11
- package/dist/components/docs/safety/SafetySigningPage.js +7 -7
- package/dist/components/docs/safety/SafetyTenantIsolationPage.js +6 -6
- package/dist/components/docs/safety/index.d.ts +3 -3
- package/dist/components/docs/safety/index.js +616 -753
- package/dist/components/docs/shared/StudioPrompt.js +5 -5
- package/dist/components/docs/specs/SpecsCapabilitiesPage.js +12 -12
- package/dist/components/docs/specs/SpecsDataViewsPage.js +14 -14
- package/dist/components/docs/specs/SpecsOverlaysPage.js +14 -14
- package/dist/components/docs/specs/SpecsOverviewPage.js +135 -297
- package/dist/components/docs/specs/SpecsPolicyPage.js +29 -29
- package/dist/components/docs/specs/SpecsWorkflowsPage.js +18 -18
- package/dist/components/docs/specs/index.d.ts +3 -3
- package/dist/components/docs/specs/index.js +814 -976
- package/dist/components/docs/studio/StudioBYOKPage.js +1 -1
- package/dist/components/docs/studio/StudioDeploymentsPage.js +1 -1
- package/dist/components/docs/studio/StudioGettingStartedPage.js +1 -1
- package/dist/components/docs/studio/StudioIntegrationsPage.js +1 -1
- package/dist/components/docs/studio/StudioOverviewPage.js +109 -56
- package/dist/components/docs/studio/StudioVisualBuilderPage.js +1 -1
- package/dist/components/docs/studio/index.d.ts +4 -4
- package/dist/components/docs/studio/index.js +170 -117
- package/dist/components/integrations/index.js +25 -25
- package/dist/components/integrations/molecules/IntegrationCard.js +5 -5
- package/dist/components/integrations/organisms/IntegrationMarketplace.js +12 -12
- package/dist/components/integrations/organisms/IntegrationSettings.js +7 -7
- package/dist/components/integrations/organisms/KnowledgeSourceList.js +6 -6
- package/dist/components/legal/PrivacyTemplate.js +67 -67
- package/dist/components/legal/TermsTemplate.js +54 -54
- package/dist/components/legal/index.js +121 -121
- package/dist/components/shared/FeatureGateNotice.js +4 -4
- package/dist/components/shared/index.js +4 -4
- package/dist/components/shell/WorkspaceHeader.js +4 -4
- package/dist/components/shell/WorkspaceProjectShellLayout.d.ts +3 -3
- package/dist/components/shell/WorkspaceProjectShellLayout.js +10 -10
- package/dist/components/shell/WorkspaceShellRenderer.d.ts +4 -4
- package/dist/components/shell/WorkspaceShellRenderer.js +8 -8
- package/dist/components/shell/WorkspaceSidebar.js +2 -2
- package/dist/components/shell/index.d.ts +1 -1
- package/dist/components/shell/index.js +12 -12
- package/dist/components/templates/engine/index.d.ts +1 -1
- package/dist/components/templates/index.d.ts +1 -1
- package/dist/components/templates/index.js +835 -835
- package/dist/components/templates/messaging/ConversationList.js +11 -11
- package/dist/components/templates/messaging/MessageComposer.js +11 -11
- package/dist/components/templates/messaging/MessageThread.js +6 -6
- package/dist/components/templates/messaging/MessagingWorkspace.js +23 -23
- package/dist/components/templates/messaging/index.d.ts +1 -1
- package/dist/components/templates/messaging/index.js +23 -23
- package/dist/components/templates/recipes/LanguageSwitcher.js +1 -1
- package/dist/components/templates/recipes/RecipeCard.js +5 -5
- package/dist/components/templates/recipes/RecipeDetail.js +8 -8
- package/dist/components/templates/recipes/RecipeList.js +17 -17
- package/dist/components/templates/recipes/index.d.ts +2 -2
- package/dist/components/templates/recipes/index.js +17 -17
- package/dist/components/templates/todos/FilterBar.d.ts +1 -1
- package/dist/components/templates/todos/FilterBar.js +9 -9
- package/dist/components/templates/todos/TaskForm.js +14 -14
- package/dist/components/templates/todos/TaskItem.js +4 -4
- package/dist/components/templates/todos/TaskList.js +30 -30
- package/dist/components/templates/todos/index.d.ts +2 -2
- package/dist/components/templates/todos/index.js +30 -30
- package/dist/config/index.d.ts +2 -2
- package/dist/features/contracts-registry.d.ts +3 -3
- package/dist/features/contracts-registry.js +15 -15
- package/dist/features/docs/docs.contracts.d.ts +1 -1
- package/dist/features/docs/docs.contracts.js +2 -2
- package/dist/features/docs/index.d.ts +1 -1
- package/dist/features/docs/index.js +2 -2
- package/dist/features/index.d.ts +4 -4
- package/dist/features/index.js +18 -18
- package/dist/features/registry.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +17034 -18047
- package/dist/libs/email/client.js +1 -1
- package/dist/libs/email/contact.js +1 -1
- package/dist/libs/email/newsletter.js +1 -1
- package/dist/libs/email/waitlist-application.js +1 -1
- package/dist/libs/email/waitlist.js +1 -1
- package/dist/libs/email.d.ts +1 -1
- package/dist/libs/email.js +1 -1
- package/dist/node/application/index.js +842 -840
- package/dist/node/application/mcp/cliMcp.js +30 -30
- package/dist/node/application/mcp/common.js +2 -2
- package/dist/node/application/mcp/contractsMcp.js +163 -163
- package/dist/node/application/mcp/docsMcp.js +31 -31
- package/dist/node/application/mcp/index.js +842 -840
- package/dist/node/application/mcp/internalMcp.js +30 -30
- package/dist/node/application/mcp/providerRankingMcp.js +35 -33
- package/dist/node/components/docs/DocsIndexPage.js +859 -212
- package/dist/node/components/docs/advanced/AdvancedMCPPage.js +15 -15
- package/dist/node/components/docs/advanced/AdvancedOverlayEditorPage.js +4 -4
- package/dist/node/components/docs/advanced/AdvancedRenderersPage.js +7 -7
- package/dist/node/components/docs/advanced/AdvancedSpecExperimentsPage.js +9 -9
- package/dist/node/components/docs/advanced/AdvancedTelemetryPage.js +16 -16
- package/dist/node/components/docs/advanced/AdvancedWorkflowMonitoringPage.js +6 -6
- package/dist/node/components/docs/advanced/index.js +57 -57
- package/dist/node/components/docs/architecture/ArchitectureAppConfigPage.js +10 -10
- package/dist/node/components/docs/architecture/ArchitectureControlPlanePage.js +8 -8
- package/dist/node/components/docs/architecture/ArchitectureIntegrationBindingPage.js +14 -14
- package/dist/node/components/docs/architecture/ArchitectureKnowledgeBindingPage.js +16 -16
- package/dist/node/components/docs/architecture/ArchitectureMultiTenancyPage.js +7 -7
- package/dist/node/components/docs/architecture/ArchitectureOverviewPage.js +90 -411
- package/dist/node/components/docs/architecture/index.js +145 -466
- package/dist/node/components/docs/comparison/ComparisonAutomationPlatformsPage.js +6 -6
- package/dist/node/components/docs/comparison/ComparisonEnterprisePlatformsPage.js +7 -7
- package/dist/node/components/docs/comparison/ComparisonInternalToolBuildersPage.js +6 -6
- package/dist/node/components/docs/comparison/ComparisonOverviewPage.js +4 -4
- package/dist/node/components/docs/comparison/ComparisonWindmillPage.js +6 -6
- package/dist/node/components/docs/comparison/ComparisonWorkflowEnginesPage.js +6 -6
- package/dist/node/components/docs/comparison/index.js +35 -35
- package/dist/node/components/docs/docsManifest.js +611 -0
- package/dist/node/components/docs/ecosystem/IntegrationsPage.js +5 -5
- package/dist/node/components/docs/ecosystem/PluginsPage.js +7 -7
- package/dist/node/components/docs/ecosystem/RegistryPage.js +4 -4
- package/dist/node/components/docs/ecosystem/TemplatesPage.js +11 -11
- package/dist/node/components/docs/ecosystem/index.js +27 -27
- package/dist/node/components/docs/examples/DocsExamplesPage.js +59 -6
- package/dist/node/components/docs/examples/ExampleShowcasePage.js +257 -0
- package/dist/node/components/docs/examples/exampleShowcaseData.js +52 -0
- package/dist/node/components/docs/examples/index.js +265 -6
- package/dist/node/components/docs/getting-started/CLIPage.js +9 -9
- package/dist/node/components/docs/getting-started/CompatibilityPage.js +12 -12
- package/dist/node/components/docs/getting-started/DataViewTutorialPage.js +7 -7
- package/dist/node/components/docs/getting-started/DeveloperToolsPage.js +10 -10
- package/dist/node/components/docs/getting-started/HelloWorldPage.js +8 -8
- package/dist/node/components/docs/getting-started/InstallationPage.js +10 -10
- package/dist/node/components/docs/getting-started/StartHerePage.js +8 -8
- package/dist/node/components/docs/getting-started/TroubleshootingPage.js +12 -12
- package/dist/node/components/docs/getting-started/VSCodeExtensionPage.js +13 -13
- package/dist/node/components/docs/getting-started/index.js +89 -89
- package/dist/node/components/docs/guides/GuideCIDiffGatingPage.js +13 -13
- package/dist/node/components/docs/guides/GuideContractTypesPage.js +33 -33
- package/dist/node/components/docs/guides/GuideDocsPipelinePage.js +13 -13
- package/dist/node/components/docs/guides/GuideGenerateDocsClientsSchemasPage.js +13 -13
- package/dist/node/components/docs/guides/GuideImportExistingCodebasesPage.js +35 -35
- package/dist/node/components/docs/guides/GuideNextjsOneEndpointPage.js +15 -15
- package/dist/node/components/docs/guides/GuideSpecValidationTypingPage.js +13 -13
- package/dist/node/components/docs/guides/GuidesIndexPage.js +69 -46
- package/dist/node/components/docs/guides/index.js +174 -151
- package/dist/node/components/docs/index.js +15220 -16233
- package/dist/node/components/docs/integrations/IntegrationsCircuitBreakersPage.js +4 -4
- package/dist/node/components/docs/integrations/IntegrationsElevenLabsPage.js +7 -7
- package/dist/node/components/docs/integrations/IntegrationsGithubPage.js +11 -11
- package/dist/node/components/docs/integrations/IntegrationsGmailPage.js +7 -7
- package/dist/node/components/docs/integrations/IntegrationsGoogleCalendarPage.js +5 -5
- package/dist/node/components/docs/integrations/IntegrationsHealthRoutingPage.js +12 -12
- package/dist/node/components/docs/integrations/IntegrationsMistralPage.js +12 -12
- package/dist/node/components/docs/integrations/IntegrationsOpenAIPage.js +11 -11
- package/dist/node/components/docs/integrations/IntegrationsOverviewPage.js +119 -736
- package/dist/node/components/docs/integrations/IntegrationsPostmarkPage.js +12 -12
- package/dist/node/components/docs/integrations/IntegrationsPowensPage.js +24 -24
- package/dist/node/components/docs/integrations/IntegrationsQdrantPage.js +9 -9
- package/dist/node/components/docs/integrations/IntegrationsResendPage.js +7 -7
- package/dist/node/components/docs/integrations/IntegrationsS3Page.js +9 -9
- package/dist/node/components/docs/integrations/IntegrationsSlackPage.js +11 -11
- package/dist/node/components/docs/integrations/IntegrationsSpecModelPage.js +19 -19
- package/dist/node/components/docs/integrations/IntegrationsStripePage.js +25 -25
- package/dist/node/components/docs/integrations/IntegrationsTwilioPage.js +9 -9
- package/dist/node/components/docs/integrations/IntegrationsWhatsappMetaPage.js +12 -12
- package/dist/node/components/docs/integrations/IntegrationsWhatsappTwilioPage.js +13 -13
- package/dist/node/components/docs/integrations/index.js +614 -1231
- package/dist/node/components/docs/intent/ContractFirstApiPage.js +8 -8
- package/dist/node/components/docs/intent/DeterministicCodegenPage.js +9 -9
- package/dist/node/components/docs/intent/GenerateClientFromSchemaPage.js +13 -13
- package/dist/node/components/docs/intent/OpenapiAlternativePage.js +13 -13
- package/dist/node/components/docs/intent/SchemaValidationTypescriptPage.js +9 -9
- package/dist/node/components/docs/intent/SpecDrivenDevelopmentPage.js +8 -8
- package/dist/node/components/docs/intent/index.js +766 -766
- package/dist/node/components/docs/knowledge/KnowledgeCategoriesPage.js +38 -38
- package/dist/node/components/docs/knowledge/KnowledgeExamplesPage.js +9 -9
- package/dist/node/components/docs/knowledge/KnowledgeOverviewPage.js +91 -439
- package/dist/node/components/docs/knowledge/KnowledgeSourcesPage.js +28 -28
- package/dist/node/components/docs/knowledge/KnowledgeSpacesPage.js +21 -21
- package/dist/node/components/docs/knowledge/index.js +437 -785
- package/dist/node/components/docs/libraries/LibrariesAccessibilityPage.js +16 -16
- package/dist/node/components/docs/libraries/LibrariesAiAgentPage.js +8 -8
- package/dist/node/components/docs/libraries/LibrariesAnalyticsPage.js +6 -6
- package/dist/node/components/docs/libraries/LibrariesContentGenPage.js +6 -6
- package/dist/node/components/docs/libraries/LibrariesContractsPage.js +16 -16
- package/dist/node/components/docs/libraries/LibrariesCostTrackingPage.js +6 -6
- package/dist/node/components/docs/libraries/LibrariesDataBackendPage.js +14 -14
- package/dist/node/components/docs/libraries/LibrariesDataViewsPage.js +7 -7
- package/dist/node/components/docs/libraries/LibrariesDesignSystemPage.js +13 -13
- package/dist/node/components/docs/libraries/LibrariesEvolutionPage.js +7 -7
- package/dist/node/components/docs/libraries/LibrariesGraphQLPage.js +13 -13
- package/dist/node/components/docs/libraries/LibrariesGrowthPage.js +5 -5
- package/dist/node/components/docs/libraries/LibrariesMultiTenancyPage.js +5 -5
- package/dist/node/components/docs/libraries/LibrariesObservabilityPage.js +7 -7
- package/dist/node/components/docs/libraries/LibrariesOverlayEnginePage.js +6 -6
- package/dist/node/components/docs/libraries/LibrariesOverviewPage.js +117 -430
- package/dist/node/components/docs/libraries/LibrariesPersonalizationPage.js +6 -6
- package/dist/node/components/docs/libraries/LibrariesProgressiveDeliveryPage.js +6 -6
- package/dist/node/components/docs/libraries/LibrariesResiliencePage.js +6 -6
- package/dist/node/components/docs/libraries/LibrariesRuntimePage.js +13 -13
- package/dist/node/components/docs/libraries/LibrariesSLOPage.js +6 -6
- package/dist/node/components/docs/libraries/LibrariesSchemaPage.js +16 -16
- package/dist/node/components/docs/libraries/LibrariesSupportBotPage.js +7 -7
- package/dist/node/components/docs/libraries/LibrariesTestingPage.js +7 -7
- package/dist/node/components/docs/libraries/LibrariesUIKitPage.js +10 -10
- package/dist/node/components/docs/libraries/LibrariesWorkflowComposerPage.js +5 -5
- package/dist/node/components/docs/libraries/LibrariesWorkflowsPage.js +8 -8
- package/dist/node/components/docs/libraries/index.js +1308 -1621
- package/dist/node/components/docs/manifesto/ManifestoPage.js +33 -138
- package/dist/node/components/docs/ops/AutoEvolutionOpsPage.js +9 -9
- package/dist/node/components/docs/ops/DistributedTracingOpsPage.js +5 -5
- package/dist/node/components/docs/ops/index.js +14 -14
- package/dist/node/components/docs/reference/DocsMarkdownContent.js +1 -1
- package/dist/node/components/docs/reference/DocsReferenceContent.js +2 -2
- package/dist/node/components/docs/reference/DocsReferenceIndexClient.js +8 -8
- package/dist/node/components/docs/reference/DocsReferenceIndexPage.js +8 -8
- package/dist/node/components/docs/reference/DocsReferencePage.js +2 -2
- package/dist/node/components/docs/reference/index.js +10 -10
- package/dist/node/components/docs/safety/SafetyAuditingPage.js +16 -16
- package/dist/node/components/docs/safety/SafetyMigrationsPage.js +15 -15
- package/dist/node/components/docs/safety/SafetyOverviewPage.js +69 -206
- package/dist/node/components/docs/safety/SafetyPDPPage.js +12 -12
- package/dist/node/components/docs/safety/SafetySecurityTrustPage.js +11 -11
- package/dist/node/components/docs/safety/SafetySigningPage.js +7 -7
- package/dist/node/components/docs/safety/SafetyTenantIsolationPage.js +6 -6
- package/dist/node/components/docs/safety/index.js +616 -753
- package/dist/node/components/docs/shared/StudioPrompt.js +5 -5
- package/dist/node/components/docs/specs/SpecsCapabilitiesPage.js +12 -12
- package/dist/node/components/docs/specs/SpecsDataViewsPage.js +14 -14
- package/dist/node/components/docs/specs/SpecsOverlaysPage.js +14 -14
- package/dist/node/components/docs/specs/SpecsOverviewPage.js +135 -297
- package/dist/node/components/docs/specs/SpecsPolicyPage.js +29 -29
- package/dist/node/components/docs/specs/SpecsWorkflowsPage.js +18 -18
- package/dist/node/components/docs/specs/index.js +814 -976
- package/dist/node/components/docs/studio/StudioBYOKPage.js +1 -1
- package/dist/node/components/docs/studio/StudioDeploymentsPage.js +1 -1
- package/dist/node/components/docs/studio/StudioGettingStartedPage.js +1 -1
- package/dist/node/components/docs/studio/StudioIntegrationsPage.js +1 -1
- package/dist/node/components/docs/studio/StudioOverviewPage.js +109 -56
- package/dist/node/components/docs/studio/StudioVisualBuilderPage.js +1 -1
- package/dist/node/components/docs/studio/index.js +170 -117
- package/dist/node/components/integrations/index.js +25 -25
- package/dist/node/components/integrations/molecules/IntegrationCard.js +5 -5
- package/dist/node/components/integrations/organisms/IntegrationMarketplace.js +12 -12
- package/dist/node/components/integrations/organisms/IntegrationSettings.js +7 -7
- package/dist/node/components/integrations/organisms/KnowledgeSourceList.js +6 -6
- package/dist/node/components/legal/PrivacyTemplate.js +67 -67
- package/dist/node/components/legal/TermsTemplate.js +54 -54
- package/dist/node/components/legal/index.js +121 -121
- package/dist/node/components/shared/FeatureGateNotice.js +4 -4
- package/dist/node/components/shared/index.js +4 -4
- package/dist/node/components/shell/WorkspaceHeader.js +4 -4
- package/dist/node/components/shell/WorkspaceProjectShellLayout.js +10 -10
- package/dist/node/components/shell/WorkspaceShellRenderer.js +8 -8
- package/dist/node/components/shell/WorkspaceSidebar.js +2 -2
- package/dist/node/components/shell/index.js +12 -12
- package/dist/node/components/templates/index.js +835 -835
- package/dist/node/components/templates/messaging/ConversationList.js +11 -11
- package/dist/node/components/templates/messaging/MessageComposer.js +11 -11
- package/dist/node/components/templates/messaging/MessageThread.js +6 -6
- package/dist/node/components/templates/messaging/MessagingWorkspace.js +23 -23
- package/dist/node/components/templates/messaging/index.js +23 -23
- package/dist/node/components/templates/recipes/LanguageSwitcher.js +1 -1
- package/dist/node/components/templates/recipes/RecipeCard.js +5 -5
- package/dist/node/components/templates/recipes/RecipeDetail.js +8 -8
- package/dist/node/components/templates/recipes/RecipeList.js +17 -17
- package/dist/node/components/templates/recipes/index.js +17 -17
- package/dist/node/components/templates/todos/FilterBar.js +9 -9
- package/dist/node/components/templates/todos/TaskForm.js +14 -14
- package/dist/node/components/templates/todos/TaskItem.js +4 -4
- package/dist/node/components/templates/todos/TaskList.js +30 -30
- package/dist/node/components/templates/todos/index.js +30 -30
- package/dist/node/features/contracts-registry.js +15 -15
- package/dist/node/features/docs/docs.contracts.js +2 -2
- package/dist/node/features/docs/index.js +2 -2
- package/dist/node/features/index.js +18 -18
- package/dist/node/features/registry.js +1 -1
- package/dist/node/index.js +17034 -18047
- package/dist/node/libs/email/client.js +1 -1
- package/dist/node/libs/email/contact.js +1 -1
- package/dist/node/libs/email/newsletter.js +1 -1
- package/dist/node/libs/email/waitlist-application.js +1 -1
- package/dist/node/libs/email/waitlist.js +1 -1
- package/dist/node/libs/email.js +1 -1
- package/dist/node/presentation/features/atoms/FeatureIcon/FeatureIcon.js +7 -7
- package/dist/node/presentation/features/atoms/FeatureIcon/index.js +7 -7
- package/dist/node/presentation/features/atoms/index.js +7 -7
- package/dist/node/presentation/features/hooks/index.js +56 -56
- package/dist/node/presentation/features/hooks/useContractsRegistry.js +18 -18
- package/dist/node/presentation/features/hooks/useFeatureFilters.js +1 -1
- package/dist/node/presentation/features/hooks/useFeatureRegistry.js +1 -1
- package/dist/node/presentation/features/hooks/useRelatedDocs.js +1 -1
- package/dist/node/presentation/features/index.js +1364 -1364
- package/dist/node/presentation/features/molecules/FeatureCard/FeatureCard.js +15 -15
- package/dist/node/presentation/features/molecules/FeatureCard/index.js +15 -15
- package/dist/node/presentation/features/molecules/FeatureCategoryHeader/FeatureCategoryHeader.js +7 -7
- package/dist/node/presentation/features/molecules/FeatureCategoryHeader/index.js +7 -7
- package/dist/node/presentation/features/molecules/FeatureFilters/FeatureFilters.js +1 -1
- package/dist/node/presentation/features/molecules/FeatureFilters/index.js +1 -1
- package/dist/node/presentation/features/molecules/FeatureHoverPreview/FeatureHoverPreview.js +5 -5
- package/dist/node/presentation/features/molecules/FeatureHoverPreview/index.js +5 -5
- package/dist/node/presentation/features/molecules/index.js +77 -77
- package/dist/node/presentation/features/organisms/FeatureDataViewsList.js +18 -18
- package/dist/node/presentation/features/organisms/FeatureDiscovery/FeatureDiscovery.js +121 -121
- package/dist/node/presentation/features/organisms/FeatureDiscovery/index.js +121 -121
- package/dist/node/presentation/features/organisms/FeatureEventsList.js +18 -18
- package/dist/node/presentation/features/organisms/FeatureFormsList.js +18 -18
- package/dist/node/presentation/features/organisms/FeatureOperationsList.js +15 -15
- package/dist/node/presentation/features/organisms/FeaturePresentationsList.js +18 -18
- package/dist/node/presentation/features/organisms/index.js +401 -401
- package/dist/node/presentation/features/templates/FeatureDataViewDetailTemplate/FeatureDataViewDetailTemplate.js +13 -13
- package/dist/node/presentation/features/templates/FeatureDataViewDetailTemplate/index.js +13 -13
- package/dist/node/presentation/features/templates/FeatureDataViewsTemplate/FeatureDataViewsTemplate.js +20 -20
- package/dist/node/presentation/features/templates/FeatureDataViewsTemplate/index.js +20 -20
- package/dist/node/presentation/features/templates/FeatureEventDetailTemplate/FeatureEventDetailTemplate.js +12 -12
- package/dist/node/presentation/features/templates/FeatureEventDetailTemplate/index.js +12 -12
- package/dist/node/presentation/features/templates/FeatureEventsTemplate/FeatureEventsTemplate.js +18 -18
- package/dist/node/presentation/features/templates/FeatureEventsTemplate/index.js +18 -18
- package/dist/node/presentation/features/templates/FeatureFormDetailTemplate/FeatureFormDetailTemplate.js +13 -13
- package/dist/node/presentation/features/templates/FeatureFormDetailTemplate/index.js +13 -13
- package/dist/node/presentation/features/templates/FeatureFormsTemplate/FeatureFormsTemplate.js +20 -20
- package/dist/node/presentation/features/templates/FeatureFormsTemplate/index.js +20 -20
- package/dist/node/presentation/features/templates/FeatureOperationDetailTemplate/FeatureOperationDetailTemplate.js +8 -8
- package/dist/node/presentation/features/templates/FeatureOperationDetailTemplate/index.js +8 -8
- package/dist/node/presentation/features/templates/FeatureOperationsTemplate/FeatureOperationsTemplate.js +15 -15
- package/dist/node/presentation/features/templates/FeatureOperationsTemplate/index.js +15 -15
- package/dist/node/presentation/features/templates/FeatureOverviewTemplate/FeatureOverviewTemplate.js +2 -2
- package/dist/node/presentation/features/templates/FeatureOverviewTemplate/index.js +2 -2
- package/dist/node/presentation/features/templates/FeaturePresentationDetailTemplate/FeaturePresentationDetailTemplate.js +12 -12
- package/dist/node/presentation/features/templates/FeaturePresentationDetailTemplate/index.js +12 -12
- package/dist/node/presentation/features/templates/FeaturePresentationsTemplate/FeaturePresentationsTemplate.js +18 -18
- package/dist/node/presentation/features/templates/FeaturePresentationsTemplate/index.js +18 -18
- package/dist/presentation/features/atoms/FeatureIcon/FeatureIcon.js +7 -7
- package/dist/presentation/features/atoms/FeatureIcon/index.d.ts +1 -1
- package/dist/presentation/features/atoms/FeatureIcon/index.js +7 -7
- package/dist/presentation/features/atoms/index.js +7 -7
- package/dist/presentation/features/hooks/index.d.ts +3 -3
- package/dist/presentation/features/hooks/index.js +56 -56
- package/dist/presentation/features/hooks/useContractsRegistry.js +18 -18
- package/dist/presentation/features/hooks/useFeatureFilters.js +1 -1
- package/dist/presentation/features/hooks/useFeatureRegistry.js +1 -1
- package/dist/presentation/features/hooks/useRelatedDocs.js +1 -1
- package/dist/presentation/features/index.d.ts +14 -14
- package/dist/presentation/features/index.js +1364 -1364
- package/dist/presentation/features/molecules/FeatureCard/FeatureCard.js +15 -15
- package/dist/presentation/features/molecules/FeatureCard/index.js +15 -15
- package/dist/presentation/features/molecules/FeatureCategoryHeader/FeatureCategoryHeader.js +7 -7
- package/dist/presentation/features/molecules/FeatureCategoryHeader/index.js +7 -7
- package/dist/presentation/features/molecules/FeatureFilters/FeatureFilters.js +1 -1
- package/dist/presentation/features/molecules/FeatureFilters/index.js +1 -1
- package/dist/presentation/features/molecules/FeatureHoverPreview/FeatureHoverPreview.js +5 -5
- package/dist/presentation/features/molecules/FeatureHoverPreview/index.js +5 -5
- package/dist/presentation/features/molecules/index.d.ts +1 -1
- package/dist/presentation/features/molecules/index.js +77 -77
- package/dist/presentation/features/organisms/FeatureDataViewsList.js +18 -18
- package/dist/presentation/features/organisms/FeatureDiscovery/FeatureDiscovery.js +121 -121
- package/dist/presentation/features/organisms/FeatureDiscovery/index.d.ts +1 -1
- package/dist/presentation/features/organisms/FeatureDiscovery/index.js +121 -121
- package/dist/presentation/features/organisms/FeatureEventsList.js +18 -18
- package/dist/presentation/features/organisms/FeatureFormsList.js +18 -18
- package/dist/presentation/features/organisms/FeatureOperationsList.js +15 -15
- package/dist/presentation/features/organisms/FeaturePresentationsList.js +18 -18
- package/dist/presentation/features/organisms/index.d.ts +4 -4
- package/dist/presentation/features/organisms/index.js +401 -401
- package/dist/presentation/features/templates/FeatureDataViewDetailTemplate/FeatureDataViewDetailTemplate.js +13 -13
- package/dist/presentation/features/templates/FeatureDataViewDetailTemplate/index.js +13 -13
- package/dist/presentation/features/templates/FeatureDataViewDetailTemplate/types.d.ts +1 -1
- package/dist/presentation/features/templates/FeatureDataViewsTemplate/FeatureDataViewsTemplate.js +20 -20
- package/dist/presentation/features/templates/FeatureDataViewsTemplate/index.js +20 -20
- package/dist/presentation/features/templates/FeatureEventDetailTemplate/FeatureEventDetailTemplate.js +12 -12
- package/dist/presentation/features/templates/FeatureEventDetailTemplate/index.js +12 -12
- package/dist/presentation/features/templates/FeatureEventsTemplate/FeatureEventsTemplate.js +18 -18
- package/dist/presentation/features/templates/FeatureEventsTemplate/index.js +18 -18
- package/dist/presentation/features/templates/FeatureFormDetailTemplate/FeatureFormDetailTemplate.js +13 -13
- package/dist/presentation/features/templates/FeatureFormDetailTemplate/index.js +13 -13
- package/dist/presentation/features/templates/FeatureFormsTemplate/FeatureFormsTemplate.js +20 -20
- package/dist/presentation/features/templates/FeatureFormsTemplate/index.js +20 -20
- package/dist/presentation/features/templates/FeatureOperationDetailTemplate/FeatureOperationDetailTemplate.js +8 -8
- package/dist/presentation/features/templates/FeatureOperationDetailTemplate/index.js +8 -8
- package/dist/presentation/features/templates/FeatureOperationsTemplate/FeatureOperationsTemplate.js +15 -15
- package/dist/presentation/features/templates/FeatureOperationsTemplate/index.js +15 -15
- package/dist/presentation/features/templates/FeatureOverviewTemplate/FeatureOverviewTemplate.js +2 -2
- package/dist/presentation/features/templates/FeatureOverviewTemplate/index.js +2 -2
- package/dist/presentation/features/templates/FeaturePresentationDetailTemplate/FeaturePresentationDetailTemplate.js +12 -12
- package/dist/presentation/features/templates/FeaturePresentationDetailTemplate/index.js +12 -12
- package/dist/presentation/features/templates/FeaturePresentationsTemplate/FeaturePresentationsTemplate.js +18 -18
- package/dist/presentation/features/templates/FeaturePresentationsTemplate/index.js +18 -18
- package/package.json +70 -32
- package/src/__tests__/env-setup.ts +1 -1
- package/src/__tests__/mocks/prisma.ts +78 -78
- package/src/__tests__/setup.ts +2 -2
- package/src/application/context-storage/index.ts +42 -42
- package/src/application/index.ts +1 -1
- package/src/application/mcp/cliMcp.ts +221 -221
- package/src/application/mcp/common.ts +210 -210
- package/src/application/mcp/contractsMcp.ts +15 -15
- package/src/application/mcp/contractsMcpResources.ts +119 -119
- package/src/application/mcp/contractsMcpTools.ts +218 -218
- package/src/application/mcp/contractsMcpTypes.ts +35 -35
- package/src/application/mcp/docsMcp.ts +173 -173
- package/src/application/mcp/index.ts +2 -2
- package/src/application/mcp/internalMcp.ts +204 -204
- package/src/application/mcp/providerRankingMcp.ts +346 -344
- package/src/bundles/LibraryBundle.ts +136 -136
- package/src/components/docs/DocsIndexPage.tsx +189 -241
- package/src/components/docs/advanced/AdvancedMCPPage.tsx +168 -168
- package/src/components/docs/advanced/AdvancedOverlayEditorPage.tsx +52 -52
- package/src/components/docs/advanced/AdvancedRenderersPage.tsx +53 -53
- package/src/components/docs/advanced/AdvancedSpecExperimentsPage.tsx +48 -48
- package/src/components/docs/advanced/AdvancedTelemetryPage.tsx +205 -205
- package/src/components/docs/advanced/AdvancedWorkflowMonitoringPage.tsx +42 -42
- package/src/components/docs/advanced/index.ts +2 -2
- package/src/components/docs/architecture/ArchitectureAppConfigPage.tsx +127 -127
- package/src/components/docs/architecture/ArchitectureControlPlanePage.tsx +79 -79
- package/src/components/docs/architecture/ArchitectureIntegrationBindingPage.tsx +147 -147
- package/src/components/docs/architecture/ArchitectureKnowledgeBindingPage.tsx +193 -193
- package/src/components/docs/architecture/ArchitectureMultiTenancyPage.tsx +73 -73
- package/src/components/docs/architecture/ArchitectureOverviewPage.tsx +98 -273
- package/src/components/docs/architecture/index.ts +3 -3
- package/src/components/docs/comparison/ComparisonAutomationPlatformsPage.tsx +137 -137
- package/src/components/docs/comparison/ComparisonEnterprisePlatformsPage.tsx +138 -138
- package/src/components/docs/comparison/ComparisonInternalToolBuildersPage.tsx +147 -147
- package/src/components/docs/comparison/ComparisonOverviewPage.tsx +106 -106
- package/src/components/docs/comparison/ComparisonWindmillPage.tsx +143 -143
- package/src/components/docs/comparison/ComparisonWorkflowEnginesPage.tsx +168 -168
- package/src/components/docs/comparison/index.ts +2 -2
- package/src/components/docs/docsManifest.ts +720 -0
- package/src/components/docs/ecosystem/IntegrationsPage.tsx +45 -45
- package/src/components/docs/ecosystem/PluginsPage.tsx +77 -77
- package/src/components/docs/ecosystem/RegistryPage.tsx +48 -48
- package/src/components/docs/ecosystem/TemplatesPage.tsx +52 -52
- package/src/components/docs/ecosystem/ecosystem.docblocks.ts +42 -42
- package/src/components/docs/ecosystem/index.ts +2 -2
- package/src/components/docs/examples/DocsExamplesPage.tsx +78 -66
- package/src/components/docs/examples/ExampleShowcasePage.tsx +122 -0
- package/src/components/docs/examples/exampleShowcaseData.ts +65 -0
- package/src/components/docs/examples/index.ts +1 -0
- package/src/components/docs/generated/docs-index._common.json +1757 -1757
- package/src/components/docs/generated/docs-index.agent-console.json +376 -376
- package/src/components/docs/generated/docs-index.ai-chat-assistant.json +8 -8
- package/src/components/docs/generated/docs-index.ai-chat.json +104 -104
- package/src/components/docs/generated/docs-index.ai-support-bot.json +8 -8
- package/src/components/docs/generated/docs-index.analytics-dashboard.json +168 -168
- package/src/components/docs/generated/docs-index.app-config.json +136 -136
- package/src/components/docs/generated/docs-index.audit-trail.json +48 -48
- package/src/components/docs/generated/docs-index.calendar-google.json +8 -8
- package/src/components/docs/generated/docs-index.content-generation.json +8 -8
- package/src/components/docs/generated/docs-index.crm-pipeline.json +160 -160
- package/src/components/docs/generated/docs-index.email-gmail.json +8 -8
- package/src/components/docs/generated/docs-index.feature-flags.json +216 -216
- package/src/components/docs/generated/docs-index.files.json +176 -176
- package/src/components/docs/generated/docs-index.generated.ts +19 -19
- package/src/components/docs/generated/docs-index.health.json +96 -96
- package/src/components/docs/generated/docs-index.identity-rbac.json +312 -312
- package/src/components/docs/generated/docs-index.in-app-docs.json +8 -8
- package/src/components/docs/generated/docs-index.integration-hub.json +264 -264
- package/src/components/docs/generated/docs-index.integration-posthog.json +8 -8
- package/src/components/docs/generated/docs-index.integration-stripe.json +8 -8
- package/src/components/docs/generated/docs-index.integration-supabase.json +8 -8
- package/src/components/docs/generated/docs-index.jobs.json +136 -136
- package/src/components/docs/generated/docs-index.kb-update-pipeline.json +128 -128
- package/src/components/docs/generated/docs-index.knowledge-canon.json +8 -8
- package/src/components/docs/generated/docs-index.learning-journey-ambient-coach.json +8 -8
- package/src/components/docs/generated/docs-index.learning-journey-crm-onboarding.json +48 -48
- package/src/components/docs/generated/docs-index.learning-journey-duo-drills.json +8 -8
- package/src/components/docs/generated/docs-index.learning-journey-platform-tour.json +48 -48
- package/src/components/docs/generated/docs-index.learning-journey-quest-challenges.json +8 -8
- package/src/components/docs/generated/docs-index.learning-journey-registry.json +32 -32
- package/src/components/docs/generated/docs-index.learning-journey-studio-onboarding.json +48 -48
- package/src/components/docs/generated/docs-index.learning-journey-ui-coaching.json +8 -8
- package/src/components/docs/generated/docs-index.learning-journey-ui-gamified.json +8 -8
- package/src/components/docs/generated/docs-index.learning-journey-ui-onboarding.json +8 -8
- package/src/components/docs/generated/docs-index.learning-journey-ui-shared.json +8 -8
- package/src/components/docs/generated/docs-index.learning-journey.json +216 -216
- package/src/components/docs/generated/docs-index.learning-patterns.json +8 -8
- package/src/components/docs/generated/docs-index.lifecycle-cli.json +8 -8
- package/src/components/docs/generated/docs-index.lifecycle-dashboard.json +8 -8
- package/src/components/docs/generated/docs-index.locale-jurisdiction-gate.json +48 -48
- package/src/components/docs/generated/docs-index.manifest.json +376 -376
- package/src/components/docs/generated/docs-index.marketplace.json +336 -336
- package/src/components/docs/generated/docs-index.meeting-recorder-providers.json +8 -8
- package/src/components/docs/generated/docs-index.meeting-recorder.json +48 -48
- package/src/components/docs/generated/docs-index.metrics.json +200 -200
- package/src/components/docs/generated/docs-index.minimal.json +16 -16
- package/src/components/docs/generated/docs-index.notifications.json +64 -64
- package/src/components/docs/generated/docs-index.openbanking-powens.json +8 -8
- package/src/components/docs/generated/docs-index.openbanking.json +64 -64
- package/src/components/docs/generated/docs-index.opencode-cli.json +16 -16
- package/src/components/docs/generated/docs-index.personalization.json +8 -8
- package/src/components/docs/generated/docs-index.platform-acp.json +72 -72
- package/src/components/docs/generated/docs-index.platform-agent.json +96 -96
- package/src/components/docs/generated/docs-index.platform-context.json +56 -56
- package/src/components/docs/generated/docs-index.platform-database.json +48 -48
- package/src/components/docs/generated/docs-index.platform-docs.json +88 -88
- package/src/components/docs/generated/docs-index.platform-integrations.json +320 -320
- package/src/components/docs/generated/docs-index.platform-knowledge.json +56 -56
- package/src/components/docs/generated/docs-index.platform-provider-ranking.json +96 -96
- package/src/components/docs/generated/docs-index.pocket-family-office.json +120 -120
- package/src/components/docs/generated/docs-index.policy-safe-knowledge-assistant.json +8 -8
- package/src/components/docs/generated/docs-index.product-intent.json +8 -8
- package/src/components/docs/generated/docs-index.project-management-sync.json +8 -8
- package/src/components/docs/generated/docs-index.saas-boilerplate.json +208 -208
- package/src/components/docs/generated/docs-index.service-business-os.json +192 -192
- package/src/components/docs/generated/docs-index.team-hub.json +184 -184
- package/src/components/docs/generated/docs-index.unknown.json +512 -512
- package/src/components/docs/generated/docs-index.versioned-knowledge-base.json +80 -80
- package/src/components/docs/generated/docs-index.video-api-showcase.json +32 -32
- package/src/components/docs/generated/docs-index.video-docs-terminal.json +8 -8
- package/src/components/docs/generated/docs-index.video-marketing-clip.json +8 -8
- package/src/components/docs/generated/docs-index.voice-providers.json +8 -8
- package/src/components/docs/generated/docs-index.wealth-snapshot.json +152 -152
- package/src/components/docs/generated/docs-index.workflow-system.json +432 -432
- package/src/components/docs/generated/docs-index.workspace-cli.json +8 -8
- package/src/components/docs/generated/index.ts +6 -6
- package/src/components/docs/generated/loader.ts +49 -49
- package/src/components/docs/getting-started/CLIPage.tsx +157 -157
- package/src/components/docs/getting-started/CompatibilityPage.tsx +69 -69
- package/src/components/docs/getting-started/DataViewTutorialPage.tsx +63 -63
- package/src/components/docs/getting-started/DeveloperToolsPage.tsx +141 -140
- package/src/components/docs/getting-started/HelloWorldPage.tsx +88 -88
- package/src/components/docs/getting-started/InstallationPage.tsx +78 -78
- package/src/components/docs/getting-started/StartHerePage.tsx +64 -64
- package/src/components/docs/getting-started/TroubleshootingPage.tsx +68 -68
- package/src/components/docs/getting-started/VSCodeExtensionPage.tsx +233 -233
- package/src/components/docs/getting-started/getting-started.docblocks.ts +30 -30
- package/src/components/docs/getting-started/index.ts +6 -5
- package/src/components/docs/guides/GuideCIDiffGatingPage.tsx +88 -88
- package/src/components/docs/guides/GuideContractTypesPage.tsx +266 -266
- package/src/components/docs/guides/GuideDocsPipelinePage.tsx +78 -78
- package/src/components/docs/guides/GuideGenerateDocsClientsSchemasPage.tsx +89 -89
- package/src/components/docs/guides/GuideImportExistingCodebasesPage.tsx +360 -360
- package/src/components/docs/guides/GuideNextjsOneEndpointPage.tsx +117 -117
- package/src/components/docs/guides/GuideSpecValidationTypingPage.tsx +82 -82
- package/src/components/docs/guides/GuidesIndexPage.tsx +109 -99
- package/src/components/docs/guides/guides.docblocks.ts +60 -60
- package/src/components/docs/guides/index.ts +4 -4
- package/src/components/docs/index.ts +26 -40
- package/src/components/docs/integrations/IntegrationsCircuitBreakersPage.tsx +22 -22
- package/src/components/docs/integrations/IntegrationsElevenLabsPage.tsx +41 -41
- package/src/components/docs/integrations/IntegrationsGithubPage.tsx +66 -66
- package/src/components/docs/integrations/IntegrationsGmailPage.tsx +44 -44
- package/src/components/docs/integrations/IntegrationsGoogleCalendarPage.tsx +31 -31
- package/src/components/docs/integrations/IntegrationsHealthRoutingPage.tsx +80 -80
- package/src/components/docs/integrations/IntegrationsMistralPage.tsx +65 -65
- package/src/components/docs/integrations/IntegrationsOpenAIPage.tsx +54 -54
- package/src/components/docs/integrations/IntegrationsOverviewPage.tsx +124 -529
- package/src/components/docs/integrations/IntegrationsPostmarkPage.tsx +97 -97
- package/src/components/docs/integrations/IntegrationsPowensPage.tsx +165 -165
- package/src/components/docs/integrations/IntegrationsQdrantPage.tsx +44 -44
- package/src/components/docs/integrations/IntegrationsResendPage.tsx +40 -40
- package/src/components/docs/integrations/IntegrationsS3Page.tsx +48 -48
- package/src/components/docs/integrations/IntegrationsSlackPage.tsx +70 -70
- package/src/components/docs/integrations/IntegrationsSpecModelPage.tsx +139 -139
- package/src/components/docs/integrations/IntegrationsStripePage.tsx +153 -153
- package/src/components/docs/integrations/IntegrationsTwilioPage.tsx +50 -50
- package/src/components/docs/integrations/IntegrationsWhatsappMetaPage.tsx +69 -69
- package/src/components/docs/integrations/IntegrationsWhatsappTwilioPage.tsx +73 -73
- package/src/components/docs/integrations/index.ts +1 -1
- package/src/components/docs/intent/ContractFirstApiPage.tsx +61 -61
- package/src/components/docs/intent/DeterministicCodegenPage.tsx +81 -80
- package/src/components/docs/intent/GenerateClientFromSchemaPage.tsx +108 -108
- package/src/components/docs/intent/OpenapiAlternativePage.tsx +98 -98
- package/src/components/docs/intent/SchemaValidationTypescriptPage.tsx +79 -79
- package/src/components/docs/intent/SpecDrivenDevelopmentPage.tsx +67 -67
- package/src/components/docs/intent/index.ts +3 -3
- package/src/components/docs/intent/intent-pages.docblocks.ts +186 -186
- package/src/components/docs/knowledge/KnowledgeCategoriesPage.tsx +304 -304
- package/src/components/docs/knowledge/KnowledgeExamplesPage.tsx +84 -84
- package/src/components/docs/knowledge/KnowledgeOverviewPage.tsx +76 -285
- package/src/components/docs/knowledge/KnowledgeSourcesPage.tsx +171 -171
- package/src/components/docs/knowledge/KnowledgeSpacesPage.tsx +132 -132
- package/src/components/docs/knowledge/index.ts +1 -1
- package/src/components/docs/libraries/LibrariesAccessibilityPage.tsx +95 -95
- package/src/components/docs/libraries/LibrariesAiAgentPage.tsx +58 -58
- package/src/components/docs/libraries/LibrariesAnalyticsPage.tsx +39 -39
- package/src/components/docs/libraries/LibrariesContentGenPage.tsx +41 -41
- package/src/components/docs/libraries/LibrariesContractsPage.tsx +132 -132
- package/src/components/docs/libraries/LibrariesCostTrackingPage.tsx +47 -47
- package/src/components/docs/libraries/LibrariesDataBackendPage.tsx +73 -73
- package/src/components/docs/libraries/LibrariesDataViewsPage.tsx +76 -76
- package/src/components/docs/libraries/LibrariesDesignSystemPage.tsx +115 -115
- package/src/components/docs/libraries/LibrariesEvolutionPage.tsx +64 -64
- package/src/components/docs/libraries/LibrariesGraphQLPage.tsx +92 -92
- package/src/components/docs/libraries/LibrariesGrowthPage.tsx +37 -37
- package/src/components/docs/libraries/LibrariesMultiTenancyPage.tsx +47 -47
- package/src/components/docs/libraries/LibrariesObservabilityPage.tsx +58 -58
- package/src/components/docs/libraries/LibrariesOverlayEnginePage.tsx +51 -51
- package/src/components/docs/libraries/LibrariesOverviewPage.tsx +137 -301
- package/src/components/docs/libraries/LibrariesPersonalizationPage.tsx +57 -57
- package/src/components/docs/libraries/LibrariesProgressiveDeliveryPage.tsx +51 -51
- package/src/components/docs/libraries/LibrariesResiliencePage.tsx +54 -54
- package/src/components/docs/libraries/LibrariesRuntimePage.tsx +96 -96
- package/src/components/docs/libraries/LibrariesSLOPage.tsx +52 -52
- package/src/components/docs/libraries/LibrariesSchemaPage.tsx +131 -131
- package/src/components/docs/libraries/LibrariesSupportBotPage.tsx +59 -59
- package/src/components/docs/libraries/LibrariesTestingPage.tsx +64 -64
- package/src/components/docs/libraries/LibrariesUIKitPage.tsx +85 -85
- package/src/components/docs/libraries/LibrariesWorkflowComposerPage.tsx +38 -38
- package/src/components/docs/libraries/LibrariesWorkflowsPage.tsx +79 -79
- package/src/components/docs/libraries/index.ts +4 -4
- package/src/components/docs/manifesto/ManifestoPage.tsx +61 -132
- package/src/components/docs/ops/AutoEvolutionOpsPage.tsx +81 -81
- package/src/components/docs/ops/DistributedTracingOpsPage.tsx +28 -28
- package/src/components/docs/ops/ops-lifecycle.docblocks.ts +32 -32
- package/src/components/docs/ops/ops-runbooks-a.docblocks.ts +60 -60
- package/src/components/docs/ops/ops-runbooks-b.docblocks.ts +60 -60
- package/src/components/docs/ops/ops-slo-tenant.docblocks.ts +61 -61
- package/src/components/docs/ops/ops-top.docs.ts +10 -10
- package/src/components/docs/ops/ops.docs.ts +6 -6
- package/src/components/docs/product/product.docblocks.ts +60 -60
- package/src/components/docs/reference/DocsMarkdownContent.tsx +74 -74
- package/src/components/docs/reference/DocsReferenceContent.tsx +51 -51
- package/src/components/docs/reference/DocsReferenceIndexClient.tsx +106 -105
- package/src/components/docs/reference/DocsReferenceIndexPage.tsx +2 -2
- package/src/components/docs/reference/DocsReferencePage.tsx +3 -3
- package/src/components/docs/reference/docsMarkdownParser.ts +90 -90
- package/src/components/docs/safety/SafetyAuditingPage.tsx +189 -189
- package/src/components/docs/safety/SafetyMigrationsPage.tsx +189 -189
- package/src/components/docs/safety/SafetyOverviewPage.tsx +70 -157
- package/src/components/docs/safety/SafetyPDPPage.tsx +163 -163
- package/src/components/docs/safety/SafetySecurityTrustPage.tsx +89 -89
- package/src/components/docs/safety/SafetySigningPage.tsx +38 -38
- package/src/components/docs/safety/SafetyTenantIsolationPage.tsx +39 -39
- package/src/components/docs/safety/index.ts +3 -3
- package/src/components/docs/shared/StudioPrompt.tsx +17 -17
- package/src/components/docs/specs/SpecsCapabilitiesPage.tsx +79 -79
- package/src/components/docs/specs/SpecsDataViewsPage.tsx +142 -142
- package/src/components/docs/specs/SpecsOverlaysPage.tsx +202 -202
- package/src/components/docs/specs/SpecsOverviewPage.tsx +118 -193
- package/src/components/docs/specs/SpecsPolicyPage.tsx +233 -233
- package/src/components/docs/specs/SpecsWorkflowsPage.tsx +156 -156
- package/src/components/docs/specs/index.ts +3 -3
- package/src/components/docs/studio/StudioBYOKPage.tsx +11 -11
- package/src/components/docs/studio/StudioDeploymentsPage.tsx +11 -11
- package/src/components/docs/studio/StudioGettingStartedPage.tsx +11 -11
- package/src/components/docs/studio/StudioIntegrationsPage.tsx +11 -11
- package/src/components/docs/studio/StudioOverviewPage.tsx +94 -73
- package/src/components/docs/studio/StudioVisualBuilderPage.tsx +11 -11
- package/src/components/docs/studio/index.ts +4 -4
- package/src/components/docs/tech/contracts/tech-docs.docblocks.ts +10 -10
- package/src/components/integrations/molecules/IntegrationCard.tsx +71 -72
- package/src/components/integrations/organisms/IntegrationMarketplace.tsx +116 -116
- package/src/components/integrations/organisms/IntegrationSettings.tsx +201 -201
- package/src/components/integrations/organisms/KnowledgeSourceList.tsx +93 -94
- package/src/components/legal/PrivacyTemplate.tsx +611 -611
- package/src/components/legal/TermsTemplate.tsx +675 -675
- package/src/components/shared/FeatureGateNotice.tsx +26 -27
- package/src/components/shell/WorkspaceHeader.tsx +80 -80
- package/src/components/shell/WorkspaceProjectShellLayout.tsx +59 -58
- package/src/components/shell/WorkspaceShellRenderer.tsx +69 -68
- package/src/components/shell/WorkspaceSidebar.tsx +58 -58
- package/src/components/shell/index.ts +1 -1
- package/src/components/templates/engine/index.ts +29 -28
- package/src/components/templates/index.ts +1 -1
- package/src/components/templates/messaging/ConversationList.tsx +68 -69
- package/src/components/templates/messaging/MessageComposer.tsx +59 -59
- package/src/components/templates/messaging/MessageThread.tsx +73 -74
- package/src/components/templates/messaging/MessagingWorkspace.tsx +18 -19
- package/src/components/templates/messaging/index.ts +1 -1
- package/src/components/templates/messaging/types.ts +17 -17
- package/src/components/templates/recipes/LanguageSwitcher.tsx +20 -20
- package/src/components/templates/recipes/RecipeCard.tsx +56 -56
- package/src/components/templates/recipes/RecipeDetail.tsx +43 -43
- package/src/components/templates/recipes/RecipeList.tsx +62 -63
- package/src/components/templates/recipes/index.ts +2 -2
- package/src/components/templates/recipes/types.ts +24 -24
- package/src/components/templates/todos/FilterBar.tsx +84 -84
- package/src/components/templates/todos/TaskForm.tsx +118 -119
- package/src/components/templates/todos/TaskItem.tsx +78 -78
- package/src/components/templates/todos/TaskList.tsx +106 -107
- package/src/components/templates/todos/index.ts +2 -2
- package/src/components/templates/todos/types.ts +11 -11
- package/src/config/contractspec-blueprint.ts +55 -55
- package/src/config/contractspec-branding.ts +37 -37
- package/src/config/contractspec-routes.ts +22 -22
- package/src/config/index.ts +14 -15
- package/src/features/contracts-registry.ts +118 -118
- package/src/features/docs/docs.contracts.ts +6 -6
- package/src/features/docs/index.ts +6 -6
- package/src/features/docs.feature.ts +27 -27
- package/src/features/index.ts +59 -63
- package/src/features/mcp.feature.ts +24 -24
- package/src/features/presentations.feature.ts +27 -27
- package/src/features/registry.ts +14 -14
- package/src/index.ts +2 -2
- package/src/infrastructure/elysia/logger.ts +21 -21
- package/src/libs/email/client.test.ts +81 -81
- package/src/libs/email/client.ts +111 -111
- package/src/libs/email/contact.ts +35 -35
- package/src/libs/email/newsletter.ts +46 -46
- package/src/libs/email/types.ts +29 -29
- package/src/libs/email/utils.ts +5 -5
- package/src/libs/email/waitlist-application.ts +69 -69
- package/src/libs/email/waitlist.ts +46 -46
- package/src/libs/email.ts +7 -7
- package/src/libs/posthog/client.ts +44 -44
- package/src/libs/posthog/native.ts +23 -22
- package/src/libs/posthog/server.ts +7 -7
- package/src/libs/pricing-examples.ts +12 -12
- package/src/presentation/features/atoms/FeatureIcon/FeatureIcon.tsx +90 -90
- package/src/presentation/features/atoms/FeatureIcon/index.ts +3 -3
- package/src/presentation/features/hooks/index.ts +9 -9
- package/src/presentation/features/hooks/useContractsRegistry.ts +23 -23
- package/src/presentation/features/hooks/useFeatureFilters.ts +117 -117
- package/src/presentation/features/hooks/useFeatureRegistry.ts +40 -40
- package/src/presentation/features/hooks/useRelatedDocs.ts +28 -28
- package/src/presentation/features/index.ts +50 -52
- package/src/presentation/features/molecules/FeatureCard/FeatureCard.tsx +80 -80
- package/src/presentation/features/molecules/FeatureCard/types.ts +6 -6
- package/src/presentation/features/molecules/FeatureCategoryHeader/FeatureCategoryHeader.tsx +54 -54
- package/src/presentation/features/molecules/FeatureCategoryHeader/index.ts +2 -2
- package/src/presentation/features/molecules/FeatureFilters/FeatureFilters.tsx +67 -67
- package/src/presentation/features/molecules/FeatureFilters/types.ts +20 -20
- package/src/presentation/features/molecules/FeatureHoverPreview/FeatureHoverPreview.tsx +120 -121
- package/src/presentation/features/molecules/FeatureHoverPreview/index.ts +2 -2
- package/src/presentation/features/molecules/index.ts +8 -8
- package/src/presentation/features/organisms/FeatureDataViewsList.tsx +21 -21
- package/src/presentation/features/organisms/FeatureDetail/FeatureDetail.tsx +86 -86
- package/src/presentation/features/organisms/FeatureDetail/types.ts +4 -4
- package/src/presentation/features/organisms/FeatureDiscovery/FeatureDiscovery.tsx +210 -210
- package/src/presentation/features/organisms/FeatureDiscovery/index.ts +3 -3
- package/src/presentation/features/organisms/FeatureDiscovery/types.ts +10 -10
- package/src/presentation/features/organisms/FeatureEventsList.tsx +19 -19
- package/src/presentation/features/organisms/FeatureFormsList.tsx +19 -19
- package/src/presentation/features/organisms/FeatureOperationsList.tsx +21 -21
- package/src/presentation/features/organisms/FeaturePresentationsList.tsx +21 -21
- package/src/presentation/features/organisms/index.ts +6 -6
- package/src/presentation/features/templates/FeatureDataViewDetailTemplate/FeatureDataViewDetailTemplate.tsx +219 -219
- package/src/presentation/features/templates/FeatureDataViewDetailTemplate/types.ts +7 -7
- package/src/presentation/features/templates/FeatureDataViewsTemplate/FeatureDataViewsTemplate.tsx +26 -26
- package/src/presentation/features/templates/FeatureEventDetailTemplate/FeatureEventDetailTemplate.tsx +195 -195
- package/src/presentation/features/templates/FeatureEventDetailTemplate/types.ts +7 -7
- package/src/presentation/features/templates/FeatureEventsTemplate/FeatureEventsTemplate.tsx +26 -26
- package/src/presentation/features/templates/FeatureFormDetailTemplate/FeatureFormDetailTemplate.tsx +216 -216
- package/src/presentation/features/templates/FeatureFormDetailTemplate/types.ts +7 -7
- package/src/presentation/features/templates/FeatureFormsTemplate/FeatureFormsTemplate.tsx +26 -26
- package/src/presentation/features/templates/FeatureOperationDetailTemplate/FeatureOperationDetailTemplate.tsx +228 -228
- package/src/presentation/features/templates/FeatureOperationDetailTemplate/types.ts +7 -7
- package/src/presentation/features/templates/FeatureOperationsTemplate/FeatureOperationsTemplate.tsx +26 -26
- package/src/presentation/features/templates/FeatureOverviewTemplate/FeatureOverviewTemplate.tsx +24 -24
- package/src/presentation/features/templates/FeaturePresentationDetailTemplate/FeaturePresentationDetailTemplate.tsx +201 -201
- package/src/presentation/features/templates/FeaturePresentationDetailTemplate/types.ts +8 -8
- package/src/presentation/features/templates/FeaturePresentationsTemplate/FeaturePresentationsTemplate.tsx +26 -26
- package/src/presentation/features/templates/types.ts +2 -2
- package/tsconfig.json +12 -12
- package/tsdown.config.js +5 -5
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
// src/components/docs/knowledge/
|
|
1
|
+
// src/components/docs/knowledge/KnowledgeCategoriesPage.tsx
|
|
2
2
|
import Link from "@contractspec/lib.ui-link";
|
|
3
3
|
import { ChevronRight } from "lucide-react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
function
|
|
5
|
+
function KnowledgeCategoriesPage() {
|
|
6
6
|
return /* @__PURE__ */ jsxs("div", {
|
|
7
7
|
className: "space-y-8",
|
|
8
8
|
children: [
|
|
@@ -10,344 +10,12 @@ function KnowledgeOverviewPage() {
|
|
|
10
10
|
className: "space-y-4",
|
|
11
11
|
children: [
|
|
12
12
|
/* @__PURE__ */ jsx("h1", {
|
|
13
|
-
className: "text-4xl
|
|
14
|
-
children: "Knowledge
|
|
15
|
-
}),
|
|
16
|
-
/* @__PURE__ */ jsx("p", {
|
|
17
|
-
className: "text-muted-foreground",
|
|
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
|
-
})
|
|
20
|
-
]
|
|
21
|
-
}),
|
|
22
|
-
/* @__PURE__ */ jsxs("div", {
|
|
23
|
-
className: "space-y-4",
|
|
24
|
-
children: [
|
|
25
|
-
/* @__PURE__ */ jsx("h2", {
|
|
26
|
-
className: "text-2xl font-bold",
|
|
27
|
-
children: "Why knowledge matters"
|
|
28
|
-
}),
|
|
29
|
-
/* @__PURE__ */ jsx("p", {
|
|
30
|
-
className: "text-muted-foreground",
|
|
31
|
-
children: "Modern applications need to:"
|
|
32
|
-
}),
|
|
33
|
-
/* @__PURE__ */ jsxs("ul", {
|
|
34
|
-
className: "text-muted-foreground list-inside list-disc space-y-2",
|
|
35
|
-
children: [
|
|
36
|
-
/* @__PURE__ */ jsxs("li", {
|
|
37
|
-
children: [
|
|
38
|
-
/* @__PURE__ */ jsx("strong", {
|
|
39
|
-
children: "Understand context"
|
|
40
|
-
}),
|
|
41
|
-
" - Access relevant information to make informed decisions"
|
|
42
|
-
]
|
|
43
|
-
}),
|
|
44
|
-
/* @__PURE__ */ jsxs("li", {
|
|
45
|
-
children: [
|
|
46
|
-
/* @__PURE__ */ jsx("strong", {
|
|
47
|
-
children: "Learn from history"
|
|
48
|
-
}),
|
|
49
|
-
" - Use past interactions to improve future responses"
|
|
50
|
-
]
|
|
51
|
-
}),
|
|
52
|
-
/* @__PURE__ */ jsxs("li", {
|
|
53
|
-
children: [
|
|
54
|
-
/* @__PURE__ */ jsx("strong", {
|
|
55
|
-
children: "Trust sources"
|
|
56
|
-
}),
|
|
57
|
-
" - Distinguish between authoritative and reference information"
|
|
58
|
-
]
|
|
59
|
-
}),
|
|
60
|
-
/* @__PURE__ */ jsxs("li", {
|
|
61
|
-
children: [
|
|
62
|
-
/* @__PURE__ */ jsx("strong", {
|
|
63
|
-
children: "Scale knowledge"
|
|
64
|
-
}),
|
|
65
|
-
" - Handle growing amounts of documentation and data"
|
|
66
|
-
]
|
|
67
|
-
}),
|
|
68
|
-
/* @__PURE__ */ jsxs("li", {
|
|
69
|
-
children: [
|
|
70
|
-
/* @__PURE__ */ jsx("strong", {
|
|
71
|
-
children: "Maintain privacy"
|
|
72
|
-
}),
|
|
73
|
-
" - Keep tenant knowledge isolated and secure"
|
|
74
|
-
]
|
|
75
|
-
})
|
|
76
|
-
]
|
|
77
|
-
})
|
|
78
|
-
]
|
|
79
|
-
}),
|
|
80
|
-
/* @__PURE__ */ jsxs("div", {
|
|
81
|
-
className: "space-y-4",
|
|
82
|
-
children: [
|
|
83
|
-
/* @__PURE__ */ jsx("h2", {
|
|
84
|
-
className: "text-2xl font-bold",
|
|
85
|
-
children: "Knowledge architecture"
|
|
86
|
-
}),
|
|
87
|
-
/* @__PURE__ */ jsx("p", {
|
|
88
|
-
className: "text-muted-foreground",
|
|
89
|
-
children: "ContractSpec's knowledge system has three main components:"
|
|
90
|
-
}),
|
|
91
|
-
/* @__PURE__ */ jsxs("div", {
|
|
92
|
-
className: "space-y-6",
|
|
93
|
-
children: [
|
|
94
|
-
/* @__PURE__ */ jsxs("div", {
|
|
95
|
-
className: "card-subtle p-4",
|
|
96
|
-
children: [
|
|
97
|
-
/* @__PURE__ */ jsx("h3", {
|
|
98
|
-
className: "mb-2 text-lg font-semibold",
|
|
99
|
-
children: "1. Knowledge Categories"
|
|
100
|
-
}),
|
|
101
|
-
/* @__PURE__ */ jsx("p", {
|
|
102
|
-
className: "text-muted-foreground mb-3 text-sm",
|
|
103
|
-
children: "Four trust levels that determine how knowledge is used:"
|
|
104
|
-
}),
|
|
105
|
-
/* @__PURE__ */ jsxs("div", {
|
|
106
|
-
className: "space-y-2 text-sm",
|
|
107
|
-
children: [
|
|
108
|
-
/* @__PURE__ */ jsxs("div", {
|
|
109
|
-
className: "flex items-start gap-3",
|
|
110
|
-
children: [
|
|
111
|
-
/* @__PURE__ */ jsx("code", {
|
|
112
|
-
className: "bg-background/50 rounded px-2 py-1 text-xs",
|
|
113
|
-
children: "canonical"
|
|
114
|
-
}),
|
|
115
|
-
/* @__PURE__ */ jsx("span", {
|
|
116
|
-
className: "text-muted-foreground",
|
|
117
|
-
children: "Ground truth - product specs, schemas, official policies"
|
|
118
|
-
})
|
|
119
|
-
]
|
|
120
|
-
}),
|
|
121
|
-
/* @__PURE__ */ jsxs("div", {
|
|
122
|
-
className: "flex items-start gap-3",
|
|
123
|
-
children: [
|
|
124
|
-
/* @__PURE__ */ jsx("code", {
|
|
125
|
-
className: "bg-background/50 rounded px-2 py-1 text-xs",
|
|
126
|
-
children: "operational"
|
|
127
|
-
}),
|
|
128
|
-
/* @__PURE__ */ jsx("span", {
|
|
129
|
-
className: "text-muted-foreground",
|
|
130
|
-
children: "Internal docs - support tickets, runbooks, sales materials"
|
|
131
|
-
})
|
|
132
|
-
]
|
|
133
|
-
}),
|
|
134
|
-
/* @__PURE__ */ jsxs("div", {
|
|
135
|
-
className: "flex items-start gap-3",
|
|
136
|
-
children: [
|
|
137
|
-
/* @__PURE__ */ jsx("code", {
|
|
138
|
-
className: "bg-background/50 rounded px-2 py-1 text-xs",
|
|
139
|
-
children: "external"
|
|
140
|
-
}),
|
|
141
|
-
/* @__PURE__ */ jsx("span", {
|
|
142
|
-
className: "text-muted-foreground",
|
|
143
|
-
children: "Third-party - PSP docs, regulations, integration guides"
|
|
144
|
-
})
|
|
145
|
-
]
|
|
146
|
-
}),
|
|
147
|
-
/* @__PURE__ */ jsxs("div", {
|
|
148
|
-
className: "flex items-start gap-3",
|
|
149
|
-
children: [
|
|
150
|
-
/* @__PURE__ */ jsx("code", {
|
|
151
|
-
className: "bg-background/50 rounded px-2 py-1 text-xs",
|
|
152
|
-
children: "ephemeral"
|
|
153
|
-
}),
|
|
154
|
-
/* @__PURE__ */ jsx("span", {
|
|
155
|
-
className: "text-muted-foreground",
|
|
156
|
-
children: "Temporary - agent scratchpads, session context, drafts"
|
|
157
|
-
})
|
|
158
|
-
]
|
|
159
|
-
})
|
|
160
|
-
]
|
|
161
|
-
}),
|
|
162
|
-
/* @__PURE__ */ jsx(Link, {
|
|
163
|
-
href: "/docs/knowledge/categories",
|
|
164
|
-
className: "mt-3 inline-block text-sm text-violet-400 hover:text-violet-300",
|
|
165
|
-
children: "Learn more about categories →"
|
|
166
|
-
})
|
|
167
|
-
]
|
|
168
|
-
}),
|
|
169
|
-
/* @__PURE__ */ jsxs("div", {
|
|
170
|
-
className: "card-subtle p-4",
|
|
171
|
-
children: [
|
|
172
|
-
/* @__PURE__ */ jsx("h3", {
|
|
173
|
-
className: "mb-2 text-lg font-semibold",
|
|
174
|
-
children: "2. Knowledge Spaces"
|
|
175
|
-
}),
|
|
176
|
-
/* @__PURE__ */ jsx("p", {
|
|
177
|
-
className: "text-muted-foreground mb-3 text-sm",
|
|
178
|
-
children: "Logical domains of knowledge defined globally:"
|
|
179
|
-
}),
|
|
180
|
-
/* @__PURE__ */ jsx("div", {
|
|
181
|
-
className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded border p-3 font-mono text-xs",
|
|
182
|
-
children: /* @__PURE__ */ jsx("pre", {
|
|
183
|
-
children: `type KnowledgeSpaceSpec = {
|
|
184
|
-
id: string;
|
|
185
|
-
label: string;
|
|
186
|
-
category: KnowledgeCategory;
|
|
187
|
-
storageStrategy: "vector" | "search" | "hybrid";
|
|
188
|
-
indexProvider: string; // e.g., "qdrant"
|
|
189
|
-
retentionPolicy: { days?: number };
|
|
190
|
-
intendedAudience: "agents" | "humans" | "admin-only";
|
|
191
|
-
};`
|
|
192
|
-
})
|
|
193
|
-
}),
|
|
194
|
-
/* @__PURE__ */ jsx(Link, {
|
|
195
|
-
href: "/docs/knowledge/spaces",
|
|
196
|
-
className: "mt-3 inline-block text-sm text-violet-400 hover:text-violet-300",
|
|
197
|
-
children: "Learn more about spaces →"
|
|
198
|
-
})
|
|
199
|
-
]
|
|
200
|
-
}),
|
|
201
|
-
/* @__PURE__ */ jsxs("div", {
|
|
202
|
-
className: "card-subtle p-4",
|
|
203
|
-
children: [
|
|
204
|
-
/* @__PURE__ */ jsx("h3", {
|
|
205
|
-
className: "mb-2 text-lg font-semibold",
|
|
206
|
-
children: "3. Knowledge Sources"
|
|
207
|
-
}),
|
|
208
|
-
/* @__PURE__ */ jsx("p", {
|
|
209
|
-
className: "text-muted-foreground mb-3 text-sm",
|
|
210
|
-
children: "Per-tenant data sources that feed knowledge spaces:"
|
|
211
|
-
}),
|
|
212
|
-
/* @__PURE__ */ jsx("div", {
|
|
213
|
-
className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded border p-3 font-mono text-xs",
|
|
214
|
-
children: /* @__PURE__ */ jsx("pre", {
|
|
215
|
-
children: `type KnowledgeSourceConfig = {
|
|
216
|
-
id: string;
|
|
217
|
-
tenantId: string;
|
|
218
|
-
spaceId: string;
|
|
219
|
-
kind: "uploaded-document" | "url" | "email"
|
|
220
|
-
| "notion" | "database-query" | "raw-text";
|
|
221
|
-
location: string;
|
|
222
|
-
syncPolicy: { interval?: string; webhook?: boolean };
|
|
223
|
-
lastSyncedAt?: string;
|
|
224
|
-
};`
|
|
225
|
-
})
|
|
226
|
-
}),
|
|
227
|
-
/* @__PURE__ */ jsx(Link, {
|
|
228
|
-
href: "/docs/knowledge/sources",
|
|
229
|
-
className: "mt-3 inline-block text-sm text-violet-400 hover:text-violet-300",
|
|
230
|
-
children: "Learn more about sources →"
|
|
231
|
-
})
|
|
232
|
-
]
|
|
233
|
-
})
|
|
234
|
-
]
|
|
235
|
-
})
|
|
236
|
-
]
|
|
237
|
-
}),
|
|
238
|
-
/* @__PURE__ */ jsxs("div", {
|
|
239
|
-
className: "space-y-4",
|
|
240
|
-
children: [
|
|
241
|
-
/* @__PURE__ */ jsx("h2", {
|
|
242
|
-
className: "text-2xl font-bold",
|
|
243
|
-
children: "How it works"
|
|
13
|
+
className: "font-bold text-4xl",
|
|
14
|
+
children: "Knowledge Categories"
|
|
244
15
|
}),
|
|
245
16
|
/* @__PURE__ */ jsx("p", {
|
|
246
17
|
className: "text-muted-foreground",
|
|
247
|
-
children: "
|
|
248
|
-
}),
|
|
249
|
-
/* @__PURE__ */ jsxs("ol", {
|
|
250
|
-
className: "text-muted-foreground list-inside list-decimal space-y-3",
|
|
251
|
-
children: [
|
|
252
|
-
/* @__PURE__ */ jsxs("li", {
|
|
253
|
-
children: [
|
|
254
|
-
/* @__PURE__ */ jsx("strong", {
|
|
255
|
-
children: "Define spaces"
|
|
256
|
-
}),
|
|
257
|
-
' - Create KnowledgeSpaceSpec for each logical domain (e.g., "Product Canon", "Support FAQ")'
|
|
258
|
-
]
|
|
259
|
-
}),
|
|
260
|
-
/* @__PURE__ */ jsxs("li", {
|
|
261
|
-
children: [
|
|
262
|
-
/* @__PURE__ */ jsx("strong", {
|
|
263
|
-
children: "Configure sources"
|
|
264
|
-
}),
|
|
265
|
-
" - Tenants connect their data sources (Notion, Gmail, uploads, etc.)"
|
|
266
|
-
]
|
|
267
|
-
}),
|
|
268
|
-
/* @__PURE__ */ jsxs("li", {
|
|
269
|
-
children: [
|
|
270
|
-
/* @__PURE__ */ jsx("strong", {
|
|
271
|
-
children: "Sync & index"
|
|
272
|
-
}),
|
|
273
|
-
" - Sources are synced, chunked, and indexed in vector databases"
|
|
274
|
-
]
|
|
275
|
-
}),
|
|
276
|
-
/* @__PURE__ */ jsxs("li", {
|
|
277
|
-
children: [
|
|
278
|
-
/* @__PURE__ */ jsx("strong", {
|
|
279
|
-
children: "Query & retrieve"
|
|
280
|
-
}),
|
|
281
|
-
" - Workflows and agents perform semantic search to find relevant context"
|
|
282
|
-
]
|
|
283
|
-
})
|
|
284
|
-
]
|
|
285
|
-
})
|
|
286
|
-
]
|
|
287
|
-
}),
|
|
288
|
-
/* @__PURE__ */ jsxs("div", {
|
|
289
|
-
className: "space-y-4",
|
|
290
|
-
children: [
|
|
291
|
-
/* @__PURE__ */ jsx("h2", {
|
|
292
|
-
className: "text-2xl font-bold",
|
|
293
|
-
children: "Use cases"
|
|
294
|
-
}),
|
|
295
|
-
/* @__PURE__ */ jsxs("div", {
|
|
296
|
-
className: "grid gap-4 md:grid-cols-2",
|
|
297
|
-
children: [
|
|
298
|
-
/* @__PURE__ */ jsxs("div", {
|
|
299
|
-
className: "card-subtle p-4",
|
|
300
|
-
children: [
|
|
301
|
-
/* @__PURE__ */ jsx("h3", {
|
|
302
|
-
className: "mb-2 font-semibold",
|
|
303
|
-
children: "Support Agents"
|
|
304
|
-
}),
|
|
305
|
-
/* @__PURE__ */ jsx("p", {
|
|
306
|
-
className: "text-muted-foreground text-sm",
|
|
307
|
-
children: "Answer customer questions using product documentation (canonical) and past support tickets (operational)."
|
|
308
|
-
})
|
|
309
|
-
]
|
|
310
|
-
}),
|
|
311
|
-
/* @__PURE__ */ jsxs("div", {
|
|
312
|
-
className: "card-subtle p-4",
|
|
313
|
-
children: [
|
|
314
|
-
/* @__PURE__ */ jsx("h3", {
|
|
315
|
-
className: "mb-2 font-semibold",
|
|
316
|
-
children: "Invoice Generation"
|
|
317
|
-
}),
|
|
318
|
-
/* @__PURE__ */ jsx("p", {
|
|
319
|
-
className: "text-muted-foreground text-sm",
|
|
320
|
-
children: "Generate invoices using product catalog (canonical) and pricing rules (operational)."
|
|
321
|
-
})
|
|
322
|
-
]
|
|
323
|
-
}),
|
|
324
|
-
/* @__PURE__ */ jsxs("div", {
|
|
325
|
-
className: "card-subtle p-4",
|
|
326
|
-
children: [
|
|
327
|
-
/* @__PURE__ */ jsx("h3", {
|
|
328
|
-
className: "mb-2 font-semibold",
|
|
329
|
-
children: "Compliance Checking"
|
|
330
|
-
}),
|
|
331
|
-
/* @__PURE__ */ jsx("p", {
|
|
332
|
-
className: "text-muted-foreground text-sm",
|
|
333
|
-
children: "Validate operations against regulatory requirements (external) and internal policies (canonical)."
|
|
334
|
-
})
|
|
335
|
-
]
|
|
336
|
-
}),
|
|
337
|
-
/* @__PURE__ */ jsxs("div", {
|
|
338
|
-
className: "card-subtle p-4",
|
|
339
|
-
children: [
|
|
340
|
-
/* @__PURE__ */ jsx("h3", {
|
|
341
|
-
className: "mb-2 font-semibold",
|
|
342
|
-
children: "Semantic Search"
|
|
343
|
-
}),
|
|
344
|
-
/* @__PURE__ */ jsx("p", {
|
|
345
|
-
className: "text-muted-foreground text-sm",
|
|
346
|
-
children: "Find relevant documents, tickets, or records using natural language queries."
|
|
347
|
-
})
|
|
348
|
-
]
|
|
349
|
-
})
|
|
350
|
-
]
|
|
18
|
+
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."
|
|
351
19
|
})
|
|
352
20
|
]
|
|
353
21
|
}),
|
|
@@ -355,142 +23,12 @@ function KnowledgeOverviewPage() {
|
|
|
355
23
|
className: "space-y-4",
|
|
356
24
|
children: [
|
|
357
25
|
/* @__PURE__ */ jsx("h2", {
|
|
358
|
-
className: "text-2xl
|
|
359
|
-
children: "
|
|
360
|
-
}),
|
|
361
|
-
/* @__PURE__ */ jsx("p", {
|
|
362
|
-
className: "text-muted-foreground",
|
|
363
|
-
children: "Knowledge spaces are consumed by workflows through standard capabilities:"
|
|
26
|
+
className: "font-bold text-2xl",
|
|
27
|
+
children: "The four categories"
|
|
364
28
|
}),
|
|
365
29
|
/* @__PURE__ */ jsx("div", {
|
|
366
|
-
className: "
|
|
30
|
+
className: "overflow-x-auto rounded-lg border border-border bg-background/50 p-4 font-mono text-muted-foreground text-sm",
|
|
367
31
|
children: /* @__PURE__ */ jsx("pre", {
|
|
368
|
-
children: `import { defineWorkflow } from '@contractspec/lib.contracts-spec/workflow';
|
|
369
|
-
import { OpenAIEmbeddings, VectorSearch, OpenAIChat } from './specs';
|
|
370
|
-
|
|
371
|
-
export const AnswerSupportQuestion = defineWorkflow({
|
|
372
|
-
meta: {
|
|
373
|
-
key: 'support.answerQuestion',
|
|
374
|
-
version: '1.0.0',
|
|
375
|
-
description: 'Answer support questions using RAG',
|
|
376
|
-
owners: ['team-support'],
|
|
377
|
-
tags: ['ai', 'support'],
|
|
378
|
-
stability: 'stable',
|
|
379
|
-
},
|
|
380
|
-
steps: [
|
|
381
|
-
{
|
|
382
|
-
id: 'embed-question',
|
|
383
|
-
operation: OpenAIEmbeddings,
|
|
384
|
-
inputs: (ctx, input) => ({
|
|
385
|
-
text: input.question,
|
|
386
|
-
}),
|
|
387
|
-
},
|
|
388
|
-
{
|
|
389
|
-
id: 'search-knowledge',
|
|
390
|
-
operation: VectorSearch,
|
|
391
|
-
inputs: (ctx, input, steps) => ({
|
|
392
|
-
collection: 'product-canon', // KnowledgeSpace
|
|
393
|
-
vector: steps['embed-question'].output.embedding,
|
|
394
|
-
limit: 5,
|
|
395
|
-
}),
|
|
396
|
-
},
|
|
397
|
-
{
|
|
398
|
-
id: 'generate-answer',
|
|
399
|
-
operation: OpenAIChat,
|
|
400
|
-
inputs: (ctx, input, steps) => ({
|
|
401
|
-
messages: [
|
|
402
|
-
{ role: 'system', content: 'Answer using the provided context' },
|
|
403
|
-
{
|
|
404
|
-
role: 'user',
|
|
405
|
-
content: \`Context: \${steps['search-knowledge'].output.results}\\nQuestion: \${input.question}\`
|
|
406
|
-
},
|
|
407
|
-
],
|
|
408
|
-
}),
|
|
409
|
-
},
|
|
410
|
-
],
|
|
411
|
-
});`
|
|
412
|
-
})
|
|
413
|
-
})
|
|
414
|
-
]
|
|
415
|
-
}),
|
|
416
|
-
/* @__PURE__ */ jsxs("div", {
|
|
417
|
-
className: "space-y-4",
|
|
418
|
-
children: [
|
|
419
|
-
/* @__PURE__ */ jsx("h2", {
|
|
420
|
-
className: "text-2xl font-bold",
|
|
421
|
-
children: "Real-world examples"
|
|
422
|
-
}),
|
|
423
|
-
/* @__PURE__ */ jsx("p", {
|
|
424
|
-
className: "text-muted-foreground",
|
|
425
|
-
children: "See how different applications use knowledge spaces:"
|
|
426
|
-
}),
|
|
427
|
-
/* @__PURE__ */ jsxs(Link, {
|
|
428
|
-
href: "/docs/knowledge/examples",
|
|
429
|
-
className: "btn-primary inline-flex items-center gap-2",
|
|
430
|
-
children: [
|
|
431
|
-
"View Examples ",
|
|
432
|
-
/* @__PURE__ */ jsx(ChevronRight, {
|
|
433
|
-
size: 16
|
|
434
|
-
})
|
|
435
|
-
]
|
|
436
|
-
})
|
|
437
|
-
]
|
|
438
|
-
}),
|
|
439
|
-
/* @__PURE__ */ jsxs("div", {
|
|
440
|
-
className: "flex items-center gap-4 pt-4",
|
|
441
|
-
children: [
|
|
442
|
-
/* @__PURE__ */ jsxs(Link, {
|
|
443
|
-
href: "/docs/knowledge/categories",
|
|
444
|
-
className: "btn-primary",
|
|
445
|
-
children: [
|
|
446
|
-
"Knowledge Categories ",
|
|
447
|
-
/* @__PURE__ */ jsx(ChevronRight, {
|
|
448
|
-
size: 16
|
|
449
|
-
})
|
|
450
|
-
]
|
|
451
|
-
}),
|
|
452
|
-
/* @__PURE__ */ jsx(Link, {
|
|
453
|
-
href: "/docs/knowledge/spaces",
|
|
454
|
-
className: "btn-ghost",
|
|
455
|
-
children: "Knowledge Spaces"
|
|
456
|
-
})
|
|
457
|
-
]
|
|
458
|
-
})
|
|
459
|
-
]
|
|
460
|
-
});
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
// src/components/docs/knowledge/KnowledgeCategoriesPage.tsx
|
|
464
|
-
import Link2 from "@contractspec/lib.ui-link";
|
|
465
|
-
import { ChevronRight as ChevronRight2 } from "lucide-react";
|
|
466
|
-
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
467
|
-
function KnowledgeCategoriesPage() {
|
|
468
|
-
return /* @__PURE__ */ jsxs2("div", {
|
|
469
|
-
className: "space-y-8",
|
|
470
|
-
children: [
|
|
471
|
-
/* @__PURE__ */ jsxs2("div", {
|
|
472
|
-
className: "space-y-4",
|
|
473
|
-
children: [
|
|
474
|
-
/* @__PURE__ */ jsx2("h1", {
|
|
475
|
-
className: "text-4xl font-bold",
|
|
476
|
-
children: "Knowledge Categories"
|
|
477
|
-
}),
|
|
478
|
-
/* @__PURE__ */ jsx2("p", {
|
|
479
|
-
className: "text-muted-foreground",
|
|
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
|
-
})
|
|
482
|
-
]
|
|
483
|
-
}),
|
|
484
|
-
/* @__PURE__ */ jsxs2("div", {
|
|
485
|
-
className: "space-y-4",
|
|
486
|
-
children: [
|
|
487
|
-
/* @__PURE__ */ jsx2("h2", {
|
|
488
|
-
className: "text-2xl font-bold",
|
|
489
|
-
children: "The four categories"
|
|
490
|
-
}),
|
|
491
|
-
/* @__PURE__ */ jsx2("div", {
|
|
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__ */ jsx2("pre", {
|
|
494
32
|
children: `type KnowledgeCategory =
|
|
495
33
|
| "canonical" // Internal ground truth
|
|
496
34
|
| "operational" // Internal operational docs
|
|
@@ -500,92 +38,92 @@ function KnowledgeCategoriesPage() {
|
|
|
500
38
|
})
|
|
501
39
|
]
|
|
502
40
|
}),
|
|
503
|
-
/* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ jsxs("div", {
|
|
504
42
|
className: "space-y-6",
|
|
505
43
|
children: [
|
|
506
|
-
/* @__PURE__ */
|
|
44
|
+
/* @__PURE__ */ jsxs("div", {
|
|
507
45
|
className: "space-y-4",
|
|
508
46
|
children: [
|
|
509
|
-
/* @__PURE__ */
|
|
510
|
-
className: "text-xl
|
|
47
|
+
/* @__PURE__ */ jsx("h3", {
|
|
48
|
+
className: "font-semibold text-xl",
|
|
511
49
|
children: "1. Canonical"
|
|
512
50
|
}),
|
|
513
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ jsxs("p", {
|
|
514
52
|
className: "text-muted-foreground",
|
|
515
53
|
children: [
|
|
516
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ jsx("strong", {
|
|
517
55
|
children: "Trust level:"
|
|
518
56
|
}),
|
|
519
57
|
" Highest - Authoritative ground truth"
|
|
520
58
|
]
|
|
521
59
|
}),
|
|
522
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ jsxs("div", {
|
|
523
61
|
className: "space-y-3",
|
|
524
62
|
children: [
|
|
525
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ jsxs("div", {
|
|
526
64
|
children: [
|
|
527
|
-
/* @__PURE__ */
|
|
528
|
-
className: "mb-2 text-sm
|
|
65
|
+
/* @__PURE__ */ jsx("h4", {
|
|
66
|
+
className: "mb-2 font-semibold text-sm",
|
|
529
67
|
children: "What it contains:"
|
|
530
68
|
}),
|
|
531
|
-
/* @__PURE__ */
|
|
532
|
-
className: "
|
|
69
|
+
/* @__PURE__ */ jsxs("ul", {
|
|
70
|
+
className: "ml-4 list-inside list-disc space-y-1 text-muted-foreground text-sm",
|
|
533
71
|
children: [
|
|
534
|
-
/* @__PURE__ */
|
|
72
|
+
/* @__PURE__ */ jsx("li", {
|
|
535
73
|
children: "Official product specifications and schemas"
|
|
536
74
|
}),
|
|
537
|
-
/* @__PURE__ */
|
|
75
|
+
/* @__PURE__ */ jsx("li", {
|
|
538
76
|
children: "Company policies and procedures"
|
|
539
77
|
}),
|
|
540
|
-
/* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ jsx("li", {
|
|
541
79
|
children: "Legal terms and compliance requirements"
|
|
542
80
|
}),
|
|
543
|
-
/* @__PURE__ */
|
|
81
|
+
/* @__PURE__ */ jsx("li", {
|
|
544
82
|
children: "Pricing rules and business logic"
|
|
545
83
|
}),
|
|
546
|
-
/* @__PURE__ */
|
|
84
|
+
/* @__PURE__ */ jsx("li", {
|
|
547
85
|
children: "Data classification and security policies"
|
|
548
86
|
})
|
|
549
87
|
]
|
|
550
88
|
})
|
|
551
89
|
]
|
|
552
90
|
}),
|
|
553
|
-
/* @__PURE__ */
|
|
91
|
+
/* @__PURE__ */ jsxs("div", {
|
|
554
92
|
children: [
|
|
555
|
-
/* @__PURE__ */
|
|
556
|
-
className: "mb-2 text-sm
|
|
93
|
+
/* @__PURE__ */ jsx("h4", {
|
|
94
|
+
className: "mb-2 font-semibold text-sm",
|
|
557
95
|
children: "How it's used:"
|
|
558
96
|
}),
|
|
559
|
-
/* @__PURE__ */
|
|
560
|
-
className: "
|
|
97
|
+
/* @__PURE__ */ jsxs("ul", {
|
|
98
|
+
className: "ml-4 list-inside list-disc space-y-1 text-muted-foreground text-sm",
|
|
561
99
|
children: [
|
|
562
|
-
/* @__PURE__ */
|
|
100
|
+
/* @__PURE__ */ jsxs("li", {
|
|
563
101
|
children: [
|
|
564
|
-
/* @__PURE__ */
|
|
102
|
+
/* @__PURE__ */ jsx("strong", {
|
|
565
103
|
children: "Policy decisions"
|
|
566
104
|
}),
|
|
567
105
|
" - Can drive PDP decisions"
|
|
568
106
|
]
|
|
569
107
|
}),
|
|
570
|
-
/* @__PURE__ */
|
|
108
|
+
/* @__PURE__ */ jsxs("li", {
|
|
571
109
|
children: [
|
|
572
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ jsx("strong", {
|
|
573
111
|
children: "Validation"
|
|
574
112
|
}),
|
|
575
113
|
" - Used to validate user inputs and operations"
|
|
576
114
|
]
|
|
577
115
|
}),
|
|
578
|
-
/* @__PURE__ */
|
|
116
|
+
/* @__PURE__ */ jsxs("li", {
|
|
579
117
|
children: [
|
|
580
|
-
/* @__PURE__ */
|
|
118
|
+
/* @__PURE__ */ jsx("strong", {
|
|
581
119
|
children: "Code generation"
|
|
582
120
|
}),
|
|
583
121
|
" - Source of truth for generated code"
|
|
584
122
|
]
|
|
585
123
|
}),
|
|
586
|
-
/* @__PURE__ */
|
|
124
|
+
/* @__PURE__ */ jsxs("li", {
|
|
587
125
|
children: [
|
|
588
|
-
/* @__PURE__ */
|
|
126
|
+
/* @__PURE__ */ jsx("strong", {
|
|
589
127
|
children: "Compliance"
|
|
590
128
|
}),
|
|
591
129
|
" - Reference for audit and regulatory checks"
|
|
@@ -595,15 +133,15 @@ function KnowledgeCategoriesPage() {
|
|
|
595
133
|
})
|
|
596
134
|
]
|
|
597
135
|
}),
|
|
598
|
-
/* @__PURE__ */
|
|
136
|
+
/* @__PURE__ */ jsxs("div", {
|
|
599
137
|
children: [
|
|
600
|
-
/* @__PURE__ */
|
|
601
|
-
className: "mb-2 text-sm
|
|
138
|
+
/* @__PURE__ */ jsx("h4", {
|
|
139
|
+
className: "mb-2 font-semibold text-sm",
|
|
602
140
|
children: "Examples:"
|
|
603
141
|
}),
|
|
604
|
-
/* @__PURE__ */
|
|
605
|
-
className: "
|
|
606
|
-
children: /* @__PURE__ */
|
|
142
|
+
/* @__PURE__ */ jsx("div", {
|
|
143
|
+
className: "overflow-x-auto rounded border border-border bg-background/50 p-3 font-mono text-muted-foreground text-xs",
|
|
144
|
+
children: /* @__PURE__ */ jsx("pre", {
|
|
607
145
|
children: `// Product Canon space
|
|
608
146
|
{
|
|
609
147
|
id: "product-canon",
|
|
@@ -629,12 +167,12 @@ function KnowledgeCategoriesPage() {
|
|
|
629
167
|
})
|
|
630
168
|
]
|
|
631
169
|
}),
|
|
632
|
-
/* @__PURE__ */
|
|
170
|
+
/* @__PURE__ */ jsx("div", {
|
|
633
171
|
className: "card-subtle border-violet-500/30 bg-violet-500/10 p-3",
|
|
634
|
-
children: /* @__PURE__ */
|
|
172
|
+
children: /* @__PURE__ */ jsxs("p", {
|
|
635
173
|
className: "text-sm text-violet-300",
|
|
636
174
|
children: [
|
|
637
|
-
/* @__PURE__ */
|
|
175
|
+
/* @__PURE__ */ jsx("strong", {
|
|
638
176
|
children: "⚠️ Important:"
|
|
639
177
|
}),
|
|
640
178
|
" Canonical knowledge is immutable once indexed. Changes require re-sync and versioning."
|
|
@@ -645,89 +183,89 @@ function KnowledgeCategoriesPage() {
|
|
|
645
183
|
})
|
|
646
184
|
]
|
|
647
185
|
}),
|
|
648
|
-
/* @__PURE__ */
|
|
186
|
+
/* @__PURE__ */ jsxs("div", {
|
|
649
187
|
className: "space-y-4",
|
|
650
188
|
children: [
|
|
651
|
-
/* @__PURE__ */
|
|
652
|
-
className: "text-xl
|
|
189
|
+
/* @__PURE__ */ jsx("h3", {
|
|
190
|
+
className: "font-semibold text-xl",
|
|
653
191
|
children: "2. Operational"
|
|
654
192
|
}),
|
|
655
|
-
/* @__PURE__ */
|
|
193
|
+
/* @__PURE__ */ jsxs("p", {
|
|
656
194
|
className: "text-muted-foreground",
|
|
657
195
|
children: [
|
|
658
|
-
/* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ jsx("strong", {
|
|
659
197
|
children: "Trust level:"
|
|
660
198
|
}),
|
|
661
199
|
" High - Internal but not authoritative"
|
|
662
200
|
]
|
|
663
201
|
}),
|
|
664
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ jsxs("div", {
|
|
665
203
|
className: "space-y-3",
|
|
666
204
|
children: [
|
|
667
|
-
/* @__PURE__ */
|
|
205
|
+
/* @__PURE__ */ jsxs("div", {
|
|
668
206
|
children: [
|
|
669
|
-
/* @__PURE__ */
|
|
670
|
-
className: "mb-2 text-sm
|
|
207
|
+
/* @__PURE__ */ jsx("h4", {
|
|
208
|
+
className: "mb-2 font-semibold text-sm",
|
|
671
209
|
children: "What it contains:"
|
|
672
210
|
}),
|
|
673
|
-
/* @__PURE__ */
|
|
674
|
-
className: "
|
|
211
|
+
/* @__PURE__ */ jsxs("ul", {
|
|
212
|
+
className: "ml-4 list-inside list-disc space-y-1 text-muted-foreground text-sm",
|
|
675
213
|
children: [
|
|
676
|
-
/* @__PURE__ */
|
|
214
|
+
/* @__PURE__ */ jsx("li", {
|
|
677
215
|
children: "Support ticket history and resolutions"
|
|
678
216
|
}),
|
|
679
|
-
/* @__PURE__ */
|
|
217
|
+
/* @__PURE__ */ jsx("li", {
|
|
680
218
|
children: "Internal runbooks and playbooks"
|
|
681
219
|
}),
|
|
682
|
-
/* @__PURE__ */
|
|
220
|
+
/* @__PURE__ */ jsx("li", {
|
|
683
221
|
children: "Sales materials and customer communications"
|
|
684
222
|
}),
|
|
685
|
-
/* @__PURE__ */
|
|
223
|
+
/* @__PURE__ */ jsx("li", {
|
|
686
224
|
children: "Product management docs and roadmaps"
|
|
687
225
|
}),
|
|
688
|
-
/* @__PURE__ */
|
|
226
|
+
/* @__PURE__ */ jsx("li", {
|
|
689
227
|
children: "Team wikis and knowledge bases"
|
|
690
228
|
})
|
|
691
229
|
]
|
|
692
230
|
})
|
|
693
231
|
]
|
|
694
232
|
}),
|
|
695
|
-
/* @__PURE__ */
|
|
233
|
+
/* @__PURE__ */ jsxs("div", {
|
|
696
234
|
children: [
|
|
697
|
-
/* @__PURE__ */
|
|
698
|
-
className: "mb-2 text-sm
|
|
235
|
+
/* @__PURE__ */ jsx("h4", {
|
|
236
|
+
className: "mb-2 font-semibold text-sm",
|
|
699
237
|
children: "How it's used:"
|
|
700
238
|
}),
|
|
701
|
-
/* @__PURE__ */
|
|
702
|
-
className: "
|
|
239
|
+
/* @__PURE__ */ jsxs("ul", {
|
|
240
|
+
className: "ml-4 list-inside list-disc space-y-1 text-muted-foreground text-sm",
|
|
703
241
|
children: [
|
|
704
|
-
/* @__PURE__ */
|
|
242
|
+
/* @__PURE__ */ jsxs("li", {
|
|
705
243
|
children: [
|
|
706
|
-
/* @__PURE__ */
|
|
244
|
+
/* @__PURE__ */ jsx("strong", {
|
|
707
245
|
children: "Context"
|
|
708
246
|
}),
|
|
709
247
|
" - Provides helpful context for decisions"
|
|
710
248
|
]
|
|
711
249
|
}),
|
|
712
|
-
/* @__PURE__ */
|
|
250
|
+
/* @__PURE__ */ jsxs("li", {
|
|
713
251
|
children: [
|
|
714
|
-
/* @__PURE__ */
|
|
252
|
+
/* @__PURE__ */ jsx("strong", {
|
|
715
253
|
children: "Suggestions"
|
|
716
254
|
}),
|
|
717
255
|
" - Informs recommendations, not requirements"
|
|
718
256
|
]
|
|
719
257
|
}),
|
|
720
|
-
/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ jsxs("li", {
|
|
721
259
|
children: [
|
|
722
|
-
/* @__PURE__ */
|
|
260
|
+
/* @__PURE__ */ jsx("strong", {
|
|
723
261
|
children: "Learning"
|
|
724
262
|
}),
|
|
725
263
|
" - Helps agents learn from past interactions"
|
|
726
264
|
]
|
|
727
265
|
}),
|
|
728
|
-
/* @__PURE__ */
|
|
266
|
+
/* @__PURE__ */ jsxs("li", {
|
|
729
267
|
children: [
|
|
730
|
-
/* @__PURE__ */
|
|
268
|
+
/* @__PURE__ */ jsx("strong", {
|
|
731
269
|
children: "Troubleshooting"
|
|
732
270
|
}),
|
|
733
271
|
" - Guides problem-solving workflows"
|
|
@@ -737,15 +275,15 @@ function KnowledgeCategoriesPage() {
|
|
|
737
275
|
})
|
|
738
276
|
]
|
|
739
277
|
}),
|
|
740
|
-
/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ jsxs("div", {
|
|
741
279
|
children: [
|
|
742
|
-
/* @__PURE__ */
|
|
743
|
-
className: "mb-2 text-sm
|
|
280
|
+
/* @__PURE__ */ jsx("h4", {
|
|
281
|
+
className: "mb-2 font-semibold text-sm",
|
|
744
282
|
children: "Examples:"
|
|
745
283
|
}),
|
|
746
|
-
/* @__PURE__ */
|
|
747
|
-
className: "
|
|
748
|
-
children: /* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ jsx("div", {
|
|
285
|
+
className: "overflow-x-auto rounded border border-border bg-background/50 p-3 font-mono text-muted-foreground text-xs",
|
|
286
|
+
children: /* @__PURE__ */ jsx("pre", {
|
|
749
287
|
children: `// Support History space
|
|
750
288
|
{
|
|
751
289
|
id: "support-history",
|
|
@@ -775,89 +313,89 @@ function KnowledgeCategoriesPage() {
|
|
|
775
313
|
})
|
|
776
314
|
]
|
|
777
315
|
}),
|
|
778
|
-
/* @__PURE__ */
|
|
316
|
+
/* @__PURE__ */ jsxs("div", {
|
|
779
317
|
className: "space-y-4",
|
|
780
318
|
children: [
|
|
781
|
-
/* @__PURE__ */
|
|
782
|
-
className: "text-xl
|
|
319
|
+
/* @__PURE__ */ jsx("h3", {
|
|
320
|
+
className: "font-semibold text-xl",
|
|
783
321
|
children: "3. External"
|
|
784
322
|
}),
|
|
785
|
-
/* @__PURE__ */
|
|
323
|
+
/* @__PURE__ */ jsxs("p", {
|
|
786
324
|
className: "text-muted-foreground",
|
|
787
325
|
children: [
|
|
788
|
-
/* @__PURE__ */
|
|
326
|
+
/* @__PURE__ */ jsx("strong", {
|
|
789
327
|
children: "Trust level:"
|
|
790
328
|
}),
|
|
791
329
|
" Medium - Reference only"
|
|
792
330
|
]
|
|
793
331
|
}),
|
|
794
|
-
/* @__PURE__ */
|
|
332
|
+
/* @__PURE__ */ jsxs("div", {
|
|
795
333
|
className: "space-y-3",
|
|
796
334
|
children: [
|
|
797
|
-
/* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ jsxs("div", {
|
|
798
336
|
children: [
|
|
799
|
-
/* @__PURE__ */
|
|
800
|
-
className: "mb-2 text-sm
|
|
337
|
+
/* @__PURE__ */ jsx("h4", {
|
|
338
|
+
className: "mb-2 font-semibold text-sm",
|
|
801
339
|
children: "What it contains:"
|
|
802
340
|
}),
|
|
803
|
-
/* @__PURE__ */
|
|
804
|
-
className: "
|
|
341
|
+
/* @__PURE__ */ jsxs("ul", {
|
|
342
|
+
className: "ml-4 list-inside list-disc space-y-1 text-muted-foreground text-sm",
|
|
805
343
|
children: [
|
|
806
|
-
/* @__PURE__ */
|
|
344
|
+
/* @__PURE__ */ jsx("li", {
|
|
807
345
|
children: "Third-party integration documentation (Stripe, Twilio)"
|
|
808
346
|
}),
|
|
809
|
-
/* @__PURE__ */
|
|
347
|
+
/* @__PURE__ */ jsx("li", {
|
|
810
348
|
children: "Regulatory and compliance documents"
|
|
811
349
|
}),
|
|
812
|
-
/* @__PURE__ */
|
|
350
|
+
/* @__PURE__ */ jsx("li", {
|
|
813
351
|
children: "Industry standards and best practices"
|
|
814
352
|
}),
|
|
815
|
-
/* @__PURE__ */
|
|
353
|
+
/* @__PURE__ */ jsx("li", {
|
|
816
354
|
children: "Public API documentation"
|
|
817
355
|
}),
|
|
818
|
-
/* @__PURE__ */
|
|
356
|
+
/* @__PURE__ */ jsx("li", {
|
|
819
357
|
children: "External knowledge bases"
|
|
820
358
|
})
|
|
821
359
|
]
|
|
822
360
|
})
|
|
823
361
|
]
|
|
824
362
|
}),
|
|
825
|
-
/* @__PURE__ */
|
|
363
|
+
/* @__PURE__ */ jsxs("div", {
|
|
826
364
|
children: [
|
|
827
|
-
/* @__PURE__ */
|
|
828
|
-
className: "mb-2 text-sm
|
|
365
|
+
/* @__PURE__ */ jsx("h4", {
|
|
366
|
+
className: "mb-2 font-semibold text-sm",
|
|
829
367
|
children: "How it's used:"
|
|
830
368
|
}),
|
|
831
|
-
/* @__PURE__ */
|
|
832
|
-
className: "
|
|
369
|
+
/* @__PURE__ */ jsxs("ul", {
|
|
370
|
+
className: "ml-4 list-inside list-disc space-y-1 text-muted-foreground text-sm",
|
|
833
371
|
children: [
|
|
834
|
-
/* @__PURE__ */
|
|
372
|
+
/* @__PURE__ */ jsxs("li", {
|
|
835
373
|
children: [
|
|
836
|
-
/* @__PURE__ */
|
|
374
|
+
/* @__PURE__ */ jsx("strong", {
|
|
837
375
|
children: "Reference"
|
|
838
376
|
}),
|
|
839
377
|
" - Consulted but not authoritative"
|
|
840
378
|
]
|
|
841
379
|
}),
|
|
842
|
-
/* @__PURE__ */
|
|
380
|
+
/* @__PURE__ */ jsxs("li", {
|
|
843
381
|
children: [
|
|
844
|
-
/* @__PURE__ */
|
|
382
|
+
/* @__PURE__ */ jsx("strong", {
|
|
845
383
|
children: "Integration help"
|
|
846
384
|
}),
|
|
847
385
|
" - Guides external API usage"
|
|
848
386
|
]
|
|
849
387
|
}),
|
|
850
|
-
/* @__PURE__ */
|
|
388
|
+
/* @__PURE__ */ jsxs("li", {
|
|
851
389
|
children: [
|
|
852
|
-
/* @__PURE__ */
|
|
390
|
+
/* @__PURE__ */ jsx("strong", {
|
|
853
391
|
children: "Compliance context"
|
|
854
392
|
}),
|
|
855
393
|
" - Provides regulatory background"
|
|
856
394
|
]
|
|
857
395
|
}),
|
|
858
|
-
/* @__PURE__ */
|
|
396
|
+
/* @__PURE__ */ jsxs("li", {
|
|
859
397
|
children: [
|
|
860
|
-
/* @__PURE__ */
|
|
398
|
+
/* @__PURE__ */ jsx("strong", {
|
|
861
399
|
children: "Never for policy"
|
|
862
400
|
}),
|
|
863
401
|
" - Cannot drive policy decisions"
|
|
@@ -867,15 +405,15 @@ function KnowledgeCategoriesPage() {
|
|
|
867
405
|
})
|
|
868
406
|
]
|
|
869
407
|
}),
|
|
870
|
-
/* @__PURE__ */
|
|
408
|
+
/* @__PURE__ */ jsxs("div", {
|
|
871
409
|
children: [
|
|
872
|
-
/* @__PURE__ */
|
|
873
|
-
className: "mb-2 text-sm
|
|
410
|
+
/* @__PURE__ */ jsx("h4", {
|
|
411
|
+
className: "mb-2 font-semibold text-sm",
|
|
874
412
|
children: "Examples:"
|
|
875
413
|
}),
|
|
876
|
-
/* @__PURE__ */
|
|
877
|
-
className: "
|
|
878
|
-
children: /* @__PURE__ */
|
|
414
|
+
/* @__PURE__ */ jsx("div", {
|
|
415
|
+
className: "overflow-x-auto rounded border border-border bg-background/50 p-3 font-mono text-muted-foreground text-xs",
|
|
416
|
+
children: /* @__PURE__ */ jsx("pre", {
|
|
879
417
|
children: `// External Provider Docs space
|
|
880
418
|
{
|
|
881
419
|
id: "provider-docs",
|
|
@@ -901,12 +439,12 @@ function KnowledgeCategoriesPage() {
|
|
|
901
439
|
})
|
|
902
440
|
]
|
|
903
441
|
}),
|
|
904
|
-
/* @__PURE__ */
|
|
442
|
+
/* @__PURE__ */ jsx("div", {
|
|
905
443
|
className: "card-subtle border-amber-500/30 bg-amber-500/10 p-3",
|
|
906
|
-
children: /* @__PURE__ */
|
|
907
|
-
className: "text-
|
|
444
|
+
children: /* @__PURE__ */ jsxs("p", {
|
|
445
|
+
className: "text-amber-300 text-sm",
|
|
908
446
|
children: [
|
|
909
|
-
/* @__PURE__ */
|
|
447
|
+
/* @__PURE__ */ jsx("strong", {
|
|
910
448
|
children: "⚠️ Note:"
|
|
911
449
|
}),
|
|
912
450
|
` External knowledge should be clearly marked in agent responses as "according to [source]" to indicate it's not internal authority.`
|
|
@@ -917,89 +455,89 @@ function KnowledgeCategoriesPage() {
|
|
|
917
455
|
})
|
|
918
456
|
]
|
|
919
457
|
}),
|
|
920
|
-
/* @__PURE__ */
|
|
458
|
+
/* @__PURE__ */ jsxs("div", {
|
|
921
459
|
className: "space-y-4",
|
|
922
460
|
children: [
|
|
923
|
-
/* @__PURE__ */
|
|
924
|
-
className: "text-xl
|
|
461
|
+
/* @__PURE__ */ jsx("h3", {
|
|
462
|
+
className: "font-semibold text-xl",
|
|
925
463
|
children: "4. Ephemeral"
|
|
926
464
|
}),
|
|
927
|
-
/* @__PURE__ */
|
|
465
|
+
/* @__PURE__ */ jsxs("p", {
|
|
928
466
|
className: "text-muted-foreground",
|
|
929
467
|
children: [
|
|
930
|
-
/* @__PURE__ */
|
|
468
|
+
/* @__PURE__ */ jsx("strong", {
|
|
931
469
|
children: "Trust level:"
|
|
932
470
|
}),
|
|
933
471
|
" Low - Temporary context only"
|
|
934
472
|
]
|
|
935
473
|
}),
|
|
936
|
-
/* @__PURE__ */
|
|
474
|
+
/* @__PURE__ */ jsxs("div", {
|
|
937
475
|
className: "space-y-3",
|
|
938
476
|
children: [
|
|
939
|
-
/* @__PURE__ */
|
|
477
|
+
/* @__PURE__ */ jsxs("div", {
|
|
940
478
|
children: [
|
|
941
|
-
/* @__PURE__ */
|
|
942
|
-
className: "mb-2 text-sm
|
|
479
|
+
/* @__PURE__ */ jsx("h4", {
|
|
480
|
+
className: "mb-2 font-semibold text-sm",
|
|
943
481
|
children: "What it contains:"
|
|
944
482
|
}),
|
|
945
|
-
/* @__PURE__ */
|
|
946
|
-
className: "
|
|
483
|
+
/* @__PURE__ */ jsxs("ul", {
|
|
484
|
+
className: "ml-4 list-inside list-disc space-y-1 text-muted-foreground text-sm",
|
|
947
485
|
children: [
|
|
948
|
-
/* @__PURE__ */
|
|
486
|
+
/* @__PURE__ */ jsx("li", {
|
|
949
487
|
children: "Agent conversation history and scratchpads"
|
|
950
488
|
}),
|
|
951
|
-
/* @__PURE__ */
|
|
489
|
+
/* @__PURE__ */ jsx("li", {
|
|
952
490
|
children: "Session-specific context and state"
|
|
953
491
|
}),
|
|
954
|
-
/* @__PURE__ */
|
|
492
|
+
/* @__PURE__ */ jsx("li", {
|
|
955
493
|
children: "Draft documents and work-in-progress"
|
|
956
494
|
}),
|
|
957
|
-
/* @__PURE__ */
|
|
495
|
+
/* @__PURE__ */ jsx("li", {
|
|
958
496
|
children: "Temporary calculations and intermediate results"
|
|
959
497
|
}),
|
|
960
|
-
/* @__PURE__ */
|
|
498
|
+
/* @__PURE__ */ jsx("li", {
|
|
961
499
|
children: "User-provided context for current task"
|
|
962
500
|
})
|
|
963
501
|
]
|
|
964
502
|
})
|
|
965
503
|
]
|
|
966
504
|
}),
|
|
967
|
-
/* @__PURE__ */
|
|
505
|
+
/* @__PURE__ */ jsxs("div", {
|
|
968
506
|
children: [
|
|
969
|
-
/* @__PURE__ */
|
|
970
|
-
className: "mb-2 text-sm
|
|
507
|
+
/* @__PURE__ */ jsx("h4", {
|
|
508
|
+
className: "mb-2 font-semibold text-sm",
|
|
971
509
|
children: "How it's used:"
|
|
972
510
|
}),
|
|
973
|
-
/* @__PURE__ */
|
|
974
|
-
className: "
|
|
511
|
+
/* @__PURE__ */ jsxs("ul", {
|
|
512
|
+
className: "ml-4 list-inside list-disc space-y-1 text-muted-foreground text-sm",
|
|
975
513
|
children: [
|
|
976
|
-
/* @__PURE__ */
|
|
514
|
+
/* @__PURE__ */ jsxs("li", {
|
|
977
515
|
children: [
|
|
978
|
-
/* @__PURE__ */
|
|
516
|
+
/* @__PURE__ */ jsx("strong", {
|
|
979
517
|
children: "Session continuity"
|
|
980
518
|
}),
|
|
981
519
|
" - Maintains conversation context"
|
|
982
520
|
]
|
|
983
521
|
}),
|
|
984
|
-
/* @__PURE__ */
|
|
522
|
+
/* @__PURE__ */ jsxs("li", {
|
|
985
523
|
children: [
|
|
986
|
-
/* @__PURE__ */
|
|
524
|
+
/* @__PURE__ */ jsx("strong", {
|
|
987
525
|
children: "Working memory"
|
|
988
526
|
}),
|
|
989
527
|
" - Stores intermediate results"
|
|
990
528
|
]
|
|
991
529
|
}),
|
|
992
|
-
/* @__PURE__ */
|
|
530
|
+
/* @__PURE__ */ jsxs("li", {
|
|
993
531
|
children: [
|
|
994
|
-
/* @__PURE__ */
|
|
532
|
+
/* @__PURE__ */ jsx("strong", {
|
|
995
533
|
children: "Never persisted long-term"
|
|
996
534
|
}),
|
|
997
535
|
" - Auto-purged after session"
|
|
998
536
|
]
|
|
999
537
|
}),
|
|
1000
|
-
/* @__PURE__ */
|
|
538
|
+
/* @__PURE__ */ jsxs("li", {
|
|
1001
539
|
children: [
|
|
1002
|
-
/* @__PURE__ */
|
|
540
|
+
/* @__PURE__ */ jsx("strong", {
|
|
1003
541
|
children: "Never for decisions"
|
|
1004
542
|
}),
|
|
1005
543
|
" - Cannot influence policy or validation"
|
|
@@ -1009,15 +547,15 @@ function KnowledgeCategoriesPage() {
|
|
|
1009
547
|
})
|
|
1010
548
|
]
|
|
1011
549
|
}),
|
|
1012
|
-
/* @__PURE__ */
|
|
550
|
+
/* @__PURE__ */ jsxs("div", {
|
|
1013
551
|
children: [
|
|
1014
|
-
/* @__PURE__ */
|
|
1015
|
-
className: "mb-2 text-sm
|
|
552
|
+
/* @__PURE__ */ jsx("h4", {
|
|
553
|
+
className: "mb-2 font-semibold text-sm",
|
|
1016
554
|
children: "Examples:"
|
|
1017
555
|
}),
|
|
1018
|
-
/* @__PURE__ */
|
|
1019
|
-
className: "
|
|
1020
|
-
children: /* @__PURE__ */
|
|
556
|
+
/* @__PURE__ */ jsx("div", {
|
|
557
|
+
className: "overflow-x-auto rounded border border-border bg-background/50 p-3 font-mono text-muted-foreground text-xs",
|
|
558
|
+
children: /* @__PURE__ */ jsx("pre", {
|
|
1021
559
|
children: `// Agent Scratchpad space
|
|
1022
560
|
{
|
|
1023
561
|
id: "agent-scratchpad",
|
|
@@ -1043,12 +581,12 @@ function KnowledgeCategoriesPage() {
|
|
|
1043
581
|
})
|
|
1044
582
|
]
|
|
1045
583
|
}),
|
|
1046
|
-
/* @__PURE__ */
|
|
584
|
+
/* @__PURE__ */ jsx("div", {
|
|
1047
585
|
className: "card-subtle border-red-500/30 bg-red-500/10 p-3",
|
|
1048
|
-
children: /* @__PURE__ */
|
|
1049
|
-
className: "text-
|
|
586
|
+
children: /* @__PURE__ */ jsxs("p", {
|
|
587
|
+
className: "text-red-300 text-sm",
|
|
1050
588
|
children: [
|
|
1051
|
-
/* @__PURE__ */
|
|
589
|
+
/* @__PURE__ */ jsx("strong", {
|
|
1052
590
|
children: "⚠️ Critical:"
|
|
1053
591
|
}),
|
|
1054
592
|
" Ephemeral knowledge is never used for policy decisions, compliance checks, or any authoritative purpose."
|
|
@@ -1061,164 +599,164 @@ function KnowledgeCategoriesPage() {
|
|
|
1061
599
|
})
|
|
1062
600
|
]
|
|
1063
601
|
}),
|
|
1064
|
-
/* @__PURE__ */
|
|
602
|
+
/* @__PURE__ */ jsxs("div", {
|
|
1065
603
|
className: "space-y-4",
|
|
1066
604
|
children: [
|
|
1067
|
-
/* @__PURE__ */
|
|
1068
|
-
className: "text-2xl
|
|
605
|
+
/* @__PURE__ */ jsx("h2", {
|
|
606
|
+
className: "font-bold text-2xl",
|
|
1069
607
|
children: "Category comparison"
|
|
1070
608
|
}),
|
|
1071
|
-
/* @__PURE__ */
|
|
1072
|
-
className: "
|
|
1073
|
-
children: /* @__PURE__ */
|
|
609
|
+
/* @__PURE__ */ jsx("div", {
|
|
610
|
+
className: "overflow-x-auto rounded-lg border border-border/50",
|
|
611
|
+
children: /* @__PURE__ */ jsxs("table", {
|
|
1074
612
|
className: "w-full text-left text-sm",
|
|
1075
613
|
children: [
|
|
1076
|
-
/* @__PURE__ */
|
|
614
|
+
/* @__PURE__ */ jsx("thead", {
|
|
1077
615
|
className: "bg-card/50",
|
|
1078
|
-
children: /* @__PURE__ */
|
|
616
|
+
children: /* @__PURE__ */ jsxs("tr", {
|
|
1079
617
|
className: "border-border/50 border-b",
|
|
1080
618
|
children: [
|
|
1081
|
-
/* @__PURE__ */
|
|
619
|
+
/* @__PURE__ */ jsx("th", {
|
|
1082
620
|
className: "px-4 py-3 font-semibold",
|
|
1083
621
|
children: "Feature"
|
|
1084
622
|
}),
|
|
1085
|
-
/* @__PURE__ */
|
|
623
|
+
/* @__PURE__ */ jsx("th", {
|
|
1086
624
|
className: "px-4 py-3 font-semibold",
|
|
1087
625
|
children: "Canonical"
|
|
1088
626
|
}),
|
|
1089
|
-
/* @__PURE__ */
|
|
627
|
+
/* @__PURE__ */ jsx("th", {
|
|
1090
628
|
className: "px-4 py-3 font-semibold",
|
|
1091
629
|
children: "Operational"
|
|
1092
630
|
}),
|
|
1093
|
-
/* @__PURE__ */
|
|
631
|
+
/* @__PURE__ */ jsx("th", {
|
|
1094
632
|
className: "px-4 py-3 font-semibold",
|
|
1095
633
|
children: "External"
|
|
1096
634
|
}),
|
|
1097
|
-
/* @__PURE__ */
|
|
635
|
+
/* @__PURE__ */ jsx("th", {
|
|
1098
636
|
className: "px-4 py-3 font-semibold",
|
|
1099
637
|
children: "Ephemeral"
|
|
1100
638
|
})
|
|
1101
639
|
]
|
|
1102
640
|
})
|
|
1103
641
|
}),
|
|
1104
|
-
/* @__PURE__ */
|
|
1105
|
-
className: "divide-border/50
|
|
642
|
+
/* @__PURE__ */ jsxs("tbody", {
|
|
643
|
+
className: "divide-y divide-border/50",
|
|
1106
644
|
children: [
|
|
1107
|
-
/* @__PURE__ */
|
|
645
|
+
/* @__PURE__ */ jsxs("tr", {
|
|
1108
646
|
children: [
|
|
1109
|
-
/* @__PURE__ */
|
|
647
|
+
/* @__PURE__ */ jsx("td", {
|
|
1110
648
|
className: "px-4 py-3 font-semibold",
|
|
1111
649
|
children: "Trust Level"
|
|
1112
650
|
}),
|
|
1113
|
-
/* @__PURE__ */
|
|
651
|
+
/* @__PURE__ */ jsx("td", {
|
|
1114
652
|
className: "px-4 py-3",
|
|
1115
653
|
children: "Highest"
|
|
1116
654
|
}),
|
|
1117
|
-
/* @__PURE__ */
|
|
655
|
+
/* @__PURE__ */ jsx("td", {
|
|
1118
656
|
className: "px-4 py-3",
|
|
1119
657
|
children: "High"
|
|
1120
658
|
}),
|
|
1121
|
-
/* @__PURE__ */
|
|
659
|
+
/* @__PURE__ */ jsx("td", {
|
|
1122
660
|
className: "px-4 py-3",
|
|
1123
661
|
children: "Medium"
|
|
1124
662
|
}),
|
|
1125
|
-
/* @__PURE__ */
|
|
663
|
+
/* @__PURE__ */ jsx("td", {
|
|
1126
664
|
className: "px-4 py-3",
|
|
1127
665
|
children: "Low"
|
|
1128
666
|
})
|
|
1129
667
|
]
|
|
1130
668
|
}),
|
|
1131
|
-
/* @__PURE__ */
|
|
669
|
+
/* @__PURE__ */ jsxs("tr", {
|
|
1132
670
|
children: [
|
|
1133
|
-
/* @__PURE__ */
|
|
671
|
+
/* @__PURE__ */ jsx("td", {
|
|
1134
672
|
className: "px-4 py-3 font-semibold",
|
|
1135
673
|
children: "Policy Impact"
|
|
1136
674
|
}),
|
|
1137
|
-
/* @__PURE__ */
|
|
675
|
+
/* @__PURE__ */ jsx("td", {
|
|
1138
676
|
className: "px-4 py-3",
|
|
1139
677
|
children: "✅ Can drive decisions"
|
|
1140
678
|
}),
|
|
1141
|
-
/* @__PURE__ */
|
|
679
|
+
/* @__PURE__ */ jsx("td", {
|
|
1142
680
|
className: "px-4 py-3",
|
|
1143
681
|
children: "⚠️ Can inform"
|
|
1144
682
|
}),
|
|
1145
|
-
/* @__PURE__ */
|
|
683
|
+
/* @__PURE__ */ jsx("td", {
|
|
1146
684
|
className: "px-4 py-3",
|
|
1147
685
|
children: "❌ Reference only"
|
|
1148
686
|
}),
|
|
1149
|
-
/* @__PURE__ */
|
|
687
|
+
/* @__PURE__ */ jsx("td", {
|
|
1150
688
|
className: "px-4 py-3",
|
|
1151
689
|
children: "❌ Never used"
|
|
1152
690
|
})
|
|
1153
691
|
]
|
|
1154
692
|
}),
|
|
1155
|
-
/* @__PURE__ */
|
|
693
|
+
/* @__PURE__ */ jsxs("tr", {
|
|
1156
694
|
children: [
|
|
1157
|
-
/* @__PURE__ */
|
|
695
|
+
/* @__PURE__ */ jsx("td", {
|
|
1158
696
|
className: "px-4 py-3 font-semibold",
|
|
1159
697
|
children: "Mutability"
|
|
1160
698
|
}),
|
|
1161
|
-
/* @__PURE__ */
|
|
699
|
+
/* @__PURE__ */ jsx("td", {
|
|
1162
700
|
className: "px-4 py-3",
|
|
1163
701
|
children: "Immutable"
|
|
1164
702
|
}),
|
|
1165
|
-
/* @__PURE__ */
|
|
703
|
+
/* @__PURE__ */ jsx("td", {
|
|
1166
704
|
className: "px-4 py-3",
|
|
1167
705
|
children: "Mutable"
|
|
1168
706
|
}),
|
|
1169
|
-
/* @__PURE__ */
|
|
707
|
+
/* @__PURE__ */ jsx("td", {
|
|
1170
708
|
className: "px-4 py-3",
|
|
1171
709
|
children: "Mutable"
|
|
1172
710
|
}),
|
|
1173
|
-
/* @__PURE__ */
|
|
711
|
+
/* @__PURE__ */ jsx("td", {
|
|
1174
712
|
className: "px-4 py-3",
|
|
1175
713
|
children: "Temporary"
|
|
1176
714
|
})
|
|
1177
715
|
]
|
|
1178
716
|
}),
|
|
1179
|
-
/* @__PURE__ */
|
|
717
|
+
/* @__PURE__ */ jsxs("tr", {
|
|
1180
718
|
children: [
|
|
1181
|
-
/* @__PURE__ */
|
|
719
|
+
/* @__PURE__ */ jsx("td", {
|
|
1182
720
|
className: "px-4 py-3 font-semibold",
|
|
1183
721
|
children: "Retention"
|
|
1184
722
|
}),
|
|
1185
|
-
/* @__PURE__ */
|
|
723
|
+
/* @__PURE__ */ jsx("td", {
|
|
1186
724
|
className: "px-4 py-3",
|
|
1187
725
|
children: "Permanent"
|
|
1188
726
|
}),
|
|
1189
|
-
/* @__PURE__ */
|
|
727
|
+
/* @__PURE__ */ jsx("td", {
|
|
1190
728
|
className: "px-4 py-3",
|
|
1191
729
|
children: "Long-term"
|
|
1192
730
|
}),
|
|
1193
|
-
/* @__PURE__ */
|
|
731
|
+
/* @__PURE__ */ jsx("td", {
|
|
1194
732
|
className: "px-4 py-3",
|
|
1195
733
|
children: "Long-term"
|
|
1196
734
|
}),
|
|
1197
|
-
/* @__PURE__ */
|
|
735
|
+
/* @__PURE__ */ jsx("td", {
|
|
1198
736
|
className: "px-4 py-3",
|
|
1199
737
|
children: "Short-term"
|
|
1200
738
|
})
|
|
1201
739
|
]
|
|
1202
740
|
}),
|
|
1203
|
-
/* @__PURE__ */
|
|
741
|
+
/* @__PURE__ */ jsxs("tr", {
|
|
1204
742
|
children: [
|
|
1205
|
-
/* @__PURE__ */
|
|
743
|
+
/* @__PURE__ */ jsx("td", {
|
|
1206
744
|
className: "px-4 py-3 font-semibold",
|
|
1207
745
|
children: "Audit Level"
|
|
1208
746
|
}),
|
|
1209
|
-
/* @__PURE__ */
|
|
747
|
+
/* @__PURE__ */ jsx("td", {
|
|
1210
748
|
className: "px-4 py-3",
|
|
1211
749
|
children: "Full audit"
|
|
1212
750
|
}),
|
|
1213
|
-
/* @__PURE__ */
|
|
751
|
+
/* @__PURE__ */ jsx("td", {
|
|
1214
752
|
className: "px-4 py-3",
|
|
1215
753
|
children: "Full audit"
|
|
1216
754
|
}),
|
|
1217
|
-
/* @__PURE__ */
|
|
755
|
+
/* @__PURE__ */ jsx("td", {
|
|
1218
756
|
className: "px-4 py-3",
|
|
1219
757
|
children: "Basic audit"
|
|
1220
758
|
}),
|
|
1221
|
-
/* @__PURE__ */
|
|
759
|
+
/* @__PURE__ */ jsx("td", {
|
|
1222
760
|
className: "px-4 py-3",
|
|
1223
761
|
children: "Minimal audit"
|
|
1224
762
|
})
|
|
@@ -1231,52 +769,52 @@ function KnowledgeCategoriesPage() {
|
|
|
1231
769
|
})
|
|
1232
770
|
]
|
|
1233
771
|
}),
|
|
1234
|
-
/* @__PURE__ */
|
|
772
|
+
/* @__PURE__ */ jsxs("div", {
|
|
1235
773
|
className: "space-y-4",
|
|
1236
774
|
children: [
|
|
1237
|
-
/* @__PURE__ */
|
|
1238
|
-
className: "text-2xl
|
|
775
|
+
/* @__PURE__ */ jsx("h2", {
|
|
776
|
+
className: "font-bold text-2xl",
|
|
1239
777
|
children: "Best practices"
|
|
1240
778
|
}),
|
|
1241
|
-
/* @__PURE__ */
|
|
1242
|
-
className: "
|
|
779
|
+
/* @__PURE__ */ jsxs("ul", {
|
|
780
|
+
className: "list-inside list-disc space-y-2 text-muted-foreground",
|
|
1243
781
|
children: [
|
|
1244
|
-
/* @__PURE__ */
|
|
782
|
+
/* @__PURE__ */ jsx("li", {
|
|
1245
783
|
children: "Use canonical for anything that affects policy, pricing, or compliance"
|
|
1246
784
|
}),
|
|
1247
|
-
/* @__PURE__ */
|
|
785
|
+
/* @__PURE__ */ jsx("li", {
|
|
1248
786
|
children: "Use operational for context that helps but doesn't dictate decisions"
|
|
1249
787
|
}),
|
|
1250
|
-
/* @__PURE__ */
|
|
788
|
+
/* @__PURE__ */ jsx("li", {
|
|
1251
789
|
children: "Use external for reference material that's helpful but not authoritative"
|
|
1252
790
|
}),
|
|
1253
|
-
/* @__PURE__ */
|
|
791
|
+
/* @__PURE__ */ jsx("li", {
|
|
1254
792
|
children: "Use ephemeral for temporary working memory that shouldn't persist"
|
|
1255
793
|
}),
|
|
1256
|
-
/* @__PURE__ */
|
|
794
|
+
/* @__PURE__ */ jsx("li", {
|
|
1257
795
|
children: "Never mix categories in a single knowledge space - keep them separate"
|
|
1258
796
|
}),
|
|
1259
|
-
/* @__PURE__ */
|
|
797
|
+
/* @__PURE__ */ jsx("li", {
|
|
1260
798
|
children: "Document the category and purpose of each knowledge space clearly"
|
|
1261
799
|
})
|
|
1262
800
|
]
|
|
1263
801
|
})
|
|
1264
802
|
]
|
|
1265
803
|
}),
|
|
1266
|
-
/* @__PURE__ */
|
|
804
|
+
/* @__PURE__ */ jsxs("div", {
|
|
1267
805
|
className: "flex items-center gap-4 pt-4",
|
|
1268
806
|
children: [
|
|
1269
|
-
/* @__PURE__ */
|
|
807
|
+
/* @__PURE__ */ jsx(Link, {
|
|
1270
808
|
href: "/docs/knowledge",
|
|
1271
809
|
className: "btn-ghost",
|
|
1272
810
|
children: "Back to Knowledge"
|
|
1273
811
|
}),
|
|
1274
|
-
/* @__PURE__ */
|
|
812
|
+
/* @__PURE__ */ jsxs(Link, {
|
|
1275
813
|
href: "/docs/knowledge/spaces",
|
|
1276
814
|
className: "btn-primary",
|
|
1277
815
|
children: [
|
|
1278
816
|
"Knowledge Spaces ",
|
|
1279
|
-
/* @__PURE__ */
|
|
817
|
+
/* @__PURE__ */ jsx(ChevronRight, {
|
|
1280
818
|
size: 16
|
|
1281
819
|
})
|
|
1282
820
|
]
|
|
@@ -1288,47 +826,47 @@ function KnowledgeCategoriesPage() {
|
|
|
1288
826
|
}
|
|
1289
827
|
|
|
1290
828
|
// src/components/docs/knowledge/KnowledgeExamplesPage.tsx
|
|
1291
|
-
import
|
|
1292
|
-
import { jsx as
|
|
829
|
+
import Link2 from "@contractspec/lib.ui-link";
|
|
830
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
1293
831
|
function KnowledgeExamplesPage() {
|
|
1294
|
-
return /* @__PURE__ */
|
|
832
|
+
return /* @__PURE__ */ jsxs2("div", {
|
|
1295
833
|
className: "space-y-8",
|
|
1296
834
|
children: [
|
|
1297
|
-
/* @__PURE__ */
|
|
835
|
+
/* @__PURE__ */ jsxs2("div", {
|
|
1298
836
|
className: "space-y-4",
|
|
1299
837
|
children: [
|
|
1300
|
-
/* @__PURE__ */
|
|
1301
|
-
className: "text-4xl
|
|
838
|
+
/* @__PURE__ */ jsx2("h1", {
|
|
839
|
+
className: "font-bold text-4xl",
|
|
1302
840
|
children: "Knowledge Examples"
|
|
1303
841
|
}),
|
|
1304
|
-
/* @__PURE__ */
|
|
842
|
+
/* @__PURE__ */ jsx2("p", {
|
|
1305
843
|
className: "text-muted-foreground",
|
|
1306
844
|
children: "Real-world examples of how different applications use knowledge spaces to power intelligent workflows and agents."
|
|
1307
845
|
})
|
|
1308
846
|
]
|
|
1309
847
|
}),
|
|
1310
|
-
/* @__PURE__ */
|
|
848
|
+
/* @__PURE__ */ jsxs2("div", {
|
|
1311
849
|
className: "space-y-6",
|
|
1312
850
|
children: [
|
|
1313
|
-
/* @__PURE__ */
|
|
851
|
+
/* @__PURE__ */ jsxs2("div", {
|
|
1314
852
|
className: "space-y-4",
|
|
1315
853
|
children: [
|
|
1316
|
-
/* @__PURE__ */
|
|
1317
|
-
className: "text-2xl
|
|
854
|
+
/* @__PURE__ */ jsx2("h2", {
|
|
855
|
+
className: "font-bold text-2xl",
|
|
1318
856
|
children: "Example 1: ArtisanOS Support Agent"
|
|
1319
857
|
}),
|
|
1320
|
-
/* @__PURE__ */
|
|
858
|
+
/* @__PURE__ */ jsxs2("p", {
|
|
1321
859
|
className: "text-muted-foreground",
|
|
1322
860
|
children: [
|
|
1323
|
-
/* @__PURE__ */
|
|
861
|
+
/* @__PURE__ */ jsx2("strong", {
|
|
1324
862
|
children: "Context:"
|
|
1325
863
|
}),
|
|
1326
864
|
" ArtisanOS needs a support agent that can answer product questions using official documentation and learn from past support tickets."
|
|
1327
865
|
]
|
|
1328
866
|
}),
|
|
1329
|
-
/* @__PURE__ */
|
|
1330
|
-
className: "
|
|
1331
|
-
children: /* @__PURE__ */
|
|
867
|
+
/* @__PURE__ */ jsx2("div", {
|
|
868
|
+
className: "overflow-x-auto rounded-lg border border-border bg-background/50 p-4 font-mono text-muted-foreground text-sm",
|
|
869
|
+
children: /* @__PURE__ */ jsx2("pre", {
|
|
1332
870
|
children: `// Knowledge spaces
|
|
1333
871
|
knowledgeSpaces: [
|
|
1334
872
|
{
|
|
@@ -1388,25 +926,25 @@ steps:
|
|
|
1388
926
|
})
|
|
1389
927
|
]
|
|
1390
928
|
}),
|
|
1391
|
-
/* @__PURE__ */
|
|
929
|
+
/* @__PURE__ */ jsxs2("div", {
|
|
1392
930
|
className: "space-y-4",
|
|
1393
931
|
children: [
|
|
1394
|
-
/* @__PURE__ */
|
|
1395
|
-
className: "text-2xl
|
|
932
|
+
/* @__PURE__ */ jsx2("h2", {
|
|
933
|
+
className: "font-bold text-2xl",
|
|
1396
934
|
children: "Example 2: HCircle Invoice Generation"
|
|
1397
935
|
}),
|
|
1398
|
-
/* @__PURE__ */
|
|
936
|
+
/* @__PURE__ */ jsxs2("p", {
|
|
1399
937
|
className: "text-muted-foreground",
|
|
1400
938
|
children: [
|
|
1401
|
-
/* @__PURE__ */
|
|
939
|
+
/* @__PURE__ */ jsx2("strong", {
|
|
1402
940
|
children: "Context:"
|
|
1403
941
|
}),
|
|
1404
942
|
" HCircle needs to generate invoices using house playbook rules and resident service history."
|
|
1405
943
|
]
|
|
1406
944
|
}),
|
|
1407
|
-
/* @__PURE__ */
|
|
1408
|
-
className: "
|
|
1409
|
-
children: /* @__PURE__ */
|
|
945
|
+
/* @__PURE__ */ jsx2("div", {
|
|
946
|
+
className: "overflow-x-auto rounded-lg border border-border bg-background/50 p-4 font-mono text-muted-foreground text-sm",
|
|
947
|
+
children: /* @__PURE__ */ jsx2("pre", {
|
|
1410
948
|
children: `// Knowledge spaces
|
|
1411
949
|
knowledgeSpaces: [
|
|
1412
950
|
{
|
|
@@ -1458,25 +996,25 @@ steps:
|
|
|
1458
996
|
})
|
|
1459
997
|
]
|
|
1460
998
|
}),
|
|
1461
|
-
/* @__PURE__ */
|
|
999
|
+
/* @__PURE__ */ jsxs2("div", {
|
|
1462
1000
|
className: "space-y-4",
|
|
1463
1001
|
children: [
|
|
1464
|
-
/* @__PURE__ */
|
|
1465
|
-
className: "text-2xl
|
|
1002
|
+
/* @__PURE__ */ jsx2("h2", {
|
|
1003
|
+
className: "font-bold text-2xl",
|
|
1466
1004
|
children: "Example 3: Multi-tenant SaaS with External Docs"
|
|
1467
1005
|
}),
|
|
1468
|
-
/* @__PURE__ */
|
|
1006
|
+
/* @__PURE__ */ jsxs2("p", {
|
|
1469
1007
|
className: "text-muted-foreground",
|
|
1470
1008
|
children: [
|
|
1471
|
-
/* @__PURE__ */
|
|
1009
|
+
/* @__PURE__ */ jsx2("strong", {
|
|
1472
1010
|
children: "Context:"
|
|
1473
1011
|
}),
|
|
1474
1012
|
" A SaaS platform needs to help users integrate with Stripe, using both internal guides and Stripe's official documentation."
|
|
1475
1013
|
]
|
|
1476
1014
|
}),
|
|
1477
|
-
/* @__PURE__ */
|
|
1478
|
-
className: "
|
|
1479
|
-
children: /* @__PURE__ */
|
|
1015
|
+
/* @__PURE__ */ jsx2("div", {
|
|
1016
|
+
className: "overflow-x-auto rounded-lg border border-border bg-background/50 p-4 font-mono text-muted-foreground text-sm",
|
|
1017
|
+
children: /* @__PURE__ */ jsx2("pre", {
|
|
1480
1018
|
children: `// Knowledge spaces
|
|
1481
1019
|
knowledgeSpaces: [
|
|
1482
1020
|
{
|
|
@@ -1552,51 +1090,51 @@ steps:
|
|
|
1552
1090
|
})
|
|
1553
1091
|
]
|
|
1554
1092
|
}),
|
|
1555
|
-
/* @__PURE__ */
|
|
1093
|
+
/* @__PURE__ */ jsxs2("div", {
|
|
1556
1094
|
className: "space-y-4",
|
|
1557
1095
|
children: [
|
|
1558
|
-
/* @__PURE__ */
|
|
1559
|
-
className: "text-2xl
|
|
1096
|
+
/* @__PURE__ */ jsx2("h2", {
|
|
1097
|
+
className: "font-bold text-2xl",
|
|
1560
1098
|
children: "Key patterns"
|
|
1561
1099
|
}),
|
|
1562
|
-
/* @__PURE__ */
|
|
1563
|
-
className: "
|
|
1100
|
+
/* @__PURE__ */ jsxs2("ul", {
|
|
1101
|
+
className: "list-inside list-disc space-y-2 text-muted-foreground",
|
|
1564
1102
|
children: [
|
|
1565
|
-
/* @__PURE__ */
|
|
1103
|
+
/* @__PURE__ */ jsxs2("li", {
|
|
1566
1104
|
children: [
|
|
1567
|
-
/* @__PURE__ */
|
|
1105
|
+
/* @__PURE__ */ jsx2("strong", {
|
|
1568
1106
|
children: "Canonical first"
|
|
1569
1107
|
}),
|
|
1570
1108
|
" - Always search canonical spaces before operational or external"
|
|
1571
1109
|
]
|
|
1572
1110
|
}),
|
|
1573
|
-
/* @__PURE__ */
|
|
1111
|
+
/* @__PURE__ */ jsxs2("li", {
|
|
1574
1112
|
children: [
|
|
1575
|
-
/* @__PURE__ */
|
|
1113
|
+
/* @__PURE__ */ jsx2("strong", {
|
|
1576
1114
|
children: "Category-aware prompts"
|
|
1577
1115
|
}),
|
|
1578
1116
|
" - Tell the LLM which sources are authoritative vs reference"
|
|
1579
1117
|
]
|
|
1580
1118
|
}),
|
|
1581
|
-
/* @__PURE__ */
|
|
1119
|
+
/* @__PURE__ */ jsxs2("li", {
|
|
1582
1120
|
children: [
|
|
1583
|
-
/* @__PURE__ */
|
|
1121
|
+
/* @__PURE__ */ jsx2("strong", {
|
|
1584
1122
|
children: "Multi-space queries"
|
|
1585
1123
|
}),
|
|
1586
1124
|
" - Combine results from multiple spaces for richer context"
|
|
1587
1125
|
]
|
|
1588
1126
|
}),
|
|
1589
|
-
/* @__PURE__ */
|
|
1127
|
+
/* @__PURE__ */ jsxs2("li", {
|
|
1590
1128
|
children: [
|
|
1591
|
-
/* @__PURE__ */
|
|
1129
|
+
/* @__PURE__ */ jsx2("strong", {
|
|
1592
1130
|
children: "Limit results"
|
|
1593
1131
|
}),
|
|
1594
1132
|
" - Use appropriate limits (3-5) to avoid token overflow"
|
|
1595
1133
|
]
|
|
1596
1134
|
}),
|
|
1597
|
-
/* @__PURE__ */
|
|
1135
|
+
/* @__PURE__ */ jsxs2("li", {
|
|
1598
1136
|
children: [
|
|
1599
|
-
/* @__PURE__ */
|
|
1137
|
+
/* @__PURE__ */ jsx2("strong", {
|
|
1600
1138
|
children: "Audit everything"
|
|
1601
1139
|
}),
|
|
1602
1140
|
" - Log all knowledge queries for debugging and compliance"
|
|
@@ -1606,15 +1144,15 @@ steps:
|
|
|
1606
1144
|
})
|
|
1607
1145
|
]
|
|
1608
1146
|
}),
|
|
1609
|
-
/* @__PURE__ */
|
|
1147
|
+
/* @__PURE__ */ jsxs2("div", {
|
|
1610
1148
|
className: "flex items-center gap-4 pt-4",
|
|
1611
1149
|
children: [
|
|
1612
|
-
/* @__PURE__ */
|
|
1150
|
+
/* @__PURE__ */ jsx2(Link2, {
|
|
1613
1151
|
href: "/docs/knowledge/sources",
|
|
1614
1152
|
className: "btn-ghost",
|
|
1615
1153
|
children: "Previous: Sources"
|
|
1616
1154
|
}),
|
|
1617
|
-
/* @__PURE__ */
|
|
1155
|
+
/* @__PURE__ */ jsx2(Link2, {
|
|
1618
1156
|
href: "/docs/architecture/knowledge-binding",
|
|
1619
1157
|
className: "btn-ghost",
|
|
1620
1158
|
children: "Knowledge Binding"
|
|
@@ -1625,9 +1163,123 @@ steps:
|
|
|
1625
1163
|
});
|
|
1626
1164
|
}
|
|
1627
1165
|
|
|
1166
|
+
// src/components/docs/knowledge/KnowledgeOverviewPage.tsx
|
|
1167
|
+
import Link3 from "@contractspec/lib.ui-link";
|
|
1168
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1169
|
+
var knowledgeTracks = [
|
|
1170
|
+
{
|
|
1171
|
+
title: "Categories",
|
|
1172
|
+
body: "Separate canonical truth from operational notes, external material, and ephemeral working context.",
|
|
1173
|
+
href: "/docs/knowledge/categories"
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
title: "Spaces",
|
|
1177
|
+
body: "Define the storage and retrieval boundary for each knowledge domain.",
|
|
1178
|
+
href: "/docs/knowledge/spaces"
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
title: "Sources",
|
|
1182
|
+
body: "Connect tenant-owned sources explicitly instead of letting context leak in through prompts alone.",
|
|
1183
|
+
href: "/docs/knowledge/sources"
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
title: "Examples",
|
|
1187
|
+
body: "See how support, compliance, and product systems consume trusted knowledge at runtime.",
|
|
1188
|
+
href: "/docs/knowledge/examples"
|
|
1189
|
+
}
|
|
1190
|
+
];
|
|
1191
|
+
function KnowledgeOverviewPage() {
|
|
1192
|
+
return /* @__PURE__ */ jsxs3("div", {
|
|
1193
|
+
className: "space-y-10",
|
|
1194
|
+
children: [
|
|
1195
|
+
/* @__PURE__ */ jsxs3("div", {
|
|
1196
|
+
className: "space-y-3",
|
|
1197
|
+
children: [
|
|
1198
|
+
/* @__PURE__ */ jsx3("p", {
|
|
1199
|
+
className: "editorial-kicker",
|
|
1200
|
+
children: "Operate"
|
|
1201
|
+
}),
|
|
1202
|
+
/* @__PURE__ */ jsx3("h1", {
|
|
1203
|
+
className: "font-serif text-4xl tracking-[-0.04em] md:text-5xl",
|
|
1204
|
+
children: "Knowledge is part of the runtime, not a sidecar prompt hack."
|
|
1205
|
+
}),
|
|
1206
|
+
/* @__PURE__ */ jsx3("p", {
|
|
1207
|
+
className: "max-w-3xl text-lg text-muted-foreground leading-8",
|
|
1208
|
+
children: "When AI-native systems depend on external context, the context needs the same discipline as the rest of the stack. ContractSpec treats knowledge as typed, bounded, and governable so teams can reason about trust, isolation, and retrieval behavior."
|
|
1209
|
+
})
|
|
1210
|
+
]
|
|
1211
|
+
}),
|
|
1212
|
+
/* @__PURE__ */ jsx3("section", {
|
|
1213
|
+
className: "editorial-panel space-y-5",
|
|
1214
|
+
children: /* @__PURE__ */ jsxs3("div", {
|
|
1215
|
+
className: "space-y-2",
|
|
1216
|
+
children: [
|
|
1217
|
+
/* @__PURE__ */ jsx3("h2", {
|
|
1218
|
+
className: "font-serif text-3xl tracking-[-0.03em]",
|
|
1219
|
+
children: "How knowledge enters the system"
|
|
1220
|
+
}),
|
|
1221
|
+
/* @__PURE__ */ jsxs3("ul", {
|
|
1222
|
+
className: "editorial-list",
|
|
1223
|
+
children: [
|
|
1224
|
+
/* @__PURE__ */ jsxs3("li", {
|
|
1225
|
+
children: [
|
|
1226
|
+
/* @__PURE__ */ jsx3("span", {
|
|
1227
|
+
className: "editorial-list-marker"
|
|
1228
|
+
}),
|
|
1229
|
+
/* @__PURE__ */ jsx3("span", {
|
|
1230
|
+
children: "Define the trust category and retrieval expectations first."
|
|
1231
|
+
})
|
|
1232
|
+
]
|
|
1233
|
+
}),
|
|
1234
|
+
/* @__PURE__ */ jsxs3("li", {
|
|
1235
|
+
children: [
|
|
1236
|
+
/* @__PURE__ */ jsx3("span", {
|
|
1237
|
+
className: "editorial-list-marker"
|
|
1238
|
+
}),
|
|
1239
|
+
/* @__PURE__ */ jsx3("span", {
|
|
1240
|
+
children: "Bind tenant-owned sources explicitly to those knowledge spaces."
|
|
1241
|
+
})
|
|
1242
|
+
]
|
|
1243
|
+
}),
|
|
1244
|
+
/* @__PURE__ */ jsxs3("li", {
|
|
1245
|
+
children: [
|
|
1246
|
+
/* @__PURE__ */ jsx3("span", {
|
|
1247
|
+
className: "editorial-list-marker"
|
|
1248
|
+
}),
|
|
1249
|
+
/* @__PURE__ */ jsx3("span", {
|
|
1250
|
+
children: "Consume knowledge through capabilities and workflows, not through invisible prompt assumptions."
|
|
1251
|
+
})
|
|
1252
|
+
]
|
|
1253
|
+
})
|
|
1254
|
+
]
|
|
1255
|
+
})
|
|
1256
|
+
]
|
|
1257
|
+
})
|
|
1258
|
+
}),
|
|
1259
|
+
/* @__PURE__ */ jsx3("div", {
|
|
1260
|
+
className: "grid gap-4 md:grid-cols-2",
|
|
1261
|
+
children: knowledgeTracks.map((item) => /* @__PURE__ */ jsxs3(Link3, {
|
|
1262
|
+
href: item.href,
|
|
1263
|
+
className: "editorial-panel",
|
|
1264
|
+
children: [
|
|
1265
|
+
/* @__PURE__ */ jsx3("h2", {
|
|
1266
|
+
className: "font-semibold text-xl",
|
|
1267
|
+
children: item.title
|
|
1268
|
+
}),
|
|
1269
|
+
/* @__PURE__ */ jsx3("p", {
|
|
1270
|
+
className: "mt-2 text-muted-foreground text-sm leading-7",
|
|
1271
|
+
children: item.body
|
|
1272
|
+
})
|
|
1273
|
+
]
|
|
1274
|
+
}, item.href))
|
|
1275
|
+
})
|
|
1276
|
+
]
|
|
1277
|
+
});
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1628
1280
|
// src/components/docs/knowledge/KnowledgeSourcesPage.tsx
|
|
1629
1281
|
import Link4 from "@contractspec/lib.ui-link";
|
|
1630
|
-
import { ChevronRight as
|
|
1282
|
+
import { ChevronRight as ChevronRight2 } from "lucide-react";
|
|
1631
1283
|
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1632
1284
|
function KnowledgeSourcesPage() {
|
|
1633
1285
|
return /* @__PURE__ */ jsxs4("div", {
|
|
@@ -1637,7 +1289,7 @@ function KnowledgeSourcesPage() {
|
|
|
1637
1289
|
className: "space-y-4",
|
|
1638
1290
|
children: [
|
|
1639
1291
|
/* @__PURE__ */ jsx4("h1", {
|
|
1640
|
-
className: "text-4xl
|
|
1292
|
+
className: "font-bold text-4xl",
|
|
1641
1293
|
children: "Knowledge Sources"
|
|
1642
1294
|
}),
|
|
1643
1295
|
/* @__PURE__ */ jsxs4("p", {
|
|
@@ -1656,11 +1308,11 @@ function KnowledgeSourcesPage() {
|
|
|
1656
1308
|
className: "space-y-4",
|
|
1657
1309
|
children: [
|
|
1658
1310
|
/* @__PURE__ */ jsx4("h2", {
|
|
1659
|
-
className: "text-2xl
|
|
1311
|
+
className: "font-bold text-2xl",
|
|
1660
1312
|
children: "KnowledgeSourceConfig"
|
|
1661
1313
|
}),
|
|
1662
1314
|
/* @__PURE__ */ jsx4("div", {
|
|
1663
|
-
className: "
|
|
1315
|
+
className: "overflow-x-auto rounded-lg border border-border bg-background/50 p-4 font-mono text-muted-foreground text-sm",
|
|
1664
1316
|
children: /* @__PURE__ */ jsx4("pre", {
|
|
1665
1317
|
children: `type KnowledgeSourceConfig = {
|
|
1666
1318
|
id: string;
|
|
@@ -1698,7 +1350,7 @@ function KnowledgeSourcesPage() {
|
|
|
1698
1350
|
className: "space-y-4",
|
|
1699
1351
|
children: [
|
|
1700
1352
|
/* @__PURE__ */ jsx4("h2", {
|
|
1701
|
-
className: "text-2xl
|
|
1353
|
+
className: "font-bold text-2xl",
|
|
1702
1354
|
children: "Source types"
|
|
1703
1355
|
}),
|
|
1704
1356
|
/* @__PURE__ */ jsxs4("div", {
|
|
@@ -1708,11 +1360,11 @@ function KnowledgeSourcesPage() {
|
|
|
1708
1360
|
className: "card-subtle p-4",
|
|
1709
1361
|
children: [
|
|
1710
1362
|
/* @__PURE__ */ jsx4("h3", {
|
|
1711
|
-
className: "mb-2 text-lg
|
|
1363
|
+
className: "mb-2 font-semibold text-lg",
|
|
1712
1364
|
children: "Uploaded Documents"
|
|
1713
1365
|
}),
|
|
1714
1366
|
/* @__PURE__ */ jsx4("div", {
|
|
1715
|
-
className: "
|
|
1367
|
+
className: "overflow-x-auto rounded border border-border bg-background/50 p-3 font-mono text-muted-foreground text-xs",
|
|
1716
1368
|
children: /* @__PURE__ */ jsx4("pre", {
|
|
1717
1369
|
children: `{
|
|
1718
1370
|
kind: "uploaded-document",
|
|
@@ -1722,7 +1374,7 @@ function KnowledgeSourcesPage() {
|
|
|
1722
1374
|
})
|
|
1723
1375
|
}),
|
|
1724
1376
|
/* @__PURE__ */ jsx4("p", {
|
|
1725
|
-
className: "text-muted-foreground
|
|
1377
|
+
className: "mt-2 text-muted-foreground text-sm",
|
|
1726
1378
|
children: "PDFs, Word docs, presentations uploaded by users"
|
|
1727
1379
|
})
|
|
1728
1380
|
]
|
|
@@ -1731,11 +1383,11 @@ function KnowledgeSourcesPage() {
|
|
|
1731
1383
|
className: "card-subtle p-4",
|
|
1732
1384
|
children: [
|
|
1733
1385
|
/* @__PURE__ */ jsx4("h3", {
|
|
1734
|
-
className: "mb-2 text-lg
|
|
1386
|
+
className: "mb-2 font-semibold text-lg",
|
|
1735
1387
|
children: "Notion"
|
|
1736
1388
|
}),
|
|
1737
1389
|
/* @__PURE__ */ jsx4("div", {
|
|
1738
|
-
className: "
|
|
1390
|
+
className: "overflow-x-auto rounded border border-border bg-background/50 p-3 font-mono text-muted-foreground text-xs",
|
|
1739
1391
|
children: /* @__PURE__ */ jsx4("pre", {
|
|
1740
1392
|
children: `{
|
|
1741
1393
|
kind: "notion",
|
|
@@ -1745,7 +1397,7 @@ function KnowledgeSourcesPage() {
|
|
|
1745
1397
|
})
|
|
1746
1398
|
}),
|
|
1747
1399
|
/* @__PURE__ */ jsx4("p", {
|
|
1748
|
-
className: "text-muted-foreground
|
|
1400
|
+
className: "mt-2 text-muted-foreground text-sm",
|
|
1749
1401
|
children: "Notion pages and databases with real-time webhook updates"
|
|
1750
1402
|
})
|
|
1751
1403
|
]
|
|
@@ -1754,11 +1406,11 @@ function KnowledgeSourcesPage() {
|
|
|
1754
1406
|
className: "card-subtle p-4",
|
|
1755
1407
|
children: [
|
|
1756
1408
|
/* @__PURE__ */ jsx4("h3", {
|
|
1757
|
-
className: "mb-2 text-lg
|
|
1409
|
+
className: "mb-2 font-semibold text-lg",
|
|
1758
1410
|
children: "Gmail / Email"
|
|
1759
1411
|
}),
|
|
1760
1412
|
/* @__PURE__ */ jsx4("div", {
|
|
1761
|
-
className: "
|
|
1413
|
+
className: "overflow-x-auto rounded border border-border bg-background/50 p-3 font-mono text-muted-foreground text-xs",
|
|
1762
1414
|
children: /* @__PURE__ */ jsx4("pre", {
|
|
1763
1415
|
children: `{
|
|
1764
1416
|
kind: "email",
|
|
@@ -1768,7 +1420,7 @@ function KnowledgeSourcesPage() {
|
|
|
1768
1420
|
})
|
|
1769
1421
|
}),
|
|
1770
1422
|
/* @__PURE__ */ jsx4("p", {
|
|
1771
|
-
className: "text-muted-foreground
|
|
1423
|
+
className: "mt-2 text-muted-foreground text-sm",
|
|
1772
1424
|
children: "Email threads from Gmail or other providers"
|
|
1773
1425
|
})
|
|
1774
1426
|
]
|
|
@@ -1777,11 +1429,11 @@ function KnowledgeSourcesPage() {
|
|
|
1777
1429
|
className: "card-subtle p-4",
|
|
1778
1430
|
children: [
|
|
1779
1431
|
/* @__PURE__ */ jsx4("h3", {
|
|
1780
|
-
className: "mb-2 text-lg
|
|
1432
|
+
className: "mb-2 font-semibold text-lg",
|
|
1781
1433
|
children: "Database Query"
|
|
1782
1434
|
}),
|
|
1783
1435
|
/* @__PURE__ */ jsx4("div", {
|
|
1784
|
-
className: "
|
|
1436
|
+
className: "overflow-x-auto rounded border border-border bg-background/50 p-3 font-mono text-muted-foreground text-xs",
|
|
1785
1437
|
children: /* @__PURE__ */ jsx4("pre", {
|
|
1786
1438
|
children: `{
|
|
1787
1439
|
kind: "database-query",
|
|
@@ -1791,7 +1443,7 @@ function KnowledgeSourcesPage() {
|
|
|
1791
1443
|
})
|
|
1792
1444
|
}),
|
|
1793
1445
|
/* @__PURE__ */ jsx4("p", {
|
|
1794
|
-
className: "text-muted-foreground
|
|
1446
|
+
className: "mt-2 text-muted-foreground text-sm",
|
|
1795
1447
|
children: "Structured data from application databases"
|
|
1796
1448
|
})
|
|
1797
1449
|
]
|
|
@@ -1800,11 +1452,11 @@ function KnowledgeSourcesPage() {
|
|
|
1800
1452
|
className: "card-subtle p-4",
|
|
1801
1453
|
children: [
|
|
1802
1454
|
/* @__PURE__ */ jsx4("h3", {
|
|
1803
|
-
className: "mb-2 text-lg
|
|
1455
|
+
className: "mb-2 font-semibold text-lg",
|
|
1804
1456
|
children: "URL / Web Scraping"
|
|
1805
1457
|
}),
|
|
1806
1458
|
/* @__PURE__ */ jsx4("div", {
|
|
1807
|
-
className: "
|
|
1459
|
+
className: "overflow-x-auto rounded border border-border bg-background/50 p-3 font-mono text-muted-foreground text-xs",
|
|
1808
1460
|
children: /* @__PURE__ */ jsx4("pre", {
|
|
1809
1461
|
children: `{
|
|
1810
1462
|
kind: "url",
|
|
@@ -1814,7 +1466,7 @@ function KnowledgeSourcesPage() {
|
|
|
1814
1466
|
})
|
|
1815
1467
|
}),
|
|
1816
1468
|
/* @__PURE__ */ jsx4("p", {
|
|
1817
|
-
className: "text-muted-foreground
|
|
1469
|
+
className: "mt-2 text-muted-foreground text-sm",
|
|
1818
1470
|
children: "External documentation and web content"
|
|
1819
1471
|
})
|
|
1820
1472
|
]
|
|
@@ -1827,11 +1479,11 @@ function KnowledgeSourcesPage() {
|
|
|
1827
1479
|
className: "space-y-4",
|
|
1828
1480
|
children: [
|
|
1829
1481
|
/* @__PURE__ */ jsx4("h2", {
|
|
1830
|
-
className: "text-2xl
|
|
1482
|
+
className: "font-bold text-2xl",
|
|
1831
1483
|
children: "Sync strategies"
|
|
1832
1484
|
}),
|
|
1833
1485
|
/* @__PURE__ */ jsx4("div", {
|
|
1834
|
-
className: "
|
|
1486
|
+
className: "overflow-x-auto rounded-lg border border-border/50",
|
|
1835
1487
|
children: /* @__PURE__ */ jsxs4("table", {
|
|
1836
1488
|
className: "w-full text-left text-sm",
|
|
1837
1489
|
children: [
|
|
@@ -1856,7 +1508,7 @@ function KnowledgeSourcesPage() {
|
|
|
1856
1508
|
})
|
|
1857
1509
|
}),
|
|
1858
1510
|
/* @__PURE__ */ jsxs4("tbody", {
|
|
1859
|
-
className: "divide-border/50
|
|
1511
|
+
className: "divide-y divide-border/50",
|
|
1860
1512
|
children: [
|
|
1861
1513
|
/* @__PURE__ */ jsxs4("tr", {
|
|
1862
1514
|
children: [
|
|
@@ -1917,7 +1569,7 @@ function KnowledgeSourcesPage() {
|
|
|
1917
1569
|
className: "space-y-4",
|
|
1918
1570
|
children: [
|
|
1919
1571
|
/* @__PURE__ */ jsx4("h2", {
|
|
1920
|
-
className: "text-2xl
|
|
1572
|
+
className: "font-bold text-2xl",
|
|
1921
1573
|
children: "Example: Multi-source space"
|
|
1922
1574
|
}),
|
|
1923
1575
|
/* @__PURE__ */ jsx4("p", {
|
|
@@ -1925,7 +1577,7 @@ function KnowledgeSourcesPage() {
|
|
|
1925
1577
|
children: "A single knowledge space can be fed by multiple sources:"
|
|
1926
1578
|
}),
|
|
1927
1579
|
/* @__PURE__ */ jsx4("div", {
|
|
1928
|
-
className: "
|
|
1580
|
+
className: "overflow-x-auto rounded-lg border border-border bg-background/50 p-4 font-mono text-muted-foreground text-sm",
|
|
1929
1581
|
children: /* @__PURE__ */ jsx4("pre", {
|
|
1930
1582
|
children: `// Product Canon space with multiple sources
|
|
1931
1583
|
{
|
|
@@ -1959,7 +1611,7 @@ function KnowledgeSourcesPage() {
|
|
|
1959
1611
|
className: "space-y-4",
|
|
1960
1612
|
children: [
|
|
1961
1613
|
/* @__PURE__ */ jsx4("h2", {
|
|
1962
|
-
className: "text-2xl
|
|
1614
|
+
className: "font-bold text-2xl",
|
|
1963
1615
|
children: "Processing pipeline"
|
|
1964
1616
|
}),
|
|
1965
1617
|
/* @__PURE__ */ jsx4("p", {
|
|
@@ -1967,7 +1619,7 @@ function KnowledgeSourcesPage() {
|
|
|
1967
1619
|
children: "When a source is synced, ContractSpec processes it through several stages:"
|
|
1968
1620
|
}),
|
|
1969
1621
|
/* @__PURE__ */ jsxs4("ol", {
|
|
1970
|
-
className: "
|
|
1622
|
+
className: "list-inside list-decimal space-y-3 text-muted-foreground",
|
|
1971
1623
|
children: [
|
|
1972
1624
|
/* @__PURE__ */ jsxs4("li", {
|
|
1973
1625
|
children: [
|
|
@@ -2025,11 +1677,11 @@ function KnowledgeSourcesPage() {
|
|
|
2025
1677
|
className: "space-y-4",
|
|
2026
1678
|
children: [
|
|
2027
1679
|
/* @__PURE__ */ jsx4("h2", {
|
|
2028
|
-
className: "text-2xl
|
|
1680
|
+
className: "font-bold text-2xl",
|
|
2029
1681
|
children: "Best practices"
|
|
2030
1682
|
}),
|
|
2031
1683
|
/* @__PURE__ */ jsxs4("ul", {
|
|
2032
|
-
className: "
|
|
1684
|
+
className: "list-inside list-disc space-y-2 text-muted-foreground",
|
|
2033
1685
|
children: [
|
|
2034
1686
|
/* @__PURE__ */ jsx4("li", {
|
|
2035
1687
|
children: "Use webhooks for real-time sources (Notion, Gmail) to minimize latency"
|
|
@@ -2066,7 +1718,7 @@ function KnowledgeSourcesPage() {
|
|
|
2066
1718
|
className: "btn-primary",
|
|
2067
1719
|
children: [
|
|
2068
1720
|
"Examples ",
|
|
2069
|
-
/* @__PURE__ */ jsx4(
|
|
1721
|
+
/* @__PURE__ */ jsx4(ChevronRight2, {
|
|
2070
1722
|
size: 16
|
|
2071
1723
|
})
|
|
2072
1724
|
]
|
|
@@ -2079,7 +1731,7 @@ function KnowledgeSourcesPage() {
|
|
|
2079
1731
|
|
|
2080
1732
|
// src/components/docs/knowledge/KnowledgeSpacesPage.tsx
|
|
2081
1733
|
import Link5 from "@contractspec/lib.ui-link";
|
|
2082
|
-
import { ChevronRight as
|
|
1734
|
+
import { ChevronRight as ChevronRight3 } from "lucide-react";
|
|
2083
1735
|
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
2084
1736
|
function KnowledgeSpacesPage() {
|
|
2085
1737
|
return /* @__PURE__ */ jsxs5("div", {
|
|
@@ -2089,7 +1741,7 @@ function KnowledgeSpacesPage() {
|
|
|
2089
1741
|
className: "space-y-4",
|
|
2090
1742
|
children: [
|
|
2091
1743
|
/* @__PURE__ */ jsx5("h1", {
|
|
2092
|
-
className: "text-4xl
|
|
1744
|
+
className: "font-bold text-4xl",
|
|
2093
1745
|
children: "Knowledge Spaces"
|
|
2094
1746
|
}),
|
|
2095
1747
|
/* @__PURE__ */ jsxs5("p", {
|
|
@@ -2108,11 +1760,11 @@ function KnowledgeSpacesPage() {
|
|
|
2108
1760
|
className: "space-y-4",
|
|
2109
1761
|
children: [
|
|
2110
1762
|
/* @__PURE__ */ jsx5("h2", {
|
|
2111
|
-
className: "text-2xl
|
|
1763
|
+
className: "font-bold text-2xl",
|
|
2112
1764
|
children: "KnowledgeSpaceSpec"
|
|
2113
1765
|
}),
|
|
2114
1766
|
/* @__PURE__ */ jsx5("div", {
|
|
2115
|
-
className: "
|
|
1767
|
+
className: "overflow-x-auto rounded-lg border border-border bg-background/50 p-4 font-mono text-muted-foreground text-sm",
|
|
2116
1768
|
children: /* @__PURE__ */ jsx5("pre", {
|
|
2117
1769
|
children: `type KnowledgeSpaceSpec = {
|
|
2118
1770
|
id: string;
|
|
@@ -2148,7 +1800,7 @@ function KnowledgeSpacesPage() {
|
|
|
2148
1800
|
className: "space-y-4",
|
|
2149
1801
|
children: [
|
|
2150
1802
|
/* @__PURE__ */ jsx5("h2", {
|
|
2151
|
-
className: "text-2xl
|
|
1803
|
+
className: "font-bold text-2xl",
|
|
2152
1804
|
children: "Common knowledge spaces"
|
|
2153
1805
|
}),
|
|
2154
1806
|
/* @__PURE__ */ jsxs5("div", {
|
|
@@ -2158,11 +1810,11 @@ function KnowledgeSpacesPage() {
|
|
|
2158
1810
|
className: "card-subtle p-4",
|
|
2159
1811
|
children: [
|
|
2160
1812
|
/* @__PURE__ */ jsx5("h3", {
|
|
2161
|
-
className: "mb-2 text-lg
|
|
1813
|
+
className: "mb-2 font-semibold text-lg",
|
|
2162
1814
|
children: "Product Canon"
|
|
2163
1815
|
}),
|
|
2164
1816
|
/* @__PURE__ */ jsx5("div", {
|
|
2165
|
-
className: "
|
|
1817
|
+
className: "overflow-x-auto rounded border border-border bg-background/50 p-3 font-mono text-muted-foreground text-xs",
|
|
2166
1818
|
children: /* @__PURE__ */ jsx5("pre", {
|
|
2167
1819
|
children: `{
|
|
2168
1820
|
id: "product-canon",
|
|
@@ -2178,7 +1830,7 @@ function KnowledgeSpacesPage() {
|
|
|
2178
1830
|
})
|
|
2179
1831
|
}),
|
|
2180
1832
|
/* @__PURE__ */ jsxs5("p", {
|
|
2181
|
-
className: "text-muted-foreground
|
|
1833
|
+
className: "mt-2 text-muted-foreground text-sm",
|
|
2182
1834
|
children: [
|
|
2183
1835
|
/* @__PURE__ */ jsx5("strong", {
|
|
2184
1836
|
children: "Use cases:"
|
|
@@ -2192,11 +1844,11 @@ function KnowledgeSpacesPage() {
|
|
|
2192
1844
|
className: "card-subtle p-4",
|
|
2193
1845
|
children: [
|
|
2194
1846
|
/* @__PURE__ */ jsx5("h3", {
|
|
2195
|
-
className: "mb-2 text-lg
|
|
1847
|
+
className: "mb-2 font-semibold text-lg",
|
|
2196
1848
|
children: "Support History"
|
|
2197
1849
|
}),
|
|
2198
1850
|
/* @__PURE__ */ jsx5("div", {
|
|
2199
|
-
className: "
|
|
1851
|
+
className: "overflow-x-auto rounded border border-border bg-background/50 p-3 font-mono text-muted-foreground text-xs",
|
|
2200
1852
|
children: /* @__PURE__ */ jsx5("pre", {
|
|
2201
1853
|
children: `{
|
|
2202
1854
|
id: "support-history",
|
|
@@ -2212,7 +1864,7 @@ function KnowledgeSpacesPage() {
|
|
|
2212
1864
|
})
|
|
2213
1865
|
}),
|
|
2214
1866
|
/* @__PURE__ */ jsxs5("p", {
|
|
2215
|
-
className: "text-muted-foreground
|
|
1867
|
+
className: "mt-2 text-muted-foreground text-sm",
|
|
2216
1868
|
children: [
|
|
2217
1869
|
/* @__PURE__ */ jsx5("strong", {
|
|
2218
1870
|
children: "Use cases:"
|
|
@@ -2226,11 +1878,11 @@ function KnowledgeSpacesPage() {
|
|
|
2226
1878
|
className: "card-subtle p-4",
|
|
2227
1879
|
children: [
|
|
2228
1880
|
/* @__PURE__ */ jsx5("h3", {
|
|
2229
|
-
className: "mb-2 text-lg
|
|
1881
|
+
className: "mb-2 font-semibold text-lg",
|
|
2230
1882
|
children: "External Provider Docs"
|
|
2231
1883
|
}),
|
|
2232
1884
|
/* @__PURE__ */ jsx5("div", {
|
|
2233
|
-
className: "
|
|
1885
|
+
className: "overflow-x-auto rounded border border-border bg-background/50 p-3 font-mono text-muted-foreground text-xs",
|
|
2234
1886
|
children: /* @__PURE__ */ jsx5("pre", {
|
|
2235
1887
|
children: `{
|
|
2236
1888
|
id: "provider-docs",
|
|
@@ -2245,7 +1897,7 @@ function KnowledgeSpacesPage() {
|
|
|
2245
1897
|
})
|
|
2246
1898
|
}),
|
|
2247
1899
|
/* @__PURE__ */ jsxs5("p", {
|
|
2248
|
-
className: "text-muted-foreground
|
|
1900
|
+
className: "mt-2 text-muted-foreground text-sm",
|
|
2249
1901
|
children: [
|
|
2250
1902
|
/* @__PURE__ */ jsx5("strong", {
|
|
2251
1903
|
children: "Use cases:"
|
|
@@ -2259,11 +1911,11 @@ function KnowledgeSpacesPage() {
|
|
|
2259
1911
|
className: "card-subtle p-4",
|
|
2260
1912
|
children: [
|
|
2261
1913
|
/* @__PURE__ */ jsx5("h3", {
|
|
2262
|
-
className: "mb-2 text-lg
|
|
1914
|
+
className: "mb-2 font-semibold text-lg",
|
|
2263
1915
|
children: "Agent Scratchpad"
|
|
2264
1916
|
}),
|
|
2265
1917
|
/* @__PURE__ */ jsx5("div", {
|
|
2266
|
-
className: "
|
|
1918
|
+
className: "overflow-x-auto rounded border border-border bg-background/50 p-3 font-mono text-muted-foreground text-xs",
|
|
2267
1919
|
children: /* @__PURE__ */ jsx5("pre", {
|
|
2268
1920
|
children: `{
|
|
2269
1921
|
id: "agent-scratchpad",
|
|
@@ -2279,7 +1931,7 @@ function KnowledgeSpacesPage() {
|
|
|
2279
1931
|
})
|
|
2280
1932
|
}),
|
|
2281
1933
|
/* @__PURE__ */ jsxs5("p", {
|
|
2282
|
-
className: "text-muted-foreground
|
|
1934
|
+
className: "mt-2 text-muted-foreground text-sm",
|
|
2283
1935
|
children: [
|
|
2284
1936
|
/* @__PURE__ */ jsx5("strong", {
|
|
2285
1937
|
children: "Use cases:"
|
|
@@ -2297,11 +1949,11 @@ function KnowledgeSpacesPage() {
|
|
|
2297
1949
|
className: "space-y-4",
|
|
2298
1950
|
children: [
|
|
2299
1951
|
/* @__PURE__ */ jsx5("h2", {
|
|
2300
|
-
className: "text-2xl
|
|
1952
|
+
className: "font-bold text-2xl",
|
|
2301
1953
|
children: "Storage strategies"
|
|
2302
1954
|
}),
|
|
2303
1955
|
/* @__PURE__ */ jsx5("div", {
|
|
2304
|
-
className: "
|
|
1956
|
+
className: "overflow-x-auto rounded-lg border border-border/50",
|
|
2305
1957
|
children: /* @__PURE__ */ jsxs5("table", {
|
|
2306
1958
|
className: "w-full text-left text-sm",
|
|
2307
1959
|
children: [
|
|
@@ -2326,7 +1978,7 @@ function KnowledgeSpacesPage() {
|
|
|
2326
1978
|
})
|
|
2327
1979
|
}),
|
|
2328
1980
|
/* @__PURE__ */ jsxs5("tbody", {
|
|
2329
|
-
className: "divide-border/50
|
|
1981
|
+
className: "divide-y divide-border/50",
|
|
2330
1982
|
children: [
|
|
2331
1983
|
/* @__PURE__ */ jsxs5("tr", {
|
|
2332
1984
|
children: [
|
|
@@ -2387,11 +2039,11 @@ function KnowledgeSpacesPage() {
|
|
|
2387
2039
|
className: "space-y-4",
|
|
2388
2040
|
children: [
|
|
2389
2041
|
/* @__PURE__ */ jsx5("h2", {
|
|
2390
|
-
className: "text-2xl
|
|
2042
|
+
className: "font-bold text-2xl",
|
|
2391
2043
|
children: "Best practices"
|
|
2392
2044
|
}),
|
|
2393
2045
|
/* @__PURE__ */ jsxs5("ul", {
|
|
2394
|
-
className: "
|
|
2046
|
+
className: "list-inside list-disc space-y-2 text-muted-foreground",
|
|
2395
2047
|
children: [
|
|
2396
2048
|
/* @__PURE__ */ jsx5("li", {
|
|
2397
2049
|
children: "Choose storage strategy based on query patterns - use vector for semantic, search for exact"
|
|
@@ -2425,7 +2077,7 @@ function KnowledgeSpacesPage() {
|
|
|
2425
2077
|
className: "btn-primary",
|
|
2426
2078
|
children: [
|
|
2427
2079
|
"Knowledge Sources ",
|
|
2428
|
-
/* @__PURE__ */ jsx5(
|
|
2080
|
+
/* @__PURE__ */ jsx5(ChevronRight3, {
|
|
2429
2081
|
size: 16
|
|
2430
2082
|
})
|
|
2431
2083
|
]
|