@contractspec/bundle.library 3.8.10 → 3.8.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +606 -594
- package/CHANGELOG.md +59 -0
- package/dist/application/context-storage/index.js +1 -28
- package/dist/application/index.js +13 -2133
- package/dist/application/mcp/cliMcp.js +4 -452
- package/dist/application/mcp/common.js +1 -193
- package/dist/application/mcp/contractsMcp.js +2 -549
- package/dist/application/mcp/contractsMcpResources.js +2 -123
- package/dist/application/mcp/contractsMcpTools.js +1 -199
- package/dist/application/mcp/docsMcp.catalog.js +3 -381
- package/dist/application/mcp/docsMcp.data.js +1 -147
- package/dist/application/mcp/docsMcp.js +6 -1039
- package/dist/application/mcp/docsMcp.prompts.js +6 -521
- package/dist/application/mcp/docsMcp.reference.js +3 -235
- package/dist/application/mcp/docsMcp.resources.js +3 -519
- package/dist/application/mcp/docsMcp.tools.js +3 -518
- package/dist/application/mcp/index.js +13 -2106
- package/dist/application/mcp/internalMcp.js +2 -410
- package/dist/application/mcp/normalizeMcpRequest.js +1 -21
- package/dist/application/mcp/providerRankingMcp.js +1 -530
- package/dist/bundles/LibraryBundle.js +1 -138
- package/dist/bundles/index.js +1 -138
- package/dist/components/docs/DocsIndexPage.js +2 -912
- package/dist/components/docs/advanced/AdvancedMCPPage.js +4 -271
- package/dist/components/docs/advanced/AdvancedOverlayEditorPage.js +1 -107
- package/dist/components/docs/advanced/AdvancedRenderersPage.js +2 -118
- package/dist/components/docs/advanced/AdvancedSpecExperimentsPage.js +4 -92
- package/dist/components/docs/advanced/AdvancedTelemetryPage.js +2 -373
- package/dist/components/docs/advanced/AdvancedWorkflowMonitoringPage.js +2 -99
- package/dist/components/docs/advanced/index.js +10 -1055
- package/dist/components/docs/architecture/ArchitectureAppConfigPage.js +6 -243
- package/dist/components/docs/architecture/ArchitectureControlPlanePage.js +3 -160
- package/dist/components/docs/architecture/ArchitectureIntegrationBindingPage.js +7 -259
- package/dist/components/docs/architecture/ArchitectureKnowledgeBindingPage.js +6 -374
- package/dist/components/docs/architecture/ArchitectureMultiTenancyPage.js +2 -166
- package/dist/components/docs/architecture/ArchitectureOverviewPage.js +1 -143
- package/dist/components/docs/architecture/index.js +20 -1340
- package/dist/components/docs/comparison/ComparisonAutomationPlatformsPage.js +1 -245
- package/dist/components/docs/comparison/ComparisonEnterprisePlatformsPage.js +1 -230
- package/dist/components/docs/comparison/ComparisonInternalToolBuildersPage.js +1 -245
- package/dist/components/docs/comparison/ComparisonOverviewPage.js +1 -202
- package/dist/components/docs/comparison/ComparisonWindmillPage.js +1 -254
- package/dist/components/docs/comparison/ComparisonWorkflowEnginesPage.js +1 -339
- package/dist/components/docs/comparison/index.js +1 -1510
- package/dist/components/docs/docsManifest.js +1 -611
- package/dist/components/docs/docsManifest.test.d.ts +1 -0
- package/dist/components/docs/ecosystem/IntegrationsPage.js +2 -103
- package/dist/components/docs/ecosystem/PluginsPage.js +13 -179
- package/dist/components/docs/ecosystem/RegistryPage.js +7 -100
- package/dist/components/docs/ecosystem/TemplatesPage.js +3 -141
- package/dist/components/docs/ecosystem/ecosystem.docblocks.js +2 -48
- package/dist/components/docs/ecosystem/index.js +23 -569
- package/dist/components/docs/examples/DocsExamplesPage.js +4 -124
- package/dist/components/docs/examples/ExampleShowcasePage.js +4 -244
- package/dist/components/docs/examples/exampleShowcaseData.js +4 -39
- package/dist/components/docs/examples/index.js +4 -330
- package/dist/components/docs/generated/docs-index.generated.js +1 -5
- package/dist/components/docs/generated/index.js +1 -74
- package/dist/components/docs/generated/loader.js +1 -74
- package/dist/components/docs/getting-started/CLIPage.js +4 -271
- package/dist/components/docs/getting-started/CompatibilityPage.js +1 -173
- package/dist/components/docs/getting-started/DataViewTutorialPage.js +4 -134
- package/dist/components/docs/getting-started/DeveloperToolsPage.js +1 -194
- package/dist/components/docs/getting-started/HelloWorldPage.js +5 -183
- package/dist/components/docs/getting-started/InstallationPage.js +3 -154
- package/dist/components/docs/getting-started/StartHerePage.js +2 -129
- package/dist/components/docs/getting-started/TroubleshootingPage.js +2 -168
- package/dist/components/docs/getting-started/VSCodeExtensionPage.js +1 -432
- package/dist/components/docs/getting-started/getting-started.docblocks.js +4 -41
- package/dist/components/docs/getting-started/index.js +18 -1869
- package/dist/components/docs/guides/GuideCIDiffGatingPage.js +2 -196
- package/dist/components/docs/guides/GuideConnectInRepoPage.d.ts +1 -0
- package/dist/components/docs/guides/GuideConnectInRepoPage.js +44 -0
- package/dist/components/docs/guides/GuideContractTypesPage.js +6 -541
- package/dist/components/docs/guides/GuideDocsPipelinePage.js +3 -207
- package/dist/components/docs/guides/GuideFirstModuleBundlePage.d.ts +1 -0
- package/dist/components/docs/guides/GuideFirstModuleBundlePage.js +76 -0
- package/dist/components/docs/guides/GuideGenerateDocsClientsSchemasPage.js +2 -209
- package/dist/components/docs/guides/GuideHostBuilderWorkbenchPage.d.ts +1 -0
- package/dist/components/docs/guides/GuideHostBuilderWorkbenchPage.js +70 -0
- package/dist/components/docs/guides/GuideImportExistingCodebasesPage.js +8 -754
- package/dist/components/docs/guides/GuideNextjsOneEndpointPage.js +6 -268
- package/dist/components/docs/guides/GuideSpecValidationTypingPage.js +4 -196
- package/dist/components/docs/guides/GuidesIndexPage.js +2 -169
- package/dist/components/docs/guides/guides.docblocks.js +11 -75
- package/dist/components/docs/guides/index.d.ts +3 -0
- package/dist/components/docs/guides/index.js +213 -2428
- package/dist/components/docs/index.js +542 -24310
- package/dist/components/docs/integrations/IntegrationsCircuitBreakersPage.js +2 -42
- package/dist/components/docs/integrations/IntegrationsElevenLabsPage.js +3 -105
- package/dist/components/docs/integrations/IntegrationsGithubPage.js +3 -142
- package/dist/components/docs/integrations/IntegrationsGmailPage.js +3 -109
- package/dist/components/docs/integrations/IntegrationsGoogleCalendarPage.js +3 -79
- package/dist/components/docs/integrations/IntegrationsHealthRoutingPage.js +3 -146
- package/dist/components/docs/integrations/IntegrationsMistralPage.js +5 -150
- package/dist/components/docs/integrations/IntegrationsOpenAIPage.js +5 -140
- package/dist/components/docs/integrations/IntegrationsOverviewPage.js +1 -160
- package/dist/components/docs/integrations/IntegrationsPostmarkPage.js +4 -218
- package/dist/components/docs/integrations/IntegrationsPowensPage.js +4 -300
- package/dist/components/docs/integrations/IntegrationsQdrantPage.js +5 -111
- package/dist/components/docs/integrations/IntegrationsResendPage.js +3 -102
- package/dist/components/docs/integrations/IntegrationsS3Page.js +4 -124
- package/dist/components/docs/integrations/IntegrationsSlackPage.js +3 -144
- package/dist/components/docs/integrations/IntegrationsSpecModelPage.js +7 -290
- package/dist/components/docs/integrations/IntegrationsStripePage.js +6 -327
- package/dist/components/docs/integrations/IntegrationsTwilioPage.js +3 -128
- package/dist/components/docs/integrations/IntegrationsWhatsappMetaPage.js +2 -146
- package/dist/components/docs/integrations/IntegrationsWhatsappTwilioPage.js +2 -156
- package/dist/components/docs/integrations/index.js +52 -3100
- package/dist/components/docs/intent/ContractFirstApiPage.js +2 -126
- package/dist/components/docs/intent/DeterministicCodegenPage.js +2 -148
- package/dist/components/docs/intent/GenerateClientFromSchemaPage.js +7 -207
- package/dist/components/docs/intent/OpenapiAlternativePage.js +3 -201
- package/dist/components/docs/intent/SchemaValidationTypescriptPage.js +4 -144
- package/dist/components/docs/intent/SpecDrivenDevelopmentPage.js +2 -126
- package/dist/components/docs/intent/index.js +15 -1135
- package/dist/components/docs/intent/intent-pages.docblocks.js +1 -201
- package/dist/components/docs/knowledge/KnowledgeCategoriesPage.js +6 -750
- package/dist/components/docs/knowledge/KnowledgeExamplesPage.js +4 -175
- package/dist/components/docs/knowledge/KnowledgeOverviewPage.js +1 -116
- package/dist/components/docs/knowledge/KnowledgeSourcesPage.js +8 -391
- package/dist/components/docs/knowledge/KnowledgeSpacesPage.js +6 -302
- package/dist/components/docs/knowledge/index.js +21 -1730
- package/dist/components/docs/libraries/LibrariesAccessibilityPage.js +3 -198
- package/dist/components/docs/libraries/LibrariesAiAgentPage.js +3 -141
- package/dist/components/docs/libraries/LibrariesAnalyticsPage.js +4 -80
- package/dist/components/docs/libraries/LibrariesContentGenPage.js +2 -100
- package/dist/components/docs/libraries/LibrariesContractsPage.js +2 -284
- package/dist/components/docs/libraries/LibrariesCostTrackingPage.js +3 -112
- package/dist/components/docs/libraries/LibrariesDataBackendPage.js +2 -166
- package/dist/components/docs/libraries/LibrariesDataViewsPage.js +3 -186
- package/dist/components/docs/libraries/LibrariesDesignSystemPage.js +4 -279
- package/dist/components/docs/libraries/LibrariesEvolutionPage.js +4 -127
- package/dist/components/docs/libraries/LibrariesGraphQLPage.js +2 -173
- package/dist/components/docs/libraries/LibrariesGrowthPage.js +3 -88
- package/dist/components/docs/libraries/LibrariesMultiTenancyPage.js +3 -108
- package/dist/components/docs/libraries/LibrariesObservabilityPage.js +5 -130
- package/dist/components/docs/libraries/LibrariesOverlayEnginePage.js +4 -110
- package/dist/components/docs/libraries/LibrariesOverviewPage.js +1 -170
- package/dist/components/docs/libraries/LibrariesPersonalizationPage.js +4 -114
- package/dist/components/docs/libraries/LibrariesProgressiveDeliveryPage.js +3 -132
- package/dist/components/docs/libraries/LibrariesResiliencePage.js +4 -120
- package/dist/components/docs/libraries/LibrariesRuntimePage.js +2 -200
- package/dist/components/docs/libraries/LibrariesSLOPage.js +3 -116
- package/dist/components/docs/libraries/LibrariesSchemaPage.js +3 -273
- package/dist/components/docs/libraries/LibrariesSupportBotPage.js +3 -134
- package/dist/components/docs/libraries/LibrariesTestingPage.js +3 -133
- package/dist/components/docs/libraries/LibrariesUIKitPage.js +2 -230
- package/dist/components/docs/libraries/LibrariesWorkflowComposerPage.js +3 -88
- package/dist/components/docs/libraries/LibrariesWorkflowsPage.js +2 -181
- package/dist/components/docs/libraries/index.js +54 -4147
- package/dist/components/docs/manifesto/ManifestoPage.js +1 -86
- package/dist/components/docs/ops/AutoEvolutionOpsPage.js +2 -132
- package/dist/components/docs/ops/DistributedTracingOpsPage.js +2 -71
- package/dist/components/docs/ops/index.js +3 -202
- package/dist/components/docs/ops/ops-lifecycle.docblocks.js +3 -38
- package/dist/components/docs/ops/ops-runbooks-a.docblocks.js +3 -94
- package/dist/components/docs/ops/ops-runbooks-b.docblocks.js +3 -76
- package/dist/components/docs/ops/ops-slo-tenant.docblocks.js +3 -76
- package/dist/components/docs/ops/ops-top.docs.js +2 -17
- package/dist/components/docs/ops/ops.docs.js +10 -302
- package/dist/components/docs/product/product.docblocks.js +5 -72
- package/dist/components/docs/reference/DocsMarkdownContent.js +2 -196
- package/dist/components/docs/reference/DocsReferenceContent.js +3 -256
- package/dist/components/docs/reference/DocsReferenceIndexClient.js +2 -127
- package/dist/components/docs/reference/DocsReferenceIndexPage.js +2 -206
- package/dist/components/docs/reference/DocsReferencePage.js +3 -265
- package/dist/components/docs/reference/docsMarkdownParser.js +2 -92
- package/dist/components/docs/reference/index.js +4 -470
- package/dist/components/docs/safety/SafetyAuditingPage.js +2 -350
- package/dist/components/docs/safety/SafetyMigrationsPage.js +2 -359
- package/dist/components/docs/safety/SafetyOverviewPage.js +1 -101
- package/dist/components/docs/safety/SafetyPDPPage.js +2 -301
- package/dist/components/docs/safety/SafetySecurityTrustPage.js +1 -206
- package/dist/components/docs/safety/SafetySigningPage.js +3 -90
- package/dist/components/docs/safety/SafetyTenantIsolationPage.js +2 -79
- package/dist/components/docs/safety/index.js +7 -1480
- package/dist/components/docs/shared/StudioPrompt.js +1 -31
- package/dist/components/docs/specs/SpecsBuilderControlPlanePage.d.ts +1 -0
- package/dist/components/docs/specs/SpecsBuilderControlPlanePage.js +34 -0
- package/dist/components/docs/specs/SpecsCapabilitiesPage.js +2 -158
- package/dist/components/docs/specs/SpecsConnectPage.d.ts +1 -0
- package/dist/components/docs/specs/SpecsConnectPage.js +8 -0
- package/dist/components/docs/specs/SpecsDataViewsPage.js +2 -260
- package/dist/components/docs/specs/SpecsModuleBundlesPage.d.ts +1 -0
- package/dist/components/docs/specs/SpecsModuleBundlesPage.js +67 -0
- package/dist/components/docs/specs/SpecsOverlaysPage.js +2 -372
- package/dist/components/docs/specs/SpecsOverviewPage.js +1 -186
- package/dist/components/docs/specs/SpecsPolicyPage.js +3 -420
- package/dist/components/docs/specs/SpecsWorkflowsPage.js +2 -325
- package/dist/components/docs/specs/index.d.ts +3 -0
- package/dist/components/docs/specs/index.js +109 -1715
- package/dist/components/docs/studio/StudioBYOKPage.js +1 -26
- package/dist/components/docs/studio/StudioDeploymentsPage.js +1 -26
- package/dist/components/docs/studio/StudioGettingStartedPage.js +1 -26
- package/dist/components/docs/studio/StudioIntegrationsPage.js +1 -26
- package/dist/components/docs/studio/StudioOverviewPage.js +1 -157
- package/dist/components/docs/studio/StudioVisualBuilderPage.js +1 -26
- package/dist/components/docs/studio/index.js +1 -282
- package/dist/components/docs/tech/contracts/tech-docs.docblocks.js +2 -19
- package/dist/components/integrations/index.js +2 -600
- package/dist/components/integrations/molecules/IntegrationCard.js +1 -100
- package/dist/components/integrations/organisms/IntegrationMarketplace.js +1 -214
- package/dist/components/integrations/organisms/IntegrationSettings.js +2 -284
- package/dist/components/integrations/organisms/KnowledgeSourceList.js +1 -103
- package/dist/components/legal/PrivacyTemplate.js +1 -1025
- package/dist/components/legal/TermsTemplate.js +1 -941
- package/dist/components/legal/index.js +1 -1963
- package/dist/components/shared/FeatureGateNotice.js +1 -38
- package/dist/components/shared/index.js +1 -38
- package/dist/components/shell/WorkspaceHeader.js +1 -100
- package/dist/components/shell/WorkspaceProjectShellLayout.js +1 -222
- package/dist/components/shell/WorkspaceShellRenderer.js +1 -228
- package/dist/components/shell/WorkspaceSidebar.js +1 -68
- package/dist/components/shell/index.js +1 -287
- package/dist/components/templates/engine/index.js +1 -39
- package/dist/components/templates/index.js +11 -965
- package/dist/components/templates/messaging/ConversationList.js +2 -83
- package/dist/components/templates/messaging/MessageComposer.js +4 -150
- package/dist/components/templates/messaging/MessageThread.js +3 -83
- package/dist/components/templates/messaging/MessagingWorkspace.js +5 -265
- package/dist/components/templates/messaging/index.js +5 -269
- package/dist/components/templates/recipes/LanguageSwitcher.js +1 -16
- package/dist/components/templates/recipes/RecipeCard.js +1 -80
- package/dist/components/templates/recipes/RecipeDetail.js +1 -74
- package/dist/components/templates/recipes/RecipeList.js +3 -245
- package/dist/components/templates/recipes/index.js +3 -248
- package/dist/components/templates/todos/FilterBar.js +1 -107
- package/dist/components/templates/todos/TaskForm.js +2 -158
- package/dist/components/templates/todos/TaskItem.js +1 -77
- package/dist/components/templates/todos/TaskList.js +5 -449
- package/dist/components/templates/todos/index.js +5 -452
- package/dist/config/contractspec-blueprint.js +1 -123
- package/dist/config/contractspec-branding.js +1 -44
- package/dist/config/contractspec-routes.js +1 -24
- package/dist/config/index.js +1 -126
- package/dist/features/contracts-registry.js +1 -178
- package/dist/features/docs/docs.contracts.js +1 -17
- package/dist/features/docs/index.js +1 -17
- package/dist/features/docs.feature.js +1 -33
- package/dist/features/index.js +1 -315
- package/dist/features/mcp.feature.js +1 -30
- package/dist/features/presentations.feature.js +1 -33
- package/dist/features/registry.js +1 -116
- package/dist/index.js +556 -28593
- package/dist/infrastructure/elysia/index.js +1 -35
- package/dist/infrastructure/elysia/logger.js +1 -35
- package/dist/infrastructure/index.js +1 -35
- package/dist/libs/email/client.js +1 -114
- package/dist/libs/email/contact.js +12 -165
- package/dist/libs/email/newsletter.js +6 -167
- package/dist/libs/email/types.js +0 -2
- package/dist/libs/email/utils.js +2 -8
- package/dist/libs/email/waitlist-application.js +28 -209
- package/dist/libs/email/waitlist.js +6 -167
- package/dist/libs/email.js +46 -363
- package/dist/libs/posthog/client.js +1 -63
- package/dist/libs/posthog/native.js +1 -23
- package/dist/libs/posthog/server.js +1 -13
- package/dist/libs/pricing-examples.js +1 -18
- package/dist/node/application/context-storage/index.js +1 -28
- package/dist/node/application/index.js +13 -2133
- package/dist/node/application/mcp/cliMcp.js +4 -452
- package/dist/node/application/mcp/common.js +1 -193
- package/dist/node/application/mcp/contractsMcp.js +2 -549
- package/dist/node/application/mcp/contractsMcpResources.js +2 -123
- package/dist/node/application/mcp/contractsMcpTools.js +1 -199
- package/dist/node/application/mcp/docsMcp.catalog.js +3 -381
- package/dist/node/application/mcp/docsMcp.data.js +1 -147
- package/dist/node/application/mcp/docsMcp.js +6 -1039
- package/dist/node/application/mcp/docsMcp.prompts.js +6 -521
- package/dist/node/application/mcp/docsMcp.reference.js +3 -235
- package/dist/node/application/mcp/docsMcp.resources.js +3 -519
- package/dist/node/application/mcp/docsMcp.tools.js +3 -518
- package/dist/node/application/mcp/index.js +13 -2106
- package/dist/node/application/mcp/internalMcp.js +2 -410
- package/dist/node/application/mcp/normalizeMcpRequest.js +1 -21
- package/dist/node/application/mcp/providerRankingMcp.js +1 -530
- package/dist/node/bundles/LibraryBundle.js +1 -138
- package/dist/node/bundles/index.js +1 -138
- package/dist/node/components/docs/DocsIndexPage.js +2 -912
- package/dist/node/components/docs/advanced/AdvancedMCPPage.js +4 -271
- package/dist/node/components/docs/advanced/AdvancedOverlayEditorPage.js +1 -107
- package/dist/node/components/docs/advanced/AdvancedRenderersPage.js +2 -118
- package/dist/node/components/docs/advanced/AdvancedSpecExperimentsPage.js +4 -92
- package/dist/node/components/docs/advanced/AdvancedTelemetryPage.js +2 -373
- package/dist/node/components/docs/advanced/AdvancedWorkflowMonitoringPage.js +2 -99
- package/dist/node/components/docs/advanced/index.js +10 -1055
- package/dist/node/components/docs/architecture/ArchitectureAppConfigPage.js +6 -243
- package/dist/node/components/docs/architecture/ArchitectureControlPlanePage.js +3 -160
- package/dist/node/components/docs/architecture/ArchitectureIntegrationBindingPage.js +7 -259
- package/dist/node/components/docs/architecture/ArchitectureKnowledgeBindingPage.js +6 -374
- package/dist/node/components/docs/architecture/ArchitectureMultiTenancyPage.js +2 -166
- package/dist/node/components/docs/architecture/ArchitectureOverviewPage.js +1 -143
- package/dist/node/components/docs/architecture/index.js +20 -1340
- package/dist/node/components/docs/comparison/ComparisonAutomationPlatformsPage.js +1 -245
- package/dist/node/components/docs/comparison/ComparisonEnterprisePlatformsPage.js +1 -230
- package/dist/node/components/docs/comparison/ComparisonInternalToolBuildersPage.js +1 -245
- package/dist/node/components/docs/comparison/ComparisonOverviewPage.js +1 -202
- package/dist/node/components/docs/comparison/ComparisonWindmillPage.js +1 -254
- package/dist/node/components/docs/comparison/ComparisonWorkflowEnginesPage.js +1 -339
- package/dist/node/components/docs/comparison/index.js +1 -1510
- package/dist/node/components/docs/docsManifest.js +1 -611
- package/dist/node/components/docs/ecosystem/IntegrationsPage.js +2 -103
- package/dist/node/components/docs/ecosystem/PluginsPage.js +13 -179
- package/dist/node/components/docs/ecosystem/RegistryPage.js +7 -100
- package/dist/node/components/docs/ecosystem/TemplatesPage.js +3 -141
- package/dist/node/components/docs/ecosystem/ecosystem.docblocks.js +2 -48
- package/dist/node/components/docs/ecosystem/index.js +23 -569
- package/dist/node/components/docs/examples/DocsExamplesPage.js +4 -124
- package/dist/node/components/docs/examples/ExampleShowcasePage.js +4 -244
- package/dist/node/components/docs/examples/exampleShowcaseData.js +4 -39
- package/dist/node/components/docs/examples/index.js +4 -330
- package/dist/node/components/docs/generated/docs-index.generated.js +1 -5
- package/dist/node/components/docs/generated/index.js +1 -74
- package/dist/node/components/docs/generated/loader.js +1 -74
- package/dist/node/components/docs/getting-started/CLIPage.js +4 -271
- package/dist/node/components/docs/getting-started/CompatibilityPage.js +1 -173
- package/dist/node/components/docs/getting-started/DataViewTutorialPage.js +4 -134
- package/dist/node/components/docs/getting-started/DeveloperToolsPage.js +1 -194
- package/dist/node/components/docs/getting-started/HelloWorldPage.js +5 -183
- package/dist/node/components/docs/getting-started/InstallationPage.js +3 -154
- package/dist/node/components/docs/getting-started/StartHerePage.js +2 -129
- package/dist/node/components/docs/getting-started/TroubleshootingPage.js +2 -168
- package/dist/node/components/docs/getting-started/VSCodeExtensionPage.js +1 -432
- package/dist/node/components/docs/getting-started/getting-started.docblocks.js +4 -41
- package/dist/node/components/docs/getting-started/index.js +18 -1869
- package/dist/node/components/docs/guides/GuideCIDiffGatingPage.js +2 -196
- package/dist/node/components/docs/guides/GuideConnectInRepoPage.js +43 -0
- package/dist/node/components/docs/guides/GuideContractTypesPage.js +6 -541
- package/dist/node/components/docs/guides/GuideDocsPipelinePage.js +3 -207
- package/dist/node/components/docs/guides/GuideFirstModuleBundlePage.js +75 -0
- package/dist/node/components/docs/guides/GuideGenerateDocsClientsSchemasPage.js +2 -209
- package/dist/node/components/docs/guides/GuideHostBuilderWorkbenchPage.js +69 -0
- package/dist/node/components/docs/guides/GuideImportExistingCodebasesPage.js +8 -754
- package/dist/node/components/docs/guides/GuideNextjsOneEndpointPage.js +6 -268
- package/dist/node/components/docs/guides/GuideSpecValidationTypingPage.js +4 -196
- package/dist/node/components/docs/guides/GuidesIndexPage.js +2 -169
- package/dist/node/components/docs/guides/guides.docblocks.js +11 -75
- package/dist/node/components/docs/guides/index.js +213 -2428
- package/dist/node/components/docs/index.js +542 -24310
- package/dist/node/components/docs/integrations/IntegrationsCircuitBreakersPage.js +2 -42
- package/dist/node/components/docs/integrations/IntegrationsElevenLabsPage.js +3 -105
- package/dist/node/components/docs/integrations/IntegrationsGithubPage.js +3 -142
- package/dist/node/components/docs/integrations/IntegrationsGmailPage.js +3 -109
- package/dist/node/components/docs/integrations/IntegrationsGoogleCalendarPage.js +3 -79
- package/dist/node/components/docs/integrations/IntegrationsHealthRoutingPage.js +3 -146
- package/dist/node/components/docs/integrations/IntegrationsMistralPage.js +5 -150
- package/dist/node/components/docs/integrations/IntegrationsOpenAIPage.js +5 -140
- package/dist/node/components/docs/integrations/IntegrationsOverviewPage.js +1 -160
- package/dist/node/components/docs/integrations/IntegrationsPostmarkPage.js +4 -218
- package/dist/node/components/docs/integrations/IntegrationsPowensPage.js +4 -300
- package/dist/node/components/docs/integrations/IntegrationsQdrantPage.js +5 -111
- package/dist/node/components/docs/integrations/IntegrationsResendPage.js +3 -102
- package/dist/node/components/docs/integrations/IntegrationsS3Page.js +4 -124
- package/dist/node/components/docs/integrations/IntegrationsSlackPage.js +3 -144
- package/dist/node/components/docs/integrations/IntegrationsSpecModelPage.js +7 -290
- package/dist/node/components/docs/integrations/IntegrationsStripePage.js +6 -327
- package/dist/node/components/docs/integrations/IntegrationsTwilioPage.js +3 -128
- package/dist/node/components/docs/integrations/IntegrationsWhatsappMetaPage.js +2 -146
- package/dist/node/components/docs/integrations/IntegrationsWhatsappTwilioPage.js +2 -156
- package/dist/node/components/docs/integrations/index.js +52 -3100
- package/dist/node/components/docs/intent/ContractFirstApiPage.js +2 -126
- package/dist/node/components/docs/intent/DeterministicCodegenPage.js +2 -148
- package/dist/node/components/docs/intent/GenerateClientFromSchemaPage.js +7 -207
- package/dist/node/components/docs/intent/OpenapiAlternativePage.js +3 -201
- package/dist/node/components/docs/intent/SchemaValidationTypescriptPage.js +4 -144
- package/dist/node/components/docs/intent/SpecDrivenDevelopmentPage.js +2 -126
- package/dist/node/components/docs/intent/index.js +15 -1135
- package/dist/node/components/docs/intent/intent-pages.docblocks.js +1 -201
- package/dist/node/components/docs/knowledge/KnowledgeCategoriesPage.js +6 -750
- package/dist/node/components/docs/knowledge/KnowledgeExamplesPage.js +4 -175
- package/dist/node/components/docs/knowledge/KnowledgeOverviewPage.js +1 -116
- package/dist/node/components/docs/knowledge/KnowledgeSourcesPage.js +8 -391
- package/dist/node/components/docs/knowledge/KnowledgeSpacesPage.js +6 -302
- package/dist/node/components/docs/knowledge/index.js +21 -1730
- package/dist/node/components/docs/libraries/LibrariesAccessibilityPage.js +3 -198
- package/dist/node/components/docs/libraries/LibrariesAiAgentPage.js +3 -141
- package/dist/node/components/docs/libraries/LibrariesAnalyticsPage.js +4 -80
- package/dist/node/components/docs/libraries/LibrariesContentGenPage.js +2 -100
- package/dist/node/components/docs/libraries/LibrariesContractsPage.js +2 -284
- package/dist/node/components/docs/libraries/LibrariesCostTrackingPage.js +3 -112
- package/dist/node/components/docs/libraries/LibrariesDataBackendPage.js +2 -166
- package/dist/node/components/docs/libraries/LibrariesDataViewsPage.js +3 -186
- package/dist/node/components/docs/libraries/LibrariesDesignSystemPage.js +4 -279
- package/dist/node/components/docs/libraries/LibrariesEvolutionPage.js +4 -127
- package/dist/node/components/docs/libraries/LibrariesGraphQLPage.js +2 -173
- package/dist/node/components/docs/libraries/LibrariesGrowthPage.js +3 -88
- package/dist/node/components/docs/libraries/LibrariesMultiTenancyPage.js +3 -108
- package/dist/node/components/docs/libraries/LibrariesObservabilityPage.js +5 -130
- package/dist/node/components/docs/libraries/LibrariesOverlayEnginePage.js +4 -110
- package/dist/node/components/docs/libraries/LibrariesOverviewPage.js +1 -170
- package/dist/node/components/docs/libraries/LibrariesPersonalizationPage.js +4 -114
- package/dist/node/components/docs/libraries/LibrariesProgressiveDeliveryPage.js +3 -132
- package/dist/node/components/docs/libraries/LibrariesResiliencePage.js +4 -120
- package/dist/node/components/docs/libraries/LibrariesRuntimePage.js +2 -200
- package/dist/node/components/docs/libraries/LibrariesSLOPage.js +3 -116
- package/dist/node/components/docs/libraries/LibrariesSchemaPage.js +3 -273
- package/dist/node/components/docs/libraries/LibrariesSupportBotPage.js +3 -134
- package/dist/node/components/docs/libraries/LibrariesTestingPage.js +3 -133
- package/dist/node/components/docs/libraries/LibrariesUIKitPage.js +2 -230
- package/dist/node/components/docs/libraries/LibrariesWorkflowComposerPage.js +3 -88
- package/dist/node/components/docs/libraries/LibrariesWorkflowsPage.js +2 -181
- package/dist/node/components/docs/libraries/index.js +54 -4147
- package/dist/node/components/docs/manifesto/ManifestoPage.js +1 -86
- package/dist/node/components/docs/ops/AutoEvolutionOpsPage.js +2 -132
- package/dist/node/components/docs/ops/DistributedTracingOpsPage.js +2 -71
- package/dist/node/components/docs/ops/index.js +3 -202
- package/dist/node/components/docs/ops/ops-lifecycle.docblocks.js +3 -38
- package/dist/node/components/docs/ops/ops-runbooks-a.docblocks.js +3 -94
- package/dist/node/components/docs/ops/ops-runbooks-b.docblocks.js +3 -76
- package/dist/node/components/docs/ops/ops-slo-tenant.docblocks.js +3 -76
- package/dist/node/components/docs/ops/ops-top.docs.js +2 -17
- package/dist/node/components/docs/ops/ops.docs.js +10 -302
- package/dist/node/components/docs/product/product.docblocks.js +5 -72
- package/dist/node/components/docs/reference/DocsMarkdownContent.js +2 -196
- package/dist/node/components/docs/reference/DocsReferenceContent.js +3 -256
- package/dist/node/components/docs/reference/DocsReferenceIndexClient.js +2 -127
- package/dist/node/components/docs/reference/DocsReferenceIndexPage.js +2 -206
- package/dist/node/components/docs/reference/DocsReferencePage.js +3 -265
- package/dist/node/components/docs/reference/docsMarkdownParser.js +2 -92
- package/dist/node/components/docs/reference/index.js +4 -470
- package/dist/node/components/docs/safety/SafetyAuditingPage.js +2 -350
- package/dist/node/components/docs/safety/SafetyMigrationsPage.js +2 -359
- package/dist/node/components/docs/safety/SafetyOverviewPage.js +1 -101
- package/dist/node/components/docs/safety/SafetyPDPPage.js +2 -301
- package/dist/node/components/docs/safety/SafetySecurityTrustPage.js +1 -206
- package/dist/node/components/docs/safety/SafetySigningPage.js +3 -90
- package/dist/node/components/docs/safety/SafetyTenantIsolationPage.js +2 -79
- package/dist/node/components/docs/safety/index.js +7 -1480
- package/dist/node/components/docs/shared/StudioPrompt.js +1 -31
- package/dist/node/components/docs/specs/SpecsBuilderControlPlanePage.js +33 -0
- package/dist/node/components/docs/specs/SpecsCapabilitiesPage.js +2 -158
- package/dist/node/components/docs/specs/SpecsConnectPage.js +7 -0
- package/dist/node/components/docs/specs/SpecsDataViewsPage.js +2 -260
- package/dist/node/components/docs/specs/SpecsModuleBundlesPage.js +66 -0
- package/dist/node/components/docs/specs/SpecsOverlaysPage.js +2 -372
- package/dist/node/components/docs/specs/SpecsOverviewPage.js +1 -186
- package/dist/node/components/docs/specs/SpecsPolicyPage.js +3 -420
- package/dist/node/components/docs/specs/SpecsWorkflowsPage.js +2 -325
- package/dist/node/components/docs/specs/index.js +109 -1715
- package/dist/node/components/docs/studio/StudioBYOKPage.js +1 -26
- package/dist/node/components/docs/studio/StudioDeploymentsPage.js +1 -26
- package/dist/node/components/docs/studio/StudioGettingStartedPage.js +1 -26
- package/dist/node/components/docs/studio/StudioIntegrationsPage.js +1 -26
- package/dist/node/components/docs/studio/StudioOverviewPage.js +1 -157
- package/dist/node/components/docs/studio/StudioVisualBuilderPage.js +1 -26
- package/dist/node/components/docs/studio/index.js +1 -282
- package/dist/node/components/docs/tech/contracts/tech-docs.docblocks.js +2 -19
- package/dist/node/components/integrations/index.js +2 -600
- package/dist/node/components/integrations/molecules/IntegrationCard.js +1 -100
- package/dist/node/components/integrations/organisms/IntegrationMarketplace.js +1 -214
- package/dist/node/components/integrations/organisms/IntegrationSettings.js +2 -284
- package/dist/node/components/integrations/organisms/KnowledgeSourceList.js +1 -103
- package/dist/node/components/legal/PrivacyTemplate.js +1 -1025
- package/dist/node/components/legal/TermsTemplate.js +1 -941
- package/dist/node/components/legal/index.js +1 -1963
- package/dist/node/components/shared/FeatureGateNotice.js +1 -38
- package/dist/node/components/shared/index.js +1 -38
- package/dist/node/components/shell/WorkspaceHeader.js +1 -100
- package/dist/node/components/shell/WorkspaceProjectShellLayout.js +1 -222
- package/dist/node/components/shell/WorkspaceShellRenderer.js +1 -228
- package/dist/node/components/shell/WorkspaceSidebar.js +1 -68
- package/dist/node/components/shell/index.js +1 -287
- package/dist/node/components/templates/engine/index.js +1 -39
- package/dist/node/components/templates/index.js +11 -965
- package/dist/node/components/templates/messaging/ConversationList.js +2 -83
- package/dist/node/components/templates/messaging/MessageComposer.js +4 -150
- package/dist/node/components/templates/messaging/MessageThread.js +3 -83
- package/dist/node/components/templates/messaging/MessagingWorkspace.js +5 -265
- package/dist/node/components/templates/messaging/index.js +5 -269
- package/dist/node/components/templates/recipes/LanguageSwitcher.js +1 -16
- package/dist/node/components/templates/recipes/RecipeCard.js +1 -80
- package/dist/node/components/templates/recipes/RecipeDetail.js +1 -74
- package/dist/node/components/templates/recipes/RecipeList.js +3 -245
- package/dist/node/components/templates/recipes/index.js +3 -248
- package/dist/node/components/templates/todos/FilterBar.js +1 -107
- package/dist/node/components/templates/todos/TaskForm.js +2 -158
- package/dist/node/components/templates/todos/TaskItem.js +1 -77
- package/dist/node/components/templates/todos/TaskList.js +5 -449
- package/dist/node/components/templates/todos/index.js +5 -452
- package/dist/node/config/contractspec-blueprint.js +1 -123
- package/dist/node/config/contractspec-branding.js +1 -44
- package/dist/node/config/contractspec-routes.js +1 -24
- package/dist/node/config/index.js +1 -126
- package/dist/node/features/contracts-registry.js +1 -178
- package/dist/node/features/docs/docs.contracts.js +1 -17
- package/dist/node/features/docs/index.js +1 -17
- package/dist/node/features/docs.feature.js +1 -33
- package/dist/node/features/index.js +1 -315
- package/dist/node/features/mcp.feature.js +1 -30
- package/dist/node/features/presentations.feature.js +1 -33
- package/dist/node/features/registry.js +1 -116
- package/dist/node/index.js +556 -28593
- package/dist/node/infrastructure/elysia/index.js +1 -35
- package/dist/node/infrastructure/elysia/logger.js +1 -35
- package/dist/node/infrastructure/index.js +1 -35
- package/dist/node/libs/email/client.js +1 -114
- package/dist/node/libs/email/contact.js +12 -165
- package/dist/node/libs/email/newsletter.js +6 -167
- package/dist/node/libs/email/types.js +0 -2
- package/dist/node/libs/email/utils.js +2 -8
- package/dist/node/libs/email/waitlist-application.js +28 -209
- package/dist/node/libs/email/waitlist.js +6 -167
- package/dist/node/libs/email.js +46 -363
- package/dist/node/libs/posthog/client.js +1 -63
- package/dist/node/libs/posthog/native.js +1 -23
- package/dist/node/libs/posthog/server.js +1 -13
- package/dist/node/libs/pricing-examples.js +1 -18
- package/dist/node/presentation/features/atoms/FeatureIcon/FeatureIcon.js +1 -97
- package/dist/node/presentation/features/atoms/FeatureIcon/index.js +1 -97
- package/dist/node/presentation/features/atoms/index.js +1 -97
- package/dist/node/presentation/features/hooks/index.js +1 -397
- package/dist/node/presentation/features/hooks/useContractsRegistry.js +1 -289
- package/dist/node/presentation/features/hooks/useFeatureFilters.js +1 -75
- package/dist/node/presentation/features/hooks/useFeatureRegistry.js +1 -147
- package/dist/node/presentation/features/hooks/useRelatedDocs.js +1 -28
- package/dist/node/presentation/features/index.js +1 -3063
- package/dist/node/presentation/features/molecules/FeatureCard/FeatureCard.js +1 -366
- package/dist/node/presentation/features/molecules/FeatureCard/index.js +1 -366
- package/dist/node/presentation/features/molecules/FeatureCategoryHeader/FeatureCategoryHeader.js +1 -50
- package/dist/node/presentation/features/molecules/FeatureCategoryHeader/index.js +1 -50
- package/dist/node/presentation/features/molecules/FeatureFilters/FeatureFilters.js +1 -92
- package/dist/node/presentation/features/molecules/FeatureFilters/index.js +1 -92
- package/dist/node/presentation/features/molecules/FeatureHoverPreview/FeatureHoverPreview.js +1 -176
- package/dist/node/presentation/features/molecules/FeatureHoverPreview/index.js +1 -176
- package/dist/node/presentation/features/molecules/index.js +1 -505
- package/dist/node/presentation/features/organisms/FeatureDataViewsList.js +1 -304
- package/dist/node/presentation/features/organisms/FeatureDetail/FeatureDetail.js +1 -154
- package/dist/node/presentation/features/organisms/FeatureDetail/index.js +1 -154
- package/dist/node/presentation/features/organisms/FeatureDiscovery/FeatureDiscovery.js +1 -909
- package/dist/node/presentation/features/organisms/FeatureDiscovery/index.js +1 -909
- package/dist/node/presentation/features/organisms/FeatureEventsList.js +1 -302
- package/dist/node/presentation/features/organisms/FeatureFormsList.js +1 -302
- package/dist/node/presentation/features/organisms/FeatureOperationsList.js +1 -180
- package/dist/node/presentation/features/organisms/FeaturePresentationsList.js +1 -304
- package/dist/node/presentation/features/organisms/index.js +1 -1359
- package/dist/node/presentation/features/templates/FeatureDataViewDetailTemplate/FeatureDataViewDetailTemplate.js +1 -332
- package/dist/node/presentation/features/templates/FeatureDataViewDetailTemplate/index.js +1 -332
- package/dist/node/presentation/features/templates/FeatureDataViewsTemplate/FeatureDataViewsTemplate.js +1 -342
- package/dist/node/presentation/features/templates/FeatureDataViewsTemplate/index.js +1 -342
- package/dist/node/presentation/features/templates/FeatureEventDetailTemplate/FeatureEventDetailTemplate.js +1 -303
- package/dist/node/presentation/features/templates/FeatureEventDetailTemplate/index.js +1 -303
- package/dist/node/presentation/features/templates/FeatureEventsTemplate/FeatureEventsTemplate.js +1 -340
- package/dist/node/presentation/features/templates/FeatureEventsTemplate/index.js +1 -340
- package/dist/node/presentation/features/templates/FeatureFormDetailTemplate/FeatureFormDetailTemplate.js +1 -329
- package/dist/node/presentation/features/templates/FeatureFormDetailTemplate/index.js +1 -329
- package/dist/node/presentation/features/templates/FeatureFormsTemplate/FeatureFormsTemplate.js +1 -340
- package/dist/node/presentation/features/templates/FeatureFormsTemplate/index.js +1 -340
- package/dist/node/presentation/features/templates/FeatureOperationDetailTemplate/FeatureOperationDetailTemplate.js +1 -302
- package/dist/node/presentation/features/templates/FeatureOperationDetailTemplate/index.js +1 -302
- package/dist/node/presentation/features/templates/FeatureOperationsTemplate/FeatureOperationsTemplate.js +1 -218
- package/dist/node/presentation/features/templates/FeatureOperationsTemplate/index.js +1 -218
- package/dist/node/presentation/features/templates/FeatureOverviewTemplate/FeatureOverviewTemplate.js +1 -187
- package/dist/node/presentation/features/templates/FeatureOverviewTemplate/index.js +1 -187
- package/dist/node/presentation/features/templates/FeaturePresentationDetailTemplate/FeaturePresentationDetailTemplate.js +1 -306
- package/dist/node/presentation/features/templates/FeaturePresentationDetailTemplate/index.js +1 -306
- package/dist/node/presentation/features/templates/FeaturePresentationsTemplate/FeaturePresentationsTemplate.js +1 -342
- package/dist/node/presentation/features/templates/FeaturePresentationsTemplate/index.js +1 -342
- package/dist/presentation/features/atoms/FeatureIcon/FeatureIcon.js +1 -97
- package/dist/presentation/features/atoms/FeatureIcon/index.js +1 -97
- package/dist/presentation/features/atoms/index.js +1 -97
- package/dist/presentation/features/hooks/index.js +1 -397
- package/dist/presentation/features/hooks/useContractsRegistry.js +1 -289
- package/dist/presentation/features/hooks/useFeatureFilters.js +1 -75
- package/dist/presentation/features/hooks/useFeatureRegistry.js +1 -147
- package/dist/presentation/features/hooks/useRelatedDocs.js +1 -28
- package/dist/presentation/features/index.js +1 -3063
- package/dist/presentation/features/molecules/FeatureCard/FeatureCard.js +1 -366
- package/dist/presentation/features/molecules/FeatureCard/index.js +1 -366
- package/dist/presentation/features/molecules/FeatureCategoryHeader/FeatureCategoryHeader.js +1 -50
- package/dist/presentation/features/molecules/FeatureCategoryHeader/index.js +1 -50
- package/dist/presentation/features/molecules/FeatureFilters/FeatureFilters.js +1 -92
- package/dist/presentation/features/molecules/FeatureFilters/index.js +1 -92
- package/dist/presentation/features/molecules/FeatureHoverPreview/FeatureHoverPreview.js +1 -176
- package/dist/presentation/features/molecules/FeatureHoverPreview/index.js +1 -176
- package/dist/presentation/features/molecules/index.js +1 -505
- package/dist/presentation/features/organisms/FeatureDataViewsList.js +1 -304
- package/dist/presentation/features/organisms/FeatureDetail/FeatureDetail.js +1 -154
- package/dist/presentation/features/organisms/FeatureDetail/index.js +1 -154
- package/dist/presentation/features/organisms/FeatureDiscovery/FeatureDiscovery.js +1 -909
- package/dist/presentation/features/organisms/FeatureDiscovery/index.js +1 -909
- package/dist/presentation/features/organisms/FeatureEventsList.js +1 -302
- package/dist/presentation/features/organisms/FeatureFormsList.js +1 -302
- package/dist/presentation/features/organisms/FeatureOperationsList.js +1 -180
- package/dist/presentation/features/organisms/FeaturePresentationsList.js +1 -304
- package/dist/presentation/features/organisms/index.js +1 -1359
- package/dist/presentation/features/templates/FeatureDataViewDetailTemplate/FeatureDataViewDetailTemplate.js +1 -332
- package/dist/presentation/features/templates/FeatureDataViewDetailTemplate/index.js +1 -332
- package/dist/presentation/features/templates/FeatureDataViewsTemplate/FeatureDataViewsTemplate.js +1 -342
- package/dist/presentation/features/templates/FeatureDataViewsTemplate/index.js +1 -342
- package/dist/presentation/features/templates/FeatureEventDetailTemplate/FeatureEventDetailTemplate.js +1 -303
- package/dist/presentation/features/templates/FeatureEventDetailTemplate/index.js +1 -303
- package/dist/presentation/features/templates/FeatureEventsTemplate/FeatureEventsTemplate.js +1 -340
- package/dist/presentation/features/templates/FeatureEventsTemplate/index.js +1 -340
- package/dist/presentation/features/templates/FeatureFormDetailTemplate/FeatureFormDetailTemplate.js +1 -329
- package/dist/presentation/features/templates/FeatureFormDetailTemplate/index.js +1 -329
- package/dist/presentation/features/templates/FeatureFormsTemplate/FeatureFormsTemplate.js +1 -340
- package/dist/presentation/features/templates/FeatureFormsTemplate/index.js +1 -340
- package/dist/presentation/features/templates/FeatureOperationDetailTemplate/FeatureOperationDetailTemplate.js +1 -302
- package/dist/presentation/features/templates/FeatureOperationDetailTemplate/index.js +1 -302
- package/dist/presentation/features/templates/FeatureOperationsTemplate/FeatureOperationsTemplate.js +1 -218
- package/dist/presentation/features/templates/FeatureOperationsTemplate/index.js +1 -218
- package/dist/presentation/features/templates/FeatureOverviewTemplate/FeatureOverviewTemplate.js +1 -187
- package/dist/presentation/features/templates/FeatureOverviewTemplate/index.js +1 -187
- package/dist/presentation/features/templates/FeaturePresentationDetailTemplate/FeaturePresentationDetailTemplate.js +1 -306
- package/dist/presentation/features/templates/FeaturePresentationDetailTemplate/index.js +1 -306
- package/dist/presentation/features/templates/FeaturePresentationsTemplate/FeaturePresentationsTemplate.js +1 -342
- package/dist/presentation/features/templates/FeaturePresentationsTemplate/index.js +1 -342
- package/package.json +103 -31
- package/src/components/docs/DocsIndexPage.tsx +55 -0
- package/src/components/docs/architecture/ArchitectureControlPlanePage.tsx +19 -0
- package/src/components/docs/architecture/ArchitectureOverviewPage.tsx +34 -0
- package/src/components/docs/docsManifest.test.ts +70 -0
- package/src/components/docs/docsManifest.ts +71 -1
- package/src/components/docs/ecosystem/PluginsPage.tsx +24 -10
- package/src/components/docs/ecosystem/RegistryPage.tsx +11 -6
- package/src/components/docs/generated/docs-index._common.json +206 -273
- package/src/components/docs/generated/docs-index.control-plane.json +18 -0
- package/src/components/docs/generated/docs-index.defineExample.json +10 -0
- package/src/components/docs/generated/docs-index.manifest.json +22 -12
- package/src/components/docs/generated/docs-index.platform-acp.json +64 -0
- package/src/components/docs/generated/docs-index.platform-agent.json +89 -1
- package/src/components/docs/generated/docs-index.platform-context.json +48 -0
- package/src/components/docs/generated/docs-index.platform-control-plane.json +72 -0
- package/src/components/docs/generated/docs-index.platform-database.json +40 -0
- package/src/components/docs/generated/docs-index.platform-docs.json +64 -0
- package/src/components/docs/generated/docs-index.platform-provider-ranking.json +89 -1
- package/src/components/docs/generated/docs-index.pocket-family-office.json +8 -0
- package/src/components/docs/generated/docs-index.unknown.json +8 -0
- package/src/components/docs/guides/GuideConnectInRepoPage.tsx +184 -0
- package/src/components/docs/guides/GuideFirstModuleBundlePage.tsx +182 -0
- package/src/components/docs/guides/GuideHostBuilderWorkbenchPage.tsx +230 -0
- package/src/components/docs/guides/GuidesIndexPage.tsx +21 -0
- package/src/components/docs/guides/index.ts +3 -0
- package/src/components/docs/specs/SpecsBuilderControlPlanePage.tsx +210 -0
- package/src/components/docs/specs/SpecsConnectPage.tsx +162 -0
- package/src/components/docs/specs/SpecsModuleBundlesPage.tsx +223 -0
- package/src/components/docs/specs/SpecsOverlaysPage.tsx +20 -0
- package/src/components/docs/specs/SpecsOverviewPage.tsx +44 -0
- package/src/components/docs/specs/index.ts +3 -0
- package/src/components/docs/studio/StudioOverviewPage.tsx +26 -0
- package/src/infrastructure/elysia/logger.ts +11 -3
|
@@ -1,197 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function stripMetadata(content) {
|
|
5
|
-
const withoutTitle = content.replace(/^#\s+.*\n+/m, "");
|
|
6
|
-
return withoutTitle.replace(METADATA_SECTION, "");
|
|
7
|
-
}
|
|
8
|
-
function isBlockStart(line) {
|
|
9
|
-
return /^#{1,4}\s+/.test(line) || /^```/.test(line) || /^\s*[-*]\s+/.test(line) || /^\s*\d+\.\s+/.test(line) || /^>\s+/.test(line);
|
|
10
|
-
}
|
|
11
|
-
function parseDocsMarkdown(content) {
|
|
12
|
-
const lines = stripMetadata(content).split(/\r?\n/);
|
|
13
|
-
const blocks = [];
|
|
14
|
-
let i = 0;
|
|
15
|
-
while (i < lines.length) {
|
|
16
|
-
const line = lines[i] ?? "";
|
|
17
|
-
if (line.startsWith("<!-- @generated")) {
|
|
18
|
-
i += 1;
|
|
19
|
-
continue;
|
|
20
|
-
}
|
|
21
|
-
const trimmed = line.trim();
|
|
22
|
-
if (!trimmed) {
|
|
23
|
-
i += 1;
|
|
24
|
-
continue;
|
|
25
|
-
}
|
|
26
|
-
if (trimmed.startsWith("```")) {
|
|
27
|
-
const language = trimmed.slice(3).trim();
|
|
28
|
-
const codeLines = [];
|
|
29
|
-
i += 1;
|
|
30
|
-
while (i < lines.length && !(lines[i] ?? "").trim().startsWith("```")) {
|
|
31
|
-
codeLines.push(lines[i] ?? "");
|
|
32
|
-
i += 1;
|
|
33
|
-
}
|
|
34
|
-
i += 1;
|
|
35
|
-
blocks.push({
|
|
36
|
-
type: "code",
|
|
37
|
-
language: language || "text",
|
|
38
|
-
code: codeLines.join(`
|
|
39
|
-
`)
|
|
40
|
-
});
|
|
41
|
-
continue;
|
|
42
|
-
}
|
|
43
|
-
if (/^#{1,4}\s+/.test(trimmed)) {
|
|
44
|
-
const level = trimmed.match(/^#{1,4}/)?.[0].length ?? 2;
|
|
45
|
-
blocks.push({
|
|
46
|
-
type: "heading",
|
|
47
|
-
level,
|
|
48
|
-
text: trimmed.replace(/^#{1,4}\s+/, "")
|
|
49
|
-
});
|
|
50
|
-
i += 1;
|
|
51
|
-
continue;
|
|
52
|
-
}
|
|
53
|
-
if (/^>\s+/.test(trimmed)) {
|
|
54
|
-
const quoteLines = [];
|
|
55
|
-
while (i < lines.length && /^>\s+/.test((lines[i] ?? "").trim())) {
|
|
56
|
-
quoteLines.push((lines[i] ?? "").trim().replace(/^>\s+/, ""));
|
|
57
|
-
i += 1;
|
|
58
|
-
}
|
|
59
|
-
blocks.push({ type: "quote", text: quoteLines.join(" ") });
|
|
60
|
-
continue;
|
|
61
|
-
}
|
|
62
|
-
if (/^[-*]\s+/.test(trimmed) || /^\d+\.\s+/.test(trimmed)) {
|
|
63
|
-
const ordered = /^\d+\.\s+/.test(trimmed);
|
|
64
|
-
const items = [];
|
|
65
|
-
while (i < lines.length && isBlockStart((lines[i] ?? "").trim())) {
|
|
66
|
-
const itemLine = (lines[i] ?? "").trim();
|
|
67
|
-
if (ordered && /^\d+\.\s+/.test(itemLine)) {
|
|
68
|
-
items.push(itemLine.replace(/^\d+\.\s+/, ""));
|
|
69
|
-
} else if (!ordered && /^[-*]\s+/.test(itemLine)) {
|
|
70
|
-
items.push(itemLine.replace(/^[-*]\s+/, ""));
|
|
71
|
-
} else {
|
|
72
|
-
break;
|
|
73
|
-
}
|
|
74
|
-
i += 1;
|
|
75
|
-
}
|
|
76
|
-
blocks.push({ type: "list", ordered, items });
|
|
77
|
-
continue;
|
|
78
|
-
}
|
|
79
|
-
const paragraphLines = [];
|
|
80
|
-
while (i < lines.length && !isBlockStart((lines[i] ?? "").trim())) {
|
|
81
|
-
const paragraphLine = (lines[i] ?? "").trim();
|
|
82
|
-
if (!paragraphLine)
|
|
83
|
-
break;
|
|
84
|
-
paragraphLines.push(paragraphLine);
|
|
85
|
-
i += 1;
|
|
86
|
-
}
|
|
87
|
-
blocks.push({ type: "paragraph", text: paragraphLines.join(" ") });
|
|
88
|
-
}
|
|
89
|
-
return blocks;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// src/components/docs/reference/DocsMarkdownContent.tsx
|
|
93
|
-
import { CodeBlock } from "@contractspec/lib.design-system";
|
|
94
|
-
import { HStack, VStack } from "@contractspec/lib.ui-kit-web/ui/stack";
|
|
95
|
-
import {
|
|
96
|
-
BlockQuote,
|
|
97
|
-
H2,
|
|
98
|
-
H3,
|
|
99
|
-
H4,
|
|
100
|
-
Muted,
|
|
101
|
-
P
|
|
102
|
-
} from "@contractspec/lib.ui-kit-web/ui/typography";
|
|
103
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
104
|
-
"use client";
|
|
105
|
-
var CODE_LANGUAGES = new Set([
|
|
106
|
-
"typescript",
|
|
107
|
-
"tsx",
|
|
108
|
-
"javascript",
|
|
109
|
-
"jsx",
|
|
110
|
-
"bash",
|
|
111
|
-
"shell",
|
|
112
|
-
"json",
|
|
113
|
-
"yaml",
|
|
114
|
-
"graphql",
|
|
115
|
-
"sql",
|
|
116
|
-
"python",
|
|
117
|
-
"go",
|
|
118
|
-
"rust",
|
|
119
|
-
"css",
|
|
120
|
-
"scss",
|
|
121
|
-
"html",
|
|
122
|
-
"markdown",
|
|
123
|
-
"text"
|
|
124
|
-
]);
|
|
125
|
-
function toCodeLanguage(language) {
|
|
126
|
-
if (!language)
|
|
127
|
-
return "text";
|
|
128
|
-
const normalized = language.toLowerCase();
|
|
129
|
-
return CODE_LANGUAGES.has(normalized) ? normalized : "text";
|
|
130
|
-
}
|
|
131
|
-
function renderHeading(level, text) {
|
|
132
|
-
if (level <= 2)
|
|
133
|
-
return /* @__PURE__ */ jsx(H2, {
|
|
134
|
-
children: text
|
|
135
|
-
});
|
|
136
|
-
if (level === 3)
|
|
137
|
-
return /* @__PURE__ */ jsx(H3, {
|
|
138
|
-
children: text
|
|
139
|
-
});
|
|
140
|
-
return /* @__PURE__ */ jsx(H4, {
|
|
141
|
-
children: text
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
function DocsMarkdownContent({ content }) {
|
|
145
|
-
const blocks = parseDocsMarkdown(content);
|
|
146
|
-
if (!blocks.length) {
|
|
147
|
-
return /* @__PURE__ */ jsx(Muted, {
|
|
148
|
-
children: "No reference content available."
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
return /* @__PURE__ */ jsx(VStack, {
|
|
152
|
-
gap: "md",
|
|
153
|
-
children: blocks.map((block, index) => {
|
|
154
|
-
switch (block.type) {
|
|
155
|
-
case "heading":
|
|
156
|
-
return /* @__PURE__ */ jsx(VStack, {
|
|
157
|
-
children: renderHeading(block.level, block.text)
|
|
158
|
-
}, index);
|
|
159
|
-
case "paragraph":
|
|
160
|
-
return /* @__PURE__ */ jsx(P, {
|
|
161
|
-
children: block.text
|
|
162
|
-
}, index);
|
|
163
|
-
case "quote":
|
|
164
|
-
return /* @__PURE__ */ jsx(BlockQuote, {
|
|
165
|
-
children: block.text
|
|
166
|
-
}, index);
|
|
167
|
-
case "code":
|
|
168
|
-
return /* @__PURE__ */ jsx(CodeBlock, {
|
|
169
|
-
language: toCodeLanguage(block.language),
|
|
170
|
-
code: block.code
|
|
171
|
-
}, index);
|
|
172
|
-
case "list":
|
|
173
|
-
return /* @__PURE__ */ jsx(VStack, {
|
|
174
|
-
gap: "xs",
|
|
175
|
-
children: block.items.map((item, itemIndex) => /* @__PURE__ */ jsxs(HStack, {
|
|
176
|
-
gap: "sm",
|
|
177
|
-
align: "start",
|
|
178
|
-
children: [
|
|
179
|
-
/* @__PURE__ */ jsx(Muted, {
|
|
180
|
-
children: block.ordered ? `${itemIndex + 1}.` : "\u2022"
|
|
181
|
-
}),
|
|
182
|
-
/* @__PURE__ */ jsx(P, {
|
|
183
|
-
className: "leading-relaxed",
|
|
184
|
-
children: item
|
|
185
|
-
})
|
|
186
|
-
]
|
|
187
|
-
}, itemIndex))
|
|
188
|
-
}, index);
|
|
189
|
-
default:
|
|
190
|
-
return null;
|
|
191
|
-
}
|
|
192
|
-
})
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
export {
|
|
196
|
-
DocsMarkdownContent
|
|
197
|
-
};
|
|
2
|
+
var w=/^##\s+Metadata[\s\S]*?(?=^##\s|^#\s|Z)/m;function T(e){return e.replace(/^#\s+.*\n+/m,"").replace(w,"")}function c(e){return/^#{1,4}\s+/.test(e)||/^```/.test(e)||/^\s*[-*]\s+/.test(e)||/^\s*\d+\.\s+/.test(e)||/^>\s+/.test(e)}function f(e){let s=T(e).split(/\r?\n/),r=[],t=0;while(t<s.length){let a=s[t]??"";if(a.startsWith("<!-- @generated")){t+=1;continue}let i=a.trim();if(!i){t+=1;continue}if(i.startsWith("```")){let n=i.slice(3).trim(),h=[];t+=1;while(t<s.length&&!(s[t]??"").trim().startsWith("```"))h.push(s[t]??""),t+=1;t+=1,r.push({type:"code",language:n||"text",code:h.join(`
|
|
3
|
+
`)});continue}if(/^#{1,4}\s+/.test(i)){let n=i.match(/^#{1,4}/)?.[0].length??2;r.push({type:"heading",level:n,text:i.replace(/^#{1,4}\s+/,"")}),t+=1;continue}if(/^>\s+/.test(i)){let n=[];while(t<s.length&&/^>\s+/.test((s[t]??"").trim()))n.push((s[t]??"").trim().replace(/^>\s+/,"")),t+=1;r.push({type:"quote",text:n.join(" ")});continue}if(/^[-*]\s+/.test(i)||/^\d+\.\s+/.test(i)){let n=/^\d+\.\s+/.test(i),h=[];while(t<s.length&&c((s[t]??"").trim())){let g=(s[t]??"").trim();if(n&&/^\d+\.\s+/.test(g))h.push(g.replace(/^\d+\.\s+/,""));else if(!n&&/^[-*]\s+/.test(g))h.push(g.replace(/^[-*]\s+/,""));else break;t+=1}r.push({type:"list",ordered:n,items:h});continue}let u=[];while(t<s.length&&!c((s[t]??"").trim())){let n=(s[t]??"").trim();if(!n)break;u.push(n),t+=1}r.push({type:"paragraph",text:u.join(" ")})}return r}import{CodeBlock as q}from"@contractspec/lib.design-system";import{HStack as D,VStack as o}from"@contractspec/lib.ui-kit-web/ui/stack";import{BlockQuote as L,H2 as M,H3 as W,H4 as B,Muted as m,P as y}from"@contractspec/lib.ui-kit-web/ui/typography";import{jsx as p,jsxs as E}from"react/jsx-runtime";var A=new Set(["typescript","tsx","javascript","jsx","bash","shell","json","yaml","graphql","sql","python","go","rust","css","scss","html","markdown","text"]);function Z(e){if(!e)return"text";let s=e.toLowerCase();return A.has(s)?s:"text"}function l(e,s){if(e<=2)return p(M,{children:s});if(e===3)return p(W,{children:s});return p(B,{children:s})}function R({content:e}){let s=f(e);if(!s.length)return p(m,{children:"No reference content available."});return p(o,{gap:"md",children:s.map((r,t)=>{switch(r.type){case"heading":return p(o,{children:l(r.level,r.text)},t);case"paragraph":return p(y,{children:r.text},t);case"quote":return p(L,{children:r.text},t);case"code":return p(q,{language:Z(r.language),code:r.code},t);case"list":return p(o,{gap:"xs",children:r.items.map((a,i)=>E(D,{gap:"sm",align:"start",children:[p(m,{children:r.ordered?`${i+1}.`:"\u2022"}),p(y,{className:"leading-relaxed",children:a})]},i))},t);default:return null}})})}export{R as DocsMarkdownContent};
|
|
@@ -1,258 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function stripMetadata(content) {
|
|
5
|
-
const withoutTitle = content.replace(/^#\s+.*\n+/m, "");
|
|
6
|
-
return withoutTitle.replace(METADATA_SECTION, "");
|
|
7
|
-
}
|
|
8
|
-
function isBlockStart(line) {
|
|
9
|
-
return /^#{1,4}\s+/.test(line) || /^```/.test(line) || /^\s*[-*]\s+/.test(line) || /^\s*\d+\.\s+/.test(line) || /^>\s+/.test(line);
|
|
10
|
-
}
|
|
11
|
-
function parseDocsMarkdown(content) {
|
|
12
|
-
const lines = stripMetadata(content).split(/\r?\n/);
|
|
13
|
-
const blocks = [];
|
|
14
|
-
let i = 0;
|
|
15
|
-
while (i < lines.length) {
|
|
16
|
-
const line = lines[i] ?? "";
|
|
17
|
-
if (line.startsWith("<!-- @generated")) {
|
|
18
|
-
i += 1;
|
|
19
|
-
continue;
|
|
20
|
-
}
|
|
21
|
-
const trimmed = line.trim();
|
|
22
|
-
if (!trimmed) {
|
|
23
|
-
i += 1;
|
|
24
|
-
continue;
|
|
25
|
-
}
|
|
26
|
-
if (trimmed.startsWith("```")) {
|
|
27
|
-
const language = trimmed.slice(3).trim();
|
|
28
|
-
const codeLines = [];
|
|
29
|
-
i += 1;
|
|
30
|
-
while (i < lines.length && !(lines[i] ?? "").trim().startsWith("```")) {
|
|
31
|
-
codeLines.push(lines[i] ?? "");
|
|
32
|
-
i += 1;
|
|
33
|
-
}
|
|
34
|
-
i += 1;
|
|
35
|
-
blocks.push({
|
|
36
|
-
type: "code",
|
|
37
|
-
language: language || "text",
|
|
38
|
-
code: codeLines.join(`
|
|
39
|
-
`)
|
|
40
|
-
});
|
|
41
|
-
continue;
|
|
42
|
-
}
|
|
43
|
-
if (/^#{1,4}\s+/.test(trimmed)) {
|
|
44
|
-
const level = trimmed.match(/^#{1,4}/)?.[0].length ?? 2;
|
|
45
|
-
blocks.push({
|
|
46
|
-
type: "heading",
|
|
47
|
-
level,
|
|
48
|
-
text: trimmed.replace(/^#{1,4}\s+/, "")
|
|
49
|
-
});
|
|
50
|
-
i += 1;
|
|
51
|
-
continue;
|
|
52
|
-
}
|
|
53
|
-
if (/^>\s+/.test(trimmed)) {
|
|
54
|
-
const quoteLines = [];
|
|
55
|
-
while (i < lines.length && /^>\s+/.test((lines[i] ?? "").trim())) {
|
|
56
|
-
quoteLines.push((lines[i] ?? "").trim().replace(/^>\s+/, ""));
|
|
57
|
-
i += 1;
|
|
58
|
-
}
|
|
59
|
-
blocks.push({ type: "quote", text: quoteLines.join(" ") });
|
|
60
|
-
continue;
|
|
61
|
-
}
|
|
62
|
-
if (/^[-*]\s+/.test(trimmed) || /^\d+\.\s+/.test(trimmed)) {
|
|
63
|
-
const ordered = /^\d+\.\s+/.test(trimmed);
|
|
64
|
-
const items = [];
|
|
65
|
-
while (i < lines.length && isBlockStart((lines[i] ?? "").trim())) {
|
|
66
|
-
const itemLine = (lines[i] ?? "").trim();
|
|
67
|
-
if (ordered && /^\d+\.\s+/.test(itemLine)) {
|
|
68
|
-
items.push(itemLine.replace(/^\d+\.\s+/, ""));
|
|
69
|
-
} else if (!ordered && /^[-*]\s+/.test(itemLine)) {
|
|
70
|
-
items.push(itemLine.replace(/^[-*]\s+/, ""));
|
|
71
|
-
} else {
|
|
72
|
-
break;
|
|
73
|
-
}
|
|
74
|
-
i += 1;
|
|
75
|
-
}
|
|
76
|
-
blocks.push({ type: "list", ordered, items });
|
|
77
|
-
continue;
|
|
78
|
-
}
|
|
79
|
-
const paragraphLines = [];
|
|
80
|
-
while (i < lines.length && !isBlockStart((lines[i] ?? "").trim())) {
|
|
81
|
-
const paragraphLine = (lines[i] ?? "").trim();
|
|
82
|
-
if (!paragraphLine)
|
|
83
|
-
break;
|
|
84
|
-
paragraphLines.push(paragraphLine);
|
|
85
|
-
i += 1;
|
|
86
|
-
}
|
|
87
|
-
blocks.push({ type: "paragraph", text: paragraphLines.join(" ") });
|
|
88
|
-
}
|
|
89
|
-
return blocks;
|
|
90
|
-
}
|
|
2
|
+
var X=/^##\s+Metadata[\s\S]*?(?=^##\s|^#\s|Z)/m;function Y(i){return i.replace(/^#\s+.*\n+/m,"").replace(X,"")}function E(i){return/^#{1,4}\s+/.test(i)||/^```/.test(i)||/^\s*[-*]\s+/.test(i)||/^\s*\d+\.\s+/.test(i)||/^>\s+/.test(i)}function F(i){let s=Y(i).split(/\r?\n/),h=[],p=0;while(p<s.length){let T=s[p]??"";if(T.startsWith("<!-- @generated")){p+=1;continue}let g=T.trim();if(!g){p+=1;continue}if(g.startsWith("```")){let t=g.slice(3).trim(),f=[];p+=1;while(p<s.length&&!(s[p]??"").trim().startsWith("```"))f.push(s[p]??""),p+=1;p+=1,h.push({type:"code",language:t||"text",code:f.join(`
|
|
3
|
+
`)});continue}if(/^#{1,4}\s+/.test(g)){let t=g.match(/^#{1,4}/)?.[0].length??2;h.push({type:"heading",level:t,text:g.replace(/^#{1,4}\s+/,"")}),p+=1;continue}if(/^>\s+/.test(g)){let t=[];while(p<s.length&&/^>\s+/.test((s[p]??"").trim()))t.push((s[p]??"").trim().replace(/^>\s+/,"")),p+=1;h.push({type:"quote",text:t.join(" ")});continue}if(/^[-*]\s+/.test(g)||/^\d+\.\s+/.test(g)){let t=/^\d+\.\s+/.test(g),f=[];while(p<s.length&&E((s[p]??"").trim())){let q=(s[p]??"").trim();if(t&&/^\d+\.\s+/.test(q))f.push(q.replace(/^\d+\.\s+/,""));else if(!t&&/^[-*]\s+/.test(q))f.push(q.replace(/^[-*]\s+/,""));else break;p+=1}h.push({type:"list",ordered:t,items:f});continue}let W=[];while(p<s.length&&!E((s[p]??"").trim())){let t=(s[p]??"").trim();if(!t)break;W.push(t),p+=1}h.push({type:"paragraph",text:W.join(" ")})}return h}import{CodeBlock as _}from"@contractspec/lib.design-system";import{HStack as $,VStack as Z}from"@contractspec/lib.ui-kit-web/ui/stack";import{BlockQuote as Q,H2 as U,H3 as r,H4 as z,Muted as J,P as K}from"@contractspec/lib.ui-kit-web/ui/typography";import{jsx as u,jsxs as P}from"react/jsx-runtime";var G=new Set(["typescript","tsx","javascript","jsx","bash","shell","json","yaml","graphql","sql","python","go","rust","css","scss","html","markdown","text"]);function v(i){if(!i)return"text";let s=i.toLowerCase();return G.has(s)?s:"text"}function w(i,s){if(i<=2)return u(U,{children:s});if(i===3)return u(r,{children:s});return u(z,{children:s})}function N({content:i}){let s=F(i);if(!s.length)return u(J,{children:"No reference content available."});return u(Z,{gap:"md",children:s.map((h,p)=>{switch(h.type){case"heading":return u(Z,{children:w(h.level,h.text)},p);case"paragraph":return u(K,{children:h.text},p);case"quote":return u(Q,{children:h.text},p);case"code":return u(_,{language:v(h.language),code:h.code},p);case"list":return u(Z,{gap:"xs",children:h.items.map((T,g)=>P($,{gap:"sm",align:"start",children:[u(J,{children:h.ordered?`${g+1}.`:"\u2022"}),u(K,{className:"leading-relaxed",children:T})]},g))},p);default:return null}})})}import{ContractReferenceDataView as B}from"@contractspec/lib.contracts-spec/docs";import{DataViewRenderer as D}from"@contractspec/lib.design-system";import{VStack as I}from"@contractspec/lib.ui-kit-web/ui/stack";import{jsx as O,jsxs as d}from"react/jsx-runtime";function L(i,s){return i.match(new RegExp(`- \\*\\*${s}\\*\\*: (.+)`,"i"))?.[1]?.trim()}function M(i){if(!i)return;return i.replace(/<!--.*?-->/g,"").replace(/[ \t]+/g," ").replace(/\n{3,}/g,`
|
|
91
4
|
|
|
92
|
-
|
|
93
|
-
import { CodeBlock } from "@contractspec/lib.design-system";
|
|
94
|
-
import { HStack, VStack } from "@contractspec/lib.ui-kit-web/ui/stack";
|
|
95
|
-
import {
|
|
96
|
-
BlockQuote,
|
|
97
|
-
H2,
|
|
98
|
-
H3,
|
|
99
|
-
H4,
|
|
100
|
-
Muted,
|
|
101
|
-
P
|
|
102
|
-
} from "@contractspec/lib.ui-kit-web/ui/typography";
|
|
103
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
104
|
-
"use client";
|
|
105
|
-
var CODE_LANGUAGES = new Set([
|
|
106
|
-
"typescript",
|
|
107
|
-
"tsx",
|
|
108
|
-
"javascript",
|
|
109
|
-
"jsx",
|
|
110
|
-
"bash",
|
|
111
|
-
"shell",
|
|
112
|
-
"json",
|
|
113
|
-
"yaml",
|
|
114
|
-
"graphql",
|
|
115
|
-
"sql",
|
|
116
|
-
"python",
|
|
117
|
-
"go",
|
|
118
|
-
"rust",
|
|
119
|
-
"css",
|
|
120
|
-
"scss",
|
|
121
|
-
"html",
|
|
122
|
-
"markdown",
|
|
123
|
-
"text"
|
|
124
|
-
]);
|
|
125
|
-
function toCodeLanguage(language) {
|
|
126
|
-
if (!language)
|
|
127
|
-
return "text";
|
|
128
|
-
const normalized = language.toLowerCase();
|
|
129
|
-
return CODE_LANGUAGES.has(normalized) ? normalized : "text";
|
|
130
|
-
}
|
|
131
|
-
function renderHeading(level, text) {
|
|
132
|
-
if (level <= 2)
|
|
133
|
-
return /* @__PURE__ */ jsx(H2, {
|
|
134
|
-
children: text
|
|
135
|
-
});
|
|
136
|
-
if (level === 3)
|
|
137
|
-
return /* @__PURE__ */ jsx(H3, {
|
|
138
|
-
children: text
|
|
139
|
-
});
|
|
140
|
-
return /* @__PURE__ */ jsx(H4, {
|
|
141
|
-
children: text
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
function DocsMarkdownContent({ content }) {
|
|
145
|
-
const blocks = parseDocsMarkdown(content);
|
|
146
|
-
if (!blocks.length) {
|
|
147
|
-
return /* @__PURE__ */ jsx(Muted, {
|
|
148
|
-
children: "No reference content available."
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
return /* @__PURE__ */ jsx(VStack, {
|
|
152
|
-
gap: "md",
|
|
153
|
-
children: blocks.map((block, index) => {
|
|
154
|
-
switch (block.type) {
|
|
155
|
-
case "heading":
|
|
156
|
-
return /* @__PURE__ */ jsx(VStack, {
|
|
157
|
-
children: renderHeading(block.level, block.text)
|
|
158
|
-
}, index);
|
|
159
|
-
case "paragraph":
|
|
160
|
-
return /* @__PURE__ */ jsx(P, {
|
|
161
|
-
children: block.text
|
|
162
|
-
}, index);
|
|
163
|
-
case "quote":
|
|
164
|
-
return /* @__PURE__ */ jsx(BlockQuote, {
|
|
165
|
-
children: block.text
|
|
166
|
-
}, index);
|
|
167
|
-
case "code":
|
|
168
|
-
return /* @__PURE__ */ jsx(CodeBlock, {
|
|
169
|
-
language: toCodeLanguage(block.language),
|
|
170
|
-
code: block.code
|
|
171
|
-
}, index);
|
|
172
|
-
case "list":
|
|
173
|
-
return /* @__PURE__ */ jsx(VStack, {
|
|
174
|
-
gap: "xs",
|
|
175
|
-
children: block.items.map((item, itemIndex) => /* @__PURE__ */ jsxs(HStack, {
|
|
176
|
-
gap: "sm",
|
|
177
|
-
align: "start",
|
|
178
|
-
children: [
|
|
179
|
-
/* @__PURE__ */ jsx(Muted, {
|
|
180
|
-
children: block.ordered ? `${itemIndex + 1}.` : "\u2022"
|
|
181
|
-
}),
|
|
182
|
-
/* @__PURE__ */ jsx(P, {
|
|
183
|
-
className: "leading-relaxed",
|
|
184
|
-
children: item
|
|
185
|
-
})
|
|
186
|
-
]
|
|
187
|
-
}, itemIndex))
|
|
188
|
-
}, index);
|
|
189
|
-
default:
|
|
190
|
-
return null;
|
|
191
|
-
}
|
|
192
|
-
})
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
// src/components/docs/reference/DocsReferenceContent.tsx
|
|
197
|
-
import { ContractReferenceDataView } from "@contractspec/lib.contracts-spec/docs";
|
|
198
|
-
import { DataViewRenderer } from "@contractspec/lib.design-system";
|
|
199
|
-
import { VStack as VStack2 } from "@contractspec/lib.ui-kit-web/ui/stack";
|
|
200
|
-
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
201
|
-
"use client";
|
|
202
|
-
function extractMeta(content, label) {
|
|
203
|
-
const match = content.match(new RegExp(`- \\*\\*${label}\\*\\*: (.+)`, "i"));
|
|
204
|
-
return match?.[1]?.trim();
|
|
205
|
-
}
|
|
206
|
-
function cleanSummary(summary) {
|
|
207
|
-
if (!summary)
|
|
208
|
-
return;
|
|
209
|
-
return summary.replace(/<!--.*?-->/g, "").replace(/[ \t]+/g, " ").replace(/\n{3,}/g, `
|
|
210
|
-
|
|
211
|
-
`).trim();
|
|
212
|
-
}
|
|
213
|
-
function DocsReferenceContent({
|
|
214
|
-
entry,
|
|
215
|
-
content
|
|
216
|
-
}) {
|
|
217
|
-
const summary = cleanSummary(entry.summary);
|
|
218
|
-
const type = extractMeta(content, "Type");
|
|
219
|
-
const version = extractMeta(content, "Version") ?? entry.version;
|
|
220
|
-
const tags = extractMeta(content, "Tags")?.split(",").map((tag) => tag.trim()).filter(Boolean);
|
|
221
|
-
const owners = extractMeta(content, "Owners")?.split(",").map((owner) => owner.trim()).filter(Boolean);
|
|
222
|
-
const stability = extractMeta(content, "Stability") ?? entry.visibility;
|
|
223
|
-
const referenceItem = {
|
|
224
|
-
reference: {
|
|
225
|
-
key: entry.title ?? entry.id,
|
|
226
|
-
version,
|
|
227
|
-
type,
|
|
228
|
-
title: entry.title ?? entry.id,
|
|
229
|
-
description: summary,
|
|
230
|
-
tags: tags ?? entry.tags,
|
|
231
|
-
owners: owners ?? entry.owners,
|
|
232
|
-
stability
|
|
233
|
-
}
|
|
234
|
-
};
|
|
235
|
-
const detailSpec = {
|
|
236
|
-
...ContractReferenceDataView,
|
|
237
|
-
meta: {
|
|
238
|
-
...ContractReferenceDataView.meta,
|
|
239
|
-
title: entry.title ?? ContractReferenceDataView.meta.title,
|
|
240
|
-
description: summary ?? ContractReferenceDataView.meta.description
|
|
241
|
-
}
|
|
242
|
-
};
|
|
243
|
-
return /* @__PURE__ */ jsxs2(VStack2, {
|
|
244
|
-
gap: "xl",
|
|
245
|
-
children: [
|
|
246
|
-
/* @__PURE__ */ jsx2(DataViewRenderer, {
|
|
247
|
-
spec: detailSpec,
|
|
248
|
-
item: referenceItem
|
|
249
|
-
}),
|
|
250
|
-
/* @__PURE__ */ jsx2(DocsMarkdownContent, {
|
|
251
|
-
content
|
|
252
|
-
})
|
|
253
|
-
]
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
export {
|
|
257
|
-
DocsReferenceContent
|
|
258
|
-
};
|
|
5
|
+
`).trim()}function a({entry:i,content:s}){let h=M(i.summary),p=L(s,"Type"),T=L(s,"Version")??i.version,g=L(s,"Tags")?.split(",").map((A)=>A.trim()).filter(Boolean),W=L(s,"Owners")?.split(",").map((A)=>A.trim()).filter(Boolean),t=L(s,"Stability")??i.visibility,f={reference:{key:i.title??i.id,version:T,type:p,title:i.title??i.id,description:h,tags:g??i.tags,owners:W??i.owners,stability:t}},q={...B,meta:{...B.meta,title:i.title??B.meta.title,description:h??B.meta.description}};return d(I,{gap:"xl",children:[O(D,{spec:q,item:f}),O(N,{content:s})]})}export{a as DocsReferenceContent};
|
|
@@ -1,129 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
DocsIndexDataView,
|
|
5
|
-
DocsSearchForm
|
|
6
|
-
} from "@contractspec/lib.contracts-spec/docs";
|
|
7
|
-
import {
|
|
8
|
-
DataViewList,
|
|
9
|
-
formRenderer,
|
|
10
|
-
StatusChip
|
|
11
|
-
} from "@contractspec/lib.design-system";
|
|
12
|
-
import { HStack, VStack } from "@contractspec/lib.ui-kit-web/ui/stack";
|
|
13
|
-
import { H1, Muted } from "@contractspec/lib.ui-kit-web/ui/typography";
|
|
14
|
-
import { useMemo, useState } from "react";
|
|
15
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
-
"use client";
|
|
17
|
-
function cleanSummary(summary) {
|
|
18
|
-
if (!summary)
|
|
19
|
-
return;
|
|
20
|
-
return summary.replace(/<!--.*?-->/g, "").replace(/[ \t]+/g, " ").replace(/\n{3,}/g, `
|
|
2
|
+
import{DocsIndexDataView as _,DocsSearchForm as $}from"@contractspec/lib.contracts-spec/docs";import{DataViewList as g,formRenderer as I,StatusChip as P}from"@contractspec/lib.design-system";import{HStack as L,VStack as T}from"@contractspec/lib.ui-kit-web/ui/stack";import{H1 as Q,Muted as W}from"@contractspec/lib.ui-kit-web/ui/typography";import{useMemo as X,useState as R}from"react";import{jsx as J,jsxs as U}from"react/jsx-runtime";function H(A){if(!A)return;return A.replace(/<!--.*?-->/g,"").replace(/[ \t]+/g," ").replace(/\n{3,}/g,`
|
|
21
3
|
|
|
22
|
-
`).trim();
|
|
23
|
-
}
|
|
24
|
-
function normalizeEntry(entry) {
|
|
25
|
-
const summary = cleanSummary(entry.summary);
|
|
26
|
-
const kind = entry.kind ?? (entry.source === "generated" ? "reference" : undefined);
|
|
27
|
-
const visibility = entry.visibility ?? (entry.source === "generated" ? "public" : undefined);
|
|
28
|
-
return {
|
|
29
|
-
...entry,
|
|
30
|
-
summary,
|
|
31
|
-
kind,
|
|
32
|
-
visibility
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
function matchesQuery(entry, query) {
|
|
36
|
-
if (!query)
|
|
37
|
-
return true;
|
|
38
|
-
const haystack = [entry.title, entry.summary, entry.id, ...entry.tags ?? []].filter(Boolean).join(" ").toLowerCase();
|
|
39
|
-
return haystack.includes(query.toLowerCase());
|
|
40
|
-
}
|
|
41
|
-
function DocsReferenceIndexClient({
|
|
42
|
-
entries
|
|
43
|
-
}) {
|
|
44
|
-
const [filters, setFilters] = useState({});
|
|
45
|
-
const normalizedEntries = useMemo(() => entries.map(normalizeEntry), [entries]);
|
|
46
|
-
const filteredEntries = useMemo(() => {
|
|
47
|
-
const query = filters.query?.trim() ?? "";
|
|
48
|
-
return normalizedEntries.filter((entry) => {
|
|
49
|
-
if (filters.kind && entry.kind !== filters.kind)
|
|
50
|
-
return false;
|
|
51
|
-
if (filters.visibility && entry.visibility !== filters.visibility)
|
|
52
|
-
return false;
|
|
53
|
-
return matchesQuery(entry, query);
|
|
54
|
-
});
|
|
55
|
-
}, [filters, normalizedEntries]);
|
|
56
|
-
const searchForm = formRenderer.render(DocsSearchForm, {
|
|
57
|
-
defaultValues: {
|
|
58
|
-
query: filters.query ?? "",
|
|
59
|
-
visibility: filters.visibility ?? "",
|
|
60
|
-
kind: filters.kind ?? ""
|
|
61
|
-
},
|
|
62
|
-
overrides: {
|
|
63
|
-
onSubmitOverride: (values) => {
|
|
64
|
-
const submitted = values;
|
|
65
|
-
setFilters({
|
|
66
|
-
query: submitted.query ?? "",
|
|
67
|
-
visibility: submitted.visibility ?? "",
|
|
68
|
-
kind: submitted.kind ?? ""
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
return /* @__PURE__ */ jsxs(VStack, {
|
|
74
|
-
gap: "xl",
|
|
75
|
-
children: [
|
|
76
|
-
/* @__PURE__ */ jsxs(VStack, {
|
|
77
|
-
gap: "sm",
|
|
78
|
-
children: [
|
|
79
|
-
/* @__PURE__ */ jsx(H1, {
|
|
80
|
-
children: "Reference"
|
|
81
|
-
}),
|
|
82
|
-
/* @__PURE__ */ jsx(Muted, {
|
|
83
|
-
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."
|
|
84
|
-
})
|
|
85
|
-
]
|
|
86
|
-
}),
|
|
87
|
-
/* @__PURE__ */ jsx(VStack, {
|
|
88
|
-
gap: "sm",
|
|
89
|
-
className: "max-w-2xl",
|
|
90
|
-
children: searchForm
|
|
91
|
-
}),
|
|
92
|
-
/* @__PURE__ */ jsx(DataViewList, {
|
|
93
|
-
spec: DocsIndexDataView,
|
|
94
|
-
items: filteredEntries,
|
|
95
|
-
emptyState: /* @__PURE__ */ jsx(Muted, {
|
|
96
|
-
children: "No reference docs match your filters."
|
|
97
|
-
}),
|
|
98
|
-
onSelect: (entry) => {
|
|
99
|
-
if (entry.route) {
|
|
100
|
-
window.location.assign(entry.route);
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
renderActions: (entry) => {
|
|
104
|
-
return /* @__PURE__ */ jsxs(HStack, {
|
|
105
|
-
gap: "xs",
|
|
106
|
-
justify: "end",
|
|
107
|
-
children: [
|
|
108
|
-
entry.kind ? /* @__PURE__ */ jsx(StatusChip, {
|
|
109
|
-
size: "sm",
|
|
110
|
-
label: entry.kind
|
|
111
|
-
}) : null,
|
|
112
|
-
entry.visibility ? /* @__PURE__ */ jsx(StatusChip, {
|
|
113
|
-
size: "sm",
|
|
114
|
-
label: entry.visibility
|
|
115
|
-
}) : null,
|
|
116
|
-
entry.version ? /* @__PURE__ */ jsx(StatusChip, {
|
|
117
|
-
size: "sm",
|
|
118
|
-
label: `v${entry.version}`
|
|
119
|
-
}) : null
|
|
120
|
-
]
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
})
|
|
124
|
-
]
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
export {
|
|
128
|
-
DocsReferenceIndexClient
|
|
129
|
-
};
|
|
4
|
+
`).trim()}function v(A){let B=H(A.summary),N=A.kind??(A.source==="generated"?"reference":void 0),O=A.visibility??(A.source==="generated"?"public":void 0);return{...A,summary:B,kind:N,visibility:O}}function w(A,B){if(!B)return!0;return[A.title,A.summary,A.id,...A.tags??[]].filter(Boolean).join(" ").toLowerCase().includes(B.toLowerCase())}function M({entries:A}){let[B,N]=R({}),O=X(()=>A.map(v),[A]),Y=X(()=>{let G=B.query?.trim()??"";return O.filter((K)=>{if(B.kind&&K.kind!==B.kind)return!1;if(B.visibility&&K.visibility!==B.visibility)return!1;return w(K,G)})},[B,O]),Z=I.render($,{defaultValues:{query:B.query??"",visibility:B.visibility??"",kind:B.kind??""},overrides:{onSubmitOverride:(G)=>{let K=G;N({query:K.query??"",visibility:K.visibility??"",kind:K.kind??""})}}});return U(T,{gap:"xl",children:[U(T,{gap:"sm",children:[J(Q,{children:"Reference"}),J(W,{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."})]}),J(T,{gap:"sm",className:"max-w-2xl",children:Z}),J(g,{spec:_,items:Y,emptyState:J(W,{children:"No reference docs match your filters."}),onSelect:(G)=>{if(G.route)window.location.assign(G.route)},renderActions:(G)=>{return U(L,{gap:"xs",justify:"end",children:[G.kind?J(P,{size:"sm",label:G.kind}):null,G.visibility?J(P,{size:"sm",label:G.visibility}):null,G.version?J(P,{size:"sm",label:`v${G.version}`}):null]})}})]})}export{M as DocsReferenceIndexClient};
|