@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.
Files changed (378) hide show
  1. package/dist/_virtual/rolldown_runtime.js +1 -22
  2. package/dist/adapters/ai.js +1 -82
  3. package/dist/adapters/factory.js +1 -36
  4. package/dist/adapters/fs.js +1 -118
  5. package/dist/adapters/git.js +1 -54
  6. package/dist/adapters/index.js +1 -7
  7. package/dist/adapters/logger.js +1 -80
  8. package/dist/adapters/watcher.js +1 -69
  9. package/dist/adapters/workspace.js +2 -190
  10. package/dist/ai/agents/claude-code-agent.js +9 -146
  11. package/dist/ai/agents/cursor-agent.js +17 -286
  12. package/dist/ai/agents/index.js +1 -5
  13. package/dist/ai/agents/openai-codex-agent.js +8 -140
  14. package/dist/ai/agents/orchestrator.js +1 -142
  15. package/dist/ai/agents/simple-agent.js +4 -80
  16. package/dist/ai/client.js +1 -162
  17. package/dist/ai/index.js +1 -27
  18. package/dist/ai/prompts/code-generation.js +13 -55
  19. package/dist/ai/prompts/index.js +1 -12
  20. package/dist/ai/prompts/spec-creation.js +20 -61
  21. package/dist/ai/providers.js +1 -40
  22. package/dist/formatters/index.js +1 -18
  23. package/dist/formatters/json.js +1 -71
  24. package/dist/formatters/sarif.js +1 -163
  25. package/dist/formatters/text.js +2 -208
  26. package/dist/index.js +1 -81
  27. package/dist/node_modules/@ai-sdk/anthropic/dist/index.js +1 -0
  28. package/dist/node_modules/@ai-sdk/openai/dist/index.js +11 -0
  29. package/dist/node_modules/@ai-sdk/provider/dist/index.js +3 -0
  30. package/dist/node_modules/@ai-sdk/provider-utils/dist/index.js +5 -0
  31. package/dist/node_modules/chalk/source/index.js +2 -0
  32. package/dist/node_modules/chalk/source/utilities.js +4 -0
  33. package/dist/node_modules/chalk/source/vendor/ansi-styles/index.js +1 -0
  34. package/dist/node_modules/chalk/source/vendor/supports-color/browser.js +1 -0
  35. package/dist/node_modules/cli-cursor/index.js +1 -0
  36. package/dist/node_modules/cli-spinners/index.js +1 -0
  37. package/dist/node_modules/cli-spinners/spinners.js +1 -0
  38. package/dist/node_modules/eventsource-parser/dist/index.js +5 -0
  39. package/dist/node_modules/eventsource-parser/dist/stream.js +1 -0
  40. package/dist/node_modules/get-east-asian-width/index.js +1 -0
  41. package/dist/node_modules/get-east-asian-width/lookup.js +1 -0
  42. package/dist/node_modules/is-interactive/index.js +1 -0
  43. package/dist/node_modules/is-unicode-supported/index.js +1 -0
  44. package/dist/node_modules/log-symbols/browser-symbols.js +1 -0
  45. package/dist/node_modules/mimic-function/index.js +1 -0
  46. package/dist/node_modules/onetime/index.js +1 -0
  47. package/dist/node_modules/ora/index.js +6 -0
  48. package/dist/node_modules/restore-cursor/index.js +1 -0
  49. package/dist/node_modules/signal-exit/dist/mjs/index.js +1 -0
  50. package/dist/node_modules/signal-exit/dist/mjs/signals.js +1 -0
  51. package/dist/node_modules/stdin-discarder/index.js +1 -0
  52. package/dist/node_modules/string-width/index.js +1 -0
  53. package/dist/node_modules/strip-ansi/index.js +1 -0
  54. package/dist/node_modules/strip-ansi/node_modules/ansi-regex/index.js +1 -0
  55. package/dist/services/agent-guide/adapters/claude-code.js +3 -144
  56. package/dist/services/agent-guide/adapters/cursor-cli.js +3 -135
  57. package/dist/services/agent-guide/adapters/generic-mcp.js +3 -159
  58. package/dist/services/agent-guide/adapters/index.js +1 -30
  59. package/dist/services/agent-guide/agent-guide-service.js +1 -148
  60. package/dist/services/agent-guide/index.js +1 -5
  61. package/dist/services/build.js +1 -140
  62. package/dist/services/ci-check/ci-check-service.js +1 -393
  63. package/dist/services/ci-check/index.js +1 -2
  64. package/dist/services/ci-check/types.js +1 -28
  65. package/dist/services/clean.js +1 -71
  66. package/dist/services/config.js +1 -76
  67. package/dist/services/deps.js +1 -62
  68. package/dist/services/diff.js +1 -33
  69. package/dist/services/doctor/checks/ai.js +2 -118
  70. package/dist/services/doctor/checks/cli.js +1 -146
  71. package/dist/services/doctor/checks/config.js +1 -170
  72. package/dist/services/doctor/checks/deps.js +1 -180
  73. package/dist/services/doctor/checks/index.js +1 -6
  74. package/dist/services/doctor/checks/mcp.js +1 -144
  75. package/dist/services/doctor/checks/workspace.js +1 -243
  76. package/dist/services/doctor/doctor-service.js +2 -115
  77. package/dist/services/doctor/index.js +1 -2
  78. package/dist/services/doctor/types.js +1 -26
  79. package/dist/services/implementation/discovery.js +2 -143
  80. package/dist/services/implementation/index.js +1 -2
  81. package/dist/services/implementation/resolver.js +1 -223
  82. package/dist/services/index.js +1 -53
  83. package/dist/services/integrity-diagram.js +6 -274
  84. package/dist/services/integrity.js +1 -272
  85. package/dist/services/list.js +1 -35
  86. package/dist/services/openapi/export-service.js +2 -51
  87. package/dist/services/openapi/import-service.js +1 -75
  88. package/dist/services/openapi/index.js +1 -4
  89. package/dist/services/openapi/sync-service.js +1 -121
  90. package/dist/services/openapi/validate-service.js +1 -130
  91. package/dist/services/regenerator.js +1 -23
  92. package/dist/services/registry.js +1 -73
  93. package/dist/services/setup/config-generators.js +26 -113
  94. package/dist/services/setup/file-merger.js +2 -60
  95. package/dist/services/setup/index.js +1 -4
  96. package/dist/services/setup/setup-service.js +1 -95
  97. package/dist/services/setup/targets/agents-md.js +1 -46
  98. package/dist/services/setup/targets/cli-config.js +1 -59
  99. package/dist/services/setup/targets/cursor-rules.js +1 -47
  100. package/dist/services/setup/targets/mcp-claude.js +1 -59
  101. package/dist/services/setup/targets/mcp-cursor.js +1 -58
  102. package/dist/services/setup/targets/vscode-settings.js +1 -62
  103. package/dist/services/setup/types.js +1 -26
  104. package/dist/services/sync.js +1 -62
  105. package/dist/services/test.js +1 -30
  106. package/dist/services/validate-implementation.js +1 -69
  107. package/dist/services/validate.js +1 -47
  108. package/dist/services/verification-cache/adapters/filesystem.js +1 -121
  109. package/dist/services/verification-cache/adapters/in-memory.js +1 -45
  110. package/dist/services/verification-cache/adapters/index.js +1 -3
  111. package/dist/services/verification-cache/adapters/workspace-state.js +1 -90
  112. package/dist/services/verification-cache/cache-service.js +1 -255
  113. package/dist/services/verification-cache/index.js +1 -6
  114. package/dist/services/verification-cache/types.js +1 -15
  115. package/dist/services/verify/ai-verifier.js +9 -336
  116. package/dist/services/verify/behavior-verifier.js +1 -185
  117. package/dist/services/verify/index.js +1 -4
  118. package/dist/services/verify/structure-verifier.js +2 -195
  119. package/dist/services/verify/verify-service.js +3 -203
  120. package/dist/services/watch.js +1 -31
  121. package/dist/services/workspace-info.js +2 -102
  122. package/dist/templates/app-config.template.js +28 -101
  123. package/dist/templates/data-view.template.js +27 -42
  124. package/dist/templates/event.template.js +14 -29
  125. package/dist/templates/experiment.template.js +51 -77
  126. package/dist/templates/handler.template.js +17 -53
  127. package/dist/templates/index.js +1 -36
  128. package/dist/templates/integration.template.js +50 -134
  129. package/dist/templates/knowledge.template.js +21 -62
  130. package/dist/templates/migration.template.js +26 -50
  131. package/dist/templates/operation.template.js +28 -44
  132. package/dist/templates/presentation.template.js +20 -46
  133. package/dist/templates/telemetry.template.js +53 -74
  134. package/dist/templates/workflow-runner.template.js +6 -12
  135. package/dist/templates/workflow.template.js +24 -51
  136. package/package.json +10 -16
  137. package/dist/adapters/ai.d.ts +0 -11
  138. package/dist/adapters/factory.d.ts +0 -28
  139. package/dist/adapters/fs.d.ts +0 -10
  140. package/dist/adapters/git.d.ts +0 -10
  141. package/dist/adapters/logger.d.ts +0 -17
  142. package/dist/adapters/watcher.d.ts +0 -10
  143. package/dist/adapters/workspace.d.ts +0 -93
  144. package/dist/ai/agents/claude-code-agent.d.ts +0 -21
  145. package/dist/ai/agents/cursor-agent.d.ts +0 -67
  146. package/dist/ai/agents/openai-codex-agent.d.ts +0 -21
  147. package/dist/ai/agents/orchestrator.d.ts +0 -49
  148. package/dist/ai/agents/simple-agent.d.ts +0 -16
  149. package/dist/ai/agents/types.d.ts +0 -35
  150. package/dist/ai/client.d.ts +0 -82
  151. package/dist/ai/index.d.ts +0 -16
  152. package/dist/ai/prompts/code-generation.d.ts +0 -25
  153. package/dist/ai/prompts/index.d.ts +0 -9
  154. package/dist/ai/prompts/spec-creation.d.ts +0 -28
  155. package/dist/ai/providers.d.ts +0 -28
  156. package/dist/formatters/index.d.ts +0 -10
  157. package/dist/formatters/json.d.ts +0 -88
  158. package/dist/formatters/sarif.d.ts +0 -100
  159. package/dist/formatters/text.d.ts +0 -34
  160. package/dist/index.d.ts +0 -66
  161. package/dist/libs/ai-providers/dist/factory.js +0 -154
  162. package/dist/libs/ai-providers/dist/index.js +0 -4
  163. package/dist/libs/ai-providers/dist/legacy.js +0 -72
  164. package/dist/libs/ai-providers/dist/models.js +0 -287
  165. package/dist/libs/ai-providers/dist/validation.js +0 -1
  166. package/dist/libs/contracts/dist/capabilities/openbanking.js +0 -88
  167. package/dist/libs/contracts/dist/client/index.js +0 -5
  168. package/dist/libs/contracts/dist/client/react/feature-render.js +0 -2
  169. package/dist/libs/contracts/dist/client/react/form-render.js +0 -4
  170. package/dist/libs/contracts/dist/client/react/index.js +0 -4
  171. package/dist/libs/contracts/dist/contract-registry/index.js +0 -1
  172. package/dist/libs/contracts/dist/contract-registry/schemas.js +0 -60
  173. package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
  174. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -16
  175. package/dist/libs/contracts/dist/docs/index.js +0 -29
  176. package/dist/libs/contracts/dist/docs/presentations.js +0 -71
  177. package/dist/libs/contracts/dist/docs/registry.js +0 -44
  178. package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
  179. package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
  180. package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
  181. package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
  182. package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
  183. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -80
  184. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -57
  185. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -16
  186. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -357
  187. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -37
  188. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -16
  189. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -20
  190. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -48
  191. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -79
  192. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -84
  193. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -45
  194. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -67
  195. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -40
  196. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -69
  197. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -47
  198. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -62
  199. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -155
  200. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -20
  201. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -101
  202. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -20
  203. package/dist/libs/contracts/dist/events.js +0 -8
  204. package/dist/libs/contracts/dist/experiments/evaluator.js +0 -1
  205. package/dist/libs/contracts/dist/index.js +0 -72
  206. package/dist/libs/contracts/dist/install.js +0 -2
  207. package/dist/libs/contracts/dist/integrations/contracts.js +0 -377
  208. package/dist/libs/contracts/dist/integrations/index.js +0 -18
  209. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -228
  210. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +0 -159
  211. package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +0 -3
  212. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -210
  213. package/dist/libs/contracts/dist/integrations/openbanking/models.js +0 -242
  214. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +0 -13
  215. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +0 -52
  216. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +0 -75
  217. package/dist/libs/contracts/dist/integrations/providers/gmail.js +0 -87
  218. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +0 -66
  219. package/dist/libs/contracts/dist/integrations/providers/index.js +0 -11
  220. package/dist/libs/contracts/dist/integrations/providers/mistral.js +0 -68
  221. package/dist/libs/contracts/dist/integrations/providers/postmark.js +0 -68
  222. package/dist/libs/contracts/dist/integrations/providers/powens.js +0 -116
  223. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +0 -73
  224. package/dist/libs/contracts/dist/integrations/providers/registry.js +0 -10
  225. package/dist/libs/contracts/dist/integrations/providers/stripe.js +0 -83
  226. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +0 -61
  227. package/dist/libs/contracts/dist/jsonschema.js +0 -24
  228. package/dist/libs/contracts/dist/knowledge/contracts.js +0 -306
  229. package/dist/libs/contracts/dist/knowledge/index.js +0 -7
  230. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +0 -34
  231. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +0 -34
  232. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +0 -38
  233. package/dist/libs/contracts/dist/knowledge/spaces/index.js +0 -6
  234. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +0 -34
  235. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +0 -37
  236. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +0 -34
  237. package/dist/libs/contracts/dist/llm/exporters.js +0 -352
  238. package/dist/libs/contracts/dist/llm/index.js +0 -2
  239. package/dist/libs/contracts/dist/llm/prompts.js +0 -211
  240. package/dist/libs/contracts/dist/onboarding-base.js +0 -196
  241. package/dist/libs/contracts/dist/openapi.js +0 -75
  242. package/dist/libs/contracts/dist/ownership.js +0 -21
  243. package/dist/libs/contracts/dist/presentations.js +0 -1
  244. package/dist/libs/contracts/dist/presentations.v2.js +0 -11
  245. package/dist/libs/contracts/dist/prompt.js +0 -1
  246. package/dist/libs/contracts/dist/promptRegistry.js +0 -1
  247. package/dist/libs/contracts/dist/regenerator/index.js +0 -2
  248. package/dist/libs/contracts/dist/regenerator/service.js +0 -92
  249. package/dist/libs/contracts/dist/regenerator/utils.js +0 -51
  250. package/dist/libs/contracts/dist/registry.js +0 -208
  251. package/dist/libs/contracts/dist/resources.js +0 -1
  252. package/dist/libs/contracts/dist/schema/dist/EnumType.js +0 -2
  253. package/dist/libs/contracts/dist/schema/dist/FieldType.js +0 -49
  254. package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -236
  255. package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +0 -34
  256. package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
  257. package/dist/libs/contracts/dist/schema/dist/entity/index.js +0 -2
  258. package/dist/libs/contracts/dist/schema/dist/entity/types.js +0 -1
  259. package/dist/libs/contracts/dist/schema/dist/index.js +0 -6
  260. package/dist/libs/contracts/dist/server/graphql-pothos.js +0 -6
  261. package/dist/libs/contracts/dist/server/index.js +0 -8
  262. package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +0 -4
  263. package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +0 -2
  264. package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +0 -1
  265. package/dist/libs/contracts/dist/server/mcp/registerResources.js +0 -2
  266. package/dist/libs/contracts/dist/server/mcp/registerTools.js +0 -1
  267. package/dist/libs/contracts/dist/server/provider-mcp.js +0 -1
  268. package/dist/libs/contracts/dist/server/rest-elysia.js +0 -1
  269. package/dist/libs/contracts/dist/server/rest-express.js +0 -1
  270. package/dist/libs/contracts/dist/server/rest-generic.js +0 -1
  271. package/dist/libs/contracts/dist/server/rest-next-app.js +0 -1
  272. package/dist/libs/contracts/dist/server/rest-next-pages.js +0 -1
  273. package/dist/libs/contracts/dist/spec.js +0 -35
  274. package/dist/libs/contracts/dist/telemetry/index.js +0 -1
  275. package/dist/libs/contracts/dist/telemetry/tracker.js +0 -1
  276. package/dist/libs/contracts/dist/tests/index.js +0 -1
  277. package/dist/libs/contracts/dist/tests/runner.js +0 -150
  278. package/dist/libs/contracts/dist/workflow/index.js +0 -1
  279. package/dist/libs/contracts/dist/workflow/runner.js +0 -1
  280. package/dist/libs/contracts-transformers/dist/common/utils.js +0 -47
  281. package/dist/libs/contracts-transformers/dist/openapi/exporter.js +0 -1
  282. package/dist/libs/contracts-transformers/dist/openapi/importer.js +0 -255
  283. package/dist/libs/contracts-transformers/dist/openapi/index.js +0 -4
  284. package/dist/libs/contracts-transformers/dist/openapi/parser.js +0 -231
  285. package/dist/libs/contracts-transformers/dist/openapi/schema-converter.js +0 -201
  286. package/dist/modules/contractspec-workspace/dist/ai/code-generation.js +0 -137
  287. package/dist/modules/contractspec-workspace/dist/ai/spec-creation.js +0 -101
  288. package/dist/modules/contractspec-workspace/dist/analysis/deps/graph.js +0 -84
  289. package/dist/modules/contractspec-workspace/dist/analysis/deps/parse-imports.js +0 -30
  290. package/dist/modules/contractspec-workspace/dist/analysis/diff/semantic.js +0 -96
  291. package/dist/modules/contractspec-workspace/dist/analysis/feature-scan.js +0 -151
  292. package/dist/modules/contractspec-workspace/dist/analysis/spec-scan.js +0 -344
  293. package/dist/modules/contractspec-workspace/dist/analysis/validate/spec-structure.js +0 -122
  294. package/dist/modules/contractspec-workspace/dist/templates/app-config.js +0 -105
  295. package/dist/modules/contractspec-workspace/dist/templates/data-view.js +0 -68
  296. package/dist/modules/contractspec-workspace/dist/templates/event.js +0 -38
  297. package/dist/modules/contractspec-workspace/dist/templates/experiment.js +0 -87
  298. package/dist/modules/contractspec-workspace/dist/templates/handler.js +0 -95
  299. package/dist/modules/contractspec-workspace/dist/templates/integration-utils.js +0 -104
  300. package/dist/modules/contractspec-workspace/dist/templates/integration.js +0 -62
  301. package/dist/modules/contractspec-workspace/dist/templates/knowledge.js +0 -68
  302. package/dist/modules/contractspec-workspace/dist/templates/migration.js +0 -60
  303. package/dist/modules/contractspec-workspace/dist/templates/operation.js +0 -100
  304. package/dist/modules/contractspec-workspace/dist/templates/presentation.js +0 -78
  305. package/dist/modules/contractspec-workspace/dist/templates/telemetry.js +0 -89
  306. package/dist/modules/contractspec-workspace/dist/templates/utils.js +0 -38
  307. package/dist/modules/contractspec-workspace/dist/templates/workflow-runner.js +0 -48
  308. package/dist/modules/contractspec-workspace/dist/templates/workflow.js +0 -67
  309. package/dist/modules/contractspec-workspace/dist/types/generation-types.js +0 -20
  310. package/dist/ports/ai.d.ts +0 -58
  311. package/dist/ports/fs.d.ts +0 -80
  312. package/dist/ports/git.d.ts +0 -32
  313. package/dist/ports/logger.d.ts +0 -87
  314. package/dist/ports/watcher.d.ts +0 -51
  315. package/dist/services/agent-guide/adapters/claude-code.d.ts +0 -34
  316. package/dist/services/agent-guide/adapters/cursor-cli.d.ts +0 -38
  317. package/dist/services/agent-guide/adapters/generic-mcp.d.ts +0 -52
  318. package/dist/services/agent-guide/adapters/index.d.ts +0 -22
  319. package/dist/services/agent-guide/agent-guide-service.d.ts +0 -55
  320. package/dist/services/agent-guide/types.d.ts +0 -57
  321. package/dist/services/build.d.ts +0 -58
  322. package/dist/services/ci-check/ci-check-service.d.ts +0 -15
  323. package/dist/services/ci-check/types.d.ts +0 -142
  324. package/dist/services/clean.d.ts +0 -40
  325. package/dist/services/config.d.ts +0 -25
  326. package/dist/services/deps.d.ts +0 -52
  327. package/dist/services/diff.d.ts +0 -33
  328. package/dist/services/doctor/doctor-service.d.ts +0 -23
  329. package/dist/services/doctor/types.d.ts +0 -117
  330. package/dist/services/implementation/discovery.d.ts +0 -29
  331. package/dist/services/implementation/resolver.d.ts +0 -43
  332. package/dist/services/implementation/types.d.ts +0 -78
  333. package/dist/services/integrity-diagram.d.ts +0 -35
  334. package/dist/services/integrity.d.ts +0 -133
  335. package/dist/services/list.d.ts +0 -30
  336. package/dist/services/openapi/export-service.d.ts +0 -52
  337. package/dist/services/openapi/import-service.d.ts +0 -15
  338. package/dist/services/openapi/sync-service.d.ts +0 -18
  339. package/dist/services/openapi/types.d.ts +0 -184
  340. package/dist/services/openapi/validate-service.d.ts +0 -15
  341. package/dist/services/regenerator.d.ts +0 -17
  342. package/dist/services/registry.d.ts +0 -52
  343. package/dist/services/setup/config-generators.d.ts +0 -41
  344. package/dist/services/setup/file-merger.d.ts +0 -26
  345. package/dist/services/setup/setup-service.d.ts +0 -11
  346. package/dist/services/setup/types.d.ts +0 -84
  347. package/dist/services/sync.d.ts +0 -40
  348. package/dist/services/test.d.ts +0 -14
  349. package/dist/services/validate-implementation.d.ts +0 -31
  350. package/dist/services/validate.d.ts +0 -40
  351. package/dist/services/verification-cache/adapters/filesystem.d.ts +0 -45
  352. package/dist/services/verification-cache/adapters/in-memory.d.ts +0 -26
  353. package/dist/services/verification-cache/adapters/workspace-state.d.ts +0 -48
  354. package/dist/services/verification-cache/cache-service.d.ts +0 -69
  355. package/dist/services/verification-cache/types.d.ts +0 -123
  356. package/dist/services/verify/ai-verifier.d.ts +0 -24
  357. package/dist/services/verify/behavior-verifier.d.ts +0 -11
  358. package/dist/services/verify/structure-verifier.d.ts +0 -11
  359. package/dist/services/verify/types.d.ts +0 -136
  360. package/dist/services/verify/verify-service.d.ts +0 -59
  361. package/dist/services/watch.d.ts +0 -24
  362. package/dist/services/workspace-info.d.ts +0 -61
  363. package/dist/templates/app-config.template.d.ts +0 -6
  364. package/dist/templates/data-view.template.d.ts +0 -6
  365. package/dist/templates/event.template.d.ts +0 -10
  366. package/dist/templates/experiment.template.d.ts +0 -6
  367. package/dist/templates/handler.template.d.ts +0 -15
  368. package/dist/templates/index.d.ts +0 -20
  369. package/dist/templates/integration.template.d.ts +0 -6
  370. package/dist/templates/knowledge.template.d.ts +0 -6
  371. package/dist/templates/migration.template.d.ts +0 -6
  372. package/dist/templates/operation.template.d.ts +0 -10
  373. package/dist/templates/presentation.template.d.ts +0 -10
  374. package/dist/templates/telemetry.template.d.ts +0 -6
  375. package/dist/templates/workflow-runner.template.d.ts +0 -15
  376. package/dist/templates/workflow.template.d.ts +0 -6
  377. package/dist/types/config.d.ts +0 -33
  378. package/dist/types.d.ts +0 -323
@@ -1,89 +0,0 @@
1
- import { toPascalCase } from "./utils.js";
2
-
3
- //#region ../../modules/contractspec-workspace/dist/templates/telemetry.js
4
- function generateTelemetrySpec(data) {
5
- const specVar = toPascalCase(data.name.split(".").pop() ?? "Telemetry") + "Telemetry";
6
- const providers = data.providers?.length ? `providers: [
7
- ${data.providers.map((provider) => ` {
8
- type: '${provider.type}',
9
- config: ${formatConfigValue(provider.config)},
10
- }`).join(",\n")}
11
- ],` : "";
12
- const events = data.events.map((event) => {
13
- const properties = event.properties.map((prop) => ` '${prop.name}': {
14
- type: '${prop.type}',
15
- ${prop.required ? "required: true," : ""}
16
- ${prop.pii ? "pii: true," : ""}
17
- ${prop.redact ? "redact: true," : ""}
18
- ${prop.description ? `description: '${escapeString(prop.description)}',` : ""}
19
- }`).join(",\n");
20
- const anomalyRules = event.anomalyRules?.length ? ` anomalyDetection: {
21
- enabled: true,
22
- ${typeof event.anomalyMinimumSample === "number" ? `minimumSample: ${event.anomalyMinimumSample},` : ""}
23
- thresholds: [
24
- ${event.anomalyRules.map((rule) => ` {
25
- metric: '${escapeString(rule.metric)}',
26
- ${typeof rule.min === "number" ? `min: ${rule.min},` : ""}
27
- ${typeof rule.max === "number" ? `max: ${rule.max},` : ""}
28
- }`).join(",\n")}
29
- ],
30
- actions: [${(event.anomalyActions ?? []).map((action) => `'${action}'`).join(", ")}],
31
- },` : event.anomalyEnabled ? ` anomalyDetection: {
32
- enabled: true,
33
- ${typeof event.anomalyMinimumSample === "number" ? `minimumSample: ${event.anomalyMinimumSample},` : ""}
34
- },` : "";
35
- return ` {
36
- name: '${escapeString(event.name)}',
37
- version: ${event.version},
38
- semantics: {
39
- what: '${escapeString(event.what)}',
40
- ${event.who ? `who: '${escapeString(event.who)}',` : ""}
41
- ${event.why ? `why: '${escapeString(event.why)}',` : ""}
42
- },
43
- privacy: '${event.privacy}',
44
- properties: {
45
- ${properties}
46
- },
47
- ${typeof event.retentionDays === "number" ? `retention: { days: ${event.retentionDays}, ${event.retentionPolicy ? `policy: '${event.retentionPolicy}'` : ""} },` : ""}
48
- ${typeof event.samplingRate === "number" ? `sampling: { rate: ${event.samplingRate}${event.samplingConditions ? `, conditions: ['${escapeString(event.samplingConditions)}']` : ""} },` : ""}
49
- ${anomalyRules}
50
- ${event.tags?.length ? `tags: [${event.tags.map((tag) => `'${escapeString(tag)}'`).join(", ")}],` : ""}
51
- }`;
52
- }).join(",\n");
53
- return `import type { TelemetrySpec } from '@lssm/lib.contracts/telemetry';
54
-
55
- export const ${specVar}: TelemetrySpec = {
56
- meta: {
57
- name: '${escapeString(data.name)}',
58
- version: ${data.version},
59
- title: '${escapeString(data.name)} telemetry',
60
- description: '${escapeString(data.description || "Describe the purpose of this telemetry spec.")}',
61
- domain: '${escapeString(data.domain)}',
62
- owners: [${data.owners.map((owner) => `'${escapeString(owner)}'`).join(", ")}],
63
- tags: [${data.tags.map((tag) => `'${escapeString(tag)}'`).join(", ")}],
64
- stability: '${data.stability}',
65
- },
66
- config: {
67
- ${typeof data.defaultRetentionDays === "number" ? `defaultRetentionDays: ${data.defaultRetentionDays},` : ""}
68
- ${typeof data.defaultSamplingRate === "number" ? `defaultSamplingRate: ${data.defaultSamplingRate},` : ""}
69
- ${data.anomalyEnabled ? `anomalyDetection: { enabled: true${typeof data.anomalyCheckIntervalMs === "number" ? `, checkIntervalMs: ${data.anomalyCheckIntervalMs}` : ""} },` : ""}
70
- ${providers}
71
- },
72
- events: [
73
- ${events}
74
- ],
75
- };
76
- `;
77
- }
78
- function escapeString(value) {
79
- return value.replace(/\\/g, "\\\\").replace(/'/g, "\\'");
80
- }
81
- function formatConfigValue(value) {
82
- const trimmed = value.trim();
83
- if (!trimmed) return "{}";
84
- if (trimmed.startsWith("{") && trimmed.endsWith("}") || trimmed.startsWith("[") && trimmed.endsWith("]")) return trimmed;
85
- return `'${escapeString(trimmed)}'`;
86
- }
87
-
88
- //#endregion
89
- export { generateTelemetrySpec };
@@ -1,38 +0,0 @@
1
- //#region ../../modules/contractspec-workspace/dist/templates/utils.js
2
- /**
3
- * Utility functions for template generation.
4
- */
5
- /**
6
- * Convert string to camelCase.
7
- */
8
- function toCamelCase(str) {
9
- const pascal = toPascalCase(str);
10
- return pascal.charAt(0).toLowerCase() + pascal.slice(1);
11
- }
12
- /**
13
- * Convert string to PascalCase.
14
- */
15
- function toPascalCase(str) {
16
- return str.split(/[-_.]/).map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join("");
17
- }
18
- /**
19
- * Convert string to kebab-case.
20
- */
21
- function toKebabCase(str) {
22
- return str.replace(/\./g, "-").replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
23
- }
24
- /**
25
- * Capitalize first letter.
26
- */
27
- function capitalize(str) {
28
- return str.charAt(0).toUpperCase() + str.slice(1);
29
- }
30
- /**
31
- * Escape single quotes in string.
32
- */
33
- function escapeString(value) {
34
- return value.replace(/'/g, "\\'");
35
- }
36
-
37
- //#endregion
38
- export { capitalize, escapeString, toCamelCase, toKebabCase, toPascalCase };
@@ -1,48 +0,0 @@
1
- //#region ../../modules/contractspec-workspace/dist/templates/workflow-runner.js
2
- function generateWorkflowRunnerTemplate({ exportName, specImportPath, runnerName, workflowName }) {
3
- return `import {
4
- InMemoryStateStore,
5
- WorkflowRegistry,
6
- WorkflowRunner,
7
- } from '@lssm/lib.contracts/workflow';
8
- import { ${exportName} } from '${specImportPath}';
9
-
10
- /**
11
- * Runner wiring for ${workflowName}.
12
- *
13
- * TODO:
14
- * - Replace the in-memory state store with a persistent adapter if needed.
15
- * - Implement opExecutor to invoke the correct contract handlers.
16
- * - Wire eventEmitter to telemetry sinks.
17
- */
18
- const registry = new WorkflowRegistry();
19
- registry.register(${exportName});
20
-
21
- const stateStore = new InMemoryStateStore();
22
-
23
- export const ${runnerName} = new WorkflowRunner({
24
- registry,
25
- stateStore,
26
- opExecutor: async (operation, input, ctx) => {
27
- // TODO: route to the appropriate contract handler
28
- // Example: return contractRegistry.execute(operation.name, operation.version, input, ctx);
29
- throw new Error(
30
- \`opExecutor for \${operation.name}.v\${operation.version} is not implemented\`
31
- );
32
- },
33
- // appConfigProvider: async (state) => {
34
- // // TODO: return the ResolvedAppConfig for this workflow run (tenant/environment)
35
- // return undefined;
36
- // },
37
- // enforceCapabilities: async (operation, context) => {
38
- // // TODO: ensure required capabilities are satisfied using context.integrations/context.resolvedAppConfig
39
- // },
40
- eventEmitter: (_event, _payload) => {
41
- // TODO: forward workflow events to telemetry or logging sinks
42
- },
43
- });
44
- `;
45
- }
46
-
47
- //#endregion
48
- export { generateWorkflowRunnerTemplate };
@@ -1,67 +0,0 @@
1
- import { escapeString, toPascalCase } from "./utils.js";
2
-
3
- //#region ../../modules/contractspec-workspace/dist/templates/workflow.js
4
- /**
5
- * Generate workflow spec TypeScript code.
6
- */
7
- function generateWorkflowSpec(data) {
8
- const specVarName = toPascalCase(data.name.split(".").pop() ?? "Workflow") + "Workflow";
9
- const stepsCode = data.steps.map((step) => formatStep(step)).join(",\n");
10
- const transitionsCode = data.transitions.map((transition) => ` {
11
- from: '${transition.from}',
12
- to: '${transition.to}',
13
- ${transition.condition ? ` condition: '${escapeString(transition.condition)}',` : ""}
14
- }`).join(",\n");
15
- return `import type { WorkflowSpec } from '@lssm/lib.contracts/workflow';
16
-
17
- /**
18
- * Workflow generated via contractspec CLI.
19
- * TODO:
20
- * - Review step definitions and descriptions.
21
- * - Wire automation steps to actual operations.
22
- * - Provide form renderers for human steps.
23
- * - Add guards/conditions as needed.
24
- */
25
- export const ${specVarName}: WorkflowSpec = {
26
- meta: {
27
- name: '${data.name}',
28
- version: ${data.version},
29
- title: '${escapeString(data.title)}',
30
- description: '${escapeString(data.description)}',
31
- domain: '${escapeString(data.domain)}',
32
- stability: '${data.stability}',
33
- owners: [${data.owners.map((owner) => `'${owner}'`).join(", ")}],
34
- tags: [${data.tags.map((tag) => `'${tag}'`).join(", ")}],
35
- },
36
- definition: {
37
- ${data.entryStepId ? ` entryStepId: '${data.entryStepId}',\n` : ""} steps: [
38
- ${stepsCode}
39
- ],
40
- transitions: [
41
- ${transitionsCode}
42
- ],
43
- },
44
- ${data.policyFlags.length > 0 ? `policy: {
45
- flags: [${data.policyFlags.map((flag) => `'${flag}'`).join(", ")}],
46
- },` : "// policy: { flags: [] },"}
47
- };
48
- `;
49
- }
50
- function formatStep(step) {
51
- const lines = [
52
- ` {`,
53
- ` id: '${step.id}',`,
54
- ` type: '${step.type}',`,
55
- ` label: '${escapeString(step.label)}',`
56
- ];
57
- if (step.description) lines.push(` description: '${escapeString(step.description)}',`);
58
- const actionLines = [];
59
- if (step.operation) actionLines.push(`operation: { name: '${step.operation.name}', version: ${step.operation.version} }`);
60
- if (step.form) actionLines.push(`form: { key: '${step.form.key}', version: ${step.form.version} }`);
61
- if (actionLines.length) lines.push(` action: { ${actionLines.join(", ")} },`);
62
- lines.push(` }`);
63
- return lines.join("\n");
64
- }
65
-
66
- //#endregion
67
- export { generateWorkflowSpec };
@@ -1,20 +0,0 @@
1
- //#region ../../modules/contractspec-workspace/dist/types/generation-types.js
2
- /**
3
- * Default workspace configuration.
4
- */
5
- const DEFAULT_WORKSPACE_CONFIG = {
6
- aiProvider: "claude",
7
- agentMode: "simple",
8
- outputDir: "./src",
9
- conventions: {
10
- operations: "interactions/commands|queries",
11
- events: "events",
12
- presentations: "presentations",
13
- forms: "forms"
14
- },
15
- defaultOwners: [],
16
- defaultTags: []
17
- };
18
-
19
- //#endregion
20
- export { DEFAULT_WORKSPACE_CONFIG };
@@ -1,58 +0,0 @@
1
- import { WorkspaceConfig } from "@lssm/module.contractspec-workspace";
2
-
3
- //#region src/ports/ai.d.ts
4
-
5
- /**
6
- * AI generation options.
7
- */
8
- interface AiGenerateOptions {
9
- prompt: string;
10
- systemPrompt?: string;
11
- stream?: boolean;
12
- }
13
- /**
14
- * AI structured generation options.
15
- */
16
- interface AiGenerateStructuredOptions<_T> {
17
- prompt: string;
18
- systemPrompt?: string;
19
- schema: unknown;
20
- }
21
- /**
22
- * AI generation result.
23
- */
24
- interface AiGenerateResult {
25
- text: string;
26
- }
27
- /**
28
- * AI validation result.
29
- */
30
- interface AiValidationResult {
31
- success: boolean;
32
- error?: string;
33
- }
34
- /**
35
- * AI adapter interface.
36
- */
37
- interface AiAdapter {
38
- /**
39
- * Validate provider configuration.
40
- */
41
- validateProvider(config: WorkspaceConfig): Promise<AiValidationResult>;
42
- /**
43
- * Generate text from prompt.
44
- */
45
- generateText(options: AiGenerateOptions): Promise<AiGenerateResult>;
46
- /**
47
- * Generate structured data from prompt.
48
- */
49
- generateStructured<T>(options: AiGenerateStructuredOptions<T>): Promise<{
50
- object: T;
51
- }>;
52
- /**
53
- * Stream text generation.
54
- */
55
- streamText(options: AiGenerateOptions, onChunk: (text: string) => void): Promise<string>;
56
- }
57
- //#endregion
58
- export { AiAdapter, AiGenerateOptions, AiGenerateResult, AiGenerateStructuredOptions, AiValidationResult };
@@ -1,80 +0,0 @@
1
- //#region src/ports/fs.d.ts
2
- /**
3
- * Filesystem adapter port.
4
- */
5
- /**
6
- * File statistics.
7
- */
8
- interface FileStat {
9
- size: number;
10
- isFile: boolean;
11
- isDirectory: boolean;
12
- mtime: Date;
13
- }
14
- /**
15
- * Options for file discovery.
16
- */
17
- interface DiscoverOptions {
18
- pattern?: string;
19
- patterns?: string[];
20
- ignore?: string[];
21
- /** Working directory for glob patterns. Defaults to process.cwd(). */
22
- cwd?: string;
23
- /** Return absolute paths instead of relative. Defaults to true. */
24
- absolute?: boolean;
25
- }
26
- /**
27
- * Filesystem adapter interface.
28
- */
29
- interface FsAdapter {
30
- /**
31
- * Check if a file or directory exists.
32
- */
33
- exists(path: string): Promise<boolean>;
34
- /**
35
- * Read file contents as string.
36
- */
37
- readFile(path: string): Promise<string>;
38
- /**
39
- * Write file contents.
40
- */
41
- writeFile(path: string, content: string): Promise<void>;
42
- /**
43
- * Delete a file or directory.
44
- */
45
- remove(path: string): Promise<void>;
46
- /**
47
- * Get file statistics.
48
- */
49
- stat(path: string): Promise<FileStat>;
50
- /**
51
- * Create directory (recursive).
52
- */
53
- mkdir(path: string): Promise<void>;
54
- /**
55
- * Discover files matching patterns.
56
- */
57
- glob(options: DiscoverOptions): Promise<string[]>;
58
- /**
59
- * Resolve path relative to cwd.
60
- */
61
- resolve(...paths: string[]): string;
62
- /**
63
- * Get directory name from path.
64
- */
65
- dirname(path: string): string;
66
- /**
67
- * Get base name from path.
68
- */
69
- basename(path: string): string;
70
- /**
71
- * Join path segments.
72
- */
73
- join(...paths: string[]): string;
74
- /**
75
- * Get relative path from base.
76
- */
77
- relative(from: string, to: string): string;
78
- }
79
- //#endregion
80
- export { DiscoverOptions, FileStat, FsAdapter };
@@ -1,32 +0,0 @@
1
- //#region src/ports/git.d.ts
2
- /**
3
- * Git adapter port.
4
- */
5
- /**
6
- * Git adapter interface.
7
- */
8
- interface GitAdapter {
9
- /**
10
- * Get file contents at a specific git ref (branch, tag, commit).
11
- */
12
- showFile(ref: string, filePath: string): Promise<string>;
13
- /**
14
- * Clean untracked files (dangerous operation).
15
- */
16
- clean(options?: GitCleanOptions): Promise<void>;
17
- /**
18
- * Check if path is inside a git repository.
19
- */
20
- isGitRepo(path?: string): Promise<boolean>;
21
- }
22
- /**
23
- * Options for git clean.
24
- */
25
- interface GitCleanOptions {
26
- dryRun?: boolean;
27
- force?: boolean;
28
- directories?: boolean;
29
- ignored?: boolean;
30
- }
31
- //#endregion
32
- export { GitAdapter, GitCleanOptions };
@@ -1,87 +0,0 @@
1
- import { FsAdapter } from "./fs.js";
2
- import { GitAdapter } from "./git.js";
3
- import { WatcherAdapter } from "./watcher.js";
4
- import { AiAdapter } from "./ai.js";
5
-
6
- //#region src/ports/logger.d.ts
7
- /**
8
- * Logger and progress reporter port.
9
- */
10
- /**
11
- * Log level.
12
- */
13
- type LogLevel = 'debug' | 'info' | 'warn' | 'error';
14
- /**
15
- * Progress update.
16
- */
17
- interface ProgressUpdate {
18
- message: string;
19
- current?: number;
20
- total?: number;
21
- }
22
- /**
23
- * Progress reporter for long-running operations.
24
- */
25
- interface ProgressReporter {
26
- /**
27
- * Start progress reporting.
28
- */
29
- start(message: string): void;
30
- /**
31
- * Update progress.
32
- */
33
- update(update: ProgressUpdate): void;
34
- /**
35
- * Mark as succeeded.
36
- */
37
- succeed(message?: string): void;
38
- /**
39
- * Mark as failed.
40
- */
41
- fail(message?: string): void;
42
- /**
43
- * Mark as warned.
44
- */
45
- warn(message?: string): void;
46
- /**
47
- * Stop progress reporting.
48
- */
49
- stop(): void;
50
- }
51
- /**
52
- * Logger adapter interface.
53
- */
54
- interface LoggerAdapter {
55
- /**
56
- * Log debug message.
57
- */
58
- debug(message: string, data?: Record<string, unknown>): void;
59
- /**
60
- * Log info message.
61
- */
62
- info(message: string, data?: Record<string, unknown>): void;
63
- /**
64
- * Log warning message.
65
- */
66
- warn(message: string, data?: Record<string, unknown>): void;
67
- /**
68
- * Log error message.
69
- */
70
- error(message: string, data?: Record<string, unknown>): void;
71
- /**
72
- * Create a progress reporter.
73
- */
74
- createProgress(): ProgressReporter;
75
- }
76
- /**
77
- * Combined adapters for workspace services.
78
- */
79
- interface WorkspaceAdapters {
80
- fs: FsAdapter;
81
- git: GitAdapter;
82
- watcher: WatcherAdapter;
83
- ai: AiAdapter;
84
- logger: LoggerAdapter;
85
- }
86
- //#endregion
87
- export { LogLevel, LoggerAdapter, ProgressReporter, ProgressUpdate, WorkspaceAdapters };
@@ -1,51 +0,0 @@
1
- //#region src/ports/watcher.d.ts
2
- /**
3
- * File watcher adapter port.
4
- */
5
- /**
6
- * Watcher event types.
7
- */
8
- type WatchEventType = 'add' | 'change' | 'unlink';
9
- /**
10
- * Watcher event.
11
- */
12
- interface WatchEvent {
13
- type: WatchEventType;
14
- path: string;
15
- }
16
- /**
17
- * Watcher event handler.
18
- */
19
- type WatchEventHandler = (event: WatchEvent) => void | Promise<void>;
20
- /**
21
- * Options for file watching.
22
- */
23
- interface WatchOptions {
24
- pattern: string;
25
- ignore?: string[];
26
- debounceMs?: number;
27
- }
28
- /**
29
- * Watcher instance.
30
- */
31
- interface Watcher {
32
- /**
33
- * Register event handler.
34
- */
35
- on(handler: WatchEventHandler): void;
36
- /**
37
- * Stop watching.
38
- */
39
- close(): Promise<void>;
40
- }
41
- /**
42
- * File watcher adapter interface.
43
- */
44
- interface WatcherAdapter {
45
- /**
46
- * Start watching files matching pattern.
47
- */
48
- watch(options: WatchOptions): Watcher;
49
- }
50
- //#endregion
51
- export { WatchEvent, WatchEventHandler, WatchEventType, WatchOptions, Watcher, WatcherAdapter };
@@ -1,34 +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/claude-code.d.ts
6
-
7
- /**
8
- * Claude Code adapter implementation.
9
- * Optimized for Claude's extended thinking and code generation capabilities.
10
- */
11
- declare class ClaudeCodeAdapter implements AgentAdapter {
12
- agentType: "claude-code";
13
- /**
14
- * Format an implementation plan for Claude Code.
15
- * Uses structured markdown with clear sections and checklists.
16
- */
17
- formatPlan(plan: ImplementationPlan): AgentPrompt;
18
- /**
19
- * Generate agent-specific configuration.
20
- * For Claude Code, this generates a prompt that can be used as context.
21
- */
22
- generateConfig(spec: AnyContractSpec): string;
23
- /**
24
- * Parse Claude Code output to extract generated code.
25
- */
26
- parseOutput(output: string): {
27
- code?: string;
28
- errors?: string[];
29
- };
30
- }
31
- /** Singleton instance */
32
- declare const claudeCodeAdapter: ClaudeCodeAdapter;
33
- //#endregion
34
- export { ClaudeCodeAdapter, claudeCodeAdapter };
@@ -1,38 +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/cursor-cli.d.ts
6
-
7
- /**
8
- * Cursor CLI adapter implementation.
9
- * Optimized for Cursor's background/composer mode.
10
- */
11
- declare class CursorCLIAdapter implements AgentAdapter {
12
- agentType: "cursor-cli";
13
- /**
14
- * Format an implementation plan for Cursor CLI.
15
- * Uses concise format optimized for Cursor's context window.
16
- */
17
- formatPlan(plan: ImplementationPlan): AgentPrompt;
18
- /**
19
- * Generate Cursor rules (.mdc format) for a spec.
20
- * Can be saved to .cursor/rules/ to provide persistent context.
21
- */
22
- generateConfig(spec: AnyContractSpec): string;
23
- /**
24
- * Generate a cursor rules file path for a spec.
25
- */
26
- getCursorRulesPath(spec: AnyContractSpec): string;
27
- /**
28
- * Parse Cursor output to extract generated code.
29
- */
30
- parseOutput(output: string): {
31
- code?: string;
32
- errors?: string[];
33
- };
34
- }
35
- /** Singleton instance */
36
- declare const cursorCLIAdapter: CursorCLIAdapter;
37
- //#endregion
38
- export { CursorCLIAdapter, cursorCLIAdapter };