@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
package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/sessions.d.ts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const MOUNTED_TWINS: readonly ["github", "stripe", "slack"];
|
|
3
|
+
export declare const sessionStateSchema: z.ZodEnum<{
|
|
4
|
+
running: "running";
|
|
5
|
+
failed: "failed";
|
|
6
|
+
provisioning: "provisioning";
|
|
7
|
+
ready: "ready";
|
|
8
|
+
done: "done";
|
|
9
|
+
expired: "expired";
|
|
10
|
+
}>;
|
|
11
|
+
export type SessionState = z.infer<typeof sessionStateSchema>;
|
|
12
|
+
export declare const sessionSchema: z.ZodObject<{
|
|
13
|
+
id: z.ZodString;
|
|
14
|
+
team_id: z.ZodString;
|
|
15
|
+
api_key_id: z.ZodNullable<z.ZodString>;
|
|
16
|
+
twin_type: z.ZodString;
|
|
17
|
+
twins: z.ZodArray<z.ZodString>;
|
|
18
|
+
state: z.ZodEnum<{
|
|
19
|
+
running: "running";
|
|
20
|
+
failed: "failed";
|
|
21
|
+
provisioning: "provisioning";
|
|
22
|
+
ready: "ready";
|
|
23
|
+
done: "done";
|
|
24
|
+
expired: "expired";
|
|
25
|
+
}>;
|
|
26
|
+
twin_url: z.ZodNullable<z.ZodString>;
|
|
27
|
+
pod_id: z.ZodNullable<z.ZodString>;
|
|
28
|
+
created_at: z.ZodString;
|
|
29
|
+
ready_at: z.ZodNullable<z.ZodString>;
|
|
30
|
+
expires_at: z.ZodString;
|
|
31
|
+
closed_at: z.ZodNullable<z.ZodString>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
export type Session = z.infer<typeof sessionSchema>;
|
|
34
|
+
export declare const sessionPublicSchema: z.ZodObject<{
|
|
35
|
+
id: z.ZodString;
|
|
36
|
+
team_id: z.ZodString;
|
|
37
|
+
created_at: z.ZodString;
|
|
38
|
+
expires_at: z.ZodString;
|
|
39
|
+
twins: z.ZodArray<z.ZodString>;
|
|
40
|
+
twin_url: z.ZodNullable<z.ZodString>;
|
|
41
|
+
state: z.ZodEnum<{
|
|
42
|
+
running: "running";
|
|
43
|
+
failed: "failed";
|
|
44
|
+
provisioning: "provisioning";
|
|
45
|
+
ready: "ready";
|
|
46
|
+
done: "done";
|
|
47
|
+
expired: "expired";
|
|
48
|
+
}>;
|
|
49
|
+
twin_type: z.ZodString;
|
|
50
|
+
ready_at: z.ZodNullable<z.ZodString>;
|
|
51
|
+
closed_at: z.ZodNullable<z.ZodString>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
export type SessionPublic = z.infer<typeof sessionPublicSchema>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
//
|
|
3
|
+
// shared-types §2 — SESSIONS. Mounted-twin allowlist, session state machine,
|
|
4
|
+
// internal DB row + public API response shapes. Re-exported through the
|
|
5
|
+
// `@pome-sh/shared-types` barrel (index.ts).
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
8
|
+
// 2. SESSIONS
|
|
9
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
10
|
+
// Mounted twin set — the cloud control plane's allowlist for create-session.
|
|
11
|
+
// V1 ships GitHub only end-to-end; Stripe/Slack are scaffolded in the OSS repo
|
|
12
|
+
// and reachable through the multi-twin runtime. Distinct from `KNOWN_TWIN_IDS`
|
|
13
|
+
// (re-exported from `./recorder-events.ts`) which serves dashboard-rendering
|
|
14
|
+
// pattern-matching for arbitrary `RecorderEvent.twin` values. Mirrored from
|
|
15
|
+
// pome-cloud shared-types (FDRS-613).
|
|
16
|
+
export const MOUNTED_TWINS = ["github", "stripe", "slack"];
|
|
17
|
+
export const sessionStateSchema = z.enum([
|
|
18
|
+
"provisioning",
|
|
19
|
+
"ready",
|
|
20
|
+
"running",
|
|
21
|
+
"done",
|
|
22
|
+
"expired",
|
|
23
|
+
"failed",
|
|
24
|
+
]);
|
|
25
|
+
// Internal DB row shape — includes pod_id and api_key_id which are NOT exposed publicly.
|
|
26
|
+
//
|
|
27
|
+
// Multi-twin (M3): `twins[]` is the new authoritative field. `twin_type` is kept
|
|
28
|
+
// populated as legacy = `twins[0]` for ≥1 OSS CLI release. FDRS-613: `twins`
|
|
29
|
+
// adopted from pome-cloud so a cloud-issued Session / SessionPublic parses here.
|
|
30
|
+
export const sessionSchema = z.object({
|
|
31
|
+
id: z.string(), // ses_<nanoid>
|
|
32
|
+
team_id: z.string(),
|
|
33
|
+
api_key_id: z.string().nullable(), // null if dashboard-launched
|
|
34
|
+
twin_type: z.string(), // legacy: equals twins[0] in M3+; kept for one CLI release
|
|
35
|
+
twins: z.array(z.string()).min(1), // M3: authoritative list of mounted twins for this session
|
|
36
|
+
state: sessionStateSchema,
|
|
37
|
+
twin_url: z.string().url().nullable(), // populated when state='ready'
|
|
38
|
+
pod_id: z.string().nullable(), // INTERNAL: which pool pod served — never on public API responses
|
|
39
|
+
created_at: z.string().datetime(),
|
|
40
|
+
ready_at: z.string().datetime().nullable(),
|
|
41
|
+
expires_at: z.string().datetime(), // TTL, default created_at + 30min
|
|
42
|
+
closed_at: z.string().datetime().nullable(),
|
|
43
|
+
});
|
|
44
|
+
// Public API response shape — strips internal infrastructure fields per /plan-eng-review.
|
|
45
|
+
// `GET /v1/sessions/{id}` and `GET /v1/sessions` return SessionPublic.
|
|
46
|
+
// Internal orchestrator endpoints use the full Session shape.
|
|
47
|
+
export const sessionPublicSchema = sessionSchema.omit({
|
|
48
|
+
pod_id: true,
|
|
49
|
+
api_key_id: true,
|
|
50
|
+
});
|
|
51
|
+
//# sourceMappingURL=sessions.js.map
|
package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/sessions.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessions.js","sourceRoot":"","sources":["../src/sessions.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,EAAE;AACF,6EAA6E;AAC7E,wEAAwE;AACxE,6CAA6C;AAE7C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,gFAAgF;AAChF,cAAc;AACd,gFAAgF;AAEhF,6EAA6E;AAC7E,+EAA+E;AAC/E,+EAA+E;AAC/E,6EAA6E;AAC7E,4EAA4E;AAC5E,sCAAsC;AACtC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAU,CAAC;AAEpE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC;IACvC,cAAc;IACd,OAAO;IACP,SAAS;IACT,MAAM;IACN,SAAS;IACT,QAAQ;CACT,CAAC,CAAC;AAGH,yFAAyF;AACzF,EAAE;AACF,iFAAiF;AACjF,6EAA6E;AAC7E,iFAAiF;AACjF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAA+B,eAAe;IAC5D,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAY,6BAA6B;IAC1E,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,EAAwB,2DAA2D;IACxG,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAY,2DAA2D;IACxG,KAAK,EAAE,kBAAkB;IACzB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,EAAQ,+BAA+B;IAC5E,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAgB,kEAAkE;IAC/G,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAY,kCAAkC;IAC/E,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC5C,CAAC,CAAC;AAGH,0FAA0F;AAC1F,uEAAuE;AACvE,8DAA8D;AAC9D,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,IAAI,CAAC;IACpD,MAAM,EAAE,IAAI;IACZ,UAAU,EAAE,IAAI;CACjB,CAAC,CAAC"}
|
package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task-vocab.d.ts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* task-vocab — the W3 "scenario → task" wire-vocabulary rename (FDRS-653).
|
|
3
|
+
*
|
|
4
|
+
* W3 decision (binding, 2026-06): everything "scenario" becomes "task" on the
|
|
5
|
+
* wire, and criterion kinds `D` / `P` become `code` / `model`. The cloud DB is
|
|
6
|
+
* already renamed (`tasks` table, `runs.task_name`); this module gives the
|
|
7
|
+
* shared trace format the same vocabulary WITHOUT breaking 0.3.0-era artifacts.
|
|
8
|
+
*
|
|
9
|
+
* Tolerant-reader contract (the 0.3.0 compatibility window):
|
|
10
|
+
* - Canonical schemas and types use the NEW vocabulary only
|
|
11
|
+
* (`task_name`, `task_hash`, `task_source`, `task_id`, `promoted_task_id`,
|
|
12
|
+
* `task_step_id`, criterion kind `code` / `model`).
|
|
13
|
+
* - Readers accept BOTH the old and the new keys and normalize to the new
|
|
14
|
+
* vocabulary at parse time. Nothing a 0.3.0-era artifact contains becomes
|
|
15
|
+
* invalid: shipped CLIs vendor shared-types 0.3.0 and keep sending
|
|
16
|
+
* `scenario_*` keys and `D` / `P` criterion kinds for at least one more
|
|
17
|
+
* release train (the CLI vendored-tarball bump rides FDRS-654/657).
|
|
18
|
+
* - When BOTH keys are present, the new key wins (a 0.5.0-aware writer is
|
|
19
|
+
* more authoritative about the canonical field than a mirrored legacy key).
|
|
20
|
+
*
|
|
21
|
+
* The window closes with the next major once no supported CLI emits the old
|
|
22
|
+
* vocabulary; removal of the aliases goes through the deprecation policy.
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* Old wire key → canonical wire key for the RENAME-on-read surfaces of the
|
|
26
|
+
* /v1 contract (run / session / result wire objects):
|
|
27
|
+
* - `scenario_name` / `scenario_hash` — Run rows + POST /v1/sessions/{id}/result
|
|
28
|
+
* - `scenario_source` / `scenario_id` — POST /v1/sessions
|
|
29
|
+
* - `promoted_scenario_id` — Run rows (M0.5 replay-loop linkage)
|
|
30
|
+
*
|
|
31
|
+
* DELIBERATELY NOT in this map: `scenario_step_id` on RecorderEvent rows
|
|
32
|
+
* (events.jsonl). The frozen v1 event row has PRESERVE semantics — the legacy
|
|
33
|
+
* key stays as-sent while readers additionally populate `task_step_id` — which
|
|
34
|
+
* is handled by the reader schemas in `./recorder-events.ts`, NOT by this
|
|
35
|
+
* delete-the-legacy-key map.
|
|
36
|
+
*/
|
|
37
|
+
export declare const LEGACY_TASK_VOCAB_KEY_MAP: {
|
|
38
|
+
readonly scenario_name: "task_name";
|
|
39
|
+
readonly scenario_hash: "task_hash";
|
|
40
|
+
readonly scenario_source: "task_source";
|
|
41
|
+
readonly scenario_id: "task_id";
|
|
42
|
+
readonly promoted_scenario_id: "promoted_task_id";
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Rename legacy `scenario_*` keys on a raw wire object to their canonical
|
|
46
|
+
* `task_*` names. Non-objects pass through untouched (the wrapped schema then
|
|
47
|
+
* reports the real type error). When both the legacy and the canonical key are
|
|
48
|
+
* present the canonical value wins and the legacy key is dropped.
|
|
49
|
+
*
|
|
50
|
+
* Used as a `z.preprocess` step in front of the canonical object schemas —
|
|
51
|
+
* this is the "tolerant reader" half of the 0.3.0 compatibility window.
|
|
52
|
+
*
|
|
53
|
+
* DO NOT apply this helper to recorder-event rows (events.jsonl). Event rows
|
|
54
|
+
* require `scenario_step_id` preserved as-sent (frozen v1 trace format), and
|
|
55
|
+
* this function's rename-and-delete semantics would strip that step linkage
|
|
56
|
+
* if the key were mapped. `scenario_step_id` is intentionally absent from
|
|
57
|
+
* `LEGACY_TASK_VOCAB_KEY_MAP`, so this function leaves it intact — event-row
|
|
58
|
+
* normalization lives in `recorderEventSchema` / `eventSchema`
|
|
59
|
+
* (`./recorder-events.ts`).
|
|
60
|
+
*/
|
|
61
|
+
export declare function normalizeTaskVocabKeys(value: unknown): unknown;
|
|
62
|
+
/** Legacy criterion kind → canonical criterion kind (W3: D→code, P→model). */
|
|
63
|
+
export declare const LEGACY_CRITERION_KIND_MAP: {
|
|
64
|
+
readonly D: "code";
|
|
65
|
+
readonly P: "model";
|
|
66
|
+
};
|
package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task-vocab.js
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
/**
|
|
3
|
+
* task-vocab — the W3 "scenario → task" wire-vocabulary rename (FDRS-653).
|
|
4
|
+
*
|
|
5
|
+
* W3 decision (binding, 2026-06): everything "scenario" becomes "task" on the
|
|
6
|
+
* wire, and criterion kinds `D` / `P` become `code` / `model`. The cloud DB is
|
|
7
|
+
* already renamed (`tasks` table, `runs.task_name`); this module gives the
|
|
8
|
+
* shared trace format the same vocabulary WITHOUT breaking 0.3.0-era artifacts.
|
|
9
|
+
*
|
|
10
|
+
* Tolerant-reader contract (the 0.3.0 compatibility window):
|
|
11
|
+
* - Canonical schemas and types use the NEW vocabulary only
|
|
12
|
+
* (`task_name`, `task_hash`, `task_source`, `task_id`, `promoted_task_id`,
|
|
13
|
+
* `task_step_id`, criterion kind `code` / `model`).
|
|
14
|
+
* - Readers accept BOTH the old and the new keys and normalize to the new
|
|
15
|
+
* vocabulary at parse time. Nothing a 0.3.0-era artifact contains becomes
|
|
16
|
+
* invalid: shipped CLIs vendor shared-types 0.3.0 and keep sending
|
|
17
|
+
* `scenario_*` keys and `D` / `P` criterion kinds for at least one more
|
|
18
|
+
* release train (the CLI vendored-tarball bump rides FDRS-654/657).
|
|
19
|
+
* - When BOTH keys are present, the new key wins (a 0.5.0-aware writer is
|
|
20
|
+
* more authoritative about the canonical field than a mirrored legacy key).
|
|
21
|
+
*
|
|
22
|
+
* The window closes with the next major once no supported CLI emits the old
|
|
23
|
+
* vocabulary; removal of the aliases goes through the deprecation policy.
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* Old wire key → canonical wire key for the RENAME-on-read surfaces of the
|
|
27
|
+
* /v1 contract (run / session / result wire objects):
|
|
28
|
+
* - `scenario_name` / `scenario_hash` — Run rows + POST /v1/sessions/{id}/result
|
|
29
|
+
* - `scenario_source` / `scenario_id` — POST /v1/sessions
|
|
30
|
+
* - `promoted_scenario_id` — Run rows (M0.5 replay-loop linkage)
|
|
31
|
+
*
|
|
32
|
+
* DELIBERATELY NOT in this map: `scenario_step_id` on RecorderEvent rows
|
|
33
|
+
* (events.jsonl). The frozen v1 event row has PRESERVE semantics — the legacy
|
|
34
|
+
* key stays as-sent while readers additionally populate `task_step_id` — which
|
|
35
|
+
* is handled by the reader schemas in `./recorder-events.ts`, NOT by this
|
|
36
|
+
* delete-the-legacy-key map.
|
|
37
|
+
*/
|
|
38
|
+
export const LEGACY_TASK_VOCAB_KEY_MAP = {
|
|
39
|
+
scenario_name: "task_name",
|
|
40
|
+
scenario_hash: "task_hash",
|
|
41
|
+
scenario_source: "task_source",
|
|
42
|
+
scenario_id: "task_id",
|
|
43
|
+
promoted_scenario_id: "promoted_task_id",
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Rename legacy `scenario_*` keys on a raw wire object to their canonical
|
|
47
|
+
* `task_*` names. Non-objects pass through untouched (the wrapped schema then
|
|
48
|
+
* reports the real type error). When both the legacy and the canonical key are
|
|
49
|
+
* present the canonical value wins and the legacy key is dropped.
|
|
50
|
+
*
|
|
51
|
+
* Used as a `z.preprocess` step in front of the canonical object schemas —
|
|
52
|
+
* this is the "tolerant reader" half of the 0.3.0 compatibility window.
|
|
53
|
+
*
|
|
54
|
+
* DO NOT apply this helper to recorder-event rows (events.jsonl). Event rows
|
|
55
|
+
* require `scenario_step_id` preserved as-sent (frozen v1 trace format), and
|
|
56
|
+
* this function's rename-and-delete semantics would strip that step linkage
|
|
57
|
+
* if the key were mapped. `scenario_step_id` is intentionally absent from
|
|
58
|
+
* `LEGACY_TASK_VOCAB_KEY_MAP`, so this function leaves it intact — event-row
|
|
59
|
+
* normalization lives in `recorderEventSchema` / `eventSchema`
|
|
60
|
+
* (`./recorder-events.ts`).
|
|
61
|
+
*/
|
|
62
|
+
export function normalizeTaskVocabKeys(value) {
|
|
63
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
const record = value;
|
|
67
|
+
let out = null;
|
|
68
|
+
for (const [legacyKey, canonicalKey] of Object.entries(LEGACY_TASK_VOCAB_KEY_MAP)) {
|
|
69
|
+
if (legacyKey in record) {
|
|
70
|
+
out ??= { ...record };
|
|
71
|
+
if (!(canonicalKey in record)) {
|
|
72
|
+
out[canonicalKey] = record[legacyKey];
|
|
73
|
+
}
|
|
74
|
+
delete out[legacyKey];
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return out ?? value;
|
|
78
|
+
}
|
|
79
|
+
/** Legacy criterion kind → canonical criterion kind (W3: D→code, P→model). */
|
|
80
|
+
export const LEGACY_CRITERION_KIND_MAP = {
|
|
81
|
+
D: "code",
|
|
82
|
+
P: "model",
|
|
83
|
+
};
|
|
84
|
+
//# sourceMappingURL=task-vocab.js.map
|
package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task-vocab.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-vocab.js","sourceRoot":"","sources":["../src/task-vocab.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,aAAa,EAAE,WAAW;IAC1B,aAAa,EAAE,WAAW;IAC1B,eAAe,EAAE,aAAa;IAC9B,WAAW,EAAE,SAAS;IACtB,oBAAoB,EAAE,kBAAkB;CAChC,CAAC;AAEX;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,sBAAsB,CAAC,KAAc;IACnD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACxE,OAAO,KAAK,CAAC;IACf,CAAC;IACD,MAAM,MAAM,GAAG,KAAgC,CAAC;IAChD,IAAI,GAAG,GAAmC,IAAI,CAAC;IAC/C,KAAK,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,yBAAyB,CAAC,EAAE,CAAC;QAClF,IAAI,SAAS,IAAI,MAAM,EAAE,CAAC;YACxB,GAAG,KAAK,EAAE,GAAG,MAAM,EAAE,CAAC;YACtB,IAAI,CAAC,CAAC,YAAY,IAAI,MAAM,CAAC,EAAE,CAAC;gBAC9B,GAAG,CAAC,YAAY,CAAC,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;YACxC,CAAC;YACD,OAAO,GAAG,CAAC,SAAS,CAAC,CAAC;QACxB,CAAC;IACH,CAAC;IACD,OAAO,GAAG,IAAI,KAAK,CAAC;AACtB,CAAC;AAED,8EAA8E;AAC9E,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,OAAO;CACF,CAAC"}
|