@contractspec/lib.contracts 0.0.0-canary-20260113162409
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/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/_virtual/rolldown_runtime.js +37 -0
- package/dist/app-config/app-config.capability.d.ts +7 -0
- package/dist/app-config/app-config.capability.js +23 -0
- package/dist/app-config/app-config.feature.d.ts +11 -0
- package/dist/app-config/app-config.feature.js +61 -0
- package/dist/app-config/branding.d.ts +55 -0
- package/dist/app-config/branding.js +0 -0
- package/dist/app-config/contracts.d.ts +245 -0
- package/dist/app-config/contracts.js +395 -0
- package/dist/app-config/docs/app-config.docblock.d.ts +6 -0
- package/dist/app-config/docs/app-config.docblock.js +21 -0
- package/dist/app-config/events.d.ts +122 -0
- package/dist/app-config/events.js +174 -0
- package/dist/app-config/index.d.ts +10 -0
- package/dist/app-config/index.js +9 -0
- package/dist/app-config/lifecycle-contracts.d.ts +273 -0
- package/dist/app-config/lifecycle-contracts.js +440 -0
- package/dist/app-config/lifecycle.d.ts +27 -0
- package/dist/app-config/lifecycle.js +0 -0
- package/dist/app-config/runtime.d.ts +120 -0
- package/dist/app-config/runtime.js +617 -0
- package/dist/app-config/spec.d.ts +175 -0
- package/dist/app-config/spec.js +19 -0
- package/dist/app-config/validation.d.ts +49 -0
- package/dist/app-config/validation.js +538 -0
- package/dist/capabilities/capabilities.d.ts +41 -0
- package/dist/capabilities/capabilities.js +48 -0
- package/dist/capabilities/docs/capabilities.docblock.d.ts +6 -0
- package/dist/capabilities/docs/capabilities.docblock.js +21 -0
- package/dist/capabilities/index.d.ts +3 -0
- package/dist/capabilities/index.js +4 -0
- package/dist/capabilities/openbanking.d.ts +10 -0
- package/dist/capabilities/openbanking.js +92 -0
- package/dist/client/index.d.ts +6 -0
- package/dist/client/index.js +9 -0
- package/dist/client/react/drivers/rn-reusables.d.ts +22 -0
- package/dist/client/react/drivers/rn-reusables.js +21 -0
- package/dist/client/react/drivers/shadcn.d.ts +12 -0
- package/dist/client/react/drivers/shadcn.js +11 -0
- package/dist/client/react/feature-render.d.ts +23 -0
- package/dist/client/react/feature-render.js +44 -0
- package/dist/client/react/form-render.d.ts +92 -0
- package/dist/client/react/form-render.js +301 -0
- package/dist/client/react/index.d.ts +5 -0
- package/dist/client/react/index.js +8 -0
- package/dist/contract-registry/index.d.ts +3 -0
- package/dist/contract-registry/index.js +3 -0
- package/dist/contract-registry/schemas.d.ts +124 -0
- package/dist/contract-registry/schemas.js +61 -0
- package/dist/contract-registry/types.d.ts +46 -0
- package/dist/contract-registry/types.js +0 -0
- package/dist/data-views/data-views.d.ts +5 -0
- package/dist/data-views/data-views.js +5 -0
- package/dist/data-views/docs/data-views.docblock.d.ts +6 -0
- package/dist/data-views/docs/data-views.docblock.js +21 -0
- package/dist/data-views/index.d.ts +4 -0
- package/dist/data-views/index.js +4 -0
- package/dist/data-views/query-generator.d.ts +40 -0
- package/dist/data-views/query-generator.js +48 -0
- package/dist/data-views/registry.d.ts +17 -0
- package/dist/data-views/registry.js +20 -0
- package/dist/data-views/runtime.d.ts +32 -0
- package/dist/data-views/runtime.js +68 -0
- package/dist/data-views/spec.d.ts +32 -0
- package/dist/data-views/spec.js +10 -0
- package/dist/data-views/types.d.ts +157 -0
- package/dist/data-views/types.js +0 -0
- package/dist/docs/accessibility_wcag_compliance_specs.docblock.d.ts +6 -0
- package/dist/docs/accessibility_wcag_compliance_specs.docblock.js +17 -0
- package/dist/docs/index.d.ts +6 -0
- package/dist/docs/index.js +30 -0
- package/dist/docs/meta.docs.d.ts +6 -0
- package/dist/docs/meta.docs.js +29 -0
- package/dist/docs/presentations.d.ts +31 -0
- package/dist/docs/presentations.js +57 -0
- package/dist/docs/registry.d.ts +23 -0
- package/dist/docs/registry.js +51 -0
- package/dist/docs/tech/auth/better-auth-nextjs.docblock.d.ts +6 -0
- package/dist/docs/tech/auth/better-auth-nextjs.docblock.js +81 -0
- package/dist/docs/tech/cli.docblock.d.ts +6 -0
- package/dist/docs/tech/cli.docblock.js +138 -0
- package/dist/docs/tech/contracts/README.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/README.docblock.js +21 -0
- package/dist/docs/tech/contracts/migrations.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/migrations.docblock.js +21 -0
- package/dist/docs/tech/contracts/openapi-export.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/openapi-export.docblock.js +58 -0
- package/dist/docs/tech/contracts/openapi-import.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/openapi-import.docblock.js +65 -0
- package/dist/docs/tech/contracts/ops-to-presentation-linking.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/ops-to-presentation-linking.docblock.js +21 -0
- package/dist/docs/tech/contracts/overlays.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/overlays.docblock.js +21 -0
- package/dist/docs/tech/contracts/tests.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/tests.docblock.js +21 -0
- package/dist/docs/tech/contracts/themes.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/themes.docblock.js +21 -0
- package/dist/docs/tech/contracts/vertical-pocket-family-office.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/vertical-pocket-family-office.docblock.js +126 -0
- package/dist/docs/tech/lifecycle-stage-system.docblock.d.ts +6 -0
- package/dist/docs/tech/lifecycle-stage-system.docblock.js +17 -0
- package/dist/docs/tech/llm/llm-integration.docblock.d.ts +7 -0
- package/dist/docs/tech/llm/llm-integration.docblock.js +358 -0
- package/dist/docs/tech/mcp-endpoints.docblock.d.ts +6 -0
- package/dist/docs/tech/mcp-endpoints.docblock.js +38 -0
- package/dist/docs/tech/presentation-runtime.docblock.d.ts +6 -0
- package/dist/docs/tech/presentation-runtime.docblock.js +17 -0
- package/dist/docs/tech/schema/README.docblock.d.ts +6 -0
- package/dist/docs/tech/schema/README.docblock.js +21 -0
- package/dist/docs/tech/studio/learning-events.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/learning-events.docblock.js +49 -0
- package/dist/docs/tech/studio/learning-journeys.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/learning-journeys.docblock.js +80 -0
- package/dist/docs/tech/studio/platform-admin-panel.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/platform-admin-panel.docblock.js +85 -0
- package/dist/docs/tech/studio/project-access-teams.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/project-access-teams.docblock.js +48 -0
- package/dist/docs/tech/studio/project-routing.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/project-routing.docblock.js +68 -0
- package/dist/docs/tech/studio/sandbox-unlogged.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/sandbox-unlogged.docblock.js +41 -0
- package/dist/docs/tech/studio/team-invitations.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/team-invitations.docblock.js +70 -0
- package/dist/docs/tech/studio/workspace-ops.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/workspace-ops.docblock.js +48 -0
- package/dist/docs/tech/studio/workspaces.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/workspaces.docblock.js +63 -0
- package/dist/docs/tech/telemetry-ingest.docblock.d.ts +6 -0
- package/dist/docs/tech/telemetry-ingest.docblock.js +156 -0
- package/dist/docs/tech/vscode-extension.docblock.d.ts +6 -0
- package/dist/docs/tech/vscode-extension.docblock.js +102 -0
- package/dist/docs/tech-contracts.docs.d.ts +6 -0
- package/dist/docs/tech-contracts.docs.js +96 -0
- package/dist/docs/types.d.ts +41 -0
- package/dist/docs/types.js +0 -0
- package/dist/events.d.ts +47 -0
- package/dist/events.js +19 -0
- package/dist/examples/docs/examples.docblock.d.ts +6 -0
- package/dist/examples/docs/examples.docblock.js +165 -0
- package/dist/examples/index.d.ts +13 -0
- package/dist/examples/index.js +13 -0
- package/dist/examples/registry.d.ts +43 -0
- package/dist/examples/registry.js +88 -0
- package/dist/examples/schema.d.ts +282 -0
- package/dist/examples/schema.js +125 -0
- package/dist/examples/types.d.ts +167 -0
- package/dist/examples/types.js +43 -0
- package/dist/examples/validation.d.ts +65 -0
- package/dist/examples/validation.js +144 -0
- package/dist/experiments/docs/experiments.docblock.d.ts +6 -0
- package/dist/experiments/docs/experiments.docblock.js +21 -0
- package/dist/experiments/evaluator.d.ts +37 -0
- package/dist/experiments/evaluator.js +101 -0
- package/dist/experiments/spec-resolver.d.ts +17 -0
- package/dist/experiments/spec-resolver.js +0 -0
- package/dist/experiments/spec.d.ts +80 -0
- package/dist/experiments/spec.js +15 -0
- package/dist/features/index.d.ts +13 -0
- package/dist/features/index.js +12 -0
- package/dist/features/install.d.ts +22 -0
- package/dist/features/install.js +36 -0
- package/dist/features/registry.d.ts +26 -0
- package/dist/features/registry.js +49 -0
- package/dist/features/types.d.ts +88 -0
- package/dist/features/types.js +0 -0
- package/dist/features/validation.d.ts +8 -0
- package/dist/features/validation.js +14 -0
- package/dist/forms/docs/forms.docblock.d.ts +6 -0
- package/dist/forms/docs/forms.docblock.js +21 -0
- package/dist/forms/forms.d.ts +266 -0
- package/dist/forms/forms.js +143 -0
- package/dist/forms/index.d.ts +2 -0
- package/dist/forms/index.js +3 -0
- package/dist/index.d.ts +154 -0
- package/dist/index.js +132 -0
- package/dist/install.d.ts +77 -0
- package/dist/install.js +40 -0
- package/dist/integrations/binding.d.ts +17 -0
- package/dist/integrations/binding.js +0 -0
- package/dist/integrations/connection.d.ts +51 -0
- package/dist/integrations/connection.js +0 -0
- package/dist/integrations/docs/integrations.docblock.d.ts +6 -0
- package/dist/integrations/docs/integrations.docblock.js +94 -0
- package/dist/integrations/health.d.ts +21 -0
- package/dist/integrations/health.js +69 -0
- package/dist/integrations/index.d.ts +34 -0
- package/dist/integrations/index.js +23 -0
- package/dist/integrations/integrations.capability.d.ts +7 -0
- package/dist/integrations/integrations.capability.js +17 -0
- package/dist/integrations/integrations.feature.d.ts +11 -0
- package/dist/integrations/integrations.feature.js +67 -0
- package/dist/integrations/openbanking/contracts/accounts.d.ts +289 -0
- package/dist/integrations/openbanking/contracts/accounts.js +236 -0
- package/dist/integrations/openbanking/contracts/balances.d.ts +165 -0
- package/dist/integrations/openbanking/contracts/balances.js +166 -0
- package/dist/integrations/openbanking/contracts/index.d.ts +10 -0
- package/dist/integrations/openbanking/contracts/index.js +12 -0
- package/dist/integrations/openbanking/contracts/transactions.d.ts +213 -0
- package/dist/integrations/openbanking/contracts/transactions.js +217 -0
- package/dist/integrations/openbanking/guards.d.ts +12 -0
- package/dist/integrations/openbanking/guards.js +33 -0
- package/dist/integrations/openbanking/models.d.ts +228 -0
- package/dist/integrations/openbanking/models.js +240 -0
- package/dist/integrations/openbanking/openbanking.capability.d.ts +7 -0
- package/dist/integrations/openbanking/openbanking.capability.js +21 -0
- package/dist/integrations/openbanking/openbanking.feature.d.ts +11 -0
- package/dist/integrations/openbanking/openbanking.feature.js +76 -0
- package/dist/integrations/openbanking/telemetry.d.ts +15 -0
- package/dist/integrations/openbanking/telemetry.js +39 -0
- package/dist/integrations/operations.d.ts +437 -0
- package/dist/integrations/operations.js +392 -0
- package/dist/integrations/providers/calendar.d.ts +78 -0
- package/dist/integrations/providers/calendar.js +0 -0
- package/dist/integrations/providers/elevenlabs.d.ts +8 -0
- package/dist/integrations/providers/elevenlabs.js +56 -0
- package/dist/integrations/providers/email.d.ts +86 -0
- package/dist/integrations/providers/email.js +0 -0
- package/dist/integrations/providers/embedding.d.ts +24 -0
- package/dist/integrations/providers/embedding.js +0 -0
- package/dist/integrations/providers/gcs-storage.d.ts +8 -0
- package/dist/integrations/providers/gcs-storage.js +79 -0
- package/dist/integrations/providers/gmail.d.ts +8 -0
- package/dist/integrations/providers/gmail.js +91 -0
- package/dist/integrations/providers/google-calendar.d.ts +8 -0
- package/dist/integrations/providers/google-calendar.js +70 -0
- package/dist/integrations/providers/impls/elevenlabs-voice.d.ts +20 -0
- package/dist/integrations/providers/impls/elevenlabs-voice.js +95 -0
- package/dist/integrations/providers/impls/gcs-storage.d.ts +24 -0
- package/dist/integrations/providers/impls/gcs-storage.js +88 -0
- package/dist/integrations/providers/impls/gmail-inbound.d.ts +26 -0
- package/dist/integrations/providers/impls/gmail-inbound.js +200 -0
- package/dist/integrations/providers/impls/gmail-outbound.d.ts +18 -0
- package/dist/integrations/providers/impls/gmail-outbound.js +105 -0
- package/dist/integrations/providers/impls/google-calendar.d.ts +23 -0
- package/dist/integrations/providers/impls/google-calendar.js +154 -0
- package/dist/integrations/providers/impls/index.d.ts +15 -0
- package/dist/integrations/providers/impls/index.js +16 -0
- package/dist/integrations/providers/impls/mistral-embedding.d.ts +23 -0
- package/dist/integrations/providers/impls/mistral-embedding.js +41 -0
- package/dist/integrations/providers/impls/mistral-llm.d.ts +31 -0
- package/dist/integrations/providers/impls/mistral-llm.js +247 -0
- package/dist/integrations/providers/impls/postmark-email.d.ts +19 -0
- package/dist/integrations/providers/impls/postmark-email.js +55 -0
- package/dist/integrations/providers/impls/powens-client.d.ts +124 -0
- package/dist/integrations/providers/impls/powens-client.js +171 -0
- package/dist/integrations/providers/impls/powens-openbanking.d.ts +27 -0
- package/dist/integrations/providers/impls/powens-openbanking.js +218 -0
- package/dist/integrations/providers/impls/provider-factory.d.ts +26 -0
- package/dist/integrations/providers/impls/provider-factory.js +146 -0
- package/dist/integrations/providers/impls/qdrant-vector.d.ts +24 -0
- package/dist/integrations/providers/impls/qdrant-vector.js +69 -0
- package/dist/integrations/providers/impls/stripe-payments.d.ts +28 -0
- package/dist/integrations/providers/impls/stripe-payments.js +202 -0
- package/dist/integrations/providers/impls/twilio-sms.d.ts +20 -0
- package/dist/integrations/providers/impls/twilio-sms.js +58 -0
- package/dist/integrations/providers/index.d.ts +22 -0
- package/dist/integrations/providers/index.js +13 -0
- package/dist/integrations/providers/llm.d.ts +82 -0
- package/dist/integrations/providers/llm.js +0 -0
- package/dist/integrations/providers/mistral.d.ts +8 -0
- package/dist/integrations/providers/mistral.js +72 -0
- package/dist/integrations/providers/openbanking.d.ts +128 -0
- package/dist/integrations/providers/openbanking.js +0 -0
- package/dist/integrations/providers/payments.d.ts +109 -0
- package/dist/integrations/providers/payments.js +0 -0
- package/dist/integrations/providers/postmark.d.ts +8 -0
- package/dist/integrations/providers/postmark.js +72 -0
- package/dist/integrations/providers/powens.d.ts +8 -0
- package/dist/integrations/providers/powens.js +120 -0
- package/dist/integrations/providers/qdrant.d.ts +8 -0
- package/dist/integrations/providers/qdrant.js +77 -0
- package/dist/integrations/providers/registry.d.ts +11 -0
- package/dist/integrations/providers/registry.js +34 -0
- package/dist/integrations/providers/sms.d.ts +34 -0
- package/dist/integrations/providers/sms.js +0 -0
- package/dist/integrations/providers/storage.d.ts +60 -0
- package/dist/integrations/providers/storage.js +0 -0
- package/dist/integrations/providers/stripe.d.ts +8 -0
- package/dist/integrations/providers/stripe.js +87 -0
- package/dist/integrations/providers/twilio-sms.d.ts +8 -0
- package/dist/integrations/providers/twilio-sms.js +65 -0
- package/dist/integrations/providers/vector-store.d.ts +43 -0
- package/dist/integrations/providers/vector-store.js +0 -0
- package/dist/integrations/providers/voice.d.ts +34 -0
- package/dist/integrations/providers/voice.js +0 -0
- package/dist/integrations/runtime.d.ts +99 -0
- package/dist/integrations/runtime.js +186 -0
- package/dist/integrations/secrets/aws-secret-manager.d.ts +31 -0
- package/dist/integrations/secrets/aws-secret-manager.js +231 -0
- package/dist/integrations/secrets/env-secret-provider.d.ts +31 -0
- package/dist/integrations/secrets/env-secret-provider.js +81 -0
- package/dist/integrations/secrets/gcp-secret-manager.d.ts +32 -0
- package/dist/integrations/secrets/gcp-secret-manager.js +229 -0
- package/dist/integrations/secrets/index.d.ts +7 -0
- package/dist/integrations/secrets/index.js +8 -0
- package/dist/integrations/secrets/manager.d.ts +47 -0
- package/dist/integrations/secrets/manager.js +103 -0
- package/dist/integrations/secrets/provider.d.ts +52 -0
- package/dist/integrations/secrets/provider.js +58 -0
- package/dist/integrations/secrets/scaleway-secret-manager.d.ts +38 -0
- package/dist/integrations/secrets/scaleway-secret-manager.js +247 -0
- package/dist/integrations/secrets-types.d.ts +17 -0
- package/dist/integrations/secrets-types.js +0 -0
- package/dist/integrations/spec.d.ts +77 -0
- package/dist/integrations/spec.js +22 -0
- package/dist/jobs/define-job.d.ts +18 -0
- package/dist/jobs/define-job.js +16 -0
- package/dist/jobs/gcp-cloud-tasks.d.ts +41 -0
- package/dist/jobs/gcp-cloud-tasks.js +53 -0
- package/dist/jobs/gcp-pubsub.d.ts +25 -0
- package/dist/jobs/gcp-pubsub.js +39 -0
- package/dist/jobs/handlers/gmail-sync-handler.d.ts +9 -0
- package/dist/jobs/handlers/gmail-sync-handler.js +9 -0
- package/dist/jobs/handlers/index.d.ts +9 -0
- package/dist/jobs/handlers/index.js +12 -0
- package/dist/jobs/handlers/ping-handler.d.ts +10 -0
- package/dist/jobs/handlers/ping-handler.js +15 -0
- package/dist/jobs/handlers/storage-document-handler.d.ts +12 -0
- package/dist/jobs/handlers/storage-document-handler.js +14 -0
- package/dist/jobs/index.d.ts +3 -0
- package/dist/jobs/index.js +4 -0
- package/dist/jobs/memory-queue.d.ts +18 -0
- package/dist/jobs/memory-queue.js +71 -0
- package/dist/jobs/queue.d.ts +131 -0
- package/dist/jobs/queue.js +33 -0
- package/dist/jobs/scaleway-sqs-queue.d.ts +30 -0
- package/dist/jobs/scaleway-sqs-queue.js +153 -0
- package/dist/jsonschema.d.ts +42 -0
- package/dist/jsonschema.js +51 -0
- package/dist/knowledge/binding.d.ts +25 -0
- package/dist/knowledge/binding.js +0 -0
- package/dist/knowledge/docs/knowledge.docblock.d.ts +6 -0
- package/dist/knowledge/docs/knowledge.docblock.js +21 -0
- package/dist/knowledge/index.d.ts +11 -0
- package/dist/knowledge/index.js +10 -0
- package/dist/knowledge/ingestion/document-processor.d.ts +24 -0
- package/dist/knowledge/ingestion/document-processor.js +54 -0
- package/dist/knowledge/ingestion/embedding-service.d.ts +12 -0
- package/dist/knowledge/ingestion/embedding-service.js +25 -0
- package/dist/knowledge/ingestion/gmail-adapter.d.ts +18 -0
- package/dist/knowledge/ingestion/gmail-adapter.js +51 -0
- package/dist/knowledge/ingestion/index.d.ts +6 -0
- package/dist/knowledge/ingestion/index.js +7 -0
- package/dist/knowledge/ingestion/storage-adapter.d.ts +15 -0
- package/dist/knowledge/ingestion/storage-adapter.js +26 -0
- package/dist/knowledge/ingestion/vector-indexer.d.ts +18 -0
- package/dist/knowledge/ingestion/vector-indexer.js +32 -0
- package/dist/knowledge/knowledge.capability.d.ts +7 -0
- package/dist/knowledge/knowledge.capability.js +21 -0
- package/dist/knowledge/knowledge.feature.d.ts +11 -0
- package/dist/knowledge/knowledge.feature.js +68 -0
- package/dist/knowledge/operations.d.ts +318 -0
- package/dist/knowledge/operations.js +321 -0
- package/dist/knowledge/query/index.d.ts +2 -0
- package/dist/knowledge/query/index.js +3 -0
- package/dist/knowledge/query/service.d.ts +29 -0
- package/dist/knowledge/query/service.js +65 -0
- package/dist/knowledge/runtime.d.ts +32 -0
- package/dist/knowledge/runtime.js +49 -0
- package/dist/knowledge/source.d.ts +32 -0
- package/dist/knowledge/source.js +0 -0
- package/dist/knowledge/spaces/email-threads.d.ts +7 -0
- package/dist/knowledge/spaces/email-threads.js +37 -0
- package/dist/knowledge/spaces/financial-docs.d.ts +7 -0
- package/dist/knowledge/spaces/financial-docs.js +37 -0
- package/dist/knowledge/spaces/financial-overview.d.ts +7 -0
- package/dist/knowledge/spaces/financial-overview.js +41 -0
- package/dist/knowledge/spaces/index.d.ts +7 -0
- package/dist/knowledge/spaces/index.js +8 -0
- package/dist/knowledge/spaces/product-canon.d.ts +7 -0
- package/dist/knowledge/spaces/product-canon.js +37 -0
- package/dist/knowledge/spaces/support-faq.d.ts +7 -0
- package/dist/knowledge/spaces/support-faq.js +40 -0
- package/dist/knowledge/spaces/uploaded-docs.d.ts +7 -0
- package/dist/knowledge/spaces/uploaded-docs.js +37 -0
- package/dist/knowledge/spec.d.ts +46 -0
- package/dist/knowledge/spec.js +17 -0
- package/dist/llm/exporters.d.ts +70 -0
- package/dist/llm/exporters.js +542 -0
- package/dist/llm/index.d.ts +4 -0
- package/dist/llm/index.js +4 -0
- package/dist/llm/prompts.d.ts +52 -0
- package/dist/llm/prompts.js +410 -0
- package/dist/llm/types.d.ts +215 -0
- package/dist/llm/types.js +0 -0
- package/dist/markdown.d.ts +22 -0
- package/dist/markdown.js +119 -0
- package/dist/migrations.d.ts +52 -0
- package/dist/migrations.js +31 -0
- package/dist/model-registry.d.ts +13 -0
- package/dist/model-registry.js +33 -0
- package/dist/onboarding-base.d.ts +138 -0
- package/dist/onboarding-base.js +195 -0
- package/dist/openapi.d.ts +31 -0
- package/dist/openapi.js +82 -0
- package/dist/operations/index.d.ts +3 -0
- package/dist/operations/index.js +4 -0
- package/dist/operations/operation.d.ts +186 -0
- package/dist/operations/operation.js +35 -0
- package/dist/operations/registry.d.ts +54 -0
- package/dist/operations/registry.js +176 -0
- package/dist/ownership.d.ts +84 -0
- package/dist/ownership.js +38 -0
- package/dist/policy/docs/policy.docblock.d.ts +6 -0
- package/dist/policy/docs/policy.docblock.js +21 -0
- package/dist/policy/engine.d.ts +40 -0
- package/dist/policy/engine.js +225 -0
- package/dist/policy/index.d.ts +5 -0
- package/dist/policy/index.js +5 -0
- package/dist/policy/opa-adapter.d.ts +45 -0
- package/dist/policy/opa-adapter.js +71 -0
- package/dist/policy/registry.d.ts +9 -0
- package/dist/policy/registry.js +11 -0
- package/dist/policy/spec.d.ts +103 -0
- package/dist/policy/spec.js +0 -0
- package/dist/presentations/docs/presentations-conventions.docblock.d.ts +6 -0
- package/dist/presentations/docs/presentations-conventions.docblock.js +21 -0
- package/dist/presentations/index.d.ts +4 -0
- package/dist/presentations/index.js +5 -0
- package/dist/presentations/presentations.d.ts +50 -0
- package/dist/presentations/presentations.js +7 -0
- package/dist/presentations/registry.d.ts +10 -0
- package/dist/presentations/registry.js +12 -0
- package/dist/presentations/transform-engine.d.ts +66 -0
- package/dist/presentations/transform-engine.js +282 -0
- package/dist/prompt.d.ts +53 -0
- package/dist/prompt.js +10 -0
- package/dist/promptRegistry.d.ts +15 -0
- package/dist/promptRegistry.js +31 -0
- package/dist/regenerator/adapters.d.ts +19 -0
- package/dist/regenerator/adapters.js +0 -0
- package/dist/regenerator/docs/regenerator.docblock.d.ts +6 -0
- package/dist/regenerator/docs/regenerator.docblock.js +21 -0
- package/dist/regenerator/executor.d.ts +70 -0
- package/dist/regenerator/executor.js +86 -0
- package/dist/regenerator/index.d.ts +7 -0
- package/dist/regenerator/index.js +6 -0
- package/dist/regenerator/service.d.ts +33 -0
- package/dist/regenerator/service.js +93 -0
- package/dist/regenerator/sinks.d.ts +26 -0
- package/dist/regenerator/sinks.js +32 -0
- package/dist/regenerator/types.d.ts +107 -0
- package/dist/regenerator/types.js +0 -0
- package/dist/regenerator/utils.d.ts +9 -0
- package/dist/regenerator/utils.js +51 -0
- package/dist/registry-utils.d.ts +106 -0
- package/dist/registry-utils.js +122 -0
- package/dist/registry.d.ts +32 -0
- package/dist/registry.js +61 -0
- package/dist/resources.d.ts +64 -0
- package/dist/resources.js +50 -0
- package/dist/schema-to-markdown.d.ts +54 -0
- package/dist/schema-to-markdown.js +217 -0
- package/dist/server/contracts-adapter-hydration.d.ts +15 -0
- package/dist/server/contracts-adapter-hydration.js +41 -0
- package/dist/server/contracts-adapter-input.d.ts +9 -0
- package/dist/server/contracts-adapter-input.js +83 -0
- package/dist/server/graphql-pothos.d.ts +31 -0
- package/dist/server/graphql-pothos.js +134 -0
- package/dist/server/index.d.ts +9 -0
- package/dist/server/index.js +10 -0
- package/dist/server/mcp/createMcpServer.d.ts +15 -0
- package/dist/server/mcp/createMcpServer.js +27 -0
- package/dist/server/mcp/mcpTypes.d.ts +27 -0
- package/dist/server/mcp/mcpTypes.js +0 -0
- package/dist/server/mcp/registerPresentations.d.ts +7 -0
- package/dist/server/mcp/registerPresentations.js +54 -0
- package/dist/server/mcp/registerPrompts.d.ts +8 -0
- package/dist/server/mcp/registerPrompts.js +41 -0
- package/dist/server/mcp/registerResources.d.ts +8 -0
- package/dist/server/mcp/registerResources.js +35 -0
- package/dist/server/mcp/registerTools.d.ts +8 -0
- package/dist/server/mcp/registerTools.js +22 -0
- package/dist/server/provider-mcp.d.ts +2 -0
- package/dist/server/provider-mcp.js +3 -0
- package/dist/server/rest-elysia.d.ts +40 -0
- package/dist/server/rest-elysia.js +20 -0
- package/dist/server/rest-express.d.ts +16 -0
- package/dist/server/rest-express.js +36 -0
- package/dist/server/rest-generic.d.ts +32 -0
- package/dist/server/rest-generic.js +124 -0
- package/dist/server/rest-next-app.d.ts +35 -0
- package/dist/server/rest-next-app.js +38 -0
- package/dist/server/rest-next-mcp.d.ts +11 -0
- package/dist/server/rest-next-mcp.js +45 -0
- package/dist/server/rest-next-pages.d.ts +9 -0
- package/dist/server/rest-next-pages.js +22 -0
- package/dist/telemetry/anomaly.d.ts +27 -0
- package/dist/telemetry/anomaly.js +48 -0
- package/dist/telemetry/docs/telemetry.docblock.d.ts +6 -0
- package/dist/telemetry/docs/telemetry.docblock.js +21 -0
- package/dist/telemetry/index.d.ts +4 -0
- package/dist/telemetry/index.js +5 -0
- package/dist/telemetry/spec.d.ts +91 -0
- package/dist/telemetry/spec.js +42 -0
- package/dist/telemetry/tracker.d.ts +51 -0
- package/dist/telemetry/tracker.js +76 -0
- package/dist/tests/index.d.ts +3 -0
- package/dist/tests/index.js +4 -0
- package/dist/tests/runner.d.ts +43 -0
- package/dist/tests/runner.js +150 -0
- package/dist/tests/spec.d.ts +82 -0
- package/dist/tests/spec.js +34 -0
- package/dist/themes.d.ts +51 -0
- package/dist/themes.js +17 -0
- package/dist/translations/catalog.d.ts +28 -0
- package/dist/translations/catalog.js +0 -0
- package/dist/translations/tenant.d.ts +15 -0
- package/dist/translations/tenant.js +0 -0
- package/dist/types.d.ts +92 -0
- package/dist/types.js +0 -0
- package/dist/versioning/index.d.ts +3 -0
- package/dist/versioning/index.js +4 -0
- package/dist/versioning/types.d.ts +127 -0
- package/dist/versioning/types.js +24 -0
- package/dist/versioning/utils.d.ts +95 -0
- package/dist/versioning/utils.js +180 -0
- package/dist/workflow/adapters/db-adapter.d.ts +46 -0
- package/dist/workflow/adapters/db-adapter.js +83 -0
- package/dist/workflow/adapters/file-adapter.d.ts +14 -0
- package/dist/workflow/adapters/file-adapter.js +11 -0
- package/dist/workflow/adapters/index.d.ts +4 -0
- package/dist/workflow/adapters/index.js +5 -0
- package/dist/workflow/adapters/memory-store.d.ts +18 -0
- package/dist/workflow/adapters/memory-store.js +58 -0
- package/dist/workflow/expression.d.ts +9 -0
- package/dist/workflow/expression.js +99 -0
- package/dist/workflow/index.d.ts +17 -0
- package/dist/workflow/index.js +16 -0
- package/dist/workflow/overview.docblock.d.ts +6 -0
- package/dist/workflow/overview.docblock.js +21 -0
- package/dist/workflow/runner.d.ts +77 -0
- package/dist/workflow/runner.js +337 -0
- package/dist/workflow/sla-monitor.d.ts +20 -0
- package/dist/workflow/sla-monitor.js +47 -0
- package/dist/workflow/spec.d.ts +93 -0
- package/dist/workflow/spec.js +11 -0
- package/dist/workflow/state.d.ts +35 -0
- package/dist/workflow/state.js +0 -0
- package/dist/workflow/validation.d.ts +29 -0
- package/dist/workflow/validation.js +176 -0
- package/dist/workspace-config/contractsrc-schema.d.ts +1162 -0
- package/dist/workspace-config/contractsrc-schema.js +421 -0
- package/dist/workspace-config/index.d.ts +2 -0
- package/dist/workspace-config/index.js +3 -0
- package/dist/workspace-config/workspace-config.docblock.d.ts +6 -0
- package/dist/workspace-config/workspace-config.docblock.js +45 -0
- package/package.json +618 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { SpecContractRegistry } from "../registry.js";
|
|
2
|
+
import { ExampleKind, ExampleSpec, ExampleVisibility } from "./types.js";
|
|
3
|
+
|
|
4
|
+
//#region src/examples/registry.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* In-memory registry for ExampleSpec.
|
|
8
|
+
*
|
|
9
|
+
* Provides methods for registering, querying, and filtering examples.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```typescript
|
|
13
|
+
* const registry = new ExampleRegistry();
|
|
14
|
+
* registry.register(saasBoilerplateExample);
|
|
15
|
+
* registry.register(workflowSystemExample);
|
|
16
|
+
*
|
|
17
|
+
* const templates = registry.listByKind('template');
|
|
18
|
+
* const publicExamples = registry.listByVisibility('public');
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
declare class ExampleRegistry extends SpecContractRegistry<'example', ExampleSpec> {
|
|
22
|
+
constructor(items?: ExampleSpec[]);
|
|
23
|
+
/** List examples by kind. */
|
|
24
|
+
listByKind(kind: ExampleKind): ExampleSpec[];
|
|
25
|
+
/** List examples by visibility. */
|
|
26
|
+
listByVisibility(visibility: ExampleVisibility): ExampleSpec[];
|
|
27
|
+
/** List examples by domain. */
|
|
28
|
+
listByDomain(domain: string): ExampleSpec[];
|
|
29
|
+
/** List examples that support a specific surface. */
|
|
30
|
+
listBySurface(surface: 'templates' | 'sandbox' | 'studio' | 'mcp'): ExampleSpec[];
|
|
31
|
+
/** List examples that are installable via Studio. */
|
|
32
|
+
listInstallable(): ExampleSpec[];
|
|
33
|
+
/** Group examples by kind. */
|
|
34
|
+
groupByKind(): Map<ExampleKind, ExampleSpec[]>;
|
|
35
|
+
/** Get unique kinds from all examples. */
|
|
36
|
+
getUniqueKinds(): ExampleKind[];
|
|
37
|
+
/** Get unique domains from all examples. */
|
|
38
|
+
getUniqueDomains(): string[];
|
|
39
|
+
/** Search examples by query (matches key, title, description, tags). */
|
|
40
|
+
search(query: string): ExampleSpec[];
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
export { ExampleRegistry };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { SpecContractRegistry } from "../registry.js";
|
|
2
|
+
|
|
3
|
+
//#region src/examples/registry.ts
|
|
4
|
+
/**
|
|
5
|
+
* In-memory registry for ExampleSpec.
|
|
6
|
+
*
|
|
7
|
+
* Provides methods for registering, querying, and filtering examples.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* const registry = new ExampleRegistry();
|
|
12
|
+
* registry.register(saasBoilerplateExample);
|
|
13
|
+
* registry.register(workflowSystemExample);
|
|
14
|
+
*
|
|
15
|
+
* const templates = registry.listByKind('template');
|
|
16
|
+
* const publicExamples = registry.listByVisibility('public');
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
var ExampleRegistry = class extends SpecContractRegistry {
|
|
20
|
+
constructor(items) {
|
|
21
|
+
super("example", items);
|
|
22
|
+
}
|
|
23
|
+
/** List examples by kind. */
|
|
24
|
+
listByKind(kind) {
|
|
25
|
+
return this.list().filter((spec) => spec.meta.kind === kind);
|
|
26
|
+
}
|
|
27
|
+
/** List examples by visibility. */
|
|
28
|
+
listByVisibility(visibility) {
|
|
29
|
+
return this.list().filter((spec) => spec.meta.visibility === visibility);
|
|
30
|
+
}
|
|
31
|
+
/** List examples by domain. */
|
|
32
|
+
listByDomain(domain) {
|
|
33
|
+
return this.list().filter((spec) => spec.meta.domain === domain);
|
|
34
|
+
}
|
|
35
|
+
/** List examples that support a specific surface. */
|
|
36
|
+
listBySurface(surface) {
|
|
37
|
+
return this.list().filter((spec) => {
|
|
38
|
+
if (surface === "templates") return spec.surfaces.templates;
|
|
39
|
+
if (surface === "sandbox") return spec.surfaces.sandbox.enabled;
|
|
40
|
+
if (surface === "studio") return spec.surfaces.studio.enabled;
|
|
41
|
+
if (surface === "mcp") return spec.surfaces.mcp.enabled;
|
|
42
|
+
return false;
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/** List examples that are installable via Studio. */
|
|
46
|
+
listInstallable() {
|
|
47
|
+
return this.list().filter((spec) => spec.surfaces.studio.installable);
|
|
48
|
+
}
|
|
49
|
+
/** Group examples by kind. */
|
|
50
|
+
groupByKind() {
|
|
51
|
+
const result = /* @__PURE__ */ new Map();
|
|
52
|
+
for (const spec of this.list()) {
|
|
53
|
+
const existing = result.get(spec.meta.kind) ?? [];
|
|
54
|
+
existing.push(spec);
|
|
55
|
+
result.set(spec.meta.kind, existing);
|
|
56
|
+
}
|
|
57
|
+
return result;
|
|
58
|
+
}
|
|
59
|
+
/** Get unique kinds from all examples. */
|
|
60
|
+
getUniqueKinds() {
|
|
61
|
+
const kinds = /* @__PURE__ */ new Set();
|
|
62
|
+
for (const spec of this.list()) kinds.add(spec.meta.kind);
|
|
63
|
+
return [...kinds];
|
|
64
|
+
}
|
|
65
|
+
/** Get unique domains from all examples. */
|
|
66
|
+
getUniqueDomains() {
|
|
67
|
+
const domains = /* @__PURE__ */ new Set();
|
|
68
|
+
for (const spec of this.list()) if (spec.meta.domain) domains.add(spec.meta.domain);
|
|
69
|
+
return [...domains];
|
|
70
|
+
}
|
|
71
|
+
/** Search examples by query (matches key, title, description, tags). */
|
|
72
|
+
search(query) {
|
|
73
|
+
const q = query.toLowerCase().trim();
|
|
74
|
+
if (!q) return this.list();
|
|
75
|
+
return this.list().filter((spec) => {
|
|
76
|
+
return [
|
|
77
|
+
spec.meta.key,
|
|
78
|
+
spec.meta.title ?? "",
|
|
79
|
+
spec.meta.description,
|
|
80
|
+
spec.meta.summary ?? "",
|
|
81
|
+
...spec.meta.tags
|
|
82
|
+
].join(" ").toLowerCase().includes(q);
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
//#endregion
|
|
88
|
+
export { ExampleRegistry };
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import { ExampleDocumentation, ExampleEntrypoints, ExampleMeta, ExampleSpec, ExampleSurfaces } from "./types.js";
|
|
2
|
+
import { z as z$1 } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/examples/schema.d.ts
|
|
5
|
+
declare const ExampleKindSchema: z$1.ZodEnum<{
|
|
6
|
+
template: "template";
|
|
7
|
+
workflow: "workflow";
|
|
8
|
+
integration: "integration";
|
|
9
|
+
knowledge: "knowledge";
|
|
10
|
+
blueprint: "blueprint";
|
|
11
|
+
ui: "ui";
|
|
12
|
+
script: "script";
|
|
13
|
+
library: "library";
|
|
14
|
+
}>;
|
|
15
|
+
declare const ExampleVisibilitySchema: z$1.ZodEnum<{
|
|
16
|
+
experimental: "experimental";
|
|
17
|
+
public: "public";
|
|
18
|
+
internal: "internal";
|
|
19
|
+
}>;
|
|
20
|
+
declare const ExampleSandboxModeSchema: z$1.ZodEnum<{
|
|
21
|
+
playground: "playground";
|
|
22
|
+
specs: "specs";
|
|
23
|
+
builder: "builder";
|
|
24
|
+
markdown: "markdown";
|
|
25
|
+
evolution: "evolution";
|
|
26
|
+
}>;
|
|
27
|
+
declare const StabilitySchema: z$1.ZodEnum<{
|
|
28
|
+
deprecated: "deprecated";
|
|
29
|
+
idea: "idea";
|
|
30
|
+
in_creation: "in_creation";
|
|
31
|
+
experimental: "experimental";
|
|
32
|
+
beta: "beta";
|
|
33
|
+
stable: "stable";
|
|
34
|
+
}>;
|
|
35
|
+
declare const ExampleDocumentationSchema: z$1.ZodObject<{
|
|
36
|
+
rootDocId: z$1.ZodOptional<z$1.ZodString>;
|
|
37
|
+
goalDocId: z$1.ZodOptional<z$1.ZodString>;
|
|
38
|
+
usageDocId: z$1.ZodOptional<z$1.ZodString>;
|
|
39
|
+
referenceDocId: z$1.ZodOptional<z$1.ZodString>;
|
|
40
|
+
constraintsDocId: z$1.ZodOptional<z$1.ZodString>;
|
|
41
|
+
}, z$1.core.$strip>;
|
|
42
|
+
declare const ExampleSandboxSupportSchema: z$1.ZodObject<{
|
|
43
|
+
enabled: z$1.ZodBoolean;
|
|
44
|
+
modes: z$1.ZodArray<z$1.ZodEnum<{
|
|
45
|
+
playground: "playground";
|
|
46
|
+
specs: "specs";
|
|
47
|
+
builder: "builder";
|
|
48
|
+
markdown: "markdown";
|
|
49
|
+
evolution: "evolution";
|
|
50
|
+
}>>;
|
|
51
|
+
}, z$1.core.$strip>;
|
|
52
|
+
declare const ExampleStudioSupportSchema: z$1.ZodObject<{
|
|
53
|
+
enabled: z$1.ZodBoolean;
|
|
54
|
+
installable: z$1.ZodBoolean;
|
|
55
|
+
}, z$1.core.$strip>;
|
|
56
|
+
declare const ExampleMcpSupportSchema: z$1.ZodObject<{
|
|
57
|
+
enabled: z$1.ZodBoolean;
|
|
58
|
+
}, z$1.core.$strip>;
|
|
59
|
+
declare const ExampleSurfacesSchema: z$1.ZodObject<{
|
|
60
|
+
templates: z$1.ZodBoolean;
|
|
61
|
+
sandbox: z$1.ZodObject<{
|
|
62
|
+
enabled: z$1.ZodBoolean;
|
|
63
|
+
modes: z$1.ZodArray<z$1.ZodEnum<{
|
|
64
|
+
playground: "playground";
|
|
65
|
+
specs: "specs";
|
|
66
|
+
builder: "builder";
|
|
67
|
+
markdown: "markdown";
|
|
68
|
+
evolution: "evolution";
|
|
69
|
+
}>>;
|
|
70
|
+
}, z$1.core.$strip>;
|
|
71
|
+
studio: z$1.ZodObject<{
|
|
72
|
+
enabled: z$1.ZodBoolean;
|
|
73
|
+
installable: z$1.ZodBoolean;
|
|
74
|
+
}, z$1.core.$strip>;
|
|
75
|
+
mcp: z$1.ZodObject<{
|
|
76
|
+
enabled: z$1.ZodBoolean;
|
|
77
|
+
}, z$1.core.$strip>;
|
|
78
|
+
}, z$1.core.$strip>;
|
|
79
|
+
declare const ExampleEntrypointsSchema: z$1.ZodObject<{
|
|
80
|
+
packageName: z$1.ZodString;
|
|
81
|
+
feature: z$1.ZodOptional<z$1.ZodString>;
|
|
82
|
+
blueprint: z$1.ZodOptional<z$1.ZodString>;
|
|
83
|
+
presentations: z$1.ZodOptional<z$1.ZodString>;
|
|
84
|
+
contracts: z$1.ZodOptional<z$1.ZodString>;
|
|
85
|
+
handlers: z$1.ZodOptional<z$1.ZodString>;
|
|
86
|
+
ui: z$1.ZodOptional<z$1.ZodString>;
|
|
87
|
+
docs: z$1.ZodOptional<z$1.ZodString>;
|
|
88
|
+
}, z$1.core.$strip>;
|
|
89
|
+
declare const ExampleMetaSchema: z$1.ZodObject<{
|
|
90
|
+
version: z$1.ZodString;
|
|
91
|
+
key: z$1.ZodString;
|
|
92
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
93
|
+
description: z$1.ZodString;
|
|
94
|
+
domain: z$1.ZodOptional<z$1.ZodString>;
|
|
95
|
+
stability: z$1.ZodEnum<{
|
|
96
|
+
deprecated: "deprecated";
|
|
97
|
+
idea: "idea";
|
|
98
|
+
in_creation: "in_creation";
|
|
99
|
+
experimental: "experimental";
|
|
100
|
+
beta: "beta";
|
|
101
|
+
stable: "stable";
|
|
102
|
+
}>;
|
|
103
|
+
owners: z$1.ZodArray<z$1.ZodString>;
|
|
104
|
+
tags: z$1.ZodArray<z$1.ZodString>;
|
|
105
|
+
docId: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
106
|
+
kind: z$1.ZodEnum<{
|
|
107
|
+
template: "template";
|
|
108
|
+
workflow: "workflow";
|
|
109
|
+
integration: "integration";
|
|
110
|
+
knowledge: "knowledge";
|
|
111
|
+
blueprint: "blueprint";
|
|
112
|
+
ui: "ui";
|
|
113
|
+
script: "script";
|
|
114
|
+
library: "library";
|
|
115
|
+
}>;
|
|
116
|
+
visibility: z$1.ZodEnum<{
|
|
117
|
+
experimental: "experimental";
|
|
118
|
+
public: "public";
|
|
119
|
+
internal: "internal";
|
|
120
|
+
}>;
|
|
121
|
+
summary: z$1.ZodOptional<z$1.ZodString>;
|
|
122
|
+
}, z$1.core.$strip>;
|
|
123
|
+
declare const SpecPointerSchema: z$1.ZodObject<{
|
|
124
|
+
key: z$1.ZodString;
|
|
125
|
+
version: z$1.ZodOptional<z$1.ZodString>;
|
|
126
|
+
}, z$1.core.$strip>;
|
|
127
|
+
declare const FeatureRefSchema: z$1.ZodObject<{
|
|
128
|
+
key: z$1.ZodString;
|
|
129
|
+
}, z$1.core.$strip>;
|
|
130
|
+
/**
|
|
131
|
+
* Zod schema for validating ExampleSpec objects.
|
|
132
|
+
*
|
|
133
|
+
* Note: blueprint and features are loosely validated since they can be
|
|
134
|
+
* inline specs or references. Full validation requires registry lookups.
|
|
135
|
+
*/
|
|
136
|
+
declare const ExampleSpecSchema: z$1.ZodObject<{
|
|
137
|
+
meta: z$1.ZodObject<{
|
|
138
|
+
version: z$1.ZodString;
|
|
139
|
+
key: z$1.ZodString;
|
|
140
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
141
|
+
description: z$1.ZodString;
|
|
142
|
+
domain: z$1.ZodOptional<z$1.ZodString>;
|
|
143
|
+
stability: z$1.ZodEnum<{
|
|
144
|
+
deprecated: "deprecated";
|
|
145
|
+
idea: "idea";
|
|
146
|
+
in_creation: "in_creation";
|
|
147
|
+
experimental: "experimental";
|
|
148
|
+
beta: "beta";
|
|
149
|
+
stable: "stable";
|
|
150
|
+
}>;
|
|
151
|
+
owners: z$1.ZodArray<z$1.ZodString>;
|
|
152
|
+
tags: z$1.ZodArray<z$1.ZodString>;
|
|
153
|
+
docId: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
154
|
+
kind: z$1.ZodEnum<{
|
|
155
|
+
template: "template";
|
|
156
|
+
workflow: "workflow";
|
|
157
|
+
integration: "integration";
|
|
158
|
+
knowledge: "knowledge";
|
|
159
|
+
blueprint: "blueprint";
|
|
160
|
+
ui: "ui";
|
|
161
|
+
script: "script";
|
|
162
|
+
library: "library";
|
|
163
|
+
}>;
|
|
164
|
+
visibility: z$1.ZodEnum<{
|
|
165
|
+
experimental: "experimental";
|
|
166
|
+
public: "public";
|
|
167
|
+
internal: "internal";
|
|
168
|
+
}>;
|
|
169
|
+
summary: z$1.ZodOptional<z$1.ZodString>;
|
|
170
|
+
}, z$1.core.$strip>;
|
|
171
|
+
docs: z$1.ZodOptional<z$1.ZodObject<{
|
|
172
|
+
rootDocId: z$1.ZodOptional<z$1.ZodString>;
|
|
173
|
+
goalDocId: z$1.ZodOptional<z$1.ZodString>;
|
|
174
|
+
usageDocId: z$1.ZodOptional<z$1.ZodString>;
|
|
175
|
+
referenceDocId: z$1.ZodOptional<z$1.ZodString>;
|
|
176
|
+
constraintsDocId: z$1.ZodOptional<z$1.ZodString>;
|
|
177
|
+
}, z$1.core.$strip>>;
|
|
178
|
+
surfaces: z$1.ZodObject<{
|
|
179
|
+
templates: z$1.ZodBoolean;
|
|
180
|
+
sandbox: z$1.ZodObject<{
|
|
181
|
+
enabled: z$1.ZodBoolean;
|
|
182
|
+
modes: z$1.ZodArray<z$1.ZodEnum<{
|
|
183
|
+
playground: "playground";
|
|
184
|
+
specs: "specs";
|
|
185
|
+
builder: "builder";
|
|
186
|
+
markdown: "markdown";
|
|
187
|
+
evolution: "evolution";
|
|
188
|
+
}>>;
|
|
189
|
+
}, z$1.core.$strip>;
|
|
190
|
+
studio: z$1.ZodObject<{
|
|
191
|
+
enabled: z$1.ZodBoolean;
|
|
192
|
+
installable: z$1.ZodBoolean;
|
|
193
|
+
}, z$1.core.$strip>;
|
|
194
|
+
mcp: z$1.ZodObject<{
|
|
195
|
+
enabled: z$1.ZodBoolean;
|
|
196
|
+
}, z$1.core.$strip>;
|
|
197
|
+
}, z$1.core.$strip>;
|
|
198
|
+
entrypoints: z$1.ZodObject<{
|
|
199
|
+
packageName: z$1.ZodString;
|
|
200
|
+
feature: z$1.ZodOptional<z$1.ZodString>;
|
|
201
|
+
blueprint: z$1.ZodOptional<z$1.ZodString>;
|
|
202
|
+
presentations: z$1.ZodOptional<z$1.ZodString>;
|
|
203
|
+
contracts: z$1.ZodOptional<z$1.ZodString>;
|
|
204
|
+
handlers: z$1.ZodOptional<z$1.ZodString>;
|
|
205
|
+
ui: z$1.ZodOptional<z$1.ZodString>;
|
|
206
|
+
docs: z$1.ZodOptional<z$1.ZodString>;
|
|
207
|
+
}, z$1.core.$strip>;
|
|
208
|
+
blueprint: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>, z$1.ZodObject<{
|
|
209
|
+
key: z$1.ZodString;
|
|
210
|
+
version: z$1.ZodOptional<z$1.ZodString>;
|
|
211
|
+
}, z$1.core.$strip>]>>;
|
|
212
|
+
features: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnion<readonly [z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>, z$1.ZodObject<{
|
|
213
|
+
key: z$1.ZodString;
|
|
214
|
+
}, z$1.core.$strip>]>>>;
|
|
215
|
+
}, z$1.core.$strip>;
|
|
216
|
+
/** Parse and validate an ExampleSpec, throwing on failure */
|
|
217
|
+
declare function parseExampleSpec(data: unknown): ExampleSpec;
|
|
218
|
+
/** Safely parse an ExampleSpec, returning result object */
|
|
219
|
+
declare function safeParseExampleSpec(data: unknown): z$1.ZodSafeParseResult<{
|
|
220
|
+
meta: {
|
|
221
|
+
version: string;
|
|
222
|
+
key: string;
|
|
223
|
+
description: string;
|
|
224
|
+
stability: "deprecated" | "idea" | "in_creation" | "experimental" | "beta" | "stable";
|
|
225
|
+
owners: string[];
|
|
226
|
+
tags: string[];
|
|
227
|
+
kind: "template" | "workflow" | "integration" | "knowledge" | "blueprint" | "ui" | "script" | "library";
|
|
228
|
+
visibility: "experimental" | "public" | "internal";
|
|
229
|
+
title?: string | undefined;
|
|
230
|
+
domain?: string | undefined;
|
|
231
|
+
docId?: string[] | undefined;
|
|
232
|
+
summary?: string | undefined;
|
|
233
|
+
};
|
|
234
|
+
surfaces: {
|
|
235
|
+
templates: boolean;
|
|
236
|
+
sandbox: {
|
|
237
|
+
enabled: boolean;
|
|
238
|
+
modes: ("playground" | "specs" | "builder" | "markdown" | "evolution")[];
|
|
239
|
+
};
|
|
240
|
+
studio: {
|
|
241
|
+
enabled: boolean;
|
|
242
|
+
installable: boolean;
|
|
243
|
+
};
|
|
244
|
+
mcp: {
|
|
245
|
+
enabled: boolean;
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
entrypoints: {
|
|
249
|
+
packageName: string;
|
|
250
|
+
feature?: string | undefined;
|
|
251
|
+
blueprint?: string | undefined;
|
|
252
|
+
presentations?: string | undefined;
|
|
253
|
+
contracts?: string | undefined;
|
|
254
|
+
handlers?: string | undefined;
|
|
255
|
+
ui?: string | undefined;
|
|
256
|
+
docs?: string | undefined;
|
|
257
|
+
};
|
|
258
|
+
docs?: {
|
|
259
|
+
rootDocId?: string | undefined;
|
|
260
|
+
goalDocId?: string | undefined;
|
|
261
|
+
usageDocId?: string | undefined;
|
|
262
|
+
referenceDocId?: string | undefined;
|
|
263
|
+
constraintsDocId?: string | undefined;
|
|
264
|
+
} | undefined;
|
|
265
|
+
blueprint?: Record<string, unknown> | {
|
|
266
|
+
key: string;
|
|
267
|
+
version?: string | undefined;
|
|
268
|
+
} | undefined;
|
|
269
|
+
features?: (Record<string, unknown> | {
|
|
270
|
+
key: string;
|
|
271
|
+
})[] | undefined;
|
|
272
|
+
}>;
|
|
273
|
+
/** Parse and validate ExampleMeta */
|
|
274
|
+
declare function parseExampleMeta(data: unknown): ExampleMeta;
|
|
275
|
+
/** Parse and validate ExampleSurfaces */
|
|
276
|
+
declare function parseExampleSurfaces(data: unknown): ExampleSurfaces;
|
|
277
|
+
/** Parse and validate ExampleEntrypoints */
|
|
278
|
+
declare function parseExampleEntrypoints(data: unknown): ExampleEntrypoints;
|
|
279
|
+
/** Parse and validate ExampleDocumentation */
|
|
280
|
+
declare function parseExampleDocumentation(data: unknown): ExampleDocumentation;
|
|
281
|
+
//#endregion
|
|
282
|
+
export { ExampleDocumentationSchema, ExampleEntrypointsSchema, ExampleKindSchema, ExampleMcpSupportSchema, ExampleMetaSchema, ExampleSandboxModeSchema, ExampleSandboxSupportSchema, ExampleSpecSchema, ExampleStudioSupportSchema, ExampleSurfacesSchema, ExampleVisibilitySchema, FeatureRefSchema, SpecPointerSchema, StabilitySchema, parseExampleDocumentation, parseExampleEntrypoints, parseExampleMeta, parseExampleSpec, parseExampleSurfaces, safeParseExampleSpec };
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { z as z$1 } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/examples/schema.ts
|
|
4
|
+
const ExampleKindSchema = z$1.enum([
|
|
5
|
+
"template",
|
|
6
|
+
"workflow",
|
|
7
|
+
"integration",
|
|
8
|
+
"knowledge",
|
|
9
|
+
"blueprint",
|
|
10
|
+
"ui",
|
|
11
|
+
"script",
|
|
12
|
+
"library"
|
|
13
|
+
]);
|
|
14
|
+
const ExampleVisibilitySchema = z$1.enum([
|
|
15
|
+
"public",
|
|
16
|
+
"internal",
|
|
17
|
+
"experimental"
|
|
18
|
+
]);
|
|
19
|
+
const ExampleSandboxModeSchema = z$1.enum([
|
|
20
|
+
"playground",
|
|
21
|
+
"specs",
|
|
22
|
+
"builder",
|
|
23
|
+
"markdown",
|
|
24
|
+
"evolution"
|
|
25
|
+
]);
|
|
26
|
+
const StabilitySchema = z$1.enum([
|
|
27
|
+
"idea",
|
|
28
|
+
"in_creation",
|
|
29
|
+
"experimental",
|
|
30
|
+
"beta",
|
|
31
|
+
"stable",
|
|
32
|
+
"deprecated"
|
|
33
|
+
]);
|
|
34
|
+
const ExampleDocumentationSchema = z$1.object({
|
|
35
|
+
rootDocId: z$1.string().optional(),
|
|
36
|
+
goalDocId: z$1.string().optional(),
|
|
37
|
+
usageDocId: z$1.string().optional(),
|
|
38
|
+
referenceDocId: z$1.string().optional(),
|
|
39
|
+
constraintsDocId: z$1.string().optional()
|
|
40
|
+
});
|
|
41
|
+
const ExampleSandboxSupportSchema = z$1.object({
|
|
42
|
+
enabled: z$1.boolean(),
|
|
43
|
+
modes: z$1.array(ExampleSandboxModeSchema)
|
|
44
|
+
});
|
|
45
|
+
const ExampleStudioSupportSchema = z$1.object({
|
|
46
|
+
enabled: z$1.boolean(),
|
|
47
|
+
installable: z$1.boolean()
|
|
48
|
+
});
|
|
49
|
+
const ExampleMcpSupportSchema = z$1.object({ enabled: z$1.boolean() });
|
|
50
|
+
const ExampleSurfacesSchema = z$1.object({
|
|
51
|
+
templates: z$1.boolean(),
|
|
52
|
+
sandbox: ExampleSandboxSupportSchema,
|
|
53
|
+
studio: ExampleStudioSupportSchema,
|
|
54
|
+
mcp: ExampleMcpSupportSchema
|
|
55
|
+
});
|
|
56
|
+
const ExampleEntrypointsSchema = z$1.object({
|
|
57
|
+
packageName: z$1.string().min(1),
|
|
58
|
+
feature: z$1.string().optional(),
|
|
59
|
+
blueprint: z$1.string().optional(),
|
|
60
|
+
presentations: z$1.string().optional(),
|
|
61
|
+
contracts: z$1.string().optional(),
|
|
62
|
+
handlers: z$1.string().optional(),
|
|
63
|
+
ui: z$1.string().optional(),
|
|
64
|
+
docs: z$1.string().optional()
|
|
65
|
+
});
|
|
66
|
+
const ExampleMetaSchema = z$1.object({
|
|
67
|
+
version: z$1.string(),
|
|
68
|
+
key: z$1.string().min(1),
|
|
69
|
+
title: z$1.string().optional(),
|
|
70
|
+
description: z$1.string().min(1),
|
|
71
|
+
domain: z$1.string().optional(),
|
|
72
|
+
stability: StabilitySchema,
|
|
73
|
+
owners: z$1.array(z$1.string()),
|
|
74
|
+
tags: z$1.array(z$1.string()),
|
|
75
|
+
docId: z$1.array(z$1.string()).optional(),
|
|
76
|
+
kind: ExampleKindSchema,
|
|
77
|
+
visibility: ExampleVisibilitySchema,
|
|
78
|
+
summary: z$1.string().optional()
|
|
79
|
+
});
|
|
80
|
+
const SpecPointerSchema = z$1.object({
|
|
81
|
+
key: z$1.string().min(1),
|
|
82
|
+
version: z$1.string().optional()
|
|
83
|
+
});
|
|
84
|
+
const FeatureRefSchema = z$1.object({ key: z$1.string().min(1) });
|
|
85
|
+
/**
|
|
86
|
+
* Zod schema for validating ExampleSpec objects.
|
|
87
|
+
*
|
|
88
|
+
* Note: blueprint and features are loosely validated since they can be
|
|
89
|
+
* inline specs or references. Full validation requires registry lookups.
|
|
90
|
+
*/
|
|
91
|
+
const ExampleSpecSchema = z$1.object({
|
|
92
|
+
meta: ExampleMetaSchema,
|
|
93
|
+
docs: ExampleDocumentationSchema.optional(),
|
|
94
|
+
surfaces: ExampleSurfacesSchema,
|
|
95
|
+
entrypoints: ExampleEntrypointsSchema,
|
|
96
|
+
blueprint: z$1.union([z$1.record(z$1.string(), z$1.unknown()), SpecPointerSchema]).optional(),
|
|
97
|
+
features: z$1.array(z$1.union([z$1.record(z$1.string(), z$1.unknown()), FeatureRefSchema])).optional()
|
|
98
|
+
});
|
|
99
|
+
/** Parse and validate an ExampleSpec, throwing on failure */
|
|
100
|
+
function parseExampleSpec(data) {
|
|
101
|
+
return ExampleSpecSchema.parse(data);
|
|
102
|
+
}
|
|
103
|
+
/** Safely parse an ExampleSpec, returning result object */
|
|
104
|
+
function safeParseExampleSpec(data) {
|
|
105
|
+
return ExampleSpecSchema.safeParse(data);
|
|
106
|
+
}
|
|
107
|
+
/** Parse and validate ExampleMeta */
|
|
108
|
+
function parseExampleMeta(data) {
|
|
109
|
+
return ExampleMetaSchema.parse(data);
|
|
110
|
+
}
|
|
111
|
+
/** Parse and validate ExampleSurfaces */
|
|
112
|
+
function parseExampleSurfaces(data) {
|
|
113
|
+
return ExampleSurfacesSchema.parse(data);
|
|
114
|
+
}
|
|
115
|
+
/** Parse and validate ExampleEntrypoints */
|
|
116
|
+
function parseExampleEntrypoints(data) {
|
|
117
|
+
return ExampleEntrypointsSchema.parse(data);
|
|
118
|
+
}
|
|
119
|
+
/** Parse and validate ExampleDocumentation */
|
|
120
|
+
function parseExampleDocumentation(data) {
|
|
121
|
+
return ExampleDocumentationSchema.parse(data);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
//#endregion
|
|
125
|
+
export { ExampleDocumentationSchema, ExampleEntrypointsSchema, ExampleKindSchema, ExampleMcpSupportSchema, ExampleMetaSchema, ExampleSandboxModeSchema, ExampleSandboxSupportSchema, ExampleSpecSchema, ExampleStudioSupportSchema, ExampleSurfacesSchema, ExampleVisibilitySchema, FeatureRefSchema, SpecPointerSchema, StabilitySchema, parseExampleDocumentation, parseExampleEntrypoints, parseExampleMeta, parseExampleSpec, parseExampleSurfaces, safeParseExampleSpec };
|