@contractspec/bundle.library 3.8.10 → 3.8.12
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 +606 -594
- package/CHANGELOG.md +59 -0
- package/dist/application/context-storage/index.js +1 -28
- package/dist/application/index.js +13 -2133
- package/dist/application/mcp/cliMcp.js +4 -452
- package/dist/application/mcp/common.js +1 -193
- package/dist/application/mcp/contractsMcp.js +2 -549
- package/dist/application/mcp/contractsMcpResources.js +2 -123
- package/dist/application/mcp/contractsMcpTools.js +1 -199
- package/dist/application/mcp/docsMcp.catalog.js +3 -381
- package/dist/application/mcp/docsMcp.data.js +1 -147
- package/dist/application/mcp/docsMcp.js +6 -1039
- package/dist/application/mcp/docsMcp.prompts.js +6 -521
- package/dist/application/mcp/docsMcp.reference.js +3 -235
- package/dist/application/mcp/docsMcp.resources.js +3 -519
- package/dist/application/mcp/docsMcp.tools.js +3 -518
- package/dist/application/mcp/index.js +13 -2106
- package/dist/application/mcp/internalMcp.js +2 -410
- package/dist/application/mcp/normalizeMcpRequest.js +1 -21
- package/dist/application/mcp/providerRankingMcp.js +1 -530
- package/dist/bundles/LibraryBundle.js +1 -138
- package/dist/bundles/index.js +1 -138
- package/dist/components/docs/DocsIndexPage.js +2 -912
- package/dist/components/docs/advanced/AdvancedMCPPage.js +4 -271
- package/dist/components/docs/advanced/AdvancedOverlayEditorPage.js +1 -107
- package/dist/components/docs/advanced/AdvancedRenderersPage.js +2 -118
- package/dist/components/docs/advanced/AdvancedSpecExperimentsPage.js +4 -92
- package/dist/components/docs/advanced/AdvancedTelemetryPage.js +2 -373
- package/dist/components/docs/advanced/AdvancedWorkflowMonitoringPage.js +2 -99
- package/dist/components/docs/advanced/index.js +10 -1055
- package/dist/components/docs/architecture/ArchitectureAppConfigPage.js +6 -243
- package/dist/components/docs/architecture/ArchitectureControlPlanePage.js +3 -160
- package/dist/components/docs/architecture/ArchitectureIntegrationBindingPage.js +7 -259
- package/dist/components/docs/architecture/ArchitectureKnowledgeBindingPage.js +6 -374
- package/dist/components/docs/architecture/ArchitectureMultiTenancyPage.js +2 -166
- package/dist/components/docs/architecture/ArchitectureOverviewPage.js +1 -143
- package/dist/components/docs/architecture/index.js +20 -1340
- package/dist/components/docs/comparison/ComparisonAutomationPlatformsPage.js +1 -245
- package/dist/components/docs/comparison/ComparisonEnterprisePlatformsPage.js +1 -230
- package/dist/components/docs/comparison/ComparisonInternalToolBuildersPage.js +1 -245
- package/dist/components/docs/comparison/ComparisonOverviewPage.js +1 -202
- package/dist/components/docs/comparison/ComparisonWindmillPage.js +1 -254
- package/dist/components/docs/comparison/ComparisonWorkflowEnginesPage.js +1 -339
- package/dist/components/docs/comparison/index.js +1 -1510
- package/dist/components/docs/docsManifest.js +1 -611
- package/dist/components/docs/docsManifest.test.d.ts +1 -0
- package/dist/components/docs/ecosystem/IntegrationsPage.js +2 -103
- package/dist/components/docs/ecosystem/PluginsPage.js +13 -179
- package/dist/components/docs/ecosystem/RegistryPage.js +7 -100
- package/dist/components/docs/ecosystem/TemplatesPage.js +3 -141
- package/dist/components/docs/ecosystem/ecosystem.docblocks.js +2 -48
- package/dist/components/docs/ecosystem/index.js +23 -569
- package/dist/components/docs/examples/DocsExamplesPage.js +4 -124
- package/dist/components/docs/examples/ExampleShowcasePage.js +4 -244
- package/dist/components/docs/examples/exampleShowcaseData.js +4 -39
- package/dist/components/docs/examples/index.js +4 -330
- package/dist/components/docs/generated/docs-index.generated.js +1 -5
- package/dist/components/docs/generated/index.js +1 -74
- package/dist/components/docs/generated/loader.js +1 -74
- package/dist/components/docs/getting-started/CLIPage.js +4 -271
- package/dist/components/docs/getting-started/CompatibilityPage.js +1 -173
- package/dist/components/docs/getting-started/DataViewTutorialPage.js +4 -134
- package/dist/components/docs/getting-started/DeveloperToolsPage.js +1 -194
- package/dist/components/docs/getting-started/HelloWorldPage.js +5 -183
- package/dist/components/docs/getting-started/InstallationPage.js +3 -154
- package/dist/components/docs/getting-started/StartHerePage.js +2 -129
- package/dist/components/docs/getting-started/TroubleshootingPage.js +2 -168
- package/dist/components/docs/getting-started/VSCodeExtensionPage.js +1 -432
- package/dist/components/docs/getting-started/getting-started.docblocks.js +4 -41
- package/dist/components/docs/getting-started/index.js +18 -1869
- package/dist/components/docs/guides/GuideCIDiffGatingPage.js +2 -196
- package/dist/components/docs/guides/GuideConnectInRepoPage.d.ts +1 -0
- package/dist/components/docs/guides/GuideConnectInRepoPage.js +44 -0
- package/dist/components/docs/guides/GuideContractTypesPage.js +6 -541
- package/dist/components/docs/guides/GuideDocsPipelinePage.js +3 -207
- package/dist/components/docs/guides/GuideFirstModuleBundlePage.d.ts +1 -0
- package/dist/components/docs/guides/GuideFirstModuleBundlePage.js +76 -0
- package/dist/components/docs/guides/GuideGenerateDocsClientsSchemasPage.js +2 -209
- package/dist/components/docs/guides/GuideHostBuilderWorkbenchPage.d.ts +1 -0
- package/dist/components/docs/guides/GuideHostBuilderWorkbenchPage.js +70 -0
- package/dist/components/docs/guides/GuideImportExistingCodebasesPage.js +8 -754
- package/dist/components/docs/guides/GuideNextjsOneEndpointPage.js +6 -268
- package/dist/components/docs/guides/GuideSpecValidationTypingPage.js +4 -196
- package/dist/components/docs/guides/GuidesIndexPage.js +2 -169
- package/dist/components/docs/guides/guides.docblocks.js +11 -75
- package/dist/components/docs/guides/index.d.ts +3 -0
- package/dist/components/docs/guides/index.js +213 -2428
- package/dist/components/docs/index.js +542 -24310
- package/dist/components/docs/integrations/IntegrationsCircuitBreakersPage.js +2 -42
- package/dist/components/docs/integrations/IntegrationsElevenLabsPage.js +3 -105
- package/dist/components/docs/integrations/IntegrationsGithubPage.js +3 -142
- package/dist/components/docs/integrations/IntegrationsGmailPage.js +3 -109
- package/dist/components/docs/integrations/IntegrationsGoogleCalendarPage.js +3 -79
- package/dist/components/docs/integrations/IntegrationsHealthRoutingPage.js +3 -146
- package/dist/components/docs/integrations/IntegrationsMistralPage.js +5 -150
- package/dist/components/docs/integrations/IntegrationsOpenAIPage.js +5 -140
- package/dist/components/docs/integrations/IntegrationsOverviewPage.js +1 -160
- package/dist/components/docs/integrations/IntegrationsPostmarkPage.js +4 -218
- package/dist/components/docs/integrations/IntegrationsPowensPage.js +4 -300
- package/dist/components/docs/integrations/IntegrationsQdrantPage.js +5 -111
- package/dist/components/docs/integrations/IntegrationsResendPage.js +3 -102
- package/dist/components/docs/integrations/IntegrationsS3Page.js +4 -124
- package/dist/components/docs/integrations/IntegrationsSlackPage.js +3 -144
- package/dist/components/docs/integrations/IntegrationsSpecModelPage.js +7 -290
- package/dist/components/docs/integrations/IntegrationsStripePage.js +6 -327
- package/dist/components/docs/integrations/IntegrationsTwilioPage.js +3 -128
- package/dist/components/docs/integrations/IntegrationsWhatsappMetaPage.js +2 -146
- package/dist/components/docs/integrations/IntegrationsWhatsappTwilioPage.js +2 -156
- package/dist/components/docs/integrations/index.js +52 -3100
- package/dist/components/docs/intent/ContractFirstApiPage.js +2 -126
- package/dist/components/docs/intent/DeterministicCodegenPage.js +2 -148
- package/dist/components/docs/intent/GenerateClientFromSchemaPage.js +7 -207
- package/dist/components/docs/intent/OpenapiAlternativePage.js +3 -201
- package/dist/components/docs/intent/SchemaValidationTypescriptPage.js +4 -144
- package/dist/components/docs/intent/SpecDrivenDevelopmentPage.js +2 -126
- package/dist/components/docs/intent/index.js +15 -1135
- package/dist/components/docs/intent/intent-pages.docblocks.js +1 -201
- package/dist/components/docs/knowledge/KnowledgeCategoriesPage.js +6 -750
- package/dist/components/docs/knowledge/KnowledgeExamplesPage.js +4 -175
- package/dist/components/docs/knowledge/KnowledgeOverviewPage.js +1 -116
- package/dist/components/docs/knowledge/KnowledgeSourcesPage.js +8 -391
- package/dist/components/docs/knowledge/KnowledgeSpacesPage.js +6 -302
- package/dist/components/docs/knowledge/index.js +21 -1730
- package/dist/components/docs/libraries/LibrariesAccessibilityPage.js +3 -198
- package/dist/components/docs/libraries/LibrariesAiAgentPage.js +3 -141
- package/dist/components/docs/libraries/LibrariesAnalyticsPage.js +4 -80
- package/dist/components/docs/libraries/LibrariesContentGenPage.js +2 -100
- package/dist/components/docs/libraries/LibrariesContractsPage.js +2 -284
- package/dist/components/docs/libraries/LibrariesCostTrackingPage.js +3 -112
- package/dist/components/docs/libraries/LibrariesDataBackendPage.js +2 -166
- package/dist/components/docs/libraries/LibrariesDataViewsPage.js +3 -186
- package/dist/components/docs/libraries/LibrariesDesignSystemPage.js +4 -279
- package/dist/components/docs/libraries/LibrariesEvolutionPage.js +4 -127
- package/dist/components/docs/libraries/LibrariesGraphQLPage.js +2 -173
- package/dist/components/docs/libraries/LibrariesGrowthPage.js +3 -88
- package/dist/components/docs/libraries/LibrariesMultiTenancyPage.js +3 -108
- package/dist/components/docs/libraries/LibrariesObservabilityPage.js +5 -130
- package/dist/components/docs/libraries/LibrariesOverlayEnginePage.js +4 -110
- package/dist/components/docs/libraries/LibrariesOverviewPage.js +1 -170
- package/dist/components/docs/libraries/LibrariesPersonalizationPage.js +4 -114
- package/dist/components/docs/libraries/LibrariesProgressiveDeliveryPage.js +3 -132
- package/dist/components/docs/libraries/LibrariesResiliencePage.js +4 -120
- package/dist/components/docs/libraries/LibrariesRuntimePage.js +2 -200
- package/dist/components/docs/libraries/LibrariesSLOPage.js +3 -116
- package/dist/components/docs/libraries/LibrariesSchemaPage.js +3 -273
- package/dist/components/docs/libraries/LibrariesSupportBotPage.js +3 -134
- package/dist/components/docs/libraries/LibrariesTestingPage.js +3 -133
- package/dist/components/docs/libraries/LibrariesUIKitPage.js +2 -230
- package/dist/components/docs/libraries/LibrariesWorkflowComposerPage.js +3 -88
- package/dist/components/docs/libraries/LibrariesWorkflowsPage.js +2 -181
- package/dist/components/docs/libraries/index.js +54 -4147
- package/dist/components/docs/manifesto/ManifestoPage.js +1 -86
- package/dist/components/docs/ops/AutoEvolutionOpsPage.js +2 -132
- package/dist/components/docs/ops/DistributedTracingOpsPage.js +2 -71
- package/dist/components/docs/ops/index.js +3 -202
- package/dist/components/docs/ops/ops-lifecycle.docblocks.js +3 -38
- package/dist/components/docs/ops/ops-runbooks-a.docblocks.js +3 -94
- package/dist/components/docs/ops/ops-runbooks-b.docblocks.js +3 -76
- package/dist/components/docs/ops/ops-slo-tenant.docblocks.js +3 -76
- package/dist/components/docs/ops/ops-top.docs.js +2 -17
- package/dist/components/docs/ops/ops.docs.js +10 -302
- package/dist/components/docs/product/product.docblocks.js +5 -72
- package/dist/components/docs/reference/DocsMarkdownContent.js +2 -196
- package/dist/components/docs/reference/DocsReferenceContent.js +3 -256
- package/dist/components/docs/reference/DocsReferenceIndexClient.js +2 -127
- package/dist/components/docs/reference/DocsReferenceIndexPage.js +2 -206
- package/dist/components/docs/reference/DocsReferencePage.js +3 -265
- package/dist/components/docs/reference/docsMarkdownParser.js +2 -92
- package/dist/components/docs/reference/index.js +4 -470
- package/dist/components/docs/safety/SafetyAuditingPage.js +2 -350
- package/dist/components/docs/safety/SafetyMigrationsPage.js +2 -359
- package/dist/components/docs/safety/SafetyOverviewPage.js +1 -101
- package/dist/components/docs/safety/SafetyPDPPage.js +2 -301
- package/dist/components/docs/safety/SafetySecurityTrustPage.js +1 -206
- package/dist/components/docs/safety/SafetySigningPage.js +3 -90
- package/dist/components/docs/safety/SafetyTenantIsolationPage.js +2 -79
- package/dist/components/docs/safety/index.js +7 -1480
- package/dist/components/docs/shared/StudioPrompt.js +1 -31
- package/dist/components/docs/specs/SpecsBuilderControlPlanePage.d.ts +1 -0
- package/dist/components/docs/specs/SpecsBuilderControlPlanePage.js +34 -0
- package/dist/components/docs/specs/SpecsCapabilitiesPage.js +2 -158
- package/dist/components/docs/specs/SpecsConnectPage.d.ts +1 -0
- package/dist/components/docs/specs/SpecsConnectPage.js +8 -0
- package/dist/components/docs/specs/SpecsDataViewsPage.js +2 -260
- package/dist/components/docs/specs/SpecsModuleBundlesPage.d.ts +1 -0
- package/dist/components/docs/specs/SpecsModuleBundlesPage.js +67 -0
- package/dist/components/docs/specs/SpecsOverlaysPage.js +2 -372
- package/dist/components/docs/specs/SpecsOverviewPage.js +1 -186
- package/dist/components/docs/specs/SpecsPolicyPage.js +3 -420
- package/dist/components/docs/specs/SpecsWorkflowsPage.js +2 -325
- package/dist/components/docs/specs/index.d.ts +3 -0
- package/dist/components/docs/specs/index.js +109 -1715
- package/dist/components/docs/studio/StudioBYOKPage.js +1 -26
- package/dist/components/docs/studio/StudioDeploymentsPage.js +1 -26
- package/dist/components/docs/studio/StudioGettingStartedPage.js +1 -26
- package/dist/components/docs/studio/StudioIntegrationsPage.js +1 -26
- package/dist/components/docs/studio/StudioOverviewPage.js +1 -157
- package/dist/components/docs/studio/StudioVisualBuilderPage.js +1 -26
- package/dist/components/docs/studio/index.js +1 -282
- package/dist/components/docs/tech/contracts/tech-docs.docblocks.js +2 -19
- package/dist/components/integrations/index.js +2 -600
- package/dist/components/integrations/molecules/IntegrationCard.js +1 -100
- package/dist/components/integrations/organisms/IntegrationMarketplace.js +1 -214
- package/dist/components/integrations/organisms/IntegrationSettings.js +2 -284
- package/dist/components/integrations/organisms/KnowledgeSourceList.js +1 -103
- package/dist/components/legal/PrivacyTemplate.js +1 -1025
- package/dist/components/legal/TermsTemplate.js +1 -941
- package/dist/components/legal/index.js +1 -1963
- package/dist/components/shared/FeatureGateNotice.js +1 -38
- package/dist/components/shared/index.js +1 -38
- package/dist/components/shell/WorkspaceHeader.js +1 -100
- package/dist/components/shell/WorkspaceProjectShellLayout.js +1 -222
- package/dist/components/shell/WorkspaceShellRenderer.js +1 -228
- package/dist/components/shell/WorkspaceSidebar.js +1 -68
- package/dist/components/shell/index.js +1 -287
- package/dist/components/templates/engine/index.js +1 -39
- package/dist/components/templates/index.js +11 -965
- package/dist/components/templates/messaging/ConversationList.js +2 -83
- package/dist/components/templates/messaging/MessageComposer.js +4 -150
- package/dist/components/templates/messaging/MessageThread.js +3 -83
- package/dist/components/templates/messaging/MessagingWorkspace.js +5 -265
- package/dist/components/templates/messaging/index.js +5 -269
- package/dist/components/templates/recipes/LanguageSwitcher.js +1 -16
- package/dist/components/templates/recipes/RecipeCard.js +1 -80
- package/dist/components/templates/recipes/RecipeDetail.js +1 -74
- package/dist/components/templates/recipes/RecipeList.js +3 -245
- package/dist/components/templates/recipes/index.js +3 -248
- package/dist/components/templates/todos/FilterBar.js +1 -107
- package/dist/components/templates/todos/TaskForm.js +2 -158
- package/dist/components/templates/todos/TaskItem.js +1 -77
- package/dist/components/templates/todos/TaskList.js +5 -449
- package/dist/components/templates/todos/index.js +5 -452
- package/dist/config/contractspec-blueprint.js +1 -123
- package/dist/config/contractspec-branding.js +1 -44
- package/dist/config/contractspec-routes.js +1 -24
- package/dist/config/index.js +1 -126
- package/dist/features/contracts-registry.js +1 -178
- package/dist/features/docs/docs.contracts.js +1 -17
- package/dist/features/docs/index.js +1 -17
- package/dist/features/docs.feature.js +1 -33
- package/dist/features/index.js +1 -315
- package/dist/features/mcp.feature.js +1 -30
- package/dist/features/presentations.feature.js +1 -33
- package/dist/features/registry.js +1 -116
- package/dist/index.js +556 -28593
- package/dist/infrastructure/elysia/index.js +1 -35
- package/dist/infrastructure/elysia/logger.js +1 -35
- package/dist/infrastructure/index.js +1 -35
- package/dist/libs/email/client.js +1 -114
- package/dist/libs/email/contact.js +12 -165
- package/dist/libs/email/newsletter.js +6 -167
- package/dist/libs/email/types.js +0 -2
- package/dist/libs/email/utils.js +2 -8
- package/dist/libs/email/waitlist-application.js +28 -209
- package/dist/libs/email/waitlist.js +6 -167
- package/dist/libs/email.js +46 -363
- package/dist/libs/posthog/client.js +1 -63
- package/dist/libs/posthog/native.js +1 -23
- package/dist/libs/posthog/server.js +1 -13
- package/dist/libs/pricing-examples.js +1 -18
- package/dist/node/application/context-storage/index.js +1 -28
- package/dist/node/application/index.js +13 -2133
- package/dist/node/application/mcp/cliMcp.js +4 -452
- package/dist/node/application/mcp/common.js +1 -193
- package/dist/node/application/mcp/contractsMcp.js +2 -549
- package/dist/node/application/mcp/contractsMcpResources.js +2 -123
- package/dist/node/application/mcp/contractsMcpTools.js +1 -199
- package/dist/node/application/mcp/docsMcp.catalog.js +3 -381
- package/dist/node/application/mcp/docsMcp.data.js +1 -147
- package/dist/node/application/mcp/docsMcp.js +6 -1039
- package/dist/node/application/mcp/docsMcp.prompts.js +6 -521
- package/dist/node/application/mcp/docsMcp.reference.js +3 -235
- package/dist/node/application/mcp/docsMcp.resources.js +3 -519
- package/dist/node/application/mcp/docsMcp.tools.js +3 -518
- package/dist/node/application/mcp/index.js +13 -2106
- package/dist/node/application/mcp/internalMcp.js +2 -410
- package/dist/node/application/mcp/normalizeMcpRequest.js +1 -21
- package/dist/node/application/mcp/providerRankingMcp.js +1 -530
- package/dist/node/bundles/LibraryBundle.js +1 -138
- package/dist/node/bundles/index.js +1 -138
- package/dist/node/components/docs/DocsIndexPage.js +2 -912
- package/dist/node/components/docs/advanced/AdvancedMCPPage.js +4 -271
- package/dist/node/components/docs/advanced/AdvancedOverlayEditorPage.js +1 -107
- package/dist/node/components/docs/advanced/AdvancedRenderersPage.js +2 -118
- package/dist/node/components/docs/advanced/AdvancedSpecExperimentsPage.js +4 -92
- package/dist/node/components/docs/advanced/AdvancedTelemetryPage.js +2 -373
- package/dist/node/components/docs/advanced/AdvancedWorkflowMonitoringPage.js +2 -99
- package/dist/node/components/docs/advanced/index.js +10 -1055
- package/dist/node/components/docs/architecture/ArchitectureAppConfigPage.js +6 -243
- package/dist/node/components/docs/architecture/ArchitectureControlPlanePage.js +3 -160
- package/dist/node/components/docs/architecture/ArchitectureIntegrationBindingPage.js +7 -259
- package/dist/node/components/docs/architecture/ArchitectureKnowledgeBindingPage.js +6 -374
- package/dist/node/components/docs/architecture/ArchitectureMultiTenancyPage.js +2 -166
- package/dist/node/components/docs/architecture/ArchitectureOverviewPage.js +1 -143
- package/dist/node/components/docs/architecture/index.js +20 -1340
- package/dist/node/components/docs/comparison/ComparisonAutomationPlatformsPage.js +1 -245
- package/dist/node/components/docs/comparison/ComparisonEnterprisePlatformsPage.js +1 -230
- package/dist/node/components/docs/comparison/ComparisonInternalToolBuildersPage.js +1 -245
- package/dist/node/components/docs/comparison/ComparisonOverviewPage.js +1 -202
- package/dist/node/components/docs/comparison/ComparisonWindmillPage.js +1 -254
- package/dist/node/components/docs/comparison/ComparisonWorkflowEnginesPage.js +1 -339
- package/dist/node/components/docs/comparison/index.js +1 -1510
- package/dist/node/components/docs/docsManifest.js +1 -611
- package/dist/node/components/docs/ecosystem/IntegrationsPage.js +2 -103
- package/dist/node/components/docs/ecosystem/PluginsPage.js +13 -179
- package/dist/node/components/docs/ecosystem/RegistryPage.js +7 -100
- package/dist/node/components/docs/ecosystem/TemplatesPage.js +3 -141
- package/dist/node/components/docs/ecosystem/ecosystem.docblocks.js +2 -48
- package/dist/node/components/docs/ecosystem/index.js +23 -569
- package/dist/node/components/docs/examples/DocsExamplesPage.js +4 -124
- package/dist/node/components/docs/examples/ExampleShowcasePage.js +4 -244
- package/dist/node/components/docs/examples/exampleShowcaseData.js +4 -39
- package/dist/node/components/docs/examples/index.js +4 -330
- package/dist/node/components/docs/generated/docs-index.generated.js +1 -5
- package/dist/node/components/docs/generated/index.js +1 -74
- package/dist/node/components/docs/generated/loader.js +1 -74
- package/dist/node/components/docs/getting-started/CLIPage.js +4 -271
- package/dist/node/components/docs/getting-started/CompatibilityPage.js +1 -173
- package/dist/node/components/docs/getting-started/DataViewTutorialPage.js +4 -134
- package/dist/node/components/docs/getting-started/DeveloperToolsPage.js +1 -194
- package/dist/node/components/docs/getting-started/HelloWorldPage.js +5 -183
- package/dist/node/components/docs/getting-started/InstallationPage.js +3 -154
- package/dist/node/components/docs/getting-started/StartHerePage.js +2 -129
- package/dist/node/components/docs/getting-started/TroubleshootingPage.js +2 -168
- package/dist/node/components/docs/getting-started/VSCodeExtensionPage.js +1 -432
- package/dist/node/components/docs/getting-started/getting-started.docblocks.js +4 -41
- package/dist/node/components/docs/getting-started/index.js +18 -1869
- package/dist/node/components/docs/guides/GuideCIDiffGatingPage.js +2 -196
- package/dist/node/components/docs/guides/GuideConnectInRepoPage.js +43 -0
- package/dist/node/components/docs/guides/GuideContractTypesPage.js +6 -541
- package/dist/node/components/docs/guides/GuideDocsPipelinePage.js +3 -207
- package/dist/node/components/docs/guides/GuideFirstModuleBundlePage.js +75 -0
- package/dist/node/components/docs/guides/GuideGenerateDocsClientsSchemasPage.js +2 -209
- package/dist/node/components/docs/guides/GuideHostBuilderWorkbenchPage.js +69 -0
- package/dist/node/components/docs/guides/GuideImportExistingCodebasesPage.js +8 -754
- package/dist/node/components/docs/guides/GuideNextjsOneEndpointPage.js +6 -268
- package/dist/node/components/docs/guides/GuideSpecValidationTypingPage.js +4 -196
- package/dist/node/components/docs/guides/GuidesIndexPage.js +2 -169
- package/dist/node/components/docs/guides/guides.docblocks.js +11 -75
- package/dist/node/components/docs/guides/index.js +213 -2428
- package/dist/node/components/docs/index.js +542 -24310
- package/dist/node/components/docs/integrations/IntegrationsCircuitBreakersPage.js +2 -42
- package/dist/node/components/docs/integrations/IntegrationsElevenLabsPage.js +3 -105
- package/dist/node/components/docs/integrations/IntegrationsGithubPage.js +3 -142
- package/dist/node/components/docs/integrations/IntegrationsGmailPage.js +3 -109
- package/dist/node/components/docs/integrations/IntegrationsGoogleCalendarPage.js +3 -79
- package/dist/node/components/docs/integrations/IntegrationsHealthRoutingPage.js +3 -146
- package/dist/node/components/docs/integrations/IntegrationsMistralPage.js +5 -150
- package/dist/node/components/docs/integrations/IntegrationsOpenAIPage.js +5 -140
- package/dist/node/components/docs/integrations/IntegrationsOverviewPage.js +1 -160
- package/dist/node/components/docs/integrations/IntegrationsPostmarkPage.js +4 -218
- package/dist/node/components/docs/integrations/IntegrationsPowensPage.js +4 -300
- package/dist/node/components/docs/integrations/IntegrationsQdrantPage.js +5 -111
- package/dist/node/components/docs/integrations/IntegrationsResendPage.js +3 -102
- package/dist/node/components/docs/integrations/IntegrationsS3Page.js +4 -124
- package/dist/node/components/docs/integrations/IntegrationsSlackPage.js +3 -144
- package/dist/node/components/docs/integrations/IntegrationsSpecModelPage.js +7 -290
- package/dist/node/components/docs/integrations/IntegrationsStripePage.js +6 -327
- package/dist/node/components/docs/integrations/IntegrationsTwilioPage.js +3 -128
- package/dist/node/components/docs/integrations/IntegrationsWhatsappMetaPage.js +2 -146
- package/dist/node/components/docs/integrations/IntegrationsWhatsappTwilioPage.js +2 -156
- package/dist/node/components/docs/integrations/index.js +52 -3100
- package/dist/node/components/docs/intent/ContractFirstApiPage.js +2 -126
- package/dist/node/components/docs/intent/DeterministicCodegenPage.js +2 -148
- package/dist/node/components/docs/intent/GenerateClientFromSchemaPage.js +7 -207
- package/dist/node/components/docs/intent/OpenapiAlternativePage.js +3 -201
- package/dist/node/components/docs/intent/SchemaValidationTypescriptPage.js +4 -144
- package/dist/node/components/docs/intent/SpecDrivenDevelopmentPage.js +2 -126
- package/dist/node/components/docs/intent/index.js +15 -1135
- package/dist/node/components/docs/intent/intent-pages.docblocks.js +1 -201
- package/dist/node/components/docs/knowledge/KnowledgeCategoriesPage.js +6 -750
- package/dist/node/components/docs/knowledge/KnowledgeExamplesPage.js +4 -175
- package/dist/node/components/docs/knowledge/KnowledgeOverviewPage.js +1 -116
- package/dist/node/components/docs/knowledge/KnowledgeSourcesPage.js +8 -391
- package/dist/node/components/docs/knowledge/KnowledgeSpacesPage.js +6 -302
- package/dist/node/components/docs/knowledge/index.js +21 -1730
- package/dist/node/components/docs/libraries/LibrariesAccessibilityPage.js +3 -198
- package/dist/node/components/docs/libraries/LibrariesAiAgentPage.js +3 -141
- package/dist/node/components/docs/libraries/LibrariesAnalyticsPage.js +4 -80
- package/dist/node/components/docs/libraries/LibrariesContentGenPage.js +2 -100
- package/dist/node/components/docs/libraries/LibrariesContractsPage.js +2 -284
- package/dist/node/components/docs/libraries/LibrariesCostTrackingPage.js +3 -112
- package/dist/node/components/docs/libraries/LibrariesDataBackendPage.js +2 -166
- package/dist/node/components/docs/libraries/LibrariesDataViewsPage.js +3 -186
- package/dist/node/components/docs/libraries/LibrariesDesignSystemPage.js +4 -279
- package/dist/node/components/docs/libraries/LibrariesEvolutionPage.js +4 -127
- package/dist/node/components/docs/libraries/LibrariesGraphQLPage.js +2 -173
- package/dist/node/components/docs/libraries/LibrariesGrowthPage.js +3 -88
- package/dist/node/components/docs/libraries/LibrariesMultiTenancyPage.js +3 -108
- package/dist/node/components/docs/libraries/LibrariesObservabilityPage.js +5 -130
- package/dist/node/components/docs/libraries/LibrariesOverlayEnginePage.js +4 -110
- package/dist/node/components/docs/libraries/LibrariesOverviewPage.js +1 -170
- package/dist/node/components/docs/libraries/LibrariesPersonalizationPage.js +4 -114
- package/dist/node/components/docs/libraries/LibrariesProgressiveDeliveryPage.js +3 -132
- package/dist/node/components/docs/libraries/LibrariesResiliencePage.js +4 -120
- package/dist/node/components/docs/libraries/LibrariesRuntimePage.js +2 -200
- package/dist/node/components/docs/libraries/LibrariesSLOPage.js +3 -116
- package/dist/node/components/docs/libraries/LibrariesSchemaPage.js +3 -273
- package/dist/node/components/docs/libraries/LibrariesSupportBotPage.js +3 -134
- package/dist/node/components/docs/libraries/LibrariesTestingPage.js +3 -133
- package/dist/node/components/docs/libraries/LibrariesUIKitPage.js +2 -230
- package/dist/node/components/docs/libraries/LibrariesWorkflowComposerPage.js +3 -88
- package/dist/node/components/docs/libraries/LibrariesWorkflowsPage.js +2 -181
- package/dist/node/components/docs/libraries/index.js +54 -4147
- package/dist/node/components/docs/manifesto/ManifestoPage.js +1 -86
- package/dist/node/components/docs/ops/AutoEvolutionOpsPage.js +2 -132
- package/dist/node/components/docs/ops/DistributedTracingOpsPage.js +2 -71
- package/dist/node/components/docs/ops/index.js +3 -202
- package/dist/node/components/docs/ops/ops-lifecycle.docblocks.js +3 -38
- package/dist/node/components/docs/ops/ops-runbooks-a.docblocks.js +3 -94
- package/dist/node/components/docs/ops/ops-runbooks-b.docblocks.js +3 -76
- package/dist/node/components/docs/ops/ops-slo-tenant.docblocks.js +3 -76
- package/dist/node/components/docs/ops/ops-top.docs.js +2 -17
- package/dist/node/components/docs/ops/ops.docs.js +10 -302
- package/dist/node/components/docs/product/product.docblocks.js +5 -72
- package/dist/node/components/docs/reference/DocsMarkdownContent.js +2 -196
- package/dist/node/components/docs/reference/DocsReferenceContent.js +3 -256
- package/dist/node/components/docs/reference/DocsReferenceIndexClient.js +2 -127
- package/dist/node/components/docs/reference/DocsReferenceIndexPage.js +2 -206
- package/dist/node/components/docs/reference/DocsReferencePage.js +3 -265
- package/dist/node/components/docs/reference/docsMarkdownParser.js +2 -92
- package/dist/node/components/docs/reference/index.js +4 -470
- package/dist/node/components/docs/safety/SafetyAuditingPage.js +2 -350
- package/dist/node/components/docs/safety/SafetyMigrationsPage.js +2 -359
- package/dist/node/components/docs/safety/SafetyOverviewPage.js +1 -101
- package/dist/node/components/docs/safety/SafetyPDPPage.js +2 -301
- package/dist/node/components/docs/safety/SafetySecurityTrustPage.js +1 -206
- package/dist/node/components/docs/safety/SafetySigningPage.js +3 -90
- package/dist/node/components/docs/safety/SafetyTenantIsolationPage.js +2 -79
- package/dist/node/components/docs/safety/index.js +7 -1480
- package/dist/node/components/docs/shared/StudioPrompt.js +1 -31
- package/dist/node/components/docs/specs/SpecsBuilderControlPlanePage.js +33 -0
- package/dist/node/components/docs/specs/SpecsCapabilitiesPage.js +2 -158
- package/dist/node/components/docs/specs/SpecsConnectPage.js +7 -0
- package/dist/node/components/docs/specs/SpecsDataViewsPage.js +2 -260
- package/dist/node/components/docs/specs/SpecsModuleBundlesPage.js +66 -0
- package/dist/node/components/docs/specs/SpecsOverlaysPage.js +2 -372
- package/dist/node/components/docs/specs/SpecsOverviewPage.js +1 -186
- package/dist/node/components/docs/specs/SpecsPolicyPage.js +3 -420
- package/dist/node/components/docs/specs/SpecsWorkflowsPage.js +2 -325
- package/dist/node/components/docs/specs/index.js +109 -1715
- package/dist/node/components/docs/studio/StudioBYOKPage.js +1 -26
- package/dist/node/components/docs/studio/StudioDeploymentsPage.js +1 -26
- package/dist/node/components/docs/studio/StudioGettingStartedPage.js +1 -26
- package/dist/node/components/docs/studio/StudioIntegrationsPage.js +1 -26
- package/dist/node/components/docs/studio/StudioOverviewPage.js +1 -157
- package/dist/node/components/docs/studio/StudioVisualBuilderPage.js +1 -26
- package/dist/node/components/docs/studio/index.js +1 -282
- package/dist/node/components/docs/tech/contracts/tech-docs.docblocks.js +2 -19
- package/dist/node/components/integrations/index.js +2 -600
- package/dist/node/components/integrations/molecules/IntegrationCard.js +1 -100
- package/dist/node/components/integrations/organisms/IntegrationMarketplace.js +1 -214
- package/dist/node/components/integrations/organisms/IntegrationSettings.js +2 -284
- package/dist/node/components/integrations/organisms/KnowledgeSourceList.js +1 -103
- package/dist/node/components/legal/PrivacyTemplate.js +1 -1025
- package/dist/node/components/legal/TermsTemplate.js +1 -941
- package/dist/node/components/legal/index.js +1 -1963
- package/dist/node/components/shared/FeatureGateNotice.js +1 -38
- package/dist/node/components/shared/index.js +1 -38
- package/dist/node/components/shell/WorkspaceHeader.js +1 -100
- package/dist/node/components/shell/WorkspaceProjectShellLayout.js +1 -222
- package/dist/node/components/shell/WorkspaceShellRenderer.js +1 -228
- package/dist/node/components/shell/WorkspaceSidebar.js +1 -68
- package/dist/node/components/shell/index.js +1 -287
- package/dist/node/components/templates/engine/index.js +1 -39
- package/dist/node/components/templates/index.js +11 -965
- package/dist/node/components/templates/messaging/ConversationList.js +2 -83
- package/dist/node/components/templates/messaging/MessageComposer.js +4 -150
- package/dist/node/components/templates/messaging/MessageThread.js +3 -83
- package/dist/node/components/templates/messaging/MessagingWorkspace.js +5 -265
- package/dist/node/components/templates/messaging/index.js +5 -269
- package/dist/node/components/templates/recipes/LanguageSwitcher.js +1 -16
- package/dist/node/components/templates/recipes/RecipeCard.js +1 -80
- package/dist/node/components/templates/recipes/RecipeDetail.js +1 -74
- package/dist/node/components/templates/recipes/RecipeList.js +3 -245
- package/dist/node/components/templates/recipes/index.js +3 -248
- package/dist/node/components/templates/todos/FilterBar.js +1 -107
- package/dist/node/components/templates/todos/TaskForm.js +2 -158
- package/dist/node/components/templates/todos/TaskItem.js +1 -77
- package/dist/node/components/templates/todos/TaskList.js +5 -449
- package/dist/node/components/templates/todos/index.js +5 -452
- package/dist/node/config/contractspec-blueprint.js +1 -123
- package/dist/node/config/contractspec-branding.js +1 -44
- package/dist/node/config/contractspec-routes.js +1 -24
- package/dist/node/config/index.js +1 -126
- package/dist/node/features/contracts-registry.js +1 -178
- package/dist/node/features/docs/docs.contracts.js +1 -17
- package/dist/node/features/docs/index.js +1 -17
- package/dist/node/features/docs.feature.js +1 -33
- package/dist/node/features/index.js +1 -315
- package/dist/node/features/mcp.feature.js +1 -30
- package/dist/node/features/presentations.feature.js +1 -33
- package/dist/node/features/registry.js +1 -116
- package/dist/node/index.js +556 -28593
- package/dist/node/infrastructure/elysia/index.js +1 -35
- package/dist/node/infrastructure/elysia/logger.js +1 -35
- package/dist/node/infrastructure/index.js +1 -35
- package/dist/node/libs/email/client.js +1 -114
- package/dist/node/libs/email/contact.js +12 -165
- package/dist/node/libs/email/newsletter.js +6 -167
- package/dist/node/libs/email/types.js +0 -2
- package/dist/node/libs/email/utils.js +2 -8
- package/dist/node/libs/email/waitlist-application.js +28 -209
- package/dist/node/libs/email/waitlist.js +6 -167
- package/dist/node/libs/email.js +46 -363
- package/dist/node/libs/posthog/client.js +1 -63
- package/dist/node/libs/posthog/native.js +1 -23
- package/dist/node/libs/posthog/server.js +1 -13
- package/dist/node/libs/pricing-examples.js +1 -18
- package/dist/node/presentation/features/atoms/FeatureIcon/FeatureIcon.js +1 -97
- package/dist/node/presentation/features/atoms/FeatureIcon/index.js +1 -97
- package/dist/node/presentation/features/atoms/index.js +1 -97
- package/dist/node/presentation/features/hooks/index.js +1 -397
- package/dist/node/presentation/features/hooks/useContractsRegistry.js +1 -289
- package/dist/node/presentation/features/hooks/useFeatureFilters.js +1 -75
- package/dist/node/presentation/features/hooks/useFeatureRegistry.js +1 -147
- package/dist/node/presentation/features/hooks/useRelatedDocs.js +1 -28
- package/dist/node/presentation/features/index.js +1 -3063
- package/dist/node/presentation/features/molecules/FeatureCard/FeatureCard.js +1 -366
- package/dist/node/presentation/features/molecules/FeatureCard/index.js +1 -366
- package/dist/node/presentation/features/molecules/FeatureCategoryHeader/FeatureCategoryHeader.js +1 -50
- package/dist/node/presentation/features/molecules/FeatureCategoryHeader/index.js +1 -50
- package/dist/node/presentation/features/molecules/FeatureFilters/FeatureFilters.js +1 -92
- package/dist/node/presentation/features/molecules/FeatureFilters/index.js +1 -92
- package/dist/node/presentation/features/molecules/FeatureHoverPreview/FeatureHoverPreview.js +1 -176
- package/dist/node/presentation/features/molecules/FeatureHoverPreview/index.js +1 -176
- package/dist/node/presentation/features/molecules/index.js +1 -505
- package/dist/node/presentation/features/organisms/FeatureDataViewsList.js +1 -304
- package/dist/node/presentation/features/organisms/FeatureDetail/FeatureDetail.js +1 -154
- package/dist/node/presentation/features/organisms/FeatureDetail/index.js +1 -154
- package/dist/node/presentation/features/organisms/FeatureDiscovery/FeatureDiscovery.js +1 -909
- package/dist/node/presentation/features/organisms/FeatureDiscovery/index.js +1 -909
- package/dist/node/presentation/features/organisms/FeatureEventsList.js +1 -302
- package/dist/node/presentation/features/organisms/FeatureFormsList.js +1 -302
- package/dist/node/presentation/features/organisms/FeatureOperationsList.js +1 -180
- package/dist/node/presentation/features/organisms/FeaturePresentationsList.js +1 -304
- package/dist/node/presentation/features/organisms/index.js +1 -1359
- package/dist/node/presentation/features/templates/FeatureDataViewDetailTemplate/FeatureDataViewDetailTemplate.js +1 -332
- package/dist/node/presentation/features/templates/FeatureDataViewDetailTemplate/index.js +1 -332
- package/dist/node/presentation/features/templates/FeatureDataViewsTemplate/FeatureDataViewsTemplate.js +1 -342
- package/dist/node/presentation/features/templates/FeatureDataViewsTemplate/index.js +1 -342
- package/dist/node/presentation/features/templates/FeatureEventDetailTemplate/FeatureEventDetailTemplate.js +1 -303
- package/dist/node/presentation/features/templates/FeatureEventDetailTemplate/index.js +1 -303
- package/dist/node/presentation/features/templates/FeatureEventsTemplate/FeatureEventsTemplate.js +1 -340
- package/dist/node/presentation/features/templates/FeatureEventsTemplate/index.js +1 -340
- package/dist/node/presentation/features/templates/FeatureFormDetailTemplate/FeatureFormDetailTemplate.js +1 -329
- package/dist/node/presentation/features/templates/FeatureFormDetailTemplate/index.js +1 -329
- package/dist/node/presentation/features/templates/FeatureFormsTemplate/FeatureFormsTemplate.js +1 -340
- package/dist/node/presentation/features/templates/FeatureFormsTemplate/index.js +1 -340
- package/dist/node/presentation/features/templates/FeatureOperationDetailTemplate/FeatureOperationDetailTemplate.js +1 -302
- package/dist/node/presentation/features/templates/FeatureOperationDetailTemplate/index.js +1 -302
- package/dist/node/presentation/features/templates/FeatureOperationsTemplate/FeatureOperationsTemplate.js +1 -218
- package/dist/node/presentation/features/templates/FeatureOperationsTemplate/index.js +1 -218
- package/dist/node/presentation/features/templates/FeatureOverviewTemplate/FeatureOverviewTemplate.js +1 -187
- package/dist/node/presentation/features/templates/FeatureOverviewTemplate/index.js +1 -187
- package/dist/node/presentation/features/templates/FeaturePresentationDetailTemplate/FeaturePresentationDetailTemplate.js +1 -306
- package/dist/node/presentation/features/templates/FeaturePresentationDetailTemplate/index.js +1 -306
- package/dist/node/presentation/features/templates/FeaturePresentationsTemplate/FeaturePresentationsTemplate.js +1 -342
- package/dist/node/presentation/features/templates/FeaturePresentationsTemplate/index.js +1 -342
- package/dist/presentation/features/atoms/FeatureIcon/FeatureIcon.js +1 -97
- package/dist/presentation/features/atoms/FeatureIcon/index.js +1 -97
- package/dist/presentation/features/atoms/index.js +1 -97
- package/dist/presentation/features/hooks/index.js +1 -397
- package/dist/presentation/features/hooks/useContractsRegistry.js +1 -289
- package/dist/presentation/features/hooks/useFeatureFilters.js +1 -75
- package/dist/presentation/features/hooks/useFeatureRegistry.js +1 -147
- package/dist/presentation/features/hooks/useRelatedDocs.js +1 -28
- package/dist/presentation/features/index.js +1 -3063
- package/dist/presentation/features/molecules/FeatureCard/FeatureCard.js +1 -366
- package/dist/presentation/features/molecules/FeatureCard/index.js +1 -366
- package/dist/presentation/features/molecules/FeatureCategoryHeader/FeatureCategoryHeader.js +1 -50
- package/dist/presentation/features/molecules/FeatureCategoryHeader/index.js +1 -50
- package/dist/presentation/features/molecules/FeatureFilters/FeatureFilters.js +1 -92
- package/dist/presentation/features/molecules/FeatureFilters/index.js +1 -92
- package/dist/presentation/features/molecules/FeatureHoverPreview/FeatureHoverPreview.js +1 -176
- package/dist/presentation/features/molecules/FeatureHoverPreview/index.js +1 -176
- package/dist/presentation/features/molecules/index.js +1 -505
- package/dist/presentation/features/organisms/FeatureDataViewsList.js +1 -304
- package/dist/presentation/features/organisms/FeatureDetail/FeatureDetail.js +1 -154
- package/dist/presentation/features/organisms/FeatureDetail/index.js +1 -154
- package/dist/presentation/features/organisms/FeatureDiscovery/FeatureDiscovery.js +1 -909
- package/dist/presentation/features/organisms/FeatureDiscovery/index.js +1 -909
- package/dist/presentation/features/organisms/FeatureEventsList.js +1 -302
- package/dist/presentation/features/organisms/FeatureFormsList.js +1 -302
- package/dist/presentation/features/organisms/FeatureOperationsList.js +1 -180
- package/dist/presentation/features/organisms/FeaturePresentationsList.js +1 -304
- package/dist/presentation/features/organisms/index.js +1 -1359
- package/dist/presentation/features/templates/FeatureDataViewDetailTemplate/FeatureDataViewDetailTemplate.js +1 -332
- package/dist/presentation/features/templates/FeatureDataViewDetailTemplate/index.js +1 -332
- package/dist/presentation/features/templates/FeatureDataViewsTemplate/FeatureDataViewsTemplate.js +1 -342
- package/dist/presentation/features/templates/FeatureDataViewsTemplate/index.js +1 -342
- package/dist/presentation/features/templates/FeatureEventDetailTemplate/FeatureEventDetailTemplate.js +1 -303
- package/dist/presentation/features/templates/FeatureEventDetailTemplate/index.js +1 -303
- package/dist/presentation/features/templates/FeatureEventsTemplate/FeatureEventsTemplate.js +1 -340
- package/dist/presentation/features/templates/FeatureEventsTemplate/index.js +1 -340
- package/dist/presentation/features/templates/FeatureFormDetailTemplate/FeatureFormDetailTemplate.js +1 -329
- package/dist/presentation/features/templates/FeatureFormDetailTemplate/index.js +1 -329
- package/dist/presentation/features/templates/FeatureFormsTemplate/FeatureFormsTemplate.js +1 -340
- package/dist/presentation/features/templates/FeatureFormsTemplate/index.js +1 -340
- package/dist/presentation/features/templates/FeatureOperationDetailTemplate/FeatureOperationDetailTemplate.js +1 -302
- package/dist/presentation/features/templates/FeatureOperationDetailTemplate/index.js +1 -302
- package/dist/presentation/features/templates/FeatureOperationsTemplate/FeatureOperationsTemplate.js +1 -218
- package/dist/presentation/features/templates/FeatureOperationsTemplate/index.js +1 -218
- package/dist/presentation/features/templates/FeatureOverviewTemplate/FeatureOverviewTemplate.js +1 -187
- package/dist/presentation/features/templates/FeatureOverviewTemplate/index.js +1 -187
- package/dist/presentation/features/templates/FeaturePresentationDetailTemplate/FeaturePresentationDetailTemplate.js +1 -306
- package/dist/presentation/features/templates/FeaturePresentationDetailTemplate/index.js +1 -306
- package/dist/presentation/features/templates/FeaturePresentationsTemplate/FeaturePresentationsTemplate.js +1 -342
- package/dist/presentation/features/templates/FeaturePresentationsTemplate/index.js +1 -342
- package/package.json +103 -31
- package/src/components/docs/DocsIndexPage.tsx +55 -0
- package/src/components/docs/architecture/ArchitectureControlPlanePage.tsx +19 -0
- package/src/components/docs/architecture/ArchitectureOverviewPage.tsx +34 -0
- package/src/components/docs/docsManifest.test.ts +70 -0
- package/src/components/docs/docsManifest.ts +71 -1
- package/src/components/docs/ecosystem/PluginsPage.tsx +24 -10
- package/src/components/docs/ecosystem/RegistryPage.tsx +11 -6
- package/src/components/docs/generated/docs-index._common.json +206 -273
- package/src/components/docs/generated/docs-index.control-plane.json +18 -0
- package/src/components/docs/generated/docs-index.defineExample.json +10 -0
- package/src/components/docs/generated/docs-index.manifest.json +22 -12
- package/src/components/docs/generated/docs-index.platform-acp.json +64 -0
- package/src/components/docs/generated/docs-index.platform-agent.json +89 -1
- package/src/components/docs/generated/docs-index.platform-context.json +48 -0
- package/src/components/docs/generated/docs-index.platform-control-plane.json +72 -0
- package/src/components/docs/generated/docs-index.platform-database.json +40 -0
- package/src/components/docs/generated/docs-index.platform-docs.json +64 -0
- package/src/components/docs/generated/docs-index.platform-provider-ranking.json +89 -1
- package/src/components/docs/generated/docs-index.pocket-family-office.json +8 -0
- package/src/components/docs/generated/docs-index.unknown.json +8 -0
- package/src/components/docs/guides/GuideConnectInRepoPage.tsx +184 -0
- package/src/components/docs/guides/GuideFirstModuleBundlePage.tsx +182 -0
- package/src/components/docs/guides/GuideHostBuilderWorkbenchPage.tsx +230 -0
- package/src/components/docs/guides/GuidesIndexPage.tsx +21 -0
- package/src/components/docs/guides/index.ts +3 -0
- package/src/components/docs/specs/SpecsBuilderControlPlanePage.tsx +210 -0
- package/src/components/docs/specs/SpecsConnectPage.tsx +162 -0
- package/src/components/docs/specs/SpecsModuleBundlesPage.tsx +223 -0
- package/src/components/docs/specs/SpecsOverlaysPage.tsx +20 -0
- package/src/components/docs/specs/SpecsOverviewPage.tsx +44 -0
- package/src/components/docs/specs/index.ts +3 -0
- package/src/components/docs/studio/StudioOverviewPage.tsx +26 -0
- package/src/infrastructure/elysia/logger.ts +11 -3
|
@@ -1,518 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var MAX_LIMIT = 100;
|
|
5
|
-
function normalizeText(value) {
|
|
6
|
-
return value?.trim().toLowerCase() ?? "";
|
|
7
|
-
}
|
|
8
|
-
function normalizeRoute(route) {
|
|
9
|
-
const decoded = decodeURIComponent(route).trim();
|
|
10
|
-
if (!decoded)
|
|
11
|
-
return "/";
|
|
12
|
-
return decoded.startsWith("/") ? decoded : `/${decoded}`;
|
|
13
|
-
}
|
|
14
|
-
function normalizeTags(value) {
|
|
15
|
-
const tags = Array.isArray(value) ? value : value ? [value] : [];
|
|
16
|
-
return tags.map((tag) => normalizeText(tag)).filter(Boolean);
|
|
17
|
-
}
|
|
18
|
-
function clampLimit(limit) {
|
|
19
|
-
if (!limit || Number.isNaN(limit))
|
|
20
|
-
return DEFAULT_LIMIT;
|
|
21
|
-
return Math.min(Math.max(limit, 1), MAX_LIMIT);
|
|
22
|
-
}
|
|
23
|
-
function clampOffset(offset) {
|
|
24
|
-
if (!offset || Number.isNaN(offset))
|
|
25
|
-
return 0;
|
|
26
|
-
return Math.max(offset, 0);
|
|
27
|
-
}
|
|
28
|
-
function toDocSummary({ block, route }) {
|
|
29
|
-
return {
|
|
30
|
-
id: block.id,
|
|
31
|
-
title: block.title,
|
|
32
|
-
summary: block.summary ?? "",
|
|
33
|
-
route,
|
|
34
|
-
visibility: block.visibility ?? "public",
|
|
35
|
-
kind: block.kind ?? "reference",
|
|
36
|
-
version: block.version ?? "1.0.0",
|
|
37
|
-
tags: block.tags ?? []
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function scoreDoc(route, query) {
|
|
41
|
-
if (!query)
|
|
42
|
-
return 1;
|
|
43
|
-
const tokens = query.split(/\s+/).filter(Boolean);
|
|
44
|
-
const title = normalizeText(route.block.title);
|
|
45
|
-
const id = normalizeText(route.block.id);
|
|
46
|
-
const summary = normalizeText(route.block.summary);
|
|
47
|
-
const body = normalizeText(route.block.body);
|
|
48
|
-
const path = normalizeText(route.route);
|
|
49
|
-
const tags = (route.block.tags ?? []).map((tag) => normalizeText(tag));
|
|
50
|
-
const haystack = [title, id, summary, body, path, ...tags].join(" ");
|
|
51
|
-
if (tokens.some((token) => !haystack.includes(token)))
|
|
52
|
-
return 0;
|
|
53
|
-
let score = 0;
|
|
54
|
-
for (const token of tokens) {
|
|
55
|
-
if (id.includes(token))
|
|
56
|
-
score += 8;
|
|
57
|
-
if (title.includes(token))
|
|
58
|
-
score += 7;
|
|
59
|
-
if (tags.some((tag) => tag.includes(token)))
|
|
60
|
-
score += 5;
|
|
61
|
-
if (summary.includes(token))
|
|
62
|
-
score += 4;
|
|
63
|
-
if (path.includes(token))
|
|
64
|
-
score += 3;
|
|
65
|
-
if (body.includes(token))
|
|
66
|
-
score += 2;
|
|
67
|
-
}
|
|
68
|
-
return score;
|
|
69
|
-
}
|
|
70
|
-
function searchDocs(routes, args) {
|
|
71
|
-
const query = normalizeText(typeof args.query === "string" ? args.query : undefined);
|
|
72
|
-
const tags = normalizeTags(args.tag);
|
|
73
|
-
const visibility = normalizeText(typeof args.visibility === "string" ? args.visibility : undefined);
|
|
74
|
-
const kind = normalizeText(typeof args.kind === "string" ? args.kind : undefined);
|
|
75
|
-
const limit = clampLimit(typeof args.limit === "number" ? args.limit : undefined);
|
|
76
|
-
const offset = clampOffset(typeof args.offset === "number" ? args.offset : undefined);
|
|
77
|
-
const ranked = routes.map((route) => ({
|
|
78
|
-
doc: toDocSummary(route),
|
|
79
|
-
score: scoreDoc(route, query)
|
|
80
|
-
})).filter(({ doc, score }) => {
|
|
81
|
-
const matchesQuery = query ? score > 0 : true;
|
|
82
|
-
const matchesTags = tags.length ? tags.every((tag) => doc.tags.some((docTag) => normalizeText(docTag).includes(tag))) : true;
|
|
83
|
-
const matchesVisibility = visibility ? normalizeText(doc.visibility) === visibility : true;
|
|
84
|
-
const matchesKind = kind ? normalizeText(doc.kind) === kind : true;
|
|
85
|
-
return matchesQuery && matchesTags && matchesVisibility && matchesKind;
|
|
86
|
-
}).sort((left, right) => {
|
|
87
|
-
if (right.score !== left.score)
|
|
88
|
-
return right.score - left.score;
|
|
89
|
-
return left.doc.title.localeCompare(right.doc.title);
|
|
90
|
-
});
|
|
91
|
-
const docs = ranked.slice(offset, offset + limit).map(({ doc }) => doc);
|
|
92
|
-
const nextOffset = offset + docs.length < ranked.length ? offset + docs.length : undefined;
|
|
93
|
-
return {
|
|
94
|
-
docs,
|
|
95
|
-
items: docs,
|
|
96
|
-
total: ranked.length,
|
|
97
|
-
...nextOffset != null ? { nextOffset } : {}
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
function getDocById(id) {
|
|
101
|
-
const normalizedId = decodeURIComponent(id);
|
|
102
|
-
const found = defaultDocRegistry.get(normalizedId);
|
|
103
|
-
if (!found)
|
|
104
|
-
return;
|
|
105
|
-
return {
|
|
106
|
-
doc: toDocSummary(found),
|
|
107
|
-
content: String(found.block.body ?? "")
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
function getDocByRoute(routes, routePath) {
|
|
111
|
-
const normalizedPath = normalizeRoute(routePath);
|
|
112
|
-
const found = routes.find((route) => normalizeRoute(route.route) === normalizedPath);
|
|
113
|
-
if (!found)
|
|
114
|
-
return;
|
|
115
|
-
return {
|
|
116
|
-
doc: toDocSummary(found),
|
|
117
|
-
content: String(found.block.body ?? "")
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
function listDocFacets(routes) {
|
|
121
|
-
const tags = new Map;
|
|
122
|
-
const kinds = new Map;
|
|
123
|
-
const visibilities = new Map;
|
|
124
|
-
for (const route of routes) {
|
|
125
|
-
const kind = route.block.kind ?? "reference";
|
|
126
|
-
const visibility = route.block.visibility ?? "public";
|
|
127
|
-
kinds.set(kind, (kinds.get(kind) ?? 0) + 1);
|
|
128
|
-
visibilities.set(visibility, (visibilities.get(visibility) ?? 0) + 1);
|
|
129
|
-
for (const tag of route.block.tags ?? []) {
|
|
130
|
-
tags.set(tag, (tags.get(tag) ?? 0) + 1);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
const toEntries = (values, key) => [...values.entries()].sort((left, right) => right[1] - left[1] || left[0].localeCompare(right[0])).map(([value, count]) => ({ [key]: value, count }));
|
|
134
|
-
return {
|
|
135
|
-
totalDocs: routes.length,
|
|
136
|
-
tags: toEntries(tags, "tag"),
|
|
137
|
-
kinds: toEntries(kinds, "kind"),
|
|
138
|
-
visibilities: toEntries(visibilities, "visibility")
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
// src/features/contracts-registry.ts
|
|
143
|
-
import {
|
|
144
|
-
EventRegistry,
|
|
145
|
-
OperationSpecRegistry
|
|
146
|
-
} from "@contractspec/lib.contracts-spec";
|
|
147
|
-
import {
|
|
148
|
-
DataViewRegistry
|
|
149
|
-
} from "@contractspec/lib.contracts-spec/data-views";
|
|
150
|
-
import {
|
|
151
|
-
ContractReferenceDataView,
|
|
152
|
-
ContractReferenceQuery,
|
|
153
|
-
DocsGenerateCommand,
|
|
154
|
-
DocsGeneratedEvent,
|
|
155
|
-
DocsIndexDataView,
|
|
156
|
-
DocsIndexQuery,
|
|
157
|
-
DocsLayoutPresentation,
|
|
158
|
-
DocsPublishCommand,
|
|
159
|
-
DocsPublishedEvent,
|
|
160
|
-
DocsReferencePagePresentation,
|
|
161
|
-
DocsSearchForm,
|
|
162
|
-
ExampleCatalogDataView
|
|
163
|
-
} from "@contractspec/lib.contracts-spec/docs";
|
|
164
|
-
import { FormRegistry } from "@contractspec/lib.contracts-spec/forms";
|
|
165
|
-
import {
|
|
166
|
-
PresentationRegistry
|
|
167
|
-
} from "@contractspec/lib.contracts-spec/presentations";
|
|
168
|
-
import {
|
|
169
|
-
serializeDataViewSpec,
|
|
170
|
-
serializeEventSpec,
|
|
171
|
-
serializeFormSpec,
|
|
172
|
-
serializeOperationSpec,
|
|
173
|
-
serializePresentationSpec
|
|
174
|
-
} from "@contractspec/lib.contracts-spec/serialization";
|
|
175
|
-
var operationRegistry = null;
|
|
176
|
-
function createContractSpecOperationRegistry() {
|
|
177
|
-
const registry = new OperationSpecRegistry;
|
|
178
|
-
registry.register(DocsIndexQuery).register(ContractReferenceQuery).register(DocsGenerateCommand).register(DocsPublishCommand);
|
|
179
|
-
return registry;
|
|
180
|
-
}
|
|
181
|
-
function getContractSpecOperationRegistry() {
|
|
182
|
-
if (!operationRegistry) {
|
|
183
|
-
operationRegistry = createContractSpecOperationRegistry();
|
|
184
|
-
}
|
|
185
|
-
return operationRegistry;
|
|
186
|
-
}
|
|
187
|
-
function resolveOperationSpec(key, version) {
|
|
188
|
-
return getContractSpecOperationRegistry().get(key, version);
|
|
189
|
-
}
|
|
190
|
-
var eventRegistry = null;
|
|
191
|
-
function createContractSpecEventRegistry() {
|
|
192
|
-
const registry = new EventRegistry;
|
|
193
|
-
registry.register(DocsGeneratedEvent).register(DocsPublishedEvent);
|
|
194
|
-
return registry;
|
|
195
|
-
}
|
|
196
|
-
function getContractSpecEventRegistry() {
|
|
197
|
-
if (!eventRegistry) {
|
|
198
|
-
eventRegistry = createContractSpecEventRegistry();
|
|
199
|
-
}
|
|
200
|
-
return eventRegistry;
|
|
201
|
-
}
|
|
202
|
-
function resolveEventSpec(key, version) {
|
|
203
|
-
return getContractSpecEventRegistry().get(key, version);
|
|
204
|
-
}
|
|
205
|
-
var presentationRegistry = null;
|
|
206
|
-
function createContractSpecPresentationRegistry() {
|
|
207
|
-
const registry = new PresentationRegistry;
|
|
208
|
-
registry.register(DocsLayoutPresentation).register(DocsReferencePagePresentation);
|
|
209
|
-
return registry;
|
|
210
|
-
}
|
|
211
|
-
function getContractSpecPresentationRegistry() {
|
|
212
|
-
if (!presentationRegistry) {
|
|
213
|
-
presentationRegistry = createContractSpecPresentationRegistry();
|
|
214
|
-
}
|
|
215
|
-
return presentationRegistry;
|
|
216
|
-
}
|
|
217
|
-
function resolvePresentationSpec(key, version) {
|
|
218
|
-
return getContractSpecPresentationRegistry().get(key, version);
|
|
219
|
-
}
|
|
220
|
-
var dataViewRegistry = null;
|
|
221
|
-
function createContractSpecDataViewRegistry() {
|
|
222
|
-
const registry = new DataViewRegistry;
|
|
223
|
-
registry.register(DocsIndexDataView).register(ContractReferenceDataView).register(ExampleCatalogDataView);
|
|
224
|
-
return registry;
|
|
225
|
-
}
|
|
226
|
-
function getContractSpecDataViewRegistry() {
|
|
227
|
-
if (!dataViewRegistry) {
|
|
228
|
-
dataViewRegistry = createContractSpecDataViewRegistry();
|
|
229
|
-
}
|
|
230
|
-
return dataViewRegistry;
|
|
231
|
-
}
|
|
232
|
-
function resolveDataViewSpec(key, version) {
|
|
233
|
-
return getContractSpecDataViewRegistry().get(key, version);
|
|
234
|
-
}
|
|
235
|
-
var formRegistry = null;
|
|
236
|
-
function createContractSpecFormRegistry() {
|
|
237
|
-
const registry = new FormRegistry;
|
|
238
|
-
registry.register(DocsSearchForm);
|
|
239
|
-
return registry;
|
|
240
|
-
}
|
|
241
|
-
function getContractSpecFormRegistry() {
|
|
242
|
-
if (!formRegistry) {
|
|
243
|
-
formRegistry = createContractSpecFormRegistry();
|
|
244
|
-
}
|
|
245
|
-
return formRegistry;
|
|
246
|
-
}
|
|
247
|
-
function resolveFormSpec(key, _version) {
|
|
248
|
-
return getContractSpecFormRegistry().get(key);
|
|
249
|
-
}
|
|
250
|
-
function resolveSerializedOperationSpec(key, version) {
|
|
251
|
-
const spec = resolveOperationSpec(key, version);
|
|
252
|
-
return serializeOperationSpec(spec) ?? undefined;
|
|
253
|
-
}
|
|
254
|
-
function resolveSerializedEventSpec(key, version) {
|
|
255
|
-
const spec = resolveEventSpec(key, version);
|
|
256
|
-
return serializeEventSpec(spec) ?? undefined;
|
|
257
|
-
}
|
|
258
|
-
function resolveSerializedPresentationSpec(key, version) {
|
|
259
|
-
const spec = resolvePresentationSpec(key, version);
|
|
260
|
-
return serializePresentationSpec(spec) ?? undefined;
|
|
261
|
-
}
|
|
262
|
-
function resolveSerializedDataViewSpec(key, version) {
|
|
263
|
-
const spec = resolveDataViewSpec(key, version);
|
|
264
|
-
return serializeDataViewSpec(spec) ?? undefined;
|
|
265
|
-
}
|
|
266
|
-
function resolveSerializedFormSpec(key, version) {
|
|
267
|
-
const spec = resolveFormSpec(key, version);
|
|
268
|
-
return serializeFormSpec(spec) ?? undefined;
|
|
269
|
-
}
|
|
270
|
-
function resetContractSpecOperationRegistry() {
|
|
271
|
-
operationRegistry = null;
|
|
272
|
-
}
|
|
273
|
-
function resetContractSpecEventRegistry() {
|
|
274
|
-
eventRegistry = null;
|
|
275
|
-
}
|
|
276
|
-
function resetContractSpecPresentationRegistry() {
|
|
277
|
-
presentationRegistry = null;
|
|
278
|
-
}
|
|
279
|
-
function resetContractSpecDataViewRegistry() {
|
|
280
|
-
dataViewRegistry = null;
|
|
281
|
-
}
|
|
282
|
-
function resetContractSpecFormRegistry() {
|
|
283
|
-
formRegistry = null;
|
|
284
|
-
}
|
|
285
|
-
function resetAllContractSpecRegistries() {
|
|
286
|
-
resetContractSpecOperationRegistry();
|
|
287
|
-
resetContractSpecEventRegistry();
|
|
288
|
-
resetContractSpecPresentationRegistry();
|
|
289
|
-
resetContractSpecDataViewRegistry();
|
|
290
|
-
resetContractSpecFormRegistry();
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
// src/application/mcp/docsMcp.reference.ts
|
|
294
|
-
import { defaultDocRegistry as defaultDocRegistry2 } from "@contractspec/lib.contracts-spec/docs";
|
|
295
|
-
function normalizeText2(value) {
|
|
296
|
-
return value?.trim().toLowerCase() ?? "";
|
|
297
|
-
}
|
|
298
|
-
function routeFromDocIds(docIds) {
|
|
299
|
-
for (const docId of docIds ?? []) {
|
|
300
|
-
const doc = defaultDocRegistry2.get(docId);
|
|
301
|
-
if (doc)
|
|
302
|
-
return doc.route;
|
|
303
|
-
}
|
|
304
|
-
return;
|
|
305
|
-
}
|
|
306
|
-
function toReference(spec, type, schema, policy) {
|
|
307
|
-
const title = spec.meta.title ?? spec.meta.key;
|
|
308
|
-
const route = routeFromDocIds(spec.meta.docId);
|
|
309
|
-
const description = spec.meta.description;
|
|
310
|
-
return {
|
|
311
|
-
key: spec.meta.key,
|
|
312
|
-
version: spec.meta.version,
|
|
313
|
-
type,
|
|
314
|
-
title,
|
|
315
|
-
description,
|
|
316
|
-
markdown: [
|
|
317
|
-
`# ${title}`,
|
|
318
|
-
`- Key: ${spec.meta.key}`,
|
|
319
|
-
`- Type: ${type}`,
|
|
320
|
-
`- Version: ${spec.meta.version}`,
|
|
321
|
-
route ? `- Docs route: ${route}` : "",
|
|
322
|
-
description ? `
|
|
323
|
-
${description}` : ""
|
|
324
|
-
].filter(Boolean).join(`
|
|
325
|
-
`),
|
|
326
|
-
...route ? { route } : {},
|
|
327
|
-
...schema ? { schema } : {},
|
|
328
|
-
...policy ? { policy } : {},
|
|
329
|
-
tags: spec.meta.tags ?? [],
|
|
330
|
-
owners: spec.meta.owners ?? [],
|
|
331
|
-
stability: spec.meta.stability
|
|
332
|
-
};
|
|
333
|
-
}
|
|
334
|
-
function resolveContractReference(args) {
|
|
335
|
-
const includeSchema = args.includeSchema ?? false;
|
|
336
|
-
const requestedType = normalizeText2(args.type);
|
|
337
|
-
const operation = resolveOperationSpec(args.key, args.version);
|
|
338
|
-
if (operation && (!requestedType || requestedType === "operation" || requestedType === operation.meta.kind)) {
|
|
339
|
-
return {
|
|
340
|
-
reference: toReference(operation, operation.meta.kind, includeSchema ? resolveSerializedOperationSpec(args.key, args.version) : undefined, operation.policy)
|
|
341
|
-
};
|
|
342
|
-
}
|
|
343
|
-
const resolvers = [
|
|
344
|
-
{
|
|
345
|
-
type: "data-view",
|
|
346
|
-
spec: resolveDataViewSpec(args.key, args.version),
|
|
347
|
-
schema: includeSchema ? resolveSerializedDataViewSpec(args.key, args.version) : undefined
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
type: "form",
|
|
351
|
-
spec: resolveFormSpec(args.key, args.version),
|
|
352
|
-
schema: includeSchema ? resolveSerializedFormSpec(args.key, args.version) : undefined
|
|
353
|
-
},
|
|
354
|
-
{
|
|
355
|
-
type: "presentation",
|
|
356
|
-
spec: resolvePresentationSpec(args.key, args.version),
|
|
357
|
-
schema: includeSchema ? resolveSerializedPresentationSpec(args.key, args.version) : undefined
|
|
358
|
-
},
|
|
359
|
-
{
|
|
360
|
-
type: "event",
|
|
361
|
-
spec: resolveEventSpec(args.key, args.version),
|
|
362
|
-
schema: includeSchema ? resolveSerializedEventSpec(args.key, args.version) : undefined
|
|
363
|
-
}
|
|
364
|
-
];
|
|
365
|
-
for (const candidate of resolvers) {
|
|
366
|
-
if (candidate.spec && (!requestedType || requestedType === candidate.type)) {
|
|
367
|
-
return {
|
|
368
|
-
reference: toReference(candidate.spec, candidate.type, candidate.schema)
|
|
369
|
-
};
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
throw new Error(`Contract reference not found: ${args.key}`);
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
// src/application/mcp/docsMcp.tools.ts
|
|
376
|
-
import {
|
|
377
|
-
defineCommand,
|
|
378
|
-
defineSchemaModel,
|
|
379
|
-
installOp,
|
|
380
|
-
OperationSpecRegistry as OperationSpecRegistry2
|
|
381
|
-
} from "@contractspec/lib.contracts-spec";
|
|
382
|
-
import {
|
|
383
|
-
ContractReferenceInput,
|
|
384
|
-
ContractReferenceOutput,
|
|
385
|
-
DocsIndexInput,
|
|
386
|
-
DocsIndexOutput
|
|
387
|
-
} from "@contractspec/lib.contracts-spec/docs";
|
|
388
|
-
import { ScalarTypeEnum } from "@contractspec/lib.schema";
|
|
389
|
-
var DOC_OWNERS = ["@contractspec"];
|
|
390
|
-
var DOC_TAGS = ["docs", "mcp"];
|
|
391
|
-
var DocsGetInput = defineSchemaModel({
|
|
392
|
-
name: "DocsGetInput",
|
|
393
|
-
fields: {
|
|
394
|
-
id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false }
|
|
395
|
-
}
|
|
396
|
-
});
|
|
397
|
-
var DocsGetOutput = defineSchemaModel({
|
|
398
|
-
name: "DocsGetOutput",
|
|
399
|
-
fields: {
|
|
400
|
-
doc: { type: ScalarTypeEnum.JSON(), isOptional: false },
|
|
401
|
-
content: { type: ScalarTypeEnum.String_unsecure(), isOptional: false }
|
|
402
|
-
}
|
|
403
|
-
});
|
|
404
|
-
var DocsResolveRouteInput = defineSchemaModel({
|
|
405
|
-
name: "DocsResolveRouteInput",
|
|
406
|
-
fields: {
|
|
407
|
-
route: { type: ScalarTypeEnum.String_unsecure(), isOptional: false }
|
|
408
|
-
}
|
|
409
|
-
});
|
|
410
|
-
var DocsResolveRouteOutput = defineSchemaModel({
|
|
411
|
-
name: "DocsResolveRouteOutput",
|
|
412
|
-
fields: {
|
|
413
|
-
doc: { type: ScalarTypeEnum.JSON(), isOptional: false },
|
|
414
|
-
content: { type: ScalarTypeEnum.String_unsecure(), isOptional: false }
|
|
415
|
-
}
|
|
416
|
-
});
|
|
417
|
-
var DocsFacetsInput = defineSchemaModel({
|
|
418
|
-
name: "DocsFacetsInput",
|
|
419
|
-
fields: {}
|
|
420
|
-
});
|
|
421
|
-
var DocsFacetsOutput = defineSchemaModel({
|
|
422
|
-
name: "DocsFacetsOutput",
|
|
423
|
-
fields: {
|
|
424
|
-
facets: { type: ScalarTypeEnum.JSON(), isOptional: false }
|
|
425
|
-
}
|
|
426
|
-
});
|
|
427
|
-
function buildDocOps(routes) {
|
|
428
|
-
const registry = new OperationSpecRegistry2;
|
|
429
|
-
installOp(registry, defineCommand({
|
|
430
|
-
meta: {
|
|
431
|
-
key: "docs.search",
|
|
432
|
-
version: "1.0.0",
|
|
433
|
-
stability: "beta",
|
|
434
|
-
owners: DOC_OWNERS,
|
|
435
|
-
tags: DOC_TAGS,
|
|
436
|
-
description: "Search ContractSpec docs by query, tag, kind, or visibility.",
|
|
437
|
-
goal: "Find the most relevant DocBlocks without browsing the full corpus.",
|
|
438
|
-
context: "Read-only docs MCP search surface."
|
|
439
|
-
},
|
|
440
|
-
io: { input: DocsIndexInput, output: DocsIndexOutput },
|
|
441
|
-
policy: { auth: "anonymous" },
|
|
442
|
-
transport: { mcp: { toolName: "docs_search-v1_0_0" } }
|
|
443
|
-
}), async (args) => searchDocs(routes, args));
|
|
444
|
-
installOp(registry, defineCommand({
|
|
445
|
-
meta: {
|
|
446
|
-
key: "docs.get",
|
|
447
|
-
version: "1.0.0",
|
|
448
|
-
stability: "beta",
|
|
449
|
-
owners: DOC_OWNERS,
|
|
450
|
-
tags: DOC_TAGS,
|
|
451
|
-
description: "Read a single DocBlock by id.",
|
|
452
|
-
goal: "Fetch the exact markdown content and metadata for a known doc id.",
|
|
453
|
-
context: "Read-only docs MCP surface."
|
|
454
|
-
},
|
|
455
|
-
io: { input: DocsGetInput, output: DocsGetOutput },
|
|
456
|
-
policy: { auth: "anonymous" },
|
|
457
|
-
transport: { mcp: { toolName: "docs_get-v1_0_0" } }
|
|
458
|
-
}), async ({ id }) => {
|
|
459
|
-
const found = getDocById(id);
|
|
460
|
-
if (!found)
|
|
461
|
-
throw new Error(`DocBlock not found: ${id}`);
|
|
462
|
-
return found;
|
|
463
|
-
});
|
|
464
|
-
installOp(registry, defineCommand({
|
|
465
|
-
meta: {
|
|
466
|
-
key: "docs.resolveRoute",
|
|
467
|
-
version: "1.0.0",
|
|
468
|
-
stability: "beta",
|
|
469
|
-
owners: DOC_OWNERS,
|
|
470
|
-
tags: DOC_TAGS,
|
|
471
|
-
description: "Resolve a docs route to the matching DocBlock.",
|
|
472
|
-
goal: "Turn a route or URL path into a canonical doc id and markdown body.",
|
|
473
|
-
context: "Read-only docs MCP surface."
|
|
474
|
-
},
|
|
475
|
-
io: { input: DocsResolveRouteInput, output: DocsResolveRouteOutput },
|
|
476
|
-
policy: { auth: "anonymous" },
|
|
477
|
-
transport: { mcp: { toolName: "docs_resolve_route-v1_0_0" } }
|
|
478
|
-
}), async ({ route }) => {
|
|
479
|
-
const found = getDocByRoute(routes, route);
|
|
480
|
-
if (!found)
|
|
481
|
-
throw new Error(`Doc route not found: ${route}`);
|
|
482
|
-
return found;
|
|
483
|
-
});
|
|
484
|
-
installOp(registry, defineCommand({
|
|
485
|
-
meta: {
|
|
486
|
-
key: "docs.contract.lookup",
|
|
487
|
-
version: "1.0.0",
|
|
488
|
-
stability: "beta",
|
|
489
|
-
owners: DOC_OWNERS,
|
|
490
|
-
tags: DOC_TAGS,
|
|
491
|
-
description: "Resolve a ContractSpec surface into a docs-ready reference payload.",
|
|
492
|
-
goal: "Get canonical docs metadata, route, and optional schema for a spec key.",
|
|
493
|
-
context: "Read-only docs MCP surface."
|
|
494
|
-
},
|
|
495
|
-
io: { input: ContractReferenceInput, output: ContractReferenceOutput },
|
|
496
|
-
policy: { auth: "anonymous" },
|
|
497
|
-
transport: { mcp: { toolName: "docs_contract_reference-v1_0_0" } }
|
|
498
|
-
}), async (args) => resolveContractReference(args));
|
|
499
|
-
installOp(registry, defineCommand({
|
|
500
|
-
meta: {
|
|
501
|
-
key: "docs.list.facets",
|
|
502
|
-
version: "1.0.0",
|
|
503
|
-
stability: "beta",
|
|
504
|
-
owners: DOC_OWNERS,
|
|
505
|
-
tags: DOC_TAGS,
|
|
506
|
-
description: "List docs taxonomy facets such as tags, kinds, and visibilities.",
|
|
507
|
-
goal: "Help agents browse the docs corpus before making targeted reads.",
|
|
508
|
-
context: "Read-only docs MCP surface."
|
|
509
|
-
},
|
|
510
|
-
io: { input: DocsFacetsInput, output: DocsFacetsOutput },
|
|
511
|
-
policy: { auth: "anonymous" },
|
|
512
|
-
transport: { mcp: { toolName: "docs_list_facets-v1_0_0" } }
|
|
513
|
-
}), async () => ({ facets: listDocFacets(routes) }));
|
|
514
|
-
return registry;
|
|
515
|
-
}
|
|
516
|
-
export {
|
|
517
|
-
buildDocOps
|
|
518
|
-
};
|
|
1
|
+
import{defaultDocRegistry as o}from"@contractspec/lib.contracts-spec/docs";var s=20,t=100;function V(j){return j?.trim().toLowerCase()??""}function O(j){let w=decodeURIComponent(j).trim();if(!w)return"/";return w.startsWith("/")?w:`/${w}`}function r(j){return(Array.isArray(j)?j:j?[j]:[]).map((H)=>V(H)).filter(Boolean)}function e(j){if(!j||Number.isNaN(j))return s;return Math.min(Math.max(j,1),t)}function jj(j){if(!j||Number.isNaN(j))return 0;return Math.max(j,0)}function E({block:j,route:w}){return{id:j.id,title:j.title,summary:j.summary??"",route:w,visibility:j.visibility??"public",kind:j.kind??"reference",version:j.version??"1.0.0",tags:j.tags??[]}}function wj(j,w){if(!w)return 1;let H=w.split(/\s+/).filter(Boolean),J=V(j.block.title),$=V(j.block.id),Z=V(j.block.summary),U=V(j.block.body),K=V(j.route),Q=(j.block.tags??[]).map((Y)=>V(Y)),L=[J,$,Z,U,K,...Q].join(" ");if(H.some((Y)=>!L.includes(Y)))return 0;let X=0;for(let Y of H){if($.includes(Y))X+=8;if(J.includes(Y))X+=7;if(Q.some((B)=>B.includes(Y)))X+=5;if(Z.includes(Y))X+=4;if(K.includes(Y))X+=3;if(U.includes(Y))X+=2}return X}function S(j,w){let H=V(typeof w.query==="string"?w.query:void 0),J=r(w.tag),$=V(typeof w.visibility==="string"?w.visibility:void 0),Z=V(typeof w.kind==="string"?w.kind:void 0),U=e(typeof w.limit==="number"?w.limit:void 0),K=jj(typeof w.offset==="number"?w.offset:void 0),Q=j.map((Y)=>({doc:E(Y),score:wj(Y,H)})).filter(({doc:Y,score:B})=>{let g=H?B>0:!0,u=J.length?J.every((i)=>Y.tags.some((a)=>V(a).includes(i))):!0,n=$?V(Y.visibility)===$:!0,c=Z?V(Y.kind)===Z:!0;return g&&u&&n&&c}).sort((Y,B)=>{if(B.score!==Y.score)return B.score-Y.score;return Y.doc.title.localeCompare(B.doc.title)}),L=Q.slice(K,K+U).map(({doc:Y})=>Y),X=K+L.length<Q.length?K+L.length:void 0;return{docs:L,items:L,total:Q.length,...X!=null?{nextOffset:X}:{}}}function h(j){let w=decodeURIComponent(j),H=o.get(w);if(!H)return;return{doc:E(H),content:String(H.block.body??"")}}function T(j,w){let H=O(w),J=j.find(($)=>O($.route)===H);if(!J)return;return{doc:E(J),content:String(J.block.body??"")}}function v(j){let w=new Map,H=new Map,J=new Map;for(let Z of j){let U=Z.block.kind??"reference",K=Z.block.visibility??"public";H.set(U,(H.get(U)??0)+1),J.set(K,(J.get(K)??0)+1);for(let Q of Z.block.tags??[])w.set(Q,(w.get(Q)??0)+1)}let $=(Z,U)=>[...Z.entries()].sort((K,Q)=>Q[1]-K[1]||K[0].localeCompare(Q[0])).map(([K,Q])=>({[U]:K,count:Q}));return{totalDocs:j.length,tags:$(w,"tag"),kinds:$(H,"kind"),visibilities:$(J,"visibility")}}import{EventRegistry as Hj,OperationSpecRegistry as Jj}from"@contractspec/lib.contracts-spec";import{DataViewRegistry as Yj}from"@contractspec/lib.contracts-spec/data-views";import{ContractReferenceDataView as Zj,ContractReferenceQuery as $j,DocsGenerateCommand as Kj,DocsGeneratedEvent as Qj,DocsIndexDataView as Uj,DocsIndexQuery as Vj,DocsLayoutPresentation as Xj,DocsPublishCommand as Bj,DocsPublishedEvent as Fj,DocsReferencePagePresentation as Lj,DocsSearchForm as Nj,ExampleCatalogDataView as Pj}from"@contractspec/lib.contracts-spec/docs";import{FormRegistry as Wj}from"@contractspec/lib.contracts-spec/forms";import{PresentationRegistry as Aj}from"@contractspec/lib.contracts-spec/presentations";import{serializeDataViewSpec as Gj,serializeEventSpec as qj,serializeFormSpec as Mj,serializeOperationSpec as _j,serializePresentationSpec as Ij}from"@contractspec/lib.contracts-spec/serialization";var q=null;function xj(){let j=new Jj;return j.register(Vj).register($j).register(Kj).register(Bj),j}function Ej(){if(!q)q=xj();return q}function R(j,w){return Ej().get(j,w)}var M=null;function Rj(){let j=new Hj;return j.register(Qj).register(Fj),j}function zj(){if(!M)M=Rj();return M}function z(j,w){return zj().get(j,w)}var _=null;function Cj(){let j=new Aj;return j.register(Xj).register(Lj),j}function bj(){if(!_)_=Cj();return _}function C(j,w){return bj().get(j,w)}var I=null;function Dj(){let j=new Yj;return j.register(Uj).register(Zj).register(Pj),j}function Oj(){if(!I)I=Dj();return I}function b(j,w){return Oj().get(j,w)}var x=null;function Sj(){let j=new Wj;return j.register(Nj),j}function hj(){if(!x)x=Sj();return x}function D(j,w){return hj().get(j)}function k(j,w){let H=R(j,w);return _j(H)??void 0}function f(j,w){let H=z(j,w);return qj(H)??void 0}function m(j,w){let H=C(j,w);return Ij(H)??void 0}function y(j,w){let H=b(j,w);return Gj(H)??void 0}function p(j,w){let H=D(j,w);return Mj(H)??void 0}function Tj(){q=null}function vj(){M=null}function kj(){_=null}function fj(){I=null}function mj(){x=null}function Kw(){Tj(),vj(),kj(),fj(),mj()}import{defaultDocRegistry as yj}from"@contractspec/lib.contracts-spec/docs";function pj(j){return j?.trim().toLowerCase()??""}function dj(j){for(let w of j??[]){let H=yj.get(w);if(H)return H.route}return}function d(j,w,H,J){let $=j.meta.title??j.meta.key,Z=dj(j.meta.docId),U=j.meta.description;return{key:j.meta.key,version:j.meta.version,type:w,title:$,description:U,markdown:[`# ${$}`,`- Key: ${j.meta.key}`,`- Type: ${w}`,`- Version: ${j.meta.version}`,Z?`- Docs route: ${Z}`:"",U?`
|
|
2
|
+
${U}`:""].filter(Boolean).join(`
|
|
3
|
+
`),...Z?{route:Z}:{},...H?{schema:H}:{},...J?{policy:J}:{},tags:j.meta.tags??[],owners:j.meta.owners??[],stability:j.meta.stability}}function l(j){let w=j.includeSchema??!1,H=pj(j.type),J=R(j.key,j.version);if(J&&(!H||H==="operation"||H===J.meta.kind))return{reference:d(J,J.meta.kind,w?k(j.key,j.version):void 0,J.policy)};let $=[{type:"data-view",spec:b(j.key,j.version),schema:w?y(j.key,j.version):void 0},{type:"form",spec:D(j.key,j.version),schema:w?p(j.key,j.version):void 0},{type:"presentation",spec:C(j.key,j.version),schema:w?m(j.key,j.version):void 0},{type:"event",spec:z(j.key,j.version),schema:w?f(j.key,j.version):void 0}];for(let Z of $)if(Z.spec&&(!H||H===Z.type))return{reference:d(Z.spec,Z.type,Z.schema)};throw Error(`Contract reference not found: ${j.key}`)}import{defineCommand as P,defineSchemaModel as N,installOp as W,OperationSpecRegistry as lj}from"@contractspec/lib.contracts-spec";import{ContractReferenceInput as gj,ContractReferenceOutput as uj,DocsIndexInput as nj,DocsIndexOutput as cj}from"@contractspec/lib.contracts-spec/docs";import{ScalarTypeEnum as F}from"@contractspec/lib.schema";var A=["@contractspec"],G=["docs","mcp"],ij=N({name:"DocsGetInput",fields:{id:{type:F.String_unsecure(),isOptional:!1}}}),aj=N({name:"DocsGetOutput",fields:{doc:{type:F.JSON(),isOptional:!1},content:{type:F.String_unsecure(),isOptional:!1}}}),oj=N({name:"DocsResolveRouteInput",fields:{route:{type:F.String_unsecure(),isOptional:!1}}}),sj=N({name:"DocsResolveRouteOutput",fields:{doc:{type:F.JSON(),isOptional:!1},content:{type:F.String_unsecure(),isOptional:!1}}}),tj=N({name:"DocsFacetsInput",fields:{}}),rj=N({name:"DocsFacetsOutput",fields:{facets:{type:F.JSON(),isOptional:!1}}});function Ww(j){let w=new lj;return W(w,P({meta:{key:"docs.search",version:"1.0.0",stability:"beta",owners:A,tags:G,description:"Search ContractSpec docs by query, tag, kind, or visibility.",goal:"Find the most relevant DocBlocks without browsing the full corpus.",context:"Read-only docs MCP search surface."},io:{input:nj,output:cj},policy:{auth:"anonymous"},transport:{mcp:{toolName:"docs_search-v1_0_0"}}}),async(H)=>S(j,H)),W(w,P({meta:{key:"docs.get",version:"1.0.0",stability:"beta",owners:A,tags:G,description:"Read a single DocBlock by id.",goal:"Fetch the exact markdown content and metadata for a known doc id.",context:"Read-only docs MCP surface."},io:{input:ij,output:aj},policy:{auth:"anonymous"},transport:{mcp:{toolName:"docs_get-v1_0_0"}}}),async({id:H})=>{let J=h(H);if(!J)throw Error(`DocBlock not found: ${H}`);return J}),W(w,P({meta:{key:"docs.resolveRoute",version:"1.0.0",stability:"beta",owners:A,tags:G,description:"Resolve a docs route to the matching DocBlock.",goal:"Turn a route or URL path into a canonical doc id and markdown body.",context:"Read-only docs MCP surface."},io:{input:oj,output:sj},policy:{auth:"anonymous"},transport:{mcp:{toolName:"docs_resolve_route-v1_0_0"}}}),async({route:H})=>{let J=T(j,H);if(!J)throw Error(`Doc route not found: ${H}`);return J}),W(w,P({meta:{key:"docs.contract.lookup",version:"1.0.0",stability:"beta",owners:A,tags:G,description:"Resolve a ContractSpec surface into a docs-ready reference payload.",goal:"Get canonical docs metadata, route, and optional schema for a spec key.",context:"Read-only docs MCP surface."},io:{input:gj,output:uj},policy:{auth:"anonymous"},transport:{mcp:{toolName:"docs_contract_reference-v1_0_0"}}}),async(H)=>l(H)),W(w,P({meta:{key:"docs.list.facets",version:"1.0.0",stability:"beta",owners:A,tags:G,description:"List docs taxonomy facets such as tags, kinds, and visibilities.",goal:"Help agents browse the docs corpus before making targeted reads.",context:"Read-only docs MCP surface."},io:{input:tj,output:rj},policy:{auth:"anonymous"},transport:{mcp:{toolName:"docs_list_facets-v1_0_0"}}}),async()=>({facets:v(j)})),w}export{Ww as buildDocOps};
|