@sean.holung/minicode 0.3.9 → 0.3.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 +9 -0
- package/dist/scripts/run-ts-bench-smoke.js +268 -0
- package/dist/scripts/ts-bench-adapter.js +251 -0
- package/dist/src/agent/config.js +2 -2
- package/dist/src/auto-allow.js +28 -0
- package/dist/src/benchmark/config.js +197 -0
- package/dist/src/benchmark/index.js +2 -0
- package/dist/src/benchmark/workspace-changes.js +125 -0
- package/dist/src/cli/args.js +13 -0
- package/dist/src/cli/benchmark-run.js +432 -0
- package/dist/src/cli/permissions-slash-command.js +50 -0
- package/dist/src/index.js +9 -2
- package/dist/src/indexer/plugin-loader.js +19 -1
- package/dist/src/indexer/project-index.js +35 -21
- package/dist/src/serve/agent-bridge.js +128 -1
- package/dist/src/serve/openai-compat.js +2 -2
- package/dist/src/serve/websocket.js +11 -0
- package/dist/src/tools/registry.js +10 -2
- package/dist/src/ui/app.js +8 -2
- package/dist/src/ui/cli-ink.js +13 -2
- package/dist/src/ui/components/permission-prompt.js +53 -0
- package/dist/src/ui/permission-gate.js +42 -0
- package/dist/src/ui/state/ui-store.js +13 -0
- package/dist/src/web/app.js +77 -5
- package/dist/src/web/index.html +58 -1
- package/dist/src/web/style.css +971 -1738
- package/dist/tests/agent.test.js +110 -0
- package/dist/tests/benchmark-config.test.js +80 -0
- package/dist/tests/benchmark-run.test.js +180 -0
- package/dist/tests/cli-args.test.js +22 -0
- package/dist/tests/cli-oneshot.integration.test.js +5 -0
- package/dist/tests/config.test.js +21 -0
- package/dist/tests/file-tools.test.js +36 -0
- package/dist/tests/harbor-adapter.test.js +57 -0
- package/dist/tests/indexer.test.js +1 -1
- package/dist/tests/permission-gate-cli.test.js +126 -0
- package/dist/tests/permission-gate.test.js +196 -0
- package/dist/tests/python-plugin.test.js +357 -0
- package/dist/tests/system-prompt.test.js +44 -9
- package/dist/tests/ts-bench-adapter.test.js +186 -0
- package/dist/tests/workspace-changes.test.js +82 -0
- package/node_modules/@minicode/agent-sdk/README.md +286 -90
- package/node_modules/@minicode/agent-sdk/dist/src/agent/agent.d.ts +40 -4
- package/node_modules/@minicode/agent-sdk/dist/src/agent/agent.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/agent/agent.js +134 -27
- package/node_modules/@minicode/agent-sdk/dist/src/agent/agent.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/agent/structured-output.d.ts +42 -0
- package/node_modules/@minicode/agent-sdk/dist/src/agent/structured-output.d.ts.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/src/agent/structured-output.js +97 -0
- package/node_modules/@minicode/agent-sdk/dist/src/agent/structured-output.js.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/src/agent/types.d.ts +97 -2
- package/node_modules/@minicode/agent-sdk/dist/src/agent/types.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/agent/types.js +15 -1
- package/node_modules/@minicode/agent-sdk/dist/src/agent/types.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/index.d.ts +10 -8
- package/node_modules/@minicode/agent-sdk/dist/src/index.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/index.js +10 -6
- package/node_modules/@minicode/agent-sdk/dist/src/index.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/indexer/types.d.ts +8 -3
- package/node_modules/@minicode/agent-sdk/dist/src/indexer/types.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/mcp/client-registry.d.ts +109 -0
- package/node_modules/@minicode/agent-sdk/dist/src/mcp/client-registry.d.ts.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/src/mcp/client-registry.js +237 -0
- package/node_modules/@minicode/agent-sdk/dist/src/mcp/client-registry.js.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/src/model/client.d.ts +5 -1
- package/node_modules/@minicode/agent-sdk/dist/src/model/client.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/model/client.js +100 -8
- package/node_modules/@minicode/agent-sdk/dist/src/model/client.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/prompt/system-prompt.d.ts +31 -1
- package/node_modules/@minicode/agent-sdk/dist/src/prompt/system-prompt.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/prompt/system-prompt.js +8 -7
- package/node_modules/@minicode/agent-sdk/dist/src/prompt/system-prompt.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/session/session.d.ts +8 -0
- package/node_modules/@minicode/agent-sdk/dist/src/session/session.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/session/session.js +2 -0
- package/node_modules/@minicode/agent-sdk/dist/src/session/session.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/tools/edit-file.d.ts +10 -3
- package/node_modules/@minicode/agent-sdk/dist/src/tools/edit-file.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/tools/edit-file.js +3 -3
- package/node_modules/@minicode/agent-sdk/dist/src/tools/edit-file.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/tools/list-files.d.ts +9 -2
- package/node_modules/@minicode/agent-sdk/dist/src/tools/list-files.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/tools/list-files.js +2 -2
- package/node_modules/@minicode/agent-sdk/dist/src/tools/list-files.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/tools/read-file.d.ts +12 -2
- package/node_modules/@minicode/agent-sdk/dist/src/tools/read-file.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/tools/read-file.js +3 -3
- package/node_modules/@minicode/agent-sdk/dist/src/tools/read-file.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/tools/run-command.d.ts +12 -2
- package/node_modules/@minicode/agent-sdk/dist/src/tools/run-command.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/tools/run-command.js +5 -5
- package/node_modules/@minicode/agent-sdk/dist/src/tools/run-command.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/tools/search.d.ts +10 -2
- package/node_modules/@minicode/agent-sdk/dist/src/tools/search.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/tools/search.js +5 -5
- package/node_modules/@minicode/agent-sdk/dist/src/tools/search.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/tools/write-file.d.ts +10 -3
- package/node_modules/@minicode/agent-sdk/dist/src/tools/write-file.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/tools/write-file.js +3 -3
- package/node_modules/@minicode/agent-sdk/dist/src/tools/write-file.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/tests/agent.test.js +342 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/agent.test.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/tests/mcp-client.integration.test.d.ts +2 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/mcp-client.integration.test.d.ts.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/mcp-client.integration.test.js +64 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/mcp-client.integration.test.js.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/mcp-client.test.d.ts +2 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/mcp-client.test.d.ts.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/mcp-client.test.js +350 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/mcp-client.test.js.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/model-client-anthropic-structured-output.test.d.ts +2 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/model-client-anthropic-structured-output.test.d.ts.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/model-client-anthropic-structured-output.test.js +211 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/model-client-anthropic-structured-output.test.js.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/model-client-openai.test.js +88 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/model-client-openai.test.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/tests/model-client-structured-output.test.d.ts +2 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/model-client-structured-output.test.d.ts.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/model-client-structured-output.test.js +171 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/model-client-structured-output.test.js.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/session.test.js +34 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/session.test.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/tests/structured-output.test.d.ts +2 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/structured-output.test.d.ts.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/structured-output.test.js +212 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/structured-output.test.js.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/system-prompt.test.js +7 -7
- package/node_modules/@minicode/agent-sdk/dist/tests/system-prompt.test.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/tests/tool-factory-options.test.d.ts +2 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/tool-factory-options.test.d.ts.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/tool-factory-options.test.js +72 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/tool-factory-options.test.js.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@minicode/agent-sdk/package.json +5 -2
- package/node_modules/minicode-plugin-python/dist/src/index.d.ts +9 -0
- package/node_modules/minicode-plugin-python/dist/src/index.d.ts.map +1 -0
- package/node_modules/minicode-plugin-python/dist/src/index.js +679 -0
- package/node_modules/minicode-plugin-python/dist/src/index.js.map +1 -0
- package/node_modules/minicode-plugin-python/dist/tsconfig.tsbuildinfo +1 -0
- package/node_modules/minicode-plugin-python/package.json +37 -0
- package/node_modules/node-addon-api/LICENSE.md +9 -0
- package/node_modules/node-addon-api/README.md +95 -0
- package/node_modules/node-addon-api/common.gypi +21 -0
- package/node_modules/node-addon-api/except.gypi +25 -0
- package/node_modules/node-addon-api/index.js +14 -0
- package/node_modules/node-addon-api/napi-inl.deprecated.h +186 -0
- package/node_modules/node-addon-api/napi-inl.h +7165 -0
- package/node_modules/node-addon-api/napi.h +3364 -0
- package/node_modules/node-addon-api/node_addon_api.gyp +42 -0
- package/node_modules/node-addon-api/node_api.gyp +9 -0
- package/node_modules/node-addon-api/noexcept.gypi +26 -0
- package/node_modules/node-addon-api/nothing.c +0 -0
- package/node_modules/node-addon-api/package-support.json +21 -0
- package/node_modules/node-addon-api/package.json +480 -0
- package/node_modules/node-addon-api/tools/README.md +73 -0
- package/node_modules/node-addon-api/tools/check-napi.js +99 -0
- package/node_modules/node-addon-api/tools/clang-format.js +71 -0
- package/node_modules/node-addon-api/tools/conversion.js +301 -0
- package/node_modules/node-gyp-build/LICENSE +21 -0
- package/node_modules/node-gyp-build/README.md +58 -0
- package/node_modules/node-gyp-build/SECURITY.md +5 -0
- package/node_modules/node-gyp-build/bin.js +84 -0
- package/node_modules/node-gyp-build/build-test.js +19 -0
- package/node_modules/node-gyp-build/index.js +6 -0
- package/node_modules/node-gyp-build/node-gyp-build.js +207 -0
- package/node_modules/node-gyp-build/optional.js +7 -0
- package/node_modules/node-gyp-build/package.json +43 -0
- package/node_modules/tree-sitter/LICENSE +21 -0
- package/node_modules/tree-sitter/README.md +128 -0
- package/node_modules/tree-sitter/binding.gyp +80 -0
- package/node_modules/tree-sitter/index.js +916 -0
- package/node_modules/tree-sitter/package.json +76 -0
- package/node_modules/tree-sitter/src/addon_data.h +47 -0
- package/node_modules/tree-sitter/src/binding.cc +35 -0
- package/node_modules/tree-sitter/src/conversions.cc +140 -0
- package/node_modules/tree-sitter/src/conversions.h +22 -0
- package/node_modules/tree-sitter/src/language.cc +106 -0
- package/node_modules/tree-sitter/src/language.h +17 -0
- package/node_modules/tree-sitter/src/logger.cc +70 -0
- package/node_modules/tree-sitter/src/logger.h +19 -0
- package/node_modules/tree-sitter/src/lookaheaditerator.cc +122 -0
- package/node_modules/tree-sitter/src/lookaheaditerator.h +33 -0
- package/node_modules/tree-sitter/src/node.cc +1088 -0
- package/node_modules/tree-sitter/src/node.h +30 -0
- package/node_modules/tree-sitter/src/parser.cc +306 -0
- package/node_modules/tree-sitter/src/parser.h +35 -0
- package/node_modules/tree-sitter/src/query.cc +397 -0
- package/node_modules/tree-sitter/src/query.h +40 -0
- package/node_modules/tree-sitter/src/tree.cc +316 -0
- package/node_modules/tree-sitter/src/tree.h +45 -0
- package/node_modules/tree-sitter/src/tree_cursor.cc +213 -0
- package/node_modules/tree-sitter/src/tree_cursor.h +52 -0
- package/node_modules/tree-sitter/tree-sitter.d.ts +1042 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/include/tree_sitter/api.h +1478 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/alloc.c +48 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/alloc.h +41 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/array.h +291 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/atomic.h +68 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/clock.h +146 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/error_costs.h +11 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/get_changed_ranges.c +523 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/get_changed_ranges.h +36 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/host.h +21 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/language.c +293 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/language.h +293 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/length.h +52 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lexer.c +483 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lexer.h +54 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lib.c +12 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/node.c +875 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/parser.c +2293 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/parser.h +286 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/point.h +48 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/portable/endian.h +239 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/query.c +4350 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/reduce_action.h +34 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/reusable_node.h +95 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/stack.c +911 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/stack.h +133 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/subtree.c +1034 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/subtree.h +399 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree.c +170 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree.h +31 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree_cursor.c +717 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree_cursor.h +48 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/ts_assert.h +11 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/ICU_SHA +1 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/LICENSE +414 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/README.md +29 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/ptypes.h +1 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/umachine.h +448 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/urename.h +1 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf.h +1 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf16.h +733 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf8.h +881 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode.h +75 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/stdlib-symbols.txt +24 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/stdlib.c +113 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/wasm-stdlib.h +1314 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm_store.c +1935 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm_store.h +31 -0
- package/node_modules/tree-sitter-python/LICENSE +21 -0
- package/node_modules/tree-sitter-python/README.md +24 -0
- package/node_modules/tree-sitter-python/binding.gyp +35 -0
- package/node_modules/tree-sitter-python/bindings/node/binding.cc +19 -0
- package/node_modules/tree-sitter-python/bindings/node/binding_test.js +9 -0
- package/node_modules/tree-sitter-python/bindings/node/index.d.ts +27 -0
- package/node_modules/tree-sitter-python/bindings/node/index.js +11 -0
- package/node_modules/tree-sitter-python/grammar.js +1225 -0
- package/node_modules/tree-sitter-python/package.json +60 -0
- package/node_modules/tree-sitter-python/prebuilds/darwin-arm64/tree-sitter-python.node +0 -0
- package/node_modules/tree-sitter-python/prebuilds/darwin-x64/tree-sitter-python.node +0 -0
- package/node_modules/tree-sitter-python/prebuilds/linux-arm64/tree-sitter-python.node +0 -0
- package/node_modules/tree-sitter-python/prebuilds/linux-x64/tree-sitter-python.node +0 -0
- package/node_modules/tree-sitter-python/prebuilds/win32-arm64/tree-sitter-python.node +0 -0
- package/node_modules/tree-sitter-python/prebuilds/win32-x64/tree-sitter-python.node +0 -0
- package/node_modules/tree-sitter-python/queries/highlights.scm +137 -0
- package/node_modules/tree-sitter-python/queries/tags.scm +14 -0
- package/node_modules/tree-sitter-python/src/grammar.json +6435 -0
- package/node_modules/tree-sitter-python/src/node-types.json +3746 -0
- package/node_modules/tree-sitter-python/src/parser.c +129742 -0
- package/node_modules/tree-sitter-python/src/scanner.c +437 -0
- package/node_modules/tree-sitter-python/src/tree_sitter/alloc.h +54 -0
- package/node_modules/tree-sitter-python/src/tree_sitter/array.h +291 -0
- package/node_modules/tree-sitter-python/src/tree_sitter/parser.h +286 -0
- package/node_modules/tree-sitter-python/tree-sitter-python.wasm +0 -0
- package/node_modules/tree-sitter-python/tree-sitter.json +42 -0
- package/package.json +13 -7
- package/packages/agent-sdk/node_modules/ajv/.runkit_example.js +23 -0
- package/packages/agent-sdk/node_modules/ajv/LICENSE +22 -0
- package/packages/agent-sdk/node_modules/ajv/README.md +207 -0
- package/packages/agent-sdk/node_modules/ajv/dist/2019.d.ts +19 -0
- package/packages/agent-sdk/node_modules/ajv/dist/2019.js +61 -0
- package/packages/agent-sdk/node_modules/ajv/dist/2019.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/2020.d.ts +19 -0
- package/packages/agent-sdk/node_modules/ajv/dist/2020.js +55 -0
- package/packages/agent-sdk/node_modules/ajv/dist/2020.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/ajv.d.ts +18 -0
- package/packages/agent-sdk/node_modules/ajv/dist/ajv.js +50 -0
- package/packages/agent-sdk/node_modules/ajv/dist/ajv.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/codegen/code.js +156 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/codegen/index.js +697 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/errors.d.ts +13 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/errors.js +123 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/errors.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/index.d.ts +80 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/index.js +242 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/index.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/jtd/serialize.js +236 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/jtd/types.js +14 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/names.d.ts +20 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/names.js +28 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/names.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/ref_error.js +12 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/resolve.js +155 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/resolve.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/rules.d.ts +28 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/rules.js +26 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/rules.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/util.d.ts +40 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/util.js +178 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/util.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/validate/index.js +520 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
- package/packages/agent-sdk/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/core.d.ts +174 -0
- package/packages/agent-sdk/node_modules/ajv/dist/core.js +618 -0
- package/packages/agent-sdk/node_modules/ajv/dist/core.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/jtd.d.ts +47 -0
- package/packages/agent-sdk/node_modules/ajv/dist/jtd.js +72 -0
- package/packages/agent-sdk/node_modules/ajv/dist/jtd.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/refs/data.json +13 -0
- package/packages/agent-sdk/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
- package/packages/agent-sdk/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
- package/packages/agent-sdk/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/packages/agent-sdk/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
- package/packages/agent-sdk/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
- package/packages/agent-sdk/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
- package/packages/agent-sdk/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/packages/agent-sdk/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/packages/agent-sdk/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
- package/packages/agent-sdk/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
- package/packages/agent-sdk/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
- package/packages/agent-sdk/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/packages/agent-sdk/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
- package/packages/agent-sdk/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
- package/packages/agent-sdk/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/packages/agent-sdk/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/packages/agent-sdk/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/packages/agent-sdk/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/packages/agent-sdk/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
- package/packages/agent-sdk/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
- package/packages/agent-sdk/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
- package/packages/agent-sdk/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
- package/packages/agent-sdk/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
- package/packages/agent-sdk/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
- package/packages/agent-sdk/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
- package/packages/agent-sdk/node_modules/ajv/dist/runtime/equal.js +7 -0
- package/packages/agent-sdk/node_modules/ajv/dist/runtime/equal.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
- package/packages/agent-sdk/node_modules/ajv/dist/runtime/parseJson.js +185 -0
- package/packages/agent-sdk/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
- package/packages/agent-sdk/node_modules/ajv/dist/runtime/quote.js +30 -0
- package/packages/agent-sdk/node_modules/ajv/dist/runtime/quote.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
- package/packages/agent-sdk/node_modules/ajv/dist/runtime/re2.js +6 -0
- package/packages/agent-sdk/node_modules/ajv/dist/runtime/re2.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
- package/packages/agent-sdk/node_modules/ajv/dist/runtime/timestamp.js +42 -0
- package/packages/agent-sdk/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
- package/packages/agent-sdk/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
- package/packages/agent-sdk/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
- package/packages/agent-sdk/node_modules/ajv/dist/runtime/uri.js +6 -0
- package/packages/agent-sdk/node_modules/ajv/dist/runtime/uri.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
- package/packages/agent-sdk/node_modules/ajv/dist/runtime/validation_error.js +11 -0
- package/packages/agent-sdk/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/standalone/index.d.ts +6 -0
- package/packages/agent-sdk/node_modules/ajv/dist/standalone/index.js +90 -0
- package/packages/agent-sdk/node_modules/ajv/dist/standalone/index.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
- package/packages/agent-sdk/node_modules/ajv/dist/standalone/instance.js +35 -0
- package/packages/agent-sdk/node_modules/ajv/dist/standalone/instance.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/types/index.d.ts +183 -0
- package/packages/agent-sdk/node_modules/ajv/dist/types/index.js +3 -0
- package/packages/agent-sdk/node_modules/ajv/dist/types/index.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/types/json-schema.d.ts +125 -0
- package/packages/agent-sdk/node_modules/ajv/dist/types/json-schema.js +3 -0
- package/packages/agent-sdk/node_modules/ajv/dist/types/json-schema.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/types/jtd-schema.d.ts +174 -0
- package/packages/agent-sdk/node_modules/ajv/dist/types/jtd-schema.js +3 -0
- package/packages/agent-sdk/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/code.js +131 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/errors.js +3 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/next.js +8 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
- package/packages/agent-sdk/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
- package/packages/agent-sdk/node_modules/ajv/lib/2019.ts +81 -0
- package/packages/agent-sdk/node_modules/ajv/lib/2020.ts +75 -0
- package/packages/agent-sdk/node_modules/ajv/lib/ajv.ts +70 -0
- package/packages/agent-sdk/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
- package/packages/agent-sdk/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
- package/packages/agent-sdk/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
- package/packages/agent-sdk/node_modules/ajv/lib/compile/errors.ts +184 -0
- package/packages/agent-sdk/node_modules/ajv/lib/compile/index.ts +324 -0
- package/packages/agent-sdk/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
- package/packages/agent-sdk/node_modules/ajv/lib/compile/jtd/serialize.ts +277 -0
- package/packages/agent-sdk/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
- package/packages/agent-sdk/node_modules/ajv/lib/compile/names.ts +27 -0
- package/packages/agent-sdk/node_modules/ajv/lib/compile/ref_error.ts +13 -0
- package/packages/agent-sdk/node_modules/ajv/lib/compile/resolve.ts +149 -0
- package/packages/agent-sdk/node_modules/ajv/lib/compile/rules.ts +50 -0
- package/packages/agent-sdk/node_modules/ajv/lib/compile/util.ts +213 -0
- package/packages/agent-sdk/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
- package/packages/agent-sdk/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
- package/packages/agent-sdk/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
- package/packages/agent-sdk/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
- package/packages/agent-sdk/node_modules/ajv/lib/compile/validate/index.ts +582 -0
- package/packages/agent-sdk/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
- package/packages/agent-sdk/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
- package/packages/agent-sdk/node_modules/ajv/lib/core.ts +892 -0
- package/packages/agent-sdk/node_modules/ajv/lib/jtd.ts +132 -0
- package/packages/agent-sdk/node_modules/ajv/lib/refs/data.json +13 -0
- package/packages/agent-sdk/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
- package/packages/agent-sdk/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/packages/agent-sdk/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
- package/packages/agent-sdk/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
- package/packages/agent-sdk/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
- package/packages/agent-sdk/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/packages/agent-sdk/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/packages/agent-sdk/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
- package/packages/agent-sdk/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
- package/packages/agent-sdk/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/packages/agent-sdk/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
- package/packages/agent-sdk/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
- package/packages/agent-sdk/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/packages/agent-sdk/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/packages/agent-sdk/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/packages/agent-sdk/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/packages/agent-sdk/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
- package/packages/agent-sdk/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
- package/packages/agent-sdk/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
- package/packages/agent-sdk/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
- package/packages/agent-sdk/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
- package/packages/agent-sdk/node_modules/ajv/lib/runtime/equal.ts +7 -0
- package/packages/agent-sdk/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
- package/packages/agent-sdk/node_modules/ajv/lib/runtime/quote.ts +31 -0
- package/packages/agent-sdk/node_modules/ajv/lib/runtime/re2.ts +6 -0
- package/packages/agent-sdk/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
- package/packages/agent-sdk/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
- package/packages/agent-sdk/node_modules/ajv/lib/runtime/uri.ts +6 -0
- package/packages/agent-sdk/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
- package/packages/agent-sdk/node_modules/ajv/lib/standalone/index.ts +100 -0
- package/packages/agent-sdk/node_modules/ajv/lib/standalone/instance.ts +36 -0
- package/packages/agent-sdk/node_modules/ajv/lib/types/index.ts +244 -0
- package/packages/agent-sdk/node_modules/ajv/lib/types/json-schema.ts +187 -0
- package/packages/agent-sdk/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/code.ts +168 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/next.ts +8 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/validation/pattern.ts +39 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
- package/packages/agent-sdk/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
- package/packages/agent-sdk/node_modules/ajv/package.json +126 -0
- package/packages/agent-sdk/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
- package/packages/agent-sdk/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
- package/packages/agent-sdk/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
- package/packages/agent-sdk/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
- package/packages/agent-sdk/node_modules/json-schema-traverse/LICENSE +21 -0
- package/packages/agent-sdk/node_modules/json-schema-traverse/README.md +95 -0
- package/packages/agent-sdk/node_modules/json-schema-traverse/index.d.ts +40 -0
- package/packages/agent-sdk/node_modules/json-schema-traverse/index.js +93 -0
- package/packages/agent-sdk/node_modules/json-schema-traverse/package.json +43 -0
- package/packages/agent-sdk/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
- package/packages/agent-sdk/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
- package/packages/agent-sdk/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import assert from "node:assert/strict";
|
|
2
|
+
import { execFileSync } from "node:child_process";
|
|
3
|
+
import { mkdtemp, mkdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
4
|
+
import os from "node:os";
|
|
5
|
+
import path from "node:path";
|
|
6
|
+
import { afterEach, test } from "node:test";
|
|
7
|
+
import { collectWorkspaceChanges, writeWorkspaceDiff, } from "../src/benchmark/workspace-changes.js";
|
|
8
|
+
const tempDirs = [];
|
|
9
|
+
afterEach(async () => {
|
|
10
|
+
await Promise.all(tempDirs.splice(0).map((dir) => rm(dir, { recursive: true, force: true })));
|
|
11
|
+
});
|
|
12
|
+
async function createGitWorkspace() {
|
|
13
|
+
const workspaceRoot = await mkdtemp(path.join(os.tmpdir(), "minicode-workspace-changes-"));
|
|
14
|
+
tempDirs.push(workspaceRoot);
|
|
15
|
+
execFileSync("git", ["init"], { cwd: workspaceRoot, stdio: "ignore" });
|
|
16
|
+
execFileSync("git", ["config", "user.name", "Codex"], { cwd: workspaceRoot, stdio: "ignore" });
|
|
17
|
+
execFileSync("git", ["config", "user.email", "codex@example.com"], { cwd: workspaceRoot, stdio: "ignore" });
|
|
18
|
+
await mkdir(path.join(workspaceRoot, "src"), { recursive: true });
|
|
19
|
+
await writeFile(path.join(workspaceRoot, "src", "app.ts"), "export const value = 1;\n", "utf8");
|
|
20
|
+
execFileSync("git", ["add", "."], { cwd: workspaceRoot, stdio: "ignore" });
|
|
21
|
+
execFileSync("git", ["commit", "-m", "init"], { cwd: workspaceRoot, stdio: "ignore" });
|
|
22
|
+
return workspaceRoot;
|
|
23
|
+
}
|
|
24
|
+
async function createNestedGitWorkspace() {
|
|
25
|
+
const repoRoot = await mkdtemp(path.join(os.tmpdir(), "minicode-workspace-changes-nested-"));
|
|
26
|
+
tempDirs.push(repoRoot);
|
|
27
|
+
execFileSync("git", ["init"], { cwd: repoRoot, stdio: "ignore" });
|
|
28
|
+
execFileSync("git", ["config", "user.name", "Codex"], { cwd: repoRoot, stdio: "ignore" });
|
|
29
|
+
execFileSync("git", ["config", "user.email", "codex@example.com"], { cwd: repoRoot, stdio: "ignore" });
|
|
30
|
+
const workspaceRoot = path.join(repoRoot, "packages", "app");
|
|
31
|
+
await mkdir(path.join(workspaceRoot, "src"), { recursive: true });
|
|
32
|
+
await mkdir(path.join(repoRoot, "packages", "other"), { recursive: true });
|
|
33
|
+
await writeFile(path.join(workspaceRoot, "src", "app.ts"), "export const value = 1;\n", "utf8");
|
|
34
|
+
await writeFile(path.join(repoRoot, "packages", "other", "sibling.ts"), "export const sibling = 1;\n", "utf8");
|
|
35
|
+
execFileSync("git", ["add", "."], { cwd: repoRoot, stdio: "ignore" });
|
|
36
|
+
execFileSync("git", ["commit", "-m", "init"], { cwd: repoRoot, stdio: "ignore" });
|
|
37
|
+
return { repoRoot, workspaceRoot };
|
|
38
|
+
}
|
|
39
|
+
test("collectWorkspaceChanges returns changed files for tracked and untracked edits", async () => {
|
|
40
|
+
const workspaceRoot = await createGitWorkspace();
|
|
41
|
+
await writeFile(path.join(workspaceRoot, "src", "app.ts"), "export const value = 2;\n", "utf8");
|
|
42
|
+
await writeFile(path.join(workspaceRoot, "README.md"), "# test\n", "utf8");
|
|
43
|
+
const changes = await collectWorkspaceChanges(workspaceRoot);
|
|
44
|
+
assert.equal(changes.isGitRepo, true);
|
|
45
|
+
assert.deepEqual(changes.changedFiles.sort(), ["README.md", "src/app.ts"]);
|
|
46
|
+
});
|
|
47
|
+
test("writeWorkspaceDiff writes a patch artifact for tracked and untracked changes", async () => {
|
|
48
|
+
const workspaceRoot = await createGitWorkspace();
|
|
49
|
+
await writeFile(path.join(workspaceRoot, "src", "app.ts"), "export const value = 2;\n", "utf8");
|
|
50
|
+
await writeFile(path.join(workspaceRoot, "README.md"), "# test\n", "utf8");
|
|
51
|
+
const diffPath = path.join(workspaceRoot, "artifacts", "result.patch");
|
|
52
|
+
const wrote = await writeWorkspaceDiff(workspaceRoot, diffPath);
|
|
53
|
+
const diff = await readFile(diffPath, "utf8");
|
|
54
|
+
assert.equal(wrote, true);
|
|
55
|
+
assert.match(diff, /diff --git a\/src\/app\.ts b\/src\/app\.ts/);
|
|
56
|
+
assert.match(diff, /diff --git a\/README\.md b\/README\.md/);
|
|
57
|
+
});
|
|
58
|
+
test("workspace change collection is scoped to the selected workspace subtree", async () => {
|
|
59
|
+
const { repoRoot, workspaceRoot } = await createNestedGitWorkspace();
|
|
60
|
+
await writeFile(path.join(workspaceRoot, "src", "app.ts"), "export const value = 2;\n", "utf8");
|
|
61
|
+
await writeFile(path.join(workspaceRoot, "README.md"), "# app\n", "utf8");
|
|
62
|
+
await writeFile(path.join(repoRoot, "packages", "other", "sibling.ts"), "export const sibling = 2;\n", "utf8");
|
|
63
|
+
await writeFile(path.join(repoRoot, "ROOT.md"), "# root\n", "utf8");
|
|
64
|
+
const changes = await collectWorkspaceChanges(workspaceRoot);
|
|
65
|
+
assert.equal(changes.isGitRepo, true);
|
|
66
|
+
assert.deepEqual(changes.changedFiles.sort(), ["README.md", "src/app.ts"]);
|
|
67
|
+
});
|
|
68
|
+
test("workspace diff only includes files inside the selected workspace subtree", async () => {
|
|
69
|
+
const { repoRoot, workspaceRoot } = await createNestedGitWorkspace();
|
|
70
|
+
await writeFile(path.join(workspaceRoot, "src", "app.ts"), "export const value = 2;\n", "utf8");
|
|
71
|
+
await writeFile(path.join(workspaceRoot, "README.md"), "# app\n", "utf8");
|
|
72
|
+
await writeFile(path.join(repoRoot, "packages", "other", "sibling.ts"), "export const sibling = 2;\n", "utf8");
|
|
73
|
+
await writeFile(path.join(repoRoot, "ROOT.md"), "# root\n", "utf8");
|
|
74
|
+
const diffPath = path.join(workspaceRoot, "artifacts", "scoped.patch");
|
|
75
|
+
const wrote = await writeWorkspaceDiff(workspaceRoot, diffPath);
|
|
76
|
+
const diff = await readFile(diffPath, "utf8");
|
|
77
|
+
assert.equal(wrote, true);
|
|
78
|
+
assert.match(diff, /diff --git a\/src\/app\.ts b\/src\/app\.ts/);
|
|
79
|
+
assert.match(diff, /diff --git a\/README\.md b\/README\.md/);
|
|
80
|
+
assert.doesNotMatch(diff, /sibling\.ts/);
|
|
81
|
+
assert.doesNotMatch(diff, /ROOT\.md/);
|
|
82
|
+
});
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
# @minicode/agent-sdk
|
|
2
|
-
|
|
3
|
-
Reusable agent runtime SDK extracted from minicode. Provides everything needed to build an AI coding agent: model clients, tool registry, session management, safety guardrails, and a turn-based agent loop.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
This package currently lives as a private workspace package inside the minicode repo:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
git clone https://github.com/sean1588/minicode.git
|
|
11
|
-
cd minicode
|
|
12
|
-
npm install
|
|
13
|
-
npm run build --workspace=packages/agent-sdk
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
> **Note:** `packages/agent-sdk/package.json` is currently marked `private`, so treat this README as documentation for the in-repo SDK surface rather than a published npm package.
|
|
17
|
-
>
|
|
18
|
-
> **Requires:** Node.js >= 22.0.0
|
|
1
|
+
# @minicode/agent-sdk
|
|
2
|
+
|
|
3
|
+
Reusable agent runtime SDK extracted from minicode. Provides everything needed to build an AI coding agent: model clients, tool registry, session management, safety guardrails, and a turn-based agent loop.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
This package currently lives as a private workspace package inside the minicode repo:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
git clone https://github.com/sean1588/minicode.git
|
|
11
|
+
cd minicode
|
|
12
|
+
npm install
|
|
13
|
+
npm run build --workspace=packages/agent-sdk
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
> **Note:** `packages/agent-sdk/package.json` is currently marked `private`, so treat this README as documentation for the in-repo SDK surface rather than a published npm package.
|
|
17
|
+
>
|
|
18
|
+
> **Requires:** Node.js >= 22.0.0
|
|
19
19
|
|
|
20
20
|
## Quick Start
|
|
21
21
|
|
|
@@ -30,26 +30,26 @@ import {
|
|
|
30
30
|
import type { AgentConfig } from "@minicode/agent-sdk";
|
|
31
31
|
|
|
32
32
|
// 1. Define your agent configuration
|
|
33
|
-
const config: AgentConfig = {
|
|
34
|
-
modelProvider: "anthropic",
|
|
35
|
-
model: "claude-sonnet-4-20250514",
|
|
36
|
-
maxSteps: 20,
|
|
37
|
-
maxTokens: 4096,
|
|
38
|
-
maxContextTokens: 32_000,
|
|
39
|
-
workspaceRoot: process.cwd(),
|
|
40
|
-
commandTimeoutMs: 30_000,
|
|
41
|
-
maxFileSizeBytes: 1_000_000,
|
|
42
|
-
commandDenylist: [/rm\s+-rf\s+\//],
|
|
43
|
-
confirmDestructive: true,
|
|
44
|
-
keepRecentMessages: 12,
|
|
45
|
-
loopDetectionWindow: 6,
|
|
46
|
-
maxToolOutputChars: 8_000,
|
|
47
|
-
openAiBaseUrl: "",
|
|
48
|
-
enableFileReadDedup: true,
|
|
49
|
-
enableAdaptiveKeepRecent: true,
|
|
50
|
-
enableToolOutputTruncation: true,
|
|
51
|
-
compactionThreshold: 0.8,
|
|
52
|
-
};
|
|
33
|
+
const config: AgentConfig = {
|
|
34
|
+
modelProvider: "anthropic",
|
|
35
|
+
model: "claude-sonnet-4-20250514",
|
|
36
|
+
maxSteps: 20,
|
|
37
|
+
maxTokens: 4096,
|
|
38
|
+
maxContextTokens: 32_000,
|
|
39
|
+
workspaceRoot: process.cwd(),
|
|
40
|
+
commandTimeoutMs: 30_000,
|
|
41
|
+
maxFileSizeBytes: 1_000_000,
|
|
42
|
+
commandDenylist: [/rm\s+-rf\s+\//],
|
|
43
|
+
confirmDestructive: true,
|
|
44
|
+
keepRecentMessages: 12,
|
|
45
|
+
loopDetectionWindow: 6,
|
|
46
|
+
maxToolOutputChars: 8_000,
|
|
47
|
+
openAiBaseUrl: "",
|
|
48
|
+
enableFileReadDedup: true,
|
|
49
|
+
enableAdaptiveKeepRecent: true,
|
|
50
|
+
enableToolOutputTruncation: true,
|
|
51
|
+
compactionThreshold: 0.8,
|
|
52
|
+
};
|
|
53
53
|
|
|
54
54
|
// 2. Create the model client, tool registry, and agent
|
|
55
55
|
const modelClient = new AnthropicModelClient(); // reads ANTHROPIC_API_KEY from env
|
|
@@ -149,19 +149,19 @@ const agent = new CodingAgent({
|
|
|
149
149
|
|
|
150
150
|
Register your own tools alongside or instead of the built-in ones:
|
|
151
151
|
|
|
152
|
-
```typescript
|
|
153
|
-
import {
|
|
154
|
-
ToolRegistry,
|
|
155
|
-
createReadFileTool,
|
|
156
|
-
createWriteFileTool,
|
|
157
|
-
createEditFileTool,
|
|
158
|
-
createSearchTool,
|
|
159
|
-
createListFilesTool,
|
|
160
|
-
createRunCommandTool,
|
|
161
|
-
} from "@minicode/agent-sdk";
|
|
162
|
-
import type { ToolDefinition } from "@minicode/agent-sdk";
|
|
163
|
-
|
|
164
|
-
const myTool: ToolDefinition = {
|
|
152
|
+
```typescript
|
|
153
|
+
import {
|
|
154
|
+
ToolRegistry,
|
|
155
|
+
createReadFileTool,
|
|
156
|
+
createWriteFileTool,
|
|
157
|
+
createEditFileTool,
|
|
158
|
+
createSearchTool,
|
|
159
|
+
createListFilesTool,
|
|
160
|
+
createRunCommandTool,
|
|
161
|
+
} from "@minicode/agent-sdk";
|
|
162
|
+
import type { ToolDefinition } from "@minicode/agent-sdk";
|
|
163
|
+
|
|
164
|
+
const myTool: ToolDefinition = {
|
|
165
165
|
name: "get_weather",
|
|
166
166
|
description: "Get the current weather for a city.",
|
|
167
167
|
inputSchema: {
|
|
@@ -178,47 +178,61 @@ const myTool: ToolDefinition = {
|
|
|
178
178
|
},
|
|
179
179
|
};
|
|
180
180
|
|
|
181
|
-
// Option A: Only custom tools
|
|
182
|
-
const registry = new ToolRegistry([myTool]);
|
|
183
|
-
|
|
184
|
-
// Option B: Built-in tools + custom tools
|
|
185
|
-
const combined = new ToolRegistry([
|
|
186
|
-
createReadFileTool(config),
|
|
187
|
-
createWriteFileTool(config),
|
|
188
|
-
createEditFileTool(config),
|
|
189
|
-
createSearchTool(config),
|
|
190
|
-
createListFilesTool(config),
|
|
191
|
-
createRunCommandTool(config),
|
|
192
|
-
myTool,
|
|
193
|
-
]);
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
In practice, the simplest pattern is usually to create the built-in registry and wrap or extend it in your own application code. The SDK does not currently expose a public "appendTool" helper.
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
181
|
+
// Option A: Only custom tools
|
|
182
|
+
const registry = new ToolRegistry([myTool]);
|
|
183
|
+
|
|
184
|
+
// Option B: Built-in tools + custom tools
|
|
185
|
+
const combined = new ToolRegistry([
|
|
186
|
+
createReadFileTool(config),
|
|
187
|
+
createWriteFileTool(config),
|
|
188
|
+
createEditFileTool(config),
|
|
189
|
+
createSearchTool(config),
|
|
190
|
+
createListFilesTool(config),
|
|
191
|
+
createRunCommandTool(config),
|
|
192
|
+
myTool,
|
|
193
|
+
]);
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
In practice, the simplest pattern is usually to create the built-in registry and wrap or extend it in your own application code. The SDK does not currently expose a public "appendTool" helper.
|
|
197
|
+
|
|
198
|
+
Each `createXTool` factory also accepts a narrow per-tool options interface
|
|
199
|
+
(`ReadFileToolOptions`, `WriteFileToolOptions`, `EditFileToolOptions`,
|
|
200
|
+
`ListFilesToolOptions`, `SearchToolOptions`, `RunCommandToolOptions`) so you
|
|
201
|
+
can wire individual tools without constructing a full `AgentConfig`.
|
|
202
|
+
`AgentConfig` satisfies all of them structurally, so passing the full config
|
|
203
|
+
keeps working.
|
|
204
|
+
|
|
205
|
+
```typescript
|
|
206
|
+
const readTool = createReadFileTool({
|
|
207
|
+
workspaceRoot: "/path/to/repo",
|
|
208
|
+
maxFileSizeBytes: 1_000_000,
|
|
209
|
+
});
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
## Tool Hooks (Indexer Integration)
|
|
213
|
+
|
|
214
|
+
When integrating with a project indexer, use `CoreToolHooks` to get notified after file writes/edits:
|
|
201
215
|
|
|
202
216
|
```typescript
|
|
203
217
|
import { ToolRegistry } from "@minicode/agent-sdk";
|
|
204
218
|
|
|
205
|
-
const toolRegistry = ToolRegistry.createDefault(config, {
|
|
206
|
-
afterWrite: (relativePath, content) => {
|
|
219
|
+
const toolRegistry = ToolRegistry.createDefault(config, {
|
|
220
|
+
afterWrite: async (relativePath, content) => {
|
|
207
221
|
// Re-index the file after it's written
|
|
208
|
-
projectIndex.reindexFile(relativePath, content);
|
|
222
|
+
await projectIndex.reindexFile(relativePath, content);
|
|
209
223
|
},
|
|
210
|
-
afterEdit: (relativePath, content) => {
|
|
224
|
+
afterEdit: async (relativePath, content) => {
|
|
211
225
|
// Re-index the file after it's edited
|
|
212
|
-
projectIndex.reindexFile(relativePath, content);
|
|
226
|
+
await projectIndex.reindexFile(relativePath, content);
|
|
213
227
|
},
|
|
214
|
-
});
|
|
215
|
-
```
|
|
216
|
-
|
|
217
|
-
## Indexer boundary
|
|
218
|
-
|
|
219
|
-
The SDK exports indexer and plugin _types_ such as `LanguagePlugin`, `IndexedSymbol`, and `DependencyEdge`, but it does not currently ship the full project indexer implementation that the minicode CLI uses for its TypeScript/JavaScript graph tools. In the current repo layout, the richer indexer lives in the top-level `src/indexer/` directory.
|
|
220
|
-
|
|
221
|
-
## Safety Guardrails
|
|
228
|
+
});
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
## Indexer boundary
|
|
232
|
+
|
|
233
|
+
The SDK exports indexer and plugin _types_ such as `LanguagePlugin`, `IndexedSymbol`, and `DependencyEdge`, but it does not currently ship the full project indexer implementation that the minicode CLI uses for its TypeScript/JavaScript graph tools. In the current repo layout, the richer indexer lives in the top-level `src/indexer/` directory.
|
|
234
|
+
|
|
235
|
+
## Safety Guardrails
|
|
222
236
|
|
|
223
237
|
The SDK includes built-in safety features:
|
|
224
238
|
|
|
@@ -256,14 +270,45 @@ Generate a system prompt tailored to the workspace and available tools:
|
|
|
256
270
|
```typescript
|
|
257
271
|
import { buildSystemPrompt } from "@minicode/agent-sdk";
|
|
258
272
|
|
|
259
|
-
const
|
|
260
|
-
const systemPrompt = buildSystemPrompt(config,
|
|
273
|
+
const tools = toolRegistry.getToolSchemas();
|
|
274
|
+
const systemPrompt = buildSystemPrompt({ config, tools });
|
|
261
275
|
|
|
262
276
|
// Optionally include a code map for symbol-aware navigation
|
|
263
|
-
const systemPromptWithCodeMap = buildSystemPrompt(
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
277
|
+
const systemPromptWithCodeMap = buildSystemPrompt({
|
|
278
|
+
config,
|
|
279
|
+
tools,
|
|
280
|
+
codeMap: {
|
|
281
|
+
text: "src/index.ts: main(), startServer()\nsrc/db.ts: connect(), query()",
|
|
282
|
+
totalCount: 50,
|
|
283
|
+
shownCount: 2,
|
|
284
|
+
},
|
|
285
|
+
});
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
### Overriding the system prompt
|
|
289
|
+
|
|
290
|
+
`CodingAgent` accepts an optional `buildSystemPrompt` builder. Return a string
|
|
291
|
+
(or `Promise<string>`) to fully replace the default prompt — handy for review
|
|
292
|
+
bots, RAG assistants, or other non-coding use cases. Import the default
|
|
293
|
+
builder and call it from your override to extend rather than replace it.
|
|
294
|
+
|
|
295
|
+
```typescript
|
|
296
|
+
import {
|
|
297
|
+
buildSystemPrompt,
|
|
298
|
+
CodingAgent,
|
|
299
|
+
type SystemPromptBuilder,
|
|
300
|
+
} from "@minicode/agent-sdk";
|
|
301
|
+
|
|
302
|
+
const myBuilder: SystemPromptBuilder = async ({ config, tools, codeMap }) => {
|
|
303
|
+
const base = buildSystemPrompt({ config, tools, codeMap });
|
|
304
|
+
return `${base}\n\nAdditional house rules: be terse.`;
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
const agent = new CodingAgent({
|
|
308
|
+
config,
|
|
309
|
+
modelClient,
|
|
310
|
+
toolRegistry,
|
|
311
|
+
buildSystemPrompt: myBuilder,
|
|
267
312
|
});
|
|
268
313
|
```
|
|
269
314
|
|
|
@@ -303,6 +348,157 @@ const systemPromptWithCodeMap = buildSystemPrompt(config, toolSchemas, {
|
|
|
303
348
|
| `list_files` | List files and directories with pagination |
|
|
304
349
|
| `run_command` | Execute shell commands with timeout and safety checks |
|
|
305
350
|
|
|
351
|
+
## External MCP Servers
|
|
352
|
+
|
|
353
|
+
Connect to one or more MCP (Model Context Protocol) servers and pull
|
|
354
|
+
their tools into the agent's `ToolRegistry` alongside the built-in
|
|
355
|
+
ones. The SDK ships the entire MCP client stack — no extra dependency
|
|
356
|
+
is required — and supports the three common transports: `stdio`
|
|
357
|
+
(subprocess), `http` (Streamable-HTTP), and `sse` (legacy SSE).
|
|
358
|
+
|
|
359
|
+
```typescript
|
|
360
|
+
import {
|
|
361
|
+
CodingAgent,
|
|
362
|
+
ToolRegistry,
|
|
363
|
+
createMcpTools,
|
|
364
|
+
createReadFileTool,
|
|
365
|
+
} from "@minicode/agent-sdk";
|
|
366
|
+
|
|
367
|
+
const mcp = await createMcpTools({
|
|
368
|
+
servers: [
|
|
369
|
+
{
|
|
370
|
+
name: "github",
|
|
371
|
+
transport: "stdio",
|
|
372
|
+
command: "npx",
|
|
373
|
+
args: ["-y", "@modelcontextprotocol/server-github"],
|
|
374
|
+
env: { GITHUB_PERSONAL_ACCESS_TOKEN: process.env.GH_TOKEN! },
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
name: "fs",
|
|
378
|
+
transport: "stdio",
|
|
379
|
+
command: "npx",
|
|
380
|
+
args: ["-y", "@modelcontextprotocol/server-filesystem", "/path"],
|
|
381
|
+
},
|
|
382
|
+
],
|
|
383
|
+
});
|
|
384
|
+
|
|
385
|
+
const registry = new ToolRegistry([
|
|
386
|
+
createReadFileTool({ workspaceRoot, maxFileSizeBytes: 1_000_000 }),
|
|
387
|
+
...mcp.tools,
|
|
388
|
+
]);
|
|
389
|
+
|
|
390
|
+
const agent = new CodingAgent({ config, modelClient, toolRegistry: registry });
|
|
391
|
+
|
|
392
|
+
// On shutdown:
|
|
393
|
+
await mcp.close();
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
### Behavior notes
|
|
397
|
+
|
|
398
|
+
- **Namespacing.** Tool names are prefixed with `<server>__` by default
|
|
399
|
+
(e.g. `github__create_issue`) so two servers can both expose
|
|
400
|
+
`read_file` without collisions. Pass `{ namespace: false }` to opt out
|
|
401
|
+
when you control the server set.
|
|
402
|
+
- **Name sanitization.** Anthropic and OpenAI-compatible providers
|
|
403
|
+
restrict tool names to `[a-zA-Z0-9_-]{1,64}`. Server and tool names
|
|
404
|
+
outside that pattern (e.g. `github mcp`, `repo.create_issue`) get
|
|
405
|
+
invalid characters replaced with `_` and the result truncated to 64
|
|
406
|
+
chars before exposure. The original MCP tool name is preserved for
|
|
407
|
+
`callTool` dispatch — sanitization only changes what the model sees.
|
|
408
|
+
- **Failure isolation.** A server that fails to start or list its tools
|
|
409
|
+
is skipped with a warning; other servers keep working. Pass `onError`
|
|
410
|
+
to override the default `console.warn`.
|
|
411
|
+
- **Permission gate.** MCP tools flow through the existing
|
|
412
|
+
`beforeToolCall` hook unchanged — hosts can gate them by tool name
|
|
413
|
+
the same way they gate built-in tools.
|
|
414
|
+
- **Result formatting.** Text content blocks are concatenated into
|
|
415
|
+
the tool's string output. Image, audio, and binary resource blocks
|
|
416
|
+
are replaced with bracketed placeholders for now.
|
|
417
|
+
- **Lifecycle.** Connections open at `createMcpTools()` time and stay
|
|
418
|
+
open until `bundle.close()`. There is no auto-reconnect in v1; if a
|
|
419
|
+
server crashes mid-session, the next call returns an error and the
|
|
420
|
+
model can react.
|
|
421
|
+
|
|
422
|
+
For advanced use cases (custom transport, in-process server, BYO
|
|
423
|
+
`Client`), use the `wrapMcpClients(servers, options)` lower-level
|
|
424
|
+
entry point instead — it takes pre-connected clients and produces the
|
|
425
|
+
same `McpToolBundle`.
|
|
426
|
+
|
|
427
|
+
## Structured Output
|
|
428
|
+
|
|
429
|
+
Ask a turn to return validated, schema-conformant JSON instead of free-form
|
|
430
|
+
text. Useful for extraction, classification, and any "agent that thinks via
|
|
431
|
+
tools, then commits to a structured answer" workflow.
|
|
432
|
+
|
|
433
|
+
Under the hood: when you pass an `outputSchema`, the SDK appends a synthetic
|
|
434
|
+
tool with that input shape to the model's tool list. The model decides to
|
|
435
|
+
"call" it the same way it'd call any other tool; the SDK intercepts the call,
|
|
436
|
+
validates the arguments against your schema, and returns them as
|
|
437
|
+
`result.output`. Real tools and the synthetic tool coexist — the model can
|
|
438
|
+
gather data via real tool calls and then deliver the structured answer.
|
|
439
|
+
|
|
440
|
+
```typescript
|
|
441
|
+
import {
|
|
442
|
+
CodingAgent,
|
|
443
|
+
ToolRegistry,
|
|
444
|
+
createMcpTools,
|
|
445
|
+
type OutputSchema,
|
|
446
|
+
} from "@minicode/agent-sdk";
|
|
447
|
+
|
|
448
|
+
const InvoiceSchema: OutputSchema = {
|
|
449
|
+
name: "Invoice",
|
|
450
|
+
description: "Call this with the extracted invoice once you've finished reading the file.",
|
|
451
|
+
schema: {
|
|
452
|
+
type: "object",
|
|
453
|
+
properties: {
|
|
454
|
+
vendor: { type: "string" },
|
|
455
|
+
total: { type: "number" },
|
|
456
|
+
items: {
|
|
457
|
+
type: "array",
|
|
458
|
+
items: {
|
|
459
|
+
type: "object",
|
|
460
|
+
properties: {
|
|
461
|
+
description: { type: "string" },
|
|
462
|
+
quantity: { type: "number" },
|
|
463
|
+
price: { type: "number" },
|
|
464
|
+
},
|
|
465
|
+
required: ["description", "quantity", "price"],
|
|
466
|
+
},
|
|
467
|
+
},
|
|
468
|
+
},
|
|
469
|
+
required: ["vendor", "total", "items"],
|
|
470
|
+
},
|
|
471
|
+
};
|
|
472
|
+
|
|
473
|
+
const result = await agent.runTurn(invoiceText, {
|
|
474
|
+
outputSchema: InvoiceSchema,
|
|
475
|
+
});
|
|
476
|
+
|
|
477
|
+
// result.output is { vendor: "...", total: 1234, items: [...] }, validated.
|
|
478
|
+
// result.text is the free-form text the model produced (often empty when the
|
|
479
|
+
// model "spoke" entirely via the synthetic tool call).
|
|
480
|
+
```
|
|
481
|
+
|
|
482
|
+
### Behavior notes
|
|
483
|
+
|
|
484
|
+
- **Schema mismatch throws.** When the model produces arguments that don't
|
|
485
|
+
match `outputSchema.schema`, the call rejects with `OutputValidationError`
|
|
486
|
+
carrying the raw value and ajv's error path list. Catch and retry, or
|
|
487
|
+
surface diagnostics — silent fallback isn't supported by design.
|
|
488
|
+
- **Loop termination.** A turn with `outputSchema` exits as soon as the
|
|
489
|
+
model calls the synthetic tool. If real-tool calls and the synthetic call
|
|
490
|
+
arrive in the same step, the structured answer wins and side-effect calls
|
|
491
|
+
in that step are ignored.
|
|
492
|
+
- **No output → `result.output === undefined`.** If the model returns plain
|
|
493
|
+
text and never calls the synthetic tool, you get the same shape as a
|
|
494
|
+
normal `runTurn` — `result.text` carries the answer. This is rare in
|
|
495
|
+
practice but worth catching defensively.
|
|
496
|
+
- **Tool-name collisions.** `outputSchema.name` must not match any tool
|
|
497
|
+
registered with the agent's `ToolRegistry`; the model client throws at
|
|
498
|
+
call time if it does.
|
|
499
|
+
- **Provider-agnostic.** The same code works against Anthropic and any
|
|
500
|
+
OpenAI-compatible backend. No provider-specific switches.
|
|
501
|
+
|
|
306
502
|
## Development
|
|
307
503
|
|
|
308
504
|
```bash
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { type SystemPromptBuilder } from "../prompt/system-prompt.js";
|
|
1
2
|
import type { CodeMapResult } from "../indexer/types.js";
|
|
2
3
|
import { Session } from "../session/session.js";
|
|
3
4
|
import type { CompactionResult } from "../session/session.js";
|
|
4
5
|
import { ToolRegistry } from "../tools/registry.js";
|
|
5
|
-
import type { AgentConfig, ModelClient } from "./types.js";
|
|
6
|
+
import type { AgentConfig, BeforeToolCallHook, ModelClient, OutputSchema } from "./types.js";
|
|
6
7
|
export type UiUpdateThinking = {
|
|
7
8
|
type: "thinking";
|
|
8
9
|
content: string;
|
|
@@ -44,6 +45,8 @@ export declare class CodingAgent {
|
|
|
44
45
|
private readonly onUiUpdate;
|
|
45
46
|
private readonly onVerbose;
|
|
46
47
|
private readonly getSystemPromptSuffix;
|
|
48
|
+
private readonly buildSystemPrompt;
|
|
49
|
+
private readonly beforeToolCall;
|
|
47
50
|
/**
|
|
48
51
|
* Tracks symbol names the user/agent has been working with.
|
|
49
52
|
* Persists across turns so the code map stays focused on the
|
|
@@ -69,6 +72,26 @@ export declare class CodingAgent {
|
|
|
69
72
|
onUiUpdate?: (event: UiUpdate) => void;
|
|
70
73
|
onVerbose?: (message: string) => void;
|
|
71
74
|
getSystemPromptSuffix?: () => string | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Replace the default system-prompt builder. Receives the agent's
|
|
77
|
+
* config, the active tools, and the current code-map snippet (when
|
|
78
|
+
* available). Return a string or a Promise<string>. When omitted,
|
|
79
|
+
* minicode's default coding-agent prompt is used.
|
|
80
|
+
*
|
|
81
|
+
* Use this to point the agent at a different domain (review bot,
|
|
82
|
+
* RAG assistant, non-coding use case) without rewriting the rest
|
|
83
|
+
* of the SDK. Import `buildSystemPrompt` from `@minicode/agent-sdk`
|
|
84
|
+
* and call it from your builder to extend the default rather than
|
|
85
|
+
* replace it.
|
|
86
|
+
*/
|
|
87
|
+
buildSystemPrompt?: SystemPromptBuilder;
|
|
88
|
+
/**
|
|
89
|
+
* Called before each tool call. Return `{outcome: "deny", reason}` to
|
|
90
|
+
* skip execution; the reason is fed back to the model as the tool's
|
|
91
|
+
* result. Hosts use this to implement permission prompts (web UI
|
|
92
|
+
* modal, CLI confirmation, etc.).
|
|
93
|
+
*/
|
|
94
|
+
beforeToolCall?: BeforeToolCallHook;
|
|
72
95
|
});
|
|
73
96
|
private verboseLog;
|
|
74
97
|
getSession(): Session;
|
|
@@ -79,9 +102,12 @@ export declare class CodingAgent {
|
|
|
79
102
|
};
|
|
80
103
|
setReasoningEffort(effort: AgentConfig["reasoningEffort"]): void;
|
|
81
104
|
/**
|
|
82
|
-
* Manually compact the conversation context.
|
|
83
|
-
*
|
|
84
|
-
*
|
|
105
|
+
* Manually compact the conversation context. Uses LLM-based
|
|
106
|
+
* summarization with `config.compactionModel` if set, otherwise the
|
|
107
|
+
* agent's primary model (`config.model`). Mechanical compaction is
|
|
108
|
+
* the internal fallback inside `compactWithLlm` when the LLM call
|
|
109
|
+
* fails — the result's `method` field tells you which strategy
|
|
110
|
+
* actually ran.
|
|
85
111
|
*/
|
|
86
112
|
compactContext(): Promise<CompactionResult | null>;
|
|
87
113
|
private getFocusSet;
|
|
@@ -92,13 +118,23 @@ export declare class CodingAgent {
|
|
|
92
118
|
* path and hasn't been replaced with a summary stub.
|
|
93
119
|
*/
|
|
94
120
|
private isFileReadStillInContext;
|
|
121
|
+
/**
|
|
122
|
+
* Run a tool call, gated through `beforeToolCall` if a hook was provided.
|
|
123
|
+
* A `deny` decision short-circuits execution and feeds the hook's reason
|
|
124
|
+
* back to the model as the tool's result, so the model sees the rejection
|
|
125
|
+
* in-band and can choose how to respond.
|
|
126
|
+
*/
|
|
127
|
+
private executeToolCall;
|
|
95
128
|
runTurn(userMessage: string, options?: {
|
|
96
129
|
signal?: AbortSignal;
|
|
130
|
+
outputSchema?: OutputSchema;
|
|
97
131
|
}): Promise<{
|
|
98
132
|
text: string;
|
|
133
|
+
output?: unknown;
|
|
99
134
|
usage?: {
|
|
100
135
|
inputTokens: number;
|
|
101
136
|
outputTokens: number;
|
|
137
|
+
cachedInputTokens?: number;
|
|
102
138
|
};
|
|
103
139
|
streamed?: boolean;
|
|
104
140
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../src/agent/agent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../src/agent/agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,OAAO,KAAK,EACV,WAAW,EACX,kBAAkB,EAClB,WAAW,EACX,YAAY,EAEb,MAAM,YAAY,CAAC;AA8HpB,MAAM,MAAM,gBAAgB,GAAG;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AACrE,MAAM,MAAM,sBAAsB,GAAG;IAAE,IAAI,EAAE,iBAAiB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAClF,MAAM,MAAM,YAAY,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAC1D,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,iBAAiB,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,eAAe,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,gBAAgB,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AACF,MAAM,MAAM,QAAQ,GAChB,gBAAgB,GAChB,sBAAsB,GACtB,YAAY,GACZ,qBAAqB,GACrB,mBAAmB,GACnB,qBAAqB,CAAC;AA+B1B,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAU;IAClC,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAc;IAC1C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA0E;IACrG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAU;IAClC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA0C;IACrE,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA0C;IACrE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA0C;IACpE,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAyC;IAC/E,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAsB;IACxD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAiC;IAEhE;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAsB;IAEnD;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAkC;IAEhE,kEAAkE;IAClE,OAAO,CAAC,kBAAkB,CAAqB;gBAEnC,MAAM,EAAE;QAClB,MAAM,EAAE,WAAW,CAAC;QACpB,WAAW,EAAE,WAAW,CAAC;QACzB,YAAY,EAAE,YAAY,CAAC;QAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,UAAU,CAAC,EAAE,CAAC,YAAY,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,aAAa,GAAG,SAAS,CAAC;QACvE,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;QACvC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAC;QACvC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;QACtC,qBAAqB,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;QACjD;;;;;;;;;;;WAWG;QACH,iBAAiB,CAAC,EAAE,mBAAmB,CAAC;QACxC;;;;;WAKG;QACH,cAAc,CAAC,EAAE,kBAAkB,CAAC;KACrC;IAeD,OAAO,CAAC,UAAU;IASlB,UAAU,IAAI,OAAO;IAIrB,kBAAkB,IAAI,WAAW,CAAC,iBAAiB,CAAC;IAIpD,gBAAgB,IAAI;QAAE,aAAa,EAAE,MAAM,CAAC;QAAC,gBAAgB,EAAE,MAAM,CAAA;KAAE;IAOvE,kBAAkB,CAAC,MAAM,EAAE,WAAW,CAAC,iBAAiB,CAAC,GAAG,IAAI;IAMhE;;;;;;;OAOG;IACG,cAAc,IAAI,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAMxD,OAAO,CAAC,WAAW;IAKnB;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;IAehC;;;;;OAKG;YACW,eAAe;IAavB,OAAO,CACX,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,WAAW,CAAC;QAAC,YAAY,CAAC,EAAE,YAAY,CAAA;KAAE,GAC9D,OAAO,CAAC;QACT,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,KAAK,CAAC,EAAE;YACN,WAAW,EAAE,MAAM,CAAC;YACpB,YAAY,EAAE,MAAM,CAAC;YACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;SAC5B,CAAC;QACF,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,CAAC;CA6WH"}
|