plugin-git-manager 1.0.3 → 1.0.11
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 +108 -0
- package/dist/client/228.7588a0707cb3694a.js +10 -0
- package/dist/client/498.dd1184272d8038d4.js +10 -0
- package/dist/client/ai-context.d.ts +8 -0
- package/dist/client/components/AIEmployeeSelect.d.ts +13 -0
- package/dist/client/components/MarkdownView.d.ts +10 -0
- package/dist/client/components/MergeRequests.d.ts +2 -0
- package/dist/client/components/PollingStatus.d.ts +2 -0
- package/dist/client/components/ReviewFlows.d.ts +2 -0
- package/dist/client/components/ReviewHistory.d.ts +4 -0
- package/dist/client/components/RunReviewButton.d.ts +31 -0
- package/dist/client/index.js +1 -1
- package/dist/externalVersion.js +4 -4
- package/dist/locale/en-US.json +137 -1
- package/dist/locale/vi-VN.json +137 -1
- package/dist/node_modules/zod/LICENSE +21 -0
- package/dist/node_modules/zod/index.cjs +1 -0
- package/dist/node_modules/zod/index.d.cts +4 -0
- package/dist/node_modules/zod/index.d.ts +4 -0
- package/dist/node_modules/zod/index.js +4 -0
- package/dist/node_modules/zod/locales/index.cjs +17 -0
- package/dist/node_modules/zod/locales/index.d.cts +1 -0
- package/dist/node_modules/zod/locales/index.d.ts +1 -0
- package/dist/node_modules/zod/locales/index.js +1 -0
- package/dist/node_modules/zod/locales/package.json +6 -0
- package/dist/node_modules/zod/mini/index.cjs +17 -0
- package/dist/node_modules/zod/mini/index.d.cts +1 -0
- package/dist/node_modules/zod/mini/index.d.ts +1 -0
- package/dist/node_modules/zod/mini/index.js +1 -0
- package/dist/node_modules/zod/mini/package.json +6 -0
- package/dist/node_modules/zod/package.json +1 -0
- package/dist/node_modules/zod/src/index.ts +4 -0
- package/dist/node_modules/zod/src/locales/index.ts +1 -0
- package/dist/node_modules/zod/src/mini/index.ts +1 -0
- package/dist/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/dist/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/dist/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/dist/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/dist/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/dist/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/dist/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/dist/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/dist/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/dist/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/dist/node_modules/zod/src/v3/errors.ts +13 -0
- package/dist/node_modules/zod/src/v3/external.ts +6 -0
- package/dist/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/dist/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/dist/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/dist/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/dist/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/dist/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/dist/node_modules/zod/src/v3/index.ts +4 -0
- package/dist/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/dist/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/dist/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/dist/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/dist/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/dist/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/dist/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/dist/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/dist/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/dist/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/dist/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/dist/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/dist/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/dist/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
- package/dist/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/dist/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/dist/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/dist/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/dist/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/dist/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/dist/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/dist/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/dist/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/dist/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/dist/node_modules/zod/src/v3/tests/function.test.ts +261 -0
- package/dist/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/dist/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/dist/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/dist/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/dist/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/dist/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/dist/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/dist/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/dist/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/dist/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
- package/dist/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/dist/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/dist/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/dist/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/dist/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/dist/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/dist/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/dist/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/dist/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/dist/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/dist/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/dist/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/dist/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/dist/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/dist/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/dist/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/dist/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/dist/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/dist/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/dist/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/dist/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/dist/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/dist/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/dist/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/dist/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/dist/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/dist/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/dist/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/dist/node_modules/zod/src/v3/types.ts +5138 -0
- package/dist/node_modules/zod/src/v4/classic/checks.ts +32 -0
- package/dist/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/dist/node_modules/zod/src/v4/classic/compat.ts +70 -0
- package/dist/node_modules/zod/src/v4/classic/errors.ts +82 -0
- package/dist/node_modules/zod/src/v4/classic/external.ts +51 -0
- package/dist/node_modules/zod/src/v4/classic/from-json-schema.ts +643 -0
- package/dist/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/dist/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/dist/node_modules/zod/src/v4/classic/parse.ts +82 -0
- package/dist/node_modules/zod/src/v4/classic/schemas.ts +2409 -0
- package/dist/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/dist/node_modules/zod/src/v4/classic/tests/apply.test.ts +59 -0
- package/dist/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/dist/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
- package/dist/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/dist/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/dist/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/dist/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/dist/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
- package/dist/node_modules/zod/src/v4/classic/tests/catch.test.ts +276 -0
- package/dist/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/dist/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +573 -0
- package/dist/node_modules/zod/src/v4/classic/tests/codec.test.ts +562 -0
- package/dist/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/dist/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
- package/dist/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/dist/node_modules/zod/src/v4/classic/tests/date.test.ts +62 -0
- package/dist/node_modules/zod/src/v4/classic/tests/datetime.test.ts +302 -0
- package/dist/node_modules/zod/src/v4/classic/tests/default.test.ts +365 -0
- package/dist/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
- package/dist/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/dist/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +661 -0
- package/dist/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/dist/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +595 -0
- package/dist/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/dist/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
- package/dist/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
- package/dist/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
- package/dist/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +734 -0
- package/dist/node_modules/zod/src/v4/classic/tests/function.test.ts +360 -0
- package/dist/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/dist/node_modules/zod/src/v4/classic/tests/hash.test.ts +68 -0
- package/dist/node_modules/zod/src/v4/classic/tests/index.test.ts +939 -0
- package/dist/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +60 -0
- package/dist/node_modules/zod/src/v4/classic/tests/intersection.test.ts +198 -0
- package/dist/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
- package/dist/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/dist/node_modules/zod/src/v4/classic/tests/literal.test.ts +117 -0
- package/dist/node_modules/zod/src/v4/classic/tests/map.test.ts +330 -0
- package/dist/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/dist/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/dist/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
- package/dist/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/dist/node_modules/zod/src/v4/classic/tests/number.test.ts +270 -0
- package/dist/node_modules/zod/src/v4/classic/tests/object.test.ts +640 -0
- package/dist/node_modules/zod/src/v4/classic/tests/optional.test.ts +223 -0
- package/dist/node_modules/zod/src/v4/classic/tests/partial.test.ts +427 -0
- package/dist/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
- package/dist/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
- package/dist/node_modules/zod/src/v4/classic/tests/prefault.test.ts +74 -0
- package/dist/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +282 -0
- package/dist/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/dist/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/dist/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/dist/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/dist/node_modules/zod/src/v4/classic/tests/record.test.ts +600 -0
- package/dist/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +582 -0
- package/dist/node_modules/zod/src/v4/classic/tests/refine.test.ts +570 -0
- package/dist/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
- package/dist/node_modules/zod/src/v4/classic/tests/set.test.ts +181 -0
- package/dist/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +134 -0
- package/dist/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
- package/dist/node_modules/zod/src/v4/classic/tests/string.test.ts +1175 -0
- package/dist/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +106 -0
- package/dist/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +771 -0
- package/dist/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
- package/dist/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2975 -0
- package/dist/node_modules/zod/src/v4/classic/tests/transform.test.ts +361 -0
- package/dist/node_modules/zod/src/v4/classic/tests/tuple.test.ts +183 -0
- package/dist/node_modules/zod/src/v4/classic/tests/union.test.ts +219 -0
- package/dist/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- package/dist/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/dist/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/dist/node_modules/zod/src/v4/core/api.ts +1798 -0
- package/dist/node_modules/zod/src/v4/core/checks.ts +1293 -0
- package/dist/node_modules/zod/src/v4/core/config.ts +15 -0
- package/dist/node_modules/zod/src/v4/core/core.ts +138 -0
- package/dist/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/dist/node_modules/zod/src/v4/core/errors.ts +448 -0
- package/dist/node_modules/zod/src/v4/core/index.ts +16 -0
- package/dist/node_modules/zod/src/v4/core/json-schema-generator.ts +126 -0
- package/dist/node_modules/zod/src/v4/core/json-schema-processors.ts +667 -0
- package/dist/node_modules/zod/src/v4/core/json-schema.ts +147 -0
- package/dist/node_modules/zod/src/v4/core/parse.ts +195 -0
- package/dist/node_modules/zod/src/v4/core/regexes.ts +183 -0
- package/dist/node_modules/zod/src/v4/core/registries.ts +105 -0
- package/dist/node_modules/zod/src/v4/core/schemas.ts +4543 -0
- package/dist/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
- package/dist/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
- package/dist/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/es.test.ts +181 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +83 -0
- package/dist/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +67 -0
- package/dist/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
- package/dist/node_modules/zod/src/v4/core/to-json-schema.ts +613 -0
- package/dist/node_modules/zod/src/v4/core/util.ts +966 -0
- package/dist/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/dist/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/dist/node_modules/zod/src/v4/index.ts +4 -0
- package/dist/node_modules/zod/src/v4/locales/ar.ts +115 -0
- package/dist/node_modules/zod/src/v4/locales/az.ts +111 -0
- package/dist/node_modules/zod/src/v4/locales/be.ts +176 -0
- package/dist/node_modules/zod/src/v4/locales/bg.ts +128 -0
- package/dist/node_modules/zod/src/v4/locales/ca.ts +116 -0
- package/dist/node_modules/zod/src/v4/locales/cs.ts +118 -0
- package/dist/node_modules/zod/src/v4/locales/da.ts +123 -0
- package/dist/node_modules/zod/src/v4/locales/de.ts +116 -0
- package/dist/node_modules/zod/src/v4/locales/en.ts +119 -0
- package/dist/node_modules/zod/src/v4/locales/eo.ts +118 -0
- package/dist/node_modules/zod/src/v4/locales/es.ts +141 -0
- package/dist/node_modules/zod/src/v4/locales/fa.ts +126 -0
- package/dist/node_modules/zod/src/v4/locales/fi.ts +121 -0
- package/dist/node_modules/zod/src/v4/locales/fr-CA.ts +116 -0
- package/dist/node_modules/zod/src/v4/locales/fr.ts +116 -0
- package/dist/node_modules/zod/src/v4/locales/he.ts +246 -0
- package/dist/node_modules/zod/src/v4/locales/hu.ts +117 -0
- package/dist/node_modules/zod/src/v4/locales/hy.ts +164 -0
- package/dist/node_modules/zod/src/v4/locales/id.ts +115 -0
- package/dist/node_modules/zod/src/v4/locales/index.ts +49 -0
- package/dist/node_modules/zod/src/v4/locales/is.ts +119 -0
- package/dist/node_modules/zod/src/v4/locales/it.ts +116 -0
- package/dist/node_modules/zod/src/v4/locales/ja.ts +114 -0
- package/dist/node_modules/zod/src/v4/locales/ka.ts +123 -0
- package/dist/node_modules/zod/src/v4/locales/kh.ts +7 -0
- package/dist/node_modules/zod/src/v4/locales/km.ts +119 -0
- package/dist/node_modules/zod/src/v4/locales/ko.ts +121 -0
- package/dist/node_modules/zod/src/v4/locales/lt.ts +239 -0
- package/dist/node_modules/zod/src/v4/locales/mk.ts +118 -0
- package/dist/node_modules/zod/src/v4/locales/ms.ts +115 -0
- package/dist/node_modules/zod/src/v4/locales/nl.ts +121 -0
- package/dist/node_modules/zod/src/v4/locales/no.ts +116 -0
- package/dist/node_modules/zod/src/v4/locales/ota.ts +117 -0
- package/dist/node_modules/zod/src/v4/locales/pl.ts +118 -0
- package/dist/node_modules/zod/src/v4/locales/ps.ts +126 -0
- package/dist/node_modules/zod/src/v4/locales/pt.ts +116 -0
- package/dist/node_modules/zod/src/v4/locales/ru.ts +176 -0
- package/dist/node_modules/zod/src/v4/locales/sl.ts +118 -0
- package/dist/node_modules/zod/src/v4/locales/sv.ts +119 -0
- package/dist/node_modules/zod/src/v4/locales/ta.ts +118 -0
- package/dist/node_modules/zod/src/v4/locales/th.ts +119 -0
- package/dist/node_modules/zod/src/v4/locales/tr.ts +111 -0
- package/dist/node_modules/zod/src/v4/locales/ua.ts +7 -0
- package/dist/node_modules/zod/src/v4/locales/uk.ts +117 -0
- package/dist/node_modules/zod/src/v4/locales/ur.ts +119 -0
- package/dist/node_modules/zod/src/v4/locales/uz.ts +116 -0
- package/dist/node_modules/zod/src/v4/locales/vi.ts +117 -0
- package/dist/node_modules/zod/src/v4/locales/yo.ts +124 -0
- package/dist/node_modules/zod/src/v4/locales/zh-CN.ts +116 -0
- package/dist/node_modules/zod/src/v4/locales/zh-TW.ts +115 -0
- package/dist/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/dist/node_modules/zod/src/v4/mini/coerce.ts +27 -0
- package/dist/node_modules/zod/src/v4/mini/external.ts +40 -0
- package/dist/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/dist/node_modules/zod/src/v4/mini/iso.ts +66 -0
- package/dist/node_modules/zod/src/v4/mini/parse.ts +14 -0
- package/dist/node_modules/zod/src/v4/mini/schemas.ts +1916 -0
- package/dist/node_modules/zod/src/v4/mini/tests/apply.test.ts +24 -0
- package/dist/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/dist/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
- package/dist/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/dist/node_modules/zod/src/v4/mini/tests/codec.test.ts +529 -0
- package/dist/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/dist/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/dist/node_modules/zod/src/v4/mini/tests/functions.test.ts +5 -0
- package/dist/node_modules/zod/src/v4/mini/tests/index.test.ts +963 -0
- package/dist/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/dist/node_modules/zod/src/v4/mini/tests/object.test.ts +227 -0
- package/dist/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/dist/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
- package/dist/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
- package/dist/node_modules/zod/src/v4/mini/tests/string.test.ts +347 -0
- package/dist/node_modules/zod/src/v4-mini/index.ts +1 -0
- package/dist/node_modules/zod/v3/ZodError.cjs +138 -0
- package/dist/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/dist/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/dist/node_modules/zod/v3/ZodError.js +133 -0
- package/dist/node_modules/zod/v3/errors.cjs +17 -0
- package/dist/node_modules/zod/v3/errors.d.cts +5 -0
- package/dist/node_modules/zod/v3/errors.d.ts +5 -0
- package/dist/node_modules/zod/v3/errors.js +9 -0
- package/dist/node_modules/zod/v3/external.cjs +22 -0
- package/dist/node_modules/zod/v3/external.d.cts +6 -0
- package/dist/node_modules/zod/v3/external.d.ts +6 -0
- package/dist/node_modules/zod/v3/external.js +6 -0
- package/dist/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/dist/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/dist/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/dist/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/dist/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/dist/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/dist/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/dist/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/dist/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/dist/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/dist/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/dist/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/dist/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/dist/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/dist/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/dist/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/dist/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/dist/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/dist/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/dist/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/dist/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/dist/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/dist/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/dist/node_modules/zod/v3/helpers/util.js +133 -0
- package/dist/node_modules/zod/v3/index.cjs +33 -0
- package/dist/node_modules/zod/v3/index.d.cts +4 -0
- package/dist/node_modules/zod/v3/index.d.ts +4 -0
- package/dist/node_modules/zod/v3/index.js +4 -0
- package/dist/node_modules/zod/v3/locales/en.cjs +112 -0
- package/dist/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/dist/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/dist/node_modules/zod/v3/locales/en.js +109 -0
- package/dist/node_modules/zod/v3/package.json +6 -0
- package/dist/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/dist/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/dist/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/dist/node_modules/zod/v3/standard-schema.js +1 -0
- package/dist/node_modules/zod/v3/types.cjs +3777 -0
- package/dist/node_modules/zod/v3/types.d.cts +1034 -0
- package/dist/node_modules/zod/v3/types.d.ts +1034 -0
- package/dist/node_modules/zod/v3/types.js +3695 -0
- package/dist/node_modules/zod/v4/classic/checks.cjs +33 -0
- package/dist/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/dist/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/dist/node_modules/zod/v4/classic/checks.js +1 -0
- package/dist/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/dist/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/dist/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/dist/node_modules/zod/v4/classic/coerce.js +17 -0
- package/dist/node_modules/zod/v4/classic/compat.cjs +61 -0
- package/dist/node_modules/zod/v4/classic/compat.d.cts +50 -0
- package/dist/node_modules/zod/v4/classic/compat.d.ts +50 -0
- package/dist/node_modules/zod/v4/classic/compat.js +31 -0
- package/dist/node_modules/zod/v4/classic/errors.cjs +74 -0
- package/dist/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/dist/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/dist/node_modules/zod/v4/classic/errors.js +48 -0
- package/dist/node_modules/zod/v4/classic/external.cjs +73 -0
- package/dist/node_modules/zod/v4/classic/external.d.cts +15 -0
- package/dist/node_modules/zod/v4/classic/external.d.ts +15 -0
- package/dist/node_modules/zod/v4/classic/external.js +20 -0
- package/dist/node_modules/zod/v4/classic/from-json-schema.cjs +610 -0
- package/dist/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/dist/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/dist/node_modules/zod/v4/classic/from-json-schema.js +584 -0
- package/dist/node_modules/zod/v4/classic/index.cjs +33 -0
- package/dist/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/dist/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/dist/node_modules/zod/v4/classic/index.js +4 -0
- package/dist/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/dist/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/dist/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/dist/node_modules/zod/v4/classic/iso.js +30 -0
- package/dist/node_modules/zod/v4/classic/package.json +6 -0
- package/dist/node_modules/zod/v4/classic/parse.cjs +41 -0
- package/dist/node_modules/zod/v4/classic/parse.d.cts +31 -0
- package/dist/node_modules/zod/v4/classic/parse.d.ts +31 -0
- package/dist/node_modules/zod/v4/classic/parse.js +15 -0
- package/dist/node_modules/zod/v4/classic/schemas.cjs +1272 -0
- package/dist/node_modules/zod/v4/classic/schemas.d.cts +739 -0
- package/dist/node_modules/zod/v4/classic/schemas.d.ts +739 -0
- package/dist/node_modules/zod/v4/classic/schemas.js +1157 -0
- package/dist/node_modules/zod/v4/core/api.cjs +1222 -0
- package/dist/node_modules/zod/v4/core/api.d.cts +304 -0
- package/dist/node_modules/zod/v4/core/api.d.ts +304 -0
- package/dist/node_modules/zod/v4/core/api.js +1082 -0
- package/dist/node_modules/zod/v4/core/checks.cjs +601 -0
- package/dist/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/dist/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/dist/node_modules/zod/v4/core/checks.js +575 -0
- package/dist/node_modules/zod/v4/core/core.cjs +83 -0
- package/dist/node_modules/zod/v4/core/core.d.cts +70 -0
- package/dist/node_modules/zod/v4/core/core.d.ts +70 -0
- package/dist/node_modules/zod/v4/core/core.js +76 -0
- package/dist/node_modules/zod/v4/core/doc.cjs +39 -0
- package/dist/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/dist/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/dist/node_modules/zod/v4/core/doc.js +35 -0
- package/dist/node_modules/zod/v4/core/errors.cjs +213 -0
- package/dist/node_modules/zod/v4/core/errors.d.cts +220 -0
- package/dist/node_modules/zod/v4/core/errors.d.ts +220 -0
- package/dist/node_modules/zod/v4/core/errors.js +182 -0
- package/dist/node_modules/zod/v4/core/index.cjs +47 -0
- package/dist/node_modules/zod/v4/core/index.d.cts +16 -0
- package/dist/node_modules/zod/v4/core/index.d.ts +16 -0
- package/dist/node_modules/zod/v4/core/index.js +16 -0
- package/dist/node_modules/zod/v4/core/json-schema-generator.cjs +99 -0
- package/dist/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/dist/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/dist/node_modules/zod/v4/core/json-schema-generator.js +95 -0
- package/dist/node_modules/zod/v4/core/json-schema-processors.cjs +648 -0
- package/dist/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
- package/dist/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
- package/dist/node_modules/zod/v4/core/json-schema-processors.js +605 -0
- package/dist/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/dist/node_modules/zod/v4/core/json-schema.d.cts +88 -0
- package/dist/node_modules/zod/v4/core/json-schema.d.ts +88 -0
- package/dist/node_modules/zod/v4/core/json-schema.js +1 -0
- package/dist/node_modules/zod/v4/core/package.json +6 -0
- package/dist/node_modules/zod/v4/core/parse.cjs +131 -0
- package/dist/node_modules/zod/v4/core/parse.d.cts +49 -0
- package/dist/node_modules/zod/v4/core/parse.d.ts +49 -0
- package/dist/node_modules/zod/v4/core/parse.js +93 -0
- package/dist/node_modules/zod/v4/core/regexes.cjs +166 -0
- package/dist/node_modules/zod/v4/core/regexes.d.cts +79 -0
- package/dist/node_modules/zod/v4/core/regexes.d.ts +79 -0
- package/dist/node_modules/zod/v4/core/regexes.js +133 -0
- package/dist/node_modules/zod/v4/core/registries.cjs +56 -0
- package/dist/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/dist/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/dist/node_modules/zod/v4/core/registries.js +51 -0
- package/dist/node_modules/zod/v4/core/schemas.cjs +2126 -0
- package/dist/node_modules/zod/v4/core/schemas.d.cts +1146 -0
- package/dist/node_modules/zod/v4/core/schemas.d.ts +1146 -0
- package/dist/node_modules/zod/v4/core/schemas.js +2095 -0
- package/dist/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/dist/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
- package/dist/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
- package/dist/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.cjs +446 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.d.cts +114 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.d.ts +114 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.js +437 -0
- package/dist/node_modules/zod/v4/core/util.cjs +710 -0
- package/dist/node_modules/zod/v4/core/util.d.cts +199 -0
- package/dist/node_modules/zod/v4/core/util.d.ts +199 -0
- package/dist/node_modules/zod/v4/core/util.js +651 -0
- package/dist/node_modules/zod/v4/core/versions.cjs +8 -0
- package/dist/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/dist/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/dist/node_modules/zod/v4/core/versions.js +5 -0
- package/dist/node_modules/zod/v4/index.cjs +22 -0
- package/dist/node_modules/zod/v4/index.d.cts +3 -0
- package/dist/node_modules/zod/v4/index.d.ts +3 -0
- package/dist/node_modules/zod/v4/index.js +3 -0
- package/dist/node_modules/zod/v4/locales/ar.cjs +133 -0
- package/dist/node_modules/zod/v4/locales/ar.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ar.js +106 -0
- package/dist/node_modules/zod/v4/locales/az.cjs +132 -0
- package/dist/node_modules/zod/v4/locales/az.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/az.js +105 -0
- package/dist/node_modules/zod/v4/locales/be.cjs +183 -0
- package/dist/node_modules/zod/v4/locales/be.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/be.js +156 -0
- package/dist/node_modules/zod/v4/locales/bg.cjs +147 -0
- package/dist/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/bg.js +120 -0
- package/dist/node_modules/zod/v4/locales/ca.cjs +134 -0
- package/dist/node_modules/zod/v4/locales/ca.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ca.js +107 -0
- package/dist/node_modules/zod/v4/locales/cs.cjs +138 -0
- package/dist/node_modules/zod/v4/locales/cs.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/cs.js +111 -0
- package/dist/node_modules/zod/v4/locales/da.cjs +142 -0
- package/dist/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/da.js +115 -0
- package/dist/node_modules/zod/v4/locales/de.cjs +135 -0
- package/dist/node_modules/zod/v4/locales/de.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/de.js +108 -0
- package/dist/node_modules/zod/v4/locales/en.cjs +136 -0
- package/dist/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/en.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/en.js +109 -0
- package/dist/node_modules/zod/v4/locales/eo.cjs +136 -0
- package/dist/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/eo.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/eo.js +109 -0
- package/dist/node_modules/zod/v4/locales/es.cjs +159 -0
- package/dist/node_modules/zod/v4/locales/es.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/es.js +132 -0
- package/dist/node_modules/zod/v4/locales/fa.cjs +141 -0
- package/dist/node_modules/zod/v4/locales/fa.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/fa.js +114 -0
- package/dist/node_modules/zod/v4/locales/fi.cjs +139 -0
- package/dist/node_modules/zod/v4/locales/fi.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/fi.js +112 -0
- package/dist/node_modules/zod/v4/locales/fr-CA.cjs +134 -0
- package/dist/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/fr-CA.js +107 -0
- package/dist/node_modules/zod/v4/locales/fr.cjs +135 -0
- package/dist/node_modules/zod/v4/locales/fr.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/fr.js +108 -0
- package/dist/node_modules/zod/v4/locales/he.cjs +241 -0
- package/dist/node_modules/zod/v4/locales/he.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/he.js +214 -0
- package/dist/node_modules/zod/v4/locales/hu.cjs +135 -0
- package/dist/node_modules/zod/v4/locales/hu.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/hu.js +108 -0
- package/dist/node_modules/zod/v4/locales/hy.cjs +174 -0
- package/dist/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/hy.js +147 -0
- package/dist/node_modules/zod/v4/locales/id.cjs +133 -0
- package/dist/node_modules/zod/v4/locales/id.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/id.js +106 -0
- package/dist/node_modules/zod/v4/locales/index.cjs +104 -0
- package/dist/node_modules/zod/v4/locales/index.d.cts +49 -0
- package/dist/node_modules/zod/v4/locales/index.d.ts +49 -0
- package/dist/node_modules/zod/v4/locales/index.js +49 -0
- package/dist/node_modules/zod/v4/locales/is.cjs +136 -0
- package/dist/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/is.js +109 -0
- package/dist/node_modules/zod/v4/locales/it.cjs +135 -0
- package/dist/node_modules/zod/v4/locales/it.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/it.js +108 -0
- package/dist/node_modules/zod/v4/locales/ja.cjs +134 -0
- package/dist/node_modules/zod/v4/locales/ja.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ja.js +107 -0
- package/dist/node_modules/zod/v4/locales/ka.cjs +139 -0
- package/dist/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ka.js +112 -0
- package/dist/node_modules/zod/v4/locales/kh.cjs +12 -0
- package/dist/node_modules/zod/v4/locales/kh.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/kh.d.ts +5 -0
- package/dist/node_modules/zod/v4/locales/kh.js +5 -0
- package/dist/node_modules/zod/v4/locales/km.cjs +137 -0
- package/dist/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/km.js +110 -0
- package/dist/node_modules/zod/v4/locales/ko.cjs +138 -0
- package/dist/node_modules/zod/v4/locales/ko.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ko.js +111 -0
- package/dist/node_modules/zod/v4/locales/lt.cjs +230 -0
- package/dist/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/lt.js +203 -0
- package/dist/node_modules/zod/v4/locales/mk.cjs +136 -0
- package/dist/node_modules/zod/v4/locales/mk.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/mk.js +109 -0
- package/dist/node_modules/zod/v4/locales/ms.cjs +134 -0
- package/dist/node_modules/zod/v4/locales/ms.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ms.js +107 -0
- package/dist/node_modules/zod/v4/locales/nl.cjs +137 -0
- package/dist/node_modules/zod/v4/locales/nl.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/nl.js +110 -0
- package/dist/node_modules/zod/v4/locales/no.cjs +135 -0
- package/dist/node_modules/zod/v4/locales/no.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/no.js +108 -0
- package/dist/node_modules/zod/v4/locales/ota.cjs +136 -0
- package/dist/node_modules/zod/v4/locales/ota.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ota.js +109 -0
- package/dist/node_modules/zod/v4/locales/package.json +6 -0
- package/dist/node_modules/zod/v4/locales/pl.cjs +136 -0
- package/dist/node_modules/zod/v4/locales/pl.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/pl.js +109 -0
- package/dist/node_modules/zod/v4/locales/ps.cjs +141 -0
- package/dist/node_modules/zod/v4/locales/ps.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ps.js +114 -0
- package/dist/node_modules/zod/v4/locales/pt.cjs +135 -0
- package/dist/node_modules/zod/v4/locales/pt.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/pt.js +108 -0
- package/dist/node_modules/zod/v4/locales/ru.cjs +183 -0
- package/dist/node_modules/zod/v4/locales/ru.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ru.js +156 -0
- package/dist/node_modules/zod/v4/locales/sl.cjs +136 -0
- package/dist/node_modules/zod/v4/locales/sl.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/sl.js +109 -0
- package/dist/node_modules/zod/v4/locales/sv.cjs +137 -0
- package/dist/node_modules/zod/v4/locales/sv.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/sv.js +110 -0
- package/dist/node_modules/zod/v4/locales/ta.cjs +137 -0
- package/dist/node_modules/zod/v4/locales/ta.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ta.js +110 -0
- package/dist/node_modules/zod/v4/locales/th.cjs +137 -0
- package/dist/node_modules/zod/v4/locales/th.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/th.js +110 -0
- package/dist/node_modules/zod/v4/locales/tr.cjs +132 -0
- package/dist/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/tr.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/tr.js +105 -0
- package/dist/node_modules/zod/v4/locales/ua.cjs +12 -0
- package/dist/node_modules/zod/v4/locales/ua.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ua.d.ts +5 -0
- package/dist/node_modules/zod/v4/locales/ua.js +5 -0
- package/dist/node_modules/zod/v4/locales/uk.cjs +135 -0
- package/dist/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/uk.js +108 -0
- package/dist/node_modules/zod/v4/locales/ur.cjs +137 -0
- package/dist/node_modules/zod/v4/locales/ur.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ur.js +110 -0
- package/dist/node_modules/zod/v4/locales/uz.cjs +136 -0
- package/dist/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/uz.js +109 -0
- package/dist/node_modules/zod/v4/locales/vi.cjs +135 -0
- package/dist/node_modules/zod/v4/locales/vi.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/vi.js +108 -0
- package/dist/node_modules/zod/v4/locales/yo.cjs +134 -0
- package/dist/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/yo.js +107 -0
- package/dist/node_modules/zod/v4/locales/zh-CN.cjs +136 -0
- package/dist/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/zh-CN.js +109 -0
- package/dist/node_modules/zod/v4/locales/zh-TW.cjs +134 -0
- package/dist/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/zh-TW.js +107 -0
- package/dist/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/dist/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/dist/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/dist/node_modules/zod/v4/mini/checks.js +1 -0
- package/dist/node_modules/zod/v4/mini/coerce.cjs +52 -0
- package/dist/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/dist/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/dist/node_modules/zod/v4/mini/coerce.js +22 -0
- package/dist/node_modules/zod/v4/mini/external.cjs +63 -0
- package/dist/node_modules/zod/v4/mini/external.d.cts +12 -0
- package/dist/node_modules/zod/v4/mini/external.d.ts +12 -0
- package/dist/node_modules/zod/v4/mini/external.js +14 -0
- package/dist/node_modules/zod/v4/mini/index.cjs +32 -0
- package/dist/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/dist/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/dist/node_modules/zod/v4/mini/index.js +3 -0
- package/dist/node_modules/zod/v4/mini/iso.cjs +64 -0
- package/dist/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/dist/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/dist/node_modules/zod/v4/mini/iso.js +34 -0
- package/dist/node_modules/zod/v4/mini/package.json +6 -0
- package/dist/node_modules/zod/v4/mini/parse.cjs +16 -0
- package/dist/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/dist/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/dist/node_modules/zod/v4/mini/parse.js +1 -0
- package/dist/node_modules/zod/v4/mini/schemas.cjs +1046 -0
- package/dist/node_modules/zod/v4/mini/schemas.d.cts +427 -0
- package/dist/node_modules/zod/v4/mini/schemas.d.ts +427 -0
- package/dist/node_modules/zod/v4/mini/schemas.js +925 -0
- package/dist/node_modules/zod/v4/package.json +6 -0
- package/dist/node_modules/zod/v4-mini/index.cjs +17 -0
- package/dist/node_modules/zod/v4-mini/index.d.cts +1 -0
- package/dist/node_modules/zod/v4-mini/index.d.ts +1 -0
- package/dist/node_modules/zod/v4-mini/index.js +1 -0
- package/dist/node_modules/zod/v4-mini/package.json +6 -0
- package/dist/server/actions/git-actions.js +43 -23
- package/dist/server/actions/gitlab-api.d.ts +4 -0
- package/dist/server/actions/gitlab-api.js +376 -0
- package/dist/server/actions/poller.d.ts +8 -0
- package/dist/server/actions/poller.js +55 -0
- package/dist/server/actions/review.d.ts +37 -0
- package/dist/server/actions/review.js +620 -0
- package/dist/server/ai-tools.d.ts +10 -0
- package/dist/server/ai-tools.js +278 -0
- package/dist/server/collections/gitCodeReviews.d.ts +2 -0
- package/dist/server/collections/gitCodeReviews.js +221 -0
- package/dist/server/collections/gitRepositories.d.ts +1 -1
- package/dist/server/collections/gitRepositories.js +22 -1
- package/dist/server/collections/gitReviewFlows.d.ts +2 -0
- package/dist/server/collections/gitReviewFlows.js +138 -0
- package/dist/server/plugin.d.ts +2 -0
- package/dist/server/plugin.js +69 -3
- package/dist/server/poller.d.ts +30 -0
- package/dist/server/poller.js +317 -0
- package/dist/server/utils/gitlab-url.d.ts +21 -0
- package/dist/server/utils/gitlab-url.js +47 -0
- package/dist/server/utils/redact.d.ts +13 -0
- package/dist/server/utils/redact.js +49 -0
- package/package.json +6 -1
- package/src/client/ai-context.tsx +114 -0
- package/src/client/components/AIEmployeeSelect.tsx +63 -0
- package/src/client/components/CommitHistory.tsx +14 -0
- package/src/client/components/GitManagerSettings.tsx +44 -1
- package/src/client/components/MarkdownView.tsx +83 -0
- package/src/client/components/MergeRequests.tsx +681 -0
- package/src/client/components/PollingStatus.tsx +194 -0
- package/src/client/components/RepositoryConfig.tsx +38 -3
- package/src/client/components/ReviewFlows.tsx +255 -0
- package/src/client/components/ReviewHistory.tsx +517 -0
- package/src/client/components/RunReviewButton.tsx +278 -0
- package/src/client/index.tsx +12 -0
- package/src/locale/en-US.json +137 -1
- package/src/locale/vi-VN.json +137 -1
- package/src/server/actions/git-actions.ts +56 -23
- package/src/server/actions/gitlab-api.ts +379 -0
- package/src/server/actions/poller.ts +26 -0
- package/src/server/actions/review.ts +751 -0
- package/src/server/ai-tools.ts +263 -0
- package/src/server/collections/gitCodeReviews.ts +191 -0
- package/src/server/collections/gitRepositories.ts +22 -1
- package/src/server/collections/gitReviewFlows.ts +108 -0
- package/src/server/plugin.ts +72 -0
- package/src/server/poller.ts +344 -0
- package/src/server/utils/gitlab-url.ts +35 -0
- package/src/server/utils/redact.ts +24 -0
- package/dist/client/100.e08d760e0b01997c.js +0 -10
package/dist/server/plugin.d.ts
CHANGED
|
@@ -2,5 +2,7 @@ import { Plugin } from '@nocobase/server';
|
|
|
2
2
|
export declare class PluginGitManagerServer extends Plugin {
|
|
3
3
|
load(): Promise<void>;
|
|
4
4
|
install(): Promise<void>;
|
|
5
|
+
beforeDisable(): Promise<void>;
|
|
6
|
+
beforeUnload(): Promise<void>;
|
|
5
7
|
}
|
|
6
8
|
export default PluginGitManagerServer;
|
package/dist/server/plugin.js
CHANGED
|
@@ -43,6 +43,12 @@ module.exports = __toCommonJS(plugin_exports);
|
|
|
43
43
|
var import_server = require("@nocobase/server");
|
|
44
44
|
var import_path = require("path");
|
|
45
45
|
var gitActions = __toESM(require("./actions/git-actions"));
|
|
46
|
+
var gitlabApi = __toESM(require("./actions/gitlab-api"));
|
|
47
|
+
var reviewActions = __toESM(require("./actions/review"));
|
|
48
|
+
var pollerActions = __toESM(require("./actions/poller"));
|
|
49
|
+
var import_review = require("./actions/review");
|
|
50
|
+
var import_ai_tools = require("./ai-tools");
|
|
51
|
+
var import_poller = require("./poller");
|
|
46
52
|
class PluginGitManagerServer extends import_server.Plugin {
|
|
47
53
|
async load() {
|
|
48
54
|
await this.db.import({
|
|
@@ -62,21 +68,53 @@ class PluginGitManagerServer extends import_server.Plugin {
|
|
|
62
68
|
checkout: gitActions.checkout,
|
|
63
69
|
fileTree: gitActions.fileTree,
|
|
64
70
|
fileContent: gitActions.fileContent,
|
|
65
|
-
commitDetail: gitActions.commitDetail
|
|
71
|
+
commitDetail: gitActions.commitDetail,
|
|
72
|
+
mergeRequests: gitlabApi.mergeRequests,
|
|
73
|
+
mergeRequestDetail: gitlabApi.mergeRequestDetail,
|
|
74
|
+
mergeRequestNotes: gitlabApi.mergeRequestNotes,
|
|
75
|
+
triggerReview: reviewActions.triggerReview,
|
|
76
|
+
reviewApprovePost: reviewActions.reviewApprovePost,
|
|
77
|
+
reviewReject: reviewActions.reviewReject,
|
|
78
|
+
pollNow: pollerActions.pollNow,
|
|
79
|
+
pollerStatus: pollerActions.pollerStatus
|
|
66
80
|
}
|
|
67
81
|
});
|
|
82
|
+
(0, import_ai_tools.registerGitReviewAiTools)(this.app);
|
|
83
|
+
this.app.on("afterStart", () => {
|
|
84
|
+
(0, import_review.recoverStuckReviews)(this.app).catch(
|
|
85
|
+
(err) => {
|
|
86
|
+
var _a, _b;
|
|
87
|
+
return (_b = (_a = this.app.log) == null ? void 0 : _a.error) == null ? void 0 : _b.call(_a, "plugin-git-manager: recoverStuckReviews error", err);
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
(0, import_poller.startPoller)(this.app);
|
|
91
|
+
});
|
|
92
|
+
this.app.on("beforeStop", () => {
|
|
93
|
+
(0, import_poller.stopPoller)();
|
|
94
|
+
});
|
|
95
|
+
this.app.on("beforeDestroy", () => {
|
|
96
|
+
(0, import_poller.stopPoller)();
|
|
97
|
+
});
|
|
68
98
|
this.app.acl.registerSnippet({
|
|
69
99
|
name: `pm.${this.name}.read`,
|
|
70
100
|
actions: [
|
|
71
101
|
"gitRepositories:list",
|
|
72
102
|
"gitRepositories:get",
|
|
103
|
+
"gitReviewFlows:list",
|
|
104
|
+
"gitReviewFlows:get",
|
|
105
|
+
"gitCodeReviews:list",
|
|
106
|
+
"gitCodeReviews:get",
|
|
73
107
|
"gitManager:status",
|
|
74
108
|
"gitManager:log",
|
|
75
109
|
"gitManager:branches",
|
|
76
110
|
"gitManager:diff",
|
|
77
111
|
"gitManager:fileTree",
|
|
78
112
|
"gitManager:fileContent",
|
|
79
|
-
"gitManager:commitDetail"
|
|
113
|
+
"gitManager:commitDetail",
|
|
114
|
+
"gitManager:mergeRequests",
|
|
115
|
+
"gitManager:mergeRequestDetail",
|
|
116
|
+
"gitManager:mergeRequestNotes",
|
|
117
|
+
"gitManager:pollerStatus"
|
|
80
118
|
]
|
|
81
119
|
});
|
|
82
120
|
this.app.acl.registerSnippet({
|
|
@@ -85,13 +123,35 @@ class PluginGitManagerServer extends import_server.Plugin {
|
|
|
85
123
|
"gitRepositories:create",
|
|
86
124
|
"gitRepositories:update",
|
|
87
125
|
"gitRepositories:destroy",
|
|
126
|
+
"gitReviewFlows:create",
|
|
127
|
+
"gitReviewFlows:update",
|
|
128
|
+
"gitReviewFlows:destroy",
|
|
129
|
+
"gitCodeReviews:create",
|
|
130
|
+
"gitCodeReviews:update",
|
|
131
|
+
"gitCodeReviews:destroy",
|
|
88
132
|
"gitManager:clone",
|
|
89
133
|
"gitManager:pull",
|
|
90
134
|
"gitManager:push",
|
|
91
135
|
"gitManager:fetch",
|
|
92
|
-
"gitManager:checkout"
|
|
136
|
+
"gitManager:checkout",
|
|
137
|
+
"gitManager:triggerReview",
|
|
138
|
+
"gitManager:reviewApprovePost",
|
|
139
|
+
"gitManager:reviewReject",
|
|
140
|
+
"gitManager:pollNow"
|
|
93
141
|
]
|
|
94
142
|
});
|
|
143
|
+
this.app.resourceManager.use(async (ctx, next) => {
|
|
144
|
+
var _a, _b, _c, _d, _e;
|
|
145
|
+
if (((_a = ctx.action) == null ? void 0 : _a.resourceName) === "gitRepositories" && ["create", "update"].includes((_b = ctx.action) == null ? void 0 : _b.actionName)) {
|
|
146
|
+
if (((_d = (_c = ctx.action.params) == null ? void 0 : _c.values) == null ? void 0 : _d.pat) === "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022") {
|
|
147
|
+
delete ctx.action.params.values.pat;
|
|
148
|
+
}
|
|
149
|
+
if (((_e = ctx.request.body) == null ? void 0 : _e.pat) === "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022") {
|
|
150
|
+
delete ctx.request.body.pat;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
return next();
|
|
154
|
+
});
|
|
95
155
|
this.app.resourceManager.use(async (ctx, next) => {
|
|
96
156
|
var _a, _b;
|
|
97
157
|
if (((_a = ctx.action) == null ? void 0 : _a.resourceName) !== "gitRepositories") {
|
|
@@ -112,6 +172,12 @@ class PluginGitManagerServer extends import_server.Plugin {
|
|
|
112
172
|
}
|
|
113
173
|
async install() {
|
|
114
174
|
}
|
|
175
|
+
async beforeDisable() {
|
|
176
|
+
(0, import_poller.stopPoller)();
|
|
177
|
+
}
|
|
178
|
+
async beforeUnload() {
|
|
179
|
+
(0, import_poller.stopPoller)();
|
|
180
|
+
}
|
|
115
181
|
}
|
|
116
182
|
var plugin_default = PluginGitManagerServer;
|
|
117
183
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Application } from '@nocobase/server';
|
|
2
|
+
/**
|
|
3
|
+
* Start the background poller. Idempotent — calling twice is a no-op.
|
|
4
|
+
* The poller scans repos with autoReview=true, lists their open MRs from GitLab,
|
|
5
|
+
* and triggers a review if no record exists for the MR's current head SHA.
|
|
6
|
+
*/
|
|
7
|
+
export declare function startPoller(app: Application): void;
|
|
8
|
+
export declare function stopPoller(): void;
|
|
9
|
+
export declare function getPollerStatus(): {
|
|
10
|
+
running: boolean;
|
|
11
|
+
polling: boolean;
|
|
12
|
+
lastTickAt: string;
|
|
13
|
+
lastError: string;
|
|
14
|
+
intervalSec: number;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Run one poll cycle for all auto-enabled repos. Public so that the
|
|
18
|
+
* gitManager:pollNow action can force a tick on demand.
|
|
19
|
+
*/
|
|
20
|
+
export declare function pollAllRepos(app: Application): Promise<{
|
|
21
|
+
scanned: number;
|
|
22
|
+
triggered: number;
|
|
23
|
+
}>;
|
|
24
|
+
/**
|
|
25
|
+
* Poll a single repo for MR changes. Returns counts.
|
|
26
|
+
*/
|
|
27
|
+
export declare function pollOneRepo(app: Application, repo: any): Promise<{
|
|
28
|
+
scanned: number;
|
|
29
|
+
triggered: number;
|
|
30
|
+
}>;
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __export = (target, all) => {
|
|
15
|
+
for (var name in all)
|
|
16
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
+
for (let key of __getOwnPropNames(from))
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
+
var poller_exports = {};
|
|
28
|
+
__export(poller_exports, {
|
|
29
|
+
getPollerStatus: () => getPollerStatus,
|
|
30
|
+
pollAllRepos: () => pollAllRepos,
|
|
31
|
+
pollOneRepo: () => pollOneRepo,
|
|
32
|
+
startPoller: () => startPoller,
|
|
33
|
+
stopPoller: () => stopPoller
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(poller_exports);
|
|
36
|
+
var import_review = require("./actions/review");
|
|
37
|
+
var import_gitlab_url = require("./utils/gitlab-url");
|
|
38
|
+
const POLL_INTERVAL_MS = 5 * 60 * 1e3;
|
|
39
|
+
const MR_PAGE_SIZE = 50;
|
|
40
|
+
const STALE_POLL_TIMEOUT_MS = 10 * 60 * 1e3;
|
|
41
|
+
let timer = null;
|
|
42
|
+
let isPolling = false;
|
|
43
|
+
let pollStartedAt = null;
|
|
44
|
+
let lastTickAt = null;
|
|
45
|
+
let lastError = null;
|
|
46
|
+
function startPoller(app) {
|
|
47
|
+
var _a, _b;
|
|
48
|
+
if (timer) return;
|
|
49
|
+
(_b = (_a = app.log) == null ? void 0 : _a.info) == null ? void 0 : _b.call(_a, "plugin-git-manager: starting MR poller (interval 5min)");
|
|
50
|
+
timer = setInterval(() => tick(app).catch((e) => {
|
|
51
|
+
var _a2, _b2;
|
|
52
|
+
return (_b2 = (_a2 = app.log) == null ? void 0 : _a2.error) == null ? void 0 : _b2.call(_a2, "poller tick error", e);
|
|
53
|
+
}), POLL_INTERVAL_MS);
|
|
54
|
+
}
|
|
55
|
+
function stopPoller() {
|
|
56
|
+
if (timer) {
|
|
57
|
+
clearInterval(timer);
|
|
58
|
+
timer = null;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function getPollerStatus() {
|
|
62
|
+
return {
|
|
63
|
+
running: !!timer,
|
|
64
|
+
polling: isPolling,
|
|
65
|
+
lastTickAt: (lastTickAt == null ? void 0 : lastTickAt.toISOString()) ?? null,
|
|
66
|
+
lastError,
|
|
67
|
+
intervalSec: POLL_INTERVAL_MS / 1e3
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
const ADVISORY_LOCK_KEY = 777042;
|
|
71
|
+
async function tryAcquirePollerLock(app) {
|
|
72
|
+
var _a, _b, _c;
|
|
73
|
+
const noop = { release: async () => void 0 };
|
|
74
|
+
const sequelize = app.db.sequelize;
|
|
75
|
+
if (!sequelize) return noop;
|
|
76
|
+
const dialect = (_a = sequelize.getDialect) == null ? void 0 : _a.call(sequelize);
|
|
77
|
+
if (dialect !== "postgres" && dialect !== "mysql" && dialect !== "mariadb") {
|
|
78
|
+
return noop;
|
|
79
|
+
}
|
|
80
|
+
let transaction;
|
|
81
|
+
try {
|
|
82
|
+
transaction = await sequelize.transaction();
|
|
83
|
+
} catch {
|
|
84
|
+
return noop;
|
|
85
|
+
}
|
|
86
|
+
try {
|
|
87
|
+
let acquired = false;
|
|
88
|
+
if (dialect === "postgres") {
|
|
89
|
+
const [results] = await sequelize.query(
|
|
90
|
+
`SELECT pg_try_advisory_lock(${ADVISORY_LOCK_KEY}) AS locked`,
|
|
91
|
+
{ transaction }
|
|
92
|
+
);
|
|
93
|
+
acquired = ((_b = results == null ? void 0 : results[0]) == null ? void 0 : _b.locked) === true;
|
|
94
|
+
} else {
|
|
95
|
+
const [results] = await sequelize.query(
|
|
96
|
+
`SELECT GET_LOCK('git_poller', 0) AS locked`,
|
|
97
|
+
{ transaction }
|
|
98
|
+
);
|
|
99
|
+
const v = (_c = results == null ? void 0 : results[0]) == null ? void 0 : _c.locked;
|
|
100
|
+
acquired = v === 1 || v === "1" || v === true;
|
|
101
|
+
}
|
|
102
|
+
if (!acquired) {
|
|
103
|
+
try {
|
|
104
|
+
await transaction.rollback();
|
|
105
|
+
} catch {
|
|
106
|
+
}
|
|
107
|
+
return null;
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
release: async () => {
|
|
111
|
+
try {
|
|
112
|
+
if (dialect === "postgres") {
|
|
113
|
+
await sequelize.query(
|
|
114
|
+
`SELECT pg_advisory_unlock(${ADVISORY_LOCK_KEY})`,
|
|
115
|
+
{ transaction }
|
|
116
|
+
);
|
|
117
|
+
} else {
|
|
118
|
+
await sequelize.query(
|
|
119
|
+
`SELECT RELEASE_LOCK('git_poller')`,
|
|
120
|
+
{ transaction }
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
} catch {
|
|
124
|
+
} finally {
|
|
125
|
+
try {
|
|
126
|
+
await transaction.commit();
|
|
127
|
+
} catch {
|
|
128
|
+
try {
|
|
129
|
+
await transaction.rollback();
|
|
130
|
+
} catch {
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
} catch {
|
|
137
|
+
try {
|
|
138
|
+
await transaction.rollback();
|
|
139
|
+
} catch {
|
|
140
|
+
}
|
|
141
|
+
return noop;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
async function pollAllRepos(app) {
|
|
145
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
146
|
+
if (isPolling) {
|
|
147
|
+
if (pollStartedAt && Date.now() - pollStartedAt > STALE_POLL_TIMEOUT_MS) {
|
|
148
|
+
(_b = (_a = app.log) == null ? void 0 : _a.warn) == null ? void 0 : _b.call(_a, "poller: stale isPolling flag detected \u2014 forcibly resetting");
|
|
149
|
+
isPolling = false;
|
|
150
|
+
pollStartedAt = null;
|
|
151
|
+
} else {
|
|
152
|
+
return { scanned: 0, triggered: 0 };
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
const lock = await tryAcquirePollerLock(app);
|
|
156
|
+
if (!lock) {
|
|
157
|
+
(_d = (_c = app.log) == null ? void 0 : _c.debug) == null ? void 0 : _d.call(_c, "poller: another node holds the advisory lock \u2014 skipping");
|
|
158
|
+
return { scanned: 0, triggered: 0 };
|
|
159
|
+
}
|
|
160
|
+
isPolling = true;
|
|
161
|
+
pollStartedAt = Date.now();
|
|
162
|
+
lastTickAt = /* @__PURE__ */ new Date();
|
|
163
|
+
lastError = null;
|
|
164
|
+
let scanned = 0;
|
|
165
|
+
let triggered = 0;
|
|
166
|
+
try {
|
|
167
|
+
const reposRepo = app.db.getRepository("gitRepositories");
|
|
168
|
+
const repos = await reposRepo.find({ filter: { autoReview: true } });
|
|
169
|
+
for (const repo of repos) {
|
|
170
|
+
try {
|
|
171
|
+
const result = await pollOneRepo(app, repo);
|
|
172
|
+
scanned += result.scanned;
|
|
173
|
+
triggered += result.triggered;
|
|
174
|
+
} catch (err) {
|
|
175
|
+
(_f = (_e = app.log) == null ? void 0 : _e.error) == null ? void 0 : _f.call(_e, `poller: repo ${repo.get("id")} failed: ${err == null ? void 0 : err.message}`);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
} catch (err) {
|
|
179
|
+
lastError = (err == null ? void 0 : err.message) || String(err);
|
|
180
|
+
(_h = (_g = app.log) == null ? void 0 : _g.error) == null ? void 0 : _h.call(_g, "poller: cycle failed", err);
|
|
181
|
+
} finally {
|
|
182
|
+
isPolling = false;
|
|
183
|
+
pollStartedAt = null;
|
|
184
|
+
await lock.release();
|
|
185
|
+
}
|
|
186
|
+
return { scanned, triggered };
|
|
187
|
+
}
|
|
188
|
+
async function tick(app) {
|
|
189
|
+
await pollAllRepos(app);
|
|
190
|
+
}
|
|
191
|
+
async function pollOneRepo(app, repo) {
|
|
192
|
+
var _a, _b;
|
|
193
|
+
const flowsRepo = app.db.getRepository("gitReviewFlows");
|
|
194
|
+
const reviewsRepo = app.db.getRepository("gitCodeReviews");
|
|
195
|
+
const reposRepo = app.db.getRepository("gitRepositories");
|
|
196
|
+
const flows = await flowsRepo.find({
|
|
197
|
+
filter: {
|
|
198
|
+
enabled: true,
|
|
199
|
+
triggerMode: { $in: ["onMergeRequestCreated", "both"] },
|
|
200
|
+
$or: [{ repositoryId: repo.get("id") }, { repositoryId: null }]
|
|
201
|
+
},
|
|
202
|
+
sort: ["-repositoryId"]
|
|
203
|
+
});
|
|
204
|
+
if (!(flows == null ? void 0 : flows.length)) return { scanned: 0, triggered: 0 };
|
|
205
|
+
const pat = repo.get("pat");
|
|
206
|
+
if (!pat) return { scanned: 0, triggered: 0 };
|
|
207
|
+
const lastPolledAt = repo.get("lastPolledAt");
|
|
208
|
+
const mrs = await listMergeRequests(repo, lastPolledAt);
|
|
209
|
+
let triggered = 0;
|
|
210
|
+
for (const mr of mrs) {
|
|
211
|
+
const flow = flows.find((f) => (0, import_review.branchMatches)(f, mr.source_branch));
|
|
212
|
+
if (!flow) continue;
|
|
213
|
+
const existing = await reviewsRepo.findOne({
|
|
214
|
+
filter: {
|
|
215
|
+
repositoryId: repo.get("id"),
|
|
216
|
+
targetType: "mr",
|
|
217
|
+
mrIid: mr.iid
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
if (existing) {
|
|
221
|
+
if (existing.get("latestSha") !== mr.sha) {
|
|
222
|
+
await reviewsRepo.update({
|
|
223
|
+
filterByTk: existing.get("id"),
|
|
224
|
+
values: { latestSha: mr.sha }
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
continue;
|
|
228
|
+
}
|
|
229
|
+
try {
|
|
230
|
+
await (0, import_review.triggerReviewInternal)(app, {
|
|
231
|
+
flowId: flow.get("id"),
|
|
232
|
+
repositoryId: repo.get("id"),
|
|
233
|
+
targetType: "mr",
|
|
234
|
+
mrIid: mr.iid,
|
|
235
|
+
branch: mr.source_branch,
|
|
236
|
+
headSha: mr.sha,
|
|
237
|
+
triggeredBy: "poll"
|
|
238
|
+
});
|
|
239
|
+
triggered++;
|
|
240
|
+
} catch (err) {
|
|
241
|
+
(_b = (_a = app.log) == null ? void 0 : _a.error) == null ? void 0 : _b.call(_a, `poller: triggerReviewInternal failed for MR !${mr.iid}: ${err == null ? void 0 : err.message}`);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
await reposRepo.update({
|
|
245
|
+
filterByTk: repo.get("id"),
|
|
246
|
+
values: { lastPolledAt: /* @__PURE__ */ new Date() }
|
|
247
|
+
});
|
|
248
|
+
return { scanned: mrs.length, triggered };
|
|
249
|
+
}
|
|
250
|
+
async function listMergeRequests(repo, updatedAfter) {
|
|
251
|
+
const repoUrl = repo.get("repoUrl");
|
|
252
|
+
const pat = repo.get("pat");
|
|
253
|
+
const isGitHub = typeof repoUrl === "string" && repoUrl.includes("github.com");
|
|
254
|
+
if (isGitHub) {
|
|
255
|
+
const { projectPath } = (0, import_gitlab_url.parseGitLabProject)(repoUrl);
|
|
256
|
+
const params2 = new URLSearchParams({
|
|
257
|
+
state: "open",
|
|
258
|
+
per_page: String(MR_PAGE_SIZE),
|
|
259
|
+
sort: "updated",
|
|
260
|
+
direction: "desc"
|
|
261
|
+
});
|
|
262
|
+
const headers = { Accept: "application/vnd.github.v3+json" };
|
|
263
|
+
if (pat) headers["Authorization"] = `Bearer ${pat}`;
|
|
264
|
+
const response2 = await fetch(
|
|
265
|
+
`https://api.github.com/repos/${projectPath}/pulls?${params2.toString()}`,
|
|
266
|
+
{ headers }
|
|
267
|
+
);
|
|
268
|
+
if (!response2.ok) {
|
|
269
|
+
const body = await response2.text().catch(() => "");
|
|
270
|
+
throw new Error(`GitHub API error ${response2.status}: ${body}`);
|
|
271
|
+
}
|
|
272
|
+
let prs = await response2.json();
|
|
273
|
+
if (Array.isArray(prs) && updatedAfter) {
|
|
274
|
+
const cutoff = updatedAfter.getTime() - 1e3;
|
|
275
|
+
prs = prs.filter((pr) => {
|
|
276
|
+
const t = (pr == null ? void 0 : pr.updated_at) ? new Date(pr.updated_at).getTime() : 0;
|
|
277
|
+
return t >= cutoff;
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
return (prs || []).map((pr) => {
|
|
281
|
+
var _a, _b, _c;
|
|
282
|
+
return {
|
|
283
|
+
iid: pr.number,
|
|
284
|
+
sha: (_a = pr.head) == null ? void 0 : _a.sha,
|
|
285
|
+
source_branch: (_b = pr.head) == null ? void 0 : _b.ref,
|
|
286
|
+
target_branch: (_c = pr.base) == null ? void 0 : _c.ref
|
|
287
|
+
};
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
const { apiBase, encodedProject } = (0, import_gitlab_url.parseGitLabProject)(repoUrl);
|
|
291
|
+
const params = new URLSearchParams({
|
|
292
|
+
state: "opened",
|
|
293
|
+
per_page: String(MR_PAGE_SIZE),
|
|
294
|
+
order_by: "updated_at",
|
|
295
|
+
sort: "desc"
|
|
296
|
+
});
|
|
297
|
+
if (updatedAfter) {
|
|
298
|
+
const safeBound = new Date(updatedAfter.getTime() - 1e3);
|
|
299
|
+
params.set("updated_after", safeBound.toISOString());
|
|
300
|
+
}
|
|
301
|
+
const response = await fetch(`${apiBase}/projects/${encodedProject}/merge_requests?${params.toString()}`, {
|
|
302
|
+
headers: { "PRIVATE-TOKEN": pat, Accept: "application/json" }
|
|
303
|
+
});
|
|
304
|
+
if (!response.ok) {
|
|
305
|
+
const body = await response.text().catch(() => "");
|
|
306
|
+
throw new Error(`GitLab API error ${response.status}: ${body}`);
|
|
307
|
+
}
|
|
308
|
+
return response.json();
|
|
309
|
+
}
|
|
310
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
311
|
+
0 && (module.exports = {
|
|
312
|
+
getPollerStatus,
|
|
313
|
+
pollAllRepos,
|
|
314
|
+
pollOneRepo,
|
|
315
|
+
startPoller,
|
|
316
|
+
stopPoller
|
|
317
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared utility for parsing GitLab repository URLs.
|
|
3
|
+
* Extracted to avoid duplicating URL-parsing logic across
|
|
4
|
+
* gitlab-api.ts, poller.ts, and review.ts.
|
|
5
|
+
*/
|
|
6
|
+
export interface GitLabProject {
|
|
7
|
+
/** Full API base URL, e.g. https://gitlab.com/api/v4 */
|
|
8
|
+
apiBase: string;
|
|
9
|
+
/** Raw project path, e.g. group/sub/project */
|
|
10
|
+
projectPath: string;
|
|
11
|
+
/** URL-encoded project path for use in API endpoints */
|
|
12
|
+
encodedProject: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Extract GitLab API base URL and project path from a repository URL.
|
|
16
|
+
* Supports: https://gitlab.com/group/project.git
|
|
17
|
+
* https://self-hosted.gitlab.com/group/sub/project.git
|
|
18
|
+
*
|
|
19
|
+
* @throws Error if the URL cannot be parsed or has no project path
|
|
20
|
+
*/
|
|
21
|
+
export declare function parseGitLabProject(repoUrl: string): GitLabProject;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __export = (target, all) => {
|
|
15
|
+
for (var name in all)
|
|
16
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
+
for (let key of __getOwnPropNames(from))
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
+
var gitlab_url_exports = {};
|
|
28
|
+
__export(gitlab_url_exports, {
|
|
29
|
+
parseGitLabProject: () => parseGitLabProject
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(gitlab_url_exports);
|
|
32
|
+
function parseGitLabProject(repoUrl) {
|
|
33
|
+
const url = new URL(repoUrl);
|
|
34
|
+
const projectPath = url.pathname.replace(/\.git$/, "").replace(/^\//, "");
|
|
35
|
+
if (!projectPath) {
|
|
36
|
+
throw new Error("Cannot extract project path from repository URL");
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
apiBase: `${url.protocol}//${url.host}/api/v4`,
|
|
40
|
+
projectPath,
|
|
41
|
+
encodedProject: encodeURIComponent(projectPath)
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
45
|
+
0 && (module.exports = {
|
|
46
|
+
parseGitLabProject
|
|
47
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Redact embedded credentials from URLs in arbitrary strings.
|
|
3
|
+
* Matches `scheme://user:password@host` and replaces with `scheme://***:***@host`.
|
|
4
|
+
* Used to scrub error messages before persisting them to the DB or
|
|
5
|
+
* returning them to the client, since simple-git often echoes the
|
|
6
|
+
* authenticated remote URL in stderr.
|
|
7
|
+
*/
|
|
8
|
+
export declare function redactPat(s: unknown): string;
|
|
9
|
+
/**
|
|
10
|
+
* Mutate `err.message` (and common fields where simple-git stashes stderr)
|
|
11
|
+
* to remove any embedded PAT before the error propagates further.
|
|
12
|
+
*/
|
|
13
|
+
export declare function redactError<T>(err: T): T;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __export = (target, all) => {
|
|
15
|
+
for (var name in all)
|
|
16
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
+
for (let key of __getOwnPropNames(from))
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
+
var redact_exports = {};
|
|
28
|
+
__export(redact_exports, {
|
|
29
|
+
redactError: () => redactError,
|
|
30
|
+
redactPat: () => redactPat
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(redact_exports);
|
|
33
|
+
function redactPat(s) {
|
|
34
|
+
if (typeof s !== "string") return s == null ? "" : String(s);
|
|
35
|
+
return s.replace(/(https?:\/\/)([^\/:@\s]+):([^@\s]+)@/g, "$1***:***@");
|
|
36
|
+
}
|
|
37
|
+
function redactError(err) {
|
|
38
|
+
if (!err || typeof err !== "object") return err;
|
|
39
|
+
const e = err;
|
|
40
|
+
if (typeof e.message === "string") e.message = redactPat(e.message);
|
|
41
|
+
if (typeof e.stderr === "string") e.stderr = redactPat(e.stderr);
|
|
42
|
+
if (typeof e.stdout === "string") e.stdout = redactPat(e.stdout);
|
|
43
|
+
return err;
|
|
44
|
+
}
|
|
45
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
46
|
+
0 && (module.exports = {
|
|
47
|
+
redactError,
|
|
48
|
+
redactPat
|
|
49
|
+
});
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"displayName": "Git Manager",
|
|
4
4
|
"displayName.zh-CN": "Git 管理器",
|
|
5
5
|
"description": "Manage Git repositories with PAT authentication - pull, push, fetch, diff, file browsing",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.11",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"main": "dist/server/index.js",
|
|
9
9
|
"files": [
|
|
@@ -26,6 +26,11 @@
|
|
|
26
26
|
"@nocobase/database": "2.x",
|
|
27
27
|
"@nocobase/test": "2.x"
|
|
28
28
|
},
|
|
29
|
+
"optionalPeerDependencies": {
|
|
30
|
+
"@nocobase/ai": "2.x",
|
|
31
|
+
"@nocobase/plugin-ai": "2.x",
|
|
32
|
+
"@nocobase/plugin-field-markdown-vditor": "2.x"
|
|
33
|
+
},
|
|
29
34
|
"dependencies": {
|
|
30
35
|
"simple-git": "^3.27.0"
|
|
31
36
|
}
|