@auto-ai/agent 2.1.98 → 2.1.102
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/dist/404.html +1 -1
- package/dist/_next/static/chunks/61a0a3d64729e396.js +5 -0
- package/dist/_next/static/chunks/{52e2164e45febae6.js → 709b3b8b804968f9.js} +1 -1
- package/dist/_next/static/chunks/ca9f8762dcc69f96.js +1 -0
- package/dist/_next/static/chunks/e070f5d18cd33b41.js +5 -0
- package/dist/_next/static/chunks/e520aa06a5014225.js +1 -0
- package/dist/_next/static/chunks/f2835908a39a5ecd.js +1 -0
- package/dist/_next/static/chunks/{turbopack-3d84668fefd38b4b.js → turbopack-c6738ed405f889d3.js} +1 -1
- package/dist/_next/static/chunks/{turbopack-8b41433c9a94981f.js → turbopack-d89adea5a8b1dc47.js} +1 -1
- package/dist/_next/static/chunks/{turbopack-be468c2a89b10d33.js → turbopack-fd992622892ef26f.js} +1 -1
- package/dist/_next/static/{cTHBIunE3OANgRkUnrMUo → sZLdRgbBZICVvq28FwOCR}/_buildManifest.js +1 -1
- package/dist/index.html +1 -1
- package/dist/index.txt +25 -27
- package/dist/manage/{about/index.html → about.html} +2 -2
- package/dist/manage/about.txt +38 -0
- package/dist/manage/add-account/{index.html → basic.html} +2 -2
- package/dist/manage/add-account/basic.txt +36 -0
- package/dist/manage/add-account/{prompt/index.html → prompt.html} +2 -2
- package/dist/manage/add-account/prompt.txt +37 -0
- package/dist/manage/{add-account/basic/index.html → add-account.html} +2 -2
- package/dist/manage/add-account.txt +42 -0
- package/dist/manage/{agent-teams/index.html → agent-teams.html} +2 -2
- package/dist/manage/agent-teams.txt +42 -0
- package/dist/manage/{env/index.html → env.html} +2 -2
- package/dist/manage/env.txt +41 -0
- package/dist/manage/{permissions/index.html → general.html} +2 -2
- package/dist/manage/general.txt +39 -0
- package/dist/manage/{mcp/index.html → mcp.html} +2 -2
- package/dist/manage/mcp.txt +41 -0
- package/dist/manage/{general/index.html → permissions.html} +2 -2
- package/dist/manage/permissions.txt +39 -0
- package/dist/manage/{skills/index.html → skills.html} +2 -2
- package/dist/manage/skills.txt +41 -0
- package/dist/manage/{task/index.html → task.html} +2 -2
- package/dist/manage/task.txt +39 -0
- package/dist/manage/teams.html +1 -0
- package/dist/manage/teams.txt +38 -0
- package/dist/manage/{tools/index.html → tools.html} +2 -2
- package/dist/manage/tools.txt +41 -0
- package/dist/manage.html +1 -0
- package/dist/manage.txt +35 -0
- package/dist/ws-test.html +78 -27
- package/lib/launcher-env.js +63 -4
- package/package.json +8 -6
- package/skills-runtime/geelib/SKILL.md +229 -0
- package/skills-runtime/geelib/build.mjs +15 -0
- package/skills-runtime/geelib/cli/args.ts +67 -0
- package/skills-runtime/geelib/cli/auth.ts +159 -0
- package/skills-runtime/geelib/cli/client.ts +56 -0
- package/skills-runtime/geelib/cli/commands/comment.ts +25 -0
- package/skills-runtime/geelib/cli/commands/matter.ts +167 -0
- package/skills-runtime/geelib/cli/commands/poll.ts +322 -0
- package/skills-runtime/geelib/cli/commands/project.ts +98 -0
- package/skills-runtime/geelib/cli/commands/user.ts +5 -0
- package/skills-runtime/geelib/cli/index.ts +171 -0
- package/skills-runtime/geelib/geelib-poller-state.json +17 -0
- package/skills-runtime/geelib/geelib.mjs +762 -0
- package/skills-runtime/geelib/node_modules/.package-lock.json +67 -0
- package/skills-runtime/geelib/node_modules/@esbuild/linux-x64/README.md +3 -0
- package/skills-runtime/geelib/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
- package/skills-runtime/geelib/node_modules/@esbuild/linux-x64/package.json +20 -0
- package/skills-runtime/geelib/node_modules/esbuild/LICENSE.md +21 -0
- package/skills-runtime/geelib/node_modules/esbuild/README.md +3 -0
- package/skills-runtime/geelib/node_modules/esbuild/bin/esbuild +0 -0
- package/skills-runtime/geelib/node_modules/esbuild/install.js +289 -0
- package/skills-runtime/geelib/node_modules/esbuild/lib/main.d.ts +716 -0
- package/skills-runtime/geelib/node_modules/esbuild/lib/main.js +2242 -0
- package/skills-runtime/geelib/node_modules/esbuild/package.json +49 -0
- package/skills-runtime/geelib/package-lock.json +499 -0
- package/skills-runtime/geelib/package.json +12 -0
- package/tools-runtime/code-tool/build-cli.ts +10 -0
- package/tools-runtime/code-tool/build.ts +10 -0
- package/tools-runtime/code-tool/bun.lock +15 -0
- package/tools-runtime/code-tool/code-tool.mjs +292 -0
- package/tools-runtime/code-tool/index.cjs +15179 -0
- package/tools-runtime/code-tool/node_modules/zod/LICENSE +21 -0
- package/tools-runtime/code-tool/node_modules/zod/README.md +191 -0
- package/tools-runtime/code-tool/node_modules/zod/index.cjs +33 -0
- package/tools-runtime/code-tool/node_modules/zod/index.d.cts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/index.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/index.js +4 -0
- package/tools-runtime/code-tool/node_modules/zod/locales/index.cjs +17 -0
- package/tools-runtime/code-tool/node_modules/zod/locales/index.d.cts +1 -0
- package/tools-runtime/code-tool/node_modules/zod/locales/index.d.ts +1 -0
- package/tools-runtime/code-tool/node_modules/zod/locales/index.js +1 -0
- package/tools-runtime/code-tool/node_modules/zod/locales/package.json +7 -0
- package/tools-runtime/code-tool/node_modules/zod/mini/index.cjs +32 -0
- package/tools-runtime/code-tool/node_modules/zod/mini/index.d.cts +3 -0
- package/tools-runtime/code-tool/node_modules/zod/mini/index.d.ts +3 -0
- package/tools-runtime/code-tool/node_modules/zod/mini/index.js +3 -0
- package/tools-runtime/code-tool/node_modules/zod/mini/package.json +7 -0
- package/tools-runtime/code-tool/node_modules/zod/package.json +135 -0
- package/tools-runtime/code-tool/node_modules/zod/src/index.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/src/locales/index.ts +1 -0
- package/tools-runtime/code-tool/node_modules/zod/src/mini/index.ts +3 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/errors.ts +13 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/external.ts +6 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/index.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/function.test.ts +261 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v3/types.ts +5138 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/checks.ts +32 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/compat.ts +70 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/errors.ts +82 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/external.ts +52 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/from-json-schema.ts +659 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/parse.ts +82 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/schemas.ts +2672 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/apply.test.ts +59 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/assignability.test.ts +216 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/catch.test.ts +326 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +573 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/codec.test.ts +703 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/date.test.ts +62 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/datetime.test.ts +302 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/default.test.ts +409 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +197 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +694 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +807 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +895 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/function.test.ts +360 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/global-config.test.ts +39 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/hash.test.ts +68 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/index.test.ts +939 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +60 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/intersection.test.ts +198 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +46 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/literal.test.ts +117 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/map.test.ts +330 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/number.test.ts +325 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/object.test.ts +717 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/optional.test.ts +333 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/partial.test.ts +450 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/prefault.test.ts +74 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +26 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/record.test.ts +717 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +631 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/refine.test.ts +633 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/set.test.ts +181 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +134 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/string.test.ts +1224 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +106 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +771 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +3125 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/tuple.test.ts +496 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/union.test.ts +273 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/api.ts +1823 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/checks.ts +1293 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/config.ts +15 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/core.ts +153 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/errors.ts +455 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/index.ts +16 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/json-schema-generator.ts +126 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/json-schema-processors.ts +666 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/json-schema.ts +147 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/parse.ts +195 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/regexes.ts +190 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/registries.ts +105 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/schemas.ts +4730 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/tests/locales/el.test.ts +215 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/tests/locales/es.test.ts +181 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/to-json-schema.ts +622 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/util.ts +983 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/index.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/ar.ts +115 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/az.ts +111 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/be.ts +176 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/bg.ts +128 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/ca.ts +116 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/cs.ts +118 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/da.ts +123 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/de.ts +116 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/el.ts +121 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/en.ts +123 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/eo.ts +118 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/es.ts +141 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/fa.ts +126 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/fi.ts +121 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/fr-CA.ts +116 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/fr.ts +132 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/he.ts +246 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/hr.ts +131 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/hu.ts +117 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/hy.ts +164 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/id.ts +115 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/index.ts +52 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/is.ts +119 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/it.ts +116 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/ja.ts +114 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/ka.ts +123 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/kh.ts +7 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/km.ts +119 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/ko.ts +121 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/lt.ts +239 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/mk.ts +118 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/ms.ts +115 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/nl.ts +121 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/no.ts +116 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/ota.ts +117 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/pl.ts +118 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/ps.ts +126 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/pt.ts +116 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/ro.ts +129 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/ru.ts +176 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/sl.ts +118 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/sv.ts +119 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/ta.ts +118 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/th.ts +119 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/tr.ts +111 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/ua.ts +7 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/uk.ts +117 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/ur.ts +119 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/uz.ts +117 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/vi.ts +117 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/yo.ts +124 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/zh-CN.ts +116 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/locales/zh-TW.ts +115 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/mini/coerce.ts +27 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/mini/external.ts +41 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/mini/iso.ts +66 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/mini/parse.ts +14 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/mini/schemas.ts +1947 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/mini/tests/apply.test.ts +24 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/mini/tests/codec.test.ts +548 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/mini/tests/functions.test.ts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/mini/tests/index.test.ts +993 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/mini/tests/object.test.ts +227 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +325 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4/mini/tests/string.test.ts +352 -0
- package/tools-runtime/code-tool/node_modules/zod/src/v4-mini/index.ts +3 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/ZodError.cjs +138 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/ZodError.js +133 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/errors.cjs +17 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/errors.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/errors.d.ts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/errors.js +9 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/external.cjs +22 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/external.d.cts +6 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/external.d.ts +6 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/external.js +6 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/helpers/util.js +133 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/index.cjs +33 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/index.d.cts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/index.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/index.js +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/locales/en.cjs +112 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/locales/en.js +109 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/package.json +7 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/standard-schema.js +1 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/types.cjs +3777 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/types.d.cts +1034 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/types.d.ts +1034 -0
- package/tools-runtime/code-tool/node_modules/zod/v3/types.js +3695 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/checks.cjs +33 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/checks.js +1 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/coerce.js +17 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/compat.cjs +61 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/compat.d.cts +50 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/compat.d.ts +50 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/compat.js +31 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/errors.cjs +74 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/errors.js +48 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/external.cjs +73 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/external.d.cts +16 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/external.d.ts +16 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/external.js +20 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/from-json-schema.cjs +625 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/from-json-schema.js +599 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/index.cjs +33 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/index.js +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/iso.js +30 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/package.json +7 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/parse.cjs +41 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/parse.d.cts +31 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/parse.d.ts +31 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/parse.js +15 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/schemas.cjs +1511 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/schemas.d.cts +767 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/schemas.d.ts +767 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/classic/schemas.js +1395 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/api.cjs +1227 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/api.d.cts +325 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/api.d.ts +325 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/api.js +1087 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/checks.cjs +601 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/checks.js +575 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/core.cjs +85 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/core.d.cts +70 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/core.d.ts +70 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/core.js +78 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/doc.cjs +39 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/doc.js +35 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/errors.cjs +216 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/errors.d.cts +221 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/errors.d.ts +221 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/errors.js +185 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/index.cjs +47 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/index.d.cts +16 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/index.d.ts +16 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/index.js +16 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/json-schema-generator.cjs +99 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/json-schema-generator.js +95 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/json-schema-processors.cjs +644 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/json-schema-processors.js +601 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/json-schema.d.cts +88 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/json-schema.d.ts +88 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/json-schema.js +1 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/package.json +7 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/parse.cjs +131 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/parse.d.cts +49 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/parse.d.ts +49 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/parse.js +93 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/regexes.cjs +172 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/regexes.d.cts +85 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/regexes.d.ts +85 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/regexes.js +139 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/registries.cjs +56 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/registries.js +51 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/schemas.cjs +2270 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/schemas.d.cts +1184 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/schemas.d.ts +1184 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/schemas.js +2239 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/to-json-schema.cjs +457 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/to-json-schema.d.cts +114 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/to-json-schema.d.ts +114 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/to-json-schema.js +448 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/util.cjs +734 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/util.d.cts +200 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/util.d.ts +200 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/util.js +674 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/versions.cjs +8 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/core/versions.js +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/index.cjs +22 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/index.d.cts +3 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/index.d.ts +3 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/index.js +3 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ar.cjs +133 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ar.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ar.js +106 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/az.cjs +132 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/az.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/az.js +105 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/be.cjs +183 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/be.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/be.js +156 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/bg.cjs +147 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/bg.js +120 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ca.cjs +134 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ca.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ca.js +107 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/cs.cjs +138 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/cs.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/cs.js +111 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/da.cjs +142 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/da.js +115 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/de.cjs +135 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/de.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/de.js +108 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/el.cjs +136 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/el.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/el.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/el.js +109 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/en.cjs +140 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/en.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/en.js +113 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/eo.cjs +136 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/eo.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/eo.js +109 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/es.cjs +159 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/es.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/es.js +132 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/fa.cjs +141 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/fa.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/fa.js +114 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/fi.cjs +139 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/fi.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/fi.js +112 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/fr-CA.cjs +134 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/fr-CA.js +107 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/fr.cjs +152 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/fr.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/fr.js +125 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/he.cjs +241 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/he.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/he.js +214 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/hr.cjs +149 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/hr.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/hr.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/hr.js +122 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/hu.cjs +135 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/hu.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/hu.js +108 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/hy.cjs +174 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/hy.js +147 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/id.cjs +133 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/id.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/id.js +106 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/index.cjs +111 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/index.d.cts +52 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/index.d.ts +52 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/index.js +52 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/is.cjs +136 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/is.js +109 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/it.cjs +135 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/it.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/it.js +108 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ja.cjs +134 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ja.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ja.js +107 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ka.cjs +139 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ka.js +112 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/kh.cjs +12 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/kh.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/kh.d.ts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/kh.js +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/km.cjs +137 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/km.js +110 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ko.cjs +138 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ko.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ko.js +111 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/lt.cjs +230 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/lt.js +203 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/mk.cjs +136 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/mk.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/mk.js +109 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ms.cjs +134 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ms.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ms.js +107 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/nl.cjs +137 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/nl.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/nl.js +110 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/no.cjs +135 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/no.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/no.js +108 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ota.cjs +136 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ota.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ota.js +109 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/package.json +7 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/pl.cjs +136 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/pl.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/pl.js +109 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ps.cjs +141 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ps.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ps.js +114 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/pt.cjs +135 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/pt.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/pt.js +108 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ro.cjs +146 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ro.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ro.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ro.js +119 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ru.cjs +183 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ru.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ru.js +156 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/sl.cjs +136 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/sl.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/sl.js +109 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/sv.cjs +137 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/sv.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/sv.js +110 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ta.cjs +137 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ta.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ta.js +110 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/th.cjs +137 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/th.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/th.js +110 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/tr.cjs +132 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/tr.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/tr.js +105 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ua.cjs +12 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ua.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ua.d.ts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ua.js +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/uk.cjs +135 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/uk.js +108 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ur.cjs +137 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ur.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/ur.js +110 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/uz.cjs +137 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/uz.js +110 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/vi.cjs +135 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/vi.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/vi.js +108 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/yo.cjs +134 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/yo.js +107 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/zh-CN.cjs +136 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/zh-CN.js +109 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/zh-TW.cjs +134 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/locales/zh-TW.js +107 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/checks.js +1 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/coerce.cjs +52 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/coerce.js +22 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/external.cjs +63 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/external.d.cts +13 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/external.d.ts +13 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/external.js +14 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/index.cjs +32 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/index.js +3 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/iso.cjs +64 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/iso.js +34 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/package.json +7 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/parse.cjs +16 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/parse.js +1 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/schemas.cjs +1083 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/schemas.d.cts +445 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/schemas.d.ts +445 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/mini/schemas.js +961 -0
- package/tools-runtime/code-tool/node_modules/zod/v4/package.json +7 -0
- package/tools-runtime/code-tool/node_modules/zod/v4-mini/index.cjs +32 -0
- package/tools-runtime/code-tool/node_modules/zod/v4-mini/index.d.cts +3 -0
- package/tools-runtime/code-tool/node_modules/zod/v4-mini/index.d.ts +3 -0
- package/tools-runtime/code-tool/node_modules/zod/v4-mini/index.js +3 -0
- package/tools-runtime/code-tool/node_modules/zod/v4-mini/package.json +7 -0
- package/tools-runtime/code-tool/package.json +12 -0
- package/tools-runtime/code-tool/src/actions/apply.ts +32 -0
- package/tools-runtime/code-tool/src/actions/inspect.ts +30 -0
- package/tools-runtime/code-tool/src/actions/prepare.ts +22 -0
- package/tools-runtime/code-tool/src/actions/read.ts +22 -0
- package/tools-runtime/code-tool/src/actions/record.ts +37 -0
- package/tools-runtime/code-tool/src/actions/run.ts +54 -0
- package/tools-runtime/code-tool/src/actions/search.ts +46 -0
- package/tools-runtime/code-tool/src/actions/status.ts +35 -0
- package/tools-runtime/code-tool/src/agentConfig.test.ts +16 -0
- package/tools-runtime/code-tool/src/agentConfig.ts +28 -0
- package/tools-runtime/code-tool/src/cli.ts +42 -0
- package/tools-runtime/code-tool/src/codeMdTemplate.ts +33 -0
- package/tools-runtime/code-tool/src/hooks.ts +33 -0
- package/tools-runtime/code-tool/src/index.ts +204 -0
- package/tools-runtime/code-tool/src/memory/constants.ts +13 -0
- package/tools-runtime/code-tool/src/memory/loadCodeMd.ts +194 -0
- package/tools-runtime/code-tool/src/memory/types.ts +9 -0
- package/tools-runtime/code-tool/src/mergeSection.test.ts +28 -0
- package/tools-runtime/code-tool/src/mergeSection.ts +68 -0
- package/tools-runtime/code-tool/src/pathGuard.ts +31 -0
- package/tools-runtime/code-tool/src/projectScan.ts +61 -0
- package/tools-runtime/code-tool/src/sessionAppend.ts +38 -0
- package/tools-runtime/code-tool/src/workspace.ts +24 -0
- package/tools-runtime/code-tool/src/wsInit.ts +53 -0
- package/tools-runtime/git-tool/build.ts +24 -0
- package/tools-runtime/git-tool/bun.lock +15 -0
- package/tools-runtime/git-tool/index.cjs +14210 -0
- package/tools-runtime/git-tool/package.json +12 -0
- package/tools-runtime/git-tool/src/agentConfig.test.ts +16 -0
- package/tools-runtime/git-tool/src/agentConfig.ts +34 -0
- package/tools-runtime/git-tool/src/hooks.ts +32 -0
- package/tools-runtime/git-tool/src/index.ts +505 -0
- package/tools-runtime/git-tool/src/workspace.test.ts +143 -0
- package/tools-runtime/git-tool/src/workspace.ts +277 -0
- package/tools-runtime/git-tool/src/wsInit.ts +25 -0
- package/tools-runtime/schedule-tool/build.ts +10 -0
- package/tools-runtime/schedule-tool/index.cjs +14078 -0
- package/tools-runtime/schedule-tool/package.json +12 -0
- package/tools-runtime/schedule-tool/src/agentConfig.test.ts +16 -0
- package/tools-runtime/schedule-tool/src/agentConfig.ts +28 -0
- package/tools-runtime/schedule-tool/src/cron.ts +152 -0
- package/tools-runtime/schedule-tool/src/index.test.ts +36 -0
- package/tools-runtime/schedule-tool/src/index.ts +517 -0
- package/dist/404/index.html +0 -1
- package/dist/_next/static/chunks/40268f8e3ff0314e.js +0 -1
- package/dist/_next/static/chunks/442d298f96035d5d.js +0 -1
- package/dist/_next/static/chunks/6fa420f0e5f24320.js +0 -1
- package/dist/_next/static/chunks/ad4ba491cf12423f.js +0 -5
- package/dist/_next/static/chunks/ebcd85ff4a1db0dc.js +0 -5
- package/dist/manage/about/index.txt +0 -40
- package/dist/manage/add-account/basic/index.txt +0 -37
- package/dist/manage/add-account/index.txt +0 -38
- package/dist/manage/add-account/prompt/index.txt +0 -38
- package/dist/manage/agent-teams/index.txt +0 -38
- package/dist/manage/env/index.txt +0 -42
- package/dist/manage/general/index.txt +0 -40
- package/dist/manage/index.html +0 -1
- package/dist/manage/index.txt +0 -36
- package/dist/manage/mcp/index.txt +0 -42
- package/dist/manage/permissions/index.txt +0 -35
- package/dist/manage/skills/index.txt +0 -43
- package/dist/manage/task/index.txt +0 -40
- package/dist/manage/teams/index.html +0 -1
- package/dist/manage/teams/index.txt +0 -40
- package/dist/manage/tools/index.txt +0 -43
- /package/dist/_next/static/{cTHBIunE3OANgRkUnrMUo → sZLdRgbBZICVvq28FwOCR}/_clientMiddlewareManifest.json +0 -0
- /package/dist/_next/static/{cTHBIunE3OANgRkUnrMUo → sZLdRgbBZICVvq28FwOCR}/_ssgManifest.js +0 -0
package/dist/ws-test.html
CHANGED
|
@@ -5000,6 +5000,43 @@
|
|
|
5000
5000
|
return u.toString()
|
|
5001
5001
|
}
|
|
5002
5002
|
|
|
5003
|
+
function buildSessionReplayUrl(sessionId) {
|
|
5004
|
+
const u = new URL('/api/sessions/replay', httpOriginForApi() + '/')
|
|
5005
|
+
u.searchParams.set('agent', currentAgentParam())
|
|
5006
|
+
u.searchParams.set('sessionId', sessionId)
|
|
5007
|
+
return u.toString()
|
|
5008
|
+
}
|
|
5009
|
+
|
|
5010
|
+
/**
|
|
5011
|
+
* 业务语义:历史 UI 回显走 HTTP 读 legacy jsonl 并转 v3,与 WS 实时事件解耦。
|
|
5012
|
+
*/
|
|
5013
|
+
async function loadSessionReplayViaHttp(sessionId) {
|
|
5014
|
+
const sid = typeof sessionId === 'string' ? sessionId.trim() : ''
|
|
5015
|
+
if (!sid) return
|
|
5016
|
+
try {
|
|
5017
|
+
const r = await fetch(buildSessionReplayUrl(sid))
|
|
5018
|
+
const data = await r.json()
|
|
5019
|
+
if (!r.ok) {
|
|
5020
|
+
throw new Error(
|
|
5021
|
+
(data && data.message) || data.error || r.statusText || String(r.status),
|
|
5022
|
+
)
|
|
5023
|
+
}
|
|
5024
|
+
const envelopes = Array.isArray(data.envelopes) ? data.envelopes : []
|
|
5025
|
+
for (let i = 0; i < envelopes.length; i++) {
|
|
5026
|
+
applyWsEnvelopeV3(envelopes[i])
|
|
5027
|
+
}
|
|
5028
|
+
requestRenderChat()
|
|
5029
|
+
logLine('session-replay-http', {
|
|
5030
|
+
sessionId: sid,
|
|
5031
|
+
messageCount: data.messageCount,
|
|
5032
|
+
envelopeCount: envelopes.length,
|
|
5033
|
+
})
|
|
5034
|
+
} catch (e) {
|
|
5035
|
+
logLine('session-replay-http', String(e))
|
|
5036
|
+
setStatus('历史回放失败: ' + e, 'err')
|
|
5037
|
+
}
|
|
5038
|
+
}
|
|
5039
|
+
|
|
5003
5040
|
function buildPendingPromptsUrl(sessionId) {
|
|
5004
5041
|
const u = new URL('/api/sessions/pending-prompts', httpOriginForApi() + '/')
|
|
5005
5042
|
u.searchParams.set('agent', currentAgentParam())
|
|
@@ -5363,27 +5400,27 @@
|
|
|
5363
5400
|
}
|
|
5364
5401
|
|
|
5365
5402
|
function buildRuntimeToolImportUrl() {
|
|
5366
|
-
const u = new URL('/api/tools/
|
|
5403
|
+
const u = new URL('/api/runtime/tools/import', httpOriginForApi() + '/')
|
|
5367
5404
|
u.searchParams.set('agent', currentAgentParam())
|
|
5368
5405
|
return u.toString()
|
|
5369
5406
|
}
|
|
5370
5407
|
|
|
5371
5408
|
function buildRuntimeToolExportUrl(fileName) {
|
|
5372
|
-
const u = new URL('/api/tools/
|
|
5409
|
+
const u = new URL('/api/runtime/tools/export', httpOriginForApi() + '/')
|
|
5373
5410
|
u.searchParams.set('agent', currentAgentParam())
|
|
5374
5411
|
u.searchParams.set('file', fileName)
|
|
5375
5412
|
return u.toString()
|
|
5376
5413
|
}
|
|
5377
5414
|
|
|
5378
5415
|
function buildRuntimeToolDeleteUrl(fileName) {
|
|
5379
|
-
const u = new URL('/api/tools/
|
|
5416
|
+
const u = new URL('/api/runtime/tools/file', httpOriginForApi() + '/')
|
|
5380
5417
|
u.searchParams.set('agent', currentAgentParam())
|
|
5381
5418
|
u.searchParams.set('file', fileName)
|
|
5382
5419
|
return u.toString()
|
|
5383
5420
|
}
|
|
5384
5421
|
|
|
5385
5422
|
function buildRuntimeMcpFilesUrl() {
|
|
5386
|
-
const u = new URL('/api/
|
|
5423
|
+
const u = new URL('/api/runtime/mcps/files', httpOriginForApi() + '/')
|
|
5387
5424
|
u.searchParams.set('agent', currentAgentParam())
|
|
5388
5425
|
return u.toString()
|
|
5389
5426
|
}
|
|
@@ -5401,20 +5438,20 @@
|
|
|
5401
5438
|
}
|
|
5402
5439
|
|
|
5403
5440
|
function buildRuntimeMcpExportUrl(fileName) {
|
|
5404
|
-
const u = new URL('/api/
|
|
5441
|
+
const u = new URL('/api/runtime/mcps/export', httpOriginForApi() + '/')
|
|
5405
5442
|
u.searchParams.set('agent', currentAgentParam())
|
|
5406
5443
|
u.searchParams.set('file', fileName)
|
|
5407
5444
|
return u.toString()
|
|
5408
5445
|
}
|
|
5409
5446
|
|
|
5410
5447
|
function buildRuntimeMcpImportUrl() {
|
|
5411
|
-
const u = new URL('/api/
|
|
5448
|
+
const u = new URL('/api/runtime/mcps/import', httpOriginForApi() + '/')
|
|
5412
5449
|
u.searchParams.set('agent', currentAgentParam())
|
|
5413
5450
|
return u.toString()
|
|
5414
5451
|
}
|
|
5415
5452
|
|
|
5416
5453
|
function buildRuntimeMcpDeleteUrl(fileName) {
|
|
5417
|
-
const u = new URL('/api/
|
|
5454
|
+
const u = new URL('/api/runtime/mcps/file', httpOriginForApi() + '/')
|
|
5418
5455
|
u.searchParams.set('agent', currentAgentParam())
|
|
5419
5456
|
u.searchParams.set('file', fileName)
|
|
5420
5457
|
return u.toString()
|
|
@@ -5427,7 +5464,7 @@
|
|
|
5427
5464
|
}
|
|
5428
5465
|
|
|
5429
5466
|
function buildRuntimeSkillFilesUrl() {
|
|
5430
|
-
const u = new URL('/api/skills/
|
|
5467
|
+
const u = new URL('/api/runtime/skills/files', httpOriginForApi() + '/')
|
|
5431
5468
|
u.searchParams.set('agent', currentAgentParam())
|
|
5432
5469
|
return u.toString()
|
|
5433
5470
|
}
|
|
@@ -5452,20 +5489,20 @@
|
|
|
5452
5489
|
}
|
|
5453
5490
|
|
|
5454
5491
|
function buildRuntimeSkillExportUrl(fileName) {
|
|
5455
|
-
const u = new URL('/api/skills/
|
|
5492
|
+
const u = new URL('/api/runtime/skills/export', httpOriginForApi() + '/')
|
|
5456
5493
|
u.searchParams.set('agent', currentAgentParam())
|
|
5457
5494
|
u.searchParams.set('file', fileName)
|
|
5458
5495
|
return u.toString()
|
|
5459
5496
|
}
|
|
5460
5497
|
|
|
5461
5498
|
function buildRuntimeSkillImportUrl() {
|
|
5462
|
-
const u = new URL('/api/skills/
|
|
5499
|
+
const u = new URL('/api/runtime/skills/import', httpOriginForApi() + '/')
|
|
5463
5500
|
u.searchParams.set('agent', currentAgentParam())
|
|
5464
5501
|
return u.toString()
|
|
5465
5502
|
}
|
|
5466
5503
|
|
|
5467
5504
|
function buildRuntimeSkillDeleteUrl(fileName) {
|
|
5468
|
-
const u = new URL('/api/skills/
|
|
5505
|
+
const u = new URL('/api/runtime/skills/file', httpOriginForApi() + '/')
|
|
5469
5506
|
u.searchParams.set('agent', currentAgentParam())
|
|
5470
5507
|
u.searchParams.set('file', fileName)
|
|
5471
5508
|
return u.toString()
|
|
@@ -5664,10 +5701,11 @@
|
|
|
5664
5701
|
const frag = document.createDocumentFragment()
|
|
5665
5702
|
for (let i = 0; i < items.length; i++) {
|
|
5666
5703
|
const row = items[i]
|
|
5667
|
-
if (!row || typeof row.
|
|
5668
|
-
const file = String(row.
|
|
5704
|
+
if (!row || typeof row.packageId !== 'string') continue
|
|
5705
|
+
const file = String(row.packageId).trim()
|
|
5669
5706
|
if (!file) continue
|
|
5670
|
-
const
|
|
5707
|
+
const meta = row.meta && typeof row.meta === 'object' ? row.meta : {}
|
|
5708
|
+
const hasJson = meta.hasMcpJson === true
|
|
5671
5709
|
const item = document.createElement('div')
|
|
5672
5710
|
item.className = 'tool-files-item'
|
|
5673
5711
|
const main = document.createElement('div')
|
|
@@ -5677,10 +5715,12 @@
|
|
|
5677
5715
|
name.textContent = file
|
|
5678
5716
|
const sub = document.createElement('div')
|
|
5679
5717
|
sub.className = 'tool-files-sub'
|
|
5680
|
-
const fc = Number(
|
|
5718
|
+
const fc = Number(meta.fileCount || 0)
|
|
5719
|
+
const serverNames = Array.isArray(meta.serverNames) ? meta.serverNames : []
|
|
5681
5720
|
sub.textContent =
|
|
5682
5721
|
'MCP 包目录' +
|
|
5683
|
-
(
|
|
5722
|
+
(serverNames.length ? ' · servers: ' + serverNames.join(', ') : '') +
|
|
5723
|
+
(hasJson ? ' · 含 .mcp.json' : ' · 缺少 .mcp.json') +
|
|
5684
5724
|
' · 可导出文件 ' +
|
|
5685
5725
|
(Number.isFinite(fc) && fc > 0 ? fc : 0) +
|
|
5686
5726
|
' · zip 仅含编译产物(mcp.json / index.js)'
|
|
@@ -5751,8 +5791,8 @@
|
|
|
5751
5791
|
throw new Error(x.body.message || x.body.error || x.r.statusText)
|
|
5752
5792
|
}
|
|
5753
5793
|
const dir =
|
|
5754
|
-
x.body && typeof x.body.
|
|
5755
|
-
? x.body.
|
|
5794
|
+
x.body && typeof x.body.runtimeDir === 'string'
|
|
5795
|
+
? x.body.runtimeDir
|
|
5756
5796
|
: '.ws-agents/mcps-runtime'
|
|
5757
5797
|
const items = Array.isArray(x.body.items) ? x.body.items : []
|
|
5758
5798
|
mcpPackageMeta.textContent = dir + ' · 共 ' + items.length + ' 个包'
|
|
@@ -5801,11 +5841,12 @@
|
|
|
5801
5841
|
const frag = document.createDocumentFragment()
|
|
5802
5842
|
for (let i = 0; i < items.length; i++) {
|
|
5803
5843
|
const row = items[i]
|
|
5804
|
-
if (!row || typeof row.
|
|
5805
|
-
const file = String(row.
|
|
5844
|
+
if (!row || typeof row.packageId !== 'string') continue
|
|
5845
|
+
const file = String(row.packageId).trim()
|
|
5806
5846
|
if (!file) continue
|
|
5807
|
-
const
|
|
5808
|
-
const
|
|
5847
|
+
const meta = row.meta && typeof row.meta === 'object' ? row.meta : {}
|
|
5848
|
+
const fileCount = Number(meta.fileCount || 0)
|
|
5849
|
+
const skillCount = Number(meta.skillCount || 0)
|
|
5809
5850
|
const item = document.createElement('div')
|
|
5810
5851
|
item.className = 'tool-files-item'
|
|
5811
5852
|
const main = document.createElement('div')
|
|
@@ -5885,8 +5926,8 @@
|
|
|
5885
5926
|
throw new Error(x.body.message || x.body.error || x.r.statusText)
|
|
5886
5927
|
}
|
|
5887
5928
|
const dir =
|
|
5888
|
-
x.body && typeof x.body.
|
|
5889
|
-
? x.body.
|
|
5929
|
+
x.body && typeof x.body.runtimeDir === 'string'
|
|
5930
|
+
? x.body.runtimeDir
|
|
5890
5931
|
: '.ws-agents/skills-runtime'
|
|
5891
5932
|
const items = Array.isArray(x.body.items) ? x.body.items : []
|
|
5892
5933
|
skillPackageMeta.textContent = dir + ' · 共 ' + items.length + ' 个包'
|
|
@@ -6231,6 +6272,9 @@
|
|
|
6231
6272
|
if (socket && socket.readyState === WebSocket.OPEN) {
|
|
6232
6273
|
serverReady = false
|
|
6233
6274
|
resetChatUi()
|
|
6275
|
+
if (nextSid) {
|
|
6276
|
+
void loadSessionReplayViaHttp(nextSid)
|
|
6277
|
+
}
|
|
6234
6278
|
pendingSessionOverrides = null
|
|
6235
6279
|
if (nextSid) {
|
|
6236
6280
|
/* 已在上方拉取 overrides;切换中勿清空 composer 模型 */
|
|
@@ -6297,6 +6341,13 @@
|
|
|
6297
6341
|
}
|
|
6298
6342
|
serverReady = false
|
|
6299
6343
|
resetChatUi()
|
|
6344
|
+
const replaySid =
|
|
6345
|
+
sessionIdInput && typeof sessionIdInput.value === 'string'
|
|
6346
|
+
? sessionIdInput.value.trim()
|
|
6347
|
+
: ''
|
|
6348
|
+
if (replaySid) {
|
|
6349
|
+
void loadSessionReplayViaHttp(replaySid)
|
|
6350
|
+
}
|
|
6300
6351
|
const url = buildWsUrlWithQuery()
|
|
6301
6352
|
logLine('connect', url)
|
|
6302
6353
|
setStatus('正在连接…', '')
|
|
@@ -6349,9 +6400,9 @@
|
|
|
6349
6400
|
})
|
|
6350
6401
|
if (
|
|
6351
6402
|
data.type === 'session.meta' &&
|
|
6352
|
-
data.
|
|
6353
|
-
typeof data.
|
|
6354
|
-
data.
|
|
6403
|
+
data.data &&
|
|
6404
|
+
typeof data.data === 'object' &&
|
|
6405
|
+
data.data.sessionId
|
|
6355
6406
|
) {
|
|
6356
6407
|
void loadSessions()
|
|
6357
6408
|
if (pendingSessionOverrides) {
|
package/lib/launcher-env.js
CHANGED
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* agent 启动环境:默认路径 + .env
|
|
3
|
-
* 发布时由
|
|
2
|
+
* agent 启动环境:默认路径 + .env + 内置 runtime 同步到 .ws-agents。
|
|
3
|
+
* 发布时由 sync-launcher-env 复制为 packages/agent/lib/launcher-env.js(单文件,无子模块依赖)。
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { existsSync, readFileSync } from 'node:fs'
|
|
6
|
+
import { cpSync, existsSync, mkdirSync, readFileSync } from 'node:fs'
|
|
7
7
|
import { homedir } from 'node:os'
|
|
8
8
|
import { dirname, join } from 'node:path'
|
|
9
|
+
import { fileURLToPath } from 'node:url'
|
|
9
10
|
import { createRequire } from 'node:module'
|
|
10
|
-
import { ensureWsAgentsBuiltinRuntime } from './ensure-ws-agents-runtime.js'
|
|
11
11
|
|
|
12
12
|
const require = createRequire(import.meta.url)
|
|
13
13
|
|
|
14
|
+
/** 与 prepack、wsSkillRuntime 等保持一致的内置 runtime 目录名 */
|
|
15
|
+
const BUILTIN_RUNTIME_DIR_NAMES = [
|
|
16
|
+
'skills-runtime',
|
|
17
|
+
'tools-runtime',
|
|
18
|
+
'mcps-runtime',
|
|
19
|
+
]
|
|
20
|
+
|
|
14
21
|
export function resolveMainPackageRoot() {
|
|
15
22
|
try {
|
|
16
23
|
return dirname(require.resolve('@auto-ai/agent/package.json'))
|
|
@@ -19,6 +26,58 @@ export function resolveMainPackageRoot() {
|
|
|
19
26
|
}
|
|
20
27
|
}
|
|
21
28
|
|
|
29
|
+
/**
|
|
30
|
+
* 内置 runtime 来源根:已安装的 @auto-ai/agent 包根,或源码仓库根。
|
|
31
|
+
*/
|
|
32
|
+
export function resolveBundledRuntimeSourceRoot() {
|
|
33
|
+
try {
|
|
34
|
+
const pkgJson = require.resolve('@auto-ai/agent/package.json')
|
|
35
|
+
return dirname(pkgJson)
|
|
36
|
+
} catch {
|
|
37
|
+
return join(dirname(fileURLToPath(import.meta.url)), '..')
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* 解析 WS_AGENTS_ROOT:显式环境变量优先,否则 <WS_PROJECT_ROOT|cwd>/.ws-agents。
|
|
43
|
+
*/
|
|
44
|
+
export function resolveWsAgentsRoot(env) {
|
|
45
|
+
const fromEnv = env.WS_AGENTS_ROOT?.trim()
|
|
46
|
+
if (fromEnv) {
|
|
47
|
+
return fromEnv
|
|
48
|
+
}
|
|
49
|
+
const projectRoot = env.WS_PROJECT_ROOT?.trim() || process.cwd()
|
|
50
|
+
return join(projectRoot, '.ws-agents')
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* 若 .ws-agents 下尚无对应 runtime 目录,则从包内/仓库根复制一份。
|
|
55
|
+
* 已存在则跳过,避免覆盖用户通过 API 安装或手工改动的内容。
|
|
56
|
+
*/
|
|
57
|
+
export function ensureWsAgentsBuiltinRuntime(env) {
|
|
58
|
+
const agentsRoot = resolveWsAgentsRoot(env)
|
|
59
|
+
if (!env.WS_AGENTS_ROOT?.trim()) {
|
|
60
|
+
env.WS_AGENTS_ROOT = agentsRoot
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const sourceRoot = resolveBundledRuntimeSourceRoot()
|
|
64
|
+
mkdirSync(agentsRoot, { recursive: true })
|
|
65
|
+
|
|
66
|
+
for (const dirName of BUILTIN_RUNTIME_DIR_NAMES) {
|
|
67
|
+
const src = join(sourceRoot, dirName)
|
|
68
|
+
const dest = join(agentsRoot, dirName)
|
|
69
|
+
if (!existsSync(src) || existsSync(dest)) {
|
|
70
|
+
continue
|
|
71
|
+
}
|
|
72
|
+
cpSync(src, dest, {
|
|
73
|
+
recursive: true,
|
|
74
|
+
filter: path => !path.split(/[/\\]+/).includes('.ws-agent'),
|
|
75
|
+
})
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return env
|
|
79
|
+
}
|
|
80
|
+
|
|
22
81
|
function applyDotenvLines(env, text) {
|
|
23
82
|
for (const line of text.split('\n')) {
|
|
24
83
|
const trimmed = line.trim()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@auto-ai/agent",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.102",
|
|
4
4
|
"description": "Auto AI Agent 网关 CLI(WebSocket,独立二进制,无需 Bun)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"maintainers": [
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
"bin/agent.js",
|
|
17
17
|
"lib/launcher-env.js",
|
|
18
18
|
"dist",
|
|
19
|
+
"skills-runtime",
|
|
20
|
+
"tools-runtime",
|
|
19
21
|
"mcps-runtime",
|
|
20
22
|
"README.md",
|
|
21
23
|
"LICENSE",
|
|
@@ -25,11 +27,11 @@
|
|
|
25
27
|
"node": ">=18"
|
|
26
28
|
},
|
|
27
29
|
"optionalDependencies": {
|
|
28
|
-
"@auto-ai/agent-linux-x64": "2.1.
|
|
29
|
-
"@auto-ai/agent-linux-arm64": "2.1.
|
|
30
|
-
"@auto-ai/agent-darwin-x64": "2.1.
|
|
31
|
-
"@auto-ai/agent-darwin-arm64": "2.1.
|
|
32
|
-
"@auto-ai/agent-win-x64": "2.1.
|
|
30
|
+
"@auto-ai/agent-linux-x64": "2.1.102",
|
|
31
|
+
"@auto-ai/agent-linux-arm64": "2.1.102",
|
|
32
|
+
"@auto-ai/agent-darwin-x64": "2.1.102",
|
|
33
|
+
"@auto-ai/agent-darwin-arm64": "2.1.102",
|
|
34
|
+
"@auto-ai/agent-win-x64": "2.1.102"
|
|
33
35
|
},
|
|
34
36
|
"scripts": {
|
|
35
37
|
"prepare": "node ../../scripts/sync-launcher-env.js",
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: geelib
|
|
3
|
+
description: GeeLib 工作项 CLI;项目、工作项、状态、评论的查询与更新
|
|
4
|
+
argument-hint: "[list-matters | get-matter | update-matter | poll | ...]"
|
|
5
|
+
user-invocable: true
|
|
6
|
+
allowed-tools: Bash(node:*)
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# geelib — GeeLib 工作项 CLI
|
|
10
|
+
|
|
11
|
+
通过内嵌 CLI 操作 GeeLib。**数据必须来自 CLI 的 JSON 输出**;禁止 MCP、禁止浏览器、禁止编造。
|
|
12
|
+
|
|
13
|
+
## 使用方式
|
|
14
|
+
|
|
15
|
+
Skill 工具注入本说明并放开 `Bash(node:*)`。**Skill 不执行 CLI、不返回 GeeLib 数据**。
|
|
16
|
+
|
|
17
|
+
收到本说明后:
|
|
18
|
+
|
|
19
|
+
1. 根据用户意图选择子命令(见下方命令参考)
|
|
20
|
+
2. 用 `Bash` 执行 `node ${CLAUDE_SKILL_DIR}/geelib.mjs <command> [options]`
|
|
21
|
+
3. 解析 stdout JSON(成功时通常 `errno === 2000`)
|
|
22
|
+
4. 仅基于 CLI 返回组织回复;失败或无数据时如实说明
|
|
23
|
+
|
|
24
|
+
**禁止** Glob/Read 去找 SKILL.md(本说明已在上下文中)。
|
|
25
|
+
|
|
26
|
+
`$ARGUMENTS` 是自然语言描述,需映射为 CLI 子命令与 `--flag`,不要原样当作 shell 命令。
|
|
27
|
+
|
|
28
|
+
## 进行中项目(Skill 加载时自动刷新)
|
|
29
|
+
|
|
30
|
+
以下列表在加载本 Skill 时从 GeeLib 拉取(`is_archive=0`)。选择 `--sub-id` 时优先使用下表,无需再 Glob/Read SKILL 或重复 `list-projects` 全量 JSON。
|
|
31
|
+
|
|
32
|
+
!`node ${CLAUDE_SKILL_DIR}/geelib.mjs list-active-projects`
|
|
33
|
+
|
|
34
|
+
## CLI 基础
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
node ${CLAUDE_SKILL_DIR}/geelib.mjs <command> [options]
|
|
38
|
+
node ${CLAUDE_SKILL_DIR}/geelib.mjs help
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
- `${CLAUDE_SKILL_DIR}`:skill 根目录,仅用打包产物 `geelib.mjs`
|
|
42
|
+
- 参数:`--key=value` 或 `--key value`;缺必填参数时 CLI 报错退出
|
|
43
|
+
- 输出:stdout 一般为 JSON(`list-active-projects` 为 Markdown 表格文本);stderr 以 `[geelib-cli]` 开头表示 CLI 级错误
|
|
44
|
+
|
|
45
|
+
### 环境变量
|
|
46
|
+
|
|
47
|
+
| 变量 | 必填 | 说明 |
|
|
48
|
+
|------|------|------|
|
|
49
|
+
| `GEELIB_USER` | 是 | SSO 用户名 |
|
|
50
|
+
| `GEELIB_PASSWD` | 是 | SSO 密码 |
|
|
51
|
+
| `GEELIB_BASE_URL` | 否 | 默认 `https://geelib.qihoo.net` |
|
|
52
|
+
|
|
53
|
+
### 常见依赖关系
|
|
54
|
+
|
|
55
|
+
多数工作项操作需要先拿到 `sub_id`(项目)和 `type_id`(工作项类型)。**用户说的「8520」等版本号是项目名称,不是 `--sub-id`**;从上文「进行中项目」表或 `list-projects --query=8520` 解析真实 sub_id。
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
node ${CLAUDE_SKILL_DIR}/geelib.mjs list-projects [--query=关键词]
|
|
59
|
+
node ${CLAUDE_SKILL_DIR}/geelib.mjs list-matter-types --sub-id=<sub_id>
|
|
60
|
+
# 后续命令使用 --sub-id 与 --type-id
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
CLI 无通用日期/版本筛选参数;若用户按时间、版本等条件过滤,在 `list-matters` 返回的 `data.matterList[]` 中按 `create_time` 自行筛选。总数见 `data.total`;需要更多结果时递增 `--page`。
|
|
64
|
+
|
|
65
|
+
## CLI 命令参考
|
|
66
|
+
|
|
67
|
+
### get-user-info
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
node ${CLAUDE_SKILL_DIR}/geelib.mjs get-user-info
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
关键字段:`data.id` 或 `data.user_id`。
|
|
74
|
+
|
|
75
|
+
### list-projects
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
node ${CLAUDE_SKILL_DIR}/geelib.mjs list-projects
|
|
79
|
+
node ${CLAUDE_SKILL_DIR}/geelib.mjs list-projects --query=关键词
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
列表在 `data.list` 或 `data`;项目 ID 取 `id` 或 `sub_id` → `--sub-id`。
|
|
83
|
+
|
|
84
|
+
### list-active-projects
|
|
85
|
+
|
|
86
|
+
输出进行中项目摘要表(纯文本,供 Skill 加载注入;见上文「进行中项目」)。
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
node ${CLAUDE_SKILL_DIR}/geelib.mjs list-active-projects
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### get-project-detail
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
node ${CLAUDE_SKILL_DIR}/geelib.mjs get-project-detail --sub-id=123
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### list-project-members
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
node ${CLAUDE_SKILL_DIR}/geelib.mjs list-project-members --sub-id=123
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### list-matter-types
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
node ${CLAUDE_SKILL_DIR}/geelib.mjs list-matter-types --sub-id=123
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
关键字段:`data[]` 为数组;类型 ID 取 `id`(即 `--type-id`);名称在 `type_name` 或 `name`。
|
|
111
|
+
|
|
112
|
+
### list-matter-statuses
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
node ${CLAUDE_SKILL_DIR}/geelib.mjs list-matter-statuses --sub-id=123 --type-id=456
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
状态 ID 取 `status_id` 或 `matterStatus.id` 或 `id`;名称在 `matterStatus.status_name` 或 `name`。
|
|
119
|
+
|
|
120
|
+
### list-matters
|
|
121
|
+
|
|
122
|
+
分页查询工作项列表。
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
node ${CLAUDE_SKILL_DIR}/geelib.mjs list-matters --sub-id=123 --type-id=456
|
|
126
|
+
node ${CLAUDE_SKILL_DIR}/geelib.mjs list-matters --sub-id=123 --type-id=456 --page=1 --page-size=20
|
|
127
|
+
node ${CLAUDE_SKILL_DIR}/geelib.mjs list-matters --sub-id=123 --type-id=456 --keyword=标题关键词
|
|
128
|
+
node ${CLAUDE_SKILL_DIR}/geelib.mjs list-matters --sub-id=123 --type-id=456 --status-id=5 --assignee-id=789
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
| 参数 | 必填 | 说明 |
|
|
132
|
+
|------|------|------|
|
|
133
|
+
| `--sub-id` | 是 | 项目 ID |
|
|
134
|
+
| `--type-id` | 是 | 工作项类型 ID |
|
|
135
|
+
| `--page` | 否 | 页码,默认 1 |
|
|
136
|
+
| `--page-size` | 否 | 每页条数,默认 20 |
|
|
137
|
+
| `--keyword` | 否 | 标题模糊搜索 |
|
|
138
|
+
| `--status-id` | 否 | 按状态过滤 |
|
|
139
|
+
| `--assignee-id` | 否 | 按执行人过滤 |
|
|
140
|
+
|
|
141
|
+
列表在 `data.matterList`(数组);总条数 `data.total`。单条 ID 取 `id` 或 `matter_id`;创建时间 `create_time`;标题 `title`;状态名 `status_name`。
|
|
142
|
+
|
|
143
|
+
**不要用 `data.list` 或 `data.data`**(API 不返回这两个字段)。
|
|
144
|
+
|
|
145
|
+
### get-matter
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
node ${CLAUDE_SKILL_DIR}/geelib.mjs get-matter --sub-id=123 --matter-id=999
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
常用字段(均在 `data` 下):
|
|
152
|
+
|
|
153
|
+
| 字段 | 含义 |
|
|
154
|
+
|------|------|
|
|
155
|
+
| `title` | 标题 |
|
|
156
|
+
| `content` | 描述/正文 |
|
|
157
|
+
| `matter_status` | 当前状态 ID |
|
|
158
|
+
| `status_name` | 当前状态名称 |
|
|
159
|
+
| `matterCustomAttributes` | 自定义字段 |
|
|
160
|
+
|
|
161
|
+
### update-matter
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
node ${CLAUDE_SKILL_DIR}/geelib.mjs update-matter --sub-id=123 --matter-id=999 --status-id=5
|
|
165
|
+
node ${CLAUDE_SKILL_DIR}/geelib.mjs update-matter --sub-id=123 --matter-id=999 --title="新标题" --description="新描述"
|
|
166
|
+
node ${CLAUDE_SKILL_DIR}/geelib.mjs update-matter --sub-id=123 --matter-id=999 --assignee-id=789 --priority=high --progress=100
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
| 参数 | 必填 | 说明 |
|
|
170
|
+
|------|------|------|
|
|
171
|
+
| `--sub-id` | 是 | 项目 ID |
|
|
172
|
+
| `--matter-id` | 是 | 工作项 ID |
|
|
173
|
+
| `--title` | 否 | 标题 |
|
|
174
|
+
| `--description` | 否 | 描述(映射为 API `content`) |
|
|
175
|
+
| `--status-id` | 否 | 目标状态 ID |
|
|
176
|
+
| `--assignee-id` | 否 | 执行人用户 ID |
|
|
177
|
+
| `--priority` | 否 | `low` / `medium` / `high` / `urgent` |
|
|
178
|
+
| `--progress` | 否 | 0–100 |
|
|
179
|
+
| `--sprint-id` | 否 | 迭代 ID |
|
|
180
|
+
|
|
181
|
+
含 `--status-id` 时 CLI 会回查验证;API 成功但状态未变更时,`errmsg` 含未填必填字段等信息。
|
|
182
|
+
|
|
183
|
+
### get-comments / add-comment
|
|
184
|
+
|
|
185
|
+
```bash
|
|
186
|
+
node ${CLAUDE_SKILL_DIR}/geelib.mjs get-comments --sub-id=123 --matter-id=999
|
|
187
|
+
node ${CLAUDE_SKILL_DIR}/geelib.mjs add-comment --sub-id=123 --matter-id=999 --content="说明"
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
### poll
|
|
191
|
+
|
|
192
|
+
拉取当前用户、本地尚未 `mark-processed` 的最新一条待办工作项(定时巡检入口)。**不是通用列表查询**;查多条工作项用 `list-matters`。
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
node ${CLAUDE_SKILL_DIR}/geelib.mjs poll
|
|
196
|
+
node ${CLAUDE_SKILL_DIR}/geelib.mjs poll --sub-id=123 --type-id=456
|
|
197
|
+
node ${CLAUDE_SKILL_DIR}/geelib.mjs poll --cwd=/path/to/workspace
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
| 参数 | 必填 | 说明 |
|
|
201
|
+
|------|------|------|
|
|
202
|
+
| `--sub-id` | 否 | 固定项目;省略则自动发现 |
|
|
203
|
+
| `--type-id` | 否 | 固定类型;省略则优先选名称含「任务」的类型 |
|
|
204
|
+
| `--cwd` | 否 | 状态文件目录,默认 `process.cwd()` |
|
|
205
|
+
|
|
206
|
+
返回:`hasNew`、`matter`、`mattersTotal`、`discovered`(含 `sub_id`、`type_id`、`done_status_id`)。`poll` 只更新 `lastPollAt`,不自动 mark。
|
|
207
|
+
|
|
208
|
+
### mark-processed
|
|
209
|
+
|
|
210
|
+
将已闭环的工作项记入本地已处理列表(配合 `poll` 去重)。
|
|
211
|
+
|
|
212
|
+
```bash
|
|
213
|
+
node ${CLAUDE_SKILL_DIR}/geelib.mjs mark-processed --matter-id=999
|
|
214
|
+
node ${CLAUDE_SKILL_DIR}/geelib.mjs mark-processed --matter-id=999 --cwd=/path/to/workspace
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
仅在 `update-matter` 状态变更确认成功后调用。
|
|
218
|
+
|
|
219
|
+
## poll 巡检闭环
|
|
220
|
+
|
|
221
|
+
仅当用户明确要求「巡检 / /geelib poll」,或 Skill args 仅为 `poll` 时:
|
|
222
|
+
|
|
223
|
+
1. `poll` 拉取一条待办;`hasNew === false` 则回复无新任务
|
|
224
|
+
2. `get-matter` 读描述与验收标准,执行工程工作
|
|
225
|
+
3. `update-matter` 回写状态(`done_status_id` 见 `poll` 返回的 `discovered`)
|
|
226
|
+
4. `add-comment` 写交付说明,再次 `get-matter` 验证
|
|
227
|
+
5. 状态回写成功则 `mark-processed`;失败则 `add-comment` 记录阻塞原因,不 mark
|
|
228
|
+
|
|
229
|
+
状态文件:`<agentCwd>/geelib-poller-state.json`(`poll` / `mark-processed` 自动读写)。
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* 打包 geelib CLI 为单文件 geelib.mjs,供 SKILL 内 node 调用。
|
|
4
|
+
*/
|
|
5
|
+
import * as esbuild from 'esbuild'
|
|
6
|
+
|
|
7
|
+
await esbuild.build({
|
|
8
|
+
entryPoints: ['cli/index.ts'],
|
|
9
|
+
outfile: 'geelib.mjs',
|
|
10
|
+
bundle: true,
|
|
11
|
+
platform: 'node',
|
|
12
|
+
format: 'esm',
|
|
13
|
+
target: 'node20',
|
|
14
|
+
banner: { js: '#!/usr/bin/env node\n' },
|
|
15
|
+
})
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/** 解析 CLI 参数:--key=value 与 --key value */
|
|
2
|
+
export function parseArgs(argv: string[]): {
|
|
3
|
+
positional: string[]
|
|
4
|
+
flags: Record<string, string>
|
|
5
|
+
} {
|
|
6
|
+
const positional: string[] = []
|
|
7
|
+
const flags: Record<string, string> = {}
|
|
8
|
+
for (let i = 0; i < argv.length; i++) {
|
|
9
|
+
const arg = argv[i]
|
|
10
|
+
if (!arg.startsWith('--')) {
|
|
11
|
+
positional.push(arg)
|
|
12
|
+
continue
|
|
13
|
+
}
|
|
14
|
+
const eq = arg.indexOf('=')
|
|
15
|
+
if (eq > 0) {
|
|
16
|
+
flags[arg.slice(2, eq)] = arg.slice(eq + 1)
|
|
17
|
+
continue
|
|
18
|
+
}
|
|
19
|
+
const key = arg.slice(2)
|
|
20
|
+
const next = argv[i + 1]
|
|
21
|
+
if (next !== undefined && !next.startsWith('--')) {
|
|
22
|
+
flags[key] = next
|
|
23
|
+
i++
|
|
24
|
+
} else {
|
|
25
|
+
flags[key] = 'true'
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return { positional, flags }
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function requireFlag(
|
|
32
|
+
flags: Record<string, string>,
|
|
33
|
+
name: string,
|
|
34
|
+
): string {
|
|
35
|
+
const v = flags[name]
|
|
36
|
+
if (v === undefined || v === '') {
|
|
37
|
+
throw new Error(`缺少必填参数 --${name}`)
|
|
38
|
+
}
|
|
39
|
+
return v
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function flagNumber(
|
|
43
|
+
flags: Record<string, string>,
|
|
44
|
+
name: string,
|
|
45
|
+
): number {
|
|
46
|
+
const raw = requireFlag(flags, name)
|
|
47
|
+
const n = Number(raw)
|
|
48
|
+
if (!Number.isFinite(n)) {
|
|
49
|
+
throw new Error(`--${name} 必须是数字`)
|
|
50
|
+
}
|
|
51
|
+
return n
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function flagOptionalNumber(
|
|
55
|
+
flags: Record<string, string>,
|
|
56
|
+
name: string,
|
|
57
|
+
): number | undefined {
|
|
58
|
+
const raw = flags[name]
|
|
59
|
+
if (raw === undefined || raw === '') {
|
|
60
|
+
return undefined
|
|
61
|
+
}
|
|
62
|
+
const n = Number(raw)
|
|
63
|
+
if (!Number.isFinite(n)) {
|
|
64
|
+
throw new Error(`--${name} 必须是数字`)
|
|
65
|
+
}
|
|
66
|
+
return n
|
|
67
|
+
}
|