@lssm/bundle.contractspec-workspace 0.0.0-canary-20251217060834 → 0.0.0-canary-20251217072406

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 (269) hide show
  1. package/dist/_virtual/rolldown_runtime.js +22 -1
  2. package/dist/adapters/ai.js +82 -1
  3. package/dist/adapters/factory.js +36 -1
  4. package/dist/adapters/fs.js +118 -1
  5. package/dist/adapters/git.js +54 -1
  6. package/dist/adapters/index.js +7 -1
  7. package/dist/adapters/logger.js +80 -1
  8. package/dist/adapters/watcher.js +69 -1
  9. package/dist/adapters/workspace.js +190 -2
  10. package/dist/ai/agents/claude-code-agent.js +146 -9
  11. package/dist/ai/agents/cursor-agent.js +286 -17
  12. package/dist/ai/agents/index.js +5 -1
  13. package/dist/ai/agents/openai-codex-agent.js +140 -8
  14. package/dist/ai/agents/orchestrator.js +142 -1
  15. package/dist/ai/agents/simple-agent.js +80 -4
  16. package/dist/ai/client.js +162 -1
  17. package/dist/ai/index.js +27 -1
  18. package/dist/ai/prompts/code-generation.js +55 -13
  19. package/dist/ai/prompts/index.js +12 -1
  20. package/dist/ai/prompts/spec-creation.js +61 -20
  21. package/dist/ai/providers.js +40 -1
  22. package/dist/formatters/index.js +18 -1
  23. package/dist/formatters/json.js +71 -1
  24. package/dist/formatters/sarif.js +163 -1
  25. package/dist/formatters/text.js +208 -2
  26. package/dist/index.d.ts +0 -3
  27. package/dist/index.js +81 -1
  28. package/dist/libs/ai-providers/dist/factory.js +154 -0
  29. package/dist/libs/ai-providers/dist/index.js +4 -0
  30. package/dist/libs/ai-providers/dist/legacy.js +72 -0
  31. package/dist/libs/ai-providers/dist/models.js +287 -0
  32. package/dist/libs/ai-providers/dist/validation.js +1 -0
  33. package/dist/libs/contracts/dist/capabilities/openbanking.js +88 -0
  34. package/dist/libs/contracts/dist/client/index.js +5 -0
  35. package/dist/libs/contracts/dist/client/react/feature-render.js +2 -0
  36. package/dist/libs/contracts/dist/client/react/form-render.js +4 -0
  37. package/dist/libs/contracts/dist/client/react/index.js +4 -0
  38. package/dist/libs/contracts/dist/contract-registry/index.js +1 -0
  39. package/dist/libs/contracts/dist/contract-registry/schemas.js +60 -0
  40. package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +16 -0
  41. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +16 -0
  42. package/dist/libs/contracts/dist/docs/index.js +29 -0
  43. package/dist/libs/contracts/dist/docs/presentations.js +71 -0
  44. package/dist/libs/contracts/dist/docs/registry.js +44 -0
  45. package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +16 -0
  46. package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +16 -0
  47. package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +16 -0
  48. package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +16 -0
  49. package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +16 -0
  50. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +80 -0
  51. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +57 -0
  52. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +16 -0
  53. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +357 -0
  54. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +37 -0
  55. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +16 -0
  56. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +20 -0
  57. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +48 -0
  58. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +79 -0
  59. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +84 -0
  60. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +45 -0
  61. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +67 -0
  62. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +40 -0
  63. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +69 -0
  64. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +47 -0
  65. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +62 -0
  66. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +155 -0
  67. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +20 -0
  68. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +101 -0
  69. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +20 -0
  70. package/dist/libs/contracts/dist/events.js +8 -0
  71. package/dist/libs/contracts/dist/experiments/evaluator.js +1 -0
  72. package/dist/libs/contracts/dist/index.js +72 -0
  73. package/dist/libs/contracts/dist/install.js +2 -0
  74. package/dist/libs/contracts/dist/integrations/contracts.js +377 -0
  75. package/dist/libs/contracts/dist/integrations/index.js +18 -0
  76. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +228 -0
  77. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +159 -0
  78. package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +3 -0
  79. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +210 -0
  80. package/dist/libs/contracts/dist/integrations/openbanking/models.js +242 -0
  81. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +13 -0
  82. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +52 -0
  83. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +75 -0
  84. package/dist/libs/contracts/dist/integrations/providers/gmail.js +87 -0
  85. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +66 -0
  86. package/dist/libs/contracts/dist/integrations/providers/index.js +11 -0
  87. package/dist/libs/contracts/dist/integrations/providers/mistral.js +68 -0
  88. package/dist/libs/contracts/dist/integrations/providers/postmark.js +68 -0
  89. package/dist/libs/contracts/dist/integrations/providers/powens.js +116 -0
  90. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +73 -0
  91. package/dist/libs/contracts/dist/integrations/providers/registry.js +10 -0
  92. package/dist/libs/contracts/dist/integrations/providers/stripe.js +83 -0
  93. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +61 -0
  94. package/dist/libs/contracts/dist/jsonschema.js +24 -0
  95. package/dist/libs/contracts/dist/knowledge/contracts.js +306 -0
  96. package/dist/libs/contracts/dist/knowledge/index.js +7 -0
  97. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +34 -0
  98. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +34 -0
  99. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +38 -0
  100. package/dist/libs/contracts/dist/knowledge/spaces/index.js +6 -0
  101. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +34 -0
  102. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +37 -0
  103. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +34 -0
  104. package/dist/libs/contracts/dist/llm/exporters.js +352 -0
  105. package/dist/libs/contracts/dist/llm/index.js +2 -0
  106. package/dist/libs/contracts/dist/llm/prompts.js +211 -0
  107. package/dist/libs/contracts/dist/onboarding-base.js +196 -0
  108. package/dist/libs/contracts/dist/openapi.js +75 -0
  109. package/dist/libs/contracts/dist/ownership.js +21 -0
  110. package/dist/libs/contracts/dist/presentations.js +1 -0
  111. package/dist/libs/contracts/dist/presentations.v2.js +11 -0
  112. package/dist/libs/contracts/dist/prompt.js +1 -0
  113. package/dist/libs/contracts/dist/promptRegistry.js +1 -0
  114. package/dist/libs/contracts/dist/regenerator/index.js +2 -0
  115. package/dist/libs/contracts/dist/regenerator/service.js +92 -0
  116. package/dist/libs/contracts/dist/regenerator/utils.js +51 -0
  117. package/dist/libs/contracts/dist/registry.js +208 -0
  118. package/dist/libs/contracts/dist/resources.js +1 -0
  119. package/dist/libs/contracts/dist/schema/dist/EnumType.js +2 -0
  120. package/dist/libs/contracts/dist/schema/dist/FieldType.js +49 -0
  121. package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +236 -0
  122. package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +34 -0
  123. package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +1 -0
  124. package/dist/libs/contracts/dist/schema/dist/entity/index.js +2 -0
  125. package/dist/libs/contracts/dist/schema/dist/entity/types.js +1 -0
  126. package/dist/libs/contracts/dist/schema/dist/index.js +6 -0
  127. package/dist/libs/contracts/dist/server/graphql-pothos.js +6 -0
  128. package/dist/libs/contracts/dist/server/index.js +8 -0
  129. package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +4 -0
  130. package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +2 -0
  131. package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +1 -0
  132. package/dist/libs/contracts/dist/server/mcp/registerResources.js +2 -0
  133. package/dist/libs/contracts/dist/server/mcp/registerTools.js +1 -0
  134. package/dist/libs/contracts/dist/server/provider-mcp.js +1 -0
  135. package/dist/libs/contracts/dist/server/rest-elysia.js +1 -0
  136. package/dist/libs/contracts/dist/server/rest-express.js +1 -0
  137. package/dist/libs/contracts/dist/server/rest-generic.js +1 -0
  138. package/dist/libs/contracts/dist/server/rest-next-app.js +1 -0
  139. package/dist/libs/contracts/dist/server/rest-next-pages.js +1 -0
  140. package/dist/libs/contracts/dist/spec.js +35 -0
  141. package/dist/libs/contracts/dist/telemetry/index.js +1 -0
  142. package/dist/libs/contracts/dist/telemetry/tracker.js +1 -0
  143. package/dist/libs/contracts/dist/tests/index.js +1 -0
  144. package/dist/libs/contracts/dist/tests/runner.js +150 -0
  145. package/dist/libs/contracts/dist/workflow/index.js +1 -0
  146. package/dist/libs/contracts/dist/workflow/runner.js +1 -0
  147. package/dist/libs/contracts-transformers/dist/common/utils.js +47 -0
  148. package/dist/libs/contracts-transformers/dist/openapi/exporter.js +1 -0
  149. package/dist/libs/contracts-transformers/dist/openapi/importer.js +255 -0
  150. package/dist/libs/contracts-transformers/dist/openapi/index.js +4 -0
  151. package/dist/libs/contracts-transformers/dist/openapi/parser.js +231 -0
  152. package/dist/libs/contracts-transformers/dist/openapi/schema-converter.js +201 -0
  153. package/dist/modules/contractspec-workspace/dist/ai/code-generation.js +137 -0
  154. package/dist/modules/contractspec-workspace/dist/ai/spec-creation.js +101 -0
  155. package/dist/modules/contractspec-workspace/dist/analysis/deps/graph.js +84 -0
  156. package/dist/modules/contractspec-workspace/dist/analysis/deps/parse-imports.js +30 -0
  157. package/dist/modules/contractspec-workspace/dist/analysis/diff/semantic.js +96 -0
  158. package/dist/modules/contractspec-workspace/dist/analysis/feature-scan.js +151 -0
  159. package/dist/modules/contractspec-workspace/dist/analysis/spec-scan.js +344 -0
  160. package/dist/modules/contractspec-workspace/dist/analysis/validate/spec-structure.js +122 -0
  161. package/dist/modules/contractspec-workspace/dist/templates/app-config.js +105 -0
  162. package/dist/modules/contractspec-workspace/dist/templates/data-view.js +68 -0
  163. package/dist/modules/contractspec-workspace/dist/templates/event.js +38 -0
  164. package/dist/modules/contractspec-workspace/dist/templates/experiment.js +87 -0
  165. package/dist/modules/contractspec-workspace/dist/templates/handler.js +95 -0
  166. package/dist/modules/contractspec-workspace/dist/templates/integration-utils.js +104 -0
  167. package/dist/modules/contractspec-workspace/dist/templates/integration.js +62 -0
  168. package/dist/modules/contractspec-workspace/dist/templates/knowledge.js +68 -0
  169. package/dist/modules/contractspec-workspace/dist/templates/migration.js +60 -0
  170. package/dist/modules/contractspec-workspace/dist/templates/operation.js +100 -0
  171. package/dist/modules/contractspec-workspace/dist/templates/presentation.js +78 -0
  172. package/dist/modules/contractspec-workspace/dist/templates/telemetry.js +89 -0
  173. package/dist/modules/contractspec-workspace/dist/templates/utils.js +38 -0
  174. package/dist/modules/contractspec-workspace/dist/templates/workflow-runner.js +48 -0
  175. package/dist/modules/contractspec-workspace/dist/templates/workflow.js +67 -0
  176. package/dist/modules/contractspec-workspace/dist/types/generation-types.js +20 -0
  177. package/dist/services/agent-guide/adapters/claude-code.js +144 -3
  178. package/dist/services/agent-guide/adapters/cursor-cli.js +135 -3
  179. package/dist/services/agent-guide/adapters/generic-mcp.js +159 -3
  180. package/dist/services/agent-guide/adapters/index.js +30 -1
  181. package/dist/services/agent-guide/agent-guide-service.js +148 -1
  182. package/dist/services/agent-guide/index.js +5 -1
  183. package/dist/services/build.js +140 -1
  184. package/dist/services/ci-check/ci-check-service.js +393 -1
  185. package/dist/services/ci-check/index.js +2 -1
  186. package/dist/services/ci-check/types.js +28 -1
  187. package/dist/services/clean.js +71 -1
  188. package/dist/services/config.js +76 -1
  189. package/dist/services/deps.js +62 -1
  190. package/dist/services/diff.js +33 -1
  191. package/dist/services/doctor/checks/ai.js +118 -2
  192. package/dist/services/doctor/checks/cli.js +146 -1
  193. package/dist/services/doctor/checks/config.js +170 -1
  194. package/dist/services/doctor/checks/deps.js +180 -1
  195. package/dist/services/doctor/checks/index.js +6 -1
  196. package/dist/services/doctor/checks/mcp.js +144 -1
  197. package/dist/services/doctor/checks/workspace.js +243 -1
  198. package/dist/services/doctor/doctor-service.js +115 -2
  199. package/dist/services/doctor/index.js +2 -1
  200. package/dist/services/doctor/types.js +26 -1
  201. package/dist/services/implementation/discovery.js +143 -2
  202. package/dist/services/implementation/index.js +2 -1
  203. package/dist/services/implementation/resolver.js +223 -1
  204. package/dist/services/index.js +53 -1
  205. package/dist/services/integrity-diagram.js +274 -6
  206. package/dist/services/integrity.js +272 -1
  207. package/dist/services/list.js +35 -1
  208. package/dist/services/openapi/export-service.js +51 -2
  209. package/dist/services/openapi/import-service.js +75 -1
  210. package/dist/services/openapi/index.js +4 -1
  211. package/dist/services/openapi/sync-service.js +121 -1
  212. package/dist/services/openapi/validate-service.js +130 -1
  213. package/dist/services/regenerator.js +23 -1
  214. package/dist/services/registry.js +73 -1
  215. package/dist/services/setup/config-generators.js +113 -26
  216. package/dist/services/setup/file-merger.js +60 -2
  217. package/dist/services/setup/index.js +4 -1
  218. package/dist/services/setup/setup-service.js +95 -1
  219. package/dist/services/setup/targets/agents-md.js +46 -1
  220. package/dist/services/setup/targets/cli-config.js +59 -1
  221. package/dist/services/setup/targets/cursor-rules.js +47 -1
  222. package/dist/services/setup/targets/mcp-claude.js +59 -1
  223. package/dist/services/setup/targets/mcp-cursor.js +58 -1
  224. package/dist/services/setup/targets/vscode-settings.js +62 -1
  225. package/dist/services/setup/types.js +26 -1
  226. package/dist/services/sync.js +62 -1
  227. package/dist/services/test.js +30 -1
  228. package/dist/services/validate-implementation.js +69 -1
  229. package/dist/services/validate.js +47 -1
  230. package/dist/services/verification-cache/adapters/filesystem.js +121 -1
  231. package/dist/services/verification-cache/adapters/in-memory.js +45 -1
  232. package/dist/services/verification-cache/adapters/index.js +3 -1
  233. package/dist/services/verification-cache/adapters/workspace-state.js +90 -1
  234. package/dist/services/verification-cache/cache-service.js +255 -1
  235. package/dist/services/verification-cache/index.js +6 -1
  236. package/dist/services/verification-cache/types.js +15 -1
  237. package/dist/services/verify/ai-verifier.js +336 -9
  238. package/dist/services/verify/behavior-verifier.js +185 -1
  239. package/dist/services/verify/index.js +4 -1
  240. package/dist/services/verify/structure-verifier.js +195 -2
  241. package/dist/services/verify/verify-service.js +203 -3
  242. package/dist/services/watch.js +31 -1
  243. package/dist/services/workspace-info.js +102 -2
  244. package/dist/templates/app-config.template.js +101 -28
  245. package/dist/templates/data-view.template.js +42 -27
  246. package/dist/templates/event.template.js +29 -14
  247. package/dist/templates/experiment.template.js +77 -51
  248. package/dist/templates/handler.template.js +53 -17
  249. package/dist/templates/index.js +36 -1
  250. package/dist/templates/integration.template.js +134 -50
  251. package/dist/templates/knowledge.template.js +62 -21
  252. package/dist/templates/migration.template.js +50 -26
  253. package/dist/templates/operation.template.js +44 -28
  254. package/dist/templates/presentation.template.js +46 -20
  255. package/dist/templates/telemetry.template.js +74 -53
  256. package/dist/templates/workflow-runner.template.js +12 -6
  257. package/dist/templates/workflow.template.js +51 -24
  258. package/package.json +13 -9
  259. package/dist/adapters/index.d.ts +0 -7
  260. package/dist/ports/index.d.ts +0 -5
  261. package/dist/services/agent-guide/index.d.ts +0 -6
  262. package/dist/services/ci-check/index.d.ts +0 -2
  263. package/dist/services/doctor/index.d.ts +0 -2
  264. package/dist/services/implementation/index.d.ts +0 -3
  265. package/dist/services/index.d.ts +0 -56
  266. package/dist/services/openapi/index.d.ts +0 -5
  267. package/dist/services/verification-cache/adapters/index.d.ts +0 -3
  268. package/dist/services/verification-cache/index.d.ts +0 -6
  269. package/dist/services/verify/index.d.ts +0 -5
@@ -1,69 +1,90 @@
1
- function e(e){let i=t(e.name.split(`.`).pop()??`Telemetry`)+`Telemetry`,a=e.providers?.length?`providers: [
2
- ${e.providers.map(e=>` {
3
- type: '${e.type}',
4
- config: ${r(e.config)},
5
- }`).join(`,
6
- `)}
7
- ],`:``,o=e.events.map(e=>{let t=e.properties.map(e=>` '${e.name}': {
8
- type: '${e.type}',
9
- ${e.required?`required: true,`:``}
10
- ${e.pii?`pii: true,`:``}
11
- ${e.redact?`redact: true,`:``}
12
- ${e.description?`description: '${n(e.description)}',`:``}
13
- }`).join(`,
14
- `),r=e.anomalyRules?.length?` anomalyDetection: {
1
+ //#region src/templates/telemetry.template.ts
2
+ function generateTelemetrySpec(data) {
3
+ const specVar = toPascalCase(data.name.split(".").pop() ?? "Telemetry") + "Telemetry";
4
+ const providers = data.providers?.length ? `providers: [
5
+ ${data.providers.map((provider) => ` {
6
+ type: '${provider.type}',
7
+ config: ${formatConfigValue(provider.config)},
8
+ }`).join(",\n")}
9
+ ],` : "";
10
+ const events = data.events.map((event) => {
11
+ const properties = event.properties.map((prop) => ` '${prop.name}': {
12
+ type: '${prop.type}',
13
+ ${prop.required ? "required: true," : ""}
14
+ ${prop.pii ? "pii: true," : ""}
15
+ ${prop.redact ? "redact: true," : ""}
16
+ ${prop.description ? `description: '${escapeString(prop.description)}',` : ""}
17
+ }`).join(",\n");
18
+ const anomalyRules = event.anomalyRules?.length ? ` anomalyDetection: {
15
19
  enabled: true,
16
- ${typeof e.anomalyMinimumSample==`number`?`minimumSample: ${e.anomalyMinimumSample},`:``}
20
+ ${typeof event.anomalyMinimumSample === "number" ? `minimumSample: ${event.anomalyMinimumSample},` : ""}
17
21
  thresholds: [
18
- ${e.anomalyRules.map(e=>` {
19
- metric: '${n(e.metric)}',
20
- ${typeof e.min==`number`?`min: ${e.min},`:``}
21
- ${typeof e.max==`number`?`max: ${e.max},`:``}
22
- }`).join(`,
23
- `)}
22
+ ${event.anomalyRules.map((rule) => ` {
23
+ metric: '${escapeString(rule.metric)}',
24
+ ${typeof rule.min === "number" ? `min: ${rule.min},` : ""}
25
+ ${typeof rule.max === "number" ? `max: ${rule.max},` : ""}
26
+ }`).join(",\n")}
24
27
  ],
25
- actions: [${(e.anomalyActions??[]).map(e=>`'${e}'`).join(`, `)}],
26
- },`:e.anomalyEnabled?` anomalyDetection: {
28
+ actions: [${(event.anomalyActions ?? []).map((action) => `'${action}'`).join(", ")}],
29
+ },` : event.anomalyEnabled ? ` anomalyDetection: {
27
30
  enabled: true,
28
- ${typeof e.anomalyMinimumSample==`number`?`minimumSample: ${e.anomalyMinimumSample},`:``}
29
- },`:``;return` {
30
- name: '${n(e.name)}',
31
- version: ${e.version},
31
+ ${typeof event.anomalyMinimumSample === "number" ? `minimumSample: ${event.anomalyMinimumSample},` : ""}
32
+ },` : "";
33
+ return ` {
34
+ name: '${escapeString(event.name)}',
35
+ version: ${event.version},
32
36
  semantics: {
33
- what: '${n(e.what)}',
34
- ${e.who?`who: '${n(e.who)}',`:``}
35
- ${e.why?`why: '${n(e.why)}',`:``}
37
+ what: '${escapeString(event.what)}',
38
+ ${event.who ? `who: '${escapeString(event.who)}',` : ""}
39
+ ${event.why ? `why: '${escapeString(event.why)}',` : ""}
36
40
  },
37
- privacy: '${e.privacy}',
41
+ privacy: '${event.privacy}',
38
42
  properties: {
39
- ${t}
43
+ ${properties}
40
44
  },
41
- ${typeof e.retentionDays==`number`?`retention: { days: ${e.retentionDays}, ${e.retentionPolicy?`policy: '${e.retentionPolicy}'`:``} },`:``}
42
- ${typeof e.samplingRate==`number`?`sampling: { rate: ${e.samplingRate}${e.samplingConditions?`, conditions: ['${n(e.samplingConditions)}']`:``} },`:``}
43
- ${r}
44
- ${e.tags?.length?`tags: [${e.tags.map(e=>`'${n(e)}'`).join(`, `)}],`:``}
45
- }`}).join(`,
46
- `);return`import type { TelemetrySpec } from '@lssm/lib.contracts/telemetry';
45
+ ${typeof event.retentionDays === "number" ? `retention: { days: ${event.retentionDays}, ${event.retentionPolicy ? `policy: '${event.retentionPolicy}'` : ""} },` : ""}
46
+ ${typeof event.samplingRate === "number" ? `sampling: { rate: ${event.samplingRate}${event.samplingConditions ? `, conditions: ['${escapeString(event.samplingConditions)}']` : ""} },` : ""}
47
+ ${anomalyRules}
48
+ ${event.tags?.length ? `tags: [${event.tags.map((tag) => `'${escapeString(tag)}'`).join(", ")}],` : ""}
49
+ }`;
50
+ }).join(",\n");
51
+ return `import type { TelemetrySpec } from '@lssm/lib.contracts/telemetry';
47
52
 
48
- export const ${i}: TelemetrySpec = {
53
+ export const ${specVar}: TelemetrySpec = {
49
54
  meta: {
50
- name: '${n(e.name)}',
51
- version: ${e.version},
52
- title: '${n(e.name)} telemetry',
53
- description: '${n(e.description||`Describe the purpose of this telemetry spec.`)}',
54
- domain: '${n(e.domain)}',
55
- owners: [${e.owners.map(e=>`'${n(e)}'`).join(`, `)}],
56
- tags: [${e.tags.map(e=>`'${n(e)}'`).join(`, `)}],
57
- stability: '${e.stability}',
55
+ name: '${escapeString(data.name)}',
56
+ version: ${data.version},
57
+ title: '${escapeString(data.name)} telemetry',
58
+ description: '${escapeString(data.description || "Describe the purpose of this telemetry spec.")}',
59
+ domain: '${escapeString(data.domain)}',
60
+ owners: [${data.owners.map((owner) => `'${escapeString(owner)}'`).join(", ")}],
61
+ tags: [${data.tags.map((tag) => `'${escapeString(tag)}'`).join(", ")}],
62
+ stability: '${data.stability}',
58
63
  },
59
64
  config: {
60
- ${typeof e.defaultRetentionDays==`number`?`defaultRetentionDays: ${e.defaultRetentionDays},`:``}
61
- ${typeof e.defaultSamplingRate==`number`?`defaultSamplingRate: ${e.defaultSamplingRate},`:``}
62
- ${e.anomalyEnabled?`anomalyDetection: { enabled: true${typeof e.anomalyCheckIntervalMs==`number`?`, checkIntervalMs: ${e.anomalyCheckIntervalMs}`:``} },`:``}
63
- ${a}
65
+ ${typeof data.defaultRetentionDays === "number" ? `defaultRetentionDays: ${data.defaultRetentionDays},` : ""}
66
+ ${typeof data.defaultSamplingRate === "number" ? `defaultSamplingRate: ${data.defaultSamplingRate},` : ""}
67
+ ${data.anomalyEnabled ? `anomalyDetection: { enabled: true${typeof data.anomalyCheckIntervalMs === "number" ? `, checkIntervalMs: ${data.anomalyCheckIntervalMs}` : ""} },` : ""}
68
+ ${providers}
64
69
  },
65
70
  events: [
66
- ${o}
71
+ ${events}
67
72
  ],
68
73
  };
69
- `}function t(e){return e.split(/[-_.]/).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``)}function n(e){return e.replace(/\\/g,`\\\\`).replace(/'/g,`\\'`)}function r(e){let t=e.trim();return t?t.startsWith(`{`)&&t.endsWith(`}`)||t.startsWith(`[`)&&t.endsWith(`]`)?t:`'${n(t)}'`:`{}`}export{e as generateTelemetrySpec};
74
+ `;
75
+ }
76
+ function toPascalCase(value) {
77
+ return value.split(/[-_.]/).filter(Boolean).map((part) => part.charAt(0).toUpperCase() + part.slice(1)).join("");
78
+ }
79
+ function escapeString(value) {
80
+ return value.replace(/\\/g, "\\\\").replace(/'/g, "\\'");
81
+ }
82
+ function formatConfigValue(value) {
83
+ const trimmed = value.trim();
84
+ if (!trimmed) return "{}";
85
+ if (trimmed.startsWith("{") && trimmed.endsWith("}") || trimmed.startsWith("[") && trimmed.endsWith("]")) return trimmed;
86
+ return `'${escapeString(trimmed)}'`;
87
+ }
88
+
89
+ //#endregion
90
+ export { generateTelemetrySpec };
@@ -1,12 +1,14 @@
1
- function e({exportName:e,specImportPath:t,runnerName:n,workflowName:r}){return`import {
1
+ //#region src/templates/workflow-runner.template.ts
2
+ function generateWorkflowRunnerTemplate({ exportName, specImportPath, runnerName, workflowName }) {
3
+ return `import {
2
4
  InMemoryStateStore,
3
5
  WorkflowRegistry,
4
6
  WorkflowRunner,
5
7
  } from '@lssm/lib.contracts/workflow';
6
- import { ${e} } from '${t}';
8
+ import { ${exportName} } from '${specImportPath}';
7
9
 
8
10
  /**
9
- * Runner wiring for ${r}.
11
+ * Runner wiring for ${workflowName}.
10
12
  *
11
13
  * TODO:
12
14
  * - Replace the in-memory state store with a persistent adapter if needed.
@@ -14,11 +16,11 @@ import { ${e} } from '${t}';
14
16
  * - Wire eventEmitter to analytics/telemetry sinks.
15
17
  */
16
18
  const registry = new WorkflowRegistry();
17
- registry.register(${e});
19
+ registry.register(${exportName});
18
20
 
19
21
  const stateStore = new InMemoryStateStore();
20
22
 
21
- export const ${n} = new WorkflowRunner({
23
+ export const ${runnerName} = new WorkflowRunner({
22
24
  registry,
23
25
  stateStore,
24
26
  opExecutor: async (operation, input, ctx) => {
@@ -40,4 +42,8 @@ export const ${n} = new WorkflowRunner({
40
42
  // console.log(event, payload);
41
43
  },
42
44
  });
43
- `}export{e as generateWorkflowRunnerTemplate};
45
+ `;
46
+ }
47
+
48
+ //#endregion
49
+ export { generateWorkflowRunnerTemplate };
@@ -1,10 +1,13 @@
1
- function e(e){let i=n(e.name.split(`.`).pop()??`Workflow`)+`Workflow`,a=e.steps.map(e=>t(e)).join(`,
2
- `),o=e.transitions.map(e=>` {
3
- from: '${e.from}',
4
- to: '${e.to}',
5
- ${e.condition?` condition: '${r(e.condition)}',`:``}
6
- }`).join(`,
7
- `);return`import type { WorkflowSpec } from '@lssm/lib.contracts/workflow';
1
+ //#region src/templates/workflow.template.ts
2
+ function generateWorkflowSpec(data) {
3
+ const specVarName = toPascalCase(data.name.split(".").pop() ?? "Workflow") + "Workflow";
4
+ const stepsCode = data.steps.map((step) => formatStep(step)).join(",\n");
5
+ const transitionsCode = data.transitions.map((transition) => ` {
6
+ from: '${transition.from}',
7
+ to: '${transition.to}',
8
+ ${transition.condition ? ` condition: '${escapeString(transition.condition)}',` : ""}
9
+ }`).join(",\n");
10
+ return `import type { WorkflowSpec } from '@lssm/lib.contracts/workflow';
8
11
 
9
12
  /**
10
13
  * Workflow generated via contractspec CLI.
@@ -14,28 +17,52 @@ ${e.condition?` condition: '${r(e.condition)}',`:``}
14
17
  * - Provide form renderers for human steps.
15
18
  * - Add guards/conditions as needed.
16
19
  */
17
- export const ${i}: WorkflowSpec = {
20
+ export const ${specVarName}: WorkflowSpec = {
18
21
  meta: {
19
- name: '${e.name}',
20
- version: ${e.version},
21
- title: '${r(e.title)}',
22
- description: '${r(e.description)}',
23
- domain: '${r(e.domain)}',
24
- stability: '${e.stability}',
25
- owners: [${e.owners.map(e=>`'${e}'`).join(`, `)}],
26
- tags: [${e.tags.map(e=>`'${e}'`).join(`, `)}],
22
+ name: '${data.name}',
23
+ version: ${data.version},
24
+ title: '${escapeString(data.title)}',
25
+ description: '${escapeString(data.description)}',
26
+ domain: '${escapeString(data.domain)}',
27
+ stability: '${data.stability}',
28
+ owners: [${data.owners.map((owner) => `'${owner}'`).join(", ")}],
29
+ tags: [${data.tags.map((tag) => `'${tag}'`).join(", ")}],
27
30
  },
28
31
  definition: {
29
- ${e.entryStepId?` entryStepId: '${e.entryStepId}',\n`:``} steps: [
30
- ${a}
32
+ ${data.entryStepId ? ` entryStepId: '${data.entryStepId}',\n` : ""} steps: [
33
+ ${stepsCode}
31
34
  ],
32
35
  transitions: [
33
- ${o}
36
+ ${transitionsCode}
34
37
  ],
35
38
  },
36
- ${e.policyFlags.length>0?`policy: {
37
- flags: [${e.policyFlags.map(e=>`'${e}'`).join(`, `)}],
38
- },`:`// policy: { flags: [] },`}
39
+ ${data.policyFlags.length > 0 ? `policy: {
40
+ flags: [${data.policyFlags.map((flag) => `'${flag}'`).join(", ")}],
41
+ },` : "// policy: { flags: [] },"}
39
42
  };
40
- `}function t(e){let t=[` {`,` id: '${e.id}',`,` type: '${e.type}',`,` label: '${r(e.label)}',`];e.description&&t.push(` description: '${r(e.description)}',`);let n=[];return e.operation&&n.push(`operation: { name: '${e.operation.name}', version: ${e.operation.version} }`),e.form&&n.push(`form: { key: '${e.form.key}', version: ${e.form.version} }`),n.length&&t.push(` action: { ${n.join(`, `)} },`),t.push(` }`),t.join(`
41
- `)}function n(e){return e.split(/[-_.]/).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``)}function r(e){return e.replace(/'/g,`\\'`)}export{e as generateWorkflowSpec};
43
+ `;
44
+ }
45
+ function formatStep(step) {
46
+ const lines = [
47
+ ` {`,
48
+ ` id: '${step.id}',`,
49
+ ` type: '${step.type}',`,
50
+ ` label: '${escapeString(step.label)}',`
51
+ ];
52
+ if (step.description) lines.push(` description: '${escapeString(step.description)}',`);
53
+ const actionLines = [];
54
+ if (step.operation) actionLines.push(`operation: { name: '${step.operation.name}', version: ${step.operation.version} }`);
55
+ if (step.form) actionLines.push(`form: { key: '${step.form.key}', version: ${step.form.version} }`);
56
+ if (actionLines.length) lines.push(` action: { ${actionLines.join(", ")} },`);
57
+ lines.push(` }`);
58
+ return lines.join("\n");
59
+ }
60
+ function toPascalCase(value) {
61
+ return value.split(/[-_.]/).filter(Boolean).map((part) => part.charAt(0).toUpperCase() + part.slice(1)).join("");
62
+ }
63
+ function escapeString(value) {
64
+ return value.replace(/'/g, "\\'");
65
+ }
66
+
67
+ //#endregion
68
+ export { generateWorkflowSpec };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/bundle.contractspec-workspace",
3
- "version": "0.0.0-canary-20251217060834",
3
+ "version": "0.0.0-canary-20251217072406",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -23,20 +23,24 @@
23
23
  "test": "bun run"
24
24
  },
25
25
  "dependencies": {
26
- "@lssm/module.contractspec-workspace": "0.0.0-canary-20251217060834",
27
- "@lssm/lib.contracts": "0.0.0-canary-20251217060834",
28
- "@lssm/lib.contracts-transformers": "0.0.0-canary-20251217060834",
29
- "@lssm/lib.ai-providers": "0.0.0-canary-20251217060834",
30
- "@lssm/lib.schema": "0.0.0-canary-20251217060834",
31
- "@lssm/lib.testing": "0.0.0-canary-20251217060834",
26
+ "@ai-sdk/anthropic": "beta",
27
+ "@ai-sdk/google": "beta",
28
+ "@ai-sdk/mistral": "beta",
29
+ "@ai-sdk/openai": "beta",
30
+ "@lssm/module.contractspec-workspace": "0.0.0-canary-20251217072406",
31
+ "@lssm/lib.contracts": "0.0.0-canary-20251217072406",
32
+ "@lssm/lib.contracts-transformers": "0.0.0-canary-20251217072406",
33
+ "@lssm/lib.ai-providers": "0.0.0-canary-20251217072406",
34
+ "@lssm/lib.schema": "0.0.0-canary-20251217072406",
35
+ "@lssm/lib.testing": "0.0.0-canary-20251217072406",
32
36
  "ai": "beta",
33
37
  "zod": "^4.1.13",
34
38
  "glob": "^13.0.0",
35
39
  "chokidar": "^4.0.1"
36
40
  },
37
41
  "devDependencies": {
38
- "@lssm/tool.tsdown": "0.0.0-canary-20251217060834",
39
- "@lssm/tool.typescript": "0.0.0-canary-20251217060834",
42
+ "@lssm/tool.tsdown": "0.0.0-canary-20251217072406",
43
+ "@lssm/tool.typescript": "0.0.0-canary-20251217072406",
40
44
  "@types/node": "^22.10.2",
41
45
  "tsdown": "^0.17.4",
42
46
  "typescript": "^5.9.3"
@@ -1,7 +0,0 @@
1
- import { createNodeFsAdapter } from "./fs.js";
2
- import { createNodeGitAdapter } from "./git.js";
3
- import { createNodeWatcherAdapter } from "./watcher.js";
4
- import { createNodeAiAdapter } from "./ai.js";
5
- import { createConsoleLoggerAdapter, createNoopLoggerAdapter } from "./logger.js";
6
- import { CreateAdaptersOptions, createNodeAdapters } from "./factory.js";
7
- import { PackageManager, WorkspaceInfo, detectPackageManager, findPackageRoot, findWorkspaceRoot, getExecCommand, getInstallCommand, getPackageName, getRunCommand, getWorkspaceInfo, getWorkspacePackages, isMonorepo } from "./workspace.js";
@@ -1,5 +0,0 @@
1
- import { DiscoverOptions, FileStat, FsAdapter } from "./fs.js";
2
- import { GitAdapter, GitCleanOptions } from "./git.js";
3
- import { WatchEvent, WatchEventHandler, WatchEventType, WatchOptions, Watcher, WatcherAdapter } from "./watcher.js";
4
- import { AiAdapter, AiGenerateOptions, AiGenerateResult, AiGenerateStructuredOptions, AiValidationResult } from "./ai.js";
5
- import { LogLevel, LoggerAdapter, ProgressReporter, ProgressUpdate, WorkspaceAdapters } from "./logger.js";
@@ -1,6 +0,0 @@
1
- import { AgentAdapter, AgentGuideConfig, FormatOptions, GuideOptions, GuideResult } from "./types.js";
2
- import { AgentGuideService, agentGuideService, createAgentGuideService } from "./agent-guide-service.js";
3
- import { ClaudeCodeAdapter, claudeCodeAdapter } from "./adapters/claude-code.js";
4
- import { CursorCLIAdapter, cursorCLIAdapter } from "./adapters/cursor-cli.js";
5
- import { GenericMCPAdapter, genericMCPAdapter } from "./adapters/generic-mcp.js";
6
- import { agentAdapters, getAgentAdapter, listAgentTypes } from "./adapters/index.js";
@@ -1,2 +0,0 @@
1
- import { ALL_CI_CHECK_CATEGORIES, CICheckCategory, CICheckCategorySummary, CICheckOptions, CICheckResult, CIFormatOptions, CIIssue, CIIssueSeverity, CIOutputFormat, CI_CHECK_CATEGORY_LABELS } from "./types.js";
2
- import { runCIChecks } from "./ci-check-service.js";
@@ -1,2 +0,0 @@
1
- import { ALL_CHECK_CATEGORIES, CHECK_CATEGORY_LABELS, CheckCategory, CheckContext, CheckResult, CheckStatus, DoctorOptions, DoctorPromptCallbacks, DoctorResult, FixAction, FixResult } from "./types.js";
2
- import { formatCheckResult, formatDoctorSummary, runDoctor } from "./doctor-service.js";
@@ -1,3 +0,0 @@
1
- import { DiscoveryOptions, ImplementationSource, ImplementationStatus, ResolvedImplementation, SpecImplementationResult, SpecReferenceMatch } from "./types.js";
2
- import { discoverAllImplementations, discoverImplementationsForSpec, extractSpecReferences, inferImplementationType } from "./discovery.js";
3
- import { ResolverOptions, getImplementationSummary, resolveAllImplementations, resolveImplementations } from "./resolver.js";
@@ -1,56 +0,0 @@
1
- import { PackageManager, WorkspaceInfo, detectPackageManager, findPackageRoot, findWorkspaceRoot, getWorkspaceInfo } from "../adapters/workspace.js";
2
- import { ValidateSpecOptions, ValidateSpecResult, validateSpec, validateSpecs } from "./validate.js";
3
- import { ValidateImplementationOptions, ValidateImplementationResult, validateImplementationFiles } from "./validate-implementation.js";
4
- import { CompareSpecsOptions, CompareSpecsResult, compareSpecs } from "./diff.js";
5
- import { AnalyzeDepsOptions, AnalyzeDepsResult, analyzeDeps, exportGraphAsDot, getContractNode, getGraphStats } from "./deps.js";
6
- import { ListSpecsOptions, groupSpecsByType, listSpecs } from "./list.js";
7
- import { getApiKey, loadWorkspaceConfig, mergeWorkspaceConfig } from "./config.js";
8
- import { BuildSpecOptions, BuildSpecResult, BuildTarget, BuildTargetResult, buildSpec } from "./build.js";
9
- import { OpenApiExportServiceOptions, OpenApiExportServiceResult, OpenApiImportServiceOptions, OpenApiImportServiceResult, OpenApiSourceConfig, OpenApiSyncServiceOptions, OpenApiSyncServiceResult, OpenApiValidateServiceOptions, OpenApiValidateServiceResult } from "./openapi/types.js";
10
- import { importFromOpenApiService } from "./openapi/import-service.js";
11
- import { syncWithOpenApiService } from "./openapi/sync-service.js";
12
- import { validateAgainstOpenApiService } from "./openapi/validate-service.js";
13
- import { OpenApiExportOptions, OpenApiExportResult, exportOpenApi } from "./openapi/export-service.js";
14
- import "./openapi/index.js";
15
- import { RegistryClient, RegistryClientOptions, addToRegistry, listFromRegistry, resolveRegistryUrl, searchRegistry } from "./registry.js";
16
- import { SyncBuildFn, SyncSpecsOptions, SyncSpecsResult, SyncSpecsRunResult, SyncValidateFn, syncSpecs } from "./sync.js";
17
- import { WatchBuildFn, WatchSpecsOptions, WatchValidateFn, watchSpecs } from "./watch.js";
18
- import { CleanOptions, CleanResult, cleanArtifacts } from "./clean.js";
19
- import { RunTestsResult, TestRunResult, runTests } from "./test.js";
20
- import { CreateRegeneratorOptions, createRegeneratorService } from "./regenerator.js";
21
- import { ExtendedWorkspaceInfo, MonorepoConfig, findAllConfigFiles, formatWorkspaceInfo, getExtendedWorkspaceInfo, mergeMonorepoConfigs } from "./workspace-info.js";
22
- import { CoverageByType, IntegrityAnalysisOptions, IntegrityAnalysisResult, IntegrityIssue, SpecInventory, SpecLocation, analyzeIntegrity, filterIssuesBySeverity, filterIssuesByType, getAllSpecs } from "./integrity.js";
23
- import { DiagramOptions, DiagramType, generateMermaidDiagram } from "./integrity-diagram.js";
24
- import { ALL_SETUP_TARGETS, SETUP_TARGET_LABELS, SetupFileResult, SetupOptions, SetupPromptCallbacks, SetupResult, SetupScope, SetupTarget } from "./setup/types.js";
25
- import { runSetup } from "./setup/setup-service.js";
26
- import { generateAgentsMd, generateClaudeMcpConfig, generateContractsrcConfig, generateCursorMcpConfig, generateCursorRules, generateVscodeSettings, getClaudeDesktopConfigPath } from "./setup/config-generators.js";
27
- import { deepMergeOverwrite, deepMergePreserve, formatJson, safeParseJson } from "./setup/file-merger.js";
28
- import { ALL_CHECK_CATEGORIES, CHECK_CATEGORY_LABELS, CheckCategory, CheckContext, CheckResult, CheckStatus, DoctorOptions, DoctorPromptCallbacks, DoctorResult, FixAction, FixResult } from "./doctor/types.js";
29
- import { formatCheckResult, formatDoctorSummary, runDoctor } from "./doctor/doctor-service.js";
30
- import "./doctor/index.js";
31
- import { ALL_CI_CHECK_CATEGORIES, CICheckCategory, CICheckCategorySummary, CICheckOptions, CICheckResult, CIFormatOptions, CIIssue, CIIssueSeverity, CIOutputFormat, CI_CHECK_CATEGORY_LABELS } from "./ci-check/types.js";
32
- import { runCIChecks } from "./ci-check/ci-check-service.js";
33
- import "./ci-check/index.js";
34
- import { AgentAdapter, AgentGuideConfig, FormatOptions, GuideOptions, GuideResult } from "./agent-guide/types.js";
35
- import { AgentGuideService, agentGuideService, createAgentGuideService } from "./agent-guide/agent-guide-service.js";
36
- import { ClaudeCodeAdapter, claudeCodeAdapter } from "./agent-guide/adapters/claude-code.js";
37
- import { CursorCLIAdapter, cursorCLIAdapter } from "./agent-guide/adapters/cursor-cli.js";
38
- import { GenericMCPAdapter, genericMCPAdapter } from "./agent-guide/adapters/generic-mcp.js";
39
- import { agentAdapters, getAgentAdapter, listAgentTypes } from "./agent-guide/adapters/index.js";
40
- import "./agent-guide/index.js";
41
- import { AIReviewResult, BehaviorCheck, FieldMapping, FieldMatchType, IntentAlignment, SemanticVerificationResult, StructureCheck, VerifyConfig, VerifyInput, VerifyOptions, VerifyResult } from "./verify/types.js";
42
- import { VerifyService, createVerifyService, verifyService } from "./verify/verify-service.js";
43
- import { verifyStructure } from "./verify/structure-verifier.js";
44
- import { verifyBehavior } from "./verify/behavior-verifier.js";
45
- import { createQuickAIReview, verifySemanticFields, verifyWithAI, verifyWithAIEnhanced } from "./verify/ai-verifier.js";
46
- import "./verify/index.js";
47
- import { DiscoveryOptions, ImplementationSource, ImplementationStatus, ResolvedImplementation, SpecImplementationResult, SpecReferenceMatch } from "./implementation/types.js";
48
- import { discoverAllImplementations, discoverImplementationsForSpec, extractSpecReferences, inferImplementationType } from "./implementation/discovery.js";
49
- import { ResolverOptions, getImplementationSummary, resolveAllImplementations, resolveImplementations } from "./implementation/resolver.js";
50
- import "./implementation/index.js";
51
- import { CacheEntryMeta, CacheKeyString, CacheLookupResult, CacheMissReason, CacheStats, CacheStorageAdapter, DEFAULT_CACHE_CONFIG, VerificationCacheConfig, VerificationCacheEntry, VerificationCacheKey } from "./verification-cache/types.js";
52
- import { VerificationCacheService, cacheKeyToString, computeContentHash, createVerificationCacheService, stringToCacheKey } from "./verification-cache/cache-service.js";
53
- import { InMemoryCacheStorage, createInMemoryCacheStorage } from "./verification-cache/adapters/in-memory.js";
54
- import { FileSystemCacheStorage, createFileSystemCacheStorage } from "./verification-cache/adapters/filesystem.js";
55
- import { KeyValueStore, WorkspaceStateCacheStorage, createWorkspaceStateCacheStorage } from "./verification-cache/adapters/workspace-state.js";
56
- import "./verification-cache/index.js";
@@ -1,5 +0,0 @@
1
- import { OpenApiExportServiceOptions, OpenApiExportServiceResult, OpenApiImportServiceOptions, OpenApiImportServiceResult, OpenApiSourceConfig, OpenApiSyncServiceOptions, OpenApiSyncServiceResult, OpenApiValidateServiceOptions, OpenApiValidateServiceResult } from "./types.js";
2
- import { importFromOpenApiService } from "./import-service.js";
3
- import { syncWithOpenApiService } from "./sync-service.js";
4
- import { validateAgainstOpenApiService } from "./validate-service.js";
5
- import { OpenApiExportOptions, OpenApiExportResult, exportOpenApi } from "./export-service.js";
@@ -1,3 +0,0 @@
1
- import { InMemoryCacheStorage, createInMemoryCacheStorage } from "./in-memory.js";
2
- import { FileSystemCacheStorage, createFileSystemCacheStorage } from "./filesystem.js";
3
- import { KeyValueStore, WorkspaceStateCacheStorage, createWorkspaceStateCacheStorage } from "./workspace-state.js";
@@ -1,6 +0,0 @@
1
- import { CacheEntryMeta, CacheKeyString, CacheLookupResult, CacheMissReason, CacheStats, CacheStorageAdapter, DEFAULT_CACHE_CONFIG, VerificationCacheConfig, VerificationCacheEntry, VerificationCacheKey } from "./types.js";
2
- import { VerificationCacheService, cacheKeyToString, computeContentHash, createVerificationCacheService, stringToCacheKey } from "./cache-service.js";
3
- import { InMemoryCacheStorage, createInMemoryCacheStorage } from "./adapters/in-memory.js";
4
- import { FileSystemCacheStorage, createFileSystemCacheStorage } from "./adapters/filesystem.js";
5
- import { KeyValueStore, WorkspaceStateCacheStorage, createWorkspaceStateCacheStorage } from "./adapters/workspace-state.js";
6
- import "./adapters/index.js";
@@ -1,5 +0,0 @@
1
- import { AIReviewResult, BehaviorCheck, FieldMapping, FieldMatchType, IntentAlignment, SemanticVerificationResult, StructureCheck, VerifyConfig, VerifyInput, VerifyOptions, VerifyResult } from "./types.js";
2
- import { VerifyService, createVerifyService, verifyService } from "./verify-service.js";
3
- import { verifyStructure } from "./structure-verifier.js";
4
- import { verifyBehavior } from "./behavior-verifier.js";
5
- import { createQuickAIReview, verifySemanticFields, verifyWithAI, verifyWithAIEnhanced } from "./ai-verifier.js";