testeranto 0.203.0 → 0.205.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.
- package/.vscode/settings.json +1 -0
- package/Dockerfile.golang +14 -0
- package/Dockerfile.mothership +11 -0
- package/Dockerfile.node +9 -0
- package/Dockerfile.python +19 -0
- package/Dockerfile.web +9 -0
- package/README.md +3 -1
- package/bundle.js +2 -11
- package/dist/cjs-shim.js +14 -0
- package/dist/common/design-editor/DesignEditor.js +77 -0
- package/dist/common/design-editor/index.js +18 -0
- package/dist/common/design-editor/server.js +98 -0
- package/dist/common/design-editor/types.js +2 -0
- package/dist/common/example/Calculator.js +105 -0
- package/dist/common/example/Calculator.test.adapter.js +39 -0
- package/dist/common/example/Calculator.test.implementation.js +50 -0
- package/dist/common/example/Calculator.test.js +11 -0
- package/dist/common/example/Calculator.test.specification.js +92 -0
- package/dist/common/example/Calculator.test.types.js +3 -0
- package/dist/common/package.json +3 -0
- package/dist/common/scripts/build-example.js +105 -0
- package/dist/common/src/CoreTypes.js +2 -0
- package/dist/common/src/Helpo.js +55 -0
- package/dist/common/src/Init.js +56 -0
- package/dist/common/src/Node.js +39 -0
- package/dist/common/src/NodeSidecar.js +15 -0
- package/dist/common/src/PM/__tests__/nodeSidecar.testeranto.js +108 -0
- package/dist/common/src/PM/__tests__/pureSidecar.testeranto.js +93 -0
- package/dist/common/src/PM/__tests__/webSidecar.testeranto.js +93 -0
- package/dist/common/src/PM/golingvuBuild.js +46 -0
- package/dist/common/src/PM/index.js +6 -0
- package/dist/common/src/PM/node.js +179 -0
- package/dist/common/src/PM/nodeSidecar.js +65 -0
- package/dist/common/src/PM/pitonoBuild.js +46 -0
- package/dist/common/src/PM/pitonoRunner.js +54 -0
- package/dist/common/src/PM/pure.js +103 -0
- package/dist/common/src/PM/pureSidecar.js +48 -0
- package/dist/common/src/PM/sidecar.js +11 -0
- package/dist/common/src/PM/types.js +2 -0
- package/dist/common/src/PM/utils.js +217 -0
- package/dist/common/src/PM/web.js +102 -0
- package/dist/common/src/PM/webSidecar.js +47 -0
- package/dist/common/src/Pure.js +38 -0
- package/dist/common/src/Pure.test.js +175 -0
- package/dist/common/src/PureSidecar.js +13 -0
- package/dist/common/src/Types.js +2 -0
- package/dist/common/src/Web.js +27 -0
- package/dist/common/src/WebSidecar.js +13 -0
- package/dist/common/src/app/FileService.js +25 -0
- package/dist/common/src/app/api.js +73 -0
- package/dist/common/src/app/backend/PM_0.js +317 -0
- package/dist/common/src/app/backend/PM_1_WithProcesses.js +922 -0
- package/dist/common/src/app/backend/PM_2_WithTCP.js +244 -0
- package/dist/common/src/app/backend/PM_WithBuild.js +120 -0
- package/dist/common/src/app/backend/PM_WithEslintAndTsc.js +133 -0
- package/dist/common/src/app/backend/PM_WithGit.js +586 -0
- package/dist/common/src/app/backend/PM_WithHelpo.js +257 -0
- package/dist/common/src/app/backend/PM_WithProcesses.js +1083 -0
- package/dist/common/src/app/backend/PM_WithTCP.js +388 -0
- package/dist/common/src/app/backend/getAllFilesRecursively.js +22 -0
- package/dist/common/src/app/backend/main.js +804 -0
- package/dist/common/src/app/backend/makePrompt.js +73 -0
- package/dist/common/src/app/backend/utils.js +144 -0
- package/dist/common/src/app/frontend/App.js +206 -0
- package/dist/common/src/app/frontend/DevelopmentFileService.js +98 -0
- package/dist/common/src/app/frontend/GitFileService.js +262 -0
- package/dist/common/src/app/frontend/GitHubAuthService.js +184 -0
- package/dist/common/src/app/frontend/api.js +93 -0
- package/dist/common/src/app/frontend/components/DesignEditorPage.js +208 -0
- package/dist/common/src/app/frontend/components/SunriseAnimation.js +291 -0
- package/dist/common/src/app/frontend/components/SunriseAnimation.test/implementation.js +1 -0
- package/dist/common/src/app/frontend/components/SunriseAnimation.test/index.js +1 -0
- package/dist/common/src/app/frontend/components/SunriseAnimation.test/interface.js +68 -0
- package/dist/common/src/app/frontend/components/SunriseAnimation.test/specification.js +1 -0
- package/dist/common/src/app/frontend/components/SunriseAnimation.test/types.js +2 -0
- package/dist/common/src/app/frontend/components/TestStatusBadge.js +35 -0
- package/dist/common/src/app/frontend/components/pure/AppFrame.js +177 -0
- package/dist/common/src/app/frontend/components/pure/AppFrame.test/implementation.js +63 -0
- package/dist/common/src/app/frontend/components/pure/AppFrame.test/index.js +14 -0
- package/dist/common/src/app/frontend/components/pure/AppFrame.test/specification.js +25 -0
- package/dist/common/src/app/frontend/components/pure/AppFrame.test/types.js +3 -0
- package/dist/common/src/app/frontend/components/pure/ArtifactTree.js +80 -0
- package/dist/common/src/app/frontend/components/pure/BuildLogViewer.js +106 -0
- package/dist/common/src/app/frontend/components/pure/DebugEnv.js +30 -0
- package/dist/common/src/app/frontend/components/pure/FeaturesReporterView.js +23 -0
- package/dist/common/src/app/frontend/components/pure/FeaturesReporterView.test/implementation.js +84 -0
- package/dist/common/src/app/frontend/components/pure/FeaturesReporterView.test/index.js +14 -0
- package/dist/common/src/app/frontend/components/pure/FeaturesReporterView.test/specification.js +27 -0
- package/dist/common/src/app/frontend/components/pure/FeaturesReporterView.test/types.js +2 -0
- package/dist/common/src/app/frontend/components/pure/FileTree.js +34 -0
- package/dist/common/src/app/frontend/components/pure/FileTreeItem.js +29 -0
- package/dist/common/src/app/frontend/components/pure/GitHubLoginButton.js +18 -0
- package/dist/common/src/app/frontend/components/pure/GitIntegrationView.js +383 -0
- package/dist/common/src/app/frontend/components/pure/HelpoChatDrawer.js +179 -0
- package/dist/common/src/app/frontend/components/pure/MagicRobotModal.js +73 -0
- package/dist/common/src/app/frontend/components/pure/ModalContent.js +86 -0
- package/dist/common/src/app/frontend/components/pure/ModalContent.test/implementation.js +35 -0
- package/dist/common/src/app/frontend/components/pure/ModalContent.test/index.js +61 -0
- package/dist/common/src/app/frontend/components/pure/ModalContent.test/specification.js +19 -0
- package/dist/common/src/app/frontend/components/pure/ModalContent.test/types.js +4 -0
- package/dist/common/src/app/frontend/components/pure/NavBar.js +45 -0
- package/dist/common/src/app/frontend/components/pure/ProcessDetails.js +49 -0
- package/dist/common/src/app/frontend/components/pure/ProcessInput.js +62 -0
- package/dist/common/src/app/frontend/components/pure/ProcessList.js +52 -0
- package/dist/common/src/app/frontend/components/pure/ProcessLogs.js +67 -0
- package/dist/common/src/app/frontend/components/pure/ProcessManager.js +113 -0
- package/dist/common/src/app/frontend/components/pure/ProcessManagerView.js +82 -0
- package/dist/common/src/app/frontend/components/pure/ProcessManagerViewTypes.js +2 -0
- package/dist/common/src/app/frontend/components/pure/ProcessSidebar.js +56 -0
- package/dist/common/src/app/frontend/components/pure/ProcessTerminal.js +62 -0
- package/dist/common/src/app/frontend/components/pure/ProjectPageView.js +69 -0
- package/dist/common/src/app/frontend/components/pure/ProjectPageView.test/implementation.js +185 -0
- package/dist/common/src/app/frontend/components/pure/ProjectPageView.test/index.js +14 -0
- package/dist/common/src/app/frontend/components/pure/ProjectPageView.test/specification.js +32 -0
- package/dist/common/src/app/frontend/components/pure/ProjectPageView.test/types.js +4 -0
- package/dist/common/src/app/frontend/components/pure/ProjectsPageView.js +72 -0
- package/dist/common/src/app/frontend/components/pure/Settings.js +122 -0
- package/dist/common/src/app/frontend/components/pure/Settings.test.js +30 -0
- package/dist/common/src/app/frontend/components/pure/SettingsButton.js +13 -0
- package/dist/common/src/app/frontend/components/pure/SignIn.js +22 -0
- package/dist/common/src/app/frontend/components/pure/SingleProcessView.js +126 -0
- package/dist/common/src/app/frontend/components/pure/TerminalInput.js +76 -0
- package/dist/common/src/app/frontend/components/pure/TerminalLogs.js +80 -0
- package/dist/common/src/app/frontend/components/pure/TestTable.js +33 -0
- package/dist/common/src/app/frontend/components/pure/ThemeCard.js +15 -0
- package/dist/common/src/app/frontend/components/pure/ToastNotification.js +14 -0
- package/dist/common/src/app/frontend/components/pure/UserProfile.js +27 -0
- package/dist/common/src/app/frontend/components/stateful/AuthCallbackPage.js +51 -0
- package/dist/common/src/app/frontend/components/stateful/DratoPage.js +319 -0
- package/dist/common/src/app/frontend/components/stateful/FeaturesReporter.js +22 -0
- package/dist/common/src/app/frontend/components/stateful/FileTree.js +59 -0
- package/dist/common/src/app/frontend/components/stateful/GenericXMLEditor/AttributeEditor.js +51 -0
- package/dist/common/src/app/frontend/components/stateful/GenericXMLEditor/Drawer.js +152 -0
- package/dist/common/src/app/frontend/components/stateful/GenericXMLEditor/GenericPreview.js +156 -0
- package/dist/common/src/app/frontend/components/stateful/GenericXMLEditor/GenericTextEditor.js +169 -0
- package/dist/common/src/app/frontend/components/stateful/GenericXMLEditor/GenericTree.js +30 -0
- package/dist/common/src/app/frontend/components/stateful/GenericXMLEditorPage.js +306 -0
- package/dist/common/src/app/frontend/components/stateful/GitIntegrationPage.js +252 -0
- package/dist/common/src/app/frontend/components/stateful/GrafeoPage.js +437 -0
- package/dist/common/src/app/frontend/components/stateful/ProcessManagerPage.js +113 -0
- package/dist/common/src/app/frontend/components/stateful/ProjectPage.js +108 -0
- package/dist/common/src/app/frontend/components/stateful/ProjectsPage.js +136 -0
- package/dist/common/src/app/frontend/components/stateful/SVGEditor/CircleForm.js +24 -0
- package/dist/common/src/app/frontend/components/stateful/SVGEditor/GroupForm.js +22 -0
- package/dist/common/src/app/frontend/components/stateful/SVGEditor/RectForm.js +25 -0
- package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGAttributeField.js +15 -0
- package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGAttributesEditor.js +87 -0
- package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGEditorControls.js +23 -0
- package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGElementForm.js +23 -0
- package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGPreview.js +178 -0
- package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGTextEditor.js +155 -0
- package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGTree.js +105 -0
- package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGTypes.js +2 -0
- package/dist/common/src/app/frontend/components/stateful/SVGEditorPage.js +437 -0
- package/dist/common/src/app/frontend/components/stateful/SettingsPage.js +72 -0
- package/dist/common/src/app/frontend/components/stateful/SingleProcessPage.js +134 -0
- package/dist/common/src/app/frontend/components/stateful/SkriboPage.js +517 -0
- package/dist/common/src/app/frontend/components/stateful/TextEditorPage.js +154 -0
- package/dist/common/src/app/frontend/fetchDataUtil.js +187 -0
- package/dist/common/src/app/frontend/flua/FluaPage.js +378 -0
- package/dist/common/src/app/frontend/testPage/ITestPageViewProps.js +2 -0
- package/dist/common/src/app/frontend/testPage/ProjectsTree.js +179 -0
- package/dist/common/src/app/frontend/testPage/TestPage.js +85 -0
- package/dist/common/src/app/frontend/testPage/TestPageLeftContent.js +48 -0
- package/dist/common/src/app/frontend/testPage/TestPageMainContent.js +82 -0
- package/dist/common/src/app/frontend/testPage/TestPageNavbar.js +33 -0
- package/dist/common/src/app/frontend/testPage/TestPageView.js +352 -0
- package/dist/common/src/app/frontend/testPage/TestPageView.test/implementation.js +158 -0
- package/dist/common/src/app/frontend/testPage/TestPageView.test/index.js +15 -0
- package/dist/common/src/app/frontend/testPage/TestPageView.test/specification.js +27 -0
- package/dist/common/src/app/frontend/testPage/TestPageView.test/types.js +4 -0
- package/dist/common/src/app/frontend/testPage/TestPageView_utils.js +128 -0
- package/dist/common/src/app/frontend/useFileSystemSync.js +108 -0
- package/dist/common/src/app/frontend/useFs.js +15 -0
- package/dist/common/src/app/frontend/useGitMode.js +20 -0
- package/dist/common/src/app/frontend/useTerminalWebSocket.js +44 -0
- package/dist/common/src/app/frontend/useWebSocket.js +16 -0
- package/dist/common/src/app/types.js +2 -0
- package/dist/common/src/builders/golang.js +30 -0
- package/dist/common/src/builders/node.js +35 -0
- package/dist/common/src/builders/python.js +28 -0
- package/dist/common/src/builders/web.js +35 -0
- package/dist/common/src/defaultConfig.js +19 -0
- package/dist/common/src/esbuildConfigs/consoleDetectorPlugin.js +38 -0
- package/dist/common/src/esbuildConfigs/eslint-formatter-testeranto.js +21 -0
- package/dist/common/src/esbuildConfigs/featuresPlugin.js +39 -0
- package/dist/common/src/esbuildConfigs/index.js +21 -0
- package/dist/common/src/esbuildConfigs/inputFilesPlugin.js +30 -0
- package/dist/common/src/esbuildConfigs/nativeImportDetectorPlugin.js +24 -0
- package/dist/common/src/esbuildConfigs/node.js +26 -0
- package/dist/common/src/esbuildConfigs/pure.js +42 -0
- package/dist/common/src/esbuildConfigs/rebuildPlugin.js +19 -0
- package/dist/common/src/esbuildConfigs/web.js +48 -0
- package/dist/common/src/init-docs.js +9 -0
- package/dist/common/src/lib/BaseGiven.js +176 -0
- package/dist/common/src/lib/BaseSuite.js +138 -0
- package/dist/common/src/lib/BaseSuite.test/mock.js +68 -0
- package/dist/common/src/lib/BaseSuite.test/node.test.js +10 -0
- package/dist/common/src/lib/BaseSuite.test/pure.test.js +10 -0
- package/dist/common/src/lib/BaseSuite.test/test.js +184 -0
- package/dist/common/src/lib/BaseSuite.test/web.test.js +10 -0
- package/dist/common/src/lib/BaseThen.js +63 -0
- package/dist/common/src/lib/BaseWhen.js +47 -0
- package/dist/common/src/lib/Sidecar.js +7 -0
- package/dist/common/src/lib/Tiposkripto.js +188 -0
- package/dist/common/src/lib/Tiposkripto.test/MockTiposkripto.js +170 -0
- package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.adapter.js +29 -0
- package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.implementation.js +215 -0
- package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.js +11 -0
- package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.specification.js +53 -0
- package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.types.js +2 -0
- package/dist/common/src/lib/abstractBase.test/MockGiven.js +24 -0
- package/dist/common/src/lib/abstractBase.test/MockThen.js +16 -0
- package/dist/common/src/lib/abstractBase.test/MockWhen.js +20 -0
- package/dist/common/src/lib/abstractBase.test/adapter.js +24 -0
- package/dist/common/src/lib/abstractBase.test/implementation.js +38 -0
- package/dist/common/src/lib/abstractBase.test/index.js +18 -0
- package/dist/common/src/lib/abstractBase.test/specification.js +19 -0
- package/dist/common/src/lib/abstractBase.test/types.js +2 -0
- package/dist/common/src/lib/index.js +31 -0
- package/dist/common/src/lib/pmProxy.js +260 -0
- package/dist/common/src/lib/pmProxy.test/adapter.js +54 -0
- package/dist/common/src/lib/pmProxy.test/implementation.js +130 -0
- package/dist/common/src/lib/pmProxy.test/index.js +13 -0
- package/dist/common/src/lib/pmProxy.test/mockPM.js +35 -0
- package/dist/common/src/lib/pmProxy.test/mockPMBase.js +131 -0
- package/dist/common/src/lib/pmProxy.test/specification.js +178 -0
- package/dist/common/src/lib/pmProxy.test/types.js +2 -0
- package/dist/common/src/lib/types.js +3 -0
- package/dist/common/src/mothership/index.js +183 -0
- package/dist/common/src/mothership/test.js +85 -0
- package/dist/common/src/run.js +49 -0
- package/dist/common/src/testeranto.js +223 -0
- package/dist/common/src/utils/buildTemplates.js +37 -0
- package/dist/common/src/utils/generateGolingvuMetafile.js +157 -0
- package/dist/common/src/utils/golingvuMetafile/fileDiscovery.js +142 -0
- package/dist/common/src/utils/golingvuMetafile/goList.js +103 -0
- package/dist/common/src/utils/golingvuMetafile/helpers.js +68 -0
- package/dist/common/src/utils/golingvuMetafile/importParser.js +89 -0
- package/dist/common/src/utils/golingvuMetafile/types.js +3 -0
- package/dist/common/src/utils/golingvuMetafile.js +9 -0
- package/dist/common/src/utils/golingvuWatcher.js +233 -0
- package/dist/common/src/utils/logFiles.js +60 -0
- package/dist/common/src/utils/pitonoMetafile.js +247 -0
- package/dist/common/src/utils/pitonoWatcher.js +130 -0
- package/dist/common/src/utils/queue.js +36 -0
- package/dist/common/src/utils/writeGolingvuMetafile.js +324 -0
- package/dist/common/src/web.html.js +18 -0
- package/dist/common/testeranto.config.js +91 -0
- package/dist/common/tsconfig.common.tsbuildinfo +1 -0
- package/dist/module/design-editor/DesignEditor.js +40 -0
- package/dist/module/design-editor/index.js +2 -0
- package/dist/module/design-editor/server.js +92 -0
- package/dist/module/design-editor/types.js +1 -0
- package/dist/module/example/Calculator.js +101 -0
- package/dist/module/example/Calculator.test.adapter.js +36 -0
- package/dist/module/example/Calculator.test.implementation.js +47 -0
- package/dist/module/example/Calculator.test.js +6 -0
- package/dist/module/example/Calculator.test.specification.js +88 -0
- package/dist/module/example/Calculator.test.types.js +2 -0
- package/dist/module/package.json +3 -0
- package/dist/module/scripts/build-example.js +100 -0
- package/dist/module/src/CoreTypes.js +1 -0
- package/dist/module/src/Helpo.js +48 -0
- package/dist/module/src/Init.js +51 -0
- package/dist/module/src/Node.js +32 -0
- package/dist/module/src/NodeSidecar.js +11 -0
- package/dist/module/src/PM/__tests__/nodeSidecar.testeranto.js +103 -0
- package/dist/module/src/PM/__tests__/pureSidecar.testeranto.js +88 -0
- package/dist/module/src/PM/__tests__/webSidecar.testeranto.js +88 -0
- package/dist/module/src/PM/golingvuBuild.js +42 -0
- package/dist/module/src/PM/index.js +2 -0
- package/dist/module/src/PM/node.js +172 -0
- package/dist/module/src/PM/nodeSidecar.js +58 -0
- package/dist/module/src/PM/pitonoBuild.js +42 -0
- package/dist/module/src/PM/pitonoRunner.js +47 -0
- package/dist/module/src/PM/pure.js +99 -0
- package/dist/module/src/PM/pureSidecar.js +41 -0
- package/dist/module/src/PM/sidecar.js +7 -0
- package/dist/module/src/PM/types.js +1 -0
- package/dist/module/src/PM/utils.js +203 -0
- package/dist/module/src/PM/web.js +98 -0
- package/dist/module/src/PM/webSidecar.js +40 -0
- package/dist/module/src/Pure.js +31 -0
- package/dist/module/src/Pure.test.js +170 -0
- package/dist/module/src/PureSidecar.js +9 -0
- package/dist/module/src/Types.js +1 -0
- package/dist/module/src/Web.js +20 -0
- package/dist/module/src/WebSidecar.js +9 -0
- package/dist/module/src/app/FileService.js +21 -0
- package/dist/module/src/app/api.js +70 -0
- package/dist/module/src/app/backend/PM_0.js +310 -0
- package/dist/module/src/app/backend/PM_1_WithProcesses.js +882 -0
- package/dist/module/src/app/backend/PM_2_WithTCP.js +237 -0
- package/dist/module/src/app/backend/PM_WithBuild.js +113 -0
- package/dist/module/src/app/backend/PM_WithEslintAndTsc.js +126 -0
- package/dist/module/src/app/backend/PM_WithGit.js +546 -0
- package/dist/module/src/app/backend/PM_WithHelpo.js +250 -0
- package/dist/module/src/app/backend/PM_WithProcesses.js +1083 -0
- package/dist/module/src/app/backend/PM_WithTCP.js +381 -0
- package/dist/module/src/app/backend/getAllFilesRecursively.js +16 -0
- package/dist/module/src/app/backend/main.js +764 -0
- package/dist/module/src/app/backend/makePrompt.js +66 -0
- package/dist/module/src/app/backend/utils.js +131 -0
- package/dist/module/src/app/frontend/App.js +164 -0
- package/dist/module/src/app/frontend/DevelopmentFileService.js +91 -0
- package/dist/module/src/app/frontend/GitFileService.js +258 -0
- package/dist/module/src/app/frontend/GitHubAuthService.js +180 -0
- package/dist/module/src/app/frontend/api.js +87 -0
- package/dist/module/src/app/frontend/components/DesignEditorPage.js +171 -0
- package/dist/module/src/app/frontend/components/SunriseAnimation.js +256 -0
- package/dist/module/src/app/frontend/components/SunriseAnimation.test/implementation.js +1 -0
- package/dist/module/src/app/frontend/components/SunriseAnimation.test/index.js +1 -0
- package/dist/module/src/app/frontend/components/SunriseAnimation.test/interface.js +32 -0
- package/dist/module/src/app/frontend/components/SunriseAnimation.test/specification.js +1 -0
- package/dist/module/src/app/frontend/components/SunriseAnimation.test/types.js +1 -0
- package/dist/module/src/app/frontend/components/TestStatusBadge.js +28 -0
- package/dist/module/src/app/frontend/components/pure/AppFrame.js +140 -0
- package/dist/module/src/app/frontend/components/pure/AppFrame.test/implementation.js +57 -0
- package/dist/module/src/app/frontend/components/pure/AppFrame.test/index.js +9 -0
- package/dist/module/src/app/frontend/components/pure/AppFrame.test/specification.js +21 -0
- package/dist/module/src/app/frontend/components/pure/AppFrame.test/types.js +2 -0
- package/dist/module/src/app/frontend/components/pure/ArtifactTree.js +80 -0
- package/dist/module/src/app/frontend/components/pure/BuildLogViewer.js +99 -0
- package/dist/module/src/app/frontend/components/pure/DebugEnv.js +23 -0
- package/dist/module/src/app/frontend/components/pure/FeaturesReporterView.js +16 -0
- package/dist/module/src/app/frontend/components/pure/FeaturesReporterView.test/implementation.js +81 -0
- package/dist/module/src/app/frontend/components/pure/FeaturesReporterView.test/index.js +9 -0
- package/dist/module/src/app/frontend/components/pure/FeaturesReporterView.test/specification.js +23 -0
- package/dist/module/src/app/frontend/components/pure/FeaturesReporterView.test/types.js +1 -0
- package/dist/module/src/app/frontend/components/pure/FileTree.js +27 -0
- package/dist/module/src/app/frontend/components/pure/FileTreeItem.js +22 -0
- package/dist/module/src/app/frontend/components/pure/GitHubLoginButton.js +11 -0
- package/dist/module/src/app/frontend/components/pure/GitIntegrationView.js +346 -0
- package/dist/module/src/app/frontend/components/pure/HelpoChatDrawer.js +142 -0
- package/dist/module/src/app/frontend/components/pure/MagicRobotModal.js +66 -0
- package/dist/module/src/app/frontend/components/pure/ModalContent.js +79 -0
- package/dist/module/src/app/frontend/components/pure/ModalContent.test/implementation.js +32 -0
- package/dist/module/src/app/frontend/components/pure/ModalContent.test/index.js +56 -0
- package/dist/module/src/app/frontend/components/pure/ModalContent.test/specification.js +15 -0
- package/dist/module/src/app/frontend/components/pure/ModalContent.test/types.js +3 -0
- package/dist/module/src/app/frontend/components/pure/NavBar.js +38 -0
- package/dist/module/src/app/frontend/components/pure/ProcessDetails.js +42 -0
- package/dist/module/src/app/frontend/components/pure/ProcessInput.js +25 -0
- package/dist/module/src/app/frontend/components/pure/ProcessList.js +45 -0
- package/dist/module/src/app/frontend/components/pure/ProcessLogs.js +30 -0
- package/dist/module/src/app/frontend/components/pure/ProcessManager.js +76 -0
- package/dist/module/src/app/frontend/components/pure/ProcessManagerView.js +45 -0
- package/dist/module/src/app/frontend/components/pure/ProcessManagerViewTypes.js +1 -0
- package/dist/module/src/app/frontend/components/pure/ProcessSidebar.js +49 -0
- package/dist/module/src/app/frontend/components/pure/ProcessTerminal.js +25 -0
- package/dist/module/src/app/frontend/components/pure/ProjectPageView.js +62 -0
- package/dist/module/src/app/frontend/components/pure/ProjectPageView.test/implementation.js +182 -0
- package/dist/module/src/app/frontend/components/pure/ProjectPageView.test/index.js +9 -0
- package/dist/module/src/app/frontend/components/pure/ProjectPageView.test/specification.js +28 -0
- package/dist/module/src/app/frontend/components/pure/ProjectPageView.test/types.js +3 -0
- package/dist/module/src/app/frontend/components/pure/ProjectsPageView.js +65 -0
- package/dist/module/src/app/frontend/components/pure/Settings.js +85 -0
- package/dist/module/src/app/frontend/components/pure/Settings.test.js +30 -0
- package/dist/module/src/app/frontend/components/pure/SettingsButton.js +6 -0
- package/dist/module/src/app/frontend/components/pure/SignIn.js +15 -0
- package/dist/module/src/app/frontend/components/pure/SingleProcessView.js +126 -0
- package/dist/module/src/app/frontend/components/pure/TerminalInput.js +39 -0
- package/dist/module/src/app/frontend/components/pure/TerminalLogs.js +43 -0
- package/dist/module/src/app/frontend/components/pure/TestTable.js +26 -0
- package/dist/module/src/app/frontend/components/pure/ThemeCard.js +8 -0
- package/dist/module/src/app/frontend/components/pure/ToastNotification.js +7 -0
- package/dist/module/src/app/frontend/components/pure/UserProfile.js +20 -0
- package/dist/module/src/app/frontend/components/stateful/AuthCallbackPage.js +14 -0
- package/dist/module/src/app/frontend/components/stateful/DratoPage.js +282 -0
- package/dist/module/src/app/frontend/components/stateful/FeaturesReporter.js +22 -0
- package/dist/module/src/app/frontend/components/stateful/FileTree.js +59 -0
- package/dist/module/src/app/frontend/components/stateful/GenericXMLEditor/AttributeEditor.js +44 -0
- package/dist/module/src/app/frontend/components/stateful/GenericXMLEditor/Drawer.js +115 -0
- package/dist/module/src/app/frontend/components/stateful/GenericXMLEditor/GenericPreview.js +119 -0
- package/dist/module/src/app/frontend/components/stateful/GenericXMLEditor/GenericTextEditor.js +132 -0
- package/dist/module/src/app/frontend/components/stateful/GenericXMLEditor/GenericTree.js +23 -0
- package/dist/module/src/app/frontend/components/stateful/GenericXMLEditorPage.js +269 -0
- package/dist/module/src/app/frontend/components/stateful/GitIntegrationPage.js +215 -0
- package/dist/module/src/app/frontend/components/stateful/GrafeoPage.js +400 -0
- package/dist/module/src/app/frontend/components/stateful/ProcessManagerPage.js +76 -0
- package/dist/module/src/app/frontend/components/stateful/ProjectPage.js +71 -0
- package/dist/module/src/app/frontend/components/stateful/ProjectsPage.js +99 -0
- package/dist/module/src/app/frontend/components/stateful/SVGEditor/CircleForm.js +17 -0
- package/dist/module/src/app/frontend/components/stateful/SVGEditor/GroupForm.js +15 -0
- package/dist/module/src/app/frontend/components/stateful/SVGEditor/RectForm.js +18 -0
- package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGAttributeField.js +8 -0
- package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGAttributesEditor.js +50 -0
- package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGEditorControls.js +16 -0
- package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGElementForm.js +16 -0
- package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGPreview.js +141 -0
- package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGTextEditor.js +118 -0
- package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGTree.js +68 -0
- package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGTypes.js +1 -0
- package/dist/module/src/app/frontend/components/stateful/SVGEditorPage.js +400 -0
- package/dist/module/src/app/frontend/components/stateful/SettingsPage.js +35 -0
- package/dist/module/src/app/frontend/components/stateful/SingleProcessPage.js +134 -0
- package/dist/module/src/app/frontend/components/stateful/SkriboPage.js +510 -0
- package/dist/module/src/app/frontend/components/stateful/TextEditorPage.js +117 -0
- package/dist/module/src/app/frontend/fetchDataUtil.js +187 -0
- package/dist/module/src/app/frontend/flua/FluaPage.js +341 -0
- package/dist/module/src/app/frontend/testPage/ITestPageViewProps.js +1 -0
- package/dist/module/src/app/frontend/testPage/ProjectsTree.js +142 -0
- package/dist/module/src/app/frontend/testPage/TestPage.js +48 -0
- package/dist/module/src/app/frontend/testPage/TestPageLeftContent.js +11 -0
- package/dist/module/src/app/frontend/testPage/TestPageMainContent.js +75 -0
- package/dist/module/src/app/frontend/testPage/TestPageNavbar.js +26 -0
- package/dist/module/src/app/frontend/testPage/TestPageView.js +315 -0
- package/dist/module/src/app/frontend/testPage/TestPageView.test/implementation.js +122 -0
- package/dist/module/src/app/frontend/testPage/TestPageView.test/index.js +10 -0
- package/dist/module/src/app/frontend/testPage/TestPageView.test/specification.js +23 -0
- package/dist/module/src/app/frontend/testPage/TestPageView.test/types.js +3 -0
- package/dist/module/src/app/frontend/testPage/TestPageView_utils.js +120 -0
- package/dist/module/src/app/frontend/useFileSystemSync.js +108 -0
- package/dist/module/src/app/frontend/useFs.js +11 -0
- package/dist/module/src/app/frontend/useGitMode.js +16 -0
- package/dist/module/src/app/frontend/useTerminalWebSocket.js +40 -0
- package/dist/module/src/app/frontend/useWebSocket.js +12 -0
- package/dist/module/src/app/types.js +1 -0
- package/dist/module/src/builders/golang.js +28 -0
- package/dist/module/src/builders/node.js +33 -0
- package/dist/module/src/builders/python.js +26 -0
- package/dist/module/src/builders/web.js +33 -0
- package/dist/module/src/defaultConfig.js +17 -0
- package/dist/module/src/esbuildConfigs/consoleDetectorPlugin.js +32 -0
- package/dist/module/src/esbuildConfigs/eslint-formatter-testeranto.js +18 -0
- package/dist/module/src/esbuildConfigs/featuresPlugin.js +34 -0
- package/dist/module/src/esbuildConfigs/index.js +19 -0
- package/dist/module/src/esbuildConfigs/inputFilesPlugin.js +25 -0
- package/dist/module/src/esbuildConfigs/nativeImportDetectorPlugin.js +21 -0
- package/dist/module/src/esbuildConfigs/node.js +21 -0
- package/dist/module/src/esbuildConfigs/pure.js +37 -0
- package/dist/module/src/esbuildConfigs/rebuildPlugin.js +14 -0
- package/dist/module/src/esbuildConfigs/web.js +43 -0
- package/dist/module/src/init-docs.js +4 -0
- package/dist/module/src/lib/BaseGiven.js +172 -0
- package/dist/module/src/lib/BaseSuite.js +134 -0
- package/dist/module/src/lib/BaseSuite.test/mock.js +61 -0
- package/dist/module/src/lib/BaseSuite.test/node.test.js +5 -0
- package/dist/module/src/lib/BaseSuite.test/pure.test.js +5 -0
- package/dist/module/src/lib/BaseSuite.test/test.js +180 -0
- package/dist/module/src/lib/BaseSuite.test/web.test.js +5 -0
- package/dist/module/src/lib/BaseThen.js +59 -0
- package/dist/module/src/lib/BaseWhen.js +43 -0
- package/dist/module/src/lib/Sidecar.js +3 -0
- package/dist/module/src/lib/Tiposkripto.js +185 -0
- package/dist/module/src/lib/Tiposkripto.test/MockTiposkripto.js +163 -0
- package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.adapter.js +26 -0
- package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.implementation.js +212 -0
- package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.js +6 -0
- package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.specification.js +49 -0
- package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.types.js +1 -0
- package/dist/module/src/lib/abstractBase.test/MockGiven.js +20 -0
- package/dist/module/src/lib/abstractBase.test/MockThen.js +12 -0
- package/dist/module/src/lib/abstractBase.test/MockWhen.js +16 -0
- package/dist/module/src/lib/abstractBase.test/adapter.js +21 -0
- package/dist/module/src/lib/abstractBase.test/implementation.js +35 -0
- package/dist/module/src/lib/abstractBase.test/index.js +13 -0
- package/dist/module/src/lib/abstractBase.test/specification.js +15 -0
- package/dist/module/src/lib/abstractBase.test/types.js +1 -0
- package/dist/module/src/lib/index.js +26 -0
- package/dist/module/src/lib/pmProxy.js +251 -0
- package/dist/module/src/lib/pmProxy.test/adapter.js +51 -0
- package/dist/module/src/lib/pmProxy.test/implementation.js +127 -0
- package/dist/module/src/lib/pmProxy.test/index.js +8 -0
- package/dist/module/src/lib/pmProxy.test/mockPM.js +31 -0
- package/dist/module/src/lib/pmProxy.test/mockPMBase.js +127 -0
- package/dist/module/src/lib/pmProxy.test/specification.js +174 -0
- package/dist/module/src/lib/pmProxy.test/types.js +1 -0
- package/dist/module/src/lib/types.js +2 -0
- package/dist/module/src/mothership/index.js +178 -0
- package/dist/module/src/mothership/test.js +80 -0
- package/dist/module/src/run.js +49 -0
- package/dist/module/src/testeranto.js +185 -0
- package/dist/module/src/utils/buildTemplates.js +33 -0
- package/dist/module/src/utils/generateGolingvuMetafile.js +151 -0
- package/dist/module/src/utils/golingvuMetafile/fileDiscovery.js +136 -0
- package/dist/module/src/utils/golingvuMetafile/goList.js +97 -0
- package/dist/module/src/utils/golingvuMetafile/helpers.js +59 -0
- package/dist/module/src/utils/golingvuMetafile/importParser.js +83 -0
- package/dist/module/src/utils/golingvuMetafile/types.js +2 -0
- package/dist/module/src/utils/golingvuMetafile.js +6 -0
- package/dist/module/src/utils/golingvuWatcher.js +226 -0
- package/dist/module/src/utils/logFiles.js +55 -0
- package/dist/module/src/utils/pitonoMetafile.js +240 -0
- package/dist/module/src/utils/pitonoWatcher.js +123 -0
- package/dist/module/src/utils/queue.js +32 -0
- package/dist/module/src/utils/writeGolingvuMetafile.js +318 -0
- package/dist/module/src/web.html.js +16 -0
- package/dist/module/testeranto.config.js +89 -0
- package/dist/module/tsconfig.module.tsbuildinfo +1 -0
- package/dist/prebuild/App.css +173 -173
- package/dist/prebuild/App.js +20450 -46037
- package/dist/prebuild/init-docs.mjs +9 -1
- package/dist/prebuild/testeranto.mjs +3051 -3418
- package/dist/types/design-editor/DesignEditor.d.ts +1 -0
- package/dist/types/src/CoreTypes.d.ts +52 -0
- package/dist/types/src/Helpo.d.ts +1 -0
- package/dist/types/src/Init.d.ts +2 -0
- package/dist/types/src/Node.d.ts +9 -0
- package/dist/types/src/NodeSidecar.d.ts +6 -0
- package/dist/types/src/PM/__tests__/nodeSidecar.testeranto.d.ts +2 -0
- package/dist/types/src/PM/__tests__/pureSidecar.testeranto.d.ts +2 -0
- package/dist/types/src/PM/__tests__/webSidecar.testeranto.d.ts +2 -0
- package/dist/types/src/PM/golingvuBuild.d.ts +11 -0
- package/dist/types/src/PM/index.d.ts +35 -0
- package/dist/types/src/PM/node.d.ts +38 -0
- package/dist/types/src/PM/nodeSidecar.d.ts +13 -0
- package/dist/types/src/PM/pitonoBuild.d.ts +11 -0
- package/dist/types/src/PM/pitonoRunner.d.ts +7 -0
- package/dist/types/src/PM/pure.d.ts +41 -0
- package/dist/types/src/PM/pureSidecar.d.ts +11 -0
- package/dist/types/src/PM/sidecar.d.ts +8 -0
- package/dist/types/src/PM/types.d.ts +118 -0
- package/dist/types/src/PM/utils.d.ts +35 -0
- package/dist/types/src/PM/web.d.ts +41 -0
- package/dist/types/src/PM/webSidecar.d.ts +11 -0
- package/dist/types/src/Pure.d.ts +14 -0
- package/dist/types/src/Pure.test.d.ts +61 -0
- package/dist/types/src/PureSidecar.d.ts +8 -0
- package/dist/types/src/Types.d.ts +120 -0
- package/dist/types/src/Web.d.ts +9 -0
- package/dist/types/src/WebSidecar.d.ts +8 -0
- package/dist/types/src/app/FileService.d.ts +37 -0
- package/dist/types/src/app/api.d.ts +37 -0
- package/dist/types/src/app/backend/PM_0.d.ts +38 -0
- package/dist/types/src/app/backend/PM_1_WithProcesses.d.ts +149 -0
- package/dist/types/src/app/backend/PM_2_WithTCP.d.ts +29 -0
- package/dist/types/src/app/backend/PM_WithBuild.d.ts +8 -0
- package/dist/types/src/app/backend/PM_WithEslintAndTsc.d.ts +22 -0
- package/dist/types/src/app/backend/PM_WithGit.d.ts +24 -0
- package/dist/types/src/app/backend/PM_WithHelpo.d.ts +43 -0
- package/dist/types/src/app/backend/PM_WithTCP.d.ts +41 -0
- package/dist/types/src/app/backend/getAllFilesRecursively.d.ts +1 -0
- package/dist/types/src/app/backend/main.d.ts +15 -0
- package/dist/types/src/app/backend/makePrompt.d.ts +2 -0
- package/dist/types/src/app/backend/utils.d.ts +20 -0
- package/dist/types/src/app/frontend/App.d.ts +14 -0
- package/dist/types/src/app/frontend/DevelopmentFileService.d.ts +25 -0
- package/dist/types/src/app/frontend/GitFileService.d.ts +27 -0
- package/dist/types/src/app/frontend/GitHubAuthService.d.ts +32 -0
- package/dist/types/src/app/frontend/api.d.ts +10 -0
- package/dist/types/src/app/frontend/components/DesignEditorPage.d.ts +1 -0
- package/dist/types/src/app/frontend/components/SunriseAnimation.d.ts +5 -0
- package/dist/types/src/app/frontend/components/SunriseAnimation.test/interface.d.ts +11 -0
- package/dist/types/src/app/frontend/components/SunriseAnimation.test/types.d.ts +39 -0
- package/dist/types/src/app/frontend/components/TestStatusBadge.d.ts +15 -0
- package/dist/types/src/app/frontend/components/pure/AppFrame.d.ts +11 -0
- package/dist/types/src/app/frontend/components/pure/AppFrame.test/implementation.d.ts +3 -0
- package/dist/types/src/app/frontend/components/pure/AppFrame.test/index.d.ts +3 -0
- package/dist/types/src/app/frontend/components/pure/AppFrame.test/specification.d.ts +3 -0
- package/dist/types/src/app/frontend/components/pure/AppFrame.test/types.d.ts +33 -0
- package/dist/types/src/app/frontend/components/pure/BuildLogViewer.d.ts +7 -0
- package/dist/types/src/app/frontend/components/pure/DebugEnv.d.ts +2 -0
- package/dist/types/src/app/frontend/components/pure/FeaturesReporterView.d.ts +7 -0
- package/dist/types/src/app/frontend/components/pure/FeaturesReporterView.test/implementation.d.ts +3 -0
- package/dist/types/src/app/frontend/components/pure/FeaturesReporterView.test/index.d.ts +2 -0
- package/dist/types/src/app/frontend/components/pure/FeaturesReporterView.test/specification.d.ts +3 -0
- package/dist/types/src/app/frontend/components/pure/FeaturesReporterView.test/types.d.ts +54 -0
- package/dist/types/src/app/frontend/components/pure/FileTree.d.ts +6 -0
- package/dist/types/src/app/frontend/components/pure/FileTreeItem.d.ts +8 -0
- package/dist/types/src/app/frontend/components/pure/GitHubLoginButton.d.ts +8 -0
- package/dist/types/src/app/frontend/components/pure/GitIntegrationView.d.ts +27 -0
- package/dist/types/src/app/frontend/components/pure/HelpoChatDrawer.d.ts +7 -0
- package/dist/types/src/app/frontend/components/pure/MagicRobotModal.d.ts +16 -0
- package/dist/types/src/app/frontend/components/pure/ModalContent.d.ts +7 -0
- package/dist/types/src/app/frontend/components/pure/ModalContent.test/implementation.d.ts +3 -0
- package/dist/types/src/app/frontend/components/pure/ModalContent.test/index.d.ts +14 -0
- package/dist/types/src/app/frontend/components/pure/ModalContent.test/specification.d.ts +3 -0
- package/dist/types/src/app/frontend/components/pure/ModalContent.test/types.d.ts +45 -0
- package/dist/types/src/app/frontend/components/pure/NavBar.d.ts +23 -0
- package/dist/types/src/app/frontend/components/pure/ProcessDetails.d.ts +8 -0
- package/dist/types/src/app/frontend/components/pure/ProcessInput.d.ts +10 -0
- package/dist/types/src/app/frontend/components/pure/ProcessList.d.ts +10 -0
- package/dist/types/src/app/frontend/components/pure/ProcessLogs.d.ts +6 -0
- package/dist/types/src/app/frontend/components/pure/ProcessManager.d.ts +8 -0
- package/dist/types/src/app/frontend/components/pure/ProcessManagerView.d.ts +10 -0
- package/dist/types/src/app/frontend/components/pure/ProcessManagerViewTypes.d.ts +10 -0
- package/dist/types/src/app/frontend/components/pure/ProcessSidebar.d.ts +8 -0
- package/dist/types/src/app/frontend/components/pure/ProcessTerminal.d.ts +8 -0
- package/dist/types/src/app/frontend/components/pure/ProjectPageView.d.ts +14 -0
- package/dist/types/src/app/frontend/components/pure/ProjectPageView.test/implementation.d.ts +3 -0
- package/dist/types/src/app/frontend/components/pure/ProjectPageView.test/index.d.ts +17 -0
- package/dist/types/src/app/frontend/components/pure/ProjectPageView.test/specification.d.ts +3 -0
- package/dist/types/src/app/frontend/components/pure/ProjectPageView.test/types.d.ts +57 -0
- package/dist/types/src/app/frontend/components/pure/ProjectsPageView.d.ts +29 -0
- package/dist/types/src/app/frontend/components/pure/Settings.d.ts +1 -0
- package/dist/types/src/app/frontend/components/pure/SettingsButton.d.ts +2 -0
- package/dist/types/src/app/frontend/components/pure/SignIn.d.ts +1 -0
- package/dist/types/src/app/frontend/components/pure/TerminalInput.d.ts +6 -0
- package/dist/types/src/app/frontend/components/pure/TerminalLogs.d.ts +6 -0
- package/dist/types/src/app/frontend/components/pure/TestTable.d.ts +16 -0
- package/dist/types/src/app/frontend/components/pure/ThemeCard.d.ts +9 -0
- package/dist/types/src/app/frontend/components/pure/ToastNotification.d.ts +6 -0
- package/dist/types/src/app/frontend/components/pure/UserProfile.d.ts +2 -0
- package/dist/types/src/app/frontend/components/stateful/AuthCallbackPage.d.ts +2 -0
- package/dist/types/src/app/frontend/components/stateful/DratoPage.d.ts +8 -0
- package/dist/types/src/app/frontend/components/stateful/GenericXMLEditor/AttributeEditor.d.ts +9 -0
- package/dist/types/src/app/frontend/components/stateful/GenericXMLEditor/Drawer.d.ts +12 -0
- package/dist/types/src/app/frontend/components/stateful/GenericXMLEditor/GenericPreview.d.ts +11 -0
- package/dist/types/src/app/frontend/components/stateful/GenericXMLEditor/GenericTextEditor.d.ts +8 -0
- package/dist/types/src/app/frontend/components/stateful/GenericXMLEditor/GenericTree.d.ts +17 -0
- package/dist/types/src/app/frontend/components/stateful/GenericXMLEditorPage.d.ts +21 -0
- package/dist/types/src/app/frontend/components/stateful/GitIntegrationPage.d.ts +1 -0
- package/dist/types/src/app/frontend/components/stateful/GrafeoPage.d.ts +8 -0
- package/dist/types/src/app/frontend/components/stateful/ProcessManagerPage.d.ts +2 -0
- package/dist/types/src/app/frontend/components/stateful/ProjectPage.d.ts +1 -0
- package/dist/types/src/app/frontend/components/stateful/ProjectsPage.d.ts +1 -0
- package/dist/types/src/app/frontend/components/stateful/SVGEditor/CircleForm.d.ts +8 -0
- package/dist/types/src/app/frontend/components/stateful/SVGEditor/GroupForm.d.ts +8 -0
- package/dist/types/src/app/frontend/components/stateful/SVGEditor/RectForm.d.ts +8 -0
- package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGAttributeField.d.ts +9 -0
- package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGAttributesEditor.d.ts +9 -0
- package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGEditorControls.d.ts +9 -0
- package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGElementForm.d.ts +9 -0
- package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGPreview.d.ts +12 -0
- package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGTextEditor.d.ts +8 -0
- package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGTree.d.ts +20 -0
- package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGTypes.d.ts +30 -0
- package/dist/types/src/app/frontend/components/stateful/SVGEditorPage.d.ts +7 -0
- package/dist/types/src/app/frontend/components/stateful/SettingsPage.d.ts +2 -0
- package/dist/types/src/app/frontend/components/stateful/SkriboPage.d.ts +1 -0
- package/dist/types/src/app/frontend/components/stateful/TextEditorPage.d.ts +1 -0
- package/dist/types/src/app/frontend/flua/FluaPage.d.ts +2 -0
- package/dist/types/src/app/frontend/testPage/ITestPageViewProps.d.ts +14 -0
- package/dist/types/src/app/frontend/testPage/ProjectsTree.d.ts +17 -0
- package/dist/types/src/app/frontend/testPage/TestPage.d.ts +1 -0
- package/dist/types/src/app/frontend/testPage/TestPageLeftContent.d.ts +14 -0
- package/dist/types/src/app/frontend/testPage/TestPageMainContent.d.ts +7 -0
- package/dist/types/src/app/frontend/testPage/TestPageNavbar.d.ts +7 -0
- package/dist/types/src/app/frontend/testPage/TestPageView.d.ts +2 -0
- package/dist/types/src/app/frontend/testPage/TestPageView.test/implementation.d.ts +13 -0
- package/dist/types/src/app/frontend/testPage/TestPageView.test/index.d.ts +13 -0
- package/dist/types/src/app/frontend/testPage/TestPageView.test/specification.d.ts +11 -0
- package/dist/types/src/app/frontend/testPage/TestPageView.test/types.d.ts +65 -0
- package/dist/types/src/app/frontend/testPage/TestPageView_utils.d.ts +23 -0
- package/dist/types/src/app/frontend/useFs.d.ts +2 -0
- package/dist/types/src/app/frontend/useGitMode.d.ts +7 -0
- package/dist/types/src/app/frontend/useTerminalWebSocket.d.ts +4 -0
- package/dist/types/src/app/frontend/useWebSocket.d.ts +8 -0
- package/dist/types/src/app/types.d.ts +1 -0
- package/dist/types/src/builders/golang.d.ts +1 -0
- package/dist/types/src/builders/node.d.ts +1 -0
- package/dist/types/src/builders/python.d.ts +1 -0
- package/dist/types/src/builders/web.d.ts +1 -0
- package/dist/types/src/defaultConfig.d.ts +3 -0
- package/dist/types/src/esbuildConfigs/consoleDetectorPlugin.d.ts +2 -0
- package/dist/types/src/esbuildConfigs/eslint-formatter-testeranto.d.ts +2 -0
- package/dist/types/src/esbuildConfigs/featuresPlugin.d.ts +5 -0
- package/dist/types/src/esbuildConfigs/index.d.ts +4 -0
- package/dist/types/src/esbuildConfigs/inputFilesPlugin.d.ts +7 -0
- package/dist/types/src/esbuildConfigs/nativeImportDetectorPlugin.d.ts +2 -0
- package/dist/types/src/esbuildConfigs/node.d.ts +4 -0
- package/dist/types/src/esbuildConfigs/pure.d.ts +4 -0
- package/dist/types/src/esbuildConfigs/rebuildPlugin.d.ts +6 -0
- package/dist/types/src/esbuildConfigs/web.d.ts +4 -0
- package/dist/types/src/init-docs.d.ts +1 -0
- package/dist/types/src/lib/BaseGiven.d.ts +44 -0
- package/dist/types/src/lib/BaseSuite.d.ts +47 -0
- package/dist/types/src/lib/BaseSuite.test/mock.d.ts +21 -0
- package/dist/types/src/lib/BaseSuite.test/node.test.d.ts +2 -0
- package/dist/types/src/lib/BaseSuite.test/pure.test.d.ts +3 -0
- package/dist/types/src/lib/BaseSuite.test/test.d.ts +37 -0
- package/dist/types/src/lib/BaseSuite.test/web.test.d.ts +3 -0
- package/dist/types/src/lib/BaseThen.d.ts +29 -0
- package/dist/types/src/lib/BaseWhen.d.ts +29 -0
- package/dist/types/src/lib/Sidecar.d.ts +5 -0
- package/dist/types/src/lib/Tiposkripto.d.ts +37 -0
- package/dist/types/src/lib/Tiposkripto.test/MockTiposkripto.d.ts +18 -0
- package/dist/types/src/lib/Tiposkripto.test/Tiposkripto.adapter.d.ts +3 -0
- package/dist/types/src/lib/Tiposkripto.test/Tiposkripto.d.ts +2 -0
- package/dist/types/src/lib/Tiposkripto.test/Tiposkripto.implementation.d.ts +3 -0
- package/dist/types/src/lib/Tiposkripto.test/Tiposkripto.specification.d.ts +3 -0
- package/dist/types/src/lib/Tiposkripto.test/Tiposkripto.types.d.ts +58 -0
- package/dist/types/src/lib/abstractBase.test/MockGiven.d.ts +9 -0
- package/dist/types/src/lib/abstractBase.test/MockThen.d.ts +6 -0
- package/dist/types/src/lib/abstractBase.test/MockWhen.d.ts +6 -0
- package/dist/types/src/lib/abstractBase.test/adapter.d.ts +3 -0
- package/dist/types/src/lib/abstractBase.test/implementation.d.ts +3 -0
- package/dist/types/src/lib/abstractBase.test/index.d.ts +2 -0
- package/dist/types/src/lib/abstractBase.test/specification.d.ts +3 -0
- package/dist/types/src/lib/abstractBase.test/types.d.ts +39 -0
- package/dist/types/src/lib/index.d.ts +73 -0
- package/dist/types/src/lib/pmProxy.d.ts +12 -0
- package/dist/types/src/lib/pmProxy.test/adapter.d.ts +3 -0
- package/dist/types/src/lib/pmProxy.test/implementation.d.ts +3 -0
- package/dist/types/src/lib/pmProxy.test/index.d.ts +6 -0
- package/dist/types/src/lib/pmProxy.test/mockPM.d.ts +10 -0
- package/dist/types/src/lib/pmProxy.test/mockPMBase.d.ts +40 -0
- package/dist/types/src/lib/pmProxy.test/specification.d.ts +3 -0
- package/dist/types/src/lib/pmProxy.test/types.d.ts +42 -0
- package/dist/types/src/lib/types.d.ts +24 -0
- package/dist/types/src/mothership/index.d.ts +2 -0
- package/dist/types/src/mothership/test.d.ts +2 -0
- package/dist/types/src/testeranto.d.ts +1 -0
- package/dist/types/src/utils/buildTemplates.d.ts +1 -0
- package/dist/types/src/utils/generateGolingvuMetafile.d.ts +2 -0
- package/dist/types/src/utils/golingvuMetafile/fileDiscovery.d.ts +1 -0
- package/dist/types/src/utils/golingvuMetafile/goList.d.ts +2 -0
- package/dist/types/src/utils/golingvuMetafile/helpers.d.ts +7 -0
- package/dist/types/src/utils/golingvuMetafile/importParser.d.ts +5 -0
- package/dist/types/src/utils/golingvuMetafile/types.d.ts +66 -0
- package/dist/types/src/utils/golingvuMetafile.d.ts +4 -0
- package/dist/types/src/utils/golingvuWatcher.d.ts +14 -0
- package/dist/types/src/utils/logFiles.d.ts +103 -0
- package/dist/types/src/utils/pitonoMetafile.d.ts +22 -0
- package/dist/types/src/utils/pitonoWatcher.d.ts +13 -0
- package/dist/types/src/utils/queue.d.ts +11 -0
- package/dist/types/src/utils/writeGolingvuMetafile.d.ts +2 -0
- package/dist/types/src/web.html.d.ts +2 -0
- package/dist/types/tsconfig.types.tsbuildinfo +1 -0
- package/docker-compose.yml +74 -0
- package/docs/testing.prompt.txt +5 -1
- package/example/Calculator.go +64 -28
- package/example/Calculator.golingvu.implementation.go +51 -2
- package/example/Calculator.golingvu.test.go +216 -0
- package/example/Calculator.pitono.test.py +112 -27
- package/example/Calculator.test.adapter.ts +9 -49
- package/example/Calculator.test.implementation.ts +1 -28
- package/example/Calculator.ts +2 -18
- package/example/__pycache__/Calculator.cpython-313.pyc +0 -0
- package/example/go.mod +1 -3
- package/example/go.sum +2 -0
- package/example/requirements.txt +9 -0
- package/example/single-kanban-process.xml +9 -0
- package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/LICENSE +21 -0
- package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/README.md +187 -0
- package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/base_given.go +163 -0
- package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/base_suite.go +85 -0
- package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/base_then.go +21 -0
- package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/base_when.go +21 -0
- package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/golingvu.go +889 -0
- package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/test_adapter.go +33 -0
- package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/types.go +72 -0
- package/example/vendor/modules.txt +4 -0
- package/go.mod +4 -1
- package/go.sum +2 -0
- package/log.txt +36 -82
- package/package.json +16 -8
- package/scripts/build-example.ts +65 -204
- package/src/Init.ts +9 -1
- package/src/Node.ts +0 -1
- package/src/NodeSidecar.ts +0 -8
- package/src/PM/__tests__/nodeSidecar.testeranto.ts +4 -1
- package/src/PM/types.ts +1 -0
- package/src/PM/web.ts +8 -24
- package/src/Pure.test.ts +18 -9
- package/src/Pure.ts +1 -16
- package/src/Types.ts +1 -0
- package/src/Web.ts +2 -38
- package/src/WebSidecar.ts +1 -1
- package/src/app/FileService.ts +91 -0
- package/src/app/api.ts +75 -0
- package/src/app/backend/PM_0.ts +392 -0
- package/src/app/backend/PM_1_WithProcesses.ts +1186 -0
- package/src/app/backend/PM_2_WithTCP.ts +283 -0
- package/src/app/backend/PM_WithBuild.ts +148 -0
- package/src/app/backend/PM_WithEslintAndTsc.ts +194 -0
- package/src/app/backend/PM_WithGit.ts +662 -0
- package/src/app/backend/PM_WithHelpo.ts +340 -0
- package/src/app/backend/PM_WithProcesses.ts +1247 -0
- package/src/app/backend/PM_WithTCP.ts +777 -0
- package/src/app/backend/getAllFilesRecursively.ts +17 -0
- package/src/app/backend/main.ts +1011 -0
- package/src/app/backend/makePrompt.ts +92 -0
- package/src/app/backend/utils.ts +202 -0
- package/src/app/frontend/App.tsx +242 -0
- package/src/app/frontend/DevelopmentFileService.ts +117 -0
- package/src/app/frontend/GitFileService.ts +285 -0
- package/src/app/frontend/GitHubAuthService.ts +241 -0
- package/src/app/frontend/api.ts +108 -0
- package/src/app/frontend/app.scss +119 -0
- package/src/app/frontend/components/DesignEditorPage.tsx +210 -0
- package/src/app/frontend/components/SunriseAnimation.test/interface.ts +50 -0
- package/src/app/frontend/components/SunriseAnimation.test/types.ts +53 -0
- package/src/app/frontend/components/SunriseAnimation.tsx +350 -0
- package/src/app/frontend/components/pure/AppFrame.tsx +445 -0
- package/src/app/frontend/components/pure/FeaturesReporterView.tsx +38 -0
- package/src/app/frontend/components/pure/GitHubLoginButton.tsx +32 -0
- package/src/app/frontend/components/pure/GitIntegrationView.tsx +727 -0
- package/src/app/frontend/components/pure/HelpoChatDrawer.tsx +223 -0
- package/src/app/frontend/components/pure/MagicRobotModal.tsx +135 -0
- package/src/app/frontend/components/pure/ModalContent.test/index.tsx +68 -0
- package/src/app/frontend/components/pure/NavBar.tsx +119 -0
- package/src/app/frontend/components/pure/ProcessManagerView.tsx +89 -0
- package/src/app/frontend/components/pure/ProcessTerminal.tsx +55 -0
- package/src/app/frontend/components/pure/ProjectPageView.test/implementation.tsx +216 -0
- package/src/app/frontend/components/pure/ProjectPageView.tsx +165 -0
- package/src/app/frontend/components/pure/Settings.test.tsx +34 -0
- package/src/app/frontend/components/pure/Settings.tsx +171 -0
- package/src/app/frontend/components/pure/SignIn.tsx +33 -0
- package/src/app/frontend/components/stateful/FeaturesReporter.tsx +27 -0
- package/src/app/frontend/components/stateful/GenericXMLEditor/AttributeEditor.tsx +105 -0
- package/src/app/frontend/components/stateful/GenericXMLEditor/GenericPreview.tsx +234 -0
- package/src/app/frontend/components/stateful/GenericXMLEditor/GenericTextEditor.tsx +173 -0
- package/src/app/frontend/components/stateful/GenericXMLEditor/GenericTree.tsx +105 -0
- package/src/app/frontend/components/stateful/GenericXMLEditorPage.tsx +455 -0
- package/src/app/frontend/components/stateful/GitIntegrationPage.tsx +256 -0
- package/src/app/frontend/components/stateful/ProcessManagerPage.tsx +110 -0
- package/src/app/frontend/components/stateful/ProjectPage.tsx +94 -0
- package/src/app/frontend/components/stateful/ProjectsPage.tsx +129 -0
- package/src/app/frontend/components/stateful/SkriboPage.tsx +577 -0
- package/src/app/frontend/fetchDataUtil.ts +206 -0
- package/src/app/frontend/flua/FluaPage.tsx +458 -0
- package/src/app/frontend/flua/agile.xsd +32 -0
- package/src/app/frontend/flua/core.xsd +42 -0
- package/src/app/frontend/flua/kanban.xsd +21 -0
- package/src/app/frontend/flua/scrum.xsd +35 -0
- package/src/app/frontend/testPage/ITestPageViewProps.ts +14 -0
- package/src/app/frontend/testPage/ProjectsTree.tsx +329 -0
- package/src/app/frontend/testPage/TestPage.tsx +75 -0
- package/src/app/frontend/testPage/TestPageLeftContent.tsx +54 -0
- package/src/app/frontend/testPage/TestPageMainContent.tsx +181 -0
- package/src/app/frontend/testPage/TestPageNavbar.tsx +52 -0
- package/src/app/frontend/testPage/TestPageView.test/implementation.ts +209 -0
- package/src/app/frontend/testPage/TestPageView.test/index.tsx +22 -0
- package/src/app/frontend/testPage/TestPageView.test/specification.ts +60 -0
- package/src/app/frontend/testPage/TestPageView.test/types.ts +92 -0
- package/src/app/frontend/testPage/TestPageView.tsx +481 -0
- package/src/app/frontend/testPage/TestPageView_utils.tsx +301 -0
- package/src/app/frontend/testPage/index.md +14 -0
- package/src/app/frontend/useFileSystemSync.ts +117 -0
- package/src/app/frontend/useFs.ts +16 -0
- package/src/app/frontend/useGitMode.ts +21 -0
- package/src/app/frontend/useTerminalWebSocket.ts +56 -0
- package/src/app/frontend/useWebSocket.ts +20 -0
- package/src/app/trash +1697 -0
- package/src/app/types.ts +1 -0
- package/src/builders/golang.ts +29 -0
- package/src/builders/node.ts +34 -0
- package/src/builders/python.ts +28 -0
- package/src/builders/web.ts +34 -0
- package/src/cjs-shim.js +2 -0
- package/src/golingvu/PM/golang_test.go +88 -88
- package/src/golingvu/base_given.go +27 -28
- package/src/golingvu/base_suite.go +20 -20
- package/src/golingvu/base_then.go +2 -2
- package/src/golingvu/base_when.go +2 -2
- package/src/golingvu/golingvu.go +124 -147
- package/src/graphml.xsd +345 -0
- package/src/lib/BaseGiven.ts +71 -95
- package/src/lib/BaseSuite.test/test.ts +7 -12
- package/src/lib/BaseSuite.ts +24 -16
- package/src/lib/BaseThen.ts +7 -4
- package/src/lib/BaseWhen.ts +4 -12
- package/src/lib/Tiposkripto.test/MockTiposkripto.ts +59 -63
- package/src/lib/Tiposkripto.test/Tiposkripto.implementation.ts +33 -20
- package/src/lib/Tiposkripto.ts +1 -19
- package/src/lib/pmProxy.test/implementation.ts +112 -117
- package/src/lib/pmProxy.test/index.ts +2 -2
- package/src/lib/pmProxy.test/mockPM.ts +1 -0
- package/src/lib/pmProxy.test/mockPMBase.ts +1 -1
- package/src/lib/pmProxy.test/specification.ts +0 -2
- package/src/lib/pmProxy.test/types.ts +1 -0
- package/src/lib/pmProxy.ts +0 -74
- package/src/mothership/index.ts +197 -2
- package/src/mothership/test.ts +5 -5
- package/src/pitono/PM/__pycache__/python.cpython-313.pyc +0 -0
- package/src/pitono/PM/python.py +3 -0
- package/src/pitono/Pitono.py +166 -20
- package/src/pitono/__pycache__/Pitono.cpython-313.pyc +0 -0
- package/src/pitono/__pycache__/__init__.cpython-313.pyc +0 -0
- package/src/pitono/__pycache__/base_given.cpython-313.pyc +0 -0
- package/src/pitono/__pycache__/base_suite.cpython-313.pyc +0 -0
- package/src/pitono/__pycache__/base_then.cpython-313.pyc +0 -0
- package/src/pitono/__pycache__/base_when.cpython-313.pyc +0 -0
- package/src/pitono/__pycache__/core_generator.cpython-313.pyc +0 -0
- package/src/pitono/__pycache__/simple_adapter.cpython-313.pyc +0 -0
- package/src/pitono/__pycache__/types.cpython-313.pyc +0 -0
- package/src/pitono/base_given.py +35 -10
- package/src/pitono/base_suite.py +2 -1
- package/src/pitono/base_then.py +5 -4
- package/src/pitono/base_when.py +4 -3
- package/src/style.scss +261 -2
- package/src/testeranto.ts +6 -5
- package/src/utils/generateGolingvuMetafile.ts +196 -0
- package/src/utils/golingvuMetafile/fileDiscovery.ts +157 -0
- package/src/utils/golingvuMetafile/goList.ts +106 -0
- package/src/utils/golingvuMetafile/helpers.ts +65 -0
- package/src/utils/golingvuMetafile/importParser.ts +97 -0
- package/src/utils/golingvuMetafile/types.ts +78 -0
- package/src/utils/golingvuMetafile.ts +4 -865
- package/src/utils/golingvuWatcher.ts +35 -40
- package/src/utils/pitonoMetafile.ts +205 -207
- package/src/utils/pitonoWatcher.ts +2 -9
- package/src/utils/writeGolingvuMetafile.ts +386 -0
- package/testeranto/App.css +173 -173
- package/testeranto/App.js +20428 -46026
- package/testeranto/bundles/golang/core/example/Calculator.golingvu.test +58 -0
- package/testeranto/bundles/node/core/example/Calculator.test.mjs +5862 -0
- package/testeranto/bundles/python/core/Calculator.pitono.test.py +24 -0
- package/testeranto/metafiles/golang/core.json +126 -26
- package/testeranto/metafiles/node/core.json +43 -550
- package/testeranto/metafiles/python/core.json +4 -39
- package/testeranto/reports/core/config.json +1 -81
- package/testeranto/reports/core/example/Calculator.golingvu.test/golang/stderr.log +7 -0
- package/testeranto/reports/core/example/Calculator.pitono.test/python/exit.log +1 -1
- package/testeranto/reports/core/example/Calculator.pitono.test/python/prompt.txt +13 -0
- package/testeranto/reports/core/example/Calculator.pitono.test/python/stderr.log +0 -11
- package/testeranto/reports/core/example/Calculator.pitono.test/python/stdout.log +26 -1
- package/testeranto/reports/core/example/Calculator.pitono.test/python/tests.json +255 -0
- package/testeranto/reports/core/example/Calculator.test/node/lint_errors.txt +2 -2
- package/testeranto/reports/core/example/Calculator.test/node/stderr.log +562 -29
- package/testeranto/reports/core/example/Calculator.test/node/stdout.log +0 -1076
- package/testeranto/reports/core/example/Calculator.test/node/tests.json +133 -79
- package/testeranto/reports/core/example/Calculator.test/node/type_errors.txt +16 -24
- package/testeranto/reports/core/summary.json +2 -69
- package/testeranto.config.ts +28 -26
- package/tsc.log +305 -370
- package/example/Calculator.golingvu.go +0 -67
- package/example/base_suite_test.go +0 -51
- package/example/cmd/main.go +0 -16
- package/example/main +0 -0
- package/example/testeranto/bundles/golang/core/Calculator.golingvu.go +0 -53
- package/example/testeranto/metafiles/golang/core.json +0 -198
- package/src/App.tsx +0 -278
- package/src/PM/PM_WithBuild.ts +0 -183
- package/src/PM/PM_WithEslintAndTsc.ts +0 -279
- package/src/PM/PM_WithGit.ts +0 -632
- package/src/PM/PM_WithHelpo.ts +0 -341
- package/src/PM/PM_WithProcesses.ts +0 -900
- package/src/PM/PM_WithWebSocket.ts +0 -839
- package/src/PM/base.ts +0 -390
- package/src/PM/main.ts +0 -981
- package/src/ReportServer.test.ts/index.ts +0 -194
- package/src/app.scss +0 -121
- package/src/components/DesignEditorPage.tsx +0 -202
- package/src/components/SunriseAnimation.test/interface.ts +0 -49
- package/src/components/SunriseAnimation.test/types.ts +0 -53
- package/src/components/SunriseAnimation.tsx +0 -350
- package/src/components/pure/AppFrame.tsx +0 -410
- package/src/components/pure/FeaturesReporterView.tsx +0 -37
- package/src/components/pure/GitHubLoginButton.tsx +0 -31
- package/src/components/pure/GitIntegrationView.tsx +0 -732
- package/src/components/pure/HelpoChatDrawer.tsx +0 -222
- package/src/components/pure/MagicRobotModal.tsx +0 -136
- package/src/components/pure/ModalContent.test/index.tsx +0 -67
- package/src/components/pure/NavBar.tsx +0 -118
- package/src/components/pure/ProcessManagerView.tsx +0 -85
- package/src/components/pure/ProcessTerminal.tsx +0 -51
- package/src/components/pure/ProjectPageView.test/implementation.tsx +0 -213
- package/src/components/pure/ProjectPageView.tsx +0 -148
- package/src/components/pure/Settings.test.tsx +0 -34
- package/src/components/pure/Settings.tsx +0 -163
- package/src/components/pure/SignIn.tsx +0 -33
- package/src/components/pure/TestPageView.test/implementation.ts +0 -162
- package/src/components/pure/TestPageView.test/index.tsx +0 -20
- package/src/components/pure/TestPageView.test/specification.ts +0 -59
- package/src/components/pure/TestPageView.test/types.ts +0 -92
- package/src/components/pure/TestPageView.tsx +0 -611
- package/src/components/pure/TestPageView_utils.tsx +0 -287
- package/src/components/stateful/FeaturesReporter.tsx +0 -26
- package/src/components/stateful/GenericXMLEditor/AttributeEditor.tsx +0 -87
- package/src/components/stateful/GenericXMLEditor/GenericPreview.tsx +0 -160
- package/src/components/stateful/GenericXMLEditor/GenericTextEditor.tsx +0 -104
- package/src/components/stateful/GenericXMLEditor/GenericTree.tsx +0 -104
- package/src/components/stateful/GenericXMLEditorPage.tsx +0 -346
- package/src/components/stateful/GitIntegrationPage.tsx +0 -263
- package/src/components/stateful/ProcessManagerPage.tsx +0 -104
- package/src/components/stateful/ProjectPage.tsx +0 -86
- package/src/components/stateful/ProjectsPage.tsx +0 -100
- package/src/components/stateful/SkriboPage.tsx +0 -765
- package/src/components/stateful/TestPage.tsx +0 -269
- package/src/example/go.mod +0 -9
- package/src/example/main.go +0 -61
- package/src/hooks/useGitMode.ts +0 -20
- package/src/hooks/useTerminalWebSocket.ts +0 -49
- package/src/services/FileService.ts +0 -677
- package/src/services/GitHubAuthService.ts +0 -240
- package/src/types/features.ts +0 -38
- package/src/utils/api.ts +0 -108
- package/src/utils/featureUtils.tsx +0 -42
- package/src/utils/gitTest.ts +0 -29
- package/src/utils/makePrompt.ts +0 -160
- package/src/utils.ts +0 -202
- package/stargazers.txt +0 -15
- package/testeranto/bundles/node/core/chunk-MJTSYIAQ.mjs +0 -1099
- package/testeranto/bundles/node/core/src/lib/BaseSuite.test/node.test.mjs +0 -318
- package/testeranto/bundles/node/core/src/lib/TipoSkripto.test/TipoSkripto.mjs +0 -572
- package/testeranto/bundles/node/core/src/lib/pmProxy.test/index.mjs +0 -4795
- package/testeranto/bundles/pure/core/chunk-6HR24P27.mjs +0 -1003
- package/testeranto/bundles/pure/core/src/Pure.test.mjs +0 -410
- package/testeranto/bundles/pure/core/src/lib/BaseSuite.test/pure.test.mjs +0 -318
- package/testeranto/bundles/web/core/MPLUSRounded1c-Black-O75GP5JI.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-Bold-R524Q5BH.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-ExtraBold-C6GRMYVT.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-Light-WKN65Y2C.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-Medium-ZC4DWL7C.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-Regular-DT6EKZ3S.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-Thin-YWDNVG6M.ttf +0 -0
- package/testeranto/bundles/web/core/chunk-AZZHJNSU.mjs +0 -30278
- package/testeranto/bundles/web/core/chunk-ME6I6FJZ.mjs +0 -3005
- package/testeranto/bundles/web/core/src/components/pure/FeaturesReporterView.test/index.html +0 -15
- package/testeranto/bundles/web/core/src/components/pure/FeaturesReporterView.test/index.mjs +0 -162
- package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.css +0 -11619
- package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.html +0 -15
- package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.mjs +0 -6924
- package/testeranto/bundles/web/core/src/lib/BaseSuite.test/web.test.html +0 -15
- package/testeranto/bundles/web/core/src/lib/BaseSuite.test/web.test.mjs +0 -333
- package/testeranto/metafiles/pure/core.json +0 -719
- package/testeranto/metafiles/web/core.json +0 -17007
- package/testeranto/reports/core/example/Calculator.golingvu/golang/stderr.log +0 -2
- package/testeranto/reports/core/example/Calculator.golingvu/golang/stdout.log +0 -1
- package/testeranto/reports/core/example/test_example/python/exit.log +0 -1
- package/testeranto/reports/core/example/test_example/python/stderr.log +0 -24
- package/testeranto/reports/core/src/Pure.test/pure/prompt.txt +0 -13
- package/testeranto/reports/core/src/Pure.test/pure/type_errors.txt +0 -86
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/message.txt +0 -17
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/prompt.txt +0 -26
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/type_errors.txt +0 -69
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/lint_errors.txt +0 -16
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/message.txt +0 -17
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/prompt.txt +0 -27
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/type_errors.txt +0 -42
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/debug.log +0 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/error.log +0 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/exit.log +0 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/info.log +0 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/lint_errors.txt +0 -30
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/message.txt +0 -17
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/prompt.txt +0 -30
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/type_errors.txt +0 -58
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/warn.log +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/exit.log +0 -1
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/message.txt +0 -17
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/prompt.txt +0 -23
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/stderr.log +0 -1
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/stdout.log +0 -4
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/tests.json +0 -120
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/type_errors.txt +0 -69
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/exit.log +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/message.txt +0 -16
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/prompt.txt +0 -13
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/type_errors.txt +0 -74
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/debug.log +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/error.log +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/exit.log +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/info.log +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/message.txt +0 -17
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/prompt.txt +0 -25
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/type_errors.txt +0 -69
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/warn.log +0 -0
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/exit.log +0 -1
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/message.txt +0 -16
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/prompt.txt +0 -13
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/stderr.log +0 -88
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/stdout.log +0 -521
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/tests.json +0 -166
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/type_errors.txt +0 -78
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/exit.log +0 -1
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/lint_errors.txt +0 -15
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/message.txt +0 -17
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/prompt.txt +0 -25
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/stderr.log +0 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/stdout.log +0 -2
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/tests.json +0 -31
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/type_errors.txt +0 -62
- package/testeranto.ts-0.0.1.tgz +0 -0
- package/type-fix.txt +0 -2
- /package/{src/ReportServer.ts → build-go.sh} +0 -0
- /package/{src/ReportServerLib.ts → dist/types/src/app/backend/PM_WithProcesses.d.ts} +0 -0
- /package/{src/components/SunriseAnimation.test/implementation.ts → dist/types/src/app/frontend/components/SunriseAnimation.test/implementation.d.ts} +0 -0
- /package/{src/components/SunriseAnimation.test/index.ts → dist/types/src/app/frontend/components/SunriseAnimation.test/index.d.ts} +0 -0
- /package/{src/components/SunriseAnimation.test/specification.ts → dist/types/src/app/frontend/components/SunriseAnimation.test/specification.d.ts} +0 -0
- /package/{testeranto/reports/core/example/test_example/python/stdout.log → dist/types/src/app/frontend/components/pure/ArtifactTree.d.ts} +0 -0
- /package/{testeranto/reports/core/src/Pure.test/pure/exit.log → dist/types/src/app/frontend/components/pure/Settings.test.d.ts} +0 -0
- /package/{testeranto/reports/core/src/Pure.test/pure/lint_errors.txt → dist/types/src/app/frontend/components/pure/SingleProcessView.d.ts} +0 -0
- /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
- /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
- /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
- /package/{testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/info.log → dist/types/src/app/frontend/fetchDataUtil.d.ts} +0 -0
- /package/{testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/lint_errors.txt → dist/types/src/app/frontend/useFileSystemSync.d.ts} +0 -0
- /package/{testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/warn.log → dist/types/src/run.d.ts} +0 -0
- /package/{testeranto/reports/core/src/components/pure/ModalContent.test/index/web/debug.log → docker.md} +0 -0
- /package/{testeranto/reports/core/src/components/pure/ModalContent.test/index/web/error.log → src/app/frontend/components/SunriseAnimation.test/implementation.ts} +0 -0
- /package/{testeranto/reports/core/src/components/pure/ModalContent.test/index/web/exit.log → src/app/frontend/components/SunriseAnimation.test/index.ts} +0 -0
- /package/src/{components → app/frontend/components}/SunriseAnimation.test/index.tsx +0 -0
- /package/{testeranto/reports/core/src/components/pure/ModalContent.test/index/web/info.log → src/app/frontend/components/SunriseAnimation.test/specification.ts} +0 -0
- /package/src/{components → app/frontend/components}/TestStatusBadge.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/AppFrame.test/implementation.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/AppFrame.test/index.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/AppFrame.test/specification.ts +0 -0
- /package/src/{components → app/frontend/components}/pure/AppFrame.test/types.ts +0 -0
- /package/src/{components → app/frontend/components}/pure/ArtifactTree.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/BuildLogViewer.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/DebugEnv.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/implementation.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/index.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/specification.ts +0 -0
- /package/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/types.ts +0 -0
- /package/src/{components → app/frontend/components}/pure/FileTree.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/FileTreeItem.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/ModalContent.test/implementation.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/ModalContent.test/specification.ts +0 -0
- /package/src/{components → app/frontend/components}/pure/ModalContent.test/types.ts +0 -0
- /package/src/{components → app/frontend/components}/pure/ModalContent.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/ProcessDetails.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/ProcessInput.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/ProcessList.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/ProcessLogs.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/ProcessManager.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/ProcessManagerViewTypes.ts +0 -0
- /package/src/{components → app/frontend/components}/pure/ProcessSidebar.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/ProjectPageView.test/index.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/ProjectPageView.test/specification.ts +0 -0
- /package/src/{components → app/frontend/components}/pure/ProjectPageView.test/types.ts +0 -0
- /package/src/{components → app/frontend/components}/pure/ProjectsPageView.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/SettingsButton.md +0 -0
- /package/src/{components → app/frontend/components}/pure/SettingsButton.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/SingleProcessView.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/TerminalInput.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/TerminalLogs.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/TestTable.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/ThemeCard.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/ToastNotification.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/UserProfile.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/AuthCallbackPage.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/DratoPage.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/FileTree.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/GenericXMLEditor/Drawer.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/GrafeoPage.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/SVGEditor/CircleForm.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/SVGEditor/GroupForm.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/SVGEditor/RectForm.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGAttributeField.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGAttributesEditor.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGEditorControls.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGElementForm.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGPreview.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGTextEditor.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGTree.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGTypes.ts +0 -0
- /package/src/{components → app/frontend/components}/stateful/SVGEditor/svg.xsd.xml +0 -0
- /package/src/{components → app/frontend/components}/stateful/SVGEditorPage.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/SettingsPage.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/SingleProcessPage.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/TextEditorPage.tsx +0 -0
- /package/testeranto/{projects.html → index.html} +0 -0
- /package/testeranto/reports/core/example/{Calculator.golingvu → Calculator.golingvu.test}/golang/exit.log +0 -0
- /package/testeranto/reports/core/{src/components/pure/ModalContent.test/index/web/warn.log → example/Calculator.golingvu.test/golang/stdout.log} +0 -0
- /package/testeranto/reports/core/{src/Pure.test/pure → example/Calculator.pitono.test/python}/message.txt +0 -0
|
@@ -0,0 +1,1247 @@
|
|
|
1
|
+
// /* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
2
|
+
// /* eslint-disable no-async-promise-executor */
|
|
3
|
+
// /* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4
|
+
// /* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5
|
+
// import http from "http";
|
|
6
|
+
// import fs, { watch } from "fs";
|
|
7
|
+
// import path from "path";
|
|
8
|
+
// import puppeteer, { executablePath } from "puppeteer-core";
|
|
9
|
+
// import ansiC from "ansi-colors";
|
|
10
|
+
// import { IBuiltConfig, IRunTime, ISummary } from "../../Types.js";
|
|
11
|
+
|
|
12
|
+
// import {
|
|
13
|
+
// createLogStreams,
|
|
14
|
+
// isValidUrl,
|
|
15
|
+
// pollForFile,
|
|
16
|
+
// writeFileAndCreateDir,
|
|
17
|
+
// puppeteerConfigs,
|
|
18
|
+
// filesHash,
|
|
19
|
+
// IOutputs,
|
|
20
|
+
// } from "../../PM/utils.js";
|
|
21
|
+
|
|
22
|
+
// import { getRunnables } from "./utils.js";
|
|
23
|
+
// import { PM_1 } from "./PM_1.js";
|
|
24
|
+
// import { makePrompt } from "./makePrompt.js";
|
|
25
|
+
// import { RawData, WebSocketServer } from "ws";
|
|
26
|
+
// import { ChildProcess } from "child_process";
|
|
27
|
+
// import { WebSocketMessage } from "../../PM/types.js";
|
|
28
|
+
|
|
29
|
+
// const changes: Record<string, string> = {};
|
|
30
|
+
|
|
31
|
+
// export abstract class PM_WithProcesses extends PM_1 {
|
|
32
|
+
// // summary: ISummary = {};
|
|
33
|
+
|
|
34
|
+
// // webMetafileWatcher: fs.FSWatcher;
|
|
35
|
+
// // nodeMetafileWatcher: fs.FSWatcher;
|
|
36
|
+
// // importMetafileWatcher: fs.FSWatcher;
|
|
37
|
+
// // pitonoMetafileWatcher: fs.FSWatcher;
|
|
38
|
+
// // golangMetafileWatcher: fs.FSWatcher;
|
|
39
|
+
|
|
40
|
+
// // ports: Record<number, string>;
|
|
41
|
+
// // queue: string[];
|
|
42
|
+
// // logStreams: Record<string, ReturnType<typeof createLogStreams>> = {};
|
|
43
|
+
// // launchers: Record<string, () => void>;
|
|
44
|
+
|
|
45
|
+
// // configs: any;
|
|
46
|
+
|
|
47
|
+
// // abstract launchNode(src: string, dest: string);
|
|
48
|
+
// // abstract launchWeb(src: string, dest: string);
|
|
49
|
+
// // abstract launchPure(src: string, dest: string);
|
|
50
|
+
// // abstract launchPython(src: string, dest: string);
|
|
51
|
+
// // abstract launchGolang(src: string, dest: string);
|
|
52
|
+
// // abstract startBuildProcesses(): Promise<void>;
|
|
53
|
+
|
|
54
|
+
// // runningProcesses: Map<string, ChildProcess | Promise<any>> = new Map();
|
|
55
|
+
|
|
56
|
+
// // allProcesses: Map<
|
|
57
|
+
// // string,
|
|
58
|
+
// // {
|
|
59
|
+
// // child?: ChildProcess;
|
|
60
|
+
// // promise?: Promise<any>;
|
|
61
|
+
// // status: "running" | "exited" | "error" | "completed";
|
|
62
|
+
// // exitCode?: number;
|
|
63
|
+
// // error?: string;
|
|
64
|
+
// // command: string;
|
|
65
|
+
// // pid?: number;
|
|
66
|
+
// // timestamp: string;
|
|
67
|
+
// // type: "process" | "promise";
|
|
68
|
+
// // category: "aider" | "bdd-test" | "build-time" | "other";
|
|
69
|
+
// // testName?: string;
|
|
70
|
+
// // platform?: "node" | "web" | "pure" | "python" | "golang";
|
|
71
|
+
// // }
|
|
72
|
+
// // > = new Map();
|
|
73
|
+
// // processLogs: Map<string, string[]> = new Map();
|
|
74
|
+
|
|
75
|
+
// // clients: Set<any> = new Set();
|
|
76
|
+
|
|
77
|
+
// constructor(configs: IBuiltConfig, name, mode) {
|
|
78
|
+
// super(configs, name, mode);
|
|
79
|
+
|
|
80
|
+
// // this.configs.tests.forEach(([t, rt, tr, sidecars]) => {
|
|
81
|
+
// // this.ensureSummaryEntry(t);
|
|
82
|
+
// // sidecars.forEach(([sidecarName]) => {
|
|
83
|
+
// // this.ensureSummaryEntry(sidecarName, true);
|
|
84
|
+
// // });
|
|
85
|
+
// // });
|
|
86
|
+
|
|
87
|
+
// // this.launchers = {};
|
|
88
|
+
// // this.ports = {};
|
|
89
|
+
// // this.queue = [];
|
|
90
|
+
|
|
91
|
+
// // this.configs.ports.forEach((element) => {
|
|
92
|
+
// // this.ports[element] = ""; // set ports as open
|
|
93
|
+
// // });
|
|
94
|
+
|
|
95
|
+
// // this.httpServer = http.createServer(this.handleHttpRequest.bind(this));
|
|
96
|
+
|
|
97
|
+
// // this.wss = new WebSocketServer({ server: this.httpServer });
|
|
98
|
+
|
|
99
|
+
// // this.wss.on("connection", (ws) => {
|
|
100
|
+
// // this.clients.add(ws);
|
|
101
|
+
// // console.log("Client connected");
|
|
102
|
+
|
|
103
|
+
// // ws.on("message", (data) => {
|
|
104
|
+
// // try {
|
|
105
|
+
// // this.websocket(data, ws);
|
|
106
|
+
// // } catch (error) {
|
|
107
|
+
// // console.error("Error handling WebSocket message:", error);
|
|
108
|
+
// // }
|
|
109
|
+
// // });
|
|
110
|
+
|
|
111
|
+
// // ws.on("close", () => {
|
|
112
|
+
// // this.clients.delete(ws);
|
|
113
|
+
// // console.log("Client disconnected");
|
|
114
|
+
// // });
|
|
115
|
+
|
|
116
|
+
// // ws.on("error", (error) => {
|
|
117
|
+
// // console.error("WebSocket error:", error);
|
|
118
|
+
// // this.clients.delete(ws);
|
|
119
|
+
// // });
|
|
120
|
+
// // });
|
|
121
|
+
|
|
122
|
+
// // const httpPort = Number(process.env.HTTP_PORT) || 3000;
|
|
123
|
+
|
|
124
|
+
// // this.httpServer.on("error", (error) => {
|
|
125
|
+
// // console.error("HTTP server error:", error);
|
|
126
|
+
// // if ((error as any).code === "EADDRINUSE") {
|
|
127
|
+
// // console.error(
|
|
128
|
+
// // `Port ${httpPort} is already in use. Please use a different port.`
|
|
129
|
+
// // );
|
|
130
|
+
// // }
|
|
131
|
+
// // process.exit(-1);
|
|
132
|
+
// // });
|
|
133
|
+
|
|
134
|
+
// // this.httpServer.listen(httpPort, "0.0.0.0", () => {
|
|
135
|
+
// // console.log(`HTTP server running on http://localhost:${httpPort}`);
|
|
136
|
+
// // });
|
|
137
|
+
// }
|
|
138
|
+
|
|
139
|
+
// writeBigBoard = () => {
|
|
140
|
+
// // note: this path is different from the one used by front end
|
|
141
|
+
// const summaryPath = `./testeranto/reports/${this.projectName}/summary.json`;
|
|
142
|
+
// const summaryData = JSON.stringify(this.summary, null, 2);
|
|
143
|
+
// fs.writeFileSync(summaryPath, summaryData);
|
|
144
|
+
|
|
145
|
+
// // Broadcast the update
|
|
146
|
+
// this.webSocketBroadcastMessage({
|
|
147
|
+
// type: "summaryUpdate",
|
|
148
|
+
// data: this.summary,
|
|
149
|
+
// });
|
|
150
|
+
// };
|
|
151
|
+
|
|
152
|
+
// addPromiseProcess(
|
|
153
|
+
// processId: string,
|
|
154
|
+
// promise: Promise<any>,
|
|
155
|
+
// command: string,
|
|
156
|
+
// category: "aider" | "bdd-test" | "build-time" | "other" = "other",
|
|
157
|
+
// testName?: string,
|
|
158
|
+
// platform?: "node" | "web" | "pure" | "python" | "golang",
|
|
159
|
+
// onResolve?: (result: any) => void,
|
|
160
|
+
// onReject?: (error: any) => void
|
|
161
|
+
// ) {
|
|
162
|
+
// this.runningProcesses.set(processId, promise);
|
|
163
|
+
// this.allProcesses.set(processId, {
|
|
164
|
+
// promise,
|
|
165
|
+
// status: "running",
|
|
166
|
+
// command,
|
|
167
|
+
// timestamp: new Date().toISOString(),
|
|
168
|
+
// type: "promise",
|
|
169
|
+
// category,
|
|
170
|
+
// testName,
|
|
171
|
+
// platform,
|
|
172
|
+
// });
|
|
173
|
+
|
|
174
|
+
// // Initialize logs for this process
|
|
175
|
+
// this.processLogs.set(processId, []);
|
|
176
|
+
|
|
177
|
+
// const startMessage = `Starting: ${command}`;
|
|
178
|
+
// const logs = this.processLogs.get(processId) || [];
|
|
179
|
+
// logs.push(startMessage);
|
|
180
|
+
// this.processLogs.set(processId, logs);
|
|
181
|
+
|
|
182
|
+
// this.webSocketBroadcastMessage({
|
|
183
|
+
// type: "processStarted",
|
|
184
|
+
// processId,
|
|
185
|
+
// command,
|
|
186
|
+
// timestamp: new Date().toISOString(),
|
|
187
|
+
// logs: [startMessage],
|
|
188
|
+
// });
|
|
189
|
+
|
|
190
|
+
// promise
|
|
191
|
+
// .then((result) => {
|
|
192
|
+
// this.runningProcesses.delete(processId);
|
|
193
|
+
// const processInfo = this.allProcesses.get(processId);
|
|
194
|
+
// if (processInfo) {
|
|
195
|
+
// this.allProcesses.set(processId, {
|
|
196
|
+
// ...processInfo,
|
|
197
|
+
// status: "completed",
|
|
198
|
+
// exitCode: 0,
|
|
199
|
+
// });
|
|
200
|
+
// }
|
|
201
|
+
|
|
202
|
+
// // Add log entry for process completion
|
|
203
|
+
// const successMessage = `Completed successfully with result: ${JSON.stringify(
|
|
204
|
+
// result
|
|
205
|
+
// )}`;
|
|
206
|
+
// const currentLogs = this.processLogs.get(processId) || [];
|
|
207
|
+
// currentLogs.push(successMessage);
|
|
208
|
+
// this.processLogs.set(processId, currentLogs);
|
|
209
|
+
|
|
210
|
+
// this.webSocketBroadcastMessage({
|
|
211
|
+
// type: "processExited",
|
|
212
|
+
// processId,
|
|
213
|
+
// exitCode: 0,
|
|
214
|
+
// timestamp: new Date().toISOString(),
|
|
215
|
+
// logs: [successMessage],
|
|
216
|
+
// });
|
|
217
|
+
// if (onResolve) onResolve(result);
|
|
218
|
+
// })
|
|
219
|
+
// .catch((error) => {
|
|
220
|
+
// this.runningProcesses.delete(processId);
|
|
221
|
+
|
|
222
|
+
// const processInfo = this.allProcesses.get(processId);
|
|
223
|
+
// if (processInfo) {
|
|
224
|
+
// this.allProcesses.set(processId, {
|
|
225
|
+
// ...processInfo,
|
|
226
|
+
// status: "error",
|
|
227
|
+
// error: error.message,
|
|
228
|
+
// });
|
|
229
|
+
// }
|
|
230
|
+
|
|
231
|
+
// const errorMessage = `Failed with error: ${error.message}`;
|
|
232
|
+
// const currentLogs = this.processLogs.get(processId) || [];
|
|
233
|
+
// currentLogs.push(errorMessage);
|
|
234
|
+
// this.processLogs.set(processId, currentLogs);
|
|
235
|
+
|
|
236
|
+
// this.webSocketBroadcastMessage({
|
|
237
|
+
// type: "processError",
|
|
238
|
+
// processId,
|
|
239
|
+
// error: error.message,
|
|
240
|
+
// timestamp: new Date().toISOString(),
|
|
241
|
+
// logs: [errorMessage],
|
|
242
|
+
// });
|
|
243
|
+
// if (onReject) onReject(error);
|
|
244
|
+
// });
|
|
245
|
+
|
|
246
|
+
// return processId;
|
|
247
|
+
// }
|
|
248
|
+
|
|
249
|
+
// getProcessesByCategory(
|
|
250
|
+
// category: "aider" | "bdd-test" | "build-time" | "other"
|
|
251
|
+
// ) {
|
|
252
|
+
// return Array.from(this.allProcesses.entries())
|
|
253
|
+
// .filter(([id, procInfo]) => procInfo.category === category)
|
|
254
|
+
// .map(([id, procInfo]) => ({
|
|
255
|
+
// processId: id,
|
|
256
|
+
// command: procInfo.command,
|
|
257
|
+
// pid: procInfo.pid,
|
|
258
|
+
// status: procInfo.status,
|
|
259
|
+
// exitCode: procInfo.exitCode,
|
|
260
|
+
// error: procInfo.error,
|
|
261
|
+
// timestamp: procInfo.timestamp,
|
|
262
|
+
// category: procInfo.category,
|
|
263
|
+
// testName: procInfo.testName,
|
|
264
|
+
// platform: procInfo.platform,
|
|
265
|
+
// logs: this.processLogs.get(id) || [],
|
|
266
|
+
// }));
|
|
267
|
+
// }
|
|
268
|
+
|
|
269
|
+
// getBDDTestProcesses() {
|
|
270
|
+
// return this.getProcessesByCategory("bdd-test");
|
|
271
|
+
// }
|
|
272
|
+
|
|
273
|
+
// getBuildTimeProcesses() {
|
|
274
|
+
// return this.getProcessesByCategory("build-time");
|
|
275
|
+
// }
|
|
276
|
+
|
|
277
|
+
// getAiderProcesses() {
|
|
278
|
+
// return this.getProcessesByCategory("aider");
|
|
279
|
+
// }
|
|
280
|
+
|
|
281
|
+
// getProcessesByTestName(testName: string) {
|
|
282
|
+
// return Array.from(this.allProcesses.entries())
|
|
283
|
+
// .filter(([id, procInfo]) => procInfo.testName === testName)
|
|
284
|
+
// .map(([id, procInfo]) => ({
|
|
285
|
+
// processId: id,
|
|
286
|
+
// command: procInfo.command,
|
|
287
|
+
// pid: procInfo.pid,
|
|
288
|
+
// status: procInfo.status,
|
|
289
|
+
// exitCode: procInfo.exitCode,
|
|
290
|
+
// error: procInfo.error,
|
|
291
|
+
// timestamp: procInfo.timestamp,
|
|
292
|
+
// category: procInfo.category,
|
|
293
|
+
// testName: procInfo.testName,
|
|
294
|
+
// platform: procInfo.platform,
|
|
295
|
+
// logs: this.processLogs.get(id) || [],
|
|
296
|
+
// }));
|
|
297
|
+
// }
|
|
298
|
+
|
|
299
|
+
// getProcessesByPlatform(
|
|
300
|
+
// platform: "node" | "web" | "pure" | "pitono" | "golang"
|
|
301
|
+
// ) {
|
|
302
|
+
// return Array.from(this.allProcesses.entries())
|
|
303
|
+
// .filter(([id, procInfo]) => procInfo.platform === platform)
|
|
304
|
+
// .map(([id, procInfo]) => ({
|
|
305
|
+
// processId: id,
|
|
306
|
+
// command: procInfo.command,
|
|
307
|
+
// pid: procInfo.pid,
|
|
308
|
+
// status: procInfo.status,
|
|
309
|
+
// exitCode: procInfo.exitCode,
|
|
310
|
+
// error: procInfo.error,
|
|
311
|
+
// timestamp: procInfo.timestamp,
|
|
312
|
+
// category: procInfo.category,
|
|
313
|
+
// testName: procInfo.testName,
|
|
314
|
+
// platform: procInfo.platform,
|
|
315
|
+
// logs: this.processLogs.get(id) || [],
|
|
316
|
+
// }));
|
|
317
|
+
// }
|
|
318
|
+
|
|
319
|
+
// bddTestIsRunning(src: string) {
|
|
320
|
+
// // @ts-ignore
|
|
321
|
+
// this.summary[src] = {
|
|
322
|
+
// prompt: "?",
|
|
323
|
+
// runTimeErrors: "?",
|
|
324
|
+
// staticErrors: "?",
|
|
325
|
+
// typeErrors: "?",
|
|
326
|
+
// failingFeatures: {},
|
|
327
|
+
// };
|
|
328
|
+
// }
|
|
329
|
+
|
|
330
|
+
// abstract tscCheck({
|
|
331
|
+
// entrypoint,
|
|
332
|
+
// addableFiles,
|
|
333
|
+
// platform,
|
|
334
|
+
// }: {
|
|
335
|
+
// entrypoint: string;
|
|
336
|
+
// addableFiles: string[];
|
|
337
|
+
// platform: IRunTime;
|
|
338
|
+
// });
|
|
339
|
+
|
|
340
|
+
// abstract eslintCheck({
|
|
341
|
+
// entrypoint,
|
|
342
|
+
// addableFiles,
|
|
343
|
+
// platform,
|
|
344
|
+
// }: {
|
|
345
|
+
// entrypoint: string;
|
|
346
|
+
// addableFiles: string[];
|
|
347
|
+
// platform: IRunTime;
|
|
348
|
+
// });
|
|
349
|
+
|
|
350
|
+
// async metafileOutputs(platform: IRunTime) {
|
|
351
|
+
// let metafilePath: string;
|
|
352
|
+
// if (platform === "python") {
|
|
353
|
+
// metafilePath = `./testeranto/metafiles/python/core.json`;
|
|
354
|
+
// } else {
|
|
355
|
+
// metafilePath = `./testeranto/metafiles/${platform}/${this.projectName}.json`;
|
|
356
|
+
// }
|
|
357
|
+
|
|
358
|
+
// // Ensure the metafile exists
|
|
359
|
+
// if (!fs.existsSync(metafilePath)) {
|
|
360
|
+
// console.log(
|
|
361
|
+
// ansiC.yellow(`Metafile not found at ${metafilePath}, skipping`)
|
|
362
|
+
// );
|
|
363
|
+
// return;
|
|
364
|
+
// }
|
|
365
|
+
|
|
366
|
+
// let metafile;
|
|
367
|
+
// try {
|
|
368
|
+
// const fileContent = fs.readFileSync(metafilePath).toString();
|
|
369
|
+
// const parsedData = JSON.parse(fileContent);
|
|
370
|
+
// // Handle different metafile structures
|
|
371
|
+
// if (platform === "python") {
|
|
372
|
+
// // Pitono metafile might be the entire content or have a different structure
|
|
373
|
+
// metafile = parsedData.metafile || parsedData;
|
|
374
|
+
// } else {
|
|
375
|
+
// metafile = parsedData.metafile;
|
|
376
|
+
// }
|
|
377
|
+
// if (!metafile) {
|
|
378
|
+
// console.log(
|
|
379
|
+
// ansiC.yellow(ansiC.inverse(`No metafile found in ${metafilePath}`))
|
|
380
|
+
// );
|
|
381
|
+
// return;
|
|
382
|
+
// }
|
|
383
|
+
// // console.log(
|
|
384
|
+
// // ansiC.blue(
|
|
385
|
+
// // `Found metafile for ${platform} with ${
|
|
386
|
+
// // Object.keys(metafile.outputs || {}).length
|
|
387
|
+
// // } outputs`
|
|
388
|
+
// // )
|
|
389
|
+
// // );
|
|
390
|
+
// } catch (error) {
|
|
391
|
+
// console.error(`Error reading metafile at ${metafilePath}:`, error);
|
|
392
|
+
// return;
|
|
393
|
+
// }
|
|
394
|
+
|
|
395
|
+
// const outputs: IOutputs = metafile.outputs;
|
|
396
|
+
|
|
397
|
+
// // Check if outputs exists and is an object
|
|
398
|
+
// // if (!outputs || typeof outputs !== "object") {
|
|
399
|
+
// // console.log(
|
|
400
|
+
// // ansiC.yellow(
|
|
401
|
+
// // ansiC.inverse(`No outputs found in metafile at ${metafilePath}`)
|
|
402
|
+
// // )
|
|
403
|
+
// // );
|
|
404
|
+
// // return;
|
|
405
|
+
// // }
|
|
406
|
+
|
|
407
|
+
// // @ts-ignore
|
|
408
|
+
// Object.keys(outputs).forEach(async (k) => {
|
|
409
|
+
// const pattern = `testeranto/bundles/${platform}/${this.projectName}/${this.configs.src}`;
|
|
410
|
+
// if (!k.startsWith(pattern)) {
|
|
411
|
+
// return;
|
|
412
|
+
// }
|
|
413
|
+
|
|
414
|
+
// // // @ts-ignore
|
|
415
|
+
// const output = outputs[k];
|
|
416
|
+
// // Check if the output entry exists and has inputs
|
|
417
|
+
// // if (!output || !output.inputs) {
|
|
418
|
+
// // return;
|
|
419
|
+
// // }
|
|
420
|
+
|
|
421
|
+
// // @ts-ignore
|
|
422
|
+
// const addableFiles = Object.keys(output.inputs).filter((i) => {
|
|
423
|
+
// if (!fs.existsSync(i)) return false;
|
|
424
|
+
// if (i.startsWith("node_modules")) return false;
|
|
425
|
+
// if (i.startsWith("./node_modules")) return false;
|
|
426
|
+
|
|
427
|
+
// return true;
|
|
428
|
+
// });
|
|
429
|
+
|
|
430
|
+
// const f = `${k.split(".").slice(0, -1).join(".")}/`;
|
|
431
|
+
|
|
432
|
+
// if (!fs.existsSync(f)) {
|
|
433
|
+
// fs.mkdirSync(f, { recursive: true });
|
|
434
|
+
// }
|
|
435
|
+
|
|
436
|
+
// // @ts-ignore
|
|
437
|
+
// let entrypoint = output.entryPoint;
|
|
438
|
+
|
|
439
|
+
// if (entrypoint) {
|
|
440
|
+
// // Normalize the entrypoint path to ensure consistent comparison
|
|
441
|
+
// entrypoint = path.normalize(entrypoint);
|
|
442
|
+
|
|
443
|
+
// const changeDigest = await filesHash(addableFiles);
|
|
444
|
+
|
|
445
|
+
// if (changeDigest === changes[entrypoint]) {
|
|
446
|
+
// // skip
|
|
447
|
+
// } else {
|
|
448
|
+
// changes[entrypoint] = changeDigest;
|
|
449
|
+
|
|
450
|
+
// // Run appropriate static analysis based on platform
|
|
451
|
+
// if (
|
|
452
|
+
// platform === "node" ||
|
|
453
|
+
// platform === "web" ||
|
|
454
|
+
// platform === "pure"
|
|
455
|
+
// ) {
|
|
456
|
+
// this.tscCheck({ entrypoint, addableFiles, platform });
|
|
457
|
+
// this.eslintCheck({ entrypoint, addableFiles, platform });
|
|
458
|
+
// } else if (platform === "python") {
|
|
459
|
+
// this.pythonLintCheck(entrypoint, addableFiles);
|
|
460
|
+
// this.pythonTypeCheck(entrypoint, addableFiles);
|
|
461
|
+
// }
|
|
462
|
+
|
|
463
|
+
// makePrompt(
|
|
464
|
+
// this.summary,
|
|
465
|
+
// this.projectName,
|
|
466
|
+
// entrypoint,
|
|
467
|
+
// addableFiles,
|
|
468
|
+
// platform
|
|
469
|
+
// );
|
|
470
|
+
|
|
471
|
+
// const testName = this.findTestNameByEntrypoint(entrypoint, platform);
|
|
472
|
+
// if (testName) {
|
|
473
|
+
// console.log(
|
|
474
|
+
// ansiC.green(
|
|
475
|
+
// ansiC.inverse(
|
|
476
|
+
// `Source files changed, re-queueing test: ${testName}`
|
|
477
|
+
// )
|
|
478
|
+
// )
|
|
479
|
+
// );
|
|
480
|
+
// this.addToQueue(testName, platform);
|
|
481
|
+
// } else {
|
|
482
|
+
// console.error(
|
|
483
|
+
// `Could not find test for entrypoint: ${entrypoint} (${platform})`
|
|
484
|
+
// );
|
|
485
|
+
// process.exit(-1);
|
|
486
|
+
// }
|
|
487
|
+
// }
|
|
488
|
+
// }
|
|
489
|
+
// });
|
|
490
|
+
// }
|
|
491
|
+
|
|
492
|
+
// private findTestNameByEntrypoint(
|
|
493
|
+
// entrypoint: string,
|
|
494
|
+
// platform: IRunTime
|
|
495
|
+
// ): string | null {
|
|
496
|
+
// const runnables = getRunnables(this.configs.tests, this.projectName);
|
|
497
|
+
|
|
498
|
+
// let entryPointsMap: Record<string, string>;
|
|
499
|
+
|
|
500
|
+
// switch (platform) {
|
|
501
|
+
// case "node":
|
|
502
|
+
// entryPointsMap = runnables.nodeEntryPoints;
|
|
503
|
+
// break;
|
|
504
|
+
// case "web":
|
|
505
|
+
// entryPointsMap = runnables.webEntryPoints;
|
|
506
|
+
// break;
|
|
507
|
+
// case "pure":
|
|
508
|
+
// entryPointsMap = runnables.pureEntryPoints;
|
|
509
|
+
// break;
|
|
510
|
+
// case "python":
|
|
511
|
+
// entryPointsMap = runnables.pythonEntryPoints;
|
|
512
|
+
// break;
|
|
513
|
+
// case "golang":
|
|
514
|
+
// entryPointsMap = runnables.golangEntryPoints;
|
|
515
|
+
// break;
|
|
516
|
+
// default:
|
|
517
|
+
// throw "wtf";
|
|
518
|
+
// }
|
|
519
|
+
|
|
520
|
+
// if (!entryPointsMap) {
|
|
521
|
+
// console.error("idk");
|
|
522
|
+
// }
|
|
523
|
+
|
|
524
|
+
// if (!entryPointsMap[entrypoint]) {
|
|
525
|
+
// console.error(`${entrypoint} not found`);
|
|
526
|
+
// }
|
|
527
|
+
|
|
528
|
+
// return entryPointsMap[entrypoint];
|
|
529
|
+
// }
|
|
530
|
+
|
|
531
|
+
// async pythonLintCheck(entrypoint: string, addableFiles: string[]) {
|
|
532
|
+
// const reportDest = `testeranto/reports/${this.projectName}/${entrypoint
|
|
533
|
+
// .split(".")
|
|
534
|
+
// .slice(0, -1)
|
|
535
|
+
// .join(".")}/python`;
|
|
536
|
+
|
|
537
|
+
// if (!fs.existsSync(reportDest)) {
|
|
538
|
+
// fs.mkdirSync(reportDest, { recursive: true });
|
|
539
|
+
// }
|
|
540
|
+
|
|
541
|
+
// const lintErrorsPath = `${reportDest}/lint_errors.txt`;
|
|
542
|
+
|
|
543
|
+
// try {
|
|
544
|
+
// // Use flake8 for Python linting
|
|
545
|
+
// const { spawn } = await import("child_process");
|
|
546
|
+
// const child = spawn("flake8", [entrypoint, "--max-line-length=88"], {
|
|
547
|
+
// stdio: ["pipe", "pipe", "pipe"],
|
|
548
|
+
// });
|
|
549
|
+
|
|
550
|
+
// let stderr = "";
|
|
551
|
+
// child.stderr.on("data", (data) => {
|
|
552
|
+
// stderr += data.toString();
|
|
553
|
+
// });
|
|
554
|
+
|
|
555
|
+
// let stdout = "";
|
|
556
|
+
// child.stdout.on("data", (data) => {
|
|
557
|
+
// stdout += data.toString();
|
|
558
|
+
// });
|
|
559
|
+
|
|
560
|
+
// return new Promise<void>((resolve) => {
|
|
561
|
+
// child.on("close", () => {
|
|
562
|
+
// const output = stdout + stderr;
|
|
563
|
+
// if (output.trim()) {
|
|
564
|
+
// fs.writeFileSync(lintErrorsPath, output);
|
|
565
|
+
// this.summary[entrypoint].staticErrors = output.split("\n").length;
|
|
566
|
+
// } else {
|
|
567
|
+
// if (fs.existsSync(lintErrorsPath)) {
|
|
568
|
+
// fs.unlinkSync(lintErrorsPath);
|
|
569
|
+
// }
|
|
570
|
+
// this.summary[entrypoint].staticErrors = 0;
|
|
571
|
+
// }
|
|
572
|
+
// resolve();
|
|
573
|
+
// });
|
|
574
|
+
// });
|
|
575
|
+
// } catch (error) {
|
|
576
|
+
// console.error(`Error running flake8 on ${entrypoint}:`, error);
|
|
577
|
+
// fs.writeFileSync(
|
|
578
|
+
// lintErrorsPath,
|
|
579
|
+
// `Error running flake8: ${error.message}`
|
|
580
|
+
// );
|
|
581
|
+
// this.summary[entrypoint].staticErrors = -1;
|
|
582
|
+
// }
|
|
583
|
+
// }
|
|
584
|
+
|
|
585
|
+
// async pythonTypeCheck(entrypoint: string, addableFiles: string[]) {
|
|
586
|
+
// const reportDest = `testeranto/reports/${this.projectName}/${entrypoint
|
|
587
|
+
// .split(".")
|
|
588
|
+
// .slice(0, -1)
|
|
589
|
+
// .join(".")}/python`;
|
|
590
|
+
|
|
591
|
+
// if (!fs.existsSync(reportDest)) {
|
|
592
|
+
// fs.mkdirSync(reportDest, { recursive: true });
|
|
593
|
+
// }
|
|
594
|
+
|
|
595
|
+
// const typeErrorsPath = `${reportDest}/type_errors.txt`;
|
|
596
|
+
|
|
597
|
+
// try {
|
|
598
|
+
// // Use mypy for Python type checking
|
|
599
|
+
// const { spawn } = await import("child_process");
|
|
600
|
+
// const child = spawn("mypy", [entrypoint], {
|
|
601
|
+
// stdio: ["pipe", "pipe", "pipe"],
|
|
602
|
+
// });
|
|
603
|
+
|
|
604
|
+
// let stderr = "";
|
|
605
|
+
// child.stderr.on("data", (data) => {
|
|
606
|
+
// stderr += data.toString();
|
|
607
|
+
// });
|
|
608
|
+
|
|
609
|
+
// let stdout = "";
|
|
610
|
+
// child.stdout.on("data", (data) => {
|
|
611
|
+
// stdout += data.toString();
|
|
612
|
+
// });
|
|
613
|
+
|
|
614
|
+
// return new Promise<void>((resolve) => {
|
|
615
|
+
// child.on("close", () => {
|
|
616
|
+
// const output = stdout + stderr;
|
|
617
|
+
// if (output.trim()) {
|
|
618
|
+
// fs.writeFileSync(typeErrorsPath, output);
|
|
619
|
+
// this.summary[entrypoint].typeErrors = output.split("\n").length;
|
|
620
|
+
// } else {
|
|
621
|
+
// if (fs.existsSync(typeErrorsPath)) {
|
|
622
|
+
// fs.unlinkSync(typeErrorsPath);
|
|
623
|
+
// }
|
|
624
|
+
// this.summary[entrypoint].typeErrors = 0;
|
|
625
|
+
// }
|
|
626
|
+
// resolve();
|
|
627
|
+
// });
|
|
628
|
+
// });
|
|
629
|
+
// } catch (error) {
|
|
630
|
+
// console.error(`Error running mypy on ${entrypoint}:`, error);
|
|
631
|
+
// fs.writeFileSync(typeErrorsPath, `Error running mypy: ${error.message}`);
|
|
632
|
+
// this.summary[entrypoint].typeErrors = -1;
|
|
633
|
+
// }
|
|
634
|
+
// }
|
|
635
|
+
|
|
636
|
+
// abstract onBuildDone(): void;
|
|
637
|
+
|
|
638
|
+
// async start() {
|
|
639
|
+
// // Wait for build processes to complete first
|
|
640
|
+
// try {
|
|
641
|
+
// await this.startBuildProcesses();
|
|
642
|
+
|
|
643
|
+
// // Generate Python metafile if there are Python tests
|
|
644
|
+
// const pythonTests = this.configs.tests.filter(
|
|
645
|
+
// (test) => test[1] === "python"
|
|
646
|
+
// );
|
|
647
|
+
// if (pythonTests.length > 0) {
|
|
648
|
+
// const { generatePitonoMetafile, writePitonoMetafile } = await import(
|
|
649
|
+
// "../../utils/pitonoMetafile.js"
|
|
650
|
+
// );
|
|
651
|
+
// const entryPoints = pythonTests.map((test) => test[0]);
|
|
652
|
+
// const metafile = await generatePitonoMetafile(
|
|
653
|
+
// this.projectName,
|
|
654
|
+
// entryPoints
|
|
655
|
+
// );
|
|
656
|
+
// writePitonoMetafile(this.projectName, metafile);
|
|
657
|
+
// }
|
|
658
|
+
|
|
659
|
+
// this.onBuildDone();
|
|
660
|
+
// } catch (error) {
|
|
661
|
+
// console.error("Build processes failed:", error);
|
|
662
|
+
// return;
|
|
663
|
+
// }
|
|
664
|
+
|
|
665
|
+
// // Continue with the rest of the setup after builds are done
|
|
666
|
+
// this.mapping().forEach(async ([command, func]) => {
|
|
667
|
+
// globalThis[command] = func;
|
|
668
|
+
// });
|
|
669
|
+
|
|
670
|
+
// if (!fs.existsSync(`testeranto/reports/${this.projectName}`)) {
|
|
671
|
+
// fs.mkdirSync(`testeranto/reports/${this.projectName}`);
|
|
672
|
+
// }
|
|
673
|
+
|
|
674
|
+
// try {
|
|
675
|
+
// this.browser = await puppeteer.launch(puppeteerConfigs);
|
|
676
|
+
// } catch (e) {
|
|
677
|
+
// console.error(e);
|
|
678
|
+
// console.error(
|
|
679
|
+
// "could not start chrome via puppeter. Check this path: ",
|
|
680
|
+
// executablePath
|
|
681
|
+
// );
|
|
682
|
+
// }
|
|
683
|
+
|
|
684
|
+
// const runnables = getRunnables(this.configs.tests, this.projectName);
|
|
685
|
+
// const {
|
|
686
|
+
// nodeEntryPoints,
|
|
687
|
+
// webEntryPoints,
|
|
688
|
+
// pureEntryPoints,
|
|
689
|
+
// pythonEntryPoints,
|
|
690
|
+
// golangEntryPoints,
|
|
691
|
+
// } = runnables;
|
|
692
|
+
|
|
693
|
+
// // Add all tests to the queue
|
|
694
|
+
// [
|
|
695
|
+
// ["node", nodeEntryPoints],
|
|
696
|
+
// ["web", webEntryPoints],
|
|
697
|
+
// ["pure", pureEntryPoints],
|
|
698
|
+
// ["python", pythonEntryPoints],
|
|
699
|
+
// ["golang", golangEntryPoints],
|
|
700
|
+
// ].forEach(([runtime, entryPoints]: [IRunTime, Record<string, string>]) => {
|
|
701
|
+
// Object.keys(entryPoints).forEach((entryPoint) => {
|
|
702
|
+
// // Create the report directory
|
|
703
|
+
// const reportDest = `testeranto/reports/${this.projectName}/${entryPoint
|
|
704
|
+
// .split(".")
|
|
705
|
+
// .slice(0, -1)
|
|
706
|
+
// .join(".")}/${runtime}`;
|
|
707
|
+
// if (!fs.existsSync(reportDest)) {
|
|
708
|
+
// fs.mkdirSync(reportDest, { recursive: true });
|
|
709
|
+
// }
|
|
710
|
+
|
|
711
|
+
// // Add to the processing queue
|
|
712
|
+
// this.addToQueue(entryPoint, runtime);
|
|
713
|
+
// });
|
|
714
|
+
// });
|
|
715
|
+
|
|
716
|
+
// // Set up metafile watchers for each runtime
|
|
717
|
+
// const runtimeConfigs = [
|
|
718
|
+
// ["node", nodeEntryPoints],
|
|
719
|
+
// ["web", webEntryPoints],
|
|
720
|
+
// ["pure", pureEntryPoints],
|
|
721
|
+
// ["python", pythonEntryPoints],
|
|
722
|
+
// ["golang", golangEntryPoints],
|
|
723
|
+
// ];
|
|
724
|
+
|
|
725
|
+
// for (const [runtime, entryPoints] of runtimeConfigs) {
|
|
726
|
+
// if (Object.keys(entryPoints).length === 0) continue;
|
|
727
|
+
|
|
728
|
+
// // For python, the metafile path is different
|
|
729
|
+
// let metafile: string;
|
|
730
|
+
// if (runtime === "python") {
|
|
731
|
+
// metafile = `./testeranto/metafiles/${runtime}/core.json`;
|
|
732
|
+
// } else {
|
|
733
|
+
// metafile = `./testeranto/metafiles/${runtime}/${this.projectName}.json`;
|
|
734
|
+
// }
|
|
735
|
+
|
|
736
|
+
// // Ensure the directory exists
|
|
737
|
+
// const metafileDir = metafile.split("/").slice(0, -1).join("/");
|
|
738
|
+
// if (!fs.existsSync(metafileDir)) {
|
|
739
|
+
// fs.mkdirSync(metafileDir, { recursive: true });
|
|
740
|
+
// }
|
|
741
|
+
|
|
742
|
+
// try {
|
|
743
|
+
// // For python, we may need to generate the metafile first
|
|
744
|
+
// if (runtime === "python" && !fs.existsSync(metafile)) {
|
|
745
|
+
// const { generatePitonoMetafile, writePitonoMetafile } = await import(
|
|
746
|
+
// "../../utils/pitonoMetafile.js"
|
|
747
|
+
// );
|
|
748
|
+
// const entryPointList = Object.keys(entryPoints);
|
|
749
|
+
// if (entryPointList.length > 0) {
|
|
750
|
+
// const metafileData = await generatePitonoMetafile(
|
|
751
|
+
// this.projectName,
|
|
752
|
+
// entryPointList
|
|
753
|
+
// );
|
|
754
|
+
// writePitonoMetafile(this.projectName, metafileData);
|
|
755
|
+
// }
|
|
756
|
+
// }
|
|
757
|
+
|
|
758
|
+
// await pollForFile(metafile);
|
|
759
|
+
// // console.log("Found metafile for", runtime, metafile);
|
|
760
|
+
|
|
761
|
+
// // Set up watcher for the metafile with debouncing
|
|
762
|
+
// let timeoutId: NodeJS.Timeout;
|
|
763
|
+
// const watcher = watch(metafile, async (e, filename) => {
|
|
764
|
+
// // Debounce to avoid multiple rapid triggers
|
|
765
|
+
// clearTimeout(timeoutId);
|
|
766
|
+
// timeoutId = setTimeout(async () => {
|
|
767
|
+
// console.log(
|
|
768
|
+
// ansiC.yellow(ansiC.inverse(`< ${e} ${filename} (${runtime})`))
|
|
769
|
+
// );
|
|
770
|
+
// try {
|
|
771
|
+
// await this.metafileOutputs(runtime as IRunTime);
|
|
772
|
+
// // After processing metafile changes, check the queue to run tests
|
|
773
|
+
// console.log(
|
|
774
|
+
// ansiC.blue(
|
|
775
|
+
// `Metafile processed, checking queue for tests to run`
|
|
776
|
+
// )
|
|
777
|
+
// );
|
|
778
|
+
// this.checkQueue();
|
|
779
|
+
// } catch (error) {
|
|
780
|
+
// console.error(`Error processing metafile changes:`, error);
|
|
781
|
+
// }
|
|
782
|
+
// }, 300); // 300ms debounce
|
|
783
|
+
// });
|
|
784
|
+
|
|
785
|
+
// // Store the watcher based on runtime
|
|
786
|
+
// switch (runtime) {
|
|
787
|
+
// case "node":
|
|
788
|
+
// this.nodeMetafileWatcher = watcher;
|
|
789
|
+
// break;
|
|
790
|
+
// case "web":
|
|
791
|
+
// this.webMetafileWatcher = watcher;
|
|
792
|
+
// break;
|
|
793
|
+
// case "pure":
|
|
794
|
+
// this.importMetafileWatcher = watcher;
|
|
795
|
+
// break;
|
|
796
|
+
// case "python":
|
|
797
|
+
// this.pitonoMetafileWatcher = watcher;
|
|
798
|
+
// break;
|
|
799
|
+
// case "golang":
|
|
800
|
+
// this.golangMetafileWatcher = watcher;
|
|
801
|
+
// break;
|
|
802
|
+
// }
|
|
803
|
+
|
|
804
|
+
// // Read the metafile immediately
|
|
805
|
+
// await this.metafileOutputs(runtime as IRunTime);
|
|
806
|
+
// } catch (error) {
|
|
807
|
+
// console.error(`Error setting up watcher for ${runtime}:`, error);
|
|
808
|
+
// }
|
|
809
|
+
// }
|
|
810
|
+
// }
|
|
811
|
+
|
|
812
|
+
// async stop() {
|
|
813
|
+
// console.log(ansiC.inverse("Testeranto-Run is shutting down gracefully..."));
|
|
814
|
+
// this.mode = "once";
|
|
815
|
+
// this.nodeMetafileWatcher.close();
|
|
816
|
+
// this.webMetafileWatcher.close();
|
|
817
|
+
// this.importMetafileWatcher.close();
|
|
818
|
+
// if (this.pitonoMetafileWatcher) {
|
|
819
|
+
// this.pitonoMetafileWatcher.close();
|
|
820
|
+
// }
|
|
821
|
+
|
|
822
|
+
// // if (this.gitWatcher) {
|
|
823
|
+
// // this.gitWatcher.close();
|
|
824
|
+
// // }
|
|
825
|
+
|
|
826
|
+
// // if (this.gitWatchTimeout) {
|
|
827
|
+
// // clearTimeout(this.gitWatchTimeout);
|
|
828
|
+
// // }
|
|
829
|
+
|
|
830
|
+
// Object.values(this.logStreams || {}).forEach((logs) => logs.closeAll());
|
|
831
|
+
|
|
832
|
+
// if (this.wss) {
|
|
833
|
+
// this.wss.close(() => {
|
|
834
|
+
// console.log("WebSocket server closed");
|
|
835
|
+
// });
|
|
836
|
+
// }
|
|
837
|
+
|
|
838
|
+
// this.clients.forEach((client) => {
|
|
839
|
+
// client.terminate();
|
|
840
|
+
// });
|
|
841
|
+
// this.clients.clear();
|
|
842
|
+
|
|
843
|
+
// if (this.httpServer) {
|
|
844
|
+
// this.httpServer.close(() => {
|
|
845
|
+
// console.log("HTTP server closed");
|
|
846
|
+
// });
|
|
847
|
+
// }
|
|
848
|
+
// this.checkForShutdown();
|
|
849
|
+
// }
|
|
850
|
+
|
|
851
|
+
// receiveFeaturesV2 = (
|
|
852
|
+
// reportDest: string,
|
|
853
|
+
// srcTest: string,
|
|
854
|
+
// platform: IRunTime
|
|
855
|
+
// ) => {
|
|
856
|
+
// const featureDestination = path.resolve(
|
|
857
|
+
// process.cwd(),
|
|
858
|
+
// "reports",
|
|
859
|
+
// "features",
|
|
860
|
+
// "strings",
|
|
861
|
+
// srcTest.split(".").slice(0, -1).join(".") + ".features.txt"
|
|
862
|
+
// );
|
|
863
|
+
|
|
864
|
+
// const testReportPath = `${reportDest}/tests.json`;
|
|
865
|
+
// if (!fs.existsSync(testReportPath)) {
|
|
866
|
+
// console.error(`tests.json not found at: ${testReportPath}`);
|
|
867
|
+
// return;
|
|
868
|
+
// }
|
|
869
|
+
|
|
870
|
+
// const testReport = JSON.parse(fs.readFileSync(testReportPath, "utf8"));
|
|
871
|
+
|
|
872
|
+
// // Add full path information to each test
|
|
873
|
+
// if (testReport.tests) {
|
|
874
|
+
// testReport.tests.forEach((test) => {
|
|
875
|
+
// // Add the full path to each test
|
|
876
|
+
// test.fullPath = path.resolve(process.cwd(), srcTest);
|
|
877
|
+
// });
|
|
878
|
+
// }
|
|
879
|
+
|
|
880
|
+
// // Add full path to the report itself
|
|
881
|
+
// testReport.fullPath = path.resolve(process.cwd(), srcTest);
|
|
882
|
+
|
|
883
|
+
// // Write the modified report back
|
|
884
|
+
// fs.writeFileSync(testReportPath, JSON.stringify(testReport, null, 2));
|
|
885
|
+
|
|
886
|
+
// testReport.features
|
|
887
|
+
// .reduce(async (mm, featureStringKey) => {
|
|
888
|
+
// const accum = await mm;
|
|
889
|
+
|
|
890
|
+
// const isUrl = isValidUrl(featureStringKey);
|
|
891
|
+
|
|
892
|
+
// if (isUrl) {
|
|
893
|
+
// const u = new URL(featureStringKey);
|
|
894
|
+
|
|
895
|
+
// if (u.protocol === "file:") {
|
|
896
|
+
// accum.files.push(u.pathname);
|
|
897
|
+
// } else if (u.protocol === "http:" || u.protocol === "https:") {
|
|
898
|
+
// const newPath = `${process.cwd()}/testeranto/features/external/${
|
|
899
|
+
// u.hostname
|
|
900
|
+
// }${u.pathname}`;
|
|
901
|
+
|
|
902
|
+
// const body = await this.configs.featureIngestor(featureStringKey);
|
|
903
|
+
|
|
904
|
+
// writeFileAndCreateDir(newPath, body);
|
|
905
|
+
// accum.files.push(newPath);
|
|
906
|
+
// }
|
|
907
|
+
// } else {
|
|
908
|
+
// await fs.promises.mkdir(path.dirname(featureDestination), {
|
|
909
|
+
// recursive: true,
|
|
910
|
+
// });
|
|
911
|
+
|
|
912
|
+
// accum.strings.push(featureStringKey);
|
|
913
|
+
// }
|
|
914
|
+
|
|
915
|
+
// return accum;
|
|
916
|
+
// }, Promise.resolve({ files: [] as string[], strings: [] as string[] }))
|
|
917
|
+
|
|
918
|
+
// .then(({ files }: { files: string[]; strings: string[] }) => {
|
|
919
|
+
// // Markdown files must be referenced in the prompt but string style features are already present in the tests.json file
|
|
920
|
+
|
|
921
|
+
// fs.writeFileSync(
|
|
922
|
+
// `testeranto/reports/${this.projectName}/${srcTest
|
|
923
|
+
// .split(".")
|
|
924
|
+
// .slice(0, -1)
|
|
925
|
+
// .join(".")}/${platform}/featurePrompt.txt`,
|
|
926
|
+
// files
|
|
927
|
+
// .map((f) => {
|
|
928
|
+
// return `/read ${f}`;
|
|
929
|
+
// })
|
|
930
|
+
// .join("\n")
|
|
931
|
+
// );
|
|
932
|
+
// });
|
|
933
|
+
|
|
934
|
+
// testReport.givens.forEach((g) => {
|
|
935
|
+
// if (g.failed === true) {
|
|
936
|
+
// // @ts-ignore
|
|
937
|
+
// this.summary[srcTest].failingFeatures[g.key] = g.features;
|
|
938
|
+
// }
|
|
939
|
+
// });
|
|
940
|
+
|
|
941
|
+
// this.writeBigBoard();
|
|
942
|
+
// };
|
|
943
|
+
|
|
944
|
+
// addToQueue(src: string, runtime: IRunTime) {
|
|
945
|
+
// // Ensure we're using the original test source path, not a bundle path
|
|
946
|
+
// // The src parameter might be a bundle path from metafile changes
|
|
947
|
+
// // We need to find the corresponding test source path
|
|
948
|
+
|
|
949
|
+
// // First, check if this looks like a bundle path (contains 'testeranto/bundles')
|
|
950
|
+
// if (src.includes("testeranto/bundles")) {
|
|
951
|
+
// // Try to find the original test name that corresponds to this bundle
|
|
952
|
+
// const runnables = getRunnables(this.configs.tests, this.projectName);
|
|
953
|
+
// const allEntryPoints = [
|
|
954
|
+
// ...Object.entries(runnables.nodeEntryPoints),
|
|
955
|
+
// ...Object.entries(runnables.webEntryPoints),
|
|
956
|
+
// ...Object.entries(runnables.pureEntryPoints),
|
|
957
|
+
// ...Object.entries(runnables.pythonEntryPoints),
|
|
958
|
+
// ...Object.entries(runnables.golangEntryPoints),
|
|
959
|
+
// ];
|
|
960
|
+
|
|
961
|
+
// // Normalize the source path for comparison
|
|
962
|
+
// const normalizedSrc = path.normalize(src);
|
|
963
|
+
|
|
964
|
+
// for (const [testName, bundlePath] of allEntryPoints) {
|
|
965
|
+
// const normalizedBundlePath = path.normalize(bundlePath as string);
|
|
966
|
+
// // Check if the source path ends with the bundle path
|
|
967
|
+
// if (normalizedSrc.endsWith(normalizedBundlePath)) {
|
|
968
|
+
// // Use the original test name instead of the bundle path
|
|
969
|
+
// src = testName;
|
|
970
|
+
// break;
|
|
971
|
+
// }
|
|
972
|
+
// }
|
|
973
|
+
// }
|
|
974
|
+
|
|
975
|
+
// // First, clean up any existing processes for this test
|
|
976
|
+
// this.cleanupTestProcesses(src);
|
|
977
|
+
|
|
978
|
+
// // Add the test to the queue (using the original test source path)
|
|
979
|
+
// // Make sure we don't add duplicates
|
|
980
|
+
// if (!this.queue.includes(src)) {
|
|
981
|
+
// this.queue.push(src);
|
|
982
|
+
// console.log(
|
|
983
|
+
// ansiC.green(
|
|
984
|
+
// ansiC.inverse(`Added ${src} (${runtime}) to the processing queue`)
|
|
985
|
+
// )
|
|
986
|
+
// );
|
|
987
|
+
// // Try to process the queue
|
|
988
|
+
// this.checkQueue();
|
|
989
|
+
// } else {
|
|
990
|
+
// console.log(
|
|
991
|
+
// ansiC.yellow(
|
|
992
|
+
// ansiC.inverse(`Test ${src} is already in the queue, skipping`)
|
|
993
|
+
// )
|
|
994
|
+
// );
|
|
995
|
+
// }
|
|
996
|
+
// }
|
|
997
|
+
|
|
998
|
+
// private cleanupTestProcesses(testName: string) {
|
|
999
|
+
// // Find and clean up any running processes for this test
|
|
1000
|
+
// const processesToCleanup: string[] = [];
|
|
1001
|
+
|
|
1002
|
+
// // Find all process IDs that match this test name
|
|
1003
|
+
// for (const [processId, processInfo] of this.allProcesses.entries()) {
|
|
1004
|
+
// if (
|
|
1005
|
+
// processInfo.testName === testName &&
|
|
1006
|
+
// processInfo.status === "running"
|
|
1007
|
+
// ) {
|
|
1008
|
+
// processesToCleanup.push(processId);
|
|
1009
|
+
// }
|
|
1010
|
+
// }
|
|
1011
|
+
|
|
1012
|
+
// // Clean up each process
|
|
1013
|
+
// processesToCleanup.forEach((processId) => {
|
|
1014
|
+
// const processInfo = this.allProcesses.get(processId);
|
|
1015
|
+
// if (processInfo) {
|
|
1016
|
+
// // Kill child process if it exists
|
|
1017
|
+
// if (processInfo.child) {
|
|
1018
|
+
// try {
|
|
1019
|
+
// processInfo.child.kill();
|
|
1020
|
+
// } catch (error) {
|
|
1021
|
+
// console.error(`Error killing process ${processId}:`, error);
|
|
1022
|
+
// }
|
|
1023
|
+
// }
|
|
1024
|
+
|
|
1025
|
+
// // Update process status
|
|
1026
|
+
// this.allProcesses.set(processId, {
|
|
1027
|
+
// ...processInfo,
|
|
1028
|
+
// status: "exited",
|
|
1029
|
+
// exitCode: -1,
|
|
1030
|
+
// error: "Killed due to source file change",
|
|
1031
|
+
// });
|
|
1032
|
+
|
|
1033
|
+
// // Remove from running processes
|
|
1034
|
+
// this.runningProcesses.delete(processId);
|
|
1035
|
+
|
|
1036
|
+
// // Broadcast process exit
|
|
1037
|
+
// this.webSocketBroadcastMessage({
|
|
1038
|
+
// type: "processExited",
|
|
1039
|
+
// processId,
|
|
1040
|
+
// exitCode: -1,
|
|
1041
|
+
// timestamp: new Date().toISOString(),
|
|
1042
|
+
// logs: ["Process killed due to source file change"],
|
|
1043
|
+
// });
|
|
1044
|
+
// }
|
|
1045
|
+
// });
|
|
1046
|
+
// }
|
|
1047
|
+
|
|
1048
|
+
// checkQueue() {
|
|
1049
|
+
// // Process all items in the queue
|
|
1050
|
+
// while (this.queue.length > 0) {
|
|
1051
|
+
// const x = this.queue.pop();
|
|
1052
|
+
// if (!x) continue;
|
|
1053
|
+
|
|
1054
|
+
// // Check if this test is already running
|
|
1055
|
+
// let isRunning = false;
|
|
1056
|
+
// for (const processInfo of this.allProcesses.values()) {
|
|
1057
|
+
// if (processInfo.testName === x && processInfo.status === "running") {
|
|
1058
|
+
// isRunning = true;
|
|
1059
|
+
// break;
|
|
1060
|
+
// }
|
|
1061
|
+
// }
|
|
1062
|
+
|
|
1063
|
+
// if (isRunning) {
|
|
1064
|
+
// console.log(
|
|
1065
|
+
// ansiC.yellow(
|
|
1066
|
+
// `Skipping ${x} - already running, will be re-queued when current run completes`
|
|
1067
|
+
// )
|
|
1068
|
+
// );
|
|
1069
|
+
// continue;
|
|
1070
|
+
// }
|
|
1071
|
+
|
|
1072
|
+
// const test = this.configs.tests.find((t) => t[0] === x);
|
|
1073
|
+
// if (!test) {
|
|
1074
|
+
// console.error(`test is undefined ${x}`);
|
|
1075
|
+
// continue;
|
|
1076
|
+
// }
|
|
1077
|
+
|
|
1078
|
+
// // Get the appropriate launcher based on the runtime type
|
|
1079
|
+
// const runtime = test[1];
|
|
1080
|
+
|
|
1081
|
+
// const runnables = getRunnables(this.configs.tests, this.projectName);
|
|
1082
|
+
// let dest: string;
|
|
1083
|
+
|
|
1084
|
+
// switch (runtime) {
|
|
1085
|
+
// case "node":
|
|
1086
|
+
// dest = runnables.nodeEntryPoints[x];
|
|
1087
|
+
// if (dest) {
|
|
1088
|
+
// this.launchNode(x, dest);
|
|
1089
|
+
// } else {
|
|
1090
|
+
// console.error(`No destination found for node test: ${x}`);
|
|
1091
|
+
// }
|
|
1092
|
+
// break;
|
|
1093
|
+
// case "web":
|
|
1094
|
+
// dest = runnables.webEntryPoints[x];
|
|
1095
|
+
// if (dest) {
|
|
1096
|
+
// this.launchWeb(x, dest);
|
|
1097
|
+
// } else {
|
|
1098
|
+
// console.error(`No destination found for web test: ${x}`);
|
|
1099
|
+
// }
|
|
1100
|
+
// break;
|
|
1101
|
+
// case "pure":
|
|
1102
|
+
// dest = runnables.pureEntryPoints[x];
|
|
1103
|
+
// if (dest) {
|
|
1104
|
+
// this.launchPure(x, dest);
|
|
1105
|
+
// } else {
|
|
1106
|
+
// console.error(`No destination found for pure test: ${x}`);
|
|
1107
|
+
// }
|
|
1108
|
+
// break;
|
|
1109
|
+
// case "python":
|
|
1110
|
+
// dest = runnables.pythonEntryPoints[x];
|
|
1111
|
+
// if (dest) {
|
|
1112
|
+
// this.launchPython(x, dest);
|
|
1113
|
+
// } else {
|
|
1114
|
+
// console.error(`No destination found for python test: ${x}`);
|
|
1115
|
+
// }
|
|
1116
|
+
// break;
|
|
1117
|
+
// case "golang":
|
|
1118
|
+
// dest = runnables.golangEntryPoints[x];
|
|
1119
|
+
// if (dest) {
|
|
1120
|
+
// // For Golang, we need to build and run the executable
|
|
1121
|
+
// // The dest is the path to the generated wrapper file
|
|
1122
|
+
// this.launchGolang(x, dest);
|
|
1123
|
+
// } else {
|
|
1124
|
+
// console.error(`No destination found for golang test: ${x}`);
|
|
1125
|
+
// }
|
|
1126
|
+
// break;
|
|
1127
|
+
// default:
|
|
1128
|
+
// console.error(`Unknown runtime: ${runtime} for test ${x}`);
|
|
1129
|
+
// break;
|
|
1130
|
+
// }
|
|
1131
|
+
// }
|
|
1132
|
+
|
|
1133
|
+
// if (this.queue.length === 0) {
|
|
1134
|
+
// console.log(ansiC.inverse(`The queue is empty`));
|
|
1135
|
+
// }
|
|
1136
|
+
// }
|
|
1137
|
+
|
|
1138
|
+
// checkForShutdown = () => {
|
|
1139
|
+
// this.checkQueue();
|
|
1140
|
+
|
|
1141
|
+
// console.log(
|
|
1142
|
+
// ansiC.inverse(
|
|
1143
|
+
// `The following jobs are awaiting resources: ${JSON.stringify(
|
|
1144
|
+
// this.queue
|
|
1145
|
+
// )}`
|
|
1146
|
+
// )
|
|
1147
|
+
// );
|
|
1148
|
+
// console.log(
|
|
1149
|
+
// ansiC.inverse(`The status of ports: ${JSON.stringify(this.ports)}`)
|
|
1150
|
+
// );
|
|
1151
|
+
|
|
1152
|
+
// this.writeBigBoard();
|
|
1153
|
+
|
|
1154
|
+
// if (this.mode === "dev") return;
|
|
1155
|
+
|
|
1156
|
+
// let inflight = false;
|
|
1157
|
+
|
|
1158
|
+
// Object.keys(this.summary).forEach((k) => {
|
|
1159
|
+
// if (this.summary[k].prompt === "?") {
|
|
1160
|
+
// console.log(ansiC.blue(ansiC.inverse(`🕕 prompt ${k}`)));
|
|
1161
|
+
// inflight = true;
|
|
1162
|
+
// }
|
|
1163
|
+
// });
|
|
1164
|
+
|
|
1165
|
+
// Object.keys(this.summary).forEach((k) => {
|
|
1166
|
+
// if (this.summary[k].runTimeErrors === "?") {
|
|
1167
|
+
// console.log(ansiC.blue(ansiC.inverse(`🕕 runTimeError ${k}`)));
|
|
1168
|
+
// inflight = true;
|
|
1169
|
+
// }
|
|
1170
|
+
// });
|
|
1171
|
+
|
|
1172
|
+
// Object.keys(this.summary).forEach((k) => {
|
|
1173
|
+
// if (this.summary[k].staticErrors === "?") {
|
|
1174
|
+
// console.log(ansiC.blue(ansiC.inverse(`🕕 staticErrors ${k}`)));
|
|
1175
|
+
// inflight = true;
|
|
1176
|
+
// }
|
|
1177
|
+
// });
|
|
1178
|
+
|
|
1179
|
+
// Object.keys(this.summary).forEach((k) => {
|
|
1180
|
+
// if (this.summary[k].typeErrors === "?") {
|
|
1181
|
+
// console.log(ansiC.blue(ansiC.inverse(`🕕 typeErrors ${k}`)));
|
|
1182
|
+
// inflight = true;
|
|
1183
|
+
// }
|
|
1184
|
+
// });
|
|
1185
|
+
|
|
1186
|
+
// this.writeBigBoard();
|
|
1187
|
+
|
|
1188
|
+
// if (!inflight) {
|
|
1189
|
+
// if (this.browser) {
|
|
1190
|
+
// if (this.browser) {
|
|
1191
|
+
// this.browser.disconnect().then(() => {
|
|
1192
|
+
// console.log(
|
|
1193
|
+
// ansiC.inverse(`${this.projectName} has been tested. Goodbye.`)
|
|
1194
|
+
// );
|
|
1195
|
+
// process.exit();
|
|
1196
|
+
// });
|
|
1197
|
+
// }
|
|
1198
|
+
// }
|
|
1199
|
+
// }
|
|
1200
|
+
// };
|
|
1201
|
+
|
|
1202
|
+
// private ensureSummaryEntry(src: string, isSidecar = false) {
|
|
1203
|
+
// if (!this.summary[src]) {
|
|
1204
|
+
// // @ts-ignore
|
|
1205
|
+
// this.summary[src] = {
|
|
1206
|
+
// typeErrors: undefined,
|
|
1207
|
+
// staticErrors: undefined,
|
|
1208
|
+
// runTimeErrors: undefined,
|
|
1209
|
+
// prompt: undefined,
|
|
1210
|
+
// failingFeatures: {},
|
|
1211
|
+
// };
|
|
1212
|
+
// if (isSidecar) {
|
|
1213
|
+
// // Sidecars don't need all fields
|
|
1214
|
+
// // delete this.summary[src].runTimeError;
|
|
1215
|
+
// // delete this.summary[src].prompt;
|
|
1216
|
+
// }
|
|
1217
|
+
// }
|
|
1218
|
+
// return this.summary[src];
|
|
1219
|
+
// }
|
|
1220
|
+
|
|
1221
|
+
// websocket(data: RawData) {
|
|
1222
|
+
// const message: WebSocketMessage = JSON.parse(data.toString());
|
|
1223
|
+
// if (message.type === "chatMessage") {
|
|
1224
|
+
// // Always record the message, even if aider is not available
|
|
1225
|
+
// console.log(`Received chat message: ${message.content}`);
|
|
1226
|
+
|
|
1227
|
+
// // Pass to PM_WithHelpo if available
|
|
1228
|
+
// if ((this as any).handleChatMessage) {
|
|
1229
|
+
// (this as any).handleChatMessage(message.content);
|
|
1230
|
+
// } else {
|
|
1231
|
+
// console.log("PM_WithHelpo not available - message not processed");
|
|
1232
|
+
// }
|
|
1233
|
+
// return;
|
|
1234
|
+
// }
|
|
1235
|
+
|
|
1236
|
+
// super.websocket(data);
|
|
1237
|
+
// }
|
|
1238
|
+
// }
|
|
1239
|
+
|
|
1240
|
+
// // onBuildDone(): void {
|
|
1241
|
+
// // console.log("Build processes completed");
|
|
1242
|
+
// // // The builds are done, which means the files are ready to be watched
|
|
1243
|
+
// // // This matches the original behavior where builds completed before PM_Main started
|
|
1244
|
+
|
|
1245
|
+
// // // Start Git watcher for development mode
|
|
1246
|
+
// // this.startGitWatcher();
|
|
1247
|
+
// // }
|