@contractspec/module.workspace 1.57.0 → 1.58.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 (248) hide show
  1. package/dist/ai/code-generation.d.ts +25 -0
  2. package/dist/ai/code-generation.d.ts.map +1 -0
  3. package/dist/ai/index.d.ts +5 -0
  4. package/dist/ai/index.d.ts.map +1 -0
  5. package/dist/ai/prompts/code-generation.d.ts +5 -8
  6. package/dist/ai/prompts/code-generation.d.ts.map +1 -1
  7. package/dist/ai/prompts/index.d.ts +3 -0
  8. package/dist/ai/prompts/index.d.ts.map +1 -0
  9. package/dist/ai/prompts/spec-creation.d.ts +7 -11
  10. package/dist/ai/prompts/spec-creation.d.ts.map +1 -1
  11. package/dist/ai/spec-creation.d.ts +27 -0
  12. package/dist/ai/spec-creation.d.ts.map +1 -0
  13. package/dist/analysis/deps/graph.d.ts +14 -13
  14. package/dist/analysis/deps/graph.d.ts.map +1 -1
  15. package/dist/analysis/deps/index.d.ts +6 -0
  16. package/dist/analysis/deps/index.d.ts.map +1 -0
  17. package/dist/analysis/deps/parse-imports.d.ts +1 -4
  18. package/dist/analysis/deps/parse-imports.d.ts.map +1 -1
  19. package/dist/analysis/diff/deep-diff.d.ts +17 -15
  20. package/dist/analysis/diff/deep-diff.d.ts.map +1 -1
  21. package/dist/analysis/diff/deep-diff.test.d.ts +5 -0
  22. package/dist/analysis/diff/deep-diff.test.d.ts.map +1 -0
  23. package/dist/analysis/diff/index.d.ts +6 -0
  24. package/dist/analysis/diff/index.d.ts.map +1 -0
  25. package/dist/analysis/diff/semantic.d.ts +6 -6
  26. package/dist/analysis/diff/semantic.d.ts.map +1 -1
  27. package/dist/analysis/example-scan.d.ts +3 -7
  28. package/dist/analysis/example-scan.d.ts.map +1 -1
  29. package/dist/analysis/example-scan.test.d.ts +7 -0
  30. package/dist/analysis/example-scan.test.d.ts.map +1 -0
  31. package/dist/analysis/feature-extractor.d.ts +25 -0
  32. package/dist/analysis/feature-extractor.d.ts.map +1 -0
  33. package/dist/analysis/feature-scan.d.ts +3 -7
  34. package/dist/analysis/feature-scan.d.ts.map +1 -1
  35. package/dist/analysis/feature-scan.test.d.ts +2 -0
  36. package/dist/analysis/feature-scan.test.d.ts.map +1 -0
  37. package/dist/analysis/grouping.d.ts +41 -35
  38. package/dist/analysis/grouping.d.ts.map +1 -1
  39. package/dist/analysis/impact/classifier.d.ts +9 -8
  40. package/dist/analysis/impact/classifier.d.ts.map +1 -1
  41. package/dist/analysis/impact/classifier.test.d.ts +5 -0
  42. package/dist/analysis/impact/classifier.test.d.ts.map +1 -0
  43. package/dist/analysis/impact/index.d.ts +9 -0
  44. package/dist/analysis/impact/index.d.ts.map +1 -0
  45. package/dist/analysis/impact/rules.d.ts +15 -14
  46. package/dist/analysis/impact/rules.d.ts.map +1 -1
  47. package/dist/analysis/impact/types.d.ts +73 -76
  48. package/dist/analysis/impact/types.d.ts.map +1 -1
  49. package/dist/analysis/index.d.ts +14 -0
  50. package/dist/analysis/index.d.ts.map +1 -0
  51. package/dist/analysis/snapshot/index.d.ts +9 -0
  52. package/dist/analysis/snapshot/index.d.ts.map +1 -0
  53. package/dist/analysis/snapshot/normalizer.d.ts +7 -10
  54. package/dist/analysis/snapshot/normalizer.d.ts.map +1 -1
  55. package/dist/analysis/snapshot/snapshot.d.ts +10 -8
  56. package/dist/analysis/snapshot/snapshot.d.ts.map +1 -1
  57. package/dist/analysis/snapshot/snapshot.test.d.ts +5 -0
  58. package/dist/analysis/snapshot/snapshot.test.d.ts.map +1 -0
  59. package/dist/analysis/snapshot/types.d.ts +58 -56
  60. package/dist/analysis/snapshot/types.d.ts.map +1 -1
  61. package/dist/analysis/spec-parser.d.ts +8 -6
  62. package/dist/analysis/spec-parser.d.ts.map +1 -1
  63. package/dist/analysis/spec-parsing-utils.d.ts +20 -10
  64. package/dist/analysis/spec-parsing-utils.d.ts.map +1 -1
  65. package/dist/analysis/spec-scan.d.ts +13 -12
  66. package/dist/analysis/spec-scan.d.ts.map +1 -1
  67. package/dist/analysis/spec-scan.test.d.ts +2 -0
  68. package/dist/analysis/spec-scan.test.d.ts.map +1 -0
  69. package/dist/analysis/utils/matchers.d.ts +39 -0
  70. package/dist/analysis/utils/matchers.d.ts.map +1 -0
  71. package/dist/analysis/utils/variables.d.ts +15 -0
  72. package/dist/analysis/utils/variables.d.ts.map +1 -0
  73. package/dist/analysis/validate/index.d.ts +5 -0
  74. package/dist/analysis/validate/index.d.ts.map +1 -0
  75. package/dist/analysis/validate/spec-structure.d.ts +15 -14
  76. package/dist/analysis/validate/spec-structure.d.ts.map +1 -1
  77. package/dist/analysis/validate/spec-structure.test.d.ts +2 -0
  78. package/dist/analysis/validate/spec-structure.test.d.ts.map +1 -0
  79. package/dist/formatter.d.ts +28 -27
  80. package/dist/formatter.d.ts.map +1 -1
  81. package/dist/formatters/index.d.ts +8 -0
  82. package/dist/formatters/index.d.ts.map +1 -0
  83. package/dist/formatters/spec-markdown.d.ts +13 -11
  84. package/dist/formatters/spec-markdown.d.ts.map +1 -1
  85. package/dist/formatters/spec-markdown.test.d.ts +5 -0
  86. package/dist/formatters/spec-markdown.test.d.ts.map +1 -0
  87. package/dist/formatters/spec-to-docblock.d.ts +4 -8
  88. package/dist/formatters/spec-to-docblock.d.ts.map +1 -1
  89. package/dist/index.d.ts +13 -42
  90. package/dist/index.d.ts.map +1 -0
  91. package/dist/index.js +4302 -38
  92. package/dist/node/index.js +4301 -0
  93. package/dist/templates/app-config.d.ts +2 -6
  94. package/dist/templates/app-config.d.ts.map +1 -1
  95. package/dist/templates/app-config.test.d.ts +2 -0
  96. package/dist/templates/app-config.test.d.ts.map +1 -0
  97. package/dist/templates/data-view.d.ts +2 -6
  98. package/dist/templates/data-view.d.ts.map +1 -1
  99. package/dist/templates/data-view.test.d.ts +2 -0
  100. package/dist/templates/data-view.test.d.ts.map +1 -0
  101. package/dist/templates/event.d.ts +6 -6
  102. package/dist/templates/event.d.ts.map +1 -1
  103. package/dist/templates/event.test.d.ts +2 -0
  104. package/dist/templates/event.test.d.ts.map +1 -0
  105. package/dist/templates/experiment.d.ts +2 -6
  106. package/dist/templates/experiment.d.ts.map +1 -1
  107. package/dist/templates/experiment.test.d.ts +2 -0
  108. package/dist/templates/experiment.test.d.ts.map +1 -0
  109. package/dist/templates/handler.d.ts +3 -6
  110. package/dist/templates/handler.d.ts.map +1 -1
  111. package/dist/templates/handler.test.d.ts +2 -0
  112. package/dist/templates/handler.test.d.ts.map +1 -0
  113. package/dist/templates/index.d.ts +18 -0
  114. package/dist/templates/index.d.ts.map +1 -0
  115. package/dist/templates/integration-utils.d.ts +13 -0
  116. package/dist/templates/integration-utils.d.ts.map +1 -0
  117. package/dist/templates/integration-utils.test.d.ts +2 -0
  118. package/dist/templates/integration-utils.test.d.ts.map +1 -0
  119. package/dist/templates/integration.d.ts +2 -6
  120. package/dist/templates/integration.d.ts.map +1 -1
  121. package/dist/templates/integration.test.d.ts +2 -0
  122. package/dist/templates/integration.test.d.ts.map +1 -0
  123. package/dist/templates/knowledge.d.ts +2 -6
  124. package/dist/templates/knowledge.d.ts.map +1 -1
  125. package/dist/templates/knowledge.test.d.ts +2 -0
  126. package/dist/templates/knowledge.test.d.ts.map +1 -0
  127. package/dist/templates/migration.d.ts +2 -6
  128. package/dist/templates/migration.d.ts.map +1 -1
  129. package/dist/templates/migration.test.d.ts +2 -0
  130. package/dist/templates/migration.test.d.ts.map +1 -0
  131. package/dist/templates/operation.d.ts +6 -6
  132. package/dist/templates/operation.d.ts.map +1 -1
  133. package/dist/templates/operation.test.d.ts +2 -0
  134. package/dist/templates/operation.test.d.ts.map +1 -0
  135. package/dist/templates/presentation.d.ts +6 -6
  136. package/dist/templates/presentation.d.ts.map +1 -1
  137. package/dist/templates/presentation.test.d.ts +2 -0
  138. package/dist/templates/presentation.test.d.ts.map +1 -0
  139. package/dist/templates/telemetry.d.ts +2 -6
  140. package/dist/templates/telemetry.d.ts.map +1 -1
  141. package/dist/templates/telemetry.test.d.ts +2 -0
  142. package/dist/templates/telemetry.test.d.ts.map +1 -0
  143. package/dist/templates/utils.d.ts +5 -8
  144. package/dist/templates/utils.d.ts.map +1 -1
  145. package/dist/templates/utils.test.d.ts +2 -0
  146. package/dist/templates/utils.test.d.ts.map +1 -0
  147. package/dist/templates/workflow-runner.d.ts +6 -13
  148. package/dist/templates/workflow-runner.d.ts.map +1 -1
  149. package/dist/templates/workflow-runner.test.d.ts +2 -0
  150. package/dist/templates/workflow-runner.test.d.ts.map +1 -0
  151. package/dist/templates/workflow.d.ts +6 -6
  152. package/dist/templates/workflow.d.ts.map +1 -1
  153. package/dist/templates/workflow.test.d.ts +2 -0
  154. package/dist/templates/workflow.test.d.ts.map +1 -0
  155. package/dist/types/analysis-types.d.ts +135 -136
  156. package/dist/types/analysis-types.d.ts.map +1 -1
  157. package/dist/types/generation-types.d.ts +36 -37
  158. package/dist/types/generation-types.d.ts.map +1 -1
  159. package/dist/types/index.d.ts +9 -0
  160. package/dist/types/index.d.ts.map +1 -0
  161. package/dist/types/llm-types.d.ts +97 -96
  162. package/dist/types/llm-types.d.ts.map +1 -1
  163. package/dist/types/rulesync-types.d.ts +17 -18
  164. package/dist/types/rulesync-types.d.ts.map +1 -1
  165. package/dist/types/spec-types.d.ts +329 -329
  166. package/dist/types/spec-types.d.ts.map +1 -1
  167. package/package.json +20 -16
  168. package/dist/ai/prompts/code-generation.js +0 -134
  169. package/dist/ai/prompts/code-generation.js.map +0 -1
  170. package/dist/ai/prompts/spec-creation.js +0 -102
  171. package/dist/ai/prompts/spec-creation.js.map +0 -1
  172. package/dist/analysis/deps/graph.js +0 -85
  173. package/dist/analysis/deps/graph.js.map +0 -1
  174. package/dist/analysis/deps/parse-imports.js +0 -31
  175. package/dist/analysis/deps/parse-imports.js.map +0 -1
  176. package/dist/analysis/diff/deep-diff.js +0 -114
  177. package/dist/analysis/diff/deep-diff.js.map +0 -1
  178. package/dist/analysis/diff/semantic.js +0 -97
  179. package/dist/analysis/diff/semantic.js.map +0 -1
  180. package/dist/analysis/example-scan.js +0 -116
  181. package/dist/analysis/example-scan.js.map +0 -1
  182. package/dist/analysis/feature-extractor.js +0 -203
  183. package/dist/analysis/feature-extractor.js.map +0 -1
  184. package/dist/analysis/feature-scan.js +0 -56
  185. package/dist/analysis/feature-scan.js.map +0 -1
  186. package/dist/analysis/grouping.js +0 -115
  187. package/dist/analysis/grouping.js.map +0 -1
  188. package/dist/analysis/impact/classifier.js +0 -135
  189. package/dist/analysis/impact/classifier.js.map +0 -1
  190. package/dist/analysis/impact/index.js +0 -2
  191. package/dist/analysis/impact/rules.js +0 -154
  192. package/dist/analysis/impact/rules.js.map +0 -1
  193. package/dist/analysis/index.js +0 -18
  194. package/dist/analysis/snapshot/index.js +0 -2
  195. package/dist/analysis/snapshot/normalizer.js +0 -67
  196. package/dist/analysis/snapshot/normalizer.js.map +0 -1
  197. package/dist/analysis/snapshot/snapshot.js +0 -163
  198. package/dist/analysis/snapshot/snapshot.js.map +0 -1
  199. package/dist/analysis/spec-parser.js +0 -89
  200. package/dist/analysis/spec-parser.js.map +0 -1
  201. package/dist/analysis/spec-parsing-utils.js +0 -98
  202. package/dist/analysis/spec-parsing-utils.js.map +0 -1
  203. package/dist/analysis/spec-scan.js +0 -157
  204. package/dist/analysis/spec-scan.js.map +0 -1
  205. package/dist/analysis/utils/matchers.js +0 -77
  206. package/dist/analysis/utils/matchers.js.map +0 -1
  207. package/dist/analysis/utils/variables.js +0 -45
  208. package/dist/analysis/utils/variables.js.map +0 -1
  209. package/dist/analysis/validate/index.js +0 -1
  210. package/dist/analysis/validate/spec-structure.js +0 -475
  211. package/dist/analysis/validate/spec-structure.js.map +0 -1
  212. package/dist/formatter.js +0 -163
  213. package/dist/formatter.js.map +0 -1
  214. package/dist/formatters/index.js +0 -2
  215. package/dist/formatters/spec-markdown.js +0 -263
  216. package/dist/formatters/spec-markdown.js.map +0 -1
  217. package/dist/formatters/spec-to-docblock.js +0 -48
  218. package/dist/formatters/spec-to-docblock.js.map +0 -1
  219. package/dist/templates/app-config.js +0 -107
  220. package/dist/templates/app-config.js.map +0 -1
  221. package/dist/templates/data-view.js +0 -69
  222. package/dist/templates/data-view.js.map +0 -1
  223. package/dist/templates/event.js +0 -41
  224. package/dist/templates/event.js.map +0 -1
  225. package/dist/templates/experiment.js +0 -88
  226. package/dist/templates/experiment.js.map +0 -1
  227. package/dist/templates/handler.js +0 -96
  228. package/dist/templates/handler.js.map +0 -1
  229. package/dist/templates/integration-utils.js +0 -102
  230. package/dist/templates/integration-utils.js.map +0 -1
  231. package/dist/templates/integration.js +0 -62
  232. package/dist/templates/integration.js.map +0 -1
  233. package/dist/templates/knowledge.js +0 -68
  234. package/dist/templates/knowledge.js.map +0 -1
  235. package/dist/templates/migration.js +0 -60
  236. package/dist/templates/migration.js.map +0 -1
  237. package/dist/templates/operation.js +0 -101
  238. package/dist/templates/operation.js.map +0 -1
  239. package/dist/templates/presentation.js +0 -79
  240. package/dist/templates/presentation.js.map +0 -1
  241. package/dist/templates/telemetry.js +0 -90
  242. package/dist/templates/telemetry.js.map +0 -1
  243. package/dist/templates/utils.js +0 -39
  244. package/dist/templates/utils.js.map +0 -1
  245. package/dist/templates/workflow-runner.js +0 -49
  246. package/dist/templates/workflow-runner.js.map +0 -1
  247. package/dist/templates/workflow.js +0 -68
  248. package/dist/templates/workflow.js.map +0 -1
@@ -1,7 +1,3 @@
1
- import { AppBlueprintSpecData } from "../types/spec-types.js";
2
-
3
- //#region src/templates/app-config.d.ts
4
- declare function generateAppBlueprintSpec(data: AppBlueprintSpecData): string;
5
- //#endregion
6
- export { generateAppBlueprintSpec };
1
+ import type { AppBlueprintSpecData } from '../types/spec-types';
2
+ export declare function generateAppBlueprintSpec(data: AppBlueprintSpecData): string;
7
3
  //# sourceMappingURL=app-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-config.d.ts","names":[],"sources":["../../src/templates/app-config.ts"],"mappings":";;;iBAGgB,wBAAA,CAAyB,IAAA,EAAM,oBAAA"}
1
+ {"version":3,"file":"app-config.d.ts","sourceRoot":"","sources":["../../src/templates/app-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAGhE,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,oBAAoB,GAAG,MAAM,CAiC3E"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=app-config.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-config.test.d.ts","sourceRoot":"","sources":["../../src/templates/app-config.test.ts"],"names":[],"mappings":""}
@@ -1,7 +1,3 @@
1
- import { DataViewSpecData } from "../types/spec-types.js";
2
-
3
- //#region src/templates/data-view.d.ts
4
- declare function generateDataViewSpec(data: DataViewSpecData): string;
5
- //#endregion
6
- export { generateDataViewSpec };
1
+ import type { DataViewSpecData } from '../types/spec-types';
2
+ export declare function generateDataViewSpec(data: DataViewSpecData): string;
7
3
  //# sourceMappingURL=data-view.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-view.d.ts","names":[],"sources":["../../src/templates/data-view.ts"],"mappings":";;;iBAGgB,oBAAA,CAAqB,IAAA,EAAM,gBAAA"}
1
+ {"version":3,"file":"data-view.d.ts","sourceRoot":"","sources":["../../src/templates/data-view.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,gBAAgB,GAAG,MAAM,CA2EnE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data-view.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-view.test.d.ts","sourceRoot":"","sources":["../../src/templates/data-view.test.ts"],"names":[],"mappings":""}
@@ -1,10 +1,10 @@
1
- import { EventSpecData } from "../types/spec-types.js";
2
-
3
- //#region src/templates/event.d.ts
1
+ /**
2
+ * Event spec template generation.
3
+ * Extracted from cli-contractspec/src/templates/event.template.ts
4
+ */
5
+ import type { EventSpecData } from '../types/spec-types';
4
6
  /**
5
7
  * Generate event spec TypeScript code.
6
8
  */
7
- declare function generateEventSpec(data: EventSpecData): string;
8
- //#endregion
9
- export { generateEventSpec };
9
+ export declare function generateEventSpec(data: EventSpecData): string;
10
10
  //# sourceMappingURL=event.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"event.d.ts","names":[],"sources":["../../src/templates/event.ts"],"mappings":";;;;;;iBAWgB,iBAAA,CAAkB,IAAA,EAAM,aAAA"}
1
+ {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../src/templates/event.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGzD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,aAAa,GAAG,MAAM,CAiC7D"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=event.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.test.d.ts","sourceRoot":"","sources":["../../src/templates/event.test.ts"],"names":[],"mappings":""}
@@ -1,7 +1,3 @@
1
- import { ExperimentSpecData } from "../types/spec-types.js";
2
-
3
- //#region src/templates/experiment.d.ts
4
- declare function generateExperimentSpec(data: ExperimentSpecData): string;
5
- //#endregion
6
- export { generateExperimentSpec };
1
+ import type { ExperimentSpecData } from '../types/spec-types';
2
+ export declare function generateExperimentSpec(data: ExperimentSpecData): string;
7
3
  //# sourceMappingURL=experiment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"experiment.d.ts","names":[],"sources":["../../src/templates/experiment.ts"],"mappings":";;;iBAGgB,sBAAA,CAAuB,IAAA,EAAM,kBAAA"}
1
+ {"version":3,"file":"experiment.d.ts","sourceRoot":"","sources":["../../src/templates/experiment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAG9D,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,kBAAkB,GAAG,MAAM,CAqEvE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=experiment.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"experiment.test.d.ts","sourceRoot":"","sources":["../../src/templates/experiment.test.ts"],"names":[],"mappings":""}
@@ -1,4 +1,3 @@
1
- //#region src/templates/handler.d.ts
2
1
  /**
3
2
  * Handler and component template generation.
4
3
  * Extracted from cli-contractspec/src/templates/handler.template.ts
@@ -6,15 +5,13 @@
6
5
  /**
7
6
  * Generate handler implementation template.
8
7
  */
9
- declare function generateHandlerTemplate(specName: string, kind: 'command' | 'query'): string;
8
+ export declare function generateHandlerTemplate(specName: string, kind: 'command' | 'query'): string;
10
9
  /**
11
10
  * Generate React component template.
12
11
  */
13
- declare function generateComponentTemplate(componentName: string, description: string): string;
12
+ export declare function generateComponentTemplate(componentName: string, description: string): string;
14
13
  /**
15
14
  * Generate test template.
16
15
  */
17
- declare function generateTestTemplate(targetName: string, type: 'handler' | 'component'): string;
18
- //#endregion
19
- export { generateComponentTemplate, generateHandlerTemplate, generateTestTemplate };
16
+ export declare function generateTestTemplate(targetName: string, type: 'handler' | 'component'): string;
20
17
  //# sourceMappingURL=handler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"handler.d.ts","names":[],"sources":["../../src/templates/handler.ts"],"mappings":";;AAUA;;;;;AAyCA;iBAzCgB,uBAAA,CACd,QAAA,UACA,IAAA;;;;iBAuCc,yBAAA,CACd,aAAA,UACA,WAAA;;;;iBA2Bc,oBAAA,CACd,UAAA,UACA,IAAA"}
1
+ {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../src/templates/handler.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,SAAS,GAAG,OAAO,GACxB,MAAM,CAiCR;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CACvC,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,GAClB,MAAM,CAqBR;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,SAAS,GAAG,WAAW,GAC5B,MAAM,CA4BR"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=handler.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.test.d.ts","sourceRoot":"","sources":["../../src/templates/handler.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Code generation templates for ContractSpec.
3
+ */
4
+ export * from './operation';
5
+ export * from './event';
6
+ export * from './presentation';
7
+ export * from './workflow';
8
+ export * from './workflow-runner';
9
+ export * from './data-view';
10
+ export * from './telemetry';
11
+ export * from './experiment';
12
+ export * from './app-config';
13
+ export * from './migration';
14
+ export * from './integration';
15
+ export * from './knowledge';
16
+ export * from './handler';
17
+ export * from './utils';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/templates/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { IntegrationConfigFieldData, IntegrationSecretFieldData, IntegrationSpecData, Stability } from '../types/spec-types';
2
+ export declare function renderConfigSchema(fields: IntegrationConfigFieldData[]): string;
3
+ export declare function renderSecretSchema(fields: IntegrationSecretFieldData[]): string;
4
+ export declare function renderConfigExample(fields: IntegrationConfigFieldData[]): string;
5
+ export declare function renderSecretExample(fields: IntegrationSecretFieldData[]): string;
6
+ export declare function renderConstraints(rpm?: number, rph?: number): string;
7
+ export declare function renderByokSetup(modes: string[], instructions?: string, scopes?: string[]): string;
8
+ export declare function mapConfigType(type: IntegrationConfigFieldData['type']): string;
9
+ export declare function stabilityToEnum(stability: Stability): string;
10
+ export declare function renderProvides(data: IntegrationSpecData): string;
11
+ export declare function renderRequires(data: IntegrationSpecData): string;
12
+ export declare function escape(value: string): string;
13
+ //# sourceMappingURL=integration-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integration-utils.d.ts","sourceRoot":"","sources":["../../src/templates/integration-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAC1B,0BAA0B,EAC1B,mBAAmB,EACnB,SAAS,EACV,MAAM,qBAAqB,CAAC;AAE7B,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,0BAA0B,EAAE,GACnC,MAAM,CA6BR;AAED,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,0BAA0B,EAAE,GACnC,MAAM,CA2BR;AAED,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,0BAA0B,EAAE,GACnC,MAAM,CAoBR;AAED,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,0BAA0B,EAAE,GACnC,MAAM,CAYR;AAED,wBAAgB,iBAAiB,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAWpE;AAED,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,EAAE,EACf,YAAY,CAAC,EAAE,MAAM,EACrB,MAAM,CAAC,EAAE,MAAM,EAAE,GAChB,MAAM,CAsBR;AAED,wBAAgB,aAAa,CAC3B,IAAI,EAAE,0BAA0B,CAAC,MAAM,CAAC,GACvC,MAAM,CAUR;AAED,wBAAgB,eAAe,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAY5D;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,mBAAmB,GAAG,MAAM,CAIhE;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,mBAAmB,GAAG,MAAM,CAchE;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE5C"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=integration-utils.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integration-utils.test.d.ts","sourceRoot":"","sources":["../../src/templates/integration-utils.test.ts"],"names":[],"mappings":""}
@@ -1,7 +1,3 @@
1
- import { IntegrationSpecData } from "../types/spec-types.js";
2
-
3
- //#region src/templates/integration.d.ts
4
- declare function generateIntegrationSpec(data: IntegrationSpecData): string;
5
- //#endregion
6
- export { generateIntegrationSpec };
1
+ import type { IntegrationSpecData } from '../types/spec-types';
2
+ export declare function generateIntegrationSpec(data: IntegrationSpecData): string;
7
3
  //# sourceMappingURL=integration.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"integration.d.ts","names":[],"sources":["../../src/templates/integration.ts"],"mappings":";;;iBAegB,uBAAA,CAAwB,IAAA,EAAM,mBAAA"}
1
+ {"version":3,"file":"integration.d.ts","sourceRoot":"","sources":["../../src/templates/integration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAe/D,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,mBAAmB,GAAG,MAAM,CAiEzE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=integration.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integration.test.d.ts","sourceRoot":"","sources":["../../src/templates/integration.test.ts"],"names":[],"mappings":""}
@@ -1,7 +1,3 @@
1
- import { KnowledgeSpaceSpecData } from "../types/spec-types.js";
2
-
3
- //#region src/templates/knowledge.d.ts
4
- declare function generateKnowledgeSpaceSpec(data: KnowledgeSpaceSpecData): string;
5
- //#endregion
6
- export { generateKnowledgeSpaceSpec };
1
+ import type { KnowledgeSpaceSpecData } from '../types/spec-types';
2
+ export declare function generateKnowledgeSpaceSpec(data: KnowledgeSpaceSpecData): string;
7
3
  //# sourceMappingURL=knowledge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"knowledge.d.ts","names":[],"sources":["../../src/templates/knowledge.ts"],"mappings":";;;iBAGgB,0BAAA,CACd,IAAA,EAAM,sBAAA"}
1
+ {"version":3,"file":"knowledge.d.ts","sourceRoot":"","sources":["../../src/templates/knowledge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAa,MAAM,qBAAqB,CAAC;AAG7E,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,sBAAsB,GAC3B,MAAM,CAwCR"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=knowledge.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"knowledge.test.d.ts","sourceRoot":"","sources":["../../src/templates/knowledge.test.ts"],"names":[],"mappings":""}
@@ -1,7 +1,3 @@
1
- import { MigrationSpecData } from "../types/spec-types.js";
2
-
3
- //#region src/templates/migration.d.ts
4
- declare function generateMigrationSpec(data: MigrationSpecData): string;
5
- //#endregion
6
- export { generateMigrationSpec };
1
+ import type { MigrationSpecData } from '../types/spec-types';
2
+ export declare function generateMigrationSpec(data: MigrationSpecData): string;
7
3
  //# sourceMappingURL=migration.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"migration.d.ts","names":[],"sources":["../../src/templates/migration.ts"],"mappings":";;;iBAGgB,qBAAA,CAAsB,IAAA,EAAM,iBAAA"}
1
+ {"version":3,"file":"migration.d.ts","sourceRoot":"","sources":["../../src/templates/migration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAG7D,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAuCrE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=migration.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migration.test.d.ts","sourceRoot":"","sources":["../../src/templates/migration.test.ts"],"names":[],"mappings":""}
@@ -1,10 +1,10 @@
1
- import { OperationSpecData } from "../types/spec-types.js";
2
-
3
- //#region src/templates/operation.d.ts
1
+ /**
2
+ * Operation spec template generation.
3
+ * Extracted from cli-contractspec/src/templates/operation.template.ts
4
+ */
5
+ import type { OperationSpecData } from '../types/spec-types';
4
6
  /**
5
7
  * Generate operation spec TypeScript code.
6
8
  */
7
- declare function generateOperationSpec(data: OperationSpecData): string;
8
- //#endregion
9
- export { generateOperationSpec };
9
+ export declare function generateOperationSpec(data: OperationSpecData): string;
10
10
  //# sourceMappingURL=operation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"operation.d.ts","names":[],"sources":["../../src/templates/operation.ts"],"mappings":";;;;;;iBAWgB,qBAAA,CAAsB,IAAA,EAAM,iBAAA"}
1
+ {"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../src/templates/operation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAG7D;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAwGrE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=operation.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation.test.d.ts","sourceRoot":"","sources":["../../src/templates/operation.test.ts"],"names":[],"mappings":""}
@@ -1,10 +1,10 @@
1
- import { PresentationSpecData } from "../types/spec-types.js";
2
-
3
- //#region src/templates/presentation.d.ts
1
+ /**
2
+ * Presentation spec template generation.
3
+ * Extracted from cli-contractspec/src/templates/presentation.template.ts
4
+ */
5
+ import type { PresentationSpecData } from '../types/spec-types';
4
6
  /**
5
7
  * Generate presentation spec TypeScript code.
6
8
  */
7
- declare function generatePresentationSpec(data: PresentationSpecData): string;
8
- //#endregion
9
- export { generatePresentationSpec };
9
+ export declare function generatePresentationSpec(data: PresentationSpecData): string;
10
10
  //# sourceMappingURL=presentation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"presentation.d.ts","names":[],"sources":["../../src/templates/presentation.ts"],"mappings":";;;;;;iBAWgB,wBAAA,CAAyB,IAAA,EAAM,oBAAA"}
1
+ {"version":3,"file":"presentation.d.ts","sourceRoot":"","sources":["../../src/templates/presentation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAGhE;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,oBAAoB,GAAG,MAAM,CAkF3E"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=presentation.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation.test.d.ts","sourceRoot":"","sources":["../../src/templates/presentation.test.ts"],"names":[],"mappings":""}
@@ -1,7 +1,3 @@
1
- import { TelemetrySpecData } from "../types/spec-types.js";
2
-
3
- //#region src/templates/telemetry.d.ts
4
- declare function generateTelemetrySpec(data: TelemetrySpecData): string;
5
- //#endregion
6
- export { generateTelemetrySpec };
1
+ import type { TelemetrySpecData } from '../types/spec-types';
2
+ export declare function generateTelemetrySpec(data: TelemetrySpecData): string;
7
3
  //# sourceMappingURL=telemetry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"telemetry.d.ts","names":[],"sources":["../../src/templates/telemetry.ts"],"mappings":";;;iBAGgB,qBAAA,CAAsB,IAAA,EAAM,iBAAA"}
1
+ {"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../src/templates/telemetry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAG7D,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAyHrE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=telemetry.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"telemetry.test.d.ts","sourceRoot":"","sources":["../../src/templates/telemetry.test.ts"],"names":[],"mappings":""}
@@ -1,27 +1,24 @@
1
- //#region src/templates/utils.d.ts
2
1
  /**
3
2
  * Utility functions for template generation.
4
3
  */
5
4
  /**
6
5
  * Convert string to camelCase.
7
6
  */
8
- declare function toCamelCase(str: string): string;
7
+ export declare function toCamelCase(str: string): string;
9
8
  /**
10
9
  * Convert string to PascalCase.
11
10
  */
12
- declare function toPascalCase(str: string): string;
11
+ export declare function toPascalCase(str: string): string;
13
12
  /**
14
13
  * Convert string to kebab-case.
15
14
  */
16
- declare function toKebabCase(str: string): string;
15
+ export declare function toKebabCase(str: string): string;
17
16
  /**
18
17
  * Capitalize first letter.
19
18
  */
20
- declare function capitalize(str: string): string;
19
+ export declare function capitalize(str: string): string;
21
20
  /**
22
21
  * Escape single quotes in string.
23
22
  */
24
- declare function escapeString(value: string): string;
25
- //#endregion
26
- export { capitalize, escapeString, toCamelCase, toKebabCase, toPascalCase };
23
+ export declare function escapeString(value: string): string;
27
24
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","names":[],"sources":["../../src/templates/utils.ts"],"mappings":";;AAOA;;;;;iBAAgB,WAAA,CAAY,GAAA;;;;iBAQZ,YAAA,CAAa,GAAA;AAU7B;;;AAAA,iBAAgB,WAAA,CAAY,GAAA;;AAU5B;;iBAAgB,UAAA,CAAW,GAAA;;;AAO3B;iBAAgB,YAAA,CAAa,KAAA"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/templates/utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAG/C;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAKhD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAK/C;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAElD"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=utils.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.test.d.ts","sourceRoot":"","sources":["../../src/templates/utils.test.ts"],"names":[],"mappings":""}
@@ -1,16 +1,9 @@
1
- //#region src/templates/workflow-runner.d.ts
2
1
  interface RunnerTemplateOptions {
3
- exportName: string;
4
- specImportPath: string;
5
- runnerName: string;
6
- workflowName: string;
2
+ exportName: string;
3
+ specImportPath: string;
4
+ runnerName: string;
5
+ workflowName: string;
7
6
  }
8
- declare function generateWorkflowRunnerTemplate({
9
- exportName,
10
- specImportPath,
11
- runnerName,
12
- workflowName
13
- }: RunnerTemplateOptions): string;
14
- //#endregion
15
- export { generateWorkflowRunnerTemplate };
7
+ export declare function generateWorkflowRunnerTemplate({ exportName, specImportPath, runnerName, workflowName, }: RunnerTemplateOptions): string;
8
+ export {};
16
9
  //# sourceMappingURL=workflow-runner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-runner.d.ts","names":[],"sources":["../../src/templates/workflow-runner.ts"],"mappings":";UAAU,qBAAA;EACR,UAAA;EACA,cAAA;EACA,UAAA;EACA,YAAA;AAAA;AAAA,iBAGc,8BAAA,CAAA;EACd,UAAA;EACA,cAAA;EACA,UAAA;EACA;AAAA,GACC,qBAAA"}
1
+ {"version":3,"file":"workflow-runner.d.ts","sourceRoot":"","sources":["../../src/templates/workflow-runner.ts"],"names":[],"mappings":"AAAA,UAAU,qBAAqB;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,8BAA8B,CAAC,EAC7C,UAAU,EACV,cAAc,EACd,UAAU,EACV,YAAY,GACb,EAAE,qBAAqB,GAAG,MAAM,CA2ChC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=workflow-runner.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-runner.test.d.ts","sourceRoot":"","sources":["../../src/templates/workflow-runner.test.ts"],"names":[],"mappings":""}
@@ -1,10 +1,10 @@
1
- import { WorkflowSpecData } from "../types/spec-types.js";
2
-
3
- //#region src/templates/workflow.d.ts
1
+ /**
2
+ * Workflow spec template generation.
3
+ * Extracted from cli-contractspec/src/templates/workflow.template.ts
4
+ */
5
+ import type { WorkflowSpecData } from '../types/spec-types';
4
6
  /**
5
7
  * Generate workflow spec TypeScript code.
6
8
  */
7
- declare function generateWorkflowSpec(data: WorkflowSpecData): string;
8
- //#endregion
9
- export { generateWorkflowSpec };
9
+ export declare function generateWorkflowSpec(data: WorkflowSpecData): string;
10
10
  //# sourceMappingURL=workflow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"workflow.d.ts","names":[],"sources":["../../src/templates/workflow.ts"],"mappings":";;;;;;iBAWgB,oBAAA,CAAqB,IAAA,EAAM,gBAAA"}
1
+ {"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/templates/workflow.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,gBAAgB,GAAG,MAAM,CAsDnE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=workflow.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow.test.d.ts","sourceRoot":"","sources":["../../src/templates/workflow.test.ts"],"names":[],"mappings":""}