testeranto 0.79.69 → 0.81.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 (252) hide show
  1. package/.aider.chat.history.md +980 -0
  2. package/.aider.input.history +87 -0
  3. package/.aider.tags.cache.v3/1c/30/af1de2ad7a137afeddb1b01e0c27.val +0 -0
  4. package/.aider.tags.cache.v3/1d/63/88318b65ce58b6bb0487e8ce2656.val +0 -0
  5. package/.aider.tags.cache.v3/2e/67/16ae65530b40038e48e00d666c63.val +0 -0
  6. package/.aider.tags.cache.v3/6f/94/80488a232866fcce7ee657da488b.val +0 -0
  7. package/.aider.tags.cache.v3/cache.db +0 -0
  8. package/.eslintrc.js +5 -2
  9. package/README.md +10 -107
  10. package/build-tests.ts +16 -0
  11. package/dist/common/build-tests.js +38 -0
  12. package/dist/common/init-docs.js +8 -0
  13. package/dist/common/run-tests.js +34 -0
  14. package/dist/common/src/Aider.js +143 -0
  15. package/dist/common/src/Init.js +10 -0
  16. package/dist/common/{PM → src/PM}/main.js +58 -49
  17. package/dist/common/{PM → src/PM}/node.js +1 -1
  18. package/dist/common/{Project.js → src/Project.js} +46 -38
  19. package/dist/common/{Puppeteer.js → src/Puppeteer.js} +51 -40
  20. package/dist/common/{SubPackages → src/SubPackages}/react-dom/jsx/web.js +37 -38
  21. package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx/index.js +17 -2
  22. package/dist/common/src/esbuildConfigs/inputFilesPlugin.js +79 -0
  23. package/dist/common/{esbuildConfigs → src/esbuildConfigs}/node.js +5 -3
  24. package/dist/common/{esbuildConfigs → src/esbuildConfigs}/web.js +4 -4
  25. package/dist/common/{lib → src/lib}/abstractBase.js +80 -24
  26. package/dist/common/{lib → src/lib}/basebuilder.js +14 -3
  27. package/dist/common/{lib → src/lib}/core.js +47 -3
  28. package/dist/common/testeranto.js +15 -0
  29. package/dist/common/tsconfig.common.tsbuildinfo +1 -1
  30. package/dist/module/build-tests.js +10 -0
  31. package/dist/module/init-docs.js +3 -0
  32. package/dist/module/run-tests.js +6 -0
  33. package/dist/module/src/Aider.js +136 -0
  34. package/dist/module/src/Init.js +5 -0
  35. package/dist/module/{PM → src/PM}/main.js +58 -49
  36. package/dist/module/{PM → src/PM}/node.js +1 -1
  37. package/dist/module/{Project.js → src/Project.js} +46 -38
  38. package/dist/module/{Puppeteer.js → src/Puppeteer.js} +51 -40
  39. package/dist/module/{SubPackages → src/SubPackages}/react-dom/jsx/web.js +37 -38
  40. package/dist/module/src/SubPackages/react-test-renderer/jsx/index.js +34 -0
  41. package/dist/module/src/esbuildConfigs/inputFilesPlugin.js +74 -0
  42. package/dist/module/{esbuildConfigs → src/esbuildConfigs}/node.js +4 -2
  43. package/dist/module/{esbuildConfigs → src/esbuildConfigs}/web.js +4 -4
  44. package/dist/module/{lib → src/lib}/abstractBase.js +80 -24
  45. package/dist/module/{lib → src/lib}/basebuilder.js +14 -3
  46. package/dist/module/{lib → src/lib}/core.js +47 -3
  47. package/dist/module/testeranto.js +13 -0
  48. package/dist/module/tsconfig.module.tsbuildinfo +1 -1
  49. package/dist/types/build-tests.d.ts +3 -0
  50. package/dist/types/init-docs.d.ts +2 -0
  51. package/dist/types/run-tests.d.ts +2 -0
  52. package/dist/types/src/Aider.d.ts +1 -0
  53. package/dist/types/{PM → src/PM}/index.d.ts +1 -1
  54. package/dist/types/{PM → src/PM}/main.d.ts +7 -1
  55. package/dist/types/{Project.d.ts → src/Project.d.ts} +6 -1
  56. package/dist/types/{Types.d.ts → src/Types.d.ts} +3 -2
  57. package/dist/types/{lib → src/lib}/abstractBase.d.ts +1 -0
  58. package/dist/types/testeranto.d.ts +16 -0
  59. package/dist/types/tsconfig.types.tsbuildinfo +1 -1
  60. package/init-docs.ts +5 -0
  61. package/package.json +54 -29
  62. package/run-tests.ts +9 -0
  63. package/secret +1 -0
  64. package/secret.env +2 -0
  65. package/src/Aider.ts +168 -0
  66. package/src/Init.ts +0 -31
  67. package/src/PM/index.ts +1 -1
  68. package/src/PM/main.ts +71 -61
  69. package/src/PM/node.ts +1 -1
  70. package/src/Project.ts +55 -48
  71. package/src/Puppeteer.ts +66 -52
  72. package/src/SubPackages/react-dom/jsx/web.ts +46 -49
  73. package/src/SubPackages/react-test-renderer/jsx/index.ts +25 -2
  74. package/src/Types.ts +3 -1
  75. package/src/esbuildConfigs/inputFilesPlugin.ts +78 -31
  76. package/src/esbuildConfigs/node.ts +2 -2
  77. package/src/esbuildConfigs/web.ts +4 -4
  78. package/src/lib/abstractBase.ts +88 -30
  79. package/src/lib/basebuilder.ts +17 -3
  80. package/src/lib/core.ts +55 -13
  81. package/testeranto.ts +13 -0
  82. package/tsconfig.common.json +12 -4
  83. package/tsconfig.json +9 -2
  84. package/tsconfig.module.json +2 -2
  85. package/tsconfig.types.json +1 -1
  86. package/Report.Dockerfile +0 -44
  87. package/dist/common/Features.js +0 -51
  88. package/dist/common/Init.js +0 -30
  89. package/dist/common/Reporter.js +0 -112
  90. package/dist/common/Scheduler.js +0 -1
  91. package/dist/common/TaskManBackEnd.js +0 -167
  92. package/dist/common/esbuildConfigs/inputFilesPlugin.js +0 -49
  93. package/dist/common/mongooseSchemas.js +0 -56
  94. package/dist/common/preload.js +0 -15
  95. package/dist/common/report.html.js +0 -31
  96. package/dist/module/ExampleTab.js +0 -112
  97. package/dist/module/Features.js +0 -41
  98. package/dist/module/Init.js +0 -25
  99. package/dist/module/Reporter.js +0 -107
  100. package/dist/module/Scheduler.js +0 -1
  101. package/dist/module/SubPackages/react-test-renderer/jsx/index.js +0 -19
  102. package/dist/module/TaskManBackEnd.js +0 -162
  103. package/dist/module/TaskManFrontEnd.js +0 -605
  104. package/dist/module/esbuildConfigs/inputFilesPlugin.js +0 -44
  105. package/dist/module/mongooseSchemas.js +0 -50
  106. package/dist/module/preload.js +0 -15
  107. package/dist/module/report.html.js +0 -29
  108. package/dist/prebuild/TaskManBackEnd.mjs +0 -170
  109. package/dist/prebuild/TaskManFrontEnd.css +0 -12301
  110. package/dist/prebuild/TaskManFrontEnd.js +0 -81262
  111. package/dist/types/Features.d.ts +0 -35
  112. package/dist/types/Reporter.d.ts +0 -1
  113. package/dist/types/Scheduler.d.ts +0 -0
  114. package/dist/types/TaskManBackEnd.d.ts +0 -3
  115. package/dist/types/mongooseSchemas.d.ts +0 -124
  116. package/dist/types/preload.d.ts +0 -0
  117. package/dist/types/report.html.d.ts +0 -2
  118. package/src/ExampleTab.tsx +0 -219
  119. package/src/Features.ts +0 -64
  120. package/src/Reporter.ts +0 -126
  121. package/src/Scheduler.ts +0 -0
  122. package/src/TaskManBackEnd.ts +0 -226
  123. package/src/TaskManFrontEnd.tsx +0 -1254
  124. package/src/mongooseSchemas.ts +0 -105
  125. package/src/preload.ts +0 -17
  126. package/src/report.html.ts +0 -29
  127. package/tests/Rectangle.test.ts +0 -189
  128. package/trash/TaskMan.Dockerfile +0 -23
  129. package/trash/TaskMan1.Dockerfile +0 -43
  130. package/trash/devBot.dockerfile +0 -12
  131. package/trash/docker-compose-dev.yml +0 -9
  132. package/trash/docker-compose-prod.yml +0 -18
  133. package/trash/electronBuild.ts +0 -32
  134. /package/dist/common/{Node.js → src/Node.js} +0 -0
  135. /package/dist/common/{PM → src/PM}/index.js +0 -0
  136. /package/dist/common/{PM → src/PM}/web.js +0 -0
  137. /package/dist/common/{SubPackages → src/SubPackages}/puppeteer.js +0 -0
  138. /package/dist/common/{SubPackages → src/SubPackages}/react/component/node.js +0 -0
  139. /package/dist/common/{SubPackages → src/SubPackages}/react/component/web.js +0 -0
  140. /package/dist/common/{SubPackages → src/SubPackages}/react/jsx/index.js +0 -0
  141. /package/dist/common/{SubPackages → src/SubPackages}/react/jsx/node.js +0 -0
  142. /package/dist/common/{SubPackages → src/SubPackages}/react/jsx/web.js +0 -0
  143. /package/dist/common/{SubPackages → src/SubPackages}/react-dom/component/node.js +0 -0
  144. /package/dist/common/{SubPackages → src/SubPackages}/react-dom/component/web.js +0 -0
  145. /package/dist/common/{SubPackages → src/SubPackages}/react-dom/jsx/index.js +0 -0
  146. /package/dist/common/{SubPackages → src/SubPackages}/react-dom/jsx/node.js +0 -0
  147. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/MemoExoticComponent/node.js +0 -0
  148. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/component/index.js +0 -0
  149. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/component/interface.js +0 -0
  150. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/component/node.js +0 -0
  151. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/component/web.js +0 -0
  152. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/fc/node.js +0 -0
  153. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/fc/web.js +0 -0
  154. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx/node.js +0 -0
  155. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx/web.js +0 -0
  156. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.js +0 -0
  157. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/node.js +0 -0
  158. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/web.js +0 -0
  159. /package/dist/common/{Types.js → src/Types.js} +0 -0
  160. /package/dist/common/{Web.js → src/Web.js} +0 -0
  161. /package/dist/common/{esbuildConfigs → src/esbuildConfigs}/features.js +0 -0
  162. /package/dist/common/{esbuildConfigs → src/esbuildConfigs}/index.js +0 -0
  163. /package/dist/common/{esbuildConfigs → src/esbuildConfigs}/report.js +0 -0
  164. /package/dist/common/{esbuildConfigs → src/esbuildConfigs}/tests.js +0 -0
  165. /package/dist/common/{lib → src/lib}/classBuilder.js +0 -0
  166. /package/dist/common/{lib → src/lib}/index.js +0 -0
  167. /package/dist/common/{lib → src/lib}/types.js +0 -0
  168. /package/dist/common/{puppeteerConfiger.js → src/puppeteerConfiger.js} +0 -0
  169. /package/dist/common/{utils.js → src/utils.js} +0 -0
  170. /package/dist/common/{web.html.js → src/web.html.js} +0 -0
  171. /package/dist/module/{Node.js → src/Node.js} +0 -0
  172. /package/dist/module/{PM → src/PM}/index.js +0 -0
  173. /package/dist/module/{PM → src/PM}/web.js +0 -0
  174. /package/dist/module/{SubPackages → src/SubPackages}/puppeteer.js +0 -0
  175. /package/dist/module/{SubPackages → src/SubPackages}/react/component/node.js +0 -0
  176. /package/dist/module/{SubPackages → src/SubPackages}/react/component/web.js +0 -0
  177. /package/dist/module/{SubPackages → src/SubPackages}/react/jsx/index.js +0 -0
  178. /package/dist/module/{SubPackages → src/SubPackages}/react/jsx/node.js +0 -0
  179. /package/dist/module/{SubPackages → src/SubPackages}/react/jsx/web.js +0 -0
  180. /package/dist/module/{SubPackages → src/SubPackages}/react-dom/component/node.js +0 -0
  181. /package/dist/module/{SubPackages → src/SubPackages}/react-dom/component/web.js +0 -0
  182. /package/dist/module/{SubPackages → src/SubPackages}/react-dom/jsx/index.js +0 -0
  183. /package/dist/module/{SubPackages → src/SubPackages}/react-dom/jsx/node.js +0 -0
  184. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/MemoExoticComponent/node.js +0 -0
  185. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/component/index.js +0 -0
  186. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/component/interface.js +0 -0
  187. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/component/node.js +0 -0
  188. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/component/web.js +0 -0
  189. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/fc/node.js +0 -0
  190. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/fc/web.js +0 -0
  191. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx/node.js +0 -0
  192. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx/web.js +0 -0
  193. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.js +0 -0
  194. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/node.js +0 -0
  195. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/web.js +0 -0
  196. /package/dist/module/{Types.js → src/Types.js} +0 -0
  197. /package/dist/module/{Web.js → src/Web.js} +0 -0
  198. /package/dist/module/{esbuildConfigs → src/esbuildConfigs}/features.js +0 -0
  199. /package/dist/module/{esbuildConfigs → src/esbuildConfigs}/index.js +0 -0
  200. /package/dist/module/{esbuildConfigs → src/esbuildConfigs}/report.js +0 -0
  201. /package/dist/module/{esbuildConfigs → src/esbuildConfigs}/tests.js +0 -0
  202. /package/dist/module/{lib → src/lib}/classBuilder.js +0 -0
  203. /package/dist/module/{lib → src/lib}/index.js +0 -0
  204. /package/dist/module/{lib → src/lib}/types.js +0 -0
  205. /package/dist/module/{puppeteerConfiger.js → src/puppeteerConfiger.js} +0 -0
  206. /package/dist/module/{utils.js → src/utils.js} +0 -0
  207. /package/dist/module/{web.html.js → src/web.html.js} +0 -0
  208. /package/dist/types/{Init.d.ts → src/Init.d.ts} +0 -0
  209. /package/dist/types/{Node.d.ts → src/Node.d.ts} +0 -0
  210. /package/dist/types/{PM → src/PM}/node.d.ts +0 -0
  211. /package/dist/types/{PM → src/PM}/web.d.ts +0 -0
  212. /package/dist/types/{Puppeteer.d.ts → src/Puppeteer.d.ts} +0 -0
  213. /package/dist/types/{SubPackages → src/SubPackages}/puppeteer.d.ts +0 -0
  214. /package/dist/types/{SubPackages → src/SubPackages}/react/component/node.d.ts +0 -0
  215. /package/dist/types/{SubPackages → src/SubPackages}/react/component/web.d.ts +0 -0
  216. /package/dist/types/{SubPackages → src/SubPackages}/react/jsx/index.d.ts +0 -0
  217. /package/dist/types/{SubPackages → src/SubPackages}/react/jsx/node.d.ts +0 -0
  218. /package/dist/types/{SubPackages → src/SubPackages}/react/jsx/web.d.ts +0 -0
  219. /package/dist/types/{SubPackages → src/SubPackages}/react-dom/component/node.d.ts +0 -0
  220. /package/dist/types/{SubPackages → src/SubPackages}/react-dom/component/web.d.ts +0 -0
  221. /package/dist/types/{SubPackages → src/SubPackages}/react-dom/jsx/index.d.ts +0 -0
  222. /package/dist/types/{SubPackages → src/SubPackages}/react-dom/jsx/node.d.ts +0 -0
  223. /package/dist/types/{SubPackages → src/SubPackages}/react-dom/jsx/web.d.ts +0 -0
  224. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/MemoExoticComponent/node.d.ts +0 -0
  225. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/component/index.d.ts +0 -0
  226. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/component/interface.d.ts +0 -0
  227. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/component/node.d.ts +0 -0
  228. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/component/web.d.ts +0 -0
  229. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/fc/node.d.ts +0 -0
  230. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/fc/web.d.ts +0 -0
  231. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx/index.d.ts +0 -0
  232. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx/node.d.ts +0 -0
  233. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx/web.d.ts +0 -0
  234. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.d.ts +0 -0
  235. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/node.d.ts +0 -0
  236. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/web.d.ts +0 -0
  237. /package/dist/types/{Web.d.ts → src/Web.d.ts} +0 -0
  238. /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/features.d.ts +0 -0
  239. /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/index.d.ts +0 -0
  240. /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/inputFilesPlugin.d.ts +0 -0
  241. /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/node.d.ts +0 -0
  242. /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/report.d.ts +0 -0
  243. /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/tests.d.ts +0 -0
  244. /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/web.d.ts +0 -0
  245. /package/dist/types/{lib → src/lib}/basebuilder.d.ts +0 -0
  246. /package/dist/types/{lib → src/lib}/classBuilder.d.ts +0 -0
  247. /package/dist/types/{lib → src/lib}/core.d.ts +0 -0
  248. /package/dist/types/{lib → src/lib}/index.d.ts +0 -0
  249. /package/dist/types/{lib → src/lib}/types.d.ts +0 -0
  250. /package/dist/types/{puppeteerConfiger.d.ts → src/puppeteerConfiger.d.ts} +0 -0
  251. /package/dist/types/{utils.d.ts → src/utils.d.ts} +0 -0
  252. /package/dist/types/{web.html.d.ts → src/web.html.d.ts} +0 -0
package/init-docs.ts ADDED
@@ -0,0 +1,5 @@
1
+ import Init from "./src/Init.js";
2
+
3
+ import Project from "./testeranto.js";
4
+
5
+ export default Init(Project as any);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "testeranto",
3
3
  "description": "teeny tiny tightly-typed typescript tests",
4
- "version": "0.79.69",
4
+ "version": "0.81.0",
5
5
  "engines": {
6
6
  "node": "18.18.0"
7
7
  },
@@ -59,15 +59,15 @@
59
59
  },
60
60
  "./src/SubPackages/react-test-renderer/jsx/index.js": {
61
61
  "import": "./dist/module/src/SubPackages/react-test-renderer/jsx/index.js",
62
- "require": "./dist/common/SubPackages/react-test-renderer/jsx/index.js"
62
+ "require": "./dist/common/src/SubPackages/react-test-renderer/jsx/index.js"
63
63
  },
64
64
  "./src/SubPackages/react-test-renderer/jsx/web.js": {
65
- "import": "./dist/module/SubPackages/react-test-renderer/jsx/web.js",
66
- "require": "./dist/common/SubPackages/react-test-renderer/jsx/web.js"
65
+ "import": "./dist/module/src/SubPackages/react-test-renderer/jsx/web.js",
66
+ "require": "./dist/common/src/SubPackages/react-test-renderer/jsx/web.js"
67
67
  },
68
68
  "./src/SubPackages/react-test-renderer/jsx/node.js": {
69
- "import": "./dist/module/SubPackages/react-test-renderer/jsx/node.js",
70
- "require": "./dist/common/SubPackages/react-test-renderer/jsx/node.js"
69
+ "import": "./dist/module/src/SubPackages/react-test-renderer/jsx/node.js",
70
+ "require": "./dist/common/src/SubPackages/react-test-renderer/jsx/node.js"
71
71
  },
72
72
  "./src/SubPackages/react-test-renderer/jsx-promised/index": {
73
73
  "import": "./dist/module/SubPackages/react-test-renderer/jsx-promised/index.js",
@@ -121,9 +121,13 @@
121
121
  "import": "./dist/module/Features.js",
122
122
  "require": "./dist/common/Features.js"
123
123
  },
124
+ "./src/prompt": {
125
+ "import": "./dist/module/src/prompt.js",
126
+ "require": "./dist/module/src/prompt.js"
127
+ },
124
128
  "./src/Project": {
125
- "import": "./dist/module/Project.js",
126
- "require": "./dist/common/Project.js"
129
+ "import": "./dist/module/src/Project.js",
130
+ "require": "./dist/module/src/Project.js"
127
131
  },
128
132
  "./src/Web": {
129
133
  "import": "./src/Web.ts",
@@ -133,17 +137,17 @@
133
137
  "import": "./src/Node.ts",
134
138
  "require": "./src/Node.ts"
135
139
  },
136
- "./src/Puppeteer": {
137
- "import": "./dist/module/Puppeteer.js",
138
- "require": "./dist/common/Puppeteer.js"
140
+ "./src/Aider": {
141
+ "import": "./dist/module/src/Aider.js",
142
+ "require": "./dist/common/src/Aider.js"
139
143
  },
140
- "./src/TaskManBackEnd": {
141
- "import": "./dist/module/TaskManBackEnd.js",
142
- "require": "./dist/common/TaskManBackEnd.js"
144
+ "./src/Puppeteer": {
145
+ "import": "./dist/module/src/Puppeteer.js",
146
+ "require": "./dist/common/src/Puppeteer.js"
143
147
  },
144
148
  "./src/Init": {
145
- "import": "./dist/module/Init.js",
146
- "require": "./dist/common/Init.js"
149
+ "import": "./dist/module/src/Init.js",
150
+ "require": "./dist/common/src/Init.js"
147
151
  },
148
152
  "./src/preload": {
149
153
  "import": "./dist/module/preload.js",
@@ -183,19 +187,23 @@
183
187
  "scripts": {
184
188
  "commit": "yarn build; git add --all && git commit -m 'stash'",
185
189
  "doit": "rm -rf node_modules && yarn install && yarn build",
186
- "build": "sh prebuild.sh; cp ./src/cjs-shim.js ./dist/cjs-shim.js; tsc -p tsconfig.module.json; tsc -p tsconfig.common.json; tsc -p tsconfig.types.json; yarn esbuild src/TaskManFrontEnd.tsx --outfile=dist/prebuild/TaskManFrontEnd.js --bundle; yarn esbuild src/TaskManBackEnd.ts --outfile=dist/prebuild/TaskManBackEnd.mjs --bundle --platform=node --format=esm --packages=external; sh postBuild.sh; ",
187
- "dev": "cp ./src/cjs-shim.js ./dist/cjs-shim.js && tsc -p tsconfig.module.json --watch & tsc -p tsconfig.common.json --watch & tsc -p tsconfig.types.json --watch & yarn esbuild src/TaskManFrontEnd.tsx --outfile=dist/prebuild/TaskManFrontEnd.js --bundle --watch & yarn esbuild src/TaskManBackEnd.ts --platform=node --outfile=dist/prebuild/TaskManBackEnd.mjs --bundle --watch --format=esm --packages=external",
190
+ "build": "sh prebuild.sh; cp ./src/cjs-shim.js ./dist/cjs-shim.js; tsc -p tsconfig.module.json; tsc -p tsconfig.common.json; tsc -p tsconfig.types.json; sh postBuild.sh",
191
+ "dev": "cp ./src/cjs-shim.js ./dist/cjs-shim.js && tsc -p tsconfig.module.json --watch & tsc -p tsconfig.common.json --watch & tsc -p tsconfig.types.json --watch ",
188
192
  "build-module": "tsc -p tsconfig.module.json",
189
193
  "build-common": "tsc -p tsconfig.common.json",
190
- "build-types": "tsc -p tsconfig.types.json"
194
+ "build-types": "tsc -p tsconfig.types.json",
195
+ "build-tests": "ts-node-esm ./project.ts",
196
+ "run-tests": "ts-node-esm ./run-tests.ts",
197
+ "init-docs": "ts-node-esm init-docs.ts",
198
+ "test": "yarn build-tests & yarn run-tests"
191
199
  },
192
200
  "peerDependencies": {
193
201
  "@hello-pangea/dnd": ">=16",
194
- "@types/react": "^18.2.66",
195
- "@types/react-dom": "18.2.23",
196
- "@types/react-test-renderer": "18.0.7",
202
+ "@types/react": "18.2.0",
203
+ "@types/react-dom": "18.2.0",
204
+ "@types/react-test-renderer": "19.0.0",
197
205
  "react": "18.2.0",
198
- "react-dom": "^18.2.0",
206
+ "react-dom": "18.2.0",
199
207
  "ts-node": "^10.9.1",
200
208
  "typescript": "4.8.2"
201
209
  },
@@ -204,30 +212,39 @@
204
212
  "@types/node": "^22.7.5",
205
213
  "@types/react": "18.2.55",
206
214
  "@types/react-bootstrap": "^0.32.32",
207
- "@types/react-dom": "18.2.23",
208
- "@types/react-test-renderer": "18.0.7",
215
+ "@types/react-dom": "18.2.0",
216
+ "@types/react-test-renderer": "19.0.0",
209
217
  "@types/ws": "^8.5.10",
210
218
  "@typescript-eslint/eslint-plugin": "^5.46.0",
211
219
  "@typescript-eslint/parser": "^5.46.0",
212
- "react": "18.2.0",
213
- "react-dom": "^18.2.0",
214
220
  "ts-node": "^10.9.1",
215
221
  "typescript": "4.8.2"
216
222
  },
217
223
  "dependencies": {
218
224
  "@asseinfo/react-kanban": "^2.2.0",
219
225
  "@caldwell619/react-kanban": "^0.0.12",
226
+ "@gitgraph/core": "^1.5.0",
227
+ "@gitgraph/js": "^1.4.0",
228
+ "@gitgraph/react": "^1.6.0",
220
229
  "@hello-pangea/dnd": "^18.0.1",
230
+ "@octokit/types": "^13.8.0",
231
+ "@types/express": "^5.0.0",
232
+ "@types/express-session": "^1.18.1",
233
+ "@types/uuid": "^10.0.0",
221
234
  "@xyflow/react": "^12.4.3",
235
+ "@zodform/core": "^0.2.0",
222
236
  "babel-loader": "^8.2.5",
223
237
  "bootstrap": "^5.2.3",
238
+ "chai": "^5.2.0",
224
239
  "dot-prop": "^9.0.0",
225
240
  "esbuild": "0.17.5",
226
241
  "esbuild-plugin-external-package": "^1.0.0",
227
242
  "esbuild-plugin-import-map": "^2.1.0",
228
243
  "eslint": "^8.29.0",
229
244
  "eslint-plugin-react": "^7.31.11",
245
+ "eslint-plugin-react-hooks": "^5.1.0",
230
246
  "express": "^4.21.2",
247
+ "express-session": "^1.18.1",
231
248
  "fs-extra": "^11.2.0",
232
249
  "fs.promises.exists": "^1.1.4",
233
250
  "gantt-task-react": "^0.3.9",
@@ -237,14 +254,20 @@
237
254
  "graphology-types": "^0.24.5",
238
255
  "html": "^1.0.0",
239
256
  "ipc": "^0.0.1",
257
+ "iterm-tab": "^0.4.0",
240
258
  "jsonc": "^2.0.0",
241
259
  "mongodb": "^6.13.0",
242
260
  "mongoose": "^8.10.0",
243
261
  "mongoose-auto-number": "2.0.0",
244
262
  "mongoose-rest-query": "^0.1.29",
245
263
  "npm-watch": "^0.11.0",
264
+ "octokit": "^4.1.2",
265
+ "passport": "^0.7.0",
266
+ "passport-github2": "^0.1.12",
246
267
  "puppeteer-core": "^23.6.0",
247
268
  "react-bootstrap": "2.10.6",
269
+ "react-github-login": "^1.0.3",
270
+ "react-login-github": "^1.0.8",
248
271
  "react-router-dom": "6.29.0",
249
272
  "react-sigma": "^1.2.35",
250
273
  "react-test-renderer": "18.2.0",
@@ -252,6 +275,8 @@
252
275
  "selenium-webdriver": "4.27.0",
253
276
  "url": "^0.11.4",
254
277
  "uuid": "^10.0.0",
255
- "ws": "^8.16.0"
278
+ "why-is-node-running": "^3.2.2",
279
+ "ws": "^8.16.0",
280
+ "zod": "^3.24.2"
256
281
  }
257
- }
282
+ }
package/run-tests.ts ADDED
@@ -0,0 +1,9 @@
1
+ import process from "process";
2
+ process.chdir(__dirname);
3
+
4
+ import Puppeteer from "./src/Puppeteer.js";
5
+
6
+ console.log(process.argv);
7
+ const Project = await import(process.argv[2]);
8
+
9
+ export default Puppeteer(Project as any);
package/secret ADDED
@@ -0,0 +1 @@
1
+ fmG,.R,^TnN7rK3
package/secret.env ADDED
@@ -0,0 +1,2 @@
1
+ DEEPSEEK=sk-34624e21a51541458044a2aa25c20789
2
+ TASKMAN=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
package/src/Aider.ts ADDED
@@ -0,0 +1,168 @@
1
+ import fs from "fs";
2
+ import { exec, spawn } from "child_process";
3
+
4
+ export const execCommand = async (command) => {
5
+ const ls = spawn(command.split(" ")[0], command.split(" ").slice(1, -1));
6
+
7
+ process.stdin.pipe(ls.stdin);
8
+ ls.stdout.pipe(process.stdout);
9
+ ls.stderr.pipe(process.stdout);
10
+ // ls.stdout.on("data", function (data) {
11
+ // console.log("stdout: " + data.toString());
12
+ // });
13
+
14
+ // ls.stderr.on("data", function (data) {
15
+ // console.log("stderr: " + data.toString());
16
+ // });
17
+
18
+ ls.on("exit", function (code) {
19
+ console.log("child process exited with code " + code?.toString() || -1);
20
+ });
21
+
22
+ // return new Promise<void>((resolve, reject) => {
23
+ // const [cmd, ...args] = command.split(" ");
24
+ // const childProcess = spawn(cmd, args);
25
+ // childProcess.stdout.on("data", (data) => {
26
+ // process.stdout.write(data.toString());
27
+ // });
28
+ // childProcess.stderr.on("data", (data) => {
29
+ // process.stderr.write(data.toString());
30
+ // });
31
+ // childProcess.on("error", (error) => {
32
+ // reject(error);
33
+ // });
34
+ // childProcess.on("exit", (code) => {
35
+ // if (code === 0) {
36
+ // resolve();
37
+ // } else {
38
+ // reject(new Error(`Command exited with code ${code}.`));
39
+ // }
40
+ // });
41
+ // });
42
+ };
43
+
44
+ const key = process.argv[2];
45
+ console.log(key);
46
+ const exitcode = fs.readFileSync(`${key}/exitcode`).toString();
47
+
48
+ console.log("exitcode", exitcode);
49
+
50
+ // if (exitcode != "0") {
51
+ if (exitcode != "0") {
52
+ const inputFiles = JSON.parse(
53
+ fs.readFileSync(`${key}/inputFiles.json`).toString()
54
+ );
55
+
56
+ inputFiles.push(`${key}/tests.json`);
57
+
58
+ // const features = await await Promise.all(
59
+ // Array.from(
60
+ // new Set(
61
+ // JSON.parse(fs.readFileSync(`${key}/tests.json`).toString())
62
+ // .givens.reduce((mm: any[], lm: { features: any[] }) => {
63
+ // mm.push(
64
+ // lm.features.reduce((mm2: any[], lm2: any) => {
65
+ // mm2.push(lm2);
66
+ // return mm2;
67
+ // }, [])
68
+ // );
69
+ // return mm;
70
+ // }, [])
71
+ // .flat()
72
+ // .flat()
73
+ // )
74
+ // ) as string[]
75
+ // );
76
+
77
+ // const final = features.reduce((mm, [k, v], ndx) => {
78
+ // mm[k] = v;
79
+ // return mm;
80
+ // }, {});
81
+
82
+ // const as = JSON.stringify(final);
83
+
84
+ // const scriptCommand = `aider --model deepseek --api-key deepseek=${
85
+ // process.env.DEEPSEEK_KEY
86
+ // } --message "Fix the failing tests" --read ${key}/inputFiles.json ${inputFiles
87
+ // .map((i) => `--file ${i}`)
88
+ // .join(" ")}`;
89
+
90
+ const scriptCommand = `aider --message "Fix the failing tests" --model deepseek --api-key deepseek=${
91
+ process.env.DEEPSEEK_KEY
92
+ } --file ./${inputFiles.join(" ./")}`;
93
+
94
+ console.log("scriptCommand", scriptCommand);
95
+
96
+ execCommand(scriptCommand);
97
+
98
+ // fs.writeFile(`./${key}/features.json`, as, () => {
99
+ // inputFiles.push(`./${key}/features.json`);
100
+
101
+ // // itermTab(scriptCommand).then(() => console.log("yay"));
102
+
103
+ // // const child = spawn("xterm -e", scriptCommand.split(" "), {
104
+ // // detached: true,
105
+ // // stdio: "ignore",
106
+ // // });
107
+ // // runCommandInITerm(scriptCommand);
108
+ // });
109
+
110
+ // .reduce(async (mm, feature) => {
111
+ // const req = await octokit.request(
112
+ // `GET /repos/adamwong246/kokomobay-taskman/contents/Task/${feature}.json`,
113
+ // {
114
+ // owner: "adamwong246",
115
+ // repo: "kokomoBay-taskman",
116
+ // path: `Task/${feature}.json`,
117
+ // headers: {
118
+ // "X-GitHub-Api-Version": "2022-11-28",
119
+ // },
120
+ // }
121
+ // );
122
+
123
+ // const j = JSON.parse(atob(req.data.content));
124
+ // (await mm).push([
125
+ // feature,
126
+ // JSON.stringify({
127
+ // name: j.name,
128
+ // body: j.body,
129
+ // }),
130
+ // ]);
131
+
132
+ // return mm;
133
+ // }, Promise.resolve<[string, string][]>([]))
134
+ // .then((z) => {
135
+ // const final = z.reduce((mm, [k, v], ndx) => {
136
+ // mm[k] = v;
137
+ // return mm;
138
+ // }, {});
139
+
140
+ // const as = JSON.stringify(final);
141
+
142
+ // fs.writeFile(`./${key}/features.json`, as, () => {
143
+ // inputFiles.push(`./${key}/features.json`);
144
+
145
+ // const scriptCommand = `aider --model deepseek --api-key deepseek=${
146
+ // process.env.DEEPSEEK_KEY
147
+ // } --message "Fix the failing tests" ${inputFiles.join(" ")}`;
148
+
149
+ // console.log("scriptCommand", scriptCommand);
150
+
151
+ // execCommand(scriptCommand);
152
+ // // itermTab(scriptCommand).then(() => console.log("yay"));
153
+
154
+ // // const child = spawn("xterm -e", scriptCommand.split(" "), {
155
+ // // detached: true,
156
+ // // stdio: "ignore",
157
+ // // });
158
+ // // runCommandInITerm(scriptCommand);
159
+ // });
160
+ // //
161
+ // });
162
+
163
+ // features.then((x) => {
164
+ // console.log("done", x);
165
+ // });
166
+ } else {
167
+ console.log("that test is not failing");
168
+ }
package/src/Init.ts CHANGED
@@ -17,35 +17,4 @@ export default async (partialConfig) => {
17
17
  2
18
18
  )
19
19
  );
20
-
21
- fs.copyFileSync(
22
- "./node_modules/testeranto/dist/prebuild/TaskManFrontEnd.js",
23
- "./docs/TaskManFrontEnd.js"
24
- );
25
- fs.copyFileSync(
26
- "./node_modules/testeranto/dist/prebuild/TaskManFrontEnd.css",
27
- "./docs/TaskManFrontEnd.css"
28
- );
29
-
30
- fs.writeFileSync(
31
- `${config.outdir}/index.html`,
32
- `<!DOCTYPE html>
33
- <html lang="en">
34
-
35
- <head>
36
- <meta name="description" content="Webpage description goes here" />
37
- <meta charset="utf-8" />
38
- <meta name="viewport" content="width=device-width, initial-scale=1" />
39
- <meta name="author" content="" />
40
-
41
- <title>TaskMan</title>
42
-
43
- <link rel="stylesheet" href="/docs/TaskManFrontEnd.css" />
44
- <script type="module" src="/docs/TaskManFrontEnd.js"></script>
45
- </head>
46
-
47
- <body><div id="root">react is loading</div></body>
48
-
49
- </html>`
50
- );
51
20
  };
package/src/PM/index.ts CHANGED
@@ -17,7 +17,7 @@ export abstract class PM {
17
17
  abstract testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise) => void);
18
18
  abstract createWriteStream(filepath: string): any;
19
19
  abstract writeFileSync(fp: string, contents: string);
20
- abstract mkdirSync();
20
+ abstract mkdirSync(a: string);
21
21
  abstract existsSync(fp: string): boolean;
22
22
  abstract write(accessObject: { uid: number }, contents: string): boolean;
23
23
  abstract end(accessObject: { uid: number }): boolean;