plugin-git-manager 1.0.3 → 1.0.10
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 +24 -9
- package/dist/server/actions/gitlab-api.d.ts +4 -0
- package/dist/server/actions/gitlab-api.js +363 -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 +36 -0
- package/dist/server/actions/review.js +529 -0
- package/dist/server/ai-tools.d.ts +10 -0
- package/dist/server/ai-tools.js +230 -0
- package/dist/server/collections/gitCodeReviews.d.ts +2 -0
- package/dist/server/collections/gitCodeReviews.js +221 -0
- package/dist/server/collections/gitRepositories.js +21 -0
- 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 +62 -3
- package/dist/server/poller.d.ts +30 -0
- package/dist/server/poller.js +241 -0
- package/dist/server/utils/gitlab-url.d.ts +21 -0
- package/dist/server/utils/gitlab-url.js +47 -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 +28 -9
- package/src/server/actions/gitlab-api.ts +356 -0
- package/src/server/actions/poller.ts +26 -0
- package/src/server/actions/review.ts +605 -0
- package/src/server/ai-tools.ts +204 -0
- package/src/server/collections/gitCodeReviews.ts +191 -0
- package/src/server/collections/gitRepositories.ts +21 -0
- package/src/server/collections/gitReviewFlows.ts +108 -0
- package/src/server/plugin.ts +67 -0
- package/src/server/poller.ts +258 -0
- package/src/server/utils/gitlab-url.ts +35 -0
- package/dist/client/100.e08d760e0b01997c.js +0 -10
package/dist/server/plugin.js
CHANGED
|
@@ -43,6 +43,11 @@ 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_ai_tools = require("./ai-tools");
|
|
50
|
+
var import_poller = require("./poller");
|
|
46
51
|
class PluginGitManagerServer extends import_server.Plugin {
|
|
47
52
|
async load() {
|
|
48
53
|
await this.db.import({
|
|
@@ -62,21 +67,47 @@ class PluginGitManagerServer extends import_server.Plugin {
|
|
|
62
67
|
checkout: gitActions.checkout,
|
|
63
68
|
fileTree: gitActions.fileTree,
|
|
64
69
|
fileContent: gitActions.fileContent,
|
|
65
|
-
commitDetail: gitActions.commitDetail
|
|
70
|
+
commitDetail: gitActions.commitDetail,
|
|
71
|
+
mergeRequests: gitlabApi.mergeRequests,
|
|
72
|
+
mergeRequestDetail: gitlabApi.mergeRequestDetail,
|
|
73
|
+
mergeRequestNotes: gitlabApi.mergeRequestNotes,
|
|
74
|
+
triggerReview: reviewActions.triggerReview,
|
|
75
|
+
reviewApprovePost: reviewActions.reviewApprovePost,
|
|
76
|
+
reviewReject: reviewActions.reviewReject,
|
|
77
|
+
pollNow: pollerActions.pollNow,
|
|
78
|
+
pollerStatus: pollerActions.pollerStatus
|
|
66
79
|
}
|
|
67
80
|
});
|
|
81
|
+
(0, import_ai_tools.registerGitReviewAiTools)(this.app);
|
|
82
|
+
this.app.on("afterStart", () => {
|
|
83
|
+
(0, import_poller.startPoller)(this.app);
|
|
84
|
+
});
|
|
85
|
+
this.app.on("beforeStop", () => {
|
|
86
|
+
(0, import_poller.stopPoller)();
|
|
87
|
+
});
|
|
88
|
+
this.app.on("beforeDestroy", () => {
|
|
89
|
+
(0, import_poller.stopPoller)();
|
|
90
|
+
});
|
|
68
91
|
this.app.acl.registerSnippet({
|
|
69
92
|
name: `pm.${this.name}.read`,
|
|
70
93
|
actions: [
|
|
71
94
|
"gitRepositories:list",
|
|
72
95
|
"gitRepositories:get",
|
|
96
|
+
"gitReviewFlows:list",
|
|
97
|
+
"gitReviewFlows:get",
|
|
98
|
+
"gitCodeReviews:list",
|
|
99
|
+
"gitCodeReviews:get",
|
|
73
100
|
"gitManager:status",
|
|
74
101
|
"gitManager:log",
|
|
75
102
|
"gitManager:branches",
|
|
76
103
|
"gitManager:diff",
|
|
77
104
|
"gitManager:fileTree",
|
|
78
105
|
"gitManager:fileContent",
|
|
79
|
-
"gitManager:commitDetail"
|
|
106
|
+
"gitManager:commitDetail",
|
|
107
|
+
"gitManager:mergeRequests",
|
|
108
|
+
"gitManager:mergeRequestDetail",
|
|
109
|
+
"gitManager:mergeRequestNotes",
|
|
110
|
+
"gitManager:pollerStatus"
|
|
80
111
|
]
|
|
81
112
|
});
|
|
82
113
|
this.app.acl.registerSnippet({
|
|
@@ -85,13 +116,35 @@ class PluginGitManagerServer extends import_server.Plugin {
|
|
|
85
116
|
"gitRepositories:create",
|
|
86
117
|
"gitRepositories:update",
|
|
87
118
|
"gitRepositories:destroy",
|
|
119
|
+
"gitReviewFlows:create",
|
|
120
|
+
"gitReviewFlows:update",
|
|
121
|
+
"gitReviewFlows:destroy",
|
|
122
|
+
"gitCodeReviews:create",
|
|
123
|
+
"gitCodeReviews:update",
|
|
124
|
+
"gitCodeReviews:destroy",
|
|
88
125
|
"gitManager:clone",
|
|
89
126
|
"gitManager:pull",
|
|
90
127
|
"gitManager:push",
|
|
91
128
|
"gitManager:fetch",
|
|
92
|
-
"gitManager:checkout"
|
|
129
|
+
"gitManager:checkout",
|
|
130
|
+
"gitManager:triggerReview",
|
|
131
|
+
"gitManager:reviewApprovePost",
|
|
132
|
+
"gitManager:reviewReject",
|
|
133
|
+
"gitManager:pollNow"
|
|
93
134
|
]
|
|
94
135
|
});
|
|
136
|
+
this.app.resourceManager.use(async (ctx, next) => {
|
|
137
|
+
var _a, _b, _c, _d, _e;
|
|
138
|
+
if (((_a = ctx.action) == null ? void 0 : _a.resourceName) === "gitRepositories" && ["create", "update"].includes((_b = ctx.action) == null ? void 0 : _b.actionName)) {
|
|
139
|
+
if (((_d = (_c = ctx.action.params) == null ? void 0 : _c.values) == null ? void 0 : _d.pat) === "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022") {
|
|
140
|
+
delete ctx.action.params.values.pat;
|
|
141
|
+
}
|
|
142
|
+
if (((_e = ctx.request.body) == null ? void 0 : _e.pat) === "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022") {
|
|
143
|
+
delete ctx.request.body.pat;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
return next();
|
|
147
|
+
});
|
|
95
148
|
this.app.resourceManager.use(async (ctx, next) => {
|
|
96
149
|
var _a, _b;
|
|
97
150
|
if (((_a = ctx.action) == null ? void 0 : _a.resourceName) !== "gitRepositories") {
|
|
@@ -112,6 +165,12 @@ class PluginGitManagerServer extends import_server.Plugin {
|
|
|
112
165
|
}
|
|
113
166
|
async install() {
|
|
114
167
|
}
|
|
168
|
+
async beforeDisable() {
|
|
169
|
+
(0, import_poller.stopPoller)();
|
|
170
|
+
}
|
|
171
|
+
async beforeUnload() {
|
|
172
|
+
(0, import_poller.stopPoller)();
|
|
173
|
+
}
|
|
115
174
|
}
|
|
116
175
|
var plugin_default = PluginGitManagerServer;
|
|
117
176
|
// 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,241 @@
|
|
|
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
|
+
async function tryAcquirePollerLock(app) {
|
|
71
|
+
var _a, _b, _c;
|
|
72
|
+
try {
|
|
73
|
+
const sequelize = app.db.sequelize;
|
|
74
|
+
if (!sequelize) return true;
|
|
75
|
+
const dialect = (_a = sequelize.getDialect) == null ? void 0 : _a.call(sequelize);
|
|
76
|
+
const lockKey = 777042;
|
|
77
|
+
if (dialect === "postgres") {
|
|
78
|
+
const [results] = await sequelize.query(`SELECT pg_try_advisory_lock(${lockKey}) AS locked`);
|
|
79
|
+
return ((_b = results == null ? void 0 : results[0]) == null ? void 0 : _b.locked) === true;
|
|
80
|
+
}
|
|
81
|
+
if (dialect === "mysql" || dialect === "mariadb") {
|
|
82
|
+
const [results] = await sequelize.query(`SELECT GET_LOCK('git_poller', 0) AS locked`);
|
|
83
|
+
return ((_c = results == null ? void 0 : results[0]) == null ? void 0 : _c.locked) === 1;
|
|
84
|
+
}
|
|
85
|
+
return true;
|
|
86
|
+
} catch {
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
async function releasePollerLock(app) {
|
|
91
|
+
var _a;
|
|
92
|
+
try {
|
|
93
|
+
const sequelize = app.db.sequelize;
|
|
94
|
+
if (!sequelize) return;
|
|
95
|
+
const dialect = (_a = sequelize.getDialect) == null ? void 0 : _a.call(sequelize);
|
|
96
|
+
const lockKey = 777042;
|
|
97
|
+
if (dialect === "postgres") {
|
|
98
|
+
await sequelize.query(`SELECT pg_advisory_unlock(${lockKey})`);
|
|
99
|
+
} else if (dialect === "mysql" || dialect === "mariadb") {
|
|
100
|
+
await sequelize.query(`SELECT RELEASE_LOCK('git_poller')`);
|
|
101
|
+
}
|
|
102
|
+
} catch {
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
async function pollAllRepos(app) {
|
|
106
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
107
|
+
if (isPolling) {
|
|
108
|
+
if (pollStartedAt && Date.now() - pollStartedAt > STALE_POLL_TIMEOUT_MS) {
|
|
109
|
+
(_b = (_a = app.log) == null ? void 0 : _a.warn) == null ? void 0 : _b.call(_a, "poller: stale isPolling flag detected \u2014 forcibly resetting");
|
|
110
|
+
isPolling = false;
|
|
111
|
+
pollStartedAt = null;
|
|
112
|
+
} else {
|
|
113
|
+
return { scanned: 0, triggered: 0 };
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
const lockAcquired = await tryAcquirePollerLock(app);
|
|
117
|
+
if (!lockAcquired) {
|
|
118
|
+
(_d = (_c = app.log) == null ? void 0 : _c.debug) == null ? void 0 : _d.call(_c, "poller: another node holds the advisory lock \u2014 skipping");
|
|
119
|
+
return { scanned: 0, triggered: 0 };
|
|
120
|
+
}
|
|
121
|
+
isPolling = true;
|
|
122
|
+
pollStartedAt = Date.now();
|
|
123
|
+
lastTickAt = /* @__PURE__ */ new Date();
|
|
124
|
+
lastError = null;
|
|
125
|
+
let scanned = 0;
|
|
126
|
+
let triggered = 0;
|
|
127
|
+
try {
|
|
128
|
+
const reposRepo = app.db.getRepository("gitRepositories");
|
|
129
|
+
const repos = await reposRepo.find({ filter: { autoReview: true } });
|
|
130
|
+
for (const repo of repos) {
|
|
131
|
+
try {
|
|
132
|
+
const result = await pollOneRepo(app, repo);
|
|
133
|
+
scanned += result.scanned;
|
|
134
|
+
triggered += result.triggered;
|
|
135
|
+
} catch (err) {
|
|
136
|
+
(_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}`);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
} catch (err) {
|
|
140
|
+
lastError = (err == null ? void 0 : err.message) || String(err);
|
|
141
|
+
(_h = (_g = app.log) == null ? void 0 : _g.error) == null ? void 0 : _h.call(_g, "poller: cycle failed", err);
|
|
142
|
+
} finally {
|
|
143
|
+
isPolling = false;
|
|
144
|
+
pollStartedAt = null;
|
|
145
|
+
await releasePollerLock(app);
|
|
146
|
+
}
|
|
147
|
+
return { scanned, triggered };
|
|
148
|
+
}
|
|
149
|
+
async function tick(app) {
|
|
150
|
+
await pollAllRepos(app);
|
|
151
|
+
}
|
|
152
|
+
async function pollOneRepo(app, repo) {
|
|
153
|
+
var _a, _b;
|
|
154
|
+
const flowsRepo = app.db.getRepository("gitReviewFlows");
|
|
155
|
+
const reviewsRepo = app.db.getRepository("gitCodeReviews");
|
|
156
|
+
const reposRepo = app.db.getRepository("gitRepositories");
|
|
157
|
+
const flows = await flowsRepo.find({
|
|
158
|
+
filter: {
|
|
159
|
+
enabled: true,
|
|
160
|
+
triggerMode: { $in: ["onMergeRequestCreated", "both"] },
|
|
161
|
+
$or: [{ repositoryId: repo.get("id") }, { repositoryId: null }]
|
|
162
|
+
},
|
|
163
|
+
sort: ["-repositoryId"]
|
|
164
|
+
});
|
|
165
|
+
if (!(flows == null ? void 0 : flows.length)) return { scanned: 0, triggered: 0 };
|
|
166
|
+
const pat = repo.get("pat");
|
|
167
|
+
if (!pat) return { scanned: 0, triggered: 0 };
|
|
168
|
+
const lastPolledAt = repo.get("lastPolledAt");
|
|
169
|
+
const mrs = await listMergeRequests(repo, lastPolledAt);
|
|
170
|
+
let triggered = 0;
|
|
171
|
+
for (const mr of mrs) {
|
|
172
|
+
const flow = flows.find((f) => (0, import_review.branchMatches)(f, mr.source_branch));
|
|
173
|
+
if (!flow) continue;
|
|
174
|
+
const existing = await reviewsRepo.findOne({
|
|
175
|
+
filter: {
|
|
176
|
+
repositoryId: repo.get("id"),
|
|
177
|
+
targetType: "mr",
|
|
178
|
+
mrIid: mr.iid
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
if (existing) {
|
|
182
|
+
if (existing.get("latestSha") !== mr.sha) {
|
|
183
|
+
await reviewsRepo.update({
|
|
184
|
+
filterByTk: existing.get("id"),
|
|
185
|
+
values: { latestSha: mr.sha }
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
continue;
|
|
189
|
+
}
|
|
190
|
+
try {
|
|
191
|
+
await (0, import_review.triggerReviewInternal)(app, {
|
|
192
|
+
flowId: flow.get("id"),
|
|
193
|
+
repositoryId: repo.get("id"),
|
|
194
|
+
targetType: "mr",
|
|
195
|
+
mrIid: mr.iid,
|
|
196
|
+
branch: mr.source_branch,
|
|
197
|
+
headSha: mr.sha,
|
|
198
|
+
triggeredBy: "poll"
|
|
199
|
+
});
|
|
200
|
+
triggered++;
|
|
201
|
+
} catch (err) {
|
|
202
|
+
(_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}`);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
await reposRepo.update({
|
|
206
|
+
filterByTk: repo.get("id"),
|
|
207
|
+
values: { lastPolledAt: /* @__PURE__ */ new Date() }
|
|
208
|
+
});
|
|
209
|
+
return { scanned: mrs.length, triggered };
|
|
210
|
+
}
|
|
211
|
+
async function listMergeRequests(repo, updatedAfter) {
|
|
212
|
+
const repoUrl = repo.get("repoUrl");
|
|
213
|
+
const pat = repo.get("pat");
|
|
214
|
+
const { apiBase, encodedProject } = (0, import_gitlab_url.parseGitLabProject)(repoUrl);
|
|
215
|
+
const params = new URLSearchParams({
|
|
216
|
+
state: "opened",
|
|
217
|
+
per_page: String(MR_PAGE_SIZE),
|
|
218
|
+
order_by: "updated_at",
|
|
219
|
+
sort: "desc"
|
|
220
|
+
});
|
|
221
|
+
if (updatedAfter) {
|
|
222
|
+
const safeBound = new Date(updatedAfter.getTime() - 1e3);
|
|
223
|
+
params.set("updated_after", safeBound.toISOString());
|
|
224
|
+
}
|
|
225
|
+
const response = await fetch(`${apiBase}/projects/${encodedProject}/merge_requests?${params.toString()}`, {
|
|
226
|
+
headers: { "PRIVATE-TOKEN": pat, Accept: "application/json" }
|
|
227
|
+
});
|
|
228
|
+
if (!response.ok) {
|
|
229
|
+
const body = await response.text().catch(() => "");
|
|
230
|
+
throw new Error(`GitLab API error ${response.status}: ${body}`);
|
|
231
|
+
}
|
|
232
|
+
return response.json();
|
|
233
|
+
}
|
|
234
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
235
|
+
0 && (module.exports = {
|
|
236
|
+
getPollerStatus,
|
|
237
|
+
pollAllRepos,
|
|
238
|
+
pollOneRepo,
|
|
239
|
+
startPoller,
|
|
240
|
+
stopPoller
|
|
241
|
+
});
|
|
@@ -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
|
+
});
|
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.10",
|
|
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
|
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Space } from 'antd';
|
|
3
|
+
import { BranchesOutlined, MergeOutlined, NodeIndexOutlined } from '@ant-design/icons';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* WorkContext options exported as plain objects so we can register them
|
|
7
|
+
* regardless of whether plugin-ai is installed at compile time. The plugin
|
|
8
|
+
* checks `app.aiManager` at runtime before registering.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
export const GitRepositoryWorkContext: any = {
|
|
12
|
+
name: 'git-repository',
|
|
13
|
+
menu: {
|
|
14
|
+
icon: <BranchesOutlined />,
|
|
15
|
+
Component: () => <span>Git Repository</span>,
|
|
16
|
+
},
|
|
17
|
+
tag: {
|
|
18
|
+
Component: ({ item }: any) => (
|
|
19
|
+
<Space size={4}>
|
|
20
|
+
<BranchesOutlined />
|
|
21
|
+
<span>{item?.title || `Repo #${item?.uid}`}</span>
|
|
22
|
+
</Space>
|
|
23
|
+
),
|
|
24
|
+
},
|
|
25
|
+
getContent: async (app: any, { uid }: any) => {
|
|
26
|
+
const response = await app.apiClient.request({
|
|
27
|
+
url: 'gitRepositories:get',
|
|
28
|
+
params: { filterByTk: uid },
|
|
29
|
+
});
|
|
30
|
+
const repo = response?.data?.data;
|
|
31
|
+
if (!repo) return null;
|
|
32
|
+
return {
|
|
33
|
+
type: 'git-repository',
|
|
34
|
+
repositoryId: repo.id,
|
|
35
|
+
name: repo.name,
|
|
36
|
+
repoUrl: repo.repoUrl,
|
|
37
|
+
defaultBranch: repo.defaultBranch,
|
|
38
|
+
status: repo.status,
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export const GitMergeRequestWorkContext: any = {
|
|
44
|
+
name: 'git-merge-request',
|
|
45
|
+
menu: {
|
|
46
|
+
icon: <MergeOutlined />,
|
|
47
|
+
Component: () => <span>Git Merge Request</span>,
|
|
48
|
+
},
|
|
49
|
+
tag: {
|
|
50
|
+
Component: ({ item }: any) => (
|
|
51
|
+
<Space size={4}>
|
|
52
|
+
<MergeOutlined />
|
|
53
|
+
<span>{item?.title || `MR ${item?.uid}`}</span>
|
|
54
|
+
</Space>
|
|
55
|
+
),
|
|
56
|
+
},
|
|
57
|
+
getContent: async (app: any, { uid }: any) => {
|
|
58
|
+
// uid format: "<repositoryId>:<mrIid>"
|
|
59
|
+
const [repoIdStr, mrIidStr] = String(uid || '').split(':');
|
|
60
|
+
const repositoryId = Number(repoIdStr);
|
|
61
|
+
const mrIid = Number(mrIidStr);
|
|
62
|
+
if (!repositoryId || !mrIid) return null;
|
|
63
|
+
const response = await app.apiClient.request({
|
|
64
|
+
url: 'gitManager:mergeRequestDetail',
|
|
65
|
+
params: { repositoryId, mrIid },
|
|
66
|
+
});
|
|
67
|
+
const data = response?.data?.data;
|
|
68
|
+
return {
|
|
69
|
+
type: 'git-merge-request',
|
|
70
|
+
repositoryId,
|
|
71
|
+
mrIid,
|
|
72
|
+
title: data?.title,
|
|
73
|
+
sourceBranch: data?.sourceBranch,
|
|
74
|
+
targetBranch: data?.targetBranch,
|
|
75
|
+
author: data?.author,
|
|
76
|
+
changes: data?.changes,
|
|
77
|
+
description: data?.description,
|
|
78
|
+
webUrl: data?.webUrl,
|
|
79
|
+
};
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export const GitCommitWorkContext: any = {
|
|
84
|
+
name: 'git-commit',
|
|
85
|
+
menu: {
|
|
86
|
+
icon: <NodeIndexOutlined />,
|
|
87
|
+
Component: () => <span>Git Commit</span>,
|
|
88
|
+
},
|
|
89
|
+
tag: {
|
|
90
|
+
Component: ({ item }: any) => (
|
|
91
|
+
<Space size={4}>
|
|
92
|
+
<NodeIndexOutlined />
|
|
93
|
+
<span>{item?.title || `Commit ${item?.uid}`}</span>
|
|
94
|
+
</Space>
|
|
95
|
+
),
|
|
96
|
+
},
|
|
97
|
+
getContent: async (app: any, { uid }: any) => {
|
|
98
|
+
// uid format: "<repositoryId>:<commitSha>"
|
|
99
|
+
const [repoIdStr, commitSha] = String(uid || '').split(':');
|
|
100
|
+
const repositoryId = Number(repoIdStr);
|
|
101
|
+
if (!repositoryId || !commitSha) return null;
|
|
102
|
+
const response = await app.apiClient.request({
|
|
103
|
+
url: 'gitManager:commitDetail',
|
|
104
|
+
params: { repositoryId, commitHash: commitSha },
|
|
105
|
+
});
|
|
106
|
+
const data = response?.data?.data;
|
|
107
|
+
return {
|
|
108
|
+
type: 'git-commit',
|
|
109
|
+
repositoryId,
|
|
110
|
+
commitSha,
|
|
111
|
+
...data,
|
|
112
|
+
};
|
|
113
|
+
},
|
|
114
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import { Select } from 'antd';
|
|
3
|
+
import { useAPIClient } from '@nocobase/client';
|
|
4
|
+
|
|
5
|
+
interface AIEmployeeOption {
|
|
6
|
+
username: string;
|
|
7
|
+
nickname?: string;
|
|
8
|
+
avatar?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Select dropdown listing AI employees the current user has access to.
|
|
13
|
+
* Calls `aiEmployees:listByUser` from plugin-ai.
|
|
14
|
+
*/
|
|
15
|
+
export const AIEmployeeSelect: React.FC<{
|
|
16
|
+
value?: string;
|
|
17
|
+
onChange?: (value: string) => void;
|
|
18
|
+
allowClear?: boolean;
|
|
19
|
+
size?: 'small' | 'middle' | 'large';
|
|
20
|
+
style?: React.CSSProperties;
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
}> = ({ value, onChange, allowClear = true, size, style, placeholder }) => {
|
|
23
|
+
const api = useAPIClient();
|
|
24
|
+
const [employees, setEmployees] = useState<AIEmployeeOption[]>([]);
|
|
25
|
+
const [loading, setLoading] = useState(false);
|
|
26
|
+
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
let cancelled = false;
|
|
29
|
+
setLoading(true);
|
|
30
|
+
api
|
|
31
|
+
.request({ url: 'aiEmployees:listByUser' })
|
|
32
|
+
.then((res) => {
|
|
33
|
+
if (cancelled) return;
|
|
34
|
+
const list = res?.data?.data || [];
|
|
35
|
+
setEmployees(Array.isArray(list) ? list : []);
|
|
36
|
+
})
|
|
37
|
+
.catch(() => undefined)
|
|
38
|
+
.finally(() => {
|
|
39
|
+
if (!cancelled) setLoading(false);
|
|
40
|
+
});
|
|
41
|
+
return () => {
|
|
42
|
+
cancelled = true;
|
|
43
|
+
};
|
|
44
|
+
}, [api]);
|
|
45
|
+
|
|
46
|
+
return (
|
|
47
|
+
<Select
|
|
48
|
+
value={value}
|
|
49
|
+
onChange={onChange}
|
|
50
|
+
allowClear={allowClear}
|
|
51
|
+
loading={loading}
|
|
52
|
+
size={size}
|
|
53
|
+
style={style}
|
|
54
|
+
placeholder={placeholder || 'Select AI employee'}
|
|
55
|
+
options={employees.map((e) => ({
|
|
56
|
+
value: e.username,
|
|
57
|
+
label: `${e.nickname || e.username} (@${e.username})`,
|
|
58
|
+
}))}
|
|
59
|
+
showSearch
|
|
60
|
+
optionFilterProp="label"
|
|
61
|
+
/>
|
|
62
|
+
);
|
|
63
|
+
};
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
} from '@ant-design/icons';
|
|
13
13
|
import { useAPIClient } from '@nocobase/client';
|
|
14
14
|
import { useGitManager } from '../context/GitManagerContext';
|
|
15
|
+
import { RunReviewButton } from './RunReviewButton';
|
|
15
16
|
import { useT } from '../locale';
|
|
16
17
|
|
|
17
18
|
const { Text } = Typography;
|
|
@@ -210,6 +211,19 @@ export const CommitHistory: React.FC = () => {
|
|
|
210
211
|
setDiffFile(null);
|
|
211
212
|
}}
|
|
212
213
|
width={800}
|
|
214
|
+
extra={
|
|
215
|
+
selectedCommit && selectedRepo ? (
|
|
216
|
+
<RunReviewButton
|
|
217
|
+
target={{
|
|
218
|
+
type: 'commit',
|
|
219
|
+
repositoryId: selectedRepo.id,
|
|
220
|
+
commitSha: selectedCommit.hash,
|
|
221
|
+
title: selectedCommit.message,
|
|
222
|
+
}}
|
|
223
|
+
size="small"
|
|
224
|
+
/>
|
|
225
|
+
) : null
|
|
226
|
+
}
|
|
213
227
|
>
|
|
214
228
|
{detailLoading ? (
|
|
215
229
|
<Spin />
|