@lssm/bundle.contractspec-workspace 0.0.0-canary-20251217083314 → 1.41.1
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/dist/_virtual/rolldown_runtime.js +1 -22
- package/dist/adapters/ai.js +1 -82
- package/dist/adapters/factory.js +1 -36
- package/dist/adapters/fs.js +1 -118
- package/dist/adapters/git.js +1 -54
- package/dist/adapters/index.js +1 -7
- package/dist/adapters/logger.js +1 -80
- package/dist/adapters/watcher.js +1 -69
- package/dist/adapters/workspace.js +2 -190
- package/dist/ai/agents/claude-code-agent.js +9 -146
- package/dist/ai/agents/cursor-agent.js +17 -286
- package/dist/ai/agents/index.js +1 -5
- package/dist/ai/agents/openai-codex-agent.js +8 -140
- package/dist/ai/agents/orchestrator.js +1 -142
- package/dist/ai/agents/simple-agent.js +4 -80
- package/dist/ai/client.js +1 -162
- package/dist/ai/index.js +1 -27
- package/dist/ai/prompts/code-generation.js +13 -55
- package/dist/ai/prompts/index.js +1 -12
- package/dist/ai/prompts/spec-creation.js +20 -61
- package/dist/ai/providers.js +1 -40
- package/dist/formatters/index.js +1 -18
- package/dist/formatters/json.js +1 -71
- package/dist/formatters/sarif.js +1 -163
- package/dist/formatters/text.js +2 -208
- package/dist/index.js +1 -81
- package/dist/services/agent-guide/adapters/claude-code.js +3 -144
- package/dist/services/agent-guide/adapters/cursor-cli.js +3 -135
- package/dist/services/agent-guide/adapters/generic-mcp.js +3 -159
- package/dist/services/agent-guide/adapters/index.js +1 -30
- package/dist/services/agent-guide/agent-guide-service.js +1 -148
- package/dist/services/agent-guide/index.js +1 -5
- package/dist/services/build.js +1 -140
- package/dist/services/ci-check/ci-check-service.js +1 -393
- package/dist/services/ci-check/index.js +1 -2
- package/dist/services/ci-check/types.js +1 -28
- package/dist/services/clean.js +1 -71
- package/dist/services/config.js +1 -76
- package/dist/services/deps.js +1 -62
- package/dist/services/diff.js +1 -33
- package/dist/services/doctor/checks/ai.js +2 -118
- package/dist/services/doctor/checks/cli.js +1 -146
- package/dist/services/doctor/checks/config.js +1 -170
- package/dist/services/doctor/checks/deps.js +1 -180
- package/dist/services/doctor/checks/index.js +1 -6
- package/dist/services/doctor/checks/mcp.js +1 -144
- package/dist/services/doctor/checks/workspace.js +1 -243
- package/dist/services/doctor/doctor-service.js +2 -115
- package/dist/services/doctor/index.js +1 -2
- package/dist/services/doctor/types.js +1 -26
- package/dist/services/implementation/discovery.js +2 -143
- package/dist/services/implementation/index.js +1 -2
- package/dist/services/implementation/resolver.js +1 -223
- package/dist/services/index.js +1 -53
- package/dist/services/integrity-diagram.js +6 -274
- package/dist/services/integrity.js +1 -272
- package/dist/services/list.js +1 -35
- package/dist/services/openapi/export-service.js +2 -51
- package/dist/services/openapi/import-service.js +1 -75
- package/dist/services/openapi/index.js +1 -4
- package/dist/services/openapi/sync-service.js +1 -121
- package/dist/services/openapi/validate-service.js +1 -130
- package/dist/services/regenerator.js +1 -23
- package/dist/services/registry.js +1 -73
- package/dist/services/setup/config-generators.js +26 -113
- package/dist/services/setup/file-merger.js +2 -60
- package/dist/services/setup/index.js +1 -4
- package/dist/services/setup/setup-service.js +1 -95
- package/dist/services/setup/targets/agents-md.js +1 -46
- package/dist/services/setup/targets/cli-config.js +1 -59
- package/dist/services/setup/targets/cursor-rules.js +1 -47
- package/dist/services/setup/targets/mcp-claude.js +1 -59
- package/dist/services/setup/targets/mcp-cursor.js +1 -58
- package/dist/services/setup/targets/vscode-settings.js +1 -62
- package/dist/services/setup/types.js +1 -26
- package/dist/services/sync.js +1 -62
- package/dist/services/test.js +1 -30
- package/dist/services/validate-implementation.js +1 -69
- package/dist/services/validate.js +1 -47
- package/dist/services/verification-cache/adapters/filesystem.js +1 -121
- package/dist/services/verification-cache/adapters/in-memory.js +1 -45
- package/dist/services/verification-cache/adapters/index.js +1 -3
- package/dist/services/verification-cache/adapters/workspace-state.js +1 -90
- package/dist/services/verification-cache/cache-service.js +1 -255
- package/dist/services/verification-cache/index.js +1 -6
- package/dist/services/verification-cache/types.js +1 -15
- package/dist/services/verify/ai-verifier.js +9 -336
- package/dist/services/verify/behavior-verifier.js +1 -185
- package/dist/services/verify/index.js +1 -4
- package/dist/services/verify/structure-verifier.js +2 -195
- package/dist/services/verify/verify-service.js +3 -203
- package/dist/services/watch.js +1 -31
- package/dist/services/workspace-info.js +2 -102
- package/dist/templates/app-config.template.js +28 -101
- package/dist/templates/data-view.template.js +27 -42
- package/dist/templates/event.template.js +14 -29
- package/dist/templates/experiment.template.js +51 -77
- package/dist/templates/handler.template.js +17 -53
- package/dist/templates/index.js +1 -36
- package/dist/templates/integration.template.js +50 -134
- package/dist/templates/knowledge.template.js +21 -62
- package/dist/templates/migration.template.js +26 -50
- package/dist/templates/operation.template.js +28 -44
- package/dist/templates/presentation.template.js +20 -46
- package/dist/templates/telemetry.template.js +53 -74
- package/dist/templates/workflow-runner.template.js +6 -12
- package/dist/templates/workflow.template.js +24 -51
- package/package.json +10 -15
- package/dist/adapters/ai.d.ts +0 -11
- package/dist/adapters/factory.d.ts +0 -28
- package/dist/adapters/fs.d.ts +0 -10
- package/dist/adapters/git.d.ts +0 -10
- package/dist/adapters/logger.d.ts +0 -17
- package/dist/adapters/watcher.d.ts +0 -10
- package/dist/adapters/workspace.d.ts +0 -93
- package/dist/ai/agents/claude-code-agent.d.ts +0 -21
- package/dist/ai/agents/cursor-agent.d.ts +0 -67
- package/dist/ai/agents/openai-codex-agent.d.ts +0 -21
- package/dist/ai/agents/orchestrator.d.ts +0 -49
- package/dist/ai/agents/simple-agent.d.ts +0 -16
- package/dist/ai/agents/types.d.ts +0 -35
- package/dist/ai/client.d.ts +0 -82
- package/dist/ai/index.d.ts +0 -16
- package/dist/ai/prompts/code-generation.d.ts +0 -25
- package/dist/ai/prompts/index.d.ts +0 -9
- package/dist/ai/prompts/spec-creation.d.ts +0 -28
- package/dist/ai/providers.d.ts +0 -28
- package/dist/formatters/index.d.ts +0 -10
- package/dist/formatters/json.d.ts +0 -88
- package/dist/formatters/sarif.d.ts +0 -100
- package/dist/formatters/text.d.ts +0 -34
- package/dist/index.d.ts +0 -66
- package/dist/libs/ai-providers/dist/factory.js +0 -154
- package/dist/libs/ai-providers/dist/index.js +0 -4
- package/dist/libs/ai-providers/dist/legacy.js +0 -72
- package/dist/libs/ai-providers/dist/models.js +0 -287
- package/dist/libs/ai-providers/dist/validation.js +0 -1
- package/dist/libs/contracts/dist/capabilities/openbanking.js +0 -88
- package/dist/libs/contracts/dist/client/index.js +0 -5
- package/dist/libs/contracts/dist/client/react/feature-render.js +0 -2
- package/dist/libs/contracts/dist/client/react/form-render.js +0 -4
- package/dist/libs/contracts/dist/client/react/index.js +0 -4
- package/dist/libs/contracts/dist/contract-registry/index.js +0 -1
- package/dist/libs/contracts/dist/contract-registry/schemas.js +0 -60
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/index.js +0 -29
- package/dist/libs/contracts/dist/docs/presentations.js +0 -71
- package/dist/libs/contracts/dist/docs/registry.js +0 -44
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -80
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -57
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -357
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -37
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -20
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -48
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -79
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -84
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -45
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -67
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -40
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -69
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -47
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -62
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -155
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -20
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -101
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -20
- package/dist/libs/contracts/dist/events.js +0 -8
- package/dist/libs/contracts/dist/experiments/evaluator.js +0 -1
- package/dist/libs/contracts/dist/index.js +0 -72
- package/dist/libs/contracts/dist/install.js +0 -2
- package/dist/libs/contracts/dist/integrations/contracts.js +0 -377
- package/dist/libs/contracts/dist/integrations/index.js +0 -18
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -228
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +0 -159
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +0 -3
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -210
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +0 -242
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +0 -13
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +0 -52
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +0 -75
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +0 -87
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +0 -66
- package/dist/libs/contracts/dist/integrations/providers/index.js +0 -11
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +0 -68
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +0 -68
- package/dist/libs/contracts/dist/integrations/providers/powens.js +0 -116
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +0 -73
- package/dist/libs/contracts/dist/integrations/providers/registry.js +0 -10
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +0 -83
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +0 -61
- package/dist/libs/contracts/dist/jsonschema.js +0 -24
- package/dist/libs/contracts/dist/knowledge/contracts.js +0 -306
- package/dist/libs/contracts/dist/knowledge/index.js +0 -7
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +0 -34
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +0 -34
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +0 -38
- package/dist/libs/contracts/dist/knowledge/spaces/index.js +0 -6
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +0 -34
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +0 -37
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +0 -34
- package/dist/libs/contracts/dist/llm/exporters.js +0 -352
- package/dist/libs/contracts/dist/llm/index.js +0 -2
- package/dist/libs/contracts/dist/llm/prompts.js +0 -211
- package/dist/libs/contracts/dist/onboarding-base.js +0 -196
- package/dist/libs/contracts/dist/openapi.js +0 -75
- package/dist/libs/contracts/dist/ownership.js +0 -21
- package/dist/libs/contracts/dist/presentations.js +0 -1
- package/dist/libs/contracts/dist/presentations.v2.js +0 -11
- package/dist/libs/contracts/dist/prompt.js +0 -1
- package/dist/libs/contracts/dist/promptRegistry.js +0 -1
- package/dist/libs/contracts/dist/regenerator/index.js +0 -2
- package/dist/libs/contracts/dist/regenerator/service.js +0 -92
- package/dist/libs/contracts/dist/regenerator/utils.js +0 -51
- package/dist/libs/contracts/dist/registry.js +0 -208
- package/dist/libs/contracts/dist/resources.js +0 -1
- package/dist/libs/contracts/dist/schema/dist/EnumType.js +0 -2
- package/dist/libs/contracts/dist/schema/dist/FieldType.js +0 -49
- package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -236
- package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +0 -34
- package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
- package/dist/libs/contracts/dist/schema/dist/entity/index.js +0 -2
- package/dist/libs/contracts/dist/schema/dist/entity/types.js +0 -1
- package/dist/libs/contracts/dist/schema/dist/index.js +0 -6
- package/dist/libs/contracts/dist/server/graphql-pothos.js +0 -6
- package/dist/libs/contracts/dist/server/index.js +0 -8
- package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +0 -4
- package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +0 -2
- package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +0 -1
- package/dist/libs/contracts/dist/server/mcp/registerResources.js +0 -2
- package/dist/libs/contracts/dist/server/mcp/registerTools.js +0 -1
- package/dist/libs/contracts/dist/server/provider-mcp.js +0 -1
- package/dist/libs/contracts/dist/server/rest-elysia.js +0 -1
- package/dist/libs/contracts/dist/server/rest-express.js +0 -1
- package/dist/libs/contracts/dist/server/rest-generic.js +0 -1
- package/dist/libs/contracts/dist/server/rest-next-app.js +0 -1
- package/dist/libs/contracts/dist/server/rest-next-pages.js +0 -1
- package/dist/libs/contracts/dist/spec.js +0 -35
- package/dist/libs/contracts/dist/telemetry/index.js +0 -1
- package/dist/libs/contracts/dist/telemetry/tracker.js +0 -1
- package/dist/libs/contracts/dist/tests/index.js +0 -1
- package/dist/libs/contracts/dist/tests/runner.js +0 -150
- package/dist/libs/contracts/dist/workflow/index.js +0 -1
- package/dist/libs/contracts/dist/workflow/runner.js +0 -1
- package/dist/libs/contracts-transformers/dist/common/utils.js +0 -47
- package/dist/libs/contracts-transformers/dist/openapi/exporter.js +0 -1
- package/dist/libs/contracts-transformers/dist/openapi/importer.js +0 -255
- package/dist/libs/contracts-transformers/dist/openapi/index.js +0 -4
- package/dist/libs/contracts-transformers/dist/openapi/parser.js +0 -231
- package/dist/libs/contracts-transformers/dist/openapi/schema-converter.js +0 -201
- package/dist/modules/contractspec-workspace/dist/ai/code-generation.js +0 -137
- package/dist/modules/contractspec-workspace/dist/ai/spec-creation.js +0 -101
- package/dist/modules/contractspec-workspace/dist/analysis/deps/graph.js +0 -84
- package/dist/modules/contractspec-workspace/dist/analysis/deps/parse-imports.js +0 -30
- package/dist/modules/contractspec-workspace/dist/analysis/diff/semantic.js +0 -96
- package/dist/modules/contractspec-workspace/dist/analysis/feature-scan.js +0 -151
- package/dist/modules/contractspec-workspace/dist/analysis/spec-scan.js +0 -344
- package/dist/modules/contractspec-workspace/dist/analysis/validate/spec-structure.js +0 -122
- package/dist/modules/contractspec-workspace/dist/templates/app-config.js +0 -105
- package/dist/modules/contractspec-workspace/dist/templates/data-view.js +0 -68
- package/dist/modules/contractspec-workspace/dist/templates/event.js +0 -38
- package/dist/modules/contractspec-workspace/dist/templates/experiment.js +0 -87
- package/dist/modules/contractspec-workspace/dist/templates/handler.js +0 -95
- package/dist/modules/contractspec-workspace/dist/templates/integration-utils.js +0 -104
- package/dist/modules/contractspec-workspace/dist/templates/integration.js +0 -62
- package/dist/modules/contractspec-workspace/dist/templates/knowledge.js +0 -68
- package/dist/modules/contractspec-workspace/dist/templates/migration.js +0 -60
- package/dist/modules/contractspec-workspace/dist/templates/operation.js +0 -100
- package/dist/modules/contractspec-workspace/dist/templates/presentation.js +0 -78
- package/dist/modules/contractspec-workspace/dist/templates/telemetry.js +0 -89
- package/dist/modules/contractspec-workspace/dist/templates/utils.js +0 -38
- package/dist/modules/contractspec-workspace/dist/templates/workflow-runner.js +0 -48
- package/dist/modules/contractspec-workspace/dist/templates/workflow.js +0 -67
- package/dist/modules/contractspec-workspace/dist/types/generation-types.js +0 -20
- package/dist/ports/ai.d.ts +0 -58
- package/dist/ports/fs.d.ts +0 -80
- package/dist/ports/git.d.ts +0 -32
- package/dist/ports/logger.d.ts +0 -87
- package/dist/ports/watcher.d.ts +0 -51
- package/dist/services/agent-guide/adapters/claude-code.d.ts +0 -34
- package/dist/services/agent-guide/adapters/cursor-cli.d.ts +0 -38
- package/dist/services/agent-guide/adapters/generic-mcp.d.ts +0 -52
- package/dist/services/agent-guide/adapters/index.d.ts +0 -22
- package/dist/services/agent-guide/agent-guide-service.d.ts +0 -55
- package/dist/services/agent-guide/types.d.ts +0 -57
- package/dist/services/build.d.ts +0 -58
- package/dist/services/ci-check/ci-check-service.d.ts +0 -15
- package/dist/services/ci-check/types.d.ts +0 -142
- package/dist/services/clean.d.ts +0 -40
- package/dist/services/config.d.ts +0 -25
- package/dist/services/deps.d.ts +0 -52
- package/dist/services/diff.d.ts +0 -33
- package/dist/services/doctor/doctor-service.d.ts +0 -23
- package/dist/services/doctor/types.d.ts +0 -117
- package/dist/services/implementation/discovery.d.ts +0 -29
- package/dist/services/implementation/resolver.d.ts +0 -43
- package/dist/services/implementation/types.d.ts +0 -78
- package/dist/services/integrity-diagram.d.ts +0 -35
- package/dist/services/integrity.d.ts +0 -133
- package/dist/services/list.d.ts +0 -30
- package/dist/services/openapi/export-service.d.ts +0 -52
- package/dist/services/openapi/import-service.d.ts +0 -15
- package/dist/services/openapi/sync-service.d.ts +0 -18
- package/dist/services/openapi/types.d.ts +0 -184
- package/dist/services/openapi/validate-service.d.ts +0 -15
- package/dist/services/regenerator.d.ts +0 -17
- package/dist/services/registry.d.ts +0 -52
- package/dist/services/setup/config-generators.d.ts +0 -41
- package/dist/services/setup/file-merger.d.ts +0 -26
- package/dist/services/setup/setup-service.d.ts +0 -11
- package/dist/services/setup/types.d.ts +0 -84
- package/dist/services/sync.d.ts +0 -40
- package/dist/services/test.d.ts +0 -14
- package/dist/services/validate-implementation.d.ts +0 -31
- package/dist/services/validate.d.ts +0 -40
- package/dist/services/verification-cache/adapters/filesystem.d.ts +0 -45
- package/dist/services/verification-cache/adapters/in-memory.d.ts +0 -26
- package/dist/services/verification-cache/adapters/workspace-state.d.ts +0 -48
- package/dist/services/verification-cache/cache-service.d.ts +0 -69
- package/dist/services/verification-cache/types.d.ts +0 -123
- package/dist/services/verify/ai-verifier.d.ts +0 -24
- package/dist/services/verify/behavior-verifier.d.ts +0 -11
- package/dist/services/verify/structure-verifier.d.ts +0 -11
- package/dist/services/verify/types.d.ts +0 -136
- package/dist/services/verify/verify-service.d.ts +0 -59
- package/dist/services/watch.d.ts +0 -24
- package/dist/services/workspace-info.d.ts +0 -61
- package/dist/templates/app-config.template.d.ts +0 -6
- package/dist/templates/data-view.template.d.ts +0 -6
- package/dist/templates/event.template.d.ts +0 -10
- package/dist/templates/experiment.template.d.ts +0 -6
- package/dist/templates/handler.template.d.ts +0 -15
- package/dist/templates/index.d.ts +0 -20
- package/dist/templates/integration.template.d.ts +0 -6
- package/dist/templates/knowledge.template.d.ts +0 -6
- package/dist/templates/migration.template.d.ts +0 -6
- package/dist/templates/operation.template.d.ts +0 -10
- package/dist/templates/presentation.template.d.ts +0 -10
- package/dist/templates/telemetry.template.d.ts +0 -6
- package/dist/templates/workflow-runner.template.d.ts +0 -15
- package/dist/templates/workflow.template.d.ts +0 -6
- package/dist/types/config.d.ts +0 -33
- package/dist/types.d.ts +0 -323
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
//#region src/services/doctor/types.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Doctor service types.
|
|
4
|
-
*
|
|
5
|
-
* Types for health checks and auto-fix functionality.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Categories of health checks.
|
|
9
|
-
*/
|
|
10
|
-
type CheckCategory = 'cli' | 'config' | 'mcp' | 'deps' | 'workspace' | 'ai';
|
|
11
|
-
/**
|
|
12
|
-
* All available check categories.
|
|
13
|
-
*/
|
|
14
|
-
declare const ALL_CHECK_CATEGORIES: CheckCategory[];
|
|
15
|
-
/**
|
|
16
|
-
* Human-readable labels for check categories.
|
|
17
|
-
*/
|
|
18
|
-
declare const CHECK_CATEGORY_LABELS: Record<CheckCategory, string>;
|
|
19
|
-
/**
|
|
20
|
-
* Status of a health check.
|
|
21
|
-
*/
|
|
22
|
-
type CheckStatus = 'pass' | 'warn' | 'fail' | 'skip';
|
|
23
|
-
/**
|
|
24
|
-
* Result of applying a fix.
|
|
25
|
-
*/
|
|
26
|
-
interface FixResult {
|
|
27
|
-
/** Whether the fix was successful. */
|
|
28
|
-
success: boolean;
|
|
29
|
-
/** Message describing the result. */
|
|
30
|
-
message: string;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* An action that can fix a failed check.
|
|
34
|
-
*/
|
|
35
|
-
interface FixAction {
|
|
36
|
-
/** Description of what the fix will do. */
|
|
37
|
-
description: string;
|
|
38
|
-
/** Function to apply the fix. */
|
|
39
|
-
apply: () => Promise<FixResult>;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Result of a single health check.
|
|
43
|
-
*/
|
|
44
|
-
interface CheckResult {
|
|
45
|
-
/** Category of the check. */
|
|
46
|
-
category: CheckCategory;
|
|
47
|
-
/** Name of the specific check. */
|
|
48
|
-
name: string;
|
|
49
|
-
/** Status of the check. */
|
|
50
|
-
status: CheckStatus;
|
|
51
|
-
/** Human-readable message. */
|
|
52
|
-
message: string;
|
|
53
|
-
/** Optional fix action if status is 'fail' or 'warn'. */
|
|
54
|
-
fix?: FixAction;
|
|
55
|
-
/** Additional details for debugging. */
|
|
56
|
-
details?: string;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Options for running the doctor.
|
|
60
|
-
*/
|
|
61
|
-
interface DoctorOptions {
|
|
62
|
-
/** Root directory of the workspace. */
|
|
63
|
-
workspaceRoot: string;
|
|
64
|
-
/** Categories to check (defaults to all). */
|
|
65
|
-
categories?: CheckCategory[];
|
|
66
|
-
/** If true, auto-apply fixes without prompting. */
|
|
67
|
-
autoFix?: boolean;
|
|
68
|
-
/** Skip AI provider checks. */
|
|
69
|
-
skipAi?: boolean;
|
|
70
|
-
/** Verbose output. */
|
|
71
|
-
verbose?: boolean;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Summary of doctor results.
|
|
75
|
-
*/
|
|
76
|
-
interface DoctorResult {
|
|
77
|
-
/** All check results. */
|
|
78
|
-
checks: CheckResult[];
|
|
79
|
-
/** Number of passing checks. */
|
|
80
|
-
passed: number;
|
|
81
|
-
/** Number of warnings. */
|
|
82
|
-
warnings: number;
|
|
83
|
-
/** Number of failures. */
|
|
84
|
-
failures: number;
|
|
85
|
-
/** Number of skipped checks. */
|
|
86
|
-
skipped: number;
|
|
87
|
-
/** Overall health status. */
|
|
88
|
-
healthy: boolean;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Callback for interactive prompts during doctor.
|
|
92
|
-
*/
|
|
93
|
-
interface DoctorPromptCallbacks {
|
|
94
|
-
/** Confirm a fix action. */
|
|
95
|
-
confirm: (message: string) => Promise<boolean>;
|
|
96
|
-
/** Input a value (e.g., API key). */
|
|
97
|
-
input: (message: string, options?: {
|
|
98
|
-
password?: boolean;
|
|
99
|
-
}) => Promise<string>;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Context passed to check functions.
|
|
103
|
-
*/
|
|
104
|
-
interface CheckContext {
|
|
105
|
-
/** Workspace root path (monorepo root or single project root). */
|
|
106
|
-
workspaceRoot: string;
|
|
107
|
-
/** Current package root (may differ from workspaceRoot in monorepos). */
|
|
108
|
-
packageRoot: string;
|
|
109
|
-
/** Whether this is a monorepo. */
|
|
110
|
-
isMonorepo: boolean;
|
|
111
|
-
/** Current package name (if in a monorepo package). */
|
|
112
|
-
packageName?: string;
|
|
113
|
-
/** Whether verbose output is enabled. */
|
|
114
|
-
verbose: boolean;
|
|
115
|
-
}
|
|
116
|
-
//#endregion
|
|
117
|
-
export { ALL_CHECK_CATEGORIES, CHECK_CATEGORY_LABELS, CheckCategory, CheckContext, CheckResult, CheckStatus, DoctorOptions, DoctorPromptCallbacks, DoctorResult, FixAction, FixResult };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { FsAdapter } from "../../ports/fs.js";
|
|
2
|
-
import { DiscoveryOptions, SpecReferenceMatch } from "./types.js";
|
|
3
|
-
import { ImplementationType } from "@lssm/lib.contracts";
|
|
4
|
-
|
|
5
|
-
//#region src/services/implementation/discovery.d.ts
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Infer implementation type from file path.
|
|
9
|
-
*/
|
|
10
|
-
declare function inferImplementationType(filePath: string): ImplementationType;
|
|
11
|
-
/**
|
|
12
|
-
* Extract spec references from source code.
|
|
13
|
-
*/
|
|
14
|
-
declare function extractSpecReferences(code: string, filePath: string): SpecReferenceMatch[];
|
|
15
|
-
/**
|
|
16
|
-
* Discover implementations that reference a specific spec.
|
|
17
|
-
*/
|
|
18
|
-
declare function discoverImplementationsForSpec(specName: string, adapters: {
|
|
19
|
-
fs: FsAdapter;
|
|
20
|
-
}, options?: DiscoveryOptions): Promise<SpecReferenceMatch[]>;
|
|
21
|
-
/**
|
|
22
|
-
* Discover all spec references in the workspace.
|
|
23
|
-
* Returns a map of spec name to implementation references.
|
|
24
|
-
*/
|
|
25
|
-
declare function discoverAllImplementations(adapters: {
|
|
26
|
-
fs: FsAdapter;
|
|
27
|
-
}, options?: DiscoveryOptions): Promise<Map<string, SpecReferenceMatch[]>>;
|
|
28
|
-
//#endregion
|
|
29
|
-
export { discoverAllImplementations, discoverImplementationsForSpec, extractSpecReferences, inferImplementationType };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { FsAdapter } from "../../ports/fs.js";
|
|
2
|
-
import { DiscoveryOptions, SpecImplementationResult } from "./types.js";
|
|
3
|
-
import { WorkspaceConfig } from "@lssm/module.contractspec-workspace";
|
|
4
|
-
|
|
5
|
-
//#region src/services/implementation/resolver.d.ts
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Options for resolving implementations.
|
|
9
|
-
*/
|
|
10
|
-
interface ResolverOptions extends DiscoveryOptions {
|
|
11
|
-
/** Include explicit implementations from spec */
|
|
12
|
-
includeExplicit?: boolean;
|
|
13
|
-
/** Include auto-discovered implementations */
|
|
14
|
-
includeDiscovered?: boolean;
|
|
15
|
-
/** Include convention-based implementations */
|
|
16
|
-
includeConvention?: boolean;
|
|
17
|
-
/** Output directory for convention-based paths */
|
|
18
|
-
outputDir?: string;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Resolve all implementations for a spec file.
|
|
22
|
-
*/
|
|
23
|
-
declare function resolveImplementations(specFile: string, adapters: {
|
|
24
|
-
fs: FsAdapter;
|
|
25
|
-
}, config: WorkspaceConfig, options?: ResolverOptions): Promise<SpecImplementationResult>;
|
|
26
|
-
/**
|
|
27
|
-
* Resolve implementations for multiple spec files.
|
|
28
|
-
*/
|
|
29
|
-
declare function resolveAllImplementations(specFiles: string[], adapters: {
|
|
30
|
-
fs: FsAdapter;
|
|
31
|
-
}, config: WorkspaceConfig, options?: ResolverOptions): Promise<SpecImplementationResult[]>;
|
|
32
|
-
/**
|
|
33
|
-
* Get implementation summary statistics.
|
|
34
|
-
*/
|
|
35
|
-
declare function getImplementationSummary(results: SpecImplementationResult[]): {
|
|
36
|
-
total: number;
|
|
37
|
-
implemented: number;
|
|
38
|
-
partial: number;
|
|
39
|
-
missing: number;
|
|
40
|
-
coverage: number;
|
|
41
|
-
};
|
|
42
|
-
//#endregion
|
|
43
|
-
export { ResolverOptions, getImplementationSummary, resolveAllImplementations, resolveImplementations };
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { ImplementationType } from "@lssm/lib.contracts";
|
|
2
|
-
|
|
3
|
-
//#region src/services/implementation/types.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Source of how an implementation was discovered/linked.
|
|
7
|
-
*/
|
|
8
|
-
type ImplementationSource = 'explicit' | 'discovered' | 'convention';
|
|
9
|
-
/**
|
|
10
|
-
* Status of a spec's implementation coverage.
|
|
11
|
-
*/
|
|
12
|
-
type ImplementationStatus = 'implemented' | 'partial' | 'missing';
|
|
13
|
-
/**
|
|
14
|
-
* A resolved implementation file for a spec.
|
|
15
|
-
*/
|
|
16
|
-
interface ResolvedImplementation {
|
|
17
|
-
/** Path to the implementation file (relative to workspace root) */
|
|
18
|
-
path: string;
|
|
19
|
-
/** Type of implementation artifact */
|
|
20
|
-
type: ImplementationType;
|
|
21
|
-
/** How this implementation was found */
|
|
22
|
-
source: ImplementationSource;
|
|
23
|
-
/** Whether the file exists on disk */
|
|
24
|
-
exists: boolean;
|
|
25
|
-
/** Content hash for cache invalidation (SHA256) */
|
|
26
|
-
contentHash?: string;
|
|
27
|
-
/** Optional description */
|
|
28
|
-
description?: string;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Full resolution result for a spec's implementations.
|
|
32
|
-
*/
|
|
33
|
-
interface SpecImplementationResult {
|
|
34
|
-
/** Spec name */
|
|
35
|
-
specName: string;
|
|
36
|
-
/** Spec version */
|
|
37
|
-
specVersion: number;
|
|
38
|
-
/** Path to the spec file */
|
|
39
|
-
specPath: string;
|
|
40
|
-
/** Spec type (operation, event, presentation, etc.) */
|
|
41
|
-
specType: string;
|
|
42
|
-
/** All resolved implementations */
|
|
43
|
-
implementations: ResolvedImplementation[];
|
|
44
|
-
/** Overall implementation status */
|
|
45
|
-
status: ImplementationStatus;
|
|
46
|
-
/** Content hash of the spec file */
|
|
47
|
-
specHash?: string;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Options for implementation discovery.
|
|
51
|
-
*/
|
|
52
|
-
interface DiscoveryOptions {
|
|
53
|
-
/** Workspace root directory */
|
|
54
|
-
workspaceRoot?: string;
|
|
55
|
-
/** Glob patterns to search */
|
|
56
|
-
includePatterns?: string[];
|
|
57
|
-
/** Glob patterns to exclude */
|
|
58
|
-
excludePatterns?: string[];
|
|
59
|
-
/** Whether to compute content hashes */
|
|
60
|
-
computeHashes?: boolean;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Result of scanning for spec references in a file.
|
|
64
|
-
*/
|
|
65
|
-
interface SpecReferenceMatch {
|
|
66
|
-
/** Path to the file containing the reference */
|
|
67
|
-
filePath: string;
|
|
68
|
-
/** Name of the spec being referenced */
|
|
69
|
-
specName: string;
|
|
70
|
-
/** Type of reference (import, typeof, handler) */
|
|
71
|
-
referenceType: 'import' | 'typeof' | 'handler' | 'unknown';
|
|
72
|
-
/** Line number where reference was found */
|
|
73
|
-
lineNumber?: number;
|
|
74
|
-
/** Inferred implementation type based on context */
|
|
75
|
-
inferredType: ImplementationType;
|
|
76
|
-
}
|
|
77
|
-
//#endregion
|
|
78
|
-
export { DiscoveryOptions, ImplementationSource, ImplementationStatus, ResolvedImplementation, SpecImplementationResult, SpecReferenceMatch };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { IntegrityAnalysisResult } from "./integrity.js";
|
|
2
|
-
|
|
3
|
-
//#region src/services/integrity-diagram.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Type of diagram to generate.
|
|
7
|
-
*/
|
|
8
|
-
type DiagramType = 'feature-map' | 'orphans' | 'dependencies' | 'full';
|
|
9
|
-
/**
|
|
10
|
-
* Options for diagram generation.
|
|
11
|
-
*/
|
|
12
|
-
interface DiagramOptions {
|
|
13
|
-
/**
|
|
14
|
-
* Maximum number of nodes to display.
|
|
15
|
-
*/
|
|
16
|
-
maxNodes?: number;
|
|
17
|
-
/**
|
|
18
|
-
* Include only specific features.
|
|
19
|
-
*/
|
|
20
|
-
featureKeys?: string[];
|
|
21
|
-
/**
|
|
22
|
-
* Show spec versions in labels.
|
|
23
|
-
*/
|
|
24
|
-
showVersions?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Direction for the flowchart.
|
|
27
|
-
*/
|
|
28
|
-
direction?: 'LR' | 'TB' | 'RL' | 'BT';
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Generate a Mermaid diagram from integrity analysis results.
|
|
32
|
-
*/
|
|
33
|
-
declare function generateMermaidDiagram(result: IntegrityAnalysisResult, type?: DiagramType, options?: DiagramOptions): string;
|
|
34
|
-
//#endregion
|
|
35
|
-
export { DiagramOptions, DiagramType, generateMermaidDiagram };
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { FsAdapter } from "../ports/fs.js";
|
|
2
|
-
import { LoggerAdapter } from "../ports/logger.js";
|
|
3
|
-
import { AnalyzedSpecType, FeatureScanResult, RefInfo } from "@lssm/module.contractspec-workspace";
|
|
4
|
-
|
|
5
|
-
//#region src/services/integrity.d.ts
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Options for integrity analysis.
|
|
9
|
-
*/
|
|
10
|
-
interface IntegrityAnalysisOptions {
|
|
11
|
-
/**
|
|
12
|
-
* Glob pattern for file discovery.
|
|
13
|
-
*/
|
|
14
|
-
pattern?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Scan all packages in monorepo.
|
|
17
|
-
*/
|
|
18
|
-
all?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Analyze only a specific feature by key.
|
|
21
|
-
*/
|
|
22
|
-
featureKey?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Filter by spec type.
|
|
25
|
-
*/
|
|
26
|
-
specType?: AnalyzedSpecType;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Location of a spec in the codebase.
|
|
30
|
-
*/
|
|
31
|
-
interface SpecLocation {
|
|
32
|
-
name: string;
|
|
33
|
-
version: number;
|
|
34
|
-
file: string;
|
|
35
|
-
type: AnalyzedSpecType;
|
|
36
|
-
stability?: string;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Inventory of all discovered specs organized by type.
|
|
40
|
-
*/
|
|
41
|
-
interface SpecInventory {
|
|
42
|
-
operations: Map<string, SpecLocation>;
|
|
43
|
-
events: Map<string, SpecLocation>;
|
|
44
|
-
presentations: Map<string, SpecLocation>;
|
|
45
|
-
capabilities: Map<string, SpecLocation>;
|
|
46
|
-
workflows: Map<string, SpecLocation>;
|
|
47
|
-
dataViews: Map<string, SpecLocation>;
|
|
48
|
-
forms: Map<string, SpecLocation>;
|
|
49
|
-
migrations: Map<string, SpecLocation>;
|
|
50
|
-
experiments: Map<string, SpecLocation>;
|
|
51
|
-
integrations: Map<string, SpecLocation>;
|
|
52
|
-
knowledge: Map<string, SpecLocation>;
|
|
53
|
-
telemetry: Map<string, SpecLocation>;
|
|
54
|
-
appConfigs: Map<string, SpecLocation>;
|
|
55
|
-
policies: Map<string, SpecLocation>;
|
|
56
|
-
testSpecs: Map<string, SpecLocation>;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* An integrity issue found during analysis.
|
|
60
|
-
*/
|
|
61
|
-
interface IntegrityIssue {
|
|
62
|
-
severity: 'error' | 'warning';
|
|
63
|
-
type: 'orphaned' | 'unresolved-ref' | 'missing-feature' | 'broken-link';
|
|
64
|
-
message: string;
|
|
65
|
-
file: string;
|
|
66
|
-
specName?: string;
|
|
67
|
-
specType?: AnalyzedSpecType;
|
|
68
|
-
ref?: RefInfo;
|
|
69
|
-
featureKey?: string;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Coverage metrics by spec type.
|
|
73
|
-
*/
|
|
74
|
-
interface CoverageByType {
|
|
75
|
-
total: number;
|
|
76
|
-
covered: number;
|
|
77
|
-
orphaned: number;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Result of integrity analysis.
|
|
81
|
-
*/
|
|
82
|
-
interface IntegrityAnalysisResult {
|
|
83
|
-
/**
|
|
84
|
-
* All discovered specs organized by type.
|
|
85
|
-
*/
|
|
86
|
-
inventory: SpecInventory;
|
|
87
|
-
/**
|
|
88
|
-
* All discovered features.
|
|
89
|
-
*/
|
|
90
|
-
features: FeatureScanResult[];
|
|
91
|
-
/**
|
|
92
|
-
* Coverage metrics.
|
|
93
|
-
*/
|
|
94
|
-
coverage: {
|
|
95
|
-
total: number;
|
|
96
|
-
linkedToFeature: number;
|
|
97
|
-
orphaned: number;
|
|
98
|
-
byType: Record<string, CoverageByType>;
|
|
99
|
-
};
|
|
100
|
-
/**
|
|
101
|
-
* Issues found during analysis.
|
|
102
|
-
*/
|
|
103
|
-
issues: IntegrityIssue[];
|
|
104
|
-
/**
|
|
105
|
-
* Specs not linked to any feature.
|
|
106
|
-
*/
|
|
107
|
-
orphanedSpecs: SpecLocation[];
|
|
108
|
-
/**
|
|
109
|
-
* Overall health status.
|
|
110
|
-
*/
|
|
111
|
-
healthy: boolean;
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Analyze contract integrity.
|
|
115
|
-
*/
|
|
116
|
-
declare function analyzeIntegrity(adapters: {
|
|
117
|
-
fs: FsAdapter;
|
|
118
|
-
logger: LoggerAdapter;
|
|
119
|
-
}, options?: IntegrityAnalysisOptions): Promise<IntegrityAnalysisResult>;
|
|
120
|
-
/**
|
|
121
|
-
* Get all specs from inventory as a flat list.
|
|
122
|
-
*/
|
|
123
|
-
declare function getAllSpecs(inventory: SpecInventory): SpecLocation[];
|
|
124
|
-
/**
|
|
125
|
-
* Filter issues by type.
|
|
126
|
-
*/
|
|
127
|
-
declare function filterIssuesByType(issues: IntegrityIssue[], type: IntegrityIssue['type']): IntegrityIssue[];
|
|
128
|
-
/**
|
|
129
|
-
* Filter issues by severity.
|
|
130
|
-
*/
|
|
131
|
-
declare function filterIssuesBySeverity(issues: IntegrityIssue[], severity: IntegrityIssue['severity']): IntegrityIssue[];
|
|
132
|
-
//#endregion
|
|
133
|
-
export { CoverageByType, IntegrityAnalysisOptions, IntegrityAnalysisResult, IntegrityIssue, SpecInventory, SpecLocation, analyzeIntegrity, filterIssuesBySeverity, filterIssuesByType, getAllSpecs };
|
package/dist/services/list.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { FsAdapter } from "../ports/fs.js";
|
|
2
|
-
import { SpecScanResult } from "@lssm/module.contractspec-workspace";
|
|
3
|
-
|
|
4
|
-
//#region src/services/list.d.ts
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Options for listing specs.
|
|
8
|
-
*/
|
|
9
|
-
interface ListSpecsOptions {
|
|
10
|
-
/**
|
|
11
|
-
* File pattern to search.
|
|
12
|
-
*/
|
|
13
|
-
pattern?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Filter by spec type.
|
|
16
|
-
*/
|
|
17
|
-
type?: string;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* List all spec files in the workspace.
|
|
21
|
-
*/
|
|
22
|
-
declare function listSpecs(adapters: {
|
|
23
|
-
fs: FsAdapter;
|
|
24
|
-
}, options?: ListSpecsOptions): Promise<SpecScanResult[]>;
|
|
25
|
-
/**
|
|
26
|
-
* Group specs by type.
|
|
27
|
-
*/
|
|
28
|
-
declare function groupSpecsByType(specs: SpecScanResult[]): Map<string, SpecScanResult[]>;
|
|
29
|
-
//#endregion
|
|
30
|
-
export { ListSpecsOptions, groupSpecsByType, listSpecs };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { FsAdapter } from "../../ports/fs.js";
|
|
2
|
-
import { LoggerAdapter } from "../../ports/logger.js";
|
|
3
|
-
import { OpenApiDocument, OpenApiServer } from "@lssm/lib.contracts";
|
|
4
|
-
|
|
5
|
-
//#region src/services/openapi/export-service.d.ts
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Options for OpenAPI export.
|
|
9
|
-
*/
|
|
10
|
-
interface OpenApiExportOptions {
|
|
11
|
-
/**
|
|
12
|
-
* Path to module exporting SpecRegistry.
|
|
13
|
-
*/
|
|
14
|
-
registryPath: string;
|
|
15
|
-
/**
|
|
16
|
-
* Output file path.
|
|
17
|
-
*/
|
|
18
|
-
outputPath?: string;
|
|
19
|
-
/**
|
|
20
|
-
* OpenAPI title.
|
|
21
|
-
*/
|
|
22
|
-
title?: string;
|
|
23
|
-
/**
|
|
24
|
-
* OpenAPI version.
|
|
25
|
-
*/
|
|
26
|
-
version?: string;
|
|
27
|
-
/**
|
|
28
|
-
* OpenAPI description.
|
|
29
|
-
*/
|
|
30
|
-
description?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Server URLs to include.
|
|
33
|
-
*/
|
|
34
|
-
servers?: OpenApiServer[];
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Result of OpenAPI export.
|
|
38
|
-
*/
|
|
39
|
-
interface OpenApiExportResult {
|
|
40
|
-
document: OpenApiDocument;
|
|
41
|
-
outputPath: string;
|
|
42
|
-
json: string;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Export OpenAPI document from a SpecRegistry.
|
|
46
|
-
*/
|
|
47
|
-
declare function exportOpenApi(options: OpenApiExportOptions, adapters: {
|
|
48
|
-
fs: FsAdapter;
|
|
49
|
-
logger: LoggerAdapter;
|
|
50
|
-
}): Promise<OpenApiExportResult>;
|
|
51
|
-
//#endregion
|
|
52
|
-
export { OpenApiExportOptions, OpenApiExportResult, exportOpenApi };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FsAdapter } from "../../ports/fs.js";
|
|
2
|
-
import { LoggerAdapter } from "../../ports/logger.js";
|
|
3
|
-
import { OpenApiImportServiceOptions, OpenApiImportServiceResult } from "./types.js";
|
|
4
|
-
|
|
5
|
-
//#region src/services/openapi/import-service.d.ts
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Import ContractSpec specs from an OpenAPI document.
|
|
9
|
-
*/
|
|
10
|
-
declare function importFromOpenApiService(options: OpenApiImportServiceOptions, adapters: {
|
|
11
|
-
fs: FsAdapter;
|
|
12
|
-
logger: LoggerAdapter;
|
|
13
|
-
}): Promise<OpenApiImportServiceResult>;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { importFromOpenApiService };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { FsAdapter } from "../../ports/fs.js";
|
|
2
|
-
import { LoggerAdapter } from "../../ports/logger.js";
|
|
3
|
-
import { OpenApiSourceConfig, OpenApiSyncServiceOptions, OpenApiSyncServiceResult } from "./types.js";
|
|
4
|
-
|
|
5
|
-
//#region src/services/openapi/sync-service.d.ts
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Sync ContractSpec specs with OpenAPI sources.
|
|
9
|
-
*/
|
|
10
|
-
declare function syncWithOpenApiService(options: OpenApiSyncServiceOptions, config: {
|
|
11
|
-
sources?: OpenApiSourceConfig[];
|
|
12
|
-
outputDir: string;
|
|
13
|
-
}, adapters: {
|
|
14
|
-
fs: FsAdapter;
|
|
15
|
-
logger: LoggerAdapter;
|
|
16
|
-
}): Promise<OpenApiSyncServiceResult>;
|
|
17
|
-
//#endregion
|
|
18
|
-
export { syncWithOpenApiService };
|