self-bench 0.3.6 → 0.3.8
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/.dockerignore +11 -1
- package/Dockerfile +9 -9
- package/Dockerfile.sandbox +5 -4
- package/README.md +27 -12
- package/bun.lock +462 -95
- package/compose.yaml +64 -20
- package/dist/agent-feed.d.ts +8 -0
- package/dist/agent-feed.d.ts.map +1 -0
- package/dist/agent-feed.js +56 -0
- package/dist/agent-feed.js.map +1 -0
- package/dist/api/http.d.ts +18 -0
- package/dist/api/http.d.ts.map +1 -0
- package/dist/api/http.js +111 -0
- package/dist/api/http.js.map +1 -0
- package/dist/api/run-request.d.ts +37 -0
- package/dist/api/run-request.d.ts.map +1 -0
- package/dist/api/run-request.js +59 -0
- package/dist/api/run-request.js.map +1 -0
- package/dist/api/status.d.ts +4 -0
- package/dist/api/status.d.ts.map +1 -0
- package/dist/api/status.js +36 -0
- package/dist/api/status.js.map +1 -0
- package/dist/api/viewer-routes.d.ts +9 -0
- package/dist/api/viewer-routes.d.ts.map +1 -0
- package/dist/api/viewer-routes.js +98 -0
- package/dist/api/viewer-routes.js.map +1 -0
- package/dist/api-main.js +5 -1
- package/dist/api-main.js.map +1 -1
- package/dist/api.d.ts +7 -25
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +80 -148
- package/dist/api.js.map +1 -1
- package/dist/archive.d.ts +14 -0
- package/dist/archive.d.ts.map +1 -0
- package/dist/archive.js +114 -0
- package/dist/archive.js.map +1 -0
- package/dist/artifacts/common.d.ts +15 -0
- package/dist/artifacts/common.d.ts.map +1 -0
- package/dist/artifacts/common.js +58 -0
- package/dist/artifacts/common.js.map +1 -0
- package/dist/artifacts/gcs.d.ts +18 -0
- package/dist/artifacts/gcs.d.ts.map +1 -0
- package/dist/artifacts/gcs.js +178 -0
- package/dist/artifacts/gcs.js.map +1 -0
- package/dist/artifacts/local.d.ts +17 -0
- package/dist/artifacts/local.d.ts.map +1 -0
- package/dist/artifacts/local.js +205 -0
- package/dist/artifacts/local.js.map +1 -0
- package/dist/artifacts/types.d.ts +18 -0
- package/dist/artifacts/types.d.ts.map +1 -0
- package/dist/artifacts/types.js +2 -0
- package/dist/artifacts/types.js.map +1 -0
- package/dist/artifacts.d.ts +5 -28
- package/dist/artifacts.d.ts.map +1 -1
- package/dist/artifacts.js +5 -302
- package/dist/artifacts.js.map +1 -1
- package/dist/audit.d.ts.map +1 -1
- package/dist/audit.js +8 -2
- package/dist/audit.js.map +1 -1
- package/dist/auth/api-key-routes.d.ts +17 -0
- package/dist/auth/api-key-routes.d.ts.map +1 -0
- package/dist/auth/api-key-routes.js +57 -0
- package/dist/auth/api-key-routes.js.map +1 -0
- package/dist/auth/api-keys.d.ts +47 -0
- package/dist/auth/api-keys.d.ts.map +1 -0
- package/dist/auth/api-keys.js +102 -0
- package/dist/auth/api-keys.js.map +1 -0
- package/dist/auth/config.d.ts +17 -0
- package/dist/auth/config.d.ts.map +1 -0
- package/dist/auth/config.js +38 -0
- package/dist/auth/config.js.map +1 -0
- package/dist/auth/cookies.d.ts +12 -0
- package/dist/auth/cookies.d.ts.map +1 -0
- package/dist/auth/cookies.js +45 -0
- package/dist/auth/cookies.js.map +1 -0
- package/dist/auth/crypto.d.ts +19 -0
- package/dist/auth/crypto.d.ts.map +1 -0
- package/dist/auth/crypto.js +48 -0
- package/dist/auth/crypto.js.map +1 -0
- package/dist/auth/github.d.ts +37 -0
- package/dist/auth/github.d.ts.map +1 -0
- package/dist/auth/github.js +127 -0
- package/dist/auth/github.js.map +1 -0
- package/dist/auth/routes.d.ts +41 -0
- package/dist/auth/routes.d.ts.map +1 -0
- package/dist/auth/routes.js +153 -0
- package/dist/auth/routes.js.map +1 -0
- package/dist/auth/session-expired.d.ts +4 -0
- package/dist/auth/session-expired.d.ts.map +1 -0
- package/dist/auth/session-expired.js +17 -0
- package/dist/auth/session-expired.js.map +1 -0
- package/dist/auth/session.d.ts +23 -0
- package/dist/auth/session.d.ts.map +1 -0
- package/dist/auth/session.js +56 -0
- package/dist/auth/session.js.map +1 -0
- package/dist/auth/users.d.ts +49 -0
- package/dist/auth/users.d.ts.map +1 -0
- package/dist/auth/users.js +125 -0
- package/dist/auth/users.js.map +1 -0
- package/dist/build-metadata.js +1 -1
- package/dist/cli/api-client.d.ts +8 -0
- package/dist/cli/api-client.d.ts.map +1 -0
- package/dist/cli/api-client.js +71 -0
- package/dist/cli/api-client.js.map +1 -0
- package/dist/cli/associate.d.ts +2 -0
- package/dist/cli/associate.d.ts.map +1 -0
- package/dist/cli/associate.js +51 -0
- package/dist/cli/associate.js.map +1 -0
- package/dist/cli/help.d.ts +2 -0
- package/dist/cli/help.d.ts.map +1 -0
- package/dist/cli/help.js +52 -0
- package/dist/cli/help.js.map +1 -0
- package/dist/cli/main.d.ts +2 -0
- package/dist/cli/main.d.ts.map +1 -0
- package/dist/cli/main.js +55 -0
- package/dist/cli/main.js.map +1 -0
- package/dist/cli/replay.d.ts +3 -0
- package/dist/cli/replay.d.ts.map +1 -0
- package/dist/cli/replay.js +59 -0
- package/dist/cli/replay.js.map +1 -0
- package/dist/cli/repository.d.ts +6 -0
- package/dist/cli/repository.d.ts.map +1 -0
- package/dist/cli/repository.js +36 -0
- package/dist/cli/repository.js.map +1 -0
- package/dist/cli/run.d.ts +2 -0
- package/dist/cli/run.d.ts.map +1 -0
- package/dist/cli/run.js +93 -0
- package/dist/cli/run.js.map +1 -0
- package/dist/cli/stack-environment.d.ts +26 -0
- package/dist/cli/stack-environment.d.ts.map +1 -0
- package/dist/cli/stack-environment.js +86 -0
- package/dist/cli/stack-environment.js.map +1 -0
- package/dist/cli/stack.d.ts +6 -0
- package/dist/cli/stack.d.ts.map +1 -0
- package/dist/cli/stack.js +131 -0
- package/dist/cli/stack.js.map +1 -0
- package/dist/cli/values.d.ts +8 -0
- package/dist/cli/values.d.ts.map +1 -0
- package/dist/cli/values.js +30 -0
- package/dist/cli/values.js.map +1 -0
- package/dist/cli/view.d.ts +2 -0
- package/dist/cli/view.d.ts.map +1 -0
- package/dist/cli/view.js +40 -0
- package/dist/cli/view.js.map +1 -0
- package/dist/cli.js +2 -429
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +16 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +60 -22
- package/dist/config.js.map +1 -1
- package/dist/contracts/common.d.ts +22 -0
- package/dist/contracts/common.d.ts.map +1 -0
- package/dist/contracts/common.js +29 -0
- package/dist/contracts/common.js.map +1 -0
- package/dist/contracts/results.d.ts +66 -0
- package/dist/contracts/results.d.ts.map +1 -0
- package/dist/contracts/results.js +2 -0
- package/dist/contracts/results.js.map +1 -0
- package/dist/contracts/run.d.ts +145 -0
- package/dist/contracts/run.d.ts.map +1 -0
- package/dist/contracts/run.js +74 -0
- package/dist/contracts/run.js.map +1 -0
- package/dist/contracts/task.d.ts +232 -0
- package/dist/contracts/task.d.ts.map +1 -0
- package/dist/contracts/task.js +198 -0
- package/dist/contracts/task.js.map +1 -0
- package/dist/contracts/verify.d.ts +331 -0
- package/dist/contracts/verify.d.ts.map +1 -0
- package/dist/contracts/verify.js +84 -0
- package/dist/contracts/verify.js.map +1 -0
- package/dist/contracts.d.ts +5 -243
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js +5 -128
- package/dist/contracts.js.map +1 -1
- package/dist/db/client.d.ts +12 -0
- package/dist/db/client.d.ts.map +1 -0
- package/dist/db/client.js +16 -0
- package/dist/db/client.js.map +1 -0
- package/dist/db/schema.d.ts +1256 -0
- package/dist/db/schema.d.ts.map +1 -0
- package/dist/db/schema.js +128 -0
- package/dist/db/schema.js.map +1 -0
- package/dist/environment.d.ts +9 -0
- package/dist/environment.d.ts.map +1 -0
- package/dist/environment.js +101 -0
- package/dist/environment.js.map +1 -0
- package/dist/evaluation/account.d.ts +30 -0
- package/dist/evaluation/account.d.ts.map +1 -0
- package/dist/evaluation/account.js +34 -0
- package/dist/evaluation/account.js.map +1 -0
- package/dist/evaluation/activities.d.ts +9 -0
- package/dist/evaluation/activities.d.ts.map +1 -0
- package/dist/evaluation/activities.js +40 -0
- package/dist/evaluation/activities.js.map +1 -0
- package/dist/evaluation/catalog-pricing.d.ts +3 -0
- package/dist/evaluation/catalog-pricing.d.ts.map +1 -0
- package/dist/evaluation/catalog-pricing.js +37 -0
- package/dist/evaluation/catalog-pricing.js.map +1 -0
- package/dist/evaluation/catalog.d.ts +17 -0
- package/dist/evaluation/catalog.d.ts.map +1 -0
- package/dist/evaluation/catalog.js +126 -0
- package/dist/evaluation/catalog.js.map +1 -0
- package/dist/evaluation/codex-login-process.d.ts +12 -0
- package/dist/evaluation/codex-login-process.d.ts.map +1 -0
- package/dist/evaluation/codex-login-process.js +121 -0
- package/dist/evaluation/codex-login-process.js.map +1 -0
- package/dist/evaluation/codex-login-routes.d.ts +5 -0
- package/dist/evaluation/codex-login-routes.d.ts.map +1 -0
- package/dist/evaluation/codex-login-routes.js +55 -0
- package/dist/evaluation/codex-login-routes.js.map +1 -0
- package/dist/evaluation/codex-login.d.ts +42 -0
- package/dist/evaluation/codex-login.d.ts.map +1 -0
- package/dist/evaluation/codex-login.js +143 -0
- package/dist/evaluation/codex-login.js.map +1 -0
- package/dist/evaluation/comparisons.d.ts +65 -0
- package/dist/evaluation/comparisons.d.ts.map +1 -0
- package/dist/evaluation/comparisons.js +161 -0
- package/dist/evaluation/comparisons.js.map +1 -0
- package/dist/evaluation/config.d.ts +43 -0
- package/dist/evaluation/config.d.ts.map +1 -0
- package/dist/evaluation/config.js +116 -0
- package/dist/evaluation/config.js.map +1 -0
- package/dist/evaluation/cost.d.ts +3 -0
- package/dist/evaluation/cost.d.ts.map +1 -0
- package/dist/evaluation/cost.js +95 -0
- package/dist/evaluation/cost.js.map +1 -0
- package/dist/evaluation/credential-execution.d.ts +10 -0
- package/dist/evaluation/credential-execution.d.ts.map +1 -0
- package/dist/evaluation/credential-execution.js +65 -0
- package/dist/evaluation/credential-execution.js.map +1 -0
- package/dist/evaluation/credentials.d.ts +40 -0
- package/dist/evaluation/credentials.d.ts.map +1 -0
- package/dist/evaluation/credentials.js +146 -0
- package/dist/evaluation/credentials.js.map +1 -0
- package/dist/evaluation/encrypted-records.d.ts +15 -0
- package/dist/evaluation/encrypted-records.d.ts.map +1 -0
- package/dist/evaluation/encrypted-records.js +57 -0
- package/dist/evaluation/encrypted-records.js.map +1 -0
- package/dist/evaluation/gateway-execution.d.ts +18 -0
- package/dist/evaluation/gateway-execution.d.ts.map +1 -0
- package/dist/evaluation/gateway-execution.js +38 -0
- package/dist/evaluation/gateway-execution.js.map +1 -0
- package/dist/evaluation/harbor-cost.d.ts +3 -0
- package/dist/evaluation/harbor-cost.d.ts.map +1 -0
- package/dist/evaluation/harbor-cost.js +39 -0
- package/dist/evaluation/harbor-cost.js.map +1 -0
- package/dist/evaluation/harbor_e2b.py +20 -0
- package/dist/evaluation/harbor_gateway.py +22 -0
- package/dist/evaluation/harnesses.d.ts +8 -0
- package/dist/evaluation/harnesses.d.ts.map +1 -0
- package/dist/evaluation/harnesses.js +10 -0
- package/dist/evaluation/harnesses.js.map +1 -0
- package/dist/evaluation/model-options.d.ts +9 -0
- package/dist/evaluation/model-options.d.ts.map +1 -0
- package/dist/evaluation/model-options.js +81 -0
- package/dist/evaluation/model-options.js.map +1 -0
- package/dist/evaluation/org-credential-routes.d.ts +5 -0
- package/dist/evaluation/org-credential-routes.d.ts.map +1 -0
- package/dist/evaluation/org-credential-routes.js +56 -0
- package/dist/evaluation/org-credential-routes.js.map +1 -0
- package/dist/evaluation/org-records.d.ts +4 -0
- package/dist/evaluation/org-records.d.ts.map +1 -0
- package/dist/evaluation/org-records.js +14 -0
- package/dist/evaluation/org-records.js.map +1 -0
- package/dist/evaluation/output.d.ts +9 -0
- package/dist/evaluation/output.d.ts.map +1 -0
- package/dist/evaluation/output.js +171 -0
- package/dist/evaluation/output.js.map +1 -0
- package/dist/evaluation/platform-routes.d.ts +5 -0
- package/dist/evaluation/platform-routes.d.ts.map +1 -0
- package/dist/evaluation/platform-routes.js +123 -0
- package/dist/evaluation/platform-routes.js.map +1 -0
- package/dist/evaluation/profile-routes.d.ts +16 -0
- package/dist/evaluation/profile-routes.d.ts.map +1 -0
- package/dist/evaluation/profile-routes.js +47 -0
- package/dist/evaluation/profile-routes.js.map +1 -0
- package/dist/evaluation/profiles.d.ts +48 -0
- package/dist/evaluation/profiles.d.ts.map +1 -0
- package/dist/evaluation/profiles.js +134 -0
- package/dist/evaluation/profiles.js.map +1 -0
- package/dist/evaluation/providers.d.ts +11 -0
- package/dist/evaluation/providers.d.ts.map +1 -0
- package/dist/evaluation/providers.js +30 -0
- package/dist/evaluation/providers.js.map +1 -0
- package/dist/evaluation/routes.d.ts +23 -0
- package/dist/evaluation/routes.d.ts.map +1 -0
- package/dist/evaluation/routes.js +212 -0
- package/dist/evaluation/routes.js.map +1 -0
- package/dist/evaluation/runner.d.ts +16 -0
- package/dist/evaluation/runner.d.ts.map +1 -0
- package/dist/evaluation/runner.js +241 -0
- package/dist/evaluation/runner.js.map +1 -0
- package/dist/evaluation/store.d.ts +8 -0
- package/dist/evaluation/store.d.ts.map +1 -0
- package/dist/evaluation/store.js +60 -0
- package/dist/evaluation/store.js.map +1 -0
- package/dist/evaluation/types.d.ts +98 -0
- package/dist/evaluation/types.d.ts.map +1 -0
- package/dist/evaluation/types.js +2 -0
- package/dist/evaluation/types.js.map +1 -0
- package/dist/evaluation/worker-main.d.ts +2 -0
- package/dist/evaluation/worker-main.d.ts.map +1 -0
- package/dist/evaluation/worker-main.js +26 -0
- package/dist/evaluation/worker-main.js.map +1 -0
- package/dist/evaluation/worker-records.d.ts +5 -0
- package/dist/evaluation/worker-records.d.ts.map +1 -0
- package/dist/evaluation/worker-records.js +11 -0
- package/dist/evaluation/worker-records.js.map +1 -0
- package/dist/evaluation/workflow.d.ts +3 -0
- package/dist/evaluation/workflow.d.ts.map +1 -0
- package/dist/evaluation/workflow.js +20 -0
- package/dist/evaluation/workflow.js.map +1 -0
- package/dist/execution-environment.d.ts +3 -0
- package/dist/execution-environment.d.ts.map +1 -0
- package/dist/execution-environment.js +9 -0
- package/dist/execution-environment.js.map +1 -0
- package/dist/extension-authoring.bundle.js +347 -0
- package/dist/extension-verifier.bundle.js +73 -0
- package/dist/extensions/authoring.d.ts.map +1 -1
- package/dist/extensions/authoring.js +70 -59
- package/dist/extensions/authoring.js.map +1 -1
- package/dist/extensions/shared/deliverable.d.ts +33 -0
- package/dist/extensions/shared/deliverable.d.ts.map +1 -0
- package/dist/extensions/shared/deliverable.js +123 -0
- package/dist/extensions/shared/deliverable.js.map +1 -0
- package/dist/extensions/shared/mailbox.d.ts +33 -0
- package/dist/extensions/shared/mailbox.d.ts.map +1 -0
- package/dist/extensions/shared/mailbox.js +102 -0
- package/dist/extensions/shared/mailbox.js.map +1 -0
- package/dist/extensions/shared/schemas.d.ts +90 -0
- package/dist/extensions/shared/schemas.d.ts.map +1 -0
- package/dist/extensions/shared/schemas.js +71 -0
- package/dist/extensions/shared/schemas.js.map +1 -0
- package/dist/extensions/shared/static-check.d.ts +38 -0
- package/dist/extensions/shared/static-check.d.ts.map +1 -0
- package/dist/extensions/shared/static-check.js +52 -0
- package/dist/extensions/shared/static-check.js.map +1 -0
- package/dist/extensions/verifier.d.ts +4 -0
- package/dist/extensions/verifier.d.ts.map +1 -0
- package/dist/extensions/verifier.js +70 -0
- package/dist/extensions/verifier.js.map +1 -0
- package/dist/github.d.ts +1 -1
- package/dist/github.d.ts.map +1 -1
- package/dist/github.js +3 -3
- package/dist/github.js.map +1 -1
- package/dist/harbor-environment.d.ts +13 -1
- package/dist/harbor-environment.d.ts.map +1 -1
- package/dist/harbor-environment.js +37 -4
- package/dist/harbor-environment.js.map +1 -1
- package/dist/harbor-results.d.ts +2 -0
- package/dist/harbor-results.d.ts.map +1 -1
- package/dist/harbor-results.js +2 -0
- package/dist/harbor-results.js.map +1 -1
- package/dist/harbor-task/compiler.d.ts +10 -0
- package/dist/harbor-task/compiler.d.ts.map +1 -0
- package/dist/harbor-task/compiler.js +174 -0
- package/dist/harbor-task/compiler.js.map +1 -0
- package/dist/harbor-task/constants.d.ts +3 -0
- package/dist/harbor-task/constants.d.ts.map +1 -0
- package/dist/harbor-task/constants.js +3 -0
- package/dist/harbor-task/constants.js.map +1 -0
- package/dist/harbor-task/dependencies.d.ts +3 -0
- package/dist/harbor-task/dependencies.d.ts.map +1 -0
- package/dist/harbor-task/dependencies.js +20 -0
- package/dist/harbor-task/dependencies.js.map +1 -0
- package/dist/harbor-task/paths.d.ts +6 -0
- package/dist/harbor-task/paths.d.ts.map +1 -0
- package/dist/harbor-task/paths.js +37 -0
- package/dist/harbor-task/paths.js.map +1 -0
- package/dist/harbor-task/render.d.ts +11 -0
- package/dist/harbor-task/render.d.ts.map +1 -0
- package/dist/harbor-task/render.js +194 -0
- package/dist/harbor-task/render.js.map +1 -0
- package/dist/harbor-task/runtime/command.sh +26 -0
- package/dist/harbor-task/runtime/junit.py +69 -0
- package/dist/harbor-task/runtime-assets.d.ts +2 -0
- package/dist/harbor-task/runtime-assets.d.ts.map +1 -0
- package/dist/harbor-task/runtime-assets.js +8 -0
- package/dist/harbor-task/runtime-assets.js.map +1 -0
- package/dist/harbor-task/test-patch.d.ts +4 -0
- package/dist/harbor-task/test-patch.d.ts.map +1 -0
- package/dist/harbor-task/test-patch.js +15 -0
- package/dist/harbor-task/test-patch.js.map +1 -0
- package/dist/harbor-task/verifier.d.ts +4 -0
- package/dist/harbor-task/verifier.d.ts.map +1 -0
- package/dist/harbor-task/verifier.js +105 -0
- package/dist/harbor-task/verifier.js.map +1 -0
- package/dist/harbor-task.d.ts +3 -11
- package/dist/harbor-task.d.ts.map +1 -1
- package/dist/harbor-task.js +2 -463
- package/dist/harbor-task.js.map +1 -1
- package/dist/log-excerpt.d.ts +15 -0
- package/dist/log-excerpt.d.ts.map +1 -0
- package/dist/log-excerpt.js +104 -0
- package/dist/log-excerpt.js.map +1 -0
- package/dist/patch-check.d.ts +26 -0
- package/dist/patch-check.d.ts.map +1 -0
- package/dist/patch-check.js +137 -0
- package/dist/patch-check.js.map +1 -0
- package/dist/pi-event-feed.d.ts +16 -0
- package/dist/pi-event-feed.d.ts.map +1 -0
- package/dist/pi-event-feed.js +86 -0
- package/dist/pi-event-feed.js.map +1 -0
- package/dist/pi-session.d.ts +32 -0
- package/dist/pi-session.d.ts.map +1 -0
- package/dist/pi-session.js +175 -0
- package/dist/pi-session.js.map +1 -0
- package/dist/process.d.ts +5 -0
- package/dist/process.d.ts.map +1 -1
- package/dist/process.js +31 -9
- package/dist/process.js.map +1 -1
- package/dist/provenance/github.d.ts +4 -0
- package/dist/provenance/github.d.ts.map +1 -0
- package/dist/provenance/github.js +65 -0
- package/dist/provenance/github.js.map +1 -0
- package/dist/provenance/local.d.ts +4 -0
- package/dist/provenance/local.d.ts.map +1 -0
- package/dist/provenance/local.js +82 -0
- package/dist/provenance/local.js.map +1 -0
- package/dist/provenance/redact.d.ts +2 -0
- package/dist/provenance/redact.d.ts.map +1 -0
- package/dist/provenance/redact.js +28 -0
- package/dist/provenance/redact.js.map +1 -0
- package/dist/provenance/selection.d.ts +4 -0
- package/dist/provenance/selection.d.ts.map +1 -0
- package/dist/provenance/selection.js +29 -0
- package/dist/provenance/selection.js.map +1 -0
- package/dist/provenance/session.d.ts +3 -0
- package/dist/provenance/session.d.ts.map +1 -0
- package/dist/provenance/session.js +214 -0
- package/dist/provenance/session.js.map +1 -0
- package/dist/provenance/shared.d.ts +7 -0
- package/dist/provenance/shared.d.ts.map +1 -0
- package/dist/provenance/shared.js +10 -0
- package/dist/provenance/shared.js.map +1 -0
- package/dist/provenance/types.d.ts +34 -0
- package/dist/provenance/types.d.ts.map +1 -0
- package/dist/provenance/types.js +22 -0
- package/dist/provenance/types.js.map +1 -0
- package/dist/provenance-associations/apply.d.ts +3 -0
- package/dist/provenance-associations/apply.d.ts.map +1 -0
- package/dist/provenance-associations/apply.js +66 -0
- package/dist/provenance-associations/apply.js.map +1 -0
- package/dist/provenance-associations/shared.d.ts +45 -0
- package/dist/provenance-associations/shared.d.ts.map +1 -0
- package/dist/provenance-associations/shared.js +42 -0
- package/dist/provenance-associations/shared.js.map +1 -0
- package/dist/provenance-associations.d.ts +3 -30
- package/dist/provenance-associations.d.ts.map +1 -1
- package/dist/provenance-associations.js +4 -103
- package/dist/provenance-associations.js.map +1 -1
- package/dist/provenance.d.ts +7 -41
- package/dist/provenance.d.ts.map +1 -1
- package/dist/provenance.js +6 -432
- package/dist/provenance.js.map +1 -1
- package/dist/providers.d.ts +25 -2
- package/dist/providers.d.ts.map +1 -1
- package/dist/providers.js +23 -2
- package/dist/providers.js.map +1 -1
- package/dist/repair.d.ts +1 -6
- package/dist/repair.d.ts.map +1 -1
- package/dist/repair.js +17 -27
- package/dist/repair.js.map +1 -1
- package/dist/review/assets/index-BHHztQ9x.js +1679 -0
- package/dist/review/assets/index-KQ1eFQ0t.css +1 -0
- package/dist/review/index.html +11 -8
- package/dist/runtime/command.sh +26 -0
- package/dist/runtime/junit.py +69 -0
- package/dist/sandbox/contracts.d.ts +36 -1
- package/dist/sandbox/contracts.d.ts.map +1 -1
- package/dist/sandbox/contracts.js +3 -0
- package/dist/sandbox/contracts.js.map +1 -1
- package/dist/sandbox/index.d.ts +1 -1
- package/dist/sandbox/index.d.ts.map +1 -1
- package/dist/sandbox/index.js +13 -2
- package/dist/sandbox/index.js.map +1 -1
- package/dist/sandbox/live.d.ts +18 -0
- package/dist/sandbox/live.d.ts.map +1 -0
- package/dist/sandbox/live.js +55 -0
- package/dist/sandbox/live.js.map +1 -0
- package/dist/sandbox/output-retry.d.ts +16 -0
- package/dist/sandbox/output-retry.d.ts.map +1 -0
- package/dist/sandbox/output-retry.js +36 -0
- package/dist/sandbox/output-retry.js.map +1 -0
- package/dist/sandbox/programs/author.js +16 -6
- package/dist/sandbox/programs/author.js.map +1 -1
- package/dist/sandbox/programs/check.d.ts +3 -0
- package/dist/sandbox/programs/check.d.ts.map +1 -0
- package/dist/sandbox/programs/check.js +76 -0
- package/dist/sandbox/programs/check.js.map +1 -0
- package/dist/sandbox/programs/prepare-task.d.ts +12 -0
- package/dist/sandbox/programs/prepare-task.d.ts.map +1 -0
- package/dist/sandbox/programs/{prepare-repair.js → prepare-task.js} +11 -9
- package/dist/sandbox/programs/prepare-task.js.map +1 -0
- package/dist/sandbox/programs/verifier.d.ts +3 -0
- package/dist/sandbox/programs/verifier.d.ts.map +1 -0
- package/dist/sandbox/programs/verifier.js +9 -0
- package/dist/sandbox/programs/verifier.js.map +1 -0
- package/dist/sandbox/providers/docker/executor.d.ts +4 -1
- package/dist/sandbox/providers/docker/executor.d.ts.map +1 -1
- package/dist/sandbox/providers/docker/executor.js +75 -25
- package/dist/sandbox/providers/docker/executor.js.map +1 -1
- package/dist/sandbox/providers/e2b/bytes.d.ts +3 -0
- package/dist/sandbox/providers/e2b/bytes.d.ts.map +1 -0
- package/dist/sandbox/providers/e2b/bytes.js +8 -0
- package/dist/sandbox/providers/e2b/bytes.js.map +1 -0
- package/dist/sandbox/providers/e2b/cleanup.d.ts +8 -0
- package/dist/sandbox/providers/e2b/cleanup.d.ts.map +1 -0
- package/dist/sandbox/providers/e2b/cleanup.js +124 -0
- package/dist/sandbox/providers/e2b/cleanup.js.map +1 -0
- package/dist/sandbox/providers/e2b/command.d.ts +23 -0
- package/dist/sandbox/providers/e2b/command.d.ts.map +1 -0
- package/dist/sandbox/providers/e2b/command.js +160 -0
- package/dist/sandbox/providers/e2b/command.js.map +1 -0
- package/dist/sandbox/providers/e2b/config.d.ts +13 -0
- package/dist/sandbox/providers/e2b/config.d.ts.map +1 -0
- package/dist/sandbox/providers/e2b/config.js +2 -0
- package/dist/sandbox/providers/e2b/config.js.map +1 -0
- package/dist/sandbox/providers/e2b/executor.d.ts +15 -0
- package/dist/sandbox/providers/e2b/executor.d.ts.map +1 -0
- package/dist/sandbox/providers/e2b/executor.js +207 -0
- package/dist/sandbox/providers/e2b/executor.js.map +1 -0
- package/dist/sandbox/providers/e2b/lifecycle.d.ts +8 -0
- package/dist/sandbox/providers/e2b/lifecycle.d.ts.map +1 -0
- package/dist/sandbox/providers/e2b/lifecycle.js +37 -0
- package/dist/sandbox/providers/e2b/lifecycle.js.map +1 -0
- package/dist/sandbox/providers/e2b/outcome.d.ts +11 -0
- package/dist/sandbox/providers/e2b/outcome.d.ts.map +1 -0
- package/dist/sandbox/providers/e2b/outcome.js +72 -0
- package/dist/sandbox/providers/e2b/outcome.js.map +1 -0
- package/dist/sandbox/providers/e2b/stage-files.d.ts +10 -0
- package/dist/sandbox/providers/e2b/stage-files.d.ts.map +1 -0
- package/dist/sandbox/providers/e2b/stage-files.js +45 -0
- package/dist/sandbox/providers/e2b/stage-files.js.map +1 -0
- package/dist/sandbox/providers/e2b/startup.d.ts +10 -0
- package/dist/sandbox/providers/e2b/startup.d.ts.map +1 -0
- package/dist/sandbox/providers/e2b/startup.js +26 -0
- package/dist/sandbox/providers/e2b/startup.js.map +1 -0
- package/dist/sandbox/providers/e2b/types.d.ts +9 -0
- package/dist/sandbox/providers/e2b/types.d.ts.map +1 -0
- package/dist/sandbox/providers/e2b/types.js +2 -0
- package/dist/sandbox/providers/e2b/types.js.map +1 -0
- package/dist/sandbox/providers/e2b/validation.d.ts +14 -0
- package/dist/sandbox/providers/e2b/validation.d.ts.map +1 -0
- package/dist/sandbox/providers/e2b/validation.js +60 -0
- package/dist/sandbox/providers/e2b/validation.js.map +1 -0
- package/dist/{modal-auth.d.ts → sandbox/providers/modal/auth.d.ts} +1 -1
- package/dist/sandbox/providers/modal/auth.d.ts.map +1 -0
- package/dist/{modal-auth.js → sandbox/providers/modal/auth.js} +1 -1
- package/dist/sandbox/providers/modal/auth.js.map +1 -0
- package/dist/sandbox/providers/modal/executor.d.ts +4 -1
- package/dist/sandbox/providers/modal/executor.d.ts.map +1 -1
- package/dist/sandbox/providers/modal/executor.js +33 -9
- package/dist/sandbox/providers/modal/executor.js.map +1 -1
- package/dist/sandbox/providers/modal/live.d.ts +7 -0
- package/dist/sandbox/providers/modal/live.d.ts.map +1 -0
- package/dist/sandbox/providers/modal/live.js +50 -0
- package/dist/sandbox/providers/modal/live.js.map +1 -0
- package/dist/sandbox/providers/vercel/command.d.ts +6 -0
- package/dist/sandbox/providers/vercel/command.d.ts.map +1 -1
- package/dist/sandbox/providers/vercel/command.js +44 -11
- package/dist/sandbox/providers/vercel/command.js.map +1 -1
- package/dist/sandbox/providers/vercel/executor.d.ts +6 -7
- package/dist/sandbox/providers/vercel/executor.d.ts.map +1 -1
- package/dist/sandbox/providers/vercel/executor.js +21 -187
- package/dist/sandbox/providers/vercel/executor.js.map +1 -1
- package/dist/sandbox/providers/vercel/lifecycle.d.ts +13 -0
- package/dist/sandbox/providers/vercel/lifecycle.d.ts.map +1 -0
- package/dist/sandbox/providers/vercel/lifecycle.js +140 -0
- package/dist/sandbox/providers/vercel/lifecycle.js.map +1 -0
- package/dist/sandbox/providers/vercel/validation.d.ts +11 -0
- package/dist/sandbox/providers/vercel/validation.d.ts.map +1 -0
- package/dist/sandbox/providers/vercel/validation.js +30 -0
- package/dist/sandbox/providers/vercel/validation.js.map +1 -0
- package/dist/sandbox/remote-files.d.ts +11 -0
- package/dist/sandbox/remote-files.d.ts.map +1 -0
- package/dist/sandbox/remote-files.js +41 -0
- package/dist/sandbox/remote-files.js.map +1 -0
- package/dist/sandbox/request-validation.d.ts +5 -0
- package/dist/sandbox/request-validation.d.ts.map +1 -0
- package/dist/sandbox/request-validation.js +43 -0
- package/dist/sandbox/request-validation.js.map +1 -0
- package/dist/sandbox/supervisor.d.ts +42 -0
- package/dist/sandbox/supervisor.d.ts.map +1 -0
- package/dist/sandbox/supervisor.js +126 -0
- package/dist/sandbox/supervisor.js.map +1 -0
- package/dist/sandbox/timeout.d.ts +6 -1
- package/dist/sandbox/timeout.d.ts.map +1 -1
- package/dist/sandbox/timeout.js +12 -0
- package/dist/sandbox/timeout.js.map +1 -1
- package/dist/sandbox-author.bundle.js +47 -14879
- package/dist/{sandbox-validation-repair.bundle.js → sandbox-check.bundle.js} +7261 -1893
- package/dist/sandbox-verifier.bundle.js +307 -0
- package/dist/setup/e2b/build.d.ts +24 -0
- package/dist/setup/e2b/build.d.ts.map +1 -0
- package/dist/setup/e2b/build.js +46 -0
- package/dist/setup/e2b/build.js.map +1 -0
- package/dist/setup/e2b/cli.d.ts +2 -0
- package/dist/setup/e2b/cli.d.ts.map +1 -0
- package/dist/setup/e2b/cli.js +51 -0
- package/dist/setup/e2b/cli.js.map +1 -0
- package/dist/setup/e2b/index.d.ts +5 -0
- package/dist/setup/e2b/index.d.ts.map +1 -0
- package/dist/setup/e2b/index.js +4 -0
- package/dist/setup/e2b/index.js.map +1 -0
- package/dist/setup/e2b/template.d.ts +4 -0
- package/dist/setup/e2b/template.d.ts.map +1 -0
- package/dist/setup/e2b/template.js +53 -0
- package/dist/setup/e2b/template.js.map +1 -0
- package/dist/setup/vercel/cli-helpers.d.ts +22 -0
- package/dist/setup/vercel/cli-helpers.d.ts.map +1 -0
- package/dist/setup/vercel/cli-helpers.js +87 -0
- package/dist/setup/vercel/cli-helpers.js.map +1 -0
- package/dist/setup/vercel/cli-runner.d.ts +14 -0
- package/dist/setup/vercel/cli-runner.d.ts.map +1 -0
- package/dist/setup/vercel/cli-runner.js +24 -0
- package/dist/setup/vercel/cli-runner.js.map +1 -0
- package/dist/setup/vercel/cli-types.d.ts +24 -0
- package/dist/setup/vercel/cli-types.d.ts.map +1 -0
- package/dist/setup/vercel/cli-types.js +18 -0
- package/dist/setup/vercel/cli-types.js.map +1 -0
- package/dist/setup/vercel/cli.d.ts +5 -31
- package/dist/setup/vercel/cli.d.ts.map +1 -1
- package/dist/setup/vercel/cli.js +15 -125
- package/dist/setup/vercel/cli.js.map +1 -1
- package/dist/setup/vercel/profile-files.d.ts +6 -0
- package/dist/setup/vercel/profile-files.d.ts.map +1 -0
- package/dist/setup/vercel/profile-files.js +100 -0
- package/dist/setup/vercel/profile-files.js.map +1 -0
- package/dist/setup/vercel/profile-schema.d.ts +48 -0
- package/dist/setup/vercel/profile-schema.d.ts.map +1 -0
- package/dist/setup/vercel/profile-schema.js +39 -0
- package/dist/setup/vercel/profile-schema.js.map +1 -0
- package/dist/setup/vercel/profile.d.ts +3 -19
- package/dist/setup/vercel/profile.d.ts.map +1 -1
- package/dist/setup/vercel/profile.js +4 -130
- package/dist/setup/vercel/profile.js.map +1 -1
- package/dist/setup/vercel/selection.d.ts +18 -0
- package/dist/setup/vercel/selection.d.ts.map +1 -0
- package/dist/setup/vercel/selection.js +113 -0
- package/dist/setup/vercel/selection.js.map +1 -0
- package/dist/setup/vercel/setup-types.d.ts +34 -0
- package/dist/setup/vercel/setup-types.d.ts.map +1 -0
- package/dist/setup/vercel/setup-types.js +2 -0
- package/dist/setup/vercel/setup-types.js.map +1 -0
- package/dist/setup/vercel/setup.d.ts +3 -28
- package/dist/setup/vercel/setup.d.ts.map +1 -1
- package/dist/setup/vercel/setup.js +3 -111
- package/dist/setup/vercel/setup.js.map +1 -1
- package/dist/site/batch-activity.d.ts +5 -0
- package/dist/site/batch-activity.d.ts.map +1 -0
- package/dist/site/batch-activity.js +31 -0
- package/dist/site/batch-activity.js.map +1 -0
- package/dist/site/batch-progress.d.ts +16 -0
- package/dist/site/batch-progress.d.ts.map +1 -0
- package/dist/site/batch-progress.js +52 -0
- package/dist/site/batch-progress.js.map +1 -0
- package/dist/site/batch-routes.d.ts +30 -0
- package/dist/site/batch-routes.d.ts.map +1 -0
- package/dist/site/batch-routes.js +117 -0
- package/dist/site/batch-routes.js.map +1 -0
- package/dist/site/batch-start.d.ts +60 -0
- package/dist/site/batch-start.d.ts.map +1 -0
- package/dist/site/batch-start.js +39 -0
- package/dist/site/batch-start.js.map +1 -0
- package/dist/site/connected-repos.d.ts +25 -0
- package/dist/site/connected-repos.d.ts.map +1 -0
- package/dist/site/connected-repos.js +109 -0
- package/dist/site/connected-repos.js.map +1 -0
- package/dist/site/evaluation-start.d.ts +4 -0
- package/dist/site/evaluation-start.d.ts.map +1 -0
- package/dist/site/evaluation-start.js +19 -0
- package/dist/site/evaluation-start.js.map +1 -0
- package/dist/site/generation-config.d.ts +4 -0
- package/dist/site/generation-config.d.ts.map +1 -0
- package/dist/site/generation-config.js +16 -0
- package/dist/site/generation-config.js.map +1 -0
- package/dist/site/generation-credentials.d.ts +6 -0
- package/dist/site/generation-credentials.d.ts.map +1 -0
- package/dist/site/generation-credentials.js +101 -0
- package/dist/site/generation-credentials.js.map +1 -0
- package/dist/site/generation-run.d.ts +6 -0
- package/dist/site/generation-run.d.ts.map +1 -0
- package/dist/site/generation-run.js +22 -0
- package/dist/site/generation-run.js.map +1 -0
- package/dist/site/generation-settings.d.ts +80 -0
- package/dist/site/generation-settings.d.ts.map +1 -0
- package/dist/site/generation-settings.js +84 -0
- package/dist/site/generation-settings.js.map +1 -0
- package/dist/site/generation-subscription.d.ts +3 -0
- package/dist/site/generation-subscription.d.ts.map +1 -0
- package/dist/site/generation-subscription.js +38 -0
- package/dist/site/generation-subscription.js.map +1 -0
- package/dist/site/github-repos.d.ts +35 -0
- package/dist/site/github-repos.d.ts.map +1 -0
- package/dist/site/github-repos.js +121 -0
- package/dist/site/github-repos.js.map +1 -0
- package/dist/site/pr-candidate.d.ts +26 -0
- package/dist/site/pr-candidate.d.ts.map +1 -0
- package/dist/site/pr-candidate.js +101 -0
- package/dist/site/pr-candidate.js.map +1 -0
- package/dist/site/pr-list.d.ts +13 -0
- package/dist/site/pr-list.d.ts.map +1 -0
- package/dist/site/pr-list.js +24 -0
- package/dist/site/pr-list.js.map +1 -0
- package/dist/site/pr-routes.d.ts +26 -0
- package/dist/site/pr-routes.d.ts.map +1 -0
- package/dist/site/pr-routes.js +139 -0
- package/dist/site/pr-routes.js.map +1 -0
- package/dist/site/repo-store.d.ts +40 -0
- package/dist/site/repo-store.d.ts.map +1 -0
- package/dist/site/repo-store.js +74 -0
- package/dist/site/repo-store.js.map +1 -0
- package/dist/site/run-store.d.ts +17 -0
- package/dist/site/run-store.d.ts.map +1 -0
- package/dist/site/run-store.js +42 -0
- package/dist/site/run-store.js.map +1 -0
- package/dist/site/runtime.d.ts +27 -0
- package/dist/site/runtime.d.ts.map +1 -0
- package/dist/site/runtime.js +97 -0
- package/dist/site/runtime.js.map +1 -0
- package/dist/site/task-deletion.d.ts +7 -0
- package/dist/site/task-deletion.d.ts.map +1 -0
- package/dist/site/task-deletion.js +29 -0
- package/dist/site/task-deletion.js.map +1 -0
- package/dist/site/task-start-reservation.d.ts +4 -0
- package/dist/site/task-start-reservation.d.ts.map +1 -0
- package/dist/site/task-start-reservation.js +18 -0
- package/dist/site/task-start-reservation.js.map +1 -0
- package/dist/site/task-start.d.ts +33 -0
- package/dist/site/task-start.d.ts.map +1 -0
- package/dist/site/task-start.js +50 -0
- package/dist/site/task-start.js.map +1 -0
- package/dist/site/task-status.d.ts +36 -0
- package/dist/site/task-status.d.ts.map +1 -0
- package/dist/site/task-status.js +113 -0
- package/dist/site/task-status.js.map +1 -0
- package/dist/site/task-store.d.ts +78 -0
- package/dist/site/task-store.d.ts.map +1 -0
- package/dist/site/task-store.js +186 -0
- package/dist/site/task-store.js.map +1 -0
- package/dist/site/task-sync.d.ts +30 -0
- package/dist/site/task-sync.d.ts.map +1 -0
- package/dist/site/task-sync.js +121 -0
- package/dist/site/task-sync.js.map +1 -0
- package/dist/site/tasks.d.ts +47 -0
- package/dist/site/tasks.d.ts.map +1 -0
- package/dist/site/tasks.js +164 -0
- package/dist/site/tasks.js.map +1 -0
- package/dist/site/temporal-status.d.ts +8 -0
- package/dist/site/temporal-status.d.ts.map +1 -0
- package/dist/site/temporal-status.js +41 -0
- package/dist/site/temporal-status.js.map +1 -0
- package/dist/site/tenant.d.ts +4 -0
- package/dist/site/tenant.d.ts.map +1 -0
- package/dist/site/tenant.js +6 -0
- package/dist/site/tenant.js.map +1 -0
- package/dist/static-check.d.ts +38 -0
- package/dist/static-check.d.ts.map +1 -0
- package/dist/static-check.js +131 -0
- package/dist/static-check.js.map +1 -0
- package/dist/submission-hash.d.ts +18 -0
- package/dist/submission-hash.d.ts.map +1 -0
- package/dist/submission-hash.js +16 -0
- package/dist/submission-hash.js.map +1 -0
- package/dist/subscription-auth.d.ts +0 -7
- package/dist/subscription-auth.d.ts.map +1 -1
- package/dist/subscription-auth.js +3 -23
- package/dist/subscription-auth.js.map +1 -1
- package/dist/temporal/activities/agent-feed.d.ts +5 -0
- package/dist/temporal/activities/agent-feed.d.ts.map +1 -0
- package/dist/temporal/activities/agent-feed.js +41 -0
- package/dist/temporal/activities/agent-feed.js.map +1 -0
- package/dist/temporal/activities/agent-scripts.d.ts +16 -0
- package/dist/temporal/activities/agent-scripts.d.ts.map +1 -0
- package/dist/temporal/activities/agent-scripts.js +162 -0
- package/dist/temporal/activities/agent-scripts.js.map +1 -0
- package/dist/temporal/activities/authoring-round.d.ts +13 -0
- package/dist/temporal/activities/authoring-round.d.ts.map +1 -0
- package/dist/temporal/activities/authoring-round.js +160 -0
- package/dist/temporal/activities/authoring-round.js.map +1 -0
- package/dist/temporal/activities/constants.d.ts +5 -0
- package/dist/temporal/activities/constants.d.ts.map +1 -0
- package/dist/temporal/activities/constants.js +5 -0
- package/dist/temporal/activities/constants.js.map +1 -0
- package/dist/temporal/activities/discovery.d.ts +17 -0
- package/dist/temporal/activities/discovery.d.ts.map +1 -0
- package/dist/temporal/activities/discovery.js +153 -0
- package/dist/temporal/activities/discovery.js.map +1 -0
- package/dist/temporal/activities/drafts.d.ts +15 -0
- package/dist/temporal/activities/drafts.d.ts.map +1 -0
- package/dist/temporal/activities/drafts.js +51 -0
- package/dist/temporal/activities/drafts.js.map +1 -0
- package/dist/temporal/activities/excluded-source-prs.d.ts +9 -0
- package/dist/temporal/activities/excluded-source-prs.d.ts.map +1 -0
- package/dist/temporal/activities/excluded-source-prs.js +132 -0
- package/dist/temporal/activities/excluded-source-prs.js.map +1 -0
- package/dist/temporal/activities/export.d.ts +38 -0
- package/dist/temporal/activities/export.d.ts.map +1 -0
- package/dist/temporal/activities/export.js +79 -0
- package/dist/temporal/activities/export.js.map +1 -0
- package/dist/temporal/activities/factory.d.ts +5 -0
- package/dist/temporal/activities/factory.d.ts.map +1 -0
- package/dist/temporal/activities/factory.js +26 -0
- package/dist/temporal/activities/factory.js.map +1 -0
- package/dist/temporal/activities/gate-logs.d.ts +20 -0
- package/dist/temporal/activities/gate-logs.d.ts.map +1 -0
- package/dist/temporal/activities/gate-logs.js +62 -0
- package/dist/temporal/activities/gate-logs.js.map +1 -0
- package/dist/temporal/activities/generation-runtime.d.ts +6 -0
- package/dist/temporal/activities/generation-runtime.d.ts.map +1 -0
- package/dist/temporal/activities/generation-runtime.js +56 -0
- package/dist/temporal/activities/generation-runtime.js.map +1 -0
- package/dist/temporal/activities/harbor.d.ts +11 -0
- package/dist/temporal/activities/harbor.d.ts.map +1 -0
- package/dist/temporal/activities/harbor.js +112 -0
- package/dist/temporal/activities/harbor.js.map +1 -0
- package/dist/temporal/activities/modal-build-log.d.ts +12 -0
- package/dist/temporal/activities/modal-build-log.d.ts.map +1 -0
- package/dist/temporal/activities/modal-build-log.js +57 -0
- package/dist/temporal/activities/modal-build-log.js.map +1 -0
- package/dist/temporal/activities/prompts-authoring.d.ts +6 -0
- package/dist/temporal/activities/prompts-authoring.d.ts.map +1 -0
- package/dist/temporal/activities/prompts-authoring.js +87 -0
- package/dist/temporal/activities/prompts-authoring.js.map +1 -0
- package/dist/temporal/activities/prompts-verifier.d.ts +17 -0
- package/dist/temporal/activities/prompts-verifier.d.ts.map +1 -0
- package/dist/temporal/activities/prompts-verifier.js +66 -0
- package/dist/temporal/activities/prompts-verifier.js.map +1 -0
- package/dist/temporal/activities/provenance.d.ts +4 -0
- package/dist/temporal/activities/provenance.d.ts.map +1 -0
- package/dist/temporal/activities/provenance.js +18 -0
- package/dist/temporal/activities/provenance.js.map +1 -0
- package/dist/temporal/activities/replay.d.ts +20 -0
- package/dist/temporal/activities/replay.d.ts.map +1 -0
- package/dist/temporal/activities/replay.js +135 -0
- package/dist/temporal/activities/replay.js.map +1 -0
- package/dist/temporal/activities/round-outcome.d.ts +63 -0
- package/dist/temporal/activities/round-outcome.d.ts.map +1 -0
- package/dist/temporal/activities/round-outcome.js +127 -0
- package/dist/temporal/activities/round-outcome.js.map +1 -0
- package/dist/temporal/activities/runtime.d.ts +38 -0
- package/dist/temporal/activities/runtime.d.ts.map +1 -0
- package/dist/temporal/activities/runtime.js +146 -0
- package/dist/temporal/activities/runtime.js.map +1 -0
- package/dist/temporal/activities/session-verify.d.ts +45 -0
- package/dist/temporal/activities/session-verify.d.ts.map +1 -0
- package/dist/temporal/activities/session-verify.js +91 -0
- package/dist/temporal/activities/session-verify.js.map +1 -0
- package/dist/temporal/activities/submissions.d.ts +9 -0
- package/dist/temporal/activities/submissions.d.ts.map +1 -0
- package/dist/temporal/activities/submissions.js +28 -0
- package/dist/temporal/activities/submissions.js.map +1 -0
- package/dist/temporal/activities/task-compiler.d.ts +21 -0
- package/dist/temporal/activities/task-compiler.d.ts.map +1 -0
- package/dist/temporal/activities/task-compiler.js +63 -0
- package/dist/temporal/activities/task-compiler.js.map +1 -0
- package/dist/temporal/activities/types.d.ts +57 -0
- package/dist/temporal/activities/types.d.ts.map +1 -0
- package/dist/temporal/activities/types.js +2 -0
- package/dist/temporal/activities/types.js.map +1 -0
- package/dist/temporal/activities/verifier-material.d.ts +18 -0
- package/dist/temporal/activities/verifier-material.d.ts.map +1 -0
- package/dist/temporal/activities/verifier-material.js +49 -0
- package/dist/temporal/activities/verifier-material.js.map +1 -0
- package/dist/temporal/activities/verifier-outcome.d.ts +19 -0
- package/dist/temporal/activities/verifier-outcome.d.ts.map +1 -0
- package/dist/temporal/activities/verifier-outcome.js +70 -0
- package/dist/temporal/activities/verifier-outcome.js.map +1 -0
- package/dist/temporal/activities/verifier-round.d.ts +8 -0
- package/dist/temporal/activities/verifier-round.d.ts.map +1 -0
- package/dist/temporal/activities/verifier-round.js +110 -0
- package/dist/temporal/activities/verifier-round.js.map +1 -0
- package/dist/temporal/activities/verify-harbor.d.ts +15 -0
- package/dist/temporal/activities/verify-harbor.d.ts.map +1 -0
- package/dist/temporal/activities/verify-harbor.js +193 -0
- package/dist/temporal/activities/verify-harbor.js.map +1 -0
- package/dist/temporal/activities/verify.d.ts +11 -0
- package/dist/temporal/activities/verify.d.ts.map +1 -0
- package/dist/temporal/activities/verify.js +151 -0
- package/dist/temporal/activities/verify.js.map +1 -0
- package/dist/temporal/activities.d.ts +3 -51
- package/dist/temporal/activities.d.ts.map +1 -1
- package/dist/temporal/activities.js +2 -886
- package/dist/temporal/activities.js.map +1 -1
- package/dist/temporal/connection.d.ts.map +1 -1
- package/dist/temporal/connection.js +3 -2
- package/dist/temporal/connection.js.map +1 -1
- package/dist/temporal/worker-main.js +19 -3
- package/dist/temporal/worker-main.js.map +1 -1
- package/dist/temporal/workflow/activity-proxies.d.ts +3 -0
- package/dist/temporal/workflow/activity-proxies.d.ts.map +1 -0
- package/dist/temporal/workflow/activity-proxies.js +45 -0
- package/dist/temporal/workflow/activity-proxies.js.map +1 -0
- package/dist/temporal/workflow/authoring-stage.d.ts +5 -0
- package/dist/temporal/workflow/authoring-stage.d.ts.map +1 -0
- package/dist/temporal/workflow/authoring-stage.js +64 -0
- package/dist/temporal/workflow/authoring-stage.js.map +1 -0
- package/dist/temporal/workflow/candidate-tracker.d.ts +28 -0
- package/dist/temporal/workflow/candidate-tracker.d.ts.map +1 -0
- package/dist/temporal/workflow/candidate-tracker.js +85 -0
- package/dist/temporal/workflow/candidate-tracker.js.map +1 -0
- package/dist/temporal/workflow/candidate.d.ts +6 -0
- package/dist/temporal/workflow/candidate.d.ts.map +1 -0
- package/dist/temporal/workflow/candidate.js +54 -0
- package/dist/temporal/workflow/candidate.js.map +1 -0
- package/dist/temporal/workflow/discovery.d.ts +19 -0
- package/dist/temporal/workflow/discovery.d.ts.map +1 -0
- package/dist/temporal/workflow/discovery.js +137 -0
- package/dist/temporal/workflow/discovery.js.map +1 -0
- package/dist/temporal/workflow/failures.d.ts +5 -0
- package/dist/temporal/workflow/failures.d.ts.map +1 -0
- package/dist/temporal/workflow/failures.js +28 -0
- package/dist/temporal/workflow/failures.js.map +1 -0
- package/dist/temporal/workflow/run.d.ts +5 -0
- package/dist/temporal/workflow/run.d.ts.map +1 -0
- package/dist/temporal/workflow/run.js +154 -0
- package/dist/temporal/workflow/run.js.map +1 -0
- package/dist/temporal/workflow/stage.d.ts +26 -0
- package/dist/temporal/workflow/stage.d.ts.map +1 -0
- package/dist/temporal/workflow/stage.js +16 -0
- package/dist/temporal/workflow/stage.js.map +1 -0
- package/dist/temporal/workflow/verification-stage.d.ts +11 -0
- package/dist/temporal/workflow/verification-stage.d.ts.map +1 -0
- package/dist/temporal/workflow/verification-stage.js +20 -0
- package/dist/temporal/workflow/verification-stage.js.map +1 -0
- package/dist/temporal/workflow.d.ts +12 -4
- package/dist/temporal/workflow.d.ts.map +1 -1
- package/dist/temporal/workflow.js +38 -445
- package/dist/temporal/workflow.js.map +1 -1
- package/dist/verifier-fix.d.ts +20 -0
- package/dist/verifier-fix.d.ts.map +1 -0
- package/dist/verifier-fix.js +62 -0
- package/dist/verifier-fix.js.map +1 -0
- package/dist/verify-report.d.ts +9 -0
- package/dist/verify-report.d.ts.map +1 -0
- package/dist/verify-report.js +135 -0
- package/dist/verify-report.js.map +1 -0
- package/dist/viewer/archived-keys.d.ts +9 -0
- package/dist/viewer/archived-keys.d.ts.map +1 -0
- package/dist/viewer/archived-keys.js +36 -0
- package/dist/viewer/archived-keys.js.map +1 -0
- package/dist/viewer/archived.d.ts +20 -0
- package/dist/viewer/archived.d.ts.map +1 -0
- package/dist/viewer/archived.js +238 -0
- package/dist/viewer/archived.js.map +1 -0
- package/dist/viewer/artifacts.d.ts +8 -0
- package/dist/viewer/artifacts.d.ts.map +1 -0
- package/dist/viewer/artifacts.js +96 -0
- package/dist/viewer/artifacts.js.map +1 -0
- package/dist/viewer/bundle.d.ts +9 -0
- package/dist/viewer/bundle.d.ts.map +1 -0
- package/dist/viewer/bundle.js +79 -0
- package/dist/viewer/bundle.js.map +1 -0
- package/dist/viewer/candidates.d.ts +9 -0
- package/dist/viewer/candidates.d.ts.map +1 -0
- package/dist/viewer/candidates.js +137 -0
- package/dist/viewer/candidates.js.map +1 -0
- package/dist/viewer/local-server.d.ts +11 -0
- package/dist/viewer/local-server.d.ts.map +1 -0
- package/dist/viewer/local-server.js +64 -0
- package/dist/viewer/local-server.js.map +1 -0
- package/dist/viewer/task-files.d.ts +10 -0
- package/dist/viewer/task-files.d.ts.map +1 -0
- package/dist/viewer/task-files.js +120 -0
- package/dist/viewer/task-files.js.map +1 -0
- package/dist/viewer/types.d.ts +78 -0
- package/dist/viewer/types.d.ts.map +1 -0
- package/dist/viewer/types.js +36 -0
- package/dist/viewer/types.js.map +1 -0
- package/docs/api.md +168 -0
- package/docs/evaluations.md +42 -15
- package/docs/operations.md +254 -26
- package/docs/solver-evaluations.md +63 -0
- package/docs/task-construction.md +21 -11
- package/drizzle/0000_glossy_johnny_blaze.sql +97 -0
- package/drizzle/0001_evaluation_records.sql +5 -0
- package/drizzle/0002_task_deletion.sql +1 -0
- package/drizzle/0003_drop_repo_runs.sql +3 -0
- package/drizzle/0004_preserve_batch_runs.sql +8 -0
- package/drizzle/0005_api_keys.sql +15 -0
- package/drizzle/meta/0000_snapshot.json +776 -0
- package/drizzle/meta/0001_snapshot.json +807 -0
- package/drizzle/meta/0002_snapshot.json +813 -0
- package/drizzle/meta/0003_snapshot.json +726 -0
- package/drizzle/meta/0004_snapshot.json +813 -0
- package/drizzle/meta/0005_snapshot.json +919 -0
- package/drizzle/meta/_journal.json +48 -0
- package/package.json +39 -25
- package/src/extensions/authoring.ts +83 -72
- package/src/extensions/shared/deliverable.ts +153 -0
- package/src/extensions/shared/mailbox.ts +128 -0
- package/src/extensions/shared/schemas.ts +101 -0
- package/src/extensions/shared/static-check.ts +103 -0
- package/src/extensions/verifier.ts +88 -0
- package/src/skills/selfbench/SKILL.md +71 -13
- package/biome.json +0 -24
- package/dist/agent-smoke-main.d.ts +0 -3
- package/dist/agent-smoke-main.d.ts.map +0 -1
- package/dist/agent-smoke-main.js +0 -55
- package/dist/agent-smoke-main.js.map +0 -1
- package/dist/agent-smoke.d.ts +0 -18
- package/dist/agent-smoke.d.ts.map +0 -1
- package/dist/agent-smoke.js +0 -103
- package/dist/agent-smoke.js.map +0 -1
- package/dist/codex-review.d.ts +0 -41
- package/dist/codex-review.d.ts.map +0 -1
- package/dist/codex-review.js +0 -193
- package/dist/codex-review.js.map +0 -1
- package/dist/eval-main.d.ts +0 -3
- package/dist/eval-main.d.ts.map +0 -1
- package/dist/eval-main.js +0 -81
- package/dist/eval-main.js.map +0 -1
- package/dist/evaluate.d.ts +0 -25
- package/dist/evaluate.d.ts.map +0 -1
- package/dist/evaluate.js +0 -214
- package/dist/evaluate.js.map +0 -1
- package/dist/modal-auth.d.ts.map +0 -1
- package/dist/modal-auth.js.map +0 -1
- package/dist/reaudit-main.d.ts +0 -3
- package/dist/reaudit-main.d.ts.map +0 -1
- package/dist/reaudit-main.js +0 -158
- package/dist/reaudit-main.js.map +0 -1
- package/dist/repair-main.d.ts +0 -3
- package/dist/repair-main.d.ts.map +0 -1
- package/dist/repair-main.js +0 -171
- package/dist/repair-main.js.map +0 -1
- package/dist/review/assets/index-CZ3G759O.js +0 -1568
- package/dist/review/assets/index-DgSLzX8l.css +0 -1
- package/dist/sandbox/programs/prepare-repair.d.ts +0 -7
- package/dist/sandbox/programs/prepare-repair.d.ts.map +0 -1
- package/dist/sandbox/programs/prepare-repair.js.map +0 -1
- package/dist/sandbox/programs/repair.d.ts +0 -3
- package/dist/sandbox/programs/repair.d.ts.map +0 -1
- package/dist/sandbox/programs/repair.js +0 -100
- package/dist/sandbox/programs/repair.js.map +0 -1
- package/dist/sandbox/programs/review.d.ts +0 -2
- package/dist/sandbox/programs/review.d.ts.map +0 -1
- package/dist/sandbox/programs/review.js +0 -18
- package/dist/sandbox/programs/review.js.map +0 -1
- package/dist/sandbox/programs/validation-repair.d.ts +0 -3
- package/dist/sandbox/programs/validation-repair.d.ts.map +0 -1
- package/dist/sandbox/programs/validation-repair.js +0 -115
- package/dist/sandbox/programs/validation-repair.js.map +0 -1
- package/dist/sandbox-repair.bundle.js +0 -323
- package/dist/sandbox-review.bundle.js +0 -14462
- package/dist/validate-main.d.ts +0 -3
- package/dist/validate-main.d.ts.map +0 -1
- package/dist/validate-main.js +0 -143
- package/dist/validate-main.js.map +0 -1
- package/dist/validation-repair.d.ts +0 -10
- package/dist/validation-repair.d.ts.map +0 -1
- package/dist/validation-repair.js +0 -72
- package/dist/validation-repair.js.map +0 -1
- package/review/index.html +0 -14
- package/review/src/App.tsx +0 -338
- package/review/src/export-loader.test.ts +0 -57
- package/review/src/export-loader.ts +0 -151
- package/review/src/main.tsx +0 -15
- package/review/src/styles.css +0 -162
- package/review/src/types.ts +0 -47
- package/review/tsconfig.json +0 -16
- package/review/vite.config.ts +0 -20
- package/scripts/build-sandbox-programs.ts +0 -22
- package/scripts/verify-package.ts +0 -102
- package/scripts/write-build-metadata.ts +0 -27
- package/src/agent-smoke-main.ts +0 -64
- package/src/agent-smoke.ts +0 -138
- package/src/api-main.ts +0 -12
- package/src/api.ts +0 -291
- package/src/artifacts.ts +0 -357
- package/src/audit.ts +0 -106
- package/src/build-metadata.ts +0 -3
- package/src/cli.ts +0 -504
- package/src/codex-review.ts +0 -229
- package/src/config.ts +0 -239
- package/src/contracts.ts +0 -233
- package/src/coupling.ts +0 -259
- package/src/eval-main.ts +0 -93
- package/src/evaluate.ts +0 -300
- package/src/github.ts +0 -26
- package/src/harbor-environment.ts +0 -17
- package/src/harbor-results.ts +0 -144
- package/src/harbor-task.ts +0 -533
- package/src/hash.ts +0 -5
- package/src/modal-auth.ts +0 -11
- package/src/parallel.ts +0 -24
- package/src/process.ts +0 -167
- package/src/project-paths.ts +0 -15
- package/src/provenance-associations.ts +0 -311
- package/src/provenance.ts +0 -561
- package/src/providers.ts +0 -22
- package/src/reaudit-main.ts +0 -198
- package/src/repair-main.ts +0 -209
- package/src/repair.ts +0 -55
- package/src/run-wait.ts +0 -40
- package/src/sandbox/contracts.ts +0 -52
- package/src/sandbox/index.ts +0 -23
- package/src/sandbox/programs/author.ts +0 -19
- package/src/sandbox/programs/prepare-repair.ts +0 -44
- package/src/sandbox/programs/repair.ts +0 -132
- package/src/sandbox/programs/review.ts +0 -19
- package/src/sandbox/programs/validation-repair.ts +0 -153
- package/src/sandbox/providers/docker/executor.ts +0 -115
- package/src/sandbox/providers/modal/executor.ts +0 -217
- package/src/sandbox/providers/vercel/command.ts +0 -127
- package/src/sandbox/providers/vercel/executor.ts +0 -448
- package/src/sandbox/providers/vercel/fetch.ts +0 -45
- package/src/sandbox/timeout.ts +0 -56
- package/src/setup/vercel/cli.ts +0 -403
- package/src/setup/vercel/index.ts +0 -3
- package/src/setup/vercel/probe.ts +0 -232
- package/src/setup/vercel/profile.ts +0 -322
- package/src/setup/vercel/runtime-image.ts +0 -204
- package/src/setup/vercel/setup.ts +0 -419
- package/src/subscription-auth.ts +0 -80
- package/src/temporal/activities.ts +0 -1348
- package/src/temporal/connection.ts +0 -23
- package/src/temporal/worker-main.ts +0 -28
- package/src/temporal/workflow.ts +0 -568
- package/src/terminal-prompts.ts +0 -197
- package/src/terminal-reporter.ts +0 -126
- package/src/validate-main.ts +0 -177
- package/src/validation-repair.ts +0 -94
- package/tsconfig.build.json +0 -13
- package/tsconfig.json +0 -21
package/src/codex-review.ts
DELETED
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import type { CouplingEvidence } from "./coupling.js";
|
|
3
|
-
|
|
4
|
-
export const COUPLING_REVIEW_MODEL = "gpt-5.6-sol";
|
|
5
|
-
|
|
6
|
-
export const couplingReviewSchema = z.object({
|
|
7
|
-
verdict: z.enum(["clean", "coupled"]),
|
|
8
|
-
reason: z.string().min(1),
|
|
9
|
-
findings: z
|
|
10
|
-
.array(
|
|
11
|
-
z.object({
|
|
12
|
-
artifact: z.string().min(1),
|
|
13
|
-
category: z.enum(["endpoint_path", "field_name", "header_name", "media_type", "other"]),
|
|
14
|
-
disposition: z.enum([
|
|
15
|
-
"base_contract",
|
|
16
|
-
"prompt_contract",
|
|
17
|
-
"external_contract",
|
|
18
|
-
"gold_only",
|
|
19
|
-
"not_contract",
|
|
20
|
-
]),
|
|
21
|
-
evidence: z.string().min(1),
|
|
22
|
-
}),
|
|
23
|
-
)
|
|
24
|
-
.min(1),
|
|
25
|
-
counterexample: z.string().min(1),
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
export type CouplingReview = z.infer<typeof couplingReviewSchema>;
|
|
29
|
-
|
|
30
|
-
export async function reviewCouplingWithCodex(input: {
|
|
31
|
-
readonly apiKey?: string;
|
|
32
|
-
readonly authJson?: string;
|
|
33
|
-
readonly prompt: string;
|
|
34
|
-
readonly signal?: AbortSignal;
|
|
35
|
-
readonly fetch?: typeof fetch;
|
|
36
|
-
}): Promise<CouplingReview> {
|
|
37
|
-
const subscription =
|
|
38
|
-
!input.apiKey && input.authJson ? parseCredential(input.authJson) : undefined;
|
|
39
|
-
if (!input.apiKey && !subscription) {
|
|
40
|
-
throw new Error("OpenAI model authentication is required");
|
|
41
|
-
}
|
|
42
|
-
const request = input.fetch ?? fetch;
|
|
43
|
-
const response = await request(
|
|
44
|
-
subscription
|
|
45
|
-
? "https://chatgpt.com/backend-api/codex/responses"
|
|
46
|
-
: "https://api.openai.com/v1/responses",
|
|
47
|
-
{
|
|
48
|
-
method: "POST",
|
|
49
|
-
headers: {
|
|
50
|
-
Authorization: `Bearer ${subscription?.access ?? input.apiKey}`,
|
|
51
|
-
...(subscription ? { "ChatGPT-Account-Id": accountIdFromToken(subscription.access) } : {}),
|
|
52
|
-
Originator: "selfbench",
|
|
53
|
-
"OpenAI-Beta": "responses=experimental",
|
|
54
|
-
Accept: "text/event-stream",
|
|
55
|
-
"Content-Type": "application/json",
|
|
56
|
-
},
|
|
57
|
-
body: JSON.stringify({
|
|
58
|
-
model: COUPLING_REVIEW_MODEL,
|
|
59
|
-
store: false,
|
|
60
|
-
stream: true,
|
|
61
|
-
instructions:
|
|
62
|
-
"You are an independent benchmark-quality reviewer. Analyze the supplied evidence and call submit_review exactly once.",
|
|
63
|
-
input: [
|
|
64
|
-
{
|
|
65
|
-
role: "user",
|
|
66
|
-
content: [{ type: "input_text", text: input.prompt }],
|
|
67
|
-
},
|
|
68
|
-
],
|
|
69
|
-
reasoning: { effort: "high", summary: "auto" },
|
|
70
|
-
text: { verbosity: "low" },
|
|
71
|
-
include: ["reasoning.encrypted_content"],
|
|
72
|
-
tools: [reviewTool()],
|
|
73
|
-
tool_choice: { type: "function", name: "submit_review" },
|
|
74
|
-
parallel_tool_calls: false,
|
|
75
|
-
}),
|
|
76
|
-
...(input.signal ? { signal: input.signal } : {}),
|
|
77
|
-
},
|
|
78
|
-
);
|
|
79
|
-
const responseText = await response.text();
|
|
80
|
-
if (!response.ok) {
|
|
81
|
-
throw new Error(
|
|
82
|
-
`Codex coupling review failed (${response.status}): ${responseText.slice(0, 500)}`,
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
return parseCodexReviewEvents(responseText);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
function parseCredential(value: string): { access: string } {
|
|
89
|
-
const parsed = JSON.parse(value) as unknown;
|
|
90
|
-
const credential = isRecord(parsed) ? parsed["openai-codex"] : undefined;
|
|
91
|
-
if (!isRecord(credential) || typeof credential.access !== "string") {
|
|
92
|
-
throw new Error("Pi auth does not contain an OpenAI Codex subscription access token");
|
|
93
|
-
}
|
|
94
|
-
return { access: credential.access };
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
function accountIdFromToken(token: string): string {
|
|
98
|
-
const payload = JSON.parse(
|
|
99
|
-
Buffer.from(token.split(".")[1] ?? "", "base64url").toString("utf8"),
|
|
100
|
-
) as unknown;
|
|
101
|
-
const auth = isRecord(payload) ? payload["https://api.openai.com/auth"] : undefined;
|
|
102
|
-
const accountId = isRecord(auth) ? auth.chatgpt_account_id : undefined;
|
|
103
|
-
if (typeof accountId !== "string" || !accountId) {
|
|
104
|
-
throw new Error("OpenAI Codex subscription token has no ChatGPT account ID");
|
|
105
|
-
}
|
|
106
|
-
return accountId;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export function parseCodexReviewEvents(value: string): CouplingReview {
|
|
110
|
-
for (const line of value.split("\n")) {
|
|
111
|
-
if (!line.startsWith("data: ")) {
|
|
112
|
-
continue;
|
|
113
|
-
}
|
|
114
|
-
const data = line.slice("data: ".length);
|
|
115
|
-
if (data === "[DONE]") {
|
|
116
|
-
continue;
|
|
117
|
-
}
|
|
118
|
-
const event = JSON.parse(data) as unknown;
|
|
119
|
-
if (!isRecord(event)) {
|
|
120
|
-
continue;
|
|
121
|
-
}
|
|
122
|
-
const item = event.item;
|
|
123
|
-
if (
|
|
124
|
-
event.type === "response.output_item.done" &&
|
|
125
|
-
isRecord(item) &&
|
|
126
|
-
item.type === "function_call" &&
|
|
127
|
-
item.name === "submit_review" &&
|
|
128
|
-
typeof item.arguments === "string"
|
|
129
|
-
) {
|
|
130
|
-
return couplingReviewSchema.parse(JSON.parse(item.arguments));
|
|
131
|
-
}
|
|
132
|
-
if (event.type === "error") {
|
|
133
|
-
throw new Error(`Codex coupling review stream failed: ${JSON.stringify(event)}`);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
throw new Error("Codex coupling review returned no submit_review tool call");
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
export function couplingReviewPrompt(): string {
|
|
140
|
-
return `Independently review this hard benchmark for test-to-gold coupling.
|
|
141
|
-
|
|
142
|
-
For every exact endpoint path, response/request field, header, media type, helper/module, error string, schema/index name, UI copy/order, or other implementation artifact asserted by the held-out tests, cite either the authentic prompt text that requires it or deterministic evidence that the exact base repository already establishes it. A name merely appearing in the gold patch is not evidence. Reject a test that would fail a coherent implementation of the request using different names, file boundaries, payload presentation, or internal structure.
|
|
143
|
-
|
|
144
|
-
Resolve every artifact listed in couplingEvidence.blockers with a finding whose artifact exactly matches it. Use external_contract only when the authentic request names a standard protocol that fixes the exact artifact independently of the gold patch, and cite that protocol. Use not_contract only for incidental test-language or framework syntax that is not an asserted product contract. A clean verdict with a missing blocker finding or a gold_only finding is rejected automatically.
|
|
145
|
-
|
|
146
|
-
Your findings must identify the artifact, classify it, give its disposition, and cite concrete evidence. The counterexample must describe a plausible alternative correct implementation and whether the tests would accept it. Also reject prompt leakage of PRs, commits, test names, or the solution.`;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
export function couplingReviewInput(
|
|
150
|
-
prompt: string,
|
|
151
|
-
testPatch: string,
|
|
152
|
-
goldPatch: string,
|
|
153
|
-
evidence: CouplingEvidence,
|
|
154
|
-
): string {
|
|
155
|
-
return `${couplingReviewPrompt()}
|
|
156
|
-
|
|
157
|
-
# Authentic request
|
|
158
|
-
|
|
159
|
-
${prompt}
|
|
160
|
-
|
|
161
|
-
# Deterministic base-contract evidence
|
|
162
|
-
|
|
163
|
-
The exact-artifact scan compared the held-out tests with the authentic request, gold additions, and exact base snapshot. Every blocker below is asserted by tests and introduced by gold, but absent verbatim from both request and base. Resolve each blocker explicitly.
|
|
164
|
-
|
|
165
|
-
${JSON.stringify(evidence, null, 2)}
|
|
166
|
-
|
|
167
|
-
# Held-out test patch
|
|
168
|
-
|
|
169
|
-
\`\`\`diff
|
|
170
|
-
${testPatch}
|
|
171
|
-
\`\`\`
|
|
172
|
-
|
|
173
|
-
# Gold implementation patch
|
|
174
|
-
|
|
175
|
-
\`\`\`diff
|
|
176
|
-
${goldPatch}
|
|
177
|
-
\`\`\`
|
|
178
|
-
`;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
function reviewTool(): Record<string, unknown> {
|
|
182
|
-
return {
|
|
183
|
-
type: "function",
|
|
184
|
-
name: "submit_review",
|
|
185
|
-
description: "Submit the final independent test-coupling verdict exactly once.",
|
|
186
|
-
strict: true,
|
|
187
|
-
parameters: {
|
|
188
|
-
type: "object",
|
|
189
|
-
additionalProperties: false,
|
|
190
|
-
required: ["verdict", "reason", "findings", "counterexample"],
|
|
191
|
-
properties: {
|
|
192
|
-
verdict: { type: "string", enum: ["clean", "coupled"] },
|
|
193
|
-
reason: { type: "string", minLength: 1 },
|
|
194
|
-
findings: {
|
|
195
|
-
type: "array",
|
|
196
|
-
minItems: 1,
|
|
197
|
-
items: {
|
|
198
|
-
type: "object",
|
|
199
|
-
additionalProperties: false,
|
|
200
|
-
required: ["artifact", "category", "disposition", "evidence"],
|
|
201
|
-
properties: {
|
|
202
|
-
artifact: { type: "string", minLength: 1 },
|
|
203
|
-
category: {
|
|
204
|
-
type: "string",
|
|
205
|
-
enum: ["endpoint_path", "field_name", "header_name", "media_type", "other"],
|
|
206
|
-
},
|
|
207
|
-
disposition: {
|
|
208
|
-
type: "string",
|
|
209
|
-
enum: [
|
|
210
|
-
"base_contract",
|
|
211
|
-
"prompt_contract",
|
|
212
|
-
"external_contract",
|
|
213
|
-
"gold_only",
|
|
214
|
-
"not_contract",
|
|
215
|
-
],
|
|
216
|
-
},
|
|
217
|
-
evidence: { type: "string", minLength: 1 },
|
|
218
|
-
},
|
|
219
|
-
},
|
|
220
|
-
},
|
|
221
|
-
counterexample: { type: "string", minLength: 1 },
|
|
222
|
-
},
|
|
223
|
-
},
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
function isRecord(value: unknown): value is Record<string, unknown> {
|
|
228
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
229
|
-
}
|
package/src/config.ts
DELETED
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import {
|
|
3
|
-
EXECUTION_BACKENDS,
|
|
4
|
-
type ExecutionBackend,
|
|
5
|
-
HARBOR_ENVIRONMENTS,
|
|
6
|
-
type HarborEnvironment,
|
|
7
|
-
matchingHarborEnvironment,
|
|
8
|
-
} from "./providers.js";
|
|
9
|
-
import { parseSandboxTimeoutCapText, STANDARD_VERCEL_TIMEOUT_CAP_MS } from "./sandbox/timeout.js";
|
|
10
|
-
|
|
11
|
-
const emptyStringAsUndefined = (value: unknown): unknown =>
|
|
12
|
-
typeof value === "string" && value.trim() === "" ? undefined : value;
|
|
13
|
-
|
|
14
|
-
const environmentSchema = z.object({
|
|
15
|
-
SELFBENCH_API_HOST: z.string().default("127.0.0.1"),
|
|
16
|
-
SELFBENCH_API_PORT: z.coerce.number().int().min(1).max(65535).default(8080),
|
|
17
|
-
SELFBENCH_API_TOKEN: z.string().min(1).optional(),
|
|
18
|
-
SELFBENCH_ARTIFACT_BACKEND: z.enum(["local", "gcs"]).default("local"),
|
|
19
|
-
SELFBENCH_ARTIFACT_DIR: z.string().default(".selfbench/artifacts"),
|
|
20
|
-
SELFBENCH_GCS_BUCKET: z.string().optional(),
|
|
21
|
-
SELFBENCH_GCS_PREFIX: z.string().default("selfbench"),
|
|
22
|
-
SELFBENCH_EXECUTION_BACKEND: z.enum(EXECUTION_BACKENDS).default("docker"),
|
|
23
|
-
SELFBENCH_DOCKER_IMAGE: z.string().default("selfbench-sandbox:local"),
|
|
24
|
-
SELFBENCH_HARBOR_ENVIRONMENT: z.preprocess(
|
|
25
|
-
emptyStringAsUndefined,
|
|
26
|
-
z.enum(HARBOR_ENVIRONMENTS).optional(),
|
|
27
|
-
),
|
|
28
|
-
SELFBENCH_MODAL_APP: z.string().default("selfbench"),
|
|
29
|
-
SELFBENCH_MODAL_ENVIRONMENT: z.string().optional(),
|
|
30
|
-
SELFBENCH_MODAL_IMAGE: z.string().default("node:22-bookworm"),
|
|
31
|
-
SELFBENCH_VERCEL_IMAGE: z.preprocess(emptyStringAsUndefined, z.string().trim().min(1).optional()),
|
|
32
|
-
// Keep provider-specific validation in the Vercel branch so a stale Vercel
|
|
33
|
-
// variable cannot break an otherwise unrelated Docker or Modal worker.
|
|
34
|
-
SELFBENCH_VERCEL_TIMEOUT_CAP: z.preprocess(emptyStringAsUndefined, z.string().optional()),
|
|
35
|
-
SELFBENCH_BUILD_COMMIT: z.preprocess(
|
|
36
|
-
(value) => (value === "" ? undefined : value),
|
|
37
|
-
z
|
|
38
|
-
.string()
|
|
39
|
-
.regex(/^[0-9a-f]{40}$/i)
|
|
40
|
-
.optional(),
|
|
41
|
-
),
|
|
42
|
-
SELFBENCH_ACTIVITY_CONCURRENCY: z.preprocess(
|
|
43
|
-
emptyStringAsUndefined,
|
|
44
|
-
z.coerce.number().int().min(1).max(100).optional(),
|
|
45
|
-
),
|
|
46
|
-
SELFBENCH_TASK_QUEUE: z.string().default("selfbench-dev"),
|
|
47
|
-
SELFBENCH_TEMPORAL_ADDRESS: z.string().default("127.0.0.1:7233"),
|
|
48
|
-
SELFBENCH_TEMPORAL_NAMESPACE: z.string().default("default"),
|
|
49
|
-
SELFBENCH_TEMPORAL_API_KEY: z.string().optional(),
|
|
50
|
-
SELFBENCH_TEMPORAL_TLS: z
|
|
51
|
-
.enum(["true", "false"])
|
|
52
|
-
.transform((value) => value === "true")
|
|
53
|
-
.default(false),
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
export interface VercelCredentials {
|
|
57
|
-
readonly token: string;
|
|
58
|
-
readonly teamId: string;
|
|
59
|
-
readonly projectId: string;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
type ExecutionConfig =
|
|
63
|
-
| { readonly kind: "docker"; readonly image: string }
|
|
64
|
-
| {
|
|
65
|
-
readonly kind: "modal";
|
|
66
|
-
readonly app: string;
|
|
67
|
-
readonly environment?: string;
|
|
68
|
-
readonly image: string;
|
|
69
|
-
}
|
|
70
|
-
| { readonly kind: "vercel"; readonly image: string; readonly timeoutCapMs: number };
|
|
71
|
-
|
|
72
|
-
type WorkerExecutionConfig =
|
|
73
|
-
| Exclude<ExecutionConfig, { readonly kind: "vercel" }>
|
|
74
|
-
| {
|
|
75
|
-
readonly kind: "vercel";
|
|
76
|
-
readonly image: string;
|
|
77
|
-
readonly timeoutCapMs: number;
|
|
78
|
-
readonly credentials: VercelCredentials;
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
const DEFAULT_ACTIVITY_CONCURRENCY = {
|
|
82
|
-
docker: 1,
|
|
83
|
-
modal: 20,
|
|
84
|
-
vercel: 4,
|
|
85
|
-
} as const satisfies Record<ExecutionBackend, number>;
|
|
86
|
-
|
|
87
|
-
export interface SelfBenchConfig {
|
|
88
|
-
readonly apiHost: string;
|
|
89
|
-
readonly apiPort: number;
|
|
90
|
-
readonly apiToken?: string;
|
|
91
|
-
readonly buildCommit?: string;
|
|
92
|
-
readonly activityConcurrency: number;
|
|
93
|
-
readonly artifact:
|
|
94
|
-
| { readonly kind: "local"; readonly directory: string }
|
|
95
|
-
| { readonly kind: "gcs"; readonly bucket: string; readonly prefix: string };
|
|
96
|
-
readonly execution: ExecutionConfig;
|
|
97
|
-
readonly harborEnvironment: HarborEnvironment;
|
|
98
|
-
readonly temporal: {
|
|
99
|
-
readonly address: string;
|
|
100
|
-
readonly namespace: string;
|
|
101
|
-
readonly apiKey?: string;
|
|
102
|
-
readonly tls: boolean;
|
|
103
|
-
readonly taskQueue: string;
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export interface SelfBenchWorkerConfig extends Omit<SelfBenchConfig, "execution"> {
|
|
108
|
-
readonly execution: WorkerExecutionConfig;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export function isDigestPinnedOciImage(image: string): boolean {
|
|
112
|
-
return /^[^@\s]+@sha256:[0-9a-f]{64}$/i.test(image);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export function loadConfig(environment: NodeJS.ProcessEnv = process.env): SelfBenchConfig {
|
|
116
|
-
const value = environmentSchema.parse(environment);
|
|
117
|
-
if (
|
|
118
|
-
!["127.0.0.1", "::1", "localhost"].includes(value.SELFBENCH_API_HOST) &&
|
|
119
|
-
!value.SELFBENCH_API_TOKEN
|
|
120
|
-
) {
|
|
121
|
-
throw new Error("SELFBENCH_API_TOKEN is required when the API listens beyond loopback");
|
|
122
|
-
}
|
|
123
|
-
const artifact =
|
|
124
|
-
value.SELFBENCH_ARTIFACT_BACKEND === "gcs"
|
|
125
|
-
? {
|
|
126
|
-
kind: "gcs" as const,
|
|
127
|
-
bucket: value.SELFBENCH_GCS_BUCKET ?? fail("SELFBENCH_GCS_BUCKET is required for GCS"),
|
|
128
|
-
prefix: value.SELFBENCH_GCS_PREFIX,
|
|
129
|
-
}
|
|
130
|
-
: { kind: "local" as const, directory: value.SELFBENCH_ARTIFACT_DIR };
|
|
131
|
-
|
|
132
|
-
const harborEnvironment =
|
|
133
|
-
value.SELFBENCH_HARBOR_ENVIRONMENT ??
|
|
134
|
-
matchingHarborEnvironment(value.SELFBENCH_EXECUTION_BACKEND) ??
|
|
135
|
-
fail(
|
|
136
|
-
`SELFBENCH_HARBOR_ENVIRONMENT is required for ${value.SELFBENCH_EXECUTION_BACKEND} execution`,
|
|
137
|
-
);
|
|
138
|
-
let execution: ExecutionConfig;
|
|
139
|
-
switch (value.SELFBENCH_EXECUTION_BACKEND) {
|
|
140
|
-
case "docker":
|
|
141
|
-
execution = { kind: "docker", image: value.SELFBENCH_DOCKER_IMAGE };
|
|
142
|
-
break;
|
|
143
|
-
case "modal":
|
|
144
|
-
execution = {
|
|
145
|
-
kind: "modal",
|
|
146
|
-
app: value.SELFBENCH_MODAL_APP,
|
|
147
|
-
image: value.SELFBENCH_MODAL_IMAGE,
|
|
148
|
-
...(value.SELFBENCH_MODAL_ENVIRONMENT
|
|
149
|
-
? { environment: value.SELFBENCH_MODAL_ENVIRONMENT }
|
|
150
|
-
: {}),
|
|
151
|
-
};
|
|
152
|
-
break;
|
|
153
|
-
case "vercel": {
|
|
154
|
-
const image =
|
|
155
|
-
value.SELFBENCH_VERCEL_IMAGE ??
|
|
156
|
-
fail("SELFBENCH_VERCEL_IMAGE is required for Vercel execution");
|
|
157
|
-
if (!isDigestPinnedOciImage(image)) {
|
|
158
|
-
fail("SELFBENCH_VERCEL_IMAGE must be pinned by sha256 digest");
|
|
159
|
-
}
|
|
160
|
-
execution = {
|
|
161
|
-
kind: "vercel",
|
|
162
|
-
image,
|
|
163
|
-
timeoutCapMs: vercelTimeoutCap(value.SELFBENCH_VERCEL_TIMEOUT_CAP),
|
|
164
|
-
};
|
|
165
|
-
break;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
return {
|
|
170
|
-
apiHost: value.SELFBENCH_API_HOST,
|
|
171
|
-
apiPort: value.SELFBENCH_API_PORT,
|
|
172
|
-
...(value.SELFBENCH_API_TOKEN ? { apiToken: value.SELFBENCH_API_TOKEN } : {}),
|
|
173
|
-
...(value.SELFBENCH_BUILD_COMMIT
|
|
174
|
-
? { buildCommit: value.SELFBENCH_BUILD_COMMIT.toLowerCase() }
|
|
175
|
-
: {}),
|
|
176
|
-
activityConcurrency:
|
|
177
|
-
value.SELFBENCH_ACTIVITY_CONCURRENCY ??
|
|
178
|
-
DEFAULT_ACTIVITY_CONCURRENCY[value.SELFBENCH_EXECUTION_BACKEND],
|
|
179
|
-
artifact,
|
|
180
|
-
harborEnvironment,
|
|
181
|
-
execution,
|
|
182
|
-
temporal: {
|
|
183
|
-
address: value.SELFBENCH_TEMPORAL_ADDRESS,
|
|
184
|
-
namespace: value.SELFBENCH_TEMPORAL_NAMESPACE,
|
|
185
|
-
tls: value.SELFBENCH_TEMPORAL_TLS,
|
|
186
|
-
taskQueue: value.SELFBENCH_TASK_QUEUE,
|
|
187
|
-
...(value.SELFBENCH_TEMPORAL_API_KEY ? { apiKey: value.SELFBENCH_TEMPORAL_API_KEY } : {}),
|
|
188
|
-
},
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export function loadWorkerConfig(
|
|
193
|
-
environment: NodeJS.ProcessEnv = process.env,
|
|
194
|
-
): SelfBenchWorkerConfig {
|
|
195
|
-
const config = loadConfig(environment);
|
|
196
|
-
if (config.execution.kind !== "vercel") {
|
|
197
|
-
return { ...config, execution: config.execution };
|
|
198
|
-
}
|
|
199
|
-
return {
|
|
200
|
-
...config,
|
|
201
|
-
execution: {
|
|
202
|
-
...config.execution,
|
|
203
|
-
credentials: vercelCredentials(environment),
|
|
204
|
-
},
|
|
205
|
-
};
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
export function defaultStandaloneConcurrency(
|
|
209
|
-
config: Pick<SelfBenchConfig, "activityConcurrency" | "execution">,
|
|
210
|
-
existingDefault: number,
|
|
211
|
-
): number {
|
|
212
|
-
return config.execution.kind === "vercel" ? config.activityConcurrency : existingDefault;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
function vercelCredentials(environment: NodeJS.ProcessEnv): VercelCredentials {
|
|
216
|
-
const token = environment.VERCEL_TOKEN?.trim();
|
|
217
|
-
const teamId = environment.VERCEL_TEAM_ID?.trim();
|
|
218
|
-
const projectId = environment.VERCEL_PROJECT_ID?.trim();
|
|
219
|
-
if (!token || !teamId || !projectId) {
|
|
220
|
-
fail("VERCEL_TOKEN, VERCEL_TEAM_ID, and VERCEL_PROJECT_ID are required for Vercel execution");
|
|
221
|
-
}
|
|
222
|
-
return { token, teamId, projectId };
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
function vercelTimeoutCap(value: string | undefined): number {
|
|
226
|
-
if (value === undefined) {
|
|
227
|
-
return STANDARD_VERCEL_TIMEOUT_CAP_MS;
|
|
228
|
-
}
|
|
229
|
-
return z
|
|
230
|
-
.number()
|
|
231
|
-
.int()
|
|
232
|
-
.min(100)
|
|
233
|
-
.max(STANDARD_VERCEL_TIMEOUT_CAP_MS)
|
|
234
|
-
.parse(parseSandboxTimeoutCapText(value));
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
function fail(message: string): never {
|
|
238
|
-
throw new Error(message);
|
|
239
|
-
}
|
package/src/contracts.ts
DELETED
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { EXECUTION_BACKENDS, HARBOR_ENVIRONMENTS, matchingHarborEnvironment } from "./providers.js";
|
|
3
|
-
|
|
4
|
-
export const commitSchema = z.string().regex(/^[0-9a-f]{40}$/i, "expected a full commit SHA");
|
|
5
|
-
|
|
6
|
-
export const repositoryRefSchema = z.object({
|
|
7
|
-
url: z.string().url(),
|
|
8
|
-
commit: commitSchema,
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
export type RepositoryRef = z.infer<typeof repositoryRefSchema>;
|
|
12
|
-
|
|
13
|
-
export const artifactRefSchema = z.object({
|
|
14
|
-
uri: z.string().min(1),
|
|
15
|
-
sha256: z.string().regex(/^[0-9a-f]{64}$/),
|
|
16
|
-
sizeBytes: z.number().int().nonnegative(),
|
|
17
|
-
contentType: z.string().min(1),
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
export type ArtifactRef = z.infer<typeof artifactRefSchema>;
|
|
21
|
-
|
|
22
|
-
export const difficultySchema = z.enum(["easy", "medium", "hard"]);
|
|
23
|
-
export type Difficulty = z.infer<typeof difficultySchema>;
|
|
24
|
-
|
|
25
|
-
export const MAX_CANDIDATES_PER_RUN = 10_000;
|
|
26
|
-
|
|
27
|
-
const candidateCountsSchema = z
|
|
28
|
-
.object({
|
|
29
|
-
easy: z.number().int().min(0).max(MAX_CANDIDATES_PER_RUN),
|
|
30
|
-
medium: z.number().int().min(0).max(MAX_CANDIDATES_PER_RUN),
|
|
31
|
-
hard: z.number().int().min(0).max(MAX_CANDIDATES_PER_RUN),
|
|
32
|
-
})
|
|
33
|
-
.refine(({ easy, medium, hard }) => easy + medium + hard >= 1, {
|
|
34
|
-
message: "at least one candidate must be requested",
|
|
35
|
-
})
|
|
36
|
-
.refine(({ easy, medium, hard }) => easy + medium + hard <= MAX_CANDIDATES_PER_RUN, {
|
|
37
|
-
message: `at most ${MAX_CANDIDATES_PER_RUN} candidates may be requested`,
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
const runVersionSchema = z
|
|
41
|
-
.object({
|
|
42
|
-
selfbenchCommit: commitSchema,
|
|
43
|
-
executionBackend: z.enum(EXECUTION_BACKENDS),
|
|
44
|
-
harborEnvironment: z.enum(HARBOR_ENVIRONMENTS).optional(),
|
|
45
|
-
sandboxImage: z.string().min(1),
|
|
46
|
-
sandboxTimeoutCapMs: z.number().int().min(100).optional(),
|
|
47
|
-
schema: z.literal(1),
|
|
48
|
-
})
|
|
49
|
-
.transform((version, context) => {
|
|
50
|
-
const harborEnvironment =
|
|
51
|
-
version.harborEnvironment ?? matchingHarborEnvironment(version.executionBackend);
|
|
52
|
-
if (!harborEnvironment) {
|
|
53
|
-
context.addIssue({
|
|
54
|
-
code: "custom",
|
|
55
|
-
message: `harborEnvironment is required for ${version.executionBackend} execution`,
|
|
56
|
-
path: ["harborEnvironment"],
|
|
57
|
-
});
|
|
58
|
-
return z.NEVER;
|
|
59
|
-
}
|
|
60
|
-
if (version.sandboxTimeoutCapMs !== undefined && version.executionBackend !== "vercel") {
|
|
61
|
-
context.addIssue({
|
|
62
|
-
code: "custom",
|
|
63
|
-
message: "sandboxTimeoutCapMs is only valid for Vercel execution",
|
|
64
|
-
path: ["sandboxTimeoutCapMs"],
|
|
65
|
-
});
|
|
66
|
-
return z.NEVER;
|
|
67
|
-
}
|
|
68
|
-
return { ...version, harborEnvironment };
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
export const runRequestSchema = z.object({
|
|
72
|
-
runId: z.string().regex(/^[a-z0-9][a-z0-9-]{2,62}$/),
|
|
73
|
-
repository: repositoryRefSchema,
|
|
74
|
-
provenance: artifactRefSchema,
|
|
75
|
-
candidateCounts: candidateCountsSchema,
|
|
76
|
-
authoring: z.object({
|
|
77
|
-
provider: z.literal("openai-codex"),
|
|
78
|
-
model: z.string().min(1),
|
|
79
|
-
reasoningEffort: z.literal("high"),
|
|
80
|
-
}),
|
|
81
|
-
version: runVersionSchema,
|
|
82
|
-
});
|
|
83
|
-
|
|
84
|
-
export type RunRequest = z.infer<typeof runRequestSchema>;
|
|
85
|
-
|
|
86
|
-
export const candidateSchema = z.object({
|
|
87
|
-
candidateId: z.string().regex(/^[A-Za-z0-9][A-Za-z0-9._-]*$/),
|
|
88
|
-
difficulty: difficultySchema,
|
|
89
|
-
sourcePr: z.number().int().positive(),
|
|
90
|
-
sourceUrl: z.string().url(),
|
|
91
|
-
baseCommit: commitSchema,
|
|
92
|
-
completedCommit: commitSchema,
|
|
93
|
-
request: z.string().min(1),
|
|
94
|
-
provenance: artifactRefSchema,
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
export type Candidate = z.infer<typeof candidateSchema>;
|
|
98
|
-
|
|
99
|
-
export const taskDefinitionSchema = z.object({
|
|
100
|
-
schemaVersion: z.literal(1),
|
|
101
|
-
difficulty: difficultySchema,
|
|
102
|
-
taskId: z.string().regex(/^[A-Za-z0-9][A-Za-z0-9._-]*$/),
|
|
103
|
-
repo: z.string().min(1),
|
|
104
|
-
baseCommit: commitSchema,
|
|
105
|
-
workdir: z.string().min(1),
|
|
106
|
-
setupCommand: z.string().min(1),
|
|
107
|
-
testCommand: z.string().refine((value) => value.includes("{tests}"), {
|
|
108
|
-
message: 'testCommand must contain "{tests}"',
|
|
109
|
-
}),
|
|
110
|
-
failToPass: z.array(z.string().min(1)).min(1),
|
|
111
|
-
passToPass: z.array(z.string().min(1)),
|
|
112
|
-
testPaths: z.array(z.string().min(1)).min(1),
|
|
113
|
-
toolchains: z.array(z.enum(["uv", "bun", "go", "node", "python", "rust"])).min(1),
|
|
114
|
-
sourcePr: z.number().int().positive(),
|
|
115
|
-
sourceUrl: z.string().url(),
|
|
116
|
-
prompt: z.string().min(1),
|
|
117
|
-
timeouts: z.object({
|
|
118
|
-
setupSeconds: z.number().int().positive(),
|
|
119
|
-
agentSeconds: z.number().int().positive(),
|
|
120
|
-
testsSeconds: z.number().int().positive(),
|
|
121
|
-
}),
|
|
122
|
-
resources: z.object({
|
|
123
|
-
cpus: z.number().positive(),
|
|
124
|
-
memoryMb: z.number().int().positive(),
|
|
125
|
-
storageMb: z.number().int().positive(),
|
|
126
|
-
}),
|
|
127
|
-
});
|
|
128
|
-
|
|
129
|
-
export type TaskDefinition = z.infer<typeof taskDefinitionSchema>;
|
|
130
|
-
|
|
131
|
-
export const authoredTaskSchema = z.object({
|
|
132
|
-
candidateId: z.string().min(1),
|
|
133
|
-
taskId: z.string().min(1),
|
|
134
|
-
definition: artifactRefSchema,
|
|
135
|
-
bundle: artifactRefSchema,
|
|
136
|
-
});
|
|
137
|
-
|
|
138
|
-
export type AuthoredTask = z.infer<typeof authoredTaskSchema>;
|
|
139
|
-
|
|
140
|
-
export const validationResultSchema = z.object({
|
|
141
|
-
taskId: z.string().min(1),
|
|
142
|
-
accepted: z.boolean(),
|
|
143
|
-
nop: z.object({
|
|
144
|
-
passed: z.boolean(),
|
|
145
|
-
result: artifactRefSchema,
|
|
146
|
-
output: artifactRefSchema.optional(),
|
|
147
|
-
}),
|
|
148
|
-
oracle: z.object({
|
|
149
|
-
passed: z.boolean(),
|
|
150
|
-
result: artifactRefSchema,
|
|
151
|
-
output: artifactRefSchema.optional(),
|
|
152
|
-
}),
|
|
153
|
-
reason: z.string().optional(),
|
|
154
|
-
});
|
|
155
|
-
|
|
156
|
-
export type ValidationResult = z.infer<typeof validationResultSchema>;
|
|
157
|
-
|
|
158
|
-
export type RunPhase =
|
|
159
|
-
| "queued"
|
|
160
|
-
| "discovering"
|
|
161
|
-
| "authoring"
|
|
162
|
-
| "exporting"
|
|
163
|
-
| "complete"
|
|
164
|
-
| "blocked"
|
|
165
|
-
| "failed"
|
|
166
|
-
| "cancelled";
|
|
167
|
-
|
|
168
|
-
export interface TaskProgress {
|
|
169
|
-
taskId: string;
|
|
170
|
-
candidateId: string;
|
|
171
|
-
difficulty: Difficulty;
|
|
172
|
-
status:
|
|
173
|
-
| "authoring"
|
|
174
|
-
| "auditing"
|
|
175
|
-
| "validating"
|
|
176
|
-
| "reviewing"
|
|
177
|
-
| "repairing"
|
|
178
|
-
| "infrastructure_failed"
|
|
179
|
-
| "rejected"
|
|
180
|
-
| "accepted";
|
|
181
|
-
reason?: string;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
export interface DiscoveryProgress {
|
|
185
|
-
readonly wave: number;
|
|
186
|
-
readonly totalShards: number;
|
|
187
|
-
readonly completedShards: number;
|
|
188
|
-
readonly failedShards: number;
|
|
189
|
-
readonly candidates: number;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export interface RunStatus {
|
|
193
|
-
readonly runId: string;
|
|
194
|
-
readonly phase: RunPhase;
|
|
195
|
-
readonly requested: number;
|
|
196
|
-
readonly requestedByDifficulty: Readonly<Record<Difficulty, number>>;
|
|
197
|
-
readonly discovered: number;
|
|
198
|
-
readonly accepted: number;
|
|
199
|
-
readonly rejected: number;
|
|
200
|
-
readonly tasks: readonly TaskProgress[];
|
|
201
|
-
readonly discovery?: DiscoveryProgress;
|
|
202
|
-
readonly export?: ArtifactRef;
|
|
203
|
-
readonly error?: string;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export interface RunResult {
|
|
207
|
-
readonly runId: string;
|
|
208
|
-
readonly export: ArtifactRef;
|
|
209
|
-
readonly acceptedTaskIds: readonly string[];
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
export interface DiscoveryResult {
|
|
213
|
-
readonly candidates: readonly Candidate[];
|
|
214
|
-
readonly report: ArtifactRef;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
export type AuthorOutcome =
|
|
218
|
-
| { readonly kind: "authored"; readonly task: AuthoredTask }
|
|
219
|
-
| { readonly kind: "rejected"; readonly candidateId: string; readonly reason: string };
|
|
220
|
-
|
|
221
|
-
export interface ReviewResult {
|
|
222
|
-
readonly taskId: string;
|
|
223
|
-
readonly accepted: boolean;
|
|
224
|
-
readonly report: ArtifactRef;
|
|
225
|
-
readonly reason?: string;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
export interface AuditResult {
|
|
229
|
-
readonly taskId: string;
|
|
230
|
-
readonly accepted: boolean;
|
|
231
|
-
readonly report: ArtifactRef;
|
|
232
|
-
readonly reason?: string;
|
|
233
|
-
}
|