@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,550 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
|
|
3
|
-
import {
|
|
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
|
-
// src/application/mcp/normalizeMcpRequest.ts
|
|
30
|
-
var REQUIRED_ACCEPT_TYPES = ["application/json", "text/event-stream"];
|
|
31
|
-
function canNormalizeAcceptHeader(acceptHeader) {
|
|
32
|
-
return !acceptHeader || acceptHeader.includes("*/*") || acceptHeader.includes("application/*") || REQUIRED_ACCEPT_TYPES.some((value) => acceptHeader.includes(value));
|
|
33
|
-
}
|
|
34
|
-
function normalizeMcpRequest(request) {
|
|
35
|
-
if (request.method !== "POST")
|
|
36
|
-
return request;
|
|
37
|
-
const acceptHeader = request.headers.get("accept");
|
|
38
|
-
if (!canNormalizeAcceptHeader(acceptHeader))
|
|
39
|
-
return request;
|
|
40
|
-
const missingTypes = REQUIRED_ACCEPT_TYPES.filter((value) => !acceptHeader?.includes(value));
|
|
41
|
-
if (missingTypes.length === 0)
|
|
42
|
-
return request;
|
|
43
|
-
const headers = new Headers(request.headers);
|
|
44
|
-
headers.set("accept", [acceptHeader, ...missingTypes].filter(Boolean).join(", "));
|
|
45
|
-
return new Request(request, { headers });
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// src/application/mcp/common.ts
|
|
49
|
-
import { createMcpServer } from "@contractspec/lib.contracts-runtime-server-mcp/provider-mcp";
|
|
50
|
-
import { PresentationRegistry } from "@contractspec/lib.contracts-spec/presentations";
|
|
51
|
-
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
52
|
-
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
|
53
|
-
import { randomUUID } from "crypto";
|
|
54
|
-
import { Elysia } from "elysia";
|
|
55
|
-
var baseCtx = {
|
|
56
|
-
actor: "anonymous",
|
|
57
|
-
decide: async () => ({ effect: "allow" })
|
|
58
|
-
};
|
|
59
|
-
function createJsonRpcErrorResponse(status, code, message, data) {
|
|
60
|
-
return new Response(JSON.stringify({
|
|
61
|
-
jsonrpc: "2.0",
|
|
62
|
-
error: {
|
|
63
|
-
code,
|
|
64
|
-
message,
|
|
65
|
-
...data ? { data } : {}
|
|
66
|
-
},
|
|
67
|
-
id: null
|
|
68
|
-
}), {
|
|
69
|
-
status,
|
|
70
|
-
headers: {
|
|
71
|
-
"content-type": "application/json"
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
function createSessionState({
|
|
76
|
-
logger,
|
|
77
|
-
serverName,
|
|
78
|
-
ops,
|
|
79
|
-
resources,
|
|
80
|
-
prompts,
|
|
81
|
-
presentations,
|
|
82
|
-
stateful
|
|
83
|
-
}) {
|
|
84
|
-
const server = new McpServer({
|
|
85
|
-
name: serverName,
|
|
86
|
-
version: "1.0.0"
|
|
87
|
-
}, {
|
|
88
|
-
capabilities: {
|
|
89
|
-
tools: {},
|
|
90
|
-
resources: {},
|
|
91
|
-
prompts: {},
|
|
92
|
-
logging: {}
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
logger.info("Setting up MCP server...");
|
|
96
|
-
createMcpServer(server, ops, resources, prompts, {
|
|
97
|
-
logger,
|
|
98
|
-
toolCtx: () => baseCtx,
|
|
99
|
-
promptCtx: () => ({ locale: "en" }),
|
|
100
|
-
resourceCtx: () => ({ locale: "en" }),
|
|
101
|
-
presentations: new PresentationRegistry(presentations)
|
|
102
|
-
});
|
|
103
|
-
const transport = new WebStandardStreamableHTTPServerTransport({
|
|
104
|
-
sessionIdGenerator: stateful ? () => randomUUID() : undefined,
|
|
105
|
-
enableJsonResponse: true
|
|
106
|
-
});
|
|
107
|
-
return server.connect(transport).then(() => ({ server, transport }));
|
|
108
|
-
}
|
|
109
|
-
async function closeSessionState(state) {
|
|
110
|
-
await Promise.allSettled([state.transport.close(), state.server.close()]);
|
|
111
|
-
}
|
|
112
|
-
function toErrorMessage(error) {
|
|
113
|
-
return error instanceof Error ? error.stack ?? error.message : String(error);
|
|
114
|
-
}
|
|
115
|
-
function createMcpElysiaHandler({
|
|
116
|
-
logger,
|
|
117
|
-
path,
|
|
118
|
-
serverName,
|
|
119
|
-
ops,
|
|
120
|
-
resources,
|
|
121
|
-
prompts,
|
|
122
|
-
presentations,
|
|
123
|
-
validateAuth,
|
|
124
|
-
requiredAuthMethods
|
|
125
|
-
}) {
|
|
126
|
-
logger.info("Setting up MCP handler...", {
|
|
127
|
-
requiredAuthMethods: requiredAuthMethods ?? []
|
|
128
|
-
});
|
|
129
|
-
const isStateful = process.env.CONTRACTSPEC_MCP_STATEFUL === "1";
|
|
130
|
-
const sessions = new Map;
|
|
131
|
-
async function handleStateless(request) {
|
|
132
|
-
const state = await createSessionState({
|
|
133
|
-
logger,
|
|
134
|
-
path,
|
|
135
|
-
serverName,
|
|
136
|
-
ops,
|
|
137
|
-
resources,
|
|
138
|
-
prompts,
|
|
139
|
-
presentations,
|
|
140
|
-
stateful: false
|
|
141
|
-
});
|
|
142
|
-
try {
|
|
143
|
-
return await state.transport.handleRequest(normalizeMcpRequest(request));
|
|
144
|
-
} finally {
|
|
145
|
-
await closeSessionState(state);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
async function closeSession(sessionId) {
|
|
149
|
-
const state = sessions.get(sessionId);
|
|
150
|
-
if (!state)
|
|
151
|
-
return;
|
|
152
|
-
sessions.delete(sessionId);
|
|
153
|
-
await closeSessionState(state);
|
|
154
|
-
}
|
|
155
|
-
async function handleStateful(request) {
|
|
156
|
-
const requestedSessionId = request.headers.get("mcp-session-id");
|
|
157
|
-
let state;
|
|
158
|
-
let createdState = false;
|
|
159
|
-
if (requestedSessionId) {
|
|
160
|
-
const existing = sessions.get(requestedSessionId);
|
|
161
|
-
if (!existing) {
|
|
162
|
-
return createJsonRpcErrorResponse(404, -32001, "Session not found");
|
|
163
|
-
}
|
|
164
|
-
state = existing;
|
|
165
|
-
} else {
|
|
166
|
-
state = await createSessionState({
|
|
167
|
-
logger,
|
|
168
|
-
path,
|
|
169
|
-
serverName,
|
|
170
|
-
ops,
|
|
171
|
-
resources,
|
|
172
|
-
prompts,
|
|
173
|
-
presentations,
|
|
174
|
-
stateful: true
|
|
175
|
-
});
|
|
176
|
-
createdState = true;
|
|
177
|
-
}
|
|
178
|
-
try {
|
|
179
|
-
const response = await state.transport.handleRequest(normalizeMcpRequest(request));
|
|
180
|
-
const activeSessionId = state.transport.sessionId;
|
|
181
|
-
if (activeSessionId && !sessions.has(activeSessionId)) {
|
|
182
|
-
sessions.set(activeSessionId, state);
|
|
183
|
-
}
|
|
184
|
-
if (request.method === "DELETE" && activeSessionId) {
|
|
185
|
-
await closeSession(activeSessionId);
|
|
186
|
-
} else if (!activeSessionId && createdState) {
|
|
187
|
-
await closeSessionState(state);
|
|
188
|
-
}
|
|
189
|
-
return response;
|
|
190
|
-
} catch (error) {
|
|
191
|
-
if (createdState) {
|
|
192
|
-
await closeSessionState(state);
|
|
193
|
-
}
|
|
194
|
-
throw error;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
return new Elysia({ name: `mcp-${serverName}` }).all(path, async ({ request }) => {
|
|
198
|
-
try {
|
|
199
|
-
if (validateAuth) {
|
|
200
|
-
const authResult = await validateAuth(request);
|
|
201
|
-
if (!authResult.valid) {
|
|
202
|
-
return createJsonRpcErrorResponse(401, -32002, "Authentication failed", authResult.reason);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
if (isStateful) {
|
|
206
|
-
return await handleStateful(request);
|
|
207
|
-
}
|
|
208
|
-
return await handleStateless(request);
|
|
209
|
-
} catch (error) {
|
|
210
|
-
logger.error("Error handling MCP request", {
|
|
211
|
-
path,
|
|
212
|
-
method: request.method,
|
|
213
|
-
error: toErrorMessage(error)
|
|
214
|
-
});
|
|
215
|
-
return createJsonRpcErrorResponse(500, -32000, "Internal error");
|
|
216
|
-
}
|
|
217
|
-
});
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
// src/application/mcp/contractsMcpResources.ts
|
|
221
|
-
import {
|
|
222
|
-
definePrompt,
|
|
223
|
-
defineResourceTemplate,
|
|
224
|
-
PromptRegistry,
|
|
225
|
-
ResourceRegistry
|
|
226
|
-
} from "@contractspec/lib.contracts-spec";
|
|
227
|
-
import z from "zod";
|
|
228
|
-
var OWNERS = ["@contractspec"];
|
|
229
|
-
var TAGS = ["contracts", "mcp"];
|
|
230
|
-
function buildContractsResources(services) {
|
|
231
|
-
const resources = new ResourceRegistry;
|
|
232
|
-
resources.register(defineResourceTemplate({
|
|
233
|
-
meta: {
|
|
234
|
-
uriTemplate: "contracts://list",
|
|
235
|
-
title: "Contract specs list",
|
|
236
|
-
description: "JSON list of all contract specs in the workspace.",
|
|
237
|
-
mimeType: "application/json",
|
|
238
|
-
tags: TAGS
|
|
239
|
-
},
|
|
240
|
-
input: z.object({}),
|
|
241
|
-
resolve: async () => {
|
|
242
|
-
const specs = await services.listSpecs();
|
|
243
|
-
return {
|
|
244
|
-
uri: "contracts://list",
|
|
245
|
-
mimeType: "application/json",
|
|
246
|
-
data: JSON.stringify(specs, null, 2)
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
}));
|
|
250
|
-
resources.register(defineResourceTemplate({
|
|
251
|
-
meta: {
|
|
252
|
-
uriTemplate: "contracts://spec/{path}",
|
|
253
|
-
title: "Contract spec content",
|
|
254
|
-
description: "Read a single contract spec file by path.",
|
|
255
|
-
mimeType: "text/plain",
|
|
256
|
-
tags: TAGS
|
|
257
|
-
},
|
|
258
|
-
input: z.object({ path: z.string() }),
|
|
259
|
-
resolve: async ({ path }) => {
|
|
260
|
-
const result = await services.getSpec(path);
|
|
261
|
-
if (!result) {
|
|
262
|
-
return {
|
|
263
|
-
uri: `contracts://spec/${encodeURIComponent(path)}`,
|
|
264
|
-
mimeType: "text/plain",
|
|
265
|
-
data: `Spec not found: ${path}`
|
|
266
|
-
};
|
|
267
|
-
}
|
|
268
|
-
return {
|
|
269
|
-
uri: `contracts://spec/${encodeURIComponent(path)}`,
|
|
270
|
-
mimeType: "text/plain",
|
|
271
|
-
data: result.content
|
|
272
|
-
};
|
|
273
|
-
}
|
|
274
|
-
}));
|
|
275
|
-
resources.register(defineResourceTemplate({
|
|
276
|
-
meta: {
|
|
277
|
-
uriTemplate: "contracts://registry/manifest",
|
|
278
|
-
title: "Remote registry manifest",
|
|
279
|
-
description: "Contract registry manifest from the remote server.",
|
|
280
|
-
mimeType: "application/json",
|
|
281
|
-
tags: TAGS
|
|
282
|
-
},
|
|
283
|
-
input: z.object({}),
|
|
284
|
-
resolve: async () => {
|
|
285
|
-
const manifest = await services.fetchRegistryManifest();
|
|
286
|
-
return {
|
|
287
|
-
uri: "contracts://registry/manifest",
|
|
288
|
-
mimeType: "application/json",
|
|
289
|
-
data: JSON.stringify(manifest, null, 2)
|
|
290
|
-
};
|
|
291
|
-
}
|
|
292
|
-
}));
|
|
293
|
-
return resources;
|
|
294
|
-
}
|
|
295
|
-
function buildContractsPrompts() {
|
|
296
|
-
const prompts = new PromptRegistry;
|
|
297
|
-
prompts.register(definePrompt({
|
|
298
|
-
meta: {
|
|
299
|
-
key: "contracts.editor",
|
|
300
|
-
version: "1.0.0",
|
|
301
|
-
title: "Contract editing guide",
|
|
302
|
-
description: "Guide AI agents through reading, editing, and validating contracts.",
|
|
303
|
-
tags: TAGS,
|
|
304
|
-
stability: "beta",
|
|
305
|
-
owners: OWNERS
|
|
306
|
-
},
|
|
307
|
-
args: [
|
|
308
|
-
{
|
|
309
|
-
name: "goal",
|
|
310
|
-
description: "What the agent wants to achieve with the contract.",
|
|
311
|
-
required: false,
|
|
312
|
-
schema: z.string().optional()
|
|
313
|
-
}
|
|
314
|
-
],
|
|
315
|
-
input: z.object({ goal: z.string().optional() }),
|
|
316
|
-
render: async ({ goal }) => [
|
|
317
|
-
{
|
|
318
|
-
type: "text",
|
|
319
|
-
text: [
|
|
320
|
-
"Contract editing workflow:",
|
|
321
|
-
"1. Use contracts.list to discover specs",
|
|
322
|
-
"2. Use contracts.get to read a spec",
|
|
323
|
-
"3. Edit content and call contracts.update",
|
|
324
|
-
"4. Run contracts.validate to verify changes",
|
|
325
|
-
"5. Run contracts.build to regenerate artifacts",
|
|
326
|
-
goal ? `Agent goal: ${goal}` : ""
|
|
327
|
-
].filter(Boolean).join(`
|
|
328
|
-
`)
|
|
329
|
-
},
|
|
330
|
-
{
|
|
331
|
-
type: "resource",
|
|
332
|
-
uri: "contracts://list",
|
|
333
|
-
title: "Available contracts"
|
|
334
|
-
}
|
|
335
|
-
]
|
|
336
|
-
}));
|
|
337
|
-
return prompts;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
// src/application/mcp/contractsMcpTools.ts
|
|
341
|
-
import {
|
|
342
|
-
defineCommand,
|
|
343
|
-
installOp,
|
|
344
|
-
OperationSpecRegistry
|
|
345
|
-
} from "@contractspec/lib.contracts-spec";
|
|
346
|
-
import { defineSchemaModel, ScalarTypeEnum } from "@contractspec/lib.schema";
|
|
347
|
-
var OWNERS2 = ["@contractspec"];
|
|
348
|
-
var TAGS2 = ["contracts", "mcp"];
|
|
349
|
-
function buildContractsOps(services) {
|
|
350
|
-
const registry = new OperationSpecRegistry;
|
|
351
|
-
const ListInput = defineSchemaModel({
|
|
352
|
-
name: "ContractsListInput",
|
|
353
|
-
fields: {
|
|
354
|
-
pattern: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
355
|
-
type: { type: ScalarTypeEnum.String_unsecure(), isOptional: true }
|
|
356
|
-
}
|
|
357
|
-
});
|
|
358
|
-
const ListOutput = defineSchemaModel({
|
|
359
|
-
name: "ContractsListOutput",
|
|
360
|
-
fields: {
|
|
361
|
-
specs: { type: ScalarTypeEnum.JSON(), isOptional: false },
|
|
362
|
-
total: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false }
|
|
363
|
-
}
|
|
364
|
-
});
|
|
365
|
-
installOp(registry, defineCommand({
|
|
366
|
-
meta: {
|
|
367
|
-
key: "contracts.list",
|
|
368
|
-
version: "1.0.0",
|
|
369
|
-
stability: "beta",
|
|
370
|
-
owners: OWNERS2,
|
|
371
|
-
tags: TAGS2,
|
|
372
|
-
description: "List contract specs in the workspace.",
|
|
373
|
-
goal: "Discover available contracts by type, pattern, or owner.",
|
|
374
|
-
context: "Contracts MCP server."
|
|
375
|
-
},
|
|
376
|
-
io: { input: ListInput, output: ListOutput },
|
|
377
|
-
policy: { auth: "anonymous" }
|
|
378
|
-
}), async ({ pattern, type }) => {
|
|
379
|
-
const specs = await services.listSpecs({ pattern, type });
|
|
380
|
-
return { specs, total: specs.length };
|
|
381
|
-
});
|
|
382
|
-
const GetInput = defineSchemaModel({
|
|
383
|
-
name: "ContractsGetInput",
|
|
384
|
-
fields: {
|
|
385
|
-
path: { type: ScalarTypeEnum.String_unsecure(), isOptional: false }
|
|
386
|
-
}
|
|
387
|
-
});
|
|
388
|
-
const GetOutput = defineSchemaModel({
|
|
389
|
-
name: "ContractsGetOutput",
|
|
390
|
-
fields: {
|
|
391
|
-
content: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
392
|
-
info: { type: ScalarTypeEnum.JSON(), isOptional: false }
|
|
393
|
-
}
|
|
394
|
-
});
|
|
395
|
-
installOp(registry, defineCommand({
|
|
396
|
-
meta: {
|
|
397
|
-
key: "contracts.get",
|
|
398
|
-
version: "1.0.0",
|
|
399
|
-
stability: "beta",
|
|
400
|
-
owners: OWNERS2,
|
|
401
|
-
tags: TAGS2,
|
|
402
|
-
description: "Read a single contract spec file.",
|
|
403
|
-
goal: "Fetch spec content and parsed metadata.",
|
|
404
|
-
context: "Contracts MCP server."
|
|
405
|
-
},
|
|
406
|
-
io: { input: GetInput, output: GetOutput },
|
|
407
|
-
policy: { auth: "anonymous" }
|
|
408
|
-
}), async ({ path }) => {
|
|
409
|
-
const result = await services.getSpec(path);
|
|
410
|
-
if (!result)
|
|
411
|
-
throw new Error(`Spec not found: ${path}`);
|
|
412
|
-
return result;
|
|
413
|
-
});
|
|
414
|
-
const ValidateInput = defineSchemaModel({
|
|
415
|
-
name: "ContractsValidateInput",
|
|
416
|
-
fields: {
|
|
417
|
-
path: { type: ScalarTypeEnum.String_unsecure(), isOptional: false }
|
|
418
|
-
}
|
|
419
|
-
});
|
|
420
|
-
const ValidateOutput = defineSchemaModel({
|
|
421
|
-
name: "ContractsValidateOutput",
|
|
422
|
-
fields: {
|
|
423
|
-
valid: { type: ScalarTypeEnum.Boolean(), isOptional: false },
|
|
424
|
-
errors: { type: ScalarTypeEnum.JSON(), isOptional: false },
|
|
425
|
-
warnings: { type: ScalarTypeEnum.JSON(), isOptional: false }
|
|
426
|
-
}
|
|
427
|
-
});
|
|
428
|
-
installOp(registry, defineCommand({
|
|
429
|
-
meta: {
|
|
430
|
-
key: "contracts.validate",
|
|
431
|
-
version: "1.0.0",
|
|
432
|
-
stability: "beta",
|
|
433
|
-
owners: OWNERS2,
|
|
434
|
-
tags: TAGS2,
|
|
435
|
-
description: "Validate a contract spec structure.",
|
|
436
|
-
goal: "Check spec for structural or policy issues.",
|
|
437
|
-
context: "Contracts MCP server."
|
|
438
|
-
},
|
|
439
|
-
io: { input: ValidateInput, output: ValidateOutput },
|
|
440
|
-
policy: { auth: "anonymous" }
|
|
441
|
-
}), async ({ path }) => services.validateSpec(path));
|
|
442
|
-
const BuildInput = defineSchemaModel({
|
|
443
|
-
name: "ContractsBuildInput",
|
|
444
|
-
fields: {
|
|
445
|
-
path: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
446
|
-
dryRun: { type: ScalarTypeEnum.Boolean(), isOptional: true }
|
|
447
|
-
}
|
|
448
|
-
});
|
|
449
|
-
const BuildOutput = defineSchemaModel({
|
|
450
|
-
name: "ContractsBuildOutput",
|
|
451
|
-
fields: {
|
|
452
|
-
results: { type: ScalarTypeEnum.JSON(), isOptional: false }
|
|
453
|
-
}
|
|
454
|
-
});
|
|
455
|
-
installOp(registry, defineCommand({
|
|
456
|
-
meta: {
|
|
457
|
-
key: "contracts.build",
|
|
458
|
-
version: "1.0.0",
|
|
459
|
-
stability: "beta",
|
|
460
|
-
owners: OWNERS2,
|
|
461
|
-
tags: TAGS2,
|
|
462
|
-
description: "Generate implementation code from a contract spec.",
|
|
463
|
-
goal: "Produce handler, component, or test skeletons.",
|
|
464
|
-
context: "Contracts MCP server."
|
|
465
|
-
},
|
|
466
|
-
io: { input: BuildInput, output: BuildOutput },
|
|
467
|
-
policy: { auth: "user" }
|
|
468
|
-
}), async ({ path, dryRun }) => services.buildSpec(path, { dryRun }));
|
|
469
|
-
registerMutationTools(registry, services);
|
|
470
|
-
return registry;
|
|
471
|
-
}
|
|
472
|
-
function registerMutationTools(registry, services) {
|
|
473
|
-
const UpdateInput = defineSchemaModel({
|
|
474
|
-
name: "ContractsUpdateInput",
|
|
475
|
-
fields: {
|
|
476
|
-
path: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
477
|
-
content: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
478
|
-
fields: { type: ScalarTypeEnum.JSON(), isOptional: true }
|
|
479
|
-
}
|
|
480
|
-
});
|
|
481
|
-
const UpdateOutput = defineSchemaModel({
|
|
482
|
-
name: "ContractsUpdateOutput",
|
|
483
|
-
fields: {
|
|
484
|
-
updated: { type: ScalarTypeEnum.Boolean(), isOptional: false },
|
|
485
|
-
errors: { type: ScalarTypeEnum.JSON(), isOptional: false },
|
|
486
|
-
warnings: { type: ScalarTypeEnum.JSON(), isOptional: false }
|
|
487
|
-
}
|
|
488
|
-
});
|
|
489
|
-
installOp(registry, defineCommand({
|
|
490
|
-
meta: {
|
|
491
|
-
key: "contracts.update",
|
|
492
|
-
version: "1.0.0",
|
|
493
|
-
stability: "beta",
|
|
494
|
-
owners: OWNERS2,
|
|
495
|
-
tags: TAGS2,
|
|
496
|
-
description: "Update an existing contract spec.",
|
|
497
|
-
goal: "Modify spec content or individual fields with validation.",
|
|
498
|
-
context: "Contracts MCP server."
|
|
499
|
-
},
|
|
500
|
-
io: { input: UpdateInput, output: UpdateOutput },
|
|
501
|
-
policy: { auth: "user" }
|
|
502
|
-
}), async ({ path, content, fields }) => services.updateSpec(path, {
|
|
503
|
-
content,
|
|
504
|
-
fields: Array.isArray(fields) ? fields : undefined
|
|
505
|
-
}));
|
|
506
|
-
const DeleteInput = defineSchemaModel({
|
|
507
|
-
name: "ContractsDeleteInput",
|
|
508
|
-
fields: {
|
|
509
|
-
path: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
510
|
-
clean: { type: ScalarTypeEnum.Boolean(), isOptional: true }
|
|
511
|
-
}
|
|
512
|
-
});
|
|
513
|
-
const DeleteOutput = defineSchemaModel({
|
|
514
|
-
name: "ContractsDeleteOutput",
|
|
515
|
-
fields: {
|
|
516
|
-
deleted: { type: ScalarTypeEnum.Boolean(), isOptional: false },
|
|
517
|
-
cleanedFiles: { type: ScalarTypeEnum.JSON(), isOptional: false },
|
|
518
|
-
errors: { type: ScalarTypeEnum.JSON(), isOptional: false }
|
|
519
|
-
}
|
|
520
|
-
});
|
|
521
|
-
installOp(registry, defineCommand({
|
|
522
|
-
meta: {
|
|
523
|
-
key: "contracts.delete",
|
|
524
|
-
version: "1.0.0",
|
|
525
|
-
stability: "beta",
|
|
526
|
-
owners: OWNERS2,
|
|
527
|
-
tags: TAGS2,
|
|
528
|
-
description: "Delete a contract spec and optionally its artifacts.",
|
|
529
|
-
goal: "Remove a spec file and clean generated handlers/tests.",
|
|
530
|
-
context: "Contracts MCP server."
|
|
531
|
-
},
|
|
532
|
-
io: { input: DeleteInput, output: DeleteOutput },
|
|
533
|
-
policy: { auth: "user" }
|
|
534
|
-
}), async ({ path, clean }) => services.deleteSpec(path, { clean }));
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
// src/application/mcp/contractsMcp.ts
|
|
538
|
-
function createContractsMcpHandler(path = "/api/mcp/contracts", services) {
|
|
539
|
-
return createMcpElysiaHandler({
|
|
540
|
-
logger: appLogger,
|
|
541
|
-
path,
|
|
542
|
-
serverName: "contractspec-contracts-mcp",
|
|
543
|
-
ops: buildContractsOps(services),
|
|
544
|
-
resources: buildContractsResources(services),
|
|
545
|
-
prompts: buildContractsPrompts()
|
|
546
|
-
});
|
|
547
|
-
}
|
|
548
|
-
export {
|
|
549
|
-
createContractsMcpHandler
|
|
550
|
-
};
|
|
2
|
+
import{Logger as N,LogLevel as M}from"@contractspec/lib.logger";function O(){return"production"}var u=()=>new N({level:M.INFO,environment:O(),enableTracing:!0,enableTiming:!0,enableContext:!0,enableColors:!1}),T=u(),kj=new N({level:M.WARN,environment:O(),enableTracing:!0,enableTiming:!0,enableContext:!0,enableColors:!1}),Fj=new N({level:M.INFO,environment:O(),enableTracing:!0,enableTiming:!0,enableContext:!0,enableColors:!1});var y=["application/json","text/event-stream"];function l(j){return!j||j.includes("*/*")||j.includes("application/*")||y.some((_)=>j.includes(_))}function q(j){if(j.method!=="POST")return j;let _=j.headers.get("accept");if(!l(_))return j;let Q=y.filter((Z)=>!_?.includes(Z));if(Q.length===0)return j;let Y=new Headers(j.headers);return Y.set("accept",[_,...Q].filter(Boolean).join(", ")),new Request(j,{headers:Y})}import{createMcpServer as n}from"@contractspec/lib.contracts-runtime-server-mcp/provider-mcp";import{PresentationRegistry as c}from"@contractspec/lib.contracts-spec/presentations";import{McpServer as i}from"@modelcontextprotocol/sdk/server/mcp.js";import{WebStandardStreamableHTTPServerTransport as p}from"@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";import{randomUUID as o}from"crypto";import{Elysia as a}from"elysia";var t={actor:"anonymous",decide:async()=>({effect:"allow"})};function f(j,_,Q,Y){return new Response(JSON.stringify({jsonrpc:"2.0",error:{code:_,message:Q,...Y?{data:Y}:{}},id:null}),{status:j,headers:{"content-type":"application/json"}})}function h({logger:j,serverName:_,ops:Q,resources:Y,prompts:Z,presentations:B,stateful:$}){let K=new i({name:_,version:"1.0.0"},{capabilities:{tools:{},resources:{},prompts:{},logging:{}}});j.info("Setting up MCP server..."),n(K,Q,Y,Z,{logger:j,toolCtx:()=>t,promptCtx:()=>({locale:"en"}),resourceCtx:()=>({locale:"en"}),presentations:new c(B)});let x=new p({sessionIdGenerator:$?()=>o():void 0,enableJsonResponse:!0});return K.connect(x).then(()=>({server:K,transport:x}))}async function R(j){await Promise.allSettled([j.transport.close(),j.server.close()])}function r(j){return j instanceof Error?j.stack??j.message:String(j)}function v({logger:j,path:_,serverName:Q,ops:Y,resources:Z,prompts:B,presentations:$,validateAuth:K,requiredAuthMethods:x}){j.info("Setting up MCP handler...",{requiredAuthMethods:x??[]});let I=process.env.CONTRACTSPEC_MCP_STATEFUL==="1",k=new Map;async function D(F){let J=await h({logger:j,path:_,serverName:Q,ops:Y,resources:Z,prompts:B,presentations:$,stateful:!1});try{return await J.transport.handleRequest(q(F))}finally{await R(J)}}async function G(F){let J=k.get(F);if(!J)return;k.delete(F),await R(J)}async function d(F){let J=F.headers.get("mcp-session-id"),P,L=!1;if(J){let H=k.get(J);if(!H)return f(404,-32001,"Session not found");P=H}else P=await h({logger:j,path:_,serverName:Q,ops:Y,resources:Z,prompts:B,presentations:$,stateful:!0}),L=!0;try{let H=await P.transport.handleRequest(q(F)),V=P.transport.sessionId;if(V&&!k.has(V))k.set(V,P);if(F.method==="DELETE"&&V)await G(V);else if(!V&&L)await R(P);return H}catch(H){if(L)await R(P);throw H}}return new a({name:`mcp-${Q}`}).all(_,async({request:F})=>{try{if(K){let J=await K(F);if(!J.valid)return f(401,-32002,"Authentication failed",J.reason)}if(I)return await d(F);return await D(F)}catch(J){return j.error("Error handling MCP request",{path:_,method:F.method,error:r(J)}),f(500,-32000,"Internal error")}})}import{definePrompt as s,defineResourceTemplate as E,PromptRegistry as e,ResourceRegistry as jj}from"@contractspec/lib.contracts-spec";import U from"zod";var _j=["@contractspec"],A=["contracts","mcp"];function g(j){let _=new jj;return _.register(E({meta:{uriTemplate:"contracts://list",title:"Contract specs list",description:"JSON list of all contract specs in the workspace.",mimeType:"application/json",tags:A},input:U.object({}),resolve:async()=>{let Q=await j.listSpecs();return{uri:"contracts://list",mimeType:"application/json",data:JSON.stringify(Q,null,2)}}})),_.register(E({meta:{uriTemplate:"contracts://spec/{path}",title:"Contract spec content",description:"Read a single contract spec file by path.",mimeType:"text/plain",tags:A},input:U.object({path:U.string()}),resolve:async({path:Q})=>{let Y=await j.getSpec(Q);if(!Y)return{uri:`contracts://spec/${encodeURIComponent(Q)}`,mimeType:"text/plain",data:`Spec not found: ${Q}`};return{uri:`contracts://spec/${encodeURIComponent(Q)}`,mimeType:"text/plain",data:Y.content}}})),_.register(E({meta:{uriTemplate:"contracts://registry/manifest",title:"Remote registry manifest",description:"Contract registry manifest from the remote server.",mimeType:"application/json",tags:A},input:U.object({}),resolve:async()=>{let Q=await j.fetchRegistryManifest();return{uri:"contracts://registry/manifest",mimeType:"application/json",data:JSON.stringify(Q,null,2)}}})),_}function S(){let j=new e;return j.register(s({meta:{key:"contracts.editor",version:"1.0.0",title:"Contract editing guide",description:"Guide AI agents through reading, editing, and validating contracts.",tags:A,stability:"beta",owners:_j},args:[{name:"goal",description:"What the agent wants to achieve with the contract.",required:!1,schema:U.string().optional()}],input:U.object({goal:U.string().optional()}),render:async({goal:_})=>[{type:"text",text:["Contract editing workflow:","1. Use contracts.list to discover specs","2. Use contracts.get to read a spec","3. Edit content and call contracts.update","4. Run contracts.validate to verify changes","5. Run contracts.build to regenerate artifacts",_?`Agent goal: ${_}`:""].filter(Boolean).join(`
|
|
3
|
+
`)},{type:"resource",uri:"contracts://list",title:"Available contracts"}]})),j}import{defineCommand as z,installOp as C,OperationSpecRegistry as wj}from"@contractspec/lib.contracts-spec";import{defineSchemaModel as X,ScalarTypeEnum as w}from"@contractspec/lib.schema";var W=["@contractspec"],b=["contracts","mcp"];function m(j){let _=new wj,Q=X({name:"ContractsListInput",fields:{pattern:{type:w.String_unsecure(),isOptional:!0},type:{type:w.String_unsecure(),isOptional:!0}}}),Y=X({name:"ContractsListOutput",fields:{specs:{type:w.JSON(),isOptional:!1},total:{type:w.Int_unsecure(),isOptional:!1}}});C(_,z({meta:{key:"contracts.list",version:"1.0.0",stability:"beta",owners:W,tags:b,description:"List contract specs in the workspace.",goal:"Discover available contracts by type, pattern, or owner.",context:"Contracts MCP server."},io:{input:Q,output:Y},policy:{auth:"anonymous"}}),async({pattern:k,type:D})=>{let G=await j.listSpecs({pattern:k,type:D});return{specs:G,total:G.length}});let Z=X({name:"ContractsGetInput",fields:{path:{type:w.String_unsecure(),isOptional:!1}}}),B=X({name:"ContractsGetOutput",fields:{content:{type:w.String_unsecure(),isOptional:!1},info:{type:w.JSON(),isOptional:!1}}});C(_,z({meta:{key:"contracts.get",version:"1.0.0",stability:"beta",owners:W,tags:b,description:"Read a single contract spec file.",goal:"Fetch spec content and parsed metadata.",context:"Contracts MCP server."},io:{input:Z,output:B},policy:{auth:"anonymous"}}),async({path:k})=>{let D=await j.getSpec(k);if(!D)throw Error(`Spec not found: ${k}`);return D});let $=X({name:"ContractsValidateInput",fields:{path:{type:w.String_unsecure(),isOptional:!1}}}),K=X({name:"ContractsValidateOutput",fields:{valid:{type:w.Boolean(),isOptional:!1},errors:{type:w.JSON(),isOptional:!1},warnings:{type:w.JSON(),isOptional:!1}}});C(_,z({meta:{key:"contracts.validate",version:"1.0.0",stability:"beta",owners:W,tags:b,description:"Validate a contract spec structure.",goal:"Check spec for structural or policy issues.",context:"Contracts MCP server."},io:{input:$,output:K},policy:{auth:"anonymous"}}),async({path:k})=>j.validateSpec(k));let x=X({name:"ContractsBuildInput",fields:{path:{type:w.String_unsecure(),isOptional:!1},dryRun:{type:w.Boolean(),isOptional:!0}}}),I=X({name:"ContractsBuildOutput",fields:{results:{type:w.JSON(),isOptional:!1}}});return C(_,z({meta:{key:"contracts.build",version:"1.0.0",stability:"beta",owners:W,tags:b,description:"Generate implementation code from a contract spec.",goal:"Produce handler, component, or test skeletons.",context:"Contracts MCP server."},io:{input:x,output:I},policy:{auth:"user"}}),async({path:k,dryRun:D})=>j.buildSpec(k,{dryRun:D})),Qj(_,j),_}function Qj(j,_){let Q=X({name:"ContractsUpdateInput",fields:{path:{type:w.String_unsecure(),isOptional:!1},content:{type:w.String_unsecure(),isOptional:!0},fields:{type:w.JSON(),isOptional:!0}}}),Y=X({name:"ContractsUpdateOutput",fields:{updated:{type:w.Boolean(),isOptional:!1},errors:{type:w.JSON(),isOptional:!1},warnings:{type:w.JSON(),isOptional:!1}}});C(j,z({meta:{key:"contracts.update",version:"1.0.0",stability:"beta",owners:W,tags:b,description:"Update an existing contract spec.",goal:"Modify spec content or individual fields with validation.",context:"Contracts MCP server."},io:{input:Q,output:Y},policy:{auth:"user"}}),async({path:$,content:K,fields:x})=>_.updateSpec($,{content:K,fields:Array.isArray(x)?x:void 0}));let Z=X({name:"ContractsDeleteInput",fields:{path:{type:w.String_unsecure(),isOptional:!1},clean:{type:w.Boolean(),isOptional:!0}}}),B=X({name:"ContractsDeleteOutput",fields:{deleted:{type:w.Boolean(),isOptional:!1},cleanedFiles:{type:w.JSON(),isOptional:!1},errors:{type:w.JSON(),isOptional:!1}}});C(j,z({meta:{key:"contracts.delete",version:"1.0.0",stability:"beta",owners:W,tags:b,description:"Delete a contract spec and optionally its artifacts.",goal:"Remove a spec file and clean generated handlers/tests.",context:"Contracts MCP server."},io:{input:Z,output:B},policy:{auth:"user"}}),async({path:$,clean:K})=>_.deleteSpec($,{clean:K}))}function Lj(j="/api/mcp/contracts",_){return v({logger:T,path:j,serverName:"contractspec-contracts-mcp",ops:m(_),resources:g(_),prompts:S()})}export{Lj as createContractsMcpHandler};
|
|
@@ -1,124 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
definePrompt,
|
|
5
|
-
defineResourceTemplate,
|
|
6
|
-
PromptRegistry,
|
|
7
|
-
ResourceRegistry
|
|
8
|
-
} from "@contractspec/lib.contracts-spec";
|
|
9
|
-
import z from "zod";
|
|
10
|
-
var OWNERS = ["@contractspec"];
|
|
11
|
-
var TAGS = ["contracts", "mcp"];
|
|
12
|
-
function buildContractsResources(services) {
|
|
13
|
-
const resources = new ResourceRegistry;
|
|
14
|
-
resources.register(defineResourceTemplate({
|
|
15
|
-
meta: {
|
|
16
|
-
uriTemplate: "contracts://list",
|
|
17
|
-
title: "Contract specs list",
|
|
18
|
-
description: "JSON list of all contract specs in the workspace.",
|
|
19
|
-
mimeType: "application/json",
|
|
20
|
-
tags: TAGS
|
|
21
|
-
},
|
|
22
|
-
input: z.object({}),
|
|
23
|
-
resolve: async () => {
|
|
24
|
-
const specs = await services.listSpecs();
|
|
25
|
-
return {
|
|
26
|
-
uri: "contracts://list",
|
|
27
|
-
mimeType: "application/json",
|
|
28
|
-
data: JSON.stringify(specs, null, 2)
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
}));
|
|
32
|
-
resources.register(defineResourceTemplate({
|
|
33
|
-
meta: {
|
|
34
|
-
uriTemplate: "contracts://spec/{path}",
|
|
35
|
-
title: "Contract spec content",
|
|
36
|
-
description: "Read a single contract spec file by path.",
|
|
37
|
-
mimeType: "text/plain",
|
|
38
|
-
tags: TAGS
|
|
39
|
-
},
|
|
40
|
-
input: z.object({ path: z.string() }),
|
|
41
|
-
resolve: async ({ path }) => {
|
|
42
|
-
const result = await services.getSpec(path);
|
|
43
|
-
if (!result) {
|
|
44
|
-
return {
|
|
45
|
-
uri: `contracts://spec/${encodeURIComponent(path)}`,
|
|
46
|
-
mimeType: "text/plain",
|
|
47
|
-
data: `Spec not found: ${path}`
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
uri: `contracts://spec/${encodeURIComponent(path)}`,
|
|
52
|
-
mimeType: "text/plain",
|
|
53
|
-
data: result.content
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
}));
|
|
57
|
-
resources.register(defineResourceTemplate({
|
|
58
|
-
meta: {
|
|
59
|
-
uriTemplate: "contracts://registry/manifest",
|
|
60
|
-
title: "Remote registry manifest",
|
|
61
|
-
description: "Contract registry manifest from the remote server.",
|
|
62
|
-
mimeType: "application/json",
|
|
63
|
-
tags: TAGS
|
|
64
|
-
},
|
|
65
|
-
input: z.object({}),
|
|
66
|
-
resolve: async () => {
|
|
67
|
-
const manifest = await services.fetchRegistryManifest();
|
|
68
|
-
return {
|
|
69
|
-
uri: "contracts://registry/manifest",
|
|
70
|
-
mimeType: "application/json",
|
|
71
|
-
data: JSON.stringify(manifest, null, 2)
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
}));
|
|
75
|
-
return resources;
|
|
76
|
-
}
|
|
77
|
-
function buildContractsPrompts() {
|
|
78
|
-
const prompts = new PromptRegistry;
|
|
79
|
-
prompts.register(definePrompt({
|
|
80
|
-
meta: {
|
|
81
|
-
key: "contracts.editor",
|
|
82
|
-
version: "1.0.0",
|
|
83
|
-
title: "Contract editing guide",
|
|
84
|
-
description: "Guide AI agents through reading, editing, and validating contracts.",
|
|
85
|
-
tags: TAGS,
|
|
86
|
-
stability: "beta",
|
|
87
|
-
owners: OWNERS
|
|
88
|
-
},
|
|
89
|
-
args: [
|
|
90
|
-
{
|
|
91
|
-
name: "goal",
|
|
92
|
-
description: "What the agent wants to achieve with the contract.",
|
|
93
|
-
required: false,
|
|
94
|
-
schema: z.string().optional()
|
|
95
|
-
}
|
|
96
|
-
],
|
|
97
|
-
input: z.object({ goal: z.string().optional() }),
|
|
98
|
-
render: async ({ goal }) => [
|
|
99
|
-
{
|
|
100
|
-
type: "text",
|
|
101
|
-
text: [
|
|
102
|
-
"Contract editing workflow:",
|
|
103
|
-
"1. Use contracts.list to discover specs",
|
|
104
|
-
"2. Use contracts.get to read a spec",
|
|
105
|
-
"3. Edit content and call contracts.update",
|
|
106
|
-
"4. Run contracts.validate to verify changes",
|
|
107
|
-
"5. Run contracts.build to regenerate artifacts",
|
|
108
|
-
goal ? `Agent goal: ${goal}` : ""
|
|
109
|
-
].filter(Boolean).join(`
|
|
110
|
-
`)
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
type: "resource",
|
|
114
|
-
uri: "contracts://list",
|
|
115
|
-
title: "Available contracts"
|
|
116
|
-
}
|
|
117
|
-
]
|
|
118
|
-
}));
|
|
119
|
-
return prompts;
|
|
120
|
-
}
|
|
121
|
-
export {
|
|
122
|
-
buildContractsResources,
|
|
123
|
-
buildContractsPrompts
|
|
124
|
-
};
|
|
2
|
+
import{definePrompt as D,defineResourceTemplate as B,PromptRegistry as F,ResourceRegistry as H}from"@contractspec/lib.contracts-spec";import q from"zod";var I=["@contractspec"],x=["contracts","mcp"];function L(w){let k=new H;return k.register(B({meta:{uriTemplate:"contracts://list",title:"Contract specs list",description:"JSON list of all contract specs in the workspace.",mimeType:"application/json",tags:x},input:q.object({}),resolve:async()=>{let j=await w.listSpecs();return{uri:"contracts://list",mimeType:"application/json",data:JSON.stringify(j,null,2)}}})),k.register(B({meta:{uriTemplate:"contracts://spec/{path}",title:"Contract spec content",description:"Read a single contract spec file by path.",mimeType:"text/plain",tags:x},input:q.object({path:q.string()}),resolve:async({path:j})=>{let C=await w.getSpec(j);if(!C)return{uri:`contracts://spec/${encodeURIComponent(j)}`,mimeType:"text/plain",data:`Spec not found: ${j}`};return{uri:`contracts://spec/${encodeURIComponent(j)}`,mimeType:"text/plain",data:C.content}}})),k.register(B({meta:{uriTemplate:"contracts://registry/manifest",title:"Remote registry manifest",description:"Contract registry manifest from the remote server.",mimeType:"application/json",tags:x},input:q.object({}),resolve:async()=>{let j=await w.fetchRegistryManifest();return{uri:"contracts://registry/manifest",mimeType:"application/json",data:JSON.stringify(j,null,2)}}})),k}function M(){let w=new F;return w.register(D({meta:{key:"contracts.editor",version:"1.0.0",title:"Contract editing guide",description:"Guide AI agents through reading, editing, and validating contracts.",tags:x,stability:"beta",owners:I},args:[{name:"goal",description:"What the agent wants to achieve with the contract.",required:!1,schema:q.string().optional()}],input:q.object({goal:q.string().optional()}),render:async({goal:k})=>[{type:"text",text:["Contract editing workflow:","1. Use contracts.list to discover specs","2. Use contracts.get to read a spec","3. Edit content and call contracts.update","4. Run contracts.validate to verify changes","5. Run contracts.build to regenerate artifacts",k?`Agent goal: ${k}`:""].filter(Boolean).join(`
|
|
3
|
+
`)},{type:"resource",uri:"contracts://list",title:"Available contracts"}]})),w}export{L as buildContractsResources,M as buildContractsPrompts};
|