@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,357 +1,12 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
function FilterBar({ value, onChange, categories }) {
|
|
5
|
-
const handleChange = (key, nextValue) => {
|
|
6
|
-
onChange({ ...value, [key]: nextValue });
|
|
7
|
-
};
|
|
8
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
9
|
-
className: "grid gap-3 rounded-2xl border border-border bg-card p-4 md:grid-cols-4",
|
|
10
|
-
children: [
|
|
11
|
-
/* @__PURE__ */ jsxs("label", {
|
|
12
|
-
className: "flex flex-col text-muted-foreground text-xs uppercase tracking-wide",
|
|
13
|
-
children: [
|
|
14
|
-
"Status",
|
|
15
|
-
/* @__PURE__ */ jsxs("select", {
|
|
16
|
-
className: "mt-1 rounded-md border border-border bg-background px-3 py-2 text-foreground text-sm",
|
|
17
|
-
value: value.status,
|
|
18
|
-
onChange: (event) => handleChange("status", event.target.value),
|
|
19
|
-
children: [
|
|
20
|
-
/* @__PURE__ */ jsx("option", {
|
|
21
|
-
value: "all",
|
|
22
|
-
children: "All tasks"
|
|
23
|
-
}),
|
|
24
|
-
/* @__PURE__ */ jsx("option", {
|
|
25
|
-
value: "active",
|
|
26
|
-
children: "Active"
|
|
27
|
-
}),
|
|
28
|
-
/* @__PURE__ */ jsx("option", {
|
|
29
|
-
value: "completed",
|
|
30
|
-
children: "Completed"
|
|
31
|
-
})
|
|
32
|
-
]
|
|
33
|
-
})
|
|
34
|
-
]
|
|
35
|
-
}),
|
|
36
|
-
/* @__PURE__ */ jsxs("label", {
|
|
37
|
-
className: "flex flex-col text-muted-foreground text-xs uppercase tracking-wide",
|
|
38
|
-
children: [
|
|
39
|
-
"Priority",
|
|
40
|
-
/* @__PURE__ */ jsxs("select", {
|
|
41
|
-
className: "mt-1 rounded-md border border-border bg-background px-3 py-2 text-foreground text-sm",
|
|
42
|
-
value: value.priority,
|
|
43
|
-
onChange: (event) => handleChange("priority", event.target.value),
|
|
44
|
-
children: [
|
|
45
|
-
/* @__PURE__ */ jsx("option", {
|
|
46
|
-
value: "all",
|
|
47
|
-
children: "All"
|
|
48
|
-
}),
|
|
49
|
-
/* @__PURE__ */ jsx("option", {
|
|
50
|
-
value: "LOW",
|
|
51
|
-
children: "Low"
|
|
52
|
-
}),
|
|
53
|
-
/* @__PURE__ */ jsx("option", {
|
|
54
|
-
value: "MEDIUM",
|
|
55
|
-
children: "Medium"
|
|
56
|
-
}),
|
|
57
|
-
/* @__PURE__ */ jsx("option", {
|
|
58
|
-
value: "HIGH",
|
|
59
|
-
children: "High"
|
|
60
|
-
}),
|
|
61
|
-
/* @__PURE__ */ jsx("option", {
|
|
62
|
-
value: "URGENT",
|
|
63
|
-
children: "Urgent"
|
|
64
|
-
})
|
|
65
|
-
]
|
|
66
|
-
})
|
|
67
|
-
]
|
|
68
|
-
}),
|
|
69
|
-
/* @__PURE__ */ jsxs("label", {
|
|
70
|
-
className: "flex flex-col text-muted-foreground text-xs uppercase tracking-wide",
|
|
71
|
-
children: [
|
|
72
|
-
"Category",
|
|
73
|
-
/* @__PURE__ */ jsxs("select", {
|
|
74
|
-
className: "mt-1 rounded-md border border-border bg-background px-3 py-2 text-foreground text-sm",
|
|
75
|
-
value: value.categoryId,
|
|
76
|
-
onChange: (event) => handleChange("categoryId", event.target.value),
|
|
77
|
-
children: [
|
|
78
|
-
/* @__PURE__ */ jsx("option", {
|
|
79
|
-
value: "all",
|
|
80
|
-
children: "All categories"
|
|
81
|
-
}),
|
|
82
|
-
categories.map((category) => /* @__PURE__ */ jsx("option", {
|
|
83
|
-
value: category.id,
|
|
84
|
-
children: category.name
|
|
85
|
-
}, category.id))
|
|
86
|
-
]
|
|
87
|
-
})
|
|
88
|
-
]
|
|
89
|
-
}),
|
|
90
|
-
/* @__PURE__ */ jsxs("label", {
|
|
91
|
-
className: "flex flex-col text-muted-foreground text-xs uppercase tracking-wide",
|
|
92
|
-
children: [
|
|
93
|
-
"Search",
|
|
94
|
-
/* @__PURE__ */ jsx("input", {
|
|
95
|
-
type: "search",
|
|
96
|
-
className: "mt-1 rounded-md border border-border bg-background px-3 py-2 text-foreground text-sm",
|
|
97
|
-
placeholder: "Search by title",
|
|
98
|
-
value: value.search,
|
|
99
|
-
onChange: (event) => handleChange("search", event.target.value)
|
|
100
|
-
})
|
|
101
|
-
]
|
|
102
|
-
})
|
|
103
|
-
]
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// src/components/templates/todos/TaskForm.tsx
|
|
108
|
-
import { gql } from "@apollo/client";
|
|
109
|
-
import { useMutation } from "@apollo/client/react";
|
|
110
|
-
import { useTemplateRuntime } from "@contractspec/lib.example-shared-ui";
|
|
111
|
-
import { useState } from "react";
|
|
112
|
-
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
113
|
-
"use client";
|
|
114
|
-
var CREATE_TASK = gql`
|
|
2
|
+
import{jsx as p,jsxs as b}from"react/jsx-runtime";function x({value:e,onChange:d,categories:m}){let t=(o,c)=>{d({...e,[o]:c})};return b("div",{className:"grid gap-3 rounded-2xl border border-border bg-card p-4 md:grid-cols-4",children:[b("label",{className:"flex flex-col text-muted-foreground text-xs uppercase tracking-wide",children:["Status",b("select",{className:"mt-1 rounded-md border border-border bg-background px-3 py-2 text-foreground text-sm",value:e.status,onChange:(o)=>t("status",o.target.value),children:[p("option",{value:"all",children:"All tasks"}),p("option",{value:"active",children:"Active"}),p("option",{value:"completed",children:"Completed"})]})]}),b("label",{className:"flex flex-col text-muted-foreground text-xs uppercase tracking-wide",children:["Priority",b("select",{className:"mt-1 rounded-md border border-border bg-background px-3 py-2 text-foreground text-sm",value:e.priority,onChange:(o)=>t("priority",o.target.value),children:[p("option",{value:"all",children:"All"}),p("option",{value:"LOW",children:"Low"}),p("option",{value:"MEDIUM",children:"Medium"}),p("option",{value:"HIGH",children:"High"}),p("option",{value:"URGENT",children:"Urgent"})]})]}),b("label",{className:"flex flex-col text-muted-foreground text-xs uppercase tracking-wide",children:["Category",b("select",{className:"mt-1 rounded-md border border-border bg-background px-3 py-2 text-foreground text-sm",value:e.categoryId,onChange:(o)=>t("categoryId",o.target.value),children:[p("option",{value:"all",children:"All categories"}),m.map((o)=>p("option",{value:o.id,children:o.name},o.id))]})]}),b("label",{className:"flex flex-col text-muted-foreground text-xs uppercase tracking-wide",children:["Search",p("input",{type:"search",className:"mt-1 rounded-md border border-border bg-background px-3 py-2 text-foreground text-sm",placeholder:"Search by title",value:e.search,onChange:(o)=>t("search",o.target.value)})]})]})}import{gql as W}from"@apollo/client";import{useMutation as B}from"@apollo/client/react";import{useTemplateRuntime as L}from"@contractspec/lib.example-shared-ui";import{useState as y}from"react";import{jsx as a,jsxs as u}from"react/jsx-runtime";var O=W`
|
|
115
3
|
mutation CreateTask($input: CreateTaskInput!) {
|
|
116
4
|
createTask(input: $input) {
|
|
117
5
|
id
|
|
118
6
|
title
|
|
119
7
|
}
|
|
120
8
|
}
|
|
121
|
-
`;
|
|
122
|
-
function TaskForm({ categories }) {
|
|
123
|
-
const { projectId } = useTemplateRuntime();
|
|
124
|
-
const [title, setTitle] = useState("");
|
|
125
|
-
const [description, setDescription] = useState("");
|
|
126
|
-
const [priority, setPriority] = useState("MEDIUM");
|
|
127
|
-
const [categoryId, setCategoryId] = useState("none");
|
|
128
|
-
const [tagsInput, setTagsInput] = useState("");
|
|
129
|
-
const [createTask, { loading }] = useMutation(CREATE_TASK);
|
|
130
|
-
const handleSubmit = async (event) => {
|
|
131
|
-
event.preventDefault();
|
|
132
|
-
if (!title.trim())
|
|
133
|
-
return;
|
|
134
|
-
await createTask({
|
|
135
|
-
variables: {
|
|
136
|
-
input: {
|
|
137
|
-
projectId,
|
|
138
|
-
title: title.trim(),
|
|
139
|
-
description: description.trim() || undefined,
|
|
140
|
-
priority,
|
|
141
|
-
categoryId: categoryId === "none" ? undefined : categoryId,
|
|
142
|
-
tags: parseTags(tagsInput)
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
refetchQueries: ["Tasks"],
|
|
146
|
-
awaitRefetchQueries: true
|
|
147
|
-
});
|
|
148
|
-
setTitle("");
|
|
149
|
-
setDescription("");
|
|
150
|
-
setPriority("MEDIUM");
|
|
151
|
-
setCategoryId("none");
|
|
152
|
-
setTagsInput("");
|
|
153
|
-
};
|
|
154
|
-
return /* @__PURE__ */ jsxs2("form", {
|
|
155
|
-
onSubmit: handleSubmit,
|
|
156
|
-
className: "space-y-3 rounded-2xl border border-border bg-background/60 p-4",
|
|
157
|
-
children: [
|
|
158
|
-
/* @__PURE__ */ jsx2("div", {
|
|
159
|
-
children: /* @__PURE__ */ jsxs2("label", {
|
|
160
|
-
className: "font-semibold text-muted-foreground text-xs uppercase",
|
|
161
|
-
children: [
|
|
162
|
-
"Title",
|
|
163
|
-
/* @__PURE__ */ jsx2("input", {
|
|
164
|
-
type: "text",
|
|
165
|
-
className: "mt-1 w-full rounded-md border border-border bg-card px-3 py-2 text-sm",
|
|
166
|
-
placeholder: "What needs to get done?",
|
|
167
|
-
value: title,
|
|
168
|
-
onChange: (event) => setTitle(event.target.value),
|
|
169
|
-
required: true
|
|
170
|
-
})
|
|
171
|
-
]
|
|
172
|
-
})
|
|
173
|
-
}),
|
|
174
|
-
/* @__PURE__ */ jsx2("div", {
|
|
175
|
-
children: /* @__PURE__ */ jsxs2("label", {
|
|
176
|
-
className: "font-semibold text-muted-foreground text-xs uppercase",
|
|
177
|
-
children: [
|
|
178
|
-
"Description",
|
|
179
|
-
/* @__PURE__ */ jsx2("textarea", {
|
|
180
|
-
className: "mt-1 w-full rounded-md border border-border bg-card px-3 py-2 text-sm",
|
|
181
|
-
rows: 3,
|
|
182
|
-
placeholder: "Add context or policy notes",
|
|
183
|
-
value: description,
|
|
184
|
-
onChange: (event) => setDescription(event.target.value)
|
|
185
|
-
})
|
|
186
|
-
]
|
|
187
|
-
})
|
|
188
|
-
}),
|
|
189
|
-
/* @__PURE__ */ jsxs2("div", {
|
|
190
|
-
className: "grid gap-3 md:grid-cols-3",
|
|
191
|
-
children: [
|
|
192
|
-
/* @__PURE__ */ jsxs2("label", {
|
|
193
|
-
className: "font-semibold text-muted-foreground text-xs uppercase",
|
|
194
|
-
children: [
|
|
195
|
-
"Priority",
|
|
196
|
-
/* @__PURE__ */ jsxs2("select", {
|
|
197
|
-
className: "mt-1 w-full rounded-md border border-border bg-card px-3 py-2 text-sm",
|
|
198
|
-
value: priority,
|
|
199
|
-
onChange: (event) => setPriority(event.target.value),
|
|
200
|
-
children: [
|
|
201
|
-
/* @__PURE__ */ jsx2("option", {
|
|
202
|
-
value: "LOW",
|
|
203
|
-
children: "Low"
|
|
204
|
-
}),
|
|
205
|
-
/* @__PURE__ */ jsx2("option", {
|
|
206
|
-
value: "MEDIUM",
|
|
207
|
-
children: "Medium"
|
|
208
|
-
}),
|
|
209
|
-
/* @__PURE__ */ jsx2("option", {
|
|
210
|
-
value: "HIGH",
|
|
211
|
-
children: "High"
|
|
212
|
-
}),
|
|
213
|
-
/* @__PURE__ */ jsx2("option", {
|
|
214
|
-
value: "URGENT",
|
|
215
|
-
children: "Urgent"
|
|
216
|
-
})
|
|
217
|
-
]
|
|
218
|
-
})
|
|
219
|
-
]
|
|
220
|
-
}),
|
|
221
|
-
/* @__PURE__ */ jsxs2("label", {
|
|
222
|
-
className: "font-semibold text-muted-foreground text-xs uppercase",
|
|
223
|
-
children: [
|
|
224
|
-
"Category",
|
|
225
|
-
/* @__PURE__ */ jsxs2("select", {
|
|
226
|
-
className: "mt-1 w-full rounded-md border border-border bg-card px-3 py-2 text-sm",
|
|
227
|
-
value: categoryId,
|
|
228
|
-
onChange: (event) => setCategoryId(event.target.value),
|
|
229
|
-
children: [
|
|
230
|
-
/* @__PURE__ */ jsx2("option", {
|
|
231
|
-
value: "none",
|
|
232
|
-
children: "None"
|
|
233
|
-
}),
|
|
234
|
-
categories.map((category) => /* @__PURE__ */ jsx2("option", {
|
|
235
|
-
value: category.id,
|
|
236
|
-
children: category.name
|
|
237
|
-
}, category.id))
|
|
238
|
-
]
|
|
239
|
-
})
|
|
240
|
-
]
|
|
241
|
-
}),
|
|
242
|
-
/* @__PURE__ */ jsxs2("label", {
|
|
243
|
-
className: "font-semibold text-muted-foreground text-xs uppercase",
|
|
244
|
-
children: [
|
|
245
|
-
"Tags",
|
|
246
|
-
/* @__PURE__ */ jsx2("input", {
|
|
247
|
-
className: "mt-1 w-full rounded-md border border-border bg-card px-3 py-2 text-sm",
|
|
248
|
-
placeholder: "Comma separated (optional)",
|
|
249
|
-
value: tagsInput,
|
|
250
|
-
onChange: (event) => setTagsInput(event.target.value)
|
|
251
|
-
})
|
|
252
|
-
]
|
|
253
|
-
})
|
|
254
|
-
]
|
|
255
|
-
}),
|
|
256
|
-
/* @__PURE__ */ jsx2("button", {
|
|
257
|
-
type: "submit",
|
|
258
|
-
className: "btn-primary w-full py-2 font-semibold text-sm",
|
|
259
|
-
disabled: loading,
|
|
260
|
-
children: loading ? "Saving..." : "Add task"
|
|
261
|
-
})
|
|
262
|
-
]
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
function parseTags(input) {
|
|
266
|
-
return input.split(",").map((tag) => tag.trim()).filter(Boolean);
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
// src/components/templates/todos/TaskItem.tsx
|
|
270
|
-
import { Check, Circle, Trash2 } from "lucide-react";
|
|
271
|
-
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
272
|
-
function TaskItem({ task, onToggle, onDelete }) {
|
|
273
|
-
const badgeColor = task.priority === "URGENT" ? "text-red-200 bg-red-500/10 border-red-500/40" : task.priority === "HIGH" ? "text-amber-200 bg-amber-500/10 border-amber-500/40" : task.priority === "LOW" ? "text-emerald-200 bg-emerald-500/10 border-emerald-500/40" : "text-violet-200 bg-violet-500/10 border-violet-500/40";
|
|
274
|
-
return /* @__PURE__ */ jsxs3("div", {
|
|
275
|
-
className: "flex items-start gap-4 rounded-2xl border border-border/70 bg-card/60 p-4 transition hover:border-border",
|
|
276
|
-
children: [
|
|
277
|
-
/* @__PURE__ */ jsx3("button", {
|
|
278
|
-
type: "button",
|
|
279
|
-
className: "rounded-full border border-border p-2 text-muted-foreground hover:bg-muted/40",
|
|
280
|
-
"aria-pressed": task.completed,
|
|
281
|
-
onClick: () => onToggle?.(task),
|
|
282
|
-
children: task.completed ? /* @__PURE__ */ jsx3(Check, {
|
|
283
|
-
className: "h-4 w-4 text-emerald-400"
|
|
284
|
-
}) : /* @__PURE__ */ jsx3(Circle, {
|
|
285
|
-
className: "h-4 w-4"
|
|
286
|
-
})
|
|
287
|
-
}),
|
|
288
|
-
/* @__PURE__ */ jsxs3("div", {
|
|
289
|
-
className: "flex-1 space-y-2",
|
|
290
|
-
children: [
|
|
291
|
-
/* @__PURE__ */ jsxs3("div", {
|
|
292
|
-
className: "flex flex-wrap items-center gap-2",
|
|
293
|
-
children: [
|
|
294
|
-
/* @__PURE__ */ jsx3("p", {
|
|
295
|
-
className: `font-medium ${task.completed ? "text-muted-foreground line-through" : "text-foreground"}`,
|
|
296
|
-
children: task.title
|
|
297
|
-
}),
|
|
298
|
-
/* @__PURE__ */ jsx3("span", {
|
|
299
|
-
className: `rounded-full border px-2 py-0.5 text-xs ${badgeColor}`,
|
|
300
|
-
children: task.priority.charAt(0) + task.priority.slice(1).toLowerCase()
|
|
301
|
-
}),
|
|
302
|
-
task.category ? /* @__PURE__ */ jsx3("span", {
|
|
303
|
-
className: "rounded-full bg-muted/40 px-2 py-0.5 text-muted-foreground text-xs",
|
|
304
|
-
children: task.category.name
|
|
305
|
-
}) : null,
|
|
306
|
-
task.dueDate ? /* @__PURE__ */ jsxs3("span", {
|
|
307
|
-
className: "text-muted-foreground text-xs",
|
|
308
|
-
children: [
|
|
309
|
-
"Due ",
|
|
310
|
-
new Date(task.dueDate).toLocaleDateString()
|
|
311
|
-
]
|
|
312
|
-
}) : null
|
|
313
|
-
]
|
|
314
|
-
}),
|
|
315
|
-
task.description ? /* @__PURE__ */ jsx3("p", {
|
|
316
|
-
className: "text-muted-foreground text-sm",
|
|
317
|
-
children: task.description
|
|
318
|
-
}) : null,
|
|
319
|
-
task.tags.length ? /* @__PURE__ */ jsx3("div", {
|
|
320
|
-
className: "flex flex-wrap gap-1",
|
|
321
|
-
children: task.tags.map((tag) => /* @__PURE__ */ jsxs3("span", {
|
|
322
|
-
className: "rounded-full bg-muted/40 px-2 py-0.5 text-muted-foreground text-xs",
|
|
323
|
-
children: [
|
|
324
|
-
"#",
|
|
325
|
-
tag
|
|
326
|
-
]
|
|
327
|
-
}, tag))
|
|
328
|
-
}) : null
|
|
329
|
-
]
|
|
330
|
-
}),
|
|
331
|
-
/* @__PURE__ */ jsx3("button", {
|
|
332
|
-
type: "button",
|
|
333
|
-
className: "text-muted-foreground hover:text-destructive",
|
|
334
|
-
"aria-label": `Delete ${task.title}`,
|
|
335
|
-
onClick: () => onDelete?.(task),
|
|
336
|
-
children: /* @__PURE__ */ jsx3(Trash2, {
|
|
337
|
-
className: "h-4 w-4"
|
|
338
|
-
})
|
|
339
|
-
})
|
|
340
|
-
]
|
|
341
|
-
});
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
// src/components/templates/todos/TaskList.tsx
|
|
345
|
-
import { gql as gql2 } from "@apollo/client";
|
|
346
|
-
import { useMutation as useMutation2, useQuery } from "@apollo/client/react";
|
|
347
|
-
import {
|
|
348
|
-
registerTemplateComponents,
|
|
349
|
-
useTemplateRuntime as useTemplateRuntime2
|
|
350
|
-
} from "@contractspec/lib.example-shared-ui";
|
|
351
|
-
import { useMemo, useState as useState2 } from "react";
|
|
352
|
-
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
353
|
-
"use client";
|
|
354
|
-
var TASKS_QUERY = gql2`
|
|
9
|
+
`;function H({categories:e}){let{projectId:d}=L(),[m,t]=y(""),[o,c]=y(""),[h,f]=y("MEDIUM"),[g,v]=y("none"),[w,C]=y(""),[r,{loading:F}]=B(O);return u("form",{onSubmit:async(l)=>{if(l.preventDefault(),!m.trim())return;await r({variables:{input:{projectId:d,title:m.trim(),description:o.trim()||void 0,priority:h,categoryId:g==="none"?void 0:g,tags:z(w)}},refetchQueries:["Tasks"],awaitRefetchQueries:!0}),t(""),c(""),f("MEDIUM"),v("none"),C("")},className:"space-y-3 rounded-2xl border border-border bg-background/60 p-4",children:[a("div",{children:u("label",{className:"font-semibold text-muted-foreground text-xs uppercase",children:["Title",a("input",{type:"text",className:"mt-1 w-full rounded-md border border-border bg-card px-3 py-2 text-sm",placeholder:"What needs to get done?",value:m,onChange:(l)=>t(l.target.value),required:!0})]})}),a("div",{children:u("label",{className:"font-semibold text-muted-foreground text-xs uppercase",children:["Description",a("textarea",{className:"mt-1 w-full rounded-md border border-border bg-card px-3 py-2 text-sm",rows:3,placeholder:"Add context or policy notes",value:o,onChange:(l)=>c(l.target.value)})]})}),u("div",{className:"grid gap-3 md:grid-cols-3",children:[u("label",{className:"font-semibold text-muted-foreground text-xs uppercase",children:["Priority",u("select",{className:"mt-1 w-full rounded-md border border-border bg-card px-3 py-2 text-sm",value:h,onChange:(l)=>f(l.target.value),children:[a("option",{value:"LOW",children:"Low"}),a("option",{value:"MEDIUM",children:"Medium"}),a("option",{value:"HIGH",children:"High"}),a("option",{value:"URGENT",children:"Urgent"})]})]}),u("label",{className:"font-semibold text-muted-foreground text-xs uppercase",children:["Category",u("select",{className:"mt-1 w-full rounded-md border border-border bg-card px-3 py-2 text-sm",value:g,onChange:(l)=>v(l.target.value),children:[a("option",{value:"none",children:"None"}),e.map((l)=>a("option",{value:l.id,children:l.name},l.id))]})]}),u("label",{className:"font-semibold text-muted-foreground text-xs uppercase",children:["Tags",a("input",{className:"mt-1 w-full rounded-md border border-border bg-card px-3 py-2 text-sm",placeholder:"Comma separated (optional)",value:w,onChange:(l)=>C(l.target.value)})]})]}),a("button",{type:"submit",className:"btn-primary w-full py-2 font-semibold text-sm",disabled:F,children:F?"Saving...":"Add task"})]})}function z(e){return e.split(",").map((d)=>d.trim()).filter(Boolean)}import{Check as J,Circle as X,Trash2 as Z}from"lucide-react";import{jsx as n,jsxs as N}from"react/jsx-runtime";function $({task:e,onToggle:d,onDelete:m}){let t=e.priority==="URGENT"?"text-red-200 bg-red-500/10 border-red-500/40":e.priority==="HIGH"?"text-amber-200 bg-amber-500/10 border-amber-500/40":e.priority==="LOW"?"text-emerald-200 bg-emerald-500/10 border-emerald-500/40":"text-violet-200 bg-violet-500/10 border-violet-500/40";return N("div",{className:"flex items-start gap-4 rounded-2xl border border-border/70 bg-card/60 p-4 transition hover:border-border",children:[n("button",{type:"button",className:"rounded-full border border-border p-2 text-muted-foreground hover:bg-muted/40","aria-pressed":e.completed,onClick:()=>d?.(e),children:e.completed?n(J,{className:"h-4 w-4 text-emerald-400"}):n(X,{className:"h-4 w-4"})}),N("div",{className:"flex-1 space-y-2",children:[N("div",{className:"flex flex-wrap items-center gap-2",children:[n("p",{className:`font-medium ${e.completed?"text-muted-foreground line-through":"text-foreground"}`,children:e.title}),n("span",{className:`rounded-full border px-2 py-0.5 text-xs ${t}`,children:e.priority.charAt(0)+e.priority.slice(1).toLowerCase()}),e.category?n("span",{className:"rounded-full bg-muted/40 px-2 py-0.5 text-muted-foreground text-xs",children:e.category.name}):null,e.dueDate?N("span",{className:"text-muted-foreground text-xs",children:["Due ",new Date(e.dueDate).toLocaleDateString()]}):null]}),e.description?n("p",{className:"text-muted-foreground text-sm",children:e.description}):null,e.tags.length?n("div",{className:"flex flex-wrap gap-1",children:e.tags.map((o)=>N("span",{className:"rounded-full bg-muted/40 px-2 py-0.5 text-muted-foreground text-xs",children:["#",o]},o))}):null]}),n("button",{type:"button",className:"text-muted-foreground hover:text-destructive","aria-label":`Delete ${e.title}`,onClick:()=>m?.(e),children:n(Z,{className:"h-4 w-4"})})]})}import{gql as P}from"@apollo/client";import{useMutation as G,useQuery as A}from"@apollo/client/react";import{registerTemplateComponents as M,useTemplateRuntime as S}from"@contractspec/lib.example-shared-ui";import{useMemo as K,useState as Y}from"react";import{jsx as i,jsxs as q}from"react/jsx-runtime";var U=P`
|
|
355
10
|
query Tasks($projectId: ID!) {
|
|
356
11
|
taskCategories(projectId: $projectId) {
|
|
357
12
|
id
|
|
@@ -373,114 +28,15 @@ var TASKS_QUERY = gql2`
|
|
|
373
28
|
}
|
|
374
29
|
}
|
|
375
30
|
}
|
|
376
|
-
|
|
377
|
-
var TOGGLE_TASK = gql2`
|
|
31
|
+
`,Q=P`
|
|
378
32
|
mutation ToggleTask($id: ID!, $completed: Boolean!) {
|
|
379
33
|
toggleTask(id: $id, completed: $completed) {
|
|
380
34
|
id
|
|
381
35
|
completed
|
|
382
36
|
}
|
|
383
37
|
}
|
|
384
|
-
|
|
385
|
-
var DELETE_TASK = gql2`
|
|
38
|
+
`,R=P`
|
|
386
39
|
mutation DeleteTask($id: ID!) {
|
|
387
40
|
deleteTask(id: $id)
|
|
388
41
|
}
|
|
389
|
-
`;
|
|
390
|
-
function TaskList() {
|
|
391
|
-
const { projectId } = useTemplateRuntime2();
|
|
392
|
-
const [filters, setFilters] = useState2({
|
|
393
|
-
status: "all",
|
|
394
|
-
priority: "all",
|
|
395
|
-
categoryId: "all",
|
|
396
|
-
search: ""
|
|
397
|
-
});
|
|
398
|
-
const { data, loading } = useQuery(TASKS_QUERY, {
|
|
399
|
-
variables: { projectId },
|
|
400
|
-
fetchPolicy: "cache-and-network"
|
|
401
|
-
});
|
|
402
|
-
const [toggleTask] = useMutation2(TOGGLE_TASK);
|
|
403
|
-
const [deleteTask] = useMutation2(DELETE_TASK);
|
|
404
|
-
const categories = data?.taskCategories ?? [];
|
|
405
|
-
const tasks = data?.tasks ?? [];
|
|
406
|
-
const filtered = useMemo(() => {
|
|
407
|
-
return tasks.filter((task) => {
|
|
408
|
-
if (filters.status === "active" && task.completed)
|
|
409
|
-
return false;
|
|
410
|
-
if (filters.status === "completed" && !task.completed)
|
|
411
|
-
return false;
|
|
412
|
-
if (filters.priority !== "all" && task.priority !== filters.priority)
|
|
413
|
-
return false;
|
|
414
|
-
if (filters.categoryId !== "all" && task.category?.id !== filters.categoryId)
|
|
415
|
-
return false;
|
|
416
|
-
if (filters.search && !task.title.toLowerCase().includes(filters.search.toLowerCase()))
|
|
417
|
-
return false;
|
|
418
|
-
return true;
|
|
419
|
-
});
|
|
420
|
-
}, [tasks, filters]);
|
|
421
|
-
const handleToggle = async (task) => {
|
|
422
|
-
await toggleTask({
|
|
423
|
-
variables: { id: task.id, completed: !task.completed },
|
|
424
|
-
optimisticResponse: {
|
|
425
|
-
toggleTask: {
|
|
426
|
-
__typename: "Task",
|
|
427
|
-
id: task.id,
|
|
428
|
-
completed: !task.completed
|
|
429
|
-
}
|
|
430
|
-
},
|
|
431
|
-
update(cache) {
|
|
432
|
-
cache.modify({
|
|
433
|
-
fields: {
|
|
434
|
-
tasks(existing = []) {
|
|
435
|
-
return existing.map((ref) => ref.__ref?.endsWith(task.id) ? { ...ref, completed: !task.completed } : ref);
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
});
|
|
439
|
-
}
|
|
440
|
-
});
|
|
441
|
-
};
|
|
442
|
-
const handleDelete = async (task) => {
|
|
443
|
-
await deleteTask({
|
|
444
|
-
variables: { id: task.id },
|
|
445
|
-
refetchQueries: [{ query: TASKS_QUERY, variables: { projectId } }]
|
|
446
|
-
});
|
|
447
|
-
};
|
|
448
|
-
return /* @__PURE__ */ jsxs4("div", {
|
|
449
|
-
className: "space-y-6",
|
|
450
|
-
children: [
|
|
451
|
-
/* @__PURE__ */ jsx4(FilterBar, {
|
|
452
|
-
value: filters,
|
|
453
|
-
onChange: setFilters,
|
|
454
|
-
categories
|
|
455
|
-
}),
|
|
456
|
-
/* @__PURE__ */ jsx4(TaskForm, {
|
|
457
|
-
categories
|
|
458
|
-
}),
|
|
459
|
-
loading ? /* @__PURE__ */ jsx4("p", {
|
|
460
|
-
className: "text-muted-foreground text-sm",
|
|
461
|
-
children: "Loading tasks\u2026"
|
|
462
|
-
}) : filtered.length ? /* @__PURE__ */ jsx4("div", {
|
|
463
|
-
className: "space-y-3",
|
|
464
|
-
children: filtered.map((task) => /* @__PURE__ */ jsx4(TaskItem, {
|
|
465
|
-
task,
|
|
466
|
-
onToggle: handleToggle,
|
|
467
|
-
onDelete: handleDelete
|
|
468
|
-
}, task.id))
|
|
469
|
-
}) : /* @__PURE__ */ jsx4("div", {
|
|
470
|
-
className: "rounded-2xl border border-border border-dashed p-8 text-center",
|
|
471
|
-
children: /* @__PURE__ */ jsx4("p", {
|
|
472
|
-
className: "text-muted-foreground",
|
|
473
|
-
children: "No tasks match your filters. Create one above."
|
|
474
|
-
})
|
|
475
|
-
})
|
|
476
|
-
]
|
|
477
|
-
});
|
|
478
|
-
}
|
|
479
|
-
registerTemplateComponents("todos-app", {
|
|
480
|
-
list: TaskList,
|
|
481
|
-
detail: TaskList,
|
|
482
|
-
form: TaskForm
|
|
483
|
-
});
|
|
484
|
-
export {
|
|
485
|
-
TaskList
|
|
486
|
-
};
|
|
42
|
+
`;function V(){let{projectId:e}=S(),[d,m]=Y({status:"all",priority:"all",categoryId:"all",search:""}),{data:t,loading:o}=A(U,{variables:{projectId:e},fetchPolicy:"cache-and-network"}),[c]=G(Q),[h]=G(R),f=t?.taskCategories??[],g=t?.tasks??[],v=K(()=>{return g.filter((r)=>{if(d.status==="active"&&r.completed)return!1;if(d.status==="completed"&&!r.completed)return!1;if(d.priority!=="all"&&r.priority!==d.priority)return!1;if(d.categoryId!=="all"&&r.category?.id!==d.categoryId)return!1;if(d.search&&!r.title.toLowerCase().includes(d.search.toLowerCase()))return!1;return!0})},[g,d]),w=async(r)=>{await c({variables:{id:r.id,completed:!r.completed},optimisticResponse:{toggleTask:{__typename:"Task",id:r.id,completed:!r.completed}},update(F){F.modify({fields:{tasks(D=[]){return D.map((l)=>l.__ref?.endsWith(r.id)?{...l,completed:!r.completed}:l)}}})}})},C=async(r)=>{await h({variables:{id:r.id},refetchQueries:[{query:U,variables:{projectId:e}}]})};return q("div",{className:"space-y-6",children:[i(x,{value:d,onChange:m,categories:f}),i(H,{categories:f}),o?i("p",{className:"text-muted-foreground text-sm",children:"Loading tasks\u2026"}):v.length?i("div",{className:"space-y-3",children:v.map((r)=>i($,{task:r,onToggle:w,onDelete:C},r.id))}):i("div",{className:"rounded-2xl border border-border border-dashed p-8 text-center",children:i("p",{className:"text-muted-foreground",children:"No tasks match your filters. Create one above."})})]})}M("todos-app",{list:V,detail:V,form:H});export{V as TaskList};
|