@pome-sh/cli 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build-info.json +3 -3
- package/dist/src/cli/checks-add.js +16 -0
- package/dist/src/cli/checks-lint.d.ts +1 -0
- package/dist/src/cli/checks-lint.js +59 -0
- package/dist/src/cli/criterion-binding.d.ts +41 -0
- package/dist/src/cli/criterion-binding.js +111 -0
- package/dist/src/cli/main.js +12 -0
- package/dist/src/runner/runTask.d.ts +2 -2
- package/dist/src/task/insertCriterion.js +6 -1
- package/dist/src/task/parseTask.d.ts +21 -0
- package/dist/src/task/parseTask.js +48 -1
- package/dist/src/task/taskSchema.d.ts +4 -4
- package/node_modules/@pome-sh/sdk/dist/checks.d.ts +2 -0
- package/node_modules/@pome-sh/sdk/dist/checks.js.map +1 -1
- package/node_modules/@pome-sh/sdk/dist/failure-injection.js +7 -0
- package/node_modules/@pome-sh/sdk/dist/failure-injection.js.map +1 -1
- package/node_modules/@pome-sh/sdk/dist/index.d.ts +8 -0
- package/node_modules/@pome-sh/sdk/dist/index.js +1 -0
- package/node_modules/@pome-sh/sdk/dist/index.js.map +1 -1
- package/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js +10 -0
- package/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js.map +1 -1
- package/node_modules/@pome-sh/sdk/dist/recorder.js +8 -4
- package/node_modules/@pome-sh/sdk/dist/recorder.js.map +1 -1
- package/node_modules/@pome-sh/sdk/dist/request-capture.d.ts +31 -0
- package/node_modules/@pome-sh/sdk/dist/request-capture.js +59 -0
- package/node_modules/@pome-sh/sdk/dist/request-capture.js.map +1 -0
- package/node_modules/@pome-sh/sdk/dist/server.d.ts +1 -0
- package/node_modules/@pome-sh/sdk/dist/server.js +13 -0
- package/node_modules/@pome-sh/sdk/dist/server.js.map +1 -1
- package/node_modules/@pome-sh/sdk/package.json +2 -2
- package/node_modules/@pome-sh/shared-types/dist/otel/event-schema.d.ts +6 -0
- package/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.d.ts +2 -0
- package/node_modules/@pome-sh/shared-types/dist/recorder-events.d.ts +14 -0
- package/node_modules/@pome-sh/shared-types/dist/recorder-events.js +40 -0
- package/node_modules/@pome-sh/shared-types/dist/recorder-events.js.map +1 -1
- package/node_modules/@pome-sh/shared-types/package.json +1 -1
- package/node_modules/@pome-sh/shared-types/trace-contract.json +1 -1
- package/node_modules/@pome-sh/twin-github/dist/src/access-control.d.ts +3 -3
- package/node_modules/@pome-sh/twin-github/dist/src/check-params.d.ts +1 -0
- package/node_modules/@pome-sh/twin-github/dist/src/check-params.js +17 -0
- package/node_modules/@pome-sh/twin-github/dist/src/check-params.js.map +1 -1
- package/node_modules/@pome-sh/twin-github/dist/src/check-tape.d.ts +3 -0
- package/node_modules/@pome-sh/twin-github/dist/src/check-tape.js +77 -0
- package/node_modules/@pome-sh/twin-github/dist/src/check-tape.js.map +1 -1
- package/node_modules/@pome-sh/twin-github/dist/src/checks.d.ts +3 -1
- package/node_modules/@pome-sh/twin-github/dist/src/checks.js +4 -3
- package/node_modules/@pome-sh/twin-github/dist/src/checks.js.map +1 -1
- package/node_modules/@pome-sh/twin-github/dist/src/domain/checks.d.ts +4 -4
- package/node_modules/@pome-sh/twin-github/dist/src/domain/github-domain.d.ts +5 -5
- package/node_modules/@pome-sh/twin-github/dist/src/domain/pulls.d.ts +1 -1
- package/node_modules/@pome-sh/twin-github/dist/src/routes.js +16 -2
- 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 +3 -3
- package/node_modules/@pome-sh/twin-github/dist/src/tools.d.ts +22 -21
- package/node_modules/@pome-sh/twin-github/dist/src/tools.js +22 -0
- package/node_modules/@pome-sh/twin-github/dist/src/tools.js.map +1 -1
- package/node_modules/@pome-sh/twin-github/package.json +3 -3
- package/node_modules/@pome-sh/twin-stripe/dist/src/idempotency.js +6 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/idempotency.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/dist/src/routes/_helpers.js +9 -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/seed.d.ts +2 -2
- package/node_modules/@pome-sh/twin-stripe/dist/src/session.d.ts +3 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/session.js +72 -0
- package/node_modules/@pome-sh/twin-stripe/dist/src/session.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/dist/src/twin.js +5 -1
- package/node_modules/@pome-sh/twin-stripe/dist/src/twin.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/package.json +4 -4
- package/package.json +5 -5
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/admin-gate.d.ts +0 -35
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/admin-gate.js +0 -103
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/admin-gate.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/auth.d.ts +0 -100
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/auth.js +0 -262
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/auth.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/build-info.d.ts +0 -7
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/build-info.js +0 -14
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/build-info.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/db.d.ts +0 -44
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/db.js +0 -113
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/db.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/errors.d.ts +0 -24
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/errors.js +0 -61
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/errors.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/failure-injection.d.ts +0 -43
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/failure-injection.js +0 -160
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/failure-injection.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity-inventory.d.ts +0 -121
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js +0 -204
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity.d.ts +0 -8
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity.js +0 -39
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/index.d.ts +0 -372
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/index.js +0 -139
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/index.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.d.ts +0 -10
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js +0 -221
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/parity.d.ts +0 -61
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/parity.js +0 -123
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/parity.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/recorder.d.ts +0 -120
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/recorder.js +0 -368
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/recorder.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/redaction.d.ts +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/redaction.js +0 -3
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/redaction.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server-helpers.d.ts +0 -54
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server-helpers.js +0 -181
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server-helpers.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server.d.ts +0 -46
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server.js +0 -394
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/tool-context.d.ts +0 -8
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/tool-context.js +0 -22
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/tool-context.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/package.json +0 -54
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/errors.d.ts +0 -39
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/errors.js +0 -33
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/errors.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/finalize-shapes.d.ts +0 -254
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js +0 -122
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/github-access-control.d.ts +0 -175
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/github-access-control.js +0 -182
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/github-access-control.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/identity.d.ts +0 -90
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/identity.js +0 -72
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/identity.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/index.d.ts +0 -28
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/index.js +0 -35
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/index.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/manifest.d.ts +0 -31
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/manifest.js +0 -76
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/manifest.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/event-schema.d.ts +0 -331
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/event-schema.js +0 -33
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/event-schema.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.d.ts +0 -65
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.js +0 -455
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.d.ts +0 -39
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.js +0 -47
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/index.d.ts +0 -25
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/index.js +0 -27
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/index.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.d.ts +0 -100
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js +0 -193
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/map-span.d.ts +0 -64
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/map-span.js +0 -112
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/map-span.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/nano.d.ts +0 -26
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/nano.js +0 -61
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/nano.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/project.d.ts +0 -42
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/project.js +0 -104
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/project.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/semconv.d.ts +0 -57
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/semconv.js +0 -102
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/semconv.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/span-event.d.ts +0 -134
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/span-event.js +0 -152
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/span-event.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/recorder-events.d.ts +0 -480
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/recorder-events.js +0 -270
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/recorder-events.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/redaction.d.ts +0 -2
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/redaction.js +0 -152
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/redaction.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/rest.d.ts +0 -257
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/rest.js +0 -335
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/rest.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/run.d.ts +0 -208
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/run.js +0 -170
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/run.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/seed-envelope.d.ts +0 -14
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/seed-envelope.js +0 -46
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/seed-envelope.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/seed-state.d.ts +0 -1006
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/seed-state.js +0 -263
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/seed-state.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/sessions.d.ts +0 -53
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/sessions.js +0 -51
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/sessions.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task-vocab.d.ts +0 -80
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task-vocab.js +0 -98
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task-vocab.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task.d.ts +0 -859
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task.js +0 -60
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task.js.map +0 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/manifest-schema.json +0 -68
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/package.json +0 -55
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/trace-contract.json +0 -41
package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/seed-state.js
DELETED
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
-
//
|
|
3
|
-
// shared-types — provider seed-state schemas (part of §3 TASKS). The
|
|
4
|
-
// per-provider seed worlds (GitHub / Stripe / Slack), the provider-scoped
|
|
5
|
-
// wrapper, and the legacy-or-scoped `seedStateSchema` union consumed by
|
|
6
|
-
// `taskSchema`. Re-exported through the `@pome-sh/shared-types` barrel.
|
|
7
|
-
import { z } from "zod";
|
|
8
|
-
// SeedState — adopted as-is from oslo (nested shape; matches OSS code).
|
|
9
|
-
// Future twins (Linear, Slack) will add their own seed shapes; we union those
|
|
10
|
-
// in here as the family grows.
|
|
11
|
-
//
|
|
12
|
-
// FDRS-653 (ported from pome-cloud): this schema used to model only the
|
|
13
|
-
// issue-triage subset (repositories[].{issues,labels,collaborators}). Anywhere
|
|
14
|
-
// it is used as a narrowing boundary, a field MISSING here is silently
|
|
15
|
-
// zod-stripped before it reaches the twin pod's own parseSeed — which is
|
|
16
|
-
// exactly how PR-based scenarios lost their `users`, `pull_requests`, and
|
|
17
|
-
// `files` and booted into an empty repo (the agent saw `GET /pulls → []`).
|
|
18
|
-
// The full GitHub world (top-level users, default_branch, files,
|
|
19
|
-
// pull_requests with reviews/statuses) is modeled below, matching the
|
|
20
|
-
// canonical twin-github seed shape.
|
|
21
|
-
export const githubSeedStateSchema = z.object({
|
|
22
|
-
users: z
|
|
23
|
-
.array(z.object({
|
|
24
|
-
login: z.string().min(1),
|
|
25
|
-
type: z.enum(["User", "Organization"]).default("User"),
|
|
26
|
-
name: z.string().default(""),
|
|
27
|
-
}))
|
|
28
|
-
.optional(),
|
|
29
|
-
repositories: z
|
|
30
|
-
.array(z.object({
|
|
31
|
-
owner: z.string().min(1),
|
|
32
|
-
name: z.string().min(1),
|
|
33
|
-
description: z.string().optional(),
|
|
34
|
-
default_branch: z.string().min(1).optional(),
|
|
35
|
-
labels: z
|
|
36
|
-
.array(z.object({
|
|
37
|
-
name: z.string().min(1),
|
|
38
|
-
color: z.string().default("ededed"),
|
|
39
|
-
description: z.string().default(""),
|
|
40
|
-
}))
|
|
41
|
-
.default([]),
|
|
42
|
-
collaborators: z.array(z.string().min(1)).default([]),
|
|
43
|
-
files: z
|
|
44
|
-
.array(z.object({
|
|
45
|
-
path: z.string().min(1),
|
|
46
|
-
content: z.string(),
|
|
47
|
-
branch: z.string().optional(),
|
|
48
|
-
}))
|
|
49
|
-
.optional(),
|
|
50
|
-
issues: z
|
|
51
|
-
.array(z.object({
|
|
52
|
-
number: z.number().int().positive(),
|
|
53
|
-
title: z.string().min(1),
|
|
54
|
-
body: z.string().default(""),
|
|
55
|
-
state: z.enum(["open", "closed"]).default("open"),
|
|
56
|
-
labels: z.array(z.string().min(1)).default([]),
|
|
57
|
-
assignee: z.string().nullable().default(null),
|
|
58
|
-
}))
|
|
59
|
-
.default([]),
|
|
60
|
-
pull_requests: z
|
|
61
|
-
.array(z.object({
|
|
62
|
-
number: z.number().int().positive().optional(),
|
|
63
|
-
title: z.string().min(1),
|
|
64
|
-
body: z.string().default(""),
|
|
65
|
-
head: z.string().min(1),
|
|
66
|
-
base: z.string().min(1).default("main"),
|
|
67
|
-
state: z.enum(["open", "closed"]).default("open"),
|
|
68
|
-
author: z.string().min(1).optional(),
|
|
69
|
-
// Reviews seeded on this PR. State mirrors GitHub's review state
|
|
70
|
-
// enum; author must exist in users or collaborators.
|
|
71
|
-
reviews: z
|
|
72
|
-
.array(z.object({
|
|
73
|
-
author: z.string().min(1),
|
|
74
|
-
state: z
|
|
75
|
-
.enum(["APPROVED", "CHANGES_REQUESTED", "COMMENTED"])
|
|
76
|
-
.default("APPROVED"),
|
|
77
|
-
body: z.string().default(""),
|
|
78
|
-
}))
|
|
79
|
-
.default([]),
|
|
80
|
-
// Commit statuses on the PR head SHA, wired into commit_statuses
|
|
81
|
-
// so get_pull_request_status and merge_pull_request see them.
|
|
82
|
-
statuses: z
|
|
83
|
-
.array(z.object({
|
|
84
|
-
context: z.string().min(1).default("ci/build"),
|
|
85
|
-
state: z
|
|
86
|
-
.enum(["error", "failure", "pending", "success"])
|
|
87
|
-
.default("success"),
|
|
88
|
-
description: z.string().default(""),
|
|
89
|
-
}))
|
|
90
|
-
.default([]),
|
|
91
|
-
}))
|
|
92
|
-
.optional(),
|
|
93
|
-
}))
|
|
94
|
-
.min(1),
|
|
95
|
-
});
|
|
96
|
-
export const stripeSeedStateSchema = z.object({
|
|
97
|
-
api_keys: z
|
|
98
|
-
.array(z.object({
|
|
99
|
-
key: z.string().min(1).default("sk_test_pome_default"),
|
|
100
|
-
sid: z.string().min(1).default("default"),
|
|
101
|
-
account_id: z.string().min(1).optional(),
|
|
102
|
-
}))
|
|
103
|
-
.default([]),
|
|
104
|
-
customers: z.array(z.record(z.string(), z.unknown())).default([]),
|
|
105
|
-
products: z.array(z.record(z.string(), z.unknown())).default([]),
|
|
106
|
-
prices: z.array(z.record(z.string(), z.unknown())).default([]),
|
|
107
|
-
payment_intents: z.array(z.record(z.string(), z.unknown())).default([]),
|
|
108
|
-
charges: z.array(z.record(z.string(), z.unknown())).default([]),
|
|
109
|
-
events: z.array(z.record(z.string(), z.unknown())).default([]),
|
|
110
|
-
balances: z.array(z.record(z.string(), z.unknown())).default([]),
|
|
111
|
-
});
|
|
112
|
-
export const slackSeedStateSchema = z.object({
|
|
113
|
-
team: z
|
|
114
|
-
.object({
|
|
115
|
-
id: z.string().regex(/^T[A-Z0-9_]+$/).optional(),
|
|
116
|
-
name: z.string().default("Pome Twin Workspace"),
|
|
117
|
-
domain: z.string().default("pome-twin"),
|
|
118
|
-
})
|
|
119
|
-
.prefault({}),
|
|
120
|
-
users: z
|
|
121
|
-
.array(z.object({
|
|
122
|
-
id: z.string().regex(/^[UB][A-Z0-9_]+$/).optional(),
|
|
123
|
-
name: z.string().min(1),
|
|
124
|
-
real_name: z.string().default(""),
|
|
125
|
-
email: z.string().email().optional(),
|
|
126
|
-
is_bot: z.boolean().default(false),
|
|
127
|
-
is_admin: z.boolean().default(false),
|
|
128
|
-
tz: z.string().default("America/Los_Angeles"),
|
|
129
|
-
profile: z.record(z.string(), z.unknown()).default({}),
|
|
130
|
-
}))
|
|
131
|
-
.default([]),
|
|
132
|
-
channels: z
|
|
133
|
-
.array(z.object({
|
|
134
|
-
id: z.string().regex(/^[CGDM][A-Z0-9_]+$/).optional(),
|
|
135
|
-
name: z.string().regex(/^[a-z0-9_-]{1,80}$/),
|
|
136
|
-
is_private: z.boolean().default(false),
|
|
137
|
-
topic: z.string().default(""),
|
|
138
|
-
purpose: z.string().default(""),
|
|
139
|
-
creator: z.string().optional(),
|
|
140
|
-
members: z.array(z.string()).default([]),
|
|
141
|
-
messages: z
|
|
142
|
-
.array(z.object({
|
|
143
|
-
ts: z.string().optional(),
|
|
144
|
-
user: z.string(),
|
|
145
|
-
text: z.string(),
|
|
146
|
-
thread_ts: z.string().optional(),
|
|
147
|
-
reactions: z
|
|
148
|
-
.array(z.object({ name: z.string(), user: z.string() }))
|
|
149
|
-
.default([]),
|
|
150
|
-
}))
|
|
151
|
-
.default([]),
|
|
152
|
-
}))
|
|
153
|
-
.default([]),
|
|
154
|
-
});
|
|
155
|
-
const gmailEmailSchema = z.string().trim().email().transform((value) => value.toLowerCase());
|
|
156
|
-
const gmailIdSchema = z.string().min(1).max(128).regex(/^[A-Za-z0-9_-]+$/);
|
|
157
|
-
const gmailAttachmentSeedSchema = z.object({
|
|
158
|
-
filename: z.string().max(512),
|
|
159
|
-
mimeType: z.string().min(1).max(255).default("application/octet-stream"),
|
|
160
|
-
disposition: z.enum(["attachment", "inline"]).default("attachment"),
|
|
161
|
-
contentId: z.string().max(998).optional(),
|
|
162
|
-
data: z.string().max(50_000_000),
|
|
163
|
-
});
|
|
164
|
-
const gmailMessageSeedFields = {
|
|
165
|
-
id: gmailIdSchema.optional(),
|
|
166
|
-
threadId: gmailIdSchema.optional(),
|
|
167
|
-
raw: z.string().max(50_000_000).optional(),
|
|
168
|
-
from: gmailEmailSchema.optional(),
|
|
169
|
-
to: z.array(gmailEmailSchema).max(500).default([]),
|
|
170
|
-
cc: z.array(gmailEmailSchema).max(500).default([]),
|
|
171
|
-
bcc: z.array(gmailEmailSchema).max(500).default([]),
|
|
172
|
-
subject: z.string().max(998).default(""),
|
|
173
|
-
text: z.string().max(25_000_000).default(""),
|
|
174
|
-
html: z.string().max(25_000_000).default(""),
|
|
175
|
-
date: z.string().datetime({ offset: true }).optional(),
|
|
176
|
-
messageId: z.string().min(3).max(998).optional(),
|
|
177
|
-
inReplyTo: z.string().max(998).optional(),
|
|
178
|
-
references: z.array(z.string().max(998)).max(100).default([]),
|
|
179
|
-
attachments: z.array(gmailAttachmentSeedSchema).max(100).default([]),
|
|
180
|
-
};
|
|
181
|
-
/** Aligns with twin-gmail `seed.ts` filter shape; query AST is validated at twin parse time. */
|
|
182
|
-
const gmailFilterSeedSchema = z
|
|
183
|
-
.object({
|
|
184
|
-
id: gmailIdSchema.optional(),
|
|
185
|
-
criteria: z
|
|
186
|
-
.object({
|
|
187
|
-
from: z.string().max(998).optional(),
|
|
188
|
-
to: z.string().max(998).optional(),
|
|
189
|
-
subject: z.string().max(998).optional(),
|
|
190
|
-
query: z.string().max(4096).optional(),
|
|
191
|
-
negatedQuery: z.string().max(4096).optional(),
|
|
192
|
-
hasAttachment: z.boolean().optional(),
|
|
193
|
-
excludeChats: z.boolean().optional(),
|
|
194
|
-
size: z.number().int().nonnegative().optional(),
|
|
195
|
-
sizeComparison: z.enum(["larger", "smaller"]).optional(),
|
|
196
|
-
})
|
|
197
|
-
.default({}),
|
|
198
|
-
action: z
|
|
199
|
-
.object({
|
|
200
|
-
addLabelIds: z.array(z.string().min(1)).max(100).default([]),
|
|
201
|
-
removeLabelIds: z.array(z.string().min(1)).max(100).default([]),
|
|
202
|
-
/** Twin rejects filter forwarding (no delivery); keep field for drift detection. */
|
|
203
|
-
forward: gmailEmailSchema.optional(),
|
|
204
|
-
})
|
|
205
|
-
.default({ addLabelIds: [], removeLabelIds: [] }),
|
|
206
|
-
})
|
|
207
|
-
.superRefine((filter, ctx) => {
|
|
208
|
-
if (filter.action.forward) {
|
|
209
|
-
ctx.addIssue({
|
|
210
|
-
code: "custom",
|
|
211
|
-
message: "Filter forwarding is unsupported",
|
|
212
|
-
path: ["action", "forward"],
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
const gmailMailboxSeedSchema = z.object({
|
|
217
|
-
email: gmailEmailSchema,
|
|
218
|
-
displayName: z.string().max(256).default(""),
|
|
219
|
-
labels: z
|
|
220
|
-
.array(z.object({
|
|
221
|
-
id: gmailIdSchema.optional(),
|
|
222
|
-
name: z.string().trim().min(1).max(225),
|
|
223
|
-
color: z
|
|
224
|
-
.object({
|
|
225
|
-
textColor: z.string().max(32).optional(),
|
|
226
|
-
backgroundColor: z.string().max(32).optional(),
|
|
227
|
-
})
|
|
228
|
-
.optional(),
|
|
229
|
-
}))
|
|
230
|
-
.max(5000)
|
|
231
|
-
.default([]),
|
|
232
|
-
messages: z
|
|
233
|
-
.array(z.object({
|
|
234
|
-
...gmailMessageSeedFields,
|
|
235
|
-
labels: z.array(z.string().min(1).max(255)).max(100).default([]),
|
|
236
|
-
}))
|
|
237
|
-
.max(10_000)
|
|
238
|
-
.default([]),
|
|
239
|
-
drafts: z.array(z.object(gmailMessageSeedFields)).max(5000).default([]),
|
|
240
|
-
filters: z.array(gmailFilterSeedSchema).max(1000).default([]),
|
|
241
|
-
forwardingAddresses: z.array(z.record(z.string(), z.unknown())).max(1000).default([]),
|
|
242
|
-
sendAs: z.array(z.record(z.string(), z.unknown())).max(1000).default([]),
|
|
243
|
-
});
|
|
244
|
-
export const gmailSeedStateSchema = z.object({
|
|
245
|
-
primaryMailbox: gmailMailboxSeedSchema,
|
|
246
|
-
mailboxes: z.array(gmailMailboxSeedSchema).max(100).default([]),
|
|
247
|
-
deliveryMode: z.enum(["sender-only", "seeded-mailboxes"]).default("sender-only"),
|
|
248
|
-
clock: z.string().datetime({ offset: true }).default("2025-01-01T00:00:00.000Z"),
|
|
249
|
-
});
|
|
250
|
-
export const providerScopedSeedStateSchema = z
|
|
251
|
-
.object({
|
|
252
|
-
github: z.object({ seed: githubSeedStateSchema }).optional(),
|
|
253
|
-
stripe: z.object({ seed: stripeSeedStateSchema }).optional(),
|
|
254
|
-
slack: z.object({ seed: slackSeedStateSchema }).optional(),
|
|
255
|
-
gmail: z.object({ seed: gmailSeedStateSchema }).optional(),
|
|
256
|
-
})
|
|
257
|
-
.refine((value) => Boolean(value.github || value.stripe || value.slack || value.gmail), {
|
|
258
|
-
message: "seedState must include github.seed, stripe.seed, slack.seed, gmail.seed, or the legacy GitHub seed shape",
|
|
259
|
-
});
|
|
260
|
-
// SeedState accepts the legacy GitHub shape and the provider-scoped shape
|
|
261
|
-
// used by GitHub + Stripe scenario templates.
|
|
262
|
-
export const seedStateSchema = z.union([githubSeedStateSchema, providerScopedSeedStateSchema]);
|
|
263
|
-
//# sourceMappingURL=seed-state.js.map
|
package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/seed-state.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"seed-state.js","sourceRoot":"","sources":["../src/seed-state.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,EAA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AC,CAAC,QAAQ,EAAE;IAC5D,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC1D,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC3D,CAAC;KACD,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,KAAK,CAAC,EAAE;IACtF,OAAO,EACL,0GAA0G;CAC7G,CAAC,CAAC;AAEL,0EAA0E;AAC1E,8CAA8C;AAC9C,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,qBAAqB,EAAE,6BAA6B,CAAC,CAAC,CAAC"}
|
package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/sessions.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const MOUNTED_TWINS: readonly ["github", "stripe", "slack", "gmail"];
|
|
3
|
-
export declare const sessionStateSchema: z.ZodEnum<{
|
|
4
|
-
running: "running";
|
|
5
|
-
failed: "failed";
|
|
6
|
-
provisioning: "provisioning";
|
|
7
|
-
ready: "ready";
|
|
8
|
-
done: "done";
|
|
9
|
-
expired: "expired";
|
|
10
|
-
}>;
|
|
11
|
-
export type SessionState = z.infer<typeof sessionStateSchema>;
|
|
12
|
-
export declare const sessionSchema: z.ZodObject<{
|
|
13
|
-
id: z.ZodString;
|
|
14
|
-
team_id: z.ZodString;
|
|
15
|
-
api_key_id: z.ZodNullable<z.ZodString>;
|
|
16
|
-
twin_type: z.ZodString;
|
|
17
|
-
twins: z.ZodArray<z.ZodString>;
|
|
18
|
-
state: z.ZodEnum<{
|
|
19
|
-
running: "running";
|
|
20
|
-
failed: "failed";
|
|
21
|
-
provisioning: "provisioning";
|
|
22
|
-
ready: "ready";
|
|
23
|
-
done: "done";
|
|
24
|
-
expired: "expired";
|
|
25
|
-
}>;
|
|
26
|
-
twin_url: z.ZodNullable<z.ZodString>;
|
|
27
|
-
pod_id: z.ZodNullable<z.ZodString>;
|
|
28
|
-
created_at: z.ZodString;
|
|
29
|
-
ready_at: z.ZodNullable<z.ZodString>;
|
|
30
|
-
expires_at: z.ZodString;
|
|
31
|
-
closed_at: z.ZodNullable<z.ZodString>;
|
|
32
|
-
}, z.core.$strip>;
|
|
33
|
-
export type Session = z.infer<typeof sessionSchema>;
|
|
34
|
-
export declare const sessionPublicSchema: z.ZodObject<{
|
|
35
|
-
id: z.ZodString;
|
|
36
|
-
team_id: z.ZodString;
|
|
37
|
-
created_at: z.ZodString;
|
|
38
|
-
expires_at: z.ZodString;
|
|
39
|
-
twins: z.ZodArray<z.ZodString>;
|
|
40
|
-
twin_url: z.ZodNullable<z.ZodString>;
|
|
41
|
-
state: z.ZodEnum<{
|
|
42
|
-
running: "running";
|
|
43
|
-
failed: "failed";
|
|
44
|
-
provisioning: "provisioning";
|
|
45
|
-
ready: "ready";
|
|
46
|
-
done: "done";
|
|
47
|
-
expired: "expired";
|
|
48
|
-
}>;
|
|
49
|
-
twin_type: z.ZodString;
|
|
50
|
-
ready_at: z.ZodNullable<z.ZodString>;
|
|
51
|
-
closed_at: z.ZodNullable<z.ZodString>;
|
|
52
|
-
}, z.core.$strip>;
|
|
53
|
-
export type SessionPublic = z.infer<typeof sessionPublicSchema>;
|
package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/sessions.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
-
//
|
|
3
|
-
// shared-types §2 — SESSIONS. Mounted-twin allowlist, session state machine,
|
|
4
|
-
// internal DB row + public API response shapes. Re-exported through the
|
|
5
|
-
// `@pome-sh/shared-types` barrel (index.ts).
|
|
6
|
-
import { z } from "zod";
|
|
7
|
-
// ─────────────────────────────────────────────────────────────────────────────
|
|
8
|
-
// 2. SESSIONS
|
|
9
|
-
// ─────────────────────────────────────────────────────────────────────────────
|
|
10
|
-
// Mounted twin set — the cloud control plane's allowlist for create-session.
|
|
11
|
-
// V1 ships GitHub only end-to-end; Stripe/Slack are scaffolded in the OSS repo
|
|
12
|
-
// and reachable through the multi-twin runtime. Distinct from `KNOWN_TWIN_IDS`
|
|
13
|
-
// (re-exported from `./recorder-events.ts`) which serves dashboard-rendering
|
|
14
|
-
// pattern-matching for arbitrary `RecorderEvent.twin` values. Mirrored from
|
|
15
|
-
// pome-cloud shared-types (FDRS-613).
|
|
16
|
-
export const MOUNTED_TWINS = ["github", "stripe", "slack", "gmail"];
|
|
17
|
-
export const sessionStateSchema = z.enum([
|
|
18
|
-
"provisioning",
|
|
19
|
-
"ready",
|
|
20
|
-
"running",
|
|
21
|
-
"done",
|
|
22
|
-
"expired",
|
|
23
|
-
"failed",
|
|
24
|
-
]);
|
|
25
|
-
// Internal DB row shape — includes pod_id and api_key_id which are NOT exposed publicly.
|
|
26
|
-
//
|
|
27
|
-
// Multi-twin (M3): `twins[]` is the new authoritative field. `twin_type` is kept
|
|
28
|
-
// populated as legacy = `twins[0]` for ≥1 OSS CLI release. FDRS-613: `twins`
|
|
29
|
-
// adopted from pome-cloud so a cloud-issued Session / SessionPublic parses here.
|
|
30
|
-
export const sessionSchema = z.object({
|
|
31
|
-
id: z.string(), // ses_<nanoid>
|
|
32
|
-
team_id: z.string(),
|
|
33
|
-
api_key_id: z.string().nullable(), // null if dashboard-launched
|
|
34
|
-
twin_type: z.string(), // legacy: equals twins[0] in M3+; kept for one CLI release
|
|
35
|
-
twins: z.array(z.string()).min(1), // M3: authoritative list of mounted twins for this session
|
|
36
|
-
state: sessionStateSchema,
|
|
37
|
-
twin_url: z.string().url().nullable(), // populated when state='ready'
|
|
38
|
-
pod_id: z.string().nullable(), // INTERNAL: which pool pod served — never on public API responses
|
|
39
|
-
created_at: z.string().datetime(),
|
|
40
|
-
ready_at: z.string().datetime().nullable(),
|
|
41
|
-
expires_at: z.string().datetime(), // TTL, default created_at + 30min
|
|
42
|
-
closed_at: z.string().datetime().nullable(),
|
|
43
|
-
});
|
|
44
|
-
// Public API response shape — strips internal infrastructure fields per /plan-eng-review.
|
|
45
|
-
// `GET /v1/sessions/{id}` and `GET /v1/sessions` return SessionPublic.
|
|
46
|
-
// Internal orchestrator endpoints use the full Session shape.
|
|
47
|
-
export const sessionPublicSchema = sessionSchema.omit({
|
|
48
|
-
pod_id: true,
|
|
49
|
-
api_key_id: true,
|
|
50
|
-
});
|
|
51
|
-
//# sourceMappingURL=sessions.js.map
|
package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/sessions.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.js","sourceRoot":"","sources":["../src/sessions.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,EAAE;AACF,6EAA6E;AAC7E,wEAAwE;AACxE,6CAA6C;AAE7C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,gFAAgF;AAChF,cAAc;AACd,gFAAgF;AAEhF,6EAA6E;AAC7E,+EAA+E;AAC/E,+EAA+E;AAC/E,6EAA6E;AAC7E,4EAA4E;AAC5E,sCAAsC;AACtC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAU,CAAC;AAE7E,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC;IACvC,cAAc;IACd,OAAO;IACP,SAAS;IACT,MAAM;IACN,SAAS;IACT,QAAQ;CACT,CAAC,CAAC;AAGH,yFAAyF;AACzF,EAAE;AACF,iFAAiF;AACjF,6EAA6E;AAC7E,iFAAiF;AACjF,MAAM,CAAC,MAAM,aAAa,GAAG,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FDRS-653).
|
|
3
|
-
*
|
|
4
|
-
* W3 decision (binding, 2026-06): everything "scenario" becomes "task" on the
|
|
5
|
-
* wire, and criterion kinds `D` / `P` become `code` / `model`. The cloud DB is
|
|
6
|
-
* already renamed (`tasks` table, `runs.task_name`); this module gives the
|
|
7
|
-
* shared trace format the same vocabulary WITHOUT breaking 0.3.0-era artifacts.
|
|
8
|
-
*
|
|
9
|
-
* Tolerant-reader contract (the 0.3.0 compatibility window):
|
|
10
|
-
* - Canonical schemas and types use the NEW vocabulary only
|
|
11
|
-
* (`task_name`, `task_hash`, `task_source`, `task_id`, `promoted_task_id`,
|
|
12
|
-
* `task_step_id`, criterion kind `code` / `model`).
|
|
13
|
-
* - Readers accept BOTH the old and the new keys and normalize to the new
|
|
14
|
-
* vocabulary at parse time. Nothing a 0.3.0-era artifact contains becomes
|
|
15
|
-
* invalid: shipped CLIs vendor shared-types 0.3.0 and keep sending
|
|
16
|
-
* `scenario_*` keys and `D` / `P` criterion kinds for at least one more
|
|
17
|
-
* release train (the CLI vendored-tarball bump rides FDRS-654/657).
|
|
18
|
-
* - When BOTH keys are present, the new key wins (a 0.5.0-aware writer is
|
|
19
|
-
* more authoritative about the canonical field than a mirrored legacy key).
|
|
20
|
-
*
|
|
21
|
-
* The window closes with the next major once no supported CLI emits the old
|
|
22
|
-
* vocabulary; removal of the aliases goes through the deprecation policy.
|
|
23
|
-
*/
|
|
24
|
-
/**
|
|
25
|
-
* Old wire key → canonical wire key for the RENAME-on-read surfaces of the
|
|
26
|
-
* /v1 contract (run / session / result wire objects):
|
|
27
|
-
* - `scenario_name` / `scenario_hash` — Run rows + POST /v1/sessions/{id}/result
|
|
28
|
-
* - `scenario_source` / `scenario_id` — POST /v1/sessions
|
|
29
|
-
* - `promoted_scenario_id` — Run rows (M0.5 replay-loop linkage)
|
|
30
|
-
*
|
|
31
|
-
* DELIBERATELY NOT in this map: `scenario_step_id` on RecorderEvent rows
|
|
32
|
-
* (events.jsonl). The frozen v1 event row has PRESERVE semantics — the legacy
|
|
33
|
-
* key stays as-sent while readers additionally populate `task_step_id` — which
|
|
34
|
-
* is handled by the reader schemas in `./recorder-events.ts`, NOT by this
|
|
35
|
-
* delete-the-legacy-key map.
|
|
36
|
-
*/
|
|
37
|
-
export declare const LEGACY_TASK_VOCAB_KEY_MAP: {
|
|
38
|
-
readonly scenario_name: "task_name";
|
|
39
|
-
readonly scenario_hash: "task_hash";
|
|
40
|
-
readonly scenario_source: "task_source";
|
|
41
|
-
readonly scenario_id: "task_id";
|
|
42
|
-
readonly promoted_scenario_id: "promoted_task_id";
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Rename legacy `scenario_*` keys on a raw wire object to their canonical
|
|
46
|
-
* `task_*` names. Non-objects pass through untouched (the wrapped schema then
|
|
47
|
-
* reports the real type error). When both the legacy and the canonical key are
|
|
48
|
-
* present the canonical value wins and the legacy key is dropped.
|
|
49
|
-
*
|
|
50
|
-
* Used as a `z.preprocess` step in front of the canonical object schemas —
|
|
51
|
-
* this is the "tolerant reader" half of the 0.3.0 compatibility window.
|
|
52
|
-
*
|
|
53
|
-
* DO NOT apply this helper to recorder-event rows (events.jsonl). Event rows
|
|
54
|
-
* require `scenario_step_id` preserved as-sent (frozen v1 trace format), and
|
|
55
|
-
* this function's rename-and-delete semantics would strip that step linkage
|
|
56
|
-
* if the key were mapped. `scenario_step_id` is intentionally absent from
|
|
57
|
-
* `LEGACY_TASK_VOCAB_KEY_MAP`, so this function leaves it intact — event-row
|
|
58
|
-
* normalization lives in `recorderEventSchema` / `eventSchema`
|
|
59
|
-
* (`./recorder-events.ts`).
|
|
60
|
-
*/
|
|
61
|
-
export declare function normalizeTaskVocabKeys(value: unknown): unknown;
|
|
62
|
-
/**
|
|
63
|
-
* Legacy criterion kind → canonical criterion kind (W3: D→code, P→model).
|
|
64
|
-
*
|
|
65
|
-
* SANCTIONED EXCEPTION (F-778). The full D/P→code/model migration removed the
|
|
66
|
-
* legacy spelling everywhere — including the markdown authoring marker, which
|
|
67
|
-
* is now `[code]` / `[model]` — EXCEPT this read-only shim. It exists because:
|
|
68
|
-
* - 0.3.0-era persisted artifacts (run rows, `criteria_results` jsonb) carry
|
|
69
|
-
* `D` / `P` and must keep parsing;
|
|
70
|
-
* - released CLIs keep sending `"D"` / `"P"` on the finalize wire
|
|
71
|
-
* (`criterionDefSchema` in ./rest.js) for one more release train.
|
|
72
|
-
* It is input-normalization only: no writer may emit `D` / `P`, and no new
|
|
73
|
-
* code may reference the legacy spellings outside this map and the schemas
|
|
74
|
-
* that apply it (`criterionKindInputSchema` in ./run.js, `criterionDefSchema`
|
|
75
|
-
* in ./rest.js). Removal rides the wire-window close-out ticket.
|
|
76
|
-
*/
|
|
77
|
-
export declare const LEGACY_CRITERION_KIND_MAP: {
|
|
78
|
-
readonly D: "code";
|
|
79
|
-
readonly P: "model";
|
|
80
|
-
};
|
package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task-vocab.js
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
-
/**
|
|
3
|
-
* task-vocab — the W3 "scenario → task" wire-vocabulary rename (FDRS-653).
|
|
4
|
-
*
|
|
5
|
-
* W3 decision (binding, 2026-06): everything "scenario" becomes "task" on the
|
|
6
|
-
* wire, and criterion kinds `D` / `P` become `code` / `model`. The cloud DB is
|
|
7
|
-
* already renamed (`tasks` table, `runs.task_name`); this module gives the
|
|
8
|
-
* shared trace format the same vocabulary WITHOUT breaking 0.3.0-era artifacts.
|
|
9
|
-
*
|
|
10
|
-
* Tolerant-reader contract (the 0.3.0 compatibility window):
|
|
11
|
-
* - Canonical schemas and types use the NEW vocabulary only
|
|
12
|
-
* (`task_name`, `task_hash`, `task_source`, `task_id`, `promoted_task_id`,
|
|
13
|
-
* `task_step_id`, criterion kind `code` / `model`).
|
|
14
|
-
* - Readers accept BOTH the old and the new keys and normalize to the new
|
|
15
|
-
* vocabulary at parse time. Nothing a 0.3.0-era artifact contains becomes
|
|
16
|
-
* invalid: shipped CLIs vendor shared-types 0.3.0 and keep sending
|
|
17
|
-
* `scenario_*` keys and `D` / `P` criterion kinds for at least one more
|
|
18
|
-
* release train (the CLI vendored-tarball bump rides FDRS-654/657).
|
|
19
|
-
* - When BOTH keys are present, the new key wins (a 0.5.0-aware writer is
|
|
20
|
-
* more authoritative about the canonical field than a mirrored legacy key).
|
|
21
|
-
*
|
|
22
|
-
* The window closes with the next major once no supported CLI emits the old
|
|
23
|
-
* vocabulary; removal of the aliases goes through the deprecation policy.
|
|
24
|
-
*/
|
|
25
|
-
/**
|
|
26
|
-
* Old wire key → canonical wire key for the RENAME-on-read surfaces of the
|
|
27
|
-
* /v1 contract (run / session / result wire objects):
|
|
28
|
-
* - `scenario_name` / `scenario_hash` — Run rows + POST /v1/sessions/{id}/result
|
|
29
|
-
* - `scenario_source` / `scenario_id` — POST /v1/sessions
|
|
30
|
-
* - `promoted_scenario_id` — Run rows (M0.5 replay-loop linkage)
|
|
31
|
-
*
|
|
32
|
-
* DELIBERATELY NOT in this map: `scenario_step_id` on RecorderEvent rows
|
|
33
|
-
* (events.jsonl). The frozen v1 event row has PRESERVE semantics — the legacy
|
|
34
|
-
* key stays as-sent while readers additionally populate `task_step_id` — which
|
|
35
|
-
* is handled by the reader schemas in `./recorder-events.ts`, NOT by this
|
|
36
|
-
* delete-the-legacy-key map.
|
|
37
|
-
*/
|
|
38
|
-
export const LEGACY_TASK_VOCAB_KEY_MAP = {
|
|
39
|
-
scenario_name: "task_name",
|
|
40
|
-
scenario_hash: "task_hash",
|
|
41
|
-
scenario_source: "task_source",
|
|
42
|
-
scenario_id: "task_id",
|
|
43
|
-
promoted_scenario_id: "promoted_task_id",
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* Rename legacy `scenario_*` keys on a raw wire object to their canonical
|
|
47
|
-
* `task_*` names. Non-objects pass through untouched (the wrapped schema then
|
|
48
|
-
* reports the real type error). When both the legacy and the canonical key are
|
|
49
|
-
* present the canonical value wins and the legacy key is dropped.
|
|
50
|
-
*
|
|
51
|
-
* Used as a `z.preprocess` step in front of the canonical object schemas —
|
|
52
|
-
* this is the "tolerant reader" half of the 0.3.0 compatibility window.
|
|
53
|
-
*
|
|
54
|
-
* DO NOT apply this helper to recorder-event rows (events.jsonl). Event rows
|
|
55
|
-
* require `scenario_step_id` preserved as-sent (frozen v1 trace format), and
|
|
56
|
-
* this function's rename-and-delete semantics would strip that step linkage
|
|
57
|
-
* if the key were mapped. `scenario_step_id` is intentionally absent from
|
|
58
|
-
* `LEGACY_TASK_VOCAB_KEY_MAP`, so this function leaves it intact — event-row
|
|
59
|
-
* normalization lives in `recorderEventSchema` / `eventSchema`
|
|
60
|
-
* (`./recorder-events.ts`).
|
|
61
|
-
*/
|
|
62
|
-
export function normalizeTaskVocabKeys(value) {
|
|
63
|
-
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
64
|
-
return value;
|
|
65
|
-
}
|
|
66
|
-
const record = value;
|
|
67
|
-
let out = null;
|
|
68
|
-
for (const [legacyKey, canonicalKey] of Object.entries(LEGACY_TASK_VOCAB_KEY_MAP)) {
|
|
69
|
-
if (legacyKey in record) {
|
|
70
|
-
out ??= { ...record };
|
|
71
|
-
if (!(canonicalKey in record)) {
|
|
72
|
-
out[canonicalKey] = record[legacyKey];
|
|
73
|
-
}
|
|
74
|
-
delete out[legacyKey];
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
return out ?? value;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Legacy criterion kind → canonical criterion kind (W3: D→code, P→model).
|
|
81
|
-
*
|
|
82
|
-
* SANCTIONED EXCEPTION (F-778). The full D/P→code/model migration removed the
|
|
83
|
-
* legacy spelling everywhere — including the markdown authoring marker, which
|
|
84
|
-
* is now `[code]` / `[model]` — EXCEPT this read-only shim. It exists because:
|
|
85
|
-
* - 0.3.0-era persisted artifacts (run rows, `criteria_results` jsonb) carry
|
|
86
|
-
* `D` / `P` and must keep parsing;
|
|
87
|
-
* - released CLIs keep sending `"D"` / `"P"` on the finalize wire
|
|
88
|
-
* (`criterionDefSchema` in ./rest.js) for one more release train.
|
|
89
|
-
* It is input-normalization only: no writer may emit `D` / `P`, and no new
|
|
90
|
-
* code may reference the legacy spellings outside this map and the schemas
|
|
91
|
-
* that apply it (`criterionKindInputSchema` in ./run.js, `criterionDefSchema`
|
|
92
|
-
* in ./rest.js). Removal rides the wire-window close-out ticket.
|
|
93
|
-
*/
|
|
94
|
-
export const LEGACY_CRITERION_KIND_MAP = {
|
|
95
|
-
D: "code",
|
|
96
|
-
P: "model",
|
|
97
|
-
};
|
|
98
|
-
//# sourceMappingURL=task-vocab.js.map
|
package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task-vocab.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"task-vocab.js","sourceRoot":"","sources":["../src/task-vocab.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,aAAa,EAAE,WAAW;IAC1B,aAAa,EAAE,WAAW;IAC1B,eAAe,EAAE,aAAa;IAC9B,WAAW,EAAE,SAAS;IACtB,oBAAoB,EAAE,kBAAkB;CAChC,CAAC;AAEX;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,sBAAsB,CAAC,KAAc;IACnD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACxE,OAAO,KAAK,CAAC;IACf,CAAC;IACD,MAAM,MAAM,GAAG,KAAgC,CAAC;IAChD,IAAI,GAAG,GAAmC,IAAI,CAAC;IAC/C,KAAK,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,IAA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