switchboard-cli 0.1.0-alpha.1 → 0.1.0-alpha.3
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/calibration/ledger/baselines/baseline-2026-04-09.yaml +1 -1
- package/calibration/ledger/history.yaml +0 -9
- package/node_modules/@switchboard/core/node_modules/zod/LICENSE +21 -0
- package/node_modules/@switchboard/core/node_modules/zod/README.md +208 -0
- package/node_modules/@switchboard/core/node_modules/zod/index.cjs +33 -0
- package/node_modules/@switchboard/core/node_modules/zod/index.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/index.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/index.js +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/package.json +118 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/index.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/function.test.ts +257 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v3/types.ts +5136 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/checks.ts +30 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/compat.ts +66 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/errors.ts +75 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/external.ts +50 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/parse.ts +33 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/core/api.ts +1594 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/core/checks.ts +1283 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/core/config.ts +15 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/core/core.ts +134 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/core/errors.ts +424 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/core/function.ts +176 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/core/index.ts +15 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/core/json-schema.ts +143 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/core/parse.ts +94 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/core/regexes.ts +135 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/core/registries.ts +96 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/core/schemas.ts +3842 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/core/util.ts +775 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/ar.ts +125 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/az.ts +121 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/be.ts +184 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/ca.ts +127 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/cs.ts +142 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/de.ts +124 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/en.ts +127 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/eo.ts +125 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/es.ts +125 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/fa.ts +134 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/fi.ts +131 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/fr.ts +124 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/he.ts +125 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/hu.ts +126 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/id.ts +125 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/index.ts +39 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/it.ts +125 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/ja.ts +122 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/kh.ts +126 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/ko.ts +131 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/mk.ts +127 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/ms.ts +124 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/no.ts +124 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/ota.ts +125 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/pl.ts +126 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/ps.ts +133 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/pt.ts +123 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/ru.ts +184 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/sl.ts +126 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/sv.ts +127 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/ta.ts +125 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/th.ts +126 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/tr.ts +121 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/ua.ts +126 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/ur.ts +126 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/vi.ts +125 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/coerce.ts +22 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/external.ts +40 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/iso.ts +62 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/parse.ts +1 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
- package/node_modules/@switchboard/core/node_modules/zod/src/v4-mini/index.ts +1 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/ZodError.cjs +138 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/ZodError.js +133 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/errors.cjs +17 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/external.cjs +22 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/external.js +6 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/index.cjs +33 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/index.js +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/locales/en.cjs +111 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/types.cjs +3775 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/types.d.cts +1031 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/types.d.ts +1031 -0
- package/node_modules/@switchboard/core/node_modules/zod/v3/types.js +3693 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/checks.cjs +32 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/compat.cjs +57 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/compat.d.cts +46 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/compat.d.ts +46 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/compat.js +27 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/errors.cjs +67 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/errors.js +41 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/external.cjs +70 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/external.d.cts +13 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/external.d.ts +13 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/external.js +18 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/index.cjs +33 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/iso.js +30 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/parse.cjs +32 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/parse.d.cts +23 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/parse.d.ts +23 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/parse.js +6 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/schemas.cjs +1109 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/schemas.d.cts +630 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/schemas.d.ts +630 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/classic/schemas.js +1006 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/api.cjs +1039 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/api.d.cts +284 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/api.d.ts +284 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/api.js +906 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/checks.cjs +591 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/checks.js +565 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/core.cjs +67 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/core.d.cts +49 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/core.d.ts +49 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/core.js +61 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/doc.cjs +39 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/doc.js +35 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/errors.cjs +226 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/errors.d.cts +208 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/errors.d.ts +208 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/errors.js +195 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/function.cjs +102 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/function.d.cts +52 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/function.d.ts +52 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/function.js +75 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/index.cjs +44 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/index.d.cts +15 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/index.d.ts +15 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/index.js +15 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/json-schema.d.cts +87 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/json-schema.d.ts +87 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/parse.cjs +87 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/parse.d.cts +25 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/parse.d.ts +25 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/parse.js +57 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/regexes.cjs +103 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/regexes.d.cts +62 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/regexes.d.ts +62 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/regexes.js +95 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/registries.cjs +56 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/schemas.cjs +1748 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/schemas.d.cts +1041 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/schemas.d.ts +1041 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/schemas.js +1717 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/to-json-schema.js +849 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/util.cjs +539 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/util.d.cts +183 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/util.d.ts +183 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/util.js +493 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/versions.cjs +8 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/index.cjs +22 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/index.js +3 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ar.cjs +142 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ar.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ar.js +116 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/az.cjs +141 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/az.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/az.js +115 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/be.cjs +190 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/be.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/be.js +164 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ca.cjs +144 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ca.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ca.js +118 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/cs.cjs +161 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/cs.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/cs.js +135 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/de.cjs +142 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/de.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/de.js +116 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/en.cjs +145 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/en.d.ts +5 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/en.js +117 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/eo.cjs +144 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/eo.d.ts +5 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/eo.js +116 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/es.cjs +143 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/es.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/es.js +117 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/fa.cjs +148 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/fa.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/fa.js +122 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/fi.cjs +148 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/fi.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/fi.js +122 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/fr-CA.js +117 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/fr.cjs +142 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/fr.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/fr.js +116 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/he.cjs +143 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/he.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/he.js +117 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/hu.cjs +143 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/hu.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/hu.js +117 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/id.cjs +142 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/id.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/id.js +116 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/index.cjs +84 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/index.d.cts +39 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/index.d.ts +39 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/index.js +39 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/it.cjs +143 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/it.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/it.js +117 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ja.cjs +141 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ja.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ja.js +115 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/kh.cjs +143 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/kh.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/kh.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/kh.js +117 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ko.cjs +147 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ko.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ko.js +121 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/mk.cjs +144 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/mk.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/mk.js +118 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ms.cjs +142 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ms.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ms.js +116 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/nl.cjs +143 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/nl.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/nl.js +117 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/no.cjs +142 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/no.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/no.js +116 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ota.cjs +143 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ota.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ota.js +117 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/pl.cjs +143 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/pl.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/pl.js +117 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ps.cjs +148 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ps.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ps.js +122 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/pt.cjs +142 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/pt.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/pt.js +116 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ru.cjs +190 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ru.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ru.js +164 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/sl.cjs +143 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/sl.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/sl.js +117 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/sv.cjs +144 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/sv.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/sv.js +118 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ta.cjs +143 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ta.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ta.js +117 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/th.cjs +143 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/th.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/th.js +117 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/tr.cjs +143 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/tr.d.ts +5 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/tr.js +115 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ua.cjs +143 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ua.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ua.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ua.js +117 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ur.cjs +143 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ur.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/ur.js +117 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/vi.cjs +142 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/vi.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/vi.js +116 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/zh-CN.js +116 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/locales/zh-TW.js +117 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/mini/coerce.cjs +47 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/mini/coerce.js +17 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/mini/external.cjs +62 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/mini/external.d.cts +11 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/mini/external.d.ts +11 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/mini/external.js +13 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/mini/index.cjs +32 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/mini/iso.cjs +60 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/mini/iso.js +30 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/mini/parse.cjs +8 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/mini/schemas.cjs +839 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/mini/schemas.d.cts +356 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/mini/schemas.d.ts +356 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4/mini/schemas.js +732 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4-mini/index.cjs +17 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4-mini/index.d.cts +1 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4-mini/index.d.ts +1 -0
- package/node_modules/@switchboard/core/node_modules/zod/v4-mini/index.js +1 -0
- package/node_modules/@switchboard/core/package.json +20 -0
- package/node_modules/@switchboard/core/src/activation.ts +285 -0
- package/node_modules/@switchboard/core/src/audited-receipt.ts +403 -0
- package/node_modules/@switchboard/core/src/budget-ledger.ts +223 -0
- package/node_modules/@switchboard/core/src/build-map.ts +327 -0
- package/node_modules/@switchboard/core/src/canonical-delta.ts +754 -0
- package/node_modules/@switchboard/core/src/canonical-pack.ts +400 -0
- package/node_modules/@switchboard/core/src/canonical.ts +248 -0
- package/node_modules/@switchboard/core/src/claim-spread.ts +219 -0
- package/node_modules/@switchboard/core/src/classifier.ts +207 -0
- package/node_modules/@switchboard/core/src/claude-executor.ts +37 -0
- package/node_modules/@switchboard/core/src/codex-audit.ts +301 -0
- package/node_modules/@switchboard/core/src/codex-executor.ts +22 -0
- package/node_modules/@switchboard/core/src/compiler-adapter.ts +284 -0
- package/node_modules/@switchboard/core/src/compiler.ts +183 -0
- package/node_modules/@switchboard/core/src/dispatch-formatter.ts +348 -0
- package/node_modules/@switchboard/core/src/dispatch-receipt.ts +135 -0
- package/node_modules/@switchboard/core/src/dossier.ts +229 -0
- package/node_modules/@switchboard/core/src/eval-scope.ts +208 -0
- package/node_modules/@switchboard/core/src/evaluation-lane.ts +584 -0
- package/node_modules/@switchboard/core/src/execution-trace.ts +455 -0
- package/node_modules/@switchboard/core/src/gate-state.ts +296 -0
- package/node_modules/@switchboard/core/src/gates.ts +198 -0
- package/node_modules/@switchboard/core/src/governance-envelope.ts +317 -0
- package/node_modules/@switchboard/core/src/handoff-v2.ts +221 -0
- package/node_modules/@switchboard/core/src/handoff-visibility.ts +204 -0
- package/node_modules/@switchboard/core/src/handoff.ts +87 -0
- package/node_modules/@switchboard/core/src/harness-compiler.ts +246 -0
- package/node_modules/@switchboard/core/src/index.ts +57 -0
- package/node_modules/@switchboard/core/src/ingest.ts +128 -0
- package/node_modules/@switchboard/core/src/launch-block-payload.ts +51 -0
- package/node_modules/@switchboard/core/src/ledger.ts +313 -0
- package/node_modules/@switchboard/core/src/live-event-bus.ts +37 -0
- package/node_modules/@switchboard/core/src/live-event.ts +238 -0
- package/node_modules/@switchboard/core/src/lock-readiness.ts +242 -0
- package/node_modules/@switchboard/core/src/loop-compiler.ts +152 -0
- package/node_modules/@switchboard/core/src/loop-validator.ts +55 -0
- package/node_modules/@switchboard/core/src/meta-harness.ts +411 -0
- package/node_modules/@switchboard/core/src/overflow-manifest.ts +220 -0
- package/node_modules/@switchboard/core/src/packet-integrity.ts +302 -0
- package/node_modules/@switchboard/core/src/parallel-conflict.ts +268 -0
- package/node_modules/@switchboard/core/src/preflight.ts +181 -0
- package/node_modules/@switchboard/core/src/pressure-assessment.ts +265 -0
- package/node_modules/@switchboard/core/src/product-objects.ts +99 -0
- package/node_modules/@switchboard/core/src/project-charter.ts +193 -0
- package/node_modules/@switchboard/core/src/proof-capture.ts +319 -0
- package/node_modules/@switchboard/core/src/provider-registry.ts +163 -0
- package/node_modules/@switchboard/core/src/receipt-v2.ts +904 -0
- package/node_modules/@switchboard/core/src/reconcile-matrix.ts +154 -0
- package/node_modules/@switchboard/core/src/reconcile-v2.ts +272 -0
- package/node_modules/@switchboard/core/src/reconcile.ts +450 -0
- package/node_modules/@switchboard/core/src/return-normalizer.ts +226 -0
- package/node_modules/@switchboard/core/src/router.ts +207 -0
- package/node_modules/@switchboard/core/src/routing-v2.ts +214 -0
- package/node_modules/@switchboard/core/src/run-snapshot.ts +405 -0
- package/node_modules/@switchboard/core/src/surface-playbooks.ts +36 -0
- package/node_modules/@switchboard/core/src/surface-profiles.ts +166 -0
- package/node_modules/@switchboard/core/src/synthesis-provider.ts +1114 -0
- package/node_modules/@switchboard/core/src/types.ts +3054 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/LICENSE +21 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/README.md +208 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/index.cjs +33 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/index.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/index.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/index.js +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/package.json +118 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/index.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/function.test.ts +257 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v3/types.ts +5136 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/checks.ts +30 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/compat.ts +66 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/errors.ts +75 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/external.ts +50 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/parse.ts +33 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/core/api.ts +1594 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/core/checks.ts +1283 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/core/config.ts +15 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/core/core.ts +134 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/core/errors.ts +424 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/core/function.ts +176 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/core/index.ts +15 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/core/json-schema.ts +143 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/core/parse.ts +94 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/core/regexes.ts +135 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/core/registries.ts +96 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/core/schemas.ts +3842 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/core/util.ts +775 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/ar.ts +125 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/az.ts +121 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/be.ts +184 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/ca.ts +127 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/cs.ts +142 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/de.ts +124 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/en.ts +127 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/eo.ts +125 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/es.ts +125 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/fa.ts +134 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/fi.ts +131 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/fr.ts +124 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/he.ts +125 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/hu.ts +126 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/id.ts +125 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/index.ts +39 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/it.ts +125 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/ja.ts +122 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/kh.ts +126 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/ko.ts +131 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/mk.ts +127 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/ms.ts +124 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/no.ts +124 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/ota.ts +125 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/pl.ts +126 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/ps.ts +133 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/pt.ts +123 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/ru.ts +184 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/sl.ts +126 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/sv.ts +127 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/ta.ts +125 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/th.ts +126 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/tr.ts +121 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/ua.ts +126 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/ur.ts +126 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/vi.ts +125 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/coerce.ts +22 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/external.ts +40 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/iso.ts +62 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/parse.ts +1 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/src/v4-mini/index.ts +1 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/ZodError.cjs +138 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/ZodError.js +133 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/errors.cjs +17 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/external.cjs +22 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/external.js +6 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/index.cjs +33 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/index.js +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/locales/en.cjs +111 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/types.cjs +3775 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/types.d.cts +1031 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/types.d.ts +1031 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v3/types.js +3693 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/checks.cjs +32 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/compat.cjs +57 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/compat.d.cts +46 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/compat.d.ts +46 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/compat.js +27 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/errors.cjs +67 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/errors.js +41 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/external.cjs +70 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/external.d.cts +13 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/external.d.ts +13 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/external.js +18 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/index.cjs +33 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/iso.js +30 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/parse.cjs +32 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/parse.d.cts +23 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/parse.d.ts +23 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/parse.js +6 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/schemas.cjs +1109 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/schemas.d.cts +630 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/schemas.d.ts +630 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/classic/schemas.js +1006 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/api.cjs +1039 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/api.d.cts +284 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/api.d.ts +284 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/api.js +906 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/checks.cjs +591 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/checks.js +565 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/core.cjs +67 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/core.d.cts +49 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/core.d.ts +49 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/core.js +61 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/doc.cjs +39 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/doc.js +35 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/errors.cjs +226 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/errors.d.cts +208 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/errors.d.ts +208 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/errors.js +195 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/function.cjs +102 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/function.d.cts +52 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/function.d.ts +52 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/function.js +75 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/index.cjs +44 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/index.d.cts +15 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/index.d.ts +15 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/index.js +15 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/json-schema.d.cts +87 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/json-schema.d.ts +87 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/parse.cjs +87 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/parse.d.cts +25 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/parse.d.ts +25 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/parse.js +57 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/regexes.cjs +103 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/regexes.d.cts +62 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/regexes.d.ts +62 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/regexes.js +95 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/registries.cjs +56 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/schemas.cjs +1748 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/schemas.d.cts +1041 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/schemas.d.ts +1041 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/schemas.js +1717 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/to-json-schema.js +849 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/util.cjs +539 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/util.d.cts +183 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/util.d.ts +183 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/util.js +493 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/versions.cjs +8 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/index.cjs +22 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/index.js +3 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ar.cjs +142 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ar.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ar.js +116 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/az.cjs +141 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/az.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/az.js +115 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/be.cjs +190 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/be.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/be.js +164 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ca.cjs +144 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ca.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ca.js +118 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/cs.cjs +161 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/cs.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/cs.js +135 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/de.cjs +142 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/de.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/de.js +116 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/en.cjs +145 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/en.d.ts +5 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/en.js +117 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/eo.cjs +144 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/eo.d.ts +5 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/eo.js +116 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/es.cjs +143 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/es.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/es.js +117 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/fa.cjs +148 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/fa.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/fa.js +122 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/fi.cjs +148 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/fi.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/fi.js +122 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/fr-CA.js +117 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/fr.cjs +142 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/fr.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/fr.js +116 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/he.cjs +143 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/he.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/he.js +117 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/hu.cjs +143 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/hu.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/hu.js +117 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/id.cjs +142 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/id.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/id.js +116 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/index.cjs +84 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/index.d.cts +39 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/index.d.ts +39 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/index.js +39 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/it.cjs +143 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/it.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/it.js +117 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ja.cjs +141 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ja.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ja.js +115 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/kh.cjs +143 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/kh.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/kh.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/kh.js +117 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ko.cjs +147 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ko.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ko.js +121 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/mk.cjs +144 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/mk.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/mk.js +118 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ms.cjs +142 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ms.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ms.js +116 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/nl.cjs +143 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/nl.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/nl.js +117 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/no.cjs +142 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/no.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/no.js +116 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ota.cjs +143 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ota.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ota.js +117 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/pl.cjs +143 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/pl.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/pl.js +117 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ps.cjs +148 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ps.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ps.js +122 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/pt.cjs +142 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/pt.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/pt.js +116 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ru.cjs +190 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ru.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ru.js +164 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/sl.cjs +143 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/sl.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/sl.js +117 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/sv.cjs +144 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/sv.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/sv.js +118 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ta.cjs +143 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ta.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ta.js +117 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/th.cjs +143 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/th.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/th.js +117 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/tr.cjs +143 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/tr.d.ts +5 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/tr.js +115 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ua.cjs +143 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ua.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ua.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ua.js +117 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ur.cjs +143 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ur.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/ur.js +117 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/vi.cjs +142 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/vi.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/vi.js +116 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/zh-CN.js +116 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/locales/zh-TW.js +117 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/mini/coerce.cjs +47 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/mini/coerce.js +17 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/mini/external.cjs +62 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/mini/external.d.cts +11 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/mini/external.d.ts +11 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/mini/external.js +13 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/mini/index.cjs +32 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/mini/iso.cjs +60 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/mini/iso.js +30 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/mini/parse.cjs +8 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/mini/schemas.cjs +839 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/mini/schemas.d.cts +356 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/mini/schemas.d.ts +356 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4/mini/schemas.js +732 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4-mini/index.cjs +17 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4-mini/index.d.cts +1 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4-mini/index.d.ts +1 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/node_modules/zod/v4-mini/index.js +1 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/package.json +20 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/activation.ts +285 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/audited-receipt.ts +403 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/budget-ledger.ts +223 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/build-map.ts +327 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/canonical-delta.ts +754 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/canonical-pack.ts +400 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/canonical.ts +248 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/claim-spread.ts +219 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/classifier.ts +207 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/claude-executor.ts +37 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/codex-audit.ts +301 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/codex-executor.ts +22 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/compiler-adapter.ts +284 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/compiler.ts +183 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/dispatch-formatter.ts +348 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/dispatch-receipt.ts +135 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/dossier.ts +229 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/eval-scope.ts +208 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/evaluation-lane.ts +584 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/execution-trace.ts +455 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/gate-state.ts +296 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/gates.ts +198 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/governance-envelope.ts +317 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/handoff-v2.ts +221 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/handoff-visibility.ts +204 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/handoff.ts +87 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/harness-compiler.ts +246 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/index.ts +57 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/ingest.ts +128 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/launch-block-payload.ts +51 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/ledger.ts +313 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/live-event-bus.ts +37 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/live-event.ts +238 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/lock-readiness.ts +242 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/loop-compiler.ts +152 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/loop-validator.ts +55 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/meta-harness.ts +411 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/overflow-manifest.ts +220 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/packet-integrity.ts +302 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/parallel-conflict.ts +268 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/preflight.ts +181 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/pressure-assessment.ts +265 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/product-objects.ts +99 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/project-charter.ts +193 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/proof-capture.ts +319 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/provider-registry.ts +163 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/receipt-v2.ts +904 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/reconcile-matrix.ts +154 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/reconcile-v2.ts +272 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/reconcile.ts +450 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/return-normalizer.ts +226 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/router.ts +207 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/routing-v2.ts +214 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/run-snapshot.ts +405 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/surface-playbooks.ts +36 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/surface-profiles.ts +166 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/synthesis-provider.ts +1114 -0
- package/node_modules/@switchboard/projections/node_modules/@switchboard/core/src/types.ts +3054 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/LICENSE +13 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/README.md +172 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/bin.mjs +11 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/compose/compose-collection.js +88 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/compose/compose-doc.js +43 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/compose/compose-node.js +109 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/compose/compose-scalar.js +86 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/compose/composer.js +217 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/compose/resolve-block-map.js +115 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +198 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +49 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +207 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +223 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/compose/resolve-props.js +146 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +26 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/compose/util-map-includes.js +13 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/doc/Document.js +335 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/doc/anchors.js +71 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/doc/createNode.js +88 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/doc/directives.js +176 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/errors.js +57 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/index.js +17 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/log.js +11 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/nodes/Alias.js +114 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/nodes/Collection.js +147 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/nodes/Node.js +38 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/nodes/Scalar.js +24 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/nodes/YAMLMap.js +144 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +113 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +63 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/nodes/identity.js +36 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/parse/cst.js +98 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/parse/lexer.js +717 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/parse/parser.js +967 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/public-api.js +102 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/schema/Schema.js +37 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/schema/common/map.js +17 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/schema/common/seq.js +17 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/schema/tags.js +96 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +58 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +64 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +74 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +78 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +39 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +93 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +146 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/stringify/stringify.js +129 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +153 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +24 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/stringify/stringifyString.js +336 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/util.js +11 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/dist/visit.js +233 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/index.js +5 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/browser/package.json +3 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/cli.d.ts +8 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/cli.mjs +201 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/compose-collection.d.ts +11 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/compose-collection.js +90 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/compose-doc.d.ts +7 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/compose-doc.js +45 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/compose-node.d.ts +29 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/compose-node.js +112 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/compose-scalar.d.ts +5 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/composer.d.ts +63 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/composer.js +222 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/resolve-block-map.d.ts +6 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +11 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +6 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/resolve-end.d.ts +6 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/resolve-end.js +39 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +10 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/resolve-flow-scalar.js +225 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/resolve-props.d.ts +23 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/resolve-props.js +148 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/util-contains-newline.d.ts +2 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +2 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +3 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/util-map-includes.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/doc/Document.d.ts +141 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/doc/Document.js +337 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/doc/anchors.d.ts +24 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/doc/anchors.js +76 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/doc/applyReviver.d.ts +9 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/doc/applyReviver.js +57 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/doc/createNode.d.ts +17 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/doc/createNode.js +90 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/doc/directives.d.ts +49 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/doc/directives.js +178 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/errors.d.ts +21 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/errors.js +62 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/index.d.ts +25 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/index.js +50 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/log.d.ts +3 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/log.js +19 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/nodes/Alias.d.ts +29 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/nodes/Alias.js +116 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/nodes/Collection.d.ts +73 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/nodes/Collection.js +151 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/nodes/Node.d.ts +53 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/nodes/Node.js +40 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/nodes/Pair.d.ts +22 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/nodes/Pair.js +39 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/nodes/Scalar.d.ts +43 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/nodes/Scalar.js +27 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/nodes/YAMLMap.d.ts +53 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +60 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/nodes/identity.d.ts +23 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/nodes/identity.js +53 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/nodes/toJS.d.ts +29 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/nodes/toJS.js +39 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/options.d.ts +350 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/parse/cst-scalar.d.ts +64 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/parse/cst-stringify.d.ts +8 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/parse/cst-visit.d.ts +39 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/parse/cst-visit.js +99 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/parse/cst.d.ts +109 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/parse/cst.js +112 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/parse/lexer.d.ts +87 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/parse/lexer.js +719 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/parse/line-counter.d.ts +22 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/parse/line-counter.js +41 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/parse/parser.d.ts +84 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/parse/parser.js +972 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/public-api.d.ts +44 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/public-api.js +107 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/Schema.d.ts +17 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/Schema.js +39 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/common/map.d.ts +2 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/common/map.js +19 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/common/null.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/common/null.js +17 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/common/seq.d.ts +2 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/common/seq.js +19 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/common/string.d.ts +2 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/common/string.js +16 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/core/bool.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/core/bool.js +21 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/core/float.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/core/float.js +47 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/core/int.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/core/int.js +42 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/core/schema.d.ts +1 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/core/schema.js +25 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/json/schema.d.ts +2 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/json/schema.js +64 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/json-schema.d.ts +69 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/tags.d.ts +48 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/tags.js +99 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/types.d.ts +92 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +2 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +7 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +5 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +9 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/yaml-1.1/merge.js +68 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +22 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +10 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +28 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +6 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +34 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/stringify/stringify.d.ts +21 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/stringify/stringify.js +132 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +17 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/stringify/stringifyCollection.js +155 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/stringify/stringifyComment.d.ts +10 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +2 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/stringify/stringifyNumber.js +26 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/stringify/stringifyPair.d.ts +3 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/stringify/stringifyString.d.ts +9 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/test-events.d.ts +4 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/test-events.js +134 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/util.d.ts +16 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/util.js +28 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/visit.d.ts +102 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/dist/visit.js +236 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/package.json +97 -0
- package/node_modules/@switchboard/projections/node_modules/yaml/util.js +2 -0
- package/node_modules/@switchboard/projections/package.json +21 -0
- package/node_modules/@switchboard/projections/src/claude/index.ts +164 -0
- package/node_modules/@switchboard/projections/src/index.ts +160 -0
- package/package.json +7 -35
- package/src/commands/receipt.ts +33 -2
- package/calibration/ledger/runs/2026-04-09T10-02-57-143Z/diffs/adv-a0c9e2bfb0d6.yaml +0 -9
- package/calibration/ledger/runs/2026-04-09T10-02-57-143Z/diffs/blind-3e892f3a89ee.yaml +0 -9
- package/calibration/ledger/runs/2026-04-09T10-02-57-143Z/diffs/blind-958b2f9e6816.yaml +0 -9
- package/calibration/ledger/runs/2026-04-09T10-02-57-143Z/manifest.yaml +0 -8
- package/calibration/ledger/runs/2026-04-09T10-02-57-143Z/seeds/adv-a0c9e2bfb0d6.yaml +0 -7
- package/calibration/ledger/runs/2026-04-09T10-02-57-143Z/seeds/blind-3e892f3a89ee.yaml +0 -8
- package/calibration/ledger/runs/2026-04-09T10-02-57-143Z/seeds/blind-958b2f9e6816.yaml +0 -8
- package/calibration/ledger/runs/2026-04-09T10-02-57-143Z/summary.yaml +0 -10
- package/calibration/ledger/runs/2026-04-09T10-02-57-143Z/traces/adv-a0c9e2bfb0d6.yaml +0 -141
- package/calibration/ledger/runs/2026-04-09T10-02-57-143Z/traces/blind-3e892f3a89ee.yaml +0 -147
- package/calibration/ledger/runs/2026-04-09T10-02-57-143Z/traces/blind-958b2f9e6816.yaml +0 -147
- package/calibration/ledger/runs/2026-04-09T10-02-57-143Z/verdicts-a/adv-a0c9e2bfb0d6.yaml +0 -24
- package/calibration/ledger/runs/2026-04-09T10-02-57-143Z/verdicts-a/blind-3e892f3a89ee.yaml +0 -23
- package/calibration/ledger/runs/2026-04-09T10-02-57-143Z/verdicts-a/blind-958b2f9e6816.yaml +0 -25
- package/calibration/ledger/runs/2026-04-09T10-02-57-143Z/verdicts-b/adv-a0c9e2bfb0d6.yaml +0 -31
- package/calibration/ledger/runs/2026-04-09T10-02-57-143Z/verdicts-b/blind-3e892f3a89ee.yaml +0 -32
- package/calibration/ledger/runs/2026-04-09T10-02-57-143Z/verdicts-b/blind-958b2f9e6816.yaml +0 -32
|
@@ -0,0 +1,3054 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
const nonEmptyString = z.string().trim().min(1);
|
|
4
|
+
const nonEmptyStringArray = z.array(nonEmptyString);
|
|
5
|
+
|
|
6
|
+
export const SURFACE_LABELS = {
|
|
7
|
+
chatgpt: "ChatGPT",
|
|
8
|
+
"claude-code": "Claude Code",
|
|
9
|
+
cursor: "Cursor",
|
|
10
|
+
codex: "Codex",
|
|
11
|
+
} as const;
|
|
12
|
+
|
|
13
|
+
export const surfaceSchema = z.enum(["chatgpt", "claude-code", "cursor", "codex"]);
|
|
14
|
+
export const repoStatusSchema = z.enum(["repo-present", "repo-not-present"]);
|
|
15
|
+
export const returnStatusSchema = z.enum(["not-started", "done", "partial", "blocked"]);
|
|
16
|
+
export const objectiveMetSchema = z.enum(["yes", "no", "partial"]);
|
|
17
|
+
export const executionShapeSchema = z.enum(["single", "bounded_parallel_research", "bounded_parallel_implementation"]);
|
|
18
|
+
export const launchReadinessStatusSchema = z.enum(["ready", "missing required boundary info", "needs clarification"]);
|
|
19
|
+
|
|
20
|
+
export const projectContractSchema = z.object({
|
|
21
|
+
project_id: nonEmptyString,
|
|
22
|
+
title: nonEmptyString,
|
|
23
|
+
one_liner: nonEmptyString,
|
|
24
|
+
problem: nonEmptyString,
|
|
25
|
+
target_user: nonEmptyString,
|
|
26
|
+
desired_v1_outcome: nonEmptyString,
|
|
27
|
+
non_goals: nonEmptyStringArray.min(1),
|
|
28
|
+
repo_status: repoStatusSchema,
|
|
29
|
+
// Task-specific clauses — narrower than brand-level non_goals
|
|
30
|
+
task_clauses: z.object({
|
|
31
|
+
scope_in: z.array(z.string()).default([]),
|
|
32
|
+
scope_out: z.array(z.string()).default([]),
|
|
33
|
+
systems_expected: z.array(z.string()).default([]),
|
|
34
|
+
files_allowed: z.array(z.string()).default([]),
|
|
35
|
+
must_not_widen: z.array(z.string()).default([]),
|
|
36
|
+
build_constraints: z.array(z.string()).default([]),
|
|
37
|
+
}).default({
|
|
38
|
+
scope_in: [], scope_out: [], systems_expected: [],
|
|
39
|
+
files_allowed: [], must_not_widen: [], build_constraints: [],
|
|
40
|
+
}),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export const projectCharterSchema = z.object({
|
|
44
|
+
title: nonEmptyString,
|
|
45
|
+
intent: nonEmptyString,
|
|
46
|
+
target_user: nonEmptyString,
|
|
47
|
+
first_bounded_slice: z.string().default(""),
|
|
48
|
+
scope_in: z.array(z.string()),
|
|
49
|
+
scope_out: z.array(z.string()),
|
|
50
|
+
protected_boundaries: z.array(z.string()),
|
|
51
|
+
systems_touched: z.array(z.string()),
|
|
52
|
+
repo_binding: z.string().default(""),
|
|
53
|
+
unresolved_assumptions: z.array(z.string()),
|
|
54
|
+
missingness: z.array(z.string()),
|
|
55
|
+
confidence: z.enum(["high", "medium", "low"]),
|
|
56
|
+
task_type: z.string(),
|
|
57
|
+
created_at: z.string(),
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
export const workingStateSchema = z.object({
|
|
61
|
+
stage: nonEmptyString,
|
|
62
|
+
current_objective: nonEmptyString,
|
|
63
|
+
dominant_uncertainty: nonEmptyString,
|
|
64
|
+
open_questions: nonEmptyStringArray,
|
|
65
|
+
primary_artifact_ref: nonEmptyString,
|
|
66
|
+
active_handoff_id: z.string(),
|
|
67
|
+
last_return_status: returnStatusSchema,
|
|
68
|
+
latest_decisions: nonEmptyStringArray.default([]),
|
|
69
|
+
latest_blockers: nonEmptyStringArray.default([]),
|
|
70
|
+
next_recommended_surface: surfaceSchema,
|
|
71
|
+
next_objective: nonEmptyString,
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* UI-only derivation type: what happens to downstream artifacts when the
|
|
76
|
+
* operator edits a charter-level field. Never persisted — computed at render.
|
|
77
|
+
*/
|
|
78
|
+
export type CharterFieldConsequence =
|
|
79
|
+
| "still_valid"
|
|
80
|
+
| "stale_recompile"
|
|
81
|
+
| "stale_redispatch";
|
|
82
|
+
|
|
83
|
+
export const activationInputSchema = z.object({
|
|
84
|
+
raw_idea: nonEmptyString,
|
|
85
|
+
repo_exists: z.boolean(),
|
|
86
|
+
what_do_you_want_next: nonEmptyString,
|
|
87
|
+
constraints: z.string().trim().default(""),
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
// ---------------------------------------------------------------------------
|
|
91
|
+
// Product Objects: Ask → Compile → Run
|
|
92
|
+
// ---------------------------------------------------------------------------
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Ask — a bounded inquiry. The operator's raw intent, captured and scoped
|
|
96
|
+
* into something the system can compile.
|
|
97
|
+
*
|
|
98
|
+
* NOT a prompt. NOT a wish. An Ask has identity and becomes the seed of
|
|
99
|
+
* canonical state after compilation.
|
|
100
|
+
*/
|
|
101
|
+
export const askSchema = z.object({
|
|
102
|
+
ask_id: z.string(),
|
|
103
|
+
raw_idea: nonEmptyString,
|
|
104
|
+
repo_exists: z.boolean(),
|
|
105
|
+
what_do_you_want_next: nonEmptyString,
|
|
106
|
+
constraints: z.string().trim().default(""),
|
|
107
|
+
created_at: z.string(),
|
|
108
|
+
source: z.enum(["operator", "next-slice", "re-dispatch"]).default("operator"),
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Compile — a governed control object produced from an Ask. Contains the
|
|
113
|
+
* locked contract, charter, routing decision, and candidate brief.
|
|
114
|
+
*
|
|
115
|
+
* NOT synthesis (which enriches). NOT execution (which acts). A Compile
|
|
116
|
+
* is the governed artifact that dispatch reads from.
|
|
117
|
+
*/
|
|
118
|
+
export const compileSchema = z.object({
|
|
119
|
+
compile_id: z.string(),
|
|
120
|
+
ask_id: z.string(),
|
|
121
|
+
contract_id: z.string(),
|
|
122
|
+
task_type: z.string(),
|
|
123
|
+
complexity_mode: z.string(),
|
|
124
|
+
route_surface: z.string(),
|
|
125
|
+
compiled_at: z.string(),
|
|
126
|
+
lock_readiness: z.string(), // lock_allowed / lock_allowed_with_cautions / lock_blocked
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Run — a compiled execution packet dispatched under a governed contract.
|
|
131
|
+
* Bundles dispatch identity, receipt, and return linkage.
|
|
132
|
+
*
|
|
133
|
+
* NOT an execution (which is what the surface does). NOT a task (which has
|
|
134
|
+
* no governance lifecycle). A Run has dispatch provenance and expects a
|
|
135
|
+
* structured return.
|
|
136
|
+
*/
|
|
137
|
+
export const runSchema = z.object({
|
|
138
|
+
run_id: z.string(),
|
|
139
|
+
ask_id: z.string(),
|
|
140
|
+
compile_id: z.string(),
|
|
141
|
+
handoff_id: z.string(),
|
|
142
|
+
dispatch_id: z.string(),
|
|
143
|
+
receipt_id: z.string().default(""),
|
|
144
|
+
surface: z.string(),
|
|
145
|
+
objective: z.string(),
|
|
146
|
+
dispatched_at: z.string(),
|
|
147
|
+
// Return linkage (populated after return)
|
|
148
|
+
return_id: z.string().default(""),
|
|
149
|
+
delta_id: z.string().default(""),
|
|
150
|
+
gate_outcome: z.string().default(""),
|
|
151
|
+
completed_at: z.string().default(""),
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
export type Ask = z.infer<typeof askSchema>;
|
|
155
|
+
export type Compile = z.infer<typeof compileSchema>;
|
|
156
|
+
export type Run = z.infer<typeof runSchema>;
|
|
157
|
+
|
|
158
|
+
export const routingInputSchema = z.object({
|
|
159
|
+
repo_present: z.boolean(),
|
|
160
|
+
task: nonEmptyString,
|
|
161
|
+
last_return_status: z.enum(["done", "partial", "blocked"]).optional(),
|
|
162
|
+
last_return_reason: z.string().trim().optional(),
|
|
163
|
+
seed_confidence: z.enum(["high", "medium", "low"]).optional(),
|
|
164
|
+
research_needed: z.boolean().optional(),
|
|
165
|
+
process_mode: z.enum(["minimal", "structured", "governance"]).optional(),
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
export const routingResultSchema = z.object({
|
|
169
|
+
primary_recommendation: surfaceSchema,
|
|
170
|
+
fallback_surface: surfaceSchema,
|
|
171
|
+
rationale: nonEmptyString,
|
|
172
|
+
next_objective: nonEmptyString,
|
|
173
|
+
return_condition: nonEmptyString,
|
|
174
|
+
});
|
|
175
|
+
|
|
176
|
+
export const loopContractSchema = z.object({
|
|
177
|
+
objective: nonEmptyString,
|
|
178
|
+
scope_in: nonEmptyStringArray.min(1),
|
|
179
|
+
scope_out: nonEmptyStringArray.min(1),
|
|
180
|
+
done_when: nonEmptyStringArray.min(1),
|
|
181
|
+
success_criteria: nonEmptyStringArray.min(1),
|
|
182
|
+
verify_with: nonEmptyStringArray.min(1),
|
|
183
|
+
return_when: nonEmptyString,
|
|
184
|
+
blocker_escalation: nonEmptyStringArray.min(1),
|
|
185
|
+
expected_artifacts: nonEmptyStringArray.min(1),
|
|
186
|
+
fallback_surface: surfaceSchema,
|
|
187
|
+
execution_shape: executionShapeSchema,
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
export const launchReadinessSchema = z.object({
|
|
191
|
+
status: launchReadinessStatusSchema,
|
|
192
|
+
issues: nonEmptyStringArray.default([]),
|
|
193
|
+
});
|
|
194
|
+
|
|
195
|
+
export const surfacePlaybookSchema = z.object({
|
|
196
|
+
surface: surfaceSchema,
|
|
197
|
+
notes: nonEmptyStringArray.min(1),
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
export const handoffRecordSchema = z.object({
|
|
201
|
+
handoff_id: nonEmptyString,
|
|
202
|
+
surface: surfaceSchema,
|
|
203
|
+
objective: nonEmptyString,
|
|
204
|
+
included_scope: nonEmptyStringArray.min(1),
|
|
205
|
+
excluded_scope: nonEmptyStringArray.min(1),
|
|
206
|
+
done_when: nonEmptyStringArray.min(1),
|
|
207
|
+
return_condition: nonEmptyString,
|
|
208
|
+
loop: loopContractSchema,
|
|
209
|
+
readiness: launchReadinessSchema,
|
|
210
|
+
bundle_version: z.literal("SBX-v1"),
|
|
211
|
+
launched_at: z.string().optional(),
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
export const returnReportSchema = z
|
|
215
|
+
.object({
|
|
216
|
+
handoff_id: nonEmptyString,
|
|
217
|
+
surface_used: surfaceSchema,
|
|
218
|
+
objective_attempted: nonEmptyString,
|
|
219
|
+
status: z.enum(["done", "partial", "blocked"]),
|
|
220
|
+
objective_met: objectiveMetSchema,
|
|
221
|
+
done_when_met: objectiveMetSchema,
|
|
222
|
+
summary: nonEmptyString,
|
|
223
|
+
changed_files: z.array(z.string().trim()).default([]),
|
|
224
|
+
decisions_made: z.array(z.string().trim()).default([]),
|
|
225
|
+
blockers: z.array(z.string().trim()).default([]),
|
|
226
|
+
escalations: z.array(z.string().trim()).default([]),
|
|
227
|
+
evidence: z.array(z.string().trim()).default([]),
|
|
228
|
+
success_criteria_met: z.array(z.string().trim()).default([]),
|
|
229
|
+
verification_run: z.array(z.string().trim()).default([]),
|
|
230
|
+
artifacts_created: z.array(z.string().trim()).default([]),
|
|
231
|
+
recommended_next_step: nonEmptyString,
|
|
232
|
+
// Cursor packet binding — required when surface_used is "cursor".
|
|
233
|
+
// Binds the return to the governed packet that was transported.
|
|
234
|
+
packet_id: z.string().trim().default(""),
|
|
235
|
+
// SHA-256 prefix hash of the governed packet content at generation time.
|
|
236
|
+
// Verified on Cursor return ingest to detect silent content edits.
|
|
237
|
+
packet_hash: z.string().trim().default(""),
|
|
238
|
+
})
|
|
239
|
+
.superRefine((value, ctx) => {
|
|
240
|
+
if (value.objective_met === "yes" && value.evidence.length === 0 && value.verification_run.length === 0) {
|
|
241
|
+
ctx.addIssue({
|
|
242
|
+
code: z.ZodIssueCode.custom,
|
|
243
|
+
message: "objective_met=yes requires evidence or verification_run.",
|
|
244
|
+
path: ["objective_met"],
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
if (value.done_when_met === "yes" && value.success_criteria_met.length === 0) {
|
|
249
|
+
ctx.addIssue({
|
|
250
|
+
code: z.ZodIssueCode.custom,
|
|
251
|
+
message: "done_when_met=yes requires at least one met success criterion.",
|
|
252
|
+
path: ["done_when_met"],
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
if (value.status === "done" && value.done_when_met === "no") {
|
|
257
|
+
ctx.addIssue({
|
|
258
|
+
code: z.ZodIssueCode.custom,
|
|
259
|
+
message: "A done return cannot report done_when_met=no.",
|
|
260
|
+
path: ["status"],
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
|
|
265
|
+
export const sbxFileSchema = z.object({
|
|
266
|
+
path: nonEmptyString,
|
|
267
|
+
content: nonEmptyString,
|
|
268
|
+
});
|
|
269
|
+
|
|
270
|
+
export const sbxBundleSchema = z.object({
|
|
271
|
+
bundle_name: nonEmptyString,
|
|
272
|
+
launch_prompt: nonEmptyString,
|
|
273
|
+
files: z.array(sbxFileSchema).min(5),
|
|
274
|
+
});
|
|
275
|
+
|
|
276
|
+
export const runtimePackSchema = z.object({
|
|
277
|
+
pack_name: nonEmptyString,
|
|
278
|
+
files: z.array(sbxFileSchema).min(1),
|
|
279
|
+
});
|
|
280
|
+
|
|
281
|
+
export type Surface = z.infer<typeof surfaceSchema>;
|
|
282
|
+
export type ProjectContract = z.infer<typeof projectContractSchema>;
|
|
283
|
+
export type ProjectCharter = z.infer<typeof projectCharterSchema>;
|
|
284
|
+
export type WorkingState = z.infer<typeof workingStateSchema>;
|
|
285
|
+
export type ActivationInput = z.infer<typeof activationInputSchema>;
|
|
286
|
+
export type RoutingInput = z.infer<typeof routingInputSchema>;
|
|
287
|
+
export type RoutingResult = z.infer<typeof routingResultSchema>;
|
|
288
|
+
export type LoopContract = z.infer<typeof loopContractSchema>;
|
|
289
|
+
export type LaunchReadiness = z.infer<typeof launchReadinessSchema>;
|
|
290
|
+
export type SurfacePlaybook = z.infer<typeof surfacePlaybookSchema>;
|
|
291
|
+
export type HandoffRecord = z.infer<typeof handoffRecordSchema>;
|
|
292
|
+
export type ReturnReport = z.infer<typeof returnReportSchema>;
|
|
293
|
+
export type SbxBundle = z.infer<typeof sbxBundleSchema>;
|
|
294
|
+
export type RuntimePack = z.infer<typeof runtimePackSchema>;
|
|
295
|
+
|
|
296
|
+
export type ProjectSnapshot = {
|
|
297
|
+
contract: ProjectContract;
|
|
298
|
+
current: WorkingState;
|
|
299
|
+
spec_markdown: string;
|
|
300
|
+
latest_handoff: HandoffRecord | null;
|
|
301
|
+
latest_return: ReturnReport | null;
|
|
302
|
+
active_handoff: HandoffRecord | null;
|
|
303
|
+
route: RoutingResult;
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
// ---------------------------------------------------------------------------
|
|
307
|
+
// Synthesis spine types
|
|
308
|
+
// ---------------------------------------------------------------------------
|
|
309
|
+
|
|
310
|
+
export const taskTypeSchema = z.enum(["product-idea", "implementation-request", "unknown"]);
|
|
311
|
+
|
|
312
|
+
export const synthesizedSeedSchema = z.object({
|
|
313
|
+
title: nonEmptyString,
|
|
314
|
+
one_liner: nonEmptyString,
|
|
315
|
+
problem: nonEmptyString,
|
|
316
|
+
proposed_solution: nonEmptyString,
|
|
317
|
+
target_user: nonEmptyString,
|
|
318
|
+
v1_outcome: nonEmptyString,
|
|
319
|
+
non_goals: nonEmptyStringArray.min(1),
|
|
320
|
+
missing_inputs: z.array(z.string().trim()).default([]),
|
|
321
|
+
open_questions: z.array(z.string().trim()).default([]),
|
|
322
|
+
first_build_slice: z.string().trim().default(""),
|
|
323
|
+
confidence: z.enum(["high", "medium", "low"]),
|
|
324
|
+
task_type: taskTypeSchema.default("unknown"),
|
|
325
|
+
});
|
|
326
|
+
|
|
327
|
+
// ---------------------------------------------------------------------------
|
|
328
|
+
// Provider / dispatch types
|
|
329
|
+
// ---------------------------------------------------------------------------
|
|
330
|
+
|
|
331
|
+
export const providerCapabilitySchema = z.enum(["compile", "execute"]);
|
|
332
|
+
|
|
333
|
+
export const providerIdSchema = z.enum([
|
|
334
|
+
"claude-code-sdk",
|
|
335
|
+
"openai-api",
|
|
336
|
+
"codex",
|
|
337
|
+
"chatgpt-auto",
|
|
338
|
+
"chatgpt-manual", // deprecated — kept for schema backward compat
|
|
339
|
+
"cursor-manual",
|
|
340
|
+
"internal-fallback",
|
|
341
|
+
]);
|
|
342
|
+
|
|
343
|
+
export const providerStatusSchema = z.enum(["available", "needs-setup", "stub"]);
|
|
344
|
+
|
|
345
|
+
export const providerEntrySchema = z.object({
|
|
346
|
+
id: providerIdSchema,
|
|
347
|
+
name: nonEmptyString,
|
|
348
|
+
capability: providerCapabilitySchema,
|
|
349
|
+
automated: z.boolean(),
|
|
350
|
+
status: providerStatusSchema,
|
|
351
|
+
requires_env: z.array(z.string()).default([]),
|
|
352
|
+
});
|
|
353
|
+
|
|
354
|
+
// ---------------------------------------------------------------------------
|
|
355
|
+
// Execution Surface Abstraction
|
|
356
|
+
// ---------------------------------------------------------------------------
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Surface classes — what kind of interface the execution surface exposes.
|
|
360
|
+
*
|
|
361
|
+
* Switchboard sits ABOVE all surfaces. It does not assume uniform API access.
|
|
362
|
+
* Each surface class defines what the control plane can expect in terms of
|
|
363
|
+
* dispatch, acknowledgment, and return.
|
|
364
|
+
*/
|
|
365
|
+
export const surfaceClassSchema = z.enum([
|
|
366
|
+
"api", // Programmatic SDK/API (Claude Agent SDK, OpenAI API)
|
|
367
|
+
"cli", // Command-line tool (Codex CLI, local scripts)
|
|
368
|
+
"ide", // Interactive IDE (Cursor, VS Code extensions)
|
|
369
|
+
"manual", // Human-mediated handoff (paste into ChatGPT, manual copy)
|
|
370
|
+
"file_based", // File drop / watch (export SBX bundle, import return YAML)
|
|
371
|
+
"audit_only", // Read-only audit surface (Codex audit, review tools)
|
|
372
|
+
]);
|
|
373
|
+
|
|
374
|
+
export const surfaceCapabilitiesSchema = z.object({
|
|
375
|
+
can_dispatch_programmatically: z.boolean(),
|
|
376
|
+
can_acknowledge: z.boolean(),
|
|
377
|
+
can_return_structured: z.boolean(),
|
|
378
|
+
can_stream: z.boolean(),
|
|
379
|
+
requires_human_in_loop: z.boolean(),
|
|
380
|
+
supports_working_directory: z.boolean(),
|
|
381
|
+
});
|
|
382
|
+
|
|
383
|
+
export const surfaceProfileSchema = z.object({
|
|
384
|
+
surface_id: z.string(),
|
|
385
|
+
surface_class: surfaceClassSchema,
|
|
386
|
+
display_name: z.string(),
|
|
387
|
+
capabilities: surfaceCapabilitiesSchema,
|
|
388
|
+
receipt_model: z.enum([
|
|
389
|
+
"synchronous", // API: dispatch → ack → return in one call
|
|
390
|
+
"async_callback", // CLI: dispatch, poll or wait for return
|
|
391
|
+
"human_return", // Manual: operator pastes/uploads return
|
|
392
|
+
"file_watch", // File: watch directory for return YAML
|
|
393
|
+
"none", // Audit-only: no return expected
|
|
394
|
+
]),
|
|
395
|
+
packet_format: z.enum([
|
|
396
|
+
"sdk_prompt", // Full prompt string for SDK dispatch
|
|
397
|
+
"sbx_bundle", // SBX export bundle (markdown + YAML)
|
|
398
|
+
"clipboard", // Copy-paste-ready text
|
|
399
|
+
"file_drop", // File written to working directory
|
|
400
|
+
]),
|
|
401
|
+
});
|
|
402
|
+
|
|
403
|
+
export type SurfaceClass = z.infer<typeof surfaceClassSchema>;
|
|
404
|
+
export type SurfaceCapabilities = z.infer<typeof surfaceCapabilitiesSchema>;
|
|
405
|
+
export type SurfaceProfile = z.infer<typeof surfaceProfileSchema>;
|
|
406
|
+
|
|
407
|
+
export const inferredChipSchema = z.object({
|
|
408
|
+
id: z.string(),
|
|
409
|
+
label: z.string(),
|
|
410
|
+
category: z.enum(["boundary", "system", "source", "user-type"]),
|
|
411
|
+
selected: z.boolean(),
|
|
412
|
+
inferred_from: z.string().default(""),
|
|
413
|
+
});
|
|
414
|
+
|
|
415
|
+
export const followUpQuestionSchema = z.object({
|
|
416
|
+
question: z.string(),
|
|
417
|
+
why: z.string(),
|
|
418
|
+
options: z.array(z.string()).optional(),
|
|
419
|
+
});
|
|
420
|
+
|
|
421
|
+
/** Draft charter fields shown before activation (same source as compile seed). */
|
|
422
|
+
export const activationPreviewSchema = z.object({
|
|
423
|
+
title: z.string(),
|
|
424
|
+
one_liner: z.string(),
|
|
425
|
+
problem: z.string(),
|
|
426
|
+
proposed_solution: z.string(),
|
|
427
|
+
target_user: z.string(),
|
|
428
|
+
v1_outcome: z.string(),
|
|
429
|
+
non_goals: z.array(z.string()),
|
|
430
|
+
first_build_slice: z.string(),
|
|
431
|
+
open_questions: z.array(z.string()),
|
|
432
|
+
missing_inputs: z.array(z.string()),
|
|
433
|
+
confidence: z.enum(["high", "medium", "low"]),
|
|
434
|
+
task_type: taskTypeSchema,
|
|
435
|
+
});
|
|
436
|
+
|
|
437
|
+
export const activationLockStateSchema = z.enum(["ready_to_lock", "blocked_by_missing_evidence"]);
|
|
438
|
+
|
|
439
|
+
export const intakeAnalysisSchema = z.object({
|
|
440
|
+
task_type: taskTypeSchema,
|
|
441
|
+
chips: z.array(inferredChipSchema),
|
|
442
|
+
follow_ups: z.array(followUpQuestionSchema),
|
|
443
|
+
confidence_note: z.string().default(""),
|
|
444
|
+
activation_preview: activationPreviewSchema,
|
|
445
|
+
/** Whether the target user was explicitly stated in the raw idea (not a placeholder). */
|
|
446
|
+
target_user_on_record: z.boolean(),
|
|
447
|
+
activation_state: activationLockStateSchema,
|
|
448
|
+
lock_blocking_requirements: z.array(z.string()),
|
|
449
|
+
lock_cautions: z.array(z.string()),
|
|
450
|
+
lock_tracked_open: z.array(z.string()),
|
|
451
|
+
});
|
|
452
|
+
|
|
453
|
+
export type ActivationPreview = z.infer<typeof activationPreviewSchema>;
|
|
454
|
+
export type InferredChip = z.infer<typeof inferredChipSchema>;
|
|
455
|
+
export type FollowUpQuestion = z.infer<typeof followUpQuestionSchema>;
|
|
456
|
+
export type IntakeAnalysis = z.infer<typeof intakeAnalysisSchema>;
|
|
457
|
+
export type ActivationLockState = z.infer<typeof activationLockStateSchema>;
|
|
458
|
+
export type TaskType = z.infer<typeof taskTypeSchema>;
|
|
459
|
+
export type ProviderId = z.infer<typeof providerIdSchema>;
|
|
460
|
+
export type ProviderCapability = z.infer<typeof providerCapabilitySchema>;
|
|
461
|
+
export type ProviderStatus = z.infer<typeof providerStatusSchema>;
|
|
462
|
+
export type ProviderEntry = z.infer<typeof providerEntrySchema>;
|
|
463
|
+
|
|
464
|
+
export const researchAngleSchema = z.object({
|
|
465
|
+
category: z.enum([
|
|
466
|
+
"user-validation",
|
|
467
|
+
"technical-feasibility",
|
|
468
|
+
"competitive-landscape",
|
|
469
|
+
"domain-knowledge",
|
|
470
|
+
"implementation-pattern",
|
|
471
|
+
]),
|
|
472
|
+
question: nonEmptyString,
|
|
473
|
+
why_it_matters: nonEmptyString,
|
|
474
|
+
priority: z.enum(["blocking", "strengthening", "nice-to-have"]),
|
|
475
|
+
});
|
|
476
|
+
|
|
477
|
+
export const researchClassificationSchema = z.object({
|
|
478
|
+
angles: z.array(researchAngleSchema),
|
|
479
|
+
research_needed: z.boolean(),
|
|
480
|
+
summary: nonEmptyString,
|
|
481
|
+
});
|
|
482
|
+
|
|
483
|
+
export const reconcileFindingSchema = z.object({
|
|
484
|
+
category: z.enum([
|
|
485
|
+
"scope-inflation",
|
|
486
|
+
"non-goal-violation",
|
|
487
|
+
"goal-drift",
|
|
488
|
+
"target-user-shift",
|
|
489
|
+
"untracked-decision",
|
|
490
|
+
"evidence-contradiction",
|
|
491
|
+
]),
|
|
492
|
+
description: nonEmptyString,
|
|
493
|
+
severity: z.enum(["warning", "review-required"]),
|
|
494
|
+
source_field: nonEmptyString,
|
|
495
|
+
parent_evidence: z.string().trim().default(""),
|
|
496
|
+
});
|
|
497
|
+
|
|
498
|
+
export const reconcileReportSchema = z.object({
|
|
499
|
+
findings: z.array(reconcileFindingSchema),
|
|
500
|
+
drift_detected: z.boolean(),
|
|
501
|
+
recommendation: z.enum(["accept", "accept-with-warnings", "review-required"]),
|
|
502
|
+
cleared_count: z.number().default(0),
|
|
503
|
+
checked_count: z.number().default(0),
|
|
504
|
+
});
|
|
505
|
+
|
|
506
|
+
export type SynthesizedSeed = z.infer<typeof synthesizedSeedSchema>;
|
|
507
|
+
export type ResearchAngle = z.infer<typeof researchAngleSchema>;
|
|
508
|
+
export type ResearchClassification = z.infer<typeof researchClassificationSchema>;
|
|
509
|
+
export type ReconcileFinding = z.infer<typeof reconcileFindingSchema>;
|
|
510
|
+
export type ReconcileReport = z.infer<typeof reconcileReportSchema>;
|
|
511
|
+
|
|
512
|
+
// ---------------------------------------------------------------------------
|
|
513
|
+
// Control plane types — complexity, process mode, compiler adapter
|
|
514
|
+
// ---------------------------------------------------------------------------
|
|
515
|
+
|
|
516
|
+
export const complexityVerdictSchema = z.enum(["simple", "standard", "dangerous"]);
|
|
517
|
+
|
|
518
|
+
export const processModeSchema = z.enum(["minimal", "structured", "governance"]);
|
|
519
|
+
|
|
520
|
+
export const complexitySignalSchema = z.object({
|
|
521
|
+
implied_systems: z.number(),
|
|
522
|
+
missing_target_user: z.boolean(),
|
|
523
|
+
missing_workflow: z.boolean(),
|
|
524
|
+
missing_trust_boundary: z.boolean(),
|
|
525
|
+
scope_breadth: z.enum(["narrow", "moderate", "broad"]),
|
|
526
|
+
contradiction_count: z.number(),
|
|
527
|
+
resource_mismatch: z.boolean(),
|
|
528
|
+
});
|
|
529
|
+
|
|
530
|
+
export const complexityClassificationSchema = z.object({
|
|
531
|
+
verdict: complexityVerdictSchema,
|
|
532
|
+
mode: processModeSchema,
|
|
533
|
+
signals: complexitySignalSchema,
|
|
534
|
+
rationale: nonEmptyString,
|
|
535
|
+
});
|
|
536
|
+
|
|
537
|
+
export const compilerTypeSchema = z.enum([
|
|
538
|
+
"fidelity-first",
|
|
539
|
+
"execution-first",
|
|
540
|
+
"internal-fallback",
|
|
541
|
+
]);
|
|
542
|
+
|
|
543
|
+
export const compilerSelectionSchema = z.object({
|
|
544
|
+
compiler_type: compilerTypeSchema,
|
|
545
|
+
recommended_surface: surfaceSchema,
|
|
546
|
+
rationale: nonEmptyString,
|
|
547
|
+
});
|
|
548
|
+
|
|
549
|
+
export type ComplexityVerdict = z.infer<typeof complexityVerdictSchema>;
|
|
550
|
+
export type ProcessMode = z.infer<typeof processModeSchema>;
|
|
551
|
+
export type ComplexitySignals = z.infer<typeof complexitySignalSchema>;
|
|
552
|
+
export type ComplexityClassification = z.infer<typeof complexityClassificationSchema>;
|
|
553
|
+
export const artifactStatusSchema = z.enum(["candidate", "canonical"]);
|
|
554
|
+
|
|
555
|
+
export const candidateArtifactSchema = z.object({
|
|
556
|
+
spec_markdown: nonEmptyString,
|
|
557
|
+
source: compilerTypeSchema,
|
|
558
|
+
status: artifactStatusSchema,
|
|
559
|
+
reconcile: reconcileReportSchema.optional(),
|
|
560
|
+
});
|
|
561
|
+
|
|
562
|
+
export type CompilerType = z.infer<typeof compilerTypeSchema>;
|
|
563
|
+
export type CompilerSelection = z.infer<typeof compilerSelectionSchema>;
|
|
564
|
+
export const operatorReviewSchema = z.object({
|
|
565
|
+
date: nonEmptyString,
|
|
566
|
+
judgment: z.enum(["correct", "too-strict", "too-lenient"]),
|
|
567
|
+
note: z.string().trim().default(""),
|
|
568
|
+
});
|
|
569
|
+
|
|
570
|
+
export const dossierStepSchema = z.object({
|
|
571
|
+
phase: nonEmptyString,
|
|
572
|
+
timestamp: nonEmptyString,
|
|
573
|
+
outcome: nonEmptyString,
|
|
574
|
+
detail: z.string().trim().default(""),
|
|
575
|
+
});
|
|
576
|
+
|
|
577
|
+
export const runDossierSchema = z.object({
|
|
578
|
+
run_id: nonEmptyString,
|
|
579
|
+
project_title: nonEmptyString,
|
|
580
|
+
fixture: z.string().trim().default(""),
|
|
581
|
+
created_at: nonEmptyString,
|
|
582
|
+
updated_at: nonEmptyString,
|
|
583
|
+
complexity_verdict: complexityVerdictSchema,
|
|
584
|
+
process_mode: processModeSchema,
|
|
585
|
+
compiler_type: compilerTypeSchema,
|
|
586
|
+
seed_confidence: z.enum(["high", "medium", "low"]),
|
|
587
|
+
steps: z.array(dossierStepSchema),
|
|
588
|
+
reconcile_recommendation: z.enum(["accept", "accept-with-warnings", "review-required"]).optional(),
|
|
589
|
+
reconcile_findings_count: z.number().default(0),
|
|
590
|
+
reconcile_cleared_count: z.number().default(0),
|
|
591
|
+
promotion_result: z.enum(["canonical", "candidate", "pending"]).default("pending"),
|
|
592
|
+
operator_reviews: z.array(operatorReviewSchema).default([]),
|
|
593
|
+
refs: z.object({
|
|
594
|
+
seed: z.string().default(""),
|
|
595
|
+
brief: z.string().default(""),
|
|
596
|
+
handoff: z.string().default(""),
|
|
597
|
+
execution_return: z.string().default(""),
|
|
598
|
+
reconcile_report: z.string().default(""),
|
|
599
|
+
}).default({}),
|
|
600
|
+
});
|
|
601
|
+
|
|
602
|
+
export type OperatorReview = z.infer<typeof operatorReviewSchema>;
|
|
603
|
+
export type DossierStep = z.infer<typeof dossierStepSchema>;
|
|
604
|
+
export type RunDossier = z.infer<typeof runDossierSchema>;
|
|
605
|
+
export type ArtifactStatus = z.infer<typeof artifactStatusSchema>;
|
|
606
|
+
export type CandidateArtifact = z.infer<typeof candidateArtifactSchema>;
|
|
607
|
+
|
|
608
|
+
// ---------------------------------------------------------------------------
|
|
609
|
+
// Canonical object model — spec / status / conditions
|
|
610
|
+
// ---------------------------------------------------------------------------
|
|
611
|
+
|
|
612
|
+
// Conditions: queryable lifecycle summaries
|
|
613
|
+
export const conditionTypeSchema = z.enum([
|
|
614
|
+
"ProjectActivated",
|
|
615
|
+
"NeedsClarification",
|
|
616
|
+
"BriefCompiling",
|
|
617
|
+
"BriefAccepted",
|
|
618
|
+
"BriefHeld",
|
|
619
|
+
"Executing",
|
|
620
|
+
"ReturnReceived",
|
|
621
|
+
"ProjectUpdated",
|
|
622
|
+
"HeldForReview",
|
|
623
|
+
"FeedbackPending",
|
|
624
|
+
"Closed",
|
|
625
|
+
]);
|
|
626
|
+
|
|
627
|
+
export const conditionStatusSchema = z.enum(["True", "False", "Unknown"]);
|
|
628
|
+
|
|
629
|
+
export const conditionSchema = z.object({
|
|
630
|
+
type: conditionTypeSchema,
|
|
631
|
+
status: conditionStatusSchema,
|
|
632
|
+
reason: z.string().default(""),
|
|
633
|
+
last_transition: z.string().default(""),
|
|
634
|
+
});
|
|
635
|
+
|
|
636
|
+
// Spec: desired intent — only changed by product logic or user action
|
|
637
|
+
export const projectSpecSchema = z.object({
|
|
638
|
+
problem: z.string().default(""),
|
|
639
|
+
target_user: z.string().default(""),
|
|
640
|
+
v1_outcome: z.string().default(""),
|
|
641
|
+
non_goals: z.array(z.string()).default([]),
|
|
642
|
+
constraints: z.string().default(""),
|
|
643
|
+
assumptions: z.array(z.string()).default([]),
|
|
644
|
+
acceptance_criteria: z.array(z.string()).default([]),
|
|
645
|
+
process_mode: processModeSchema.optional(),
|
|
646
|
+
compiler_intent: compilerTypeSchema.optional(),
|
|
647
|
+
task_type: taskTypeSchema.default("unknown"),
|
|
648
|
+
first_build_slice: z.string().default(""),
|
|
649
|
+
approved_scope_changes: z.array(z.string()).default([]),
|
|
650
|
+
});
|
|
651
|
+
|
|
652
|
+
// Status: observed state — written by controlled pathways only
|
|
653
|
+
export const projectStatusSchema = z.object({
|
|
654
|
+
phase: z.string().default("no-project"),
|
|
655
|
+
observed_generation: z.number().default(0),
|
|
656
|
+
activation: z.object({
|
|
657
|
+
seed_confidence: z.enum(["high", "medium", "low"]).optional(),
|
|
658
|
+
complexity: complexityVerdictSchema.optional(),
|
|
659
|
+
research_needed: z.boolean().optional(),
|
|
660
|
+
}).default({}),
|
|
661
|
+
brief: z.object({
|
|
662
|
+
source: compilerTypeSchema.optional(),
|
|
663
|
+
accepted: z.boolean().default(false),
|
|
664
|
+
reconcile_summary: z.string().default(""),
|
|
665
|
+
}).default({}),
|
|
666
|
+
execution: z.object({
|
|
667
|
+
surface: surfaceSchema.optional(),
|
|
668
|
+
started_at: z.string().optional(),
|
|
669
|
+
return_status: z.string().optional(),
|
|
670
|
+
reconcile_summary: z.string().default(""),
|
|
671
|
+
}).default({}),
|
|
672
|
+
latest_artifact_ref: z.string().default(""),
|
|
673
|
+
latest_return_ref: z.string().default(""),
|
|
674
|
+
});
|
|
675
|
+
|
|
676
|
+
// Metadata
|
|
677
|
+
export const projectMetadataSchema = z.object({
|
|
678
|
+
id: z.string(),
|
|
679
|
+
title: z.string(),
|
|
680
|
+
created_at: z.string(),
|
|
681
|
+
generation: z.number().default(1),
|
|
682
|
+
});
|
|
683
|
+
|
|
684
|
+
// The full canonical resource
|
|
685
|
+
export const projectResourceSchema = z.object({
|
|
686
|
+
metadata: projectMetadataSchema,
|
|
687
|
+
spec: projectSpecSchema,
|
|
688
|
+
status: projectStatusSchema,
|
|
689
|
+
conditions: z.array(conditionSchema).default([]),
|
|
690
|
+
});
|
|
691
|
+
|
|
692
|
+
// ---------------------------------------------------------------------------
|
|
693
|
+
// Project Truth Ledger types
|
|
694
|
+
// ---------------------------------------------------------------------------
|
|
695
|
+
|
|
696
|
+
export const evidenceTypeSchema = z.enum([
|
|
697
|
+
"user-backed",
|
|
698
|
+
"research-backed",
|
|
699
|
+
"execution-required",
|
|
700
|
+
"weak-inference",
|
|
701
|
+
]);
|
|
702
|
+
|
|
703
|
+
export const ledgerEntryKindSchema = z.enum([
|
|
704
|
+
"goal",
|
|
705
|
+
"constraint",
|
|
706
|
+
"assumption",
|
|
707
|
+
"decision",
|
|
708
|
+
"acceptance-criterion",
|
|
709
|
+
"scope-change",
|
|
710
|
+
]);
|
|
711
|
+
|
|
712
|
+
export const riskLevelSchema = z.enum(["low", "medium", "high"]);
|
|
713
|
+
|
|
714
|
+
export const ledgerEntrySchema = z.object({
|
|
715
|
+
id: z.string(),
|
|
716
|
+
kind: ledgerEntryKindSchema,
|
|
717
|
+
text: z.string(),
|
|
718
|
+
evidence_type: evidenceTypeSchema.default("weak-inference"),
|
|
719
|
+
evidence_refs: z.array(z.string()).default([]),
|
|
720
|
+
parent_ids: z.array(z.string()).default([]),
|
|
721
|
+
risk_level: riskLevelSchema.optional(),
|
|
722
|
+
downstream_artifacts: z.array(z.string()).default([]),
|
|
723
|
+
created_at: z.string().default(""),
|
|
724
|
+
superseded_by: z.string().optional(),
|
|
725
|
+
});
|
|
726
|
+
|
|
727
|
+
export const scopeChangeSchema = z.object({
|
|
728
|
+
id: z.string(),
|
|
729
|
+
description: z.string(),
|
|
730
|
+
entries_added: z.array(z.string()).default([]),
|
|
731
|
+
entries_removed: z.array(z.string()).default([]),
|
|
732
|
+
entries_modified: z.array(z.string()).default([]),
|
|
733
|
+
approved_at: z.string(),
|
|
734
|
+
reason: z.string().default(""),
|
|
735
|
+
});
|
|
736
|
+
|
|
737
|
+
export const projectLedgerSchema = z.object({
|
|
738
|
+
entries: z.array(ledgerEntrySchema),
|
|
739
|
+
scope_changes: z.array(scopeChangeSchema).default([]),
|
|
740
|
+
version: z.number().default(1),
|
|
741
|
+
});
|
|
742
|
+
|
|
743
|
+
// Drift diff types
|
|
744
|
+
export const diffActionSchema = z.enum(["added", "removed", "modified"]);
|
|
745
|
+
|
|
746
|
+
export const diffEntrySchema = z.object({
|
|
747
|
+
action: diffActionSchema,
|
|
748
|
+
kind: ledgerEntryKindSchema,
|
|
749
|
+
entry_id: z.string(),
|
|
750
|
+
old_text: z.string().optional(),
|
|
751
|
+
new_text: z.string().optional(),
|
|
752
|
+
summary: z.string(),
|
|
753
|
+
});
|
|
754
|
+
|
|
755
|
+
export const driftDiffSchema = z.object({
|
|
756
|
+
entries: z.array(diffEntrySchema),
|
|
757
|
+
has_drift: z.boolean(),
|
|
758
|
+
summary: z.string(),
|
|
759
|
+
});
|
|
760
|
+
|
|
761
|
+
export type EvidenceType = z.infer<typeof evidenceTypeSchema>;
|
|
762
|
+
export type LedgerEntryKind = z.infer<typeof ledgerEntryKindSchema>;
|
|
763
|
+
export type RiskLevel = z.infer<typeof riskLevelSchema>;
|
|
764
|
+
export type LedgerEntry = z.infer<typeof ledgerEntrySchema>;
|
|
765
|
+
export type ScopeChange = z.infer<typeof scopeChangeSchema>;
|
|
766
|
+
export type ProjectLedger = z.infer<typeof projectLedgerSchema>;
|
|
767
|
+
export type DiffAction = z.infer<typeof diffActionSchema>;
|
|
768
|
+
export type DiffEntry = z.infer<typeof diffEntrySchema>;
|
|
769
|
+
export type DriftDiff = z.infer<typeof driftDiffSchema>;
|
|
770
|
+
|
|
771
|
+
// ---------------------------------------------------------------------------
|
|
772
|
+
// Activation V2 types
|
|
773
|
+
// ---------------------------------------------------------------------------
|
|
774
|
+
|
|
775
|
+
export const assumptionStatusSchema = z.enum(["unconfirmed", "confirmed", "rejected", "superseded"]);
|
|
776
|
+
|
|
777
|
+
export const assumptionSchema = z.object({
|
|
778
|
+
id: z.string(),
|
|
779
|
+
text: z.string(),
|
|
780
|
+
status: assumptionStatusSchema.default("unconfirmed"),
|
|
781
|
+
evidence_type: evidenceTypeSchema.default("weak-inference"),
|
|
782
|
+
risk_level: riskLevelSchema.default("medium"),
|
|
783
|
+
source: z.string().default(""),
|
|
784
|
+
});
|
|
785
|
+
|
|
786
|
+
export const workflowCanvasSchema = z.object({
|
|
787
|
+
primary_user: z.string().default(""),
|
|
788
|
+
current_workflow: z.string().default(""),
|
|
789
|
+
target_workflow: z.string().default(""),
|
|
790
|
+
job_to_be_done: z.string().default(""),
|
|
791
|
+
edge_cases: z.array(z.string()).default([]),
|
|
792
|
+
});
|
|
793
|
+
|
|
794
|
+
export const nonFunctionalGateSchema = z.object({
|
|
795
|
+
category: z.enum(["security", "privacy", "observability", "performance", "compliance"]),
|
|
796
|
+
flagged: z.boolean(),
|
|
797
|
+
reason: z.string().default(""),
|
|
798
|
+
severity: riskLevelSchema.default("low"),
|
|
799
|
+
});
|
|
800
|
+
|
|
801
|
+
export const dangerousGateSchema = z.object({
|
|
802
|
+
gate: z.string(),
|
|
803
|
+
triggered: z.boolean(),
|
|
804
|
+
reason: z.string().default(""),
|
|
805
|
+
});
|
|
806
|
+
|
|
807
|
+
export const modeScoringSchema = z.object({
|
|
808
|
+
surface_area: z.number().min(0).max(3),
|
|
809
|
+
integration_count: z.number().min(0).max(3),
|
|
810
|
+
user_clarity: z.number().min(0).max(3),
|
|
811
|
+
outcome_concreteness: z.number().min(0).max(3),
|
|
812
|
+
coordination_complexity: z.number().min(0).max(3),
|
|
813
|
+
contradiction_level: z.number().min(0).max(3),
|
|
814
|
+
appetite_mismatch: z.number().min(0).max(3),
|
|
815
|
+
total: z.number(),
|
|
816
|
+
});
|
|
817
|
+
|
|
818
|
+
export const activationResultSchema = z.object({
|
|
819
|
+
assumptions: z.array(assumptionSchema),
|
|
820
|
+
workflow_canvas: workflowCanvasSchema,
|
|
821
|
+
non_functional_gates: z.array(nonFunctionalGateSchema),
|
|
822
|
+
dangerous_gates: z.array(dangerousGateSchema),
|
|
823
|
+
mode_scoring: modeScoringSchema,
|
|
824
|
+
selected_mode: processModeSchema,
|
|
825
|
+
mode_is_escalatable: z.boolean().default(true),
|
|
826
|
+
escalation_triggers: z.array(z.string()).default([]),
|
|
827
|
+
});
|
|
828
|
+
|
|
829
|
+
export type AssumptionStatus = z.infer<typeof assumptionStatusSchema>;
|
|
830
|
+
export type Assumption = z.infer<typeof assumptionSchema>;
|
|
831
|
+
export type WorkflowCanvas = z.infer<typeof workflowCanvasSchema>;
|
|
832
|
+
export type NonFunctionalGate = z.infer<typeof nonFunctionalGateSchema>;
|
|
833
|
+
export type DangerousGate = z.infer<typeof dangerousGateSchema>;
|
|
834
|
+
export type ModeScoring = z.infer<typeof modeScoringSchema>;
|
|
835
|
+
export type ActivationResult = z.infer<typeof activationResultSchema>;
|
|
836
|
+
|
|
837
|
+
// ---------------------------------------------------------------------------
|
|
838
|
+
// Handoff Contract V2 + Run History types
|
|
839
|
+
// ---------------------------------------------------------------------------
|
|
840
|
+
|
|
841
|
+
export const dispatchStateSchema = z.enum([
|
|
842
|
+
"queued", "preflight", "started", "completed", "failed", "timed-out", "late-return", "cancelled",
|
|
843
|
+
]);
|
|
844
|
+
|
|
845
|
+
export const runTokenSchema = z.object({
|
|
846
|
+
token: z.string(),
|
|
847
|
+
spec_generation: z.number(),
|
|
848
|
+
created_at: z.string(),
|
|
849
|
+
contract_version: z.literal("v2"),
|
|
850
|
+
});
|
|
851
|
+
|
|
852
|
+
export const handoffContractV2Schema = z.object({
|
|
853
|
+
contract_version: z.literal("v2"),
|
|
854
|
+
run_token: runTokenSchema,
|
|
855
|
+
spec_generation: z.number(),
|
|
856
|
+
canonical_snapshot_ref: z.string().default(""),
|
|
857
|
+
intent: z.object({
|
|
858
|
+
objective: z.string(),
|
|
859
|
+
scope_in: z.array(z.string()),
|
|
860
|
+
scope_out: z.array(z.string()),
|
|
861
|
+
non_goals: z.array(z.string()),
|
|
862
|
+
}),
|
|
863
|
+
constraints: z.object({
|
|
864
|
+
done_when: z.array(z.string()),
|
|
865
|
+
success_criteria: z.array(z.string()),
|
|
866
|
+
verify_with: z.array(z.string()),
|
|
867
|
+
blocker_escalation: z.array(z.string()),
|
|
868
|
+
return_when: z.string(),
|
|
869
|
+
}),
|
|
870
|
+
context: z.object({
|
|
871
|
+
surface: surfaceSchema,
|
|
872
|
+
fallback_surface: surfaceSchema,
|
|
873
|
+
execution_shape: z.string(),
|
|
874
|
+
process_mode: processModeSchema,
|
|
875
|
+
}),
|
|
876
|
+
return_expectations: z.object({
|
|
877
|
+
required_fields: z.array(z.string()),
|
|
878
|
+
must_reference_token: z.boolean().default(true),
|
|
879
|
+
must_match_generation: z.boolean().default(true),
|
|
880
|
+
}),
|
|
881
|
+
dispatch_state: dispatchStateSchema.default("queued"),
|
|
882
|
+
created_at: z.string(),
|
|
883
|
+
});
|
|
884
|
+
|
|
885
|
+
export const runEventKindSchema = z.enum([
|
|
886
|
+
"activation", "contract-locked", "brief-dispatched", "brief-received", "brief-accepted", "brief-held",
|
|
887
|
+
"execution-dispatched", "execution-started", "execution-returned", "execution-absorbed",
|
|
888
|
+
"canonical-updated",
|
|
889
|
+
"gate-held", "gate-blocked", "gate-accepted", "gate-accepted-with-cautions",
|
|
890
|
+
"next-slice-created",
|
|
891
|
+
"review-hold", "review-released",
|
|
892
|
+
"closure-recorded", "feedback-submitted",
|
|
893
|
+
"loop-transition",
|
|
894
|
+
"closed", "error", "late-return",
|
|
895
|
+
]);
|
|
896
|
+
|
|
897
|
+
export const eventContextSchema = z.object({
|
|
898
|
+
contract_ref: z.string().default(""),
|
|
899
|
+
handoff_id: z.string().default(""),
|
|
900
|
+
dispatch_id: z.string().default(""),
|
|
901
|
+
return_id: z.string().default(""),
|
|
902
|
+
delta_id: z.string().default(""),
|
|
903
|
+
next_slice_id: z.string().default(""),
|
|
904
|
+
closure_id: z.string().default(""),
|
|
905
|
+
surface: z.string().default(""),
|
|
906
|
+
gate_label: z.string().default(""),
|
|
907
|
+
delta_summary: z.string().default(""),
|
|
908
|
+
evidence_summary: z.string().default(""),
|
|
909
|
+
next_action: z.string().default(""),
|
|
910
|
+
}).default({});
|
|
911
|
+
|
|
912
|
+
export const runEventSchema = z.object({
|
|
913
|
+
id: z.string(),
|
|
914
|
+
kind: runEventKindSchema,
|
|
915
|
+
timestamp: z.string(),
|
|
916
|
+
run_token: z.string().optional(),
|
|
917
|
+
spec_generation: z.number().optional(),
|
|
918
|
+
detail: z.string().default(""),
|
|
919
|
+
context: eventContextSchema,
|
|
920
|
+
metadata: z.record(z.string(), z.unknown()).default({}),
|
|
921
|
+
});
|
|
922
|
+
|
|
923
|
+
export const runHistorySchema = z.object({
|
|
924
|
+
events: z.array(runEventSchema),
|
|
925
|
+
project_id: z.string(),
|
|
926
|
+
});
|
|
927
|
+
|
|
928
|
+
export const handoffPreflightResultSchema = z.object({
|
|
929
|
+
ready: z.boolean(),
|
|
930
|
+
blockers: z.array(z.string()),
|
|
931
|
+
warnings: z.array(z.string()),
|
|
932
|
+
});
|
|
933
|
+
|
|
934
|
+
export type DispatchState = z.infer<typeof dispatchStateSchema>;
|
|
935
|
+
export type RunToken = z.infer<typeof runTokenSchema>;
|
|
936
|
+
export type HandoffContractV2 = z.infer<typeof handoffContractV2Schema>;
|
|
937
|
+
export type RunEventKind = z.infer<typeof runEventKindSchema>;
|
|
938
|
+
export type EventContext = z.infer<typeof eventContextSchema>;
|
|
939
|
+
export type RunEvent = z.infer<typeof runEventSchema>;
|
|
940
|
+
export type RunHistory = z.infer<typeof runHistorySchema>;
|
|
941
|
+
export type HandoffPreflightResult = z.infer<typeof handoffPreflightResultSchema>;
|
|
942
|
+
|
|
943
|
+
// ---------------------------------------------------------------------------
|
|
944
|
+
// Routing V2 types
|
|
945
|
+
// ---------------------------------------------------------------------------
|
|
946
|
+
|
|
947
|
+
export const verificationPathSchema = z.enum([
|
|
948
|
+
"none",
|
|
949
|
+
"documentation-required",
|
|
950
|
+
"dependency-verification",
|
|
951
|
+
"reduced-tool-surface",
|
|
952
|
+
]);
|
|
953
|
+
|
|
954
|
+
export const routingCandidateSchema = z.object({
|
|
955
|
+
provider_id: providerIdSchema,
|
|
956
|
+
score: z.number(),
|
|
957
|
+
disqualified: z.boolean().default(false),
|
|
958
|
+
disqualification_reason: z.string().default(""),
|
|
959
|
+
verification_path: verificationPathSchema.default("none"),
|
|
960
|
+
});
|
|
961
|
+
|
|
962
|
+
export const routingDecisionSchema = z.object({
|
|
963
|
+
selected: routingCandidateSchema,
|
|
964
|
+
fallback: routingCandidateSchema.optional(),
|
|
965
|
+
candidates: z.array(routingCandidateSchema),
|
|
966
|
+
rationale: z.string(),
|
|
967
|
+
constraints_applied: z.array(z.string()),
|
|
968
|
+
verification_path: verificationPathSchema,
|
|
969
|
+
});
|
|
970
|
+
|
|
971
|
+
export const routingConstraintsSchema = z.object({
|
|
972
|
+
task_type: taskTypeSchema,
|
|
973
|
+
process_mode: processModeSchema,
|
|
974
|
+
seed_confidence: z.enum(["high", "medium", "low"]),
|
|
975
|
+
repo_exists: z.boolean(),
|
|
976
|
+
capability_needed: providerCapabilitySchema,
|
|
977
|
+
non_functional_flags: z.array(z.string()).default([]),
|
|
978
|
+
blast_radius: riskLevelSchema.default("low"),
|
|
979
|
+
provider_readiness: z.record(providerIdSchema, z.boolean()).default({}),
|
|
980
|
+
});
|
|
981
|
+
|
|
982
|
+
export type VerificationPath = z.infer<typeof verificationPathSchema>;
|
|
983
|
+
export type RoutingCandidate = z.infer<typeof routingCandidateSchema>;
|
|
984
|
+
export type RoutingDecision = z.infer<typeof routingDecisionSchema>;
|
|
985
|
+
export type RoutingConstraints = z.infer<typeof routingConstraintsSchema>;
|
|
986
|
+
|
|
987
|
+
// ---------------------------------------------------------------------------
|
|
988
|
+
// Reconcile V2 types
|
|
989
|
+
// ---------------------------------------------------------------------------
|
|
990
|
+
|
|
991
|
+
export const provenanceRecordSchema = z.object({
|
|
992
|
+
spec_generation: z.number(),
|
|
993
|
+
run_token: z.string().default(""),
|
|
994
|
+
agent_id: z.string().default(""),
|
|
995
|
+
outputs: z.array(z.string()).default([]),
|
|
996
|
+
activity: z.array(z.string()).default([]),
|
|
997
|
+
});
|
|
998
|
+
|
|
999
|
+
export const reconcileCheckResultSchema = z.object({
|
|
1000
|
+
check: z.string(),
|
|
1001
|
+
passed: z.boolean(),
|
|
1002
|
+
severity: z.enum(["info", "warning", "blocker"]),
|
|
1003
|
+
detail: z.string().default(""),
|
|
1004
|
+
});
|
|
1005
|
+
|
|
1006
|
+
export const traceabilityCoverageSchema = z.object({
|
|
1007
|
+
entry_id: z.string(),
|
|
1008
|
+
entry_text: z.string(),
|
|
1009
|
+
linked_artifacts: z.array(z.string()),
|
|
1010
|
+
covered: z.boolean(),
|
|
1011
|
+
});
|
|
1012
|
+
|
|
1013
|
+
export const reconcileV2ResultSchema = z.object({
|
|
1014
|
+
checks: z.array(reconcileCheckResultSchema),
|
|
1015
|
+
traceability: z.array(traceabilityCoverageSchema).default([]),
|
|
1016
|
+
passed: z.boolean(),
|
|
1017
|
+
blockers: z.number().default(0),
|
|
1018
|
+
warnings: z.number().default(0),
|
|
1019
|
+
recommendation: z.enum(["accept", "accept-with-warnings", "review-required"]),
|
|
1020
|
+
summary: z.string(),
|
|
1021
|
+
});
|
|
1022
|
+
|
|
1023
|
+
export type ProvenanceRecord = z.infer<typeof provenanceRecordSchema>;
|
|
1024
|
+
export type ReconcileCheckResult = z.infer<typeof reconcileCheckResultSchema>;
|
|
1025
|
+
export type TraceabilityCoverage = z.infer<typeof traceabilityCoverageSchema>;
|
|
1026
|
+
export type ReconcileV2Result = z.infer<typeof reconcileV2ResultSchema>;
|
|
1027
|
+
|
|
1028
|
+
// ---------------------------------------------------------------------------
|
|
1029
|
+
// Approval gates + review packet types
|
|
1030
|
+
// ---------------------------------------------------------------------------
|
|
1031
|
+
|
|
1032
|
+
export const gateReasonSchema = z.enum([
|
|
1033
|
+
"major-scope-change",
|
|
1034
|
+
"destructive-rewrite",
|
|
1035
|
+
"policy-exception",
|
|
1036
|
+
"unparented-high-impact-decision",
|
|
1037
|
+
"weak-evidence-high-risk",
|
|
1038
|
+
"requirement-removal",
|
|
1039
|
+
"trust-boundary-change",
|
|
1040
|
+
]);
|
|
1041
|
+
|
|
1042
|
+
export const approvalGateSchema = z.object({
|
|
1043
|
+
id: z.string(),
|
|
1044
|
+
reason: gateReasonSchema,
|
|
1045
|
+
detail: z.string(),
|
|
1046
|
+
triggered_by: z.string().default(""),
|
|
1047
|
+
evidence_missing: z.array(z.string()).default([]),
|
|
1048
|
+
resolution_path: z.string().default(""),
|
|
1049
|
+
created_at: z.string(),
|
|
1050
|
+
});
|
|
1051
|
+
|
|
1052
|
+
export const holdStateSchema = z.object({
|
|
1053
|
+
held: z.boolean(),
|
|
1054
|
+
gates: z.array(approvalGateSchema),
|
|
1055
|
+
held_since: z.string().optional(),
|
|
1056
|
+
summary: z.string().default(""),
|
|
1057
|
+
resolution_actions: z.array(z.string()).default([]),
|
|
1058
|
+
});
|
|
1059
|
+
|
|
1060
|
+
export const reviewPacketSchema = z.object({
|
|
1061
|
+
project_id: z.string(),
|
|
1062
|
+
spec_generation: z.number(),
|
|
1063
|
+
requirement_diff_summary: z.string(),
|
|
1064
|
+
changed_constraints: z.array(z.string()),
|
|
1065
|
+
decisions_with_evidence: z.array(z.object({
|
|
1066
|
+
text: z.string(),
|
|
1067
|
+
evidence_type: evidenceTypeSchema,
|
|
1068
|
+
has_refs: z.boolean(),
|
|
1069
|
+
risk_level: riskLevelSchema.optional(),
|
|
1070
|
+
})),
|
|
1071
|
+
execution_proof: z.object({
|
|
1072
|
+
verification_count: z.number(),
|
|
1073
|
+
evidence_count: z.number(),
|
|
1074
|
+
criteria_met_count: z.number(),
|
|
1075
|
+
summary: z.string(),
|
|
1076
|
+
}),
|
|
1077
|
+
warnings: z.array(z.string()),
|
|
1078
|
+
missing_evidence: z.array(z.string()),
|
|
1079
|
+
gates: z.array(approvalGateSchema),
|
|
1080
|
+
recommendation: z.enum(["accept", "accept-with-warnings", "review-required"]),
|
|
1081
|
+
human_summary: z.string(),
|
|
1082
|
+
});
|
|
1083
|
+
|
|
1084
|
+
export type GateReason = z.infer<typeof gateReasonSchema>;
|
|
1085
|
+
export type ApprovalGate = z.infer<typeof approvalGateSchema>;
|
|
1086
|
+
export type HoldState = z.infer<typeof holdStateSchema>;
|
|
1087
|
+
export type ReviewPacket = z.infer<typeof reviewPacketSchema>;
|
|
1088
|
+
|
|
1089
|
+
// ---------------------------------------------------------------------------
|
|
1090
|
+
// Gate state — evidence-backed trust labels
|
|
1091
|
+
// ---------------------------------------------------------------------------
|
|
1092
|
+
|
|
1093
|
+
export const gateStateLabelSchema = z.enum([
|
|
1094
|
+
"accepted",
|
|
1095
|
+
"accepted-with-cautions",
|
|
1096
|
+
"held-for-review",
|
|
1097
|
+
"blocked-missing-evidence",
|
|
1098
|
+
"pending",
|
|
1099
|
+
"not-checked",
|
|
1100
|
+
]);
|
|
1101
|
+
|
|
1102
|
+
export const gateStateSchema = z.object({
|
|
1103
|
+
label: gateStateLabelSchema,
|
|
1104
|
+
reason: z.string(),
|
|
1105
|
+
evidence_summary: z.object({
|
|
1106
|
+
verification_count: z.number(),
|
|
1107
|
+
evidence_count: z.number(),
|
|
1108
|
+
criteria_met_count: z.number(),
|
|
1109
|
+
caution_count: z.number(),
|
|
1110
|
+
blocker_count: z.number(),
|
|
1111
|
+
}),
|
|
1112
|
+
honest: z.boolean(), // true = label is consistent with evidence
|
|
1113
|
+
});
|
|
1114
|
+
|
|
1115
|
+
export type GateStateLabel = z.infer<typeof gateStateLabelSchema>;
|
|
1116
|
+
export type GateState = z.infer<typeof gateStateSchema>;
|
|
1117
|
+
|
|
1118
|
+
// ---------------------------------------------------------------------------
|
|
1119
|
+
// Post-execution canonical delta + next slice
|
|
1120
|
+
// ---------------------------------------------------------------------------
|
|
1121
|
+
|
|
1122
|
+
export const fileChangeSchema = z.object({
|
|
1123
|
+
path: z.string(),
|
|
1124
|
+
system: z.string().default(""),
|
|
1125
|
+
});
|
|
1126
|
+
|
|
1127
|
+
export const testCheckSchema = z.object({
|
|
1128
|
+
name: z.string(),
|
|
1129
|
+
passed: z.boolean(),
|
|
1130
|
+
});
|
|
1131
|
+
|
|
1132
|
+
export const consequenceTypeSchema = z.enum([
|
|
1133
|
+
"code-change",
|
|
1134
|
+
"contract-clarification",
|
|
1135
|
+
"absorbed-return",
|
|
1136
|
+
"open-items-recorded",
|
|
1137
|
+
"next-slice-created",
|
|
1138
|
+
"closure-recorded",
|
|
1139
|
+
"no-change",
|
|
1140
|
+
]);
|
|
1141
|
+
|
|
1142
|
+
export const evidenceAccountingSchema = z.object({
|
|
1143
|
+
scope_check_count: z.number(),
|
|
1144
|
+
scope_check_pass_count: z.number(),
|
|
1145
|
+
scope_check_caution_count: z.number(),
|
|
1146
|
+
scope_check_blocker_count: z.number(),
|
|
1147
|
+
verification_run_count: z.number(),
|
|
1148
|
+
verification_runs: z.array(z.string()),
|
|
1149
|
+
evidence_item_count: z.number(),
|
|
1150
|
+
evidence_items: z.array(z.string()),
|
|
1151
|
+
file_change_count: z.number(),
|
|
1152
|
+
artifact_change_count: z.number(),
|
|
1153
|
+
criteria_met_count: z.number(),
|
|
1154
|
+
criteria_met: z.array(z.string()),
|
|
1155
|
+
caution_count: z.number(),
|
|
1156
|
+
unresolved_count: z.number(),
|
|
1157
|
+
boundary_preserved_count: z.number(),
|
|
1158
|
+
boundary_violated_count: z.number(),
|
|
1159
|
+
consequence_type: consequenceTypeSchema,
|
|
1160
|
+
consequence_label: z.string(),
|
|
1161
|
+
});
|
|
1162
|
+
|
|
1163
|
+
export type ConsequenceType = z.infer<typeof consequenceTypeSchema>;
|
|
1164
|
+
export type EvidenceAccounting = z.infer<typeof evidenceAccountingSchema>;
|
|
1165
|
+
|
|
1166
|
+
export const canonicalDeltaSchema = z.object({
|
|
1167
|
+
// Identity & lineage
|
|
1168
|
+
delta_id: z.string().default(""),
|
|
1169
|
+
project_id: z.string().default(""),
|
|
1170
|
+
parent_contract_id: z.string().default(""),
|
|
1171
|
+
return_id: z.string().default(""),
|
|
1172
|
+
gate_state: z.string().default(""),
|
|
1173
|
+
objective_state: z.enum(["met", "partial", "unmet", "not_started"]).default("not_started"),
|
|
1174
|
+
created_at: z.string().default(""),
|
|
1175
|
+
|
|
1176
|
+
// What changed
|
|
1177
|
+
implemented: z.array(z.string()),
|
|
1178
|
+
systems_touched: z.array(z.string()),
|
|
1179
|
+
file_changes: z.array(fileChangeSchema).default([]),
|
|
1180
|
+
artifact_changes: z.array(z.string()).default([]),
|
|
1181
|
+
|
|
1182
|
+
// Evidence
|
|
1183
|
+
tests_or_checks: z.array(testCheckSchema).default([]),
|
|
1184
|
+
verification_runs: z.array(z.string()).default([]),
|
|
1185
|
+
evidence_items: z.array(z.string()).default([]),
|
|
1186
|
+
|
|
1187
|
+
// Boundaries
|
|
1188
|
+
boundaries_preserved: z.array(z.string()),
|
|
1189
|
+
boundaries_violated: z.array(z.string()),
|
|
1190
|
+
|
|
1191
|
+
// Open items
|
|
1192
|
+
cautions: z.array(z.string()),
|
|
1193
|
+
unresolved: z.array(z.string()),
|
|
1194
|
+
decisions: z.array(z.object({
|
|
1195
|
+
text: z.string(),
|
|
1196
|
+
traced: z.boolean(),
|
|
1197
|
+
})),
|
|
1198
|
+
|
|
1199
|
+
// What advanced
|
|
1200
|
+
state_fields_advanced: z.array(z.string()).default([]),
|
|
1201
|
+
|
|
1202
|
+
// Display
|
|
1203
|
+
summary: z.string(),
|
|
1204
|
+
|
|
1205
|
+
// Canonical evidence accounting — single source of truth for all counts
|
|
1206
|
+
evidence_accounting: evidenceAccountingSchema.optional(),
|
|
1207
|
+
|
|
1208
|
+
// Legacy compat — kept so existing code doesn't break
|
|
1209
|
+
verified: z.array(z.string()),
|
|
1210
|
+
|
|
1211
|
+
// Next slice seed
|
|
1212
|
+
next_slice_seed: z.object({
|
|
1213
|
+
title: z.string(),
|
|
1214
|
+
rationale: z.string(),
|
|
1215
|
+
systems_likely: z.array(z.string()),
|
|
1216
|
+
ready: z.boolean(),
|
|
1217
|
+
}).optional(),
|
|
1218
|
+
|
|
1219
|
+
// Residual resolution rows — maps prior-loop residuals to this loop's evidence
|
|
1220
|
+
residual_resolutions: z.array(z.object({
|
|
1221
|
+
prior_residual_text: z.string(),
|
|
1222
|
+
source: z.enum(["caution", "unresolved", "blocker", "escalation"]),
|
|
1223
|
+
loop2_evidence_used: z.string(),
|
|
1224
|
+
disposition: z.enum(["resolved", "partially_resolved", "carried_forward", "superseded"]),
|
|
1225
|
+
resolution_note: z.string().default(""),
|
|
1226
|
+
})).default([]),
|
|
1227
|
+
});
|
|
1228
|
+
|
|
1229
|
+
export type FileChange = z.infer<typeof fileChangeSchema>;
|
|
1230
|
+
export type TestCheck = z.infer<typeof testCheckSchema>;
|
|
1231
|
+
export type ResidualResolution = CanonicalDelta["residual_resolutions"][number];
|
|
1232
|
+
|
|
1233
|
+
export const nextSliceStatusSchema = z.enum([
|
|
1234
|
+
"draft", "ready", "held", "blocked", "dispatched", "superseded", "closed",
|
|
1235
|
+
]);
|
|
1236
|
+
|
|
1237
|
+
export const nextSliceSchema = z.object({
|
|
1238
|
+
// Identity & lineage
|
|
1239
|
+
slice_id: z.string().default(""),
|
|
1240
|
+
project_id: z.string().default(""),
|
|
1241
|
+
parent_contract_id: z.string().default(""),
|
|
1242
|
+
parent_delta_id: z.string().default(""),
|
|
1243
|
+
created_from: z.string().default(""),
|
|
1244
|
+
created_at: z.string().default(""),
|
|
1245
|
+
|
|
1246
|
+
// Core
|
|
1247
|
+
title: z.string(),
|
|
1248
|
+
objective: z.string().default(""),
|
|
1249
|
+
why_next: z.string().default(""),
|
|
1250
|
+
status: nextSliceStatusSchema.default("draft"),
|
|
1251
|
+
dispatch_ready: z.boolean().default(false),
|
|
1252
|
+
|
|
1253
|
+
// Context
|
|
1254
|
+
scope: z.array(z.string()),
|
|
1255
|
+
systems_in_play: z.array(z.string()),
|
|
1256
|
+
required_inputs: z.array(z.string()).default([]),
|
|
1257
|
+
expected_evidence: z.array(z.string()).default([]),
|
|
1258
|
+
open_dependencies: z.array(z.string()).default([]),
|
|
1259
|
+
blocking_reason: z.string().default(""),
|
|
1260
|
+
|
|
1261
|
+
// Legacy compat fields (still consumed by UI)
|
|
1262
|
+
rationale: z.string(),
|
|
1263
|
+
systems_likely: z.array(z.string()),
|
|
1264
|
+
ready_for_dispatch: z.boolean(),
|
|
1265
|
+
review_reason: z.string().default(""),
|
|
1266
|
+
unresolved_blocker: z.string().default(""),
|
|
1267
|
+
assumption: z.string().default(""),
|
|
1268
|
+
});
|
|
1269
|
+
|
|
1270
|
+
export type NextSliceStatus = z.infer<typeof nextSliceStatusSchema>;
|
|
1271
|
+
|
|
1272
|
+
export type CanonicalDelta = z.infer<typeof canonicalDeltaSchema>;
|
|
1273
|
+
export type NextSlice = z.infer<typeof nextSliceSchema>;
|
|
1274
|
+
|
|
1275
|
+
// ---------------------------------------------------------------------------
|
|
1276
|
+
// Handoff / route visibility — frontstage-safe dispatch + return linkage
|
|
1277
|
+
// ---------------------------------------------------------------------------
|
|
1278
|
+
|
|
1279
|
+
export const dispatchSummarySchema = z.object({
|
|
1280
|
+
goal: z.string(),
|
|
1281
|
+
protected_boundaries: z.array(z.string()),
|
|
1282
|
+
expected_outputs: z.array(z.string()),
|
|
1283
|
+
acceptance_basis: z.array(z.string()),
|
|
1284
|
+
});
|
|
1285
|
+
|
|
1286
|
+
export const handoffVisibilitySchema = z.object({
|
|
1287
|
+
// Where and why
|
|
1288
|
+
surface: surfaceSchema,
|
|
1289
|
+
surface_label: z.string(),
|
|
1290
|
+
routing_reason: z.string(),
|
|
1291
|
+
// Identity
|
|
1292
|
+
handoff_id: z.string(),
|
|
1293
|
+
contract_title: z.string(),
|
|
1294
|
+
// Context
|
|
1295
|
+
repo_binding: z.string(),
|
|
1296
|
+
systems_in_scope: z.array(z.string()),
|
|
1297
|
+
dispatched_at: z.string(),
|
|
1298
|
+
// What was sent
|
|
1299
|
+
dispatch: dispatchSummarySchema,
|
|
1300
|
+
// Return linkage (populated after return)
|
|
1301
|
+
return_summary: z.string().default(""),
|
|
1302
|
+
return_status: z.string().default(""),
|
|
1303
|
+
return_linked: z.boolean().default(false),
|
|
1304
|
+
});
|
|
1305
|
+
|
|
1306
|
+
export type DispatchSummary = z.infer<typeof dispatchSummarySchema>;
|
|
1307
|
+
export type HandoffVisibility = z.infer<typeof handoffVisibilitySchema>;
|
|
1308
|
+
|
|
1309
|
+
export const lineageStatusSchema = z.enum([
|
|
1310
|
+
"dispatched", "return-received", "absorbed", "held", "rejected",
|
|
1311
|
+
]);
|
|
1312
|
+
|
|
1313
|
+
// ---------------------------------------------------------------------------
|
|
1314
|
+
// Lane / realization metadata — tracks HOW a governed action was realized
|
|
1315
|
+
// ---------------------------------------------------------------------------
|
|
1316
|
+
|
|
1317
|
+
export const realizationTypeSchema = z.enum([
|
|
1318
|
+
"external_dispatch", // real API/CLI call to an external provider
|
|
1319
|
+
"local_compute", // deterministic heuristic / pure function
|
|
1320
|
+
"manual_packet", // immutable packet generated for operator transport
|
|
1321
|
+
"manual_transport", // operator transported a packet to a surface
|
|
1322
|
+
"internal_heuristic", // pattern-matching / rule-based assessment
|
|
1323
|
+
]);
|
|
1324
|
+
|
|
1325
|
+
export const agentRoleSchema = z.enum([
|
|
1326
|
+
"compiler", // brief/spec compilation
|
|
1327
|
+
"executor", // primary bounded execution
|
|
1328
|
+
"auditor", // post-execution audit / code review
|
|
1329
|
+
"evaluator", // independent evaluation / challenger
|
|
1330
|
+
"synthesizer", // internal seed/activation synthesis
|
|
1331
|
+
]);
|
|
1332
|
+
|
|
1333
|
+
export const laneRecordSchema = z.object({
|
|
1334
|
+
lane_id: z.string(),
|
|
1335
|
+
agent_role: agentRoleSchema,
|
|
1336
|
+
agent_surface: surfaceSchema,
|
|
1337
|
+
realization_type: realizationTypeSchema,
|
|
1338
|
+
model: z.string().default(""),
|
|
1339
|
+
started_at: z.string().default(""),
|
|
1340
|
+
completed_at: z.string().default(""),
|
|
1341
|
+
duration_ms: z.number().default(0),
|
|
1342
|
+
artifact_id: z.string().default(""),
|
|
1343
|
+
status: z.enum(["pending", "running", "completed", "failed", "skipped"]).default("pending"),
|
|
1344
|
+
error: z.string().optional(),
|
|
1345
|
+
detail: z.string().default(""),
|
|
1346
|
+
});
|
|
1347
|
+
|
|
1348
|
+
export type RealizationType = z.infer<typeof realizationTypeSchema>;
|
|
1349
|
+
export type AgentRole = z.infer<typeof agentRoleSchema>;
|
|
1350
|
+
export type LaneRecord = z.infer<typeof laneRecordSchema>;
|
|
1351
|
+
|
|
1352
|
+
export const dispatchRecordSchema = z.object({
|
|
1353
|
+
// Identity
|
|
1354
|
+
dispatch_id: z.string(),
|
|
1355
|
+
project_id: z.string(),
|
|
1356
|
+
contract_id: z.string(),
|
|
1357
|
+
|
|
1358
|
+
// Route decision (stable, machine-readable)
|
|
1359
|
+
provider_target: z.string(),
|
|
1360
|
+
provider_label: z.string(),
|
|
1361
|
+
dispatch_reason: z.string(),
|
|
1362
|
+
route_surface: surfaceSchema.optional(),
|
|
1363
|
+
route_fallback: surfaceSchema.optional(),
|
|
1364
|
+
route_rationale: z.string().default(""),
|
|
1365
|
+
slice_id: z.string().default(""),
|
|
1366
|
+
|
|
1367
|
+
// Packet (frontstage-safe)
|
|
1368
|
+
packet_summary: z.string(),
|
|
1369
|
+
bounded_by: z.array(z.string()),
|
|
1370
|
+
systems_in_play: z.array(z.string()),
|
|
1371
|
+
dispatched_at: z.string(),
|
|
1372
|
+
|
|
1373
|
+
// Return linkage
|
|
1374
|
+
return_id: z.string().default(""),
|
|
1375
|
+
return_received_at: z.string().default(""),
|
|
1376
|
+
return_status: z.string().default(""),
|
|
1377
|
+
return_summary: z.string().default(""),
|
|
1378
|
+
lineage_status: lineageStatusSchema.default("dispatched"),
|
|
1379
|
+
|
|
1380
|
+
// Delta linkage
|
|
1381
|
+
delta_id: z.string().default(""),
|
|
1382
|
+
next_slice_id: z.string().default(""),
|
|
1383
|
+
closure_id: z.string().default(""),
|
|
1384
|
+
|
|
1385
|
+
// Lane metadata — tracks primary + secondary lane realizations
|
|
1386
|
+
realization_type: realizationTypeSchema.default("external_dispatch"),
|
|
1387
|
+
lanes: z.array(laneRecordSchema).default([]),
|
|
1388
|
+
});
|
|
1389
|
+
|
|
1390
|
+
export type LineageStatus = z.infer<typeof lineageStatusSchema>;
|
|
1391
|
+
export type DispatchRecord = z.infer<typeof dispatchRecordSchema>;
|
|
1392
|
+
|
|
1393
|
+
// ---------------------------------------------------------------------------
|
|
1394
|
+
// Reconcile check matrix + review packet — frontstage-safe trust proof
|
|
1395
|
+
// ---------------------------------------------------------------------------
|
|
1396
|
+
|
|
1397
|
+
export const checkResultSchema = z.enum(["pass", "caution", "missing", "blocked"]);
|
|
1398
|
+
|
|
1399
|
+
export const checkMatrixRowSchema = z.object({
|
|
1400
|
+
check: z.string(),
|
|
1401
|
+
result: checkResultSchema,
|
|
1402
|
+
evidence: z.string(),
|
|
1403
|
+
why_it_matters: z.string(),
|
|
1404
|
+
contributes_to_gate: z.boolean(),
|
|
1405
|
+
});
|
|
1406
|
+
|
|
1407
|
+
export const checkMatrixSchema = z.object({
|
|
1408
|
+
rows: z.array(checkMatrixRowSchema),
|
|
1409
|
+
pass_count: z.number(),
|
|
1410
|
+
caution_count: z.number(),
|
|
1411
|
+
missing_count: z.number(),
|
|
1412
|
+
blocked_count: z.number(),
|
|
1413
|
+
});
|
|
1414
|
+
|
|
1415
|
+
export const reconcileReviewPacketSchema = z.object({
|
|
1416
|
+
contract_summary: z.string(),
|
|
1417
|
+
delta_summary: z.string(),
|
|
1418
|
+
check_matrix: checkMatrixSchema,
|
|
1419
|
+
cautions: z.array(z.string()),
|
|
1420
|
+
missing_evidence: z.array(z.string()),
|
|
1421
|
+
gate_label: z.string(),
|
|
1422
|
+
gate_reason: z.string(),
|
|
1423
|
+
next_resolution: z.string(),
|
|
1424
|
+
});
|
|
1425
|
+
|
|
1426
|
+
export type CheckResult = z.infer<typeof checkResultSchema>;
|
|
1427
|
+
export type CheckMatrixRow = z.infer<typeof checkMatrixRowSchema>;
|
|
1428
|
+
export type CheckMatrix = z.infer<typeof checkMatrixSchema>;
|
|
1429
|
+
export type ReconcileReviewPacket = z.infer<typeof reconcileReviewPacketSchema>;
|
|
1430
|
+
|
|
1431
|
+
export type ConditionType = z.infer<typeof conditionTypeSchema>;
|
|
1432
|
+
export type ConditionStatus = z.infer<typeof conditionStatusSchema>;
|
|
1433
|
+
export type Condition = z.infer<typeof conditionSchema>;
|
|
1434
|
+
export type ProjectSpec = z.infer<typeof projectSpecSchema>;
|
|
1435
|
+
export type ProjectStatus = z.infer<typeof projectStatusSchema>;
|
|
1436
|
+
export type ProjectMetadata = z.infer<typeof projectMetadataSchema>;
|
|
1437
|
+
export type ProjectResource = z.infer<typeof projectResourceSchema>;
|
|
1438
|
+
|
|
1439
|
+
// ---------------------------------------------------------------------------
|
|
1440
|
+
// Governance Envelope — single hard finite state model
|
|
1441
|
+
// ---------------------------------------------------------------------------
|
|
1442
|
+
|
|
1443
|
+
export const activationStateSchema = z.enum([
|
|
1444
|
+
"blocked_by_missing_evidence",
|
|
1445
|
+
"held_for_review",
|
|
1446
|
+
"ready_to_lock",
|
|
1447
|
+
"locked",
|
|
1448
|
+
]);
|
|
1449
|
+
|
|
1450
|
+
export const gateOutcomeSchema = z.enum([
|
|
1451
|
+
"not_evaluated",
|
|
1452
|
+
"pending_reconcile",
|
|
1453
|
+
"blocked_by_missing_evidence",
|
|
1454
|
+
"held_for_review",
|
|
1455
|
+
"accepted_with_cautions",
|
|
1456
|
+
"accepted",
|
|
1457
|
+
]);
|
|
1458
|
+
|
|
1459
|
+
export const closureRecordSchema = z.object({
|
|
1460
|
+
// Identity & lineage
|
|
1461
|
+
closure_id: z.string().default(""),
|
|
1462
|
+
project_id: z.string().default(""),
|
|
1463
|
+
return_id: z.string().default(""),
|
|
1464
|
+
delta_id: z.string().default(""),
|
|
1465
|
+
dispatch_id: z.string().default(""),
|
|
1466
|
+
|
|
1467
|
+
// --- SEALED FACTS (immutable after seal) ---
|
|
1468
|
+
sealed_at: z.string(),
|
|
1469
|
+
gate_outcome: gateOutcomeSchema,
|
|
1470
|
+
cautions_at_close: z.array(z.string()),
|
|
1471
|
+
unresolved_at_close: z.array(z.string()),
|
|
1472
|
+
objective_state: z.enum(["met", "partial", "unmet"]),
|
|
1473
|
+
next_slice_at_close: nextSliceSchema.nullable().default(null),
|
|
1474
|
+
seal_integrity: z.enum(["verified", "snapshot_empty", "no_return"]).default("verified"),
|
|
1475
|
+
|
|
1476
|
+
// --- APPENDED METADATA (added after seal, does NOT revise sealed facts) ---
|
|
1477
|
+
feedback_appended_at: z.string().default(""),
|
|
1478
|
+
feedback_snapshot: z.record(z.string(), z.unknown()).default({}),
|
|
1479
|
+
|
|
1480
|
+
// Legacy compat
|
|
1481
|
+
closed_at: z.string(),
|
|
1482
|
+
});
|
|
1483
|
+
|
|
1484
|
+
export const governanceEnvelopeSchema = z.object({
|
|
1485
|
+
// Activation
|
|
1486
|
+
activation_state: activationStateSchema,
|
|
1487
|
+
activation_blockers: z.array(z.string()),
|
|
1488
|
+
|
|
1489
|
+
// Gate (post-return)
|
|
1490
|
+
gate_state: gateOutcomeSchema.nullable(),
|
|
1491
|
+
gate_reason: z.string().default(""),
|
|
1492
|
+
|
|
1493
|
+
// Structured counts — never inferred from prose
|
|
1494
|
+
blockers: z.array(z.string()),
|
|
1495
|
+
cautions: z.array(z.string()),
|
|
1496
|
+
unresolved_items: z.array(z.string()),
|
|
1497
|
+
scope_check_count: z.number(),
|
|
1498
|
+
scope_check_caution_count: z.number(),
|
|
1499
|
+
return_caution_count: z.number(),
|
|
1500
|
+
verification_run_count: z.number(),
|
|
1501
|
+
evidence_item_count: z.number(),
|
|
1502
|
+
objective_state: z.enum(["met", "partial", "unmet", "not_started"]),
|
|
1503
|
+
|
|
1504
|
+
// Control flags
|
|
1505
|
+
state_advance_allowed: z.boolean(),
|
|
1506
|
+
closure_allowed: z.boolean(),
|
|
1507
|
+
|
|
1508
|
+
// Closure
|
|
1509
|
+
closure_state: closureRecordSchema.nullable(),
|
|
1510
|
+
});
|
|
1511
|
+
|
|
1512
|
+
export type ActivationState = z.infer<typeof activationStateSchema>;
|
|
1513
|
+
export type GateOutcome = z.infer<typeof gateOutcomeSchema>;
|
|
1514
|
+
export type ClosureRecord = z.infer<typeof closureRecordSchema>;
|
|
1515
|
+
export type GovernanceEnvelope = z.infer<typeof governanceEnvelopeSchema>;
|
|
1516
|
+
|
|
1517
|
+
// ---------------------------------------------------------------------------
|
|
1518
|
+
// Dispatch Packet Integrity
|
|
1519
|
+
// ---------------------------------------------------------------------------
|
|
1520
|
+
|
|
1521
|
+
export const packetFindingTypeSchema = z.enum([
|
|
1522
|
+
"missing_referenced_artifact",
|
|
1523
|
+
"missing_required_contract_input",
|
|
1524
|
+
"missing_repo_binding",
|
|
1525
|
+
"missing_parent_context",
|
|
1526
|
+
"unresolved_placeholder",
|
|
1527
|
+
"empty_required_field",
|
|
1528
|
+
"packet_contract_mismatch",
|
|
1529
|
+
]);
|
|
1530
|
+
|
|
1531
|
+
export const packetFindingSeveritySchema = z.enum(["blocking", "caution"]);
|
|
1532
|
+
|
|
1533
|
+
export const packetFindingSchema = z.object({
|
|
1534
|
+
type: packetFindingTypeSchema,
|
|
1535
|
+
severity: packetFindingSeveritySchema,
|
|
1536
|
+
field: z.string(),
|
|
1537
|
+
detail: z.string(),
|
|
1538
|
+
});
|
|
1539
|
+
|
|
1540
|
+
export const packetIntegrityOutcomeSchema = z.enum(["ready", "ready_with_cautions", "blocked"]);
|
|
1541
|
+
|
|
1542
|
+
export const packetIntegrityResultSchema = z.object({
|
|
1543
|
+
outcome: packetIntegrityOutcomeSchema,
|
|
1544
|
+
findings: z.array(packetFindingSchema),
|
|
1545
|
+
blocking_findings_count: z.number(),
|
|
1546
|
+
caution_findings_count: z.number(),
|
|
1547
|
+
checked_at: z.string(),
|
|
1548
|
+
checked_against_contract_version: z.string(),
|
|
1549
|
+
validator_version: z.string(),
|
|
1550
|
+
});
|
|
1551
|
+
|
|
1552
|
+
export type PacketFindingType = z.infer<typeof packetFindingTypeSchema>;
|
|
1553
|
+
export type PacketFindingSeverity = z.infer<typeof packetFindingSeveritySchema>;
|
|
1554
|
+
export type PacketFinding = z.infer<typeof packetFindingSchema>;
|
|
1555
|
+
export type PacketIntegrityOutcome = z.infer<typeof packetIntegrityOutcomeSchema>;
|
|
1556
|
+
export type PacketIntegrityResult = z.infer<typeof packetIntegrityResultSchema>;
|
|
1557
|
+
|
|
1558
|
+
// ---------------------------------------------------------------------------
|
|
1559
|
+
// Pressure Signals + Evidence-Required Acceptance
|
|
1560
|
+
// ---------------------------------------------------------------------------
|
|
1561
|
+
|
|
1562
|
+
export const pressureSignalTypeSchema = z.enum([
|
|
1563
|
+
"repeated_failed_attempts",
|
|
1564
|
+
"repeated_retry_loop",
|
|
1565
|
+
"missing_context_encountered",
|
|
1566
|
+
"objective_partial",
|
|
1567
|
+
"claimed_implementation_without_artifact_change",
|
|
1568
|
+
"missing_required_evidence",
|
|
1569
|
+
"test_failure_or_absent_tests_when_expected",
|
|
1570
|
+
"execution_error_or_tool_failure",
|
|
1571
|
+
"suspicious_return_shape_for_task_type",
|
|
1572
|
+
]);
|
|
1573
|
+
|
|
1574
|
+
export const pressureSignalSchema = z.object({
|
|
1575
|
+
type: pressureSignalTypeSchema,
|
|
1576
|
+
detail: z.string(),
|
|
1577
|
+
});
|
|
1578
|
+
|
|
1579
|
+
export const evidenceSufficiencyOutcomeSchema = z.enum([
|
|
1580
|
+
"sufficient",
|
|
1581
|
+
"partial",
|
|
1582
|
+
"insufficient",
|
|
1583
|
+
]);
|
|
1584
|
+
|
|
1585
|
+
export const pressureAssessmentSchema = z.object({
|
|
1586
|
+
signals: z.array(pressureSignalSchema),
|
|
1587
|
+
pressure_detected: z.boolean(),
|
|
1588
|
+
evidence_requirements: z.array(z.string()),
|
|
1589
|
+
evidence_items_present: z.array(z.string()),
|
|
1590
|
+
evidence_items_missing: z.array(z.string()),
|
|
1591
|
+
evidence_sufficiency: evidenceSufficiencyOutcomeSchema,
|
|
1592
|
+
acceptance_decision_reason: z.string(),
|
|
1593
|
+
task_type_basis: z.string(),
|
|
1594
|
+
checked_at: z.string(),
|
|
1595
|
+
});
|
|
1596
|
+
|
|
1597
|
+
export type PressureSignalType = z.infer<typeof pressureSignalTypeSchema>;
|
|
1598
|
+
export type PressureSignal = z.infer<typeof pressureSignalSchema>;
|
|
1599
|
+
export type EvidenceSufficiencyOutcome = z.infer<typeof evidenceSufficiencyOutcomeSchema>;
|
|
1600
|
+
export type PressureAssessment = z.infer<typeof pressureAssessmentSchema>;
|
|
1601
|
+
|
|
1602
|
+
// ---------------------------------------------------------------------------
|
|
1603
|
+
// Evidence Proof — semantically distinct layers of evidence
|
|
1604
|
+
// ---------------------------------------------------------------------------
|
|
1605
|
+
|
|
1606
|
+
/**
|
|
1607
|
+
* Separates structured proof rows, extracted return fields, policy
|
|
1608
|
+
* satisfaction, and canonical advancement so no two surfaces can
|
|
1609
|
+
* disagree about what evidence exists.
|
|
1610
|
+
*/
|
|
1611
|
+
export const evidenceProofSchema = z.object({
|
|
1612
|
+
// Layer 1: Structured proof rows (from return arrays, countable)
|
|
1613
|
+
structured_paths: z.number(), // return.changed_files.length
|
|
1614
|
+
structured_artifacts: z.number(), // return.artifacts_created.filter(Boolean).length
|
|
1615
|
+
structured_verification_lines: z.number(), // return.verification_run.length
|
|
1616
|
+
structured_evidence_lines: z.number(), // return.evidence.length
|
|
1617
|
+
structured_criteria_met: z.number(), // return.success_criteria_met.length
|
|
1618
|
+
|
|
1619
|
+
// Layer 2: Policy evaluation (from checkEvidenceSufficiency)
|
|
1620
|
+
policy_task_type: z.string(), // effective task type used for policy
|
|
1621
|
+
policy_requirements: z.array(z.string()), // what was required
|
|
1622
|
+
policy_satisfied: z.array(z.string()), // what was met
|
|
1623
|
+
policy_missing: z.array(z.string()), // what was not met
|
|
1624
|
+
policy_outcome: z.string(), // sufficient / partial / insufficient
|
|
1625
|
+
|
|
1626
|
+
// Layer 3: Canonical advancement (what actually changed in governed state)
|
|
1627
|
+
state_fields_advanced: z.array(z.string()),
|
|
1628
|
+
consequence_type: z.string(), // code-change / contract-clarification / etc
|
|
1629
|
+
consequence_label: z.string(),
|
|
1630
|
+
|
|
1631
|
+
// Layer 4: Provenance — captured vs reconstructed evidence
|
|
1632
|
+
provenance_captured_count: z.number().default(0), // proof artifacts with provenance=captured
|
|
1633
|
+
provenance_reconstructed_count: z.number().default(0), // proof artifacts with provenance=reconstructed
|
|
1634
|
+
provenance_derived_count: z.number().default(0), // proof artifacts with provenance=derived
|
|
1635
|
+
has_execution_transcript: z.boolean().default(false), // whether raw transcript was captured
|
|
1636
|
+
proof_folder: z.string().optional(), // path to run proof folder
|
|
1637
|
+
});
|
|
1638
|
+
|
|
1639
|
+
export type EvidenceProof = z.infer<typeof evidenceProofSchema>;
|
|
1640
|
+
|
|
1641
|
+
// ---------------------------------------------------------------------------
|
|
1642
|
+
// Canonical Run Snapshot — single source of truth for all surfaces
|
|
1643
|
+
// ---------------------------------------------------------------------------
|
|
1644
|
+
|
|
1645
|
+
export const runPhaseSchema = z.enum([
|
|
1646
|
+
"no_project",
|
|
1647
|
+
"activation_blocked",
|
|
1648
|
+
"activation_held",
|
|
1649
|
+
"ready_to_lock",
|
|
1650
|
+
"locked",
|
|
1651
|
+
"dispatched",
|
|
1652
|
+
"return_received",
|
|
1653
|
+
"absorbed",
|
|
1654
|
+
"accepted",
|
|
1655
|
+
"accepted_with_cautions",
|
|
1656
|
+
"held_for_review",
|
|
1657
|
+
"blocked",
|
|
1658
|
+
"closed",
|
|
1659
|
+
]);
|
|
1660
|
+
|
|
1661
|
+
export const homeBucketSchema = z.enum([
|
|
1662
|
+
"needs_attention",
|
|
1663
|
+
"recently_changed",
|
|
1664
|
+
"held_or_blocked",
|
|
1665
|
+
"ready_to_execute",
|
|
1666
|
+
"feedback_pending",
|
|
1667
|
+
"recently_closed",
|
|
1668
|
+
"idle",
|
|
1669
|
+
]);
|
|
1670
|
+
|
|
1671
|
+
export const runSnapshotSchema = z.object({
|
|
1672
|
+
// Phase — exactly one
|
|
1673
|
+
phase: runPhaseSchema,
|
|
1674
|
+
|
|
1675
|
+
// Gate — from tightened derivation (null before return)
|
|
1676
|
+
gate_label: z.string().default(""),
|
|
1677
|
+
gate_reason: z.string().default(""),
|
|
1678
|
+
hold_source: z.enum(["none", "reconcile", "pressure", "audit"]).default("none"),
|
|
1679
|
+
|
|
1680
|
+
// Cautions + unresolved — single canonical source for ALL surfaces
|
|
1681
|
+
cautions_on_record: z.array(z.string()),
|
|
1682
|
+
unresolved_on_record: z.array(z.string()),
|
|
1683
|
+
|
|
1684
|
+
// Next slice readiness
|
|
1685
|
+
next_slice_ready: z.boolean(),
|
|
1686
|
+
next_slice_status: z.string().default(""),
|
|
1687
|
+
next_slice_blocking_reason: z.string().default(""),
|
|
1688
|
+
|
|
1689
|
+
// Task type — from seed, immutable for the run
|
|
1690
|
+
task_type_basis: z.string(),
|
|
1691
|
+
|
|
1692
|
+
// Home bucket — deterministic from phase + gate + unresolved
|
|
1693
|
+
home_bucket: homeBucketSchema,
|
|
1694
|
+
|
|
1695
|
+
// Closure
|
|
1696
|
+
is_closed: z.boolean(),
|
|
1697
|
+
closure_allowed: z.boolean(),
|
|
1698
|
+
state_advance_allowed: z.boolean(),
|
|
1699
|
+
|
|
1700
|
+
// Counts — from evidence accounting (legacy, kept for compat)
|
|
1701
|
+
verification_run_count: z.number(),
|
|
1702
|
+
evidence_item_count: z.number(),
|
|
1703
|
+
caution_count: z.number(),
|
|
1704
|
+
unresolved_count: z.number(),
|
|
1705
|
+
|
|
1706
|
+
// Evidence proof — semantically layered evidence model
|
|
1707
|
+
evidence_proof: evidenceProofSchema.optional(),
|
|
1708
|
+
|
|
1709
|
+
// --- Strict status schema — 5 distinct fields, projected consistently ---
|
|
1710
|
+
// merge_outcome: what the gate decided about canonical advancement
|
|
1711
|
+
merge_outcome: z.enum(["not_evaluated", "accepted", "accepted_with_cautions", "held", "blocked"]).default("not_evaluated"),
|
|
1712
|
+
// run_outcome: what the execution actually produced
|
|
1713
|
+
run_outcome: z.enum(["not_started", "done", "partial", "blocked"]).default("not_started"),
|
|
1714
|
+
// closure_posture: whether the run can/has been sealed
|
|
1715
|
+
closure_posture: z.enum(["open", "closable", "closable_with_cautions", "sealed", "not_closable"]).default("open"),
|
|
1716
|
+
// seal_integrity: did the seal capture what was on record
|
|
1717
|
+
seal_integrity: z.enum(["not_sealed", "verified", "snapshot_empty", "no_return"]).default("not_sealed"),
|
|
1718
|
+
// next_slice_posture: what the next bounded slice's readiness is
|
|
1719
|
+
next_slice_posture: z.enum(["none", "draft", "ready", "blocked", "held"]).default("none"),
|
|
1720
|
+
// systems_touched: from file paths, not text inference
|
|
1721
|
+
systems_touched: z.array(z.string()).default([]),
|
|
1722
|
+
|
|
1723
|
+
// --- Independent evaluation state (populated after receipt evaluation) ---
|
|
1724
|
+
evaluation_verdict: z.enum(["not_evaluated", "pass", "pass_with_flags", "fail", "inconclusive"]).default("not_evaluated"),
|
|
1725
|
+
evaluation_finding_count: z.number().default(0),
|
|
1726
|
+
evaluation_reentry_signal: z.enum(["none", "hold_recommended", "block_recommended", "caution_added"]).default("none"),
|
|
1727
|
+
|
|
1728
|
+
derived_at: z.string(),
|
|
1729
|
+
});
|
|
1730
|
+
|
|
1731
|
+
export type RunPhase = z.infer<typeof runPhaseSchema>;
|
|
1732
|
+
export type HomeBucket = z.infer<typeof homeBucketSchema>;
|
|
1733
|
+
export type RunSnapshot = z.infer<typeof runSnapshotSchema>;
|
|
1734
|
+
|
|
1735
|
+
// ---------------------------------------------------------------------------
|
|
1736
|
+
// Governed Build Map — operator-readable scaffold of what was built
|
|
1737
|
+
// ---------------------------------------------------------------------------
|
|
1738
|
+
|
|
1739
|
+
export const buildAreaStatusSchema = z.enum([
|
|
1740
|
+
"official",
|
|
1741
|
+
"provisional",
|
|
1742
|
+
"changed_this_run",
|
|
1743
|
+
"carries_unresolved",
|
|
1744
|
+
"carries_caution",
|
|
1745
|
+
"linkage_unknown",
|
|
1746
|
+
]);
|
|
1747
|
+
|
|
1748
|
+
export const canonicalLinkageSchema = z.object({
|
|
1749
|
+
source: z.string(),
|
|
1750
|
+
field: z.string(),
|
|
1751
|
+
strength: z.enum(["strong", "weak", "none"]),
|
|
1752
|
+
});
|
|
1753
|
+
|
|
1754
|
+
export const buildAreaSchema = z.object({
|
|
1755
|
+
area_id: z.string(),
|
|
1756
|
+
label: z.string(),
|
|
1757
|
+
what_it_is: z.string(),
|
|
1758
|
+
why_it_exists: z.string(),
|
|
1759
|
+
repo_paths: z.array(z.string()),
|
|
1760
|
+
artifacts: z.array(z.string()),
|
|
1761
|
+
linked_canonical_sources: z.array(canonicalLinkageSchema),
|
|
1762
|
+
introduced_by_run: z.string().default(""),
|
|
1763
|
+
changed_by_run: z.string().default(""),
|
|
1764
|
+
current_status: buildAreaStatusSchema,
|
|
1765
|
+
cautions: z.array(z.string()).default([]),
|
|
1766
|
+
unresolved: z.array(z.string()).default([]),
|
|
1767
|
+
});
|
|
1768
|
+
|
|
1769
|
+
export const buildMapSchema = z.object({
|
|
1770
|
+
project_id: z.string(),
|
|
1771
|
+
areas: z.array(buildAreaSchema),
|
|
1772
|
+
total_paths: z.number(),
|
|
1773
|
+
total_areas: z.number(),
|
|
1774
|
+
derived_at: z.string(),
|
|
1775
|
+
run_id: z.string().default(""),
|
|
1776
|
+
});
|
|
1777
|
+
|
|
1778
|
+
export type BuildAreaStatus = z.infer<typeof buildAreaStatusSchema>;
|
|
1779
|
+
export type CanonicalLinkage = z.infer<typeof canonicalLinkageSchema>;
|
|
1780
|
+
export type BuildArea = z.infer<typeof buildAreaSchema>;
|
|
1781
|
+
export type BuildMap = z.infer<typeof buildMapSchema>;
|
|
1782
|
+
|
|
1783
|
+
// ---------------------------------------------------------------------------
|
|
1784
|
+
// Lock Readiness — task-aware activation requirements
|
|
1785
|
+
// ---------------------------------------------------------------------------
|
|
1786
|
+
|
|
1787
|
+
export const lockFindingSeveritySchema = z.enum(["blocking", "caution"]);
|
|
1788
|
+
|
|
1789
|
+
export const lockFindingCategorySchema = z.enum([
|
|
1790
|
+
"missing_required_input",
|
|
1791
|
+
"missing_task_boundary",
|
|
1792
|
+
"missing_scope",
|
|
1793
|
+
"missing_systems",
|
|
1794
|
+
"missing_repo_binding",
|
|
1795
|
+
"vague_intent",
|
|
1796
|
+
"product_guardrail_only",
|
|
1797
|
+
"unresolved_assumption",
|
|
1798
|
+
]);
|
|
1799
|
+
|
|
1800
|
+
export const lockFindingSchema = z.object({
|
|
1801
|
+
category: lockFindingCategorySchema,
|
|
1802
|
+
severity: lockFindingSeveritySchema,
|
|
1803
|
+
field: z.string(),
|
|
1804
|
+
detail: z.string(),
|
|
1805
|
+
});
|
|
1806
|
+
|
|
1807
|
+
export const lockReadinessOutcomeSchema = z.enum([
|
|
1808
|
+
"lock_allowed",
|
|
1809
|
+
"lock_allowed_with_cautions",
|
|
1810
|
+
"lock_blocked",
|
|
1811
|
+
]);
|
|
1812
|
+
|
|
1813
|
+
export const lockReadinessSchema = z.object({
|
|
1814
|
+
outcome: lockReadinessOutcomeSchema,
|
|
1815
|
+
findings: z.array(lockFindingSchema),
|
|
1816
|
+
blocking_count: z.number(),
|
|
1817
|
+
caution_count: z.number(),
|
|
1818
|
+
task_type_basis: z.string(),
|
|
1819
|
+
checked_at: z.string(),
|
|
1820
|
+
});
|
|
1821
|
+
|
|
1822
|
+
export type LockFindingSeverity = z.infer<typeof lockFindingSeveritySchema>;
|
|
1823
|
+
export type LockFindingCategory = z.infer<typeof lockFindingCategorySchema>;
|
|
1824
|
+
export type LockFinding = z.infer<typeof lockFindingSchema>;
|
|
1825
|
+
export type LockReadinessOutcome = z.infer<typeof lockReadinessOutcomeSchema>;
|
|
1826
|
+
export type LockReadiness = z.infer<typeof lockReadinessSchema>;
|
|
1827
|
+
|
|
1828
|
+
// ---------------------------------------------------------------------------
|
|
1829
|
+
// Dispatch Receipt — auditable dispatch lifecycle
|
|
1830
|
+
// ---------------------------------------------------------------------------
|
|
1831
|
+
|
|
1832
|
+
export const dispatchPhaseSchema = z.enum([
|
|
1833
|
+
"packet_prepared",
|
|
1834
|
+
"packet_committed",
|
|
1835
|
+
"provider_acknowledged",
|
|
1836
|
+
"return_received",
|
|
1837
|
+
"failed",
|
|
1838
|
+
]);
|
|
1839
|
+
|
|
1840
|
+
export const dispatchReceiptSchema = z.object({
|
|
1841
|
+
// Identity
|
|
1842
|
+
receipt_id: z.string(),
|
|
1843
|
+
dispatch_id: z.string(),
|
|
1844
|
+
packet_version: z.number(),
|
|
1845
|
+
|
|
1846
|
+
// What was sent
|
|
1847
|
+
destination_surface: z.string(),
|
|
1848
|
+
destination_label: z.string(),
|
|
1849
|
+
governing_contract_id: z.string(),
|
|
1850
|
+
packet_hash: z.string(),
|
|
1851
|
+
prompt_hash: z.string(),
|
|
1852
|
+
included_artifact_ids: z.array(z.string()),
|
|
1853
|
+
|
|
1854
|
+
// Lifecycle
|
|
1855
|
+
phase: dispatchPhaseSchema,
|
|
1856
|
+
prepared_at: z.string(),
|
|
1857
|
+
committed_at: z.string().default(""),
|
|
1858
|
+
acknowledged_at: z.string().default(""),
|
|
1859
|
+
return_received_at: z.string().default(""),
|
|
1860
|
+
failed_at: z.string().default(""),
|
|
1861
|
+
|
|
1862
|
+
// Provider acknowledgment
|
|
1863
|
+
provider_run_ref: z.string().default(""),
|
|
1864
|
+
provider_ack_available: z.boolean().default(false),
|
|
1865
|
+
|
|
1866
|
+
// Model config snapshot
|
|
1867
|
+
model_used: z.string().default(""),
|
|
1868
|
+
execution_duration_ms: z.number().default(0),
|
|
1869
|
+
|
|
1870
|
+
// Return linkage
|
|
1871
|
+
return_id: z.string().default(""),
|
|
1872
|
+
delta_id: z.string().default(""),
|
|
1873
|
+
});
|
|
1874
|
+
|
|
1875
|
+
export type DispatchPhase = z.infer<typeof dispatchPhaseSchema>;
|
|
1876
|
+
export type DispatchReceipt = z.infer<typeof dispatchReceiptSchema>;
|
|
1877
|
+
|
|
1878
|
+
// ---------------------------------------------------------------------------
|
|
1879
|
+
// Codex Audit — post-execution lane for code-touching work
|
|
1880
|
+
// ---------------------------------------------------------------------------
|
|
1881
|
+
|
|
1882
|
+
export const auditTriggerSchema = z.enum([
|
|
1883
|
+
"auth_logic",
|
|
1884
|
+
"payment_logic",
|
|
1885
|
+
"database_migration",
|
|
1886
|
+
"dangerous_mode",
|
|
1887
|
+
"operator_requested",
|
|
1888
|
+
]);
|
|
1889
|
+
|
|
1890
|
+
export const auditFindingSeveritySchema = z.enum(["pass", "caution", "blocker"]);
|
|
1891
|
+
|
|
1892
|
+
export const auditFindingSchema = z.object({
|
|
1893
|
+
check: z.string(),
|
|
1894
|
+
severity: auditFindingSeveritySchema,
|
|
1895
|
+
detail: z.string(),
|
|
1896
|
+
files_affected: z.array(z.string()).default([]),
|
|
1897
|
+
});
|
|
1898
|
+
|
|
1899
|
+
export const auditResultSchema = z.object({
|
|
1900
|
+
audit_id: z.string(),
|
|
1901
|
+
return_id: z.string(),
|
|
1902
|
+
triggered_by: z.array(auditTriggerSchema),
|
|
1903
|
+
audit_required: z.boolean(),
|
|
1904
|
+
outcome: z.enum(["pass", "pass_with_cautions", "blocker", "skipped", "not_required"]),
|
|
1905
|
+
findings: z.array(auditFindingSchema),
|
|
1906
|
+
blocker_count: z.number(),
|
|
1907
|
+
caution_count: z.number(),
|
|
1908
|
+
systems_audited: z.array(z.string()),
|
|
1909
|
+
checked_at: z.string(),
|
|
1910
|
+
});
|
|
1911
|
+
|
|
1912
|
+
export type AuditTrigger = z.infer<typeof auditTriggerSchema>;
|
|
1913
|
+
export type AuditFindingSeverity = z.infer<typeof auditFindingSeveritySchema>;
|
|
1914
|
+
export type AuditFinding = z.infer<typeof auditFindingSchema>;
|
|
1915
|
+
export type AuditResult = z.infer<typeof auditResultSchema>;
|
|
1916
|
+
|
|
1917
|
+
// ---------------------------------------------------------------------------
|
|
1918
|
+
// Proof Capture — execution-time evidence with explicit provenance
|
|
1919
|
+
// ---------------------------------------------------------------------------
|
|
1920
|
+
|
|
1921
|
+
export const provenanceLabelSchema = z.enum([
|
|
1922
|
+
"captured", // observed/recorded during execution (raw transcripts, CLI output)
|
|
1923
|
+
"reconstructed", // inferred or summarized after execution
|
|
1924
|
+
"derived", // computed from other proof artifacts (hashes, diffs)
|
|
1925
|
+
]);
|
|
1926
|
+
|
|
1927
|
+
export const proofArtifactKindSchema = z.enum([
|
|
1928
|
+
"execution-transcript", // raw SDK/agent output
|
|
1929
|
+
"cli-output", // captured command output
|
|
1930
|
+
"http-transcript", // raw HTTP request/response
|
|
1931
|
+
"file-snapshot", // file content at capture time
|
|
1932
|
+
"dispatch-metadata", // what was sent to the executor
|
|
1933
|
+
"return-structured", // the parsed structured return
|
|
1934
|
+
"verification-output", // test/check output
|
|
1935
|
+
"execution-trace", // structured step-by-step trace of execution
|
|
1936
|
+
"failure-context", // structured failure breakdown
|
|
1937
|
+
"custom", // operator-defined proof
|
|
1938
|
+
"overflow-context", // externalized overflow content (progressive disclosure)
|
|
1939
|
+
]);
|
|
1940
|
+
|
|
1941
|
+
export const proofArtifactSchema = z.object({
|
|
1942
|
+
artifact_id: z.string(),
|
|
1943
|
+
kind: proofArtifactKindSchema,
|
|
1944
|
+
provenance: provenanceLabelSchema,
|
|
1945
|
+
filename: z.string(),
|
|
1946
|
+
captured_at: z.string(),
|
|
1947
|
+
size_bytes: z.number().default(0),
|
|
1948
|
+
content_hash: z.string().default(""),
|
|
1949
|
+
description: z.string().default(""),
|
|
1950
|
+
});
|
|
1951
|
+
|
|
1952
|
+
export const proofManifestSchema = z.object({
|
|
1953
|
+
manifest_id: z.string(),
|
|
1954
|
+
dispatch_id: z.string(),
|
|
1955
|
+
run_folder: z.string(),
|
|
1956
|
+
created_at: z.string(),
|
|
1957
|
+
artifacts: z.array(proofArtifactSchema),
|
|
1958
|
+
provenance_summary: z.object({
|
|
1959
|
+
captured_count: z.number(),
|
|
1960
|
+
reconstructed_count: z.number(),
|
|
1961
|
+
derived_count: z.number(),
|
|
1962
|
+
total_size_bytes: z.number(),
|
|
1963
|
+
}),
|
|
1964
|
+
});
|
|
1965
|
+
|
|
1966
|
+
export type ProvenanceLabel = z.infer<typeof provenanceLabelSchema>;
|
|
1967
|
+
export type ProofArtifactKind = z.infer<typeof proofArtifactKindSchema>;
|
|
1968
|
+
export type ProofArtifact = z.infer<typeof proofArtifactSchema>;
|
|
1969
|
+
export type ProofManifest = z.infer<typeof proofManifestSchema>;
|
|
1970
|
+
|
|
1971
|
+
// ---------------------------------------------------------------------------
|
|
1972
|
+
// Live Event — canonical observable event for all live consumers
|
|
1973
|
+
// ---------------------------------------------------------------------------
|
|
1974
|
+
|
|
1975
|
+
export const liveEventKindSchema = z.enum([
|
|
1976
|
+
"status-changed",
|
|
1977
|
+
"dispatched",
|
|
1978
|
+
"return-received",
|
|
1979
|
+
"gate-resolved",
|
|
1980
|
+
"evaluation-completed",
|
|
1981
|
+
"operator-action-required",
|
|
1982
|
+
"closure-sealed",
|
|
1983
|
+
"loop-advanced",
|
|
1984
|
+
"error",
|
|
1985
|
+
]);
|
|
1986
|
+
|
|
1987
|
+
export const budgetPostureSchema = z.enum([
|
|
1988
|
+
"nominal",
|
|
1989
|
+
"caution",
|
|
1990
|
+
"over-budget",
|
|
1991
|
+
"unknown",
|
|
1992
|
+
]);
|
|
1993
|
+
|
|
1994
|
+
export const liveProvenanceLevelSchema = z.enum([
|
|
1995
|
+
"captured",
|
|
1996
|
+
"reconstructed",
|
|
1997
|
+
"derived",
|
|
1998
|
+
"synthetic",
|
|
1999
|
+
"unknown",
|
|
2000
|
+
]);
|
|
2001
|
+
|
|
2002
|
+
export const liveEventSchema = z.object({
|
|
2003
|
+
// Identity
|
|
2004
|
+
event_id: z.string(),
|
|
2005
|
+
kind: liveEventKindSchema,
|
|
2006
|
+
timestamp: z.string(),
|
|
2007
|
+
|
|
2008
|
+
// Project / run identity
|
|
2009
|
+
project_id: z.string(),
|
|
2010
|
+
dispatch_id: z.string().default(""),
|
|
2011
|
+
slice_id: z.string().default(""),
|
|
2012
|
+
loop_ordinal: z.number().default(-1),
|
|
2013
|
+
|
|
2014
|
+
// Surface identity
|
|
2015
|
+
surface: surfaceSchema.optional(),
|
|
2016
|
+
surface_label: z.string().default(""),
|
|
2017
|
+
surface_fallback: surfaceSchema.optional(),
|
|
2018
|
+
route_rationale: z.string().default(""),
|
|
2019
|
+
role: z.enum(["agent", "operator"]).default("agent"),
|
|
2020
|
+
|
|
2021
|
+
// Status projection (from RunSnapshot)
|
|
2022
|
+
phase: runPhaseSchema,
|
|
2023
|
+
home_bucket: homeBucketSchema,
|
|
2024
|
+
gate_label: z.string().default(""),
|
|
2025
|
+
hold_source: z.enum(["none", "reconcile", "pressure", "audit"]).default("none"),
|
|
2026
|
+
|
|
2027
|
+
// Operator signal
|
|
2028
|
+
operator_action_required: z.boolean().default(false),
|
|
2029
|
+
operator_action: z.string().default(""),
|
|
2030
|
+
|
|
2031
|
+
// Budget posture
|
|
2032
|
+
budget_posture: budgetPostureSchema.default("unknown"),
|
|
2033
|
+
|
|
2034
|
+
// Provenance level
|
|
2035
|
+
provenance_level: liveProvenanceLevelSchema.default("unknown"),
|
|
2036
|
+
|
|
2037
|
+
// Outcome projection (from strict status schema)
|
|
2038
|
+
merge_outcome: z.enum(["not_evaluated", "accepted", "accepted_with_cautions", "held", "blocked"]).default("not_evaluated"),
|
|
2039
|
+
run_outcome: z.enum(["not_started", "done", "partial", "blocked"]).default("not_started"),
|
|
2040
|
+
closure_posture: z.enum(["open", "closable", "closable_with_cautions", "sealed", "not_closable"]).default("open"),
|
|
2041
|
+
|
|
2042
|
+
// Lightweight counts
|
|
2043
|
+
caution_count: z.number().default(0),
|
|
2044
|
+
unresolved_count: z.number().default(0),
|
|
2045
|
+
|
|
2046
|
+
// Lane identity (which governed lane produced this event)
|
|
2047
|
+
agent_role: agentRoleSchema.optional(),
|
|
2048
|
+
realization_type: realizationTypeSchema.optional(),
|
|
2049
|
+
|
|
2050
|
+
// Human-readable detail
|
|
2051
|
+
detail: z.string().default(""),
|
|
2052
|
+
});
|
|
2053
|
+
|
|
2054
|
+
export type LiveEventKind = z.infer<typeof liveEventKindSchema>;
|
|
2055
|
+
export type BudgetPosture = z.infer<typeof budgetPostureSchema>;
|
|
2056
|
+
export type LiveProvenanceLevel = z.infer<typeof liveProvenanceLevelSchema>;
|
|
2057
|
+
export type LiveEvent = z.infer<typeof liveEventSchema>;
|
|
2058
|
+
|
|
2059
|
+
// ---------------------------------------------------------------------------
|
|
2060
|
+
// Normalized Return Envelope — governed common shape for multi-tool returns
|
|
2061
|
+
// ---------------------------------------------------------------------------
|
|
2062
|
+
//
|
|
2063
|
+
// Every surface (ChatGPT, Claude Code, Cursor) produces returns in slightly
|
|
2064
|
+
// different shapes. The NormalizedReturnEnvelope maps any surface's raw
|
|
2065
|
+
// return into a single governed form that downstream receipt, audit, and
|
|
2066
|
+
// delta logic can trust without surface-specific branching.
|
|
2067
|
+
//
|
|
2068
|
+
// Content modes track HOW a value was obtained at the source:
|
|
2069
|
+
// direct — the surface produced this value explicitly
|
|
2070
|
+
// wrapped — the value was present but reformatted to fit the schema
|
|
2071
|
+
// inferred — the value was derived from other fields or context
|
|
2072
|
+
// reconstructed — the value was rebuilt after the fact from logs/artifacts
|
|
2073
|
+
// ---------------------------------------------------------------------------
|
|
2074
|
+
|
|
2075
|
+
export const contentModeSchema = z.enum(["direct", "wrapped", "inferred", "reconstructed"]);
|
|
2076
|
+
|
|
2077
|
+
export const outcomeClassSchema = z.enum([
|
|
2078
|
+
"completed", // objective fully met, done_when satisfied
|
|
2079
|
+
"partial", // some progress, objective not fully met
|
|
2080
|
+
"blocked", // execution could not proceed
|
|
2081
|
+
"errored", // execution failed unexpectedly
|
|
2082
|
+
"absorbed", // return ingested but no meaningful change recorded
|
|
2083
|
+
]);
|
|
2084
|
+
|
|
2085
|
+
export const sourceRoleSchema = z.enum(["agent", "operator", "system"]);
|
|
2086
|
+
|
|
2087
|
+
export const normalizedEvidenceItemSchema = z.object({
|
|
2088
|
+
text: z.string(),
|
|
2089
|
+
content_mode: contentModeSchema,
|
|
2090
|
+
});
|
|
2091
|
+
|
|
2092
|
+
export const normalizedCautionSchema = z.object({
|
|
2093
|
+
text: z.string(),
|
|
2094
|
+
source: z.enum(["return", "reconcile", "audit", "pressure"]),
|
|
2095
|
+
});
|
|
2096
|
+
|
|
2097
|
+
export const normalizedResidualSchema = z.object({
|
|
2098
|
+
text: z.string(),
|
|
2099
|
+
kind: z.enum(["blocker", "escalation", "unresolved"]),
|
|
2100
|
+
});
|
|
2101
|
+
|
|
2102
|
+
export const normalizedReturnEnvelopeSchema = z.object({
|
|
2103
|
+
// Identity
|
|
2104
|
+
envelope_id: z.string(),
|
|
2105
|
+
envelope_version: z.literal(1),
|
|
2106
|
+
created_at: z.string(),
|
|
2107
|
+
|
|
2108
|
+
// Source
|
|
2109
|
+
source_surface: surfaceSchema,
|
|
2110
|
+
source_role: sourceRoleSchema,
|
|
2111
|
+
|
|
2112
|
+
// Objective
|
|
2113
|
+
objective_used: z.string(),
|
|
2114
|
+
outcome_class: outcomeClassSchema,
|
|
2115
|
+
|
|
2116
|
+
// Changed files — pre-classified with system detection
|
|
2117
|
+
changed_files: z.array(z.object({
|
|
2118
|
+
path: z.string(),
|
|
2119
|
+
system: z.string().default(""),
|
|
2120
|
+
})).default([]),
|
|
2121
|
+
touched_artifacts: z.array(z.string()).default([]),
|
|
2122
|
+
|
|
2123
|
+
// Actions / commands actually executed
|
|
2124
|
+
commands_run: z.array(z.string()).default([]),
|
|
2125
|
+
|
|
2126
|
+
// Evidence — each item tagged with how it was obtained
|
|
2127
|
+
evidence_items: z.array(normalizedEvidenceItemSchema).default([]),
|
|
2128
|
+
verification_runs: z.array(normalizedEvidenceItemSchema).default([]),
|
|
2129
|
+
criteria_met: z.array(normalizedEvidenceItemSchema).default([]),
|
|
2130
|
+
|
|
2131
|
+
// Decisions
|
|
2132
|
+
decisions: z.array(z.object({
|
|
2133
|
+
text: z.string(),
|
|
2134
|
+
content_mode: contentModeSchema,
|
|
2135
|
+
})).default([]),
|
|
2136
|
+
|
|
2137
|
+
// Cautions — typed by where they originate
|
|
2138
|
+
cautions: z.array(normalizedCautionSchema).default([]),
|
|
2139
|
+
|
|
2140
|
+
// Residuals — open items that carry forward
|
|
2141
|
+
residuals: z.array(normalizedResidualSchema).default([]),
|
|
2142
|
+
|
|
2143
|
+
// Next step
|
|
2144
|
+
recommended_next_step: z.string().default(""),
|
|
2145
|
+
|
|
2146
|
+
// Provenance posture — overall confidence in the return's content
|
|
2147
|
+
provenance_posture: z.enum(["captured", "reconstructed", "derived", "mixed", "unknown"]).default("unknown"),
|
|
2148
|
+
confidence_posture: z.enum(["high", "medium", "low", "unknown"]).default("unknown"),
|
|
2149
|
+
|
|
2150
|
+
// Summary
|
|
2151
|
+
summary: z.string(),
|
|
2152
|
+
|
|
2153
|
+
// Lineage — ties this envelope back to the dispatch/handoff that produced it
|
|
2154
|
+
handoff_id: z.string().default(""),
|
|
2155
|
+
dispatch_id: z.string().default(""),
|
|
2156
|
+
return_id: z.string().default(""),
|
|
2157
|
+
});
|
|
2158
|
+
|
|
2159
|
+
export type ContentMode = z.infer<typeof contentModeSchema>;
|
|
2160
|
+
export type OutcomeClass = z.infer<typeof outcomeClassSchema>;
|
|
2161
|
+
export type SourceRole = z.infer<typeof sourceRoleSchema>;
|
|
2162
|
+
export type NormalizedEvidenceItem = z.infer<typeof normalizedEvidenceItemSchema>;
|
|
2163
|
+
export type NormalizedCaution = z.infer<typeof normalizedCautionSchema>;
|
|
2164
|
+
export type NormalizedResidual = z.infer<typeof normalizedResidualSchema>;
|
|
2165
|
+
export type NormalizedReturnEnvelope = z.infer<typeof normalizedReturnEnvelopeSchema>;
|
|
2166
|
+
|
|
2167
|
+
// ---------------------------------------------------------------------------
|
|
2168
|
+
// Audited Receipt — the official product-level receipt object
|
|
2169
|
+
// ---------------------------------------------------------------------------
|
|
2170
|
+
//
|
|
2171
|
+
// The audited receipt is the thing the system trusts.
|
|
2172
|
+
// NOT the raw executor output. NOT the normalized envelope alone.
|
|
2173
|
+
//
|
|
2174
|
+
// It synthesizes: normalized return + canonical delta + gate verdict +
|
|
2175
|
+
// evidence accounting + closure posture + next-slice basis into a single
|
|
2176
|
+
// governed object that downstream UI, closure, and dispatch logic can
|
|
2177
|
+
// consume as the official record of what happened.
|
|
2178
|
+
// ---------------------------------------------------------------------------
|
|
2179
|
+
|
|
2180
|
+
export const claimDispositionSchema = z.enum([
|
|
2181
|
+
"proven", // verification + evidence directly backs this
|
|
2182
|
+
"supported", // evidence exists but no independent verification
|
|
2183
|
+
"partial", // some evidence exists but coverage is incomplete
|
|
2184
|
+
"inferred", // derived from context, not directly proven
|
|
2185
|
+
"unsubstantiated", // claimed but no backing evidence found
|
|
2186
|
+
]);
|
|
2187
|
+
|
|
2188
|
+
export const trustPostureSchema = z.enum([
|
|
2189
|
+
"verified", // gate accepted, evidence sufficient, no unresolved
|
|
2190
|
+
"cautioned", // gate accepted with cautions
|
|
2191
|
+
"held", // gate held for review
|
|
2192
|
+
"blocked", // gate blocked — missing evidence or blocker
|
|
2193
|
+
"unknown", // insufficient data to determine
|
|
2194
|
+
]);
|
|
2195
|
+
|
|
2196
|
+
export const claimAssessmentSchema = z.object({
|
|
2197
|
+
claim: z.string(),
|
|
2198
|
+
disposition: claimDispositionSchema,
|
|
2199
|
+
basis: z.string(),
|
|
2200
|
+
});
|
|
2201
|
+
|
|
2202
|
+
export const auditedReceiptSchema = z.object({
|
|
2203
|
+
// Identity & lineage
|
|
2204
|
+
receipt_id: z.string(),
|
|
2205
|
+
receipt_version: z.literal(1),
|
|
2206
|
+
created_at: z.string(),
|
|
2207
|
+
project_id: z.string().default(""),
|
|
2208
|
+
dispatch_id: z.string().default(""),
|
|
2209
|
+
return_id: z.string().default(""),
|
|
2210
|
+
envelope_id: z.string().default(""),
|
|
2211
|
+
delta_id: z.string().default(""),
|
|
2212
|
+
|
|
2213
|
+
// --- WHAT WAS CLAIMED ---
|
|
2214
|
+
objective_claimed: z.string(),
|
|
2215
|
+
outcome_claimed: outcomeClassSchema,
|
|
2216
|
+
summary_claimed: z.string(),
|
|
2217
|
+
|
|
2218
|
+
// --- WHAT WAS PROVEN (structured counts from evidence accounting) ---
|
|
2219
|
+
verification_count: z.number(),
|
|
2220
|
+
evidence_count: z.number(),
|
|
2221
|
+
criteria_met_count: z.number(),
|
|
2222
|
+
files_changed_count: z.number(),
|
|
2223
|
+
|
|
2224
|
+
// Claim-vs-proof rows — each significant claim assessed
|
|
2225
|
+
claim_assessments: z.array(claimAssessmentSchema).default([]),
|
|
2226
|
+
|
|
2227
|
+
// --- GATE VERDICT ---
|
|
2228
|
+
gate_label: gateStateLabelSchema,
|
|
2229
|
+
gate_reason: z.string(),
|
|
2230
|
+
gate_honest: z.boolean(),
|
|
2231
|
+
|
|
2232
|
+
// --- PROVENANCE ---
|
|
2233
|
+
provenance_posture: z.enum(["captured", "reconstructed", "derived", "mixed", "unknown"]).default("unknown"),
|
|
2234
|
+
confidence_posture: z.enum(["high", "medium", "low", "unknown"]).default("unknown"),
|
|
2235
|
+
|
|
2236
|
+
// --- CLOSURE ---
|
|
2237
|
+
closure_allowed: z.boolean(),
|
|
2238
|
+
closure_basis: z.string(),
|
|
2239
|
+
|
|
2240
|
+
// --- AUDIT FINDINGS (explicit, not just reflected in gate) ---
|
|
2241
|
+
audit_required: z.boolean().default(false),
|
|
2242
|
+
audit_finding_count: z.number().default(0),
|
|
2243
|
+
audit_cautions: z.array(z.string()).default([]),
|
|
2244
|
+
audit_blockers: z.array(z.string()).default([]),
|
|
2245
|
+
|
|
2246
|
+
// --- RESIDUALS (carry forward) ---
|
|
2247
|
+
cautions_on_record: z.array(z.string()).default([]),
|
|
2248
|
+
unresolved_on_record: z.array(z.string()).default([]),
|
|
2249
|
+
residual_count: z.number(),
|
|
2250
|
+
|
|
2251
|
+
// --- CANONICAL ADVANCEMENT ---
|
|
2252
|
+
state_advanced: z.boolean(),
|
|
2253
|
+
advancement_basis: z.string(),
|
|
2254
|
+
consequence_type: consequenceTypeSchema,
|
|
2255
|
+
consequence_label: z.string(),
|
|
2256
|
+
|
|
2257
|
+
// --- NEXT SLICE (with basis — why this is the next bounded move) ---
|
|
2258
|
+
next_slice_exists: z.boolean(),
|
|
2259
|
+
next_slice_id: z.string().default(""),
|
|
2260
|
+
next_slice_title: z.string().default(""),
|
|
2261
|
+
next_slice_ready: z.boolean().default(false),
|
|
2262
|
+
next_slice_why: z.string().default(""),
|
|
2263
|
+
next_slice_blocking_reason: z.string().default(""),
|
|
2264
|
+
|
|
2265
|
+
// --- EXECUTION TRACE SUMMARY (lightweight optimization inputs) ---
|
|
2266
|
+
trace_step_count: z.number().default(0),
|
|
2267
|
+
trace_tool_use_count: z.number().default(0),
|
|
2268
|
+
trace_failure_phase: z.string().default(""), // empty = no failure; otherwise the phase where failure occurred
|
|
2269
|
+
trace_error_category: z.string().default(""), // empty = no error; otherwise a short classification
|
|
2270
|
+
trace_duration_ms: z.number().default(0),
|
|
2271
|
+
trace_available: z.boolean().default(false), // true if a structured execution-trace artifact exists
|
|
2272
|
+
|
|
2273
|
+
// --- BUDGET BREAKDOWN (task / verification / correction) ---
|
|
2274
|
+
budget_task_steps: z.number().default(0),
|
|
2275
|
+
budget_task_tool_uses: z.number().default(0),
|
|
2276
|
+
budget_verification_steps: z.number().default(0),
|
|
2277
|
+
budget_verification_tool_uses: z.number().default(0),
|
|
2278
|
+
budget_correction_steps: z.number().default(0),
|
|
2279
|
+
budget_correction_tool_uses: z.number().default(0),
|
|
2280
|
+
budget_overhead_ratio: z.number().default(0), // (verification + correction) / total
|
|
2281
|
+
budget_had_corrections: z.boolean().default(false), // true if any correction effort was recorded
|
|
2282
|
+
budget_posture: budgetPostureSchema.default("unknown"),
|
|
2283
|
+
budget_posture_basis: z.string().default(""),
|
|
2284
|
+
|
|
2285
|
+
// --- OVERFLOW / PROGRESSIVE DISCLOSURE ---
|
|
2286
|
+
overflow_entry_count: z.number().default(0),
|
|
2287
|
+
overflow_total_bytes: z.number().default(0),
|
|
2288
|
+
overflow_sources: z.array(z.string()).default([]),
|
|
2289
|
+
overflow_available: z.boolean().default(false),
|
|
2290
|
+
|
|
2291
|
+
// --- OVERALL TRUST POSTURE ---
|
|
2292
|
+
trust_posture: trustPostureSchema,
|
|
2293
|
+
trust_basis: z.string(),
|
|
2294
|
+
});
|
|
2295
|
+
|
|
2296
|
+
export type ClaimDisposition = z.infer<typeof claimDispositionSchema>;
|
|
2297
|
+
export type TrustPosture = z.infer<typeof trustPostureSchema>;
|
|
2298
|
+
export type ClaimAssessment = z.infer<typeof claimAssessmentSchema>;
|
|
2299
|
+
export type AuditedReceipt = z.infer<typeof auditedReceiptSchema>;
|
|
2300
|
+
|
|
2301
|
+
// ---------------------------------------------------------------------------
|
|
2302
|
+
// Independent Evaluation Lane — model-independent governance assessment
|
|
2303
|
+
// ---------------------------------------------------------------------------
|
|
2304
|
+
//
|
|
2305
|
+
// The evaluation lane is structurally distinct from the builder/executor lane.
|
|
2306
|
+
// It receives a receipt + proof context and produces an independent assessment
|
|
2307
|
+
// that re-enters the governed loop as a first-class governance signal.
|
|
2308
|
+
//
|
|
2309
|
+
// Key invariant: the evaluator never re-executes. It assesses what happened
|
|
2310
|
+
// against what was contracted, using the audited receipt and proof artifacts
|
|
2311
|
+
// as its sole inputs.
|
|
2312
|
+
// ---------------------------------------------------------------------------
|
|
2313
|
+
|
|
2314
|
+
// ---------------------------------------------------------------------------
|
|
2315
|
+
// Validation Scope — layered eval scope model
|
|
2316
|
+
// ---------------------------------------------------------------------------
|
|
2317
|
+
//
|
|
2318
|
+
// micro-check: fast, local, low-cost — claim coverage + basic evidence check
|
|
2319
|
+
// slice-check: contract compliance + proof chain for a single slice/dispatch
|
|
2320
|
+
// full-run: end-to-end evaluation including cross-slice lineage and promotion
|
|
2321
|
+
//
|
|
2322
|
+
// The scope is declared on evaluation input, persisted on the result, and
|
|
2323
|
+
// used by the promotion gate to enforce that broader checks are required
|
|
2324
|
+
// before higher-trust promotion.
|
|
2325
|
+
// ---------------------------------------------------------------------------
|
|
2326
|
+
|
|
2327
|
+
export const validationScopeSchema = z.enum([
|
|
2328
|
+
"micro-check", // fast local check — claim coverage only
|
|
2329
|
+
"slice-check", // single-slice — claim + contract + proof chain
|
|
2330
|
+
"full-run", // full end-to-end — all checks, required for promotion
|
|
2331
|
+
]);
|
|
2332
|
+
|
|
2333
|
+
export const promotionGateSchema = z.object({
|
|
2334
|
+
/** The scope of the evaluation that feeds this gate. */
|
|
2335
|
+
scope_performed: validationScopeSchema,
|
|
2336
|
+
/** Whether this scope is sufficient for the requested promotion. */
|
|
2337
|
+
promotion_allowed: z.boolean(),
|
|
2338
|
+
/** The minimum scope required for this promotion level. */
|
|
2339
|
+
minimum_scope_required: validationScopeSchema,
|
|
2340
|
+
/** Why promotion was allowed or denied. */
|
|
2341
|
+
gate_basis: z.string(),
|
|
2342
|
+
});
|
|
2343
|
+
|
|
2344
|
+
export type ValidationScope = z.infer<typeof validationScopeSchema>;
|
|
2345
|
+
export type PromotionGate = z.infer<typeof promotionGateSchema>;
|
|
2346
|
+
|
|
2347
|
+
export const evaluationTriggerSchema = z.enum([
|
|
2348
|
+
"auto_post_receipt", // automatically triggered after receipt is built
|
|
2349
|
+
"operator_requested", // operator manually triggered evaluation
|
|
2350
|
+
"threshold_breach", // evidence/trust threshold triggered evaluation
|
|
2351
|
+
"re_evaluation", // re-evaluation of a previously evaluated receipt
|
|
2352
|
+
]);
|
|
2353
|
+
|
|
2354
|
+
export const evaluationVerdictSchema = z.enum([
|
|
2355
|
+
"pass", // evidence supports claims, contract satisfied
|
|
2356
|
+
"pass_with_flags", // pass but findings noted for operator review
|
|
2357
|
+
"fail", // evidence does not support claims or contract violated
|
|
2358
|
+
"inconclusive", // insufficient evidence to make a determination
|
|
2359
|
+
]);
|
|
2360
|
+
|
|
2361
|
+
export const evaluationFindingSeveritySchema = z.enum([
|
|
2362
|
+
"info", // informational — no action needed
|
|
2363
|
+
"flag", // notable — operator should be aware
|
|
2364
|
+
"concern", // concerning — may warrant action
|
|
2365
|
+
"violation", // contract or evidence violation
|
|
2366
|
+
]);
|
|
2367
|
+
|
|
2368
|
+
export const evaluationFindingSchema = z.object({
|
|
2369
|
+
finding_id: z.string(),
|
|
2370
|
+
severity: evaluationFindingSeveritySchema,
|
|
2371
|
+
category: z.enum([
|
|
2372
|
+
"claim_vs_evidence", // claim not backed by evidence
|
|
2373
|
+
"scope_adherence", // work outside contracted scope
|
|
2374
|
+
"contract_compliance", // contract terms not met
|
|
2375
|
+
"evidence_quality", // evidence is weak or insufficient
|
|
2376
|
+
"residual_risk", // unresolved items carry forward risk
|
|
2377
|
+
"provenance_gap", // proof chain has gaps
|
|
2378
|
+
"budget_concern", // excessive correction/rework effort detected
|
|
2379
|
+
]),
|
|
2380
|
+
detail: z.string(),
|
|
2381
|
+
claim_ref: z.string().default(""), // which claim this finding relates to, if any
|
|
2382
|
+
evidence_ref: z.string().default(""), // which evidence item this relates to, if any
|
|
2383
|
+
});
|
|
2384
|
+
|
|
2385
|
+
export const evaluationReentrySignalSchema = z.enum([
|
|
2386
|
+
"none", // no governance action needed
|
|
2387
|
+
"hold_recommended", // evaluator recommends hold for operator review
|
|
2388
|
+
"block_recommended", // evaluator recommends block — evidence insufficient
|
|
2389
|
+
"caution_added", // evaluator added cautions to the record
|
|
2390
|
+
]);
|
|
2391
|
+
|
|
2392
|
+
export const evaluationResultSchema = z.object({
|
|
2393
|
+
// Identity & lineage
|
|
2394
|
+
evaluation_id: z.string(),
|
|
2395
|
+
evaluation_version: z.literal(1),
|
|
2396
|
+
created_at: z.string(),
|
|
2397
|
+
project_id: z.string().default(""),
|
|
2398
|
+
dispatch_id: z.string().default(""),
|
|
2399
|
+
receipt_id: z.string(), // the receipt being evaluated
|
|
2400
|
+
|
|
2401
|
+
// Trigger
|
|
2402
|
+
triggered_by: evaluationTriggerSchema,
|
|
2403
|
+
|
|
2404
|
+
// Verdict
|
|
2405
|
+
verdict: evaluationVerdictSchema,
|
|
2406
|
+
verdict_basis: z.string(), // why this verdict was reached
|
|
2407
|
+
|
|
2408
|
+
// Findings
|
|
2409
|
+
findings: z.array(evaluationFindingSchema).default([]),
|
|
2410
|
+
finding_count: z.number(),
|
|
2411
|
+
violation_count: z.number().default(0),
|
|
2412
|
+
concern_count: z.number().default(0),
|
|
2413
|
+
flag_count: z.number().default(0),
|
|
2414
|
+
|
|
2415
|
+
// Claim coverage assessment (independent of receipt's own claim assessments)
|
|
2416
|
+
claims_evaluated: z.number(),
|
|
2417
|
+
claims_supported: z.number(), // evaluator agrees claim is backed
|
|
2418
|
+
claims_disputed: z.number(), // evaluator disagrees with claim disposition
|
|
2419
|
+
claims_unverifiable: z.number(), // evaluator cannot verify independently
|
|
2420
|
+
|
|
2421
|
+
// Evidence quality assessment
|
|
2422
|
+
evidence_sufficient: z.boolean(),
|
|
2423
|
+
provenance_intact: z.boolean(), // proof chain is unbroken
|
|
2424
|
+
proof_artifacts_checked: z.number().default(0),
|
|
2425
|
+
|
|
2426
|
+
// Re-entry signal — how this evaluation should affect the governed loop
|
|
2427
|
+
reentry_signal: evaluationReentrySignalSchema,
|
|
2428
|
+
reentry_basis: z.string().default(""),
|
|
2429
|
+
cautions_added: z.array(z.string()).default([]),
|
|
2430
|
+
|
|
2431
|
+
// Evaluator metadata
|
|
2432
|
+
evaluator_role: z.literal("independent"), // always independent, never builder
|
|
2433
|
+
evaluation_scope: z.string(), // what was in scope for this evaluation
|
|
2434
|
+
|
|
2435
|
+
// Layered validation scope — first-class scope classification
|
|
2436
|
+
validation_scope: validationScopeSchema.default("micro-check"),
|
|
2437
|
+
promotion_gate: promotionGateSchema.optional(),
|
|
2438
|
+
});
|
|
2439
|
+
|
|
2440
|
+
export type EvaluationTrigger = z.infer<typeof evaluationTriggerSchema>;
|
|
2441
|
+
export type EvaluationVerdict = z.infer<typeof evaluationVerdictSchema>;
|
|
2442
|
+
export type EvaluationFindingSeverity = z.infer<typeof evaluationFindingSeveritySchema>;
|
|
2443
|
+
export type EvaluationFinding = z.infer<typeof evaluationFindingSchema>;
|
|
2444
|
+
export type EvaluationReentrySignal = z.infer<typeof evaluationReentrySignalSchema>;
|
|
2445
|
+
export type EvaluationResult = z.infer<typeof evaluationResultSchema>;
|
|
2446
|
+
|
|
2447
|
+
// ---------------------------------------------------------------------------
|
|
2448
|
+
// Claim/Receipt Spread — deterministic per-run drift measurement
|
|
2449
|
+
// ---------------------------------------------------------------------------
|
|
2450
|
+
//
|
|
2451
|
+
// Measures how far executor claims tend to drift from audited receipts.
|
|
2452
|
+
// Each axis is a normalized [0..1] signal (0 = no drift, 1 = maximum drift).
|
|
2453
|
+
// The scalar is a weighted composite clamped to [0..1].
|
|
2454
|
+
//
|
|
2455
|
+
// Design invariant: the spread is a *derived observation* — it never overrides
|
|
2456
|
+
// the receipt, gate, or closure decisions. It is computed deterministically
|
|
2457
|
+
// from the receipt's governed fields.
|
|
2458
|
+
// ---------------------------------------------------------------------------
|
|
2459
|
+
|
|
2460
|
+
export const claimSpreadVectorSchema = z.object({
|
|
2461
|
+
/** Claims not proven or supported / total claims. 0 = all proven. */
|
|
2462
|
+
claim_mismatch_ratio: z.number().min(0).max(1),
|
|
2463
|
+
/** Audit-added cautions + blockers normalized (0 = none, 1 = 5+). */
|
|
2464
|
+
audit_burden: z.number().min(0).max(1),
|
|
2465
|
+
/** Residuals relative to total claims (0 = none, 1 = residuals >= claims). */
|
|
2466
|
+
residual_weight: z.number().min(0).max(1),
|
|
2467
|
+
/** Provenance weakness: captured=0, mixed=0.25, derived=0.5, reconstructed=0.75, unknown=1. */
|
|
2468
|
+
provenance_weakness: z.number().min(0).max(1),
|
|
2469
|
+
/** Gate distance from accepted: accepted=0, accepted-with-cautions=0.25, held=0.5, blocked=0.75, pending/not-checked=1. */
|
|
2470
|
+
gate_distance: z.number().min(0).max(1),
|
|
2471
|
+
/** 1 if execution failed, 0 otherwise. */
|
|
2472
|
+
trace_failure_signal: z.number().min(0).max(1),
|
|
2473
|
+
/** Correction steps as proportion of total steps (0..1). */
|
|
2474
|
+
budget_correction_weight: z.number().min(0).max(1),
|
|
2475
|
+
});
|
|
2476
|
+
|
|
2477
|
+
export const claimSpreadSchema = z.object({
|
|
2478
|
+
/** Identifies the receipt this spread was computed from. */
|
|
2479
|
+
receipt_id: z.string(),
|
|
2480
|
+
/** Identifies the dispatch. */
|
|
2481
|
+
dispatch_id: z.string().default(""),
|
|
2482
|
+
/** ISO timestamp of computation. */
|
|
2483
|
+
computed_at: z.string(),
|
|
2484
|
+
/** The individual axis values. */
|
|
2485
|
+
vector: claimSpreadVectorSchema,
|
|
2486
|
+
/** Weighted composite score (0..1). 0 = perfect alignment, 1 = maximum drift. */
|
|
2487
|
+
spread_score: z.number().min(0).max(1),
|
|
2488
|
+
/** Human-readable basis for the score. */
|
|
2489
|
+
spread_basis: z.string(),
|
|
2490
|
+
});
|
|
2491
|
+
|
|
2492
|
+
export type ClaimSpreadVector = z.infer<typeof claimSpreadVectorSchema>;
|
|
2493
|
+
export type ClaimSpread = z.infer<typeof claimSpreadSchema>;
|
|
2494
|
+
|
|
2495
|
+
// ---------------------------------------------------------------------------
|
|
2496
|
+
// Budget Categories — explicit task / verification / correction separation
|
|
2497
|
+
// ---------------------------------------------------------------------------
|
|
2498
|
+
//
|
|
2499
|
+
// Every unit of work an agent performs falls into one of three categories:
|
|
2500
|
+
//
|
|
2501
|
+
// task — primary implementation work toward the objective
|
|
2502
|
+
// verification — checking, testing, or validating what was produced
|
|
2503
|
+
// correction — fixing issues found during verification
|
|
2504
|
+
//
|
|
2505
|
+
// These are first-class so that routing, evaluation, and receipts can
|
|
2506
|
+
// distinguish *what kind* of effort was spent, not just how much.
|
|
2507
|
+
// ---------------------------------------------------------------------------
|
|
2508
|
+
|
|
2509
|
+
export const budgetCategorySchema = z.enum([
|
|
2510
|
+
"task", // primary implementation effort
|
|
2511
|
+
"verification", // checking / testing / validating
|
|
2512
|
+
"correction", // fixing issues found during verification
|
|
2513
|
+
]);
|
|
2514
|
+
|
|
2515
|
+
export const budgetLedgerEntrySchema = z.object({
|
|
2516
|
+
category: budgetCategorySchema,
|
|
2517
|
+
step_count: z.number().default(0),
|
|
2518
|
+
tool_use_count: z.number().default(0),
|
|
2519
|
+
duration_ms: z.number().default(0),
|
|
2520
|
+
});
|
|
2521
|
+
|
|
2522
|
+
export const budgetLedgerSchema = z.object({
|
|
2523
|
+
/** Per-category breakdown of effort. */
|
|
2524
|
+
entries: z.array(budgetLedgerEntrySchema).default([]),
|
|
2525
|
+
/** Total steps across all categories. */
|
|
2526
|
+
total_steps: z.number().default(0),
|
|
2527
|
+
/** Total tool uses across all categories. */
|
|
2528
|
+
total_tool_uses: z.number().default(0),
|
|
2529
|
+
/** Total duration across all categories. */
|
|
2530
|
+
total_duration_ms: z.number().default(0),
|
|
2531
|
+
/** Ratio of verification + correction to total (0..1). 0 = no overhead. */
|
|
2532
|
+
overhead_ratio: z.number().default(0),
|
|
2533
|
+
/** Whether the correction category was non-zero (indicates rework). */
|
|
2534
|
+
had_corrections: z.boolean().default(false),
|
|
2535
|
+
/** Derived posture from the ledger. */
|
|
2536
|
+
posture: budgetPostureSchema.default("unknown"),
|
|
2537
|
+
/** Why this posture was assigned. */
|
|
2538
|
+
posture_basis: z.string().default(""),
|
|
2539
|
+
});
|
|
2540
|
+
|
|
2541
|
+
export type BudgetCategory = z.infer<typeof budgetCategorySchema>;
|
|
2542
|
+
export type BudgetLedgerEntry = z.infer<typeof budgetLedgerEntrySchema>;
|
|
2543
|
+
export type BudgetLedger = z.infer<typeof budgetLedgerSchema>;
|
|
2544
|
+
|
|
2545
|
+
// ---------------------------------------------------------------------------
|
|
2546
|
+
// Overflow Manifest — progressive disclosure of externalized context
|
|
2547
|
+
// ---------------------------------------------------------------------------
|
|
2548
|
+
//
|
|
2549
|
+
// When execution context (transcripts, traces, structured returns) exceeds
|
|
2550
|
+
// a size threshold, the overflow mechanism externalizes it into governed
|
|
2551
|
+
// artifacts and retains a lightweight reference on the live control surface.
|
|
2552
|
+
//
|
|
2553
|
+
// The manifest tracks what was externalized, where it lives, why it was
|
|
2554
|
+
// externalized, and what summary was retained inline. This preserves
|
|
2555
|
+
// lineage so later evaluation lanes know the full context existed.
|
|
2556
|
+
// ---------------------------------------------------------------------------
|
|
2557
|
+
|
|
2558
|
+
export const overflowEntrySchema = z.object({
|
|
2559
|
+
overflow_id: z.string(),
|
|
2560
|
+
/** What was externalized (e.g. "transcript", "trace_steps", "structured_return"). */
|
|
2561
|
+
source_label: z.string(),
|
|
2562
|
+
/** Why it was externalized (e.g. "exceeded 50000 char threshold"). */
|
|
2563
|
+
reason: z.string(),
|
|
2564
|
+
/** Filename within the proof folder where the overflow was written. */
|
|
2565
|
+
artifact_filename: z.string(),
|
|
2566
|
+
/** Reference to the proof artifact ID (links into proof manifest). */
|
|
2567
|
+
artifact_id: z.string(),
|
|
2568
|
+
/** Original size in bytes before externalization. */
|
|
2569
|
+
original_size_bytes: z.number(),
|
|
2570
|
+
/** What was kept inline as a summary/preview. */
|
|
2571
|
+
retained_summary: z.string(),
|
|
2572
|
+
/** How many bytes were retained inline. */
|
|
2573
|
+
retained_bytes: z.number().default(0),
|
|
2574
|
+
/** When the overflow was created. */
|
|
2575
|
+
externalized_at: z.string(),
|
|
2576
|
+
});
|
|
2577
|
+
|
|
2578
|
+
export const overflowManifestSchema = z.object({
|
|
2579
|
+
manifest_id: z.string(),
|
|
2580
|
+
dispatch_id: z.string(),
|
|
2581
|
+
entries: z.array(overflowEntrySchema).default([]),
|
|
2582
|
+
total_externalized_bytes: z.number().default(0),
|
|
2583
|
+
total_entries: z.number().default(0),
|
|
2584
|
+
created_at: z.string(),
|
|
2585
|
+
});
|
|
2586
|
+
|
|
2587
|
+
export const overflowSummarySchema = z.object({
|
|
2588
|
+
overflow_entry_count: z.number().default(0),
|
|
2589
|
+
overflow_total_bytes: z.number().default(0),
|
|
2590
|
+
overflow_sources: z.array(z.string()).default([]),
|
|
2591
|
+
overflow_available: z.boolean().default(false),
|
|
2592
|
+
});
|
|
2593
|
+
|
|
2594
|
+
export type OverflowEntry = z.infer<typeof overflowEntrySchema>;
|
|
2595
|
+
export type OverflowManifest = z.infer<typeof overflowManifestSchema>;
|
|
2596
|
+
export type OverflowSummary = z.infer<typeof overflowSummarySchema>;
|
|
2597
|
+
|
|
2598
|
+
// ---------------------------------------------------------------------------
|
|
2599
|
+
// Execution Harness — route-native compilation output
|
|
2600
|
+
// ---------------------------------------------------------------------------
|
|
2601
|
+
|
|
2602
|
+
/**
|
|
2603
|
+
* Dispatch mode derived from surface capabilities.
|
|
2604
|
+
* - auto: programmatic dispatch, synchronous return
|
|
2605
|
+
* - manual: human-mediated dispatch (clipboard, paste)
|
|
2606
|
+
* - async: programmatic dispatch, async/callback return
|
|
2607
|
+
*/
|
|
2608
|
+
export const dispatchModeSchema = z.enum(["auto", "manual", "async"]);
|
|
2609
|
+
|
|
2610
|
+
/**
|
|
2611
|
+
* Return expectation shape — what the control plane expects back
|
|
2612
|
+
* from the receiving surface after execution.
|
|
2613
|
+
*/
|
|
2614
|
+
export const returnExpectationSchema = z.object({
|
|
2615
|
+
structured: z.boolean(),
|
|
2616
|
+
required_fields: z.array(z.string()),
|
|
2617
|
+
human_mediated: z.boolean(),
|
|
2618
|
+
async_callback: z.boolean(),
|
|
2619
|
+
});
|
|
2620
|
+
|
|
2621
|
+
/**
|
|
2622
|
+
* Budget constraints compiled from surface + task context.
|
|
2623
|
+
* Defines the verification and correction thresholds the harness carries.
|
|
2624
|
+
*/
|
|
2625
|
+
export const budgetConstraintSchema = z.object({
|
|
2626
|
+
correction_caution_threshold: z.number().default(0.2),
|
|
2627
|
+
correction_over_budget_threshold: z.number().default(0.5),
|
|
2628
|
+
verification_expected: z.boolean(),
|
|
2629
|
+
verification_notes: z.array(z.string()).default([]),
|
|
2630
|
+
});
|
|
2631
|
+
|
|
2632
|
+
/**
|
|
2633
|
+
* Context bindings that are route-native — only relevant to
|
|
2634
|
+
* the specific surface/dispatch mechanism being used.
|
|
2635
|
+
*/
|
|
2636
|
+
export const contextBindingsSchema = z.object({
|
|
2637
|
+
working_directory: z.string().nullable().default(null),
|
|
2638
|
+
model_hint: z.string().default(""),
|
|
2639
|
+
async_return: z.boolean().default(false),
|
|
2640
|
+
});
|
|
2641
|
+
|
|
2642
|
+
/**
|
|
2643
|
+
* Harness governance binding — the contract boundaries that survive
|
|
2644
|
+
* across every dispatch. Extracted once from the canonical
|
|
2645
|
+
* contract, carried immutably in the harness.
|
|
2646
|
+
*
|
|
2647
|
+
* Distinct from GovernanceEnvelope (activation/gate/closure state).
|
|
2648
|
+
*/
|
|
2649
|
+
export const harnessGovernanceSchema = z.object({
|
|
2650
|
+
contract_id: z.string(),
|
|
2651
|
+
contract_title: z.string(),
|
|
2652
|
+
non_goals: z.array(z.string()),
|
|
2653
|
+
must_not_widen: z.array(z.string()),
|
|
2654
|
+
protected_scope_out: z.array(z.string()),
|
|
2655
|
+
});
|
|
2656
|
+
|
|
2657
|
+
/**
|
|
2658
|
+
* ExecutionHarness — the route-native compilation output.
|
|
2659
|
+
*
|
|
2660
|
+
* This is the single compiled object that contains everything
|
|
2661
|
+
* the receiving surface needs. It is produced from model-neutral
|
|
2662
|
+
* canonical state (contract + working + loop) and route-specific
|
|
2663
|
+
* decisions (surface profile + playbook + dispatch mode).
|
|
2664
|
+
*
|
|
2665
|
+
* The harness is the compilation boundary between canonical
|
|
2666
|
+
* governance and route-native execution.
|
|
2667
|
+
*/
|
|
2668
|
+
export const executionHarnessSchema = z.object({
|
|
2669
|
+
harness_id: z.string(),
|
|
2670
|
+
dispatch_id: z.string(),
|
|
2671
|
+
compiled_at: z.string(),
|
|
2672
|
+
|
|
2673
|
+
// Route identity
|
|
2674
|
+
surface: surfaceSchema,
|
|
2675
|
+
surface_class: surfaceClassSchema,
|
|
2676
|
+
dispatch_mode: dispatchModeSchema,
|
|
2677
|
+
receipt_model: surfaceProfileSchema.shape.receipt_model,
|
|
2678
|
+
packet_format: surfaceProfileSchema.shape.packet_format,
|
|
2679
|
+
execution_shape: executionShapeSchema,
|
|
2680
|
+
|
|
2681
|
+
// Compiled execution scope (from loop contract)
|
|
2682
|
+
objective: z.string(),
|
|
2683
|
+
scope_in: z.array(z.string()),
|
|
2684
|
+
scope_out: z.array(z.string()),
|
|
2685
|
+
done_when: z.array(z.string()),
|
|
2686
|
+
success_criteria: z.array(z.string()),
|
|
2687
|
+
verify_with: z.array(z.string()),
|
|
2688
|
+
return_when: z.string(),
|
|
2689
|
+
blocker_escalation: z.array(z.string()),
|
|
2690
|
+
fallback_surface: surfaceSchema,
|
|
2691
|
+
|
|
2692
|
+
// Route-native sections
|
|
2693
|
+
playbook_notes: z.array(z.string()),
|
|
2694
|
+
return_expectation: returnExpectationSchema,
|
|
2695
|
+
budget_constraint: budgetConstraintSchema,
|
|
2696
|
+
context_bindings: contextBindingsSchema,
|
|
2697
|
+
governance_envelope: harnessGovernanceSchema,
|
|
2698
|
+
});
|
|
2699
|
+
|
|
2700
|
+
export type DispatchMode = z.infer<typeof dispatchModeSchema>;
|
|
2701
|
+
export type ReturnExpectation = z.infer<typeof returnExpectationSchema>;
|
|
2702
|
+
export type BudgetConstraint = z.infer<typeof budgetConstraintSchema>;
|
|
2703
|
+
export type ContextBindings = z.infer<typeof contextBindingsSchema>;
|
|
2704
|
+
export type HarnessGovernance = z.infer<typeof harnessGovernanceSchema>;
|
|
2705
|
+
export type ExecutionHarness = z.infer<typeof executionHarnessSchema>;
|
|
2706
|
+
|
|
2707
|
+
// ---------------------------------------------------------------------------
|
|
2708
|
+
// Meta Harness — internal compile subsystem for context packet improvement
|
|
2709
|
+
// ---------------------------------------------------------------------------
|
|
2710
|
+
|
|
2711
|
+
export const harnessCompilationExperimentSchema = z.enum([
|
|
2712
|
+
"repo_context_bootstrap", // repo-grounded context packet compilation
|
|
2713
|
+
]);
|
|
2714
|
+
|
|
2715
|
+
export const harnessCandidateStatusSchema = z.enum([
|
|
2716
|
+
"derived", // candidate was generated
|
|
2717
|
+
"selected", // candidate was selected for use
|
|
2718
|
+
"rejected", // candidate was rejected (rationale recorded)
|
|
2719
|
+
"no_op", // no candidate was appropriate
|
|
2720
|
+
]);
|
|
2721
|
+
|
|
2722
|
+
export const harnessInputSnapshotSchema = z.object({
|
|
2723
|
+
contract_id: z.string(),
|
|
2724
|
+
dispatch_id: z.string(),
|
|
2725
|
+
spec_hash: z.string().default(""),
|
|
2726
|
+
repo_grounded: z.boolean(),
|
|
2727
|
+
prior_delta_id: z.string().default(""),
|
|
2728
|
+
prior_gate_label: z.string().default(""),
|
|
2729
|
+
loop_objective: z.string().default(""),
|
|
2730
|
+
systems_in_play: z.array(z.string()).default([]),
|
|
2731
|
+
snapshot_hash: z.string().default(""),
|
|
2732
|
+
});
|
|
2733
|
+
|
|
2734
|
+
export const harnessOutputArtifactRefSchema = z.object({
|
|
2735
|
+
artifact_type: z.enum(["context_section", "repo_summary", "prior_evidence_digest", "scope_refinement"]),
|
|
2736
|
+
content_hash: z.string().default(""),
|
|
2737
|
+
size_bytes: z.number().default(0),
|
|
2738
|
+
description: z.string().default(""),
|
|
2739
|
+
});
|
|
2740
|
+
|
|
2741
|
+
export const harnessCandidateSchema = z.object({
|
|
2742
|
+
candidate_id: z.string(),
|
|
2743
|
+
experiment: harnessCompilationExperimentSchema,
|
|
2744
|
+
status: harnessCandidateStatusSchema,
|
|
2745
|
+
rationale: z.string(),
|
|
2746
|
+
input_snapshot: harnessInputSnapshotSchema,
|
|
2747
|
+
output_artifacts: z.array(harnessOutputArtifactRefSchema).default([]),
|
|
2748
|
+
context_additions: z.array(z.string()).default([]),
|
|
2749
|
+
created_at: z.string(),
|
|
2750
|
+
});
|
|
2751
|
+
|
|
2752
|
+
export const harnessSelectionSchema = z.object({
|
|
2753
|
+
selected_candidate_id: z.string().default(""),
|
|
2754
|
+
selection_rationale: z.string(),
|
|
2755
|
+
was_no_op: z.boolean(),
|
|
2756
|
+
no_op_reason: z.string().default(""),
|
|
2757
|
+
});
|
|
2758
|
+
|
|
2759
|
+
export const harnessCompilationSummarySchema = z.object({
|
|
2760
|
+
compilation_id: z.string(),
|
|
2761
|
+
project_id: z.string(),
|
|
2762
|
+
dispatch_id: z.string(),
|
|
2763
|
+
experiment: harnessCompilationExperimentSchema,
|
|
2764
|
+
candidates: z.array(harnessCandidateSchema),
|
|
2765
|
+
selection: harnessSelectionSchema,
|
|
2766
|
+
compiled_at: z.string(),
|
|
2767
|
+
/** Bounded context sections emitted for downstream dispatch. */
|
|
2768
|
+
emitted_context_sections: z.array(z.string()).default([]),
|
|
2769
|
+
/** Total chars added to the dispatch prompt by the meta harness. */
|
|
2770
|
+
context_chars_added: z.number().default(0),
|
|
2771
|
+
});
|
|
2772
|
+
|
|
2773
|
+
export type HarnessCompilationExperiment = z.infer<typeof harnessCompilationExperimentSchema>;
|
|
2774
|
+
export type HarnessCandidateStatus = z.infer<typeof harnessCandidateStatusSchema>;
|
|
2775
|
+
export type HarnessInputSnapshot = z.infer<typeof harnessInputSnapshotSchema>;
|
|
2776
|
+
export type HarnessOutputArtifactRef = z.infer<typeof harnessOutputArtifactRefSchema>;
|
|
2777
|
+
export type HarnessCandidate = z.infer<typeof harnessCandidateSchema>;
|
|
2778
|
+
export type HarnessSelection = z.infer<typeof harnessSelectionSchema>;
|
|
2779
|
+
export type HarnessCompilationSummary = z.infer<typeof harnessCompilationSummarySchema>;
|
|
2780
|
+
|
|
2781
|
+
// ---------------------------------------------------------------------------
|
|
2782
|
+
// Receipt V2 — immutable issuance payload + append-only lifecycle status
|
|
2783
|
+
// ---------------------------------------------------------------------------
|
|
2784
|
+
|
|
2785
|
+
// --- Lifecycle posture (resolved from status events) ---
|
|
2786
|
+
|
|
2787
|
+
export const receiptLifecyclePostureSchema = z.enum([
|
|
2788
|
+
"CURRENT",
|
|
2789
|
+
"CURRENT_WITH_LIMITS",
|
|
2790
|
+
"SUSPENDED",
|
|
2791
|
+
"SUPERSEDED",
|
|
2792
|
+
"REVOKED",
|
|
2793
|
+
"EXPIRED",
|
|
2794
|
+
]);
|
|
2795
|
+
|
|
2796
|
+
// --- Status event types ---
|
|
2797
|
+
|
|
2798
|
+
export const receiptStatusEventTypeSchema = z.enum([
|
|
2799
|
+
"LIMIT_APPLIED",
|
|
2800
|
+
"LIMIT_LIFTED",
|
|
2801
|
+
"SUSPENDED",
|
|
2802
|
+
"REINSTATED",
|
|
2803
|
+
"SUPERSEDED_BY",
|
|
2804
|
+
"REVOKED",
|
|
2805
|
+
"EXPIRY_SET",
|
|
2806
|
+
"EXPIRED",
|
|
2807
|
+
]);
|
|
2808
|
+
|
|
2809
|
+
// --- Human-facing receipt verdict (immutable, set at issuance) ---
|
|
2810
|
+
|
|
2811
|
+
export const receiptVerdictSchema = z.enum([
|
|
2812
|
+
"verified",
|
|
2813
|
+
"partially_verified",
|
|
2814
|
+
"inconclusive",
|
|
2815
|
+
"not_verified",
|
|
2816
|
+
"disputed",
|
|
2817
|
+
]);
|
|
2818
|
+
|
|
2819
|
+
// --- Claim source + provenance (two-axis model) ---
|
|
2820
|
+
|
|
2821
|
+
export const claimSourceSchema = z.enum([
|
|
2822
|
+
"executor",
|
|
2823
|
+
"operator",
|
|
2824
|
+
"switchboard",
|
|
2825
|
+
"third_party",
|
|
2826
|
+
]);
|
|
2827
|
+
|
|
2828
|
+
export const claimProvenanceTypeSchema = z.enum([
|
|
2829
|
+
"claimed",
|
|
2830
|
+
"observed",
|
|
2831
|
+
"derived",
|
|
2832
|
+
]);
|
|
2833
|
+
|
|
2834
|
+
// Updated claim disposition (same as V1 for compatibility)
|
|
2835
|
+
// "proven" | "supported" | "partial" | "inferred" | "unsubstantiated"
|
|
2836
|
+
|
|
2837
|
+
export const claimAssessmentV2Schema = z.object({
|
|
2838
|
+
claim: z.string(),
|
|
2839
|
+
source: claimSourceSchema,
|
|
2840
|
+
provenance_type: claimProvenanceTypeSchema,
|
|
2841
|
+
disposition: claimDispositionSchema,
|
|
2842
|
+
basis: z.string(),
|
|
2843
|
+
});
|
|
2844
|
+
|
|
2845
|
+
// --- Verification / evidence schema ---
|
|
2846
|
+
|
|
2847
|
+
export const verificationResultSchema = z.object({
|
|
2848
|
+
verification_id: z.string(),
|
|
2849
|
+
scope: z.string(),
|
|
2850
|
+
method: z.string(),
|
|
2851
|
+
outcome: z.enum(["pass", "fail", "partial", "skipped", "error"]),
|
|
2852
|
+
coverage: z.string().default(""),
|
|
2853
|
+
determinism: z.enum(["deterministic", "probabilistic", "manual", "unknown"]).default("unknown"),
|
|
2854
|
+
evidence_type: z.enum(["captured", "reconstructed", "derived", "none"]).default("none"),
|
|
2855
|
+
detail: z.string().default(""),
|
|
2856
|
+
});
|
|
2857
|
+
|
|
2858
|
+
export const evidenceItemV2Schema = z.object({
|
|
2859
|
+
evidence_id: z.string(),
|
|
2860
|
+
kind: z.enum(["test_output", "file_diff", "cli_output", "transcript", "metric", "attestation", "other"]),
|
|
2861
|
+
provenance: provenanceLabelSchema,
|
|
2862
|
+
description: z.string(),
|
|
2863
|
+
reference: z.string().default(""),
|
|
2864
|
+
});
|
|
2865
|
+
|
|
2866
|
+
export const findingV2Schema = z.object({
|
|
2867
|
+
finding_id: z.string(),
|
|
2868
|
+
severity: z.enum(["info", "caution", "concern", "blocker"]),
|
|
2869
|
+
category: z.string(),
|
|
2870
|
+
detail: z.string(),
|
|
2871
|
+
resolution: z.string().default(""),
|
|
2872
|
+
});
|
|
2873
|
+
|
|
2874
|
+
export const unresolvedGapSchema = z.object({
|
|
2875
|
+
gap_id: z.string(),
|
|
2876
|
+
description: z.string(),
|
|
2877
|
+
impact: z.enum(["blocks_verification", "degrades_confidence", "informational"]),
|
|
2878
|
+
category: z.string().default(""),
|
|
2879
|
+
});
|
|
2880
|
+
|
|
2881
|
+
// --- Execution metadata ---
|
|
2882
|
+
|
|
2883
|
+
export const executionMetadataSchema = z.object({
|
|
2884
|
+
surface: z.string(),
|
|
2885
|
+
model: z.string().default(""),
|
|
2886
|
+
duration_ms: z.number().default(0),
|
|
2887
|
+
realization_type: z.string().default(""),
|
|
2888
|
+
environment: z.string().default(""),
|
|
2889
|
+
human_intervention: z.enum(["none", "present", "unknown"]).default("unknown"),
|
|
2890
|
+
});
|
|
2891
|
+
|
|
2892
|
+
// --- Proof summary ---
|
|
2893
|
+
|
|
2894
|
+
export const proofSummarySchema = z.object({
|
|
2895
|
+
captured_count: z.number().default(0),
|
|
2896
|
+
reconstructed_count: z.number().default(0),
|
|
2897
|
+
derived_count: z.number().default(0),
|
|
2898
|
+
total_artifacts: z.number().default(0),
|
|
2899
|
+
manifest_present: z.boolean().default(false),
|
|
2900
|
+
manifest_id: z.string().default(""),
|
|
2901
|
+
});
|
|
2902
|
+
|
|
2903
|
+
// --- Issuance assessment ---
|
|
2904
|
+
|
|
2905
|
+
export const issuanceAssessmentSchema = z.object({
|
|
2906
|
+
verdict: receiptVerdictSchema,
|
|
2907
|
+
verdict_basis: z.string(),
|
|
2908
|
+
scope_qualified: z.boolean().default(false),
|
|
2909
|
+
scope_description: z.string().default(""),
|
|
2910
|
+
degradation_reasons: z.array(z.string()).default([]),
|
|
2911
|
+
/** Structured honesty violation list — set by builder when summary contains banned terms. */
|
|
2912
|
+
honesty_violations: z.array(z.string()).default([]),
|
|
2913
|
+
});
|
|
2914
|
+
|
|
2915
|
+
// --- Audit + evaluation links ---
|
|
2916
|
+
|
|
2917
|
+
export const auditAndEvaluationLinksSchema = z.object({
|
|
2918
|
+
latest_evaluation_id: z.string().default(""),
|
|
2919
|
+
evaluation_verdict: z.string().default(""),
|
|
2920
|
+
evaluation_scope: z.string().default(""),
|
|
2921
|
+
evaluation_timestamp: z.string().default(""),
|
|
2922
|
+
evaluation_basis: z.string().default(""),
|
|
2923
|
+
});
|
|
2924
|
+
|
|
2925
|
+
// --- Redaction profile ---
|
|
2926
|
+
|
|
2927
|
+
export const redactionProfileSchema = z.object({
|
|
2928
|
+
mode: z.enum(["full", "share", "redacted"]).default("full"),
|
|
2929
|
+
redacted_fields: z.array(z.string()).default([]),
|
|
2930
|
+
share_safe: z.boolean().default(false),
|
|
2931
|
+
});
|
|
2932
|
+
|
|
2933
|
+
// --- Receipt Status Event ---
|
|
2934
|
+
|
|
2935
|
+
export const receiptStatusEventSchema = z.object({
|
|
2936
|
+
event_id: z.string(),
|
|
2937
|
+
receipt_id: z.string(),
|
|
2938
|
+
event_type: receiptStatusEventTypeSchema,
|
|
2939
|
+
reason: z.string(),
|
|
2940
|
+
issued_by: z.string().default("system"),
|
|
2941
|
+
issued_at: z.string(),
|
|
2942
|
+
superseded_by_receipt_id: z.string().default(""),
|
|
2943
|
+
expiry_at: z.string().default(""),
|
|
2944
|
+
limit_description: z.string().default(""),
|
|
2945
|
+
metadata: z.record(z.string(), z.unknown()).default({}),
|
|
2946
|
+
});
|
|
2947
|
+
|
|
2948
|
+
// --- ReceiptIssuedV2 — the immutable issuance payload ---
|
|
2949
|
+
|
|
2950
|
+
export const receiptIssuedV2Schema = z.object({
|
|
2951
|
+
// Identity
|
|
2952
|
+
receipt_id: z.string(),
|
|
2953
|
+
receipt_version: z.literal(2),
|
|
2954
|
+
issued_at: z.string(),
|
|
2955
|
+
project_id: z.string().default(""),
|
|
2956
|
+
dispatch_id: z.string().default(""),
|
|
2957
|
+
return_id: z.string().default(""),
|
|
2958
|
+
envelope_id: z.string().default(""),
|
|
2959
|
+
delta_id: z.string().default(""),
|
|
2960
|
+
|
|
2961
|
+
// --- asked ---
|
|
2962
|
+
objective_asked: z.string(),
|
|
2963
|
+
scope_summary: z.string().default(""),
|
|
2964
|
+
|
|
2965
|
+
// --- execution ---
|
|
2966
|
+
execution: executionMetadataSchema,
|
|
2967
|
+
|
|
2968
|
+
// --- claimed ---
|
|
2969
|
+
outcome_claimed: outcomeClassSchema,
|
|
2970
|
+
summary_claimed: z.string(),
|
|
2971
|
+
|
|
2972
|
+
// --- claim_assessments (two-axis) ---
|
|
2973
|
+
claim_assessments: z.array(claimAssessmentV2Schema).default([]),
|
|
2974
|
+
|
|
2975
|
+
// --- verification ---
|
|
2976
|
+
verification_results: z.array(verificationResultSchema).default([]),
|
|
2977
|
+
evidence_items: z.array(evidenceItemV2Schema).default([]),
|
|
2978
|
+
findings: z.array(findingV2Schema).default([]),
|
|
2979
|
+
unresolved_gaps: z.array(unresolvedGapSchema).default([]),
|
|
2980
|
+
|
|
2981
|
+
// --- gate ---
|
|
2982
|
+
gate_label: gateStateLabelSchema,
|
|
2983
|
+
gate_reason: z.string(),
|
|
2984
|
+
gate_honest: z.boolean(),
|
|
2985
|
+
|
|
2986
|
+
// --- issuance_assessment (human-facing verdict) ---
|
|
2987
|
+
issuance_assessment: issuanceAssessmentSchema,
|
|
2988
|
+
|
|
2989
|
+
// --- advancement ---
|
|
2990
|
+
state_advanced: z.boolean(),
|
|
2991
|
+
advancement_basis: z.string(),
|
|
2992
|
+
consequence_type: consequenceTypeSchema,
|
|
2993
|
+
consequence_label: z.string(),
|
|
2994
|
+
|
|
2995
|
+
// --- residuals ---
|
|
2996
|
+
cautions_on_record: z.array(z.string()).default([]),
|
|
2997
|
+
unresolved_on_record: z.array(z.string()).default([]),
|
|
2998
|
+
residual_count: z.number(),
|
|
2999
|
+
|
|
3000
|
+
// --- next_slice ---
|
|
3001
|
+
next_slice_exists: z.boolean(),
|
|
3002
|
+
next_slice_id: z.string().default(""),
|
|
3003
|
+
next_slice_title: z.string().default(""),
|
|
3004
|
+
|
|
3005
|
+
// --- provenance_summary ---
|
|
3006
|
+
proof_summary: proofSummarySchema,
|
|
3007
|
+
provenance_posture: z.enum(["captured", "reconstructed", "derived", "mixed", "unknown"]).default("unknown"),
|
|
3008
|
+
|
|
3009
|
+
// --- audit_and_evaluation_links ---
|
|
3010
|
+
audit_and_evaluation_links: auditAndEvaluationLinksSchema.default({}),
|
|
3011
|
+
|
|
3012
|
+
// --- redaction_profile ---
|
|
3013
|
+
redaction_profile: redactionProfileSchema.default({}),
|
|
3014
|
+
|
|
3015
|
+
// --- closure ---
|
|
3016
|
+
closure_allowed: z.boolean(),
|
|
3017
|
+
closure_basis: z.string(),
|
|
3018
|
+
|
|
3019
|
+
// --- legacy compat (carries V1 fields for backward compat) ---
|
|
3020
|
+
trust_posture: trustPostureSchema,
|
|
3021
|
+
trust_basis: z.string(),
|
|
3022
|
+
|
|
3023
|
+
// --- V1 receipt ID for lineage if upgraded ---
|
|
3024
|
+
v1_receipt_id: z.string().default(""),
|
|
3025
|
+
|
|
3026
|
+
// --- Meta harness compile provenance ---
|
|
3027
|
+
harness_provenance: z.object({
|
|
3028
|
+
harness_ran: z.boolean().default(false),
|
|
3029
|
+
compilation_id: z.string().default(""),
|
|
3030
|
+
selected_candidate_id: z.string().default(""),
|
|
3031
|
+
experiment: z.string().default(""),
|
|
3032
|
+
selection_rationale: z.string().default(""),
|
|
3033
|
+
context_chars_added: z.number().default(0),
|
|
3034
|
+
was_no_op: z.boolean().default(true),
|
|
3035
|
+
}).default({}),
|
|
3036
|
+
});
|
|
3037
|
+
|
|
3038
|
+
export type ReceiptLifecyclePosture = z.infer<typeof receiptLifecyclePostureSchema>;
|
|
3039
|
+
export type ReceiptStatusEventType = z.infer<typeof receiptStatusEventTypeSchema>;
|
|
3040
|
+
export type ReceiptVerdict = z.infer<typeof receiptVerdictSchema>;
|
|
3041
|
+
export type ClaimSource = z.infer<typeof claimSourceSchema>;
|
|
3042
|
+
export type ClaimProvenanceType = z.infer<typeof claimProvenanceTypeSchema>;
|
|
3043
|
+
export type ClaimAssessmentV2 = z.infer<typeof claimAssessmentV2Schema>;
|
|
3044
|
+
export type VerificationResult = z.infer<typeof verificationResultSchema>;
|
|
3045
|
+
export type EvidenceItemV2 = z.infer<typeof evidenceItemV2Schema>;
|
|
3046
|
+
export type FindingV2 = z.infer<typeof findingV2Schema>;
|
|
3047
|
+
export type UnresolvedGap = z.infer<typeof unresolvedGapSchema>;
|
|
3048
|
+
export type ExecutionMetadata = z.infer<typeof executionMetadataSchema>;
|
|
3049
|
+
export type ProofSummary = z.infer<typeof proofSummarySchema>;
|
|
3050
|
+
export type IssuanceAssessment = z.infer<typeof issuanceAssessmentSchema>;
|
|
3051
|
+
export type AuditAndEvaluationLinks = z.infer<typeof auditAndEvaluationLinksSchema>;
|
|
3052
|
+
export type RedactionProfile = z.infer<typeof redactionProfileSchema>;
|
|
3053
|
+
export type ReceiptStatusEvent = z.infer<typeof receiptStatusEventSchema>;
|
|
3054
|
+
export type ReceiptIssuedV2 = z.infer<typeof receiptIssuedV2Schema>;
|