@contractspec/bundle.library 3.8.9 → 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 +68 -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 -24297
- 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 -312
- package/dist/components/docs/specs/index.d.ts +3 -0
- package/dist/components/docs/specs/index.js +109 -1702
- 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 -28580
- 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 -24297
- 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 -312
- package/dist/node/components/docs/specs/index.js +109 -1702
- 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 -28580
- 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 +109 -37
- 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/SpecsWorkflowsPage.tsx +9 -1
- 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,473 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
|
|
3
|
-
var DOCS_INDEX_MANIFEST = "docs-index.manifest.json";
|
|
2
|
+
var M="docs-index.manifest.json";import{readFile as l}from"fs/promises";import{dirname as Y,join as d}from"path";import{fileURLToPath as $}from"url";var m=Y($(import.meta.url)),P=null,a=null,N=new Map;function q(s){if(!s)return"_common";if(s.includes("/")){let[n]=s.split("/");return n||"_common"}return"_common"}async function E(){if(!P)P=l(d(m,M),"utf8").then((s)=>JSON.parse(s));return P}function v(s){let n=s.contentRoot??".";return d(m,n)}async function O(s){let n=N.get(s);if(n)return n;let t=l(d(m,s),"utf8").then((o)=>JSON.parse(o));return N.set(s,t),t}async function B(){if(!a)a=(async()=>{let s=await E();return(await Promise.all(s.chunks.map((t)=>O(t.file)))).flat()})();return a}async function As(){return E()}async function Ms(s){let n=await E(),t=q(s),o=n.chunks.find((i)=>i.key===t);if(!o)return null;let e=(await O(o.file)).find((i)=>i.id===s);if(!e||!e.contentPath)return null;let c=d(v(n),e.contentPath);try{let i=await l(c,"utf8");return{entry:e,content:i}}catch{return null}}import{DocsIndexDataView as C,DocsSearchForm as Q}from"@contractspec/lib.contracts-spec/docs";import{DataViewList as z,formRenderer as H,StatusChip as T}from"@contractspec/lib.design-system";import{HStack as S,VStack as _}from"@contractspec/lib.ui-kit-web/ui/stack";import{H1 as x,Muted as L}from"@contractspec/lib.ui-kit-web/ui/typography";import{useMemo as W,useState as k}from"react";import{jsx as g,jsxs as R}from"react/jsx-runtime";function V(s){if(!s)return;return s.replace(/<!--.*?-->/g,"").replace(/[ \t]+/g," ").replace(/\n{3,}/g,`
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
import {
|
|
7
|
-
import { dirname, join } from "path";
|
|
8
|
-
import { fileURLToPath } from "url";
|
|
9
|
-
var baseDir = dirname(fileURLToPath(import.meta.url));
|
|
10
|
-
var manifestPromise = null;
|
|
11
|
-
var docsPromise = null;
|
|
12
|
-
var chunkCache = new Map;
|
|
13
|
-
function chunkKeyForId(id) {
|
|
14
|
-
if (!id)
|
|
15
|
-
return "_common";
|
|
16
|
-
if (id.includes("/")) {
|
|
17
|
-
const [prefix] = id.split("/");
|
|
18
|
-
return prefix || "_common";
|
|
19
|
-
}
|
|
20
|
-
return "_common";
|
|
21
|
-
}
|
|
22
|
-
async function loadManifest() {
|
|
23
|
-
if (!manifestPromise) {
|
|
24
|
-
manifestPromise = readFile(join(baseDir, DOCS_INDEX_MANIFEST), "utf8").then((content) => JSON.parse(content));
|
|
25
|
-
}
|
|
26
|
-
return manifestPromise;
|
|
27
|
-
}
|
|
28
|
-
function resolveContentRoot(manifest) {
|
|
29
|
-
const root = manifest.contentRoot ?? ".";
|
|
30
|
-
return join(baseDir, root);
|
|
31
|
-
}
|
|
32
|
-
async function loadChunk(fileName) {
|
|
33
|
-
const cached = chunkCache.get(fileName);
|
|
34
|
-
if (cached)
|
|
35
|
-
return cached;
|
|
36
|
-
const load = readFile(join(baseDir, fileName), "utf8").then((content) => JSON.parse(content));
|
|
37
|
-
chunkCache.set(fileName, load);
|
|
38
|
-
return load;
|
|
39
|
-
}
|
|
40
|
-
async function listGeneratedDocs() {
|
|
41
|
-
if (!docsPromise) {
|
|
42
|
-
docsPromise = (async () => {
|
|
43
|
-
const manifest = await loadManifest();
|
|
44
|
-
const chunks = await Promise.all(manifest.chunks.map((chunk) => loadChunk(chunk.file)));
|
|
45
|
-
return chunks.flat();
|
|
46
|
-
})();
|
|
47
|
-
}
|
|
48
|
-
return docsPromise;
|
|
49
|
-
}
|
|
50
|
-
async function getDocsIndexManifest() {
|
|
51
|
-
return loadManifest();
|
|
52
|
-
}
|
|
53
|
-
async function getGeneratedDocById(id) {
|
|
54
|
-
const manifest = await loadManifest();
|
|
55
|
-
const key = chunkKeyForId(id);
|
|
56
|
-
const chunk = manifest.chunks.find((item) => item.key === key);
|
|
57
|
-
if (!chunk)
|
|
58
|
-
return null;
|
|
59
|
-
const entries = await loadChunk(chunk.file);
|
|
60
|
-
const entry = entries.find((doc) => doc.id === id);
|
|
61
|
-
if (!entry || !entry.contentPath)
|
|
62
|
-
return null;
|
|
63
|
-
const contentPath = join(resolveContentRoot(manifest), entry.contentPath);
|
|
64
|
-
try {
|
|
65
|
-
const content = await readFile(contentPath, "utf8");
|
|
66
|
-
return { entry, content };
|
|
67
|
-
} catch {
|
|
68
|
-
return null;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
4
|
+
`).trim()}function b(s){let n=V(s.summary),t=s.kind??(s.source==="generated"?"reference":void 0),o=s.visibility??(s.source==="generated"?"public":void 0);return{...s,summary:n,kind:t,visibility:o}}function j(s,n){if(!n)return!0;return[s.title,s.summary,s.id,...s.tags??[]].filter(Boolean).join(" ").toLowerCase().includes(n.toLowerCase())}function w({entries:s}){let[n,t]=k({}),o=W(()=>s.map(b),[s]),p=W(()=>{let c=n.query?.trim()??"";return o.filter((i)=>{if(n.kind&&i.kind!==n.kind)return!1;if(n.visibility&&i.visibility!==n.visibility)return!1;return j(i,c)})},[n,o]),e=H.render(Q,{defaultValues:{query:n.query??"",visibility:n.visibility??"",kind:n.kind??""},overrides:{onSubmitOverride:(c)=>{let i=c;t({query:i.query??"",visibility:i.visibility??"",kind:i.kind??""})}}});return R(_,{gap:"xl",children:[R(_,{gap:"sm",children:[g(x,{children:"Reference"}),g(L,{children:"Generated reference material for public contract surfaces, versions, owners, and example-backed implementations. Use this when you need the repo truth, not just the narrative docs layer."})]}),g(_,{gap:"sm",className:"max-w-2xl",children:e}),g(z,{spec:C,items:p,emptyState:g(L,{children:"No reference docs match your filters."}),onSelect:(c)=>{if(c.route)window.location.assign(c.route)},renderActions:(c)=>{return R(S,{gap:"xs",justify:"end",children:[c.kind?g(T,{size:"sm",label:c.kind}):null,c.visibility?g(T,{size:"sm",label:c.visibility}):null,c.version?g(T,{size:"sm",label:`v${c.version}`}):null]})}})]})}import{jsx as ss}from"react/jsx-runtime";async function y(){let s=await B();return ss(w,{entries:s})}var ns=/^##\s+Metadata[\s\S]*?(?=^##\s|^#\s|Z)/m;function os(s){return s.replace(/^#\s+.*\n+/m,"").replace(ns,"")}function J(s){return/^#{1,4}\s+/.test(s)||/^```/.test(s)||/^\s*[-*]\s+/.test(s)||/^\s*\d+\.\s+/.test(s)||/^>\s+/.test(s)}function X(s){let n=os(s).split(/\r?\n/),t=[],o=0;while(o<n.length){let p=n[o]??"";if(p.startsWith("<!-- @generated")){o+=1;continue}let e=p.trim();if(!e){o+=1;continue}if(e.startsWith("```")){let i=e.slice(3).trim(),f=[];o+=1;while(o<n.length&&!(n[o]??"").trim().startsWith("```"))f.push(n[o]??""),o+=1;o+=1,t.push({type:"code",language:i||"text",code:f.join(`
|
|
5
|
+
`)});continue}if(/^#{1,4}\s+/.test(e)){let i=e.match(/^#{1,4}/)?.[0].length??2;t.push({type:"heading",level:i,text:e.replace(/^#{1,4}\s+/,"")}),o+=1;continue}if(/^>\s+/.test(e)){let i=[];while(o<n.length&&/^>\s+/.test((n[o]??"").trim()))i.push((n[o]??"").trim().replace(/^>\s+/,"")),o+=1;t.push({type:"quote",text:i.join(" ")});continue}if(/^[-*]\s+/.test(e)||/^\d+\.\s+/.test(e)){let i=/^\d+\.\s+/.test(e),f=[];while(o<n.length&&J((n[o]??"").trim())){let h=(n[o]??"").trim();if(i&&/^\d+\.\s+/.test(h))f.push(h.replace(/^\d+\.\s+/,""));else if(!i&&/^[-*]\s+/.test(h))f.push(h.replace(/^[-*]\s+/,""));else break;o+=1}t.push({type:"list",ordered:i,items:f});continue}let c=[];while(o<n.length&&!J((n[o]??"").trim())){let i=(n[o]??"").trim();if(!i)break;c.push(i),o+=1}t.push({type:"paragraph",text:c.join(" ")})}return t}import{CodeBlock as ts}from"@contractspec/lib.design-system";import{HStack as is,VStack as A}from"@contractspec/lib.ui-kit-web/ui/stack";import{BlockQuote as es,H2 as cs,H3 as rs,H4 as ps,Muted as F,P as G}from"@contractspec/lib.ui-kit-web/ui/typography";import{jsx as r,jsxs as us}from"react/jsx-runtime";var fs=new Set(["typescript","tsx","javascript","jsx","bash","shell","json","yaml","graphql","sql","python","go","rust","css","scss","html","markdown","text"]);function gs(s){if(!s)return"text";let n=s.toLowerCase();return fs.has(n)?n:"text"}function hs(s,n){if(s<=2)return r(cs,{children:n});if(s===3)return r(rs,{children:n});return r(ps,{children:n})}function K({content:s}){let n=X(s);if(!n.length)return r(F,{children:"No reference content available."});return r(A,{gap:"md",children:n.map((t,o)=>{switch(t.type){case"heading":return r(A,{children:hs(t.level,t.text)},o);case"paragraph":return r(G,{children:t.text},o);case"quote":return r(es,{children:t.text},o);case"code":return r(ts,{language:gs(t.language),code:t.code},o);case"list":return r(A,{gap:"xs",children:t.items.map((p,e)=>us(is,{gap:"sm",align:"start",children:[r(F,{children:t.ordered?`${e+1}.`:"\u2022"}),r(G,{className:"leading-relaxed",children:p})]},e))},o);default:return null}})})}import{ContractReferenceDataView as D}from"@contractspec/lib.contracts-spec/docs";import{DataViewRenderer as ds}from"@contractspec/lib.design-system";import{VStack as Ds}from"@contractspec/lib.ui-kit-web/ui/stack";import{jsx as Z,jsxs as Ps}from"react/jsx-runtime";function u(s,n){return s.match(new RegExp(`- \\*\\*${n}\\*\\*: (.+)`,"i"))?.[1]?.trim()}function Is(s){if(!s)return;return s.replace(/<!--.*?-->/g,"").replace(/[ \t]+/g," ").replace(/\n{3,}/g,`
|
|
71
6
|
|
|
72
|
-
|
|
73
|
-
import {
|
|
74
|
-
DocsIndexDataView,
|
|
75
|
-
DocsSearchForm
|
|
76
|
-
} from "@contractspec/lib.contracts-spec/docs";
|
|
77
|
-
import {
|
|
78
|
-
DataViewList,
|
|
79
|
-
formRenderer,
|
|
80
|
-
StatusChip
|
|
81
|
-
} from "@contractspec/lib.design-system";
|
|
82
|
-
import { HStack, VStack } from "@contractspec/lib.ui-kit-web/ui/stack";
|
|
83
|
-
import { H1, Muted } from "@contractspec/lib.ui-kit-web/ui/typography";
|
|
84
|
-
import { useMemo, useState } from "react";
|
|
85
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
86
|
-
"use client";
|
|
87
|
-
function cleanSummary(summary) {
|
|
88
|
-
if (!summary)
|
|
89
|
-
return;
|
|
90
|
-
return summary.replace(/<!--.*?-->/g, "").replace(/[ \t]+/g, " ").replace(/\n{3,}/g, `
|
|
91
|
-
|
|
92
|
-
`).trim();
|
|
93
|
-
}
|
|
94
|
-
function normalizeEntry(entry) {
|
|
95
|
-
const summary = cleanSummary(entry.summary);
|
|
96
|
-
const kind = entry.kind ?? (entry.source === "generated" ? "reference" : undefined);
|
|
97
|
-
const visibility = entry.visibility ?? (entry.source === "generated" ? "public" : undefined);
|
|
98
|
-
return {
|
|
99
|
-
...entry,
|
|
100
|
-
summary,
|
|
101
|
-
kind,
|
|
102
|
-
visibility
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
function matchesQuery(entry, query) {
|
|
106
|
-
if (!query)
|
|
107
|
-
return true;
|
|
108
|
-
const haystack = [entry.title, entry.summary, entry.id, ...entry.tags ?? []].filter(Boolean).join(" ").toLowerCase();
|
|
109
|
-
return haystack.includes(query.toLowerCase());
|
|
110
|
-
}
|
|
111
|
-
function DocsReferenceIndexClient({
|
|
112
|
-
entries
|
|
113
|
-
}) {
|
|
114
|
-
const [filters, setFilters] = useState({});
|
|
115
|
-
const normalizedEntries = useMemo(() => entries.map(normalizeEntry), [entries]);
|
|
116
|
-
const filteredEntries = useMemo(() => {
|
|
117
|
-
const query = filters.query?.trim() ?? "";
|
|
118
|
-
return normalizedEntries.filter((entry) => {
|
|
119
|
-
if (filters.kind && entry.kind !== filters.kind)
|
|
120
|
-
return false;
|
|
121
|
-
if (filters.visibility && entry.visibility !== filters.visibility)
|
|
122
|
-
return false;
|
|
123
|
-
return matchesQuery(entry, query);
|
|
124
|
-
});
|
|
125
|
-
}, [filters, normalizedEntries]);
|
|
126
|
-
const searchForm = formRenderer.render(DocsSearchForm, {
|
|
127
|
-
defaultValues: {
|
|
128
|
-
query: filters.query ?? "",
|
|
129
|
-
visibility: filters.visibility ?? "",
|
|
130
|
-
kind: filters.kind ?? ""
|
|
131
|
-
},
|
|
132
|
-
overrides: {
|
|
133
|
-
onSubmitOverride: (values) => {
|
|
134
|
-
const submitted = values;
|
|
135
|
-
setFilters({
|
|
136
|
-
query: submitted.query ?? "",
|
|
137
|
-
visibility: submitted.visibility ?? "",
|
|
138
|
-
kind: submitted.kind ?? ""
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
return /* @__PURE__ */ jsxs(VStack, {
|
|
144
|
-
gap: "xl",
|
|
145
|
-
children: [
|
|
146
|
-
/* @__PURE__ */ jsxs(VStack, {
|
|
147
|
-
gap: "sm",
|
|
148
|
-
children: [
|
|
149
|
-
/* @__PURE__ */ jsx(H1, {
|
|
150
|
-
children: "Reference"
|
|
151
|
-
}),
|
|
152
|
-
/* @__PURE__ */ jsx(Muted, {
|
|
153
|
-
children: "Generated reference material for public contract surfaces, versions, owners, and example-backed implementations. Use this when you need the repo truth, not just the narrative docs layer."
|
|
154
|
-
})
|
|
155
|
-
]
|
|
156
|
-
}),
|
|
157
|
-
/* @__PURE__ */ jsx(VStack, {
|
|
158
|
-
gap: "sm",
|
|
159
|
-
className: "max-w-2xl",
|
|
160
|
-
children: searchForm
|
|
161
|
-
}),
|
|
162
|
-
/* @__PURE__ */ jsx(DataViewList, {
|
|
163
|
-
spec: DocsIndexDataView,
|
|
164
|
-
items: filteredEntries,
|
|
165
|
-
emptyState: /* @__PURE__ */ jsx(Muted, {
|
|
166
|
-
children: "No reference docs match your filters."
|
|
167
|
-
}),
|
|
168
|
-
onSelect: (entry) => {
|
|
169
|
-
if (entry.route) {
|
|
170
|
-
window.location.assign(entry.route);
|
|
171
|
-
}
|
|
172
|
-
},
|
|
173
|
-
renderActions: (entry) => {
|
|
174
|
-
return /* @__PURE__ */ jsxs(HStack, {
|
|
175
|
-
gap: "xs",
|
|
176
|
-
justify: "end",
|
|
177
|
-
children: [
|
|
178
|
-
entry.kind ? /* @__PURE__ */ jsx(StatusChip, {
|
|
179
|
-
size: "sm",
|
|
180
|
-
label: entry.kind
|
|
181
|
-
}) : null,
|
|
182
|
-
entry.visibility ? /* @__PURE__ */ jsx(StatusChip, {
|
|
183
|
-
size: "sm",
|
|
184
|
-
label: entry.visibility
|
|
185
|
-
}) : null,
|
|
186
|
-
entry.version ? /* @__PURE__ */ jsx(StatusChip, {
|
|
187
|
-
size: "sm",
|
|
188
|
-
label: `v${entry.version}`
|
|
189
|
-
}) : null
|
|
190
|
-
]
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
})
|
|
194
|
-
]
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
// src/components/docs/reference/DocsReferenceIndexPage.tsx
|
|
199
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
200
|
-
async function DocsReferenceIndexPage() {
|
|
201
|
-
const entries = await listGeneratedDocs();
|
|
202
|
-
return /* @__PURE__ */ jsx2(DocsReferenceIndexClient, {
|
|
203
|
-
entries
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
// src/components/docs/reference/docsMarkdownParser.ts
|
|
208
|
-
var METADATA_SECTION = /^##\s+Metadata[\s\S]*?(?=^##\s|^#\s|Z)/m;
|
|
209
|
-
function stripMetadata(content) {
|
|
210
|
-
const withoutTitle = content.replace(/^#\s+.*\n+/m, "");
|
|
211
|
-
return withoutTitle.replace(METADATA_SECTION, "");
|
|
212
|
-
}
|
|
213
|
-
function isBlockStart(line) {
|
|
214
|
-
return /^#{1,4}\s+/.test(line) || /^```/.test(line) || /^\s*[-*]\s+/.test(line) || /^\s*\d+\.\s+/.test(line) || /^>\s+/.test(line);
|
|
215
|
-
}
|
|
216
|
-
function parseDocsMarkdown(content) {
|
|
217
|
-
const lines = stripMetadata(content).split(/\r?\n/);
|
|
218
|
-
const blocks = [];
|
|
219
|
-
let i = 0;
|
|
220
|
-
while (i < lines.length) {
|
|
221
|
-
const line = lines[i] ?? "";
|
|
222
|
-
if (line.startsWith("<!-- @generated")) {
|
|
223
|
-
i += 1;
|
|
224
|
-
continue;
|
|
225
|
-
}
|
|
226
|
-
const trimmed = line.trim();
|
|
227
|
-
if (!trimmed) {
|
|
228
|
-
i += 1;
|
|
229
|
-
continue;
|
|
230
|
-
}
|
|
231
|
-
if (trimmed.startsWith("```")) {
|
|
232
|
-
const language = trimmed.slice(3).trim();
|
|
233
|
-
const codeLines = [];
|
|
234
|
-
i += 1;
|
|
235
|
-
while (i < lines.length && !(lines[i] ?? "").trim().startsWith("```")) {
|
|
236
|
-
codeLines.push(lines[i] ?? "");
|
|
237
|
-
i += 1;
|
|
238
|
-
}
|
|
239
|
-
i += 1;
|
|
240
|
-
blocks.push({
|
|
241
|
-
type: "code",
|
|
242
|
-
language: language || "text",
|
|
243
|
-
code: codeLines.join(`
|
|
244
|
-
`)
|
|
245
|
-
});
|
|
246
|
-
continue;
|
|
247
|
-
}
|
|
248
|
-
if (/^#{1,4}\s+/.test(trimmed)) {
|
|
249
|
-
const level = trimmed.match(/^#{1,4}/)?.[0].length ?? 2;
|
|
250
|
-
blocks.push({
|
|
251
|
-
type: "heading",
|
|
252
|
-
level,
|
|
253
|
-
text: trimmed.replace(/^#{1,4}\s+/, "")
|
|
254
|
-
});
|
|
255
|
-
i += 1;
|
|
256
|
-
continue;
|
|
257
|
-
}
|
|
258
|
-
if (/^>\s+/.test(trimmed)) {
|
|
259
|
-
const quoteLines = [];
|
|
260
|
-
while (i < lines.length && /^>\s+/.test((lines[i] ?? "").trim())) {
|
|
261
|
-
quoteLines.push((lines[i] ?? "").trim().replace(/^>\s+/, ""));
|
|
262
|
-
i += 1;
|
|
263
|
-
}
|
|
264
|
-
blocks.push({ type: "quote", text: quoteLines.join(" ") });
|
|
265
|
-
continue;
|
|
266
|
-
}
|
|
267
|
-
if (/^[-*]\s+/.test(trimmed) || /^\d+\.\s+/.test(trimmed)) {
|
|
268
|
-
const ordered = /^\d+\.\s+/.test(trimmed);
|
|
269
|
-
const items = [];
|
|
270
|
-
while (i < lines.length && isBlockStart((lines[i] ?? "").trim())) {
|
|
271
|
-
const itemLine = (lines[i] ?? "").trim();
|
|
272
|
-
if (ordered && /^\d+\.\s+/.test(itemLine)) {
|
|
273
|
-
items.push(itemLine.replace(/^\d+\.\s+/, ""));
|
|
274
|
-
} else if (!ordered && /^[-*]\s+/.test(itemLine)) {
|
|
275
|
-
items.push(itemLine.replace(/^[-*]\s+/, ""));
|
|
276
|
-
} else {
|
|
277
|
-
break;
|
|
278
|
-
}
|
|
279
|
-
i += 1;
|
|
280
|
-
}
|
|
281
|
-
blocks.push({ type: "list", ordered, items });
|
|
282
|
-
continue;
|
|
283
|
-
}
|
|
284
|
-
const paragraphLines = [];
|
|
285
|
-
while (i < lines.length && !isBlockStart((lines[i] ?? "").trim())) {
|
|
286
|
-
const paragraphLine = (lines[i] ?? "").trim();
|
|
287
|
-
if (!paragraphLine)
|
|
288
|
-
break;
|
|
289
|
-
paragraphLines.push(paragraphLine);
|
|
290
|
-
i += 1;
|
|
291
|
-
}
|
|
292
|
-
blocks.push({ type: "paragraph", text: paragraphLines.join(" ") });
|
|
293
|
-
}
|
|
294
|
-
return blocks;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
// src/components/docs/reference/DocsMarkdownContent.tsx
|
|
298
|
-
import { CodeBlock } from "@contractspec/lib.design-system";
|
|
299
|
-
import { HStack as HStack2, VStack as VStack2 } from "@contractspec/lib.ui-kit-web/ui/stack";
|
|
300
|
-
import {
|
|
301
|
-
BlockQuote,
|
|
302
|
-
H2,
|
|
303
|
-
H3,
|
|
304
|
-
H4,
|
|
305
|
-
Muted as Muted2,
|
|
306
|
-
P
|
|
307
|
-
} from "@contractspec/lib.ui-kit-web/ui/typography";
|
|
308
|
-
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
309
|
-
"use client";
|
|
310
|
-
var CODE_LANGUAGES = new Set([
|
|
311
|
-
"typescript",
|
|
312
|
-
"tsx",
|
|
313
|
-
"javascript",
|
|
314
|
-
"jsx",
|
|
315
|
-
"bash",
|
|
316
|
-
"shell",
|
|
317
|
-
"json",
|
|
318
|
-
"yaml",
|
|
319
|
-
"graphql",
|
|
320
|
-
"sql",
|
|
321
|
-
"python",
|
|
322
|
-
"go",
|
|
323
|
-
"rust",
|
|
324
|
-
"css",
|
|
325
|
-
"scss",
|
|
326
|
-
"html",
|
|
327
|
-
"markdown",
|
|
328
|
-
"text"
|
|
329
|
-
]);
|
|
330
|
-
function toCodeLanguage(language) {
|
|
331
|
-
if (!language)
|
|
332
|
-
return "text";
|
|
333
|
-
const normalized = language.toLowerCase();
|
|
334
|
-
return CODE_LANGUAGES.has(normalized) ? normalized : "text";
|
|
335
|
-
}
|
|
336
|
-
function renderHeading(level, text) {
|
|
337
|
-
if (level <= 2)
|
|
338
|
-
return /* @__PURE__ */ jsx3(H2, {
|
|
339
|
-
children: text
|
|
340
|
-
});
|
|
341
|
-
if (level === 3)
|
|
342
|
-
return /* @__PURE__ */ jsx3(H3, {
|
|
343
|
-
children: text
|
|
344
|
-
});
|
|
345
|
-
return /* @__PURE__ */ jsx3(H4, {
|
|
346
|
-
children: text
|
|
347
|
-
});
|
|
348
|
-
}
|
|
349
|
-
function DocsMarkdownContent({ content }) {
|
|
350
|
-
const blocks = parseDocsMarkdown(content);
|
|
351
|
-
if (!blocks.length) {
|
|
352
|
-
return /* @__PURE__ */ jsx3(Muted2, {
|
|
353
|
-
children: "No reference content available."
|
|
354
|
-
});
|
|
355
|
-
}
|
|
356
|
-
return /* @__PURE__ */ jsx3(VStack2, {
|
|
357
|
-
gap: "md",
|
|
358
|
-
children: blocks.map((block, index) => {
|
|
359
|
-
switch (block.type) {
|
|
360
|
-
case "heading":
|
|
361
|
-
return /* @__PURE__ */ jsx3(VStack2, {
|
|
362
|
-
children: renderHeading(block.level, block.text)
|
|
363
|
-
}, index);
|
|
364
|
-
case "paragraph":
|
|
365
|
-
return /* @__PURE__ */ jsx3(P, {
|
|
366
|
-
children: block.text
|
|
367
|
-
}, index);
|
|
368
|
-
case "quote":
|
|
369
|
-
return /* @__PURE__ */ jsx3(BlockQuote, {
|
|
370
|
-
children: block.text
|
|
371
|
-
}, index);
|
|
372
|
-
case "code":
|
|
373
|
-
return /* @__PURE__ */ jsx3(CodeBlock, {
|
|
374
|
-
language: toCodeLanguage(block.language),
|
|
375
|
-
code: block.code
|
|
376
|
-
}, index);
|
|
377
|
-
case "list":
|
|
378
|
-
return /* @__PURE__ */ jsx3(VStack2, {
|
|
379
|
-
gap: "xs",
|
|
380
|
-
children: block.items.map((item, itemIndex) => /* @__PURE__ */ jsxs2(HStack2, {
|
|
381
|
-
gap: "sm",
|
|
382
|
-
align: "start",
|
|
383
|
-
children: [
|
|
384
|
-
/* @__PURE__ */ jsx3(Muted2, {
|
|
385
|
-
children: block.ordered ? `${itemIndex + 1}.` : "\u2022"
|
|
386
|
-
}),
|
|
387
|
-
/* @__PURE__ */ jsx3(P, {
|
|
388
|
-
className: "leading-relaxed",
|
|
389
|
-
children: item
|
|
390
|
-
})
|
|
391
|
-
]
|
|
392
|
-
}, itemIndex))
|
|
393
|
-
}, index);
|
|
394
|
-
default:
|
|
395
|
-
return null;
|
|
396
|
-
}
|
|
397
|
-
})
|
|
398
|
-
});
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
// src/components/docs/reference/DocsReferenceContent.tsx
|
|
402
|
-
import { ContractReferenceDataView } from "@contractspec/lib.contracts-spec/docs";
|
|
403
|
-
import { DataViewRenderer } from "@contractspec/lib.design-system";
|
|
404
|
-
import { VStack as VStack3 } from "@contractspec/lib.ui-kit-web/ui/stack";
|
|
405
|
-
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
406
|
-
"use client";
|
|
407
|
-
function extractMeta(content, label) {
|
|
408
|
-
const match = content.match(new RegExp(`- \\*\\*${label}\\*\\*: (.+)`, "i"));
|
|
409
|
-
return match?.[1]?.trim();
|
|
410
|
-
}
|
|
411
|
-
function cleanSummary2(summary) {
|
|
412
|
-
if (!summary)
|
|
413
|
-
return;
|
|
414
|
-
return summary.replace(/<!--.*?-->/g, "").replace(/[ \t]+/g, " ").replace(/\n{3,}/g, `
|
|
415
|
-
|
|
416
|
-
`).trim();
|
|
417
|
-
}
|
|
418
|
-
function DocsReferenceContent({
|
|
419
|
-
entry,
|
|
420
|
-
content
|
|
421
|
-
}) {
|
|
422
|
-
const summary = cleanSummary2(entry.summary);
|
|
423
|
-
const type = extractMeta(content, "Type");
|
|
424
|
-
const version = extractMeta(content, "Version") ?? entry.version;
|
|
425
|
-
const tags = extractMeta(content, "Tags")?.split(",").map((tag) => tag.trim()).filter(Boolean);
|
|
426
|
-
const owners = extractMeta(content, "Owners")?.split(",").map((owner) => owner.trim()).filter(Boolean);
|
|
427
|
-
const stability = extractMeta(content, "Stability") ?? entry.visibility;
|
|
428
|
-
const referenceItem = {
|
|
429
|
-
reference: {
|
|
430
|
-
key: entry.title ?? entry.id,
|
|
431
|
-
version,
|
|
432
|
-
type,
|
|
433
|
-
title: entry.title ?? entry.id,
|
|
434
|
-
description: summary,
|
|
435
|
-
tags: tags ?? entry.tags,
|
|
436
|
-
owners: owners ?? entry.owners,
|
|
437
|
-
stability
|
|
438
|
-
}
|
|
439
|
-
};
|
|
440
|
-
const detailSpec = {
|
|
441
|
-
...ContractReferenceDataView,
|
|
442
|
-
meta: {
|
|
443
|
-
...ContractReferenceDataView.meta,
|
|
444
|
-
title: entry.title ?? ContractReferenceDataView.meta.title,
|
|
445
|
-
description: summary ?? ContractReferenceDataView.meta.description
|
|
446
|
-
}
|
|
447
|
-
};
|
|
448
|
-
return /* @__PURE__ */ jsxs3(VStack3, {
|
|
449
|
-
gap: "xl",
|
|
450
|
-
children: [
|
|
451
|
-
/* @__PURE__ */ jsx4(DataViewRenderer, {
|
|
452
|
-
spec: detailSpec,
|
|
453
|
-
item: referenceItem
|
|
454
|
-
}),
|
|
455
|
-
/* @__PURE__ */ jsx4(DocsMarkdownContent, {
|
|
456
|
-
content
|
|
457
|
-
})
|
|
458
|
-
]
|
|
459
|
-
});
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
// src/components/docs/reference/DocsReferencePage.tsx
|
|
463
|
-
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
464
|
-
function DocsReferencePage({ entry, content }) {
|
|
465
|
-
return /* @__PURE__ */ jsx5(DocsReferenceContent, {
|
|
466
|
-
entry,
|
|
467
|
-
content
|
|
468
|
-
});
|
|
469
|
-
}
|
|
470
|
-
export {
|
|
471
|
-
DocsReferencePage,
|
|
472
|
-
DocsReferenceIndexPage
|
|
473
|
-
};
|
|
7
|
+
`).trim()}function U({entry:s,content:n}){let t=Is(s.summary),o=u(n,"Type"),p=u(n,"Version")??s.version,e=u(n,"Tags")?.split(",").map((I)=>I.trim()).filter(Boolean),c=u(n,"Owners")?.split(",").map((I)=>I.trim()).filter(Boolean),i=u(n,"Stability")??s.visibility,f={reference:{key:s.title??s.id,version:p,type:o,title:s.title??s.id,description:t,tags:e??s.tags,owners:c??s.owners,stability:i}},h={...D,meta:{...D.meta,title:s.title??D.meta.title,description:t??D.meta.description}};return Ps(Ds,{gap:"xl",children:[Z(ds,{spec:h,item:f}),Z(K,{content:n})]})}import{jsx as ls}from"react/jsx-runtime";function as({entry:s,content:n}){return ls(U,{entry:s,content:n})}export{as as DocsReferencePage,y as DocsReferenceIndexPage};
|