testeiya 0.2.1 → 0.3.10
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/LICENSE +21 -0
- package/README.md +284 -171
- package/dist/prompt/context.js +79 -0
- package/dist/prompt/context.js.map +1 -0
- package/dist/prompt/index.js +60 -0
- package/dist/prompt/index.js.map +1 -0
- package/dist/prompt/print.js +30 -0
- package/dist/prompt/print.js.map +1 -0
- package/dist/prompt/project-info.js +2 -0
- package/dist/prompt/project-info.js.map +1 -0
- package/{src/prompt/system-prompt.ts → dist/prompt/system-prompt.js} +38 -25
- package/dist/prompt/system-prompt.js.map +1 -0
- package/dist/prompt/testomatio.js +264 -0
- package/dist/prompt/testomatio.js.map +1 -0
- package/dist/prompt/tools.js +57 -0
- package/dist/prompt/tools.js.map +1 -0
- package/dist/prompt/vocab.js +8 -0
- package/dist/prompt/vocab.js.map +1 -0
- package/dist/src/args.js +172 -0
- package/dist/src/args.js.map +1 -0
- package/dist/src/cli.js +97 -0
- package/dist/src/cli.js.map +1 -0
- package/dist/src/doctor.js +186 -0
- package/dist/src/doctor.js.map +1 -0
- package/dist/src/env.js +93 -0
- package/dist/src/env.js.map +1 -0
- package/dist/src/mcp-extension.js +9 -0
- package/dist/src/mcp-extension.js.map +1 -0
- package/dist/src/mcp.js +139 -0
- package/dist/src/mcp.js.map +1 -0
- package/dist/src/model.js +71 -0
- package/dist/src/model.js.map +1 -0
- package/dist/src/models.js +38 -0
- package/dist/src/models.js.map +1 -0
- package/dist/src/output.js +185 -0
- package/dist/src/output.js.map +1 -0
- package/dist/src/result.js +41 -0
- package/dist/src/result.js.map +1 -0
- package/dist/src/run.js +291 -0
- package/dist/src/run.js.map +1 -0
- package/dist/src/session.js +92 -0
- package/dist/src/session.js.map +1 -0
- package/dist/src/sessions.js +61 -0
- package/dist/src/sessions.js.map +1 -0
- package/dist/vendor/mcp.js +14801 -0
- package/mcp-tools.json +2967 -0
- package/package.json +34 -43
- package/prompt/context.ts +101 -0
- package/prompt/index.ts +102 -0
- package/prompt/print.ts +32 -0
- package/prompt/project-info.ts +30 -0
- package/prompt/system-prompt.ts +187 -0
- package/{src/prompt → prompt}/testomatio.ts +120 -9
- package/prompt/tools.ts +57 -0
- package/prompt/vocab.ts +7 -0
- package/skills/codeceptjs/ci-fix-tests/SKILL.md +7 -8
- package/skills/codeceptjs/codeceptjs-auth/SKILL.md +47 -64
- package/skills/codeceptjs/codeceptjs-exploration/SKILL.md +56 -47
- package/skills/codeceptjs/codeceptjs-fundamentals/SKILL.md +144 -106
- package/skills/codeceptjs/codeceptjs-run-analysis/SKILL.md +50 -57
- package/skills/codeceptjs/debugging-codeceptjs-tests/SKILL.md +88 -196
- package/skills/codeceptjs/migrate-codeceptjs-4/SKILL.md +4 -5
- package/skills/codeceptjs/migrate-cypress-to-codeceptjs/SKILL.md +25 -36
- package/skills/codeceptjs/migrate-protractor-to-codeceptjs/SKILL.md +23 -36
- package/skills/codeceptjs/migrate-selenium-java-to-codeceptjs/SKILL.md +23 -36
- package/skills/codeceptjs/migrate-testcafe-to-codeceptjs/SKILL.md +23 -35
- package/skills/codeceptjs/refactoring-codeceptjs-tests/SKILL.md +50 -53
- package/skills/codeceptjs/writing-codeceptjs-tests/SKILL.md +87 -191
- package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/SKILL.md +1 -1
- package/{skills.lock.json → skills/skills.lock.json} +43 -36
- package/skills/skills.yaml +34 -0
- package/skills/testomatio/explorbot/explorbot-fundamentals/SKILL.md +49 -61
- package/skills/testomatio/explorbot/explorbot-fundamentals/references/no-install.md +36 -0
- package/skills/testomatio/explorbot/explorbot-plan/SKILL.md +20 -7
- package/skills/testomatio/explorbot/explorbot-setup/SKILL.md +41 -289
- package/skills/testomatio/qa-process/qa-explain-behavior/SKILL.md +111 -0
- package/skills/testomatio/qa-process/qa-explain-behavior/references/answer-shapes.md +116 -0
- package/skills/testomatio/qa-process/qa-explain-behavior/references/examples.md +157 -0
- package/skills/testomatio/qa-process/qa-lead-strategy-advisor/SKILL.md +91 -0
- package/skills/testomatio/qa-process/qa-lead-strategy-advisor/references/output-format.md +71 -0
- package/skills/testomatio/qa-process/testing-workflow/SKILL.md +227 -0
- package/skills/testomatio/test-automation/qa-data-seeder/SKILL.md +83 -0
- package/skills/testomatio/test-automation/run-tests-with-testomatio-reporter/SKILL.md +5 -3
- package/skills/testomatio/test-automation/setup-change-aware-pr-testing/SKILL.md +190 -0
- package/skills/testomatio/test-automation/setup-ci-automation/SKILL.md +76 -0
- package/skills/testomatio/test-management/qa-split-testing-levels-pyramid/SKILL.md +55 -0
- package/skills/testomatio/test-management/qa-sprint-report-by-testomatio/SKILL.md +220 -0
- package/skills/testomatio/test-management/qa-sprint-report-by-testomatio/references/qa-sprint-report.md +126 -0
- package/skills/testomatio/test-management/qa-test-code-coverage/SKILL.md +1 -1
- package/skills/testomatio/test-management/qa-thinking/SKILL.md +25 -25
- package/skills/testomatio/test-management/testomatio-mcp/SKILL.md +14 -1
- package/skills/testomatio/test-management/testomatio-mcp/references/MCP_SETUP.md +8 -0
- package/assets/testeiya-logo-dark.svg +0 -16
- package/assets/testeiya-logo.svg +0 -15
- package/models.catalog.json +0 -6963
- package/skills/playwright-best-practices-skill/LICENSE.md +0 -7
- package/skills/playwright-best-practices-skill/README.md +0 -147
- package/skills/testeiya/README.md +0 -29
- package/skills/testeiya/answer-formatting/SKILL.md +0 -30
- package/skills/testeiya/check-cucumber/SKILL.md +0 -200
- package/skills/testeiya/check-tests/SKILL.md +0 -260
- package/skills/testeiya/manual-run-assistant/SKILL.md +0 -61
- package/skills/testeiya/testomatio-docs/INDEX.md +0 -175
- package/skills/testeiya/testomatio-docs/SKILL.md +0 -102
- package/skills/testeiya/testomatio-docs/docs/advanced/ai-powered-features/ai-agents.md +0 -144
- package/skills/testeiya/testomatio-docs/docs/advanced/ai-powered-features/ai-powered-features.md +0 -531
- package/skills/testeiya/testomatio-docs/docs/advanced/ai-powered-features/ai-requirements.md +0 -437
- package/skills/testeiya/testomatio-docs/docs/advanced/api-access/index.md +0 -191
- package/skills/testeiya/testomatio-docs/docs/advanced/branches-folder/index.md +0 -277
- package/skills/testeiya/testomatio-docs/docs/advanced/bulk-edit-folder/bulk-edit-demos.mdx +0 -39
- package/skills/testeiya/testomatio-docs/docs/advanced/bulk-edit-folder/bulk-edit-on-suite-and-test-level.md +0 -122
- package/skills/testeiya/testomatio-docs/docs/advanced/bulk-edit-folder/what-is-bulk-edit.md +0 -170
- package/skills/testeiya/testomatio-docs/docs/advanced/jira-plugin/branches.md +0 -53
- package/skills/testeiya/testomatio-docs/docs/advanced/jira-plugin/index.mdx +0 -98
- package/skills/testeiya/testomatio-docs/docs/advanced/jira-plugin/jira-issue.md +0 -151
- package/skills/testeiya/testomatio-docs/docs/advanced/jira-plugin/runs-and-reports.md +0 -377
- package/skills/testeiya/testomatio-docs/docs/advanced/jira-plugin/work-in-jira.md +0 -267
- package/skills/testeiya/testomatio-docs/docs/advanced/living-doc/index.md +0 -138
- package/skills/testeiya/testomatio-docs/docs/advanced/milestones/index.md +0 -220
- package/skills/testeiya/testomatio-docs/docs/advanced/shortcuts/index.md +0 -48
- package/skills/testeiya/testomatio-docs/docs/advanced/tags-labels/labels-and-custom-fields.md +0 -201
- package/skills/testeiya/testomatio-docs/docs/advanced/tags-labels/tags-or-labels.md +0 -94
- package/skills/testeiya/testomatio-docs/docs/advanced/tags-labels/tags.md +0 -243
- package/skills/testeiya/testomatio-docs/docs/advanced/test-artifacts/index.md +0 -135
- package/skills/testeiya/testomatio-docs/docs/advanced/tql/index.md +0 -394
- package/skills/testeiya/testomatio-docs/docs/getting-started/index.md +0 -290
- package/skills/testeiya/testomatio-docs/docs/integrations/continuous-integration/azure.md +0 -96
- package/skills/testeiya/testomatio-docs/docs/integrations/continuous-integration/bamboo.md +0 -94
- package/skills/testeiya/testomatio-docs/docs/integrations/continuous-integration/bitbucket.md +0 -106
- package/skills/testeiya/testomatio-docs/docs/integrations/continuous-integration/circle.md +0 -115
- package/skills/testeiya/testomatio-docs/docs/integrations/continuous-integration/github.md +0 -120
- package/skills/testeiya/testomatio-docs/docs/integrations/continuous-integration/gitlab.md +0 -88
- package/skills/testeiya/testomatio-docs/docs/integrations/continuous-integration/index.mdx +0 -151
- package/skills/testeiya/testomatio-docs/docs/integrations/continuous-integration/jenkins.md +0 -121
- package/skills/testeiya/testomatio-docs/docs/integrations/continuous-integration/teamcity.md +0 -96
- package/skills/testeiya/testomatio-docs/docs/integrations/issues-management/azure.md +0 -31
- package/skills/testeiya/testomatio-docs/docs/integrations/issues-management/clickup.md +0 -54
- package/skills/testeiya/testomatio-docs/docs/integrations/issues-management/confluence.md +0 -34
- package/skills/testeiya/testomatio-docs/docs/integrations/issues-management/github.md +0 -31
- package/skills/testeiya/testomatio-docs/docs/integrations/issues-management/gitlab.md +0 -93
- package/skills/testeiya/testomatio-docs/docs/integrations/issues-management/index.md +0 -131
- package/skills/testeiya/testomatio-docs/docs/integrations/issues-management/jira.md +0 -164
- package/skills/testeiya/testomatio-docs/docs/integrations/issues-management/linear.md +0 -29
- package/skills/testeiya/testomatio-docs/docs/integrations/issues-management/shortcut.md +0 -67
- package/skills/testeiya/testomatio-docs/docs/integrations/issues-management/youtrack.md +0 -94
- package/skills/testeiya/testomatio-docs/docs/integrations/report-notifications/azure-devops.md +0 -53
- package/skills/testeiya/testomatio-docs/docs/integrations/report-notifications/email.md +0 -71
- package/skills/testeiya/testomatio-docs/docs/integrations/report-notifications/jira.md +0 -52
- package/skills/testeiya/testomatio-docs/docs/integrations/report-notifications/ms-teams.md +0 -60
- package/skills/testeiya/testomatio-docs/docs/integrations/report-notifications/rules.md +0 -267
- package/skills/testeiya/testomatio-docs/docs/integrations/report-notifications/slack.md +0 -82
- package/skills/testeiya/testomatio-docs/docs/integrations/report-notifications/telegram.md +0 -73
- package/skills/testeiya/testomatio-docs/docs/integrations/scim-provisioning/index.mdx +0 -207
- package/skills/testeiya/testomatio-docs/docs/integrations/scim-provisioning/okta.md +0 -204
- package/skills/testeiya/testomatio-docs/docs/integrations/single-sign-on/azure.md +0 -95
- package/skills/testeiya/testomatio-docs/docs/integrations/single-sign-on/google.md +0 -75
- package/skills/testeiya/testomatio-docs/docs/integrations/single-sign-on/index.mdx +0 -33
- package/skills/testeiya/testomatio-docs/docs/integrations/single-sign-on/okta.md +0 -108
- package/skills/testeiya/testomatio-docs/docs/integrations/single-sign-on/saml.md +0 -66
- package/skills/testeiya/testomatio-docs/docs/legal/compliance/gdpr.md +0 -95
- package/skills/testeiya/testomatio-docs/docs/legal/compliance/index.mdx +0 -94
- package/skills/testeiya/testomatio-docs/docs/legal/compliance/privacy.md +0 -26
- package/skills/testeiya/testomatio-docs/docs/legal/compliance/terms.md +0 -32
- package/skills/testeiya/testomatio-docs/docs/legal/security/index.mdx +0 -242
- package/skills/testeiya/testomatio-docs/docs/legal/security/jira.md +0 -140
- package/skills/testeiya/testomatio-docs/docs/legal/security/subprocessors.md +0 -76
- package/skills/testeiya/testomatio-docs/docs/management/company/administration.md +0 -363
- package/skills/testeiya/testomatio-docs/docs/management/company/audit-log.md +0 -41
- package/skills/testeiya/testomatio-docs/docs/management/company/plan-features-comparison.md +0 -240
- package/skills/testeiya/testomatio-docs/docs/management/company/subscriptions.md +0 -326
- package/skills/testeiya/testomatio-docs/docs/management/company/trials.md +0 -75
- package/skills/testeiya/testomatio-docs/docs/management/company/users-and-permissions/accountant.md +0 -49
- package/skills/testeiya/testomatio-docs/docs/management/company/users-and-permissions/index.mdx +0 -285
- package/skills/testeiya/testomatio-docs/docs/management/company/users-and-permissions/read-only-user.md +0 -67
- package/skills/testeiya/testomatio-docs/docs/management/company/users-and-permissions/teams.md +0 -138
- package/skills/testeiya/testomatio-docs/docs/management/project/settings.md +0 -87
- package/skills/testeiya/testomatio-docs/docs/management/project/templates.md +0 -546
- package/skills/testeiya/testomatio-docs/docs/project/analytics/index.md +0 -326
- package/skills/testeiya/testomatio-docs/docs/project/import-export/export-tests/classical-tests-markdown-format.md +0 -386
- package/skills/testeiya/testomatio-docs/docs/project/import-export/export-tests/download-manual-tests-as-files.md +0 -378
- package/skills/testeiya/testomatio-docs/docs/project/import-export/export-tests/export-to-obsidian.md +0 -112
- package/skills/testeiya/testomatio-docs/docs/project/import-export/export-tests/export-to-spreadsheet.md +0 -127
- package/skills/testeiya/testomatio-docs/docs/project/import-export/import/auto-import.md +0 -63
- package/skills/testeiya/testomatio-docs/docs/project/import-export/import/import-tests-from-Allure-TestOps.md +0 -49
- package/skills/testeiya/testomatio-docs/docs/project/import-export/import/import-tests-from-QTest.md +0 -41
- package/skills/testeiya/testomatio-docs/docs/project/import-export/import/import-tests-from-Qase.md +0 -39
- package/skills/testeiya/testomatio-docs/docs/project/import-export/import/import-tests-from-Zephyr.md +0 -37
- package/skills/testeiya/testomatio-docs/docs/project/import-export/import/import-tests-from-csv-xlsx.md +0 -117
- package/skills/testeiya/testomatio-docs/docs/project/import-export/import/import-tests-from-cucumber.md +0 -93
- package/skills/testeiya/testomatio-docs/docs/project/import-export/import/import-tests-from-qmetry.md +0 -44
- package/skills/testeiya/testomatio-docs/docs/project/import-export/import/import-tests-from-source-code.md +0 -117
- package/skills/testeiya/testomatio-docs/docs/project/import-export/import/import-tests-from-testcaselabs.md +0 -44
- package/skills/testeiya/testomatio-docs/docs/project/import-export/import/import-tests-from-testmo.md +0 -47
- package/skills/testeiya/testomatio-docs/docs/project/import-export/import/import-tests-from-testrail.md +0 -82
- package/skills/testeiya/testomatio-docs/docs/project/import-export/import/import-tests-from-xray.md +0 -55
- package/skills/testeiya/testomatio-docs/docs/project/plans/index.md +0 -334
- package/skills/testeiya/testomatio-docs/docs/project/pulse/index.md +0 -104
- package/skills/testeiya/testomatio-docs/docs/project/runs/archive-runs-and-groups.md +0 -176
- package/skills/testeiya/testomatio-docs/docs/project/runs/custom-statuses.md +0 -195
- package/skills/testeiya/testomatio-docs/docs/project/runs/environments.md +0 -203
- package/skills/testeiya/testomatio-docs/docs/project/runs/managing-runs.md +0 -455
- package/skills/testeiya/testomatio-docs/docs/project/runs/merge-strategies.md +0 -137
- package/skills/testeiya/testomatio-docs/docs/project/runs/reports.md +0 -329
- package/skills/testeiya/testomatio-docs/docs/project/runs/rungroups.md +0 -342
- package/skills/testeiya/testomatio-docs/docs/project/runs/running-automated-tests.md +0 -256
- package/skills/testeiya/testomatio-docs/docs/project/runs/running-manual-and-automated-tests.md +0 -331
- package/skills/testeiya/testomatio-docs/docs/project/runs/running-tests-manually.md +0 -633
- package/skills/testeiya/testomatio-docs/docs/project/runs/temporary-tests-notes.md +0 -223
- package/skills/testeiya/testomatio-docs/docs/project/steps-snippets/snippets.md +0 -68
- package/skills/testeiya/testomatio-docs/docs/project/steps-snippets/steps.md +0 -181
- package/skills/testeiya/testomatio-docs/docs/project/tests/bdd-test-case-editor.md +0 -98
- package/skills/testeiya/testomatio-docs/docs/project/tests/classical-test-case-editor.md +0 -354
- package/skills/testeiya/testomatio-docs/docs/project/tests/classical-vs-bdd.md +0 -169
- package/skills/testeiya/testomatio-docs/docs/project/tests/copy-and-move-your-tests.md +0 -156
- package/skills/testeiya/testomatio-docs/docs/project/tests/other-features-for-test-case-design.md +0 -412
- package/skills/testeiya/testomatio-docs/docs/project/tests/test-case-creation-and-editing.md +0 -527
- package/skills/testeiya/testomatio-docs/docs/support/index.md +0 -75
- package/skills/testeiya/testomatio-docs/docs/test-reporting/artifacts.md +0 -388
- package/skills/testeiya/testomatio-docs/docs/test-reporting/cli.md +0 -215
- package/skills/testeiya/testomatio-docs/docs/test-reporting/configuration.md +0 -247
- package/skills/testeiya/testomatio-docs/docs/test-reporting/frameworks.md +0 -490
- package/skills/testeiya/testomatio-docs/docs/test-reporting/functions.md +0 -144
- package/skills/testeiya/testomatio-docs/docs/test-reporting/index.mdx +0 -48
- package/skills/testeiya/testomatio-docs/docs/test-reporting/junit.md +0 -248
- package/skills/testeiya/testomatio-docs/docs/test-reporting/logger.md +0 -138
- package/skills/testeiya/testomatio-docs/docs/test-reporting/php.md +0 -77
- package/skills/testeiya/testomatio-docs/docs/test-reporting/pipes/bitbucket.md +0 -72
- package/skills/testeiya/testomatio-docs/docs/test-reporting/pipes/csv.md +0 -23
- package/skills/testeiya/testomatio-docs/docs/test-reporting/pipes/debug.md +0 -18
- package/skills/testeiya/testomatio-docs/docs/test-reporting/pipes/github.md +0 -63
- package/skills/testeiya/testomatio-docs/docs/test-reporting/pipes/gitlab.md +0 -29
- package/skills/testeiya/testomatio-docs/docs/test-reporting/pipes/html.md +0 -80
- package/skills/testeiya/testomatio-docs/docs/test-reporting/pipes/index.mdx +0 -57
- package/skills/testeiya/testomatio-docs/docs/test-reporting/pipes/testomatio.md +0 -331
- package/skills/testeiya/testomatio-docs/docs/test-reporting/python.md +0 -229
- package/skills/testeiya/testomatio-docs/docs/test-reporting/workflows.md +0 -325
- package/skills/testeiya/testomatio-docs/docs/tutorials/Interacting-via-API.md +0 -159
- package/skills/testeiya/testomatio-docs/docs/tutorials/Manual-Testing-Classic.md +0 -164
- package/skills/testeiya/testomatio-docs/docs/tutorials/Set-Up-Read-Only-Access.md +0 -85
- package/skills/testeiya/testomatio-docs/docs/tutorials/Using-AI-in-Testing.md +0 -163
- package/skills/testeiya/testomatio-docs/docs/tutorials/Working-with-Jira.md +0 -125
- package/skills/testeiya/testomatio-docs/docs/tutorials/java.md +0 -478
- package/skills/testeiya/testomatio-docs/docs/tutorials/playwright.md +0 -207
- package/skills/testeiya/testomatio-docs/docs/tutorials/webdriver.md +0 -218
- package/skills/testeiya/testomatio-docs/docs.lock.json +0 -6
- package/skills/testeiya/testomatio-reporter/SKILL.md +0 -307
- package/skills/testomatio/test-automation/setup-pr-testing/SKILL.md +0 -199
- package/skills.yaml +0 -21
- package/src/ai-debug.ts +0 -188
- package/src/api/agent-get.ts +0 -22
- package/src/api/agent-start.ts +0 -384
- package/src/api/client-log.ts +0 -29
- package/src/api/context.ts +0 -332
- package/src/api/debug-layout.ts +0 -47
- package/src/api/debug-report.ts +0 -29
- package/src/api/debug-snapshot.ts +0 -30
- package/src/api/debug-stream.ts +0 -52
- package/src/api/files-delete.ts +0 -184
- package/src/api/files-read.ts +0 -41
- package/src/api/files-rename.ts +0 -99
- package/src/api/files-tree.ts +0 -292
- package/src/api/files-write.ts +0 -41
- package/src/api/mcp.ts +0 -603
- package/src/api/memory.ts +0 -69
- package/src/api/open-external.ts +0 -39
- package/src/api/playwright-cli.ts +0 -606
- package/src/api/providers.ts +0 -457
- package/src/api/read-env-token.ts +0 -33
- package/src/api/sessions.ts +0 -79
- package/src/api/settings.ts +0 -120
- package/src/api/skills.ts +0 -58
- package/src/api/testomatio-attachment.ts +0 -89
- package/src/api/testomatio-auth.ts +0 -284
- package/src/api/testomatio-proxy.ts +0 -197
- package/src/api/testomatio-run-stats.ts +0 -81
- package/src/api/testomatio-target.ts +0 -225
- package/src/api/testomatio-transcription.ts +0 -82
- package/src/api/workspace-search.ts +0 -96
- package/src/api/workspace-sync.ts +0 -151
- package/src/api/workspace.ts +0 -165
- package/src/app-server.ts +0 -556
- package/src/bridge.ts +0 -251
- package/src/check-tests.ts +0 -156
- package/src/cli.ts +0 -17
- package/src/commands.ts +0 -244
- package/src/config.ts +0 -183
- package/src/connection.ts +0 -658
- package/src/context-store.ts +0 -265
- package/src/debug-bus.ts +0 -405
- package/src/extensions/tool-gate.ts +0 -220
- package/src/extensions/webui/ask-channel.ts +0 -52
- package/src/extensions/webui/index.ts +0 -184
- package/src/extensions/webui/tools/ask-question.ts +0 -88
- package/src/extensions/webui/tools/query-result.ts +0 -79
- package/src/extensions/webui/tools/render-chart.ts +0 -53
- package/src/extensions/webui/tools/render-item.ts +0 -61
- package/src/extensions/webui/tools/render-list.ts +0 -170
- package/src/extensions/webui/tools/render-result.ts +0 -85
- package/src/extensions/webui/tools/render-tree.ts +0 -71
- package/src/extensions/webui/tools/ui-widget.ts +0 -54
- package/src/extensions/webui/tools/widget-result.ts +0 -13
- package/src/extensions/webui/widget-channel.ts +0 -50
- package/src/file-log.ts +0 -196
- package/src/git-tracked.ts +0 -68
- package/src/gitignore.ts +0 -53
- package/src/json-store.ts +0 -43
- package/src/load-env.ts +0 -70
- package/src/loader-style.ts +0 -96
- package/src/main.ts +0 -140
- package/src/mcp-catalog.ts +0 -96
- package/src/models-catalog.ts +0 -72
- package/src/permissions.ts +0 -120
- package/src/project-dir.ts +0 -189
- package/src/project-info.ts +0 -108
- package/src/prompt/app-ui.ts +0 -59
- package/src/prompt/browser.ts +0 -27
- package/src/prompt/index.ts +0 -62
- package/src/prompt/tools.ts +0 -27
- package/src/server-info.ts +0 -62
- package/src/session-factory.ts +0 -442
- package/src/session-store.ts +0 -115
- package/src/shell-env.ts +0 -45
- package/src/skills.ts +0 -163
- package/src/sync-snapshot.ts +0 -140
- package/src/telemetry.ts +0 -239
- package/src/testomatio-auth.ts +0 -299
- package/src/testomatio.ts +0 -98
- package/src/theme.ts +0 -30
- package/src/user-env.ts +0 -94
- package/src/welcome.ts +0 -194
- package/src/workspace/safe-path.ts +0 -85
- package/src/workspace/test-md.ts +0 -70
- package/src/workspace-model.ts +0 -440
- package/testeiya.config.json +0 -14
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/advanced/authentication-flows.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/advanced/authentication.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/advanced/clock-mocking.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/advanced/mobile-testing.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/advanced/multi-context.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/advanced/multi-user.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/advanced/network-advanced.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/advanced/third-party.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/architecture/pom-vs-fixtures.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/architecture/test-architecture.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/architecture/when-to-mock.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/browser-apis/browser-apis.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/browser-apis/iframes.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/browser-apis/service-workers.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/browser-apis/websockets.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/core/annotations.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/core/assertions-waiting.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/core/configuration.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/core/fixtures-hooks.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/core/global-setup.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/core/locators.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/core/page-object-model.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/core/projects-dependencies.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/core/test-data.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/core/test-suite-structure.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/core/test-tags.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/debugging/console-errors.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/debugging/debugging.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/debugging/error-testing.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/debugging/flaky-tests.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/frameworks/angular.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/frameworks/nextjs.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/frameworks/react.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/frameworks/vue.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/infrastructure-ci-cd/ci-cd.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/infrastructure-ci-cd/docker.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/infrastructure-ci-cd/github-actions.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/infrastructure-ci-cd/gitlab.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/infrastructure-ci-cd/other-providers.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/infrastructure-ci-cd/parallel-sharding.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/infrastructure-ci-cd/performance.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/infrastructure-ci-cd/reporting.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/infrastructure-ci-cd/test-coverage.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/testing-patterns/accessibility.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/testing-patterns/api-testing.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/testing-patterns/browser-extensions.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/testing-patterns/canvas-webgl.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/testing-patterns/component-testing.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/testing-patterns/drag-drop.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/testing-patterns/electron.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/testing-patterns/file-operations.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/testing-patterns/file-upload-download.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/testing-patterns/forms-validation.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/testing-patterns/graphql-testing.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/testing-patterns/i18n.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/testing-patterns/performance-testing.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/testing-patterns/security-testing.md +0 -0
- /package/skills/{playwright-best-practices-skill → playwright/playwright-best-practices}/testing-patterns/visual-regression.md +0 -0
- /package/skills/{playwright-cli → playwright/playwright-cli}/SKILL.md +0 -0
- /package/skills/{playwright-cli → playwright/playwright-cli}/references/element-attributes.md +0 -0
- /package/skills/{playwright-cli → playwright/playwright-cli}/references/playwright-tests.md +0 -0
- /package/skills/{playwright-cli → playwright/playwright-cli}/references/request-mocking.md +0 -0
- /package/skills/{playwright-cli → playwright/playwright-cli}/references/running-code.md +0 -0
- /package/skills/{playwright-cli → playwright/playwright-cli}/references/session-management.md +0 -0
- /package/skills/{playwright-cli → playwright/playwright-cli}/references/storage-state.md +0 -0
- /package/skills/{playwright-cli → playwright/playwright-cli}/references/test-generation.md +0 -0
- /package/skills/{playwright-cli → playwright/playwright-cli}/references/tracing.md +0 -0
- /package/skills/{playwright-cli → playwright/playwright-cli}/references/video-recording.md +0 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { getSystemPrompt } from "./system-prompt.js";
|
|
2
|
+
import { testomatioTms, testomatioConnection, testomatioNotConnected, projectSettings, } from "./testomatio.js";
|
|
3
|
+
import { briefAnswer, nonInteractive, reportOutput } from "./print.js";
|
|
4
|
+
import { contextPromptSection, } from "./context.js";
|
|
5
|
+
export function buildSystemPrompt(options) {
|
|
6
|
+
const mode = options?.mode ?? "tui";
|
|
7
|
+
const interactive = mode !== "print";
|
|
8
|
+
// The base prompt (role, workspace, tools, goals) comes first — it defines who
|
|
9
|
+
// the agent is. Specialized rules layer on after it, dynamic context goes last.
|
|
10
|
+
// Anything only one harness can do — its own question tool, a browser it can
|
|
11
|
+
// open for a watching user — reaches the prompt through `sections`,
|
|
12
|
+
// `toolBullets` and `rules`, never from here.
|
|
13
|
+
const parts = [
|
|
14
|
+
getSystemPrompt(options?.cwd, {
|
|
15
|
+
interactive,
|
|
16
|
+
toolBullets: options?.toolBullets,
|
|
17
|
+
rules: options?.rules,
|
|
18
|
+
connectedClis: options?.connectedClis,
|
|
19
|
+
supportedMcps: options?.supportedMcps,
|
|
20
|
+
}),
|
|
21
|
+
];
|
|
22
|
+
const tokenSlugs = options?.tokens ? Object.keys(options.tokens) : [];
|
|
23
|
+
// The TUI passes no `connection`, so it keeps the managed-tokens gating.
|
|
24
|
+
const tokenAvailable = options?.connection?.tokenAvailable ?? tokenSlugs.length > 0;
|
|
25
|
+
const tms = options?.tms ?? "mcp-direct";
|
|
26
|
+
// Gated on the same condition as the connection section below: both describe
|
|
27
|
+
// the same connection, and the rules are just as needed when the token comes
|
|
28
|
+
// from the environment rather than from a per-project session token.
|
|
29
|
+
if (tokenAvailable || tokenSlugs.length > 0)
|
|
30
|
+
parts.push(testomatioTms(tms));
|
|
31
|
+
if (mode === "print")
|
|
32
|
+
parts.push(nonInteractive);
|
|
33
|
+
// Whatever this harness alone can offer — its chat-app UI tools, a browser it
|
|
34
|
+
// can open for a watching user. A one-shot CLI contributes none of it, and
|
|
35
|
+
// `nonInteractive` tells the agent to report such a gap rather than try.
|
|
36
|
+
for (const section of options?.sections ?? [])
|
|
37
|
+
parts.push(section);
|
|
38
|
+
if (options?.promptContext) {
|
|
39
|
+
parts.push(`## Project Test Context\n\n${options.promptContext}`);
|
|
40
|
+
}
|
|
41
|
+
if (options?.contextEntries?.length || options?.contextFolders?.length) {
|
|
42
|
+
parts.push(contextPromptSection(options.contextEntries ?? [], options.contextFolders ?? []));
|
|
43
|
+
}
|
|
44
|
+
if (options?.projectInfo) {
|
|
45
|
+
parts.push(projectSettings(options.projectInfo));
|
|
46
|
+
}
|
|
47
|
+
if (tokenAvailable || tokenSlugs.length > 0) {
|
|
48
|
+
parts.push(testomatioConnection(tokenSlugs, options?.backendUrl, options?.connection, tms));
|
|
49
|
+
}
|
|
50
|
+
else if (mode === "web" || mode === "print") {
|
|
51
|
+
parts.push(testomatioNotConnected());
|
|
52
|
+
}
|
|
53
|
+
// The answer contract goes last so it is the final instruction the model reads.
|
|
54
|
+
if (options?.brief)
|
|
55
|
+
parts.push(briefAnswer);
|
|
56
|
+
if (options?.outputFile)
|
|
57
|
+
parts.push(reportOutput(options.outputFile));
|
|
58
|
+
return parts.join("\n\n");
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../prompt/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,GAEhB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACvE,OAAO,EACL,oBAAoB,GAGrB,MAAM,cAAc,CAAC;AAGtB,MAAM,UAAU,iBAAiB,CAAC,OAA6B;IAC7D,MAAM,IAAI,GAAG,OAAO,EAAE,IAAI,IAAI,KAAK,CAAC;IACpC,MAAM,WAAW,GAAG,IAAI,KAAK,OAAO,CAAC;IAErC,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,EAAE,CAAC;QACvE,KAAK,CAAC,IAAI,CACR,oBAAoB,CAAC,OAAO,CAAC,cAAc,IAAI,EAAE,EAAE,OAAO,CAAC,cAAc,IAAI,EAAE,CAAC,CACjF,CAAC;IACJ,CAAC;IACD,IAAI,OAAO,EAAE,WAAW,EAAE,CAAC;QACzB,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;IACnD,CAAC;IACD,IAAI,cAAc,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC5C,KAAK,CAAC,IAAI,CAAC,oBAAoB,CAAC,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,CAAC,CAAC,CAAC;IAC9F,CAAC;SAAM,IAAI,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,OAAO,EAAE,CAAC;QAC9C,KAAK,CAAC,IAAI,CAAC,sBAAsB,EAAE,CAAC,CAAC;IACvC,CAAC;IAED,gFAAgF;IAChF,IAAI,OAAO,EAAE,KAAK;QAAE,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC5C,IAAI,OAAO,EAAE,UAAU;QAAE,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;IAEtE,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC5B,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import dedent from "dedent";
|
|
2
|
+
export const nonInteractive = dedent `
|
|
3
|
+
<non-interactive>
|
|
4
|
+
* Nobody is watching this session. There is no way to ask a question and no answer will ever come.
|
|
5
|
+
* Resolve every ambiguity yourself: pick the most reasonable reading and state the assumption in your output.
|
|
6
|
+
* Never wait for input, confirmation, or approval. Finish the whole task in this run.
|
|
7
|
+
* Missing credentials or an unreachable app are blockers, not questions — report them as the outcome.
|
|
8
|
+
* Do not launch or drive a browser. If the task needs one, report what it would take and stop.
|
|
9
|
+
* Call \`set_result\` with \`fail\` and a one-line reason when the verdict is negative: regressions found, a quality gate unmet, tests broken, or the task could not be completed. Otherwise do not call it — silence means success.
|
|
10
|
+
</non-interactive>
|
|
11
|
+
`;
|
|
12
|
+
export function reportOutput(path) {
|
|
13
|
+
return dedent `
|
|
14
|
+
<final-report>
|
|
15
|
+
* Write your complete final report to \`${path}\` with the \`write\` tool. Writing it is required before you finish.
|
|
16
|
+
* That file is your answer — it is the run's deliverable. Nothing else you say is kept.
|
|
17
|
+
* Markdown. Open with an \`#\` title, then the findings. Overwrite the file; never append.
|
|
18
|
+
* Keep your chat replies short: the report carries the detail.
|
|
19
|
+
</final-report>
|
|
20
|
+
`;
|
|
21
|
+
}
|
|
22
|
+
export const briefAnswer = dedent `
|
|
23
|
+
<answer>
|
|
24
|
+
* You were asked a question, not given a task. Answer it.
|
|
25
|
+
* Lead with the answer in one line, then the evidence you checked.
|
|
26
|
+
* A few sentences. No report file, no headings, no plan.
|
|
27
|
+
* Say plainly when what you found does not settle the question.
|
|
28
|
+
</answer>
|
|
29
|
+
`;
|
|
30
|
+
//# sourceMappingURL=print.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"print.js","sourceRoot":"","sources":["../../prompt/print.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAA;;;;;;;;;CASnC,CAAC;AAEF,MAAM,UAAU,YAAY,CAAC,IAAY;IACvC,OAAO,MAAM,CAAA;;4CAE6B,IAAI;;;;;CAK/C,CAAC;AACF,CAAC;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAA;;;;;;;CAOhC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-info.js","sourceRoot":"","sources":["../../prompt/project-info.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
import { tools } from './tools';
|
|
2
|
-
import { TESTEIYA_DIR_NAME } from '
|
|
3
|
-
|
|
1
|
+
import { tools } from './tools.js';
|
|
2
|
+
import { TESTEIYA_DIR_NAME } from './vocab.js';
|
|
4
3
|
import dedent from 'dedent';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
export function getSystemPrompt(cwd, options) {
|
|
5
|
+
const interactive = options?.interactive ?? true;
|
|
6
|
+
let missingSecretAction = "STOP and ask the user to provide it";
|
|
7
|
+
if (!interactive)
|
|
8
|
+
missingSecretAction = "report it as a blocker in your output";
|
|
9
|
+
let extraRules = "";
|
|
10
|
+
for (const rule of options?.rules ?? [])
|
|
11
|
+
extraRules += ` * ${rule}\n`;
|
|
12
|
+
let cliList = (options?.connectedClis ?? []).join(", ") || "none connected yet";
|
|
13
|
+
let mcpList = (options?.supportedMcps ?? []).join(", ") || "none connected yet";
|
|
14
|
+
return dedent `
|
|
8
15
|
<role>
|
|
9
|
-
You are Testeiya, an
|
|
16
|
+
You are Testeiya, an AI agent that helps with QA tasks.
|
|
10
17
|
You assist in transforming code and requirements into maintainable testing strategies.
|
|
11
18
|
Your power is in skillset available to you which allows to build a comprehensive QA strategy.
|
|
12
19
|
</role>
|
|
@@ -16,14 +23,13 @@ export function getSystemPrompt(cwd?: string): string {
|
|
|
16
23
|
Workspace can contain source code, e2e tests, or just manual tests. You must understand yourself what is inside workspace.
|
|
17
24
|
|
|
18
25
|
* Workspace is ${cwd || process.cwd()} - Exclude system folders like \`.git/\`, \`src/\` from analysis and modification.
|
|
19
|
-
*
|
|
20
|
-
* RULE OF THUMB: IF YOU NEED ADDITOINAL CONTEXT STORE IT TO \`${TESTEIYA_DIR_NAME}\` directory.
|
|
26
|
+
* RULE OF THUMB: IF YOU NEED ADDITIONAL CONTEXT STORE IT TO \`${TESTEIYA_DIR_NAME}\` directory.
|
|
21
27
|
* **Working Storage:** All persistent QA metadata must live in \`${TESTEIYA_DIR_NAME}\` in root.
|
|
22
28
|
* **Safety root:** Never add \`${TESTEIYA_DIR_NAME}\` to the repo's \`.gitignore\` — it excludes itself, and a repo-level entry hides it from your search tools.
|
|
23
29
|
* **System Access:** You have read/write access to all files in \`${TESTEIYA_DIR_NAME}\` directory and its subdirectories.
|
|
24
30
|
* **Hidden dir:** \`${TESTEIYA_DIR_NAME}\` is a dot-folder — file-search tools skip it by default. Search it with hidden:true or an explicit \`${TESTEIYA_DIR_NAME}/\` path prefix. Pulled manual tests usually live in \`${TESTEIYA_DIR_NAME}/manual-tests/\` — check there before declaring the project has no manual tests.
|
|
25
31
|
|
|
26
|
-
* If the workspace is application source code, do never change it, use it for discovery. Save
|
|
32
|
+
* If the workspace is application source code, do never change it, use it for discovery. Save what you keep into \`${TESTEIYA_DIR_NAME}\` context directory.
|
|
27
33
|
* If the workspace is e2e tests directory you can write tests for it. All additional context
|
|
28
34
|
* If the workspace is empty you can store manual test cases in .test.md format into the workspace itself.
|
|
29
35
|
|
|
@@ -31,10 +37,11 @@ export function getSystemPrompt(cwd?: string): string {
|
|
|
31
37
|
* \`${TESTEIYA_DIR_NAME}\` Context Structure:
|
|
32
38
|
- \`<name>/\`: a linked or cloned external project, named after its source (read-only reference).
|
|
33
39
|
- \`requirements/\`: User stories and acceptance criteria (pdfs, docs, images, etc).
|
|
34
|
-
- \`docs/\`: Feature explanations, test planing and strategy files.
|
|
40
|
+
- \`docs/\`: Feature explanations, test planing and strategy files — prose for humans, never data dumps.
|
|
35
41
|
- \`manual-tests/\`: Markdown-based test cases
|
|
36
42
|
- \`auto-tests/\`: Relevant automated (e2e) tests
|
|
37
43
|
- \`exploratory/\`: For explorbot setup
|
|
44
|
+
* **Session scratch:** everything you make to answer *this* request — the one-off scripts you write and run, their output, intermediate dumps and joins — goes to the scratch dir named in your context — a system temp dir when none is named — never into the workspace. It is wiped with the session. Only the context listed above earns a place in \`${TESTEIYA_DIR_NAME}\`.
|
|
38
45
|
* When user needs an external Git repository or local path, clone or symlink it to \`${TESTEIYA_DIR_NAME}/<name>\` (the source's basename; \`extra-\` prefix if taken). Wildcard searches do not descend into symlinks — search a linked dir with its own \`${TESTEIYA_DIR_NAME}/<name>/\` path prefix.
|
|
39
46
|
* Directory is empty or contains mostly \`.test.md\` files and we are in manual test mode => write test cases into workspace
|
|
40
47
|
* If directory is not empty, treat it as a regular workspace and use \`${TESTEIYA_DIR_NAME}\` context directory for external files.
|
|
@@ -80,7 +87,17 @@ export function getSystemPrompt(cwd?: string): string {
|
|
|
80
87
|
|
|
81
88
|
* ${new Date().toISOString().split("T")[0]} - Current Date (use for time-sensitive decisions, e.g., "recently modified files").
|
|
82
89
|
|
|
83
|
-
${tools}
|
|
90
|
+
${tools({ extra: options?.toolBullets })}
|
|
91
|
+
|
|
92
|
+
<connections>
|
|
93
|
+
Testeiya connects external tools for you — CLI tools and MCP servers. This session has:
|
|
94
|
+
|
|
95
|
+
* **Connected CLIs:** ${cliList}
|
|
96
|
+
* **Supported MCP servers:** ${mcpList}
|
|
97
|
+
|
|
98
|
+
* **Missing Connection — Ask, Never Improvise:** When a task needs a tool that is not in the lists above, STOP and ask the user to connect it in Testeiya (Settings → Connections). Never reach the service sideways: no raw REST/GraphQL calls against its API, no scraping credentials from dotfiles or env dumps, no installing binaries on your own.
|
|
99
|
+
* If a task needs both a CLI and an MCP server, ask once for both and say that Testeiya supports them both as connections — the user installs them side by side there.
|
|
100
|
+
</connections>
|
|
84
101
|
|
|
85
102
|
<goals>
|
|
86
103
|
You help in variety of tasks related to software testing, including writing test cases, analyzing test results, and providing feedback.
|
|
@@ -90,23 +107,20 @@ export function getSystemPrompt(cwd?: string): string {
|
|
|
90
107
|
|
|
91
108
|
* Writing & managing manual test cases
|
|
92
109
|
* Writing and debugging automated tests for api, browser & mobile
|
|
93
|
-
*
|
|
110
|
+
* Assisting with manual test execution
|
|
94
111
|
* Manage tests with TMS Testomat.io
|
|
95
112
|
* Setting up CI pipelines for continuous testing
|
|
96
|
-
* Analyzing requirements
|
|
97
|
-
*
|
|
98
|
-
* Launching automated exploratory tests via explorbot
|
|
99
|
-
* Analyzing test results and providing feedback
|
|
113
|
+
* Analyzing requirements and issues
|
|
114
|
+
* Analyzing test results
|
|
100
115
|
|
|
101
116
|
This is what you can do.
|
|
102
117
|
</goals>
|
|
103
118
|
|
|
104
119
|
<communication-style>
|
|
105
|
-
* **Lead with intent:** Before any multi-step or long-running task, open with one short plain-text paragraph — short sentences — telling the user what you are about to do and your plan. State the main idea up front. This is visible output, not thinking
|
|
120
|
+
* **Lead with intent:** Before any multi-step or long-running task, open with one short plain-text paragraph — short sentences — telling the user what you are about to do and your plan. State the main idea up front. This is visible output, not thinking. Then start working.
|
|
106
121
|
* **Technical (QA-aware):** Prefer standard QA terms and jargon: E2E (end-to-end), regression, test coverage, assertion, etc.
|
|
107
122
|
* Prefer to use tables, bullet points, and concise prose over long paragraphs.
|
|
108
|
-
*
|
|
109
|
-
* Be helpful, be curious, and always ask for clarification when needed.
|
|
123
|
+
* Be helpful and curious. ${interactive ? "Ask for clarification when a choice is genuinely the user's to make." : "Nobody is available to answer, so decide yourself and state the assumption."}
|
|
110
124
|
</communication-style>
|
|
111
125
|
|
|
112
126
|
<output-efficiency>
|
|
@@ -125,10 +139,9 @@ export function getSystemPrompt(cwd?: string): string {
|
|
|
125
139
|
|
|
126
140
|
<rules>
|
|
127
141
|
* **Verification Required:** Never report tests as passing, implemented, working, or done without actually running them and seeing a scenario execute. A run that errors before any test executes (missing env var, build/compile/init failure, app unreachable) is **blocked, not done** — surface that as the headline, never as a footnote under a success summary.
|
|
128
|
-
* **
|
|
129
|
-
* **
|
|
130
|
-
* **
|
|
131
|
-
* **Zero Assumptions:** Do not assume test frameworks exist; verify via discovery tools.
|
|
142
|
+
${extraRules} * **Missing Secrets:** If running a test is blocked by a missing credential/env var/secret in the project under test, ${missingSecretAction} — you cannot fabricate or assume a secret. (This is distinct from the pre-configured Testomat.io token, which is always available.)
|
|
143
|
+
* **No Tool Covers It, Say So:** When nothing you have can answer the question, name what is missing and ask — via \`ask_question\` when available. Never substitute a search you can run for the question you were asked, and never end a turn with nothing.
|
|
144
|
+
* **Verify Facts, Don't Guess Them:** Never assume a framework, file, or config exists — confirm it with discovery tools. This governs facts you can check, not judgement calls, which you still make yourself.
|
|
132
145
|
* **Environment Isolation:** Never hardcode credentials or environment-specific paths.
|
|
133
146
|
* **No Implicit Structure:** Do not invent files, folders, or configurations that do not exist; verify before use.
|
|
134
147
|
* **Metadata Source of Truth:** All testing metadata must exist only in \`${TESTEIYA_DIR_NAME}/\`:
|
|
@@ -137,7 +150,6 @@ export function getSystemPrompt(cwd?: string): string {
|
|
|
137
150
|
</rules>
|
|
138
151
|
`;
|
|
139
152
|
}
|
|
140
|
-
|
|
141
153
|
/*
|
|
142
154
|
TODO:
|
|
143
155
|
1) Remove "guidelines" from system prompt and extend it with more detailed instructions:
|
|
@@ -159,3 +171,4 @@ Where it runs - On the first agent run, Testeiya bootstraps the workspace (defau
|
|
|
159
171
|
(Bootstrapping always runs on the gateway host. If the macOS app connects to a remote Gateway, the workspace and bootstrapping
|
|
160
172
|
files live on that remote machine).
|
|
161
173
|
*/
|
|
174
|
+
//# sourceMappingURL=system-prompt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system-prompt.js","sourceRoot":"","sources":["../../prompt/system-prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,MAAM,UAAU,eAAe,CAAC,GAAY,EAAE,OAAuB;IACnE,MAAM,WAAW,GAAG,OAAO,EAAE,WAAW,IAAI,IAAI,CAAC;IACjD,IAAI,mBAAmB,GAAG,qCAAqC,CAAC;IAChE,IAAI,CAAC,WAAW;QAAE,mBAAmB,GAAG,uCAAuC,CAAC;IAChF,IAAI,UAAU,GAAG,EAAE,C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
3
|
+
const MAX_PROMPT_TAGS = 30;
|
|
4
|
+
const MAX_PROMPT_ENVS = 15;
|
|
5
|
+
const tmsViaDirectTools = dedent `
|
|
6
|
+
# Testomat.io-first operating rules (highest priority)
|
|
7
|
+
|
|
8
|
+
This agent works on Testomat.io projects. You have TWO sources of truth and they answer different kinds of questions:
|
|
9
|
+
|
|
10
|
+
1. **The pulled markdown workspace (\`cwd\`)** — for **tests** and **suites**. Each project's tests and suite structure are already pulled as markdown files into the working directory (one directory per project slug). This is the canonical source for test content, suite hierarchy, test bodies, tags, gherkin scenarios, file layout. Use \`read\`, \`find\`, \`grep\`, \`ls\` — they're instant and don't hit the network.
|
|
11
|
+
2. **MCP tools under \`testomatio-<slug>\`** — for **dynamic Testomat.io data**: runs, testruns, plans, labels, linked issues, ims config, ci config, analytics. These things don't live as files and MUST come from MCP.
|
|
12
|
+
|
|
13
|
+
**Prefer the filesystem for test/suite queries.** Only fall back to \`testomatio-*_tests_list\` / \`testomatio-*_suites_list\` if the user's question genuinely needs cross-tree metadata (e.g. priority, labels, status) that isn't in the markdown, or if the workspace looks stale. Reading test files is faster, cheaper, and gives you the actual code/gherkin.
|
|
14
|
+
|
|
15
|
+
**Never** ask the user for the **Testomat.io** API token — it's configured. (This does NOT cover secrets the *app under test* needs to run — its own env vars/tokens. If a test run is blocked by one of those, ask for it.)
|
|
16
|
+
|
|
17
|
+
**Statuses and counts are live** — runs change them at any time. Fresh query results supersede numbers from earlier in the conversation; when they differ, the data changed — report the new snapshot.
|
|
18
|
+
|
|
19
|
+
## Banned moves
|
|
20
|
+
|
|
21
|
+
- Do NOT call an MCP \`*_tests_list\` or \`*_suites_list\` as your first action for a test/suite question — **read the filesystem first** (\`find\`, \`ls\`, \`grep\`, \`read\`). Fall back to MCP only if the metadata you need isn't in the markdown.
|
|
22
|
+
- Do NOT ask the user for the **Testomat.io** API token — it's already configured. (Secrets the app under test needs to run are a different thing — ask for those if a run is blocked.)
|
|
23
|
+
- Do NOT call \`bash\` / \`find\` / \`grep\` to answer questions about **runs, testruns, plans, labels, linked issues, analytics** — those don't exist as files. Use MCP.
|
|
24
|
+
|
|
25
|
+
## Filesystem vs. MCP cheat sheet
|
|
26
|
+
|
|
27
|
+
| Question is about… | First action |
|
|
28
|
+
|---|---|
|
|
29
|
+
| Test content (code, steps, gherkin, description, file path, tags) | \`read\` / \`find\` / \`grep\` in \`cwd\` |
|
|
30
|
+
| Suite hierarchy / structure / which files exist | \`ls\` / \`find\` |
|
|
31
|
+
| Individual test metadata (priority, status flag, labels) | try filesystem; if missing, \`testomatio-*_tests_get\` |
|
|
32
|
+
| Runs, testruns, plans, labels, issues, analytics | MCP \`testomatio-*\` tools |
|
|
33
|
+
| Creating/updating tests or suites | edit the markdown file, then \`npx check-tests push\` |
|
|
34
|
+
| Creating/updating runs, linking issues | MCP create/update tools |
|
|
35
|
+
| Launching automated or mixed Run remotely on CI | Use npx -y @testomatio/reporter@latest run --remote <profile>, raise error if no CI profiles configured
|
|
36
|
+
| Running automated Run | Use local test runner with testomatio reporter attached to report to current project
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
`;
|
|
40
|
+
const tmsViaProxy = dedent `
|
|
41
|
+
# Testomat.io-first operating rules (highest priority)
|
|
42
|
+
|
|
43
|
+
This agent works on a Testomat.io project. You have TWO sources of truth and they answer different kinds of questions:
|
|
44
|
+
|
|
45
|
+
1. **The pulled markdown workspace (\`cwd\`)** — for **tests** and **suites**. Test content, suite hierarchy, bodies, tags and gherkin scenarios are files. Use \`read\`, \`find\`, \`grep\`, \`ls\` — they are instant and hit no network.
|
|
46
|
+
2. **The \`mcp\` tool** — for **dynamic Testomat.io data**: runs, testruns, plans, labels, linked issues, ims config, ci config, analytics. These do not live as files and MUST come from there.
|
|
47
|
+
|
|
48
|
+
Testomat.io is reached through **one \`mcp\` tool**, not a tool per operation. Call \`mcp({ search: "<what you need>" })\` to find the right operation, then \`mcp({ tool: "<name>", ... })\` to run it. The handful of reads used most often are also registered as their own tools — use those directly when they fit.
|
|
49
|
+
|
|
50
|
+
**Prefer the filesystem for test/suite queries.** Reach for a listing only when the question needs cross-tree metadata (priority, labels, status) the markdown does not carry, or when the workspace looks stale.
|
|
51
|
+
|
|
52
|
+
**Never** ask the user for the **Testomat.io** API token — it's configured. (This does NOT cover secrets the *app under test* needs to run — its own env vars/tokens. If a test run is blocked by one of those, report it.)
|
|
53
|
+
|
|
54
|
+
**Statuses and counts are live** — runs change them at any time. Fresh query results supersede numbers from earlier in the conversation; when they differ, the data changed — report the new snapshot.
|
|
55
|
+
|
|
56
|
+
## Banned moves
|
|
57
|
+
|
|
58
|
+
- Do NOT search for an operation as your first action for a test/suite question — **read the filesystem first** (\`find\`, \`ls\`, \`grep\`, \`read\`). Fall back to a listing only if the metadata you need isn't in the markdown.
|
|
59
|
+
- Do NOT ask the user for the **Testomat.io** API token — it's already configured. (Secrets the app under test needs to run are a different thing — report those if a run is blocked.)
|
|
60
|
+
- Do NOT call \`bash\` / \`find\` / \`grep\` to answer questions about **runs, testruns, plans, labels, linked issues, analytics** — those don't exist as files.
|
|
61
|
+
|
|
62
|
+
## Filesystem vs. Testomat.io cheat sheet
|
|
63
|
+
|
|
64
|
+
| Question is about… | First action |
|
|
65
|
+
|---|---|
|
|
66
|
+
| Test content (code, steps, gherkin, description, file path, tags) | \`read\` / \`find\` / \`grep\` in \`cwd\` |
|
|
67
|
+
| Suite hierarchy / structure / which files exist | \`ls\` / \`find\` |
|
|
68
|
+
| Individual test metadata (priority, status flag, labels) | try filesystem; if missing, \`mcp({ search: "get test" })\` |
|
|
69
|
+
| Runs, testruns, plans, labels, issues, analytics | \`mcp({ search: … })\`, then \`mcp({ tool: … })\` |
|
|
70
|
+
| Creating/updating tests or suites | edit the markdown file, then \`npx check-tests push\` |
|
|
71
|
+
| Creating/updating runs, linking issues | the matching \`mcp\` create/update operation |
|
|
72
|
+
| Launching automated or mixed Run remotely on CI | Use npx -y @testomatio/reporter@latest run --remote <profile>, raise error if no CI profiles configured |
|
|
73
|
+
| Running automated Run | Use local test runner with testomatio reporter attached to report to current project |
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
`;
|
|
77
|
+
const tmsViaCli = dedent `
|
|
78
|
+
# Testomat.io-first operating rules (highest priority)
|
|
79
|
+
|
|
80
|
+
This agent works on a Testomat.io project through the **shell only** — there are no Testomat.io tools in this session.
|
|
81
|
+
|
|
82
|
+
1. **The pulled markdown workspace (\`cwd\`)** — the canonical source for **tests** and **suites**: content, hierarchy, bodies, tags, gherkin scenarios. Use \`read\`, \`find\`, \`grep\`, \`ls\`.
|
|
83
|
+
2. **\`npx check-tests\`** — moves test cases between the markdown and Testomat.io (\`pull\`, \`push\`). It reads its credentials from the environment.
|
|
84
|
+
3. **The REST API through \`bash\`** — for dynamic data (runs, testruns, plans, labels, linked issues, analytics): \`curl -H "Authorization: $TESTOMATIO" "$TESTOMATIO_URL/api/v2/..."\`.
|
|
85
|
+
|
|
86
|
+
**Never** ask the user for the **Testomat.io** API token — it's configured as \`TESTOMATIO\`. (This does NOT cover secrets the *app under test* needs to run — its own env vars/tokens. If a test run is blocked by one of those, report it.)
|
|
87
|
+
|
|
88
|
+
**Statuses and counts are live** — runs change them at any time. Fresh query results supersede numbers from earlier in the conversation.
|
|
89
|
+
|
|
90
|
+
## Banned moves
|
|
91
|
+
|
|
92
|
+
- Do NOT shell out for test content that is already a file in \`cwd\` — read the file.
|
|
93
|
+
- Do NOT invent REST paths or parameters. Read the workspace first; when a call is genuinely needed, keep to documented \`/api/v2\` endpoints.
|
|
94
|
+
- Do NOT ask the user for the **Testomat.io** API token.
|
|
95
|
+
|
|
96
|
+
## Filesystem vs. shell cheat sheet
|
|
97
|
+
|
|
98
|
+
| Question is about… | First action |
|
|
99
|
+
|---|---|
|
|
100
|
+
| Test content (code, steps, gherkin, description, file path, tags) | \`read\` / \`find\` / \`grep\` in \`cwd\` |
|
|
101
|
+
| Suite hierarchy / structure / which files exist | \`ls\` / \`find\` |
|
|
102
|
+
| Runs, testruns, plans, labels, issues, analytics | \`curl\` against \`/api/v2\` |
|
|
103
|
+
| Creating/updating tests or suites | edit the markdown file, then \`npx check-tests push\` |
|
|
104
|
+
| Launching automated or mixed Run remotely on CI | Use npx -y @testomatio/reporter@latest run --remote <profile>, raise error if no CI profiles configured |
|
|
105
|
+
| Running automated Run | Use local test runner with testomatio reporter attached to report to current project |
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
`;
|
|
109
|
+
/**
|
|
110
|
+
* How the agent reaches Testomat.io in this session. The rules are the same;
|
|
111
|
+
* the way to act on them is not, so the harness picks the matching wording.
|
|
112
|
+
*/
|
|
113
|
+
export function testomatioTms(access) {
|
|
114
|
+
if (access === "mcp-proxy")
|
|
115
|
+
return tmsViaProxy;
|
|
116
|
+
if (access === "cli-only")
|
|
117
|
+
return tmsViaCli;
|
|
118
|
+
return tmsViaDirectTools;
|
|
119
|
+
}
|
|
120
|
+
export function testomatioConnection(tokenSlugs, backendUrl, connection, access = "mcp-direct") {
|
|
121
|
+
let urlSuffix = "";
|
|
122
|
+
if (backendUrl)
|
|
123
|
+
urlSuffix = ` (\`${backendUrl}\`)`;
|
|
124
|
+
if (tokenSlugs.length === 0) {
|
|
125
|
+
let project = "";
|
|
126
|
+
if (connection?.projectId)
|
|
127
|
+
project = ` \`${connection.projectId}\``;
|
|
128
|
+
if (connection?.title)
|
|
129
|
+
project += ` ("${connection.title}")`;
|
|
130
|
+
return dedent `
|
|
131
|
+
## Testomat.io Connection (pre-configured)
|
|
132
|
+
|
|
133
|
+
This workspace is linked to the Testomat.io project${project}.
|
|
134
|
+
|
|
135
|
+
The project API key is **already set** as \`TESTOMATIO\` in the environment of every \`bash\` command you run, along with \`TESTOMATIO_URL\`${urlSuffix}. **Never ask the user for a Testomat.io token or API key** — it is already in scope.
|
|
136
|
+
|
|
137
|
+
Push or pull manual test cases with \`npx check-tests\` (or other \`npx @testomatio/*\` commands) — they pick the credentials up from the environment. ${envTokenActions(access)}
|
|
138
|
+
|
|
139
|
+
`;
|
|
140
|
+
}
|
|
141
|
+
if (tokenSlugs.length > 1) {
|
|
142
|
+
const projects = tokenSlugs.map((s) => `- ${s}`).join("\n");
|
|
143
|
+
return dedent `
|
|
144
|
+
## Testomat.io Connection (pre-configured)
|
|
145
|
+
|
|
146
|
+
This session spans several Testomat.io projects, so no single \`TESTOMATIO\` env var is exported — only \`TESTOMATIO_URL\`${urlSuffix}. Each project's **MCP server** carries its own credentials (tool prefix: \`testomatio-<slug>\`) — use those for structured actions. **Never ask the user for a Testomat.io token or API key.** Do not guess tokens for \`check-tests\`; use the app's Sync (Pull/Push in the Workspace panel) to move test cases.
|
|
147
|
+
|
|
148
|
+
Projects pulled into this working directory (one dir per project):
|
|
149
|
+
${projects}
|
|
150
|
+
|
|
151
|
+
`;
|
|
152
|
+
}
|
|
153
|
+
const projects = tokenSlugs.map((s) => `- ${s}`).join("\n");
|
|
154
|
+
return dedent `
|
|
155
|
+
## Testomat.io Connection (pre-configured)
|
|
156
|
+
|
|
157
|
+
The Testomat.io API key is **already set** in the environment as \`TESTOMATIO\`, and the backend URL is set as \`TESTOMATIO_URL\`${urlSuffix}.
|
|
158
|
+
|
|
159
|
+
**Do not ask the user for a Testomat.io token** — it is available to every \`bash\` command you run as the \`TESTOMATIO\` env var.
|
|
160
|
+
|
|
161
|
+
Projects pulled into this working directory (one dir per project):
|
|
162
|
+
${projects}
|
|
163
|
+
|
|
164
|
+
${perProjectActions(access)}
|
|
165
|
+
|
|
166
|
+
When you need to push changes back, run \`npx check-tests push\` (or similar \`npx @testomatio/*\` commands) directly — credentials are already in scope.
|
|
167
|
+
|
|
168
|
+
`;
|
|
169
|
+
}
|
|
170
|
+
export function testomatioNotConnected() {
|
|
171
|
+
return dedent `
|
|
172
|
+
## Testomat.io Connection (not connected)
|
|
173
|
+
|
|
174
|
+
This workspace is not linked to a Testomat.io project and no API key is available in the environment.
|
|
175
|
+
|
|
176
|
+
**Never ask the user to paste a Testomat.io API key or token into the chat.** If a task needs Testomat.io access (pulling or pushing test cases, runs, analytics), tell the user to connect the project first — open **Settings → Testomat.io connection** and link this workspace — then continue once connected. Parts of the task that only touch local files can proceed right away.
|
|
177
|
+
`;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Compact project-settings block for the system prompt, built from the cached
|
|
181
|
+
* `GET /api/v2/{id}/info` payload (`.testeiya/project-info.json`). Only present
|
|
182
|
+
* fields are rendered; labels/tags are capped with a pointer to the full file.
|
|
183
|
+
*/
|
|
184
|
+
export function projectSettings(info) {
|
|
185
|
+
let heading = `**${info.title}** (\`${info.project_id}\`)`;
|
|
186
|
+
if (info.subscription)
|
|
187
|
+
heading += ` — ${info.subscription} plan`;
|
|
188
|
+
const lines = [];
|
|
189
|
+
const stack = [];
|
|
190
|
+
if (info.framework)
|
|
191
|
+
stack.push(`framework: ${info.framework}`);
|
|
192
|
+
if (info.language)
|
|
193
|
+
stack.push(`language: ${info.language}`);
|
|
194
|
+
if (stack.length > 0)
|
|
195
|
+
lines.push(`- Test stack — ${stack.join(", ")}`);
|
|
196
|
+
if (info.repository_url)
|
|
197
|
+
lines.push(`- Repository: ${info.repository_url}`);
|
|
198
|
+
if (info.artifacts_storage_enabled) {
|
|
199
|
+
lines.push("- Artifacts storage is enabled (test runs can attach screenshots/videos/logs)");
|
|
200
|
+
}
|
|
201
|
+
if (info.environments?.length > 0) {
|
|
202
|
+
const shown = info.environments.slice(0, MAX_PROMPT_ENVS);
|
|
203
|
+
lines.push(`- Environments: ${capped(shown, info.environments.length)}`);
|
|
204
|
+
}
|
|
205
|
+
if (info.features?.length > 0) {
|
|
206
|
+
lines.push(`- Enabled features: ${info.features.join(", ")}`);
|
|
207
|
+
}
|
|
208
|
+
if (info.labels?.length > 0) {
|
|
209
|
+
const shown = info.labels
|
|
210
|
+
.slice(0, MAX_PROMPT_LABELS)
|
|
211
|
+
.map((l) => `${l.title} (\`${l.slug}\`)`);
|
|
212
|
+
lines.push(`- Labels defined in this project: ${capped(shown, info.labels.length)}`);
|
|
213
|
+
}
|
|
214
|
+
if (info.tags?.length > 0) {
|
|
215
|
+
const shown = info.tags.slice(0, MAX_PROMPT_TAGS).map((t) => `@${t}`);
|
|
216
|
+
lines.push(`- Tags in use: ${capped(shown, info.tags.length)}`);
|
|
217
|
+
}
|
|
218
|
+
if (info.ci_profiles?.length > 0) {
|
|
219
|
+
const profiles = info.ci_profiles.map((p) => {
|
|
220
|
+
if (p.service)
|
|
221
|
+
return `"${p.profile_name}" (${p.service})`;
|
|
222
|
+
return `"${p.profile_name}"`;
|
|
223
|
+
});
|
|
224
|
+
lines.push(`- CI profiles configured (runs can be triggered through them): ${profiles.join(", ")}`);
|
|
225
|
+
}
|
|
226
|
+
let body = heading;
|
|
227
|
+
if (lines.length > 0)
|
|
228
|
+
body += `\n\n${lines.join("\n")}`;
|
|
229
|
+
return dedent `
|
|
230
|
+
## Project Settings (Testomat.io)
|
|
231
|
+
|
|
232
|
+
${body}
|
|
233
|
+
|
|
234
|
+
Use these when creating or editing tests: assign only labels that exist here, reuse the existing tags/environments before inventing new ones, and match the project's framework/language when generating automated tests. The full configuration JSON (every label, tag, and CI profile config) is cached at \`.testeiya/project-info.json\` — read that file when you need the complete lists.
|
|
235
|
+
`;
|
|
236
|
+
}
|
|
237
|
+
// How to act on a connection whose token comes from the environment.
|
|
238
|
+
function envTokenActions(access) {
|
|
239
|
+
if (access === "mcp-proxy") {
|
|
240
|
+
return "For structured actions (list/create/update tests, runs, labels, suites, etc.) prefer the `mcp` tool: `mcp({ search })` to find an operation, `mcp({ tool })` to run it.";
|
|
241
|
+
}
|
|
242
|
+
if (access === "cli-only") {
|
|
243
|
+
return "For runs, plans, labels and analytics use `curl` against `/api/v2` — there are no Testomat.io tools in this session.";
|
|
244
|
+
}
|
|
245
|
+
return "If `testomatio-*` MCP tools are available, prefer them for structured actions (list/create/update tests, runs, labels, suites, etc.).";
|
|
246
|
+
}
|
|
247
|
+
// The same, where the harness runs one MCP server per pulled project.
|
|
248
|
+
function perProjectActions(access) {
|
|
249
|
+
if (access === "mcp-proxy") {
|
|
250
|
+
return "The **Testomat.io MCP server** is also connected, reached through the `mcp` tool (`mcp({ search })` to find an operation, `mcp({ tool })` to run it). Prefer it for structured actions (list/create/update tests, runs, labels, suites, etc.) — those are typed, safer, and faster than shell calls. Fall back to `bash` + `check-tests` only for things it does not cover (e.g. pulling full markdown files).";
|
|
251
|
+
}
|
|
252
|
+
if (access === "cli-only") {
|
|
253
|
+
return "There are no Testomat.io tools in this session: use `npx check-tests` for test cases and `curl` against `/api/v2` for runs, plans and labels.";
|
|
254
|
+
}
|
|
255
|
+
return "The **Testomat.io MCP server** is also auto-connected, one instance per project (tool prefix: `testomatio-<slug>`). Prefer MCP tools for structured actions (list/create/update tests, runs, labels, suites, etc.) — they are typed, safer, and faster than shell calls. Fall back to `bash` + `check-tests` only for things the MCP does not cover (e.g. pulling full markdown files).";
|
|
256
|
+
}
|
|
257
|
+
function capped(shown, total) {
|
|
258
|
+
let suffix = "";
|
|
259
|
+
if (total > shown.length) {
|
|
260
|
+
suffix = ` … and ${total - shown.length} more (see \`.testeiya/project-info.json\`)`;
|
|
261
|
+
}
|
|
262
|
+
return shown.join(", ") + suffix;
|
|
263
|
+
}
|
|
264
|
+
//# sourceMappingURL=testomatio.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testomatio.js","sourceRoot":"","sources":["../../prompt/testomatio.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAG5B,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAC7B,MAAM,eAAe,GAAG,EAAE,CAAC;AAC3B,MAAM,eAAe,GAAG,EAAE,CAAC;AAE3B,MAAM,iBAAiB,GAAG,MAAM,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkC/B,CAAC;AAEF,MAAM,WAAW,GAAG,MAAM,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCzB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AAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;AACnC,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { existsSync } from 'node:fs';
|
|
2
|
+
import { delimiter, join } from 'node:path';
|
|
3
|
+
import dedent from 'dedent';
|
|
4
|
+
/**
|
|
5
|
+
* The tools every harness gives the agent. Anything a particular harness adds —
|
|
6
|
+
* a question tool, a browser it can drive for a watching user — arrives as an
|
|
7
|
+
* extra bullet from that harness, since the agent must not be told about a tool
|
|
8
|
+
* it does not have.
|
|
9
|
+
*/
|
|
10
|
+
export function tools(options) {
|
|
11
|
+
const extra = (options?.extra ?? []).join('');
|
|
12
|
+
let routing = ' - GitHub: issues and projects through MCP.';
|
|
13
|
+
if (onPath('gh')) {
|
|
14
|
+
routing +=
|
|
15
|
+
'\n - Pull requests and repositories: `gh` in `bash`. When a PR question needs issue detail, query the issue through MCP — never infer it from a PR title.';
|
|
16
|
+
}
|
|
17
|
+
if (onPath('acli')) {
|
|
18
|
+
routing +=
|
|
19
|
+
'\n - Jira in bulk (many issues at once), boards, sprints and filters: `acli` in `bash`, per the `atlassian` skill. Confluence and attachments have no `acli` command and stay on MCP.';
|
|
20
|
+
}
|
|
21
|
+
if (onPath('glab')) {
|
|
22
|
+
routing +=
|
|
23
|
+
'\n - GitLab releases, labels, milestones, snippets, CI artifacts, and any endpoint with no MCP tool: `glab` in `bash`. Issues, merge requests, pipelines and code search stay on MCP, which covers them well.';
|
|
24
|
+
}
|
|
25
|
+
return dedent `
|
|
26
|
+
<available-tools>
|
|
27
|
+
You have these tools available:
|
|
28
|
+
* **Read operations (use freely):** \`read\`, \`grep\`, \`ls\`.
|
|
29
|
+
- Use these aggressively to understand the system under test before proposing changes.
|
|
30
|
+
* **Write operations (restricted):** \`write\`, \`edit\`, \`bash\`.
|
|
31
|
+
- Requires explicit user confirmation for destructive or shared-state actions.
|
|
32
|
+
${extra} * **Internal Skills:** For QA-related tasks, check available skills first and prefer using them when applicable.
|
|
33
|
+
* **External Integrations:** Use MCP tools when they provide superior data or specialized integrations.
|
|
34
|
+
- Primary MCP (Testomat.io): Use Testomat.io MCP tools to extend functionality.
|
|
35
|
+
- Secondary MCP (Jira, GitHub, etc.): Invoke only when user explicitly asks or when remote context exploration is required.
|
|
36
|
+
${routing}
|
|
37
|
+
|
|
38
|
+
<tool-governance>
|
|
39
|
+
* **Prioritize Specificity:** Use \`read\` instead of \`cat\`, and \`edit\` instead of \`sed\`. Dedicated tools provide better error tracking and safety.
|
|
40
|
+
* **Parallel Execution:** Call independent tools in parallel to minimize latency. Sequential calls are reserved for operations with data dependencies.
|
|
41
|
+
* **Atomic Updates:** Mark tasks as complete in your internal state immediately upon execution. Do not batch status updates.
|
|
42
|
+
* **Analysis-First:** Use your own reasoning to guide tool selection. Do not wait for step-by-step instructions if discovery tools can provide the answer.
|
|
43
|
+
</tool-governance>
|
|
44
|
+
</available-tools>
|
|
45
|
+
`;
|
|
46
|
+
}
|
|
47
|
+
/** Is this CLI on PATH? Never tell the agent to use a binary this machine lacks. */
|
|
48
|
+
function onPath(bin) {
|
|
49
|
+
for (const dir of (process.env.PATH ?? '').split(delimiter)) {
|
|
50
|
+
if (!dir)
|
|
51
|
+
continue;
|
|
52
|
+
if (existsSync(join(dir, bin)) || existsSync(join(dir, `${bin}.exe`)))
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../prompt/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE5C,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B;;;;;GAKG;AACH,MAAM,UAAU,KAAK,CAAC,OAA8B;IAClD,MAAM,KAAK,GAAG,CAAC,OAAO,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC9C,IAAI,OAAO,GAAG,gDAAgD,CAAC;IAC/D,IAAI,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;QACjB,OAAO;YACL,8JAA8J,CAAC;IACnK,CAAC;IACD,IAAI,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QACnB,OAAO;YACL,0LAA0L,CAAC;IAC/L,CAAC;IACD,IAAI,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QACnB,OAAO;YACL,kNAAkN,CAAC;IACvN,CAAC;IACD,OAAO,MAAM,CAAA;;;;;;;EAOb,KAAK;;;;EAIL,OAAO;;;;;;;;;CASR,CAAC;AACF,CAAC;AAED,oFAAoF;AACpF,SAAS,MAAM,CAAC,GAAW;IACzB,KAAK,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC;QAC5D,IAAI,CAAC,GAAG;YAAE,SAAS;QACnB,IAAI,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,CAAC,CAAC;YAAE,OAAO,IAAI,CAAC;IACrF,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The per-project config directory name, as the agent knows it. Part of the
|
|
3
|
+
* vocabulary the system prompt teaches — every path the prompt names below it
|
|
4
|
+
* (`.testeiya/manual-tests`, `.testeiya/project-info.json`, …) is built from
|
|
5
|
+
* this constant, so the prompt and the harness can never disagree about it.
|
|
6
|
+
*/
|
|
7
|
+
export const TESTEIYA_DIR_NAME = ".testeiya";
|
|
8
|
+
//# sourceMappingURL=vocab.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vocab.js","sourceRoot":"","sources":["../../prompt/vocab.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,WAAW,CAAC"}
|