@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,344 @@
|
|
|
1
|
+
// @bun
|
|
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 = import.meta.require;
|
|
31
|
+
// src/workspace-config/contractsrc-schema.ts
|
|
32
|
+
import * as z from "zod";
|
|
33
|
+
var SchemaFormatSchema = z.enum([
|
|
34
|
+
"contractspec",
|
|
35
|
+
"zod",
|
|
36
|
+
"json-schema",
|
|
37
|
+
"graphql"
|
|
38
|
+
]);
|
|
39
|
+
var OpenApiSourceConfigSchema = z.object({
|
|
40
|
+
name: z.string(),
|
|
41
|
+
url: z.string().url().optional(),
|
|
42
|
+
file: z.string().optional(),
|
|
43
|
+
syncMode: z.enum(["import", "sync", "validate"]).default("validate").optional(),
|
|
44
|
+
tags: z.array(z.string()).optional(),
|
|
45
|
+
exclude: z.array(z.string()).optional(),
|
|
46
|
+
include: z.array(z.string()).optional(),
|
|
47
|
+
prefix: z.string().optional(),
|
|
48
|
+
defaultStability: z.enum(["experimental", "beta", "stable", "deprecated"]).optional(),
|
|
49
|
+
defaultAuth: z.enum(["anonymous", "user", "admin"]).optional(),
|
|
50
|
+
defaultOwners: z.array(z.string()).optional(),
|
|
51
|
+
schemaFormat: SchemaFormatSchema.default("contractspec").optional()
|
|
52
|
+
});
|
|
53
|
+
var OpenApiExportConfigSchema = z.object({
|
|
54
|
+
outputPath: z.string().default("./openapi.json").optional(),
|
|
55
|
+
format: z.enum(["json", "yaml"]).default("json").optional(),
|
|
56
|
+
title: z.string().optional(),
|
|
57
|
+
version: z.string().optional(),
|
|
58
|
+
description: z.string().optional(),
|
|
59
|
+
servers: z.array(z.object({
|
|
60
|
+
url: z.string(),
|
|
61
|
+
description: z.string().optional()
|
|
62
|
+
})).optional()
|
|
63
|
+
});
|
|
64
|
+
var OpenApiConfigSchema = z.object({
|
|
65
|
+
sources: z.array(OpenApiSourceConfigSchema).optional(),
|
|
66
|
+
export: OpenApiExportConfigSchema.optional()
|
|
67
|
+
});
|
|
68
|
+
var GroupingStrategySchema = z.enum([
|
|
69
|
+
"by-tag",
|
|
70
|
+
"by-owner",
|
|
71
|
+
"by-domain",
|
|
72
|
+
"by-url-path-single",
|
|
73
|
+
"by-url-path-multi",
|
|
74
|
+
"by-feature",
|
|
75
|
+
"none"
|
|
76
|
+
]);
|
|
77
|
+
var GroupingRuleSchema = z.object({
|
|
78
|
+
strategy: GroupingStrategySchema,
|
|
79
|
+
urlPathLevel: z.number().optional(),
|
|
80
|
+
pattern: z.string().optional()
|
|
81
|
+
});
|
|
82
|
+
var FolderConventionsSchema = z.object({
|
|
83
|
+
models: z.string().default("models").optional(),
|
|
84
|
+
operations: z.string().default("operations/commands|queries").optional(),
|
|
85
|
+
events: z.string().default("events").optional(),
|
|
86
|
+
presentations: z.string().default("presentations").optional(),
|
|
87
|
+
forms: z.string().default("forms").optional(),
|
|
88
|
+
groupByFeature: z.boolean().default(true).optional(),
|
|
89
|
+
operationsGrouping: GroupingRuleSchema.optional(),
|
|
90
|
+
modelsGrouping: GroupingRuleSchema.optional(),
|
|
91
|
+
eventsGrouping: GroupingRuleSchema.optional()
|
|
92
|
+
});
|
|
93
|
+
var PrCommentConfigSchema = z.object({
|
|
94
|
+
enabled: z.boolean().default(true).optional(),
|
|
95
|
+
template: z.enum(["minimal", "detailed"]).default("detailed").optional(),
|
|
96
|
+
updateExisting: z.boolean().default(true).optional()
|
|
97
|
+
});
|
|
98
|
+
var CheckRunConfigSchema = z.object({
|
|
99
|
+
enabled: z.boolean().default(true).optional(),
|
|
100
|
+
name: z.string().default("ContractSpec Impact").optional(),
|
|
101
|
+
failOnBreaking: z.boolean().default(true).optional(),
|
|
102
|
+
failOnChanges: z.boolean().default(false).optional()
|
|
103
|
+
});
|
|
104
|
+
var ImpactConfigSchema = z.object({
|
|
105
|
+
baseline: z.string().default("default-branch").optional(),
|
|
106
|
+
include: z.array(z.string()).optional(),
|
|
107
|
+
exclude: z.array(z.string()).optional()
|
|
108
|
+
});
|
|
109
|
+
var CiConfigSchema = z.object({
|
|
110
|
+
checks: z.array(z.string()).default(["structure", "integrity", "deps"]).optional(),
|
|
111
|
+
skipChecks: z.array(z.string()).optional(),
|
|
112
|
+
failOnWarnings: z.boolean().default(false).optional(),
|
|
113
|
+
uploadSarif: z.boolean().default(true).optional(),
|
|
114
|
+
prComment: PrCommentConfigSchema.optional(),
|
|
115
|
+
checkRun: CheckRunConfigSchema.optional(),
|
|
116
|
+
impact: ImpactConfigSchema.optional()
|
|
117
|
+
});
|
|
118
|
+
var ExternalWorkspaceSchema = z.object({
|
|
119
|
+
alias: z.string(),
|
|
120
|
+
submodule: z.string(),
|
|
121
|
+
packages: z.array(z.string()).optional(),
|
|
122
|
+
autoResolve: z.boolean().default(true).optional()
|
|
123
|
+
});
|
|
124
|
+
var MetaRepoConfigSchema = z.object({
|
|
125
|
+
activeScope: z.string().optional(),
|
|
126
|
+
externalWorkspaces: z.array(ExternalWorkspaceSchema).optional(),
|
|
127
|
+
crossWorkspaceSearch: z.boolean().default(false).optional()
|
|
128
|
+
});
|
|
129
|
+
var FormatterTypeSchema = z.enum([
|
|
130
|
+
"prettier",
|
|
131
|
+
"eslint",
|
|
132
|
+
"biome",
|
|
133
|
+
"dprint",
|
|
134
|
+
"custom"
|
|
135
|
+
]);
|
|
136
|
+
var FormatterConfigSchema = z.object({
|
|
137
|
+
enabled: z.boolean().default(true).optional(),
|
|
138
|
+
type: FormatterTypeSchema.optional(),
|
|
139
|
+
command: z.string().optional(),
|
|
140
|
+
args: z.array(z.string()).optional(),
|
|
141
|
+
timeout: z.number().default(30000).optional()
|
|
142
|
+
});
|
|
143
|
+
var BumpStrategySchema = z.enum([
|
|
144
|
+
"impact",
|
|
145
|
+
"conventional"
|
|
146
|
+
]);
|
|
147
|
+
var ChangelogFormatSchema = z.enum([
|
|
148
|
+
"keep-a-changelog",
|
|
149
|
+
"conventional",
|
|
150
|
+
"custom"
|
|
151
|
+
]);
|
|
152
|
+
var ChangelogTierSchema = z.enum([
|
|
153
|
+
"spec",
|
|
154
|
+
"library",
|
|
155
|
+
"monorepo"
|
|
156
|
+
]);
|
|
157
|
+
var VersioningConfigSchema = z.object({
|
|
158
|
+
autoBump: z.boolean().default(false).optional(),
|
|
159
|
+
bumpStrategy: BumpStrategySchema.default("impact").optional(),
|
|
160
|
+
integrateWithChangesets: z.boolean().default(false).optional(),
|
|
161
|
+
changelogTiers: z.array(ChangelogTierSchema).default(["spec", "library", "monorepo"]).optional(),
|
|
162
|
+
format: ChangelogFormatSchema.default("keep-a-changelog").optional(),
|
|
163
|
+
commitChanges: z.boolean().default(false).optional(),
|
|
164
|
+
commitMessage: z.string().default("chore: bump spec versions").optional(),
|
|
165
|
+
createTags: z.boolean().default(false).optional(),
|
|
166
|
+
tagPrefix: z.string().default("v").optional(),
|
|
167
|
+
include: z.array(z.string()).optional(),
|
|
168
|
+
exclude: z.array(z.string()).optional()
|
|
169
|
+
});
|
|
170
|
+
var RuleSyncTargetSchema = z.enum([
|
|
171
|
+
"cursor",
|
|
172
|
+
"windsurf",
|
|
173
|
+
"cline",
|
|
174
|
+
"claude-code",
|
|
175
|
+
"copilot",
|
|
176
|
+
"subagent",
|
|
177
|
+
"skill"
|
|
178
|
+
]);
|
|
179
|
+
var RuleSyncConfigSchema = z.object({
|
|
180
|
+
enabled: z.boolean().default(false).optional(),
|
|
181
|
+
rulesDir: z.string().default("./.rules").optional(),
|
|
182
|
+
rules: z.array(z.string()).default(["**/*.rule.md"]).optional(),
|
|
183
|
+
targets: z.array(RuleSyncTargetSchema).default(["cursor", "windsurf"]).optional(),
|
|
184
|
+
autoSync: z.boolean().default(true).optional(),
|
|
185
|
+
ejectMode: z.boolean().default(false).optional()
|
|
186
|
+
});
|
|
187
|
+
var ClaudeAgentSDKConfigSchema = z.object({
|
|
188
|
+
enabled: z.boolean().default(false).optional(),
|
|
189
|
+
apiKey: z.string().optional(),
|
|
190
|
+
model: z.string().default("claude-sonnet-4-20250514").optional(),
|
|
191
|
+
computerUse: z.boolean().default(false).optional(),
|
|
192
|
+
extendedThinking: z.boolean().default(false).optional()
|
|
193
|
+
});
|
|
194
|
+
var OpenCodeSDKConfigSchema = z.object({
|
|
195
|
+
enabled: z.boolean().default(false).optional(),
|
|
196
|
+
serverUrl: z.string().optional(),
|
|
197
|
+
port: z.number().optional(),
|
|
198
|
+
agentType: z.enum(["build", "plan", "general", "explore"]).default("general").optional(),
|
|
199
|
+
model: z.string().optional()
|
|
200
|
+
});
|
|
201
|
+
var ExternalAgentsConfigSchema = z.object({
|
|
202
|
+
claudeAgent: ClaudeAgentSDKConfigSchema.optional(),
|
|
203
|
+
openCode: OpenCodeSDKConfigSchema.optional()
|
|
204
|
+
});
|
|
205
|
+
var RuleSeveritySchema = z.enum([
|
|
206
|
+
"off",
|
|
207
|
+
"warn",
|
|
208
|
+
"error"
|
|
209
|
+
]);
|
|
210
|
+
var SpecKindSchema = z.enum([
|
|
211
|
+
"operation",
|
|
212
|
+
"event",
|
|
213
|
+
"presentation",
|
|
214
|
+
"feature",
|
|
215
|
+
"workflow",
|
|
216
|
+
"data-view",
|
|
217
|
+
"migration",
|
|
218
|
+
"telemetry",
|
|
219
|
+
"experiment",
|
|
220
|
+
"app-config"
|
|
221
|
+
]);
|
|
222
|
+
var LintRulesSchema = z.object({
|
|
223
|
+
"require-acceptance": RuleSeveritySchema.optional(),
|
|
224
|
+
"require-examples": RuleSeveritySchema.optional(),
|
|
225
|
+
"require-stability": RuleSeveritySchema.optional(),
|
|
226
|
+
"require-owners-format": RuleSeveritySchema.optional(),
|
|
227
|
+
"event-past-tense": RuleSeveritySchema.optional(),
|
|
228
|
+
"no-todo": RuleSeveritySchema.optional(),
|
|
229
|
+
"workflow-transitions": RuleSeveritySchema.optional(),
|
|
230
|
+
"telemetry-privacy": RuleSeveritySchema.optional(),
|
|
231
|
+
"experiment-allocation": RuleSeveritySchema.optional(),
|
|
232
|
+
"app-config-appid": RuleSeveritySchema.optional(),
|
|
233
|
+
"app-config-capabilities": RuleSeveritySchema.optional(),
|
|
234
|
+
"data-view-fields": RuleSeveritySchema.optional()
|
|
235
|
+
});
|
|
236
|
+
var TestLinkingStrategySchema = z.enum([
|
|
237
|
+
"target-first",
|
|
238
|
+
"convention-only",
|
|
239
|
+
"both"
|
|
240
|
+
]);
|
|
241
|
+
var TestLinkingConfigSchema = z.object({
|
|
242
|
+
strategy: TestLinkingStrategySchema.default("both").optional(),
|
|
243
|
+
warnOnConvention: z.boolean().default(false).optional()
|
|
244
|
+
});
|
|
245
|
+
var TestingConfigSchema = z.object({
|
|
246
|
+
runner: z.enum(["internal", "jest", "vitest", "bun"]).default("internal").optional(),
|
|
247
|
+
testMatch: z.array(z.string()).default(["**/*.{test,spec}.{ts,js}"]).optional(),
|
|
248
|
+
autoGenerate: z.boolean().default(false).optional(),
|
|
249
|
+
integrity: z.object({
|
|
250
|
+
requireTestsFor: z.array(SpecKindSchema).optional(),
|
|
251
|
+
minCoverage: z.number().optional()
|
|
252
|
+
}).optional(),
|
|
253
|
+
testLinking: TestLinkingConfigSchema.optional()
|
|
254
|
+
});
|
|
255
|
+
var RulesConfigSchema = z.object({
|
|
256
|
+
defaults: LintRulesSchema.optional(),
|
|
257
|
+
overrides: z.record(SpecKindSchema, LintRulesSchema).optional()
|
|
258
|
+
});
|
|
259
|
+
var HooksConfigSchema = z.record(z.string(), z.array(z.string()));
|
|
260
|
+
var ContractsrcSchema = z.object({
|
|
261
|
+
aiProvider: z.enum(["claude", "openai", "ollama", "custom"]).default("claude").optional(),
|
|
262
|
+
aiModel: z.string().optional(),
|
|
263
|
+
agentMode: z.enum([
|
|
264
|
+
"simple",
|
|
265
|
+
"cursor",
|
|
266
|
+
"claude-code",
|
|
267
|
+
"openai-codex",
|
|
268
|
+
"claude-agent-sdk",
|
|
269
|
+
"opencode",
|
|
270
|
+
"opencode-sdk"
|
|
271
|
+
]).default("simple").optional(),
|
|
272
|
+
customEndpoint: z.url().nullable().optional(),
|
|
273
|
+
customApiKey: z.string().nullable().optional(),
|
|
274
|
+
outputDir: z.string().default("./src").optional(),
|
|
275
|
+
conventions: FolderConventionsSchema.optional(),
|
|
276
|
+
defaultOwners: z.array(z.string()).default([]).optional(),
|
|
277
|
+
defaultTags: z.array(z.string()).default([]).optional(),
|
|
278
|
+
packages: z.array(z.string()).optional(),
|
|
279
|
+
excludePackages: z.array(z.string()).optional(),
|
|
280
|
+
recursive: z.boolean().optional(),
|
|
281
|
+
openapi: OpenApiConfigSchema.optional(),
|
|
282
|
+
ci: CiConfigSchema.optional(),
|
|
283
|
+
metaRepo: MetaRepoConfigSchema.optional(),
|
|
284
|
+
rules: RulesConfigSchema.optional(),
|
|
285
|
+
testing: TestingConfigSchema.optional(),
|
|
286
|
+
hooks: HooksConfigSchema.optional(),
|
|
287
|
+
schemaFormat: SchemaFormatSchema.default("contractspec").optional(),
|
|
288
|
+
formatter: FormatterConfigSchema.optional(),
|
|
289
|
+
versioning: VersioningConfigSchema.optional(),
|
|
290
|
+
ruleSync: RuleSyncConfigSchema.optional(),
|
|
291
|
+
externalAgents: ExternalAgentsConfigSchema.optional()
|
|
292
|
+
});
|
|
293
|
+
var DEFAULT_CONTRACTSRC = {
|
|
294
|
+
aiProvider: "claude",
|
|
295
|
+
agentMode: "simple",
|
|
296
|
+
outputDir: "./src",
|
|
297
|
+
conventions: {
|
|
298
|
+
models: "models",
|
|
299
|
+
operations: "interactions/commands|queries",
|
|
300
|
+
events: "events",
|
|
301
|
+
presentations: "presentations",
|
|
302
|
+
forms: "forms",
|
|
303
|
+
groupByFeature: true
|
|
304
|
+
},
|
|
305
|
+
defaultOwners: [],
|
|
306
|
+
defaultTags: [],
|
|
307
|
+
schemaFormat: "contractspec"
|
|
308
|
+
};
|
|
309
|
+
export {
|
|
310
|
+
VersioningConfigSchema,
|
|
311
|
+
TestingConfigSchema,
|
|
312
|
+
TestLinkingStrategySchema,
|
|
313
|
+
TestLinkingConfigSchema,
|
|
314
|
+
SpecKindSchema,
|
|
315
|
+
SchemaFormatSchema,
|
|
316
|
+
RulesConfigSchema,
|
|
317
|
+
RuleSyncTargetSchema,
|
|
318
|
+
RuleSyncConfigSchema,
|
|
319
|
+
RuleSeveritySchema,
|
|
320
|
+
PrCommentConfigSchema,
|
|
321
|
+
OpenCodeSDKConfigSchema,
|
|
322
|
+
OpenApiSourceConfigSchema,
|
|
323
|
+
OpenApiExportConfigSchema,
|
|
324
|
+
OpenApiConfigSchema,
|
|
325
|
+
MetaRepoConfigSchema,
|
|
326
|
+
LintRulesSchema,
|
|
327
|
+
ImpactConfigSchema,
|
|
328
|
+
HooksConfigSchema,
|
|
329
|
+
GroupingStrategySchema,
|
|
330
|
+
GroupingRuleSchema,
|
|
331
|
+
FormatterTypeSchema,
|
|
332
|
+
FormatterConfigSchema,
|
|
333
|
+
FolderConventionsSchema,
|
|
334
|
+
ExternalWorkspaceSchema,
|
|
335
|
+
ExternalAgentsConfigSchema,
|
|
336
|
+
DEFAULT_CONTRACTSRC,
|
|
337
|
+
ContractsrcSchema,
|
|
338
|
+
ClaudeAgentSDKConfigSchema,
|
|
339
|
+
CiConfigSchema,
|
|
340
|
+
CheckRunConfigSchema,
|
|
341
|
+
ChangelogTierSchema,
|
|
342
|
+
ChangelogFormatSchema,
|
|
343
|
+
BumpStrategySchema
|
|
344
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Explicit type definitions for ContractSpec configuration.
|
|
3
|
+
*
|
|
4
|
+
* These interfaces mirror the Zod schemas in `contractsrc-schema.ts` but are
|
|
5
|
+
* statically defined to reduce compiler inference cost and memory usage.
|
|
6
|
+
*/
|
|
7
|
+
export type SchemaFormat = 'contractspec' | 'zod' | 'json-schema' | 'graphql';
|
|
8
|
+
export type GroupingStrategy = 'by-tag' | 'by-owner' | 'by-domain' | 'by-url-path-single' | 'by-url-path-multi' | 'by-feature' | 'none';
|
|
9
|
+
export type FormatterType = 'prettier' | 'eslint' | 'biome' | 'dprint' | 'custom';
|
|
10
|
+
export type BumpStrategy = 'impact' | 'conventional';
|
|
11
|
+
export type ChangelogFormat = 'keep-a-changelog' | 'conventional' | 'custom';
|
|
12
|
+
export type ChangelogTier = 'spec' | 'library' | 'monorepo';
|
|
13
|
+
export type RuleSyncTarget = 'cursor' | 'windsurf' | 'cline' | 'claude-code' | 'copilot' | 'subagent' | 'skill';
|
|
14
|
+
export type RuleSeverity = 'off' | 'warn' | 'error';
|
|
15
|
+
export type SpecKind = 'operation' | 'event' | 'presentation' | 'feature' | 'workflow' | 'data-view' | 'migration' | 'telemetry' | 'experiment' | 'app-config';
|
|
16
|
+
export type TestLinkingStrategy = 'target-first' | 'convention-only' | 'both';
|
|
17
|
+
export type AgentProvider = 'claude' | 'openai' | 'ollama' | 'custom';
|
|
18
|
+
export type AgentMode = 'simple' | 'cursor' | 'claude-code' | 'openai-codex' | 'claude-agent-sdk' | 'opencode' | 'opencode-sdk';
|
|
19
|
+
export interface OpenApiSourceConfig {
|
|
20
|
+
/** Friendly name for the source */
|
|
21
|
+
name: string;
|
|
22
|
+
/** Remote URL to fetch OpenAPI spec from */
|
|
23
|
+
url?: string;
|
|
24
|
+
/** Local file path to OpenAPI spec */
|
|
25
|
+
file?: string;
|
|
26
|
+
/** Sync mode: import (one-time), sync (update), validate (check only) */
|
|
27
|
+
syncMode?: 'import' | 'sync' | 'validate';
|
|
28
|
+
/** Only import operations with these tags */
|
|
29
|
+
tags?: string[];
|
|
30
|
+
/** Exclude operations with these operationIds */
|
|
31
|
+
exclude?: string[];
|
|
32
|
+
/** Include operations with these operationIds (overrides exclude) */
|
|
33
|
+
include?: string[];
|
|
34
|
+
/** Prefix for generated spec names */
|
|
35
|
+
prefix?: string;
|
|
36
|
+
/** Default stability for imported specs */
|
|
37
|
+
defaultStability?: 'experimental' | 'beta' | 'stable' | 'deprecated';
|
|
38
|
+
/** Default auth level for imported specs */
|
|
39
|
+
defaultAuth?: 'anonymous' | 'user' | 'admin';
|
|
40
|
+
/** Default owners for imported specs */
|
|
41
|
+
defaultOwners?: string[];
|
|
42
|
+
/** Output schema format for generated models */
|
|
43
|
+
schemaFormat?: SchemaFormat;
|
|
44
|
+
}
|
|
45
|
+
export interface OpenApiExportConfig {
|
|
46
|
+
/** Output path for exported OpenAPI document */
|
|
47
|
+
outputPath?: string;
|
|
48
|
+
/** Output format */
|
|
49
|
+
format?: 'json' | 'yaml';
|
|
50
|
+
/** API title for export */
|
|
51
|
+
title?: string;
|
|
52
|
+
/** API version for export */
|
|
53
|
+
version?: string;
|
|
54
|
+
/** API description for export */
|
|
55
|
+
description?: string;
|
|
56
|
+
/** Server URLs to include in export */
|
|
57
|
+
servers?: {
|
|
58
|
+
url: string;
|
|
59
|
+
description?: string;
|
|
60
|
+
}[];
|
|
61
|
+
}
|
|
62
|
+
export interface OpenApiConfig {
|
|
63
|
+
/** External OpenAPI sources to import/sync from */
|
|
64
|
+
sources?: OpenApiSourceConfig[];
|
|
65
|
+
/** Export configuration */
|
|
66
|
+
export?: OpenApiExportConfig;
|
|
67
|
+
}
|
|
68
|
+
export interface GroupingRule {
|
|
69
|
+
/** Grouping strategy to apply */
|
|
70
|
+
strategy: GroupingStrategy;
|
|
71
|
+
/** For url-path strategies, the level depth (default: 1) */
|
|
72
|
+
urlPathLevel?: number;
|
|
73
|
+
/** Custom key extraction pattern (regex or glob) */
|
|
74
|
+
pattern?: string;
|
|
75
|
+
}
|
|
76
|
+
export interface FolderConventions {
|
|
77
|
+
models?: string;
|
|
78
|
+
operations?: string;
|
|
79
|
+
events?: string;
|
|
80
|
+
presentations?: string;
|
|
81
|
+
forms?: string;
|
|
82
|
+
/** Enable feature/module folder grouping (default: true) */
|
|
83
|
+
groupByFeature?: boolean;
|
|
84
|
+
/** Grouping rule for operations */
|
|
85
|
+
operationsGrouping?: GroupingRule;
|
|
86
|
+
/** Grouping rule for models */
|
|
87
|
+
modelsGrouping?: GroupingRule;
|
|
88
|
+
/** Grouping rule for events */
|
|
89
|
+
eventsGrouping?: GroupingRule;
|
|
90
|
+
}
|
|
91
|
+
export interface PrCommentConfig {
|
|
92
|
+
/** Enable PR comments */
|
|
93
|
+
enabled?: boolean;
|
|
94
|
+
/** Comment template: 'minimal' | 'detailed' */
|
|
95
|
+
template?: 'minimal' | 'detailed';
|
|
96
|
+
/** Update existing comment instead of creating new */
|
|
97
|
+
updateExisting?: boolean;
|
|
98
|
+
}
|
|
99
|
+
export interface CheckRunConfig {
|
|
100
|
+
/** Enable GitHub check run creation */
|
|
101
|
+
enabled?: boolean;
|
|
102
|
+
/** Check run name */
|
|
103
|
+
name?: string;
|
|
104
|
+
/** Fail check on breaking changes */
|
|
105
|
+
failOnBreaking?: boolean;
|
|
106
|
+
/** Fail check on any contract changes */
|
|
107
|
+
failOnChanges?: boolean;
|
|
108
|
+
}
|
|
109
|
+
export interface ImpactConfig {
|
|
110
|
+
/** Baseline for comparison: 'default-branch' | 'base-ref' | 'tag:v*' */
|
|
111
|
+
baseline?: string;
|
|
112
|
+
/** Paths to include in impact detection (glob patterns) */
|
|
113
|
+
include?: string[];
|
|
114
|
+
/** Paths to exclude from impact detection (glob patterns) */
|
|
115
|
+
exclude?: string[];
|
|
116
|
+
}
|
|
117
|
+
export interface CiConfig {
|
|
118
|
+
/** Default checks to run */
|
|
119
|
+
checks?: string[];
|
|
120
|
+
/** Checks to skip */
|
|
121
|
+
skipChecks?: string[];
|
|
122
|
+
/** Fail CI on warnings */
|
|
123
|
+
failOnWarnings?: boolean;
|
|
124
|
+
/** Upload SARIF to GitHub Code Scanning */
|
|
125
|
+
uploadSarif?: boolean;
|
|
126
|
+
/** PR comment configuration */
|
|
127
|
+
prComment?: PrCommentConfig;
|
|
128
|
+
/** GitHub check run configuration */
|
|
129
|
+
checkRun?: CheckRunConfig;
|
|
130
|
+
/** Impact detection configuration */
|
|
131
|
+
impact?: ImpactConfig;
|
|
132
|
+
}
|
|
133
|
+
export interface ExternalWorkspace {
|
|
134
|
+
/** Alias for referencing this workspace (e.g., 'core', 'internal') */
|
|
135
|
+
alias: string;
|
|
136
|
+
/** Submodule name or relative path from meta-repo root */
|
|
137
|
+
submodule: string;
|
|
138
|
+
/** Package patterns to include from this workspace */
|
|
139
|
+
packages?: string[];
|
|
140
|
+
/** Whether to auto-resolve internal dependencies */
|
|
141
|
+
autoResolve?: boolean;
|
|
142
|
+
}
|
|
143
|
+
export interface MetaRepoConfig {
|
|
144
|
+
/** Active submodule scope (defaults to auto-detected) */
|
|
145
|
+
activeScope?: string;
|
|
146
|
+
/** External workspace references for cross-workspace dependencies */
|
|
147
|
+
externalWorkspaces?: ExternalWorkspace[];
|
|
148
|
+
/** Whether to search for specs across all submodules */
|
|
149
|
+
crossWorkspaceSearch?: boolean;
|
|
150
|
+
}
|
|
151
|
+
export interface FormatterConfig {
|
|
152
|
+
/** Enable/disable formatting (default: true if formatter detected) */
|
|
153
|
+
enabled?: boolean;
|
|
154
|
+
/** Formatter to use (auto-detected if not specified) */
|
|
155
|
+
type?: FormatterType;
|
|
156
|
+
/** Custom command for 'custom' type (e.g., "bunx prettier --write") */
|
|
157
|
+
command?: string;
|
|
158
|
+
/** Extra arguments to pass to formatter */
|
|
159
|
+
args?: string[];
|
|
160
|
+
/** Timeout in milliseconds (default: 30000) */
|
|
161
|
+
timeout?: number;
|
|
162
|
+
}
|
|
163
|
+
export interface VersioningConfig {
|
|
164
|
+
/** Enable automated version bumping in CI */
|
|
165
|
+
autoBump?: boolean;
|
|
166
|
+
/** Strategy for determining version bumps */
|
|
167
|
+
bumpStrategy?: BumpStrategy;
|
|
168
|
+
/** Integrate with Changesets (generate .changeset files) */
|
|
169
|
+
integrateWithChangesets?: boolean;
|
|
170
|
+
/** Changelog tiers to generate */
|
|
171
|
+
changelogTiers?: ChangelogTier[];
|
|
172
|
+
/** Changelog format template */
|
|
173
|
+
format?: ChangelogFormat;
|
|
174
|
+
/** Commit changes after version bump (CI mode) */
|
|
175
|
+
commitChanges?: boolean;
|
|
176
|
+
/** Commit message template (supports {version}, {specs}) */
|
|
177
|
+
commitMessage?: string;
|
|
178
|
+
/** Create git tags for versions */
|
|
179
|
+
createTags?: boolean;
|
|
180
|
+
/** Tag prefix (e.g., "v" -> v1.0.0, "spec-" -> spec-1.0.0) */
|
|
181
|
+
tagPrefix?: string;
|
|
182
|
+
/** Paths to include for version analysis (glob patterns) */
|
|
183
|
+
include?: string[];
|
|
184
|
+
/** Paths to exclude from version analysis (glob patterns) */
|
|
185
|
+
exclude?: string[];
|
|
186
|
+
}
|
|
187
|
+
export interface RuleSyncConfig {
|
|
188
|
+
/** Enable automated rule synchronization */
|
|
189
|
+
enabled?: boolean;
|
|
190
|
+
/** Root directory for source rule files */
|
|
191
|
+
rulesDir?: string;
|
|
192
|
+
/** Source rule files (glob patterns) */
|
|
193
|
+
rules?: string[];
|
|
194
|
+
/** Synchronization targets (tools to generate rules for) */
|
|
195
|
+
targets?: RuleSyncTarget[];
|
|
196
|
+
/** Automatically synchronize rules on workspace changes or builds */
|
|
197
|
+
autoSync?: boolean;
|
|
198
|
+
/** Whether to eject/copy source rules instead of generating from Unified Rules */
|
|
199
|
+
ejectMode?: boolean;
|
|
200
|
+
}
|
|
201
|
+
export interface ClaudeAgentSDKConfig {
|
|
202
|
+
/** Enable Claude Agent SDK provider */
|
|
203
|
+
enabled?: boolean;
|
|
204
|
+
/** API key (defaults to ANTHROPIC_API_KEY env var) */
|
|
205
|
+
apiKey?: string;
|
|
206
|
+
/** Model to use (defaults to claude-sonnet-4-20250514) */
|
|
207
|
+
model?: string;
|
|
208
|
+
/** Enable computer use capabilities */
|
|
209
|
+
computerUse?: boolean;
|
|
210
|
+
/** Enable extended thinking mode */
|
|
211
|
+
extendedThinking?: boolean;
|
|
212
|
+
}
|
|
213
|
+
export interface OpenCodeSDKConfig {
|
|
214
|
+
/** Enable OpenCode SDK provider */
|
|
215
|
+
enabled?: boolean;
|
|
216
|
+
/** Server URL (defaults to http://127.0.0.1:4096) */
|
|
217
|
+
serverUrl?: string;
|
|
218
|
+
/** Server port (alternative to full URL) */
|
|
219
|
+
port?: number;
|
|
220
|
+
/** Agent type to use */
|
|
221
|
+
agentType?: 'build' | 'plan' | 'general' | 'explore';
|
|
222
|
+
/** Model to use */
|
|
223
|
+
model?: string;
|
|
224
|
+
}
|
|
225
|
+
export interface ExternalAgentsConfig {
|
|
226
|
+
/** Claude Agent SDK configuration */
|
|
227
|
+
claudeAgent?: ClaudeAgentSDKConfig;
|
|
228
|
+
/** OpenCode SDK configuration */
|
|
229
|
+
openCode?: OpenCodeSDKConfig;
|
|
230
|
+
}
|
|
231
|
+
export interface LintRules {
|
|
232
|
+
/** Require acceptance scenarios for operations */
|
|
233
|
+
'require-acceptance'?: RuleSeverity;
|
|
234
|
+
/** Require examples for operations */
|
|
235
|
+
'require-examples'?: RuleSeverity;
|
|
236
|
+
/** Require stability field */
|
|
237
|
+
'require-stability'?: RuleSeverity;
|
|
238
|
+
/** Require owners to follow proper format (@team or Enum) */
|
|
239
|
+
'require-owners-format'?: RuleSeverity;
|
|
240
|
+
/** Require event names to use past tense */
|
|
241
|
+
'event-past-tense'?: RuleSeverity;
|
|
242
|
+
/** Warn on placeholder comments */
|
|
243
|
+
'no-todo'?: RuleSeverity;
|
|
244
|
+
/** Require workflow transitions */
|
|
245
|
+
'workflow-transitions'?: RuleSeverity;
|
|
246
|
+
/** Require privacy classification for telemetry */
|
|
247
|
+
'telemetry-privacy'?: RuleSeverity;
|
|
248
|
+
/** Require allocation config for experiments */
|
|
249
|
+
'experiment-allocation'?: RuleSeverity;
|
|
250
|
+
/** Require appId for app blueprints */
|
|
251
|
+
'app-config-appid'?: RuleSeverity;
|
|
252
|
+
/** Require capabilities for app blueprints */
|
|
253
|
+
'app-config-capabilities'?: RuleSeverity;
|
|
254
|
+
/** Require fields for data views */
|
|
255
|
+
'data-view-fields'?: RuleSeverity;
|
|
256
|
+
}
|
|
257
|
+
export interface TestLinkingConfig {
|
|
258
|
+
/** Strategy for linking tests to specs */
|
|
259
|
+
strategy?: TestLinkingStrategy;
|
|
260
|
+
/** Warn when tests only use naming convention (no TestSpec.target) */
|
|
261
|
+
warnOnConvention?: boolean;
|
|
262
|
+
}
|
|
263
|
+
export interface TestingConfig {
|
|
264
|
+
/** Test runner to use */
|
|
265
|
+
runner?: 'internal' | 'jest' | 'vitest' | 'bun';
|
|
266
|
+
/** Glob patterns for matching test files */
|
|
267
|
+
testMatch?: string[];
|
|
268
|
+
/** Enable automatic test generation */
|
|
269
|
+
autoGenerate?: boolean;
|
|
270
|
+
/** Integrity requirements for testing */
|
|
271
|
+
integrity?: {
|
|
272
|
+
/** Spec types that require test coverage */
|
|
273
|
+
requireTestsFor?: SpecKind[];
|
|
274
|
+
/** Minimum coverage percentage (if supported) */
|
|
275
|
+
minCoverage?: number;
|
|
276
|
+
};
|
|
277
|
+
/** Test linking configuration for contract-first test discovery */
|
|
278
|
+
testLinking?: TestLinkingConfig;
|
|
279
|
+
}
|
|
280
|
+
export interface RulesConfig {
|
|
281
|
+
/** Global default rule severities */
|
|
282
|
+
defaults?: LintRules;
|
|
283
|
+
/** Per-kind rule severity overrides */
|
|
284
|
+
overrides?: Partial<Record<SpecKind, LintRules>>;
|
|
285
|
+
}
|
|
286
|
+
export type HooksConfig = Record<string, string[]>;
|
|
287
|
+
/**
|
|
288
|
+
* Full ContractSpec configuration (.contractsrc.json).
|
|
289
|
+
* All fields are optional as they come from user configuration.
|
|
290
|
+
*/
|
|
291
|
+
export interface ContractsrcFileConfig {
|
|
292
|
+
aiProvider?: AgentProvider;
|
|
293
|
+
aiModel?: string;
|
|
294
|
+
agentMode?: AgentMode;
|
|
295
|
+
customEndpoint?: string | null;
|
|
296
|
+
customApiKey?: string | null;
|
|
297
|
+
outputDir?: string;
|
|
298
|
+
conventions?: FolderConventions;
|
|
299
|
+
defaultOwners?: string[];
|
|
300
|
+
defaultTags?: string[];
|
|
301
|
+
packages?: string[];
|
|
302
|
+
excludePackages?: string[];
|
|
303
|
+
recursive?: boolean;
|
|
304
|
+
openapi?: OpenApiConfig;
|
|
305
|
+
ci?: CiConfig;
|
|
306
|
+
metaRepo?: MetaRepoConfig;
|
|
307
|
+
rules?: RulesConfig;
|
|
308
|
+
testing?: TestingConfig;
|
|
309
|
+
hooks?: HooksConfig;
|
|
310
|
+
schemaFormat?: SchemaFormat;
|
|
311
|
+
formatter?: FormatterConfig;
|
|
312
|
+
versioning?: VersioningConfig;
|
|
313
|
+
ruleSync?: RuleSyncConfig;
|
|
314
|
+
externalAgents?: ExternalAgentsConfig;
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* Resolved configuration with guaranteed defaults.
|
|
318
|
+
* This is what the application uses at runtime.
|
|
319
|
+
*/
|
|
320
|
+
export interface ResolvedContractsrcConfig extends ContractsrcFileConfig {
|
|
321
|
+
aiProvider: 'claude' | 'openai' | 'ollama' | 'custom';
|
|
322
|
+
agentMode: 'simple' | 'cursor' | 'claude-code' | 'openai-codex' | 'claude-agent-sdk' | 'opencode' | 'opencode-sdk';
|
|
323
|
+
outputDir: string;
|
|
324
|
+
conventions: {
|
|
325
|
+
models: string;
|
|
326
|
+
operations: string;
|
|
327
|
+
events: string;
|
|
328
|
+
presentations: string;
|
|
329
|
+
forms: string;
|
|
330
|
+
groupByFeature: boolean;
|
|
331
|
+
operationsGrouping?: GroupingRule;
|
|
332
|
+
modelsGrouping?: GroupingRule;
|
|
333
|
+
eventsGrouping?: GroupingRule;
|
|
334
|
+
};
|
|
335
|
+
defaultOwners: string[];
|
|
336
|
+
defaultTags: string[];
|
|
337
|
+
schemaFormat: SchemaFormat;
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* @deprecated Use ContractsrcFileConfig for file inputs or ResolvedContractsrcConfig for app usage.
|
|
341
|
+
*/
|
|
342
|
+
export type ContractsrcConfig = ContractsrcFileConfig;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration module exports.
|
|
3
|
+
*/
|
|
4
|
+
export type { AgentMode, AgentProvider } from './contractsrc-types';
|
|
5
|
+
export { OpenApiSourceConfigSchema, OpenApiExportConfigSchema, OpenApiConfigSchema, FolderConventionsSchema, ContractsrcSchema, SchemaFormatSchema, FormatterTypeSchema, FormatterConfigSchema, BumpStrategySchema, ChangelogFormatSchema, ChangelogTierSchema, VersioningConfigSchema, RuleSyncTargetSchema, RuleSyncConfigSchema, DEFAULT_CONTRACTSRC, type OpenApiSourceConfig, type OpenApiExportConfig, type OpenApiConfig, type FolderConventions, type ContractsrcConfig, type SchemaFormat, type FormatterType, type FormatterConfig, type BumpStrategy, type ChangelogFormat, type ChangelogTier, type VersioningConfig, type RuleSyncTarget, type RuleSyncConfig, type ContractsrcFileConfig, type ResolvedContractsrcConfig, } from './contractsrc-schema';
|