humanish 0.104.3 → 0.106.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +89 -94
- package/ARCHITECTURE.md +146 -0
- package/CHANGELOG.md +502 -0
- package/CONTEXT.md +51 -0
- package/CONTRIBUTING.md +111 -9
- package/README.md +213 -124
- package/SECURITY.md +1 -1
- package/TELEMETRY.md +112 -0
- package/dist/actors/affordance.d.ts +56 -0
- package/dist/actors/affordance.js +155 -0
- package/dist/actors/agent-session.js +42 -0
- package/dist/actors/codex/app-server-actor-trace.d.ts +11 -0
- package/dist/actors/codex/app-server-actor-trace.js +211 -0
- package/dist/actors/codex/app-server-client.d.ts +39 -0
- package/dist/actors/codex/app-server-client.js +116 -0
- package/dist/actors/codex/app-server-trace.d.ts +154 -0
- package/dist/actors/codex/app-server-trace.js +424 -0
- package/dist/actors/codex/app-server-ui.d.ts +40 -0
- package/dist/actors/codex/app-server-ui.js +328 -0
- package/dist/actors/codex/app-server.d.ts +44 -0
- package/dist/actors/codex/app-server.js +268 -0
- package/dist/actors/codex/qualified-versions.d.ts +45 -0
- package/dist/actors/codex/qualified-versions.js +87 -0
- package/dist/actors/codex/restricted-executable.d.ts +17 -0
- package/dist/actors/codex/restricted-executable.js +147 -0
- package/dist/actors/codex/restricted-launch.d.ts +116 -0
- package/dist/actors/codex/restricted-launch.js +222 -0
- package/dist/actors/codex/restricted-participant-policy.d.ts +46 -0
- package/dist/actors/codex/restricted-participant-policy.js +82 -0
- package/dist/actors/codex/restricted-participant.d.ts +20 -0
- package/dist/actors/codex/restricted-participant.js +432 -0
- package/dist/actors/codex/restricted-policy.d.ts +70 -0
- package/dist/actors/codex/restricted-policy.js +326 -0
- package/dist/actors/codex/restricted-session.d.ts +65 -0
- package/dist/actors/codex/restricted-session.js +432 -0
- package/dist/actors/codex/restricted-transport.d.ts +73 -0
- package/dist/actors/codex/restricted-transport.js +335 -0
- package/dist/actors/codex/restricted-turn.d.ts +62 -0
- package/dist/actors/codex/restricted-turn.js +284 -0
- package/dist/actors/computer-use/actor.d.ts +77 -0
- package/dist/actors/computer-use/actor.js +78 -0
- package/dist/actors/computer-use/admission-limit.d.ts +12 -0
- package/dist/actors/computer-use/admission-limit.js +19 -0
- package/dist/actors/computer-use/executor-error.js +48 -0
- package/dist/actors/computer-use/loop/actions.d.ts +26 -0
- package/dist/actors/computer-use/loop/actions.js +245 -0
- package/dist/actors/computer-use/loop/backstop.d.ts +42 -0
- package/dist/actors/computer-use/loop/backstop.js +202 -0
- package/dist/actors/computer-use/loop/debrief.d.ts +19 -0
- package/dist/actors/computer-use/loop/debrief.js +164 -0
- package/dist/actors/computer-use/loop/ending.d.ts +86 -0
- package/dist/actors/computer-use/loop/ending.js +316 -0
- package/dist/actors/computer-use/loop/observation.d.ts +55 -0
- package/dist/actors/computer-use/loop/observation.js +246 -0
- package/dist/actors/computer-use/loop/output-limit.d.ts +11 -0
- package/dist/actors/computer-use/loop/output-limit.js +21 -0
- package/dist/actors/computer-use/loop/provider-call.d.ts +19 -0
- package/dist/actors/computer-use/loop/provider-call.js +208 -0
- package/dist/actors/computer-use/loop/race.d.ts +34 -0
- package/dist/actors/computer-use/loop/race.js +79 -0
- package/dist/actors/computer-use/loop/session.d.ts +77 -0
- package/dist/actors/computer-use/loop/session.js +135 -0
- package/dist/actors/computer-use/loop/spend.d.ts +30 -0
- package/dist/actors/computer-use/loop/spend.js +85 -0
- package/dist/actors/computer-use/loop/trace.d.ts +35 -0
- package/dist/actors/computer-use/loop/trace.js +140 -0
- package/dist/actors/computer-use/loop/types.d.ts +404 -0
- package/dist/actors/computer-use/loop/types.js +1 -0
- package/dist/actors/computer-use/loop/usage.d.ts +102 -0
- package/dist/actors/computer-use/loop/usage.js +355 -0
- package/dist/actors/computer-use/loop.d.ts +11 -0
- package/dist/actors/computer-use/loop.js +248 -0
- package/dist/actors/computer-use/openai-provider.d.ts +107 -0
- package/dist/actors/computer-use/openai-provider.js +472 -0
- package/dist/actors/computer-use/openai-requests.d.ts +35 -0
- package/dist/actors/computer-use/openai-requests.js +74 -0
- package/dist/actors/computer-use/openai-wire.d.ts +67 -0
- package/dist/actors/computer-use/openai-wire.js +365 -0
- package/dist/actors/computer-use/provider-error.d.ts +27 -0
- package/dist/actors/computer-use/provider-error.js +86 -0
- package/dist/actors/computer-use/speech.js +6 -0
- package/dist/actors/contract.d.ts +315 -0
- package/dist/actors/contract.js +201 -0
- package/dist/actors/goal-source.js +38 -0
- package/dist/actors/local-agent/claude-session.d.ts +43 -0
- package/dist/actors/local-agent/claude-session.js +370 -0
- package/dist/actors/local-agent/cli.d.ts +115 -0
- package/dist/actors/local-agent/cli.js +413 -0
- package/dist/actors/local-agent/readiness.d.ts +31 -0
- package/dist/actors/local-agent/readiness.js +45 -0
- package/dist/actors/openai-endpoint.d.ts +2 -0
- package/dist/actors/openai-endpoint.js +2 -0
- package/dist/actors/output-token-limit.js +4 -0
- package/dist/actors/reasoning-effort.js +33 -0
- package/dist/actors/registry.d.ts +59 -0
- package/dist/actors/registry.js +89 -0
- package/dist/actors/scripted-browser/actor.d.ts +49 -0
- package/dist/actors/scripted-browser/actor.js +428 -0
- package/dist/actors/scripted-browser/browser-command.d.ts +1 -0
- package/dist/actors/scripted-browser/browser-command.js +48 -0
- package/dist/actors/scripted-browser/journey.d.ts +9 -0
- package/dist/actors/scripted-browser/journey.js +171 -0
- package/dist/actors/scripted-browser/steps.d.ts +60 -0
- package/dist/actors/scripted-browser/steps.js +384 -0
- package/dist/actors/scripted-browser/types.d.ts +135 -0
- package/dist/actors/scripted-browser/types.js +26 -0
- package/dist/actors/stop-cause.d.ts +9 -0
- package/dist/actors/stop-cause.js +42 -0
- package/dist/actors/stop-conditions.d.ts +40 -0
- package/dist/actors/stop-conditions.js +65 -0
- package/dist/analysis/automatic-completion.d.ts +38 -0
- package/dist/analysis/automatic-completion.js +90 -0
- package/dist/analysis/automatic-config.d.ts +41 -0
- package/dist/analysis/automatic-config.js +135 -0
- package/dist/analysis/automatic.d.ts +17 -0
- package/dist/analysis/automatic.js +279 -0
- package/dist/analysis/codex-config.d.ts +8 -0
- package/dist/analysis/codex-config.js +69 -0
- package/dist/analysis/evidence-sources.d.ts +23 -0
- package/dist/analysis/evidence-sources.js +251 -0
- package/dist/analysis/evidence.d.ts +18 -0
- package/dist/analysis/evidence.js +482 -0
- package/dist/analysis/execute.d.ts +52 -0
- package/dist/analysis/execute.js +504 -0
- package/dist/analysis/image-tokens.d.ts +1 -0
- package/dist/analysis/image-tokens.js +41 -0
- package/dist/analysis/job.d.ts +97 -0
- package/dist/analysis/job.js +311 -0
- package/dist/analysis/load.d.ts +3 -0
- package/dist/analysis/load.js +11 -0
- package/dist/analysis/provider.d.ts +57 -0
- package/dist/analysis/provider.js +227 -0
- package/dist/analysis/restricted-codex.d.ts +19 -0
- package/dist/analysis/restricted-codex.js +23 -0
- package/dist/analysis/service.d.ts +72 -0
- package/dist/analysis/service.js +399 -0
- package/dist/analysis/sharing.d.ts +11 -0
- package/dist/analysis/sharing.js +44 -0
- package/dist/analysis/store-executions.d.ts +27 -0
- package/dist/analysis/store-executions.js +224 -0
- package/dist/analysis/store.d.ts +31 -0
- package/dist/analysis/store.js +315 -0
- package/dist/analysis/types.d.ts +217 -0
- package/dist/analysis/types.js +12 -0
- package/dist/analysis/validation.d.ts +225 -0
- package/dist/analysis/validation.js +562 -0
- package/dist/browser-control/client.d.ts +18 -0
- package/dist/browser-control/client.js +239 -0
- package/dist/browser-control/dispatcher.d.ts +19 -0
- package/dist/browser-control/dispatcher.js +221 -0
- package/dist/browser-control/protocol.d.ts +492 -0
- package/dist/browser-control/protocol.js +360 -0
- package/dist/browser-control/recording-transfer.d.ts +3 -0
- package/dist/browser-control/recording-transfer.js +48 -0
- package/dist/browser-control/transport.d.ts +27 -0
- package/dist/browser-control/transport.js +189 -0
- package/dist/cli/commands/analysis-signals.d.ts +7 -0
- package/dist/cli/commands/analysis-signals.js +25 -0
- package/dist/cli/commands/analyze.d.ts +3 -0
- package/dist/cli/commands/analyze.js +212 -0
- package/dist/cli/commands/codex.d.ts +3 -0
- package/dist/cli/commands/codex.js +145 -0
- package/dist/cli/commands/comms.d.ts +3 -0
- package/dist/cli/commands/comms.js +225 -0
- package/dist/cli/commands/feedback.d.ts +3 -0
- package/dist/cli/commands/feedback.js +138 -0
- package/dist/cli/commands/lab-format.d.ts +8 -0
- package/dist/cli/commands/lab-format.js +105 -0
- package/dist/cli/commands/lab-route-computer-use.d.ts +20 -0
- package/dist/cli/commands/lab-route-computer-use.js +251 -0
- package/dist/cli/commands/lab-route-open.d.ts +27 -0
- package/dist/cli/commands/lab-route-open.js +37 -0
- package/dist/cli/commands/lab-route-preview.d.ts +20 -0
- package/dist/cli/commands/lab-route-preview.js +74 -0
- package/dist/cli/commands/lab-route-run.d.ts +17 -0
- package/dist/cli/commands/lab-route-run.js +31 -0
- package/dist/cli/commands/lab-route-scripted.d.ts +19 -0
- package/dist/cli/commands/lab-route-scripted.js +50 -0
- package/dist/cli/commands/lab-route-shared-world.d.ts +20 -0
- package/dist/cli/commands/lab-route-shared-world.js +135 -0
- package/dist/cli/commands/lab-route-terminal.d.ts +19 -0
- package/dist/cli/commands/lab-route-terminal.js +49 -0
- package/dist/cli/commands/lab-run.d.ts +9 -0
- package/dist/cli/commands/lab-run.js +166 -0
- package/dist/cli/commands/lab-scorer.d.ts +30 -0
- package/dist/cli/commands/lab-scorer.js +17 -0
- package/dist/cli/commands/lab.d.ts +3 -0
- package/dist/cli/commands/lab.js +193 -0
- package/dist/cli/commands/observe.d.ts +4 -0
- package/dist/cli/commands/observe.js +345 -0
- package/dist/cli/commands/runs.d.ts +11 -0
- package/dist/cli/commands/runs.js +314 -0
- package/dist/cli/commands/setup.d.ts +11 -0
- package/dist/cli/commands/setup.js +325 -0
- package/dist/cli/commands/tui.d.ts +32 -0
- package/dist/cli/commands/tui.js +305 -0
- package/dist/cli/commands/watch.d.ts +3 -0
- package/dist/cli/commands/watch.js +245 -0
- package/dist/cli/doctor.d.ts +39 -0
- package/dist/cli/doctor.js +263 -0
- package/dist/cli/first-run-path.d.ts +67 -0
- package/dist/cli/first-run-path.js +150 -0
- package/dist/cli/io.d.ts +85 -0
- package/dist/cli/io.js +232 -0
- package/dist/cli/observer-follow.d.ts +56 -0
- package/dist/cli/observer-follow.js +160 -0
- package/dist/cli/orientation.d.ts +30 -0
- package/dist/cli/orientation.js +114 -0
- package/dist/cli/program.d.ts +15 -0
- package/dist/cli/program.js +338 -0
- package/dist/cli/secret-prompt.js +39 -0
- package/dist/cli/telemetry.js +351 -0
- package/dist/cli.js +2 -4
- package/dist/comms/agentmail.d.ts +29 -0
- package/dist/comms/agentmail.js +568 -0
- package/dist/comms/capture-surface.d.ts +54 -0
- package/dist/comms/capture-surface.js +468 -0
- package/dist/comms/catch-host.d.ts +52 -0
- package/dist/comms/catch-host.js +192 -0
- package/dist/comms/connections.d.ts +20 -0
- package/dist/comms/connections.js +116 -0
- package/dist/comms/email-catch.d.ts +49 -0
- package/dist/comms/email-catch.js +236 -0
- package/dist/comms/extract.d.ts +7 -0
- package/dist/comms/extract.js +65 -0
- package/dist/comms/fake-inbox.d.ts +39 -0
- package/dist/comms/fake-inbox.js +136 -0
- package/dist/comms/images.d.ts +7 -0
- package/dist/comms/images.js +53 -0
- package/dist/comms/lease-store.d.ts +91 -0
- package/dist/comms/lease-store.js +600 -0
- package/dist/comms/providers.d.ts +30 -0
- package/dist/comms/providers.js +24 -0
- package/dist/comms/receiving-common.d.ts +17 -0
- package/dist/comms/receiving-common.js +82 -0
- package/dist/comms/receiving-evidence.d.ts +4 -0
- package/dist/comms/receiving-evidence.js +59 -0
- package/dist/comms/receiving-recovery.d.ts +22 -0
- package/dist/comms/receiving-recovery.js +100 -0
- package/dist/comms/receiving-render.d.ts +16 -0
- package/dist/comms/receiving-render.js +409 -0
- package/dist/comms/receiving-runtime.d.ts +41 -0
- package/dist/comms/receiving-runtime.js +66 -0
- package/dist/comms/receiving-surface.d.ts +8 -0
- package/dist/comms/receiving-surface.js +156 -0
- package/dist/comms/receiving-types.d.ts +122 -0
- package/dist/comms/receiving-types.js +3 -0
- package/dist/comms/receiving.d.ts +33 -0
- package/dist/comms/receiving.js +508 -0
- package/dist/comms/sandbox-catch-script.d.ts +16 -0
- package/dist/comms/sandbox-catch-script.js +331 -0
- package/dist/comms/sandbox-catch.d.ts +214 -0
- package/dist/comms/sandbox-catch.js +451 -0
- package/dist/comms/setup.d.ts +65 -0
- package/dist/comms/setup.js +259 -0
- package/dist/comms/thread-evidence.d.ts +28 -0
- package/dist/comms/thread-evidence.js +30 -0
- package/dist/comms/types.d.ts +76 -0
- package/dist/comms/types.js +8 -0
- package/dist/deprecated.d.ts +90 -0
- package/dist/deprecated.js +106 -0
- package/dist/evidence/browser-hygiene.js +42 -0
- package/dist/evidence/desktop-recorder.d.ts +39 -0
- package/dist/evidence/desktop-recorder.js +340 -0
- package/dist/evidence/desktop-recording-artifact.d.ts +5 -0
- package/dist/evidence/desktop-recording-artifact.js +53 -0
- package/dist/evidence/desktop-recording-types.d.ts +27 -0
- package/dist/evidence/desktop-recording-types.js +16 -0
- package/dist/evidence/encoded-text.d.ts +27 -0
- package/dist/evidence/encoded-text.js +243 -0
- package/dist/evidence/frame-signature.d.ts +17 -0
- package/dist/evidence/frame-signature.js +111 -0
- package/dist/evidence/image.d.ts +24 -0
- package/dist/evidence/image.js +170 -0
- package/dist/evidence/plain-text.d.ts +8 -0
- package/dist/evidence/plain-text.js +16 -0
- package/dist/evidence/redaction.d.ts +110 -0
- package/dist/evidence/redaction.js +329 -0
- package/dist/feedback/draft.d.ts +58 -0
- package/dist/feedback/draft.js +309 -0
- package/dist/feedback/export-bundle.d.ts +6 -0
- package/dist/feedback/export-bundle.js +585 -0
- package/dist/feedback/export.d.ts +50 -0
- package/dist/feedback/export.js +392 -0
- package/dist/feedback/feedback.d.ts +37 -0
- package/dist/feedback/feedback.js +282 -0
- package/dist/feedback/proof.d.ts +8 -0
- package/dist/feedback/proof.js +56 -0
- package/dist/guest/bootstrap.d.ts +55 -0
- package/dist/guest/bootstrap.js +348 -0
- package/dist/guest/browser-tools.d.ts +8 -0
- package/dist/guest/browser-tools.js +72 -0
- package/dist/guest/chromium-text.d.ts +62 -0
- package/dist/guest/chromium-text.js +386 -0
- package/dist/guest/desktop-executor.d.ts +57 -0
- package/dist/guest/desktop-executor.js +256 -0
- package/dist/guest/desktop-keys.d.ts +8 -0
- package/dist/guest/desktop-keys.js +89 -0
- package/dist/guest/desktop-media.d.ts +70 -0
- package/dist/guest/desktop-media.js +385 -0
- package/dist/guest/desktop-native.d.ts +14 -0
- package/dist/guest/desktop-native.js +156 -0
- package/dist/guest/media-config.d.ts +15 -0
- package/dist/guest/media-config.js +16 -0
- package/dist/guest/runtime-desktop.d.ts +45 -0
- package/dist/guest/runtime-desktop.js +420 -0
- package/dist/guest/runtime-processes.d.ts +28 -0
- package/dist/guest/runtime-processes.js +94 -0
- package/dist/guest/runtime.d.ts +31 -0
- package/dist/guest/runtime.js +124 -0
- package/dist/guest-media-worker.js +184 -48
- package/dist/guest-runtime-main.js +23 -10
- package/dist/guest-runtime-revision.js +1 -1
- package/dist/index.d.ts +32 -83
- package/dist/index.js +21 -42
- package/dist/keys/env-file.d.ts +15 -0
- package/dist/keys/env-file.js +109 -0
- package/dist/keys/key-resolution.d.ts +58 -0
- package/dist/keys/key-resolution.js +389 -0
- package/dist/lab/adapter-extension.d.ts +75 -0
- package/dist/lab/adapter-extension.js +253 -0
- package/dist/lab/adapter-scorer-loader.d.ts +43 -0
- package/dist/lab/adapter-scorer-loader.js +130 -0
- package/dist/lab/bag-overrides.d.ts +18 -0
- package/dist/lab/bag-overrides.js +121 -0
- package/dist/lab/composition-rules.d.ts +5 -0
- package/dist/lab/composition-rules.js +283 -0
- package/dist/lab/config.d.ts +7 -0
- package/dist/lab/config.js +208 -0
- package/dist/lab/device-presets.d.ts +97 -0
- package/dist/lab/device-presets.js +87 -0
- package/dist/lab/discover.d.ts +65 -0
- package/dist/lab/discover.js +422 -0
- package/dist/lab/doctor.d.ts +39 -0
- package/dist/lab/doctor.js +233 -0
- package/dist/lab/init-paths.d.ts +5 -0
- package/dist/lab/init-paths.js +89 -0
- package/dist/lab/init-plan.d.ts +20 -0
- package/dist/lab/init-plan.js +163 -0
- package/dist/lab/init-templates.d.ts +28 -0
- package/dist/lab/init-templates.js +416 -0
- package/dist/lab/init.d.ts +39 -0
- package/dist/lab/init.js +287 -0
- package/dist/lab/keys.d.ts +2 -0
- package/dist/lab/keys.js +264 -0
- package/dist/lab/parse/actors.d.ts +14 -0
- package/dist/lab/parse/actors.js +453 -0
- package/dist/lab/parse/comms.d.ts +12 -0
- package/dist/lab/parse/comms.js +246 -0
- package/dist/lab/parse/execution.d.ts +19 -0
- package/dist/lab/parse/execution.js +356 -0
- package/dist/lab/parse/subject-state.d.ts +30 -0
- package/dist/lab/parse/subject-state.js +179 -0
- package/dist/lab/parse/subject.d.ts +9 -0
- package/dist/lab/parse/subject.js +420 -0
- package/dist/lab/parse/values.d.ts +17 -0
- package/dist/lab/parse/values.js +65 -0
- package/dist/lab/participant-assignment.d.ts +12 -0
- package/dist/lab/participant-assignment.js +19 -0
- package/dist/lab/persona-resolve.d.ts +39 -0
- package/dist/lab/persona-resolve.js +118 -0
- package/dist/lab/persona.d.ts +39 -0
- package/dist/lab/persona.js +192 -0
- package/dist/lab/plan-base.d.ts +24 -0
- package/dist/lab/plan-base.js +113 -0
- package/dist/lab/plan-participants.d.ts +81 -0
- package/dist/lab/plan-participants.js +92 -0
- package/dist/lab/plan-types.d.ts +269 -0
- package/dist/lab/plan-types.js +5 -0
- package/dist/lab/plan.d.ts +27 -0
- package/dist/lab/plan.js +156 -0
- package/dist/lab/preflight-probes.d.ts +3 -0
- package/dist/lab/preflight-probes.js +312 -0
- package/dist/lab/preflight-result.d.ts +7 -0
- package/dist/lab/preflight-result.js +43 -0
- package/dist/lab/preflight.d.ts +95 -0
- package/dist/lab/preflight.js +117 -0
- package/dist/lab/route-inputs.d.ts +17 -0
- package/dist/lab/route-inputs.js +95 -0
- package/dist/lab/routing.d.ts +81 -0
- package/dist/lab/routing.js +214 -0
- package/dist/lab/run-lab-events.d.ts +69 -0
- package/dist/lab/run-lab-events.js +95 -0
- package/dist/lab/run-lab-options.d.ts +82 -0
- package/dist/lab/run-lab-options.js +399 -0
- package/dist/lab/summary.d.ts +60 -0
- package/dist/lab/summary.js +168 -0
- package/dist/lab/tasks.d.ts +91 -0
- package/dist/lab/tasks.js +139 -0
- package/dist/lab/types.d.ts +813 -0
- package/dist/lab/types.js +6 -0
- package/dist/lab/validation.d.ts +67 -0
- package/dist/lab/validation.js +387 -0
- package/dist/lab/warnings.d.ts +2 -0
- package/dist/lab/warnings.js +338 -0
- package/dist/observer/artifact.d.ts +23 -0
- package/dist/observer/artifact.js +235 -0
- package/dist/observer/data.d.ts +115 -0
- package/dist/observer/data.js +258 -0
- package/dist/observer/exposure.d.ts +64 -0
- package/dist/observer/exposure.js +143 -0
- package/dist/observer/http.js +50 -0
- package/dist/observer/library.js +190 -0
- package/dist/observer/listen.js +85 -0
- package/dist/observer/live.d.ts +9 -0
- package/dist/observer/live.js +25 -0
- package/dist/observer/pinned-files.d.ts +30 -0
- package/dist/observer/pinned-files.js +160 -0
- package/dist/observer/render.d.ts +69 -0
- package/dist/observer/render.js +350 -0
- package/dist/observer/run-inventory.d.ts +35 -0
- package/dist/observer/run-inventory.js +95 -0
- package/dist/observer/run-routes.d.ts +37 -0
- package/dist/observer/run-routes.js +373 -0
- package/dist/observer/serve.d.ts +97 -0
- package/dist/observer/serve.js +305 -0
- package/dist/observer/static.js +369 -0
- package/dist/observer/tunnel.js +112 -0
- package/dist/observer-app.html +9 -20
- package/dist/routes/computer-use/bundle-parts.d.ts +50 -0
- package/dist/routes/computer-use/bundle-parts.js +177 -0
- package/dist/routes/computer-use/bundle.d.ts +56 -0
- package/dist/routes/computer-use/bundle.js +184 -0
- package/dist/routes/computer-use/diagnostics.d.ts +38 -0
- package/dist/routes/computer-use/diagnostics.js +94 -0
- package/dist/routes/computer-use/e2b-desktop/comms.d.ts +65 -0
- package/dist/routes/computer-use/e2b-desktop/comms.js +225 -0
- package/dist/routes/computer-use/e2b-desktop/desktop.d.ts +3 -0
- package/dist/routes/computer-use/e2b-desktop/desktop.js +91 -0
- package/dist/routes/computer-use/e2b-desktop/fidelity.d.ts +65 -0
- package/dist/routes/computer-use/e2b-desktop/fidelity.js +156 -0
- package/dist/routes/computer-use/e2b-desktop/prepare.d.ts +18 -0
- package/dist/routes/computer-use/e2b-desktop/prepare.js +198 -0
- package/dist/routes/computer-use/e2b-desktop/start.d.ts +14 -0
- package/dist/routes/computer-use/e2b-desktop/start.js +193 -0
- package/dist/routes/computer-use/e2b-desktop/state.d.ts +65 -0
- package/dist/routes/computer-use/e2b-desktop/state.js +69 -0
- package/dist/routes/computer-use/e2b-desktop/teardown.d.ts +6 -0
- package/dist/routes/computer-use/e2b-desktop/teardown.js +152 -0
- package/dist/routes/computer-use/external-comms.d.ts +20 -0
- package/dist/routes/computer-use/external-comms.js +55 -0
- package/dist/routes/computer-use/fanout-bundle.d.ts +11 -0
- package/dist/routes/computer-use/fanout-bundle.js +274 -0
- package/dist/routes/computer-use/fanout-lanes.d.ts +15 -0
- package/dist/routes/computer-use/fanout-lanes.js +302 -0
- package/dist/routes/computer-use/in-process-desktop.d.ts +17 -0
- package/dist/routes/computer-use/in-process-desktop.js +40 -0
- package/dist/routes/computer-use/lanes.d.ts +35 -0
- package/dist/routes/computer-use/lanes.js +321 -0
- package/dist/routes/computer-use/legacy-lane-spec.d.ts +62 -0
- package/dist/routes/computer-use/legacy-lane-spec.js +39 -0
- package/dist/routes/computer-use/live-flush.d.ts +42 -0
- package/dist/routes/computer-use/live-flush.js +154 -0
- package/dist/routes/computer-use/local-tree-pack.d.ts +27 -0
- package/dist/routes/computer-use/local-tree-pack.js +47 -0
- package/dist/routes/computer-use/local-vm.d.ts +20 -0
- package/dist/routes/computer-use/local-vm.js +218 -0
- package/dist/routes/computer-use/participant-desktop.d.ts +63 -0
- package/dist/routes/computer-use/participant-desktop.js +33 -0
- package/dist/routes/computer-use/participant-facts.d.ts +6 -0
- package/dist/routes/computer-use/participant-facts.js +22 -0
- package/dist/routes/computer-use/participant-model.d.ts +30 -0
- package/dist/routes/computer-use/participant-model.js +222 -0
- package/dist/routes/computer-use/participant-prompt.d.ts +53 -0
- package/dist/routes/computer-use/participant-prompt.js +87 -0
- package/dist/routes/computer-use/participant-runs.d.ts +67 -0
- package/dist/routes/computer-use/participant-runs.js +255 -0
- package/dist/routes/computer-use/plan.d.ts +56 -0
- package/dist/routes/computer-use/plan.js +308 -0
- package/dist/routes/computer-use/preflight.d.ts +26 -0
- package/dist/routes/computer-use/preflight.js +85 -0
- package/dist/routes/computer-use/rerun-selection.d.ts +19 -0
- package/dist/routes/computer-use/rerun-selection.js +121 -0
- package/dist/routes/computer-use/result.d.ts +7 -0
- package/dist/routes/computer-use/result.js +292 -0
- package/dist/routes/computer-use/route.d.ts +33 -0
- package/dist/routes/computer-use/route.js +145 -0
- package/dist/routes/computer-use/run-lanes.d.ts +59 -0
- package/dist/routes/computer-use/run-lanes.js +135 -0
- package/dist/routes/computer-use/self-report.d.ts +21 -0
- package/dist/routes/computer-use/self-report.js +231 -0
- package/dist/routes/computer-use/setup.d.ts +136 -0
- package/dist/routes/computer-use/setup.js +371 -0
- package/dist/routes/computer-use/single-bundle.d.ts +97 -0
- package/dist/routes/computer-use/single-bundle.js +393 -0
- package/dist/routes/computer-use/subject-projection.d.ts +51 -0
- package/dist/routes/computer-use/subject-projection.js +159 -0
- package/dist/routes/computer-use/types.d.ts +539 -0
- package/dist/routes/computer-use/types.js +37 -0
- package/dist/routes/preview.d.ts +13 -0
- package/dist/routes/preview.js +36 -0
- package/dist/routes/scripted/bundle.d.ts +47 -0
- package/dist/routes/scripted/bundle.js +195 -0
- package/dist/routes/scripted/plan.d.ts +30 -0
- package/dist/routes/scripted/plan.js +95 -0
- package/dist/routes/scripted/result.d.ts +48 -0
- package/dist/routes/scripted/result.js +176 -0
- package/dist/routes/scripted/route.d.ts +28 -0
- package/dist/routes/scripted/route.js +218 -0
- package/dist/routes/scripted/scenario.d.ts +21 -0
- package/dist/routes/scripted/scenario.js +102 -0
- package/dist/routes/scripted/session-result.d.ts +8 -0
- package/dist/routes/scripted/session-result.js +60 -0
- package/dist/routes/scripted/setup.d.ts +45 -0
- package/dist/routes/scripted/setup.js +126 -0
- package/dist/routes/scripted/subject.d.ts +49 -0
- package/dist/routes/scripted/subject.js +156 -0
- package/dist/routes/scripted/surface-records.d.ts +26 -0
- package/dist/routes/scripted/surface-records.js +88 -0
- package/dist/routes/scripted/surface-sessions.d.ts +13 -0
- package/dist/routes/scripted/surface-sessions.js +40 -0
- package/dist/routes/scripted/types.d.ts +88 -0
- package/dist/routes/scripted/types.js +3 -0
- package/dist/routes/shared-world/bundle.d.ts +20 -0
- package/dist/routes/shared-world/bundle.js +446 -0
- package/dist/routes/shared-world/checkpoints.d.ts +25 -0
- package/dist/routes/shared-world/checkpoints.js +46 -0
- package/dist/routes/shared-world/comms.d.ts +68 -0
- package/dist/routes/shared-world/comms.js +176 -0
- package/dist/routes/shared-world/external-public.d.ts +21 -0
- package/dist/routes/shared-world/external-public.js +130 -0
- package/dist/routes/shared-world/handoff.d.ts +62 -0
- package/dist/routes/shared-world/handoff.js +348 -0
- package/dist/routes/shared-world/lobby-code.d.ts +25 -0
- package/dist/routes/shared-world/lobby-code.js +152 -0
- package/dist/routes/shared-world/plan.d.ts +27 -0
- package/dist/routes/shared-world/plan.js +174 -0
- package/dist/routes/shared-world/provenance.d.ts +27 -0
- package/dist/routes/shared-world/provenance.js +65 -0
- package/dist/routes/shared-world/provisioned.d.ts +57 -0
- package/dist/routes/shared-world/provisioned.js +505 -0
- package/dist/routes/shared-world/result.d.ts +18 -0
- package/dist/routes/shared-world/result.js +327 -0
- package/dist/routes/shared-world/route.d.ts +21 -0
- package/dist/routes/shared-world/route.js +277 -0
- package/dist/routes/shared-world/seat-records.d.ts +20 -0
- package/dist/routes/shared-world/seat-records.js +213 -0
- package/dist/routes/shared-world/seats.d.ts +38 -0
- package/dist/routes/shared-world/seats.js +208 -0
- package/dist/routes/shared-world/setup.d.ts +48 -0
- package/dist/routes/shared-world/setup.js +200 -0
- package/dist/routes/shared-world/types.d.ts +354 -0
- package/dist/routes/shared-world/types.js +29 -0
- package/dist/routes/terminal/adapter.d.ts +37 -0
- package/dist/routes/terminal/adapter.js +201 -0
- package/dist/routes/terminal/bundle.d.ts +79 -0
- package/dist/routes/terminal/bundle.js +305 -0
- package/dist/routes/terminal/credentials.d.ts +34 -0
- package/dist/routes/terminal/credentials.js +102 -0
- package/dist/routes/terminal/dry-run.d.ts +24 -0
- package/dist/routes/terminal/dry-run.js +157 -0
- package/dist/routes/terminal/encoding.js +79 -0
- package/dist/routes/terminal/ledger.d.ts +49 -0
- package/dist/routes/terminal/ledger.js +170 -0
- package/dist/routes/terminal/lifetime.d.ts +10 -0
- package/dist/routes/terminal/lifetime.js +22 -0
- package/dist/routes/terminal/live-finish.d.ts +31 -0
- package/dist/routes/terminal/live-finish.js +215 -0
- package/dist/routes/terminal/live-sandbox.d.ts +69 -0
- package/dist/routes/terminal/live-sandbox.js +452 -0
- package/dist/routes/terminal/persona.d.ts +20 -0
- package/dist/routes/terminal/persona.js +34 -0
- package/dist/routes/terminal/plan.d.ts +21 -0
- package/dist/routes/terminal/plan.js +115 -0
- package/dist/routes/terminal/recorder.d.ts +23 -0
- package/dist/routes/terminal/recorder.js +77 -0
- package/dist/routes/terminal/result.d.ts +47 -0
- package/dist/routes/terminal/result.js +114 -0
- package/dist/routes/terminal/route.d.ts +23 -0
- package/dist/routes/terminal/route.js +170 -0
- package/dist/routes/terminal/runtime-auth.d.ts +12 -0
- package/dist/routes/terminal/runtime-auth.js +23 -0
- package/dist/routes/terminal/runtime.d.ts +14 -0
- package/dist/routes/terminal/runtime.js +47 -0
- package/dist/routes/terminal/sandbox.d.ts +35 -0
- package/dist/routes/terminal/sandbox.js +126 -0
- package/dist/routes/terminal/session.d.ts +25 -0
- package/dist/routes/terminal/session.js +199 -0
- package/dist/routes/terminal/token-usage.d.ts +15 -0
- package/dist/routes/terminal/token-usage.js +93 -0
- package/dist/routes/terminal/trace.d.ts +40 -0
- package/dist/routes/terminal/trace.js +172 -0
- package/dist/routes/terminal/types.d.ts +342 -0
- package/dist/routes/terminal/types.js +31 -0
- package/dist/run/bundle-shape.d.ts +7 -0
- package/dist/run/bundle-shape.js +369 -0
- package/dist/run/bundle.d.ts +547 -0
- package/dist/run/bundle.js +44 -0
- package/dist/run/concurrency.js +24 -0
- package/dist/run/contained-output.d.ts +50 -0
- package/dist/run/contained-output.js +351 -0
- package/dist/run/cost-summary.d.ts +28 -0
- package/dist/run/cost-summary.js +213 -0
- package/dist/run/costs.js +140 -0
- package/dist/run/detail.d.ts +62 -0
- package/dist/run/detail.js +139 -0
- package/dist/run/dry-run-inputs.d.ts +9 -0
- package/dist/run/dry-run-inputs.js +90 -0
- package/dist/run/dry-run.d.ts +6 -0
- package/dist/run/dry-run.js +362 -0
- package/dist/run/feedback-shape.d.ts +7 -0
- package/dist/run/feedback-shape.js +89 -0
- package/dist/run/git-state.d.ts +35 -0
- package/dist/run/git-state.js +316 -0
- package/dist/run/git-workspace.d.ts +32 -0
- package/dist/run/git-workspace.js +450 -0
- package/dist/run/judge.d.ts +210 -0
- package/dist/run/judge.js +240 -0
- package/dist/run/locate.d.ts +22 -0
- package/dist/run/locate.js +122 -0
- package/dist/run/outcomes.d.ts +31 -0
- package/dist/run/outcomes.js +210 -0
- package/dist/run/participant-records.d.ts +28 -0
- package/dist/run/participant-records.js +63 -0
- package/dist/run/participant.d.ts +29 -0
- package/dist/run/participant.js +12 -0
- package/dist/run/paths.d.ts +79 -0
- package/dist/run/paths.js +356 -0
- package/dist/run/preflight-receipts.d.ts +46 -0
- package/dist/run/preflight-receipts.js +173 -0
- package/dist/run/pricing.d.ts +124 -0
- package/dist/run/pricing.js +298 -0
- package/dist/run/project.d.ts +8 -0
- package/dist/run/project.js +103 -0
- package/dist/run/projection.d.ts +184 -0
- package/dist/run/projection.js +356 -0
- package/dist/run/reclaim.d.ts +41 -0
- package/dist/run/reclaim.js +183 -0
- package/dist/run/results.d.ts +88 -0
- package/dist/run/results.js +3 -0
- package/dist/run/run-index.d.ts +107 -0
- package/dist/run/run-index.js +243 -0
- package/dist/run/run.d.ts +103 -0
- package/dist/run/run.js +199 -0
- package/dist/run/sandbox-receipts.d.ts +31 -0
- package/dist/run/sandbox-receipts.js +49 -0
- package/dist/run/shared-world-evidence.d.ts +220 -0
- package/dist/run/shared-world-evidence.js +49 -0
- package/dist/run/shared-world-shape.d.ts +26 -0
- package/dist/run/shared-world-shape.js +181 -0
- package/dist/run/stats.d.ts +82 -0
- package/dist/run/stats.js +258 -0
- package/dist/run/status.d.ts +111 -0
- package/dist/run/status.js +176 -0
- package/dist/run/stored-runs.d.ts +38 -0
- package/dist/run/stored-runs.js +273 -0
- package/dist/run/stream-shape.d.ts +4 -0
- package/dist/run/stream-shape.js +160 -0
- package/dist/run/streams.d.ts +257 -0
- package/dist/run/streams.js +12 -0
- package/dist/run/study-files.d.ts +35 -0
- package/dist/run/study-files.js +164 -0
- package/dist/run/terminal-contract.d.ts +25 -0
- package/dist/run/terminal-contract.js +47 -0
- package/dist/run/text.d.ts +2 -0
- package/dist/run/text.js +4 -0
- package/dist/run/transient-comms-secrets.js +72 -0
- package/dist/run/type-guards.d.ts +6 -0
- package/dist/run/type-guards.js +18 -0
- package/dist/run-lab.d.ts +110 -0
- package/dist/run-lab.js +148 -0
- package/dist/subject/clone.d.ts +37 -0
- package/dist/subject/clone.js +62 -0
- package/dist/subject/desktop-cli.d.ts +17 -0
- package/dist/subject/desktop-cli.js +51 -0
- package/dist/subject/local-tree-archive.d.ts +82 -0
- package/dist/subject/local-tree-archive.js +431 -0
- package/dist/subject/local-tree.d.ts +28 -0
- package/dist/subject/local-tree.js +58 -0
- package/dist/subject/node-bootstrap.d.ts +12 -0
- package/dist/subject/node-bootstrap.js +66 -0
- package/dist/subject/runtime.d.ts +13 -0
- package/dist/subject/runtime.js +50 -0
- package/dist/subject/serve.d.ts +39 -0
- package/dist/subject/serve.js +249 -0
- package/dist/subject/state.d.ts +23 -0
- package/dist/subject/state.js +58 -0
- package/dist/subject/steps.d.ts +37 -0
- package/dist/subject/steps.js +39 -0
- package/dist/substrates/command-failure.d.ts +23 -0
- package/dist/substrates/command-failure.js +45 -0
- package/dist/substrates/desktop-session.d.ts +41 -0
- package/dist/substrates/desktop-session.js +59 -0
- package/dist/substrates/detached.d.ts +55 -0
- package/dist/substrates/detached.js +139 -0
- package/dist/substrates/e2b/cdp-probe.d.ts +99 -0
- package/dist/substrates/e2b/cdp-probe.js +556 -0
- package/dist/substrates/e2b/desktop-browser.d.ts +81 -0
- package/dist/substrates/e2b/desktop-browser.js +410 -0
- package/dist/substrates/e2b/desktop-cdp.d.ts +77 -0
- package/dist/substrates/e2b/desktop-cdp.js +211 -0
- package/dist/substrates/e2b/desktop-executor.d.ts +92 -0
- package/dist/substrates/e2b/desktop-executor.js +302 -0
- package/dist/substrates/e2b/desktop-geometry.d.ts +83 -0
- package/dist/substrates/e2b/desktop-geometry.js +331 -0
- package/dist/substrates/e2b/desktop-media.d.ts +29 -0
- package/dist/substrates/e2b/desktop-media.js +151 -0
- package/dist/substrates/e2b/desktop-recording.d.ts +18 -0
- package/dist/substrates/e2b/desktop-recording.js +238 -0
- package/dist/substrates/e2b/desktop-resources.d.ts +11 -0
- package/dist/substrates/e2b/desktop-resources.js +35 -0
- package/dist/substrates/e2b/desktop-screenshot-cleanup.d.ts +15 -0
- package/dist/substrates/e2b/desktop-screenshot-cleanup.js +66 -0
- package/dist/substrates/e2b/lifetime.d.ts +12 -0
- package/dist/substrates/e2b/lifetime.js +18 -0
- package/dist/substrates/e2b/sandbox.d.ts +102 -0
- package/dist/substrates/e2b/sandbox.js +202 -0
- package/dist/substrates/e2b/sdk.d.ts +194 -0
- package/dist/substrates/e2b/sdk.js +168 -0
- package/dist/substrates/e2b/shell.d.ts +10 -0
- package/dist/substrates/e2b/shell.js +61 -0
- package/dist/substrates/local/captured-inbox.d.ts +6 -0
- package/dist/substrates/local/captured-inbox.js +87 -0
- package/dist/substrates/local/firecracker-desktop.d.ts +25 -0
- package/dist/substrates/local/firecracker-desktop.js +315 -0
- package/dist/substrates/local/runtime-config.d.ts +6 -0
- package/dist/substrates/local/runtime-config.js +91 -0
- package/dist/substrates/local/runtime-host.d.ts +30 -0
- package/dist/substrates/local/runtime-host.js +143 -0
- package/dist/substrates/local/runtime-release.d.ts +5 -0
- package/dist/substrates/local/runtime-release.js +32 -0
- package/dist/substrates/local/runtime-ssh.d.ts +9 -0
- package/dist/substrates/local/runtime-ssh.js +129 -0
- package/dist/substrates/local/runtime.d.ts +25 -0
- package/dist/substrates/local/runtime.js +190 -0
- package/dist/substrates/shell.d.ts +44 -0
- package/dist/substrates/shell.js +22 -0
- package/dist/tui/actions.d.ts +39 -0
- package/dist/tui/actions.js +203 -0
- package/dist/tui/contract.d.ts +144 -0
- package/dist/tui/contract.js +52 -0
- package/dist/tui/launch.js +172 -0
- package/dist/tui/project.d.ts +10 -0
- package/dist/tui/project.js +17 -0
- package/dist/tui-app.js +125 -125
- package/dist/verify/actor.d.ts +27 -0
- package/dist/verify/actor.js +292 -0
- package/dist/verify/artifacts.d.ts +47 -0
- package/dist/verify/artifacts.js +373 -0
- package/dist/verify/costs.d.ts +30 -0
- package/dist/verify/costs.js +129 -0
- package/dist/verify/liveness.d.ts +7 -0
- package/dist/verify/liveness.js +72 -0
- package/dist/verify/rerun.d.ts +3 -0
- package/dist/verify/rerun.js +46 -0
- package/dist/verify/shared-world-concurrent.d.ts +11 -0
- package/dist/verify/shared-world-concurrent.js +346 -0
- package/dist/verify/shared-world.d.ts +8 -0
- package/dist/verify/shared-world.js +295 -0
- package/dist/verify/subject.d.ts +17 -0
- package/dist/verify/subject.js +123 -0
- package/dist/verify/verify.d.ts +34 -0
- package/dist/verify/verify.js +333 -0
- package/docs/README.md +67 -0
- package/docs/architecture/actor-contract.md +215 -174
- package/docs/architecture/browser-control.md +51 -37
- package/docs/architecture/comms-inbox.md +8 -8
- package/docs/architecture/desktop-recording.md +2 -2
- package/docs/architecture/desktop-sessions.md +33 -21
- package/docs/architecture/external-public-shared-world.md +80 -64
- package/docs/architecture/github-feedback-loop.md +40 -27
- package/docs/architecture/guest-desktop.md +22 -10
- package/docs/architecture/local-browser-runtime.md +30 -21
- package/docs/architecture/observer-review.md +9 -9
- package/docs/architecture/observer.md +53 -57
- package/docs/architecture/participant-media.md +3 -3
- package/docs/architecture/project-layout.md +33 -137
- package/docs/architecture/real-email-receiving.md +7 -6
- package/docs/architecture/restricted-codex-analysis.md +211 -25
- package/docs/architecture/serve.md +89 -87
- package/docs/architecture/state-driven-executor.md +79 -64
- package/docs/architecture/task-protocol-support.md +18 -18
- package/docs/architecture/terminal-product-lane.md +92 -86
- package/docs/contracts/adapter-admission.md +8 -4
- package/docs/contracts/adapter-fixtures.md +6 -6
- package/docs/contracts/core.md +22 -24
- package/docs/contracts/feedback.md +33 -23
- package/docs/contracts/policy.md +28 -31
- package/docs/contracts/run-bundle.md +168 -82
- package/docs/contracts/schemas.md +594 -379
- package/docs/contracts/study-analysis.md +2 -2
- package/docs/contracts/study-costs.md +12 -12
- package/docs/decisions/0001-run-bundle-is-the-source-of-truth.md +36 -0
- package/docs/decisions/0002-observer-is-one-self-contained-file.md +30 -0
- package/docs/decisions/0003-contained-paths-and-cleanup-authority.md +35 -0
- package/docs/decisions/0004-participant-desktops-stay-in-the-route.md +31 -0
- package/docs/decisions/README.md +16 -0
- package/docs/goals/current.md +22 -46
- package/docs/principles/actor-fidelity.md +51 -63
- package/docs/principles/engineering.md +81 -0
- package/docs/principles/invariants-and-defaults.md +48 -45
- package/docs/principles/self-driving-harness.md +11 -10
- package/docs/principles/three-roles.md +12 -13
- package/docs/product/automatic-analysis.md +39 -9
- package/docs/product/lobby-trivia-3player-external-public.md +14 -13
- package/docs/product/open-source-install-experience.md +34 -38
- package/docs/ramp/README.md +91 -213
- package/docs/release/open-source-readiness.md +5 -2
- package/docs/release/public-readiness-standard.md +1 -1
- package/examples/README.md +11 -0
- package/examples/participant/README.md +80 -0
- package/examples/participant/app.mjs +55 -0
- package/examples/participant/run.mjs +116 -0
- package/examples/scorer/README.md +29 -0
- package/examples/scorer/run.mjs +63 -0
- package/examples/scorer/scorer.mjs +20 -0
- package/package.json +61 -57
- package/skills/humanish/SKILL.md +112 -83
- package/skills/humanish/agents/openai.yaml +2 -2
- package/dist/actor-contract.d.ts +0 -288
- package/dist/actor-contract.js +0 -340
- package/dist/actor-contract.js.map +0 -1
- package/dist/actor-goal-source.js +0 -32
- package/dist/actor-goal-source.js.map +0 -1
- package/dist/actor-registry.d.ts +0 -77
- package/dist/actor-registry.js +0 -106
- package/dist/actor-registry.js.map +0 -1
- package/dist/actor-stop-cause.d.ts +0 -9
- package/dist/actor-stop-cause.js +0 -42
- package/dist/actor-stop-cause.js.map +0 -1
- package/dist/adapter-extension.d.ts +0 -76
- package/dist/adapter-extension.js +0 -273
- package/dist/adapter-extension.js.map +0 -1
- package/dist/adapter-scorer-loader.d.ts +0 -42
- package/dist/adapter-scorer-loader.js +0 -129
- package/dist/adapter-scorer-loader.js.map +0 -1
- package/dist/affordance.d.ts +0 -53
- package/dist/affordance.js +0 -145
- package/dist/affordance.js.map +0 -1
- package/dist/agent-session.js +0 -43
- package/dist/agent-session.js.map +0 -1
- package/dist/argv.d.ts +0 -1
- package/dist/argv.js +0 -8
- package/dist/argv.js.map +0 -1
- package/dist/artifact-reference.d.ts +0 -22
- package/dist/artifact-reference.js +0 -47
- package/dist/artifact-reference.js.map +0 -1
- package/dist/automatic-analysis-completion.d.ts +0 -25
- package/dist/automatic-analysis-completion.js +0 -56
- package/dist/automatic-analysis-completion.js.map +0 -1
- package/dist/automatic-analysis-config.d.ts +0 -38
- package/dist/automatic-analysis-config.js +0 -68
- package/dist/automatic-analysis-config.js.map +0 -1
- package/dist/automatic-study-analysis.d.ts +0 -17
- package/dist/automatic-study-analysis.js +0 -195
- package/dist/automatic-study-analysis.js.map +0 -1
- package/dist/browser-control-client.d.ts +0 -18
- package/dist/browser-control-client.js +0 -176
- package/dist/browser-control-client.js.map +0 -1
- package/dist/browser-control-dispatcher.d.ts +0 -19
- package/dist/browser-control-dispatcher.js +0 -147
- package/dist/browser-control-dispatcher.js.map +0 -1
- package/dist/browser-control-protocol.d.ts +0 -472
- package/dist/browser-control-protocol.js +0 -185
- package/dist/browser-control-protocol.js.map +0 -1
- package/dist/browser-control-recording-transfer.d.ts +0 -4
- package/dist/browser-control-recording-transfer.js +0 -42
- package/dist/browser-control-recording-transfer.js.map +0 -1
- package/dist/browser-control-transport.d.ts +0 -27
- package/dist/browser-control-transport.js +0 -177
- package/dist/browser-control-transport.js.map +0 -1
- package/dist/browser-evidence-hygiene.js +0 -43
- package/dist/browser-evidence-hygiene.js.map +0 -1
- package/dist/chrome-cdp-probe.d.ts +0 -97
- package/dist/chrome-cdp-probe.js +0 -536
- package/dist/chrome-cdp-probe.js.map +0 -1
- package/dist/claude-agent-sdk.d.ts +0 -94
- package/dist/claude-agent-sdk.js +0 -367
- package/dist/claude-agent-sdk.js.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/codex-app-server-ui.d.ts +0 -39
- package/dist/codex-app-server-ui.js +0 -357
- package/dist/codex-app-server-ui.js.map +0 -1
- package/dist/codex-app-server.d.ts +0 -144
- package/dist/codex-app-server.js +0 -754
- package/dist/codex-app-server.js.map +0 -1
- package/dist/command-failure.d.ts +0 -43
- package/dist/command-failure.js +0 -73
- package/dist/command-failure.js.map +0 -1
- package/dist/comms-agentmail.d.ts +0 -25
- package/dist/comms-agentmail.js +0 -418
- package/dist/comms-agentmail.js.map +0 -1
- package/dist/comms-catch-host.d.ts +0 -52
- package/dist/comms-catch-host.js +0 -178
- package/dist/comms-catch-host.js.map +0 -1
- package/dist/comms-connections.d.ts +0 -52
- package/dist/comms-connections.js +0 -123
- package/dist/comms-connections.js.map +0 -1
- package/dist/comms-email-catch.d.ts +0 -54
- package/dist/comms-email-catch.js +0 -212
- package/dist/comms-email-catch.js.map +0 -1
- package/dist/comms-evidence.d.ts +0 -27
- package/dist/comms-evidence.js +0 -31
- package/dist/comms-evidence.js.map +0 -1
- package/dist/comms-fake-inbox.d.ts +0 -45
- package/dist/comms-fake-inbox.js +0 -184
- package/dist/comms-fake-inbox.js.map +0 -1
- package/dist/comms-images.d.ts +0 -7
- package/dist/comms-images.js +0 -39
- package/dist/comms-images.js.map +0 -1
- package/dist/comms-inbox.d.ts +0 -66
- package/dist/comms-inbox.js +0 -389
- package/dist/comms-inbox.js.map +0 -1
- package/dist/comms-lease-store.d.ts +0 -91
- package/dist/comms-lease-store.js +0 -495
- package/dist/comms-lease-store.js.map +0 -1
- package/dist/comms-receiving-evidence.d.ts +0 -46
- package/dist/comms-receiving-evidence.js +0 -35
- package/dist/comms-receiving-evidence.js.map +0 -1
- package/dist/comms-receiving-inbox.d.ts +0 -16
- package/dist/comms-receiving-inbox.js +0 -410
- package/dist/comms-receiving-inbox.js.map +0 -1
- package/dist/comms-receiving-runtime.d.ts +0 -25
- package/dist/comms-receiving-runtime.js +0 -45
- package/dist/comms-receiving-runtime.js.map +0 -1
- package/dist/comms-receiving-types.d.ts +0 -98
- package/dist/comms-receiving-types.js +0 -2
- package/dist/comms-receiving-types.js.map +0 -1
- package/dist/comms-receiving.d.ts +0 -58
- package/dist/comms-receiving.js +0 -554
- package/dist/comms-receiving.js.map +0 -1
- package/dist/comms-sandbox-catch.d.ts +0 -229
- package/dist/comms-sandbox-catch.js +0 -737
- package/dist/comms-sandbox-catch.js.map +0 -1
- package/dist/comms-setup.d.ts +0 -40
- package/dist/comms-setup.js +0 -121
- package/dist/comms-setup.js.map +0 -1
- package/dist/comms-types.d.ts +0 -72
- package/dist/comms-types.js +0 -10
- package/dist/comms-types.js.map +0 -1
- package/dist/computer-use-actor.d.ts +0 -76
- package/dist/computer-use-actor.js +0 -68
- package/dist/computer-use-actor.js.map +0 -1
- package/dist/computer-use.d.ts +0 -429
- package/dist/computer-use.js +0 -1749
- package/dist/computer-use.js.map +0 -1
- package/dist/concurrency.js +0 -27
- package/dist/concurrency.js.map +0 -1
- package/dist/concurrent-shared-world-lab.d.ts +0 -186
- package/dist/concurrent-shared-world-lab.js +0 -2179
- package/dist/concurrent-shared-world-lab.js.map +0 -1
- package/dist/core/git-state.d.ts +0 -33
- package/dist/core/git-state.js +0 -277
- package/dist/core/git-state.js.map +0 -1
- package/dist/core/git-workspace.d.ts +0 -31
- package/dist/core/git-workspace.js +0 -447
- package/dist/core/git-workspace.js.map +0 -1
- package/dist/core/index.d.ts +0 -4
- package/dist/core/index.js +0 -3
- package/dist/core/index.js.map +0 -1
- package/dist/core/run-primitives.d.ts +0 -66
- package/dist/core/run-primitives.js +0 -120
- package/dist/core/run-primitives.js.map +0 -1
- package/dist/cua-actor-lab.d.ts +0 -855
- package/dist/cua-actor-lab.js +0 -3545
- package/dist/cua-actor-lab.js.map +0 -1
- package/dist/cua-admission-limit.d.ts +0 -12
- package/dist/cua-admission-limit.js +0 -20
- package/dist/cua-admission-limit.js.map +0 -1
- package/dist/cua-desktop-lane.d.ts +0 -35
- package/dist/cua-desktop-lane.js +0 -13
- package/dist/cua-desktop-lane.js.map +0 -1
- package/dist/cua-diagnostics.d.ts +0 -38
- package/dist/cua-diagnostics.js +0 -68
- package/dist/cua-diagnostics.js.map +0 -1
- package/dist/cua-executor-error.js +0 -48
- package/dist/cua-executor-error.js.map +0 -1
- package/dist/cua-provider-error.d.ts +0 -16
- package/dist/cua-provider-error.js +0 -35
- package/dist/cua-provider-error.js.map +0 -1
- package/dist/cua-speech.js +0 -2
- package/dist/cua-speech.js.map +0 -1
- package/dist/desktop-recorder.d.ts +0 -39
- package/dist/desktop-recorder.js +0 -226
- package/dist/desktop-recorder.js.map +0 -1
- package/dist/desktop-recording-artifact.d.ts +0 -5
- package/dist/desktop-recording-artifact.js +0 -54
- package/dist/desktop-recording-artifact.js.map +0 -1
- package/dist/desktop-recording-types.d.ts +0 -24
- package/dist/desktop-recording-types.js +0 -14
- package/dist/desktop-recording-types.js.map +0 -1
- package/dist/desktop-session.d.ts +0 -41
- package/dist/desktop-session.js +0 -47
- package/dist/desktop-session.js.map +0 -1
- package/dist/device-presets.d.ts +0 -67
- package/dist/device-presets.js +0 -55
- package/dist/device-presets.js.map +0 -1
- package/dist/doctor-lab.d.ts +0 -38
- package/dist/doctor-lab.js +0 -126
- package/dist/doctor-lab.js.map +0 -1
- package/dist/e2b-cua-desktop.d.ts +0 -3
- package/dist/e2b-cua-desktop.js +0 -708
- package/dist/e2b-cua-desktop.js.map +0 -1
- package/dist/e2b-cua-provisioning.d.ts +0 -314
- package/dist/e2b-cua-provisioning.js +0 -1219
- package/dist/e2b-cua-provisioning.js.map +0 -1
- package/dist/e2b-desktop-executor.d.ts +0 -101
- package/dist/e2b-desktop-executor.js +0 -297
- package/dist/e2b-desktop-executor.js.map +0 -1
- package/dist/e2b-desktop-launch.d.ts +0 -243
- package/dist/e2b-desktop-launch.js +0 -234
- package/dist/e2b-desktop-launch.js.map +0 -1
- package/dist/e2b-desktop-media.d.ts +0 -14
- package/dist/e2b-desktop-media.js +0 -58
- package/dist/e2b-desktop-media.js.map +0 -1
- package/dist/e2b-desktop-recording.d.ts +0 -16
- package/dist/e2b-desktop-recording.js +0 -162
- package/dist/e2b-desktop-recording.js.map +0 -1
- package/dist/e2b-desktop-resources.d.ts +0 -11
- package/dist/e2b-desktop-resources.js +0 -33
- package/dist/e2b-desktop-resources.js.map +0 -1
- package/dist/e2b-desktop-screenshot-cleanup.d.ts +0 -15
- package/dist/e2b-desktop-screenshot-cleanup.js +0 -67
- package/dist/e2b-desktop-screenshot-cleanup.js.map +0 -1
- package/dist/e2b-desktop-session.d.ts +0 -7
- package/dist/e2b-desktop-session.js +0 -29
- package/dist/e2b-desktop-session.js.map +0 -1
- package/dist/e2b-detached.d.ts +0 -53
- package/dist/e2b-detached.js +0 -130
- package/dist/e2b-detached.js.map +0 -1
- package/dist/e2b-terminal-lab.d.ts +0 -395
- package/dist/e2b-terminal-lab.js +0 -2041
- package/dist/e2b-terminal-lab.js.map +0 -1
- package/dist/env-file.d.ts +0 -14
- package/dist/env-file.js +0 -108
- package/dist/env-file.js.map +0 -1
- package/dist/export-bundle.d.ts +0 -7
- package/dist/export-bundle.js +0 -441
- package/dist/export-bundle.js.map +0 -1
- package/dist/export.d.ts +0 -49
- package/dist/export.js +0 -308
- package/dist/export.js.map +0 -1
- package/dist/feedback-proof.d.ts +0 -8
- package/dist/feedback-proof.js +0 -44
- package/dist/feedback-proof.js.map +0 -1
- package/dist/feedback.d.ts +0 -76
- package/dist/feedback.js +0 -496
- package/dist/feedback.js.map +0 -1
- package/dist/first-run-path.d.ts +0 -55
- package/dist/first-run-path.js +0 -136
- package/dist/first-run-path.js.map +0 -1
- package/dist/frame-signature.d.ts +0 -24
- package/dist/frame-signature.js +0 -128
- package/dist/frame-signature.js.map +0 -1
- package/dist/guest-bootstrap.d.ts +0 -55
- package/dist/guest-bootstrap.js +0 -285
- package/dist/guest-bootstrap.js.map +0 -1
- package/dist/guest-browser-tools.d.ts +0 -8
- package/dist/guest-browser-tools.js +0 -66
- package/dist/guest-browser-tools.js.map +0 -1
- package/dist/guest-chromium-text.d.ts +0 -27
- package/dist/guest-chromium-text.js +0 -281
- package/dist/guest-chromium-text.js.map +0 -1
- package/dist/guest-desktop-executor.d.ts +0 -22
- package/dist/guest-desktop-executor.js +0 -178
- package/dist/guest-desktop-executor.js.map +0 -1
- package/dist/guest-desktop-media.d.ts +0 -33
- package/dist/guest-desktop-media.js +0 -281
- package/dist/guest-desktop-media.js.map +0 -1
- package/dist/guest-desktop-native.d.ts +0 -14
- package/dist/guest-desktop-native.js +0 -131
- package/dist/guest-desktop-native.js.map +0 -1
- package/dist/guest-media-config.d.ts +0 -15
- package/dist/guest-media-config.js +0 -8
- package/dist/guest-media-config.js.map +0 -1
- package/dist/guest-media-worker.js.map +0 -1
- package/dist/guest-runtime-desktop.d.ts +0 -42
- package/dist/guest-runtime-desktop.js +0 -314
- package/dist/guest-runtime-desktop.js.map +0 -1
- package/dist/guest-runtime-main.js.map +0 -1
- package/dist/guest-runtime-revision.js.map +0 -1
- package/dist/guest-runtime.d.ts +0 -31
- package/dist/guest-runtime.js +0 -99
- package/dist/guest-runtime.js.map +0 -1
- package/dist/image-evidence.d.ts +0 -2
- package/dist/image-evidence.js +0 -47
- package/dist/image-evidence.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/init-templates.d.ts +0 -25
- package/dist/init-templates.js +0 -542
- package/dist/init-templates.js.map +0 -1
- package/dist/init.d.ts +0 -38
- package/dist/init.js +0 -532
- package/dist/init.js.map +0 -1
- package/dist/key-resolution.d.ts +0 -67
- package/dist/key-resolution.js +0 -375
- package/dist/key-resolution.js.map +0 -1
- package/dist/lab-app-runner.d.ts +0 -78
- package/dist/lab-app-runner.js +0 -403
- package/dist/lab-app-runner.js.map +0 -1
- package/dist/lab-config.d.ts +0 -968
- package/dist/lab-config.js +0 -2714
- package/dist/lab-config.js.map +0 -1
- package/dist/lab-engine.d.ts +0 -97
- package/dist/lab-engine.js +0 -285
- package/dist/lab-engine.js.map +0 -1
- package/dist/lab-preflight.d.ts +0 -70
- package/dist/lab-preflight.js +0 -388
- package/dist/lab-preflight.js.map +0 -1
- package/dist/lab-summary.d.ts +0 -57
- package/dist/lab-summary.js +0 -126
- package/dist/lab-summary.js.map +0 -1
- package/dist/labs.d.ts +0 -59
- package/dist/labs.js +0 -385
- package/dist/labs.js.map +0 -1
- package/dist/listen.js +0 -84
- package/dist/listen.js.map +0 -1
- package/dist/local-agent-claude-session.d.ts +0 -45
- package/dist/local-agent-claude-session.js +0 -203
- package/dist/local-agent-claude-session.js.map +0 -1
- package/dist/local-agent-cli.d.ts +0 -121
- package/dist/local-agent-cli.js +0 -427
- package/dist/local-agent-cli.js.map +0 -1
- package/dist/local-captured-inbox.d.ts +0 -6
- package/dist/local-captured-inbox.js +0 -65
- package/dist/local-captured-inbox.js.map +0 -1
- package/dist/local-firecracker-desktop.d.ts +0 -23
- package/dist/local-firecracker-desktop.js +0 -191
- package/dist/local-firecracker-desktop.js.map +0 -1
- package/dist/local-firecracker-study.d.ts +0 -9
- package/dist/local-firecracker-study.js +0 -135
- package/dist/local-firecracker-study.js.map +0 -1
- package/dist/local-runtime-config.d.ts +0 -6
- package/dist/local-runtime-config.js +0 -60
- package/dist/local-runtime-config.js.map +0 -1
- package/dist/local-runtime-host.d.ts +0 -31
- package/dist/local-runtime-host.js +0 -128
- package/dist/local-runtime-host.js.map +0 -1
- package/dist/local-runtime-release.d.ts +0 -7
- package/dist/local-runtime-release.js +0 -33
- package/dist/local-runtime-release.js.map +0 -1
- package/dist/local-runtime-ssh.d.ts +0 -27
- package/dist/local-runtime-ssh.js +0 -91
- package/dist/local-runtime-ssh.js.map +0 -1
- package/dist/local-runtime.d.ts +0 -25
- package/dist/local-runtime.js +0 -133
- package/dist/local-runtime.js.map +0 -1
- package/dist/observer-data.d.ts +0 -114
- package/dist/observer-data.js +0 -224
- package/dist/observer-data.js.map +0 -1
- package/dist/observer-library.js +0 -191
- package/dist/observer-library.js.map +0 -1
- package/dist/observer-serve.d.ts +0 -99
- package/dist/observer-serve.js +0 -284
- package/dist/observer-serve.js.map +0 -1
- package/dist/observer-static.js +0 -357
- package/dist/observer-static.js.map +0 -1
- package/dist/observer.d.ts +0 -118
- package/dist/observer.js +0 -947
- package/dist/observer.js.map +0 -1
- package/dist/openai-responses-cu.d.ts +0 -158
- package/dist/openai-responses-cu.js +0 -714
- package/dist/openai-responses-cu.js.map +0 -1
- package/dist/orientation.d.ts +0 -29
- package/dist/orientation.js +0 -95
- package/dist/orientation.js.map +0 -1
- package/dist/oss-lab.d.ts +0 -55
- package/dist/oss-lab.js +0 -344
- package/dist/oss-lab.js.map +0 -1
- package/dist/oss-meta-lab-scoring.d.ts +0 -15
- package/dist/oss-meta-lab-scoring.js +0 -145
- package/dist/oss-meta-lab-scoring.js.map +0 -1
- package/dist/oss-meta-lab.d.ts +0 -287
- package/dist/oss-meta-lab.js +0 -4551
- package/dist/oss-meta-lab.js.map +0 -1
- package/dist/oss-remote-telemetry.d.ts +0 -77
- package/dist/oss-remote-telemetry.js +0 -403
- package/dist/oss-remote-telemetry.js.map +0 -1
- package/dist/output-token-limit.js +0 -5
- package/dist/output-token-limit.js.map +0 -1
- package/dist/participant-assignment.d.ts +0 -12
- package/dist/participant-assignment.js +0 -15
- package/dist/participant-assignment.js.map +0 -1
- package/dist/persona-resolve.d.ts +0 -44
- package/dist/persona-resolve.js +0 -109
- package/dist/persona-resolve.js.map +0 -1
- package/dist/persona.d.ts +0 -35
- package/dist/persona.js +0 -141
- package/dist/persona.js.map +0 -1
- package/dist/pi-agent-core.d.ts +0 -77
- package/dist/pi-agent-core.js +0 -207
- package/dist/pi-agent-core.js.map +0 -1
- package/dist/pricing.d.ts +0 -145
- package/dist/pricing.js +0 -277
- package/dist/pricing.js.map +0 -1
- package/dist/program.d.ts +0 -96
- package/dist/program.js +0 -4029
- package/dist/program.js.map +0 -1
- package/dist/reasoning-effort.js +0 -26
- package/dist/reasoning-effort.js.map +0 -1
- package/dist/reclaim.d.ts +0 -31
- package/dist/reclaim.js +0 -90
- package/dist/reclaim.js.map +0 -1
- package/dist/redaction.d.ts +0 -90
- package/dist/redaction.js +0 -294
- package/dist/redaction.js.map +0 -1
- package/dist/restricted-codex-analysis.d.ts +0 -15
- package/dist/restricted-codex-analysis.js +0 -13
- package/dist/restricted-codex-analysis.js.map +0 -1
- package/dist/restricted-codex-participant-policy.d.ts +0 -44
- package/dist/restricted-codex-participant-policy.js +0 -43
- package/dist/restricted-codex-participant-policy.js.map +0 -1
- package/dist/restricted-codex-participant-run.d.ts +0 -20
- package/dist/restricted-codex-participant-run.js +0 -79
- package/dist/restricted-codex-participant-run.js.map +0 -1
- package/dist/restricted-codex-participant.d.ts +0 -20
- package/dist/restricted-codex-participant.js +0 -250
- package/dist/restricted-codex-participant.js.map +0 -1
- package/dist/restricted-codex-policy.d.ts +0 -64
- package/dist/restricted-codex-policy.js +0 -176
- package/dist/restricted-codex-policy.js.map +0 -1
- package/dist/restricted-codex-session.d.ts +0 -44
- package/dist/restricted-codex-session.js +0 -657
- package/dist/restricted-codex-session.js.map +0 -1
- package/dist/restricted-codex-transport.d.ts +0 -69
- package/dist/restricted-codex-transport.js +0 -296
- package/dist/restricted-codex-transport.js.map +0 -1
- package/dist/run-detail.d.ts +0 -61
- package/dist/run-detail.js +0 -137
- package/dist/run-detail.js.map +0 -1
- package/dist/run-index.d.ts +0 -71
- package/dist/run-index.js +0 -206
- package/dist/run-index.js.map +0 -1
- package/dist/run-narration-secrets.js +0 -68
- package/dist/run-narration-secrets.js.map +0 -1
- package/dist/run-paths.d.ts +0 -56
- package/dist/run-paths.js +0 -355
- package/dist/run-paths.js.map +0 -1
- package/dist/run-projection.d.ts +0 -186
- package/dist/run-projection.js +0 -350
- package/dist/run-projection.js.map +0 -1
- package/dist/run-status.d.ts +0 -139
- package/dist/run-status.js +0 -218
- package/dist/run-status.js.map +0 -1
- package/dist/run.d.ts +0 -1255
- package/dist/run.js +0 -5947
- package/dist/run.js.map +0 -1
- package/dist/sandbox-receipts.d.ts +0 -19
- package/dist/sandbox-receipts.js +0 -51
- package/dist/sandbox-receipts.js.map +0 -1
- package/dist/screenshot-image.d.ts +0 -11
- package/dist/screenshot-image.js +0 -26
- package/dist/screenshot-image.js.map +0 -1
- package/dist/scripted-browser-actor.d.ts +0 -297
- package/dist/scripted-browser-actor.js +0 -1399
- package/dist/scripted-browser-actor.js.map +0 -1
- package/dist/scripted-browser-lab.d.ts +0 -121
- package/dist/scripted-browser-lab.js +0 -852
- package/dist/scripted-browser-lab.js.map +0 -1
- package/dist/secret-prompt.js +0 -36
- package/dist/secret-prompt.js.map +0 -1
- package/dist/selected-output-paths.d.ts +0 -52
- package/dist/selected-output-paths.js +0 -366
- package/dist/selected-output-paths.js.map +0 -1
- package/dist/serve-exposure.d.ts +0 -62
- package/dist/serve-exposure.js +0 -129
- package/dist/serve-exposure.js.map +0 -1
- package/dist/serve-http.js +0 -45
- package/dist/serve-http.js.map +0 -1
- package/dist/serve-tunnel.js +0 -113
- package/dist/serve-tunnel.js.map +0 -1
- package/dist/shared-world-lab.d.ts +0 -269
- package/dist/shared-world-lab.js +0 -1422
- package/dist/shared-world-lab.js.map +0 -1
- package/dist/source-archive.d.ts +0 -82
- package/dist/source-archive.js +0 -408
- package/dist/source-archive.js.map +0 -1
- package/dist/stats.d.ts +0 -82
- package/dist/stats.js +0 -219
- package/dist/stats.js.map +0 -1
- package/dist/stop-conditions.d.ts +0 -39
- package/dist/stop-conditions.js +0 -66
- package/dist/stop-conditions.js.map +0 -1
- package/dist/study-analysis-codex-config.d.ts +0 -11
- package/dist/study-analysis-codex-config.js +0 -34
- package/dist/study-analysis-codex-config.js.map +0 -1
- package/dist/study-analysis-engine.d.ts +0 -47
- package/dist/study-analysis-engine.js +0 -327
- package/dist/study-analysis-engine.js.map +0 -1
- package/dist/study-analysis-evidence.d.ts +0 -27
- package/dist/study-analysis-evidence.js +0 -660
- package/dist/study-analysis-evidence.js.map +0 -1
- package/dist/study-analysis-job.d.ts +0 -97
- package/dist/study-analysis-job.js +0 -214
- package/dist/study-analysis-job.js.map +0 -1
- package/dist/study-analysis-provider.d.ts +0 -40
- package/dist/study-analysis-provider.js +0 -170
- package/dist/study-analysis-provider.js.map +0 -1
- package/dist/study-analysis-service.d.ts +0 -59
- package/dist/study-analysis-service.js +0 -257
- package/dist/study-analysis-service.js.map +0 -1
- package/dist/study-analysis-sharing.d.ts +0 -11
- package/dist/study-analysis-sharing.js +0 -35
- package/dist/study-analysis-sharing.js.map +0 -1
- package/dist/study-analysis-store.d.ts +0 -47
- package/dist/study-analysis-store.js +0 -493
- package/dist/study-analysis-store.js.map +0 -1
- package/dist/study-analysis-validation.d.ts +0 -618
- package/dist/study-analysis-validation.js +0 -384
- package/dist/study-analysis-validation.js.map +0 -1
- package/dist/study-analysis.d.ts +0 -206
- package/dist/study-analysis.js +0 -4
- package/dist/study-analysis.js.map +0 -1
- package/dist/study-costs.js +0 -114
- package/dist/study-costs.js.map +0 -1
- package/dist/subject-runtime.d.ts +0 -23
- package/dist/subject-runtime.js +0 -70
- package/dist/subject-runtime.js.map +0 -1
- package/dist/tasks.d.ts +0 -90
- package/dist/tasks.js +0 -144
- package/dist/tasks.js.map +0 -1
- package/dist/telemetry.js +0 -324
- package/dist/telemetry.js.map +0 -1
- package/dist/terminal-agent-actor.d.ts +0 -41
- package/dist/terminal-agent-actor.js +0 -25
- package/dist/terminal-agent-actor.js.map +0 -1
- package/dist/terminal-encoding.js +0 -80
- package/dist/terminal-encoding.js.map +0 -1
- package/dist/terminal-node-bootstrap.d.ts +0 -4
- package/dist/terminal-node-bootstrap.js +0 -58
- package/dist/terminal-node-bootstrap.js.map +0 -1
- package/dist/terminal-participant-activity.d.ts +0 -6
- package/dist/terminal-participant-activity.js +0 -34
- package/dist/terminal-participant-activity.js.map +0 -1
- package/dist/terminal-runtime-auth.d.ts +0 -13
- package/dist/terminal-runtime-auth.js +0 -24
- package/dist/terminal-runtime-auth.js.map +0 -1
- package/dist/terminal-runtime.d.ts +0 -16
- package/dist/terminal-runtime.js +0 -42
- package/dist/terminal-runtime.js.map +0 -1
- package/dist/terminal-token-usage.d.ts +0 -15
- package/dist/terminal-token-usage.js +0 -94
- package/dist/terminal-token-usage.js.map +0 -1
- package/dist/tui-actions.d.ts +0 -39
- package/dist/tui-actions.js +0 -178
- package/dist/tui-actions.js.map +0 -1
- package/dist/tui-contract.d.ts +0 -141
- package/dist/tui-contract.js +0 -54
- package/dist/tui-contract.js.map +0 -1
- package/dist/tui-launch.js +0 -167
- package/dist/tui-launch.js.map +0 -1
- package/dist/tui-project.d.ts +0 -9
- package/dist/tui-project.js +0 -18
- package/dist/tui-project.js.map +0 -1
- package/docs/architecture/examples/state-driven-local-app/README.md +0 -80
- package/docs/architecture/examples/state-driven-local-app/app.mjs +0 -48
- package/docs/architecture/examples/state-driven-local-app/runner.mjs +0 -105
- package/docs/architecture/local-codex-tui-actor.md +0 -213
- package/docs/architecture/oss-lab-poc.md +0 -250
- package/docs/architecture/runtime-broker-core.md +0 -30
- package/docs/release/0.100.0-local-setup.md +0 -31
- package/docs/release/0.100.1-participant-continuity.md +0 -20
- package/docs/release/0.101.0-codex-ui-tools.md +0 -28
- package/docs/release/0.102.0-participant-media.md +0 -43
- package/docs/release/0.103.0-desktop-recording.md +0 -29
- package/docs/release/0.103.1-analysis-capture-allocation.md +0 -18
- package/docs/release/0.103.2-analysis-ending-context.md +0 -21
- package/docs/release/0.104.0-local-captured-inboxes.md +0 -29
- package/docs/release/0.104.1-recording-startup.md +0 -24
- package/docs/release/0.104.2-recording-timestamps.md +0 -32
- package/docs/release/0.104.3-local-smtp-catch.md +0 -15
- package/docs/release/0.20.0-external-public-shared-world.md +0 -43
- package/docs/release/0.84.0-redacted-evidence.md +0 -42
- package/docs/release/0.84.1-portable-feedback.md +0 -20
- package/docs/release/0.85.0-observer-review.md +0 -56
- package/docs/release/0.85.1-observer-continuity.md +0 -20
- package/docs/release/0.86.0-participant-evidence.md +0 -50
- package/docs/release/0.86.1-task-preflight-saved-recordings.md +0 -40
- package/docs/release/0.87.0-participant-endings-and-phone-review.md +0 -64
- package/docs/release/0.88.0-study-diagnostics.md +0 -43
- package/docs/release/0.88.1-completion-evidence-and-local-app.md +0 -79
- package/docs/release/0.88.2-sequential-study-budgets.md +0 -57
- package/docs/release/0.89.0-study-findings.md +0 -79
- package/docs/release/0.89.1-analysis-finished-notice.md +0 -24
- package/docs/release/0.90.0-automatic-analysis.md +0 -21
- package/docs/release/0.91.0-analysis-quality-and-defaults.md +0 -33
- package/docs/release/0.91.1-study-review-polish.md +0 -28
- package/docs/release/0.92.0-grid-playback.md +0 -22
- package/docs/release/0.93.0-global-playback.md +0 -26
- package/docs/release/0.93.1-observer-review-controls.md +0 -24
- package/docs/release/0.94.0-reliability.md +0 -48
- package/docs/release/0.95.0-connections-setup.md +0 -38
- package/docs/release/0.96.0-real-email-receiving.md +0 -47
- package/docs/release/0.96.1-browser-navigation.md +0 -22
- package/docs/release/0.97.0-codex-account-analysis.md +0 -45
- package/docs/release/0.98.0-local-browser-studies.md +0 -31
- package/docs/release/0.99.0-local-browser-mac.md +0 -34
- package/docs/release/0.99.1-action-recovery.md +0 -19
- /package/dist/{agent-session.d.ts → actors/agent-session.d.ts} +0 -0
- /package/dist/{cua-executor-error.d.ts → actors/computer-use/executor-error.d.ts} +0 -0
- /package/dist/{cua-speech.d.ts → actors/computer-use/speech.d.ts} +0 -0
- /package/dist/{actor-goal-source.d.ts → actors/goal-source.d.ts} +0 -0
- /package/dist/{output-token-limit.d.ts → actors/output-token-limit.d.ts} +0 -0
- /package/dist/{reasoning-effort.d.ts → actors/reasoning-effort.d.ts} +0 -0
- /package/dist/{secret-prompt.d.ts → cli/secret-prompt.d.ts} +0 -0
- /package/dist/{telemetry.d.ts → cli/telemetry.d.ts} +0 -0
- /package/dist/{browser-evidence-hygiene.d.ts → evidence/browser-hygiene.d.ts} +0 -0
- /package/dist/{serve-http.d.ts → observer/http.d.ts} +0 -0
- /package/dist/{observer-library.d.ts → observer/library.d.ts} +0 -0
- /package/dist/{listen.d.ts → observer/listen.d.ts} +0 -0
- /package/dist/{observer-static.d.ts → observer/static.d.ts} +0 -0
- /package/dist/{serve-tunnel.d.ts → observer/tunnel.d.ts} +0 -0
- /package/dist/{terminal-encoding.d.ts → routes/terminal/encoding.d.ts} +0 -0
- /package/dist/{concurrency.d.ts → run/concurrency.d.ts} +0 -0
- /package/dist/{study-costs.d.ts → run/costs.d.ts} +0 -0
- /package/dist/{run-narration-secrets.d.ts → run/transient-comms-secrets.d.ts} +0 -0
- /package/dist/{tui-launch.d.ts → tui/launch.d.ts} +0 -0
|
@@ -0,0 +1,547 @@
|
|
|
1
|
+
import type { CommsReceivingEvidence } from "../comms/receiving-types.js";
|
|
2
|
+
import { type CapturedGitState } from "./git-state.js";
|
|
3
|
+
import type { SharedWorldEvidence } from "./shared-world-evidence.js";
|
|
4
|
+
import type { RunLabProvenance } from "./status.js";
|
|
5
|
+
import type { RunSimulationStatus, RunStream, RunStreamKind } from "./streams.js";
|
|
6
|
+
export declare const RUN_BUNDLE_SCHEMA = "humanish.run-bundle.v1";
|
|
7
|
+
/** The run bundle file, relative to the run directory. */
|
|
8
|
+
export declare const RUN_BUNDLE_FILE = "run.json";
|
|
9
|
+
export declare const REVIEW_SCHEMA = "humanish.review.v1";
|
|
10
|
+
export declare const PUBLIC_TARGET_CWD = "[target-cwd]";
|
|
11
|
+
/**
|
|
12
|
+
* A namespaced, product-agnostic score a thin adapter attaches to the bundle via a route's `score`
|
|
13
|
+
* hook, on terminal-product or a browser route (the layer-6 extension seam, issue #154 acceptance
|
|
14
|
+
* #8). Core never reads its `data` and knows none of the adopter's nouns — the `namespace` (e.g.
|
|
15
|
+
* `"acme-pixelforge"`) scopes the whole record so core schemas stay product-agnostic and a future
|
|
16
|
+
* inert-field audit does not misfire on a noun core never owned. The adopter's real scorecard
|
|
17
|
+
* (component weights, product rubric) lives in ITS repo and is summarized into the generic
|
|
18
|
+
* status/score/summary; everything product-specific rides under `data`. This is NOT a built-in
|
|
19
|
+
* product scorer — it is the SEAM the adopter's scorer plugs into without forking core.
|
|
20
|
+
*/
|
|
21
|
+
export interface RunAdapterScore {
|
|
22
|
+
schema: "humanish.adapter-score.v1";
|
|
23
|
+
/** The adapter's namespace — non-core, product-scoped (e.g. an adopter slug). Required + non-empty. */
|
|
24
|
+
namespace: string;
|
|
25
|
+
status: "pass" | "partial" | "fail";
|
|
26
|
+
/** A 0-100 summary the adapter derived from its own (off-core) rubric. */
|
|
27
|
+
score: number;
|
|
28
|
+
summary: string;
|
|
29
|
+
/** Arbitrary product-specific payload (the adopter's component breakdown / nouns). Core never reads it. */
|
|
30
|
+
data?: Record<string, unknown>;
|
|
31
|
+
}
|
|
32
|
+
export interface RunFeedbackCandidate {
|
|
33
|
+
schema: "humanish.feedback-candidate.v1";
|
|
34
|
+
id: string;
|
|
35
|
+
run_id: string;
|
|
36
|
+
stream_id?: string;
|
|
37
|
+
adapter_id: string;
|
|
38
|
+
scenario_id: string;
|
|
39
|
+
persona_id: string;
|
|
40
|
+
actor: "codex-tui" | "codex-exec" | "codex-app-server" | "computer-use" | "synthetic-dry-run" | "unknown";
|
|
41
|
+
substrate: "e2b-desktop" | "local-desktop" | "e2b-terminal" | "local-filesystem" | "codex-app-server" | "unknown";
|
|
42
|
+
failure_owner: "harness" | "target-app" | "actor" | "environment" | "unknown";
|
|
43
|
+
summary: string;
|
|
44
|
+
expected: string;
|
|
45
|
+
actual: string;
|
|
46
|
+
evidence: Array<{
|
|
47
|
+
path: string;
|
|
48
|
+
kind: "review" | "state" | "log" | "trace" | "screenshot" | "filesystem";
|
|
49
|
+
note: string;
|
|
50
|
+
}>;
|
|
51
|
+
redaction: {
|
|
52
|
+
status: "passed";
|
|
53
|
+
notes: string;
|
|
54
|
+
};
|
|
55
|
+
idempotency_key: string;
|
|
56
|
+
proposed_next_state: "watch" | "adapter-hardening" | "target-app-setup" | "actor-auth" | "setup-quality-review" | "study-quality-review";
|
|
57
|
+
acceptance_proof: string[];
|
|
58
|
+
/**
|
|
59
|
+
* OPTIONAL, ADAPTER-NAMESPACED product-noun block (the layer-6 extension seam, issue #154
|
|
60
|
+
* acceptance #8 + the "record product-specific concepts as NON-core nouns" list). A thin adapter
|
|
61
|
+
* records product-specific concepts — public CLI/product command observed, hosted product
|
|
62
|
+
* success-or-blocker, feedback id/draft observed, media/job/asset ids, explicit
|
|
63
|
+
* no-media/no-provider-spend proof, defection/friction risk — WITHOUT making any of them core
|
|
64
|
+
* primitives. They ride under a single namespaced field so core's feedback enums
|
|
65
|
+
* (`evidence.kind`, `proposed_next_state`) stay product-agnostic and a future inert-field audit
|
|
66
|
+
* never misfires on a noun core never owned. Core validates only the SHAPE (a non-empty
|
|
67
|
+
* `namespace` + a `data` record); the keys inside `data` are the adapter's, never core's.
|
|
68
|
+
*/
|
|
69
|
+
adapter?: {
|
|
70
|
+
/** Non-core, product-scoped namespace (e.g. an adopter slug). Required + non-empty. */
|
|
71
|
+
namespace: string;
|
|
72
|
+
/** The adapter's product nouns. Core never reads these keys — it stays product-agnostic. */
|
|
73
|
+
data: Record<string, unknown>;
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Optional, adapter-namespaced artifact references. These let a thin in-repo
|
|
78
|
+
* adapter attach product/state proof outputs to the humanish evidence packet
|
|
79
|
+
* without teaching core product nouns or inventing fake streams.
|
|
80
|
+
*/
|
|
81
|
+
export interface RunAdapterArtifact {
|
|
82
|
+
schema: "humanish.adapter-artifact.v1";
|
|
83
|
+
namespace: string;
|
|
84
|
+
label: string;
|
|
85
|
+
path: string;
|
|
86
|
+
kind: "state" | "review" | "log" | "trace" | "screenshot" | "filesystem" | "summary";
|
|
87
|
+
note: string;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Provenance for a CONFIG-DECLARED adopter scorer (#316): the repo-relative entry path and a digest
|
|
91
|
+
* of its ENTRY-MODULE bytes, recorded so a `review.scorer.ref`/`--scorer` run honestly states which
|
|
92
|
+
* out-of-tree judgment it attached. Core-computed (path + digest), never adopter-supplied. A LIBRARY
|
|
93
|
+
* caller (hooks passed directly through RunLabOptions) has implicit provenance — their code IS their
|
|
94
|
+
* provenance — so this block is ABSENT there and every pre-#316 bundle stays byte-stable + verifiable.
|
|
95
|
+
*
|
|
96
|
+
* The digest pins the entry file's IDENTITY, not its behavioral closure: a `export { score } from
|
|
97
|
+
* "../outside.mjs"` re-export is not captured, and `import()` re-opens the path (a benign same-author
|
|
98
|
+
* TOCTOU). Treat it as evidence-not-gate, and do NOT extend the loader to less-trusted config.
|
|
99
|
+
*/
|
|
100
|
+
export interface RunScorerProvenance {
|
|
101
|
+
schema: "humanish.scorer-provenance.v1";
|
|
102
|
+
/** Repo-relative entry path (e.g. "scorers/example.mjs"), clamped inside the target cwd. */
|
|
103
|
+
ref: string;
|
|
104
|
+
/** digestText over the readContainedRegularFile ENTRY bytes — the entry module only, not a lockfile of the executed graph. */
|
|
105
|
+
digest: string;
|
|
106
|
+
/** Which door declared it: the committed manifest, or the CLI `--scorer` override. */
|
|
107
|
+
source: "manifest" | "cli-flag";
|
|
108
|
+
/** The whitelisted hooks actually wired from the module (costProbe is intentionally never loadable). */
|
|
109
|
+
exports: ("score" | "deriveFeedback" | "deriveArtifacts")[];
|
|
110
|
+
}
|
|
111
|
+
export interface RunSimulation {
|
|
112
|
+
id: string;
|
|
113
|
+
index: number;
|
|
114
|
+
personaId: string;
|
|
115
|
+
scenarioId: string;
|
|
116
|
+
status: RunSimulationStatus;
|
|
117
|
+
streamKind: RunStreamKind;
|
|
118
|
+
mode: "browser-sim" | "cli-sim" | "tui-sim" | "codex-app-sim";
|
|
119
|
+
progress: number;
|
|
120
|
+
currentStep: string;
|
|
121
|
+
summary: string;
|
|
122
|
+
streamIds: string[];
|
|
123
|
+
startedAt: string;
|
|
124
|
+
updatedAt: string;
|
|
125
|
+
}
|
|
126
|
+
export interface RunEvent {
|
|
127
|
+
id: string;
|
|
128
|
+
at: string;
|
|
129
|
+
level: "info" | "warn" | "error";
|
|
130
|
+
type: string;
|
|
131
|
+
message: string;
|
|
132
|
+
simId?: string;
|
|
133
|
+
streamId?: string;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* One executed (or declared) subject-state seed step. Live records carry execution fields
|
|
137
|
+
* (ok/exitCode/timedOut/durationMs); dry-run "declared, not run" records carry only the
|
|
138
|
+
* declaration (name, phase, command DIGEST). The command itself never persists — the digest
|
|
139
|
+
* pins "same recipe" across bundles while the lab YAML in the consumer's repo stays the
|
|
140
|
+
* plaintext source of truth (publish-safe by construction).
|
|
141
|
+
*/
|
|
142
|
+
export interface RunSubjectStateStepRecord {
|
|
143
|
+
name: string;
|
|
144
|
+
when: "before-build" | "before-start" | "after-ready";
|
|
145
|
+
/** sha256 hex of the exact command string, first 16 chars (the promptDigest convention). */
|
|
146
|
+
commandDigest: string;
|
|
147
|
+
/** Absent on declared-not-run records (dry-run; unreached steps are absent entirely). */
|
|
148
|
+
ok?: boolean;
|
|
149
|
+
exitCode?: number;
|
|
150
|
+
timedOut?: boolean;
|
|
151
|
+
durationMs?: number;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Structured subject provenance (invariant 5): what the subject WAS — code pin (repo/commit,
|
|
155
|
+
* or a local-tree archive digest) AND state story. Optional additive field on
|
|
156
|
+
* humanish.run-bundle.v1; absent on bundles from backends that have not adopted it (and on all
|
|
157
|
+
* pre-existing bundles).
|
|
158
|
+
*/
|
|
159
|
+
export interface RunSubjectProvenance {
|
|
160
|
+
source: "clone" | "app-url" | "local-tree";
|
|
161
|
+
/** Clone-route only. Honors policies.redactRepos exactly as the provenance event does. */
|
|
162
|
+
repo?: string;
|
|
163
|
+
/** Clone-route: the cloned commit SHA. Local-tree route: the host-side HEAD at pack time,
|
|
164
|
+
* when the packed root was a git work tree. */
|
|
165
|
+
commit?: string;
|
|
166
|
+
/**
|
|
167
|
+
* Local-tree-route only (additive): 64 lowercase-hex sha256 over the sorted packed-entries
|
|
168
|
+
* list (docs/contracts/schemas.md). This is the provenance PIN for the local-tree route: a
|
|
169
|
+
* dirty working tree cannot be commit-pinned, so the archive content digest stands in for it.
|
|
170
|
+
*/
|
|
171
|
+
archiveSha256?: string;
|
|
172
|
+
/**
|
|
173
|
+
* Local-tree-route only (additive): true when the host git work tree had uncommitted changes
|
|
174
|
+
* at pack time. Absent when the packed root was not a git work tree at all.
|
|
175
|
+
*/
|
|
176
|
+
dirty?: boolean;
|
|
177
|
+
/** Declared env NAMES provisioned for the subject — names only, values never. */
|
|
178
|
+
envNames?: string[];
|
|
179
|
+
state: {
|
|
180
|
+
/**
|
|
181
|
+
* seeded: live run, steps declared, ALL ran ok, no external state declared.
|
|
182
|
+
* unpinned: external state declared (seed records, if any, still attached — migrating
|
|
183
|
+
* an external DB is still unpinned overall).
|
|
184
|
+
* declared-not-run: steps declared but not (all) executed ok — dry-run contract bundles
|
|
185
|
+
* and failed live provisioning.
|
|
186
|
+
* undeclared: no subject.state block (stateless apps, app-url subjects) — the explicit
|
|
187
|
+
* "absence declared" marker invariant 5 requires.
|
|
188
|
+
* external-public: (#164 phase 2) an operator-DECLARED, operator-OWNED public deployment used
|
|
189
|
+
* directly as the shared plane — humanish neither provisioned nor seeded it (no getHost, no
|
|
190
|
+
* clone, no in-sandbox filesystem). NOT "seeded" (nothing was seeded), NOT "unpinned" (this is
|
|
191
|
+
* an owned target, not an uncontrolled external DB). The honest marker for the external-public
|
|
192
|
+
* plane class; verify asserts it in place of the getHost seeded gate.
|
|
193
|
+
*/
|
|
194
|
+
provenance: "seeded" | "unpinned" | "declared-not-run" | "undeclared" | "external-public";
|
|
195
|
+
seed?: RunSubjectStateStepRecord[];
|
|
196
|
+
externalEnvNames?: string[];
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* How well a run attributed INTERACTION between actors — a new, ORTHOGONAL honesty axis to the
|
|
201
|
+
* persona-sampling evidence classes (which answer "how representative is the actor?"). Absent ==
|
|
202
|
+
* `isolated` (every existing bundle byte-stable). `shared-world` means N roles drove ONE mutable
|
|
203
|
+
* plane and their per-role attribution is weaker (its ceiling is pinned in `sharedWorld.attributionLimits`).
|
|
204
|
+
*/
|
|
205
|
+
type RunAttributionClass = "isolated" | "shared-world";
|
|
206
|
+
export interface RunBundle {
|
|
207
|
+
publication?: {
|
|
208
|
+
restrictions: ["real-communications"];
|
|
209
|
+
};
|
|
210
|
+
commsReceiving?: CommsReceivingEvidence;
|
|
211
|
+
schema: typeof RUN_BUNDLE_SCHEMA;
|
|
212
|
+
runId: string;
|
|
213
|
+
mode: "dry-run" | "live";
|
|
214
|
+
simCount: number;
|
|
215
|
+
createdAt: string;
|
|
216
|
+
cwd: string;
|
|
217
|
+
artifactRoot: string;
|
|
218
|
+
source: {
|
|
219
|
+
packageName: string | null;
|
|
220
|
+
humanishSource: "present" | "missing";
|
|
221
|
+
git: CapturedGitState;
|
|
222
|
+
};
|
|
223
|
+
persona: {
|
|
224
|
+
id: string;
|
|
225
|
+
name: string;
|
|
226
|
+
source: string;
|
|
227
|
+
sourceDigest: string;
|
|
228
|
+
};
|
|
229
|
+
scenario: {
|
|
230
|
+
id: string;
|
|
231
|
+
title: string;
|
|
232
|
+
goal: string;
|
|
233
|
+
source: string;
|
|
234
|
+
sourceDigest: string;
|
|
235
|
+
};
|
|
236
|
+
lifecycle: Array<{
|
|
237
|
+
at: string;
|
|
238
|
+
event: string;
|
|
239
|
+
message: string;
|
|
240
|
+
}>;
|
|
241
|
+
simulations: RunSimulation[];
|
|
242
|
+
streams: RunStream[];
|
|
243
|
+
events: RunEvent[];
|
|
244
|
+
redaction: {
|
|
245
|
+
status: "passed";
|
|
246
|
+
notes: string;
|
|
247
|
+
};
|
|
248
|
+
artifacts: {
|
|
249
|
+
run: string;
|
|
250
|
+
reviewJson: string;
|
|
251
|
+
reviewMarkdown: string;
|
|
252
|
+
observerData: string;
|
|
253
|
+
events: string;
|
|
254
|
+
};
|
|
255
|
+
review: ReviewSummary;
|
|
256
|
+
feedbackCandidates: RunFeedbackCandidate[];
|
|
257
|
+
/** Structured subject provenance (invariant 5). Optional and additive: emitted by the
|
|
258
|
+
* computer-use and shared-world backends and the clone scripted-browser route; tolerated absent
|
|
259
|
+
* everywhere else. */
|
|
260
|
+
subject?: RunSubjectProvenance;
|
|
261
|
+
/**
|
|
262
|
+
* The custom E2B desktop TEMPLATE (image) the run's sandbox(es) actually launched on, from
|
|
263
|
+
* `execution.desktop.template` — so the evidence shows WHICH image ran (a subject needing
|
|
264
|
+
* runtimes the stock `desktop` image lacks runs on an adopter's template). Optional + additive:
|
|
265
|
+
* present only when a template was configured (absent == the stock `desktop` template, every
|
|
266
|
+
* pre-existing bundle byte-stable). A template name is public-safe (not a secret).
|
|
267
|
+
*/
|
|
268
|
+
desktopTemplate?: string;
|
|
269
|
+
/**
|
|
270
|
+
* Browser family requested for hosted desktop actor lanes and the in-sandbox command that opened
|
|
271
|
+
* it, when explicitly configured. Optional + additive; absent means the historical default opener
|
|
272
|
+
* path was used or the backend does not create a headed desktop.
|
|
273
|
+
*/
|
|
274
|
+
desktopBrowser?: {
|
|
275
|
+
requested: "default" | "chrome" | "chromium" | "firefox";
|
|
276
|
+
resolved?: string;
|
|
277
|
+
/**
|
|
278
|
+
* Synthetic media devices the browser was launched with (#509): the camera feed's origin and
|
|
279
|
+
* in-sandbox path, how the permission dialog is answered, and the exact flags.
|
|
280
|
+
*/
|
|
281
|
+
media?: {
|
|
282
|
+
camera?: {
|
|
283
|
+
source: "synthetic" | "file";
|
|
284
|
+
file: string;
|
|
285
|
+
};
|
|
286
|
+
microphone?: {
|
|
287
|
+
source: "speech";
|
|
288
|
+
};
|
|
289
|
+
permission: "prompt" | "granted";
|
|
290
|
+
flags: string[];
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
/**
|
|
294
|
+
* Optional lineage for a run that intentionally re-executes selected lanes from a prior
|
|
295
|
+
* multi-lane run. This keeps retry-like workflows explicit: the new run is linked to the old
|
|
296
|
+
* evidence, but it never mutates or silently "fixes" the original verdict.
|
|
297
|
+
*/
|
|
298
|
+
rerun?: RunRerunLineage;
|
|
299
|
+
/**
|
|
300
|
+
* The interaction-attribution honesty axis (#164). Absent == `isolated` (every existing bundle
|
|
301
|
+
* byte-stable). Set to `shared-world` by the shared-world backend, paired with `sharedWorld`.
|
|
302
|
+
*/
|
|
303
|
+
attributionClass?: RunAttributionClass;
|
|
304
|
+
/**
|
|
305
|
+
* Shared-world evidence block (`humanish.shared-world.v1`). Optional + additive; present only on
|
|
306
|
+
* shared-world runs. Verified fail-closed by sharedWorldEvidenceFindings.
|
|
307
|
+
*/
|
|
308
|
+
sharedWorld?: SharedWorldEvidence;
|
|
309
|
+
/**
|
|
310
|
+
* OPTIONAL, ADAPTER-NAMESPACED product score (the layer-6 extension seam, issue #154 acceptance
|
|
311
|
+
* #8). A thin adapter's `score` hook returns a `RunAdapterScore`; the lane attaches it here
|
|
312
|
+
* WITHOUT core knowing any product noun (the score is namespaced + its breakdown lives in `data`).
|
|
313
|
+
* The default mission-based verdict (`review`) is unchanged when no scorer hook is given.
|
|
314
|
+
*/
|
|
315
|
+
adapterScore?: RunAdapterScore;
|
|
316
|
+
/**
|
|
317
|
+
* OPTIONAL provenance for a CONFIG-DECLARED scorer (#316). Present only when the scorer was loaded
|
|
318
|
+
* from `review.scorer.ref` / `--scorer`; absent for library callers and every pre-#316 bundle
|
|
319
|
+
* (tolerated-absent in isRunBundle so those still verify). Evidence, not a gate.
|
|
320
|
+
*/
|
|
321
|
+
scorerProvenance?: RunScorerProvenance;
|
|
322
|
+
/**
|
|
323
|
+
* OPTIONAL, ADAPTER-NAMESPACED product/state proof artifacts. Core validates
|
|
324
|
+
* shape and local relative artifact references, then verifies the referenced
|
|
325
|
+
* files exist. The adapter owns the payload schema under `namespace`.
|
|
326
|
+
*/
|
|
327
|
+
adapterArtifacts?: RunAdapterArtifact[];
|
|
328
|
+
/**
|
|
329
|
+
* Evidence about mutable provider resources observed during this run. Stored ids
|
|
330
|
+
* are not cleanup authority: automatic provider mutation requires a verified
|
|
331
|
+
* resource lease. Optional + additive; core never enumerates provider accounts.
|
|
332
|
+
*/
|
|
333
|
+
providerResources?: RunProviderResource[];
|
|
334
|
+
/**
|
|
335
|
+
* Which lab manifest produced this run (#455). Optional + additive: absent on every bundle
|
|
336
|
+
* written before this contract and on library callers who pass a LabConfig directly (the run is
|
|
337
|
+
* then honestly lab-less rather than guessed). For older bundles a reader may fall back to
|
|
338
|
+
* `inferLegacyLabId`, which reads only the historical `persona.source = "lab:<id>"` convention.
|
|
339
|
+
*/
|
|
340
|
+
lab?: RunLabProvenance;
|
|
341
|
+
/**
|
|
342
|
+
* OPTIONAL, ADDITIVE run-level cost ESTIMATE (humanish.run-cost-summary.v1): the sum of every
|
|
343
|
+
* lane's model-token estimate PLUS the E2B desktop-minute estimate, carrying the SAME
|
|
344
|
+
* null-discipline the terminal cost ledger already ships. Absent on pre-existing bundles and
|
|
345
|
+
* dry runs; a live run that spends nothing records an explicit zero with no lines. Every dollar figure here is an ESTIMATE,
|
|
346
|
+
* never an authoritative charge; verify asserts its LABELING/provenance, never its magnitude.
|
|
347
|
+
*/
|
|
348
|
+
cost?: RunCostSummary;
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* One contributing cost line of a RunCostSummary. A line is PRESENT even when it cannot be priced
|
|
352
|
+
* (records that we TRIED and could not) — an unpriceable line carries estimatedCostUsd: null + a
|
|
353
|
+
* `reason` and contributes NOTHING to the summary total (invariant 5). `estimatedCostUsd` is NEVER
|
|
354
|
+
* coerced to 0.
|
|
355
|
+
*/
|
|
356
|
+
export interface RunCostLine {
|
|
357
|
+
kind: "model-tokens" | "desktop-minutes";
|
|
358
|
+
laneId?: string;
|
|
359
|
+
modelId?: string;
|
|
360
|
+
/** null = NOT MEASURED / no rate; never coerced to 0. */
|
|
361
|
+
estimatedCostUsd: number | null;
|
|
362
|
+
reason?: "no_rate_for_model" | "no_rate_for_desktop" | "no_token_usage" | "no_duration" | "closing_usage_unreported" | "interaction_usage_unreported" | "no_desktop_resources" | "desktop_lifetime_incomplete" | "account_billing_unknown";
|
|
363
|
+
/** Pricing provenance date; non-null iff estimatedCostUsd is non-null. */
|
|
364
|
+
ratesAsOf: string | null;
|
|
365
|
+
source?: string;
|
|
366
|
+
placeholder?: boolean;
|
|
367
|
+
/** Optional allocation evidence on newer desktop lines; older aggregate lines remain valid. */
|
|
368
|
+
desktop?: {
|
|
369
|
+
minutes: number | null;
|
|
370
|
+
durationBasis: "host-acquired-to-cleanup";
|
|
371
|
+
resources?: {
|
|
372
|
+
cpuCount: number;
|
|
373
|
+
memoryMiB: number;
|
|
374
|
+
};
|
|
375
|
+
resourceSource?: "e2b.getInfo";
|
|
376
|
+
resourceUnavailableReason?: "metadata_unavailable" | "metadata_invalid" | "metadata_timeout";
|
|
377
|
+
usdPerSecond?: number;
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* The run-level cost ESTIMATE. `estimatedTotalUsd` is the rounded sum of ONLY the non-null
|
|
382
|
+
* `breakdown` lines; it is null iff EVERY line is null (never 0-coerced). `fullyEstimated` is
|
|
383
|
+
* false when any applicable line is null (the total is then a LOWER BOUND). Every non-null dollar
|
|
384
|
+
* figure carries `ratesAsOf`; `placeholder` is true when any contributing rate is a stand-in.
|
|
385
|
+
*/
|
|
386
|
+
export interface RunCostSummary {
|
|
387
|
+
schema: "humanish.run-cost-summary.v1";
|
|
388
|
+
currency: "usd";
|
|
389
|
+
/** Sum of the KNOWN (non-null) lines; null iff every applicable line is null; 0 with no lines
|
|
390
|
+
* for a spend-free run. */
|
|
391
|
+
estimatedTotalUsd: number | null;
|
|
392
|
+
/** Oldest asOf across contributing rates; null when nothing was priced. */
|
|
393
|
+
ratesAsOf: string | null;
|
|
394
|
+
/** false when any applicable line is null (the total is a lower bound). */
|
|
395
|
+
fullyEstimated: boolean;
|
|
396
|
+
/** true when any contributing rate is a placeholder (a stand-in, not a live sheet). */
|
|
397
|
+
placeholder: boolean;
|
|
398
|
+
breakdown: RunCostLine[];
|
|
399
|
+
/** Missing account token counts remain absent; known counts may be partial. */
|
|
400
|
+
tokenUsage: {
|
|
401
|
+
input?: number;
|
|
402
|
+
output?: number;
|
|
403
|
+
total?: number;
|
|
404
|
+
};
|
|
405
|
+
/** Host-side create->teardown span in minutes; null when no sandbox was created. */
|
|
406
|
+
desktopMinutes: number | null;
|
|
407
|
+
/** Honest "estimated; <x> unmeasured" statement. */
|
|
408
|
+
note: string;
|
|
409
|
+
}
|
|
410
|
+
export interface RunProviderResource {
|
|
411
|
+
schema: "humanish.provider-resource.v1";
|
|
412
|
+
provider: "e2b-desktop";
|
|
413
|
+
kind: "sandbox";
|
|
414
|
+
id: string;
|
|
415
|
+
owner: "humanish";
|
|
416
|
+
status: "running" | "killed" | "unknown";
|
|
417
|
+
simId?: string;
|
|
418
|
+
streamId?: string;
|
|
419
|
+
laneId?: string;
|
|
420
|
+
createdAt?: string;
|
|
421
|
+
cleanup?: {
|
|
422
|
+
killed: boolean;
|
|
423
|
+
reason: string;
|
|
424
|
+
};
|
|
425
|
+
}
|
|
426
|
+
export interface RunRerunLineage {
|
|
427
|
+
sourceRunId: string;
|
|
428
|
+
selectedLaneIds: string[];
|
|
429
|
+
previous: Array<{
|
|
430
|
+
laneId: string;
|
|
431
|
+
streamId?: string;
|
|
432
|
+
status: string;
|
|
433
|
+
reason?: string;
|
|
434
|
+
actorStatus?: string;
|
|
435
|
+
completionReason?: string;
|
|
436
|
+
}>;
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* What happened to the PARTICIPANTS in a study, with the denominator attached.
|
|
440
|
+
*
|
|
441
|
+
* A stakeholder watching through the glass forms conclusions from vivid moments — that is the
|
|
442
|
+
* classic failure of the viewing room, and it is why researchers synthesize rather than letting the
|
|
443
|
+
* room decide. So anything shown to a stakeholder carries its count, or it becomes a machine for
|
|
444
|
+
* manufacturing certainty from n=1 (docs/principles/three-roles.md).
|
|
445
|
+
*
|
|
446
|
+
* These are OUTCOMES, not scores. `abandoned` is the most valuable thing a usability study
|
|
447
|
+
* produces, and `harnessFailed` is the only member that says the instrument, rather than the
|
|
448
|
+
* product, is what went wrong.
|
|
449
|
+
*/
|
|
450
|
+
export interface ParticipantOutcomes {
|
|
451
|
+
/** Participants whose sessions reached a terminal state — the denominator for every count below. */
|
|
452
|
+
total: number;
|
|
453
|
+
/** Recorded successful sessions; completion provenance depends on the actor and its evidence. */
|
|
454
|
+
reachedGoal: number;
|
|
455
|
+
/** Stopped trying. A finding about the product. */
|
|
456
|
+
abandoned: number;
|
|
457
|
+
/** Interrupted before reaching the goal, including session, spend and provider limits. */
|
|
458
|
+
ranOut: number;
|
|
459
|
+
/** Needed an approval the run could not give. */
|
|
460
|
+
blocked: number;
|
|
461
|
+
/** The harness failed them: a dead sandbox, a provider error, a broken artifact. */
|
|
462
|
+
harnessFailed: number;
|
|
463
|
+
/**
|
|
464
|
+
* Participants who reported friction or a defect on the way, whatever their outcome.
|
|
465
|
+
*
|
|
466
|
+
* This is NOT a failure count and it overlaps the others on purpose — someone can reach the goal
|
|
467
|
+
* and still tell you the road there was broken. A live two-persona run made the case: both
|
|
468
|
+
* participants signed in, so "2/2 reached the goal" was true, and the keyboard-first one also
|
|
469
|
+
* reported that the signature step could not be completed without a mouse. Reporting only the
|
|
470
|
+
* outcome would have buried the single most useful thing that run produced.
|
|
471
|
+
*/
|
|
472
|
+
reportedFriction: number;
|
|
473
|
+
}
|
|
474
|
+
export interface ReviewSummary {
|
|
475
|
+
schema: typeof REVIEW_SCHEMA;
|
|
476
|
+
verdict: "contract_proof_only" | "pass" | "fail" | "blocked" | "timed_out";
|
|
477
|
+
summary: string;
|
|
478
|
+
gaps: string[];
|
|
479
|
+
/**
|
|
480
|
+
* The study result, separate from the verdict above.
|
|
481
|
+
*
|
|
482
|
+
* `verdict` answers a gate-shaped question and has to collapse a run to one word. This answers
|
|
483
|
+
* the research question — what happened to the people in the study — and does not collapse: a run
|
|
484
|
+
* where two of three participants finished is not usefully "fail", and a run where the harness
|
|
485
|
+
* broke is a different thing from one where a persona gave up. Absent on a dry-run contract
|
|
486
|
+
* bundle, which has no participants.
|
|
487
|
+
*/
|
|
488
|
+
participants?: ParticipantOutcomes;
|
|
489
|
+
/**
|
|
490
|
+
* The study's per-task completion rates (#414) — present only when the lab declared a protocol
|
|
491
|
+
* and at least one session produced a funnel. Absent means no protocol was measured, never that
|
|
492
|
+
* everyone finished.
|
|
493
|
+
*/
|
|
494
|
+
tasks?: StudyTaskFunnel;
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* The study's task funnel: for each declared task, how many participants completed it, out of how
|
|
498
|
+
* many sessions produced a funnel. This is "where did people get stuck" as data — the number a
|
|
499
|
+
* researcher reads first — where the per-participant funnels answer it one journey at a time.
|
|
500
|
+
*
|
|
501
|
+
* Aggregated by task id in declaration order. Every lane in a run shares the actor's protocol, so
|
|
502
|
+
* ids line up across participants; a funnel missing a task id (a future mixed-protocol route)
|
|
503
|
+
* simply does not count toward that task's denominator.
|
|
504
|
+
*/
|
|
505
|
+
export interface StudyTaskFunnel {
|
|
506
|
+
/** Sessions that produced a funnel — the denominator for every count below. */
|
|
507
|
+
sessions: number;
|
|
508
|
+
tasks: Array<{
|
|
509
|
+
id: string;
|
|
510
|
+
/** Participants whose sessions corroborated this task complete. */
|
|
511
|
+
completed: number;
|
|
512
|
+
/** Sessions whose protocol declared this task — its denominator. */
|
|
513
|
+
sessions: number;
|
|
514
|
+
/** False when the task declared no success criterion: asked for, never measurable. */
|
|
515
|
+
observable: boolean;
|
|
516
|
+
/** Sessions where this task's criteria were never evaluated, because the observations they
|
|
517
|
+
* read never arrived. Counted apart from failures: "0/3 completed" with 3 unmeasured is a
|
|
518
|
+
* statement about our instrument, not about the participants (#514). */
|
|
519
|
+
unmeasured: number;
|
|
520
|
+
}>;
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* The fields every run bundle starts with, in the saved order. A route passes its run, mode and
|
|
524
|
+
* participant count; the public target cwd and the run's own artifact root are the defaults.
|
|
525
|
+
*/
|
|
526
|
+
export declare function bundleHead(args: {
|
|
527
|
+
/** Publication restrictions (real communications), saved right after the schema. */
|
|
528
|
+
publication?: RunBundle["publication"];
|
|
529
|
+
runId: string;
|
|
530
|
+
mode: RunBundle["mode"];
|
|
531
|
+
participants: number;
|
|
532
|
+
createdAt: string;
|
|
533
|
+
cwd?: string;
|
|
534
|
+
artifactRoot?: string;
|
|
535
|
+
lab?: RunLabProvenance;
|
|
536
|
+
source: RunBundle["source"];
|
|
537
|
+
}): Pick<RunBundle, "schema" | "publication" | "runId" | "mode" | "simCount" | "createdAt" | "cwd" | "artifactRoot" | "lab" | "source">;
|
|
538
|
+
/** The files every run directory holds, as the bundle names them. */
|
|
539
|
+
export declare function bundleArtifacts(): RunBundle["artifacts"];
|
|
540
|
+
export declare function buildRunSource(args: {
|
|
541
|
+
cwd: string;
|
|
542
|
+
capturedAt?: Date | string;
|
|
543
|
+
humanishSource: RunBundle["source"]["humanishSource"];
|
|
544
|
+
packageName: string | null;
|
|
545
|
+
}): Promise<RunBundle["source"]>;
|
|
546
|
+
export declare const CODEX_APP_SERVER_PROJECTED_TRACE_SCHEMA = "humanish.codex-app-server-trace.projected.v1";
|
|
547
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import { captureGitState } from "./git-state.js";
|
|
3
|
+
export const RUN_BUNDLE_SCHEMA = "humanish.run-bundle.v1";
|
|
4
|
+
/** The run bundle file, relative to the run directory. */
|
|
5
|
+
export const RUN_BUNDLE_FILE = "run.json";
|
|
6
|
+
export const REVIEW_SCHEMA = "humanish.review.v1";
|
|
7
|
+
export const PUBLIC_TARGET_CWD = "[target-cwd]";
|
|
8
|
+
/**
|
|
9
|
+
* The fields every run bundle starts with, in the saved order. A route passes its run, mode and
|
|
10
|
+
* participant count; the public target cwd and the run's own artifact root are the defaults.
|
|
11
|
+
*/
|
|
12
|
+
export function bundleHead(args) {
|
|
13
|
+
return {
|
|
14
|
+
schema: RUN_BUNDLE_SCHEMA,
|
|
15
|
+
...(args.publication === undefined ? {} : { publication: args.publication }),
|
|
16
|
+
runId: args.runId,
|
|
17
|
+
mode: args.mode,
|
|
18
|
+
simCount: args.participants,
|
|
19
|
+
createdAt: args.createdAt,
|
|
20
|
+
cwd: args.cwd ?? PUBLIC_TARGET_CWD,
|
|
21
|
+
artifactRoot: args.artifactRoot ?? path.join(".humanish", "runs", args.runId),
|
|
22
|
+
...(args.lab === undefined ? {} : { lab: args.lab }),
|
|
23
|
+
source: args.source,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/** The files every run directory holds, as the bundle names them. */
|
|
27
|
+
export function bundleArtifacts() {
|
|
28
|
+
return {
|
|
29
|
+
run: RUN_BUNDLE_FILE,
|
|
30
|
+
reviewJson: "review.json",
|
|
31
|
+
reviewMarkdown: "review.md",
|
|
32
|
+
observerData: "observer/observer-data.json",
|
|
33
|
+
events: "events.ndjson",
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export async function buildRunSource(args) {
|
|
37
|
+
const gitOptions = args.capturedAt === undefined ? {} : { capturedAt: args.capturedAt };
|
|
38
|
+
return {
|
|
39
|
+
packageName: args.packageName,
|
|
40
|
+
humanishSource: args.humanishSource,
|
|
41
|
+
git: await captureGitState(args.cwd, gitOptions),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export const CODEX_APP_SERVER_PROJECTED_TRACE_SCHEMA = "humanish.codex-app-server-trace.projected.v1";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Bounded-concurrency map: run `mapper` over `items` with at most `concurrency` in flight at a
|
|
2
|
+
// time, preserving input order in the result array. A worker pool of size
|
|
3
|
+
// min(concurrency, items.length) pulls the next index until the list is drained, and
|
|
4
|
+
// `results[i]` always corresponds to `items[i]`.
|
|
5
|
+
export async function mapWithConcurrency(items, concurrency, mapper) {
|
|
6
|
+
const results = new Array(items.length);
|
|
7
|
+
let nextIndex = 0;
|
|
8
|
+
const workerCount = Math.min(concurrency, items.length);
|
|
9
|
+
await Promise.all(Array.from({ length: workerCount }, async () => {
|
|
10
|
+
while (true) {
|
|
11
|
+
const index = nextIndex;
|
|
12
|
+
nextIndex += 1;
|
|
13
|
+
if (index >= items.length) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
const item = items[index];
|
|
17
|
+
if (item === undefined) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
results[index] = await mapper(item, index);
|
|
21
|
+
}
|
|
22
|
+
}));
|
|
23
|
+
return results;
|
|
24
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type FileHandle } from "node:fs/promises";
|
|
2
|
+
import { type PreparedRunArtifactPaths, type FileIdentity } from "./paths.js";
|
|
3
|
+
export interface PreparedSelectedOutputDirectory {
|
|
4
|
+
readonly identity: FileIdentity;
|
|
5
|
+
readonly parentRun?: PreparedRunArtifactPaths;
|
|
6
|
+
readonly physicalPath: string;
|
|
7
|
+
readonly requestedPath: string;
|
|
8
|
+
}
|
|
9
|
+
export interface PreparedSelectedOutputFile {
|
|
10
|
+
readonly parentIdentity: FileIdentity;
|
|
11
|
+
readonly physicalParent: string;
|
|
12
|
+
readonly physicalPath: string;
|
|
13
|
+
readonly requestedPath: string;
|
|
14
|
+
}
|
|
15
|
+
/** A root for contained reads and writes: a prepared run directory or a prepared selected directory. */
|
|
16
|
+
export type PreparedOutputRoot = PreparedSelectedOutputDirectory | PreparedRunArtifactPaths;
|
|
17
|
+
/**
|
|
18
|
+
* Prepare an arbitrary caller-selected output directory without changing the
|
|
19
|
+
* caller's resolution contract. Relative values resolve against baseDir;
|
|
20
|
+
* absolute values keep their authority. Every spelling is caller authority:
|
|
21
|
+
* existing aliases in the selected directory or its parents are canonicalized
|
|
22
|
+
* once, then bound by physical path and directory identity. Managed defaults
|
|
23
|
+
* must use a strict storage preparer instead.
|
|
24
|
+
*/
|
|
25
|
+
export declare function prepareSelectedOutputDirectory(baseDir: string, selectedPath: string): Promise<PreparedSelectedOutputDirectory>;
|
|
26
|
+
/** Prepare a strict `.humanish`-managed directory, then bind its identity. */
|
|
27
|
+
export declare function prepareManagedHumanishOutputDirectory(cwd: string, ...segments: string[]): Promise<PreparedSelectedOutputDirectory>;
|
|
28
|
+
/** Bind an existing strict `.humanish` directory without creating storage. */
|
|
29
|
+
export declare function bindExistingManagedHumanishOutputDirectory(cwd: string, ...segments: string[]): Promise<PreparedSelectedOutputDirectory | null>;
|
|
30
|
+
/** Prepare an arbitrary caller-selected output file whose parent is independent. */
|
|
31
|
+
export declare function prepareSelectedOutputFile(baseDir: string, selectedPath: string): Promise<PreparedSelectedOutputFile>;
|
|
32
|
+
export declare function assertPreparedSelectedOutputDirectory(prepared: PreparedSelectedOutputDirectory): Promise<void>;
|
|
33
|
+
export declare function writePreparedSelectedOutputFile(prepared: PreparedSelectedOutputFile, data: string | Uint8Array, encoding?: BufferEncoding): Promise<void>;
|
|
34
|
+
/** Atomically write the sibling latest pointer bound by a prepared run token. */
|
|
35
|
+
export declare function writePreparedRunLatestPointer(prepared: PreparedRunArtifactPaths, data: string | Uint8Array, encoding?: BufferEncoding): Promise<void>;
|
|
36
|
+
export declare function prepareContainedOutputDirectory(rootInput: PreparedOutputRoot, relativePath: string): Promise<string>;
|
|
37
|
+
/** Prepare and identity-bind a generated child directory under a prepared root. */
|
|
38
|
+
export declare function prepareContainedOutputDirectoryRoot(rootInput: PreparedOutputRoot, relativePath: string): Promise<PreparedSelectedOutputDirectory>;
|
|
39
|
+
export declare function prepareContainedOutputFile(rootInput: PreparedOutputRoot, relativePath: string): Promise<string>;
|
|
40
|
+
export declare function writeContainedOutputFile(rootInput: PreparedOutputRoot, relativePath: string, data: string | Uint8Array, encoding?: BufferEncoding): Promise<void>;
|
|
41
|
+
/** Read one regular file only when both lexical and physical paths stay in root. */
|
|
42
|
+
export declare function readContainedRegularFile(rootInput: PreparedOutputRoot, relativePath: string): Promise<Buffer | null>;
|
|
43
|
+
/**
|
|
44
|
+
* Whether a contained path is confirmed absent. A present entry that readContainedRegularFile
|
|
45
|
+
* refuses or fails to read is not absent.
|
|
46
|
+
*/
|
|
47
|
+
export declare function containedPathAbsent(rootInput: PreparedOutputRoot, relativePath: string): Promise<boolean>;
|
|
48
|
+
/** The caller owns this checked descriptor and must close it after reading/streaming. */
|
|
49
|
+
export declare function openContainedRegularFile(rootInput: PreparedOutputRoot, relativePath: string): Promise<FileHandle | null>;
|
|
50
|
+
export declare function assertSafeOutputPathSegment(value: string, label?: string): void;
|