@lssm/bundle.contractspec-workspace 0.0.0-canary-20251217083314 → 1.41.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/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/node_modules/@ai-sdk/anthropic/dist/index.js +1 -0
- package/dist/node_modules/@ai-sdk/openai/dist/index.js +11 -0
- package/dist/node_modules/@ai-sdk/provider/dist/index.js +3 -0
- package/dist/node_modules/@ai-sdk/provider-utils/dist/index.js +5 -0
- package/dist/node_modules/chalk/source/index.js +2 -0
- package/dist/node_modules/chalk/source/utilities.js +4 -0
- package/dist/node_modules/chalk/source/vendor/ansi-styles/index.js +1 -0
- package/dist/node_modules/chalk/source/vendor/supports-color/browser.js +1 -0
- package/dist/node_modules/cli-cursor/index.js +1 -0
- package/dist/node_modules/cli-spinners/index.js +1 -0
- package/dist/node_modules/cli-spinners/spinners.js +1 -0
- package/dist/node_modules/eventsource-parser/dist/index.js +5 -0
- package/dist/node_modules/eventsource-parser/dist/stream.js +1 -0
- package/dist/node_modules/get-east-asian-width/index.js +1 -0
- package/dist/node_modules/get-east-asian-width/lookup.js +1 -0
- package/dist/node_modules/is-interactive/index.js +1 -0
- package/dist/node_modules/is-unicode-supported/index.js +1 -0
- package/dist/node_modules/log-symbols/browser-symbols.js +1 -0
- package/dist/node_modules/mimic-function/index.js +1 -0
- package/dist/node_modules/onetime/index.js +1 -0
- package/dist/node_modules/ora/index.js +6 -0
- package/dist/node_modules/restore-cursor/index.js +1 -0
- package/dist/node_modules/signal-exit/dist/mjs/index.js +1 -0
- package/dist/node_modules/signal-exit/dist/mjs/signals.js +1 -0
- package/dist/node_modules/stdin-discarder/index.js +1 -0
- package/dist/node_modules/string-width/index.js +1 -0
- package/dist/node_modules/strip-ansi/index.js +1 -0
- package/dist/node_modules/strip-ansi/node_modules/ansi-regex/index.js +1 -0
- 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 -16
- 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,184 +0,0 @@
|
|
|
1
|
-
//#region src/services/openapi/types.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Types for OpenAPI services.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* OpenAPI source configuration (from config file).
|
|
7
|
-
*/
|
|
8
|
-
interface OpenApiSourceConfig {
|
|
9
|
-
/** Friendly name for the source */
|
|
10
|
-
name: string;
|
|
11
|
-
/** Remote URL to fetch OpenAPI spec from */
|
|
12
|
-
url?: string;
|
|
13
|
-
/** Local file path to OpenAPI spec */
|
|
14
|
-
file?: string;
|
|
15
|
-
/** Sync mode */
|
|
16
|
-
syncMode: 'import' | 'sync' | 'validate';
|
|
17
|
-
/** Only import operations with these tags */
|
|
18
|
-
tags?: string[];
|
|
19
|
-
/** Exclude operations with these operationIds */
|
|
20
|
-
exclude?: string[];
|
|
21
|
-
/** Prefix for generated spec names */
|
|
22
|
-
prefix?: string;
|
|
23
|
-
/** Default stability for imported specs */
|
|
24
|
-
defaultStability?: 'experimental' | 'beta' | 'stable' | 'deprecated';
|
|
25
|
-
/** Default auth level for imported specs */
|
|
26
|
-
defaultAuth?: 'anonymous' | 'user' | 'admin';
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Options for OpenAPI import.
|
|
30
|
-
*/
|
|
31
|
-
interface OpenApiImportServiceOptions {
|
|
32
|
-
/** Source URL or file path */
|
|
33
|
-
source: string;
|
|
34
|
-
/** Output directory for generated spec files */
|
|
35
|
-
outputDir: string;
|
|
36
|
-
/** Prefix for generated spec names */
|
|
37
|
-
prefix?: string;
|
|
38
|
-
/** Only import operations with these tags */
|
|
39
|
-
tags?: string[];
|
|
40
|
-
/** Exclude operations with these operationIds */
|
|
41
|
-
exclude?: string[];
|
|
42
|
-
/** Default stability for imported specs */
|
|
43
|
-
defaultStability?: 'experimental' | 'beta' | 'stable' | 'deprecated';
|
|
44
|
-
/** Default owners for imported specs */
|
|
45
|
-
defaultOwners?: string[];
|
|
46
|
-
/** Default auth level for imported specs */
|
|
47
|
-
defaultAuth?: 'anonymous' | 'user' | 'admin';
|
|
48
|
-
/** Dry run - show what would be imported without writing files */
|
|
49
|
-
dryRun?: boolean;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Result of OpenAPI import.
|
|
53
|
-
*/
|
|
54
|
-
interface OpenApiImportServiceResult {
|
|
55
|
-
/** Number of specs successfully imported */
|
|
56
|
-
imported: number;
|
|
57
|
-
/** Number of specs skipped */
|
|
58
|
-
skipped: number;
|
|
59
|
-
/** Number of errors */
|
|
60
|
-
errors: number;
|
|
61
|
-
/** List of imported spec files */
|
|
62
|
-
files: Array<{
|
|
63
|
-
path: string;
|
|
64
|
-
operationId: string;
|
|
65
|
-
specName: string;
|
|
66
|
-
}>;
|
|
67
|
-
/** List of skipped operations */
|
|
68
|
-
skippedOperations: Array<{
|
|
69
|
-
operationId: string;
|
|
70
|
-
reason: string;
|
|
71
|
-
}>;
|
|
72
|
-
/** List of errors */
|
|
73
|
-
errorMessages: Array<{
|
|
74
|
-
operationId: string;
|
|
75
|
-
error: string;
|
|
76
|
-
}>;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Options for OpenAPI sync.
|
|
80
|
-
*/
|
|
81
|
-
interface OpenApiSyncServiceOptions {
|
|
82
|
-
/** Sources to sync (uses config if not provided) */
|
|
83
|
-
sources?: OpenApiSourceConfig[];
|
|
84
|
-
/** Source name to sync (if syncing single source) */
|
|
85
|
-
sourceName?: string;
|
|
86
|
-
/** Interactive mode - prompt for conflict resolution */
|
|
87
|
-
interactive?: boolean;
|
|
88
|
-
/** Force resolution mode */
|
|
89
|
-
force?: 'openapi' | 'contractspec';
|
|
90
|
-
/** Dry run - show what would change without writing */
|
|
91
|
-
dryRun?: boolean;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Result of OpenAPI sync.
|
|
95
|
-
*/
|
|
96
|
-
interface OpenApiSyncServiceResult {
|
|
97
|
-
/** Number of specs added */
|
|
98
|
-
added: number;
|
|
99
|
-
/** Number of specs updated */
|
|
100
|
-
updated: number;
|
|
101
|
-
/** Number of specs unchanged */
|
|
102
|
-
unchanged: number;
|
|
103
|
-
/** Number of conflicts */
|
|
104
|
-
conflicts: number;
|
|
105
|
-
/** Details of changes */
|
|
106
|
-
changes: Array<{
|
|
107
|
-
operationId: string;
|
|
108
|
-
action: 'added' | 'updated' | 'unchanged' | 'conflict';
|
|
109
|
-
path?: string;
|
|
110
|
-
changeCount?: number;
|
|
111
|
-
}>;
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Options for OpenAPI validation.
|
|
115
|
-
*/
|
|
116
|
-
interface OpenApiValidateServiceOptions {
|
|
117
|
-
/** Spec file or directory to validate */
|
|
118
|
-
specPath: string;
|
|
119
|
-
/** OpenAPI source to validate against */
|
|
120
|
-
openApiSource: string;
|
|
121
|
-
/** Ignore description differences */
|
|
122
|
-
ignoreDescriptions?: boolean;
|
|
123
|
-
/** Ignore tag differences */
|
|
124
|
-
ignoreTags?: boolean;
|
|
125
|
-
/** Ignore transport differences (path, method) */
|
|
126
|
-
ignoreTransport?: boolean;
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Result of OpenAPI validation.
|
|
130
|
-
*/
|
|
131
|
-
interface OpenApiValidateServiceResult {
|
|
132
|
-
/** Whether validation passed */
|
|
133
|
-
valid: boolean;
|
|
134
|
-
/** Number of specs validated */
|
|
135
|
-
specsValidated: number;
|
|
136
|
-
/** Number of specs with differences */
|
|
137
|
-
specsWithDiffs: number;
|
|
138
|
-
/** Validation details */
|
|
139
|
-
results: Array<{
|
|
140
|
-
specPath: string;
|
|
141
|
-
operationId?: string;
|
|
142
|
-
valid: boolean;
|
|
143
|
-
diffs: Array<{
|
|
144
|
-
path: string;
|
|
145
|
-
type: string;
|
|
146
|
-
description: string;
|
|
147
|
-
}>;
|
|
148
|
-
}>;
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Options for OpenAPI export.
|
|
152
|
-
*/
|
|
153
|
-
interface OpenApiExportServiceOptions {
|
|
154
|
-
/** Path to module exporting SpecRegistry */
|
|
155
|
-
registryPath: string;
|
|
156
|
-
/** Output file path */
|
|
157
|
-
outputPath?: string;
|
|
158
|
-
/** Output format */
|
|
159
|
-
format?: 'json' | 'yaml';
|
|
160
|
-
/** OpenAPI title */
|
|
161
|
-
title?: string;
|
|
162
|
-
/** OpenAPI version */
|
|
163
|
-
version?: string;
|
|
164
|
-
/** OpenAPI description */
|
|
165
|
-
description?: string;
|
|
166
|
-
/** Server URLs to include */
|
|
167
|
-
servers?: Array<{
|
|
168
|
-
url: string;
|
|
169
|
-
description?: string;
|
|
170
|
-
}>;
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* Result of OpenAPI export.
|
|
174
|
-
*/
|
|
175
|
-
interface OpenApiExportServiceResult {
|
|
176
|
-
/** Output file path */
|
|
177
|
-
outputPath: string;
|
|
178
|
-
/** Generated content */
|
|
179
|
-
content: string;
|
|
180
|
-
/** Number of operations exported */
|
|
181
|
-
operationCount: number;
|
|
182
|
-
}
|
|
183
|
-
//#endregion
|
|
184
|
-
export { OpenApiExportServiceOptions, OpenApiExportServiceResult, OpenApiImportServiceOptions, OpenApiImportServiceResult, OpenApiSourceConfig, OpenApiSyncServiceOptions, OpenApiSyncServiceResult, OpenApiValidateServiceOptions, OpenApiValidateServiceResult };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FsAdapter } from "../../ports/fs.js";
|
|
2
|
-
import { LoggerAdapter } from "../../ports/logger.js";
|
|
3
|
-
import { OpenApiValidateServiceOptions, OpenApiValidateServiceResult } from "./types.js";
|
|
4
|
-
|
|
5
|
-
//#region src/services/openapi/validate-service.d.ts
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Validate ContractSpec specs against an OpenAPI source.
|
|
9
|
-
*/
|
|
10
|
-
declare function validateAgainstOpenApiService(options: OpenApiValidateServiceOptions, adapters: {
|
|
11
|
-
fs: FsAdapter;
|
|
12
|
-
logger: LoggerAdapter;
|
|
13
|
-
}): Promise<OpenApiValidateServiceResult>;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { validateAgainstOpenApiService };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { RegeneratorService } from "@lssm/lib.contracts/regenerator";
|
|
2
|
-
import { ProposalSink, RegenerationContext, RegenerationRule } from "@lssm/lib.contracts/regenerator/types";
|
|
3
|
-
import { SignalAdapters } from "@lssm/lib.contracts/regenerator/adapters";
|
|
4
|
-
|
|
5
|
-
//#region src/services/regenerator.d.ts
|
|
6
|
-
|
|
7
|
-
interface CreateRegeneratorOptions {
|
|
8
|
-
contexts: RegenerationContext[];
|
|
9
|
-
rules: RegenerationRule[];
|
|
10
|
-
sink: ProposalSink;
|
|
11
|
-
adapters?: SignalAdapters;
|
|
12
|
-
pollIntervalMs?: number;
|
|
13
|
-
batchDurationMs?: number;
|
|
14
|
-
}
|
|
15
|
-
declare function createRegeneratorService(options: CreateRegeneratorOptions): RegeneratorService;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { CreateRegeneratorOptions, createRegeneratorService };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { LoggerAdapter } from "../ports/logger.js";
|
|
2
|
-
|
|
3
|
-
//#region src/services/registry.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Registry client options.
|
|
7
|
-
*/
|
|
8
|
-
interface RegistryClientOptions {
|
|
9
|
-
registryUrl: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Registry client for interacting with ContractSpec registry.
|
|
13
|
-
*/
|
|
14
|
-
declare class RegistryClient {
|
|
15
|
-
private readonly registryUrl;
|
|
16
|
-
constructor(opts: RegistryClientOptions);
|
|
17
|
-
/**
|
|
18
|
-
* Make GET request to registry.
|
|
19
|
-
*/
|
|
20
|
-
getJson<T>(path: string): Promise<T>;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Resolve registry URL from options or environment.
|
|
24
|
-
*/
|
|
25
|
-
declare function resolveRegistryUrl(cliRegistryUrl?: string): string;
|
|
26
|
-
/**
|
|
27
|
-
* Add spec to registry.
|
|
28
|
-
*/
|
|
29
|
-
declare function addToRegistry(specPath: string, options: {
|
|
30
|
-
registryUrl?: string;
|
|
31
|
-
}, adapters: {
|
|
32
|
-
logger: LoggerAdapter;
|
|
33
|
-
}): Promise<void>;
|
|
34
|
-
/**
|
|
35
|
-
* List specs from registry.
|
|
36
|
-
*/
|
|
37
|
-
declare function listFromRegistry(options: {
|
|
38
|
-
registryUrl?: string;
|
|
39
|
-
filter?: string;
|
|
40
|
-
}, adapters: {
|
|
41
|
-
logger: LoggerAdapter;
|
|
42
|
-
}): Promise<unknown[]>;
|
|
43
|
-
/**
|
|
44
|
-
* Search registry for specs.
|
|
45
|
-
*/
|
|
46
|
-
declare function searchRegistry(query: string, options: {
|
|
47
|
-
registryUrl?: string;
|
|
48
|
-
}, adapters: {
|
|
49
|
-
logger: LoggerAdapter;
|
|
50
|
-
}): Promise<unknown[]>;
|
|
51
|
-
//#endregion
|
|
52
|
-
export { RegistryClient, RegistryClientOptions, addToRegistry, listFromRegistry, resolveRegistryUrl, searchRegistry };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { SetupOptions } from "./types.js";
|
|
2
|
-
|
|
3
|
-
//#region src/services/setup/config-generators.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Generate .contractsrc.json content.
|
|
7
|
-
*
|
|
8
|
-
* Adapts defaults based on monorepo scope.
|
|
9
|
-
*/
|
|
10
|
-
declare function generateContractsrcConfig(options: SetupOptions): object;
|
|
11
|
-
/**
|
|
12
|
-
* Generate .vscode/settings.json ContractSpec settings.
|
|
13
|
-
*/
|
|
14
|
-
declare function generateVscodeSettings(): object;
|
|
15
|
-
/**
|
|
16
|
-
* Generate .cursor/mcp.json content.
|
|
17
|
-
*/
|
|
18
|
-
declare function generateCursorMcpConfig(): object;
|
|
19
|
-
/**
|
|
20
|
-
* Generate Claude Desktop MCP config.
|
|
21
|
-
* Returns the mcpServers section to merge into claude_desktop_config.json.
|
|
22
|
-
*/
|
|
23
|
-
declare function generateClaudeMcpConfig(): object;
|
|
24
|
-
/**
|
|
25
|
-
* Generate .cursor/rules/contractspec.mdc content.
|
|
26
|
-
*
|
|
27
|
-
* Adapts paths based on monorepo scope.
|
|
28
|
-
*/
|
|
29
|
-
declare function generateCursorRules(options: SetupOptions): string;
|
|
30
|
-
/**
|
|
31
|
-
* Generate AGENTS.md content.
|
|
32
|
-
*
|
|
33
|
-
* Adapts paths and instructions based on monorepo scope.
|
|
34
|
-
*/
|
|
35
|
-
declare function generateAgentsMd(options: SetupOptions): string;
|
|
36
|
-
/**
|
|
37
|
-
* Get the file path for Claude Desktop config based on platform.
|
|
38
|
-
*/
|
|
39
|
-
declare function getClaudeDesktopConfigPath(): string;
|
|
40
|
-
//#endregion
|
|
41
|
-
export { generateAgentsMd, generateClaudeMcpConfig, generateContractsrcConfig, generateCursorMcpConfig, generateCursorRules, generateVscodeSettings, getClaudeDesktopConfigPath };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
//#region src/services/setup/file-merger.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* File merger utilities.
|
|
4
|
-
*
|
|
5
|
-
* Deep-merges JSON files without losing user settings.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Deep merge two objects, preserving existing user values.
|
|
9
|
-
* New keys are added, but existing keys are NOT overwritten.
|
|
10
|
-
*/
|
|
11
|
-
declare function deepMergePreserve<T extends Record<string, unknown>>(existing: T, defaults: T): T;
|
|
12
|
-
/**
|
|
13
|
-
* Deep merge two objects, with new values taking precedence.
|
|
14
|
-
* Used when we want to update existing configs.
|
|
15
|
-
*/
|
|
16
|
-
declare function deepMergeOverwrite<T extends Record<string, unknown>>(existing: T, updates: Partial<T>): T;
|
|
17
|
-
/**
|
|
18
|
-
* Parse JSON safely, returning null on failure.
|
|
19
|
-
*/
|
|
20
|
-
declare function safeParseJson<T>(content: string): T | null;
|
|
21
|
-
/**
|
|
22
|
-
* Format JSON with consistent indentation.
|
|
23
|
-
*/
|
|
24
|
-
declare function formatJson(obj: unknown): string;
|
|
25
|
-
//#endregion
|
|
26
|
-
export { deepMergeOverwrite, deepMergePreserve, formatJson, safeParseJson };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FsAdapter } from "../../ports/fs.js";
|
|
2
|
-
import { SetupOptions, SetupPromptCallbacks, SetupResult } from "./types.js";
|
|
3
|
-
|
|
4
|
-
//#region src/services/setup/setup-service.d.ts
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Run the ContractSpec setup.
|
|
8
|
-
*/
|
|
9
|
-
declare function runSetup(fs: FsAdapter, options: SetupOptions, prompts?: SetupPromptCallbacks): Promise<SetupResult>;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { runSetup };
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
//#region src/services/setup/types.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Setup service types.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Target components that can be configured during setup.
|
|
7
|
-
*/
|
|
8
|
-
type SetupTarget = 'cli-config' | 'vscode-settings' | 'mcp-cursor' | 'mcp-claude' | 'cursor-rules' | 'agents-md';
|
|
9
|
-
/**
|
|
10
|
-
* All available setup targets.
|
|
11
|
-
*/
|
|
12
|
-
declare const ALL_SETUP_TARGETS: SetupTarget[];
|
|
13
|
-
/**
|
|
14
|
-
* Human-readable labels for setup targets.
|
|
15
|
-
*/
|
|
16
|
-
declare const SETUP_TARGET_LABELS: Record<SetupTarget, string>;
|
|
17
|
-
/**
|
|
18
|
-
* Scope of configuration in a monorepo.
|
|
19
|
-
*/
|
|
20
|
-
type SetupScope = 'workspace' | 'package';
|
|
21
|
-
/**
|
|
22
|
-
* Options for the setup service.
|
|
23
|
-
*/
|
|
24
|
-
interface SetupOptions {
|
|
25
|
-
/** Root directory of the workspace (monorepo root or single project root). */
|
|
26
|
-
workspaceRoot: string;
|
|
27
|
-
/** Current package root (may differ from workspaceRoot in monorepos). */
|
|
28
|
-
packageRoot?: string;
|
|
29
|
-
/** Whether this is a monorepo. */
|
|
30
|
-
isMonorepo?: boolean;
|
|
31
|
-
/** Where to create config: workspace level or package level. */
|
|
32
|
-
scope?: SetupScope;
|
|
33
|
-
/** Current package name (if in a monorepo package). */
|
|
34
|
-
packageName?: string;
|
|
35
|
-
/** If true, skip prompts and use defaults. */
|
|
36
|
-
interactive: boolean;
|
|
37
|
-
/** Specific targets to configure (defaults to all). */
|
|
38
|
-
targets: SetupTarget[];
|
|
39
|
-
/** Project name (defaults to directory name). */
|
|
40
|
-
projectName?: string;
|
|
41
|
-
/** Default code owners. */
|
|
42
|
-
defaultOwners?: string[];
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Result of a single file setup operation.
|
|
46
|
-
*/
|
|
47
|
-
interface SetupFileResult {
|
|
48
|
-
/** Target that was configured. */
|
|
49
|
-
target: SetupTarget;
|
|
50
|
-
/** File path that was created or modified. */
|
|
51
|
-
filePath: string;
|
|
52
|
-
/** Action taken. */
|
|
53
|
-
action: 'created' | 'merged' | 'skipped' | 'error';
|
|
54
|
-
/** Message describing what happened. */
|
|
55
|
-
message: string;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Full result of the setup operation.
|
|
59
|
-
*/
|
|
60
|
-
interface SetupResult {
|
|
61
|
-
/** Whether all operations succeeded. */
|
|
62
|
-
success: boolean;
|
|
63
|
-
/** Results for each file. */
|
|
64
|
-
files: SetupFileResult[];
|
|
65
|
-
/** Summary message. */
|
|
66
|
-
summary: string;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Callback for interactive prompts during setup.
|
|
70
|
-
*/
|
|
71
|
-
interface SetupPromptCallbacks {
|
|
72
|
-
/** Confirm an action. */
|
|
73
|
-
confirm: (message: string) => Promise<boolean>;
|
|
74
|
-
/** Select multiple options. */
|
|
75
|
-
multiSelect: <T extends string>(message: string, options: {
|
|
76
|
-
value: T;
|
|
77
|
-
label: string;
|
|
78
|
-
selected?: boolean;
|
|
79
|
-
}[]) => Promise<T[]>;
|
|
80
|
-
/** Input a string value. */
|
|
81
|
-
input: (message: string, defaultValue?: string) => Promise<string>;
|
|
82
|
-
}
|
|
83
|
-
//#endregion
|
|
84
|
-
export { ALL_SETUP_TARGETS, SETUP_TARGET_LABELS, SetupFileResult, SetupOptions, SetupPromptCallbacks, SetupResult, SetupScope, SetupTarget };
|
package/dist/services/sync.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { FsAdapter } from "../ports/fs.js";
|
|
2
|
-
import { LoggerAdapter } from "../ports/logger.js";
|
|
3
|
-
import { ValidateSpecResult } from "./validate.js";
|
|
4
|
-
import { BuildSpecOptions } from "./build.js";
|
|
5
|
-
import { WorkspaceConfig } from "@lssm/module.contractspec-workspace";
|
|
6
|
-
|
|
7
|
-
//#region src/services/sync.d.ts
|
|
8
|
-
|
|
9
|
-
interface SyncSpecsOptions {
|
|
10
|
-
pattern?: string;
|
|
11
|
-
outputDirs?: (string | undefined)[];
|
|
12
|
-
validate?: boolean;
|
|
13
|
-
buildOptions?: Omit<BuildSpecOptions, 'outputDir'>;
|
|
14
|
-
dryRun?: boolean;
|
|
15
|
-
}
|
|
16
|
-
interface SyncSpecsRunResult {
|
|
17
|
-
specPath: string;
|
|
18
|
-
outputDir?: string;
|
|
19
|
-
validation?: ValidateSpecResult;
|
|
20
|
-
build?: unknown;
|
|
21
|
-
error?: {
|
|
22
|
-
phase: 'validate' | 'build';
|
|
23
|
-
message: string;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
interface SyncSpecsResult {
|
|
27
|
-
specs: string[];
|
|
28
|
-
runs: SyncSpecsRunResult[];
|
|
29
|
-
}
|
|
30
|
-
type SyncBuildFn<B> = (specPath: string, outputDir: string | undefined) => Promise<B>;
|
|
31
|
-
type SyncValidateFn = (specPath: string) => Promise<ValidateSpecResult>;
|
|
32
|
-
declare function syncSpecs(adapters: {
|
|
33
|
-
fs: FsAdapter;
|
|
34
|
-
logger: LoggerAdapter;
|
|
35
|
-
}, config: WorkspaceConfig, options?: SyncSpecsOptions, overrides?: {
|
|
36
|
-
build?: SyncBuildFn<unknown>;
|
|
37
|
-
validate?: SyncValidateFn;
|
|
38
|
-
}): Promise<SyncSpecsResult>;
|
|
39
|
-
//#endregion
|
|
40
|
-
export { SyncBuildFn, SyncSpecsOptions, SyncSpecsResult, SyncSpecsRunResult, SyncValidateFn, syncSpecs };
|
package/dist/services/test.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { SpecRegistry } from "@lssm/lib.contracts";
|
|
2
|
-
import { TestRunner, TestSpec } from "@lssm/lib.contracts/tests";
|
|
3
|
-
|
|
4
|
-
//#region src/services/test.d.ts
|
|
5
|
-
|
|
6
|
-
type TestRunResult = Awaited<ReturnType<TestRunner['run']>>;
|
|
7
|
-
interface RunTestsResult {
|
|
8
|
-
results: TestRunResult[];
|
|
9
|
-
passed: number;
|
|
10
|
-
failed: number;
|
|
11
|
-
}
|
|
12
|
-
declare function runTests(specs: TestSpec[], registry: SpecRegistry): Promise<RunTestsResult>;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { RunTestsResult, TestRunResult, runTests };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { FsAdapter } from "../ports/fs.js";
|
|
2
|
-
import { WorkspaceConfig } from "@lssm/module.contractspec-workspace";
|
|
3
|
-
|
|
4
|
-
//#region src/services/validate-implementation.d.ts
|
|
5
|
-
|
|
6
|
-
interface ValidateImplementationOptions {
|
|
7
|
-
checkHandlers?: boolean;
|
|
8
|
-
checkTests?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Override workspace outputDir (defaults to config.outputDir).
|
|
11
|
-
*/
|
|
12
|
-
outputDir?: string;
|
|
13
|
-
}
|
|
14
|
-
interface ValidateImplementationResult {
|
|
15
|
-
valid: boolean;
|
|
16
|
-
errors: string[];
|
|
17
|
-
warnings: string[];
|
|
18
|
-
expected: {
|
|
19
|
-
handlerPath?: string;
|
|
20
|
-
handlerTestPath?: string;
|
|
21
|
-
componentPath?: string;
|
|
22
|
-
componentTestPath?: string;
|
|
23
|
-
formPath?: string;
|
|
24
|
-
formTestPath?: string;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
declare function validateImplementationFiles(specFile: string, adapters: {
|
|
28
|
-
fs: FsAdapter;
|
|
29
|
-
}, config: WorkspaceConfig, options?: ValidateImplementationOptions): Promise<ValidateImplementationResult>;
|
|
30
|
-
//#endregion
|
|
31
|
-
export { ValidateImplementationOptions, ValidateImplementationResult, validateImplementationFiles };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { FsAdapter } from "../ports/fs.js";
|
|
2
|
-
import { LoggerAdapter } from "../ports/logger.js";
|
|
3
|
-
import { ValidationResult } from "@lssm/module.contractspec-workspace";
|
|
4
|
-
|
|
5
|
-
//#region src/services/validate.d.ts
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Options for spec validation.
|
|
9
|
-
*/
|
|
10
|
-
interface ValidateSpecOptions {
|
|
11
|
-
/**
|
|
12
|
-
* Skip spec structure validation (e.g., for blueprint files).
|
|
13
|
-
*/
|
|
14
|
-
skipStructure?: boolean;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Result of spec validation.
|
|
18
|
-
*/
|
|
19
|
-
interface ValidateSpecResult {
|
|
20
|
-
valid: boolean;
|
|
21
|
-
structureResult?: ValidationResult;
|
|
22
|
-
errors: string[];
|
|
23
|
-
warnings: string[];
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Validate a spec file.
|
|
27
|
-
*/
|
|
28
|
-
declare function validateSpec(specFile: string, adapters: {
|
|
29
|
-
fs: FsAdapter;
|
|
30
|
-
logger: LoggerAdapter;
|
|
31
|
-
}, options?: ValidateSpecOptions): Promise<ValidateSpecResult>;
|
|
32
|
-
/**
|
|
33
|
-
* Validate multiple spec files.
|
|
34
|
-
*/
|
|
35
|
-
declare function validateSpecs(specFiles: string[], adapters: {
|
|
36
|
-
fs: FsAdapter;
|
|
37
|
-
logger: LoggerAdapter;
|
|
38
|
-
}, options?: ValidateSpecOptions): Promise<Map<string, ValidateSpecResult>>;
|
|
39
|
-
//#endregion
|
|
40
|
-
export { ValidateSpecOptions, ValidateSpecResult, validateSpec, validateSpecs };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { CacheKeyString, CacheStorageAdapter, VerificationCacheEntry } from "../types.js";
|
|
2
|
-
|
|
3
|
-
//#region src/services/verification-cache/adapters/filesystem.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Filesystem storage adapter.
|
|
7
|
-
*/
|
|
8
|
-
declare class FileSystemCacheStorage implements CacheStorageAdapter {
|
|
9
|
-
private filePath;
|
|
10
|
-
private cache;
|
|
11
|
-
private isDirty;
|
|
12
|
-
constructor(filePath?: string, workspaceRoot?: string);
|
|
13
|
-
/**
|
|
14
|
-
* Load cache from disk synchronously.
|
|
15
|
-
*/
|
|
16
|
-
private loadSync;
|
|
17
|
-
/**
|
|
18
|
-
* Save cache to disk.
|
|
19
|
-
*/
|
|
20
|
-
private saveSync;
|
|
21
|
-
get(key: CacheKeyString): Promise<VerificationCacheEntry | null>;
|
|
22
|
-
set(key: CacheKeyString, entry: VerificationCacheEntry): Promise<void>;
|
|
23
|
-
delete(key: CacheKeyString): Promise<boolean>;
|
|
24
|
-
has(key: CacheKeyString): Promise<boolean>;
|
|
25
|
-
keys(): Promise<CacheKeyString[]>;
|
|
26
|
-
clear(): Promise<void>;
|
|
27
|
-
stats(): Promise<{
|
|
28
|
-
entryCount: number;
|
|
29
|
-
memoryUsage?: number;
|
|
30
|
-
}>;
|
|
31
|
-
/**
|
|
32
|
-
* Force save any pending changes.
|
|
33
|
-
*/
|
|
34
|
-
flush(): void;
|
|
35
|
-
/**
|
|
36
|
-
* Reload cache from disk.
|
|
37
|
-
*/
|
|
38
|
-
reload(): void;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Create a filesystem cache storage adapter.
|
|
42
|
-
*/
|
|
43
|
-
declare function createFileSystemCacheStorage(filePath?: string, workspaceRoot?: string): FileSystemCacheStorage;
|
|
44
|
-
//#endregion
|
|
45
|
-
export { FileSystemCacheStorage, createFileSystemCacheStorage };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { CacheKeyString, CacheStorageAdapter, VerificationCacheEntry } from "../types.js";
|
|
2
|
-
|
|
3
|
-
//#region src/services/verification-cache/adapters/in-memory.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* In-memory storage adapter using a Map.
|
|
7
|
-
*/
|
|
8
|
-
declare class InMemoryCacheStorage implements CacheStorageAdapter {
|
|
9
|
-
private cache;
|
|
10
|
-
get(key: CacheKeyString): Promise<VerificationCacheEntry | null>;
|
|
11
|
-
set(key: CacheKeyString, entry: VerificationCacheEntry): Promise<void>;
|
|
12
|
-
delete(key: CacheKeyString): Promise<boolean>;
|
|
13
|
-
has(key: CacheKeyString): Promise<boolean>;
|
|
14
|
-
keys(): Promise<CacheKeyString[]>;
|
|
15
|
-
clear(): Promise<void>;
|
|
16
|
-
stats(): Promise<{
|
|
17
|
-
entryCount: number;
|
|
18
|
-
memoryUsage?: number;
|
|
19
|
-
}>;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Create an in-memory cache storage adapter.
|
|
23
|
-
*/
|
|
24
|
-
declare function createInMemoryCacheStorage(): InMemoryCacheStorage;
|
|
25
|
-
//#endregion
|
|
26
|
-
export { InMemoryCacheStorage, createInMemoryCacheStorage };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { CacheKeyString, CacheStorageAdapter, VerificationCacheEntry } from "../types.js";
|
|
2
|
-
|
|
3
|
-
//#region src/services/verification-cache/adapters/workspace-state.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Interface for key-value store (compatible with VSCode's Memento).
|
|
7
|
-
*/
|
|
8
|
-
interface KeyValueStore {
|
|
9
|
-
get<T>(key: string): T | undefined;
|
|
10
|
-
update(key: string, value: unknown): Thenable<void>;
|
|
11
|
-
keys?(): readonly string[];
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Workspace state storage adapter.
|
|
15
|
-
*/
|
|
16
|
-
declare class WorkspaceStateCacheStorage implements CacheStorageAdapter {
|
|
17
|
-
private store;
|
|
18
|
-
private keyIndex;
|
|
19
|
-
constructor(store: KeyValueStore);
|
|
20
|
-
/**
|
|
21
|
-
* Load the key index from storage.
|
|
22
|
-
*/
|
|
23
|
-
private loadKeyIndex;
|
|
24
|
-
/**
|
|
25
|
-
* Save the key index to storage.
|
|
26
|
-
*/
|
|
27
|
-
private saveKeyIndex;
|
|
28
|
-
/**
|
|
29
|
-
* Get the storage key for a cache key.
|
|
30
|
-
*/
|
|
31
|
-
private getStorageKey;
|
|
32
|
-
get(key: CacheKeyString): Promise<VerificationCacheEntry | null>;
|
|
33
|
-
set(key: CacheKeyString, entry: VerificationCacheEntry): Promise<void>;
|
|
34
|
-
delete(key: CacheKeyString): Promise<boolean>;
|
|
35
|
-
has(key: CacheKeyString): Promise<boolean>;
|
|
36
|
-
keys(): Promise<CacheKeyString[]>;
|
|
37
|
-
clear(): Promise<void>;
|
|
38
|
-
stats(): Promise<{
|
|
39
|
-
entryCount: number;
|
|
40
|
-
memoryUsage?: number;
|
|
41
|
-
}>;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Create a workspace state cache storage adapter.
|
|
45
|
-
*/
|
|
46
|
-
declare function createWorkspaceStateCacheStorage(store: KeyValueStore): WorkspaceStateCacheStorage;
|
|
47
|
-
//#endregion
|
|
48
|
-
export { KeyValueStore, WorkspaceStateCacheStorage, createWorkspaceStateCacheStorage };
|