@contractspec/bundle.library 3.8.10 → 3.8.11
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 +37 -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,199 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
defineCommand,
|
|
4
|
-
installOp,
|
|
5
|
-
OperationSpecRegistry
|
|
6
|
-
} from "@contractspec/lib.contracts-spec";
|
|
7
|
-
import { defineSchemaModel, ScalarTypeEnum } from "@contractspec/lib.schema";
|
|
8
|
-
var OWNERS = ["@contractspec"];
|
|
9
|
-
var TAGS = ["contracts", "mcp"];
|
|
10
|
-
function buildContractsOps(services) {
|
|
11
|
-
const registry = new OperationSpecRegistry;
|
|
12
|
-
const ListInput = defineSchemaModel({
|
|
13
|
-
name: "ContractsListInput",
|
|
14
|
-
fields: {
|
|
15
|
-
pattern: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
16
|
-
type: { type: ScalarTypeEnum.String_unsecure(), isOptional: true }
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const ListOutput = defineSchemaModel({
|
|
20
|
-
name: "ContractsListOutput",
|
|
21
|
-
fields: {
|
|
22
|
-
specs: { type: ScalarTypeEnum.JSON(), isOptional: false },
|
|
23
|
-
total: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false }
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
installOp(registry, defineCommand({
|
|
27
|
-
meta: {
|
|
28
|
-
key: "contracts.list",
|
|
29
|
-
version: "1.0.0",
|
|
30
|
-
stability: "beta",
|
|
31
|
-
owners: OWNERS,
|
|
32
|
-
tags: TAGS,
|
|
33
|
-
description: "List contract specs in the workspace.",
|
|
34
|
-
goal: "Discover available contracts by type, pattern, or owner.",
|
|
35
|
-
context: "Contracts MCP server."
|
|
36
|
-
},
|
|
37
|
-
io: { input: ListInput, output: ListOutput },
|
|
38
|
-
policy: { auth: "anonymous" }
|
|
39
|
-
}), async ({ pattern, type }) => {
|
|
40
|
-
const specs = await services.listSpecs({ pattern, type });
|
|
41
|
-
return { specs, total: specs.length };
|
|
42
|
-
});
|
|
43
|
-
const GetInput = defineSchemaModel({
|
|
44
|
-
name: "ContractsGetInput",
|
|
45
|
-
fields: {
|
|
46
|
-
path: { type: ScalarTypeEnum.String_unsecure(), isOptional: false }
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
const GetOutput = defineSchemaModel({
|
|
50
|
-
name: "ContractsGetOutput",
|
|
51
|
-
fields: {
|
|
52
|
-
content: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
53
|
-
info: { type: ScalarTypeEnum.JSON(), isOptional: false }
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
installOp(registry, defineCommand({
|
|
57
|
-
meta: {
|
|
58
|
-
key: "contracts.get",
|
|
59
|
-
version: "1.0.0",
|
|
60
|
-
stability: "beta",
|
|
61
|
-
owners: OWNERS,
|
|
62
|
-
tags: TAGS,
|
|
63
|
-
description: "Read a single contract spec file.",
|
|
64
|
-
goal: "Fetch spec content and parsed metadata.",
|
|
65
|
-
context: "Contracts MCP server."
|
|
66
|
-
},
|
|
67
|
-
io: { input: GetInput, output: GetOutput },
|
|
68
|
-
policy: { auth: "anonymous" }
|
|
69
|
-
}), async ({ path }) => {
|
|
70
|
-
const result = await services.getSpec(path);
|
|
71
|
-
if (!result)
|
|
72
|
-
throw new Error(`Spec not found: ${path}`);
|
|
73
|
-
return result;
|
|
74
|
-
});
|
|
75
|
-
const ValidateInput = defineSchemaModel({
|
|
76
|
-
name: "ContractsValidateInput",
|
|
77
|
-
fields: {
|
|
78
|
-
path: { type: ScalarTypeEnum.String_unsecure(), isOptional: false }
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
const ValidateOutput = defineSchemaModel({
|
|
82
|
-
name: "ContractsValidateOutput",
|
|
83
|
-
fields: {
|
|
84
|
-
valid: { type: ScalarTypeEnum.Boolean(), isOptional: false },
|
|
85
|
-
errors: { type: ScalarTypeEnum.JSON(), isOptional: false },
|
|
86
|
-
warnings: { type: ScalarTypeEnum.JSON(), isOptional: false }
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
installOp(registry, defineCommand({
|
|
90
|
-
meta: {
|
|
91
|
-
key: "contracts.validate",
|
|
92
|
-
version: "1.0.0",
|
|
93
|
-
stability: "beta",
|
|
94
|
-
owners: OWNERS,
|
|
95
|
-
tags: TAGS,
|
|
96
|
-
description: "Validate a contract spec structure.",
|
|
97
|
-
goal: "Check spec for structural or policy issues.",
|
|
98
|
-
context: "Contracts MCP server."
|
|
99
|
-
},
|
|
100
|
-
io: { input: ValidateInput, output: ValidateOutput },
|
|
101
|
-
policy: { auth: "anonymous" }
|
|
102
|
-
}), async ({ path }) => services.validateSpec(path));
|
|
103
|
-
const BuildInput = defineSchemaModel({
|
|
104
|
-
name: "ContractsBuildInput",
|
|
105
|
-
fields: {
|
|
106
|
-
path: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
107
|
-
dryRun: { type: ScalarTypeEnum.Boolean(), isOptional: true }
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
const BuildOutput = defineSchemaModel({
|
|
111
|
-
name: "ContractsBuildOutput",
|
|
112
|
-
fields: {
|
|
113
|
-
results: { type: ScalarTypeEnum.JSON(), isOptional: false }
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
installOp(registry, defineCommand({
|
|
117
|
-
meta: {
|
|
118
|
-
key: "contracts.build",
|
|
119
|
-
version: "1.0.0",
|
|
120
|
-
stability: "beta",
|
|
121
|
-
owners: OWNERS,
|
|
122
|
-
tags: TAGS,
|
|
123
|
-
description: "Generate implementation code from a contract spec.",
|
|
124
|
-
goal: "Produce handler, component, or test skeletons.",
|
|
125
|
-
context: "Contracts MCP server."
|
|
126
|
-
},
|
|
127
|
-
io: { input: BuildInput, output: BuildOutput },
|
|
128
|
-
policy: { auth: "user" }
|
|
129
|
-
}), async ({ path, dryRun }) => services.buildSpec(path, { dryRun }));
|
|
130
|
-
registerMutationTools(registry, services);
|
|
131
|
-
return registry;
|
|
132
|
-
}
|
|
133
|
-
function registerMutationTools(registry, services) {
|
|
134
|
-
const UpdateInput = defineSchemaModel({
|
|
135
|
-
name: "ContractsUpdateInput",
|
|
136
|
-
fields: {
|
|
137
|
-
path: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
138
|
-
content: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
139
|
-
fields: { type: ScalarTypeEnum.JSON(), isOptional: true }
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
const UpdateOutput = defineSchemaModel({
|
|
143
|
-
name: "ContractsUpdateOutput",
|
|
144
|
-
fields: {
|
|
145
|
-
updated: { type: ScalarTypeEnum.Boolean(), isOptional: false },
|
|
146
|
-
errors: { type: ScalarTypeEnum.JSON(), isOptional: false },
|
|
147
|
-
warnings: { type: ScalarTypeEnum.JSON(), isOptional: false }
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
installOp(registry, defineCommand({
|
|
151
|
-
meta: {
|
|
152
|
-
key: "contracts.update",
|
|
153
|
-
version: "1.0.0",
|
|
154
|
-
stability: "beta",
|
|
155
|
-
owners: OWNERS,
|
|
156
|
-
tags: TAGS,
|
|
157
|
-
description: "Update an existing contract spec.",
|
|
158
|
-
goal: "Modify spec content or individual fields with validation.",
|
|
159
|
-
context: "Contracts MCP server."
|
|
160
|
-
},
|
|
161
|
-
io: { input: UpdateInput, output: UpdateOutput },
|
|
162
|
-
policy: { auth: "user" }
|
|
163
|
-
}), async ({ path, content, fields }) => services.updateSpec(path, {
|
|
164
|
-
content,
|
|
165
|
-
fields: Array.isArray(fields) ? fields : undefined
|
|
166
|
-
}));
|
|
167
|
-
const DeleteInput = defineSchemaModel({
|
|
168
|
-
name: "ContractsDeleteInput",
|
|
169
|
-
fields: {
|
|
170
|
-
path: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
171
|
-
clean: { type: ScalarTypeEnum.Boolean(), isOptional: true }
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
|
-
const DeleteOutput = defineSchemaModel({
|
|
175
|
-
name: "ContractsDeleteOutput",
|
|
176
|
-
fields: {
|
|
177
|
-
deleted: { type: ScalarTypeEnum.Boolean(), isOptional: false },
|
|
178
|
-
cleanedFiles: { type: ScalarTypeEnum.JSON(), isOptional: false },
|
|
179
|
-
errors: { type: ScalarTypeEnum.JSON(), isOptional: false }
|
|
180
|
-
}
|
|
181
|
-
});
|
|
182
|
-
installOp(registry, defineCommand({
|
|
183
|
-
meta: {
|
|
184
|
-
key: "contracts.delete",
|
|
185
|
-
version: "1.0.0",
|
|
186
|
-
stability: "beta",
|
|
187
|
-
owners: OWNERS,
|
|
188
|
-
tags: TAGS,
|
|
189
|
-
description: "Delete a contract spec and optionally its artifacts.",
|
|
190
|
-
goal: "Remove a spec file and clean generated handlers/tests.",
|
|
191
|
-
context: "Contracts MCP server."
|
|
192
|
-
},
|
|
193
|
-
io: { input: DeleteInput, output: DeleteOutput },
|
|
194
|
-
policy: { auth: "user" }
|
|
195
|
-
}), async ({ path, clean }) => services.deleteSpec(path, { clean }));
|
|
196
|
-
}
|
|
197
|
-
export {
|
|
198
|
-
buildContractsOps
|
|
199
|
-
};
|
|
1
|
+
import{defineCommand as F,installOp as H,OperationSpecRegistry as D}from"@contractspec/lib.contracts-spec";import{defineSchemaModel as k,ScalarTypeEnum as j}from"@contractspec/lib.schema";var J=["@contractspec"],K=["contracts","mcp"];function A(w){let q=new D,Y=k({name:"ContractsListInput",fields:{pattern:{type:j.String_unsecure(),isOptional:!0},type:{type:j.String_unsecure(),isOptional:!0}}}),Z=k({name:"ContractsListOutput",fields:{specs:{type:j.JSON(),isOptional:!1},total:{type:j.Int_unsecure(),isOptional:!1}}});H(q,F({meta:{key:"contracts.list",version:"1.0.0",stability:"beta",owners:J,tags:K,description:"List contract specs in the workspace.",goal:"Discover available contracts by type, pattern, or owner.",context:"Contracts MCP server."},io:{input:Y,output:Z},policy:{auth:"anonymous"}}),async({pattern:x,type:z})=>{let b=await w.listSpecs({pattern:x,type:z});return{specs:b,total:b.length}});let _=k({name:"ContractsGetInput",fields:{path:{type:j.String_unsecure(),isOptional:!1}}}),$=k({name:"ContractsGetOutput",fields:{content:{type:j.String_unsecure(),isOptional:!1},info:{type:j.JSON(),isOptional:!1}}});H(q,F({meta:{key:"contracts.get",version:"1.0.0",stability:"beta",owners:J,tags:K,description:"Read a single contract spec file.",goal:"Fetch spec content and parsed metadata.",context:"Contracts MCP server."},io:{input:_,output:$},policy:{auth:"anonymous"}}),async({path:x})=>{let z=await w.getSpec(x);if(!z)throw Error(`Spec not found: ${x}`);return z});let P=k({name:"ContractsValidateInput",fields:{path:{type:j.String_unsecure(),isOptional:!1}}}),Q=k({name:"ContractsValidateOutput",fields:{valid:{type:j.Boolean(),isOptional:!1},errors:{type:j.JSON(),isOptional:!1},warnings:{type:j.JSON(),isOptional:!1}}});H(q,F({meta:{key:"contracts.validate",version:"1.0.0",stability:"beta",owners:J,tags:K,description:"Validate a contract spec structure.",goal:"Check spec for structural or policy issues.",context:"Contracts MCP server."},io:{input:P,output:Q},policy:{auth:"anonymous"}}),async({path:x})=>w.validateSpec(x));let X=k({name:"ContractsBuildInput",fields:{path:{type:j.String_unsecure(),isOptional:!1},dryRun:{type:j.Boolean(),isOptional:!0}}}),B=k({name:"ContractsBuildOutput",fields:{results:{type:j.JSON(),isOptional:!1}}});return H(q,F({meta:{key:"contracts.build",version:"1.0.0",stability:"beta",owners:J,tags:K,description:"Generate implementation code from a contract spec.",goal:"Produce handler, component, or test skeletons.",context:"Contracts MCP server."},io:{input:X,output:B},policy:{auth:"user"}}),async({path:x,dryRun:z})=>w.buildSpec(x,{dryRun:z})),L(q,w),q}function L(w,q){let Y=k({name:"ContractsUpdateInput",fields:{path:{type:j.String_unsecure(),isOptional:!1},content:{type:j.String_unsecure(),isOptional:!0},fields:{type:j.JSON(),isOptional:!0}}}),Z=k({name:"ContractsUpdateOutput",fields:{updated:{type:j.Boolean(),isOptional:!1},errors:{type:j.JSON(),isOptional:!1},warnings:{type:j.JSON(),isOptional:!1}}});H(w,F({meta:{key:"contracts.update",version:"1.0.0",stability:"beta",owners:J,tags:K,description:"Update an existing contract spec.",goal:"Modify spec content or individual fields with validation.",context:"Contracts MCP server."},io:{input:Y,output:Z},policy:{auth:"user"}}),async({path:P,content:Q,fields:X})=>q.updateSpec(P,{content:Q,fields:Array.isArray(X)?X:void 0}));let _=k({name:"ContractsDeleteInput",fields:{path:{type:j.String_unsecure(),isOptional:!1},clean:{type:j.Boolean(),isOptional:!0}}}),$=k({name:"ContractsDeleteOutput",fields:{deleted:{type:j.Boolean(),isOptional:!1},cleanedFiles:{type:j.JSON(),isOptional:!1},errors:{type:j.JSON(),isOptional:!1}}});H(w,F({meta:{key:"contracts.delete",version:"1.0.0",stability:"beta",owners:J,tags:K,description:"Delete a contract spec and optionally its artifacts.",goal:"Remove a spec file and clean generated handlers/tests.",context:"Contracts MCP server."},io:{input:_,output:$},policy:{auth:"user"}}),async({path:P,clean:Q})=>q.deleteSpec(P,{clean:Q}))}export{A as buildContractsOps};
|
|
@@ -1,381 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
export {
|
|
375
|
-
toDocSummary,
|
|
376
|
-
searchDocs,
|
|
377
|
-
resolveContractReference,
|
|
378
|
-
listDocFacets,
|
|
379
|
-
getDocByRoute,
|
|
380
|
-
getDocById
|
|
381
|
-
};
|
|
1
|
+
import{defaultDocRegistry as p}from"@contractspec/lib.contracts-spec/docs";var k=20,y=100;function $(j){return j?.trim().toLowerCase()??""}function P(j){let w=decodeURIComponent(j).trim();if(!w)return"/";return w.startsWith("/")?w:`/${w}`}function d(j){return(Array.isArray(j)?j:j?[j]:[]).map((B)=>$(B)).filter(Boolean)}function u(j){if(!j||Number.isNaN(j))return k;return Math.min(Math.max(j,1),y)}function l(j){if(!j||Number.isNaN(j))return 0;return Math.max(j,0)}function _({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 n(j,w){if(!w)return 1;let B=w.split(/\s+/).filter(Boolean),H=$(j.block.title),N=$(j.block.id),J=$(j.block.summary),Z=$(j.block.body),W=$(j.route),Y=(j.block.tags??[]).map((G)=>$(G)),K=[H,N,J,Z,W,...Y].join(" ");if(B.some((G)=>!K.includes(G)))return 0;let C=0;for(let G of B){if(N.includes(G))C+=8;if(H.includes(G))C+=7;if(Y.some((F)=>F.includes(G)))C+=5;if(J.includes(G))C+=4;if(W.includes(G))C+=3;if(Z.includes(G))C+=2}return C}function bj(j,w){let B=$(typeof w.query==="string"?w.query:void 0),H=d(w.tag),N=$(typeof w.visibility==="string"?w.visibility:void 0),J=$(typeof w.kind==="string"?w.kind:void 0),Z=u(typeof w.limit==="number"?w.limit:void 0),W=l(typeof w.offset==="number"?w.offset:void 0),Y=j.map((G)=>({doc:_(G),score:n(G,B)})).filter(({doc:G,score:F})=>{let b=B?F>0:!0,T=H.length?H.every((v)=>G.tags.some((m)=>$(m).includes(v))):!0,h=N?$(G.visibility)===N:!0,f=J?$(G.kind)===J:!0;return b&&T&&h&&f}).sort((G,F)=>{if(F.score!==G.score)return F.score-G.score;return G.doc.title.localeCompare(F.doc.title)}),K=Y.slice(W,W+Z).map(({doc:G})=>G),C=W+K.length<Y.length?W+K.length:void 0;return{docs:K,items:K,total:Y.length,...C!=null?{nextOffset:C}:{}}}function Tj(j){let w=decodeURIComponent(j),B=p.get(w);if(!B)return;return{doc:_(B),content:String(B.block.body??"")}}function hj(j,w){let B=P(w),H=j.find((N)=>P(N.route)===B);if(!H)return;return{doc:_(H),content:String(H.block.body??"")}}function fj(j){let w=new Map,B=new Map,H=new Map;for(let J of j){let Z=J.block.kind??"reference",W=J.block.visibility??"public";B.set(Z,(B.get(Z)??0)+1),H.set(W,(H.get(W)??0)+1);for(let Y of J.block.tags??[])w.set(Y,(w.get(Y)??0)+1)}let N=(J,Z)=>[...J.entries()].sort((W,Y)=>Y[1]-W[1]||W[0].localeCompare(Y[0])).map(([W,Y])=>({[Z]:W,count:Y}));return{totalDocs:j.length,tags:N(w,"tag"),kinds:N(B,"kind"),visibilities:N(H,"visibility")}}import{EventRegistry as g,OperationSpecRegistry as c}from"@contractspec/lib.contracts-spec";import{DataViewRegistry as i}from"@contractspec/lib.contracts-spec/data-views";import{ContractReferenceDataView as a,ContractReferenceQuery as o,DocsGenerateCommand as t,DocsGeneratedEvent as s,DocsIndexDataView as r,DocsIndexQuery as e,DocsLayoutPresentation as jj,DocsPublishCommand as wj,DocsPublishedEvent as Bj,DocsReferencePagePresentation as Gj,DocsSearchForm as Hj,ExampleCatalogDataView as Jj}from"@contractspec/lib.contracts-spec/docs";import{FormRegistry as Nj}from"@contractspec/lib.contracts-spec/forms";import{PresentationRegistry as Wj}from"@contractspec/lib.contracts-spec/presentations";import{serializeDataViewSpec as Yj,serializeEventSpec as Zj,serializeFormSpec as $j,serializeOperationSpec as Cj,serializePresentationSpec as Fj}from"@contractspec/lib.contracts-spec/serialization";var Q=null;function Kj(){let j=new c;return j.register(e).register(o).register(t).register(wj),j}function Qj(){if(!Q)Q=Kj();return Q}function M(j,w){return Qj().get(j,w)}var U=null;function Uj(){let j=new g;return j.register(s).register(Bj),j}function Vj(){if(!U)U=Uj();return U}function O(j,w){return Vj().get(j,w)}var V=null;function Xj(){let j=new Wj;return j.register(jj).register(Gj),j}function Aj(){if(!V)V=Xj();return V}function L(j,w){return Aj().get(j,w)}var X=null;function _j(){let j=new i;return j.register(r).register(a).register(Jj),j}function Mj(){if(!X)X=_j();return X}function R(j,w){return Mj().get(j,w)}var A=null;function Oj(){let j=new Nj;return j.register(Hj),j}function Lj(){if(!A)A=Oj();return A}function E(j,w){return Lj().get(j)}function D(j,w){let B=M(j,w);return Cj(B)??void 0}function I(j,w){let B=O(j,w);return Zj(B)??void 0}function q(j,w){let B=L(j,w);return Fj(B)??void 0}function S(j,w){let B=R(j,w);return Yj(B)??void 0}function x(j,w){let B=E(j,w);return $j(B)??void 0}function Rj(){Q=null}function Ej(){U=null}function Pj(){V=null}function Dj(){X=null}function Ij(){A=null}function lj(){Rj(),Ej(),Pj(),Dj(),Ij()}import{defaultDocRegistry as qj}from"@contractspec/lib.contracts-spec/docs";function Sj(j){return j?.trim().toLowerCase()??""}function xj(j){for(let w of j??[]){let B=qj.get(w);if(B)return B.route}return}function z(j,w,B,H){let N=j.meta.title??j.meta.key,J=xj(j.meta.docId),Z=j.meta.description;return{key:j.meta.key,version:j.meta.version,type:w,title:N,description:Z,markdown:[`# ${N}`,`- Key: ${j.meta.key}`,`- Type: ${w}`,`- Version: ${j.meta.version}`,J?`- Docs route: ${J}`:"",Z?`
|
|
2
|
+
${Z}`:""].filter(Boolean).join(`
|
|
3
|
+
`),...J?{route:J}:{},...B?{schema:B}:{},...H?{policy:H}:{},tags:j.meta.tags??[],owners:j.meta.owners??[],stability:j.meta.stability}}function ij(j){let w=j.includeSchema??!1,B=Sj(j.type),H=M(j.key,j.version);if(H&&(!B||B==="operation"||B===H.meta.kind))return{reference:z(H,H.meta.kind,w?D(j.key,j.version):void 0,H.policy)};let N=[{type:"data-view",spec:R(j.key,j.version),schema:w?S(j.key,j.version):void 0},{type:"form",spec:E(j.key,j.version),schema:w?x(j.key,j.version):void 0},{type:"presentation",spec:L(j.key,j.version),schema:w?q(j.key,j.version):void 0},{type:"event",spec:O(j.key,j.version),schema:w?I(j.key,j.version):void 0}];for(let J of N)if(J.spec&&(!B||B===J.type))return{reference:z(J.spec,J.type,J.schema)};throw Error(`Contract reference not found: ${j.key}`)}export{_ as toDocSummary,bj as searchDocs,ij as resolveContractReference,fj as listDocFacets,hj as getDocByRoute,Tj as getDocById};
|