@justjoshn/pi-pstack-v2 0.1.4 → 0.1.6
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/01-setup.md +3 -3
- package/docs/guide/02-poteto-mode.md +21 -0
- package/docs/guide/05-build-and-clean.md +1 -1
- package/docs/pi-mechanisms.md +2 -2
- package/package.json +12 -5
- package/skills/create-formal-verification-skill/SKILL.md +1 -1
- package/skills/interrogate/SKILL.md +2 -2
- package/skills/poteto-mode/SKILL.md +12 -2
- package/skills/poteto-mode/playbooks/autonomous-run.md +1 -1
- package/skills/poteto-mode/playbooks/autopilot-full.md +1 -1
- package/skills/poteto-mode/playbooks/opening-a-pr.md +2 -2
- 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 -532
- package/src/jobs.ts +109 -63
- 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 +180 -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 +138 -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 +165 -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
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { AgentConfig } from './agents.ts';
|
|
2
|
+
import { getPiInvocation, removePromptTempFile, writePromptToTempFile } from './pi-invocation.ts';
|
|
3
|
+
import { createResultStream, finalizeResult } from './result-stream.ts';
|
|
4
|
+
import { createUnstartedResult, emptyUsage, getFinalOutput } from './results.ts';
|
|
5
|
+
import { runPiInTmux } from './run-in-tmux.ts';
|
|
6
|
+
import type { DispatchDefaults, MakeDetails, OnUpdateCallback, ResolvedAgent, SingleResult } from './types.ts';
|
|
7
|
+
|
|
8
|
+
interface AgentRun {
|
|
9
|
+
cwd: string;
|
|
10
|
+
initial: SingleResult;
|
|
11
|
+
args: string[];
|
|
12
|
+
signal: AbortSignal | undefined;
|
|
13
|
+
onUpdate: OnUpdateCallback | undefined;
|
|
14
|
+
makeDetails: MakeDetails;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const ABORTED_BEFORE_START = 'Subagent was aborted before starting';
|
|
18
|
+
|
|
19
|
+
function buildPiArgs(agent: AgentConfig, defaults: DispatchDefaults, promptPath: string | undefined, task: string): string[] {
|
|
20
|
+
const model = agent.model ?? defaults.model;
|
|
21
|
+
const thinking = !agent.model ? defaults.thinkingLevel : undefined;
|
|
22
|
+
return [
|
|
23
|
+
'--mode',
|
|
24
|
+
'json',
|
|
25
|
+
'-p',
|
|
26
|
+
'--no-session',
|
|
27
|
+
...(model ? ['--model', model] : []),
|
|
28
|
+
...(thinking ? ['--thinking', thinking] : []),
|
|
29
|
+
...(agent.tools && agent.tools.length > 0 ? ['--tools', agent.tools.join(',')] : []),
|
|
30
|
+
...(promptPath ? ['--append-system-prompt', promptPath] : []),
|
|
31
|
+
`Task: ${task}`,
|
|
32
|
+
];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
async function streamAgent(run: AgentRun): Promise<SingleResult> {
|
|
36
|
+
const stream = createResultStream(run.initial, (result) => {
|
|
37
|
+
run.onUpdate?.({
|
|
38
|
+
content: [{ type: 'text', text: getFinalOutput(result.messages) || '(running...)' }],
|
|
39
|
+
details: run.makeDetails([result]),
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
stream.emit();
|
|
43
|
+
const invocation = getPiInvocation(run.args);
|
|
44
|
+
const outcome = await runPiInTmux({
|
|
45
|
+
command: invocation.command,
|
|
46
|
+
args: invocation.args,
|
|
47
|
+
cwd: run.cwd,
|
|
48
|
+
signal: run.signal,
|
|
49
|
+
onStdoutChunk: stream.onStdoutChunk,
|
|
50
|
+
onStderrChunk: stream.onStderrChunk,
|
|
51
|
+
});
|
|
52
|
+
stream.flush();
|
|
53
|
+
return finalizeResult(stream.result(), outcome, run.signal?.aborted === true);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
async function runResolvedAgent(
|
|
57
|
+
defaults: DispatchDefaults,
|
|
58
|
+
resolved: ResolvedAgent & { agent: AgentConfig },
|
|
59
|
+
agentName: string,
|
|
60
|
+
task: string,
|
|
61
|
+
step: number | undefined,
|
|
62
|
+
signal: AbortSignal | undefined,
|
|
63
|
+
onUpdate: OnUpdateCallback | undefined,
|
|
64
|
+
makeDetails: MakeDetails,
|
|
65
|
+
): Promise<SingleResult> {
|
|
66
|
+
const { agent, cwd } = resolved;
|
|
67
|
+
const initial: SingleResult = {
|
|
68
|
+
agent: agentName,
|
|
69
|
+
agentSource: agent.source,
|
|
70
|
+
task,
|
|
71
|
+
status: 'running',
|
|
72
|
+
exitCode: null,
|
|
73
|
+
messages: [],
|
|
74
|
+
stderr: '',
|
|
75
|
+
usage: emptyUsage(),
|
|
76
|
+
model: agent.model ?? defaults.model,
|
|
77
|
+
step,
|
|
78
|
+
};
|
|
79
|
+
let prompt: Awaited<ReturnType<typeof writePromptToTempFile>> | undefined;
|
|
80
|
+
try {
|
|
81
|
+
prompt = agent.systemPrompt.trim() ? await writePromptToTempFile(agent.name, agent.systemPrompt) : undefined;
|
|
82
|
+
if (signal?.aborted) return { ...initial, status: 'aborted', errorMessage: ABORTED_BEFORE_START };
|
|
83
|
+
const args = buildPiArgs(agent, defaults, prompt?.filePath, task);
|
|
84
|
+
return await streamAgent({ cwd, initial, args, signal, onUpdate, makeDetails });
|
|
85
|
+
} finally {
|
|
86
|
+
removePromptTempFile(prompt);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export async function runSingleAgent(
|
|
91
|
+
defaults: DispatchDefaults,
|
|
92
|
+
resolved: ResolvedAgent,
|
|
93
|
+
agentName: string,
|
|
94
|
+
task: string,
|
|
95
|
+
step: number | undefined,
|
|
96
|
+
signal: AbortSignal | undefined,
|
|
97
|
+
onUpdate: OnUpdateCallback | undefined,
|
|
98
|
+
makeDetails: MakeDetails,
|
|
99
|
+
): Promise<SingleResult> {
|
|
100
|
+
if (signal?.aborted) return createUnstartedResult(agentName, task, step, 'aborted', ABORTED_BEFORE_START);
|
|
101
|
+
const { agent } = resolved;
|
|
102
|
+
if (!agent) {
|
|
103
|
+
const available = resolved.available.map((candidate) => `"${candidate.name}"`).join(', ') || 'none';
|
|
104
|
+
return createUnstartedResult(agentName, task, step, 'failed', `Unknown agent: "${agentName}". Available agents: ${available}.`);
|
|
105
|
+
}
|
|
106
|
+
return runResolvedAgent(defaults, { ...resolved, agent }, agentName, task, step, signal, onUpdate, makeDetails);
|
|
107
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { StringEnum } from '@earendil-works/pi-ai';
|
|
2
|
+
import { type Static, Type } from 'typebox';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import type { AgentScope } from './agents.ts';
|
|
5
|
+
|
|
6
|
+
const TaskItem = Type.Object({
|
|
7
|
+
agent: Type.String({ description: 'Name of the agent to invoke' }),
|
|
8
|
+
task: Type.String({ description: 'Task to delegate to the agent' }),
|
|
9
|
+
cwd: Type.Optional(Type.String({ description: 'Working directory for the agent process' })),
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
const ChainItem = Type.Object({
|
|
13
|
+
agent: Type.String({ description: 'Name of the agent to invoke' }),
|
|
14
|
+
task: Type.String({ description: 'Task with optional {previous} placeholder for prior output' }),
|
|
15
|
+
cwd: Type.Optional(Type.String({ description: 'Working directory for the agent process' })),
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
const AgentScopeSchema = StringEnum(['user', 'project', 'both'] as const, {
|
|
19
|
+
description: 'Which agent directories to use. Default: "user". Use "both" to include project-local agents.',
|
|
20
|
+
default: 'user',
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export const SubagentParams = Type.Object({
|
|
24
|
+
agent: Type.Optional(Type.String({ description: 'Name of the agent to invoke (for single mode)' })),
|
|
25
|
+
task: Type.Optional(Type.String({ description: 'Task to delegate (for single mode)' })),
|
|
26
|
+
tasks: Type.Optional(Type.Array(TaskItem, { description: 'Array of {agent, task} for parallel execution' })),
|
|
27
|
+
chain: Type.Optional(Type.Array(ChainItem, { description: 'Array of {agent, task} for sequential execution' })),
|
|
28
|
+
agentScope: Type.Optional(AgentScopeSchema),
|
|
29
|
+
confirmProjectAgents: Type.Optional(Type.Boolean({ description: 'Prompt before running project-local agents. Default: true.', default: true })),
|
|
30
|
+
cwd: Type.Optional(Type.String({ description: 'Working directory for the agent process (single mode)' })),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export type SubagentParamsType = Static<typeof SubagentParams>;
|
|
34
|
+
export type ParsedSubagentParams = Omit<SubagentParamsType, 'agentScope'> & { agentScope?: AgentScope | undefined };
|
|
35
|
+
|
|
36
|
+
const WorkItemSchema = z.looseObject({ agent: z.string(), task: z.string(), cwd: z.string().optional() });
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Mirrors SubagentParams, which Pi checks before the tool runs, so it accepts exactly the calls that reach the tool. The
|
|
40
|
+
* tool validates with it and passes Pi's own params object on, so every key and its order reach the dispatcher unchanged.
|
|
41
|
+
*/
|
|
42
|
+
export const SubagentParamsSchema = z.looseObject({
|
|
43
|
+
agent: z.string().optional(),
|
|
44
|
+
task: z.string().optional(),
|
|
45
|
+
tasks: z.array(WorkItemSchema).optional(),
|
|
46
|
+
chain: z.array(WorkItemSchema).optional(),
|
|
47
|
+
agentScope: z.enum(['user', 'project', 'both']).optional(),
|
|
48
|
+
confirmProjectAgents: z.boolean().optional(),
|
|
49
|
+
cwd: z.string().optional(),
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export const toAgentScope = (value: unknown): AgentScope => (value === 'project' || value === 'both' ? value : 'user');
|
|
53
|
+
|
|
54
|
+
export interface WorkItem {
|
|
55
|
+
agent: string;
|
|
56
|
+
task: string;
|
|
57
|
+
cwd?: string | undefined;
|
|
58
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { AgentToolResult, ThinkingLevel } from '@earendil-works/pi-agent-core';
|
|
2
|
+
import type { Message } from '@earendil-works/pi-ai';
|
|
3
|
+
import type { AgentConfig } from './agents.ts';
|
|
4
|
+
|
|
5
|
+
export interface UsageStats {
|
|
6
|
+
input: number;
|
|
7
|
+
output: number;
|
|
8
|
+
cacheRead: number;
|
|
9
|
+
cacheWrite: number;
|
|
10
|
+
cost: number;
|
|
11
|
+
contextTokens: number;
|
|
12
|
+
turns: number;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type ChildStatus = 'pending' | 'running' | 'completed' | 'failed' | 'aborted';
|
|
16
|
+
|
|
17
|
+
export interface SingleResult {
|
|
18
|
+
agent: string;
|
|
19
|
+
agentSource: 'user' | 'project' | 'unknown';
|
|
20
|
+
task: string;
|
|
21
|
+
status: ChildStatus;
|
|
22
|
+
exitCode: number | null;
|
|
23
|
+
messages: Message[];
|
|
24
|
+
stderr: string;
|
|
25
|
+
usage: UsageStats;
|
|
26
|
+
model?: string | undefined;
|
|
27
|
+
stopReason?: string | undefined;
|
|
28
|
+
errorMessage?: string | undefined;
|
|
29
|
+
terminationSignal?: NodeJS.Signals | undefined;
|
|
30
|
+
step?: number | undefined;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type SubagentMode = 'single' | 'parallel' | 'chain';
|
|
34
|
+
|
|
35
|
+
export interface SubagentDetails {
|
|
36
|
+
mode: SubagentMode;
|
|
37
|
+
results: SingleResult[];
|
|
38
|
+
isError: boolean;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type MakeDetails = (results: SingleResult[]) => SubagentDetails;
|
|
42
|
+
|
|
43
|
+
export type OnUpdateCallback = (partial: AgentToolResult<SubagentDetails>) => void;
|
|
44
|
+
|
|
45
|
+
export interface DispatchDefaults {
|
|
46
|
+
model?: string | undefined;
|
|
47
|
+
thinkingLevel?: ThinkingLevel | undefined;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface DispatchRun {
|
|
51
|
+
defaults: DispatchDefaults;
|
|
52
|
+
signal: AbortSignal | undefined;
|
|
53
|
+
onUpdate: OnUpdateCallback | undefined;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface ResolvedAgent {
|
|
57
|
+
agent: AgentConfig | undefined;
|
|
58
|
+
available: AgentConfig[];
|
|
59
|
+
cwd: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export type DisplayItem = { type: 'text'; text: string } | { type: 'toolCall'; name: string; args: Record<string, unknown> };
|
package/src/sweep.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { appendFileSync, chmodSync, cpSync, lstatSync, mkdirSync, readdirSync, readFileSync, renameSync, rmSync } from 'node:fs';
|
|
2
2
|
import { basename, dirname, join } from 'node:path';
|
|
3
3
|
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
|
|
4
6
|
/**
|
|
5
7
|
* What a checkout held when a job started, so that the unsandboxed wrapper can quarantine, after the job, every path an
|
|
6
8
|
* unsandboxed process would later execute from that the job made appear. A job can make one appear even where it may
|
|
@@ -18,6 +20,10 @@ export interface Inventory {
|
|
|
18
20
|
output: string;
|
|
19
21
|
}
|
|
20
22
|
|
|
23
|
+
// The inventory is read as written, since this file runs alone in the job's output directory and a missing or odd key is
|
|
24
|
+
// reported by the sweep's own catch into the job's output, as it always was.
|
|
25
|
+
const InventorySchema = z.custom<Inventory>((value) => typeof value === 'object' && value !== null);
|
|
26
|
+
|
|
21
27
|
/** Pi loads code from these entries of any `.pi` directory, at any depth, once the project is trusted. */
|
|
22
28
|
export const PI_CODE = ['extensions', 'settings.json', 'mcp.json', 'npm', 'git'] as const;
|
|
23
29
|
|
|
@@ -51,40 +57,49 @@ const exists = (path: string): boolean => {
|
|
|
51
57
|
* directories. With `repair`, a directory the job made unreadable gets its owner permissions back so it can be searched,
|
|
52
58
|
* and anything still unreadable lands in `unreadable`, since a job could otherwise hide code from the sweep that way.
|
|
53
59
|
*/
|
|
54
|
-
export function codePaths(roots: string[], repair = false
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
60
|
+
export function codePaths(roots: string[], repair = false): string[] {
|
|
61
|
+
return scanCode(roots, repair).found;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
type Scan = { found: string[]; unreadable: string[] };
|
|
65
|
+
const EMPTY_SCAN: Scan = { found: [], unreadable: [] };
|
|
66
|
+
const joinScans = (scans: Scan[]): Scan => ({ found: scans.flatMap((scan) => scan.found), unreadable: scans.flatMap((scan) => scan.unreadable) });
|
|
67
|
+
|
|
68
|
+
/** Reads with `read`, and with `repair` retries once after restoring owner permissions. Fails with the path as unreadable. */
|
|
69
|
+
function attempt<T>(path: string, repair: boolean, read: () => T): { value?: T; unreadable: string[] } {
|
|
70
|
+
try {
|
|
71
|
+
return { value: read(), unreadable: [] };
|
|
72
|
+
} catch {
|
|
73
|
+
if (!repair) return { unreadable: [] };
|
|
74
|
+
}
|
|
75
|
+
try {
|
|
76
|
+
chmodSync(path, (lstatSync(path).mode & 0o7777) | 0o700);
|
|
77
|
+
return { value: read(), unreadable: [] };
|
|
78
|
+
} catch {
|
|
79
|
+
return { unreadable: [path] };
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/** Like `codePaths`, and also names every directory that stayed unreadable even after repair. */
|
|
84
|
+
function scanCode(roots: string[], repair: boolean): Scan {
|
|
70
85
|
// Links are never followed, so the walk cannot loop and needs no depth limit.
|
|
71
|
-
const walk = (dir: string):
|
|
86
|
+
const walk = (dir: string): Scan => {
|
|
72
87
|
// Inside a code directory such as `.pi` or `.claude`, its code entries are found and the rest is searched like any directory.
|
|
73
88
|
const isCode = CODE_DIRS.get(basename(dir));
|
|
74
|
-
const
|
|
75
|
-
|
|
89
|
+
const listing = attempt(dir, repair, () => readdirSync(dir));
|
|
90
|
+
const entries = (listing.value ?? []).map((name) => {
|
|
76
91
|
const path = join(dir, name);
|
|
77
|
-
const stat = attempt(dir, () => lstatSync(path));
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
}
|
|
92
|
+
const stat = attempt(dir, repair, () => lstatSync(path));
|
|
93
|
+
return { name, path, stat: stat.value, unreadable: stat.unreadable };
|
|
94
|
+
});
|
|
95
|
+
const scans = entries.map(({ name, path, stat, unreadable }): Scan => {
|
|
96
|
+
if (!stat) return { found: [], unreadable };
|
|
97
|
+
if (wholeCode(name) || isCode?.(name) || (CODE_DIRS.has(name) && stat.isSymbolicLink())) return { found: [path], unreadable };
|
|
98
|
+
return stat.isDirectory() && name !== 'node_modules' ? joinScans([{ found: [], unreadable }, walk(path)]) : { found: [], unreadable };
|
|
99
|
+
});
|
|
100
|
+
return joinScans([{ found: [], unreadable: listing.unreadable }, ...scans]);
|
|
85
101
|
};
|
|
86
|
-
|
|
87
|
-
return found;
|
|
102
|
+
return joinScans([EMPTY_SCAN, ...roots.map(walk)]);
|
|
88
103
|
}
|
|
89
104
|
|
|
90
105
|
export function inventory(roots: string[], protect: string[], quarantine: string, output: string): Inventory {
|
|
@@ -92,51 +107,76 @@ export function inventory(roots: string[], protect: string[], quarantine: string
|
|
|
92
107
|
return { roots, absent, present: codePaths(roots), quarantine, output };
|
|
93
108
|
}
|
|
94
109
|
|
|
110
|
+
// Moving a path out needs write permission on its parent, and a directory also on itself, which a job can take away.
|
|
111
|
+
// chmod follows links, so only real directories are touched.
|
|
112
|
+
function makeWritable(path: string): void {
|
|
113
|
+
const stat = lstatSync(path);
|
|
114
|
+
if (stat.isDirectory()) chmodSync(path, (stat.mode & 0o7777) | 0o700);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/** Renames into quarantine, which can sit on another filesystem. Copying keeps links as links and removing never follows one. */
|
|
118
|
+
function relocate(path: string, target: string): void {
|
|
119
|
+
try {
|
|
120
|
+
renameSync(path, target);
|
|
121
|
+
} catch (error) {
|
|
122
|
+
if ((error as NodeJS.ErrnoException).code !== 'EXDEV') throw error;
|
|
123
|
+
cpSync(path, target, { recursive: true, verbatimSymlinks: true });
|
|
124
|
+
rmSync(path, { recursive: true, force: true });
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/** Quarantines one path and notes it in the job's output. Returns whether it moved. */
|
|
129
|
+
function quarantine(inv: Inventory, path: string, reason: string, serial: number): boolean {
|
|
130
|
+
if (!exists(path)) return false;
|
|
131
|
+
try {
|
|
132
|
+
mkdirSync(inv.quarantine, { recursive: true });
|
|
133
|
+
const target = join(inv.quarantine, `${Date.now()}-${serial}-${basename(path)}`);
|
|
134
|
+
makeWritable(dirname(path));
|
|
135
|
+
makeWritable(path);
|
|
136
|
+
relocate(path, target);
|
|
137
|
+
appendFileSync(inv.output, `pstack quarantined ${path}, ${reason}, in ${inv.quarantine}.\n`);
|
|
138
|
+
return true;
|
|
139
|
+
} catch (error) {
|
|
140
|
+
appendFileSync(inv.output, `pstack could not quarantine ${path}, ${reason}: ${String(error)}. Check it before you start Pi in this checkout.\n`);
|
|
141
|
+
return false;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
type Move = { path: string; reason: string };
|
|
146
|
+
|
|
147
|
+
/** What to move for a protected path that was absent at launch: a link that appeared over its parent, else the path itself. */
|
|
148
|
+
function absentMoveOf({ path, parentWasLink }: Inventory['absent'][number]): Move {
|
|
149
|
+
const parent = dirname(path);
|
|
150
|
+
if (!parentWasLink && exists(parent) && lstatSync(parent).isSymbolicLink()) return { path: parent, reason: 'a link that appeared over a protected path while the job ran' };
|
|
151
|
+
return { path, reason: 'which appeared while the job ran' };
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/** Moves each path in order, then returns the earlier moves with the ones that happened. */
|
|
155
|
+
const moveAll = (inv: Inventory, moves: Move[], moved: string[]): string[] => {
|
|
156
|
+
const [head, ...rest] = moves;
|
|
157
|
+
if (head === undefined) return moved;
|
|
158
|
+
return moveAll(inv, rest, quarantine(inv, head.path, head.reason, moved.length) ? moved.concat(head.path) : moved);
|
|
159
|
+
};
|
|
160
|
+
|
|
95
161
|
/** Moves each path that appeared during the job into quarantine, never following a link, and returns what it moved. */
|
|
96
162
|
export function sweep(inv: Inventory): string[] {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
// chmod follows links, so only real directories are touched.
|
|
100
|
-
const writable = (path: string): void => {
|
|
101
|
-
const stat = lstatSync(path);
|
|
102
|
-
if (stat.isDirectory()) chmodSync(path, (stat.mode & 0o7777) | 0o700);
|
|
103
|
-
};
|
|
104
|
-
const move = (path: string, reason: string): void => {
|
|
105
|
-
if (!exists(path)) return;
|
|
106
|
-
try {
|
|
107
|
-
mkdirSync(inv.quarantine, { recursive: true });
|
|
108
|
-
const target = join(inv.quarantine, `${Date.now()}-${moved.length}-${basename(path)}`);
|
|
109
|
-
writable(dirname(path));
|
|
110
|
-
writable(path);
|
|
111
|
-
try {
|
|
112
|
-
renameSync(path, target);
|
|
113
|
-
} catch (error) {
|
|
114
|
-
// Quarantine can sit on another filesystem than the checkout. Copying keeps links as links and removing never follows one.
|
|
115
|
-
if ((error as NodeJS.ErrnoException).code !== 'EXDEV') throw error;
|
|
116
|
-
cpSync(path, target, { recursive: true, verbatimSymlinks: true });
|
|
117
|
-
rmSync(path, { recursive: true, force: true });
|
|
118
|
-
}
|
|
119
|
-
moved.push(path);
|
|
120
|
-
appendFileSync(inv.output, `pstack quarantined ${path}, ${reason}, in ${inv.quarantine}.\n`);
|
|
121
|
-
} catch (error) {
|
|
122
|
-
appendFileSync(inv.output, `pstack could not quarantine ${path}, ${reason}: ${String(error)}. Check it before you start Pi in this checkout.\n`);
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
for (const { path, parentWasLink } of inv.absent) {
|
|
126
|
-
const parent = dirname(path);
|
|
127
|
-
if (!parentWasLink && exists(parent) && lstatSync(parent).isSymbolicLink()) move(parent, 'a link that appeared over a protected path while the job ran');
|
|
128
|
-
else move(path, 'which appeared while the job ran');
|
|
129
|
-
}
|
|
163
|
+
// Each path is decided after the earlier moves, since a move can change what its parent is.
|
|
164
|
+
const afterAbsent = inv.absent.reduce((moved, entry) => moveAll(inv, [absentMoveOf(entry)], moved), [] as string[]);
|
|
130
165
|
const present = new Set(inv.present);
|
|
131
|
-
const
|
|
132
|
-
|
|
133
|
-
|
|
166
|
+
const scan = scanCode(inv.roots, true);
|
|
167
|
+
const moved = moveAll(
|
|
168
|
+
inv,
|
|
169
|
+
scan.found.filter((path) => !present.has(path)).map((path) => ({ path, reason: 'Pi, git, editor, or harness code that appeared while the job ran' })),
|
|
170
|
+
afterAbsent,
|
|
171
|
+
);
|
|
172
|
+
for (const path of new Set(scan.unreadable)) appendFileSync(inv.output, `pstack could not search ${path} for Pi, git, editor, or harness code the job may have left there. Check it before you start Pi in this checkout.\n`);
|
|
134
173
|
return moved;
|
|
135
174
|
}
|
|
136
175
|
|
|
137
176
|
// The wrapper runs this file directly once the job has ended: `node sweep.ts <inventory.json>`.
|
|
138
|
-
|
|
139
|
-
|
|
177
|
+
const argv = z.array(z.string()).parse(process.argv);
|
|
178
|
+
if (argv[1] && basename(argv[1]) === 'sweep.ts' && argv[2]) {
|
|
179
|
+
const inv = InventorySchema.parse(JSON.parse(readFileSync(argv[2], 'utf8')));
|
|
140
180
|
try {
|
|
141
181
|
sweep(inv);
|
|
142
182
|
} catch (error) {
|
package/src/transcript.ts
CHANGED
|
@@ -3,8 +3,63 @@ import { join } from 'node:path';
|
|
|
3
3
|
|
|
4
4
|
import { parseSessionEntries, type SessionEntry } from '@earendil-works/pi-coding-agent';
|
|
5
5
|
|
|
6
|
+
type Report = { path: string; answers: string[]; toolCalls: number };
|
|
7
|
+
type Assistant = Extract<SessionEntry, { type: 'message' }>;
|
|
8
|
+
|
|
9
|
+
const isAssistant = (entry: SessionEntry): entry is Assistant => entry.type === 'message' && entry.message.role === 'assistant';
|
|
10
|
+
|
|
11
|
+
/** The entries from the last one back to the root, oldest first. A cycle in parent ids ends the walk. */
|
|
12
|
+
function branchOf(turns: SessionEntry[]): SessionEntry[] {
|
|
13
|
+
const byId = new Map(turns.map((entry) => [entry.id, entry]));
|
|
14
|
+
const walk = (entry: SessionEntry | undefined, seen: ReadonlySet<string>): SessionEntry[] => (entry && !seen.has(entry.id) ? [entry, ...walk(entry.parentId ? byId.get(entry.parentId) : undefined, new Set([...seen, entry.id]))] : []);
|
|
15
|
+
return walk(turns.at(-1), new Set()).toReversed();
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** What one assistant turn contributes to the answers, or nothing. */
|
|
19
|
+
function answerOf(entry: Assistant, last: boolean): string[] {
|
|
20
|
+
const message = entry.message;
|
|
21
|
+
if (message.role !== 'assistant') return [];
|
|
22
|
+
const text = message.content
|
|
23
|
+
.filter((block) => block.type === 'text')
|
|
24
|
+
.map((block) => block.text)
|
|
25
|
+
.join('\n');
|
|
26
|
+
const ended = [`[Worker answer ended with ${message.stopReason}]`, text, message.errorMessage].filter(Boolean).join('\n');
|
|
27
|
+
switch (message.stopReason) {
|
|
28
|
+
case 'stop':
|
|
29
|
+
return text.trim() ? [text] : [];
|
|
30
|
+
case 'error':
|
|
31
|
+
case 'aborted':
|
|
32
|
+
// A failed turn the worker went on from was retried, so only the one it ended on is its answer.
|
|
33
|
+
return last ? [ended] : [];
|
|
34
|
+
case 'length':
|
|
35
|
+
return [ended];
|
|
36
|
+
case 'toolUse':
|
|
37
|
+
case 'pending':
|
|
38
|
+
case 'deferred':
|
|
39
|
+
return [];
|
|
40
|
+
default: {
|
|
41
|
+
const unhandled: never = message.stopReason;
|
|
42
|
+
throw new Error(`Unhandled worker stop reason: ${unhandled}`);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function reportOf(path: string, entries: ReturnType<typeof parseSessionEntries>, since: string): Report {
|
|
48
|
+
const turns = entries.filter((entry): entry is SessionEntry => entry.type !== 'session');
|
|
49
|
+
const branch = branchOf(turns);
|
|
50
|
+
const prompt = branch.findLastIndex((entry) => entry.type === 'message' && entry.message.role === 'user');
|
|
51
|
+
if (prompt < 0 || !(Date.parse(branch[prompt]?.timestamp ?? '') >= Date.parse(since))) return { path, answers: [], toolCalls: 0 };
|
|
52
|
+
const after = branch.slice(prompt + 1);
|
|
53
|
+
const assistants = after.filter(isAssistant);
|
|
54
|
+
return {
|
|
55
|
+
path,
|
|
56
|
+
answers: assistants.flatMap((entry) => answerOf(entry, entry === assistants.at(-1))),
|
|
57
|
+
toolCalls: after.filter((entry) => entry.type === 'message' && entry.message.role === 'toolResult').length,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
6
61
|
/** A worker's completed answers since its brief, and how many tool calls it made. */
|
|
7
|
-
export function workerReport(sessionDir: string | undefined, since: string):
|
|
62
|
+
export function workerReport(sessionDir: string | undefined, since: string): Report | undefined {
|
|
8
63
|
if (!sessionDir) return undefined;
|
|
9
64
|
try {
|
|
10
65
|
if (!lstatSync(sessionDir).isDirectory()) return undefined;
|
|
@@ -12,58 +67,13 @@ export function workerReport(sessionDir: string | undefined, since: string): { p
|
|
|
12
67
|
.filter((name) => name.endsWith('.jsonl'))
|
|
13
68
|
.map((name) => ({ path: join(sessionDir, name), stat: lstatSync(join(sessionDir, name)) }))
|
|
14
69
|
.filter(({ stat }) => stat.isFile())
|
|
15
|
-
.
|
|
70
|
+
.toSorted((a, b) => b.stat.mtimeMs - a.stat.mtimeMs);
|
|
16
71
|
for (const { path } of files) {
|
|
17
72
|
const entries = parseSessionEntries(readFileSync(path, 'utf8'));
|
|
18
|
-
if (entries[0]?.type
|
|
19
|
-
const turns = entries.filter((entry): entry is SessionEntry => entry.type !== 'session');
|
|
20
|
-
const byId = new Map(turns.map((entry) => [entry.id, entry]));
|
|
21
|
-
const branch: SessionEntry[] = [];
|
|
22
|
-
const seen = new Set<string>();
|
|
23
|
-
for (let entry = turns.at(-1); entry && !seen.has(entry.id); entry = entry.parentId ? byId.get(entry.parentId) : undefined) {
|
|
24
|
-
seen.add(entry.id);
|
|
25
|
-
branch.push(entry);
|
|
26
|
-
}
|
|
27
|
-
branch.reverse();
|
|
28
|
-
const prompt = branch.findLastIndex((entry) => entry.type === 'message' && entry.message.role === 'user');
|
|
29
|
-
const answers: string[] = [];
|
|
30
|
-
let toolCalls = 0;
|
|
31
|
-
if (prompt >= 0 && Date.parse(branch[prompt]?.timestamp ?? '') >= Date.parse(since)) {
|
|
32
|
-
toolCalls = branch.slice(prompt + 1).filter((entry) => entry.type === 'message' && entry.message.role === 'toolResult').length;
|
|
33
|
-
const turns = branch.slice(prompt + 1).filter((entry) => entry.type === 'message' && entry.message.role === 'assistant');
|
|
34
|
-
for (const entry of turns) {
|
|
35
|
-
if (entry.type !== 'message' || entry.message.role !== 'assistant') continue;
|
|
36
|
-
const message = entry.message;
|
|
37
|
-
const text = message.content
|
|
38
|
-
.filter((block) => block.type === 'text')
|
|
39
|
-
.map((block) => block.text)
|
|
40
|
-
.join('\n');
|
|
41
|
-
switch (message.stopReason) {
|
|
42
|
-
case 'stop':
|
|
43
|
-
if (text.trim()) answers.push(text);
|
|
44
|
-
break;
|
|
45
|
-
case 'error':
|
|
46
|
-
case 'aborted':
|
|
47
|
-
// A failed turn the worker went on from was retried, so only the one it ended on is its answer.
|
|
48
|
-
if (entry !== turns.at(-1)) break;
|
|
49
|
-
answers.push([`[Worker answer ended with ${message.stopReason}]`, text, message.errorMessage].filter(Boolean).join('\n'));
|
|
50
|
-
break;
|
|
51
|
-
case 'length':
|
|
52
|
-
answers.push([`[Worker answer ended with ${message.stopReason}]`, text, message.errorMessage].filter(Boolean).join('\n'));
|
|
53
|
-
break;
|
|
54
|
-
case 'toolUse':
|
|
55
|
-
case 'pending':
|
|
56
|
-
case 'deferred':
|
|
57
|
-
break;
|
|
58
|
-
default: {
|
|
59
|
-
const unhandled: never = message.stopReason;
|
|
60
|
-
throw new Error(`Unhandled worker stop reason: ${unhandled}`);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
return { path, answers, toolCalls };
|
|
73
|
+
if (entries[0]?.type === 'session') return reportOf(path, entries, since);
|
|
66
74
|
}
|
|
67
|
-
} catch {
|
|
75
|
+
} catch {
|
|
76
|
+
return undefined;
|
|
77
|
+
}
|
|
68
78
|
return undefined;
|
|
69
79
|
}
|
package/agents/poteto-agent.md
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: poteto-agent
|
|
3
|
-
description: Worker for code-writing and helper tasks that a `/skill:poteto-mode` run starts with `pi_spawn`. Use for workers, not as the runner for `/skill:poteto-mode` itself. Spawn a fresh `poteto-agent` for each new task, and resume one only in the strict cases that poteto-mode's Spawned Pi workers section names. Reads the `poteto-mode` skill's `SKILL.md` in full before any work, including its inline Principles index. A spawn with no `agent` skips that read and drifts.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Poteto worker
|
|
7
|
-
|
|
8
|
-
You are operating as poteto-mode's full agent style. The session that receives `/skill:poteto-mode` owns the playbook, `TODO.md`, and every `pi_spawn`. You are one of its workers. Read the `poteto-mode` skill's `SKILL.md` in full before doing any work, including its inline Principles index. Use the absolute path your brief gave you. With no path, before any other work, find `skills/poteto-mode/SKILL.md` in the pi-pstack-v2 package. Run `pi list` to see where the package is installed, or search under `~/.pi/agent/`. If more than one file matches, use the copy in the package `pi list` reports. Your skill catalog hides this skill, so a missing catalog entry does not mean pstack is absent. If no such file exists, stop and tell your parent. Navigate to a leaf `principle-*` skill whenever you apply that principle. When something fails only in your sandbox (a browser that will not launch, a download that never lands, a permission error), report it as a sandbox suspect with the exact error. Do not mark it a product defect, a skip, or a fixme.
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: thermo-nuclear-code-quality-review
|
|
3
|
-
description: Thermo-nuclear code quality audit (maintainability, structure, 1k-line rule, spaghetti, code-judo). Started with `pi_spawn` after a parent gathers diff and file contents. Loads the rubric from the `thermo-nuclear-code-quality-review` skill in this package.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Thermo-Nuclear Code Quality Review
|
|
7
|
-
|
|
8
|
-
You are a **spawned Pi worker**. The parent session already collected git output and changed-file contents; your brief carries labeled sections (typically `### Git / diff output` and `### Changed file contents`).
|
|
9
|
-
|
|
10
|
-
## Rubric
|
|
11
|
-
|
|
12
|
-
1. Load the `thermo-nuclear-code-quality-review` skill (shipped in this package) and treat its `SKILL.md` as the **complete** rubric, covering tone, approval bar, output ordering, and code-judo / 1k-line / spaghetti rules.
|
|
13
|
-
2. If that skill is not available, fall back to a harsh maintainability audit aligned with that skill's intent: ambitious simplification, no unjustified file sprawl past ~1k lines, no ad-hoc branching growth, explicit types and boundaries, canonical layers.
|
|
14
|
-
|
|
15
|
-
## Work
|
|
16
|
-
|
|
17
|
-
- Apply the rubric **only** to what the diff and contents show. Trace cross-file impact when the change touches module boundaries.
|
|
18
|
-
- Output in the **priority order** the rubric specifies. Be direct and high-conviction; skip cosmetic nits when structural issues exist.
|
|
19
|
-
- Do **not** spawn nested workers unless the user or parent explicitly asks.
|
|
20
|
-
|
|
21
|
-
## Parent orchestration
|
|
22
|
-
|
|
23
|
-
Typical flow: collect `git diff <base>...HEAD` output and the full contents of the changed files (default base `main`) with ordinary bash and read work, or with `pi_spawn` calls in one message when the diff is large. Then start this worker with `pi_spawn` and `agent: "thermo-nuclear-code-quality-review"`, with a brief containing `### Git / diff output` and `### Changed file contents`.
|