@justjoshn/pi-pstack-v2 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/docs/guide/05-build-and-clean.md +1 -1
- package/docs/pi-mechanisms.md +1 -1
- package/package.json +12 -5
- package/skills/poteto-mode/scripts/bootstrap.ts +1 -2
- package/skills/poteto-mode/scripts/bun.lock +3 -0
- package/skills/poteto-mode/scripts/node_modules/zod/LICENSE +21 -0
- package/skills/poteto-mode/scripts/node_modules/zod/README.md +218 -0
- package/skills/poteto-mode/scripts/node_modules/zod/compile.cjs +96 -0
- package/skills/poteto-mode/scripts/node_modules/zod/compile.d.cts +1 -0
- package/skills/poteto-mode/scripts/node_modules/zod/compile.d.ts +1 -0
- package/skills/poteto-mode/scripts/node_modules/zod/compile.js +52 -0
- package/skills/poteto-mode/scripts/node_modules/zod/index.cjs +52 -0
- package/skills/poteto-mode/scripts/node_modules/zod/index.d.cts +3 -0
- package/skills/poteto-mode/scripts/node_modules/zod/index.d.ts +3 -0
- package/skills/poteto-mode/scripts/node_modules/zod/index.js +7 -0
- package/skills/poteto-mode/scripts/node_modules/zod/locales/index.cjs +36 -0
- package/skills/poteto-mode/scripts/node_modules/zod/locales/index.d.cts +1 -0
- package/skills/poteto-mode/scripts/node_modules/zod/locales/index.d.ts +1 -0
- package/skills/poteto-mode/scripts/node_modules/zod/locales/index.js +1 -0
- package/skills/poteto-mode/scripts/node_modules/zod/locales/package.json +7 -0
- package/skills/poteto-mode/scripts/node_modules/zod/mini/index.cjs +51 -0
- package/skills/poteto-mode/scripts/node_modules/zod/mini/index.d.cts +3 -0
- package/skills/poteto-mode/scripts/node_modules/zod/mini/index.d.ts +3 -0
- package/skills/poteto-mode/scripts/node_modules/zod/mini/index.js +3 -0
- package/skills/poteto-mode/scripts/node_modules/zod/mini/package.json +7 -0
- package/skills/poteto-mode/scripts/node_modules/zod/package.json +147 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/compile.ts +56 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/index.ts +7 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/locales/index.ts +1 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/mini/index.ts +3 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/ZodError.ts +340 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/errors.ts +13 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/external.ts +6 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/index.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/error.test.ts +586 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/function.test.ts +261 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/intersection.test.ts +128 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/language-server.test.ts +206 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/object.test.ts +431 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/readonly.test.ts +114 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/string.test.ts +922 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v3/types.ts +5138 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/checks.ts +33 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/compat.ts +78 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/errors.ts +97 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/external.ts +57 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/in-out.ts +45 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/iso.ts +20 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/parse.ts +88 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/schemas.ts +2937 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/array.test.ts +291 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/assignability.test.ts +402 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/bigint.test.ts +89 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/catch.test.ts +604 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/date.test.ts +92 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/datetime.test.ts +316 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/default.test.ts +455 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +942 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/enum.test.ts +305 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +917 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/error.test.ts +1108 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/function.test.ts +391 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/index.test.ts +958 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +127 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/intersection.test.ts +334 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/lazy.test.ts +262 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/literal.test.ts +128 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/map.test.ts +349 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/number.test.ts +401 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/object.test.ts +1006 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/optional.test.ts +366 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/partial.test.ts +497 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/prefault.test.ts +144 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/readonly.test.ts +184 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/record.test.ts +885 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +707 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/refine.test.ts +693 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/set.test.ts +196 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +153 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/string.test.ts +1440 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +124 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +812 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +4733 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/tuple.test.ts +511 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/union.test.ts +310 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/api.ts +1875 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/checks.ts +1266 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/compile.ts +2322 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/core.ts +230 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/doc.ts +52 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/errors.ts +543 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/index.ts +19 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/json-schema.ts +148 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/memoizer.ts +331 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/parse.ts +309 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/regexes.ts +217 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/registries.ts +105 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/schemas.ts +5226 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/to-json-schema.ts +857 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/util.ts +1293 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/visit.ts +193 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/index.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/ar.ts +120 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/az.ts +116 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/be.ts +188 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/bg.ts +133 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/bn.ts +123 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/ca.ts +121 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/ckb.ts +140 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/cs.ts +123 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/da.ts +128 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/de.ts +121 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/el.ts +124 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/en.ts +136 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/eo.ts +123 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/es.ts +145 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/fa.ts +131 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/fi.ts +126 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/fr-CA.ts +121 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/fr.ts +139 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/gu.ts +123 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/he.ts +253 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/hi.ts +126 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/hr.ts +135 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/hu.ts +122 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/hy.ts +175 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/id.ts +120 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/index.ts +63 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/is.ts +124 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/it.ts +121 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/ja.ts +119 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/ka.ts +128 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/kh.ts +7 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/km.ts +124 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/kn.ts +126 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/ko.ts +126 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/lt.ts +243 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/mk.ts +123 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/ms.ts +120 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/ne.ts +128 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/nn.ts +121 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/no.ts +121 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/ota.ts +122 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/pl.ts +123 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/ps.ts +131 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/pt.ts +159 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/ro.ts +132 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/ru.ts +188 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/sk.ts +123 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/sl.ts +123 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/sv.ts +124 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/ta.ts +123 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/tg.ts +135 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/th.ts +124 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/tk.ts +113 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/tr.ts +116 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/ua.ts +7 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/uk.ts +122 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/ur.ts +124 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/uz.ts +120 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/vi.ts +122 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/yo.ts +129 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/zh-CN.ts +121 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/locales/zh-TW.ts +120 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/mini/checks.ts +33 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/mini/coerce.ts +27 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/mini/external.ts +52 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/mini/in-out.ts +45 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/mini/iso.ts +66 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/mini/parse.ts +16 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/mini/schemas.ts +2051 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/mini/tests/assignability.test.ts +190 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/mini/tests/checks.test.ts +158 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/mini/tests/computed.test.ts +30 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/mini/tests/error.test.ts +41 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/mini/tests/functions.test.ts +14 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/mini/tests/index.test.ts +1146 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/mini/tests/number.test.ts +109 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/mini/tests/object.test.ts +292 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +341 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4/mini/tests/string.test.ts +396 -0
- package/skills/poteto-mode/scripts/node_modules/zod/src/v4-mini/index.ts +3 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/ZodError.cjs +167 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/ZodError.js +143 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/errors.cjs +36 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/errors.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/errors.d.ts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/errors.js +9 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/external.cjs +41 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/external.d.cts +6 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/external.d.ts +6 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/external.js +6 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/helpers/enumUtil.cjs +21 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/helpers/errorUtil.cjs +28 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/helpers/parseUtil.cjs +143 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/helpers/partialUtil.cjs +21 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/helpers/typeAliases.cjs +21 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/helpers/util.cjs +156 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/helpers/util.js +133 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/index.cjs +52 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/index.d.cts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/index.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/index.js +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/locales/en.cjs +112 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/locales/en.js +109 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/package.json +7 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/standard-schema.cjs +21 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/standard-schema.js +1 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/types.cjs +3798 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/types.d.cts +1034 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/types.d.ts +1034 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v3/types.js +3697 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/checks.cjs +53 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/checks.js +1 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/coerce.cjs +66 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/coerce.js +17 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/compat.cjs +80 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/compat.d.cts +48 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/compat.d.ts +48 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/compat.js +31 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/deep-partial.js +13 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/errors.cjs +102 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/errors.d.cts +29 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/errors.d.ts +29 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/errors.js +57 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/external.cjs +97 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/external.d.cts +19 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/external.d.ts +19 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/external.js +17 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/from-json-schema.js +881 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/in-out.cjs +82 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/in-out.d.cts +8 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/in-out.d.ts +8 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/in-out.js +36 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/index.cjs +52 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/index.d.cts +3 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/index.d.ts +3 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/index.js +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/iso.cjs +68 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/iso.d.cts +7 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/iso.d.ts +7 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/iso.js +15 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/package.json +7 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/parse.cjs +63 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/parse.d.cts +44 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/parse.d.ts +44 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/parse.js +16 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/schemas.cjs +1676 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/schemas.d.cts +816 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/schemas.d.ts +816 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/classic/schemas.js +1535 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/api.cjs +1269 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/api.d.cts +335 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/api.d.ts +335 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/api.js +1107 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/checks.cjs +561 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/checks.d.cts +294 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/checks.d.ts +294 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/checks.js +516 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/compile.cjs +1916 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/compile.d.cts +65 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/compile.d.ts +65 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/compile.js +1866 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/core.cjs +167 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/core.d.cts +82 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/core.d.ts +82 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/core.js +141 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/doc.cjs +61 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/doc.d.cts +16 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/doc.d.ts +16 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/doc.js +38 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/errors.cjs +317 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/errors.d.cts +225 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/errors.d.ts +225 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/errors.js +267 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/index.cjs +70 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/index.d.cts +19 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/index.d.ts +19 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/index.js +19 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/json-schema-generator.js +99 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/json-schema-processors.js +843 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/json-schema.cjs +21 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/json-schema.d.cts +89 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/json-schema.d.ts +89 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/json-schema.js +1 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/memoizer.cjs +360 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/memoizer.d.cts +15 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/memoizer.d.ts +15 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/memoizer.js +311 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/package.json +7 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/parse.cjs +233 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/parse.d.cts +52 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/parse.d.ts +52 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/parse.js +175 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/regexes.cjs +209 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/regexes.d.cts +90 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/regexes.d.ts +90 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/regexes.js +156 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/registries.cjs +75 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/registries.js +51 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/schemas.cjs +2699 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/schemas.d.cts +1275 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/schemas.d.ts +1275 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/schemas.js +2636 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/standard-schema.cjs +21 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/to-json-schema.cjs +681 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/to-json-schema.d.cts +154 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/to-json-schema.d.ts +154 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/to-json-schema.js +651 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/util.cjs +964 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/util.d.cts +280 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/util.d.ts +280 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/util.js +873 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/versions.cjs +27 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/versions.js +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/visit.cjs +214 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/visit.d.cts +30 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/visit.d.ts +30 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/core/visit.js +169 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/index.cjs +51 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/index.d.cts +3 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/index.d.ts +3 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/index.js +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ar.cjs +138 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ar.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ar.js +111 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/az.cjs +137 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/az.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/az.js +110 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/be.cjs +195 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/be.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/be.js +168 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/bg.cjs +152 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/bg.js +125 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/bn.cjs +140 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/bn.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/bn.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/bn.js +113 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ca.cjs +139 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ca.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ca.js +112 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ckb.cjs +160 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ckb.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ckb.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ckb.js +133 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/cs.cjs +143 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/cs.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/cs.js +116 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/da.cjs +147 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/da.js +120 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/de.cjs +140 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/de.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/de.js +113 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/el.cjs +139 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/el.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/el.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/el.js +112 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/en.cjs +152 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/en.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/en.js +125 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/eo.cjs +141 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/eo.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/eo.js +114 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/es.cjs +163 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/es.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/es.js +136 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/fa.cjs +146 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/fa.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/fa.js +119 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/fi.cjs +144 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/fi.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/fi.js +117 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/fr-CA.cjs +139 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/fr-CA.js +112 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/fr.cjs +156 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/fr.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/fr.js +129 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/gu.cjs +140 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/gu.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/gu.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/gu.js +113 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/he.cjs +248 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/he.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/he.js +221 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/hi.cjs +138 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/hi.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/hi.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/hi.js +111 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/hr.cjs +153 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/hr.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/hr.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/hr.js +126 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/hu.cjs +140 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/hu.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/hu.js +113 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/hy.cjs +185 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/hy.js +158 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/id.cjs +138 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/id.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/id.js +111 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/index.cjs +152 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/index.d.cts +63 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/index.d.ts +63 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/index.js +63 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/is.cjs +141 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/is.js +114 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/it.cjs +140 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/it.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/it.js +113 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ja.cjs +139 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ja.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ja.js +112 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ka.cjs +144 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ka.js +117 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/kh.cjs +12 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/kh.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/kh.d.ts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/kh.js +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/km.cjs +142 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/km.js +115 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/kn.cjs +143 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/kn.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/kn.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/kn.js +116 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ko.cjs +143 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ko.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ko.js +116 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/lt.cjs +234 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/lt.js +207 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/mk.cjs +141 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/mk.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/mk.js +114 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ms.cjs +139 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ms.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ms.js +112 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ne.cjs +138 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ne.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ne.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ne.js +111 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/nl.cjs +142 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/nl.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/nl.js +115 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/nn.cjs +140 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/nn.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/nn.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/nn.js +113 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/no.cjs +140 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/no.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/no.js +113 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ota.cjs +141 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ota.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ota.js +114 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/package.json +7 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/pl.cjs +141 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/pl.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/pl.js +114 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ps.cjs +146 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ps.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ps.js +119 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/pt-BR.js +143 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/pt.cjs +169 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/pt.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/pt.js +142 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ro.cjs +149 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ro.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ro.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ro.js +122 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ru.cjs +195 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ru.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ru.js +168 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/sk.cjs +143 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/sk.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/sk.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/sk.js +116 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/sl.cjs +141 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/sl.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/sl.js +114 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/sv.cjs +142 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/sv.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/sv.js +115 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ta.cjs +142 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ta.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ta.js +115 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/tg.cjs +144 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/tg.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/tg.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/tg.js +117 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/th.cjs +142 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/th.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/th.js +115 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/tk.cjs +134 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/tk.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/tk.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/tk.js +107 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/tr.cjs +137 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/tr.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/tr.js +110 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ua.cjs +12 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ua.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ua.d.ts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ua.js +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/uk.cjs +140 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/uk.js +113 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ur.cjs +142 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ur.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/ur.js +115 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/uz.cjs +140 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/uz.js +113 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/vi.cjs +140 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/vi.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/vi.js +113 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/yo.cjs +139 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/yo.js +112 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/zh-CN.cjs +141 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/zh-CN.js +114 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/zh-TW.cjs +139 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/locales/zh-TW.js +112 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/checks.cjs +54 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/checks.js +1 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/coerce.cjs +71 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/coerce.js +22 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/deep-partial.js +13 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/external.cjs +95 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/external.d.cts +16 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/external.d.ts +16 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/external.js +16 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/in-out.cjs +82 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/in-out.d.cts +8 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/in-out.d.ts +8 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/in-out.js +36 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/index.cjs +51 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/index.js +3 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/iso.cjs +83 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/iso.js +34 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/package.json +7 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/parse.cjs +37 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/parse.js +1 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/schemas.cjs +1147 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/schemas.d.cts +480 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/schemas.d.ts +480 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/mini/schemas.js +1002 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4/package.json +7 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4-mini/index.cjs +51 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4-mini/index.d.cts +3 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4-mini/index.d.ts +3 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4-mini/index.js +3 -0
- package/skills/poteto-mode/scripts/node_modules/zod/v4-mini/package.json +7 -0
- package/skills/poteto-mode/scripts/package.json +2 -1
- package/skills/poteto-mode/scripts/watch-pr/classify.ts +144 -0
- package/skills/poteto-mode/scripts/watch-pr/cli.test.ts +68 -41
- package/skills/poteto-mode/scripts/watch-pr/cli.ts +95 -48
- package/skills/poteto-mode/scripts/watch-pr/fakes.test-helper.ts +26 -19
- package/skills/poteto-mode/scripts/watch-pr/github-checks.ts +91 -0
- package/skills/poteto-mode/scripts/watch-pr/github-json.ts +92 -0
- package/skills/poteto-mode/scripts/watch-pr/github-pr.ts +125 -0
- package/skills/poteto-mode/scripts/watch-pr/github-queries.ts +26 -0
- package/skills/poteto-mode/scripts/watch-pr/github-review.ts +112 -0
- package/skills/poteto-mode/scripts/watch-pr/github-stack.ts +67 -0
- package/skills/poteto-mode/scripts/watch-pr/github.test.ts +125 -104
- package/skills/poteto-mode/scripts/watch-pr/github.ts +158 -564
- package/skills/poteto-mode/scripts/watch-pr/policy.test.ts +210 -161
- package/skills/poteto-mode/scripts/watch-pr/policy.ts +23 -842
- package/skills/poteto-mode/scripts/watch-pr/poll.ts +121 -0
- package/skills/poteto-mode/scripts/watch-pr/queue.ts +190 -0
- package/skills/poteto-mode/scripts/watch-pr/recorder.test-helper.ts +16 -0
- package/skills/poteto-mode/scripts/watch-pr/render.ts +91 -63
- package/skills/poteto-mode/scripts/watch-pr/run-queued.ts +187 -0
- package/skills/poteto-mode/scripts/watch-pr/run-simple.ts +135 -0
- package/skills/poteto-mode/scripts/watch-pr/snapshot.ts +139 -0
- package/skills/poteto-mode/scripts/watch-pr/types.compile.ts +2 -1
- package/skills/poteto-mode/scripts/watch-pr/types.ts +27 -21
- package/skills/poteto-mode/scripts/watch-pr/verdict.ts +88 -0
- package/skills/pr-review-canvas/SKILL.md +1 -1
- package/skills/pr-review-canvas/renderer.js +169 -119
- package/skills/pr-review-canvas/template.html +1 -1
- package/skills/statechart/scripts/backends/cfg.ts +2 -6
- package/skills/statechart/scripts/backends/mermaid-escape.ts +91 -0
- package/skills/statechart/scripts/backends/mermaid.ts +190 -223
- package/skills/statechart/scripts/backends/report-notes.ts +137 -0
- package/skills/statechart/scripts/backends/report.ts +93 -146
- package/skills/statechart/scripts/frontends/config.ts +82 -260
- package/skills/statechart/scripts/frontends/configLex.ts +142 -0
- package/skills/statechart/scripts/frontends/configReader.ts +116 -0
- package/skills/statechart/scripts/frontends/configSections.ts +53 -0
- package/skills/statechart/scripts/frontends/dot.ts +44 -38
- package/skills/statechart/scripts/frontends/marks.ts +63 -52
- package/skills/statechart/scripts/frontends/messages.ts +69 -16
- package/skills/statechart/scripts/frontends/spec.ts +66 -49
- package/skills/statechart/scripts/frontends/trace.ts +33 -18
- package/skills/statechart/scripts/frontends/value.ts +180 -103
- package/skills/statechart/scripts/frontends/view.ts +81 -71
- package/skills/statechart/scripts/host-env.ts +8 -0
- package/skills/statechart/scripts/ir.ts +159 -226
- package/skills/statechart/scripts/passes/annotate.ts +106 -70
- package/skills/statechart/scripts/passes/label.ts +128 -150
- package/skills/statechart/scripts/passes/lift.ts +54 -67
- package/skills/statechart/scripts/passes/loop-check.ts +33 -40
- package/skills/statechart/scripts/passes/paths.ts +82 -45
- package/skills/statechart/scripts/passes/reach.ts +121 -106
- package/skills/statechart/scripts/passes/region-check.ts +71 -69
- package/skills/statechart/scripts/passes/regions.ts +355 -251
- package/skills/statechart/scripts/pipeline.ts +18 -13
- package/skills/statechart/scripts/run-io.ts +159 -0
- package/skills/statechart/scripts/run-judge.ts +131 -0
- package/skills/statechart/scripts/run-tlc.ts +133 -0
- package/skills/statechart/scripts/run.ts +209 -442
- package/skills/statechart/scripts/statechart.ts +150 -121
- package/skills/statechart/scripts/test/attempt.ts +11 -0
- package/skills/statechart/scripts/test/chart-labels.test.ts +262 -0
- package/skills/statechart/scripts/test/chart-loops.test.ts +109 -0
- package/skills/statechart/scripts/test/chart-marks.test.ts +136 -0
- package/skills/statechart/scripts/test/chart-paths.test.ts +166 -0
- package/skills/statechart/scripts/test/chart-support.ts +92 -0
- package/skills/statechart/scripts/test/chart-truth.test.ts +277 -0
- package/skills/statechart/scripts/test/chart-values.test.ts +98 -0
- package/skills/statechart/scripts/test/chart-view.test.ts +191 -0
- package/skills/statechart/scripts/test/check-child.ts +8 -0
- package/skills/statechart/scripts/test/cli-config.test.ts +142 -0
- package/skills/statechart/scripts/test/cli-corpus.test.ts +160 -0
- package/skills/statechart/scripts/test/cli-out.test.ts +108 -0
- package/skills/statechart/scripts/test/cli-process-support.ts +129 -0
- package/skills/statechart/scripts/test/cli-report.test.ts +223 -0
- package/skills/statechart/scripts/test/cli-signals.test.ts +198 -0
- package/skills/statechart/scripts/test/cli-support.ts +88 -0
- package/skills/statechart/scripts/test/cli-view-labels.test.ts +208 -0
- package/skills/statechart/scripts/test/cli-view.test.ts +177 -0
- package/skills/statechart/scripts/test/config-fuzz.test.ts +191 -116
- package/skills/statechart/scripts/test/corpus.test.ts +92 -95
- package/skills/statechart/scripts/test/differential.test.ts +202 -145
- package/skills/statechart/scripts/test/drawn.ts +37 -16
- package/skills/statechart/scripts/test/exit-status.ts +8 -0
- package/skills/statechart/scripts/test/host-env.ts +21 -0
- package/skills/statechart/scripts/test/java.ts +9 -6
- package/skills/statechart/scripts/test/labels-oracle.ts +357 -0
- package/skills/statechart/scripts/test/labels.ts +120 -349
- package/skills/statechart/scripts/test/messages.test.ts +148 -118
- package/skills/statechart/scripts/test/pipeline.test.ts +52 -45
- package/skills/statechart/scripts/test/plain-tlc.test.ts +40 -38
- package/skills/statechart/scripts/test/render.test.ts +94 -69
- package/skills/statechart/scripts/test/tail-text.test.ts +18 -0
- package/skills/statechart/scripts/test/tla-text.ts +2 -0
- package/skills/statechart/scripts/test/tlc-out.test.ts +62 -58
- package/skills/statechart/scripts/test/tlc.ts +90 -70
- package/skills/statechart/scripts/worker.ts +3 -1
- package/src/credentials.ts +49 -34
- package/src/git.ts +94 -0
- package/src/host-env.ts +6 -0
- package/src/index.ts +299 -578
- package/src/jobs.ts +105 -62
- package/src/object-schema.ts +8 -0
- package/src/paths.ts +16 -0
- package/src/requests.ts +182 -0
- package/src/sandbox.ts +137 -96
- package/src/subagent/README.md +181 -0
- package/src/subagent/agent-resolution.ts +31 -0
- package/{agents → src/subagent/agents}/ci-watcher.md +3 -1
- package/{agents → src/subagent/agents}/comment-sicko.md +2 -1
- package/src/subagent/agents/poteto-agent.md +10 -0
- package/src/subagent/agents/scout.md +49 -0
- package/src/subagent/agents/thermo-nuclear-code-quality-review.md +24 -0
- package/src/subagent/agents.ts +145 -0
- package/src/subagent/concurrency.ts +21 -0
- package/src/subagent/dispatch-chain.ts +39 -0
- package/src/subagent/dispatch-parallel.ts +51 -0
- package/src/subagent/dispatch.ts +59 -0
- package/src/subagent/format-tool-call.ts +60 -0
- package/src/subagent/format.ts +29 -0
- package/src/subagent/index.ts +52 -0
- package/src/subagent/pi-invocation.ts +43 -0
- package/src/subagent/render-call.ts +35 -0
- package/src/subagent/render-result.ts +109 -0
- package/src/subagent/render-shared.ts +87 -0
- package/src/subagent/result-stream.ts +105 -0
- package/src/subagent/results.ts +118 -0
- package/src/subagent/run-in-tmux.ts +184 -0
- package/src/subagent/run-single.ts +107 -0
- package/src/subagent/schema.ts +58 -0
- package/src/subagent/types.ts +62 -0
- package/src/sweep.ts +107 -67
- package/src/transcript.ts +61 -51
- package/agents/poteto-agent.md +0 -8
- package/agents/thermo-nuclear-code-quality-review.md +0 -23
- package/skills/statechart/scripts/test/chart.test.ts +0 -1253
- package/skills/statechart/scripts/test/cli.test.ts +0 -1315
|
@@ -1,1253 +0,0 @@
|
|
|
1
|
-
import assert from "node:assert/strict";
|
|
2
|
-
import fs from "node:fs";
|
|
3
|
-
import path from "node:path";
|
|
4
|
-
import { test } from "node:test";
|
|
5
|
-
import { inspect } from "node:util";
|
|
6
|
-
import { fileURLToPath } from "node:url";
|
|
7
|
-
import v8 from "node:v8";
|
|
8
|
-
import vm from "node:vm";
|
|
9
|
-
import { mermaid } from "../backends/mermaid.ts";
|
|
10
|
-
import { report } from "../backends/report.ts";
|
|
11
|
-
import { readConfig } from "../frontends/config.ts";
|
|
12
|
-
import { readChecks, readSany, readSpec } from "../frontends/spec.ts";
|
|
13
|
-
import { checkView, json } from "../frontends/view.ts";
|
|
14
|
-
import {
|
|
15
|
-
type Bug,
|
|
16
|
-
EC,
|
|
17
|
-
type Graph,
|
|
18
|
-
hasSection,
|
|
19
|
-
key,
|
|
20
|
-
type Lasso,
|
|
21
|
-
LEVEL,
|
|
22
|
-
type PathStep,
|
|
23
|
-
type Rule,
|
|
24
|
-
ruleKey,
|
|
25
|
-
show,
|
|
26
|
-
type Spec,
|
|
27
|
-
type State,
|
|
28
|
-
stateRules,
|
|
29
|
-
type Step,
|
|
30
|
-
type Value,
|
|
31
|
-
type Vars,
|
|
32
|
-
type View,
|
|
33
|
-
} from "../ir.ts";
|
|
34
|
-
import { addPast, deadEnds, finder, lasso, mark } from "../passes/annotate.ts";
|
|
35
|
-
import { pathGraph } from "../passes/paths.ts";
|
|
36
|
-
import { bugs, walk } from "../passes/reach.ts";
|
|
37
|
-
import { parseDot } from "../frontends/dot.ts";
|
|
38
|
-
import { parseValue } from "../frontends/value.ts";
|
|
39
|
-
import { readCounterexample, readMarks } from "../frontends/marks.ts";
|
|
40
|
-
import { readMessages } from "../frontends/messages.ts";
|
|
41
|
-
import { readTrace } from "../frontends/trace.ts";
|
|
42
|
-
import { readVerdict } from "../frontends/verdict.ts";
|
|
43
|
-
import { compile, project } from "../pipeline.ts";
|
|
44
|
-
import { fileLines } from "../run.ts";
|
|
45
|
-
import { drawn } from "./drawn.ts";
|
|
46
|
-
|
|
47
|
-
const here = path.dirname(fileURLToPath(import.meta.url));
|
|
48
|
-
const corpus = (name: string, file: string) => path.join(here, "corpus", name, file);
|
|
49
|
-
|
|
50
|
-
const corpusSpec = (name: string) => {
|
|
51
|
-
const configFile = corpus(name, `${name}.cfg`);
|
|
52
|
-
const config = readConfig({ file: configFile, text: fs.readFileSync(configFile, "utf8") });
|
|
53
|
-
return readSpec({
|
|
54
|
-
module: name,
|
|
55
|
-
sany: readSany(fs.readFileSync(corpus(name, "sany.out"), "utf8")),
|
|
56
|
-
checks: readChecks({ configFile, config }),
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
type StateRow = [id: string, vars: Vars, start?: boolean, breaks?: string[]];
|
|
61
|
-
type StepRow = [from: string, to: string, action: string];
|
|
62
|
-
|
|
63
|
-
const graphOf = (states: StateRow[], steps: StepRow[]) => {
|
|
64
|
-
const graph: Graph = { states: new Map(), steps: [] };
|
|
65
|
-
for (const [id, vars, start, breaks = []] of states) {
|
|
66
|
-
const rules: Rule[] = [];
|
|
67
|
-
for (const name of breaks) rules.push({ kind: "invariant", name });
|
|
68
|
-
graph.states.set(id, { vars, start: !!start, breaks: rules });
|
|
69
|
-
}
|
|
70
|
-
for (const [from, to, action] of steps) graph.steps.push({ from, to, action });
|
|
71
|
-
return graph;
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
const lookup = <K, V>(map: ReadonlyMap<K, V>, k: K) => {
|
|
75
|
-
const v = map.get(k);
|
|
76
|
-
assert.ok(v !== undefined, `${inspect(k)} is missing`);
|
|
77
|
-
return v;
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
const field = (value: Value, name: string) => {
|
|
81
|
-
if (typeof value !== "object" || value.kind !== "function")
|
|
82
|
-
throw new Error(`${inspect(value)} is not a function.`);
|
|
83
|
-
for (let i = 0; i < value.keys.length; i++) {
|
|
84
|
-
const k = value.keys[i];
|
|
85
|
-
if (k === name || (typeof k === "object" && k.kind === "model" && k.name === name))
|
|
86
|
-
return value.values[i];
|
|
87
|
-
}
|
|
88
|
-
throw new Error(`${inspect(value)} has no ${name}.`);
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
function draw(graph: Graph, view: View, loops: Bug[] = []) {
|
|
92
|
-
const found = [...bugs(graph), ...loops];
|
|
93
|
-
const { chart, stories } = project(graph, walk(graph), view, found);
|
|
94
|
-
const spec: Spec = {
|
|
95
|
-
module: "Test",
|
|
96
|
-
variables: [],
|
|
97
|
-
invariants: [],
|
|
98
|
-
properties: [],
|
|
99
|
-
deadlock: false,
|
|
100
|
-
written: [],
|
|
101
|
-
};
|
|
102
|
-
const result = {
|
|
103
|
-
spec,
|
|
104
|
-
graph,
|
|
105
|
-
paths: undefined,
|
|
106
|
-
rules: [],
|
|
107
|
-
properties: [],
|
|
108
|
-
stop: undefined,
|
|
109
|
-
drawing: undefined,
|
|
110
|
-
states: { distinct: graph.states.size, initial: 1, complete: true, cut: false },
|
|
111
|
-
};
|
|
112
|
-
return { chart: mermaid(chart), report: report(result, found, chart, stories) };
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
const marked = (chart: string) => {
|
|
116
|
-
const out: { [label: string]: string } = {};
|
|
117
|
-
for (const [, id, cls] of chart.matchAll(/^ {2}class (s\d+) (breaks|mayBreak)$/gm)) {
|
|
118
|
-
const label = chart.match(new RegExp(`^\\s*${id}: (.*)$`, "m"))?.[1];
|
|
119
|
-
assert.ok(label !== undefined, `${id} has no label`);
|
|
120
|
-
out[label] = cls;
|
|
121
|
-
}
|
|
122
|
-
return out;
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
test("TLA+ values reach the view as the skill says: sequences from 1, sets as arrays", () => {
|
|
126
|
-
const seen = (text: string) => json(parseValue(text));
|
|
127
|
-
assert.deepEqual(seen('<<1, "a", <<>>>>'), { 1: 1, 2: "a", 3: {} });
|
|
128
|
-
assert.deepEqual(seen("{r1, -2}"), ["r1", -2]);
|
|
129
|
-
assert.deepEqual(seen("{}"), []);
|
|
130
|
-
assert.deepEqual(seen("-1..2"), [-1, 0, 1, 2]);
|
|
131
|
-
assert.deepEqual(seen('[ok |-> TRUE, msg |-> "say \\"hi\\""]'), {
|
|
132
|
-
ok: true,
|
|
133
|
-
msg: 'say "hi"',
|
|
134
|
-
});
|
|
135
|
-
assert.deepEqual(seen("[]"), {});
|
|
136
|
-
assert.deepEqual(seen('(r1 :> "working" @@ r2 :> "aborted")'), {
|
|
137
|
-
r1: "working",
|
|
138
|
-
r2: "aborted",
|
|
139
|
-
});
|
|
140
|
-
});
|
|
141
|
-
|
|
142
|
-
test("a value outside the grammar TLC prints is an error, never a guess", () => {
|
|
143
|
-
for (const text of [
|
|
144
|
-
"<<1, 2",
|
|
145
|
-
"<<1 2>>",
|
|
146
|
-
"{1,}",
|
|
147
|
-
"[1 |-> 2]",
|
|
148
|
-
"[a |-> 1,]",
|
|
149
|
-
"[,]",
|
|
150
|
-
"(1 :> 2",
|
|
151
|
-
"1..",
|
|
152
|
-
"1..x",
|
|
153
|
-
'"\\q"',
|
|
154
|
-
"x y",
|
|
155
|
-
"",
|
|
156
|
-
"SUBSET {1}",
|
|
157
|
-
"[S -> T]",
|
|
158
|
-
])
|
|
159
|
-
assert.throws(() => parseValue(text), /cannot read TLA\+ value/, text);
|
|
160
|
-
});
|
|
161
|
-
|
|
162
|
-
test("a label prints each value in TLA+, so values that TLC tells apart look apart", () => {
|
|
163
|
-
const shown = (text: string) => show(parseValue(text));
|
|
164
|
-
for (const text of [
|
|
165
|
-
'"A"',
|
|
166
|
-
"A",
|
|
167
|
-
"<<0>>",
|
|
168
|
-
'("1" :> 0)',
|
|
169
|
-
"[a |-> 1]",
|
|
170
|
-
"[]",
|
|
171
|
-
"1..3",
|
|
172
|
-
"{1, 2, 3}",
|
|
173
|
-
"<<>>",
|
|
174
|
-
"{}",
|
|
175
|
-
"TRUE",
|
|
176
|
-
'"TRUE"',
|
|
177
|
-
'"a\\nb\\tc\\"d\\\\e"',
|
|
178
|
-
'(<<1, 2>> :> {A, "A"} @@ 0 :> -1)',
|
|
179
|
-
])
|
|
180
|
-
assert.equal(shown(text), text);
|
|
181
|
-
});
|
|
182
|
-
|
|
183
|
-
test("equal TLA+ values share one key and unequal ones do not, as TLC compares them", () => {
|
|
184
|
-
const same = [
|
|
185
|
-
["1..3", "{1, 2, 3}"],
|
|
186
|
-
["1..3", "{3, 1, 2, 2}"],
|
|
187
|
-
["{1..2, {1, 2}}", "{{1, 2}}"],
|
|
188
|
-
["{}", "1..0"],
|
|
189
|
-
["{5}", "5..5"],
|
|
190
|
-
["{0, 1, 2, 4, 5, 7}", "{7, 4, 5, 2, 1, 0}"],
|
|
191
|
-
["<<0>>", "(1 :> 0)"],
|
|
192
|
-
["<<4, 5>>", "(2 :> 5 @@ 1 :> 4)"],
|
|
193
|
-
["[a |-> 1, b |-> 2]", '("b" :> 2 @@ "a" :> 1)'],
|
|
194
|
-
["[]", "<< >>"],
|
|
195
|
-
["{A, B}", "{B, A}"],
|
|
196
|
-
['{"b", "a"}', '{"a", "b"}'],
|
|
197
|
-
];
|
|
198
|
-
for (const [a, b] of same) assert.equal(key(parseValue(a)), key(parseValue(b)), `${a} = ${b}`);
|
|
199
|
-
const apart = [
|
|
200
|
-
['"A"', "A"],
|
|
201
|
-
["<<0>>", '("1" :> 0)'],
|
|
202
|
-
["<<>>", "{}"],
|
|
203
|
-
["1..3", "{1, 2}"],
|
|
204
|
-
["1..3", "{1, 2, 3, 4}"],
|
|
205
|
-
["{1, 3}", "1..3"],
|
|
206
|
-
["TRUE", '"TRUE"'],
|
|
207
|
-
["1", '"1"'],
|
|
208
|
-
["<<1, 2>>", '"<<1, 2>>"'],
|
|
209
|
-
["(2 :> 0)", "<<0>>"],
|
|
210
|
-
["(0 :> 1 @@ 1 :> 2)", "<<1, 2>>"],
|
|
211
|
-
["[a |-> 1]", "[a |-> 2]"],
|
|
212
|
-
["{<<1>>}", "{<<2>>}"],
|
|
213
|
-
];
|
|
214
|
-
for (const [a, b] of apart)
|
|
215
|
-
assert.notEqual(key(parseValue(a)), key(parseValue(b)), `${a} # ${b}`);
|
|
216
|
-
});
|
|
217
|
-
|
|
218
|
-
function replay(name: string, graph: Graph) {
|
|
219
|
-
const spec = corpusSpec(name);
|
|
220
|
-
const names = spec.variables;
|
|
221
|
-
const rules = stateRules(spec);
|
|
222
|
-
const find = finder(graph, names);
|
|
223
|
-
const marks = readMarks(readMessages(fileLines(corpus(name, "ChartRun.out"))), "chart");
|
|
224
|
-
const past = mark(graph, marks, names, rules, find);
|
|
225
|
-
const drawn = !fs.existsSync(corpus(name, "ChartRun.exit"));
|
|
226
|
-
for (const f of fs.readdirSync(path.join(here, "corpus", name)).sort()) {
|
|
227
|
-
if (!/^verdict-\d+\.out$/.test(f)) continue;
|
|
228
|
-
const messages = [...readMessages(fileLines(corpus(name, f)))];
|
|
229
|
-
const { broke } = readVerdict(messages);
|
|
230
|
-
if (!broke) continue;
|
|
231
|
-
let rule: Rule | undefined;
|
|
232
|
-
for (const r of rules)
|
|
233
|
-
if (r.kind === broke.kind && (broke.kind === "deadlock" || r.name === broke.name)) rule = r;
|
|
234
|
-
if (!rule) continue;
|
|
235
|
-
if (rule.kind === "deadlock" && drawn && !hasSection(spec, "CONSTRAINT", "ACTION_CONSTRAINT"))
|
|
236
|
-
deadEnds(graph, rule);
|
|
237
|
-
const counterexample = readCounterexample(messages);
|
|
238
|
-
if (drawn || lasso(graph, { seq: counterexample, loop: undefined }, names, find))
|
|
239
|
-
addPast(
|
|
240
|
-
graph,
|
|
241
|
-
counterexample,
|
|
242
|
-
names,
|
|
243
|
-
rule,
|
|
244
|
-
past,
|
|
245
|
-
hasSection(spec, "ACTION_CONSTRAINT"),
|
|
246
|
-
find,
|
|
247
|
-
);
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
test("each corpus bug path is the shortest way to its rule", () => {
|
|
252
|
-
const paths: { [rule: string]: string[] } = {};
|
|
253
|
-
for (const name of ["DieHard", "MediaPlayer", "LoginParallel", "TwoPhase", "FirstRule"]) {
|
|
254
|
-
const graph = parseDot(fileLines(corpus(name, "graph.dot")));
|
|
255
|
-
replay(name, graph);
|
|
256
|
-
for (const bug of bugs(graph)) {
|
|
257
|
-
paths[bug.rule.name] = [];
|
|
258
|
-
for (const p of bug.path) paths[bug.rule.name].push(p.action);
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
assert.deepEqual(paths.NotSolved, [
|
|
262
|
-
"FillBig",
|
|
263
|
-
"BigToSmall",
|
|
264
|
-
"EmptySmall",
|
|
265
|
-
"BigToSmall",
|
|
266
|
-
"FillBig",
|
|
267
|
-
"BigToSmall",
|
|
268
|
-
]);
|
|
269
|
-
assert.deepEqual(paths.LoudWhenStopped, ["YouTurnItUp"]);
|
|
270
|
-
assert.equal(paths.SignedInWhileLocked.length, 5);
|
|
271
|
-
assert.equal(paths.TCConsistent.length, 5);
|
|
272
|
-
assert.equal(paths.TCConsistent.at(-1), "RMRcvCommitMsg");
|
|
273
|
-
assert.deepEqual(paths.NotOne, ["Next"]);
|
|
274
|
-
assert.deepEqual(paths.NotOneOrThree, ["Next"]);
|
|
275
|
-
assert.deepEqual(paths.AlsoNotOne, ["Next"]);
|
|
276
|
-
assert.deepEqual(paths.NoDeadlock, ["Next", "Next", "Next"]);
|
|
277
|
-
});
|
|
278
|
-
|
|
279
|
-
test("a chart of only the bug paths words each one with the view, asked once for each state and step", () => {
|
|
280
|
-
const spec = corpusSpec("FirstRule");
|
|
281
|
-
const rules = stateRules(spec);
|
|
282
|
-
const drawn = pathGraph(spec.variables);
|
|
283
|
-
const paths: Bug[] = [];
|
|
284
|
-
for (const f of fs.readdirSync(path.join(here, "corpus", "FirstRule")).sort()) {
|
|
285
|
-
if (!/^verdict-\d+\.out$/.test(f)) continue;
|
|
286
|
-
const messages = [...readMessages(fileLines(corpus("FirstRule", f)))];
|
|
287
|
-
const { broke } = readVerdict(messages);
|
|
288
|
-
for (const rule of rules)
|
|
289
|
-
if (broke?.kind === rule.kind && (broke.kind === "deadlock" || rule.name === broke.name))
|
|
290
|
-
paths.push(drawn.bug(rule, readCounterexample(messages)));
|
|
291
|
-
}
|
|
292
|
-
const asked: { [question: string]: number } = {};
|
|
293
|
-
const count = (question: string) => (asked[question] = (asked[question] ?? 0) + 1);
|
|
294
|
-
const view: View = {
|
|
295
|
-
state: (v) => {
|
|
296
|
-
count(`state ${v.x}`);
|
|
297
|
-
return `x is ${v.x}`;
|
|
298
|
-
},
|
|
299
|
-
step: (action, from, to) => {
|
|
300
|
-
count(`step ${from.x} to ${to.x}`);
|
|
301
|
-
return `${action} adds one`;
|
|
302
|
-
},
|
|
303
|
-
};
|
|
304
|
-
const { report: text, files } = compile(
|
|
305
|
-
{
|
|
306
|
-
spec: { ...spec, folder: "" },
|
|
307
|
-
graph: drawn.graph,
|
|
308
|
-
paths,
|
|
309
|
-
rules: [],
|
|
310
|
-
properties: [],
|
|
311
|
-
exit: 1,
|
|
312
|
-
stop: undefined,
|
|
313
|
-
drawing: undefined,
|
|
314
|
-
states: { distinct: 1234, initial: 1, complete: true, cut: false },
|
|
315
|
-
messages: [],
|
|
316
|
-
},
|
|
317
|
-
checkView(view, inspect),
|
|
318
|
-
);
|
|
319
|
-
assert.match(
|
|
320
|
-
text,
|
|
321
|
-
/^TLC reached 1,234 states, more than the chart budget of 500, so the chart draws only the bug paths: 4 states and 3 arrows\.$/m,
|
|
322
|
-
);
|
|
323
|
-
assert.ok(files.has("chart.mmd"));
|
|
324
|
-
for (const rule of ["NotOne", "NotOneOrThree", "AlsoNotOne"])
|
|
325
|
-
assert.match(
|
|
326
|
-
text,
|
|
327
|
-
new RegExp(`^## ${rule} breaks\\n.*\\n0\\. x is 0\\n1\\. Next adds one: x is 1$`, "m"),
|
|
328
|
-
);
|
|
329
|
-
assert.deepEqual(asked, {
|
|
330
|
-
"state 0": 1,
|
|
331
|
-
"step 0 to 1": 1,
|
|
332
|
-
"state 1": 1,
|
|
333
|
-
"step 1 to 2": 1,
|
|
334
|
-
"state 2": 1,
|
|
335
|
-
"step 2 to 3": 1,
|
|
336
|
-
"state 3": 1,
|
|
337
|
-
});
|
|
338
|
-
});
|
|
339
|
-
|
|
340
|
-
test("the graph that parseDot returns keeps none of the text it read", () => {
|
|
341
|
-
v8.setFlagsFromString("--expose-gc");
|
|
342
|
-
const gc: () => void = vm.runInNewContext("gc");
|
|
343
|
-
const heapUsed = () => {
|
|
344
|
-
gc();
|
|
345
|
-
gc();
|
|
346
|
-
return process.memoryUsage().heapUsed;
|
|
347
|
-
};
|
|
348
|
-
const MiB = 1 << 20;
|
|
349
|
-
const pieces = 16;
|
|
350
|
-
function* dot() {
|
|
351
|
-
for (let i = 0; i < pieces; i++) {
|
|
352
|
-
const id = `-${String(i).padStart(18, "7")}`;
|
|
353
|
-
const lines = [
|
|
354
|
-
`${id} [label="n = ${i}"];`,
|
|
355
|
-
`${id} -> ${id} [label="StayAtStateNumber${i}"];`,
|
|
356
|
-
];
|
|
357
|
-
while (lines.length < 1024) lines.push(`// ${"x".repeat(1020)}`);
|
|
358
|
-
yield* `${lines.join("\n")}\n`.split("\n");
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
const before = heapUsed();
|
|
362
|
-
const graph = parseDot(dot());
|
|
363
|
-
const kept = heapUsed() - before;
|
|
364
|
-
assert.equal(graph.states.size, pieces);
|
|
365
|
-
assert.ok(kept < 4 * MiB, `the graph keeps ${(kept / MiB).toFixed(1)} MiB of ${pieces} MiB read`);
|
|
366
|
-
});
|
|
367
|
-
|
|
368
|
-
test("TLC's marks place on their states even when TLC wraps them over lines", () => {
|
|
369
|
-
const spec = corpusSpec("TwoPhase");
|
|
370
|
-
const out = fs.readFileSync(corpus("TwoPhase", "ChartRun.out"), "utf8");
|
|
371
|
-
const graph = parseDot(fs.readFileSync(corpus("TwoPhase", "graph.dot"), "utf8"));
|
|
372
|
-
assert.equal(
|
|
373
|
-
mark(graph, readMarks(readMessages(out), "chart"), spec.variables, stateRules(spec)).size,
|
|
374
|
-
0,
|
|
375
|
-
);
|
|
376
|
-
const bad: Value[][] = [];
|
|
377
|
-
for (const s of graph.states.values())
|
|
378
|
-
if (s.breaks.length)
|
|
379
|
-
bad.push([field(s.vars.rmState, "r1"), field(s.vars.rmState, "r2")].sort());
|
|
380
|
-
assert.deepEqual(bad, [
|
|
381
|
-
["aborted", "committed"],
|
|
382
|
-
["aborted", "committed"],
|
|
383
|
-
]);
|
|
384
|
-
const cut = out.slice(0, out.indexOf("{r1},"));
|
|
385
|
-
assert.throws(
|
|
386
|
-
() =>
|
|
387
|
-
mark(
|
|
388
|
-
parseDot(fs.readFileSync(corpus("TwoPhase", "graph.dot"), "utf8")),
|
|
389
|
-
readMarks(readMessages(cut), "chart"),
|
|
390
|
-
spec.variables,
|
|
391
|
-
stateRules(spec),
|
|
392
|
-
),
|
|
393
|
-
{
|
|
394
|
-
message: `TLC's output ends inside a marked state, so the command cannot tell which rules it breaks:\n${cut.slice(cut.lastIndexOf('<< "chart",'))}\n`,
|
|
395
|
-
},
|
|
396
|
-
);
|
|
397
|
-
});
|
|
398
|
-
|
|
399
|
-
test("a chart tuple that TLC prints inside one of its messages is not a mark", () => {
|
|
400
|
-
const chart = '<<"chart", <<2>>, {"Bad"}>>';
|
|
401
|
-
const out = [
|
|
402
|
-
chart,
|
|
403
|
-
"@!@!@STARTMSG 2132:1 @!@!@",
|
|
404
|
-
"The first argument of Assert evaluated to FALSE; the second argument was:",
|
|
405
|
-
chart,
|
|
406
|
-
"@!@!@ENDMSG 2132 @!@!@",
|
|
407
|
-
"",
|
|
408
|
-
].join("\n");
|
|
409
|
-
const marks = [...readMarks(readMessages(out), "chart")];
|
|
410
|
-
assert.equal(marks.length, 1);
|
|
411
|
-
assert.deepEqual(marks, [...readMarks(readMessages(`${chart}\n`), "chart")]);
|
|
412
|
-
});
|
|
413
|
-
|
|
414
|
-
test("a line that the spec prints in the shape of a mark is spec output, not a mark", () => {
|
|
415
|
-
const out = [
|
|
416
|
-
'<<"chart", <<2>>, {"Bad"}>>',
|
|
417
|
-
'<< "chart-01234",',
|
|
418
|
-
' <<2>>, {"Bad"}>>',
|
|
419
|
-
'<<"chart-012", 1>>',
|
|
420
|
-
'x <<"chart-0123", <<2>>, {"Bad"}>>',
|
|
421
|
-
'<< "chart-0123",',
|
|
422
|
-
" <<3>>,",
|
|
423
|
-
' {"Bad"} >>',
|
|
424
|
-
"",
|
|
425
|
-
].join("\n");
|
|
426
|
-
assert.deepEqual(
|
|
427
|
-
[...readMarks(readMessages(out), "chart-0123")],
|
|
428
|
-
[{ values: [3], broken: ["Bad"] }],
|
|
429
|
-
);
|
|
430
|
-
});
|
|
431
|
-
|
|
432
|
-
const inv: Rule = { kind: "invariant", name: "Inv" };
|
|
433
|
-
|
|
434
|
-
test("a wrapped mark with a model value named constructor places on its state", () => {
|
|
435
|
-
const graph = graphOf([["s0", { x: parseValue("constructor") }, true]], []);
|
|
436
|
-
assert.equal(
|
|
437
|
-
mark(
|
|
438
|
-
graph,
|
|
439
|
-
readMarks(readMessages('<<"chart",\n<<constructor>>,\n{"Inv"}>>\n'), "chart"),
|
|
440
|
-
["x"],
|
|
441
|
-
[inv],
|
|
442
|
-
).size,
|
|
443
|
-
0,
|
|
444
|
-
);
|
|
445
|
-
assert.deepEqual(graph.states.get("s0")?.breaks, [inv]);
|
|
446
|
-
});
|
|
447
|
-
|
|
448
|
-
test("a tagged line in the wrong shape is an error, not spec output", () => {
|
|
449
|
-
for (const line of [
|
|
450
|
-
'<<"chart", [x |-> 1, y |-> 2], {"Inv"}>>',
|
|
451
|
-
'<<"chart", 1>>',
|
|
452
|
-
'<<"chart", <<1>>, <<"Inv">>>>',
|
|
453
|
-
'<<"chart", <<1>>, {1}>>',
|
|
454
|
-
'<<"chart", <<1>>, {"Inv"}, 2>>',
|
|
455
|
-
])
|
|
456
|
-
assert.throws(
|
|
457
|
-
() => [...readMarks(readMessages(`${line}\n`), "chart")],
|
|
458
|
-
/TLC printed a mark that the command cannot read/,
|
|
459
|
-
line,
|
|
460
|
-
);
|
|
461
|
-
});
|
|
462
|
-
|
|
463
|
-
const ab: View = { state: (v) => ({ A: `a${v.a}`, B: `b${v.b}` }) };
|
|
464
|
-
const bit = (v: Vars) => `${v.a}${v.b}${v.c}`;
|
|
465
|
-
const xorStates: StateRow[] = [];
|
|
466
|
-
const xorSteps: StepRow[] = [];
|
|
467
|
-
for (const a of [0, 1])
|
|
468
|
-
for (const b of [0, 1])
|
|
469
|
-
for (const c of [0, 1]) {
|
|
470
|
-
const v = { a, b, c };
|
|
471
|
-
xorStates.push([bit(v), v, a === 0]);
|
|
472
|
-
if (a === 0 && b !== c) xorSteps.push([bit(v), bit({ ...v, a: 1 }), "Go"]);
|
|
473
|
-
if (b === 0) xorSteps.push([bit(v), bit({ ...v, b: 1 }), "FlipB"]);
|
|
474
|
-
if (c === 0) xorSteps.push([bit(v), bit({ ...v, c: 1 }), "FlipC"]);
|
|
475
|
-
}
|
|
476
|
-
const truthGraphs: { [name: string]: [Graph, View] } = {
|
|
477
|
-
starts: [
|
|
478
|
-
graphOf(
|
|
479
|
-
[
|
|
480
|
-
["x0y0", { x: 0, y: 0 }, true],
|
|
481
|
-
["x1y1", { x: 1, y: 1 }, true],
|
|
482
|
-
["x1y0", { x: 1, y: 0 }],
|
|
483
|
-
],
|
|
484
|
-
[["x0y0", "x1y0", "Step"]],
|
|
485
|
-
),
|
|
486
|
-
{ state: (v) => ({ X: `x${v.x}`, Y: `y${v.y}` }) },
|
|
487
|
-
],
|
|
488
|
-
xor: [
|
|
489
|
-
graphOf(xorStates, xorSteps),
|
|
490
|
-
{ state: (v) => ({ A: `a${v.a}`, B: `b${v.b}`, C: `c${v.c}` }) },
|
|
491
|
-
],
|
|
492
|
-
fork: [
|
|
493
|
-
graphOf(
|
|
494
|
-
[
|
|
495
|
-
["a0b0", { a: 0, b: 0 }, true],
|
|
496
|
-
["a1b1", { a: 1, b: 1 }],
|
|
497
|
-
["a2b2", { a: 2, b: 2 }],
|
|
498
|
-
],
|
|
499
|
-
[
|
|
500
|
-
["a0b0", "a1b1", "Sync"],
|
|
501
|
-
["a0b0", "a2b2", "Sync"],
|
|
502
|
-
],
|
|
503
|
-
),
|
|
504
|
-
ab,
|
|
505
|
-
],
|
|
506
|
-
partial: [
|
|
507
|
-
graphOf(
|
|
508
|
-
[
|
|
509
|
-
["a0b0", { a: 0, b: 0 }, true],
|
|
510
|
-
["a1b1", { a: 1, b: 1 }],
|
|
511
|
-
["a1b0", { a: 1, b: 0 }],
|
|
512
|
-
],
|
|
513
|
-
[
|
|
514
|
-
["a0b0", "a1b1", "Act"],
|
|
515
|
-
["a0b0", "a1b0", "Act"],
|
|
516
|
-
],
|
|
517
|
-
),
|
|
518
|
-
ab,
|
|
519
|
-
],
|
|
520
|
-
lockstep: [
|
|
521
|
-
graphOf(
|
|
522
|
-
[
|
|
523
|
-
["a0b0", { a: 0, b: 0 }, true],
|
|
524
|
-
["a1b1", { a: 1, b: 1 }],
|
|
525
|
-
],
|
|
526
|
-
[["a0b0", "a1b1", "Act"]],
|
|
527
|
-
),
|
|
528
|
-
ab,
|
|
529
|
-
],
|
|
530
|
-
interleaved: [
|
|
531
|
-
graphOf(
|
|
532
|
-
[
|
|
533
|
-
["a0b0", { a: 0, b: 0 }, true],
|
|
534
|
-
["a1b0", { a: 1, b: 0 }],
|
|
535
|
-
["a0b1", { a: 0, b: 1 }],
|
|
536
|
-
["a1b1", { a: 1, b: 1 }],
|
|
537
|
-
],
|
|
538
|
-
[
|
|
539
|
-
["a0b0", "a1b0", "Act"],
|
|
540
|
-
["a0b0", "a0b1", "Act"],
|
|
541
|
-
["a1b0", "a1b1", "Act"],
|
|
542
|
-
["a0b1", "a1b1", "Act"],
|
|
543
|
-
],
|
|
544
|
-
),
|
|
545
|
-
ab,
|
|
546
|
-
],
|
|
547
|
-
};
|
|
548
|
-
|
|
549
|
-
for (const [name, regions] of [
|
|
550
|
-
["starts", false],
|
|
551
|
-
["xor", false],
|
|
552
|
-
["fork", false],
|
|
553
|
-
["partial", false],
|
|
554
|
-
["lockstep", true],
|
|
555
|
-
["interleaved", true],
|
|
556
|
-
] satisfies [string, boolean][]) {
|
|
557
|
-
test(`${name}: the chart uses regions only when they show the model's moves exactly`, () => {
|
|
558
|
-
const { chart, report: text } = draw(...truthGraphs[name]);
|
|
559
|
-
assert.equal(chart.includes('state "At the same time"'), regions);
|
|
560
|
-
assert.equal(/So the chart draws parent states in place of regions\.$/m.test(text), !regions);
|
|
561
|
-
});
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
test("the report says why regions cannot show a shared step that forks", () => {
|
|
565
|
-
assert.match(
|
|
566
|
-
draw(...truthGraphs.fork).report,
|
|
567
|
-
/^The regions chart lets A a0, B b0 go to A a1, B b2 by Sync, which the model never does\./m,
|
|
568
|
-
);
|
|
569
|
-
});
|
|
570
|
-
|
|
571
|
-
const forkToBug = graphOf(
|
|
572
|
-
[
|
|
573
|
-
["a0b0", { a: 0, b: 0 }, true],
|
|
574
|
-
["a1b1", { a: 1, b: 1 }],
|
|
575
|
-
["a2b2", { a: 2, b: 2 }, false, ["Safe"]],
|
|
576
|
-
],
|
|
577
|
-
[
|
|
578
|
-
["a0b0", "a1b1", "Sync"],
|
|
579
|
-
["a0b0", "a2b2", "Sync"],
|
|
580
|
-
],
|
|
581
|
-
);
|
|
582
|
-
|
|
583
|
-
test("a chart that draws parent states in place of regions still names each region in a bug path", () => {
|
|
584
|
-
const { chart, report: text } = draw(forkToBug, ab);
|
|
585
|
-
assert.match(chart, /^ {2}state "A a2" as s\d+ \{$/m);
|
|
586
|
-
assert.match(text, /^0\. A a0, B b0\n1\. Sync: A a2, B b2$/m);
|
|
587
|
-
});
|
|
588
|
-
|
|
589
|
-
test("the view answers once for each state and step, so a chart of parent states agrees with its report", () => {
|
|
590
|
-
const asked: { [question: string]: number } = {};
|
|
591
|
-
const answer = (question: string) => {
|
|
592
|
-
asked[question] = (asked[question] ?? 0) + 1;
|
|
593
|
-
return asked[question] === 1 ? "first" : "later";
|
|
594
|
-
};
|
|
595
|
-
const { chart, report: text } = draw(forkToBug, {
|
|
596
|
-
state: (v) => {
|
|
597
|
-
const word = answer(`state ${v.a}`);
|
|
598
|
-
return { A: `a${v.a} ${word}`, B: `b${v.b}` };
|
|
599
|
-
},
|
|
600
|
-
step: (action, from, to) => `${action} ${answer(`step ${from.a} to ${to.a}`)}`,
|
|
601
|
-
group: (v) => (answer(`group ${v.a}`) === "first" ? "Calm" : "Busy"),
|
|
602
|
-
colors: { Calm: "blue", Busy: "orange" },
|
|
603
|
-
});
|
|
604
|
-
assert.match(chart, /^ {2}state "A a2 first" as s\d+ \{$/m);
|
|
605
|
-
assert.doesNotMatch(chart, /later|orange/);
|
|
606
|
-
assert.match(text, /^0\. A a0 first, B b0\n1\. Sync first: A a2 first, B b2$/m);
|
|
607
|
-
assert.deepEqual(asked, {
|
|
608
|
-
"state 0": 1,
|
|
609
|
-
"state 1": 1,
|
|
610
|
-
"state 2": 1,
|
|
611
|
-
"step 0 to 1": 1,
|
|
612
|
-
"step 0 to 2": 1,
|
|
613
|
-
"group 0": 1,
|
|
614
|
-
"group 1": 1,
|
|
615
|
-
"group 2": 1,
|
|
616
|
-
});
|
|
617
|
-
});
|
|
618
|
-
|
|
619
|
-
test("a region state is marked when every combination with it can break a rule", () => {
|
|
620
|
-
const graph = graphOf(
|
|
621
|
-
[
|
|
622
|
-
["a0b0", { a: 0, b: 0 }, true],
|
|
623
|
-
["a1b0", { a: 1, b: 0 }],
|
|
624
|
-
["a2b0", { a: 2, b: 0 }, false, ["Safe"]],
|
|
625
|
-
["a2b1", { a: 2, b: 1 }, false, ["Safe"]],
|
|
626
|
-
["a0b1", { a: 0, b: 1 }],
|
|
627
|
-
],
|
|
628
|
-
[
|
|
629
|
-
["a0b0", "a1b0", "Go"],
|
|
630
|
-
["a1b0", "a2b0", "Go"],
|
|
631
|
-
["a2b0", "a2b1", "Flip"],
|
|
632
|
-
["a0b0", "a0b1", "Flip"],
|
|
633
|
-
],
|
|
634
|
-
);
|
|
635
|
-
assert.deepEqual(marked(draw(graph, ab).chart), { a2: "breaks" });
|
|
636
|
-
});
|
|
637
|
-
|
|
638
|
-
test("a combination that breaks a rule marks its states when no state of it has a mark", () => {
|
|
639
|
-
const graph = graphOf(
|
|
640
|
-
[
|
|
641
|
-
["a0b0", { a: 0, b: 0 }, true],
|
|
642
|
-
["a1b0", { a: 1, b: 0 }],
|
|
643
|
-
["a0b1", { a: 0, b: 1 }],
|
|
644
|
-
["a1b1", { a: 1, b: 1 }, false, ["Safe"]],
|
|
645
|
-
],
|
|
646
|
-
[
|
|
647
|
-
["a0b0", "a1b0", "GoA"],
|
|
648
|
-
["a0b0", "a0b1", "GoB"],
|
|
649
|
-
["a1b0", "a1b1", "GoB"],
|
|
650
|
-
["a0b1", "a1b1", "GoA"],
|
|
651
|
-
],
|
|
652
|
-
);
|
|
653
|
-
assert.deepEqual(marked(draw(graph, ab).chart), { a1: "mayBreak", b1: "mayBreak" });
|
|
654
|
-
});
|
|
655
|
-
|
|
656
|
-
test("a bug-path step that stays in one state is a loop in a flat chart only", () => {
|
|
657
|
-
const graph = graphOf(
|
|
658
|
-
[
|
|
659
|
-
["s0", { x: 0, y: 0 }, true],
|
|
660
|
-
["s1", { x: 0, y: 1 }, false, ["Safe"]],
|
|
661
|
-
["s2", { x: 1, y: 0 }],
|
|
662
|
-
],
|
|
663
|
-
[
|
|
664
|
-
["s0", "s1", "Tick"],
|
|
665
|
-
["s0", "s2", "Move"],
|
|
666
|
-
],
|
|
667
|
-
);
|
|
668
|
-
const flat = draw(graph, { state: (v) => `x${v.x}` });
|
|
669
|
-
assert.match(flat.chart, /^ {2}(s\d+) --> \1: Tick$/m);
|
|
670
|
-
assert.doesNotMatch(flat.report, /does not draw/);
|
|
671
|
-
const regions = draw(graph, { state: (v) => ({ X: `x${v.x}`, Z: "z" }) });
|
|
672
|
-
assert.doesNotMatch(regions.chart, /Tick/);
|
|
673
|
-
assert.match(regions.report, /^The chart does not draw 1 steps that stay in one chart state\.$/m);
|
|
674
|
-
});
|
|
675
|
-
|
|
676
|
-
test("a step that leaves every child of a parent the same way is one arrow from the parent", () => {
|
|
677
|
-
const graph = graphOf(
|
|
678
|
-
[
|
|
679
|
-
["x", { at: "Open.x" }, true],
|
|
680
|
-
["y", { at: "Open.y" }],
|
|
681
|
-
["done", { at: "Closed" }],
|
|
682
|
-
],
|
|
683
|
-
[
|
|
684
|
-
["x", "y", "Next"],
|
|
685
|
-
["x", "done", "Quit"],
|
|
686
|
-
["y", "done", "Quit"],
|
|
687
|
-
],
|
|
688
|
-
);
|
|
689
|
-
const { chart } = draw(graph, { state: (v) => String(v.at).split(".") });
|
|
690
|
-
const open = chart.match(/^ {2}state "Open" as (s\d+) \{$/m)?.[1];
|
|
691
|
-
const closed = chart.match(/^ {2}(s\d+): Closed$/m)?.[1];
|
|
692
|
-
const quits = [];
|
|
693
|
-
for (const m of chart.matchAll(/^ {2}(s\d+) --> (s\d+): Quit$/gm)) quits.push([m[1], m[2]]);
|
|
694
|
-
assert.deepEqual(quits, [[open, closed]]);
|
|
695
|
-
});
|
|
696
|
-
|
|
697
|
-
test("a parent's only way in ends at the parent, and its start marker goes on to each state with that step's label", () => {
|
|
698
|
-
const graph = graphOf(
|
|
699
|
-
[
|
|
700
|
-
["ask", { at: "Asking" }, true],
|
|
701
|
-
["flat", { at: "Layout.Flat" }],
|
|
702
|
-
["parents", { at: "Layout.Parents" }],
|
|
703
|
-
["drawn", { at: "Done.Drawn" }],
|
|
704
|
-
],
|
|
705
|
-
[
|
|
706
|
-
["ask", "flat", "String"],
|
|
707
|
-
["ask", "parents", "Array"],
|
|
708
|
-
["flat", "drawn", "Draw"],
|
|
709
|
-
],
|
|
710
|
-
);
|
|
711
|
-
const { chart } = draw(graph, { state: (v) => String(v.at).split(".") });
|
|
712
|
-
assert.deepEqual(drawn(chart).arrows.sort(), [
|
|
713
|
-
"Asking --> Layout",
|
|
714
|
-
"Done start --> Drawn",
|
|
715
|
-
"Flat --> Done: Draw",
|
|
716
|
-
"Layout start --> Flat: String",
|
|
717
|
-
"Layout start --> Parents: Array",
|
|
718
|
-
]);
|
|
719
|
-
});
|
|
720
|
-
|
|
721
|
-
test("a parent that two states lead into keeps an arrow from each, since one start marker cannot say where each came from", () => {
|
|
722
|
-
const graph = graphOf(
|
|
723
|
-
[
|
|
724
|
-
["a", { at: "A" }, true],
|
|
725
|
-
["b", { at: "B" }],
|
|
726
|
-
["p", { at: "P.p" }],
|
|
727
|
-
["q", { at: "P.q" }],
|
|
728
|
-
],
|
|
729
|
-
[
|
|
730
|
-
["a", "b", "Go"],
|
|
731
|
-
["a", "p", "Left"],
|
|
732
|
-
["b", "q", "Right"],
|
|
733
|
-
],
|
|
734
|
-
);
|
|
735
|
-
const { chart } = draw(graph, { state: (v) => String(v.at).split(".") });
|
|
736
|
-
assert.deepEqual(drawn(chart).arrows.sort(), ["A --> B: Go", "A --> p: Left", "B --> q: Right"]);
|
|
737
|
-
});
|
|
738
|
-
|
|
739
|
-
test("a label codes only the characters that Mermaid reads as syntax, so TLA+ values stay as TLC prints them", () => {
|
|
740
|
-
const graph = graphOf(
|
|
741
|
-
[
|
|
742
|
-
["s0", { n: 0 }, true],
|
|
743
|
-
["s1", { n: 1 }],
|
|
744
|
-
],
|
|
745
|
-
[["s0", "s1", "Go"]],
|
|
746
|
-
);
|
|
747
|
-
const { chart } = draw(graph, {
|
|
748
|
-
state: (v) => (v.n ? 'x: "1";\nnext' : "a <b> #2"),
|
|
749
|
-
step: () => 'say: <<1, "a">> :> [k |-> {}] @@ 2..3',
|
|
750
|
-
});
|
|
751
|
-
assert.match(chart, /^ {2}s\d+: a #60;b> #35;2$/m);
|
|
752
|
-
assert.match(chart, /^ {2}s\d+: x: "1"#59; next$/m);
|
|
753
|
-
assert.match(chart, /^ {2}s\d+ --> s\d+: say: <<1, "a">> :> \[k \|-> \{\}\] @@ 2\.\.3$/m);
|
|
754
|
-
});
|
|
755
|
-
|
|
756
|
-
test("a label with %% stays text and cannot open a Mermaid directive", () => {
|
|
757
|
-
const graph = graphOf(
|
|
758
|
-
[
|
|
759
|
-
["s0", { n: 0 }, true],
|
|
760
|
-
["s1", { n: 1 }],
|
|
761
|
-
],
|
|
762
|
-
[["s0", "s1", "Go"]],
|
|
763
|
-
);
|
|
764
|
-
const { chart } = draw(graph, {
|
|
765
|
-
state: (v) => (v.n ? "%%{init: {}}%%" : "a %%{ b"),
|
|
766
|
-
step: () => "%% go",
|
|
767
|
-
});
|
|
768
|
-
assert.doesNotMatch(chart, /%%/);
|
|
769
|
-
assert.match(chart, /^ {2}s\d+: a #37;%\{ b$/m);
|
|
770
|
-
assert.match(chart, /^ {2}s\d+: #37;%\{init: \{\}\}#37;%$/m);
|
|
771
|
-
assert.match(chart, /^ {2}s\d+ --> s\d+: #37;% go$/m);
|
|
772
|
-
});
|
|
773
|
-
|
|
774
|
-
test("each line break in a label or a colors key is a space, so it cannot start a chart line", () => {
|
|
775
|
-
const graph = graphOf(
|
|
776
|
-
[
|
|
777
|
-
["s0", { n: 0 }, true],
|
|
778
|
-
["s1", { n: 1 }],
|
|
779
|
-
],
|
|
780
|
-
[["s0", "s1", "Go"]],
|
|
781
|
-
);
|
|
782
|
-
const { chart } = draw(graph, {
|
|
783
|
-
state: (v) => (v.n ? "b\r\n\r\v\f\u0085\u2028\u2029\tc" : "a"),
|
|
784
|
-
step: () => "go\r s9: Ghost",
|
|
785
|
-
group: (v) => (v.n ? "Shut\r s99: Ghost state" : "Open"),
|
|
786
|
-
colors: { Open: "blue", "Shut\r s99: Ghost state": "pink" },
|
|
787
|
-
});
|
|
788
|
-
assert.doesNotMatch(chart, /[\r\v\f\u0085\u2028\u2029\t]/);
|
|
789
|
-
assert.match(chart, /^ {2}s\d+: b {9}c$/m);
|
|
790
|
-
assert.match(chart, /^ {2}s\d+ --> s\d+: go {3}s9: Ghost$/m);
|
|
791
|
-
assert.match(chart, /^ {4}lg1: Shut {3}s99: Ghost state$/m);
|
|
792
|
-
assert.doesNotMatch(chart, /^\s*s9{1,2}:/m);
|
|
793
|
-
});
|
|
794
|
-
|
|
795
|
-
test("a label of only white space or with a lone surrogate still has text in the chart", () => {
|
|
796
|
-
const graph = graphOf(
|
|
797
|
-
[
|
|
798
|
-
["s0", { n: 0 }, true],
|
|
799
|
-
["s1", { n: 1 }],
|
|
800
|
-
],
|
|
801
|
-
[["s0", "s1", "Go"]],
|
|
802
|
-
);
|
|
803
|
-
const { chart } = draw(graph, {
|
|
804
|
-
state: (v) => (v.n ? "a\ud800b" : "\t"),
|
|
805
|
-
step: () => " ",
|
|
806
|
-
});
|
|
807
|
-
assert.match(chart, /^ {2}s\d+: #32;$/m);
|
|
808
|
-
assert.match(chart, /^ {2}s\d+: a#65533;b$/m);
|
|
809
|
-
assert.match(chart, /^ {2}s\d+ --> s\d+: #32;$/m);
|
|
810
|
-
});
|
|
811
|
-
|
|
812
|
-
test("NUL and C1 controls in a label are left out, since a browser draws their character references as other characters", () => {
|
|
813
|
-
const graph = graphOf(
|
|
814
|
-
[
|
|
815
|
-
["s0", { n: 0 }, true],
|
|
816
|
-
["s1", { n: 1 }],
|
|
817
|
-
],
|
|
818
|
-
[["s0", "s1", "Go"]],
|
|
819
|
-
);
|
|
820
|
-
const { chart } = draw(graph, {
|
|
821
|
-
state: (v) => (v.n ? ["P\0\x80", "C\u00004Dynamic"] : "\0\x9f"),
|
|
822
|
-
step: () => "a\0\x80b\x85c\x9fd",
|
|
823
|
-
});
|
|
824
|
-
assert.doesNotMatch(chart, /[\0\x80-\x9f]|#0;|#1[2-5]\d;/);
|
|
825
|
-
assert.match(chart, /^ {2}s\d+: #32;$/m);
|
|
826
|
-
assert.match(chart, /^ {2}state "P" as s\d+ \{$/m);
|
|
827
|
-
assert.match(chart, /^ {4}s\d+: C#52;Dynamic$/m);
|
|
828
|
-
assert.match(chart, /^ {2}s\d+ --> s\d+: ab cd$/m);
|
|
829
|
-
});
|
|
830
|
-
|
|
831
|
-
test("a label puts a word joiner inside fl° and ¶ß, since Mermaid decodes a label's text a second time", () => {
|
|
832
|
-
const graph = graphOf(
|
|
833
|
-
[
|
|
834
|
-
["s0", { n: 0 }, true],
|
|
835
|
-
["s1", { n: 1 }],
|
|
836
|
-
],
|
|
837
|
-
[["s0", "s1", "Go"]],
|
|
838
|
-
);
|
|
839
|
-
const { chart } = draw(graph, {
|
|
840
|
-
state: (v) => (v.n ? ["fl\0°lt¶ß", "x"] : "fl°°65¶ßstateß"),
|
|
841
|
-
step: () => "fl ° ¶ ß",
|
|
842
|
-
});
|
|
843
|
-
assert.match(chart, /^ {2}s\d+: fl#8288;#176;#176;65#182;#8288;ßstateß$/m);
|
|
844
|
-
assert.match(chart, /^ {2}state "fl#8288;#176;lt#182;#8288;ß" as s\d+ \{$/m);
|
|
845
|
-
assert.match(chart, /^ {2}s\d+ --> s\d+: fl #176; #182; ß$/m);
|
|
846
|
-
});
|
|
847
|
-
|
|
848
|
-
test('a label puts a word joiner inside marker-end=", since Mermaid rewrites marker-end="url(…# in the drawn SVG', () => {
|
|
849
|
-
const graph = graphOf(
|
|
850
|
-
[
|
|
851
|
-
["s0", { n: 0 }, true],
|
|
852
|
-
["s1", { n: 1 }],
|
|
853
|
-
],
|
|
854
|
-
[["s0", "s1", "Go"]],
|
|
855
|
-
);
|
|
856
|
-
const { chart } = draw(graph, {
|
|
857
|
-
title: 'marker-end="url(a#b',
|
|
858
|
-
state: (v) => (v.n ? ['marker-end="url(p#q', "x"] : 'marker-end="url(a#b'),
|
|
859
|
-
step: () => 'a="b" = "c"',
|
|
860
|
-
});
|
|
861
|
-
assert.match(chart, /^title: "marker-end=fl°°8288¶ß\\"url\(afl°°35¶ßb"$/m);
|
|
862
|
-
assert.match(chart, /^ {2}s\d+: marker-end=#8288;"url\(a#35;b$/m);
|
|
863
|
-
assert.match(chart, /^ {2}state "marker-end=#8288;#34;url\(p#35;q" as s\d+ \{$/m);
|
|
864
|
-
assert.match(chart, /^ {2}s\d+ --> s\d+: a="b" = "c"$/m);
|
|
865
|
-
});
|
|
866
|
-
|
|
867
|
-
test("a parent or region name with [[fork]], [[join]], or [[choice]] stays text", () => {
|
|
868
|
-
const nested = graphOf(
|
|
869
|
-
[
|
|
870
|
-
["x", { n: 0 }, true],
|
|
871
|
-
["y", { n: 1 }],
|
|
872
|
-
],
|
|
873
|
-
[["x", "y", "Go"]],
|
|
874
|
-
);
|
|
875
|
-
const parents = draw(nested, {
|
|
876
|
-
state: (v) => [["a [[fork]]", "[[JOIN]]"][Number(v.n)], "In"],
|
|
877
|
-
}).chart;
|
|
878
|
-
assert.match(parents, /^ {2}state "a #91;\[fork\]\]" as s\d+ \{$/m);
|
|
879
|
-
assert.match(parents, /^ {2}state "#91;\[JOIN\]\]" as s\d+ \{$/m);
|
|
880
|
-
const parallel = graphOf(
|
|
881
|
-
[
|
|
882
|
-
["s0", { x: 0, y: 0 }, true],
|
|
883
|
-
["s1", { x: 1, y: 0 }],
|
|
884
|
-
],
|
|
885
|
-
[["s0", "s1", "GoX"]],
|
|
886
|
-
);
|
|
887
|
-
const regions = draw(parallel, {
|
|
888
|
-
state: (v) => ({ "[[choice]]": `X${v.x}`, Other: `Y${v.y}` }),
|
|
889
|
-
}).chart;
|
|
890
|
-
assert.match(regions, /^ {4}state "#91;\[choice\]\]" as r0 \{$/m);
|
|
891
|
-
assert.doesNotMatch(parents + regions, /\[\[/);
|
|
892
|
-
});
|
|
893
|
-
|
|
894
|
-
test("a label with C4Container, C4Component, C4Dynamic, or C4Deployment keeps the chart a state diagram", () => {
|
|
895
|
-
const graph = graphOf(
|
|
896
|
-
[
|
|
897
|
-
["s0", { n: 0 }, true],
|
|
898
|
-
["s1", { n: 1 }],
|
|
899
|
-
],
|
|
900
|
-
[["s0", "s1", "Go"]],
|
|
901
|
-
);
|
|
902
|
-
const { chart } = draw(graph, {
|
|
903
|
-
state: (v) => (v.n ? ["C4Component", "C4Deployment"] : "aC4Dynamic"),
|
|
904
|
-
step: () => "C4Container C4Context",
|
|
905
|
-
});
|
|
906
|
-
assert.doesNotMatch(chart, /C4(?:Container|Component|Dynamic|Deployment)/);
|
|
907
|
-
assert.match(chart, /^ {2}s\d+: aC#52;Dynamic$/m);
|
|
908
|
-
assert.match(chart, /^ {2}state "C#52;Component" as s\d+ \{$/m);
|
|
909
|
-
assert.match(chart, /^ {4}s\d+: C#52;Deployment$/m);
|
|
910
|
-
assert.match(chart, /^ {2}s\d+ --> s\d+: C#52;Container C4Context$/m);
|
|
911
|
-
});
|
|
912
|
-
|
|
913
|
-
test("a title with < cannot open an HTML tag that rewrites the chart's quotes", () => {
|
|
914
|
-
const graph = graphOf(
|
|
915
|
-
[
|
|
916
|
-
["s0", { n: 0 }, true],
|
|
917
|
-
["s1", { n: 1 }],
|
|
918
|
-
],
|
|
919
|
-
[["s0", "s1", "Go"]],
|
|
920
|
-
);
|
|
921
|
-
const { chart } = draw(graph, { title: "<a=", state: (v) => ["P", `S${v.n}`] });
|
|
922
|
-
assert.doesNotMatch(chart, /</);
|
|
923
|
-
assert.match(chart, /^title: "fl°°60¶ßa="$/m);
|
|
924
|
-
assert.match(chart, /^ {2}state "P" as s\d+ \{$/m);
|
|
925
|
-
});
|
|
926
|
-
|
|
927
|
-
test("the title writes each character outside the allow list in the form Mermaid decodes in a title", () => {
|
|
928
|
-
const graph = graphOf(
|
|
929
|
-
[
|
|
930
|
-
["s0", { n: 0 }, true],
|
|
931
|
-
["s1", { n: 1 }],
|
|
932
|
-
],
|
|
933
|
-
[["s0", "s1", "Go"]],
|
|
934
|
-
);
|
|
935
|
-
const state = (v: Vars) => `S${v.n}`;
|
|
936
|
-
const title = (t: string) =>
|
|
937
|
-
draw(graph, { title: t, state }).chart.match(/^---\ntitle: (.*)\n---\n/)?.[1];
|
|
938
|
-
assert.equal(title("Queue<T> for AT&T"), '"Queuefl°°60¶ßT> for ATfl°°38¶ßT"');
|
|
939
|
-
assert.equal(title("fl°°65¶ß"), '"flfl°°8288¶ßfl°°176¶ßfl°°176¶ß65fl°°182¶ßfl°°8288¶ßß"');
|
|
940
|
-
assert.equal(title('a\0b\x80\n"c"'), '"ab \\"c\\""');
|
|
941
|
-
const blank = draw(graph, { title: "\0\0", state }).chart;
|
|
942
|
-
assert.doesNotMatch(blank, /\0|^---$|^title:/m);
|
|
943
|
-
assert.match(blank, /^stateDiagram-v2$/m);
|
|
944
|
-
});
|
|
945
|
-
|
|
946
|
-
test("labels write the space between direction and LR, RL, TB, or BT as #32;", () => {
|
|
947
|
-
const graph = graphOf(
|
|
948
|
-
[
|
|
949
|
-
["s0", { n: 0 }, true],
|
|
950
|
-
["s1", { n: 1 }],
|
|
951
|
-
["s2", { n: 2 }],
|
|
952
|
-
["s3", { n: 3 }],
|
|
953
|
-
],
|
|
954
|
-
[
|
|
955
|
-
["s0", "s1", "Turn"],
|
|
956
|
-
["s1", "s2", "Back"],
|
|
957
|
-
["s2", "s3", "Go"],
|
|
958
|
-
],
|
|
959
|
-
);
|
|
960
|
-
const steps: { [action: string]: string } = {
|
|
961
|
-
Turn: "turn direction LR",
|
|
962
|
-
Back: "back direction rl",
|
|
963
|
-
Go: "go",
|
|
964
|
-
};
|
|
965
|
-
const { chart } = draw(graph, {
|
|
966
|
-
state: (v) =>
|
|
967
|
-
["Idle", "Facing direction TB", "Redirection\tlrx", "Up DIRECTION BT"][Number(v.n)],
|
|
968
|
-
step: (a) => steps[a],
|
|
969
|
-
});
|
|
970
|
-
assert.doesNotMatch(chart, /direction\s+(?:LR|RL|TB|BT)/i);
|
|
971
|
-
assert.match(chart, /^ {2}s\d+: Facing direction#32;TB$/m);
|
|
972
|
-
assert.match(chart, /^ {2}s\d+: Redirection#32;lrx$/m);
|
|
973
|
-
assert.match(chart, /^ {2}s\d+: Up DIRECTION#32;BT$/m);
|
|
974
|
-
assert.match(chart, /^ {2}s\d+ --> s\d+: turn direction#32;LR$/m);
|
|
975
|
-
assert.match(chart, /^ {2}s\d+ --> s\d+: back direction#32;rl$/m);
|
|
976
|
-
});
|
|
977
|
-
|
|
978
|
-
test("a view that cannot give a chart says what to change", () => {
|
|
979
|
-
const graph = graphOf(
|
|
980
|
-
[
|
|
981
|
-
["p", { x: "A" }, true],
|
|
982
|
-
["q", { x: "A.B" }],
|
|
983
|
-
],
|
|
984
|
-
[["p", "q", "Go"]],
|
|
985
|
-
);
|
|
986
|
-
assert.throws(
|
|
987
|
-
() => draw(graph, { state: (v) => String(v.x).split(".") }),
|
|
988
|
-
/both as a state and as a parent state/,
|
|
989
|
-
);
|
|
990
|
-
assert.throws(
|
|
991
|
-
() => draw(graph, { state: (v) => (v.x === "A" ? { R: "x" } : { S: "y" }) }),
|
|
992
|
-
/Return the same regions for every state/,
|
|
993
|
-
);
|
|
994
|
-
assert.throws(() => draw(graph, { state: () => [] }), /Return a string, an array of strings/);
|
|
995
|
-
});
|
|
996
|
-
|
|
997
|
-
const keyGraph = () =>
|
|
998
|
-
graphOf(
|
|
999
|
-
[
|
|
1000
|
-
["idle", { pos: "idle", key: parseValue("[on |-> FALSE, at |-> 0]") }, true],
|
|
1001
|
-
["waitKeyOff", { pos: "wait", key: parseValue("[on |-> FALSE, at |-> 0]") }],
|
|
1002
|
-
["waitKeyOn", { pos: "wait", key: parseValue("[on |-> TRUE, at |-> 0]") }],
|
|
1003
|
-
["done", { pos: "done", key: parseValue("[on |-> TRUE, at |-> 0]") }],
|
|
1004
|
-
],
|
|
1005
|
-
[
|
|
1006
|
-
["idle", "waitKeyOff", "Go"],
|
|
1007
|
-
["idle", "waitKeyOn", "GoKey"],
|
|
1008
|
-
["waitKeyOff", "waitKeyOff", "Tick"],
|
|
1009
|
-
["waitKeyOff", "idle", "Back"],
|
|
1010
|
-
["waitKeyOn", "done", "Open"],
|
|
1011
|
-
],
|
|
1012
|
-
);
|
|
1013
|
-
const keyState = (header: string, pos: string) => ({
|
|
1014
|
-
code: EC.TLC_STATE_PRINT2,
|
|
1015
|
-
level: LEVEL.STATE,
|
|
1016
|
-
body: [header, `/\\ pos = "${pos}"`, "/\\ key = [at |-> 0, on |-> FALSE]", ""],
|
|
1017
|
-
});
|
|
1018
|
-
const keyTrace = () =>
|
|
1019
|
-
readTrace([
|
|
1020
|
-
keyState("1: <Initial predicate>", "idle"),
|
|
1021
|
-
keyState("2: <Go line 9, col 3 to line 9, col 20 of module Key>", "wait"),
|
|
1022
|
-
{ code: EC.TLC_STATE_PRINT3, level: LEVEL.STATE, body: ["3: Stuttering"] },
|
|
1023
|
-
]);
|
|
1024
|
-
|
|
1025
|
-
test("a loop's trace finds its states when TLC prints record fields in another order", () => {
|
|
1026
|
-
const graph = keyGraph();
|
|
1027
|
-
const bug = lasso(graph, keyTrace(), ["pos", "key"]);
|
|
1028
|
-
assert.ok(bug);
|
|
1029
|
-
assert.equal(bug.start, "idle");
|
|
1030
|
-
const moves = [];
|
|
1031
|
-
for (const p of bug.path) moves.push([p.action, p.state]);
|
|
1032
|
-
assert.deepEqual(moves, [["Go", "waitKeyOff"]]);
|
|
1033
|
-
assert.equal(bug.loop, 1);
|
|
1034
|
-
assert.equal(bug.stutters, true);
|
|
1035
|
-
});
|
|
1036
|
-
|
|
1037
|
-
test("a view may hide a step inside a loop, but not a step out of it", () => {
|
|
1038
|
-
const graph = keyGraph();
|
|
1039
|
-
const found = lasso(graph, keyTrace(), ["pos", "key"]);
|
|
1040
|
-
assert.ok(found);
|
|
1041
|
-
const loop: Bug = { rule: { kind: "property", name: "Opens" }, ...found };
|
|
1042
|
-
const state = (v: Vars) => `${v.pos}, key ${field(v.key, "on") ? "on" : "off"}`;
|
|
1043
|
-
const { report } = draw(graph, { state, step: (a) => (a === "Tick" ? null : a) }, [loop]);
|
|
1044
|
-
assert.match(report, /^The run stops in "wait, key off" forever\.$/m);
|
|
1045
|
-
assert.throws(
|
|
1046
|
-
() => draw(graph, { state, step: (a) => (a === "Back" ? null : a) }, [loop]),
|
|
1047
|
-
/the step Back that changes pos\. It is on the path to the Opens bug or leaves its loop/,
|
|
1048
|
-
);
|
|
1049
|
-
});
|
|
1050
|
-
|
|
1051
|
-
test("a loop that passes one state twice names it once", () => {
|
|
1052
|
-
const graph = graphOf(
|
|
1053
|
-
[
|
|
1054
|
-
["a", { pos: "a" }, true],
|
|
1055
|
-
["b", { pos: "b" }],
|
|
1056
|
-
["c", { pos: "c" }],
|
|
1057
|
-
],
|
|
1058
|
-
[
|
|
1059
|
-
["a", "b", "Up"],
|
|
1060
|
-
["b", "a", "Down"],
|
|
1061
|
-
["a", "c", "Side"],
|
|
1062
|
-
["c", "a", "Back"],
|
|
1063
|
-
],
|
|
1064
|
-
);
|
|
1065
|
-
const path: PathStep[] = [];
|
|
1066
|
-
for (const [from, to] of ["ab", "ba", "ac", "ca"]) {
|
|
1067
|
-
let step: Step | undefined;
|
|
1068
|
-
for (const t of graph.steps)
|
|
1069
|
-
if (t.from === from && t.to === to) {
|
|
1070
|
-
step = t;
|
|
1071
|
-
break;
|
|
1072
|
-
}
|
|
1073
|
-
assert.ok(step);
|
|
1074
|
-
path.push({ action: step.action, state: to, step });
|
|
1075
|
-
}
|
|
1076
|
-
const loop: Bug = {
|
|
1077
|
-
rule: { kind: "property", name: "Settles" },
|
|
1078
|
-
start: "a",
|
|
1079
|
-
path,
|
|
1080
|
-
loop: 0,
|
|
1081
|
-
stutters: false,
|
|
1082
|
-
};
|
|
1083
|
-
const { report } = draw(graph, { state: (v) => v.pos }, [loop]);
|
|
1084
|
-
assert.match(report, /^The run loops through "a", "b" and "c" forever\.$/m);
|
|
1085
|
-
});
|
|
1086
|
-
|
|
1087
|
-
test("a chart that draws a way out of a loop that the loop cannot take stops the command", () => {
|
|
1088
|
-
const graph = keyGraph();
|
|
1089
|
-
const found = lasso(graph, keyTrace(), ["pos", "key"]);
|
|
1090
|
-
assert.ok(found);
|
|
1091
|
-
const loop: Bug = { rule: { kind: "property", name: "Opens" }, ...found };
|
|
1092
|
-
assert.throws(
|
|
1093
|
-
() => draw(graph, { state: (v) => v.pos }, [loop]),
|
|
1094
|
-
/draws the step Open out of wait, but the Opens loop cannot take it there/,
|
|
1095
|
-
);
|
|
1096
|
-
const { chart } = draw(
|
|
1097
|
-
graph,
|
|
1098
|
-
{ state: (v) => `${v.pos}, key ${field(v.key, "on") ? "on" : "off"}` },
|
|
1099
|
-
[loop],
|
|
1100
|
-
);
|
|
1101
|
-
const wait = chart.match(/^ {2}(s\d+): wait, key off$/m)?.[1];
|
|
1102
|
-
assert.match(chart, new RegExp(`^ {2}class ${wait} repeats$`, "m"));
|
|
1103
|
-
});
|
|
1104
|
-
|
|
1105
|
-
test("a region named __proto__ is a region like any other", () => {
|
|
1106
|
-
const graph = graphOf(
|
|
1107
|
-
[
|
|
1108
|
-
["s0", { x: 0, y: 0 }, true],
|
|
1109
|
-
["s1", { x: 1, y: 0 }],
|
|
1110
|
-
["s2", { x: 0, y: 1 }],
|
|
1111
|
-
],
|
|
1112
|
-
[
|
|
1113
|
-
["s0", "s1", "GoX"],
|
|
1114
|
-
["s0", "s2", "GoY"],
|
|
1115
|
-
],
|
|
1116
|
-
);
|
|
1117
|
-
const { chart } = draw(graph, {
|
|
1118
|
-
state: (v): unknown => JSON.parse(`{"__proto__": "X${v.x}", "Other": "Y${v.y}"}`),
|
|
1119
|
-
});
|
|
1120
|
-
assert.match(chart, /^ {4}state "#95;#95;proto#95;#95;" as r0 \{$/m);
|
|
1121
|
-
assert.match(chart, /^ {6}s0 --> s1: GoX \[when Y0\]$/m);
|
|
1122
|
-
assert.match(chart, /^ {4}state "Other" as r1 \{$/m);
|
|
1123
|
-
});
|
|
1124
|
-
|
|
1125
|
-
test("checkView takes a full view and refuses each wrong kind and every bad color", () => {
|
|
1126
|
-
checkView({}, inspect);
|
|
1127
|
-
checkView(
|
|
1128
|
-
{
|
|
1129
|
-
state: (v: Vars) => v.x,
|
|
1130
|
-
step: (a: string) => a,
|
|
1131
|
-
group: () => "Busy",
|
|
1132
|
-
colors: { Busy: "blue" },
|
|
1133
|
-
title: "T",
|
|
1134
|
-
},
|
|
1135
|
-
inspect,
|
|
1136
|
-
);
|
|
1137
|
-
assert.throws(() => checkView({ colors: null }, inspect), /\bcolors\b[\s\S]*\bobject\b/);
|
|
1138
|
-
assert.throws(() => checkView({ colors: ["blue"] }, inspect), /\bcolors\b[\s\S]*\bobject\b/);
|
|
1139
|
-
assert.throws(() => checkView({ state: "Busy" }, inspect), /\bstate\b[\s\S]*\bfunction\b/);
|
|
1140
|
-
assert.throws(
|
|
1141
|
-
() => checkView({ colors: { Busy: "red", Idle: "repeats", Done: "tan" } }, inspect),
|
|
1142
|
-
(error: unknown) =>
|
|
1143
|
-
error instanceof Error &&
|
|
1144
|
-
/\bBusy\b[\s\S]*"red"/.test(error.message) &&
|
|
1145
|
-
/\bIdle\b[\s\S]*"repeats"/.test(error.message) &&
|
|
1146
|
-
!/\bDone\b/.test(error.message),
|
|
1147
|
-
);
|
|
1148
|
-
});
|
|
1149
|
-
|
|
1150
|
-
test("a group named like an Object method still needs its own color", () => {
|
|
1151
|
-
const graph = graphOf([["s0", { x: 0 }, true]], []);
|
|
1152
|
-
assert.throws(
|
|
1153
|
-
() => draw(graph, checkView({ group: () => "toString", colors: {} }, inspect)),
|
|
1154
|
-
/group\(\) returned "toString"/,
|
|
1155
|
-
);
|
|
1156
|
-
});
|
|
1157
|
-
|
|
1158
|
-
test("a message writes each value the way JavaScript shows it", () => {
|
|
1159
|
-
const loop: { self?: unknown } = {};
|
|
1160
|
-
loop.self = loop;
|
|
1161
|
-
assert.throws(
|
|
1162
|
-
() =>
|
|
1163
|
-
checkView(
|
|
1164
|
-
{ colors: { Lost: NaN, Far: Infinity, Big: 7n, Boxed: new String("blue"), Loop: loop } },
|
|
1165
|
-
inspect,
|
|
1166
|
-
),
|
|
1167
|
-
/"Lost" the color NaN, "Far" the color Infinity, "Big" the color 7n, "Boxed" the color \[String: 'blue'\] and "Loop" the color <ref \*1> \{ self: \[Circular \*1\] \}\./,
|
|
1168
|
-
);
|
|
1169
|
-
const graph = graphOf([["s0", { x: 0 }, true]], []);
|
|
1170
|
-
assert.throws(
|
|
1171
|
-
() => draw(graph, checkView({ group: () => NaN, colors: {} }, inspect)),
|
|
1172
|
-
/group\(\) returned NaN,/,
|
|
1173
|
-
);
|
|
1174
|
-
});
|
|
1175
|
-
|
|
1176
|
-
test("checkView takes colors only as a plain object", () => {
|
|
1177
|
-
const bare: object = Object.create(null);
|
|
1178
|
-
checkView({ colors: Object.assign(bare, { Busy: "blue" }) }, inspect);
|
|
1179
|
-
const inherited: object = Object.create({ Busy: "blue" });
|
|
1180
|
-
for (const colors of [new Map([["Busy", "blue"]]), inherited, new String("blue")])
|
|
1181
|
-
assert.throws(() => checkView({ colors }, inspect), {
|
|
1182
|
-
message: "The view's colors must be a plain object.",
|
|
1183
|
-
});
|
|
1184
|
-
});
|
|
1185
|
-
|
|
1186
|
-
test("the chart uses the colors that checkView read once from the view's own keys", () => {
|
|
1187
|
-
const graph = graphOf([["s0", { x: 0 }, true]], []);
|
|
1188
|
-
let reads = 0;
|
|
1189
|
-
const flips = {
|
|
1190
|
-
get Busy() {
|
|
1191
|
-
reads += 1;
|
|
1192
|
-
return reads === 1 ? "blue" : "breaks";
|
|
1193
|
-
},
|
|
1194
|
-
};
|
|
1195
|
-
const changed = { Busy: "blue" };
|
|
1196
|
-
const changes = () => {
|
|
1197
|
-
changed.Busy = "breaks";
|
|
1198
|
-
return "Busy";
|
|
1199
|
-
};
|
|
1200
|
-
for (const view of [
|
|
1201
|
-
{ group: () => "Busy", colors: flips },
|
|
1202
|
-
{ group: changes, colors: changed },
|
|
1203
|
-
]) {
|
|
1204
|
-
const { chart } = draw(graph, checkView(view, inspect));
|
|
1205
|
-
assert.match(chart, /^ {2}class s\d+ blue$/m);
|
|
1206
|
-
assert.doesNotMatch(chart, /\bbreaks\b/);
|
|
1207
|
-
}
|
|
1208
|
-
const hidden = Object.defineProperty({}, "Busy", { value: "breaks" });
|
|
1209
|
-
assert.throws(
|
|
1210
|
-
() => draw(graph, checkView({ group: () => "Busy", colors: hidden }, inspect)),
|
|
1211
|
-
/group\(\) returned "Busy", which colors does not name/,
|
|
1212
|
-
);
|
|
1213
|
-
const key = Symbol("Busy");
|
|
1214
|
-
assert.throws(
|
|
1215
|
-
() => draw(graph, checkView({ group: () => key, colors: { [key]: "breaks" } }, inspect)),
|
|
1216
|
-
/group\(\) returned Symbol\(Busy\), which colors does not name/,
|
|
1217
|
-
);
|
|
1218
|
-
});
|
|
1219
|
-
|
|
1220
|
-
test("a chart state with mixed groups gets no color, even when colors names undefined", () => {
|
|
1221
|
-
const graph = graphOf(
|
|
1222
|
-
[
|
|
1223
|
-
["s0", { x: 0 }, true],
|
|
1224
|
-
["s1", { x: 1 }],
|
|
1225
|
-
],
|
|
1226
|
-
[["s0", "s1", "Go"]],
|
|
1227
|
-
);
|
|
1228
|
-
const view: View = {
|
|
1229
|
-
state: () => "Same",
|
|
1230
|
-
group: (v) => (v.x ? "B" : "A"),
|
|
1231
|
-
colors: { A: "blue", B: "teal", undefined: "pink" },
|
|
1232
|
-
};
|
|
1233
|
-
assert.doesNotMatch(draw(graph, view).chart, /^ {2}class /m);
|
|
1234
|
-
});
|
|
1235
|
-
|
|
1236
|
-
test("a graph of 10,000 states draws in seconds with no view", () => {
|
|
1237
|
-
const n = 100;
|
|
1238
|
-
const states: StateRow[] = [];
|
|
1239
|
-
const steps: StepRow[] = [];
|
|
1240
|
-
for (let x = 0; x < n; x++)
|
|
1241
|
-
for (let y = 0; y < n; y++) {
|
|
1242
|
-
const far = x === n - 1 && y === n - 1;
|
|
1243
|
-
states.push([`${x},${y}`, { x, y }, x + y === 0, far ? ["Safe"] : []]);
|
|
1244
|
-
if (x + 1 < n) steps.push([`${x},${y}`, `${x + 1},${y}`, "Right"]);
|
|
1245
|
-
if (y + 1 < n) steps.push([`${x},${y}`, `${x},${y + 1}`, "Down"]);
|
|
1246
|
-
}
|
|
1247
|
-
const start = performance.now();
|
|
1248
|
-
const { chart, report: text } = draw(graphOf(states, steps), {});
|
|
1249
|
-
const seconds = (performance.now() - start) / 1000;
|
|
1250
|
-
assert.match(text, /^The shortest path has 198 steps:$/m);
|
|
1251
|
-
assert.equal(chart.match(/^ {2}s\d+: /gm)?.length, n * n);
|
|
1252
|
-
assert.ok(seconds < 5, `drawing took ${seconds.toFixed(1)} s`);
|
|
1253
|
-
});
|