@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
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const finalizeRequestSchema: z.ZodObject<{
|
|
3
|
-
stop_reason: z.ZodString;
|
|
4
|
-
exit_code: z.ZodNumber;
|
|
5
|
-
duration_ms: z.ZodNumber;
|
|
6
|
-
agent_model: z.ZodString;
|
|
7
|
-
agent_sdk: z.ZodNullable<z.ZodString>;
|
|
8
|
-
criteria: z.ZodArray<z.ZodObject<{
|
|
9
|
-
id: z.ZodString;
|
|
10
|
-
text: z.ZodString;
|
|
11
|
-
kind: z.ZodPipe<z.ZodEnum<{
|
|
12
|
-
model: "model";
|
|
13
|
-
code: "code";
|
|
14
|
-
D: "D";
|
|
15
|
-
P: "P";
|
|
16
|
-
}>, z.ZodTransform<"model" | "code", "model" | "code" | "D" | "P">>;
|
|
17
|
-
twin: z.ZodOptional<z.ZodString>;
|
|
18
|
-
}, z.core.$strip>>;
|
|
19
|
-
scenario_name: z.ZodString;
|
|
20
|
-
scenario_hash: z.ZodString;
|
|
21
|
-
scenario_prompt: z.ZodString;
|
|
22
|
-
expected_behavior: z.ZodString;
|
|
23
|
-
trace_storage_key: z.ZodOptional<z.ZodString>;
|
|
24
|
-
state_initial_storage_key: z.ZodOptional<z.ZodString>;
|
|
25
|
-
state_final_storage_key: z.ZodOptional<z.ZodString>;
|
|
26
|
-
signals_storage_key: z.ZodOptional<z.ZodString>;
|
|
27
|
-
per_twin_state_keys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
28
|
-
state_initial_key: z.ZodOptional<z.ZodString>;
|
|
29
|
-
state_final_key: z.ZodOptional<z.ZodString>;
|
|
30
|
-
}, z.core.$strip>>>;
|
|
31
|
-
}, z.core.$strip>;
|
|
32
|
-
export type FinalizeRequest = z.infer<typeof finalizeRequestSchema>;
|
|
33
|
-
export declare const finalizeResponseSchema: z.ZodObject<{
|
|
34
|
-
run_id: z.ZodString;
|
|
35
|
-
score: z.ZodNumber;
|
|
36
|
-
judge_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
-
dashboard_url: z.ZodString;
|
|
38
|
-
criteria_results: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
39
|
-
criterion: z.ZodObject<{
|
|
40
|
-
type: z.ZodPipe<z.ZodEnum<{
|
|
41
|
-
model: "model";
|
|
42
|
-
code: "code";
|
|
43
|
-
D: "D";
|
|
44
|
-
P: "P";
|
|
45
|
-
}>, z.ZodTransform<"model" | "code", "model" | "code" | "D" | "P">>;
|
|
46
|
-
text: z.ZodString;
|
|
47
|
-
twin: z.ZodOptional<z.ZodString>;
|
|
48
|
-
}, z.core.$strip>;
|
|
49
|
-
passed: z.ZodBoolean;
|
|
50
|
-
skipped: z.ZodBoolean;
|
|
51
|
-
reason: z.ZodString;
|
|
52
|
-
confidence: z.ZodNumber;
|
|
53
|
-
judge_model: z.ZodString;
|
|
54
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
55
|
-
criterion: z.ZodObject<{
|
|
56
|
-
type: z.ZodPipe<z.ZodEnum<{
|
|
57
|
-
model: "model";
|
|
58
|
-
code: "code";
|
|
59
|
-
D: "D";
|
|
60
|
-
P: "P";
|
|
61
|
-
}>, z.ZodTransform<"model" | "code", "model" | "code" | "D" | "P">>;
|
|
62
|
-
text: z.ZodString;
|
|
63
|
-
twin: z.ZodOptional<z.ZodString>;
|
|
64
|
-
}, z.core.$strip>;
|
|
65
|
-
passed: z.ZodBoolean;
|
|
66
|
-
skipped: z.ZodBoolean;
|
|
67
|
-
reason: z.ZodString;
|
|
68
|
-
}, z.core.$strip>]>>>;
|
|
69
|
-
}, z.core.$strip>;
|
|
70
|
-
export type FinalizeResponse = z.infer<typeof finalizeResponseSchema>;
|
|
71
|
-
export declare const finalizeStatusUrlSchema: z.ZodString;
|
|
72
|
-
export type FinalizeStatusUrl = z.infer<typeof finalizeStatusUrlSchema>;
|
|
73
|
-
export declare const finalizeAcceptedResponseSchema: z.ZodObject<{
|
|
74
|
-
evaluation_id: z.ZodString;
|
|
75
|
-
run_id: z.ZodString;
|
|
76
|
-
status: z.ZodLiteral<"queued">;
|
|
77
|
-
status_url: z.ZodString;
|
|
78
|
-
}, z.core.$strict>;
|
|
79
|
-
export type FinalizeAcceptedResponse = z.infer<typeof finalizeAcceptedResponseSchema>;
|
|
80
|
-
export declare const finalizeQueuedStatusResponseSchema: z.ZodObject<{
|
|
81
|
-
status: z.ZodLiteral<"queued">;
|
|
82
|
-
evaluation_id: z.ZodString;
|
|
83
|
-
run_id: z.ZodString;
|
|
84
|
-
}, z.core.$strict>;
|
|
85
|
-
export type FinalizeQueuedStatusResponse = z.infer<typeof finalizeQueuedStatusResponseSchema>;
|
|
86
|
-
export declare const finalizeRunningStatusResponseSchema: z.ZodObject<{
|
|
87
|
-
status: z.ZodLiteral<"running">;
|
|
88
|
-
evaluation_id: z.ZodString;
|
|
89
|
-
run_id: z.ZodString;
|
|
90
|
-
}, z.core.$strict>;
|
|
91
|
-
export type FinalizeRunningStatusResponse = z.infer<typeof finalizeRunningStatusResponseSchema>;
|
|
92
|
-
export declare const finalizeFailureErrorSchema: z.ZodObject<{
|
|
93
|
-
type: z.ZodString;
|
|
94
|
-
message: z.ZodString;
|
|
95
|
-
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
96
|
-
}, z.core.$strict>;
|
|
97
|
-
export type FinalizeFailureError = z.infer<typeof finalizeFailureErrorSchema>;
|
|
98
|
-
export declare const finalizeFailedStatusResponseSchema: z.ZodObject<{
|
|
99
|
-
status: z.ZodLiteral<"failed">;
|
|
100
|
-
error: z.ZodObject<{
|
|
101
|
-
type: z.ZodString;
|
|
102
|
-
message: z.ZodString;
|
|
103
|
-
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
104
|
-
}, z.core.$strict>;
|
|
105
|
-
evaluation_id: z.ZodString;
|
|
106
|
-
run_id: z.ZodString;
|
|
107
|
-
}, z.core.$strict>;
|
|
108
|
-
export type FinalizeFailedStatusResponse = z.infer<typeof finalizeFailedStatusResponseSchema>;
|
|
109
|
-
export declare const finalizeCompletedStatusResponseSchema: z.ZodObject<{
|
|
110
|
-
status: z.ZodLiteral<"completed">;
|
|
111
|
-
result: z.ZodObject<{
|
|
112
|
-
run_id: z.ZodString;
|
|
113
|
-
score: z.ZodNumber;
|
|
114
|
-
judge_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
115
|
-
dashboard_url: z.ZodString;
|
|
116
|
-
criteria_results: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
117
|
-
criterion: z.ZodObject<{
|
|
118
|
-
type: z.ZodPipe<z.ZodEnum<{
|
|
119
|
-
model: "model";
|
|
120
|
-
code: "code";
|
|
121
|
-
D: "D";
|
|
122
|
-
P: "P";
|
|
123
|
-
}>, z.ZodTransform<"model" | "code", "model" | "code" | "D" | "P">>;
|
|
124
|
-
text: z.ZodString;
|
|
125
|
-
twin: z.ZodOptional<z.ZodString>;
|
|
126
|
-
}, z.core.$strip>;
|
|
127
|
-
passed: z.ZodBoolean;
|
|
128
|
-
skipped: z.ZodBoolean;
|
|
129
|
-
reason: z.ZodString;
|
|
130
|
-
confidence: z.ZodNumber;
|
|
131
|
-
judge_model: z.ZodString;
|
|
132
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
133
|
-
criterion: z.ZodObject<{
|
|
134
|
-
type: z.ZodPipe<z.ZodEnum<{
|
|
135
|
-
model: "model";
|
|
136
|
-
code: "code";
|
|
137
|
-
D: "D";
|
|
138
|
-
P: "P";
|
|
139
|
-
}>, z.ZodTransform<"model" | "code", "model" | "code" | "D" | "P">>;
|
|
140
|
-
text: z.ZodString;
|
|
141
|
-
twin: z.ZodOptional<z.ZodString>;
|
|
142
|
-
}, z.core.$strip>;
|
|
143
|
-
passed: z.ZodBoolean;
|
|
144
|
-
skipped: z.ZodBoolean;
|
|
145
|
-
reason: z.ZodString;
|
|
146
|
-
}, z.core.$strip>]>>>;
|
|
147
|
-
}, z.core.$strip>;
|
|
148
|
-
evaluation_id: z.ZodString;
|
|
149
|
-
run_id: z.ZodString;
|
|
150
|
-
}, z.core.$strict>;
|
|
151
|
-
export type FinalizeCompletedStatusResponse = z.infer<typeof finalizeCompletedStatusResponseSchema>;
|
|
152
|
-
export declare const finalizeStatusResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
153
|
-
status: z.ZodLiteral<"queued">;
|
|
154
|
-
evaluation_id: z.ZodString;
|
|
155
|
-
run_id: z.ZodString;
|
|
156
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
157
|
-
status: z.ZodLiteral<"running">;
|
|
158
|
-
evaluation_id: z.ZodString;
|
|
159
|
-
run_id: z.ZodString;
|
|
160
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
161
|
-
status: z.ZodLiteral<"failed">;
|
|
162
|
-
error: z.ZodObject<{
|
|
163
|
-
type: z.ZodString;
|
|
164
|
-
message: z.ZodString;
|
|
165
|
-
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
166
|
-
}, z.core.$strict>;
|
|
167
|
-
evaluation_id: z.ZodString;
|
|
168
|
-
run_id: z.ZodString;
|
|
169
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
170
|
-
status: z.ZodLiteral<"completed">;
|
|
171
|
-
result: z.ZodObject<{
|
|
172
|
-
run_id: z.ZodString;
|
|
173
|
-
score: z.ZodNumber;
|
|
174
|
-
judge_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
175
|
-
dashboard_url: z.ZodString;
|
|
176
|
-
criteria_results: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
177
|
-
criterion: z.ZodObject<{
|
|
178
|
-
type: z.ZodPipe<z.ZodEnum<{
|
|
179
|
-
model: "model";
|
|
180
|
-
code: "code";
|
|
181
|
-
D: "D";
|
|
182
|
-
P: "P";
|
|
183
|
-
}>, z.ZodTransform<"model" | "code", "model" | "code" | "D" | "P">>;
|
|
184
|
-
text: z.ZodString;
|
|
185
|
-
twin: z.ZodOptional<z.ZodString>;
|
|
186
|
-
}, z.core.$strip>;
|
|
187
|
-
passed: z.ZodBoolean;
|
|
188
|
-
skipped: z.ZodBoolean;
|
|
189
|
-
reason: z.ZodString;
|
|
190
|
-
confidence: z.ZodNumber;
|
|
191
|
-
judge_model: z.ZodString;
|
|
192
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
193
|
-
criterion: z.ZodObject<{
|
|
194
|
-
type: z.ZodPipe<z.ZodEnum<{
|
|
195
|
-
model: "model";
|
|
196
|
-
code: "code";
|
|
197
|
-
D: "D";
|
|
198
|
-
P: "P";
|
|
199
|
-
}>, z.ZodTransform<"model" | "code", "model" | "code" | "D" | "P">>;
|
|
200
|
-
text: z.ZodString;
|
|
201
|
-
twin: z.ZodOptional<z.ZodString>;
|
|
202
|
-
}, z.core.$strip>;
|
|
203
|
-
passed: z.ZodBoolean;
|
|
204
|
-
skipped: z.ZodBoolean;
|
|
205
|
-
reason: z.ZodString;
|
|
206
|
-
}, z.core.$strip>]>>>;
|
|
207
|
-
}, z.core.$strip>;
|
|
208
|
-
evaluation_id: z.ZodString;
|
|
209
|
-
run_id: z.ZodString;
|
|
210
|
-
}, z.core.$strict>], "status">;
|
|
211
|
-
export type FinalizeStatusResponse = z.infer<typeof finalizeStatusResponseSchema>;
|
|
212
|
-
export declare const finalizeInitialResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
213
|
-
run_id: z.ZodString;
|
|
214
|
-
score: z.ZodNumber;
|
|
215
|
-
judge_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
216
|
-
dashboard_url: z.ZodString;
|
|
217
|
-
criteria_results: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
218
|
-
criterion: z.ZodObject<{
|
|
219
|
-
type: z.ZodPipe<z.ZodEnum<{
|
|
220
|
-
model: "model";
|
|
221
|
-
code: "code";
|
|
222
|
-
D: "D";
|
|
223
|
-
P: "P";
|
|
224
|
-
}>, z.ZodTransform<"model" | "code", "model" | "code" | "D" | "P">>;
|
|
225
|
-
text: z.ZodString;
|
|
226
|
-
twin: z.ZodOptional<z.ZodString>;
|
|
227
|
-
}, z.core.$strip>;
|
|
228
|
-
passed: z.ZodBoolean;
|
|
229
|
-
skipped: z.ZodBoolean;
|
|
230
|
-
reason: z.ZodString;
|
|
231
|
-
confidence: z.ZodNumber;
|
|
232
|
-
judge_model: z.ZodString;
|
|
233
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
234
|
-
criterion: z.ZodObject<{
|
|
235
|
-
type: z.ZodPipe<z.ZodEnum<{
|
|
236
|
-
model: "model";
|
|
237
|
-
code: "code";
|
|
238
|
-
D: "D";
|
|
239
|
-
P: "P";
|
|
240
|
-
}>, z.ZodTransform<"model" | "code", "model" | "code" | "D" | "P">>;
|
|
241
|
-
text: z.ZodString;
|
|
242
|
-
twin: z.ZodOptional<z.ZodString>;
|
|
243
|
-
}, z.core.$strip>;
|
|
244
|
-
passed: z.ZodBoolean;
|
|
245
|
-
skipped: z.ZodBoolean;
|
|
246
|
-
reason: z.ZodString;
|
|
247
|
-
}, z.core.$strip>]>>>;
|
|
248
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
249
|
-
evaluation_id: z.ZodString;
|
|
250
|
-
run_id: z.ZodString;
|
|
251
|
-
status: z.ZodLiteral<"queued">;
|
|
252
|
-
status_url: z.ZodString;
|
|
253
|
-
}, z.core.$strict>]>;
|
|
254
|
-
export type FinalizeInitialResponse = z.infer<typeof finalizeInitialResponseSchema>;
|
package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
-
//
|
|
3
|
-
// shared-types — /v1/sessions/:id/finalize response family (part of §4 PUBLIC
|
|
4
|
-
// REST API). ADR-013 managed-judge synchronous result plus the F-700 async
|
|
5
|
-
// `Prefer: respond-async` accepted/status/union shapes. Re-exported through the
|
|
6
|
-
// `@pome-sh/shared-types` barrel (index.ts).
|
|
7
|
-
import { z } from "zod";
|
|
8
|
-
import { criterionResultSchema } from "./run.js";
|
|
9
|
-
import { criterionDefSchema, perTwinStateKeysSchema } from "./rest.js";
|
|
10
|
-
// POST /v1/sessions/:id/finalize — ADR-013 managed-judge REQUEST. This is the
|
|
11
|
-
// LIVE scoring wire: the CLI (cli/src/hosted/client.ts `finalize`) uploads trace
|
|
12
|
-
// / state / signals blobs via the presigned upload-url routes, then POSTs the
|
|
13
|
-
// criterion *definitions* plus the storage KEYS here; the cloud runs the managed
|
|
14
|
-
// judge and returns `finalizeInitialResponseSchema`. (The sibling
|
|
15
|
-
// `submitResultRequestSchema` in rest.ts is the DEPRECATED BYOK shim that scores
|
|
16
|
-
// CLI-side and uploads inline state_*_json_b64.)
|
|
17
|
-
//
|
|
18
|
-
// Not `.strict()`: a tolerant reader that strips unknown additive keys, matching
|
|
19
|
-
// the rest of the §4 request/response family. Field set mirrors the CLI body
|
|
20
|
-
// exactly — `scenario_*` vocab (finalize does not take the W3 `task_*` aliases),
|
|
21
|
-
// storage keys optional (cloud falls back to conventional paths when omitted).
|
|
22
|
-
export const finalizeRequestSchema = z.object({
|
|
23
|
-
stop_reason: z.string(), // "completed" | "timeout" | "preflight_failed" | …
|
|
24
|
-
exit_code: z.number().int(),
|
|
25
|
-
duration_ms: z.number().int(),
|
|
26
|
-
agent_model: z.string(),
|
|
27
|
-
agent_sdk: z.string().nullable(), // normalizeAgentSdk() output: trimmed string or null
|
|
28
|
-
// Criterion DEFINITIONS (not results): cloud judges these against the recorded
|
|
29
|
-
// trace/state and returns the authoritative score. Carries optional per-criterion
|
|
30
|
-
// twin attribution (multi-twin M3).
|
|
31
|
-
criteria: z.array(criterionDefSchema),
|
|
32
|
-
scenario_name: z.string(),
|
|
33
|
-
scenario_hash: z.string(),
|
|
34
|
-
scenario_prompt: z.string(),
|
|
35
|
-
expected_behavior: z.string(),
|
|
36
|
-
// Optional storage-key overrides; omitted keys fall back to the conventional
|
|
37
|
-
// team-<>/session-<>/<filename> paths written by the *-upload-url routes.
|
|
38
|
-
trace_storage_key: z.string().optional(),
|
|
39
|
-
state_initial_storage_key: z.string().optional(),
|
|
40
|
-
state_final_storage_key: z.string().optional(),
|
|
41
|
-
signals_storage_key: z.string().optional(),
|
|
42
|
-
// Multi-twin (M3): additive per-twin state storage keys, keyed by twin id.
|
|
43
|
-
// Absent on single-twin sessions, which use the flat state_*_storage_key fields
|
|
44
|
-
// above. Unknown to an older cloud, which strips it and scores the primary twin
|
|
45
|
-
// unchanged (new CLI × old cloud degrades gracefully).
|
|
46
|
-
per_twin_state_keys: perTwinStateKeysSchema.optional(),
|
|
47
|
-
});
|
|
48
|
-
// /v1/sessions/:id/finalize — ADR-013 managed-judge response.
|
|
49
|
-
// Not `.strict()`: cloud may emit additive M7 keys (`evaluator_version`,
|
|
50
|
-
// `criteria_breakdown`, `all_skipped`, `provenance`) that older/newer CLIs
|
|
51
|
-
// strip rather than reject.
|
|
52
|
-
export const finalizeResponseSchema = z.object({
|
|
53
|
-
run_id: z.string(),
|
|
54
|
-
score: z.number().int().min(0).max(100),
|
|
55
|
-
judge_model: z.string().nullable().optional(),
|
|
56
|
-
dashboard_url: z.string().url(),
|
|
57
|
-
criteria_results: z.array(criterionResultSchema).optional(),
|
|
58
|
-
});
|
|
59
|
-
// F-700: `status_url` is a same-origin absolute URL *or* an absolute-path
|
|
60
|
-
// relative URL (cloud returns `/v1/sessions/:id/evaluation`).
|
|
61
|
-
export const finalizeStatusUrlSchema = z
|
|
62
|
-
.string()
|
|
63
|
-
.min(1)
|
|
64
|
-
.refine((value) => {
|
|
65
|
-
if (value.startsWith("/") && !value.startsWith("//"))
|
|
66
|
-
return true;
|
|
67
|
-
try {
|
|
68
|
-
new URL(value);
|
|
69
|
-
return true;
|
|
70
|
-
}
|
|
71
|
-
catch {
|
|
72
|
-
return false;
|
|
73
|
-
}
|
|
74
|
-
}, { message: "Invalid status_url" });
|
|
75
|
-
// POST /v1/sessions/:id/finalize with `Prefer: respond-async`.
|
|
76
|
-
// The legacy scored response remains in the initial-response union for the
|
|
77
|
-
// synchronous N-1 compatibility window.
|
|
78
|
-
export const finalizeAcceptedResponseSchema = z.object({
|
|
79
|
-
evaluation_id: z.string().min(1),
|
|
80
|
-
run_id: z.string().min(1),
|
|
81
|
-
status: z.literal("queued"),
|
|
82
|
-
status_url: finalizeStatusUrlSchema,
|
|
83
|
-
}).strict();
|
|
84
|
-
const finalizeStatusIdentitySchema = {
|
|
85
|
-
evaluation_id: z.string().min(1),
|
|
86
|
-
run_id: z.string().min(1),
|
|
87
|
-
};
|
|
88
|
-
export const finalizeQueuedStatusResponseSchema = z.object({
|
|
89
|
-
...finalizeStatusIdentitySchema,
|
|
90
|
-
status: z.literal("queued"),
|
|
91
|
-
}).strict();
|
|
92
|
-
export const finalizeRunningStatusResponseSchema = z.object({
|
|
93
|
-
...finalizeStatusIdentitySchema,
|
|
94
|
-
status: z.literal("running"),
|
|
95
|
-
}).strict();
|
|
96
|
-
// F-700 wire error on GET .../evaluation failed status.
|
|
97
|
-
export const finalizeFailureErrorSchema = z.object({
|
|
98
|
-
type: z.string().min(1),
|
|
99
|
-
message: z.string().min(1),
|
|
100
|
-
details: z.record(z.string(), z.unknown()).optional(),
|
|
101
|
-
}).strict();
|
|
102
|
-
export const finalizeFailedStatusResponseSchema = z.object({
|
|
103
|
-
...finalizeStatusIdentitySchema,
|
|
104
|
-
status: z.literal("failed"),
|
|
105
|
-
error: finalizeFailureErrorSchema,
|
|
106
|
-
}).strict();
|
|
107
|
-
export const finalizeCompletedStatusResponseSchema = z.object({
|
|
108
|
-
...finalizeStatusIdentitySchema,
|
|
109
|
-
status: z.literal("completed"),
|
|
110
|
-
result: finalizeResponseSchema,
|
|
111
|
-
}).strict();
|
|
112
|
-
export const finalizeStatusResponseSchema = z.discriminatedUnion("status", [
|
|
113
|
-
finalizeQueuedStatusResponseSchema,
|
|
114
|
-
finalizeRunningStatusResponseSchema,
|
|
115
|
-
finalizeFailedStatusResponseSchema,
|
|
116
|
-
finalizeCompletedStatusResponseSchema,
|
|
117
|
-
]);
|
|
118
|
-
export const finalizeInitialResponseSchema = z.union([
|
|
119
|
-
finalizeResponseSchema,
|
|
120
|
-
finalizeAcceptedResponseSchema,
|
|
121
|
-
]);
|
|
122
|
-
//# sourceMappingURL=finalize-shapes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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;AAE7C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAEvE,8EAA8E;AAC9E,iFAAiF;AACjF,8EAA8E;AAC9E,iFAAiF;AACjF,kEAAkE;AAClE,iFAAiF;AACjF,iDAAiD;AACjD,EAAE;AACF,iFAAiF;AACjF,6EAA6E;AAC7E,iFAAiF;AACjF,+EAA+E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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"}
|
|
@@ -1,175 +0,0 @@
|
|
|
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[];
|