@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,57 @@
|
|
|
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
|
+
|
|
32
|
+
// src/product-intent/tickets.ts
|
|
33
|
+
import { ZodSchemaType } from "@contractspec/lib.schema";
|
|
34
|
+
import * as z from "zod";
|
|
35
|
+
var TicketPrioritySchema = z.enum(["low", "medium", "high"]);
|
|
36
|
+
var TicketSchema = z.object({
|
|
37
|
+
ticketId: z.string().min(1),
|
|
38
|
+
title: z.string().min(1),
|
|
39
|
+
summary: z.string().min(1),
|
|
40
|
+
evidenceIds: z.array(z.string().min(1)).min(1),
|
|
41
|
+
acceptanceCriteria: z.array(z.string().min(1)).min(1),
|
|
42
|
+
priority: TicketPrioritySchema.optional(),
|
|
43
|
+
tags: z.array(z.string().min(1)).optional()
|
|
44
|
+
});
|
|
45
|
+
var TicketModel = new ZodSchemaType(TicketSchema, {
|
|
46
|
+
name: "Ticket"
|
|
47
|
+
});
|
|
48
|
+
var TicketCollectionSchema = z.object({
|
|
49
|
+
tickets: z.array(TicketSchema)
|
|
50
|
+
});
|
|
51
|
+
var TicketCollectionModel = new ZodSchemaType(TicketCollectionSchema, {
|
|
52
|
+
name: "TicketCollection"
|
|
53
|
+
});
|
|
54
|
+
export {
|
|
55
|
+
TicketModel,
|
|
56
|
+
TicketCollectionModel
|
|
57
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './evidence';
|
|
2
|
+
export * from './findings';
|
|
3
|
+
export * from './insights';
|
|
4
|
+
export * from './problems';
|
|
5
|
+
export * from './opportunity-brief';
|
|
6
|
+
export * from './contract-patch-intent';
|
|
7
|
+
export * from './contract-spec-patch';
|
|
8
|
+
export * from './impact-report';
|
|
9
|
+
export * from './task-pack';
|
|
10
|
+
export * from './tickets';
|
|
11
|
+
export * from './ui-wireframe';
|
|
@@ -0,0 +1,378 @@
|
|
|
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
|
+
|
|
32
|
+
// src/product-intent/contract-patch-intent.ts
|
|
33
|
+
import { ZodSchemaType } from "@contractspec/lib.schema";
|
|
34
|
+
import * as z from "zod";
|
|
35
|
+
var PatchChangeTypeSchema = z.enum([
|
|
36
|
+
"add_field",
|
|
37
|
+
"remove_field",
|
|
38
|
+
"rename_field",
|
|
39
|
+
"add_event",
|
|
40
|
+
"update_event",
|
|
41
|
+
"add_operation",
|
|
42
|
+
"update_operation",
|
|
43
|
+
"update_form",
|
|
44
|
+
"update_policy",
|
|
45
|
+
"add_enum_value",
|
|
46
|
+
"remove_enum_value",
|
|
47
|
+
"other"
|
|
48
|
+
]);
|
|
49
|
+
var PatchChangeSchema = z.object({
|
|
50
|
+
type: PatchChangeTypeSchema,
|
|
51
|
+
target: z.string().min(1),
|
|
52
|
+
detail: z.string().min(1)
|
|
53
|
+
});
|
|
54
|
+
var PatchChangeModel = new ZodSchemaType(PatchChangeSchema, {
|
|
55
|
+
name: "PatchChange"
|
|
56
|
+
});
|
|
57
|
+
var ContractPatchIntentSchema = z.object({
|
|
58
|
+
featureKey: z.string().min(1),
|
|
59
|
+
changes: z.array(PatchChangeSchema),
|
|
60
|
+
acceptanceCriteria: z.array(z.string().min(1))
|
|
61
|
+
});
|
|
62
|
+
var ContractPatchIntentModel = new ZodSchemaType(ContractPatchIntentSchema, {
|
|
63
|
+
name: "ContractPatchIntent"
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
// src/product-intent/contract-spec-patch.ts
|
|
67
|
+
import { ZodSchemaType as ZodSchemaType2 } from "@contractspec/lib.schema";
|
|
68
|
+
import * as z2 from "zod";
|
|
69
|
+
var ContractPatchAddSchema = z2.object({
|
|
70
|
+
path: z2.string().min(1),
|
|
71
|
+
value: z2.unknown()
|
|
72
|
+
});
|
|
73
|
+
var ContractPatchAddModel = new ZodSchemaType2(ContractPatchAddSchema, {
|
|
74
|
+
name: "ContractPatchAdd"
|
|
75
|
+
});
|
|
76
|
+
var ContractPatchUpdateSchema = z2.object({
|
|
77
|
+
path: z2.string().min(1),
|
|
78
|
+
value: z2.unknown()
|
|
79
|
+
});
|
|
80
|
+
var ContractPatchUpdateModel = new ZodSchemaType2(ContractPatchUpdateSchema, {
|
|
81
|
+
name: "ContractPatchUpdate"
|
|
82
|
+
});
|
|
83
|
+
var ContractPatchRemoveSchema = z2.object({
|
|
84
|
+
path: z2.string().min(1)
|
|
85
|
+
});
|
|
86
|
+
var ContractPatchRemoveModel = new ZodSchemaType2(ContractPatchRemoveSchema, {
|
|
87
|
+
name: "ContractPatchRemove"
|
|
88
|
+
});
|
|
89
|
+
var ContractSpecOverlaySchema = z2.object({
|
|
90
|
+
adds: z2.array(ContractPatchAddSchema).optional(),
|
|
91
|
+
updates: z2.array(ContractPatchUpdateSchema).optional(),
|
|
92
|
+
removes: z2.array(ContractPatchRemoveSchema).optional()
|
|
93
|
+
});
|
|
94
|
+
var ContractSpecOverlayModel = new ZodSchemaType2(ContractSpecOverlaySchema, {
|
|
95
|
+
name: "ContractSpecOverlay"
|
|
96
|
+
});
|
|
97
|
+
var ContractSpecPatchSchema = z2.object({
|
|
98
|
+
overlay: ContractSpecOverlaySchema
|
|
99
|
+
});
|
|
100
|
+
var ContractSpecPatchModel = new ZodSchemaType2(ContractSpecPatchSchema, {
|
|
101
|
+
name: "ContractSpecPatch"
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
// src/product-intent/evidence.ts
|
|
105
|
+
import { ZodSchemaType as ZodSchemaType3 } from "@contractspec/lib.schema";
|
|
106
|
+
import * as z3 from "zod";
|
|
107
|
+
var EvidenceChunkSchema = z3.object({
|
|
108
|
+
chunkId: z3.string().min(1),
|
|
109
|
+
text: z3.string().min(1),
|
|
110
|
+
meta: z3.record(z3.string(), z3.unknown()).optional()
|
|
111
|
+
});
|
|
112
|
+
var EvidenceChunkModel = new ZodSchemaType3(EvidenceChunkSchema, {
|
|
113
|
+
name: "EvidenceChunk"
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
// src/product-intent/insights.ts
|
|
117
|
+
import { ZodSchemaType as ZodSchemaType4 } from "@contractspec/lib.schema";
|
|
118
|
+
import * as z4 from "zod";
|
|
119
|
+
var CitationSchema = z4.object({
|
|
120
|
+
chunkId: z4.string().min(1),
|
|
121
|
+
quote: z4.string().min(1)
|
|
122
|
+
});
|
|
123
|
+
var CitationModel = new ZodSchemaType4(CitationSchema, {
|
|
124
|
+
name: "Citation"
|
|
125
|
+
});
|
|
126
|
+
var InsightSchema = z4.object({
|
|
127
|
+
insightId: z4.string().min(1),
|
|
128
|
+
claim: z4.string().min(1),
|
|
129
|
+
tags: z4.array(z4.string().min(1)).optional(),
|
|
130
|
+
segment: z4.string().min(1).optional(),
|
|
131
|
+
confidence: z4.number().min(0).max(1).optional(),
|
|
132
|
+
citations: z4.array(CitationSchema)
|
|
133
|
+
});
|
|
134
|
+
var InsightModel = new ZodSchemaType4(InsightSchema, {
|
|
135
|
+
name: "Insight"
|
|
136
|
+
});
|
|
137
|
+
var InsightExtractionSchema = z4.object({
|
|
138
|
+
insights: z4.array(InsightSchema)
|
|
139
|
+
});
|
|
140
|
+
var InsightExtractionModel = new ZodSchemaType4(InsightExtractionSchema, {
|
|
141
|
+
name: "InsightExtraction"
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
// src/product-intent/findings.ts
|
|
145
|
+
import { ZodSchemaType as ZodSchemaType5 } from "@contractspec/lib.schema";
|
|
146
|
+
import * as z5 from "zod";
|
|
147
|
+
var EvidenceFindingSchema = z5.object({
|
|
148
|
+
findingId: z5.string().min(1),
|
|
149
|
+
summary: z5.string().min(1),
|
|
150
|
+
tags: z5.array(z5.string().min(1)).optional(),
|
|
151
|
+
citations: z5.array(CitationModel.getZod()).min(1)
|
|
152
|
+
});
|
|
153
|
+
var EvidenceFindingModel = new ZodSchemaType5(EvidenceFindingSchema, {
|
|
154
|
+
name: "EvidenceFinding"
|
|
155
|
+
});
|
|
156
|
+
var EvidenceFindingExtractionSchema = z5.object({
|
|
157
|
+
findings: z5.array(EvidenceFindingSchema)
|
|
158
|
+
});
|
|
159
|
+
var EvidenceFindingExtractionModel = new ZodSchemaType5(EvidenceFindingExtractionSchema, {
|
|
160
|
+
name: "EvidenceFindingExtraction"
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
// src/product-intent/impact-report.ts
|
|
164
|
+
import { ZodSchemaType as ZodSchemaType6 } from "@contractspec/lib.schema";
|
|
165
|
+
import * as z6 from "zod";
|
|
166
|
+
var ImpactSurfacesSchema = z6.object({
|
|
167
|
+
api: z6.array(z6.string().min(1)).optional(),
|
|
168
|
+
db: z6.array(z6.string().min(1)).optional(),
|
|
169
|
+
ui: z6.array(z6.string().min(1)).optional(),
|
|
170
|
+
workflows: z6.array(z6.string().min(1)).optional(),
|
|
171
|
+
policy: z6.array(z6.string().min(1)).optional(),
|
|
172
|
+
docs: z6.array(z6.string().min(1)).optional(),
|
|
173
|
+
tests: z6.array(z6.string().min(1)).optional()
|
|
174
|
+
});
|
|
175
|
+
var ImpactSurfacesModel = new ZodSchemaType6(ImpactSurfacesSchema, {
|
|
176
|
+
name: "ImpactSurfaces"
|
|
177
|
+
});
|
|
178
|
+
var ImpactReportSchema = z6.object({
|
|
179
|
+
reportId: z6.string().min(1),
|
|
180
|
+
patchId: z6.string().min(1),
|
|
181
|
+
summary: z6.string().min(1),
|
|
182
|
+
breaks: z6.array(z6.string().min(1)).optional(),
|
|
183
|
+
mustChange: z6.array(z6.string().min(1)).optional(),
|
|
184
|
+
risky: z6.array(z6.string().min(1)).optional(),
|
|
185
|
+
surfaces: ImpactSurfacesSchema
|
|
186
|
+
});
|
|
187
|
+
var ImpactReportModel = new ZodSchemaType6(ImpactReportSchema, {
|
|
188
|
+
name: "ImpactReport"
|
|
189
|
+
});
|
|
190
|
+
|
|
191
|
+
// src/product-intent/problems.ts
|
|
192
|
+
import { ZodSchemaType as ZodSchemaType7 } from "@contractspec/lib.schema";
|
|
193
|
+
import * as z7 from "zod";
|
|
194
|
+
var ProblemSeveritySchema = z7.enum(["low", "medium", "high"]);
|
|
195
|
+
var ProblemStatementSchema = z7.object({
|
|
196
|
+
problemId: z7.string().min(1),
|
|
197
|
+
statement: z7.string().min(1),
|
|
198
|
+
evidenceIds: z7.array(z7.string().min(1)).min(1),
|
|
199
|
+
tags: z7.array(z7.string().min(1)).optional(),
|
|
200
|
+
severity: ProblemSeveritySchema.optional()
|
|
201
|
+
});
|
|
202
|
+
var ProblemStatementModel = new ZodSchemaType7(ProblemStatementSchema, {
|
|
203
|
+
name: "ProblemStatement"
|
|
204
|
+
});
|
|
205
|
+
var ProblemGroupingSchema = z7.object({
|
|
206
|
+
problems: z7.array(ProblemStatementSchema)
|
|
207
|
+
});
|
|
208
|
+
var ProblemGroupingModel = new ZodSchemaType7(ProblemGroupingSchema, {
|
|
209
|
+
name: "ProblemGrouping"
|
|
210
|
+
});
|
|
211
|
+
|
|
212
|
+
// src/product-intent/opportunity-brief.ts
|
|
213
|
+
import { ZodSchemaType as ZodSchemaType8 } from "@contractspec/lib.schema";
|
|
214
|
+
import * as z8 from "zod";
|
|
215
|
+
var ImpactDirectionSchema = z8.enum(["up", "down"]);
|
|
216
|
+
var OpportunityConfidenceSchema = z8.enum(["low", "medium", "high"]);
|
|
217
|
+
var CitedTextBlockSchema = z8.object({
|
|
218
|
+
text: z8.string().min(1),
|
|
219
|
+
citations: z8.array(CitationModel.getZod())
|
|
220
|
+
});
|
|
221
|
+
var CitedTextBlockModel = new ZodSchemaType8(CitedTextBlockSchema, {
|
|
222
|
+
name: "CitedTextBlock"
|
|
223
|
+
});
|
|
224
|
+
var RiskSchema = z8.object({
|
|
225
|
+
text: z8.string().min(1),
|
|
226
|
+
citations: z8.array(CitationModel.getZod()).optional()
|
|
227
|
+
});
|
|
228
|
+
var RiskModel = new ZodSchemaType8(RiskSchema, {
|
|
229
|
+
name: "Risk"
|
|
230
|
+
});
|
|
231
|
+
var ExpectedImpactSchema = z8.object({
|
|
232
|
+
metric: z8.string().min(1),
|
|
233
|
+
direction: ImpactDirectionSchema,
|
|
234
|
+
magnitudeHint: z8.string().min(1).optional(),
|
|
235
|
+
timeframeHint: z8.string().min(1).optional()
|
|
236
|
+
});
|
|
237
|
+
var ExpectedImpactModel = new ZodSchemaType8(ExpectedImpactSchema, {
|
|
238
|
+
name: "ExpectedImpact"
|
|
239
|
+
});
|
|
240
|
+
var OpportunityBriefSchema = z8.object({
|
|
241
|
+
opportunityId: z8.string().min(1),
|
|
242
|
+
title: z8.string().min(1),
|
|
243
|
+
problem: CitedTextBlockSchema,
|
|
244
|
+
who: CitedTextBlockSchema,
|
|
245
|
+
proposedChange: CitedTextBlockSchema,
|
|
246
|
+
expectedImpact: ExpectedImpactSchema,
|
|
247
|
+
confidence: OpportunityConfidenceSchema,
|
|
248
|
+
risks: z8.array(RiskSchema).optional()
|
|
249
|
+
});
|
|
250
|
+
var OpportunityBriefModel = new ZodSchemaType8(OpportunityBriefSchema, {
|
|
251
|
+
name: "OpportunityBrief"
|
|
252
|
+
});
|
|
253
|
+
|
|
254
|
+
// src/product-intent/task-pack.ts
|
|
255
|
+
import { ZodSchemaType as ZodSchemaType9 } from "@contractspec/lib.schema";
|
|
256
|
+
import * as z9 from "zod";
|
|
257
|
+
var TaskSurfaceSchema = z9.enum([
|
|
258
|
+
"api",
|
|
259
|
+
"db",
|
|
260
|
+
"ui",
|
|
261
|
+
"workflows",
|
|
262
|
+
"policy",
|
|
263
|
+
"docs",
|
|
264
|
+
"tests",
|
|
265
|
+
"other"
|
|
266
|
+
]);
|
|
267
|
+
var TaskSchema = z9.object({
|
|
268
|
+
id: z9.string().min(1),
|
|
269
|
+
title: z9.string().min(1),
|
|
270
|
+
surface: z9.array(TaskSurfaceSchema),
|
|
271
|
+
why: z9.string().min(1),
|
|
272
|
+
acceptance: z9.array(z9.string().min(1)),
|
|
273
|
+
agentPrompt: z9.string().min(1),
|
|
274
|
+
dependsOn: z9.array(z9.string().min(1)).optional()
|
|
275
|
+
});
|
|
276
|
+
var TaskModel = new ZodSchemaType9(TaskSchema, {
|
|
277
|
+
name: "Task"
|
|
278
|
+
});
|
|
279
|
+
var TaskPackSchema = z9.object({
|
|
280
|
+
packId: z9.string().min(1),
|
|
281
|
+
patchId: z9.string().min(1),
|
|
282
|
+
overview: z9.string().min(1),
|
|
283
|
+
tasks: z9.array(TaskSchema)
|
|
284
|
+
});
|
|
285
|
+
var TaskPackModel = new ZodSchemaType9(TaskPackSchema, {
|
|
286
|
+
name: "TaskPack"
|
|
287
|
+
});
|
|
288
|
+
|
|
289
|
+
// src/product-intent/tickets.ts
|
|
290
|
+
import { ZodSchemaType as ZodSchemaType10 } from "@contractspec/lib.schema";
|
|
291
|
+
import * as z10 from "zod";
|
|
292
|
+
var TicketPrioritySchema = z10.enum(["low", "medium", "high"]);
|
|
293
|
+
var TicketSchema = z10.object({
|
|
294
|
+
ticketId: z10.string().min(1),
|
|
295
|
+
title: z10.string().min(1),
|
|
296
|
+
summary: z10.string().min(1),
|
|
297
|
+
evidenceIds: z10.array(z10.string().min(1)).min(1),
|
|
298
|
+
acceptanceCriteria: z10.array(z10.string().min(1)).min(1),
|
|
299
|
+
priority: TicketPrioritySchema.optional(),
|
|
300
|
+
tags: z10.array(z10.string().min(1)).optional()
|
|
301
|
+
});
|
|
302
|
+
var TicketModel = new ZodSchemaType10(TicketSchema, {
|
|
303
|
+
name: "Ticket"
|
|
304
|
+
});
|
|
305
|
+
var TicketCollectionSchema = z10.object({
|
|
306
|
+
tickets: z10.array(TicketSchema)
|
|
307
|
+
});
|
|
308
|
+
var TicketCollectionModel = new ZodSchemaType10(TicketCollectionSchema, {
|
|
309
|
+
name: "TicketCollection"
|
|
310
|
+
});
|
|
311
|
+
|
|
312
|
+
// src/product-intent/ui-wireframe.ts
|
|
313
|
+
import { ZodSchemaType as ZodSchemaType11 } from "@contractspec/lib.schema";
|
|
314
|
+
import * as z11 from "zod";
|
|
315
|
+
var WireframeDeviceSchema = z11.enum(["mobile", "desktop"]);
|
|
316
|
+
var WireframeElementTypeSchema = z11.enum([
|
|
317
|
+
"header",
|
|
318
|
+
"text",
|
|
319
|
+
"input",
|
|
320
|
+
"button",
|
|
321
|
+
"list",
|
|
322
|
+
"card",
|
|
323
|
+
"divider",
|
|
324
|
+
"progress"
|
|
325
|
+
]);
|
|
326
|
+
var UiWireframeRequestSchema = z11.object({
|
|
327
|
+
screenName: z11.string().min(1),
|
|
328
|
+
device: WireframeDeviceSchema,
|
|
329
|
+
currentScreenSummary: z11.string().min(1),
|
|
330
|
+
proposedChanges: z11.array(z11.string().min(1))
|
|
331
|
+
});
|
|
332
|
+
var UiWireframeRequestModel = new ZodSchemaType11(UiWireframeRequestSchema, {
|
|
333
|
+
name: "UiWireframeRequest"
|
|
334
|
+
});
|
|
335
|
+
var UiWireframeElementSchema = z11.object({
|
|
336
|
+
type: WireframeElementTypeSchema,
|
|
337
|
+
label: z11.string().min(1),
|
|
338
|
+
notes: z11.string().min(1).optional()
|
|
339
|
+
});
|
|
340
|
+
var UiWireframeElementModel = new ZodSchemaType11(UiWireframeElementSchema, {
|
|
341
|
+
name: "UiWireframeElement"
|
|
342
|
+
});
|
|
343
|
+
var UiWireframeLayoutSchema = z11.object({
|
|
344
|
+
layout: z11.array(UiWireframeElementSchema)
|
|
345
|
+
});
|
|
346
|
+
var UiWireframeLayoutModel = new ZodSchemaType11(UiWireframeLayoutSchema, {
|
|
347
|
+
name: "UiWireframeLayout"
|
|
348
|
+
});
|
|
349
|
+
export {
|
|
350
|
+
UiWireframeRequestModel,
|
|
351
|
+
UiWireframeLayoutModel,
|
|
352
|
+
UiWireframeElementModel,
|
|
353
|
+
TicketModel,
|
|
354
|
+
TicketCollectionModel,
|
|
355
|
+
TaskPackModel,
|
|
356
|
+
TaskModel,
|
|
357
|
+
RiskModel,
|
|
358
|
+
ProblemStatementModel,
|
|
359
|
+
ProblemGroupingModel,
|
|
360
|
+
PatchChangeModel,
|
|
361
|
+
OpportunityBriefModel,
|
|
362
|
+
InsightModel,
|
|
363
|
+
InsightExtractionModel,
|
|
364
|
+
ImpactSurfacesModel,
|
|
365
|
+
ImpactReportModel,
|
|
366
|
+
ExpectedImpactModel,
|
|
367
|
+
EvidenceFindingModel,
|
|
368
|
+
EvidenceFindingExtractionModel,
|
|
369
|
+
EvidenceChunkModel,
|
|
370
|
+
ContractSpecPatchModel,
|
|
371
|
+
ContractSpecOverlayModel,
|
|
372
|
+
ContractPatchUpdateModel,
|
|
373
|
+
ContractPatchRemoveModel,
|
|
374
|
+
ContractPatchIntentModel,
|
|
375
|
+
ContractPatchAddModel,
|
|
376
|
+
CitedTextBlockModel,
|
|
377
|
+
CitationModel
|
|
378
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { ZodSchemaType } from '@contractspec/lib.schema';
|
|
2
|
+
import * as z from 'zod';
|
|
3
|
+
declare const WireframeDeviceSchema: z.ZodEnum<{
|
|
4
|
+
mobile: "mobile";
|
|
5
|
+
desktop: "desktop";
|
|
6
|
+
}>;
|
|
7
|
+
export type WireframeDevice = z.infer<typeof WireframeDeviceSchema>;
|
|
8
|
+
declare const WireframeElementTypeSchema: z.ZodEnum<{
|
|
9
|
+
list: "list";
|
|
10
|
+
text: "text";
|
|
11
|
+
card: "card";
|
|
12
|
+
input: "input";
|
|
13
|
+
button: "button";
|
|
14
|
+
header: "header";
|
|
15
|
+
progress: "progress";
|
|
16
|
+
divider: "divider";
|
|
17
|
+
}>;
|
|
18
|
+
export type WireframeElementType = z.infer<typeof WireframeElementTypeSchema>;
|
|
19
|
+
declare const UiWireframeRequestSchema: z.ZodObject<{
|
|
20
|
+
screenName: z.ZodString;
|
|
21
|
+
device: z.ZodEnum<{
|
|
22
|
+
mobile: "mobile";
|
|
23
|
+
desktop: "desktop";
|
|
24
|
+
}>;
|
|
25
|
+
currentScreenSummary: z.ZodString;
|
|
26
|
+
proposedChanges: z.ZodArray<z.ZodString>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export declare const UiWireframeRequestModel: ZodSchemaType<z.ZodObject<{
|
|
29
|
+
screenName: z.ZodString;
|
|
30
|
+
device: z.ZodEnum<{
|
|
31
|
+
mobile: "mobile";
|
|
32
|
+
desktop: "desktop";
|
|
33
|
+
}>;
|
|
34
|
+
currentScreenSummary: z.ZodString;
|
|
35
|
+
proposedChanges: z.ZodArray<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
export type UiWireframeRequest = z.infer<typeof UiWireframeRequestSchema>;
|
|
38
|
+
declare const UiWireframeElementSchema: z.ZodObject<{
|
|
39
|
+
type: z.ZodEnum<{
|
|
40
|
+
list: "list";
|
|
41
|
+
text: "text";
|
|
42
|
+
card: "card";
|
|
43
|
+
input: "input";
|
|
44
|
+
button: "button";
|
|
45
|
+
header: "header";
|
|
46
|
+
progress: "progress";
|
|
47
|
+
divider: "divider";
|
|
48
|
+
}>;
|
|
49
|
+
label: z.ZodString;
|
|
50
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
export declare const UiWireframeElementModel: ZodSchemaType<z.ZodObject<{
|
|
53
|
+
type: z.ZodEnum<{
|
|
54
|
+
list: "list";
|
|
55
|
+
text: "text";
|
|
56
|
+
card: "card";
|
|
57
|
+
input: "input";
|
|
58
|
+
button: "button";
|
|
59
|
+
header: "header";
|
|
60
|
+
progress: "progress";
|
|
61
|
+
divider: "divider";
|
|
62
|
+
}>;
|
|
63
|
+
label: z.ZodString;
|
|
64
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
export type UiWireframeElement = z.infer<typeof UiWireframeElementSchema>;
|
|
67
|
+
declare const UiWireframeLayoutSchema: z.ZodObject<{
|
|
68
|
+
layout: z.ZodArray<z.ZodObject<{
|
|
69
|
+
type: z.ZodEnum<{
|
|
70
|
+
list: "list";
|
|
71
|
+
text: "text";
|
|
72
|
+
card: "card";
|
|
73
|
+
input: "input";
|
|
74
|
+
button: "button";
|
|
75
|
+
header: "header";
|
|
76
|
+
progress: "progress";
|
|
77
|
+
divider: "divider";
|
|
78
|
+
}>;
|
|
79
|
+
label: z.ZodString;
|
|
80
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
81
|
+
}, z.core.$strip>>;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
export declare const UiWireframeLayoutModel: ZodSchemaType<z.ZodObject<{
|
|
84
|
+
layout: z.ZodArray<z.ZodObject<{
|
|
85
|
+
type: z.ZodEnum<{
|
|
86
|
+
list: "list";
|
|
87
|
+
text: "text";
|
|
88
|
+
card: "card";
|
|
89
|
+
input: "input";
|
|
90
|
+
button: "button";
|
|
91
|
+
header: "header";
|
|
92
|
+
progress: "progress";
|
|
93
|
+
divider: "divider";
|
|
94
|
+
}>;
|
|
95
|
+
label: z.ZodString;
|
|
96
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
}, z.core.$strip>>;
|
|
99
|
+
export type UiWireframeLayout = z.infer<typeof UiWireframeLayoutSchema>;
|
|
100
|
+
export {};
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
|
|
32
|
+
// src/product-intent/ui-wireframe.ts
|
|
33
|
+
import { ZodSchemaType } from "@contractspec/lib.schema";
|
|
34
|
+
import * as z from "zod";
|
|
35
|
+
var WireframeDeviceSchema = z.enum(["mobile", "desktop"]);
|
|
36
|
+
var WireframeElementTypeSchema = z.enum([
|
|
37
|
+
"header",
|
|
38
|
+
"text",
|
|
39
|
+
"input",
|
|
40
|
+
"button",
|
|
41
|
+
"list",
|
|
42
|
+
"card",
|
|
43
|
+
"divider",
|
|
44
|
+
"progress"
|
|
45
|
+
]);
|
|
46
|
+
var UiWireframeRequestSchema = z.object({
|
|
47
|
+
screenName: z.string().min(1),
|
|
48
|
+
device: WireframeDeviceSchema,
|
|
49
|
+
currentScreenSummary: z.string().min(1),
|
|
50
|
+
proposedChanges: z.array(z.string().min(1))
|
|
51
|
+
});
|
|
52
|
+
var UiWireframeRequestModel = new ZodSchemaType(UiWireframeRequestSchema, {
|
|
53
|
+
name: "UiWireframeRequest"
|
|
54
|
+
});
|
|
55
|
+
var UiWireframeElementSchema = z.object({
|
|
56
|
+
type: WireframeElementTypeSchema,
|
|
57
|
+
label: z.string().min(1),
|
|
58
|
+
notes: z.string().min(1).optional()
|
|
59
|
+
});
|
|
60
|
+
var UiWireframeElementModel = new ZodSchemaType(UiWireframeElementSchema, {
|
|
61
|
+
name: "UiWireframeElement"
|
|
62
|
+
});
|
|
63
|
+
var UiWireframeLayoutSchema = z.object({
|
|
64
|
+
layout: z.array(UiWireframeElementSchema)
|
|
65
|
+
});
|
|
66
|
+
var UiWireframeLayoutModel = new ZodSchemaType(UiWireframeLayoutSchema, {
|
|
67
|
+
name: "UiWireframeLayout"
|
|
68
|
+
});
|
|
69
|
+
export {
|
|
70
|
+
UiWireframeRequestModel,
|
|
71
|
+
UiWireframeLayoutModel,
|
|
72
|
+
UiWireframeElementModel
|
|
73
|
+
};
|
package/dist/prompt.d.ts
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
import { type OwnerShipMeta } from './ownership';
|
|
3
|
+
export type PromptStability = 'experimental' | 'beta' | 'stable' | 'deprecated';
|
|
4
|
+
/** Parameter definition for a prompt argument. */
|
|
5
|
+
export interface PromptArg {
|
|
6
|
+
name: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
schema: z.ZodType;
|
|
10
|
+
completeWith?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Rendered content part for a prompt. Clients (MCP) can fetch referenced resources.
|
|
14
|
+
*/
|
|
15
|
+
export type PromptContentPart = {
|
|
16
|
+
type: 'text';
|
|
17
|
+
text: string;
|
|
18
|
+
} | {
|
|
19
|
+
type: 'resource';
|
|
20
|
+
uri: string;
|
|
21
|
+
title?: string;
|
|
22
|
+
};
|
|
23
|
+
/** Prompt metadata for discoverability and governance. */
|
|
24
|
+
export type PromptMeta = OwnerShipMeta;
|
|
25
|
+
/** Policy constraints for prompts (flags, PII paths, rate limits). */
|
|
26
|
+
export interface PromptPolicy {
|
|
27
|
+
flags?: string[];
|
|
28
|
+
pii?: string[];
|
|
29
|
+
rateLimit?: {
|
|
30
|
+
rpm: number;
|
|
31
|
+
key: 'user' | 'org' | 'global';
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/** Full prompt specification including args schema and render function. */
|
|
35
|
+
export interface PromptSpec<I extends z.ZodType> {
|
|
36
|
+
meta: PromptMeta;
|
|
37
|
+
args: PromptArg[];
|
|
38
|
+
input: I;
|
|
39
|
+
policy?: PromptPolicy;
|
|
40
|
+
/** Render MCP-friendly content parts. DO NOT perform side effects here. */
|
|
41
|
+
render: (args: z.infer<I>, ctx: {
|
|
42
|
+
userId?: string | null;
|
|
43
|
+
orgId?: string | null;
|
|
44
|
+
locale?: string;
|
|
45
|
+
link: (template: string, vars: Record<string, string | number>) => string;
|
|
46
|
+
}) => Promise<PromptContentPart[]>;
|
|
47
|
+
}
|
|
48
|
+
/** Identity helper that preserves generic inference when declaring prompts. */
|
|
49
|
+
export declare function definePrompt<I extends z.ZodType>(spec: PromptSpec<I>): PromptSpec<I>;
|