testeranto 0.203.0 → 0.206.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 (1148) hide show
  1. package/.vscode/settings.json +1 -0
  2. package/Dockerfile.golang +14 -0
  3. package/Dockerfile.mothership +21 -0
  4. package/Dockerfile.node +11 -0
  5. package/Dockerfile.python +19 -0
  6. package/Dockerfile.web +9 -0
  7. package/README.md +3 -1
  8. package/bundle.js +7 -15
  9. package/dist/cjs-shim.js +14 -0
  10. package/dist/common/design-editor/DesignEditor.js +77 -0
  11. package/dist/common/design-editor/index.js +18 -0
  12. package/dist/common/design-editor/server.js +98 -0
  13. package/dist/common/design-editor/types.js +2 -0
  14. package/dist/common/example/Calculator.js +105 -0
  15. package/dist/common/example/Calculator.test.adapter.js +39 -0
  16. package/dist/common/example/Calculator.test.implementation.js +50 -0
  17. package/dist/common/example/Calculator.test.js +11 -0
  18. package/dist/common/example/Calculator.test.specification.js +92 -0
  19. package/dist/common/example/Calculator.test.types.js +3 -0
  20. package/dist/common/package.json +3 -0
  21. package/dist/common/scripts/build-example.js +105 -0
  22. package/dist/common/src/CoreTypes.js +2 -0
  23. package/dist/common/src/Helpo.js +55 -0
  24. package/dist/common/src/Init.js +56 -0
  25. package/dist/common/src/Node.js +39 -0
  26. package/dist/common/src/NodeSidecar.js +15 -0
  27. package/dist/common/src/PM/__tests__/nodeSidecar.testeranto.js +108 -0
  28. package/dist/common/src/PM/__tests__/pureSidecar.testeranto.js +93 -0
  29. package/dist/common/src/PM/__tests__/webSidecar.testeranto.js +93 -0
  30. package/dist/common/src/PM/golingvuBuild.js +46 -0
  31. package/dist/common/src/PM/index.js +6 -0
  32. package/dist/common/src/PM/node.js +179 -0
  33. package/dist/common/src/PM/nodeSidecar.js +65 -0
  34. package/dist/common/src/PM/pitonoBuild.js +46 -0
  35. package/dist/common/src/PM/pitonoRunner.js +54 -0
  36. package/dist/common/src/PM/pure.js +103 -0
  37. package/dist/common/src/PM/pureSidecar.js +48 -0
  38. package/dist/common/src/PM/sidecar.js +11 -0
  39. package/dist/common/src/PM/types.js +2 -0
  40. package/dist/common/src/PM/utils.js +217 -0
  41. package/dist/common/src/PM/web.js +102 -0
  42. package/dist/common/src/PM/webSidecar.js +47 -0
  43. package/dist/common/src/Pure.js +38 -0
  44. package/dist/common/src/Pure.test.js +175 -0
  45. package/dist/common/src/PureSidecar.js +13 -0
  46. package/dist/common/src/Types.js +2 -0
  47. package/dist/common/src/Web.js +27 -0
  48. package/dist/common/src/WebSidecar.js +13 -0
  49. package/dist/common/src/app/FileService.js +25 -0
  50. package/dist/common/src/app/api.js +73 -0
  51. package/dist/common/src/app/backend/PM_0.js +320 -0
  52. package/dist/common/src/app/backend/PM_1_WithProcesses.js +924 -0
  53. package/dist/common/src/app/backend/PM_2_WithTCP.js +246 -0
  54. package/dist/common/src/app/backend/PM_WithBuild.js +120 -0
  55. package/dist/common/src/app/backend/PM_WithEslintAndTsc.js +133 -0
  56. package/dist/common/src/app/backend/PM_WithGit.js +586 -0
  57. package/dist/common/src/app/backend/PM_WithHelpo.js +258 -0
  58. package/dist/common/src/app/backend/PM_WithProcesses.js +1083 -0
  59. package/dist/common/src/app/backend/PM_WithTCP.js +388 -0
  60. package/dist/common/src/app/backend/getAllFilesRecursively.js +22 -0
  61. package/dist/common/src/app/backend/main.js +805 -0
  62. package/dist/common/src/app/backend/makePrompt.js +73 -0
  63. package/dist/common/src/app/backend/utils.js +144 -0
  64. package/dist/common/src/app/frontend/App.js +206 -0
  65. package/dist/common/src/app/frontend/DevelopmentFileService.js +98 -0
  66. package/dist/common/src/app/frontend/GitFileService.js +262 -0
  67. package/dist/common/src/app/frontend/GitHubAuthService.js +184 -0
  68. package/dist/common/src/app/frontend/api.js +93 -0
  69. package/dist/common/src/app/frontend/components/DesignEditorPage.js +208 -0
  70. package/dist/common/src/app/frontend/components/SunriseAnimation.js +291 -0
  71. package/dist/common/src/app/frontend/components/SunriseAnimation.test/implementation.js +1 -0
  72. package/dist/common/src/app/frontend/components/SunriseAnimation.test/index.js +1 -0
  73. package/dist/common/src/app/frontend/components/SunriseAnimation.test/interface.js +68 -0
  74. package/dist/common/src/app/frontend/components/SunriseAnimation.test/specification.js +1 -0
  75. package/dist/common/src/app/frontend/components/SunriseAnimation.test/types.js +2 -0
  76. package/dist/common/src/app/frontend/components/TestStatusBadge.js +35 -0
  77. package/dist/common/src/app/frontend/components/pure/AppFrame.js +177 -0
  78. package/dist/common/src/app/frontend/components/pure/AppFrame.test/implementation.js +63 -0
  79. package/dist/common/src/app/frontend/components/pure/AppFrame.test/index.js +14 -0
  80. package/dist/common/src/app/frontend/components/pure/AppFrame.test/specification.js +25 -0
  81. package/dist/common/src/app/frontend/components/pure/AppFrame.test/types.js +3 -0
  82. package/dist/common/src/app/frontend/components/pure/ArtifactTree.js +80 -0
  83. package/dist/common/src/app/frontend/components/pure/BuildLogViewer.js +106 -0
  84. package/dist/common/src/app/frontend/components/pure/DebugEnv.js +30 -0
  85. package/dist/common/src/app/frontend/components/pure/FeaturesReporterView.js +23 -0
  86. package/dist/common/src/app/frontend/components/pure/FeaturesReporterView.test/implementation.js +84 -0
  87. package/dist/common/src/app/frontend/components/pure/FeaturesReporterView.test/index.js +14 -0
  88. package/dist/common/src/app/frontend/components/pure/FeaturesReporterView.test/specification.js +27 -0
  89. package/dist/common/src/app/frontend/components/pure/FeaturesReporterView.test/types.js +2 -0
  90. package/dist/common/src/app/frontend/components/pure/FileTree.js +34 -0
  91. package/dist/common/src/app/frontend/components/pure/FileTreeItem.js +29 -0
  92. package/dist/common/src/app/frontend/components/pure/GitHubLoginButton.js +18 -0
  93. package/dist/common/src/app/frontend/components/pure/GitIntegrationView.js +383 -0
  94. package/dist/common/src/app/frontend/components/pure/HelpoChatDrawer.js +179 -0
  95. package/dist/common/src/app/frontend/components/pure/MagicRobotModal.js +73 -0
  96. package/dist/common/src/app/frontend/components/pure/ModalContent.js +86 -0
  97. package/dist/common/src/app/frontend/components/pure/ModalContent.test/implementation.js +35 -0
  98. package/dist/common/src/app/frontend/components/pure/ModalContent.test/index.js +61 -0
  99. package/dist/common/src/app/frontend/components/pure/ModalContent.test/specification.js +19 -0
  100. package/dist/common/src/app/frontend/components/pure/ModalContent.test/types.js +4 -0
  101. package/dist/common/src/app/frontend/components/pure/NavBar.js +45 -0
  102. package/dist/common/src/app/frontend/components/pure/ProcessDetails.js +49 -0
  103. package/dist/common/src/app/frontend/components/pure/ProcessInput.js +62 -0
  104. package/dist/common/src/app/frontend/components/pure/ProcessList.js +52 -0
  105. package/dist/common/src/app/frontend/components/pure/ProcessLogs.js +67 -0
  106. package/dist/common/src/app/frontend/components/pure/ProcessManager.js +113 -0
  107. package/dist/common/src/app/frontend/components/pure/ProcessManagerView.js +82 -0
  108. package/dist/common/src/app/frontend/components/pure/ProcessManagerViewTypes.js +2 -0
  109. package/dist/common/src/app/frontend/components/pure/ProcessSidebar.js +56 -0
  110. package/dist/common/src/app/frontend/components/pure/ProcessTerminal.js +62 -0
  111. package/dist/common/src/app/frontend/components/pure/ProjectPageView.js +69 -0
  112. package/dist/common/src/app/frontend/components/pure/ProjectPageView.test/implementation.js +185 -0
  113. package/dist/common/src/app/frontend/components/pure/ProjectPageView.test/index.js +14 -0
  114. package/dist/common/src/app/frontend/components/pure/ProjectPageView.test/specification.js +32 -0
  115. package/dist/common/src/app/frontend/components/pure/ProjectPageView.test/types.js +4 -0
  116. package/dist/common/src/app/frontend/components/pure/ProjectsPageView.js +72 -0
  117. package/dist/common/src/app/frontend/components/pure/Settings.js +122 -0
  118. package/dist/common/src/app/frontend/components/pure/Settings.test.js +30 -0
  119. package/dist/common/src/app/frontend/components/pure/SettingsButton.js +13 -0
  120. package/dist/common/src/app/frontend/components/pure/SignIn.js +22 -0
  121. package/dist/common/src/app/frontend/components/pure/SingleProcessView.js +126 -0
  122. package/dist/common/src/app/frontend/components/pure/TerminalInput.js +76 -0
  123. package/dist/common/src/app/frontend/components/pure/TerminalLogs.js +80 -0
  124. package/dist/common/src/app/frontend/components/pure/TestTable.js +33 -0
  125. package/dist/common/src/app/frontend/components/pure/ThemeCard.js +15 -0
  126. package/dist/common/src/app/frontend/components/pure/ToastNotification.js +14 -0
  127. package/dist/common/src/app/frontend/components/pure/UserProfile.js +27 -0
  128. package/dist/common/src/app/frontend/components/stateful/AuthCallbackPage.js +51 -0
  129. package/dist/common/src/app/frontend/components/stateful/DratoPage.js +319 -0
  130. package/dist/common/src/app/frontend/components/stateful/FeaturesReporter.js +22 -0
  131. package/dist/common/src/app/frontend/components/stateful/FileTree.js +59 -0
  132. package/dist/common/src/app/frontend/components/stateful/GenericXMLEditor/AttributeEditor.js +51 -0
  133. package/dist/common/src/app/frontend/components/stateful/GenericXMLEditor/Drawer.js +152 -0
  134. package/dist/common/src/app/frontend/components/stateful/GenericXMLEditor/GenericPreview.js +156 -0
  135. package/dist/common/src/app/frontend/components/stateful/GenericXMLEditor/GenericTextEditor.js +169 -0
  136. package/dist/common/src/app/frontend/components/stateful/GenericXMLEditor/GenericTree.js +30 -0
  137. package/dist/common/src/app/frontend/components/stateful/GenericXMLEditorPage.js +306 -0
  138. package/dist/common/src/app/frontend/components/stateful/GitIntegrationPage.js +252 -0
  139. package/dist/common/src/app/frontend/components/stateful/GrafeoPage.js +437 -0
  140. package/dist/common/src/app/frontend/components/stateful/ProcessManagerPage.js +113 -0
  141. package/dist/common/src/app/frontend/components/stateful/ProjectPage.js +108 -0
  142. package/dist/common/src/app/frontend/components/stateful/ProjectsPage.js +136 -0
  143. package/dist/common/src/app/frontend/components/stateful/SVGEditor/CircleForm.js +24 -0
  144. package/dist/common/src/app/frontend/components/stateful/SVGEditor/GroupForm.js +22 -0
  145. package/dist/common/src/app/frontend/components/stateful/SVGEditor/RectForm.js +25 -0
  146. package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGAttributeField.js +15 -0
  147. package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGAttributesEditor.js +87 -0
  148. package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGEditorControls.js +23 -0
  149. package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGElementForm.js +23 -0
  150. package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGPreview.js +178 -0
  151. package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGTextEditor.js +155 -0
  152. package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGTree.js +105 -0
  153. package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGTypes.js +2 -0
  154. package/dist/common/src/app/frontend/components/stateful/SVGEditorPage.js +437 -0
  155. package/dist/common/src/app/frontend/components/stateful/SettingsPage.js +72 -0
  156. package/dist/common/src/app/frontend/components/stateful/SingleProcessPage.js +134 -0
  157. package/dist/common/src/app/frontend/components/stateful/SkriboPage.js +517 -0
  158. package/dist/common/src/app/frontend/components/stateful/TextEditorPage.js +154 -0
  159. package/dist/common/src/app/frontend/fetchDataUtil.js +187 -0
  160. package/dist/common/src/app/frontend/flua/FluaPage.js +378 -0
  161. package/dist/common/src/app/frontend/testPage/ITestPageViewProps.js +2 -0
  162. package/dist/common/src/app/frontend/testPage/ProjectsTree.js +179 -0
  163. package/dist/common/src/app/frontend/testPage/TestPage.js +85 -0
  164. package/dist/common/src/app/frontend/testPage/TestPageLeftContent.js +48 -0
  165. package/dist/common/src/app/frontend/testPage/TestPageMainContent.js +82 -0
  166. package/dist/common/src/app/frontend/testPage/TestPageNavbar.js +33 -0
  167. package/dist/common/src/app/frontend/testPage/TestPageView.js +352 -0
  168. package/dist/common/src/app/frontend/testPage/TestPageView.test/implementation.js +158 -0
  169. package/dist/common/src/app/frontend/testPage/TestPageView.test/index.js +15 -0
  170. package/dist/common/src/app/frontend/testPage/TestPageView.test/specification.js +27 -0
  171. package/dist/common/src/app/frontend/testPage/TestPageView.test/types.js +4 -0
  172. package/dist/common/src/app/frontend/testPage/TestPageView_utils.js +128 -0
  173. package/dist/common/src/app/frontend/useFileSystemSync.js +108 -0
  174. package/dist/common/src/app/frontend/useFs.js +16 -0
  175. package/dist/common/src/app/frontend/useGitMode.js +20 -0
  176. package/dist/common/src/app/frontend/useTerminalWebSocket.js +44 -0
  177. package/dist/common/src/app/frontend/useWebSocket.js +16 -0
  178. package/dist/common/src/app/types.js +2 -0
  179. package/dist/common/src/builders/golang.js +30 -0
  180. package/dist/common/src/builders/node.js +35 -0
  181. package/dist/common/src/builders/python.js +28 -0
  182. package/dist/common/src/builders/web.js +35 -0
  183. package/dist/common/src/defaultConfig.js +19 -0
  184. package/dist/common/src/esbuildConfigs/consoleDetectorPlugin.js +38 -0
  185. package/dist/common/src/esbuildConfigs/eslint-formatter-testeranto.js +21 -0
  186. package/dist/common/src/esbuildConfigs/featuresPlugin.js +39 -0
  187. package/dist/common/src/esbuildConfigs/index.js +21 -0
  188. package/dist/common/src/esbuildConfigs/inputFilesPlugin.js +30 -0
  189. package/dist/common/src/esbuildConfigs/nativeImportDetectorPlugin.js +24 -0
  190. package/dist/common/src/esbuildConfigs/node.js +26 -0
  191. package/dist/common/src/esbuildConfigs/pure.js +42 -0
  192. package/dist/common/src/esbuildConfigs/rebuildPlugin.js +19 -0
  193. package/dist/common/src/esbuildConfigs/web.js +48 -0
  194. package/dist/common/src/init-docs.js +9 -0
  195. package/dist/common/src/lib/BaseGiven.js +176 -0
  196. package/dist/common/src/lib/BaseSuite.js +138 -0
  197. package/dist/common/src/lib/BaseSuite.test/mock.js +68 -0
  198. package/dist/common/src/lib/BaseSuite.test/node.test.js +10 -0
  199. package/dist/common/src/lib/BaseSuite.test/pure.test.js +10 -0
  200. package/dist/common/src/lib/BaseSuite.test/test.js +184 -0
  201. package/dist/common/src/lib/BaseSuite.test/web.test.js +10 -0
  202. package/dist/common/src/lib/BaseThen.js +63 -0
  203. package/dist/common/src/lib/BaseWhen.js +47 -0
  204. package/dist/common/src/lib/Sidecar.js +7 -0
  205. package/dist/common/src/lib/Tiposkripto.js +188 -0
  206. package/dist/common/src/lib/Tiposkripto.test/MockTiposkripto.js +170 -0
  207. package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.adapter.js +29 -0
  208. package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.implementation.js +215 -0
  209. package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.js +11 -0
  210. package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.specification.js +53 -0
  211. package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.types.js +2 -0
  212. package/dist/common/src/lib/abstractBase.test/MockGiven.js +24 -0
  213. package/dist/common/src/lib/abstractBase.test/MockThen.js +16 -0
  214. package/dist/common/src/lib/abstractBase.test/MockWhen.js +20 -0
  215. package/dist/common/src/lib/abstractBase.test/adapter.js +24 -0
  216. package/dist/common/src/lib/abstractBase.test/implementation.js +38 -0
  217. package/dist/common/src/lib/abstractBase.test/index.js +18 -0
  218. package/dist/common/src/lib/abstractBase.test/specification.js +19 -0
  219. package/dist/common/src/lib/abstractBase.test/types.js +2 -0
  220. package/dist/common/src/lib/index.js +31 -0
  221. package/dist/common/src/lib/pmProxy.js +260 -0
  222. package/dist/common/src/lib/pmProxy.test/adapter.js +54 -0
  223. package/dist/common/src/lib/pmProxy.test/implementation.js +130 -0
  224. package/dist/common/src/lib/pmProxy.test/index.js +13 -0
  225. package/dist/common/src/lib/pmProxy.test/mockPM.js +35 -0
  226. package/dist/common/src/lib/pmProxy.test/mockPMBase.js +131 -0
  227. package/dist/common/src/lib/pmProxy.test/specification.js +178 -0
  228. package/dist/common/src/lib/pmProxy.test/types.js +2 -0
  229. package/dist/common/src/lib/types.js +3 -0
  230. package/dist/common/src/mothership/mothership.js +197 -0
  231. package/dist/common/src/mothership/test.js +85 -0
  232. package/dist/common/src/run.js +49 -0
  233. package/dist/common/src/testeranto.js +212 -0
  234. package/dist/common/src/utils/buildTemplates.js +37 -0
  235. package/dist/common/src/utils/generateGolingvuMetafile.js +157 -0
  236. package/dist/common/src/utils/golingvuMetafile/fileDiscovery.js +142 -0
  237. package/dist/common/src/utils/golingvuMetafile/goList.js +103 -0
  238. package/dist/common/src/utils/golingvuMetafile/helpers.js +68 -0
  239. package/dist/common/src/utils/golingvuMetafile/importParser.js +89 -0
  240. package/dist/common/src/utils/golingvuMetafile/types.js +3 -0
  241. package/dist/common/src/utils/golingvuMetafile.js +9 -0
  242. package/dist/common/src/utils/golingvuWatcher.js +233 -0
  243. package/dist/common/src/utils/logFiles.js +60 -0
  244. package/dist/common/src/utils/pitonoMetafile.js +247 -0
  245. package/dist/common/src/utils/pitonoWatcher.js +130 -0
  246. package/dist/common/src/utils/queue.js +36 -0
  247. package/dist/common/src/utils/writeGolingvuMetafile.js +324 -0
  248. package/dist/common/src/web.html.js +18 -0
  249. package/dist/common/testeranto.config.js +91 -0
  250. package/dist/common/tsconfig.common.tsbuildinfo +1 -0
  251. package/dist/module/design-editor/DesignEditor.js +40 -0
  252. package/dist/module/design-editor/index.js +2 -0
  253. package/dist/module/design-editor/server.js +92 -0
  254. package/dist/module/design-editor/types.js +1 -0
  255. package/dist/module/example/Calculator.js +101 -0
  256. package/dist/module/example/Calculator.test.adapter.js +36 -0
  257. package/dist/module/example/Calculator.test.implementation.js +47 -0
  258. package/dist/module/example/Calculator.test.js +6 -0
  259. package/dist/module/example/Calculator.test.specification.js +88 -0
  260. package/dist/module/example/Calculator.test.types.js +2 -0
  261. package/dist/module/package.json +3 -0
  262. package/dist/module/scripts/build-example.js +100 -0
  263. package/dist/module/src/CoreTypes.js +1 -0
  264. package/dist/module/src/Helpo.js +48 -0
  265. package/dist/module/src/Init.js +51 -0
  266. package/dist/module/src/Node.js +32 -0
  267. package/dist/module/src/NodeSidecar.js +11 -0
  268. package/dist/module/src/PM/__tests__/nodeSidecar.testeranto.js +103 -0
  269. package/dist/module/src/PM/__tests__/pureSidecar.testeranto.js +88 -0
  270. package/dist/module/src/PM/__tests__/webSidecar.testeranto.js +88 -0
  271. package/dist/module/src/PM/golingvuBuild.js +42 -0
  272. package/dist/module/src/PM/index.js +2 -0
  273. package/dist/module/src/PM/node.js +172 -0
  274. package/dist/module/src/PM/nodeSidecar.js +58 -0
  275. package/dist/module/src/PM/pitonoBuild.js +42 -0
  276. package/dist/module/src/PM/pitonoRunner.js +47 -0
  277. package/dist/module/src/PM/pure.js +99 -0
  278. package/dist/module/src/PM/pureSidecar.js +41 -0
  279. package/dist/module/src/PM/sidecar.js +7 -0
  280. package/dist/module/src/PM/types.js +1 -0
  281. package/dist/module/src/PM/utils.js +203 -0
  282. package/dist/module/src/PM/web.js +98 -0
  283. package/dist/module/src/PM/webSidecar.js +40 -0
  284. package/dist/module/src/Pure.js +31 -0
  285. package/dist/module/src/Pure.test.js +170 -0
  286. package/dist/module/src/PureSidecar.js +9 -0
  287. package/dist/module/src/Types.js +1 -0
  288. package/dist/module/src/Web.js +20 -0
  289. package/dist/module/src/WebSidecar.js +9 -0
  290. package/dist/module/src/app/FileService.js +21 -0
  291. package/dist/module/src/app/api.js +70 -0
  292. package/dist/module/src/app/backend/PM_0.js +313 -0
  293. package/dist/module/src/app/backend/PM_1_WithProcesses.js +884 -0
  294. package/dist/module/src/app/backend/PM_2_WithTCP.js +239 -0
  295. package/dist/module/src/app/backend/PM_WithBuild.js +113 -0
  296. package/dist/module/src/app/backend/PM_WithEslintAndTsc.js +126 -0
  297. package/dist/module/src/app/backend/PM_WithGit.js +546 -0
  298. package/dist/module/src/app/backend/PM_WithHelpo.js +251 -0
  299. package/dist/module/src/app/backend/PM_WithProcesses.js +1083 -0
  300. package/dist/module/src/app/backend/PM_WithTCP.js +381 -0
  301. package/dist/module/src/app/backend/getAllFilesRecursively.js +16 -0
  302. package/dist/module/src/app/backend/main.js +765 -0
  303. package/dist/module/src/app/backend/makePrompt.js +66 -0
  304. package/dist/module/src/app/backend/utils.js +131 -0
  305. package/dist/module/src/app/frontend/App.js +164 -0
  306. package/dist/module/src/app/frontend/DevelopmentFileService.js +91 -0
  307. package/dist/module/src/app/frontend/GitFileService.js +258 -0
  308. package/dist/module/src/app/frontend/GitHubAuthService.js +180 -0
  309. package/dist/module/src/app/frontend/api.js +87 -0
  310. package/dist/module/src/app/frontend/components/DesignEditorPage.js +171 -0
  311. package/dist/module/src/app/frontend/components/SunriseAnimation.js +256 -0
  312. package/dist/module/src/app/frontend/components/SunriseAnimation.test/implementation.js +1 -0
  313. package/dist/module/src/app/frontend/components/SunriseAnimation.test/index.js +1 -0
  314. package/dist/module/src/app/frontend/components/SunriseAnimation.test/interface.js +32 -0
  315. package/dist/module/src/app/frontend/components/SunriseAnimation.test/specification.js +1 -0
  316. package/dist/module/src/app/frontend/components/SunriseAnimation.test/types.js +1 -0
  317. package/dist/module/src/app/frontend/components/TestStatusBadge.js +28 -0
  318. package/dist/module/src/app/frontend/components/pure/AppFrame.js +140 -0
  319. package/dist/module/src/app/frontend/components/pure/AppFrame.test/implementation.js +57 -0
  320. package/dist/module/src/app/frontend/components/pure/AppFrame.test/index.js +9 -0
  321. package/dist/module/src/app/frontend/components/pure/AppFrame.test/specification.js +21 -0
  322. package/dist/module/src/app/frontend/components/pure/AppFrame.test/types.js +2 -0
  323. package/dist/module/src/app/frontend/components/pure/ArtifactTree.js +80 -0
  324. package/dist/module/src/app/frontend/components/pure/BuildLogViewer.js +99 -0
  325. package/dist/module/src/app/frontend/components/pure/DebugEnv.js +23 -0
  326. package/dist/module/src/app/frontend/components/pure/FeaturesReporterView.js +16 -0
  327. package/dist/module/src/app/frontend/components/pure/FeaturesReporterView.test/implementation.js +81 -0
  328. package/dist/module/src/app/frontend/components/pure/FeaturesReporterView.test/index.js +9 -0
  329. package/dist/module/src/app/frontend/components/pure/FeaturesReporterView.test/specification.js +23 -0
  330. package/dist/module/src/app/frontend/components/pure/FeaturesReporterView.test/types.js +1 -0
  331. package/dist/module/src/app/frontend/components/pure/FileTree.js +27 -0
  332. package/dist/module/src/app/frontend/components/pure/FileTreeItem.js +22 -0
  333. package/dist/module/src/app/frontend/components/pure/GitHubLoginButton.js +11 -0
  334. package/dist/module/src/app/frontend/components/pure/GitIntegrationView.js +346 -0
  335. package/dist/module/src/app/frontend/components/pure/HelpoChatDrawer.js +142 -0
  336. package/dist/module/src/app/frontend/components/pure/MagicRobotModal.js +66 -0
  337. package/dist/module/src/app/frontend/components/pure/ModalContent.js +79 -0
  338. package/dist/module/src/app/frontend/components/pure/ModalContent.test/implementation.js +32 -0
  339. package/dist/module/src/app/frontend/components/pure/ModalContent.test/index.js +56 -0
  340. package/dist/module/src/app/frontend/components/pure/ModalContent.test/specification.js +15 -0
  341. package/dist/module/src/app/frontend/components/pure/ModalContent.test/types.js +3 -0
  342. package/dist/module/src/app/frontend/components/pure/NavBar.js +38 -0
  343. package/dist/module/src/app/frontend/components/pure/ProcessDetails.js +42 -0
  344. package/dist/module/src/app/frontend/components/pure/ProcessInput.js +25 -0
  345. package/dist/module/src/app/frontend/components/pure/ProcessList.js +45 -0
  346. package/dist/module/src/app/frontend/components/pure/ProcessLogs.js +30 -0
  347. package/dist/module/src/app/frontend/components/pure/ProcessManager.js +76 -0
  348. package/dist/module/src/app/frontend/components/pure/ProcessManagerView.js +45 -0
  349. package/dist/module/src/app/frontend/components/pure/ProcessManagerViewTypes.js +1 -0
  350. package/dist/module/src/app/frontend/components/pure/ProcessSidebar.js +49 -0
  351. package/dist/module/src/app/frontend/components/pure/ProcessTerminal.js +25 -0
  352. package/dist/module/src/app/frontend/components/pure/ProjectPageView.js +62 -0
  353. package/dist/module/src/app/frontend/components/pure/ProjectPageView.test/implementation.js +182 -0
  354. package/dist/module/src/app/frontend/components/pure/ProjectPageView.test/index.js +9 -0
  355. package/dist/module/src/app/frontend/components/pure/ProjectPageView.test/specification.js +28 -0
  356. package/dist/module/src/app/frontend/components/pure/ProjectPageView.test/types.js +3 -0
  357. package/dist/module/src/app/frontend/components/pure/ProjectsPageView.js +65 -0
  358. package/dist/module/src/app/frontend/components/pure/Settings.js +85 -0
  359. package/dist/module/src/app/frontend/components/pure/Settings.test.js +30 -0
  360. package/dist/module/src/app/frontend/components/pure/SettingsButton.js +6 -0
  361. package/dist/module/src/app/frontend/components/pure/SignIn.js +15 -0
  362. package/dist/module/src/app/frontend/components/pure/SingleProcessView.js +126 -0
  363. package/dist/module/src/app/frontend/components/pure/TerminalInput.js +39 -0
  364. package/dist/module/src/app/frontend/components/pure/TerminalLogs.js +43 -0
  365. package/dist/module/src/app/frontend/components/pure/TestTable.js +26 -0
  366. package/dist/module/src/app/frontend/components/pure/ThemeCard.js +8 -0
  367. package/dist/module/src/app/frontend/components/pure/ToastNotification.js +7 -0
  368. package/dist/module/src/app/frontend/components/pure/UserProfile.js +20 -0
  369. package/dist/module/src/app/frontend/components/stateful/AuthCallbackPage.js +14 -0
  370. package/dist/module/src/app/frontend/components/stateful/DratoPage.js +282 -0
  371. package/dist/module/src/app/frontend/components/stateful/FeaturesReporter.js +22 -0
  372. package/dist/module/src/app/frontend/components/stateful/FileTree.js +59 -0
  373. package/dist/module/src/app/frontend/components/stateful/GenericXMLEditor/AttributeEditor.js +44 -0
  374. package/dist/module/src/app/frontend/components/stateful/GenericXMLEditor/Drawer.js +115 -0
  375. package/dist/module/src/app/frontend/components/stateful/GenericXMLEditor/GenericPreview.js +119 -0
  376. package/dist/module/src/app/frontend/components/stateful/GenericXMLEditor/GenericTextEditor.js +132 -0
  377. package/dist/module/src/app/frontend/components/stateful/GenericXMLEditor/GenericTree.js +23 -0
  378. package/dist/module/src/app/frontend/components/stateful/GenericXMLEditorPage.js +269 -0
  379. package/dist/module/src/app/frontend/components/stateful/GitIntegrationPage.js +215 -0
  380. package/dist/module/src/app/frontend/components/stateful/GrafeoPage.js +400 -0
  381. package/dist/module/src/app/frontend/components/stateful/ProcessManagerPage.js +76 -0
  382. package/dist/module/src/app/frontend/components/stateful/ProjectPage.js +71 -0
  383. package/dist/module/src/app/frontend/components/stateful/ProjectsPage.js +99 -0
  384. package/dist/module/src/app/frontend/components/stateful/SVGEditor/CircleForm.js +17 -0
  385. package/dist/module/src/app/frontend/components/stateful/SVGEditor/GroupForm.js +15 -0
  386. package/dist/module/src/app/frontend/components/stateful/SVGEditor/RectForm.js +18 -0
  387. package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGAttributeField.js +8 -0
  388. package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGAttributesEditor.js +50 -0
  389. package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGEditorControls.js +16 -0
  390. package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGElementForm.js +16 -0
  391. package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGPreview.js +141 -0
  392. package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGTextEditor.js +118 -0
  393. package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGTree.js +68 -0
  394. package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGTypes.js +1 -0
  395. package/dist/module/src/app/frontend/components/stateful/SVGEditorPage.js +400 -0
  396. package/dist/module/src/app/frontend/components/stateful/SettingsPage.js +35 -0
  397. package/dist/module/src/app/frontend/components/stateful/SingleProcessPage.js +134 -0
  398. package/dist/module/src/app/frontend/components/stateful/SkriboPage.js +510 -0
  399. package/dist/module/src/app/frontend/components/stateful/TextEditorPage.js +117 -0
  400. package/dist/module/src/app/frontend/fetchDataUtil.js +187 -0
  401. package/dist/module/src/app/frontend/flua/FluaPage.js +341 -0
  402. package/dist/module/src/app/frontend/testPage/ITestPageViewProps.js +1 -0
  403. package/dist/module/src/app/frontend/testPage/ProjectsTree.js +142 -0
  404. package/dist/module/src/app/frontend/testPage/TestPage.js +48 -0
  405. package/dist/module/src/app/frontend/testPage/TestPageLeftContent.js +11 -0
  406. package/dist/module/src/app/frontend/testPage/TestPageMainContent.js +75 -0
  407. package/dist/module/src/app/frontend/testPage/TestPageNavbar.js +26 -0
  408. package/dist/module/src/app/frontend/testPage/TestPageView.js +315 -0
  409. package/dist/module/src/app/frontend/testPage/TestPageView.test/implementation.js +122 -0
  410. package/dist/module/src/app/frontend/testPage/TestPageView.test/index.js +10 -0
  411. package/dist/module/src/app/frontend/testPage/TestPageView.test/specification.js +23 -0
  412. package/dist/module/src/app/frontend/testPage/TestPageView.test/types.js +3 -0
  413. package/dist/module/src/app/frontend/testPage/TestPageView_utils.js +120 -0
  414. package/dist/module/src/app/frontend/useFileSystemSync.js +108 -0
  415. package/dist/module/src/app/frontend/useFs.js +12 -0
  416. package/dist/module/src/app/frontend/useGitMode.js +16 -0
  417. package/dist/module/src/app/frontend/useTerminalWebSocket.js +40 -0
  418. package/dist/module/src/app/frontend/useWebSocket.js +12 -0
  419. package/dist/module/src/app/types.js +1 -0
  420. package/dist/module/src/builders/golang.js +28 -0
  421. package/dist/module/src/builders/node.js +33 -0
  422. package/dist/module/src/builders/python.js +26 -0
  423. package/dist/module/src/builders/web.js +33 -0
  424. package/dist/module/src/defaultConfig.js +17 -0
  425. package/dist/module/src/esbuildConfigs/consoleDetectorPlugin.js +32 -0
  426. package/dist/module/src/esbuildConfigs/eslint-formatter-testeranto.js +18 -0
  427. package/dist/module/src/esbuildConfigs/featuresPlugin.js +34 -0
  428. package/dist/module/src/esbuildConfigs/index.js +19 -0
  429. package/dist/module/src/esbuildConfigs/inputFilesPlugin.js +25 -0
  430. package/dist/module/src/esbuildConfigs/nativeImportDetectorPlugin.js +21 -0
  431. package/dist/module/src/esbuildConfigs/node.js +21 -0
  432. package/dist/module/src/esbuildConfigs/pure.js +37 -0
  433. package/dist/module/src/esbuildConfigs/rebuildPlugin.js +14 -0
  434. package/dist/module/src/esbuildConfigs/web.js +43 -0
  435. package/dist/module/src/init-docs.js +4 -0
  436. package/dist/module/src/lib/BaseGiven.js +172 -0
  437. package/dist/module/src/lib/BaseSuite.js +134 -0
  438. package/dist/module/src/lib/BaseSuite.test/mock.js +61 -0
  439. package/dist/module/src/lib/BaseSuite.test/node.test.js +5 -0
  440. package/dist/module/src/lib/BaseSuite.test/pure.test.js +5 -0
  441. package/dist/module/src/lib/BaseSuite.test/test.js +180 -0
  442. package/dist/module/src/lib/BaseSuite.test/web.test.js +5 -0
  443. package/dist/module/src/lib/BaseThen.js +59 -0
  444. package/dist/module/src/lib/BaseWhen.js +43 -0
  445. package/dist/module/src/lib/Sidecar.js +3 -0
  446. package/dist/module/src/lib/Tiposkripto.js +185 -0
  447. package/dist/module/src/lib/Tiposkripto.test/MockTiposkripto.js +163 -0
  448. package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.adapter.js +26 -0
  449. package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.implementation.js +212 -0
  450. package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.js +6 -0
  451. package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.specification.js +49 -0
  452. package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.types.js +1 -0
  453. package/dist/module/src/lib/abstractBase.test/MockGiven.js +20 -0
  454. package/dist/module/src/lib/abstractBase.test/MockThen.js +12 -0
  455. package/dist/module/src/lib/abstractBase.test/MockWhen.js +16 -0
  456. package/dist/module/src/lib/abstractBase.test/adapter.js +21 -0
  457. package/dist/module/src/lib/abstractBase.test/implementation.js +35 -0
  458. package/dist/module/src/lib/abstractBase.test/index.js +13 -0
  459. package/dist/module/src/lib/abstractBase.test/specification.js +15 -0
  460. package/dist/module/src/lib/abstractBase.test/types.js +1 -0
  461. package/dist/module/src/lib/index.js +26 -0
  462. package/dist/module/src/lib/pmProxy.js +251 -0
  463. package/dist/module/src/lib/pmProxy.test/adapter.js +51 -0
  464. package/dist/module/src/lib/pmProxy.test/implementation.js +127 -0
  465. package/dist/module/src/lib/pmProxy.test/index.js +8 -0
  466. package/dist/module/src/lib/pmProxy.test/mockPM.js +31 -0
  467. package/dist/module/src/lib/pmProxy.test/mockPMBase.js +127 -0
  468. package/dist/module/src/lib/pmProxy.test/specification.js +174 -0
  469. package/dist/module/src/lib/pmProxy.test/types.js +1 -0
  470. package/dist/module/src/lib/types.js +2 -0
  471. package/dist/module/src/mothership/mothership.js +196 -0
  472. package/dist/module/src/mothership/test.js +80 -0
  473. package/dist/module/src/run.js +49 -0
  474. package/dist/module/src/testeranto.js +174 -0
  475. package/dist/module/src/utils/buildTemplates.js +33 -0
  476. package/dist/module/src/utils/generateGolingvuMetafile.js +151 -0
  477. package/dist/module/src/utils/golingvuMetafile/fileDiscovery.js +136 -0
  478. package/dist/module/src/utils/golingvuMetafile/goList.js +97 -0
  479. package/dist/module/src/utils/golingvuMetafile/helpers.js +59 -0
  480. package/dist/module/src/utils/golingvuMetafile/importParser.js +83 -0
  481. package/dist/module/src/utils/golingvuMetafile/types.js +2 -0
  482. package/dist/module/src/utils/golingvuMetafile.js +6 -0
  483. package/dist/module/src/utils/golingvuWatcher.js +226 -0
  484. package/dist/module/src/utils/logFiles.js +55 -0
  485. package/dist/module/src/utils/pitonoMetafile.js +240 -0
  486. package/dist/module/src/utils/pitonoWatcher.js +123 -0
  487. package/dist/module/src/utils/queue.js +32 -0
  488. package/dist/module/src/utils/writeGolingvuMetafile.js +318 -0
  489. package/dist/module/src/web.html.js +16 -0
  490. package/dist/module/testeranto.config.js +89 -0
  491. package/dist/module/tsconfig.module.tsbuildinfo +1 -0
  492. package/dist/prebuild/App.css +241 -185
  493. package/dist/prebuild/App.js +20444 -46114
  494. package/dist/prebuild/mothership.mjs +4 -0
  495. package/dist/types/design-editor/DesignEditor.d.ts +1 -0
  496. package/dist/types/src/CoreTypes.d.ts +52 -0
  497. package/dist/types/src/Helpo.d.ts +1 -0
  498. package/dist/types/src/Init.d.ts +2 -0
  499. package/dist/types/src/Node.d.ts +9 -0
  500. package/dist/types/src/NodeSidecar.d.ts +6 -0
  501. package/dist/types/src/PM/__tests__/nodeSidecar.testeranto.d.ts +2 -0
  502. package/dist/types/src/PM/__tests__/pureSidecar.testeranto.d.ts +2 -0
  503. package/dist/types/src/PM/__tests__/webSidecar.testeranto.d.ts +2 -0
  504. package/dist/types/src/PM/golingvuBuild.d.ts +11 -0
  505. package/dist/types/src/PM/index.d.ts +35 -0
  506. package/dist/types/src/PM/node.d.ts +38 -0
  507. package/dist/types/src/PM/nodeSidecar.d.ts +13 -0
  508. package/dist/types/src/PM/pitonoBuild.d.ts +11 -0
  509. package/dist/types/src/PM/pitonoRunner.d.ts +7 -0
  510. package/dist/types/src/PM/pure.d.ts +41 -0
  511. package/dist/types/src/PM/pureSidecar.d.ts +11 -0
  512. package/dist/types/src/PM/sidecar.d.ts +8 -0
  513. package/dist/types/src/PM/types.d.ts +118 -0
  514. package/dist/types/src/PM/utils.d.ts +35 -0
  515. package/dist/types/src/PM/web.d.ts +41 -0
  516. package/dist/types/src/PM/webSidecar.d.ts +11 -0
  517. package/dist/types/src/Pure.d.ts +14 -0
  518. package/dist/types/src/Pure.test.d.ts +61 -0
  519. package/dist/types/src/PureSidecar.d.ts +8 -0
  520. package/dist/types/src/Types.d.ts +120 -0
  521. package/dist/types/src/Web.d.ts +9 -0
  522. package/dist/types/src/WebSidecar.d.ts +8 -0
  523. package/dist/types/src/app/FileService.d.ts +37 -0
  524. package/dist/types/src/app/api.d.ts +37 -0
  525. package/dist/types/src/app/backend/PM_0.d.ts +38 -0
  526. package/dist/types/src/app/backend/PM_1_WithProcesses.d.ts +148 -0
  527. package/dist/types/src/app/backend/PM_2_WithTCP.d.ts +29 -0
  528. package/dist/types/src/app/backend/PM_WithBuild.d.ts +7 -0
  529. package/dist/types/src/app/backend/PM_WithEslintAndTsc.d.ts +22 -0
  530. package/dist/types/src/app/backend/PM_WithGit.d.ts +24 -0
  531. package/dist/types/src/app/backend/PM_WithHelpo.d.ts +43 -0
  532. package/dist/types/src/app/backend/PM_WithTCP.d.ts +41 -0
  533. package/dist/types/src/app/backend/getAllFilesRecursively.d.ts +1 -0
  534. package/dist/types/src/app/backend/main.d.ts +16 -0
  535. package/dist/types/src/app/backend/makePrompt.d.ts +2 -0
  536. package/dist/types/src/app/backend/utils.d.ts +20 -0
  537. package/dist/types/src/app/frontend/App.d.ts +14 -0
  538. package/dist/types/src/app/frontend/DevelopmentFileService.d.ts +25 -0
  539. package/dist/types/src/app/frontend/GitFileService.d.ts +27 -0
  540. package/dist/types/src/app/frontend/GitHubAuthService.d.ts +32 -0
  541. package/dist/types/src/app/frontend/api.d.ts +10 -0
  542. package/dist/types/src/app/frontend/components/DesignEditorPage.d.ts +1 -0
  543. package/dist/types/src/app/frontend/components/SunriseAnimation.d.ts +5 -0
  544. package/dist/types/src/app/frontend/components/SunriseAnimation.test/interface.d.ts +11 -0
  545. package/dist/types/src/app/frontend/components/SunriseAnimation.test/types.d.ts +39 -0
  546. package/dist/types/src/app/frontend/components/TestStatusBadge.d.ts +15 -0
  547. package/dist/types/src/app/frontend/components/pure/AppFrame.d.ts +11 -0
  548. package/dist/types/src/app/frontend/components/pure/AppFrame.test/implementation.d.ts +3 -0
  549. package/dist/types/src/app/frontend/components/pure/AppFrame.test/index.d.ts +3 -0
  550. package/dist/types/src/app/frontend/components/pure/AppFrame.test/specification.d.ts +3 -0
  551. package/dist/types/src/app/frontend/components/pure/AppFrame.test/types.d.ts +33 -0
  552. package/dist/types/src/app/frontend/components/pure/BuildLogViewer.d.ts +7 -0
  553. package/dist/types/src/app/frontend/components/pure/DebugEnv.d.ts +2 -0
  554. package/dist/types/src/app/frontend/components/pure/FeaturesReporterView.d.ts +7 -0
  555. package/dist/types/src/app/frontend/components/pure/FeaturesReporterView.test/implementation.d.ts +3 -0
  556. package/dist/types/src/app/frontend/components/pure/FeaturesReporterView.test/index.d.ts +2 -0
  557. package/dist/types/src/app/frontend/components/pure/FeaturesReporterView.test/specification.d.ts +3 -0
  558. package/dist/types/src/app/frontend/components/pure/FeaturesReporterView.test/types.d.ts +54 -0
  559. package/dist/types/src/app/frontend/components/pure/FileTree.d.ts +6 -0
  560. package/dist/types/src/app/frontend/components/pure/FileTreeItem.d.ts +8 -0
  561. package/dist/types/src/app/frontend/components/pure/GitHubLoginButton.d.ts +8 -0
  562. package/dist/types/src/app/frontend/components/pure/GitIntegrationView.d.ts +27 -0
  563. package/dist/types/src/app/frontend/components/pure/HelpoChatDrawer.d.ts +7 -0
  564. package/dist/types/src/app/frontend/components/pure/MagicRobotModal.d.ts +16 -0
  565. package/dist/types/src/app/frontend/components/pure/ModalContent.d.ts +7 -0
  566. package/dist/types/src/app/frontend/components/pure/ModalContent.test/implementation.d.ts +3 -0
  567. package/dist/types/src/app/frontend/components/pure/ModalContent.test/index.d.ts +14 -0
  568. package/dist/types/src/app/frontend/components/pure/ModalContent.test/specification.d.ts +3 -0
  569. package/dist/types/src/app/frontend/components/pure/ModalContent.test/types.d.ts +45 -0
  570. package/dist/types/src/app/frontend/components/pure/NavBar.d.ts +23 -0
  571. package/dist/types/src/app/frontend/components/pure/ProcessDetails.d.ts +8 -0
  572. package/dist/types/src/app/frontend/components/pure/ProcessInput.d.ts +10 -0
  573. package/dist/types/src/app/frontend/components/pure/ProcessList.d.ts +10 -0
  574. package/dist/types/src/app/frontend/components/pure/ProcessLogs.d.ts +6 -0
  575. package/dist/types/src/app/frontend/components/pure/ProcessManager.d.ts +8 -0
  576. package/dist/types/src/app/frontend/components/pure/ProcessManagerView.d.ts +10 -0
  577. package/dist/types/src/app/frontend/components/pure/ProcessManagerViewTypes.d.ts +10 -0
  578. package/dist/types/src/app/frontend/components/pure/ProcessSidebar.d.ts +8 -0
  579. package/dist/types/src/app/frontend/components/pure/ProcessTerminal.d.ts +8 -0
  580. package/dist/types/src/app/frontend/components/pure/ProjectPageView.d.ts +14 -0
  581. package/dist/types/src/app/frontend/components/pure/ProjectPageView.test/implementation.d.ts +3 -0
  582. package/dist/types/src/app/frontend/components/pure/ProjectPageView.test/index.d.ts +17 -0
  583. package/dist/types/src/app/frontend/components/pure/ProjectPageView.test/specification.d.ts +3 -0
  584. package/dist/types/src/app/frontend/components/pure/ProjectPageView.test/types.d.ts +57 -0
  585. package/dist/types/src/app/frontend/components/pure/ProjectsPageView.d.ts +29 -0
  586. package/dist/types/src/app/frontend/components/pure/Settings.d.ts +1 -0
  587. package/dist/types/src/app/frontend/components/pure/SettingsButton.d.ts +2 -0
  588. package/dist/types/src/app/frontend/components/pure/SignIn.d.ts +1 -0
  589. package/dist/types/src/app/frontend/components/pure/TerminalInput.d.ts +6 -0
  590. package/dist/types/src/app/frontend/components/pure/TerminalLogs.d.ts +6 -0
  591. package/dist/types/src/app/frontend/components/pure/TestTable.d.ts +16 -0
  592. package/dist/types/src/app/frontend/components/pure/ThemeCard.d.ts +9 -0
  593. package/dist/types/src/app/frontend/components/pure/ToastNotification.d.ts +6 -0
  594. package/dist/types/src/app/frontend/components/pure/UserProfile.d.ts +2 -0
  595. package/dist/types/src/app/frontend/components/stateful/AuthCallbackPage.d.ts +2 -0
  596. package/dist/types/src/app/frontend/components/stateful/DratoPage.d.ts +8 -0
  597. package/dist/types/src/app/frontend/components/stateful/GenericXMLEditor/AttributeEditor.d.ts +9 -0
  598. package/dist/types/src/app/frontend/components/stateful/GenericXMLEditor/Drawer.d.ts +12 -0
  599. package/dist/types/src/app/frontend/components/stateful/GenericXMLEditor/GenericPreview.d.ts +11 -0
  600. package/dist/types/src/app/frontend/components/stateful/GenericXMLEditor/GenericTextEditor.d.ts +8 -0
  601. package/dist/types/src/app/frontend/components/stateful/GenericXMLEditor/GenericTree.d.ts +17 -0
  602. package/dist/types/src/app/frontend/components/stateful/GenericXMLEditorPage.d.ts +21 -0
  603. package/dist/types/src/app/frontend/components/stateful/GitIntegrationPage.d.ts +1 -0
  604. package/dist/types/src/app/frontend/components/stateful/GrafeoPage.d.ts +8 -0
  605. package/dist/types/src/app/frontend/components/stateful/ProcessManagerPage.d.ts +2 -0
  606. package/dist/types/src/app/frontend/components/stateful/ProjectPage.d.ts +1 -0
  607. package/dist/types/src/app/frontend/components/stateful/ProjectsPage.d.ts +1 -0
  608. package/dist/types/src/app/frontend/components/stateful/SVGEditor/CircleForm.d.ts +8 -0
  609. package/dist/types/src/app/frontend/components/stateful/SVGEditor/GroupForm.d.ts +8 -0
  610. package/dist/types/src/app/frontend/components/stateful/SVGEditor/RectForm.d.ts +8 -0
  611. package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGAttributeField.d.ts +9 -0
  612. package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGAttributesEditor.d.ts +9 -0
  613. package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGEditorControls.d.ts +9 -0
  614. package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGElementForm.d.ts +9 -0
  615. package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGPreview.d.ts +12 -0
  616. package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGTextEditor.d.ts +8 -0
  617. package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGTree.d.ts +20 -0
  618. package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGTypes.d.ts +30 -0
  619. package/dist/types/src/app/frontend/components/stateful/SVGEditorPage.d.ts +7 -0
  620. package/dist/types/src/app/frontend/components/stateful/SettingsPage.d.ts +2 -0
  621. package/dist/types/src/app/frontend/components/stateful/SkriboPage.d.ts +1 -0
  622. package/dist/types/src/app/frontend/components/stateful/TextEditorPage.d.ts +1 -0
  623. package/dist/types/src/app/frontend/flua/FluaPage.d.ts +2 -0
  624. package/dist/types/src/app/frontend/testPage/ITestPageViewProps.d.ts +14 -0
  625. package/dist/types/src/app/frontend/testPage/ProjectsTree.d.ts +17 -0
  626. package/dist/types/src/app/frontend/testPage/TestPage.d.ts +1 -0
  627. package/dist/types/src/app/frontend/testPage/TestPageLeftContent.d.ts +14 -0
  628. package/dist/types/src/app/frontend/testPage/TestPageMainContent.d.ts +7 -0
  629. package/dist/types/src/app/frontend/testPage/TestPageNavbar.d.ts +7 -0
  630. package/dist/types/src/app/frontend/testPage/TestPageView.d.ts +2 -0
  631. package/dist/types/src/app/frontend/testPage/TestPageView.test/implementation.d.ts +13 -0
  632. package/dist/types/src/app/frontend/testPage/TestPageView.test/index.d.ts +13 -0
  633. package/dist/types/src/app/frontend/testPage/TestPageView.test/specification.d.ts +11 -0
  634. package/dist/types/src/app/frontend/testPage/TestPageView.test/types.d.ts +65 -0
  635. package/dist/types/src/app/frontend/testPage/TestPageView_utils.d.ts +23 -0
  636. package/dist/types/src/app/frontend/useFs.d.ts +2 -0
  637. package/dist/types/src/app/frontend/useGitMode.d.ts +7 -0
  638. package/dist/types/src/app/frontend/useTerminalWebSocket.d.ts +4 -0
  639. package/dist/types/src/app/frontend/useWebSocket.d.ts +8 -0
  640. package/dist/types/src/app/types.d.ts +1 -0
  641. package/dist/types/src/builders/golang.d.ts +1 -0
  642. package/dist/types/src/builders/node.d.ts +1 -0
  643. package/dist/types/src/builders/python.d.ts +1 -0
  644. package/dist/types/src/builders/web.d.ts +1 -0
  645. package/dist/types/src/defaultConfig.d.ts +3 -0
  646. package/dist/types/src/esbuildConfigs/consoleDetectorPlugin.d.ts +2 -0
  647. package/dist/types/src/esbuildConfigs/eslint-formatter-testeranto.d.ts +2 -0
  648. package/dist/types/src/esbuildConfigs/featuresPlugin.d.ts +5 -0
  649. package/dist/types/src/esbuildConfigs/index.d.ts +4 -0
  650. package/dist/types/src/esbuildConfigs/inputFilesPlugin.d.ts +7 -0
  651. package/dist/types/src/esbuildConfigs/nativeImportDetectorPlugin.d.ts +2 -0
  652. package/dist/types/src/esbuildConfigs/node.d.ts +4 -0
  653. package/dist/types/src/esbuildConfigs/pure.d.ts +4 -0
  654. package/dist/types/src/esbuildConfigs/rebuildPlugin.d.ts +6 -0
  655. package/dist/types/src/esbuildConfigs/web.d.ts +4 -0
  656. package/dist/types/src/init-docs.d.ts +1 -0
  657. package/dist/types/src/lib/BaseGiven.d.ts +44 -0
  658. package/dist/types/src/lib/BaseSuite.d.ts +47 -0
  659. package/dist/types/src/lib/BaseSuite.test/mock.d.ts +21 -0
  660. package/dist/types/src/lib/BaseSuite.test/node.test.d.ts +2 -0
  661. package/dist/types/src/lib/BaseSuite.test/pure.test.d.ts +3 -0
  662. package/dist/types/src/lib/BaseSuite.test/test.d.ts +37 -0
  663. package/dist/types/src/lib/BaseSuite.test/web.test.d.ts +3 -0
  664. package/dist/types/src/lib/BaseThen.d.ts +29 -0
  665. package/dist/types/src/lib/BaseWhen.d.ts +29 -0
  666. package/dist/types/src/lib/Sidecar.d.ts +5 -0
  667. package/dist/types/src/lib/Tiposkripto.d.ts +37 -0
  668. package/dist/types/src/lib/Tiposkripto.test/MockTiposkripto.d.ts +18 -0
  669. package/dist/types/src/lib/Tiposkripto.test/Tiposkripto.adapter.d.ts +3 -0
  670. package/dist/types/src/lib/Tiposkripto.test/Tiposkripto.d.ts +2 -0
  671. package/dist/types/src/lib/Tiposkripto.test/Tiposkripto.implementation.d.ts +3 -0
  672. package/dist/types/src/lib/Tiposkripto.test/Tiposkripto.specification.d.ts +3 -0
  673. package/dist/types/src/lib/Tiposkripto.test/Tiposkripto.types.d.ts +58 -0
  674. package/dist/types/src/lib/abstractBase.test/MockGiven.d.ts +9 -0
  675. package/dist/types/src/lib/abstractBase.test/MockThen.d.ts +6 -0
  676. package/dist/types/src/lib/abstractBase.test/MockWhen.d.ts +6 -0
  677. package/dist/types/src/lib/abstractBase.test/adapter.d.ts +3 -0
  678. package/dist/types/src/lib/abstractBase.test/implementation.d.ts +3 -0
  679. package/dist/types/src/lib/abstractBase.test/index.d.ts +2 -0
  680. package/dist/types/src/lib/abstractBase.test/specification.d.ts +3 -0
  681. package/dist/types/src/lib/abstractBase.test/types.d.ts +39 -0
  682. package/dist/types/src/lib/index.d.ts +73 -0
  683. package/dist/types/src/lib/pmProxy.d.ts +12 -0
  684. package/dist/types/src/lib/pmProxy.test/adapter.d.ts +3 -0
  685. package/dist/types/src/lib/pmProxy.test/implementation.d.ts +3 -0
  686. package/dist/types/src/lib/pmProxy.test/index.d.ts +6 -0
  687. package/dist/types/src/lib/pmProxy.test/mockPM.d.ts +10 -0
  688. package/dist/types/src/lib/pmProxy.test/mockPMBase.d.ts +40 -0
  689. package/dist/types/src/lib/pmProxy.test/specification.d.ts +3 -0
  690. package/dist/types/src/lib/pmProxy.test/types.d.ts +42 -0
  691. package/dist/types/src/lib/types.d.ts +24 -0
  692. package/dist/types/src/mothership/mothership.d.ts +1 -0
  693. package/dist/types/src/mothership/test.d.ts +2 -0
  694. package/dist/types/src/testeranto.d.ts +1 -0
  695. package/dist/types/src/utils/buildTemplates.d.ts +1 -0
  696. package/dist/types/src/utils/generateGolingvuMetafile.d.ts +2 -0
  697. package/dist/types/src/utils/golingvuMetafile/fileDiscovery.d.ts +1 -0
  698. package/dist/types/src/utils/golingvuMetafile/goList.d.ts +2 -0
  699. package/dist/types/src/utils/golingvuMetafile/helpers.d.ts +7 -0
  700. package/dist/types/src/utils/golingvuMetafile/importParser.d.ts +5 -0
  701. package/dist/types/src/utils/golingvuMetafile/types.d.ts +66 -0
  702. package/dist/types/src/utils/golingvuMetafile.d.ts +4 -0
  703. package/dist/types/src/utils/golingvuWatcher.d.ts +14 -0
  704. package/dist/types/src/utils/logFiles.d.ts +103 -0
  705. package/dist/types/src/utils/pitonoMetafile.d.ts +22 -0
  706. package/dist/types/src/utils/pitonoWatcher.d.ts +13 -0
  707. package/dist/types/src/utils/queue.d.ts +11 -0
  708. package/dist/types/src/utils/writeGolingvuMetafile.d.ts +2 -0
  709. package/dist/types/src/web.html.d.ts +2 -0
  710. package/dist/types/tsconfig.types.tsbuildinfo +1 -0
  711. package/docker-compose.yml +74 -0
  712. package/docs/testing.prompt.txt +5 -1
  713. package/example/Calculator.go +64 -28
  714. package/example/Calculator.golingvu.implementation.go +51 -2
  715. package/example/Calculator.golingvu.test.go +216 -0
  716. package/example/Calculator.pitono.test.py +112 -27
  717. package/example/Calculator.test.adapter.ts +9 -49
  718. package/example/Calculator.test.implementation.ts +1 -28
  719. package/example/Calculator.ts +2 -18
  720. package/example/__pycache__/Calculator.cpython-313.pyc +0 -0
  721. package/example/go.mod +1 -3
  722. package/example/go.sum +2 -0
  723. package/example/requirements.txt +9 -0
  724. package/example/single-kanban-process.xml +9 -0
  725. package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/LICENSE +21 -0
  726. package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/README.md +187 -0
  727. package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/base_given.go +163 -0
  728. package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/base_suite.go +85 -0
  729. package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/base_then.go +21 -0
  730. package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/base_when.go +21 -0
  731. package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/golingvu.go +889 -0
  732. package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/test_adapter.go +33 -0
  733. package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/types.go +72 -0
  734. package/example/vendor/modules.txt +4 -0
  735. package/go.mod +4 -1
  736. package/go.sum +2 -0
  737. package/log.txt +36 -82
  738. package/package.json +21 -8
  739. package/scripts/build-example.ts +65 -204
  740. package/src/Init.ts +9 -1
  741. package/src/Node.ts +0 -1
  742. package/src/NodeSidecar.ts +0 -8
  743. package/src/PM/__tests__/nodeSidecar.testeranto.ts +4 -1
  744. package/src/PM/types.ts +1 -0
  745. package/src/PM/web.ts +8 -24
  746. package/src/Pure.test.ts +18 -9
  747. package/src/Pure.ts +1 -16
  748. package/src/Types.ts +1 -0
  749. package/src/Web.ts +2 -38
  750. package/src/WebSidecar.ts +1 -1
  751. package/src/app/FileService.ts +91 -0
  752. package/src/app/api.ts +75 -0
  753. package/src/app/backend/PM_0.ts +395 -0
  754. package/src/app/backend/PM_1_WithProcesses.ts +1188 -0
  755. package/src/app/backend/PM_2_WithTCP.ts +286 -0
  756. package/src/app/backend/PM_WithBuild.ts +146 -0
  757. package/src/app/backend/PM_WithEslintAndTsc.ts +194 -0
  758. package/src/app/backend/PM_WithGit.ts +662 -0
  759. package/src/app/backend/PM_WithHelpo.ts +340 -0
  760. package/src/app/backend/PM_WithProcesses.ts +1247 -0
  761. package/src/app/backend/PM_WithTCP.ts +777 -0
  762. package/src/app/backend/getAllFilesRecursively.ts +17 -0
  763. package/src/app/backend/main.ts +1029 -0
  764. package/src/app/backend/makePrompt.ts +92 -0
  765. package/src/app/backend/utils.ts +202 -0
  766. package/src/app/frontend/App.tsx +242 -0
  767. package/src/app/frontend/DevelopmentFileService.ts +117 -0
  768. package/src/app/frontend/GitFileService.ts +285 -0
  769. package/src/app/frontend/GitHubAuthService.ts +241 -0
  770. package/src/app/frontend/api.ts +108 -0
  771. package/src/app/frontend/app.scss +119 -0
  772. package/src/app/frontend/components/DesignEditorPage.tsx +210 -0
  773. package/src/app/frontend/components/SunriseAnimation.test/interface.ts +50 -0
  774. package/src/app/frontend/components/SunriseAnimation.test/types.ts +53 -0
  775. package/src/app/frontend/components/SunriseAnimation.tsx +350 -0
  776. package/src/app/frontend/components/pure/AppFrame.tsx +445 -0
  777. package/src/app/frontend/components/pure/FeaturesReporterView.tsx +38 -0
  778. package/src/app/frontend/components/pure/GitHubLoginButton.tsx +32 -0
  779. package/src/app/frontend/components/pure/GitIntegrationView.tsx +727 -0
  780. package/src/app/frontend/components/pure/HelpoChatDrawer.tsx +223 -0
  781. package/src/app/frontend/components/pure/MagicRobotModal.tsx +135 -0
  782. package/src/app/frontend/components/pure/ModalContent.test/index.tsx +68 -0
  783. package/src/app/frontend/components/pure/NavBar.tsx +119 -0
  784. package/src/app/frontend/components/pure/ProcessManagerView.tsx +89 -0
  785. package/src/app/frontend/components/pure/ProcessTerminal.tsx +55 -0
  786. package/src/app/frontend/components/pure/ProjectPageView.test/implementation.tsx +216 -0
  787. package/src/app/frontend/components/pure/ProjectPageView.tsx +165 -0
  788. package/src/app/frontend/components/pure/Settings.test.tsx +34 -0
  789. package/src/app/frontend/components/pure/Settings.tsx +171 -0
  790. package/src/app/frontend/components/pure/SignIn.tsx +33 -0
  791. package/src/app/frontend/components/stateful/FeaturesReporter.tsx +27 -0
  792. package/src/app/frontend/components/stateful/GenericXMLEditor/AttributeEditor.tsx +105 -0
  793. package/src/app/frontend/components/stateful/GenericXMLEditor/GenericPreview.tsx +234 -0
  794. package/src/app/frontend/components/stateful/GenericXMLEditor/GenericTextEditor.tsx +173 -0
  795. package/src/app/frontend/components/stateful/GenericXMLEditor/GenericTree.tsx +105 -0
  796. package/src/app/frontend/components/stateful/GenericXMLEditorPage.tsx +455 -0
  797. package/src/app/frontend/components/stateful/GitIntegrationPage.tsx +256 -0
  798. package/src/app/frontend/components/stateful/ProcessManagerPage.tsx +110 -0
  799. package/src/app/frontend/components/stateful/ProjectPage.tsx +94 -0
  800. package/src/app/frontend/components/stateful/ProjectsPage.tsx +129 -0
  801. package/src/app/frontend/components/stateful/SkriboPage.tsx +577 -0
  802. package/src/app/frontend/fetchDataUtil.ts +206 -0
  803. package/src/app/frontend/flua/FluaPage.tsx +458 -0
  804. package/src/app/frontend/flua/agile.xsd +32 -0
  805. package/src/app/frontend/flua/core.xsd +42 -0
  806. package/src/app/frontend/flua/kanban.xsd +21 -0
  807. package/src/app/frontend/flua/scrum.xsd +35 -0
  808. package/src/app/frontend/testPage/ITestPageViewProps.ts +14 -0
  809. package/src/app/frontend/testPage/ProjectsTree.tsx +329 -0
  810. package/src/app/frontend/testPage/TestPage.tsx +75 -0
  811. package/src/app/frontend/testPage/TestPageLeftContent.tsx +54 -0
  812. package/src/app/frontend/testPage/TestPageMainContent.tsx +181 -0
  813. package/src/app/frontend/testPage/TestPageNavbar.tsx +52 -0
  814. package/src/app/frontend/testPage/TestPageView.test/implementation.ts +209 -0
  815. package/src/app/frontend/testPage/TestPageView.test/index.tsx +22 -0
  816. package/src/app/frontend/testPage/TestPageView.test/specification.ts +60 -0
  817. package/src/app/frontend/testPage/TestPageView.test/types.ts +92 -0
  818. package/src/app/frontend/testPage/TestPageView.tsx +481 -0
  819. package/src/app/frontend/testPage/TestPageView_utils.tsx +301 -0
  820. package/src/app/frontend/testPage/index.md +14 -0
  821. package/src/app/frontend/useFileSystemSync.ts +117 -0
  822. package/src/app/frontend/useFs.ts +17 -0
  823. package/src/app/frontend/useGitMode.ts +21 -0
  824. package/src/app/frontend/useTerminalWebSocket.ts +56 -0
  825. package/src/app/frontend/useWebSocket.ts +20 -0
  826. package/src/app/trash +1697 -0
  827. package/src/app/types.ts +1 -0
  828. package/src/builders/golang.ts +29 -0
  829. package/src/builders/node.ts +34 -0
  830. package/src/builders/python.ts +28 -0
  831. package/src/builders/web.ts +34 -0
  832. package/src/cjs-shim.js +2 -0
  833. package/src/golingvu/PM/golang_test.go +88 -88
  834. package/src/golingvu/base_given.go +27 -28
  835. package/src/golingvu/base_suite.go +20 -20
  836. package/src/golingvu/base_then.go +2 -2
  837. package/src/golingvu/base_when.go +2 -2
  838. package/src/golingvu/golingvu.go +124 -147
  839. package/src/graphml.xsd +345 -0
  840. package/src/lib/BaseGiven.ts +71 -95
  841. package/src/lib/BaseSuite.test/test.ts +7 -12
  842. package/src/lib/BaseSuite.ts +24 -16
  843. package/src/lib/BaseThen.ts +7 -4
  844. package/src/lib/BaseWhen.ts +4 -12
  845. package/src/lib/Tiposkripto.test/MockTiposkripto.ts +59 -63
  846. package/src/lib/Tiposkripto.test/Tiposkripto.implementation.ts +33 -20
  847. package/src/lib/Tiposkripto.ts +1 -19
  848. package/src/lib/pmProxy.test/implementation.ts +112 -117
  849. package/src/lib/pmProxy.test/index.ts +2 -2
  850. package/src/lib/pmProxy.test/mockPM.ts +1 -0
  851. package/src/lib/pmProxy.test/mockPMBase.ts +1 -1
  852. package/src/lib/pmProxy.test/specification.ts +0 -2
  853. package/src/lib/pmProxy.test/types.ts +1 -0
  854. package/src/lib/pmProxy.ts +0 -74
  855. package/src/mothership/mothership.ts +218 -0
  856. package/src/mothership/test.ts +5 -5
  857. package/src/pitono/PM/__pycache__/python.cpython-313.pyc +0 -0
  858. package/src/pitono/PM/python.py +3 -0
  859. package/src/pitono/Pitono.py +166 -20
  860. package/src/pitono/__pycache__/Pitono.cpython-313.pyc +0 -0
  861. package/src/pitono/__pycache__/__init__.cpython-313.pyc +0 -0
  862. package/src/pitono/__pycache__/base_given.cpython-313.pyc +0 -0
  863. package/src/pitono/__pycache__/base_suite.cpython-313.pyc +0 -0
  864. package/src/pitono/__pycache__/base_then.cpython-313.pyc +0 -0
  865. package/src/pitono/__pycache__/base_when.cpython-313.pyc +0 -0
  866. package/src/pitono/__pycache__/core_generator.cpython-313.pyc +0 -0
  867. package/src/pitono/__pycache__/simple_adapter.cpython-313.pyc +0 -0
  868. package/src/pitono/__pycache__/types.cpython-313.pyc +0 -0
  869. package/src/pitono/base_given.py +35 -10
  870. package/src/pitono/base_suite.py +2 -1
  871. package/src/pitono/base_then.py +5 -4
  872. package/src/pitono/base_when.py +4 -3
  873. package/src/style.scss +261 -2
  874. package/src/testeranto.ts +53 -50
  875. package/src/utils/generateGolingvuMetafile.ts +196 -0
  876. package/src/utils/golingvuMetafile/fileDiscovery.ts +157 -0
  877. package/src/utils/golingvuMetafile/goList.ts +106 -0
  878. package/src/utils/golingvuMetafile/helpers.ts +65 -0
  879. package/src/utils/golingvuMetafile/importParser.ts +97 -0
  880. package/src/utils/golingvuMetafile/types.ts +78 -0
  881. package/src/utils/golingvuMetafile.ts +4 -865
  882. package/src/utils/golingvuWatcher.ts +35 -40
  883. package/src/utils/pitonoMetafile.ts +205 -207
  884. package/src/utils/pitonoWatcher.ts +2 -9
  885. package/src/utils/writeGolingvuMetafile.ts +386 -0
  886. package/testeranto/App.css +173 -173
  887. package/testeranto/App.js +20428 -46026
  888. package/testeranto/bundles/golang/core/example/Calculator.golingvu.test +58 -0
  889. package/testeranto/bundles/node/core/example/Calculator.test.mjs +5862 -0
  890. package/testeranto/bundles/python/core/Calculator.pitono.test.py +24 -0
  891. package/testeranto/metafiles/golang/core.json +126 -26
  892. package/testeranto/metafiles/node/core.json +43 -550
  893. package/testeranto/metafiles/python/core.json +4 -39
  894. package/testeranto/reports/core/config.json +1 -81
  895. package/testeranto/reports/core/example/Calculator.golingvu.test/golang/stderr.log +7 -0
  896. package/testeranto/reports/core/example/Calculator.pitono.test/python/exit.log +1 -1
  897. package/testeranto/reports/core/example/Calculator.pitono.test/python/prompt.txt +13 -0
  898. package/testeranto/reports/core/example/Calculator.pitono.test/python/stderr.log +0 -11
  899. package/testeranto/reports/core/example/Calculator.pitono.test/python/stdout.log +26 -1
  900. package/testeranto/reports/core/example/Calculator.pitono.test/python/tests.json +255 -0
  901. package/testeranto/reports/core/example/Calculator.test/node/lint_errors.txt +2 -2
  902. package/testeranto/reports/core/example/Calculator.test/node/stderr.log +562 -29
  903. package/testeranto/reports/core/example/Calculator.test/node/stdout.log +0 -1076
  904. package/testeranto/reports/core/example/Calculator.test/node/tests.json +133 -79
  905. package/testeranto/reports/core/example/Calculator.test/node/type_errors.txt +16 -24
  906. package/testeranto/reports/core/summary.json +2 -69
  907. package/testeranto.config.ts +28 -26
  908. package/tsc.log +305 -370
  909. package/dist/prebuild/esbuildConfigs/eslint-formatter-testeranto.mjs +0 -22
  910. package/dist/prebuild/init-docs.mjs +0 -35
  911. package/dist/prebuild/testeranto.mjs +0 -5719
  912. package/example/Calculator.golingvu.go +0 -67
  913. package/example/base_suite_test.go +0 -51
  914. package/example/cmd/main.go +0 -16
  915. package/example/main +0 -0
  916. package/example/testeranto/bundles/golang/core/Calculator.golingvu.go +0 -53
  917. package/example/testeranto/metafiles/golang/core.json +0 -198
  918. package/src/App.tsx +0 -278
  919. package/src/PM/PM_WithBuild.ts +0 -183
  920. package/src/PM/PM_WithEslintAndTsc.ts +0 -279
  921. package/src/PM/PM_WithGit.ts +0 -632
  922. package/src/PM/PM_WithHelpo.ts +0 -341
  923. package/src/PM/PM_WithProcesses.ts +0 -900
  924. package/src/PM/PM_WithWebSocket.ts +0 -839
  925. package/src/PM/base.ts +0 -390
  926. package/src/PM/main.ts +0 -981
  927. package/src/ReportServer.test.ts/index.ts +0 -194
  928. package/src/app.scss +0 -121
  929. package/src/components/DesignEditorPage.tsx +0 -202
  930. package/src/components/SunriseAnimation.test/interface.ts +0 -49
  931. package/src/components/SunriseAnimation.test/types.ts +0 -53
  932. package/src/components/SunriseAnimation.tsx +0 -350
  933. package/src/components/pure/AppFrame.tsx +0 -410
  934. package/src/components/pure/FeaturesReporterView.tsx +0 -37
  935. package/src/components/pure/GitHubLoginButton.tsx +0 -31
  936. package/src/components/pure/GitIntegrationView.tsx +0 -732
  937. package/src/components/pure/HelpoChatDrawer.tsx +0 -222
  938. package/src/components/pure/MagicRobotModal.tsx +0 -136
  939. package/src/components/pure/ModalContent.test/index.tsx +0 -67
  940. package/src/components/pure/NavBar.tsx +0 -118
  941. package/src/components/pure/ProcessManagerView.tsx +0 -85
  942. package/src/components/pure/ProcessTerminal.tsx +0 -51
  943. package/src/components/pure/ProjectPageView.test/implementation.tsx +0 -213
  944. package/src/components/pure/ProjectPageView.tsx +0 -148
  945. package/src/components/pure/Settings.test.tsx +0 -34
  946. package/src/components/pure/Settings.tsx +0 -163
  947. package/src/components/pure/SignIn.tsx +0 -33
  948. package/src/components/pure/TestPageView.test/implementation.ts +0 -162
  949. package/src/components/pure/TestPageView.test/index.tsx +0 -20
  950. package/src/components/pure/TestPageView.test/specification.ts +0 -59
  951. package/src/components/pure/TestPageView.test/types.ts +0 -92
  952. package/src/components/pure/TestPageView.tsx +0 -611
  953. package/src/components/pure/TestPageView_utils.tsx +0 -287
  954. package/src/components/stateful/FeaturesReporter.tsx +0 -26
  955. package/src/components/stateful/GenericXMLEditor/AttributeEditor.tsx +0 -87
  956. package/src/components/stateful/GenericXMLEditor/GenericPreview.tsx +0 -160
  957. package/src/components/stateful/GenericXMLEditor/GenericTextEditor.tsx +0 -104
  958. package/src/components/stateful/GenericXMLEditor/GenericTree.tsx +0 -104
  959. package/src/components/stateful/GenericXMLEditorPage.tsx +0 -346
  960. package/src/components/stateful/GitIntegrationPage.tsx +0 -263
  961. package/src/components/stateful/ProcessManagerPage.tsx +0 -104
  962. package/src/components/stateful/ProjectPage.tsx +0 -86
  963. package/src/components/stateful/ProjectsPage.tsx +0 -100
  964. package/src/components/stateful/SkriboPage.tsx +0 -765
  965. package/src/components/stateful/TestPage.tsx +0 -269
  966. package/src/example/go.mod +0 -9
  967. package/src/example/main.go +0 -61
  968. package/src/hooks/useGitMode.ts +0 -20
  969. package/src/hooks/useTerminalWebSocket.ts +0 -49
  970. package/src/mothership/index.ts +0 -21
  971. package/src/services/FileService.ts +0 -677
  972. package/src/services/GitHubAuthService.ts +0 -240
  973. package/src/types/features.ts +0 -38
  974. package/src/utils/api.ts +0 -108
  975. package/src/utils/featureUtils.tsx +0 -42
  976. package/src/utils/gitTest.ts +0 -29
  977. package/src/utils/makePrompt.ts +0 -160
  978. package/src/utils.ts +0 -202
  979. package/stargazers.txt +0 -15
  980. package/testeranto/bundles/node/core/chunk-MJTSYIAQ.mjs +0 -1099
  981. package/testeranto/bundles/node/core/src/lib/BaseSuite.test/node.test.mjs +0 -318
  982. package/testeranto/bundles/node/core/src/lib/TipoSkripto.test/TipoSkripto.mjs +0 -572
  983. package/testeranto/bundles/node/core/src/lib/pmProxy.test/index.mjs +0 -4795
  984. package/testeranto/bundles/pure/core/chunk-6HR24P27.mjs +0 -1003
  985. package/testeranto/bundles/pure/core/src/Pure.test.mjs +0 -410
  986. package/testeranto/bundles/pure/core/src/lib/BaseSuite.test/pure.test.mjs +0 -318
  987. package/testeranto/bundles/web/core/MPLUSRounded1c-Black-O75GP5JI.ttf +0 -0
  988. package/testeranto/bundles/web/core/MPLUSRounded1c-Bold-R524Q5BH.ttf +0 -0
  989. package/testeranto/bundles/web/core/MPLUSRounded1c-ExtraBold-C6GRMYVT.ttf +0 -0
  990. package/testeranto/bundles/web/core/MPLUSRounded1c-Light-WKN65Y2C.ttf +0 -0
  991. package/testeranto/bundles/web/core/MPLUSRounded1c-Medium-ZC4DWL7C.ttf +0 -0
  992. package/testeranto/bundles/web/core/MPLUSRounded1c-Regular-DT6EKZ3S.ttf +0 -0
  993. package/testeranto/bundles/web/core/MPLUSRounded1c-Thin-YWDNVG6M.ttf +0 -0
  994. package/testeranto/bundles/web/core/chunk-AZZHJNSU.mjs +0 -30278
  995. package/testeranto/bundles/web/core/chunk-ME6I6FJZ.mjs +0 -3005
  996. package/testeranto/bundles/web/core/src/components/pure/FeaturesReporterView.test/index.html +0 -15
  997. package/testeranto/bundles/web/core/src/components/pure/FeaturesReporterView.test/index.mjs +0 -162
  998. package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.css +0 -11619
  999. package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.html +0 -15
  1000. package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.mjs +0 -6924
  1001. package/testeranto/bundles/web/core/src/lib/BaseSuite.test/web.test.html +0 -15
  1002. package/testeranto/bundles/web/core/src/lib/BaseSuite.test/web.test.mjs +0 -333
  1003. package/testeranto/metafiles/pure/core.json +0 -719
  1004. package/testeranto/metafiles/web/core.json +0 -17007
  1005. package/testeranto/reports/core/example/Calculator.golingvu/golang/stderr.log +0 -2
  1006. package/testeranto/reports/core/example/Calculator.golingvu/golang/stdout.log +0 -1
  1007. package/testeranto/reports/core/example/test_example/python/exit.log +0 -1
  1008. package/testeranto/reports/core/example/test_example/python/stderr.log +0 -24
  1009. package/testeranto/reports/core/src/Pure.test/pure/prompt.txt +0 -13
  1010. package/testeranto/reports/core/src/Pure.test/pure/type_errors.txt +0 -86
  1011. package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/message.txt +0 -17
  1012. package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/prompt.txt +0 -26
  1013. package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/type_errors.txt +0 -69
  1014. package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/lint_errors.txt +0 -16
  1015. package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/message.txt +0 -17
  1016. package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/prompt.txt +0 -27
  1017. package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/type_errors.txt +0 -42
  1018. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/debug.log +0 -0
  1019. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/error.log +0 -0
  1020. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/exit.log +0 -0
  1021. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/info.log +0 -0
  1022. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/lint_errors.txt +0 -30
  1023. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/message.txt +0 -17
  1024. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/prompt.txt +0 -30
  1025. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/type_errors.txt +0 -58
  1026. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/warn.log +0 -0
  1027. package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/exit.log +0 -1
  1028. package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/lint_errors.txt +0 -0
  1029. package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/message.txt +0 -17
  1030. package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/prompt.txt +0 -23
  1031. package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/stderr.log +0 -1
  1032. package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/stdout.log +0 -4
  1033. package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/tests.json +0 -120
  1034. package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/type_errors.txt +0 -69
  1035. package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/exit.log +0 -0
  1036. package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/lint_errors.txt +0 -0
  1037. package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/message.txt +0 -16
  1038. package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/prompt.txt +0 -13
  1039. package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/type_errors.txt +0 -74
  1040. package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/debug.log +0 -0
  1041. package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/error.log +0 -0
  1042. package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/exit.log +0 -0
  1043. package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/info.log +0 -0
  1044. package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/lint_errors.txt +0 -0
  1045. package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/message.txt +0 -17
  1046. package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/prompt.txt +0 -25
  1047. package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/type_errors.txt +0 -69
  1048. package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/warn.log +0 -0
  1049. package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/exit.log +0 -1
  1050. package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/lint_errors.txt +0 -0
  1051. package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/message.txt +0 -16
  1052. package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/prompt.txt +0 -13
  1053. package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/stderr.log +0 -88
  1054. package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/stdout.log +0 -521
  1055. package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/tests.json +0 -166
  1056. package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/type_errors.txt +0 -78
  1057. package/testeranto/reports/core/src/lib/pmProxy.test/index/node/exit.log +0 -1
  1058. package/testeranto/reports/core/src/lib/pmProxy.test/index/node/lint_errors.txt +0 -15
  1059. package/testeranto/reports/core/src/lib/pmProxy.test/index/node/message.txt +0 -17
  1060. package/testeranto/reports/core/src/lib/pmProxy.test/index/node/prompt.txt +0 -25
  1061. package/testeranto/reports/core/src/lib/pmProxy.test/index/node/stderr.log +0 -0
  1062. package/testeranto/reports/core/src/lib/pmProxy.test/index/node/stdout.log +0 -2
  1063. package/testeranto/reports/core/src/lib/pmProxy.test/index/node/tests.json +0 -31
  1064. package/testeranto/reports/core/src/lib/pmProxy.test/index/node/type_errors.txt +0 -62
  1065. package/testeranto.ts-0.0.1.tgz +0 -0
  1066. package/type-fix.txt +0 -2
  1067. /package/{src/ReportServer.ts → build-go.sh} +0 -0
  1068. /package/{src/ReportServerLib.ts → dist/types/src/app/backend/PM_WithProcesses.d.ts} +0 -0
  1069. /package/{src/components/SunriseAnimation.test/implementation.ts → dist/types/src/app/frontend/components/SunriseAnimation.test/implementation.d.ts} +0 -0
  1070. /package/{src/components/SunriseAnimation.test/index.ts → dist/types/src/app/frontend/components/SunriseAnimation.test/index.d.ts} +0 -0
  1071. /package/{src/components/SunriseAnimation.test/specification.ts → dist/types/src/app/frontend/components/SunriseAnimation.test/specification.d.ts} +0 -0
  1072. /package/{testeranto/reports/core/example/test_example/python/stdout.log → dist/types/src/app/frontend/components/pure/ArtifactTree.d.ts} +0 -0
  1073. /package/{testeranto/reports/core/src/Pure.test/pure/exit.log → dist/types/src/app/frontend/components/pure/Settings.test.d.ts} +0 -0
  1074. /package/{testeranto/reports/core/src/Pure.test/pure/lint_errors.txt → dist/types/src/app/frontend/components/pure/SingleProcessView.d.ts} +0 -0
  1075. /package/{testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/debug.log → dist/types/src/app/frontend/components/stateful/FeaturesReporter.d.ts} +0 -0
  1076. /package/{testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/error.log → dist/types/src/app/frontend/components/stateful/FileTree.d.ts} +0 -0
  1077. /package/{testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/exit.log → dist/types/src/app/frontend/components/stateful/SingleProcessPage.d.ts} +0 -0
  1078. /package/{testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/info.log → dist/types/src/app/frontend/fetchDataUtil.d.ts} +0 -0
  1079. /package/{testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/lint_errors.txt → dist/types/src/app/frontend/useFileSystemSync.d.ts} +0 -0
  1080. /package/{testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/warn.log → dist/types/src/run.d.ts} +0 -0
  1081. /package/{testeranto/reports/core/src/components/pure/ModalContent.test/index/web/debug.log → docker.md} +0 -0
  1082. /package/{testeranto/reports/core/src/components/pure/ModalContent.test/index/web/error.log → src/app/frontend/components/SunriseAnimation.test/implementation.ts} +0 -0
  1083. /package/{testeranto/reports/core/src/components/pure/ModalContent.test/index/web/exit.log → src/app/frontend/components/SunriseAnimation.test/index.ts} +0 -0
  1084. /package/src/{components → app/frontend/components}/SunriseAnimation.test/index.tsx +0 -0
  1085. /package/{testeranto/reports/core/src/components/pure/ModalContent.test/index/web/info.log → src/app/frontend/components/SunriseAnimation.test/specification.ts} +0 -0
  1086. /package/src/{components → app/frontend/components}/TestStatusBadge.tsx +0 -0
  1087. /package/src/{components → app/frontend/components}/pure/AppFrame.test/implementation.tsx +0 -0
  1088. /package/src/{components → app/frontend/components}/pure/AppFrame.test/index.tsx +0 -0
  1089. /package/src/{components → app/frontend/components}/pure/AppFrame.test/specification.ts +0 -0
  1090. /package/src/{components → app/frontend/components}/pure/AppFrame.test/types.ts +0 -0
  1091. /package/src/{components → app/frontend/components}/pure/ArtifactTree.tsx +0 -0
  1092. /package/src/{components → app/frontend/components}/pure/BuildLogViewer.tsx +0 -0
  1093. /package/src/{components → app/frontend/components}/pure/DebugEnv.tsx +0 -0
  1094. /package/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/implementation.tsx +0 -0
  1095. /package/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/index.tsx +0 -0
  1096. /package/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/specification.ts +0 -0
  1097. /package/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/types.ts +0 -0
  1098. /package/src/{components → app/frontend/components}/pure/FileTree.tsx +0 -0
  1099. /package/src/{components → app/frontend/components}/pure/FileTreeItem.tsx +0 -0
  1100. /package/src/{components → app/frontend/components}/pure/ModalContent.test/implementation.tsx +0 -0
  1101. /package/src/{components → app/frontend/components}/pure/ModalContent.test/specification.ts +0 -0
  1102. /package/src/{components → app/frontend/components}/pure/ModalContent.test/types.ts +0 -0
  1103. /package/src/{components → app/frontend/components}/pure/ModalContent.tsx +0 -0
  1104. /package/src/{components → app/frontend/components}/pure/ProcessDetails.tsx +0 -0
  1105. /package/src/{components → app/frontend/components}/pure/ProcessInput.tsx +0 -0
  1106. /package/src/{components → app/frontend/components}/pure/ProcessList.tsx +0 -0
  1107. /package/src/{components → app/frontend/components}/pure/ProcessLogs.tsx +0 -0
  1108. /package/src/{components → app/frontend/components}/pure/ProcessManager.tsx +0 -0
  1109. /package/src/{components → app/frontend/components}/pure/ProcessManagerViewTypes.ts +0 -0
  1110. /package/src/{components → app/frontend/components}/pure/ProcessSidebar.tsx +0 -0
  1111. /package/src/{components → app/frontend/components}/pure/ProjectPageView.test/index.tsx +0 -0
  1112. /package/src/{components → app/frontend/components}/pure/ProjectPageView.test/specification.ts +0 -0
  1113. /package/src/{components → app/frontend/components}/pure/ProjectPageView.test/types.ts +0 -0
  1114. /package/src/{components → app/frontend/components}/pure/ProjectsPageView.tsx +0 -0
  1115. /package/src/{components → app/frontend/components}/pure/SettingsButton.md +0 -0
  1116. /package/src/{components → app/frontend/components}/pure/SettingsButton.tsx +0 -0
  1117. /package/src/{components → app/frontend/components}/pure/SingleProcessView.tsx +0 -0
  1118. /package/src/{components → app/frontend/components}/pure/TerminalInput.tsx +0 -0
  1119. /package/src/{components → app/frontend/components}/pure/TerminalLogs.tsx +0 -0
  1120. /package/src/{components → app/frontend/components}/pure/TestTable.tsx +0 -0
  1121. /package/src/{components → app/frontend/components}/pure/ThemeCard.tsx +0 -0
  1122. /package/src/{components → app/frontend/components}/pure/ToastNotification.tsx +0 -0
  1123. /package/src/{components → app/frontend/components}/pure/UserProfile.tsx +0 -0
  1124. /package/src/{components → app/frontend/components}/stateful/AuthCallbackPage.tsx +0 -0
  1125. /package/src/{components → app/frontend/components}/stateful/DratoPage.tsx +0 -0
  1126. /package/src/{components → app/frontend/components}/stateful/FileTree.tsx +0 -0
  1127. /package/src/{components → app/frontend/components}/stateful/GenericXMLEditor/Drawer.tsx +0 -0
  1128. /package/src/{components → app/frontend/components}/stateful/GrafeoPage.tsx +0 -0
  1129. /package/src/{components → app/frontend/components}/stateful/SVGEditor/CircleForm.tsx +0 -0
  1130. /package/src/{components → app/frontend/components}/stateful/SVGEditor/GroupForm.tsx +0 -0
  1131. /package/src/{components → app/frontend/components}/stateful/SVGEditor/RectForm.tsx +0 -0
  1132. /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGAttributeField.tsx +0 -0
  1133. /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGAttributesEditor.tsx +0 -0
  1134. /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGEditorControls.tsx +0 -0
  1135. /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGElementForm.tsx +0 -0
  1136. /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGPreview.tsx +0 -0
  1137. /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGTextEditor.tsx +0 -0
  1138. /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGTree.tsx +0 -0
  1139. /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGTypes.ts +0 -0
  1140. /package/src/{components → app/frontend/components}/stateful/SVGEditor/svg.xsd.xml +0 -0
  1141. /package/src/{components → app/frontend/components}/stateful/SVGEditorPage.tsx +0 -0
  1142. /package/src/{components → app/frontend/components}/stateful/SettingsPage.tsx +0 -0
  1143. /package/src/{components → app/frontend/components}/stateful/SingleProcessPage.tsx +0 -0
  1144. /package/src/{components → app/frontend/components}/stateful/TextEditorPage.tsx +0 -0
  1145. /package/testeranto/{projects.html → index.html} +0 -0
  1146. /package/testeranto/reports/core/example/{Calculator.golingvu → Calculator.golingvu.test}/golang/exit.log +0 -0
  1147. /package/testeranto/reports/core/{src/components/pure/ModalContent.test/index/web/warn.log → example/Calculator.golingvu.test/golang/stdout.log} +0 -0
  1148. /package/testeranto/reports/core/{src/Pure.test/pure → example/Calculator.pitono.test/python}/message.txt +0 -0
package/src/app/trash ADDED
@@ -0,0 +1,1697 @@
1
+
2
+ // rootHtml(x: any) {
3
+ // throw new Error("Method not implemented.");
4
+ // }
5
+
6
+ // writeFile(path: string, content: string): Promise<void> {
7
+ // throw new Error("Method not implemented.");
8
+ // }
9
+ // readFile(path: string): Promise<string> {
10
+ // throw new Error("Method not implemented.");
11
+ // }
12
+ // createDirectory(path: string): Promise<void> {
13
+ // throw new Error("Method not implemented.");
14
+ // }
15
+ // deleteFile(path: string): Promise<void> {
16
+ // throw new Error("Method not implemented.");
17
+ // }
18
+ // files(path: string): Promise<object> {
19
+ // throw new Error("Method not implemented.");
20
+ // }
21
+ // projects(project: string): Promise<string[]> {
22
+ // throw new Error("Method not implemented.");
23
+ // }
24
+ // tests(project: string): Promise<string[]> {
25
+ // throw new Error("Method not implemented.");
26
+ // }
27
+ // report(project: string, test: string): Promise<object> {
28
+ // throw new Error("Method not implemented.");
29
+ // }
30
+ // }
31
+
32
+ // private changeCallbacks: ((changes: FileChange[]) => void)[] = [];
33
+ // private statusCallbacks: ((status: RemoteStatus) => void)[] = [];
34
+ // private branchCallbacks: ((branch: string) => void)[] = [];
35
+ // private fileCallbacks: Map<string, ((content: string) => void)[]> = new Map();
36
+ // private directoryCallbacks: Map<string, ((entries: FileEntry[]) => void)[]> = new Map();
37
+
38
+ // files(path: string): Promise<object> {
39
+ // throw new Error("Method not implemented.");
40
+ // }
41
+ // projects(project: string): Promise<string[]> {
42
+ // throw new Error("Method not implemented.");
43
+ // }
44
+ // tests(project: string): Promise<string[]> {
45
+ // throw new Error("Method not implemented.");
46
+ // }
47
+ // report(project: string, test: string): Promise<object> {
48
+ // throw new Error("Method not implemented.");
49
+ // }
50
+ // fsTree(path: string): Promise<object> {
51
+ // throw new Error("Method not implemented.");
52
+ // }
53
+ // projectTree(project: string): Promise<object> {
54
+ // throw new Error("Method not implemented.");
55
+ // }
56
+
57
+ // private connectWebSocket() {
58
+ // // Ensure we're in a browser environment
59
+ // if (typeof window === "undefined") return;
60
+
61
+ // try {
62
+ // const protocol = window.location.protocol === "https:" ? "wss:" : "ws:";
63
+ // const wsUrl = `${protocol}//${window.location.host}/api/git-ws`;
64
+ // this.ws = new WebSocket(wsUrl);
65
+
66
+ // this.ws.onopen = () => {
67
+ // console.log("Git WebSocket connected");
68
+ // // Request initial state
69
+ // if (this.ws && this.ws.readyState === WebSocket.OPEN) {
70
+ // this.ws.send(JSON.stringify({ type: "get-initial-state" }));
71
+ // }
72
+ // };
73
+
74
+ // this.ws.onmessage = (event) => {
75
+ // try {
76
+ // const data = JSON.parse(event.data);
77
+ // switch (data.type) {
78
+ // case "changes":
79
+ // this.changeCallbacks.forEach((callback) =>
80
+ // callback(data.changes)
81
+ // );
82
+ // break;
83
+ // case "status":
84
+ // this.statusCallbacks.forEach((callback) => callback(data.status));
85
+ // break;
86
+ // case "branch":
87
+ // this.branchCallbacks.forEach((callback) => callback(data.branch));
88
+ // break;
89
+ // case "fileContent": {
90
+ // // Handle file content responses
91
+ // const fileCallbacks = this.fileCallbacks.get(data.path) || [];
92
+ // fileCallbacks.forEach((callback) => callback(data.content));
93
+ // this.fileCallbacks.delete(data.path);
94
+ // break;
95
+ // }
96
+ // case "directoryListing": {
97
+ // // Handle directory listing responses
98
+ // const dirCallbacks = this.directoryCallbacks.get(data.path) || [];
99
+ // dirCallbacks.forEach((callback) => callback(data.items));
100
+ // this.directoryCallbacks.delete(data.path);
101
+ // break;
102
+ // }
103
+ // case "error":
104
+ // console.error("Git WebSocket error:", data.message);
105
+ // // Reject pending callbacks
106
+ // if (data.path) {
107
+ // const fileCallbacks = this.fileCallbacks.get(data.path) || [];
108
+ // fileCallbacks.forEach((callback) => callback(""));
109
+ // this.fileCallbacks.delete(data.path);
110
+
111
+ // const dirCallbacks =
112
+ // this.directoryCallbacks.get(data.path) || [];
113
+ // dirCallbacks.forEach((callback) => callback([]));
114
+ // this.directoryCallbacks.delete(data.path);
115
+ // }
116
+ // break;
117
+ // }
118
+ // } catch (error) {
119
+ // console.error("Error parsing WebSocket message:", error);
120
+ // }
121
+ // };
122
+
123
+ // this.ws.onclose = () => {
124
+ // console.log("Git WebSocket disconnected, attempting to reconnect...");
125
+ // setTimeout(() => this.connectWebSocket(), 3000);
126
+ // };
127
+
128
+ // this.ws.onerror = (error) => {
129
+ // console.error("Git WebSocket error:", error);
130
+ // };
131
+ // } catch (error) {
132
+ // console.error("Failed to connect Git WebSocket:", error);
133
+ // }
134
+ // }
135
+
136
+ // // Subscribe to real-time changes
137
+ // onChanges(callback: (changes: FileChange[]) => void) {
138
+ // this.changeCallbacks.push(callback);
139
+ // return () => {
140
+ // this.changeCallbacks = this.changeCallbacks.filter(
141
+ // (cb) => cb !== callback
142
+ // );
143
+ // };
144
+ // }
145
+
146
+ // onStatusUpdate(callback: (status: RemoteStatus) => void) {
147
+ // this.statusCallbacks.push(callback);
148
+ // return () => {
149
+ // this.statusCallbacks = this.statusCallbacks.filter(
150
+ // (cb) => cb !== callback
151
+ // );
152
+ // };
153
+ // }
154
+
155
+ // onBranchUpdate(callback: (branch: string) => void) {
156
+ // this.branchCallbacks.push(callback);
157
+ // return () => {
158
+ // this.branchCallbacks = this.branchCallbacks.filter(
159
+ // (cb) => cb !== callback
160
+ // );
161
+ // };
162
+ // }
163
+
164
+ // private ensureWebSocketConnected(): Promise<void> {
165
+ // return new Promise((resolve, reject) => {
166
+ // // If already connected, resolve immediately
167
+ // if (this.ws && this.ws.readyState === WebSocket.OPEN) {
168
+ // resolve();
169
+ // return;
170
+ // }
171
+
172
+ // // If connecting in progress, wait for it
173
+ // if (this.ws && this.ws.readyState === WebSocket.CONNECTING) {
174
+ // const onOpen = () => {
175
+ // this.ws?.removeEventListener("open", onOpen);
176
+ // resolve();
177
+ // };
178
+ // this.ws.addEventListener("open", onOpen);
179
+ // return;
180
+ // }
181
+
182
+ // // Connect if not connected
183
+ // this.connectWebSocket();
184
+
185
+ // // Wait for connection
186
+ // if (this.ws) {
187
+ // const onOpen = () => {
188
+ // this.ws?.removeEventListener("open", onOpen);
189
+ // resolve();
190
+ // };
191
+ // const onError = (error: Event) => {
192
+ // this.ws?.removeEventListener("error", onError);
193
+ // reject(new Error("Failed to connect WebSocket"));
194
+ // };
195
+ // this.ws.addEventListener("open", onOpen);
196
+ // this.ws.addEventListener("error", onError);
197
+ // } else {
198
+ // reject(new Error("Failed to create WebSocket"));
199
+ // }
200
+ // });
201
+ // }
202
+
203
+ // async readFile(path: string): Promise<string> {
204
+ // return new Promise(async (resolve, reject) => {
205
+ // try {
206
+ // await this.ensureWebSocketConnected();
207
+
208
+ // if (!this.ws || this.ws.readyState !== WebSocket.OPEN) {
209
+ // reject(new Error("WebSocket is not connected"));
210
+ // return;
211
+ // }
212
+
213
+ // // Add callback
214
+ // if (!this.fileCallbacks.has(path)) {
215
+ // this.fileCallbacks.set(path, []);
216
+ // }
217
+ // const callbacks = this.fileCallbacks.get(path)!;
218
+ // callbacks.push(resolve);
219
+
220
+ // // Send request
221
+ // this.ws.send(
222
+ // JSON.stringify({
223
+ // type: "readFile",
224
+ // path,
225
+ // })
226
+ // );
227
+
228
+ // // Set timeout for error handling
229
+ // setTimeout(() => {
230
+ // const remainingCallbacks = this.fileCallbacks.get(path);
231
+ // if (remainingCallbacks && remainingCallbacks.length > 0) {
232
+ // remainingCallbacks.forEach((cb) => cb(""));
233
+ // this.fileCallbacks.delete(path);
234
+ // reject(new Error("Timeout reading file"));
235
+ // }
236
+ // }, 5000);
237
+ // } catch (error) {
238
+ // reject(error);
239
+ // }
240
+ // });
241
+ // }
242
+
243
+ // async readDirectory(path: string): Promise<FileEntry[]> {
244
+ // return new Promise(async (resolve, reject) => {
245
+ // try {
246
+ // await this.ensureWebSocketConnected();
247
+
248
+ // if (!this.ws || this.ws.readyState !== WebSocket.OPEN) {
249
+ // reject(new Error("WebSocket is not connected"));
250
+ // return;
251
+ // }
252
+
253
+ // // Add callback
254
+ // if (!this.directoryCallbacks.has(path)) {
255
+ // this.directoryCallbacks.set(path, []);
256
+ // }
257
+ // const callbacks = this.directoryCallbacks.get(path)!;
258
+ // callbacks.push(resolve);
259
+
260
+ // // Send request
261
+ // this.ws.send(
262
+ // JSON.stringify({
263
+ // type: "listDirectory",
264
+ // path,
265
+ // })
266
+ // );
267
+
268
+ // // Set timeout for error handling
269
+ // setTimeout(() => {
270
+ // const remainingCallbacks = this.directoryCallbacks.get(path);
271
+ // if (remainingCallbacks && remainingCallbacks.length > 0) {
272
+ // remainingCallbacks.forEach((cb) => cb([]));
273
+ // this.directoryCallbacks.delete(path);
274
+ // reject(new Error("Timeout reading directory"));
275
+ // }
276
+ // }, 5000);
277
+ // } catch (error) {
278
+ // reject(error);
279
+ // }
280
+ // });
281
+ // }
282
+
283
+ // private async readDirectoryViaWebSocket(path: string): Promise<FileEntry[]> {
284
+ // // This should not be used - WebSocket communication should be handled separately
285
+ // throw new Error("WebSocket directory listing not implemented");
286
+ // }
287
+
288
+ // async exists(path: string): Promise<boolean> {
289
+ // try {
290
+ // await this.readFile(path);
291
+ // return true;
292
+ // } catch {
293
+ // return false;
294
+ // }
295
+ // }
296
+
297
+ // async writeFile(path: string, content: string): Promise<void> {
298
+ // await this.ensureWebSocketConnected();
299
+
300
+ // if (!this.ws || this.ws.readyState !== WebSocket.OPEN) {
301
+ // throw new Error("WebSocket is not connected");
302
+ // }
303
+
304
+ // this.ws.send(
305
+ // JSON.stringify({
306
+ // type: "writeFile",
307
+ // path,
308
+ // content,
309
+ // })
310
+ // );
311
+
312
+ // // For now, we'll assume it always succeeds
313
+ // // In a real implementation, we'd want to wait for a confirmation
314
+ // }
315
+
316
+ // async createDirectory(path: string): Promise<void> {
317
+ // await this.ensureWebSocketConnected();
318
+
319
+ // if (!this.ws || this.ws.readyState !== WebSocket.OPEN) {
320
+ // throw new Error("WebSocket is not connected");
321
+ // }
322
+
323
+ // this.ws.send(
324
+ // JSON.stringify({
325
+ // type: "createDirectory",
326
+ // path,
327
+ // })
328
+ // );
329
+
330
+ // // For now, we'll assume it always succeeds
331
+ // }
332
+
333
+ // async deleteFile(path: string): Promise<void> {
334
+ // await this.ensureWebSocketConnected();
335
+
336
+ // if (!this.ws || this.ws.readyState !== WebSocket.OPEN) {
337
+ // throw new Error("WebSocket is not connected");
338
+ // }
339
+
340
+ // this.ws.send(
341
+ // JSON.stringify({
342
+ // type: "deleteFile",
343
+ // path,
344
+ // })
345
+ // );
346
+
347
+ // // For now, we'll assume it always succeeds
348
+ // }
349
+
350
+ // async getFileStatus(path: string): Promise<FileStatus> {
351
+ // await this.ensureWebSocketConnected();
352
+ // const response = await fetch(
353
+ // `/api/git/status?path=${encodeURIComponent(path)}`
354
+ // );
355
+ // if (!response.ok) return { status: "unchanged" };
356
+ // return await response.json();
357
+ // }
358
+
359
+ // async getChanges(): Promise<FileChange[]> {
360
+ // try {
361
+ // await this.ensureWebSocketConnected();
362
+ // const response = await fetch("/api/git/changes");
363
+ // if (!response.ok) return [];
364
+ // const changes = await response.json();
365
+ // console.log("Raw changes from server:", JSON.stringify(changes, null, 2));
366
+ // return changes;
367
+ // } catch (error) {
368
+ // console.error("Error fetching changes:", error);
369
+ // return [];
370
+ // }
371
+ // }
372
+
373
+ // async commitChanges(message: string, description?: string): Promise<void> {
374
+ // await this.ensureWebSocketConnected();
375
+ // const response = await fetch("/api/git/commit", {
376
+ // method: "POST",
377
+ // headers: { "Content-Type": "application/json" },
378
+ // body: JSON.stringify({ message, description }),
379
+ // });
380
+ // if (!response.ok) {
381
+ // const error = await response.text();
382
+ // throw new Error(`Failed to commit changes: ${error}`);
383
+ // }
384
+
385
+ // // Request updated status after commit
386
+ // this.ws?.send(JSON.stringify({ type: "refresh-status" }));
387
+ // }
388
+
389
+ // async pushChanges(): Promise<void> {
390
+ // await this.ensureWebSocketConnected();
391
+ // const response = await fetch("/api/git/push", {
392
+ // method: "POST",
393
+ // });
394
+ // if (!response.ok) {
395
+ // const error = await response.text();
396
+ // throw new Error(`Failed to push changes: ${error}`);
397
+ // }
398
+
399
+ // this.ws?.send(JSON.stringify({ type: "refresh-status" }));
400
+ // }
401
+
402
+ // async pullChanges(): Promise<void> {
403
+ // await this.ensureWebSocketConnected();
404
+ // const response = await fetch("/api/git/pull", {
405
+ // method: "POST",
406
+ // });
407
+ // if (!response.ok) {
408
+ // const error = await response.text();
409
+ // throw new Error(`Failed to pull changes: ${error}`);
410
+ // }
411
+
412
+ // this.ws?.send(JSON.stringify({ type: "refresh-status" }));
413
+ // }
414
+
415
+ // async getCurrentBranch(): Promise<string> {
416
+ // await this.ensureWebSocketConnected();
417
+ // const response = await fetch("/api/git/branch");
418
+ // if (!response.ok) return "main";
419
+ // return await response.text();
420
+ // }
421
+
422
+ // async getRemoteStatus(): Promise<RemoteStatus> {
423
+ // await this.ensureWebSocketConnected();
424
+ // const response = await fetch("/api/git/remote-status");
425
+ // if (!response.ok) return { ahead: 0, behind: 0 };
426
+ // return await response.json();
427
+ // }
428
+
429
+
430
+ // /* eslint-disable @typescript-eslint/no-explicit-any */
431
+ // /* eslint-disable no-async-promise-executor */
432
+ // /* eslint-disable @typescript-eslint/no-unused-vars */
433
+
434
+ // import fs from "@isomorphic-git/lightning-fs";
435
+ // import git from "isomorphic-git";
436
+
437
+ // import {
438
+ // FileService,
439
+ // FileChange,
440
+ // RemoteStatus,
441
+ // FileEntry,
442
+ // FileStatus,
443
+ // } from "../FileService";
444
+ // import { RawData, WebSocketServer } from "ws";
445
+ // import http from "http";
446
+ // import { spawn, ChildProcess } from "child_process";
447
+ // import { WebSocketMessage } from "../../PM/types";
448
+ // import { ApiEndpoint, ApiFilename } from "../api";
449
+
450
+ // export class DevelopmentFileService extends FileService {
451
+ // // private ws: WebSocket;
452
+ // // private changeCallbacks: ((changes: FileChange[]) => void)[] = [];
453
+ // // private statusCallbacks: ((status: RemoteStatus) => void)[] = [];
454
+ // // private branchCallbacks: ((branch: string) => void)[] = [];
455
+ // // private fileCallbacks: Map<string, ((content: string) => void)[]> = new Map();
456
+ // // private directoryCallbacks: Map<string, ((entries: FileEntry[]) => void)[]> =
457
+ // // new Map();
458
+
459
+ // wss: WebSocketServer;
460
+ // httpServer: http.Server;
461
+ // clients: Set<any> = new Set();
462
+
463
+ // public fs = new fs("testfs");
464
+
465
+ // // readonly connected: boolean = false;
466
+
467
+ // constructor() {
468
+ // super();
469
+
470
+ // this.httpServer = http.createServer(this.handleHttpRequest.bind(this));
471
+
472
+ // this.wss = new WebSocketServer({ server: this.httpServer });
473
+
474
+ // this.wss.on("connection", (ws) => {
475
+ // this.clients.add(ws);
476
+ // console.log("Client connected");
477
+
478
+ // ws.on("message", (data) => {
479
+ // try {
480
+ // this.websocket(data, ws);
481
+ // } catch (error) {
482
+ // console.error("Error handling WebSocket message:", error);
483
+ // }
484
+ // });
485
+
486
+ // ws.on("close", () => {
487
+ // this.clients.delete(ws);
488
+ // console.log("Client disconnected");
489
+ // });
490
+
491
+ // ws.on("error", (error) => {
492
+ // console.error("WebSocket error:", error);
493
+ // this.clients.delete(ws);
494
+ // });
495
+ // });
496
+
497
+ // const httpPort = Number(process.env.HTTP_PORT) || 3000;
498
+
499
+ // this.httpServer.on("error", (error) => {
500
+ // console.error("HTTP server error:", error);
501
+ // if ((error as any).code === "EADDRINUSE") {
502
+ // console.error(
503
+ // `Port ${httpPort} is already in use. Please use a different port.`
504
+ // );
505
+ // }
506
+ // process.exit(-1);
507
+ // });
508
+
509
+ // this.httpServer.listen(httpPort, "0.0.0.0", () => {
510
+ // console.log(`HTTP server running on http://localhost:${httpPort}`);
511
+ // });
512
+ // }
513
+
514
+ // websocket(data: RawData, ws: any) {
515
+ // try {
516
+ // const message: WebSocketMessage = JSON.parse(data.toString());
517
+
518
+ // if (message.type === "chatMessage") {
519
+ // // Always record the message, even if aider is not available
520
+ // console.log(`Received chat message: ${message.content}`);
521
+
522
+ // // Pass to PM_WithHelpo if available
523
+ // if ((this as any).handleChatMessage) {
524
+ // (this as any).handleChatMessage(message.content);
525
+ // } else {
526
+ // console.log("PM_WithHelpo not available - message not processed");
527
+ // }
528
+ // return;
529
+ // }
530
+
531
+ // // Handle file operations via WebSocket
532
+ // if (message.type === "listDirectory") {
533
+ // // this.handleListDirectory(ws, message);
534
+ // } else if (message.type === "readFile") {
535
+ // // this.handleReadFile(ws, message);
536
+ // } else if (message.type === "writeFile") {
537
+ // // this.handleWriteFile(ws, message);
538
+ // } else if (message.type === "createDirectory") {
539
+ // // this.handleCreateDirectory(ws, message);
540
+ // } else if (message.type === "deleteFile") {
541
+ // // this.handleDeleteFile(ws, message);
542
+ // } else if (message.type === "executeCommand") {
543
+ // // const executeMessage = message as ExecuteCommandMessage;
544
+
545
+ // if (message.command && message.command.trim().startsWith("aider")) {
546
+ // console.log(`Executing command: ${message.command}`);
547
+
548
+ // const processId = Date.now().toString();
549
+ // const child = spawn(message.command, {
550
+ // shell: true,
551
+ // cwd: process.cwd(),
552
+ // });
553
+
554
+ // this.runningProcesses.set(processId, child);
555
+ // this.allProcesses.set(processId, {
556
+ // child,
557
+ // status: "running",
558
+ // command: message.command,
559
+ // pid: child.pid,
560
+ // timestamp: new Date().toISOString(),
561
+ // type: "process",
562
+ // category: "aider",
563
+ // });
564
+
565
+ // this.processLogs.set(processId, []);
566
+
567
+ // this.webSocketBroadcastMessage({
568
+ // type: "processStarted",
569
+ // processId,
570
+ // command: message.command,
571
+ // timestamp: new Date().toISOString(),
572
+ // logs: [],
573
+ // });
574
+
575
+ // // Capture stdout and stderr
576
+ // child.stdout?.on("data", (data) => {
577
+ // const logData = data.toString();
578
+ // const logs = this.processLogs.get(processId) || [];
579
+ // logs.push(logData);
580
+ // this.processLogs.set(processId, logs);
581
+
582
+ // this.webSocketBroadcastMessage({
583
+ // type: "processStdout",
584
+ // processId,
585
+ // data: logData,
586
+ // timestamp: new Date().toISOString(),
587
+ // });
588
+ // });
589
+
590
+ // child.stderr?.on("data", (data) => {
591
+ // const logData = data.toString();
592
+ // const logs = this.processLogs.get(processId) || [];
593
+ // logs.push(logData);
594
+ // this.processLogs.set(processId, logs);
595
+
596
+ // this.webSocketBroadcastMessage({
597
+ // type: "processStderr",
598
+ // processId,
599
+ // data: logData,
600
+ // timestamp: new Date().toISOString(),
601
+ // });
602
+ // });
603
+
604
+ // child.on("error", (error) => {
605
+ // console.error(`Failed to execute command: ${error}`);
606
+ // this.runningProcesses.delete(processId);
607
+ // const processInfo = this.allProcesses.get(processId);
608
+ // if (processInfo) {
609
+ // this.allProcesses.set(processId, {
610
+ // ...processInfo,
611
+ // status: "error",
612
+ // error: error.message,
613
+ // });
614
+ // }
615
+ // this.webSocketBroadcastMessage({
616
+ // type: "processError",
617
+ // processId,
618
+ // error: error.message,
619
+ // timestamp: new Date().toISOString(),
620
+ // });
621
+ // });
622
+
623
+ // child.on("exit", (code) => {
624
+ // console.log(`Command exited with code ${code}`);
625
+ // this.runningProcesses.delete(processId);
626
+ // const processInfo = this.allProcesses.get(processId);
627
+ // if (processInfo) {
628
+ // this.allProcesses.set(processId, {
629
+ // ...processInfo,
630
+ // status: "exited",
631
+ // // @ts-ignore
632
+ // exitCode: code,
633
+ // });
634
+ // }
635
+ // this.webSocketBroadcastMessage({
636
+ // type: "processExited",
637
+ // processId,
638
+ // exitCode: code,
639
+ // timestamp: new Date().toISOString(),
640
+ // });
641
+ // });
642
+ // } else {
643
+ // console.error('Invalid command: must start with "aider"');
644
+ // }
645
+ // } else if (message.type === "getRunningProcesses") {
646
+ // const processes = Array.from(this.allProcesses.entries()).map(
647
+ // ([id, procInfo]) => ({
648
+ // processId: id,
649
+ // command: procInfo.command,
650
+ // pid: procInfo.pid,
651
+ // status: procInfo.status,
652
+ // exitCode: procInfo.exitCode,
653
+ // error: procInfo.error,
654
+ // timestamp: procInfo.timestamp,
655
+ // category: procInfo.category,
656
+ // testName: procInfo.testName,
657
+ // platform: procInfo.platform,
658
+ // logs: this.processLogs.get(id) || [],
659
+ // })
660
+ // );
661
+ // ws.send(
662
+ // JSON.stringify({
663
+ // type: "runningProcesses",
664
+ // processes,
665
+ // })
666
+ // );
667
+ // } else if (message.type === "getProcess") {
668
+ // const processId = message.processId;
669
+ // const procInfo = this.allProcesses.get(processId);
670
+ // if (procInfo) {
671
+ // ws.send(
672
+ // JSON.stringify({
673
+ // type: "processData",
674
+ // processId,
675
+ // command: procInfo.command,
676
+ // pid: procInfo.pid,
677
+ // status: procInfo.status,
678
+ // exitCode: procInfo.exitCode,
679
+ // error: procInfo.error,
680
+ // timestamp: procInfo.timestamp,
681
+ // category: procInfo.category,
682
+ // testName: procInfo.testName,
683
+ // platform: procInfo.platform,
684
+ // logs: this.processLogs.get(processId) || [],
685
+ // })
686
+ // );
687
+ // }
688
+ // } else if (message.type === "stdin") {
689
+ // const processId = message.processId;
690
+ // const data = message.data;
691
+ // console.log("Received stdin for process", processId, ":", data);
692
+ // const childProcess = this.runningProcesses.get(
693
+ // processId
694
+ // ) as ChildProcess;
695
+
696
+ // if (childProcess && childProcess.stdin) {
697
+ // console.log("Writing to process stdin");
698
+ // childProcess.stdin.write(data);
699
+ // } else {
700
+ // console.log(
701
+ // "Cannot write to stdin - process not found or no stdin:",
702
+ // {
703
+ // processExists: !!childProcess,
704
+ // stdinExists: childProcess?.stdin ? true : false,
705
+ // }
706
+ // );
707
+ // }
708
+ // } else if (message.type === "killProcess") {
709
+ // const processId = message.processId;
710
+ // console.log("Received killProcess for process", processId);
711
+ // const childProcess = this.runningProcesses.get(
712
+ // processId
713
+ // ) as ChildProcess;
714
+
715
+ // if (childProcess) {
716
+ // console.log("Killing process");
717
+ // childProcess.kill("SIGTERM");
718
+ // // The process exit handler will update the status and broadcast the change
719
+ // } else {
720
+ // console.log("Cannot kill process - process not found:", {
721
+ // processExists: !!childProcess,
722
+ // });
723
+ // }
724
+ // } else if (message.type === "getChatHistory") {
725
+ // if ((this as any).getChatHistory) {
726
+ // (this as any)
727
+ // .getChatHistory()
728
+ // .then((history: any) => {
729
+ // ws.send(
730
+ // JSON.stringify({
731
+ // type: "chatHistory",
732
+ // messages: history,
733
+ // })
734
+ // );
735
+ // })
736
+ // .catch((error: any) => {
737
+ // console.error("Error getting chat history:", error);
738
+ // ws.send(
739
+ // JSON.stringify({
740
+ // type: "error",
741
+ // message: "Failed to get chat history",
742
+ // })
743
+ // );
744
+ // });
745
+ // }
746
+ // }
747
+ // } catch (error) {
748
+ // console.error("Error handling WebSocket message:", error);
749
+ // }
750
+ // }
751
+
752
+ // webSocketBroadcastMessage(message: any) {
753
+ // const data =
754
+ // typeof message === "string" ? message : JSON.stringify(message);
755
+ // this.clients.forEach((client) => {
756
+ // if (client.readyState === 1) {
757
+ // client.send(data);
758
+ // }
759
+ // });
760
+ // }
761
+
762
+ // handleHttpRequest(
763
+ // req: http.IncomingMessage,
764
+ // res: http.ServerResponse<http.IncomingMessage> & {
765
+ // req: http.IncomingMessage;
766
+ // }
767
+ // ) {
768
+ // console.log(req.method, req.url);
769
+
770
+ // // Parse the URL from the request
771
+ // const parsedUrl = new URL(req.url, `http://${req.headers.host}`);
772
+
773
+ // // Access the searchParams property, which is a URLSearchParams object
774
+ // const queryParams = parsedUrl.searchParams;
775
+
776
+ // if (req.url === "/testeranto/index.html") {
777
+ // this.rootHtml(res);
778
+ // return;
779
+ // } else if (req.url === ApiEndpoint.style) {
780
+ // this.appCss(res);
781
+ // return;
782
+ // } else {
783
+ // res.writeHead(404);
784
+ // res.end(`404 Not Found. ${req.url}`);
785
+ // return;
786
+ // }
787
+
788
+ // // Get a specific query parameter by name
789
+ // // const paramValue = queryParams.get("yourParamName");
790
+
791
+ // // if (req) {
792
+ // // this.serveFileSync(indexPath, res, true);
793
+ // // }
794
+ // }
795
+
796
+ // appCss(res) {
797
+ // fs.readFile(ApiFilename.style, (err, data) => {
798
+ // if (err) {
799
+ // res.writeHead(404, { "Content-Type": "text/plain" });
800
+ // res.end(`500 ${err.toString()}`);
801
+ // return;
802
+ // }
803
+ // res.writeHead(200, { "Content-Type": "text/css" });
804
+ // res.end(data);
805
+ // });
806
+ // }
807
+
808
+ // rootHtml(res) {
809
+ // fs.readFile(ApiFilename.root, (err, data) => {
810
+ // if (err) {
811
+ // res.writeHead(404, { "Content-Type": "text/plain" });
812
+ // res.end(`500 ${err.toString()}`);
813
+ // return;
814
+ // }
815
+ // res.writeHead(200, { "Content-Type": "text/html" });
816
+ // res.end(data);
817
+ // });
818
+ // }
819
+
820
+ // writeFile(path: string, content: string): Promise<void> {
821
+ // throw new Error("Method not implemented.");
822
+ // }
823
+ // readFile(path: string): Promise<string> {
824
+ // throw new Error("Method not implemented.");
825
+ // }
826
+ // createDirectory(path: string): Promise<void> {
827
+ // throw new Error("Method not implemented.");
828
+ // }
829
+ // deleteFile(path: string): Promise<void> {
830
+ // throw new Error("Method not implemented.");
831
+ // }
832
+ // files(path: string): Promise<object> {
833
+ // throw new Error("Method not implemented.");
834
+ // }
835
+ // projects(project: string): Promise<string[]> {
836
+ // throw new Error("Method not implemented.");
837
+ // }
838
+ // tests(project: string): Promise<string[]> {
839
+ // throw new Error("Method not implemented.");
840
+ // }
841
+ // report(project: string, test: string): Promise<object> {
842
+ // throw new Error("Method not implemented.");
843
+ // }
844
+
845
+ // rootHtml(x: any) {
846
+ // throw new Error("Method not implemented.");
847
+ // }
848
+
849
+ // writeFile(path: string, content: string): Promise<void> {
850
+ // throw new Error("Method not implemented.");
851
+ // }
852
+ // readFile(path: string): Promise<string> {
853
+ // throw new Error("Method not implemented.");
854
+ // }
855
+ // createDirectory(path: string): Promise<void> {
856
+ // throw new Error("Method not implemented.");
857
+ // }
858
+ // deleteFile(path: string): Promise<void> {
859
+ // throw new Error("Method not implemented.");
860
+ // }
861
+ // files(path: string): Promise<object> {
862
+ // throw new Error("Method not implemented.");
863
+ // }
864
+ // projects(project: string): Promise<string[]> {
865
+ // throw new Error("Method not implemented.");
866
+ // }
867
+ // tests(project: string): Promise<string[]> {
868
+ // throw new Error("Method not implemented.");
869
+ // }
870
+ // report(project: string, test: string): Promise<object> {
871
+ // throw new Error("Method not implemented.");
872
+ // }
873
+
874
+ // // files(path: string): Promise<object> {
875
+ // // throw new Error("Method not implemented.");
876
+ // // }
877
+ // // projects(project: string): Promise<string[]> {
878
+ // // throw new Error("Method not implemented.");
879
+ // // }
880
+ // // tests(project: string): Promise<string[]> {
881
+ // // throw new Error("Method not implemented.");
882
+ // // }
883
+ // // report(project: string, test: string): Promise<object> {
884
+ // // throw new Error("Method not implemented.");
885
+ // // }
886
+ // // fsTree(path: string): Promise<object> {
887
+ // // throw new Error("Method not implemented.");
888
+ // // }
889
+ // // projectTree(project: string): Promise<object> {
890
+ // // throw new Error("Method not implemented.");
891
+ // // }
892
+
893
+ // // private connectWebSocket() {
894
+ // // // Ensure we're in a browser environment
895
+ // // if (typeof window === "undefined") return;
896
+
897
+ // // try {
898
+ // // const protocol = window.location.protocol === "https:" ? "wss:" : "ws:";
899
+ // // const wsUrl = `${protocol}//${window.location.host}/api/git-ws`;
900
+ // // this.ws = new WebSocket(wsUrl);
901
+
902
+ // // this.ws.onopen = () => {
903
+ // // console.log("Git WebSocket connected");
904
+ // // // Request initial state
905
+ // // if (this.ws && this.ws.readyState === WebSocket.OPEN) {
906
+ // // this.ws.send(JSON.stringify({ type: "get-initial-state" }));
907
+ // // }
908
+ // // };
909
+
910
+ // // this.ws.onmessage = (event) => {
911
+ // // try {
912
+ // // const data = JSON.parse(event.data);
913
+ // // switch (data.type) {
914
+ // // case "changes":
915
+ // // this.changeCallbacks.forEach((callback) =>
916
+ // // callback(data.changes)
917
+ // // );
918
+ // // break;
919
+ // // case "status":
920
+ // // this.statusCallbacks.forEach((callback) => callback(data.status));
921
+ // // break;
922
+ // // case "branch":
923
+ // // this.branchCallbacks.forEach((callback) => callback(data.branch));
924
+ // // break;
925
+ // // case "fileContent": {
926
+ // // // Handle file content responses
927
+ // // const fileCallbacks = this.fileCallbacks.get(data.path) || [];
928
+ // // fileCallbacks.forEach((callback) => callback(data.content));
929
+ // // this.fileCallbacks.delete(data.path);
930
+ // // break;
931
+ // // }
932
+ // // case "directoryListing": {
933
+ // // // Handle directory listing responses
934
+ // // const dirCallbacks = this.directoryCallbacks.get(data.path) || [];
935
+ // // dirCallbacks.forEach((callback) => callback(data.items));
936
+ // // this.directoryCallbacks.delete(data.path);
937
+ // // break;
938
+ // // }
939
+ // // case "error":
940
+ // // console.error("Git WebSocket error:", data.message);
941
+ // // // Reject pending callbacks
942
+ // // if (data.path) {
943
+ // // const fileCallbacks = this.fileCallbacks.get(data.path) || [];
944
+ // // fileCallbacks.forEach((callback) => callback(""));
945
+ // // this.fileCallbacks.delete(data.path);
946
+
947
+ // // const dirCallbacks =
948
+ // // this.directoryCallbacks.get(data.path) || [];
949
+ // // dirCallbacks.forEach((callback) => callback([]));
950
+ // // this.directoryCallbacks.delete(data.path);
951
+ // // }
952
+ // // break;
953
+ // // }
954
+ // // } catch (error) {
955
+ // // console.error("Error parsing WebSocket message:", error);
956
+ // // }
957
+ // // };
958
+
959
+ // // this.ws.onclose = () => {
960
+ // // console.log("Git WebSocket disconnected, attempting to reconnect...");
961
+ // // setTimeout(() => this.connectWebSocket(), 3000);
962
+ // // };
963
+
964
+ // // this.ws.onerror = (error) => {
965
+ // // console.error("Git WebSocket error:", error);
966
+ // // };
967
+ // // } catch (error) {
968
+ // // console.error("Failed to connect Git WebSocket:", error);
969
+ // // }
970
+ // // }
971
+
972
+ // // // Subscribe to real-time changes
973
+ // // onChanges(callback: (changes: FileChange[]) => void) {
974
+ // // this.changeCallbacks.push(callback);
975
+ // // return () => {
976
+ // // this.changeCallbacks = this.changeCallbacks.filter(
977
+ // // (cb) => cb !== callback
978
+ // // );
979
+ // // };
980
+ // // }
981
+
982
+ // // onStatusUpdate(callback: (status: RemoteStatus) => void) {
983
+ // // this.statusCallbacks.push(callback);
984
+ // // return () => {
985
+ // // this.statusCallbacks = this.statusCallbacks.filter(
986
+ // // (cb) => cb !== callback
987
+ // // );
988
+ // // };
989
+ // // }
990
+
991
+ // // onBranchUpdate(callback: (branch: string) => void) {
992
+ // // this.branchCallbacks.push(callback);
993
+ // // return () => {
994
+ // // this.branchCallbacks = this.branchCallbacks.filter(
995
+ // // (cb) => cb !== callback
996
+ // // );
997
+ // // };
998
+ // // }
999
+
1000
+ // // private ensureWebSocketConnected(): Promise<void> {
1001
+ // // return new Promise((resolve, reject) => {
1002
+ // // // If already connected, resolve immediately
1003
+ // // if (this.ws && this.ws.readyState === WebSocket.OPEN) {
1004
+ // // resolve();
1005
+ // // return;
1006
+ // // }
1007
+
1008
+ // // // If connecting in progress, wait for it
1009
+ // // if (this.ws && this.ws.readyState === WebSocket.CONNECTING) {
1010
+ // // const onOpen = () => {
1011
+ // // this.ws?.removeEventListener("open", onOpen);
1012
+ // // resolve();
1013
+ // // };
1014
+ // // this.ws.addEventListener("open", onOpen);
1015
+ // // return;
1016
+ // // }
1017
+
1018
+ // // // Connect if not connected
1019
+ // // this.connectWebSocket();
1020
+
1021
+ // // // Wait for connection
1022
+ // // if (this.ws) {
1023
+ // // const onOpen = () => {
1024
+ // // this.ws?.removeEventListener("open", onOpen);
1025
+ // // resolve();
1026
+ // // };
1027
+ // // const onError = (error: Event) => {
1028
+ // // this.ws?.removeEventListener("error", onError);
1029
+ // // reject(new Error("Failed to connect WebSocket"));
1030
+ // // };
1031
+ // // this.ws.addEventListener("open", onOpen);
1032
+ // // this.ws.addEventListener("error", onError);
1033
+ // // } else {
1034
+ // // reject(new Error("Failed to create WebSocket"));
1035
+ // // }
1036
+ // // });
1037
+ // // }
1038
+
1039
+ // // async readFile(path: string): Promise<string> {
1040
+ // // return new Promise(async (resolve, reject) => {
1041
+ // // try {
1042
+ // // await this.ensureWebSocketConnected();
1043
+
1044
+ // // if (!this.ws || this.ws.readyState !== WebSocket.OPEN) {
1045
+ // // reject(new Error("WebSocket is not connected"));
1046
+ // // return;
1047
+ // // }
1048
+
1049
+ // // // Add callback
1050
+ // // if (!this.fileCallbacks.has(path)) {
1051
+ // // this.fileCallbacks.set(path, []);
1052
+ // // }
1053
+ // // const callbacks = this.fileCallbacks.get(path)!;
1054
+ // // callbacks.push(resolve);
1055
+
1056
+ // // // Send request
1057
+ // // this.ws.send(
1058
+ // // JSON.stringify({
1059
+ // // type: "readFile",
1060
+ // // path,
1061
+ // // })
1062
+ // // );
1063
+
1064
+ // // // Set timeout for error handling
1065
+ // // setTimeout(() => {
1066
+ // // const remainingCallbacks = this.fileCallbacks.get(path);
1067
+ // // if (remainingCallbacks && remainingCallbacks.length > 0) {
1068
+ // // remainingCallbacks.forEach((cb) => cb(""));
1069
+ // // this.fileCallbacks.delete(path);
1070
+ // // reject(new Error("Timeout reading file"));
1071
+ // // }
1072
+ // // }, 5000);
1073
+ // // } catch (error) {
1074
+ // // reject(error);
1075
+ // // }
1076
+ // // });
1077
+ // // }
1078
+
1079
+ // // async readDirectory(path: string): Promise<FileEntry[]> {
1080
+ // // return new Promise(async (resolve, reject) => {
1081
+ // // try {
1082
+ // // await this.ensureWebSocketConnected();
1083
+
1084
+ // // if (!this.ws || this.ws.readyState !== WebSocket.OPEN) {
1085
+ // // reject(new Error("WebSocket is not connected"));
1086
+ // // return;
1087
+ // // }
1088
+
1089
+ // // // Add callback
1090
+ // // if (!this.directoryCallbacks.has(path)) {
1091
+ // // this.directoryCallbacks.set(path, []);
1092
+ // // }
1093
+ // // const callbacks = this.directoryCallbacks.get(path)!;
1094
+ // // callbacks.push(resolve);
1095
+
1096
+ // // // Send request
1097
+ // // this.ws.send(
1098
+ // // JSON.stringify({
1099
+ // // type: "listDirectory",
1100
+ // // path,
1101
+ // // })
1102
+ // // );
1103
+
1104
+ // // // Set timeout for error handling
1105
+ // // setTimeout(() => {
1106
+ // // const remainingCallbacks = this.directoryCallbacks.get(path);
1107
+ // // if (remainingCallbacks && remainingCallbacks.length > 0) {
1108
+ // // remainingCallbacks.forEach((cb) => cb([]));
1109
+ // // this.directoryCallbacks.delete(path);
1110
+ // // reject(new Error("Timeout reading directory"));
1111
+ // // }
1112
+ // // }, 5000);
1113
+ // // } catch (error) {
1114
+ // // reject(error);
1115
+ // // }
1116
+ // // });
1117
+ // // }
1118
+
1119
+ // // private async readDirectoryViaWebSocket(path: string): Promise<FileEntry[]> {
1120
+ // // // This should not be used - WebSocket communication should be handled separately
1121
+ // // throw new Error("WebSocket directory listing not implemented");
1122
+ // // }
1123
+
1124
+ // // async exists(path: string): Promise<boolean> {
1125
+ // // try {
1126
+ // // await this.readFile(path);
1127
+ // // return true;
1128
+ // // } catch {
1129
+ // // return false;
1130
+ // // }
1131
+ // // }
1132
+
1133
+ // // async writeFile(path: string, content: string): Promise<void> {
1134
+ // // await this.ensureWebSocketConnected();
1135
+
1136
+ // // if (!this.ws || this.ws.readyState !== WebSocket.OPEN) {
1137
+ // // throw new Error("WebSocket is not connected");
1138
+ // // }
1139
+
1140
+ // // this.ws.send(
1141
+ // // JSON.stringify({
1142
+ // // type: "writeFile",
1143
+ // // path,
1144
+ // // content,
1145
+ // // })
1146
+ // // );
1147
+
1148
+ // // // For now, we'll assume it always succeeds
1149
+ // // // In a real implementation, we'd want to wait for a confirmation
1150
+ // // }
1151
+
1152
+ // // async createDirectory(path: string): Promise<void> {
1153
+ // // await this.ensureWebSocketConnected();
1154
+
1155
+ // // if (!this.ws || this.ws.readyState !== WebSocket.OPEN) {
1156
+ // // throw new Error("WebSocket is not connected");
1157
+ // // }
1158
+
1159
+ // // this.ws.send(
1160
+ // // JSON.stringify({
1161
+ // // type: "createDirectory",
1162
+ // // path,
1163
+ // // })
1164
+ // // );
1165
+
1166
+ // // // For now, we'll assume it always succeeds
1167
+ // // }
1168
+
1169
+ // // async deleteFile(path: string): Promise<void> {
1170
+ // // await this.ensureWebSocketConnected();
1171
+
1172
+ // // if (!this.ws || this.ws.readyState !== WebSocket.OPEN) {
1173
+ // // throw new Error("WebSocket is not connected");
1174
+ // // }
1175
+
1176
+ // // this.ws.send(
1177
+ // // JSON.stringify({
1178
+ // // type: "deleteFile",
1179
+ // // path,
1180
+ // // })
1181
+ // // );
1182
+
1183
+ // // // For now, we'll assume it always succeeds
1184
+ // // }
1185
+
1186
+ // // async getFileStatus(path: string): Promise<FileStatus> {
1187
+ // // await this.ensureWebSocketConnected();
1188
+ // // const response = await fetch(
1189
+ // // `/api/git/status?path=${encodeURIComponent(path)}`
1190
+ // // );
1191
+ // // if (!response.ok) return { status: "unchanged" };
1192
+ // // return await response.json();
1193
+ // // }
1194
+
1195
+ // // async getChanges(): Promise<FileChange[]> {
1196
+ // // try {
1197
+ // // await this.ensureWebSocketConnected();
1198
+ // // const response = await fetch("/api/git/changes");
1199
+ // // if (!response.ok) return [];
1200
+ // // const changes = await response.json();
1201
+ // // console.log("Raw changes from server:", JSON.stringify(changes, null, 2));
1202
+ // // return changes;
1203
+ // // } catch (error) {
1204
+ // // console.error("Error fetching changes:", error);
1205
+ // // return [];
1206
+ // // }
1207
+ // // }
1208
+
1209
+ // // async commitChanges(message: string, description?: string): Promise<void> {
1210
+ // // await this.ensureWebSocketConnected();
1211
+ // // const response = await fetch("/api/git/commit", {
1212
+ // // method: "POST",
1213
+ // // headers: { "Content-Type": "application/json" },
1214
+ // // body: JSON.stringify({ message, description }),
1215
+ // // });
1216
+ // // if (!response.ok) {
1217
+ // // const error = await response.text();
1218
+ // // throw new Error(`Failed to commit changes: ${error}`);
1219
+ // // }
1220
+
1221
+ // // // Request updated status after commit
1222
+ // // this.ws?.send(JSON.stringify({ type: "refresh-status" }));
1223
+ // // }
1224
+
1225
+ // // async pushChanges(): Promise<void> {
1226
+ // // await this.ensureWebSocketConnected();
1227
+ // // const response = await fetch("/api/git/push", {
1228
+ // // method: "POST",
1229
+ // // });
1230
+ // // if (!response.ok) {
1231
+ // // const error = await response.text();
1232
+ // // throw new Error(`Failed to push changes: ${error}`);
1233
+ // // }
1234
+
1235
+ // // this.ws?.send(JSON.stringify({ type: "refresh-status" }));
1236
+ // // }
1237
+
1238
+ // // async pullChanges(): Promise<void> {
1239
+ // // await this.ensureWebSocketConnected();
1240
+ // // const response = await fetch("/api/git/pull", {
1241
+ // // method: "POST",
1242
+ // // });
1243
+ // // if (!response.ok) {
1244
+ // // const error = await response.text();
1245
+ // // throw new Error(`Failed to pull changes: ${error}`);
1246
+ // // }
1247
+
1248
+ // // this.ws?.send(JSON.stringify({ type: "refresh-status" }));
1249
+ // // }
1250
+
1251
+ // // async getCurrentBranch(): Promise<string> {
1252
+ // // await this.ensureWebSocketConnected();
1253
+ // // const response = await fetch("/api/git/branch");
1254
+ // // if (!response.ok) return "main";
1255
+ // // return await response.text();
1256
+ // // }
1257
+
1258
+ // // async getRemoteStatus(): Promise<RemoteStatus> {
1259
+ // // await this.ensureWebSocketConnected();
1260
+ // // const response = await fetch("/api/git/remote-status");
1261
+ // // if (!response.ok) return { ahead: 0, behind: 0 };
1262
+ // // return await response.json();
1263
+ // // }
1264
+ // }
1265
+
1266
+ // // r to see if connections are being made
1267
+ // // this.httpServer.on("connection", (socket) => {
1268
+ // // // console.log(
1269
+ // // // "New TCP connection from:",
1270
+ // // // socket.remoteAddress,
1271
+ // // // socket.remotePort
1272
+ // // // );
1273
+
1274
+ // // // Track when the connection is closed
1275
+ // // // socket.on("close", () => {
1276
+ // // // console.log(
1277
+ // // // "TCP connection closed:",
1278
+ // // // socket.remoteAddress,
1279
+ // // // socket.remotePort
1280
+ // // // );
1281
+ // // // });
1282
+
1283
+ // // // Track errors on the socket
1284
+ // // // socket.on("error", (error) => {
1285
+ // // // console.log(
1286
+ // // // "TCP connection error from:",
1287
+ // // // socket.remoteAddress,
1288
+ // // // socket.remotePort,
1289
+ // // // error
1290
+ // // // );
1291
+ // // // });
1292
+ // // });
1293
+
1294
+ // // Add request listener to see HTTP requests
1295
+ // // this.httpServer.on("request", (req, res) => {
1296
+ // // // console.log(
1297
+ // // // "HTTP request received:",
1298
+ // // // req.method,
1299
+ // // // req.url,
1300
+ // // // "from",
1301
+ // // // req.socket.remoteAddress,
1302
+ // // // req.socket.remotePort
1303
+ // // // );
1304
+
1305
+ // // // // Track when the response is finished
1306
+ // // // res.on("finish", () => {
1307
+ // // // console.log("HTTP response sent:", res.statusCode, req.method, req.url);
1308
+ // // // });
1309
+ // // });
1310
+
1311
+ // // httpRequest(req: http.IncomingMessage, res: http.ServerResponse) {
1312
+ // // console.log(`httpRequest method called for ${req.method} ${req.url}`);
1313
+
1314
+ // // res.writeHead(200, {
1315
+ // // "Content-Type": "application/json",
1316
+ // // });
1317
+
1318
+ // // // Convert object to JSON string and send
1319
+ // // res.end(JSON.stringify({ wtf: "idk" }));
1320
+
1321
+ // // // // Ensure response is always completed
1322
+ // // // // const completeResponse = () => {
1323
+ // // // // if (!res.writableEnded && !res.headersSent) {
1324
+ // // // // res.writeHead(200, { "Content-Type": "text/plain" });
1325
+ // // // // res.end("Default response");
1326
+ // // // // console.log("Complete response sent");
1327
+ // // // // } else {
1328
+ // // // // console.log("Response already completed, not sending default");
1329
+ // // // // }
1330
+ // // // // };
1331
+
1332
+ // // // // Handle CORS headers for all responses
1333
+ // // // res.setHeader("Access-Control-Allow-Origin", "*");
1334
+ // // // res.setHeader(
1335
+ // // // "Access-Control-Allow-Methods",
1336
+ // // // "GET, POST, OPTIONS, PUT, DELETE"
1337
+ // // // );
1338
+ // // // res.setHeader("Access-Control-Allow-Headers", "Content-Type");
1339
+
1340
+ // // // // Handle preflight requests
1341
+ // // // if (req.method === "OPTIONS") {
1342
+ // // // res.writeHead(200);
1343
+ // // // res.end();
1344
+ // // // return;
1345
+ // // // }
1346
+
1347
+ // // // // Ensure response is always sent
1348
+ // // // const sendResponse = (
1349
+ // // // status: number,
1350
+ // // // contentType: string,
1351
+ // // // body: string | Buffer
1352
+ // // // ) => {
1353
+ // // // res.writeHead(200, {
1354
+ // // // "Content-Type": "application/json",
1355
+ // // // });
1356
+
1357
+ // // // // Convert object to JSON string and send
1358
+ // // // res.end(JSON.stringify({ wtf: "idk" }));
1359
+
1360
+ // // // // res.json("Hello from Express!");
1361
+ // // // // console.log('sendResponse called with:', { status, contentType, body: body.toString().substring(0, 50) });
1362
+ // // // // if (!res.headersSent) {
1363
+ // // // // try {
1364
+ // // // // console.log('About to write headers and end response');
1365
+ // // // // res.writeHead(status, { "Content-Type": contentType });
1366
+ // // // // res.end(body);
1367
+ // // // // console.log('Response sent via sendResponse');
1368
+ // // // // } catch (error) {
1369
+ // // // // console.error('Error sending response:', error);
1370
+ // // // // }
1371
+ // // // // } else {
1372
+ // // // // console.warn('Headers already sent, cannot send response');
1373
+ // // // // }
1374
+ // // // };
1375
+
1376
+ // // // try {
1377
+
1378
+ // // // console.log(`Processing ${req.method} request for: ${req.url}`);
1379
+ // // // console.log("Response writable state:", {
1380
+ // // // writable: res.writable,
1381
+ // // // destroyed: res.destroyed,
1382
+ // // // writableEnded: res.writableEnded,
1383
+ // // // writableFinished: res.writableFinished,
1384
+ // // // headersSent: res.headersSent,
1385
+ // // // });
1386
+
1387
+ // // // // Handle root path
1388
+ // // // if (req.url === "/") {
1389
+ // // // sendResponse(
1390
+ // // // 200,
1391
+ // // // "text/plain",
1392
+ // // // "HTTP Server is working! Try /test endpoint"
1393
+ // // // );
1394
+ // // // return;
1395
+ // // // }
1396
+
1397
+ // // // // Handle test endpoint
1398
+ // // // if (req.url === "/test") {
1399
+ // // // sendResponse(200, "text/plain", "Test endpoint is working!");
1400
+ // // // return;
1401
+ // // // }
1402
+
1403
+ // // // // Handle specific requests
1404
+ // // // if (req.url === "/testeranto/projects.html") {
1405
+ // // // console.log("Handling projects.html request - before sendResponse");
1406
+ // // // sendResponse(
1407
+ // // // 200,
1408
+ // // // "text/html",
1409
+ // // // "<html><body><h1>Projects</h1></body></html>"
1410
+ // // // );
1411
+ // // // console.log("Handling projects.html request - after sendResponse");
1412
+ // // // return;
1413
+ // // // }
1414
+
1415
+ // // // // Send a simple response for all other requests
1416
+ // // // console.log("Handling other request");
1417
+ // // // sendResponse(
1418
+ // // // 200,
1419
+ // // // "text/plain",
1420
+ // // // `Server is working! Request received for: ${req.url}`
1421
+ // // // );
1422
+ // // // return;
1423
+
1424
+ // // // // The rest of the original code is commented out for now
1425
+ // // // /*
1426
+ // // // const parsedUrl = url.parse(req.url || "/", true);
1427
+ // // // const pathname = parsedUrl.pathname || "/";
1428
+
1429
+ // // // // Handle API requests
1430
+ // // // if (pathname?.startsWith("/api/")) {
1431
+ // // // console.log("API request received:", pathname);
1432
+ // // // // If there's an API handler, use it
1433
+ // // // if ((this as any).apiRequest) {
1434
+ // // // (this as any).apiRequest(req, res);
1435
+ // // // } else {
1436
+ // // // sendResponse(404, "application/json", JSON.stringify({ error: "API endpoint not found" }));
1437
+ // // // }
1438
+ // // // return;
1439
+ // // // }
1440
+
1441
+ // // // // Handle root path with a simple response for testing
1442
+ // // // if (pathname === "/") {
1443
+ // // // sendResponse(200, "text/plain", "HTTP Server is working!");
1444
+ // // // return;
1445
+ // // // }
1446
+
1447
+ // // // // Handle static file serving
1448
+ // // // console.log("Handling static file serving for path:", pathname);
1449
+ // // // const processedPathname = pathname;
1450
+
1451
+ // // // // Remove leading slash to get file path
1452
+ // // // let filePath = processedPathname.substring(1);
1453
+ // // // console.log("Looking for file:", filePath);
1454
+
1455
+ // // // // Handle special cases
1456
+ // // // if (filePath.startsWith("reports/")) {
1457
+ // // // filePath = `testeranto/${filePath}`;
1458
+ // // // } else if (filePath.startsWith("metafiles/")) {
1459
+ // // // filePath = `testeranto/${filePath}`;
1460
+ // // // } else if (filePath === "projects.json") {
1461
+ // // // // Keep as is
1462
+ // // // } else {
1463
+ // // // // For frontend assets, try to find the file
1464
+ // // // const possiblePaths = [
1465
+ // // // `dist/${filePath}`,
1466
+ // // // `testeranto/dist/${filePath}`,
1467
+ // // // `../dist/${filePath}`,
1468
+ // // // `./${filePath}`,
1469
+ // // // ];
1470
+ // // // console.log("Checking possible paths:", possiblePaths);
1471
+
1472
+ // // // // Find the first existing file
1473
+ // // // let foundPath = null;
1474
+ // // // for (const possiblePath of possiblePaths) {
1475
+ // // // try {
1476
+ // // // if (fs.existsSync(possiblePath)) {
1477
+ // // // foundPath = possiblePath;
1478
+ // // // console.log("Found file at:", foundPath);
1479
+ // // // break;
1480
+ // // // }
1481
+ // // // } catch (error) {
1482
+ // // // // Continue to next path
1483
+ // // // }
1484
+ // // // }
1485
+
1486
+ // // // if (foundPath) {
1487
+ // // // filePath = foundPath;
1488
+ // // // } else {
1489
+ // // // console.log("File not found, serving index.html or fallback");
1490
+ // // // // Serve index.html for SPA routing
1491
+ // // // const indexPath = this.findIndexHtml();
1492
+ // // // if (indexPath) {
1493
+ // // // this.serveFileSync(indexPath, res, true);
1494
+ // // // } else {
1495
+ // // // sendResponse(200, "text/html", `
1496
+ // // // <html>
1497
+ // // // <body>
1498
+ // // // <h1>Testeranto is running</h1>
1499
+ // // // <p>Frontend files are not built yet. Run 'npm run build' to build the frontend.</p>
1500
+ // // // </body>
1501
+ // // // </html>
1502
+ // // // `);
1503
+ // // // }
1504
+ // // // return;
1505
+ // // // }
1506
+ // // // }
1507
+
1508
+ // // // // Check if file exists and serve it using synchronous check
1509
+ // // // try {
1510
+ // // // console.log("Final file path to serve:", filePath);
1511
+ // // // if (!fs.existsSync(filePath)) {
1512
+ // // // console.log("File does not exist:", filePath);
1513
+ // // // // For SPA routing, serve index.html
1514
+ // // // const indexPath = this.findIndexHtml();
1515
+ // // // if (indexPath) {
1516
+ // // // this.serveFileSync(indexPath, res, true);
1517
+ // // // } else {
1518
+ // // // sendResponse(404, "text/plain", "404 Not Found");
1519
+ // // // }
1520
+ // // // return;
1521
+ // // // }
1522
+
1523
+ // // // console.log("Serving file:", filePath);
1524
+ // // // this.serveFileSync(filePath, res, false);
1525
+ // // // } catch (error) {
1526
+ // // // console.error(`Error checking file existence for ${filePath}:`, error);
1527
+ // // // sendResponse(500, "text/plain", "500 Internal Server Error");
1528
+ // // // }
1529
+ // // // */
1530
+ // // // } catch (error) {
1531
+ // // // console.error("Unexpected error handling request:", error);
1532
+ // // // try {
1533
+ // // // if (!res.headersSent) {
1534
+ // // // sendResponse(500, "text/plain", "Internal Server Error");
1535
+ // // // } else {
1536
+ // // // console.log("Headers already sent, cannot send error response");
1537
+ // // // }
1538
+ // // // } catch (sendError) {
1539
+ // // // console.error("Failed to send error response:", sendError);
1540
+ // // // // Try to end the response directly
1541
+ // // // if (!res.writableEnded) {
1542
+ // // // res.destroy();
1543
+ // // // }
1544
+ // // // }
1545
+ // // // } finally {
1546
+ // // // // Only complete the response if nothing was sent
1547
+ // // // console.log("Finally block - response state:", {
1548
+ // // // headersSent: res.headersSent,
1549
+ // // // writableEnded: res.writableEnded,
1550
+ // // // writableFinished: res.writableFinished,
1551
+ // // // });
1552
+ // // // if (!res.headersSent && !res.writableEnded) {
1553
+ // // // console.log("No response sent, calling completeResponse");
1554
+ // // // completeResponse();
1555
+ // // // } else {
1556
+ // // // console.log("Response already handled, skipping completeResponse");
1557
+ // // // }
1558
+ // // // }
1559
+ // // }
1560
+
1561
+ // // findIndexHtml(): string | null {
1562
+ // // const possiblePaths = [
1563
+ // // "dist/index.html",
1564
+ // // "testeranto/dist/index.html",
1565
+ // // "../dist/index.html",
1566
+ // // "./index.html",
1567
+ // // ];
1568
+
1569
+ // // for (const path of possiblePaths) {
1570
+ // // try {
1571
+ // // if (fs.existsSync(path)) {
1572
+ // // return path;
1573
+ // // }
1574
+ // // } catch (error) {
1575
+ // // // Continue to next path
1576
+ // // }
1577
+ // // }
1578
+ // // return null;
1579
+ // // }
1580
+ // }
1581
+
1582
+ // // private serveFile(
1583
+ // // filePath: string,
1584
+ // // res: http.ServerResponse,
1585
+ // // isSpaFallback: boolean
1586
+ // // ) {
1587
+ // // // Use the synchronous version
1588
+ // // this.serveFileSync(filePath, res, isSpaFallback);
1589
+ // // }
1590
+
1591
+ // // private serveFileSync(
1592
+ // // filePath: string,
1593
+ // // res: http.ServerResponse,
1594
+ // // isSpaFallback: boolean
1595
+ // // ) {
1596
+ // // // Ensure response is always sent
1597
+ // // const sendResponse = (
1598
+ // // status: number,
1599
+ // // contentType: string,
1600
+ // // body: string | Buffer
1601
+ // // ) => {
1602
+ // // if (!res.headersSent) {
1603
+ // // res.writeHead(status, { "Content-Type": contentType });
1604
+ // // res.end(body);
1605
+ // // }
1606
+ // // };
1607
+
1608
+ // // // Check if the file exists using synchronous check
1609
+ // // try {
1610
+ // // if (!fs.existsSync(filePath) && !isSpaFallback) {
1611
+ // // // Try to serve index.html as fallback for SPA routing
1612
+ // // const indexPath = this.findIndexHtml();
1613
+ // // if (indexPath) {
1614
+ // // this.serveFileSync(indexPath, res, true);
1615
+ // // return;
1616
+ // // } else {
1617
+ // // sendResponse(404, "text/plain", "404 Not Found");
1618
+ // // return;
1619
+ // // }
1620
+ // // } else if (!fs.existsSync(filePath) && isSpaFallback) {
1621
+ // // sendResponse(404, "text/plain", "404 Not Found");
1622
+ // // return;
1623
+ // // }
1624
+
1625
+ // // // File exists, read and serve it
1626
+ // // try {
1627
+ // // const data = fs.readFileSync(filePath);
1628
+
1629
+ // // // For HTML files, inject the configuration
1630
+ // // if (filePath.endsWith(".html")) {
1631
+ // // let content = data.toString();
1632
+ // // // Inject the configuration script before the closing </body> tag
1633
+ // // if (content.includes("</body>")) {
1634
+ // // const configScript = `
1635
+ // // <script>
1636
+ // // window.testerantoConfig = ${JSON.stringify({
1637
+ // // githubOAuth: {
1638
+ // // clientId: process.env.GITHUB_CLIENT_ID || "",
1639
+ // // },
1640
+ // // serverOrigin:
1641
+ // // process.env.SERVER_ORIGIN || "http://localhost:3000",
1642
+ // // })};
1643
+ // // </script>
1644
+ // // `;
1645
+ // // content = content.replace("</body>", `${configScript}</body>`);
1646
+ // // }
1647
+ // // sendResponse(200, "text/html", content);
1648
+ // // } else {
1649
+ // // // Get MIME type for other files
1650
+ // // const mimeType = mime.lookup(filePath) || "application/octet-stream";
1651
+ // // sendResponse(200, mimeType, data);
1652
+ // // }
1653
+ // // } catch (error) {
1654
+ // // console.error(`Error reading file ${filePath}:`, error);
1655
+ // // sendResponse(500, "text/plain", "500 Internal Server Error");
1656
+ // // return;
1657
+ // // }
1658
+ // // } catch (error) {
1659
+ // // console.error(`Error checking file existence for ${filePath}:`, error);
1660
+ // // sendResponse(500, "text/plain", "500 Internal Server Error");
1661
+ // // return;
1662
+ // // }
1663
+ // // }
1664
+
1665
+
1666
+ // useEffect(() => {
1667
+ // if (!projectName || !testPath || !runtime) return;
1668
+ // setTestName(testPath);
1669
+
1670
+ // const fetchData = async () => {
1671
+ // try {
1672
+ // const [testResponse, metafileRes] = await Promise.all([
1673
+ // fetchTestData(projectName, testPath, runtime),
1674
+ // fetch(`metafiles/${runtime}/${projectName}.json`),
1675
+ // ]);
1676
+
1677
+ // fetchDataUtil(
1678
+ // testResponse,
1679
+ // metafileRes,
1680
+ // testPath,
1681
+ // setLogs,
1682
+ // projectName,
1683
+ // setSummary,
1684
+ // setErrorCounts,
1685
+ // setTestsExist,
1686
+ // runtime
1687
+ // );
1688
+ // } catch (err) {
1689
+ // setError(err instanceof Error ? err.message : "Unknown error");
1690
+ // setTestsExist(false);
1691
+ // } finally {
1692
+ // setLoading(false);
1693
+ // }
1694
+ // };
1695
+
1696
+ // fetchData();
1697
+ // }, []);