@orion-qa/orion 3.0.0 → 3.2.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/.claude/agents/automation-strategist.md +1 -0
- package/.claude/agents/change-agent.md +1 -0
- package/.claude/agents/codebase-analyst.md +2 -1
- package/.claude/agents/environment-discovery.md +1 -0
- package/.claude/agents/evidence-validator.md +1 -0
- package/.claude/agents/executor.md +1 -0
- package/.claude/agents/failure-analyst.md +2 -1
- package/.claude/agents/implementer.md +2 -1
- package/.claude/agents/requirement-analyst.md +1 -0
- package/.claude/agents/reviewer.md +1 -0
- package/.claude/agents/test-reporter.md +1 -0
- package/.claude/settings.json +25 -0
- package/.claude/skills/appium/SKILL.md +1 -1
- package/.claude/skills/appium/templates/README.md +6 -9
- package/.claude/skills/appium/templates/ci/github-actions-android.yml +8 -2
- package/.claude/skills/appium/templates/ci/github-actions-ios.yml +8 -2
- package/.claude/skills/appium/templates/ci/github-actions-windows.yml +9 -2
- package/.claude/skills/appium/templates/project-java/.env.example +4 -0
- package/.claude/skills/appium/templates/project-java/pom.xml +2 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/{framework/Config.java → config/Env.java} +43 -52
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/config/Flags.java +45 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/config/Paths.java +14 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/desc/SignInDesc.java +30 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/{framework → driver}/DriverFactory.java +19 -13
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/{framework → driver}/DriverManager.java +12 -9
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/fixtures/BaseTest.java +75 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/{screens → pageObjects}/BaseScreen.java +12 -12
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/pageObjects/HomeScreen.java +26 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/pageObjects/LoginScreen.java +63 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/pageObjects/ShellScreen.java +26 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/setup/AuthSetup.java +49 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/testData/TestData.java +78 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/ui/SignInTest.java +45 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/unit/UtilsTest.java +34 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/{framework → utils}/AutomationError.java +4 -4
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/Case.java +20 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/CaseTransformer.java +54 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/Dates.java +42 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/Log.java +45 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/MissingSettingError.java +13 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/RandomData.java +41 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/Redact.java +33 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/TestDescription.java +25 -0
- package/.claude/skills/appium/templates/project-java/src/test/resources/testData/testData.properties +7 -0
- package/.claude/skills/appium/templates/project-java/testng.xml +11 -4
- package/.claude/skills/architecture-analysis/SKILL.md +3 -2
- package/.claude/skills/automation-implementation/SKILL.md +8 -5
- package/.claude/skills/automation-implementation/references/patterns.md +46 -24
- package/.claude/skills/automation-review/references/assertion-guard.md +1 -1
- package/.claude/skills/code-review/SKILL.md +5 -2
- package/.claude/skills/code-review/references/pattern-rules.md +12 -7
- package/.claude/skills/documentation/SKILL.md +23 -18
- package/.claude/skills/execution/SKILL.md +7 -3
- package/.claude/skills/httpclient/templates/README.md +6 -7
- package/.claude/skills/httpclient/templates/csharp-nunit/.env.example +4 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Automation.csproj +7 -3
- package/.claude/skills/httpclient/templates/csharp-nunit/Config/Env.cs +62 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Config/Flags.cs +35 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Config/Paths.cs +22 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Fixtures/BaseTest.cs +22 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Resources/Desc/ProductsDesc.cs +22 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Resources/TestData/TestData.cs +61 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Resources/TestData/testData.json +9 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Services/ApiClient.cs +48 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Services/HealthApi.cs +11 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/{Api → Services}/ProductsApi.cs +8 -5
- package/.claude/skills/httpclient/templates/csharp-nunit/Tests/Api/ProductsTests.cs +61 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Tests/Unit/UtilsTests.cs +40 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Utils/AutomationError.cs +15 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Utils/Dates.cs +18 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Utils/Log.cs +37 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Utils/RandomData.cs +26 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Utils/Redact.cs +22 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Utils/TestDescription.cs +55 -0
- package/.claude/skills/javascript/references/sources.md +1 -1
- package/.claude/skills/k6/SKILL.md +1 -1
- package/.claude/skills/k6/templates/README.md +5 -3
- package/.claude/skills/k6/templates/project/{data/cases.js → resources/desc/products.desc.js} +1 -1
- package/.claude/skills/k6/templates/project/resources/testData/testData.js +32 -0
- package/.claude/skills/k6/templates/project/{lib/config.js → src/config/env.js} +10 -5
- package/.claude/skills/k6/templates/project/{lib → src/services}/products-api.js +7 -5
- package/.claude/skills/k6/templates/project/{load → tests/load}/products.js +8 -8
- package/.claude/skills/karate/templates/README.md +4 -5
- package/.claude/skills/karate/templates/java-junit5/.env.example +2 -0
- package/.claude/skills/karate/templates/java-junit5/pom.xml +4 -0
- package/.claude/skills/karate/templates/java-junit5/src/test/java/{support → config}/EnvSettings.java +1 -1
- package/.claude/skills/karate/templates/java-junit5/src/test/java/karate-config.js +13 -6
- package/.claude/skills/karate/templates/java-junit5/src/test/java/logback-test.xml +1 -1
- package/.claude/skills/karate/templates/java-junit5/src/test/java/{api → tests}/ApiTest.java +7 -4
- package/.claude/skills/karate/templates/java-junit5/src/test/java/{api → tests/api}/health.feature +3 -3
- package/.claude/skills/karate/templates/java-junit5/src/test/java/tests/api/products.feature +29 -0
- package/.claude/skills/karate/templates/java-junit5/src/test/java/{support → utils}/MaskingLogModifier.java +1 -1
- package/.claude/skills/karate/templates/java-junit5/src/test/resources/testData/newProduct.js +7 -0
- package/.claude/skills/karate/templates/java-junit5/src/test/resources/testData/testData.json +6 -0
- package/.claude/skills/newman/templates/README.md +4 -5
- package/.claude/skills/newman/templates/collection/.env.example +2 -0
- package/.claude/skills/newman/templates/collection/collections/api.postman_collection.json +165 -145
- package/.claude/skills/newman/templates/collection/package.json +2 -1
- package/.claude/skills/newman/templates/collection/resources/desc/products.desc.json +53 -0
- package/.claude/skills/newman/templates/collection/resources/testData/testData.json +10 -0
- package/.claude/skills/newman/templates/collection/run.js +41 -31
- package/.claude/skills/newman/templates/collection/src/config/env.js +37 -0
- package/.claude/skills/orion/SKILL.md +19 -12
- package/.claude/skills/orion/references/assess-fix.md +35 -0
- package/.claude/skills/orion/references/batch.md +64 -0
- package/.claude/skills/orion/references/blockers.md +1 -1
- package/.claude/skills/orion/references/capabilities.md +1 -1
- package/.claude/skills/orion/references/conversation.md +65 -20
- package/.claude/skills/orion/references/delivery-formats.md +24 -36
- package/.claude/skills/orion/references/doctor.md +1 -1
- package/.claude/skills/orion/references/hosts.md +1 -0
- package/.claude/skills/orion/references/modes.md +7 -3
- package/.claude/skills/orion/references/plain-language.md +55 -0
- package/.claude/skills/orion/references/project-context-files.md +8 -2
- package/.claude/skills/orion/references/recovery-loop.md +8 -0
- package/.claude/skills/orion/references/setup-card.md +29 -8
- package/.claude/skills/orion/references/status-lines.md +9 -4
- package/.claude/skills/orion/references/task-brief.md +1 -0
- package/.claude/skills/orion/references/work-branch.md +3 -1
- package/.claude/skills/orion/scripts/batch_detect.mjs +98 -0
- package/.claude/skills/orion/scripts/batch_state.mjs +179 -0
- package/.claude/skills/orion/scripts/browser_setup.mjs +41 -21
- package/.claude/skills/orion/scripts/cases_export.py +724 -0
- package/.claude/skills/orion/scripts/codemap.mjs +116 -0
- package/.claude/skills/orion/scripts/done_check.mjs +195 -0
- package/.claude/skills/orion/scripts/env_check.mjs +8 -3
- package/.claude/skills/orion/scripts/env_check.py +12 -5
- package/.claude/skills/orion/scripts/fix_plan.mjs +170 -0
- package/.claude/skills/orion/scripts/graph.mjs +400 -0
- package/.claude/skills/orion/scripts/hooks/lean_guard.mjs +162 -0
- package/.claude/skills/orion/scripts/lib/inside.mjs +31 -0
- package/.claude/skills/orion/scripts/lib/scan.mjs +357 -0
- package/.claude/skills/orion/scripts/lib/table.mjs +116 -0
- package/.claude/skills/orion/scripts/parity_check.mjs +166 -0
- package/.claude/skills/orion/scripts/quiet.mjs +160 -0
- package/.claude/skills/orion/scripts/report_check.mjs +77 -0
- package/.claude/skills/orion/scripts/results_parse.mjs +209 -0
- package/.claude/skills/orion/scripts/reuse_check.mjs +251 -0
- package/.claude/skills/orion/scripts/rules.mjs +92 -0
- package/.claude/skills/orion/scripts/run_state.mjs +238 -0
- package/.claude/skills/orion/scripts/suite_check.mjs +267 -0
- package/.claude/skills/orion/scripts/timing_profile.mjs +128 -0
- package/.claude/skills/orion/scripts/usage_report.mjs +315 -0
- package/.claude/skills/orion/templates/project-context/assessment.md +45 -0
- package/.claude/skills/orion/templates/project-context/defects.md +5 -0
- package/.claude/skills/orion/templates/project-context/report.md +45 -0
- package/.claude/skills/orion/templates/project-context/retry-policy.md +6 -0
- package/.claude/skills/orion/templates/project-context/run.md +4 -1
- package/.claude/skills/orion/templates/project-context/test-case-map.md +5 -0
- package/.claude/skills/orion/templates/project-context/test-design.md +24 -0
- package/.claude/skills/pact/SKILL.md +2 -2
- package/.claude/skills/pact/templates/README.md +4 -2
- package/.claude/skills/pact/templates/project/package.json +2 -2
- package/.claude/skills/pact/templates/project/{data/cases.js → resources/desc/products.desc.js} +3 -3
- package/.claude/skills/pact/templates/project/resources/testData/testData.js +21 -0
- package/.claude/skills/pact/templates/project/src/config/env.js +32 -0
- package/.claude/skills/pact/templates/project/src/{products-client.js → services/products-client.js} +4 -2
- package/.claude/skills/pact/templates/project/tests/contract/products.contract.test.js +46 -0
- package/.claude/skills/pact/templates/project/{verify → tests/verify}/products.verify.js +7 -22
- package/.claude/skills/playwright/SKILL.md +6 -6
- package/.claude/skills/playwright/templates/README.md +29 -10
- package/.claude/skills/playwright/templates/ci/Jenkinsfile +1 -1
- package/.claude/skills/playwright/templates/ci/azure-pipelines.yml +1 -1
- package/.claude/skills/playwright/templates/ci/github-actions-javascript.yml +1 -1
- package/.claude/skills/playwright/templates/ci/github-actions.yml +1 -1
- package/.claude/skills/playwright/templates/ci/gitlab-ci.yml +1 -1
- package/.claude/skills/playwright/templates/dotnet/.env.example +7 -0
- package/.claude/skills/playwright/templates/dotnet/.runsettings +17 -0
- package/.claude/skills/playwright/templates/dotnet/Automation.csproj +8 -0
- package/.claude/skills/playwright/templates/dotnet/Config/Env.cs +89 -0
- package/.claude/skills/playwright/templates/dotnet/Config/Flags.cs +56 -0
- package/.claude/skills/playwright/templates/dotnet/Config/Paths.cs +31 -0
- package/.claude/skills/playwright/templates/dotnet/Fixtures/ApiBaseTest.cs +39 -0
- package/.claude/skills/playwright/templates/dotnet/Fixtures/BaseTest.cs +72 -0
- package/.claude/skills/playwright/templates/dotnet/PageObjects/BasePage.cs +63 -0
- package/.claude/skills/playwright/templates/dotnet/PageObjects/HomePage.cs +21 -0
- package/.claude/skills/playwright/templates/dotnet/PageObjects/LoginPage.cs +54 -0
- package/.claude/skills/playwright/templates/dotnet/PageObjects/ShellPage.cs +29 -0
- package/.claude/skills/playwright/templates/dotnet/Resources/Desc/SignInDesc.cs +23 -0
- package/.claude/skills/playwright/templates/dotnet/Resources/TestData/TestData.cs +74 -0
- package/.claude/skills/playwright/templates/dotnet/Resources/TestData/testData.json +19 -0
- package/.claude/skills/playwright/templates/dotnet/Services/ApiClient.cs +51 -0
- package/.claude/skills/playwright/templates/dotnet/Setup/AuthSetup.cs +63 -0
- package/.claude/skills/playwright/templates/dotnet/Tests/Api/SessionTests.cs +18 -0
- package/.claude/skills/playwright/templates/dotnet/Tests/Ui/SignInTests.cs +48 -0
- package/.claude/skills/playwright/templates/dotnet/Tests/Unit/UtilsTests.cs +40 -0
- package/.claude/skills/playwright/templates/dotnet/Utils/AutomationError.cs +15 -0
- package/.claude/skills/playwright/templates/dotnet/Utils/Dates.cs +18 -0
- package/.claude/skills/playwright/templates/dotnet/Utils/Log.cs +37 -0
- package/.claude/skills/playwright/templates/dotnet/Utils/RandomData.cs +26 -0
- package/.claude/skills/playwright/templates/dotnet/Utils/Redact.cs +22 -0
- package/.claude/skills/playwright/templates/dotnet/Utils/TestDescription.cs +55 -0
- package/.claude/skills/playwright/templates/dotnet/gitignore +6 -1
- package/.claude/skills/playwright/templates/javascript/.env.example +8 -0
- package/.claude/skills/playwright/templates/javascript/fixtures/index.js +85 -0
- package/.claude/skills/playwright/templates/javascript/fixtures/session.js +82 -0
- package/.claude/skills/playwright/templates/javascript/gitignore +7 -0
- package/.claude/skills/playwright/templates/javascript/jsconfig.json +12 -0
- package/.claude/skills/playwright/templates/javascript/package.json +7 -3
- package/.claude/skills/playwright/templates/javascript/pageObjects/basePage.js +62 -0
- package/.claude/skills/playwright/templates/javascript/pageObjects/homePage.js +19 -0
- package/.claude/skills/playwright/templates/javascript/pageObjects/loginPage.js +44 -0
- package/.claude/skills/playwright/templates/javascript/pageObjects/shellPage.js +26 -0
- package/.claude/skills/playwright/templates/javascript/playwright.config.js +45 -24
- package/.claude/skills/playwright/templates/javascript/reporters/summaryReporter.js +233 -0
- package/.claude/skills/playwright/templates/javascript/resources/desc/signIn.desc.js +33 -0
- package/.claude/skills/playwright/templates/javascript/resources/testData/testData.js +45 -0
- package/.claude/skills/playwright/templates/javascript/setup/auth.setup.js +17 -0
- package/.claude/skills/playwright/templates/javascript/setup/auth.teardown.js +16 -0
- package/.claude/skills/playwright/templates/javascript/src/config/env.js +107 -0
- package/.claude/skills/playwright/templates/javascript/src/config/flags.js +70 -0
- package/.claude/skills/playwright/templates/javascript/src/config/loadEnv.js +21 -0
- package/.claude/skills/playwright/templates/javascript/src/config/paths.js +22 -0
- package/.claude/skills/playwright/templates/javascript/src/services/apiClient.js +68 -0
- package/.claude/skills/playwright/templates/javascript/tests/api/session.spec.js +15 -0
- package/.claude/skills/playwright/templates/javascript/tests/ui/signIn.spec.js +35 -0
- package/.claude/skills/playwright/templates/javascript/tests/unit/summaryReporter.test.js +34 -0
- package/.claude/skills/playwright/templates/javascript/tests/unit/utils.test.js +31 -0
- package/.claude/skills/playwright/templates/javascript/utils/date.js +28 -0
- package/.claude/skills/playwright/templates/javascript/{src → utils}/errors.js +1 -0
- package/.claude/skills/playwright/templates/javascript/utils/formFill.js +29 -0
- package/.claude/skills/playwright/templates/javascript/utils/logger.js +33 -0
- package/.claude/skills/playwright/templates/javascript/utils/random.js +37 -0
- package/.claude/skills/playwright/templates/javascript/utils/redact.js +35 -0
- package/.claude/skills/playwright/templates/javascript/utils/titles.js +38 -0
- package/.claude/skills/playwright/templates/project/.env.example +8 -0
- package/.claude/skills/playwright/templates/project/fixtures/index.ts +86 -0
- package/.claude/skills/playwright/templates/project/fixtures/session.ts +78 -0
- package/.claude/skills/playwright/templates/project/gitignore +9 -2
- package/.claude/skills/playwright/templates/project/package.json +8 -6
- package/.claude/skills/playwright/templates/project/pageObjects/basePage.ts +57 -0
- package/.claude/skills/playwright/templates/project/pageObjects/homePage.ts +20 -0
- package/.claude/skills/playwright/templates/project/pageObjects/loginPage.ts +47 -0
- package/.claude/skills/playwright/templates/project/pageObjects/shellPage.ts +22 -0
- package/.claude/skills/playwright/templates/project/playwright.config.ts +49 -23
- package/.claude/skills/playwright/templates/project/reporters/summaryReporter.ts +241 -0
- package/.claude/skills/playwright/templates/project/resources/desc/signIn.desc.ts +32 -0
- package/.claude/skills/playwright/templates/project/resources/testData/testData.ts +42 -0
- package/.claude/skills/playwright/templates/project/setup/auth.setup.ts +16 -0
- package/.claude/skills/playwright/templates/project/setup/auth.teardown.ts +15 -0
- package/.claude/skills/playwright/templates/project/src/config/env.ts +109 -0
- package/.claude/skills/playwright/templates/project/src/config/flags.ts +70 -0
- package/.claude/skills/playwright/templates/project/src/config/loadEnv.ts +17 -0
- package/.claude/skills/playwright/templates/project/src/config/paths.ts +19 -0
- package/.claude/skills/playwright/templates/project/src/services/apiClient.ts +70 -0
- package/.claude/skills/playwright/templates/project/tests/api/session.spec.ts +14 -0
- package/.claude/skills/playwright/templates/project/tests/ui/signIn.spec.ts +34 -0
- package/.claude/skills/playwright/templates/project/tests/unit/summaryReporter.test.ts +33 -0
- package/.claude/skills/playwright/templates/project/tests/unit/utils.test.ts +30 -0
- package/.claude/skills/playwright/templates/project/tsconfig.json +3 -8
- package/.claude/skills/playwright/templates/project/utils/date.ts +25 -0
- package/.claude/skills/playwright/templates/project/utils/formFill.ts +27 -0
- package/.claude/skills/playwright/templates/project/utils/logger.ts +32 -0
- package/.claude/skills/playwright/templates/project/utils/random.ts +34 -0
- package/.claude/skills/playwright/templates/project/utils/redact.ts +32 -0
- package/.claude/skills/playwright/templates/project/utils/titles.ts +42 -0
- package/.claude/skills/playwright/templates/python/.env.example +8 -0
- package/.claude/skills/playwright/templates/python/conftest.py +91 -16
- package/.claude/skills/playwright/templates/python/gitignore +5 -0
- package/.claude/skills/playwright/templates/python/page_objects/__init__.py +1 -0
- package/.claude/skills/playwright/templates/python/page_objects/base_page.py +57 -0
- package/.claude/skills/playwright/templates/python/page_objects/home_page.py +22 -0
- package/.claude/skills/playwright/templates/python/page_objects/login_page.py +42 -0
- package/.claude/skills/playwright/templates/python/page_objects/shell_page.py +21 -0
- package/.claude/skills/playwright/templates/python/pytest.ini +5 -2
- package/.claude/skills/playwright/templates/python/requirements.txt +1 -0
- package/.claude/skills/playwright/templates/python/resources/__init__.py +1 -0
- package/.claude/skills/playwright/templates/python/resources/desc/__init__.py +1 -0
- package/.claude/skills/playwright/templates/python/resources/desc/sign_in_desc.py +27 -0
- package/.claude/skills/playwright/templates/python/resources/test_data/__init__.py +1 -0
- package/.claude/skills/playwright/templates/python/resources/test_data/test_data.py +41 -0
- package/.claude/skills/playwright/templates/python/setup/__init__.py +1 -0
- package/.claude/skills/playwright/templates/python/setup/auth.py +53 -0
- package/.claude/skills/playwright/templates/python/src/__init__.py +1 -0
- package/.claude/skills/playwright/templates/python/src/config/__init__.py +1 -0
- package/.claude/skills/playwright/templates/python/src/config/env.py +109 -0
- package/.claude/skills/playwright/templates/python/src/config/flags.py +63 -0
- package/.claude/skills/playwright/templates/python/src/config/load_env.py +16 -0
- package/.claude/skills/playwright/templates/python/src/config/paths.py +25 -0
- package/.claude/skills/playwright/templates/python/src/services/__init__.py +1 -0
- package/.claude/skills/playwright/templates/python/src/services/api_client.py +60 -0
- package/.claude/skills/playwright/templates/python/tests/api/test_session.py +14 -0
- package/.claude/skills/playwright/templates/python/tests/ui/test_sign_in.py +36 -0
- package/.claude/skills/playwright/templates/python/tests/unit/test_utils.py +32 -0
- package/.claude/skills/playwright/templates/python/utils/__init__.py +1 -0
- package/.claude/skills/playwright/templates/python/utils/dates.py +23 -0
- package/.claude/skills/playwright/templates/python/{framework → utils}/errors.py +3 -2
- package/.claude/skills/playwright/templates/python/utils/form_fill.py +26 -0
- package/.claude/skills/playwright/templates/python/utils/logger.py +40 -0
- package/.claude/skills/playwright/templates/python/utils/markers.py +6 -0
- package/.claude/skills/playwright/templates/python/utils/random_data.py +35 -0
- package/.claude/skills/playwright/templates/python/utils/redact.py +30 -0
- package/.claude/skills/playwright/templates/python/utils/titles.py +53 -0
- package/.claude/skills/quality-checks/SKILL.md +11 -11
- package/.claude/skills/quality-checks/templates/README.md +14 -12
- package/.claude/skills/quality-checks/templates/playwright-js/pageObjects/scannedPage.js +21 -0
- package/.claude/skills/quality-checks/templates/playwright-js/resources/desc/quality.desc.js +63 -0
- package/.claude/skills/quality-checks/templates/playwright-js/resources/testData/qualityData.js +32 -0
- package/.claude/skills/quality-checks/templates/playwright-js/src/checks/accessibility.js +50 -0
- package/.claude/skills/quality-checks/templates/playwright-js/src/checks/pageHealth.js +38 -0
- package/.claude/skills/quality-checks/templates/playwright-js/src/checks/performance.js +21 -0
- package/.claude/skills/quality-checks/templates/playwright-js/src/services/graphqlClient.js +28 -0
- package/.claude/skills/quality-checks/templates/playwright-js/tests/api/graphql.spec.js +23 -0
- package/.claude/skills/quality-checks/templates/playwright-js/tests/ui/quality.spec.js +50 -0
- package/.claude/skills/quality-checks/templates/playwright-ts/pageObjects/scannedPage.ts +20 -0
- package/.claude/skills/quality-checks/templates/playwright-ts/resources/desc/quality.desc.ts +59 -0
- package/.claude/skills/quality-checks/templates/playwright-ts/{src/data/quality.data.ts → resources/testData/qualityData.ts} +3 -2
- package/.claude/skills/quality-checks/templates/playwright-ts/tests/api/graphql.spec.ts +22 -0
- package/.claude/skills/quality-checks/templates/playwright-ts/tests/ui/quality.spec.ts +49 -0
- package/.claude/skills/requests/templates/README.md +6 -7
- package/.claude/skills/requests/templates/python-pytest/.env.example +4 -0
- package/.claude/skills/requests/templates/python-pytest/conftest.py +24 -9
- package/.claude/skills/requests/templates/python-pytest/pytest.ini +6 -3
- package/.claude/skills/requests/templates/python-pytest/requirements.txt +1 -0
- package/.claude/skills/requests/templates/python-pytest/resources/__init__.py +1 -0
- package/.claude/skills/requests/templates/python-pytest/resources/desc/__init__.py +1 -0
- package/.claude/skills/requests/templates/python-pytest/resources/desc/products_desc.py +27 -0
- package/.claude/skills/requests/templates/python-pytest/resources/test_data/__init__.py +1 -0
- package/.claude/skills/requests/templates/python-pytest/resources/test_data/test_data.py +27 -0
- package/.claude/skills/requests/templates/python-pytest/src/__init__.py +1 -0
- package/.claude/skills/requests/templates/python-pytest/src/config/__init__.py +1 -0
- package/.claude/skills/requests/templates/python-pytest/src/config/env.py +39 -0
- package/.claude/skills/requests/templates/python-pytest/src/config/flags.py +35 -0
- package/.claude/skills/requests/templates/python-pytest/src/config/load_env.py +16 -0
- package/.claude/skills/requests/templates/python-pytest/src/config/paths.py +16 -0
- package/.claude/skills/requests/templates/python-pytest/src/services/__init__.py +1 -0
- package/.claude/skills/requests/templates/python-pytest/{api/client.py → src/services/api_client.py} +19 -10
- package/.claude/skills/requests/templates/python-pytest/{api → src/services}/products_api.py +3 -9
- package/.claude/skills/requests/templates/python-pytest/tests/api/test_products.py +35 -0
- package/.claude/skills/requests/templates/python-pytest/tests/unit/test_utils.py +32 -0
- package/.claude/skills/requests/templates/python-pytest/utils/__init__.py +1 -0
- package/.claude/skills/requests/templates/python-pytest/utils/dates.py +23 -0
- package/.claude/skills/{selenium/templates/python-pytest/framework → requests/templates/python-pytest/utils}/errors.py +4 -3
- package/.claude/skills/requests/templates/python-pytest/utils/logger.py +40 -0
- package/.claude/skills/requests/templates/python-pytest/utils/random_data.py +35 -0
- package/.claude/skills/requests/templates/python-pytest/utils/redact.py +30 -0
- package/.claude/skills/requests/templates/python-pytest/utils/titles.py +53 -0
- package/.claude/skills/requirement-analysis/SKILL.md +1 -1
- package/.claude/skills/rest-assured/SKILL.md +1 -1
- package/.claude/skills/rest-assured/templates/README.md +6 -7
- package/.claude/skills/rest-assured/templates/ci/github-actions.yml +5 -2
- package/.claude/skills/rest-assured/templates/java-testng/.env.example +3 -0
- package/.claude/skills/rest-assured/templates/java-testng/pom.xml +7 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/{api/ApiConfig.java → config/Env.java} +35 -22
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/config/Flags.java +17 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/config/Paths.java +14 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/desc/ProductsDesc.java +26 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/fixtures/BaseTest.java +29 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/services/ApiSpec.java +31 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/services/HealthApi.java +17 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/{api → services}/ProductsApi.java +19 -14
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/{data → testData}/ProductBuilder.java +4 -8
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/testData/TestData.java +64 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/tests/api/ProductsTest.java +49 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/tests/unit/UtilsTest.java +34 -0
- package/.claude/skills/{selenium/templates/java-testng/src/test/java/automation/framework → rest-assured/templates/java-testng/src/test/java/automation/utils}/AutomationError.java +4 -4
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/Case.java +20 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/CaseTransformer.java +54 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/Dates.java +42 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/Log.java +45 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/MissingSettingError.java +13 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/RandomData.java +41 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/Redact.java +33 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/TestDescription.java +25 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/resources/testData/testData.properties +14 -0
- package/.claude/skills/rest-assured/templates/java-testng/testng.xml +14 -0
- package/.claude/skills/selenium/SKILL.md +1 -1
- package/.claude/skills/selenium/templates/README.md +25 -13
- package/.claude/skills/selenium/templates/ci/github-actions-java.yml +5 -2
- package/.claude/skills/selenium/templates/csharp-nunit/.env.example +15 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Automation.csproj +7 -0
- package/.claude/skills/selenium/templates/csharp-nunit/{Framework/Config.cs → Config/Env.cs} +33 -34
- package/.claude/skills/selenium/templates/csharp-nunit/Config/Flags.cs +39 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Config/Paths.cs +31 -0
- package/.claude/skills/selenium/templates/csharp-nunit/{Framework → Driver}/DriverFactory.cs +16 -13
- package/.claude/skills/selenium/templates/csharp-nunit/Driver/DriverManager.cs +27 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Fixtures/BaseTest.cs +56 -0
- package/.claude/skills/selenium/templates/csharp-nunit/{Pages → PageObjects}/BasePage.cs +44 -14
- package/.claude/skills/selenium/templates/csharp-nunit/PageObjects/HomePage.cs +21 -0
- package/.claude/skills/selenium/templates/csharp-nunit/PageObjects/LoginPage.cs +53 -0
- package/.claude/skills/selenium/templates/csharp-nunit/PageObjects/ShellPage.cs +22 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Resources/Desc/SignInDesc.cs +23 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Resources/TestData/TestData.cs +74 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Resources/TestData/testData.json +14 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Services/ApiClient.cs +71 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Setup/AuthSetup.cs +104 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Tests/Api/SessionTests.cs +23 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Tests/Ui/SignInTests.cs +42 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Tests/Unit/UtilsTests.cs +40 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Utils/AutomationError.cs +15 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Utils/Dates.cs +18 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Utils/FormFill.cs +20 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Utils/Log.cs +37 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Utils/RandomData.cs +26 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Utils/Redact.cs +22 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Utils/TestDescription.cs +55 -0
- package/.claude/skills/selenium/templates/csharp-nunit/gitignore +6 -2
- package/.claude/skills/selenium/templates/java-testng/.env.example +12 -0
- package/.claude/skills/selenium/templates/java-testng/gitignore +5 -2
- package/.claude/skills/selenium/templates/java-testng/pom.xml +2 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/{framework/Config.java → config/Env.java} +45 -55
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/config/Flags.java +50 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/config/Paths.java +20 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/desc/SignInDesc.java +30 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/{framework → driver}/DriverFactory.java +15 -12
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/{framework → driver}/DriverManager.java +4 -7
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/fixtures/BaseTest.java +87 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/{pages → pageObjects}/BasePage.java +41 -17
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pageObjects/HomePage.java +32 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pageObjects/LoginPage.java +69 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pageObjects/ShellPage.java +34 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/services/ApiClient.java +93 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/setup/AuthSetup.java +125 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/testData/TestData.java +88 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/api/SessionTest.java +23 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/ui/SignInTest.java +46 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/unit/UtilsTest.java +34 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/AutomationError.java +18 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/Case.java +20 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/CaseTransformer.java +54 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/Dates.java +42 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/FormFill.java +25 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/Log.java +45 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/MissingSettingError.java +13 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/RandomData.java +41 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/Redact.java +33 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/TestDescription.java +25 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/resources/testData/testData.properties +11 -0
- package/.claude/skills/selenium/templates/java-testng/testng.xml +15 -5
- package/.claude/skills/selenium/templates/python-pytest/.env.example +12 -0
- package/.claude/skills/selenium/templates/python-pytest/conftest.py +63 -12
- package/.claude/skills/selenium/templates/python-pytest/gitignore +7 -2
- package/.claude/skills/selenium/templates/python-pytest/page_objects/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/{pages → page_objects}/base_page.py +20 -20
- package/.claude/skills/selenium/templates/python-pytest/page_objects/home_page.py +17 -0
- package/.claude/skills/selenium/templates/python-pytest/{pages → page_objects}/login_page.py +12 -14
- package/.claude/skills/selenium/templates/python-pytest/page_objects/shell_page.py +16 -0
- package/.claude/skills/selenium/templates/python-pytest/pytest.ini +6 -2
- package/.claude/skills/selenium/templates/python-pytest/requirements.txt +1 -0
- package/.claude/skills/selenium/templates/python-pytest/resources/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/resources/desc/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/resources/desc/sign_in_desc.py +27 -0
- package/.claude/skills/selenium/templates/python-pytest/resources/test_data/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/resources/test_data/test_data.py +25 -0
- package/.claude/skills/selenium/templates/python-pytest/setup/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/setup/auth.py +60 -0
- package/.claude/skills/selenium/templates/python-pytest/src/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/src/config/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/src/config/env.py +68 -0
- package/.claude/skills/selenium/templates/python-pytest/src/config/flags.py +40 -0
- package/.claude/skills/selenium/templates/python-pytest/src/config/load_env.py +16 -0
- package/.claude/skills/selenium/templates/python-pytest/src/config/paths.py +25 -0
- package/.claude/skills/selenium/templates/python-pytest/src/driver/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/{framework → src/driver}/driver_factory.py +11 -18
- package/.claude/skills/selenium/templates/python-pytest/{framework → src/driver}/driver_manager.py +3 -3
- package/.claude/skills/selenium/templates/python-pytest/src/services/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/src/services/api_client.py +89 -0
- package/.claude/skills/selenium/templates/python-pytest/tests/api/test_session.py +11 -0
- package/.claude/skills/selenium/templates/python-pytest/tests/ui/test_sign_in.py +34 -0
- package/.claude/skills/selenium/templates/python-pytest/tests/unit/test_utils.py +32 -0
- package/.claude/skills/selenium/templates/python-pytest/utils/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/utils/dates.py +23 -0
- package/.claude/skills/selenium/templates/python-pytest/utils/errors.py +28 -0
- package/.claude/skills/selenium/templates/python-pytest/utils/form_fill.py +29 -0
- package/.claude/skills/selenium/templates/python-pytest/utils/logger.py +40 -0
- package/.claude/skills/selenium/templates/python-pytest/utils/markers.py +6 -0
- package/.claude/skills/selenium/templates/python-pytest/utils/random_data.py +35 -0
- package/.claude/skills/selenium/templates/python-pytest/utils/redact.py +30 -0
- package/.claude/skills/selenium/templates/python-pytest/utils/titles.py +53 -0
- package/.claude/skills/self-healing/SKILL.md +2 -2
- package/.claude/skills/test-design/SKILL.md +1 -1
- package/.claude/skills/test-reporting/references/tool-mapping.md +13 -9
- package/.claude/skills/ui-observation/SKILL.md +8 -6
- package/.claude/skills/ui-observation/references/login-methods.md +1 -1
- package/.claude-plugin/plugin.json +15 -2
- package/.codex/agents/automation-strategist.toml +1 -0
- package/.codex/agents/change-agent.toml +1 -0
- package/.codex/agents/codebase-analyst.toml +1 -0
- package/.codex/agents/environment-discovery.toml +1 -0
- package/.codex/agents/evidence-validator.toml +1 -0
- package/.codex/agents/executor.toml +1 -0
- package/.codex/agents/failure-analyst.toml +1 -0
- package/.codex/agents/implementer.toml +2 -1
- package/.codex/agents/requirement-analyst.toml +1 -0
- package/.codex/agents/reviewer.toml +1 -0
- package/.codex/agents/test-reporter.toml +1 -0
- package/.codex/hooks.json +15 -0
- package/.cursor/commands/orion.md +1 -1
- package/.cursor/hooks.json +10 -0
- package/.devin/hooks.v1.json +13 -0
- package/.gemini/agents/automation-strategist.md +1 -0
- package/.gemini/agents/change-agent.md +1 -0
- package/.gemini/agents/codebase-analyst.md +1 -0
- package/.gemini/agents/environment-discovery.md +1 -0
- package/.gemini/agents/evidence-validator.md +1 -0
- package/.gemini/agents/executor.md +1 -0
- package/.gemini/agents/failure-analyst.md +1 -0
- package/.gemini/agents/implementer.md +2 -1
- package/.gemini/agents/requirement-analyst.md +1 -0
- package/.gemini/agents/reviewer.md +1 -0
- package/.gemini/agents/test-reporter.md +1 -0
- package/.gemini/commands/orion.toml +2 -2
- package/.github/hooks/orion-lean.json +13 -0
- package/.github/prompts/orion.prompt.md +2 -2
- package/.windsurf/workflows/orion.md +2 -2
- package/AGENTS.md +6 -6
- package/README.md +55 -140
- package/assets/architecture.svg +104 -0
- package/assets/run-flow.svg +1 -1
- package/bin/orion.mjs +6 -6
- package/hosts/gemini-extension/gemini-extension.json +1 -1
- package/hosts/gemini-extension/hooks/hooks.json +16 -0
- package/hosts/gemini-extension/policies/platform.toml +5 -0
- package/package.json +6 -1
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/data/Cases.java +0 -37
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/data/SignInData.java +0 -25
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/flows/SignInFlow.java +0 -34
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/framework/Account.java +0 -19
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/screens/HomeScreen.java +0 -36
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/screens/LoginScreen.java +0 -57
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/BaseTest.java +0 -33
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/SmokeTest.java +0 -17
- package/.claude/skills/httpclient/templates/csharp-nunit/Api/ApiClient.cs +0 -61
- package/.claude/skills/httpclient/templates/csharp-nunit/Api/ApiConfig.cs +0 -61
- package/.claude/skills/httpclient/templates/csharp-nunit/Api/ApiError.cs +0 -17
- package/.claude/skills/httpclient/templates/csharp-nunit/Data/Cases.cs +0 -41
- package/.claude/skills/httpclient/templates/csharp-nunit/Data/HealthData.cs +0 -11
- package/.claude/skills/httpclient/templates/csharp-nunit/Data/ProductBuilder.cs +0 -16
- package/.claude/skills/httpclient/templates/csharp-nunit/Data/ProductsData.cs +0 -17
- package/.claude/skills/httpclient/templates/csharp-nunit/Tests/HealthTests.cs +0 -18
- package/.claude/skills/httpclient/templates/csharp-nunit/Tests/ProductsTests.cs +0 -48
- package/.claude/skills/k6/templates/project/data/builders.js +0 -8
- package/.claude/skills/karate/templates/java-junit5/src/test/java/api/products.feature +0 -33
- package/.claude/skills/pact/templates/project/test/contract/products.contract.test.js +0 -45
- package/.claude/skills/playwright/templates/dotnet/Components/AccountMenu.cs +0 -23
- package/.claude/skills/playwright/templates/dotnet/Data/Cases.cs +0 -43
- package/.claude/skills/playwright/templates/dotnet/Data/SignInData.cs +0 -24
- package/.claude/skills/playwright/templates/dotnet/Flows/SignInFlow.cs +0 -51
- package/.claude/skills/playwright/templates/dotnet/Framework/AutomationError.cs +0 -17
- package/.claude/skills/playwright/templates/dotnet/Framework/Config.cs +0 -91
- package/.claude/skills/playwright/templates/dotnet/Pages/BasePage.cs +0 -57
- package/.claude/skills/playwright/templates/dotnet/Pages/HomePage.cs +0 -26
- package/.claude/skills/playwright/templates/dotnet/Pages/LoginPage.cs +0 -45
- package/.claude/skills/playwright/templates/dotnet/Tests/SmokeTests.cs +0 -47
- package/.claude/skills/playwright/templates/javascript/src/components/account-menu.component.js +0 -30
- package/.claude/skills/playwright/templates/javascript/src/config.js +0 -53
- package/.claude/skills/playwright/templates/javascript/src/data/accounts.js +0 -23
- package/.claude/skills/playwright/templates/javascript/src/data/cases.js +0 -49
- package/.claude/skills/playwright/templates/javascript/src/data/sign-in.data.js +0 -12
- package/.claude/skills/playwright/templates/javascript/src/flows/sign-in.flow.js +0 -53
- package/.claude/skills/playwright/templates/javascript/src/pages/base.page.js +0 -59
- package/.claude/skills/playwright/templates/javascript/src/pages/home.page.js +0 -31
- package/.claude/skills/playwright/templates/javascript/src/pages/login.page.js +0 -56
- package/.claude/skills/playwright/templates/javascript/tests/fixtures.js +0 -20
- package/.claude/skills/playwright/templates/javascript/tests/smoke.spec.js +0 -22
- package/.claude/skills/playwright/templates/project/src/components/account-menu.component.ts +0 -27
- package/.claude/skills/playwright/templates/project/src/config.ts +0 -56
- package/.claude/skills/playwright/templates/project/src/data/accounts.ts +0 -21
- package/.claude/skills/playwright/templates/project/src/data/cases.ts +0 -55
- package/.claude/skills/playwright/templates/project/src/data/sign-in.data.ts +0 -10
- package/.claude/skills/playwright/templates/project/src/flows/sign-in.flow.ts +0 -51
- package/.claude/skills/playwright/templates/project/src/pages/base.page.ts +0 -52
- package/.claude/skills/playwright/templates/project/src/pages/home.page.ts +0 -30
- package/.claude/skills/playwright/templates/project/src/pages/login.page.ts +0 -53
- package/.claude/skills/playwright/templates/project/tests/fixtures.ts +0 -25
- package/.claude/skills/playwright/templates/project/tests/smoke.spec.ts +0 -22
- package/.claude/skills/playwright/templates/python/components/__init__.py +0 -1
- package/.claude/skills/playwright/templates/python/components/account_menu.py +0 -22
- package/.claude/skills/playwright/templates/python/data/accounts.py +0 -14
- package/.claude/skills/playwright/templates/python/data/cases.py +0 -33
- package/.claude/skills/playwright/templates/python/data/sign_in_data.py +0 -9
- package/.claude/skills/playwright/templates/python/flows/sign_in.py +0 -63
- package/.claude/skills/playwright/templates/python/framework/config.py +0 -86
- package/.claude/skills/playwright/templates/python/pages/base_page.py +0 -51
- package/.claude/skills/playwright/templates/python/pages/home_page.py +0 -21
- package/.claude/skills/playwright/templates/python/pages/login_page.py +0 -40
- package/.claude/skills/playwright/templates/python/tests/test_smoke.py +0 -26
- package/.claude/skills/quality-checks/templates/playwright-ts/src/pages/scanned.page.ts +0 -16
- package/.claude/skills/quality-checks/templates/playwright-ts/tests/quality.spec.ts +0 -58
- package/.claude/skills/requests/templates/python-pytest/api/config.py +0 -43
- package/.claude/skills/requests/templates/python-pytest/api/errors.py +0 -15
- package/.claude/skills/requests/templates/python-pytest/data/builders.py +0 -16
- package/.claude/skills/requests/templates/python-pytest/data/cases.py +0 -30
- package/.claude/skills/requests/templates/python-pytest/data/health_data.py +0 -6
- package/.claude/skills/requests/templates/python-pytest/data/products_data.py +0 -10
- package/.claude/skills/requests/templates/python-pytest/tests/test_health.py +0 -12
- package/.claude/skills/requests/templates/python-pytest/tests/test_products.py +0 -25
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/api/ApiError.java +0 -18
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/api/ApiSpec.java +0 -29
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/api/HealthApi.java +0 -21
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/data/Cases.java +0 -45
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/data/HealthData.java +0 -12
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/data/ProductsData.java +0 -16
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/tests/HealthTest.java +0 -15
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/tests/ProductsTest.java +0 -37
- package/.claude/skills/selenium/templates/csharp-nunit/Components/AccountMenu.cs +0 -26
- package/.claude/skills/selenium/templates/csharp-nunit/Data/Cases.cs +0 -43
- package/.claude/skills/selenium/templates/csharp-nunit/Data/SignInData.cs +0 -24
- package/.claude/skills/selenium/templates/csharp-nunit/Flows/SignInFlow.cs +0 -51
- package/.claude/skills/selenium/templates/csharp-nunit/Framework/AutomationError.cs +0 -17
- package/.claude/skills/selenium/templates/csharp-nunit/Framework/DriverManager.cs +0 -26
- package/.claude/skills/selenium/templates/csharp-nunit/Pages/HomePage.cs +0 -28
- package/.claude/skills/selenium/templates/csharp-nunit/Pages/LoginPage.cs +0 -58
- package/.claude/skills/selenium/templates/csharp-nunit/Tests/BaseTest.cs +0 -22
- package/.claude/skills/selenium/templates/csharp-nunit/Tests/SmokeTests.cs +0 -37
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/components/AccountMenu.java +0 -37
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/data/Cases.java +0 -48
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/data/SignInData.java +0 -36
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/flows/SignInFlow.java +0 -60
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/framework/Account.java +0 -19
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pages/HomePage.java +0 -45
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pages/LoginPage.java +0 -78
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/BaseTest.java +0 -33
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/SmokeTest.java +0 -33
- package/.claude/skills/selenium/templates/python-pytest/components/__init__.py +0 -1
- package/.claude/skills/selenium/templates/python-pytest/components/account_menu.py +0 -19
- package/.claude/skills/selenium/templates/python-pytest/data/accounts.py +0 -14
- package/.claude/skills/selenium/templates/python-pytest/data/cases.py +0 -33
- package/.claude/skills/selenium/templates/python-pytest/data/sign_in_data.py +0 -9
- package/.claude/skills/selenium/templates/python-pytest/flows/__init__.py +0 -0
- package/.claude/skills/selenium/templates/python-pytest/flows/sign_in.py +0 -61
- package/.claude/skills/selenium/templates/python-pytest/framework/__init__.py +0 -0
- package/.claude/skills/selenium/templates/python-pytest/framework/config.py +0 -90
- package/.claude/skills/selenium/templates/python-pytest/pages/__init__.py +0 -0
- package/.claude/skills/selenium/templates/python-pytest/pages/home_page.py +0 -23
- package/.claude/skills/selenium/templates/python-pytest/tests/test_smoke.py +0 -25
- /package/.claude/skills/karate/templates/java-junit5/src/test/java/{api → tests/api}/delete-product.feature +0 -0
- /package/.claude/skills/playwright/templates/{python/data/__init__.py → dotnet/auth/.gitkeep} +0 -0
- /package/.claude/skills/playwright/templates/{python/flows/__init__.py → javascript/auth/.gitkeep} +0 -0
- /package/.claude/skills/playwright/templates/{python/framework/__init__.py → project/auth/.gitkeep} +0 -0
- /package/.claude/skills/playwright/templates/project/{src → utils}/errors.ts +0 -0
- /package/.claude/skills/playwright/templates/python/{pages/__init__.py → auth/.gitkeep} +0 -0
- /package/.claude/skills/quality-checks/templates/playwright-ts/src/checks/{page-health.ts → pageHealth.ts} +0 -0
- /package/.claude/skills/quality-checks/templates/playwright-ts/src/{api/graphql.ts → services/graphqlClient.ts} +0 -0
- /package/.claude/skills/{requests/templates/python-pytest/api/__init__.py → selenium/templates/csharp-nunit/auth/.gitkeep} +0 -0
- /package/.claude/skills/{requests/templates/python-pytest/data/__init__.py → selenium/templates/java-testng/auth/.gitkeep} +0 -0
- /package/.claude/skills/selenium/templates/python-pytest/{data/__init__.py → auth/.gitkeep} +0 -0
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Quiet runner: runs a test, build or install command and prints only what an agent needs (the outcome, every failure
|
|
4
|
+
* with its context, warnings and the runner's summary), saving the full output to a log file it can grep. Command
|
|
5
|
+
* output was the largest part of an agent's context in a measured run (101 KB of tool output in one story, re-read on
|
|
6
|
+
* every later turn: evals/workflows/runs/2026-11-18-cost-breakdown.md), so this is Orion's own version of the
|
|
7
|
+
* "token killer" idea, with nothing to install.
|
|
8
|
+
*
|
|
9
|
+
* Usage (from anywhere inside the workspace):
|
|
10
|
+
* node .claude/skills/orion/scripts/quiet.mjs <command and its arguments>
|
|
11
|
+
* e.g. node .claude/skills/orion/scripts/quiet.mjs npm test --silent -- tests/ui/x.spec.js --retries=0
|
|
12
|
+
* Prints: the command, exit code and duration; the kept lines (failures with up to 8 lines of context each, errors,
|
|
13
|
+
* warnings, the runner's counts and summary, the last lines); `full log: <path>`. Exits with the command's own exit
|
|
14
|
+
* code, so nothing that checks it changes. A redirect or a leading `cd <dir> &&` works as in the shell when the whole
|
|
15
|
+
* command is one quoted argument: `quiet.mjs "cd sut/app && npm test -- x > out.json"`.
|
|
16
|
+
* Allowing quiet.mjs for good allows the commands it runs, so it runs only test, build and install commands (npm test,
|
|
17
|
+
* npm run test/build/lint/e2e/verify…, npm ci/install, npx playwright, pytest, python -m pytest, mvn,
|
|
18
|
+
* gradle/gradlew, dotnet test/build/restore, k6, newman, pip install, node run.js / test*.js / *.spec.js, yarn, pnpm),
|
|
19
|
+
* one command at a time, redirects only inside the workspace; anything else exits 2,
|
|
20
|
+
* so it can't become a way round the host's approval rules. Never prints a secret: values of variables whose names
|
|
21
|
+
* look secret (PASSWORD, TOKEN, SECRET, KEY, AUTH, COOKIE) and Bearer / JWT strings are masked as ***.
|
|
22
|
+
* Logs go to <workspace>/project-context/logs/ (the folder with project-context/ or .claude/ above the current one),
|
|
23
|
+
* never into the suite, with a .gitignore of their own so they are never committed. `ORION_QUIET_LINES=<n>` changes the cap on kept lines (default 60).
|
|
24
|
+
* Exit code: the command's own · 2 a command it doesn't run, or no command.
|
|
25
|
+
*/
|
|
26
|
+
import fs from 'node:fs';
|
|
27
|
+
import path from 'node:path';
|
|
28
|
+
import { spawnSync } from 'node:child_process';
|
|
29
|
+
import { pathToFileURL } from 'node:url';
|
|
30
|
+
|
|
31
|
+
const ALLOWED = /^(npm (test|t|ci|install|i)\b|npm run (test|build|lint|typecheck|check|e2e|verify|smoke|compile)[\w:.-]*|npx (--no-install )?playwright (test|install|show-report|--version)\b|pytest\b|python3? -m pytest\b|py -m pytest\b|mvn\b|\.\/mvnw\b|gradle\b|\.\/gradlew\b|dotnet (test|build|restore)\b|k6 (run|version)\b|newman run\b|npx newman run\b|pip3? install\b|python3? -m pip install\b|node (?!-e\b|--eval\b)(?:[\w.-]+\/)*(?:run|test[\w-]*|[\w-]+\.(?:spec|test))\.(?:m?js|cjs)\b|yarn(\s*$| (test|install)\b| run (test|build|lint|typecheck|check|e2e|verify|smoke|compile)[\w:.-]*)|pnpm (test|install|i|run (test|build|lint|typecheck|check|e2e|verify|smoke|compile)[\w:.-]*)\b)/;
|
|
32
|
+
const KEEP = /(\b(error|errors|failed|failing|failure|fail|exception|traceback|assert(ion)?error|timed? ?out|warning|warn|deprecated|npm err|err!|build (success|failure)|tests? run:|passed|skipped|flaky|did not run|interrupted|expected|received|not found|cannot find|unable to)\b|✘|✗|×|^\s*\d+\) |^\s*at .*\.(spec|test)\.|^={3,}|^-{3,} |^\s*\d+ (passed|failed|skipped|flaky))/i;
|
|
33
|
+
const NOISE = /^\s*at .*(node_modules|internal\/|node:)|^\s*$|^\s*(✓|✔|ok \d+|\[\d+\/\d+\].*(✓|passed))/;
|
|
34
|
+
const SECRET_NAME = /(PASSWORD|PASSWD|TOKEN|SECRET|API[_-]?KEY|AUTH|COOKIE)/i;
|
|
35
|
+
|
|
36
|
+
function mask(text) {
|
|
37
|
+
let t = text;
|
|
38
|
+
for (const [k, v] of Object.entries(process.env)) {
|
|
39
|
+
if (SECRET_NAME.test(k) && v && v.length >= 4) t = t.split(v).join('***');
|
|
40
|
+
}
|
|
41
|
+
return t.replace(/\bBearer\s+[A-Za-z0-9._~+/=-]{8,}/g, 'Bearer ***').replace(/\beyJ[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g, '***')
|
|
42
|
+
.replace(/((?:password|passwd|token|secret)\s*[=:]\s*)\S+/gi, '$1***');
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** The workspace root: the nearest folder at or above `from` holding project-context/ or .claude/. */
|
|
46
|
+
function workspaceRoot(from) {
|
|
47
|
+
let d = path.resolve(from);
|
|
48
|
+
for (;;) {
|
|
49
|
+
if (fs.existsSync(path.join(d, 'project-context')) || fs.existsSync(path.join(d, '.claude'))) return d;
|
|
50
|
+
const up = path.dirname(d);
|
|
51
|
+
if (up === d) return path.resolve(from);
|
|
52
|
+
d = up;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** The lines worth keeping from a run's output: failures with context, warnings, counts and the tail. */
|
|
57
|
+
export function summarize(raw, cap = 60) {
|
|
58
|
+
const lines = raw.replace(/\x1b\[[0-9;?]*[A-Za-z]/g, '').replace(/\r(?!\n)/g, '\n').split('\n');
|
|
59
|
+
const keep = new Set();
|
|
60
|
+
lines.forEach((l, i) => {
|
|
61
|
+
if (!KEEP.test(l) || NOISE.test(l)) return;
|
|
62
|
+
keep.add(i);
|
|
63
|
+
if (/\b(error|failed|failure|exception|traceback|✘|✗|×)\b|^\s*\d+\) /i.test(l)) {
|
|
64
|
+
for (let j = i + 1; j <= Math.min(lines.length - 1, i + 8); j++) if (!NOISE.test(lines[j])) keep.add(j);
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
const tail = lines.map((l, i) => [l, i]).filter(([l]) => l.trim() && !NOISE.test(l)).slice(-8).map(([, i]) => i);
|
|
68
|
+
tail.forEach((i) => keep.add(i));
|
|
69
|
+
const seen = new Set(); const out = [];
|
|
70
|
+
for (const i of [...keep].sort((a, b) => a - b)) {
|
|
71
|
+
const l = lines[i].replace(/\s+$/, '');
|
|
72
|
+
const k = l.trim();
|
|
73
|
+
if (!k || seen.has(k)) continue;
|
|
74
|
+
seen.add(k); out.push(l.length > 300 ? `${l.slice(0, 300)} …` : l);
|
|
75
|
+
}
|
|
76
|
+
if (out.length > cap) return [...out.slice(0, cap - 10), `… ${out.length - cap} more kept lines in the full log …`, ...out.slice(-9)];
|
|
77
|
+
return out;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** Leading `cd <dir> &&` steps and VAR=value assignments, which the shell keeps; the check looks past them. */
|
|
81
|
+
const PREFIX = /^\s*((cd\s+("[^"]*"|'[^']*'|\S+)\s*&&\s*)|([A-Za-z_][A-Za-z0-9_]*=("[^"]*"|'[^']*'|\S*)\s+))*/;
|
|
82
|
+
|
|
83
|
+
/** Several arguments are joined back into one command, each quoted again when it holds a space or a quote, so
|
|
84
|
+
* `quiet.mjs npx playwright test --grep "log in"` runs with "log in" as one argument. One argument is used as given
|
|
85
|
+
* (the form for a redirect or a `cd … &&`: `quiet.mjs "npm test -- x > out.json"`). */
|
|
86
|
+
export function commandOf(argv, win = process.platform === 'win32') {
|
|
87
|
+
if (argv.length === 1) return argv[0].trim();
|
|
88
|
+
const q = (a) => (!/[\s"'$`\\]/.test(a) || /^[<>|&;]+$/.test(a) ? a
|
|
89
|
+
: win ? `"${a.replace(/"/g, '\\"')}"` : `'${a.replace(/'/g, `'\\''`)}'`);
|
|
90
|
+
return argv.map(q).join(' ').trim();
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/** Why a command is refused, or null. One test, build or install command only: after the leading `cd`/VAR= steps, no
|
|
94
|
+
* second command (`;`, `&&`, `||`, a pipe, `&`, backticks, `$(…)`, a new line), and a redirect only into the workspace
|
|
95
|
+
* (the folder holding project-context/ or .claude/). Once a person allows quiet.mjs, it must not become a way to run
|
|
96
|
+
* anything else. */
|
|
97
|
+
export function refusal(cmd, from = process.cwd()) {
|
|
98
|
+
const rest = cmd.replace(PREFIX, '');
|
|
99
|
+
// Where the command runs: the folder after its leading `cd` steps; a redirect is resolved from there.
|
|
100
|
+
let at = path.resolve(from);
|
|
101
|
+
for (const m of (cmd.match(PREFIX)?.[0] || '').matchAll(/cd\s+("[^"]*"|'[^']*'|\S+)/g)) at = path.resolve(at, m[1].replace(/^["']|["']$/g, ''));
|
|
102
|
+
const root = workspaceRoot(from);
|
|
103
|
+
if (!ALLOWED.test(rest)) return 'runs only test, build and install commands';
|
|
104
|
+
if (/\$\(|`/.test(rest.replace(/'[^']*'/g, "''"))) return 'runs one command only (no $(…) or backticks)';
|
|
105
|
+
const bare = rest.replace(/'[^']*'|"[^"]*"/g, '""');
|
|
106
|
+
if (/[;|`\n\r]|&&|\$\(|<\(|(^|[^>0-9])&(?!>)|&\s/.test(bare.replace(/\d?>&\d/g, ''))) return 'runs one command only (no ;, &&, ||, pipes, & or $(…) after it)';
|
|
107
|
+
for (const m of bare.matchAll(/\d?>>?\s*([^\s&]+)/g)) {
|
|
108
|
+
if (/^&\d$/.test(m[1])) continue;
|
|
109
|
+
const target = path.resolve(at, m[1]);
|
|
110
|
+
if (/^~/.test(m[1]) || (target !== root && !target.startsWith(root + path.sep))) return `writes output only inside the workspace (not ${m[1]})`;
|
|
111
|
+
}
|
|
112
|
+
return null;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/** The folders a command's redirects write into (inside the workspace, checked by refusal), so a first run doesn't
|
|
116
|
+
* fail with "Directory nonexistent" before project-context/results/ exists. */
|
|
117
|
+
export function redirectDirs(cmd, from = process.cwd()) {
|
|
118
|
+
let at = path.resolve(from);
|
|
119
|
+
for (const m of (cmd.match(PREFIX)?.[0] || '').matchAll(/cd\s+("[^"]*"|'[^']*'|\S+)/g)) at = path.resolve(at, m[1].replace(/^["']|["']$/g, ''));
|
|
120
|
+
const bare = cmd.replace(PREFIX, '').replace(/'[^']*'|"[^"]*"/g, '""');
|
|
121
|
+
return [...bare.matchAll(/\d?>>?\s*([^\s&]+)/g)].filter((m) => !/^&\d$/.test(m[1])).map((m) => path.dirname(path.resolve(at, m[1])));
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export const allowed = (cmd) => !refusal(cmd);
|
|
125
|
+
|
|
126
|
+
function main() {
|
|
127
|
+
const argv = process.argv.slice(2);
|
|
128
|
+
const cmd = commandOf(argv);
|
|
129
|
+
if (!cmd) { console.log('usage: node .claude/skills/orion/scripts/quiet.mjs <test, build or install command>'); process.exit(2); }
|
|
130
|
+
const why = refusal(cmd);
|
|
131
|
+
if (why) {
|
|
132
|
+
console.log(`quiet: ${why}; run this one directly: ${mask(cmd).slice(0, 120)}`);
|
|
133
|
+
process.exit(2);
|
|
134
|
+
}
|
|
135
|
+
for (const d of redirectDirs(cmd)) { try { fs.mkdirSync(d, { recursive: true }); } catch { /* the shell reports it */ } }
|
|
136
|
+
const root = workspaceRoot(process.cwd());
|
|
137
|
+
const logs = path.join(root, 'project-context', 'logs');
|
|
138
|
+
fs.mkdirSync(logs, { recursive: true });
|
|
139
|
+
// The logs stay out of git: an ignore file of their own, never an edit to the project's own .gitignore.
|
|
140
|
+
const ignore = path.join(logs, '.gitignore');
|
|
141
|
+
if (!fs.existsSync(ignore)) fs.writeFileSync(ignore, '*\n');
|
|
142
|
+
const stamp = new Date().toISOString().replace(/[-:]/g, '').replace(/\..*/, '');
|
|
143
|
+
const slug = cmd.replace(/[^\w]+/g, '-').slice(0, 40).replace(/-+$/, '');
|
|
144
|
+
const log = path.join(logs, `${stamp}-${slug}.log`);
|
|
145
|
+
const t0 = Date.now();
|
|
146
|
+
const r = spawnSync(cmd, { shell: true, encoding: 'utf8', maxBuffer: 256 * 1024 * 1024,
|
|
147
|
+
env: { ...process.env, FORCE_COLOR: '0', npm_config_progress: 'false', npm_config_fund: 'false', npm_config_audit: 'false' } });
|
|
148
|
+
const raw = mask(`${r.stdout || ''}${r.stderr || ''}`);
|
|
149
|
+
fs.writeFileSync(log, raw);
|
|
150
|
+
const code = r.status === null ? 1 : r.status;
|
|
151
|
+
const cap = Number(process.env.ORION_QUIET_LINES) || 60;
|
|
152
|
+
const kept = summarize(raw, cap);
|
|
153
|
+
const secs = ((Date.now() - t0) / 1000).toFixed(1);
|
|
154
|
+
console.log(`$ ${mask(cmd)}\nexit ${code} · ${secs}s · ${raw.split('\n').length} lines of output, ${kept.length} kept`);
|
|
155
|
+
if (kept.length) console.log(kept.join('\n'));
|
|
156
|
+
console.log(`full log: ${path.relative(process.cwd(), log) || log}`);
|
|
157
|
+
process.exit(code);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) main();
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Checks a report's shape and style before it is shown: a run report (documentation skill,
|
|
4
|
+
* templates/project-context/report.md) or an assessment (templates/project-context/assessment.md), told apart by the
|
|
5
|
+
* first line (`# … · test report` or `# … · assessment`).
|
|
6
|
+
*
|
|
7
|
+
* Usage (from the workspace root): node .claude/skills/orion/scripts/report_check.mjs <report.md> [<report.md> …] [--json]
|
|
8
|
+
* Run report: `# <story> · test report`; a bold verdict (✅ ⚠️ ❌) in the first lines; the facts table (| Story |);
|
|
9
|
+
* Coverage, What was added, Run it yourself; a <details> block for engineers; the footer.
|
|
10
|
+
* Assessment: `# <suite> · assessment`; the verdict; the facts table (| Suite |, | Baseline run |, | Findings |); Top
|
|
11
|
+
* issues, Fix it (`/orion fix A-…`); a <details> block holding the full findings table (| F | Rule | …); the footer. Above the
|
|
12
|
+
* details block: at most 45 lines, and no decision ids (D-nnn), gate numbers, agent names, rule codes, temporary-folder
|
|
13
|
+
* paths or a bare "unknown". Each finding names what to change.
|
|
14
|
+
* Exit code: 0 passes · 1 findings · 2 wrong arguments or unreadable file.
|
|
15
|
+
*/
|
|
16
|
+
import fs from 'node:fs';
|
|
17
|
+
import { pathToFileURL } from 'node:url';
|
|
18
|
+
|
|
19
|
+
const AGENTS = 'requirement-analyst|environment-discovery|codebase-analyst|automation-strategist|implementer|reviewer|executor|failure-analyst|evidence-validator|test-reporter|orchestrator';
|
|
20
|
+
const BANNED = [
|
|
21
|
+
[/\bD-\d{3}\b/, 'a decision id: move it to the details block'],
|
|
22
|
+
[/\bGate \d\b/, 'a gate number: say what happened in plain words'],
|
|
23
|
+
[new RegExp(`(?<![\\w./-])(${AGENTS})(?![\\w/-]|\\.\\w)`), 'an agent name: say what was done, not who did it'], // not inside a name such as performance-reviewer.web.app
|
|
24
|
+
[/\b[UPM]\d{1,2}\b(?!\/)/, 'a rule code: describe the issue in plain words'],
|
|
25
|
+
[/\/tmp\/|\\Temp\\|AppData/, 'a temporary-folder path: use a path inside the workspace'],
|
|
26
|
+
[/\(unknown\)|: unknown\b|\bunknown\./, 'a bare "unknown": say what was not checked and why'],
|
|
27
|
+
];
|
|
28
|
+
const MAX_TOP = 45;
|
|
29
|
+
|
|
30
|
+
/** Findings for one report text. */
|
|
31
|
+
export function checkReport(text) {
|
|
32
|
+
const out = [];
|
|
33
|
+
const lines = text.replace(/\r\n/g, '\n').split('\n');
|
|
34
|
+
while (lines.length && lines[lines.length - 1].trim() === '') lines.pop();
|
|
35
|
+
const assess = / · assessment$/.test(lines[0] || '');
|
|
36
|
+
if (!/^# .+ · (test report|assessment)$/.test(lines[0] || '')) out.push("first line: '# <story title> · test report' (or '# <suite folder> · assessment')");
|
|
37
|
+
const verdicts = assess ? '✅ In good shape · ⚠️ Works, needs fixes · ❌ Serious issues' : '✅ Ready to accept · ⚠️ Ready, with notes · ❌ Not ready';
|
|
38
|
+
if (!lines.slice(1, 5).some((l) => /^\*\*.*(✅|⚠️|❌)/.test(l))) out.push(`no bold verdict (${verdicts}) in the first lines`);
|
|
39
|
+
const facts = assess ? [/^\| Suite \|/m, /^\| Baseline run \|/m, /^\| Findings \|/m] : [/^\| Story \|/m];
|
|
40
|
+
if (!facts.every((rx) => rx.test(text))) out.push(assess ? 'no facts table (| Suite |, | Baseline run |, | Findings |, | Date |)' : 'no facts table (| Story | … |, | App |, | Tests |, | Runs |, | Date |)');
|
|
41
|
+
const need = assess ? ['## Top issues', '## Fix it', '/orion fix A-', '<details>', '<summary>All findings and details for engineers</summary>']
|
|
42
|
+
: ['## Coverage', '## What was added', '## Run it yourself', '<details>', '<summary>Details for engineers</summary>'];
|
|
43
|
+
for (const h of need) if (!text.includes(h)) out.push(`missing: ${h}`);
|
|
44
|
+
if (assess && !/^\| F \| Rule \|/m.test(text.split('<details>')[1] || '')) out.push('the full findings table (| F | Rule | … |) is not inside the details block');
|
|
45
|
+
const foot = assess ? '_Assessment A-' : '_Written by Orion';
|
|
46
|
+
if (!(lines[lines.length - 1] || '').startsWith(foot)) out.push(`no footer ('${foot}…_')`);
|
|
47
|
+
const top = text.split('<details>')[0];
|
|
48
|
+
const n = top.split('\n').length;
|
|
49
|
+
if (n > MAX_TOP) out.push(`${n} lines above the details block (at most ${MAX_TOP}): move detail into the block`);
|
|
50
|
+
for (const [rx, what] of BANNED) {
|
|
51
|
+
const m = top.match(rx);
|
|
52
|
+
if (m) out.push(`above the details block, ${what} (${JSON.stringify(m[0])})`);
|
|
53
|
+
}
|
|
54
|
+
return out;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function main() {
|
|
58
|
+
const args = process.argv.slice(2);
|
|
59
|
+
const json = args.includes('--json');
|
|
60
|
+
const files = args.filter((a) => a !== '--json');
|
|
61
|
+
if (!files.length) { console.log('usage: report_check.mjs <report.md> […] [--json]'); process.exit(2); }
|
|
62
|
+
const all = {};
|
|
63
|
+
for (const f of files) {
|
|
64
|
+
let text;
|
|
65
|
+
try { text = fs.readFileSync(f, 'utf8'); } catch { console.log(`can't read ${f}`); process.exit(2); }
|
|
66
|
+
all[f] = checkReport(text);
|
|
67
|
+
}
|
|
68
|
+
const total = Object.values(all).reduce((s, x) => s + x.length, 0);
|
|
69
|
+
if (json) console.log(JSON.stringify(all, null, 2));
|
|
70
|
+
else {
|
|
71
|
+
for (const [f, fs_] of Object.entries(all)) for (const x of fs_) console.log(`${f}: ${x}`);
|
|
72
|
+
console.log(`report check: ${total} finding(s)`);
|
|
73
|
+
}
|
|
74
|
+
process.exit(total ? 1 : 0);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) main();
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Per-test results of a run, in one shape, from the report files the runner wrote. Run by the executor after every
|
|
4
|
+
* counted run (execution skill); the Orion graph and the failure analyst read its output.
|
|
5
|
+
*
|
|
6
|
+
* Usage (from the workspace root):
|
|
7
|
+
* node .claude/skills/orion/scripts/results_parse.mjs <report file or folder> [...] --run <run id>-<n>
|
|
8
|
+
* [--out project-context/results/<run id>.json]
|
|
9
|
+
*
|
|
10
|
+
* Reads: JUnit XML (Playwright `junit`, Maven Surefire/Failsafe, Gradle, pytest `--junitxml`, Cypress and WebdriverIO
|
|
11
|
+
* junit reporters, Karate), .NET TRX (`dotnet test --logger trx`) and the Playwright JSON reporter. A folder is searched
|
|
12
|
+
* for `*.xml`, `*.trx` and `*.json` files that are reports; other files are skipped and named.
|
|
13
|
+
* Writes, per test: test_id (TS-n or <story>:TS-n from the title or method name, else null), story (an issue key in the
|
|
14
|
+
* title, else null), file, title, status (passed | failed | skipped | flaky), duration_ms, attempts, failure_sig (the
|
|
15
|
+
* first line of the failure, colour codes removed, numbers as #, at most 160 characters; for a skipped test the reason
|
|
16
|
+
* goes in skip_reason). Totals per status.
|
|
17
|
+
* Secrets: the values of environment variables whose names look secret (PASSWORD, TOKEN, SECRET, KEY, AUTH, COOKIE)
|
|
18
|
+
* are masked as *** wherever they appear, and so are `Bearer …`, `password=…` and JWT-shaped strings. No .env file is
|
|
19
|
+
* read. Exit code: 0 written · 1 no test results found · 2 wrong arguments or a file that can't be read.
|
|
20
|
+
*/
|
|
21
|
+
import fs from 'node:fs';
|
|
22
|
+
import path from 'node:path';
|
|
23
|
+
import { insideWorkspace } from './lib/inside.mjs';
|
|
24
|
+
|
|
25
|
+
const FORMAT = 'orion-results/1';
|
|
26
|
+
|
|
27
|
+
function usage(msg) {
|
|
28
|
+
if (msg) console.log(msg);
|
|
29
|
+
console.log('usage: node .claude/skills/orion/scripts/results_parse.mjs <report file or folder> [...] --run <run id> [--out file]');
|
|
30
|
+
process.exit(2);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const SECRET_VALUES = Object.entries(process.env)
|
|
34
|
+
.filter(([k, v]) => /PASS|TOKEN|SECRET|KEY|AUTH|COOKIE|CREDENTIAL/i.test(k) && typeof v === 'string' && v.length >= 4)
|
|
35
|
+
.map(([, v]) => v).sort((a, b) => b.length - a.length);
|
|
36
|
+
|
|
37
|
+
/** Text with secret values and secret-shaped strings replaced by ***. */
|
|
38
|
+
function mask(text) {
|
|
39
|
+
if (!text) return text;
|
|
40
|
+
let t = text;
|
|
41
|
+
for (const v of SECRET_VALUES) t = t.split(v).join('***');
|
|
42
|
+
return t.replace(/\b(Bearer|Basic)\s+[A-Za-z0-9._~+/=-]{8,}/g, '$1 ***')
|
|
43
|
+
.replace(/((?:password|passwd|pwd|token|secret|api[_-]?key)["']?\s*[:=]\s*["']?)[^\s"'&,;]{3,}/gi, '$1***')
|
|
44
|
+
.replace(/\beyJ[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{4,}/g, '***');
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const ANSI = /\u001b\[[0-9;]*m/g;
|
|
48
|
+
const ENTITIES = { amp: '&', lt: '<', gt: '>', quot: '"', apos: "'" };
|
|
49
|
+
const decode = (s) => (s || '').replace(/&(#x[0-9a-f]+|#\d+|\w+);/gi, (m, e) => (e[0] === '#'
|
|
50
|
+
? String.fromCodePoint(e[1].toLowerCase() === 'x' ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10)) : ENTITIES[e] ?? m))
|
|
51
|
+
.replace(/<!\[CDATA\[([\s\S]*?)\]\]>/g, '$1');
|
|
52
|
+
const attrs = (tag) => Object.fromEntries([...tag.matchAll(/([\w:.-]+)\s*=\s*"([^"]*)"/g)].map((m) => [m[1], decode(m[2])]));
|
|
53
|
+
|
|
54
|
+
/** First meaningful line of a failure, normalised so the same cause gives the same signature. */
|
|
55
|
+
function signature(text) {
|
|
56
|
+
if (!text) return null;
|
|
57
|
+
const line = mask(decode(text)).replace(ANSI, '').split('\n').map((l) => l.trim()).find((l) => l && !/^at\s|^\s*$/.test(l));
|
|
58
|
+
if (!line) return null;
|
|
59
|
+
const s = line.replace(/\d+(\.\d+)?/g, '#').replace(/\s+/g, ' ');
|
|
60
|
+
return s.length > 160 ? `${s.slice(0, 157)}...` : s;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** A skip reason as written (secrets masked, colour codes removed), first line, at most 160 characters. */
|
|
64
|
+
function reason(text) {
|
|
65
|
+
const line = mask(decode(text || '')).replace(ANSI, '').split('\n').map((l) => l.trim()).find(Boolean);
|
|
66
|
+
if (!line) return null;
|
|
67
|
+
return line.length > 160 ? `${line.slice(0, 157)}...` : line;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** TS-n (or <story>:TS-n) and an issue key from a title or method name. */
|
|
71
|
+
function ids(title) {
|
|
72
|
+
const t = title || '';
|
|
73
|
+
const global = t.match(/\b([A-Z][A-Z0-9]+-\d+):(TS-\d+)\b/);
|
|
74
|
+
const ts = t.match(/\b(TS|TC)-?(\d+)\b/i) || t.match(/(?:^|_)ts(\d+)(?:_|$)/i);
|
|
75
|
+
const story = t.match(/\b(?!TS-|TC-)([A-Z][A-Z0-9]+-\d+)\b/);
|
|
76
|
+
const testId = global ? `${global[1]}:${global[2]}` : ts ? `TS-${ts[2] ?? ts[1]}` : null;
|
|
77
|
+
return { test_id: testId, story: global ? global[1] : story ? story[1] : null };
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** JUnit XML: one row per <testcase>; a <failure>/<error> is failed, <skipped> skipped, Surefire's flakyFailure flaky. */
|
|
81
|
+
function parseJUnit(xml, source) {
|
|
82
|
+
const out = [];
|
|
83
|
+
for (const m of xml.matchAll(/<testcase\b([^>]*?)(\/>|>([\s\S]*?)<\/testcase>)/g)) {
|
|
84
|
+
const a = attrs(m[1]);
|
|
85
|
+
const body = m[3] || '';
|
|
86
|
+
const fail = body.match(/<(failure|error)\b([^>]*?)(\/>|>([\s\S]*?)<\/\1>)/);
|
|
87
|
+
const flaky = /<flakyFailure\b|<flakyError\b/.test(body);
|
|
88
|
+
const reruns = (body.match(/<rerun(Failure|Error)\b/g) || []).length;
|
|
89
|
+
const status = fail ? 'failed' : /<skipped\b/.test(body) ? 'skipped' : flaky ? 'flaky' : 'passed';
|
|
90
|
+
const skip = body.match(/<skipped\b([^>]*?)(?:\/>|>([\s\S]*?)<\/skipped>)/);
|
|
91
|
+
const failText = fail ? (attrs(fail[2]).message || fail[4] || '')
|
|
92
|
+
: flaky ? (body.match(/<flakyFailure\b[^>]*message="([^"]*)"/) || [])[1] : '';
|
|
93
|
+
const skipText = !fail && skip ? reason(attrs(skip[1]).message || skip[2] || '') : null;
|
|
94
|
+
const file = a.file || a.classname || '';
|
|
95
|
+
out.push({ title: a.name || '', file, status, duration_ms: a.time ? Math.round(parseFloat(a.time) * 1000) : null,
|
|
96
|
+
attempts: 1 + reruns + (flaky ? (body.match(/<flaky(Failure|Error)\b/g) || []).length : 0), failure_sig: signature(failText),
|
|
97
|
+
...(skipText ? { skip_text: skipText } : {}), source });
|
|
98
|
+
}
|
|
99
|
+
return out;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/** .NET TRX: UnitTestResult rows, class names from TestDefinitions. */
|
|
103
|
+
function parseTrx(xml, source) {
|
|
104
|
+
const cls = {};
|
|
105
|
+
for (const m of xml.matchAll(/<UnitTest\b[^>]*\bid="([^"]+)"[^>]*>[\s\S]*?<TestMethod\b([^>]*)\/?>/g)) cls[m[1]] = attrs(m[2]).className || '';
|
|
106
|
+
const out = [];
|
|
107
|
+
for (const m of xml.matchAll(/<UnitTestResult\b([^>]*?)(\/>|>([\s\S]*?)<\/UnitTestResult>)/g)) {
|
|
108
|
+
const a = attrs(m[1]);
|
|
109
|
+
const msg = ((m[3] || '').match(/<Message>([\s\S]*?)<\/Message>/) || [])[1];
|
|
110
|
+
const d = (a.duration || '').match(/(\d+):(\d+):(\d+(?:\.\d+)?)/);
|
|
111
|
+
const status = { Passed: 'passed', Failed: 'failed', NotExecuted: 'skipped', Inconclusive: 'skipped', Error: 'failed', Timeout: 'failed' }[a.outcome] || 'failed';
|
|
112
|
+
out.push({ title: a.testName || '', file: cls[a.testId] || '', status,
|
|
113
|
+
duration_ms: d ? Math.round(((+d[1]) * 3600 + (+d[2]) * 60 + parseFloat(d[3])) * 1000) : null, attempts: 1,
|
|
114
|
+
failure_sig: signature(msg), source });
|
|
115
|
+
}
|
|
116
|
+
return out;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/** Playwright JSON reporter: specs → tests → results (one per attempt); outcome expected/unexpected/flaky/skipped. */
|
|
120
|
+
function parsePlaywrightJson(data, source) {
|
|
121
|
+
const out = [];
|
|
122
|
+
const walk = (suite, trail) => {
|
|
123
|
+
const names = suite.title && !/\.(spec|test)\.\w+$/.test(suite.title) ? [...trail, suite.title] : trail;
|
|
124
|
+
for (const spec of suite.specs || []) {
|
|
125
|
+
for (const t of spec.tests || []) {
|
|
126
|
+
const results = t.results || [];
|
|
127
|
+
const last = results[results.length - 1] || {};
|
|
128
|
+
const status = t.status === 'expected' ? 'passed' : t.status === 'flaky' ? 'flaky' : t.status === 'skipped' ? 'skipped' : 'failed';
|
|
129
|
+
const err = results.map((r) => (r.error && r.error.message) || (r.errors && r.errors[0] && r.errors[0].message)).find(Boolean);
|
|
130
|
+
out.push({ title: [...names, spec.title].join(' › '), file: spec.file || suite.file || '', project: t.projectName || null,
|
|
131
|
+
status, duration_ms: results.reduce((n, r) => n + (r.duration || 0), 0) || (last.duration ?? null), attempts: Math.max(1, results.length),
|
|
132
|
+
failure_sig: status === 'passed' ? null : signature(err), source });
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
for (const s of suite.suites || []) walk(s, names);
|
|
136
|
+
};
|
|
137
|
+
for (const s of data.suites || []) walk(s, []);
|
|
138
|
+
return out;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/** Report files named on the command line (folders searched one level per call, recursively). */
|
|
142
|
+
function reportFiles(inputs) {
|
|
143
|
+
const files = [];
|
|
144
|
+
const visit = (p) => {
|
|
145
|
+
const st = fs.statSync(p);
|
|
146
|
+
if (st.isDirectory()) { for (const e of fs.readdirSync(p).sort()) if (!['node_modules', '.git', 'attachments', 'data', 'trace'].includes(e)) visit(path.join(p, e)); }
|
|
147
|
+
else if (/\.(xml|trx|json)$/i.test(p)) files.push(p);
|
|
148
|
+
};
|
|
149
|
+
for (const i of inputs) { if (!fs.existsSync(i)) usage(`not found: ${i}`); visit(i); }
|
|
150
|
+
return files;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
function main() {
|
|
154
|
+
const argv = process.argv.slice(2);
|
|
155
|
+
const opt = {}; const inputs = [];
|
|
156
|
+
for (let i = 0; i < argv.length; i++) {
|
|
157
|
+
if (argv[i].startsWith('--')) { opt[argv[i].slice(2)] = argv[i + 1]; i++; } else inputs.push(argv[i]);
|
|
158
|
+
}
|
|
159
|
+
if (!inputs.length || !opt.run) usage();
|
|
160
|
+
if (!/^[\w.-]+$/.test(opt.run)) usage('--run takes a run id such as 20261112-1430');
|
|
161
|
+
|
|
162
|
+
const rows = []; const sources = []; const skipped = []; const runErrors = [];
|
|
163
|
+
for (const f of reportFiles(inputs)) {
|
|
164
|
+
let text;
|
|
165
|
+
try { text = fs.readFileSync(f, 'utf8').replace(/^/, ''); } catch { usage(`can't read ${f}`); }
|
|
166
|
+
const rel = path.relative(process.cwd(), f).split(path.sep).join('/');
|
|
167
|
+
let found = [];
|
|
168
|
+
let format = null;
|
|
169
|
+
if (/^\s*\{/.test(text)) {
|
|
170
|
+
try {
|
|
171
|
+
const j = JSON.parse(text);
|
|
172
|
+
if (Array.isArray(j.suites) && j.stats) { format = 'playwright-json'; found = parsePlaywrightJson(j, rel); }
|
|
173
|
+
// A run that failed before any test (global setup, sign-in, config) lists it in errors[]: say so, never "no tests".
|
|
174
|
+
if (Array.isArray(j.errors) && j.errors.length) runErrors.push(`${rel}: ${String(j.errors[0].message || j.errors[0].value || j.errors[0]).split('\n')[0].replace(/((?:password|passwd|token|secret)\s*[=:]\s*)\S+/gi, '$1***').slice(0, 200)}`);
|
|
175
|
+
} catch { /* not JSON */ }
|
|
176
|
+
} else if (/<TestRun\b/.test(text)) { format = 'trx'; found = parseTrx(text, rel); }
|
|
177
|
+
else if (/<testsuites?\b/.test(text)) { format = 'junit'; found = parseJUnit(text, rel); }
|
|
178
|
+
if (!format) { skipped.push(rel); continue; }
|
|
179
|
+
sources.push({ file: rel, format, tests: found.length });
|
|
180
|
+
rows.push(...found);
|
|
181
|
+
}
|
|
182
|
+
// Surefire with TestNG writes the same cases into TEST-TestSuite.xml and one file per class: keep one of each.
|
|
183
|
+
const seen = new Map();
|
|
184
|
+
for (const r of rows) {
|
|
185
|
+
const k = `${r.file}\0${r.title}\0${r.project || ''}`;
|
|
186
|
+
if (!seen.has(k)) seen.set(k, r);
|
|
187
|
+
}
|
|
188
|
+
const tests = [...seen.values()].map((r) => {
|
|
189
|
+
const { source, skip_text: skipText, ...rest } = r;
|
|
190
|
+
const skippedWhy = rest.status === 'skipped' ? (skipText || rest.failure_sig) : undefined;
|
|
191
|
+
if (rest.status === 'skipped' || rest.status === 'passed') rest.failure_sig = null;
|
|
192
|
+
return { ...ids(r.title), ...rest, ...(skippedWhy ? { skip_reason: skippedWhy } : {}), title: mask(r.title), source };
|
|
193
|
+
}).sort((a, b) => a.file.localeCompare(b.file) || a.title.localeCompare(b.title) || String(a.project).localeCompare(String(b.project)));
|
|
194
|
+
for (const t of tests) if (t.project === null || t.project === undefined) delete t.project;
|
|
195
|
+
const totals = { tests: tests.length, passed: 0, failed: 0, skipped: 0, flaky: 0 };
|
|
196
|
+
for (const t of tests) totals[t.status]++;
|
|
197
|
+
const report = { format: FORMAT, run_id: opt.run, sources, skipped_files: skipped, totals, tests };
|
|
198
|
+
const text = `${JSON.stringify(report, null, 2)}\n`;
|
|
199
|
+
if (!tests.length && runErrors.length) { console.log(`results: the run failed before any test ran: ${runErrors[0]}`); process.exit(1); }
|
|
200
|
+
if (!tests.length) { console.log(`results: no test results in ${inputs.join(', ')}${skipped.length ? ` (not reports: ${skipped.join(', ')})` : ''}`); process.exit(1); }
|
|
201
|
+
if (opt.out) {
|
|
202
|
+
insideWorkspace(opt.out, '--out');
|
|
203
|
+
fs.mkdirSync(path.dirname(opt.out), { recursive: true });
|
|
204
|
+
fs.writeFileSync(opt.out, text);
|
|
205
|
+
console.log(`results: ${totals.tests} tests · passed ${totals.passed} · failed ${totals.failed} · flaky ${totals.flaky} · skipped ${totals.skipped} → ${opt.out}`);
|
|
206
|
+
} else process.stdout.write(text);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
main();
|