@nirvana-labs/nirvana-mcp 1.17.0
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/LICENSE +201 -0
- package/README.md +462 -0
- package/code-tool-paths.cjs +6 -0
- package/code-tool-paths.cjs.map +1 -0
- package/code-tool-paths.d.cts +2 -0
- package/code-tool-paths.d.cts.map +1 -0
- package/code-tool-types.d.mts +14 -0
- package/code-tool-types.d.mts.map +1 -0
- package/code-tool-types.d.ts +14 -0
- package/code-tool-types.d.ts.map +1 -0
- package/code-tool-types.js +4 -0
- package/code-tool-types.js.map +1 -0
- package/code-tool-types.mjs +3 -0
- package/code-tool-types.mjs.map +1 -0
- package/code-tool-worker.d.mts +5 -0
- package/code-tool-worker.d.mts.map +1 -0
- package/code-tool-worker.d.ts +5 -0
- package/code-tool-worker.d.ts.map +1 -0
- package/code-tool-worker.js +45 -0
- package/code-tool-worker.js.map +1 -0
- package/code-tool-worker.mjs +40 -0
- package/code-tool-worker.mjs.map +1 -0
- package/code-tool.d.mts +12 -0
- package/code-tool.d.mts.map +1 -0
- package/code-tool.d.ts +12 -0
- package/code-tool.d.ts.map +1 -0
- package/code-tool.js +157 -0
- package/code-tool.js.map +1 -0
- package/code-tool.mjs +121 -0
- package/code-tool.mjs.map +1 -0
- package/compat.d.mts +58 -0
- package/compat.d.mts.map +1 -0
- package/compat.d.ts +58 -0
- package/compat.d.ts.map +1 -0
- package/compat.js +387 -0
- package/compat.js.map +1 -0
- package/compat.mjs +378 -0
- package/compat.mjs.map +1 -0
- package/dynamic-tools.d.mts +12 -0
- package/dynamic-tools.d.mts.map +1 -0
- package/dynamic-tools.d.ts +12 -0
- package/dynamic-tools.d.ts.map +1 -0
- package/dynamic-tools.js +135 -0
- package/dynamic-tools.js.map +1 -0
- package/dynamic-tools.mjs +132 -0
- package/dynamic-tools.mjs.map +1 -0
- package/filtering.d.mts +2 -0
- package/filtering.d.mts.map +1 -0
- package/filtering.d.ts +2 -0
- package/filtering.d.ts.map +1 -0
- package/filtering.js +20 -0
- package/filtering.js.map +1 -0
- package/filtering.mjs +13 -0
- package/filtering.mjs.map +1 -0
- package/headers.d.mts +4 -0
- package/headers.d.mts.map +1 -0
- package/headers.d.ts +4 -0
- package/headers.d.ts.map +1 -0
- package/headers.js +22 -0
- package/headers.js.map +1 -0
- package/headers.mjs +18 -0
- package/headers.mjs.map +1 -0
- package/http.d.mts +9 -0
- package/http.d.mts.map +1 -0
- package/http.d.ts +9 -0
- package/http.d.ts.map +1 -0
- package/http.js +108 -0
- package/http.js.map +1 -0
- package/http.mjs +100 -0
- package/http.mjs.map +1 -0
- package/index.d.mts +3 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -0
- package/index.js +91 -0
- package/index.js.map +1 -0
- package/index.mjs +89 -0
- package/index.mjs.map +1 -0
- package/options.d.mts +19 -0
- package/options.d.mts.map +1 -0
- package/options.d.ts +19 -0
- package/options.d.ts.map +1 -0
- package/options.js +417 -0
- package/options.js.map +1 -0
- package/options.mjs +410 -0
- package/options.mjs.map +1 -0
- package/package.json +206 -0
- package/server.d.mts +35 -0
- package/server.d.mts.map +1 -0
- package/server.d.ts +35 -0
- package/server.d.ts.map +1 -0
- package/server.js +170 -0
- package/server.js.map +1 -0
- package/server.mjs +156 -0
- package/server.mjs.map +1 -0
- package/src/code-tool-paths.cts +3 -0
- package/src/code-tool-types.ts +14 -0
- package/src/code-tool-worker.ts +46 -0
- package/src/code-tool.ts +146 -0
- package/src/compat.ts +483 -0
- package/src/dynamic-tools.ts +159 -0
- package/src/filtering.ts +14 -0
- package/src/headers.ts +23 -0
- package/src/http.ts +127 -0
- package/src/index.ts +108 -0
- package/src/options.ts +456 -0
- package/src/server.ts +204 -0
- package/src/stdio.ts +13 -0
- package/src/tools/api-keys/create-api-keys.ts +56 -0
- package/src/tools/api-keys/delete-api-keys.ts +40 -0
- package/src/tools/api-keys/get-api-keys.ts +47 -0
- package/src/tools/api-keys/list-api-keys.ts +44 -0
- package/src/tools/api-keys/update-api-keys.ts +49 -0
- package/src/tools/compute/vms/availability/create-vms-compute-availability.ts +161 -0
- package/src/tools/compute/vms/availability/update-vms-compute-availability.ts +85 -0
- package/src/tools/compute/vms/create-compute-vms.ts +159 -0
- package/src/tools/compute/vms/delete-compute-vms.ts +47 -0
- package/src/tools/compute/vms/get-compute-vms.ts +47 -0
- package/src/tools/compute/vms/list-compute-vms.ts +44 -0
- package/src/tools/compute/vms/os-images/list-vms-compute-os-images.ts +44 -0
- package/src/tools/compute/vms/restart-compute-vms.ts +45 -0
- package/src/tools/compute/vms/update-compute-vms.ts +83 -0
- package/src/tools/compute/vms/volumes/list-vms-compute-volumes.ts +47 -0
- package/src/tools/compute/volumes/availability/create-volumes-compute-availability.ts +56 -0
- package/src/tools/compute/volumes/availability/update-volumes-compute-availability.ts +55 -0
- package/src/tools/compute/volumes/create-compute-volumes.ts +54 -0
- package/src/tools/compute/volumes/delete-compute-volumes.ts +47 -0
- package/src/tools/compute/volumes/get-compute-volumes.ts +47 -0
- package/src/tools/compute/volumes/list-compute-volumes.ts +44 -0
- package/src/tools/compute/volumes/update-compute-volumes.ts +55 -0
- package/src/tools/connect/flux/get-connect-flux.ts +47 -0
- package/src/tools/connect/flux/list-connect-flux.ts +44 -0
- package/src/tools/index.ts +257 -0
- package/src/tools/networking/firewall-rules/create-networking-firewall-rules.ts +71 -0
- package/src/tools/networking/firewall-rules/delete-networking-firewall-rules.ts +52 -0
- package/src/tools/networking/firewall-rules/get-networking-firewall-rules.ts +52 -0
- package/src/tools/networking/firewall-rules/list-networking-firewall-rules.ts +49 -0
- package/src/tools/networking/firewall-rules/update-networking-firewall-rules.ts +74 -0
- package/src/tools/networking/vpcs/availability/create-vpcs-networking-availability.ts +71 -0
- package/src/tools/networking/vpcs/availability/update-vpcs-networking-availability.ts +55 -0
- package/src/tools/networking/vpcs/create-networking-vpcs.ts +69 -0
- package/src/tools/networking/vpcs/delete-networking-vpcs.ts +47 -0
- package/src/tools/networking/vpcs/get-networking-vpcs.ts +47 -0
- package/src/tools/networking/vpcs/list-networking-vpcs.ts +44 -0
- package/src/tools/networking/vpcs/update-networking-vpcs.ts +53 -0
- package/src/tools/operations/get-operations.ts +47 -0
- package/src/tools/operations/list-operations.ts +44 -0
- package/src/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.ts +46 -0
- package/src/tools/rpc-nodes/dedicated/get-rpc-nodes-dedicated.ts +47 -0
- package/src/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.ts +44 -0
- package/src/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.ts +44 -0
- package/src/tools/rpc-nodes/flex/get-rpc-nodes-flex.ts +47 -0
- package/src/tools/rpc-nodes/flex/list-rpc-nodes-flex.ts +44 -0
- package/src/tools/types.ts +103 -0
- package/src/tools/user/get-user.ts +44 -0
- package/src/tools/vektor/balances/list-historical-vektor-balances.ts +114 -0
- package/src/tools/vektor/balances/list-vektor-balances.ts +108 -0
- package/src/tools/vektor/borrow/accounts/list-borrow-vektor-accounts.ts +105 -0
- package/src/tools/vektor/borrow/accounts/list-historical-borrow-vektor-accounts.ts +113 -0
- package/src/tools/vektor/borrow/borrow_/create-borrow-vektor-borrow.ts +81 -0
- package/src/tools/vektor/borrow/markets/list-borrow-vektor-markets.ts +141 -0
- package/src/tools/vektor/borrow/markets/list-historical-borrow-vektor-markets.ts +141 -0
- package/src/tools/vektor/borrow/positions/list-borrow-vektor-positions.ts +162 -0
- package/src/tools/vektor/borrow/positions/list-historical-borrow-vektor-positions.ts +162 -0
- package/src/tools/vektor/borrow/repay/create-borrow-vektor-repay.ts +73 -0
- package/src/tools/vektor/bridge/quotes/list-bridge-vektor-quotes.ts +89 -0
- package/src/tools/vektor/buy/buy_/create-buy-vektor-buy.ts +89 -0
- package/src/tools/vektor/buy/quotes/list-buy-vektor-quotes.ts +89 -0
- package/src/tools/vektor/executions/get-vektor-executions.ts +39 -0
- package/src/tools/vektor/executions/list-vektor-executions.ts +34 -0
- package/src/tools/vektor/executions/steps/get-executions-vektor-steps.ts +42 -0
- package/src/tools/vektor/executions/steps/sign-executions-vektor-steps.ts +51 -0
- package/src/tools/vektor/incentivize/list-vektor-incentivize.ts +75 -0
- package/src/tools/vektor/lend/lend_/create-lend-vektor-lend.ts +81 -0
- package/src/tools/vektor/lend/markets/list-historical-lend-vektor-markets.ts +141 -0
- package/src/tools/vektor/lend/markets/list-lend-vektor-markets.ts +141 -0
- package/src/tools/vektor/lend/positions/list-historical-lend-vektor-positions.ts +162 -0
- package/src/tools/vektor/lend/positions/list-lend-vektor-positions.ts +162 -0
- package/src/tools/vektor/lend/set-collateral/create-lend-vektor-set-collateral.ts +63 -0
- package/src/tools/vektor/lend/withdraw/create-lend-vektor-withdraw.ts +73 -0
- package/src/tools/vektor/lock/markets/list-lock-vektor-markets.ts +78 -0
- package/src/tools/vektor/lock/positions/list-lock-vektor-positions.ts +91 -0
- package/src/tools/vektor/lp/deposit-quote/create-lp-vektor-deposit-quote.ts +234 -0
- package/src/tools/vektor/lp/pools/list-historical-lp-vektor-pools.ts +138 -0
- package/src/tools/vektor/lp/pools/list-lp-vektor-pools.ts +138 -0
- package/src/tools/vektor/lp/positions/list-historical-lp-vektor-positions.ts +169 -0
- package/src/tools/vektor/lp/positions/list-lp-vektor-positions.ts +169 -0
- package/src/tools/vektor/lp/withdraw-quote/create-lp-vektor-withdraw-quote.ts +188 -0
- package/src/tools/vektor/move/create-vektor-move.ts +71 -0
- package/src/tools/vektor/prices/list-historical-vektor-prices.ts +60 -0
- package/src/tools/vektor/prices/list-vektor-prices.ts +60 -0
- package/src/tools/vektor/registry/assets/list-registry-vektor-assets.ts +62 -0
- package/src/tools/vektor/registry/blockchains/list-registry-vektor-blockchains.ts +54 -0
- package/src/tools/vektor/registry/borrow-markets/list-registry-vektor-borrow-markets.ts +85 -0
- package/src/tools/vektor/registry/errors/list-registry-vektor-errors.ts +48 -0
- package/src/tools/vektor/registry/lend-markets/list-registry-vektor-lend-markets.ts +85 -0
- package/src/tools/vektor/registry/lp-pools/list-registry-vektor-lp-pools.ts +83 -0
- package/src/tools/vektor/registry/venues/list-registry-vektor-venues.ts +52 -0
- package/src/tools/vektor/sell/quotes/list-sell-vektor-quotes.ts +81 -0
- package/src/tools/vektor/sell/sell_/create-sell-vektor-sell.ts +89 -0
- package/src/tools/vektor/vote/markets/list-vote-vektor-markets.ts +75 -0
- package/src/tools/vektor/vote/rewards/list-vote-vektor-rewards.ts +88 -0
- package/src/tools/vektor/wrap/unwrap/create-wrap-vektor-unwrap.ts +60 -0
- package/src/tools/vektor/wrap/wrap_/create-wrap-vektor-wrap.ts +60 -0
- package/src/tools.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/stdio.d.mts +3 -0
- package/stdio.d.mts.map +1 -0
- package/stdio.d.ts +3 -0
- package/stdio.d.ts.map +1 -0
- package/stdio.js +14 -0
- package/stdio.js.map +1 -0
- package/stdio.mjs +10 -0
- package/stdio.mjs.map +1 -0
- package/tools/api-keys/create-api-keys.d.mts +45 -0
- package/tools/api-keys/create-api-keys.d.mts.map +1 -0
- package/tools/api-keys/create-api-keys.d.ts +45 -0
- package/tools/api-keys/create-api-keys.d.ts.map +1 -0
- package/tools/api-keys/create-api-keys.js +51 -0
- package/tools/api-keys/create-api-keys.js.map +1 -0
- package/tools/api-keys/create-api-keys.mjs +47 -0
- package/tools/api-keys/create-api-keys.mjs.map +1 -0
- package/tools/api-keys/delete-api-keys.d.mts +45 -0
- package/tools/api-keys/delete-api-keys.d.mts.map +1 -0
- package/tools/api-keys/delete-api-keys.d.ts +45 -0
- package/tools/api-keys/delete-api-keys.d.ts.map +1 -0
- package/tools/api-keys/delete-api-keys.js +37 -0
- package/tools/api-keys/delete-api-keys.js.map +1 -0
- package/tools/api-keys/delete-api-keys.mjs +33 -0
- package/tools/api-keys/delete-api-keys.mjs.map +1 -0
- package/tools/api-keys/get-api-keys.d.mts +45 -0
- package/tools/api-keys/get-api-keys.d.mts.map +1 -0
- package/tools/api-keys/get-api-keys.d.ts +45 -0
- package/tools/api-keys/get-api-keys.d.ts.map +1 -0
- package/tools/api-keys/get-api-keys.js +42 -0
- package/tools/api-keys/get-api-keys.js.map +1 -0
- package/tools/api-keys/get-api-keys.mjs +38 -0
- package/tools/api-keys/get-api-keys.mjs.map +1 -0
- package/tools/api-keys/list-api-keys.d.mts +45 -0
- package/tools/api-keys/list-api-keys.d.mts.map +1 -0
- package/tools/api-keys/list-api-keys.d.ts +45 -0
- package/tools/api-keys/list-api-keys.d.ts.map +1 -0
- package/tools/api-keys/list-api-keys.js +39 -0
- package/tools/api-keys/list-api-keys.js.map +1 -0
- package/tools/api-keys/list-api-keys.mjs +35 -0
- package/tools/api-keys/list-api-keys.mjs.map +1 -0
- package/tools/api-keys/update-api-keys.d.mts +45 -0
- package/tools/api-keys/update-api-keys.d.mts.map +1 -0
- package/tools/api-keys/update-api-keys.d.ts +45 -0
- package/tools/api-keys/update-api-keys.d.ts.map +1 -0
- package/tools/api-keys/update-api-keys.js +44 -0
- package/tools/api-keys/update-api-keys.js.map +1 -0
- package/tools/api-keys/update-api-keys.mjs +40 -0
- package/tools/api-keys/update-api-keys.mjs.map +1 -0
- package/tools/compute/vms/availability/create-vms-compute-availability.d.mts +45 -0
- package/tools/compute/vms/availability/create-vms-compute-availability.d.mts.map +1 -0
- package/tools/compute/vms/availability/create-vms-compute-availability.d.ts +45 -0
- package/tools/compute/vms/availability/create-vms-compute-availability.d.ts.map +1 -0
- package/tools/compute/vms/availability/create-vms-compute-availability.js +154 -0
- package/tools/compute/vms/availability/create-vms-compute-availability.js.map +1 -0
- package/tools/compute/vms/availability/create-vms-compute-availability.mjs +150 -0
- package/tools/compute/vms/availability/create-vms-compute-availability.mjs.map +1 -0
- package/tools/compute/vms/availability/update-vms-compute-availability.d.mts +45 -0
- package/tools/compute/vms/availability/update-vms-compute-availability.d.mts.map +1 -0
- package/tools/compute/vms/availability/update-vms-compute-availability.d.ts +45 -0
- package/tools/compute/vms/availability/update-vms-compute-availability.d.ts.map +1 -0
- package/tools/compute/vms/availability/update-vms-compute-availability.js +78 -0
- package/tools/compute/vms/availability/update-vms-compute-availability.js.map +1 -0
- package/tools/compute/vms/availability/update-vms-compute-availability.mjs +74 -0
- package/tools/compute/vms/availability/update-vms-compute-availability.mjs.map +1 -0
- package/tools/compute/vms/create-compute-vms.d.mts +45 -0
- package/tools/compute/vms/create-compute-vms.d.mts.map +1 -0
- package/tools/compute/vms/create-compute-vms.d.ts +45 -0
- package/tools/compute/vms/create-compute-vms.d.ts.map +1 -0
- package/tools/compute/vms/create-compute-vms.js +154 -0
- package/tools/compute/vms/create-compute-vms.js.map +1 -0
- package/tools/compute/vms/create-compute-vms.mjs +150 -0
- package/tools/compute/vms/create-compute-vms.mjs.map +1 -0
- package/tools/compute/vms/delete-compute-vms.d.mts +45 -0
- package/tools/compute/vms/delete-compute-vms.d.mts.map +1 -0
- package/tools/compute/vms/delete-compute-vms.d.ts +45 -0
- package/tools/compute/vms/delete-compute-vms.d.ts.map +1 -0
- package/tools/compute/vms/delete-compute-vms.js +42 -0
- package/tools/compute/vms/delete-compute-vms.js.map +1 -0
- package/tools/compute/vms/delete-compute-vms.mjs +38 -0
- package/tools/compute/vms/delete-compute-vms.mjs.map +1 -0
- package/tools/compute/vms/get-compute-vms.d.mts +45 -0
- package/tools/compute/vms/get-compute-vms.d.mts.map +1 -0
- package/tools/compute/vms/get-compute-vms.d.ts +45 -0
- package/tools/compute/vms/get-compute-vms.d.ts.map +1 -0
- package/tools/compute/vms/get-compute-vms.js +42 -0
- package/tools/compute/vms/get-compute-vms.js.map +1 -0
- package/tools/compute/vms/get-compute-vms.mjs +38 -0
- package/tools/compute/vms/get-compute-vms.mjs.map +1 -0
- package/tools/compute/vms/list-compute-vms.d.mts +45 -0
- package/tools/compute/vms/list-compute-vms.d.mts.map +1 -0
- package/tools/compute/vms/list-compute-vms.d.ts +45 -0
- package/tools/compute/vms/list-compute-vms.d.ts.map +1 -0
- package/tools/compute/vms/list-compute-vms.js +39 -0
- package/tools/compute/vms/list-compute-vms.js.map +1 -0
- package/tools/compute/vms/list-compute-vms.mjs +35 -0
- package/tools/compute/vms/list-compute-vms.mjs.map +1 -0
- package/tools/compute/vms/os-images/list-vms-compute-os-images.d.mts +45 -0
- package/tools/compute/vms/os-images/list-vms-compute-os-images.d.mts.map +1 -0
- package/tools/compute/vms/os-images/list-vms-compute-os-images.d.ts +45 -0
- package/tools/compute/vms/os-images/list-vms-compute-os-images.d.ts.map +1 -0
- package/tools/compute/vms/os-images/list-vms-compute-os-images.js +39 -0
- package/tools/compute/vms/os-images/list-vms-compute-os-images.js.map +1 -0
- package/tools/compute/vms/os-images/list-vms-compute-os-images.mjs +35 -0
- package/tools/compute/vms/os-images/list-vms-compute-os-images.mjs.map +1 -0
- package/tools/compute/vms/restart-compute-vms.d.mts +45 -0
- package/tools/compute/vms/restart-compute-vms.d.mts.map +1 -0
- package/tools/compute/vms/restart-compute-vms.d.ts +45 -0
- package/tools/compute/vms/restart-compute-vms.d.ts.map +1 -0
- package/tools/compute/vms/restart-compute-vms.js +40 -0
- package/tools/compute/vms/restart-compute-vms.js.map +1 -0
- package/tools/compute/vms/restart-compute-vms.mjs +36 -0
- package/tools/compute/vms/restart-compute-vms.mjs.map +1 -0
- package/tools/compute/vms/update-compute-vms.d.mts +45 -0
- package/tools/compute/vms/update-compute-vms.d.mts.map +1 -0
- package/tools/compute/vms/update-compute-vms.d.ts +45 -0
- package/tools/compute/vms/update-compute-vms.d.ts.map +1 -0
- package/tools/compute/vms/update-compute-vms.js +78 -0
- package/tools/compute/vms/update-compute-vms.js.map +1 -0
- package/tools/compute/vms/update-compute-vms.mjs +74 -0
- package/tools/compute/vms/update-compute-vms.mjs.map +1 -0
- package/tools/compute/vms/volumes/list-vms-compute-volumes.d.mts +45 -0
- package/tools/compute/vms/volumes/list-vms-compute-volumes.d.mts.map +1 -0
- package/tools/compute/vms/volumes/list-vms-compute-volumes.d.ts +45 -0
- package/tools/compute/vms/volumes/list-vms-compute-volumes.d.ts.map +1 -0
- package/tools/compute/vms/volumes/list-vms-compute-volumes.js +42 -0
- package/tools/compute/vms/volumes/list-vms-compute-volumes.js.map +1 -0
- package/tools/compute/vms/volumes/list-vms-compute-volumes.mjs +38 -0
- package/tools/compute/vms/volumes/list-vms-compute-volumes.mjs.map +1 -0
- package/tools/compute/volumes/availability/create-volumes-compute-availability.d.mts +45 -0
- package/tools/compute/volumes/availability/create-volumes-compute-availability.d.mts.map +1 -0
- package/tools/compute/volumes/availability/create-volumes-compute-availability.d.ts +45 -0
- package/tools/compute/volumes/availability/create-volumes-compute-availability.d.ts.map +1 -0
- package/tools/compute/volumes/availability/create-volumes-compute-availability.js +49 -0
- package/tools/compute/volumes/availability/create-volumes-compute-availability.js.map +1 -0
- package/tools/compute/volumes/availability/create-volumes-compute-availability.mjs +45 -0
- package/tools/compute/volumes/availability/create-volumes-compute-availability.mjs.map +1 -0
- package/tools/compute/volumes/availability/update-volumes-compute-availability.d.mts +45 -0
- package/tools/compute/volumes/availability/update-volumes-compute-availability.d.mts.map +1 -0
- package/tools/compute/volumes/availability/update-volumes-compute-availability.d.ts +45 -0
- package/tools/compute/volumes/availability/update-volumes-compute-availability.d.ts.map +1 -0
- package/tools/compute/volumes/availability/update-volumes-compute-availability.js +48 -0
- package/tools/compute/volumes/availability/update-volumes-compute-availability.js.map +1 -0
- package/tools/compute/volumes/availability/update-volumes-compute-availability.mjs +44 -0
- package/tools/compute/volumes/availability/update-volumes-compute-availability.mjs.map +1 -0
- package/tools/compute/volumes/create-compute-volumes.d.mts +45 -0
- package/tools/compute/volumes/create-compute-volumes.d.mts.map +1 -0
- package/tools/compute/volumes/create-compute-volumes.d.ts +45 -0
- package/tools/compute/volumes/create-compute-volumes.d.ts.map +1 -0
- package/tools/compute/volumes/create-compute-volumes.js +49 -0
- package/tools/compute/volumes/create-compute-volumes.js.map +1 -0
- package/tools/compute/volumes/create-compute-volumes.mjs +45 -0
- package/tools/compute/volumes/create-compute-volumes.mjs.map +1 -0
- package/tools/compute/volumes/delete-compute-volumes.d.mts +45 -0
- package/tools/compute/volumes/delete-compute-volumes.d.mts.map +1 -0
- package/tools/compute/volumes/delete-compute-volumes.d.ts +45 -0
- package/tools/compute/volumes/delete-compute-volumes.d.ts.map +1 -0
- package/tools/compute/volumes/delete-compute-volumes.js +42 -0
- package/tools/compute/volumes/delete-compute-volumes.js.map +1 -0
- package/tools/compute/volumes/delete-compute-volumes.mjs +38 -0
- package/tools/compute/volumes/delete-compute-volumes.mjs.map +1 -0
- package/tools/compute/volumes/get-compute-volumes.d.mts +45 -0
- package/tools/compute/volumes/get-compute-volumes.d.mts.map +1 -0
- package/tools/compute/volumes/get-compute-volumes.d.ts +45 -0
- package/tools/compute/volumes/get-compute-volumes.d.ts.map +1 -0
- package/tools/compute/volumes/get-compute-volumes.js +42 -0
- package/tools/compute/volumes/get-compute-volumes.js.map +1 -0
- package/tools/compute/volumes/get-compute-volumes.mjs +38 -0
- package/tools/compute/volumes/get-compute-volumes.mjs.map +1 -0
- package/tools/compute/volumes/list-compute-volumes.d.mts +45 -0
- package/tools/compute/volumes/list-compute-volumes.d.mts.map +1 -0
- package/tools/compute/volumes/list-compute-volumes.d.ts +45 -0
- package/tools/compute/volumes/list-compute-volumes.d.ts.map +1 -0
- package/tools/compute/volumes/list-compute-volumes.js +39 -0
- package/tools/compute/volumes/list-compute-volumes.js.map +1 -0
- package/tools/compute/volumes/list-compute-volumes.mjs +35 -0
- package/tools/compute/volumes/list-compute-volumes.mjs.map +1 -0
- package/tools/compute/volumes/update-compute-volumes.d.mts +45 -0
- package/tools/compute/volumes/update-compute-volumes.d.mts.map +1 -0
- package/tools/compute/volumes/update-compute-volumes.d.ts +45 -0
- package/tools/compute/volumes/update-compute-volumes.d.ts.map +1 -0
- package/tools/compute/volumes/update-compute-volumes.js +48 -0
- package/tools/compute/volumes/update-compute-volumes.js.map +1 -0
- package/tools/compute/volumes/update-compute-volumes.mjs +44 -0
- package/tools/compute/volumes/update-compute-volumes.mjs.map +1 -0
- package/tools/connect/flux/get-connect-flux.d.mts +45 -0
- package/tools/connect/flux/get-connect-flux.d.mts.map +1 -0
- package/tools/connect/flux/get-connect-flux.d.ts +45 -0
- package/tools/connect/flux/get-connect-flux.d.ts.map +1 -0
- package/tools/connect/flux/get-connect-flux.js +42 -0
- package/tools/connect/flux/get-connect-flux.js.map +1 -0
- package/tools/connect/flux/get-connect-flux.mjs +38 -0
- package/tools/connect/flux/get-connect-flux.mjs.map +1 -0
- package/tools/connect/flux/list-connect-flux.d.mts +45 -0
- package/tools/connect/flux/list-connect-flux.d.mts.map +1 -0
- package/tools/connect/flux/list-connect-flux.d.ts +45 -0
- package/tools/connect/flux/list-connect-flux.d.ts.map +1 -0
- package/tools/connect/flux/list-connect-flux.js +39 -0
- package/tools/connect/flux/list-connect-flux.js.map +1 -0
- package/tools/connect/flux/list-connect-flux.mjs +35 -0
- package/tools/connect/flux/list-connect-flux.mjs.map +1 -0
- package/tools/index.d.mts +10 -0
- package/tools/index.d.mts.map +1 -0
- package/tools/index.d.ts +10 -0
- package/tools/index.d.ts.map +1 -0
- package/tools/index.js +241 -0
- package/tools/index.js.map +1 -0
- package/tools/index.mjs +234 -0
- package/tools/index.mjs.map +1 -0
- package/tools/networking/firewall-rules/create-networking-firewall-rules.d.mts +45 -0
- package/tools/networking/firewall-rules/create-networking-firewall-rules.d.mts.map +1 -0
- package/tools/networking/firewall-rules/create-networking-firewall-rules.d.ts +45 -0
- package/tools/networking/firewall-rules/create-networking-firewall-rules.d.ts.map +1 -0
- package/tools/networking/firewall-rules/create-networking-firewall-rules.js +64 -0
- package/tools/networking/firewall-rules/create-networking-firewall-rules.js.map +1 -0
- package/tools/networking/firewall-rules/create-networking-firewall-rules.mjs +60 -0
- package/tools/networking/firewall-rules/create-networking-firewall-rules.mjs.map +1 -0
- package/tools/networking/firewall-rules/delete-networking-firewall-rules.d.mts +45 -0
- package/tools/networking/firewall-rules/delete-networking-firewall-rules.d.mts.map +1 -0
- package/tools/networking/firewall-rules/delete-networking-firewall-rules.d.ts +45 -0
- package/tools/networking/firewall-rules/delete-networking-firewall-rules.d.ts.map +1 -0
- package/tools/networking/firewall-rules/delete-networking-firewall-rules.js +45 -0
- package/tools/networking/firewall-rules/delete-networking-firewall-rules.js.map +1 -0
- package/tools/networking/firewall-rules/delete-networking-firewall-rules.mjs +41 -0
- package/tools/networking/firewall-rules/delete-networking-firewall-rules.mjs.map +1 -0
- package/tools/networking/firewall-rules/get-networking-firewall-rules.d.mts +45 -0
- package/tools/networking/firewall-rules/get-networking-firewall-rules.d.mts.map +1 -0
- package/tools/networking/firewall-rules/get-networking-firewall-rules.d.ts +45 -0
- package/tools/networking/firewall-rules/get-networking-firewall-rules.d.ts.map +1 -0
- package/tools/networking/firewall-rules/get-networking-firewall-rules.js +45 -0
- package/tools/networking/firewall-rules/get-networking-firewall-rules.js.map +1 -0
- package/tools/networking/firewall-rules/get-networking-firewall-rules.mjs +41 -0
- package/tools/networking/firewall-rules/get-networking-firewall-rules.mjs.map +1 -0
- package/tools/networking/firewall-rules/list-networking-firewall-rules.d.mts +45 -0
- package/tools/networking/firewall-rules/list-networking-firewall-rules.d.mts.map +1 -0
- package/tools/networking/firewall-rules/list-networking-firewall-rules.d.ts +45 -0
- package/tools/networking/firewall-rules/list-networking-firewall-rules.d.ts.map +1 -0
- package/tools/networking/firewall-rules/list-networking-firewall-rules.js +42 -0
- package/tools/networking/firewall-rules/list-networking-firewall-rules.js.map +1 -0
- package/tools/networking/firewall-rules/list-networking-firewall-rules.mjs +38 -0
- package/tools/networking/firewall-rules/list-networking-firewall-rules.mjs.map +1 -0
- package/tools/networking/firewall-rules/update-networking-firewall-rules.d.mts +45 -0
- package/tools/networking/firewall-rules/update-networking-firewall-rules.d.mts.map +1 -0
- package/tools/networking/firewall-rules/update-networking-firewall-rules.d.ts +45 -0
- package/tools/networking/firewall-rules/update-networking-firewall-rules.d.ts.map +1 -0
- package/tools/networking/firewall-rules/update-networking-firewall-rules.js +67 -0
- package/tools/networking/firewall-rules/update-networking-firewall-rules.js.map +1 -0
- package/tools/networking/firewall-rules/update-networking-firewall-rules.mjs +63 -0
- package/tools/networking/firewall-rules/update-networking-firewall-rules.mjs.map +1 -0
- package/tools/networking/vpcs/availability/create-vpcs-networking-availability.d.mts +45 -0
- package/tools/networking/vpcs/availability/create-vpcs-networking-availability.d.mts.map +1 -0
- package/tools/networking/vpcs/availability/create-vpcs-networking-availability.d.ts +45 -0
- package/tools/networking/vpcs/availability/create-vpcs-networking-availability.d.ts.map +1 -0
- package/tools/networking/vpcs/availability/create-vpcs-networking-availability.js +64 -0
- package/tools/networking/vpcs/availability/create-vpcs-networking-availability.js.map +1 -0
- package/tools/networking/vpcs/availability/create-vpcs-networking-availability.mjs +60 -0
- package/tools/networking/vpcs/availability/create-vpcs-networking-availability.mjs.map +1 -0
- package/tools/networking/vpcs/availability/update-vpcs-networking-availability.d.mts +45 -0
- package/tools/networking/vpcs/availability/update-vpcs-networking-availability.d.mts.map +1 -0
- package/tools/networking/vpcs/availability/update-vpcs-networking-availability.d.ts +45 -0
- package/tools/networking/vpcs/availability/update-vpcs-networking-availability.d.ts.map +1 -0
- package/tools/networking/vpcs/availability/update-vpcs-networking-availability.js +48 -0
- package/tools/networking/vpcs/availability/update-vpcs-networking-availability.js.map +1 -0
- package/tools/networking/vpcs/availability/update-vpcs-networking-availability.mjs +44 -0
- package/tools/networking/vpcs/availability/update-vpcs-networking-availability.mjs.map +1 -0
- package/tools/networking/vpcs/create-networking-vpcs.d.mts +45 -0
- package/tools/networking/vpcs/create-networking-vpcs.d.mts.map +1 -0
- package/tools/networking/vpcs/create-networking-vpcs.d.ts +45 -0
- package/tools/networking/vpcs/create-networking-vpcs.d.ts.map +1 -0
- package/tools/networking/vpcs/create-networking-vpcs.js +64 -0
- package/tools/networking/vpcs/create-networking-vpcs.js.map +1 -0
- package/tools/networking/vpcs/create-networking-vpcs.mjs +60 -0
- package/tools/networking/vpcs/create-networking-vpcs.mjs.map +1 -0
- package/tools/networking/vpcs/delete-networking-vpcs.d.mts +45 -0
- package/tools/networking/vpcs/delete-networking-vpcs.d.mts.map +1 -0
- package/tools/networking/vpcs/delete-networking-vpcs.d.ts +45 -0
- package/tools/networking/vpcs/delete-networking-vpcs.d.ts.map +1 -0
- package/tools/networking/vpcs/delete-networking-vpcs.js +42 -0
- package/tools/networking/vpcs/delete-networking-vpcs.js.map +1 -0
- package/tools/networking/vpcs/delete-networking-vpcs.mjs +38 -0
- package/tools/networking/vpcs/delete-networking-vpcs.mjs.map +1 -0
- package/tools/networking/vpcs/get-networking-vpcs.d.mts +45 -0
- package/tools/networking/vpcs/get-networking-vpcs.d.mts.map +1 -0
- package/tools/networking/vpcs/get-networking-vpcs.d.ts +45 -0
- package/tools/networking/vpcs/get-networking-vpcs.d.ts.map +1 -0
- package/tools/networking/vpcs/get-networking-vpcs.js +42 -0
- package/tools/networking/vpcs/get-networking-vpcs.js.map +1 -0
- package/tools/networking/vpcs/get-networking-vpcs.mjs +38 -0
- package/tools/networking/vpcs/get-networking-vpcs.mjs.map +1 -0
- package/tools/networking/vpcs/list-networking-vpcs.d.mts +45 -0
- package/tools/networking/vpcs/list-networking-vpcs.d.mts.map +1 -0
- package/tools/networking/vpcs/list-networking-vpcs.d.ts +45 -0
- package/tools/networking/vpcs/list-networking-vpcs.d.ts.map +1 -0
- package/tools/networking/vpcs/list-networking-vpcs.js +39 -0
- package/tools/networking/vpcs/list-networking-vpcs.js.map +1 -0
- package/tools/networking/vpcs/list-networking-vpcs.mjs +35 -0
- package/tools/networking/vpcs/list-networking-vpcs.mjs.map +1 -0
- package/tools/networking/vpcs/update-networking-vpcs.d.mts +45 -0
- package/tools/networking/vpcs/update-networking-vpcs.d.mts.map +1 -0
- package/tools/networking/vpcs/update-networking-vpcs.d.ts +45 -0
- package/tools/networking/vpcs/update-networking-vpcs.d.ts.map +1 -0
- package/tools/networking/vpcs/update-networking-vpcs.js +48 -0
- package/tools/networking/vpcs/update-networking-vpcs.js.map +1 -0
- package/tools/networking/vpcs/update-networking-vpcs.mjs +44 -0
- package/tools/networking/vpcs/update-networking-vpcs.mjs.map +1 -0
- package/tools/operations/get-operations.d.mts +45 -0
- package/tools/operations/get-operations.d.mts.map +1 -0
- package/tools/operations/get-operations.d.ts +45 -0
- package/tools/operations/get-operations.d.ts.map +1 -0
- package/tools/operations/get-operations.js +42 -0
- package/tools/operations/get-operations.js.map +1 -0
- package/tools/operations/get-operations.mjs +38 -0
- package/tools/operations/get-operations.mjs.map +1 -0
- package/tools/operations/list-operations.d.mts +45 -0
- package/tools/operations/list-operations.d.mts.map +1 -0
- package/tools/operations/list-operations.d.ts +45 -0
- package/tools/operations/list-operations.d.ts.map +1 -0
- package/tools/operations/list-operations.js +39 -0
- package/tools/operations/list-operations.js.map +1 -0
- package/tools/operations/list-operations.mjs +35 -0
- package/tools/operations/list-operations.mjs.map +1 -0
- package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.d.mts +45 -0
- package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.d.mts.map +1 -0
- package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.d.ts +45 -0
- package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.d.ts.map +1 -0
- package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.js +39 -0
- package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.js.map +1 -0
- package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.mjs +35 -0
- package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.mjs.map +1 -0
- package/tools/rpc-nodes/dedicated/get-rpc-nodes-dedicated.d.mts +45 -0
- package/tools/rpc-nodes/dedicated/get-rpc-nodes-dedicated.d.mts.map +1 -0
- package/tools/rpc-nodes/dedicated/get-rpc-nodes-dedicated.d.ts +45 -0
- package/tools/rpc-nodes/dedicated/get-rpc-nodes-dedicated.d.ts.map +1 -0
- package/tools/rpc-nodes/dedicated/get-rpc-nodes-dedicated.js +42 -0
- package/tools/rpc-nodes/dedicated/get-rpc-nodes-dedicated.js.map +1 -0
- package/tools/rpc-nodes/dedicated/get-rpc-nodes-dedicated.mjs +38 -0
- package/tools/rpc-nodes/dedicated/get-rpc-nodes-dedicated.mjs.map +1 -0
- package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.d.mts +45 -0
- package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.d.mts.map +1 -0
- package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.d.ts +45 -0
- package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.d.ts.map +1 -0
- package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.js +39 -0
- package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.js.map +1 -0
- package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.mjs +35 -0
- package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.mjs.map +1 -0
- package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.d.mts +45 -0
- package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.d.mts.map +1 -0
- package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.d.ts +45 -0
- package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.d.ts.map +1 -0
- package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.js +39 -0
- package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.js.map +1 -0
- package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.mjs +35 -0
- package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.mjs.map +1 -0
- package/tools/rpc-nodes/flex/get-rpc-nodes-flex.d.mts +45 -0
- package/tools/rpc-nodes/flex/get-rpc-nodes-flex.d.mts.map +1 -0
- package/tools/rpc-nodes/flex/get-rpc-nodes-flex.d.ts +45 -0
- package/tools/rpc-nodes/flex/get-rpc-nodes-flex.d.ts.map +1 -0
- package/tools/rpc-nodes/flex/get-rpc-nodes-flex.js +42 -0
- package/tools/rpc-nodes/flex/get-rpc-nodes-flex.js.map +1 -0
- package/tools/rpc-nodes/flex/get-rpc-nodes-flex.mjs +38 -0
- package/tools/rpc-nodes/flex/get-rpc-nodes-flex.mjs.map +1 -0
- package/tools/rpc-nodes/flex/list-rpc-nodes-flex.d.mts +45 -0
- package/tools/rpc-nodes/flex/list-rpc-nodes-flex.d.mts.map +1 -0
- package/tools/rpc-nodes/flex/list-rpc-nodes-flex.d.ts +45 -0
- package/tools/rpc-nodes/flex/list-rpc-nodes-flex.d.ts.map +1 -0
- package/tools/rpc-nodes/flex/list-rpc-nodes-flex.js +39 -0
- package/tools/rpc-nodes/flex/list-rpc-nodes-flex.js.map +1 -0
- package/tools/rpc-nodes/flex/list-rpc-nodes-flex.mjs +35 -0
- package/tools/rpc-nodes/flex/list-rpc-nodes-flex.mjs.map +1 -0
- package/tools/types.d.mts +51 -0
- package/tools/types.d.mts.map +1 -0
- package/tools/types.d.ts +51 -0
- package/tools/types.d.ts.map +1 -0
- package/tools/types.js +46 -0
- package/tools/types.js.map +1 -0
- package/tools/types.mjs +42 -0
- package/tools/types.mjs.map +1 -0
- package/tools/user/get-user.d.mts +45 -0
- package/tools/user/get-user.d.mts.map +1 -0
- package/tools/user/get-user.d.ts +45 -0
- package/tools/user/get-user.d.ts.map +1 -0
- package/tools/user/get-user.js +39 -0
- package/tools/user/get-user.js.map +1 -0
- package/tools/user/get-user.mjs +35 -0
- package/tools/user/get-user.mjs.map +1 -0
- package/tools/vektor/balances/list-historical-vektor-balances.d.mts +45 -0
- package/tools/vektor/balances/list-historical-vektor-balances.d.mts.map +1 -0
- package/tools/vektor/balances/list-historical-vektor-balances.d.ts +45 -0
- package/tools/vektor/balances/list-historical-vektor-balances.d.ts.map +1 -0
- package/tools/vektor/balances/list-historical-vektor-balances.js +109 -0
- package/tools/vektor/balances/list-historical-vektor-balances.js.map +1 -0
- package/tools/vektor/balances/list-historical-vektor-balances.mjs +105 -0
- package/tools/vektor/balances/list-historical-vektor-balances.mjs.map +1 -0
- package/tools/vektor/balances/list-vektor-balances.d.mts +45 -0
- package/tools/vektor/balances/list-vektor-balances.d.mts.map +1 -0
- package/tools/vektor/balances/list-vektor-balances.d.ts +45 -0
- package/tools/vektor/balances/list-vektor-balances.d.ts.map +1 -0
- package/tools/vektor/balances/list-vektor-balances.js +103 -0
- package/tools/vektor/balances/list-vektor-balances.js.map +1 -0
- package/tools/vektor/balances/list-vektor-balances.mjs +99 -0
- package/tools/vektor/balances/list-vektor-balances.mjs.map +1 -0
- package/tools/vektor/borrow/accounts/list-borrow-vektor-accounts.d.mts +45 -0
- package/tools/vektor/borrow/accounts/list-borrow-vektor-accounts.d.mts.map +1 -0
- package/tools/vektor/borrow/accounts/list-borrow-vektor-accounts.d.ts +45 -0
- package/tools/vektor/borrow/accounts/list-borrow-vektor-accounts.d.ts.map +1 -0
- package/tools/vektor/borrow/accounts/list-borrow-vektor-accounts.js +100 -0
- package/tools/vektor/borrow/accounts/list-borrow-vektor-accounts.js.map +1 -0
- package/tools/vektor/borrow/accounts/list-borrow-vektor-accounts.mjs +96 -0
- package/tools/vektor/borrow/accounts/list-borrow-vektor-accounts.mjs.map +1 -0
- package/tools/vektor/borrow/accounts/list-historical-borrow-vektor-accounts.d.mts +45 -0
- package/tools/vektor/borrow/accounts/list-historical-borrow-vektor-accounts.d.mts.map +1 -0
- package/tools/vektor/borrow/accounts/list-historical-borrow-vektor-accounts.d.ts +45 -0
- package/tools/vektor/borrow/accounts/list-historical-borrow-vektor-accounts.d.ts.map +1 -0
- package/tools/vektor/borrow/accounts/list-historical-borrow-vektor-accounts.js +106 -0
- package/tools/vektor/borrow/accounts/list-historical-borrow-vektor-accounts.js.map +1 -0
- package/tools/vektor/borrow/accounts/list-historical-borrow-vektor-accounts.mjs +102 -0
- package/tools/vektor/borrow/accounts/list-historical-borrow-vektor-accounts.mjs.map +1 -0
- package/tools/vektor/borrow/borrow_/create-borrow-vektor-borrow.d.mts +45 -0
- package/tools/vektor/borrow/borrow_/create-borrow-vektor-borrow.d.mts.map +1 -0
- package/tools/vektor/borrow/borrow_/create-borrow-vektor-borrow.d.ts +45 -0
- package/tools/vektor/borrow/borrow_/create-borrow-vektor-borrow.d.ts.map +1 -0
- package/tools/vektor/borrow/borrow_/create-borrow-vektor-borrow.js +78 -0
- package/tools/vektor/borrow/borrow_/create-borrow-vektor-borrow.js.map +1 -0
- package/tools/vektor/borrow/borrow_/create-borrow-vektor-borrow.mjs +74 -0
- package/tools/vektor/borrow/borrow_/create-borrow-vektor-borrow.mjs.map +1 -0
- package/tools/vektor/borrow/markets/list-borrow-vektor-markets.d.mts +45 -0
- package/tools/vektor/borrow/markets/list-borrow-vektor-markets.d.mts.map +1 -0
- package/tools/vektor/borrow/markets/list-borrow-vektor-markets.d.ts +45 -0
- package/tools/vektor/borrow/markets/list-borrow-vektor-markets.d.ts.map +1 -0
- package/tools/vektor/borrow/markets/list-borrow-vektor-markets.js +138 -0
- package/tools/vektor/borrow/markets/list-borrow-vektor-markets.js.map +1 -0
- package/tools/vektor/borrow/markets/list-borrow-vektor-markets.mjs +134 -0
- package/tools/vektor/borrow/markets/list-borrow-vektor-markets.mjs.map +1 -0
- package/tools/vektor/borrow/markets/list-historical-borrow-vektor-markets.d.mts +45 -0
- package/tools/vektor/borrow/markets/list-historical-borrow-vektor-markets.d.mts.map +1 -0
- package/tools/vektor/borrow/markets/list-historical-borrow-vektor-markets.d.ts +45 -0
- package/tools/vektor/borrow/markets/list-historical-borrow-vektor-markets.d.ts.map +1 -0
- package/tools/vektor/borrow/markets/list-historical-borrow-vektor-markets.js +138 -0
- package/tools/vektor/borrow/markets/list-historical-borrow-vektor-markets.js.map +1 -0
- package/tools/vektor/borrow/markets/list-historical-borrow-vektor-markets.mjs +134 -0
- package/tools/vektor/borrow/markets/list-historical-borrow-vektor-markets.mjs.map +1 -0
- package/tools/vektor/borrow/positions/list-borrow-vektor-positions.d.mts +45 -0
- package/tools/vektor/borrow/positions/list-borrow-vektor-positions.d.mts.map +1 -0
- package/tools/vektor/borrow/positions/list-borrow-vektor-positions.d.ts +45 -0
- package/tools/vektor/borrow/positions/list-borrow-vektor-positions.d.ts.map +1 -0
- package/tools/vektor/borrow/positions/list-borrow-vektor-positions.js +159 -0
- package/tools/vektor/borrow/positions/list-borrow-vektor-positions.js.map +1 -0
- package/tools/vektor/borrow/positions/list-borrow-vektor-positions.mjs +155 -0
- package/tools/vektor/borrow/positions/list-borrow-vektor-positions.mjs.map +1 -0
- package/tools/vektor/borrow/positions/list-historical-borrow-vektor-positions.d.mts +45 -0
- package/tools/vektor/borrow/positions/list-historical-borrow-vektor-positions.d.mts.map +1 -0
- package/tools/vektor/borrow/positions/list-historical-borrow-vektor-positions.d.ts +45 -0
- package/tools/vektor/borrow/positions/list-historical-borrow-vektor-positions.d.ts.map +1 -0
- package/tools/vektor/borrow/positions/list-historical-borrow-vektor-positions.js +159 -0
- package/tools/vektor/borrow/positions/list-historical-borrow-vektor-positions.js.map +1 -0
- package/tools/vektor/borrow/positions/list-historical-borrow-vektor-positions.mjs +155 -0
- package/tools/vektor/borrow/positions/list-historical-borrow-vektor-positions.mjs.map +1 -0
- package/tools/vektor/borrow/repay/create-borrow-vektor-repay.d.mts +45 -0
- package/tools/vektor/borrow/repay/create-borrow-vektor-repay.d.mts.map +1 -0
- package/tools/vektor/borrow/repay/create-borrow-vektor-repay.d.ts +45 -0
- package/tools/vektor/borrow/repay/create-borrow-vektor-repay.d.ts.map +1 -0
- package/tools/vektor/borrow/repay/create-borrow-vektor-repay.js +70 -0
- package/tools/vektor/borrow/repay/create-borrow-vektor-repay.js.map +1 -0
- package/tools/vektor/borrow/repay/create-borrow-vektor-repay.mjs +66 -0
- package/tools/vektor/borrow/repay/create-borrow-vektor-repay.mjs.map +1 -0
- package/tools/vektor/bridge/quotes/list-bridge-vektor-quotes.d.mts +45 -0
- package/tools/vektor/bridge/quotes/list-bridge-vektor-quotes.d.mts.map +1 -0
- package/tools/vektor/bridge/quotes/list-bridge-vektor-quotes.d.ts +45 -0
- package/tools/vektor/bridge/quotes/list-bridge-vektor-quotes.d.ts.map +1 -0
- package/tools/vektor/bridge/quotes/list-bridge-vektor-quotes.js +84 -0
- package/tools/vektor/bridge/quotes/list-bridge-vektor-quotes.js.map +1 -0
- package/tools/vektor/bridge/quotes/list-bridge-vektor-quotes.mjs +80 -0
- package/tools/vektor/bridge/quotes/list-bridge-vektor-quotes.mjs.map +1 -0
- package/tools/vektor/buy/buy_/create-buy-vektor-buy.d.mts +45 -0
- package/tools/vektor/buy/buy_/create-buy-vektor-buy.d.mts.map +1 -0
- package/tools/vektor/buy/buy_/create-buy-vektor-buy.d.ts +45 -0
- package/tools/vektor/buy/buy_/create-buy-vektor-buy.d.ts.map +1 -0
- package/tools/vektor/buy/buy_/create-buy-vektor-buy.js +86 -0
- package/tools/vektor/buy/buy_/create-buy-vektor-buy.js.map +1 -0
- package/tools/vektor/buy/buy_/create-buy-vektor-buy.mjs +82 -0
- package/tools/vektor/buy/buy_/create-buy-vektor-buy.mjs.map +1 -0
- package/tools/vektor/buy/quotes/list-buy-vektor-quotes.d.mts +45 -0
- package/tools/vektor/buy/quotes/list-buy-vektor-quotes.d.mts.map +1 -0
- package/tools/vektor/buy/quotes/list-buy-vektor-quotes.d.ts +45 -0
- package/tools/vektor/buy/quotes/list-buy-vektor-quotes.d.ts.map +1 -0
- package/tools/vektor/buy/quotes/list-buy-vektor-quotes.js +84 -0
- package/tools/vektor/buy/quotes/list-buy-vektor-quotes.js.map +1 -0
- package/tools/vektor/buy/quotes/list-buy-vektor-quotes.mjs +80 -0
- package/tools/vektor/buy/quotes/list-buy-vektor-quotes.mjs.map +1 -0
- package/tools/vektor/executions/get-vektor-executions.d.mts +45 -0
- package/tools/vektor/executions/get-vektor-executions.d.mts.map +1 -0
- package/tools/vektor/executions/get-vektor-executions.d.ts +45 -0
- package/tools/vektor/executions/get-vektor-executions.d.ts.map +1 -0
- package/tools/vektor/executions/get-vektor-executions.js +36 -0
- package/tools/vektor/executions/get-vektor-executions.js.map +1 -0
- package/tools/vektor/executions/get-vektor-executions.mjs +32 -0
- package/tools/vektor/executions/get-vektor-executions.mjs.map +1 -0
- package/tools/vektor/executions/list-vektor-executions.d.mts +45 -0
- package/tools/vektor/executions/list-vektor-executions.d.mts.map +1 -0
- package/tools/vektor/executions/list-vektor-executions.d.ts +45 -0
- package/tools/vektor/executions/list-vektor-executions.d.ts.map +1 -0
- package/tools/vektor/executions/list-vektor-executions.js +31 -0
- package/tools/vektor/executions/list-vektor-executions.js.map +1 -0
- package/tools/vektor/executions/list-vektor-executions.mjs +27 -0
- package/tools/vektor/executions/list-vektor-executions.mjs.map +1 -0
- package/tools/vektor/executions/steps/get-executions-vektor-steps.d.mts +45 -0
- package/tools/vektor/executions/steps/get-executions-vektor-steps.d.mts.map +1 -0
- package/tools/vektor/executions/steps/get-executions-vektor-steps.d.ts +45 -0
- package/tools/vektor/executions/steps/get-executions-vektor-steps.d.ts.map +1 -0
- package/tools/vektor/executions/steps/get-executions-vektor-steps.js +39 -0
- package/tools/vektor/executions/steps/get-executions-vektor-steps.js.map +1 -0
- package/tools/vektor/executions/steps/get-executions-vektor-steps.mjs +35 -0
- package/tools/vektor/executions/steps/get-executions-vektor-steps.mjs.map +1 -0
- package/tools/vektor/executions/steps/sign-executions-vektor-steps.d.mts +45 -0
- package/tools/vektor/executions/steps/sign-executions-vektor-steps.d.mts.map +1 -0
- package/tools/vektor/executions/steps/sign-executions-vektor-steps.d.ts +45 -0
- package/tools/vektor/executions/steps/sign-executions-vektor-steps.d.ts.map +1 -0
- package/tools/vektor/executions/steps/sign-executions-vektor-steps.js +48 -0
- package/tools/vektor/executions/steps/sign-executions-vektor-steps.js.map +1 -0
- package/tools/vektor/executions/steps/sign-executions-vektor-steps.mjs +44 -0
- package/tools/vektor/executions/steps/sign-executions-vektor-steps.mjs.map +1 -0
- package/tools/vektor/incentivize/list-vektor-incentivize.d.mts +45 -0
- package/tools/vektor/incentivize/list-vektor-incentivize.d.mts.map +1 -0
- package/tools/vektor/incentivize/list-vektor-incentivize.d.ts +45 -0
- package/tools/vektor/incentivize/list-vektor-incentivize.d.ts.map +1 -0
- package/tools/vektor/incentivize/list-vektor-incentivize.js +72 -0
- package/tools/vektor/incentivize/list-vektor-incentivize.js.map +1 -0
- package/tools/vektor/incentivize/list-vektor-incentivize.mjs +68 -0
- package/tools/vektor/incentivize/list-vektor-incentivize.mjs.map +1 -0
- package/tools/vektor/lend/lend_/create-lend-vektor-lend.d.mts +45 -0
- package/tools/vektor/lend/lend_/create-lend-vektor-lend.d.mts.map +1 -0
- package/tools/vektor/lend/lend_/create-lend-vektor-lend.d.ts +45 -0
- package/tools/vektor/lend/lend_/create-lend-vektor-lend.d.ts.map +1 -0
- package/tools/vektor/lend/lend_/create-lend-vektor-lend.js +78 -0
- package/tools/vektor/lend/lend_/create-lend-vektor-lend.js.map +1 -0
- package/tools/vektor/lend/lend_/create-lend-vektor-lend.mjs +74 -0
- package/tools/vektor/lend/lend_/create-lend-vektor-lend.mjs.map +1 -0
- package/tools/vektor/lend/markets/list-historical-lend-vektor-markets.d.mts +45 -0
- package/tools/vektor/lend/markets/list-historical-lend-vektor-markets.d.mts.map +1 -0
- package/tools/vektor/lend/markets/list-historical-lend-vektor-markets.d.ts +45 -0
- package/tools/vektor/lend/markets/list-historical-lend-vektor-markets.d.ts.map +1 -0
- package/tools/vektor/lend/markets/list-historical-lend-vektor-markets.js +138 -0
- package/tools/vektor/lend/markets/list-historical-lend-vektor-markets.js.map +1 -0
- package/tools/vektor/lend/markets/list-historical-lend-vektor-markets.mjs +134 -0
- package/tools/vektor/lend/markets/list-historical-lend-vektor-markets.mjs.map +1 -0
- package/tools/vektor/lend/markets/list-lend-vektor-markets.d.mts +45 -0
- package/tools/vektor/lend/markets/list-lend-vektor-markets.d.mts.map +1 -0
- package/tools/vektor/lend/markets/list-lend-vektor-markets.d.ts +45 -0
- package/tools/vektor/lend/markets/list-lend-vektor-markets.d.ts.map +1 -0
- package/tools/vektor/lend/markets/list-lend-vektor-markets.js +138 -0
- package/tools/vektor/lend/markets/list-lend-vektor-markets.js.map +1 -0
- package/tools/vektor/lend/markets/list-lend-vektor-markets.mjs +134 -0
- package/tools/vektor/lend/markets/list-lend-vektor-markets.mjs.map +1 -0
- package/tools/vektor/lend/positions/list-historical-lend-vektor-positions.d.mts +45 -0
- package/tools/vektor/lend/positions/list-historical-lend-vektor-positions.d.mts.map +1 -0
- package/tools/vektor/lend/positions/list-historical-lend-vektor-positions.d.ts +45 -0
- package/tools/vektor/lend/positions/list-historical-lend-vektor-positions.d.ts.map +1 -0
- package/tools/vektor/lend/positions/list-historical-lend-vektor-positions.js +159 -0
- package/tools/vektor/lend/positions/list-historical-lend-vektor-positions.js.map +1 -0
- package/tools/vektor/lend/positions/list-historical-lend-vektor-positions.mjs +155 -0
- package/tools/vektor/lend/positions/list-historical-lend-vektor-positions.mjs.map +1 -0
- package/tools/vektor/lend/positions/list-lend-vektor-positions.d.mts +45 -0
- package/tools/vektor/lend/positions/list-lend-vektor-positions.d.mts.map +1 -0
- package/tools/vektor/lend/positions/list-lend-vektor-positions.d.ts +45 -0
- package/tools/vektor/lend/positions/list-lend-vektor-positions.d.ts.map +1 -0
- package/tools/vektor/lend/positions/list-lend-vektor-positions.js +159 -0
- package/tools/vektor/lend/positions/list-lend-vektor-positions.js.map +1 -0
- package/tools/vektor/lend/positions/list-lend-vektor-positions.mjs +155 -0
- package/tools/vektor/lend/positions/list-lend-vektor-positions.mjs.map +1 -0
- package/tools/vektor/lend/set-collateral/create-lend-vektor-set-collateral.d.mts +45 -0
- package/tools/vektor/lend/set-collateral/create-lend-vektor-set-collateral.d.mts.map +1 -0
- package/tools/vektor/lend/set-collateral/create-lend-vektor-set-collateral.d.ts +45 -0
- package/tools/vektor/lend/set-collateral/create-lend-vektor-set-collateral.d.ts.map +1 -0
- package/tools/vektor/lend/set-collateral/create-lend-vektor-set-collateral.js +60 -0
- package/tools/vektor/lend/set-collateral/create-lend-vektor-set-collateral.js.map +1 -0
- package/tools/vektor/lend/set-collateral/create-lend-vektor-set-collateral.mjs +56 -0
- package/tools/vektor/lend/set-collateral/create-lend-vektor-set-collateral.mjs.map +1 -0
- package/tools/vektor/lend/withdraw/create-lend-vektor-withdraw.d.mts +45 -0
- package/tools/vektor/lend/withdraw/create-lend-vektor-withdraw.d.mts.map +1 -0
- package/tools/vektor/lend/withdraw/create-lend-vektor-withdraw.d.ts +45 -0
- package/tools/vektor/lend/withdraw/create-lend-vektor-withdraw.d.ts.map +1 -0
- package/tools/vektor/lend/withdraw/create-lend-vektor-withdraw.js +70 -0
- package/tools/vektor/lend/withdraw/create-lend-vektor-withdraw.js.map +1 -0
- package/tools/vektor/lend/withdraw/create-lend-vektor-withdraw.mjs +66 -0
- package/tools/vektor/lend/withdraw/create-lend-vektor-withdraw.mjs.map +1 -0
- package/tools/vektor/lock/markets/list-lock-vektor-markets.d.mts +45 -0
- package/tools/vektor/lock/markets/list-lock-vektor-markets.d.mts.map +1 -0
- package/tools/vektor/lock/markets/list-lock-vektor-markets.d.ts +45 -0
- package/tools/vektor/lock/markets/list-lock-vektor-markets.d.ts.map +1 -0
- package/tools/vektor/lock/markets/list-lock-vektor-markets.js +73 -0
- package/tools/vektor/lock/markets/list-lock-vektor-markets.js.map +1 -0
- package/tools/vektor/lock/markets/list-lock-vektor-markets.mjs +69 -0
- package/tools/vektor/lock/markets/list-lock-vektor-markets.mjs.map +1 -0
- package/tools/vektor/lock/positions/list-lock-vektor-positions.d.mts +45 -0
- package/tools/vektor/lock/positions/list-lock-vektor-positions.d.mts.map +1 -0
- package/tools/vektor/lock/positions/list-lock-vektor-positions.d.ts +45 -0
- package/tools/vektor/lock/positions/list-lock-vektor-positions.d.ts.map +1 -0
- package/tools/vektor/lock/positions/list-lock-vektor-positions.js +86 -0
- package/tools/vektor/lock/positions/list-lock-vektor-positions.js.map +1 -0
- package/tools/vektor/lock/positions/list-lock-vektor-positions.mjs +82 -0
- package/tools/vektor/lock/positions/list-lock-vektor-positions.mjs.map +1 -0
- package/tools/vektor/lp/deposit-quote/create-lp-vektor-deposit-quote.d.mts +45 -0
- package/tools/vektor/lp/deposit-quote/create-lp-vektor-deposit-quote.d.mts.map +1 -0
- package/tools/vektor/lp/deposit-quote/create-lp-vektor-deposit-quote.d.ts +45 -0
- package/tools/vektor/lp/deposit-quote/create-lp-vektor-deposit-quote.d.ts.map +1 -0
- package/tools/vektor/lp/deposit-quote/create-lp-vektor-deposit-quote.js +229 -0
- package/tools/vektor/lp/deposit-quote/create-lp-vektor-deposit-quote.js.map +1 -0
- package/tools/vektor/lp/deposit-quote/create-lp-vektor-deposit-quote.mjs +225 -0
- package/tools/vektor/lp/deposit-quote/create-lp-vektor-deposit-quote.mjs.map +1 -0
- package/tools/vektor/lp/pools/list-historical-lp-vektor-pools.d.mts +45 -0
- package/tools/vektor/lp/pools/list-historical-lp-vektor-pools.d.mts.map +1 -0
- package/tools/vektor/lp/pools/list-historical-lp-vektor-pools.d.ts +45 -0
- package/tools/vektor/lp/pools/list-historical-lp-vektor-pools.d.ts.map +1 -0
- package/tools/vektor/lp/pools/list-historical-lp-vektor-pools.js +135 -0
- package/tools/vektor/lp/pools/list-historical-lp-vektor-pools.js.map +1 -0
- package/tools/vektor/lp/pools/list-historical-lp-vektor-pools.mjs +131 -0
- package/tools/vektor/lp/pools/list-historical-lp-vektor-pools.mjs.map +1 -0
- package/tools/vektor/lp/pools/list-lp-vektor-pools.d.mts +45 -0
- package/tools/vektor/lp/pools/list-lp-vektor-pools.d.mts.map +1 -0
- package/tools/vektor/lp/pools/list-lp-vektor-pools.d.ts +45 -0
- package/tools/vektor/lp/pools/list-lp-vektor-pools.d.ts.map +1 -0
- package/tools/vektor/lp/pools/list-lp-vektor-pools.js +135 -0
- package/tools/vektor/lp/pools/list-lp-vektor-pools.js.map +1 -0
- package/tools/vektor/lp/pools/list-lp-vektor-pools.mjs +131 -0
- package/tools/vektor/lp/pools/list-lp-vektor-pools.mjs.map +1 -0
- package/tools/vektor/lp/positions/list-historical-lp-vektor-positions.d.mts +45 -0
- package/tools/vektor/lp/positions/list-historical-lp-vektor-positions.d.mts.map +1 -0
- package/tools/vektor/lp/positions/list-historical-lp-vektor-positions.d.ts +45 -0
- package/tools/vektor/lp/positions/list-historical-lp-vektor-positions.d.ts.map +1 -0
- package/tools/vektor/lp/positions/list-historical-lp-vektor-positions.js +166 -0
- package/tools/vektor/lp/positions/list-historical-lp-vektor-positions.js.map +1 -0
- package/tools/vektor/lp/positions/list-historical-lp-vektor-positions.mjs +162 -0
- package/tools/vektor/lp/positions/list-historical-lp-vektor-positions.mjs.map +1 -0
- package/tools/vektor/lp/positions/list-lp-vektor-positions.d.mts +45 -0
- package/tools/vektor/lp/positions/list-lp-vektor-positions.d.mts.map +1 -0
- package/tools/vektor/lp/positions/list-lp-vektor-positions.d.ts +45 -0
- package/tools/vektor/lp/positions/list-lp-vektor-positions.d.ts.map +1 -0
- package/tools/vektor/lp/positions/list-lp-vektor-positions.js +166 -0
- package/tools/vektor/lp/positions/list-lp-vektor-positions.js.map +1 -0
- package/tools/vektor/lp/positions/list-lp-vektor-positions.mjs +162 -0
- package/tools/vektor/lp/positions/list-lp-vektor-positions.mjs.map +1 -0
- package/tools/vektor/lp/withdraw-quote/create-lp-vektor-withdraw-quote.d.mts +45 -0
- package/tools/vektor/lp/withdraw-quote/create-lp-vektor-withdraw-quote.d.mts.map +1 -0
- package/tools/vektor/lp/withdraw-quote/create-lp-vektor-withdraw-quote.d.ts +45 -0
- package/tools/vektor/lp/withdraw-quote/create-lp-vektor-withdraw-quote.d.ts.map +1 -0
- package/tools/vektor/lp/withdraw-quote/create-lp-vektor-withdraw-quote.js +185 -0
- package/tools/vektor/lp/withdraw-quote/create-lp-vektor-withdraw-quote.js.map +1 -0
- package/tools/vektor/lp/withdraw-quote/create-lp-vektor-withdraw-quote.mjs +181 -0
- package/tools/vektor/lp/withdraw-quote/create-lp-vektor-withdraw-quote.mjs.map +1 -0
- package/tools/vektor/move/create-vektor-move.d.mts +45 -0
- package/tools/vektor/move/create-vektor-move.d.mts.map +1 -0
- package/tools/vektor/move/create-vektor-move.d.ts +45 -0
- package/tools/vektor/move/create-vektor-move.d.ts.map +1 -0
- package/tools/vektor/move/create-vektor-move.js +68 -0
- package/tools/vektor/move/create-vektor-move.js.map +1 -0
- package/tools/vektor/move/create-vektor-move.mjs +64 -0
- package/tools/vektor/move/create-vektor-move.mjs.map +1 -0
- package/tools/vektor/prices/list-historical-vektor-prices.d.mts +45 -0
- package/tools/vektor/prices/list-historical-vektor-prices.d.mts.map +1 -0
- package/tools/vektor/prices/list-historical-vektor-prices.d.ts +45 -0
- package/tools/vektor/prices/list-historical-vektor-prices.d.ts.map +1 -0
- package/tools/vektor/prices/list-historical-vektor-prices.js +55 -0
- package/tools/vektor/prices/list-historical-vektor-prices.js.map +1 -0
- package/tools/vektor/prices/list-historical-vektor-prices.mjs +51 -0
- package/tools/vektor/prices/list-historical-vektor-prices.mjs.map +1 -0
- package/tools/vektor/prices/list-vektor-prices.d.mts +45 -0
- package/tools/vektor/prices/list-vektor-prices.d.mts.map +1 -0
- package/tools/vektor/prices/list-vektor-prices.d.ts +45 -0
- package/tools/vektor/prices/list-vektor-prices.d.ts.map +1 -0
- package/tools/vektor/prices/list-vektor-prices.js +55 -0
- package/tools/vektor/prices/list-vektor-prices.js.map +1 -0
- package/tools/vektor/prices/list-vektor-prices.mjs +51 -0
- package/tools/vektor/prices/list-vektor-prices.mjs.map +1 -0
- package/tools/vektor/registry/assets/list-registry-vektor-assets.d.mts +45 -0
- package/tools/vektor/registry/assets/list-registry-vektor-assets.d.mts.map +1 -0
- package/tools/vektor/registry/assets/list-registry-vektor-assets.d.ts +45 -0
- package/tools/vektor/registry/assets/list-registry-vektor-assets.d.ts.map +1 -0
- package/tools/vektor/registry/assets/list-registry-vektor-assets.js +57 -0
- package/tools/vektor/registry/assets/list-registry-vektor-assets.js.map +1 -0
- package/tools/vektor/registry/assets/list-registry-vektor-assets.mjs +53 -0
- package/tools/vektor/registry/assets/list-registry-vektor-assets.mjs.map +1 -0
- package/tools/vektor/registry/blockchains/list-registry-vektor-blockchains.d.mts +45 -0
- package/tools/vektor/registry/blockchains/list-registry-vektor-blockchains.d.mts.map +1 -0
- package/tools/vektor/registry/blockchains/list-registry-vektor-blockchains.d.ts +45 -0
- package/tools/vektor/registry/blockchains/list-registry-vektor-blockchains.d.ts.map +1 -0
- package/tools/vektor/registry/blockchains/list-registry-vektor-blockchains.js +47 -0
- package/tools/vektor/registry/blockchains/list-registry-vektor-blockchains.js.map +1 -0
- package/tools/vektor/registry/blockchains/list-registry-vektor-blockchains.mjs +43 -0
- package/tools/vektor/registry/blockchains/list-registry-vektor-blockchains.mjs.map +1 -0
- package/tools/vektor/registry/borrow-markets/list-registry-vektor-borrow-markets.d.mts +45 -0
- package/tools/vektor/registry/borrow-markets/list-registry-vektor-borrow-markets.d.mts.map +1 -0
- package/tools/vektor/registry/borrow-markets/list-registry-vektor-borrow-markets.d.ts +45 -0
- package/tools/vektor/registry/borrow-markets/list-registry-vektor-borrow-markets.d.ts.map +1 -0
- package/tools/vektor/registry/borrow-markets/list-registry-vektor-borrow-markets.js +78 -0
- package/tools/vektor/registry/borrow-markets/list-registry-vektor-borrow-markets.js.map +1 -0
- package/tools/vektor/registry/borrow-markets/list-registry-vektor-borrow-markets.mjs +74 -0
- package/tools/vektor/registry/borrow-markets/list-registry-vektor-borrow-markets.mjs.map +1 -0
- package/tools/vektor/registry/errors/list-registry-vektor-errors.d.mts +45 -0
- package/tools/vektor/registry/errors/list-registry-vektor-errors.d.mts.map +1 -0
- package/tools/vektor/registry/errors/list-registry-vektor-errors.d.ts +45 -0
- package/tools/vektor/registry/errors/list-registry-vektor-errors.d.ts.map +1 -0
- package/tools/vektor/registry/errors/list-registry-vektor-errors.js +43 -0
- package/tools/vektor/registry/errors/list-registry-vektor-errors.js.map +1 -0
- package/tools/vektor/registry/errors/list-registry-vektor-errors.mjs +39 -0
- package/tools/vektor/registry/errors/list-registry-vektor-errors.mjs.map +1 -0
- package/tools/vektor/registry/lend-markets/list-registry-vektor-lend-markets.d.mts +45 -0
- package/tools/vektor/registry/lend-markets/list-registry-vektor-lend-markets.d.mts.map +1 -0
- package/tools/vektor/registry/lend-markets/list-registry-vektor-lend-markets.d.ts +45 -0
- package/tools/vektor/registry/lend-markets/list-registry-vektor-lend-markets.d.ts.map +1 -0
- package/tools/vektor/registry/lend-markets/list-registry-vektor-lend-markets.js +78 -0
- package/tools/vektor/registry/lend-markets/list-registry-vektor-lend-markets.js.map +1 -0
- package/tools/vektor/registry/lend-markets/list-registry-vektor-lend-markets.mjs +74 -0
- package/tools/vektor/registry/lend-markets/list-registry-vektor-lend-markets.mjs.map +1 -0
- package/tools/vektor/registry/lp-pools/list-registry-vektor-lp-pools.d.mts +45 -0
- package/tools/vektor/registry/lp-pools/list-registry-vektor-lp-pools.d.mts.map +1 -0
- package/tools/vektor/registry/lp-pools/list-registry-vektor-lp-pools.d.ts +45 -0
- package/tools/vektor/registry/lp-pools/list-registry-vektor-lp-pools.d.ts.map +1 -0
- package/tools/vektor/registry/lp-pools/list-registry-vektor-lp-pools.js +78 -0
- package/tools/vektor/registry/lp-pools/list-registry-vektor-lp-pools.js.map +1 -0
- package/tools/vektor/registry/lp-pools/list-registry-vektor-lp-pools.mjs +74 -0
- package/tools/vektor/registry/lp-pools/list-registry-vektor-lp-pools.mjs.map +1 -0
- package/tools/vektor/registry/venues/list-registry-vektor-venues.d.mts +45 -0
- package/tools/vektor/registry/venues/list-registry-vektor-venues.d.mts.map +1 -0
- package/tools/vektor/registry/venues/list-registry-vektor-venues.d.ts +45 -0
- package/tools/vektor/registry/venues/list-registry-vektor-venues.d.ts.map +1 -0
- package/tools/vektor/registry/venues/list-registry-vektor-venues.js +47 -0
- package/tools/vektor/registry/venues/list-registry-vektor-venues.js.map +1 -0
- package/tools/vektor/registry/venues/list-registry-vektor-venues.mjs +43 -0
- package/tools/vektor/registry/venues/list-registry-vektor-venues.mjs.map +1 -0
- package/tools/vektor/sell/quotes/list-sell-vektor-quotes.d.mts +45 -0
- package/tools/vektor/sell/quotes/list-sell-vektor-quotes.d.mts.map +1 -0
- package/tools/vektor/sell/quotes/list-sell-vektor-quotes.d.ts +45 -0
- package/tools/vektor/sell/quotes/list-sell-vektor-quotes.d.ts.map +1 -0
- package/tools/vektor/sell/quotes/list-sell-vektor-quotes.js +78 -0
- package/tools/vektor/sell/quotes/list-sell-vektor-quotes.js.map +1 -0
- package/tools/vektor/sell/quotes/list-sell-vektor-quotes.mjs +74 -0
- package/tools/vektor/sell/quotes/list-sell-vektor-quotes.mjs.map +1 -0
- package/tools/vektor/sell/sell_/create-sell-vektor-sell.d.mts +45 -0
- package/tools/vektor/sell/sell_/create-sell-vektor-sell.d.mts.map +1 -0
- package/tools/vektor/sell/sell_/create-sell-vektor-sell.d.ts +45 -0
- package/tools/vektor/sell/sell_/create-sell-vektor-sell.d.ts.map +1 -0
- package/tools/vektor/sell/sell_/create-sell-vektor-sell.js +86 -0
- package/tools/vektor/sell/sell_/create-sell-vektor-sell.js.map +1 -0
- package/tools/vektor/sell/sell_/create-sell-vektor-sell.mjs +82 -0
- package/tools/vektor/sell/sell_/create-sell-vektor-sell.mjs.map +1 -0
- package/tools/vektor/vote/markets/list-vote-vektor-markets.d.mts +45 -0
- package/tools/vektor/vote/markets/list-vote-vektor-markets.d.mts.map +1 -0
- package/tools/vektor/vote/markets/list-vote-vektor-markets.d.ts +45 -0
- package/tools/vektor/vote/markets/list-vote-vektor-markets.d.ts.map +1 -0
- package/tools/vektor/vote/markets/list-vote-vektor-markets.js +72 -0
- package/tools/vektor/vote/markets/list-vote-vektor-markets.js.map +1 -0
- package/tools/vektor/vote/markets/list-vote-vektor-markets.mjs +68 -0
- package/tools/vektor/vote/markets/list-vote-vektor-markets.mjs.map +1 -0
- package/tools/vektor/vote/rewards/list-vote-vektor-rewards.d.mts +45 -0
- package/tools/vektor/vote/rewards/list-vote-vektor-rewards.d.mts.map +1 -0
- package/tools/vektor/vote/rewards/list-vote-vektor-rewards.d.ts +45 -0
- package/tools/vektor/vote/rewards/list-vote-vektor-rewards.d.ts.map +1 -0
- package/tools/vektor/vote/rewards/list-vote-vektor-rewards.js +85 -0
- package/tools/vektor/vote/rewards/list-vote-vektor-rewards.js.map +1 -0
- package/tools/vektor/vote/rewards/list-vote-vektor-rewards.mjs +81 -0
- package/tools/vektor/vote/rewards/list-vote-vektor-rewards.mjs.map +1 -0
- package/tools/vektor/wrap/unwrap/create-wrap-vektor-unwrap.d.mts +45 -0
- package/tools/vektor/wrap/unwrap/create-wrap-vektor-unwrap.d.mts.map +1 -0
- package/tools/vektor/wrap/unwrap/create-wrap-vektor-unwrap.d.ts +45 -0
- package/tools/vektor/wrap/unwrap/create-wrap-vektor-unwrap.d.ts.map +1 -0
- package/tools/vektor/wrap/unwrap/create-wrap-vektor-unwrap.js +57 -0
- package/tools/vektor/wrap/unwrap/create-wrap-vektor-unwrap.js.map +1 -0
- package/tools/vektor/wrap/unwrap/create-wrap-vektor-unwrap.mjs +53 -0
- package/tools/vektor/wrap/unwrap/create-wrap-vektor-unwrap.mjs.map +1 -0
- package/tools/vektor/wrap/wrap_/create-wrap-vektor-wrap.d.mts +45 -0
- package/tools/vektor/wrap/wrap_/create-wrap-vektor-wrap.d.mts.map +1 -0
- package/tools/vektor/wrap/wrap_/create-wrap-vektor-wrap.d.ts +45 -0
- package/tools/vektor/wrap/wrap_/create-wrap-vektor-wrap.d.ts.map +1 -0
- package/tools/vektor/wrap/wrap_/create-wrap-vektor-wrap.js +57 -0
- package/tools/vektor/wrap/wrap_/create-wrap-vektor-wrap.js.map +1 -0
- package/tools/vektor/wrap/wrap_/create-wrap-vektor-wrap.mjs +53 -0
- package/tools/vektor/wrap/wrap_/create-wrap-vektor-wrap.mjs.map +1 -0
- package/tools.d.mts +2 -0
- package/tools.d.mts.map +1 -0
- package/tools.d.ts +2 -0
- package/tools.d.ts.map +1 -0
- package/tools.js +18 -0
- package/tools.js.map +1 -0
- package/tools.mjs +2 -0
- package/tools.mjs.map +1 -0
package/server.d.mts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.d.mts","sourceRoot":"","sources":["src/server.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,MAAM,2CAA2C;OAC3D,EAAE,SAAS,EAAE,MAAM,yCAAyC;OAC5D,EAAE,QAAQ,EAAa,eAAe,EAAS;OAC/C,EAKL,IAAI,EACL,MAAM,oCAAoC;OACpC,EAAE,aAAa,EAAE,MAAM,uBAAuB;OAC9C,WAAW,MAAM,uBAAuB;OACxC,EAEL,kBAAkB,EAInB;OAGM,EAAE,UAAU,EAAE;OAEd,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE;OACV,EAAE,aAAa,EAAE,MAAM,uBAAuB;OAC9C,EAAE,SAAS,EAAE;AAEpB,eAAO,MAAM,YAAY,iBAOtB,CAAC;AAGJ,eAAO,MAAM,MAAM,WAAiB,CAAC;AAErC;;;GAGG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE;IACpC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,QA0FA;AAED;;GAEG;AACH,wBAAsB,WAAW,CAAC,SAAS,EAAE,QAAQ,EAAE,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAuBlG;AAED;;GAEG;AACH,wBAAsB,cAAc,CAClC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,eAAe,EACxB,MAAM,EAAE,WAAW,EACnB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EACzC,oBAAoB,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,mDAOnD;AAED,eAAO,MAAM,OAAO,GAAI,KAAK,MAAM,KAAG,MAAM,GAAG,SAO9C,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,KAAK,MAAM,KAAG,MAM5C,CAAC"}
|
package/server.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
2
|
+
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
3
|
+
import { Endpoint, HandlerFunction } from "./tools.js";
|
|
4
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
5
|
+
import { ClientOptions } from '@nirvana-labs/nirvana';
|
|
6
|
+
import NirvanaLabs from '@nirvana-labs/nirvana';
|
|
7
|
+
import { ClientCapabilities } from "./compat.js";
|
|
8
|
+
import { McpOptions } from "./options.js";
|
|
9
|
+
export { McpOptions } from "./options.js";
|
|
10
|
+
export { ClientType } from "./compat.js";
|
|
11
|
+
export { Filter } from "./tools.js";
|
|
12
|
+
export { ClientOptions } from '@nirvana-labs/nirvana';
|
|
13
|
+
export { endpoints } from "./tools.js";
|
|
14
|
+
export declare const newMcpServer: () => McpServer;
|
|
15
|
+
export declare const server: McpServer;
|
|
16
|
+
/**
|
|
17
|
+
* Initializes the provided MCP Server with the given tools and handlers.
|
|
18
|
+
* If not provided, the default client, tools and handlers will be used.
|
|
19
|
+
*/
|
|
20
|
+
export declare function initMcpServer(params: {
|
|
21
|
+
server: Server | McpServer;
|
|
22
|
+
clientOptions?: ClientOptions;
|
|
23
|
+
mcpOptions?: McpOptions;
|
|
24
|
+
}): void;
|
|
25
|
+
/**
|
|
26
|
+
* Selects the tools to include in the MCP Server based on the provided options.
|
|
27
|
+
*/
|
|
28
|
+
export declare function selectTools(endpoints: Endpoint[], options?: McpOptions): Promise<Endpoint[]>;
|
|
29
|
+
/**
|
|
30
|
+
* Runs the provided handler with the given client and arguments.
|
|
31
|
+
*/
|
|
32
|
+
export declare function executeHandler(tool: Tool, handler: HandlerFunction, client: NirvanaLabs, args: Record<string, unknown> | undefined, compatibilityOptions?: Partial<ClientCapabilities>): Promise<import("./tools/types").ToolCallResult>;
|
|
33
|
+
export declare const readEnv: (env: string) => string | undefined;
|
|
34
|
+
export declare const readEnvOrError: (env: string) => string;
|
|
35
|
+
//# sourceMappingURL=server.d.ts.map
|
package/server.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["src/server.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,MAAM,2CAA2C;OAC3D,EAAE,SAAS,EAAE,MAAM,yCAAyC;OAC5D,EAAE,QAAQ,EAAa,eAAe,EAAS;OAC/C,EAKL,IAAI,EACL,MAAM,oCAAoC;OACpC,EAAE,aAAa,EAAE,MAAM,uBAAuB;OAC9C,WAAW,MAAM,uBAAuB;OACxC,EAEL,kBAAkB,EAInB;OAGM,EAAE,UAAU,EAAE;OAEd,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE;OACV,EAAE,aAAa,EAAE,MAAM,uBAAuB;OAC9C,EAAE,SAAS,EAAE;AAEpB,eAAO,MAAM,YAAY,iBAOtB,CAAC;AAGJ,eAAO,MAAM,MAAM,WAAiB,CAAC;AAErC;;;GAGG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE;IACpC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,QA0FA;AAED;;GAEG;AACH,wBAAsB,WAAW,CAAC,SAAS,EAAE,QAAQ,EAAE,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAuBlG;AAED;;GAEG;AACH,wBAAsB,cAAc,CAClC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,eAAe,EACxB,MAAM,EAAE,WAAW,EACnB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EACzC,oBAAoB,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,mDAOnD;AAED,eAAO,MAAM,OAAO,GAAI,KAAK,MAAM,KAAG,MAAM,GAAG,SAO9C,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,KAAK,MAAM,KAAG,MAM5C,CAAC"}
|
package/server.js
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.readEnvOrError = exports.readEnv = exports.server = exports.newMcpServer = exports.endpoints = exports.ClientType = void 0;
|
|
8
|
+
exports.initMcpServer = initMcpServer;
|
|
9
|
+
exports.selectTools = selectTools;
|
|
10
|
+
exports.executeHandler = executeHandler;
|
|
11
|
+
const mcp_js_1 = require("@modelcontextprotocol/sdk/server/mcp.js");
|
|
12
|
+
const tools_1 = require("./tools.js");
|
|
13
|
+
const types_js_1 = require("@modelcontextprotocol/sdk/types.js");
|
|
14
|
+
const nirvana_1 = __importDefault(require("@nirvana-labs/nirvana"));
|
|
15
|
+
const compat_1 = require("./compat.js");
|
|
16
|
+
const dynamic_tools_1 = require("./dynamic-tools.js");
|
|
17
|
+
const code_tool_1 = require("./code-tool.js");
|
|
18
|
+
var compat_2 = require("./compat.js");
|
|
19
|
+
Object.defineProperty(exports, "ClientType", { enumerable: true, get: function () { return compat_2.ClientType; } });
|
|
20
|
+
var tools_2 = require("./tools.js");
|
|
21
|
+
Object.defineProperty(exports, "endpoints", { enumerable: true, get: function () { return tools_2.endpoints; } });
|
|
22
|
+
const newMcpServer = () => new mcp_js_1.McpServer({
|
|
23
|
+
name: 'nirvana_labs_nirvana_api',
|
|
24
|
+
version: '1.17.0',
|
|
25
|
+
}, { capabilities: { tools: {}, logging: {} } });
|
|
26
|
+
exports.newMcpServer = newMcpServer;
|
|
27
|
+
// Create server instance
|
|
28
|
+
exports.server = (0, exports.newMcpServer)();
|
|
29
|
+
/**
|
|
30
|
+
* Initializes the provided MCP Server with the given tools and handlers.
|
|
31
|
+
* If not provided, the default client, tools and handlers will be used.
|
|
32
|
+
*/
|
|
33
|
+
function initMcpServer(params) {
|
|
34
|
+
const server = params.server instanceof mcp_js_1.McpServer ? params.server.server : params.server;
|
|
35
|
+
const mcpOptions = params.mcpOptions ?? {};
|
|
36
|
+
let providedEndpoints = null;
|
|
37
|
+
let endpointMap = null;
|
|
38
|
+
const initTools = async (implementation) => {
|
|
39
|
+
if (implementation && (!mcpOptions.client || mcpOptions.client === 'infer')) {
|
|
40
|
+
mcpOptions.client =
|
|
41
|
+
implementation.name.toLowerCase().includes('claude') ? 'claude'
|
|
42
|
+
: implementation.name.toLowerCase().includes('cursor') ? 'cursor'
|
|
43
|
+
: undefined;
|
|
44
|
+
mcpOptions.capabilities = {
|
|
45
|
+
...(mcpOptions.client && compat_1.knownClients[mcpOptions.client]),
|
|
46
|
+
...mcpOptions.capabilities,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
providedEndpoints ?? (providedEndpoints = await selectTools(tools_1.endpoints, mcpOptions));
|
|
50
|
+
endpointMap ?? (endpointMap = Object.fromEntries(providedEndpoints.map((endpoint) => [endpoint.tool.name, endpoint])));
|
|
51
|
+
};
|
|
52
|
+
const logAtLevel = (level) => (message, ...rest) => {
|
|
53
|
+
void server.sendLoggingMessage({
|
|
54
|
+
level,
|
|
55
|
+
data: { message, rest },
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
const logger = {
|
|
59
|
+
debug: logAtLevel('debug'),
|
|
60
|
+
info: logAtLevel('info'),
|
|
61
|
+
warn: logAtLevel('warning'),
|
|
62
|
+
error: logAtLevel('error'),
|
|
63
|
+
};
|
|
64
|
+
let client = new nirvana_1.default({
|
|
65
|
+
logger,
|
|
66
|
+
...params.clientOptions,
|
|
67
|
+
defaultHeaders: {
|
|
68
|
+
...params.clientOptions?.defaultHeaders,
|
|
69
|
+
'X-Stainless-MCP': 'true',
|
|
70
|
+
},
|
|
71
|
+
});
|
|
72
|
+
server.setRequestHandler(types_js_1.ListToolsRequestSchema, async () => {
|
|
73
|
+
if (providedEndpoints === null) {
|
|
74
|
+
await initTools(server.getClientVersion());
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
tools: providedEndpoints.map((endpoint) => endpoint.tool),
|
|
78
|
+
};
|
|
79
|
+
});
|
|
80
|
+
server.setRequestHandler(types_js_1.CallToolRequestSchema, async (request) => {
|
|
81
|
+
if (endpointMap === null) {
|
|
82
|
+
await initTools(server.getClientVersion());
|
|
83
|
+
}
|
|
84
|
+
const { name, arguments: args } = request.params;
|
|
85
|
+
const endpoint = endpointMap[name];
|
|
86
|
+
if (!endpoint) {
|
|
87
|
+
throw new Error(`Unknown tool: ${name}`);
|
|
88
|
+
}
|
|
89
|
+
return executeHandler(endpoint.tool, endpoint.handler, client, args, mcpOptions.capabilities);
|
|
90
|
+
});
|
|
91
|
+
server.setRequestHandler(types_js_1.SetLevelRequestSchema, async (request) => {
|
|
92
|
+
const { level } = request.params;
|
|
93
|
+
switch (level) {
|
|
94
|
+
case 'debug':
|
|
95
|
+
client = client.withOptions({ logLevel: 'debug' });
|
|
96
|
+
break;
|
|
97
|
+
case 'info':
|
|
98
|
+
client = client.withOptions({ logLevel: 'info' });
|
|
99
|
+
break;
|
|
100
|
+
case 'notice':
|
|
101
|
+
case 'warning':
|
|
102
|
+
client = client.withOptions({ logLevel: 'warn' });
|
|
103
|
+
break;
|
|
104
|
+
case 'error':
|
|
105
|
+
client = client.withOptions({ logLevel: 'error' });
|
|
106
|
+
break;
|
|
107
|
+
default:
|
|
108
|
+
client = client.withOptions({ logLevel: 'off' });
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
return {};
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Selects the tools to include in the MCP Server based on the provided options.
|
|
116
|
+
*/
|
|
117
|
+
async function selectTools(endpoints, options) {
|
|
118
|
+
const filteredEndpoints = (0, tools_1.query)(options?.filters ?? [], endpoints);
|
|
119
|
+
let includedTools = filteredEndpoints;
|
|
120
|
+
if (includedTools.length > 0) {
|
|
121
|
+
if (options?.includeDynamicTools) {
|
|
122
|
+
includedTools = (0, dynamic_tools_1.dynamicTools)(includedTools);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
if (options?.includeAllTools) {
|
|
127
|
+
includedTools = endpoints;
|
|
128
|
+
}
|
|
129
|
+
else if (options?.includeDynamicTools) {
|
|
130
|
+
includedTools = (0, dynamic_tools_1.dynamicTools)(endpoints);
|
|
131
|
+
}
|
|
132
|
+
else if (options?.includeCodeTools) {
|
|
133
|
+
includedTools = [await (0, code_tool_1.codeTool)()];
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
includedTools = endpoints;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
const capabilities = { ...compat_1.defaultClientCapabilities, ...options?.capabilities };
|
|
140
|
+
return (0, compat_1.applyCompatibilityTransformations)(includedTools, capabilities);
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Runs the provided handler with the given client and arguments.
|
|
144
|
+
*/
|
|
145
|
+
async function executeHandler(tool, handler, client, args, compatibilityOptions) {
|
|
146
|
+
const options = { ...compat_1.defaultClientCapabilities, ...compatibilityOptions };
|
|
147
|
+
if (!options.validJson && args) {
|
|
148
|
+
args = (0, compat_1.parseEmbeddedJSON)(args, tool.inputSchema);
|
|
149
|
+
}
|
|
150
|
+
return await handler(client, args || {});
|
|
151
|
+
}
|
|
152
|
+
const readEnv = (env) => {
|
|
153
|
+
if (typeof globalThis.process !== 'undefined') {
|
|
154
|
+
return globalThis.process.env?.[env]?.trim();
|
|
155
|
+
}
|
|
156
|
+
else if (typeof globalThis.Deno !== 'undefined') {
|
|
157
|
+
return globalThis.Deno.env?.get?.(env)?.trim();
|
|
158
|
+
}
|
|
159
|
+
return;
|
|
160
|
+
};
|
|
161
|
+
exports.readEnv = readEnv;
|
|
162
|
+
const readEnvOrError = (env) => {
|
|
163
|
+
let envValue = (0, exports.readEnv)(env);
|
|
164
|
+
if (envValue === undefined) {
|
|
165
|
+
throw new Error(`Environment variable ${env} is not set`);
|
|
166
|
+
}
|
|
167
|
+
return envValue;
|
|
168
|
+
};
|
|
169
|
+
exports.readEnvOrError = readEnvOrError;
|
|
170
|
+
//# sourceMappingURL=server.js.map
|
package/server.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["src/server.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;AA+CtF,sCA8FC;AAKD,kCAuBC;AAKD,wCAYC;AAvLD,oEAAoE;AACpE,sCAAsE;AACtE,iEAM4C;AAE5C,oEAAgD;AAChD,wCAMkB;AAClB,sDAA+C;AAC/C,8CAAuC;AAIvC,sCAAsC;AAA7B,oGAAA,UAAU,OAAA;AAGnB,oCAAoC;AAA3B,kGAAA,SAAS,OAAA;AAEX,MAAM,YAAY,GAAG,GAAG,EAAE,CAC/B,IAAI,kBAAS,CACX;IACE,IAAI,EAAE,0BAA0B;IAChC,OAAO,EAAE,QAAQ;CAClB,EACD,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,CAC7C,C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,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IACnD,CAAC;IACD,OAAO,MAAM,OAAO,CAAC,MAAM,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;AAC3C,CAAC;AAEM,MAAM,OAAO,GAAG,CAAC,GAAW,EAAsB,EAAE;IACzD,IAAI,OAAQ,UAAkB,CAAC,OAAO,KAAK,WAAW,EAAE,CAAC;QACvD,OAAQ,UAAkB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC;IACxD,CAAC;SAAM,IAAI,OAAQ,UAAkB,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;QAC3D,OAAQ,UAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC;IAC1D,CAAC;IACD,OAAO;AACT,CAAC,CAAC;AAPW,QAAA,OAAO,WAOlB;AAEK,MAAM,cAAc,GAAG,CAAC,GAAW,EAAU,EAAE;IACpD,IAAI,QAAQ,GAAG,IAAA,eAAO,EAAC,GAAG,CAAC,CAAC;IAC5B,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,MAAM,IAAI,KAAK,CAAC,wBAAwB,GAAG,aAAa,CAAC,CAAC;IAC5D,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AANW,QAAA,cAAc,kBAMzB"}
|
package/server.mjs
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
3
|
+
import { endpoints, query } from "./tools.mjs";
|
|
4
|
+
import { CallToolRequestSchema, ListToolsRequestSchema, SetLevelRequestSchema, } from '@modelcontextprotocol/sdk/types.js';
|
|
5
|
+
import NirvanaLabs from '@nirvana-labs/nirvana';
|
|
6
|
+
import { applyCompatibilityTransformations, defaultClientCapabilities, knownClients, parseEmbeddedJSON, } from "./compat.mjs";
|
|
7
|
+
import { dynamicTools } from "./dynamic-tools.mjs";
|
|
8
|
+
import { codeTool } from "./code-tool.mjs";
|
|
9
|
+
export { ClientType } from "./compat.mjs";
|
|
10
|
+
export { endpoints } from "./tools.mjs";
|
|
11
|
+
export const newMcpServer = () => new McpServer({
|
|
12
|
+
name: 'nirvana_labs_nirvana_api',
|
|
13
|
+
version: '1.17.0',
|
|
14
|
+
}, { capabilities: { tools: {}, logging: {} } });
|
|
15
|
+
// Create server instance
|
|
16
|
+
export const server = newMcpServer();
|
|
17
|
+
/**
|
|
18
|
+
* Initializes the provided MCP Server with the given tools and handlers.
|
|
19
|
+
* If not provided, the default client, tools and handlers will be used.
|
|
20
|
+
*/
|
|
21
|
+
export function initMcpServer(params) {
|
|
22
|
+
const server = params.server instanceof McpServer ? params.server.server : params.server;
|
|
23
|
+
const mcpOptions = params.mcpOptions ?? {};
|
|
24
|
+
let providedEndpoints = null;
|
|
25
|
+
let endpointMap = null;
|
|
26
|
+
const initTools = async (implementation) => {
|
|
27
|
+
if (implementation && (!mcpOptions.client || mcpOptions.client === 'infer')) {
|
|
28
|
+
mcpOptions.client =
|
|
29
|
+
implementation.name.toLowerCase().includes('claude') ? 'claude'
|
|
30
|
+
: implementation.name.toLowerCase().includes('cursor') ? 'cursor'
|
|
31
|
+
: undefined;
|
|
32
|
+
mcpOptions.capabilities = {
|
|
33
|
+
...(mcpOptions.client && knownClients[mcpOptions.client]),
|
|
34
|
+
...mcpOptions.capabilities,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
providedEndpoints ?? (providedEndpoints = await selectTools(endpoints, mcpOptions));
|
|
38
|
+
endpointMap ?? (endpointMap = Object.fromEntries(providedEndpoints.map((endpoint) => [endpoint.tool.name, endpoint])));
|
|
39
|
+
};
|
|
40
|
+
const logAtLevel = (level) => (message, ...rest) => {
|
|
41
|
+
void server.sendLoggingMessage({
|
|
42
|
+
level,
|
|
43
|
+
data: { message, rest },
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
const logger = {
|
|
47
|
+
debug: logAtLevel('debug'),
|
|
48
|
+
info: logAtLevel('info'),
|
|
49
|
+
warn: logAtLevel('warning'),
|
|
50
|
+
error: logAtLevel('error'),
|
|
51
|
+
};
|
|
52
|
+
let client = new NirvanaLabs({
|
|
53
|
+
logger,
|
|
54
|
+
...params.clientOptions,
|
|
55
|
+
defaultHeaders: {
|
|
56
|
+
...params.clientOptions?.defaultHeaders,
|
|
57
|
+
'X-Stainless-MCP': 'true',
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
61
|
+
if (providedEndpoints === null) {
|
|
62
|
+
await initTools(server.getClientVersion());
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
tools: providedEndpoints.map((endpoint) => endpoint.tool),
|
|
66
|
+
};
|
|
67
|
+
});
|
|
68
|
+
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
69
|
+
if (endpointMap === null) {
|
|
70
|
+
await initTools(server.getClientVersion());
|
|
71
|
+
}
|
|
72
|
+
const { name, arguments: args } = request.params;
|
|
73
|
+
const endpoint = endpointMap[name];
|
|
74
|
+
if (!endpoint) {
|
|
75
|
+
throw new Error(`Unknown tool: ${name}`);
|
|
76
|
+
}
|
|
77
|
+
return executeHandler(endpoint.tool, endpoint.handler, client, args, mcpOptions.capabilities);
|
|
78
|
+
});
|
|
79
|
+
server.setRequestHandler(SetLevelRequestSchema, async (request) => {
|
|
80
|
+
const { level } = request.params;
|
|
81
|
+
switch (level) {
|
|
82
|
+
case 'debug':
|
|
83
|
+
client = client.withOptions({ logLevel: 'debug' });
|
|
84
|
+
break;
|
|
85
|
+
case 'info':
|
|
86
|
+
client = client.withOptions({ logLevel: 'info' });
|
|
87
|
+
break;
|
|
88
|
+
case 'notice':
|
|
89
|
+
case 'warning':
|
|
90
|
+
client = client.withOptions({ logLevel: 'warn' });
|
|
91
|
+
break;
|
|
92
|
+
case 'error':
|
|
93
|
+
client = client.withOptions({ logLevel: 'error' });
|
|
94
|
+
break;
|
|
95
|
+
default:
|
|
96
|
+
client = client.withOptions({ logLevel: 'off' });
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
return {};
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Selects the tools to include in the MCP Server based on the provided options.
|
|
104
|
+
*/
|
|
105
|
+
export async function selectTools(endpoints, options) {
|
|
106
|
+
const filteredEndpoints = query(options?.filters ?? [], endpoints);
|
|
107
|
+
let includedTools = filteredEndpoints;
|
|
108
|
+
if (includedTools.length > 0) {
|
|
109
|
+
if (options?.includeDynamicTools) {
|
|
110
|
+
includedTools = dynamicTools(includedTools);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
if (options?.includeAllTools) {
|
|
115
|
+
includedTools = endpoints;
|
|
116
|
+
}
|
|
117
|
+
else if (options?.includeDynamicTools) {
|
|
118
|
+
includedTools = dynamicTools(endpoints);
|
|
119
|
+
}
|
|
120
|
+
else if (options?.includeCodeTools) {
|
|
121
|
+
includedTools = [await codeTool()];
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
includedTools = endpoints;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
const capabilities = { ...defaultClientCapabilities, ...options?.capabilities };
|
|
128
|
+
return applyCompatibilityTransformations(includedTools, capabilities);
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Runs the provided handler with the given client and arguments.
|
|
132
|
+
*/
|
|
133
|
+
export async function executeHandler(tool, handler, client, args, compatibilityOptions) {
|
|
134
|
+
const options = { ...defaultClientCapabilities, ...compatibilityOptions };
|
|
135
|
+
if (!options.validJson && args) {
|
|
136
|
+
args = parseEmbeddedJSON(args, tool.inputSchema);
|
|
137
|
+
}
|
|
138
|
+
return await handler(client, args || {});
|
|
139
|
+
}
|
|
140
|
+
export const readEnv = (env) => {
|
|
141
|
+
if (typeof globalThis.process !== 'undefined') {
|
|
142
|
+
return globalThis.process.env?.[env]?.trim();
|
|
143
|
+
}
|
|
144
|
+
else if (typeof globalThis.Deno !== 'undefined') {
|
|
145
|
+
return globalThis.Deno.env?.get?.(env)?.trim();
|
|
146
|
+
}
|
|
147
|
+
return;
|
|
148
|
+
};
|
|
149
|
+
export const readEnvOrError = (env) => {
|
|
150
|
+
let envValue = readEnv(env);
|
|
151
|
+
if (envValue === undefined) {
|
|
152
|
+
throw new Error(`Environment variable ${env} is not set`);
|
|
153
|
+
}
|
|
154
|
+
return envValue;
|
|
155
|
+
};
|
|
156
|
+
//# sourceMappingURL=server.mjs.map
|
package/server.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.mjs","sourceRoot":"","sources":["src/server.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,SAAS,EAAE,MAAM,yCAAyC;OAC5D,EAAY,SAAS,EAAmB,KAAK,EAAE;OAC/C,EACL,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,GAGtB,MAAM,oCAAoC;OAEpC,WAAW,MAAM,uBAAuB;OACxC,EACL,iCAAiC,EAEjC,yBAAyB,EACzB,YAAY,EACZ,iBAAiB,GAClB;OACM,EAAE,YAAY,EAAE;OAChB,EAAE,QAAQ,EAAE;OAIZ,EAAE,UAAU,EAAE;OAGd,EAAE,SAAS,EAAE;AAEpB,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,EAAE,CAC/B,IAAI,SAAS,CACX;IACE,IAAI,EAAE,0BAA0B;IAChC,OAAO,EAAE,QAAQ;CAClB,EACD,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,CAC7C,CAAC;AAEJ,yBAAyB;AACzB,MAAM,CAAC,MAAM,MAAM,GAAG,YAAY,EAAE,CAAC;AAErC;;;GA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AC;AAC3C,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,GAAW,EAAsB,EAAE;IACzD,IAAI,OAAQ,UAAkB,CAAC,OAAO,KAAK,WAAW,EAAE,CAAC;QACvD,OAAQ,UAAkB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC;IACxD,CAAC;SAAM,IAAI,OAAQ,UAAkB,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;QAC3D,OAAQ,UAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC;IAC1D,CAAC;IACD,OAAO;AACT,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,GAAW,EAAU,EAAE;IACpD,IAAI,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAC5B,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,MAAM,IAAI,KAAK,CAAC,wBAAwB,GAAG,aAAa,CAAC,CAAC;IAC5D,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { ClientOptions } from '@nirvana-labs/nirvana';
|
|
4
|
+
|
|
5
|
+
export type WorkerInput = {
|
|
6
|
+
opts: ClientOptions;
|
|
7
|
+
code: string;
|
|
8
|
+
};
|
|
9
|
+
export type WorkerSuccess = {
|
|
10
|
+
result: unknown | null;
|
|
11
|
+
logLines: string[];
|
|
12
|
+
errLines: string[];
|
|
13
|
+
};
|
|
14
|
+
export type WorkerError = { message: string | undefined };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import util from 'node:util';
|
|
4
|
+
import { WorkerInput, WorkerSuccess, WorkerError } from './code-tool-types';
|
|
5
|
+
import { NirvanaLabs } from '@nirvana-labs/nirvana';
|
|
6
|
+
|
|
7
|
+
const fetch = async (req: Request): Promise<Response> => {
|
|
8
|
+
const { opts, code } = (await req.json()) as WorkerInput;
|
|
9
|
+
const client = new NirvanaLabs({
|
|
10
|
+
...opts,
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
const logLines: string[] = [];
|
|
14
|
+
const errLines: string[] = [];
|
|
15
|
+
const console = {
|
|
16
|
+
log: (...args: unknown[]) => {
|
|
17
|
+
logLines.push(util.format(...args));
|
|
18
|
+
},
|
|
19
|
+
error: (...args: unknown[]) => {
|
|
20
|
+
errLines.push(util.format(...args));
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
try {
|
|
24
|
+
let run_ = async (client: any) => {};
|
|
25
|
+
eval(`
|
|
26
|
+
${code}
|
|
27
|
+
run_ = run;
|
|
28
|
+
`);
|
|
29
|
+
const result = await run_(client);
|
|
30
|
+
return Response.json({
|
|
31
|
+
result,
|
|
32
|
+
logLines,
|
|
33
|
+
errLines,
|
|
34
|
+
} satisfies WorkerSuccess);
|
|
35
|
+
} catch (e) {
|
|
36
|
+
const message = e instanceof Error ? e.message : undefined;
|
|
37
|
+
return Response.json(
|
|
38
|
+
{
|
|
39
|
+
message,
|
|
40
|
+
} satisfies WorkerError,
|
|
41
|
+
{ status: 400, statusText: 'Code execution error' },
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export default { fetch };
|
package/src/code-tool.ts
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { dirname } from 'node:path';
|
|
4
|
+
import { pathToFileURL } from 'node:url';
|
|
5
|
+
import NirvanaLabs, { ClientOptions } from '@nirvana-labs/nirvana';
|
|
6
|
+
import { Endpoint, ContentBlock, Metadata } from './tools/types';
|
|
7
|
+
|
|
8
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
9
|
+
|
|
10
|
+
import { WorkerInput, WorkerError, WorkerSuccess } from './code-tool-types';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* A tool that runs code against a copy of the SDK.
|
|
14
|
+
*
|
|
15
|
+
* Instead of exposing every endpoint as it's own tool, which uses up too many tokens for LLMs to use at once,
|
|
16
|
+
* we expose a single tool that can be used to search for endpoints by name, resource, operation, or tag, and then
|
|
17
|
+
* a generic endpoint that can be used to invoke any endpoint with the provided arguments.
|
|
18
|
+
*
|
|
19
|
+
* @param endpoints - The endpoints to include in the list.
|
|
20
|
+
*/
|
|
21
|
+
export async function codeTool(): Promise<Endpoint> {
|
|
22
|
+
const metadata: Metadata = { resource: 'all', operation: 'write', tags: [] };
|
|
23
|
+
const tool: Tool = {
|
|
24
|
+
name: 'execute',
|
|
25
|
+
description:
|
|
26
|
+
'Runs Typescript code to interact with the API.\nYou are a skilled programmer writing code to interface with the service.\nDefine an async function named "run" that takes a single parameter of an initialized client, and it will be run.\nDo not initialize a client, but instead use the client that you are given as a parameter.\nYou will be returned anything that your function returns, plus the results of any console.log statements.\nIf any code triggers an error, the tool will return an error response, so you do not need to add error handling unless you want to output something more helpful than the raw error.\nIt is not necessary to add comments to code, unless by adding those comments you believe that you can generate better code.\nThis code will run in a container, and you will not be able to use fetch or otherwise interact with the network calls other than through the client you are given.\nAny variables you define won\'t live between successive uses of this call, so make sure to return or log any data you might need later.',
|
|
27
|
+
inputSchema: { type: 'object', properties: { code: { type: 'string' } } },
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
// Import dynamically to avoid failing at import time in cases where the environment is not well-supported.
|
|
31
|
+
const { newDenoHTTPWorker } = await import('@valtown/deno-http-worker');
|
|
32
|
+
const { workerPath } = await import('./code-tool-paths.cjs');
|
|
33
|
+
|
|
34
|
+
const handler = async (client: NirvanaLabs, args: unknown) => {
|
|
35
|
+
const baseURLHostname = new URL(client.baseURL).hostname;
|
|
36
|
+
const { code } = args as { code: string };
|
|
37
|
+
|
|
38
|
+
const worker = await newDenoHTTPWorker(pathToFileURL(workerPath), {
|
|
39
|
+
runFlags: [
|
|
40
|
+
`--node-modules-dir=manual`,
|
|
41
|
+
`--allow-read=code-tool-worker.mjs,${workerPath.replace(/([\/\\]node_modules)[\/\\].+$/, '$1')}/`,
|
|
42
|
+
`--allow-net=${baseURLHostname}`,
|
|
43
|
+
// Allow environment variables because instantiating the client will try to read from them,
|
|
44
|
+
// even though they are not set.
|
|
45
|
+
'--allow-env',
|
|
46
|
+
],
|
|
47
|
+
printOutput: true,
|
|
48
|
+
spawnOptions: {
|
|
49
|
+
cwd: dirname(workerPath),
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
try {
|
|
54
|
+
const resp = await new Promise<Response>((resolve, reject) => {
|
|
55
|
+
worker.addEventListener('exit', (exitCode) => {
|
|
56
|
+
reject(new Error(`Worker exited with code ${exitCode}`));
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
const opts: ClientOptions = {
|
|
60
|
+
baseURL: client.baseURL,
|
|
61
|
+
apiKey: client.apiKey,
|
|
62
|
+
defaultHeaders: {
|
|
63
|
+
'X-Stainless-MCP': 'true',
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
const req = worker.request(
|
|
68
|
+
'http://localhost',
|
|
69
|
+
{
|
|
70
|
+
headers: {
|
|
71
|
+
'content-type': 'application/json',
|
|
72
|
+
},
|
|
73
|
+
method: 'POST',
|
|
74
|
+
},
|
|
75
|
+
(resp) => {
|
|
76
|
+
const body: Uint8Array[] = [];
|
|
77
|
+
resp.on('error', (err) => {
|
|
78
|
+
reject(err);
|
|
79
|
+
});
|
|
80
|
+
resp.on('data', (chunk) => {
|
|
81
|
+
body.push(chunk);
|
|
82
|
+
});
|
|
83
|
+
resp.on('end', () => {
|
|
84
|
+
resolve(
|
|
85
|
+
new Response(Buffer.concat(body).toString(), {
|
|
86
|
+
status: resp.statusCode ?? 200,
|
|
87
|
+
headers: resp.headers as any,
|
|
88
|
+
}),
|
|
89
|
+
);
|
|
90
|
+
});
|
|
91
|
+
},
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
const body = JSON.stringify({
|
|
95
|
+
opts,
|
|
96
|
+
code,
|
|
97
|
+
} satisfies WorkerInput);
|
|
98
|
+
|
|
99
|
+
req.write(body, (err) => {
|
|
100
|
+
if (err !== null && err !== undefined) {
|
|
101
|
+
reject(err);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
req.end();
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
if (resp.status === 200) {
|
|
109
|
+
const { result, logLines, errLines } = (await resp.json()) as WorkerSuccess;
|
|
110
|
+
const returnOutput: ContentBlock | null =
|
|
111
|
+
result === null ? null
|
|
112
|
+
: result === undefined ? null
|
|
113
|
+
: {
|
|
114
|
+
type: 'text',
|
|
115
|
+
text: typeof result === 'string' ? (result as string) : JSON.stringify(result),
|
|
116
|
+
};
|
|
117
|
+
const logOutput: ContentBlock | null =
|
|
118
|
+
logLines.length === 0 ?
|
|
119
|
+
null
|
|
120
|
+
: {
|
|
121
|
+
type: 'text',
|
|
122
|
+
text: logLines.join('\n'),
|
|
123
|
+
};
|
|
124
|
+
const errOutput: ContentBlock | null =
|
|
125
|
+
errLines.length === 0 ?
|
|
126
|
+
null
|
|
127
|
+
: {
|
|
128
|
+
type: 'text',
|
|
129
|
+
text: 'Error output:\n' + errLines.join('\n'),
|
|
130
|
+
};
|
|
131
|
+
return {
|
|
132
|
+
content: [returnOutput, logOutput, errOutput].filter((block) => block !== null),
|
|
133
|
+
};
|
|
134
|
+
} else {
|
|
135
|
+
const { message } = (await resp.json()) as WorkerError;
|
|
136
|
+
throw new Error(message);
|
|
137
|
+
}
|
|
138
|
+
} catch (e) {
|
|
139
|
+
throw e;
|
|
140
|
+
} finally {
|
|
141
|
+
worker.terminate();
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
return { metadata, tool, handler };
|
|
146
|
+
}
|