@contractspec/lib.contracts 1.62.0 → 1.63.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/CHANGELOG.md +754 -0
- package/README.md +30 -96
- package/package.json +9 -4742
- package/dist/app-config/app-config.capability.d.ts +0 -2
- package/dist/app-config/app-config.capability.d.ts.map +0 -1
- package/dist/app-config/app-config.capability.js +0 -730
- package/dist/app-config/app-config.contracts.d.ts +0 -240
- package/dist/app-config/app-config.contracts.d.ts.map +0 -1
- package/dist/app-config/app-config.contracts.js +0 -927
- package/dist/app-config/app-config.contracts.test.d.ts +0 -2
- package/dist/app-config/app-config.contracts.test.d.ts.map +0 -1
- package/dist/app-config/app-config.feature.d.ts +0 -6
- package/dist/app-config/app-config.feature.d.ts.map +0 -1
- package/dist/app-config/app-config.feature.js +0 -255
- package/dist/app-config/branding.d.ts +0 -53
- package/dist/app-config/branding.d.ts.map +0 -1
- package/dist/app-config/branding.js +0 -1
- package/dist/app-config/branding.test.d.ts +0 -2
- package/dist/app-config/branding.test.d.ts.map +0 -1
- package/dist/app-config/docs/app-config.docblock.d.ts +0 -3
- package/dist/app-config/docs/app-config.docblock.d.ts.map +0 -1
- package/dist/app-config/docs/app-config.docblock.js +0 -383
- package/dist/app-config/events.d.ts +0 -116
- package/dist/app-config/events.d.ts.map +0 -1
- package/dist/app-config/events.js +0 -386
- package/dist/app-config/events.test.d.ts +0 -2
- package/dist/app-config/events.test.d.ts.map +0 -1
- package/dist/app-config/index.d.ts +0 -10
- package/dist/app-config/index.d.ts.map +0 -1
- package/dist/app-config/index.js +0 -3113
- package/dist/app-config/lifecycle-contracts.d.ts +0 -266
- package/dist/app-config/lifecycle-contracts.d.ts.map +0 -1
- package/dist/app-config/lifecycle-contracts.js +0 -1084
- package/dist/app-config/lifecycle-contracts.test.d.ts +0 -2
- package/dist/app-config/lifecycle-contracts.test.d.ts.map +0 -1
- package/dist/app-config/lifecycle.d.ts +0 -24
- package/dist/app-config/lifecycle.d.ts.map +0 -1
- package/dist/app-config/lifecycle.js +0 -1
- package/dist/app-config/lifecycle.test.d.ts +0 -2
- package/dist/app-config/lifecycle.test.d.ts.map +0 -1
- package/dist/app-config/runtime.d.ts +0 -112
- package/dist/app-config/runtime.d.ts.map +0 -1
- package/dist/app-config/runtime.js +0 -734
- package/dist/app-config/runtime.test.d.ts +0 -2
- package/dist/app-config/runtime.test.d.ts.map +0 -1
- package/dist/app-config/spec.d.ts +0 -170
- package/dist/app-config/spec.d.ts.map +0 -1
- package/dist/app-config/spec.js +0 -229
- package/dist/app-config/spec.test.d.ts +0 -2
- package/dist/app-config/spec.test.d.ts.map +0 -1
- package/dist/app-config/validation.d.ts +0 -44
- package/dist/app-config/validation.d.ts.map +0 -1
- package/dist/app-config/validation.js +0 -650
- package/dist/app-config/validation.test.d.ts +0 -2
- package/dist/app-config/validation.test.d.ts.map +0 -1
- package/dist/capabilities/capabilities.d.ts +0 -97
- package/dist/capabilities/capabilities.d.ts.map +0 -1
- package/dist/capabilities/capabilities.js +0 -217
- package/dist/capabilities/capabilities.test.d.ts +0 -2
- package/dist/capabilities/capabilities.test.d.ts.map +0 -1
- package/dist/capabilities/context.d.ts +0 -111
- package/dist/capabilities/context.d.ts.map +0 -1
- package/dist/capabilities/context.js +0 -101
- package/dist/capabilities/context.test.d.ts +0 -2
- package/dist/capabilities/context.test.d.ts.map +0 -1
- package/dist/capabilities/docs/capabilities.docblock.d.ts +0 -3
- package/dist/capabilities/docs/capabilities.docblock.d.ts.map +0 -1
- package/dist/capabilities/docs/capabilities.docblock.js +0 -353
- package/dist/capabilities/guards.d.ts +0 -122
- package/dist/capabilities/guards.d.ts.map +0 -1
- package/dist/capabilities/guards.js +0 -177
- package/dist/capabilities/index.d.ts +0 -7
- package/dist/capabilities/index.d.ts.map +0 -1
- package/dist/capabilities/index.js +0 -739
- package/dist/capabilities/meeting-recorder.d.ts +0 -6
- package/dist/capabilities/meeting-recorder.d.ts.map +0 -1
- package/dist/capabilities/meeting-recorder.js +0 -154
- package/dist/capabilities/openbanking.d.ts +0 -6
- package/dist/capabilities/openbanking.d.ts.map +0 -1
- package/dist/capabilities/openbanking.js +0 -166
- package/dist/capabilities/validation.d.ts +0 -80
- package/dist/capabilities/validation.d.ts.map +0 -1
- package/dist/capabilities/validation.js +0 -185
- package/dist/capabilities/validation.test.d.ts +0 -2
- package/dist/capabilities/validation.test.d.ts.map +0 -1
- package/dist/client/index.d.ts +0 -2
- package/dist/client/index.d.ts.map +0 -1
- package/dist/client/index.js +0 -1379
- package/dist/client/react/drivers/rn-reusables.d.ts +0 -22
- package/dist/client/react/drivers/rn-reusables.d.ts.map +0 -1
- package/dist/client/react/drivers/rn-reusables.js +0 -38
- package/dist/client/react/drivers/shadcn.d.ts +0 -8
- package/dist/client/react/drivers/shadcn.d.ts.map +0 -1
- package/dist/client/react/drivers/shadcn.js +0 -38
- package/dist/client/react/feature-render.d.ts +0 -16
- package/dist/client/react/feature-render.d.ts.map +0 -1
- package/dist/client/react/feature-render.js +0 -833
- package/dist/client/react/form-render.d.ts +0 -87
- package/dist/client/react/form-render.d.ts.map +0 -1
- package/dist/client/react/form-render.js +0 -681
- package/dist/client/react/index.d.ts +0 -5
- package/dist/client/react/index.d.ts.map +0 -1
- package/dist/client/react/index.js +0 -1376
- package/dist/contract-registry/index.d.ts +0 -4
- package/dist/contract-registry/index.d.ts.map +0 -1
- package/dist/contract-registry/index.js +0 -129
- package/dist/contract-registry/schemas.d.ts +0 -121
- package/dist/contract-registry/schemas.d.ts.map +0 -1
- package/dist/contract-registry/schemas.js +0 -129
- package/dist/contract-registry/schemas.test.d.ts +0 -2
- package/dist/contract-registry/schemas.test.d.ts.map +0 -1
- package/dist/contract-registry/types.d.ts +0 -43
- package/dist/contract-registry/types.d.ts.map +0 -1
- package/dist/contract-registry/types.js +0 -1
- package/dist/data-views/data-views.d.ts +0 -5
- package/dist/data-views/data-views.d.ts.map +0 -1
- package/dist/data-views/data-views.js +0 -232
- package/dist/data-views/data-views.test.d.ts +0 -2
- package/dist/data-views/data-views.test.d.ts.map +0 -1
- package/dist/data-views/docs/data-views.docblock.d.ts +0 -3
- package/dist/data-views/docs/data-views.docblock.d.ts.map +0 -1
- package/dist/data-views/docs/data-views.docblock.js +0 -164
- package/dist/data-views/index.d.ts +0 -5
- package/dist/data-views/index.d.ts.map +0 -1
- package/dist/data-views/index.js +0 -232
- package/dist/data-views/query-generator.d.ts +0 -36
- package/dist/data-views/query-generator.d.ts.map +0 -1
- package/dist/data-views/query-generator.js +0 -89
- package/dist/data-views/registry.d.ts +0 -13
- package/dist/data-views/registry.d.ts.map +0 -1
- package/dist/data-views/registry.js +0 -226
- package/dist/data-views/registry.test.d.ts +0 -2
- package/dist/data-views/registry.test.d.ts.map +0 -1
- package/dist/data-views/report/contractVerificationTable.d.ts +0 -5
- package/dist/data-views/report/contractVerificationTable.d.ts.map +0 -1
- package/dist/data-views/report/contractVerificationTable.js +0 -240
- package/dist/data-views/report/contractVerificationTable.test.d.ts +0 -2
- package/dist/data-views/report/contractVerificationTable.test.d.ts.map +0 -1
- package/dist/data-views/runtime.d.ts +0 -26
- package/dist/data-views/runtime.d.ts.map +0 -1
- package/dist/data-views/runtime.js +0 -108
- package/dist/data-views/runtime.test.d.ts +0 -2
- package/dist/data-views/runtime.test.d.ts.map +0 -1
- package/dist/data-views/spec.d.ts +0 -23
- package/dist/data-views/spec.d.ts.map +0 -1
- package/dist/data-views/spec.js +0 -38
- package/dist/data-views/spec.test.d.ts +0 -2
- package/dist/data-views/spec.test.d.ts.map +0 -1
- package/dist/data-views/types.d.ts +0 -153
- package/dist/data-views/types.d.ts.map +0 -1
- package/dist/data-views/types.js +0 -1
- package/dist/data-views/types.test.d.ts +0 -2
- package/dist/data-views/types.test.d.ts.map +0 -1
- package/dist/docs/accessibility_wcag_compliance_specs.docblock.d.ts +0 -3
- package/dist/docs/accessibility_wcag_compliance_specs.docblock.d.ts.map +0 -1
- package/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -513
- package/dist/docs/capabilities/documentationSystem.capability.d.ts +0 -2
- package/dist/docs/capabilities/documentationSystem.capability.d.ts.map +0 -1
- package/dist/docs/capabilities/documentationSystem.capability.js +0 -784
- package/dist/docs/capabilities/index.d.ts +0 -2
- package/dist/docs/capabilities/index.d.ts.map +0 -1
- package/dist/docs/capabilities/index.js +0 -784
- package/dist/docs/commands/docsGenerate.command.d.ts +0 -89
- package/dist/docs/commands/docsGenerate.command.d.ts.map +0 -1
- package/dist/docs/commands/docsGenerate.command.js +0 -1016
- package/dist/docs/commands/docsPublish.command.d.ts +0 -58
- package/dist/docs/commands/docsPublish.command.d.ts.map +0 -1
- package/dist/docs/commands/docsPublish.command.js +0 -995
- package/dist/docs/commands/index.d.ts +0 -3
- package/dist/docs/commands/index.d.ts.map +0 -1
- package/dist/docs/commands/index.js +0 -1120
- package/dist/docs/constants.d.ts +0 -5
- package/dist/docs/constants.d.ts.map +0 -1
- package/dist/docs/constants.js +0 -78
- package/dist/docs/contracts.d.ts +0 -431
- package/dist/docs/contracts.d.ts.map +0 -1
- package/dist/docs/contracts.js +0 -2383
- package/dist/docs/ensure-docblocks.d.ts +0 -2
- package/dist/docs/ensure-docblocks.d.ts.map +0 -1
- package/dist/docs/ensure-docblocks.js +0 -264
- package/dist/docs/events/docsGenerated.event.d.ts +0 -57
- package/dist/docs/events/docsGenerated.event.d.ts.map +0 -1
- package/dist/docs/events/docsGenerated.event.js +0 -533
- package/dist/docs/events/docsPublished.event.d.ts +0 -65
- package/dist/docs/events/docsPublished.event.d.ts.map +0 -1
- package/dist/docs/events/docsPublished.event.js +0 -534
- package/dist/docs/events/index.d.ts +0 -3
- package/dist/docs/events/index.d.ts.map +0 -1
- package/dist/docs/events/index.js +0 -567
- package/dist/docs/forms/docsSearch.form.d.ts +0 -17
- package/dist/docs/forms/docsSearch.form.d.ts.map +0 -1
- package/dist/docs/forms/docsSearch.form.js +0 -676
- package/dist/docs/forms/index.d.ts +0 -2
- package/dist/docs/forms/index.d.ts.map +0 -1
- package/dist/docs/forms/index.js +0 -676
- package/dist/docs/index.d.ts +0 -41
- package/dist/docs/index.d.ts.map +0 -1
- package/dist/docs/index.js +0 -5491
- package/dist/docs/meta.docs.d.ts +0 -3
- package/dist/docs/meta.docs.d.ts.map +0 -1
- package/dist/docs/meta.docs.js +0 -176
- package/dist/docs/presentations/docsLayout.presentation.d.ts +0 -3
- package/dist/docs/presentations/docsLayout.presentation.d.ts.map +0 -1
- package/dist/docs/presentations/docsLayout.presentation.js +0 -1090
- package/dist/docs/presentations/docsReferencePage.presentation.d.ts +0 -3
- package/dist/docs/presentations/docsReferencePage.presentation.d.ts.map +0 -1
- package/dist/docs/presentations/docsReferencePage.presentation.js +0 -1090
- package/dist/docs/presentations/index.d.ts +0 -3
- package/dist/docs/presentations/index.d.ts.map +0 -1
- package/dist/docs/presentations/index.js +0 -1118
- package/dist/docs/presentations.d.ts +0 -28
- package/dist/docs/presentations.d.ts.map +0 -1
- package/dist/docs/presentations.js +0 -97
- package/dist/docs/presentations.test.d.ts +0 -2
- package/dist/docs/presentations.test.d.ts.map +0 -1
- package/dist/docs/queries/contractReference.query.d.ts +0 -212
- package/dist/docs/queries/contractReference.query.d.ts.map +0 -1
- package/dist/docs/queries/contractReference.query.js +0 -966
- package/dist/docs/queries/docsIndex.query.d.ts +0 -267
- package/dist/docs/queries/docsIndex.query.d.ts.map +0 -1
- package/dist/docs/queries/docsIndex.query.js +0 -966
- package/dist/docs/queries/index.d.ts +0 -3
- package/dist/docs/queries/index.d.ts.map +0 -1
- package/dist/docs/queries/index.js +0 -1041
- package/dist/docs/registry.d.ts +0 -20
- package/dist/docs/registry.d.ts.map +0 -1
- package/dist/docs/registry.js +0 -153
- package/dist/docs/registry.test.d.ts +0 -2
- package/dist/docs/registry.test.d.ts.map +0 -1
- package/dist/docs/tech/auth/better-auth-nextjs.docblock.d.ts +0 -3
- package/dist/docs/tech/auth/better-auth-nextjs.docblock.d.ts.map +0 -1
- package/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -221
- package/dist/docs/tech/cli.docblock.d.ts +0 -3
- package/dist/docs/tech/cli.docblock.d.ts.map +0 -1
- package/dist/docs/tech/cli.docblock.js +0 -291
- package/dist/docs/tech/contracts/README.docblock.d.ts +0 -3
- package/dist/docs/tech/contracts/README.docblock.d.ts.map +0 -1
- package/dist/docs/tech/contracts/README.docblock.js +0 -164
- package/dist/docs/tech/contracts/migrations.docblock.d.ts +0 -3
- package/dist/docs/tech/contracts/migrations.docblock.d.ts.map +0 -1
- package/dist/docs/tech/contracts/migrations.docblock.js +0 -164
- package/dist/docs/tech/contracts/openapi-export.docblock.d.ts +0 -3
- package/dist/docs/tech/contracts/openapi-export.docblock.d.ts.map +0 -1
- package/dist/docs/tech/contracts/openapi-export.docblock.js +0 -201
- package/dist/docs/tech/contracts/openapi-import.docblock.d.ts +0 -3
- package/dist/docs/tech/contracts/openapi-import.docblock.d.ts.map +0 -1
- package/dist/docs/tech/contracts/openapi-import.docblock.js +0 -207
- package/dist/docs/tech/contracts/ops-to-presentation-linking.docblock.d.ts +0 -3
- package/dist/docs/tech/contracts/ops-to-presentation-linking.docblock.d.ts.map +0 -1
- package/dist/docs/tech/contracts/ops-to-presentation-linking.docblock.js +0 -225
- package/dist/docs/tech/contracts/overlays.docblock.d.ts +0 -3
- package/dist/docs/tech/contracts/overlays.docblock.d.ts.map +0 -1
- package/dist/docs/tech/contracts/overlays.docblock.js +0 -231
- package/dist/docs/tech/contracts/tests.docblock.d.ts +0 -3
- package/dist/docs/tech/contracts/tests.docblock.d.ts.map +0 -1
- package/dist/docs/tech/contracts/tests.docblock.js +0 -164
- package/dist/docs/tech/contracts/themes.docblock.d.ts +0 -3
- package/dist/docs/tech/contracts/themes.docblock.d.ts.map +0 -1
- package/dist/docs/tech/contracts/themes.docblock.js +0 -257
- package/dist/docs/tech/contracts/vertical-pocket-family-office.docblock.d.ts +0 -3
- package/dist/docs/tech/contracts/vertical-pocket-family-office.docblock.d.ts.map +0 -1
- package/dist/docs/tech/contracts/vertical-pocket-family-office.docblock.js +0 -269
- package/dist/docs/tech/docs-system.docblock.d.ts +0 -2
- package/dist/docs/tech/docs-system.docblock.d.ts.map +0 -1
- package/dist/docs/tech/docs-system.docblock.js +0 -264
- package/dist/docs/tech/lifecycle-stage-system.docblock.d.ts +0 -3
- package/dist/docs/tech/lifecycle-stage-system.docblock.d.ts.map +0 -1
- package/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -376
- package/dist/docs/tech/llm/llm-integration.docblock.d.ts +0 -8
- package/dist/docs/tech/llm/llm-integration.docblock.d.ts.map +0 -1
- package/dist/docs/tech/llm/llm-integration.docblock.js +0 -482
- package/dist/docs/tech/mcp-endpoints.docblock.d.ts +0 -3
- package/dist/docs/tech/mcp-endpoints.docblock.d.ts.map +0 -1
- package/dist/docs/tech/mcp-endpoints.docblock.js +0 -185
- package/dist/docs/tech/presentation-runtime.docblock.d.ts +0 -3
- package/dist/docs/tech/presentation-runtime.docblock.d.ts.map +0 -1
- package/dist/docs/tech/presentation-runtime.docblock.js +0 -221
- package/dist/docs/tech/report-verification-table.docblock.d.ts +0 -2
- package/dist/docs/tech/report-verification-table.docblock.d.ts.map +0 -1
- package/dist/docs/tech/report-verification-table.docblock.js +0 -191
- package/dist/docs/tech/report-verification-table.test.d.ts +0 -2
- package/dist/docs/tech/report-verification-table.test.d.ts.map +0 -1
- package/dist/docs/tech/schema/README.docblock.d.ts +0 -3
- package/dist/docs/tech/schema/README.docblock.d.ts.map +0 -1
- package/dist/docs/tech/schema/README.docblock.js +0 -164
- package/dist/docs/tech/studio/learning-events.docblock.d.ts +0 -3
- package/dist/docs/tech/studio/learning-events.docblock.d.ts.map +0 -1
- package/dist/docs/tech/studio/learning-events.docblock.js +0 -190
- package/dist/docs/tech/studio/learning-journeys.docblock.d.ts +0 -3
- package/dist/docs/tech/studio/learning-journeys.docblock.d.ts.map +0 -1
- package/dist/docs/tech/studio/learning-journeys.docblock.js +0 -227
- package/dist/docs/tech/studio/platform-admin-panel.docblock.d.ts +0 -3
- package/dist/docs/tech/studio/platform-admin-panel.docblock.d.ts.map +0 -1
- package/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -226
- package/dist/docs/tech/studio/project-access-teams.docblock.d.ts +0 -3
- package/dist/docs/tech/studio/project-access-teams.docblock.d.ts.map +0 -1
- package/dist/docs/tech/studio/project-access-teams.docblock.js +0 -200
- package/dist/docs/tech/studio/project-routing.docblock.d.ts +0 -3
- package/dist/docs/tech/studio/project-routing.docblock.d.ts.map +0 -1
- package/dist/docs/tech/studio/project-routing.docblock.js +0 -209
- package/dist/docs/tech/studio/sandbox-unlogged.docblock.d.ts +0 -3
- package/dist/docs/tech/studio/sandbox-unlogged.docblock.d.ts.map +0 -1
- package/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -183
- package/dist/docs/tech/studio/team-invitations.docblock.d.ts +0 -3
- package/dist/docs/tech/studio/team-invitations.docblock.d.ts.map +0 -1
- package/dist/docs/tech/studio/team-invitations.docblock.js +0 -228
- package/dist/docs/tech/studio/workspace-ops.docblock.d.ts +0 -3
- package/dist/docs/tech/studio/workspace-ops.docblock.d.ts.map +0 -1
- package/dist/docs/tech/studio/workspace-ops.docblock.js +0 -189
- package/dist/docs/tech/studio/workspaces.docblock.d.ts +0 -3
- package/dist/docs/tech/studio/workspaces.docblock.d.ts.map +0 -1
- package/dist/docs/tech/studio/workspaces.docblock.js +0 -204
- package/dist/docs/tech/telemetry-ingest.docblock.d.ts +0 -3
- package/dist/docs/tech/telemetry-ingest.docblock.d.ts.map +0 -1
- package/dist/docs/tech/telemetry-ingest.docblock.js +0 -305
- package/dist/docs/tech/vscode-extension.docblock.d.ts +0 -3
- package/dist/docs/tech/vscode-extension.docblock.d.ts.map +0 -1
- package/dist/docs/tech/vscode-extension.docblock.js +0 -241
- package/dist/docs/tech-contracts.docs.d.ts +0 -3
- package/dist/docs/tech-contracts.docs.d.ts.map +0 -1
- package/dist/docs/tech-contracts.docs.js +0 -239
- package/dist/docs/types.d.ts +0 -38
- package/dist/docs/types.d.ts.map +0 -1
- package/dist/docs/types.js +0 -1
- package/dist/docs/views/contractReference.dataView.d.ts +0 -3
- package/dist/docs/views/contractReference.dataView.d.ts.map +0 -1
- package/dist/docs/views/contractReference.dataView.js +0 -1047
- package/dist/docs/views/docsIndex.dataView.d.ts +0 -3
- package/dist/docs/views/docsIndex.dataView.d.ts.map +0 -1
- package/dist/docs/views/docsIndex.dataView.js +0 -1041
- package/dist/docs/views/exampleCatalog.dataView.d.ts +0 -3
- package/dist/docs/views/exampleCatalog.dataView.d.ts.map +0 -1
- package/dist/docs/views/exampleCatalog.dataView.js +0 -1025
- package/dist/docs/views/index.d.ts +0 -4
- package/dist/docs/views/index.d.ts.map +0 -1
- package/dist/docs/views/index.js +0 -1240
- package/dist/events.d.ts +0 -143
- package/dist/events.d.ts.map +0 -1
- package/dist/events.js +0 -228
- package/dist/events.test.d.ts +0 -2
- package/dist/events.test.d.ts.map +0 -1
- package/dist/examples/docs/examples.docblock.d.ts +0 -3
- package/dist/examples/docs/examples.docblock.d.ts.map +0 -1
- package/dist/examples/docs/examples.docblock.js +0 -307
- package/dist/examples/index.d.ts +0 -12
- package/dist/examples/index.d.ts.map +0 -1
- package/dist/examples/index.js +0 -604
- package/dist/examples/registry.d.ts +0 -39
- package/dist/examples/registry.d.ts.map +0 -1
- package/dist/examples/registry.js +0 -286
- package/dist/examples/registry.test.d.ts +0 -2
- package/dist/examples/registry.test.d.ts.map +0 -1
- package/dist/examples/schema.d.ts +0 -279
- package/dist/examples/schema.d.ts.map +0 -1
- package/dist/examples/schema.js +0 -166
- package/dist/examples/schema.test.d.ts +0 -2
- package/dist/examples/schema.test.d.ts.map +0 -1
- package/dist/examples/types.d.ts +0 -163
- package/dist/examples/types.d.ts.map +0 -1
- package/dist/examples/types.js +0 -77
- package/dist/examples/types.test.d.ts +0 -2
- package/dist/examples/types.test.d.ts.map +0 -1
- package/dist/examples/validation.d.ts +0 -62
- package/dist/examples/validation.d.ts.map +0 -1
- package/dist/examples/validation.js +0 -287
- package/dist/examples/validation.test.d.ts +0 -2
- package/dist/examples/validation.test.d.ts.map +0 -1
- package/dist/experiments/docs/experiments.docblock.d.ts +0 -3
- package/dist/experiments/docs/experiments.docblock.d.ts.map +0 -1
- package/dist/experiments/docs/experiments.docblock.js +0 -291
- package/dist/experiments/evaluator.d.ts +0 -34
- package/dist/experiments/evaluator.d.ts.map +0 -1
- package/dist/experiments/evaluator.js +0 -155
- package/dist/experiments/evaluator.test.d.ts +0 -2
- package/dist/experiments/evaluator.test.d.ts.map +0 -1
- package/dist/experiments/spec-resolver.d.ts +0 -13
- package/dist/experiments/spec-resolver.d.ts.map +0 -1
- package/dist/experiments/spec-resolver.js +0 -1
- package/dist/experiments/spec.d.ts +0 -80
- package/dist/experiments/spec.d.ts.map +0 -1
- package/dist/experiments/spec.js +0 -227
- package/dist/experiments/spec.test.d.ts +0 -2
- package/dist/experiments/spec.test.d.ts.map +0 -1
- package/dist/features/index.d.ts +0 -10
- package/dist/features/index.d.ts.map +0 -1
- package/dist/features/index.js +0 -275
- package/dist/features/install.d.ts +0 -15
- package/dist/features/install.d.ts.map +0 -1
- package/dist/features/install.js +0 -95
- package/dist/features/install.test.d.ts +0 -2
- package/dist/features/install.test.d.ts.map +0 -1
- package/dist/features/registry.d.ts +0 -22
- package/dist/features/registry.d.ts.map +0 -1
- package/dist/features/registry.js +0 -192
- package/dist/features/registry.test.d.ts +0 -2
- package/dist/features/registry.test.d.ts.map +0 -1
- package/dist/features/types.d.ts +0 -79
- package/dist/features/types.d.ts.map +0 -1
- package/dist/features/types.js +0 -1
- package/dist/features/types.test.d.ts +0 -2
- package/dist/features/types.test.d.ts.map +0 -1
- package/dist/features/validation.d.ts +0 -5
- package/dist/features/validation.d.ts.map +0 -1
- package/dist/features/validation.js +0 -48
- package/dist/features/validation.test.d.ts +0 -2
- package/dist/features/validation.test.d.ts.map +0 -1
- package/dist/features.capabilities.test.d.ts +0 -2
- package/dist/features.capabilities.test.d.ts.map +0 -1
- package/dist/forms/docs/forms.docblock.d.ts +0 -3
- package/dist/forms/docs/forms.docblock.d.ts.map +0 -1
- package/dist/forms/docs/forms.docblock.js +0 -164
- package/dist/forms/forms.d.ts +0 -265
- package/dist/forms/forms.d.ts.map +0 -1
- package/dist/forms/forms.js +0 -332
- package/dist/forms/index.d.ts +0 -2
- package/dist/forms/index.d.ts.map +0 -1
- package/dist/forms/index.js +0 -332
- package/dist/index.d.ts +0 -50
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -18411
- package/dist/install.d.ts +0 -76
- package/dist/install.d.ts.map +0 -1
- package/dist/install.js +0 -60
- package/dist/integrations/binding.d.ts +0 -15
- package/dist/integrations/binding.d.ts.map +0 -1
- package/dist/integrations/binding.js +0 -1
- package/dist/integrations/connection.d.ts +0 -48
- package/dist/integrations/connection.d.ts.map +0 -1
- package/dist/integrations/connection.js +0 -1
- package/dist/integrations/docs/integrations.docblock.d.ts +0 -3
- package/dist/integrations/docs/integrations.docblock.d.ts.map +0 -1
- package/dist/integrations/docs/integrations.docblock.js +0 -255
- package/dist/integrations/health.d.ts +0 -18
- package/dist/integrations/health.d.ts.map +0 -1
- package/dist/integrations/health.js +0 -103
- package/dist/integrations/health.test.d.ts +0 -2
- package/dist/integrations/health.test.d.ts.map +0 -1
- package/dist/integrations/index.d.ts +0 -12
- package/dist/integrations/index.d.ts.map +0 -1
- package/dist/integrations/index.js +0 -3984
- package/dist/integrations/integrations.capability.d.ts +0 -2
- package/dist/integrations/integrations.capability.d.ts.map +0 -1
- package/dist/integrations/integrations.capability.js +0 -726
- package/dist/integrations/integrations.feature.d.ts +0 -6
- package/dist/integrations/integrations.feature.d.ts.map +0 -1
- package/dist/integrations/integrations.feature.js +0 -301
- package/dist/integrations/meeting-recorder/contracts/index.d.ts +0 -8
- package/dist/integrations/meeting-recorder/contracts/index.d.ts.map +0 -1
- package/dist/integrations/meeting-recorder/contracts/index.js +0 -1231
- package/dist/integrations/meeting-recorder/contracts/meetings.d.ts +0 -452
- package/dist/integrations/meeting-recorder/contracts/meetings.d.ts.map +0 -1
- package/dist/integrations/meeting-recorder/contracts/meetings.js +0 -866
- package/dist/integrations/meeting-recorder/contracts/transcripts.d.ts +0 -167
- package/dist/integrations/meeting-recorder/contracts/transcripts.d.ts.map +0 -1
- package/dist/integrations/meeting-recorder/contracts/transcripts.js +0 -933
- package/dist/integrations/meeting-recorder/contracts/webhooks.d.ts +0 -86
- package/dist/integrations/meeting-recorder/contracts/webhooks.d.ts.map +0 -1
- package/dist/integrations/meeting-recorder/contracts/webhooks.js +0 -819
- package/dist/integrations/meeting-recorder/meeting-recorder.capability.d.ts +0 -2
- package/dist/integrations/meeting-recorder/meeting-recorder.capability.d.ts.map +0 -1
- package/dist/integrations/meeting-recorder/meeting-recorder.capability.js +0 -726
- package/dist/integrations/meeting-recorder/meeting-recorder.feature.d.ts +0 -6
- package/dist/integrations/meeting-recorder/meeting-recorder.feature.d.ts.map +0 -1
- package/dist/integrations/meeting-recorder/meeting-recorder.feature.js +0 -301
- package/dist/integrations/meeting-recorder/models.d.ts +0 -403
- package/dist/integrations/meeting-recorder/models.d.ts.map +0 -1
- package/dist/integrations/meeting-recorder/models.js +0 -152
- package/dist/integrations/meeting-recorder/telemetry.d.ts +0 -14
- package/dist/integrations/meeting-recorder/telemetry.d.ts.map +0 -1
- package/dist/integrations/meeting-recorder/telemetry.js +0 -84
- package/dist/integrations/openbanking/contracts/accounts.d.ts +0 -283
- package/dist/integrations/openbanking/contracts/accounts.d.ts.map +0 -1
- package/dist/integrations/openbanking/contracts/accounts.js +0 -974
- package/dist/integrations/openbanking/contracts/balances.d.ts +0 -159
- package/dist/integrations/openbanking/contracts/balances.d.ts.map +0 -1
- package/dist/integrations/openbanking/contracts/balances.js +0 -938
- package/dist/integrations/openbanking/contracts/index.d.ts +0 -8
- package/dist/integrations/openbanking/contracts/index.d.ts.map +0 -1
- package/dist/integrations/openbanking/contracts/index.js +0 -1399
- package/dist/integrations/openbanking/contracts/transactions.d.ts +0 -207
- package/dist/integrations/openbanking/contracts/transactions.d.ts.map +0 -1
- package/dist/integrations/openbanking/contracts/transactions.js +0 -944
- package/dist/integrations/openbanking/guards.d.ts +0 -9
- package/dist/integrations/openbanking/guards.d.ts.map +0 -1
- package/dist/integrations/openbanking/guards.js +0 -72
- package/dist/integrations/openbanking/guards.test.d.ts +0 -2
- package/dist/integrations/openbanking/guards.test.d.ts.map +0 -1
- package/dist/integrations/openbanking/models.d.ts +0 -224
- package/dist/integrations/openbanking/models.d.ts.map +0 -1
- package/dist/integrations/openbanking/models.js +0 -140
- package/dist/integrations/openbanking/openbanking.capability.d.ts +0 -2
- package/dist/integrations/openbanking/openbanking.capability.d.ts.map +0 -1
- package/dist/integrations/openbanking/openbanking.capability.js +0 -726
- package/dist/integrations/openbanking/openbanking.feature.d.ts +0 -6
- package/dist/integrations/openbanking/openbanking.feature.d.ts.map +0 -1
- package/dist/integrations/openbanking/openbanking.feature.js +0 -303
- package/dist/integrations/openbanking/telemetry.d.ts +0 -13
- package/dist/integrations/openbanking/telemetry.d.ts.map +0 -1
- package/dist/integrations/openbanking/telemetry.js +0 -81
- package/dist/integrations/operations.d.ts +0 -431
- package/dist/integrations/operations.d.ts.map +0 -1
- package/dist/integrations/operations.js +0 -943
- package/dist/integrations/operations.test.d.ts +0 -2
- package/dist/integrations/operations.test.d.ts.map +0 -1
- package/dist/integrations/providers/analytics-reader.d.ts +0 -104
- package/dist/integrations/providers/analytics-reader.d.ts.map +0 -1
- package/dist/integrations/providers/analytics-reader.js +0 -1
- package/dist/integrations/providers/analytics-writer.d.ts +0 -7
- package/dist/integrations/providers/analytics-writer.d.ts.map +0 -1
- package/dist/integrations/providers/analytics-writer.js +0 -1
- package/dist/integrations/providers/analytics.d.ts +0 -48
- package/dist/integrations/providers/analytics.d.ts.map +0 -1
- package/dist/integrations/providers/analytics.js +0 -1
- package/dist/integrations/providers/calendar.d.ts +0 -76
- package/dist/integrations/providers/calendar.d.ts.map +0 -1
- package/dist/integrations/providers/calendar.js +0 -1
- package/dist/integrations/providers/database.d.ts +0 -13
- package/dist/integrations/providers/database.d.ts.map +0 -1
- package/dist/integrations/providers/database.js +0 -1
- package/dist/integrations/providers/elevenlabs.d.ts +0 -4
- package/dist/integrations/providers/elevenlabs.d.ts.map +0 -1
- package/dist/integrations/providers/elevenlabs.js +0 -331
- package/dist/integrations/providers/email.d.ts +0 -84
- package/dist/integrations/providers/email.d.ts.map +0 -1
- package/dist/integrations/providers/email.js +0 -1
- package/dist/integrations/providers/embedding.d.ts +0 -22
- package/dist/integrations/providers/embedding.d.ts.map +0 -1
- package/dist/integrations/providers/embedding.js +0 -1
- package/dist/integrations/providers/fal.d.ts +0 -4
- package/dist/integrations/providers/fal.d.ts.map +0 -1
- package/dist/integrations/providers/fal.js +0 -357
- package/dist/integrations/providers/fathom.d.ts +0 -4
- package/dist/integrations/providers/fathom.d.ts.map +0 -1
- package/dist/integrations/providers/fathom.js +0 -371
- package/dist/integrations/providers/fireflies.d.ts +0 -4
- package/dist/integrations/providers/fireflies.d.ts.map +0 -1
- package/dist/integrations/providers/fireflies.js +0 -351
- package/dist/integrations/providers/gcs-storage.d.ts +0 -4
- package/dist/integrations/providers/gcs-storage.d.ts.map +0 -1
- package/dist/integrations/providers/gcs-storage.js +0 -342
- package/dist/integrations/providers/gmail.d.ts +0 -4
- package/dist/integrations/providers/gmail.d.ts.map +0 -1
- package/dist/integrations/providers/gmail.js +0 -354
- package/dist/integrations/providers/google-calendar.d.ts +0 -4
- package/dist/integrations/providers/google-calendar.d.ts.map +0 -1
- package/dist/integrations/providers/google-calendar.js +0 -337
- package/dist/integrations/providers/gradium.d.ts +0 -4
- package/dist/integrations/providers/gradium.d.ts.map +0 -1
- package/dist/integrations/providers/gradium.js +0 -355
- package/dist/integrations/providers/granola.d.ts +0 -4
- package/dist/integrations/providers/granola.d.ts.map +0 -1
- package/dist/integrations/providers/granola.js +0 -352
- package/dist/integrations/providers/index.d.ts +0 -39
- package/dist/integrations/providers/index.d.ts.map +0 -1
- package/dist/integrations/providers/index.js +0 -2317
- package/dist/integrations/providers/jira.d.ts +0 -4
- package/dist/integrations/providers/jira.d.ts.map +0 -1
- package/dist/integrations/providers/jira.js +0 -353
- package/dist/integrations/providers/linear.d.ts +0 -4
- package/dist/integrations/providers/linear.d.ts.map +0 -1
- package/dist/integrations/providers/linear.js +0 -352
- package/dist/integrations/providers/llm.d.ts +0 -80
- package/dist/integrations/providers/llm.d.ts.map +0 -1
- package/dist/integrations/providers/llm.js +0 -1
- package/dist/integrations/providers/meeting-recorder.d.ts +0 -130
- package/dist/integrations/providers/meeting-recorder.d.ts.map +0 -1
- package/dist/integrations/providers/meeting-recorder.js +0 -1
- package/dist/integrations/providers/mistral.d.ts +0 -4
- package/dist/integrations/providers/mistral.d.ts.map +0 -1
- package/dist/integrations/providers/mistral.js +0 -339
- package/dist/integrations/providers/notion.d.ts +0 -4
- package/dist/integrations/providers/notion.d.ts.map +0 -1
- package/dist/integrations/providers/notion.js +0 -358
- package/dist/integrations/providers/openbanking.d.ts +0 -126
- package/dist/integrations/providers/openbanking.d.ts.map +0 -1
- package/dist/integrations/providers/openbanking.js +0 -1
- package/dist/integrations/providers/payments.d.ts +0 -107
- package/dist/integrations/providers/payments.d.ts.map +0 -1
- package/dist/integrations/providers/payments.js +0 -1
- package/dist/integrations/providers/posthog-llm-telemetry.d.ts +0 -52
- package/dist/integrations/providers/posthog-llm-telemetry.d.ts.map +0 -1
- package/dist/integrations/providers/posthog-llm-telemetry.js +0 -241
- package/dist/integrations/providers/posthog.d.ts +0 -4
- package/dist/integrations/providers/posthog.d.ts.map +0 -1
- package/dist/integrations/providers/posthog.js +0 -351
- package/dist/integrations/providers/postmark.d.ts +0 -4
- package/dist/integrations/providers/postmark.d.ts.map +0 -1
- package/dist/integrations/providers/postmark.js +0 -343
- package/dist/integrations/providers/powens.d.ts +0 -4
- package/dist/integrations/providers/powens.d.ts.map +0 -1
- package/dist/integrations/providers/powens.js +0 -369
- package/dist/integrations/providers/project-management.d.ts +0 -33
- package/dist/integrations/providers/project-management.d.ts.map +0 -1
- package/dist/integrations/providers/project-management.js +0 -1
- package/dist/integrations/providers/providers.test.d.ts +0 -2
- package/dist/integrations/providers/providers.test.d.ts.map +0 -1
- package/dist/integrations/providers/qdrant.d.ts +0 -4
- package/dist/integrations/providers/qdrant.d.ts.map +0 -1
- package/dist/integrations/providers/qdrant.js +0 -346
- package/dist/integrations/providers/registry.d.ts +0 -7
- package/dist/integrations/providers/registry.d.ts.map +0 -1
- package/dist/integrations/providers/registry.js +0 -2102
- package/dist/integrations/providers/sms.d.ts +0 -32
- package/dist/integrations/providers/sms.d.ts.map +0 -1
- package/dist/integrations/providers/sms.js +0 -1
- package/dist/integrations/providers/storage.d.ts +0 -58
- package/dist/integrations/providers/storage.d.ts.map +0 -1
- package/dist/integrations/providers/storage.js +0 -1
- package/dist/integrations/providers/stripe.d.ts +0 -4
- package/dist/integrations/providers/stripe.d.ts.map +0 -1
- package/dist/integrations/providers/stripe.js +0 -350
- package/dist/integrations/providers/supabase-postgres.d.ts +0 -4
- package/dist/integrations/providers/supabase-postgres.d.ts.map +0 -1
- package/dist/integrations/providers/supabase-postgres.js +0 -332
- package/dist/integrations/providers/supabase-vector.d.ts +0 -4
- package/dist/integrations/providers/supabase-vector.d.ts.map +0 -1
- package/dist/integrations/providers/supabase-vector.js +0 -352
- package/dist/integrations/providers/tldv.d.ts +0 -4
- package/dist/integrations/providers/tldv.d.ts.map +0 -1
- package/dist/integrations/providers/tldv.js +0 -351
- package/dist/integrations/providers/twilio-sms.d.ts +0 -4
- package/dist/integrations/providers/twilio-sms.d.ts.map +0 -1
- package/dist/integrations/providers/twilio-sms.js +0 -336
- package/dist/integrations/providers/vector-store.d.ts +0 -40
- package/dist/integrations/providers/vector-store.d.ts.map +0 -1
- package/dist/integrations/providers/vector-store.js +0 -1
- package/dist/integrations/providers/voice.d.ts +0 -32
- package/dist/integrations/providers/voice.d.ts.map +0 -1
- package/dist/integrations/providers/voice.js +0 -1
- package/dist/integrations/runtime.d.ts +0 -96
- package/dist/integrations/runtime.d.ts.map +0 -1
- package/dist/integrations/runtime.js +0 -239
- package/dist/integrations/runtime.test.d.ts +0 -2
- package/dist/integrations/runtime.test.d.ts.map +0 -1
- package/dist/integrations/secrets/aws-secret-manager.d.ts +0 -29
- package/dist/integrations/secrets/aws-secret-manager.d.ts.map +0 -1
- package/dist/integrations/secrets/aws-secret-manager.js +0 -376
- package/dist/integrations/secrets/env-secret-provider.d.ts +0 -29
- package/dist/integrations/secrets/env-secret-provider.d.ts.map +0 -1
- package/dist/integrations/secrets/env-secret-provider.js +0 -189
- package/dist/integrations/secrets/gcp-secret-manager.d.ts +0 -30
- package/dist/integrations/secrets/gcp-secret-manager.d.ts.map +0 -1
- package/dist/integrations/secrets/gcp-secret-manager.js +0 -377
- package/dist/integrations/secrets/index.d.ts +0 -7
- package/dist/integrations/secrets/index.d.ts.map +0 -1
- package/dist/integrations/secrets/index.js +0 -1159
- package/dist/integrations/secrets/manager.d.ts +0 -45
- package/dist/integrations/secrets/manager.d.ts.map +0 -1
- package/dist/integrations/secrets/manager.js +0 -213
- package/dist/integrations/secrets/provider.d.ts +0 -50
- package/dist/integrations/secrets/provider.d.ts.map +0 -1
- package/dist/integrations/secrets/provider.js +0 -104
- package/dist/integrations/secrets/provider.test.d.ts +0 -2
- package/dist/integrations/secrets/provider.test.d.ts.map +0 -1
- package/dist/integrations/secrets/scaleway-secret-manager.d.ts +0 -36
- package/dist/integrations/secrets/scaleway-secret-manager.d.ts.map +0 -1
- package/dist/integrations/secrets/scaleway-secret-manager.js +0 -405
- package/dist/integrations/secrets-types.d.ts +0 -15
- package/dist/integrations/secrets-types.d.ts.map +0 -1
- package/dist/integrations/secrets-types.js +0 -1
- package/dist/integrations/spec.d.ts +0 -73
- package/dist/integrations/spec.d.ts.map +0 -1
- package/dist/integrations/spec.js +0 -232
- package/dist/integrations/spec.test.d.ts +0 -2
- package/dist/integrations/spec.test.d.ts.map +0 -1
- package/dist/jobs/define-job.d.ts +0 -16
- package/dist/jobs/define-job.d.ts.map +0 -1
- package/dist/jobs/define-job.js +0 -41
- package/dist/jobs/gcp-cloud-tasks.d.ts +0 -39
- package/dist/jobs/gcp-cloud-tasks.d.ts.map +0 -1
- package/dist/jobs/gcp-cloud-tasks.js +0 -103
- package/dist/jobs/gcp-pubsub.d.ts +0 -23
- package/dist/jobs/gcp-pubsub.d.ts.map +0 -1
- package/dist/jobs/gcp-pubsub.js +0 -91
- package/dist/jobs/handlers/gmail-sync-handler.d.ts +0 -6
- package/dist/jobs/handlers/gmail-sync-handler.d.ts.map +0 -1
- package/dist/jobs/handlers/gmail-sync-handler.js +0 -40
- package/dist/jobs/handlers/handlers.test.d.ts +0 -2
- package/dist/jobs/handlers/handlers.test.d.ts.map +0 -1
- package/dist/jobs/handlers/index.d.ts +0 -6
- package/dist/jobs/handlers/index.d.ts.map +0 -1
- package/dist/jobs/handlers/index.js +0 -83
- package/dist/jobs/handlers/ping-handler.d.ts +0 -7
- package/dist/jobs/handlers/ping-handler.d.ts.map +0 -1
- package/dist/jobs/handlers/ping-handler.js +0 -47
- package/dist/jobs/handlers/storage-document-handler.d.ts +0 -9
- package/dist/jobs/handlers/storage-document-handler.d.ts.map +0 -1
- package/dist/jobs/handlers/storage-document-handler.js +0 -47
- package/dist/jobs/index.d.ts +0 -3
- package/dist/jobs/index.d.ts.map +0 -1
- package/dist/jobs/index.js +0 -64
- package/dist/jobs/memory-queue.d.ts +0 -15
- package/dist/jobs/memory-queue.d.ts.map +0 -1
- package/dist/jobs/memory-queue.js +0 -129
- package/dist/jobs/queue.d.ts +0 -127
- package/dist/jobs/queue.d.ts.map +0 -1
- package/dist/jobs/queue.js +0 -55
- package/dist/jobs/queue.test.d.ts +0 -2
- package/dist/jobs/queue.test.d.ts.map +0 -1
- package/dist/jobs/scaleway-sqs-queue.d.ts +0 -28
- package/dist/jobs/scaleway-sqs-queue.d.ts.map +0 -1
- package/dist/jobs/scaleway-sqs-queue.js +0 -222
- package/dist/jsonschema.d.ts +0 -40
- package/dist/jsonschema.d.ts.map +0 -1
- package/dist/jsonschema.js +0 -73
- package/dist/jsonschema.test.d.ts +0 -2
- package/dist/jsonschema.test.d.ts.map +0 -1
- package/dist/knowledge/binding.d.ts +0 -23
- package/dist/knowledge/binding.d.ts.map +0 -1
- package/dist/knowledge/binding.js +0 -1
- package/dist/knowledge/docs/knowledge.docblock.d.ts +0 -3
- package/dist/knowledge/docs/knowledge.docblock.d.ts.map +0 -1
- package/dist/knowledge/docs/knowledge.docblock.js +0 -301
- package/dist/knowledge/index.d.ts +0 -5
- package/dist/knowledge/index.d.ts.map +0 -1
- package/dist/knowledge/index.js +0 -468
- package/dist/knowledge/ingestion/document-processor.d.ts +0 -23
- package/dist/knowledge/ingestion/document-processor.d.ts.map +0 -1
- package/dist/knowledge/ingestion/document-processor.js +0 -95
- package/dist/knowledge/ingestion/embedding-service.d.ts +0 -9
- package/dist/knowledge/ingestion/embedding-service.d.ts.map +0 -1
- package/dist/knowledge/ingestion/embedding-service.js +0 -57
- package/dist/knowledge/ingestion/gmail-adapter.d.ts +0 -15
- package/dist/knowledge/ingestion/gmail-adapter.d.ts.map +0 -1
- package/dist/knowledge/ingestion/gmail-adapter.js +0 -103
- package/dist/knowledge/ingestion/index.d.ts +0 -6
- package/dist/knowledge/ingestion/index.d.ts.map +0 -1
- package/dist/knowledge/ingestion/index.js +0 -252
- package/dist/knowledge/ingestion/ingestion.test.d.ts +0 -2
- package/dist/knowledge/ingestion/ingestion.test.d.ts.map +0 -1
- package/dist/knowledge/ingestion/storage-adapter.d.ts +0 -12
- package/dist/knowledge/ingestion/storage-adapter.d.ts.map +0 -1
- package/dist/knowledge/ingestion/storage-adapter.js +0 -62
- package/dist/knowledge/ingestion/vector-indexer.d.ts +0 -15
- package/dist/knowledge/ingestion/vector-indexer.d.ts.map +0 -1
- package/dist/knowledge/ingestion/vector-indexer.js +0 -63
- package/dist/knowledge/knowledge.capability.d.ts +0 -2
- package/dist/knowledge/knowledge.capability.d.ts.map +0 -1
- package/dist/knowledge/knowledge.capability.js +0 -726
- package/dist/knowledge/knowledge.feature.d.ts +0 -6
- package/dist/knowledge/knowledge.feature.d.ts.map +0 -1
- package/dist/knowledge/knowledge.feature.js +0 -301
- package/dist/knowledge/operations.d.ts +0 -312
- package/dist/knowledge/operations.d.ts.map +0 -1
- package/dist/knowledge/operations.js +0 -869
- package/dist/knowledge/operations.test.d.ts +0 -2
- package/dist/knowledge/operations.test.d.ts.map +0 -1
- package/dist/knowledge/query/index.d.ts +0 -2
- package/dist/knowledge/query/index.d.ts.map +0 -1
- package/dist/knowledge/query/index.js +0 -110
- package/dist/knowledge/query/service.d.ts +0 -26
- package/dist/knowledge/query/service.d.ts.map +0 -1
- package/dist/knowledge/query/service.js +0 -110
- package/dist/knowledge/query/service.test.d.ts +0 -2
- package/dist/knowledge/query/service.test.d.ts.map +0 -1
- package/dist/knowledge/runtime.d.ts +0 -29
- package/dist/knowledge/runtime.d.ts.map +0 -1
- package/dist/knowledge/runtime.js +0 -91
- package/dist/knowledge/runtime.test.d.ts +0 -2
- package/dist/knowledge/runtime.test.d.ts.map +0 -1
- package/dist/knowledge/source.d.ts +0 -30
- package/dist/knowledge/source.d.ts.map +0 -1
- package/dist/knowledge/source.js +0 -1
- package/dist/knowledge/spaces/email-threads.d.ts +0 -4
- package/dist/knowledge/spaces/email-threads.d.ts.map +0 -1
- package/dist/knowledge/spaces/email-threads.js +0 -102
- package/dist/knowledge/spaces/financial-docs.d.ts +0 -4
- package/dist/knowledge/spaces/financial-docs.d.ts.map +0 -1
- package/dist/knowledge/spaces/financial-docs.js +0 -102
- package/dist/knowledge/spaces/financial-overview.d.ts +0 -4
- package/dist/knowledge/spaces/financial-overview.d.ts.map +0 -1
- package/dist/knowledge/spaces/financial-overview.js +0 -102
- package/dist/knowledge/spaces/index.d.ts +0 -7
- package/dist/knowledge/spaces/index.d.ts.map +0 -1
- package/dist/knowledge/spaces/index.js +0 -273
- package/dist/knowledge/spaces/product-canon.d.ts +0 -4
- package/dist/knowledge/spaces/product-canon.d.ts.map +0 -1
- package/dist/knowledge/spaces/product-canon.js +0 -102
- package/dist/knowledge/spaces/spaces.test.d.ts +0 -2
- package/dist/knowledge/spaces/spaces.test.d.ts.map +0 -1
- package/dist/knowledge/spaces/support-faq.d.ts +0 -4
- package/dist/knowledge/spaces/support-faq.d.ts.map +0 -1
- package/dist/knowledge/spaces/support-faq.js +0 -103
- package/dist/knowledge/spaces/uploaded-docs.d.ts +0 -4
- package/dist/knowledge/spaces/uploaded-docs.d.ts.map +0 -1
- package/dist/knowledge/spaces/uploaded-docs.js +0 -102
- package/dist/knowledge/spec.d.ts +0 -43
- package/dist/knowledge/spec.d.ts.map +0 -1
- package/dist/knowledge/spec.js +0 -228
- package/dist/knowledge/spec.test.d.ts +0 -2
- package/dist/knowledge/spec.test.d.ts.map +0 -1
- package/dist/llm/exporters.d.ts +0 -69
- package/dist/llm/exporters.d.ts.map +0 -1
- package/dist/llm/exporters.js +0 -1261
- package/dist/llm/index.d.ts +0 -13
- package/dist/llm/index.d.ts.map +0 -1
- package/dist/llm/index.js +0 -1715
- package/dist/llm/prompts.d.ts +0 -54
- package/dist/llm/prompts.d.ts.map +0 -1
- package/dist/llm/prompts.js +0 -1706
- package/dist/llm/types.d.ts +0 -213
- package/dist/llm/types.d.ts.map +0 -1
- package/dist/llm/types.js +0 -1
- package/dist/markdown.d.ts +0 -17
- package/dist/markdown.d.ts.map +0 -1
- package/dist/markdown.js +0 -779
- package/dist/migrations.d.ts +0 -49
- package/dist/migrations.d.ts.map +0 -1
- package/dist/migrations.js +0 -67
- package/dist/migrations.test.d.ts +0 -2
- package/dist/migrations.test.d.ts.map +0 -1
- package/dist/model-registry.d.ts +0 -10
- package/dist/model-registry.d.ts.map +0 -1
- package/dist/model-registry.js +0 -64
- package/dist/model-registry.test.d.ts +0 -2
- package/dist/model-registry.test.d.ts.map +0 -1
- package/dist/node/app-config/app-config.capability.js +0 -730
- package/dist/node/app-config/app-config.contracts.js +0 -927
- package/dist/node/app-config/app-config.feature.js +0 -255
- package/dist/node/app-config/branding.js +0 -0
- package/dist/node/app-config/docs/app-config.docblock.js +0 -383
- package/dist/node/app-config/events.js +0 -386
- package/dist/node/app-config/index.js +0 -3113
- package/dist/node/app-config/lifecycle-contracts.js +0 -1084
- package/dist/node/app-config/lifecycle.js +0 -0
- package/dist/node/app-config/runtime.js +0 -734
- package/dist/node/app-config/spec.js +0 -229
- package/dist/node/app-config/validation.js +0 -650
- package/dist/node/capabilities/capabilities.js +0 -217
- package/dist/node/capabilities/context.js +0 -101
- package/dist/node/capabilities/docs/capabilities.docblock.js +0 -353
- package/dist/node/capabilities/guards.js +0 -177
- package/dist/node/capabilities/index.js +0 -739
- package/dist/node/capabilities/meeting-recorder.js +0 -154
- package/dist/node/capabilities/openbanking.js +0 -166
- package/dist/node/capabilities/validation.js +0 -185
- package/dist/node/client/index.js +0 -1379
- package/dist/node/client/react/drivers/rn-reusables.js +0 -38
- package/dist/node/client/react/drivers/shadcn.js +0 -38
- package/dist/node/client/react/feature-render.js +0 -833
- package/dist/node/client/react/form-render.js +0 -681
- package/dist/node/client/react/index.js +0 -1376
- package/dist/node/contract-registry/index.js +0 -129
- package/dist/node/contract-registry/schemas.js +0 -129
- package/dist/node/contract-registry/types.js +0 -0
- package/dist/node/data-views/data-views.js +0 -232
- package/dist/node/data-views/docs/data-views.docblock.js +0 -164
- package/dist/node/data-views/index.js +0 -232
- package/dist/node/data-views/query-generator.js +0 -89
- package/dist/node/data-views/registry.js +0 -226
- package/dist/node/data-views/report/contractVerificationTable.js +0 -240
- package/dist/node/data-views/runtime.js +0 -108
- package/dist/node/data-views/spec.js +0 -38
- package/dist/node/data-views/types.js +0 -0
- package/dist/node/docs/accessibility_wcag_compliance_specs.docblock.js +0 -513
- package/dist/node/docs/capabilities/documentationSystem.capability.js +0 -784
- package/dist/node/docs/capabilities/index.js +0 -784
- package/dist/node/docs/commands/docsGenerate.command.js +0 -1016
- package/dist/node/docs/commands/docsPublish.command.js +0 -995
- package/dist/node/docs/commands/index.js +0 -1120
- package/dist/node/docs/constants.js +0 -78
- package/dist/node/docs/contracts.js +0 -2383
- package/dist/node/docs/ensure-docblocks.js +0 -264
- package/dist/node/docs/events/docsGenerated.event.js +0 -533
- package/dist/node/docs/events/docsPublished.event.js +0 -534
- package/dist/node/docs/events/index.js +0 -567
- package/dist/node/docs/forms/docsSearch.form.js +0 -676
- package/dist/node/docs/forms/index.js +0 -676
- package/dist/node/docs/index.js +0 -5491
- package/dist/node/docs/meta.docs.js +0 -176
- package/dist/node/docs/presentations/docsLayout.presentation.js +0 -1090
- package/dist/node/docs/presentations/docsReferencePage.presentation.js +0 -1090
- package/dist/node/docs/presentations/index.js +0 -1118
- package/dist/node/docs/presentations.js +0 -97
- package/dist/node/docs/queries/contractReference.query.js +0 -966
- package/dist/node/docs/queries/docsIndex.query.js +0 -966
- package/dist/node/docs/queries/index.js +0 -1041
- package/dist/node/docs/registry.js +0 -153
- package/dist/node/docs/tech/auth/better-auth-nextjs.docblock.js +0 -221
- package/dist/node/docs/tech/cli.docblock.js +0 -291
- package/dist/node/docs/tech/contracts/README.docblock.js +0 -164
- package/dist/node/docs/tech/contracts/migrations.docblock.js +0 -164
- package/dist/node/docs/tech/contracts/openapi-export.docblock.js +0 -201
- package/dist/node/docs/tech/contracts/openapi-import.docblock.js +0 -207
- package/dist/node/docs/tech/contracts/ops-to-presentation-linking.docblock.js +0 -225
- package/dist/node/docs/tech/contracts/overlays.docblock.js +0 -231
- package/dist/node/docs/tech/contracts/tests.docblock.js +0 -164
- package/dist/node/docs/tech/contracts/themes.docblock.js +0 -257
- package/dist/node/docs/tech/contracts/vertical-pocket-family-office.docblock.js +0 -269
- package/dist/node/docs/tech/docs-system.docblock.js +0 -264
- package/dist/node/docs/tech/lifecycle-stage-system.docblock.js +0 -376
- package/dist/node/docs/tech/llm/llm-integration.docblock.js +0 -482
- package/dist/node/docs/tech/mcp-endpoints.docblock.js +0 -185
- package/dist/node/docs/tech/presentation-runtime.docblock.js +0 -221
- package/dist/node/docs/tech/report-verification-table.docblock.js +0 -191
- package/dist/node/docs/tech/schema/README.docblock.js +0 -164
- package/dist/node/docs/tech/studio/learning-events.docblock.js +0 -190
- package/dist/node/docs/tech/studio/learning-journeys.docblock.js +0 -227
- package/dist/node/docs/tech/studio/platform-admin-panel.docblock.js +0 -226
- package/dist/node/docs/tech/studio/project-access-teams.docblock.js +0 -200
- package/dist/node/docs/tech/studio/project-routing.docblock.js +0 -209
- package/dist/node/docs/tech/studio/sandbox-unlogged.docblock.js +0 -183
- package/dist/node/docs/tech/studio/team-invitations.docblock.js +0 -228
- package/dist/node/docs/tech/studio/workspace-ops.docblock.js +0 -189
- package/dist/node/docs/tech/studio/workspaces.docblock.js +0 -204
- package/dist/node/docs/tech/telemetry-ingest.docblock.js +0 -305
- package/dist/node/docs/tech/vscode-extension.docblock.js +0 -241
- package/dist/node/docs/tech-contracts.docs.js +0 -239
- package/dist/node/docs/types.js +0 -0
- package/dist/node/docs/views/contractReference.dataView.js +0 -1047
- package/dist/node/docs/views/docsIndex.dataView.js +0 -1041
- package/dist/node/docs/views/exampleCatalog.dataView.js +0 -1025
- package/dist/node/docs/views/index.js +0 -1240
- package/dist/node/events.js +0 -228
- package/dist/node/examples/docs/examples.docblock.js +0 -307
- package/dist/node/examples/index.js +0 -604
- package/dist/node/examples/registry.js +0 -286
- package/dist/node/examples/schema.js +0 -166
- package/dist/node/examples/types.js +0 -77
- package/dist/node/examples/validation.js +0 -287
- package/dist/node/experiments/docs/experiments.docblock.js +0 -291
- package/dist/node/experiments/evaluator.js +0 -155
- package/dist/node/experiments/spec-resolver.js +0 -0
- package/dist/node/experiments/spec.js +0 -227
- package/dist/node/features/index.js +0 -275
- package/dist/node/features/install.js +0 -95
- package/dist/node/features/registry.js +0 -192
- package/dist/node/features/types.js +0 -0
- package/dist/node/features/validation.js +0 -48
- package/dist/node/forms/docs/forms.docblock.js +0 -164
- package/dist/node/forms/forms.js +0 -332
- package/dist/node/forms/index.js +0 -332
- package/dist/node/index.js +0 -18411
- package/dist/node/install.js +0 -60
- package/dist/node/integrations/binding.js +0 -0
- package/dist/node/integrations/connection.js +0 -0
- package/dist/node/integrations/docs/integrations.docblock.js +0 -255
- package/dist/node/integrations/health.js +0 -103
- package/dist/node/integrations/index.js +0 -3984
- package/dist/node/integrations/integrations.capability.js +0 -726
- package/dist/node/integrations/integrations.feature.js +0 -301
- package/dist/node/integrations/meeting-recorder/contracts/index.js +0 -1231
- package/dist/node/integrations/meeting-recorder/contracts/meetings.js +0 -866
- package/dist/node/integrations/meeting-recorder/contracts/transcripts.js +0 -933
- package/dist/node/integrations/meeting-recorder/contracts/webhooks.js +0 -819
- package/dist/node/integrations/meeting-recorder/meeting-recorder.capability.js +0 -726
- package/dist/node/integrations/meeting-recorder/meeting-recorder.feature.js +0 -301
- package/dist/node/integrations/meeting-recorder/models.js +0 -152
- package/dist/node/integrations/meeting-recorder/telemetry.js +0 -84
- package/dist/node/integrations/openbanking/contracts/accounts.js +0 -974
- package/dist/node/integrations/openbanking/contracts/balances.js +0 -938
- package/dist/node/integrations/openbanking/contracts/index.js +0 -1399
- package/dist/node/integrations/openbanking/contracts/transactions.js +0 -944
- package/dist/node/integrations/openbanking/guards.js +0 -72
- package/dist/node/integrations/openbanking/models.js +0 -140
- package/dist/node/integrations/openbanking/openbanking.capability.js +0 -726
- package/dist/node/integrations/openbanking/openbanking.feature.js +0 -303
- package/dist/node/integrations/openbanking/telemetry.js +0 -81
- package/dist/node/integrations/operations.js +0 -943
- 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 +0 -331
- 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 +0 -357
- package/dist/node/integrations/providers/fathom.js +0 -371
- package/dist/node/integrations/providers/fireflies.js +0 -351
- package/dist/node/integrations/providers/gcs-storage.js +0 -342
- package/dist/node/integrations/providers/gmail.js +0 -354
- package/dist/node/integrations/providers/google-calendar.js +0 -337
- package/dist/node/integrations/providers/gradium.js +0 -355
- package/dist/node/integrations/providers/granola.js +0 -352
- package/dist/node/integrations/providers/index.js +0 -2317
- package/dist/node/integrations/providers/jira.js +0 -353
- package/dist/node/integrations/providers/linear.js +0 -352
- 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 +0 -339
- package/dist/node/integrations/providers/notion.js +0 -358
- 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 +0 -241
- package/dist/node/integrations/providers/posthog.js +0 -351
- package/dist/node/integrations/providers/postmark.js +0 -343
- package/dist/node/integrations/providers/powens.js +0 -369
- package/dist/node/integrations/providers/project-management.js +0 -0
- package/dist/node/integrations/providers/qdrant.js +0 -346
- package/dist/node/integrations/providers/registry.js +0 -2102
- 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 +0 -350
- package/dist/node/integrations/providers/supabase-postgres.js +0 -332
- package/dist/node/integrations/providers/supabase-vector.js +0 -352
- package/dist/node/integrations/providers/tldv.js +0 -351
- package/dist/node/integrations/providers/twilio-sms.js +0 -336
- 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 +0 -239
- package/dist/node/integrations/secrets/aws-secret-manager.js +0 -376
- package/dist/node/integrations/secrets/env-secret-provider.js +0 -189
- package/dist/node/integrations/secrets/gcp-secret-manager.js +0 -377
- package/dist/node/integrations/secrets/index.js +0 -1159
- package/dist/node/integrations/secrets/manager.js +0 -213
- package/dist/node/integrations/secrets/provider.js +0 -104
- package/dist/node/integrations/secrets/scaleway-secret-manager.js +0 -405
- package/dist/node/integrations/secrets-types.js +0 -0
- package/dist/node/integrations/spec.js +0 -232
- package/dist/node/jobs/define-job.js +0 -41
- package/dist/node/jobs/gcp-cloud-tasks.js +0 -103
- package/dist/node/jobs/gcp-pubsub.js +0 -91
- package/dist/node/jobs/handlers/gmail-sync-handler.js +0 -40
- package/dist/node/jobs/handlers/index.js +0 -83
- package/dist/node/jobs/handlers/ping-handler.js +0 -47
- package/dist/node/jobs/handlers/storage-document-handler.js +0 -47
- package/dist/node/jobs/index.js +0 -64
- package/dist/node/jobs/memory-queue.js +0 -129
- package/dist/node/jobs/queue.js +0 -55
- package/dist/node/jobs/scaleway-sqs-queue.js +0 -222
- package/dist/node/jsonschema.js +0 -73
- package/dist/node/knowledge/binding.js +0 -0
- package/dist/node/knowledge/docs/knowledge.docblock.js +0 -301
- package/dist/node/knowledge/index.js +0 -468
- package/dist/node/knowledge/ingestion/document-processor.js +0 -95
- package/dist/node/knowledge/ingestion/embedding-service.js +0 -57
- package/dist/node/knowledge/ingestion/gmail-adapter.js +0 -103
- package/dist/node/knowledge/ingestion/index.js +0 -252
- package/dist/node/knowledge/ingestion/storage-adapter.js +0 -62
- package/dist/node/knowledge/ingestion/vector-indexer.js +0 -63
- package/dist/node/knowledge/knowledge.capability.js +0 -726
- package/dist/node/knowledge/knowledge.feature.js +0 -301
- package/dist/node/knowledge/operations.js +0 -869
- package/dist/node/knowledge/query/index.js +0 -110
- package/dist/node/knowledge/query/service.js +0 -110
- package/dist/node/knowledge/runtime.js +0 -91
- package/dist/node/knowledge/source.js +0 -0
- package/dist/node/knowledge/spaces/email-threads.js +0 -102
- package/dist/node/knowledge/spaces/financial-docs.js +0 -102
- package/dist/node/knowledge/spaces/financial-overview.js +0 -102
- package/dist/node/knowledge/spaces/index.js +0 -273
- package/dist/node/knowledge/spaces/product-canon.js +0 -102
- package/dist/node/knowledge/spaces/support-faq.js +0 -103
- package/dist/node/knowledge/spaces/uploaded-docs.js +0 -102
- package/dist/node/knowledge/spec.js +0 -228
- package/dist/node/llm/exporters.js +0 -1261
- package/dist/node/llm/index.js +0 -1715
- package/dist/node/llm/prompts.js +0 -1706
- package/dist/node/llm/types.js +0 -0
- package/dist/node/markdown.js +0 -779
- package/dist/node/migrations.js +0 -67
- package/dist/node/model-registry.js +0 -64
- package/dist/node/onboarding-base.js +0 -810
- package/dist/node/openapi.js +0 -151
- package/dist/node/operations/index.js +0 -665
- package/dist/node/operations/operation.js +0 -51
- package/dist/node/operations/registry.js +0 -405
- package/dist/node/operations/report/getContractVerificationStatus.js +0 -170
- package/dist/node/operations/report/index.js +0 -305
- package/dist/node/ownership.js +0 -73
- package/dist/node/policy/context.js +0 -206
- package/dist/node/policy/docs/policy.docblock.js +0 -313
- package/dist/node/policy/engine.js +0 -325
- package/dist/node/policy/guards.js +0 -387
- package/dist/node/policy/index.js +0 -1313
- package/dist/node/policy/opa-adapter.js +0 -110
- package/dist/node/policy/registry.js +0 -221
- package/dist/node/policy/spec.js +0 -0
- package/dist/node/policy/validation.js +0 -391
- package/dist/node/presentations/docs/presentations-conventions.docblock.js +0 -171
- package/dist/node/presentations/index.js +0 -795
- package/dist/node/presentations/presentations.js +0 -38
- package/dist/node/presentations/registry.js +0 -221
- package/dist/node/presentations/transform-engine.js +0 -600
- package/dist/node/product-intent/contract-patch-intent.js +0 -68
- package/dist/node/product-intent/contract-spec-patch.js +0 -75
- package/dist/node/product-intent/evidence.js +0 -45
- package/dist/node/product-intent/findings.js +0 -81
- package/dist/node/product-intent/impact-report.js +0 -62
- package/dist/node/product-intent/index.js +0 -742
- package/dist/node/product-intent/insights.js +0 -63
- package/dist/node/product-intent/opportunity-brief.js +0 -106
- package/dist/node/product-intent/problems.js +0 -55
- package/dist/node/product-intent/registry.js +0 -242
- package/dist/node/product-intent/runtime.js +0 -320
- package/dist/node/product-intent/spec.js +0 -425
- package/dist/node/product-intent/task-pack.js +0 -69
- package/dist/node/product-intent/tickets.js +0 -57
- package/dist/node/product-intent/types.js +0 -378
- package/dist/node/product-intent/ui-wireframe.js +0 -73
- package/dist/node/prompt.js +0 -38
- package/dist/node/promptRegistry.js +0 -63
- package/dist/node/regenerator/adapters.js +0 -0
- package/dist/node/regenerator/docs/regenerator.docblock.js +0 -164
- package/dist/node/regenerator/executor.js +0 -157
- package/dist/node/regenerator/index.js +0 -342
- package/dist/node/regenerator/service.js +0 -183
- package/dist/node/regenerator/sinks.js +0 -64
- package/dist/node/regenerator/types.js +0 -0
- package/dist/node/regenerator/utils.js +0 -87
- package/dist/node/registry-utils.js +0 -163
- package/dist/node/registry.js +0 -215
- package/dist/node/resources.js +0 -83
- package/dist/node/schema-to-markdown.js +0 -278
- package/dist/node/serialization/index.js +0 -179
- package/dist/node/serialization/serializers.js +0 -180
- package/dist/node/serialization/types.js +0 -0
- package/dist/node/server/contracts-adapter-hydration.js +0 -71
- package/dist/node/server/contracts-adapter-input.js +0 -130
- package/dist/node/server/graphql-pothos.js +0 -338
- package/dist/node/server/index.js +0 -1469
- package/dist/node/server/mcp/createMcpServer.js +0 -994
- package/dist/node/server/mcp/mcpTypes.js +0 -0
- package/dist/node/server/mcp/registerPresentations.js +0 -877
- package/dist/node/server/mcp/registerPrompts.js +0 -109
- package/dist/node/server/mcp/registerResources.js +0 -75
- package/dist/node/server/mcp/registerTools.js +0 -86
- package/dist/node/server/provider-mcp.js +0 -994
- package/dist/node/server/rest-elysia.js +0 -209
- package/dist/node/server/rest-express.js +0 -224
- package/dist/node/server/rest-generic.js +0 -192
- package/dist/node/server/rest-next-app.js +0 -200
- package/dist/node/server/rest-next-mcp.js +0 -103
- package/dist/node/server/rest-next-pages.js +0 -211
- package/dist/node/telemetry/anomaly.js +0 -91
- package/dist/node/telemetry/docs/telemetry.docblock.js +0 -164
- package/dist/node/telemetry/index.js +0 -417
- package/dist/node/telemetry/spec.js +0 -261
- package/dist/node/telemetry/tracker.js +0 -129
- package/dist/node/tests/index.js +0 -231
- package/dist/node/tests/runner.js +0 -189
- package/dist/node/tests/spec.js +0 -74
- package/dist/node/themes.js +0 -225
- package/dist/node/translations/catalog.js +0 -0
- package/dist/node/translations/index.js +0 -533
- package/dist/node/translations/registry.js +0 -170
- package/dist/node/translations/spec.js +0 -36
- package/dist/node/translations/tenant.js +0 -0
- package/dist/node/translations/validation.js +0 -392
- package/dist/node/types.js +0 -0
- package/dist/node/versioning/index.js +0 -274
- package/dist/node/versioning/refs.js +0 -99
- package/dist/node/versioning/types.js +0 -55
- package/dist/node/versioning/utils.js +0 -184
- package/dist/node/workflow/adapters/db-adapter.js +0 -127
- package/dist/node/workflow/adapters/file-adapter.js +0 -38
- package/dist/node/workflow/adapters/index.js +0 -194
- package/dist/node/workflow/adapters/memory-store.js +0 -93
- package/dist/node/workflow/context.js +0 -247
- package/dist/node/workflow/expression.js +0 -157
- package/dist/node/workflow/index.js +0 -1546
- package/dist/node/workflow/overview.docblock.js +0 -164
- package/dist/node/workflow/runner.js +0 -532
- package/dist/node/workflow/sla-monitor.js +0 -84
- package/dist/node/workflow/spec.js +0 -221
- package/dist/node/workflow/state.js +0 -0
- package/dist/node/workflow/validation.js +0 -425
- package/dist/node/workspace-config/contractsrc-schema.js +0 -344
- package/dist/node/workspace-config/contractsrc-types.js +0 -0
- package/dist/node/workspace-config/index.js +0 -325
- package/dist/node/workspace-config/workspace-config.docblock.js +0 -188
- package/dist/onboarding-base.d.ts +0 -132
- package/dist/onboarding-base.d.ts.map +0 -1
- package/dist/onboarding-base.js +0 -810
- package/dist/openapi.d.ts +0 -34
- package/dist/openapi.d.ts.map +0 -1
- package/dist/openapi.js +0 -151
- package/dist/operations/index.d.ts +0 -4
- package/dist/operations/index.d.ts.map +0 -1
- package/dist/operations/index.js +0 -665
- package/dist/operations/operation.d.ts +0 -192
- package/dist/operations/operation.d.ts.map +0 -1
- package/dist/operations/operation.js +0 -51
- package/dist/operations/registry.d.ts +0 -59
- package/dist/operations/registry.d.ts.map +0 -1
- package/dist/operations/registry.js +0 -405
- package/dist/operations/report/getContractVerificationStatus.d.ts +0 -69
- package/dist/operations/report/getContractVerificationStatus.d.ts.map +0 -1
- package/dist/operations/report/getContractVerificationStatus.js +0 -170
- package/dist/operations/report/getContractVerificationStatus.test.d.ts +0 -2
- package/dist/operations/report/getContractVerificationStatus.test.d.ts.map +0 -1
- package/dist/operations/report/index.d.ts +0 -11
- package/dist/operations/report/index.d.ts.map +0 -1
- package/dist/operations/report/index.js +0 -305
- package/dist/operations/report/index.test.d.ts +0 -2
- package/dist/operations/report/index.test.d.ts.map +0 -1
- package/dist/ownership.d.ts +0 -212
- package/dist/ownership.d.ts.map +0 -1
- package/dist/ownership.js +0 -73
- package/dist/ownership.test.d.ts +0 -2
- package/dist/ownership.test.d.ts.map +0 -1
- package/dist/policy/context.d.ts +0 -235
- package/dist/policy/context.d.ts.map +0 -1
- package/dist/policy/context.js +0 -206
- package/dist/policy/context.test.d.ts +0 -2
- package/dist/policy/context.test.d.ts.map +0 -1
- package/dist/policy/docs/policy.docblock.d.ts +0 -3
- package/dist/policy/docs/policy.docblock.d.ts.map +0 -1
- package/dist/policy/docs/policy.docblock.js +0 -313
- package/dist/policy/engine.d.ts +0 -37
- package/dist/policy/engine.d.ts.map +0 -1
- package/dist/policy/engine.js +0 -325
- package/dist/policy/engine.test.d.ts +0 -2
- package/dist/policy/engine.test.d.ts.map +0 -1
- package/dist/policy/guards.d.ts +0 -157
- package/dist/policy/guards.d.ts.map +0 -1
- package/dist/policy/guards.js +0 -387
- package/dist/policy/guards.test.d.ts +0 -2
- package/dist/policy/guards.test.d.ts.map +0 -1
- package/dist/policy/index.d.ts +0 -13
- package/dist/policy/index.d.ts.map +0 -1
- package/dist/policy/index.js +0 -1313
- package/dist/policy/opa-adapter.d.ts +0 -42
- package/dist/policy/opa-adapter.d.ts.map +0 -1
- package/dist/policy/opa-adapter.js +0 -110
- package/dist/policy/opa-adapter.test.d.ts +0 -2
- package/dist/policy/opa-adapter.test.d.ts.map +0 -1
- package/dist/policy/registry.d.ts +0 -6
- package/dist/policy/registry.d.ts.map +0 -1
- package/dist/policy/registry.js +0 -221
- package/dist/policy/spec.d.ts +0 -103
- package/dist/policy/spec.d.ts.map +0 -1
- package/dist/policy/spec.js +0 -1
- package/dist/policy/validation.d.ts +0 -85
- package/dist/policy/validation.d.ts.map +0 -1
- package/dist/policy/validation.js +0 -391
- package/dist/policy/validation.test.d.ts +0 -2
- package/dist/policy/validation.test.d.ts.map +0 -1
- package/dist/presentations/docs/presentations-conventions.docblock.d.ts +0 -3
- package/dist/presentations/docs/presentations-conventions.docblock.d.ts.map +0 -1
- package/dist/presentations/docs/presentations-conventions.docblock.js +0 -171
- package/dist/presentations/index.d.ts +0 -4
- package/dist/presentations/index.d.ts.map +0 -1
- package/dist/presentations/index.js +0 -795
- package/dist/presentations/presentations.d.ts +0 -53
- package/dist/presentations/presentations.d.ts.map +0 -1
- package/dist/presentations/presentations.js +0 -38
- package/dist/presentations/registry.d.ts +0 -7
- package/dist/presentations/registry.d.ts.map +0 -1
- package/dist/presentations/registry.js +0 -221
- package/dist/presentations/transform-engine.d.ts +0 -63
- package/dist/presentations/transform-engine.d.ts.map +0 -1
- package/dist/presentations/transform-engine.js +0 -600
- package/dist/presentations/transform-engine.test.d.ts +0 -2
- package/dist/presentations/transform-engine.test.d.ts.map +0 -1
- package/dist/product-intent/contract-patch-intent.d.ts +0 -101
- package/dist/product-intent/contract-patch-intent.d.ts.map +0 -1
- package/dist/product-intent/contract-patch-intent.js +0 -68
- package/dist/product-intent/contract-spec-patch.d.ts +0 -87
- package/dist/product-intent/contract-spec-patch.d.ts.map +0 -1
- package/dist/product-intent/contract-spec-patch.js +0 -75
- package/dist/product-intent/evidence.d.ts +0 -15
- package/dist/product-intent/evidence.d.ts.map +0 -1
- package/dist/product-intent/evidence.js +0 -45
- package/dist/product-intent/findings.d.ts +0 -58
- package/dist/product-intent/findings.d.ts.map +0 -1
- package/dist/product-intent/findings.js +0 -81
- package/dist/product-intent/impact-report.d.ts +0 -58
- package/dist/product-intent/impact-report.d.ts.map +0 -1
- package/dist/product-intent/impact-report.js +0 -62
- package/dist/product-intent/index.d.ts +0 -14
- package/dist/product-intent/index.d.ts.map +0 -1
- package/dist/product-intent/index.js +0 -742
- package/dist/product-intent/insights.d.ts +0 -63
- package/dist/product-intent/insights.d.ts.map +0 -1
- package/dist/product-intent/insights.js +0 -63
- package/dist/product-intent/opportunity-brief.d.ts +0 -193
- package/dist/product-intent/opportunity-brief.d.ts.map +0 -1
- package/dist/product-intent/opportunity-brief.js +0 -106
- package/dist/product-intent/problems.d.ts +0 -60
- package/dist/product-intent/problems.d.ts.map +0 -1
- package/dist/product-intent/problems.js +0 -55
- package/dist/product-intent/registry.d.ts +0 -29
- package/dist/product-intent/registry.d.ts.map +0 -1
- package/dist/product-intent/registry.js +0 -242
- package/dist/product-intent/registry.test.d.ts +0 -2
- package/dist/product-intent/registry.test.d.ts.map +0 -1
- package/dist/product-intent/runtime.d.ts +0 -93
- package/dist/product-intent/runtime.d.ts.map +0 -1
- package/dist/product-intent/runtime.js +0 -320
- package/dist/product-intent/runtime.test.d.ts +0 -2
- package/dist/product-intent/runtime.test.d.ts.map +0 -1
- package/dist/product-intent/spec.d.ts +0 -665
- package/dist/product-intent/spec.d.ts.map +0 -1
- package/dist/product-intent/spec.js +0 -425
- package/dist/product-intent/task-pack.d.ts +0 -99
- package/dist/product-intent/task-pack.d.ts.map +0 -1
- package/dist/product-intent/task-pack.js +0 -69
- package/dist/product-intent/tickets.d.ts +0 -68
- package/dist/product-intent/tickets.d.ts.map +0 -1
- package/dist/product-intent/tickets.js +0 -57
- package/dist/product-intent/types.d.ts +0 -12
- package/dist/product-intent/types.d.ts.map +0 -1
- package/dist/product-intent/types.js +0 -378
- package/dist/product-intent/ui-wireframe.d.ts +0 -101
- package/dist/product-intent/ui-wireframe.d.ts.map +0 -1
- package/dist/product-intent/ui-wireframe.js +0 -73
- package/dist/prompt.d.ts +0 -50
- package/dist/prompt.d.ts.map +0 -1
- package/dist/prompt.js +0 -38
- package/dist/prompt.test.d.ts +0 -2
- package/dist/prompt.test.d.ts.map +0 -1
- package/dist/promptRegistry.d.ts +0 -12
- package/dist/promptRegistry.d.ts.map +0 -1
- package/dist/promptRegistry.js +0 -63
- package/dist/promptRegistry.test.d.ts +0 -2
- package/dist/promptRegistry.test.d.ts.map +0 -1
- package/dist/regenerator/adapters.d.ts +0 -16
- package/dist/regenerator/adapters.d.ts.map +0 -1
- package/dist/regenerator/adapters.js +0 -1
- package/dist/regenerator/docs/regenerator.docblock.d.ts +0 -3
- package/dist/regenerator/docs/regenerator.docblock.d.ts.map +0 -1
- package/dist/regenerator/docs/regenerator.docblock.js +0 -164
- package/dist/regenerator/executor.d.ts +0 -67
- package/dist/regenerator/executor.d.ts.map +0 -1
- package/dist/regenerator/executor.js +0 -157
- package/dist/regenerator/executor.test.d.ts +0 -2
- package/dist/regenerator/executor.test.d.ts.map +0 -1
- package/dist/regenerator/index.d.ts +0 -7
- package/dist/regenerator/index.d.ts.map +0 -1
- package/dist/regenerator/index.js +0 -342
- package/dist/regenerator/service.d.ts +0 -30
- package/dist/regenerator/service.d.ts.map +0 -1
- package/dist/regenerator/service.js +0 -183
- package/dist/regenerator/service.test.d.ts +0 -2
- package/dist/regenerator/service.test.d.ts.map +0 -1
- package/dist/regenerator/sinks.d.ts +0 -24
- package/dist/regenerator/sinks.d.ts.map +0 -1
- package/dist/regenerator/sinks.js +0 -64
- package/dist/regenerator/sinks.test.d.ts +0 -2
- package/dist/regenerator/sinks.test.d.ts.map +0 -1
- package/dist/regenerator/types.d.ts +0 -104
- package/dist/regenerator/types.d.ts.map +0 -1
- package/dist/regenerator/types.js +0 -1
- package/dist/regenerator/utils.d.ts +0 -7
- package/dist/regenerator/utils.d.ts.map +0 -1
- package/dist/regenerator/utils.js +0 -87
- package/dist/registry-utils.d.ts +0 -106
- package/dist/registry-utils.d.ts.map +0 -1
- package/dist/registry-utils.js +0 -163
- package/dist/registry-utils.test.d.ts +0 -2
- package/dist/registry-utils.test.d.ts.map +0 -1
- package/dist/registry.d.ts +0 -28
- package/dist/registry.d.ts.map +0 -1
- package/dist/registry.js +0 -215
- package/dist/resources.d.ts +0 -61
- package/dist/resources.d.ts.map +0 -1
- package/dist/resources.js +0 -83
- package/dist/schema-to-markdown.d.ts +0 -57
- package/dist/schema-to-markdown.d.ts.map +0 -1
- package/dist/schema-to-markdown.js +0 -278
- package/dist/serialization/index.d.ts +0 -11
- package/dist/serialization/index.d.ts.map +0 -1
- package/dist/serialization/index.js +0 -179
- package/dist/serialization/serializers.d.ts +0 -36
- package/dist/serialization/serializers.d.ts.map +0 -1
- package/dist/serialization/serializers.js +0 -180
- package/dist/serialization/types.d.ts +0 -101
- package/dist/serialization/types.d.ts.map +0 -1
- package/dist/serialization/types.js +0 -1
- package/dist/server/contracts-adapter-hydration.d.ts +0 -12
- package/dist/server/contracts-adapter-hydration.d.ts.map +0 -1
- package/dist/server/contracts-adapter-hydration.js +0 -71
- package/dist/server/contracts-adapter-input.d.ts +0 -6
- package/dist/server/contracts-adapter-input.d.ts.map +0 -1
- package/dist/server/contracts-adapter-input.js +0 -130
- package/dist/server/graphql-pothos.d.ts +0 -27
- package/dist/server/graphql-pothos.d.ts.map +0 -1
- package/dist/server/graphql-pothos.js +0 -338
- package/dist/server/index.d.ts +0 -8
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/index.js +0 -1469
- package/dist/server/mcp/createMcpServer.d.ts +0 -11
- package/dist/server/mcp/createMcpServer.d.ts.map +0 -1
- package/dist/server/mcp/createMcpServer.js +0 -994
- package/dist/server/mcp/mcpTypes.d.ts +0 -23
- package/dist/server/mcp/mcpTypes.d.ts.map +0 -1
- package/dist/server/mcp/mcpTypes.js +0 -1
- package/dist/server/mcp/registerPresentations.d.ts +0 -4
- package/dist/server/mcp/registerPresentations.d.ts.map +0 -1
- package/dist/server/mcp/registerPresentations.js +0 -877
- package/dist/server/mcp/registerPrompts.d.ts +0 -5
- package/dist/server/mcp/registerPrompts.d.ts.map +0 -1
- package/dist/server/mcp/registerPrompts.js +0 -109
- package/dist/server/mcp/registerResources.d.ts +0 -5
- package/dist/server/mcp/registerResources.d.ts.map +0 -1
- package/dist/server/mcp/registerResources.js +0 -75
- package/dist/server/mcp/registerTools.d.ts +0 -5
- package/dist/server/mcp/registerTools.d.ts.map +0 -1
- package/dist/server/mcp/registerTools.js +0 -86
- package/dist/server/provider-mcp.d.ts +0 -2
- package/dist/server/provider-mcp.d.ts.map +0 -1
- package/dist/server/provider-mcp.js +0 -994
- package/dist/server/provider-mcp.test.d.ts +0 -2
- package/dist/server/provider-mcp.test.d.ts.map +0 -1
- package/dist/server/rest-elysia.d.ts +0 -37
- package/dist/server/rest-elysia.d.ts.map +0 -1
- package/dist/server/rest-elysia.js +0 -209
- package/dist/server/rest-express.d.ts +0 -12
- package/dist/server/rest-express.d.ts.map +0 -1
- package/dist/server/rest-express.js +0 -224
- package/dist/server/rest-generic.d.ts +0 -29
- package/dist/server/rest-generic.d.ts.map +0 -1
- package/dist/server/rest-generic.js +0 -192
- package/dist/server/rest-next-app.d.ts +0 -31
- package/dist/server/rest-next-app.d.ts.map +0 -1
- package/dist/server/rest-next-app.js +0 -200
- package/dist/server/rest-next-mcp.d.ts +0 -8
- package/dist/server/rest-next-mcp.d.ts.map +0 -1
- package/dist/server/rest-next-mcp.js +0 -103
- package/dist/server/rest-next-pages.d.ts +0 -6
- package/dist/server/rest-next-pages.d.ts.map +0 -1
- package/dist/server/rest-next-pages.js +0 -211
- package/dist/telemetry/anomaly.d.ts +0 -24
- package/dist/telemetry/anomaly.d.ts.map +0 -1
- package/dist/telemetry/anomaly.js +0 -91
- package/dist/telemetry/anomaly.test.d.ts +0 -2
- package/dist/telemetry/anomaly.test.d.ts.map +0 -1
- package/dist/telemetry/docs/telemetry.docblock.d.ts +0 -3
- package/dist/telemetry/docs/telemetry.docblock.d.ts.map +0 -1
- package/dist/telemetry/docs/telemetry.docblock.js +0 -164
- package/dist/telemetry/index.d.ts +0 -4
- package/dist/telemetry/index.d.ts.map +0 -1
- package/dist/telemetry/index.js +0 -417
- package/dist/telemetry/spec.d.ts +0 -88
- package/dist/telemetry/spec.d.ts.map +0 -1
- package/dist/telemetry/spec.js +0 -261
- package/dist/telemetry/spec.test.d.ts +0 -2
- package/dist/telemetry/spec.test.d.ts.map +0 -1
- package/dist/telemetry/tracker.d.ts +0 -49
- package/dist/telemetry/tracker.d.ts.map +0 -1
- package/dist/telemetry/tracker.js +0 -129
- package/dist/telemetry/tracker.test.d.ts +0 -2
- package/dist/telemetry/tracker.test.d.ts.map +0 -1
- package/dist/tests/index.d.ts +0 -3
- package/dist/tests/index.d.ts.map +0 -1
- package/dist/tests/index.js +0 -231
- package/dist/tests/runner.d.ts +0 -39
- package/dist/tests/runner.d.ts.map +0 -1
- package/dist/tests/runner.js +0 -189
- package/dist/tests/runner.test.d.ts +0 -2
- package/dist/tests/runner.test.d.ts.map +0 -1
- package/dist/tests/spec.d.ts +0 -83
- package/dist/tests/spec.d.ts.map +0 -1
- package/dist/tests/spec.js +0 -74
- package/dist/tests/spec.test.d.ts +0 -2
- package/dist/tests/spec.test.d.ts.map +0 -1
- package/dist/themes.d.ts +0 -51
- package/dist/themes.d.ts.map +0 -1
- package/dist/themes.js +0 -225
- package/dist/themes.test.d.ts +0 -2
- package/dist/themes.test.d.ts.map +0 -1
- package/dist/translations/catalog.d.ts +0 -26
- package/dist/translations/catalog.d.ts.map +0 -1
- package/dist/translations/catalog.js +0 -1
- package/dist/translations/index.d.ts +0 -45
- package/dist/translations/index.d.ts.map +0 -1
- package/dist/translations/index.js +0 -533
- package/dist/translations/registry.d.ts +0 -173
- package/dist/translations/registry.d.ts.map +0 -1
- package/dist/translations/registry.js +0 -170
- package/dist/translations/registry.test.d.ts +0 -2
- package/dist/translations/registry.test.d.ts.map +0 -1
- package/dist/translations/spec.d.ts +0 -154
- package/dist/translations/spec.d.ts.map +0 -1
- package/dist/translations/spec.js +0 -36
- package/dist/translations/spec.test.d.ts +0 -2
- package/dist/translations/spec.test.d.ts.map +0 -1
- package/dist/translations/tenant.d.ts +0 -12
- package/dist/translations/tenant.d.ts.map +0 -1
- package/dist/translations/tenant.js +0 -1
- package/dist/translations/validation.d.ts +0 -107
- package/dist/translations/validation.d.ts.map +0 -1
- package/dist/translations/validation.js +0 -392
- package/dist/translations/validation.test.d.ts +0 -2
- package/dist/translations/validation.test.d.ts.map +0 -1
- package/dist/types.d.ts +0 -213
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -1
- package/dist/versioning/index.d.ts +0 -10
- package/dist/versioning/index.d.ts.map +0 -1
- package/dist/versioning/index.js +0 -274
- package/dist/versioning/refs.d.ts +0 -177
- package/dist/versioning/refs.d.ts.map +0 -1
- package/dist/versioning/refs.js +0 -99
- package/dist/versioning/refs.test.d.ts +0 -5
- package/dist/versioning/refs.test.d.ts.map +0 -1
- package/dist/versioning/types.d.ts +0 -131
- package/dist/versioning/types.d.ts.map +0 -1
- package/dist/versioning/types.js +0 -55
- package/dist/versioning/utils.d.ts +0 -94
- package/dist/versioning/utils.d.ts.map +0 -1
- package/dist/versioning/utils.js +0 -184
- package/dist/versioning/utils.test.d.ts +0 -5
- package/dist/versioning/utils.test.d.ts.map +0 -1
- package/dist/workflow/adapters/db-adapter.d.ts +0 -44
- package/dist/workflow/adapters/db-adapter.d.ts.map +0 -1
- package/dist/workflow/adapters/db-adapter.js +0 -127
- package/dist/workflow/adapters/file-adapter.d.ts +0 -11
- package/dist/workflow/adapters/file-adapter.d.ts.map +0 -1
- package/dist/workflow/adapters/file-adapter.js +0 -38
- package/dist/workflow/adapters/index.d.ts +0 -4
- package/dist/workflow/adapters/index.d.ts.map +0 -1
- package/dist/workflow/adapters/index.js +0 -194
- package/dist/workflow/adapters/memory-store.d.ts +0 -14
- package/dist/workflow/adapters/memory-store.d.ts.map +0 -1
- package/dist/workflow/adapters/memory-store.js +0 -93
- package/dist/workflow/context.d.ts +0 -218
- package/dist/workflow/context.d.ts.map +0 -1
- package/dist/workflow/context.js +0 -247
- package/dist/workflow/context.test.d.ts +0 -2
- package/dist/workflow/context.test.d.ts.map +0 -1
- package/dist/workflow/expression.d.ts +0 -7
- package/dist/workflow/expression.d.ts.map +0 -1
- package/dist/workflow/expression.js +0 -157
- package/dist/workflow/expression.test.d.ts +0 -2
- package/dist/workflow/expression.test.d.ts.map +0 -1
- package/dist/workflow/index.d.ts +0 -14
- package/dist/workflow/index.d.ts.map +0 -1
- package/dist/workflow/index.js +0 -1546
- package/dist/workflow/overview.docblock.d.ts +0 -3
- package/dist/workflow/overview.docblock.d.ts.map +0 -1
- package/dist/workflow/overview.docblock.js +0 -164
- package/dist/workflow/runner.d.ts +0 -72
- package/dist/workflow/runner.d.ts.map +0 -1
- package/dist/workflow/runner.js +0 -532
- package/dist/workflow/runner.test.d.ts +0 -2
- package/dist/workflow/runner.test.d.ts.map +0 -1
- package/dist/workflow/sla-monitor.d.ts +0 -17
- package/dist/workflow/sla-monitor.d.ts.map +0 -1
- package/dist/workflow/sla-monitor.js +0 -84
- package/dist/workflow/spec.d.ts +0 -82
- package/dist/workflow/spec.d.ts.map +0 -1
- package/dist/workflow/spec.js +0 -221
- package/dist/workflow/state.d.ts +0 -32
- package/dist/workflow/state.d.ts.map +0 -1
- package/dist/workflow/state.js +0 -1
- package/dist/workflow/validation.d.ts +0 -88
- package/dist/workflow/validation.d.ts.map +0 -1
- package/dist/workflow/validation.js +0 -425
- package/dist/workflow/validation.test.d.ts +0 -2
- package/dist/workflow/validation.test.d.ts.map +0 -1
- package/dist/workspace-config/contractsrc-schema.d.ts +0 -145
- package/dist/workspace-config/contractsrc-schema.d.ts.map +0 -1
- package/dist/workspace-config/contractsrc-schema.js +0 -344
- package/dist/workspace-config/contractsrc-schema.test.d.ts +0 -2
- package/dist/workspace-config/contractsrc-schema.test.d.ts.map +0 -1
- package/dist/workspace-config/contractsrc-types.d.ts +0 -343
- package/dist/workspace-config/contractsrc-types.d.ts.map +0 -1
- package/dist/workspace-config/contractsrc-types.js +0 -1
- package/dist/workspace-config/index.d.ts +0 -6
- package/dist/workspace-config/index.d.ts.map +0 -1
- package/dist/workspace-config/index.js +0 -325
- package/dist/workspace-config/workspace-config.docblock.d.ts +0 -3
- package/dist/workspace-config/workspace-config.docblock.d.ts.map +0 -1
- package/dist/workspace-config/workspace-config.docblock.js +0 -188
package/dist/docs/contracts.js
DELETED
|
@@ -1,2383 +0,0 @@
|
|
|
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/registry-utils.ts
|
|
33
|
-
var exports_registry_utils = {};
|
|
34
|
-
__export(exports_registry_utils, {
|
|
35
|
-
groupByToArray: () => groupByToArray,
|
|
36
|
-
groupByMultiple: () => groupByMultiple,
|
|
37
|
-
groupBy: () => groupBy,
|
|
38
|
-
getUniqueTags: () => getUniqueTags,
|
|
39
|
-
getUniqueOwners: () => getUniqueOwners,
|
|
40
|
-
getUniqueDomains: () => getUniqueDomains,
|
|
41
|
-
filterBy: () => filterBy,
|
|
42
|
-
GroupingStrategies: () => GroupingStrategies
|
|
43
|
-
});
|
|
44
|
-
function filterBy(items, filter) {
|
|
45
|
-
return items.filter((item) => {
|
|
46
|
-
if (filter.tags?.length) {
|
|
47
|
-
const hasMatchingTag = filter.tags.some((tag) => item.meta.tags?.includes(tag));
|
|
48
|
-
if (!hasMatchingTag)
|
|
49
|
-
return false;
|
|
50
|
-
}
|
|
51
|
-
if (filter.owners?.length) {
|
|
52
|
-
const hasMatchingOwner = filter.owners.some((owner) => item.meta.owners?.includes(owner));
|
|
53
|
-
if (!hasMatchingOwner)
|
|
54
|
-
return false;
|
|
55
|
-
}
|
|
56
|
-
if (filter.stability?.length) {
|
|
57
|
-
if (!filter.stability.includes(item.meta.stability ?? "stable")) {
|
|
58
|
-
return false;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
if (filter.domain) {
|
|
62
|
-
const itemDomain = GroupingStrategies.byDomain(item);
|
|
63
|
-
if (itemDomain !== filter.domain)
|
|
64
|
-
return false;
|
|
65
|
-
}
|
|
66
|
-
if (filter.keyPattern) {
|
|
67
|
-
const name = item.meta.key ?? item.meta.key ?? "";
|
|
68
|
-
const pattern = filter.keyPattern.replace(/\*/g, ".*").replace(/\?/g, ".");
|
|
69
|
-
const regex = new RegExp(`^${pattern}$`, "i");
|
|
70
|
-
if (!regex.test(name))
|
|
71
|
-
return false;
|
|
72
|
-
}
|
|
73
|
-
return true;
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
function groupBy(items, keyFn) {
|
|
77
|
-
const groups = new Map;
|
|
78
|
-
for (const item of items) {
|
|
79
|
-
const key = keyFn(item);
|
|
80
|
-
const existing = groups.get(key);
|
|
81
|
-
if (existing) {
|
|
82
|
-
existing.push(item);
|
|
83
|
-
} else {
|
|
84
|
-
groups.set(key, [item]);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
return groups;
|
|
88
|
-
}
|
|
89
|
-
function groupByToArray(items, keyFn) {
|
|
90
|
-
const map = groupBy(items, keyFn);
|
|
91
|
-
return Array.from(map.entries()).map(([key, items2]) => ({ key, items: items2 }));
|
|
92
|
-
}
|
|
93
|
-
function groupByMultiple(items, keysFn) {
|
|
94
|
-
const groups = new Map;
|
|
95
|
-
for (const item of items) {
|
|
96
|
-
const keys = keysFn(item);
|
|
97
|
-
for (const key of keys) {
|
|
98
|
-
const existing = groups.get(key);
|
|
99
|
-
if (existing) {
|
|
100
|
-
existing.push(item);
|
|
101
|
-
} else {
|
|
102
|
-
groups.set(key, [item]);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
return groups;
|
|
107
|
-
}
|
|
108
|
-
function getUniqueTags(items) {
|
|
109
|
-
const tags = new Set;
|
|
110
|
-
for (const item of items) {
|
|
111
|
-
for (const tag of item.meta.tags ?? []) {
|
|
112
|
-
tags.add(tag);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
return Array.from(tags).sort();
|
|
116
|
-
}
|
|
117
|
-
function getUniqueOwners(items) {
|
|
118
|
-
const owners = new Set;
|
|
119
|
-
for (const item of items) {
|
|
120
|
-
for (const owner of item.meta.owners ?? []) {
|
|
121
|
-
owners.add(owner);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
return Array.from(owners).sort();
|
|
125
|
-
}
|
|
126
|
-
function getUniqueDomains(items) {
|
|
127
|
-
const domains = new Set;
|
|
128
|
-
for (const item of items) {
|
|
129
|
-
domains.add(GroupingStrategies.byDomain(item));
|
|
130
|
-
}
|
|
131
|
-
return Array.from(domains).sort();
|
|
132
|
-
}
|
|
133
|
-
var GroupingStrategies;
|
|
134
|
-
var init_registry_utils = __esm(() => {
|
|
135
|
-
GroupingStrategies = {
|
|
136
|
-
byTag: (item) => item.meta.tags?.[0] ?? "untagged",
|
|
137
|
-
byAllTags: (item) => item.meta.tags?.length ? item.meta.tags : ["untagged"],
|
|
138
|
-
byOwner: (item) => item.meta.owners?.[0] ?? "unowned",
|
|
139
|
-
byDomain: (item) => {
|
|
140
|
-
const name = item.meta.key ?? item.meta.key ?? "";
|
|
141
|
-
return name.split(".")[0] ?? "default";
|
|
142
|
-
},
|
|
143
|
-
byStability: (item) => item.meta.stability ?? "stable",
|
|
144
|
-
byUrlPath: (level) => (item) => {
|
|
145
|
-
if (!item.path)
|
|
146
|
-
return "root";
|
|
147
|
-
const segments = item.path.split("/").filter(Boolean);
|
|
148
|
-
return segments.slice(0, level).join("/") || "root";
|
|
149
|
-
}
|
|
150
|
-
};
|
|
151
|
-
});
|
|
152
|
-
|
|
153
|
-
// src/ownership.ts
|
|
154
|
-
var StabilityEnum = {
|
|
155
|
-
Idea: "idea",
|
|
156
|
-
InCreation: "in_creation",
|
|
157
|
-
Experimental: "experimental",
|
|
158
|
-
Beta: "beta",
|
|
159
|
-
Stable: "stable",
|
|
160
|
-
Deprecated: "deprecated"
|
|
161
|
-
};
|
|
162
|
-
var OwnersEnum = {
|
|
163
|
-
PlatformCore: "platform.core",
|
|
164
|
-
PlatformSigil: "platform.sigil",
|
|
165
|
-
PlatformMarketplace: "platform.marketplace",
|
|
166
|
-
PlatformMessaging: "platform.messaging",
|
|
167
|
-
PlatformContent: "platform.content",
|
|
168
|
-
PlatformFeatureFlags: "platform.featureflags",
|
|
169
|
-
PlatformFinance: "platform.finance"
|
|
170
|
-
};
|
|
171
|
-
var Owners = OwnersEnum;
|
|
172
|
-
var TagsEnum = {
|
|
173
|
-
Spots: "spots",
|
|
174
|
-
Collectivity: "collectivity",
|
|
175
|
-
Marketplace: "marketplace",
|
|
176
|
-
Sellers: "sellers",
|
|
177
|
-
Auth: "auth",
|
|
178
|
-
Login: "login",
|
|
179
|
-
Signup: "signup",
|
|
180
|
-
Guide: "guide",
|
|
181
|
-
Docs: "docs",
|
|
182
|
-
I18n: "i18n",
|
|
183
|
-
Incident: "incident",
|
|
184
|
-
Automation: "automation",
|
|
185
|
-
Hygiene: "hygiene"
|
|
186
|
-
};
|
|
187
|
-
var Tags = TagsEnum;
|
|
188
|
-
|
|
189
|
-
// src/operations/operation.ts
|
|
190
|
-
var isEmitDeclRef = (e) => ("ref" in e);
|
|
191
|
-
var defineCommand = (spec) => ({
|
|
192
|
-
...spec,
|
|
193
|
-
meta: { ...spec.meta, kind: "command" },
|
|
194
|
-
policy: {
|
|
195
|
-
...spec.policy,
|
|
196
|
-
idempotent: spec.policy?.["policy"]?.idempotent ?? false
|
|
197
|
-
}
|
|
198
|
-
});
|
|
199
|
-
var defineQuery = (spec) => ({
|
|
200
|
-
...spec,
|
|
201
|
-
meta: { ...spec.meta, kind: "query" },
|
|
202
|
-
policy: { ...spec.policy, idempotent: true }
|
|
203
|
-
});
|
|
204
|
-
|
|
205
|
-
// src/registry.ts
|
|
206
|
-
init_registry_utils();
|
|
207
|
-
import { compareVersions } from "compare-versions";
|
|
208
|
-
var keyOfSpecContract = (spec) => `${spec.meta.key}.v${spec.meta.version}`;
|
|
209
|
-
|
|
210
|
-
class SpecContractRegistry {
|
|
211
|
-
contractType;
|
|
212
|
-
items = new Map;
|
|
213
|
-
constructor(contractType, items) {
|
|
214
|
-
this.contractType = contractType;
|
|
215
|
-
if (items) {
|
|
216
|
-
items.forEach((p) => this.register(p));
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
register(p) {
|
|
220
|
-
const key = keyOfSpecContract(p);
|
|
221
|
-
if (this.items.has(key))
|
|
222
|
-
throw new Error(`Duplicate contract \`${this.contractType}\` ${key}`);
|
|
223
|
-
this.items.set(key, p);
|
|
224
|
-
return this;
|
|
225
|
-
}
|
|
226
|
-
count() {
|
|
227
|
-
return this.items.size;
|
|
228
|
-
}
|
|
229
|
-
list() {
|
|
230
|
-
return [...this.items.values()];
|
|
231
|
-
}
|
|
232
|
-
get(key, version) {
|
|
233
|
-
if (version != null)
|
|
234
|
-
return this.items.get(`${key}.v${version}`);
|
|
235
|
-
let candidate;
|
|
236
|
-
for (const [k, p] of this.items.entries()) {
|
|
237
|
-
if (!k.startsWith(`${key}.v`))
|
|
238
|
-
continue;
|
|
239
|
-
if (!candidate || compareVersions(p.meta.version, candidate.meta.version) > 0) {
|
|
240
|
-
candidate = p;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
return candidate;
|
|
244
|
-
}
|
|
245
|
-
has(key, version) {
|
|
246
|
-
return !!this.get(key, version);
|
|
247
|
-
}
|
|
248
|
-
filter(criteria) {
|
|
249
|
-
return filterBy(this.list(), criteria);
|
|
250
|
-
}
|
|
251
|
-
listByTag(tag) {
|
|
252
|
-
return this.list().filter((p) => p.meta.tags?.includes(tag));
|
|
253
|
-
}
|
|
254
|
-
listByOwner(owner) {
|
|
255
|
-
return this.list().filter((p) => p.meta.owners?.includes(owner));
|
|
256
|
-
}
|
|
257
|
-
groupBy(keyFn) {
|
|
258
|
-
return groupBy(this.list(), keyFn);
|
|
259
|
-
}
|
|
260
|
-
getUniqueTags() {
|
|
261
|
-
return getUniqueTags(this.list());
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
// src/events.ts
|
|
266
|
-
function defineEvent(e) {
|
|
267
|
-
return e;
|
|
268
|
-
}
|
|
269
|
-
var eventKey = (key, version) => `${key}.v${version}`;
|
|
270
|
-
|
|
271
|
-
class EventRegistry extends SpecContractRegistry {
|
|
272
|
-
constructor(items) {
|
|
273
|
-
super("event", items);
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
// src/operations/registry.ts
|
|
278
|
-
function opKey(key, version) {
|
|
279
|
-
return `${key}.v${version}`;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
class OperationSpecRegistry extends SpecContractRegistry {
|
|
283
|
-
handlers = new Map;
|
|
284
|
-
constructor(items) {
|
|
285
|
-
super("operation", items);
|
|
286
|
-
}
|
|
287
|
-
bind(spec, handler) {
|
|
288
|
-
const key = opKey(spec.meta.key, spec.meta.version);
|
|
289
|
-
if (!this.items.has(key))
|
|
290
|
-
throw new Error(`Cannot bind; spec not found: ${key}`);
|
|
291
|
-
if (this.handlers.has(key))
|
|
292
|
-
throw new Error(`Handler already bound for ${key}`);
|
|
293
|
-
this.handlers.set(key, handler);
|
|
294
|
-
return this;
|
|
295
|
-
}
|
|
296
|
-
getHandler(key, version) {
|
|
297
|
-
const spec = this.get(key, version);
|
|
298
|
-
if (!spec)
|
|
299
|
-
return;
|
|
300
|
-
return this.handlers.get(opKey(spec.meta.key, spec.meta.version));
|
|
301
|
-
}
|
|
302
|
-
listBound() {
|
|
303
|
-
const out = [];
|
|
304
|
-
for (const [k, spec] of this.items.entries()) {
|
|
305
|
-
const h = this.handlers.get(k);
|
|
306
|
-
if (h)
|
|
307
|
-
out.push({ spec, handler: h });
|
|
308
|
-
}
|
|
309
|
-
return out;
|
|
310
|
-
}
|
|
311
|
-
async execute(key, version, rawInput, ctx) {
|
|
312
|
-
const baseSpec = this.get(key, version);
|
|
313
|
-
if (!baseSpec)
|
|
314
|
-
throw new Error(`Spec not found for ${key}${version ? `.v${version}` : ""}`);
|
|
315
|
-
const spec = await ctx.specVariantResolver?.resolve({
|
|
316
|
-
name: baseSpec.meta.key,
|
|
317
|
-
version: baseSpec.meta.version,
|
|
318
|
-
kind: baseSpec.meta.kind
|
|
319
|
-
}, ctx) ?? baseSpec;
|
|
320
|
-
let handlerKey = opKey(spec.meta.key, spec.meta.version);
|
|
321
|
-
let handler = this.handlers.get(handlerKey);
|
|
322
|
-
if (!handler) {
|
|
323
|
-
const fallbackKey = opKey(baseSpec.meta.key, baseSpec.meta.version);
|
|
324
|
-
handler = this.handlers.get(fallbackKey);
|
|
325
|
-
handlerKey = fallbackKey;
|
|
326
|
-
}
|
|
327
|
-
if (!handler)
|
|
328
|
-
throw new Error(`No handler bound for ${handlerKey}`);
|
|
329
|
-
const parsedInput = spec.io.input?.getZod().parse(rawInput);
|
|
330
|
-
if (ctx.decide) {
|
|
331
|
-
const [service, command] = spec.meta.key.split(".");
|
|
332
|
-
if (!service || !command)
|
|
333
|
-
throw new Error(`Invalid spec name: ${spec.meta.key}`);
|
|
334
|
-
const decision = await ctx.decide({
|
|
335
|
-
service,
|
|
336
|
-
command,
|
|
337
|
-
version: spec.meta.version,
|
|
338
|
-
actor: ctx.actor ?? "anonymous",
|
|
339
|
-
channel: ctx.channel,
|
|
340
|
-
roles: ctx.roles,
|
|
341
|
-
organizationId: ctx.organizationId,
|
|
342
|
-
userId: ctx.userId,
|
|
343
|
-
flags: []
|
|
344
|
-
});
|
|
345
|
-
if (decision.effect === "deny") {
|
|
346
|
-
throw new Error(`PolicyDenied: ${spec.meta.key}.v${spec.meta.version}`);
|
|
347
|
-
}
|
|
348
|
-
if (decision.rateLimit && ctx.rateLimit) {
|
|
349
|
-
const key2 = decision.rateLimit.key ?? "default";
|
|
350
|
-
const rpm = decision.rateLimit.rpm ?? 60;
|
|
351
|
-
await ctx.rateLimit(key2, 1, rpm);
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
const allowedEvents = new Map;
|
|
355
|
-
if (spec.sideEffects?.emits) {
|
|
356
|
-
for (const e of spec.sideEffects.emits) {
|
|
357
|
-
if (isEmitDeclRef(e)) {
|
|
358
|
-
const eventSpec = ctx.eventSpecResolver?.get(e.ref.key, e.ref.version);
|
|
359
|
-
if (eventSpec) {
|
|
360
|
-
allowedEvents.set(`${e.ref.key}.v${e.ref.version}`, eventSpec.payload);
|
|
361
|
-
}
|
|
362
|
-
} else {
|
|
363
|
-
allowedEvents.set(`${e.key}.v${e.version}`, e.payload);
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
const emitGuard = async (eventName, eventVersion, payload) => {
|
|
368
|
-
const key2 = eventKey(eventName, eventVersion);
|
|
369
|
-
const schema = allowedEvents.get(key2);
|
|
370
|
-
if (!schema)
|
|
371
|
-
throw new Error(`UndeclaredEvent: ${key2} not allowed by ${opKey(spec.meta.key, spec.meta.version)}`);
|
|
372
|
-
const parsed = schema.getZod().parse(payload);
|
|
373
|
-
await ctx.eventPublisher?.({
|
|
374
|
-
key: eventName,
|
|
375
|
-
version: eventVersion,
|
|
376
|
-
payload: parsed,
|
|
377
|
-
traceId: ctx.traceId
|
|
378
|
-
});
|
|
379
|
-
};
|
|
380
|
-
if (ctx.appConfig) {
|
|
381
|
-
if (!ctx.branding) {
|
|
382
|
-
ctx.branding = ctx.appConfig.branding;
|
|
383
|
-
}
|
|
384
|
-
if (!ctx.translation) {
|
|
385
|
-
ctx.translation = { config: ctx.appConfig.translation };
|
|
386
|
-
} else if (!ctx.translation.config) {
|
|
387
|
-
ctx.translation = {
|
|
388
|
-
...ctx.translation,
|
|
389
|
-
config: ctx.appConfig.translation
|
|
390
|
-
};
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
const telemetryContext = ctx.telemetry;
|
|
394
|
-
const trackTelemetry = async (trigger, details) => {
|
|
395
|
-
if (!telemetryContext || !trigger?.event)
|
|
396
|
-
return;
|
|
397
|
-
try {
|
|
398
|
-
const props = trigger.properties?.(details) ?? {};
|
|
399
|
-
await telemetryContext.track(trigger.event.key, trigger.event.version ?? "1.0.0", props, {
|
|
400
|
-
tenantId: ctx.organizationId ?? undefined,
|
|
401
|
-
organizationId: ctx.organizationId,
|
|
402
|
-
userId: ctx.userId,
|
|
403
|
-
actor: ctx.actor,
|
|
404
|
-
channel: ctx.channel,
|
|
405
|
-
metadata: ctx.traceId ? { traceId: ctx.traceId } : undefined
|
|
406
|
-
});
|
|
407
|
-
} catch (_error) {}
|
|
408
|
-
};
|
|
409
|
-
let result;
|
|
410
|
-
try {
|
|
411
|
-
result = await handler(parsedInput, {
|
|
412
|
-
...ctx,
|
|
413
|
-
__emitGuard__: emitGuard
|
|
414
|
-
});
|
|
415
|
-
} catch (error) {
|
|
416
|
-
if (spec.telemetry?.failure) {
|
|
417
|
-
await trackTelemetry(spec.telemetry.failure, {
|
|
418
|
-
input: parsedInput ?? rawInput,
|
|
419
|
-
error
|
|
420
|
-
});
|
|
421
|
-
}
|
|
422
|
-
throw error;
|
|
423
|
-
}
|
|
424
|
-
if (spec.telemetry?.success) {
|
|
425
|
-
await trackTelemetry(spec.telemetry.success, {
|
|
426
|
-
input: parsedInput ?? rawInput,
|
|
427
|
-
output: result
|
|
428
|
-
});
|
|
429
|
-
}
|
|
430
|
-
const outputModel = spec.io.output;
|
|
431
|
-
if (outputModel?.getZod) {
|
|
432
|
-
const parsedOutput = outputModel.getZod().parse(result);
|
|
433
|
-
return parsedOutput;
|
|
434
|
-
}
|
|
435
|
-
return result;
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
// src/operations/report/getContractVerificationStatus.ts
|
|
440
|
-
import {
|
|
441
|
-
ScalarTypeEnum,
|
|
442
|
-
SchemaModel,
|
|
443
|
-
ZodSchemaType
|
|
444
|
-
} from "@contractspec/lib.schema";
|
|
445
|
-
import * as z from "zod";
|
|
446
|
-
var REPORT_DOMAIN = "report";
|
|
447
|
-
var REPORT_OWNERS = ["platform.core"];
|
|
448
|
-
var REPORT_TAGS = ["report", "drift", "verification"];
|
|
449
|
-
var REPORT_STABILITY = StabilityEnum.Experimental;
|
|
450
|
-
var ContractVerificationStatusModel = new SchemaModel({
|
|
451
|
-
name: "ContractVerificationStatus",
|
|
452
|
-
fields: {
|
|
453
|
-
name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
454
|
-
lastVerifiedSha: {
|
|
455
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
456
|
-
isOptional: true
|
|
457
|
-
},
|
|
458
|
-
lastVerifiedDate: {
|
|
459
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
460
|
-
isOptional: true
|
|
461
|
-
},
|
|
462
|
-
surfaces: {
|
|
463
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
464
|
-
isOptional: false,
|
|
465
|
-
isArray: true
|
|
466
|
-
},
|
|
467
|
-
driftMismatches: {
|
|
468
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
469
|
-
isOptional: false
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
});
|
|
473
|
-
var GetContractVerificationStatusInput = new SchemaModel({
|
|
474
|
-
name: "GetContractVerificationStatusInput",
|
|
475
|
-
fields: {
|
|
476
|
-
projectPath: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
477
|
-
baseline: { type: ScalarTypeEnum.String_unsecure(), isOptional: true }
|
|
478
|
-
}
|
|
479
|
-
});
|
|
480
|
-
var GetContractVerificationStatusOutput = new ZodSchemaType(z.object({
|
|
481
|
-
contracts: z.object({
|
|
482
|
-
name: z.string(),
|
|
483
|
-
lastVerifiedSha: z.string().optional(),
|
|
484
|
-
lastVerifiedDate: z.string().optional(),
|
|
485
|
-
surfaces: z.string().array(),
|
|
486
|
-
driftMismatches: z.int()
|
|
487
|
-
}).array()
|
|
488
|
-
}), {
|
|
489
|
-
name: "GetContractVerificationStatusOutput"
|
|
490
|
-
});
|
|
491
|
-
var GetContractVerificationStatusQuery = defineQuery({
|
|
492
|
-
meta: {
|
|
493
|
-
key: "report.getContractVerificationStatus",
|
|
494
|
-
title: "Get Contract Verification Status",
|
|
495
|
-
version: "1.0.0",
|
|
496
|
-
description: "Retrieves per-contract verification status for the impact report.",
|
|
497
|
-
goal: "Enable stakeholders to see contract health at a glance.",
|
|
498
|
-
context: "Part of the impact report domain. Reads from drift check outputs and verified.json to provide a consolidated view of each contract's drift debt and surface coverage.",
|
|
499
|
-
domain: REPORT_DOMAIN,
|
|
500
|
-
owners: REPORT_OWNERS,
|
|
501
|
-
tags: REPORT_TAGS,
|
|
502
|
-
stability: REPORT_STABILITY
|
|
503
|
-
},
|
|
504
|
-
io: {
|
|
505
|
-
input: GetContractVerificationStatusInput,
|
|
506
|
-
output: GetContractVerificationStatusOutput,
|
|
507
|
-
errors: {
|
|
508
|
-
PROJECT_NOT_FOUND: {
|
|
509
|
-
description: "Project path does not exist.",
|
|
510
|
-
http: 404,
|
|
511
|
-
when: "The provided projectPath does not resolve to a valid directory."
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
},
|
|
515
|
-
policy: {
|
|
516
|
-
auth: "anonymous",
|
|
517
|
-
pii: []
|
|
518
|
-
}
|
|
519
|
-
});
|
|
520
|
-
|
|
521
|
-
// src/install.ts
|
|
522
|
-
function makeEmit(_spec, ctx) {
|
|
523
|
-
return {
|
|
524
|
-
ref: async (ev, payload) => {
|
|
525
|
-
await ctx.__emitGuard__?.(ev.meta.key, ev.meta.version, payload);
|
|
526
|
-
},
|
|
527
|
-
key: async (key, version, payload) => {
|
|
528
|
-
await ctx.__emitGuard__?.(key, version, payload);
|
|
529
|
-
},
|
|
530
|
-
object: async (evt) => {
|
|
531
|
-
await ctx.__emitGuard__?.(evt.key, evt.version, evt.payload);
|
|
532
|
-
}
|
|
533
|
-
};
|
|
534
|
-
}
|
|
535
|
-
function installOp(reg, spec, handler) {
|
|
536
|
-
return reg.register(spec).bind(spec, handler);
|
|
537
|
-
}
|
|
538
|
-
function op(spec, handler) {
|
|
539
|
-
return {
|
|
540
|
-
spec,
|
|
541
|
-
handler,
|
|
542
|
-
install: (reg) => installOp(reg, spec, handler)
|
|
543
|
-
};
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
// src/data-views/spec.ts
|
|
547
|
-
function defineDataView(spec) {
|
|
548
|
-
return spec;
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
// src/data-views/report/contractVerificationTable.ts
|
|
552
|
-
var ContractVerificationTableDataView = defineDataView({
|
|
553
|
-
meta: {
|
|
554
|
-
key: "report.contractVerificationTable",
|
|
555
|
-
title: "Contract Verification Table",
|
|
556
|
-
version: "1.0.0",
|
|
557
|
-
description: "Table view of per-contract verification status for the impact report.",
|
|
558
|
-
domain: "report",
|
|
559
|
-
owners: ["platform.core"],
|
|
560
|
-
tags: ["report", "data-view", "verification"],
|
|
561
|
-
stability: StabilityEnum.Experimental,
|
|
562
|
-
entity: "contract-verification"
|
|
563
|
-
},
|
|
564
|
-
source: {
|
|
565
|
-
primary: {
|
|
566
|
-
key: GetContractVerificationStatusQuery.meta.key,
|
|
567
|
-
version: GetContractVerificationStatusQuery.meta.version
|
|
568
|
-
}
|
|
569
|
-
},
|
|
570
|
-
view: {
|
|
571
|
-
kind: "table",
|
|
572
|
-
fields: [
|
|
573
|
-
{
|
|
574
|
-
key: "name",
|
|
575
|
-
label: "Contract / Endpoint / Event",
|
|
576
|
-
dataPath: "name"
|
|
577
|
-
},
|
|
578
|
-
{
|
|
579
|
-
key: "timeSinceVerified",
|
|
580
|
-
label: "Time since verified",
|
|
581
|
-
dataPath: "lastVerifiedDate"
|
|
582
|
-
},
|
|
583
|
-
{
|
|
584
|
-
key: "driftMismatches",
|
|
585
|
-
label: "Drift debt",
|
|
586
|
-
dataPath: "driftMismatches",
|
|
587
|
-
format: "number",
|
|
588
|
-
sortable: true
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
key: "surfaces",
|
|
592
|
-
label: "Surfaces covered",
|
|
593
|
-
dataPath: "surfaces",
|
|
594
|
-
format: "badge"
|
|
595
|
-
},
|
|
596
|
-
{
|
|
597
|
-
key: "lastVerifiedSha",
|
|
598
|
-
label: "Last verified commit",
|
|
599
|
-
dataPath: "lastVerifiedSha",
|
|
600
|
-
width: "sm"
|
|
601
|
-
}
|
|
602
|
-
],
|
|
603
|
-
primaryField: "name",
|
|
604
|
-
secondaryFields: ["driftMismatches", "timeSinceVerified"],
|
|
605
|
-
columns: [
|
|
606
|
-
{ field: "name", width: "lg" },
|
|
607
|
-
{ field: "lastVerifiedSha", width: "sm" },
|
|
608
|
-
{ field: "timeSinceVerified", width: "sm" },
|
|
609
|
-
{ field: "surfaces", width: "md" },
|
|
610
|
-
{ field: "driftMismatches", width: "xs", align: "right" }
|
|
611
|
-
]
|
|
612
|
-
},
|
|
613
|
-
policy: {
|
|
614
|
-
flags: [],
|
|
615
|
-
pii: []
|
|
616
|
-
}
|
|
617
|
-
});
|
|
618
|
-
|
|
619
|
-
// src/operations/report/index.ts
|
|
620
|
-
var getContractVerificationStatusHandler = async (input, _ctx) => {
|
|
621
|
-
try {
|
|
622
|
-
const cmdProcess = Bun.spawn(["contractspec", "impl", "status", "--format", "json", "--all"], {
|
|
623
|
-
cwd: input.projectPath
|
|
624
|
-
});
|
|
625
|
-
const cmdStdout = await cmdProcess.stdout;
|
|
626
|
-
const output = await Bun.readableStreamToText(cmdStdout);
|
|
627
|
-
if (!output) {
|
|
628
|
-
return { contracts: [] };
|
|
629
|
-
}
|
|
630
|
-
const cliOutput = JSON.parse(output);
|
|
631
|
-
const contracts = [];
|
|
632
|
-
for (const spec of cliOutput.results || []) {
|
|
633
|
-
const contract = {
|
|
634
|
-
name: spec.specKey,
|
|
635
|
-
lastVerifiedSha: spec.specHash,
|
|
636
|
-
lastVerifiedDate: spec.specHash ? new Date().toISOString() : undefined,
|
|
637
|
-
surfaces: spec.implementations.filter((impl) => impl.exists).map((impl) => impl.type),
|
|
638
|
-
driftMismatches: spec.implementations.filter((impl) => !impl.exists).length
|
|
639
|
-
};
|
|
640
|
-
contracts.push(contract);
|
|
641
|
-
}
|
|
642
|
-
return { contracts };
|
|
643
|
-
} catch (error) {
|
|
644
|
-
console.error("Failed to get contract verification status:", error);
|
|
645
|
-
return { contracts: [] };
|
|
646
|
-
}
|
|
647
|
-
};
|
|
648
|
-
function registerReportContracts(registry) {
|
|
649
|
-
installOp(registry, GetContractVerificationStatusQuery, getContractVerificationStatusHandler);
|
|
650
|
-
return registry;
|
|
651
|
-
}
|
|
652
|
-
// src/docs/presentations.ts
|
|
653
|
-
var DEFAULT_TARGETS = [
|
|
654
|
-
"markdown",
|
|
655
|
-
"react"
|
|
656
|
-
];
|
|
657
|
-
function normalizeRoute(route) {
|
|
658
|
-
if (!route.length)
|
|
659
|
-
return "/";
|
|
660
|
-
const withLeading = route.startsWith("/") ? route : `/${route}`;
|
|
661
|
-
return withLeading === "/" ? "/" : withLeading.replace(/\/+$/, "");
|
|
662
|
-
}
|
|
663
|
-
function deriveRoute(block, routePrefix) {
|
|
664
|
-
if (block.route)
|
|
665
|
-
return normalizeRoute(block.route);
|
|
666
|
-
const prefix = routePrefix ?? "/docs";
|
|
667
|
-
const slug = block.id.replace(/^docs\.?/, "").replace(/\./g, "/").replace(/\/+/g, "/");
|
|
668
|
-
const path = slug.startsWith("/") ? slug : `${prefix}/${slug}`;
|
|
669
|
-
return normalizeRoute(path);
|
|
670
|
-
}
|
|
671
|
-
function buildName(block, namespace) {
|
|
672
|
-
return namespace ? `${namespace}.${block.id}` : block.id;
|
|
673
|
-
}
|
|
674
|
-
function docBlockToPresentationSpec(block, options) {
|
|
675
|
-
const targets = options?.defaultTargets ?? DEFAULT_TARGETS;
|
|
676
|
-
const version = block.version ?? options?.defaultVersion ?? "1.0.0";
|
|
677
|
-
const stability = block.stability ?? options?.defaultStability ?? "stable";
|
|
678
|
-
return {
|
|
679
|
-
meta: {
|
|
680
|
-
key: buildName(block, options?.namespace),
|
|
681
|
-
title: block.title,
|
|
682
|
-
version,
|
|
683
|
-
description: block.summary ?? block.title,
|
|
684
|
-
tags: block.tags || [],
|
|
685
|
-
owners: block.owners || [],
|
|
686
|
-
domain: block.domain || "",
|
|
687
|
-
stability,
|
|
688
|
-
goal: `Documentation of: ${block.summary}`,
|
|
689
|
-
context: `Auto-generated`
|
|
690
|
-
},
|
|
691
|
-
policy: block.visibility && block.visibility !== "public" ? { flags: [block.visibility] } : undefined,
|
|
692
|
-
source: {
|
|
693
|
-
type: "blocknotejs",
|
|
694
|
-
docJson: block.body
|
|
695
|
-
},
|
|
696
|
-
targets
|
|
697
|
-
};
|
|
698
|
-
}
|
|
699
|
-
function docBlocksToPresentationRoutes(blocks, options) {
|
|
700
|
-
return blocks.map((block) => ({
|
|
701
|
-
block,
|
|
702
|
-
route: deriveRoute(block, options?.routePrefix),
|
|
703
|
-
descriptor: docBlockToPresentationSpec(block, options)
|
|
704
|
-
}));
|
|
705
|
-
}
|
|
706
|
-
function docBlocksToPresentationSpecs(blocks, options) {
|
|
707
|
-
return blocks.map((block) => docBlockToPresentationSpec(block, options));
|
|
708
|
-
}
|
|
709
|
-
function mapDocRoutes(routes) {
|
|
710
|
-
return routes.map(({ route, descriptor }) => [route, descriptor]);
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
// src/docs/registry.ts
|
|
714
|
-
class DocRegistry {
|
|
715
|
-
routes = new Map;
|
|
716
|
-
constructor(blocks = [], options) {
|
|
717
|
-
blocks.forEach((block) => this.register(block, options));
|
|
718
|
-
}
|
|
719
|
-
register(block, options) {
|
|
720
|
-
const [route] = docBlocksToPresentationRoutes([block], options);
|
|
721
|
-
if (route) {
|
|
722
|
-
this.routes.set(block.id, route);
|
|
723
|
-
}
|
|
724
|
-
return this;
|
|
725
|
-
}
|
|
726
|
-
list() {
|
|
727
|
-
return [...this.routes.values()];
|
|
728
|
-
}
|
|
729
|
-
get(id) {
|
|
730
|
-
return this.routes.get(id);
|
|
731
|
-
}
|
|
732
|
-
toRouteTuples() {
|
|
733
|
-
return this.list().map(({ route, descriptor }) => [route, descriptor]);
|
|
734
|
-
}
|
|
735
|
-
toPresentationSpecs(options) {
|
|
736
|
-
return this.list().map(({ block }) => docBlockToPresentationSpec(block, options));
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
var requiredFields = [
|
|
740
|
-
"id",
|
|
741
|
-
"title",
|
|
742
|
-
"body",
|
|
743
|
-
"kind",
|
|
744
|
-
"visibility",
|
|
745
|
-
"route"
|
|
746
|
-
];
|
|
747
|
-
var defaultDocRegistry = new DocRegistry;
|
|
748
|
-
function registerDocBlocks(blocks) {
|
|
749
|
-
for (const block of blocks) {
|
|
750
|
-
for (const field of requiredFields) {
|
|
751
|
-
if (!block[field]) {
|
|
752
|
-
throw new Error(`DocBlock ${block.id ?? "<missing id>"} missing field ${String(field)}`);
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
defaultDocRegistry.register(block);
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
function listRegisteredDocBlocks() {
|
|
759
|
-
return defaultDocRegistry.list().map((r) => r.block);
|
|
760
|
-
}
|
|
761
|
-
function docId(id) {
|
|
762
|
-
const found = defaultDocRegistry.get(id);
|
|
763
|
-
if (!found)
|
|
764
|
-
throw new Error(`DocBlock not registered: ${id}`);
|
|
765
|
-
return id;
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
// src/schema-to-markdown.ts
|
|
769
|
-
import { isSchemaModel } from "@contractspec/lib.schema";
|
|
770
|
-
function schemaToMarkdown(schema, data, options = {}) {
|
|
771
|
-
const { format = "auto", title, description, maxDepth = 2 } = options;
|
|
772
|
-
const lines = [];
|
|
773
|
-
if (title) {
|
|
774
|
-
lines.push(`# ${title}`, "");
|
|
775
|
-
}
|
|
776
|
-
if (description) {
|
|
777
|
-
lines.push(`> ${description}`, "");
|
|
778
|
-
}
|
|
779
|
-
const effectiveFormat = format === "auto" ? Array.isArray(data) ? "table" : "detail" : format;
|
|
780
|
-
if (effectiveFormat === "table" && Array.isArray(data)) {
|
|
781
|
-
lines.push(schemaToMarkdownTable(schema, data, options));
|
|
782
|
-
} else if (effectiveFormat === "list" && Array.isArray(data)) {
|
|
783
|
-
lines.push(schemaToMarkdownList(schema, data, options));
|
|
784
|
-
} else if (!Array.isArray(data) && data !== null && typeof data === "object") {
|
|
785
|
-
lines.push(schemaToMarkdownDetail(schema, data, { ...options, maxDepth }));
|
|
786
|
-
} else {
|
|
787
|
-
lines.push(`**Data:** ${String(data)}`, "");
|
|
788
|
-
}
|
|
789
|
-
return lines.join(`
|
|
790
|
-
`);
|
|
791
|
-
}
|
|
792
|
-
function schemaToMarkdownTable(schema, items, options = {}) {
|
|
793
|
-
const { maxItems = 100, includeFields, excludeFields = [] } = options;
|
|
794
|
-
const fields = getFieldMeta(schema, includeFields, excludeFields);
|
|
795
|
-
if (fields.length === 0 || items.length === 0) {
|
|
796
|
-
return `_No data available_
|
|
797
|
-
`;
|
|
798
|
-
}
|
|
799
|
-
const limitedItems = items.slice(0, maxItems);
|
|
800
|
-
const lines = [];
|
|
801
|
-
const headers = fields.map((f) => f.label);
|
|
802
|
-
lines.push(`| ${headers.join(" | ")} |`);
|
|
803
|
-
lines.push(`| ${headers.map(() => "---").join(" | ")} |`);
|
|
804
|
-
for (const item of limitedItems) {
|
|
805
|
-
const row = fields.map((f) => formatCellValue(getFieldValue(item, f.name)));
|
|
806
|
-
lines.push(`| ${row.join(" | ")} |`);
|
|
807
|
-
}
|
|
808
|
-
if (items.length > maxItems) {
|
|
809
|
-
lines.push("", `_Showing ${maxItems} of ${items.length} items_`);
|
|
810
|
-
}
|
|
811
|
-
lines.push("");
|
|
812
|
-
return lines.join(`
|
|
813
|
-
`);
|
|
814
|
-
}
|
|
815
|
-
function schemaToMarkdownList(schema, items, options = {}) {
|
|
816
|
-
const {
|
|
817
|
-
maxItems = 50,
|
|
818
|
-
summaryFields,
|
|
819
|
-
includeFields,
|
|
820
|
-
excludeFields = []
|
|
821
|
-
} = options;
|
|
822
|
-
const fields = getFieldMeta(schema, includeFields, excludeFields);
|
|
823
|
-
const displayFields = summaryFields ? fields.filter((f) => summaryFields.includes(f.name)) : fields.slice(0, 3);
|
|
824
|
-
if (displayFields.length === 0 || items.length === 0) {
|
|
825
|
-
return `_No data available_
|
|
826
|
-
`;
|
|
827
|
-
}
|
|
828
|
-
const limitedItems = items.slice(0, maxItems);
|
|
829
|
-
const lines = [];
|
|
830
|
-
for (const item of limitedItems) {
|
|
831
|
-
const primaryValue = formatCellValue(getFieldValue(item, displayFields[0]?.name ?? "id"));
|
|
832
|
-
const secondaryValues = displayFields.slice(1).map((f) => `${f.label}: ${formatCellValue(getFieldValue(item, f.name))}`).join(" \xB7 ");
|
|
833
|
-
const itemLine = secondaryValues ? `- **${primaryValue}** (${secondaryValues})` : `- **${primaryValue}**`;
|
|
834
|
-
lines.push(itemLine);
|
|
835
|
-
}
|
|
836
|
-
if (items.length > maxItems) {
|
|
837
|
-
lines.push("", `_Showing ${maxItems} of ${items.length} items_`);
|
|
838
|
-
}
|
|
839
|
-
lines.push("");
|
|
840
|
-
return lines.join(`
|
|
841
|
-
`);
|
|
842
|
-
}
|
|
843
|
-
function schemaToMarkdownDetail(schema, item, options = {}) {
|
|
844
|
-
const { includeFields, excludeFields = [], maxDepth = 2 } = options;
|
|
845
|
-
if (item === null || typeof item !== "object") {
|
|
846
|
-
return `_No data available_
|
|
847
|
-
`;
|
|
848
|
-
}
|
|
849
|
-
const fields = getFieldMeta(schema, includeFields, excludeFields);
|
|
850
|
-
if (fields.length === 0) {
|
|
851
|
-
return `_No fields to display_
|
|
852
|
-
`;
|
|
853
|
-
}
|
|
854
|
-
const lines = [];
|
|
855
|
-
for (const field of fields) {
|
|
856
|
-
const value = getFieldValue(item, field.name);
|
|
857
|
-
const formattedValue = formatDetailValue(value, maxDepth, 0);
|
|
858
|
-
lines.push(`**${field.label}:** ${formattedValue}`);
|
|
859
|
-
}
|
|
860
|
-
lines.push("");
|
|
861
|
-
return lines.join(`
|
|
862
|
-
`);
|
|
863
|
-
}
|
|
864
|
-
function schemaToMarkdownSummary(items, options = {}) {
|
|
865
|
-
const { numericFields = [], countByField } = options;
|
|
866
|
-
const lines = [];
|
|
867
|
-
lines.push(`**Total Items:** ${items.length}`);
|
|
868
|
-
for (const fieldName of numericFields) {
|
|
869
|
-
const values = items.map((item) => getFieldValue(item, fieldName)).filter((v) => typeof v === "number");
|
|
870
|
-
if (values.length > 0) {
|
|
871
|
-
const sum = values.reduce((a, b) => a + b, 0);
|
|
872
|
-
const avg = sum / values.length;
|
|
873
|
-
const min = Math.min(...values);
|
|
874
|
-
const max = Math.max(...values);
|
|
875
|
-
lines.push(`**${formatFieldName(fieldName)}:** Sum: ${formatNumber(sum)}, Avg: ${formatNumber(avg)}, Min: ${formatNumber(min)}, Max: ${formatNumber(max)}`);
|
|
876
|
-
}
|
|
877
|
-
}
|
|
878
|
-
if (countByField) {
|
|
879
|
-
const counts = {};
|
|
880
|
-
for (const item of items) {
|
|
881
|
-
const value = String(getFieldValue(item, countByField) ?? "Unknown");
|
|
882
|
-
counts[value] = (counts[value] ?? 0) + 1;
|
|
883
|
-
}
|
|
884
|
-
lines.push("", `**By ${formatFieldName(countByField)}:**`);
|
|
885
|
-
for (const [value, count] of Object.entries(counts)) {
|
|
886
|
-
lines.push(`- ${value}: ${count}`);
|
|
887
|
-
}
|
|
888
|
-
}
|
|
889
|
-
lines.push("");
|
|
890
|
-
return lines.join(`
|
|
891
|
-
`);
|
|
892
|
-
}
|
|
893
|
-
function getFieldMeta(schema, includeFields, excludeFields = []) {
|
|
894
|
-
if (!isSchemaModel(schema)) {
|
|
895
|
-
return [];
|
|
896
|
-
}
|
|
897
|
-
const schemaFields = schema.config.fields;
|
|
898
|
-
const fieldNames = Object.keys(schemaFields);
|
|
899
|
-
const filteredFields = fieldNames.filter((name) => {
|
|
900
|
-
if (excludeFields.includes(name))
|
|
901
|
-
return false;
|
|
902
|
-
if (includeFields && !includeFields.includes(name))
|
|
903
|
-
return false;
|
|
904
|
-
return true;
|
|
905
|
-
});
|
|
906
|
-
return filteredFields.map((name) => {
|
|
907
|
-
const fieldConfig = schemaFields[name];
|
|
908
|
-
const isNested = Boolean(fieldConfig?.type && typeof fieldConfig.type === "object" && "config" in fieldConfig.type && typeof fieldConfig.type.config?.fields === "object");
|
|
909
|
-
return {
|
|
910
|
-
name,
|
|
911
|
-
label: formatFieldName(name),
|
|
912
|
-
isOptional: fieldConfig?.isOptional ?? false,
|
|
913
|
-
isArray: fieldConfig?.isArray === true,
|
|
914
|
-
isNested
|
|
915
|
-
};
|
|
916
|
-
});
|
|
917
|
-
}
|
|
918
|
-
function getFieldValue(item, fieldName) {
|
|
919
|
-
if (item === null || typeof item !== "object")
|
|
920
|
-
return;
|
|
921
|
-
const obj = item;
|
|
922
|
-
if (fieldName.includes(".")) {
|
|
923
|
-
const parts = fieldName.split(".");
|
|
924
|
-
let current = obj;
|
|
925
|
-
for (const part of parts) {
|
|
926
|
-
if (current === null || typeof current !== "object")
|
|
927
|
-
return;
|
|
928
|
-
current = current[part];
|
|
929
|
-
}
|
|
930
|
-
return current;
|
|
931
|
-
}
|
|
932
|
-
return obj[fieldName];
|
|
933
|
-
}
|
|
934
|
-
function formatCellValue(value) {
|
|
935
|
-
if (value === null || value === undefined)
|
|
936
|
-
return "-";
|
|
937
|
-
if (typeof value === "boolean")
|
|
938
|
-
return value ? "\u2713" : "\u2717";
|
|
939
|
-
if (typeof value === "number")
|
|
940
|
-
return formatNumber(value);
|
|
941
|
-
if (value instanceof Date)
|
|
942
|
-
return formatDate(value);
|
|
943
|
-
if (typeof value === "string" && isISODate(value))
|
|
944
|
-
return formatDate(new Date(value));
|
|
945
|
-
if (Array.isArray(value))
|
|
946
|
-
return `[${value.length} items]`;
|
|
947
|
-
if (typeof value === "object")
|
|
948
|
-
return "[Object]";
|
|
949
|
-
const str = String(value);
|
|
950
|
-
return str.length > 50 ? `${str.slice(0, 47)}...` : str.replace(/\|/g, "\\|");
|
|
951
|
-
}
|
|
952
|
-
function formatDetailValue(value, maxDepth, currentDepth) {
|
|
953
|
-
if (value === null || value === undefined)
|
|
954
|
-
return "_none_";
|
|
955
|
-
if (typeof value === "boolean")
|
|
956
|
-
return value ? "Yes" : "No";
|
|
957
|
-
if (typeof value === "number")
|
|
958
|
-
return formatNumber(value);
|
|
959
|
-
if (value instanceof Date)
|
|
960
|
-
return formatDate(value);
|
|
961
|
-
if (typeof value === "string" && isISODate(value))
|
|
962
|
-
return formatDate(new Date(value));
|
|
963
|
-
if (Array.isArray(value)) {
|
|
964
|
-
if (value.length === 0)
|
|
965
|
-
return "_empty list_";
|
|
966
|
-
if (currentDepth >= maxDepth)
|
|
967
|
-
return `[${value.length} items]`;
|
|
968
|
-
if (value.length <= 5 && value.every((v) => typeof v !== "object")) {
|
|
969
|
-
return value.map((v) => formatCellValue(v)).join(", ");
|
|
970
|
-
}
|
|
971
|
-
return `[${value.length} items]`;
|
|
972
|
-
}
|
|
973
|
-
if (typeof value === "object") {
|
|
974
|
-
if (currentDepth >= maxDepth)
|
|
975
|
-
return "[Object]";
|
|
976
|
-
const keys = Object.keys(value);
|
|
977
|
-
return `{${keys.length} fields}`;
|
|
978
|
-
}
|
|
979
|
-
return String(value);
|
|
980
|
-
}
|
|
981
|
-
function formatFieldName(name) {
|
|
982
|
-
return name.replace(/([a-z])([A-Z])/g, "$1 $2").replace(/_/g, " ").replace(/^\w/, (c) => c.toUpperCase());
|
|
983
|
-
}
|
|
984
|
-
function formatNumber(value) {
|
|
985
|
-
if (Math.abs(value) >= 1000) {
|
|
986
|
-
return new Intl.NumberFormat("en-US", {
|
|
987
|
-
maximumFractionDigits: 2
|
|
988
|
-
}).format(value);
|
|
989
|
-
}
|
|
990
|
-
if (Number.isInteger(value)) {
|
|
991
|
-
return String(value);
|
|
992
|
-
}
|
|
993
|
-
return value.toFixed(2);
|
|
994
|
-
}
|
|
995
|
-
function formatDate(date) {
|
|
996
|
-
return date.toLocaleDateString("en-US", {
|
|
997
|
-
year: "numeric",
|
|
998
|
-
month: "short",
|
|
999
|
-
day: "numeric"
|
|
1000
|
-
});
|
|
1001
|
-
}
|
|
1002
|
-
function isISODate(str) {
|
|
1003
|
-
if (!/^\d{4}-\d{2}-\d{2}/.test(str))
|
|
1004
|
-
return false;
|
|
1005
|
-
const date = new Date(str);
|
|
1006
|
-
return !isNaN(date.getTime());
|
|
1007
|
-
}
|
|
1008
|
-
|
|
1009
|
-
// src/presentations/transform-engine.ts
|
|
1010
|
-
import React from "react";
|
|
1011
|
-
import TurndownService from "turndown";
|
|
1012
|
-
var turndown = new TurndownService;
|
|
1013
|
-
function renderTextNode(node) {
|
|
1014
|
-
const text = node.text ?? "";
|
|
1015
|
-
if (!node.marks || node.marks.length === 0)
|
|
1016
|
-
return text;
|
|
1017
|
-
return node.marks.reduce((acc, mark) => {
|
|
1018
|
-
switch (mark.type) {
|
|
1019
|
-
case "bold":
|
|
1020
|
-
return `**${acc}**`;
|
|
1021
|
-
case "italic":
|
|
1022
|
-
return `*${acc}*`;
|
|
1023
|
-
case "underline":
|
|
1024
|
-
return `__${acc}__`;
|
|
1025
|
-
case "strike":
|
|
1026
|
-
return `~~${acc}~~`;
|
|
1027
|
-
case "code":
|
|
1028
|
-
return `\`${acc}\``;
|
|
1029
|
-
case "link": {
|
|
1030
|
-
const href = mark.attrs?.href ?? "";
|
|
1031
|
-
return href ? `[${acc}](${href})` : acc;
|
|
1032
|
-
}
|
|
1033
|
-
default:
|
|
1034
|
-
return acc;
|
|
1035
|
-
}
|
|
1036
|
-
}, text);
|
|
1037
|
-
}
|
|
1038
|
-
function renderInline(nodes) {
|
|
1039
|
-
if (!nodes?.length)
|
|
1040
|
-
return "";
|
|
1041
|
-
return nodes.map((child) => renderNode(child)).join("");
|
|
1042
|
-
}
|
|
1043
|
-
function renderList(nodes, ordered = false) {
|
|
1044
|
-
if (!nodes?.length)
|
|
1045
|
-
return "";
|
|
1046
|
-
let counter = 1;
|
|
1047
|
-
return nodes.map((item) => {
|
|
1048
|
-
const body = renderInline(item.content ?? []);
|
|
1049
|
-
if (!body)
|
|
1050
|
-
return "";
|
|
1051
|
-
const prefix = ordered ? `${counter++}. ` : "- ";
|
|
1052
|
-
return `${prefix}${body}`;
|
|
1053
|
-
}).filter(Boolean).join(`
|
|
1054
|
-
`);
|
|
1055
|
-
}
|
|
1056
|
-
function renderNode(node) {
|
|
1057
|
-
switch (node.type) {
|
|
1058
|
-
case "doc":
|
|
1059
|
-
return renderInline(node.content);
|
|
1060
|
-
case "paragraph": {
|
|
1061
|
-
const text = renderInline(node.content);
|
|
1062
|
-
return text.trim().length ? text : "";
|
|
1063
|
-
}
|
|
1064
|
-
case "heading": {
|
|
1065
|
-
const levelAttr = node.attrs?.level;
|
|
1066
|
-
const levelVal = typeof levelAttr === "number" ? levelAttr : 1;
|
|
1067
|
-
const level = Math.min(Math.max(levelVal, 1), 6);
|
|
1068
|
-
return `${"#".repeat(level)} ${renderInline(node.content)}`.trim();
|
|
1069
|
-
}
|
|
1070
|
-
case "bullet_list":
|
|
1071
|
-
return renderList(node.content, false);
|
|
1072
|
-
case "ordered_list":
|
|
1073
|
-
return renderList(node.content, true);
|
|
1074
|
-
case "list_item":
|
|
1075
|
-
return renderInline(node.content);
|
|
1076
|
-
case "blockquote": {
|
|
1077
|
-
const body = renderInline(node.content);
|
|
1078
|
-
return body.split(`
|
|
1079
|
-
`).map((line) => `> ${line}`).join(`
|
|
1080
|
-
`);
|
|
1081
|
-
}
|
|
1082
|
-
case "code_block": {
|
|
1083
|
-
const body = renderInline(node.content);
|
|
1084
|
-
return body ? `\`\`\`
|
|
1085
|
-
${body}
|
|
1086
|
-
\`\`\`` : "";
|
|
1087
|
-
}
|
|
1088
|
-
case "horizontal_rule":
|
|
1089
|
-
return "---";
|
|
1090
|
-
case "hard_break":
|
|
1091
|
-
return `
|
|
1092
|
-
`;
|
|
1093
|
-
case "text":
|
|
1094
|
-
return renderTextNode(node);
|
|
1095
|
-
default:
|
|
1096
|
-
if (node.text)
|
|
1097
|
-
return renderTextNode(node);
|
|
1098
|
-
return "";
|
|
1099
|
-
}
|
|
1100
|
-
}
|
|
1101
|
-
function blockNoteToMarkdown(docJson) {
|
|
1102
|
-
if (typeof docJson === "string")
|
|
1103
|
-
return docJson;
|
|
1104
|
-
if (docJson && typeof docJson === "object" && "html" in docJson) {
|
|
1105
|
-
const html = String(docJson.html);
|
|
1106
|
-
return turndown.turndown(html);
|
|
1107
|
-
}
|
|
1108
|
-
const root = docJson;
|
|
1109
|
-
if (root?.type === "doc" || root?.content) {
|
|
1110
|
-
const blocks = (root.content ?? []).map((n) => renderNode(n)).filter(Boolean);
|
|
1111
|
-
return blocks.join(`
|
|
1112
|
-
|
|
1113
|
-
`).trim();
|
|
1114
|
-
}
|
|
1115
|
-
try {
|
|
1116
|
-
return JSON.stringify(docJson, null, 2);
|
|
1117
|
-
} catch {
|
|
1118
|
-
return String(docJson);
|
|
1119
|
-
}
|
|
1120
|
-
}
|
|
1121
|
-
|
|
1122
|
-
class TransformEngine {
|
|
1123
|
-
renderers = new Map;
|
|
1124
|
-
validators = [];
|
|
1125
|
-
register(renderer) {
|
|
1126
|
-
const arr = this.renderers.get(renderer.target) ?? [];
|
|
1127
|
-
arr.push(renderer);
|
|
1128
|
-
this.renderers.set(renderer.target, arr);
|
|
1129
|
-
return this;
|
|
1130
|
-
}
|
|
1131
|
-
prependRegister(renderer) {
|
|
1132
|
-
const arr = this.renderers.get(renderer.target) ?? [];
|
|
1133
|
-
arr.unshift(renderer);
|
|
1134
|
-
this.renderers.set(renderer.target, arr);
|
|
1135
|
-
return this;
|
|
1136
|
-
}
|
|
1137
|
-
addValidator(v) {
|
|
1138
|
-
this.validators.push(v);
|
|
1139
|
-
return this;
|
|
1140
|
-
}
|
|
1141
|
-
async render(target, desc, ctx) {
|
|
1142
|
-
if (!desc.targets.includes(target))
|
|
1143
|
-
throw new Error(`Target ${target} not declared for ${desc.meta.key}.v${desc.meta.version}`);
|
|
1144
|
-
for (const v of this.validators)
|
|
1145
|
-
await v.validate(desc, target, ctx);
|
|
1146
|
-
const arr = this.renderers.get(target) ?? [];
|
|
1147
|
-
for (const r of arr) {
|
|
1148
|
-
try {
|
|
1149
|
-
const out = await r.render(desc, ctx);
|
|
1150
|
-
return out;
|
|
1151
|
-
} catch (_e) {}
|
|
1152
|
-
}
|
|
1153
|
-
throw new Error(`No renderer available for ${target}`);
|
|
1154
|
-
}
|
|
1155
|
-
}
|
|
1156
|
-
function createDefaultTransformEngine() {
|
|
1157
|
-
const engine = new TransformEngine;
|
|
1158
|
-
const applyPii = (desc, obj) => {
|
|
1159
|
-
const clone = JSON.parse(JSON.stringify(obj));
|
|
1160
|
-
const paths = desc.policy?.pii ?? [];
|
|
1161
|
-
const setAtPath = (root, path) => {
|
|
1162
|
-
const segs = path.replace(/^\//, "").replace(/\[(\d+)\]/g, ".$1").split(".").filter(Boolean);
|
|
1163
|
-
let cur = root;
|
|
1164
|
-
for (let i = 0;i < segs.length - 1; i++) {
|
|
1165
|
-
const k = segs[i];
|
|
1166
|
-
if (!k)
|
|
1167
|
-
continue;
|
|
1168
|
-
if (cur && typeof cur === "object" && k in cur) {
|
|
1169
|
-
cur = cur[k];
|
|
1170
|
-
} else
|
|
1171
|
-
return;
|
|
1172
|
-
}
|
|
1173
|
-
const last = segs[segs.length - 1];
|
|
1174
|
-
if (cur && typeof cur === "object" && last && last in cur)
|
|
1175
|
-
cur[last] = "[REDACTED]";
|
|
1176
|
-
};
|
|
1177
|
-
for (const p of paths)
|
|
1178
|
-
setAtPath(clone, p);
|
|
1179
|
-
return clone;
|
|
1180
|
-
};
|
|
1181
|
-
engine.register({
|
|
1182
|
-
target: "markdown",
|
|
1183
|
-
async render(desc, ctx) {
|
|
1184
|
-
let data = ctx?.data;
|
|
1185
|
-
if (!data && ctx?.fetchData) {
|
|
1186
|
-
data = await ctx.fetchData();
|
|
1187
|
-
}
|
|
1188
|
-
if (desc.source.type === "component" && desc.source.props && data !== undefined) {
|
|
1189
|
-
const isArray = Array.isArray(data);
|
|
1190
|
-
const isSimpleObject = !isArray && typeof data === "object" && data !== null && !Object.values(data).some((v) => Array.isArray(v) || typeof v === "object" && v !== null);
|
|
1191
|
-
if (isArray || isSimpleObject) {
|
|
1192
|
-
const body = schemaToMarkdown(desc.source.props, data, {
|
|
1193
|
-
title: desc.meta.description ?? desc.meta.key,
|
|
1194
|
-
description: `${desc.meta.key} v${desc.meta.version}`
|
|
1195
|
-
});
|
|
1196
|
-
return { mimeType: "text/markdown", body };
|
|
1197
|
-
}
|
|
1198
|
-
throw new Error(`Complex data structure for ${desc.meta.key} - expecting custom renderer`);
|
|
1199
|
-
}
|
|
1200
|
-
if (desc.source.type === "blocknotejs") {
|
|
1201
|
-
const markdown = blockNoteToMarkdown(desc.source.docJson);
|
|
1202
|
-
const redacted = applyPii(desc, { text: markdown });
|
|
1203
|
-
return { mimeType: "text/markdown", body: String(redacted.text) };
|
|
1204
|
-
}
|
|
1205
|
-
if (desc.source.type === "component" && data !== undefined) {
|
|
1206
|
-
throw new Error(`No schema (source.props) available for ${desc.meta.key} - expecting custom renderer`);
|
|
1207
|
-
}
|
|
1208
|
-
if (desc.source.type === "component") {
|
|
1209
|
-
const header = `# ${desc.meta.key} v${desc.meta.version}`;
|
|
1210
|
-
const about = desc.meta.description ? `
|
|
1211
|
-
|
|
1212
|
-
${desc.meta.description}` : "";
|
|
1213
|
-
const tags = desc.meta.tags && desc.meta.tags.length ? `
|
|
1214
|
-
|
|
1215
|
-
Tags: ${desc.meta.tags.join(", ")}` : "";
|
|
1216
|
-
const owners = desc.meta.owners && desc.meta.owners.length ? `
|
|
1217
|
-
|
|
1218
|
-
Owners: ${desc.meta.owners.join(", ")}` : "";
|
|
1219
|
-
const comp = `
|
|
1220
|
-
|
|
1221
|
-
Component: \`${desc.source.componentKey}\``;
|
|
1222
|
-
const policy = desc.policy?.pii?.length ? `
|
|
1223
|
-
|
|
1224
|
-
Redacted paths: ${desc.policy.pii.map((p) => `\`${p}\``).join(", ")}` : "";
|
|
1225
|
-
const body = `${header}${about}${tags}${owners}${comp}${policy}`;
|
|
1226
|
-
return { mimeType: "text/markdown", body };
|
|
1227
|
-
}
|
|
1228
|
-
throw new Error("unsupported");
|
|
1229
|
-
}
|
|
1230
|
-
});
|
|
1231
|
-
engine.register({
|
|
1232
|
-
target: "application/json",
|
|
1233
|
-
async render(desc) {
|
|
1234
|
-
const payload = applyPii(desc, { meta: desc.meta, source: desc.source });
|
|
1235
|
-
return {
|
|
1236
|
-
mimeType: "application/json",
|
|
1237
|
-
body: JSON.stringify(payload, null, 2)
|
|
1238
|
-
};
|
|
1239
|
-
}
|
|
1240
|
-
});
|
|
1241
|
-
engine.register({
|
|
1242
|
-
target: "application/xml",
|
|
1243
|
-
async render(desc) {
|
|
1244
|
-
const json = applyPii(desc, { meta: desc.meta, source: desc.source });
|
|
1245
|
-
const body = `<presentation name="${desc.meta.key}" version="${desc.meta.version}"><json>${encodeURIComponent(JSON.stringify(json))}</json></presentation>`;
|
|
1246
|
-
return { mimeType: "application/xml", body };
|
|
1247
|
-
}
|
|
1248
|
-
});
|
|
1249
|
-
return engine;
|
|
1250
|
-
}
|
|
1251
|
-
function registerDefaultReactRenderer(engine) {
|
|
1252
|
-
engine.register({
|
|
1253
|
-
target: "react",
|
|
1254
|
-
async render(desc) {
|
|
1255
|
-
if (desc.source.type === "component") {
|
|
1256
|
-
const props = desc.source.props ? desc.source.props.getZod().safeParse({}).success ? {} : undefined : undefined;
|
|
1257
|
-
return {
|
|
1258
|
-
kind: "react_component",
|
|
1259
|
-
componentKey: desc.source.componentKey,
|
|
1260
|
-
props
|
|
1261
|
-
};
|
|
1262
|
-
}
|
|
1263
|
-
return {
|
|
1264
|
-
kind: "blocknotejs",
|
|
1265
|
-
docJson: desc.source.docJson,
|
|
1266
|
-
blockConfig: desc.source.blockConfig
|
|
1267
|
-
};
|
|
1268
|
-
}
|
|
1269
|
-
});
|
|
1270
|
-
return engine;
|
|
1271
|
-
}
|
|
1272
|
-
function registerBasicValidation(engine) {
|
|
1273
|
-
engine.addValidator({
|
|
1274
|
-
validate(desc) {
|
|
1275
|
-
if (!desc.meta.description || desc.meta.description.length < 3)
|
|
1276
|
-
throw new Error(`Presentation ${desc.meta.key}.v${desc.meta.version} missing meta.description`);
|
|
1277
|
-
}
|
|
1278
|
-
});
|
|
1279
|
-
return engine;
|
|
1280
|
-
}
|
|
1281
|
-
function registerReactToMarkdownRenderer(engine, componentMap) {
|
|
1282
|
-
const turndownService = new TurndownService({
|
|
1283
|
-
headingStyle: "atx",
|
|
1284
|
-
codeBlockStyle: "fenced",
|
|
1285
|
-
bulletListMarker: "-"
|
|
1286
|
-
});
|
|
1287
|
-
turndownService.addRule("link", {
|
|
1288
|
-
filter: "a",
|
|
1289
|
-
replacement: (content, node) => {
|
|
1290
|
-
const href = node.href;
|
|
1291
|
-
if (href && content) {
|
|
1292
|
-
return `[${content}](${href})`;
|
|
1293
|
-
}
|
|
1294
|
-
return content || "";
|
|
1295
|
-
}
|
|
1296
|
-
});
|
|
1297
|
-
engine.prependRegister({
|
|
1298
|
-
target: "markdown",
|
|
1299
|
-
async render(desc, _ctx) {
|
|
1300
|
-
if (desc.source.type !== "component") {
|
|
1301
|
-
throw new Error("React-to-markdown renderer only handles component presentations");
|
|
1302
|
-
}
|
|
1303
|
-
const { renderToStaticMarkup } = await import("react-dom/server");
|
|
1304
|
-
const Component = componentMap[desc.source.componentKey];
|
|
1305
|
-
if (!Component) {
|
|
1306
|
-
throw new Error(`Component ${desc.source.componentKey} not found in componentMap`);
|
|
1307
|
-
}
|
|
1308
|
-
let html;
|
|
1309
|
-
try {
|
|
1310
|
-
const element = React.createElement(Component, desc.source.props ? {} : undefined);
|
|
1311
|
-
html = renderToStaticMarkup(element);
|
|
1312
|
-
} catch (error) {
|
|
1313
|
-
throw new Error(`Failed to render component ${desc.source.componentKey}: ${error instanceof Error ? error.message : "Unknown error"}`);
|
|
1314
|
-
}
|
|
1315
|
-
let markdown;
|
|
1316
|
-
try {
|
|
1317
|
-
markdown = turndownService.turndown(html);
|
|
1318
|
-
} catch (error) {
|
|
1319
|
-
throw new Error(`Failed to convert HTML to markdown: ${error instanceof Error ? error.message : "Unknown error"}`);
|
|
1320
|
-
}
|
|
1321
|
-
if (desc.policy?.pii && desc.policy.pii.length > 0) {
|
|
1322
|
-
const redacted = markdown.replace(/\[REDACTED\]/g, "[REDACTED]");
|
|
1323
|
-
return { mimeType: "text/markdown", body: redacted };
|
|
1324
|
-
}
|
|
1325
|
-
return { mimeType: "text/markdown", body: markdown };
|
|
1326
|
-
}
|
|
1327
|
-
});
|
|
1328
|
-
return engine;
|
|
1329
|
-
}
|
|
1330
|
-
|
|
1331
|
-
// src/presentations/presentations.ts
|
|
1332
|
-
var definePresentation = (spec) => {
|
|
1333
|
-
return spec;
|
|
1334
|
-
};
|
|
1335
|
-
|
|
1336
|
-
// src/presentations/registry.ts
|
|
1337
|
-
class PresentationRegistry extends SpecContractRegistry {
|
|
1338
|
-
constructor(items) {
|
|
1339
|
-
super("presentation", items);
|
|
1340
|
-
}
|
|
1341
|
-
}
|
|
1342
|
-
// src/forms/forms.ts
|
|
1343
|
-
import { compareVersions as compareVersions2 } from "compare-versions";
|
|
1344
|
-
function formKey(meta) {
|
|
1345
|
-
return `${meta.key}.v${meta.version}`;
|
|
1346
|
-
}
|
|
1347
|
-
|
|
1348
|
-
class FormRegistry {
|
|
1349
|
-
items = new Map;
|
|
1350
|
-
register(spec) {
|
|
1351
|
-
const key = formKey(spec.meta);
|
|
1352
|
-
if (this.items.has(key))
|
|
1353
|
-
throw new Error(`Duplicate form ${key}`);
|
|
1354
|
-
this.items.set(key, spec);
|
|
1355
|
-
return this;
|
|
1356
|
-
}
|
|
1357
|
-
list() {
|
|
1358
|
-
return [...this.items.values()];
|
|
1359
|
-
}
|
|
1360
|
-
get(key, version) {
|
|
1361
|
-
if (version != null)
|
|
1362
|
-
return this.items.get(`${key}.v${version}`);
|
|
1363
|
-
let candidate;
|
|
1364
|
-
for (const [k, v] of this.items.entries()) {
|
|
1365
|
-
if (v.meta.key !== key)
|
|
1366
|
-
continue;
|
|
1367
|
-
if (!candidate || compareVersions2(v.meta.version, candidate.meta.version) > 0) {
|
|
1368
|
-
candidate = v;
|
|
1369
|
-
}
|
|
1370
|
-
}
|
|
1371
|
-
return candidate;
|
|
1372
|
-
}
|
|
1373
|
-
filter(criteria) {
|
|
1374
|
-
const { filterBy: filterBy2 } = (init_registry_utils(), __toCommonJS(exports_registry_utils));
|
|
1375
|
-
return filterBy2(this.list(), criteria);
|
|
1376
|
-
}
|
|
1377
|
-
listByTag(tag) {
|
|
1378
|
-
return this.list().filter((f) => f.meta.tags?.includes(tag));
|
|
1379
|
-
}
|
|
1380
|
-
listByOwner(owner) {
|
|
1381
|
-
return this.list().filter((f) => f.meta.owners?.includes(owner));
|
|
1382
|
-
}
|
|
1383
|
-
groupBy(keyFn) {
|
|
1384
|
-
const { groupBy: groupBy2 } = (init_registry_utils(), __toCommonJS(exports_registry_utils));
|
|
1385
|
-
return groupBy2(this.list(), keyFn);
|
|
1386
|
-
}
|
|
1387
|
-
getUniqueTags() {
|
|
1388
|
-
const { getUniqueTags: getUniqueTags2 } = (init_registry_utils(), __toCommonJS(exports_registry_utils));
|
|
1389
|
-
return getUniqueTags2(this.list());
|
|
1390
|
-
}
|
|
1391
|
-
}
|
|
1392
|
-
function getAtPath(values, path) {
|
|
1393
|
-
if (!path)
|
|
1394
|
-
return;
|
|
1395
|
-
const segs = path.replace(/\[(\d+)\]/g, ".$1").split(".").filter(Boolean);
|
|
1396
|
-
let cur = values;
|
|
1397
|
-
for (const s of segs) {
|
|
1398
|
-
if (cur == null)
|
|
1399
|
-
return;
|
|
1400
|
-
if (cur && typeof cur === "object" && s in cur) {
|
|
1401
|
-
cur = cur[s];
|
|
1402
|
-
} else {
|
|
1403
|
-
return;
|
|
1404
|
-
}
|
|
1405
|
-
}
|
|
1406
|
-
return cur;
|
|
1407
|
-
}
|
|
1408
|
-
function evalPredicate(values, pred) {
|
|
1409
|
-
if (!pred)
|
|
1410
|
-
return true;
|
|
1411
|
-
if (pred.not)
|
|
1412
|
-
return !evalPredicate(values, pred.not);
|
|
1413
|
-
if (pred.all && pred.all.length)
|
|
1414
|
-
return pred.all.every((p) => evalPredicate(values, p));
|
|
1415
|
-
if (pred.anyOf && pred.anyOf.length)
|
|
1416
|
-
return pred.anyOf.some((p) => evalPredicate(values, p));
|
|
1417
|
-
if (pred.when) {
|
|
1418
|
-
const { path, op: op2 = "truthy", value } = pred.when;
|
|
1419
|
-
const v = getAtPath(values, path);
|
|
1420
|
-
switch (op2) {
|
|
1421
|
-
case "equals":
|
|
1422
|
-
return v === value;
|
|
1423
|
-
case "notEquals":
|
|
1424
|
-
return v !== value;
|
|
1425
|
-
case "in":
|
|
1426
|
-
return Array.isArray(value) && value.includes(v);
|
|
1427
|
-
case "notIn":
|
|
1428
|
-
return Array.isArray(value) && !value.includes(v);
|
|
1429
|
-
case "gt":
|
|
1430
|
-
return Number(v) > Number(value);
|
|
1431
|
-
case "gte":
|
|
1432
|
-
return Number(v) >= Number(value);
|
|
1433
|
-
case "lt":
|
|
1434
|
-
return Number(v) < Number(value);
|
|
1435
|
-
case "lte":
|
|
1436
|
-
return Number(v) <= Number(value);
|
|
1437
|
-
case "empty":
|
|
1438
|
-
return v == null || (Array.isArray(v) ? v.length === 0 : String(v).length === 0);
|
|
1439
|
-
case "lengthGt":
|
|
1440
|
-
return (Array.isArray(v) || typeof v === "string") && v.length > Number(value ?? 0);
|
|
1441
|
-
case "lengthGte":
|
|
1442
|
-
return (Array.isArray(v) || typeof v === "string") && v.length >= Number(value ?? 0);
|
|
1443
|
-
case "lengthLt":
|
|
1444
|
-
return (Array.isArray(v) || typeof v === "string") && v.length < Number(value ?? 0);
|
|
1445
|
-
case "lengthLte":
|
|
1446
|
-
return (Array.isArray(v) || typeof v === "string") && v.length <= Number(value ?? 0);
|
|
1447
|
-
case "truthy":
|
|
1448
|
-
default:
|
|
1449
|
-
return Boolean(v);
|
|
1450
|
-
}
|
|
1451
|
-
}
|
|
1452
|
-
return true;
|
|
1453
|
-
}
|
|
1454
|
-
function buildZodWithRelations(spec, handlers) {
|
|
1455
|
-
const base = spec.model.getZod();
|
|
1456
|
-
return base.superRefine((values, ctx) => {
|
|
1457
|
-
const visit = (field, parentPath) => {
|
|
1458
|
-
const path = field.name ? parentPath ? `${parentPath}.${field.name}` : field.name : parentPath ?? "";
|
|
1459
|
-
if (field.requiredWhen) {
|
|
1460
|
-
const should = evalPredicate(values, field.requiredWhen);
|
|
1461
|
-
if (should) {
|
|
1462
|
-
const v = getAtPath(values, path);
|
|
1463
|
-
const empty = v == null || typeof v === "string" && v.trim().length === 0 || Array.isArray(v) && v.length === 0;
|
|
1464
|
-
if (empty)
|
|
1465
|
-
ctx.addIssue({
|
|
1466
|
-
code: "custom",
|
|
1467
|
-
path: path.split("."),
|
|
1468
|
-
message: "required"
|
|
1469
|
-
});
|
|
1470
|
-
}
|
|
1471
|
-
}
|
|
1472
|
-
if (field.kind === "array") {
|
|
1473
|
-
const arr = getAtPath(values, path);
|
|
1474
|
-
if (field.min != null && Array.isArray(arr) && arr.length < field.min) {
|
|
1475
|
-
ctx.addIssue({
|
|
1476
|
-
code: "custom",
|
|
1477
|
-
path: path.split("."),
|
|
1478
|
-
message: `min:${field.min}`
|
|
1479
|
-
});
|
|
1480
|
-
}
|
|
1481
|
-
if (field.max != null && Array.isArray(arr) && arr.length > field.max) {
|
|
1482
|
-
ctx.addIssue({
|
|
1483
|
-
code: "custom",
|
|
1484
|
-
path: path.split("."),
|
|
1485
|
-
message: `max:${field.max}`
|
|
1486
|
-
});
|
|
1487
|
-
}
|
|
1488
|
-
visit(field.of, path);
|
|
1489
|
-
} else if (field.kind === "group") {
|
|
1490
|
-
for (const child of field.fields)
|
|
1491
|
-
visit(child, path);
|
|
1492
|
-
}
|
|
1493
|
-
};
|
|
1494
|
-
for (const f of spec.fields)
|
|
1495
|
-
visit(f);
|
|
1496
|
-
if (spec.constraints && handlers) {
|
|
1497
|
-
for (const c of spec.constraints) {
|
|
1498
|
-
const fn = handlers[c.key];
|
|
1499
|
-
if (!fn)
|
|
1500
|
-
continue;
|
|
1501
|
-
const res = fn(values, c.paths, c.args);
|
|
1502
|
-
if (!res.ok) {
|
|
1503
|
-
ctx.addIssue({
|
|
1504
|
-
code: "custom",
|
|
1505
|
-
path: (res.path ?? c.paths[0] ?? "").split(".").filter(Boolean),
|
|
1506
|
-
message: res.message ?? c.messageI18n
|
|
1507
|
-
});
|
|
1508
|
-
}
|
|
1509
|
-
}
|
|
1510
|
-
}
|
|
1511
|
-
});
|
|
1512
|
-
}
|
|
1513
|
-
function defineFormSpec(spec) {
|
|
1514
|
-
return spec;
|
|
1515
|
-
}
|
|
1516
|
-
|
|
1517
|
-
// src/data-views/registry.ts
|
|
1518
|
-
function dataViewKey(spec) {
|
|
1519
|
-
return `${spec.meta.key}.v${spec.meta.version}`;
|
|
1520
|
-
}
|
|
1521
|
-
|
|
1522
|
-
class DataViewRegistry extends SpecContractRegistry {
|
|
1523
|
-
constructor(items) {
|
|
1524
|
-
super("data-view", items);
|
|
1525
|
-
}
|
|
1526
|
-
}
|
|
1527
|
-
// src/docs/constants.ts
|
|
1528
|
-
var DOCS_DOMAIN = "docs";
|
|
1529
|
-
var DOCS_OWNERS = ["docs-platform"];
|
|
1530
|
-
var DOCS_TAGS = ["docs", "documentation"];
|
|
1531
|
-
var DOCS_STABILITY = StabilityEnum.Experimental;
|
|
1532
|
-
|
|
1533
|
-
// src/docs/tech/docs-system.docblock.ts
|
|
1534
|
-
var docsSystemDocBlocks = [
|
|
1535
|
-
{
|
|
1536
|
-
id: "docs.tech.docs-system",
|
|
1537
|
-
title: "Docs system overview",
|
|
1538
|
-
summary: "How ContractSpec generates, indexes, and presents documentation.",
|
|
1539
|
-
kind: "reference",
|
|
1540
|
-
visibility: "public",
|
|
1541
|
-
route: "/docs/tech/docs/system",
|
|
1542
|
-
tags: ["docs", "system", "contracts"],
|
|
1543
|
-
body: `# Docs system overview
|
|
1544
|
-
|
|
1545
|
-
ContractSpec treats documentation as a first-class output of your specs. The docs system combines:
|
|
1546
|
-
|
|
1547
|
-
- Contract operations and schemas
|
|
1548
|
-
- DocBlocks (goal/how/usage/reference)
|
|
1549
|
-
- Presentations for rendering
|
|
1550
|
-
|
|
1551
|
-
The result is a consistent docs surface across CLI, web, and MCP.
|
|
1552
|
-
|
|
1553
|
-
## Key surfaces
|
|
1554
|
-
|
|
1555
|
-
- Generation: \`docs.generate\`
|
|
1556
|
-
- Index/search: \`docs.search\`
|
|
1557
|
-
- Contract reference: \`docs.contract.reference\`
|
|
1558
|
-
- Publish: \`docs.publish\`
|
|
1559
|
-
`
|
|
1560
|
-
},
|
|
1561
|
-
{
|
|
1562
|
-
id: "docs.tech.docs-generator",
|
|
1563
|
-
title: "Docs generator",
|
|
1564
|
-
summary: "Generate reference docs and metadata from ContractSpecs.",
|
|
1565
|
-
kind: "how",
|
|
1566
|
-
visibility: "public",
|
|
1567
|
-
route: "/docs/tech/docs/generator",
|
|
1568
|
-
tags: ["docs", "generator", "cli"],
|
|
1569
|
-
body: `# Docs generator
|
|
1570
|
-
|
|
1571
|
-
The generator produces documentation artifacts from registered ContractSpecs and DocBlocks.
|
|
1572
|
-
|
|
1573
|
-
## Outputs
|
|
1574
|
-
|
|
1575
|
-
- Reference pages for operations, events, forms, data views, and presentations
|
|
1576
|
-
- Search index metadata (DocBlocks + routes)
|
|
1577
|
-
- Contract schemas rendered to markdown or JSON
|
|
1578
|
-
`
|
|
1579
|
-
},
|
|
1580
|
-
{
|
|
1581
|
-
id: "docs.tech.docs-search",
|
|
1582
|
-
title: "Docs index and search",
|
|
1583
|
-
summary: "Search DocBlocks by query, tag, kind, or visibility.",
|
|
1584
|
-
kind: "reference",
|
|
1585
|
-
visibility: "public",
|
|
1586
|
-
route: "/docs/tech/docs/search",
|
|
1587
|
-
tags: ["docs", "search"],
|
|
1588
|
-
body: `# Docs index and search
|
|
1589
|
-
|
|
1590
|
-
The docs index is the canonical list of DocBlocks exposed to UI and MCP surfaces.
|
|
1591
|
-
|
|
1592
|
-
## Query
|
|
1593
|
-
|
|
1594
|
-
- Operation: \`docs.search\`
|
|
1595
|
-
- Filters: query, tag, kind, visibility
|
|
1596
|
-
`
|
|
1597
|
-
},
|
|
1598
|
-
{
|
|
1599
|
-
id: "docs.tech.docs-reference",
|
|
1600
|
-
title: "Contract reference pages",
|
|
1601
|
-
summary: "Resolve any spec into a docs-ready reference payload.",
|
|
1602
|
-
kind: "reference",
|
|
1603
|
-
visibility: "public",
|
|
1604
|
-
route: "/docs/tech/docs/reference",
|
|
1605
|
-
tags: ["docs", "reference"],
|
|
1606
|
-
body: `# Contract reference
|
|
1607
|
-
|
|
1608
|
-
Contract reference pages are generated from spec metadata plus schema details.
|
|
1609
|
-
|
|
1610
|
-
## Query
|
|
1611
|
-
|
|
1612
|
-
- Operation: \`docs.contract.reference\`
|
|
1613
|
-
`
|
|
1614
|
-
},
|
|
1615
|
-
{
|
|
1616
|
-
id: "docs.tech.docs-publish",
|
|
1617
|
-
title: "Docs publish",
|
|
1618
|
-
summary: "Publish generated artifacts to the docs host.",
|
|
1619
|
-
kind: "how",
|
|
1620
|
-
visibility: "public",
|
|
1621
|
-
route: "/docs/tech/docs/publish",
|
|
1622
|
-
tags: ["docs", "publish"],
|
|
1623
|
-
body: `# Docs publish
|
|
1624
|
-
|
|
1625
|
-
Publishing moves generated artifacts to a hosting target with versioning.
|
|
1626
|
-
|
|
1627
|
-
## Command
|
|
1628
|
-
|
|
1629
|
-
- Operation: \`docs.publish\`
|
|
1630
|
-
`
|
|
1631
|
-
},
|
|
1632
|
-
{
|
|
1633
|
-
id: "docs.tech.docs-examples",
|
|
1634
|
-
title: "Examples catalog",
|
|
1635
|
-
summary: "Document and surface example projects with sandbox support.",
|
|
1636
|
-
kind: "reference",
|
|
1637
|
-
visibility: "public",
|
|
1638
|
-
route: "/docs/tech/docs/examples",
|
|
1639
|
-
tags: ["docs", "examples"],
|
|
1640
|
-
body: `# Examples catalog
|
|
1641
|
-
|
|
1642
|
-
Examples are registered as ExampleSpecs and surface DocBlocks for discovery.
|
|
1643
|
-
|
|
1644
|
-
- Docs index tags should include \`examples\` to populate the catalog.
|
|
1645
|
-
- Sandbox support is available under \`/sandbox\`.
|
|
1646
|
-
`
|
|
1647
|
-
}
|
|
1648
|
-
];
|
|
1649
|
-
registerDocBlocks(docsSystemDocBlocks);
|
|
1650
|
-
// src/docs/events/docsGenerated.event.ts
|
|
1651
|
-
import { SchemaModel as SchemaModel2, ScalarTypeEnum as ScalarTypeEnum2 } from "@contractspec/lib.schema";
|
|
1652
|
-
var DocsGeneratedPayload = new SchemaModel2({
|
|
1653
|
-
name: "DocsGeneratedPayload",
|
|
1654
|
-
fields: {
|
|
1655
|
-
buildId: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
1656
|
-
version: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
1657
|
-
generatedAt: { type: ScalarTypeEnum2.DateTime(), isOptional: false },
|
|
1658
|
-
outputDir: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
1659
|
-
artifactCount: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: true },
|
|
1660
|
-
warnings: {
|
|
1661
|
-
type: ScalarTypeEnum2.String_unsecure(),
|
|
1662
|
-
isOptional: true,
|
|
1663
|
-
isArray: true
|
|
1664
|
-
}
|
|
1665
|
-
}
|
|
1666
|
-
});
|
|
1667
|
-
var DocsGeneratedEvent = defineEvent({
|
|
1668
|
-
meta: {
|
|
1669
|
-
key: "docs.generated",
|
|
1670
|
-
version: "1.0.0",
|
|
1671
|
-
description: "Emitted when documentation artifacts are generated.",
|
|
1672
|
-
domain: DOCS_DOMAIN,
|
|
1673
|
-
owners: DOCS_OWNERS,
|
|
1674
|
-
tags: [...DOCS_TAGS, "generation"],
|
|
1675
|
-
stability: DOCS_STABILITY,
|
|
1676
|
-
docId: [docId("docs.tech.docs-generator")]
|
|
1677
|
-
},
|
|
1678
|
-
payload: DocsGeneratedPayload
|
|
1679
|
-
});
|
|
1680
|
-
|
|
1681
|
-
// src/docs/commands/docsGenerate.command.ts
|
|
1682
|
-
import { ScalarTypeEnum as ScalarTypeEnum3, SchemaModel as SchemaModel3 } from "@contractspec/lib.schema";
|
|
1683
|
-
var DocsArtifactModel = new SchemaModel3({
|
|
1684
|
-
name: "DocsArtifact",
|
|
1685
|
-
fields: {
|
|
1686
|
-
path: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false },
|
|
1687
|
-
format: { type: ScalarTypeEnum3.String_unsecure(), isOptional: true },
|
|
1688
|
-
bytes: { type: ScalarTypeEnum3.Int_unsecure(), isOptional: true },
|
|
1689
|
-
kind: { type: ScalarTypeEnum3.String_unsecure(), isOptional: true }
|
|
1690
|
-
}
|
|
1691
|
-
});
|
|
1692
|
-
var DocsGenerateInput = new SchemaModel3({
|
|
1693
|
-
name: "DocsGenerateInput",
|
|
1694
|
-
fields: {
|
|
1695
|
-
workspaceRoot: { type: ScalarTypeEnum3.String_unsecure(), isOptional: true },
|
|
1696
|
-
outputDir: { type: ScalarTypeEnum3.String_unsecure(), isOptional: true },
|
|
1697
|
-
version: { type: ScalarTypeEnum3.String_unsecure(), isOptional: true },
|
|
1698
|
-
formats: {
|
|
1699
|
-
type: ScalarTypeEnum3.String_unsecure(),
|
|
1700
|
-
isOptional: true,
|
|
1701
|
-
isArray: true
|
|
1702
|
-
},
|
|
1703
|
-
includeInternal: { type: ScalarTypeEnum3.Boolean(), isOptional: true },
|
|
1704
|
-
includeExperimental: { type: ScalarTypeEnum3.Boolean(), isOptional: true },
|
|
1705
|
-
contractFilter: {
|
|
1706
|
-
type: ScalarTypeEnum3.String_unsecure(),
|
|
1707
|
-
isOptional: true
|
|
1708
|
-
},
|
|
1709
|
-
docblockFilter: {
|
|
1710
|
-
type: ScalarTypeEnum3.String_unsecure(),
|
|
1711
|
-
isOptional: true
|
|
1712
|
-
},
|
|
1713
|
-
dryRun: { type: ScalarTypeEnum3.Boolean(), isOptional: true }
|
|
1714
|
-
}
|
|
1715
|
-
});
|
|
1716
|
-
var DocsGenerateOutput = new SchemaModel3({
|
|
1717
|
-
name: "DocsGenerateOutput",
|
|
1718
|
-
fields: {
|
|
1719
|
-
buildId: { type: ScalarTypeEnum3.String_unsecure(), isOptional: false },
|
|
1720
|
-
version: { type: ScalarTypeEnum3.String_unsecure(), isOptional: true },
|
|
1721
|
-
generatedAt: { type: ScalarTypeEnum3.DateTime(), isOptional: false },
|
|
1722
|
-
outputDir: { type: ScalarTypeEnum3.String_unsecure(), isOptional: true },
|
|
1723
|
-
artifacts: { type: DocsArtifactModel, isOptional: true, isArray: true },
|
|
1724
|
-
warnings: {
|
|
1725
|
-
type: ScalarTypeEnum3.String_unsecure(),
|
|
1726
|
-
isOptional: true,
|
|
1727
|
-
isArray: true
|
|
1728
|
-
}
|
|
1729
|
-
}
|
|
1730
|
-
});
|
|
1731
|
-
var DocsGenerateCommand = defineCommand({
|
|
1732
|
-
meta: {
|
|
1733
|
-
key: "docs.generate",
|
|
1734
|
-
title: "Generate Documentation",
|
|
1735
|
-
version: "1.0.0",
|
|
1736
|
-
description: "Generate documentation artifacts from ContractSpecs.",
|
|
1737
|
-
goal: "Produce up-to-date reference docs and guides from specs and DocBlocks.",
|
|
1738
|
-
context: "Used by CLI and CI to keep docs in sync with contract definitions.",
|
|
1739
|
-
domain: DOCS_DOMAIN,
|
|
1740
|
-
owners: DOCS_OWNERS,
|
|
1741
|
-
tags: [...DOCS_TAGS, "generation"],
|
|
1742
|
-
stability: DOCS_STABILITY,
|
|
1743
|
-
docId: [docId("docs.tech.docs-generator")]
|
|
1744
|
-
},
|
|
1745
|
-
capability: {
|
|
1746
|
-
key: "docs.system",
|
|
1747
|
-
version: "1.0.0"
|
|
1748
|
-
},
|
|
1749
|
-
io: {
|
|
1750
|
-
input: DocsGenerateInput,
|
|
1751
|
-
output: DocsGenerateOutput,
|
|
1752
|
-
errors: {
|
|
1753
|
-
OUTPUT_WRITE_FAILED: {
|
|
1754
|
-
description: "Failed to write generated docs output.",
|
|
1755
|
-
http: 500,
|
|
1756
|
-
when: "The generator cannot persist artifacts to the output path."
|
|
1757
|
-
}
|
|
1758
|
-
}
|
|
1759
|
-
},
|
|
1760
|
-
policy: {
|
|
1761
|
-
auth: "admin",
|
|
1762
|
-
pii: []
|
|
1763
|
-
},
|
|
1764
|
-
sideEffects: {
|
|
1765
|
-
emits: [
|
|
1766
|
-
{
|
|
1767
|
-
ref: DocsGeneratedEvent.meta,
|
|
1768
|
-
when: "Docs generation completes successfully."
|
|
1769
|
-
}
|
|
1770
|
-
]
|
|
1771
|
-
}
|
|
1772
|
-
});
|
|
1773
|
-
|
|
1774
|
-
// src/docs/events/docsPublished.event.ts
|
|
1775
|
-
import { SchemaModel as SchemaModel4, ScalarTypeEnum as ScalarTypeEnum4 } from "@contractspec/lib.schema";
|
|
1776
|
-
var DocsPublishedPayload = new SchemaModel4({
|
|
1777
|
-
name: "DocsPublishedPayload",
|
|
1778
|
-
fields: {
|
|
1779
|
-
publishId: { type: ScalarTypeEnum4.String_unsecure(), isOptional: false },
|
|
1780
|
-
version: { type: ScalarTypeEnum4.String_unsecure(), isOptional: true },
|
|
1781
|
-
environment: { type: ScalarTypeEnum4.String_unsecure(), isOptional: true },
|
|
1782
|
-
url: { type: ScalarTypeEnum4.String_unsecure(), isOptional: true },
|
|
1783
|
-
publishedAt: { type: ScalarTypeEnum4.DateTime(), isOptional: false },
|
|
1784
|
-
status: { type: ScalarTypeEnum4.String_unsecure(), isOptional: true },
|
|
1785
|
-
warnings: {
|
|
1786
|
-
type: ScalarTypeEnum4.String_unsecure(),
|
|
1787
|
-
isOptional: true,
|
|
1788
|
-
isArray: true
|
|
1789
|
-
}
|
|
1790
|
-
}
|
|
1791
|
-
});
|
|
1792
|
-
var DocsPublishedEvent = defineEvent({
|
|
1793
|
-
meta: {
|
|
1794
|
-
key: "docs.published",
|
|
1795
|
-
version: "1.0.0",
|
|
1796
|
-
description: "Emitted when documentation is published.",
|
|
1797
|
-
domain: DOCS_DOMAIN,
|
|
1798
|
-
owners: DOCS_OWNERS,
|
|
1799
|
-
tags: [...DOCS_TAGS, "publish"],
|
|
1800
|
-
stability: DOCS_STABILITY,
|
|
1801
|
-
docId: [docId("docs.tech.docs-publish")]
|
|
1802
|
-
},
|
|
1803
|
-
payload: DocsPublishedPayload
|
|
1804
|
-
});
|
|
1805
|
-
|
|
1806
|
-
// src/docs/commands/docsPublish.command.ts
|
|
1807
|
-
import { ScalarTypeEnum as ScalarTypeEnum5, SchemaModel as SchemaModel5 } from "@contractspec/lib.schema";
|
|
1808
|
-
var DocsPublishInput = new SchemaModel5({
|
|
1809
|
-
name: "DocsPublishInput",
|
|
1810
|
-
fields: {
|
|
1811
|
-
buildId: { type: ScalarTypeEnum5.String_unsecure(), isOptional: false },
|
|
1812
|
-
version: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
1813
|
-
environment: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
1814
|
-
deployTarget: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
1815
|
-
artifactPath: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
1816
|
-
dryRun: { type: ScalarTypeEnum5.Boolean(), isOptional: true },
|
|
1817
|
-
notes: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true }
|
|
1818
|
-
}
|
|
1819
|
-
});
|
|
1820
|
-
var DocsPublishOutput = new SchemaModel5({
|
|
1821
|
-
name: "DocsPublishOutput",
|
|
1822
|
-
fields: {
|
|
1823
|
-
publishId: { type: ScalarTypeEnum5.String_unsecure(), isOptional: false },
|
|
1824
|
-
publishedAt: { type: ScalarTypeEnum5.DateTime(), isOptional: false },
|
|
1825
|
-
url: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
1826
|
-
status: { type: ScalarTypeEnum5.String_unsecure(), isOptional: true },
|
|
1827
|
-
warnings: {
|
|
1828
|
-
type: ScalarTypeEnum5.String_unsecure(),
|
|
1829
|
-
isOptional: true,
|
|
1830
|
-
isArray: true
|
|
1831
|
-
}
|
|
1832
|
-
}
|
|
1833
|
-
});
|
|
1834
|
-
var DocsPublishCommand = defineCommand({
|
|
1835
|
-
meta: {
|
|
1836
|
-
key: "docs.publish",
|
|
1837
|
-
title: "Publish Documentation",
|
|
1838
|
-
version: "1.0.0",
|
|
1839
|
-
description: "Publish generated documentation artifacts.",
|
|
1840
|
-
goal: "Deploy docs to the public docs surface with consistent versioning.",
|
|
1841
|
-
context: "Used by release pipelines to push generated docs to hosting targets.",
|
|
1842
|
-
domain: DOCS_DOMAIN,
|
|
1843
|
-
owners: DOCS_OWNERS,
|
|
1844
|
-
tags: [...DOCS_TAGS, "publish"],
|
|
1845
|
-
stability: DOCS_STABILITY,
|
|
1846
|
-
docId: [docId("docs.tech.docs-publish")]
|
|
1847
|
-
},
|
|
1848
|
-
capability: {
|
|
1849
|
-
key: "docs.system",
|
|
1850
|
-
version: "1.0.0"
|
|
1851
|
-
},
|
|
1852
|
-
io: {
|
|
1853
|
-
input: DocsPublishInput,
|
|
1854
|
-
output: DocsPublishOutput,
|
|
1855
|
-
errors: {
|
|
1856
|
-
DEPLOY_FAILED: {
|
|
1857
|
-
description: "Failed to deploy documentation artifacts.",
|
|
1858
|
-
http: 500,
|
|
1859
|
-
when: "The docs publish step fails to deploy to the target host."
|
|
1860
|
-
}
|
|
1861
|
-
}
|
|
1862
|
-
},
|
|
1863
|
-
policy: {
|
|
1864
|
-
auth: "admin",
|
|
1865
|
-
pii: []
|
|
1866
|
-
},
|
|
1867
|
-
sideEffects: {
|
|
1868
|
-
emits: [
|
|
1869
|
-
{
|
|
1870
|
-
ref: DocsPublishedEvent.meta,
|
|
1871
|
-
when: "Docs publish completes successfully."
|
|
1872
|
-
}
|
|
1873
|
-
]
|
|
1874
|
-
}
|
|
1875
|
-
});
|
|
1876
|
-
// src/docs/queries/docsIndex.query.ts
|
|
1877
|
-
import { ScalarTypeEnum as ScalarTypeEnum6, SchemaModel as SchemaModel6 } from "@contractspec/lib.schema";
|
|
1878
|
-
var DocSummaryModel = new SchemaModel6({
|
|
1879
|
-
name: "DocSummary",
|
|
1880
|
-
fields: {
|
|
1881
|
-
id: { type: ScalarTypeEnum6.String_unsecure(), isOptional: false },
|
|
1882
|
-
title: { type: ScalarTypeEnum6.String_unsecure(), isOptional: false },
|
|
1883
|
-
summary: { type: ScalarTypeEnum6.String_unsecure(), isOptional: true },
|
|
1884
|
-
route: { type: ScalarTypeEnum6.String_unsecure(), isOptional: true },
|
|
1885
|
-
visibility: { type: ScalarTypeEnum6.String_unsecure(), isOptional: true },
|
|
1886
|
-
kind: { type: ScalarTypeEnum6.String_unsecure(), isOptional: true },
|
|
1887
|
-
version: { type: ScalarTypeEnum6.String_unsecure(), isOptional: true },
|
|
1888
|
-
tags: {
|
|
1889
|
-
type: ScalarTypeEnum6.String_unsecure(),
|
|
1890
|
-
isOptional: true,
|
|
1891
|
-
isArray: true
|
|
1892
|
-
}
|
|
1893
|
-
}
|
|
1894
|
-
});
|
|
1895
|
-
var DocsIndexInput = new SchemaModel6({
|
|
1896
|
-
name: "DocsIndexInput",
|
|
1897
|
-
fields: {
|
|
1898
|
-
query: { type: ScalarTypeEnum6.String_unsecure(), isOptional: true },
|
|
1899
|
-
tag: {
|
|
1900
|
-
type: ScalarTypeEnum6.String_unsecure(),
|
|
1901
|
-
isOptional: true,
|
|
1902
|
-
isArray: true
|
|
1903
|
-
},
|
|
1904
|
-
visibility: { type: ScalarTypeEnum6.String_unsecure(), isOptional: true },
|
|
1905
|
-
kind: { type: ScalarTypeEnum6.String_unsecure(), isOptional: true },
|
|
1906
|
-
limit: { type: ScalarTypeEnum6.Int_unsecure(), isOptional: true },
|
|
1907
|
-
offset: { type: ScalarTypeEnum6.Int_unsecure(), isOptional: true }
|
|
1908
|
-
}
|
|
1909
|
-
});
|
|
1910
|
-
var DocsIndexOutput = new SchemaModel6({
|
|
1911
|
-
name: "DocsIndexOutput",
|
|
1912
|
-
fields: {
|
|
1913
|
-
items: { type: DocSummaryModel, isOptional: true, isArray: true },
|
|
1914
|
-
docs: { type: DocSummaryModel, isOptional: false, isArray: true },
|
|
1915
|
-
total: { type: ScalarTypeEnum6.Int_unsecure(), isOptional: true },
|
|
1916
|
-
nextOffset: { type: ScalarTypeEnum6.Int_unsecure(), isOptional: true }
|
|
1917
|
-
}
|
|
1918
|
-
});
|
|
1919
|
-
var DocsIndexQuery = defineQuery({
|
|
1920
|
-
meta: {
|
|
1921
|
-
key: "docs.search",
|
|
1922
|
-
title: "Docs Index",
|
|
1923
|
-
version: "1.0.0",
|
|
1924
|
-
description: "Search and filter DocBlocks by query, tag, or visibility.",
|
|
1925
|
-
goal: "Provide a consistent index of documentation entries for UI and MCP.",
|
|
1926
|
-
context: "Used by docs surfaces to list and filter DocBlocks without coupling to storage.",
|
|
1927
|
-
domain: DOCS_DOMAIN,
|
|
1928
|
-
owners: DOCS_OWNERS,
|
|
1929
|
-
tags: [...DOCS_TAGS, "search", "index"],
|
|
1930
|
-
stability: DOCS_STABILITY,
|
|
1931
|
-
docId: [docId("docs.tech.docs-search")]
|
|
1932
|
-
},
|
|
1933
|
-
capability: {
|
|
1934
|
-
key: "docs.system",
|
|
1935
|
-
version: "1.0.0"
|
|
1936
|
-
},
|
|
1937
|
-
io: {
|
|
1938
|
-
input: DocsIndexInput,
|
|
1939
|
-
output: DocsIndexOutput
|
|
1940
|
-
},
|
|
1941
|
-
policy: {
|
|
1942
|
-
auth: "anonymous",
|
|
1943
|
-
pii: []
|
|
1944
|
-
}
|
|
1945
|
-
});
|
|
1946
|
-
|
|
1947
|
-
// src/docs/queries/contractReference.query.ts
|
|
1948
|
-
import { ScalarTypeEnum as ScalarTypeEnum7, SchemaModel as SchemaModel7 } from "@contractspec/lib.schema";
|
|
1949
|
-
var ContractReferenceInput = new SchemaModel7({
|
|
1950
|
-
name: "ContractReferenceInput",
|
|
1951
|
-
fields: {
|
|
1952
|
-
key: { type: ScalarTypeEnum7.String_unsecure(), isOptional: false },
|
|
1953
|
-
version: { type: ScalarTypeEnum7.String_unsecure(), isOptional: true },
|
|
1954
|
-
type: { type: ScalarTypeEnum7.String_unsecure(), isOptional: true },
|
|
1955
|
-
format: { type: ScalarTypeEnum7.String_unsecure(), isOptional: true },
|
|
1956
|
-
includeSchema: { type: ScalarTypeEnum7.Boolean(), isOptional: true }
|
|
1957
|
-
}
|
|
1958
|
-
});
|
|
1959
|
-
var ContractReferenceModel = new SchemaModel7({
|
|
1960
|
-
name: "ContractReference",
|
|
1961
|
-
fields: {
|
|
1962
|
-
key: { type: ScalarTypeEnum7.String_unsecure(), isOptional: false },
|
|
1963
|
-
version: { type: ScalarTypeEnum7.String_unsecure(), isOptional: false },
|
|
1964
|
-
type: { type: ScalarTypeEnum7.String_unsecure(), isOptional: false },
|
|
1965
|
-
title: { type: ScalarTypeEnum7.String_unsecure(), isOptional: true },
|
|
1966
|
-
description: { type: ScalarTypeEnum7.String_unsecure(), isOptional: true },
|
|
1967
|
-
markdown: { type: ScalarTypeEnum7.String_unsecure(), isOptional: true },
|
|
1968
|
-
route: { type: ScalarTypeEnum7.String_unsecure(), isOptional: true },
|
|
1969
|
-
schema: { type: ScalarTypeEnum7.JSONObject(), isOptional: true },
|
|
1970
|
-
policy: { type: ScalarTypeEnum7.JSONObject(), isOptional: true },
|
|
1971
|
-
tags: {
|
|
1972
|
-
type: ScalarTypeEnum7.String_unsecure(),
|
|
1973
|
-
isOptional: true,
|
|
1974
|
-
isArray: true
|
|
1975
|
-
},
|
|
1976
|
-
owners: {
|
|
1977
|
-
type: ScalarTypeEnum7.String_unsecure(),
|
|
1978
|
-
isOptional: true,
|
|
1979
|
-
isArray: true
|
|
1980
|
-
},
|
|
1981
|
-
stability: { type: ScalarTypeEnum7.String_unsecure(), isOptional: true }
|
|
1982
|
-
}
|
|
1983
|
-
});
|
|
1984
|
-
var ContractReferenceOutput = new SchemaModel7({
|
|
1985
|
-
name: "ContractReferenceOutput",
|
|
1986
|
-
fields: {
|
|
1987
|
-
reference: { type: ContractReferenceModel, isOptional: false }
|
|
1988
|
-
}
|
|
1989
|
-
});
|
|
1990
|
-
var ContractReferenceQuery = defineQuery({
|
|
1991
|
-
meta: {
|
|
1992
|
-
key: "docs.contract.reference",
|
|
1993
|
-
title: "Contract Reference",
|
|
1994
|
-
version: "1.0.0",
|
|
1995
|
-
description: "Resolve a contract into a documentation-ready reference.",
|
|
1996
|
-
goal: "Expose a canonical reference view for any ContractSpec surface.",
|
|
1997
|
-
context: "Used by docs generators and UI to render consistent reference pages.",
|
|
1998
|
-
domain: DOCS_DOMAIN,
|
|
1999
|
-
owners: DOCS_OWNERS,
|
|
2000
|
-
tags: [...DOCS_TAGS, "reference"],
|
|
2001
|
-
stability: DOCS_STABILITY,
|
|
2002
|
-
docId: [docId("docs.tech.docs-reference")]
|
|
2003
|
-
},
|
|
2004
|
-
capability: {
|
|
2005
|
-
key: "docs.system",
|
|
2006
|
-
version: "1.0.0"
|
|
2007
|
-
},
|
|
2008
|
-
io: {
|
|
2009
|
-
input: ContractReferenceInput,
|
|
2010
|
-
output: ContractReferenceOutput
|
|
2011
|
-
},
|
|
2012
|
-
policy: {
|
|
2013
|
-
auth: "anonymous",
|
|
2014
|
-
pii: []
|
|
2015
|
-
}
|
|
2016
|
-
});
|
|
2017
|
-
// src/docs/presentations/docsLayout.presentation.ts
|
|
2018
|
-
var DocsLayoutPresentation = definePresentation({
|
|
2019
|
-
meta: {
|
|
2020
|
-
key: "docs.layout",
|
|
2021
|
-
title: "Docs Layout",
|
|
2022
|
-
version: "1.0.0",
|
|
2023
|
-
description: "Shared layout shell for documentation pages.",
|
|
2024
|
-
goal: "Provide consistent navigation, layout, and docs UI scaffolding.",
|
|
2025
|
-
context: "Used by web docs surfaces to render DocBlock-based content.",
|
|
2026
|
-
domain: DOCS_DOMAIN,
|
|
2027
|
-
owners: DOCS_OWNERS,
|
|
2028
|
-
tags: [...DOCS_TAGS, "layout"],
|
|
2029
|
-
stability: DOCS_STABILITY,
|
|
2030
|
-
docId: [docId("docs.tech.docs-system")]
|
|
2031
|
-
},
|
|
2032
|
-
capability: {
|
|
2033
|
-
key: "docs.system",
|
|
2034
|
-
version: "1.0.0"
|
|
2035
|
-
},
|
|
2036
|
-
source: {
|
|
2037
|
-
type: "component",
|
|
2038
|
-
framework: "react",
|
|
2039
|
-
componentKey: "docsLayout"
|
|
2040
|
-
},
|
|
2041
|
-
targets: ["react"]
|
|
2042
|
-
});
|
|
2043
|
-
|
|
2044
|
-
// src/docs/presentations/docsReferencePage.presentation.ts
|
|
2045
|
-
var DocsReferencePagePresentation = definePresentation({
|
|
2046
|
-
meta: {
|
|
2047
|
-
key: "docs.reference.page",
|
|
2048
|
-
title: "Docs Reference Page",
|
|
2049
|
-
version: "1.0.0",
|
|
2050
|
-
description: "Reference page layout for contract documentation.",
|
|
2051
|
-
goal: "Render contract references with consistent metadata and formatting.",
|
|
2052
|
-
context: "Used by docs surfaces to present contract reference content and schemas.",
|
|
2053
|
-
domain: DOCS_DOMAIN,
|
|
2054
|
-
owners: DOCS_OWNERS,
|
|
2055
|
-
tags: [...DOCS_TAGS, "reference"],
|
|
2056
|
-
stability: DOCS_STABILITY,
|
|
2057
|
-
docId: [docId("docs.tech.docs-reference")]
|
|
2058
|
-
},
|
|
2059
|
-
capability: {
|
|
2060
|
-
key: "docs.system",
|
|
2061
|
-
version: "1.0.0"
|
|
2062
|
-
},
|
|
2063
|
-
source: {
|
|
2064
|
-
type: "component",
|
|
2065
|
-
framework: "react",
|
|
2066
|
-
componentKey: "docsReferencePage"
|
|
2067
|
-
},
|
|
2068
|
-
targets: ["react", "markdown"]
|
|
2069
|
-
});
|
|
2070
|
-
// src/docs/forms/docsSearch.form.ts
|
|
2071
|
-
import { SchemaModel as SchemaModel8, ScalarTypeEnum as ScalarTypeEnum8 } from "@contractspec/lib.schema";
|
|
2072
|
-
var DocsSearchFormModel = new SchemaModel8({
|
|
2073
|
-
name: "DocsSearchFormModel",
|
|
2074
|
-
fields: {
|
|
2075
|
-
query: { type: ScalarTypeEnum8.String_unsecure(), isOptional: true },
|
|
2076
|
-
visibility: { type: ScalarTypeEnum8.String_unsecure(), isOptional: true },
|
|
2077
|
-
kind: { type: ScalarTypeEnum8.String_unsecure(), isOptional: true }
|
|
2078
|
-
}
|
|
2079
|
-
});
|
|
2080
|
-
var DocsSearchForm = defineFormSpec({
|
|
2081
|
-
meta: {
|
|
2082
|
-
key: "docs.search.form",
|
|
2083
|
-
title: "Docs Search",
|
|
2084
|
-
version: "1.0.0",
|
|
2085
|
-
description: "Search form for documentation discovery.",
|
|
2086
|
-
domain: DOCS_DOMAIN,
|
|
2087
|
-
owners: DOCS_OWNERS,
|
|
2088
|
-
tags: [...DOCS_TAGS, "search"],
|
|
2089
|
-
stability: DOCS_STABILITY,
|
|
2090
|
-
docId: [docId("docs.tech.docs-search")]
|
|
2091
|
-
},
|
|
2092
|
-
model: DocsSearchFormModel,
|
|
2093
|
-
fields: [
|
|
2094
|
-
{
|
|
2095
|
-
kind: "text",
|
|
2096
|
-
name: "query",
|
|
2097
|
-
labelI18n: "Search",
|
|
2098
|
-
placeholderI18n: "Search docs"
|
|
2099
|
-
},
|
|
2100
|
-
{
|
|
2101
|
-
kind: "select",
|
|
2102
|
-
name: "visibility",
|
|
2103
|
-
labelI18n: "Visibility",
|
|
2104
|
-
options: {
|
|
2105
|
-
kind: "static",
|
|
2106
|
-
options: [
|
|
2107
|
-
{ labelI18n: "Public", value: "public" },
|
|
2108
|
-
{ labelI18n: "Internal", value: "internal" },
|
|
2109
|
-
{ labelI18n: "Mixed", value: "mixed" }
|
|
2110
|
-
]
|
|
2111
|
-
}
|
|
2112
|
-
},
|
|
2113
|
-
{
|
|
2114
|
-
kind: "select",
|
|
2115
|
-
name: "kind",
|
|
2116
|
-
labelI18n: "Kind",
|
|
2117
|
-
options: {
|
|
2118
|
-
kind: "static",
|
|
2119
|
-
options: [
|
|
2120
|
-
{ labelI18n: "Goal", value: "goal" },
|
|
2121
|
-
{ labelI18n: "How", value: "how" },
|
|
2122
|
-
{ labelI18n: "Usage", value: "usage" },
|
|
2123
|
-
{ labelI18n: "Reference", value: "reference" },
|
|
2124
|
-
{ labelI18n: "FAQ", value: "faq" },
|
|
2125
|
-
{ labelI18n: "Changelog", value: "changelog" }
|
|
2126
|
-
]
|
|
2127
|
-
}
|
|
2128
|
-
}
|
|
2129
|
-
],
|
|
2130
|
-
actions: [
|
|
2131
|
-
{
|
|
2132
|
-
key: "search",
|
|
2133
|
-
labelI18n: "Search"
|
|
2134
|
-
}
|
|
2135
|
-
],
|
|
2136
|
-
policy: {
|
|
2137
|
-
flags: [],
|
|
2138
|
-
pii: []
|
|
2139
|
-
}
|
|
2140
|
-
});
|
|
2141
|
-
// src/docs/views/docsIndex.dataView.ts
|
|
2142
|
-
var DocsIndexDataView = defineDataView({
|
|
2143
|
-
meta: {
|
|
2144
|
-
key: "docs.index.view",
|
|
2145
|
-
title: "Docs Index",
|
|
2146
|
-
version: "1.0.0",
|
|
2147
|
-
description: "List and filter documentation entries.",
|
|
2148
|
-
domain: DOCS_DOMAIN,
|
|
2149
|
-
owners: DOCS_OWNERS,
|
|
2150
|
-
tags: [...DOCS_TAGS, "index"],
|
|
2151
|
-
stability: DOCS_STABILITY,
|
|
2152
|
-
entity: "docs",
|
|
2153
|
-
docId: [docId("docs.tech.docs-search")]
|
|
2154
|
-
},
|
|
2155
|
-
source: {
|
|
2156
|
-
primary: {
|
|
2157
|
-
key: DocsIndexQuery.meta.key,
|
|
2158
|
-
version: DocsIndexQuery.meta.version
|
|
2159
|
-
}
|
|
2160
|
-
},
|
|
2161
|
-
view: {
|
|
2162
|
-
kind: "list",
|
|
2163
|
-
fields: [
|
|
2164
|
-
{ key: "id", label: "ID", dataPath: "id" },
|
|
2165
|
-
{ key: "title", label: "Title", dataPath: "title" },
|
|
2166
|
-
{ key: "summary", label: "Summary", dataPath: "summary" },
|
|
2167
|
-
{ key: "route", label: "Route", dataPath: "route" },
|
|
2168
|
-
{ key: "tags", label: "Tags", dataPath: "tags", format: "badge" },
|
|
2169
|
-
{ key: "kind", label: "Kind", dataPath: "kind" },
|
|
2170
|
-
{ key: "visibility", label: "Visibility", dataPath: "visibility" }
|
|
2171
|
-
],
|
|
2172
|
-
primaryField: "title",
|
|
2173
|
-
secondaryFields: ["summary", "route"],
|
|
2174
|
-
filters: [
|
|
2175
|
-
{ key: "query", label: "Search", field: "query", type: "search" },
|
|
2176
|
-
{
|
|
2177
|
-
key: "visibility",
|
|
2178
|
-
label: "Visibility",
|
|
2179
|
-
field: "visibility",
|
|
2180
|
-
type: "enum",
|
|
2181
|
-
options: [
|
|
2182
|
-
{ value: "public", label: "Public" },
|
|
2183
|
-
{ value: "internal", label: "Internal" },
|
|
2184
|
-
{ value: "mixed", label: "Mixed" }
|
|
2185
|
-
]
|
|
2186
|
-
},
|
|
2187
|
-
{
|
|
2188
|
-
key: "kind",
|
|
2189
|
-
label: "Kind",
|
|
2190
|
-
field: "kind",
|
|
2191
|
-
type: "enum",
|
|
2192
|
-
options: [
|
|
2193
|
-
{ value: "goal", label: "Goal" },
|
|
2194
|
-
{ value: "how", label: "How" },
|
|
2195
|
-
{ value: "usage", label: "Usage" },
|
|
2196
|
-
{ value: "reference", label: "Reference" },
|
|
2197
|
-
{ value: "faq", label: "FAQ" },
|
|
2198
|
-
{ value: "changelog", label: "Changelog" }
|
|
2199
|
-
]
|
|
2200
|
-
}
|
|
2201
|
-
]
|
|
2202
|
-
},
|
|
2203
|
-
policy: {
|
|
2204
|
-
flags: [],
|
|
2205
|
-
pii: []
|
|
2206
|
-
}
|
|
2207
|
-
});
|
|
2208
|
-
|
|
2209
|
-
// src/docs/views/contractReference.dataView.ts
|
|
2210
|
-
var ContractReferenceDataView = defineDataView({
|
|
2211
|
-
meta: {
|
|
2212
|
-
key: "docs.contract.reference.view",
|
|
2213
|
-
title: "Contract Reference",
|
|
2214
|
-
version: "1.0.0",
|
|
2215
|
-
description: "Detail view for a single contract reference.",
|
|
2216
|
-
domain: DOCS_DOMAIN,
|
|
2217
|
-
owners: DOCS_OWNERS,
|
|
2218
|
-
tags: [...DOCS_TAGS, "reference"],
|
|
2219
|
-
stability: DOCS_STABILITY,
|
|
2220
|
-
entity: "contract-reference",
|
|
2221
|
-
docId: [docId("docs.tech.docs-reference")]
|
|
2222
|
-
},
|
|
2223
|
-
source: {
|
|
2224
|
-
primary: {
|
|
2225
|
-
key: ContractReferenceQuery.meta.key,
|
|
2226
|
-
version: ContractReferenceQuery.meta.version
|
|
2227
|
-
}
|
|
2228
|
-
},
|
|
2229
|
-
view: {
|
|
2230
|
-
kind: "detail",
|
|
2231
|
-
fields: [
|
|
2232
|
-
{
|
|
2233
|
-
key: "key",
|
|
2234
|
-
label: "Key",
|
|
2235
|
-
dataPath: "reference.key"
|
|
2236
|
-
},
|
|
2237
|
-
{
|
|
2238
|
-
key: "version",
|
|
2239
|
-
label: "Version",
|
|
2240
|
-
dataPath: "reference.version"
|
|
2241
|
-
},
|
|
2242
|
-
{
|
|
2243
|
-
key: "type",
|
|
2244
|
-
label: "Type",
|
|
2245
|
-
dataPath: "reference.type"
|
|
2246
|
-
},
|
|
2247
|
-
{
|
|
2248
|
-
key: "title",
|
|
2249
|
-
label: "Title",
|
|
2250
|
-
dataPath: "reference.title"
|
|
2251
|
-
},
|
|
2252
|
-
{
|
|
2253
|
-
key: "description",
|
|
2254
|
-
label: "Description",
|
|
2255
|
-
dataPath: "reference.description",
|
|
2256
|
-
format: "markdown"
|
|
2257
|
-
},
|
|
2258
|
-
{
|
|
2259
|
-
key: "tags",
|
|
2260
|
-
label: "Tags",
|
|
2261
|
-
dataPath: "reference.tags"
|
|
2262
|
-
},
|
|
2263
|
-
{
|
|
2264
|
-
key: "owners",
|
|
2265
|
-
label: "Owners",
|
|
2266
|
-
dataPath: "reference.owners"
|
|
2267
|
-
},
|
|
2268
|
-
{
|
|
2269
|
-
key: "stability",
|
|
2270
|
-
label: "Stability",
|
|
2271
|
-
dataPath: "reference.stability"
|
|
2272
|
-
}
|
|
2273
|
-
],
|
|
2274
|
-
primaryField: "title",
|
|
2275
|
-
secondaryFields: ["description"]
|
|
2276
|
-
},
|
|
2277
|
-
policy: {
|
|
2278
|
-
flags: [],
|
|
2279
|
-
pii: []
|
|
2280
|
-
}
|
|
2281
|
-
});
|
|
2282
|
-
|
|
2283
|
-
// src/docs/views/exampleCatalog.dataView.ts
|
|
2284
|
-
var ExampleCatalogDataView = defineDataView({
|
|
2285
|
-
meta: {
|
|
2286
|
-
key: "docs.examples.catalog.view",
|
|
2287
|
-
title: "Examples Catalog",
|
|
2288
|
-
version: "1.0.0",
|
|
2289
|
-
description: "Catalog view of ContractSpec examples and demos.",
|
|
2290
|
-
domain: DOCS_DOMAIN,
|
|
2291
|
-
owners: DOCS_OWNERS,
|
|
2292
|
-
tags: [...DOCS_TAGS, "examples"],
|
|
2293
|
-
stability: DOCS_STABILITY,
|
|
2294
|
-
entity: "docs-examples",
|
|
2295
|
-
docId: [docId("docs.tech.docs-examples")]
|
|
2296
|
-
},
|
|
2297
|
-
source: {
|
|
2298
|
-
primary: {
|
|
2299
|
-
key: DocsIndexQuery.meta.key,
|
|
2300
|
-
version: DocsIndexQuery.meta.version
|
|
2301
|
-
}
|
|
2302
|
-
},
|
|
2303
|
-
view: {
|
|
2304
|
-
kind: "grid",
|
|
2305
|
-
fields: [
|
|
2306
|
-
{ key: "id", label: "ID", dataPath: "id" },
|
|
2307
|
-
{ key: "title", label: "Title", dataPath: "title" },
|
|
2308
|
-
{ key: "summary", label: "Summary", dataPath: "summary" },
|
|
2309
|
-
{ key: "route", label: "Route", dataPath: "route" },
|
|
2310
|
-
{ key: "tags", label: "Tags", dataPath: "tags", format: "badge" }
|
|
2311
|
-
],
|
|
2312
|
-
primaryField: "title",
|
|
2313
|
-
secondaryFields: ["summary"],
|
|
2314
|
-
filters: [
|
|
2315
|
-
{ key: "query", label: "Search", field: "query", type: "search" },
|
|
2316
|
-
{
|
|
2317
|
-
key: "tags",
|
|
2318
|
-
label: "Tags",
|
|
2319
|
-
field: "tag",
|
|
2320
|
-
type: "enum",
|
|
2321
|
-
options: [
|
|
2322
|
-
{ value: "examples", label: "Examples" },
|
|
2323
|
-
{ value: "templates", label: "Templates" },
|
|
2324
|
-
{ value: "sandbox", label: "Sandbox" }
|
|
2325
|
-
]
|
|
2326
|
-
}
|
|
2327
|
-
]
|
|
2328
|
-
},
|
|
2329
|
-
policy: {
|
|
2330
|
-
flags: [],
|
|
2331
|
-
pii: []
|
|
2332
|
-
}
|
|
2333
|
-
});
|
|
2334
|
-
// src/docs/contracts.ts
|
|
2335
|
-
var docsOperationContracts = {
|
|
2336
|
-
DocsIndexQuery,
|
|
2337
|
-
ContractReferenceQuery,
|
|
2338
|
-
DocsGenerateCommand,
|
|
2339
|
-
DocsPublishCommand
|
|
2340
|
-
};
|
|
2341
|
-
var docsEventContracts = {
|
|
2342
|
-
DocsGeneratedEvent,
|
|
2343
|
-
DocsPublishedEvent
|
|
2344
|
-
};
|
|
2345
|
-
var docsPresentationContracts = {
|
|
2346
|
-
DocsLayoutPresentation,
|
|
2347
|
-
DocsReferencePagePresentation
|
|
2348
|
-
};
|
|
2349
|
-
var docsFormContracts = {
|
|
2350
|
-
DocsSearchForm
|
|
2351
|
-
};
|
|
2352
|
-
var docsDataViewContracts = {
|
|
2353
|
-
DocsIndexDataView,
|
|
2354
|
-
ContractReferenceDataView,
|
|
2355
|
-
ExampleCatalogDataView
|
|
2356
|
-
};
|
|
2357
|
-
function registerDocsOperations(registry3) {
|
|
2358
|
-
return registry3.register(DocsIndexQuery).register(ContractReferenceQuery).register(DocsGenerateCommand).register(DocsPublishCommand);
|
|
2359
|
-
}
|
|
2360
|
-
function registerDocsEvents(registry3) {
|
|
2361
|
-
return registry3.register(DocsGeneratedEvent).register(DocsPublishedEvent);
|
|
2362
|
-
}
|
|
2363
|
-
function registerDocsPresentations(registry3) {
|
|
2364
|
-
return registry3.register(DocsLayoutPresentation).register(DocsReferencePagePresentation);
|
|
2365
|
-
}
|
|
2366
|
-
function registerDocsForms(registry3) {
|
|
2367
|
-
return registry3.register(DocsSearchForm);
|
|
2368
|
-
}
|
|
2369
|
-
function registerDocsDataViews(registry3) {
|
|
2370
|
-
return registry3.register(DocsIndexDataView).register(ContractReferenceDataView).register(ExampleCatalogDataView);
|
|
2371
|
-
}
|
|
2372
|
-
export {
|
|
2373
|
-
registerDocsPresentations,
|
|
2374
|
-
registerDocsOperations,
|
|
2375
|
-
registerDocsForms,
|
|
2376
|
-
registerDocsEvents,
|
|
2377
|
-
registerDocsDataViews,
|
|
2378
|
-
docsPresentationContracts,
|
|
2379
|
-
docsOperationContracts,
|
|
2380
|
-
docsFormContracts,
|
|
2381
|
-
docsEventContracts,
|
|
2382
|
-
docsDataViewContracts
|
|
2383
|
-
};
|