@pome-sh/cli 0.1.0 → 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/doctor/checks.js +2 -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/db.d.ts +4 -4
- package/node_modules/@pome-sh/sdk/dist/db.js +93 -25
- package/node_modules/@pome-sh/sdk/dist/db.js.map +1 -1
- 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 +7 -7
- 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 +5 -8
- 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 -5
- 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.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 -5
- package/node_modules/@pome-sh/twin-stripe/FIDELITY.md +151 -50
- package/node_modules/@pome-sh/twin-stripe/README.md +44 -47
- 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 -5
- package/package.json +9 -10
- package/skills/pome-setup/SKILL.md +1 -1
- package/dist/src/recorder/verdictArtifact.d.ts +0 -71
- package/dist/src/recorder/verdictArtifact.js +0 -207
- package/dist/src/score/view.d.ts +0 -38
- package/dist/src/score/view.js +0 -59
- package/dist/src/twin/github/app.d.ts +0 -10
- package/dist/src/twin/github/app.js +0 -316
- package/dist/src/twin/github/db/migrations.d.ts +0 -2
- package/dist/src/twin/github/db/migrations.js +0 -64
- package/dist/src/twin/github/db/openDatabase.d.ts +0 -2
- package/dist/src/twin/github/db/openDatabase.js +0 -13
- package/dist/src/twin/github/db/queries.d.ts +0 -77
- package/dist/src/twin/github/db/queries.js +0 -93
- package/dist/src/twin/github/domain/seed.d.ts +0 -74
- package/dist/src/twin/github/domain/seed.js +0 -104
- package/dist/src/twin/github/domain/serializers.d.ts +0 -113
- package/dist/src/twin/github/domain/serializers.js +0 -76
- package/dist/src/twin/github/types.d.ts +0 -66
- package/dist/src/twin/github/types.js +0 -1
- package/dist/src/twin-github/app.d.ts +0 -9
- package/dist/src/twin-github/app.js +0 -327
- package/dist/src/twin-github/auth.d.ts +0 -16
- package/dist/src/twin-github/auth.js +0 -142
- package/dist/src/twin-github/build-info.d.ts +0 -7
- package/dist/src/twin-github/build-info.js +0 -52
- package/dist/src/twin-github/db.d.ts +0 -4
- package/dist/src/twin-github/db.js +0 -362
- package/dist/src/twin-github/domain.d.ts +0 -1649
- package/dist/src/twin-github/domain.js +0 -957
- package/dist/src/twin-github/errors.d.ts +0 -14
- package/dist/src/twin-github/errors.js +0 -34
- package/dist/src/twin-github/index.d.ts +0 -9
- package/dist/src/twin-github/index.js +0 -7
- package/dist/src/twin-github/mcp.d.ts +0 -17
- package/dist/src/twin-github/mcp.js +0 -281
- package/dist/src/twin-github/recorder.d.ts +0 -2
- package/dist/src/twin-github/recorder.js +0 -29
- package/dist/src/twin-github/seed.d.ts +0 -74
- package/dist/src/twin-github/seed.js +0 -107
- package/dist/src/twin-github/serializers.d.ts +0 -449
- package/dist/src/twin-github/serializers.js +0 -429
- package/dist/src/twin-github/server.js +0 -34
- package/dist/src/twin-github/tools.d.ts +0 -1545
- package/dist/src/twin-github/tools.js +0 -347
- package/dist/src/twin-github/types.d.ts +0 -198
- package/dist/src/twin-github/unsupported-envelope.d.ts +0 -10
- package/dist/src/twin-github/unsupported-envelope.js +0 -29
- package/dist/src/twin-github/util.d.ts +0 -13
- package/dist/src/twin-github/util.js +0 -61
- package/dist/src/twin-slack/app.d.ts +0 -17
- package/dist/src/twin-slack/app.js +0 -683
- package/dist/src/twin-slack/auth.d.ts +0 -38
- package/dist/src/twin-slack/auth.js +0 -219
- package/dist/src/twin-slack/build-info.d.ts +0 -7
- package/dist/src/twin-slack/build-info.js +0 -9
- package/dist/src/twin-slack/db.d.ts +0 -4
- package/dist/src/twin-slack/db.js +0 -213
- package/dist/src/twin-slack/domain.d.ts +0 -236
- package/dist/src/twin-slack/domain.js +0 -1293
- package/dist/src/twin-slack/errors.d.ts +0 -16
- package/dist/src/twin-slack/errors.js +0 -60
- package/dist/src/twin-slack/index.d.ts +0 -8
- package/dist/src/twin-slack/index.js +0 -8
- package/dist/src/twin-slack/mcp.d.ts +0 -17
- package/dist/src/twin-slack/mcp.js +0 -226
- package/dist/src/twin-slack/recorder.d.ts +0 -2
- package/dist/src/twin-slack/recorder.js +0 -15
- package/dist/src/twin-slack/seed.d.ts +0 -49
- package/dist/src/twin-slack/seed.js +0 -139
- package/dist/src/twin-slack/serializers.d.ts +0 -141
- package/dist/src/twin-slack/serializers.js +0 -377
- package/dist/src/twin-slack/tools.d.ts +0 -97
- package/dist/src/twin-slack/tools.js +0 -171
- package/dist/src/twin-slack/types.d.ts +0 -164
- package/dist/src/twin-slack/types.js +0 -1
- package/dist/src/twin-slack/unsupported-envelope.d.ts +0 -12
- package/dist/src/twin-slack/unsupported-envelope.js +0 -61
- package/dist/src/twin-slack/upstream-types.d.ts +0 -19
- package/dist/src/twin-slack/upstream-types.js +0 -1
- package/dist/src/twin-slack/util.d.ts +0 -31
- package/dist/src/twin-slack/util.js +0 -136
- package/node_modules/base64-js/LICENSE +0 -21
- package/node_modules/base64-js/README.md +0 -34
- package/node_modules/base64-js/base64js.min.js +0 -1
- package/node_modules/base64-js/index.d.ts +0 -3
- package/node_modules/base64-js/index.js +0 -150
- package/node_modules/base64-js/package.json +0 -47
- package/node_modules/better-sqlite3/LICENSE +0 -21
- package/node_modules/better-sqlite3/README.md +0 -99
- package/node_modules/better-sqlite3/binding.gyp +0 -38
- package/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
- package/node_modules/better-sqlite3/deps/common.gypi +0 -68
- package/node_modules/better-sqlite3/deps/copy.js +0 -31
- package/node_modules/better-sqlite3/deps/defines.gypi +0 -42
- package/node_modules/better-sqlite3/deps/download.sh +0 -123
- package/node_modules/better-sqlite3/deps/patches/1208.patch +0 -15
- package/node_modules/better-sqlite3/deps/sqlite3/sqlite3.c +0 -269395
- package/node_modules/better-sqlite3/deps/sqlite3/sqlite3.h +0 -14347
- package/node_modules/better-sqlite3/deps/sqlite3/sqlite3ext.h +0 -739
- package/node_modules/better-sqlite3/deps/sqlite3.gyp +0 -80
- package/node_modules/better-sqlite3/deps/test_extension.c +0 -21
- package/node_modules/better-sqlite3/lib/database.js +0 -90
- package/node_modules/better-sqlite3/lib/index.js +0 -3
- package/node_modules/better-sqlite3/lib/methods/aggregate.js +0 -43
- package/node_modules/better-sqlite3/lib/methods/backup.js +0 -67
- package/node_modules/better-sqlite3/lib/methods/function.js +0 -31
- package/node_modules/better-sqlite3/lib/methods/inspect.js +0 -7
- package/node_modules/better-sqlite3/lib/methods/pragma.js +0 -12
- package/node_modules/better-sqlite3/lib/methods/serialize.js +0 -16
- package/node_modules/better-sqlite3/lib/methods/table.js +0 -189
- package/node_modules/better-sqlite3/lib/methods/transaction.js +0 -78
- package/node_modules/better-sqlite3/lib/methods/wrappers.js +0 -54
- package/node_modules/better-sqlite3/lib/sqlite-error.js +0 -20
- package/node_modules/better-sqlite3/lib/util.js +0 -12
- package/node_modules/better-sqlite3/package.json +0 -59
- package/node_modules/better-sqlite3/src/addon.cpp +0 -47
- package/node_modules/better-sqlite3/src/better_sqlite3.cpp +0 -74
- package/node_modules/better-sqlite3/src/objects/backup.cpp +0 -120
- package/node_modules/better-sqlite3/src/objects/backup.hpp +0 -36
- package/node_modules/better-sqlite3/src/objects/database.cpp +0 -417
- package/node_modules/better-sqlite3/src/objects/database.hpp +0 -103
- package/node_modules/better-sqlite3/src/objects/statement-iterator.cpp +0 -113
- package/node_modules/better-sqlite3/src/objects/statement-iterator.hpp +0 -50
- package/node_modules/better-sqlite3/src/objects/statement.cpp +0 -383
- package/node_modules/better-sqlite3/src/objects/statement.hpp +0 -58
- package/node_modules/better-sqlite3/src/util/bind-map.cpp +0 -73
- package/node_modules/better-sqlite3/src/util/binder.cpp +0 -193
- package/node_modules/better-sqlite3/src/util/constants.cpp +0 -172
- package/node_modules/better-sqlite3/src/util/custom-aggregate.cpp +0 -121
- package/node_modules/better-sqlite3/src/util/custom-function.cpp +0 -59
- package/node_modules/better-sqlite3/src/util/custom-table.cpp +0 -409
- package/node_modules/better-sqlite3/src/util/data-converter.cpp +0 -17
- package/node_modules/better-sqlite3/src/util/data.cpp +0 -194
- package/node_modules/better-sqlite3/src/util/helpers.cpp +0 -109
- package/node_modules/better-sqlite3/src/util/macros.cpp +0 -90
- package/node_modules/better-sqlite3/src/util/query-macros.cpp +0 -71
- package/node_modules/better-sqlite3/src/util/row-builder.cpp +0 -49
- package/node_modules/bindings/LICENSE.md +0 -22
- package/node_modules/bindings/README.md +0 -98
- package/node_modules/bindings/bindings.js +0 -221
- package/node_modules/bindings/package.json +0 -28
- package/node_modules/bl/.travis.yml +0 -17
- package/node_modules/bl/BufferList.js +0 -396
- package/node_modules/bl/LICENSE.md +0 -13
- package/node_modules/bl/README.md +0 -247
- package/node_modules/bl/bl.js +0 -84
- package/node_modules/bl/package.json +0 -37
- package/node_modules/bl/test/convert.js +0 -21
- package/node_modules/bl/test/indexOf.js +0 -492
- package/node_modules/bl/test/isBufferList.js +0 -32
- package/node_modules/bl/test/test.js +0 -869
- package/node_modules/buffer/AUTHORS.md +0 -70
- package/node_modules/buffer/LICENSE +0 -21
- package/node_modules/buffer/README.md +0 -410
- package/node_modules/buffer/index.d.ts +0 -186
- package/node_modules/buffer/index.js +0 -1817
- package/node_modules/buffer/package.json +0 -96
- package/node_modules/chownr/LICENSE +0 -15
- package/node_modules/chownr/README.md +0 -3
- package/node_modules/chownr/chownr.js +0 -167
- package/node_modules/chownr/package.json +0 -29
- package/node_modules/decompress-response/index.d.ts +0 -22
- package/node_modules/decompress-response/index.js +0 -58
- package/node_modules/decompress-response/license +0 -9
- package/node_modules/decompress-response/package.json +0 -56
- package/node_modules/decompress-response/readme.md +0 -48
- package/node_modules/deep-extend/CHANGELOG.md +0 -46
- package/node_modules/deep-extend/LICENSE +0 -20
- package/node_modules/deep-extend/README.md +0 -91
- package/node_modules/deep-extend/index.js +0 -1
- package/node_modules/deep-extend/lib/deep-extend.js +0 -150
- package/node_modules/deep-extend/package.json +0 -62
- package/node_modules/detect-libc/LICENSE +0 -201
- package/node_modules/detect-libc/README.md +0 -163
- package/node_modules/detect-libc/index.d.ts +0 -14
- package/node_modules/detect-libc/lib/detect-libc.js +0 -313
- package/node_modules/detect-libc/lib/elf.js +0 -39
- package/node_modules/detect-libc/lib/filesystem.js +0 -51
- package/node_modules/detect-libc/lib/process.js +0 -24
- package/node_modules/detect-libc/package.json +0 -44
- package/node_modules/end-of-stream/LICENSE +0 -21
- package/node_modules/end-of-stream/README.md +0 -54
- package/node_modules/end-of-stream/index.js +0 -96
- package/node_modules/end-of-stream/package.json +0 -37
- package/node_modules/expand-template/.travis.yml +0 -6
- package/node_modules/expand-template/LICENSE +0 -21
- package/node_modules/expand-template/README.md +0 -43
- package/node_modules/expand-template/index.js +0 -26
- package/node_modules/expand-template/package.json +0 -29
- package/node_modules/expand-template/test.js +0 -67
- package/node_modules/file-uri-to-path/.npmignore +0 -1
- package/node_modules/file-uri-to-path/.travis.yml +0 -30
- package/node_modules/file-uri-to-path/History.md +0 -21
- package/node_modules/file-uri-to-path/LICENSE +0 -20
- package/node_modules/file-uri-to-path/README.md +0 -74
- package/node_modules/file-uri-to-path/index.d.ts +0 -2
- package/node_modules/file-uri-to-path/index.js +0 -66
- package/node_modules/file-uri-to-path/package.json +0 -32
- package/node_modules/file-uri-to-path/test/test.js +0 -24
- package/node_modules/file-uri-to-path/test/tests.json +0 -13
- package/node_modules/fs-constants/LICENSE +0 -21
- package/node_modules/fs-constants/README.md +0 -26
- package/node_modules/fs-constants/browser.js +0 -1
- package/node_modules/fs-constants/index.js +0 -1
- package/node_modules/fs-constants/package.json +0 -19
- package/node_modules/github-from-package/.travis.yml +0 -4
- package/node_modules/github-from-package/LICENSE +0 -18
- package/node_modules/github-from-package/example/package.json +0 -8
- package/node_modules/github-from-package/example/url.js +0 -3
- package/node_modules/github-from-package/index.js +0 -17
- package/node_modules/github-from-package/package.json +0 -30
- package/node_modules/github-from-package/readme.markdown +0 -53
- package/node_modules/github-from-package/test/a.json +0 -8
- package/node_modules/github-from-package/test/b.json +0 -5
- package/node_modules/github-from-package/test/c.json +0 -5
- package/node_modules/github-from-package/test/d.json +0 -7
- package/node_modules/github-from-package/test/e.json +0 -5
- package/node_modules/github-from-package/test/url.js +0 -19
- package/node_modules/ieee754/LICENSE +0 -11
- package/node_modules/ieee754/README.md +0 -51
- package/node_modules/ieee754/index.d.ts +0 -10
- package/node_modules/ieee754/index.js +0 -85
- package/node_modules/ieee754/package.json +0 -52
- package/node_modules/inherits/LICENSE +0 -16
- package/node_modules/inherits/README.md +0 -42
- package/node_modules/inherits/inherits.js +0 -9
- package/node_modules/inherits/inherits_browser.js +0 -27
- package/node_modules/inherits/package.json +0 -29
- package/node_modules/ini/LICENSE +0 -15
- package/node_modules/ini/README.md +0 -102
- package/node_modules/ini/ini.js +0 -206
- package/node_modules/ini/package.json +0 -33
- package/node_modules/mimic-response/index.d.ts +0 -17
- package/node_modules/mimic-response/index.js +0 -77
- package/node_modules/mimic-response/license +0 -9
- package/node_modules/mimic-response/package.json +0 -42
- package/node_modules/mimic-response/readme.md +0 -78
- package/node_modules/minimist/.eslintrc +0 -29
- package/node_modules/minimist/.github/FUNDING.yml +0 -12
- package/node_modules/minimist/.nycrc +0 -14
- package/node_modules/minimist/CHANGELOG.md +0 -298
- package/node_modules/minimist/LICENSE +0 -18
- package/node_modules/minimist/README.md +0 -121
- package/node_modules/minimist/example/parse.js +0 -4
- package/node_modules/minimist/index.js +0 -263
- package/node_modules/minimist/package.json +0 -75
- package/node_modules/minimist/test/all_bool.js +0 -34
- package/node_modules/minimist/test/bool.js +0 -177
- package/node_modules/minimist/test/dash.js +0 -43
- package/node_modules/minimist/test/default_bool.js +0 -37
- package/node_modules/minimist/test/dotted.js +0 -24
- package/node_modules/minimist/test/kv_short.js +0 -32
- package/node_modules/minimist/test/long.js +0 -33
- package/node_modules/minimist/test/num.js +0 -38
- package/node_modules/minimist/test/parse.js +0 -209
- package/node_modules/minimist/test/parse_modified.js +0 -11
- package/node_modules/minimist/test/proto.js +0 -64
- package/node_modules/minimist/test/short.js +0 -69
- package/node_modules/minimist/test/stop_early.js +0 -17
- package/node_modules/minimist/test/unknown.js +0 -104
- package/node_modules/minimist/test/whitespace.js +0 -10
- package/node_modules/mkdirp-classic/LICENSE +0 -21
- package/node_modules/mkdirp-classic/README.md +0 -18
- package/node_modules/mkdirp-classic/index.js +0 -98
- package/node_modules/mkdirp-classic/package.json +0 -18
- package/node_modules/napi-build-utils/.github/workflows/run-npm-tests.yml +0 -31
- package/node_modules/napi-build-utils/LICENSE +0 -21
- package/node_modules/napi-build-utils/README.md +0 -52
- package/node_modules/napi-build-utils/index.js +0 -214
- package/node_modules/napi-build-utils/index.md +0 -0
- package/node_modules/napi-build-utils/package.json +0 -42
- package/node_modules/node-abi/LICENSE +0 -21
- package/node_modules/node-abi/README.md +0 -54
- package/node_modules/node-abi/abi_registry.json +0 -453
- package/node_modules/node-abi/index.js +0 -179
- package/node_modules/node-abi/package.json +0 -45
- package/node_modules/once/LICENSE +0 -15
- package/node_modules/once/README.md +0 -79
- package/node_modules/once/once.js +0 -42
- package/node_modules/once/package.json +0 -33
- package/node_modules/prebuild-install/CHANGELOG.md +0 -131
- package/node_modules/prebuild-install/CONTRIBUTING.md +0 -6
- package/node_modules/prebuild-install/LICENSE +0 -21
- package/node_modules/prebuild-install/README.md +0 -163
- package/node_modules/prebuild-install/asset.js +0 -44
- package/node_modules/prebuild-install/bin.js +0 -78
- package/node_modules/prebuild-install/download.js +0 -142
- package/node_modules/prebuild-install/error.js +0 -14
- package/node_modules/prebuild-install/help.txt +0 -16
- package/node_modules/prebuild-install/index.js +0 -1
- package/node_modules/prebuild-install/log.js +0 -33
- package/node_modules/prebuild-install/package.json +0 -67
- package/node_modules/prebuild-install/proxy.js +0 -35
- package/node_modules/prebuild-install/rc.js +0 -64
- package/node_modules/prebuild-install/util.js +0 -143
- package/node_modules/pump/.github/FUNDING.yml +0 -2
- package/node_modules/pump/.travis.yml +0 -5
- package/node_modules/pump/LICENSE +0 -21
- package/node_modules/pump/README.md +0 -74
- package/node_modules/pump/SECURITY.md +0 -5
- package/node_modules/pump/empty.js +0 -1
- package/node_modules/pump/index.js +0 -86
- package/node_modules/pump/package.json +0 -30
- package/node_modules/pump/test-browser.js +0 -66
- package/node_modules/pump/test-node.js +0 -53
- package/node_modules/rc/LICENSE.APACHE2 +0 -15
- package/node_modules/rc/LICENSE.BSD +0 -26
- package/node_modules/rc/LICENSE.MIT +0 -24
- package/node_modules/rc/README.md +0 -227
- package/node_modules/rc/browser.js +0 -7
- package/node_modules/rc/cli.js +0 -4
- package/node_modules/rc/index.js +0 -53
- package/node_modules/rc/lib/utils.js +0 -104
- package/node_modules/rc/package.json +0 -29
- package/node_modules/rc/test/ini.js +0 -16
- package/node_modules/rc/test/nested-env-vars.js +0 -50
- package/node_modules/rc/test/test.js +0 -59
- package/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/node_modules/readable-stream/LICENSE +0 -47
- package/node_modules/readable-stream/README.md +0 -106
- package/node_modules/readable-stream/errors-browser.js +0 -127
- package/node_modules/readable-stream/errors.js +0 -116
- package/node_modules/readable-stream/experimentalWarning.js +0 -17
- package/node_modules/readable-stream/lib/_stream_duplex.js +0 -126
- package/node_modules/readable-stream/lib/_stream_passthrough.js +0 -37
- package/node_modules/readable-stream/lib/_stream_readable.js +0 -1027
- package/node_modules/readable-stream/lib/_stream_transform.js +0 -190
- package/node_modules/readable-stream/lib/_stream_writable.js +0 -641
- package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -180
- package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -183
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -96
- package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -86
- package/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
- package/node_modules/readable-stream/lib/internal/streams/from.js +0 -52
- package/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -86
- package/node_modules/readable-stream/lib/internal/streams/state.js +0 -22
- package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/node_modules/readable-stream/package.json +0 -68
- package/node_modules/readable-stream/readable-browser.js +0 -9
- package/node_modules/readable-stream/readable.js +0 -16
- package/node_modules/safe-buffer/LICENSE +0 -21
- package/node_modules/safe-buffer/README.md +0 -584
- package/node_modules/safe-buffer/index.d.ts +0 -187
- package/node_modules/safe-buffer/index.js +0 -65
- package/node_modules/safe-buffer/package.json +0 -51
- package/node_modules/semver/LICENSE +0 -15
- package/node_modules/semver/README.md +0 -680
- package/node_modules/semver/bin/semver.js +0 -195
- package/node_modules/semver/classes/comparator.js +0 -143
- package/node_modules/semver/classes/index.js +0 -7
- package/node_modules/semver/classes/range.js +0 -577
- package/node_modules/semver/classes/semver.js +0 -350
- package/node_modules/semver/functions/clean.js +0 -8
- package/node_modules/semver/functions/cmp.js +0 -54
- package/node_modules/semver/functions/coerce.js +0 -62
- package/node_modules/semver/functions/compare-build.js +0 -9
- package/node_modules/semver/functions/compare-loose.js +0 -5
- package/node_modules/semver/functions/compare.js +0 -7
- package/node_modules/semver/functions/diff.js +0 -60
- package/node_modules/semver/functions/eq.js +0 -5
- package/node_modules/semver/functions/gt.js +0 -5
- package/node_modules/semver/functions/gte.js +0 -5
- package/node_modules/semver/functions/inc.js +0 -21
- package/node_modules/semver/functions/lt.js +0 -5
- package/node_modules/semver/functions/lte.js +0 -5
- package/node_modules/semver/functions/major.js +0 -5
- package/node_modules/semver/functions/minor.js +0 -5
- package/node_modules/semver/functions/neq.js +0 -5
- package/node_modules/semver/functions/parse.js +0 -18
- package/node_modules/semver/functions/patch.js +0 -5
- package/node_modules/semver/functions/prerelease.js +0 -8
- package/node_modules/semver/functions/rcompare.js +0 -5
- package/node_modules/semver/functions/rsort.js +0 -5
- package/node_modules/semver/functions/satisfies.js +0 -12
- package/node_modules/semver/functions/sort.js +0 -5
- package/node_modules/semver/functions/truncate.js +0 -48
- package/node_modules/semver/functions/valid.js +0 -8
- package/node_modules/semver/index.js +0 -93
- package/node_modules/semver/internal/constants.js +0 -37
- package/node_modules/semver/internal/debug.js +0 -11
- package/node_modules/semver/internal/identifiers.js +0 -29
- package/node_modules/semver/internal/lrucache.js +0 -42
- package/node_modules/semver/internal/parse-options.js +0 -17
- package/node_modules/semver/internal/re.js +0 -223
- package/node_modules/semver/package.json +0 -78
- package/node_modules/semver/preload.js +0 -4
- package/node_modules/semver/range.bnf +0 -17
- package/node_modules/semver/ranges/gtr.js +0 -6
- package/node_modules/semver/ranges/intersects.js +0 -9
- package/node_modules/semver/ranges/ltr.js +0 -6
- package/node_modules/semver/ranges/max-satisfying.js +0 -27
- package/node_modules/semver/ranges/min-satisfying.js +0 -26
- package/node_modules/semver/ranges/min-version.js +0 -63
- package/node_modules/semver/ranges/outside.js +0 -82
- package/node_modules/semver/ranges/simplify.js +0 -49
- package/node_modules/semver/ranges/subset.js +0 -249
- package/node_modules/semver/ranges/to-comparators.js +0 -10
- package/node_modules/semver/ranges/valid.js +0 -13
- package/node_modules/simple-concat/.travis.yml +0 -3
- package/node_modules/simple-concat/LICENSE +0 -20
- package/node_modules/simple-concat/README.md +0 -44
- package/node_modules/simple-concat/index.js +0 -15
- package/node_modules/simple-concat/package.json +0 -47
- package/node_modules/simple-concat/test/basic.js +0 -41
- package/node_modules/simple-get/.github/dependabot.yml +0 -15
- package/node_modules/simple-get/.github/workflows/ci.yml +0 -23
- package/node_modules/simple-get/LICENSE +0 -20
- package/node_modules/simple-get/README.md +0 -333
- package/node_modules/simple-get/index.js +0 -108
- package/node_modules/simple-get/package.json +0 -67
- package/node_modules/string_decoder/LICENSE +0 -48
- package/node_modules/string_decoder/README.md +0 -47
- package/node_modules/string_decoder/lib/string_decoder.js +0 -296
- package/node_modules/string_decoder/package.json +0 -34
- package/node_modules/strip-json-comments/index.js +0 -70
- package/node_modules/strip-json-comments/license +0 -21
- package/node_modules/strip-json-comments/package.json +0 -42
- package/node_modules/strip-json-comments/readme.md +0 -64
- package/node_modules/tar-fs/.travis.yml +0 -6
- package/node_modules/tar-fs/LICENSE +0 -21
- package/node_modules/tar-fs/README.md +0 -165
- package/node_modules/tar-fs/index.js +0 -392
- package/node_modules/tar-fs/package.json +0 -46
- package/node_modules/tar-fs/test/fixtures/a/hello.txt +0 -1
- package/node_modules/tar-fs/test/fixtures/b/a/test.txt +0 -1
- package/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
- package/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
- package/node_modules/tar-fs/test/fixtures/e/file +0 -0
- package/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
- package/node_modules/tar-fs/test/index.js +0 -457
- package/node_modules/tar-stream/LICENSE +0 -21
- package/node_modules/tar-stream/README.md +0 -168
- package/node_modules/tar-stream/extract.js +0 -257
- package/node_modules/tar-stream/headers.js +0 -295
- package/node_modules/tar-stream/index.js +0 -2
- package/node_modules/tar-stream/pack.js +0 -255
- package/node_modules/tar-stream/package.json +0 -58
- package/node_modules/tar-stream/sandbox.js +0 -11
- package/node_modules/tunnel-agent/LICENSE +0 -55
- package/node_modules/tunnel-agent/README.md +0 -4
- package/node_modules/tunnel-agent/index.js +0 -244
- package/node_modules/tunnel-agent/package.json +0 -22
- package/node_modules/util-deprecate/History.md +0 -16
- package/node_modules/util-deprecate/LICENSE +0 -24
- package/node_modules/util-deprecate/README.md +0 -53
- package/node_modules/util-deprecate/browser.js +0 -67
- package/node_modules/util-deprecate/node.js +0 -6
- package/node_modules/util-deprecate/package.json +0 -27
- package/node_modules/wrappy/LICENSE +0 -15
- package/node_modules/wrappy/README.md +0 -36
- package/node_modules/wrappy/package.json +0 -29
- package/node_modules/wrappy/wrappy.js +0 -33
- /package/{dist/src/twin-github/server.d.ts → node_modules/@pome-sh/twin-slack/dist/scripts/fidelity-parity.d.ts} +0 -0
- /package/{dist/src/twin-github/types.js → node_modules/@pome-sh/twin-stripe/dist/scripts/fidelity-parity.d.ts} +0 -0
package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finalize-shapes.js","sourceRoot":"","sources":["../src/finalize-shapes.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,EAAE;AACF,8EAA8E;AAC9E,2EAA2E;AAC3E,gFAAgF;AAChF,6CAA6C;A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M,CAAC;IACzD,GAAG,4BAA4B;IAC/B,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;IAC3B,KAAK,EAAE,0BAA0B;CAClC,CAAC,CAAC,MAAM,EAAE,CAAC;AAKZ,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5D,GAAG,4BAA4B;IAC/B,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;IAC9B,MAAM,EAAE,sBAAsB;CAC/B,CAAC,CAAC,MAAM,EAAE,CAAC;AAKZ,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IACzE,kCAAkC;IAClC,mCAAmC;IACnC,kCAAkC;IAClC,qCAAqC;CACtC,CAAC,CAAC;AAKH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC;IACnD,sBAAsB;IACtB,8BAA8B;CAC/B,CAAC,CAAC"}
|
package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/github-access-control.d.ts
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GitHub twin access-control catalog — cross-repo contract between
|
|
3
|
+
* `packages/twin-github` (runtime) and `pome-cloud` (dashboard toggles).
|
|
4
|
+
*
|
|
5
|
+
* Display labels follow the hosted Twins Manage UI: `{METHOD} {operation}`
|
|
6
|
+
* where `operation` is camelCase (with a few legacy aliases like `addComment`).
|
|
7
|
+
*
|
|
8
|
+
* Endpoints are grouped by functional cluster (Issues, Branches & files, …),
|
|
9
|
+
* aligned with the FDRS-300 hot-path expansion table — not reversible/irreversible.
|
|
10
|
+
*/
|
|
11
|
+
import { z } from "zod";
|
|
12
|
+
export declare const githubAccessControlCategorySchema: z.ZodEnum<{
|
|
13
|
+
issues: "issues";
|
|
14
|
+
issue_comments: "issue_comments";
|
|
15
|
+
pull_requests: "pull_requests";
|
|
16
|
+
branches_files: "branches_files";
|
|
17
|
+
commits_diffs: "commits_diffs";
|
|
18
|
+
milestones: "milestones";
|
|
19
|
+
status_checks: "status_checks";
|
|
20
|
+
tags_releases: "tags_releases";
|
|
21
|
+
labels: "labels";
|
|
22
|
+
collaborators: "collaborators";
|
|
23
|
+
}>;
|
|
24
|
+
export type GitHubAccessControlCategory = z.infer<typeof githubAccessControlCategorySchema>;
|
|
25
|
+
/** Human-readable section headers for the hosted Manage UI. */
|
|
26
|
+
export declare const GITHUB_ACCESS_CONTROL_CATEGORY_LABELS: Record<GitHubAccessControlCategory, string>;
|
|
27
|
+
/** Stable render order for dashboard sections. */
|
|
28
|
+
export declare const GITHUB_ACCESS_CONTROL_CATEGORY_ORDER: GitHubAccessControlCategory[];
|
|
29
|
+
export declare const githubAccessControlEndpointSchema: z.ZodObject<{
|
|
30
|
+
tool: z.ZodString;
|
|
31
|
+
operation: z.ZodString;
|
|
32
|
+
method: z.ZodEnum<{
|
|
33
|
+
GET: "GET";
|
|
34
|
+
POST: "POST";
|
|
35
|
+
PUT: "PUT";
|
|
36
|
+
PATCH: "PATCH";
|
|
37
|
+
DELETE: "DELETE";
|
|
38
|
+
}>;
|
|
39
|
+
category: z.ZodEnum<{
|
|
40
|
+
issues: "issues";
|
|
41
|
+
issue_comments: "issue_comments";
|
|
42
|
+
pull_requests: "pull_requests";
|
|
43
|
+
branches_files: "branches_files";
|
|
44
|
+
commits_diffs: "commits_diffs";
|
|
45
|
+
milestones: "milestones";
|
|
46
|
+
status_checks: "status_checks";
|
|
47
|
+
tags_releases: "tags_releases";
|
|
48
|
+
labels: "labels";
|
|
49
|
+
collaborators: "collaborators";
|
|
50
|
+
}>;
|
|
51
|
+
default_allowed: z.ZodBoolean;
|
|
52
|
+
v2: z.ZodDefault<z.ZodBoolean>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
export type GitHubAccessControlEndpoint = z.infer<typeof githubAccessControlEndpointSchema>;
|
|
55
|
+
export declare const githubAccessControlCategoryGroupSchema: z.ZodObject<{
|
|
56
|
+
category: z.ZodEnum<{
|
|
57
|
+
issues: "issues";
|
|
58
|
+
issue_comments: "issue_comments";
|
|
59
|
+
pull_requests: "pull_requests";
|
|
60
|
+
branches_files: "branches_files";
|
|
61
|
+
commits_diffs: "commits_diffs";
|
|
62
|
+
milestones: "milestones";
|
|
63
|
+
status_checks: "status_checks";
|
|
64
|
+
tags_releases: "tags_releases";
|
|
65
|
+
labels: "labels";
|
|
66
|
+
collaborators: "collaborators";
|
|
67
|
+
}>;
|
|
68
|
+
label: z.ZodString;
|
|
69
|
+
endpoints: z.ZodArray<z.ZodObject<{
|
|
70
|
+
tool: z.ZodString;
|
|
71
|
+
operation: z.ZodString;
|
|
72
|
+
method: z.ZodEnum<{
|
|
73
|
+
GET: "GET";
|
|
74
|
+
POST: "POST";
|
|
75
|
+
PUT: "PUT";
|
|
76
|
+
PATCH: "PATCH";
|
|
77
|
+
DELETE: "DELETE";
|
|
78
|
+
}>;
|
|
79
|
+
category: z.ZodEnum<{
|
|
80
|
+
issues: "issues";
|
|
81
|
+
issue_comments: "issue_comments";
|
|
82
|
+
pull_requests: "pull_requests";
|
|
83
|
+
branches_files: "branches_files";
|
|
84
|
+
commits_diffs: "commits_diffs";
|
|
85
|
+
milestones: "milestones";
|
|
86
|
+
status_checks: "status_checks";
|
|
87
|
+
tags_releases: "tags_releases";
|
|
88
|
+
labels: "labels";
|
|
89
|
+
collaborators: "collaborators";
|
|
90
|
+
}>;
|
|
91
|
+
default_allowed: z.ZodBoolean;
|
|
92
|
+
v2: z.ZodDefault<z.ZodBoolean>;
|
|
93
|
+
}, z.core.$strip>>;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
export type GitHubAccessControlCategoryGroup = z.infer<typeof githubAccessControlCategoryGroupSchema>;
|
|
96
|
+
export declare const githubAccessControlCatalogSchema: z.ZodObject<{
|
|
97
|
+
version: z.ZodLiteral<2>;
|
|
98
|
+
twin: z.ZodLiteral<"github">;
|
|
99
|
+
endpoints: z.ZodArray<z.ZodObject<{
|
|
100
|
+
tool: z.ZodString;
|
|
101
|
+
operation: z.ZodString;
|
|
102
|
+
method: z.ZodEnum<{
|
|
103
|
+
GET: "GET";
|
|
104
|
+
POST: "POST";
|
|
105
|
+
PUT: "PUT";
|
|
106
|
+
PATCH: "PATCH";
|
|
107
|
+
DELETE: "DELETE";
|
|
108
|
+
}>;
|
|
109
|
+
category: z.ZodEnum<{
|
|
110
|
+
issues: "issues";
|
|
111
|
+
issue_comments: "issue_comments";
|
|
112
|
+
pull_requests: "pull_requests";
|
|
113
|
+
branches_files: "branches_files";
|
|
114
|
+
commits_diffs: "commits_diffs";
|
|
115
|
+
milestones: "milestones";
|
|
116
|
+
status_checks: "status_checks";
|
|
117
|
+
tags_releases: "tags_releases";
|
|
118
|
+
labels: "labels";
|
|
119
|
+
collaborators: "collaborators";
|
|
120
|
+
}>;
|
|
121
|
+
default_allowed: z.ZodBoolean;
|
|
122
|
+
v2: z.ZodDefault<z.ZodBoolean>;
|
|
123
|
+
}, z.core.$strip>>;
|
|
124
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
125
|
+
category: z.ZodEnum<{
|
|
126
|
+
issues: "issues";
|
|
127
|
+
issue_comments: "issue_comments";
|
|
128
|
+
pull_requests: "pull_requests";
|
|
129
|
+
branches_files: "branches_files";
|
|
130
|
+
commits_diffs: "commits_diffs";
|
|
131
|
+
milestones: "milestones";
|
|
132
|
+
status_checks: "status_checks";
|
|
133
|
+
tags_releases: "tags_releases";
|
|
134
|
+
labels: "labels";
|
|
135
|
+
collaborators: "collaborators";
|
|
136
|
+
}>;
|
|
137
|
+
label: z.ZodString;
|
|
138
|
+
endpoints: z.ZodArray<z.ZodObject<{
|
|
139
|
+
tool: z.ZodString;
|
|
140
|
+
operation: z.ZodString;
|
|
141
|
+
method: z.ZodEnum<{
|
|
142
|
+
GET: "GET";
|
|
143
|
+
POST: "POST";
|
|
144
|
+
PUT: "PUT";
|
|
145
|
+
PATCH: "PATCH";
|
|
146
|
+
DELETE: "DELETE";
|
|
147
|
+
}>;
|
|
148
|
+
category: z.ZodEnum<{
|
|
149
|
+
issues: "issues";
|
|
150
|
+
issue_comments: "issue_comments";
|
|
151
|
+
pull_requests: "pull_requests";
|
|
152
|
+
branches_files: "branches_files";
|
|
153
|
+
commits_diffs: "commits_diffs";
|
|
154
|
+
milestones: "milestones";
|
|
155
|
+
status_checks: "status_checks";
|
|
156
|
+
tags_releases: "tags_releases";
|
|
157
|
+
labels: "labels";
|
|
158
|
+
collaborators: "collaborators";
|
|
159
|
+
}>;
|
|
160
|
+
default_allowed: z.ZodBoolean;
|
|
161
|
+
v2: z.ZodDefault<z.ZodBoolean>;
|
|
162
|
+
}, z.core.$strip>>;
|
|
163
|
+
}, z.core.$strip>>;
|
|
164
|
+
}, z.core.$strip>;
|
|
165
|
+
export type GitHubAccessControlCatalog = z.infer<typeof githubAccessControlCatalogSchema>;
|
|
166
|
+
export declare function groupGitHubAccessControlByCategory(endpoints?: GitHubAccessControlEndpoint[]): GitHubAccessControlCategoryGroup[];
|
|
167
|
+
/** Canonical 52-endpoint sandbox catalog (25 v1 + 27 v2). */
|
|
168
|
+
export declare const GITHUB_ACCESS_CONTROL_CATALOG: GitHubAccessControlCatalog;
|
|
169
|
+
export declare function formatGitHubAccessControlLabel(endpoint: GitHubAccessControlEndpoint): string;
|
|
170
|
+
export declare function summarizeGitHubAccessControlCatalog(catalog?: GitHubAccessControlCatalog, allowedOverrides?: ReadonlySet<string>): {
|
|
171
|
+
total: number;
|
|
172
|
+
allowed: number;
|
|
173
|
+
denied: number;
|
|
174
|
+
};
|
|
175
|
+
export declare function githubAccessControlToolNames(catalog?: GitHubAccessControlCatalog): string[];
|
package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/github-access-control.js
ADDED
|
@@ -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,iBAAiB;IAChC,MAAM,EAAE,QAAQ;IAChB,aAAa,EAAE,0BAA0B;CAC1C,CAAC;AAEF,kDAAkD;AAClD,MAAM,CAAC,MAAM,oCAAoC,GAAkC;IACjF,QAAQ;IACR,gBAAgB;IAChB,eAAe;IACf,gBAAgB;IAChB,eAAe;IACf,YAAY;IACZ,eAAe;IACf,eAAe;IACf,QAAQ;IACR,eAAe;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,iCAAi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,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"}
|
|
@@ -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
|
|
@@ -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,yDAAyD;IACtG,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,EAAoB,2BAA2B;IACxE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;IACzB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAGH,8EAA8E;AAC9E,gFAAgF;AAChF,wEAAwE;AACxE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC;IACnC,MAAM;IACN,OAAO;IACP,KAAK;IAC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,IAAI,EAAE,cAAc;IACpB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,EAAuB,UAAU;IACvD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC7C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAA+B,+FAA+F;IAC5I,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,EAAuB,UAAU;IACvD,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC9C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,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/evaluator-hooks — each re-exported here with identical
|
|
12
|
+
* names so `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 "./task.js";
|
|
24
|
+
export * from "./rest.js";
|
|
25
|
+
export * from "./finalize-shapes.js";
|
|
26
|
+
export * from "./errors.js";
|
|
27
|
+
export * from "./evaluator-hooks.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/evaluator-hooks — each re-exported here with identical
|
|
13
|
+
* names so `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 "./task.js"; // §3 TASKS — task config / task / persisted-task
|
|
30
|
+
export * from "./rest.js"; // §4 PUBLIC REST API (minus finalize family)
|
|
31
|
+
export * from "./finalize-shapes.js"; // §4 PUBLIC REST API — /finalize response family
|
|
32
|
+
export * from "./errors.js"; // §5 ERROR ENVELOPE
|
|
33
|
+
export * from "./evaluator-hooks.js"; // §6 EvaluatorHooks
|
|
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,WAAW,CAAC,CAAc,iDAAiD;AACzF,cAAc,WAAW,CAAC,CAAc,6CAA6C;AACrF,cAAc,sBAAsB,CAAC,CAAG,iDAAiD;AACzF,cAAc,aAAa,CAAC,CAAY,oBAAoB;AAC5D,cAAc,sBAAsB,CAAC,CAAG,oBAAoB"}
|