@lssm/bundle.contractspec-workspace 0.0.0-canary-20251217083314 → 1.41.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/rolldown_runtime.js +1 -22
- package/dist/adapters/ai.js +1 -82
- package/dist/adapters/factory.js +1 -36
- package/dist/adapters/fs.js +1 -118
- package/dist/adapters/git.js +1 -54
- package/dist/adapters/index.js +1 -7
- package/dist/adapters/logger.js +1 -80
- package/dist/adapters/watcher.js +1 -69
- package/dist/adapters/workspace.js +2 -190
- package/dist/ai/agents/claude-code-agent.js +9 -146
- package/dist/ai/agents/cursor-agent.js +17 -286
- package/dist/ai/agents/index.js +1 -5
- package/dist/ai/agents/openai-codex-agent.js +8 -140
- package/dist/ai/agents/orchestrator.js +1 -142
- package/dist/ai/agents/simple-agent.js +4 -80
- package/dist/ai/client.js +1 -162
- package/dist/ai/index.js +1 -27
- package/dist/ai/prompts/code-generation.js +13 -55
- package/dist/ai/prompts/index.js +1 -12
- package/dist/ai/prompts/spec-creation.js +20 -61
- package/dist/ai/providers.js +1 -40
- package/dist/formatters/index.js +1 -18
- package/dist/formatters/json.js +1 -71
- package/dist/formatters/sarif.js +1 -163
- package/dist/formatters/text.js +2 -208
- package/dist/index.js +1 -81
- package/dist/services/agent-guide/adapters/claude-code.js +3 -144
- package/dist/services/agent-guide/adapters/cursor-cli.js +3 -135
- package/dist/services/agent-guide/adapters/generic-mcp.js +3 -159
- package/dist/services/agent-guide/adapters/index.js +1 -30
- package/dist/services/agent-guide/agent-guide-service.js +1 -148
- package/dist/services/agent-guide/index.js +1 -5
- package/dist/services/build.js +1 -140
- package/dist/services/ci-check/ci-check-service.js +1 -393
- package/dist/services/ci-check/index.js +1 -2
- package/dist/services/ci-check/types.js +1 -28
- package/dist/services/clean.js +1 -71
- package/dist/services/config.js +1 -76
- package/dist/services/deps.js +1 -62
- package/dist/services/diff.js +1 -33
- package/dist/services/doctor/checks/ai.js +2 -118
- package/dist/services/doctor/checks/cli.js +1 -146
- package/dist/services/doctor/checks/config.js +1 -170
- package/dist/services/doctor/checks/deps.js +1 -180
- package/dist/services/doctor/checks/index.js +1 -6
- package/dist/services/doctor/checks/mcp.js +1 -144
- package/dist/services/doctor/checks/workspace.js +1 -243
- package/dist/services/doctor/doctor-service.js +2 -115
- package/dist/services/doctor/index.js +1 -2
- package/dist/services/doctor/types.js +1 -26
- package/dist/services/implementation/discovery.js +2 -143
- package/dist/services/implementation/index.js +1 -2
- package/dist/services/implementation/resolver.js +1 -223
- package/dist/services/index.js +1 -53
- package/dist/services/integrity-diagram.js +6 -274
- package/dist/services/integrity.js +1 -272
- package/dist/services/list.js +1 -35
- package/dist/services/openapi/export-service.js +2 -51
- package/dist/services/openapi/import-service.js +1 -75
- package/dist/services/openapi/index.js +1 -4
- package/dist/services/openapi/sync-service.js +1 -121
- package/dist/services/openapi/validate-service.js +1 -130
- package/dist/services/regenerator.js +1 -23
- package/dist/services/registry.js +1 -73
- package/dist/services/setup/config-generators.js +26 -113
- package/dist/services/setup/file-merger.js +2 -60
- package/dist/services/setup/index.js +1 -4
- package/dist/services/setup/setup-service.js +1 -95
- package/dist/services/setup/targets/agents-md.js +1 -46
- package/dist/services/setup/targets/cli-config.js +1 -59
- package/dist/services/setup/targets/cursor-rules.js +1 -47
- package/dist/services/setup/targets/mcp-claude.js +1 -59
- package/dist/services/setup/targets/mcp-cursor.js +1 -58
- package/dist/services/setup/targets/vscode-settings.js +1 -62
- package/dist/services/setup/types.js +1 -26
- package/dist/services/sync.js +1 -62
- package/dist/services/test.js +1 -30
- package/dist/services/validate-implementation.js +1 -69
- package/dist/services/validate.js +1 -47
- package/dist/services/verification-cache/adapters/filesystem.js +1 -121
- package/dist/services/verification-cache/adapters/in-memory.js +1 -45
- package/dist/services/verification-cache/adapters/index.js +1 -3
- package/dist/services/verification-cache/adapters/workspace-state.js +1 -90
- package/dist/services/verification-cache/cache-service.js +1 -255
- package/dist/services/verification-cache/index.js +1 -6
- package/dist/services/verification-cache/types.js +1 -15
- package/dist/services/verify/ai-verifier.js +9 -336
- package/dist/services/verify/behavior-verifier.js +1 -185
- package/dist/services/verify/index.js +1 -4
- package/dist/services/verify/structure-verifier.js +2 -195
- package/dist/services/verify/verify-service.js +3 -203
- package/dist/services/watch.js +1 -31
- package/dist/services/workspace-info.js +2 -102
- package/dist/templates/app-config.template.js +28 -101
- package/dist/templates/data-view.template.js +27 -42
- package/dist/templates/event.template.js +14 -29
- package/dist/templates/experiment.template.js +51 -77
- package/dist/templates/handler.template.js +17 -53
- package/dist/templates/index.js +1 -36
- package/dist/templates/integration.template.js +50 -134
- package/dist/templates/knowledge.template.js +21 -62
- package/dist/templates/migration.template.js +26 -50
- package/dist/templates/operation.template.js +28 -44
- package/dist/templates/presentation.template.js +20 -46
- package/dist/templates/telemetry.template.js +53 -74
- package/dist/templates/workflow-runner.template.js +6 -12
- package/dist/templates/workflow.template.js +24 -51
- package/package.json +10 -15
- package/dist/adapters/ai.d.ts +0 -11
- package/dist/adapters/factory.d.ts +0 -28
- package/dist/adapters/fs.d.ts +0 -10
- package/dist/adapters/git.d.ts +0 -10
- package/dist/adapters/logger.d.ts +0 -17
- package/dist/adapters/watcher.d.ts +0 -10
- package/dist/adapters/workspace.d.ts +0 -93
- package/dist/ai/agents/claude-code-agent.d.ts +0 -21
- package/dist/ai/agents/cursor-agent.d.ts +0 -67
- package/dist/ai/agents/openai-codex-agent.d.ts +0 -21
- package/dist/ai/agents/orchestrator.d.ts +0 -49
- package/dist/ai/agents/simple-agent.d.ts +0 -16
- package/dist/ai/agents/types.d.ts +0 -35
- package/dist/ai/client.d.ts +0 -82
- package/dist/ai/index.d.ts +0 -16
- package/dist/ai/prompts/code-generation.d.ts +0 -25
- package/dist/ai/prompts/index.d.ts +0 -9
- package/dist/ai/prompts/spec-creation.d.ts +0 -28
- package/dist/ai/providers.d.ts +0 -28
- package/dist/formatters/index.d.ts +0 -10
- package/dist/formatters/json.d.ts +0 -88
- package/dist/formatters/sarif.d.ts +0 -100
- package/dist/formatters/text.d.ts +0 -34
- package/dist/index.d.ts +0 -66
- package/dist/libs/ai-providers/dist/factory.js +0 -154
- package/dist/libs/ai-providers/dist/index.js +0 -4
- package/dist/libs/ai-providers/dist/legacy.js +0 -72
- package/dist/libs/ai-providers/dist/models.js +0 -287
- package/dist/libs/ai-providers/dist/validation.js +0 -1
- package/dist/libs/contracts/dist/capabilities/openbanking.js +0 -88
- package/dist/libs/contracts/dist/client/index.js +0 -5
- package/dist/libs/contracts/dist/client/react/feature-render.js +0 -2
- package/dist/libs/contracts/dist/client/react/form-render.js +0 -4
- package/dist/libs/contracts/dist/client/react/index.js +0 -4
- package/dist/libs/contracts/dist/contract-registry/index.js +0 -1
- package/dist/libs/contracts/dist/contract-registry/schemas.js +0 -60
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/index.js +0 -29
- package/dist/libs/contracts/dist/docs/presentations.js +0 -71
- package/dist/libs/contracts/dist/docs/registry.js +0 -44
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -80
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -57
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -357
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -37
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -20
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -48
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -79
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -84
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -45
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -67
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -40
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -69
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -47
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -62
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -155
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -20
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -101
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -20
- package/dist/libs/contracts/dist/events.js +0 -8
- package/dist/libs/contracts/dist/experiments/evaluator.js +0 -1
- package/dist/libs/contracts/dist/index.js +0 -72
- package/dist/libs/contracts/dist/install.js +0 -2
- package/dist/libs/contracts/dist/integrations/contracts.js +0 -377
- package/dist/libs/contracts/dist/integrations/index.js +0 -18
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -228
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +0 -159
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +0 -3
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -210
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +0 -242
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +0 -13
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +0 -52
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +0 -75
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +0 -87
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +0 -66
- package/dist/libs/contracts/dist/integrations/providers/index.js +0 -11
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +0 -68
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +0 -68
- package/dist/libs/contracts/dist/integrations/providers/powens.js +0 -116
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +0 -73
- package/dist/libs/contracts/dist/integrations/providers/registry.js +0 -10
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +0 -83
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +0 -61
- package/dist/libs/contracts/dist/jsonschema.js +0 -24
- package/dist/libs/contracts/dist/knowledge/contracts.js +0 -306
- package/dist/libs/contracts/dist/knowledge/index.js +0 -7
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +0 -34
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +0 -34
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +0 -38
- package/dist/libs/contracts/dist/knowledge/spaces/index.js +0 -6
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +0 -34
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +0 -37
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +0 -34
- package/dist/libs/contracts/dist/llm/exporters.js +0 -352
- package/dist/libs/contracts/dist/llm/index.js +0 -2
- package/dist/libs/contracts/dist/llm/prompts.js +0 -211
- package/dist/libs/contracts/dist/onboarding-base.js +0 -196
- package/dist/libs/contracts/dist/openapi.js +0 -75
- package/dist/libs/contracts/dist/ownership.js +0 -21
- package/dist/libs/contracts/dist/presentations.js +0 -1
- package/dist/libs/contracts/dist/presentations.v2.js +0 -11
- package/dist/libs/contracts/dist/prompt.js +0 -1
- package/dist/libs/contracts/dist/promptRegistry.js +0 -1
- package/dist/libs/contracts/dist/regenerator/index.js +0 -2
- package/dist/libs/contracts/dist/regenerator/service.js +0 -92
- package/dist/libs/contracts/dist/regenerator/utils.js +0 -51
- package/dist/libs/contracts/dist/registry.js +0 -208
- package/dist/libs/contracts/dist/resources.js +0 -1
- package/dist/libs/contracts/dist/schema/dist/EnumType.js +0 -2
- package/dist/libs/contracts/dist/schema/dist/FieldType.js +0 -49
- package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -236
- package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +0 -34
- package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
- package/dist/libs/contracts/dist/schema/dist/entity/index.js +0 -2
- package/dist/libs/contracts/dist/schema/dist/entity/types.js +0 -1
- package/dist/libs/contracts/dist/schema/dist/index.js +0 -6
- package/dist/libs/contracts/dist/server/graphql-pothos.js +0 -6
- package/dist/libs/contracts/dist/server/index.js +0 -8
- package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +0 -4
- package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +0 -2
- package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +0 -1
- package/dist/libs/contracts/dist/server/mcp/registerResources.js +0 -2
- package/dist/libs/contracts/dist/server/mcp/registerTools.js +0 -1
- package/dist/libs/contracts/dist/server/provider-mcp.js +0 -1
- package/dist/libs/contracts/dist/server/rest-elysia.js +0 -1
- package/dist/libs/contracts/dist/server/rest-express.js +0 -1
- package/dist/libs/contracts/dist/server/rest-generic.js +0 -1
- package/dist/libs/contracts/dist/server/rest-next-app.js +0 -1
- package/dist/libs/contracts/dist/server/rest-next-pages.js +0 -1
- package/dist/libs/contracts/dist/spec.js +0 -35
- package/dist/libs/contracts/dist/telemetry/index.js +0 -1
- package/dist/libs/contracts/dist/telemetry/tracker.js +0 -1
- package/dist/libs/contracts/dist/tests/index.js +0 -1
- package/dist/libs/contracts/dist/tests/runner.js +0 -150
- package/dist/libs/contracts/dist/workflow/index.js +0 -1
- package/dist/libs/contracts/dist/workflow/runner.js +0 -1
- package/dist/libs/contracts-transformers/dist/common/utils.js +0 -47
- package/dist/libs/contracts-transformers/dist/openapi/exporter.js +0 -1
- package/dist/libs/contracts-transformers/dist/openapi/importer.js +0 -255
- package/dist/libs/contracts-transformers/dist/openapi/index.js +0 -4
- package/dist/libs/contracts-transformers/dist/openapi/parser.js +0 -231
- package/dist/libs/contracts-transformers/dist/openapi/schema-converter.js +0 -201
- package/dist/modules/contractspec-workspace/dist/ai/code-generation.js +0 -137
- package/dist/modules/contractspec-workspace/dist/ai/spec-creation.js +0 -101
- package/dist/modules/contractspec-workspace/dist/analysis/deps/graph.js +0 -84
- package/dist/modules/contractspec-workspace/dist/analysis/deps/parse-imports.js +0 -30
- package/dist/modules/contractspec-workspace/dist/analysis/diff/semantic.js +0 -96
- package/dist/modules/contractspec-workspace/dist/analysis/feature-scan.js +0 -151
- package/dist/modules/contractspec-workspace/dist/analysis/spec-scan.js +0 -344
- package/dist/modules/contractspec-workspace/dist/analysis/validate/spec-structure.js +0 -122
- package/dist/modules/contractspec-workspace/dist/templates/app-config.js +0 -105
- package/dist/modules/contractspec-workspace/dist/templates/data-view.js +0 -68
- package/dist/modules/contractspec-workspace/dist/templates/event.js +0 -38
- package/dist/modules/contractspec-workspace/dist/templates/experiment.js +0 -87
- package/dist/modules/contractspec-workspace/dist/templates/handler.js +0 -95
- package/dist/modules/contractspec-workspace/dist/templates/integration-utils.js +0 -104
- package/dist/modules/contractspec-workspace/dist/templates/integration.js +0 -62
- package/dist/modules/contractspec-workspace/dist/templates/knowledge.js +0 -68
- package/dist/modules/contractspec-workspace/dist/templates/migration.js +0 -60
- package/dist/modules/contractspec-workspace/dist/templates/operation.js +0 -100
- package/dist/modules/contractspec-workspace/dist/templates/presentation.js +0 -78
- package/dist/modules/contractspec-workspace/dist/templates/telemetry.js +0 -89
- package/dist/modules/contractspec-workspace/dist/templates/utils.js +0 -38
- package/dist/modules/contractspec-workspace/dist/templates/workflow-runner.js +0 -48
- package/dist/modules/contractspec-workspace/dist/templates/workflow.js +0 -67
- package/dist/modules/contractspec-workspace/dist/types/generation-types.js +0 -20
- package/dist/ports/ai.d.ts +0 -58
- package/dist/ports/fs.d.ts +0 -80
- package/dist/ports/git.d.ts +0 -32
- package/dist/ports/logger.d.ts +0 -87
- package/dist/ports/watcher.d.ts +0 -51
- package/dist/services/agent-guide/adapters/claude-code.d.ts +0 -34
- package/dist/services/agent-guide/adapters/cursor-cli.d.ts +0 -38
- package/dist/services/agent-guide/adapters/generic-mcp.d.ts +0 -52
- package/dist/services/agent-guide/adapters/index.d.ts +0 -22
- package/dist/services/agent-guide/agent-guide-service.d.ts +0 -55
- package/dist/services/agent-guide/types.d.ts +0 -57
- package/dist/services/build.d.ts +0 -58
- package/dist/services/ci-check/ci-check-service.d.ts +0 -15
- package/dist/services/ci-check/types.d.ts +0 -142
- package/dist/services/clean.d.ts +0 -40
- package/dist/services/config.d.ts +0 -25
- package/dist/services/deps.d.ts +0 -52
- package/dist/services/diff.d.ts +0 -33
- package/dist/services/doctor/doctor-service.d.ts +0 -23
- package/dist/services/doctor/types.d.ts +0 -117
- package/dist/services/implementation/discovery.d.ts +0 -29
- package/dist/services/implementation/resolver.d.ts +0 -43
- package/dist/services/implementation/types.d.ts +0 -78
- package/dist/services/integrity-diagram.d.ts +0 -35
- package/dist/services/integrity.d.ts +0 -133
- package/dist/services/list.d.ts +0 -30
- package/dist/services/openapi/export-service.d.ts +0 -52
- package/dist/services/openapi/import-service.d.ts +0 -15
- package/dist/services/openapi/sync-service.d.ts +0 -18
- package/dist/services/openapi/types.d.ts +0 -184
- package/dist/services/openapi/validate-service.d.ts +0 -15
- package/dist/services/regenerator.d.ts +0 -17
- package/dist/services/registry.d.ts +0 -52
- package/dist/services/setup/config-generators.d.ts +0 -41
- package/dist/services/setup/file-merger.d.ts +0 -26
- package/dist/services/setup/setup-service.d.ts +0 -11
- package/dist/services/setup/types.d.ts +0 -84
- package/dist/services/sync.d.ts +0 -40
- package/dist/services/test.d.ts +0 -14
- package/dist/services/validate-implementation.d.ts +0 -31
- package/dist/services/validate.d.ts +0 -40
- package/dist/services/verification-cache/adapters/filesystem.d.ts +0 -45
- package/dist/services/verification-cache/adapters/in-memory.d.ts +0 -26
- package/dist/services/verification-cache/adapters/workspace-state.d.ts +0 -48
- package/dist/services/verification-cache/cache-service.d.ts +0 -69
- package/dist/services/verification-cache/types.d.ts +0 -123
- package/dist/services/verify/ai-verifier.d.ts +0 -24
- package/dist/services/verify/behavior-verifier.d.ts +0 -11
- package/dist/services/verify/structure-verifier.d.ts +0 -11
- package/dist/services/verify/types.d.ts +0 -136
- package/dist/services/verify/verify-service.d.ts +0 -59
- package/dist/services/watch.d.ts +0 -24
- package/dist/services/workspace-info.d.ts +0 -61
- package/dist/templates/app-config.template.d.ts +0 -6
- package/dist/templates/data-view.template.d.ts +0 -6
- package/dist/templates/event.template.d.ts +0 -10
- package/dist/templates/experiment.template.d.ts +0 -6
- package/dist/templates/handler.template.d.ts +0 -15
- package/dist/templates/index.d.ts +0 -20
- package/dist/templates/integration.template.d.ts +0 -6
- package/dist/templates/knowledge.template.d.ts +0 -6
- package/dist/templates/migration.template.d.ts +0 -6
- package/dist/templates/operation.template.d.ts +0 -10
- package/dist/templates/presentation.template.d.ts +0 -10
- package/dist/templates/telemetry.template.d.ts +0 -6
- package/dist/templates/workflow-runner.template.d.ts +0 -15
- package/dist/templates/workflow.template.d.ts +0 -6
- package/dist/types/config.d.ts +0 -33
- package/dist/types.d.ts +0 -323
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { AgentAdapter } from "../types.js";
|
|
2
|
-
import { AnyContractSpec } from "@lssm/lib.contracts";
|
|
3
|
-
import { AgentPrompt, ImplementationPlan } from "@lssm/lib.contracts/llm";
|
|
4
|
-
|
|
5
|
-
//#region src/services/agent-guide/adapters/generic-mcp.d.ts
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Generic MCP adapter implementation.
|
|
9
|
-
* Works with any MCP-compatible agent (Cline, Aider, etc.).
|
|
10
|
-
*/
|
|
11
|
-
declare class GenericMCPAdapter implements AgentAdapter {
|
|
12
|
-
agentType: "generic-mcp";
|
|
13
|
-
/**
|
|
14
|
-
* Format an implementation plan for generic MCP agents.
|
|
15
|
-
* Uses a standard markdown format that works across different agents.
|
|
16
|
-
*/
|
|
17
|
-
formatPlan(plan: ImplementationPlan): AgentPrompt;
|
|
18
|
-
/**
|
|
19
|
-
* Format the plan as an MCP resource.
|
|
20
|
-
* Returns JSON that can be served as an MCP resource.
|
|
21
|
-
*/
|
|
22
|
-
formatAsResource(plan: ImplementationPlan): {
|
|
23
|
-
uri: string;
|
|
24
|
-
mimeType: string;
|
|
25
|
-
data: string;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Format the plan as an MCP prompt message.
|
|
29
|
-
*/
|
|
30
|
-
formatAsPromptMessage(plan: ImplementationPlan): {
|
|
31
|
-
role: 'user' | 'assistant';
|
|
32
|
-
content: {
|
|
33
|
-
type: 'text';
|
|
34
|
-
text: string;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* Generate configuration (generic markdown for any agent).
|
|
39
|
-
*/
|
|
40
|
-
generateConfig(spec: AnyContractSpec): string;
|
|
41
|
-
/**
|
|
42
|
-
* Parse agent output - generic implementation.
|
|
43
|
-
*/
|
|
44
|
-
parseOutput(output: string): {
|
|
45
|
-
code?: string;
|
|
46
|
-
errors?: string[];
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
/** Singleton instance */
|
|
50
|
-
declare const genericMCPAdapter: GenericMCPAdapter;
|
|
51
|
-
//#endregion
|
|
52
|
-
export { GenericMCPAdapter, genericMCPAdapter };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { AgentAdapter } from "../types.js";
|
|
2
|
-
import { ClaudeCodeAdapter, claudeCodeAdapter } from "./claude-code.js";
|
|
3
|
-
import { CursorCLIAdapter, cursorCLIAdapter } from "./cursor-cli.js";
|
|
4
|
-
import { GenericMCPAdapter, genericMCPAdapter } from "./generic-mcp.js";
|
|
5
|
-
import { AgentType } from "@lssm/lib.contracts/llm";
|
|
6
|
-
|
|
7
|
-
//#region src/services/agent-guide/adapters/index.d.ts
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Registry of all available agent adapters.
|
|
11
|
-
*/
|
|
12
|
-
declare const agentAdapters: Record<AgentType, AgentAdapter>;
|
|
13
|
-
/**
|
|
14
|
-
* Get an adapter for a specific agent type.
|
|
15
|
-
*/
|
|
16
|
-
declare function getAgentAdapter(agent: AgentType): AgentAdapter;
|
|
17
|
-
/**
|
|
18
|
-
* List all available agent types.
|
|
19
|
-
*/
|
|
20
|
-
declare function listAgentTypes(): AgentType[];
|
|
21
|
-
//#endregion
|
|
22
|
-
export { agentAdapters, getAgentAdapter, listAgentTypes };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { AgentGuideConfig, GuideOptions, GuideResult } from "./types.js";
|
|
2
|
-
import { AnyContractSpec, PresentationRegistry, SpecRegistry } from "@lssm/lib.contracts";
|
|
3
|
-
import { AgentType } from "@lssm/lib.contracts/llm";
|
|
4
|
-
import { FeatureModuleSpec } from "@lssm/lib.contracts/features";
|
|
5
|
-
|
|
6
|
-
//#region src/services/agent-guide/agent-guide-service.d.ts
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Agent Guide Service
|
|
10
|
-
*
|
|
11
|
-
* Main service for generating implementation guidance for AI coding agents.
|
|
12
|
-
*/
|
|
13
|
-
declare class AgentGuideService {
|
|
14
|
-
private config;
|
|
15
|
-
constructor(config?: Partial<AgentGuideConfig>);
|
|
16
|
-
/**
|
|
17
|
-
* Generate an implementation guide for a spec.
|
|
18
|
-
*/
|
|
19
|
-
generateGuide(spec: AnyContractSpec, options?: GuideOptions): GuideResult;
|
|
20
|
-
/**
|
|
21
|
-
* Generate a guide for a feature (includes all related specs).
|
|
22
|
-
*/
|
|
23
|
-
generateFeatureGuide(feature: FeatureModuleSpec, deps: {
|
|
24
|
-
specs?: SpecRegistry;
|
|
25
|
-
presentations?: PresentationRegistry;
|
|
26
|
-
}, options?: GuideOptions): GuideResult;
|
|
27
|
-
/**
|
|
28
|
-
* Generate agent-specific configuration (e.g., cursor rules).
|
|
29
|
-
*/
|
|
30
|
-
generateAgentConfig(spec: AnyContractSpec, agent?: AgentType): string | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* Export a spec in a specific format for an agent.
|
|
33
|
-
*/
|
|
34
|
-
exportForAgent(spec: AnyContractSpec, agent: AgentType, taskType?: 'implement' | 'test' | 'refactor' | 'review', existingCode?: string): string;
|
|
35
|
-
/**
|
|
36
|
-
* List available agent types.
|
|
37
|
-
*/
|
|
38
|
-
listAgentTypes(): AgentType[];
|
|
39
|
-
/**
|
|
40
|
-
* Get the default agent type.
|
|
41
|
-
*/
|
|
42
|
-
getDefaultAgent(): AgentType;
|
|
43
|
-
/**
|
|
44
|
-
* Update configuration.
|
|
45
|
-
*/
|
|
46
|
-
configure(config: Partial<AgentGuideConfig>): void;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Create a new AgentGuideService instance.
|
|
50
|
-
*/
|
|
51
|
-
declare function createAgentGuideService(config?: Partial<AgentGuideConfig>): AgentGuideService;
|
|
52
|
-
/** Default singleton instance */
|
|
53
|
-
declare const agentGuideService: AgentGuideService;
|
|
54
|
-
//#endregion
|
|
55
|
-
export { AgentGuideService, agentGuideService, createAgentGuideService };
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { AnyContractSpec } from "@lssm/lib.contracts";
|
|
2
|
-
import { AgentPrompt, AgentType, ImplementationPlan } from "@lssm/lib.contracts/llm";
|
|
3
|
-
|
|
4
|
-
//#region src/services/agent-guide/types.d.ts
|
|
5
|
-
|
|
6
|
-
/** Configuration for the agent guide service */
|
|
7
|
-
interface AgentGuideConfig {
|
|
8
|
-
/** Default agent to use if not specified */
|
|
9
|
-
defaultAgent: AgentType;
|
|
10
|
-
/** Project root path */
|
|
11
|
-
projectRoot?: string;
|
|
12
|
-
/** Enable verbose logging */
|
|
13
|
-
verbose?: boolean;
|
|
14
|
-
}
|
|
15
|
-
/** Options for generating an implementation guide */
|
|
16
|
-
interface GuideOptions {
|
|
17
|
-
/** Target agent type */
|
|
18
|
-
agent?: AgentType;
|
|
19
|
-
/** Existing code to consider */
|
|
20
|
-
existingCode?: string;
|
|
21
|
-
/** Target file path for implementation */
|
|
22
|
-
targetPath?: string;
|
|
23
|
-
/** Include related specs */
|
|
24
|
-
includeRelated?: boolean;
|
|
25
|
-
}
|
|
26
|
-
/** Options for formatting output */
|
|
27
|
-
interface FormatOptions {
|
|
28
|
-
/** Output format */
|
|
29
|
-
format: 'markdown' | 'json' | 'cursor-rules';
|
|
30
|
-
/** Include system prompt */
|
|
31
|
-
includeSystemPrompt?: boolean;
|
|
32
|
-
}
|
|
33
|
-
/** Result of generating a guide */
|
|
34
|
-
interface GuideResult {
|
|
35
|
-
/** The generated plan */
|
|
36
|
-
plan: ImplementationPlan;
|
|
37
|
-
/** Formatted prompt for the target agent */
|
|
38
|
-
prompt: AgentPrompt;
|
|
39
|
-
/** Raw markdown for clipboard/export */
|
|
40
|
-
markdown: string;
|
|
41
|
-
}
|
|
42
|
-
/** Adapter interface for specific agent types */
|
|
43
|
-
interface AgentAdapter {
|
|
44
|
-
/** Agent type this adapter handles */
|
|
45
|
-
agentType: AgentType;
|
|
46
|
-
/** Format a plan for this agent */
|
|
47
|
-
formatPlan(plan: ImplementationPlan): AgentPrompt;
|
|
48
|
-
/** Generate agent-specific configuration (e.g., cursor rules) */
|
|
49
|
-
generateConfig?(spec: AnyContractSpec): string;
|
|
50
|
-
/** Parse agent output to extract code */
|
|
51
|
-
parseOutput?(output: string): {
|
|
52
|
-
code?: string;
|
|
53
|
-
errors?: string[];
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
//#endregion
|
|
57
|
-
export { AgentAdapter, AgentGuideConfig, FormatOptions, GuideOptions, GuideResult };
|
package/dist/services/build.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { FsAdapter } from "../ports/fs.js";
|
|
2
|
-
import { LoggerAdapter } from "../ports/logger.js";
|
|
3
|
-
import { SpecScanResult, WorkspaceConfig } from "@lssm/module.contractspec-workspace";
|
|
4
|
-
|
|
5
|
-
//#region src/services/build.d.ts
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Build target types.
|
|
9
|
-
*/
|
|
10
|
-
type BuildTarget = 'handler' | 'component' | 'test';
|
|
11
|
-
/**
|
|
12
|
-
* Options for building from a spec.
|
|
13
|
-
*/
|
|
14
|
-
interface BuildSpecOptions {
|
|
15
|
-
/**
|
|
16
|
-
* Which artifacts to generate.
|
|
17
|
-
*/
|
|
18
|
-
targets?: BuildTarget[];
|
|
19
|
-
/**
|
|
20
|
-
* Override output directory.
|
|
21
|
-
*/
|
|
22
|
-
outputDir?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Whether to overwrite existing files.
|
|
25
|
-
*/
|
|
26
|
-
overwrite?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Skip writing files (dry run).
|
|
29
|
-
*/
|
|
30
|
-
dryRun?: boolean;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Result of a single build target.
|
|
34
|
-
*/
|
|
35
|
-
interface BuildTargetResult {
|
|
36
|
-
target: BuildTarget;
|
|
37
|
-
outputPath: string;
|
|
38
|
-
success: boolean;
|
|
39
|
-
skipped?: boolean;
|
|
40
|
-
error?: string;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Result of building from a spec.
|
|
44
|
-
*/
|
|
45
|
-
interface BuildSpecResult {
|
|
46
|
-
specPath: string;
|
|
47
|
-
specInfo: SpecScanResult;
|
|
48
|
-
results: BuildTargetResult[];
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Build implementation files from a spec.
|
|
52
|
-
*/
|
|
53
|
-
declare function buildSpec(specPath: string, adapters: {
|
|
54
|
-
fs: FsAdapter;
|
|
55
|
-
logger: LoggerAdapter;
|
|
56
|
-
}, config: WorkspaceConfig, options?: BuildSpecOptions): Promise<BuildSpecResult>;
|
|
57
|
-
//#endregion
|
|
58
|
-
export { BuildSpecOptions, BuildSpecResult, BuildTarget, BuildTargetResult, buildSpec };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FsAdapter } from "../../ports/fs.js";
|
|
2
|
-
import { LoggerAdapter } from "../../ports/logger.js";
|
|
3
|
-
import { CICheckOptions, CICheckResult } from "./types.js";
|
|
4
|
-
|
|
5
|
-
//#region src/services/ci-check/ci-check-service.d.ts
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Run all CI checks and return structured results.
|
|
9
|
-
*/
|
|
10
|
-
declare function runCIChecks(adapters: {
|
|
11
|
-
fs: FsAdapter;
|
|
12
|
-
logger: LoggerAdapter;
|
|
13
|
-
}, options?: CICheckOptions): Promise<CICheckResult>;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { runCIChecks };
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
//#region src/services/ci-check/types.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* CI Check service types.
|
|
4
|
-
*
|
|
5
|
-
* Types for CI/CD validation checks with support for multiple output formats.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Categories of CI checks.
|
|
9
|
-
*/
|
|
10
|
-
type CICheckCategory = 'structure' | 'integrity' | 'deps' | 'doctor' | 'handlers' | 'tests' | 'implementation';
|
|
11
|
-
/**
|
|
12
|
-
* All available CI check categories.
|
|
13
|
-
*/
|
|
14
|
-
declare const ALL_CI_CHECK_CATEGORIES: CICheckCategory[];
|
|
15
|
-
/**
|
|
16
|
-
* Human-readable labels for CI check categories.
|
|
17
|
-
*/
|
|
18
|
-
declare const CI_CHECK_CATEGORY_LABELS: Record<CICheckCategory, string>;
|
|
19
|
-
/**
|
|
20
|
-
* Severity of a CI check issue.
|
|
21
|
-
*/
|
|
22
|
-
type CIIssueSeverity = 'error' | 'warning' | 'note';
|
|
23
|
-
/**
|
|
24
|
-
* A single issue found during CI checks.
|
|
25
|
-
*/
|
|
26
|
-
interface CIIssue {
|
|
27
|
-
/** Unique ID for the issue type. */
|
|
28
|
-
ruleId: string;
|
|
29
|
-
/** Severity level. */
|
|
30
|
-
severity: CIIssueSeverity;
|
|
31
|
-
/** Human-readable message. */
|
|
32
|
-
message: string;
|
|
33
|
-
/** Category of the check. */
|
|
34
|
-
category: CICheckCategory;
|
|
35
|
-
/** File path where the issue was found. */
|
|
36
|
-
file?: string;
|
|
37
|
-
/** Line number (1-based). */
|
|
38
|
-
line?: number;
|
|
39
|
-
/** Column number (1-based). */
|
|
40
|
-
column?: number;
|
|
41
|
-
/** End line number (1-based). */
|
|
42
|
-
endLine?: number;
|
|
43
|
-
/** End column number (1-based). */
|
|
44
|
-
endColumn?: number;
|
|
45
|
-
/** Additional context. */
|
|
46
|
-
context?: Record<string, unknown>;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Summary statistics for a CI check category.
|
|
50
|
-
*/
|
|
51
|
-
interface CICheckCategorySummary {
|
|
52
|
-
/** Category name. */
|
|
53
|
-
category: CICheckCategory;
|
|
54
|
-
/** Human-readable label. */
|
|
55
|
-
label: string;
|
|
56
|
-
/** Number of errors. */
|
|
57
|
-
errors: number;
|
|
58
|
-
/** Number of warnings. */
|
|
59
|
-
warnings: number;
|
|
60
|
-
/** Number of notes. */
|
|
61
|
-
notes: number;
|
|
62
|
-
/** Whether this category passed. */
|
|
63
|
-
passed: boolean;
|
|
64
|
-
/** Duration in milliseconds. */
|
|
65
|
-
durationMs: number;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Overall CI check result.
|
|
69
|
-
*/
|
|
70
|
-
interface CICheckResult {
|
|
71
|
-
/** Whether all checks passed (no errors). */
|
|
72
|
-
success: boolean;
|
|
73
|
-
/** Total number of errors. */
|
|
74
|
-
totalErrors: number;
|
|
75
|
-
/** Total number of warnings. */
|
|
76
|
-
totalWarnings: number;
|
|
77
|
-
/** Total number of notes. */
|
|
78
|
-
totalNotes: number;
|
|
79
|
-
/** All issues found. */
|
|
80
|
-
issues: CIIssue[];
|
|
81
|
-
/** Summary by category. */
|
|
82
|
-
categories: CICheckCategorySummary[];
|
|
83
|
-
/** Total duration in milliseconds. */
|
|
84
|
-
durationMs: number;
|
|
85
|
-
/** Timestamp when the check was run. */
|
|
86
|
-
timestamp: string;
|
|
87
|
-
/** Git commit SHA if available. */
|
|
88
|
-
commitSha?: string;
|
|
89
|
-
/** Git branch if available. */
|
|
90
|
-
branch?: string;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Options for running CI checks.
|
|
94
|
-
*/
|
|
95
|
-
interface CICheckOptions {
|
|
96
|
-
/** Glob pattern for spec discovery. */
|
|
97
|
-
pattern?: string;
|
|
98
|
-
/** Check categories to run (defaults to all). */
|
|
99
|
-
checks?: CICheckCategory[];
|
|
100
|
-
/** Skip specific categories. */
|
|
101
|
-
skip?: CICheckCategory[];
|
|
102
|
-
/** Include handler existence checks. */
|
|
103
|
-
checkHandlers?: boolean;
|
|
104
|
-
/** Include test coverage checks. */
|
|
105
|
-
checkTests?: boolean;
|
|
106
|
-
/** Fail on warnings (treat warnings as errors). */
|
|
107
|
-
failOnWarnings?: boolean;
|
|
108
|
-
/** Workspace root directory. */
|
|
109
|
-
workspaceRoot?: string;
|
|
110
|
-
/** Implementation check options. */
|
|
111
|
-
implementation?: {
|
|
112
|
-
/** Require all specs to be implemented. */
|
|
113
|
-
requireImplemented?: boolean;
|
|
114
|
-
/** Verification tier to run. */
|
|
115
|
-
verificationTier?: 'structure' | 'behavior' | 'ai';
|
|
116
|
-
/** Use cache for verification results. */
|
|
117
|
-
useCache?: boolean;
|
|
118
|
-
/** Allow partial implementations. */
|
|
119
|
-
allowPartial?: boolean;
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Output format for CI check results.
|
|
124
|
-
*/
|
|
125
|
-
type CIOutputFormat = 'text' | 'json' | 'sarif';
|
|
126
|
-
/**
|
|
127
|
-
* Options for formatting CI check output.
|
|
128
|
-
*/
|
|
129
|
-
interface CIFormatOptions {
|
|
130
|
-
/** Output format. */
|
|
131
|
-
format: CIOutputFormat;
|
|
132
|
-
/** Whether to use colors (for text format). */
|
|
133
|
-
colors?: boolean;
|
|
134
|
-
/** Tool name for SARIF output. */
|
|
135
|
-
toolName?: string;
|
|
136
|
-
/** Tool version for SARIF output. */
|
|
137
|
-
toolVersion?: string;
|
|
138
|
-
/** Repository URI for SARIF output. */
|
|
139
|
-
repositoryUri?: string;
|
|
140
|
-
}
|
|
141
|
-
//#endregion
|
|
142
|
-
export { ALL_CI_CHECK_CATEGORIES, CICheckCategory, CICheckCategorySummary, CICheckOptions, CICheckResult, CIFormatOptions, CIIssue, CIIssueSeverity, CIOutputFormat, CI_CHECK_CATEGORY_LABELS };
|
package/dist/services/clean.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { FsAdapter } from "../ports/fs.js";
|
|
2
|
-
import { LoggerAdapter } from "../ports/logger.js";
|
|
3
|
-
|
|
4
|
-
//#region src/services/clean.d.ts
|
|
5
|
-
|
|
6
|
-
interface CleanOptions {
|
|
7
|
-
/**
|
|
8
|
-
* When true, only remove known build artifact directories and known generated
|
|
9
|
-
* suffixes (safe-by-default).
|
|
10
|
-
*/
|
|
11
|
-
generatedOnly?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Skip deletions; just report.
|
|
14
|
-
*/
|
|
15
|
-
dryRun?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Only delete files older than this many days.
|
|
18
|
-
*/
|
|
19
|
-
olderThanDays?: number;
|
|
20
|
-
/**
|
|
21
|
-
* Output directory used for generated artifacts (handlers/components/forms).
|
|
22
|
-
*/
|
|
23
|
-
outputDir?: string;
|
|
24
|
-
}
|
|
25
|
-
interface CleanResult {
|
|
26
|
-
removed: {
|
|
27
|
-
path: string;
|
|
28
|
-
size: number;
|
|
29
|
-
}[];
|
|
30
|
-
skipped: {
|
|
31
|
-
path: string;
|
|
32
|
-
reason: string;
|
|
33
|
-
}[];
|
|
34
|
-
}
|
|
35
|
-
declare function cleanArtifacts(adapters: {
|
|
36
|
-
fs: FsAdapter;
|
|
37
|
-
logger: LoggerAdapter;
|
|
38
|
-
}, options?: CleanOptions): Promise<CleanResult>;
|
|
39
|
-
//#endregion
|
|
40
|
-
export { CleanOptions, CleanResult, cleanArtifacts };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { FsAdapter } from "../ports/fs.js";
|
|
2
|
-
import { WorkspaceConfig } from "@lssm/module.contractspec-workspace";
|
|
3
|
-
|
|
4
|
-
//#region src/services/config.d.ts
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Load workspace configuration from .contractsrc.json.
|
|
8
|
-
*/
|
|
9
|
-
declare function loadWorkspaceConfig(fs: FsAdapter, cwd?: string): Promise<WorkspaceConfig>;
|
|
10
|
-
/**
|
|
11
|
-
* Merge config with CLI options and environment variables.
|
|
12
|
-
*/
|
|
13
|
-
declare function mergeWorkspaceConfig(config: WorkspaceConfig, options: {
|
|
14
|
-
provider?: string;
|
|
15
|
-
model?: string;
|
|
16
|
-
agentMode?: string;
|
|
17
|
-
endpoint?: string;
|
|
18
|
-
outputDir?: string;
|
|
19
|
-
}): WorkspaceConfig;
|
|
20
|
-
/**
|
|
21
|
-
* Get API key for the configured provider.
|
|
22
|
-
*/
|
|
23
|
-
declare function getApiKey(provider: WorkspaceConfig['aiProvider']): string | undefined;
|
|
24
|
-
//#endregion
|
|
25
|
-
export { getApiKey, loadWorkspaceConfig, mergeWorkspaceConfig };
|
package/dist/services/deps.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { FsAdapter } from "../ports/fs.js";
|
|
2
|
-
import { ContractGraph, ContractNode } from "@lssm/module.contractspec-workspace";
|
|
3
|
-
|
|
4
|
-
//#region src/services/deps.d.ts
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Options for dependency analysis.
|
|
8
|
-
*/
|
|
9
|
-
interface AnalyzeDepsOptions {
|
|
10
|
-
/**
|
|
11
|
-
* File pattern to search.
|
|
12
|
-
*/
|
|
13
|
-
pattern?: string;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Result of dependency analysis.
|
|
17
|
-
*/
|
|
18
|
-
interface AnalyzeDepsResult {
|
|
19
|
-
graph: ContractGraph;
|
|
20
|
-
total: number;
|
|
21
|
-
cycles: string[][];
|
|
22
|
-
missing: {
|
|
23
|
-
contract: string;
|
|
24
|
-
missing: string[];
|
|
25
|
-
}[];
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Analyze contract dependencies.
|
|
29
|
-
*/
|
|
30
|
-
declare function analyzeDeps(adapters: {
|
|
31
|
-
fs: FsAdapter;
|
|
32
|
-
}, options?: AnalyzeDepsOptions): Promise<AnalyzeDepsResult>;
|
|
33
|
-
/**
|
|
34
|
-
* Get contract node by name.
|
|
35
|
-
*/
|
|
36
|
-
declare function getContractNode(graph: ContractGraph, name: string): ContractNode | undefined;
|
|
37
|
-
/**
|
|
38
|
-
* Export graph as DOT format.
|
|
39
|
-
*/
|
|
40
|
-
declare function exportGraphAsDot(graph: ContractGraph): string;
|
|
41
|
-
/**
|
|
42
|
-
* Get graph statistics.
|
|
43
|
-
*/
|
|
44
|
-
declare function getGraphStats(graph: ContractGraph): {
|
|
45
|
-
total: number;
|
|
46
|
-
withDeps: number;
|
|
47
|
-
withoutDeps: number;
|
|
48
|
-
used: number;
|
|
49
|
-
unused: number;
|
|
50
|
-
};
|
|
51
|
-
//#endregion
|
|
52
|
-
export { AnalyzeDepsOptions, AnalyzeDepsResult, analyzeDeps, exportGraphAsDot, getContractNode, getGraphStats };
|
package/dist/services/diff.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { FsAdapter } from "../ports/fs.js";
|
|
2
|
-
import { GitAdapter } from "../ports/git.js";
|
|
3
|
-
import { SemanticDiffItem, SemanticDiffOptions } from "@lssm/module.contractspec-workspace";
|
|
4
|
-
|
|
5
|
-
//#region src/services/diff.d.ts
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Options for comparing specs.
|
|
9
|
-
*/
|
|
10
|
-
interface CompareSpecsOptions extends SemanticDiffOptions {
|
|
11
|
-
/**
|
|
12
|
-
* Git ref to compare against (branch, tag, commit).
|
|
13
|
-
* If provided, spec2 is loaded from this ref instead of filesystem.
|
|
14
|
-
*/
|
|
15
|
-
baseline?: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Result of spec comparison.
|
|
19
|
-
*/
|
|
20
|
-
interface CompareSpecsResult {
|
|
21
|
-
spec1: string;
|
|
22
|
-
spec2: string;
|
|
23
|
-
differences: SemanticDiffItem[];
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Compare two spec files semantically.
|
|
27
|
-
*/
|
|
28
|
-
declare function compareSpecs(spec1Path: string, spec2Path: string, adapters: {
|
|
29
|
-
fs: FsAdapter;
|
|
30
|
-
git: GitAdapter;
|
|
31
|
-
}, options?: CompareSpecsOptions): Promise<CompareSpecsResult>;
|
|
32
|
-
//#endregion
|
|
33
|
-
export { CompareSpecsOptions, CompareSpecsResult, compareSpecs };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { FsAdapter } from "../../ports/fs.js";
|
|
2
|
-
import { LoggerAdapter } from "../../ports/logger.js";
|
|
3
|
-
import { CheckResult, DoctorOptions, DoctorPromptCallbacks, DoctorResult } from "./types.js";
|
|
4
|
-
|
|
5
|
-
//#region src/services/doctor/doctor-service.d.ts
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Run all health checks and optionally apply fixes.
|
|
9
|
-
*/
|
|
10
|
-
declare function runDoctor(adapters: {
|
|
11
|
-
fs: FsAdapter;
|
|
12
|
-
logger: LoggerAdapter;
|
|
13
|
-
}, options: DoctorOptions, prompts?: DoctorPromptCallbacks): Promise<DoctorResult>;
|
|
14
|
-
/**
|
|
15
|
-
* Get a summary string for the doctor result.
|
|
16
|
-
*/
|
|
17
|
-
declare function formatDoctorSummary(result: DoctorResult): string;
|
|
18
|
-
/**
|
|
19
|
-
* Format a single check result for display.
|
|
20
|
-
*/
|
|
21
|
-
declare function formatCheckResult(result: CheckResult): string;
|
|
22
|
-
//#endregion
|
|
23
|
-
export { formatCheckResult, formatDoctorSummary, runDoctor };
|