@contractspec/bundle.library 3.8.10 → 3.8.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +606 -594
- package/CHANGELOG.md +37 -0
- package/dist/application/context-storage/index.js +1 -28
- package/dist/application/index.js +13 -2133
- package/dist/application/mcp/cliMcp.js +4 -452
- package/dist/application/mcp/common.js +1 -193
- package/dist/application/mcp/contractsMcp.js +2 -549
- package/dist/application/mcp/contractsMcpResources.js +2 -123
- package/dist/application/mcp/contractsMcpTools.js +1 -199
- package/dist/application/mcp/docsMcp.catalog.js +3 -381
- package/dist/application/mcp/docsMcp.data.js +1 -147
- package/dist/application/mcp/docsMcp.js +6 -1039
- package/dist/application/mcp/docsMcp.prompts.js +6 -521
- package/dist/application/mcp/docsMcp.reference.js +3 -235
- package/dist/application/mcp/docsMcp.resources.js +3 -519
- package/dist/application/mcp/docsMcp.tools.js +3 -518
- package/dist/application/mcp/index.js +13 -2106
- package/dist/application/mcp/internalMcp.js +2 -410
- package/dist/application/mcp/normalizeMcpRequest.js +1 -21
- package/dist/application/mcp/providerRankingMcp.js +1 -530
- package/dist/bundles/LibraryBundle.js +1 -138
- package/dist/bundles/index.js +1 -138
- package/dist/components/docs/DocsIndexPage.js +2 -912
- package/dist/components/docs/advanced/AdvancedMCPPage.js +4 -271
- package/dist/components/docs/advanced/AdvancedOverlayEditorPage.js +1 -107
- package/dist/components/docs/advanced/AdvancedRenderersPage.js +2 -118
- package/dist/components/docs/advanced/AdvancedSpecExperimentsPage.js +4 -92
- package/dist/components/docs/advanced/AdvancedTelemetryPage.js +2 -373
- package/dist/components/docs/advanced/AdvancedWorkflowMonitoringPage.js +2 -99
- package/dist/components/docs/advanced/index.js +10 -1055
- package/dist/components/docs/architecture/ArchitectureAppConfigPage.js +6 -243
- package/dist/components/docs/architecture/ArchitectureControlPlanePage.js +3 -160
- package/dist/components/docs/architecture/ArchitectureIntegrationBindingPage.js +7 -259
- package/dist/components/docs/architecture/ArchitectureKnowledgeBindingPage.js +6 -374
- package/dist/components/docs/architecture/ArchitectureMultiTenancyPage.js +2 -166
- package/dist/components/docs/architecture/ArchitectureOverviewPage.js +1 -143
- package/dist/components/docs/architecture/index.js +20 -1340
- package/dist/components/docs/comparison/ComparisonAutomationPlatformsPage.js +1 -245
- package/dist/components/docs/comparison/ComparisonEnterprisePlatformsPage.js +1 -230
- package/dist/components/docs/comparison/ComparisonInternalToolBuildersPage.js +1 -245
- package/dist/components/docs/comparison/ComparisonOverviewPage.js +1 -202
- package/dist/components/docs/comparison/ComparisonWindmillPage.js +1 -254
- package/dist/components/docs/comparison/ComparisonWorkflowEnginesPage.js +1 -339
- package/dist/components/docs/comparison/index.js +1 -1510
- package/dist/components/docs/docsManifest.js +1 -611
- package/dist/components/docs/docsManifest.test.d.ts +1 -0
- package/dist/components/docs/ecosystem/IntegrationsPage.js +2 -103
- package/dist/components/docs/ecosystem/PluginsPage.js +13 -179
- package/dist/components/docs/ecosystem/RegistryPage.js +7 -100
- package/dist/components/docs/ecosystem/TemplatesPage.js +3 -141
- package/dist/components/docs/ecosystem/ecosystem.docblocks.js +2 -48
- package/dist/components/docs/ecosystem/index.js +23 -569
- package/dist/components/docs/examples/DocsExamplesPage.js +4 -124
- package/dist/components/docs/examples/ExampleShowcasePage.js +4 -244
- package/dist/components/docs/examples/exampleShowcaseData.js +4 -39
- package/dist/components/docs/examples/index.js +4 -330
- package/dist/components/docs/generated/docs-index.generated.js +1 -5
- package/dist/components/docs/generated/index.js +1 -74
- package/dist/components/docs/generated/loader.js +1 -74
- package/dist/components/docs/getting-started/CLIPage.js +4 -271
- package/dist/components/docs/getting-started/CompatibilityPage.js +1 -173
- package/dist/components/docs/getting-started/DataViewTutorialPage.js +4 -134
- package/dist/components/docs/getting-started/DeveloperToolsPage.js +1 -194
- package/dist/components/docs/getting-started/HelloWorldPage.js +5 -183
- package/dist/components/docs/getting-started/InstallationPage.js +3 -154
- package/dist/components/docs/getting-started/StartHerePage.js +2 -129
- package/dist/components/docs/getting-started/TroubleshootingPage.js +2 -168
- package/dist/components/docs/getting-started/VSCodeExtensionPage.js +1 -432
- package/dist/components/docs/getting-started/getting-started.docblocks.js +4 -41
- package/dist/components/docs/getting-started/index.js +18 -1869
- package/dist/components/docs/guides/GuideCIDiffGatingPage.js +2 -196
- package/dist/components/docs/guides/GuideConnectInRepoPage.d.ts +1 -0
- package/dist/components/docs/guides/GuideConnectInRepoPage.js +44 -0
- package/dist/components/docs/guides/GuideContractTypesPage.js +6 -541
- package/dist/components/docs/guides/GuideDocsPipelinePage.js +3 -207
- package/dist/components/docs/guides/GuideFirstModuleBundlePage.d.ts +1 -0
- package/dist/components/docs/guides/GuideFirstModuleBundlePage.js +76 -0
- package/dist/components/docs/guides/GuideGenerateDocsClientsSchemasPage.js +2 -209
- package/dist/components/docs/guides/GuideHostBuilderWorkbenchPage.d.ts +1 -0
- package/dist/components/docs/guides/GuideHostBuilderWorkbenchPage.js +70 -0
- package/dist/components/docs/guides/GuideImportExistingCodebasesPage.js +8 -754
- package/dist/components/docs/guides/GuideNextjsOneEndpointPage.js +6 -268
- package/dist/components/docs/guides/GuideSpecValidationTypingPage.js +4 -196
- package/dist/components/docs/guides/GuidesIndexPage.js +2 -169
- package/dist/components/docs/guides/guides.docblocks.js +11 -75
- package/dist/components/docs/guides/index.d.ts +3 -0
- package/dist/components/docs/guides/index.js +213 -2428
- package/dist/components/docs/index.js +542 -24310
- package/dist/components/docs/integrations/IntegrationsCircuitBreakersPage.js +2 -42
- package/dist/components/docs/integrations/IntegrationsElevenLabsPage.js +3 -105
- package/dist/components/docs/integrations/IntegrationsGithubPage.js +3 -142
- package/dist/components/docs/integrations/IntegrationsGmailPage.js +3 -109
- package/dist/components/docs/integrations/IntegrationsGoogleCalendarPage.js +3 -79
- package/dist/components/docs/integrations/IntegrationsHealthRoutingPage.js +3 -146
- package/dist/components/docs/integrations/IntegrationsMistralPage.js +5 -150
- package/dist/components/docs/integrations/IntegrationsOpenAIPage.js +5 -140
- package/dist/components/docs/integrations/IntegrationsOverviewPage.js +1 -160
- package/dist/components/docs/integrations/IntegrationsPostmarkPage.js +4 -218
- package/dist/components/docs/integrations/IntegrationsPowensPage.js +4 -300
- package/dist/components/docs/integrations/IntegrationsQdrantPage.js +5 -111
- package/dist/components/docs/integrations/IntegrationsResendPage.js +3 -102
- package/dist/components/docs/integrations/IntegrationsS3Page.js +4 -124
- package/dist/components/docs/integrations/IntegrationsSlackPage.js +3 -144
- package/dist/components/docs/integrations/IntegrationsSpecModelPage.js +7 -290
- package/dist/components/docs/integrations/IntegrationsStripePage.js +6 -327
- package/dist/components/docs/integrations/IntegrationsTwilioPage.js +3 -128
- package/dist/components/docs/integrations/IntegrationsWhatsappMetaPage.js +2 -146
- package/dist/components/docs/integrations/IntegrationsWhatsappTwilioPage.js +2 -156
- package/dist/components/docs/integrations/index.js +52 -3100
- package/dist/components/docs/intent/ContractFirstApiPage.js +2 -126
- package/dist/components/docs/intent/DeterministicCodegenPage.js +2 -148
- package/dist/components/docs/intent/GenerateClientFromSchemaPage.js +7 -207
- package/dist/components/docs/intent/OpenapiAlternativePage.js +3 -201
- package/dist/components/docs/intent/SchemaValidationTypescriptPage.js +4 -144
- package/dist/components/docs/intent/SpecDrivenDevelopmentPage.js +2 -126
- package/dist/components/docs/intent/index.js +15 -1135
- package/dist/components/docs/intent/intent-pages.docblocks.js +1 -201
- package/dist/components/docs/knowledge/KnowledgeCategoriesPage.js +6 -750
- package/dist/components/docs/knowledge/KnowledgeExamplesPage.js +4 -175
- package/dist/components/docs/knowledge/KnowledgeOverviewPage.js +1 -116
- package/dist/components/docs/knowledge/KnowledgeSourcesPage.js +8 -391
- package/dist/components/docs/knowledge/KnowledgeSpacesPage.js +6 -302
- package/dist/components/docs/knowledge/index.js +21 -1730
- package/dist/components/docs/libraries/LibrariesAccessibilityPage.js +3 -198
- package/dist/components/docs/libraries/LibrariesAiAgentPage.js +3 -141
- package/dist/components/docs/libraries/LibrariesAnalyticsPage.js +4 -80
- package/dist/components/docs/libraries/LibrariesContentGenPage.js +2 -100
- package/dist/components/docs/libraries/LibrariesContractsPage.js +2 -284
- package/dist/components/docs/libraries/LibrariesCostTrackingPage.js +3 -112
- package/dist/components/docs/libraries/LibrariesDataBackendPage.js +2 -166
- package/dist/components/docs/libraries/LibrariesDataViewsPage.js +3 -186
- package/dist/components/docs/libraries/LibrariesDesignSystemPage.js +4 -279
- package/dist/components/docs/libraries/LibrariesEvolutionPage.js +4 -127
- package/dist/components/docs/libraries/LibrariesGraphQLPage.js +2 -173
- package/dist/components/docs/libraries/LibrariesGrowthPage.js +3 -88
- package/dist/components/docs/libraries/LibrariesMultiTenancyPage.js +3 -108
- package/dist/components/docs/libraries/LibrariesObservabilityPage.js +5 -130
- package/dist/components/docs/libraries/LibrariesOverlayEnginePage.js +4 -110
- package/dist/components/docs/libraries/LibrariesOverviewPage.js +1 -170
- package/dist/components/docs/libraries/LibrariesPersonalizationPage.js +4 -114
- package/dist/components/docs/libraries/LibrariesProgressiveDeliveryPage.js +3 -132
- package/dist/components/docs/libraries/LibrariesResiliencePage.js +4 -120
- package/dist/components/docs/libraries/LibrariesRuntimePage.js +2 -200
- package/dist/components/docs/libraries/LibrariesSLOPage.js +3 -116
- package/dist/components/docs/libraries/LibrariesSchemaPage.js +3 -273
- package/dist/components/docs/libraries/LibrariesSupportBotPage.js +3 -134
- package/dist/components/docs/libraries/LibrariesTestingPage.js +3 -133
- package/dist/components/docs/libraries/LibrariesUIKitPage.js +2 -230
- package/dist/components/docs/libraries/LibrariesWorkflowComposerPage.js +3 -88
- package/dist/components/docs/libraries/LibrariesWorkflowsPage.js +2 -181
- package/dist/components/docs/libraries/index.js +54 -4147
- package/dist/components/docs/manifesto/ManifestoPage.js +1 -86
- package/dist/components/docs/ops/AutoEvolutionOpsPage.js +2 -132
- package/dist/components/docs/ops/DistributedTracingOpsPage.js +2 -71
- package/dist/components/docs/ops/index.js +3 -202
- package/dist/components/docs/ops/ops-lifecycle.docblocks.js +3 -38
- package/dist/components/docs/ops/ops-runbooks-a.docblocks.js +3 -94
- package/dist/components/docs/ops/ops-runbooks-b.docblocks.js +3 -76
- package/dist/components/docs/ops/ops-slo-tenant.docblocks.js +3 -76
- package/dist/components/docs/ops/ops-top.docs.js +2 -17
- package/dist/components/docs/ops/ops.docs.js +10 -302
- package/dist/components/docs/product/product.docblocks.js +5 -72
- package/dist/components/docs/reference/DocsMarkdownContent.js +2 -196
- package/dist/components/docs/reference/DocsReferenceContent.js +3 -256
- package/dist/components/docs/reference/DocsReferenceIndexClient.js +2 -127
- package/dist/components/docs/reference/DocsReferenceIndexPage.js +2 -206
- package/dist/components/docs/reference/DocsReferencePage.js +3 -265
- package/dist/components/docs/reference/docsMarkdownParser.js +2 -92
- package/dist/components/docs/reference/index.js +4 -470
- package/dist/components/docs/safety/SafetyAuditingPage.js +2 -350
- package/dist/components/docs/safety/SafetyMigrationsPage.js +2 -359
- package/dist/components/docs/safety/SafetyOverviewPage.js +1 -101
- package/dist/components/docs/safety/SafetyPDPPage.js +2 -301
- package/dist/components/docs/safety/SafetySecurityTrustPage.js +1 -206
- package/dist/components/docs/safety/SafetySigningPage.js +3 -90
- package/dist/components/docs/safety/SafetyTenantIsolationPage.js +2 -79
- package/dist/components/docs/safety/index.js +7 -1480
- package/dist/components/docs/shared/StudioPrompt.js +1 -31
- package/dist/components/docs/specs/SpecsBuilderControlPlanePage.d.ts +1 -0
- package/dist/components/docs/specs/SpecsBuilderControlPlanePage.js +34 -0
- package/dist/components/docs/specs/SpecsCapabilitiesPage.js +2 -158
- package/dist/components/docs/specs/SpecsConnectPage.d.ts +1 -0
- package/dist/components/docs/specs/SpecsConnectPage.js +8 -0
- package/dist/components/docs/specs/SpecsDataViewsPage.js +2 -260
- package/dist/components/docs/specs/SpecsModuleBundlesPage.d.ts +1 -0
- package/dist/components/docs/specs/SpecsModuleBundlesPage.js +67 -0
- package/dist/components/docs/specs/SpecsOverlaysPage.js +2 -372
- package/dist/components/docs/specs/SpecsOverviewPage.js +1 -186
- package/dist/components/docs/specs/SpecsPolicyPage.js +3 -420
- package/dist/components/docs/specs/SpecsWorkflowsPage.js +2 -325
- package/dist/components/docs/specs/index.d.ts +3 -0
- package/dist/components/docs/specs/index.js +109 -1715
- package/dist/components/docs/studio/StudioBYOKPage.js +1 -26
- package/dist/components/docs/studio/StudioDeploymentsPage.js +1 -26
- package/dist/components/docs/studio/StudioGettingStartedPage.js +1 -26
- package/dist/components/docs/studio/StudioIntegrationsPage.js +1 -26
- package/dist/components/docs/studio/StudioOverviewPage.js +1 -157
- package/dist/components/docs/studio/StudioVisualBuilderPage.js +1 -26
- package/dist/components/docs/studio/index.js +1 -282
- package/dist/components/docs/tech/contracts/tech-docs.docblocks.js +2 -19
- package/dist/components/integrations/index.js +2 -600
- package/dist/components/integrations/molecules/IntegrationCard.js +1 -100
- package/dist/components/integrations/organisms/IntegrationMarketplace.js +1 -214
- package/dist/components/integrations/organisms/IntegrationSettings.js +2 -284
- package/dist/components/integrations/organisms/KnowledgeSourceList.js +1 -103
- package/dist/components/legal/PrivacyTemplate.js +1 -1025
- package/dist/components/legal/TermsTemplate.js +1 -941
- package/dist/components/legal/index.js +1 -1963
- package/dist/components/shared/FeatureGateNotice.js +1 -38
- package/dist/components/shared/index.js +1 -38
- package/dist/components/shell/WorkspaceHeader.js +1 -100
- package/dist/components/shell/WorkspaceProjectShellLayout.js +1 -222
- package/dist/components/shell/WorkspaceShellRenderer.js +1 -228
- package/dist/components/shell/WorkspaceSidebar.js +1 -68
- package/dist/components/shell/index.js +1 -287
- package/dist/components/templates/engine/index.js +1 -39
- package/dist/components/templates/index.js +11 -965
- package/dist/components/templates/messaging/ConversationList.js +2 -83
- package/dist/components/templates/messaging/MessageComposer.js +4 -150
- package/dist/components/templates/messaging/MessageThread.js +3 -83
- package/dist/components/templates/messaging/MessagingWorkspace.js +5 -265
- package/dist/components/templates/messaging/index.js +5 -269
- package/dist/components/templates/recipes/LanguageSwitcher.js +1 -16
- package/dist/components/templates/recipes/RecipeCard.js +1 -80
- package/dist/components/templates/recipes/RecipeDetail.js +1 -74
- package/dist/components/templates/recipes/RecipeList.js +3 -245
- package/dist/components/templates/recipes/index.js +3 -248
- package/dist/components/templates/todos/FilterBar.js +1 -107
- package/dist/components/templates/todos/TaskForm.js +2 -158
- package/dist/components/templates/todos/TaskItem.js +1 -77
- package/dist/components/templates/todos/TaskList.js +5 -449
- package/dist/components/templates/todos/index.js +5 -452
- package/dist/config/contractspec-blueprint.js +1 -123
- package/dist/config/contractspec-branding.js +1 -44
- package/dist/config/contractspec-routes.js +1 -24
- package/dist/config/index.js +1 -126
- package/dist/features/contracts-registry.js +1 -178
- package/dist/features/docs/docs.contracts.js +1 -17
- package/dist/features/docs/index.js +1 -17
- package/dist/features/docs.feature.js +1 -33
- package/dist/features/index.js +1 -315
- package/dist/features/mcp.feature.js +1 -30
- package/dist/features/presentations.feature.js +1 -33
- package/dist/features/registry.js +1 -116
- package/dist/index.js +556 -28593
- package/dist/infrastructure/elysia/index.js +1 -35
- package/dist/infrastructure/elysia/logger.js +1 -35
- package/dist/infrastructure/index.js +1 -35
- package/dist/libs/email/client.js +1 -114
- package/dist/libs/email/contact.js +12 -165
- package/dist/libs/email/newsletter.js +6 -167
- package/dist/libs/email/types.js +0 -2
- package/dist/libs/email/utils.js +2 -8
- package/dist/libs/email/waitlist-application.js +28 -209
- package/dist/libs/email/waitlist.js +6 -167
- package/dist/libs/email.js +46 -363
- package/dist/libs/posthog/client.js +1 -63
- package/dist/libs/posthog/native.js +1 -23
- package/dist/libs/posthog/server.js +1 -13
- package/dist/libs/pricing-examples.js +1 -18
- package/dist/node/application/context-storage/index.js +1 -28
- package/dist/node/application/index.js +13 -2133
- package/dist/node/application/mcp/cliMcp.js +4 -452
- package/dist/node/application/mcp/common.js +1 -193
- package/dist/node/application/mcp/contractsMcp.js +2 -549
- package/dist/node/application/mcp/contractsMcpResources.js +2 -123
- package/dist/node/application/mcp/contractsMcpTools.js +1 -199
- package/dist/node/application/mcp/docsMcp.catalog.js +3 -381
- package/dist/node/application/mcp/docsMcp.data.js +1 -147
- package/dist/node/application/mcp/docsMcp.js +6 -1039
- package/dist/node/application/mcp/docsMcp.prompts.js +6 -521
- package/dist/node/application/mcp/docsMcp.reference.js +3 -235
- package/dist/node/application/mcp/docsMcp.resources.js +3 -519
- package/dist/node/application/mcp/docsMcp.tools.js +3 -518
- package/dist/node/application/mcp/index.js +13 -2106
- package/dist/node/application/mcp/internalMcp.js +2 -410
- package/dist/node/application/mcp/normalizeMcpRequest.js +1 -21
- package/dist/node/application/mcp/providerRankingMcp.js +1 -530
- package/dist/node/bundles/LibraryBundle.js +1 -138
- package/dist/node/bundles/index.js +1 -138
- package/dist/node/components/docs/DocsIndexPage.js +2 -912
- package/dist/node/components/docs/advanced/AdvancedMCPPage.js +4 -271
- package/dist/node/components/docs/advanced/AdvancedOverlayEditorPage.js +1 -107
- package/dist/node/components/docs/advanced/AdvancedRenderersPage.js +2 -118
- package/dist/node/components/docs/advanced/AdvancedSpecExperimentsPage.js +4 -92
- package/dist/node/components/docs/advanced/AdvancedTelemetryPage.js +2 -373
- package/dist/node/components/docs/advanced/AdvancedWorkflowMonitoringPage.js +2 -99
- package/dist/node/components/docs/advanced/index.js +10 -1055
- package/dist/node/components/docs/architecture/ArchitectureAppConfigPage.js +6 -243
- package/dist/node/components/docs/architecture/ArchitectureControlPlanePage.js +3 -160
- package/dist/node/components/docs/architecture/ArchitectureIntegrationBindingPage.js +7 -259
- package/dist/node/components/docs/architecture/ArchitectureKnowledgeBindingPage.js +6 -374
- package/dist/node/components/docs/architecture/ArchitectureMultiTenancyPage.js +2 -166
- package/dist/node/components/docs/architecture/ArchitectureOverviewPage.js +1 -143
- package/dist/node/components/docs/architecture/index.js +20 -1340
- package/dist/node/components/docs/comparison/ComparisonAutomationPlatformsPage.js +1 -245
- package/dist/node/components/docs/comparison/ComparisonEnterprisePlatformsPage.js +1 -230
- package/dist/node/components/docs/comparison/ComparisonInternalToolBuildersPage.js +1 -245
- package/dist/node/components/docs/comparison/ComparisonOverviewPage.js +1 -202
- package/dist/node/components/docs/comparison/ComparisonWindmillPage.js +1 -254
- package/dist/node/components/docs/comparison/ComparisonWorkflowEnginesPage.js +1 -339
- package/dist/node/components/docs/comparison/index.js +1 -1510
- package/dist/node/components/docs/docsManifest.js +1 -611
- package/dist/node/components/docs/ecosystem/IntegrationsPage.js +2 -103
- package/dist/node/components/docs/ecosystem/PluginsPage.js +13 -179
- package/dist/node/components/docs/ecosystem/RegistryPage.js +7 -100
- package/dist/node/components/docs/ecosystem/TemplatesPage.js +3 -141
- package/dist/node/components/docs/ecosystem/ecosystem.docblocks.js +2 -48
- package/dist/node/components/docs/ecosystem/index.js +23 -569
- package/dist/node/components/docs/examples/DocsExamplesPage.js +4 -124
- package/dist/node/components/docs/examples/ExampleShowcasePage.js +4 -244
- package/dist/node/components/docs/examples/exampleShowcaseData.js +4 -39
- package/dist/node/components/docs/examples/index.js +4 -330
- package/dist/node/components/docs/generated/docs-index.generated.js +1 -5
- package/dist/node/components/docs/generated/index.js +1 -74
- package/dist/node/components/docs/generated/loader.js +1 -74
- package/dist/node/components/docs/getting-started/CLIPage.js +4 -271
- package/dist/node/components/docs/getting-started/CompatibilityPage.js +1 -173
- package/dist/node/components/docs/getting-started/DataViewTutorialPage.js +4 -134
- package/dist/node/components/docs/getting-started/DeveloperToolsPage.js +1 -194
- package/dist/node/components/docs/getting-started/HelloWorldPage.js +5 -183
- package/dist/node/components/docs/getting-started/InstallationPage.js +3 -154
- package/dist/node/components/docs/getting-started/StartHerePage.js +2 -129
- package/dist/node/components/docs/getting-started/TroubleshootingPage.js +2 -168
- package/dist/node/components/docs/getting-started/VSCodeExtensionPage.js +1 -432
- package/dist/node/components/docs/getting-started/getting-started.docblocks.js +4 -41
- package/dist/node/components/docs/getting-started/index.js +18 -1869
- package/dist/node/components/docs/guides/GuideCIDiffGatingPage.js +2 -196
- package/dist/node/components/docs/guides/GuideConnectInRepoPage.js +43 -0
- package/dist/node/components/docs/guides/GuideContractTypesPage.js +6 -541
- package/dist/node/components/docs/guides/GuideDocsPipelinePage.js +3 -207
- package/dist/node/components/docs/guides/GuideFirstModuleBundlePage.js +75 -0
- package/dist/node/components/docs/guides/GuideGenerateDocsClientsSchemasPage.js +2 -209
- package/dist/node/components/docs/guides/GuideHostBuilderWorkbenchPage.js +69 -0
- package/dist/node/components/docs/guides/GuideImportExistingCodebasesPage.js +8 -754
- package/dist/node/components/docs/guides/GuideNextjsOneEndpointPage.js +6 -268
- package/dist/node/components/docs/guides/GuideSpecValidationTypingPage.js +4 -196
- package/dist/node/components/docs/guides/GuidesIndexPage.js +2 -169
- package/dist/node/components/docs/guides/guides.docblocks.js +11 -75
- package/dist/node/components/docs/guides/index.js +213 -2428
- package/dist/node/components/docs/index.js +542 -24310
- package/dist/node/components/docs/integrations/IntegrationsCircuitBreakersPage.js +2 -42
- package/dist/node/components/docs/integrations/IntegrationsElevenLabsPage.js +3 -105
- package/dist/node/components/docs/integrations/IntegrationsGithubPage.js +3 -142
- package/dist/node/components/docs/integrations/IntegrationsGmailPage.js +3 -109
- package/dist/node/components/docs/integrations/IntegrationsGoogleCalendarPage.js +3 -79
- package/dist/node/components/docs/integrations/IntegrationsHealthRoutingPage.js +3 -146
- package/dist/node/components/docs/integrations/IntegrationsMistralPage.js +5 -150
- package/dist/node/components/docs/integrations/IntegrationsOpenAIPage.js +5 -140
- package/dist/node/components/docs/integrations/IntegrationsOverviewPage.js +1 -160
- package/dist/node/components/docs/integrations/IntegrationsPostmarkPage.js +4 -218
- package/dist/node/components/docs/integrations/IntegrationsPowensPage.js +4 -300
- package/dist/node/components/docs/integrations/IntegrationsQdrantPage.js +5 -111
- package/dist/node/components/docs/integrations/IntegrationsResendPage.js +3 -102
- package/dist/node/components/docs/integrations/IntegrationsS3Page.js +4 -124
- package/dist/node/components/docs/integrations/IntegrationsSlackPage.js +3 -144
- package/dist/node/components/docs/integrations/IntegrationsSpecModelPage.js +7 -290
- package/dist/node/components/docs/integrations/IntegrationsStripePage.js +6 -327
- package/dist/node/components/docs/integrations/IntegrationsTwilioPage.js +3 -128
- package/dist/node/components/docs/integrations/IntegrationsWhatsappMetaPage.js +2 -146
- package/dist/node/components/docs/integrations/IntegrationsWhatsappTwilioPage.js +2 -156
- package/dist/node/components/docs/integrations/index.js +52 -3100
- package/dist/node/components/docs/intent/ContractFirstApiPage.js +2 -126
- package/dist/node/components/docs/intent/DeterministicCodegenPage.js +2 -148
- package/dist/node/components/docs/intent/GenerateClientFromSchemaPage.js +7 -207
- package/dist/node/components/docs/intent/OpenapiAlternativePage.js +3 -201
- package/dist/node/components/docs/intent/SchemaValidationTypescriptPage.js +4 -144
- package/dist/node/components/docs/intent/SpecDrivenDevelopmentPage.js +2 -126
- package/dist/node/components/docs/intent/index.js +15 -1135
- package/dist/node/components/docs/intent/intent-pages.docblocks.js +1 -201
- package/dist/node/components/docs/knowledge/KnowledgeCategoriesPage.js +6 -750
- package/dist/node/components/docs/knowledge/KnowledgeExamplesPage.js +4 -175
- package/dist/node/components/docs/knowledge/KnowledgeOverviewPage.js +1 -116
- package/dist/node/components/docs/knowledge/KnowledgeSourcesPage.js +8 -391
- package/dist/node/components/docs/knowledge/KnowledgeSpacesPage.js +6 -302
- package/dist/node/components/docs/knowledge/index.js +21 -1730
- package/dist/node/components/docs/libraries/LibrariesAccessibilityPage.js +3 -198
- package/dist/node/components/docs/libraries/LibrariesAiAgentPage.js +3 -141
- package/dist/node/components/docs/libraries/LibrariesAnalyticsPage.js +4 -80
- package/dist/node/components/docs/libraries/LibrariesContentGenPage.js +2 -100
- package/dist/node/components/docs/libraries/LibrariesContractsPage.js +2 -284
- package/dist/node/components/docs/libraries/LibrariesCostTrackingPage.js +3 -112
- package/dist/node/components/docs/libraries/LibrariesDataBackendPage.js +2 -166
- package/dist/node/components/docs/libraries/LibrariesDataViewsPage.js +3 -186
- package/dist/node/components/docs/libraries/LibrariesDesignSystemPage.js +4 -279
- package/dist/node/components/docs/libraries/LibrariesEvolutionPage.js +4 -127
- package/dist/node/components/docs/libraries/LibrariesGraphQLPage.js +2 -173
- package/dist/node/components/docs/libraries/LibrariesGrowthPage.js +3 -88
- package/dist/node/components/docs/libraries/LibrariesMultiTenancyPage.js +3 -108
- package/dist/node/components/docs/libraries/LibrariesObservabilityPage.js +5 -130
- package/dist/node/components/docs/libraries/LibrariesOverlayEnginePage.js +4 -110
- package/dist/node/components/docs/libraries/LibrariesOverviewPage.js +1 -170
- package/dist/node/components/docs/libraries/LibrariesPersonalizationPage.js +4 -114
- package/dist/node/components/docs/libraries/LibrariesProgressiveDeliveryPage.js +3 -132
- package/dist/node/components/docs/libraries/LibrariesResiliencePage.js +4 -120
- package/dist/node/components/docs/libraries/LibrariesRuntimePage.js +2 -200
- package/dist/node/components/docs/libraries/LibrariesSLOPage.js +3 -116
- package/dist/node/components/docs/libraries/LibrariesSchemaPage.js +3 -273
- package/dist/node/components/docs/libraries/LibrariesSupportBotPage.js +3 -134
- package/dist/node/components/docs/libraries/LibrariesTestingPage.js +3 -133
- package/dist/node/components/docs/libraries/LibrariesUIKitPage.js +2 -230
- package/dist/node/components/docs/libraries/LibrariesWorkflowComposerPage.js +3 -88
- package/dist/node/components/docs/libraries/LibrariesWorkflowsPage.js +2 -181
- package/dist/node/components/docs/libraries/index.js +54 -4147
- package/dist/node/components/docs/manifesto/ManifestoPage.js +1 -86
- package/dist/node/components/docs/ops/AutoEvolutionOpsPage.js +2 -132
- package/dist/node/components/docs/ops/DistributedTracingOpsPage.js +2 -71
- package/dist/node/components/docs/ops/index.js +3 -202
- package/dist/node/components/docs/ops/ops-lifecycle.docblocks.js +3 -38
- package/dist/node/components/docs/ops/ops-runbooks-a.docblocks.js +3 -94
- package/dist/node/components/docs/ops/ops-runbooks-b.docblocks.js +3 -76
- package/dist/node/components/docs/ops/ops-slo-tenant.docblocks.js +3 -76
- package/dist/node/components/docs/ops/ops-top.docs.js +2 -17
- package/dist/node/components/docs/ops/ops.docs.js +10 -302
- package/dist/node/components/docs/product/product.docblocks.js +5 -72
- package/dist/node/components/docs/reference/DocsMarkdownContent.js +2 -196
- package/dist/node/components/docs/reference/DocsReferenceContent.js +3 -256
- package/dist/node/components/docs/reference/DocsReferenceIndexClient.js +2 -127
- package/dist/node/components/docs/reference/DocsReferenceIndexPage.js +2 -206
- package/dist/node/components/docs/reference/DocsReferencePage.js +3 -265
- package/dist/node/components/docs/reference/docsMarkdownParser.js +2 -92
- package/dist/node/components/docs/reference/index.js +4 -470
- package/dist/node/components/docs/safety/SafetyAuditingPage.js +2 -350
- package/dist/node/components/docs/safety/SafetyMigrationsPage.js +2 -359
- package/dist/node/components/docs/safety/SafetyOverviewPage.js +1 -101
- package/dist/node/components/docs/safety/SafetyPDPPage.js +2 -301
- package/dist/node/components/docs/safety/SafetySecurityTrustPage.js +1 -206
- package/dist/node/components/docs/safety/SafetySigningPage.js +3 -90
- package/dist/node/components/docs/safety/SafetyTenantIsolationPage.js +2 -79
- package/dist/node/components/docs/safety/index.js +7 -1480
- package/dist/node/components/docs/shared/StudioPrompt.js +1 -31
- package/dist/node/components/docs/specs/SpecsBuilderControlPlanePage.js +33 -0
- package/dist/node/components/docs/specs/SpecsCapabilitiesPage.js +2 -158
- package/dist/node/components/docs/specs/SpecsConnectPage.js +7 -0
- package/dist/node/components/docs/specs/SpecsDataViewsPage.js +2 -260
- package/dist/node/components/docs/specs/SpecsModuleBundlesPage.js +66 -0
- package/dist/node/components/docs/specs/SpecsOverlaysPage.js +2 -372
- package/dist/node/components/docs/specs/SpecsOverviewPage.js +1 -186
- package/dist/node/components/docs/specs/SpecsPolicyPage.js +3 -420
- package/dist/node/components/docs/specs/SpecsWorkflowsPage.js +2 -325
- package/dist/node/components/docs/specs/index.js +109 -1715
- package/dist/node/components/docs/studio/StudioBYOKPage.js +1 -26
- package/dist/node/components/docs/studio/StudioDeploymentsPage.js +1 -26
- package/dist/node/components/docs/studio/StudioGettingStartedPage.js +1 -26
- package/dist/node/components/docs/studio/StudioIntegrationsPage.js +1 -26
- package/dist/node/components/docs/studio/StudioOverviewPage.js +1 -157
- package/dist/node/components/docs/studio/StudioVisualBuilderPage.js +1 -26
- package/dist/node/components/docs/studio/index.js +1 -282
- package/dist/node/components/docs/tech/contracts/tech-docs.docblocks.js +2 -19
- package/dist/node/components/integrations/index.js +2 -600
- package/dist/node/components/integrations/molecules/IntegrationCard.js +1 -100
- package/dist/node/components/integrations/organisms/IntegrationMarketplace.js +1 -214
- package/dist/node/components/integrations/organisms/IntegrationSettings.js +2 -284
- package/dist/node/components/integrations/organisms/KnowledgeSourceList.js +1 -103
- package/dist/node/components/legal/PrivacyTemplate.js +1 -1025
- package/dist/node/components/legal/TermsTemplate.js +1 -941
- package/dist/node/components/legal/index.js +1 -1963
- package/dist/node/components/shared/FeatureGateNotice.js +1 -38
- package/dist/node/components/shared/index.js +1 -38
- package/dist/node/components/shell/WorkspaceHeader.js +1 -100
- package/dist/node/components/shell/WorkspaceProjectShellLayout.js +1 -222
- package/dist/node/components/shell/WorkspaceShellRenderer.js +1 -228
- package/dist/node/components/shell/WorkspaceSidebar.js +1 -68
- package/dist/node/components/shell/index.js +1 -287
- package/dist/node/components/templates/engine/index.js +1 -39
- package/dist/node/components/templates/index.js +11 -965
- package/dist/node/components/templates/messaging/ConversationList.js +2 -83
- package/dist/node/components/templates/messaging/MessageComposer.js +4 -150
- package/dist/node/components/templates/messaging/MessageThread.js +3 -83
- package/dist/node/components/templates/messaging/MessagingWorkspace.js +5 -265
- package/dist/node/components/templates/messaging/index.js +5 -269
- package/dist/node/components/templates/recipes/LanguageSwitcher.js +1 -16
- package/dist/node/components/templates/recipes/RecipeCard.js +1 -80
- package/dist/node/components/templates/recipes/RecipeDetail.js +1 -74
- package/dist/node/components/templates/recipes/RecipeList.js +3 -245
- package/dist/node/components/templates/recipes/index.js +3 -248
- package/dist/node/components/templates/todos/FilterBar.js +1 -107
- package/dist/node/components/templates/todos/TaskForm.js +2 -158
- package/dist/node/components/templates/todos/TaskItem.js +1 -77
- package/dist/node/components/templates/todos/TaskList.js +5 -449
- package/dist/node/components/templates/todos/index.js +5 -452
- package/dist/node/config/contractspec-blueprint.js +1 -123
- package/dist/node/config/contractspec-branding.js +1 -44
- package/dist/node/config/contractspec-routes.js +1 -24
- package/dist/node/config/index.js +1 -126
- package/dist/node/features/contracts-registry.js +1 -178
- package/dist/node/features/docs/docs.contracts.js +1 -17
- package/dist/node/features/docs/index.js +1 -17
- package/dist/node/features/docs.feature.js +1 -33
- package/dist/node/features/index.js +1 -315
- package/dist/node/features/mcp.feature.js +1 -30
- package/dist/node/features/presentations.feature.js +1 -33
- package/dist/node/features/registry.js +1 -116
- package/dist/node/index.js +556 -28593
- package/dist/node/infrastructure/elysia/index.js +1 -35
- package/dist/node/infrastructure/elysia/logger.js +1 -35
- package/dist/node/infrastructure/index.js +1 -35
- package/dist/node/libs/email/client.js +1 -114
- package/dist/node/libs/email/contact.js +12 -165
- package/dist/node/libs/email/newsletter.js +6 -167
- package/dist/node/libs/email/types.js +0 -2
- package/dist/node/libs/email/utils.js +2 -8
- package/dist/node/libs/email/waitlist-application.js +28 -209
- package/dist/node/libs/email/waitlist.js +6 -167
- package/dist/node/libs/email.js +46 -363
- package/dist/node/libs/posthog/client.js +1 -63
- package/dist/node/libs/posthog/native.js +1 -23
- package/dist/node/libs/posthog/server.js +1 -13
- package/dist/node/libs/pricing-examples.js +1 -18
- package/dist/node/presentation/features/atoms/FeatureIcon/FeatureIcon.js +1 -97
- package/dist/node/presentation/features/atoms/FeatureIcon/index.js +1 -97
- package/dist/node/presentation/features/atoms/index.js +1 -97
- package/dist/node/presentation/features/hooks/index.js +1 -397
- package/dist/node/presentation/features/hooks/useContractsRegistry.js +1 -289
- package/dist/node/presentation/features/hooks/useFeatureFilters.js +1 -75
- package/dist/node/presentation/features/hooks/useFeatureRegistry.js +1 -147
- package/dist/node/presentation/features/hooks/useRelatedDocs.js +1 -28
- package/dist/node/presentation/features/index.js +1 -3063
- package/dist/node/presentation/features/molecules/FeatureCard/FeatureCard.js +1 -366
- package/dist/node/presentation/features/molecules/FeatureCard/index.js +1 -366
- package/dist/node/presentation/features/molecules/FeatureCategoryHeader/FeatureCategoryHeader.js +1 -50
- package/dist/node/presentation/features/molecules/FeatureCategoryHeader/index.js +1 -50
- package/dist/node/presentation/features/molecules/FeatureFilters/FeatureFilters.js +1 -92
- package/dist/node/presentation/features/molecules/FeatureFilters/index.js +1 -92
- package/dist/node/presentation/features/molecules/FeatureHoverPreview/FeatureHoverPreview.js +1 -176
- package/dist/node/presentation/features/molecules/FeatureHoverPreview/index.js +1 -176
- package/dist/node/presentation/features/molecules/index.js +1 -505
- package/dist/node/presentation/features/organisms/FeatureDataViewsList.js +1 -304
- package/dist/node/presentation/features/organisms/FeatureDetail/FeatureDetail.js +1 -154
- package/dist/node/presentation/features/organisms/FeatureDetail/index.js +1 -154
- package/dist/node/presentation/features/organisms/FeatureDiscovery/FeatureDiscovery.js +1 -909
- package/dist/node/presentation/features/organisms/FeatureDiscovery/index.js +1 -909
- package/dist/node/presentation/features/organisms/FeatureEventsList.js +1 -302
- package/dist/node/presentation/features/organisms/FeatureFormsList.js +1 -302
- package/dist/node/presentation/features/organisms/FeatureOperationsList.js +1 -180
- package/dist/node/presentation/features/organisms/FeaturePresentationsList.js +1 -304
- package/dist/node/presentation/features/organisms/index.js +1 -1359
- package/dist/node/presentation/features/templates/FeatureDataViewDetailTemplate/FeatureDataViewDetailTemplate.js +1 -332
- package/dist/node/presentation/features/templates/FeatureDataViewDetailTemplate/index.js +1 -332
- package/dist/node/presentation/features/templates/FeatureDataViewsTemplate/FeatureDataViewsTemplate.js +1 -342
- package/dist/node/presentation/features/templates/FeatureDataViewsTemplate/index.js +1 -342
- package/dist/node/presentation/features/templates/FeatureEventDetailTemplate/FeatureEventDetailTemplate.js +1 -303
- package/dist/node/presentation/features/templates/FeatureEventDetailTemplate/index.js +1 -303
- package/dist/node/presentation/features/templates/FeatureEventsTemplate/FeatureEventsTemplate.js +1 -340
- package/dist/node/presentation/features/templates/FeatureEventsTemplate/index.js +1 -340
- package/dist/node/presentation/features/templates/FeatureFormDetailTemplate/FeatureFormDetailTemplate.js +1 -329
- package/dist/node/presentation/features/templates/FeatureFormDetailTemplate/index.js +1 -329
- package/dist/node/presentation/features/templates/FeatureFormsTemplate/FeatureFormsTemplate.js +1 -340
- package/dist/node/presentation/features/templates/FeatureFormsTemplate/index.js +1 -340
- package/dist/node/presentation/features/templates/FeatureOperationDetailTemplate/FeatureOperationDetailTemplate.js +1 -302
- package/dist/node/presentation/features/templates/FeatureOperationDetailTemplate/index.js +1 -302
- package/dist/node/presentation/features/templates/FeatureOperationsTemplate/FeatureOperationsTemplate.js +1 -218
- package/dist/node/presentation/features/templates/FeatureOperationsTemplate/index.js +1 -218
- package/dist/node/presentation/features/templates/FeatureOverviewTemplate/FeatureOverviewTemplate.js +1 -187
- package/dist/node/presentation/features/templates/FeatureOverviewTemplate/index.js +1 -187
- package/dist/node/presentation/features/templates/FeaturePresentationDetailTemplate/FeaturePresentationDetailTemplate.js +1 -306
- package/dist/node/presentation/features/templates/FeaturePresentationDetailTemplate/index.js +1 -306
- package/dist/node/presentation/features/templates/FeaturePresentationsTemplate/FeaturePresentationsTemplate.js +1 -342
- package/dist/node/presentation/features/templates/FeaturePresentationsTemplate/index.js +1 -342
- package/dist/presentation/features/atoms/FeatureIcon/FeatureIcon.js +1 -97
- package/dist/presentation/features/atoms/FeatureIcon/index.js +1 -97
- package/dist/presentation/features/atoms/index.js +1 -97
- package/dist/presentation/features/hooks/index.js +1 -397
- package/dist/presentation/features/hooks/useContractsRegistry.js +1 -289
- package/dist/presentation/features/hooks/useFeatureFilters.js +1 -75
- package/dist/presentation/features/hooks/useFeatureRegistry.js +1 -147
- package/dist/presentation/features/hooks/useRelatedDocs.js +1 -28
- package/dist/presentation/features/index.js +1 -3063
- package/dist/presentation/features/molecules/FeatureCard/FeatureCard.js +1 -366
- package/dist/presentation/features/molecules/FeatureCard/index.js +1 -366
- package/dist/presentation/features/molecules/FeatureCategoryHeader/FeatureCategoryHeader.js +1 -50
- package/dist/presentation/features/molecules/FeatureCategoryHeader/index.js +1 -50
- package/dist/presentation/features/molecules/FeatureFilters/FeatureFilters.js +1 -92
- package/dist/presentation/features/molecules/FeatureFilters/index.js +1 -92
- package/dist/presentation/features/molecules/FeatureHoverPreview/FeatureHoverPreview.js +1 -176
- package/dist/presentation/features/molecules/FeatureHoverPreview/index.js +1 -176
- package/dist/presentation/features/molecules/index.js +1 -505
- package/dist/presentation/features/organisms/FeatureDataViewsList.js +1 -304
- package/dist/presentation/features/organisms/FeatureDetail/FeatureDetail.js +1 -154
- package/dist/presentation/features/organisms/FeatureDetail/index.js +1 -154
- package/dist/presentation/features/organisms/FeatureDiscovery/FeatureDiscovery.js +1 -909
- package/dist/presentation/features/organisms/FeatureDiscovery/index.js +1 -909
- package/dist/presentation/features/organisms/FeatureEventsList.js +1 -302
- package/dist/presentation/features/organisms/FeatureFormsList.js +1 -302
- package/dist/presentation/features/organisms/FeatureOperationsList.js +1 -180
- package/dist/presentation/features/organisms/FeaturePresentationsList.js +1 -304
- package/dist/presentation/features/organisms/index.js +1 -1359
- package/dist/presentation/features/templates/FeatureDataViewDetailTemplate/FeatureDataViewDetailTemplate.js +1 -332
- package/dist/presentation/features/templates/FeatureDataViewDetailTemplate/index.js +1 -332
- package/dist/presentation/features/templates/FeatureDataViewsTemplate/FeatureDataViewsTemplate.js +1 -342
- package/dist/presentation/features/templates/FeatureDataViewsTemplate/index.js +1 -342
- package/dist/presentation/features/templates/FeatureEventDetailTemplate/FeatureEventDetailTemplate.js +1 -303
- package/dist/presentation/features/templates/FeatureEventDetailTemplate/index.js +1 -303
- package/dist/presentation/features/templates/FeatureEventsTemplate/FeatureEventsTemplate.js +1 -340
- package/dist/presentation/features/templates/FeatureEventsTemplate/index.js +1 -340
- package/dist/presentation/features/templates/FeatureFormDetailTemplate/FeatureFormDetailTemplate.js +1 -329
- package/dist/presentation/features/templates/FeatureFormDetailTemplate/index.js +1 -329
- package/dist/presentation/features/templates/FeatureFormsTemplate/FeatureFormsTemplate.js +1 -340
- package/dist/presentation/features/templates/FeatureFormsTemplate/index.js +1 -340
- package/dist/presentation/features/templates/FeatureOperationDetailTemplate/FeatureOperationDetailTemplate.js +1 -302
- package/dist/presentation/features/templates/FeatureOperationDetailTemplate/index.js +1 -302
- package/dist/presentation/features/templates/FeatureOperationsTemplate/FeatureOperationsTemplate.js +1 -218
- package/dist/presentation/features/templates/FeatureOperationsTemplate/index.js +1 -218
- package/dist/presentation/features/templates/FeatureOverviewTemplate/FeatureOverviewTemplate.js +1 -187
- package/dist/presentation/features/templates/FeatureOverviewTemplate/index.js +1 -187
- package/dist/presentation/features/templates/FeaturePresentationDetailTemplate/FeaturePresentationDetailTemplate.js +1 -306
- package/dist/presentation/features/templates/FeaturePresentationDetailTemplate/index.js +1 -306
- package/dist/presentation/features/templates/FeaturePresentationsTemplate/FeaturePresentationsTemplate.js +1 -342
- package/dist/presentation/features/templates/FeaturePresentationsTemplate/index.js +1 -342
- package/package.json +103 -31
- package/src/components/docs/DocsIndexPage.tsx +55 -0
- package/src/components/docs/architecture/ArchitectureControlPlanePage.tsx +19 -0
- package/src/components/docs/architecture/ArchitectureOverviewPage.tsx +34 -0
- package/src/components/docs/docsManifest.test.ts +70 -0
- package/src/components/docs/docsManifest.ts +71 -1
- package/src/components/docs/ecosystem/PluginsPage.tsx +24 -10
- package/src/components/docs/ecosystem/RegistryPage.tsx +11 -6
- package/src/components/docs/generated/docs-index._common.json +206 -273
- package/src/components/docs/generated/docs-index.control-plane.json +18 -0
- package/src/components/docs/generated/docs-index.defineExample.json +10 -0
- package/src/components/docs/generated/docs-index.manifest.json +22 -12
- package/src/components/docs/generated/docs-index.platform-acp.json +64 -0
- package/src/components/docs/generated/docs-index.platform-agent.json +89 -1
- package/src/components/docs/generated/docs-index.platform-context.json +48 -0
- package/src/components/docs/generated/docs-index.platform-control-plane.json +72 -0
- package/src/components/docs/generated/docs-index.platform-database.json +40 -0
- package/src/components/docs/generated/docs-index.platform-docs.json +64 -0
- package/src/components/docs/generated/docs-index.platform-provider-ranking.json +89 -1
- package/src/components/docs/generated/docs-index.pocket-family-office.json +8 -0
- package/src/components/docs/generated/docs-index.unknown.json +8 -0
- package/src/components/docs/guides/GuideConnectInRepoPage.tsx +184 -0
- package/src/components/docs/guides/GuideFirstModuleBundlePage.tsx +182 -0
- package/src/components/docs/guides/GuideHostBuilderWorkbenchPage.tsx +230 -0
- package/src/components/docs/guides/GuidesIndexPage.tsx +21 -0
- package/src/components/docs/guides/index.ts +3 -0
- package/src/components/docs/specs/SpecsBuilderControlPlanePage.tsx +210 -0
- package/src/components/docs/specs/SpecsConnectPage.tsx +162 -0
- package/src/components/docs/specs/SpecsModuleBundlesPage.tsx +223 -0
- package/src/components/docs/specs/SpecsOverlaysPage.tsx +20 -0
- package/src/components/docs/specs/SpecsOverviewPage.tsx +44 -0
- package/src/components/docs/specs/index.ts +3 -0
- package/src/components/docs/studio/StudioOverviewPage.tsx +26 -0
- package/src/infrastructure/elysia/logger.ts +11 -3
|
@@ -1,100 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { Button } from "@contractspec/lib.design-system";
|
|
3
|
-
import { PlugZap, ToggleRight } from "lucide-react";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
function IntegrationCard({
|
|
6
|
-
id,
|
|
7
|
-
provider,
|
|
8
|
-
name,
|
|
9
|
-
category,
|
|
10
|
-
enabled = true,
|
|
11
|
-
lastSyncAt,
|
|
12
|
-
status = "connected",
|
|
13
|
-
onToggle,
|
|
14
|
-
onConfigure
|
|
15
|
-
}) {
|
|
16
|
-
const tone = status === "connected" ? "text-emerald-500 bg-emerald-500/10 border-emerald-500/30" : status === "error" ? "text-red-500 bg-red-500/10 border-red-500/30" : "text-gray-500 bg-gray-500/10 border-gray-500/30";
|
|
17
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
18
|
-
className: "flex flex-col gap-4 rounded-2xl border border-border bg-card p-4 shadow-sm",
|
|
19
|
-
children: [
|
|
20
|
-
/* @__PURE__ */ jsxs("header", {
|
|
21
|
-
className: "flex items-center justify-between",
|
|
22
|
-
children: [
|
|
23
|
-
/* @__PURE__ */ jsxs("div", {
|
|
24
|
-
children: [
|
|
25
|
-
/* @__PURE__ */ jsx("p", {
|
|
26
|
-
className: "font-semibold text-xl",
|
|
27
|
-
children: name
|
|
28
|
-
}),
|
|
29
|
-
/* @__PURE__ */ jsx("p", {
|
|
30
|
-
className: "text-muted-foreground text-sm",
|
|
31
|
-
children: provider
|
|
32
|
-
})
|
|
33
|
-
]
|
|
34
|
-
}),
|
|
35
|
-
/* @__PURE__ */ jsxs(Button, {
|
|
36
|
-
variant: "outline",
|
|
37
|
-
size: "sm",
|
|
38
|
-
className: `inline-flex items-center gap-2 rounded-full border px-3 py-1 font-semibold text-xs uppercase tracking-wide ${tone}`,
|
|
39
|
-
onPress: () => onToggle?.(id, !enabled),
|
|
40
|
-
children: [
|
|
41
|
-
/* @__PURE__ */ jsx(ToggleRight, {
|
|
42
|
-
className: "h-3.5 w-3.5"
|
|
43
|
-
}),
|
|
44
|
-
enabled ? "Enabled" : "Disabled"
|
|
45
|
-
]
|
|
46
|
-
})
|
|
47
|
-
]
|
|
48
|
-
}),
|
|
49
|
-
/* @__PURE__ */ jsxs("div", {
|
|
50
|
-
className: "text-muted-foreground text-sm",
|
|
51
|
-
children: [
|
|
52
|
-
category && /* @__PURE__ */ jsx("span", {
|
|
53
|
-
className: "font-medium",
|
|
54
|
-
children: category
|
|
55
|
-
}),
|
|
56
|
-
/* @__PURE__ */ jsxs("div", {
|
|
57
|
-
className: "mt-2 flex flex-wrap items-center gap-3 text-xs uppercase tracking-wide",
|
|
58
|
-
children: [
|
|
59
|
-
/* @__PURE__ */ jsxs("span", {
|
|
60
|
-
className: "inline-flex items-center gap-1",
|
|
61
|
-
children: [
|
|
62
|
-
/* @__PURE__ */ jsx(PlugZap, {
|
|
63
|
-
className: "h-3 w-3"
|
|
64
|
-
}),
|
|
65
|
-
status
|
|
66
|
-
]
|
|
67
|
-
}),
|
|
68
|
-
/* @__PURE__ */ jsxs("span", {
|
|
69
|
-
children: [
|
|
70
|
-
"Last sync:",
|
|
71
|
-
" ",
|
|
72
|
-
lastSyncAt ? new Date(lastSyncAt).toLocaleString() : "Not synced yet"
|
|
73
|
-
]
|
|
74
|
-
})
|
|
75
|
-
]
|
|
76
|
-
})
|
|
77
|
-
]
|
|
78
|
-
}),
|
|
79
|
-
/* @__PURE__ */ jsxs("footer", {
|
|
80
|
-
className: "flex items-center gap-2",
|
|
81
|
-
children: [
|
|
82
|
-
/* @__PURE__ */ jsx(Button, {
|
|
83
|
-
className: "flex-1",
|
|
84
|
-
onPress: () => onConfigure?.(id),
|
|
85
|
-
children: "Configure"
|
|
86
|
-
}),
|
|
87
|
-
/* @__PURE__ */ jsx(Button, {
|
|
88
|
-
variant: "ghost",
|
|
89
|
-
className: "flex-1",
|
|
90
|
-
onPress: () => onToggle?.(id, !enabled),
|
|
91
|
-
children: enabled ? "Disconnect" : "Connect"
|
|
92
|
-
})
|
|
93
|
-
]
|
|
94
|
-
})
|
|
95
|
-
]
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
export {
|
|
99
|
-
IntegrationCard
|
|
100
|
-
};
|
|
1
|
+
import{Button as o}from"@contractspec/lib.design-system";import{PlugZap as g,ToggleRight as p}from"lucide-react";import{jsx as t,jsxs as e}from"react/jsx-runtime";function N({id:n,provider:l,name:c,category:i,enabled:r=!0,lastSyncAt:d,status:a="connected",onToggle:s,onConfigure:m}){return e("div",{className:"flex flex-col gap-4 rounded-2xl border border-border bg-card p-4 shadow-sm",children:[e("header",{className:"flex items-center justify-between",children:[e("div",{children:[t("p",{className:"font-semibold text-xl",children:c}),t("p",{className:"text-muted-foreground text-sm",children:l})]}),e(o,{variant:"outline",size:"sm",className:`inline-flex items-center gap-2 rounded-full border px-3 py-1 font-semibold text-xs uppercase tracking-wide ${a==="connected"?"text-emerald-500 bg-emerald-500/10 border-emerald-500/30":a==="error"?"text-red-500 bg-red-500/10 border-red-500/30":"text-gray-500 bg-gray-500/10 border-gray-500/30"}`,onPress:()=>s?.(n,!r),children:[t(p,{className:"h-3.5 w-3.5"}),r?"Enabled":"Disabled"]})]}),e("div",{className:"text-muted-foreground text-sm",children:[i&&t("span",{className:"font-medium",children:i}),e("div",{className:"mt-2 flex flex-wrap items-center gap-3 text-xs uppercase tracking-wide",children:[e("span",{className:"inline-flex items-center gap-1",children:[t(g,{className:"h-3 w-3"}),a]}),e("span",{children:["Last sync:"," ",d?new Date(d).toLocaleString():"Not synced yet"]})]})]}),e("footer",{className:"flex items-center gap-2",children:[t(o,{className:"flex-1",onPress:()=>m?.(n),children:"Configure"}),t(o,{variant:"ghost",className:"flex-1",onPress:()=>s?.(n,!r),children:r?"Disconnect":"Connect"})]})]})}export{N as IntegrationCard};
|
|
@@ -1,214 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { Button } from "@contractspec/lib.design-system";
|
|
3
|
-
import { PlugZap, ToggleRight } from "lucide-react";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
function IntegrationCard({
|
|
6
|
-
id,
|
|
7
|
-
provider,
|
|
8
|
-
name,
|
|
9
|
-
category,
|
|
10
|
-
enabled = true,
|
|
11
|
-
lastSyncAt,
|
|
12
|
-
status = "connected",
|
|
13
|
-
onToggle,
|
|
14
|
-
onConfigure
|
|
15
|
-
}) {
|
|
16
|
-
const tone = status === "connected" ? "text-emerald-500 bg-emerald-500/10 border-emerald-500/30" : status === "error" ? "text-red-500 bg-red-500/10 border-red-500/30" : "text-gray-500 bg-gray-500/10 border-gray-500/30";
|
|
17
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
18
|
-
className: "flex flex-col gap-4 rounded-2xl border border-border bg-card p-4 shadow-sm",
|
|
19
|
-
children: [
|
|
20
|
-
/* @__PURE__ */ jsxs("header", {
|
|
21
|
-
className: "flex items-center justify-between",
|
|
22
|
-
children: [
|
|
23
|
-
/* @__PURE__ */ jsxs("div", {
|
|
24
|
-
children: [
|
|
25
|
-
/* @__PURE__ */ jsx("p", {
|
|
26
|
-
className: "font-semibold text-xl",
|
|
27
|
-
children: name
|
|
28
|
-
}),
|
|
29
|
-
/* @__PURE__ */ jsx("p", {
|
|
30
|
-
className: "text-muted-foreground text-sm",
|
|
31
|
-
children: provider
|
|
32
|
-
})
|
|
33
|
-
]
|
|
34
|
-
}),
|
|
35
|
-
/* @__PURE__ */ jsxs(Button, {
|
|
36
|
-
variant: "outline",
|
|
37
|
-
size: "sm",
|
|
38
|
-
className: `inline-flex items-center gap-2 rounded-full border px-3 py-1 font-semibold text-xs uppercase tracking-wide ${tone}`,
|
|
39
|
-
onPress: () => onToggle?.(id, !enabled),
|
|
40
|
-
children: [
|
|
41
|
-
/* @__PURE__ */ jsx(ToggleRight, {
|
|
42
|
-
className: "h-3.5 w-3.5"
|
|
43
|
-
}),
|
|
44
|
-
enabled ? "Enabled" : "Disabled"
|
|
45
|
-
]
|
|
46
|
-
})
|
|
47
|
-
]
|
|
48
|
-
}),
|
|
49
|
-
/* @__PURE__ */ jsxs("div", {
|
|
50
|
-
className: "text-muted-foreground text-sm",
|
|
51
|
-
children: [
|
|
52
|
-
category && /* @__PURE__ */ jsx("span", {
|
|
53
|
-
className: "font-medium",
|
|
54
|
-
children: category
|
|
55
|
-
}),
|
|
56
|
-
/* @__PURE__ */ jsxs("div", {
|
|
57
|
-
className: "mt-2 flex flex-wrap items-center gap-3 text-xs uppercase tracking-wide",
|
|
58
|
-
children: [
|
|
59
|
-
/* @__PURE__ */ jsxs("span", {
|
|
60
|
-
className: "inline-flex items-center gap-1",
|
|
61
|
-
children: [
|
|
62
|
-
/* @__PURE__ */ jsx(PlugZap, {
|
|
63
|
-
className: "h-3 w-3"
|
|
64
|
-
}),
|
|
65
|
-
status
|
|
66
|
-
]
|
|
67
|
-
}),
|
|
68
|
-
/* @__PURE__ */ jsxs("span", {
|
|
69
|
-
children: [
|
|
70
|
-
"Last sync:",
|
|
71
|
-
" ",
|
|
72
|
-
lastSyncAt ? new Date(lastSyncAt).toLocaleString() : "Not synced yet"
|
|
73
|
-
]
|
|
74
|
-
})
|
|
75
|
-
]
|
|
76
|
-
})
|
|
77
|
-
]
|
|
78
|
-
}),
|
|
79
|
-
/* @__PURE__ */ jsxs("footer", {
|
|
80
|
-
className: "flex items-center gap-2",
|
|
81
|
-
children: [
|
|
82
|
-
/* @__PURE__ */ jsx(Button, {
|
|
83
|
-
className: "flex-1",
|
|
84
|
-
onPress: () => onConfigure?.(id),
|
|
85
|
-
children: "Configure"
|
|
86
|
-
}),
|
|
87
|
-
/* @__PURE__ */ jsx(Button, {
|
|
88
|
-
variant: "ghost",
|
|
89
|
-
className: "flex-1",
|
|
90
|
-
onPress: () => onToggle?.(id, !enabled),
|
|
91
|
-
children: enabled ? "Disconnect" : "Connect"
|
|
92
|
-
})
|
|
93
|
-
]
|
|
94
|
-
})
|
|
95
|
-
]
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// src/components/integrations/organisms/IntegrationMarketplace.tsx
|
|
100
|
-
import { Input } from "@contractspec/lib.design-system";
|
|
101
|
-
import {
|
|
102
|
-
Select,
|
|
103
|
-
SelectContent,
|
|
104
|
-
SelectItem,
|
|
105
|
-
SelectTrigger,
|
|
106
|
-
SelectValue
|
|
107
|
-
} from "@contractspec/lib.ui-kit-web/ui/select";
|
|
108
|
-
import { Boxes, Search } from "lucide-react";
|
|
109
|
-
import * as React from "react";
|
|
110
|
-
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
111
|
-
function IntegrationMarketplace({
|
|
112
|
-
integrations,
|
|
113
|
-
onToggle,
|
|
114
|
-
onConfigure
|
|
115
|
-
}) {
|
|
116
|
-
const [search, setSearch] = React.useState("");
|
|
117
|
-
const [category, setCategory] = React.useState("all");
|
|
118
|
-
const categories = React.useMemo(() => Array.from(new Set(integrations.map((integration) => integration.category))), [integrations]);
|
|
119
|
-
const filtered = integrations.filter((integration) => {
|
|
120
|
-
const matchesSearch = integration.name.toLowerCase().includes(search.toLowerCase()) || integration.provider.toLowerCase().includes(search.toLowerCase());
|
|
121
|
-
const matchesCategory = category === "all" ? true : integration.category === category;
|
|
122
|
-
return matchesSearch && matchesCategory;
|
|
123
|
-
});
|
|
124
|
-
return /* @__PURE__ */ jsxs2("div", {
|
|
125
|
-
className: "space-y-4 rounded-2xl border border-border bg-card p-4",
|
|
126
|
-
children: [
|
|
127
|
-
/* @__PURE__ */ jsxs2("header", {
|
|
128
|
-
className: "flex flex-wrap items-center justify-between gap-3",
|
|
129
|
-
children: [
|
|
130
|
-
/* @__PURE__ */ jsxs2("div", {
|
|
131
|
-
children: [
|
|
132
|
-
/* @__PURE__ */ jsx2("p", {
|
|
133
|
-
className: "font-semibold text-sm uppercase tracking-wide",
|
|
134
|
-
children: "Integration marketplace"
|
|
135
|
-
}),
|
|
136
|
-
/* @__PURE__ */ jsx2("p", {
|
|
137
|
-
className: "text-muted-foreground text-sm",
|
|
138
|
-
children: "Connect AI providers, payments, analytics, and internal tools with BYOK controls."
|
|
139
|
-
})
|
|
140
|
-
]
|
|
141
|
-
}),
|
|
142
|
-
/* @__PURE__ */ jsx2(Boxes, {
|
|
143
|
-
className: "h-5 w-5 text-muted-foreground"
|
|
144
|
-
})
|
|
145
|
-
]
|
|
146
|
-
}),
|
|
147
|
-
/* @__PURE__ */ jsxs2("div", {
|
|
148
|
-
className: "flex flex-wrap gap-3",
|
|
149
|
-
children: [
|
|
150
|
-
/* @__PURE__ */ jsxs2("div", {
|
|
151
|
-
className: "relative min-w-[200px] flex-1",
|
|
152
|
-
children: [
|
|
153
|
-
/* @__PURE__ */ jsx2(Search, {
|
|
154
|
-
className: "pointer-events-none absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2 text-muted-foreground"
|
|
155
|
-
}),
|
|
156
|
-
/* @__PURE__ */ jsx2(Input, {
|
|
157
|
-
type: "search",
|
|
158
|
-
"aria-label": "Search providers",
|
|
159
|
-
className: "w-full py-2 pr-3 pl-9 text-sm",
|
|
160
|
-
value: search,
|
|
161
|
-
onChange: (event) => setSearch(event.target.value),
|
|
162
|
-
placeholder: "Search providers"
|
|
163
|
-
})
|
|
164
|
-
]
|
|
165
|
-
}),
|
|
166
|
-
/* @__PURE__ */ jsxs2(Select, {
|
|
167
|
-
value: category,
|
|
168
|
-
onValueChange: setCategory,
|
|
169
|
-
children: [
|
|
170
|
-
/* @__PURE__ */ jsx2(SelectTrigger, {
|
|
171
|
-
className: "w-[200px]",
|
|
172
|
-
children: /* @__PURE__ */ jsx2(SelectValue, {
|
|
173
|
-
placeholder: "All categories"
|
|
174
|
-
})
|
|
175
|
-
}),
|
|
176
|
-
/* @__PURE__ */ jsxs2(SelectContent, {
|
|
177
|
-
children: [
|
|
178
|
-
/* @__PURE__ */ jsx2(SelectItem, {
|
|
179
|
-
value: "all",
|
|
180
|
-
children: "All categories"
|
|
181
|
-
}),
|
|
182
|
-
categories.map((item) => /* @__PURE__ */ jsx2(SelectItem, {
|
|
183
|
-
value: item,
|
|
184
|
-
children: item
|
|
185
|
-
}, item))
|
|
186
|
-
]
|
|
187
|
-
})
|
|
188
|
-
]
|
|
189
|
-
})
|
|
190
|
-
]
|
|
191
|
-
}),
|
|
192
|
-
/* @__PURE__ */ jsx2("div", {
|
|
193
|
-
className: "grid gap-4 md:grid-cols-2",
|
|
194
|
-
children: filtered.length ? filtered.map((integration) => /* @__PURE__ */ jsx2(IntegrationCard, {
|
|
195
|
-
id: integration.id,
|
|
196
|
-
provider: integration.provider,
|
|
197
|
-
name: integration.name,
|
|
198
|
-
category: integration.category,
|
|
199
|
-
enabled: integration.enabled,
|
|
200
|
-
status: integration.status,
|
|
201
|
-
lastSyncAt: integration.lastSyncAt,
|
|
202
|
-
onToggle,
|
|
203
|
-
onConfigure
|
|
204
|
-
}, integration.id)) : /* @__PURE__ */ jsx2("div", {
|
|
205
|
-
className: "rounded-xl border border-border border-dashed p-6 text-center text-muted-foreground text-sm md:col-span-2",
|
|
206
|
-
children: "No integrations match your filters."
|
|
207
|
-
})
|
|
208
|
-
})
|
|
209
|
-
]
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
export {
|
|
213
|
-
IntegrationMarketplace
|
|
214
|
-
};
|
|
1
|
+
import{Button as P}from"@contractspec/lib.design-system";import{PlugZap as L,ToggleRight as k}from"lucide-react";import{jsx as r,jsxs as l}from"react/jsx-runtime";function y({id:p,provider:v,name:w,category:f,enabled:o=!0,lastSyncAt:a,status:b="connected",onToggle:c,onConfigure:u}){return l("div",{className:"flex flex-col gap-4 rounded-2xl border border-border bg-card p-4 shadow-sm",children:[l("header",{className:"flex items-center justify-between",children:[l("div",{children:[r("p",{className:"font-semibold text-xl",children:w}),r("p",{className:"text-muted-foreground text-sm",children:v})]}),l(P,{variant:"outline",size:"sm",className:`inline-flex items-center gap-2 rounded-full border px-3 py-1 font-semibold text-xs uppercase tracking-wide ${b==="connected"?"text-emerald-500 bg-emerald-500/10 border-emerald-500/30":b==="error"?"text-red-500 bg-red-500/10 border-red-500/30":"text-gray-500 bg-gray-500/10 border-gray-500/30"}`,onPress:()=>c?.(p,!o),children:[r(k,{className:"h-3.5 w-3.5"}),o?"Enabled":"Disabled"]})]}),l("div",{className:"text-muted-foreground text-sm",children:[f&&r("span",{className:"font-medium",children:f}),l("div",{className:"mt-2 flex flex-wrap items-center gap-3 text-xs uppercase tracking-wide",children:[l("span",{className:"inline-flex items-center gap-1",children:[r(L,{className:"h-3 w-3"}),b]}),l("span",{children:["Last sync:"," ",a?new Date(a).toLocaleString():"Not synced yet"]})]})]}),l("footer",{className:"flex items-center gap-2",children:[r(P,{className:"flex-1",onPress:()=>u?.(p),children:"Configure"}),r(P,{variant:"ghost",className:"flex-1",onPress:()=>c?.(p,!o),children:o?"Disconnect":"Connect"})]})]})}import{Input as z}from"@contractspec/lib.design-system";import{Select as E,SelectContent as R,SelectItem as B,SelectTrigger as Z,SelectValue as $}from"@contractspec/lib.ui-kit-web/ui/select";import{Boxes as n,Search as q}from"lucide-react";import*as N from"react";import{jsx as e,jsxs as m}from"react/jsx-runtime";function Q({integrations:p,onToggle:v,onConfigure:w}){let[f,o]=N.useState(""),[a,b]=N.useState("all"),c=N.useMemo(()=>Array.from(new Set(p.map((d)=>d.category))),[p]),u=p.filter((d)=>{let D=d.name.toLowerCase().includes(f.toLowerCase())||d.provider.toLowerCase().includes(f.toLowerCase()),s=a==="all"?!0:d.category===a;return D&&s});return m("div",{className:"space-y-4 rounded-2xl border border-border bg-card p-4",children:[m("header",{className:"flex flex-wrap items-center justify-between gap-3",children:[m("div",{children:[e("p",{className:"font-semibold text-sm uppercase tracking-wide",children:"Integration marketplace"}),e("p",{className:"text-muted-foreground text-sm",children:"Connect AI providers, payments, analytics, and internal tools with BYOK controls."})]}),e(n,{className:"h-5 w-5 text-muted-foreground"})]}),m("div",{className:"flex flex-wrap gap-3",children:[m("div",{className:"relative min-w-[200px] flex-1",children:[e(q,{className:"pointer-events-none absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e(z,{type:"search","aria-label":"Search providers",className:"w-full py-2 pr-3 pl-9 text-sm",value:f,onChange:(d)=>o(d.target.value),placeholder:"Search providers"})]}),m(E,{value:a,onValueChange:b,children:[e(Z,{className:"w-[200px]",children:e($,{placeholder:"All categories"})}),m(R,{children:[e(B,{value:"all",children:"All categories"}),c.map((d)=>e(B,{value:d,children:d},d))]})]})]}),e("div",{className:"grid gap-4 md:grid-cols-2",children:u.length?u.map((d)=>e(y,{id:d.id,provider:d.provider,name:d.name,category:d.category,enabled:d.enabled,status:d.status,lastSyncAt:d.lastSyncAt,onToggle:v,onConfigure:w},d.id)):e("div",{className:"rounded-xl border border-border border-dashed p-6 text-center text-muted-foreground text-sm md:col-span-2",children:"No integrations match your filters."})})]})}export{Q as IntegrationMarketplace};
|
|
@@ -1,285 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import { Button, Input, Textarea } from "@contractspec/lib.design-system";
|
|
3
|
-
import { Checkbox } from "@contractspec/lib.ui-kit-web/ui/checkbox";
|
|
4
|
-
import { Label } from "@contractspec/lib.ui-kit-web/ui/label";
|
|
5
|
-
import {
|
|
6
|
-
Select,
|
|
7
|
-
SelectContent,
|
|
8
|
-
SelectItem,
|
|
9
|
-
SelectTrigger,
|
|
10
|
-
SelectValue
|
|
11
|
-
} from "@contractspec/lib.ui-kit-web/ui/select";
|
|
12
|
-
import { Key, ShieldCheck, TestTube2 } from "lucide-react";
|
|
13
|
-
import * as React from "react";
|
|
14
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
-
function IntegrationSettings({
|
|
16
|
-
provider,
|
|
17
|
-
initialValues,
|
|
18
|
-
onTestConnection,
|
|
19
|
-
onSave,
|
|
20
|
-
isSaving,
|
|
21
|
-
isTesting
|
|
22
|
-
}) {
|
|
23
|
-
const [values, setValues] = React.useState({
|
|
24
|
-
apiKey: initialValues?.apiKey ?? "",
|
|
25
|
-
secret: initialValues?.secret ?? "",
|
|
26
|
-
ownershipMode: initialValues?.ownershipMode ?? "managed",
|
|
27
|
-
secretProvider: initialValues?.secretProvider ?? "env",
|
|
28
|
-
secretRef: initialValues?.secretRef ?? "",
|
|
29
|
-
config: initialValues?.config ?? `{
|
|
1
|
+
import{Button as N,Input as M,Textarea as K}from"@contractspec/lib.design-system";import{Checkbox as B}from"@contractspec/lib.ui-kit-web/ui/checkbox";import{Label as D}from"@contractspec/lib.ui-kit-web/ui/label";import{Select as O,SelectContent as P,SelectItem as H,SelectTrigger as Q,SelectValue as R}from"@contractspec/lib.ui-kit-web/ui/select";import{Key as k,ShieldCheck as m,TestTube2 as L}from"lucide-react";import*as U from"react";import{jsx as f,jsxs as q}from"react/jsx-runtime";function h({provider:W,initialValues:A,onTestConnection:X,onSave:Y,isSaving:Z,isTesting:_}){let[z,J]=U.useState({apiKey:A?.apiKey??"",secret:A?.secret??"",ownershipMode:A?.ownershipMode??"managed",secretProvider:A?.secretProvider??"env",secretRef:A?.secretRef??"",config:A?.config??`{
|
|
30
2
|
"region": "eu-west-1"
|
|
31
|
-
}`
|
|
32
|
-
});
|
|
33
|
-
const handleChange = (event) => {
|
|
34
|
-
const target = event.target;
|
|
35
|
-
const { name, value } = target;
|
|
36
|
-
setValues((prev) => ({
|
|
37
|
-
...prev,
|
|
38
|
-
[name]: value
|
|
39
|
-
}));
|
|
40
|
-
};
|
|
41
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
42
|
-
className: "space-y-4 rounded-2xl border border-border bg-card p-4",
|
|
43
|
-
children: [
|
|
44
|
-
/* @__PURE__ */ jsxs("header", {
|
|
45
|
-
className: "flex flex-wrap items-center justify-between gap-3",
|
|
46
|
-
children: [
|
|
47
|
-
/* @__PURE__ */ jsxs("div", {
|
|
48
|
-
children: [
|
|
49
|
-
/* @__PURE__ */ jsxs("p", {
|
|
50
|
-
className: "font-semibold text-sm uppercase tracking-wide",
|
|
51
|
-
children: [
|
|
52
|
-
provider,
|
|
53
|
-
" credentials"
|
|
54
|
-
]
|
|
55
|
-
}),
|
|
56
|
-
/* @__PURE__ */ jsx("p", {
|
|
57
|
-
className: "text-muted-foreground text-sm",
|
|
58
|
-
children: "Store encrypted keys with BYOK and run safe connection tests."
|
|
59
|
-
})
|
|
60
|
-
]
|
|
61
|
-
}),
|
|
62
|
-
/* @__PURE__ */ jsx(ShieldCheck, {
|
|
63
|
-
className: "h-5 w-5 text-muted-foreground"
|
|
64
|
-
})
|
|
65
|
-
]
|
|
66
|
-
}),
|
|
67
|
-
/* @__PURE__ */ jsx("div", {
|
|
68
|
-
className: "grid gap-4 md:grid-cols-2",
|
|
69
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
70
|
-
className: "space-y-2",
|
|
71
|
-
children: [
|
|
72
|
-
/* @__PURE__ */ jsx(Label, {
|
|
73
|
-
htmlFor: "ownershipMode",
|
|
74
|
-
children: "Ownership"
|
|
75
|
-
}),
|
|
76
|
-
/* @__PURE__ */ jsxs(Select, {
|
|
77
|
-
value: values.ownershipMode ?? "managed",
|
|
78
|
-
onValueChange: (next) => setValues((prev) => ({
|
|
79
|
-
...prev,
|
|
80
|
-
ownershipMode: next
|
|
81
|
-
})),
|
|
82
|
-
children: [
|
|
83
|
-
/* @__PURE__ */ jsx(SelectTrigger, {
|
|
84
|
-
id: "ownershipMode",
|
|
85
|
-
className: "w-full",
|
|
86
|
-
children: /* @__PURE__ */ jsx(SelectValue, {})
|
|
87
|
-
}),
|
|
88
|
-
/* @__PURE__ */ jsxs(SelectContent, {
|
|
89
|
-
children: [
|
|
90
|
-
/* @__PURE__ */ jsx(SelectItem, {
|
|
91
|
-
value: "managed",
|
|
92
|
-
children: "Managed (store encrypted)"
|
|
93
|
-
}),
|
|
94
|
-
/* @__PURE__ */ jsx(SelectItem, {
|
|
95
|
-
value: "byok",
|
|
96
|
-
children: "BYOK (store secret reference)"
|
|
97
|
-
})
|
|
98
|
-
]
|
|
99
|
-
})
|
|
100
|
-
]
|
|
101
|
-
})
|
|
102
|
-
]
|
|
103
|
-
})
|
|
104
|
-
}),
|
|
105
|
-
/* @__PURE__ */ jsxs("div", {
|
|
106
|
-
className: "grid gap-4 md:grid-cols-2",
|
|
107
|
-
children: [
|
|
108
|
-
/* @__PURE__ */ jsxs("div", {
|
|
109
|
-
className: "space-y-1 text-sm",
|
|
110
|
-
children: [
|
|
111
|
-
/* @__PURE__ */ jsx(Label, {
|
|
112
|
-
htmlFor: "apiKey",
|
|
113
|
-
className: "font-semibold",
|
|
114
|
-
children: "API key"
|
|
115
|
-
}),
|
|
116
|
-
/* @__PURE__ */ jsxs("div", {
|
|
117
|
-
className: "relative",
|
|
118
|
-
children: [
|
|
119
|
-
/* @__PURE__ */ jsx(Key, {
|
|
120
|
-
className: "pointer-events-none absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2 text-muted-foreground"
|
|
121
|
-
}),
|
|
122
|
-
/* @__PURE__ */ jsx(Input, {
|
|
123
|
-
type: "text",
|
|
124
|
-
name: "apiKey",
|
|
125
|
-
id: "apiKey",
|
|
126
|
-
className: "w-full py-2 pr-3 pl-9",
|
|
127
|
-
value: values.apiKey,
|
|
128
|
-
onChange: handleChange,
|
|
129
|
-
required: true
|
|
130
|
-
})
|
|
131
|
-
]
|
|
132
|
-
})
|
|
133
|
-
]
|
|
134
|
-
}),
|
|
135
|
-
/* @__PURE__ */ jsxs("div", {
|
|
136
|
-
className: "space-y-1 text-sm",
|
|
137
|
-
children: [
|
|
138
|
-
/* @__PURE__ */ jsx(Label, {
|
|
139
|
-
htmlFor: "secret",
|
|
140
|
-
className: "font-semibold",
|
|
141
|
-
children: "Secret"
|
|
142
|
-
}),
|
|
143
|
-
/* @__PURE__ */ jsx(Input, {
|
|
144
|
-
type: "password",
|
|
145
|
-
id: "secret",
|
|
146
|
-
name: "secret",
|
|
147
|
-
className: "w-full px-3 py-2",
|
|
148
|
-
value: values.secret,
|
|
149
|
-
onChange: handleChange
|
|
150
|
-
})
|
|
151
|
-
]
|
|
152
|
-
})
|
|
153
|
-
]
|
|
154
|
-
}),
|
|
155
|
-
values.ownershipMode === "byok" ? /* @__PURE__ */ jsxs("div", {
|
|
156
|
-
className: "space-y-4 rounded-xl border border-blue-500/20 bg-blue-500/5 p-4",
|
|
157
|
-
children: [
|
|
158
|
-
/* @__PURE__ */ jsx("p", {
|
|
159
|
-
className: "font-semibold text-sm",
|
|
160
|
-
children: "BYOK secret reference"
|
|
161
|
-
}),
|
|
162
|
-
/* @__PURE__ */ jsxs("div", {
|
|
163
|
-
className: "grid gap-4 md:grid-cols-2",
|
|
164
|
-
children: [
|
|
165
|
-
/* @__PURE__ */ jsxs("div", {
|
|
166
|
-
className: "space-y-2",
|
|
167
|
-
children: [
|
|
168
|
-
/* @__PURE__ */ jsx(Label, {
|
|
169
|
-
htmlFor: "secretProvider",
|
|
170
|
-
children: "Secret provider"
|
|
171
|
-
}),
|
|
172
|
-
/* @__PURE__ */ jsxs(Select, {
|
|
173
|
-
value: values.secretProvider ?? "env",
|
|
174
|
-
onValueChange: (next) => setValues((prev) => ({
|
|
175
|
-
...prev,
|
|
176
|
-
secretProvider: next
|
|
177
|
-
})),
|
|
178
|
-
children: [
|
|
179
|
-
/* @__PURE__ */ jsx(SelectTrigger, {
|
|
180
|
-
id: "secretProvider",
|
|
181
|
-
className: "w-full",
|
|
182
|
-
children: /* @__PURE__ */ jsx(SelectValue, {})
|
|
183
|
-
}),
|
|
184
|
-
/* @__PURE__ */ jsxs(SelectContent, {
|
|
185
|
-
children: [
|
|
186
|
-
/* @__PURE__ */ jsx(SelectItem, {
|
|
187
|
-
value: "env",
|
|
188
|
-
children: "Environment"
|
|
189
|
-
}),
|
|
190
|
-
/* @__PURE__ */ jsx(SelectItem, {
|
|
191
|
-
value: "gcp",
|
|
192
|
-
children: "GCP Secret Manager"
|
|
193
|
-
})
|
|
194
|
-
]
|
|
195
|
-
})
|
|
196
|
-
]
|
|
197
|
-
})
|
|
198
|
-
]
|
|
199
|
-
}),
|
|
200
|
-
/* @__PURE__ */ jsxs("div", {
|
|
201
|
-
className: "space-y-2",
|
|
202
|
-
children: [
|
|
203
|
-
/* @__PURE__ */ jsx(Label, {
|
|
204
|
-
htmlFor: "secretRef",
|
|
205
|
-
children: "Secret reference"
|
|
206
|
-
}),
|
|
207
|
-
/* @__PURE__ */ jsx(Input, {
|
|
208
|
-
id: "secretRef",
|
|
209
|
-
name: "secretRef",
|
|
210
|
-
placeholder: values.secretProvider === "gcp" ? "gcp://projects/.../secrets/..." : "env://MY_TOKEN_ENV_VAR",
|
|
211
|
-
value: values.secretRef ?? "",
|
|
212
|
-
onChange: handleChange
|
|
213
|
-
})
|
|
214
|
-
]
|
|
215
|
-
})
|
|
216
|
-
]
|
|
217
|
-
})
|
|
218
|
-
]
|
|
219
|
-
}) : /* @__PURE__ */ jsxs("div", {
|
|
220
|
-
className: "flex items-center gap-3 rounded-xl border border-emerald-500/20 bg-emerald-500/5 p-4 text-sm",
|
|
221
|
-
children: [
|
|
222
|
-
/* @__PURE__ */ jsx(Checkbox, {
|
|
223
|
-
checked: true,
|
|
224
|
-
onCheckedChange: () => {},
|
|
225
|
-
"aria-label": "Managed"
|
|
226
|
-
}),
|
|
227
|
-
/* @__PURE__ */ jsxs("div", {
|
|
228
|
-
children: [
|
|
229
|
-
/* @__PURE__ */ jsx("p", {
|
|
230
|
-
className: "font-semibold",
|
|
231
|
-
children: "Managed encryption enabled"
|
|
232
|
-
}),
|
|
233
|
-
/* @__PURE__ */ jsx("p", {
|
|
234
|
-
className: "text-muted-foreground",
|
|
235
|
-
children: "Secrets are encrypted server-side for this tenant."
|
|
236
|
-
})
|
|
237
|
-
]
|
|
238
|
-
})
|
|
239
|
-
]
|
|
240
|
-
}),
|
|
241
|
-
/* @__PURE__ */ jsxs("div", {
|
|
242
|
-
className: "space-y-1 text-sm",
|
|
243
|
-
children: [
|
|
244
|
-
/* @__PURE__ */ jsx(Label, {
|
|
245
|
-
htmlFor: "config",
|
|
246
|
-
className: "font-semibold",
|
|
247
|
-
children: "Configuration (JSON)"
|
|
248
|
-
}),
|
|
249
|
-
/* @__PURE__ */ jsx(Textarea, {
|
|
250
|
-
id: "config",
|
|
251
|
-
name: "config",
|
|
252
|
-
className: "min-h-[140px] w-full font-mono text-sm",
|
|
253
|
-
value: values.config,
|
|
254
|
-
onChange: handleChange
|
|
255
|
-
})
|
|
256
|
-
]
|
|
257
|
-
}),
|
|
258
|
-
/* @__PURE__ */ jsxs("div", {
|
|
259
|
-
className: "flex flex-wrap items-center gap-3",
|
|
260
|
-
children: [
|
|
261
|
-
/* @__PURE__ */ jsxs(Button, {
|
|
262
|
-
variant: "ghost",
|
|
263
|
-
onPress: () => onTestConnection?.(values),
|
|
264
|
-
disabled: isTesting,
|
|
265
|
-
children: [
|
|
266
|
-
/* @__PURE__ */ jsx(TestTube2, {
|
|
267
|
-
className: "h-4 w-4"
|
|
268
|
-
}),
|
|
269
|
-
"Test connection"
|
|
270
|
-
]
|
|
271
|
-
}),
|
|
272
|
-
/* @__PURE__ */ jsx(Button, {
|
|
273
|
-
variant: "default",
|
|
274
|
-
onPress: () => onSave?.(values),
|
|
275
|
-
disabled: isSaving,
|
|
276
|
-
children: "Save settings"
|
|
277
|
-
})
|
|
278
|
-
]
|
|
279
|
-
})
|
|
280
|
-
]
|
|
281
|
-
});
|
|
282
|
-
}
|
|
283
|
-
export {
|
|
284
|
-
IntegrationSettings
|
|
285
|
-
};
|
|
3
|
+
}`}),G=(E)=>{let F=E.target,{name:$,value:w}=F;J((y)=>({...y,[$]:w}))};return q("div",{className:"space-y-4 rounded-2xl border border-border bg-card p-4",children:[q("header",{className:"flex flex-wrap items-center justify-between gap-3",children:[q("div",{children:[q("p",{className:"font-semibold text-sm uppercase tracking-wide",children:[W," credentials"]}),f("p",{className:"text-muted-foreground text-sm",children:"Store encrypted keys with BYOK and run safe connection tests."})]}),f(m,{className:"h-5 w-5 text-muted-foreground"})]}),f("div",{className:"grid gap-4 md:grid-cols-2",children:q("div",{className:"space-y-2",children:[f(D,{htmlFor:"ownershipMode",children:"Ownership"}),q(O,{value:z.ownershipMode??"managed",onValueChange:(E)=>J((F)=>({...F,ownershipMode:E})),children:[f(Q,{id:"ownershipMode",className:"w-full",children:f(R,{})}),q(P,{children:[f(H,{value:"managed",children:"Managed (store encrypted)"}),f(H,{value:"byok",children:"BYOK (store secret reference)"})]})]})]})}),q("div",{className:"grid gap-4 md:grid-cols-2",children:[q("div",{className:"space-y-1 text-sm",children:[f(D,{htmlFor:"apiKey",className:"font-semibold",children:"API key"}),q("div",{className:"relative",children:[f(k,{className:"pointer-events-none absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),f(M,{type:"text",name:"apiKey",id:"apiKey",className:"w-full py-2 pr-3 pl-9",value:z.apiKey,onChange:G,required:!0})]})]}),q("div",{className:"space-y-1 text-sm",children:[f(D,{htmlFor:"secret",className:"font-semibold",children:"Secret"}),f(M,{type:"password",id:"secret",name:"secret",className:"w-full px-3 py-2",value:z.secret,onChange:G})]})]}),z.ownershipMode==="byok"?q("div",{className:"space-y-4 rounded-xl border border-blue-500/20 bg-blue-500/5 p-4",children:[f("p",{className:"font-semibold text-sm",children:"BYOK secret reference"}),q("div",{className:"grid gap-4 md:grid-cols-2",children:[q("div",{className:"space-y-2",children:[f(D,{htmlFor:"secretProvider",children:"Secret provider"}),q(O,{value:z.secretProvider??"env",onValueChange:(E)=>J((F)=>({...F,secretProvider:E})),children:[f(Q,{id:"secretProvider",className:"w-full",children:f(R,{})}),q(P,{children:[f(H,{value:"env",children:"Environment"}),f(H,{value:"gcp",children:"GCP Secret Manager"})]})]})]}),q("div",{className:"space-y-2",children:[f(D,{htmlFor:"secretRef",children:"Secret reference"}),f(M,{id:"secretRef",name:"secretRef",placeholder:z.secretProvider==="gcp"?"gcp://projects/.../secrets/...":"env://MY_TOKEN_ENV_VAR",value:z.secretRef??"",onChange:G})]})]})]}):q("div",{className:"flex items-center gap-3 rounded-xl border border-emerald-500/20 bg-emerald-500/5 p-4 text-sm",children:[f(B,{checked:!0,onCheckedChange:()=>{},"aria-label":"Managed"}),q("div",{children:[f("p",{className:"font-semibold",children:"Managed encryption enabled"}),f("p",{className:"text-muted-foreground",children:"Secrets are encrypted server-side for this tenant."})]})]}),q("div",{className:"space-y-1 text-sm",children:[f(D,{htmlFor:"config",className:"font-semibold",children:"Configuration (JSON)"}),f(K,{id:"config",name:"config",className:"min-h-[140px] w-full font-mono text-sm",value:z.config,onChange:G})]}),q("div",{className:"flex flex-wrap items-center gap-3",children:[q(N,{variant:"ghost",onPress:()=>X?.(z),disabled:_,children:[f(L,{className:"h-4 w-4"}),"Test connection"]}),f(N,{variant:"default",onPress:()=>Y?.(z),disabled:Z,children:"Save settings"})]})]})}export{h as IntegrationSettings};
|