@lssm/bundle.contractspec-workspace 0.0.0-canary-20251217080011 → 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,69 +0,0 @@
|
|
|
1
|
-
import { CacheKeyString, CacheLookupResult, CacheStats, CacheStorageAdapter, VerificationCacheConfig, VerificationCacheKey } from "./types.js";
|
|
2
|
-
import { VerificationReport, VerificationTier } from "@lssm/lib.contracts/llm";
|
|
3
|
-
|
|
4
|
-
//#region src/services/verification-cache/cache-service.d.ts
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Compute SHA256 hash of content.
|
|
8
|
-
*/
|
|
9
|
-
declare function computeContentHash(content: string): string;
|
|
10
|
-
/**
|
|
11
|
-
* Convert cache key to string for storage.
|
|
12
|
-
*/
|
|
13
|
-
declare function cacheKeyToString(key: VerificationCacheKey): CacheKeyString;
|
|
14
|
-
/**
|
|
15
|
-
* Parse cache key string back to object.
|
|
16
|
-
*/
|
|
17
|
-
declare function stringToCacheKey(str: CacheKeyString): VerificationCacheKey | null;
|
|
18
|
-
/**
|
|
19
|
-
* Verification cache service.
|
|
20
|
-
*/
|
|
21
|
-
declare class VerificationCacheService {
|
|
22
|
-
private storage;
|
|
23
|
-
private config;
|
|
24
|
-
private stats;
|
|
25
|
-
constructor(storage: CacheStorageAdapter, config?: Partial<VerificationCacheConfig>);
|
|
26
|
-
/**
|
|
27
|
-
* Create a cache key from spec and implementation content.
|
|
28
|
-
*/
|
|
29
|
-
createKey(specContent: string, implContent: string, tier: VerificationTier, aiModelVersion?: string): VerificationCacheKey;
|
|
30
|
-
/**
|
|
31
|
-
* Look up a cached verification result.
|
|
32
|
-
*/
|
|
33
|
-
lookup(key: VerificationCacheKey): Promise<CacheLookupResult>;
|
|
34
|
-
/**
|
|
35
|
-
* Store a verification result in cache.
|
|
36
|
-
*/
|
|
37
|
-
store(key: VerificationCacheKey, result: VerificationReport, options?: {
|
|
38
|
-
dependencies?: string[];
|
|
39
|
-
specName?: string;
|
|
40
|
-
implPath?: string;
|
|
41
|
-
}): Promise<void>;
|
|
42
|
-
/**
|
|
43
|
-
* Invalidate cache entries for a specific file.
|
|
44
|
-
* Used when a file changes to invalidate dependent caches.
|
|
45
|
-
*/
|
|
46
|
-
invalidateForFile(filePath: string): Promise<number>;
|
|
47
|
-
/**
|
|
48
|
-
* Invalidate all cache entries for a specific spec.
|
|
49
|
-
*/
|
|
50
|
-
invalidateForSpec(specHash: string): Promise<number>;
|
|
51
|
-
/**
|
|
52
|
-
* Clear all cache entries.
|
|
53
|
-
*/
|
|
54
|
-
clear(): Promise<void>;
|
|
55
|
-
/**
|
|
56
|
-
* Get cache statistics.
|
|
57
|
-
*/
|
|
58
|
-
getStats(): Promise<CacheStats>;
|
|
59
|
-
/**
|
|
60
|
-
* Prune cache if over the maximum entry limit.
|
|
61
|
-
*/
|
|
62
|
-
private pruneIfNeeded;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Create a verification cache service with the given storage adapter.
|
|
66
|
-
*/
|
|
67
|
-
declare function createVerificationCacheService(storage: CacheStorageAdapter, config?: Partial<VerificationCacheConfig>): VerificationCacheService;
|
|
68
|
-
//#endregion
|
|
69
|
-
export { VerificationCacheService, cacheKeyToString, computeContentHash, createVerificationCacheService, stringToCacheKey };
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { VerificationReport, VerificationTier } from "@lssm/lib.contracts/llm";
|
|
2
|
-
|
|
3
|
-
//#region src/services/verification-cache/types.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Cache key for verification results.
|
|
7
|
-
*/
|
|
8
|
-
interface VerificationCacheKey {
|
|
9
|
-
/** SHA256 hash of spec file content */
|
|
10
|
-
specHash: string;
|
|
11
|
-
/** SHA256 hash of implementation file content */
|
|
12
|
-
implHash: string;
|
|
13
|
-
/** Verification tier */
|
|
14
|
-
tier: VerificationTier;
|
|
15
|
-
/** AI model version (for AI tier, ensures cache invalidation on model change) */
|
|
16
|
-
aiModelVersion?: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Serializable cache key string.
|
|
20
|
-
*/
|
|
21
|
-
type CacheKeyString = string;
|
|
22
|
-
/**
|
|
23
|
-
* Cache entry metadata.
|
|
24
|
-
*/
|
|
25
|
-
interface CacheEntryMeta {
|
|
26
|
-
/** When this entry was created */
|
|
27
|
-
createdAt: string;
|
|
28
|
-
/** When this entry expires (optional TTL) */
|
|
29
|
-
expiresAt?: string;
|
|
30
|
-
/** Paths to files that affect this result (for transitive invalidation) */
|
|
31
|
-
dependencies: string[];
|
|
32
|
-
/** Human-readable spec name for debugging */
|
|
33
|
-
specName?: string;
|
|
34
|
-
/** Human-readable impl path for debugging */
|
|
35
|
-
implPath?: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Full cache entry with result.
|
|
39
|
-
*/
|
|
40
|
-
interface VerificationCacheEntry {
|
|
41
|
-
/** The cache key */
|
|
42
|
-
key: VerificationCacheKey;
|
|
43
|
-
/** The verification result */
|
|
44
|
-
result: VerificationReport;
|
|
45
|
-
/** Entry metadata */
|
|
46
|
-
meta: CacheEntryMeta;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Cache lookup result.
|
|
50
|
-
*/
|
|
51
|
-
type CacheLookupResult = {
|
|
52
|
-
hit: true;
|
|
53
|
-
entry: VerificationCacheEntry;
|
|
54
|
-
} | {
|
|
55
|
-
hit: false;
|
|
56
|
-
reason: CacheMissReason;
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* Reasons for cache miss.
|
|
60
|
-
*/
|
|
61
|
-
type CacheMissReason = 'not_found' | 'expired' | 'spec_changed' | 'impl_changed' | 'dependency_changed' | 'model_changed';
|
|
62
|
-
/**
|
|
63
|
-
* Cache statistics.
|
|
64
|
-
*/
|
|
65
|
-
interface CacheStats {
|
|
66
|
-
/** Total entries in cache */
|
|
67
|
-
totalEntries: number;
|
|
68
|
-
/** Number of cache hits since startup */
|
|
69
|
-
hits: number;
|
|
70
|
-
/** Number of cache misses since startup */
|
|
71
|
-
misses: number;
|
|
72
|
-
/** Hit rate percentage (0-100) */
|
|
73
|
-
hitRate: number;
|
|
74
|
-
/** Estimated memory usage in bytes */
|
|
75
|
-
memoryUsage?: number;
|
|
76
|
-
/** Last time cache was pruned */
|
|
77
|
-
lastPruned?: string;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Cache configuration.
|
|
81
|
-
*/
|
|
82
|
-
interface VerificationCacheConfig {
|
|
83
|
-
/** Maximum number of entries to keep */
|
|
84
|
-
maxEntries?: number;
|
|
85
|
-
/** Default TTL in milliseconds (AI tier uses this) */
|
|
86
|
-
defaultTtlMs?: number;
|
|
87
|
-
/** TTL for structure tier (usually longer) */
|
|
88
|
-
structureTtlMs?: number;
|
|
89
|
-
/** TTL for behavior tier */
|
|
90
|
-
behaviorTtlMs?: number;
|
|
91
|
-
/** TTL for AI tier (usually shorter) */
|
|
92
|
-
aiTtlMs?: number;
|
|
93
|
-
/** Enable transitive invalidation */
|
|
94
|
-
transitiveInvalidation?: boolean;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Default cache configuration.
|
|
98
|
-
*/
|
|
99
|
-
declare const DEFAULT_CACHE_CONFIG: Required<VerificationCacheConfig>;
|
|
100
|
-
/**
|
|
101
|
-
* Storage adapter interface for cache persistence.
|
|
102
|
-
*/
|
|
103
|
-
interface CacheStorageAdapter {
|
|
104
|
-
/** Get an entry by key */
|
|
105
|
-
get(key: CacheKeyString): Promise<VerificationCacheEntry | null>;
|
|
106
|
-
/** Set an entry */
|
|
107
|
-
set(key: CacheKeyString, entry: VerificationCacheEntry): Promise<void>;
|
|
108
|
-
/** Delete an entry */
|
|
109
|
-
delete(key: CacheKeyString): Promise<boolean>;
|
|
110
|
-
/** Check if key exists */
|
|
111
|
-
has(key: CacheKeyString): Promise<boolean>;
|
|
112
|
-
/** List all keys */
|
|
113
|
-
keys(): Promise<CacheKeyString[]>;
|
|
114
|
-
/** Clear all entries */
|
|
115
|
-
clear(): Promise<void>;
|
|
116
|
-
/** Get stats (optional) */
|
|
117
|
-
stats?(): Promise<{
|
|
118
|
-
entryCount: number;
|
|
119
|
-
memoryUsage?: number;
|
|
120
|
-
}>;
|
|
121
|
-
}
|
|
122
|
-
//#endregion
|
|
123
|
-
export { CacheEntryMeta, CacheKeyString, CacheLookupResult, CacheMissReason, CacheStats, CacheStorageAdapter, DEFAULT_CACHE_CONFIG, VerificationCacheConfig, VerificationCacheEntry, VerificationCacheKey };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { SemanticVerificationResult, VerifyConfig, VerifyInput } from "./types.js";
|
|
2
|
-
import { VerificationReport } from "@lssm/lib.contracts/llm";
|
|
3
|
-
|
|
4
|
-
//#region src/services/verify/ai-verifier.d.ts
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Run AI-powered verification.
|
|
8
|
-
*/
|
|
9
|
-
declare function verifyWithAI(input: VerifyInput, config?: VerifyConfig): Promise<VerificationReport>;
|
|
10
|
-
/**
|
|
11
|
-
* Create a simpler AI review without calling the API.
|
|
12
|
-
* Used as fallback or for quick checks.
|
|
13
|
-
*/
|
|
14
|
-
declare function createQuickAIReview(input: VerifyInput): VerificationReport;
|
|
15
|
-
/**
|
|
16
|
-
* Run semantic field-level verification using AI.
|
|
17
|
-
*/
|
|
18
|
-
declare function verifySemanticFields(input: VerifyInput, config?: VerifyConfig): Promise<SemanticVerificationResult>;
|
|
19
|
-
/**
|
|
20
|
-
* Run enhanced AI verification with semantic field analysis.
|
|
21
|
-
*/
|
|
22
|
-
declare function verifyWithAIEnhanced(input: VerifyInput, config?: VerifyConfig): Promise<VerificationReport>;
|
|
23
|
-
//#endregion
|
|
24
|
-
export { createQuickAIReview, verifySemanticFields, verifyWithAI, verifyWithAIEnhanced };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { VerifyInput } from "./types.js";
|
|
2
|
-
import { VerificationReport } from "@lssm/lib.contracts/llm";
|
|
3
|
-
|
|
4
|
-
//#region src/services/verify/behavior-verifier.d.ts
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Run all behavior checks and produce a verification report.
|
|
8
|
-
*/
|
|
9
|
-
declare function verifyBehavior(input: VerifyInput): VerificationReport;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { verifyBehavior };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { VerifyInput } from "./types.js";
|
|
2
|
-
import { VerificationReport } from "@lssm/lib.contracts/llm";
|
|
3
|
-
|
|
4
|
-
//#region src/services/verify/structure-verifier.d.ts
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Run all structure checks and produce a verification report.
|
|
8
|
-
*/
|
|
9
|
-
declare function verifyStructure(input: VerifyInput): VerificationReport;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { verifyStructure };
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { AnyContractSpec } from "@lssm/lib.contracts";
|
|
2
|
-
import { VerificationIssue, VerificationReport, VerificationTier } from "@lssm/lib.contracts/llm";
|
|
3
|
-
|
|
4
|
-
//#region src/services/verify/types.d.ts
|
|
5
|
-
|
|
6
|
-
/** Configuration for the verification service */
|
|
7
|
-
interface VerifyConfig {
|
|
8
|
-
/** Enable verbose logging */
|
|
9
|
-
verbose?: boolean;
|
|
10
|
-
/** API key for AI verification (tier 3) */
|
|
11
|
-
aiApiKey?: string;
|
|
12
|
-
/** AI provider for tier 3 verification */
|
|
13
|
-
aiProvider?: 'anthropic' | 'openai' | 'local';
|
|
14
|
-
}
|
|
15
|
-
/** Options for running verification */
|
|
16
|
-
interface VerifyOptions {
|
|
17
|
-
/** Which tiers to run (default: all up to specified) */
|
|
18
|
-
tiers?: VerificationTier[];
|
|
19
|
-
/** Stop on first failure */
|
|
20
|
-
failFast?: boolean;
|
|
21
|
-
/** Include suggestions in report */
|
|
22
|
-
includeSuggestions?: boolean;
|
|
23
|
-
}
|
|
24
|
-
/** Input for verification */
|
|
25
|
-
interface VerifyInput {
|
|
26
|
-
/** Spec to verify against */
|
|
27
|
-
spec: AnyContractSpec;
|
|
28
|
-
/** Implementation code to verify */
|
|
29
|
-
implementationCode: string;
|
|
30
|
-
/** Implementation file path (for error reporting) */
|
|
31
|
-
implementationPath?: string;
|
|
32
|
-
}
|
|
33
|
-
/** Result of running all verification tiers */
|
|
34
|
-
interface VerifyResult {
|
|
35
|
-
/** Overall pass/fail */
|
|
36
|
-
passed: boolean;
|
|
37
|
-
/** Combined score (0-100) */
|
|
38
|
-
score: number;
|
|
39
|
-
/** Reports from each tier that was run */
|
|
40
|
-
reports: Map<VerificationTier, VerificationReport>;
|
|
41
|
-
/** All issues across all tiers */
|
|
42
|
-
allIssues: VerificationIssue[];
|
|
43
|
-
/** Summary message */
|
|
44
|
-
summary: string;
|
|
45
|
-
/** Duration in ms */
|
|
46
|
-
duration: number;
|
|
47
|
-
}
|
|
48
|
-
/** Structure check result */
|
|
49
|
-
interface StructureCheck {
|
|
50
|
-
/** Check name */
|
|
51
|
-
name: string;
|
|
52
|
-
/** Check passed */
|
|
53
|
-
passed: boolean;
|
|
54
|
-
/** Details if failed */
|
|
55
|
-
details?: string;
|
|
56
|
-
/** Suggested fix */
|
|
57
|
-
suggestion?: string;
|
|
58
|
-
}
|
|
59
|
-
/** Behavior check result */
|
|
60
|
-
interface BehaviorCheck {
|
|
61
|
-
/** Scenario or example name */
|
|
62
|
-
name: string;
|
|
63
|
-
/** Check type */
|
|
64
|
-
type: 'scenario' | 'example' | 'error';
|
|
65
|
-
/** Check passed */
|
|
66
|
-
passed: boolean;
|
|
67
|
-
/** Expected behavior */
|
|
68
|
-
expected?: string;
|
|
69
|
-
/** Actual behavior */
|
|
70
|
-
actual?: string;
|
|
71
|
-
/** Details */
|
|
72
|
-
details?: string;
|
|
73
|
-
}
|
|
74
|
-
/** AI review result */
|
|
75
|
-
interface AIReviewResult {
|
|
76
|
-
/** Overall compliance */
|
|
77
|
-
compliant: boolean;
|
|
78
|
-
/** Confidence score (0-1) */
|
|
79
|
-
confidence: number;
|
|
80
|
-
/** Findings */
|
|
81
|
-
findings: {
|
|
82
|
-
category: string;
|
|
83
|
-
severity: 'error' | 'warning' | 'info';
|
|
84
|
-
message: string;
|
|
85
|
-
location?: string;
|
|
86
|
-
suggestion?: string;
|
|
87
|
-
}[];
|
|
88
|
-
/** Raw AI response */
|
|
89
|
-
rawResponse?: string;
|
|
90
|
-
}
|
|
91
|
-
/** Field match type for semantic analysis */
|
|
92
|
-
type FieldMatchType = 'exact' | 'compatible' | 'mismatch' | 'missing';
|
|
93
|
-
/** Field mapping between spec and implementation */
|
|
94
|
-
interface FieldMapping {
|
|
95
|
-
/** Field name from spec */
|
|
96
|
-
specField: string;
|
|
97
|
-
/** Field type from spec */
|
|
98
|
-
specType: string;
|
|
99
|
-
/** Corresponding field in implementation (if found) */
|
|
100
|
-
implementationField?: string;
|
|
101
|
-
/** Field type in implementation */
|
|
102
|
-
implementationType?: string;
|
|
103
|
-
/** Match quality */
|
|
104
|
-
match: FieldMatchType;
|
|
105
|
-
/** AI confidence in this mapping (0-1) */
|
|
106
|
-
aiConfidence: number;
|
|
107
|
-
/** Suggestion if mismatch */
|
|
108
|
-
suggestion?: string;
|
|
109
|
-
}
|
|
110
|
-
/** Intent alignment analysis */
|
|
111
|
-
interface IntentAlignment {
|
|
112
|
-
/** Overall alignment score (0-100) */
|
|
113
|
-
score: number;
|
|
114
|
-
/** Issues with intent alignment */
|
|
115
|
-
issues: string[];
|
|
116
|
-
/** Suggestions for better alignment */
|
|
117
|
-
suggestions: string[];
|
|
118
|
-
}
|
|
119
|
-
/** Full semantic verification result */
|
|
120
|
-
interface SemanticVerificationResult {
|
|
121
|
-
/** Field-by-field mappings */
|
|
122
|
-
fieldMappings: FieldMapping[];
|
|
123
|
-
/** Intent alignment analysis */
|
|
124
|
-
intentAlignment: IntentAlignment;
|
|
125
|
-
/** Additional semantic issues found */
|
|
126
|
-
semanticIssues: {
|
|
127
|
-
category: string;
|
|
128
|
-
severity: 'error' | 'warning' | 'info';
|
|
129
|
-
message: string;
|
|
130
|
-
suggestion?: string;
|
|
131
|
-
}[];
|
|
132
|
-
/** Raw AI response for debugging */
|
|
133
|
-
rawResponse?: string;
|
|
134
|
-
}
|
|
135
|
-
//#endregion
|
|
136
|
-
export { AIReviewResult, BehaviorCheck, FieldMapping, FieldMatchType, IntentAlignment, SemanticVerificationResult, StructureCheck, VerifyConfig, VerifyInput, VerifyOptions, VerifyResult };
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { VerifyConfig, VerifyOptions, VerifyResult } from "./types.js";
|
|
2
|
-
import { AnyContractSpec } from "@lssm/lib.contracts";
|
|
3
|
-
import { VerificationReport } from "@lssm/lib.contracts/llm";
|
|
4
|
-
|
|
5
|
-
//#region src/services/verify/verify-service.d.ts
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Verification Service
|
|
9
|
-
*
|
|
10
|
-
* Main service for verifying implementations against specs.
|
|
11
|
-
*/
|
|
12
|
-
declare class VerifyService {
|
|
13
|
-
private config;
|
|
14
|
-
constructor(config?: Partial<VerifyConfig>);
|
|
15
|
-
/**
|
|
16
|
-
* Run verification on an implementation.
|
|
17
|
-
*/
|
|
18
|
-
verify(spec: AnyContractSpec, implementationCode: string, options?: VerifyOptions): Promise<VerifyResult>;
|
|
19
|
-
/**
|
|
20
|
-
* Run only structure verification (Tier 1).
|
|
21
|
-
*/
|
|
22
|
-
verifyStructure(spec: AnyContractSpec, implementationCode: string, implementationPath?: string): VerificationReport;
|
|
23
|
-
/**
|
|
24
|
-
* Run only behavior verification (Tier 2).
|
|
25
|
-
*/
|
|
26
|
-
verifyBehavior(spec: AnyContractSpec, implementationCode: string, implementationPath?: string): VerificationReport;
|
|
27
|
-
/**
|
|
28
|
-
* Run only AI verification (Tier 3).
|
|
29
|
-
*/
|
|
30
|
-
verifyAI(spec: AnyContractSpec, implementationCode: string, implementationPath?: string): Promise<VerificationReport>;
|
|
31
|
-
/**
|
|
32
|
-
* Quick verification (structure only, fast).
|
|
33
|
-
*/
|
|
34
|
-
quickVerify(spec: AnyContractSpec, implementationCode: string): VerificationReport;
|
|
35
|
-
/**
|
|
36
|
-
* Generate a human-readable summary of verification results.
|
|
37
|
-
*/
|
|
38
|
-
private generateSummary;
|
|
39
|
-
/**
|
|
40
|
-
* Format verification result as markdown.
|
|
41
|
-
*/
|
|
42
|
-
formatAsMarkdown(result: VerifyResult): string;
|
|
43
|
-
/**
|
|
44
|
-
* Format tier name for display.
|
|
45
|
-
*/
|
|
46
|
-
private formatTierName;
|
|
47
|
-
/**
|
|
48
|
-
* Update configuration.
|
|
49
|
-
*/
|
|
50
|
-
configure(config: Partial<VerifyConfig>): void;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Create a new VerifyService instance.
|
|
54
|
-
*/
|
|
55
|
-
declare function createVerifyService(config?: Partial<VerifyConfig>): VerifyService;
|
|
56
|
-
/** Default singleton instance */
|
|
57
|
-
declare const verifyService: VerifyService;
|
|
58
|
-
//#endregion
|
|
59
|
-
export { VerifyService, createVerifyService, verifyService };
|
package/dist/services/watch.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { FsAdapter } from "../ports/fs.js";
|
|
2
|
-
import { WatchOptions, Watcher, WatcherAdapter } from "../ports/watcher.js";
|
|
3
|
-
import { LoggerAdapter } from "../ports/logger.js";
|
|
4
|
-
import { WorkspaceConfig } from "@lssm/module.contractspec-workspace";
|
|
5
|
-
|
|
6
|
-
//#region src/services/watch.d.ts
|
|
7
|
-
|
|
8
|
-
interface WatchSpecsOptions extends WatchOptions {
|
|
9
|
-
runValidate?: boolean;
|
|
10
|
-
runBuild?: boolean;
|
|
11
|
-
dryRun?: boolean;
|
|
12
|
-
}
|
|
13
|
-
type WatchBuildFn = (specPath: string) => Promise<void>;
|
|
14
|
-
type WatchValidateFn = (specPath: string) => Promise<void>;
|
|
15
|
-
declare function watchSpecs(adapters: {
|
|
16
|
-
watcher: WatcherAdapter;
|
|
17
|
-
fs: FsAdapter;
|
|
18
|
-
logger: LoggerAdapter;
|
|
19
|
-
}, config: WorkspaceConfig, options: WatchSpecsOptions, overrides?: {
|
|
20
|
-
validate?: WatchValidateFn;
|
|
21
|
-
build?: WatchBuildFn;
|
|
22
|
-
}): Watcher;
|
|
23
|
-
//#endregion
|
|
24
|
-
export { WatchBuildFn, WatchSpecsOptions, WatchValidateFn, watchSpecs };
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { FsAdapter } from "../ports/fs.js";
|
|
2
|
-
import { PackageManager, WorkspaceInfo, detectPackageManager, findPackageRoot, findWorkspaceRoot, getWorkspaceInfo } from "../adapters/workspace.js";
|
|
3
|
-
|
|
4
|
-
//#region src/services/workspace-info.d.ts
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Monorepo configuration options.
|
|
8
|
-
*/
|
|
9
|
-
interface MonorepoConfig {
|
|
10
|
-
/**
|
|
11
|
-
* Package patterns to include (glob).
|
|
12
|
-
*/
|
|
13
|
-
packages?: string[];
|
|
14
|
-
/**
|
|
15
|
-
* Package patterns to exclude (glob).
|
|
16
|
-
*/
|
|
17
|
-
excludePackages?: string[];
|
|
18
|
-
/**
|
|
19
|
-
* Whether to search recursively in all packages.
|
|
20
|
-
*/
|
|
21
|
-
recursive?: boolean;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Extended workspace info with configuration.
|
|
25
|
-
*/
|
|
26
|
-
interface ExtendedWorkspaceInfo extends WorkspaceInfo {
|
|
27
|
-
/**
|
|
28
|
-
* Monorepo-specific configuration.
|
|
29
|
-
*/
|
|
30
|
-
monorepoConfig?: MonorepoConfig;
|
|
31
|
-
/**
|
|
32
|
-
* Path to workspace .contractsrc.json (if exists).
|
|
33
|
-
*/
|
|
34
|
-
workspaceConfigPath?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Path to package .contractsrc.json (if exists).
|
|
37
|
-
*/
|
|
38
|
-
packageConfigPath?: string;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Get extended workspace information including config paths.
|
|
42
|
-
*/
|
|
43
|
-
declare function getExtendedWorkspaceInfo(fs: FsAdapter, startDir?: string): Promise<ExtendedWorkspaceInfo>;
|
|
44
|
-
/**
|
|
45
|
-
* Find all .contractsrc.json files in a monorepo.
|
|
46
|
-
*
|
|
47
|
-
* Returns paths in order of priority (workspace first, then packages).
|
|
48
|
-
*/
|
|
49
|
-
declare function findAllConfigFiles(fs: FsAdapter, workspaceRoot: string): Promise<string[]>;
|
|
50
|
-
/**
|
|
51
|
-
* Merge workspace and package configurations.
|
|
52
|
-
*
|
|
53
|
-
* Package config overrides workspace config.
|
|
54
|
-
*/
|
|
55
|
-
declare function mergeMonorepoConfigs(fs: FsAdapter, workspaceConfigPath: string | undefined, packageConfigPath: string | undefined): Promise<Record<string, unknown>>;
|
|
56
|
-
/**
|
|
57
|
-
* Format workspace info for display.
|
|
58
|
-
*/
|
|
59
|
-
declare function formatWorkspaceInfo(info: ExtendedWorkspaceInfo): string;
|
|
60
|
-
//#endregion
|
|
61
|
-
export { ExtendedWorkspaceInfo, MonorepoConfig, findAllConfigFiles, formatWorkspaceInfo, getExtendedWorkspaceInfo, mergeMonorepoConfigs };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
//#region src/templates/handler.template.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Generate handler implementation template
|
|
4
|
-
*/
|
|
5
|
-
declare function generateHandlerTemplate(specName: string, kind: 'command' | 'query'): string;
|
|
6
|
-
/**
|
|
7
|
-
* Generate component template
|
|
8
|
-
*/
|
|
9
|
-
declare function generateComponentTemplate(componentName: string, description: string): string;
|
|
10
|
-
/**
|
|
11
|
-
* Generate test template
|
|
12
|
-
*/
|
|
13
|
-
declare function generateTestTemplate(targetName: string, type: 'handler' | 'component'): string;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { generateComponentTemplate, generateHandlerTemplate, generateTestTemplate };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { generateOperationSpec } from "./operation.template.js";
|
|
2
|
-
import { generateEventSpec } from "./event.template.js";
|
|
3
|
-
import { generatePresentationSpec } from "./presentation.template.js";
|
|
4
|
-
import { generateWorkflowSpec } from "./workflow.template.js";
|
|
5
|
-
import { generateMigrationSpec } from "./migration.template.js";
|
|
6
|
-
import { generateTelemetrySpec } from "./telemetry.template.js";
|
|
7
|
-
import { generateExperimentSpec } from "./experiment.template.js";
|
|
8
|
-
import { generateAppBlueprintSpec } from "./app-config.template.js";
|
|
9
|
-
import { generateDataViewSpec } from "./data-view.template.js";
|
|
10
|
-
import { generateIntegrationSpec } from "./integration.template.js";
|
|
11
|
-
import { generateKnowledgeSpaceSpec } from "./knowledge.template.js";
|
|
12
|
-
import { generateComponentTemplate, generateHandlerTemplate, generateTestTemplate } from "./handler.template.js";
|
|
13
|
-
import { generateWorkflowRunnerTemplate } from "./workflow-runner.template.js";
|
|
14
|
-
|
|
15
|
-
//#region src/templates/index.d.ts
|
|
16
|
-
declare namespace index_d_exports {
|
|
17
|
-
export { generateAppBlueprintSpec, generateComponentTemplate, generateDataViewSpec, generateEventSpec, generateExperimentSpec, generateHandlerTemplate, generateIntegrationSpec, generateKnowledgeSpaceSpec, generateMigrationSpec, generateOperationSpec, generatePresentationSpec, generateTelemetrySpec, generateTestTemplate, generateWorkflowRunnerTemplate, generateWorkflowSpec };
|
|
18
|
-
}
|
|
19
|
-
//#endregion
|
|
20
|
-
export { index_d_exports };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { OperationSpecData } from "../types.js";
|
|
2
|
-
|
|
3
|
-
//#region src/templates/operation.template.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Generate operation spec TypeScript code
|
|
7
|
-
*/
|
|
8
|
-
declare function generateOperationSpec(data: OperationSpecData): string;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { generateOperationSpec };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { PresentationSpecData } from "../types.js";
|
|
2
|
-
|
|
3
|
-
//#region src/templates/presentation.template.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Generate presentation spec TypeScript code
|
|
7
|
-
*/
|
|
8
|
-
declare function generatePresentationSpec(data: PresentationSpecData): string;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { generatePresentationSpec };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
//#region src/templates/workflow-runner.template.d.ts
|
|
2
|
-
interface RunnerTemplateOptions {
|
|
3
|
-
exportName: string;
|
|
4
|
-
specImportPath: string;
|
|
5
|
-
runnerName: string;
|
|
6
|
-
workflowName: string;
|
|
7
|
-
}
|
|
8
|
-
declare function generateWorkflowRunnerTemplate({
|
|
9
|
-
exportName,
|
|
10
|
-
specImportPath,
|
|
11
|
-
runnerName,
|
|
12
|
-
workflowName
|
|
13
|
-
}: RunnerTemplateOptions): string;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { generateWorkflowRunnerTemplate };
|