@defai.digital/ax-cli 3.8.8 → 3.8.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -1
- package/config-defaults/prompts.yaml +96 -12
- package/dist/agent/llm-agent.js +2 -0
- package/dist/agent/llm-agent.js.map +1 -1
- package/dist/agent/specialized/analysis-agent.js +7 -16
- package/dist/agent/specialized/analysis-agent.js.map +1 -1
- package/dist/agent/specialized/debug-agent.js +7 -16
- package/dist/agent/specialized/debug-agent.js.map +1 -1
- package/dist/agent/specialized/documentation-agent.js +7 -16
- package/dist/agent/specialized/documentation-agent.js.map +1 -1
- package/dist/agent/specialized/performance-agent.js +7 -16
- package/dist/agent/specialized/performance-agent.js.map +1 -1
- package/dist/agent/specialized/refactoring-agent.js +7 -16
- package/dist/agent/specialized/refactoring-agent.js.map +1 -1
- package/dist/agent/specialized/testing-agent.js +7 -16
- package/dist/agent/specialized/testing-agent.js.map +1 -1
- package/dist/agent/subagent-types.d.ts +6 -0
- package/dist/agent/subagent-types.js +43 -56
- package/dist/agent/subagent-types.js.map +1 -1
- package/dist/commands/init.js +6 -5
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/memory.js +8 -8
- package/dist/commands/memory.js.map +1 -1
- package/dist/commands/setup.js +3 -3
- package/dist/commands/setup.js.map +1 -1
- package/dist/constants.d.ts +38 -0
- package/dist/constants.js +41 -2
- package/dist/constants.js.map +1 -1
- package/dist/llm/tools.d.ts +30 -3
- package/dist/llm/tools.js +112 -47
- package/dist/llm/tools.js.map +1 -1
- package/dist/schemas/yaml-schemas.d.ts +47 -0
- package/dist/schemas/yaml-schemas.js +1 -0
- package/dist/schemas/yaml-schemas.js.map +1 -1
- package/dist/tools/text-editor.d.ts +9 -0
- package/dist/tools/text-editor.js +224 -82
- package/dist/tools/text-editor.js.map +1 -1
- package/dist/utils/config-loader.d.ts +1 -0
- package/dist/utils/config-loader.js.map +1 -1
- package/dist/utils/history-manager.js +6 -6
- package/dist/utils/history-manager.js.map +1 -1
- package/dist/utils/prompt-builder.js +4 -0
- package/dist/utils/prompt-builder.js.map +1 -1
- package/dist/utils/settings-manager.js +4 -4
- package/dist/utils/settings-manager.js.map +1 -1
- package/dist/utils/template-manager.js +9 -8
- package/dist/utils/template-manager.js.map +1 -1
- package/node_modules/@ax-cli/schemas/README.md +388 -0
- package/node_modules/@ax-cli/schemas/package.json +54 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +208 -0
- package/node_modules/zod/index.cjs +33 -0
- package/node_modules/zod/index.d.cts +4 -0
- package/node_modules/zod/index.d.ts +4 -0
- package/node_modules/zod/index.js +4 -0
- package/node_modules/zod/package.json +118 -0
- package/node_modules/zod/src/index.ts +4 -0
- package/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
- package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/function.test.ts +257 -0
- package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/zod/src/v3/types.ts +5136 -0
- package/node_modules/zod/src/v4/classic/checks.ts +30 -0
- package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/zod/src/v4/classic/compat.ts +66 -0
- package/node_modules/zod/src/v4/classic/errors.ts +75 -0
- package/node_modules/zod/src/v4/classic/external.ts +50 -0
- package/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/node_modules/zod/src/v4/classic/parse.ts +33 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/zod/src/v4/core/api.ts +1594 -0
- package/node_modules/zod/src/v4/core/checks.ts +1283 -0
- package/node_modules/zod/src/v4/core/config.ts +15 -0
- package/node_modules/zod/src/v4/core/core.ts +134 -0
- package/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/node_modules/zod/src/v4/core/errors.ts +424 -0
- package/node_modules/zod/src/v4/core/function.ts +176 -0
- package/node_modules/zod/src/v4/core/index.ts +15 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +143 -0
- package/node_modules/zod/src/v4/core/parse.ts +94 -0
- package/node_modules/zod/src/v4/core/regexes.ts +135 -0
- package/node_modules/zod/src/v4/core/registries.ts +96 -0
- package/node_modules/zod/src/v4/core/schemas.ts +3842 -0
- package/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
- package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
- package/node_modules/zod/src/v4/core/util.ts +775 -0
- package/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/zod/src/v4/locales/ar.ts +125 -0
- package/node_modules/zod/src/v4/locales/az.ts +121 -0
- package/node_modules/zod/src/v4/locales/be.ts +184 -0
- package/node_modules/zod/src/v4/locales/ca.ts +127 -0
- package/node_modules/zod/src/v4/locales/cs.ts +142 -0
- package/node_modules/zod/src/v4/locales/de.ts +124 -0
- package/node_modules/zod/src/v4/locales/en.ts +127 -0
- package/node_modules/zod/src/v4/locales/eo.ts +125 -0
- package/node_modules/zod/src/v4/locales/es.ts +125 -0
- package/node_modules/zod/src/v4/locales/fa.ts +134 -0
- package/node_modules/zod/src/v4/locales/fi.ts +131 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
- package/node_modules/zod/src/v4/locales/fr.ts +124 -0
- package/node_modules/zod/src/v4/locales/he.ts +125 -0
- package/node_modules/zod/src/v4/locales/hu.ts +126 -0
- package/node_modules/zod/src/v4/locales/id.ts +125 -0
- package/node_modules/zod/src/v4/locales/index.ts +39 -0
- package/node_modules/zod/src/v4/locales/it.ts +125 -0
- package/node_modules/zod/src/v4/locales/ja.ts +122 -0
- package/node_modules/zod/src/v4/locales/kh.ts +126 -0
- package/node_modules/zod/src/v4/locales/ko.ts +131 -0
- package/node_modules/zod/src/v4/locales/mk.ts +127 -0
- package/node_modules/zod/src/v4/locales/ms.ts +124 -0
- package/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/node_modules/zod/src/v4/locales/no.ts +124 -0
- package/node_modules/zod/src/v4/locales/ota.ts +125 -0
- package/node_modules/zod/src/v4/locales/pl.ts +126 -0
- package/node_modules/zod/src/v4/locales/ps.ts +133 -0
- package/node_modules/zod/src/v4/locales/pt.ts +123 -0
- package/node_modules/zod/src/v4/locales/ru.ts +184 -0
- package/node_modules/zod/src/v4/locales/sl.ts +126 -0
- package/node_modules/zod/src/v4/locales/sv.ts +127 -0
- package/node_modules/zod/src/v4/locales/ta.ts +125 -0
- package/node_modules/zod/src/v4/locales/th.ts +126 -0
- package/node_modules/zod/src/v4/locales/tr.ts +121 -0
- package/node_modules/zod/src/v4/locales/ua.ts +126 -0
- package/node_modules/zod/src/v4/locales/ur.ts +126 -0
- package/node_modules/zod/src/v4/locales/vi.ts +125 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
- package/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +22 -0
- package/node_modules/zod/src/v4/mini/external.ts +40 -0
- package/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/zod/src/v4/mini/iso.ts +62 -0
- package/node_modules/zod/src/v4/mini/parse.ts +1 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
- package/node_modules/zod/src/v4-mini/index.ts +1 -0
- package/node_modules/zod/v3/ZodError.cjs +138 -0
- package/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/zod/v3/ZodError.js +133 -0
- package/node_modules/zod/v3/errors.cjs +17 -0
- package/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/zod/v3/external.cjs +22 -0
- package/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/zod/v3/external.js +6 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/zod/v3/index.cjs +33 -0
- package/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/zod/v3/index.js +4 -0
- package/node_modules/zod/v3/locales/en.cjs +111 -0
- package/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/zod/v3/types.cjs +3775 -0
- package/node_modules/zod/v3/types.d.cts +1031 -0
- package/node_modules/zod/v3/types.d.ts +1031 -0
- package/node_modules/zod/v3/types.js +3693 -0
- package/node_modules/zod/v4/classic/checks.cjs +32 -0
- package/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/zod/v4/classic/compat.cjs +57 -0
- package/node_modules/zod/v4/classic/compat.d.cts +46 -0
- package/node_modules/zod/v4/classic/compat.d.ts +46 -0
- package/node_modules/zod/v4/classic/compat.js +27 -0
- package/node_modules/zod/v4/classic/errors.cjs +67 -0
- package/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/node_modules/zod/v4/classic/errors.js +41 -0
- package/node_modules/zod/v4/classic/external.cjs +70 -0
- package/node_modules/zod/v4/classic/external.d.cts +13 -0
- package/node_modules/zod/v4/classic/external.d.ts +13 -0
- package/node_modules/zod/v4/classic/external.js +18 -0
- package/node_modules/zod/v4/classic/index.cjs +33 -0
- package/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/node_modules/zod/v4/classic/iso.js +30 -0
- package/node_modules/zod/v4/classic/parse.cjs +32 -0
- package/node_modules/zod/v4/classic/parse.d.cts +23 -0
- package/node_modules/zod/v4/classic/parse.d.ts +23 -0
- package/node_modules/zod/v4/classic/parse.js +6 -0
- package/node_modules/zod/v4/classic/schemas.cjs +1109 -0
- package/node_modules/zod/v4/classic/schemas.d.cts +630 -0
- package/node_modules/zod/v4/classic/schemas.d.ts +630 -0
- package/node_modules/zod/v4/classic/schemas.js +1006 -0
- package/node_modules/zod/v4/core/api.cjs +1039 -0
- package/node_modules/zod/v4/core/api.d.cts +284 -0
- package/node_modules/zod/v4/core/api.d.ts +284 -0
- package/node_modules/zod/v4/core/api.js +906 -0
- package/node_modules/zod/v4/core/checks.cjs +591 -0
- package/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/node_modules/zod/v4/core/checks.js +565 -0
- package/node_modules/zod/v4/core/core.cjs +67 -0
- package/node_modules/zod/v4/core/core.d.cts +49 -0
- package/node_modules/zod/v4/core/core.d.ts +49 -0
- package/node_modules/zod/v4/core/core.js +61 -0
- package/node_modules/zod/v4/core/doc.cjs +39 -0
- package/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/node_modules/zod/v4/core/doc.js +35 -0
- package/node_modules/zod/v4/core/errors.cjs +226 -0
- package/node_modules/zod/v4/core/errors.d.cts +208 -0
- package/node_modules/zod/v4/core/errors.d.ts +208 -0
- package/node_modules/zod/v4/core/errors.js +195 -0
- package/node_modules/zod/v4/core/function.cjs +102 -0
- package/node_modules/zod/v4/core/function.d.cts +52 -0
- package/node_modules/zod/v4/core/function.d.ts +52 -0
- package/node_modules/zod/v4/core/function.js +75 -0
- package/node_modules/zod/v4/core/index.cjs +44 -0
- package/node_modules/zod/v4/core/index.d.cts +15 -0
- package/node_modules/zod/v4/core/index.d.ts +15 -0
- package/node_modules/zod/v4/core/index.js +15 -0
- package/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +87 -0
- package/node_modules/zod/v4/core/json-schema.d.ts +87 -0
- package/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/zod/v4/core/parse.cjs +87 -0
- package/node_modules/zod/v4/core/parse.d.cts +25 -0
- package/node_modules/zod/v4/core/parse.d.ts +25 -0
- package/node_modules/zod/v4/core/parse.js +57 -0
- package/node_modules/zod/v4/core/regexes.cjs +103 -0
- package/node_modules/zod/v4/core/regexes.d.cts +62 -0
- package/node_modules/zod/v4/core/regexes.d.ts +62 -0
- package/node_modules/zod/v4/core/regexes.js +95 -0
- package/node_modules/zod/v4/core/registries.cjs +56 -0
- package/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/zod/v4/core/schemas.cjs +1748 -0
- package/node_modules/zod/v4/core/schemas.d.cts +1041 -0
- package/node_modules/zod/v4/core/schemas.d.ts +1041 -0
- package/node_modules/zod/v4/core/schemas.js +1717 -0
- package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
- package/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
- package/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
- package/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
- package/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
- package/node_modules/zod/v4/core/to-json-schema.js +849 -0
- package/node_modules/zod/v4/core/util.cjs +539 -0
- package/node_modules/zod/v4/core/util.d.cts +183 -0
- package/node_modules/zod/v4/core/util.d.ts +183 -0
- package/node_modules/zod/v4/core/util.js +493 -0
- package/node_modules/zod/v4/core/versions.cjs +8 -0
- package/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/zod/v4/index.cjs +22 -0
- package/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/zod/v4/index.js +3 -0
- package/node_modules/zod/v4/locales/ar.cjs +142 -0
- package/node_modules/zod/v4/locales/ar.d.cts +4 -0
- package/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/zod/v4/locales/ar.js +116 -0
- package/node_modules/zod/v4/locales/az.cjs +141 -0
- package/node_modules/zod/v4/locales/az.d.cts +4 -0
- package/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/zod/v4/locales/az.js +115 -0
- package/node_modules/zod/v4/locales/be.cjs +190 -0
- package/node_modules/zod/v4/locales/be.d.cts +4 -0
- package/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/zod/v4/locales/be.js +164 -0
- package/node_modules/zod/v4/locales/ca.cjs +144 -0
- package/node_modules/zod/v4/locales/ca.d.cts +4 -0
- package/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/zod/v4/locales/ca.js +118 -0
- package/node_modules/zod/v4/locales/cs.cjs +161 -0
- package/node_modules/zod/v4/locales/cs.d.cts +4 -0
- package/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/zod/v4/locales/cs.js +135 -0
- package/node_modules/zod/v4/locales/de.cjs +142 -0
- package/node_modules/zod/v4/locales/de.d.cts +4 -0
- package/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/zod/v4/locales/de.js +116 -0
- package/node_modules/zod/v4/locales/en.cjs +145 -0
- package/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/zod/v4/locales/en.d.ts +5 -0
- package/node_modules/zod/v4/locales/en.js +117 -0
- package/node_modules/zod/v4/locales/eo.cjs +144 -0
- package/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/zod/v4/locales/eo.d.ts +5 -0
- package/node_modules/zod/v4/locales/eo.js +116 -0
- package/node_modules/zod/v4/locales/es.cjs +143 -0
- package/node_modules/zod/v4/locales/es.d.cts +4 -0
- package/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/zod/v4/locales/es.js +117 -0
- package/node_modules/zod/v4/locales/fa.cjs +148 -0
- package/node_modules/zod/v4/locales/fa.d.cts +4 -0
- package/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/zod/v4/locales/fa.js +122 -0
- package/node_modules/zod/v4/locales/fi.cjs +148 -0
- package/node_modules/zod/v4/locales/fi.d.cts +4 -0
- package/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/zod/v4/locales/fi.js +122 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
- package/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.js +117 -0
- package/node_modules/zod/v4/locales/fr.cjs +142 -0
- package/node_modules/zod/v4/locales/fr.d.cts +4 -0
- package/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr.js +116 -0
- package/node_modules/zod/v4/locales/he.cjs +143 -0
- package/node_modules/zod/v4/locales/he.d.cts +4 -0
- package/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/zod/v4/locales/he.js +117 -0
- package/node_modules/zod/v4/locales/hu.cjs +143 -0
- package/node_modules/zod/v4/locales/hu.d.cts +4 -0
- package/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/zod/v4/locales/hu.js +117 -0
- package/node_modules/zod/v4/locales/id.cjs +142 -0
- package/node_modules/zod/v4/locales/id.d.cts +4 -0
- package/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/zod/v4/locales/id.js +116 -0
- package/node_modules/zod/v4/locales/index.cjs +84 -0
- package/node_modules/zod/v4/locales/index.d.cts +39 -0
- package/node_modules/zod/v4/locales/index.d.ts +39 -0
- package/node_modules/zod/v4/locales/index.js +39 -0
- package/node_modules/zod/v4/locales/it.cjs +143 -0
- package/node_modules/zod/v4/locales/it.d.cts +4 -0
- package/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/zod/v4/locales/it.js +117 -0
- package/node_modules/zod/v4/locales/ja.cjs +141 -0
- package/node_modules/zod/v4/locales/ja.d.cts +4 -0
- package/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/zod/v4/locales/ja.js +115 -0
- package/node_modules/zod/v4/locales/kh.cjs +143 -0
- package/node_modules/zod/v4/locales/kh.d.cts +4 -0
- package/node_modules/zod/v4/locales/kh.d.ts +4 -0
- package/node_modules/zod/v4/locales/kh.js +117 -0
- package/node_modules/zod/v4/locales/ko.cjs +147 -0
- package/node_modules/zod/v4/locales/ko.d.cts +4 -0
- package/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/zod/v4/locales/ko.js +121 -0
- package/node_modules/zod/v4/locales/mk.cjs +144 -0
- package/node_modules/zod/v4/locales/mk.d.cts +4 -0
- package/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/zod/v4/locales/mk.js +118 -0
- package/node_modules/zod/v4/locales/ms.cjs +142 -0
- package/node_modules/zod/v4/locales/ms.d.cts +4 -0
- package/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/zod/v4/locales/ms.js +116 -0
- package/node_modules/zod/v4/locales/nl.cjs +143 -0
- package/node_modules/zod/v4/locales/nl.d.cts +4 -0
- package/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/zod/v4/locales/nl.js +117 -0
- package/node_modules/zod/v4/locales/no.cjs +142 -0
- package/node_modules/zod/v4/locales/no.d.cts +4 -0
- package/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/zod/v4/locales/no.js +116 -0
- package/node_modules/zod/v4/locales/ota.cjs +143 -0
- package/node_modules/zod/v4/locales/ota.d.cts +4 -0
- package/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/zod/v4/locales/ota.js +117 -0
- package/node_modules/zod/v4/locales/pl.cjs +143 -0
- package/node_modules/zod/v4/locales/pl.d.cts +4 -0
- package/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/zod/v4/locales/pl.js +117 -0
- package/node_modules/zod/v4/locales/ps.cjs +148 -0
- package/node_modules/zod/v4/locales/ps.d.cts +4 -0
- package/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/zod/v4/locales/ps.js +122 -0
- package/node_modules/zod/v4/locales/pt.cjs +142 -0
- package/node_modules/zod/v4/locales/pt.d.cts +4 -0
- package/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt.js +116 -0
- package/node_modules/zod/v4/locales/ru.cjs +190 -0
- package/node_modules/zod/v4/locales/ru.d.cts +4 -0
- package/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/zod/v4/locales/ru.js +164 -0
- package/node_modules/zod/v4/locales/sl.cjs +143 -0
- package/node_modules/zod/v4/locales/sl.d.cts +4 -0
- package/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/zod/v4/locales/sl.js +117 -0
- package/node_modules/zod/v4/locales/sv.cjs +144 -0
- package/node_modules/zod/v4/locales/sv.d.cts +4 -0
- package/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/zod/v4/locales/sv.js +118 -0
- package/node_modules/zod/v4/locales/ta.cjs +143 -0
- package/node_modules/zod/v4/locales/ta.d.cts +4 -0
- package/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/zod/v4/locales/ta.js +117 -0
- package/node_modules/zod/v4/locales/th.cjs +143 -0
- package/node_modules/zod/v4/locales/th.d.cts +4 -0
- package/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/zod/v4/locales/th.js +117 -0
- package/node_modules/zod/v4/locales/tr.cjs +143 -0
- package/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/zod/v4/locales/tr.d.ts +5 -0
- package/node_modules/zod/v4/locales/tr.js +115 -0
- package/node_modules/zod/v4/locales/ua.cjs +143 -0
- package/node_modules/zod/v4/locales/ua.d.cts +4 -0
- package/node_modules/zod/v4/locales/ua.d.ts +4 -0
- package/node_modules/zod/v4/locales/ua.js +117 -0
- package/node_modules/zod/v4/locales/ur.cjs +143 -0
- package/node_modules/zod/v4/locales/ur.d.cts +4 -0
- package/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/zod/v4/locales/ur.js +117 -0
- package/node_modules/zod/v4/locales/vi.cjs +142 -0
- package/node_modules/zod/v4/locales/vi.d.cts +4 -0
- package/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/zod/v4/locales/vi.js +116 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
- package/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.js +116 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.js +117 -0
- package/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/zod/v4/mini/coerce.cjs +47 -0
- package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/zod/v4/mini/coerce.js +17 -0
- package/node_modules/zod/v4/mini/external.cjs +62 -0
- package/node_modules/zod/v4/mini/external.d.cts +11 -0
- package/node_modules/zod/v4/mini/external.d.ts +11 -0
- package/node_modules/zod/v4/mini/external.js +13 -0
- package/node_modules/zod/v4/mini/index.cjs +32 -0
- package/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/zod/v4/mini/iso.cjs +60 -0
- package/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/zod/v4/mini/iso.js +30 -0
- package/node_modules/zod/v4/mini/parse.cjs +8 -0
- package/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/zod/v4/mini/schemas.cjs +839 -0
- package/node_modules/zod/v4/mini/schemas.d.cts +356 -0
- package/node_modules/zod/v4/mini/schemas.d.ts +356 -0
- package/node_modules/zod/v4/mini/schemas.js +732 -0
- package/node_modules/zod/v4-mini/index.cjs +17 -0
- package/node_modules/zod/v4-mini/index.d.cts +1 -0
- package/node_modules/zod/v4-mini/index.d.ts +1 -0
- package/node_modules/zod/v4-mini/index.js +1 -0
- package/package.json +5 -2
package/dist/constants.d.ts
CHANGED
|
@@ -4,6 +4,30 @@
|
|
|
4
4
|
*/
|
|
5
5
|
/** Configuration directory name */
|
|
6
6
|
export declare const CONFIG_DIR_NAME = ".ax-cli";
|
|
7
|
+
export declare const FILE_NAMES: {
|
|
8
|
+
/** User configuration file name */
|
|
9
|
+
readonly USER_CONFIG: "config.json";
|
|
10
|
+
/** Project settings file name */
|
|
11
|
+
readonly PROJECT_SETTINGS: "settings.json";
|
|
12
|
+
/** Custom instructions file name */
|
|
13
|
+
readonly CUSTOM_MD: "CUSTOM.md";
|
|
14
|
+
/** Project index file name */
|
|
15
|
+
readonly INDEX_JSON: "index.json";
|
|
16
|
+
/** Project memory file name */
|
|
17
|
+
readonly MEMORY_JSON: "memory.json";
|
|
18
|
+
/** History file name */
|
|
19
|
+
readonly HISTORY_JSON: "history.json";
|
|
20
|
+
/** Sessions directory name */
|
|
21
|
+
readonly SESSIONS_DIR: "sessions";
|
|
22
|
+
/** Templates directory name */
|
|
23
|
+
readonly TEMPLATES_DIR: "templates";
|
|
24
|
+
/** Plans directory name */
|
|
25
|
+
readonly PLANS_DIR: "plans";
|
|
26
|
+
/** Backups directory name */
|
|
27
|
+
readonly BACKUPS_DIR: "backups";
|
|
28
|
+
/** Cache directory name */
|
|
29
|
+
readonly CACHE_DIR: "cache";
|
|
30
|
+
};
|
|
7
31
|
export declare const CONFIG_PATHS: {
|
|
8
32
|
/** Configuration directory name */
|
|
9
33
|
readonly DIR_NAME: ".ax-cli";
|
|
@@ -15,6 +39,20 @@ export declare const CONFIG_PATHS: {
|
|
|
15
39
|
readonly PROJECT_DIR: string;
|
|
16
40
|
/** Project-level settings file */
|
|
17
41
|
readonly PROJECT_SETTINGS: string;
|
|
42
|
+
/** Custom instructions file path (project-level) */
|
|
43
|
+
readonly CUSTOM_MD: string;
|
|
44
|
+
/** Project index file path (project-level) */
|
|
45
|
+
readonly INDEX_JSON: string;
|
|
46
|
+
/** Project memory file path (project-level) */
|
|
47
|
+
readonly MEMORY_JSON: string;
|
|
48
|
+
/** User templates directory */
|
|
49
|
+
readonly USER_TEMPLATES_DIR: string;
|
|
50
|
+
/** User plans directory */
|
|
51
|
+
readonly USER_PLANS_DIR: string;
|
|
52
|
+
/** User history file */
|
|
53
|
+
readonly USER_HISTORY: string;
|
|
54
|
+
/** User sessions directory */
|
|
55
|
+
readonly USER_SESSIONS_DIR: string;
|
|
18
56
|
/** AutomatosX temporary files directory */
|
|
19
57
|
readonly AUTOMATOSX_TMP: string;
|
|
20
58
|
};
|
package/dist/constants.js
CHANGED
|
@@ -11,6 +11,31 @@ const settingsYaml = loadSettingsConfig();
|
|
|
11
11
|
const messagesYaml = loadMessagesConfig();
|
|
12
12
|
/** Configuration directory name */
|
|
13
13
|
export const CONFIG_DIR_NAME = '.ax-cli';
|
|
14
|
+
// File Names (without paths)
|
|
15
|
+
export const FILE_NAMES = {
|
|
16
|
+
/** User configuration file name */
|
|
17
|
+
USER_CONFIG: 'config.json',
|
|
18
|
+
/** Project settings file name */
|
|
19
|
+
PROJECT_SETTINGS: 'settings.json',
|
|
20
|
+
/** Custom instructions file name */
|
|
21
|
+
CUSTOM_MD: 'CUSTOM.md',
|
|
22
|
+
/** Project index file name */
|
|
23
|
+
INDEX_JSON: 'index.json',
|
|
24
|
+
/** Project memory file name */
|
|
25
|
+
MEMORY_JSON: 'memory.json',
|
|
26
|
+
/** History file name */
|
|
27
|
+
HISTORY_JSON: 'history.json',
|
|
28
|
+
/** Sessions directory name */
|
|
29
|
+
SESSIONS_DIR: 'sessions',
|
|
30
|
+
/** Templates directory name */
|
|
31
|
+
TEMPLATES_DIR: 'templates',
|
|
32
|
+
/** Plans directory name */
|
|
33
|
+
PLANS_DIR: 'plans',
|
|
34
|
+
/** Backups directory name */
|
|
35
|
+
BACKUPS_DIR: 'backups',
|
|
36
|
+
/** Cache directory name */
|
|
37
|
+
CACHE_DIR: 'cache',
|
|
38
|
+
};
|
|
14
39
|
// Configuration Paths
|
|
15
40
|
export const CONFIG_PATHS = {
|
|
16
41
|
/** Configuration directory name */
|
|
@@ -18,11 +43,25 @@ export const CONFIG_PATHS = {
|
|
|
18
43
|
/** User-level settings directory */
|
|
19
44
|
USER_DIR: join(homedir(), CONFIG_DIR_NAME),
|
|
20
45
|
/** User-level configuration file */
|
|
21
|
-
USER_CONFIG: join(homedir(), CONFIG_DIR_NAME,
|
|
46
|
+
USER_CONFIG: join(homedir(), CONFIG_DIR_NAME, FILE_NAMES.USER_CONFIG),
|
|
22
47
|
/** Project-level settings directory */
|
|
23
48
|
PROJECT_DIR: join(process.cwd(), CONFIG_DIR_NAME),
|
|
24
49
|
/** Project-level settings file */
|
|
25
|
-
PROJECT_SETTINGS: join(process.cwd(), CONFIG_DIR_NAME,
|
|
50
|
+
PROJECT_SETTINGS: join(process.cwd(), CONFIG_DIR_NAME, FILE_NAMES.PROJECT_SETTINGS),
|
|
51
|
+
/** Custom instructions file path (project-level) */
|
|
52
|
+
CUSTOM_MD: join(process.cwd(), CONFIG_DIR_NAME, FILE_NAMES.CUSTOM_MD),
|
|
53
|
+
/** Project index file path (project-level) */
|
|
54
|
+
INDEX_JSON: join(process.cwd(), CONFIG_DIR_NAME, FILE_NAMES.INDEX_JSON),
|
|
55
|
+
/** Project memory file path (project-level) */
|
|
56
|
+
MEMORY_JSON: join(process.cwd(), CONFIG_DIR_NAME, FILE_NAMES.MEMORY_JSON),
|
|
57
|
+
/** User templates directory */
|
|
58
|
+
USER_TEMPLATES_DIR: join(homedir(), CONFIG_DIR_NAME, FILE_NAMES.TEMPLATES_DIR),
|
|
59
|
+
/** User plans directory */
|
|
60
|
+
USER_PLANS_DIR: join(homedir(), CONFIG_DIR_NAME, FILE_NAMES.PLANS_DIR),
|
|
61
|
+
/** User history file */
|
|
62
|
+
USER_HISTORY: join(homedir(), CONFIG_DIR_NAME, FILE_NAMES.HISTORY_JSON),
|
|
63
|
+
/** User sessions directory */
|
|
64
|
+
USER_SESSIONS_DIR: join(homedir(), CONFIG_DIR_NAME, FILE_NAMES.SESSIONS_DIR),
|
|
26
65
|
/** AutomatosX temporary files directory */
|
|
27
66
|
AUTOMATOSX_TMP: join(homedir(), 'automatosx', 'tmp'),
|
|
28
67
|
};
|
package/dist/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEnH,sCAAsC;AACtC,MAAM,UAAU,GAAG,gBAAgB,EAAE,CAAC;AACtC,MAAM,YAAY,GAAG,kBAAkB,EAAE,CAAC;AAC1C,MAAM,YAAY,GAAG,kBAAkB,EAAE,CAAC;AAE1C,mCAAmC;AACnC,MAAM,CAAC,MAAM,eAAe,GAAG,SAAS,CAAC;AAEzC,sBAAsB;AACtB,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,mCAAmC;IACnC,QAAQ,EAAE,eAAe;IACzB,oCAAoC;IACpC,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,eAAe,CAAC;IAC1C,oCAAoC;IACpC,WAAW,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEnH,sCAAsC;AACtC,MAAM,UAAU,GAAG,gBAAgB,EAAE,CAAC;AACtC,MAAM,YAAY,GAAG,kBAAkB,EAAE,CAAC;AAC1C,MAAM,YAAY,GAAG,kBAAkB,EAAE,CAAC;AAE1C,mCAAmC;AACnC,MAAM,CAAC,MAAM,eA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C,aAAa,CAAC,YAAY,CAAC,MAAM,CAAC,oBAAoB,EAAE,EAAE,UAAU,EAAE,CAAC;IACrH,cAAc,EAAE,CAAC,QAAgB,EAAE,EAAE,CAAC,aAAa,CAAC,YAAY,CAAC,MAAM,CAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,CAAC;IACrG,mBAAmB,EAAE,CAAC,OAAe,EAAE,EAAE,CAAC,aAAa,CAAC,YAAY,CAAC,MAAM,CAAC,mBAAmB,EAAE,EAAE,OAAO,EAAE,CAAC;CACrG,CAAC;AAEX,yCAAyC;AACzC,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,kCAAkC;IAClC,OAAO,EAAE,IAAI;IAEb,8FAA8F;IAC9F,mBAAmB,EAAE,CAAC;IAEtB,8BAA8B;IAC9B,UAAU,EAAE,EAAE;IAEd,iDAAiD;IACjD,gBAAgB,EAAE,MAAM;IAExB,8BAA8B;IAC9B,mBAAmB,EAAE,CAAC;IAEtB,2CAA2C;IAC3C,eAAe,EAAE,IAAI;IAErB,8FAA8F;IAC9F,qBAAqB,EAAE,KAAK;IAE5B,4CAA4C;IAC5C,0BAA0B,EAAE,IAAI;IAEhC,mFAAmF;IACnF,qBAAqB,EAAE,IAAI;IAE3B,mCAAmC;IACnC,iBAAiB,EAAE,IAAI;IAEvB,8CAA8C;IAC9C,yBAAyB,EAAE,EAAE;IAE7B,oCAAoC;IACpC,mBAAmB,EAAE,EAAE;IAEvB,6BAA6B;IAC7B,YAAY,EAAE,IAAI;IAElB,0EAA0E;IAC1E,WAAW,EAAE,IAAI;IAEjB,oDAAoD;IACpD,cAAc,EAAE,KAAK;CACb,CAAC"}
|
package/dist/llm/tools.d.ts
CHANGED
|
@@ -1,13 +1,40 @@
|
|
|
1
1
|
import { LLMTool } from "./client.js";
|
|
2
2
|
import { MCPManager, MCPTool } from "../mcp/client.js";
|
|
3
|
+
/**
|
|
4
|
+
* Exported tool definitions
|
|
5
|
+
* @deprecated Use LLM_TOOLS instead of GROK_TOOLS (legacy name kept for backwards compatibility)
|
|
6
|
+
*/
|
|
3
7
|
export declare const GROK_TOOLS: LLMTool[];
|
|
8
|
+
export declare const LLM_TOOLS: LLMTool[];
|
|
9
|
+
/**
|
|
10
|
+
* Get or create the MCP manager singleton
|
|
11
|
+
*/
|
|
4
12
|
export declare function getMCPManager(): MCPManager;
|
|
5
13
|
/**
|
|
6
14
|
* Get the count of connected MCP servers
|
|
7
15
|
* Safe to call even if MCP manager is not initialized
|
|
8
16
|
*/
|
|
9
17
|
export declare function getMcpConnectionCount(): number;
|
|
18
|
+
/**
|
|
19
|
+
* Initialize MCP servers from config
|
|
20
|
+
*/
|
|
10
21
|
export declare function initializeMCPServers(): Promise<void>;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Convert MCP tool format to LLM tool format
|
|
24
|
+
*/
|
|
25
|
+
export declare function convertMCPToolToLLMTool(mcpTool: MCPTool): LLMTool;
|
|
26
|
+
/** @deprecated Use convertMCPToolToLLMTool instead */
|
|
27
|
+
export declare const convertMCPToolToGrokTool: typeof convertMCPToolToLLMTool;
|
|
28
|
+
/**
|
|
29
|
+
* Merge base tools with MCP tools
|
|
30
|
+
*/
|
|
31
|
+
export declare function mergeWithMCPTools(baseTools: LLMTool[]): LLMTool[];
|
|
32
|
+
/** @deprecated Use mergeWithMCPTools instead */
|
|
33
|
+
export declare const addMCPToolsToGrokTools: typeof mergeWithMCPTools;
|
|
34
|
+
/**
|
|
35
|
+
* Get all available tools (base + MCP)
|
|
36
|
+
* Handles MCP initialization with timeout
|
|
37
|
+
*/
|
|
38
|
+
export declare function getAllTools(): Promise<LLMTool[]>;
|
|
39
|
+
/** @deprecated Use getAllTools instead */
|
|
40
|
+
export declare const getAllGrokTools: typeof getAllTools;
|
package/dist/llm/tools.js
CHANGED
|
@@ -1,7 +1,28 @@
|
|
|
1
1
|
import { MCPManager } from "../mcp/client.js";
|
|
2
2
|
import { loadMCPConfig } from "../mcp/config.js";
|
|
3
3
|
import { extractErrorMessage } from "../utils/error-handler.js";
|
|
4
|
-
|
|
4
|
+
// Tool configuration constants
|
|
5
|
+
const TOOL_DEFAULTS = {
|
|
6
|
+
BASH_TIMEOUT_MS: 30000,
|
|
7
|
+
MCP_INIT_TIMEOUT_MS: 5000,
|
|
8
|
+
SEARCH_MAX_RESULTS: 50,
|
|
9
|
+
};
|
|
10
|
+
// MCP log messages to suppress (verbose connection logs)
|
|
11
|
+
const MCP_SUPPRESSED_LOG_PATTERNS = [
|
|
12
|
+
'Using existing client port',
|
|
13
|
+
'Connecting to remote server',
|
|
14
|
+
'Using transport strategy',
|
|
15
|
+
'Connected to remote server',
|
|
16
|
+
'Local STDIO server running',
|
|
17
|
+
'Proxy established successfully',
|
|
18
|
+
'Local→Remote',
|
|
19
|
+
'Remote→Local',
|
|
20
|
+
];
|
|
21
|
+
/**
|
|
22
|
+
* Core tool definitions for the LLM agent
|
|
23
|
+
* Named BASE_LLM_TOOLS (not GROK) to reflect actual usage
|
|
24
|
+
*/
|
|
25
|
+
const BASE_LLM_TOOLS = [
|
|
5
26
|
{
|
|
6
27
|
type: "function",
|
|
7
28
|
function: {
|
|
@@ -52,7 +73,7 @@ const BASE_GROK_TOOLS = [
|
|
|
52
73
|
type: "function",
|
|
53
74
|
function: {
|
|
54
75
|
name: "str_replace_editor",
|
|
55
|
-
description: "
|
|
76
|
+
description: "Edit existing files with precise string replacement. Can replace single or multi-line text blocks. For multiple changes to the same file, include more context in old_str to make a single comprehensive edit rather than multiple separate calls.",
|
|
56
77
|
parameters: {
|
|
57
78
|
type: "object",
|
|
58
79
|
properties: {
|
|
@@ -62,21 +83,56 @@ const BASE_GROK_TOOLS = [
|
|
|
62
83
|
},
|
|
63
84
|
old_str: {
|
|
64
85
|
type: "string",
|
|
65
|
-
description: "Text to replace
|
|
86
|
+
description: "Text to replace - can be single line or multi-line block. Include sufficient context (surrounding lines) to uniquely identify the location and enable consolidated edits.",
|
|
66
87
|
},
|
|
67
88
|
new_str: {
|
|
68
89
|
type: "string",
|
|
69
|
-
description: "
|
|
90
|
+
description: "Replacement text - can be single line or entire function/block",
|
|
70
91
|
},
|
|
71
92
|
replace_all: {
|
|
72
93
|
type: "boolean",
|
|
73
|
-
description: "Replace all occurrences (default: false, only replaces first occurrence)",
|
|
94
|
+
description: "Replace all occurrences (default: false, only replaces first occurrence). Useful for variable renaming across file.",
|
|
74
95
|
},
|
|
75
96
|
},
|
|
76
97
|
required: ["path", "old_str", "new_str"],
|
|
77
98
|
},
|
|
78
99
|
},
|
|
79
100
|
},
|
|
101
|
+
{
|
|
102
|
+
type: "function",
|
|
103
|
+
function: {
|
|
104
|
+
name: "multi_edit",
|
|
105
|
+
description: "Make multiple edits to a single file in one atomic operation. Use this instead of multiple str_replace_editor calls when you need to make several changes to the same file. Edits are applied sequentially and the operation fails entirely if any edit is invalid (all-or-nothing).",
|
|
106
|
+
parameters: {
|
|
107
|
+
type: "object",
|
|
108
|
+
properties: {
|
|
109
|
+
path: {
|
|
110
|
+
type: "string",
|
|
111
|
+
description: "Path to the file to edit",
|
|
112
|
+
},
|
|
113
|
+
edits: {
|
|
114
|
+
type: "array",
|
|
115
|
+
description: "Array of edits to apply sequentially. Each edit operates on the result of the previous edit.",
|
|
116
|
+
items: {
|
|
117
|
+
type: "object",
|
|
118
|
+
properties: {
|
|
119
|
+
old_str: {
|
|
120
|
+
type: "string",
|
|
121
|
+
description: "Text to replace",
|
|
122
|
+
},
|
|
123
|
+
new_str: {
|
|
124
|
+
type: "string",
|
|
125
|
+
description: "Replacement text",
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
required: ["old_str", "new_str"],
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
required: ["path", "edits"],
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
},
|
|
80
136
|
{
|
|
81
137
|
type: "function",
|
|
82
138
|
function: {
|
|
@@ -95,7 +151,7 @@ const BASE_GROK_TOOLS = [
|
|
|
95
151
|
},
|
|
96
152
|
timeout: {
|
|
97
153
|
type: "number",
|
|
98
|
-
description:
|
|
154
|
+
description: `Timeout in milliseconds (default: ${TOOL_DEFAULTS.BASH_TIMEOUT_MS}). Ignored for background commands.`,
|
|
99
155
|
},
|
|
100
156
|
},
|
|
101
157
|
required: ["command"],
|
|
@@ -120,7 +176,7 @@ const BASE_GROK_TOOLS = [
|
|
|
120
176
|
},
|
|
121
177
|
timeout: {
|
|
122
178
|
type: "number",
|
|
123
|
-
description:
|
|
179
|
+
description: `Maximum time to wait in milliseconds if wait is true (default: ${TOOL_DEFAULTS.BASH_TIMEOUT_MS})`,
|
|
124
180
|
},
|
|
125
181
|
},
|
|
126
182
|
required: ["task_id"],
|
|
@@ -166,7 +222,7 @@ const BASE_GROK_TOOLS = [
|
|
|
166
222
|
},
|
|
167
223
|
max_results: {
|
|
168
224
|
type: "number",
|
|
169
|
-
description:
|
|
225
|
+
description: `Maximum number of results to return (default: ${TOOL_DEFAULTS.SEARCH_MAX_RESULTS})`,
|
|
170
226
|
},
|
|
171
227
|
file_types: {
|
|
172
228
|
type: "array",
|
|
@@ -313,14 +369,17 @@ const BASE_GROK_TOOLS = [
|
|
|
313
369
|
},
|
|
314
370
|
},
|
|
315
371
|
];
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
export const
|
|
322
|
-
// Global MCP manager instance
|
|
372
|
+
/**
|
|
373
|
+
* Exported tool definitions
|
|
374
|
+
* @deprecated Use LLM_TOOLS instead of GROK_TOOLS (legacy name kept for backwards compatibility)
|
|
375
|
+
*/
|
|
376
|
+
export const GROK_TOOLS = [...BASE_LLM_TOOLS];
|
|
377
|
+
export const LLM_TOOLS = GROK_TOOLS; // Preferred name
|
|
378
|
+
// Global MCP manager instance (singleton pattern)
|
|
323
379
|
let mcpManager = null;
|
|
380
|
+
/**
|
|
381
|
+
* Get or create the MCP manager singleton
|
|
382
|
+
*/
|
|
324
383
|
export function getMCPManager() {
|
|
325
384
|
if (!mcpManager) {
|
|
326
385
|
mcpManager = new MCPManager();
|
|
@@ -332,34 +391,30 @@ export function getMCPManager() {
|
|
|
332
391
|
* Safe to call even if MCP manager is not initialized
|
|
333
392
|
*/
|
|
334
393
|
export function getMcpConnectionCount() {
|
|
335
|
-
|
|
336
|
-
return 0;
|
|
337
|
-
}
|
|
338
|
-
return mcpManager.getServers().length;
|
|
394
|
+
return mcpManager?.getServers().length ?? 0;
|
|
339
395
|
}
|
|
396
|
+
/**
|
|
397
|
+
* Check if a log message should be suppressed
|
|
398
|
+
*/
|
|
399
|
+
function shouldSuppressMcpLog(message) {
|
|
400
|
+
if (!message.includes('['))
|
|
401
|
+
return false;
|
|
402
|
+
return MCP_SUPPRESSED_LOG_PATTERNS.some(pattern => message.includes(pattern));
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* Initialize MCP servers from config
|
|
406
|
+
*/
|
|
340
407
|
export async function initializeMCPServers() {
|
|
341
408
|
const manager = getMCPManager();
|
|
342
409
|
const config = loadMCPConfig();
|
|
343
|
-
//
|
|
410
|
+
// Temporarily suppress verbose MCP connection logs
|
|
344
411
|
const originalStderrWrite = process.stderr.write;
|
|
345
|
-
// Temporarily suppress stderr to hide verbose MCP connection logs
|
|
346
412
|
process.stderr.write = function (chunk, encoding, callback) {
|
|
347
|
-
|
|
348
|
-
const chunkStr = chunk.toString();
|
|
349
|
-
if (chunkStr.includes('[') && (chunkStr.includes('Using existing client port') ||
|
|
350
|
-
chunkStr.includes('Connecting to remote server') ||
|
|
351
|
-
chunkStr.includes('Using transport strategy') ||
|
|
352
|
-
chunkStr.includes('Connected to remote server') ||
|
|
353
|
-
chunkStr.includes('Local STDIO server running') ||
|
|
354
|
-
chunkStr.includes('Proxy established successfully') ||
|
|
355
|
-
chunkStr.includes('Local→Remote') ||
|
|
356
|
-
chunkStr.includes('Remote→Local'))) {
|
|
357
|
-
// Suppress these verbose logs
|
|
413
|
+
if (shouldSuppressMcpLog(chunk.toString())) {
|
|
358
414
|
if (callback)
|
|
359
415
|
callback();
|
|
360
416
|
return true;
|
|
361
417
|
}
|
|
362
|
-
// Allow other stderr output
|
|
363
418
|
return originalStderrWrite.call(this, chunk, encoding, callback);
|
|
364
419
|
};
|
|
365
420
|
try {
|
|
@@ -373,11 +428,13 @@ export async function initializeMCPServers() {
|
|
|
373
428
|
}
|
|
374
429
|
}
|
|
375
430
|
finally {
|
|
376
|
-
// Restore original stderr.write
|
|
377
431
|
process.stderr.write = originalStderrWrite;
|
|
378
432
|
}
|
|
379
433
|
}
|
|
380
|
-
|
|
434
|
+
/**
|
|
435
|
+
* Convert MCP tool format to LLM tool format
|
|
436
|
+
*/
|
|
437
|
+
export function convertMCPToolToLLMTool(mcpTool) {
|
|
381
438
|
return {
|
|
382
439
|
type: "function",
|
|
383
440
|
function: {
|
|
@@ -391,25 +448,32 @@ export function convertMCPToolToGrokTool(mcpTool) {
|
|
|
391
448
|
}
|
|
392
449
|
};
|
|
393
450
|
}
|
|
394
|
-
|
|
451
|
+
/** @deprecated Use convertMCPToolToLLMTool instead */
|
|
452
|
+
export const convertMCPToolToGrokTool = convertMCPToolToLLMTool;
|
|
453
|
+
/**
|
|
454
|
+
* Merge base tools with MCP tools
|
|
455
|
+
*/
|
|
456
|
+
export function mergeWithMCPTools(baseTools) {
|
|
395
457
|
if (!mcpManager) {
|
|
396
458
|
return baseTools;
|
|
397
459
|
}
|
|
398
|
-
const mcpTools = mcpManager.getTools();
|
|
399
|
-
|
|
400
|
-
return [...baseTools, ...grokMCPTools];
|
|
460
|
+
const mcpTools = mcpManager.getTools().map(convertMCPToolToLLMTool);
|
|
461
|
+
return [...baseTools, ...mcpTools];
|
|
401
462
|
}
|
|
402
|
-
|
|
463
|
+
/** @deprecated Use mergeWithMCPTools instead */
|
|
464
|
+
export const addMCPToolsToGrokTools = mergeWithMCPTools;
|
|
465
|
+
/**
|
|
466
|
+
* Get all available tools (base + MCP)
|
|
467
|
+
* Handles MCP initialization with timeout
|
|
468
|
+
*/
|
|
469
|
+
export async function getAllTools() {
|
|
403
470
|
const manager = getMCPManager();
|
|
404
|
-
// Try to initialize servers if not already done
|
|
405
|
-
// Log errors but continue without MCP tools rather than blocking
|
|
406
471
|
try {
|
|
407
|
-
// Create timeout with proper cleanup to prevent memory leak and unhandled rejection
|
|
408
472
|
let timeoutId;
|
|
409
473
|
const timeoutPromise = new Promise((_, reject) => {
|
|
410
|
-
timeoutId = setTimeout(() => reject(new Error('MCP init timeout')),
|
|
474
|
+
timeoutId = setTimeout(() => reject(new Error('MCP init timeout')), TOOL_DEFAULTS.MCP_INIT_TIMEOUT_MS);
|
|
411
475
|
});
|
|
412
|
-
//
|
|
476
|
+
// Prevent unhandled rejection if timeout loses race
|
|
413
477
|
timeoutPromise.catch(() => { });
|
|
414
478
|
await Promise.race([
|
|
415
479
|
manager.ensureServersInitialized().finally(() => {
|
|
@@ -421,8 +485,9 @@ export async function getAllGrokTools() {
|
|
|
421
485
|
}
|
|
422
486
|
catch (error) {
|
|
423
487
|
console.warn('MCP server initialization failed:', extractErrorMessage(error));
|
|
424
|
-
// Continue without MCP tools rather than blocking
|
|
425
488
|
}
|
|
426
|
-
return
|
|
489
|
+
return mergeWithMCPTools(LLM_TOOLS);
|
|
427
490
|
}
|
|
491
|
+
/** @deprecated Use getAllTools instead */
|
|
492
|
+
export const getAllGrokTools = getAllTools;
|
|
428
493
|
//# sourceMappingURL=tools.js.map
|
package/dist/llm/tools.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/llm/tools.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAW,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,MAAM,eAAe,GAAc;
|
|
1
|
+
{"version":3,"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Ac,GAAG,IAAI,OAAO,CAAO,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE;YACrD,SAAS,GAAG,UAAU,CACpB,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC,EAC3C,aAAa,CAAC,mBAAmB,CAClC,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,oDAAoD;QACpD,cAAc,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;QAE/B,MAAM,OAAO,CAAC,IAAI,CAAC;YACjB,OAAO,CAAC,wBAAwB,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE;gBAC9C,IAAI,SAAS;oBAAE,YAAY,CAAC,SAAS,CAAC,CAAC;YACzC,CAAC,CAAC;YACF,cAAc;SACf,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,IAAI,CAAC,mCAAmC,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAC;IAChF,CAAC;IAED,OAAO,iBAAiB,CAAC,SAAS,CAAC,CAAC;AACtC,CAAC;AAED,0CAA0C;AAC1C,MAAM,CAAC,MAAM,eAAe,GAAG,WAAW,CAAC"}
|
|
@@ -471,6 +471,25 @@ export declare const ToolDefinitionSchema: z.ZodObject<{
|
|
|
471
471
|
export declare const PromptsYamlSchema: z.ZodObject<{
|
|
472
472
|
system_prompt: z.ZodObject<{
|
|
473
473
|
identity: z.ZodString;
|
|
474
|
+
professional_objectivity: z.ZodOptional<z.ZodObject<{
|
|
475
|
+
title: z.ZodOptional<z.ZodString>;
|
|
476
|
+
content: z.ZodOptional<z.ZodString>;
|
|
477
|
+
rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
478
|
+
steps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
479
|
+
guidelines: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
480
|
+
}, "strip", z.ZodTypeAny, {
|
|
481
|
+
title?: string | undefined;
|
|
482
|
+
content?: string | undefined;
|
|
483
|
+
rules?: string[] | undefined;
|
|
484
|
+
steps?: string[] | undefined;
|
|
485
|
+
guidelines?: string[] | undefined;
|
|
486
|
+
}, {
|
|
487
|
+
title?: string | undefined;
|
|
488
|
+
content?: string | undefined;
|
|
489
|
+
rules?: string[] | undefined;
|
|
490
|
+
steps?: string[] | undefined;
|
|
491
|
+
guidelines?: string[] | undefined;
|
|
492
|
+
}>>;
|
|
474
493
|
core_principles: z.ZodOptional<z.ZodObject<{
|
|
475
494
|
title: z.ZodOptional<z.ZodString>;
|
|
476
495
|
content: z.ZodOptional<z.ZodString>;
|
|
@@ -540,6 +559,13 @@ export declare const PromptsYamlSchema: z.ZodObject<{
|
|
|
540
559
|
guidelines?: string[] | undefined;
|
|
541
560
|
}>;
|
|
542
561
|
closing: string;
|
|
562
|
+
professional_objectivity?: {
|
|
563
|
+
title?: string | undefined;
|
|
564
|
+
content?: string | undefined;
|
|
565
|
+
rules?: string[] | undefined;
|
|
566
|
+
steps?: string[] | undefined;
|
|
567
|
+
guidelines?: string[] | undefined;
|
|
568
|
+
} | undefined;
|
|
543
569
|
core_principles?: {
|
|
544
570
|
title?: string | undefined;
|
|
545
571
|
content?: string | undefined;
|
|
@@ -563,6 +589,13 @@ export declare const PromptsYamlSchema: z.ZodObject<{
|
|
|
563
589
|
guidelines?: string[] | undefined;
|
|
564
590
|
}>;
|
|
565
591
|
closing: string;
|
|
592
|
+
professional_objectivity?: {
|
|
593
|
+
title?: string | undefined;
|
|
594
|
+
content?: string | undefined;
|
|
595
|
+
rules?: string[] | undefined;
|
|
596
|
+
steps?: string[] | undefined;
|
|
597
|
+
guidelines?: string[] | undefined;
|
|
598
|
+
} | undefined;
|
|
566
599
|
core_principles?: {
|
|
567
600
|
title?: string | undefined;
|
|
568
601
|
content?: string | undefined;
|
|
@@ -590,6 +623,13 @@ export declare const PromptsYamlSchema: z.ZodObject<{
|
|
|
590
623
|
guidelines?: string[] | undefined;
|
|
591
624
|
}>;
|
|
592
625
|
closing: string;
|
|
626
|
+
professional_objectivity?: {
|
|
627
|
+
title?: string | undefined;
|
|
628
|
+
content?: string | undefined;
|
|
629
|
+
rules?: string[] | undefined;
|
|
630
|
+
steps?: string[] | undefined;
|
|
631
|
+
guidelines?: string[] | undefined;
|
|
632
|
+
} | undefined;
|
|
593
633
|
core_principles?: {
|
|
594
634
|
title?: string | undefined;
|
|
595
635
|
content?: string | undefined;
|
|
@@ -617,6 +657,13 @@ export declare const PromptsYamlSchema: z.ZodObject<{
|
|
|
617
657
|
guidelines?: string[] | undefined;
|
|
618
658
|
}>;
|
|
619
659
|
closing: string;
|
|
660
|
+
professional_objectivity?: {
|
|
661
|
+
title?: string | undefined;
|
|
662
|
+
content?: string | undefined;
|
|
663
|
+
rules?: string[] | undefined;
|
|
664
|
+
steps?: string[] | undefined;
|
|
665
|
+
guidelines?: string[] | undefined;
|
|
666
|
+
} | undefined;
|
|
620
667
|
core_principles?: {
|
|
621
668
|
title?: string | undefined;
|
|
622
669
|
content?: string | undefined;
|
|
@@ -111,6 +111,7 @@ export const ToolDefinitionSchema = z.object({
|
|
|
111
111
|
export const PromptsYamlSchema = z.object({
|
|
112
112
|
system_prompt: z.object({
|
|
113
113
|
identity: z.string().min(1),
|
|
114
|
+
professional_objectivity: PromptSectionSchema.optional(),
|
|
114
115
|
core_principles: PromptSectionSchema.optional(),
|
|
115
116
|
tools_header: z.string().min(1),
|
|
116
117
|
tools: z.array(ToolDefinitionSchema),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yaml-schemas.js","sourceRoot":"","sources":["../../src/schemas/yaml-schemas.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,CAAC,CAAC,MAAM,EAA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,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;AACzD,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,MAAM,MAAM,GAAG,kBAAkB,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAClD,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QACnB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC;IAC9C,CAAC;IACD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;AACzD,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,IAAa;IAC/C,MAAM,MAAM,GAAG,iBAAiB,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACjD,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QACnB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC;IAC9C,CAAC;IACD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;AACzD,CAAC"}
|
|
@@ -15,6 +15,15 @@ export declare class TextEditorTool {
|
|
|
15
15
|
create(filePath: string, content: string): Promise<ToolResult>;
|
|
16
16
|
replaceLines(filePath: string, startLine: number, endLine: number, newContent: string): Promise<ToolResult>;
|
|
17
17
|
insert(filePath: string, insertLine: number, content: string): Promise<ToolResult>;
|
|
18
|
+
/**
|
|
19
|
+
* Make multiple edits to a file in a single atomic operation.
|
|
20
|
+
* All edits are validated and previewed before applying.
|
|
21
|
+
* If any edit fails validation, the entire operation is aborted.
|
|
22
|
+
*/
|
|
23
|
+
multiEdit(filePath: string, edits: Array<{
|
|
24
|
+
old_str: string;
|
|
25
|
+
new_str: string;
|
|
26
|
+
}>): Promise<ToolResult>;
|
|
18
27
|
undoEdit(): Promise<ToolResult>;
|
|
19
28
|
private findFuzzyMatch;
|
|
20
29
|
private normalizeForComparison;
|