@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,182 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
/**
|
|
3
|
+
* GitHub twin access-control catalog β cross-repo contract between
|
|
4
|
+
* `packages/twin-github` (runtime) and `pome-cloud` (dashboard toggles).
|
|
5
|
+
*
|
|
6
|
+
* Display labels follow the hosted Twins Manage UI: `{METHOD} {operation}`
|
|
7
|
+
* where `operation` is camelCase (with a few legacy aliases like `addComment`).
|
|
8
|
+
*
|
|
9
|
+
* Endpoints are grouped by functional cluster (Issues, Branches & files, β¦),
|
|
10
|
+
* aligned with the FDRS-300 hot-path expansion table β not reversible/irreversible.
|
|
11
|
+
*/
|
|
12
|
+
import { z } from "zod";
|
|
13
|
+
export const githubAccessControlCategorySchema = z.enum([
|
|
14
|
+
"issues",
|
|
15
|
+
"issue_comments",
|
|
16
|
+
"pull_requests",
|
|
17
|
+
"branches_files",
|
|
18
|
+
"commits_diffs",
|
|
19
|
+
"milestones",
|
|
20
|
+
"status_checks",
|
|
21
|
+
"tags_releases",
|
|
22
|
+
"labels",
|
|
23
|
+
"collaborators",
|
|
24
|
+
]);
|
|
25
|
+
/** Human-readable section headers for the hosted Manage UI. */
|
|
26
|
+
export const GITHUB_ACCESS_CONTROL_CATEGORY_LABELS = {
|
|
27
|
+
issues: "Issues",
|
|
28
|
+
issue_comments: "Issue comments",
|
|
29
|
+
pull_requests: "Pull requests",
|
|
30
|
+
branches_files: "Branches & files",
|
|
31
|
+
commits_diffs: "Commits & diffs",
|
|
32
|
+
milestones: "Milestones",
|
|
33
|
+
status_checks: "Status & checks",
|
|
34
|
+
tags_releases: "Tags & releases",
|
|
35
|
+
labels: "Labels",
|
|
36
|
+
collaborators: "Collaborators & identity",
|
|
37
|
+
};
|
|
38
|
+
/** Stable render order for dashboard sections. */
|
|
39
|
+
export const GITHUB_ACCESS_CONTROL_CATEGORY_ORDER = [
|
|
40
|
+
"issues",
|
|
41
|
+
"issue_comments",
|
|
42
|
+
"pull_requests",
|
|
43
|
+
"branches_files",
|
|
44
|
+
"commits_diffs",
|
|
45
|
+
"milestones",
|
|
46
|
+
"status_checks",
|
|
47
|
+
"tags_releases",
|
|
48
|
+
"labels",
|
|
49
|
+
"collaborators",
|
|
50
|
+
];
|
|
51
|
+
export const githubAccessControlEndpointSchema = z.object({
|
|
52
|
+
/** MCP tool name (snake_case). Stable id for policy storage. */
|
|
53
|
+
tool: z.string().min(1),
|
|
54
|
+
/** Dashboard label operation segment, e.g. `listIssues`. */
|
|
55
|
+
operation: z.string().min(1),
|
|
56
|
+
method: z.enum(["GET", "POST", "PUT", "PATCH", "DELETE"]),
|
|
57
|
+
category: githubAccessControlCategorySchema,
|
|
58
|
+
/** Default allow/deny when a session has no explicit override. */
|
|
59
|
+
default_allowed: z.boolean(),
|
|
60
|
+
/** FDRS-300 v2 hot-path; false for the original 25-endpoint surface. */
|
|
61
|
+
v2: z.boolean().default(false),
|
|
62
|
+
});
|
|
63
|
+
export const githubAccessControlCategoryGroupSchema = z.object({
|
|
64
|
+
category: githubAccessControlCategorySchema,
|
|
65
|
+
label: z.string().min(1),
|
|
66
|
+
endpoints: z.array(githubAccessControlEndpointSchema),
|
|
67
|
+
});
|
|
68
|
+
export const githubAccessControlCatalogSchema = z.object({
|
|
69
|
+
version: z.literal(2),
|
|
70
|
+
twin: z.literal("github"),
|
|
71
|
+
endpoints: z.array(githubAccessControlEndpointSchema).min(1),
|
|
72
|
+
categories: z.array(githubAccessControlCategoryGroupSchema).min(1),
|
|
73
|
+
});
|
|
74
|
+
function entry(tool, operation, method, category, defaultAllowed, v2 = false) {
|
|
75
|
+
return { tool, operation, method, category, default_allowed: defaultAllowed, v2 };
|
|
76
|
+
}
|
|
77
|
+
const ENDPOINTS = [
|
|
78
|
+
// Issues
|
|
79
|
+
entry("list_issues", "listIssues", "GET", "issues", true),
|
|
80
|
+
entry("get_issue", "getIssue", "GET", "issues", true),
|
|
81
|
+
entry("create_issue", "createIssue", "POST", "issues", true),
|
|
82
|
+
entry("update_issue", "updateIssue", "PATCH", "issues", true),
|
|
83
|
+
entry("add_assignees", "addAssignees", "POST", "issues", false),
|
|
84
|
+
// Issue comments
|
|
85
|
+
entry("add_issue_comment", "addComment", "POST", "issue_comments", true),
|
|
86
|
+
entry("update_issue_comment", "updateIssueComment", "PATCH", "issue_comments", true, true),
|
|
87
|
+
entry("delete_issue_comment", "deleteIssueComment", "DELETE", "issue_comments", false, true),
|
|
88
|
+
// Pull requests
|
|
89
|
+
entry("list_pull_requests", "listPullRequests", "GET", "pull_requests", true),
|
|
90
|
+
entry("get_pull_request", "getPullRequest", "GET", "pull_requests", true),
|
|
91
|
+
entry("create_pull_request", "createPullRequest", "POST", "pull_requests", true),
|
|
92
|
+
entry("update_pull_request", "updatePullRequest", "PATCH", "pull_requests", true, true),
|
|
93
|
+
entry("merge_pull_request", "mergePullRequest", "POST", "pull_requests", false),
|
|
94
|
+
entry("create_pull_request_review", "createReview", "POST", "pull_requests", false),
|
|
95
|
+
entry("get_pull_request_reviews", "getPullRequestReviews", "GET", "pull_requests", true),
|
|
96
|
+
entry("get_pull_request_comments", "getPullRequestComments", "GET", "pull_requests", true),
|
|
97
|
+
entry("get_pull_request_files", "getPullRequestFiles", "GET", "pull_requests", true),
|
|
98
|
+
entry("get_pull_request_status", "getPullRequestStatus", "GET", "pull_requests", true),
|
|
99
|
+
entry("update_pull_request_branch", "updatePullRequestBranch", "POST", "pull_requests", false),
|
|
100
|
+
entry("get_pull_request_diff", "getPullRequestDiff", "GET", "pull_requests", true, true),
|
|
101
|
+
entry("get_pull_request_commits", "getPullRequestCommits", "GET", "pull_requests", true, true),
|
|
102
|
+
entry("create_pull_request_review_comment", "createPullRequestReviewComment", "POST", "pull_requests", true, true),
|
|
103
|
+
entry("add_reply_to_pull_request_comment", "addReplyToPullRequestComment", "POST", "pull_requests", true, true),
|
|
104
|
+
// Branches & files
|
|
105
|
+
entry("create_branch", "createBranch", "POST", "branches_files", true),
|
|
106
|
+
entry("list_branches", "listBranches", "GET", "branches_files", true, true),
|
|
107
|
+
entry("get_branch", "getBranch", "GET", "branches_files", true, true),
|
|
108
|
+
entry("delete_branch", "deleteBranch", "DELETE", "branches_files", false, true),
|
|
109
|
+
entry("get_file_contents", "getContent", "GET", "branches_files", true),
|
|
110
|
+
entry("create_or_update_file", "createOrUpdateFile", "PUT", "branches_files", true),
|
|
111
|
+
entry("delete_file", "deleteFile", "DELETE", "branches_files", false, true),
|
|
112
|
+
entry("push_files", "pushFiles", "POST", "branches_files", false),
|
|
113
|
+
// Commits & diffs
|
|
114
|
+
entry("list_commits", "listCommits", "GET", "commits_diffs", true),
|
|
115
|
+
entry("get_commit", "getCommit", "GET", "commits_diffs", true, true),
|
|
116
|
+
entry("compare_commits", "compareCommits", "GET", "commits_diffs", true, true),
|
|
117
|
+
// Milestones
|
|
118
|
+
entry("list_milestones", "listMilestones", "GET", "milestones", true, true),
|
|
119
|
+
entry("create_milestone", "createMilestone", "POST", "milestones", true, true),
|
|
120
|
+
entry("update_milestone", "updateMilestone", "PATCH", "milestones", true, true),
|
|
121
|
+
entry("delete_milestone", "deleteMilestone", "DELETE", "milestones", false, true),
|
|
122
|
+
// Status & checks
|
|
123
|
+
entry("create_commit_status", "createCommitStatus", "POST", "status_checks", true, true),
|
|
124
|
+
entry("get_combined_status_for_ref", "getCombinedStatusForRef", "GET", "status_checks", true, true),
|
|
125
|
+
entry("create_check_run", "createCheckRun", "POST", "status_checks", true, true),
|
|
126
|
+
entry("list_check_runs_for_ref", "listCheckRunsForRef", "GET", "status_checks", true, true),
|
|
127
|
+
// Tags & releases
|
|
128
|
+
entry("list_tags", "listTags", "GET", "tags_releases", true, true),
|
|
129
|
+
entry("list_releases", "listReleases", "GET", "tags_releases", true, true),
|
|
130
|
+
entry("get_latest_release", "getLatestRelease", "GET", "tags_releases", true, true),
|
|
131
|
+
entry("create_release", "createRelease", "POST", "tags_releases", false, true),
|
|
132
|
+
// Labels
|
|
133
|
+
entry("create_label", "createLabel", "POST", "labels", false),
|
|
134
|
+
entry("add_issue_labels", "addIssueLabels", "POST", "labels", false),
|
|
135
|
+
entry("remove_issue_label", "removeIssueLabel", "DELETE", "labels", false),
|
|
136
|
+
// Collaborators & identity
|
|
137
|
+
entry("list_collaborators", "listCollaborators", "GET", "collaborators", true),
|
|
138
|
+
entry("get_me", "getMe", "GET", "collaborators", true, true),
|
|
139
|
+
entry("add_collaborator", "addCollaborator", "PUT", "collaborators", false, true),
|
|
140
|
+
];
|
|
141
|
+
export function groupGitHubAccessControlByCategory(endpoints = ENDPOINTS) {
|
|
142
|
+
const byCategory = new Map();
|
|
143
|
+
for (const category of GITHUB_ACCESS_CONTROL_CATEGORY_ORDER) {
|
|
144
|
+
byCategory.set(category, []);
|
|
145
|
+
}
|
|
146
|
+
for (const endpoint of endpoints) {
|
|
147
|
+
byCategory.get(endpoint.category).push(endpoint);
|
|
148
|
+
}
|
|
149
|
+
return GITHUB_ACCESS_CONTROL_CATEGORY_ORDER
|
|
150
|
+
.map((category) => ({
|
|
151
|
+
category,
|
|
152
|
+
label: GITHUB_ACCESS_CONTROL_CATEGORY_LABELS[category],
|
|
153
|
+
endpoints: byCategory.get(category),
|
|
154
|
+
}))
|
|
155
|
+
.filter((group) => group.endpoints.length > 0);
|
|
156
|
+
}
|
|
157
|
+
/** Canonical 52-endpoint sandbox catalog (25 v1 + 27 v2). */
|
|
158
|
+
export const GITHUB_ACCESS_CONTROL_CATALOG = {
|
|
159
|
+
version: 2,
|
|
160
|
+
twin: "github",
|
|
161
|
+
endpoints: ENDPOINTS,
|
|
162
|
+
categories: groupGitHubAccessControlByCategory(ENDPOINTS),
|
|
163
|
+
};
|
|
164
|
+
export function formatGitHubAccessControlLabel(endpoint) {
|
|
165
|
+
return `${endpoint.method} ${endpoint.operation}`;
|
|
166
|
+
}
|
|
167
|
+
export function summarizeGitHubAccessControlCatalog(catalog = GITHUB_ACCESS_CONTROL_CATALOG, allowedOverrides) {
|
|
168
|
+
let allowed = 0;
|
|
169
|
+
let denied = 0;
|
|
170
|
+
for (const endpoint of catalog.endpoints) {
|
|
171
|
+
const isAllowed = allowedOverrides?.has(endpoint.tool) ?? endpoint.default_allowed;
|
|
172
|
+
if (isAllowed)
|
|
173
|
+
allowed += 1;
|
|
174
|
+
else
|
|
175
|
+
denied += 1;
|
|
176
|
+
}
|
|
177
|
+
return { total: catalog.endpoints.length, allowed, denied };
|
|
178
|
+
}
|
|
179
|
+
export function githubAccessControlToolNames(catalog = GITHUB_ACCESS_CONTROL_CATALOG) {
|
|
180
|
+
return catalog.endpoints.map((endpoint) => endpoint.tool);
|
|
181
|
+
}
|
|
182
|
+
//# sourceMappingURL=github-access-control.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github-access-control.js","sourceRoot":"","sources":["../src/github-access-control.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC;;;;;;;;;GASG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,IAAI,CAAC;IACtD,QAAQ;IACR,gBAAgB;IAChB,eAAe;IACf,gBAAgB;IAChB,eAAe;IACf,YAAY;IACZ,eAAe;IACf,eAAe;IACf,QAAQ;IACR,eAAe;CAChB,CAAC,CAAC;AAGH,+DAA+D;AAC/D,MAAM,CAAC,MAAM,qCAAqC,GAAgD;IAChG,MAAM,EAAE,QAAQ;IAChB,cAAc,EAAE,gBAAgB;IAChC,aAAa,EAAE,eAAe;IAC9B,cAAc,EAAE,kBAAkB;IAClC,aAAa,EAAE,iBAAiB;IAChC,UAAU,EAAE,YAAY;IACxB,aAAa,EAAE,iBAAiB;IAChC,aAAa,EAAE,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M,IAAI,QAAQ,CAAC,SAAS,EAAE,CAAC;AACpD,CAAC;AAED,MAAM,UAAU,mCAAmC,CACjD,UAAsC,6BAA6B,EACnE,gBAAsC;IAEtC,IAAI,OAAO,GAAG,CAAC,CAAC;IAChB,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,KAAK,MAAM,QAAQ,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;QACzC,MAAM,SAAS,GAAG,gBAAgB,EAAE,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,eAAe,CAAC;QACnF,IAAI,SAAS;YAAE,OAAO,IAAI,CAAC,CAAC;;YACvB,MAAM,IAAI,CAAC,CAAC;IACnB,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,4BAA4B,CAC1C,UAAsC,6BAA6B;IAEnE,OAAO,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC5D,CAAC"}
|
package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/identity.d.ts
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const userSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
clerk_user_id: z.ZodString;
|
|
5
|
+
email: z.ZodString;
|
|
6
|
+
display_name: z.ZodNullable<z.ZodString>;
|
|
7
|
+
created_at: z.ZodString;
|
|
8
|
+
updated_at: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export type User = z.infer<typeof userSchema>;
|
|
11
|
+
export declare const planTierSchema: z.ZodEnum<{
|
|
12
|
+
free: "free";
|
|
13
|
+
hobby: "hobby";
|
|
14
|
+
pro: "pro";
|
|
15
|
+
team: "team";
|
|
16
|
+
self_host_annual: "self_host_annual";
|
|
17
|
+
enterprise: "enterprise";
|
|
18
|
+
}>;
|
|
19
|
+
export type PlanTier = z.infer<typeof planTierSchema>;
|
|
20
|
+
export declare const teamSchema: z.ZodObject<{
|
|
21
|
+
id: z.ZodString;
|
|
22
|
+
slug: z.ZodString;
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
plan_tier: z.ZodEnum<{
|
|
25
|
+
free: "free";
|
|
26
|
+
hobby: "hobby";
|
|
27
|
+
pro: "pro";
|
|
28
|
+
team: "team";
|
|
29
|
+
self_host_annual: "self_host_annual";
|
|
30
|
+
enterprise: "enterprise";
|
|
31
|
+
}>;
|
|
32
|
+
stripe_customer_id: z.ZodNullable<z.ZodString>;
|
|
33
|
+
created_at: z.ZodString;
|
|
34
|
+
updated_at: z.ZodString;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export type Team = z.infer<typeof teamSchema>;
|
|
37
|
+
export declare const teamRoleSchema: z.ZodEnum<{
|
|
38
|
+
owner: "owner";
|
|
39
|
+
admin: "admin";
|
|
40
|
+
member: "member";
|
|
41
|
+
}>;
|
|
42
|
+
export type TeamRole = z.infer<typeof teamRoleSchema>;
|
|
43
|
+
export declare const teamMemberSchema: z.ZodObject<{
|
|
44
|
+
team_id: z.ZodString;
|
|
45
|
+
user_id: z.ZodString;
|
|
46
|
+
role: z.ZodEnum<{
|
|
47
|
+
owner: "owner";
|
|
48
|
+
admin: "admin";
|
|
49
|
+
member: "member";
|
|
50
|
+
}>;
|
|
51
|
+
invited_at: z.ZodString;
|
|
52
|
+
accepted_at: z.ZodNullable<z.ZodString>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
export type TeamMember = z.infer<typeof teamMemberSchema>;
|
|
55
|
+
export declare const teamInviteSchema: z.ZodObject<{
|
|
56
|
+
id: z.ZodString;
|
|
57
|
+
team_id: z.ZodString;
|
|
58
|
+
email: z.ZodString;
|
|
59
|
+
role: z.ZodEnum<{
|
|
60
|
+
owner: "owner";
|
|
61
|
+
admin: "admin";
|
|
62
|
+
member: "member";
|
|
63
|
+
}>;
|
|
64
|
+
invited_by: z.ZodString;
|
|
65
|
+
expires_at: z.ZodString;
|
|
66
|
+
accepted_at: z.ZodNullable<z.ZodString>;
|
|
67
|
+
created_at: z.ZodString;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
export type TeamInvite = z.infer<typeof teamInviteSchema>;
|
|
70
|
+
export declare const apiKeySchema: z.ZodObject<{
|
|
71
|
+
id: z.ZodString;
|
|
72
|
+
team_id: z.ZodString;
|
|
73
|
+
name: z.ZodString;
|
|
74
|
+
created_by: z.ZodString;
|
|
75
|
+
last_used_at: z.ZodNullable<z.ZodString>;
|
|
76
|
+
created_at: z.ZodString;
|
|
77
|
+
revoked_at: z.ZodNullable<z.ZodString>;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
export type ApiKey = z.infer<typeof apiKeySchema>;
|
|
80
|
+
export declare const apiKeyCreatedSchema: z.ZodObject<{
|
|
81
|
+
id: z.ZodString;
|
|
82
|
+
team_id: z.ZodString;
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
created_by: z.ZodString;
|
|
85
|
+
last_used_at: z.ZodNullable<z.ZodString>;
|
|
86
|
+
created_at: z.ZodString;
|
|
87
|
+
revoked_at: z.ZodNullable<z.ZodString>;
|
|
88
|
+
full_key: z.ZodString;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
export type ApiKeyCreated = z.infer<typeof apiKeyCreatedSchema>;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
//
|
|
3
|
+
// shared-types Β§1 β IDENTITY. Users, teams, memberships, invites, API keys.
|
|
4
|
+
// Re-exported through the `@pome-sh/shared-types` barrel (index.ts).
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
7
|
+
// 1. IDENTITY
|
|
8
|
+
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
9
|
+
export const userSchema = z.object({
|
|
10
|
+
id: z.string(), // usr_<nanoid> (text, not uuid; per /plan-eng-review L7)
|
|
11
|
+
clerk_user_id: z.string(), // Clerk user ID (`user_*`)
|
|
12
|
+
email: z.string().email(),
|
|
13
|
+
display_name: z.string().nullable(),
|
|
14
|
+
created_at: z.string().datetime(),
|
|
15
|
+
updated_at: z.string().datetime(),
|
|
16
|
+
});
|
|
17
|
+
// FDRS-613: reconciled to pome-cloud /v1 wire truth β `hobby` and `team` were
|
|
18
|
+
// added cloud-side for the launch pricing tiers; adopted here so a cloud-issued
|
|
19
|
+
// MeResponse / UsageResponse (plan_tier) parses under the twins schema.
|
|
20
|
+
export const planTierSchema = z.enum([
|
|
21
|
+
"free",
|
|
22
|
+
"hobby",
|
|
23
|
+
"pro",
|
|
24
|
+
"team",
|
|
25
|
+
"self_host_annual",
|
|
26
|
+
"enterprise",
|
|
27
|
+
]);
|
|
28
|
+
export const teamSchema = z.object({
|
|
29
|
+
id: z.string(), // tm_<nanoid>
|
|
30
|
+
slug: z.string(), // /dashboard/[teamSlug]/...
|
|
31
|
+
name: z.string(),
|
|
32
|
+
plan_tier: planTierSchema,
|
|
33
|
+
stripe_customer_id: z.string().nullable(),
|
|
34
|
+
created_at: z.string().datetime(),
|
|
35
|
+
updated_at: z.string().datetime(),
|
|
36
|
+
});
|
|
37
|
+
export const teamRoleSchema = z.enum(["owner", "admin", "member"]);
|
|
38
|
+
export const teamMemberSchema = z.object({
|
|
39
|
+
team_id: z.string(),
|
|
40
|
+
user_id: z.string(),
|
|
41
|
+
role: teamRoleSchema,
|
|
42
|
+
invited_at: z.string().datetime(),
|
|
43
|
+
accepted_at: z.string().datetime().nullable(),
|
|
44
|
+
});
|
|
45
|
+
// Public invite shape β token is NEVER returned in API responses. The plaintext
|
|
46
|
+
// token is delivered exactly once via `createInviteResponseSchema.invite_url`
|
|
47
|
+
// (which embeds it as a path segment). Server stores only sha256(token) in
|
|
48
|
+
// `team_invites.token_hash`.
|
|
49
|
+
export const teamInviteSchema = z.object({
|
|
50
|
+
id: z.string(), // inv_<nanoid>
|
|
51
|
+
team_id: z.string(),
|
|
52
|
+
email: z.string().email(),
|
|
53
|
+
role: teamRoleSchema,
|
|
54
|
+
invited_by: z.string(), // user_id
|
|
55
|
+
expires_at: z.string().datetime(),
|
|
56
|
+
accepted_at: z.string().datetime().nullable(),
|
|
57
|
+
created_at: z.string().datetime(),
|
|
58
|
+
});
|
|
59
|
+
export const apiKeySchema = z.object({
|
|
60
|
+
id: z.string(), // pme_<short> public prefix; hashed_key NEVER appears in API responses (kept server-side only)
|
|
61
|
+
team_id: z.string(),
|
|
62
|
+
name: z.string(),
|
|
63
|
+
created_by: z.string(), // user_id
|
|
64
|
+
last_used_at: z.string().datetime().nullable(),
|
|
65
|
+
created_at: z.string().datetime(),
|
|
66
|
+
revoked_at: z.string().datetime().nullable(),
|
|
67
|
+
});
|
|
68
|
+
// One-time response shape β full key string is only in the create-response, never persisted.
|
|
69
|
+
export const apiKeyCreatedSchema = apiKeySchema.extend({
|
|
70
|
+
full_key: z.string(), // pme_<full> β show once, then redact
|
|
71
|
+
});
|
|
72
|
+
//# sourceMappingURL=identity.js.map
|
package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/identity.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity.js","sourceRoot":"","sources":["../src/identity.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,EAAE;AACF,4EAA4E;AAC5E,qEAAqE;AAErE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,gFAAgF;AAChF,cAAc;AACd,gFAAgF;AAEhF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAA+B,yDAA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AAQ,EAAE;CAC7C,CAAC,CAAC;AAGH,6FAA6F;AAC7F,MAAM,CAAC,MAAM,mBAAmB,GAAG,YAAY,CAAC,MAAM,CAAC;IACrD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,EAAyB,sCAAsC;CACpF,CAAC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* shared-types β public V1 contract barrel.
|
|
3
|
+
*
|
|
4
|
+
* Owns identity/session/task REST contracts plus re-exports for the trace
|
|
5
|
+
* surface in `recorder-events.ts`, completed-run shape in `run.ts`, and the
|
|
6
|
+
* OpenTelemetry extension surface in `otel/`. Release history and migration
|
|
7
|
+
* notes live in CHANGELOG.md.
|
|
8
|
+
*
|
|
9
|
+
* This file is a THIN BARREL (F-754): it re-exports only. The contract clusters
|
|
10
|
+
* live in topical leaf modules β identity/sessions/seed-state/task/rest/
|
|
11
|
+
* finalize-shapes/errors β each re-exported here with identical names so
|
|
12
|
+
* `import { ... } from "@pome-sh/shared-types"` is unchanged.
|
|
13
|
+
*/
|
|
14
|
+
export * from "./recorder-events.js";
|
|
15
|
+
export * from "./run.js";
|
|
16
|
+
export * from "./task-vocab.js";
|
|
17
|
+
export * from "./github-access-control.js";
|
|
18
|
+
export * from "./redaction.js";
|
|
19
|
+
export * from "./otel/index.js";
|
|
20
|
+
export * from "./identity.js";
|
|
21
|
+
export * from "./sessions.js";
|
|
22
|
+
export * from "./seed-state.js";
|
|
23
|
+
export * from "./seed-envelope.js";
|
|
24
|
+
export * from "./task.js";
|
|
25
|
+
export * from "./rest.js";
|
|
26
|
+
export * from "./finalize-shapes.js";
|
|
27
|
+
export * from "./errors.js";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
/**
|
|
3
|
+
* shared-types β public V1 contract barrel.
|
|
4
|
+
*
|
|
5
|
+
* Owns identity/session/task REST contracts plus re-exports for the trace
|
|
6
|
+
* surface in `recorder-events.ts`, completed-run shape in `run.ts`, and the
|
|
7
|
+
* OpenTelemetry extension surface in `otel/`. Release history and migration
|
|
8
|
+
* notes live in CHANGELOG.md.
|
|
9
|
+
*
|
|
10
|
+
* This file is a THIN BARREL (F-754): it re-exports only. The contract clusters
|
|
11
|
+
* live in topical leaf modules β identity/sessions/seed-state/task/rest/
|
|
12
|
+
* finalize-shapes/errors β each re-exported here with identical names so
|
|
13
|
+
* `import { ... } from "@pome-sh/shared-types"` is unchanged.
|
|
14
|
+
*/
|
|
15
|
+
// Barrel re-exports β consumers `import { ... } from "@pome-sh/shared-types"`
|
|
16
|
+
// regardless of which leaf file owns the type.
|
|
17
|
+
export * from "./recorder-events.js";
|
|
18
|
+
export * from "./run.js";
|
|
19
|
+
export * from "./task-vocab.js";
|
|
20
|
+
export * from "./github-access-control.js";
|
|
21
|
+
export * from "./redaction.js";
|
|
22
|
+
// OpenTelemetry-native trace surface (M1 / FDRS-480-482): OtelSpanEvent schema,
|
|
23
|
+
// GenAI/HTTP span mapper, legacyβspan shim, pinned semconv, otelEventSchema.
|
|
24
|
+
export * from "./otel/index.js";
|
|
25
|
+
// V1 contract clusters (F-754 split out of this file, zero behavior change):
|
|
26
|
+
export * from "./identity.js"; // Β§1 IDENTITY
|
|
27
|
+
export * from "./sessions.js"; // Β§2 SESSIONS
|
|
28
|
+
export * from "./seed-state.js"; // Β§3 TASKS β provider seed-state schemas
|
|
29
|
+
export * from "./seed-envelope.js"; // Β§3 TASKS β multi-twin seed envelope (M3)
|
|
30
|
+
export * from "./task.js"; // Β§3 TASKS β task config / task / persisted-task
|
|
31
|
+
export * from "./rest.js"; // Β§4 PUBLIC REST API (minus finalize family)
|
|
32
|
+
export * from "./finalize-shapes.js"; // Β§4 PUBLIC REST API β /finalize response family
|
|
33
|
+
export * from "./errors.js"; // Β§5 ERROR ENVELOPE
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC;;;;;;;;;;;;GAYG;AAEH,8EAA8E;AAC9E,+CAA+C;AAC/C,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gBAAgB,CAAC;AAC/B,gFAAgF;AAChF,6EAA6E;AAC7E,cAAc,iBAAiB,CAAC;AAEhC,6EAA6E;AAC7E,cAAc,eAAe,CAAC,CAAU,cAAc;AACtD,cAAc,eAAe,CAAC,CAAU,cAAc;AACtD,cAAc,iBAAiB,CAAC,CAAQ,yCAAyC;AACjF,cAAc,oBAAoB,CAAC,CAAK,2CAA2C;AACnF,cAAc,WAAW,CAAC,CAAc,iDAAiD;AACzF,cAAc,WAAW,CAAC,CAAc,6CAA6C;AACrF,cAAc,sBAAsB,CAAC,CAAG,iDAAiD;AACzF,cAAc,aAAa,CAAC,CAAY,oBAAoB"}
|