@contractspec/lib.contracts-spec 2.0.0
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/README.md +3 -0
- package/dist/app-config/app-config.capability.d.ts +1 -0
- package/dist/app-config/app-config.capability.js +730 -0
- package/dist/app-config/app-config.contracts.d.ts +239 -0
- package/dist/app-config/app-config.contracts.js +713 -0
- package/dist/app-config/app-config.contracts.test.d.ts +1 -0
- package/dist/app-config/app-config.feature.d.ts +5 -0
- package/dist/app-config/app-config.feature.js +255 -0
- package/dist/app-config/branding.d.ts +52 -0
- package/dist/app-config/branding.js +1 -0
- package/dist/app-config/branding.test.d.ts +1 -0
- package/dist/app-config/docs/app-config.docblock.d.ts +2 -0
- package/dist/app-config/docs/app-config.docblock.js +383 -0
- package/dist/app-config/events.d.ts +115 -0
- package/dist/app-config/events.js +386 -0
- package/dist/app-config/events.test.d.ts +1 -0
- package/dist/app-config/index.d.ts +9 -0
- package/dist/app-config/index.js +2899 -0
- package/dist/app-config/lifecycle-contracts.d.ts +265 -0
- package/dist/app-config/lifecycle-contracts.js +870 -0
- package/dist/app-config/lifecycle-contracts.test.d.ts +1 -0
- package/dist/app-config/lifecycle.d.ts +23 -0
- package/dist/app-config/lifecycle.js +1 -0
- package/dist/app-config/lifecycle.test.d.ts +1 -0
- package/dist/app-config/runtime.d.ts +111 -0
- package/dist/app-config/runtime.js +734 -0
- package/dist/app-config/runtime.test.d.ts +1 -0
- package/dist/app-config/spec.d.ts +169 -0
- package/dist/app-config/spec.js +229 -0
- package/dist/app-config/spec.test.d.ts +1 -0
- package/dist/app-config/validation.d.ts +43 -0
- package/dist/app-config/validation.js +650 -0
- package/dist/app-config/validation.test.d.ts +1 -0
- package/dist/capabilities/capabilities.d.ts +96 -0
- package/dist/capabilities/capabilities.js +217 -0
- package/dist/capabilities/capabilities.test.d.ts +1 -0
- package/dist/capabilities/context.d.ts +110 -0
- package/dist/capabilities/context.js +101 -0
- package/dist/capabilities/context.test.d.ts +1 -0
- package/dist/capabilities/docs/capabilities.docblock.d.ts +2 -0
- package/dist/capabilities/docs/capabilities.docblock.js +353 -0
- package/dist/capabilities/guards.d.ts +121 -0
- package/dist/capabilities/guards.js +177 -0
- package/dist/capabilities/index.d.ts +6 -0
- package/dist/capabilities/index.js +739 -0
- package/dist/capabilities/meeting-recorder.d.ts +5 -0
- package/dist/capabilities/meeting-recorder.js +154 -0
- package/dist/capabilities/openbanking.d.ts +5 -0
- package/dist/capabilities/openbanking.js +166 -0
- package/dist/capabilities/validation.d.ts +79 -0
- package/dist/capabilities/validation.js +185 -0
- package/dist/capabilities/validation.test.d.ts +1 -0
- package/dist/contract-registry/index.d.ts +3 -0
- package/dist/contract-registry/index.js +129 -0
- package/dist/contract-registry/schemas.d.ts +120 -0
- package/dist/contract-registry/schemas.js +129 -0
- package/dist/contract-registry/schemas.test.d.ts +1 -0
- package/dist/contract-registry/types.d.ts +42 -0
- package/dist/contract-registry/types.js +1 -0
- package/dist/data-views/data-views.d.ts +4 -0
- package/dist/data-views/data-views.js +232 -0
- package/dist/data-views/data-views.test.d.ts +1 -0
- package/dist/data-views/docs/data-views.docblock.d.ts +2 -0
- package/dist/data-views/docs/data-views.docblock.js +164 -0
- package/dist/data-views/index.d.ts +4 -0
- package/dist/data-views/index.js +232 -0
- package/dist/data-views/query-generator.d.ts +35 -0
- package/dist/data-views/query-generator.js +89 -0
- package/dist/data-views/registry.d.ts +12 -0
- package/dist/data-views/registry.js +226 -0
- package/dist/data-views/registry.test.d.ts +1 -0
- package/dist/data-views/report/contractVerificationTable.d.ts +4 -0
- package/dist/data-views/report/contractVerificationTable.js +240 -0
- package/dist/data-views/report/contractVerificationTable.test.d.ts +1 -0
- package/dist/data-views/runtime.d.ts +25 -0
- package/dist/data-views/runtime.js +108 -0
- package/dist/data-views/runtime.test.d.ts +1 -0
- package/dist/data-views/spec.d.ts +22 -0
- package/dist/data-views/spec.js +38 -0
- package/dist/data-views/spec.test.d.ts +1 -0
- package/dist/data-views/types.d.ts +152 -0
- package/dist/data-views/types.js +1 -0
- package/dist/data-views/types.test.d.ts +1 -0
- package/dist/docs/accessibility_wcag_compliance_specs.docblock.d.ts +2 -0
- package/dist/docs/accessibility_wcag_compliance_specs.docblock.js +513 -0
- package/dist/docs/capabilities/documentationSystem.capability.d.ts +1 -0
- package/dist/docs/capabilities/documentationSystem.capability.js +784 -0
- package/dist/docs/capabilities/index.d.ts +1 -0
- package/dist/docs/capabilities/index.js +784 -0
- package/dist/docs/commands/docsGenerate.command.d.ts +88 -0
- package/dist/docs/commands/docsGenerate.command.js +802 -0
- package/dist/docs/commands/docsPublish.command.d.ts +57 -0
- package/dist/docs/commands/docsPublish.command.js +781 -0
- package/dist/docs/commands/index.d.ts +2 -0
- package/dist/docs/commands/index.js +906 -0
- package/dist/docs/constants.d.ts +4 -0
- package/dist/docs/constants.js +78 -0
- package/dist/docs/contracts.d.ts +430 -0
- package/dist/docs/contracts.js +1611 -0
- package/dist/docs/ensure-docblocks.d.ts +1 -0
- package/dist/docs/ensure-docblocks.js +264 -0
- package/dist/docs/events/docsGenerated.event.d.ts +56 -0
- package/dist/docs/events/docsGenerated.event.js +533 -0
- package/dist/docs/events/docsPublished.event.d.ts +64 -0
- package/dist/docs/events/docsPublished.event.js +534 -0
- package/dist/docs/events/index.d.ts +2 -0
- package/dist/docs/events/index.js +567 -0
- package/dist/docs/forms/docsSearch.form.d.ts +16 -0
- package/dist/docs/forms/docsSearch.form.js +676 -0
- package/dist/docs/forms/index.d.ts +1 -0
- package/dist/docs/forms/index.js +676 -0
- package/dist/docs/index.d.ts +40 -0
- package/dist/docs/index.js +4719 -0
- package/dist/docs/meta.docs.d.ts +2 -0
- package/dist/docs/meta.docs.js +176 -0
- package/dist/docs/presentations/docsLayout.presentation.d.ts +2 -0
- package/dist/docs/presentations/docsLayout.presentation.js +527 -0
- package/dist/docs/presentations/docsReferencePage.presentation.d.ts +2 -0
- package/dist/docs/presentations/docsReferencePage.presentation.js +527 -0
- package/dist/docs/presentations/index.d.ts +2 -0
- package/dist/docs/presentations/index.js +555 -0
- package/dist/docs/presentations.d.ts +27 -0
- package/dist/docs/presentations.js +97 -0
- package/dist/docs/presentations.test.d.ts +1 -0
- package/dist/docs/queries/contractReference.query.d.ts +211 -0
- package/dist/docs/queries/contractReference.query.js +752 -0
- package/dist/docs/queries/docsIndex.query.d.ts +266 -0
- package/dist/docs/queries/docsIndex.query.js +752 -0
- package/dist/docs/queries/index.d.ts +2 -0
- package/dist/docs/queries/index.js +827 -0
- package/dist/docs/registry.d.ts +19 -0
- package/dist/docs/registry.js +153 -0
- package/dist/docs/registry.test.d.ts +1 -0
- package/dist/docs/tech/auth/better-auth-nextjs.docblock.d.ts +2 -0
- package/dist/docs/tech/auth/better-auth-nextjs.docblock.js +221 -0
- package/dist/docs/tech/cli.docblock.d.ts +2 -0
- package/dist/docs/tech/cli.docblock.js +291 -0
- package/dist/docs/tech/contracts/README.docblock.d.ts +2 -0
- package/dist/docs/tech/contracts/README.docblock.js +164 -0
- package/dist/docs/tech/contracts/migrations.docblock.d.ts +2 -0
- package/dist/docs/tech/contracts/migrations.docblock.js +164 -0
- package/dist/docs/tech/contracts/openapi-export.docblock.d.ts +2 -0
- package/dist/docs/tech/contracts/openapi-export.docblock.js +201 -0
- package/dist/docs/tech/contracts/openapi-import.docblock.d.ts +2 -0
- package/dist/docs/tech/contracts/openapi-import.docblock.js +207 -0
- package/dist/docs/tech/contracts/ops-to-presentation-linking.docblock.d.ts +2 -0
- package/dist/docs/tech/contracts/ops-to-presentation-linking.docblock.js +225 -0
- package/dist/docs/tech/contracts/overlays.docblock.d.ts +2 -0
- package/dist/docs/tech/contracts/overlays.docblock.js +231 -0
- package/dist/docs/tech/contracts/tests.docblock.d.ts +2 -0
- package/dist/docs/tech/contracts/tests.docblock.js +164 -0
- package/dist/docs/tech/contracts/themes.docblock.d.ts +2 -0
- package/dist/docs/tech/contracts/themes.docblock.js +257 -0
- package/dist/docs/tech/contracts/vertical-pocket-family-office.docblock.d.ts +2 -0
- package/dist/docs/tech/contracts/vertical-pocket-family-office.docblock.js +269 -0
- package/dist/docs/tech/docs-system.docblock.d.ts +1 -0
- package/dist/docs/tech/docs-system.docblock.js +264 -0
- package/dist/docs/tech/lifecycle-stage-system.docblock.d.ts +2 -0
- package/dist/docs/tech/lifecycle-stage-system.docblock.js +376 -0
- package/dist/docs/tech/llm/llm-integration.docblock.d.ts +7 -0
- package/dist/docs/tech/llm/llm-integration.docblock.js +482 -0
- package/dist/docs/tech/mcp-endpoints.docblock.d.ts +2 -0
- package/dist/docs/tech/mcp-endpoints.docblock.js +185 -0
- package/dist/docs/tech/presentation-runtime.docblock.d.ts +2 -0
- package/dist/docs/tech/presentation-runtime.docblock.js +221 -0
- package/dist/docs/tech/report-verification-table.docblock.d.ts +1 -0
- package/dist/docs/tech/report-verification-table.docblock.js +191 -0
- package/dist/docs/tech/report-verification-table.test.d.ts +1 -0
- package/dist/docs/tech/schema/README.docblock.d.ts +2 -0
- package/dist/docs/tech/schema/README.docblock.js +164 -0
- package/dist/docs/tech/studio/learning-events.docblock.d.ts +2 -0
- package/dist/docs/tech/studio/learning-events.docblock.js +190 -0
- package/dist/docs/tech/studio/learning-journeys.docblock.d.ts +2 -0
- package/dist/docs/tech/studio/learning-journeys.docblock.js +227 -0
- package/dist/docs/tech/studio/platform-admin-panel.docblock.d.ts +2 -0
- package/dist/docs/tech/studio/platform-admin-panel.docblock.js +226 -0
- package/dist/docs/tech/studio/project-access-teams.docblock.d.ts +2 -0
- package/dist/docs/tech/studio/project-access-teams.docblock.js +200 -0
- package/dist/docs/tech/studio/project-routing.docblock.d.ts +2 -0
- package/dist/docs/tech/studio/project-routing.docblock.js +209 -0
- package/dist/docs/tech/studio/sandbox-unlogged.docblock.d.ts +2 -0
- package/dist/docs/tech/studio/sandbox-unlogged.docblock.js +183 -0
- package/dist/docs/tech/studio/team-invitations.docblock.d.ts +2 -0
- package/dist/docs/tech/studio/team-invitations.docblock.js +228 -0
- package/dist/docs/tech/studio/workspace-ops.docblock.d.ts +2 -0
- package/dist/docs/tech/studio/workspace-ops.docblock.js +189 -0
- package/dist/docs/tech/studio/workspaces.docblock.d.ts +2 -0
- package/dist/docs/tech/studio/workspaces.docblock.js +204 -0
- package/dist/docs/tech/telemetry-ingest.docblock.d.ts +2 -0
- package/dist/docs/tech/telemetry-ingest.docblock.js +305 -0
- package/dist/docs/tech/vscode-extension.docblock.d.ts +2 -0
- package/dist/docs/tech/vscode-extension.docblock.js +241 -0
- package/dist/docs/tech-contracts.docs.d.ts +2 -0
- package/dist/docs/tech-contracts.docs.js +239 -0
- package/dist/docs/types.d.ts +37 -0
- package/dist/docs/types.js +1 -0
- package/dist/docs/views/contractReference.dataView.d.ts +2 -0
- package/dist/docs/views/contractReference.dataView.js +838 -0
- package/dist/docs/views/docsIndex.dataView.d.ts +2 -0
- package/dist/docs/views/docsIndex.dataView.js +832 -0
- package/dist/docs/views/exampleCatalog.dataView.d.ts +2 -0
- package/dist/docs/views/exampleCatalog.dataView.js +816 -0
- package/dist/docs/views/index.d.ts +3 -0
- package/dist/docs/views/index.js +1031 -0
- package/dist/events.d.ts +142 -0
- package/dist/events.js +228 -0
- package/dist/events.test.d.ts +1 -0
- package/dist/examples/define.d.ts +5 -0
- package/dist/examples/define.js +36 -0
- package/dist/examples/docs/examples.docblock.d.ts +2 -0
- package/dist/examples/docs/examples.docblock.js +307 -0
- package/dist/examples/index.d.ts +7 -0
- package/dist/examples/index.js +604 -0
- package/dist/examples/registry.d.ts +38 -0
- package/dist/examples/registry.js +286 -0
- package/dist/examples/registry.test.d.ts +1 -0
- package/dist/examples/schema.d.ts +278 -0
- package/dist/examples/schema.js +166 -0
- package/dist/examples/schema.test.d.ts +1 -0
- package/dist/examples/types.d.ts +162 -0
- package/dist/examples/types.js +77 -0
- package/dist/examples/types.test.d.ts +1 -0
- package/dist/examples/validation.d.ts +61 -0
- package/dist/examples/validation.js +287 -0
- package/dist/examples/validation.test.d.ts +1 -0
- package/dist/experiments/docs/experiments.docblock.d.ts +2 -0
- package/dist/experiments/docs/experiments.docblock.js +291 -0
- package/dist/experiments/evaluator.d.ts +33 -0
- package/dist/experiments/evaluator.js +155 -0
- package/dist/experiments/evaluator.test.d.ts +1 -0
- package/dist/experiments/spec-resolver.d.ts +12 -0
- package/dist/experiments/spec-resolver.js +1 -0
- package/dist/experiments/spec.d.ts +79 -0
- package/dist/experiments/spec.js +227 -0
- package/dist/experiments/spec.test.d.ts +1 -0
- package/dist/features/index.d.ts +5 -0
- package/dist/features/index.js +275 -0
- package/dist/features/install.d.ts +14 -0
- package/dist/features/install.js +95 -0
- package/dist/features/install.test.d.ts +1 -0
- package/dist/features/registry.d.ts +21 -0
- package/dist/features/registry.js +192 -0
- package/dist/features/registry.test.d.ts +1 -0
- package/dist/features/types.d.ts +82 -0
- package/dist/features/types.js +36 -0
- package/dist/features/types.test.d.ts +1 -0
- package/dist/features/validation.d.ts +4 -0
- package/dist/features/validation.js +48 -0
- package/dist/features/validation.test.d.ts +1 -0
- package/dist/features.capabilities.test.d.ts +1 -0
- package/dist/forms/docs/forms.docblock.d.ts +2 -0
- package/dist/forms/docs/forms.docblock.js +164 -0
- package/dist/forms/forms.d.ts +264 -0
- package/dist/forms/forms.js +332 -0
- package/dist/forms/index.d.ts +1 -0
- package/dist/forms/index.js +332 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +2195 -0
- package/dist/install.d.ts +75 -0
- package/dist/install.js +60 -0
- package/dist/integrations/binding.d.ts +14 -0
- package/dist/integrations/binding.js +1 -0
- package/dist/integrations/connection.d.ts +47 -0
- package/dist/integrations/connection.js +1 -0
- package/dist/integrations/docs/integrations.docblock.d.ts +2 -0
- package/dist/integrations/docs/integrations.docblock.js +140 -0
- package/dist/integrations/health.d.ts +17 -0
- package/dist/integrations/health.js +103 -0
- package/dist/integrations/health.test.d.ts +1 -0
- package/dist/integrations/index.d.ts +11 -0
- package/dist/integrations/index.js +3293 -0
- package/dist/integrations/integrations.capability.d.ts +1 -0
- package/dist/integrations/integrations.capability.js +48 -0
- package/dist/integrations/integrations.feature.d.ts +5 -0
- package/dist/integrations/integrations.feature.js +63 -0
- package/dist/integrations/meeting-recorder/contracts/index.d.ts +7 -0
- package/dist/integrations/meeting-recorder/contracts/index.js +504 -0
- package/dist/integrations/meeting-recorder/contracts/meetings.d.ts +451 -0
- package/dist/integrations/meeting-recorder/contracts/meetings.js +249 -0
- package/dist/integrations/meeting-recorder/contracts/transcripts.d.ts +166 -0
- package/dist/integrations/meeting-recorder/contracts/transcripts.js +317 -0
- package/dist/integrations/meeting-recorder/contracts/webhooks.d.ts +85 -0
- package/dist/integrations/meeting-recorder/contracts/webhooks.js +202 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.capability.d.ts +1 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.capability.js +48 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.feature.d.ts +5 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.feature.js +63 -0
- package/dist/integrations/meeting-recorder/models.d.ts +402 -0
- package/dist/integrations/meeting-recorder/models.js +152 -0
- package/dist/integrations/meeting-recorder/telemetry.d.ts +13 -0
- package/dist/integrations/meeting-recorder/telemetry.js +84 -0
- package/dist/integrations/openbanking/contracts/accounts.d.ts +282 -0
- package/dist/integrations/openbanking/contracts/accounts.js +358 -0
- package/dist/integrations/openbanking/contracts/balances.d.ts +158 -0
- package/dist/integrations/openbanking/contracts/balances.js +322 -0
- package/dist/integrations/openbanking/contracts/index.d.ts +7 -0
- package/dist/integrations/openbanking/contracts/index.js +674 -0
- package/dist/integrations/openbanking/contracts/transactions.d.ts +206 -0
- package/dist/integrations/openbanking/contracts/transactions.js +328 -0
- package/dist/integrations/openbanking/guards.d.ts +8 -0
- package/dist/integrations/openbanking/guards.js +72 -0
- package/dist/integrations/openbanking/guards.test.d.ts +1 -0
- package/dist/integrations/openbanking/models.d.ts +223 -0
- package/dist/integrations/openbanking/models.js +140 -0
- package/dist/integrations/openbanking/openbanking.capability.d.ts +1 -0
- package/dist/integrations/openbanking/openbanking.capability.js +48 -0
- package/dist/integrations/openbanking/openbanking.feature.d.ts +5 -0
- package/dist/integrations/openbanking/openbanking.feature.js +65 -0
- package/dist/integrations/openbanking/telemetry.d.ts +12 -0
- package/dist/integrations/openbanking/telemetry.js +81 -0
- package/dist/integrations/operations.d.ts +430 -0
- package/dist/integrations/operations.js +327 -0
- package/dist/integrations/operations.test.d.ts +1 -0
- package/dist/integrations/providers/analytics-reader.d.ts +103 -0
- package/dist/integrations/providers/analytics-reader.js +1 -0
- package/dist/integrations/providers/analytics-writer.d.ts +6 -0
- package/dist/integrations/providers/analytics-writer.js +1 -0
- package/dist/integrations/providers/analytics.d.ts +47 -0
- package/dist/integrations/providers/analytics.js +1 -0
- package/dist/integrations/providers/calendar.d.ts +75 -0
- package/dist/integrations/providers/calendar.js +1 -0
- package/dist/integrations/providers/database.d.ts +12 -0
- package/dist/integrations/providers/database.js +1 -0
- package/dist/integrations/providers/elevenlabs.d.ts +3 -0
- package/dist/integrations/providers/elevenlabs.js +116 -0
- package/dist/integrations/providers/email.d.ts +83 -0
- package/dist/integrations/providers/email.js +1 -0
- package/dist/integrations/providers/embedding.d.ts +21 -0
- package/dist/integrations/providers/embedding.js +1 -0
- package/dist/integrations/providers/fal.d.ts +3 -0
- package/dist/integrations/providers/fal.js +142 -0
- package/dist/integrations/providers/fathom.d.ts +3 -0
- package/dist/integrations/providers/fathom.js +156 -0
- package/dist/integrations/providers/fireflies.d.ts +3 -0
- package/dist/integrations/providers/fireflies.js +136 -0
- package/dist/integrations/providers/gcs-storage.d.ts +3 -0
- package/dist/integrations/providers/gcs-storage.js +127 -0
- package/dist/integrations/providers/gmail.d.ts +3 -0
- package/dist/integrations/providers/gmail.js +139 -0
- package/dist/integrations/providers/google-calendar.d.ts +3 -0
- package/dist/integrations/providers/google-calendar.js +122 -0
- package/dist/integrations/providers/gradium.d.ts +3 -0
- package/dist/integrations/providers/gradium.js +140 -0
- package/dist/integrations/providers/granola.d.ts +3 -0
- package/dist/integrations/providers/granola.js +137 -0
- package/dist/integrations/providers/index.d.ts +38 -0
- package/dist/integrations/providers/index.js +2124 -0
- package/dist/integrations/providers/jira.d.ts +3 -0
- package/dist/integrations/providers/jira.js +138 -0
- package/dist/integrations/providers/linear.d.ts +3 -0
- package/dist/integrations/providers/linear.js +137 -0
- package/dist/integrations/providers/llm.d.ts +79 -0
- package/dist/integrations/providers/llm.js +1 -0
- package/dist/integrations/providers/meeting-recorder.d.ts +129 -0
- package/dist/integrations/providers/meeting-recorder.js +1 -0
- package/dist/integrations/providers/mistral.d.ts +3 -0
- package/dist/integrations/providers/mistral.js +124 -0
- package/dist/integrations/providers/notion.d.ts +3 -0
- package/dist/integrations/providers/notion.js +143 -0
- package/dist/integrations/providers/openbanking.d.ts +125 -0
- package/dist/integrations/providers/openbanking.js +1 -0
- package/dist/integrations/providers/payments.d.ts +106 -0
- package/dist/integrations/providers/payments.js +1 -0
- package/dist/integrations/providers/posthog-llm-telemetry.d.ts +51 -0
- package/dist/integrations/providers/posthog-llm-telemetry.js +206 -0
- package/dist/integrations/providers/posthog.d.ts +3 -0
- package/dist/integrations/providers/posthog.js +136 -0
- package/dist/integrations/providers/postmark.d.ts +3 -0
- package/dist/integrations/providers/postmark.js +128 -0
- package/dist/integrations/providers/powens.d.ts +3 -0
- package/dist/integrations/providers/powens.js +154 -0
- package/dist/integrations/providers/project-management.d.ts +32 -0
- package/dist/integrations/providers/project-management.js +1 -0
- package/dist/integrations/providers/providers.test.d.ts +1 -0
- package/dist/integrations/providers/qdrant.d.ts +3 -0
- package/dist/integrations/providers/qdrant.js +131 -0
- package/dist/integrations/providers/registry.d.ts +6 -0
- package/dist/integrations/providers/registry.js +1908 -0
- package/dist/integrations/providers/sms.d.ts +31 -0
- package/dist/integrations/providers/sms.js +1 -0
- package/dist/integrations/providers/storage.d.ts +57 -0
- package/dist/integrations/providers/storage.js +1 -0
- package/dist/integrations/providers/stripe.d.ts +3 -0
- package/dist/integrations/providers/stripe.js +135 -0
- package/dist/integrations/providers/supabase-postgres.d.ts +3 -0
- package/dist/integrations/providers/supabase-postgres.js +117 -0
- package/dist/integrations/providers/supabase-vector.d.ts +3 -0
- package/dist/integrations/providers/supabase-vector.js +137 -0
- package/dist/integrations/providers/tldv.d.ts +3 -0
- package/dist/integrations/providers/tldv.js +136 -0
- package/dist/integrations/providers/twilio-sms.d.ts +3 -0
- package/dist/integrations/providers/twilio-sms.js +121 -0
- package/dist/integrations/providers/vector-store.d.ts +39 -0
- package/dist/integrations/providers/vector-store.js +1 -0
- package/dist/integrations/providers/voice.d.ts +31 -0
- package/dist/integrations/providers/voice.js +1 -0
- package/dist/integrations/runtime.d.ts +95 -0
- package/dist/integrations/runtime.js +239 -0
- package/dist/integrations/runtime.test.d.ts +1 -0
- package/dist/integrations/secrets/aws-secret-manager.d.ts +28 -0
- package/dist/integrations/secrets/aws-secret-manager.js +376 -0
- package/dist/integrations/secrets/env-secret-provider.d.ts +28 -0
- package/dist/integrations/secrets/env-secret-provider.js +189 -0
- package/dist/integrations/secrets/gcp-secret-manager.d.ts +29 -0
- package/dist/integrations/secrets/gcp-secret-manager.js +377 -0
- package/dist/integrations/secrets/index.d.ts +6 -0
- package/dist/integrations/secrets/index.js +1159 -0
- package/dist/integrations/secrets/manager.d.ts +44 -0
- package/dist/integrations/secrets/manager.js +213 -0
- package/dist/integrations/secrets/provider.d.ts +49 -0
- package/dist/integrations/secrets/provider.js +104 -0
- package/dist/integrations/secrets/provider.test.d.ts +1 -0
- package/dist/integrations/secrets/scaleway-secret-manager.d.ts +35 -0
- package/dist/integrations/secrets/scaleway-secret-manager.js +405 -0
- package/dist/integrations/secrets-types.d.ts +14 -0
- package/dist/integrations/secrets-types.js +1 -0
- package/dist/integrations/spec.d.ts +72 -0
- package/dist/integrations/spec.js +52 -0
- package/dist/integrations/spec.test.d.ts +1 -0
- package/dist/jobs/define-job.d.ts +15 -0
- package/dist/jobs/define-job.js +41 -0
- package/dist/jobs/gcp-cloud-tasks.d.ts +38 -0
- package/dist/jobs/gcp-cloud-tasks.js +103 -0
- package/dist/jobs/gcp-pubsub.d.ts +22 -0
- package/dist/jobs/gcp-pubsub.js +91 -0
- package/dist/jobs/handlers/gmail-sync-handler.d.ts +5 -0
- package/dist/jobs/handlers/gmail-sync-handler.js +40 -0
- package/dist/jobs/handlers/handlers.test.d.ts +1 -0
- package/dist/jobs/handlers/index.d.ts +5 -0
- package/dist/jobs/handlers/index.js +83 -0
- package/dist/jobs/handlers/ping-handler.d.ts +6 -0
- package/dist/jobs/handlers/ping-handler.js +47 -0
- package/dist/jobs/handlers/storage-document-handler.d.ts +8 -0
- package/dist/jobs/handlers/storage-document-handler.js +47 -0
- package/dist/jobs/index.d.ts +2 -0
- package/dist/jobs/index.js +64 -0
- package/dist/jobs/memory-queue.d.ts +14 -0
- package/dist/jobs/memory-queue.js +129 -0
- package/dist/jobs/queue.d.ts +126 -0
- package/dist/jobs/queue.js +55 -0
- package/dist/jobs/queue.test.d.ts +1 -0
- package/dist/jobs/scaleway-sqs-queue.d.ts +27 -0
- package/dist/jobs/scaleway-sqs-queue.js +222 -0
- package/dist/jsonschema.d.ts +39 -0
- package/dist/jsonschema.js +73 -0
- package/dist/jsonschema.test.d.ts +1 -0
- package/dist/knowledge/binding.d.ts +22 -0
- package/dist/knowledge/binding.js +1 -0
- package/dist/knowledge/docs/knowledge.docblock.d.ts +2 -0
- package/dist/knowledge/docs/knowledge.docblock.js +301 -0
- package/dist/knowledge/index.d.ts +4 -0
- package/dist/knowledge/index.js +467 -0
- package/dist/knowledge/ingestion/document-processor.d.ts +22 -0
- package/dist/knowledge/ingestion/document-processor.js +95 -0
- package/dist/knowledge/ingestion/embedding-service.d.ts +8 -0
- package/dist/knowledge/ingestion/embedding-service.js +57 -0
- package/dist/knowledge/ingestion/gmail-adapter.d.ts +14 -0
- package/dist/knowledge/ingestion/gmail-adapter.js +103 -0
- package/dist/knowledge/ingestion/index.d.ts +5 -0
- package/dist/knowledge/ingestion/index.js +252 -0
- package/dist/knowledge/ingestion/ingestion.test.d.ts +1 -0
- package/dist/knowledge/ingestion/storage-adapter.d.ts +11 -0
- package/dist/knowledge/ingestion/storage-adapter.js +62 -0
- package/dist/knowledge/ingestion/vector-indexer.d.ts +14 -0
- package/dist/knowledge/ingestion/vector-indexer.js +63 -0
- package/dist/knowledge/knowledge.capability.d.ts +1 -0
- package/dist/knowledge/knowledge.capability.js +726 -0
- package/dist/knowledge/knowledge.feature.d.ts +5 -0
- package/dist/knowledge/knowledge.feature.js +300 -0
- package/dist/knowledge/operations.d.ts +311 -0
- package/dist/knowledge/operations.js +619 -0
- package/dist/knowledge/operations.test.d.ts +1 -0
- package/dist/knowledge/query/index.d.ts +1 -0
- package/dist/knowledge/query/index.js +110 -0
- package/dist/knowledge/query/service.d.ts +25 -0
- package/dist/knowledge/query/service.js +110 -0
- package/dist/knowledge/query/service.test.d.ts +1 -0
- package/dist/knowledge/runtime.d.ts +28 -0
- package/dist/knowledge/runtime.js +91 -0
- package/dist/knowledge/runtime.test.d.ts +1 -0
- package/dist/knowledge/source.d.ts +29 -0
- package/dist/knowledge/source.js +1 -0
- package/dist/knowledge/spaces/email-threads.d.ts +3 -0
- package/dist/knowledge/spaces/email-threads.js +102 -0
- package/dist/knowledge/spaces/financial-docs.d.ts +3 -0
- package/dist/knowledge/spaces/financial-docs.js +102 -0
- package/dist/knowledge/spaces/financial-overview.d.ts +3 -0
- package/dist/knowledge/spaces/financial-overview.js +102 -0
- package/dist/knowledge/spaces/index.d.ts +6 -0
- package/dist/knowledge/spaces/index.js +273 -0
- package/dist/knowledge/spaces/product-canon.d.ts +3 -0
- package/dist/knowledge/spaces/product-canon.js +102 -0
- package/dist/knowledge/spaces/spaces.test.d.ts +1 -0
- package/dist/knowledge/spaces/support-faq.d.ts +3 -0
- package/dist/knowledge/spaces/support-faq.js +103 -0
- package/dist/knowledge/spaces/uploaded-docs.d.ts +3 -0
- package/dist/knowledge/spaces/uploaded-docs.js +102 -0
- package/dist/knowledge/spec.d.ts +42 -0
- package/dist/knowledge/spec.js +228 -0
- package/dist/knowledge/spec.test.d.ts +1 -0
- package/dist/llm/exporters.d.ts +68 -0
- package/dist/llm/exporters.js +1011 -0
- package/dist/llm/index.d.ts +12 -0
- package/dist/llm/index.js +1465 -0
- package/dist/llm/prompts.d.ts +53 -0
- package/dist/llm/prompts.js +1456 -0
- package/dist/llm/types.d.ts +212 -0
- package/dist/llm/types.js +1 -0
- package/dist/markdown.d.ts +16 -0
- package/dist/markdown.js +529 -0
- package/dist/migrations.d.ts +48 -0
- package/dist/migrations.js +67 -0
- package/dist/migrations.test.d.ts +1 -0
- package/dist/model-registry.d.ts +9 -0
- package/dist/model-registry.js +64 -0
- package/dist/model-registry.test.d.ts +1 -0
- package/dist/node/app-config/app-config.capability.js +730 -0
- package/dist/node/app-config/app-config.contracts.js +713 -0
- package/dist/node/app-config/app-config.feature.js +255 -0
- package/dist/node/app-config/branding.js +0 -0
- package/dist/node/app-config/docs/app-config.docblock.js +383 -0
- package/dist/node/app-config/events.js +386 -0
- package/dist/node/app-config/index.js +2899 -0
- package/dist/node/app-config/lifecycle-contracts.js +870 -0
- package/dist/node/app-config/lifecycle.js +0 -0
- package/dist/node/app-config/runtime.js +734 -0
- package/dist/node/app-config/spec.js +229 -0
- package/dist/node/app-config/validation.js +650 -0
- package/dist/node/capabilities/capabilities.js +217 -0
- package/dist/node/capabilities/context.js +101 -0
- package/dist/node/capabilities/docs/capabilities.docblock.js +353 -0
- package/dist/node/capabilities/guards.js +177 -0
- package/dist/node/capabilities/index.js +739 -0
- package/dist/node/capabilities/meeting-recorder.js +154 -0
- package/dist/node/capabilities/openbanking.js +166 -0
- package/dist/node/capabilities/validation.js +185 -0
- package/dist/node/contract-registry/index.js +129 -0
- package/dist/node/contract-registry/schemas.js +129 -0
- package/dist/node/contract-registry/types.js +0 -0
- package/dist/node/data-views/data-views.js +232 -0
- package/dist/node/data-views/docs/data-views.docblock.js +164 -0
- package/dist/node/data-views/index.js +232 -0
- package/dist/node/data-views/query-generator.js +89 -0
- package/dist/node/data-views/registry.js +226 -0
- package/dist/node/data-views/report/contractVerificationTable.js +240 -0
- package/dist/node/data-views/runtime.js +108 -0
- package/dist/node/data-views/spec.js +38 -0
- package/dist/node/data-views/types.js +0 -0
- package/dist/node/docs/accessibility_wcag_compliance_specs.docblock.js +513 -0
- package/dist/node/docs/capabilities/documentationSystem.capability.js +784 -0
- package/dist/node/docs/capabilities/index.js +784 -0
- package/dist/node/docs/commands/docsGenerate.command.js +802 -0
- package/dist/node/docs/commands/docsPublish.command.js +781 -0
- package/dist/node/docs/commands/index.js +906 -0
- package/dist/node/docs/constants.js +78 -0
- package/dist/node/docs/contracts.js +1611 -0
- package/dist/node/docs/ensure-docblocks.js +264 -0
- package/dist/node/docs/events/docsGenerated.event.js +533 -0
- package/dist/node/docs/events/docsPublished.event.js +534 -0
- package/dist/node/docs/events/index.js +567 -0
- package/dist/node/docs/forms/docsSearch.form.js +676 -0
- package/dist/node/docs/forms/index.js +676 -0
- package/dist/node/docs/index.js +4719 -0
- package/dist/node/docs/meta.docs.js +176 -0
- package/dist/node/docs/presentations/docsLayout.presentation.js +527 -0
- package/dist/node/docs/presentations/docsReferencePage.presentation.js +527 -0
- package/dist/node/docs/presentations/index.js +555 -0
- package/dist/node/docs/presentations.js +97 -0
- package/dist/node/docs/queries/contractReference.query.js +752 -0
- package/dist/node/docs/queries/docsIndex.query.js +752 -0
- package/dist/node/docs/queries/index.js +827 -0
- package/dist/node/docs/registry.js +153 -0
- package/dist/node/docs/tech/auth/better-auth-nextjs.docblock.js +221 -0
- package/dist/node/docs/tech/cli.docblock.js +291 -0
- package/dist/node/docs/tech/contracts/README.docblock.js +164 -0
- package/dist/node/docs/tech/contracts/migrations.docblock.js +164 -0
- package/dist/node/docs/tech/contracts/openapi-export.docblock.js +201 -0
- package/dist/node/docs/tech/contracts/openapi-import.docblock.js +207 -0
- package/dist/node/docs/tech/contracts/ops-to-presentation-linking.docblock.js +225 -0
- package/dist/node/docs/tech/contracts/overlays.docblock.js +231 -0
- package/dist/node/docs/tech/contracts/tests.docblock.js +164 -0
- package/dist/node/docs/tech/contracts/themes.docblock.js +257 -0
- package/dist/node/docs/tech/contracts/vertical-pocket-family-office.docblock.js +269 -0
- package/dist/node/docs/tech/docs-system.docblock.js +264 -0
- package/dist/node/docs/tech/lifecycle-stage-system.docblock.js +376 -0
- package/dist/node/docs/tech/llm/llm-integration.docblock.js +482 -0
- package/dist/node/docs/tech/mcp-endpoints.docblock.js +185 -0
- package/dist/node/docs/tech/presentation-runtime.docblock.js +221 -0
- package/dist/node/docs/tech/report-verification-table.docblock.js +191 -0
- package/dist/node/docs/tech/schema/README.docblock.js +164 -0
- package/dist/node/docs/tech/studio/learning-events.docblock.js +190 -0
- package/dist/node/docs/tech/studio/learning-journeys.docblock.js +227 -0
- package/dist/node/docs/tech/studio/platform-admin-panel.docblock.js +226 -0
- package/dist/node/docs/tech/studio/project-access-teams.docblock.js +200 -0
- package/dist/node/docs/tech/studio/project-routing.docblock.js +209 -0
- package/dist/node/docs/tech/studio/sandbox-unlogged.docblock.js +183 -0
- package/dist/node/docs/tech/studio/team-invitations.docblock.js +228 -0
- package/dist/node/docs/tech/studio/workspace-ops.docblock.js +189 -0
- package/dist/node/docs/tech/studio/workspaces.docblock.js +204 -0
- package/dist/node/docs/tech/telemetry-ingest.docblock.js +305 -0
- package/dist/node/docs/tech/vscode-extension.docblock.js +241 -0
- package/dist/node/docs/tech-contracts.docs.js +239 -0
- package/dist/node/docs/types.js +0 -0
- package/dist/node/docs/views/contractReference.dataView.js +838 -0
- package/dist/node/docs/views/docsIndex.dataView.js +832 -0
- package/dist/node/docs/views/exampleCatalog.dataView.js +816 -0
- package/dist/node/docs/views/index.js +1031 -0
- package/dist/node/events.js +228 -0
- package/dist/node/examples/define.js +36 -0
- package/dist/node/examples/docs/examples.docblock.js +307 -0
- package/dist/node/examples/index.js +604 -0
- package/dist/node/examples/registry.js +286 -0
- package/dist/node/examples/schema.js +166 -0
- package/dist/node/examples/types.js +77 -0
- package/dist/node/examples/validation.js +287 -0
- package/dist/node/experiments/docs/experiments.docblock.js +291 -0
- package/dist/node/experiments/evaluator.js +155 -0
- package/dist/node/experiments/spec-resolver.js +0 -0
- package/dist/node/experiments/spec.js +227 -0
- package/dist/node/features/index.js +275 -0
- package/dist/node/features/install.js +95 -0
- package/dist/node/features/registry.js +192 -0
- package/dist/node/features/types.js +36 -0
- package/dist/node/features/validation.js +48 -0
- package/dist/node/forms/docs/forms.docblock.js +164 -0
- package/dist/node/forms/forms.js +332 -0
- package/dist/node/forms/index.js +332 -0
- package/dist/node/index.js +2195 -0
- package/dist/node/install.js +60 -0
- package/dist/node/integrations/binding.js +0 -0
- package/dist/node/integrations/connection.js +0 -0
- package/dist/node/integrations/docs/integrations.docblock.js +140 -0
- package/dist/node/integrations/health.js +103 -0
- package/dist/node/integrations/index.js +3293 -0
- package/dist/node/integrations/integrations.capability.js +48 -0
- package/dist/node/integrations/integrations.feature.js +63 -0
- package/dist/node/integrations/meeting-recorder/contracts/index.js +504 -0
- package/dist/node/integrations/meeting-recorder/contracts/meetings.js +249 -0
- package/dist/node/integrations/meeting-recorder/contracts/transcripts.js +317 -0
- package/dist/node/integrations/meeting-recorder/contracts/webhooks.js +202 -0
- package/dist/node/integrations/meeting-recorder/meeting-recorder.capability.js +48 -0
- package/dist/node/integrations/meeting-recorder/meeting-recorder.feature.js +63 -0
- package/dist/node/integrations/meeting-recorder/models.js +152 -0
- package/dist/node/integrations/meeting-recorder/telemetry.js +84 -0
- package/dist/node/integrations/openbanking/contracts/accounts.js +358 -0
- package/dist/node/integrations/openbanking/contracts/balances.js +322 -0
- package/dist/node/integrations/openbanking/contracts/index.js +674 -0
- package/dist/node/integrations/openbanking/contracts/transactions.js +328 -0
- package/dist/node/integrations/openbanking/guards.js +72 -0
- package/dist/node/integrations/openbanking/models.js +140 -0
- package/dist/node/integrations/openbanking/openbanking.capability.js +48 -0
- package/dist/node/integrations/openbanking/openbanking.feature.js +65 -0
- package/dist/node/integrations/openbanking/telemetry.js +81 -0
- package/dist/node/integrations/operations.js +327 -0
- package/dist/node/integrations/providers/analytics-reader.js +0 -0
- package/dist/node/integrations/providers/analytics-writer.js +0 -0
- package/dist/node/integrations/providers/analytics.js +0 -0
- package/dist/node/integrations/providers/calendar.js +0 -0
- package/dist/node/integrations/providers/database.js +0 -0
- package/dist/node/integrations/providers/elevenlabs.js +116 -0
- package/dist/node/integrations/providers/email.js +0 -0
- package/dist/node/integrations/providers/embedding.js +0 -0
- package/dist/node/integrations/providers/fal.js +142 -0
- package/dist/node/integrations/providers/fathom.js +156 -0
- package/dist/node/integrations/providers/fireflies.js +136 -0
- package/dist/node/integrations/providers/gcs-storage.js +127 -0
- package/dist/node/integrations/providers/gmail.js +139 -0
- package/dist/node/integrations/providers/google-calendar.js +122 -0
- package/dist/node/integrations/providers/gradium.js +140 -0
- package/dist/node/integrations/providers/granola.js +137 -0
- package/dist/node/integrations/providers/index.js +2124 -0
- package/dist/node/integrations/providers/jira.js +138 -0
- package/dist/node/integrations/providers/linear.js +137 -0
- package/dist/node/integrations/providers/llm.js +0 -0
- package/dist/node/integrations/providers/meeting-recorder.js +0 -0
- package/dist/node/integrations/providers/mistral.js +124 -0
- package/dist/node/integrations/providers/notion.js +143 -0
- package/dist/node/integrations/providers/openbanking.js +0 -0
- package/dist/node/integrations/providers/payments.js +0 -0
- package/dist/node/integrations/providers/posthog-llm-telemetry.js +206 -0
- package/dist/node/integrations/providers/posthog.js +136 -0
- package/dist/node/integrations/providers/postmark.js +128 -0
- package/dist/node/integrations/providers/powens.js +154 -0
- package/dist/node/integrations/providers/project-management.js +0 -0
- package/dist/node/integrations/providers/qdrant.js +131 -0
- package/dist/node/integrations/providers/registry.js +1908 -0
- package/dist/node/integrations/providers/sms.js +0 -0
- package/dist/node/integrations/providers/storage.js +0 -0
- package/dist/node/integrations/providers/stripe.js +135 -0
- package/dist/node/integrations/providers/supabase-postgres.js +117 -0
- package/dist/node/integrations/providers/supabase-vector.js +137 -0
- package/dist/node/integrations/providers/tldv.js +136 -0
- package/dist/node/integrations/providers/twilio-sms.js +121 -0
- package/dist/node/integrations/providers/vector-store.js +0 -0
- package/dist/node/integrations/providers/voice.js +0 -0
- package/dist/node/integrations/runtime.js +239 -0
- package/dist/node/integrations/secrets/aws-secret-manager.js +376 -0
- package/dist/node/integrations/secrets/env-secret-provider.js +189 -0
- package/dist/node/integrations/secrets/gcp-secret-manager.js +377 -0
- package/dist/node/integrations/secrets/index.js +1159 -0
- package/dist/node/integrations/secrets/manager.js +213 -0
- package/dist/node/integrations/secrets/provider.js +104 -0
- package/dist/node/integrations/secrets/scaleway-secret-manager.js +405 -0
- package/dist/node/integrations/secrets-types.js +0 -0
- package/dist/node/integrations/spec.js +52 -0
- package/dist/node/jobs/define-job.js +41 -0
- package/dist/node/jobs/gcp-cloud-tasks.js +103 -0
- package/dist/node/jobs/gcp-pubsub.js +91 -0
- package/dist/node/jobs/handlers/gmail-sync-handler.js +40 -0
- package/dist/node/jobs/handlers/index.js +83 -0
- package/dist/node/jobs/handlers/ping-handler.js +47 -0
- package/dist/node/jobs/handlers/storage-document-handler.js +47 -0
- package/dist/node/jobs/index.js +64 -0
- package/dist/node/jobs/memory-queue.js +129 -0
- package/dist/node/jobs/queue.js +55 -0
- package/dist/node/jobs/scaleway-sqs-queue.js +222 -0
- package/dist/node/jsonschema.js +73 -0
- package/dist/node/knowledge/binding.js +0 -0
- package/dist/node/knowledge/docs/knowledge.docblock.js +301 -0
- package/dist/node/knowledge/index.js +467 -0
- package/dist/node/knowledge/ingestion/document-processor.js +95 -0
- package/dist/node/knowledge/ingestion/embedding-service.js +57 -0
- package/dist/node/knowledge/ingestion/gmail-adapter.js +103 -0
- package/dist/node/knowledge/ingestion/index.js +252 -0
- package/dist/node/knowledge/ingestion/storage-adapter.js +62 -0
- package/dist/node/knowledge/ingestion/vector-indexer.js +63 -0
- package/dist/node/knowledge/knowledge.capability.js +726 -0
- package/dist/node/knowledge/knowledge.feature.js +300 -0
- package/dist/node/knowledge/operations.js +619 -0
- package/dist/node/knowledge/query/index.js +110 -0
- package/dist/node/knowledge/query/service.js +110 -0
- package/dist/node/knowledge/runtime.js +91 -0
- package/dist/node/knowledge/source.js +0 -0
- package/dist/node/knowledge/spaces/email-threads.js +102 -0
- package/dist/node/knowledge/spaces/financial-docs.js +102 -0
- package/dist/node/knowledge/spaces/financial-overview.js +102 -0
- package/dist/node/knowledge/spaces/index.js +273 -0
- package/dist/node/knowledge/spaces/product-canon.js +102 -0
- package/dist/node/knowledge/spaces/support-faq.js +103 -0
- package/dist/node/knowledge/spaces/uploaded-docs.js +102 -0
- package/dist/node/knowledge/spec.js +228 -0
- package/dist/node/llm/exporters.js +1011 -0
- package/dist/node/llm/index.js +1465 -0
- package/dist/node/llm/prompts.js +1456 -0
- package/dist/node/llm/types.js +0 -0
- package/dist/node/markdown.js +529 -0
- package/dist/node/migrations.js +67 -0
- package/dist/node/model-registry.js +64 -0
- package/dist/node/onboarding-base.js +597 -0
- package/dist/node/openapi.js +151 -0
- package/dist/node/operations/index.js +408 -0
- package/dist/node/operations/operation.js +51 -0
- package/dist/node/operations/registry.js +405 -0
- package/dist/node/operations/report/getContractVerificationStatus.js +170 -0
- package/dist/node/operations/report/index.js +305 -0
- package/dist/node/ownership.js +73 -0
- package/dist/node/policy/context.js +206 -0
- package/dist/node/policy/docs/policy.docblock.js +313 -0
- package/dist/node/policy/engine.js +325 -0
- package/dist/node/policy/guards.js +387 -0
- package/dist/node/policy/index.js +1313 -0
- package/dist/node/policy/opa-adapter.js +110 -0
- package/dist/node/policy/registry.js +221 -0
- package/dist/node/policy/spec.js +0 -0
- package/dist/node/policy/validation.js +391 -0
- package/dist/node/presentations/docs/presentations-conventions.docblock.js +171 -0
- package/dist/node/presentations/index.js +227 -0
- package/dist/node/presentations/presentations.js +38 -0
- package/dist/node/presentations/registry.js +221 -0
- package/dist/node/presentations/transform-engine.js +600 -0
- package/dist/node/product-intent/contract-patch-intent.js +68 -0
- package/dist/node/product-intent/contract-spec-patch.js +75 -0
- package/dist/node/product-intent/evidence.js +45 -0
- package/dist/node/product-intent/findings.js +81 -0
- package/dist/node/product-intent/impact-report.js +62 -0
- package/dist/node/product-intent/index.js +742 -0
- package/dist/node/product-intent/insights.js +63 -0
- package/dist/node/product-intent/opportunity-brief.js +106 -0
- package/dist/node/product-intent/problems.js +55 -0
- package/dist/node/product-intent/registry.js +242 -0
- package/dist/node/product-intent/runtime.js +320 -0
- package/dist/node/product-intent/spec.js +425 -0
- package/dist/node/product-intent/task-pack.js +69 -0
- package/dist/node/product-intent/tickets.js +57 -0
- package/dist/node/product-intent/types.js +378 -0
- package/dist/node/product-intent/ui-wireframe.js +73 -0
- package/dist/node/prompt.js +38 -0
- package/dist/node/promptRegistry.js +63 -0
- package/dist/node/regenerator/adapters.js +0 -0
- package/dist/node/regenerator/docs/regenerator.docblock.js +164 -0
- package/dist/node/regenerator/executor.js +157 -0
- package/dist/node/regenerator/index.js +341 -0
- package/dist/node/regenerator/service.js +183 -0
- package/dist/node/regenerator/sinks.js +64 -0
- package/dist/node/regenerator/types.js +0 -0
- package/dist/node/regenerator/utils.js +87 -0
- package/dist/node/registry-utils.js +163 -0
- package/dist/node/registry.js +215 -0
- package/dist/node/resources.js +83 -0
- package/dist/node/schema-to-markdown.js +278 -0
- package/dist/node/serialization/index.js +179 -0
- package/dist/node/serialization/serializers.js +180 -0
- package/dist/node/serialization/types.js +0 -0
- package/dist/node/telemetry/anomaly.js +91 -0
- package/dist/node/telemetry/docs/telemetry.docblock.js +164 -0
- package/dist/node/telemetry/index.js +417 -0
- package/dist/node/telemetry/spec.js +261 -0
- package/dist/node/telemetry/tracker.js +129 -0
- package/dist/node/tests/index.js +231 -0
- package/dist/node/tests/runner.js +189 -0
- package/dist/node/tests/spec.js +74 -0
- package/dist/node/themes.js +225 -0
- package/dist/node/translations/catalog.js +0 -0
- package/dist/node/translations/index.js +533 -0
- package/dist/node/translations/registry.js +170 -0
- package/dist/node/translations/spec.js +36 -0
- package/dist/node/translations/tenant.js +0 -0
- package/dist/node/translations/validation.js +392 -0
- package/dist/node/types.js +0 -0
- package/dist/node/versioning/index.js +274 -0
- package/dist/node/versioning/refs.js +99 -0
- package/dist/node/versioning/types.js +55 -0
- package/dist/node/versioning/utils.js +184 -0
- package/dist/node/workflow/adapters/db-adapter.js +127 -0
- package/dist/node/workflow/adapters/file-adapter.js +38 -0
- package/dist/node/workflow/adapters/index.js +194 -0
- package/dist/node/workflow/adapters/memory-store.js +93 -0
- package/dist/node/workflow/context.js +247 -0
- package/dist/node/workflow/expression.js +157 -0
- package/dist/node/workflow/index.js +1546 -0
- package/dist/node/workflow/overview.docblock.js +164 -0
- package/dist/node/workflow/runner.js +532 -0
- package/dist/node/workflow/sla-monitor.js +84 -0
- package/dist/node/workflow/spec.js +221 -0
- package/dist/node/workflow/state.js +0 -0
- package/dist/node/workflow/validation.js +425 -0
- package/dist/node/workspace-config/contractsrc-schema.js +344 -0
- package/dist/node/workspace-config/contractsrc-types.js +0 -0
- package/dist/node/workspace-config/index.js +325 -0
- package/dist/node/workspace-config/workspace-config.docblock.js +188 -0
- package/dist/onboarding-base.d.ts +131 -0
- package/dist/onboarding-base.js +597 -0
- package/dist/openapi.d.ts +33 -0
- package/dist/openapi.js +151 -0
- package/dist/operations/index.d.ts +2 -0
- package/dist/operations/index.js +408 -0
- package/dist/operations/operation.d.ts +191 -0
- package/dist/operations/operation.js +51 -0
- package/dist/operations/registry.d.ts +58 -0
- package/dist/operations/registry.js +405 -0
- package/dist/operations/report/getContractVerificationStatus.d.ts +68 -0
- package/dist/operations/report/getContractVerificationStatus.js +170 -0
- package/dist/operations/report/getContractVerificationStatus.test.d.ts +1 -0
- package/dist/operations/report/index.d.ts +10 -0
- package/dist/operations/report/index.js +305 -0
- package/dist/operations/report/index.test.d.ts +1 -0
- package/dist/ownership.d.ts +211 -0
- package/dist/ownership.js +73 -0
- package/dist/ownership.test.d.ts +1 -0
- package/dist/policy/context.d.ts +234 -0
- package/dist/policy/context.js +206 -0
- package/dist/policy/context.test.d.ts +1 -0
- package/dist/policy/docs/policy.docblock.d.ts +2 -0
- package/dist/policy/docs/policy.docblock.js +313 -0
- package/dist/policy/engine.d.ts +36 -0
- package/dist/policy/engine.js +325 -0
- package/dist/policy/engine.test.d.ts +1 -0
- package/dist/policy/guards.d.ts +156 -0
- package/dist/policy/guards.js +387 -0
- package/dist/policy/guards.test.d.ts +1 -0
- package/dist/policy/index.d.ts +12 -0
- package/dist/policy/index.js +1313 -0
- package/dist/policy/opa-adapter.d.ts +41 -0
- package/dist/policy/opa-adapter.js +110 -0
- package/dist/policy/opa-adapter.test.d.ts +1 -0
- package/dist/policy/registry.d.ts +5 -0
- package/dist/policy/registry.js +221 -0
- package/dist/policy/spec.d.ts +102 -0
- package/dist/policy/spec.js +1 -0
- package/dist/policy/validation.d.ts +84 -0
- package/dist/policy/validation.js +391 -0
- package/dist/policy/validation.test.d.ts +1 -0
- package/dist/presentations/docs/presentations-conventions.docblock.d.ts +2 -0
- package/dist/presentations/docs/presentations-conventions.docblock.js +171 -0
- package/dist/presentations/index.d.ts +2 -0
- package/dist/presentations/index.js +227 -0
- package/dist/presentations/presentations.d.ts +52 -0
- package/dist/presentations/presentations.js +38 -0
- package/dist/presentations/registry.d.ts +6 -0
- package/dist/presentations/registry.js +221 -0
- package/dist/presentations/transform-engine.d.ts +62 -0
- package/dist/presentations/transform-engine.js +600 -0
- package/dist/presentations/transform-engine.test.d.ts +1 -0
- package/dist/product-intent/contract-patch-intent.d.ts +100 -0
- package/dist/product-intent/contract-patch-intent.js +68 -0
- package/dist/product-intent/contract-spec-patch.d.ts +86 -0
- package/dist/product-intent/contract-spec-patch.js +75 -0
- package/dist/product-intent/evidence.d.ts +14 -0
- package/dist/product-intent/evidence.js +45 -0
- package/dist/product-intent/findings.d.ts +57 -0
- package/dist/product-intent/findings.js +81 -0
- package/dist/product-intent/impact-report.d.ts +57 -0
- package/dist/product-intent/impact-report.js +62 -0
- package/dist/product-intent/index.d.ts +13 -0
- package/dist/product-intent/index.js +742 -0
- package/dist/product-intent/insights.d.ts +62 -0
- package/dist/product-intent/insights.js +63 -0
- package/dist/product-intent/opportunity-brief.d.ts +192 -0
- package/dist/product-intent/opportunity-brief.js +106 -0
- package/dist/product-intent/problems.d.ts +59 -0
- package/dist/product-intent/problems.js +55 -0
- package/dist/product-intent/registry.d.ts +28 -0
- package/dist/product-intent/registry.js +242 -0
- package/dist/product-intent/registry.test.d.ts +1 -0
- package/dist/product-intent/runtime.d.ts +92 -0
- package/dist/product-intent/runtime.js +320 -0
- package/dist/product-intent/runtime.test.d.ts +1 -0
- package/dist/product-intent/spec.d.ts +664 -0
- package/dist/product-intent/spec.js +425 -0
- package/dist/product-intent/task-pack.d.ts +98 -0
- package/dist/product-intent/task-pack.js +69 -0
- package/dist/product-intent/tickets.d.ts +67 -0
- package/dist/product-intent/tickets.js +57 -0
- package/dist/product-intent/types.d.ts +11 -0
- package/dist/product-intent/types.js +378 -0
- package/dist/product-intent/ui-wireframe.d.ts +100 -0
- package/dist/product-intent/ui-wireframe.js +73 -0
- package/dist/prompt.d.ts +49 -0
- package/dist/prompt.js +38 -0
- package/dist/prompt.test.d.ts +1 -0
- package/dist/promptRegistry.d.ts +11 -0
- package/dist/promptRegistry.js +63 -0
- package/dist/promptRegistry.test.d.ts +1 -0
- package/dist/regenerator/adapters.d.ts +15 -0
- package/dist/regenerator/adapters.js +1 -0
- package/dist/regenerator/docs/regenerator.docblock.d.ts +2 -0
- package/dist/regenerator/docs/regenerator.docblock.js +164 -0
- package/dist/regenerator/executor.d.ts +66 -0
- package/dist/regenerator/executor.js +157 -0
- package/dist/regenerator/executor.test.d.ts +1 -0
- package/dist/regenerator/index.d.ts +6 -0
- package/dist/regenerator/index.js +341 -0
- package/dist/regenerator/service.d.ts +29 -0
- package/dist/regenerator/service.js +183 -0
- package/dist/regenerator/service.test.d.ts +1 -0
- package/dist/regenerator/sinks.d.ts +23 -0
- package/dist/regenerator/sinks.js +64 -0
- package/dist/regenerator/sinks.test.d.ts +1 -0
- package/dist/regenerator/types.d.ts +103 -0
- package/dist/regenerator/types.js +1 -0
- package/dist/regenerator/utils.d.ts +6 -0
- package/dist/regenerator/utils.js +87 -0
- package/dist/registry-utils.d.ts +105 -0
- package/dist/registry-utils.js +163 -0
- package/dist/registry-utils.test.d.ts +1 -0
- package/dist/registry.d.ts +27 -0
- package/dist/registry.js +215 -0
- package/dist/resources.d.ts +60 -0
- package/dist/resources.js +83 -0
- package/dist/schema-to-markdown.d.ts +56 -0
- package/dist/schema-to-markdown.js +278 -0
- package/dist/serialization/index.d.ts +10 -0
- package/dist/serialization/index.js +179 -0
- package/dist/serialization/serializers.d.ts +35 -0
- package/dist/serialization/serializers.js +180 -0
- package/dist/serialization/types.d.ts +100 -0
- package/dist/serialization/types.js +1 -0
- package/dist/telemetry/anomaly.d.ts +23 -0
- package/dist/telemetry/anomaly.js +91 -0
- package/dist/telemetry/anomaly.test.d.ts +1 -0
- package/dist/telemetry/docs/telemetry.docblock.d.ts +2 -0
- package/dist/telemetry/docs/telemetry.docblock.js +164 -0
- package/dist/telemetry/index.d.ts +3 -0
- package/dist/telemetry/index.js +417 -0
- package/dist/telemetry/spec.d.ts +87 -0
- package/dist/telemetry/spec.js +261 -0
- package/dist/telemetry/spec.test.d.ts +1 -0
- package/dist/telemetry/tracker.d.ts +48 -0
- package/dist/telemetry/tracker.js +129 -0
- package/dist/telemetry/tracker.test.d.ts +1 -0
- package/dist/tests/index.d.ts +2 -0
- package/dist/tests/index.js +231 -0
- package/dist/tests/runner.d.ts +38 -0
- package/dist/tests/runner.js +189 -0
- package/dist/tests/runner.test.d.ts +1 -0
- package/dist/tests/spec.d.ts +82 -0
- package/dist/tests/spec.js +74 -0
- package/dist/tests/spec.test.d.ts +1 -0
- package/dist/themes.d.ts +50 -0
- package/dist/themes.js +225 -0
- package/dist/themes.test.d.ts +1 -0
- package/dist/translations/catalog.d.ts +25 -0
- package/dist/translations/catalog.js +1 -0
- package/dist/translations/index.d.ts +44 -0
- package/dist/translations/index.js +533 -0
- package/dist/translations/registry.d.ts +172 -0
- package/dist/translations/registry.js +170 -0
- package/dist/translations/registry.test.d.ts +1 -0
- package/dist/translations/spec.d.ts +153 -0
- package/dist/translations/spec.js +36 -0
- package/dist/translations/spec.test.d.ts +1 -0
- package/dist/translations/tenant.d.ts +11 -0
- package/dist/translations/tenant.js +1 -0
- package/dist/translations/validation.d.ts +106 -0
- package/dist/translations/validation.js +392 -0
- package/dist/translations/validation.test.d.ts +1 -0
- package/dist/types.d.ts +212 -0
- package/dist/types.js +1 -0
- package/dist/versioning/index.d.ts +9 -0
- package/dist/versioning/index.js +274 -0
- package/dist/versioning/refs.d.ts +176 -0
- package/dist/versioning/refs.js +99 -0
- package/dist/versioning/refs.test.d.ts +4 -0
- package/dist/versioning/types.d.ts +130 -0
- package/dist/versioning/types.js +55 -0
- package/dist/versioning/utils.d.ts +93 -0
- package/dist/versioning/utils.js +184 -0
- package/dist/versioning/utils.test.d.ts +4 -0
- package/dist/workflow/adapters/db-adapter.d.ts +43 -0
- package/dist/workflow/adapters/db-adapter.js +127 -0
- package/dist/workflow/adapters/file-adapter.d.ts +10 -0
- package/dist/workflow/adapters/file-adapter.js +38 -0
- package/dist/workflow/adapters/index.d.ts +3 -0
- package/dist/workflow/adapters/index.js +194 -0
- package/dist/workflow/adapters/memory-store.d.ts +13 -0
- package/dist/workflow/adapters/memory-store.js +93 -0
- package/dist/workflow/context.d.ts +217 -0
- package/dist/workflow/context.js +247 -0
- package/dist/workflow/context.test.d.ts +1 -0
- package/dist/workflow/expression.d.ts +6 -0
- package/dist/workflow/expression.js +157 -0
- package/dist/workflow/expression.test.d.ts +1 -0
- package/dist/workflow/index.d.ts +13 -0
- package/dist/workflow/index.js +1546 -0
- package/dist/workflow/overview.docblock.d.ts +2 -0
- package/dist/workflow/overview.docblock.js +164 -0
- package/dist/workflow/runner.d.ts +71 -0
- package/dist/workflow/runner.js +532 -0
- package/dist/workflow/runner.test.d.ts +1 -0
- package/dist/workflow/sla-monitor.d.ts +16 -0
- package/dist/workflow/sla-monitor.js +84 -0
- package/dist/workflow/spec.d.ts +81 -0
- package/dist/workflow/spec.js +221 -0
- package/dist/workflow/state.d.ts +31 -0
- package/dist/workflow/state.js +1 -0
- package/dist/workflow/validation.d.ts +87 -0
- package/dist/workflow/validation.js +425 -0
- package/dist/workflow/validation.test.d.ts +1 -0
- package/dist/workspace-config/contractsrc-schema.d.ts +144 -0
- package/dist/workspace-config/contractsrc-schema.js +344 -0
- package/dist/workspace-config/contractsrc-schema.test.d.ts +1 -0
- package/dist/workspace-config/contractsrc-types.d.ts +342 -0
- package/dist/workspace-config/contractsrc-types.js +1 -0
- package/dist/workspace-config/index.d.ts +5 -0
- package/dist/workspace-config/index.js +325 -0
- package/dist/workspace-config/workspace-config.docblock.d.ts +2 -0
- package/dist/workspace-config/workspace-config.docblock.js +188 -0
- package/package.json +4426 -0
|
@@ -0,0 +1,1611 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __moduleCache = /* @__PURE__ */ new WeakMap;
|
|
7
|
+
var __toCommonJS = (from) => {
|
|
8
|
+
var entry = __moduleCache.get(from), desc;
|
|
9
|
+
if (entry)
|
|
10
|
+
return entry;
|
|
11
|
+
entry = __defProp({}, "__esModule", { value: true });
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function")
|
|
13
|
+
__getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
}));
|
|
17
|
+
__moduleCache.set(from, entry);
|
|
18
|
+
return entry;
|
|
19
|
+
};
|
|
20
|
+
var __export = (target, all) => {
|
|
21
|
+
for (var name in all)
|
|
22
|
+
__defProp(target, name, {
|
|
23
|
+
get: all[name],
|
|
24
|
+
enumerable: true,
|
|
25
|
+
configurable: true,
|
|
26
|
+
set: (newValue) => all[name] = () => newValue
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
30
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
31
|
+
|
|
32
|
+
// src/registry-utils.ts
|
|
33
|
+
var exports_registry_utils = {};
|
|
34
|
+
__export(exports_registry_utils, {
|
|
35
|
+
groupByToArray: () => groupByToArray,
|
|
36
|
+
groupByMultiple: () => groupByMultiple,
|
|
37
|
+
groupBy: () => groupBy,
|
|
38
|
+
getUniqueTags: () => getUniqueTags,
|
|
39
|
+
getUniqueOwners: () => getUniqueOwners,
|
|
40
|
+
getUniqueDomains: () => getUniqueDomains,
|
|
41
|
+
filterBy: () => filterBy,
|
|
42
|
+
GroupingStrategies: () => GroupingStrategies
|
|
43
|
+
});
|
|
44
|
+
function filterBy(items, filter) {
|
|
45
|
+
return items.filter((item) => {
|
|
46
|
+
if (filter.tags?.length) {
|
|
47
|
+
const hasMatchingTag = filter.tags.some((tag) => item.meta.tags?.includes(tag));
|
|
48
|
+
if (!hasMatchingTag)
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
if (filter.owners?.length) {
|
|
52
|
+
const hasMatchingOwner = filter.owners.some((owner) => item.meta.owners?.includes(owner));
|
|
53
|
+
if (!hasMatchingOwner)
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
if (filter.stability?.length) {
|
|
57
|
+
if (!filter.stability.includes(item.meta.stability ?? "stable")) {
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
if (filter.domain) {
|
|
62
|
+
const itemDomain = GroupingStrategies.byDomain(item);
|
|
63
|
+
if (itemDomain !== filter.domain)
|
|
64
|
+
return false;
|
|
65
|
+
}
|
|
66
|
+
if (filter.keyPattern) {
|
|
67
|
+
const name = item.meta.key ?? item.meta.key ?? "";
|
|
68
|
+
const pattern = filter.keyPattern.replace(/\*/g, ".*").replace(/\?/g, ".");
|
|
69
|
+
const regex = new RegExp(`^${pattern}$`, "i");
|
|
70
|
+
if (!regex.test(name))
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
return true;
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
function groupBy(items, keyFn) {
|
|
77
|
+
const groups = new Map;
|
|
78
|
+
for (const item of items) {
|
|
79
|
+
const key = keyFn(item);
|
|
80
|
+
const existing = groups.get(key);
|
|
81
|
+
if (existing) {
|
|
82
|
+
existing.push(item);
|
|
83
|
+
} else {
|
|
84
|
+
groups.set(key, [item]);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return groups;
|
|
88
|
+
}
|
|
89
|
+
function groupByToArray(items, keyFn) {
|
|
90
|
+
const map = groupBy(items, keyFn);
|
|
91
|
+
return Array.from(map.entries()).map(([key, items2]) => ({ key, items: items2 }));
|
|
92
|
+
}
|
|
93
|
+
function groupByMultiple(items, keysFn) {
|
|
94
|
+
const groups = new Map;
|
|
95
|
+
for (const item of items) {
|
|
96
|
+
const keys = keysFn(item);
|
|
97
|
+
for (const key of keys) {
|
|
98
|
+
const existing = groups.get(key);
|
|
99
|
+
if (existing) {
|
|
100
|
+
existing.push(item);
|
|
101
|
+
} else {
|
|
102
|
+
groups.set(key, [item]);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
return groups;
|
|
107
|
+
}
|
|
108
|
+
function getUniqueTags(items) {
|
|
109
|
+
const tags = new Set;
|
|
110
|
+
for (const item of items) {
|
|
111
|
+
for (const tag of item.meta.tags ?? []) {
|
|
112
|
+
tags.add(tag);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
return Array.from(tags).sort();
|
|
116
|
+
}
|
|
117
|
+
function getUniqueOwners(items) {
|
|
118
|
+
const owners = new Set;
|
|
119
|
+
for (const item of items) {
|
|
120
|
+
for (const owner of item.meta.owners ?? []) {
|
|
121
|
+
owners.add(owner);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
return Array.from(owners).sort();
|
|
125
|
+
}
|
|
126
|
+
function getUniqueDomains(items) {
|
|
127
|
+
const domains = new Set;
|
|
128
|
+
for (const item of items) {
|
|
129
|
+
domains.add(GroupingStrategies.byDomain(item));
|
|
130
|
+
}
|
|
131
|
+
return Array.from(domains).sort();
|
|
132
|
+
}
|
|
133
|
+
var GroupingStrategies;
|
|
134
|
+
var init_registry_utils = __esm(() => {
|
|
135
|
+
GroupingStrategies = {
|
|
136
|
+
byTag: (item) => item.meta.tags?.[0] ?? "untagged",
|
|
137
|
+
byAllTags: (item) => item.meta.tags?.length ? item.meta.tags : ["untagged"],
|
|
138
|
+
byOwner: (item) => item.meta.owners?.[0] ?? "unowned",
|
|
139
|
+
byDomain: (item) => {
|
|
140
|
+
const name = item.meta.key ?? item.meta.key ?? "";
|
|
141
|
+
return name.split(".")[0] ?? "default";
|
|
142
|
+
},
|
|
143
|
+
byStability: (item) => item.meta.stability ?? "stable",
|
|
144
|
+
byUrlPath: (level) => (item) => {
|
|
145
|
+
if (!item.path)
|
|
146
|
+
return "root";
|
|
147
|
+
const segments = item.path.split("/").filter(Boolean);
|
|
148
|
+
return segments.slice(0, level).join("/") || "root";
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
// src/ownership.ts
|
|
154
|
+
var StabilityEnum = {
|
|
155
|
+
Idea: "idea",
|
|
156
|
+
InCreation: "in_creation",
|
|
157
|
+
Experimental: "experimental",
|
|
158
|
+
Beta: "beta",
|
|
159
|
+
Stable: "stable",
|
|
160
|
+
Deprecated: "deprecated"
|
|
161
|
+
};
|
|
162
|
+
var OwnersEnum = {
|
|
163
|
+
PlatformCore: "platform.core",
|
|
164
|
+
PlatformSigil: "platform.sigil",
|
|
165
|
+
PlatformMarketplace: "platform.marketplace",
|
|
166
|
+
PlatformMessaging: "platform.messaging",
|
|
167
|
+
PlatformContent: "platform.content",
|
|
168
|
+
PlatformFeatureFlags: "platform.featureflags",
|
|
169
|
+
PlatformFinance: "platform.finance"
|
|
170
|
+
};
|
|
171
|
+
var Owners = OwnersEnum;
|
|
172
|
+
var TagsEnum = {
|
|
173
|
+
Spots: "spots",
|
|
174
|
+
Collectivity: "collectivity",
|
|
175
|
+
Marketplace: "marketplace",
|
|
176
|
+
Sellers: "sellers",
|
|
177
|
+
Auth: "auth",
|
|
178
|
+
Login: "login",
|
|
179
|
+
Signup: "signup",
|
|
180
|
+
Guide: "guide",
|
|
181
|
+
Docs: "docs",
|
|
182
|
+
I18n: "i18n",
|
|
183
|
+
Incident: "incident",
|
|
184
|
+
Automation: "automation",
|
|
185
|
+
Hygiene: "hygiene"
|
|
186
|
+
};
|
|
187
|
+
var Tags = TagsEnum;
|
|
188
|
+
|
|
189
|
+
// src/operations/operation.ts
|
|
190
|
+
var isEmitDeclRef = (e) => ("ref" in e);
|
|
191
|
+
var defineCommand = (spec) => ({
|
|
192
|
+
...spec,
|
|
193
|
+
meta: { ...spec.meta, kind: "command" },
|
|
194
|
+
policy: {
|
|
195
|
+
...spec.policy,
|
|
196
|
+
idempotent: spec.policy?.["policy"]?.idempotent ?? false
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
var defineQuery = (spec) => ({
|
|
200
|
+
...spec,
|
|
201
|
+
meta: { ...spec.meta, kind: "query" },
|
|
202
|
+
policy: { ...spec.policy, idempotent: true }
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
// src/registry.ts
|
|
206
|
+
init_registry_utils();
|
|
207
|
+
import { compareVersions } from "compare-versions";
|
|
208
|
+
var keyOfSpecContract = (spec) => `${spec.meta.key}.v${spec.meta.version}`;
|
|
209
|
+
|
|
210
|
+
class SpecContractRegistry {
|
|
211
|
+
contractType;
|
|
212
|
+
items = new Map;
|
|
213
|
+
constructor(contractType, items) {
|
|
214
|
+
this.contractType = contractType;
|
|
215
|
+
if (items) {
|
|
216
|
+
items.forEach((p) => this.register(p));
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
register(p) {
|
|
220
|
+
const key = keyOfSpecContract(p);
|
|
221
|
+
if (this.items.has(key))
|
|
222
|
+
throw new Error(`Duplicate contract \`${this.contractType}\` ${key}`);
|
|
223
|
+
this.items.set(key, p);
|
|
224
|
+
return this;
|
|
225
|
+
}
|
|
226
|
+
count() {
|
|
227
|
+
return this.items.size;
|
|
228
|
+
}
|
|
229
|
+
list() {
|
|
230
|
+
return [...this.items.values()];
|
|
231
|
+
}
|
|
232
|
+
get(key, version) {
|
|
233
|
+
if (version != null)
|
|
234
|
+
return this.items.get(`${key}.v${version}`);
|
|
235
|
+
let candidate;
|
|
236
|
+
for (const [k, p] of this.items.entries()) {
|
|
237
|
+
if (!k.startsWith(`${key}.v`))
|
|
238
|
+
continue;
|
|
239
|
+
if (!candidate || compareVersions(p.meta.version, candidate.meta.version) > 0) {
|
|
240
|
+
candidate = p;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
return candidate;
|
|
244
|
+
}
|
|
245
|
+
has(key, version) {
|
|
246
|
+
return !!this.get(key, version);
|
|
247
|
+
}
|
|
248
|
+
filter(criteria) {
|
|
249
|
+
return filterBy(this.list(), criteria);
|
|
250
|
+
}
|
|
251
|
+
listByTag(tag) {
|
|
252
|
+
return this.list().filter((p) => p.meta.tags?.includes(tag));
|
|
253
|
+
}
|
|
254
|
+
listByOwner(owner) {
|
|
255
|
+
return this.list().filter((p) => p.meta.owners?.includes(owner));
|
|
256
|
+
}
|
|
257
|
+
groupBy(keyFn) {
|
|
258
|
+
return groupBy(this.list(), keyFn);
|
|
259
|
+
}
|
|
260
|
+
getUniqueTags() {
|
|
261
|
+
return getUniqueTags(this.list());
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
// src/events.ts
|
|
266
|
+
function defineEvent(e) {
|
|
267
|
+
return e;
|
|
268
|
+
}
|
|
269
|
+
var eventKey = (key, version) => `${key}.v${version}`;
|
|
270
|
+
|
|
271
|
+
class EventRegistry extends SpecContractRegistry {
|
|
272
|
+
constructor(items) {
|
|
273
|
+
super("event", items);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
// src/operations/registry.ts
|
|
278
|
+
function opKey(key, version) {
|
|
279
|
+
return `${key}.v${version}`;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
class OperationSpecRegistry extends SpecContractRegistry {
|
|
283
|
+
handlers = new Map;
|
|
284
|
+
constructor(items) {
|
|
285
|
+
super("operation", items);
|
|
286
|
+
}
|
|
287
|
+
bind(spec, handler) {
|
|
288
|
+
const key = opKey(spec.meta.key, spec.meta.version);
|
|
289
|
+
if (!this.items.has(key))
|
|
290
|
+
throw new Error(`Cannot bind; spec not found: ${key}`);
|
|
291
|
+
if (this.handlers.has(key))
|
|
292
|
+
throw new Error(`Handler already bound for ${key}`);
|
|
293
|
+
this.handlers.set(key, handler);
|
|
294
|
+
return this;
|
|
295
|
+
}
|
|
296
|
+
getHandler(key, version) {
|
|
297
|
+
const spec = this.get(key, version);
|
|
298
|
+
if (!spec)
|
|
299
|
+
return;
|
|
300
|
+
return this.handlers.get(opKey(spec.meta.key, spec.meta.version));
|
|
301
|
+
}
|
|
302
|
+
listBound() {
|
|
303
|
+
const out = [];
|
|
304
|
+
for (const [k, spec] of this.items.entries()) {
|
|
305
|
+
const h = this.handlers.get(k);
|
|
306
|
+
if (h)
|
|
307
|
+
out.push({ spec, handler: h });
|
|
308
|
+
}
|
|
309
|
+
return out;
|
|
310
|
+
}
|
|
311
|
+
async execute(key, version, rawInput, ctx) {
|
|
312
|
+
const baseSpec = this.get(key, version);
|
|
313
|
+
if (!baseSpec)
|
|
314
|
+
throw new Error(`Spec not found for ${key}${version ? `.v${version}` : ""}`);
|
|
315
|
+
const spec = await ctx.specVariantResolver?.resolve({
|
|
316
|
+
name: baseSpec.meta.key,
|
|
317
|
+
version: baseSpec.meta.version,
|
|
318
|
+
kind: baseSpec.meta.kind
|
|
319
|
+
}, ctx) ?? baseSpec;
|
|
320
|
+
let handlerKey = opKey(spec.meta.key, spec.meta.version);
|
|
321
|
+
let handler = this.handlers.get(handlerKey);
|
|
322
|
+
if (!handler) {
|
|
323
|
+
const fallbackKey = opKey(baseSpec.meta.key, baseSpec.meta.version);
|
|
324
|
+
handler = this.handlers.get(fallbackKey);
|
|
325
|
+
handlerKey = fallbackKey;
|
|
326
|
+
}
|
|
327
|
+
if (!handler)
|
|
328
|
+
throw new Error(`No handler bound for ${handlerKey}`);
|
|
329
|
+
const parsedInput = spec.io.input?.getZod().parse(rawInput);
|
|
330
|
+
if (ctx.decide) {
|
|
331
|
+
const [service, command] = spec.meta.key.split(".");
|
|
332
|
+
if (!service || !command)
|
|
333
|
+
throw new Error(`Invalid spec name: ${spec.meta.key}`);
|
|
334
|
+
const decision = await ctx.decide({
|
|
335
|
+
service,
|
|
336
|
+
command,
|
|
337
|
+
version: spec.meta.version,
|
|
338
|
+
actor: ctx.actor ?? "anonymous",
|
|
339
|
+
channel: ctx.channel,
|
|
340
|
+
roles: ctx.roles,
|
|
341
|
+
organizationId: ctx.organizationId,
|
|
342
|
+
userId: ctx.userId,
|
|
343
|
+
flags: []
|
|
344
|
+
});
|
|
345
|
+
if (decision.effect === "deny") {
|
|
346
|
+
throw new Error(`PolicyDenied: ${spec.meta.key}.v${spec.meta.version}`);
|
|
347
|
+
}
|
|
348
|
+
if (decision.rateLimit && ctx.rateLimit) {
|
|
349
|
+
const key2 = decision.rateLimit.key ?? "default";
|
|
350
|
+
const rpm = decision.rateLimit.rpm ?? 60;
|
|
351
|
+
await ctx.rateLimit(key2, 1, rpm);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
const allowedEvents = new Map;
|
|
355
|
+
if (spec.sideEffects?.emits) {
|
|
356
|
+
for (const e of spec.sideEffects.emits) {
|
|
357
|
+
if (isEmitDeclRef(e)) {
|
|
358
|
+
const eventSpec = ctx.eventSpecResolver?.get(e.ref.key, e.ref.version);
|
|
359
|
+
if (eventSpec) {
|
|
360
|
+
allowedEvents.set(`${e.ref.key}.v${e.ref.version}`, eventSpec.payload);
|
|
361
|
+
}
|
|
362
|
+
} else {
|
|
363
|
+
allowedEvents.set(`${e.key}.v${e.version}`, e.payload);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
const emitGuard = async (eventName, eventVersion, payload) => {
|
|
368
|
+
const key2 = eventKey(eventName, eventVersion);
|
|
369
|
+
const schema = allowedEvents.get(key2);
|
|
370
|
+
if (!schema)
|
|
371
|
+
throw new Error(`UndeclaredEvent: ${key2} not allowed by ${opKey(spec.meta.key, spec.meta.version)}`);
|
|
372
|
+
const parsed = schema.getZod().parse(payload);
|
|
373
|
+
await ctx.eventPublisher?.({
|
|
374
|
+
key: eventName,
|
|
375
|
+
version: eventVersion,
|
|
376
|
+
payload: parsed,
|
|
377
|
+
traceId: ctx.traceId
|
|
378
|
+
});
|
|
379
|
+
};
|
|
380
|
+
if (ctx.appConfig) {
|
|
381
|
+
if (!ctx.branding) {
|
|
382
|
+
ctx.branding = ctx.appConfig.branding;
|
|
383
|
+
}
|
|
384
|
+
if (!ctx.translation) {
|
|
385
|
+
ctx.translation = { config: ctx.appConfig.translation };
|
|
386
|
+
} else if (!ctx.translation.config) {
|
|
387
|
+
ctx.translation = {
|
|
388
|
+
...ctx.translation,
|
|
389
|
+
config: ctx.appConfig.translation
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
const telemetryContext = ctx.telemetry;
|
|
394
|
+
const trackTelemetry = async (trigger, details) => {
|
|
395
|
+
if (!telemetryContext || !trigger?.event)
|
|
396
|
+
return;
|
|
397
|
+
try {
|
|
398
|
+
const props = trigger.properties?.(details) ?? {};
|
|
399
|
+
await telemetryContext.track(trigger.event.key, trigger.event.version ?? "1.0.0", props, {
|
|
400
|
+
tenantId: ctx.organizationId ?? undefined,
|
|
401
|
+
organizationId: ctx.organizationId,
|
|
402
|
+
userId: ctx.userId,
|
|
403
|
+
actor: ctx.actor,
|
|
404
|
+
channel: ctx.channel,
|
|
405
|
+
metadata: ctx.traceId ? { traceId: ctx.traceId } : undefined
|
|
406
|
+
});
|
|
407
|
+
} catch (_error) {}
|
|
408
|
+
};
|
|
409
|
+
let result;
|
|
410
|
+
try {
|
|
411
|
+
result = await handler(parsedInput, {
|
|
412
|
+
...ctx,
|
|
413
|
+
__emitGuard__: emitGuard
|
|
414
|
+
});
|
|
415
|
+
} catch (error) {
|
|
416
|
+
if (spec.telemetry?.failure) {
|
|
417
|
+
await trackTelemetry(spec.telemetry.failure, {
|
|
418
|
+
input: parsedInput ?? rawInput,
|
|
419
|
+
error
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
throw error;
|
|
423
|
+
}
|
|
424
|
+
if (spec.telemetry?.success) {
|
|
425
|
+
await trackTelemetry(spec.telemetry.success, {
|
|
426
|
+
input: parsedInput ?? rawInput,
|
|
427
|
+
output: result
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
const outputModel = spec.io.output;
|
|
431
|
+
if (outputModel?.getZod) {
|
|
432
|
+
const parsedOutput = outputModel.getZod().parse(result);
|
|
433
|
+
return parsedOutput;
|
|
434
|
+
}
|
|
435
|
+
return result;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
// src/docs/presentations.ts
|
|
439
|
+
var DEFAULT_TARGETS = [
|
|
440
|
+
"markdown",
|
|
441
|
+
"react"
|
|
442
|
+
];
|
|
443
|
+
function normalizeRoute(route) {
|
|
444
|
+
if (!route.length)
|
|
445
|
+
return "/";
|
|
446
|
+
const withLeading = route.startsWith("/") ? route : `/${route}`;
|
|
447
|
+
return withLeading === "/" ? "/" : withLeading.replace(/\/+$/, "");
|
|
448
|
+
}
|
|
449
|
+
function deriveRoute(block, routePrefix) {
|
|
450
|
+
if (block.route)
|
|
451
|
+
return normalizeRoute(block.route);
|
|
452
|
+
const prefix = routePrefix ?? "/docs";
|
|
453
|
+
const slug = block.id.replace(/^docs\.?/, "").replace(/\./g, "/").replace(/\/+/g, "/");
|
|
454
|
+
const path = slug.startsWith("/") ? slug : `${prefix}/${slug}`;
|
|
455
|
+
return normalizeRoute(path);
|
|
456
|
+
}
|
|
457
|
+
function buildName(block, namespace) {
|
|
458
|
+
return namespace ? `${namespace}.${block.id}` : block.id;
|
|
459
|
+
}
|
|
460
|
+
function docBlockToPresentationSpec(block, options) {
|
|
461
|
+
const targets = options?.defaultTargets ?? DEFAULT_TARGETS;
|
|
462
|
+
const version = block.version ?? options?.defaultVersion ?? "1.0.0";
|
|
463
|
+
const stability = block.stability ?? options?.defaultStability ?? "stable";
|
|
464
|
+
return {
|
|
465
|
+
meta: {
|
|
466
|
+
key: buildName(block, options?.namespace),
|
|
467
|
+
title: block.title,
|
|
468
|
+
version,
|
|
469
|
+
description: block.summary ?? block.title,
|
|
470
|
+
tags: block.tags || [],
|
|
471
|
+
owners: block.owners || [],
|
|
472
|
+
domain: block.domain || "",
|
|
473
|
+
stability,
|
|
474
|
+
goal: `Documentation of: ${block.summary}`,
|
|
475
|
+
context: `Auto-generated`
|
|
476
|
+
},
|
|
477
|
+
policy: block.visibility && block.visibility !== "public" ? { flags: [block.visibility] } : undefined,
|
|
478
|
+
source: {
|
|
479
|
+
type: "blocknotejs",
|
|
480
|
+
docJson: block.body
|
|
481
|
+
},
|
|
482
|
+
targets
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
function docBlocksToPresentationRoutes(blocks, options) {
|
|
486
|
+
return blocks.map((block) => ({
|
|
487
|
+
block,
|
|
488
|
+
route: deriveRoute(block, options?.routePrefix),
|
|
489
|
+
descriptor: docBlockToPresentationSpec(block, options)
|
|
490
|
+
}));
|
|
491
|
+
}
|
|
492
|
+
function docBlocksToPresentationSpecs(blocks, options) {
|
|
493
|
+
return blocks.map((block) => docBlockToPresentationSpec(block, options));
|
|
494
|
+
}
|
|
495
|
+
function mapDocRoutes(routes) {
|
|
496
|
+
return routes.map(({ route, descriptor }) => [route, descriptor]);
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
// src/docs/registry.ts
|
|
500
|
+
class DocRegistry {
|
|
501
|
+
routes = new Map;
|
|
502
|
+
constructor(blocks = [], options) {
|
|
503
|
+
blocks.forEach((block) => this.register(block, options));
|
|
504
|
+
}
|
|
505
|
+
register(block, options) {
|
|
506
|
+
const [route] = docBlocksToPresentationRoutes([block], options);
|
|
507
|
+
if (route) {
|
|
508
|
+
this.routes.set(block.id, route);
|
|
509
|
+
}
|
|
510
|
+
return this;
|
|
511
|
+
}
|
|
512
|
+
list() {
|
|
513
|
+
return [...this.routes.values()];
|
|
514
|
+
}
|
|
515
|
+
get(id) {
|
|
516
|
+
return this.routes.get(id);
|
|
517
|
+
}
|
|
518
|
+
toRouteTuples() {
|
|
519
|
+
return this.list().map(({ route, descriptor }) => [route, descriptor]);
|
|
520
|
+
}
|
|
521
|
+
toPresentationSpecs(options) {
|
|
522
|
+
return this.list().map(({ block }) => docBlockToPresentationSpec(block, options));
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
var requiredFields = [
|
|
526
|
+
"id",
|
|
527
|
+
"title",
|
|
528
|
+
"body",
|
|
529
|
+
"kind",
|
|
530
|
+
"visibility",
|
|
531
|
+
"route"
|
|
532
|
+
];
|
|
533
|
+
var defaultDocRegistry = new DocRegistry;
|
|
534
|
+
function registerDocBlocks(blocks) {
|
|
535
|
+
for (const block of blocks) {
|
|
536
|
+
for (const field of requiredFields) {
|
|
537
|
+
if (!block[field]) {
|
|
538
|
+
throw new Error(`DocBlock ${block.id ?? "<missing id>"} missing field ${String(field)}`);
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
defaultDocRegistry.register(block);
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
function listRegisteredDocBlocks() {
|
|
545
|
+
return defaultDocRegistry.list().map((r) => r.block);
|
|
546
|
+
}
|
|
547
|
+
function docId(id) {
|
|
548
|
+
const found = defaultDocRegistry.get(id);
|
|
549
|
+
if (!found)
|
|
550
|
+
throw new Error(`DocBlock not registered: ${id}`);
|
|
551
|
+
return id;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
// src/data-views/spec.ts
|
|
555
|
+
function defineDataView(spec) {
|
|
556
|
+
return spec;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
// src/data-views/registry.ts
|
|
560
|
+
function dataViewKey(spec) {
|
|
561
|
+
return `${spec.meta.key}.v${spec.meta.version}`;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
class DataViewRegistry extends SpecContractRegistry {
|
|
565
|
+
constructor(items) {
|
|
566
|
+
super("data-view", items);
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
// src/docs/constants.ts
|
|
570
|
+
var DOCS_DOMAIN = "docs";
|
|
571
|
+
var DOCS_OWNERS = ["docs-platform"];
|
|
572
|
+
var DOCS_TAGS = ["docs", "documentation"];
|
|
573
|
+
var DOCS_STABILITY = StabilityEnum.Experimental;
|
|
574
|
+
|
|
575
|
+
// src/docs/tech/docs-system.docblock.ts
|
|
576
|
+
var docsSystemDocBlocks = [
|
|
577
|
+
{
|
|
578
|
+
id: "docs.tech.docs-system",
|
|
579
|
+
title: "Docs system overview",
|
|
580
|
+
summary: "How ContractSpec generates, indexes, and presents documentation.",
|
|
581
|
+
kind: "reference",
|
|
582
|
+
visibility: "public",
|
|
583
|
+
route: "/docs/tech/docs/system",
|
|
584
|
+
tags: ["docs", "system", "contracts"],
|
|
585
|
+
body: `# Docs system overview
|
|
586
|
+
|
|
587
|
+
ContractSpec treats documentation as a first-class output of your specs. The docs system combines:
|
|
588
|
+
|
|
589
|
+
- Contract operations and schemas
|
|
590
|
+
- DocBlocks (goal/how/usage/reference)
|
|
591
|
+
- Presentations for rendering
|
|
592
|
+
|
|
593
|
+
The result is a consistent docs surface across CLI, web, and MCP.
|
|
594
|
+
|
|
595
|
+
## Key surfaces
|
|
596
|
+
|
|
597
|
+
- Generation: \`docs.generate\`
|
|
598
|
+
- Index/search: \`docs.search\`
|
|
599
|
+
- Contract reference: \`docs.contract.reference\`
|
|
600
|
+
- Publish: \`docs.publish\`
|
|
601
|
+
`
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
id: "docs.tech.docs-generator",
|
|
605
|
+
title: "Docs generator",
|
|
606
|
+
summary: "Generate reference docs and metadata from ContractSpecs.",
|
|
607
|
+
kind: "how",
|
|
608
|
+
visibility: "public",
|
|
609
|
+
route: "/docs/tech/docs/generator",
|
|
610
|
+
tags: ["docs", "generator", "cli"],
|
|
611
|
+
body: `# Docs generator
|
|
612
|
+
|
|
613
|
+
The generator produces documentation artifacts from registered ContractSpecs and DocBlocks.
|
|
614
|
+
|
|
615
|
+
## Outputs
|
|
616
|
+
|
|
617
|
+
- Reference pages for operations, events, forms, data views, and presentations
|
|
618
|
+
- Search index metadata (DocBlocks + routes)
|
|
619
|
+
- Contract schemas rendered to markdown or JSON
|
|
620
|
+
`
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
id: "docs.tech.docs-search",
|
|
624
|
+
title: "Docs index and search",
|
|
625
|
+
summary: "Search DocBlocks by query, tag, kind, or visibility.",
|
|
626
|
+
kind: "reference",
|
|
627
|
+
visibility: "public",
|
|
628
|
+
route: "/docs/tech/docs/search",
|
|
629
|
+
tags: ["docs", "search"],
|
|
630
|
+
body: `# Docs index and search
|
|
631
|
+
|
|
632
|
+
The docs index is the canonical list of DocBlocks exposed to UI and MCP surfaces.
|
|
633
|
+
|
|
634
|
+
## Query
|
|
635
|
+
|
|
636
|
+
- Operation: \`docs.search\`
|
|
637
|
+
- Filters: query, tag, kind, visibility
|
|
638
|
+
`
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
id: "docs.tech.docs-reference",
|
|
642
|
+
title: "Contract reference pages",
|
|
643
|
+
summary: "Resolve any spec into a docs-ready reference payload.",
|
|
644
|
+
kind: "reference",
|
|
645
|
+
visibility: "public",
|
|
646
|
+
route: "/docs/tech/docs/reference",
|
|
647
|
+
tags: ["docs", "reference"],
|
|
648
|
+
body: `# Contract reference
|
|
649
|
+
|
|
650
|
+
Contract reference pages are generated from spec metadata plus schema details.
|
|
651
|
+
|
|
652
|
+
## Query
|
|
653
|
+
|
|
654
|
+
- Operation: \`docs.contract.reference\`
|
|
655
|
+
`
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
id: "docs.tech.docs-publish",
|
|
659
|
+
title: "Docs publish",
|
|
660
|
+
summary: "Publish generated artifacts to the docs host.",
|
|
661
|
+
kind: "how",
|
|
662
|
+
visibility: "public",
|
|
663
|
+
route: "/docs/tech/docs/publish",
|
|
664
|
+
tags: ["docs", "publish"],
|
|
665
|
+
body: `# Docs publish
|
|
666
|
+
|
|
667
|
+
Publishing moves generated artifacts to a hosting target with versioning.
|
|
668
|
+
|
|
669
|
+
## Command
|
|
670
|
+
|
|
671
|
+
- Operation: \`docs.publish\`
|
|
672
|
+
`
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
id: "docs.tech.docs-examples",
|
|
676
|
+
title: "Examples catalog",
|
|
677
|
+
summary: "Document and surface example projects with sandbox support.",
|
|
678
|
+
kind: "reference",
|
|
679
|
+
visibility: "public",
|
|
680
|
+
route: "/docs/tech/docs/examples",
|
|
681
|
+
tags: ["docs", "examples"],
|
|
682
|
+
body: `# Examples catalog
|
|
683
|
+
|
|
684
|
+
Examples are registered as ExampleSpecs and surface DocBlocks for discovery.
|
|
685
|
+
|
|
686
|
+
- Docs index tags should include \`examples\` to populate the catalog.
|
|
687
|
+
- Sandbox support is available under \`/sandbox\`.
|
|
688
|
+
`
|
|
689
|
+
}
|
|
690
|
+
];
|
|
691
|
+
registerDocBlocks(docsSystemDocBlocks);
|
|
692
|
+
// src/docs/events/docsGenerated.event.ts
|
|
693
|
+
import { SchemaModel, ScalarTypeEnum } from "@contractspec/lib.schema";
|
|
694
|
+
var DocsGeneratedPayload = new SchemaModel({
|
|
695
|
+
name: "DocsGeneratedPayload",
|
|
696
|
+
fields: {
|
|
697
|
+
buildId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
698
|
+
version: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
699
|
+
generatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
|
|
700
|
+
outputDir: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
701
|
+
artifactCount: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
|
|
702
|
+
warnings: {
|
|
703
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
704
|
+
isOptional: true,
|
|
705
|
+
isArray: true
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
});
|
|
709
|
+
var DocsGeneratedEvent = defineEvent({
|
|
710
|
+
meta: {
|
|
711
|
+
key: "docs.generated",
|
|
712
|
+
version: "1.0.0",
|
|
713
|
+
description: "Emitted when documentation artifacts are generated.",
|
|
714
|
+
domain: DOCS_DOMAIN,
|
|
715
|
+
owners: DOCS_OWNERS,
|
|
716
|
+
tags: [...DOCS_TAGS, "generation"],
|
|
717
|
+
stability: DOCS_STABILITY,
|
|
718
|
+
docId: [docId("docs.tech.docs-generator")]
|
|
719
|
+
},
|
|
720
|
+
payload: DocsGeneratedPayload
|
|
721
|
+
});
|
|
722
|
+
|
|
723
|
+
// src/docs/commands/docsGenerate.command.ts
|
|
724
|
+
import { ScalarTypeEnum as ScalarTypeEnum2, SchemaModel as SchemaModel2 } from "@contractspec/lib.schema";
|
|
725
|
+
var DocsArtifactModel = new SchemaModel2({
|
|
726
|
+
name: "DocsArtifact",
|
|
727
|
+
fields: {
|
|
728
|
+
path: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
729
|
+
format: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
730
|
+
bytes: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: true },
|
|
731
|
+
kind: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true }
|
|
732
|
+
}
|
|
733
|
+
});
|
|
734
|
+
var DocsGenerateInput = new SchemaModel2({
|
|
735
|
+
name: "DocsGenerateInput",
|
|
736
|
+
fields: {
|
|
737
|
+
workspaceRoot: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
738
|
+
outputDir: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
739
|
+
version: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
740
|
+
formats: {
|
|
741
|
+
type: ScalarTypeEnum2.String_unsecure(),
|
|
742
|
+
isOptional: true,
|
|
743
|
+
isArray: true
|
|
744
|
+
},
|
|
745
|
+
includeInternal: { type: ScalarTypeEnum2.Boolean(), isOptional: true },
|
|
746
|
+
includeExperimental: { type: ScalarTypeEnum2.Boolean(), isOptional: true },
|
|
747
|
+
contractFilter: {
|
|
748
|
+
type: ScalarTypeEnum2.String_unsecure(),
|
|
749
|
+
isOptional: true
|
|
750
|
+
},
|
|
751
|
+
docblockFilter: {
|
|
752
|
+
type: ScalarTypeEnum2.String_unsecure(),
|
|
753
|
+
isOptional: true
|
|
754
|
+
},
|
|
755
|
+
dryRun: { type: ScalarTypeEnum2.Boolean(), isOptional: true }
|
|
756
|
+
}
|
|
757
|
+
});
|
|
758
|
+
var DocsGenerateOutput = new SchemaModel2({
|
|
759
|
+
name: "DocsGenerateOutput",
|
|
760
|
+
fields: {
|
|
761
|
+
buildId: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
762
|
+
version: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
763
|
+
generatedAt: { type: ScalarTypeEnum2.DateTime(), isOptional: false },
|
|
764
|
+
outputDir: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
765
|
+
artifacts: { type: DocsArtifactModel, isOptional: true, isArray: true },
|
|
766
|
+
warnings: {
|
|
767
|
+
type: ScalarTypeEnum2.String_unsecure(),
|
|
768
|
+
isOptional: true,
|
|
769
|
+
isArray: true
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
});
|
|
773
|
+
var DocsGenerateCommand = defineCommand({
|
|
774
|
+
meta: {
|
|
775
|
+
key: "docs.generate",
|
|
776
|
+
title: "Generate Documentation",
|
|
777
|
+
version: "1.0.0",
|
|
778
|
+
description: "Generate documentation artifacts from ContractSpecs.",
|
|
779
|
+
goal: "Produce up-to-date reference docs and guides from specs and DocBlocks.",
|
|
780
|
+
context: "Used by CLI and CI to keep docs in sync with contract definitions.",
|
|
781
|
+
domain: DOCS_DOMAIN,
|
|
782
|
+
owners: DOCS_OWNERS,
|
|
783
|
+
tags: [...DOCS_TAGS, "generation"],
|
|
784
|
+
stability: DOCS_STABILITY,
|
|
785
|
+
docId: [docId("docs.tech.docs-generator")]
|
|
786
|
+
},
|
|
787
|
+
capability: {
|
|
788
|
+
key: "docs.system",
|
|
789
|
+
version: "1.0.0"
|
|
790
|
+
},
|
|
791
|
+
io: {
|
|
792
|
+
input: DocsGenerateInput,
|
|
793
|
+
output: DocsGenerateOutput,
|
|
794
|
+
errors: {
|
|
795
|
+
OUTPUT_WRITE_FAILED: {
|
|
796
|
+
description: "Failed to write generated docs output.",
|
|
797
|
+
http: 500,
|
|
798
|
+
when: "The generator cannot persist artifacts to the output path."
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
},
|
|
802
|
+
policy: {
|
|
803
|
+
auth: "admin",
|
|
804
|
+
pii: []
|
|
805
|
+
},
|
|
806
|
+
sideEffects: {
|
|
807
|
+
emits: [
|
|
808
|
+
{
|
|
809
|
+
ref: DocsGeneratedEvent.meta,
|
|
810
|
+
when: "Docs generation completes successfully."
|
|
811
|
+
}
|
|
812
|
+
]
|
|
813
|
+
}
|
|
814
|
+
});
|
|
815
|
+
|
|
816
|
+
// src/docs/events/docsPublished.event.ts
|
|
817
|
+
import { SchemaModel as SchemaModel3, ScalarTypeEnum as ScalarTypeEnum3 } from "@contractspec/lib.schema";
|
|
818
|
+
var DocsPublishedPayload = new SchemaModel3({
|
|
819
|
+
name: "DocsPublishedPayload",
|
|
820
|
+
fields: {
|
|
821
|
+
publishId: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false },
|
|
822
|
+
version: { type: ScalarTypeEnum3.String_unsecure(), isOptional: true },
|
|
823
|
+
environment: { type: ScalarTypeEnum3.String_unsecure(), isOptional: true },
|
|
824
|
+
url: { type: ScalarTypeEnum3.String_unsecure(), isOptional: true },
|
|
825
|
+
publishedAt: { type: ScalarTypeEnum3.DateTime(), isOptional: false },
|
|
826
|
+
status: { type: ScalarTypeEnum3.String_unsecure(), isOptional: true },
|
|
827
|
+
warnings: {
|
|
828
|
+
type: ScalarTypeEnum3.String_unsecure(),
|
|
829
|
+
isOptional: true,
|
|
830
|
+
isArray: true
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
});
|
|
834
|
+
var DocsPublishedEvent = defineEvent({
|
|
835
|
+
meta: {
|
|
836
|
+
key: "docs.published",
|
|
837
|
+
version: "1.0.0",
|
|
838
|
+
description: "Emitted when documentation is published.",
|
|
839
|
+
domain: DOCS_DOMAIN,
|
|
840
|
+
owners: DOCS_OWNERS,
|
|
841
|
+
tags: [...DOCS_TAGS, "publish"],
|
|
842
|
+
stability: DOCS_STABILITY,
|
|
843
|
+
docId: [docId("docs.tech.docs-publish")]
|
|
844
|
+
},
|
|
845
|
+
payload: DocsPublishedPayload
|
|
846
|
+
});
|
|
847
|
+
|
|
848
|
+
// src/docs/commands/docsPublish.command.ts
|
|
849
|
+
import { ScalarTypeEnum as ScalarTypeEnum4, SchemaModel as SchemaModel4 } from "@contractspec/lib.schema";
|
|
850
|
+
var DocsPublishInput = new SchemaModel4({
|
|
851
|
+
name: "DocsPublishInput",
|
|
852
|
+
fields: {
|
|
853
|
+
buildId: { type: ScalarTypeEnum4.String_unsecure(), isOptional: false },
|
|
854
|
+
version: { type: ScalarTypeEnum4.String_unsecure(), isOptional: true },
|
|
855
|
+
environment: { type: ScalarTypeEnum4.String_unsecure(), isOptional: true },
|
|
856
|
+
deployTarget: { type: ScalarTypeEnum4.String_unsecure(), isOptional: true },
|
|
857
|
+
artifactPath: { type: ScalarTypeEnum4.String_unsecure(), isOptional: true },
|
|
858
|
+
dryRun: { type: ScalarTypeEnum4.Boolean(), isOptional: true },
|
|
859
|
+
notes: { type: ScalarTypeEnum4.String_unsecure(), isOptional: true }
|
|
860
|
+
}
|
|
861
|
+
});
|
|
862
|
+
var DocsPublishOutput = new SchemaModel4({
|
|
863
|
+
name: "DocsPublishOutput",
|
|
864
|
+
fields: {
|
|
865
|
+
publishId: { type: ScalarTypeEnum4.String_unsecure(), isOptional: false },
|
|
866
|
+
publishedAt: { type: ScalarTypeEnum4.DateTime(), isOptional: false },
|
|
867
|
+
url: { type: ScalarTypeEnum4.String_unsecure(), isOptional: true },
|
|
868
|
+
status: { type: ScalarTypeEnum4.String_unsecure(), isOptional: true },
|
|
869
|
+
warnings: {
|
|
870
|
+
type: ScalarTypeEnum4.String_unsecure(),
|
|
871
|
+
isOptional: true,
|
|
872
|
+
isArray: true
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
});
|
|
876
|
+
var DocsPublishCommand = defineCommand({
|
|
877
|
+
meta: {
|
|
878
|
+
key: "docs.publish",
|
|
879
|
+
title: "Publish Documentation",
|
|
880
|
+
version: "1.0.0",
|
|
881
|
+
description: "Publish generated documentation artifacts.",
|
|
882
|
+
goal: "Deploy docs to the public docs surface with consistent versioning.",
|
|
883
|
+
context: "Used by release pipelines to push generated docs to hosting targets.",
|
|
884
|
+
domain: DOCS_DOMAIN,
|
|
885
|
+
owners: DOCS_OWNERS,
|
|
886
|
+
tags: [...DOCS_TAGS, "publish"],
|
|
887
|
+
stability: DOCS_STABILITY,
|
|
888
|
+
docId: [docId("docs.tech.docs-publish")]
|
|
889
|
+
},
|
|
890
|
+
capability: {
|
|
891
|
+
key: "docs.system",
|
|
892
|
+
version: "1.0.0"
|
|
893
|
+
},
|
|
894
|
+
io: {
|
|
895
|
+
input: DocsPublishInput,
|
|
896
|
+
output: DocsPublishOutput,
|
|
897
|
+
errors: {
|
|
898
|
+
DEPLOY_FAILED: {
|
|
899
|
+
description: "Failed to deploy documentation artifacts.",
|
|
900
|
+
http: 500,
|
|
901
|
+
when: "The docs publish step fails to deploy to the target host."
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
},
|
|
905
|
+
policy: {
|
|
906
|
+
auth: "admin",
|
|
907
|
+
pii: []
|
|
908
|
+
},
|
|
909
|
+
sideEffects: {
|
|
910
|
+
emits: [
|
|
911
|
+
{
|
|
912
|
+
ref: DocsPublishedEvent.meta,
|
|
913
|
+
when: "Docs publish completes successfully."
|
|
914
|
+
}
|
|
915
|
+
]
|
|
916
|
+
}
|
|
917
|
+
});
|
|
918
|
+
// src/docs/queries/docsIndex.query.ts
|
|
919
|
+
import { ScalarTypeEnum as ScalarTypeEnum5, SchemaModel as SchemaModel5 } from "@contractspec/lib.schema";
|
|
920
|
+
var DocSummaryModel = new SchemaModel5({
|
|
921
|
+
name: "DocSummary",
|
|
922
|
+
fields: {
|
|
923
|
+
id: { type: ScalarTypeEnum5.String_unsecure(), isOptional: false },
|
|
924
|
+
title: { type: ScalarTypeEnum5.String_unsecure(), isOptional: false },
|
|
925
|
+
summary: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
926
|
+
route: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
927
|
+
visibility: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
928
|
+
kind: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
929
|
+
version: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
930
|
+
tags: {
|
|
931
|
+
type: ScalarTypeEnum5.String_unsecure(),
|
|
932
|
+
isOptional: true,
|
|
933
|
+
isArray: true
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
});
|
|
937
|
+
var DocsIndexInput = new SchemaModel5({
|
|
938
|
+
name: "DocsIndexInput",
|
|
939
|
+
fields: {
|
|
940
|
+
query: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
941
|
+
tag: {
|
|
942
|
+
type: ScalarTypeEnum5.String_unsecure(),
|
|
943
|
+
isOptional: true,
|
|
944
|
+
isArray: true
|
|
945
|
+
},
|
|
946
|
+
visibility: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
947
|
+
kind: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
948
|
+
limit: { type: ScalarTypeEnum5.Int_unsecure(), isOptional: true },
|
|
949
|
+
offset: { type: ScalarTypeEnum5.Int_unsecure(), isOptional: true }
|
|
950
|
+
}
|
|
951
|
+
});
|
|
952
|
+
var DocsIndexOutput = new SchemaModel5({
|
|
953
|
+
name: "DocsIndexOutput",
|
|
954
|
+
fields: {
|
|
955
|
+
items: { type: DocSummaryModel, isOptional: true, isArray: true },
|
|
956
|
+
docs: { type: DocSummaryModel, isOptional: false, isArray: true },
|
|
957
|
+
total: { type: ScalarTypeEnum5.Int_unsecure(), isOptional: true },
|
|
958
|
+
nextOffset: { type: ScalarTypeEnum5.Int_unsecure(), isOptional: true }
|
|
959
|
+
}
|
|
960
|
+
});
|
|
961
|
+
var DocsIndexQuery = defineQuery({
|
|
962
|
+
meta: {
|
|
963
|
+
key: "docs.search",
|
|
964
|
+
title: "Docs Index",
|
|
965
|
+
version: "1.0.0",
|
|
966
|
+
description: "Search and filter DocBlocks by query, tag, or visibility.",
|
|
967
|
+
goal: "Provide a consistent index of documentation entries for UI and MCP.",
|
|
968
|
+
context: "Used by docs surfaces to list and filter DocBlocks without coupling to storage.",
|
|
969
|
+
domain: DOCS_DOMAIN,
|
|
970
|
+
owners: DOCS_OWNERS,
|
|
971
|
+
tags: [...DOCS_TAGS, "search", "index"],
|
|
972
|
+
stability: DOCS_STABILITY,
|
|
973
|
+
docId: [docId("docs.tech.docs-search")]
|
|
974
|
+
},
|
|
975
|
+
capability: {
|
|
976
|
+
key: "docs.system",
|
|
977
|
+
version: "1.0.0"
|
|
978
|
+
},
|
|
979
|
+
io: {
|
|
980
|
+
input: DocsIndexInput,
|
|
981
|
+
output: DocsIndexOutput
|
|
982
|
+
},
|
|
983
|
+
policy: {
|
|
984
|
+
auth: "anonymous",
|
|
985
|
+
pii: []
|
|
986
|
+
}
|
|
987
|
+
});
|
|
988
|
+
|
|
989
|
+
// src/docs/queries/contractReference.query.ts
|
|
990
|
+
import { ScalarTypeEnum as ScalarTypeEnum6, SchemaModel as SchemaModel6 } from "@contractspec/lib.schema";
|
|
991
|
+
var ContractReferenceInput = new SchemaModel6({
|
|
992
|
+
name: "ContractReferenceInput",
|
|
993
|
+
fields: {
|
|
994
|
+
key: { type: ScalarTypeEnum6.String_unsecure(), isOptional: false },
|
|
995
|
+
version: { type: ScalarTypeEnum6.String_unsecure(), isOptional: true },
|
|
996
|
+
type: { type: ScalarTypeEnum6.String_unsecure(), isOptional: true },
|
|
997
|
+
format: { type: ScalarTypeEnum6.String_unsecure(), isOptional: true },
|
|
998
|
+
includeSchema: { type: ScalarTypeEnum6.Boolean(), isOptional: true }
|
|
999
|
+
}
|
|
1000
|
+
});
|
|
1001
|
+
var ContractReferenceModel = new SchemaModel6({
|
|
1002
|
+
name: "ContractReference",
|
|
1003
|
+
fields: {
|
|
1004
|
+
key: { type: ScalarTypeEnum6.String_unsecure(), isOptional: false },
|
|
1005
|
+
version: { type: ScalarTypeEnum6.String_unsecure(), isOptional: false },
|
|
1006
|
+
type: { type: ScalarTypeEnum6.String_unsecure(), isOptional: false },
|
|
1007
|
+
title: { type: ScalarTypeEnum6.String_unsecure(), isOptional: true },
|
|
1008
|
+
description: { type: ScalarTypeEnum6.String_unsecure(), isOptional: true },
|
|
1009
|
+
markdown: { type: ScalarTypeEnum6.String_unsecure(), isOptional: true },
|
|
1010
|
+
route: { type: ScalarTypeEnum6.String_unsecure(), isOptional: true },
|
|
1011
|
+
schema: { type: ScalarTypeEnum6.JSONObject(), isOptional: true },
|
|
1012
|
+
policy: { type: ScalarTypeEnum6.JSONObject(), isOptional: true },
|
|
1013
|
+
tags: {
|
|
1014
|
+
type: ScalarTypeEnum6.String_unsecure(),
|
|
1015
|
+
isOptional: true,
|
|
1016
|
+
isArray: true
|
|
1017
|
+
},
|
|
1018
|
+
owners: {
|
|
1019
|
+
type: ScalarTypeEnum6.String_unsecure(),
|
|
1020
|
+
isOptional: true,
|
|
1021
|
+
isArray: true
|
|
1022
|
+
},
|
|
1023
|
+
stability: { type: ScalarTypeEnum6.String_unsecure(), isOptional: true }
|
|
1024
|
+
}
|
|
1025
|
+
});
|
|
1026
|
+
var ContractReferenceOutput = new SchemaModel6({
|
|
1027
|
+
name: "ContractReferenceOutput",
|
|
1028
|
+
fields: {
|
|
1029
|
+
reference: { type: ContractReferenceModel, isOptional: false }
|
|
1030
|
+
}
|
|
1031
|
+
});
|
|
1032
|
+
var ContractReferenceQuery = defineQuery({
|
|
1033
|
+
meta: {
|
|
1034
|
+
key: "docs.contract.reference",
|
|
1035
|
+
title: "Contract Reference",
|
|
1036
|
+
version: "1.0.0",
|
|
1037
|
+
description: "Resolve a contract into a documentation-ready reference.",
|
|
1038
|
+
goal: "Expose a canonical reference view for any ContractSpec surface.",
|
|
1039
|
+
context: "Used by docs generators and UI to render consistent reference pages.",
|
|
1040
|
+
domain: DOCS_DOMAIN,
|
|
1041
|
+
owners: DOCS_OWNERS,
|
|
1042
|
+
tags: [...DOCS_TAGS, "reference"],
|
|
1043
|
+
stability: DOCS_STABILITY,
|
|
1044
|
+
docId: [docId("docs.tech.docs-reference")]
|
|
1045
|
+
},
|
|
1046
|
+
capability: {
|
|
1047
|
+
key: "docs.system",
|
|
1048
|
+
version: "1.0.0"
|
|
1049
|
+
},
|
|
1050
|
+
io: {
|
|
1051
|
+
input: ContractReferenceInput,
|
|
1052
|
+
output: ContractReferenceOutput
|
|
1053
|
+
},
|
|
1054
|
+
policy: {
|
|
1055
|
+
auth: "anonymous",
|
|
1056
|
+
pii: []
|
|
1057
|
+
}
|
|
1058
|
+
});
|
|
1059
|
+
// src/presentations/presentations.ts
|
|
1060
|
+
var definePresentation = (spec) => {
|
|
1061
|
+
return spec;
|
|
1062
|
+
};
|
|
1063
|
+
|
|
1064
|
+
// src/presentations/registry.ts
|
|
1065
|
+
class PresentationRegistry extends SpecContractRegistry {
|
|
1066
|
+
constructor(items) {
|
|
1067
|
+
super("presentation", items);
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
// src/docs/presentations/docsLayout.presentation.ts
|
|
1071
|
+
var DocsLayoutPresentation = definePresentation({
|
|
1072
|
+
meta: {
|
|
1073
|
+
key: "docs.layout",
|
|
1074
|
+
title: "Docs Layout",
|
|
1075
|
+
version: "1.0.0",
|
|
1076
|
+
description: "Shared layout shell for documentation pages.",
|
|
1077
|
+
goal: "Provide consistent navigation, layout, and docs UI scaffolding.",
|
|
1078
|
+
context: "Used by web docs surfaces to render DocBlock-based content.",
|
|
1079
|
+
domain: DOCS_DOMAIN,
|
|
1080
|
+
owners: DOCS_OWNERS,
|
|
1081
|
+
tags: [...DOCS_TAGS, "layout"],
|
|
1082
|
+
stability: DOCS_STABILITY,
|
|
1083
|
+
docId: [docId("docs.tech.docs-system")]
|
|
1084
|
+
},
|
|
1085
|
+
capability: {
|
|
1086
|
+
key: "docs.system",
|
|
1087
|
+
version: "1.0.0"
|
|
1088
|
+
},
|
|
1089
|
+
source: {
|
|
1090
|
+
type: "component",
|
|
1091
|
+
framework: "react",
|
|
1092
|
+
componentKey: "docsLayout"
|
|
1093
|
+
},
|
|
1094
|
+
targets: ["react"]
|
|
1095
|
+
});
|
|
1096
|
+
|
|
1097
|
+
// src/docs/presentations/docsReferencePage.presentation.ts
|
|
1098
|
+
var DocsReferencePagePresentation = definePresentation({
|
|
1099
|
+
meta: {
|
|
1100
|
+
key: "docs.reference.page",
|
|
1101
|
+
title: "Docs Reference Page",
|
|
1102
|
+
version: "1.0.0",
|
|
1103
|
+
description: "Reference page layout for contract documentation.",
|
|
1104
|
+
goal: "Render contract references with consistent metadata and formatting.",
|
|
1105
|
+
context: "Used by docs surfaces to present contract reference content and schemas.",
|
|
1106
|
+
domain: DOCS_DOMAIN,
|
|
1107
|
+
owners: DOCS_OWNERS,
|
|
1108
|
+
tags: [...DOCS_TAGS, "reference"],
|
|
1109
|
+
stability: DOCS_STABILITY,
|
|
1110
|
+
docId: [docId("docs.tech.docs-reference")]
|
|
1111
|
+
},
|
|
1112
|
+
capability: {
|
|
1113
|
+
key: "docs.system",
|
|
1114
|
+
version: "1.0.0"
|
|
1115
|
+
},
|
|
1116
|
+
source: {
|
|
1117
|
+
type: "component",
|
|
1118
|
+
framework: "react",
|
|
1119
|
+
componentKey: "docsReferencePage"
|
|
1120
|
+
},
|
|
1121
|
+
targets: ["react", "markdown"]
|
|
1122
|
+
});
|
|
1123
|
+
// src/forms/forms.ts
|
|
1124
|
+
import { compareVersions as compareVersions2 } from "compare-versions";
|
|
1125
|
+
function formKey(meta) {
|
|
1126
|
+
return `${meta.key}.v${meta.version}`;
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
class FormRegistry {
|
|
1130
|
+
items = new Map;
|
|
1131
|
+
register(spec) {
|
|
1132
|
+
const key = formKey(spec.meta);
|
|
1133
|
+
if (this.items.has(key))
|
|
1134
|
+
throw new Error(`Duplicate form ${key}`);
|
|
1135
|
+
this.items.set(key, spec);
|
|
1136
|
+
return this;
|
|
1137
|
+
}
|
|
1138
|
+
list() {
|
|
1139
|
+
return [...this.items.values()];
|
|
1140
|
+
}
|
|
1141
|
+
get(key, version) {
|
|
1142
|
+
if (version != null)
|
|
1143
|
+
return this.items.get(`${key}.v${version}`);
|
|
1144
|
+
let candidate;
|
|
1145
|
+
for (const [k, v] of this.items.entries()) {
|
|
1146
|
+
if (v.meta.key !== key)
|
|
1147
|
+
continue;
|
|
1148
|
+
if (!candidate || compareVersions2(v.meta.version, candidate.meta.version) > 0) {
|
|
1149
|
+
candidate = v;
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
return candidate;
|
|
1153
|
+
}
|
|
1154
|
+
filter(criteria) {
|
|
1155
|
+
const { filterBy: filterBy2 } = (init_registry_utils(), __toCommonJS(exports_registry_utils));
|
|
1156
|
+
return filterBy2(this.list(), criteria);
|
|
1157
|
+
}
|
|
1158
|
+
listByTag(tag) {
|
|
1159
|
+
return this.list().filter((f) => f.meta.tags?.includes(tag));
|
|
1160
|
+
}
|
|
1161
|
+
listByOwner(owner) {
|
|
1162
|
+
return this.list().filter((f) => f.meta.owners?.includes(owner));
|
|
1163
|
+
}
|
|
1164
|
+
groupBy(keyFn) {
|
|
1165
|
+
const { groupBy: groupBy2 } = (init_registry_utils(), __toCommonJS(exports_registry_utils));
|
|
1166
|
+
return groupBy2(this.list(), keyFn);
|
|
1167
|
+
}
|
|
1168
|
+
getUniqueTags() {
|
|
1169
|
+
const { getUniqueTags: getUniqueTags2 } = (init_registry_utils(), __toCommonJS(exports_registry_utils));
|
|
1170
|
+
return getUniqueTags2(this.list());
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
function getAtPath(values, path) {
|
|
1174
|
+
if (!path)
|
|
1175
|
+
return;
|
|
1176
|
+
const segs = path.replace(/\[(\d+)\]/g, ".$1").split(".").filter(Boolean);
|
|
1177
|
+
let cur = values;
|
|
1178
|
+
for (const s of segs) {
|
|
1179
|
+
if (cur == null)
|
|
1180
|
+
return;
|
|
1181
|
+
if (cur && typeof cur === "object" && s in cur) {
|
|
1182
|
+
cur = cur[s];
|
|
1183
|
+
} else {
|
|
1184
|
+
return;
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
return cur;
|
|
1188
|
+
}
|
|
1189
|
+
function evalPredicate(values, pred) {
|
|
1190
|
+
if (!pred)
|
|
1191
|
+
return true;
|
|
1192
|
+
if (pred.not)
|
|
1193
|
+
return !evalPredicate(values, pred.not);
|
|
1194
|
+
if (pred.all && pred.all.length)
|
|
1195
|
+
return pred.all.every((p) => evalPredicate(values, p));
|
|
1196
|
+
if (pred.anyOf && pred.anyOf.length)
|
|
1197
|
+
return pred.anyOf.some((p) => evalPredicate(values, p));
|
|
1198
|
+
if (pred.when) {
|
|
1199
|
+
const { path, op = "truthy", value } = pred.when;
|
|
1200
|
+
const v = getAtPath(values, path);
|
|
1201
|
+
switch (op) {
|
|
1202
|
+
case "equals":
|
|
1203
|
+
return v === value;
|
|
1204
|
+
case "notEquals":
|
|
1205
|
+
return v !== value;
|
|
1206
|
+
case "in":
|
|
1207
|
+
return Array.isArray(value) && value.includes(v);
|
|
1208
|
+
case "notIn":
|
|
1209
|
+
return Array.isArray(value) && !value.includes(v);
|
|
1210
|
+
case "gt":
|
|
1211
|
+
return Number(v) > Number(value);
|
|
1212
|
+
case "gte":
|
|
1213
|
+
return Number(v) >= Number(value);
|
|
1214
|
+
case "lt":
|
|
1215
|
+
return Number(v) < Number(value);
|
|
1216
|
+
case "lte":
|
|
1217
|
+
return Number(v) <= Number(value);
|
|
1218
|
+
case "empty":
|
|
1219
|
+
return v == null || (Array.isArray(v) ? v.length === 0 : String(v).length === 0);
|
|
1220
|
+
case "lengthGt":
|
|
1221
|
+
return (Array.isArray(v) || typeof v === "string") && v.length > Number(value ?? 0);
|
|
1222
|
+
case "lengthGte":
|
|
1223
|
+
return (Array.isArray(v) || typeof v === "string") && v.length >= Number(value ?? 0);
|
|
1224
|
+
case "lengthLt":
|
|
1225
|
+
return (Array.isArray(v) || typeof v === "string") && v.length < Number(value ?? 0);
|
|
1226
|
+
case "lengthLte":
|
|
1227
|
+
return (Array.isArray(v) || typeof v === "string") && v.length <= Number(value ?? 0);
|
|
1228
|
+
case "truthy":
|
|
1229
|
+
default:
|
|
1230
|
+
return Boolean(v);
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
return true;
|
|
1234
|
+
}
|
|
1235
|
+
function buildZodWithRelations(spec, handlers) {
|
|
1236
|
+
const base = spec.model.getZod();
|
|
1237
|
+
return base.superRefine((values, ctx) => {
|
|
1238
|
+
const visit = (field, parentPath) => {
|
|
1239
|
+
const path = field.name ? parentPath ? `${parentPath}.${field.name}` : field.name : parentPath ?? "";
|
|
1240
|
+
if (field.requiredWhen) {
|
|
1241
|
+
const should = evalPredicate(values, field.requiredWhen);
|
|
1242
|
+
if (should) {
|
|
1243
|
+
const v = getAtPath(values, path);
|
|
1244
|
+
const empty = v == null || typeof v === "string" && v.trim().length === 0 || Array.isArray(v) && v.length === 0;
|
|
1245
|
+
if (empty)
|
|
1246
|
+
ctx.addIssue({
|
|
1247
|
+
code: "custom",
|
|
1248
|
+
path: path.split("."),
|
|
1249
|
+
message: "required"
|
|
1250
|
+
});
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
if (field.kind === "array") {
|
|
1254
|
+
const arr = getAtPath(values, path);
|
|
1255
|
+
if (field.min != null && Array.isArray(arr) && arr.length < field.min) {
|
|
1256
|
+
ctx.addIssue({
|
|
1257
|
+
code: "custom",
|
|
1258
|
+
path: path.split("."),
|
|
1259
|
+
message: `min:${field.min}`
|
|
1260
|
+
});
|
|
1261
|
+
}
|
|
1262
|
+
if (field.max != null && Array.isArray(arr) && arr.length > field.max) {
|
|
1263
|
+
ctx.addIssue({
|
|
1264
|
+
code: "custom",
|
|
1265
|
+
path: path.split("."),
|
|
1266
|
+
message: `max:${field.max}`
|
|
1267
|
+
});
|
|
1268
|
+
}
|
|
1269
|
+
visit(field.of, path);
|
|
1270
|
+
} else if (field.kind === "group") {
|
|
1271
|
+
for (const child of field.fields)
|
|
1272
|
+
visit(child, path);
|
|
1273
|
+
}
|
|
1274
|
+
};
|
|
1275
|
+
for (const f of spec.fields)
|
|
1276
|
+
visit(f);
|
|
1277
|
+
if (spec.constraints && handlers) {
|
|
1278
|
+
for (const c of spec.constraints) {
|
|
1279
|
+
const fn = handlers[c.key];
|
|
1280
|
+
if (!fn)
|
|
1281
|
+
continue;
|
|
1282
|
+
const res = fn(values, c.paths, c.args);
|
|
1283
|
+
if (!res.ok) {
|
|
1284
|
+
ctx.addIssue({
|
|
1285
|
+
code: "custom",
|
|
1286
|
+
path: (res.path ?? c.paths[0] ?? "").split(".").filter(Boolean),
|
|
1287
|
+
message: res.message ?? c.messageI18n
|
|
1288
|
+
});
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
});
|
|
1293
|
+
}
|
|
1294
|
+
function defineFormSpec(spec) {
|
|
1295
|
+
return spec;
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
// src/docs/forms/docsSearch.form.ts
|
|
1299
|
+
import { SchemaModel as SchemaModel7, ScalarTypeEnum as ScalarTypeEnum7 } from "@contractspec/lib.schema";
|
|
1300
|
+
var DocsSearchFormModel = new SchemaModel7({
|
|
1301
|
+
name: "DocsSearchFormModel",
|
|
1302
|
+
fields: {
|
|
1303
|
+
query: { type: ScalarTypeEnum7.String_unsecure(), isOptional: true },
|
|
1304
|
+
visibility: { type: ScalarTypeEnum7.String_unsecure(), isOptional: true },
|
|
1305
|
+
kind: { type: ScalarTypeEnum7.String_unsecure(), isOptional: true }
|
|
1306
|
+
}
|
|
1307
|
+
});
|
|
1308
|
+
var DocsSearchForm = defineFormSpec({
|
|
1309
|
+
meta: {
|
|
1310
|
+
key: "docs.search.form",
|
|
1311
|
+
title: "Docs Search",
|
|
1312
|
+
version: "1.0.0",
|
|
1313
|
+
description: "Search form for documentation discovery.",
|
|
1314
|
+
domain: DOCS_DOMAIN,
|
|
1315
|
+
owners: DOCS_OWNERS,
|
|
1316
|
+
tags: [...DOCS_TAGS, "search"],
|
|
1317
|
+
stability: DOCS_STABILITY,
|
|
1318
|
+
docId: [docId("docs.tech.docs-search")]
|
|
1319
|
+
},
|
|
1320
|
+
model: DocsSearchFormModel,
|
|
1321
|
+
fields: [
|
|
1322
|
+
{
|
|
1323
|
+
kind: "text",
|
|
1324
|
+
name: "query",
|
|
1325
|
+
labelI18n: "Search",
|
|
1326
|
+
placeholderI18n: "Search docs"
|
|
1327
|
+
},
|
|
1328
|
+
{
|
|
1329
|
+
kind: "select",
|
|
1330
|
+
name: "visibility",
|
|
1331
|
+
labelI18n: "Visibility",
|
|
1332
|
+
options: {
|
|
1333
|
+
kind: "static",
|
|
1334
|
+
options: [
|
|
1335
|
+
{ labelI18n: "Public", value: "public" },
|
|
1336
|
+
{ labelI18n: "Internal", value: "internal" },
|
|
1337
|
+
{ labelI18n: "Mixed", value: "mixed" }
|
|
1338
|
+
]
|
|
1339
|
+
}
|
|
1340
|
+
},
|
|
1341
|
+
{
|
|
1342
|
+
kind: "select",
|
|
1343
|
+
name: "kind",
|
|
1344
|
+
labelI18n: "Kind",
|
|
1345
|
+
options: {
|
|
1346
|
+
kind: "static",
|
|
1347
|
+
options: [
|
|
1348
|
+
{ labelI18n: "Goal", value: "goal" },
|
|
1349
|
+
{ labelI18n: "How", value: "how" },
|
|
1350
|
+
{ labelI18n: "Usage", value: "usage" },
|
|
1351
|
+
{ labelI18n: "Reference", value: "reference" },
|
|
1352
|
+
{ labelI18n: "FAQ", value: "faq" },
|
|
1353
|
+
{ labelI18n: "Changelog", value: "changelog" }
|
|
1354
|
+
]
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
],
|
|
1358
|
+
actions: [
|
|
1359
|
+
{
|
|
1360
|
+
key: "search",
|
|
1361
|
+
labelI18n: "Search"
|
|
1362
|
+
}
|
|
1363
|
+
],
|
|
1364
|
+
policy: {
|
|
1365
|
+
flags: [],
|
|
1366
|
+
pii: []
|
|
1367
|
+
}
|
|
1368
|
+
});
|
|
1369
|
+
// src/docs/views/docsIndex.dataView.ts
|
|
1370
|
+
var DocsIndexDataView = defineDataView({
|
|
1371
|
+
meta: {
|
|
1372
|
+
key: "docs.index.view",
|
|
1373
|
+
title: "Docs Index",
|
|
1374
|
+
version: "1.0.0",
|
|
1375
|
+
description: "List and filter documentation entries.",
|
|
1376
|
+
domain: DOCS_DOMAIN,
|
|
1377
|
+
owners: DOCS_OWNERS,
|
|
1378
|
+
tags: [...DOCS_TAGS, "index"],
|
|
1379
|
+
stability: DOCS_STABILITY,
|
|
1380
|
+
entity: "docs",
|
|
1381
|
+
docId: [docId("docs.tech.docs-search")]
|
|
1382
|
+
},
|
|
1383
|
+
source: {
|
|
1384
|
+
primary: {
|
|
1385
|
+
key: DocsIndexQuery.meta.key,
|
|
1386
|
+
version: DocsIndexQuery.meta.version
|
|
1387
|
+
}
|
|
1388
|
+
},
|
|
1389
|
+
view: {
|
|
1390
|
+
kind: "list",
|
|
1391
|
+
fields: [
|
|
1392
|
+
{ key: "id", label: "ID", dataPath: "id" },
|
|
1393
|
+
{ key: "title", label: "Title", dataPath: "title" },
|
|
1394
|
+
{ key: "summary", label: "Summary", dataPath: "summary" },
|
|
1395
|
+
{ key: "route", label: "Route", dataPath: "route" },
|
|
1396
|
+
{ key: "tags", label: "Tags", dataPath: "tags", format: "badge" },
|
|
1397
|
+
{ key: "kind", label: "Kind", dataPath: "kind" },
|
|
1398
|
+
{ key: "visibility", label: "Visibility", dataPath: "visibility" }
|
|
1399
|
+
],
|
|
1400
|
+
primaryField: "title",
|
|
1401
|
+
secondaryFields: ["summary", "route"],
|
|
1402
|
+
filters: [
|
|
1403
|
+
{ key: "query", label: "Search", field: "query", type: "search" },
|
|
1404
|
+
{
|
|
1405
|
+
key: "visibility",
|
|
1406
|
+
label: "Visibility",
|
|
1407
|
+
field: "visibility",
|
|
1408
|
+
type: "enum",
|
|
1409
|
+
options: [
|
|
1410
|
+
{ value: "public", label: "Public" },
|
|
1411
|
+
{ value: "internal", label: "Internal" },
|
|
1412
|
+
{ value: "mixed", label: "Mixed" }
|
|
1413
|
+
]
|
|
1414
|
+
},
|
|
1415
|
+
{
|
|
1416
|
+
key: "kind",
|
|
1417
|
+
label: "Kind",
|
|
1418
|
+
field: "kind",
|
|
1419
|
+
type: "enum",
|
|
1420
|
+
options: [
|
|
1421
|
+
{ value: "goal", label: "Goal" },
|
|
1422
|
+
{ value: "how", label: "How" },
|
|
1423
|
+
{ value: "usage", label: "Usage" },
|
|
1424
|
+
{ value: "reference", label: "Reference" },
|
|
1425
|
+
{ value: "faq", label: "FAQ" },
|
|
1426
|
+
{ value: "changelog", label: "Changelog" }
|
|
1427
|
+
]
|
|
1428
|
+
}
|
|
1429
|
+
]
|
|
1430
|
+
},
|
|
1431
|
+
policy: {
|
|
1432
|
+
flags: [],
|
|
1433
|
+
pii: []
|
|
1434
|
+
}
|
|
1435
|
+
});
|
|
1436
|
+
|
|
1437
|
+
// src/docs/views/contractReference.dataView.ts
|
|
1438
|
+
var ContractReferenceDataView = defineDataView({
|
|
1439
|
+
meta: {
|
|
1440
|
+
key: "docs.contract.reference.view",
|
|
1441
|
+
title: "Contract Reference",
|
|
1442
|
+
version: "1.0.0",
|
|
1443
|
+
description: "Detail view for a single contract reference.",
|
|
1444
|
+
domain: DOCS_DOMAIN,
|
|
1445
|
+
owners: DOCS_OWNERS,
|
|
1446
|
+
tags: [...DOCS_TAGS, "reference"],
|
|
1447
|
+
stability: DOCS_STABILITY,
|
|
1448
|
+
entity: "contract-reference",
|
|
1449
|
+
docId: [docId("docs.tech.docs-reference")]
|
|
1450
|
+
},
|
|
1451
|
+
source: {
|
|
1452
|
+
primary: {
|
|
1453
|
+
key: ContractReferenceQuery.meta.key,
|
|
1454
|
+
version: ContractReferenceQuery.meta.version
|
|
1455
|
+
}
|
|
1456
|
+
},
|
|
1457
|
+
view: {
|
|
1458
|
+
kind: "detail",
|
|
1459
|
+
fields: [
|
|
1460
|
+
{
|
|
1461
|
+
key: "key",
|
|
1462
|
+
label: "Key",
|
|
1463
|
+
dataPath: "reference.key"
|
|
1464
|
+
},
|
|
1465
|
+
{
|
|
1466
|
+
key: "version",
|
|
1467
|
+
label: "Version",
|
|
1468
|
+
dataPath: "reference.version"
|
|
1469
|
+
},
|
|
1470
|
+
{
|
|
1471
|
+
key: "type",
|
|
1472
|
+
label: "Type",
|
|
1473
|
+
dataPath: "reference.type"
|
|
1474
|
+
},
|
|
1475
|
+
{
|
|
1476
|
+
key: "title",
|
|
1477
|
+
label: "Title",
|
|
1478
|
+
dataPath: "reference.title"
|
|
1479
|
+
},
|
|
1480
|
+
{
|
|
1481
|
+
key: "description",
|
|
1482
|
+
label: "Description",
|
|
1483
|
+
dataPath: "reference.description",
|
|
1484
|
+
format: "markdown"
|
|
1485
|
+
},
|
|
1486
|
+
{
|
|
1487
|
+
key: "tags",
|
|
1488
|
+
label: "Tags",
|
|
1489
|
+
dataPath: "reference.tags"
|
|
1490
|
+
},
|
|
1491
|
+
{
|
|
1492
|
+
key: "owners",
|
|
1493
|
+
label: "Owners",
|
|
1494
|
+
dataPath: "reference.owners"
|
|
1495
|
+
},
|
|
1496
|
+
{
|
|
1497
|
+
key: "stability",
|
|
1498
|
+
label: "Stability",
|
|
1499
|
+
dataPath: "reference.stability"
|
|
1500
|
+
}
|
|
1501
|
+
],
|
|
1502
|
+
primaryField: "title",
|
|
1503
|
+
secondaryFields: ["description"]
|
|
1504
|
+
},
|
|
1505
|
+
policy: {
|
|
1506
|
+
flags: [],
|
|
1507
|
+
pii: []
|
|
1508
|
+
}
|
|
1509
|
+
});
|
|
1510
|
+
|
|
1511
|
+
// src/docs/views/exampleCatalog.dataView.ts
|
|
1512
|
+
var ExampleCatalogDataView = defineDataView({
|
|
1513
|
+
meta: {
|
|
1514
|
+
key: "docs.examples.catalog.view",
|
|
1515
|
+
title: "Examples Catalog",
|
|
1516
|
+
version: "1.0.0",
|
|
1517
|
+
description: "Catalog view of ContractSpec examples and demos.",
|
|
1518
|
+
domain: DOCS_DOMAIN,
|
|
1519
|
+
owners: DOCS_OWNERS,
|
|
1520
|
+
tags: [...DOCS_TAGS, "examples"],
|
|
1521
|
+
stability: DOCS_STABILITY,
|
|
1522
|
+
entity: "docs-examples",
|
|
1523
|
+
docId: [docId("docs.tech.docs-examples")]
|
|
1524
|
+
},
|
|
1525
|
+
source: {
|
|
1526
|
+
primary: {
|
|
1527
|
+
key: DocsIndexQuery.meta.key,
|
|
1528
|
+
version: DocsIndexQuery.meta.version
|
|
1529
|
+
}
|
|
1530
|
+
},
|
|
1531
|
+
view: {
|
|
1532
|
+
kind: "grid",
|
|
1533
|
+
fields: [
|
|
1534
|
+
{ key: "id", label: "ID", dataPath: "id" },
|
|
1535
|
+
{ key: "title", label: "Title", dataPath: "title" },
|
|
1536
|
+
{ key: "summary", label: "Summary", dataPath: "summary" },
|
|
1537
|
+
{ key: "route", label: "Route", dataPath: "route" },
|
|
1538
|
+
{ key: "tags", label: "Tags", dataPath: "tags", format: "badge" }
|
|
1539
|
+
],
|
|
1540
|
+
primaryField: "title",
|
|
1541
|
+
secondaryFields: ["summary"],
|
|
1542
|
+
filters: [
|
|
1543
|
+
{ key: "query", label: "Search", field: "query", type: "search" },
|
|
1544
|
+
{
|
|
1545
|
+
key: "tags",
|
|
1546
|
+
label: "Tags",
|
|
1547
|
+
field: "tag",
|
|
1548
|
+
type: "enum",
|
|
1549
|
+
options: [
|
|
1550
|
+
{ value: "examples", label: "Examples" },
|
|
1551
|
+
{ value: "templates", label: "Templates" },
|
|
1552
|
+
{ value: "sandbox", label: "Sandbox" }
|
|
1553
|
+
]
|
|
1554
|
+
}
|
|
1555
|
+
]
|
|
1556
|
+
},
|
|
1557
|
+
policy: {
|
|
1558
|
+
flags: [],
|
|
1559
|
+
pii: []
|
|
1560
|
+
}
|
|
1561
|
+
});
|
|
1562
|
+
// src/docs/contracts.ts
|
|
1563
|
+
var docsOperationContracts = {
|
|
1564
|
+
DocsIndexQuery,
|
|
1565
|
+
ContractReferenceQuery,
|
|
1566
|
+
DocsGenerateCommand,
|
|
1567
|
+
DocsPublishCommand
|
|
1568
|
+
};
|
|
1569
|
+
var docsEventContracts = {
|
|
1570
|
+
DocsGeneratedEvent,
|
|
1571
|
+
DocsPublishedEvent
|
|
1572
|
+
};
|
|
1573
|
+
var docsPresentationContracts = {
|
|
1574
|
+
DocsLayoutPresentation,
|
|
1575
|
+
DocsReferencePagePresentation
|
|
1576
|
+
};
|
|
1577
|
+
var docsFormContracts = {
|
|
1578
|
+
DocsSearchForm
|
|
1579
|
+
};
|
|
1580
|
+
var docsDataViewContracts = {
|
|
1581
|
+
DocsIndexDataView,
|
|
1582
|
+
ContractReferenceDataView,
|
|
1583
|
+
ExampleCatalogDataView
|
|
1584
|
+
};
|
|
1585
|
+
function registerDocsOperations(registry3) {
|
|
1586
|
+
return registry3.register(DocsIndexQuery).register(ContractReferenceQuery).register(DocsGenerateCommand).register(DocsPublishCommand);
|
|
1587
|
+
}
|
|
1588
|
+
function registerDocsEvents(registry3) {
|
|
1589
|
+
return registry3.register(DocsGeneratedEvent).register(DocsPublishedEvent);
|
|
1590
|
+
}
|
|
1591
|
+
function registerDocsPresentations(registry3) {
|
|
1592
|
+
return registry3.register(DocsLayoutPresentation).register(DocsReferencePagePresentation);
|
|
1593
|
+
}
|
|
1594
|
+
function registerDocsForms(registry3) {
|
|
1595
|
+
return registry3.register(DocsSearchForm);
|
|
1596
|
+
}
|
|
1597
|
+
function registerDocsDataViews(registry3) {
|
|
1598
|
+
return registry3.register(DocsIndexDataView).register(ContractReferenceDataView).register(ExampleCatalogDataView);
|
|
1599
|
+
}
|
|
1600
|
+
export {
|
|
1601
|
+
registerDocsPresentations,
|
|
1602
|
+
registerDocsOperations,
|
|
1603
|
+
registerDocsForms,
|
|
1604
|
+
registerDocsEvents,
|
|
1605
|
+
registerDocsDataViews,
|
|
1606
|
+
docsPresentationContracts,
|
|
1607
|
+
docsOperationContracts,
|
|
1608
|
+
docsFormContracts,
|
|
1609
|
+
docsEventContracts,
|
|
1610
|
+
docsDataViewContracts
|
|
1611
|
+
};
|