plugin-app-builder-advance 0.0.0-stage → 0.1.8
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/PHUONG-AN-TRIEN-KHAI.md +73 -0
- package/client-v2.d.ts +1 -0
- package/client-v2.js +1 -0
- package/client.d.ts +1 -0
- package/client.js +1 -0
- package/dist/ai/skills/app-builder-records/SKILLS.md +8 -0
- package/dist/ai/skills/app-builder-ui/SKILLS.md +14 -0
- package/dist/ai/skills/app-builder-workflows/SKILLS.md +8 -0
- package/dist/client/index.js +10 -0
- package/dist/client-v2/index.js +10 -0
- package/dist/externalVersion.js +26 -0
- package/dist/index.js +42 -0
- package/dist/locale/en-US.json +122 -0
- package/dist/locale/vi-VN.json +122 -0
- package/dist/locale/zh-CN.json +122 -0
- package/dist/node_modules/cron-parser/.eslintrc.json +15 -0
- package/dist/node_modules/cron-parser/.travis.yml +7 -0
- package/dist/node_modules/cron-parser/LICENSE +21 -0
- package/dist/node_modules/cron-parser/component.json +11 -0
- package/dist/node_modules/cron-parser/index.d.ts +1 -0
- package/dist/node_modules/cron-parser/lib/date.js +252 -0
- package/dist/node_modules/cron-parser/lib/expression.js +983 -0
- package/dist/node_modules/cron-parser/lib/field_compactor.js +70 -0
- package/dist/node_modules/cron-parser/lib/field_stringify.js +38 -0
- package/dist/node_modules/cron-parser/lib/parser.js +1 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/build/amd/luxon.js +8489 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/build/cjs-browser/luxon.js +8487 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/build/global/luxon.js +8490 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/build/global/luxon.min.js +1 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/build/node/luxon.js +7522 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/package.json +96 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/datetime.js +2169 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/duration.js +880 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/errors.js +61 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/conversions.js +157 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/diff.js +80 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/digits.js +76 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/english.js +233 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/formats.js +191 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/formatter.js +386 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/invalid.js +14 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/locale.js +482 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/regexParser.js +335 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/tokenParser.js +424 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/util.js +292 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/zoneUtil.js +36 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/info.js +193 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/interval.js +602 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/luxon.js +26 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/luxonFilled.js +13 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/settings.js +137 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/zone.js +88 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/zones/IANAZone.js +191 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/zones/fixedOffsetZone.js +94 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/zones/invalidZone.js +53 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/zones/localZone.js +63 -0
- package/dist/node_modules/cron-parser/package.json +1 -0
- package/dist/node_modules/cron-parser/test/31_of_month.js +17 -0
- package/dist/node_modules/cron-parser/test/bug.js +29 -0
- package/dist/node_modules/cron-parser/test/crondate.js +16 -0
- package/dist/node_modules/cron-parser/test/crontab.example +7 -0
- package/dist/node_modules/cron-parser/test/empty_around_comma.js +22 -0
- package/dist/node_modules/cron-parser/test/expression.js +1489 -0
- package/dist/node_modules/cron-parser/test/field_compactor.js +250 -0
- package/dist/node_modules/cron-parser/test/field_stringify.js +84 -0
- package/dist/node_modules/cron-parser/test/fields.js +32 -0
- package/dist/node_modules/cron-parser/test/increment_on_first_iteration.js +22 -0
- package/dist/node_modules/cron-parser/test/index-ts3.test-d.ts +133 -0
- package/dist/node_modules/cron-parser/test/index.test-d.ts +138 -0
- package/dist/node_modules/cron-parser/test/leap_year.js +17 -0
- package/dist/node_modules/cron-parser/test/parser.js +46 -0
- package/dist/node_modules/cron-parser/test/parser_crondate_formats.js +145 -0
- package/dist/node_modules/cron-parser/test/parser_day_of_month.js +169 -0
- package/dist/node_modules/cron-parser/test/prev_date.js +32 -0
- package/dist/node_modules/cron-parser/test/stringify.js +402 -0
- package/dist/node_modules/cron-parser/test/timezone.js +422 -0
- package/dist/node_modules/cron-parser/types/common.d.ts +131 -0
- package/dist/node_modules/cron-parser/types/index.d.ts +45 -0
- package/dist/node_modules/cron-parser/types/ts3/index.d.ts +28 -0
- package/dist/node_modules/light-my-request/.gitattributes +2 -0
- package/dist/node_modules/light-my-request/.github/dependabot.yml +13 -0
- package/dist/node_modules/light-my-request/.github/stale.yml +21 -0
- package/dist/node_modules/light-my-request/.github/workflows/benchmark.yml +30 -0
- package/dist/node_modules/light-my-request/.github/workflows/ci.yml +23 -0
- package/dist/node_modules/light-my-request/LICENSE +32 -0
- package/dist/node_modules/light-my-request/benchmark/benchmark.js +164 -0
- package/dist/node_modules/light-my-request/build/build-validation.js +100 -0
- package/dist/node_modules/light-my-request/eslint.config.js +9 -0
- package/dist/node_modules/light-my-request/index.js +2 -0
- package/dist/node_modules/light-my-request/lib/config-validator.js +919 -0
- package/dist/node_modules/light-my-request/lib/form-data.js +79 -0
- package/dist/node_modules/light-my-request/lib/parse-url.js +47 -0
- package/dist/node_modules/light-my-request/lib/request.js +290 -0
- package/dist/node_modules/light-my-request/lib/response.js +240 -0
- package/dist/node_modules/light-my-request/node_modules/cookie/dist/index.d.ts +148 -0
- package/dist/node_modules/light-my-request/node_modules/cookie/dist/index.js +350 -0
- package/dist/node_modules/light-my-request/node_modules/cookie/package.json +47 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/.gitattributes +2 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/.github/dependabot.yml +13 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/.github/workflows/ci.yml +24 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/.taprc +2 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/benchmarks/warn.js +25 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/eslint.config.js +6 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/examples/example.js +11 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/index.js +124 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/package.json +73 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/test/emit-interpolated-string.test.js +29 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/test/emit-once-only.test.js +28 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/test/emit-reset.test.js +36 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/test/emit-set.test.js +30 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/test/emit-unlimited.test.js +37 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/test/index.test.js +99 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/test/issue-88.test.js +33 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/test/jest.test.js +22 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/test/no-warnings.test.js +80 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/types/index.d.ts +37 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/types/index.test-d.ts +36 -0
- package/dist/node_modules/light-my-request/package.json +1 -0
- package/dist/node_modules/light-my-request/test/async-await.test.js +55 -0
- package/dist/node_modules/light-my-request/test/index.test.js +2316 -0
- package/dist/node_modules/light-my-request/test/request.test.js +16 -0
- package/dist/node_modules/light-my-request/test/response.test.js +19 -0
- package/dist/node_modules/light-my-request/test/stream.test.js +359 -0
- package/dist/node_modules/light-my-request/types/index.d.ts +128 -0
- package/dist/node_modules/light-my-request/types/index.test-d.ts +149 -0
- 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/collections/appBuilderExecutions.js +47 -0
- package/dist/server/collections/appBuilderGrants.js +44 -0
- package/dist/server/collections/appBuilderPlans.js +56 -0
- package/dist/server/collections/appBuilderPolicies.js +46 -0
- package/dist/server/collections/appBuilderWorkflows.js +46 -0
- package/dist/server/column-continuation.js +230 -0
- package/dist/server/contracts.js +214 -0
- package/dist/server/index.js +42 -0
- package/dist/server/native.js +208 -0
- package/dist/server/plans.js +321 -0
- package/dist/server/plugin.js +204 -0
- package/dist/server/records.js +323 -0
- package/dist/server/surfaces.js +339 -0
- package/dist/server/workflows.js +446 -0
- package/dist/shared/constants.js +86 -0
- package/dist/shared/tabs.js +68 -0
- package/package.json +65 -4
- package/server.d.ts +1 -0
- package/server.js +1 -0
- package/src/ai/skills/app-builder-records/SKILLS.md +8 -0
- package/src/ai/skills/app-builder-ui/SKILLS.md +14 -0
- package/src/ai/skills/app-builder-workflows/SKILLS.md +8 -0
- package/src/client/index.tsx +28 -0
- package/src/client-v2/builder.tsx +374 -0
- package/src/client-v2/index.tsx +32 -0
- package/src/index.ts +10 -0
- package/src/locale/en-US.json +122 -0
- package/src/locale/vi-VN.json +122 -0
- package/src/locale/zh-CN.json +122 -0
- package/src/server/collections/appBuilderExecutions.ts +26 -0
- package/src/server/collections/appBuilderGrants.ts +23 -0
- package/src/server/collections/appBuilderPlans.ts +35 -0
- package/src/server/collections/appBuilderPolicies.ts +25 -0
- package/src/server/collections/appBuilderWorkflows.ts +25 -0
- package/src/server/column-continuation.ts +239 -0
- package/src/server/contracts.ts +196 -0
- package/src/server/index.ts +10 -0
- package/src/server/native.ts +183 -0
- package/src/server/plans.ts +334 -0
- package/src/server/plugin.ts +211 -0
- package/src/server/records.ts +338 -0
- package/src/server/surfaces.ts +372 -0
- package/src/server/workflows.ts +467 -0
- package/src/shared/constants.ts +43 -0
- package/src/shared/tabs.ts +45 -0
- package/README.md +0 -3
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Triển khai Atlas App Builder trên NocoBase 2.x
|
|
2
|
+
|
|
3
|
+
`plugin-app-builder-advance` bổ sung sáu công cụ và ba skill cho Atlas. Người dùng chọn một Table trên trang Modern UI hoặc đính kèm một tab, xem phương án trong chat và áp dụng theo quy tắc của role đang dùng. Plugin hỗ trợ cập nhật bản ghi và tạo workflow bằng cùng hệ thống quyền. Hai entry client phục vụ NocoBase 2.x khi mở trang FlowModel trong host v1 hoặc v2.
|
|
4
|
+
|
|
5
|
+
## Dùng ngay trong Atlas
|
|
6
|
+
|
|
7
|
+
1. Chọn **Pick block** trên Table, rồi nhắn “Thêm cột Trạng thái từ collection của bảng này”. Atlas tra tên kỹ thuật và đối chiếu với catalog field của Table. Nếu hai field có cùng nhãn, chọn field qua tên kỹ thuật. Thao tác thêm cột dùng field hiện có.
|
|
8
|
+
2. Để sửa nhiều block, dùng **Chọn tab**, đính kèm đích và nhắn “Thêm bảng Đơn hàng cùng form lọc theo Trạng thái”. Có thể đổi tiêu đề, kích thước trang, số thứ tự dòng, sắp xếp các block trực tiếp trên tab và gắn After Action workflow vào action hỗ trợ.
|
|
9
|
+
3. Để cập nhật dữ liệu, chỉ rõ datasource, collection, khóa bản ghi hoặc bộ lọc. Ví dụ “Trên bảng này, đổi trạng thái của các đơn đã lọc thành Đã xử lý”. Nếu thiếu bộ lọc đang hiển thị, Atlas cần người dùng chỉ rõ phạm vi.
|
|
10
|
+
4. Để tạo workflow, mô tả trigger, điều kiện và các field cần đọc hoặc cập nhật. Ví dụ “Sau khi gửi form đơn hàng, đọc mức ưu tiên của đơn rồi cập nhật trạng thái khi mức ưu tiên là Cao”. Plugin tạo bản nháp đã tắt, trả ID và workflow key. Việc nối nút và bật phiên bản có phương án riêng.
|
|
11
|
+
5. Ở chế độ mặc định, thẻ trong chat hiển thị thay đổi và nút **Áp dụng thay đổi**. Người dùng có thể từ chối hoặc đọc lại kết quả. Mở lại trang sẽ đọc cấu hình đã lưu trên server.
|
|
12
|
+
|
|
13
|
+
## Công cụ và các mốc triển khai
|
|
14
|
+
|
|
15
|
+
| Mốc | Công cụ và cơ chế | Điều kiện nghiệm thu |
|
|
16
|
+
| --- | --- | --- |
|
|
17
|
+
| Phạm vi và quyền | `app_builder_inspect_surface` đọc attachment từ lượt chat đã lưu, kiểm tra chủ sở hữu, route khả dụng, layout, cây FlowModel và metadata datasource. | Chọn Table của trang A chỉ sửa được trong Table đó. Chọn tab chỉ sửa được các node thuộc tab. |
|
|
18
|
+
| Giao diện | `app_builder_plan_ui` lập danh sách thao tác addField, compose, configure, layout hoặc bindWorkflow. Backend gọi Flow Surfaces theo UID đã kiểm chứng. | Cột hiện đúng một lần. Thêm block giữ nội dung cũ. Filter nối đúng bảng. Layout chứa đủ các block trực tiếp của grid. |
|
|
19
|
+
| Dữ liệu | `app_builder_plan_records` đọc các khóa và giá trị trước khi ghi, giữ tối đa 100 bản ghi, phân biệt quyền sửa một bản ghi và sửa theo bộ lọc. | Bản ghi mới lọt vào bộ lọc sau khi duyệt được loại khỏi kế hoạch. Bản ghi đổi giá trị hoặc mất quyền được báo riêng. |
|
|
20
|
+
| Workflow | `app_builder_plan_workflow` tạo draft, revision cùng key hoặc phương án bật. Node record, condition và end được biên dịch thành đồ thị native. | Bản nháp đọc lại khớp định nghĩa. Điều kiện tham chiếu field của bước đọc tổ tiên. Quyền áp dụng cả khi workflow thực hiện bước ghi. |
|
|
21
|
+
| Áp dụng và vận hành | `app_builder_submit` kiểm tra policy, chờ phê duyệt hoặc áp dụng. `app_builder_get_result` trả trạng thái, các bước đã xác minh và lỗi còn lại. | Bấm hai lần không tạo thêm cột. Khi lỗi giữa chừng có thể đọc phần đã lưu và chỉ tiếp tục các bước chưa xác minh. |
|
|
22
|
+
|
|
23
|
+
Ba skill `app-builder-ui`, `app-builder-records` và `app-builder-workflows` dùng trình tự kiểm tra metadata, lập phương án, áp dụng và đọc lại từ các skill NocoBase/nb. Khi chạy trong ứng dụng, chúng gọi các công cụ đã đăng ký với Atlas. Server thực hiện các resource action của chính app qua HTTP nội bộ. Không cần cài CLI trên container.
|
|
24
|
+
|
|
25
|
+
## Phân quyền và phê duyệt
|
|
26
|
+
|
|
27
|
+
Trong **App Builder Advance**, chọn role, thao tác và một trong ba chế độ tự động, hỏi trước hoặc chặn. Một thao tác chưa cấu hình mặc định hỏi trước. Khi dùng role gộp, quy tắc nghiêm nhất của các role hiệu lực sẽ áp dụng. UI vẫn cần quyền thiết kế native như `ui.flowSurfaces`. Tài khoản cập nhật bản ghi cần quyền đọc các field dùng để xác định phạm vi, quyền sửa các field đích và quyền trên chính bản ghi đó. Quản trị viên gán quyền trang cấu hình bằng ACL snippet của plugin.
|
|
28
|
+
|
|
29
|
+
Mỗi phương án gắn với app, chủ cuộc chat, tập role, lượt chat và đích. Thời hạn phê duyệt là 30 phút. Trước mỗi lần áp dụng, server đối chiếu lại quyền. Cấu hình UI ảnh hưởng tới những người dùng chung trang. Ghi dữ liệu dùng các collection nghiệp vụ do Collection Manager quản lý trên nguồn main hoặc connector có resource action tương ứng. Khóa bản ghi đơn, giá trị ghi dạng scalar và các toán tử lọc được mô tả trong schema của công cụ.
|
|
30
|
+
|
|
31
|
+
## Danh tính workflow
|
|
32
|
+
|
|
33
|
+
**After Action.** Đối với action create hoặc update đã xác thực, plugin gắn execution với user và role của request khởi phát. Worker dùng thông tin này và kiểm tra lại quyền native khi chạy node `appBuilderRecordAction`. Việc tạo và bật workflow đòi hỏi quyền quản trị workflow. Khi chỉnh workflow do plugin quản lý, Atlas tạo bản nháp khác cùng key để giữ phiên bản hiện hành cho tới khi bật bản mới.
|
|
34
|
+
|
|
35
|
+
**Schedule và Webhook.** Quản trị viên tạo tài khoản ủy quyền, tạo API key gắn với đúng role trong NocoBase, đưa key vào một secret trên server, rồi lưu phạm vi trong **Delegated workflows**. Dùng workflow key ổn định để grant có thể tái sử dụng qua các revision. Mỗi lần bật hoặc chạy đều kiểm tra trigger, đồ thị, user, role, quyền native và phạm vi grant. Webhook dùng trigger `webhook` do plugin chính thức đăng ký. Instance cần cài và bật trigger đó để tạo loại bản nháp này.
|
|
36
|
+
|
|
37
|
+
Ví dụ grant cho phép cập nhật field `status` của các đơn thuộc khu vực Bắc. Các tên trong ví dụ cần được thay bằng giá trị thật của app.
|
|
38
|
+
|
|
39
|
+
```json
|
|
40
|
+
{
|
|
41
|
+
"workflowKey": "abExample",
|
|
42
|
+
"userId": 27,
|
|
43
|
+
"role": "order_operator",
|
|
44
|
+
"secretRef": "APP_BUILDER_KEY_ORDERS",
|
|
45
|
+
"triggers": ["schedule"],
|
|
46
|
+
"enabled": true,
|
|
47
|
+
"rules": [{
|
|
48
|
+
"dataSource": "main",
|
|
49
|
+
"collection": "orders",
|
|
50
|
+
"action": "update",
|
|
51
|
+
"fields": ["status"],
|
|
52
|
+
"where": [{ "field": "region", "operator": "$eq", "value": "North" }]
|
|
53
|
+
}]
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Kết quả và khôi phục
|
|
58
|
+
|
|
59
|
+
Server khóa theo tab, collection hoặc workflow khi một phương án đang thực hiện, lưu kết quả sau mỗi bước và đọc lại đối tượng. Phiên bản UI đã đổi kể từ lúc lập phương án sẽ cần kiểm tra lại. Khi kết quả là `partial`, mở **Đọc lại kết quả** trước khi thử tiếp. Bản ghi biến mất khỏi phạm vi quyền hoặc workflow bị thu hồi grant sẽ dừng ở bước tương ứng. Các connector ngoài quyết định khả năng giao dịch và thời điểm dữ liệu đã ghi trở nên đọc được.
|
|
60
|
+
|
|
61
|
+
Plugin ghi mã phương án, user, role, loại thao tác, kết quả và số bước đã hoàn tất vào log. Phương án có thể chứa giá trị nghiệp vụ, vì vậy API của plugin kiểm tra chủ sở hữu trước khi trả về. Các bảng nội bộ chặn truy cập trực tiếp qua resource API. Khi gỡ plugin cần tắt các workflow đang dùng loại node của plugin.
|
|
62
|
+
|
|
63
|
+
## Build và nghiệm thu
|
|
64
|
+
|
|
65
|
+
Chạy các test server tuần tự, chạy test client, lint và build tại gốc repository.
|
|
66
|
+
|
|
67
|
+
```powershell
|
|
68
|
+
yarn nocobase build plugin-app-builder-advance --no-dts
|
|
69
|
+
Set-Location packages/plugins/plugin-app-builder-advance
|
|
70
|
+
npm pack
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Gói phát hành chứa client, client-v2, server, locale, externalVersion và ba thư mục skill dưới `dist/ai/skills`. Nghiệm thu trên instance đích gồm chọn Table từ chat thật, duyệt, nhìn thấy cột trên bảng đang mở, tải lại trang, và lặp lại với role thiếu quyền. Kiểm tra riêng các datasource ngoài và plugin webhook thực tế đang dùng ở instance đó.
|
package/client-v2.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './src/client-v2';
|
package/client-v2.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./dist/client-v2/index.js');
|
package/client.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './src/client';
|
package/client.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./dist/client/index.js');
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: app-builder-records
|
|
3
|
+
scope: CUSTOM
|
|
4
|
+
description: Update existing business records in the user's data source with a frozen target list and the user's current role.
|
|
5
|
+
introduction:
|
|
6
|
+
title: Atlas record updates
|
|
7
|
+
---
|
|
8
|
+
Take the data source and collection from the attached Table when present. Use app_builder_plan_records with scalar values and either a primary key or explicit conditions. Set useTableFilter to true when the user refers to the filtered table. Never silently broaden a missing filter. Show the target collection, count and fields to change. Each plan is bounded to 100 records. Submit the returned planId using app_builder_submit. A pending plan needs approval in chat. Read app_builder_get_result before reporting success. A partial result identifies the individual verified writes. If the role or target has changed, inspect the current state and make a new plan.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: app-builder-ui
|
|
3
|
+
scope: CUSTOM
|
|
4
|
+
description: Edit Modern UI tables and tabs with Atlas using a picked block, native Flow Surfaces, a role policy and readback.
|
|
5
|
+
introduction:
|
|
6
|
+
title: Atlas UI builder
|
|
7
|
+
---
|
|
8
|
+
Use app_builder_inspect_surface first, including on a clarification turn with no new attachment. It remembers the most recently selected tab in this conversation. Ask for a Table or tab only if inspection reports that one is required. Use UIDs and technical field names from inspection. If two fields have the requested label, ask which one.
|
|
9
|
+
|
|
10
|
+
For a tab, match the requested title among inspected TableBlockModel entries. If several match, ask which one, listing matches in tableOrder. When the user answers by position, inspect again and resolve that position among the matching tables in layout order. If the choices changed, ask again.
|
|
11
|
+
|
|
12
|
+
To show an existing collection field as a column, call app_builder_plan_ui with exactly {"target":"<chosen Table UID>","field":"<technical field name>"}. For a directly picked Table, the field alone is sufficient. Report an already visible column without writing. Before submitting, check the preview contains addField for the chosen Table and field.
|
|
13
|
+
|
|
14
|
+
For an attached tab, target only its descendants. Use compose to append blocks, a filterForm with filterTarget pointing to a table key in that composition or an inspected table UID, configure to edit settings, and layout with each existing block exactly once. Never replace a whole tab to change one block. To attach a managed After Action workflow, use bindWorkflow on the inspected form submit or update action. Call app_builder_plan_ui, then app_builder_submit. On pending, point to the approval card. Use app_builder_get_result after approval. Report done only after verification. For a partial result, identify completed steps and the outstanding error.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: app-builder-workflows
|
|
3
|
+
scope: CUSTOM
|
|
4
|
+
description: Create disabled native workflows with role-scoped record actions, revise by stable key and enable in a separate plan.
|
|
5
|
+
introduction:
|
|
6
|
+
title: Atlas workflow builder
|
|
7
|
+
---
|
|
8
|
+
Send a workflow object to app_builder_plan_workflow. Start with mode draft, a title, a native trigger, and nodes in dependency order. Each node has a stable key and title. Use after for its predecessor. A condition compares a field from a prior get record node against a literal. Use branch 1 for true or 0 for false. Support record get/update and end. Use eventKeyField for a key from the action record or an explicitly configured webhook variable. Schedule uses a fixed record key. Submit and obtain workflowId and workflowKey. For UI actions attach the tab, inspect and submit a bindWorkflow UI plan before requesting enable. Enabling is a separate plan with mode enable and workflowId. Use sourceId for a revision. Scheduled and official webhook flows require an administrator's enabled grant covering the stable workflow key, trigger, user, role, data source, collection, fields, row scope and action. The credential stays in a server secret. When the native trigger or grant is unavailable, report the specific missing capability.
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("antd"),require("react-i18next"),require("@nocobase/plugin-workflow/client-v2"),require("@nocobase/client")):"function"==typeof define&&define.amd?define("plugin-app-builder-advance",["react","antd","react-i18next","@nocobase/plugin-workflow/client-v2","@nocobase/client"],t):"object"==typeof exports?exports["plugin-app-builder-advance"]=t(require("react"),require("antd"),require("react-i18next"),require("@nocobase/plugin-workflow/client-v2"),require("@nocobase/client")):e["plugin-app-builder-advance"]=t(e.react,e.antd,e["react-i18next"],e["@nocobase/plugin-workflow/client-v2"],e["@nocobase/client"])}(self,function(e,t,r,n,o){return function(){"use strict";var a={342:function(e){e.exports=o},197:function(e){e.exports=n},59:function(e){e.exports=t},155:function(t){t.exports=e},953:function(e){e.exports=r}},i={};function l(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return a[e](r,r.exports,l),r.exports}l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,{a:t}),t},l.d=function(e,t){for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.g.importScripts&&(u=l.g.location+"");var u,c=l.g.document;if(!u&&c&&(c.currentScript&&"SCRIPT"===c.currentScript.tagName.toUpperCase()&&(u=c.currentScript.src),!u)){var s=c.getElementsByTagName("script");if(s.length)for(var p=s.length-1;p>-1&&(!u||!/^http(s?):/.test(u));)u=s[p--].src}if(!u)throw Error("Automatic publicPath is not supported in this browser");l.p=u.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/");var f={};return!function(){var e="",t="u">typeof document?document.currentScript:null;if(t&&t.src){var r=t.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"");r.indexOf("/static/plugins/plugin-app-builder-advance/dist/client/")>=0&&(e=r.replace(/\/[^\/]+$/,"/"))}if(!e){var n=window.__webpack_public_path__||"";n&&("/"!==n.charAt(n.length-1)&&(n+="/"),e=n+"static/plugins/plugin-app-builder-advance/dist/client/")}if(!e){var o=window.__nocobase_modern_client_prefix__||"v",a="/"+(o=String(o).replace(/^\/+|\/+$/g,"")||"v")+"/";if(!(e=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var i=window.location.pathname||"/",u=i.indexOf(a);e=u>=0?i.slice(0,u+1):"/"}e&&(e=e.replace(RegExp("/"+o+"/?$"),"/")),e||(e="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),e+="static/plugins/plugin-app-builder-advance/dist/client/"}l.p=e}(),!function(){l.r(f),l.d(f,{default:function(){return D}});var e=l(155),t=l.n(e),r=l(342),n="plugin-app-builder-advance",o="app-builder-tab",a="appBuilderRecordAction",i=["ui.field","ui.design","records.one","records.many","workflow.save","workflow.enable"],u=["auto","ask","block"],c=["app_builder_inspect_surface","app_builder_plan_ui","app_builder_plan_records","app_builder_plan_workflow","app_builder_submit","app_builder_get_result"];function s(e){return(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)!="object"||null===e||Array.isArray(e)?{}:e}function p(e){return(Array.isArray(e)?e:[]).map(s)}var d=l(59),y=l(953),b=l(197);function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function v(e,t,r,n,o,a,i){try{var l=e[a](i),u=l.value}catch(e){r(e);return}l.done?t(u):Promise.resolve(u).then(n,o)}function h(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){v(a,n,o,i,l,"next",e)}function l(e){v(a,n,o,i,l,"throw",e)}i(void 0)})}}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],i=!0,l=!1;try{for(o=o.call(e);!(i=(r=o.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,n=e}finally{try{i||null==o.return||o.return()}finally{if(l)throw n}}return a}}(e,t)||O(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){if(e){if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}}function j(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(j=function(){return!!e})()}function _(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(i,"next",{value:u(0)}),l(i,"throw",{value:u(1)}),l(i,"return",{value:u(2)}),"function"==typeof Symbol&&l(i,Symbol.iterator,{value:function(){return this}}),i;function u(l){return function(u){var c=[l,u];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}function x(){var e=s((0,b.useNodeContext)());return t().createElement(d.Form.Item,{noStyle:!0,shouldUpdate:!0},function(r){var n,o=r.getFieldValue;return t().createElement("pre",{style:{margin:0,whiteSpace:"pre-wrap",overflowWrap:"anywhere"}},JSON.stringify(s(null!=(n=e.config)?n:o("config")),null,2))})}var k=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function r(){var e,t,o;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,o=arguments,t=w(t),g(e=function(e,t){var r;if(t&&("object"==((r=t)&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,j()?Reflect.construct(t,o||[],w(this).constructor):t.apply(this,o)),"title",'{{t("User-scoped record action", {ns:"'+n+'"})}}'),g(e,"type",a),g(e,"group","collection"),g(e,"FieldsetLoader",function(){return h(function(){return _(this,function(e){return[2,{default:x}]})})()}),e}return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&S(r,e),t=[{key:"isAvailable",value:function(){return!1}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(r.prototype,t),r}(b.Instruction);function P(){return(0,y.useTranslation)(n).t}function A(e,t){return h(function(e,t){var r,n,o,a=arguments;return _(this,function(i){switch(i.label){case 0:return r=a.length>2&&void 0!==a[2]?a[2]:{},[4,e.request({url:"appBuilderAdvance:"+t,method:"post",data:r})];case 1:return[2,s(null!=(n=s((o=i.sent()).data).data)?n:o.data)]}})}).apply(this,arguments)}function C(e,t){var r,n;return String(null!=(r=null==(n=p(s(s(s(e).response).data).errors)[0])?void 0:n.message)?r:t)}function T(r){var n=r.options,a=r.contextItems,i=r.onRemove,l=r.onAdd,u=r.close,c=P(),s=E((0,e.useState)(),2),p=s[0],f=s[1];return t().createElement(d.Space,{direction:"vertical",style:{width:"100%"}},t().createElement(d.Select,{style:{width:"100%"},showSearch:!0,optionFilterProp:"label","aria-label":c("Choose a tab"),value:p,options:n,onChange:f}),t().createElement(d.Button,{type:"primary",disabled:!p,onClick:function(){var e=n.find(function(e){return e.value===p});if(e){var t=!0,r=!1,c=void 0;try{for(var s,f=(null!=a?a:[])[Symbol.iterator]();!(t=(s=f.next()).done);t=!0){var d=s.value;[o,"flow-model"].includes(d.type)&&i(d.uid)}}catch(e){r=!0,c=e}finally{try{t||null==f.return||f.return()}finally{if(r)throw c}}l({uid:p,title:e.label,content:{pageUid:e.pageUid,tabUid:p}}),u()}}},c("Attach tab")))}var I={name:o,menu:{Component:function(){var e=P();return t().createElement("span",null,e("Choose a tab"))},onClick:function(e){var r=e.ctx,o=function(e,t){if(null==e)return{};var r,n,o,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(o=0,r=Reflect.ownKeys(Object(e));o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,o={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r]);return o}(e,t),Object.getOwnPropertySymbols)for(o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,["ctx"]),a=(function(e){var t=new Map;!function e(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=!0,a=!1,i=void 0;try{for(var l,u=p(r)[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var c,s,f,d=l.value,y=String(null!=(c=null!=(s=d.id)?s:d.schemaUid)?c:"");y&&(t.set(y,{route:d,parent:String(null!=(f=d.parentId)?f:n)}),e(d.children,y))}}catch(e){a=!0,i=e}finally{try{o||null==u.return||u.return()}finally{if(a)throw i}}}(e);var r=[],n=!0,o=!1,a=void 0;try{for(var i,l=t.values()[Symbol.iterator]();!(n=(i=l.next()).done);n=!0)!function(){var e,n,o=i.value,a=o.route,l=t.get(o.parent);if("tabs"===a.type&&a.schemaUid&&(null==l?void 0:l.route.type)==="flowPage"&&l.route.schemaUid){for(var u=[],c=new Set,s=l;s&&!c.has(s.parent);)c.add(s.parent),u.unshift(String(null!=(n=s.route.title)?n:s.route.schemaUid)),s=t.get(s.parent);l.route.enableTabs&&u.push(String(null!=(e=a.title)?e:a.schemaUid)),r.push({tab:String(a.schemaUid),page:String(l.route.schemaUid),label:u.join(" / "),visible:l.route.enableTabs?!a.hidden:!r.some(function(e){return e.page===l.route.schemaUid})})}}()}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}return r})(r.routeRepository.listAccessible()).filter(function(e){return e.visible}).map(function(e){return{value:e.tab,pageUid:e.page,label:e.label}});r.viewer.dialog({title:r.t("Choose a tab",{ns:n}),content:function(e){var r,n;return t().createElement(T,(r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){g(e,t,r[t])})}return e}({},o),n=n={options:a,close:function(){return e.close()}},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r))}})}},tag:{Component:function(e){var r=e.item;return t().createElement("span",null,r.title)}}};function R(e){var r,n=e.plan,o=P(),a=s(n.preview),i=p(a.operations);return"ui"===n.domain?t().createElement("div",null,t().createElement(d.Typography.Text,null,String(null!=(r=a.title)?r:a.uid)),t().createElement("ul",null,i.map(function(e,r){var n;return t().createElement("li",{key:r},o("operation."+e.kind)," ","addField"===e.kind?String(e.field):"compose"===e.kind?p(e.blocks).map(function(e){return String(e.title)}).join(", "):"bindWorkflow"===e.kind?String(e.workflowKey):JSON.stringify(null!=(n=e.settings)?n:e.rows))})),t().createElement(d.Typography.Text,{type:"secondary"},o("Shared page design"))):t().createElement("div",null,"records"===n.domain&&t().createElement(d.Typography.Text,null,String(a.dataSource)," / ",String(a.collection)," \xb7 ",o("Target records")," ",String(a.count)),t().createElement("pre",{style:{whiteSpace:"pre-wrap",overflowWrap:"anywhere",maxHeight:260,overflow:"auto"}},JSON.stringify(a,null,2)))}function F(r){var n=r.api,o=P(),a=E((0,e.useState)({}),2),l=a[0],c=a[1],s=E((0,e.useState)(""),2),f=s[0],y=s[1],b=E((0,e.useState)(""),2),m=b[0],v=b[1],g=E((0,e.useState)(!1),2),w=g[0],S=g[1],O=(0,e.useCallback)(function(){return h(function(){return _(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,A(n,"settings")];case 1:return c.apply(void 0,[e.sent()]),[3,3];case 2:return y(C(e.sent(),o("Builder action failed"))),[3,3];case 3:return[2]}})})()},[n,o]);function j(e,t){return h(function(){return _(this,function(r){switch(r.label){case 0:S(!0),y(""),v(""),r.label=1;case 1:return r.trys.push([1,4,5,6]),[4,A(n,e,t)];case 2:return v(o(!1===r.sent().bound?"Atlas unavailable":"Saved")),[4,O()];case 3:return r.sent(),[3,6];case 4:return y(C(r.sent(),o("Builder action failed"))),[3,6];case 5:return S(!1),[7];case 6:return[2]}})})()}(0,e.useEffect)(function(){O()},[O]);var x=E(d.Form.useForm(),1)[0],k=d.Form.useWatch("role",x),T=d.Form.useWatch("operation",x);return(0,e.useEffect)(function(){var e,t;x.setFieldValue("mode",null!=(e=null==(t=p(l.policies).find(function(e){return e.role===k&&e.operation===T}))?void 0:t.mode)?e:"ask")},[k,T,l,x]),t().createElement(d.Space,{direction:"vertical",style:{width:"100%",maxWidth:760,padding:16}},f&&t().createElement(d.Alert,{type:"error",message:f})," ",m&&t().createElement(d.Alert,{type:"success",message:m}),t().createElement(d.Card,{title:o("Role policy")},t().createElement(d.Form,{layout:"vertical",form:x,onFinish:function(e){return j("savePolicy",e)}},t().createElement(d.Form.Item,{label:o("Role"),name:"role",rules:[{required:!0}]},t().createElement(d.Select,{options:p(l.roles).map(function(e){var t;return{value:String(e.name),label:String(null!=(t=e.title)?t:e.name)}})})),t().createElement(d.Form.Item,{label:o("Operation"),name:"operation",rules:[{required:!0}]},t().createElement(d.Select,{options:i.map(function(e){return{value:e,label:o(e)}})})),t().createElement(d.Form.Item,{label:o("Decision"),name:"mode",initialValue:"ask"},t().createElement(d.Select,{options:u.map(function(e){return{value:e,label:o(e)}})})),t().createElement(d.Button,{htmlType:"submit",type:"primary",loading:w},o("Save policy")))),t().createElement(d.Card,{title:o("Delegated workflows")},t().createElement(d.Typography.Paragraph,null,o("Grant instructions")),t().createElement(d.Form,{layout:"vertical",onFinish:function(e){try{var t=JSON.parse(e.grant);return j("saveGrant",t)}catch(e){y(o("Invalid builder input"))}}},t().createElement(d.Form.Item,{name:"grant",label:o("Grant JSON"),rules:[{required:!0}]},t().createElement(d.Input.TextArea,{autoSize:{minRows:5,maxRows:15},placeholder:JSON.stringify({workflowKey:"...",userId:2,role:"operator",secretRef:"APP_BUILDER_KEY_ORDERS",triggers:["schedule"],rules:[{dataSource:"main",collection:"orders",action:"update",fields:["status"],where:[]}],enabled:!0},null,2)})),t().createElement(d.Button,{htmlType:"submit",loading:w},o("Save grant"))),p(l.grants).map(function(e){return t().createElement("details",{key:String(e.workflowKey)},t().createElement("summary",null,String(e.workflowKey)," \xb7 ",String(e.role)),t().createElement("pre",{style:{whiteSpace:"pre-wrap"}},JSON.stringify(e,null,2)))})),t().createElement(d.Button,{onClick:function(){return j("bindAtlas",{})},loading:w},o("Connect tools to Atlas")))}function B(e,t,r,n,o,a,i){try{var l=e[a](i),u=l.value}catch(e){r(e);return}l.done?t(u):Promise.resolve(u).then(n,o)}function U(e,t,r){return(U=$()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&q(o,r.prototype),o}).apply(null,arguments)}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function q(e,t){return(q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function N(e){var t="function"==typeof Map?new Map:void 0;return(N=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return U(e,arguments,M(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),q(r,e)})(e)}function $(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return($=function(){return!!e})()}var D=function(r){var i;if("function"!=typeof r&&null!==r)throw TypeError("Super expression must either be null or a function");function l(){var e,t;if(!(this instanceof l))throw TypeError("Cannot call a class as a function");return e=l,t=arguments,e=M(e),function(e,t){var r;if(t&&("object"==((r=t)&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,$()?Reflect.construct(e,t||[],M(this).constructor):e.apply(this,t))}return l.prototype=Object.create(r&&r.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),r&&q(l,r),i=[{key:"load",value:function(){var r;return(r=function(){var r,i,l,u;return function(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(i,"next",{value:u(0)}),l(i,"throw",{value:u(1)}),l(i,"return",{value:u(2)}),"function"==typeof Symbol&&l(i,Symbol.iterator,{value:function(){return this}}),i;function u(l){return function(u){var c=[l,u];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(f){var y,b;return r=this,null==(l=this.app.pm.get("ai"))||null==(i=l.aiManager)||i.registerWorkContext(o,I),this.ai.toolsManager.registerTools(c["4"],{ui:{card:(y=this.app.apiClient,b=this.flowEngine,function(r){var n=r.toolCall,o=r.decisions,a=P(),i=s(n.args).planId,l=E((0,e.useState)(),2),u=l[0],c=l[1],f=E((0,e.useState)(""),2),v=f[0],g=f[1],w=E((0,e.useState)(!1),2),S=w[0],j=w[1],x=(0,e.useRef)(""),k=(0,e.useCallback)(function(e){return h(function(){var t,r,n;return _(this,function(o){switch(o.label){case 0:if("string"!=typeof i)return[2];j(!0),g(""),o.label=1;case 1:return o.trys.push([1,5,6,7]),[4,A(y,e,{planId:i})];case 2:var l;if(c(t=o.sent()),n=i+"/"+(r=p(t.results).filter(function(e){return"string"==typeof e.refreshUid})).length,!(r.length&&x.current!==n))return[3,4];return[4,(l=String(r[r.length-1].refreshUid),h(function(){var e,t,r,n,o,a,i,u,c,s;return _(this,function(p){switch(p.label){case 0:if(!(e=b.getModel(l,!0)))return[2];if(!(t=e.parent))return e.refresh(),[2];return r=e.subKey,o=Array.isArray(n=t.subModels[r])?n.findIndex(function(e){return e.uid===l}):-1,[4,e.flowEngine.loadModel({uid:l,refresh:!0})];case 1:if(!(a=p.sent()))throw Error("Refresh surface failed");if(i=t.subModels[r],o>=0){if(Array.isArray(i)&&i.some(function(e){return e.uid===l})||t.addSubModel(r,a),Array.isArray(u=t.subModels[r])){var f;(s=u.findIndex(function(e){return e.uid===l}))>=0&&s!==o&&(c=u).splice.apply(c,[o,0].concat(function(e){if(Array.isArray(e))return m(e)}(f=u.splice(s,1))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(f)||O(f)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}}else i!==a&&t.setSubModel(r,a);return t.refresh(),[2]}})})())];case 3:o.sent(),x.current=n,o.label=4;case 4:return[3,7];case 5:return g(C(o.sent(),a("Builder action failed"))),[3,7];case 6:return j(!1),[7];case 7:return[2]}})})()},[i,a]);return((0,e.useEffect)(function(){"interrupted"!==n.invokeStatus&&k("view")},[k,n.invokeStatus]),"interrupted"===n.invokeStatus)?t().createElement(d.Space,null,t().createElement(d.Button,{onClick:o.approve},a("Continue")),t().createElement(d.Button,{onClick:function(){return o.reject()}},a("Reject"))):t().createElement(d.Card,{size:"small",title:a("Atlas change plan")},t().createElement(d.Space,{direction:"vertical",style:{width:"100%"}},v&&t().createElement(d.Alert,{type:"error",message:v}),u&&t().createElement(t().Fragment,null,t().createElement(d.Typography.Text,{strong:!0},a(String(u.state))),t().createElement(R,{plan:u}),u.error&&t().createElement(d.Alert,{type:"warning",message:a(String(u.error))}),!!p(u.results).length&&t().createElement("details",null,t().createElement("summary",null,a("Completed steps")," ",p(u.results).length),t().createElement("pre",{style:{whiteSpace:"pre-wrap"}},JSON.stringify(u.results,null,2)))),t().createElement(d.Space,null,((null==u?void 0:u.state)==="pending"||(null==u?void 0:u.state)==="partial")&&t().createElement(t().Fragment,null,t().createElement(d.Button,{type:"primary",loading:S,onClick:function(){return k("confirm")}},a("Apply changes")),t().createElement(d.Button,{disabled:S,onClick:function(){return k("reject")}},a("Reject"))),t().createElement(d.Button,{loading:S,onClick:function(){return k("view")}},a("Refresh result")))))})}}),null==(u=this.app.pm.get("workflow"))||u.registerInstruction(a,k),this.app.pluginSettingsManager.add(n,{title:this.t("App Builder Advance"),icon:"BuildOutlined",aclSnippet:"pm."+this.options.name,Component:function(){return t().createElement(F,{api:r.app.apiClient})}}),[2]})},function(){var e=this,t=arguments;return new Promise(function(n,o){var a=r.apply(e,t);function i(e){B(a,n,o,i,l,"next",e)}function l(e){B(a,n,o,i,l,"throw",e)}i(void 0)})}).call(this)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(l.prototype,i),l}(N(r.Plugin))}(),f}()});
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("antd"),require("react-i18next"),require("@nocobase/plugin-workflow/client-v2"),require("@nocobase/client-v2")):"function"==typeof define&&define.amd?define("plugin-app-builder-advance/client-v2",["react","antd","react-i18next","@nocobase/plugin-workflow/client-v2","@nocobase/client-v2"],t):"object"==typeof exports?exports["plugin-app-builder-advance/client-v2"]=t(require("react"),require("antd"),require("react-i18next"),require("@nocobase/plugin-workflow/client-v2"),require("@nocobase/client-v2")):e["plugin-app-builder-advance/client-v2"]=t(e.react,e.antd,e["react-i18next"],e["@nocobase/plugin-workflow/client-v2"],e["@nocobase/client-v2"])}(self,function(e,t,r,n,o){return function(){"use strict";var a={485:function(e){e.exports=o},197:function(e){e.exports=n},59:function(e){e.exports=t},155:function(t){t.exports=e},953:function(e){e.exports=r}},i={};function l(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return a[e](r,r.exports,l),r.exports}l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,{a:t}),t},l.d=function(e,t){for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.g.importScripts&&(u=l.g.location+"");var u,c=l.g.document;if(!u&&c&&(c.currentScript&&"SCRIPT"===c.currentScript.tagName.toUpperCase()&&(u=c.currentScript.src),!u)){var s=c.getElementsByTagName("script");if(s.length)for(var p=s.length-1;p>-1&&(!u||!/^http(s?):/.test(u));)u=s[p--].src}if(!u)throw Error("Automatic publicPath is not supported in this browser");l.p=u.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/");var f={};return!function(){var e="",t="u">typeof document?document.currentScript:null;if(t&&t.src){var r=t.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"");r.indexOf("/static/plugins/plugin-app-builder-advance/dist/client-v2/")>=0&&(e=r.replace(/\/[^\/]+$/,"/"))}if(!e){var n=window.__webpack_public_path__||"";n&&("/"!==n.charAt(n.length-1)&&(n+="/"),e=n+"static/plugins/plugin-app-builder-advance/dist/client-v2/")}if(!e){var o=window.__nocobase_modern_client_prefix__||"v",a="/"+(o=String(o).replace(/^\/+|\/+$/g,"")||"v")+"/";if(!(e=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var i=window.location.pathname||"/",u=i.indexOf(a);e=u>=0?i.slice(0,u+1):"/"}e&&(e=e.replace(RegExp("/"+o+"/?$"),"/")),e||(e="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),e+="static/plugins/plugin-app-builder-advance/dist/client-v2/"}l.p=e}(),!function(){l.r(f),l.d(f,{default:function(){return J}});var e=l(155),t=l.n(e),r=l(485),n="plugin-app-builder-advance",o="app-builder-tab",a="appBuilderRecordAction",i=["ui.field","ui.design","records.one","records.many","workflow.save","workflow.enable"],u=["auto","ask","block"],c=["app_builder_inspect_surface","app_builder_plan_ui","app_builder_plan_records","app_builder_plan_workflow","app_builder_submit","app_builder_get_result"];function s(e){return(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)!="object"||null===e||Array.isArray(e)?{}:e}function p(e){return(Array.isArray(e)?e:[]).map(s)}var d=l(59),y=l(953),b=l(197);function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function v(e,t,r,n,o,a,i){try{var l=e[a](i),u=l.value}catch(e){r(e);return}l.done?t(u):Promise.resolve(u).then(n,o)}function h(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){v(a,n,o,i,l,"next",e)}function l(e){v(a,n,o,i,l,"throw",e)}i(void 0)})}}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],i=!0,l=!1;try{for(o=o.call(e);!(i=(r=o.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,n=e}finally{try{i||null==o.return||o.return()}finally{if(l)throw n}}return a}}(e,t)||O(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){if(e){if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}}function j(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(j=function(){return!!e})()}function _(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(i,"next",{value:u(0)}),l(i,"throw",{value:u(1)}),l(i,"return",{value:u(2)}),"function"==typeof Symbol&&l(i,Symbol.iterator,{value:function(){return this}}),i;function u(l){return function(u){var c=[l,u];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}function k(){var e=s((0,b.useNodeContext)());return t().createElement(d.Form.Item,{noStyle:!0,shouldUpdate:!0},function(r){var n,o=r.getFieldValue;return t().createElement("pre",{style:{margin:0,whiteSpace:"pre-wrap",overflowWrap:"anywhere"}},JSON.stringify(s(null!=(n=e.config)?n:o("config")),null,2))})}var x=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function r(){var e,t,o;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,o=arguments,t=w(t),g(e=function(e,t){var r;if(t&&("object"==((r=t)&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,j()?Reflect.construct(t,o||[],w(this).constructor):t.apply(this,o)),"title",'{{t("User-scoped record action", {ns:"'+n+'"})}}'),g(e,"type",a),g(e,"group","collection"),g(e,"FieldsetLoader",function(){return h(function(){return _(this,function(e){return[2,{default:k}]})})()}),e}return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&S(r,e),t=[{key:"isAvailable",value:function(){return!1}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(r.prototype,t),r}(b.Instruction);function P(){return(0,y.useTranslation)(n).t}function A(e,t){return h(function(e,t){var r,n,o,a=arguments;return _(this,function(i){switch(i.label){case 0:return r=a.length>2&&void 0!==a[2]?a[2]:{},[4,e.request({url:"appBuilderAdvance:"+t,method:"post",data:r})];case 1:return[2,s(null!=(n=s((o=i.sent()).data).data)?n:o.data)]}})}).apply(this,arguments)}function T(e,t){var r,n;return String(null!=(r=null==(n=p(s(s(s(e).response).data).errors)[0])?void 0:n.message)?r:t)}function C(r){var n=r.options,a=r.contextItems,i=r.onRemove,l=r.onAdd,u=r.close,c=P(),s=E((0,e.useState)(),2),p=s[0],f=s[1];return t().createElement(d.Space,{direction:"vertical",style:{width:"100%"}},t().createElement(d.Select,{style:{width:"100%"},showSearch:!0,optionFilterProp:"label","aria-label":c("Choose a tab"),value:p,options:n,onChange:f}),t().createElement(d.Button,{type:"primary",disabled:!p,onClick:function(){var e=n.find(function(e){return e.value===p});if(e){var t=!0,r=!1,c=void 0;try{for(var s,f=(null!=a?a:[])[Symbol.iterator]();!(t=(s=f.next()).done);t=!0){var d=s.value;[o,"flow-model"].includes(d.type)&&i(d.uid)}}catch(e){r=!0,c=e}finally{try{t||null==f.return||f.return()}finally{if(r)throw c}}l({uid:p,title:e.label,content:{pageUid:e.pageUid,tabUid:p}}),u()}}},c("Attach tab")))}var I={name:o,menu:{Component:function(){var e=P();return t().createElement("span",null,e("Choose a tab"))},onClick:function(e){var r=e.ctx,o=function(e,t){if(null==e)return{};var r,n,o,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(o=0,r=Reflect.ownKeys(Object(e));o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,o={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r]);return o}(e,t),Object.getOwnPropertySymbols)for(o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,["ctx"]),a=(function(e){var t=new Map;!function e(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=!0,a=!1,i=void 0;try{for(var l,u=p(r)[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var c,s,f,d=l.value,y=String(null!=(c=null!=(s=d.id)?s:d.schemaUid)?c:"");y&&(t.set(y,{route:d,parent:String(null!=(f=d.parentId)?f:n)}),e(d.children,y))}}catch(e){a=!0,i=e}finally{try{o||null==u.return||u.return()}finally{if(a)throw i}}}(e);var r=[],n=!0,o=!1,a=void 0;try{for(var i,l=t.values()[Symbol.iterator]();!(n=(i=l.next()).done);n=!0)!function(){var e,n,o=i.value,a=o.route,l=t.get(o.parent);if("tabs"===a.type&&a.schemaUid&&(null==l?void 0:l.route.type)==="flowPage"&&l.route.schemaUid){for(var u=[],c=new Set,s=l;s&&!c.has(s.parent);)c.add(s.parent),u.unshift(String(null!=(n=s.route.title)?n:s.route.schemaUid)),s=t.get(s.parent);l.route.enableTabs&&u.push(String(null!=(e=a.title)?e:a.schemaUid)),r.push({tab:String(a.schemaUid),page:String(l.route.schemaUid),label:u.join(" / "),visible:l.route.enableTabs?!a.hidden:!r.some(function(e){return e.page===l.route.schemaUid})})}}()}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}return r})(r.routeRepository.listAccessible()).filter(function(e){return e.visible}).map(function(e){return{value:e.tab,pageUid:e.page,label:e.label}});r.viewer.dialog({title:r.t("Choose a tab",{ns:n}),content:function(e){var r,n;return t().createElement(C,(r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){g(e,t,r[t])})}return e}({},o),n=n={options:a,close:function(){return e.close()}},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r))}})}},tag:{Component:function(e){var r=e.item;return t().createElement("span",null,r.title)}}};function R(e){var r,n=e.plan,o=P(),a=s(n.preview),i=p(a.operations);return"ui"===n.domain?t().createElement("div",null,t().createElement(d.Typography.Text,null,String(null!=(r=a.title)?r:a.uid)),t().createElement("ul",null,i.map(function(e,r){var n;return t().createElement("li",{key:r},o("operation."+e.kind)," ","addField"===e.kind?String(e.field):"compose"===e.kind?p(e.blocks).map(function(e){return String(e.title)}).join(", "):"bindWorkflow"===e.kind?String(e.workflowKey):JSON.stringify(null!=(n=e.settings)?n:e.rows))})),t().createElement(d.Typography.Text,{type:"secondary"},o("Shared page design"))):t().createElement("div",null,"records"===n.domain&&t().createElement(d.Typography.Text,null,String(a.dataSource)," / ",String(a.collection)," \xb7 ",o("Target records")," ",String(a.count)),t().createElement("pre",{style:{whiteSpace:"pre-wrap",overflowWrap:"anywhere",maxHeight:260,overflow:"auto"}},JSON.stringify(a,null,2)))}function F(r){var n=r.api,o=P(),a=E((0,e.useState)({}),2),l=a[0],c=a[1],s=E((0,e.useState)(""),2),f=s[0],y=s[1],b=E((0,e.useState)(""),2),m=b[0],v=b[1],g=E((0,e.useState)(!1),2),w=g[0],S=g[1],O=(0,e.useCallback)(function(){return h(function(){return _(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,A(n,"settings")];case 1:return c.apply(void 0,[e.sent()]),[3,3];case 2:return y(T(e.sent(),o("Builder action failed"))),[3,3];case 3:return[2]}})})()},[n,o]);function j(e,t){return h(function(){return _(this,function(r){switch(r.label){case 0:S(!0),y(""),v(""),r.label=1;case 1:return r.trys.push([1,4,5,6]),[4,A(n,e,t)];case 2:return v(o(!1===r.sent().bound?"Atlas unavailable":"Saved")),[4,O()];case 3:return r.sent(),[3,6];case 4:return y(T(r.sent(),o("Builder action failed"))),[3,6];case 5:return S(!1),[7];case 6:return[2]}})})()}(0,e.useEffect)(function(){O()},[O]);var k=E(d.Form.useForm(),1)[0],x=d.Form.useWatch("role",k),C=d.Form.useWatch("operation",k);return(0,e.useEffect)(function(){var e,t;k.setFieldValue("mode",null!=(e=null==(t=p(l.policies).find(function(e){return e.role===x&&e.operation===C}))?void 0:t.mode)?e:"ask")},[x,C,l,k]),t().createElement(d.Space,{direction:"vertical",style:{width:"100%",maxWidth:760,padding:16}},f&&t().createElement(d.Alert,{type:"error",message:f})," ",m&&t().createElement(d.Alert,{type:"success",message:m}),t().createElement(d.Card,{title:o("Role policy")},t().createElement(d.Form,{layout:"vertical",form:k,onFinish:function(e){return j("savePolicy",e)}},t().createElement(d.Form.Item,{label:o("Role"),name:"role",rules:[{required:!0}]},t().createElement(d.Select,{options:p(l.roles).map(function(e){var t;return{value:String(e.name),label:String(null!=(t=e.title)?t:e.name)}})})),t().createElement(d.Form.Item,{label:o("Operation"),name:"operation",rules:[{required:!0}]},t().createElement(d.Select,{options:i.map(function(e){return{value:e,label:o(e)}})})),t().createElement(d.Form.Item,{label:o("Decision"),name:"mode",initialValue:"ask"},t().createElement(d.Select,{options:u.map(function(e){return{value:e,label:o(e)}})})),t().createElement(d.Button,{htmlType:"submit",type:"primary",loading:w},o("Save policy")))),t().createElement(d.Card,{title:o("Delegated workflows")},t().createElement(d.Typography.Paragraph,null,o("Grant instructions")),t().createElement(d.Form,{layout:"vertical",onFinish:function(e){try{var t=JSON.parse(e.grant);return j("saveGrant",t)}catch(e){y(o("Invalid builder input"))}}},t().createElement(d.Form.Item,{name:"grant",label:o("Grant JSON"),rules:[{required:!0}]},t().createElement(d.Input.TextArea,{autoSize:{minRows:5,maxRows:15},placeholder:JSON.stringify({workflowKey:"...",userId:2,role:"operator",secretRef:"APP_BUILDER_KEY_ORDERS",triggers:["schedule"],rules:[{dataSource:"main",collection:"orders",action:"update",fields:["status"],where:[]}],enabled:!0},null,2)})),t().createElement(d.Button,{htmlType:"submit",loading:w},o("Save grant"))),p(l.grants).map(function(e){return t().createElement("details",{key:String(e.workflowKey)},t().createElement("summary",null,String(e.workflowKey)," \xb7 ",String(e.role)),t().createElement("pre",{style:{whiteSpace:"pre-wrap"}},JSON.stringify(e,null,2)))})),t().createElement(d.Button,{onClick:function(){return j("bindAtlas",{})},loading:w},o("Connect tools to Atlas")))}function B(e,t,r,n,o,a,i){try{var l=e[a](i),u=l.value}catch(e){r(e);return}l.done?t(u):Promise.resolve(u).then(n,o)}function M(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){B(a,n,o,i,l,"next",e)}function l(e){B(a,n,o,i,l,"throw",e)}i(void 0)})}}function U(e,t,r){return(U=$()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&N(o,r.prototype),o}).apply(null,arguments)}function q(e){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function K(e){var t="function"==typeof Map?new Map:void 0;return(K=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return U(e,arguments,q(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),N(r,e)})(e)}function $(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return($=function(){return!!e})()}function D(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(i,"next",{value:u(0)}),l(i,"throw",{value:u(1)}),l(i,"return",{value:u(2)}),"function"==typeof Symbol&&l(i,Symbol.iterator,{value:function(){return this}}),i;function u(l){return function(u){var c=[l,u];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var J=function(r){var i;if("function"!=typeof r&&null!==r)throw TypeError("Super expression must either be null or a function");function l(){var e,t;if(!(this instanceof l))throw TypeError("Cannot call a class as a function");return e=l,t=arguments,e=q(e),function(e,t){var r;if(t&&("object"==((r=t)&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,$()?Reflect.construct(e,t||[],q(this).constructor):e.apply(this,t))}return l.prototype=Object.create(r&&r.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),r&&N(l,r),i=[{key:"load",value:function(){return M(function(){var r,i,l,u,f,y;return D(this,function(b){var v,g;return r=this,f="pm."+this.options.name,null==(l=this.app.pm.get("ai"))||null==(i=l.aiManager)||i.registerWorkContext(o,I),this.ai.toolsManager.registerTools(c["4"],{ui:{card:(v=this.app.apiClient,g=this.flowEngine,function(r){var n=r.toolCall,o=r.decisions,a=P(),i=s(n.args).planId,l=E((0,e.useState)(),2),u=l[0],c=l[1],f=E((0,e.useState)(""),2),y=f[0],b=f[1],w=E((0,e.useState)(!1),2),S=w[0],j=w[1],k=(0,e.useRef)(""),x=(0,e.useCallback)(function(e){return h(function(){var t,r,n;return _(this,function(o){switch(o.label){case 0:if("string"!=typeof i)return[2];j(!0),b(""),o.label=1;case 1:return o.trys.push([1,5,6,7]),[4,A(v,e,{planId:i})];case 2:var l;if(c(t=o.sent()),n=i+"/"+(r=p(t.results).filter(function(e){return"string"==typeof e.refreshUid})).length,!(r.length&&k.current!==n))return[3,4];return[4,(l=String(r[r.length-1].refreshUid),h(function(){var e,t,r,n,o,a,i,u,c,s;return _(this,function(p){switch(p.label){case 0:if(!(e=g.getModel(l,!0)))return[2];if(!(t=e.parent))return e.refresh(),[2];return r=e.subKey,o=Array.isArray(n=t.subModels[r])?n.findIndex(function(e){return e.uid===l}):-1,[4,e.flowEngine.loadModel({uid:l,refresh:!0})];case 1:if(!(a=p.sent()))throw Error("Refresh surface failed");if(i=t.subModels[r],o>=0){if(Array.isArray(i)&&i.some(function(e){return e.uid===l})||t.addSubModel(r,a),Array.isArray(u=t.subModels[r])){var f;(s=u.findIndex(function(e){return e.uid===l}))>=0&&s!==o&&(c=u).splice.apply(c,[o,0].concat(function(e){if(Array.isArray(e))return m(e)}(f=u.splice(s,1))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(f)||O(f)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}}else i!==a&&t.setSubModel(r,a);return t.refresh(),[2]}})})())];case 3:o.sent(),k.current=n,o.label=4;case 4:return[3,7];case 5:return b(T(o.sent(),a("Builder action failed"))),[3,7];case 6:return j(!1),[7];case 7:return[2]}})})()},[i,a]);return((0,e.useEffect)(function(){"interrupted"!==n.invokeStatus&&x("view")},[x,n.invokeStatus]),"interrupted"===n.invokeStatus)?t().createElement(d.Space,null,t().createElement(d.Button,{onClick:o.approve},a("Continue")),t().createElement(d.Button,{onClick:function(){return o.reject()}},a("Reject"))):t().createElement(d.Card,{size:"small",title:a("Atlas change plan")},t().createElement(d.Space,{direction:"vertical",style:{width:"100%"}},y&&t().createElement(d.Alert,{type:"error",message:y}),u&&t().createElement(t().Fragment,null,t().createElement(d.Typography.Text,{strong:!0},a(String(u.state))),t().createElement(R,{plan:u}),u.error&&t().createElement(d.Alert,{type:"warning",message:a(String(u.error))}),!!p(u.results).length&&t().createElement("details",null,t().createElement("summary",null,a("Completed steps")," ",p(u.results).length),t().createElement("pre",{style:{whiteSpace:"pre-wrap"}},JSON.stringify(u.results,null,2)))),t().createElement(d.Space,null,((null==u?void 0:u.state)==="pending"||(null==u?void 0:u.state)==="partial")&&t().createElement(t().Fragment,null,t().createElement(d.Button,{type:"primary",loading:S,onClick:function(){return x("confirm")}},a("Apply changes")),t().createElement(d.Button,{disabled:S,onClick:function(){return x("reject")}},a("Reject"))),t().createElement(d.Button,{loading:S,onClick:function(){return x("view")}},a("Refresh result")))))})}}),null==(u=this.app.pm.get("workflow"))||u.registerInstruction(a,x),y=this.t("App Builder Advance"),this.pluginSettingsManager.addMenuItem({key:n,title:y,icon:"BuildOutlined",aclSnippet:f}),this.pluginSettingsManager.addPageTabItem({menuKey:n,key:"index",title:y,aclSnippet:f,componentLoader:function(){return M(function(){var e;return D(this,function(r){return e=this,[2,{default:function(){return t().createElement(F,{api:e.app.apiClient})}}]})}).call(r)}}),[2]})}).call(this)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(l.prototype,i),l}(K(r.Plugin))}(),f}()});
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
module.exports = {
|
|
11
|
+
"react": "18.2.0",
|
|
12
|
+
"@nocobase/client": "2.2.52",
|
|
13
|
+
"@nocobase/plugin-ai": "2.2.52",
|
|
14
|
+
"@nocobase/plugin-workflow": "2.2.52",
|
|
15
|
+
"antd": "5.24.2",
|
|
16
|
+
"react-i18next": "11.18.6",
|
|
17
|
+
"@nocobase/client-v2": "2.2.52",
|
|
18
|
+
"@nocobase/flow-engine": "2.2.52",
|
|
19
|
+
"langchain": "1.2.39",
|
|
20
|
+
"@nocobase/actions": "2.2.52",
|
|
21
|
+
"@nocobase/server": "2.2.52",
|
|
22
|
+
"@nocobase/auth": "2.2.52",
|
|
23
|
+
"@nocobase/database": "2.2.52",
|
|
24
|
+
"@nocobase/ai": "2.2.52",
|
|
25
|
+
"@nocobase/data-source-manager": "2.2.52"
|
|
26
|
+
};
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
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 src_exports = {};
|
|
38
|
+
__export(src_exports, {
|
|
39
|
+
default: () => import_server.default
|
|
40
|
+
});
|
|
41
|
+
module.exports = __toCommonJS(src_exports);
|
|
42
|
+
var import_server = __toESM(require("./server"));
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Which matching table should receive the column, in display order?": "Which of the matching tables should receive the column? Please choose its position on the tab.",
|
|
3
|
+
"Unsupported Table field": "This field cannot be displayed in this Table",
|
|
4
|
+
"Interrupted action. Verify before retrying": "Execution was interrupted. Review the results before retrying.",
|
|
5
|
+
"Approval required": "The current role policy requires approval.",
|
|
6
|
+
"operation.addField": "Add column",
|
|
7
|
+
"operation.compose": "Add blocks",
|
|
8
|
+
"operation.configure": "Update settings",
|
|
9
|
+
"operation.bindWorkflow": "Connect workflow",
|
|
10
|
+
"operation.layout": "Arrange blocks",
|
|
11
|
+
"Shared page design": "This change applies to everyone who uses the page.",
|
|
12
|
+
"Target records": "Records",
|
|
13
|
+
"Choose a tab": "Choose a tab",
|
|
14
|
+
"Attach tab": "Attach tab",
|
|
15
|
+
"Apply changes": "Apply changes",
|
|
16
|
+
"Refresh result": "Refresh result",
|
|
17
|
+
"Atlas change plan": "Atlas change plan",
|
|
18
|
+
"Continue": "Continue",
|
|
19
|
+
"Reject": "Reject",
|
|
20
|
+
"Completed steps": "Completed steps",
|
|
21
|
+
"Refresh surface failed": "Refresh surface failed",
|
|
22
|
+
"Role policy": "Role policy",
|
|
23
|
+
"Role": "Role",
|
|
24
|
+
"Operation": "Operation",
|
|
25
|
+
"Decision": "Decision",
|
|
26
|
+
"Save policy": "Save policy",
|
|
27
|
+
"Delegated workflows": "Delegated workflows",
|
|
28
|
+
"Grant instructions": "Bind this grant to a workflow key, user, role and record scope. Set secretRef to the name of the server variable holding that user’s role-bound API key.",
|
|
29
|
+
"Grant JSON": "Grant JSON",
|
|
30
|
+
"Save grant": "Save grant",
|
|
31
|
+
"Connect tools to Atlas": "Connect tools to Atlas",
|
|
32
|
+
"App Builder Advance": "App Builder Advance",
|
|
33
|
+
"User-scoped record action": "User-scoped record action",
|
|
34
|
+
"Saved": "Saved",
|
|
35
|
+
"Atlas unavailable": "Atlas unavailable",
|
|
36
|
+
"planned": "planned",
|
|
37
|
+
"pending": "pending",
|
|
38
|
+
"running": "running",
|
|
39
|
+
"done": "done",
|
|
40
|
+
"rejected": "rejected",
|
|
41
|
+
"partial": "partial",
|
|
42
|
+
"auto": "auto",
|
|
43
|
+
"ask": "ask",
|
|
44
|
+
"block": "block",
|
|
45
|
+
"ui.field": "Add Table fields",
|
|
46
|
+
"ui.design": "Design blocks and tabs",
|
|
47
|
+
"records.one": "Update one record",
|
|
48
|
+
"records.many": "Update filtered records",
|
|
49
|
+
"workflow.save": "Save a workflow draft",
|
|
50
|
+
"workflow.enable": "Enable a workflow",
|
|
51
|
+
"app_builder_inspect_surface": "Inspect selection",
|
|
52
|
+
"app_builder_plan_ui": "Plan UI changes",
|
|
53
|
+
"app_builder_plan_records": "Plan record updates",
|
|
54
|
+
"app_builder_plan_workflow": "Plan workflow",
|
|
55
|
+
"app_builder_submit": "Submit plan",
|
|
56
|
+
"app_builder_get_result": "Get results",
|
|
57
|
+
"Authentication required": "Authentication required",
|
|
58
|
+
"Execution actor unavailable": "Execution actor unavailable",
|
|
59
|
+
"Private builder resource": "Private builder resource",
|
|
60
|
+
"Effective role changed": "Effective role changed",
|
|
61
|
+
"Field access denied": "Field access denied",
|
|
62
|
+
"Native action denied": "Native action denied",
|
|
63
|
+
"Target unavailable": "Target unavailable",
|
|
64
|
+
"Native action rejected": "Native action rejected",
|
|
65
|
+
"Authenticated action unavailable": "Authenticated action unavailable",
|
|
66
|
+
"Collection unavailable": "Collection unavailable",
|
|
67
|
+
"Business collections only": "Business collections only",
|
|
68
|
+
"Collection is read only": "Collection is read only",
|
|
69
|
+
"Unsupported table filter": "Unsupported table filter",
|
|
70
|
+
"Single record key required": "Single record key required",
|
|
71
|
+
"Choose records or a bounded filter": "Choose records or a bounded filter",
|
|
72
|
+
"Table filter unavailable": "Table filter unavailable",
|
|
73
|
+
"Narrow the record filter": "Narrow the record filter",
|
|
74
|
+
"Record key changed": "Record key changed",
|
|
75
|
+
"Record unavailable or changed": "Record unavailable or changed",
|
|
76
|
+
"Record write unverified": "Record write unverified",
|
|
77
|
+
"Selected tab unavailable": "Selected tab unavailable",
|
|
78
|
+
"Shared template unavailable": "Shared template unavailable",
|
|
79
|
+
"Selected surface unavailable": "Selected surface unavailable",
|
|
80
|
+
"Target outside selected surface": "Target outside selected surface",
|
|
81
|
+
"Workflow action unavailable": "Workflow action unavailable",
|
|
82
|
+
"Surface design denied": "Surface design denied",
|
|
83
|
+
"Choose a Table": "Choose a Table",
|
|
84
|
+
"Workflow unavailable": "Workflow unavailable",
|
|
85
|
+
"Duplicate block key": "Duplicate block key",
|
|
86
|
+
"Filter target required": "Filter target required",
|
|
87
|
+
"Filter target unavailable": "Filter target unavailable",
|
|
88
|
+
"Layout must include each block once": "Layout must include each block once",
|
|
89
|
+
"Surface changed; inspect again": "Surface changed; inspect again",
|
|
90
|
+
"Surface write unverified": "Surface write unverified",
|
|
91
|
+
"Invalid workflow graph": "Invalid workflow graph",
|
|
92
|
+
"Invalid condition source": "Invalid condition source",
|
|
93
|
+
"Workflow declaration unavailable": "Workflow declaration unavailable",
|
|
94
|
+
"Managed workflow required": "Managed workflow required",
|
|
95
|
+
"Workflow graph changed": "Workflow graph changed",
|
|
96
|
+
"Delegated grant insufficient": "Delegated grant insufficient",
|
|
97
|
+
"Delegated grant required": "Delegated grant required",
|
|
98
|
+
"Delegated credential unavailable": "Delegated credential unavailable",
|
|
99
|
+
"Native workflow trigger unavailable": "Native workflow trigger unavailable",
|
|
100
|
+
"Invalid workflow trigger": "Invalid workflow trigger",
|
|
101
|
+
"Event key unavailable": "Event key unavailable",
|
|
102
|
+
"Create a new workflow for another trigger type": "Create a new workflow for another trigger type",
|
|
103
|
+
"Workflow write unverified": "Workflow write unverified",
|
|
104
|
+
"Invalid record action": "Invalid record action",
|
|
105
|
+
"Workflow execution rejected": "Workflow execution rejected",
|
|
106
|
+
"Edit a disabled revision": "Edit a disabled revision",
|
|
107
|
+
"Atlas conversation required": "Atlas conversation required",
|
|
108
|
+
"Conversation unavailable": "Conversation unavailable",
|
|
109
|
+
"Attach a single block or tab": "Attach a single block or tab",
|
|
110
|
+
"Selected collection mismatch": "Selected collection mismatch",
|
|
111
|
+
"Blocked by role policy": "Blocked by role policy",
|
|
112
|
+
"Plan unavailable": "Plan unavailable",
|
|
113
|
+
"Conversation turn changed": "Conversation turn changed",
|
|
114
|
+
"Selection changed": "Selection changed",
|
|
115
|
+
"Plan expired": "Plan expired",
|
|
116
|
+
"Submit the plan before approving": "Submit the plan before approving",
|
|
117
|
+
"Another plan is applying": "Another plan is applying",
|
|
118
|
+
"Action could not be verified": "Action could not be verified",
|
|
119
|
+
"Invalid builder input": "Invalid builder input",
|
|
120
|
+
"Builder action failed": "Builder action failed",
|
|
121
|
+
"Role unavailable": "Role unavailable"
|
|
122
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Which matching table should receive the column, in display order?": "Trên tab có nhiều bảng trùng tên. Bạn muốn thêm cột vào bảng thứ mấy, tính theo thứ tự hiển thị?",
|
|
3
|
+
"Unsupported Table field": "Field này chưa có loại cột hiển thị trên Table",
|
|
4
|
+
"Interrupted action. Verify before retrying": "Thao tác bị gián đoạn. Hãy kiểm tra kết quả trước khi thử lại.",
|
|
5
|
+
"Approval required": "Quy tắc hiện tại cần bạn phê duyệt.",
|
|
6
|
+
"operation.addField": "Thêm cột",
|
|
7
|
+
"operation.compose": "Thêm block",
|
|
8
|
+
"operation.configure": "Đổi cấu hình",
|
|
9
|
+
"operation.bindWorkflow": "Gắn workflow",
|
|
10
|
+
"operation.layout": "Sắp xếp block",
|
|
11
|
+
"Shared page design": "Thiết kế này áp dụng cho mọi người sử dụng trang.",
|
|
12
|
+
"Target records": "Số bản ghi",
|
|
13
|
+
"Choose a tab": "Chọn tab",
|
|
14
|
+
"Attach tab": "Đính kèm tab",
|
|
15
|
+
"Apply changes": "Áp dụng thay đổi",
|
|
16
|
+
"Refresh result": "Đọc lại kết quả",
|
|
17
|
+
"Atlas change plan": "Thay đổi do Atlas đề xuất",
|
|
18
|
+
"Continue": "Tiếp tục",
|
|
19
|
+
"Reject": "Từ chối",
|
|
20
|
+
"Completed steps": "Số bước đã xong",
|
|
21
|
+
"Refresh surface failed": "Chưa tải lại được giao diện",
|
|
22
|
+
"Role policy": "Quy tắc theo vai trò",
|
|
23
|
+
"Role": "Vai trò",
|
|
24
|
+
"Operation": "Thao tác",
|
|
25
|
+
"Decision": "Cách xử lý",
|
|
26
|
+
"Save policy": "Lưu quy tắc",
|
|
27
|
+
"Delegated workflows": "Workflow được ủy quyền",
|
|
28
|
+
"Grant instructions": "Gắn quyền với workflow key, user, role và phạm vi bản ghi. secretRef là tên biến môi trường chứa API key của đúng user và role.",
|
|
29
|
+
"Grant JSON": "Phạm vi ủy quyền (JSON)",
|
|
30
|
+
"Save grant": "Lưu ủy quyền",
|
|
31
|
+
"Connect tools to Atlas": "Gắn công cụ vào Atlas",
|
|
32
|
+
"App Builder Advance": "Trình xây dựng ứng dụng nâng cao",
|
|
33
|
+
"User-scoped record action": "Thao tác bản ghi theo quyền người dùng",
|
|
34
|
+
"Saved": "Đã lưu",
|
|
35
|
+
"Atlas unavailable": "Chưa tìm thấy Atlas",
|
|
36
|
+
"planned": "Đã lập phương án",
|
|
37
|
+
"pending": "Chờ bạn phê duyệt",
|
|
38
|
+
"running": "Đang áp dụng",
|
|
39
|
+
"done": "Đã áp dụng",
|
|
40
|
+
"rejected": "Đã từ chối",
|
|
41
|
+
"partial": "Cần kiểm tra kết quả từng bước",
|
|
42
|
+
"auto": "Tự động áp dụng",
|
|
43
|
+
"ask": "Hỏi trước khi áp dụng",
|
|
44
|
+
"block": "Chặn",
|
|
45
|
+
"ui.field": "Thêm cột cho Table",
|
|
46
|
+
"ui.design": "Thiết kế block và tab",
|
|
47
|
+
"records.one": "Cập nhật một bản ghi",
|
|
48
|
+
"records.many": "Cập nhật theo bộ lọc",
|
|
49
|
+
"workflow.save": "Lưu workflow nháp",
|
|
50
|
+
"workflow.enable": "Bật workflow",
|
|
51
|
+
"app_builder_inspect_surface": "Kiểm tra block đang chọn",
|
|
52
|
+
"app_builder_plan_ui": "Lập phương án sửa giao diện",
|
|
53
|
+
"app_builder_plan_records": "Lập phương án cập nhật bản ghi",
|
|
54
|
+
"app_builder_plan_workflow": "Lập phương án workflow",
|
|
55
|
+
"app_builder_submit": "Gửi phương án",
|
|
56
|
+
"app_builder_get_result": "Đọc kết quả",
|
|
57
|
+
"Authentication required": "Cần đăng nhập",
|
|
58
|
+
"Execution actor unavailable": "Không xác minh được người kích hoạt",
|
|
59
|
+
"Private builder resource": "Tài nguyên nội bộ của plugin",
|
|
60
|
+
"Effective role changed": "Vai trò hiệu lực đã thay đổi",
|
|
61
|
+
"Field access denied": "Vai trò hiện tại thiếu quyền đối với field",
|
|
62
|
+
"Native action denied": "NocoBase từ chối thao tác theo quyền hiện tại",
|
|
63
|
+
"Target unavailable": "Không tìm thấy đối tượng",
|
|
64
|
+
"Native action rejected": "NocoBase từ chối yêu cầu",
|
|
65
|
+
"Authenticated action unavailable": "Không xác minh được quyền cho thao tác",
|
|
66
|
+
"Collection unavailable": "Không tìm thấy collection",
|
|
67
|
+
"Business collections only": "Chỉ hỗ trợ collection nghiệp vụ",
|
|
68
|
+
"Collection is read only": "Collection chỉ cho phép đọc",
|
|
69
|
+
"Unsupported table filter": "Bộ lọc Table chưa được hỗ trợ",
|
|
70
|
+
"Single record key required": "Cần một khóa đơn để xác định bản ghi",
|
|
71
|
+
"Choose records or a bounded filter": "Hãy chọn bản ghi hoặc chỉ định bộ lọc",
|
|
72
|
+
"Table filter unavailable": "Không lấy được bộ lọc của Table",
|
|
73
|
+
"Narrow the record filter": "Hãy thu hẹp bộ lọc xuống tối đa 100 bản ghi",
|
|
74
|
+
"Record key changed": "Khóa bản ghi đã thay đổi",
|
|
75
|
+
"Record unavailable or changed": "Bản ghi đã thay đổi hoặc vượt phạm vi quyền",
|
|
76
|
+
"Record write unverified": "Chưa xác minh được kết quả ghi bản ghi",
|
|
77
|
+
"Selected tab unavailable": "Không truy cập được tab đã chọn",
|
|
78
|
+
"Shared template unavailable": "Đích dùng mẫu chia sẻ",
|
|
79
|
+
"Selected surface unavailable": "Không đọc được giao diện đã chọn",
|
|
80
|
+
"Target outside selected surface": "Đích nằm ngoài phạm vi đang chọn",
|
|
81
|
+
"Workflow action unavailable": "Action UI chưa hỗ trợ gắn workflow",
|
|
82
|
+
"Surface design denied": "Vai trò hiện tại thiếu quyền thiết kế giao diện",
|
|
83
|
+
"Choose a Table": "Hãy chọn một Table",
|
|
84
|
+
"Workflow unavailable": "Không tìm thấy workflow",
|
|
85
|
+
"Duplicate block key": "Các block phải dùng key khác nhau",
|
|
86
|
+
"Filter target required": "Hãy chỉ rõ bảng nhận bộ lọc",
|
|
87
|
+
"Filter target unavailable": "Đích bộ lọc không hợp lệ",
|
|
88
|
+
"Layout must include each block once": "Bố cục phải chứa đúng một lần mỗi block",
|
|
89
|
+
"Surface changed; inspect again": "Giao diện đã thay đổi. Hãy kiểm tra lại.",
|
|
90
|
+
"Surface write unverified": "Chưa xác minh được thay đổi giao diện",
|
|
91
|
+
"Invalid workflow graph": "Cấu trúc workflow không hợp lệ",
|
|
92
|
+
"Invalid condition source": "Nguồn dữ liệu cho điều kiện không hợp lệ",
|
|
93
|
+
"Workflow declaration unavailable": "Không tìm thấy định nghĩa workflow",
|
|
94
|
+
"Managed workflow required": "Cần workflow do plugin quản lý",
|
|
95
|
+
"Workflow graph changed": "Cấu trúc workflow đã thay đổi",
|
|
96
|
+
"Delegated grant insufficient": "Ủy quyền không bao phủ thao tác này",
|
|
97
|
+
"Delegated grant required": "Workflow cần ủy quyền của quản trị viên",
|
|
98
|
+
"Delegated credential unavailable": "Không lấy được thông tin xác thực của tài khoản ủy quyền",
|
|
99
|
+
"Native workflow trigger unavailable": "Instance chưa bật trigger tương ứng",
|
|
100
|
+
"Invalid workflow trigger": "Cấu hình trigger không hợp lệ",
|
|
101
|
+
"Event key unavailable": "Không lấy được khóa bản ghi từ sự kiện",
|
|
102
|
+
"Create a new workflow for another trigger type": "Hãy tạo workflow mới khi đổi loại trigger",
|
|
103
|
+
"Workflow write unverified": "Chưa xác minh được thay đổi workflow",
|
|
104
|
+
"Invalid record action": "Thao tác bản ghi không hợp lệ",
|
|
105
|
+
"Workflow execution rejected": "Workflow bị từ chối khi chạy",
|
|
106
|
+
"Edit a disabled revision": "Hãy sửa phiên bản nháp đã tắt",
|
|
107
|
+
"Atlas conversation required": "Cần một lượt chat với Atlas",
|
|
108
|
+
"Conversation unavailable": "Không truy cập được cuộc hội thoại",
|
|
109
|
+
"Attach a single block or tab": "Hãy đính kèm đúng một block hoặc tab",
|
|
110
|
+
"Selected collection mismatch": "Collection khác với Table đã chọn",
|
|
111
|
+
"Blocked by role policy": "Quy tắc của role chặn thao tác này",
|
|
112
|
+
"Plan unavailable": "Không truy cập được phương án",
|
|
113
|
+
"Conversation turn changed": "Đã sang lượt chat khác. Hãy lập lại phương án.",
|
|
114
|
+
"Selection changed": "Đối tượng đang chọn đã thay đổi",
|
|
115
|
+
"Plan expired": "Phương án đã hết hạn",
|
|
116
|
+
"Submit the plan before approving": "Cần gửi phương án trước khi phê duyệt",
|
|
117
|
+
"Another plan is applying": "Một phương án khác đang áp dụng lên cùng đối tượng",
|
|
118
|
+
"Action could not be verified": "Chưa xác minh được kết quả thao tác",
|
|
119
|
+
"Invalid builder input": "Thông tin đầu vào chưa hợp lệ",
|
|
120
|
+
"Builder action failed": "Không thực hiện được thao tác",
|
|
121
|
+
"Role unavailable": "Không tìm thấy role phù hợp"
|
|
122
|
+
}
|