@pome-sh/cli 0.1.1 → 0.2.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/README.md +5 -6
- package/dist/build-info.json +3 -3
- package/dist/src/cli/eval.js +26 -8
- package/dist/src/cli/init-sdk.d.ts +0 -3
- package/dist/src/cli/init-sdk.js +117 -24
- package/dist/src/cli/main.js +23 -69
- package/dist/src/cli/register.d.ts +9 -0
- package/dist/src/cli/register.js +51 -5
- package/dist/src/cli/session.d.ts +7 -1
- package/dist/src/cli/session.js +87 -27
- package/dist/src/demo/runDemo.js +3 -2
- package/dist/src/hosted/client.d.ts +41 -5
- package/dist/src/hosted/client.js +333 -19
- package/dist/src/hosted/errors.d.ts +11 -1
- package/dist/src/hosted/errors.js +8 -1
- package/dist/src/hosted/evalResultView.d.ts +2 -0
- package/dist/src/hosted/evalResultView.js +22 -0
- package/dist/src/hosted/uploadAndFinalize.d.ts +18 -1
- package/dist/src/hosted/uploadAndFinalize.js +51 -3
- package/dist/src/recorder/inspect.js +20 -2
- package/dist/src/runner/mergeAdapterSignals.js +2 -2
- package/dist/src/runner/ports.js +3 -0
- package/dist/src/runner/runScenario.d.ts +79 -2
- package/dist/src/runner/runScenario.js +94 -36
- package/dist/src/runner/runScenarioHosted.d.ts +37 -0
- package/dist/src/runner/runScenarioHosted.js +257 -58
- package/dist/src/runner/runTrialGroup.d.ts +1 -3
- package/dist/src/runner/runTrialGroup.js +1 -3
- package/dist/src/scenario/parseScenario.d.ts +5 -0
- package/dist/src/scenario/parseScenario.js +135 -8
- package/dist/src/scenario/scenarioSchema.d.ts +200 -3
- package/dist/src/scenario/scenarioSchema.js +12 -1
- package/dist/src/twin/twinHarness.d.ts +10 -0
- package/dist/src/twin/twinHarness.js +6 -2
- package/dist/src/twin/twinStart.d.ts +19 -0
- package/dist/src/twin/twinStart.js +156 -0
- package/node_modules/@pome-sh/sdk/dist/fidelity-inventory.d.ts +121 -0
- package/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js +204 -0
- package/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js.map +1 -0
- package/node_modules/@pome-sh/sdk/dist/parity.d.ts +55 -0
- package/node_modules/@pome-sh/sdk/dist/parity.js +112 -0
- package/node_modules/@pome-sh/sdk/dist/parity.js.map +1 -0
- package/node_modules/@pome-sh/sdk/dist/server-helpers.d.ts +15 -0
- package/node_modules/@pome-sh/sdk/dist/server-helpers.js +96 -0
- package/node_modules/@pome-sh/sdk/dist/server-helpers.js.map +1 -1
- package/node_modules/@pome-sh/sdk/dist/server.d.ts +1 -1
- package/node_modules/@pome-sh/sdk/dist/server.js +9 -7
- package/node_modules/@pome-sh/sdk/dist/server.js.map +1 -1
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/errors.d.ts +39 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/errors.js +33 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/errors.js.map +1 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/evaluator-hooks.d.ts +13 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/evaluator-hooks.js +6 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/evaluator-hooks.js.map +1 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/finalize-shapes.d.ts +215 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js +83 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js.map +1 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/github-access-control.d.ts +175 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/github-access-control.js +182 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/github-access-control.js.map +1 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/identity.d.ts +90 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/identity.js +72 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/identity.js.map +1 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/index.d.ts +27 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/index.js +34 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/index.js.map +1 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/event-schema.d.ts +286 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/event-schema.js +33 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/event-schema.js.map +1 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.d.ts +65 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.js +455 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.js.map +1 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.d.ts +39 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.js +47 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.js.map +1 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/index.d.ts +25 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/index.js +27 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/index.js.map +1 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.d.ts +100 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js +185 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js.map +1 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/map-span.d.ts +64 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/map-span.js +112 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/map-span.js.map +1 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/nano.d.ts +26 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/nano.js +61 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/nano.js.map +1 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/project.d.ts +42 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/project.js +96 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/project.js.map +1 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/semconv.d.ts +51 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/semconv.js +74 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/semconv.js.map +1 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/span-event.d.ts +134 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/span-event.js +152 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/span-event.js.map +1 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/recorder-events.d.ts +418 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/recorder-events.js +234 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/recorder-events.js.map +1 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/redaction.d.ts +2 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/redaction.js +152 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/redaction.js.map +1 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/rest.d.ts +198 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/rest.js +225 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/rest.js.map +1 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/run.d.ts +201 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/run.js +166 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/run.js.map +1 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/seed-state.d.ts +446 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/seed-state.js +167 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/seed-state.js.map +1 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/sessions.d.ts +53 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/sessions.js +51 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/sessions.js.map +1 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/task-vocab.d.ts +66 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/task-vocab.js +84 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/task-vocab.js.map +1 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/task.d.ts +483 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/task.js +60 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/task.js.map +1 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/package.json +54 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/trace-contract.json +41 -0
- package/node_modules/@pome-sh/sdk/package.json +6 -2
- package/node_modules/@pome-sh/shared-types/dist/errors.d.ts +39 -0
- package/node_modules/@pome-sh/shared-types/dist/errors.js +33 -0
- package/node_modules/@pome-sh/shared-types/dist/errors.js.map +1 -0
- package/node_modules/@pome-sh/shared-types/dist/finalize-shapes.d.ts +252 -0
- package/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js +122 -0
- package/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js.map +1 -0
- package/node_modules/@pome-sh/shared-types/dist/identity.d.ts +90 -0
- package/node_modules/@pome-sh/shared-types/dist/identity.js +72 -0
- package/node_modules/@pome-sh/shared-types/dist/identity.js.map +1 -0
- package/node_modules/@pome-sh/shared-types/dist/index.d.ts +13 -1353
- package/node_modules/@pome-sh/shared-types/dist/index.js +14 -568
- package/node_modules/@pome-sh/shared-types/dist/index.js.map +1 -1
- package/node_modules/@pome-sh/shared-types/dist/otel/event-schema.d.ts +45 -0
- package/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js +8 -0
- package/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js.map +1 -1
- package/node_modules/@pome-sh/shared-types/dist/otel/semconv.js +7 -0
- package/node_modules/@pome-sh/shared-types/dist/otel/semconv.js.map +1 -1
- package/node_modules/@pome-sh/shared-types/dist/recorder-events.d.ts +62 -0
- package/node_modules/@pome-sh/shared-types/dist/recorder-events.js +36 -0
- package/node_modules/@pome-sh/shared-types/dist/recorder-events.js.map +1 -1
- package/node_modules/@pome-sh/shared-types/dist/rest.d.ts +245 -0
- package/node_modules/@pome-sh/shared-types/dist/rest.js +303 -0
- package/node_modules/@pome-sh/shared-types/dist/rest.js.map +1 -0
- package/node_modules/@pome-sh/shared-types/dist/run.d.ts +7 -0
- package/node_modules/@pome-sh/shared-types/dist/run.js +4 -0
- package/node_modules/@pome-sh/shared-types/dist/run.js.map +1 -1
- package/node_modules/@pome-sh/shared-types/dist/seed-envelope.d.ts +14 -0
- package/node_modules/@pome-sh/shared-types/dist/seed-envelope.js +46 -0
- package/node_modules/@pome-sh/shared-types/dist/seed-envelope.js.map +1 -0
- package/node_modules/@pome-sh/shared-types/dist/seed-state.d.ts +446 -0
- package/node_modules/@pome-sh/shared-types/dist/seed-state.js +167 -0
- package/node_modules/@pome-sh/shared-types/dist/seed-state.js.map +1 -0
- package/node_modules/@pome-sh/shared-types/dist/sessions.d.ts +53 -0
- package/node_modules/@pome-sh/shared-types/dist/sessions.js +51 -0
- package/node_modules/@pome-sh/shared-types/dist/sessions.js.map +1 -0
- package/node_modules/@pome-sh/shared-types/dist/task.d.ts +485 -0
- package/node_modules/@pome-sh/shared-types/dist/task.js +60 -0
- package/node_modules/@pome-sh/shared-types/dist/task.js.map +1 -0
- package/node_modules/@pome-sh/shared-types/package.json +2 -1
- package/node_modules/@pome-sh/shared-types/trace-contract.json +1 -1
- package/node_modules/@pome-sh/twin-github/FIDELITY.md +127 -67
- package/node_modules/@pome-sh/twin-github/README.md +3 -7
- package/node_modules/@pome-sh/twin-github/dist/examples/claude-github-agent.js +4 -20
- package/node_modules/@pome-sh/twin-github/dist/examples/claude-github-agent.js.map +1 -1
- package/node_modules/@pome-sh/twin-github/dist/src/access-control.d.ts +3 -3
- package/node_modules/@pome-sh/twin-github/dist/src/domain.d.ts +141 -3
- package/node_modules/@pome-sh/twin-github/dist/src/domain.js +0 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain.js.map +1 -1
- package/node_modules/@pome-sh/twin-github/dist/src/routes.js +2 -0
- package/node_modules/@pome-sh/twin-github/dist/src/routes.js.map +1 -1
- package/node_modules/@pome-sh/twin-github/dist/src/seed.d.ts +1 -1
- package/node_modules/@pome-sh/twin-github/dist/src/serializers.d.ts +2 -2
- package/node_modules/@pome-sh/twin-github/dist/src/server.js +7 -6
- package/node_modules/@pome-sh/twin-github/dist/src/server.js.map +1 -1
- package/node_modules/@pome-sh/twin-github/dist/src/tools.d.ts +168 -18
- package/node_modules/@pome-sh/twin-github/dist/src/tools.js +23 -0
- package/node_modules/@pome-sh/twin-github/dist/src/tools.js.map +1 -1
- package/node_modules/@pome-sh/twin-github/fidelity.inventory.json +773 -0
- package/node_modules/@pome-sh/twin-github/package.json +5 -4
- package/node_modules/@pome-sh/twin-slack/FIDELITY.md +121 -35
- package/node_modules/@pome-sh/twin-slack/README.md +2 -6
- package/node_modules/@pome-sh/twin-slack/dist/scripts/fidelity-parity.d.ts +1 -0
- package/node_modules/@pome-sh/twin-slack/dist/scripts/fidelity-parity.js +92 -0
- package/node_modules/@pome-sh/twin-slack/dist/scripts/fidelity-parity.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/dist/scripts/smoke.js +3 -3
- package/node_modules/@pome-sh/twin-slack/dist/scripts/smoke.js.map +1 -1
- package/node_modules/@pome-sh/twin-slack/dist/scripts/validate-mcp.js +1 -1
- package/node_modules/@pome-sh/twin-slack/dist/scripts/validate-mcp.js.map +1 -1
- package/node_modules/@pome-sh/twin-slack/dist/src/server.js +7 -6
- package/node_modules/@pome-sh/twin-slack/dist/src/server.js.map +1 -1
- package/node_modules/@pome-sh/twin-slack/dist/src/tools.d.ts +30 -4
- package/node_modules/@pome-sh/twin-slack/dist/src/tools.js +48 -1
- package/node_modules/@pome-sh/twin-slack/dist/src/tools.js.map +1 -1
- package/node_modules/@pome-sh/twin-slack/fidelity.inventory.json +377 -0
- package/node_modules/@pome-sh/twin-slack/package.json +5 -4
- package/node_modules/@pome-sh/twin-stripe/FIDELITY.md +151 -50
- package/node_modules/@pome-sh/twin-stripe/README.md +42 -45
- package/node_modules/@pome-sh/twin-stripe/dist/scripts/fidelity-parity.d.ts +1 -0
- package/node_modules/@pome-sh/twin-stripe/dist/scripts/fidelity-parity.js +186 -0
- package/node_modules/@pome-sh/twin-stripe/dist/scripts/fidelity-parity.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/dist/scripts/smoke.js +8 -4
- package/node_modules/@pome-sh/twin-stripe/dist/scripts/smoke.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/dist/src/db.js +26 -2
- package/node_modules/@pome-sh/twin-stripe/dist/src/db.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/billing.d.ts +101 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/billing.js +195 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/billing.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/charges.d.ts +15 -1
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/charges.js +17 -5
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/charges.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/customers.d.ts +47 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/customers.js +103 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/customers.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/events.d.ts +1 -1
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/events.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/index.d.ts +6 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/index.js +3 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/index.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/payment-intents.d.ts +61 -2
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/payment-intents.js +214 -52
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/payment-intents.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/payment-methods.d.ts +45 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/payment-methods.js +159 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/payment-methods.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/refunds.d.ts +6 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/refunds.js +16 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/refunds.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/schema.d.ts +1 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/schema.js +144 -1
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/schema.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/stripe-domain.d.ts +420 -43
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/stripe-domain.js +442 -13
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/stripe-domain.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/dist/src/errors.d.ts +19 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/errors.js +15 -1
- package/node_modules/@pome-sh/twin-stripe/dist/src/errors.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/dist/src/ids.d.ts +2 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/ids.js +2 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/ids.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/dist/src/routes/_helpers.d.ts +8 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/routes/_helpers.js +105 -1
- package/node_modules/@pome-sh/twin-stripe/dist/src/routes/_helpers.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/dist/src/routes/billing.d.ts +4 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/routes/billing.js +117 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/routes/billing.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/routes/customers.d.ts +4 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/routes/customers.js +47 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/routes/customers.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/routes/index.js +6 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/routes/index.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/dist/src/routes/payment-intents.js +28 -102
- package/node_modules/@pome-sh/twin-stripe/dist/src/routes/payment-intents.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/dist/src/routes/payment-methods.d.ts +4 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/routes/payment-methods.js +33 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/routes/payment-methods.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/seed.d.ts +10 -8
- package/node_modules/@pome-sh/twin-stripe/dist/src/seed.js +3 -2
- package/node_modules/@pome-sh/twin-stripe/dist/src/seed.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/dist/src/serializers.d.ts +181 -21
- package/node_modules/@pome-sh/twin-stripe/dist/src/serializers.js +257 -34
- package/node_modules/@pome-sh/twin-stripe/dist/src/serializers.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/dist/src/server.js +7 -6
- package/node_modules/@pome-sh/twin-stripe/dist/src/server.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/dist/src/tools.d.ts +107 -5
- package/node_modules/@pome-sh/twin-stripe/dist/src/tools.js +139 -6
- package/node_modules/@pome-sh/twin-stripe/dist/src/tools.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/dist/src/types.d.ts +73 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/upstream-types.d.ts +8 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/x402.js +6 -1
- package/node_modules/@pome-sh/twin-stripe/dist/src/x402.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/fidelity.inventory.json +425 -0
- package/node_modules/@pome-sh/twin-stripe/package.json +5 -4
- package/package.json +8 -8
- package/skills/pome-setup/SKILL.md +1 -1
|
@@ -6,10 +6,12 @@
|
|
|
6
6
|
* surface in `recorder-events.ts`, completed-run shape in `run.ts`, and the
|
|
7
7
|
* OpenTelemetry extension surface in `otel/`. Release history and migration
|
|
8
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.
|
|
9
14
|
*/
|
|
10
|
-
import { z } from "zod";
|
|
11
|
-
import { criterionResultSchema, criterionSchema, judgeModelSchema, laneSchema, stepSchema, } from "./run.js";
|
|
12
|
-
import { normalizeTaskVocabKeys } from "./task-vocab.js";
|
|
13
15
|
// Barrel re-exports — consumers `import { ... } from "@pome-sh/shared-types"`
|
|
14
16
|
// regardless of which leaf file owns the type.
|
|
15
17
|
export * from "./recorder-events.js";
|
|
@@ -20,569 +22,13 @@ export * from "./redaction.js";
|
|
|
20
22
|
// OpenTelemetry-native trace surface (M1 / FDRS-480-482): OtelSpanEvent schema,
|
|
21
23
|
// GenAI/HTTP span mapper, legacy→span shim, pinned semconv, otelEventSchema.
|
|
22
24
|
export * from "./otel/index.js";
|
|
23
|
-
//
|
|
24
|
-
// 1
|
|
25
|
-
//
|
|
26
|
-
export
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
updated_at: z.string().datetime(),
|
|
33
|
-
});
|
|
34
|
-
// FDRS-613: reconciled to pome-cloud /v1 wire truth — `hobby` and `team` were
|
|
35
|
-
// added cloud-side for the launch pricing tiers; adopted here so a cloud-issued
|
|
36
|
-
// MeResponse / UsageResponse (plan_tier) parses under the twins schema.
|
|
37
|
-
export const planTierSchema = z.enum([
|
|
38
|
-
"free",
|
|
39
|
-
"hobby",
|
|
40
|
-
"pro",
|
|
41
|
-
"team",
|
|
42
|
-
"self_host_annual",
|
|
43
|
-
"enterprise",
|
|
44
|
-
]);
|
|
45
|
-
export const teamSchema = z.object({
|
|
46
|
-
id: z.string(), // tm_<nanoid>
|
|
47
|
-
slug: z.string(), // /dashboard/[teamSlug]/...
|
|
48
|
-
name: z.string(),
|
|
49
|
-
plan_tier: planTierSchema,
|
|
50
|
-
stripe_customer_id: z.string().nullable(),
|
|
51
|
-
created_at: z.string().datetime(),
|
|
52
|
-
updated_at: z.string().datetime(),
|
|
53
|
-
});
|
|
54
|
-
export const teamRoleSchema = z.enum(["owner", "admin", "member"]);
|
|
55
|
-
export const teamMemberSchema = z.object({
|
|
56
|
-
team_id: z.string(),
|
|
57
|
-
user_id: z.string(),
|
|
58
|
-
role: teamRoleSchema,
|
|
59
|
-
invited_at: z.string().datetime(),
|
|
60
|
-
accepted_at: z.string().datetime().nullable(),
|
|
61
|
-
});
|
|
62
|
-
// Public invite shape — token is NEVER returned in API responses. The plaintext
|
|
63
|
-
// token is delivered exactly once via `createInviteResponseSchema.invite_url`
|
|
64
|
-
// (which embeds it as a path segment). Server stores only sha256(token) in
|
|
65
|
-
// `team_invites.token_hash`.
|
|
66
|
-
export const teamInviteSchema = z.object({
|
|
67
|
-
id: z.string(), // inv_<nanoid>
|
|
68
|
-
team_id: z.string(),
|
|
69
|
-
email: z.string().email(),
|
|
70
|
-
role: teamRoleSchema,
|
|
71
|
-
invited_by: z.string(), // user_id
|
|
72
|
-
expires_at: z.string().datetime(),
|
|
73
|
-
accepted_at: z.string().datetime().nullable(),
|
|
74
|
-
created_at: z.string().datetime(),
|
|
75
|
-
});
|
|
76
|
-
export const apiKeySchema = z.object({
|
|
77
|
-
id: z.string(), // pme_<short> public prefix; hashed_key NEVER appears in API responses (kept server-side only)
|
|
78
|
-
team_id: z.string(),
|
|
79
|
-
name: z.string(),
|
|
80
|
-
created_by: z.string(), // user_id
|
|
81
|
-
last_used_at: z.string().datetime().nullable(),
|
|
82
|
-
created_at: z.string().datetime(),
|
|
83
|
-
revoked_at: z.string().datetime().nullable(),
|
|
84
|
-
});
|
|
85
|
-
// One-time response shape — full key string is only in the create-response, never persisted.
|
|
86
|
-
export const apiKeyCreatedSchema = apiKeySchema.extend({
|
|
87
|
-
full_key: z.string(), // pme_<full> — show once, then redact
|
|
88
|
-
});
|
|
89
|
-
// ─────────────────────────────────────────────────────────────────────────────
|
|
90
|
-
// 2. SESSIONS
|
|
91
|
-
// ─────────────────────────────────────────────────────────────────────────────
|
|
92
|
-
// Mounted twin set — the cloud control plane's allowlist for create-session.
|
|
93
|
-
// V1 ships GitHub only end-to-end; Stripe/Slack are scaffolded in the OSS repo
|
|
94
|
-
// and reachable through the multi-twin runtime. Distinct from `KNOWN_TWIN_IDS`
|
|
95
|
-
// (re-exported from `./recorder-events.ts`) which serves dashboard-rendering
|
|
96
|
-
// pattern-matching for arbitrary `RecorderEvent.twin` values. Mirrored from
|
|
97
|
-
// pome-cloud shared-types (FDRS-613).
|
|
98
|
-
export const MOUNTED_TWINS = ["github", "stripe", "slack"];
|
|
99
|
-
export const sessionStateSchema = z.enum([
|
|
100
|
-
"provisioning",
|
|
101
|
-
"ready",
|
|
102
|
-
"running",
|
|
103
|
-
"done",
|
|
104
|
-
"expired",
|
|
105
|
-
"failed",
|
|
106
|
-
]);
|
|
107
|
-
// Internal DB row shape — includes pod_id and api_key_id which are NOT exposed publicly.
|
|
108
|
-
//
|
|
109
|
-
// Multi-twin (M3): `twins[]` is the new authoritative field. `twin_type` is kept
|
|
110
|
-
// populated as legacy = `twins[0]` for ≥1 OSS CLI release. FDRS-613: `twins`
|
|
111
|
-
// adopted from pome-cloud so a cloud-issued Session / SessionPublic parses here.
|
|
112
|
-
export const sessionSchema = z.object({
|
|
113
|
-
id: z.string(), // ses_<nanoid>
|
|
114
|
-
team_id: z.string(),
|
|
115
|
-
api_key_id: z.string().nullable(), // null if dashboard-launched
|
|
116
|
-
twin_type: z.string(), // legacy: equals twins[0] in M3+; kept for one CLI release
|
|
117
|
-
twins: z.array(z.string()).min(1), // M3: authoritative list of mounted twins for this session
|
|
118
|
-
state: sessionStateSchema,
|
|
119
|
-
twin_url: z.string().url().nullable(), // populated when state='ready'
|
|
120
|
-
pod_id: z.string().nullable(), // INTERNAL: which pool pod served — never on public API responses
|
|
121
|
-
created_at: z.string().datetime(),
|
|
122
|
-
ready_at: z.string().datetime().nullable(),
|
|
123
|
-
expires_at: z.string().datetime(), // TTL, default created_at + 30min
|
|
124
|
-
closed_at: z.string().datetime().nullable(),
|
|
125
|
-
});
|
|
126
|
-
// Public API response shape — strips internal infrastructure fields per /plan-eng-review.
|
|
127
|
-
// `GET /v1/sessions/{id}` and `GET /v1/sessions` return SessionPublic.
|
|
128
|
-
// Internal orchestrator endpoints use the full Session shape.
|
|
129
|
-
export const sessionPublicSchema = sessionSchema.omit({
|
|
130
|
-
pod_id: true,
|
|
131
|
-
api_key_id: true,
|
|
132
|
-
});
|
|
133
|
-
// ─────────────────────────────────────────────────────────────────────────────
|
|
134
|
-
// 3. TASKS (formerly "scenarios") — originally adopted verbatim from
|
|
135
|
-
// oslo/pome/src/scenario/scenarioSchema.ts
|
|
136
|
-
//
|
|
137
|
-
// W3 vocab (FDRS-653): "task" is the canonical name; the `scenario*` exports
|
|
138
|
-
// below are deprecated aliases kept for the 0.3.0 window (FDRS-654 swaps the
|
|
139
|
-
// consumers).
|
|
140
|
-
//
|
|
141
|
-
// `criterionSchema` and `judgeModelSchema` were moved to `./run.ts` (2026-05-11
|
|
142
|
-
// split) because CriterionResult depends on them; re-exported above via barrel.
|
|
143
|
-
// ─────────────────────────────────────────────────────────────────────────────
|
|
144
|
-
export const taskConfigSchema = z.object({
|
|
145
|
-
twins: z.array(z.string()).default(["github"]),
|
|
146
|
-
timeout: z.number().int().positive().default(60), // seconds
|
|
147
|
-
runs: z.number().int().positive().default(1),
|
|
148
|
-
passThreshold: z.number().min(0).max(100).default(100),
|
|
149
|
-
judge: judgeModelSchema.default("claude-haiku-4-5"), // CLI's BYOK config decides which endpoint serves this
|
|
150
|
-
});
|
|
151
|
-
/** @deprecated FDRS-653 — use `taskConfigSchema`. Removed after the 0.3.0 window. */
|
|
152
|
-
export const scenarioConfigSchema = taskConfigSchema;
|
|
153
|
-
// SeedState — adopted as-is from oslo (nested shape; matches OSS code).
|
|
154
|
-
// Future twins (Linear, Slack) will add their own seed shapes; we union those
|
|
155
|
-
// in here as the family grows.
|
|
156
|
-
//
|
|
157
|
-
// FDRS-653 (ported from pome-cloud): this schema used to model only the
|
|
158
|
-
// issue-triage subset (repositories[].{issues,labels,collaborators}). Anywhere
|
|
159
|
-
// it is used as a narrowing boundary, a field MISSING here is silently
|
|
160
|
-
// zod-stripped before it reaches the twin pod's own parseSeed — which is
|
|
161
|
-
// exactly how PR-based scenarios lost their `users`, `pull_requests`, and
|
|
162
|
-
// `files` and booted into an empty repo (the agent saw `GET /pulls → []`).
|
|
163
|
-
// The full GitHub world (top-level users, default_branch, files,
|
|
164
|
-
// pull_requests with reviews/statuses) is modeled below, matching the
|
|
165
|
-
// canonical twin-github seed shape.
|
|
166
|
-
export const githubSeedStateSchema = z.object({
|
|
167
|
-
users: z
|
|
168
|
-
.array(z.object({
|
|
169
|
-
login: z.string().min(1),
|
|
170
|
-
type: z.enum(["User", "Organization"]).default("User"),
|
|
171
|
-
name: z.string().default(""),
|
|
172
|
-
}))
|
|
173
|
-
.optional(),
|
|
174
|
-
repositories: z
|
|
175
|
-
.array(z.object({
|
|
176
|
-
owner: z.string().min(1),
|
|
177
|
-
name: z.string().min(1),
|
|
178
|
-
description: z.string().optional(),
|
|
179
|
-
default_branch: z.string().min(1).optional(),
|
|
180
|
-
labels: z
|
|
181
|
-
.array(z.object({
|
|
182
|
-
name: z.string().min(1),
|
|
183
|
-
color: z.string().default("ededed"),
|
|
184
|
-
description: z.string().default(""),
|
|
185
|
-
}))
|
|
186
|
-
.default([]),
|
|
187
|
-
collaborators: z.array(z.string().min(1)).default([]),
|
|
188
|
-
files: z
|
|
189
|
-
.array(z.object({
|
|
190
|
-
path: z.string().min(1),
|
|
191
|
-
content: z.string(),
|
|
192
|
-
branch: z.string().optional(),
|
|
193
|
-
}))
|
|
194
|
-
.optional(),
|
|
195
|
-
issues: z
|
|
196
|
-
.array(z.object({
|
|
197
|
-
number: z.number().int().positive(),
|
|
198
|
-
title: z.string().min(1),
|
|
199
|
-
body: z.string().default(""),
|
|
200
|
-
state: z.enum(["open", "closed"]).default("open"),
|
|
201
|
-
labels: z.array(z.string().min(1)).default([]),
|
|
202
|
-
assignee: z.string().nullable().default(null),
|
|
203
|
-
}))
|
|
204
|
-
.default([]),
|
|
205
|
-
pull_requests: z
|
|
206
|
-
.array(z.object({
|
|
207
|
-
number: z.number().int().positive().optional(),
|
|
208
|
-
title: z.string().min(1),
|
|
209
|
-
body: z.string().default(""),
|
|
210
|
-
head: z.string().min(1),
|
|
211
|
-
base: z.string().min(1).default("main"),
|
|
212
|
-
state: z.enum(["open", "closed"]).default("open"),
|
|
213
|
-
author: z.string().min(1).optional(),
|
|
214
|
-
// Reviews seeded on this PR. State mirrors GitHub's review state
|
|
215
|
-
// enum; author must exist in users or collaborators.
|
|
216
|
-
reviews: z
|
|
217
|
-
.array(z.object({
|
|
218
|
-
author: z.string().min(1),
|
|
219
|
-
state: z
|
|
220
|
-
.enum(["APPROVED", "CHANGES_REQUESTED", "COMMENTED"])
|
|
221
|
-
.default("APPROVED"),
|
|
222
|
-
body: z.string().default(""),
|
|
223
|
-
}))
|
|
224
|
-
.default([]),
|
|
225
|
-
// Commit statuses on the PR head SHA, wired into commit_statuses
|
|
226
|
-
// so get_pull_request_status and merge_pull_request see them.
|
|
227
|
-
statuses: z
|
|
228
|
-
.array(z.object({
|
|
229
|
-
context: z.string().min(1).default("ci/build"),
|
|
230
|
-
state: z
|
|
231
|
-
.enum(["error", "failure", "pending", "success"])
|
|
232
|
-
.default("success"),
|
|
233
|
-
description: z.string().default(""),
|
|
234
|
-
}))
|
|
235
|
-
.default([]),
|
|
236
|
-
}))
|
|
237
|
-
.optional(),
|
|
238
|
-
}))
|
|
239
|
-
.min(1),
|
|
240
|
-
});
|
|
241
|
-
export const stripeSeedStateSchema = z.object({
|
|
242
|
-
api_keys: z
|
|
243
|
-
.array(z.object({
|
|
244
|
-
key: z.string().min(1).default("sk_test_pome_default"),
|
|
245
|
-
sid: z.string().min(1).default("default"),
|
|
246
|
-
account_id: z.string().min(1).optional(),
|
|
247
|
-
}))
|
|
248
|
-
.default([]),
|
|
249
|
-
customers: z.array(z.record(z.string(), z.unknown())).default([]),
|
|
250
|
-
products: z.array(z.record(z.string(), z.unknown())).default([]),
|
|
251
|
-
prices: z.array(z.record(z.string(), z.unknown())).default([]),
|
|
252
|
-
payment_intents: z.array(z.record(z.string(), z.unknown())).default([]),
|
|
253
|
-
charges: z.array(z.record(z.string(), z.unknown())).default([]),
|
|
254
|
-
events: z.array(z.record(z.string(), z.unknown())).default([]),
|
|
255
|
-
balances: z.array(z.record(z.string(), z.unknown())).default([]),
|
|
256
|
-
});
|
|
257
|
-
export const slackSeedStateSchema = z.object({
|
|
258
|
-
team: z
|
|
259
|
-
.object({
|
|
260
|
-
id: z.string().regex(/^T[A-Z0-9_]+$/).optional(),
|
|
261
|
-
name: z.string().default("Pome Twin Workspace"),
|
|
262
|
-
domain: z.string().default("pome-twin"),
|
|
263
|
-
})
|
|
264
|
-
.prefault({}),
|
|
265
|
-
users: z
|
|
266
|
-
.array(z.object({
|
|
267
|
-
id: z.string().regex(/^[UB][A-Z0-9_]+$/).optional(),
|
|
268
|
-
name: z.string().min(1),
|
|
269
|
-
real_name: z.string().default(""),
|
|
270
|
-
email: z.string().email().optional(),
|
|
271
|
-
is_bot: z.boolean().default(false),
|
|
272
|
-
is_admin: z.boolean().default(false),
|
|
273
|
-
tz: z.string().default("America/Los_Angeles"),
|
|
274
|
-
profile: z.record(z.string(), z.unknown()).default({}),
|
|
275
|
-
}))
|
|
276
|
-
.default([]),
|
|
277
|
-
channels: z
|
|
278
|
-
.array(z.object({
|
|
279
|
-
id: z.string().regex(/^[CGDM][A-Z0-9_]+$/).optional(),
|
|
280
|
-
name: z.string().regex(/^[a-z0-9_-]{1,80}$/),
|
|
281
|
-
is_private: z.boolean().default(false),
|
|
282
|
-
topic: z.string().default(""),
|
|
283
|
-
purpose: z.string().default(""),
|
|
284
|
-
creator: z.string().optional(),
|
|
285
|
-
members: z.array(z.string()).default([]),
|
|
286
|
-
messages: z
|
|
287
|
-
.array(z.object({
|
|
288
|
-
ts: z.string().optional(),
|
|
289
|
-
user: z.string(),
|
|
290
|
-
text: z.string(),
|
|
291
|
-
thread_ts: z.string().optional(),
|
|
292
|
-
reactions: z
|
|
293
|
-
.array(z.object({ name: z.string(), user: z.string() }))
|
|
294
|
-
.default([]),
|
|
295
|
-
}))
|
|
296
|
-
.default([]),
|
|
297
|
-
}))
|
|
298
|
-
.default([]),
|
|
299
|
-
});
|
|
300
|
-
export const providerScopedSeedStateSchema = z
|
|
301
|
-
.object({
|
|
302
|
-
github: z.object({ seed: githubSeedStateSchema }).optional(),
|
|
303
|
-
stripe: z.object({ seed: stripeSeedStateSchema }).optional(),
|
|
304
|
-
slack: z.object({ seed: slackSeedStateSchema }).optional(),
|
|
305
|
-
})
|
|
306
|
-
.refine((value) => Boolean(value.github || value.stripe || value.slack), {
|
|
307
|
-
message: "seedState must include github.seed, stripe.seed, slack.seed, or the legacy GitHub seed shape",
|
|
308
|
-
});
|
|
309
|
-
// SeedState accepts the legacy GitHub shape and the provider-scoped shape
|
|
310
|
-
// used by GitHub + Stripe scenario templates.
|
|
311
|
-
export const seedStateSchema = z.union([githubSeedStateSchema, providerScopedSeedStateSchema]);
|
|
312
|
-
// The parsed task (formerly "scenario") markdown shape. Criterion kinds inside
|
|
313
|
-
// `criteria` normalize D→code, P→model (tolerant reader, FDRS-653).
|
|
314
|
-
export const taskSchema = z.object({
|
|
315
|
-
slug: z.string().min(1),
|
|
316
|
-
title: z.string().min(1),
|
|
317
|
-
setup: z.string().default(""), // human-readable prose; ignored at runtime
|
|
318
|
-
prompt: z.string().min(1),
|
|
319
|
-
expectedBehavior: z.string().default(""), // evaluator-only, NEVER sent to agent
|
|
320
|
-
criteria: z.array(criterionSchema).min(1),
|
|
321
|
-
config: taskConfigSchema,
|
|
322
|
-
seedState: seedStateSchema,
|
|
323
|
-
});
|
|
324
|
-
/** @deprecated FDRS-653 — use `taskSchema`. Removed after the 0.3.0 window. */
|
|
325
|
-
export const scenarioSchema = taskSchema;
|
|
326
|
-
// Persisted Task row (dashboard upload path; cloud DB `tasks` table). Per
|
|
327
|
-
// 04-data-model.md. Row ids keep the historical `scn_` prefix (persisted data;
|
|
328
|
-
// renaming ids is a data migration, deliberately NOT part of FDRS-653).
|
|
329
|
-
export const persistedTaskSchema = z.object({
|
|
330
|
-
id: z.string(), // scn_<nanoid>
|
|
331
|
-
team_id: z.string(),
|
|
332
|
-
name: z.string(),
|
|
333
|
-
source: z.string(), // raw markdown
|
|
334
|
-
source_hash: z.string(), // sha256(source)
|
|
335
|
-
uploaded_by: z.string(), // user_id
|
|
336
|
-
created_at: z.string().datetime(),
|
|
337
|
-
archived_at: z.string().datetime().nullable(),
|
|
338
|
-
});
|
|
339
|
-
/** @deprecated FDRS-653 — use `persistedTaskSchema`. Removed after the 0.3.0 window. */
|
|
340
|
-
export const persistedScenarioSchema = persistedTaskSchema;
|
|
341
|
-
// ─────────────────────────────────────────────────────────────────────────────
|
|
342
|
-
// 4. PUBLIC REST API (api.pome.sh/v1) request/response shapes
|
|
343
|
-
// ─────────────────────────────────────────────────────────────────────────────
|
|
344
|
-
// GET /v1/me
|
|
345
|
-
export const meResponseSchema = z.object({
|
|
346
|
-
user: userSchema.pick({ id: true, email: true }),
|
|
347
|
-
team: teamSchema.pick({ id: true, slug: true, plan_tier: true }),
|
|
348
|
-
api_key: apiKeySchema.pick({ id: true, name: true }),
|
|
349
|
-
});
|
|
350
|
-
// POST /v1/sessions
|
|
351
|
-
//
|
|
352
|
-
// W3 vocab (FDRS-653): `task_source` / `task_id` are canonical; the exported
|
|
353
|
-
// schema wraps this object in the tolerant-reader preprocess so 0.3.0 CLIs
|
|
354
|
-
// sending `scenario_source` / `scenario_id` keep working unchanged.
|
|
355
|
-
const createSessionRequestObjectSchema = z
|
|
356
|
-
.object({
|
|
357
|
-
twins: z.array(z.string()).min(1).default(["github"]),
|
|
358
|
-
task_source: z.string().optional(), // base64-encoded UTF-8 markdown; 0.3.0 alias: scenario_source
|
|
359
|
-
task_id: z.string().optional(), // alternative: stored task; 0.3.0 alias: scenario_id
|
|
360
|
-
// FDRS-580 / ADR-015 (adopted from pome-cloud, FDRS-613): the seed override
|
|
361
|
-
// is a PERMISSIVE, shape-blind boundary. The twin pod's own `parseSeed` is
|
|
362
|
-
// the sole authority on the seed's domain shape; the cloud forwards it
|
|
363
|
-
// verbatim. `z.record` keeps the one invariant that is the boundary's
|
|
364
|
-
// business — "the seed is a JSON object" — while forwarding every domain
|
|
365
|
-
// field, known or not, untouched. Do NOT re-narrow to `seedStateSchema`
|
|
366
|
-
// here: a narrow `.object()` strips unknown keys, which is how PR-based
|
|
367
|
-
// scenarios lost their `users` / `pull_requests` / `files`.
|
|
368
|
-
seed: z.record(z.string(), z.unknown()).optional(), // optional override
|
|
369
|
-
// M3: client-supplied UUID v4 used for 30s server-side dedupe of
|
|
370
|
-
// POST /v1/sessions. The dashboard generates one per Start-button click;
|
|
371
|
-
// legacy clients work without it.
|
|
372
|
-
idempotency_key: z.string().uuid().optional(),
|
|
373
|
-
// M3 / FDRS-636: client-minted trial-group identity — `pome run -n k`
|
|
374
|
-
// (and `pome demo`) stamp one id per invocation, shared by all k trial
|
|
375
|
-
// sessions. The cloud copies it onto sessions.group_id at mint and onto
|
|
376
|
-
// runs.group_id at finalize; the demo/eval mints already accept the same
|
|
377
|
-
// field. Format mirrors the cloud's GROUP_ID_RE. Legacy clients omit it.
|
|
378
|
-
group_id: z.string().regex(/^[A-Za-z0-9_-]{6,64}$/).optional(),
|
|
379
|
-
})
|
|
380
|
-
.refine((v) => Boolean(v.task_source) !== Boolean(v.task_id), { message: "Provide exactly one of task_source or task_id (scenario_source / scenario_id are accepted 0.3.0 aliases)" });
|
|
381
|
-
// Tolerant reader (FDRS-653): accepts both vocabularies, normalizes to task_*.
|
|
382
|
-
export const createSessionRequestSchema = z.preprocess(normalizeTaskVocabKeys, createSessionRequestObjectSchema);
|
|
383
|
-
function normalizeCreateSessionResponse(value) {
|
|
384
|
-
if (value === null || typeof value !== "object" || Array.isArray(value)) {
|
|
385
|
-
return value;
|
|
386
|
-
}
|
|
387
|
-
const record = value;
|
|
388
|
-
if (typeof record.session_id !== "string" ||
|
|
389
|
-
typeof record.twin_url !== "string" ||
|
|
390
|
-
typeof record.openapi_url !== "string") {
|
|
391
|
-
return value;
|
|
392
|
-
}
|
|
393
|
-
let twin = "github";
|
|
394
|
-
try {
|
|
395
|
-
const [, parsedTwin] = new URL(record.twin_url).pathname.split("/");
|
|
396
|
-
if (parsedTwin !== undefined && parsedTwin.length > 0)
|
|
397
|
-
twin = parsedTwin;
|
|
398
|
-
}
|
|
399
|
-
catch {
|
|
400
|
-
// Schema validation below will report the invalid URL.
|
|
401
|
-
}
|
|
402
|
-
const apiUrl = record.twin_url;
|
|
403
|
-
const mcpUrl = typeof apiUrl === "string" && apiUrl.startsWith("https://api.pome.sh/")
|
|
404
|
-
? apiUrl.replace("https://api.pome.sh/", "https://mcp.pome.sh/")
|
|
405
|
-
: apiUrl;
|
|
406
|
-
return {
|
|
407
|
-
...record,
|
|
408
|
-
session_token: record.session_token ?? record.session_id,
|
|
409
|
-
per_twin: record.per_twin ??
|
|
410
|
-
{
|
|
411
|
-
[twin]: {
|
|
412
|
-
api_url: apiUrl,
|
|
413
|
-
mcp_url: mcpUrl,
|
|
414
|
-
openapi_url: record.openapi_url,
|
|
415
|
-
},
|
|
416
|
-
},
|
|
417
|
-
};
|
|
418
|
-
}
|
|
419
|
-
// M3 response shape: one session, N twins, one set of URLs per twin under
|
|
420
|
-
// `per_twin{}`. Legacy single-twin fields `twin_url` + `openapi_url` continue
|
|
421
|
-
// to be populated as `per_twin[twins[0]].api_url` / `.openapi_url` for ≥1 OSS
|
|
422
|
-
// CLI release. `session_token` is the public token used in URLs — same value as
|
|
423
|
-
// `session_id` in V1, but named separately so URL-shaped consumers stop reading
|
|
424
|
-
// internal-id-shaped fields. Both `session_token` and `per_twin` reconciled
|
|
425
|
-
// from pome-cloud /v1 wire truth (FDRS-613).
|
|
426
|
-
export const createSessionResponseSchema = z.preprocess(normalizeCreateSessionResponse, z.object({
|
|
427
|
-
session_id: z.string(),
|
|
428
|
-
session_token: z.string(), // = session_id in V1; public URL token
|
|
429
|
-
twin_url: z.string().url(), // legacy: = per_twin[twins[0]].api_url
|
|
430
|
-
expires_at: z.string().datetime(),
|
|
431
|
-
agent_token: z.string(), // edt_<jwt>; SENSITIVE — never log; CLI memory only; bearer scoped to session TTL
|
|
432
|
-
provider_credentials: z
|
|
433
|
-
.object({
|
|
434
|
-
github: z
|
|
435
|
-
.object({
|
|
436
|
-
token: z.string(),
|
|
437
|
-
header: z.literal("Authorization"),
|
|
438
|
-
scheme: z.literal("Bearer"),
|
|
439
|
-
})
|
|
440
|
-
.optional(),
|
|
441
|
-
stripe: z
|
|
442
|
-
.object({
|
|
443
|
-
api_key: z.string(),
|
|
444
|
-
header: z.literal("Authorization"),
|
|
445
|
-
scheme: z.literal("Bearer"),
|
|
446
|
-
})
|
|
447
|
-
.optional(),
|
|
448
|
-
slack: z
|
|
449
|
-
.object({
|
|
450
|
-
token: z.string(),
|
|
451
|
-
header: z.literal("Authorization"),
|
|
452
|
-
scheme: z.literal("Bearer"),
|
|
453
|
-
})
|
|
454
|
-
.optional(),
|
|
455
|
-
})
|
|
456
|
-
.default({}),
|
|
457
|
-
openapi_url: z.string().url(), // legacy: = per_twin[twins[0]].openapi_url
|
|
458
|
-
per_twin: z.record(z.string(), z.object({
|
|
459
|
-
api_url: z.string().url(), // api.pome.sh/<twin>/<session_token>
|
|
460
|
-
mcp_url: z.string().url(), // mcp.pome.sh/<twin>/<session_token> (501 stub in V1)
|
|
461
|
-
openapi_url: z.string().url(),
|
|
462
|
-
})),
|
|
463
|
-
}));
|
|
464
|
-
// POST /v1/sessions/{id}/result — SYNCHRONOUS. CLI scores locally (BYOK Flavor #1) then POSTs.
|
|
465
|
-
//
|
|
466
|
-
// Cloud never sees the customer's LLM key, never invokes any LLM provider,
|
|
467
|
-
// never holds `agent_stdout` (which would contain the agent's prompts and
|
|
468
|
-
// completions). Trace blobs (twin's HTTP request/response captures) ARE
|
|
469
|
-
// uploaded — those are the agent's tool calls against the twin, not LLM data.
|
|
470
|
-
//
|
|
471
|
-
// (Cloud-side note: cloud V1 treats /result as a legacy shim — new CLIs upload
|
|
472
|
-
// blobs via presigned URLs and call /finalize with ADR-013's managed judge.
|
|
473
|
-
// The shape below stays the wire contract either way.)
|
|
474
|
-
//
|
|
475
|
-
// W3 vocab (FDRS-653): `task_name` / `task_hash` canonical; the exported
|
|
476
|
-
// schema accepts 0.3.0 CLIs' `scenario_name` / `scenario_hash` and criterion
|
|
477
|
-
// kinds D/P inside `criteria_results`, normalizing both.
|
|
478
|
-
const submitResultRequestObjectSchema = z.object({
|
|
479
|
-
task_name: z.string(), // 0.3.0 alias: scenario_name
|
|
480
|
-
task_hash: z.string(), // 0.3.0 alias: scenario_hash
|
|
481
|
-
duration_ms: z.number().int(),
|
|
482
|
-
agent_model: z.string(),
|
|
483
|
-
// CLI-computed scoring fields (server-trusted; under BYOK there's nothing
|
|
484
|
-
// billing-sensitive to spoof — we don't bill on judge cost):
|
|
485
|
-
satisfaction_score: z.number().int().min(0).max(100),
|
|
486
|
-
criteria_results: z.array(criterionResultSchema),
|
|
487
|
-
judge_model: judgeModelSchema,
|
|
488
|
-
judge_tokens_in: z.number().int().min(0).nullable(),
|
|
489
|
-
judge_tokens_out: z.number().int().min(0).nullable(),
|
|
490
|
-
// Correlator output + fix-prompt from CLI (post-M3i). Defaults supplied for
|
|
491
|
-
// backward compat during the M3i rollout — older CLIs that omit these still
|
|
492
|
-
// submit successfully and the run lands as a "legacy" row (empty lanes/steps,
|
|
493
|
-
// null fix_prompt). When all CLIs are M3i+, tighten by removing defaults.
|
|
494
|
-
lanes: z.array(laneSchema).default([]),
|
|
495
|
-
steps: z.array(stepSchema).default([]),
|
|
496
|
-
fix_prompt: z.string().nullable().default(null),
|
|
497
|
-
// FDRS-357 (adopted from pome-cloud, FDRS-613): storage key (NOT URL) returned
|
|
498
|
-
// by POST /v1/sessions/:id/result-upload-url. Null on upload failure
|
|
499
|
-
// (best-effort), --no-upload opt-out, or pre-FDRS-357 CLI.
|
|
500
|
-
events_jsonl_url: z.string().nullable().default(null),
|
|
501
|
-
// Trace blobs — safe to upload (HTTP between agent and twin, not LLM prompts):
|
|
502
|
-
trace_jsonl_b64: z.string(),
|
|
503
|
-
state_initial_json_b64: z.string(),
|
|
504
|
-
state_final_json_b64: z.string(),
|
|
505
|
-
// NOTE: agent_stdout is intentionally NOT in this request. Cloud never
|
|
506
|
-
// receives the agent's prompts or completions. The CLI uses agent_stdout
|
|
507
|
-
// locally for the [model] judge then discards it.
|
|
508
|
-
});
|
|
509
|
-
// Tolerant reader (FDRS-653): accepts both vocabularies, normalizes to task_*.
|
|
510
|
-
export const submitResultRequestSchema = z.preprocess(normalizeTaskVocabKeys, submitResultRequestObjectSchema);
|
|
511
|
-
export const submitResultResponseSchema = z.object({
|
|
512
|
-
run_id: z.string(),
|
|
513
|
-
dashboard_url: z.string().url(),
|
|
514
|
-
});
|
|
515
|
-
// POST /v1/eval-sessions — mints a twin-less session for `pome eval <run-dir>`.
|
|
516
|
-
export const createEvalSessionResponseSchema = z.object({
|
|
517
|
-
session_id: z.string(),
|
|
518
|
-
expires_at: z.string(),
|
|
519
|
-
});
|
|
520
|
-
// /v1/sessions/:id/finalize — ADR-013 managed-judge response.
|
|
521
|
-
export const finalizeResponseSchema = z.object({
|
|
522
|
-
run_id: z.string(),
|
|
523
|
-
score: z.number().int().min(0).max(100),
|
|
524
|
-
judge_model: z.string().nullable().optional(),
|
|
525
|
-
dashboard_url: z.string().url(),
|
|
526
|
-
criteria_results: z.array(criterionResultSchema).optional(),
|
|
527
|
-
});
|
|
528
|
-
export const criterionDefSchema = z.object({
|
|
529
|
-
id: z.string().min(1),
|
|
530
|
-
text: z.string().min(1),
|
|
531
|
-
kind: z.enum(["D", "P"]),
|
|
532
|
-
});
|
|
533
|
-
// GET /v1/usage — live concurrent-session quota snapshot.
|
|
534
|
-
// FDRS-613: `sessions_remaining` tightened to `.int().min(0)` to match the
|
|
535
|
-
// pome-cloud /v1 wire truth (cloud clamps remaining at 0 rather than exposing
|
|
536
|
-
// negative overage on this live snapshot).
|
|
537
|
-
export const usageResponseSchema = z.object({
|
|
538
|
-
period_start: z.string().datetime(),
|
|
539
|
-
period_end: z.string().datetime(),
|
|
540
|
-
sessions_used: z.number().int().min(0),
|
|
541
|
-
sessions_quota: z.number().int().min(0),
|
|
542
|
-
sessions_remaining: z.number().int().min(0),
|
|
543
|
-
plan_tier: planTierSchema,
|
|
544
|
-
});
|
|
545
|
-
// POST /v1/teams/{id}/invites
|
|
546
|
-
export const createInviteRequestSchema = z.object({
|
|
547
|
-
email: z.string().email(),
|
|
548
|
-
role: teamRoleSchema.default("member"),
|
|
549
|
-
});
|
|
550
|
-
export const createInviteResponseSchema = z.object({
|
|
551
|
-
invite: teamInviteSchema,
|
|
552
|
-
invite_url: z.string().url(), // "https://pome.sh/invites/<token>"
|
|
553
|
-
});
|
|
554
|
-
// POST /v1/invites/{token}/accept (cloud surface: dashboard tRPC invites.accept)
|
|
555
|
-
export const acceptInviteRequestSchema = z.object({
|
|
556
|
-
token: z.string().min(16),
|
|
557
|
-
});
|
|
558
|
-
export const acceptInviteResponseSchema = z.object({
|
|
559
|
-
team_id: z.string(),
|
|
560
|
-
role: teamRoleSchema,
|
|
561
|
-
});
|
|
562
|
-
// ─────────────────────────────────────────────────────────────────────────────
|
|
563
|
-
// 5. ERROR ENVELOPE (public REST)
|
|
564
|
-
// ─────────────────────────────────────────────────────────────────────────────
|
|
565
|
-
export const apiErrorTypeSchema = z.enum([
|
|
566
|
-
"invalid_auth",
|
|
567
|
-
"revoked_key",
|
|
568
|
-
"forbidden", // 403 non-auth permission denial
|
|
569
|
-
"quota_exceeded",
|
|
570
|
-
"validation_failed",
|
|
571
|
-
"not_found",
|
|
572
|
-
"session_expired", // distinct from not_found for CLI UX
|
|
573
|
-
"conflict", // 409 (uniqueness, etc.)
|
|
574
|
-
"rate_limited",
|
|
575
|
-
"internal_error",
|
|
576
|
-
"endpoint_not_implemented",
|
|
577
|
-
"downstream_unavailable",
|
|
578
|
-
]);
|
|
579
|
-
export const apiErrorSchema = z.object({
|
|
580
|
-
error: z.object({
|
|
581
|
-
type: apiErrorTypeSchema,
|
|
582
|
-
message: z.string(),
|
|
583
|
-
details: z.record(z.string(), z.unknown()).optional(),
|
|
584
|
-
documentation_url: z.string().url().optional(),
|
|
585
|
-
request_id: z.string(),
|
|
586
|
-
}),
|
|
587
|
-
});
|
|
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
|
|
588
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources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