testeranto 0.189.0 → 0.197.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/ALL_LICENSES.txt +11246 -0
- package/LICENSE +21 -0
- package/default-project.json +44 -0
- package/design-editor/DesignEditor.tsx +247 -0
- package/design-editor/index.ts +2 -0
- package/design-editor/server.ts +121 -0
- package/design-editor/types.ts +16 -0
- package/designs/default-project.json +210 -0
- package/dist/common/design-editor/DesignEditor.js +239 -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/src/App.js +11 -1
- package/dist/common/src/PM/PM_WithEslintAndTsc.js +8 -1
- package/dist/common/src/PM/base.js +1 -0
- package/dist/common/src/PM/main.js +370 -4
- package/dist/common/src/PM/node.js +4 -2
- package/dist/common/src/PM/pure.js +15 -57
- package/dist/common/src/PM/web.js +5 -3
- package/dist/common/src/Pure.test.js +46 -78
- package/dist/common/src/ReportServer.js +8 -2
- package/dist/common/src/build.js +1 -1
- package/dist/common/src/components/DesignEditorPage.js +169 -0
- package/dist/common/src/components/pure/AppFrame.js +62 -13
- package/dist/common/src/components/pure/ModalContent.test/implementation.js +13 -11
- package/dist/common/src/components/pure/ModalContent.test/index.js +48 -2
- package/dist/common/src/components/pure/ModalContent.test/specification.js +2 -2
- package/dist/common/src/components/pure/NavBar.js +9 -10
- package/dist/common/src/components/pure/ProcessManager.js +112 -0
- package/dist/common/src/components/pure/ProcessManagerView.js +237 -0
- package/dist/common/src/components/pure/ProjectPageView.test/implementation.js +134 -106
- package/dist/common/src/components/pure/ProjectsPageView.js +18 -12
- package/dist/common/src/components/pure/SettingsButton.js +4 -74
- package/dist/common/src/components/pure/SingleProcessView.js +214 -0
- package/dist/common/src/components/pure/TestPageView.js +457 -78
- package/dist/common/src/components/pure/TestPageView.test/implementation.js +90 -135
- package/dist/common/src/components/stateful/FeaturesReporter.js +1 -1
- package/dist/common/src/components/stateful/FileTree.js +40 -0
- package/dist/common/src/components/stateful/ProcessManagerPage.js +112 -0
- package/dist/common/src/components/stateful/ProjectPage.js +6 -5
- package/dist/common/src/components/stateful/ProjectsPage.js +32 -6
- package/dist/common/src/components/stateful/SettingsPage.js +72 -0
- package/dist/common/src/components/stateful/SingleProcessPage.js +147 -0
- package/dist/common/src/components/stateful/TestPage.js +104 -8
- package/dist/common/src/components/stateful/TextEditorPage.js +154 -0
- package/dist/common/src/esbuildConfigs/inputFilesPlugin.js +3 -4
- package/dist/common/src/lib/BaseSuite.js +6 -3
- package/dist/common/src/lib/BaseSuite.test/mock.js +17 -30
- package/dist/common/src/lib/BaseSuite.test/test.js +33 -31
- package/dist/common/src/lib/abstractBase.js +28 -8
- package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.adapter.js +12 -6
- package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.implementation.js +12 -12
- package/dist/common/src/lib/basebuilder.js +1 -9
- package/dist/common/src/lib/classBuilder.js +3 -3
- package/dist/common/src/lib/core.js +3 -5
- package/dist/common/src/lib/index.js +11 -14
- package/dist/common/src/lib/pmProxy.js +37 -14
- package/dist/common/src/lib/pmProxy.test/adapter.js +12 -2
- package/dist/common/src/lib/pmProxy.test/implementation.js +73 -43
- package/dist/common/src/lib/pmProxy.test/specification.js +3 -0
- package/dist/common/src/utils/api.js +44 -33
- package/dist/common/src/utils/logFiles.js +48 -22
- package/dist/common/src/utils/makePrompt.js +5 -4
- package/dist/common/testeranto.config.js +15 -13
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/design-editor/DesignEditor.js +203 -0
- package/dist/module/design-editor/index.js +2 -0
- package/dist/module/design-editor/server.js +92 -0
- package/dist/module/src/App.js +11 -1
- package/dist/module/src/PM/PM_WithEslintAndTsc.js +8 -1
- package/dist/module/src/PM/base.js +1 -0
- package/dist/module/src/PM/main.js +370 -4
- package/dist/module/src/PM/node.js +4 -2
- package/dist/module/src/PM/pure.js +15 -57
- package/dist/module/src/PM/web.js +5 -3
- package/dist/module/src/Pure.test.js +46 -78
- package/dist/module/src/ReportServer.js +8 -2
- package/dist/module/src/build.js +1 -1
- package/dist/module/src/components/DesignEditorPage.js +132 -0
- package/dist/module/src/components/pure/AppFrame.js +30 -11
- package/dist/module/src/components/pure/ModalContent.test/implementation.js +13 -11
- package/dist/module/src/components/pure/ModalContent.test/index.js +48 -2
- package/dist/module/src/components/pure/ModalContent.test/specification.js +2 -2
- package/dist/module/src/components/pure/NavBar.js +10 -11
- package/dist/module/src/components/pure/ProcessManager.js +75 -0
- package/dist/module/src/components/pure/ProcessManagerView.js +200 -0
- package/dist/module/src/components/pure/ProjectPageView.test/implementation.js +134 -106
- package/dist/module/src/components/pure/ProjectsPageView.js +20 -14
- package/dist/module/src/components/pure/SettingsButton.js +5 -42
- package/dist/module/src/components/pure/SingleProcessView.js +214 -0
- package/dist/module/src/components/pure/TestPageView.js +425 -76
- package/dist/module/src/components/pure/TestPageView.test/implementation.js +90 -135
- package/dist/module/src/components/stateful/FeaturesReporter.js +1 -1
- package/dist/module/src/components/stateful/FileTree.js +33 -0
- package/dist/module/src/components/stateful/ProcessManagerPage.js +75 -0
- package/dist/module/src/components/stateful/ProjectPage.js +6 -5
- package/dist/module/src/components/stateful/ProjectsPage.js +32 -6
- package/dist/module/src/components/stateful/SettingsPage.js +35 -0
- package/dist/module/src/components/stateful/SingleProcessPage.js +110 -0
- package/dist/module/src/components/stateful/TestPage.js +104 -8
- package/dist/module/src/components/stateful/TextEditorPage.js +117 -0
- package/dist/module/src/esbuildConfigs/inputFilesPlugin.js +3 -4
- package/dist/module/src/lib/BaseSuite.js +6 -3
- package/dist/module/src/lib/BaseSuite.test/mock.js +17 -30
- package/dist/module/src/lib/BaseSuite.test/test.js +33 -31
- package/dist/module/src/lib/abstractBase.js +28 -8
- package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.adapter.js +12 -6
- package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.implementation.js +12 -12
- package/dist/module/src/lib/basebuilder.js +1 -9
- package/dist/module/src/lib/classBuilder.js +3 -3
- package/dist/module/src/lib/core.js +3 -5
- package/dist/module/src/lib/index.js +11 -14
- package/dist/module/src/lib/pmProxy.js +37 -14
- package/dist/module/src/lib/pmProxy.test/adapter.js +12 -2
- package/dist/module/src/lib/pmProxy.test/implementation.js +73 -43
- package/dist/module/src/lib/pmProxy.test/specification.js +3 -0
- package/dist/module/src/utils/api.js +45 -34
- package/dist/module/src/utils/logFiles.js +45 -20
- package/dist/module/src/utils/makePrompt.js +5 -4
- package/dist/module/testeranto.config.js +15 -13
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/App.css +54 -513
- package/dist/prebuild/App.js +13296 -2438
- package/dist/prebuild/ReportServer.mjs +104 -6
- package/dist/prebuild/build.mjs +8 -5
- package/dist/prebuild/run.mjs +389 -37
- package/dist/types/design-editor/DesignEditor.d.ts +18 -0
- package/dist/types/design-editor/server.d.ts +1 -0
- package/dist/types/{PM → src/PM}/index.d.ts +1 -1
- package/dist/types/{PM → src/PM}/main.d.ts +19 -0
- package/dist/types/{PM → src/PM}/pure.d.ts +7 -7
- package/dist/types/{Pure.test.d.ts → src/Pure.test.d.ts} +13 -1
- package/dist/types/src/components/DesignEditorPage.d.ts +1 -0
- package/dist/types/{components → src/components}/pure/AppFrame.d.ts +3 -1
- package/dist/types/{components/pure/ProjectPageView.test → src/components/pure/ModalContent.test}/index.d.ts +2 -1
- package/dist/types/{components → src/components}/pure/NavBar.d.ts +4 -0
- package/dist/types/src/components/pure/ProcessManager.d.ts +8 -0
- package/dist/types/src/components/pure/ProcessManagerView.d.ts +20 -0
- package/dist/types/{components → src/components}/pure/ProjectsPageView.d.ts +1 -1
- package/dist/types/src/components/pure/SettingsButton.d.ts +2 -0
- package/dist/types/{components → src/components}/pure/TestPageView.test/implementation.d.ts +3 -2
- package/dist/types/src/components/pure/TestPageView.test/index.d.ts +3 -0
- package/dist/types/src/components/stateful/FileTree.d.ts +8 -0
- package/dist/types/src/components/stateful/ProcessManagerPage.d.ts +2 -0
- package/dist/types/src/components/stateful/SettingsPage.d.ts +2 -0
- package/dist/types/src/components/stateful/SingleProcessPage.d.ts +2 -0
- package/dist/types/src/components/stateful/TextEditorPage.d.ts +1 -0
- package/dist/types/{lib → src/lib}/BaseSuite.test/mock.d.ts +3 -3
- package/dist/types/{lib → src/lib}/basebuilder.d.ts +1 -1
- package/dist/types/{lib → src/lib}/index.d.ts +1 -1
- package/dist/types/{lib → src/lib}/pmProxy.test/mockPMBase.d.ts +1 -1
- package/dist/types/src/run.d.ts +1 -0
- package/dist/types/src/utils/logFiles.d.ts +71 -0
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/docs/test-page-components.md +91 -0
- package/package.json +27 -8
- package/src/App.tsx +11 -0
- package/src/PM/PM_WithEslintAndTsc.ts +9 -4
- package/src/PM/base.ts +1 -0
- package/src/PM/index.ts +1 -1
- package/src/PM/main.ts +424 -8
- package/src/PM/node.ts +5 -2
- package/src/PM/pure.ts +23 -61
- package/src/PM/web.ts +7 -3
- package/src/Pure.test.ts +63 -99
- package/src/README.md +20 -1
- package/src/ReportServer.ts +10 -3
- package/src/app.scss +169 -0
- package/src/build.ts +5 -1
- package/src/components/DesignEditorPage.tsx +169 -0
- package/src/components/pure/AppFrame.tsx +121 -16
- package/src/components/pure/ModalContent.test/implementation.tsx +14 -12
- package/src/components/pure/ModalContent.test/index.tsx +58 -6
- package/src/components/pure/ModalContent.test/specification.ts +2 -2
- package/src/components/pure/NavBar.tsx +31 -15
- package/src/components/pure/ProcessManager.tsx +117 -0
- package/src/components/pure/ProcessManagerView.tsx +414 -0
- package/src/components/pure/ProjectPageView.test/implementation.tsx +136 -106
- package/src/components/pure/ProjectPageView.test/index.tsx +0 -2
- package/src/components/pure/ProjectsPageView.tsx +41 -31
- package/src/components/pure/SettingsButton.tsx +7 -62
- package/src/components/pure/SingleProcessView.tsx +235 -0
- package/src/components/pure/TestPageView.test/implementation.ts +115 -147
- package/src/components/pure/TestPageView.test/specification.ts +0 -1
- package/src/components/pure/TestPageView.tsx +821 -100
- package/src/components/stateful/FeaturesReporter.tsx +1 -1
- package/src/components/stateful/FileTree.tsx +66 -0
- package/src/components/stateful/ProcessManagerPage.tsx +108 -0
- package/src/components/stateful/ProjectPage.tsx +6 -5
- package/src/components/stateful/ProjectsPage.tsx +36 -7
- package/src/components/stateful/SettingsPage.tsx +82 -0
- package/src/components/stateful/SingleProcessPage.tsx +155 -0
- package/src/components/stateful/TestPage.tsx +128 -20
- package/src/components/stateful/TextEditorPage.tsx +170 -0
- package/src/esbuildConfigs/inputFilesPlugin.ts +3 -4
- package/src/lib/BaseSuite.test/mock.ts +20 -41
- package/src/lib/BaseSuite.test/test.ts +38 -42
- package/src/lib/BaseSuite.ts +6 -3
- package/src/lib/abstractBase.ts +33 -14
- package/src/lib/baseBuilder.test/baseBuilder.test.adapter.ts +14 -7
- package/src/lib/baseBuilder.test/baseBuilder.test.implementation.ts +15 -14
- package/src/lib/basebuilder.ts +4 -9
- package/src/lib/classBuilder.ts +8 -10
- package/src/lib/core.ts +3 -19
- package/src/lib/index.ts +19 -19
- package/src/lib/pmProxy.test/adapter.ts +10 -2
- package/src/lib/pmProxy.test/implementation.ts +108 -57
- package/src/lib/pmProxy.test/mockPMBase.ts +1 -1
- package/src/lib/pmProxy.test/specification.ts +11 -0
- package/src/lib/pmProxy.ts +40 -15
- package/src/style.scss +3 -502
- package/src/templates/frontpage.html +317 -40
- package/src/templates/frontpage.md +79 -0
- package/src/themes.scss +40 -8
- package/src/utils/api.ts +47 -44
- package/src/utils/logFiles.ts +57 -23
- package/src/utils/makePrompt.ts +5 -4
- package/stargazers.txt +15 -0
- package/stargzers.js +68 -0
- package/testeranto/App.css +54 -513
- package/testeranto/App.js +13296 -2438
- package/testeranto/bundles/node/core/{chunk-L67RWZ4W.mjs → chunk-4CSH4UJE.mjs} +89 -116
- package/testeranto/bundles/node/core/{chunk-JBB5E3XJ.mjs → chunk-4JTDLQVA.mjs} +4 -9
- package/testeranto/bundles/node/core/chunk-C3APFDUV.mjs +70 -0
- package/testeranto/bundles/node/core/src/lib/BaseSuite.test/node.test.mjs +30 -42
- package/testeranto/bundles/node/core/src/lib/baseBuilder.test/baseBuilder.test.node.mjs +27 -31
- package/testeranto/bundles/node/core/src/lib/classBuilder.test/classBuilder.test.mjs +4 -16
- package/testeranto/bundles/node/core/src/lib/core.test/core.test.mjs +16 -27
- package/testeranto/bundles/node/core/src/lib/pmProxy.test/index.mjs +468 -517
- package/testeranto/bundles/pure/core/{chunk-KHJ35R7C.mjs → chunk-62UVCSQC.mjs} +97 -72
- package/testeranto/bundles/pure/core/src/Pure.test.mjs +56 -74
- package/testeranto/bundles/pure/core/src/lib/BaseSuite.test/pure.test.mjs +39 -66
- package/testeranto/bundles/pure/core/src/lib/baseBuilder.test/baseBuilder.test.pure.mjs +25 -19
- package/testeranto/metafiles/node/core.json +2906 -0
- package/testeranto/{bundles/pure/core/metafile.json → metafiles/pure/core.json} +66 -81
- package/testeranto/metafiles/web/core.json +546 -0
- package/testeranto/reports/core/config.json +0 -24
- package/testeranto/reports/core/src/Pure.test/pure/prompt.txt +1 -1
- package/testeranto/reports/core/src/Pure.test/pure/type_errors.txt +59 -94
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/error.log +2 -55
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/info.log +0 -2
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/error.log +3 -33
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/info.log +0 -4
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/error.log +3 -0
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/info.log +0 -2
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/prompt.txt +2 -2
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/type_errors.txt +38 -90
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/prompt.txt +1 -1
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/type_errors.txt +38 -90
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/error.log +2 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/lint_errors.txt +10 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/prompt.txt +3 -3
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/stdout.log +6 -2
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/tests.json +4 -4
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/type_errors.txt +22 -45
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/lint_errors.txt +10 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/prompt.txt +1 -1
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/type_errors.txt +22 -45
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/error.log +2 -0
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/prompt.txt +4 -4
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/tests.json +10 -10
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/type_errors.txt +38 -90
- package/testeranto/reports/core/src/lib/core.test/core.test/node/prompt.txt +4 -4
- package/testeranto/reports/core/src/lib/core.test/core.test/node/type_errors.txt +5 -24
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/lint_errors.txt +6 -14
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/prompt.txt +3 -3
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/stderr.log +88 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/stdout.log +10 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/tests.json +33 -43
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/type_errors.txt +17 -43
- package/testeranto/reports/core/summary.json +15 -51
- package/testeranto/reportsweb_build_errors +546 -0
- package/testeranto.config.ts +16 -13
- package/tsc.log +37 -16
- package/tsconfig.json +3 -2
- package/CNAME +0 -1
- package/README.html +0 -302
- package/dist/common/src/PM/layers/base/PM_Base.js +0 -1
- package/dist/common/src/PM/layers/base/components/PageOperations.js +0 -1
- package/dist/common/src/PM/layers/base/components/PageOperations.testeranto.js +0 -1
- package/dist/common/src/PM/layers/linting/components/Linter.js +0 -1
- package/dist/common/src/PM/layers/linting/components/TypeChecker.js +0 -1
- package/dist/common/src/PM/layers/main/components/SidecarManager.js +0 -1
- package/dist/common/src/PM/layers/main/components/TestRunner.js +0 -1
- package/dist/module/src/PM/layers/base/PM_Base.js +0 -1
- package/dist/module/src/PM/layers/base/components/PageOperations.js +0 -1
- package/dist/module/src/PM/layers/base/components/PageOperations.testeranto.js +0 -1
- package/dist/module/src/PM/layers/linting/components/Linter.js +0 -1
- package/dist/module/src/PM/layers/linting/components/TypeChecker.js +0 -1
- package/dist/module/src/PM/layers/main/components/SidecarManager.js +0 -1
- package/dist/module/src/PM/layers/main/components/TestRunner.js +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/types/PM/layers/base/components/PageOperations.d.ts +0 -0
- package/dist/types/PM/layers/base/components/PageOperations.testeranto.d.ts +0 -0
- package/dist/types/PM/layers/linting/components/Linter.d.ts +0 -0
- package/dist/types/PM/layers/linting/components/TypeChecker.d.ts +0 -0
- package/dist/types/PM/layers/main/components/SidecarManager.d.ts +0 -0
- package/dist/types/PM/layers/main/components/TestRunner.d.ts +0 -0
- package/dist/types/components/pure/SettingsButton.d.ts +0 -3
- package/dist/types/components/pure/TestPageView.test/index.d.ts +0 -32
- package/dist/types/utils/logFiles.d.ts +0 -7
- package/docs.html +0 -590
- package/example.css +0 -351
- package/index.html +0 -138
- package/scripts/compile-docs.js +0 -150
- package/smil30/SMIL-anim.mod.xsd +0 -163
- package/smil30/SMIL-control.mod.xsd +0 -73
- package/smil30/SMIL-layout.mod.xsd +0 -149
- package/smil30/SMIL-link.mod.xsd +0 -145
- package/smil30/SMIL-media.mod.xsd +0 -1646
- package/smil30/SMIL-metainformation.mod.xsd +0 -45
- package/smil30/SMIL-smiltext.mod.xsd +0 -353
- package/smil30/SMIL-state.mod.xsd +0 -133
- package/smil30/SMIL-struct.mod.xsd +0 -70
- package/smil30/SMIL-timing.mod.xsd +0 -105
- package/smil30/SMIL-transition.mod.xsd +0 -229
- package/smil30/SMIL.xsd +0 -63
- package/smil30/its.xsd +0 -42
- package/smil30/smil-attribs-1.mod.xsd +0 -610
- package/smil30/smil-datatypes-1.mod.xsd +0 -72
- package/smil30/smil-framework-1.mod.xsd +0 -45
- package/smil30/xml.xsd +0 -16
- package/src/App.scss +0 -123
- package/src/PM/layers/base/PM_Base.ts +0 -0
- package/src/PM/layers/base/components/PageOperations.testeranto.ts +0 -0
- package/src/PM/layers/base/components/PageOperations.ts +0 -0
- package/src/PM/layers/linting/components/Linter.ts +0 -0
- package/src/PM/layers/linting/components/TypeChecker.ts +0 -0
- package/src/PM/layers/main/components/SidecarManager.ts +0 -0
- package/src/PM/layers/main/components/TestRunner.ts +0 -0
- package/src/fonts.scss +0 -55
- package/style.css +0 -12175
- package/testeranto/bundles/node/core/chunk-ZQRRQYS4.mjs +0 -92
- package/testeranto/bundles/node/core/metafile.json +0 -5735
- package/testeranto/bundles/node/core/src/mothership/test.mjs +0 -24588
- 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-BADF3AZF.mjs +0 -108
- package/testeranto/bundles/web/core/chunk-BXV27S2S.mjs +0 -6252
- package/testeranto/bundles/web/core/chunk-EIYZKF2C.mjs +0 -223
- package/testeranto/bundles/web/core/chunk-FNXFUNA7.mjs +0 -28528
- package/testeranto/bundles/web/core/chunk-LU364HVS.mjs +0 -3311
- package/testeranto/bundles/web/core/chunk-QWII7WIM.mjs +0 -2281
- package/testeranto/bundles/web/core/chunk-VAYOSMXI.mjs +0 -21775
- package/testeranto/bundles/web/core/metafile.json +0 -18227
- package/testeranto/bundles/web/core/src/components/pure/AppFrame.test/index.css +0 -12105
- package/testeranto/bundles/web/core/src/components/pure/AppFrame.test/index.html +0 -15
- package/testeranto/bundles/web/core/src/components/pure/AppFrame.test/index.mjs +0 -517
- package/testeranto/bundles/web/core/src/components/pure/FeaturesReporterView.test/index.mjs +0 -166
- package/testeranto/bundles/web/core/src/components/pure/ModalContent.test/index.css +0 -12105
- package/testeranto/bundles/web/core/src/components/pure/ModalContent.test/index.html +0 -15
- package/testeranto/bundles/web/core/src/components/pure/ModalContent.test/index.mjs +0 -93
- package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.css +0 -12105
- package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.mjs +0 -343
- package/testeranto/bundles/web/core/src/components/pure/TestPageView.test/index.css +0 -12105
- package/testeranto/bundles/web/core/src/components/pure/TestPageView.test/index.mjs +0 -483
- package/testeranto/bundles/web/core/src/lib/BaseSuite.test/web.test.mjs +0 -394
- package/testeranto/bundles/web/core/src/lib/baseBuilder.test/baseBuilder.test.web.mjs +0 -256
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/debug.log +0 -0
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/error.log +0 -22
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/exit.log +0 -1
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/info.log +0 -4
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/lint_errors.txt +0 -2
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/message.txt +0 -17
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/prompt.txt +0 -18
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/tests.json +0 -57
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/type_errors.txt +0 -55
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/warn.log +0 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/lint_errors.txt +0 -0
- 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 -16
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/suite-0/given-basicRender/then-4/butThen/features-reporter.png +0 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/tests.json +0 -76
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/type_errors.txt +0 -80
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/debug.log +0 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/error.log +0 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/exit.log +0 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/info.log +0 -4
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/lint_errors.txt +0 -0
- 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 -15
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/suite-0/given-basicRender/then-2/butThen/modal-content.png +0 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/tests.json +0 -42
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/type_errors.txt +0 -65
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/warn.log +0 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/lint_errors.txt +0 -2
- 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 -16
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/suite-0/given-basicRender/then-6/butThen/happy-state.png +0 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/suite-0/given-errorHandling/then-1/butThen/error-state.png +0 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/tests.json +0 -99
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/type_errors.txt +0 -91
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/message.txt +0 -17
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/prompt.txt +0 -18
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/tests.json +0 -69
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/type_errors.txt +0 -111
- 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 -15
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/tests.json +0 -31
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/type_errors.txt +0 -113
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/message.txt +0 -17
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/prompt.txt +0 -17
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/suite-0/given-testInitialization/then-0/butThen/hello.txt +0 -1
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/suite-0/given-testInitialization/then-1/butThen/artifact_test.txt +0 -1
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/tests.json +0 -71
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/type_errors.txt +0 -65
- package/testeranto/reports/core/src/mothership/test/node/exit.log +0 -1
- package/testeranto/reports/core/src/mothership/test/node/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/mothership/test/node/message.txt +0 -17
- package/testeranto/reports/core/src/mothership/test/node/prompt.txt +0 -14
- package/testeranto/reports/core/src/mothership/test/node/stderr.log +0 -27
- package/testeranto/reports/core/src/mothership/test/node/stdout.log +0 -8
- package/testeranto/reports/core/src/mothership/test/node/tests.json +0 -36
- package/testeranto/reports/core/src/mothership/test/node/type_errors.txt +0 -38
- package/videos/download-smil-xsd.sh +0 -29
- package/videos/project0/index.md +0 -72
- package/videos/project0/narration.json +0 -7
- package/videos/project0/narration.ssml +0 -58
- package/videos/project0/package.json +0 -21
- package/videos/project0/presentation.smil +0 -25
- package/videos/project0/smil30/SMIL-anim.mod.xsd +0 -163
- package/videos/project0/smil30/SMIL-anim.mod.xsd.1 +0 -163
- package/videos/project0/smil30/SMIL-anim.mod.xsd.2 +0 -163
- package/videos/project0/smil30/SMIL-control.mod.xsd +0 -73
- package/videos/project0/smil30/SMIL-control.mod.xsd.1 +0 -73
- package/videos/project0/smil30/SMIL-control.mod.xsd.2 +0 -73
- package/videos/project0/smil30/SMIL-layout.mod.xsd +0 -149
- package/videos/project0/smil30/SMIL-layout.mod.xsd.1 +0 -149
- package/videos/project0/smil30/SMIL-layout.mod.xsd.2 +0 -149
- package/videos/project0/smil30/SMIL-link.mod.xsd +0 -145
- package/videos/project0/smil30/SMIL-link.mod.xsd.1 +0 -145
- package/videos/project0/smil30/SMIL-link.mod.xsd.2 +0 -145
- package/videos/project0/smil30/SMIL-media.mod.xsd +0 -1646
- package/videos/project0/smil30/SMIL-media.mod.xsd.1 +0 -1646
- package/videos/project0/smil30/SMIL-media.mod.xsd.2 +0 -1646
- package/videos/project0/smil30/SMIL-metainformation.mod.xsd +0 -45
- package/videos/project0/smil30/SMIL-metainformation.mod.xsd.1 +0 -45
- package/videos/project0/smil30/SMIL-metainformation.mod.xsd.2 +0 -45
- package/videos/project0/smil30/SMIL-smiltext.mod.xsd +0 -353
- package/videos/project0/smil30/SMIL-smiltext.mod.xsd.1 +0 -353
- package/videos/project0/smil30/SMIL-smiltext.mod.xsd.2 +0 -353
- package/videos/project0/smil30/SMIL-state.mod.xsd +0 -133
- package/videos/project0/smil30/SMIL-state.mod.xsd.1 +0 -133
- package/videos/project0/smil30/SMIL-state.mod.xsd.2 +0 -133
- package/videos/project0/smil30/SMIL-struct.mod.xsd +0 -70
- package/videos/project0/smil30/SMIL-struct.mod.xsd.1 +0 -70
- package/videos/project0/smil30/SMIL-struct.mod.xsd.2 +0 -70
- package/videos/project0/smil30/SMIL-timing.mod.xsd +0 -105
- package/videos/project0/smil30/SMIL-timing.mod.xsd.1 +0 -105
- package/videos/project0/smil30/SMIL-timing.mod.xsd.2 +0 -105
- package/videos/project0/smil30/SMIL-transition.mod.xsd +0 -229
- package/videos/project0/smil30/SMIL-transition.mod.xsd.1 +0 -229
- package/videos/project0/smil30/SMIL-transition.mod.xsd.2 +0 -229
- package/videos/project0/smil30/SMIL.xsd +0 -63
- package/videos/project0/smil30/SMIL.xsd.1 +0 -63
- package/videos/project0/smil30/SMIL.xsd.2 +0 -63
- package/videos/project0/smil30/its.xsd +0 -42
- package/videos/project0/smil30/its.xsd.1 +0 -42
- package/videos/project0/smil30/its.xsd.2 +0 -42
- package/videos/project0/smil30/smil-attribs-1.mod.xsd +0 -610
- package/videos/project0/smil30/smil-attribs-1.mod.xsd.1 +0 -610
- package/videos/project0/smil30/smil-attribs-1.mod.xsd.2 +0 -610
- package/videos/project0/smil30/smil-datatypes-1.mod.xsd +0 -72
- package/videos/project0/smil30/smil-datatypes-1.mod.xsd.1 +0 -72
- package/videos/project0/smil30/smil-datatypes-1.mod.xsd.2 +0 -72
- package/videos/project0/smil30/smil-framework-1.mod.xsd +0 -45
- package/videos/project0/smil30/smil-framework-1.mod.xsd.1 +0 -45
- package/videos/project0/smil30/smil-framework-1.mod.xsd.2 +0 -45
- package/videos/project0/smil30/smil-profile-model-1.mod.xsd +0 -1331
- package/videos/project0/smil30/smil-profile-model-1.mod.xsd.1 +0 -1331
- package/videos/project0/smil30/smil-qname-1.mod.xsd +0 -121
- package/videos/project0/smil30/smil-qname-1.mod.xsd.1 +0 -121
- package/videos/project0/smil30/xml.xsd +0 -16
- package/videos/project0/smil30/xml.xsd.1 +0 -16
- package/videos/project0/smil30/xml.xsd.2 +0 -16
- package/videos/project0/smil30.xsd +0 -137
- package/videos/project0/src/audio/metadata.json +0 -5
- package/videos/project0/src/audio/narration.mp3 +0 -0
- package/videos/project0/src/motion-canvas.d.ts +0 -1
- package/videos/project0/src/project.meta +0 -31
- package/videos/project0/src/project.ts +0 -13
- package/videos/project0/src/scenes/example.meta +0 -5
- package/videos/project0/src/scenes/scene1.meta +0 -3
- package/videos/project0/src/scenes/scene1.tsx +0 -129
- package/videos/project0/src/scenes/scene2.tsx +0 -132
- package/videos/project0/src/scenes/scene3.meta +0 -26
- package/videos/project0/src/scenes/scene3.tsx +0 -188
- package/videos/project0/tsconfig.json +0 -4
- package/videos/project0/vite.config.ts +0 -10
- package/videos/trash/output/project.mp4 +0 -0
- package/videos/trash/text.mp4 +0 -0
- package/videos/trash/video/project.tsx +0 -549
- package/videos/trash/video/render.ts +0 -15
- package/videos/trash/vite.config.ts +0 -10
- package/videos/tts.js +0 -109
- /package/dist/{types/ReportServer.d.ts → module/design-editor/types.js} +0 -0
- /package/dist/types/{App.d.ts → src/App.d.ts} +0 -0
- /package/dist/types/{CoreTypes.d.ts → src/CoreTypes.d.ts} +0 -0
- /package/dist/types/{Init.d.ts → src/Init.d.ts} +0 -0
- /package/dist/types/{Node.d.ts → src/Node.d.ts} +0 -0
- /package/dist/types/{NodeSidecar.d.ts → src/NodeSidecar.d.ts} +0 -0
- /package/dist/types/{PM → src/PM}/PM_WithEslintAndTsc.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/__tests__/nodeSidecar.testeranto.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/__tests__/pureSidecar.testeranto.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/__tests__/webSidecar.testeranto.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/base.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/node.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/nodeSidecar.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/pureSidecar.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/sidecar.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/types.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/web.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/webSidecar.d.ts +0 -0
- /package/dist/types/{Pure.d.ts → src/Pure.d.ts} +0 -0
- /package/dist/types/{PureSidecar.d.ts → src/PureSidecar.d.ts} +0 -0
- /package/dist/types/{build.d.ts → src/ReportServer.d.ts} +0 -0
- /package/dist/types/{ReportServer.test.ts → src/ReportServer.test.ts}/index.d.ts +0 -0
- /package/dist/types/{ReportServerLib.d.ts → src/ReportServerLib.d.ts} +0 -0
- /package/dist/types/{Types.d.ts → src/Types.d.ts} +0 -0
- /package/dist/types/{Web.d.ts → src/Web.d.ts} +0 -0
- /package/dist/types/{WebSidecar.d.ts → src/WebSidecar.d.ts} +0 -0
- /package/dist/types/{init-docs.d.ts → src/build.d.ts} +0 -0
- /package/dist/types/{components → src/components}/SunriseAnimation.d.ts +0 -0
- /package/dist/types/{components → src/components}/SunriseAnimation.test/implementation.d.ts +0 -0
- /package/dist/types/{components → src/components}/SunriseAnimation.test/index.d.ts +0 -0
- /package/dist/types/{components → src/components}/SunriseAnimation.test/interface.d.ts +0 -0
- /package/dist/types/{components → src/components}/SunriseAnimation.test/specification.d.ts +0 -0
- /package/dist/types/{components → src/components}/SunriseAnimation.test/types.d.ts +0 -0
- /package/dist/types/{components → src/components}/TestStatusBadge.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/AppFrame.test/implementation.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/AppFrame.test/index.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/AppFrame.test/specification.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/AppFrame.test/types.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/FeaturesReporterView.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/FeaturesReporterView.test/implementation.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/FeaturesReporterView.test/index.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/FeaturesReporterView.test/specification.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/FeaturesReporterView.test/types.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/ModalContent.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/ModalContent.test/implementation.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/ModalContent.test/specification.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/ModalContent.test/types.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/ProjectPageView.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/ProjectPageView.test/implementation.d.ts +0 -0
- /package/dist/types/{components/pure/ModalContent.test → src/components/pure/ProjectPageView.test}/index.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/ProjectPageView.test/specification.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/ProjectPageView.test/types.d.ts +0 -0
- /package/dist/types/{PM/layers/base/PM_Base.d.ts → src/components/pure/SingleProcessView.d.ts} +0 -0
- /package/dist/types/{components → src/components}/pure/TestPageView.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/TestPageView.test/specification.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/TestPageView.test/types.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/ThemeCard.d.ts +0 -0
- /package/dist/types/{components → src/components}/stateful/FeaturesReporter.d.ts +0 -0
- /package/dist/types/{components → src/components}/stateful/ProjectPage.d.ts +0 -0
- /package/dist/types/{components → src/components}/stateful/ProjectsPage.d.ts +0 -0
- /package/dist/types/{components → src/components}/stateful/TestPage.d.ts +0 -0
- /package/dist/types/{defaultConfig.d.ts → src/defaultConfig.d.ts} +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/consoleDetectorPlugin.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/eslint-formatter-testeranto.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/featuresPlugin.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/index.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/inputFilesPlugin.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/nativeImportDetectorPlugin.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/node.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/pure.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/rebuildPlugin.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/web.d.ts +0 -0
- /package/dist/types/{run.d.ts → src/init-docs.d.ts} +0 -0
- /package/dist/types/{lib → src/lib}/BaseSuite.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/BaseSuite.test/node.test.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/BaseSuite.test/pure.test.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/BaseSuite.test/test.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/BaseSuite.test/web.test.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/Sidecar.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/abstractBase.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/abstractBase.test/MockGiven.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/abstractBase.test/MockThen.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/abstractBase.test/MockWhen.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/abstractBase.test/adapter.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/abstractBase.test/implementation.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/abstractBase.test/index.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/abstractBase.test/specification.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/abstractBase.test/types.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/baseBuilder.test/baseBuilder.test.adapter.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/baseBuilder.test/baseBuilder.test.implementation.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/baseBuilder.test/baseBuilder.test.mock.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/baseBuilder.test/baseBuilder.test.node.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/baseBuilder.test/baseBuilder.test.pure.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/baseBuilder.test/baseBuilder.test.specification.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/baseBuilder.test/baseBuilder.test.types.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/baseBuilder.test/baseBuilder.test.web.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/classBuilder.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/classBuilder.test/classBuilder.test.adapter.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/classBuilder.test/classBuilder.test.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/classBuilder.test/classBuilder.test.implementation.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/classBuilder.test/classBuilder.test.specification.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/classBuilder.test/classBuilder.test.types.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/classBuilder.test/mock.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/core.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/core.test/MockCore.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/core.test/core.test.adapter.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/core.test/core.test.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/core.test/core.test.implementation.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/core.test/core.test.specification.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/core.test/core.test.types.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/mocks.test.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/pmProxy.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/pmProxy.test/adapter.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/pmProxy.test/implementation.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/pmProxy.test/index.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/pmProxy.test/mockPM.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/pmProxy.test/specification.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/pmProxy.test/types.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/types.d.ts +0 -0
- /package/dist/types/{mothership → src/mothership}/index.d.ts +0 -0
- /package/dist/types/{mothership → src/mothership}/test.d.ts +0 -0
- /package/dist/types/{types → src/types}/features.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/api.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/buildTemplates.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/featureUtils.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/makePrompt.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/queue.d.ts +0 -0
- /package/dist/types/{utils.d.ts → src/utils.d.ts} +0 -0
- /package/dist/types/{web.html.d.ts → src/web.html.d.ts} +0 -0
package/src/PM/main.ts
CHANGED
|
@@ -12,6 +12,10 @@ import path from "path";
|
|
|
12
12
|
import puppeteer, { ConsoleMessage } from "puppeteer-core";
|
|
13
13
|
import ansiC from "ansi-colors";
|
|
14
14
|
import crypto from "node:crypto";
|
|
15
|
+
import { WebSocketServer } from "ws";
|
|
16
|
+
import http from "http";
|
|
17
|
+
import url from "url";
|
|
18
|
+
import mime from "mime-types";
|
|
15
19
|
|
|
16
20
|
import {
|
|
17
21
|
IFinalResults,
|
|
@@ -241,6 +245,24 @@ export class PM_Main extends PM_WithEslintAndTsc {
|
|
|
241
245
|
sidecars: Record<number, any> = {};
|
|
242
246
|
launchers: Record<string, () => void>;
|
|
243
247
|
|
|
248
|
+
wss: WebSocketServer;
|
|
249
|
+
clients: Set<any> = new Set();
|
|
250
|
+
httpServer: http.Server;
|
|
251
|
+
runningProcesses: Map<string, ChildProcess> = new Map();
|
|
252
|
+
allProcesses: Map<
|
|
253
|
+
string,
|
|
254
|
+
{
|
|
255
|
+
child?: ChildProcess;
|
|
256
|
+
status: "running" | "exited" | "error";
|
|
257
|
+
exitCode?: number;
|
|
258
|
+
error?: string;
|
|
259
|
+
command: string;
|
|
260
|
+
pid?: number;
|
|
261
|
+
timestamp: string;
|
|
262
|
+
}
|
|
263
|
+
> = new Map();
|
|
264
|
+
processLogs: Map<string, string[]> = new Map();
|
|
265
|
+
|
|
244
266
|
constructor(configs: IBuiltConfig, name: string, mode: "once" | "dev") {
|
|
245
267
|
super(configs, name, mode);
|
|
246
268
|
|
|
@@ -255,6 +277,222 @@ export class PM_Main extends PM_WithEslintAndTsc {
|
|
|
255
277
|
this.configs.ports.forEach((element) => {
|
|
256
278
|
this.ports[element] = ""; // set ports as open
|
|
257
279
|
});
|
|
280
|
+
|
|
281
|
+
// Create HTTP server
|
|
282
|
+
this.httpServer = http.createServer(this.requestHandler.bind(this));
|
|
283
|
+
|
|
284
|
+
// Start WebSocket server attached to the HTTP server
|
|
285
|
+
this.wss = new WebSocketServer({ server: this.httpServer });
|
|
286
|
+
|
|
287
|
+
this.wss.on("connection", (ws) => {
|
|
288
|
+
this.clients.add(ws);
|
|
289
|
+
console.log("Client connected");
|
|
290
|
+
|
|
291
|
+
ws.on("message", (data) => {
|
|
292
|
+
try {
|
|
293
|
+
const message = JSON.parse(data.toString());
|
|
294
|
+
if (message.type === "executeCommand") {
|
|
295
|
+
// Validate the command starts with 'aider'
|
|
296
|
+
if (message.command && message.command.trim().startsWith("aider")) {
|
|
297
|
+
console.log(`Executing command: ${message.command}`);
|
|
298
|
+
// Execute the command
|
|
299
|
+
const processId = Date.now().toString();
|
|
300
|
+
const child = spawn(message.command, {
|
|
301
|
+
shell: true,
|
|
302
|
+
cwd: process.cwd(),
|
|
303
|
+
});
|
|
304
|
+
|
|
305
|
+
// Track the process in both maps
|
|
306
|
+
this.runningProcesses.set(processId, child);
|
|
307
|
+
this.allProcesses.set(processId, {
|
|
308
|
+
child,
|
|
309
|
+
status: "running",
|
|
310
|
+
command: message.command,
|
|
311
|
+
pid: child.pid,
|
|
312
|
+
timestamp: new Date().toISOString(),
|
|
313
|
+
});
|
|
314
|
+
|
|
315
|
+
// Initialize logs for this process
|
|
316
|
+
this.processLogs.set(processId, []);
|
|
317
|
+
|
|
318
|
+
// Broadcast process started
|
|
319
|
+
this.broadcast({
|
|
320
|
+
type: "processStarted",
|
|
321
|
+
processId,
|
|
322
|
+
command: message.command,
|
|
323
|
+
timestamp: new Date().toISOString(),
|
|
324
|
+
logs: [],
|
|
325
|
+
});
|
|
326
|
+
|
|
327
|
+
// Capture stdout and stderr
|
|
328
|
+
child.stdout?.on("data", (data) => {
|
|
329
|
+
const logData = data.toString();
|
|
330
|
+
// Add to stored logs
|
|
331
|
+
const logs = this.processLogs.get(processId) || [];
|
|
332
|
+
logs.push(logData);
|
|
333
|
+
this.processLogs.set(processId, logs);
|
|
334
|
+
|
|
335
|
+
this.broadcast({
|
|
336
|
+
type: "processStdout",
|
|
337
|
+
processId,
|
|
338
|
+
data: logData,
|
|
339
|
+
timestamp: new Date().toISOString(),
|
|
340
|
+
});
|
|
341
|
+
});
|
|
342
|
+
|
|
343
|
+
child.stderr?.on("data", (data) => {
|
|
344
|
+
const logData = data.toString();
|
|
345
|
+
// Add to stored logs
|
|
346
|
+
const logs = this.processLogs.get(processId) || [];
|
|
347
|
+
logs.push(logData);
|
|
348
|
+
this.processLogs.set(processId, logs);
|
|
349
|
+
|
|
350
|
+
this.broadcast({
|
|
351
|
+
type: "processStderr",
|
|
352
|
+
processId,
|
|
353
|
+
data: logData,
|
|
354
|
+
timestamp: new Date().toISOString(),
|
|
355
|
+
});
|
|
356
|
+
});
|
|
357
|
+
|
|
358
|
+
child.on("error", (error) => {
|
|
359
|
+
console.error(`Failed to execute command: ${error}`);
|
|
360
|
+
this.runningProcesses.delete(processId);
|
|
361
|
+
// Update the process status to error
|
|
362
|
+
const processInfo = this.allProcesses.get(processId);
|
|
363
|
+
if (processInfo) {
|
|
364
|
+
this.allProcesses.set(processId, {
|
|
365
|
+
...processInfo,
|
|
366
|
+
status: "error",
|
|
367
|
+
error: error.message,
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
this.broadcast({
|
|
371
|
+
type: "processError",
|
|
372
|
+
processId,
|
|
373
|
+
error: error.message,
|
|
374
|
+
timestamp: new Date().toISOString(),
|
|
375
|
+
});
|
|
376
|
+
});
|
|
377
|
+
|
|
378
|
+
child.on("exit", (code) => {
|
|
379
|
+
console.log(`Command exited with code ${code}`);
|
|
380
|
+
// Remove from running processes but keep in allProcesses
|
|
381
|
+
this.runningProcesses.delete(processId);
|
|
382
|
+
// Update the process status to exited
|
|
383
|
+
const processInfo = this.allProcesses.get(processId);
|
|
384
|
+
if (processInfo) {
|
|
385
|
+
this.allProcesses.set(processId, {
|
|
386
|
+
...processInfo,
|
|
387
|
+
status: "exited",
|
|
388
|
+
exitCode: code,
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
this.broadcast({
|
|
392
|
+
type: "processExited",
|
|
393
|
+
processId,
|
|
394
|
+
exitCode: code,
|
|
395
|
+
timestamp: new Date().toISOString(),
|
|
396
|
+
});
|
|
397
|
+
});
|
|
398
|
+
} else {
|
|
399
|
+
console.error('Invalid command: must start with "aider"');
|
|
400
|
+
}
|
|
401
|
+
} else if (message.type === "getRunningProcesses") {
|
|
402
|
+
// Send list of all processes (both running and completed) with their full logs
|
|
403
|
+
const processes = Array.from(this.allProcesses.entries()).map(
|
|
404
|
+
([id, procInfo]) => ({
|
|
405
|
+
processId: id,
|
|
406
|
+
command: procInfo.command,
|
|
407
|
+
pid: procInfo.pid,
|
|
408
|
+
status: procInfo.status,
|
|
409
|
+
exitCode: procInfo.exitCode,
|
|
410
|
+
error: procInfo.error,
|
|
411
|
+
timestamp: procInfo.timestamp,
|
|
412
|
+
logs: this.processLogs.get(id) || [],
|
|
413
|
+
})
|
|
414
|
+
);
|
|
415
|
+
ws.send(
|
|
416
|
+
JSON.stringify({
|
|
417
|
+
type: "runningProcesses",
|
|
418
|
+
processes,
|
|
419
|
+
})
|
|
420
|
+
);
|
|
421
|
+
} else if (message.type === "getProcess") {
|
|
422
|
+
// Send specific process with full logs
|
|
423
|
+
const processId = message.processId;
|
|
424
|
+
const procInfo = this.allProcesses.get(processId);
|
|
425
|
+
if (procInfo) {
|
|
426
|
+
ws.send(
|
|
427
|
+
JSON.stringify({
|
|
428
|
+
type: "processData",
|
|
429
|
+
processId,
|
|
430
|
+
command: procInfo.command,
|
|
431
|
+
pid: procInfo.pid,
|
|
432
|
+
status: procInfo.status,
|
|
433
|
+
exitCode: procInfo.exitCode,
|
|
434
|
+
error: procInfo.error,
|
|
435
|
+
timestamp: procInfo.timestamp,
|
|
436
|
+
logs: this.processLogs.get(processId) || [],
|
|
437
|
+
})
|
|
438
|
+
);
|
|
439
|
+
}
|
|
440
|
+
} else if (message.type === "stdin") {
|
|
441
|
+
// Handle stdin input for a process
|
|
442
|
+
const processId = message.processId;
|
|
443
|
+
const data = message.data;
|
|
444
|
+
console.log("Received stdin for process", processId, ":", data);
|
|
445
|
+
const childProcess = this.runningProcesses.get(processId);
|
|
446
|
+
|
|
447
|
+
if (childProcess && childProcess.stdin) {
|
|
448
|
+
console.log("Writing to process stdin");
|
|
449
|
+
childProcess.stdin.write(data);
|
|
450
|
+
} else {
|
|
451
|
+
console.log(
|
|
452
|
+
"Cannot write to stdin - process not found or no stdin:",
|
|
453
|
+
{
|
|
454
|
+
processExists: !!childProcess,
|
|
455
|
+
stdinExists: childProcess?.stdin ? true : false,
|
|
456
|
+
}
|
|
457
|
+
);
|
|
458
|
+
}
|
|
459
|
+
} else if (message.type === "killProcess") {
|
|
460
|
+
// Handle killing a process
|
|
461
|
+
const processId = message.processId;
|
|
462
|
+
console.log("Received killProcess for process", processId);
|
|
463
|
+
const childProcess = this.runningProcesses.get(processId);
|
|
464
|
+
|
|
465
|
+
if (childProcess) {
|
|
466
|
+
console.log("Killing process");
|
|
467
|
+
childProcess.kill("SIGTERM");
|
|
468
|
+
// The process exit handler will update the status and broadcast the change
|
|
469
|
+
} else {
|
|
470
|
+
console.log("Cannot kill process - process not found:", {
|
|
471
|
+
processExists: !!childProcess,
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
} catch (error) {
|
|
476
|
+
console.error("Error handling WebSocket message:", error);
|
|
477
|
+
}
|
|
478
|
+
});
|
|
479
|
+
|
|
480
|
+
ws.on("close", () => {
|
|
481
|
+
this.clients.delete(ws);
|
|
482
|
+
console.log("Client disconnected");
|
|
483
|
+
});
|
|
484
|
+
|
|
485
|
+
ws.on("error", (error) => {
|
|
486
|
+
console.error("WebSocket error:", error);
|
|
487
|
+
this.clients.delete(ws);
|
|
488
|
+
});
|
|
489
|
+
});
|
|
490
|
+
|
|
491
|
+
// Start HTTP server
|
|
492
|
+
const httpPort = Number(process.env.HTTP_PORT) || 3000;
|
|
493
|
+
this.httpServer.listen(httpPort, () => {
|
|
494
|
+
console.log(`HTTP server running on http://localhost:${httpPort}`);
|
|
495
|
+
});
|
|
258
496
|
}
|
|
259
497
|
|
|
260
498
|
async stopSideCar(uid: number): Promise<any> {
|
|
@@ -438,7 +676,7 @@ export class PM_Main extends PM_WithEslintAndTsc {
|
|
|
438
676
|
IRunTime,
|
|
439
677
|
(f: fs.FSWatcher) => void
|
|
440
678
|
]) => {
|
|
441
|
-
const metafile = `./testeranto/
|
|
679
|
+
const metafile = `./testeranto/metafiles/${runtime}/${this.name}.json`;
|
|
442
680
|
|
|
443
681
|
await pollForFile(metafile);
|
|
444
682
|
|
|
@@ -526,6 +764,22 @@ export class PM_Main extends PM_WithEslintAndTsc {
|
|
|
526
764
|
// Close any remaining log streams
|
|
527
765
|
Object.values(this.logStreams || {}).forEach((logs) => logs.closeAll());
|
|
528
766
|
|
|
767
|
+
// Close WebSocket server
|
|
768
|
+
this.wss.close(() => {
|
|
769
|
+
console.log("WebSocket server closed");
|
|
770
|
+
});
|
|
771
|
+
|
|
772
|
+
// Close all client connections
|
|
773
|
+
this.clients.forEach((client) => {
|
|
774
|
+
client.terminate();
|
|
775
|
+
});
|
|
776
|
+
this.clients.clear();
|
|
777
|
+
|
|
778
|
+
// Close HTTP server
|
|
779
|
+
this.httpServer.close(() => {
|
|
780
|
+
console.log("HTTP server closed");
|
|
781
|
+
});
|
|
782
|
+
|
|
529
783
|
this.checkForShutdown();
|
|
530
784
|
}
|
|
531
785
|
|
|
@@ -547,9 +801,7 @@ export class PM_Main extends PM_WithEslintAndTsc {
|
|
|
547
801
|
async metafileOutputs(platform: IRunTime) {
|
|
548
802
|
const metafile = JSON.parse(
|
|
549
803
|
fs
|
|
550
|
-
.readFileSync(
|
|
551
|
-
`./testeranto/bundles/${platform}/${this.name}/metafile.json`
|
|
552
|
-
)
|
|
804
|
+
.readFileSync(`./testeranto/metafiles/${platform}/${this.name}.json`)
|
|
553
805
|
.toString()
|
|
554
806
|
).metafile;
|
|
555
807
|
|
|
@@ -1514,9 +1766,28 @@ import('${d}').then(async (x) => {
|
|
|
1514
1766
|
srcTest.split(".").slice(0, -1).join(".") + ".features.txt"
|
|
1515
1767
|
);
|
|
1516
1768
|
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
)
|
|
1769
|
+
// Read and parse the test report
|
|
1770
|
+
const testReportPath = `${reportDest}/tests.json`;
|
|
1771
|
+
if (!fs.existsSync(testReportPath)) {
|
|
1772
|
+
console.error(`tests.json not found at: ${testReportPath}`);
|
|
1773
|
+
return;
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
const testReport = JSON.parse(fs.readFileSync(testReportPath, "utf8"));
|
|
1777
|
+
|
|
1778
|
+
// Add full path information to each test
|
|
1779
|
+
if (testReport.tests) {
|
|
1780
|
+
testReport.tests.forEach((test) => {
|
|
1781
|
+
// Add the full path to each test
|
|
1782
|
+
test.fullPath = path.resolve(process.cwd(), srcTest);
|
|
1783
|
+
});
|
|
1784
|
+
}
|
|
1785
|
+
|
|
1786
|
+
// Add full path to the report itself
|
|
1787
|
+
testReport.fullPath = path.resolve(process.cwd(), srcTest);
|
|
1788
|
+
|
|
1789
|
+
// Write the modified report back
|
|
1790
|
+
fs.writeFileSync(testReportPath, JSON.stringify(testReport, null, 2));
|
|
1520
1791
|
|
|
1521
1792
|
testReport.features
|
|
1522
1793
|
.reduce(async (mm, featureStringKey) => {
|
|
@@ -1574,7 +1845,7 @@ import('${d}').then(async (x) => {
|
|
|
1574
1845
|
}, Promise.resolve({ files: [] as string[], strings: [] as string[] }))
|
|
1575
1846
|
|
|
1576
1847
|
.then(({ files, strings }: { files: string[]; strings: string[] }) => {
|
|
1577
|
-
// Markdown files must be referenced in the prompt but string style features are already present in the
|
|
1848
|
+
// Markdown files must be referenced in the prompt but string style features are already present in the tests.json file
|
|
1578
1849
|
|
|
1579
1850
|
fs.writeFileSync(
|
|
1580
1851
|
`testeranto/reports/${this.name}/${srcTest
|
|
@@ -1601,6 +1872,151 @@ import('${d}').then(async (x) => {
|
|
|
1601
1872
|
this.writeBigBoard();
|
|
1602
1873
|
};
|
|
1603
1874
|
|
|
1875
|
+
requestHandler(req: http.IncomingMessage, res: http.ServerResponse) {
|
|
1876
|
+
// Parse the URL
|
|
1877
|
+
const parsedUrl = url.parse(req.url || "/");
|
|
1878
|
+
let pathname = parsedUrl.pathname || "/";
|
|
1879
|
+
|
|
1880
|
+
// Handle root path
|
|
1881
|
+
if (pathname === "/") {
|
|
1882
|
+
pathname = "/index.html";
|
|
1883
|
+
}
|
|
1884
|
+
|
|
1885
|
+
// Remove leading slash
|
|
1886
|
+
let filePath = pathname.substring(1);
|
|
1887
|
+
|
|
1888
|
+
// Determine which directory to serve from
|
|
1889
|
+
if (filePath.startsWith("reports/")) {
|
|
1890
|
+
// Serve from reports directory
|
|
1891
|
+
filePath = `testeranto/${filePath}`;
|
|
1892
|
+
} else if (filePath.startsWith("metafiles/")) {
|
|
1893
|
+
// Serve from metafiles directory
|
|
1894
|
+
filePath = `testeranto/${filePath}`;
|
|
1895
|
+
} else if (filePath === "projects.json") {
|
|
1896
|
+
// Serve projects.json
|
|
1897
|
+
filePath = `testeranto/${filePath}`;
|
|
1898
|
+
} else {
|
|
1899
|
+
// For frontend assets, try multiple possible locations
|
|
1900
|
+
// First, try the dist directory
|
|
1901
|
+
const possiblePaths = [
|
|
1902
|
+
`dist/${filePath}`,
|
|
1903
|
+
`testeranto/dist/${filePath}`,
|
|
1904
|
+
`../dist/${filePath}`,
|
|
1905
|
+
`./${filePath}`,
|
|
1906
|
+
];
|
|
1907
|
+
|
|
1908
|
+
// Find the first existing file
|
|
1909
|
+
let foundPath = null;
|
|
1910
|
+
for (const possiblePath of possiblePaths) {
|
|
1911
|
+
if (fs.existsSync(possiblePath)) {
|
|
1912
|
+
foundPath = possiblePath;
|
|
1913
|
+
break;
|
|
1914
|
+
}
|
|
1915
|
+
}
|
|
1916
|
+
|
|
1917
|
+
if (foundPath) {
|
|
1918
|
+
filePath = foundPath;
|
|
1919
|
+
} else {
|
|
1920
|
+
// If no file found, serve index.html for SPA routing
|
|
1921
|
+
const indexPath = this.findIndexHtml();
|
|
1922
|
+
if (indexPath) {
|
|
1923
|
+
fs.readFile(indexPath, (err, data) => {
|
|
1924
|
+
if (err) {
|
|
1925
|
+
res.writeHead(404, { "Content-Type": "text/plain" });
|
|
1926
|
+
res.end("404 Not Found");
|
|
1927
|
+
return;
|
|
1928
|
+
}
|
|
1929
|
+
res.writeHead(200, { "Content-Type": "text/html" });
|
|
1930
|
+
res.end(data);
|
|
1931
|
+
});
|
|
1932
|
+
return;
|
|
1933
|
+
} else {
|
|
1934
|
+
res.writeHead(404, { "Content-Type": "text/plain" });
|
|
1935
|
+
res.end("404 Not Found");
|
|
1936
|
+
return;
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
}
|
|
1940
|
+
|
|
1941
|
+
// Check if file exists
|
|
1942
|
+
fs.exists(filePath, (exists) => {
|
|
1943
|
+
if (!exists) {
|
|
1944
|
+
// For SPA routing, serve index.html if the path looks like a route
|
|
1945
|
+
if (!pathname.includes(".") && pathname !== "/") {
|
|
1946
|
+
const indexPath = this.findIndexHtml();
|
|
1947
|
+
if (indexPath) {
|
|
1948
|
+
fs.readFile(indexPath, (err, data) => {
|
|
1949
|
+
if (err) {
|
|
1950
|
+
res.writeHead(404, { "Content-Type": "text/plain" });
|
|
1951
|
+
res.end("404 Not Found");
|
|
1952
|
+
return;
|
|
1953
|
+
}
|
|
1954
|
+
res.writeHead(200, { "Content-Type": "text/html" });
|
|
1955
|
+
res.end(data);
|
|
1956
|
+
});
|
|
1957
|
+
return;
|
|
1958
|
+
} else {
|
|
1959
|
+
// Serve a simple message if index.html is not found
|
|
1960
|
+
res.writeHead(200, { "Content-Type": "text/html" });
|
|
1961
|
+
res.end(`
|
|
1962
|
+
<html>
|
|
1963
|
+
<body>
|
|
1964
|
+
<h1>Testeranto is running</h1>
|
|
1965
|
+
<p>Frontend files are not built yet. Run 'npm run build' to build the frontend.</p>
|
|
1966
|
+
</body>
|
|
1967
|
+
</html>
|
|
1968
|
+
`);
|
|
1969
|
+
return;
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1972
|
+
res.writeHead(404, { "Content-Type": "text/plain" });
|
|
1973
|
+
res.end("404 Not Found");
|
|
1974
|
+
return;
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
// Read and serve the file
|
|
1978
|
+
fs.readFile(filePath, (err, data) => {
|
|
1979
|
+
if (err) {
|
|
1980
|
+
res.writeHead(500, { "Content-Type": "text/plain" });
|
|
1981
|
+
res.end("500 Internal Server Error");
|
|
1982
|
+
return;
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1985
|
+
// Get MIME type
|
|
1986
|
+
const mimeType = mime.lookup(filePath) || "application/octet-stream";
|
|
1987
|
+
res.writeHead(200, { "Content-Type": mimeType });
|
|
1988
|
+
res.end(data);
|
|
1989
|
+
});
|
|
1990
|
+
});
|
|
1991
|
+
}
|
|
1992
|
+
|
|
1993
|
+
findIndexHtml(): string | null {
|
|
1994
|
+
const possiblePaths = [
|
|
1995
|
+
"dist/index.html",
|
|
1996
|
+
"testeranto/dist/index.html",
|
|
1997
|
+
"../dist/index.html",
|
|
1998
|
+
"./index.html",
|
|
1999
|
+
];
|
|
2000
|
+
|
|
2001
|
+
for (const path of possiblePaths) {
|
|
2002
|
+
if (fs.existsSync(path)) {
|
|
2003
|
+
return path;
|
|
2004
|
+
}
|
|
2005
|
+
}
|
|
2006
|
+
return null;
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
broadcast(message: any) {
|
|
2010
|
+
const data =
|
|
2011
|
+
typeof message === "string" ? message : JSON.stringify(message);
|
|
2012
|
+
this.clients.forEach((client) => {
|
|
2013
|
+
if (client.readyState === 1) {
|
|
2014
|
+
// WebSocket.OPEN
|
|
2015
|
+
client.send(data);
|
|
2016
|
+
}
|
|
2017
|
+
});
|
|
2018
|
+
}
|
|
2019
|
+
|
|
1604
2020
|
checkQueue() {
|
|
1605
2021
|
const x = this.queue.pop();
|
|
1606
2022
|
if (!x) {
|
package/src/PM/node.ts
CHANGED
|
@@ -185,8 +185,11 @@ export class PM_Node extends PM {
|
|
|
185
185
|
async writeFileSync(x) {
|
|
186
186
|
const z = arguments["0"];
|
|
187
187
|
|
|
188
|
-
const filepath = z[0];
|
|
189
|
-
const contents = z[1];
|
|
188
|
+
// const filepath = z[0];
|
|
189
|
+
// const contents = z[1];
|
|
190
|
+
|
|
191
|
+
const filepath = arguments[0];
|
|
192
|
+
const contents = arguments[1];
|
|
190
193
|
|
|
191
194
|
return await this.send<boolean>(
|
|
192
195
|
"writeFileSync",
|
package/src/PM/pure.ts
CHANGED
|
@@ -15,13 +15,11 @@ type PuppetMasterServer = Record<string, Promise<any>>;
|
|
|
15
15
|
|
|
16
16
|
export class PM_Pure extends PM {
|
|
17
17
|
getInnerHtml(selector: string, page: string): Promise<string> {
|
|
18
|
-
throw new Error("pure.ts
|
|
19
|
-
return Promise.resolve("");
|
|
18
|
+
throw new Error("pure.ts getInnerHtml not implemented");
|
|
20
19
|
}
|
|
21
20
|
|
|
22
|
-
stopSideCar(uid: number): Promise<
|
|
23
|
-
throw new Error("pure.ts
|
|
24
|
-
return Promise.resolve(true);
|
|
21
|
+
stopSideCar(uid: number): Promise<any> {
|
|
22
|
+
throw new Error("pure.ts stopSideCar not implemented");
|
|
25
23
|
}
|
|
26
24
|
server: PuppetMasterServer;
|
|
27
25
|
testResourceConfiguration: ITTestResourceConfiguration;
|
|
@@ -32,6 +30,10 @@ export class PM_Pure extends PM {
|
|
|
32
30
|
this.testResourceConfiguration = t;
|
|
33
31
|
}
|
|
34
32
|
|
|
33
|
+
protected trackCall(method: string, args: any) {
|
|
34
|
+
// Track calls if needed
|
|
35
|
+
}
|
|
36
|
+
|
|
35
37
|
start(): Promise<void> {
|
|
36
38
|
return new Promise((r) => r());
|
|
37
39
|
}
|
|
@@ -40,6 +42,11 @@ export class PM_Pure extends PM {
|
|
|
40
42
|
return new Promise((r) => r());
|
|
41
43
|
}
|
|
42
44
|
|
|
45
|
+
async createWriteStream(filepath: string, testName: string): Promise<string> {
|
|
46
|
+
throw new Error("pure.ts createWriteStream not implemented");
|
|
47
|
+
return "";
|
|
48
|
+
}
|
|
49
|
+
|
|
43
50
|
launchSideCar(n: number): Promise<[number, ITTestResourceConfiguration]> {
|
|
44
51
|
return globalThis["launchSideCar"](n, this.testResourceConfiguration.name);
|
|
45
52
|
}
|
|
@@ -111,7 +118,7 @@ export class PM_Pure extends PM {
|
|
|
111
118
|
return globalThis["screencastStop"](p);
|
|
112
119
|
}
|
|
113
120
|
|
|
114
|
-
customScreenShot(opts:
|
|
121
|
+
customScreenShot(opts: { path: string }, page?: string) {
|
|
115
122
|
return globalThis["customScreenShot"](
|
|
116
123
|
{
|
|
117
124
|
...opts,
|
|
@@ -122,33 +129,23 @@ export class PM_Pure extends PM {
|
|
|
122
129
|
);
|
|
123
130
|
}
|
|
124
131
|
|
|
132
|
+
// TODO: fix these
|
|
125
133
|
existsSync(destFolder: string): Promise<boolean> {
|
|
126
|
-
// Pure runtime doesn't need filesystem checks
|
|
127
134
|
return Promise.resolve(true);
|
|
128
135
|
}
|
|
129
136
|
|
|
130
137
|
mkdirSync() {
|
|
131
|
-
// Pure runtime doesn't need directories
|
|
132
138
|
return true;
|
|
133
139
|
}
|
|
134
140
|
|
|
135
141
|
write(uid: number, contents: string) {
|
|
136
|
-
// Pure runtime doesn't need file writing
|
|
137
142
|
return Promise.resolve(true);
|
|
138
143
|
}
|
|
139
144
|
|
|
140
145
|
writeFileSync() {
|
|
141
|
-
// Pure runtime doesn't need file writing
|
|
142
146
|
return Promise.resolve(true);
|
|
143
147
|
}
|
|
144
|
-
|
|
145
|
-
createWriteStream() {
|
|
146
|
-
// Pure runtime doesn't need file streams
|
|
147
|
-
return {
|
|
148
|
-
write: () => true,
|
|
149
|
-
end: () => {}
|
|
150
|
-
};
|
|
151
|
-
}
|
|
148
|
+
/////////////////////////////////////////////////////
|
|
152
149
|
|
|
153
150
|
end(uid: number) {
|
|
154
151
|
return globalThis["end"](uid);
|
|
@@ -161,49 +158,14 @@ export class PM_Pure extends PM {
|
|
|
161
158
|
);
|
|
162
159
|
}
|
|
163
160
|
|
|
164
|
-
testArtiFactoryfileWriter(
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
// fs.mkdir(targetDir, { recursive: true }, async (error) => {
|
|
173
|
-
// if (error) {
|
|
174
|
-
// console.error(`❗️testArtiFactory failed`, targetDir, error);
|
|
175
|
-
// }
|
|
176
|
-
// fs.writeFileSync(
|
|
177
|
-
// path.resolve(
|
|
178
|
-
// targetDir.split("/").slice(0, -1).join("/"),
|
|
179
|
-
// "manifest"
|
|
180
|
-
// ),
|
|
181
|
-
// fPaths.join(`\n`),
|
|
182
|
-
// {
|
|
183
|
-
// encoding: "utf-8",
|
|
184
|
-
// }
|
|
185
|
-
// );
|
|
186
|
-
// if (Buffer.isBuffer(value)) {
|
|
187
|
-
// fs.writeFileSync(fPath, value, "binary");
|
|
188
|
-
// res();
|
|
189
|
-
// } else if (`string` === typeof value) {
|
|
190
|
-
// fs.writeFileSync(fPath, value.toString(), {
|
|
191
|
-
// encoding: "utf-8",
|
|
192
|
-
// });
|
|
193
|
-
// res();
|
|
194
|
-
// } else {
|
|
195
|
-
// const pipeStream: PassThrough = value;
|
|
196
|
-
// const myFile = fs.createWriteStream(fPath);
|
|
197
|
-
// pipeStream.pipe(myFile);
|
|
198
|
-
// pipeStream.on("close", () => {
|
|
199
|
-
// myFile.close();
|
|
200
|
-
// res();
|
|
201
|
-
// });
|
|
202
|
-
// }
|
|
203
|
-
// });
|
|
204
|
-
// })
|
|
205
|
-
// );
|
|
206
|
-
// };
|
|
161
|
+
testArtiFactoryfileWriter(
|
|
162
|
+
tLog: ITLog,
|
|
163
|
+
callback: (promise: Promise<any>) => void
|
|
164
|
+
) {
|
|
165
|
+
return (fPath: string, value: string | Buffer | any) => {
|
|
166
|
+
this.trackCall("testArtiFactoryfileWriter", { fPath, value });
|
|
167
|
+
callback(Promise.resolve());
|
|
168
|
+
};
|
|
207
169
|
}
|
|
208
170
|
|
|
209
171
|
// startPuppeteer(options?: any): any {
|
package/src/PM/web.ts
CHANGED
|
@@ -137,10 +137,14 @@ export class PM_Web extends PM {
|
|
|
137
137
|
|
|
138
138
|
writeFileSync(x) {
|
|
139
139
|
// eslint-disable-next-line prefer-rest-params
|
|
140
|
-
const z = arguments["0"];
|
|
140
|
+
// const z = arguments["0"];
|
|
141
|
+
|
|
142
|
+
// const filepath = z[0];
|
|
143
|
+
// const contents = z[1];
|
|
144
|
+
|
|
145
|
+
const filepath = arguments[0];
|
|
146
|
+
const contents = arguments[1];
|
|
141
147
|
|
|
142
|
-
const filepath = z[0];
|
|
143
|
-
const contents = z[1];
|
|
144
148
|
return window["writeFileSync"](
|
|
145
149
|
this.testResourceConfiguration.fs + "/" + filepath,
|
|
146
150
|
contents,
|