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
package/dist/src/run.js
ADDED
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import { existsSync, statSync } from "node:fs";
|
|
2
|
+
import { readFile } from "node:fs/promises";
|
|
3
|
+
import { chalkStderr as c } from "chalk";
|
|
4
|
+
import { hasTestomatio } from "./mcp.js";
|
|
5
|
+
import { UsageError } from "./model.js";
|
|
6
|
+
import { deliver, markdownPath } from "./output.js";
|
|
7
|
+
import { shortId } from "./sessions.js";
|
|
8
|
+
import { createTesteiyaSession } from "./session.js";
|
|
9
|
+
export async function runPrint(options) {
|
|
10
|
+
const started = Date.now();
|
|
11
|
+
const result = {};
|
|
12
|
+
const outputPath = markdownPath(options.destinations);
|
|
13
|
+
const stampBefore = fileStamp(outputPath);
|
|
14
|
+
const cwd = process.cwd();
|
|
15
|
+
let created;
|
|
16
|
+
try {
|
|
17
|
+
created = await createTesteiyaSession({
|
|
18
|
+
cwd,
|
|
19
|
+
result,
|
|
20
|
+
sessionManager: options.sessionManager,
|
|
21
|
+
model: options.model,
|
|
22
|
+
outputFile: outputPath,
|
|
23
|
+
brief: options.brief,
|
|
24
|
+
...connectionOptions(),
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
catch (err) {
|
|
28
|
+
// A misconfigured model or missing key is bad usage (exit 2), not a failed
|
|
29
|
+
// run — cli.ts turns it into that. Everything else is a failed run.
|
|
30
|
+
if (err instanceof UsageError)
|
|
31
|
+
throw err;
|
|
32
|
+
note(c.red(` ✗ ${errorText(err)}`));
|
|
33
|
+
return 1;
|
|
34
|
+
}
|
|
35
|
+
const { session, model, skills } = created;
|
|
36
|
+
process.on("SIGINT", () => {
|
|
37
|
+
note(c.yellow("\n ⨯ interrupted"));
|
|
38
|
+
void session.abort().finally(() => process.exit(130));
|
|
39
|
+
});
|
|
40
|
+
// With nothing but stdout to write to, the answer is the output: one line of
|
|
41
|
+
// run info on stderr, no banner in front of it.
|
|
42
|
+
const verbose = options.destinations.some((destination) => destination.kind !== "stdout");
|
|
43
|
+
if (verbose) {
|
|
44
|
+
note(` Testeiya ${c.dim("·")} ${model} ${c.dim("·")} ${cwd}`);
|
|
45
|
+
note(c.dim(` ${skills} skills`));
|
|
46
|
+
for (const line of describe(options.destinations))
|
|
47
|
+
note(c.dim(` → ${line}`));
|
|
48
|
+
note("");
|
|
49
|
+
}
|
|
50
|
+
const run = watchRun(session);
|
|
51
|
+
await promptOnce(session, options.prompt, run);
|
|
52
|
+
const report = await collectReport(session, run, outputPath, stampBefore, result.status);
|
|
53
|
+
run.unsubscribe();
|
|
54
|
+
if (verbose)
|
|
55
|
+
note("");
|
|
56
|
+
let code = exitCode(run.error, result.status, Boolean(outputPath), report);
|
|
57
|
+
const envelope = {
|
|
58
|
+
status: result.status ?? (code === 0 ? "pass" : "fail"),
|
|
59
|
+
reason: result.reason ?? run.error,
|
|
60
|
+
report,
|
|
61
|
+
reportPath: outputPath ?? null,
|
|
62
|
+
model,
|
|
63
|
+
steps: run.steps,
|
|
64
|
+
tokens: { input: run.input, output: run.output },
|
|
65
|
+
durationMs: Date.now() - started,
|
|
66
|
+
sessionId: options.sessionId ?? null,
|
|
67
|
+
};
|
|
68
|
+
// Nobody is watching this run, so the status goes above the answer rather
|
|
69
|
+
// than after it: the last thing on screen should be the agent's output.
|
|
70
|
+
summarize({ run, result, envelope, started });
|
|
71
|
+
if (willPrint(options.destinations, report)) {
|
|
72
|
+
note(c.dim(` ${"─".repeat(rule())}`));
|
|
73
|
+
note("");
|
|
74
|
+
}
|
|
75
|
+
const failure = await deliver(options.destinations, envelope);
|
|
76
|
+
if (failure) {
|
|
77
|
+
note(` ${c.red(`✗ ${failure}`)}`);
|
|
78
|
+
// The report is worth more than the destination: never lose it.
|
|
79
|
+
if (report)
|
|
80
|
+
process.stdout.write(report);
|
|
81
|
+
code = 1;
|
|
82
|
+
}
|
|
83
|
+
await session.dispose();
|
|
84
|
+
return code;
|
|
85
|
+
}
|
|
86
|
+
export function exitCode(error, status, wantsReport, report) {
|
|
87
|
+
if (error)
|
|
88
|
+
return 1;
|
|
89
|
+
if (status === "fail")
|
|
90
|
+
return 1;
|
|
91
|
+
if (wantsReport && !report)
|
|
92
|
+
return 1;
|
|
93
|
+
return 0;
|
|
94
|
+
}
|
|
95
|
+
// A tool name alone says the run is alive and nothing else. The command or the
|
|
96
|
+
// path is what a watcher actually reads.
|
|
97
|
+
function target(args) {
|
|
98
|
+
if (!args || typeof args !== "object")
|
|
99
|
+
return "";
|
|
100
|
+
const values = args;
|
|
101
|
+
const raw = text(values.command) || text(values.pattern) || text(values.path);
|
|
102
|
+
if (!raw)
|
|
103
|
+
return "";
|
|
104
|
+
let line = raw.split("\n")[0].trim();
|
|
105
|
+
const cwd = `${process.cwd()}/`;
|
|
106
|
+
if (line.startsWith(cwd))
|
|
107
|
+
line = line.slice(cwd.length);
|
|
108
|
+
if (line.length <= 64)
|
|
109
|
+
return line;
|
|
110
|
+
return `${line.slice(0, 63)}…`;
|
|
111
|
+
}
|
|
112
|
+
function text(value) {
|
|
113
|
+
if (typeof value === "string")
|
|
114
|
+
return value;
|
|
115
|
+
return "";
|
|
116
|
+
}
|
|
117
|
+
function pad(name) {
|
|
118
|
+
return name.padEnd(6);
|
|
119
|
+
}
|
|
120
|
+
function rule() {
|
|
121
|
+
const width = process.stderr.columns ?? 60;
|
|
122
|
+
return Math.max(20, Math.min(width - 4, 68));
|
|
123
|
+
}
|
|
124
|
+
// Only rule off the status when something actually follows it on stdout.
|
|
125
|
+
function willPrint(destinations, report) {
|
|
126
|
+
return destinations.some((destination) => {
|
|
127
|
+
if (destination.kind === "json" && !destination.path)
|
|
128
|
+
return true;
|
|
129
|
+
return destination.kind === "stdout" && Boolean(report);
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
function describe(destinations) {
|
|
133
|
+
const lines = [];
|
|
134
|
+
for (const destination of destinations) {
|
|
135
|
+
if (destination.kind === "markdown")
|
|
136
|
+
lines.push(destination.path);
|
|
137
|
+
if (destination.kind === "json")
|
|
138
|
+
lines.push(destination.path ?? "stdout (json)");
|
|
139
|
+
if (destination.kind === "gh")
|
|
140
|
+
lines.push(`pull request #${destination.pr}`);
|
|
141
|
+
}
|
|
142
|
+
return lines;
|
|
143
|
+
}
|
|
144
|
+
// A project token in the environment is the CLI's whole notion of a connection:
|
|
145
|
+
// no slugs, nothing pulled per project. `tokenAvailable` renders the section
|
|
146
|
+
// that says exactly that, and the TMS rules alongside it.
|
|
147
|
+
function connectionOptions() {
|
|
148
|
+
if (!hasTestomatio())
|
|
149
|
+
return {};
|
|
150
|
+
return {
|
|
151
|
+
connection: { tokenAvailable: true },
|
|
152
|
+
backendUrl: process.env.TESTOMATIO_URL,
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
function watchRun(session) {
|
|
156
|
+
const run = { steps: 0, input: 0, output: 0, error: null, unsubscribe: () => { } };
|
|
157
|
+
run.unsubscribe = session.subscribe((event) => {
|
|
158
|
+
if (event.type === "tool_execution_start") {
|
|
159
|
+
run.steps++;
|
|
160
|
+
note(` ${c.dim("▸")} ${c.cyan(pad(event.toolName))} ${c.dim(target(event.args))}`);
|
|
161
|
+
}
|
|
162
|
+
if (event.type === "tool_execution_end" && event.isError) {
|
|
163
|
+
note(` ${c.red("✗")} ${c.red(pad(event.toolName))}`);
|
|
164
|
+
}
|
|
165
|
+
if (event.type === "turn_end" && event.message.role === "assistant") {
|
|
166
|
+
run.input += event.message.usage.input;
|
|
167
|
+
run.output += event.message.usage.output;
|
|
168
|
+
run.error = null;
|
|
169
|
+
if (event.message.stopReason === "error") {
|
|
170
|
+
run.error = event.message.errorMessage || "The model request failed.";
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
if (event.type === "agent_end" && event.willRetry) {
|
|
174
|
+
run.error = null;
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
return run;
|
|
178
|
+
}
|
|
179
|
+
async function promptOnce(session, text, run) {
|
|
180
|
+
try {
|
|
181
|
+
await session.prompt(text, { expandPromptTemplates: false });
|
|
182
|
+
}
|
|
183
|
+
catch (err) {
|
|
184
|
+
run.error = errorText(err);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
async function collectReport(session, run, path, before, status) {
|
|
188
|
+
if (run.error)
|
|
189
|
+
return null;
|
|
190
|
+
if (!path)
|
|
191
|
+
return lastAssistantText(session);
|
|
192
|
+
const report = await readIfFresh(path, before);
|
|
193
|
+
if (report)
|
|
194
|
+
return report;
|
|
195
|
+
if (status === "fail")
|
|
196
|
+
return null;
|
|
197
|
+
return nudgeForReport(session, run, path, before);
|
|
198
|
+
}
|
|
199
|
+
async function nudgeForReport(session, run, path, before) {
|
|
200
|
+
note(c.yellow(" ⟳ report missing, asking once more"));
|
|
201
|
+
await promptOnce(session, `You have not written the report to ${path} yet. Write it now with the write tool: ` +
|
|
202
|
+
`the complete report in markdown, nothing else.`, run);
|
|
203
|
+
if (run.error)
|
|
204
|
+
return null;
|
|
205
|
+
const report = await readIfFresh(path, before);
|
|
206
|
+
if (report)
|
|
207
|
+
return report;
|
|
208
|
+
run.error = `no report written to ${path}`;
|
|
209
|
+
return null;
|
|
210
|
+
}
|
|
211
|
+
function summarize(s) {
|
|
212
|
+
const parts = [elapsed(s.started), modelName(s.envelope.model)];
|
|
213
|
+
if (s.run.steps === 1)
|
|
214
|
+
parts.push("1 step");
|
|
215
|
+
if (s.run.steps > 1)
|
|
216
|
+
parts.push(`${s.run.steps} steps`);
|
|
217
|
+
parts.push(`tokens ${tokens(s.run.input)} in / ${tokens(s.run.output)} out`);
|
|
218
|
+
if (s.envelope.sessionId)
|
|
219
|
+
parts.push(`--resume ${shortId(s.envelope.sessionId)}`);
|
|
220
|
+
const stats = parts.join(` ${c.dim("·")} `);
|
|
221
|
+
if (s.run.error) {
|
|
222
|
+
note(` ${c.red("✗ failed")} ${c.dim("·")} ${stats}`);
|
|
223
|
+
note(` ${c.red(s.run.error)}`);
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
if (s.result.status === "fail") {
|
|
227
|
+
note(` ${c.red("✗ fail")} ${c.dim("·")} ${stats}`);
|
|
228
|
+
if (s.result.reason)
|
|
229
|
+
note(` ${c.red(s.result.reason)}`);
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
note(` ${c.green("✓")} ${stats}`);
|
|
233
|
+
}
|
|
234
|
+
// The provider and its namespace are in the envelope; the line only needs the
|
|
235
|
+
// name you would recognise.
|
|
236
|
+
function modelName(id) {
|
|
237
|
+
return id.slice(id.lastIndexOf("/") + 1);
|
|
238
|
+
}
|
|
239
|
+
async function readIfFresh(path, before) {
|
|
240
|
+
if (fileStamp(path) === before)
|
|
241
|
+
return null;
|
|
242
|
+
const text = await readFile(path, "utf8").catch(() => "");
|
|
243
|
+
if (!text.trim())
|
|
244
|
+
return null;
|
|
245
|
+
if (text.endsWith("\n"))
|
|
246
|
+
return text;
|
|
247
|
+
return `${text}\n`;
|
|
248
|
+
}
|
|
249
|
+
function fileStamp(path) {
|
|
250
|
+
if (!path || !existsSync(path))
|
|
251
|
+
return null;
|
|
252
|
+
const stat = statSync(path);
|
|
253
|
+
return `${stat.mtimeMs}:${stat.size}`;
|
|
254
|
+
}
|
|
255
|
+
function lastAssistantText(session) {
|
|
256
|
+
const messages = session.state.messages ?? [];
|
|
257
|
+
for (let i = messages.length - 1; i >= 0; i--) {
|
|
258
|
+
const message = messages[i];
|
|
259
|
+
if (message?.role !== "assistant")
|
|
260
|
+
continue;
|
|
261
|
+
const parts = [];
|
|
262
|
+
for (const part of message.content) {
|
|
263
|
+
if (part.type === "text")
|
|
264
|
+
parts.push(part.text);
|
|
265
|
+
}
|
|
266
|
+
const text = parts.join("").trim();
|
|
267
|
+
if (text)
|
|
268
|
+
return `${text}\n`;
|
|
269
|
+
}
|
|
270
|
+
return null;
|
|
271
|
+
}
|
|
272
|
+
function errorText(err) {
|
|
273
|
+
if (err instanceof Error)
|
|
274
|
+
return err.message;
|
|
275
|
+
return String(err);
|
|
276
|
+
}
|
|
277
|
+
function note(line) {
|
|
278
|
+
process.stderr.write(`${line}\n`);
|
|
279
|
+
}
|
|
280
|
+
function elapsed(started) {
|
|
281
|
+
const seconds = Math.round((Date.now() - started) / 1000);
|
|
282
|
+
if (seconds < 60)
|
|
283
|
+
return `${seconds}s`;
|
|
284
|
+
return `${Math.floor(seconds / 60)}m ${seconds % 60}s`;
|
|
285
|
+
}
|
|
286
|
+
function tokens(count) {
|
|
287
|
+
if (count < 1000)
|
|
288
|
+
return String(count);
|
|
289
|
+
return `${(count / 1000).toFixed(1)}k`;
|
|
290
|
+
}
|
|
291
|
+
//# sourceMappingURL=run.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../src/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,WAAW,IAAI,CAAC,EAAE,MAAM,OAAO,CAAC;AAGzC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAsC,MAAM,aAAa,CAAC;AACxF,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAGrD,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,OAAqB;IAClD,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAC3B,MAAM,MAAM,GAAc,EAAE,CAAC;IAC7B,MAAM,UAAU,GAAG,YAAY,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,MAAM,WAAW,GAAG,SAAS,CAAC,UAAU,CAAC,CAAC;IAC1C,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAE1B,IAAI,OAAO,CAAC;IACZ,IAAI,CAAC;QACH,OAAO,GAAG,MAAM,qBAAqB,CAAC;YACpC,GAAG;YACH,MAAM;YACN,cAA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CAAC;AACzD,CAAC;AAED,SAAS,MAAM,CAAC,KAAa;IAC3B,IAAI,KAAK,GAAG,IAAI;QAAE,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IACvC,OAAO,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC;AACzC,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { join } from "node:path";
|
|
2
|
+
import { createAgentSession, DefaultResourceLoader, ModelRuntime, SettingsManager, } from "@earendil-works/pi-coding-agent";
|
|
3
|
+
import { buildSystemPrompt } from "../prompt/index.js";
|
|
4
|
+
import { PACKAGE_ROOT, PI_STATE_DIR, TESTEIYA_HOME } from "./env.js";
|
|
5
|
+
import { hasMcp, tmsAccess } from "./mcp.js";
|
|
6
|
+
import { applyEnvKeys, resolveModel } from "./model.js";
|
|
7
|
+
import { createSetResultTool } from "./result.js";
|
|
8
|
+
import { sessionModel } from "./sessions.js";
|
|
9
|
+
// From the package root, never this file's own directory: `../skills` would
|
|
10
|
+
// resolve to dist/skills, and the filter below would silently drop everything.
|
|
11
|
+
export const BUNDLED_SKILLS_DIR = join(PACKAGE_ROOT, "skills");
|
|
12
|
+
const MCP_EXTENSION = join(import.meta.dirname, "mcp-extension.js");
|
|
13
|
+
/** The one runtime factory, so every command reads the same auth. */
|
|
14
|
+
export async function createRuntime() {
|
|
15
|
+
const runtime = await ModelRuntime.create({
|
|
16
|
+
authPath: join(TESTEIYA_HOME, "auth.json"),
|
|
17
|
+
modelsPath: null,
|
|
18
|
+
});
|
|
19
|
+
await applyEnvKeys(runtime);
|
|
20
|
+
return runtime;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The loader every command shares, so `doctor` reports the skills a run would
|
|
24
|
+
* actually load. A filter, not a loader: pi also discovers skills from the
|
|
25
|
+
* checkout it is pointed at (`.agents/skills`, `.pi/skills`, and the user's
|
|
26
|
+
* own), and an arbitrary CI clone must not be able to hand the model its own.
|
|
27
|
+
*/
|
|
28
|
+
export function createLoader(options) {
|
|
29
|
+
return new DefaultResourceLoader({
|
|
30
|
+
cwd: options.cwd,
|
|
31
|
+
agentDir: PI_STATE_DIR,
|
|
32
|
+
settingsManager: options.settingsManager,
|
|
33
|
+
additionalSkillPaths: [BUNDLED_SKILLS_DIR],
|
|
34
|
+
additionalExtensionPaths: options.extensionPaths,
|
|
35
|
+
systemPromptOverride: options.systemPrompt,
|
|
36
|
+
skillsOverride: (current) => ({
|
|
37
|
+
skills: current.skills.filter((s) => s.baseDir.startsWith(BUNDLED_SKILLS_DIR)),
|
|
38
|
+
diagnostics: current.diagnostics,
|
|
39
|
+
}),
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
export async function createTesteiyaSession(options) {
|
|
43
|
+
const runtime = await createRuntime();
|
|
44
|
+
const model = resolveModel(runtime, options.model, sessionModel(options.sessionManager));
|
|
45
|
+
const settingsManager = SettingsManager.inMemory();
|
|
46
|
+
const extensionPaths = [];
|
|
47
|
+
if (hasMcp())
|
|
48
|
+
extensionPaths.push(MCP_EXTENSION);
|
|
49
|
+
const loader = createLoader({
|
|
50
|
+
cwd: options.cwd,
|
|
51
|
+
settingsManager,
|
|
52
|
+
extensionPaths,
|
|
53
|
+
systemPrompt: () => buildSystemPrompt({
|
|
54
|
+
cwd: options.cwd,
|
|
55
|
+
mode: "print",
|
|
56
|
+
tms: tmsAccess(),
|
|
57
|
+
tokens: options.tokens,
|
|
58
|
+
connection: options.connection,
|
|
59
|
+
backendUrl: options.backendUrl,
|
|
60
|
+
outputFile: options.outputFile,
|
|
61
|
+
brief: options.brief,
|
|
62
|
+
}),
|
|
63
|
+
});
|
|
64
|
+
await loader.reload();
|
|
65
|
+
const { session } = await createAgentSession({
|
|
66
|
+
cwd: options.cwd,
|
|
67
|
+
agentDir: PI_STATE_DIR,
|
|
68
|
+
model,
|
|
69
|
+
modelRuntime: runtime,
|
|
70
|
+
resourceLoader: loader,
|
|
71
|
+
settingsManager,
|
|
72
|
+
sessionManager: options.sessionManager,
|
|
73
|
+
customTools: [createSetResultTool(options.result)],
|
|
74
|
+
// Extensions start their runtime on this event. Without it the MCP adapter
|
|
75
|
+
// registers its tools but never connects, and every call answers
|
|
76
|
+
// "MCP not initialized".
|
|
77
|
+
sessionStartEvent: { type: "session_start", reason: "startup" },
|
|
78
|
+
});
|
|
79
|
+
// Starts the extension runtime and fires session_start. createAgentSession
|
|
80
|
+
// does not do this — pi's own modes do — and without it an extension is
|
|
81
|
+
// constructed but never initialized: the MCP adapter registers its tools and
|
|
82
|
+
// then answers "MCP not initialized" for every call.
|
|
83
|
+
await session.bindExtensions({
|
|
84
|
+
mode: "print",
|
|
85
|
+
onError: (err) => {
|
|
86
|
+
process.stderr.write(` extension error (${err.extensionPath}): ${err.error}\n`);
|
|
87
|
+
},
|
|
88
|
+
});
|
|
89
|
+
const skills = loader.getSkills().skills.length;
|
|
90
|
+
return { session, model: `${model.provider}/${model.id}`, skills };
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=session.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../src/session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,YAAY,EACZ,eAAe,GAGhB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAkB,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe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,cAAc,CAAC;QAC3B,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE;YACf,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,sBAAsB,GAAG,CAAC,aAAa,MAAM,GAAG,CAAC,KAAK,IAAI,CAAC,CAAC;QACnF,CAAC;KACF,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC;IAChD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC;AACrE,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { buildSessionContext, SessionManager } from "@earendil-works/pi-coding-agent";
|
|
2
|
+
/**
|
|
3
|
+
* Sessions are pi's, not ours: it stores, lists and reopens them under
|
|
4
|
+
* PI_STATE_DIR. `--no-session` keeps a run entirely in memory.
|
|
5
|
+
*/
|
|
6
|
+
export async function openSessionManager(cwd, args) {
|
|
7
|
+
if (args.noSession)
|
|
8
|
+
return SessionManager.inMemory(cwd);
|
|
9
|
+
if (args.resume) {
|
|
10
|
+
const sessions = await SessionManager.list(cwd);
|
|
11
|
+
const matched = sessions.filter((s) => s.id.startsWith(args.resume ?? ""));
|
|
12
|
+
if (matched.length === 0)
|
|
13
|
+
return `no session "${args.resume}" in this folder`;
|
|
14
|
+
if (matched.length > 1) {
|
|
15
|
+
const ids = matched.map((s) => shortId(s.id)).join(", ");
|
|
16
|
+
return `"${args.resume}" matches ${matched.length} sessions: ${ids}`;
|
|
17
|
+
}
|
|
18
|
+
return SessionManager.open(matched[0].path);
|
|
19
|
+
}
|
|
20
|
+
if (args.continueLast)
|
|
21
|
+
return SessionManager.continueRecent(cwd);
|
|
22
|
+
return SessionManager.create(cwd);
|
|
23
|
+
}
|
|
24
|
+
/** The model a resumed session was last running, so `-c` needs no --model. */
|
|
25
|
+
export function sessionModel(manager) {
|
|
26
|
+
const entries = manager.getEntries();
|
|
27
|
+
if (entries.length === 0)
|
|
28
|
+
return null;
|
|
29
|
+
return buildSessionContext(entries, manager.getLeafId()).model;
|
|
30
|
+
}
|
|
31
|
+
export async function runSessions(cwd, json) {
|
|
32
|
+
const sessions = await SessionManager.list(cwd);
|
|
33
|
+
if (json) {
|
|
34
|
+
const rows = sessions.map((s) => ({
|
|
35
|
+
id: s.id,
|
|
36
|
+
name: s.name ?? null,
|
|
37
|
+
modified: s.modified.toISOString(),
|
|
38
|
+
messages: s.messageCount,
|
|
39
|
+
first: s.firstMessage,
|
|
40
|
+
}));
|
|
41
|
+
process.stdout.write(`${JSON.stringify({ sessions: rows }, null, 2)}\n`);
|
|
42
|
+
return 0;
|
|
43
|
+
}
|
|
44
|
+
if (sessions.length === 0) {
|
|
45
|
+
process.stdout.write(" no saved sessions in this folder\n");
|
|
46
|
+
return 0;
|
|
47
|
+
}
|
|
48
|
+
process.stdout.write("\n");
|
|
49
|
+
for (const session of sessions) {
|
|
50
|
+
const label = session.name ?? session.firstMessage.slice(0, 60);
|
|
51
|
+
const when = session.modified.toISOString().slice(0, 16).replace("T", " ");
|
|
52
|
+
process.stdout.write(` ${shortId(session.id)} ${when} ${session.messageCount} msg ${label}\n`);
|
|
53
|
+
}
|
|
54
|
+
process.stdout.write("\n Continue one with: testeiya task \"...\" --resume <id>\n\n");
|
|
55
|
+
return 0;
|
|
56
|
+
}
|
|
57
|
+
/** Long enough to clear the UUIDv7 timestamp prefix, which repeats per minute. */
|
|
58
|
+
export function shortId(id) {
|
|
59
|
+
return id.slice(0, 13);
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=sessions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessions.js","sourceRoot":"","sources":["../../src/sessions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEtF;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