@contractspec/bundle.library 3.8.9 → 3.8.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +606 -594
- package/CHANGELOG.md +68 -0
- package/dist/application/context-storage/index.js +1 -28
- package/dist/application/index.js +13 -2133
- package/dist/application/mcp/cliMcp.js +4 -452
- package/dist/application/mcp/common.js +1 -193
- package/dist/application/mcp/contractsMcp.js +2 -549
- package/dist/application/mcp/contractsMcpResources.js +2 -123
- package/dist/application/mcp/contractsMcpTools.js +1 -199
- package/dist/application/mcp/docsMcp.catalog.js +3 -381
- package/dist/application/mcp/docsMcp.data.js +1 -147
- package/dist/application/mcp/docsMcp.js +6 -1039
- package/dist/application/mcp/docsMcp.prompts.js +6 -521
- package/dist/application/mcp/docsMcp.reference.js +3 -235
- package/dist/application/mcp/docsMcp.resources.js +3 -519
- package/dist/application/mcp/docsMcp.tools.js +3 -518
- package/dist/application/mcp/index.js +13 -2106
- package/dist/application/mcp/internalMcp.js +2 -410
- package/dist/application/mcp/normalizeMcpRequest.js +1 -21
- package/dist/application/mcp/providerRankingMcp.js +1 -530
- package/dist/bundles/LibraryBundle.js +1 -138
- package/dist/bundles/index.js +1 -138
- package/dist/components/docs/DocsIndexPage.js +2 -912
- package/dist/components/docs/advanced/AdvancedMCPPage.js +4 -271
- package/dist/components/docs/advanced/AdvancedOverlayEditorPage.js +1 -107
- package/dist/components/docs/advanced/AdvancedRenderersPage.js +2 -118
- package/dist/components/docs/advanced/AdvancedSpecExperimentsPage.js +4 -92
- package/dist/components/docs/advanced/AdvancedTelemetryPage.js +2 -373
- package/dist/components/docs/advanced/AdvancedWorkflowMonitoringPage.js +2 -99
- package/dist/components/docs/advanced/index.js +10 -1055
- package/dist/components/docs/architecture/ArchitectureAppConfigPage.js +6 -243
- package/dist/components/docs/architecture/ArchitectureControlPlanePage.js +3 -160
- package/dist/components/docs/architecture/ArchitectureIntegrationBindingPage.js +7 -259
- package/dist/components/docs/architecture/ArchitectureKnowledgeBindingPage.js +6 -374
- package/dist/components/docs/architecture/ArchitectureMultiTenancyPage.js +2 -166
- package/dist/components/docs/architecture/ArchitectureOverviewPage.js +1 -143
- package/dist/components/docs/architecture/index.js +20 -1340
- package/dist/components/docs/comparison/ComparisonAutomationPlatformsPage.js +1 -245
- package/dist/components/docs/comparison/ComparisonEnterprisePlatformsPage.js +1 -230
- package/dist/components/docs/comparison/ComparisonInternalToolBuildersPage.js +1 -245
- package/dist/components/docs/comparison/ComparisonOverviewPage.js +1 -202
- package/dist/components/docs/comparison/ComparisonWindmillPage.js +1 -254
- package/dist/components/docs/comparison/ComparisonWorkflowEnginesPage.js +1 -339
- package/dist/components/docs/comparison/index.js +1 -1510
- package/dist/components/docs/docsManifest.js +1 -611
- package/dist/components/docs/docsManifest.test.d.ts +1 -0
- package/dist/components/docs/ecosystem/IntegrationsPage.js +2 -103
- package/dist/components/docs/ecosystem/PluginsPage.js +13 -179
- package/dist/components/docs/ecosystem/RegistryPage.js +7 -100
- package/dist/components/docs/ecosystem/TemplatesPage.js +3 -141
- package/dist/components/docs/ecosystem/ecosystem.docblocks.js +2 -48
- package/dist/components/docs/ecosystem/index.js +23 -569
- package/dist/components/docs/examples/DocsExamplesPage.js +4 -124
- package/dist/components/docs/examples/ExampleShowcasePage.js +4 -244
- package/dist/components/docs/examples/exampleShowcaseData.js +4 -39
- package/dist/components/docs/examples/index.js +4 -330
- package/dist/components/docs/generated/docs-index.generated.js +1 -5
- package/dist/components/docs/generated/index.js +1 -74
- package/dist/components/docs/generated/loader.js +1 -74
- package/dist/components/docs/getting-started/CLIPage.js +4 -271
- package/dist/components/docs/getting-started/CompatibilityPage.js +1 -173
- package/dist/components/docs/getting-started/DataViewTutorialPage.js +4 -134
- package/dist/components/docs/getting-started/DeveloperToolsPage.js +1 -194
- package/dist/components/docs/getting-started/HelloWorldPage.js +5 -183
- package/dist/components/docs/getting-started/InstallationPage.js +3 -154
- package/dist/components/docs/getting-started/StartHerePage.js +2 -129
- package/dist/components/docs/getting-started/TroubleshootingPage.js +2 -168
- package/dist/components/docs/getting-started/VSCodeExtensionPage.js +1 -432
- package/dist/components/docs/getting-started/getting-started.docblocks.js +4 -41
- package/dist/components/docs/getting-started/index.js +18 -1869
- package/dist/components/docs/guides/GuideCIDiffGatingPage.js +2 -196
- package/dist/components/docs/guides/GuideConnectInRepoPage.d.ts +1 -0
- package/dist/components/docs/guides/GuideConnectInRepoPage.js +44 -0
- package/dist/components/docs/guides/GuideContractTypesPage.js +6 -541
- package/dist/components/docs/guides/GuideDocsPipelinePage.js +3 -207
- package/dist/components/docs/guides/GuideFirstModuleBundlePage.d.ts +1 -0
- package/dist/components/docs/guides/GuideFirstModuleBundlePage.js +76 -0
- package/dist/components/docs/guides/GuideGenerateDocsClientsSchemasPage.js +2 -209
- package/dist/components/docs/guides/GuideHostBuilderWorkbenchPage.d.ts +1 -0
- package/dist/components/docs/guides/GuideHostBuilderWorkbenchPage.js +70 -0
- package/dist/components/docs/guides/GuideImportExistingCodebasesPage.js +8 -754
- package/dist/components/docs/guides/GuideNextjsOneEndpointPage.js +6 -268
- package/dist/components/docs/guides/GuideSpecValidationTypingPage.js +4 -196
- package/dist/components/docs/guides/GuidesIndexPage.js +2 -169
- package/dist/components/docs/guides/guides.docblocks.js +11 -75
- package/dist/components/docs/guides/index.d.ts +3 -0
- package/dist/components/docs/guides/index.js +213 -2428
- package/dist/components/docs/index.js +542 -24297
- package/dist/components/docs/integrations/IntegrationsCircuitBreakersPage.js +2 -42
- package/dist/components/docs/integrations/IntegrationsElevenLabsPage.js +3 -105
- package/dist/components/docs/integrations/IntegrationsGithubPage.js +3 -142
- package/dist/components/docs/integrations/IntegrationsGmailPage.js +3 -109
- package/dist/components/docs/integrations/IntegrationsGoogleCalendarPage.js +3 -79
- package/dist/components/docs/integrations/IntegrationsHealthRoutingPage.js +3 -146
- package/dist/components/docs/integrations/IntegrationsMistralPage.js +5 -150
- package/dist/components/docs/integrations/IntegrationsOpenAIPage.js +5 -140
- package/dist/components/docs/integrations/IntegrationsOverviewPage.js +1 -160
- package/dist/components/docs/integrations/IntegrationsPostmarkPage.js +4 -218
- package/dist/components/docs/integrations/IntegrationsPowensPage.js +4 -300
- package/dist/components/docs/integrations/IntegrationsQdrantPage.js +5 -111
- package/dist/components/docs/integrations/IntegrationsResendPage.js +3 -102
- package/dist/components/docs/integrations/IntegrationsS3Page.js +4 -124
- package/dist/components/docs/integrations/IntegrationsSlackPage.js +3 -144
- package/dist/components/docs/integrations/IntegrationsSpecModelPage.js +7 -290
- package/dist/components/docs/integrations/IntegrationsStripePage.js +6 -327
- package/dist/components/docs/integrations/IntegrationsTwilioPage.js +3 -128
- package/dist/components/docs/integrations/IntegrationsWhatsappMetaPage.js +2 -146
- package/dist/components/docs/integrations/IntegrationsWhatsappTwilioPage.js +2 -156
- package/dist/components/docs/integrations/index.js +52 -3100
- package/dist/components/docs/intent/ContractFirstApiPage.js +2 -126
- package/dist/components/docs/intent/DeterministicCodegenPage.js +2 -148
- package/dist/components/docs/intent/GenerateClientFromSchemaPage.js +7 -207
- package/dist/components/docs/intent/OpenapiAlternativePage.js +3 -201
- package/dist/components/docs/intent/SchemaValidationTypescriptPage.js +4 -144
- package/dist/components/docs/intent/SpecDrivenDevelopmentPage.js +2 -126
- package/dist/components/docs/intent/index.js +15 -1135
- package/dist/components/docs/intent/intent-pages.docblocks.js +1 -201
- package/dist/components/docs/knowledge/KnowledgeCategoriesPage.js +6 -750
- package/dist/components/docs/knowledge/KnowledgeExamplesPage.js +4 -175
- package/dist/components/docs/knowledge/KnowledgeOverviewPage.js +1 -116
- package/dist/components/docs/knowledge/KnowledgeSourcesPage.js +8 -391
- package/dist/components/docs/knowledge/KnowledgeSpacesPage.js +6 -302
- package/dist/components/docs/knowledge/index.js +21 -1730
- package/dist/components/docs/libraries/LibrariesAccessibilityPage.js +3 -198
- package/dist/components/docs/libraries/LibrariesAiAgentPage.js +3 -141
- package/dist/components/docs/libraries/LibrariesAnalyticsPage.js +4 -80
- package/dist/components/docs/libraries/LibrariesContentGenPage.js +2 -100
- package/dist/components/docs/libraries/LibrariesContractsPage.js +2 -284
- package/dist/components/docs/libraries/LibrariesCostTrackingPage.js +3 -112
- package/dist/components/docs/libraries/LibrariesDataBackendPage.js +2 -166
- package/dist/components/docs/libraries/LibrariesDataViewsPage.js +3 -186
- package/dist/components/docs/libraries/LibrariesDesignSystemPage.js +4 -279
- package/dist/components/docs/libraries/LibrariesEvolutionPage.js +4 -127
- package/dist/components/docs/libraries/LibrariesGraphQLPage.js +2 -173
- package/dist/components/docs/libraries/LibrariesGrowthPage.js +3 -88
- package/dist/components/docs/libraries/LibrariesMultiTenancyPage.js +3 -108
- package/dist/components/docs/libraries/LibrariesObservabilityPage.js +5 -130
- package/dist/components/docs/libraries/LibrariesOverlayEnginePage.js +4 -110
- package/dist/components/docs/libraries/LibrariesOverviewPage.js +1 -170
- package/dist/components/docs/libraries/LibrariesPersonalizationPage.js +4 -114
- package/dist/components/docs/libraries/LibrariesProgressiveDeliveryPage.js +3 -132
- package/dist/components/docs/libraries/LibrariesResiliencePage.js +4 -120
- package/dist/components/docs/libraries/LibrariesRuntimePage.js +2 -200
- package/dist/components/docs/libraries/LibrariesSLOPage.js +3 -116
- package/dist/components/docs/libraries/LibrariesSchemaPage.js +3 -273
- package/dist/components/docs/libraries/LibrariesSupportBotPage.js +3 -134
- package/dist/components/docs/libraries/LibrariesTestingPage.js +3 -133
- package/dist/components/docs/libraries/LibrariesUIKitPage.js +2 -230
- package/dist/components/docs/libraries/LibrariesWorkflowComposerPage.js +3 -88
- package/dist/components/docs/libraries/LibrariesWorkflowsPage.js +2 -181
- package/dist/components/docs/libraries/index.js +54 -4147
- package/dist/components/docs/manifesto/ManifestoPage.js +1 -86
- package/dist/components/docs/ops/AutoEvolutionOpsPage.js +2 -132
- package/dist/components/docs/ops/DistributedTracingOpsPage.js +2 -71
- package/dist/components/docs/ops/index.js +3 -202
- package/dist/components/docs/ops/ops-lifecycle.docblocks.js +3 -38
- package/dist/components/docs/ops/ops-runbooks-a.docblocks.js +3 -94
- package/dist/components/docs/ops/ops-runbooks-b.docblocks.js +3 -76
- package/dist/components/docs/ops/ops-slo-tenant.docblocks.js +3 -76
- package/dist/components/docs/ops/ops-top.docs.js +2 -17
- package/dist/components/docs/ops/ops.docs.js +10 -302
- package/dist/components/docs/product/product.docblocks.js +5 -72
- package/dist/components/docs/reference/DocsMarkdownContent.js +2 -196
- package/dist/components/docs/reference/DocsReferenceContent.js +3 -256
- package/dist/components/docs/reference/DocsReferenceIndexClient.js +2 -127
- package/dist/components/docs/reference/DocsReferenceIndexPage.js +2 -206
- package/dist/components/docs/reference/DocsReferencePage.js +3 -265
- package/dist/components/docs/reference/docsMarkdownParser.js +2 -92
- package/dist/components/docs/reference/index.js +4 -470
- package/dist/components/docs/safety/SafetyAuditingPage.js +2 -350
- package/dist/components/docs/safety/SafetyMigrationsPage.js +2 -359
- package/dist/components/docs/safety/SafetyOverviewPage.js +1 -101
- package/dist/components/docs/safety/SafetyPDPPage.js +2 -301
- package/dist/components/docs/safety/SafetySecurityTrustPage.js +1 -206
- package/dist/components/docs/safety/SafetySigningPage.js +3 -90
- package/dist/components/docs/safety/SafetyTenantIsolationPage.js +2 -79
- package/dist/components/docs/safety/index.js +7 -1480
- package/dist/components/docs/shared/StudioPrompt.js +1 -31
- package/dist/components/docs/specs/SpecsBuilderControlPlanePage.d.ts +1 -0
- package/dist/components/docs/specs/SpecsBuilderControlPlanePage.js +34 -0
- package/dist/components/docs/specs/SpecsCapabilitiesPage.js +2 -158
- package/dist/components/docs/specs/SpecsConnectPage.d.ts +1 -0
- package/dist/components/docs/specs/SpecsConnectPage.js +8 -0
- package/dist/components/docs/specs/SpecsDataViewsPage.js +2 -260
- package/dist/components/docs/specs/SpecsModuleBundlesPage.d.ts +1 -0
- package/dist/components/docs/specs/SpecsModuleBundlesPage.js +67 -0
- package/dist/components/docs/specs/SpecsOverlaysPage.js +2 -372
- package/dist/components/docs/specs/SpecsOverviewPage.js +1 -186
- package/dist/components/docs/specs/SpecsPolicyPage.js +3 -420
- package/dist/components/docs/specs/SpecsWorkflowsPage.js +2 -312
- package/dist/components/docs/specs/index.d.ts +3 -0
- package/dist/components/docs/specs/index.js +109 -1702
- package/dist/components/docs/studio/StudioBYOKPage.js +1 -26
- package/dist/components/docs/studio/StudioDeploymentsPage.js +1 -26
- package/dist/components/docs/studio/StudioGettingStartedPage.js +1 -26
- package/dist/components/docs/studio/StudioIntegrationsPage.js +1 -26
- package/dist/components/docs/studio/StudioOverviewPage.js +1 -157
- package/dist/components/docs/studio/StudioVisualBuilderPage.js +1 -26
- package/dist/components/docs/studio/index.js +1 -282
- package/dist/components/docs/tech/contracts/tech-docs.docblocks.js +2 -19
- package/dist/components/integrations/index.js +2 -600
- package/dist/components/integrations/molecules/IntegrationCard.js +1 -100
- package/dist/components/integrations/organisms/IntegrationMarketplace.js +1 -214
- package/dist/components/integrations/organisms/IntegrationSettings.js +2 -284
- package/dist/components/integrations/organisms/KnowledgeSourceList.js +1 -103
- package/dist/components/legal/PrivacyTemplate.js +1 -1025
- package/dist/components/legal/TermsTemplate.js +1 -941
- package/dist/components/legal/index.js +1 -1963
- package/dist/components/shared/FeatureGateNotice.js +1 -38
- package/dist/components/shared/index.js +1 -38
- package/dist/components/shell/WorkspaceHeader.js +1 -100
- package/dist/components/shell/WorkspaceProjectShellLayout.js +1 -222
- package/dist/components/shell/WorkspaceShellRenderer.js +1 -228
- package/dist/components/shell/WorkspaceSidebar.js +1 -68
- package/dist/components/shell/index.js +1 -287
- package/dist/components/templates/engine/index.js +1 -39
- package/dist/components/templates/index.js +11 -965
- package/dist/components/templates/messaging/ConversationList.js +2 -83
- package/dist/components/templates/messaging/MessageComposer.js +4 -150
- package/dist/components/templates/messaging/MessageThread.js +3 -83
- package/dist/components/templates/messaging/MessagingWorkspace.js +5 -265
- package/dist/components/templates/messaging/index.js +5 -269
- package/dist/components/templates/recipes/LanguageSwitcher.js +1 -16
- package/dist/components/templates/recipes/RecipeCard.js +1 -80
- package/dist/components/templates/recipes/RecipeDetail.js +1 -74
- package/dist/components/templates/recipes/RecipeList.js +3 -245
- package/dist/components/templates/recipes/index.js +3 -248
- package/dist/components/templates/todos/FilterBar.js +1 -107
- package/dist/components/templates/todos/TaskForm.js +2 -158
- package/dist/components/templates/todos/TaskItem.js +1 -77
- package/dist/components/templates/todos/TaskList.js +5 -449
- package/dist/components/templates/todos/index.js +5 -452
- package/dist/config/contractspec-blueprint.js +1 -123
- package/dist/config/contractspec-branding.js +1 -44
- package/dist/config/contractspec-routes.js +1 -24
- package/dist/config/index.js +1 -126
- package/dist/features/contracts-registry.js +1 -178
- package/dist/features/docs/docs.contracts.js +1 -17
- package/dist/features/docs/index.js +1 -17
- package/dist/features/docs.feature.js +1 -33
- package/dist/features/index.js +1 -315
- package/dist/features/mcp.feature.js +1 -30
- package/dist/features/presentations.feature.js +1 -33
- package/dist/features/registry.js +1 -116
- package/dist/index.js +556 -28580
- package/dist/infrastructure/elysia/index.js +1 -35
- package/dist/infrastructure/elysia/logger.js +1 -35
- package/dist/infrastructure/index.js +1 -35
- package/dist/libs/email/client.js +1 -114
- package/dist/libs/email/contact.js +12 -165
- package/dist/libs/email/newsletter.js +6 -167
- package/dist/libs/email/types.js +0 -2
- package/dist/libs/email/utils.js +2 -8
- package/dist/libs/email/waitlist-application.js +28 -209
- package/dist/libs/email/waitlist.js +6 -167
- package/dist/libs/email.js +46 -363
- package/dist/libs/posthog/client.js +1 -63
- package/dist/libs/posthog/native.js +1 -23
- package/dist/libs/posthog/server.js +1 -13
- package/dist/libs/pricing-examples.js +1 -18
- package/dist/node/application/context-storage/index.js +1 -28
- package/dist/node/application/index.js +13 -2133
- package/dist/node/application/mcp/cliMcp.js +4 -452
- package/dist/node/application/mcp/common.js +1 -193
- package/dist/node/application/mcp/contractsMcp.js +2 -549
- package/dist/node/application/mcp/contractsMcpResources.js +2 -123
- package/dist/node/application/mcp/contractsMcpTools.js +1 -199
- package/dist/node/application/mcp/docsMcp.catalog.js +3 -381
- package/dist/node/application/mcp/docsMcp.data.js +1 -147
- package/dist/node/application/mcp/docsMcp.js +6 -1039
- package/dist/node/application/mcp/docsMcp.prompts.js +6 -521
- package/dist/node/application/mcp/docsMcp.reference.js +3 -235
- package/dist/node/application/mcp/docsMcp.resources.js +3 -519
- package/dist/node/application/mcp/docsMcp.tools.js +3 -518
- package/dist/node/application/mcp/index.js +13 -2106
- package/dist/node/application/mcp/internalMcp.js +2 -410
- package/dist/node/application/mcp/normalizeMcpRequest.js +1 -21
- package/dist/node/application/mcp/providerRankingMcp.js +1 -530
- package/dist/node/bundles/LibraryBundle.js +1 -138
- package/dist/node/bundles/index.js +1 -138
- package/dist/node/components/docs/DocsIndexPage.js +2 -912
- package/dist/node/components/docs/advanced/AdvancedMCPPage.js +4 -271
- package/dist/node/components/docs/advanced/AdvancedOverlayEditorPage.js +1 -107
- package/dist/node/components/docs/advanced/AdvancedRenderersPage.js +2 -118
- package/dist/node/components/docs/advanced/AdvancedSpecExperimentsPage.js +4 -92
- package/dist/node/components/docs/advanced/AdvancedTelemetryPage.js +2 -373
- package/dist/node/components/docs/advanced/AdvancedWorkflowMonitoringPage.js +2 -99
- package/dist/node/components/docs/advanced/index.js +10 -1055
- package/dist/node/components/docs/architecture/ArchitectureAppConfigPage.js +6 -243
- package/dist/node/components/docs/architecture/ArchitectureControlPlanePage.js +3 -160
- package/dist/node/components/docs/architecture/ArchitectureIntegrationBindingPage.js +7 -259
- package/dist/node/components/docs/architecture/ArchitectureKnowledgeBindingPage.js +6 -374
- package/dist/node/components/docs/architecture/ArchitectureMultiTenancyPage.js +2 -166
- package/dist/node/components/docs/architecture/ArchitectureOverviewPage.js +1 -143
- package/dist/node/components/docs/architecture/index.js +20 -1340
- package/dist/node/components/docs/comparison/ComparisonAutomationPlatformsPage.js +1 -245
- package/dist/node/components/docs/comparison/ComparisonEnterprisePlatformsPage.js +1 -230
- package/dist/node/components/docs/comparison/ComparisonInternalToolBuildersPage.js +1 -245
- package/dist/node/components/docs/comparison/ComparisonOverviewPage.js +1 -202
- package/dist/node/components/docs/comparison/ComparisonWindmillPage.js +1 -254
- package/dist/node/components/docs/comparison/ComparisonWorkflowEnginesPage.js +1 -339
- package/dist/node/components/docs/comparison/index.js +1 -1510
- package/dist/node/components/docs/docsManifest.js +1 -611
- package/dist/node/components/docs/ecosystem/IntegrationsPage.js +2 -103
- package/dist/node/components/docs/ecosystem/PluginsPage.js +13 -179
- package/dist/node/components/docs/ecosystem/RegistryPage.js +7 -100
- package/dist/node/components/docs/ecosystem/TemplatesPage.js +3 -141
- package/dist/node/components/docs/ecosystem/ecosystem.docblocks.js +2 -48
- package/dist/node/components/docs/ecosystem/index.js +23 -569
- package/dist/node/components/docs/examples/DocsExamplesPage.js +4 -124
- package/dist/node/components/docs/examples/ExampleShowcasePage.js +4 -244
- package/dist/node/components/docs/examples/exampleShowcaseData.js +4 -39
- package/dist/node/components/docs/examples/index.js +4 -330
- package/dist/node/components/docs/generated/docs-index.generated.js +1 -5
- package/dist/node/components/docs/generated/index.js +1 -74
- package/dist/node/components/docs/generated/loader.js +1 -74
- package/dist/node/components/docs/getting-started/CLIPage.js +4 -271
- package/dist/node/components/docs/getting-started/CompatibilityPage.js +1 -173
- package/dist/node/components/docs/getting-started/DataViewTutorialPage.js +4 -134
- package/dist/node/components/docs/getting-started/DeveloperToolsPage.js +1 -194
- package/dist/node/components/docs/getting-started/HelloWorldPage.js +5 -183
- package/dist/node/components/docs/getting-started/InstallationPage.js +3 -154
- package/dist/node/components/docs/getting-started/StartHerePage.js +2 -129
- package/dist/node/components/docs/getting-started/TroubleshootingPage.js +2 -168
- package/dist/node/components/docs/getting-started/VSCodeExtensionPage.js +1 -432
- package/dist/node/components/docs/getting-started/getting-started.docblocks.js +4 -41
- package/dist/node/components/docs/getting-started/index.js +18 -1869
- package/dist/node/components/docs/guides/GuideCIDiffGatingPage.js +2 -196
- package/dist/node/components/docs/guides/GuideConnectInRepoPage.js +43 -0
- package/dist/node/components/docs/guides/GuideContractTypesPage.js +6 -541
- package/dist/node/components/docs/guides/GuideDocsPipelinePage.js +3 -207
- package/dist/node/components/docs/guides/GuideFirstModuleBundlePage.js +75 -0
- package/dist/node/components/docs/guides/GuideGenerateDocsClientsSchemasPage.js +2 -209
- package/dist/node/components/docs/guides/GuideHostBuilderWorkbenchPage.js +69 -0
- package/dist/node/components/docs/guides/GuideImportExistingCodebasesPage.js +8 -754
- package/dist/node/components/docs/guides/GuideNextjsOneEndpointPage.js +6 -268
- package/dist/node/components/docs/guides/GuideSpecValidationTypingPage.js +4 -196
- package/dist/node/components/docs/guides/GuidesIndexPage.js +2 -169
- package/dist/node/components/docs/guides/guides.docblocks.js +11 -75
- package/dist/node/components/docs/guides/index.js +213 -2428
- package/dist/node/components/docs/index.js +542 -24297
- package/dist/node/components/docs/integrations/IntegrationsCircuitBreakersPage.js +2 -42
- package/dist/node/components/docs/integrations/IntegrationsElevenLabsPage.js +3 -105
- package/dist/node/components/docs/integrations/IntegrationsGithubPage.js +3 -142
- package/dist/node/components/docs/integrations/IntegrationsGmailPage.js +3 -109
- package/dist/node/components/docs/integrations/IntegrationsGoogleCalendarPage.js +3 -79
- package/dist/node/components/docs/integrations/IntegrationsHealthRoutingPage.js +3 -146
- package/dist/node/components/docs/integrations/IntegrationsMistralPage.js +5 -150
- package/dist/node/components/docs/integrations/IntegrationsOpenAIPage.js +5 -140
- package/dist/node/components/docs/integrations/IntegrationsOverviewPage.js +1 -160
- package/dist/node/components/docs/integrations/IntegrationsPostmarkPage.js +4 -218
- package/dist/node/components/docs/integrations/IntegrationsPowensPage.js +4 -300
- package/dist/node/components/docs/integrations/IntegrationsQdrantPage.js +5 -111
- package/dist/node/components/docs/integrations/IntegrationsResendPage.js +3 -102
- package/dist/node/components/docs/integrations/IntegrationsS3Page.js +4 -124
- package/dist/node/components/docs/integrations/IntegrationsSlackPage.js +3 -144
- package/dist/node/components/docs/integrations/IntegrationsSpecModelPage.js +7 -290
- package/dist/node/components/docs/integrations/IntegrationsStripePage.js +6 -327
- package/dist/node/components/docs/integrations/IntegrationsTwilioPage.js +3 -128
- package/dist/node/components/docs/integrations/IntegrationsWhatsappMetaPage.js +2 -146
- package/dist/node/components/docs/integrations/IntegrationsWhatsappTwilioPage.js +2 -156
- package/dist/node/components/docs/integrations/index.js +52 -3100
- package/dist/node/components/docs/intent/ContractFirstApiPage.js +2 -126
- package/dist/node/components/docs/intent/DeterministicCodegenPage.js +2 -148
- package/dist/node/components/docs/intent/GenerateClientFromSchemaPage.js +7 -207
- package/dist/node/components/docs/intent/OpenapiAlternativePage.js +3 -201
- package/dist/node/components/docs/intent/SchemaValidationTypescriptPage.js +4 -144
- package/dist/node/components/docs/intent/SpecDrivenDevelopmentPage.js +2 -126
- package/dist/node/components/docs/intent/index.js +15 -1135
- package/dist/node/components/docs/intent/intent-pages.docblocks.js +1 -201
- package/dist/node/components/docs/knowledge/KnowledgeCategoriesPage.js +6 -750
- package/dist/node/components/docs/knowledge/KnowledgeExamplesPage.js +4 -175
- package/dist/node/components/docs/knowledge/KnowledgeOverviewPage.js +1 -116
- package/dist/node/components/docs/knowledge/KnowledgeSourcesPage.js +8 -391
- package/dist/node/components/docs/knowledge/KnowledgeSpacesPage.js +6 -302
- package/dist/node/components/docs/knowledge/index.js +21 -1730
- package/dist/node/components/docs/libraries/LibrariesAccessibilityPage.js +3 -198
- package/dist/node/components/docs/libraries/LibrariesAiAgentPage.js +3 -141
- package/dist/node/components/docs/libraries/LibrariesAnalyticsPage.js +4 -80
- package/dist/node/components/docs/libraries/LibrariesContentGenPage.js +2 -100
- package/dist/node/components/docs/libraries/LibrariesContractsPage.js +2 -284
- package/dist/node/components/docs/libraries/LibrariesCostTrackingPage.js +3 -112
- package/dist/node/components/docs/libraries/LibrariesDataBackendPage.js +2 -166
- package/dist/node/components/docs/libraries/LibrariesDataViewsPage.js +3 -186
- package/dist/node/components/docs/libraries/LibrariesDesignSystemPage.js +4 -279
- package/dist/node/components/docs/libraries/LibrariesEvolutionPage.js +4 -127
- package/dist/node/components/docs/libraries/LibrariesGraphQLPage.js +2 -173
- package/dist/node/components/docs/libraries/LibrariesGrowthPage.js +3 -88
- package/dist/node/components/docs/libraries/LibrariesMultiTenancyPage.js +3 -108
- package/dist/node/components/docs/libraries/LibrariesObservabilityPage.js +5 -130
- package/dist/node/components/docs/libraries/LibrariesOverlayEnginePage.js +4 -110
- package/dist/node/components/docs/libraries/LibrariesOverviewPage.js +1 -170
- package/dist/node/components/docs/libraries/LibrariesPersonalizationPage.js +4 -114
- package/dist/node/components/docs/libraries/LibrariesProgressiveDeliveryPage.js +3 -132
- package/dist/node/components/docs/libraries/LibrariesResiliencePage.js +4 -120
- package/dist/node/components/docs/libraries/LibrariesRuntimePage.js +2 -200
- package/dist/node/components/docs/libraries/LibrariesSLOPage.js +3 -116
- package/dist/node/components/docs/libraries/LibrariesSchemaPage.js +3 -273
- package/dist/node/components/docs/libraries/LibrariesSupportBotPage.js +3 -134
- package/dist/node/components/docs/libraries/LibrariesTestingPage.js +3 -133
- package/dist/node/components/docs/libraries/LibrariesUIKitPage.js +2 -230
- package/dist/node/components/docs/libraries/LibrariesWorkflowComposerPage.js +3 -88
- package/dist/node/components/docs/libraries/LibrariesWorkflowsPage.js +2 -181
- package/dist/node/components/docs/libraries/index.js +54 -4147
- package/dist/node/components/docs/manifesto/ManifestoPage.js +1 -86
- package/dist/node/components/docs/ops/AutoEvolutionOpsPage.js +2 -132
- package/dist/node/components/docs/ops/DistributedTracingOpsPage.js +2 -71
- package/dist/node/components/docs/ops/index.js +3 -202
- package/dist/node/components/docs/ops/ops-lifecycle.docblocks.js +3 -38
- package/dist/node/components/docs/ops/ops-runbooks-a.docblocks.js +3 -94
- package/dist/node/components/docs/ops/ops-runbooks-b.docblocks.js +3 -76
- package/dist/node/components/docs/ops/ops-slo-tenant.docblocks.js +3 -76
- package/dist/node/components/docs/ops/ops-top.docs.js +2 -17
- package/dist/node/components/docs/ops/ops.docs.js +10 -302
- package/dist/node/components/docs/product/product.docblocks.js +5 -72
- package/dist/node/components/docs/reference/DocsMarkdownContent.js +2 -196
- package/dist/node/components/docs/reference/DocsReferenceContent.js +3 -256
- package/dist/node/components/docs/reference/DocsReferenceIndexClient.js +2 -127
- package/dist/node/components/docs/reference/DocsReferenceIndexPage.js +2 -206
- package/dist/node/components/docs/reference/DocsReferencePage.js +3 -265
- package/dist/node/components/docs/reference/docsMarkdownParser.js +2 -92
- package/dist/node/components/docs/reference/index.js +4 -470
- package/dist/node/components/docs/safety/SafetyAuditingPage.js +2 -350
- package/dist/node/components/docs/safety/SafetyMigrationsPage.js +2 -359
- package/dist/node/components/docs/safety/SafetyOverviewPage.js +1 -101
- package/dist/node/components/docs/safety/SafetyPDPPage.js +2 -301
- package/dist/node/components/docs/safety/SafetySecurityTrustPage.js +1 -206
- package/dist/node/components/docs/safety/SafetySigningPage.js +3 -90
- package/dist/node/components/docs/safety/SafetyTenantIsolationPage.js +2 -79
- package/dist/node/components/docs/safety/index.js +7 -1480
- package/dist/node/components/docs/shared/StudioPrompt.js +1 -31
- package/dist/node/components/docs/specs/SpecsBuilderControlPlanePage.js +33 -0
- package/dist/node/components/docs/specs/SpecsCapabilitiesPage.js +2 -158
- package/dist/node/components/docs/specs/SpecsConnectPage.js +7 -0
- package/dist/node/components/docs/specs/SpecsDataViewsPage.js +2 -260
- package/dist/node/components/docs/specs/SpecsModuleBundlesPage.js +66 -0
- package/dist/node/components/docs/specs/SpecsOverlaysPage.js +2 -372
- package/dist/node/components/docs/specs/SpecsOverviewPage.js +1 -186
- package/dist/node/components/docs/specs/SpecsPolicyPage.js +3 -420
- package/dist/node/components/docs/specs/SpecsWorkflowsPage.js +2 -312
- package/dist/node/components/docs/specs/index.js +109 -1702
- package/dist/node/components/docs/studio/StudioBYOKPage.js +1 -26
- package/dist/node/components/docs/studio/StudioDeploymentsPage.js +1 -26
- package/dist/node/components/docs/studio/StudioGettingStartedPage.js +1 -26
- package/dist/node/components/docs/studio/StudioIntegrationsPage.js +1 -26
- package/dist/node/components/docs/studio/StudioOverviewPage.js +1 -157
- package/dist/node/components/docs/studio/StudioVisualBuilderPage.js +1 -26
- package/dist/node/components/docs/studio/index.js +1 -282
- package/dist/node/components/docs/tech/contracts/tech-docs.docblocks.js +2 -19
- package/dist/node/components/integrations/index.js +2 -600
- package/dist/node/components/integrations/molecules/IntegrationCard.js +1 -100
- package/dist/node/components/integrations/organisms/IntegrationMarketplace.js +1 -214
- package/dist/node/components/integrations/organisms/IntegrationSettings.js +2 -284
- package/dist/node/components/integrations/organisms/KnowledgeSourceList.js +1 -103
- package/dist/node/components/legal/PrivacyTemplate.js +1 -1025
- package/dist/node/components/legal/TermsTemplate.js +1 -941
- package/dist/node/components/legal/index.js +1 -1963
- package/dist/node/components/shared/FeatureGateNotice.js +1 -38
- package/dist/node/components/shared/index.js +1 -38
- package/dist/node/components/shell/WorkspaceHeader.js +1 -100
- package/dist/node/components/shell/WorkspaceProjectShellLayout.js +1 -222
- package/dist/node/components/shell/WorkspaceShellRenderer.js +1 -228
- package/dist/node/components/shell/WorkspaceSidebar.js +1 -68
- package/dist/node/components/shell/index.js +1 -287
- package/dist/node/components/templates/engine/index.js +1 -39
- package/dist/node/components/templates/index.js +11 -965
- package/dist/node/components/templates/messaging/ConversationList.js +2 -83
- package/dist/node/components/templates/messaging/MessageComposer.js +4 -150
- package/dist/node/components/templates/messaging/MessageThread.js +3 -83
- package/dist/node/components/templates/messaging/MessagingWorkspace.js +5 -265
- package/dist/node/components/templates/messaging/index.js +5 -269
- package/dist/node/components/templates/recipes/LanguageSwitcher.js +1 -16
- package/dist/node/components/templates/recipes/RecipeCard.js +1 -80
- package/dist/node/components/templates/recipes/RecipeDetail.js +1 -74
- package/dist/node/components/templates/recipes/RecipeList.js +3 -245
- package/dist/node/components/templates/recipes/index.js +3 -248
- package/dist/node/components/templates/todos/FilterBar.js +1 -107
- package/dist/node/components/templates/todos/TaskForm.js +2 -158
- package/dist/node/components/templates/todos/TaskItem.js +1 -77
- package/dist/node/components/templates/todos/TaskList.js +5 -449
- package/dist/node/components/templates/todos/index.js +5 -452
- package/dist/node/config/contractspec-blueprint.js +1 -123
- package/dist/node/config/contractspec-branding.js +1 -44
- package/dist/node/config/contractspec-routes.js +1 -24
- package/dist/node/config/index.js +1 -126
- package/dist/node/features/contracts-registry.js +1 -178
- package/dist/node/features/docs/docs.contracts.js +1 -17
- package/dist/node/features/docs/index.js +1 -17
- package/dist/node/features/docs.feature.js +1 -33
- package/dist/node/features/index.js +1 -315
- package/dist/node/features/mcp.feature.js +1 -30
- package/dist/node/features/presentations.feature.js +1 -33
- package/dist/node/features/registry.js +1 -116
- package/dist/node/index.js +556 -28580
- package/dist/node/infrastructure/elysia/index.js +1 -35
- package/dist/node/infrastructure/elysia/logger.js +1 -35
- package/dist/node/infrastructure/index.js +1 -35
- package/dist/node/libs/email/client.js +1 -114
- package/dist/node/libs/email/contact.js +12 -165
- package/dist/node/libs/email/newsletter.js +6 -167
- package/dist/node/libs/email/types.js +0 -2
- package/dist/node/libs/email/utils.js +2 -8
- package/dist/node/libs/email/waitlist-application.js +28 -209
- package/dist/node/libs/email/waitlist.js +6 -167
- package/dist/node/libs/email.js +46 -363
- package/dist/node/libs/posthog/client.js +1 -63
- package/dist/node/libs/posthog/native.js +1 -23
- package/dist/node/libs/posthog/server.js +1 -13
- package/dist/node/libs/pricing-examples.js +1 -18
- package/dist/node/presentation/features/atoms/FeatureIcon/FeatureIcon.js +1 -97
- package/dist/node/presentation/features/atoms/FeatureIcon/index.js +1 -97
- package/dist/node/presentation/features/atoms/index.js +1 -97
- package/dist/node/presentation/features/hooks/index.js +1 -397
- package/dist/node/presentation/features/hooks/useContractsRegistry.js +1 -289
- package/dist/node/presentation/features/hooks/useFeatureFilters.js +1 -75
- package/dist/node/presentation/features/hooks/useFeatureRegistry.js +1 -147
- package/dist/node/presentation/features/hooks/useRelatedDocs.js +1 -28
- package/dist/node/presentation/features/index.js +1 -3063
- package/dist/node/presentation/features/molecules/FeatureCard/FeatureCard.js +1 -366
- package/dist/node/presentation/features/molecules/FeatureCard/index.js +1 -366
- package/dist/node/presentation/features/molecules/FeatureCategoryHeader/FeatureCategoryHeader.js +1 -50
- package/dist/node/presentation/features/molecules/FeatureCategoryHeader/index.js +1 -50
- package/dist/node/presentation/features/molecules/FeatureFilters/FeatureFilters.js +1 -92
- package/dist/node/presentation/features/molecules/FeatureFilters/index.js +1 -92
- package/dist/node/presentation/features/molecules/FeatureHoverPreview/FeatureHoverPreview.js +1 -176
- package/dist/node/presentation/features/molecules/FeatureHoverPreview/index.js +1 -176
- package/dist/node/presentation/features/molecules/index.js +1 -505
- package/dist/node/presentation/features/organisms/FeatureDataViewsList.js +1 -304
- package/dist/node/presentation/features/organisms/FeatureDetail/FeatureDetail.js +1 -154
- package/dist/node/presentation/features/organisms/FeatureDetail/index.js +1 -154
- package/dist/node/presentation/features/organisms/FeatureDiscovery/FeatureDiscovery.js +1 -909
- package/dist/node/presentation/features/organisms/FeatureDiscovery/index.js +1 -909
- package/dist/node/presentation/features/organisms/FeatureEventsList.js +1 -302
- package/dist/node/presentation/features/organisms/FeatureFormsList.js +1 -302
- package/dist/node/presentation/features/organisms/FeatureOperationsList.js +1 -180
- package/dist/node/presentation/features/organisms/FeaturePresentationsList.js +1 -304
- package/dist/node/presentation/features/organisms/index.js +1 -1359
- package/dist/node/presentation/features/templates/FeatureDataViewDetailTemplate/FeatureDataViewDetailTemplate.js +1 -332
- package/dist/node/presentation/features/templates/FeatureDataViewDetailTemplate/index.js +1 -332
- package/dist/node/presentation/features/templates/FeatureDataViewsTemplate/FeatureDataViewsTemplate.js +1 -342
- package/dist/node/presentation/features/templates/FeatureDataViewsTemplate/index.js +1 -342
- package/dist/node/presentation/features/templates/FeatureEventDetailTemplate/FeatureEventDetailTemplate.js +1 -303
- package/dist/node/presentation/features/templates/FeatureEventDetailTemplate/index.js +1 -303
- package/dist/node/presentation/features/templates/FeatureEventsTemplate/FeatureEventsTemplate.js +1 -340
- package/dist/node/presentation/features/templates/FeatureEventsTemplate/index.js +1 -340
- package/dist/node/presentation/features/templates/FeatureFormDetailTemplate/FeatureFormDetailTemplate.js +1 -329
- package/dist/node/presentation/features/templates/FeatureFormDetailTemplate/index.js +1 -329
- package/dist/node/presentation/features/templates/FeatureFormsTemplate/FeatureFormsTemplate.js +1 -340
- package/dist/node/presentation/features/templates/FeatureFormsTemplate/index.js +1 -340
- package/dist/node/presentation/features/templates/FeatureOperationDetailTemplate/FeatureOperationDetailTemplate.js +1 -302
- package/dist/node/presentation/features/templates/FeatureOperationDetailTemplate/index.js +1 -302
- package/dist/node/presentation/features/templates/FeatureOperationsTemplate/FeatureOperationsTemplate.js +1 -218
- package/dist/node/presentation/features/templates/FeatureOperationsTemplate/index.js +1 -218
- package/dist/node/presentation/features/templates/FeatureOverviewTemplate/FeatureOverviewTemplate.js +1 -187
- package/dist/node/presentation/features/templates/FeatureOverviewTemplate/index.js +1 -187
- package/dist/node/presentation/features/templates/FeaturePresentationDetailTemplate/FeaturePresentationDetailTemplate.js +1 -306
- package/dist/node/presentation/features/templates/FeaturePresentationDetailTemplate/index.js +1 -306
- package/dist/node/presentation/features/templates/FeaturePresentationsTemplate/FeaturePresentationsTemplate.js +1 -342
- package/dist/node/presentation/features/templates/FeaturePresentationsTemplate/index.js +1 -342
- package/dist/presentation/features/atoms/FeatureIcon/FeatureIcon.js +1 -97
- package/dist/presentation/features/atoms/FeatureIcon/index.js +1 -97
- package/dist/presentation/features/atoms/index.js +1 -97
- package/dist/presentation/features/hooks/index.js +1 -397
- package/dist/presentation/features/hooks/useContractsRegistry.js +1 -289
- package/dist/presentation/features/hooks/useFeatureFilters.js +1 -75
- package/dist/presentation/features/hooks/useFeatureRegistry.js +1 -147
- package/dist/presentation/features/hooks/useRelatedDocs.js +1 -28
- package/dist/presentation/features/index.js +1 -3063
- package/dist/presentation/features/molecules/FeatureCard/FeatureCard.js +1 -366
- package/dist/presentation/features/molecules/FeatureCard/index.js +1 -366
- package/dist/presentation/features/molecules/FeatureCategoryHeader/FeatureCategoryHeader.js +1 -50
- package/dist/presentation/features/molecules/FeatureCategoryHeader/index.js +1 -50
- package/dist/presentation/features/molecules/FeatureFilters/FeatureFilters.js +1 -92
- package/dist/presentation/features/molecules/FeatureFilters/index.js +1 -92
- package/dist/presentation/features/molecules/FeatureHoverPreview/FeatureHoverPreview.js +1 -176
- package/dist/presentation/features/molecules/FeatureHoverPreview/index.js +1 -176
- package/dist/presentation/features/molecules/index.js +1 -505
- package/dist/presentation/features/organisms/FeatureDataViewsList.js +1 -304
- package/dist/presentation/features/organisms/FeatureDetail/FeatureDetail.js +1 -154
- package/dist/presentation/features/organisms/FeatureDetail/index.js +1 -154
- package/dist/presentation/features/organisms/FeatureDiscovery/FeatureDiscovery.js +1 -909
- package/dist/presentation/features/organisms/FeatureDiscovery/index.js +1 -909
- package/dist/presentation/features/organisms/FeatureEventsList.js +1 -302
- package/dist/presentation/features/organisms/FeatureFormsList.js +1 -302
- package/dist/presentation/features/organisms/FeatureOperationsList.js +1 -180
- package/dist/presentation/features/organisms/FeaturePresentationsList.js +1 -304
- package/dist/presentation/features/organisms/index.js +1 -1359
- package/dist/presentation/features/templates/FeatureDataViewDetailTemplate/FeatureDataViewDetailTemplate.js +1 -332
- package/dist/presentation/features/templates/FeatureDataViewDetailTemplate/index.js +1 -332
- package/dist/presentation/features/templates/FeatureDataViewsTemplate/FeatureDataViewsTemplate.js +1 -342
- package/dist/presentation/features/templates/FeatureDataViewsTemplate/index.js +1 -342
- package/dist/presentation/features/templates/FeatureEventDetailTemplate/FeatureEventDetailTemplate.js +1 -303
- package/dist/presentation/features/templates/FeatureEventDetailTemplate/index.js +1 -303
- package/dist/presentation/features/templates/FeatureEventsTemplate/FeatureEventsTemplate.js +1 -340
- package/dist/presentation/features/templates/FeatureEventsTemplate/index.js +1 -340
- package/dist/presentation/features/templates/FeatureFormDetailTemplate/FeatureFormDetailTemplate.js +1 -329
- package/dist/presentation/features/templates/FeatureFormDetailTemplate/index.js +1 -329
- package/dist/presentation/features/templates/FeatureFormsTemplate/FeatureFormsTemplate.js +1 -340
- package/dist/presentation/features/templates/FeatureFormsTemplate/index.js +1 -340
- package/dist/presentation/features/templates/FeatureOperationDetailTemplate/FeatureOperationDetailTemplate.js +1 -302
- package/dist/presentation/features/templates/FeatureOperationDetailTemplate/index.js +1 -302
- package/dist/presentation/features/templates/FeatureOperationsTemplate/FeatureOperationsTemplate.js +1 -218
- package/dist/presentation/features/templates/FeatureOperationsTemplate/index.js +1 -218
- package/dist/presentation/features/templates/FeatureOverviewTemplate/FeatureOverviewTemplate.js +1 -187
- package/dist/presentation/features/templates/FeatureOverviewTemplate/index.js +1 -187
- package/dist/presentation/features/templates/FeaturePresentationDetailTemplate/FeaturePresentationDetailTemplate.js +1 -306
- package/dist/presentation/features/templates/FeaturePresentationDetailTemplate/index.js +1 -306
- package/dist/presentation/features/templates/FeaturePresentationsTemplate/FeaturePresentationsTemplate.js +1 -342
- package/dist/presentation/features/templates/FeaturePresentationsTemplate/index.js +1 -342
- package/package.json +109 -37
- package/src/components/docs/DocsIndexPage.tsx +55 -0
- package/src/components/docs/architecture/ArchitectureControlPlanePage.tsx +19 -0
- package/src/components/docs/architecture/ArchitectureOverviewPage.tsx +34 -0
- package/src/components/docs/docsManifest.test.ts +70 -0
- package/src/components/docs/docsManifest.ts +71 -1
- package/src/components/docs/ecosystem/PluginsPage.tsx +24 -10
- package/src/components/docs/ecosystem/RegistryPage.tsx +11 -6
- package/src/components/docs/generated/docs-index._common.json +206 -273
- package/src/components/docs/generated/docs-index.control-plane.json +18 -0
- package/src/components/docs/generated/docs-index.defineExample.json +10 -0
- package/src/components/docs/generated/docs-index.manifest.json +22 -12
- package/src/components/docs/generated/docs-index.platform-acp.json +64 -0
- package/src/components/docs/generated/docs-index.platform-agent.json +89 -1
- package/src/components/docs/generated/docs-index.platform-context.json +48 -0
- package/src/components/docs/generated/docs-index.platform-control-plane.json +72 -0
- package/src/components/docs/generated/docs-index.platform-database.json +40 -0
- package/src/components/docs/generated/docs-index.platform-docs.json +64 -0
- package/src/components/docs/generated/docs-index.platform-provider-ranking.json +89 -1
- package/src/components/docs/generated/docs-index.pocket-family-office.json +8 -0
- package/src/components/docs/generated/docs-index.unknown.json +8 -0
- package/src/components/docs/guides/GuideConnectInRepoPage.tsx +184 -0
- package/src/components/docs/guides/GuideFirstModuleBundlePage.tsx +182 -0
- package/src/components/docs/guides/GuideHostBuilderWorkbenchPage.tsx +230 -0
- package/src/components/docs/guides/GuidesIndexPage.tsx +21 -0
- package/src/components/docs/guides/index.ts +3 -0
- package/src/components/docs/specs/SpecsBuilderControlPlanePage.tsx +210 -0
- package/src/components/docs/specs/SpecsConnectPage.tsx +162 -0
- package/src/components/docs/specs/SpecsModuleBundlesPage.tsx +223 -0
- package/src/components/docs/specs/SpecsOverlaysPage.tsx +20 -0
- package/src/components/docs/specs/SpecsOverviewPage.tsx +44 -0
- package/src/components/docs/specs/SpecsWorkflowsPage.tsx +9 -1
- package/src/components/docs/specs/index.ts +3 -0
- package/src/components/docs/studio/StudioOverviewPage.tsx +26 -0
- package/src/infrastructure/elysia/logger.ts +11 -3
|
@@ -1,36 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
|
|
3
|
-
import { Logger, LogLevel } from "@contractspec/lib.logger";
|
|
4
|
-
var createAppLogger = () => new Logger({
|
|
5
|
-
level: LogLevel.INFO,
|
|
6
|
-
environment: "production",
|
|
7
|
-
enableTracing: true,
|
|
8
|
-
enableTiming: true,
|
|
9
|
-
enableContext: true,
|
|
10
|
-
enableColors: false
|
|
11
|
-
});
|
|
12
|
-
var appLogger = createAppLogger();
|
|
13
|
-
var dbLogger = new Logger({
|
|
14
|
-
level: LogLevel.WARN,
|
|
15
|
-
environment: "production",
|
|
16
|
-
enableTracing: true,
|
|
17
|
-
enableTiming: true,
|
|
18
|
-
enableContext: true,
|
|
19
|
-
enableColors: false
|
|
20
|
-
});
|
|
21
|
-
var authLogger = new Logger({
|
|
22
|
-
level: LogLevel.INFO,
|
|
23
|
-
environment: "production",
|
|
24
|
-
enableTracing: true,
|
|
25
|
-
enableTiming: true,
|
|
26
|
-
enableContext: true,
|
|
27
|
-
enableColors: false
|
|
28
|
-
});
|
|
29
|
-
export {
|
|
30
|
-
dbLogger,
|
|
31
|
-
createAppLogger,
|
|
32
|
-
authLogger,
|
|
33
|
-
appLogger,
|
|
34
|
-
Logger,
|
|
35
|
-
LogLevel
|
|
36
|
-
};
|
|
2
|
+
import{Logger as x,LogLevel as f}from"@contractspec/lib.logger";function j(){return"production"}var k=()=>new x({level:f.INFO,environment:j(),enableTracing:!0,enableTiming:!0,enableContext:!0,enableColors:!1}),z=k(),B=new x({level:f.WARN,environment:j(),enableTracing:!0,enableTiming:!0,enableContext:!0,enableColors:!1}),C=new x({level:f.INFO,environment:j(),enableTracing:!0,enableTiming:!0,enableContext:!0,enableColors:!1});export{B as dbLogger,k as createAppLogger,C as authLogger,z as appLogger,x as Logger,f as LogLevel};
|
|
@@ -1,36 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
|
|
3
|
-
import { Logger, LogLevel } from "@contractspec/lib.logger";
|
|
4
|
-
var createAppLogger = () => new Logger({
|
|
5
|
-
level: LogLevel.INFO,
|
|
6
|
-
environment: "production",
|
|
7
|
-
enableTracing: true,
|
|
8
|
-
enableTiming: true,
|
|
9
|
-
enableContext: true,
|
|
10
|
-
enableColors: false
|
|
11
|
-
});
|
|
12
|
-
var appLogger = createAppLogger();
|
|
13
|
-
var dbLogger = new Logger({
|
|
14
|
-
level: LogLevel.WARN,
|
|
15
|
-
environment: "production",
|
|
16
|
-
enableTracing: true,
|
|
17
|
-
enableTiming: true,
|
|
18
|
-
enableContext: true,
|
|
19
|
-
enableColors: false
|
|
20
|
-
});
|
|
21
|
-
var authLogger = new Logger({
|
|
22
|
-
level: LogLevel.INFO,
|
|
23
|
-
environment: "production",
|
|
24
|
-
enableTracing: true,
|
|
25
|
-
enableTiming: true,
|
|
26
|
-
enableContext: true,
|
|
27
|
-
enableColors: false
|
|
28
|
-
});
|
|
29
|
-
export {
|
|
30
|
-
dbLogger,
|
|
31
|
-
createAppLogger,
|
|
32
|
-
authLogger,
|
|
33
|
-
appLogger,
|
|
34
|
-
Logger,
|
|
35
|
-
LogLevel
|
|
36
|
-
};
|
|
2
|
+
import{Logger as j,LogLevel as k}from"@contractspec/lib.logger";function q(){return"production"}var x=()=>new j({level:k.INFO,environment:q(),enableTracing:!0,enableTiming:!0,enableContext:!0,enableColors:!1}),B=x(),C=new j({level:k.WARN,environment:q(),enableTracing:!0,enableTiming:!0,enableContext:!0,enableColors:!1}),D=new j({level:k.INFO,environment:q(),enableTracing:!0,enableTiming:!0,enableContext:!0,enableColors:!1});export{C as dbLogger,x as createAppLogger,D as authLogger,B as appLogger,j as Logger,k as LogLevel};
|
|
@@ -1,36 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
|
|
3
|
-
import { Logger, LogLevel } from "@contractspec/lib.logger";
|
|
4
|
-
var createAppLogger = () => new Logger({
|
|
5
|
-
level: LogLevel.INFO,
|
|
6
|
-
environment: "production",
|
|
7
|
-
enableTracing: true,
|
|
8
|
-
enableTiming: true,
|
|
9
|
-
enableContext: true,
|
|
10
|
-
enableColors: false
|
|
11
|
-
});
|
|
12
|
-
var appLogger = createAppLogger();
|
|
13
|
-
var dbLogger = new Logger({
|
|
14
|
-
level: LogLevel.WARN,
|
|
15
|
-
environment: "production",
|
|
16
|
-
enableTracing: true,
|
|
17
|
-
enableTiming: true,
|
|
18
|
-
enableContext: true,
|
|
19
|
-
enableColors: false
|
|
20
|
-
});
|
|
21
|
-
var authLogger = new Logger({
|
|
22
|
-
level: LogLevel.INFO,
|
|
23
|
-
environment: "production",
|
|
24
|
-
enableTracing: true,
|
|
25
|
-
enableTiming: true,
|
|
26
|
-
enableContext: true,
|
|
27
|
-
enableColors: false
|
|
28
|
-
});
|
|
29
|
-
export {
|
|
30
|
-
dbLogger,
|
|
31
|
-
createAppLogger,
|
|
32
|
-
authLogger,
|
|
33
|
-
appLogger,
|
|
34
|
-
Logger,
|
|
35
|
-
LogLevel
|
|
36
|
-
};
|
|
2
|
+
import{Logger as x,LogLevel as f}from"@contractspec/lib.logger";function j(){return"production"}var k=()=>new x({level:f.INFO,environment:j(),enableTracing:!0,enableTiming:!0,enableContext:!0,enableColors:!1}),z=k(),B=new x({level:f.WARN,environment:j(),enableTracing:!0,enableTiming:!0,enableContext:!0,enableColors:!1}),C=new x({level:f.INFO,environment:j(),enableTracing:!0,enableTiming:!0,enableContext:!0,enableColors:!1});export{B as dbLogger,k as createAppLogger,C as authLogger,z as appLogger,x as Logger,f as LogLevel};
|
|
@@ -1,115 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
|
|
3
|
-
import { Logger } from "@contractspec/lib.logger";
|
|
4
|
-
import { createClient, Temv1alpha1 } from "@scaleway/sdk";
|
|
5
|
-
var DEFAULT_FROM = {
|
|
6
|
-
email: "noreply@transactional.contractspec.io",
|
|
7
|
-
name: "ContractSpec"
|
|
8
|
-
};
|
|
9
|
-
var DEFAULT_TEAM_INBOX = {
|
|
10
|
-
email: "contact@contractspec.io",
|
|
11
|
-
name: "ContractSpec Team"
|
|
12
|
-
};
|
|
13
|
-
var DEFAULT_REGION = "fr-par";
|
|
14
|
-
var cachedConfig = null;
|
|
15
|
-
var cachedClient = null;
|
|
16
|
-
var apiFactory = (client) => new Temv1alpha1.API(client);
|
|
17
|
-
var mapRegion = (value) => {
|
|
18
|
-
const normalized = value?.trim().toLowerCase();
|
|
19
|
-
if (normalized === "par" || normalized === "fr-par")
|
|
20
|
-
return "fr-par";
|
|
21
|
-
if (normalized === "ams" || normalized === "nl-ams")
|
|
22
|
-
return "nl-ams";
|
|
23
|
-
if (normalized === "waw" || normalized === "pl-waw")
|
|
24
|
-
return "pl-waw";
|
|
25
|
-
return DEFAULT_REGION;
|
|
26
|
-
};
|
|
27
|
-
var getEmailConfig = () => {
|
|
28
|
-
if (cachedConfig) {
|
|
29
|
-
return { ok: true, config: cachedConfig };
|
|
30
|
-
}
|
|
31
|
-
const accessKey = process.env.SCALEWAY_ACCESS_KEY || process.env.SCALEWAY_ACCESS_KEY_QUEUE;
|
|
32
|
-
const secretKey = process.env.SCALEWAY_SECRET_KEY || process.env.SCALEWAY_SECRET_KEY_QUEUE;
|
|
33
|
-
const projectId = process.env.SCALEWAY_PROJECT_ID;
|
|
34
|
-
if (!accessKey || !secretKey || !projectId) {
|
|
35
|
-
return {
|
|
36
|
-
ok: false,
|
|
37
|
-
errorMessage: "Email service is not configured. Please contact us directly at contact@contractspec.io."
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
const region = mapRegion(process.env.SCALEWAY_REGION);
|
|
41
|
-
cachedConfig = {
|
|
42
|
-
accessKey,
|
|
43
|
-
secretKey,
|
|
44
|
-
projectId,
|
|
45
|
-
region,
|
|
46
|
-
defaultZone: `${region}-1`,
|
|
47
|
-
from: {
|
|
48
|
-
email: process.env.SCALEWAY_EMAIL_FROM_EMAIL ?? DEFAULT_FROM.email,
|
|
49
|
-
name: process.env.SCALEWAY_EMAIL_FROM_NAME ?? DEFAULT_FROM.name
|
|
50
|
-
},
|
|
51
|
-
teamInbox: {
|
|
52
|
-
email: process.env.SCALEWAY_EMAIL_TEAM_EMAIL ?? DEFAULT_TEAM_INBOX.email,
|
|
53
|
-
name: process.env.SCALEWAY_EMAIL_TEAM_NAME ?? DEFAULT_TEAM_INBOX.name
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
return { ok: true, config: cachedConfig };
|
|
57
|
-
};
|
|
58
|
-
var getTemClient = (config) => {
|
|
59
|
-
if (cachedClient) {
|
|
60
|
-
return cachedClient;
|
|
61
|
-
}
|
|
62
|
-
const client = createClient({
|
|
63
|
-
accessKey: config.accessKey,
|
|
64
|
-
secretKey: config.secretKey,
|
|
65
|
-
defaultProjectId: config.projectId,
|
|
66
|
-
defaultRegion: config.region,
|
|
67
|
-
defaultZone: config.defaultZone
|
|
68
|
-
});
|
|
69
|
-
cachedClient = apiFactory(client);
|
|
70
|
-
return cachedClient;
|
|
71
|
-
};
|
|
72
|
-
var sendEmail = async (config, request) => {
|
|
73
|
-
try {
|
|
74
|
-
const client = getTemClient(config);
|
|
75
|
-
await client.createEmail({
|
|
76
|
-
region: config.region,
|
|
77
|
-
projectId: config.projectId,
|
|
78
|
-
from: config.from,
|
|
79
|
-
to: request.to,
|
|
80
|
-
subject: request.subject,
|
|
81
|
-
text: request.text,
|
|
82
|
-
html: request.html || request.text,
|
|
83
|
-
additionalHeaders: request.replyTo ? [{ key: "Reply-To", value: request.replyTo }] : undefined
|
|
84
|
-
});
|
|
85
|
-
return { success: true };
|
|
86
|
-
} catch (error) {
|
|
87
|
-
new Logger().error("scaleway_tem_email_send_failed", {
|
|
88
|
-
context: request.context ?? "email",
|
|
89
|
-
error: error instanceof Error ? error.message : error
|
|
90
|
-
});
|
|
91
|
-
return {
|
|
92
|
-
success: false,
|
|
93
|
-
error,
|
|
94
|
-
errorMessage: "Failed to send email via Scaleway."
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
var __internal = {
|
|
99
|
-
resetCaches() {
|
|
100
|
-
cachedClient = null;
|
|
101
|
-
cachedConfig = null;
|
|
102
|
-
apiFactory = (client) => new Temv1alpha1.API(client);
|
|
103
|
-
},
|
|
104
|
-
setApiFactory(factory) {
|
|
105
|
-
apiFactory = factory;
|
|
106
|
-
},
|
|
107
|
-
setClient(client) {
|
|
108
|
-
cachedClient = client;
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
export {
|
|
112
|
-
sendEmail,
|
|
113
|
-
getEmailConfig,
|
|
114
|
-
__internal
|
|
115
|
-
};
|
|
2
|
+
import{Logger as m}from"@contractspec/lib.logger";import{createClient as E,Temv1alpha1 as s}from"@scaleway/sdk";var c={email:"noreply@transactional.contractspec.io",name:"ContractSpec"},l={email:"contact@contractspec.io",name:"ContractSpec Team"},p="fr-par",a=null,n=null,o=(e)=>new s.API(e),A=(e)=>{let t=e?.trim().toLowerCase();if(t==="par"||t==="fr-par")return"fr-par";if(t==="ams"||t==="nl-ams")return"nl-ams";if(t==="waw"||t==="pl-waw")return"pl-waw";return p},_=()=>{if(a)return{ok:!0,config:a};let e=process.env.SCALEWAY_ACCESS_KEY||process.env.SCALEWAY_ACCESS_KEY_QUEUE,t=process.env.SCALEWAY_SECRET_KEY||process.env.SCALEWAY_SECRET_KEY_QUEUE,r=process.env.SCALEWAY_PROJECT_ID;if(!e||!t||!r)return{ok:!1,errorMessage:"Email service is not configured. Please contact us directly at contact@contractspec.io."};let i=A(process.env.SCALEWAY_REGION);return a={accessKey:e,secretKey:t,projectId:r,region:i,defaultZone:`${i}-1`,from:{email:process.env.SCALEWAY_EMAIL_FROM_EMAIL??c.email,name:process.env.SCALEWAY_EMAIL_FROM_NAME??c.name},teamInbox:{email:process.env.SCALEWAY_EMAIL_TEAM_EMAIL??l.email,name:process.env.SCALEWAY_EMAIL_TEAM_NAME??l.name}},{ok:!0,config:a}},d=(e)=>{if(n)return n;let t=E({accessKey:e.accessKey,secretKey:e.secretKey,defaultProjectId:e.projectId,defaultRegion:e.region,defaultZone:e.defaultZone});return n=o(t),n},f=async(e,t)=>{try{return await d(e).createEmail({region:e.region,projectId:e.projectId,from:e.from,to:t.to,subject:t.subject,text:t.text,html:t.html||t.text,additionalHeaders:t.replyTo?[{key:"Reply-To",value:t.replyTo}]:void 0}),{success:!0}}catch(r){return new m().error("scaleway_tem_email_send_failed",{context:t.context??"email",error:r instanceof Error?r.message:r}),{success:!1,error:r,errorMessage:"Failed to send email via Scaleway."}}},y={resetCaches(){n=null,a=null,o=(e)=>new s.API(e)},setApiFactory(e){o=e},setClient(e){n=e}};export{f as sendEmail,_ as getEmailConfig,y as __internal};
|
|
@@ -1,183 +1,30 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var DEFAULT_FROM = {
|
|
6
|
-
email: "noreply@transactional.contractspec.io",
|
|
7
|
-
name: "ContractSpec"
|
|
8
|
-
};
|
|
9
|
-
var DEFAULT_TEAM_INBOX = {
|
|
10
|
-
email: "contact@contractspec.io",
|
|
11
|
-
name: "ContractSpec Team"
|
|
12
|
-
};
|
|
13
|
-
var DEFAULT_REGION = "fr-par";
|
|
14
|
-
var cachedConfig = null;
|
|
15
|
-
var cachedClient = null;
|
|
16
|
-
var apiFactory = (client) => new Temv1alpha1.API(client);
|
|
17
|
-
var mapRegion = (value) => {
|
|
18
|
-
const normalized = value?.trim().toLowerCase();
|
|
19
|
-
if (normalized === "par" || normalized === "fr-par")
|
|
20
|
-
return "fr-par";
|
|
21
|
-
if (normalized === "ams" || normalized === "nl-ams")
|
|
22
|
-
return "nl-ams";
|
|
23
|
-
if (normalized === "waw" || normalized === "pl-waw")
|
|
24
|
-
return "pl-waw";
|
|
25
|
-
return DEFAULT_REGION;
|
|
26
|
-
};
|
|
27
|
-
var getEmailConfig = () => {
|
|
28
|
-
if (cachedConfig) {
|
|
29
|
-
return { ok: true, config: cachedConfig };
|
|
30
|
-
}
|
|
31
|
-
const accessKey = process.env.SCALEWAY_ACCESS_KEY || process.env.SCALEWAY_ACCESS_KEY_QUEUE;
|
|
32
|
-
const secretKey = process.env.SCALEWAY_SECRET_KEY || process.env.SCALEWAY_SECRET_KEY_QUEUE;
|
|
33
|
-
const projectId = process.env.SCALEWAY_PROJECT_ID;
|
|
34
|
-
if (!accessKey || !secretKey || !projectId) {
|
|
35
|
-
return {
|
|
36
|
-
ok: false,
|
|
37
|
-
errorMessage: "Email service is not configured. Please contact us directly at contact@contractspec.io."
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
const region = mapRegion(process.env.SCALEWAY_REGION);
|
|
41
|
-
cachedConfig = {
|
|
42
|
-
accessKey,
|
|
43
|
-
secretKey,
|
|
44
|
-
projectId,
|
|
45
|
-
region,
|
|
46
|
-
defaultZone: `${region}-1`,
|
|
47
|
-
from: {
|
|
48
|
-
email: process.env.SCALEWAY_EMAIL_FROM_EMAIL ?? DEFAULT_FROM.email,
|
|
49
|
-
name: process.env.SCALEWAY_EMAIL_FROM_NAME ?? DEFAULT_FROM.name
|
|
50
|
-
},
|
|
51
|
-
teamInbox: {
|
|
52
|
-
email: process.env.SCALEWAY_EMAIL_TEAM_EMAIL ?? DEFAULT_TEAM_INBOX.email,
|
|
53
|
-
name: process.env.SCALEWAY_EMAIL_TEAM_NAME ?? DEFAULT_TEAM_INBOX.name
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
return { ok: true, config: cachedConfig };
|
|
57
|
-
};
|
|
58
|
-
var getTemClient = (config) => {
|
|
59
|
-
if (cachedClient) {
|
|
60
|
-
return cachedClient;
|
|
61
|
-
}
|
|
62
|
-
const client = createClient({
|
|
63
|
-
accessKey: config.accessKey,
|
|
64
|
-
secretKey: config.secretKey,
|
|
65
|
-
defaultProjectId: config.projectId,
|
|
66
|
-
defaultRegion: config.region,
|
|
67
|
-
defaultZone: config.defaultZone
|
|
68
|
-
});
|
|
69
|
-
cachedClient = apiFactory(client);
|
|
70
|
-
return cachedClient;
|
|
71
|
-
};
|
|
72
|
-
var sendEmail = async (config, request) => {
|
|
73
|
-
try {
|
|
74
|
-
const client = getTemClient(config);
|
|
75
|
-
await client.createEmail({
|
|
76
|
-
region: config.region,
|
|
77
|
-
projectId: config.projectId,
|
|
78
|
-
from: config.from,
|
|
79
|
-
to: request.to,
|
|
80
|
-
subject: request.subject,
|
|
81
|
-
text: request.text,
|
|
82
|
-
html: request.html || request.text,
|
|
83
|
-
additionalHeaders: request.replyTo ? [{ key: "Reply-To", value: request.replyTo }] : undefined
|
|
84
|
-
});
|
|
85
|
-
return { success: true };
|
|
86
|
-
} catch (error) {
|
|
87
|
-
new Logger().error("scaleway_tem_email_send_failed", {
|
|
88
|
-
context: request.context ?? "email",
|
|
89
|
-
error: error instanceof Error ? error.message : error
|
|
90
|
-
});
|
|
91
|
-
return {
|
|
92
|
-
success: false,
|
|
93
|
-
error,
|
|
94
|
-
errorMessage: "Failed to send email via Scaleway."
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
var __internal = {
|
|
99
|
-
resetCaches() {
|
|
100
|
-
cachedClient = null;
|
|
101
|
-
cachedConfig = null;
|
|
102
|
-
apiFactory = (client) => new Temv1alpha1.API(client);
|
|
103
|
-
},
|
|
104
|
-
setApiFactory(factory) {
|
|
105
|
-
apiFactory = factory;
|
|
106
|
-
},
|
|
107
|
-
setClient(client) {
|
|
108
|
-
cachedClient = client;
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
// src/libs/email/utils.ts
|
|
113
|
-
var escapeHtml = (value) => value.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">");
|
|
114
|
-
var formatMultilineHtml = (value) => escapeHtml(value).replaceAll(`
|
|
115
|
-
`, "<br />");
|
|
116
|
-
|
|
117
|
-
// src/libs/email/contact.ts
|
|
118
|
-
"use server";
|
|
119
|
-
var CONTACT_MISSING_CONFIG = "Email service is not configured. Please contact us directly at contact@contractspec.io.";
|
|
120
|
-
var CONTACT_SEND_ERROR = "Failed to send message. Please contact us directly at contact@contractspec.io.";
|
|
121
|
-
var submitContactForm = async (formData) => {
|
|
122
|
-
const name = (formData.get("name") ?? "").toString().trim();
|
|
123
|
-
const email = (formData.get("email") ?? "").toString().trim();
|
|
124
|
-
const message = (formData.get("message") ?? "").toString().trim();
|
|
125
|
-
if (!email) {
|
|
126
|
-
return {
|
|
127
|
-
success: false,
|
|
128
|
-
text: "Please fill in all required fields."
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
const configResult = getEmailConfig();
|
|
132
|
-
if (!configResult.ok || !configResult.config) {
|
|
133
|
-
return {
|
|
134
|
-
success: false,
|
|
135
|
-
text: configResult.errorMessage ?? CONTACT_MISSING_CONFIG
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
const senderName = name || email;
|
|
139
|
-
const emailContentText = `
|
|
140
|
-
New contact form submission from ${senderName}
|
|
2
|
+
import{Logger as C}from"@contractspec/lib.logger";import{createClient as y,Temv1alpha1 as u}from"@scaleway/sdk";var m={email:"noreply@transactional.contractspec.io",name:"ContractSpec"},p={email:"contact@contractspec.io",name:"ContractSpec Team"},S="fr-par",s=null,n=null,l=(e)=>new u.API(e),_=(e)=>{let t=e?.trim().toLowerCase();if(t==="par"||t==="fr-par")return"fr-par";if(t==="ams"||t==="nl-ams")return"nl-ams";if(t==="waw"||t==="pl-waw")return"pl-waw";return S},E=()=>{if(s)return{ok:!0,config:s};let e=process.env.SCALEWAY_ACCESS_KEY||process.env.SCALEWAY_ACCESS_KEY_QUEUE,t=process.env.SCALEWAY_SECRET_KEY||process.env.SCALEWAY_SECRET_KEY_QUEUE,o=process.env.SCALEWAY_PROJECT_ID;if(!e||!t||!o)return{ok:!1,errorMessage:"Email service is not configured. Please contact us directly at contact@contractspec.io."};let r=_(process.env.SCALEWAY_REGION);return s={accessKey:e,secretKey:t,projectId:o,region:r,defaultZone:`${r}-1`,from:{email:process.env.SCALEWAY_EMAIL_FROM_EMAIL??m.email,name:process.env.SCALEWAY_EMAIL_FROM_NAME??m.name},teamInbox:{email:process.env.SCALEWAY_EMAIL_TEAM_EMAIL??p.email,name:process.env.SCALEWAY_EMAIL_TEAM_NAME??p.name}},{ok:!0,config:s}},x=(e)=>{if(n)return n;let t=y({accessKey:e.accessKey,secretKey:e.secretKey,defaultProjectId:e.projectId,defaultRegion:e.region,defaultZone:e.defaultZone});return n=l(t),n},d=async(e,t)=>{try{return await x(e).createEmail({region:e.region,projectId:e.projectId,from:e.from,to:t.to,subject:t.subject,text:t.text,html:t.html||t.text,additionalHeaders:t.replyTo?[{key:"Reply-To",value:t.replyTo}]:void 0}),{success:!0}}catch(o){return new C().error("scaleway_tem_email_send_failed",{context:t.context??"email",error:o instanceof Error?o.message:o}),{success:!1,error:o,errorMessage:"Failed to send email via Scaleway."}}},b={resetCaches(){n=null,s=null,l=(e)=>new u.API(e)},setApiFactory(e){l=e},setClient(e){n=e}};var i=(e)=>e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">"),f=(e)=>i(e).replaceAll(`
|
|
3
|
+
`,"<br />");var v="Email service is not configured. Please contact us directly at contact@contractspec.io.",R="Failed to send message. Please contact us directly at contact@contractspec.io.",F=async(e)=>{let t=(e.get("name")??"").toString().trim(),o=(e.get("email")??"").toString().trim(),r=(e.get("message")??"").toString().trim();if(!o)return{success:!1,text:"Please fill in all required fields."};let a=E();if(!a.ok||!a.config)return{success:!1,text:a.errorMessage??v};let c=t||o,g=`
|
|
4
|
+
New contact form submission from ${c}
|
|
141
5
|
|
|
142
6
|
Contact Information:
|
|
143
|
-
- Name: ${
|
|
144
|
-
- Email: ${
|
|
7
|
+
- Name: ${t||"Not provided"}
|
|
8
|
+
- Email: ${o}
|
|
145
9
|
|
|
146
10
|
Message:
|
|
147
|
-
${
|
|
11
|
+
${r||"No message provided"}
|
|
148
12
|
|
|
149
13
|
---
|
|
150
14
|
Submitted via ContractSpec contact form
|
|
151
|
-
`.trim()
|
|
152
|
-
const emailContentHtml = `
|
|
15
|
+
`.trim(),A=`
|
|
153
16
|
<div style="font-family: sans-serif; max-width: 640px; margin: 0 auto;">
|
|
154
17
|
<h1 style="color: #8b5cf6; margin-bottom: 12px;">New contact form submission</h1>
|
|
155
|
-
<p style="margin: 0 0 12px;">From ${
|
|
18
|
+
<p style="margin: 0 0 12px;">From ${i(c)}</p>
|
|
156
19
|
<h2 style="color: #8b5cf6; margin: 16px 0 8px;">Contact Information</h2>
|
|
157
20
|
<ul style="padding-left: 16px; line-height: 1.6; margin: 0 0 16px;">
|
|
158
|
-
<li>Name: ${
|
|
159
|
-
<li>Email: ${
|
|
21
|
+
<li>Name: ${i(t||"Not provided")}</li>
|
|
22
|
+
<li>Email: ${i(o)}</li>
|
|
160
23
|
</ul>
|
|
161
24
|
<h2 style="color: #8b5cf6; margin: 16px 0 8px;">Message</h2>
|
|
162
25
|
<div style="border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; background: #f9fafb; white-space: pre-wrap; line-height: 1.6;">
|
|
163
|
-
${
|
|
26
|
+
${r?f(r):"No message provided"}
|
|
164
27
|
</div>
|
|
165
28
|
<p style="color: #6b7280; font-size: 12px; margin-top: 20px;">Submitted via ContractSpec contact form</p>
|
|
166
29
|
</div>
|
|
167
|
-
`;
|
|
168
|
-
const sendResult = await sendEmail(configResult.config, {
|
|
169
|
-
to: [configResult.config.teamInbox],
|
|
170
|
-
subject: `New Contact Form Message from ${senderName}`,
|
|
171
|
-
text: emailContentText,
|
|
172
|
-
html: emailContentHtml,
|
|
173
|
-
replyTo: email,
|
|
174
|
-
context: "contact-form"
|
|
175
|
-
});
|
|
176
|
-
if (!sendResult.success) {
|
|
177
|
-
return { success: false, text: CONTACT_SEND_ERROR };
|
|
178
|
-
}
|
|
179
|
-
return { success: true, text: "Message sent successfully!" };
|
|
180
|
-
};
|
|
181
|
-
export {
|
|
182
|
-
submitContactForm
|
|
183
|
-
};
|
|
30
|
+
`;if(!(await d(a.config,{to:[a.config.teamInbox],subject:`New Contact Form Message from ${c}`,text:g,html:A,replyTo:o,context:"contact-form"})).success)return{success:!1,text:R};return{success:!0,text:"Message sent successfully!"}};export{F as submitContactForm};
|
|
@@ -1,139 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { createClient, Temv1alpha1 } from "@scaleway/sdk";
|
|
5
|
-
var DEFAULT_FROM = {
|
|
6
|
-
email: "noreply@transactional.contractspec.io",
|
|
7
|
-
name: "ContractSpec"
|
|
8
|
-
};
|
|
9
|
-
var DEFAULT_TEAM_INBOX = {
|
|
10
|
-
email: "contact@contractspec.io",
|
|
11
|
-
name: "ContractSpec Team"
|
|
12
|
-
};
|
|
13
|
-
var DEFAULT_REGION = "fr-par";
|
|
14
|
-
var cachedConfig = null;
|
|
15
|
-
var cachedClient = null;
|
|
16
|
-
var apiFactory = (client) => new Temv1alpha1.API(client);
|
|
17
|
-
var mapRegion = (value) => {
|
|
18
|
-
const normalized = value?.trim().toLowerCase();
|
|
19
|
-
if (normalized === "par" || normalized === "fr-par")
|
|
20
|
-
return "fr-par";
|
|
21
|
-
if (normalized === "ams" || normalized === "nl-ams")
|
|
22
|
-
return "nl-ams";
|
|
23
|
-
if (normalized === "waw" || normalized === "pl-waw")
|
|
24
|
-
return "pl-waw";
|
|
25
|
-
return DEFAULT_REGION;
|
|
26
|
-
};
|
|
27
|
-
var getEmailConfig = () => {
|
|
28
|
-
if (cachedConfig) {
|
|
29
|
-
return { ok: true, config: cachedConfig };
|
|
30
|
-
}
|
|
31
|
-
const accessKey = process.env.SCALEWAY_ACCESS_KEY || process.env.SCALEWAY_ACCESS_KEY_QUEUE;
|
|
32
|
-
const secretKey = process.env.SCALEWAY_SECRET_KEY || process.env.SCALEWAY_SECRET_KEY_QUEUE;
|
|
33
|
-
const projectId = process.env.SCALEWAY_PROJECT_ID;
|
|
34
|
-
if (!accessKey || !secretKey || !projectId) {
|
|
35
|
-
return {
|
|
36
|
-
ok: false,
|
|
37
|
-
errorMessage: "Email service is not configured. Please contact us directly at contact@contractspec.io."
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
const region = mapRegion(process.env.SCALEWAY_REGION);
|
|
41
|
-
cachedConfig = {
|
|
42
|
-
accessKey,
|
|
43
|
-
secretKey,
|
|
44
|
-
projectId,
|
|
45
|
-
region,
|
|
46
|
-
defaultZone: `${region}-1`,
|
|
47
|
-
from: {
|
|
48
|
-
email: process.env.SCALEWAY_EMAIL_FROM_EMAIL ?? DEFAULT_FROM.email,
|
|
49
|
-
name: process.env.SCALEWAY_EMAIL_FROM_NAME ?? DEFAULT_FROM.name
|
|
50
|
-
},
|
|
51
|
-
teamInbox: {
|
|
52
|
-
email: process.env.SCALEWAY_EMAIL_TEAM_EMAIL ?? DEFAULT_TEAM_INBOX.email,
|
|
53
|
-
name: process.env.SCALEWAY_EMAIL_TEAM_NAME ?? DEFAULT_TEAM_INBOX.name
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
return { ok: true, config: cachedConfig };
|
|
57
|
-
};
|
|
58
|
-
var getTemClient = (config) => {
|
|
59
|
-
if (cachedClient) {
|
|
60
|
-
return cachedClient;
|
|
61
|
-
}
|
|
62
|
-
const client = createClient({
|
|
63
|
-
accessKey: config.accessKey,
|
|
64
|
-
secretKey: config.secretKey,
|
|
65
|
-
defaultProjectId: config.projectId,
|
|
66
|
-
defaultRegion: config.region,
|
|
67
|
-
defaultZone: config.defaultZone
|
|
68
|
-
});
|
|
69
|
-
cachedClient = apiFactory(client);
|
|
70
|
-
return cachedClient;
|
|
71
|
-
};
|
|
72
|
-
var sendEmail = async (config, request) => {
|
|
73
|
-
try {
|
|
74
|
-
const client = getTemClient(config);
|
|
75
|
-
await client.createEmail({
|
|
76
|
-
region: config.region,
|
|
77
|
-
projectId: config.projectId,
|
|
78
|
-
from: config.from,
|
|
79
|
-
to: request.to,
|
|
80
|
-
subject: request.subject,
|
|
81
|
-
text: request.text,
|
|
82
|
-
html: request.html || request.text,
|
|
83
|
-
additionalHeaders: request.replyTo ? [{ key: "Reply-To", value: request.replyTo }] : undefined
|
|
84
|
-
});
|
|
85
|
-
return { success: true };
|
|
86
|
-
} catch (error) {
|
|
87
|
-
new Logger().error("scaleway_tem_email_send_failed", {
|
|
88
|
-
context: request.context ?? "email",
|
|
89
|
-
error: error instanceof Error ? error.message : error
|
|
90
|
-
});
|
|
91
|
-
return {
|
|
92
|
-
success: false,
|
|
93
|
-
error,
|
|
94
|
-
errorMessage: "Failed to send email via Scaleway."
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
var __internal = {
|
|
99
|
-
resetCaches() {
|
|
100
|
-
cachedClient = null;
|
|
101
|
-
cachedConfig = null;
|
|
102
|
-
apiFactory = (client) => new Temv1alpha1.API(client);
|
|
103
|
-
},
|
|
104
|
-
setApiFactory(factory) {
|
|
105
|
-
apiFactory = factory;
|
|
106
|
-
},
|
|
107
|
-
setClient(client) {
|
|
108
|
-
cachedClient = client;
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
// src/libs/email/utils.ts
|
|
113
|
-
var escapeHtml = (value) => value.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">");
|
|
114
|
-
var formatMultilineHtml = (value) => escapeHtml(value).replaceAll(`
|
|
115
|
-
`, "<br />");
|
|
116
|
-
|
|
117
|
-
// src/libs/email/newsletter.ts
|
|
118
|
-
"use server";
|
|
119
|
-
var NEWSLETTER_MISSING_CONFIG = "Newsletter service is not configured. Please try again later.";
|
|
120
|
-
var NEWSLETTER_SEND_ERROR = "Failed to subscribe. Please try again later or contact us directly.";
|
|
121
|
-
var subscribeToNewsletter = async (formData) => {
|
|
122
|
-
const email = (formData.get("email") ?? "").toString().trim();
|
|
123
|
-
if (!email || !email.includes("@")) {
|
|
124
|
-
return {
|
|
125
|
-
success: false,
|
|
126
|
-
text: "Please enter a valid email address."
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
const configResult = getEmailConfig();
|
|
130
|
-
if (!configResult.ok || !configResult.config) {
|
|
131
|
-
return {
|
|
132
|
-
success: false,
|
|
133
|
-
text: configResult.errorMessage ?? NEWSLETTER_MISSING_CONFIG
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
const welcomeText = `
|
|
2
|
+
import{Logger as g}from"@contractspec/lib.logger";import{createClient as y,Temv1alpha1 as m}from"@scaleway/sdk";var c={email:"noreply@transactional.contractspec.io",name:"ContractSpec"},l={email:"contact@contractspec.io",name:"ContractSpec Team"},S="fr-par",n=null,s=null,o=(e)=>new m.API(e),C=(e)=>{let t=e?.trim().toLowerCase();if(t==="par"||t==="fr-par")return"fr-par";if(t==="ams"||t==="nl-ams")return"nl-ams";if(t==="waw"||t==="pl-waw")return"pl-waw";return S},p=()=>{if(n)return{ok:!0,config:n};let e=process.env.SCALEWAY_ACCESS_KEY||process.env.SCALEWAY_ACCESS_KEY_QUEUE,t=process.env.SCALEWAY_SECRET_KEY||process.env.SCALEWAY_SECRET_KEY_QUEUE,r=process.env.SCALEWAY_PROJECT_ID;if(!e||!t||!r)return{ok:!1,errorMessage:"Email service is not configured. Please contact us directly at contact@contractspec.io."};let i=C(process.env.SCALEWAY_REGION);return n={accessKey:e,secretKey:t,projectId:r,region:i,defaultZone:`${i}-1`,from:{email:process.env.SCALEWAY_EMAIL_FROM_EMAIL??c.email,name:process.env.SCALEWAY_EMAIL_FROM_NAME??c.name},teamInbox:{email:process.env.SCALEWAY_EMAIL_TEAM_EMAIL??l.email,name:process.env.SCALEWAY_EMAIL_TEAM_NAME??l.name}},{ok:!0,config:n}},w=(e)=>{if(s)return s;let t=y({accessKey:e.accessKey,secretKey:e.secretKey,defaultProjectId:e.projectId,defaultRegion:e.region,defaultZone:e.defaultZone});return s=o(t),s},a=async(e,t)=>{try{return await w(e).createEmail({region:e.region,projectId:e.projectId,from:e.from,to:t.to,subject:t.subject,text:t.text,html:t.html||t.text,additionalHeaders:t.replyTo?[{key:"Reply-To",value:t.replyTo}]:void 0}),{success:!0}}catch(r){return new g().error("scaleway_tem_email_send_failed",{context:t.context??"email",error:r instanceof Error?r.message:r}),{success:!1,error:r,errorMessage:"Failed to send email via Scaleway."}}},R={resetCaches(){s=null,n=null,o=(e)=>new m.API(e)},setApiFactory(e){o=e},setClient(e){s=e}};var b=(e)=>e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">"),u=(e)=>b(e).replaceAll(`
|
|
3
|
+
`,"<br />");var _="Newsletter service is not configured. Please try again later.",d="Failed to subscribe. Please try again later or contact us directly.",Y=async(e)=>{let t=(e.get("email")??"").toString().trim();if(!t||!t.includes("@"))return{success:!1,text:"Please enter a valid email address."};let r=p();if(!r.ok||!r.config)return{success:!1,text:r.errorMessage??_};let i=`
|
|
137
4
|
Welcome to ContractSpec!
|
|
138
5
|
|
|
139
6
|
Thanks for subscribing to our newsletter. You'll receive updates on:
|
|
@@ -151,8 +18,7 @@ ContractSpec Team
|
|
|
151
18
|
https://contractspec.io
|
|
152
19
|
|
|
153
20
|
Unsubscribe: Reply to this email with "unsubscribe"
|
|
154
|
-
`.trim()
|
|
155
|
-
const welcomeHtml = `
|
|
21
|
+
`.trim(),E=`
|
|
156
22
|
<div style="font-family: sans-serif; max-width: 640px; margin: 0 auto;">
|
|
157
23
|
<h1 style="color: #8b5cf6;">Welcome to ContractSpec!</h1>
|
|
158
24
|
<p>Thanks for subscribing to our newsletter. You'll receive updates on:</p>
|
|
@@ -173,36 +39,9 @@ Unsubscribe: Reply to this email with "unsubscribe"
|
|
|
173
39
|
To unsubscribe, reply to this email with "unsubscribe"
|
|
174
40
|
</p>
|
|
175
41
|
</div>
|
|
176
|
-
`;
|
|
177
|
-
const userSend = await sendEmail(configResult.config, {
|
|
178
|
-
to: [{ email }],
|
|
179
|
-
subject: "Welcome to ContractSpec Newsletter",
|
|
180
|
-
text: welcomeText,
|
|
181
|
-
html: welcomeHtml,
|
|
182
|
-
context: "newsletter-welcome"
|
|
183
|
-
});
|
|
184
|
-
if (!userSend.success) {
|
|
185
|
-
return { success: false, text: NEWSLETTER_SEND_ERROR };
|
|
186
|
-
}
|
|
187
|
-
const teamNotificationText = `New newsletter subscription from: ${email}`;
|
|
188
|
-
const teamNotificationHtml = `
|
|
42
|
+
`;if(!(await a(r.config,{to:[{email:t}],subject:"Welcome to ContractSpec Newsletter",text:i,html:E,context:"newsletter-welcome"})).success)return{success:!1,text:d};let f=`New newsletter subscription from: ${t}`,A=`
|
|
189
43
|
<div style="font-family: sans-serif; max-width: 640px; margin: 0 auto;">
|
|
190
44
|
<p style="margin: 0 0 8px;">New newsletter subscription</p>
|
|
191
|
-
<p style="margin: 0;"><strong>Email:</strong> ${
|
|
45
|
+
<p style="margin: 0;"><strong>Email:</strong> ${u(t)}</p>
|
|
192
46
|
</div>
|
|
193
|
-
`;
|
|
194
|
-
const teamSend = await sendEmail(configResult.config, {
|
|
195
|
-
to: [configResult.config.teamInbox],
|
|
196
|
-
subject: `New Newsletter Subscription: ${email}`,
|
|
197
|
-
text: teamNotificationText,
|
|
198
|
-
html: teamNotificationHtml,
|
|
199
|
-
context: "newsletter-team-notification"
|
|
200
|
-
});
|
|
201
|
-
if (!teamSend.success) {
|
|
202
|
-
return { success: false, text: NEWSLETTER_SEND_ERROR };
|
|
203
|
-
}
|
|
204
|
-
return { success: true, text: "Successfully subscribed!" };
|
|
205
|
-
};
|
|
206
|
-
export {
|
|
207
|
-
subscribeToNewsletter
|
|
208
|
-
};
|
|
47
|
+
`;if(!(await a(r.config,{to:[r.config.teamInbox],subject:`New Newsletter Subscription: ${t}`,text:f,html:A,context:"newsletter-team-notification"})).success)return{success:!1,text:d};return{success:!0,text:"Successfully subscribed!"}};export{Y as subscribeToNewsletter};
|
package/dist/libs/email/types.js
CHANGED
package/dist/libs/email/utils.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var formatMultilineHtml = (value) => escapeHtml(value).replaceAll(`
|
|
5
|
-
`, "<br />");
|
|
6
|
-
export {
|
|
7
|
-
formatMultilineHtml,
|
|
8
|
-
escapeHtml
|
|
9
|
-
};
|
|
2
|
+
var t=(l)=>l.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">"),e=(l)=>t(l).replaceAll(`
|
|
3
|
+
`,"<br />");export{e as formatMultilineHtml,t as escapeHtml};
|