@ai-dev-tools/test-copilot-core 1.0.19

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 (328) hide show
  1. package/README.md +6 -0
  2. package/azure-pipelines.yml +51 -0
  3. package/out/cli/commands/appInsightTelemetry.d.ts +7 -0
  4. package/out/cli/commands/appInsightTelemetry.d.ts.map +1 -0
  5. package/out/cli/commands/appInsightTelemetry.js +76 -0
  6. package/out/cli/commands/appInsightTelemetry.js.map +1 -0
  7. package/out/cli/commands/cliConfig.d.ts +4 -0
  8. package/out/cli/commands/cliConfig.d.ts.map +1 -0
  9. package/out/cli/commands/cliConfig.js +68 -0
  10. package/out/cli/commands/cliConfig.js.map +1 -0
  11. package/out/cli/commands/prompt.d.ts +6 -0
  12. package/out/cli/commands/prompt.d.ts.map +1 -0
  13. package/out/cli/commands/prompt.js +29 -0
  14. package/out/cli/commands/prompt.js.map +1 -0
  15. package/out/cli/commands/ut.d.ts +14 -0
  16. package/out/cli/commands/ut.d.ts.map +1 -0
  17. package/out/cli/commands/ut.js +72 -0
  18. package/out/cli/commands/ut.js.map +1 -0
  19. package/out/cli/commands/utPipeCmdWrapper.d.ts +18 -0
  20. package/out/cli/commands/utPipeCmdWrapper.d.ts.map +1 -0
  21. package/out/cli/commands/utPipeCmdWrapper.js +37 -0
  22. package/out/cli/commands/utPipeCmdWrapper.js.map +1 -0
  23. package/out/cli/config/index.d.ts +15 -0
  24. package/out/cli/config/index.d.ts.map +1 -0
  25. package/out/cli/config/index.js +10 -0
  26. package/out/cli/config/index.js.map +1 -0
  27. package/out/cli/index.d.ts +3 -0
  28. package/out/cli/index.d.ts.map +1 -0
  29. package/out/cli/index.js +169 -0
  30. package/out/cli/index.js.map +1 -0
  31. package/out/cli/type.d.ts +11 -0
  32. package/out/cli/type.d.ts.map +1 -0
  33. package/out/cli/type.js +3 -0
  34. package/out/cli/type.js.map +1 -0
  35. package/out/cli/utils/ds.d.ts +3 -0
  36. package/out/cli/utils/ds.d.ts.map +1 -0
  37. package/out/cli/utils/ds.js +50 -0
  38. package/out/cli/utils/ds.js.map +1 -0
  39. package/out/cli/utils/gpt.d.ts +3 -0
  40. package/out/cli/utils/gpt.d.ts.map +1 -0
  41. package/out/cli/utils/gpt.js +63 -0
  42. package/out/cli/utils/gpt.js.map +1 -0
  43. package/out/core/analyze/cjs.d.ts +61 -0
  44. package/out/core/analyze/cjs.d.ts.map +1 -0
  45. package/out/core/analyze/cjs.js +358 -0
  46. package/out/core/analyze/cjs.js.map +1 -0
  47. package/out/core/analyze/class.d.ts +4 -0
  48. package/out/core/analyze/class.d.ts.map +1 -0
  49. package/out/core/analyze/class.js +32 -0
  50. package/out/core/analyze/class.js.map +1 -0
  51. package/out/core/analyze/declares.d.ts +7 -0
  52. package/out/core/analyze/declares.d.ts.map +1 -0
  53. package/out/core/analyze/declares.js +316 -0
  54. package/out/core/analyze/declares.js.map +1 -0
  55. package/out/core/analyze/deps.d.ts +8 -0
  56. package/out/core/analyze/deps.d.ts.map +1 -0
  57. package/out/core/analyze/deps.js +210 -0
  58. package/out/core/analyze/deps.js.map +1 -0
  59. package/out/core/analyze/functionComponent.d.ts +4 -0
  60. package/out/core/analyze/functionComponent.d.ts.map +1 -0
  61. package/out/core/analyze/functionComponent.js +77 -0
  62. package/out/core/analyze/functionComponent.js.map +1 -0
  63. package/out/core/analyze/functions.d.ts +4 -0
  64. package/out/core/analyze/functions.d.ts.map +1 -0
  65. package/out/core/analyze/functions.js +46 -0
  66. package/out/core/analyze/functions.js.map +1 -0
  67. package/out/core/analyze/index.d.ts +16 -0
  68. package/out/core/analyze/index.d.ts.map +1 -0
  69. package/out/core/analyze/index.js +149 -0
  70. package/out/core/analyze/index.js.map +1 -0
  71. package/out/core/analyze/index.type.d.ts +69 -0
  72. package/out/core/analyze/index.type.d.ts.map +1 -0
  73. package/out/core/analyze/index.type.js +14 -0
  74. package/out/core/analyze/index.type.js.map +1 -0
  75. package/out/core/analyze/utils/global.d.ts +2 -0
  76. package/out/core/analyze/utils/global.d.ts.map +1 -0
  77. package/out/core/analyze/utils/global.js +84 -0
  78. package/out/core/analyze/utils/global.js.map +1 -0
  79. package/out/core/analyzev2/declare/class.d.ts +4 -0
  80. package/out/core/analyzev2/declare/class.d.ts.map +1 -0
  81. package/out/core/analyzev2/declare/class.js +24 -0
  82. package/out/core/analyzev2/declare/class.js.map +1 -0
  83. package/out/core/analyzev2/declare/funcLike.d.ts +8 -0
  84. package/out/core/analyzev2/declare/funcLike.d.ts.map +1 -0
  85. package/out/core/analyzev2/declare/funcLike.js +71 -0
  86. package/out/core/analyzev2/declare/funcLike.js.map +1 -0
  87. package/out/core/analyzev2/declare/variable.d.ts +3 -0
  88. package/out/core/analyzev2/declare/variable.d.ts.map +1 -0
  89. package/out/core/analyzev2/declare/variable.js +15 -0
  90. package/out/core/analyzev2/declare/variable.js.map +1 -0
  91. package/out/core/analyzev2/file.d.ts +19 -0
  92. package/out/core/analyzev2/file.d.ts.map +1 -0
  93. package/out/core/analyzev2/file.js +449 -0
  94. package/out/core/analyzev2/file.js.map +1 -0
  95. package/out/core/analyzev2/index.d.ts +5 -0
  96. package/out/core/analyzev2/index.d.ts.map +1 -0
  97. package/out/core/analyzev2/index.js +30 -0
  98. package/out/core/analyzev2/index.js.map +1 -0
  99. package/out/core/analyzev2/type.d.ts +35 -0
  100. package/out/core/analyzev2/type.d.ts.map +1 -0
  101. package/out/core/analyzev2/type.js +3 -0
  102. package/out/core/analyzev2/type.js.map +1 -0
  103. package/out/core/config/index.d.ts +25 -0
  104. package/out/core/config/index.d.ts.map +1 -0
  105. package/out/core/config/index.js +14 -0
  106. package/out/core/config/index.js.map +1 -0
  107. package/out/core/constants.d.ts +9 -0
  108. package/out/core/constants.d.ts.map +1 -0
  109. package/out/core/constants.js +12 -0
  110. package/out/core/constants.js.map +1 -0
  111. package/out/core/features/common/base.d.ts +20 -0
  112. package/out/core/features/common/base.d.ts.map +1 -0
  113. package/out/core/features/common/base.js +77 -0
  114. package/out/core/features/common/base.js.map +1 -0
  115. package/out/core/features/common/types.d.ts +16 -0
  116. package/out/core/features/common/types.d.ts.map +1 -0
  117. package/out/core/features/common/types.js +12 -0
  118. package/out/core/features/common/types.js.map +1 -0
  119. package/out/core/features/generateFile.d.ts +31 -0
  120. package/out/core/features/generateFile.d.ts.map +1 -0
  121. package/out/core/features/generateFile.js +148 -0
  122. package/out/core/features/generateFile.js.map +1 -0
  123. package/out/core/features/generateSingle.d.ts +28 -0
  124. package/out/core/features/generateSingle.d.ts.map +1 -0
  125. package/out/core/features/generateSingle.js +149 -0
  126. package/out/core/features/generateSingle.js.map +1 -0
  127. package/out/core/features/index.d.ts +9 -0
  128. package/out/core/features/index.d.ts.map +1 -0
  129. package/out/core/features/index.js +16 -0
  130. package/out/core/features/index.js.map +1 -0
  131. package/out/core/features/lintFix.d.ts +2 -0
  132. package/out/core/features/lintFix.d.ts.map +1 -0
  133. package/out/core/features/lintFix.js +33 -0
  134. package/out/core/features/lintFix.js.map +1 -0
  135. package/out/core/features/mergeUTFile.d.ts +19 -0
  136. package/out/core/features/mergeUTFile.d.ts.map +1 -0
  137. package/out/core/features/mergeUTFile.js +63 -0
  138. package/out/core/features/mergeUTFile.js.map +1 -0
  139. package/out/core/features/removeFailedCases.d.ts +23 -0
  140. package/out/core/features/removeFailedCases.d.ts.map +1 -0
  141. package/out/core/features/removeFailedCases.js +81 -0
  142. package/out/core/features/removeFailedCases.js.map +1 -0
  143. package/out/core/features/updateSpec.d.ts +20 -0
  144. package/out/core/features/updateSpec.d.ts.map +1 -0
  145. package/out/core/features/updateSpec.js +98 -0
  146. package/out/core/features/updateSpec.js.map +1 -0
  147. package/out/core/features/validFix.d.ts +29 -0
  148. package/out/core/features/validFix.d.ts.map +1 -0
  149. package/out/core/features/validFix.js +219 -0
  150. package/out/core/features/validFix.js.map +1 -0
  151. package/out/core/generate/UTGen.d.ts +79 -0
  152. package/out/core/generate/UTGen.d.ts.map +1 -0
  153. package/out/core/generate/UTGen.js +795 -0
  154. package/out/core/generate/UTGen.js.map +1 -0
  155. package/out/core/llm/index.d.ts +9 -0
  156. package/out/core/llm/index.d.ts.map +1 -0
  157. package/out/core/llm/index.js +39 -0
  158. package/out/core/llm/index.js.map +1 -0
  159. package/out/core/llm/prompts/config.d.ts +6 -0
  160. package/out/core/llm/prompts/config.d.ts.map +1 -0
  161. package/out/core/llm/prompts/config.js +239 -0
  162. package/out/core/llm/prompts/config.js.map +1 -0
  163. package/out/core/llm/prompts/templates/common.d.ts +3 -0
  164. package/out/core/llm/prompts/templates/common.d.ts.map +1 -0
  165. package/out/core/llm/prompts/templates/common.js +27 -0
  166. package/out/core/llm/prompts/templates/common.js.map +1 -0
  167. package/out/core/llm/prompts/templates/fixCase.d.ts +4 -0
  168. package/out/core/llm/prompts/templates/fixCase.d.ts.map +1 -0
  169. package/out/core/llm/prompts/templates/fixCase.js +46 -0
  170. package/out/core/llm/prompts/templates/fixCase.js.map +1 -0
  171. package/out/core/llm/prompts/templates/fixLint.d.ts +3 -0
  172. package/out/core/llm/prompts/templates/fixLint.d.ts.map +1 -0
  173. package/out/core/llm/prompts/templates/fixLint.js +22 -0
  174. package/out/core/llm/prompts/templates/fixLint.js.map +1 -0
  175. package/out/core/llm/prompts/templates/genClassMemberUT.d.ts +5 -0
  176. package/out/core/llm/prompts/templates/genClassMemberUT.d.ts.map +1 -0
  177. package/out/core/llm/prompts/templates/genClassMemberUT.js +115 -0
  178. package/out/core/llm/prompts/templates/genClassMemberUT.js.map +1 -0
  179. package/out/core/llm/prompts/templates/genFuncUT.d.ts +4 -0
  180. package/out/core/llm/prompts/templates/genFuncUT.d.ts.map +1 -0
  181. package/out/core/llm/prompts/templates/genFuncUT.js +64 -0
  182. package/out/core/llm/prompts/templates/genFuncUT.js.map +1 -0
  183. package/out/core/llm/prompts/templates/mergeUT.d.ts +4 -0
  184. package/out/core/llm/prompts/templates/mergeUT.d.ts.map +1 -0
  185. package/out/core/llm/prompts/templates/mergeUT.js +106 -0
  186. package/out/core/llm/prompts/templates/mergeUT.js.map +1 -0
  187. package/out/core/llm/prompts/templates/msnStudio.d.ts +3 -0
  188. package/out/core/llm/prompts/templates/msnStudio.d.ts.map +1 -0
  189. package/out/core/llm/prompts/templates/msnStudio.js +36 -0
  190. package/out/core/llm/prompts/templates/msnStudio.js.map +1 -0
  191. package/out/core/llm/prompts/templates/snapshotUT.d.ts +4 -0
  192. package/out/core/llm/prompts/templates/snapshotUT.d.ts.map +1 -0
  193. package/out/core/llm/prompts/templates/snapshotUT.js +68 -0
  194. package/out/core/llm/prompts/templates/snapshotUT.js.map +1 -0
  195. package/out/core/llm/prompts/templates/updateSpecBlock.d.ts +3 -0
  196. package/out/core/llm/prompts/templates/updateSpecBlock.d.ts.map +1 -0
  197. package/out/core/llm/prompts/templates/updateSpecBlock.js +38 -0
  198. package/out/core/llm/prompts/templates/updateSpecBlock.js.map +1 -0
  199. package/out/core/llm/prompts/templates/updateSpecFile.d.ts +3 -0
  200. package/out/core/llm/prompts/templates/updateSpecFile.d.ts.map +1 -0
  201. package/out/core/llm/prompts/templates/updateSpecFile.js +30 -0
  202. package/out/core/llm/prompts/templates/updateSpecFile.js.map +1 -0
  203. package/out/core/llm/types.d.ts +80 -0
  204. package/out/core/llm/types.d.ts.map +1 -0
  205. package/out/core/llm/types.js +5 -0
  206. package/out/core/llm/types.js.map +1 -0
  207. package/out/core/quality/validateMockedTest.d.ts +3 -0
  208. package/out/core/quality/validateMockedTest.d.ts.map +1 -0
  209. package/out/core/quality/validateMockedTest.js +211 -0
  210. package/out/core/quality/validateMockedTest.js.map +1 -0
  211. package/out/core/utils/checkTestIgnore.d.ts +4 -0
  212. package/out/core/utils/checkTestIgnore.d.ts.map +1 -0
  213. package/out/core/utils/checkTestIgnore.js +52 -0
  214. package/out/core/utils/checkTestIgnore.js.map +1 -0
  215. package/out/core/utils/common.d.ts +4 -0
  216. package/out/core/utils/common.d.ts.map +1 -0
  217. package/out/core/utils/common.js +34 -0
  218. package/out/core/utils/common.js.map +1 -0
  219. package/out/core/utils/console.d.ts +8 -0
  220. package/out/core/utils/console.d.ts.map +1 -0
  221. package/out/core/utils/console.js +24 -0
  222. package/out/core/utils/console.js.map +1 -0
  223. package/out/core/utils/deps.d.ts +3 -0
  224. package/out/core/utils/deps.d.ts.map +1 -0
  225. package/out/core/utils/deps.js +58 -0
  226. package/out/core/utils/deps.js.map +1 -0
  227. package/out/core/utils/eslintRuleHandler.d.ts +3 -0
  228. package/out/core/utils/eslintRuleHandler.d.ts.map +1 -0
  229. package/out/core/utils/eslintRuleHandler.js +98 -0
  230. package/out/core/utils/eslintRuleHandler.js.map +1 -0
  231. package/out/core/utils/file.d.ts +18 -0
  232. package/out/core/utils/file.d.ts.map +1 -0
  233. package/out/core/utils/file.js +142 -0
  234. package/out/core/utils/file.js.map +1 -0
  235. package/out/core/utils/lint.d.ts +9 -0
  236. package/out/core/utils/lint.d.ts.map +1 -0
  237. package/out/core/utils/lint.js +95 -0
  238. package/out/core/utils/lint.js.map +1 -0
  239. package/out/core/utils/lru.d.ts +12 -0
  240. package/out/core/utils/lru.d.ts.map +1 -0
  241. package/out/core/utils/lru.js +47 -0
  242. package/out/core/utils/lru.js.map +1 -0
  243. package/out/core/utils/move.d.ts +12 -0
  244. package/out/core/utils/move.d.ts.map +1 -0
  245. package/out/core/utils/move.js +93 -0
  246. package/out/core/utils/move.js.map +1 -0
  247. package/out/core/utils/msnStudio.d.ts +13 -0
  248. package/out/core/utils/msnStudio.d.ts.map +1 -0
  249. package/out/core/utils/msnStudio.js +150 -0
  250. package/out/core/utils/msnStudio.js.map +1 -0
  251. package/out/core/utils/parseCustomizedCmd.d.ts +2 -0
  252. package/out/core/utils/parseCustomizedCmd.d.ts.map +1 -0
  253. package/out/core/utils/parseCustomizedCmd.js +32 -0
  254. package/out/core/utils/parseCustomizedCmd.js.map +1 -0
  255. package/out/core/utils/specBlock.d.ts +20 -0
  256. package/out/core/utils/specBlock.d.ts.map +1 -0
  257. package/out/core/utils/specBlock.js +231 -0
  258. package/out/core/utils/specBlock.js.map +1 -0
  259. package/out/core/utils/system.d.ts +13 -0
  260. package/out/core/utils/system.d.ts.map +1 -0
  261. package/out/core/utils/system.js +86 -0
  262. package/out/core/utils/system.js.map +1 -0
  263. package/out/core/utils/telemetry.d.ts +9 -0
  264. package/out/core/utils/telemetry.d.ts.map +1 -0
  265. package/out/core/utils/telemetry.js +32 -0
  266. package/out/core/utils/telemetry.js.map +1 -0
  267. package/out/core/utils/tsMorph.d.ts +13 -0
  268. package/out/core/utils/tsMorph.d.ts.map +1 -0
  269. package/out/core/utils/tsMorph.js +76 -0
  270. package/out/core/utils/tsMorph.js.map +1 -0
  271. package/out/core/valid/customizedLint.d.ts +2 -0
  272. package/out/core/valid/customizedLint.d.ts.map +1 -0
  273. package/out/core/valid/customizedLint.js +64 -0
  274. package/out/core/valid/customizedLint.js.map +1 -0
  275. package/out/core/valid/customizedTest.d.ts +3 -0
  276. package/out/core/valid/customizedTest.d.ts.map +1 -0
  277. package/out/core/valid/customizedTest.js +58 -0
  278. package/out/core/valid/customizedTest.js.map +1 -0
  279. package/out/core/valid/extractVitestConfig.d.ts +5 -0
  280. package/out/core/valid/extractVitestConfig.d.ts.map +1 -0
  281. package/out/core/valid/extractVitestConfig.js +97 -0
  282. package/out/core/valid/extractVitestConfig.js.map +1 -0
  283. package/out/core/valid/getViteConfig.d.ts +2 -0
  284. package/out/core/valid/getViteConfig.d.ts.map +1 -0
  285. package/out/core/valid/getViteConfig.js +65 -0
  286. package/out/core/valid/getViteConfig.js.map +1 -0
  287. package/out/core/valid/index.d.ts +15 -0
  288. package/out/core/valid/index.d.ts.map +1 -0
  289. package/out/core/valid/index.js +99 -0
  290. package/out/core/valid/index.js.map +1 -0
  291. package/out/core/valid/jest.d.ts +4 -0
  292. package/out/core/valid/jest.d.ts.map +1 -0
  293. package/out/core/valid/jest.js +121 -0
  294. package/out/core/valid/jest.js.map +1 -0
  295. package/out/core/valid/mock.d.ts +2 -0
  296. package/out/core/valid/mock.d.ts.map +1 -0
  297. package/out/core/valid/mock.js +149 -0
  298. package/out/core/valid/mock.js.map +1 -0
  299. package/out/core/valid/remove.d.ts +5 -0
  300. package/out/core/valid/remove.d.ts.map +1 -0
  301. package/out/core/valid/remove.js +109 -0
  302. package/out/core/valid/remove.js.map +1 -0
  303. package/out/core/valid/tag.d.ts +3 -0
  304. package/out/core/valid/tag.d.ts.map +1 -0
  305. package/out/core/valid/tag.js +91 -0
  306. package/out/core/valid/tag.js.map +1 -0
  307. package/out/core/valid/type.d.ts +83 -0
  308. package/out/core/valid/type.d.ts.map +1 -0
  309. package/out/core/valid/type.js +3 -0
  310. package/out/core/valid/type.js.map +1 -0
  311. package/out/core/valid/vitest.d.ts +3 -0
  312. package/out/core/valid/vitest.d.ts.map +1 -0
  313. package/out/core/valid/vitest.js +82 -0
  314. package/out/core/valid/vitest.js.map +1 -0
  315. package/out/index.d.ts +20 -0
  316. package/out/index.d.ts.map +1 -0
  317. package/out/index.js +60 -0
  318. package/out/index.js.map +1 -0
  319. package/out/setup.d.ts +11 -0
  320. package/out/setup.d.ts.map +1 -0
  321. package/out/setup.js +14 -0
  322. package/out/setup.js.map +1 -0
  323. package/out/types.d.ts +23 -0
  324. package/out/types.d.ts.map +1 -0
  325. package/out/types.js +3 -0
  326. package/out/types.js.map +1 -0
  327. package/package.json +39 -0
  328. package/package_devops.json +42 -0
package/out/index.js ADDED
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.getFailedCase = exports.runTest = exports.getPackageDocInitParams = exports.initializeDoc = exports.formatEventProps = exports.getSpecBlocks = exports.runLint = exports.getProject = exports.getMachineId = exports.sleep = exports.removeFile = exports.execAsync = exports.getConsole = exports.getFilesInDir = exports.getPackagesFrom = exports.toUnixStyle = exports.findProjectRoot = exports.extractCodeFromResponse = exports.CodeType = exports.readPromptConfigFile = exports.promptsToFiles = exports.getCustomizePrompt = exports.getPrompt = exports.UTGen = exports.setup = void 0;
18
+ var setup_1 = require("./setup");
19
+ Object.defineProperty(exports, "setup", { enumerable: true, get: function () { return setup_1.setup; } });
20
+ __exportStar(require("./types"), exports);
21
+ var UTGen_1 = require("./core/generate/UTGen");
22
+ Object.defineProperty(exports, "UTGen", { enumerable: true, get: function () { return UTGen_1.UTGen; } });
23
+ var llm_1 = require("./core/llm");
24
+ Object.defineProperty(exports, "getPrompt", { enumerable: true, get: function () { return llm_1.getPrompt; } });
25
+ Object.defineProperty(exports, "getCustomizePrompt", { enumerable: true, get: function () { return llm_1.getCustomizePrompt; } });
26
+ Object.defineProperty(exports, "promptsToFiles", { enumerable: true, get: function () { return llm_1.promptsToFiles; } });
27
+ Object.defineProperty(exports, "readPromptConfigFile", { enumerable: true, get: function () { return llm_1.readPromptConfigFile; } });
28
+ var index_type_1 = require("./core/analyze/index.type");
29
+ Object.defineProperty(exports, "CodeType", { enumerable: true, get: function () { return index_type_1.CodeType; } });
30
+ var common_1 = require("./core/utils/common");
31
+ Object.defineProperty(exports, "extractCodeFromResponse", { enumerable: true, get: function () { return common_1.extractCodeFromResponse; } });
32
+ var file_1 = require("./core/utils/file");
33
+ Object.defineProperty(exports, "findProjectRoot", { enumerable: true, get: function () { return file_1.findProjectRoot; } });
34
+ Object.defineProperty(exports, "toUnixStyle", { enumerable: true, get: function () { return file_1.toUnixStyle; } });
35
+ Object.defineProperty(exports, "getPackagesFrom", { enumerable: true, get: function () { return file_1.getPackagesFrom; } });
36
+ Object.defineProperty(exports, "getFilesInDir", { enumerable: true, get: function () { return file_1.getFilesInDir; } });
37
+ var console_1 = require("./core/utils/console");
38
+ Object.defineProperty(exports, "getConsole", { enumerable: true, get: function () { return console_1.getConsole; } });
39
+ var system_1 = require("./core/utils/system");
40
+ Object.defineProperty(exports, "execAsync", { enumerable: true, get: function () { return system_1.execAsync; } });
41
+ Object.defineProperty(exports, "removeFile", { enumerable: true, get: function () { return system_1.removeFile; } });
42
+ Object.defineProperty(exports, "sleep", { enumerable: true, get: function () { return system_1.sleep; } });
43
+ Object.defineProperty(exports, "getMachineId", { enumerable: true, get: function () { return system_1.getMachineId; } });
44
+ var tsMorph_1 = require("./core/utils/tsMorph");
45
+ Object.defineProperty(exports, "getProject", { enumerable: true, get: function () { return tsMorph_1.getProject; } });
46
+ var lint_1 = require("./core/utils/lint");
47
+ Object.defineProperty(exports, "runLint", { enumerable: true, get: function () { return lint_1.runLint; } });
48
+ var specBlock_1 = require("./core/utils/specBlock");
49
+ Object.defineProperty(exports, "getSpecBlocks", { enumerable: true, get: function () { return specBlock_1.getSpecBlocks; } });
50
+ var telemetry_1 = require("./core/utils/telemetry");
51
+ Object.defineProperty(exports, "formatEventProps", { enumerable: true, get: function () { return telemetry_1.formatEventProps; } });
52
+ var msnStudio_1 = require("./core/utils/msnStudio");
53
+ Object.defineProperty(exports, "initializeDoc", { enumerable: true, get: function () { return msnStudio_1.initializeDoc; } });
54
+ Object.defineProperty(exports, "getPackageDocInitParams", { enumerable: true, get: function () { return msnStudio_1.getPackageDocInitParams; } });
55
+ var valid_1 = require("./core/valid");
56
+ Object.defineProperty(exports, "runTest", { enumerable: true, get: function () { return valid_1.runTest; } });
57
+ Object.defineProperty(exports, "getFailedCase", { enumerable: true, get: function () { return valid_1.getFailedCase; } });
58
+ __exportStar(require("./core/constants"), exports);
59
+ __exportStar(require("./core/features"), exports);
60
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,0CAAwB;AAGxB,+CAA4E;AAAnE,8FAAA,KAAK,OAAA;AAEd,kCAWoB;AAJhB,gGAAA,SAAS,OAAA;AACT,yGAAA,kBAAkB,OAAA;AAClB,qGAAA,cAAc,OAAA;AACd,2GAAA,oBAAoB,OAAA;AAGxB,wDAAqD;AAA5C,sGAAA,QAAQ,OAAA;AACjB,8CAA8D;AAArD,iHAAA,uBAAuB,OAAA;AAChC,0CAAiG;AAAxF,uGAAA,eAAe,OAAA;AAAE,mGAAA,WAAW,OAAA;AAAE,uGAAA,eAAe,OAAA;AAAE,qGAAA,aAAa,OAAA;AACrE,gDAAkD;AAAzC,qGAAA,UAAU,OAAA;AACnB,8CAAiF;AAAxE,mGAAA,SAAS,OAAA;AAAE,oGAAA,UAAU,OAAA;AAAE,+FAAA,KAAK,OAAA;AAAE,sGAAA,YAAY,OAAA;AACnD,gDAAkD;AAAzC,qGAAA,UAAU,OAAA;AACnB,0CAA4C;AAAnC,+FAAA,OAAO,OAAA;AAChB,oDAAuD;AAA9C,0GAAA,aAAa,OAAA;AACtB,oDAA0D;AAAjD,6GAAA,gBAAgB,OAAA;AACzB,oDAAgF;AAAvE,0GAAA,aAAa,OAAA;AAAE,oHAAA,uBAAuB,OAAA;AAE/C,sCAAsD;AAA7C,gGAAA,OAAO,OAAA;AAAE,sGAAA,aAAa,OAAA;AAG/B,mDAAiC;AAEjC,kDAAgC"}
package/out/setup.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ import { ConfigGetter } from "./core/config";
2
+ import { IGetResponse } from "./core/llm";
3
+ import { IConsole } from "./core/utils/console";
4
+ export interface SetupConfig {
5
+ getConfig: ConfigGetter;
6
+ getLLMResponse: IGetResponse;
7
+ getConsole?: IConsole;
8
+ sendTelemetry?: (...args: any[]) => void;
9
+ }
10
+ export declare function setup(config: SetupConfig): void;
11
+ //# sourceMappingURL=setup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAmB,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAkB,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAc,MAAM,sBAAsB,CAAC;AAG5D,MAAM,WAAW,WAAW;IACxB,SAAS,EAAE,YAAY,CAAC;IACxB,cAAc,EAAE,YAAY,CAAC;IAC7B,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;CAC5C;AAED,wBAAgB,KAAK,CAAC,MAAM,EAAE,WAAW,QAKxC"}
package/out/setup.js ADDED
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setup = setup;
4
+ const config_1 = require("./core/config");
5
+ const llm_1 = require("./core/llm");
6
+ const console_1 = require("./core/utils/console");
7
+ const telemetry_1 = require("./core/utils/telemetry");
8
+ function setup(config) {
9
+ (0, config_1.setConfigGetter)(config.getConfig);
10
+ (0, llm_1.setLLMFunction)(config.getLLMResponse);
11
+ config.getConsole && (0, console_1.setConsole)(config.getConsole);
12
+ config.sendTelemetry && (0, telemetry_1.setTelemetry)(config.sendTelemetry);
13
+ }
14
+ //# sourceMappingURL=setup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup.js","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":";;AAYA,sBAKC;AAjBD,0CAA8D;AAC9D,oCAA0D;AAC1D,kDAA4D;AAC5D,sDAAsD;AAStD,SAAgB,KAAK,CAAC,MAAmB;IACrC,IAAA,wBAAe,EAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAClC,IAAA,oBAAc,EAAC,MAAM,CAAC,cAAc,CAAC,CAAC;IACtC,MAAM,CAAC,UAAU,IAAI,IAAA,oBAAU,EAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACnD,MAAM,CAAC,aAAa,IAAI,IAAA,wBAAY,EAAC,MAAM,CAAC,aAAa,CAAC,CAAC;AAC/D,CAAC"}
package/out/types.d.ts ADDED
@@ -0,0 +1,23 @@
1
+ export interface OnProgressEvent {
2
+ message?: string;
3
+ description?: string;
4
+ markdown?: string;
5
+ finish?: 1 | 2;
6
+ lastFailed?: boolean;
7
+ extra?: {
8
+ title?: string;
9
+ content?: string;
10
+ };
11
+ failed?: boolean;
12
+ indent?: number;
13
+ link?: {
14
+ title: string;
15
+ url: string;
16
+ };
17
+ }
18
+ export type OnProgress = (e: OnProgressEvent) => void;
19
+ export declare const enum ModuleType {
20
+ ESM = "esm",
21
+ CJS = "cjs"
22
+ }
23
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE;QACJ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE;QACH,KAAK,EAAE,MAAM,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;KACf,CAAC;CACL;AAED,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,EAAE,eAAe,KAAK,IAAI,CAAC;AAEtD,0BAAkB,UAAU;IACxB,GAAG,QAAQ;IACX,GAAG,QAAQ;CACd"}
package/out/types.js ADDED
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@ai-dev-tools/test-copilot-core",
3
+ "version": "1.0.19",
4
+ "description": "Core library for test-copilot",
5
+ "main": "out/index.js",
6
+ "typings": "out/index.d.ts",
7
+ "bin": {
8
+ "test-copilot": "out/cli/index.js"
9
+ },
10
+ "scripts": {
11
+ "setup-npm-auth": "npm install -g @microsoft/artifacts-npm-credprovider --registry https://pkgs.dev.azure.com/mseng/226da8e7-b1c0-4167-9678-53f461e07706/_packaging/AzureArtifacts/npm/registry/ && set NUGET_CREDENTIALPROVIDER_VSTS_TOKENTYPE=SelfDescribing && artifacts-npm-credprovider",
12
+ "build": "tsc -p ./tsconfig.json",
13
+ "watch": "tsc -watch -p ./",
14
+ "pretest": "npm run build && npm run lint",
15
+ "lint": "eslint src --ext ts",
16
+ "knip": "knip -c ./knip.config.json",
17
+ "cli": "ts-node src/cli/index.ts",
18
+ "prepublishOnly": "npm run build"
19
+ },
20
+ "keywords": [],
21
+ "author": "",
22
+ "license": "ISC",
23
+ "devDependencies": {
24
+ "@types/fs-extra": "^11.0.4",
25
+ "@types/jest": "29.5.14",
26
+ "@types/node": "18.19.101",
27
+ "eslint": "9.25.1",
28
+ "jest": "29.0.0",
29
+ "ts-node": "10.0.0",
30
+ "typescript": "5.8.3"
31
+ },
32
+ "dependencies": {
33
+ "@azure/identity": "^4.11.1",
34
+ "applicationinsights": "1.8.10",
35
+ "fs-extra": "^11.3.0",
36
+ "ts-morph": "25.0.1",
37
+ "yargs": "17.7.2"
38
+ }
39
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@aidevtools/test-copilot-core",
3
+ "version": "1.0.19",
4
+ "description": "Core library for test-copilot",
5
+ "main": "out/index.js",
6
+ "typings": "out/index.d.ts",
7
+ "bin": {
8
+ "test-copilot": "out/cli/index.js"
9
+ },
10
+ "publishConfig": {
11
+ "registry": "https://pkgs.dev.azure.com/msasg/ContentServices/_packaging/MSNews/npm/registry/"
12
+ },
13
+ "scripts": {
14
+ "setup-npm-auth": "npm install -g @microsoft/artifacts-npm-credprovider --registry https://pkgs.dev.azure.com/mseng/226da8e7-b1c0-4167-9678-53f461e07706/_packaging/AzureArtifacts/npm/registry/ && set NUGET_CREDENTIALPROVIDER_VSTS_TOKENTYPE=SelfDescribing && artifacts-npm-credprovider",
15
+ "build": "tsc -p ./tsconfig.json",
16
+ "watch": "tsc -watch -p ./",
17
+ "pretest": "npm run build && npm run lint",
18
+ "lint": "eslint src --ext ts",
19
+ "knip": "knip -c ./knip.config.json",
20
+ "cli": "ts-node src/cli/index.ts",
21
+ "prepublishOnly": "npm run build"
22
+ },
23
+ "keywords": [],
24
+ "author": "",
25
+ "license": "ISC",
26
+ "devDependencies": {
27
+ "@types/fs-extra": "^11.0.4",
28
+ "@types/jest": "29.5.14",
29
+ "@types/node": "18.19.101",
30
+ "eslint": "9.25.1",
31
+ "jest": "29.0.0",
32
+ "ts-node": "10.0.0",
33
+ "typescript": "5.8.3"
34
+ },
35
+ "dependencies": {
36
+ "@azure/identity": "^4.11.1",
37
+ "applicationinsights": "1.8.10",
38
+ "fs-extra": "^11.3.0",
39
+ "ts-morph": "25.0.1",
40
+ "yargs": "17.7.2"
41
+ }
42
+ }