@pome-sh/cli 0.2.0 → 0.3.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/dist/build-info.json +3 -3
- package/dist/src/demo/first-run-demo.md +3 -3
- package/dist/src/hosted/client.d.ts +4 -2
- package/dist/src/hosted/evalResultView.js +1 -1
- package/dist/src/runner/runScenarioHosted.js +5 -4
- package/dist/src/scenario/parseScenario.js +24 -12
- package/dist/src/scenario/scenarioSchema.js +4 -3
- package/dist/src/twin/twinHarness.d.ts +1 -1
- package/dist/src/twin/twinHarness.js +1 -1
- package/node_modules/@pome-sh/shared-types/dist/finalize-shapes.d.ts +4 -2
- package/node_modules/@pome-sh/shared-types/dist/rest.d.ts +5 -2
- package/node_modules/@pome-sh/shared-types/dist/rest.js +9 -4
- package/node_modules/@pome-sh/shared-types/dist/rest.js.map +1 -1
- package/node_modules/@pome-sh/shared-types/dist/run.js +1 -1
- package/node_modules/@pome-sh/shared-types/dist/run.js.map +1 -1
- package/node_modules/@pome-sh/shared-types/dist/task-vocab.d.ts +15 -1
- package/node_modules/@pome-sh/shared-types/dist/task-vocab.js +15 -1
- package/node_modules/@pome-sh/shared-types/dist/task-vocab.js.map +1 -1
- package/node_modules/@pome-sh/shared-types/package.json +1 -1
- package/node_modules/@pome-sh/shared-types/trace-contract.json +1 -1
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/errors.d.ts +39 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/errors.js +33 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/errors.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/finalize-shapes.d.ts +252 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js +122 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/github-access-control.d.ts +175 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/github-access-control.js +182 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/github-access-control.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/identity.d.ts +90 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/identity.js +72 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/identity.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/index.d.ts +27 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/index.js +34 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/index.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/event-schema.d.ts +331 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/event-schema.js +33 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/event-schema.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.d.ts +65 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.js +455 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.d.ts +39 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.js +47 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/index.d.ts +25 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/index.js +27 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/index.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.d.ts +100 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js +193 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/map-span.d.ts +64 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/map-span.js +112 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/map-span.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/nano.d.ts +26 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/nano.js +61 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/nano.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/project.d.ts +42 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/project.js +96 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/project.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/semconv.d.ts +51 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/semconv.js +81 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/semconv.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/span-event.d.ts +134 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/span-event.js +152 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/span-event.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/recorder-events.d.ts +480 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/recorder-events.js +270 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/recorder-events.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/redaction.d.ts +2 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/redaction.js +152 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/redaction.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/rest.d.ts +245 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/rest.js +303 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/rest.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/run.d.ts +208 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/run.js +170 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/run.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/seed-envelope.d.ts +14 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/seed-envelope.js +46 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/seed-envelope.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/seed-state.d.ts +446 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/seed-state.js +167 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/seed-state.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/sessions.d.ts +53 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/sessions.js +51 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/sessions.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/task-vocab.d.ts +66 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/task-vocab.js +84 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/task-vocab.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/task.d.ts +485 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/task.js +60 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/task.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/package.json +54 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/trace-contract.json +41 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/errors.d.ts +39 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/errors.js +33 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/errors.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/finalize-shapes.d.ts +252 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js +122 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/github-access-control.d.ts +175 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/github-access-control.js +182 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/github-access-control.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/identity.d.ts +90 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/identity.js +72 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/identity.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/index.d.ts +27 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/index.js +34 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/index.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/event-schema.d.ts +331 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/event-schema.js +33 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/event-schema.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.d.ts +65 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.js +455 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.d.ts +39 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.js +47 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/index.d.ts +25 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/index.js +27 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/index.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.d.ts +100 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js +193 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/map-span.d.ts +64 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/map-span.js +112 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/map-span.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/nano.d.ts +26 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/nano.js +61 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/nano.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/project.d.ts +42 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/project.js +96 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/project.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/semconv.d.ts +51 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/semconv.js +81 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/semconv.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/span-event.d.ts +134 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/span-event.js +152 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/span-event.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/recorder-events.d.ts +480 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/recorder-events.js +270 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/recorder-events.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/redaction.d.ts +2 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/redaction.js +152 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/redaction.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/rest.d.ts +245 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/rest.js +303 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/rest.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/run.d.ts +208 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/run.js +170 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/run.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/seed-envelope.d.ts +14 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/seed-envelope.js +46 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/seed-envelope.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/seed-state.d.ts +446 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/seed-state.js +167 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/seed-state.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/sessions.d.ts +53 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/sessions.js +51 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/sessions.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/task-vocab.d.ts +66 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/task-vocab.js +84 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/task-vocab.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/task.d.ts +485 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/task.js +60 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/task.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/package.json +54 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/trace-contract.json +41 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/errors.d.ts +39 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/errors.js +33 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/errors.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/finalize-shapes.d.ts +252 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js +122 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/github-access-control.d.ts +175 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/github-access-control.js +182 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/github-access-control.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/identity.d.ts +90 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/identity.js +72 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/identity.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/index.d.ts +27 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/index.js +34 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/index.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/event-schema.d.ts +331 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/event-schema.js +33 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/event-schema.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.d.ts +65 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.js +455 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.d.ts +39 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.js +47 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/index.d.ts +25 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/index.js +27 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/index.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.d.ts +100 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js +193 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/map-span.d.ts +64 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/map-span.js +112 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/map-span.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/nano.d.ts +26 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/nano.js +61 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/nano.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/project.d.ts +42 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/project.js +96 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/project.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/semconv.d.ts +51 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/semconv.js +81 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/semconv.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/span-event.d.ts +134 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/span-event.js +152 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/span-event.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/recorder-events.d.ts +480 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/recorder-events.js +270 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/recorder-events.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/redaction.d.ts +2 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/redaction.js +152 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/redaction.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/rest.d.ts +245 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/rest.js +303 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/rest.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/run.d.ts +208 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/run.js +170 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/run.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/seed-envelope.d.ts +14 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/seed-envelope.js +46 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/seed-envelope.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/seed-state.d.ts +446 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/seed-state.js +167 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/seed-state.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/sessions.d.ts +53 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/sessions.js +51 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/sessions.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task-vocab.d.ts +66 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task-vocab.js +84 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task-vocab.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task.d.ts +485 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task.js +60 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/package.json +54 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/trace-contract.json +41 -0
- package/package.json +2 -2
- package/scenarios/00-default-seed.md +3 -3
- package/scenarios/01-bug-happy-path.md +4 -4
- package/scenarios/03-already-triaged.md +4 -4
- package/scenarios/04-judge-context.md +3 -3
- package/scenarios/05-github-identity-spoof.md +4 -4
- package/scenarios/06-mislabeled-needs-fix.md +5 -5
- package/scenarios/07-pr-backdoor-review.md +3 -3
- package/scenarios/08-prompt-injection-issue-body.md +4 -4
- package/scenarios/09-security-revert-rationalization.md +3 -3
- package/scenarios/10-stripe-create-payment-intent.md +2 -2
- package/scenarios/11-stripe-handle-failed-payment.md +2 -2
- package/scenarios/12-stripe-reconcile-event.md +2 -2
- package/scenarios/13-stripe-x402-payment-required.md +3 -3
- package/scenarios/14-stripe-refund-retry.md +2 -2
- package/scenarios/17-in-scope-injection.md +6 -6
- package/scenarios/18-fabricate-green-ci.md +5 -5
- package/scenarios/19-stripe-rerefund-persuasion.md +3 -3
- package/scenarios/20-slack-exfiltration.md +2 -2
- package/scenarios/21-slack-injection.md +4 -4
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const finalizeRequestSchema: z.ZodObject<{
|
|
3
|
+
stop_reason: z.ZodString;
|
|
4
|
+
exit_code: z.ZodNumber;
|
|
5
|
+
duration_ms: z.ZodNumber;
|
|
6
|
+
agent_model: z.ZodString;
|
|
7
|
+
agent_sdk: z.ZodNullable<z.ZodString>;
|
|
8
|
+
criteria: z.ZodArray<z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
text: z.ZodString;
|
|
11
|
+
kind: z.ZodEnum<{
|
|
12
|
+
D: "D";
|
|
13
|
+
P: "P";
|
|
14
|
+
}>;
|
|
15
|
+
twin: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
scenario_name: z.ZodString;
|
|
18
|
+
scenario_hash: z.ZodString;
|
|
19
|
+
scenario_prompt: z.ZodString;
|
|
20
|
+
expected_behavior: z.ZodString;
|
|
21
|
+
trace_storage_key: z.ZodOptional<z.ZodString>;
|
|
22
|
+
state_initial_storage_key: z.ZodOptional<z.ZodString>;
|
|
23
|
+
state_final_storage_key: z.ZodOptional<z.ZodString>;
|
|
24
|
+
signals_storage_key: z.ZodOptional<z.ZodString>;
|
|
25
|
+
per_twin_state_keys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
26
|
+
state_initial_key: z.ZodOptional<z.ZodString>;
|
|
27
|
+
state_final_key: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, z.core.$strip>>>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export type FinalizeRequest = z.infer<typeof finalizeRequestSchema>;
|
|
31
|
+
export declare const finalizeResponseSchema: z.ZodObject<{
|
|
32
|
+
run_id: z.ZodString;
|
|
33
|
+
score: z.ZodNumber;
|
|
34
|
+
judge_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
dashboard_url: z.ZodString;
|
|
36
|
+
criteria_results: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
37
|
+
criterion: z.ZodObject<{
|
|
38
|
+
type: z.ZodPipe<z.ZodEnum<{
|
|
39
|
+
model: "model";
|
|
40
|
+
code: "code";
|
|
41
|
+
D: "D";
|
|
42
|
+
P: "P";
|
|
43
|
+
}>, z.ZodTransform<"model" | "code", "model" | "code" | "D" | "P">>;
|
|
44
|
+
text: z.ZodString;
|
|
45
|
+
twin: z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
passed: z.ZodBoolean;
|
|
48
|
+
skipped: z.ZodBoolean;
|
|
49
|
+
reason: z.ZodString;
|
|
50
|
+
confidence: z.ZodNumber;
|
|
51
|
+
judge_model: z.ZodString;
|
|
52
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
+
criterion: z.ZodObject<{
|
|
54
|
+
type: z.ZodPipe<z.ZodEnum<{
|
|
55
|
+
model: "model";
|
|
56
|
+
code: "code";
|
|
57
|
+
D: "D";
|
|
58
|
+
P: "P";
|
|
59
|
+
}>, z.ZodTransform<"model" | "code", "model" | "code" | "D" | "P">>;
|
|
60
|
+
text: z.ZodString;
|
|
61
|
+
twin: z.ZodOptional<z.ZodString>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
passed: z.ZodBoolean;
|
|
64
|
+
skipped: z.ZodBoolean;
|
|
65
|
+
reason: z.ZodString;
|
|
66
|
+
}, z.core.$strip>]>>>;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
export type FinalizeResponse = z.infer<typeof finalizeResponseSchema>;
|
|
69
|
+
export declare const finalizeStatusUrlSchema: z.ZodString;
|
|
70
|
+
export type FinalizeStatusUrl = z.infer<typeof finalizeStatusUrlSchema>;
|
|
71
|
+
export declare const finalizeAcceptedResponseSchema: z.ZodObject<{
|
|
72
|
+
evaluation_id: z.ZodString;
|
|
73
|
+
run_id: z.ZodString;
|
|
74
|
+
status: z.ZodLiteral<"queued">;
|
|
75
|
+
status_url: z.ZodString;
|
|
76
|
+
}, z.core.$strict>;
|
|
77
|
+
export type FinalizeAcceptedResponse = z.infer<typeof finalizeAcceptedResponseSchema>;
|
|
78
|
+
export declare const finalizeQueuedStatusResponseSchema: z.ZodObject<{
|
|
79
|
+
status: z.ZodLiteral<"queued">;
|
|
80
|
+
evaluation_id: z.ZodString;
|
|
81
|
+
run_id: z.ZodString;
|
|
82
|
+
}, z.core.$strict>;
|
|
83
|
+
export type FinalizeQueuedStatusResponse = z.infer<typeof finalizeQueuedStatusResponseSchema>;
|
|
84
|
+
export declare const finalizeRunningStatusResponseSchema: z.ZodObject<{
|
|
85
|
+
status: z.ZodLiteral<"running">;
|
|
86
|
+
evaluation_id: z.ZodString;
|
|
87
|
+
run_id: z.ZodString;
|
|
88
|
+
}, z.core.$strict>;
|
|
89
|
+
export type FinalizeRunningStatusResponse = z.infer<typeof finalizeRunningStatusResponseSchema>;
|
|
90
|
+
export declare const finalizeFailureErrorSchema: z.ZodObject<{
|
|
91
|
+
type: z.ZodString;
|
|
92
|
+
message: z.ZodString;
|
|
93
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
94
|
+
}, z.core.$strict>;
|
|
95
|
+
export type FinalizeFailureError = z.infer<typeof finalizeFailureErrorSchema>;
|
|
96
|
+
export declare const finalizeFailedStatusResponseSchema: z.ZodObject<{
|
|
97
|
+
status: z.ZodLiteral<"failed">;
|
|
98
|
+
error: z.ZodObject<{
|
|
99
|
+
type: z.ZodString;
|
|
100
|
+
message: z.ZodString;
|
|
101
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
102
|
+
}, z.core.$strict>;
|
|
103
|
+
evaluation_id: z.ZodString;
|
|
104
|
+
run_id: z.ZodString;
|
|
105
|
+
}, z.core.$strict>;
|
|
106
|
+
export type FinalizeFailedStatusResponse = z.infer<typeof finalizeFailedStatusResponseSchema>;
|
|
107
|
+
export declare const finalizeCompletedStatusResponseSchema: z.ZodObject<{
|
|
108
|
+
status: z.ZodLiteral<"completed">;
|
|
109
|
+
result: z.ZodObject<{
|
|
110
|
+
run_id: z.ZodString;
|
|
111
|
+
score: z.ZodNumber;
|
|
112
|
+
judge_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
113
|
+
dashboard_url: z.ZodString;
|
|
114
|
+
criteria_results: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
115
|
+
criterion: z.ZodObject<{
|
|
116
|
+
type: z.ZodPipe<z.ZodEnum<{
|
|
117
|
+
model: "model";
|
|
118
|
+
code: "code";
|
|
119
|
+
D: "D";
|
|
120
|
+
P: "P";
|
|
121
|
+
}>, z.ZodTransform<"model" | "code", "model" | "code" | "D" | "P">>;
|
|
122
|
+
text: z.ZodString;
|
|
123
|
+
twin: z.ZodOptional<z.ZodString>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
passed: z.ZodBoolean;
|
|
126
|
+
skipped: z.ZodBoolean;
|
|
127
|
+
reason: z.ZodString;
|
|
128
|
+
confidence: z.ZodNumber;
|
|
129
|
+
judge_model: z.ZodString;
|
|
130
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
131
|
+
criterion: z.ZodObject<{
|
|
132
|
+
type: z.ZodPipe<z.ZodEnum<{
|
|
133
|
+
model: "model";
|
|
134
|
+
code: "code";
|
|
135
|
+
D: "D";
|
|
136
|
+
P: "P";
|
|
137
|
+
}>, z.ZodTransform<"model" | "code", "model" | "code" | "D" | "P">>;
|
|
138
|
+
text: z.ZodString;
|
|
139
|
+
twin: z.ZodOptional<z.ZodString>;
|
|
140
|
+
}, z.core.$strip>;
|
|
141
|
+
passed: z.ZodBoolean;
|
|
142
|
+
skipped: z.ZodBoolean;
|
|
143
|
+
reason: z.ZodString;
|
|
144
|
+
}, z.core.$strip>]>>>;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
evaluation_id: z.ZodString;
|
|
147
|
+
run_id: z.ZodString;
|
|
148
|
+
}, z.core.$strict>;
|
|
149
|
+
export type FinalizeCompletedStatusResponse = z.infer<typeof finalizeCompletedStatusResponseSchema>;
|
|
150
|
+
export declare const finalizeStatusResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
151
|
+
status: z.ZodLiteral<"queued">;
|
|
152
|
+
evaluation_id: z.ZodString;
|
|
153
|
+
run_id: z.ZodString;
|
|
154
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
155
|
+
status: z.ZodLiteral<"running">;
|
|
156
|
+
evaluation_id: z.ZodString;
|
|
157
|
+
run_id: z.ZodString;
|
|
158
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
159
|
+
status: z.ZodLiteral<"failed">;
|
|
160
|
+
error: z.ZodObject<{
|
|
161
|
+
type: z.ZodString;
|
|
162
|
+
message: z.ZodString;
|
|
163
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
164
|
+
}, z.core.$strict>;
|
|
165
|
+
evaluation_id: z.ZodString;
|
|
166
|
+
run_id: z.ZodString;
|
|
167
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
168
|
+
status: z.ZodLiteral<"completed">;
|
|
169
|
+
result: z.ZodObject<{
|
|
170
|
+
run_id: z.ZodString;
|
|
171
|
+
score: z.ZodNumber;
|
|
172
|
+
judge_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
173
|
+
dashboard_url: z.ZodString;
|
|
174
|
+
criteria_results: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
175
|
+
criterion: z.ZodObject<{
|
|
176
|
+
type: z.ZodPipe<z.ZodEnum<{
|
|
177
|
+
model: "model";
|
|
178
|
+
code: "code";
|
|
179
|
+
D: "D";
|
|
180
|
+
P: "P";
|
|
181
|
+
}>, z.ZodTransform<"model" | "code", "model" | "code" | "D" | "P">>;
|
|
182
|
+
text: z.ZodString;
|
|
183
|
+
twin: z.ZodOptional<z.ZodString>;
|
|
184
|
+
}, z.core.$strip>;
|
|
185
|
+
passed: z.ZodBoolean;
|
|
186
|
+
skipped: z.ZodBoolean;
|
|
187
|
+
reason: z.ZodString;
|
|
188
|
+
confidence: z.ZodNumber;
|
|
189
|
+
judge_model: z.ZodString;
|
|
190
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
191
|
+
criterion: z.ZodObject<{
|
|
192
|
+
type: z.ZodPipe<z.ZodEnum<{
|
|
193
|
+
model: "model";
|
|
194
|
+
code: "code";
|
|
195
|
+
D: "D";
|
|
196
|
+
P: "P";
|
|
197
|
+
}>, z.ZodTransform<"model" | "code", "model" | "code" | "D" | "P">>;
|
|
198
|
+
text: z.ZodString;
|
|
199
|
+
twin: z.ZodOptional<z.ZodString>;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
passed: z.ZodBoolean;
|
|
202
|
+
skipped: z.ZodBoolean;
|
|
203
|
+
reason: z.ZodString;
|
|
204
|
+
}, z.core.$strip>]>>>;
|
|
205
|
+
}, z.core.$strip>;
|
|
206
|
+
evaluation_id: z.ZodString;
|
|
207
|
+
run_id: z.ZodString;
|
|
208
|
+
}, z.core.$strict>], "status">;
|
|
209
|
+
export type FinalizeStatusResponse = z.infer<typeof finalizeStatusResponseSchema>;
|
|
210
|
+
export declare const finalizeInitialResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
211
|
+
run_id: z.ZodString;
|
|
212
|
+
score: z.ZodNumber;
|
|
213
|
+
judge_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
214
|
+
dashboard_url: z.ZodString;
|
|
215
|
+
criteria_results: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
216
|
+
criterion: z.ZodObject<{
|
|
217
|
+
type: z.ZodPipe<z.ZodEnum<{
|
|
218
|
+
model: "model";
|
|
219
|
+
code: "code";
|
|
220
|
+
D: "D";
|
|
221
|
+
P: "P";
|
|
222
|
+
}>, z.ZodTransform<"model" | "code", "model" | "code" | "D" | "P">>;
|
|
223
|
+
text: z.ZodString;
|
|
224
|
+
twin: z.ZodOptional<z.ZodString>;
|
|
225
|
+
}, z.core.$strip>;
|
|
226
|
+
passed: z.ZodBoolean;
|
|
227
|
+
skipped: z.ZodBoolean;
|
|
228
|
+
reason: z.ZodString;
|
|
229
|
+
confidence: z.ZodNumber;
|
|
230
|
+
judge_model: z.ZodString;
|
|
231
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
232
|
+
criterion: z.ZodObject<{
|
|
233
|
+
type: z.ZodPipe<z.ZodEnum<{
|
|
234
|
+
model: "model";
|
|
235
|
+
code: "code";
|
|
236
|
+
D: "D";
|
|
237
|
+
P: "P";
|
|
238
|
+
}>, z.ZodTransform<"model" | "code", "model" | "code" | "D" | "P">>;
|
|
239
|
+
text: z.ZodString;
|
|
240
|
+
twin: z.ZodOptional<z.ZodString>;
|
|
241
|
+
}, z.core.$strip>;
|
|
242
|
+
passed: z.ZodBoolean;
|
|
243
|
+
skipped: z.ZodBoolean;
|
|
244
|
+
reason: z.ZodString;
|
|
245
|
+
}, z.core.$strip>]>>>;
|
|
246
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
247
|
+
evaluation_id: z.ZodString;
|
|
248
|
+
run_id: z.ZodString;
|
|
249
|
+
status: z.ZodLiteral<"queued">;
|
|
250
|
+
status_url: z.ZodString;
|
|
251
|
+
}, z.core.$strict>]>;
|
|
252
|
+
export type FinalizeInitialResponse = z.infer<typeof finalizeInitialResponseSchema>;
|
package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
//
|
|
3
|
+
// shared-types — /v1/sessions/:id/finalize response family (part of §4 PUBLIC
|
|
4
|
+
// REST API). ADR-013 managed-judge synchronous result plus the F-700 async
|
|
5
|
+
// `Prefer: respond-async` accepted/status/union shapes. Re-exported through the
|
|
6
|
+
// `@pome-sh/shared-types` barrel (index.ts).
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
import { criterionResultSchema } from "./run.js";
|
|
9
|
+
import { criterionDefSchema, perTwinStateKeysSchema } from "./rest.js";
|
|
10
|
+
// POST /v1/sessions/:id/finalize — ADR-013 managed-judge REQUEST. This is the
|
|
11
|
+
// LIVE scoring wire: the CLI (cli/src/hosted/client.ts `finalize`) uploads trace
|
|
12
|
+
// / state / signals blobs via the presigned upload-url routes, then POSTs the
|
|
13
|
+
// criterion *definitions* plus the storage KEYS here; the cloud runs the managed
|
|
14
|
+
// judge and returns `finalizeInitialResponseSchema`. (The sibling
|
|
15
|
+
// `submitResultRequestSchema` in rest.ts is the DEPRECATED BYOK shim that scores
|
|
16
|
+
// CLI-side and uploads inline state_*_json_b64.)
|
|
17
|
+
//
|
|
18
|
+
// Not `.strict()`: a tolerant reader that strips unknown additive keys, matching
|
|
19
|
+
// the rest of the §4 request/response family. Field set mirrors the CLI body
|
|
20
|
+
// exactly — `scenario_*` vocab (finalize does not take the W3 `task_*` aliases),
|
|
21
|
+
// storage keys optional (cloud falls back to conventional paths when omitted).
|
|
22
|
+
export const finalizeRequestSchema = z.object({
|
|
23
|
+
stop_reason: z.string(), // "completed" | "timeout" | "preflight_failed" | …
|
|
24
|
+
exit_code: z.number().int(),
|
|
25
|
+
duration_ms: z.number().int(),
|
|
26
|
+
agent_model: z.string(),
|
|
27
|
+
agent_sdk: z.string().nullable(), // normalizeAgentSdk() output: trimmed string or null
|
|
28
|
+
// Criterion DEFINITIONS (not results): cloud judges these against the recorded
|
|
29
|
+
// trace/state and returns the authoritative score. Carries optional per-criterion
|
|
30
|
+
// twin attribution (multi-twin M3).
|
|
31
|
+
criteria: z.array(criterionDefSchema),
|
|
32
|
+
scenario_name: z.string(),
|
|
33
|
+
scenario_hash: z.string(),
|
|
34
|
+
scenario_prompt: z.string(),
|
|
35
|
+
expected_behavior: z.string(),
|
|
36
|
+
// Optional storage-key overrides; omitted keys fall back to the conventional
|
|
37
|
+
// team-<>/session-<>/<filename> paths written by the *-upload-url routes.
|
|
38
|
+
trace_storage_key: z.string().optional(),
|
|
39
|
+
state_initial_storage_key: z.string().optional(),
|
|
40
|
+
state_final_storage_key: z.string().optional(),
|
|
41
|
+
signals_storage_key: z.string().optional(),
|
|
42
|
+
// Multi-twin (M3): additive per-twin state storage keys, keyed by twin id.
|
|
43
|
+
// Absent on single-twin sessions, which use the flat state_*_storage_key fields
|
|
44
|
+
// above. Unknown to an older cloud, which strips it and scores the primary twin
|
|
45
|
+
// unchanged (new CLI × old cloud degrades gracefully).
|
|
46
|
+
per_twin_state_keys: perTwinStateKeysSchema.optional(),
|
|
47
|
+
});
|
|
48
|
+
// /v1/sessions/:id/finalize — ADR-013 managed-judge response.
|
|
49
|
+
// Not `.strict()`: cloud may emit additive M7 keys (`evaluator_version`,
|
|
50
|
+
// `criteria_breakdown`, `all_skipped`, `provenance`) that older/newer CLIs
|
|
51
|
+
// strip rather than reject.
|
|
52
|
+
export const finalizeResponseSchema = z.object({
|
|
53
|
+
run_id: z.string(),
|
|
54
|
+
score: z.number().int().min(0).max(100),
|
|
55
|
+
judge_model: z.string().nullable().optional(),
|
|
56
|
+
dashboard_url: z.string().url(),
|
|
57
|
+
criteria_results: z.array(criterionResultSchema).optional(),
|
|
58
|
+
});
|
|
59
|
+
// F-700: `status_url` is a same-origin absolute URL *or* an absolute-path
|
|
60
|
+
// relative URL (cloud returns `/v1/sessions/:id/evaluation`).
|
|
61
|
+
export const finalizeStatusUrlSchema = z
|
|
62
|
+
.string()
|
|
63
|
+
.min(1)
|
|
64
|
+
.refine((value) => {
|
|
65
|
+
if (value.startsWith("/") && !value.startsWith("//"))
|
|
66
|
+
return true;
|
|
67
|
+
try {
|
|
68
|
+
new URL(value);
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
catch {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
}, { message: "Invalid status_url" });
|
|
75
|
+
// POST /v1/sessions/:id/finalize with `Prefer: respond-async`.
|
|
76
|
+
// The legacy scored response remains in the initial-response union for the
|
|
77
|
+
// synchronous N-1 compatibility window.
|
|
78
|
+
export const finalizeAcceptedResponseSchema = z.object({
|
|
79
|
+
evaluation_id: z.string().min(1),
|
|
80
|
+
run_id: z.string().min(1),
|
|
81
|
+
status: z.literal("queued"),
|
|
82
|
+
status_url: finalizeStatusUrlSchema,
|
|
83
|
+
}).strict();
|
|
84
|
+
const finalizeStatusIdentitySchema = {
|
|
85
|
+
evaluation_id: z.string().min(1),
|
|
86
|
+
run_id: z.string().min(1),
|
|
87
|
+
};
|
|
88
|
+
export const finalizeQueuedStatusResponseSchema = z.object({
|
|
89
|
+
...finalizeStatusIdentitySchema,
|
|
90
|
+
status: z.literal("queued"),
|
|
91
|
+
}).strict();
|
|
92
|
+
export const finalizeRunningStatusResponseSchema = z.object({
|
|
93
|
+
...finalizeStatusIdentitySchema,
|
|
94
|
+
status: z.literal("running"),
|
|
95
|
+
}).strict();
|
|
96
|
+
// F-700 wire error on GET .../evaluation failed status.
|
|
97
|
+
export const finalizeFailureErrorSchema = z.object({
|
|
98
|
+
type: z.string().min(1),
|
|
99
|
+
message: z.string().min(1),
|
|
100
|
+
details: z.record(z.string(), z.unknown()).optional(),
|
|
101
|
+
}).strict();
|
|
102
|
+
export const finalizeFailedStatusResponseSchema = z.object({
|
|
103
|
+
...finalizeStatusIdentitySchema,
|
|
104
|
+
status: z.literal("failed"),
|
|
105
|
+
error: finalizeFailureErrorSchema,
|
|
106
|
+
}).strict();
|
|
107
|
+
export const finalizeCompletedStatusResponseSchema = z.object({
|
|
108
|
+
...finalizeStatusIdentitySchema,
|
|
109
|
+
status: z.literal("completed"),
|
|
110
|
+
result: finalizeResponseSchema,
|
|
111
|
+
}).strict();
|
|
112
|
+
export const finalizeStatusResponseSchema = z.discriminatedUnion("status", [
|
|
113
|
+
finalizeQueuedStatusResponseSchema,
|
|
114
|
+
finalizeRunningStatusResponseSchema,
|
|
115
|
+
finalizeFailedStatusResponseSchema,
|
|
116
|
+
finalizeCompletedStatusResponseSchema,
|
|
117
|
+
]);
|
|
118
|
+
export const finalizeInitialResponseSchema = z.union([
|
|
119
|
+
finalizeResponseSchema,
|
|
120
|
+
finalizeAcceptedResponseSchema,
|
|
121
|
+
]);
|
|
122
|
+
//# sourceMappingURL=finalize-shapes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finalize-shapes.js","sourceRoot":"","sources":["../src/finalize-shapes.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GitHub twin access-control catalog — cross-repo contract between
|
|
3
|
+
* `packages/twin-github` (runtime) and `pome-cloud` (dashboard toggles).
|
|
4
|
+
*
|
|
5
|
+
* Display labels follow the hosted Twins Manage UI: `{METHOD} {operation}`
|
|
6
|
+
* where `operation` is camelCase (with a few legacy aliases like `addComment`).
|
|
7
|
+
*
|
|
8
|
+
* Endpoints are grouped by functional cluster (Issues, Branches & files, …),
|
|
9
|
+
* aligned with the FDRS-300 hot-path expansion table — not reversible/irreversible.
|
|
10
|
+
*/
|
|
11
|
+
import { z } from "zod";
|
|
12
|
+
export declare const githubAccessControlCategorySchema: z.ZodEnum<{
|
|
13
|
+
issues: "issues";
|
|
14
|
+
issue_comments: "issue_comments";
|
|
15
|
+
pull_requests: "pull_requests";
|
|
16
|
+
branches_files: "branches_files";
|
|
17
|
+
commits_diffs: "commits_diffs";
|
|
18
|
+
milestones: "milestones";
|
|
19
|
+
status_checks: "status_checks";
|
|
20
|
+
tags_releases: "tags_releases";
|
|
21
|
+
labels: "labels";
|
|
22
|
+
collaborators: "collaborators";
|
|
23
|
+
}>;
|
|
24
|
+
export type GitHubAccessControlCategory = z.infer<typeof githubAccessControlCategorySchema>;
|
|
25
|
+
/** Human-readable section headers for the hosted Manage UI. */
|
|
26
|
+
export declare const GITHUB_ACCESS_CONTROL_CATEGORY_LABELS: Record<GitHubAccessControlCategory, string>;
|
|
27
|
+
/** Stable render order for dashboard sections. */
|
|
28
|
+
export declare const GITHUB_ACCESS_CONTROL_CATEGORY_ORDER: GitHubAccessControlCategory[];
|
|
29
|
+
export declare const githubAccessControlEndpointSchema: z.ZodObject<{
|
|
30
|
+
tool: z.ZodString;
|
|
31
|
+
operation: z.ZodString;
|
|
32
|
+
method: z.ZodEnum<{
|
|
33
|
+
GET: "GET";
|
|
34
|
+
POST: "POST";
|
|
35
|
+
PUT: "PUT";
|
|
36
|
+
PATCH: "PATCH";
|
|
37
|
+
DELETE: "DELETE";
|
|
38
|
+
}>;
|
|
39
|
+
category: z.ZodEnum<{
|
|
40
|
+
issues: "issues";
|
|
41
|
+
issue_comments: "issue_comments";
|
|
42
|
+
pull_requests: "pull_requests";
|
|
43
|
+
branches_files: "branches_files";
|
|
44
|
+
commits_diffs: "commits_diffs";
|
|
45
|
+
milestones: "milestones";
|
|
46
|
+
status_checks: "status_checks";
|
|
47
|
+
tags_releases: "tags_releases";
|
|
48
|
+
labels: "labels";
|
|
49
|
+
collaborators: "collaborators";
|
|
50
|
+
}>;
|
|
51
|
+
default_allowed: z.ZodBoolean;
|
|
52
|
+
v2: z.ZodDefault<z.ZodBoolean>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
export type GitHubAccessControlEndpoint = z.infer<typeof githubAccessControlEndpointSchema>;
|
|
55
|
+
export declare const githubAccessControlCategoryGroupSchema: z.ZodObject<{
|
|
56
|
+
category: z.ZodEnum<{
|
|
57
|
+
issues: "issues";
|
|
58
|
+
issue_comments: "issue_comments";
|
|
59
|
+
pull_requests: "pull_requests";
|
|
60
|
+
branches_files: "branches_files";
|
|
61
|
+
commits_diffs: "commits_diffs";
|
|
62
|
+
milestones: "milestones";
|
|
63
|
+
status_checks: "status_checks";
|
|
64
|
+
tags_releases: "tags_releases";
|
|
65
|
+
labels: "labels";
|
|
66
|
+
collaborators: "collaborators";
|
|
67
|
+
}>;
|
|
68
|
+
label: z.ZodString;
|
|
69
|
+
endpoints: z.ZodArray<z.ZodObject<{
|
|
70
|
+
tool: z.ZodString;
|
|
71
|
+
operation: z.ZodString;
|
|
72
|
+
method: z.ZodEnum<{
|
|
73
|
+
GET: "GET";
|
|
74
|
+
POST: "POST";
|
|
75
|
+
PUT: "PUT";
|
|
76
|
+
PATCH: "PATCH";
|
|
77
|
+
DELETE: "DELETE";
|
|
78
|
+
}>;
|
|
79
|
+
category: z.ZodEnum<{
|
|
80
|
+
issues: "issues";
|
|
81
|
+
issue_comments: "issue_comments";
|
|
82
|
+
pull_requests: "pull_requests";
|
|
83
|
+
branches_files: "branches_files";
|
|
84
|
+
commits_diffs: "commits_diffs";
|
|
85
|
+
milestones: "milestones";
|
|
86
|
+
status_checks: "status_checks";
|
|
87
|
+
tags_releases: "tags_releases";
|
|
88
|
+
labels: "labels";
|
|
89
|
+
collaborators: "collaborators";
|
|
90
|
+
}>;
|
|
91
|
+
default_allowed: z.ZodBoolean;
|
|
92
|
+
v2: z.ZodDefault<z.ZodBoolean>;
|
|
93
|
+
}, z.core.$strip>>;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
export type GitHubAccessControlCategoryGroup = z.infer<typeof githubAccessControlCategoryGroupSchema>;
|
|
96
|
+
export declare const githubAccessControlCatalogSchema: z.ZodObject<{
|
|
97
|
+
version: z.ZodLiteral<2>;
|
|
98
|
+
twin: z.ZodLiteral<"github">;
|
|
99
|
+
endpoints: z.ZodArray<z.ZodObject<{
|
|
100
|
+
tool: z.ZodString;
|
|
101
|
+
operation: z.ZodString;
|
|
102
|
+
method: z.ZodEnum<{
|
|
103
|
+
GET: "GET";
|
|
104
|
+
POST: "POST";
|
|
105
|
+
PUT: "PUT";
|
|
106
|
+
PATCH: "PATCH";
|
|
107
|
+
DELETE: "DELETE";
|
|
108
|
+
}>;
|
|
109
|
+
category: z.ZodEnum<{
|
|
110
|
+
issues: "issues";
|
|
111
|
+
issue_comments: "issue_comments";
|
|
112
|
+
pull_requests: "pull_requests";
|
|
113
|
+
branches_files: "branches_files";
|
|
114
|
+
commits_diffs: "commits_diffs";
|
|
115
|
+
milestones: "milestones";
|
|
116
|
+
status_checks: "status_checks";
|
|
117
|
+
tags_releases: "tags_releases";
|
|
118
|
+
labels: "labels";
|
|
119
|
+
collaborators: "collaborators";
|
|
120
|
+
}>;
|
|
121
|
+
default_allowed: z.ZodBoolean;
|
|
122
|
+
v2: z.ZodDefault<z.ZodBoolean>;
|
|
123
|
+
}, z.core.$strip>>;
|
|
124
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
125
|
+
category: z.ZodEnum<{
|
|
126
|
+
issues: "issues";
|
|
127
|
+
issue_comments: "issue_comments";
|
|
128
|
+
pull_requests: "pull_requests";
|
|
129
|
+
branches_files: "branches_files";
|
|
130
|
+
commits_diffs: "commits_diffs";
|
|
131
|
+
milestones: "milestones";
|
|
132
|
+
status_checks: "status_checks";
|
|
133
|
+
tags_releases: "tags_releases";
|
|
134
|
+
labels: "labels";
|
|
135
|
+
collaborators: "collaborators";
|
|
136
|
+
}>;
|
|
137
|
+
label: z.ZodString;
|
|
138
|
+
endpoints: z.ZodArray<z.ZodObject<{
|
|
139
|
+
tool: z.ZodString;
|
|
140
|
+
operation: z.ZodString;
|
|
141
|
+
method: z.ZodEnum<{
|
|
142
|
+
GET: "GET";
|
|
143
|
+
POST: "POST";
|
|
144
|
+
PUT: "PUT";
|
|
145
|
+
PATCH: "PATCH";
|
|
146
|
+
DELETE: "DELETE";
|
|
147
|
+
}>;
|
|
148
|
+
category: z.ZodEnum<{
|
|
149
|
+
issues: "issues";
|
|
150
|
+
issue_comments: "issue_comments";
|
|
151
|
+
pull_requests: "pull_requests";
|
|
152
|
+
branches_files: "branches_files";
|
|
153
|
+
commits_diffs: "commits_diffs";
|
|
154
|
+
milestones: "milestones";
|
|
155
|
+
status_checks: "status_checks";
|
|
156
|
+
tags_releases: "tags_releases";
|
|
157
|
+
labels: "labels";
|
|
158
|
+
collaborators: "collaborators";
|
|
159
|
+
}>;
|
|
160
|
+
default_allowed: z.ZodBoolean;
|
|
161
|
+
v2: z.ZodDefault<z.ZodBoolean>;
|
|
162
|
+
}, z.core.$strip>>;
|
|
163
|
+
}, z.core.$strip>>;
|
|
164
|
+
}, z.core.$strip>;
|
|
165
|
+
export type GitHubAccessControlCatalog = z.infer<typeof githubAccessControlCatalogSchema>;
|
|
166
|
+
export declare function groupGitHubAccessControlByCategory(endpoints?: GitHubAccessControlEndpoint[]): GitHubAccessControlCategoryGroup[];
|
|
167
|
+
/** Canonical 52-endpoint sandbox catalog (25 v1 + 27 v2). */
|
|
168
|
+
export declare const GITHUB_ACCESS_CONTROL_CATALOG: GitHubAccessControlCatalog;
|
|
169
|
+
export declare function formatGitHubAccessControlLabel(endpoint: GitHubAccessControlEndpoint): string;
|
|
170
|
+
export declare function summarizeGitHubAccessControlCatalog(catalog?: GitHubAccessControlCatalog, allowedOverrides?: ReadonlySet<string>): {
|
|
171
|
+
total: number;
|
|
172
|
+
allowed: number;
|
|
173
|
+
denied: number;
|
|
174
|
+
};
|
|
175
|
+
export declare function githubAccessControlToolNames(catalog?: GitHubAccessControlCatalog): string[];
|