@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,76 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { contractFirstApiBrief } from "@contractspec/bundle.library/components/docs/intent/intent-pages.docblocks";
|
|
3
|
-
import { SeoOptimizer } from "@contractspec/lib.content-gen/seo";
|
|
4
|
-
import { CodeBlock } from "@contractspec/lib.design-system";
|
|
5
|
-
import Link from "@contractspec/lib.ui-link";
|
|
6
|
-
import { ChevronRight } from "lucide-react";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
var metadata = new SeoOptimizer().optimize(contractFirstApiBrief);
|
|
9
|
-
function ContractFirstApiPage() {
|
|
10
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
11
|
-
className: "space-y-8",
|
|
12
|
-
children: [
|
|
13
|
-
/* @__PURE__ */ jsxs("div", {
|
|
14
|
-
className: "space-y-3",
|
|
15
|
-
children: [
|
|
16
|
-
/* @__PURE__ */ jsx("h1", {
|
|
17
|
-
className: "font-bold text-4xl",
|
|
18
|
-
children: contractFirstApiBrief.title
|
|
19
|
-
}),
|
|
20
|
-
/* @__PURE__ */ jsx("p", {
|
|
21
|
-
className: "text-lg text-muted-foreground",
|
|
22
|
-
children: contractFirstApiBrief.summary
|
|
23
|
-
})
|
|
24
|
-
]
|
|
25
|
-
}),
|
|
26
|
-
/* @__PURE__ */ jsxs("div", {
|
|
27
|
-
className: "card-subtle space-y-4 p-6",
|
|
28
|
-
children: [
|
|
29
|
-
/* @__PURE__ */ jsx("h2", {
|
|
30
|
-
className: "font-bold text-2xl",
|
|
31
|
-
children: "Problems Solved"
|
|
32
|
-
}),
|
|
33
|
-
/* @__PURE__ */ jsx("ul", {
|
|
34
|
-
className: "space-y-2 text-muted-foreground text-sm",
|
|
35
|
-
children: contractFirstApiBrief.problems.map((problem, index) => /* @__PURE__ */ jsx("li", {
|
|
36
|
-
children: problem
|
|
37
|
-
}, index))
|
|
38
|
-
})
|
|
39
|
-
]
|
|
40
|
-
}),
|
|
41
|
-
/* @__PURE__ */ jsxs("div", {
|
|
42
|
-
className: "card-subtle space-y-4 p-6",
|
|
43
|
-
children: [
|
|
44
|
-
/* @__PURE__ */ jsx("h2", {
|
|
45
|
-
className: "font-bold text-2xl",
|
|
46
|
-
children: "Solutions"
|
|
47
|
-
}),
|
|
48
|
-
/* @__PURE__ */ jsx("ul", {
|
|
49
|
-
className: "space-y-2 text-muted-foreground text-sm",
|
|
50
|
-
children: contractFirstApiBrief.solutions.map((solution, index) => /* @__PURE__ */ jsx("li", {
|
|
51
|
-
children: solution
|
|
52
|
-
}, index))
|
|
53
|
-
})
|
|
54
|
-
]
|
|
55
|
-
}),
|
|
56
|
-
/* @__PURE__ */ jsxs("div", {
|
|
57
|
-
className: "space-y-6",
|
|
58
|
-
children: [
|
|
59
|
-
/* @__PURE__ */ jsxs("div", {
|
|
60
|
-
className: "space-y-3",
|
|
61
|
-
children: [
|
|
62
|
-
/* @__PURE__ */ jsx("h2", {
|
|
63
|
-
className: "font-bold text-2xl",
|
|
64
|
-
children: "Quick Start"
|
|
65
|
-
}),
|
|
66
|
-
/* @__PURE__ */ jsx("p", {
|
|
67
|
-
className: "text-muted-foreground text-sm",
|
|
68
|
-
children: "Define your first API contract and generate consistent implementations."
|
|
69
|
-
}),
|
|
70
|
-
/* @__PURE__ */ jsx(CodeBlock, {
|
|
71
|
-
language: "typescript",
|
|
72
|
-
filename: "src/contracts/user-create.operation.ts",
|
|
73
|
-
code: `import { defineOperation } from '@contractspec/lib.contracts-spec/operations';
|
|
1
|
+
import{contractFirstApiBrief as D}from"@contractspec/bundle.library/components/docs/intent/intent-pages.docblocks";import{SeoOptimizer as J}from"@contractspec/lib.content-gen/seo";import{CodeBlock as H}from"@contractspec/lib.design-system";import I from"@contractspec/lib.ui-link";import{ChevronRight as K}from"lucide-react";import{jsx as q,jsxs as w}from"react/jsx-runtime";var U=new J().optimize(D);function V(){return w("div",{className:"space-y-8",children:[w("div",{className:"space-y-3",children:[q("h1",{className:"font-bold text-4xl",children:D.title}),q("p",{className:"text-lg text-muted-foreground",children:D.summary})]}),w("div",{className:"card-subtle space-y-4 p-6",children:[q("h2",{className:"font-bold text-2xl",children:"Problems Solved"}),q("ul",{className:"space-y-2 text-muted-foreground text-sm",children:D.problems.map((E,G)=>q("li",{children:E},G))})]}),w("div",{className:"card-subtle space-y-4 p-6",children:[q("h2",{className:"font-bold text-2xl",children:"Solutions"}),q("ul",{className:"space-y-2 text-muted-foreground text-sm",children:D.solutions.map((E,G)=>q("li",{children:E},G))})]}),w("div",{className:"space-y-6",children:[w("div",{className:"space-y-3",children:[q("h2",{className:"font-bold text-2xl",children:"Quick Start"}),q("p",{className:"text-muted-foreground text-sm",children:"Define your first API contract and generate consistent implementations."}),q(H,{language:"typescript",filename:"src/contracts/user-create.operation.ts",code:`import { defineOperation } from '@contractspec/lib.contracts-spec/operations';
|
|
74
2
|
import { SchemaModel, ScalarTypeEnum } from '@contractspec/lib.schema';
|
|
75
3
|
|
|
76
4
|
export const CreateUserOperation = defineOperation({
|
|
@@ -104,56 +32,4 @@ export const CreateUserOperation = defineOperation({
|
|
|
104
32
|
tags: ['users', 'auth'],
|
|
105
33
|
description: 'Create a new user account with email and password',
|
|
106
34
|
},
|
|
107
|
-
});`
|
|
108
|
-
})
|
|
109
|
-
]
|
|
110
|
-
}),
|
|
111
|
-
/* @__PURE__ */ jsxs("div", {
|
|
112
|
-
className: "space-y-3",
|
|
113
|
-
children: [
|
|
114
|
-
/* @__PURE__ */ jsx("h2", {
|
|
115
|
-
className: "font-bold text-2xl",
|
|
116
|
-
children: "Generate OpenAPI"
|
|
117
|
-
}),
|
|
118
|
-
/* @__PURE__ */ jsx("p", {
|
|
119
|
-
className: "text-muted-foreground text-sm",
|
|
120
|
-
children: "Export OpenAPI documentation directly from your contracts."
|
|
121
|
-
}),
|
|
122
|
-
/* @__PURE__ */ jsx(CodeBlock, {
|
|
123
|
-
language: "bash",
|
|
124
|
-
filename: "export-openapi",
|
|
125
|
-
code: `contractspec openapi export \\
|
|
126
|
-
--registry ./src/contracts/registry.ts \\
|
|
127
|
-
--out ./openapi.json`
|
|
128
|
-
})
|
|
129
|
-
]
|
|
130
|
-
})
|
|
131
|
-
]
|
|
132
|
-
}),
|
|
133
|
-
/* @__PURE__ */ jsxs("div", {
|
|
134
|
-
className: "flex items-center gap-4 pt-4",
|
|
135
|
-
children: [
|
|
136
|
-
/* @__PURE__ */ jsxs(Link, {
|
|
137
|
-
href: "/docs/guides/nextjs-one-endpoint",
|
|
138
|
-
className: "btn-primary",
|
|
139
|
-
children: [
|
|
140
|
-
"Next.js Guide ",
|
|
141
|
-
/* @__PURE__ */ jsx(ChevronRight, {
|
|
142
|
-
size: 16
|
|
143
|
-
})
|
|
144
|
-
]
|
|
145
|
-
}),
|
|
146
|
-
/* @__PURE__ */ jsx(Link, {
|
|
147
|
-
href: "/docs/intent/spec-driven-development",
|
|
148
|
-
className: "btn-ghost",
|
|
149
|
-
children: "Spec-driven Development"
|
|
150
|
-
})
|
|
151
|
-
]
|
|
152
|
-
})
|
|
153
|
-
]
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
export {
|
|
157
|
-
metadata,
|
|
158
|
-
ContractFirstApiPage
|
|
159
|
-
};
|
|
35
|
+
});`})]}),w("div",{className:"space-y-3",children:[q("h2",{className:"font-bold text-2xl",children:"Generate OpenAPI"}),q("p",{className:"text-muted-foreground text-sm",children:"Export OpenAPI documentation directly from your contracts."}),q(H,{language:"bash",filename:"export-openapi",code:"contractspec openapi export \\\n --registry ./src/contracts/registry.ts \\\n --out ./openapi.json"})]})]}),w("div",{className:"flex items-center gap-4 pt-4",children:[w(I,{href:"/docs/guides/nextjs-one-endpoint",className:"btn-primary",children:["Next.js Guide ",q(K,{size:16})]}),q(I,{href:"/docs/intent/spec-driven-development",className:"btn-ghost",children:"Spec-driven Development"})]})]})}export{U as metadata,V as ContractFirstApiPage};
|
|
@@ -1,76 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { deterministicCodegenBrief } from "@contractspec/bundle.library/components/docs/intent/intent-pages.docblocks";
|
|
3
|
-
import { SeoOptimizer } from "@contractspec/lib.content-gen/seo";
|
|
4
|
-
import { CodeBlock } from "@contractspec/lib.design-system";
|
|
5
|
-
import Link from "@contractspec/lib.ui-link";
|
|
6
|
-
import { ChevronRight } from "lucide-react";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
var metadata = new SeoOptimizer().optimize(deterministicCodegenBrief);
|
|
9
|
-
function DeterministicCodegenPage() {
|
|
10
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
11
|
-
className: "space-y-8",
|
|
12
|
-
children: [
|
|
13
|
-
/* @__PURE__ */ jsxs("div", {
|
|
14
|
-
className: "space-y-3",
|
|
15
|
-
children: [
|
|
16
|
-
/* @__PURE__ */ jsx("h1", {
|
|
17
|
-
className: "font-bold text-4xl",
|
|
18
|
-
children: deterministicCodegenBrief.title
|
|
19
|
-
}),
|
|
20
|
-
/* @__PURE__ */ jsx("p", {
|
|
21
|
-
className: "text-lg text-muted-foreground",
|
|
22
|
-
children: deterministicCodegenBrief.summary
|
|
23
|
-
})
|
|
24
|
-
]
|
|
25
|
-
}),
|
|
26
|
-
/* @__PURE__ */ jsxs("div", {
|
|
27
|
-
className: "card-subtle space-y-4 p-6",
|
|
28
|
-
children: [
|
|
29
|
-
/* @__PURE__ */ jsx("h2", {
|
|
30
|
-
className: "font-bold text-2xl",
|
|
31
|
-
children: "Regeneration Challenges"
|
|
32
|
-
}),
|
|
33
|
-
/* @__PURE__ */ jsx("ul", {
|
|
34
|
-
className: "space-y-2 text-muted-foreground text-sm",
|
|
35
|
-
children: deterministicCodegenBrief.problems.map((problem, index) => /* @__PURE__ */ jsx("li", {
|
|
36
|
-
children: problem
|
|
37
|
-
}, index))
|
|
38
|
-
})
|
|
39
|
-
]
|
|
40
|
-
}),
|
|
41
|
-
/* @__PURE__ */ jsxs("div", {
|
|
42
|
-
className: "card-subtle space-y-4 p-6",
|
|
43
|
-
children: [
|
|
44
|
-
/* @__PURE__ */ jsx("h2", {
|
|
45
|
-
className: "font-bold text-2xl",
|
|
46
|
-
children: "Deterministic Solutions"
|
|
47
|
-
}),
|
|
48
|
-
/* @__PURE__ */ jsx("ul", {
|
|
49
|
-
className: "space-y-2 text-muted-foreground text-sm",
|
|
50
|
-
children: deterministicCodegenBrief.solutions.map((solution, index) => /* @__PURE__ */ jsx("li", {
|
|
51
|
-
children: solution
|
|
52
|
-
}, index))
|
|
53
|
-
})
|
|
54
|
-
]
|
|
55
|
-
}),
|
|
56
|
-
/* @__PURE__ */ jsxs("div", {
|
|
57
|
-
className: "space-y-6",
|
|
58
|
-
children: [
|
|
59
|
-
/* @__PURE__ */ jsxs("div", {
|
|
60
|
-
className: "space-y-3",
|
|
61
|
-
children: [
|
|
62
|
-
/* @__PURE__ */ jsx("h2", {
|
|
63
|
-
className: "font-bold text-2xl",
|
|
64
|
-
children: "Protected Zones"
|
|
65
|
-
}),
|
|
66
|
-
/* @__PURE__ */ jsx("p", {
|
|
67
|
-
className: "text-muted-foreground text-sm",
|
|
68
|
-
children: "Separate generated code from hand-written business logic with clear boundaries."
|
|
69
|
-
}),
|
|
70
|
-
/* @__PURE__ */ jsx(CodeBlock, {
|
|
71
|
-
language: "typescript",
|
|
72
|
-
filename: "src/handlers/user-handlers.ts",
|
|
73
|
-
code: `// Hand-written business logic (protected from regeneration)
|
|
1
|
+
import{deterministicCodegenBrief as A}from"@contractspec/bundle.library/components/docs/intent/intent-pages.docblocks";import{SeoOptimizer as H}from"@contractspec/lib.content-gen/seo";import{CodeBlock as F}from"@contractspec/lib.design-system";import G from"@contractspec/lib.ui-link";import{ChevronRight as I}from"lucide-react";import{jsx as q,jsxs as w}from"react/jsx-runtime";var M=new H().optimize(A);function T(){return w("div",{className:"space-y-8",children:[w("div",{className:"space-y-3",children:[q("h1",{className:"font-bold text-4xl",children:A.title}),q("p",{className:"text-lg text-muted-foreground",children:A.summary})]}),w("div",{className:"card-subtle space-y-4 p-6",children:[q("h2",{className:"font-bold text-2xl",children:"Regeneration Challenges"}),q("ul",{className:"space-y-2 text-muted-foreground text-sm",children:A.problems.map((D,E)=>q("li",{children:D},E))})]}),w("div",{className:"card-subtle space-y-4 p-6",children:[q("h2",{className:"font-bold text-2xl",children:"Deterministic Solutions"}),q("ul",{className:"space-y-2 text-muted-foreground text-sm",children:A.solutions.map((D,E)=>q("li",{children:D},E))})]}),w("div",{className:"space-y-6",children:[w("div",{className:"space-y-3",children:[q("h2",{className:"font-bold text-2xl",children:"Protected Zones"}),q("p",{className:"text-muted-foreground text-sm",children:"Separate generated code from hand-written business logic with clear boundaries."}),q(F,{language:"typescript",filename:"src/handlers/user-handlers.ts",code:`// Hand-written business logic (protected from regeneration)
|
|
74
2
|
export class UserService {
|
|
75
3
|
async createUser(input: CreateUserInput): Promise<CreateUserOutput> {
|
|
76
4
|
// Custom validation and business rules
|
|
@@ -107,78 +35,4 @@ export const createUserHandler = wrapOperationHandler(
|
|
|
107
35
|
operationName: 'createUser',
|
|
108
36
|
errorMapper: mapToStandardErrors,
|
|
109
37
|
}
|
|
110
|
-
);`
|
|
111
|
-
})
|
|
112
|
-
]
|
|
113
|
-
}),
|
|
114
|
-
/* @__PURE__ */ jsxs("div", {
|
|
115
|
-
className: "space-y-3",
|
|
116
|
-
children: [
|
|
117
|
-
/* @__PURE__ */ jsx("h2", {
|
|
118
|
-
className: "font-bold text-2xl",
|
|
119
|
-
children: "Incremental Regeneration"
|
|
120
|
-
}),
|
|
121
|
-
/* @__PURE__ */ jsx("p", {
|
|
122
|
-
className: "text-muted-foreground text-sm",
|
|
123
|
-
children: "Regenerate only what changed while preserving custom logic."
|
|
124
|
-
}),
|
|
125
|
-
/* @__PURE__ */ jsx(CodeBlock, {
|
|
126
|
-
language: "bash",
|
|
127
|
-
filename: "incremental-regen",
|
|
128
|
-
code: `contractspec generate \\
|
|
129
|
-
--incremental \\
|
|
130
|
-
--preserve-zones ./src/handlers/*.ts \\
|
|
131
|
-
--input ./src/contracts/ \\
|
|
132
|
-
--output ./generated/`
|
|
133
|
-
})
|
|
134
|
-
]
|
|
135
|
-
}),
|
|
136
|
-
/* @__PURE__ */ jsxs("div", {
|
|
137
|
-
className: "space-y-3",
|
|
138
|
-
children: [
|
|
139
|
-
/* @__PURE__ */ jsx("h2", {
|
|
140
|
-
className: "font-bold text-2xl",
|
|
141
|
-
children: "Conflict Detection"
|
|
142
|
-
}),
|
|
143
|
-
/* @__PURE__ */ jsx("p", {
|
|
144
|
-
className: "text-muted-foreground text-sm",
|
|
145
|
-
children: "Automatically detect and report conflicts during regeneration."
|
|
146
|
-
}),
|
|
147
|
-
/* @__PURE__ */ jsx(CodeBlock, {
|
|
148
|
-
language: "bash",
|
|
149
|
-
filename: "check-conflicts",
|
|
150
|
-
code: `contractspec generate \\
|
|
151
|
-
--check-conflicts \\
|
|
152
|
-
--report-conflicts ./conflicts.json`
|
|
153
|
-
})
|
|
154
|
-
]
|
|
155
|
-
})
|
|
156
|
-
]
|
|
157
|
-
}),
|
|
158
|
-
/* @__PURE__ */ jsxs("div", {
|
|
159
|
-
className: "flex items-center gap-4 pt-4",
|
|
160
|
-
children: [
|
|
161
|
-
/* @__PURE__ */ jsxs(Link, {
|
|
162
|
-
href: "/docs/guides/generate-docs-clients-schemas",
|
|
163
|
-
className: "btn-primary",
|
|
164
|
-
children: [
|
|
165
|
-
"Client Generation ",
|
|
166
|
-
/* @__PURE__ */ jsx(ChevronRight, {
|
|
167
|
-
size: 16
|
|
168
|
-
})
|
|
169
|
-
]
|
|
170
|
-
}),
|
|
171
|
-
/* @__PURE__ */ jsx(Link, {
|
|
172
|
-
href: "/docs/intent/schema-validation-typescript",
|
|
173
|
-
className: "btn-ghost",
|
|
174
|
-
children: "Type Safety"
|
|
175
|
-
})
|
|
176
|
-
]
|
|
177
|
-
})
|
|
178
|
-
]
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
export {
|
|
182
|
-
metadata,
|
|
183
|
-
DeterministicCodegenPage
|
|
184
|
-
};
|
|
38
|
+
);`})]}),w("div",{className:"space-y-3",children:[q("h2",{className:"font-bold text-2xl",children:"Incremental Regeneration"}),q("p",{className:"text-muted-foreground text-sm",children:"Regenerate only what changed while preserving custom logic."}),q(F,{language:"bash",filename:"incremental-regen",code:"contractspec generate \\\n --incremental \\\n --preserve-zones ./src/handlers/*.ts \\\n --input ./src/contracts/ \\\n --output ./generated/"})]}),w("div",{className:"space-y-3",children:[q("h2",{className:"font-bold text-2xl",children:"Conflict Detection"}),q("p",{className:"text-muted-foreground text-sm",children:"Automatically detect and report conflicts during regeneration."}),q(F,{language:"bash",filename:"check-conflicts",code:"contractspec generate \\\n --check-conflicts \\\n --report-conflicts ./conflicts.json"})]})]}),w("div",{className:"flex items-center gap-4 pt-4",children:[w(G,{href:"/docs/guides/generate-docs-clients-schemas",className:"btn-primary",children:["Client Generation ",q(I,{size:16})]}),q(G,{href:"/docs/intent/schema-validation-typescript",className:"btn-ghost",children:"Type Safety"})]})]})}export{M as metadata,T as DeterministicCodegenPage};
|
|
@@ -1,76 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { generateClientFromSchemaBrief } from "@contractspec/bundle.library/components/docs/intent/intent-pages.docblocks";
|
|
3
|
-
import { SeoOptimizer } from "@contractspec/lib.content-gen/seo";
|
|
4
|
-
import { CodeBlock } from "@contractspec/lib.design-system";
|
|
5
|
-
import Link from "@contractspec/lib.ui-link";
|
|
6
|
-
import { ChevronRight } from "lucide-react";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
var metadata = new SeoOptimizer().optimize(generateClientFromSchemaBrief);
|
|
9
|
-
function GenerateClientFromSchemaPage() {
|
|
10
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
11
|
-
className: "space-y-8",
|
|
12
|
-
children: [
|
|
13
|
-
/* @__PURE__ */ jsxs("div", {
|
|
14
|
-
className: "space-y-3",
|
|
15
|
-
children: [
|
|
16
|
-
/* @__PURE__ */ jsx("h1", {
|
|
17
|
-
className: "font-bold text-4xl",
|
|
18
|
-
children: generateClientFromSchemaBrief.title
|
|
19
|
-
}),
|
|
20
|
-
/* @__PURE__ */ jsx("p", {
|
|
21
|
-
className: "text-lg text-muted-foreground",
|
|
22
|
-
children: generateClientFromSchemaBrief.summary
|
|
23
|
-
})
|
|
24
|
-
]
|
|
25
|
-
}),
|
|
26
|
-
/* @__PURE__ */ jsxs("div", {
|
|
27
|
-
className: "card-subtle space-y-4 p-6",
|
|
28
|
-
children: [
|
|
29
|
-
/* @__PURE__ */ jsx("h2", {
|
|
30
|
-
className: "font-bold text-2xl",
|
|
31
|
-
children: "Client Development Problems"
|
|
32
|
-
}),
|
|
33
|
-
/* @__PURE__ */ jsx("ul", {
|
|
34
|
-
className: "space-y-2 text-muted-foreground text-sm",
|
|
35
|
-
children: generateClientFromSchemaBrief.problems.map((problem, index) => /* @__PURE__ */ jsx("li", {
|
|
36
|
-
children: problem
|
|
37
|
-
}, index))
|
|
38
|
-
})
|
|
39
|
-
]
|
|
40
|
-
}),
|
|
41
|
-
/* @__PURE__ */ jsxs("div", {
|
|
42
|
-
className: "card-subtle space-y-4 p-6",
|
|
43
|
-
children: [
|
|
44
|
-
/* @__PURE__ */ jsx("h2", {
|
|
45
|
-
className: "font-bold text-2xl",
|
|
46
|
-
children: "Automated Solutions"
|
|
47
|
-
}),
|
|
48
|
-
/* @__PURE__ */ jsx("ul", {
|
|
49
|
-
className: "space-y-2 text-muted-foreground text-sm",
|
|
50
|
-
children: generateClientFromSchemaBrief.solutions.map((solution, index) => /* @__PURE__ */ jsx("li", {
|
|
51
|
-
children: solution
|
|
52
|
-
}, index))
|
|
53
|
-
})
|
|
54
|
-
]
|
|
55
|
-
}),
|
|
56
|
-
/* @__PURE__ */ jsxs("div", {
|
|
57
|
-
className: "space-y-6",
|
|
58
|
-
children: [
|
|
59
|
-
/* @__PURE__ */ jsxs("div", {
|
|
60
|
-
className: "space-y-3",
|
|
61
|
-
children: [
|
|
62
|
-
/* @__PURE__ */ jsx("h2", {
|
|
63
|
-
className: "font-bold text-2xl",
|
|
64
|
-
children: "Contract Definition"
|
|
65
|
-
}),
|
|
66
|
-
/* @__PURE__ */ jsx("p", {
|
|
67
|
-
className: "text-muted-foreground text-sm",
|
|
68
|
-
children: "Define your API contract once, generate clients for any language."
|
|
69
|
-
}),
|
|
70
|
-
/* @__PURE__ */ jsx(CodeBlock, {
|
|
71
|
-
language: "typescript",
|
|
72
|
-
filename: "src/contracts/api.contract.ts",
|
|
73
|
-
code: `import { defineContract } from '@contractspec/lib.contracts-spec';
|
|
1
|
+
import{generateClientFromSchemaBrief as D}from"@contractspec/bundle.library/components/docs/intent/intent-pages.docblocks";import{SeoOptimizer as I}from"@contractspec/lib.content-gen/seo";import{CodeBlock as A}from"@contractspec/lib.design-system";import H from"@contractspec/lib.ui-link";import{ChevronRight as J}from"lucide-react";import{jsx as q,jsxs as w}from"react/jsx-runtime";var T=new I().optimize(D);function U(){return w("div",{className:"space-y-8",children:[w("div",{className:"space-y-3",children:[q("h1",{className:"font-bold text-4xl",children:D.title}),q("p",{className:"text-lg text-muted-foreground",children:D.summary})]}),w("div",{className:"card-subtle space-y-4 p-6",children:[q("h2",{className:"font-bold text-2xl",children:"Client Development Problems"}),q("ul",{className:"space-y-2 text-muted-foreground text-sm",children:D.problems.map((E,G)=>q("li",{children:E},G))})]}),w("div",{className:"card-subtle space-y-4 p-6",children:[q("h2",{className:"font-bold text-2xl",children:"Automated Solutions"}),q("ul",{className:"space-y-2 text-muted-foreground text-sm",children:D.solutions.map((E,G)=>q("li",{children:E},G))})]}),w("div",{className:"space-y-6",children:[w("div",{className:"space-y-3",children:[q("h2",{className:"font-bold text-2xl",children:"Contract Definition"}),q("p",{className:"text-muted-foreground text-sm",children:"Define your API contract once, generate clients for any language."}),q(A,{language:"typescript",filename:"src/contracts/api.contract.ts",code:`import { defineContract } from '@contractspec/lib.contracts-spec';
|
|
74
2
|
import { SchemaModel, ScalarTypeEnum } from '@contractspec/lib.schema';
|
|
75
3
|
|
|
76
4
|
export const ApiContract = defineContract({
|
|
@@ -140,25 +68,7 @@ export const ApiContract = defineContract({
|
|
|
140
68
|
description: 'User management API with authentication',
|
|
141
69
|
tags: ['users', 'authentication'],
|
|
142
70
|
},
|
|
143
|
-
});`
|
|
144
|
-
})
|
|
145
|
-
]
|
|
146
|
-
}),
|
|
147
|
-
/* @__PURE__ */ jsxs("div", {
|
|
148
|
-
className: "space-y-3",
|
|
149
|
-
children: [
|
|
150
|
-
/* @__PURE__ */ jsx("h2", {
|
|
151
|
-
className: "font-bold text-2xl",
|
|
152
|
-
children: "Generate Multiple Clients"
|
|
153
|
-
}),
|
|
154
|
-
/* @__PURE__ */ jsx("p", {
|
|
155
|
-
className: "text-muted-foreground text-sm",
|
|
156
|
-
children: "Generate type-safe clients for any language from the same contract."
|
|
157
|
-
}),
|
|
158
|
-
/* @__PURE__ */ jsx(CodeBlock, {
|
|
159
|
-
language: "bash",
|
|
160
|
-
filename: "generate-clients",
|
|
161
|
-
code: `# Generate all supported language clients
|
|
71
|
+
});`})]}),w("div",{className:"space-y-3",children:[q("h2",{className:"font-bold text-2xl",children:"Generate Multiple Clients"}),q("p",{className:"text-muted-foreground text-sm",children:"Generate type-safe clients for any language from the same contract."}),q(A,{language:"bash",filename:"generate-clients",code:`# Generate all supported language clients
|
|
162
72
|
contractspec generate clients \\
|
|
163
73
|
--contract ./src/contracts/api.contract.ts \\
|
|
164
74
|
--output ./generated/clients \\
|
|
@@ -175,35 +85,7 @@ contractspec generate clients \\
|
|
|
175
85
|
# --with-types: Include TypeScript definitions
|
|
176
86
|
# --with-tests: Generate client test suites
|
|
177
87
|
# --with-docs: Include client documentation
|
|
178
|
-
# --framework: Use specific HTTP client framework`
|
|
179
|
-
})
|
|
180
|
-
]
|
|
181
|
-
}),
|
|
182
|
-
/* @__PURE__ */ jsxs("div", {
|
|
183
|
-
className: "space-y-3",
|
|
184
|
-
children: [
|
|
185
|
-
/* @__PURE__ */ jsx("h2", {
|
|
186
|
-
className: "font-bold text-2xl",
|
|
187
|
-
children: "Generated Client Examples"
|
|
188
|
-
}),
|
|
189
|
-
/* @__PURE__ */ jsx("p", {
|
|
190
|
-
className: "text-muted-foreground text-sm",
|
|
191
|
-
children: "Each generated client is fully type-safe and idiomatic."
|
|
192
|
-
}),
|
|
193
|
-
/* @__PURE__ */ jsxs("div", {
|
|
194
|
-
className: "space-y-4",
|
|
195
|
-
children: [
|
|
196
|
-
/* @__PURE__ */ jsxs("div", {
|
|
197
|
-
className: "card-subtle p-4",
|
|
198
|
-
children: [
|
|
199
|
-
/* @__PURE__ */ jsx("h4", {
|
|
200
|
-
className: "font-semibold text-lg",
|
|
201
|
-
children: "TypeScript Client"
|
|
202
|
-
}),
|
|
203
|
-
/* @__PURE__ */ jsx(CodeBlock, {
|
|
204
|
-
language: "typescript",
|
|
205
|
-
filename: "generated/clients/typescript/index.ts",
|
|
206
|
-
code: `import { MyAPIClient } from './client';
|
|
88
|
+
# --framework: Use specific HTTP client framework`})]}),w("div",{className:"space-y-3",children:[q("h2",{className:"font-bold text-2xl",children:"Generated Client Examples"}),q("p",{className:"text-muted-foreground text-sm",children:"Each generated client is fully type-safe and idiomatic."}),w("div",{className:"space-y-4",children:[w("div",{className:"card-subtle p-4",children:[q("h4",{className:"font-semibold text-lg",children:"TypeScript Client"}),q(A,{language:"typescript",filename:"generated/clients/typescript/index.ts",code:`import { MyAPIClient } from './client';
|
|
207
89
|
|
|
208
90
|
const client = new MyAPIClient({
|
|
209
91
|
baseUrl: 'https://api.example.com',
|
|
@@ -223,21 +105,7 @@ const newUser = await client.createUser({
|
|
|
223
105
|
|
|
224
106
|
// Full type inference
|
|
225
107
|
// users: GetUsersResponse
|
|
226
|
-
// newUser: CreateUserResponse`
|
|
227
|
-
})
|
|
228
|
-
]
|
|
229
|
-
}),
|
|
230
|
-
/* @__PURE__ */ jsxs("div", {
|
|
231
|
-
className: "card-subtle p-4",
|
|
232
|
-
children: [
|
|
233
|
-
/* @__PURE__ */ jsx("h4", {
|
|
234
|
-
className: "font-semibold text-lg",
|
|
235
|
-
children: "Python Client"
|
|
236
|
-
}),
|
|
237
|
-
/* @__PURE__ */ jsx(CodeBlock, {
|
|
238
|
-
language: "python",
|
|
239
|
-
filename: "generated/clients/python/index.py",
|
|
240
|
-
code: `from myapi_client import MyAPIClient
|
|
108
|
+
// newUser: CreateUserResponse`})]}),w("div",{className:"card-subtle p-4",children:[q("h4",{className:"font-semibold text-lg",children:"Python Client"}),q(A,{language:"python",filename:"generated/clients/python/index.py",code:`from myapi_client import MyAPIClient
|
|
241
109
|
|
|
242
110
|
client = MyAPIClient(
|
|
243
111
|
base_url='https://api.example.com',
|
|
@@ -257,21 +125,7 @@ new_user = await client.create_user(
|
|
|
257
125
|
|
|
258
126
|
# Full type hints
|
|
259
127
|
# users: GetUsersResponse
|
|
260
|
-
# new_user: CreateUserResponse`
|
|
261
|
-
})
|
|
262
|
-
]
|
|
263
|
-
}),
|
|
264
|
-
/* @__PURE__ */ jsxs("div", {
|
|
265
|
-
className: "card-subtle p-4",
|
|
266
|
-
children: [
|
|
267
|
-
/* @__PURE__ */ jsx("h4", {
|
|
268
|
-
className: "font-semibold text-lg",
|
|
269
|
-
children: "Go Client"
|
|
270
|
-
}),
|
|
271
|
-
/* @__PURE__ */ jsx(CodeBlock, {
|
|
272
|
-
language: "go",
|
|
273
|
-
filename: "generated/clients/go/client.go",
|
|
274
|
-
code: `package main
|
|
128
|
+
# new_user: CreateUserResponse`})]}),w("div",{className:"card-subtle p-4",children:[q("h4",{className:"font-semibold text-lg",children:"Go Client"}),q(A,{language:"go",filename:"generated/clients/go/client.go",code:`package main
|
|
275
129
|
|
|
276
130
|
import (
|
|
277
131
|
"context"
|
|
@@ -298,29 +152,7 @@ func main() {
|
|
|
298
152
|
// Full type checking at compile time
|
|
299
153
|
// users: *GetUsersResponse
|
|
300
154
|
// newUser: *CreateUserResponse
|
|
301
|
-
}`
|
|
302
|
-
})
|
|
303
|
-
]
|
|
304
|
-
})
|
|
305
|
-
]
|
|
306
|
-
})
|
|
307
|
-
]
|
|
308
|
-
}),
|
|
309
|
-
/* @__PURE__ */ jsxs("div", {
|
|
310
|
-
className: "space-y-3",
|
|
311
|
-
children: [
|
|
312
|
-
/* @__PURE__ */ jsx("h2", {
|
|
313
|
-
className: "font-bold text-2xl",
|
|
314
|
-
children: "Advanced Features"
|
|
315
|
-
}),
|
|
316
|
-
/* @__PURE__ */ jsx("p", {
|
|
317
|
-
className: "text-muted-foreground text-sm",
|
|
318
|
-
children: "Generated clients include enterprise-grade features out of the box."
|
|
319
|
-
}),
|
|
320
|
-
/* @__PURE__ */ jsx(CodeBlock, {
|
|
321
|
-
language: "typescript",
|
|
322
|
-
filename: "client-features.ts",
|
|
323
|
-
code: `// Advanced client features
|
|
155
|
+
}`})]})]})]}),w("div",{className:"space-y-3",children:[q("h2",{className:"font-bold text-2xl",children:"Advanced Features"}),q("p",{className:"text-muted-foreground text-sm",children:"Generated clients include enterprise-grade features out of the box."}),q(A,{language:"typescript",filename:"client-features.ts",code:`// Advanced client features
|
|
324
156
|
const client = new MyAPIClient({
|
|
325
157
|
baseUrl: 'https://api.example.com',
|
|
326
158
|
apiKey: 'your-api-key',
|
|
@@ -363,36 +195,4 @@ const user2 = client.getUser({ id: '123' }); // Uses cached result
|
|
|
363
195
|
// Request cancellation
|
|
364
196
|
const controller = new AbortController();
|
|
365
197
|
const promise = client.getUsers({ page: 1, signal: controller.signal });
|
|
366
|
-
controller.abort(); // Cancels the request`
|
|
367
|
-
})
|
|
368
|
-
]
|
|
369
|
-
})
|
|
370
|
-
]
|
|
371
|
-
}),
|
|
372
|
-
/* @__PURE__ */ jsxs("div", {
|
|
373
|
-
className: "flex items-center gap-4 pt-4",
|
|
374
|
-
children: [
|
|
375
|
-
/* @__PURE__ */ jsxs(Link, {
|
|
376
|
-
href: "/docs/guides/generate-docs-clients-schemas",
|
|
377
|
-
className: "btn-primary",
|
|
378
|
-
children: [
|
|
379
|
-
"Client Generation Guide ",
|
|
380
|
-
/* @__PURE__ */ jsx(ChevronRight, {
|
|
381
|
-
size: 16
|
|
382
|
-
})
|
|
383
|
-
]
|
|
384
|
-
}),
|
|
385
|
-
/* @__PURE__ */ jsx(Link, {
|
|
386
|
-
href: "/docs/intent/contract-first-api",
|
|
387
|
-
className: "btn-ghost",
|
|
388
|
-
children: "Contract-first API"
|
|
389
|
-
})
|
|
390
|
-
]
|
|
391
|
-
})
|
|
392
|
-
]
|
|
393
|
-
});
|
|
394
|
-
}
|
|
395
|
-
export {
|
|
396
|
-
metadata,
|
|
397
|
-
GenerateClientFromSchemaPage
|
|
398
|
-
};
|
|
198
|
+
controller.abort(); // Cancels the request`})]})]}),w("div",{className:"flex items-center gap-4 pt-4",children:[w(H,{href:"/docs/guides/generate-docs-clients-schemas",className:"btn-primary",children:["Client Generation Guide ",q(J,{size:16})]}),q(H,{href:"/docs/intent/contract-first-api",className:"btn-ghost",children:"Contract-first API"})]})]})}export{T as metadata,U as GenerateClientFromSchemaPage};
|