@empiricalrun/test-gen 0.77.0 → 0.78.1
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/CHANGELOG.md +25 -0
- package/dist/actions/index.d.ts +0 -1
- package/dist/actions/index.d.ts.map +1 -1
- package/dist/actions/index.js +0 -10
- package/dist/agent/base/index.d.ts +28 -19
- package/dist/agent/base/index.d.ts.map +1 -1
- package/dist/agent/base/index.js +30 -17
- package/dist/agent/browsing/run.d.ts +1 -1
- package/dist/agent/browsing/run.d.ts.map +1 -1
- package/dist/agent/chat/agent-loop.d.ts +5 -5
- package/dist/agent/chat/agent-loop.d.ts.map +1 -1
- package/dist/agent/chat/exports.d.ts +3 -3
- package/dist/agent/chat/exports.d.ts.map +1 -1
- package/dist/agent/chat/exports.js +5 -11
- package/dist/agent/chat/index.d.ts +4 -3
- package/dist/agent/chat/index.d.ts.map +1 -1
- package/dist/agent/chat/index.js +10 -5
- package/dist/agent/chat/models.d.ts +1 -1
- package/dist/agent/chat/models.d.ts.map +1 -1
- package/dist/agent/chat/models.js +3 -3
- package/dist/agent/chat/prompt/pw-utils-docs.d.ts +1 -1
- package/dist/agent/chat/prompt/pw-utils-docs.d.ts.map +1 -1
- package/dist/agent/chat/prompt/pw-utils-docs.js +42 -0
- package/dist/agent/chat/prompt/repo.d.ts +2 -2
- package/dist/agent/chat/prompt/repo.d.ts.map +1 -1
- package/dist/agent/chat/prompt/repo.js +2 -2
- package/dist/agent/chat/state.d.ts +13 -25
- package/dist/agent/chat/state.d.ts.map +1 -1
- package/dist/agent/chat/state.js +10 -60
- package/dist/agent/chat/utils.d.ts +5 -5
- package/dist/agent/chat/utils.d.ts.map +1 -1
- package/dist/agent/cli.d.ts +2 -2
- package/dist/agent/cli.d.ts.map +1 -1
- package/dist/agent/cli.js +17 -31
- package/dist/agent/code-review/index.d.ts +5 -4
- package/dist/agent/code-review/index.d.ts.map +1 -1
- package/dist/agent/code-review/index.js +13 -4
- package/dist/agent/code-review/types.d.ts +2 -35
- package/dist/agent/code-review/types.d.ts.map +1 -1
- package/dist/agent/code-review/types.js +4 -11
- package/dist/agent/cua/index.d.ts +1 -1
- package/dist/agent/cua/index.d.ts.map +1 -1
- package/dist/agent/cua/index.js +13 -5
- package/dist/agent/cua/pw-codegen/pw-pause/for-recorder.d.ts.map +1 -1
- package/dist/agent/cua/pw-codegen/pw-pause/for-recorder.js +0 -3
- package/dist/agent/cua/pw-codegen/pw-pause/index.js +1 -1
- package/dist/agent/index.d.ts +1 -5
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/agent/index.js +1 -11
- package/dist/agent/master/element-annotation.d.ts +1 -1
- package/dist/agent/master/element-annotation.d.ts.map +1 -1
- package/dist/agent/master/next-action.d.ts +1 -1
- package/dist/agent/master/next-action.d.ts.map +1 -1
- package/dist/agent/master/next-action.js +1 -6
- package/dist/agent/master/run.d.ts +3 -2
- package/dist/agent/master/run.d.ts.map +1 -1
- package/dist/agent/master/run.js +0 -26
- package/dist/agent/triage/index.d.ts +4 -3
- package/dist/agent/triage/index.d.ts.map +1 -1
- package/dist/agent/triage/index.js +35 -29
- package/dist/artifacts/index.d.ts +1 -1
- package/dist/artifacts/index.d.ts.map +1 -1
- package/dist/artifacts/utils.d.ts +1 -1
- package/dist/artifacts/utils.d.ts.map +1 -1
- package/dist/bin/environments.d.ts +1 -1
- package/dist/bin/environments.d.ts.map +1 -1
- package/dist/bin/index.js +2 -57
- package/dist/bin/setup.d.ts +1 -1
- package/dist/bin/setup.d.ts.map +1 -1
- package/dist/bin/utils/fs/index.d.ts +1 -1
- package/dist/bin/utils/fs/index.d.ts.map +1 -1
- package/dist/bin/utils/platform/web/index.d.ts +2 -2
- package/dist/bin/utils/platform/web/index.d.ts.map +1 -1
- package/dist/bin/utils/platform/web/index.js +1 -1
- package/dist/bin/utils/scenarios/index.d.ts +1 -1
- package/dist/bin/utils/scenarios/index.d.ts.map +1 -1
- package/dist/constants/index.d.ts +0 -4
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/index.js +0 -6
- package/dist/dashboard/client.d.ts +1 -1
- package/dist/dashboard/client.d.ts.map +1 -1
- package/dist/dashboard/index.d.ts +1 -0
- package/dist/dashboard/index.d.ts.map +1 -1
- package/dist/dashboard/index.js +4 -1
- package/dist/dashboard/tool-response.d.ts +5 -0
- package/dist/dashboard/tool-response.d.ts.map +1 -0
- package/dist/dashboard/tool-response.js +88 -0
- package/dist/dashboard/totp.js +1 -1
- package/dist/file/server.d.ts +1 -1
- package/dist/file/server.d.ts.map +1 -1
- package/dist/file/server.js +2 -1
- package/dist/file-info/adapters/file-system/index.d.ts +1 -1
- package/dist/file-info/adapters/file-system/index.d.ts.map +1 -1
- package/dist/file-info/adapters/file-system/reader.d.ts +1 -1
- package/dist/file-info/adapters/file-system/reader.d.ts.map +1 -1
- package/dist/file-info/adapters/github/index.d.ts +2 -1
- package/dist/file-info/adapters/github/index.d.ts.map +1 -1
- package/dist/file-info/adapters/github/reader.d.ts +2 -1
- package/dist/file-info/adapters/github/reader.d.ts.map +1 -1
- package/dist/recorder/index.d.ts.map +1 -1
- package/dist/recorder/index.js +2 -1
- package/dist/recorder/upload.d.ts +1 -1
- package/dist/recorder/upload.d.ts.map +1 -1
- package/dist/tools/analyse-video/index.d.ts +1 -1
- package/dist/tools/analyse-video/index.d.ts.map +1 -1
- package/dist/tools/analyse-video/index.js +28 -15
- package/dist/tools/create-pull-request/index.d.ts +1 -1
- package/dist/tools/create-pull-request/index.d.ts.map +1 -1
- package/dist/tools/create-pull-request/utils.d.ts +2 -1
- package/dist/tools/create-pull-request/utils.d.ts.map +1 -1
- package/dist/tools/definitions/analyse-video.d.ts +9 -19
- package/dist/tools/definitions/analyse-video.d.ts.map +1 -1
- package/dist/tools/definitions/analyse-video.js +13 -26
- package/dist/tools/definitions/delete-file.d.ts +9 -1
- package/dist/tools/definitions/delete-file.d.ts.map +1 -1
- package/dist/tools/definitions/delete-file.js +3 -3
- package/dist/tools/definitions/download-build.d.ts +1 -1
- package/dist/tools/definitions/download-build.d.ts.map +1 -1
- package/dist/tools/definitions/grep.d.ts +1 -1
- package/dist/tools/definitions/grep.d.ts.map +1 -1
- package/dist/tools/definitions/list-tests-and-projects.d.ts +1 -1
- package/dist/tools/definitions/list-tests-and-projects.d.ts.map +1 -1
- package/dist/tools/definitions/list-tests-and-projects.js +1 -1
- package/dist/tools/definitions/merge-conflicts.d.ts +1 -1
- package/dist/tools/definitions/merge-conflicts.d.ts.map +1 -1
- package/dist/tools/definitions/merge-conflicts.js +2 -2
- package/dist/tools/definitions/rename-file.d.ts +1 -1
- package/dist/tools/definitions/rename-file.d.ts.map +1 -1
- package/dist/tools/definitions/review-pull-request.d.ts +1 -1
- package/dist/tools/definitions/review-pull-request.d.ts.map +1 -1
- package/dist/tools/definitions/review-pull-request.js +1 -1
- package/dist/tools/definitions/run-test.d.ts +1 -1
- package/dist/tools/definitions/run-test.d.ts.map +1 -1
- package/dist/tools/definitions/str_replace_editor.d.ts +1 -1
- package/dist/tools/definitions/str_replace_editor.d.ts.map +1 -1
- package/dist/tools/definitions/test-gen-browser.d.ts +1 -1
- package/dist/tools/definitions/test-gen-browser.d.ts.map +1 -1
- package/dist/tools/definitions/upgrade-packages.d.ts +1 -1
- package/dist/tools/definitions/upgrade-packages.d.ts.map +1 -1
- package/dist/tools/definitions/utils.js +1 -1
- package/dist/tools/delete-file/index.d.ts +1 -1
- package/dist/tools/delete-file/index.d.ts.map +1 -1
- package/dist/tools/delete-file/index.js +6 -2
- package/dist/tools/diagnosis-fetcher.d.ts +1 -1
- package/dist/tools/diagnosis-fetcher.d.ts.map +1 -1
- package/dist/tools/diagnosis-fetcher.js +92 -47
- package/dist/tools/download-build/index.d.ts +1 -1
- package/dist/tools/download-build/index.d.ts.map +1 -1
- package/dist/tools/executor/base.d.ts +4 -3
- package/dist/tools/executor/base.d.ts.map +1 -1
- package/dist/tools/executor/base.js +16 -2
- package/dist/tools/executor/index.d.ts +3 -0
- package/dist/tools/executor/index.d.ts.map +1 -1
- package/dist/tools/executor/index.js +10 -10
- package/dist/tools/executor/utils/checkpoint.d.ts.map +1 -1
- package/dist/tools/executor/utils/checkpoint.js +0 -4
- package/dist/tools/executor/utils/git.d.ts +7 -1
- package/dist/tools/executor/utils/git.d.ts.map +1 -1
- package/dist/tools/executor/utils/git.js +10 -3
- package/dist/tools/executor/utils/index.d.ts +4 -3
- package/dist/tools/executor/utils/index.d.ts.map +1 -1
- package/dist/tools/executor/utils/index.js +2 -1
- package/dist/tools/executor/utils/pr-description.d.ts +1 -1
- package/dist/tools/executor/utils/pr-description.d.ts.map +1 -1
- package/dist/tools/fetch-file/index.d.ts +1 -1
- package/dist/tools/fetch-file/index.d.ts.map +1 -1
- package/dist/tools/fetch-file/index.js +53 -13
- package/dist/tools/fetch-file/utils.d.ts +3 -0
- package/dist/tools/fetch-file/utils.d.ts.map +1 -0
- package/dist/tools/fetch-file/utils.js +136 -0
- package/dist/tools/fetch-session-diff/index.d.ts +1 -1
- package/dist/tools/fetch-session-diff/index.d.ts.map +1 -1
- package/dist/tools/fetch-session-diff/index.js +26 -2
- package/dist/tools/file-operations/create.d.ts +1 -1
- package/dist/tools/file-operations/create.d.ts.map +1 -1
- package/dist/tools/file-operations/index.d.ts +2 -1
- package/dist/tools/file-operations/index.d.ts.map +1 -1
- package/dist/tools/file-operations/insert.d.ts +1 -1
- package/dist/tools/file-operations/insert.d.ts.map +1 -1
- package/dist/tools/file-operations/replace.d.ts +1 -1
- package/dist/tools/file-operations/replace.d.ts.map +1 -1
- package/dist/tools/file-operations/replace.js +20 -22
- package/dist/tools/file-operations/shared/helpers.d.ts +3 -5
- package/dist/tools/file-operations/shared/helpers.d.ts.map +1 -1
- package/dist/tools/file-operations/shared/helpers.js +1 -5
- package/dist/tools/file-operations/view/index.d.ts +2 -1
- package/dist/tools/file-operations/view/index.d.ts.map +1 -1
- package/dist/tools/grep/index.d.ts +1 -1
- package/dist/tools/grep/index.d.ts.map +1 -1
- package/dist/tools/grep/index.js +15 -12
- package/dist/tools/index.d.ts +3 -24
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +13 -42
- package/dist/tools/issues-v1/create-issue.d.ts +3 -0
- package/dist/tools/issues-v1/create-issue.d.ts.map +1 -0
- package/dist/tools/{issues → issues-v1}/create-issue.js +5 -9
- package/dist/tools/issues-v1/index.d.ts.map +1 -0
- package/dist/tools/issues-v1/list-issues.d.ts +3 -0
- package/dist/tools/issues-v1/list-issues.d.ts.map +1 -0
- package/dist/tools/issues-v1/update-issue.d.ts +3 -0
- package/dist/tools/issues-v1/update-issue.d.ts.map +1 -0
- package/dist/tools/{issues → issues-v1}/update-issue.js +1 -9
- package/dist/tools/{issues → issues-v1}/utils.d.ts +2 -1
- package/dist/tools/issues-v1/utils.d.ts.map +1 -0
- package/dist/tools/issues-v2/create-issue.d.ts +3 -0
- package/dist/tools/issues-v2/create-issue.d.ts.map +1 -0
- package/dist/tools/issues-v2/create-issue.js +86 -0
- package/dist/tools/issues-v2/update-issue.d.ts +3 -0
- package/dist/tools/issues-v2/update-issue.d.ts.map +1 -0
- package/dist/tools/issues-v2/update-issue.js +87 -0
- package/dist/tools/list-environments.d.ts +1 -1
- package/dist/tools/list-environments.d.ts.map +1 -1
- package/dist/tools/list-tests-and-projects/index.d.ts +1 -1
- package/dist/tools/list-tests-and-projects/index.d.ts.map +1 -1
- package/dist/tools/list-tests-and-projects/index.js +14 -4
- package/dist/tools/merge-conflicts/index.d.ts +1 -1
- package/dist/tools/merge-conflicts/index.d.ts.map +1 -1
- package/dist/tools/merge-conflicts/index.js +23 -10
- package/dist/tools/rename-file/index.d.ts +1 -1
- package/dist/tools/rename-file/index.d.ts.map +1 -1
- package/dist/tools/rename-file/index.js +0 -1
- package/dist/tools/review-pull-request/index.d.ts +1 -1
- package/dist/tools/review-pull-request/index.d.ts.map +1 -1
- package/dist/tools/review-pull-request/index.js +9 -15
- package/dist/tools/run-test.d.ts +1 -1
- package/dist/tools/run-test.d.ts.map +1 -1
- package/dist/tools/test-gen-browser.d.ts +1 -1
- package/dist/tools/test-gen-browser.d.ts.map +1 -1
- package/dist/tools/test-gen-browser.js +55 -19
- package/dist/tools/test-run-fetcher/index.d.ts +2 -2
- package/dist/tools/test-run-fetcher/index.d.ts.map +1 -1
- package/dist/tools/test-run-fetcher/index.js +67 -66
- package/dist/tools/trace-dot-zip/index.d.ts +1 -1
- package/dist/tools/trace-dot-zip/index.d.ts.map +1 -1
- package/dist/tools/trace-dot-zip/utils/network-trace.d.ts.map +1 -1
- package/dist/tools/trace-dot-zip/utils/network-trace.js +5 -10
- package/dist/tools/triage-summary/index.d.ts +1 -1
- package/dist/tools/triage-summary/index.d.ts.map +1 -1
- package/dist/tools/triage-summary/index.js +5 -2
- package/dist/tools/triage-summary/utils.d.ts +1 -1
- package/dist/tools/triage-summary/utils.d.ts.map +1 -1
- package/dist/tools/upgrade-packages/index.d.ts +1 -1
- package/dist/tools/upgrade-packages/index.d.ts.map +1 -1
- package/dist/tools/upgrade-packages/index.js +18 -8
- package/dist/tools/upgrade-packages/utils.d.ts +10 -5
- package/dist/tools/upgrade-packages/utils.d.ts.map +1 -1
- package/dist/tools/upgrade-packages/utils.js +57 -16
- package/dist/tools/utils/queue.d.ts +1 -1
- package/dist/tools/utils/queue.d.ts.map +1 -1
- package/dist/tools/utils/validate-schema.d.ts +3 -0
- package/dist/tools/utils/validate-schema.d.ts.map +1 -0
- package/dist/tools/utils/validate-schema.js +22 -0
- package/dist/trace-utils/index.d.ts +1 -1
- package/dist/trace-utils/index.d.ts.map +1 -1
- package/dist/trace-utils/index.js +1 -1
- package/dist/utils/SQSClient.d.ts +1 -1
- package/dist/utils/SQSClient.d.ts.map +1 -1
- package/dist/utils/dedup/dedup-image.d.ts +22 -0
- package/dist/utils/dedup/dedup-image.d.ts.map +1 -0
- package/dist/utils/dedup/dedup-image.js +26 -0
- package/dist/utils/dedup/find-threshold.d.ts +2 -0
- package/dist/utils/dedup/find-threshold.d.ts.map +1 -0
- package/dist/utils/{find-threshold.js → dedup/find-threshold.js} +2 -15
- package/dist/utils/model.d.ts +1 -1
- package/dist/utils/model.d.ts.map +1 -1
- package/dist/utils/model.js +4 -3
- package/dist/utils/playwright-report-parser.d.ts +1 -1
- package/dist/utils/playwright-report-parser.d.ts.map +1 -1
- package/dist/utils/playwright-test-id.d.ts +8 -0
- package/dist/utils/playwright-test-id.d.ts.map +1 -0
- package/dist/utils/playwright-test-id.js +21 -0
- package/dist/utils/repo-tree.d.ts +1 -1
- package/dist/utils/repo-tree.d.ts.map +1 -1
- package/dist/utils/slug.d.ts.map +1 -1
- package/dist/utils/slug.js +15 -4
- package/dist/utils/url-validation.d.ts +2 -0
- package/dist/utils/url-validation.d.ts.map +1 -0
- package/dist/utils/url-validation.js +16 -0
- package/dist/video-core/index.d.ts +14 -36
- package/dist/video-core/index.d.ts.map +1 -1
- package/dist/video-core/index.js +118 -181
- package/dist/video-core/model-limits.d.ts +2 -2
- package/dist/video-core/model-limits.d.ts.map +1 -1
- package/dist/video-core/model-limits.js +16 -20
- package/dist/video-core/storage-manager.d.ts +2 -1
- package/dist/video-core/storage-manager.d.ts.map +1 -1
- package/dist/video-core/storage-manager.js +13 -6
- package/dist/video-core/types.d.ts +1 -1
- package/dist/video-core/types.d.ts.map +1 -1
- package/dist/video-core/utils.d.ts +5 -17
- package/dist/video-core/utils.d.ts.map +1 -1
- package/dist/video-core/utils.js +39 -149
- package/package.json +10 -5
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/actions/skill.d.ts +0 -21
- package/dist/actions/skill.d.ts.map +0 -1
- package/dist/actions/skill.js +0 -127
- package/dist/agent/chat/filesystem-cache.d.ts +0 -12
- package/dist/agent/chat/filesystem-cache.d.ts.map +0 -1
- package/dist/agent/chat/filesystem-cache.js +0 -101
- package/dist/agent/codegen/create-test-block.d.ts +0 -8
- package/dist/agent/codegen/create-test-block.d.ts.map +0 -1
- package/dist/agent/codegen/create-test-block.js +0 -47
- package/dist/agent/codegen/fix-ts-errors.d.ts +0 -12
- package/dist/agent/codegen/fix-ts-errors.d.ts.map +0 -1
- package/dist/agent/codegen/fix-ts-errors.js +0 -78
- package/dist/agent/codegen/lexical-scoped-vars.d.ts +0 -9
- package/dist/agent/codegen/lexical-scoped-vars.d.ts.map +0 -1
- package/dist/agent/codegen/lexical-scoped-vars.js +0 -55
- package/dist/agent/codegen/skills-retriever.d.ts +0 -26
- package/dist/agent/codegen/skills-retriever.d.ts.map +0 -1
- package/dist/agent/codegen/skills-retriever.js +0 -93
- package/dist/agent/codegen/test-update-feedback.d.ts +0 -12
- package/dist/agent/codegen/test-update-feedback.d.ts.map +0 -1
- package/dist/agent/codegen/test-update-feedback.js +0 -49
- package/dist/agent/codegen/types.d.ts +0 -25
- package/dist/agent/codegen/types.d.ts.map +0 -1
- package/dist/agent/codegen/types.js +0 -8
- package/dist/agent/codegen/update-flow.d.ts +0 -36
- package/dist/agent/codegen/update-flow.d.ts.map +0 -1
- package/dist/agent/codegen/update-flow.js +0 -259
- package/dist/agent/codegen/use-skill.d.ts +0 -11
- package/dist/agent/codegen/use-skill.d.ts.map +0 -1
- package/dist/agent/codegen/use-skill.js +0 -53
- package/dist/agent/codegen/utils.d.ts +0 -110
- package/dist/agent/codegen/utils.d.ts.map +0 -1
- package/dist/agent/codegen/utils.js +0 -376
- package/dist/agent/master/browser-tests/skills.spec.d.ts +0 -2
- package/dist/agent/master/browser-tests/skills.spec.d.ts.map +0 -1
- package/dist/agent/master/browser-tests/skills.spec.js +0 -112
- package/dist/agent/master/execute-skill-action.d.ts +0 -11
- package/dist/agent/master/execute-skill-action.d.ts.map +0 -1
- package/dist/agent/master/execute-skill-action.js +0 -23
- package/dist/agent/video-analysis/executor/index.d.ts +0 -5
- package/dist/agent/video-analysis/executor/index.d.ts.map +0 -1
- package/dist/agent/video-analysis/executor/index.js +0 -10
- package/dist/agent/video-analysis/index.d.ts +0 -7
- package/dist/agent/video-analysis/index.d.ts.map +0 -1
- package/dist/agent/video-analysis/index.js +0 -60
- package/dist/evals/append-create-test-agent.evals.d.ts +0 -4
- package/dist/evals/append-create-test-agent.evals.d.ts.map +0 -1
- package/dist/evals/append-create-test-agent.evals.js +0 -117
- package/dist/evals/fetch-pom-skills-agent.evals.d.ts +0 -4
- package/dist/evals/fetch-pom-skills-agent.evals.d.ts.map +0 -1
- package/dist/evals/fetch-pom-skills-agent.evals.js +0 -36
- package/dist/evals/master-agent.evals.d.ts +0 -4
- package/dist/evals/master-agent.evals.d.ts.map +0 -1
- package/dist/evals/master-agent.evals.js +0 -35
- package/dist/evals/type.d.ts +0 -12
- package/dist/evals/type.d.ts.map +0 -1
- package/dist/evals/type.js +0 -2
- package/dist/evals/update-scenario-agent.evals.d.ts +0 -4
- package/dist/evals/update-scenario-agent.evals.d.ts.map +0 -1
- package/dist/evals/update-scenario-agent.evals.js +0 -47
- package/dist/tools/fetch-last-successful-test-run/index.d.ts +0 -3
- package/dist/tools/fetch-last-successful-test-run/index.d.ts.map +0 -1
- package/dist/tools/fetch-last-successful-test-run/index.js +0 -60
- package/dist/tools/issues/create-issue.d.ts +0 -3
- package/dist/tools/issues/create-issue.d.ts.map +0 -1
- package/dist/tools/issues/index.d.ts.map +0 -1
- package/dist/tools/issues/list-issues.d.ts +0 -3
- package/dist/tools/issues/list-issues.d.ts.map +0 -1
- package/dist/tools/issues/metadata-schema.d.ts +0 -24
- package/dist/tools/issues/metadata-schema.d.ts.map +0 -1
- package/dist/tools/issues/metadata-schema.js +0 -22
- package/dist/tools/issues/update-issue.d.ts +0 -3
- package/dist/tools/issues/update-issue.d.ts.map +0 -1
- package/dist/tools/issues/utils.d.ts.map +0 -1
- package/dist/tools/utils/urls.d.ts +0 -5
- package/dist/tools/utils/urls.d.ts.map +0 -1
- package/dist/tools/utils/urls.js +0 -19
- package/dist/tools/view-failed-test-run-report/index.d.ts +0 -12
- package/dist/tools/view-failed-test-run-report/index.d.ts.map +0 -1
- package/dist/tools/view-failed-test-run-report/index.js +0 -151
- package/dist/utils/artifact-paths.d.ts +0 -20
- package/dist/utils/artifact-paths.d.ts.map +0 -1
- package/dist/utils/artifact-paths.js +0 -16
- package/dist/utils/dedup-image-fs.d.ts +0 -13
- package/dist/utils/dedup-image-fs.d.ts.map +0 -1
- package/dist/utils/dedup-image-fs.js +0 -84
- package/dist/utils/dedup-image.d.ts +0 -12
- package/dist/utils/dedup-image.d.ts.map +0 -1
- package/dist/utils/dedup-image.js +0 -25
- package/dist/utils/ffmpeg/index.d.ts +0 -26
- package/dist/utils/ffmpeg/index.d.ts.map +0 -1
- package/dist/utils/ffmpeg/index.js +0 -415
- package/dist/utils/find-threshold.d.ts +0 -8
- package/dist/utils/find-threshold.d.ts.map +0 -1
- package/dist/video-core/agent-orchestrator.d.ts +0 -14
- package/dist/video-core/agent-orchestrator.d.ts.map +0 -1
- package/dist/video-core/agent-orchestrator.js +0 -78
- package/dist/video-core/analysis-server.d.ts +0 -24
- package/dist/video-core/analysis-server.d.ts.map +0 -1
- package/dist/video-core/analysis-server.js +0 -398
- package/dist/video-core/analysis-viewer.html +0 -1374
- package/dist/video-core/xml-parser.d.ts +0 -3
- package/dist/video-core/xml-parser.d.ts.map +0 -1
- package/dist/video-core/xml-parser.js +0 -27
- /package/dist/tools/{issues → issues-v1}/index.d.ts +0 -0
- /package/dist/tools/{issues → issues-v1}/index.js +0 -0
- /package/dist/tools/{issues → issues-v1}/list-issues.js +0 -0
- /package/dist/tools/{issues → issues-v1}/utils.js +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isPatchUpdate = isPatchUpdate;
|
|
3
4
|
exports.getLatestVersion = getLatestVersion;
|
|
4
5
|
exports.parsePackageJsonDiff = parsePackageJsonDiff;
|
|
5
6
|
exports.shouldMergePR = shouldMergePR;
|
|
@@ -15,7 +16,7 @@ function isPatchUpdate(currentVersion, newVersion) {
|
|
|
15
16
|
const next = newVersion.replace(/^[\^~]/, "").split(".");
|
|
16
17
|
return (current[0] === next[0] && current[1] === next[1] && current[2] !== next[2]);
|
|
17
18
|
}
|
|
18
|
-
async function getLatestVersion(packageName) {
|
|
19
|
+
async function getLatestVersion(packageName, logger) {
|
|
19
20
|
const url = `https://registry.npmjs.org/${packageName}/latest`;
|
|
20
21
|
try {
|
|
21
22
|
const response = await fetch(url);
|
|
@@ -26,15 +27,23 @@ async function getLatestVersion(packageName) {
|
|
|
26
27
|
throw new Error(errorMsg);
|
|
27
28
|
}
|
|
28
29
|
const packageInfo = await response.json();
|
|
29
|
-
|
|
30
|
+
logger.info(`Latest version of ${packageName}: ${packageInfo.version}`, {
|
|
31
|
+
tool: "upgradePackages",
|
|
32
|
+
packageName,
|
|
33
|
+
version: packageInfo.version,
|
|
34
|
+
});
|
|
30
35
|
return packageInfo.version;
|
|
31
36
|
}
|
|
32
37
|
catch (error) {
|
|
33
|
-
|
|
38
|
+
logger.error(`Error fetching package info: ${error.message}`, {
|
|
39
|
+
tool: "upgradePackages",
|
|
40
|
+
packageName,
|
|
41
|
+
error,
|
|
42
|
+
});
|
|
34
43
|
throw error;
|
|
35
44
|
}
|
|
36
45
|
}
|
|
37
|
-
async function getGitDiffForPackageJson({ repoName, prNumber, apiClient, }) {
|
|
46
|
+
async function getGitDiffForPackageJson({ repoName, prNumber, apiClient, logger, }) {
|
|
38
47
|
const files = await apiClient.callGitHubProxy({
|
|
39
48
|
method: "GET",
|
|
40
49
|
url: `/repos/empirical-run/${repoName}/pulls/${prNumber}/files`,
|
|
@@ -44,12 +53,16 @@ async function getGitDiffForPackageJson({ repoName, prNumber, apiClient, }) {
|
|
|
44
53
|
}
|
|
45
54
|
const packageJsonChanges = files.find((file) => file.filename === "package.json");
|
|
46
55
|
if (!packageJsonChanges) {
|
|
47
|
-
|
|
56
|
+
logger.info("No package.json changes found in PR", {
|
|
57
|
+
tool: "upgradePackages",
|
|
58
|
+
repoName,
|
|
59
|
+
prNumber,
|
|
60
|
+
});
|
|
48
61
|
return null;
|
|
49
62
|
}
|
|
50
63
|
return packageJsonChanges.patch;
|
|
51
64
|
}
|
|
52
|
-
function parsePackageJsonDiff({ diff, }) {
|
|
65
|
+
function parsePackageJsonDiff({ diff, logger, }) {
|
|
53
66
|
const patchLines = diff.split("\n");
|
|
54
67
|
const changes = {};
|
|
55
68
|
for (let i = 0; i < patchLines.length; i++) {
|
|
@@ -59,7 +72,10 @@ function parsePackageJsonDiff({ diff, }) {
|
|
|
59
72
|
if (match) {
|
|
60
73
|
const [, pkg, version] = match;
|
|
61
74
|
if (!pkg) {
|
|
62
|
-
|
|
75
|
+
logger.warn("No package name found in line:", {
|
|
76
|
+
tool: "upgradePackages",
|
|
77
|
+
line,
|
|
78
|
+
});
|
|
63
79
|
continue;
|
|
64
80
|
}
|
|
65
81
|
const changeType = line.startsWith("+") ? "new" : "old";
|
|
@@ -71,38 +87,63 @@ function parsePackageJsonDiff({ diff, }) {
|
|
|
71
87
|
}
|
|
72
88
|
return changes;
|
|
73
89
|
}
|
|
74
|
-
async function shouldMergePR({ repoName, prNumber, apiClient, }) {
|
|
90
|
+
async function shouldMergePR({ repoName, prNumber, apiClient, logger, }) {
|
|
75
91
|
const gitDiff = await getGitDiffForPackageJson({
|
|
76
92
|
repoName,
|
|
77
93
|
prNumber,
|
|
78
94
|
apiClient,
|
|
95
|
+
logger,
|
|
79
96
|
});
|
|
80
97
|
if (!gitDiff) {
|
|
81
|
-
|
|
98
|
+
logger.info("No package.json changes found, skipping merge", {
|
|
99
|
+
tool: "upgradePackages",
|
|
100
|
+
repoName,
|
|
101
|
+
prNumber,
|
|
102
|
+
});
|
|
82
103
|
return false;
|
|
83
104
|
}
|
|
84
|
-
const changes = parsePackageJsonDiff({ diff: gitDiff });
|
|
105
|
+
const changes = parsePackageJsonDiff({ diff: gitDiff, logger });
|
|
85
106
|
if (Object.keys(changes).length === 0) {
|
|
86
|
-
|
|
107
|
+
logger.info("No package.json changes found, skipping merge", {
|
|
108
|
+
tool: "upgradePackages",
|
|
109
|
+
repoName,
|
|
110
|
+
prNumber,
|
|
111
|
+
});
|
|
87
112
|
return false;
|
|
88
113
|
}
|
|
89
114
|
let allPatchUpdates = true;
|
|
90
115
|
for (const [pkg, versions] of Object.entries(changes)) {
|
|
91
116
|
const { old: oldVersion, new: newVersion } = versions;
|
|
92
117
|
if (!isPatchUpdate(oldVersion, newVersion)) {
|
|
93
|
-
|
|
118
|
+
logger.info(`${pkg}: ${oldVersion} -> ${newVersion} is not a patch update`, {
|
|
119
|
+
tool: "upgradePackages",
|
|
120
|
+
package: pkg,
|
|
121
|
+
oldVersion,
|
|
122
|
+
newVersion,
|
|
123
|
+
});
|
|
94
124
|
allPatchUpdates = false;
|
|
95
125
|
}
|
|
96
126
|
else {
|
|
97
|
-
|
|
127
|
+
logger.info(`${pkg}: ${oldVersion} -> ${newVersion} is a patch update`, {
|
|
128
|
+
tool: "upgradePackages",
|
|
129
|
+
package: pkg,
|
|
130
|
+
oldVersion,
|
|
131
|
+
newVersion,
|
|
132
|
+
});
|
|
98
133
|
}
|
|
99
134
|
}
|
|
100
135
|
return allPatchUpdates;
|
|
101
136
|
}
|
|
102
|
-
async function upgradeAndStagePackage({ repoPath, pkgName, version, isDevDep, }) {
|
|
103
|
-
const pkgVersion = version ?? (await getLatestVersion(pkgName));
|
|
137
|
+
async function upgradeAndStagePackage({ repoPath, pkgName, version, isDevDep, logger, }) {
|
|
138
|
+
const pkgVersion = version ?? (await getLatestVersion(pkgName, logger));
|
|
104
139
|
(0, child_process_1.execSync)(`npm i ${pkgName}@${pkgVersion} ${isDevDep ? "--save-dev" : "--save"}`, { cwd: repoPath });
|
|
105
|
-
|
|
140
|
+
logger.info(`Updated package: ${pkgName} version to ${pkgVersion} in ${repoPath}`, {
|
|
141
|
+
tool: "upgradePackages",
|
|
142
|
+
pkgName,
|
|
143
|
+
pkgVersion,
|
|
144
|
+
repoPath,
|
|
145
|
+
isDevDep,
|
|
146
|
+
});
|
|
106
147
|
(0, child_process_1.execSync)("git add package.json package-lock.json", { cwd: repoPath });
|
|
107
148
|
return {
|
|
108
149
|
name: pkgName,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PendingToolCall } from "@empiricalrun/shared-types";
|
|
1
|
+
import { PendingToolCall } from "@empiricalrun/shared-types/chat-agent";
|
|
2
2
|
export declare function appendSuffixToQueueUrl(queueUrl: string, suffix: string): string;
|
|
3
3
|
export declare function replaceRegionInUrl(url: string, newRegion: string): string;
|
|
4
4
|
export declare function getQueueUrl(toolCalls: PendingToolCall[], needsBrowser: boolean): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../../src/tools/utils/queue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../../src/tools/utils/queue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAExE,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GACb,MAAM,CAKR;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAOzE;AAkBD,wBAAgB,WAAW,CACzB,SAAS,EAAE,eAAe,EAAE,EAC5B,YAAY,EAAE,OAAO,GACpB,MAAM,CAeR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-schema.d.ts","sourceRoot":"","sources":["../../../src/tools/utils/validate-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,UAAU,EACX,MAAM,uCAAuC,CAAC;AAE/C,wBAAgB,iBAAiB,CAAC,CAAC,EACjC,QAAQ,EAAE,eAAe,EACzB,MAAM,EAAE,CAAC,GACR,UAAU,GAAG,IAAI,CAwBnB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateToolInput = validateToolInput;
|
|
4
|
+
function validateToolInput(toolCall, schema) {
|
|
5
|
+
const { name: toolName, input } = toolCall;
|
|
6
|
+
const strictSchema = schema._def?.typeName === "ZodObject"
|
|
7
|
+
? schema.strict()
|
|
8
|
+
: schema;
|
|
9
|
+
const validation = strictSchema.safeParse(input);
|
|
10
|
+
if (!validation.success) {
|
|
11
|
+
const errorMessage = [
|
|
12
|
+
`Schema validation failed for tool "${toolName}".`,
|
|
13
|
+
`\nValidation errors: ${JSON.stringify(validation.error.issues, null, 2)}`,
|
|
14
|
+
].join("\n");
|
|
15
|
+
return {
|
|
16
|
+
isError: true,
|
|
17
|
+
result: errorMessage,
|
|
18
|
+
artifacts: null,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { extractFileFromZipFromUrl, getFilenamesInZip, } from "../tools/trace-dot-zip/utils/extract-zip";
|
|
2
2
|
export { generateNetworkTrace } from "../tools/trace-dot-zip/utils/network-trace";
|
|
3
|
-
export { deduplicateImages } from "../utils/dedup-image";
|
|
3
|
+
export { deduplicateImages } from "../utils/dedup/dedup-image";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/trace-utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/trace-utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -6,5 +6,5 @@ Object.defineProperty(exports, "extractFileFromZipFromUrl", { enumerable: true,
|
|
|
6
6
|
Object.defineProperty(exports, "getFilenamesInZip", { enumerable: true, get: function () { return extract_zip_1.getFilenamesInZip; } });
|
|
7
7
|
var network_trace_1 = require("../tools/trace-dot-zip/utils/network-trace");
|
|
8
8
|
Object.defineProperty(exports, "generateNetworkTrace", { enumerable: true, get: function () { return network_trace_1.generateNetworkTrace; } });
|
|
9
|
-
var dedup_image_1 = require("../utils/dedup-image");
|
|
9
|
+
var dedup_image_1 = require("../utils/dedup/dedup-image");
|
|
10
10
|
Object.defineProperty(exports, "deduplicateImages", { enumerable: true, get: function () { return dedup_image_1.deduplicateImages; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SQSClient.d.ts","sourceRoot":"","sources":["../../src/utils/SQSClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SQSClient.d.ts","sourceRoot":"","sources":["../../src/utils/SQSClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AAEjF,qBAAa,SAAS;IACpB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,YAAY,CAAC,CAAS;gBAG5B,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,YAAY,CAAC,EAAE,MAAM;YAQT,MAAM;YAON,UAAU;YAkBV,eAAe;YAgBf,IAAI;IASZ,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAyG5E"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
type ImageMetadata = {
|
|
2
|
+
base64: string;
|
|
3
|
+
type: string;
|
|
4
|
+
pageId: string;
|
|
5
|
+
sha1: string;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
timestamp: number;
|
|
9
|
+
};
|
|
10
|
+
export declare function deduplicateImages({ base64Images, threshold, logPrefix, }: {
|
|
11
|
+
base64Images: {
|
|
12
|
+
metadata: ImageMetadata;
|
|
13
|
+
image: string;
|
|
14
|
+
}[];
|
|
15
|
+
threshold: number;
|
|
16
|
+
logPrefix?: string;
|
|
17
|
+
}): Promise<{
|
|
18
|
+
metadata: ImageMetadata;
|
|
19
|
+
image: string;
|
|
20
|
+
}[]>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=dedup-image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dedup-image.d.ts","sourceRoot":"","sources":["../../../src/utils/dedup/dedup-image.ts"],"names":[],"mappings":"AAEA,KAAK,aAAa,GAAG;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,wBAAsB,iBAAiB,CAAC,EACtC,YAAY,EACZ,SAAS,EACT,SAAyB,GAC1B,EAAE;IACD,YAAY,EAAE;QAAE,QAAQ,EAAE,aAAa,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC3D,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,OAAO,CAAC;IAAE,QAAQ,EAAE,aAAa,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,CAAC,CAkCxD"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deduplicateImages = deduplicateImages;
|
|
4
|
+
const find_threshold_1 = require("./find-threshold");
|
|
5
|
+
async function deduplicateImages({ base64Images, threshold, logPrefix = "dedup-image", }) {
|
|
6
|
+
console.log(`[${logPrefix}] Starting deduplication with sequential comparison`);
|
|
7
|
+
console.log(`[${logPrefix}] Input: ${base64Images.length} images, Threshold: ${threshold}`);
|
|
8
|
+
if (base64Images.length === 0) {
|
|
9
|
+
return [];
|
|
10
|
+
}
|
|
11
|
+
const uniqueImages = [];
|
|
12
|
+
let previousImage = null;
|
|
13
|
+
for (const currentImage of base64Images) {
|
|
14
|
+
if (previousImage === null) {
|
|
15
|
+
uniqueImages.push(currentImage);
|
|
16
|
+
previousImage = currentImage.image;
|
|
17
|
+
continue;
|
|
18
|
+
}
|
|
19
|
+
const diffFraction = await (0, find_threshold_1.findDiffFraction)(previousImage, currentImage.image);
|
|
20
|
+
if (diffFraction > threshold) {
|
|
21
|
+
uniqueImages.push(currentImage);
|
|
22
|
+
previousImage = currentImage.image;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return uniqueImages;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find-threshold.d.ts","sourceRoot":"","sources":["../../../src/utils/dedup/find-threshold.ts"],"names":[],"mappings":"AAsCA,wBAAsB,gBAAgB,CACpC,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,MAAM,CAAC,CASjB"}
|
|
@@ -3,12 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.findSimilarityPercentage = findSimilarityPercentage;
|
|
8
|
-
exports.areImagesDuplicate = areImagesDuplicate;
|
|
6
|
+
exports.findDiffFraction = findDiffFraction;
|
|
9
7
|
const pixelmatch_1 = __importDefault(require("pixelmatch"));
|
|
10
8
|
const sharp_1 = __importDefault(require("sharp"));
|
|
11
|
-
const PIXELMATCH_THRESHOLD = 0.1;
|
|
12
9
|
async function compareImageBuffers(buffer1, buffer2, pixelmatchThreshold) {
|
|
13
10
|
const metadata1 = await (0, sharp_1.default)(buffer1).metadata();
|
|
14
11
|
const metadata2 = await (0, sharp_1.default)(buffer2).metadata();
|
|
@@ -32,7 +29,7 @@ async function compareImageBuffers(buffer1, buffer2, pixelmatchThreshold) {
|
|
|
32
29
|
const diffFraction = diffPixels / totalPixels;
|
|
33
30
|
return { diffPixels, totalPixels, diffFraction };
|
|
34
31
|
}
|
|
35
|
-
async function
|
|
32
|
+
async function findDiffFraction(base64Image1, base64Image2) {
|
|
36
33
|
try {
|
|
37
34
|
const buffer1 = Buffer.from(base64Image1, "base64");
|
|
38
35
|
const buffer2 = Buffer.from(base64Image2, "base64");
|
|
@@ -43,13 +40,3 @@ async function findSimilarityPercentage(base64Image1, base64Image2) {
|
|
|
43
40
|
throw new Error(`Error calculating similarity: ${error}`);
|
|
44
41
|
}
|
|
45
42
|
}
|
|
46
|
-
async function areImagesDuplicate(buffer1, buffer2, threshold) {
|
|
47
|
-
try {
|
|
48
|
-
const { diffFraction } = await compareImageBuffers(buffer1, buffer2, PIXELMATCH_THRESHOLD);
|
|
49
|
-
return diffFraction <= threshold;
|
|
50
|
-
}
|
|
51
|
-
catch (error) {
|
|
52
|
-
console.error("Error comparing images for duplication:", error);
|
|
53
|
-
return false;
|
|
54
|
-
}
|
|
55
|
-
}
|
package/dist/utils/model.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/utils/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/utils/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAE5E,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAqBrE,CAAC"}
|
package/dist/utils/model.js
CHANGED
|
@@ -7,11 +7,12 @@ exports.CLI_ARGS_TO_MODEL_MAP = {
|
|
|
7
7
|
"claude-opus-4": "claude-opus-4-20250514",
|
|
8
8
|
"claude-sonnet-4": "claude-sonnet-4-20250514",
|
|
9
9
|
"claude-sonnet-4-5": "claude-sonnet-4-5-20250929",
|
|
10
|
-
"claude-haiku": "claude-
|
|
11
|
-
"claude-haiku-
|
|
12
|
-
gemini: "gemini-2.5-pro",
|
|
10
|
+
"claude-haiku": "claude-haiku-4-5-20251001",
|
|
11
|
+
"claude-haiku-4-5": "claude-haiku-4-5-20251001",
|
|
13
12
|
"gemini-2.5": "gemini-2.5-pro",
|
|
14
13
|
"gemini-2.5-pro": "gemini-2.5-pro",
|
|
14
|
+
"gemini-3": "gemini-3-pro-preview",
|
|
15
|
+
"gemini-3-pro": "gemini-3-pro-preview",
|
|
15
16
|
o3: "o3-2025-04-16",
|
|
16
17
|
"o3-2025-04-16": "o3-2025-04-16",
|
|
17
18
|
"gpt-5": "gpt-5-2025-08-07",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HtmlReportData, HtmlReportFile, HtmlReportTest, PlaywrightMatchingTest, PlaywrightTestReport } from "@empiricalrun/shared-types";
|
|
1
|
+
import { HtmlReportData, HtmlReportFile, HtmlReportTest, PlaywrightMatchingTest, PlaywrightTestReport } from "@empiricalrun/shared-types/playwright-utils";
|
|
2
2
|
import type { JSONReport } from "playwright/types/testReporter";
|
|
3
3
|
export declare function parsePlaywrightTestReport(jsonReport: JSONReport): PlaywrightTestReport;
|
|
4
4
|
export declare const findTestInReport: (reportJson: HtmlReportFile, targetTest: PlaywrightMatchingTest, allFiles: HtmlReportData["files"]) => HtmlReportTest | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playwright-report-parser.d.ts","sourceRoot":"","sources":["../../src/utils/playwright-report-parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,cAAc,EACd,cAAc,EACd,cAAc,EACd,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,
|
|
1
|
+
{"version":3,"file":"playwright-report-parser.d.ts","sourceRoot":"","sources":["../../src/utils/playwright-report-parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,cAAc,EACd,cAAc,EACd,cAAc,EACd,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,6CAA6C,CAAC;AACrD,OAAO,KAAK,EACV,UAAU,EAGX,MAAM,+BAA+B,CAAC;AAqEvC,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,UAAU,GACrB,oBAAoB,CAuBtB;AAED,eAAO,MAAM,gBAAgB,GAC3B,YAAY,cAAc,EAC1B,YAAY,sBAAsB,EAClC,UAAU,cAAc,CAAC,OAAO,CAAC,0BAwBlC,CAAC;AAEF,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,sBAAsB,EAAE,EAC/B,YAAY,EAAE,YAAY,GACzB,sBAAsB,GAAG,IAAI,CAgB/B;AAED,wBAAsB,oBAAoB,CACxC,cAAc,EAAE,MAAM,EACtB,YAAY,EAAE,YAAY,GACzB,OAAO,CAAC,sBAAsB,CAAC,CAqBjC;AAED,wBAAsB,2BAA2B,CAC/C,WAAW,EAAE,UAAU,EACvB,YAAY,EAAE,YAAY,GACzB,OAAO,CAAC,sBAAsB,GAAG,IAAI,CAAC,CASxC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Recreates Playwright test ID
|
|
3
|
+
* @param relativeFilePath - File path relative to project testDir
|
|
4
|
+
* @param projectId - Project ID from playwright config
|
|
5
|
+
* @param titles - Array of test titles [describe1, describe2, ..., testName]
|
|
6
|
+
*/
|
|
7
|
+
export declare function generatePlaywrightTestId(relativeFilePath: string, projectId: string, titles: string[]): string;
|
|
8
|
+
//# sourceMappingURL=playwright-test-id.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"playwright-test-id.d.ts","sourceRoot":"","sources":["../../src/utils/playwright-test-id.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,gBAAgB,EAAE,MAAM,EACxB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EAAE,GACf,MAAM,CAUR"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.generatePlaywrightTestId = generatePlaywrightTestId;
|
|
7
|
+
const crypto_1 = __importDefault(require("crypto"));
|
|
8
|
+
/**
|
|
9
|
+
* Recreates Playwright test ID
|
|
10
|
+
* @param relativeFilePath - File path relative to project testDir
|
|
11
|
+
* @param projectId - Project ID from playwright config
|
|
12
|
+
* @param titles - Array of test titles [describe1, describe2, ..., testName]
|
|
13
|
+
*/
|
|
14
|
+
function generatePlaywrightTestId(relativeFilePath, projectId, titles) {
|
|
15
|
+
const toPosix = (filePath) => filePath.split("\\").join("/");
|
|
16
|
+
const sha1 = (input) => crypto_1.default.createHash("sha1").update(input).digest("hex");
|
|
17
|
+
const fileId = sha1(toPosix(relativeFilePath)).slice(0, 20);
|
|
18
|
+
const testIdExpression = `[project=${projectId}]${toPosix(relativeFilePath)}\x1e${titles.join("\x1e")}`;
|
|
19
|
+
const testId = fileId + "-" + sha1(testIdExpression).slice(0, 20);
|
|
20
|
+
return testId;
|
|
21
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repo-tree.d.ts","sourceRoot":"","sources":["../../src/utils/repo-tree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"repo-tree.d.ts","sourceRoot":"","sources":["../../src/utils/repo-tree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAG/D,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,KAAK,UAqF7D"}
|
package/dist/utils/slug.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slug.d.ts","sourceRoot":"","sources":["../../src/utils/slug.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"slug.d.ts","sourceRoot":"","sources":["../../src/utils/slug.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,uBAAuB,GAAU,MAAM,MAAM,oBAOzD,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,OAAO,GAAI,KAAK,MAAM,KAAG,MASrC,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,cAAc,MAAM,KAAG,MAoBlE,CAAC"}
|
package/dist/utils/slug.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.extractSlugFromDiagnosisUrl = exports.slugify = exports.asyncGenerateRandomSlug = void 0;
|
|
4
|
-
|
|
4
|
+
const url_1 = require("url");
|
|
5
5
|
let customAlphabet;
|
|
6
6
|
const loadNanoid = async () => {
|
|
7
7
|
const { customAlphabet: importedCustomAlphabet } = await import("nanoid");
|
|
@@ -43,10 +43,21 @@ const slugify = (str) => {
|
|
|
43
43
|
};
|
|
44
44
|
exports.slugify = slugify;
|
|
45
45
|
const extractSlugFromDiagnosisUrl = (diagnosisUrl) => {
|
|
46
|
+
// New formats (unified list and detail page)
|
|
47
|
+
const parsedUrl = url_1.URL.parse(diagnosisUrl);
|
|
48
|
+
const detailParamValue = parsedUrl?.searchParams.get("detail");
|
|
49
|
+
if (detailParamValue) {
|
|
50
|
+
const slug = detailParamValue.split("--").pop();
|
|
51
|
+
if (slug) {
|
|
52
|
+
return slug;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
// Fallback to old format (/diagnosis/ path)
|
|
46
56
|
const slug = diagnosisUrl.split("--").pop();
|
|
47
|
-
if (
|
|
48
|
-
|
|
57
|
+
if (slug) {
|
|
58
|
+
return slug;
|
|
49
59
|
}
|
|
50
|
-
|
|
60
|
+
// Unknown URL format
|
|
61
|
+
throw new Error("Invalid diagnosis URL - could not extract slug");
|
|
51
62
|
};
|
|
52
63
|
exports.extractSlugFromDiagnosisUrl = extractSlugFromDiagnosisUrl;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url-validation.d.ts","sourceRoot":"","sources":["../../src/utils/url-validation.ts"],"names":[],"mappings":"AACA,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAatE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateUrlAccess = validateUrlAccess;
|
|
4
|
+
// Some hosts do not allow HEAD requests, so we fall back to GET.
|
|
5
|
+
async function validateUrlAccess(url) {
|
|
6
|
+
try {
|
|
7
|
+
const headResponse = await fetch(url, { method: "HEAD" });
|
|
8
|
+
if (headResponse.ok) {
|
|
9
|
+
return headResponse;
|
|
10
|
+
}
|
|
11
|
+
return await fetch(url, { method: "GET" });
|
|
12
|
+
}
|
|
13
|
+
catch (error) {
|
|
14
|
+
return new Response(`Network error accessing URL: ${error instanceof Error ? error.message : String(error)}`, { status: 500 });
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -1,44 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare function
|
|
1
|
+
import { CanonicalMessage, ToolResultPart } from "@empiricalrun/shared-types/chat-agent";
|
|
2
|
+
import { UniqueFrameInfos, VideoAnalysisParams, VideoAnalysisResultV1 } from "@empiricalrun/shared-types/test-gen";
|
|
3
|
+
export declare function runVideoAnalysis({ url, videoHash, params, workingDirectory, skipUpload, }: {
|
|
4
4
|
url: string;
|
|
5
|
-
|
|
6
|
-
startServer?: boolean;
|
|
7
|
-
}): Promise<import("./analysis-server").AnalysisServerHandle>;
|
|
8
|
-
export declare function runVideoAnalysis({ videoUrl, videoUrlHash, params, featureFlags, workingDirectory, skipUpload, }: {
|
|
9
|
-
videoUrl: string;
|
|
10
|
-
videoUrlHash: string;
|
|
5
|
+
videoHash: string;
|
|
11
6
|
params: VideoAnalysisParams;
|
|
12
|
-
featureFlags: string[];
|
|
13
7
|
workingDirectory: string;
|
|
14
8
|
skipUpload?: boolean;
|
|
15
9
|
}): Promise<{
|
|
16
|
-
result:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
analysis: string;
|
|
22
|
-
analysis_id: string;
|
|
23
|
-
params: VideoAnalysisParams;
|
|
24
|
-
};
|
|
25
|
-
unique_frames: import("@empiricalrun/shared-types").UniqueFrameInfos[];
|
|
26
|
-
interleaved_tool_result: import("@empiricalrun/shared-types").ToolResultPart[];
|
|
27
|
-
chat_messages: import("@empiricalrun/shared-types").CanonicalMessage[];
|
|
28
|
-
isError: boolean;
|
|
10
|
+
result: VideoAnalysisResultV1;
|
|
11
|
+
unique_frames: UniqueFrameInfos[];
|
|
12
|
+
interleaved_tool_result: ToolResultPart[];
|
|
13
|
+
chat_messages: CanonicalMessage[];
|
|
14
|
+
error: null;
|
|
29
15
|
} | {
|
|
30
|
-
result:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
analysis: string;
|
|
36
|
-
analysis_id: string;
|
|
37
|
-
params: VideoAnalysisParams;
|
|
38
|
-
};
|
|
39
|
-
interleaved_tool_result: never[];
|
|
40
|
-
chat_messages: never[];
|
|
41
|
-
isError: boolean;
|
|
42
|
-
unique_frames?: undefined;
|
|
16
|
+
result: VideoAnalysisResultV1;
|
|
17
|
+
unique_frames: UniqueFrameInfos[];
|
|
18
|
+
interleaved_tool_result: ToolResultPart[];
|
|
19
|
+
chat_messages: CanonicalMessage[];
|
|
20
|
+
error: string;
|
|
43
21
|
}>;
|
|
44
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/video-core/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/video-core/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,EAChB,cAAc,EACf,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,qCAAqC,CAAC;AAgB7C,wBAAsB,gBAAgB,CAAC,EACrC,GAAG,EACH,SAAS,EACT,MAAM,EACN,gBAAgB,EAChB,UAAU,GACX,EAAE;IACD,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;;;;;;;;;;;;GA2KA"}
|