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
|
@@ -0,0 +1,278 @@
|
|
|
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 __create = Object.create;
|
|
11
|
+
var __defProp = Object.defineProperty;
|
|
12
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
14
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
15
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
|
+
var __export = (target, all) => {
|
|
17
|
+
for (var name in all)
|
|
18
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
+
};
|
|
20
|
+
var __copyProps = (to, from, except, desc) => {
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
+
for (let key of __getOwnPropNames(from))
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
29
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
|
+
mod
|
|
35
|
+
));
|
|
36
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
37
|
+
var ai_tools_exports = {};
|
|
38
|
+
__export(ai_tools_exports, {
|
|
39
|
+
registerGitReviewAiTools: () => registerGitReviewAiTools
|
|
40
|
+
});
|
|
41
|
+
module.exports = __toCommonJS(ai_tools_exports);
|
|
42
|
+
var import_zod = require("zod");
|
|
43
|
+
var gitlabApi = __toESM(require("./actions/gitlab-api"));
|
|
44
|
+
var gitActions = __toESM(require("./actions/git-actions"));
|
|
45
|
+
function registerGitReviewAiTools(app) {
|
|
46
|
+
var _a, _b, _c, _d, _e;
|
|
47
|
+
const aiManager = app.aiManager;
|
|
48
|
+
if (!((_a = aiManager == null ? void 0 : aiManager.toolsManager) == null ? void 0 : _a.registerTools)) {
|
|
49
|
+
(_c = (_b = app.log) == null ? void 0 : _b.warn) == null ? void 0 : _c.call(_b, "plugin-git-manager: AIManager.toolsManager not available; skipping AI tool registration");
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
const enforceAcl = (ctx, resource, action) => {
|
|
53
|
+
var _a2, _b2, _c2, _d2;
|
|
54
|
+
const user = (_a2 = ctx == null ? void 0 : ctx.state) == null ? void 0 : _a2.currentUser;
|
|
55
|
+
if (!(user == null ? void 0 : user.id)) {
|
|
56
|
+
const err = new Error("AI tool requires an authenticated user context");
|
|
57
|
+
err.status = 401;
|
|
58
|
+
throw err;
|
|
59
|
+
}
|
|
60
|
+
const acl = (_b2 = ctx.app) == null ? void 0 : _b2.acl;
|
|
61
|
+
if (!(acl == null ? void 0 : acl.can)) return;
|
|
62
|
+
const role = ((_c2 = ctx == null ? void 0 : ctx.state) == null ? void 0 : _c2.currentRole) || Array.isArray(user.roles) && ((_d2 = user.roles[0]) == null ? void 0 : _d2.name) || null;
|
|
63
|
+
if (!role) {
|
|
64
|
+
const err = new Error("AI tool requires a resolvable role on the current user");
|
|
65
|
+
err.status = 403;
|
|
66
|
+
throw err;
|
|
67
|
+
}
|
|
68
|
+
const allowed = acl.can({ role, resource, action });
|
|
69
|
+
if (!allowed) {
|
|
70
|
+
const err = new Error(`Permission denied: ${resource}:${action}`);
|
|
71
|
+
err.status = 403;
|
|
72
|
+
throw err;
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
const runResourceAction = async (ctx, handler, params, gate) => {
|
|
76
|
+
enforceAcl(ctx, gate.resource, gate.action);
|
|
77
|
+
const synthCtx = {
|
|
78
|
+
...ctx,
|
|
79
|
+
app: ctx.app,
|
|
80
|
+
db: ctx.db,
|
|
81
|
+
action: { params },
|
|
82
|
+
throw: (status, message) => {
|
|
83
|
+
const err = new Error(message);
|
|
84
|
+
err.status = status;
|
|
85
|
+
throw err;
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
await handler(synthCtx, async () => void 0);
|
|
89
|
+
return synthCtx.body;
|
|
90
|
+
};
|
|
91
|
+
aiManager.toolsManager.registerTools([
|
|
92
|
+
{
|
|
93
|
+
scope: "GENERAL",
|
|
94
|
+
execution: "backend",
|
|
95
|
+
defaultPermission: "ALLOW",
|
|
96
|
+
silence: false,
|
|
97
|
+
introduction: { title: "Git: Get merge request" },
|
|
98
|
+
definition: {
|
|
99
|
+
name: "git_get_merge_request",
|
|
100
|
+
description: "Get full details of a GitLab merge request including its file-level diffs. Use this to inspect the code changes that need review.",
|
|
101
|
+
schema: import_zod.z.object({
|
|
102
|
+
repositoryId: import_zod.z.number().describe("The numeric ID of the gitRepositories record"),
|
|
103
|
+
mrIid: import_zod.z.number().describe("The GitLab merge request internal ID (iid)")
|
|
104
|
+
})
|
|
105
|
+
},
|
|
106
|
+
invoke: async (ctx, args) => {
|
|
107
|
+
const body = await runResourceAction(ctx, gitlabApi.mergeRequestDetail, args, {
|
|
108
|
+
resource: "gitManager",
|
|
109
|
+
action: "mergeRequestDetail"
|
|
110
|
+
});
|
|
111
|
+
return (body == null ? void 0 : body.data) ?? body;
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
scope: "GENERAL",
|
|
116
|
+
execution: "backend",
|
|
117
|
+
defaultPermission: "ALLOW",
|
|
118
|
+
silence: false,
|
|
119
|
+
introduction: { title: "Git: List merge requests" },
|
|
120
|
+
definition: {
|
|
121
|
+
name: "git_list_merge_requests",
|
|
122
|
+
description: "List GitLab merge requests for a repository, with optional state and search filters.",
|
|
123
|
+
schema: import_zod.z.object({
|
|
124
|
+
repositoryId: import_zod.z.number(),
|
|
125
|
+
state: import_zod.z.enum(["opened", "closed", "merged", "all"]).optional(),
|
|
126
|
+
search: import_zod.z.string().optional(),
|
|
127
|
+
page: import_zod.z.number().optional(),
|
|
128
|
+
perPage: import_zod.z.number().optional()
|
|
129
|
+
})
|
|
130
|
+
},
|
|
131
|
+
invoke: async (ctx, args) => {
|
|
132
|
+
const body = await runResourceAction(ctx, gitlabApi.mergeRequests, args, {
|
|
133
|
+
resource: "gitManager",
|
|
134
|
+
action: "mergeRequests"
|
|
135
|
+
});
|
|
136
|
+
return (body == null ? void 0 : body.data) ?? body;
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
scope: "GENERAL",
|
|
141
|
+
execution: "backend",
|
|
142
|
+
defaultPermission: "ALLOW",
|
|
143
|
+
silence: false,
|
|
144
|
+
introduction: { title: "Git: Get merge request notes" },
|
|
145
|
+
definition: {
|
|
146
|
+
name: "git_get_merge_request_notes",
|
|
147
|
+
description: "Get existing comments / notes on a merge request to avoid duplicating feedback.",
|
|
148
|
+
schema: import_zod.z.object({
|
|
149
|
+
repositoryId: import_zod.z.number(),
|
|
150
|
+
mrIid: import_zod.z.number()
|
|
151
|
+
})
|
|
152
|
+
},
|
|
153
|
+
invoke: async (ctx, args) => {
|
|
154
|
+
const body = await runResourceAction(ctx, gitlabApi.mergeRequestNotes, args, {
|
|
155
|
+
resource: "gitManager",
|
|
156
|
+
action: "mergeRequestNotes"
|
|
157
|
+
});
|
|
158
|
+
return (body == null ? void 0 : body.data) ?? body;
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
scope: "GENERAL",
|
|
163
|
+
execution: "backend",
|
|
164
|
+
defaultPermission: "ALLOW",
|
|
165
|
+
silence: false,
|
|
166
|
+
introduction: { title: "Git: Get commit detail" },
|
|
167
|
+
definition: {
|
|
168
|
+
name: "git_get_commit",
|
|
169
|
+
description: "Get details and diff of a specific commit in a cloned repository.",
|
|
170
|
+
schema: import_zod.z.object({
|
|
171
|
+
repositoryId: import_zod.z.number(),
|
|
172
|
+
commitHash: import_zod.z.string().describe("Full or short commit SHA")
|
|
173
|
+
})
|
|
174
|
+
},
|
|
175
|
+
invoke: async (ctx, args) => {
|
|
176
|
+
const body = await runResourceAction(ctx, gitActions.commitDetail, args, {
|
|
177
|
+
resource: "gitManager",
|
|
178
|
+
action: "commitDetail"
|
|
179
|
+
});
|
|
180
|
+
return (body == null ? void 0 : body.data) ?? body;
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
scope: "GENERAL",
|
|
185
|
+
execution: "backend",
|
|
186
|
+
defaultPermission: "ALLOW",
|
|
187
|
+
silence: false,
|
|
188
|
+
introduction: { title: "Git: Get diff" },
|
|
189
|
+
definition: {
|
|
190
|
+
name: "git_get_diff",
|
|
191
|
+
description: "Get the diff between two refs (branches/commits) in a cloned repository, or the diff of a single commit when only commitHash is given.",
|
|
192
|
+
schema: import_zod.z.object({
|
|
193
|
+
repositoryId: import_zod.z.number(),
|
|
194
|
+
commitHash: import_zod.z.string().optional(),
|
|
195
|
+
compareHash: import_zod.z.string().optional(),
|
|
196
|
+
file: import_zod.z.string().optional().describe("Optional file path to scope the diff")
|
|
197
|
+
})
|
|
198
|
+
},
|
|
199
|
+
invoke: async (ctx, args) => {
|
|
200
|
+
const body = await runResourceAction(ctx, gitActions.diff, args, {
|
|
201
|
+
resource: "gitManager",
|
|
202
|
+
action: "diff"
|
|
203
|
+
});
|
|
204
|
+
return (body == null ? void 0 : body.data) ?? body;
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
scope: "GENERAL",
|
|
209
|
+
execution: "backend",
|
|
210
|
+
defaultPermission: "ALLOW",
|
|
211
|
+
silence: false,
|
|
212
|
+
introduction: { title: "Git: Get file content" },
|
|
213
|
+
definition: {
|
|
214
|
+
name: "git_get_file_content",
|
|
215
|
+
description: "Read the content of a single file in a cloned repository at a given ref. Useful when reviewing changes in surrounding context.",
|
|
216
|
+
schema: import_zod.z.object({
|
|
217
|
+
repositoryId: import_zod.z.number(),
|
|
218
|
+
filePath: import_zod.z.string(),
|
|
219
|
+
ref: import_zod.z.string().optional()
|
|
220
|
+
})
|
|
221
|
+
},
|
|
222
|
+
invoke: async (ctx, args) => {
|
|
223
|
+
const body = await runResourceAction(ctx, gitActions.fileContent, args, {
|
|
224
|
+
resource: "gitManager",
|
|
225
|
+
action: "fileContent"
|
|
226
|
+
});
|
|
227
|
+
return (body == null ? void 0 : body.data) ?? body;
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
scope: "GENERAL",
|
|
232
|
+
execution: "backend",
|
|
233
|
+
defaultPermission: "ALLOW",
|
|
234
|
+
silence: false,
|
|
235
|
+
introduction: { title: "Git: List branches" },
|
|
236
|
+
definition: {
|
|
237
|
+
name: "git_list_branches",
|
|
238
|
+
description: "List branches available in a cloned repository.",
|
|
239
|
+
schema: import_zod.z.object({ repositoryId: import_zod.z.number() })
|
|
240
|
+
},
|
|
241
|
+
invoke: async (ctx, args) => {
|
|
242
|
+
const body = await runResourceAction(ctx, gitActions.branches, args, {
|
|
243
|
+
resource: "gitManager",
|
|
244
|
+
action: "branches"
|
|
245
|
+
});
|
|
246
|
+
return (body == null ? void 0 : body.data) ?? body;
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
scope: "GENERAL",
|
|
251
|
+
execution: "backend",
|
|
252
|
+
defaultPermission: "ALLOW",
|
|
253
|
+
silence: false,
|
|
254
|
+
introduction: { title: "Git: List recent commits" },
|
|
255
|
+
definition: {
|
|
256
|
+
name: "git_list_commits",
|
|
257
|
+
description: "List recent commits in a cloned repository, optionally scoped to a single file.",
|
|
258
|
+
schema: import_zod.z.object({
|
|
259
|
+
repositoryId: import_zod.z.number(),
|
|
260
|
+
maxCount: import_zod.z.number().optional(),
|
|
261
|
+
file: import_zod.z.string().optional()
|
|
262
|
+
})
|
|
263
|
+
},
|
|
264
|
+
invoke: async (ctx, args) => {
|
|
265
|
+
const body = await runResourceAction(ctx, gitActions.log, args, {
|
|
266
|
+
resource: "gitManager",
|
|
267
|
+
action: "log"
|
|
268
|
+
});
|
|
269
|
+
return (body == null ? void 0 : body.data) ?? body;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
]);
|
|
273
|
+
(_e = (_d = app.log) == null ? void 0 : _d.info) == null ? void 0 : _e.call(_d, "plugin-git-manager: registered git_* AI tools for code review");
|
|
274
|
+
}
|
|
275
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
276
|
+
0 && (module.exports = {
|
|
277
|
+
registerGitReviewAiTools
|
|
278
|
+
});
|
|
@@ -0,0 +1,221 @@
|
|
|
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 gitCodeReviews_exports = {};
|
|
28
|
+
__export(gitCodeReviews_exports, {
|
|
29
|
+
default: () => gitCodeReviews_default
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(gitCodeReviews_exports);
|
|
32
|
+
var import_database = require("@nocobase/database");
|
|
33
|
+
var gitCodeReviews_default = (0, import_database.defineCollection)({
|
|
34
|
+
name: "gitCodeReviews",
|
|
35
|
+
title: "Git Code Reviews",
|
|
36
|
+
autoGenId: true,
|
|
37
|
+
createdBy: true,
|
|
38
|
+
updatedBy: true,
|
|
39
|
+
createdAt: true,
|
|
40
|
+
updatedAt: true,
|
|
41
|
+
fields: [
|
|
42
|
+
{
|
|
43
|
+
type: "belongsTo",
|
|
44
|
+
name: "flow",
|
|
45
|
+
target: "gitReviewFlows",
|
|
46
|
+
foreignKey: "flowId",
|
|
47
|
+
interface: "m2o",
|
|
48
|
+
uiSchema: {
|
|
49
|
+
title: "Flow",
|
|
50
|
+
"x-component": "AssociationField",
|
|
51
|
+
"x-component-props": { fieldNames: { label: "name", value: "id" } }
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
type: "belongsTo",
|
|
56
|
+
name: "repository",
|
|
57
|
+
target: "gitRepositories",
|
|
58
|
+
foreignKey: "repositoryId",
|
|
59
|
+
interface: "m2o",
|
|
60
|
+
uiSchema: {
|
|
61
|
+
title: "Repository",
|
|
62
|
+
"x-component": "AssociationField",
|
|
63
|
+
"x-component-props": { fieldNames: { label: "name", value: "id" } }
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
type: "string",
|
|
68
|
+
name: "targetType",
|
|
69
|
+
interface: "select",
|
|
70
|
+
uiSchema: {
|
|
71
|
+
title: "Target Type",
|
|
72
|
+
type: "string",
|
|
73
|
+
"x-component": "Select",
|
|
74
|
+
enum: [
|
|
75
|
+
{ value: "mr", label: "Merge Request" },
|
|
76
|
+
{ value: "commit", label: "Commit" },
|
|
77
|
+
{ value: "branch", label: "Branch" }
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
type: "integer",
|
|
83
|
+
name: "mrIid",
|
|
84
|
+
interface: "integer",
|
|
85
|
+
uiSchema: { title: "MR IID", type: "number", "x-component": "InputNumber" }
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
type: "string",
|
|
89
|
+
name: "commitSha",
|
|
90
|
+
interface: "input",
|
|
91
|
+
uiSchema: { title: "Commit SHA", type: "string", "x-component": "Input" }
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
type: "string",
|
|
95
|
+
name: "branch",
|
|
96
|
+
interface: "input",
|
|
97
|
+
uiSchema: { title: "Branch", type: "string", "x-component": "Input" }
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
type: "string",
|
|
101
|
+
name: "headSha",
|
|
102
|
+
interface: "input",
|
|
103
|
+
uiSchema: { title: "Reviewed SHA", type: "string", "x-component": "Input" }
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
type: "string",
|
|
107
|
+
name: "latestSha",
|
|
108
|
+
interface: "input",
|
|
109
|
+
uiSchema: { title: "Latest SHA", type: "string", "x-component": "Input" }
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
type: "string",
|
|
113
|
+
name: "triggeredBy",
|
|
114
|
+
defaultValue: "manual",
|
|
115
|
+
interface: "input",
|
|
116
|
+
uiSchema: { title: "Triggered By", type: "string", "x-component": "Input" }
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
type: "string",
|
|
120
|
+
name: "status",
|
|
121
|
+
defaultValue: "pending",
|
|
122
|
+
interface: "select",
|
|
123
|
+
uiSchema: {
|
|
124
|
+
title: "Status",
|
|
125
|
+
type: "string",
|
|
126
|
+
"x-component": "Select",
|
|
127
|
+
enum: [
|
|
128
|
+
{ value: "pending", label: "Pending" },
|
|
129
|
+
{ value: "running", label: "Running" },
|
|
130
|
+
{ value: "completed", label: "Completed" },
|
|
131
|
+
{ value: "failed", label: "Failed" }
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
type: "text",
|
|
137
|
+
length: "long",
|
|
138
|
+
name: "reviewMarkdown",
|
|
139
|
+
interface: "vditor",
|
|
140
|
+
uiSchema: {
|
|
141
|
+
title: "Review Content",
|
|
142
|
+
type: "string",
|
|
143
|
+
"x-component": "MarkdownVditor"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
type: "json",
|
|
148
|
+
name: "metadata",
|
|
149
|
+
interface: "json",
|
|
150
|
+
uiSchema: {
|
|
151
|
+
title: "Metadata",
|
|
152
|
+
type: "object",
|
|
153
|
+
"x-component": "Input.JSON"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
type: "string",
|
|
158
|
+
name: "postStatus",
|
|
159
|
+
defaultValue: "pending_approval",
|
|
160
|
+
interface: "select",
|
|
161
|
+
uiSchema: {
|
|
162
|
+
title: "Post Status",
|
|
163
|
+
type: "string",
|
|
164
|
+
"x-component": "Select",
|
|
165
|
+
enum: [
|
|
166
|
+
{ value: "pending_approval", label: "Pending Approval" },
|
|
167
|
+
{ value: "approved", label: "Approved" },
|
|
168
|
+
{ value: "posted", label: "Posted" },
|
|
169
|
+
{ value: "skipped", label: "Skipped" },
|
|
170
|
+
{ value: "rejected", label: "Rejected" }
|
|
171
|
+
]
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
type: "string",
|
|
176
|
+
name: "postedNoteId",
|
|
177
|
+
interface: "input"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
type: "string",
|
|
181
|
+
name: "approvedBy",
|
|
182
|
+
interface: "input"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
type: "date",
|
|
186
|
+
name: "approvedAt",
|
|
187
|
+
interface: "datetime"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
type: "integer",
|
|
191
|
+
name: "durationMs",
|
|
192
|
+
interface: "integer"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
type: "date",
|
|
196
|
+
name: "startedAt",
|
|
197
|
+
interface: "datetime"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
type: "date",
|
|
201
|
+
name: "finishedAt",
|
|
202
|
+
interface: "datetime"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
type: "text",
|
|
206
|
+
name: "error",
|
|
207
|
+
interface: "textarea"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
type: "text",
|
|
211
|
+
length: "long",
|
|
212
|
+
name: "rawOutput",
|
|
213
|
+
interface: "textarea"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
type: "string",
|
|
217
|
+
name: "sessionId",
|
|
218
|
+
interface: "input"
|
|
219
|
+
}
|
|
220
|
+
]
|
|
221
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: any;
|
|
2
2
|
export default _default;
|
|
@@ -33,6 +33,9 @@ var import_database = require("@nocobase/database");
|
|
|
33
33
|
var gitRepositories_default = (0, import_database.defineCollection)({
|
|
34
34
|
name: "gitRepositories",
|
|
35
35
|
title: "Git Repositories",
|
|
36
|
+
autoGenId: true,
|
|
37
|
+
createdAt: true,
|
|
38
|
+
updatedAt: true,
|
|
36
39
|
fields: [
|
|
37
40
|
{
|
|
38
41
|
type: "string",
|
|
@@ -46,6 +49,12 @@ var gitRepositories_default = (0, import_database.defineCollection)({
|
|
|
46
49
|
interface: "input",
|
|
47
50
|
uiSchema: { title: "Repository URL", type: "string", "x-component": "Input" }
|
|
48
51
|
},
|
|
52
|
+
{
|
|
53
|
+
type: "string",
|
|
54
|
+
name: "username",
|
|
55
|
+
interface: "input",
|
|
56
|
+
uiSchema: { title: "Username", type: "string", "x-component": "Input" }
|
|
57
|
+
},
|
|
49
58
|
{
|
|
50
59
|
type: "string",
|
|
51
60
|
name: "localPath",
|
|
@@ -53,7 +62,7 @@ var gitRepositories_default = (0, import_database.defineCollection)({
|
|
|
53
62
|
uiSchema: { title: "Local Path", type: "string", "x-component": "Input" }
|
|
54
63
|
},
|
|
55
64
|
{
|
|
56
|
-
type: "
|
|
65
|
+
type: "string",
|
|
57
66
|
name: "pat",
|
|
58
67
|
interface: "password",
|
|
59
68
|
uiSchema: { title: "Personal Access Token", type: "string", "x-component": "Password" }
|
|
@@ -70,6 +79,18 @@ var gitRepositories_default = (0, import_database.defineCollection)({
|
|
|
70
79
|
name: "status",
|
|
71
80
|
defaultValue: "disconnected",
|
|
72
81
|
interface: "input"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
type: "boolean",
|
|
85
|
+
name: "autoReview",
|
|
86
|
+
defaultValue: false,
|
|
87
|
+
interface: "checkbox",
|
|
88
|
+
uiSchema: { title: "Auto Review", type: "boolean", "x-component": "Checkbox" }
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
type: "date",
|
|
92
|
+
name: "lastPolledAt",
|
|
93
|
+
interface: "datetime"
|
|
73
94
|
}
|
|
74
95
|
]
|
|
75
96
|
});
|
|
@@ -0,0 +1,138 @@
|
|
|
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 gitReviewFlows_exports = {};
|
|
28
|
+
__export(gitReviewFlows_exports, {
|
|
29
|
+
default: () => gitReviewFlows_default
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(gitReviewFlows_exports);
|
|
32
|
+
var import_database = require("@nocobase/database");
|
|
33
|
+
var gitReviewFlows_default = (0, import_database.defineCollection)({
|
|
34
|
+
name: "gitReviewFlows",
|
|
35
|
+
title: "Git Review Flows",
|
|
36
|
+
autoGenId: true,
|
|
37
|
+
createdBy: true,
|
|
38
|
+
updatedBy: true,
|
|
39
|
+
createdAt: true,
|
|
40
|
+
updatedAt: true,
|
|
41
|
+
fields: [
|
|
42
|
+
{
|
|
43
|
+
type: "string",
|
|
44
|
+
name: "name",
|
|
45
|
+
interface: "input",
|
|
46
|
+
uiSchema: { title: "Flow Name", type: "string", "x-component": "Input", required: true }
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
type: "belongsTo",
|
|
50
|
+
name: "repository",
|
|
51
|
+
target: "gitRepositories",
|
|
52
|
+
foreignKey: "repositoryId",
|
|
53
|
+
interface: "m2o",
|
|
54
|
+
uiSchema: {
|
|
55
|
+
title: "Repository",
|
|
56
|
+
"x-component": "AssociationField",
|
|
57
|
+
"x-component-props": { fieldNames: { label: "name", value: "id" } }
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
type: "boolean",
|
|
62
|
+
name: "enabled",
|
|
63
|
+
defaultValue: true,
|
|
64
|
+
interface: "checkbox",
|
|
65
|
+
uiSchema: { title: "Enabled", type: "boolean", "x-component": "Checkbox" }
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
type: "string",
|
|
69
|
+
name: "triggerMode",
|
|
70
|
+
defaultValue: "manual",
|
|
71
|
+
interface: "select",
|
|
72
|
+
uiSchema: {
|
|
73
|
+
title: "Trigger Mode",
|
|
74
|
+
type: "string",
|
|
75
|
+
"x-component": "Select",
|
|
76
|
+
enum: [
|
|
77
|
+
{ value: "manual", label: "Manual" },
|
|
78
|
+
{ value: "onMergeRequestCreated", label: "On Merge Request Created" },
|
|
79
|
+
{ value: "both", label: "Both" }
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
type: "string",
|
|
85
|
+
name: "aiEmployeeUsername",
|
|
86
|
+
interface: "input",
|
|
87
|
+
uiSchema: { title: "AI Employee", type: "string", "x-component": "Input" }
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
type: "string",
|
|
91
|
+
name: "llmService",
|
|
92
|
+
interface: "input",
|
|
93
|
+
uiSchema: { title: "LLM Service (optional)", type: "string", "x-component": "Input" }
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
type: "string",
|
|
97
|
+
name: "model",
|
|
98
|
+
interface: "input",
|
|
99
|
+
uiSchema: { title: "Model (optional)", type: "string", "x-component": "Input" }
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
type: "string",
|
|
103
|
+
name: "branchFilter",
|
|
104
|
+
interface: "input",
|
|
105
|
+
uiSchema: {
|
|
106
|
+
title: "Branch Filter (regex, optional)",
|
|
107
|
+
type: "string",
|
|
108
|
+
"x-component": "Input"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
type: "string",
|
|
113
|
+
name: "postMode",
|
|
114
|
+
defaultValue: "manual",
|
|
115
|
+
interface: "select",
|
|
116
|
+
uiSchema: {
|
|
117
|
+
title: "Post Mode",
|
|
118
|
+
type: "string",
|
|
119
|
+
"x-component": "Select",
|
|
120
|
+
enum: [
|
|
121
|
+
{ value: "auto", label: "Auto" },
|
|
122
|
+
{ value: "manual", label: "Manual (require approval)" },
|
|
123
|
+
{ value: "disabled", label: "Disabled" }
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
type: "text",
|
|
129
|
+
name: "instructions",
|
|
130
|
+
interface: "textarea",
|
|
131
|
+
uiSchema: {
|
|
132
|
+
title: "Additional Instructions",
|
|
133
|
+
type: "string",
|
|
134
|
+
"x-component": "Input.TextArea"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
]
|
|
138
|
+
});
|