diff --git a/package-lock.json b/package-lock.json index 67b70574f..c6a5df75b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1543,10 +1543,12 @@ } }, "node_modules/@types/eslint": { - "version": "7.29.0", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-7.29.0.tgz", - "integrity": "sha512-VNcvioYDH8/FxaeTKkM4/TiTwt6pBV9E3OfGmvaw8tPl0rrHCJ4Ll15HRT+pMiFAf/MLQvAzC+6RzUMEL9Ceng==", + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-9.6.1.tgz", + "integrity": "sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag==", "dev": true, + "optional": true, + "peer": true, "dependencies": { "@types/estree": "*", "@types/json-schema": "*" @@ -3565,6 +3567,16 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/eslint-formatter-pretty/node_modules/@types/eslint": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-7.29.0.tgz", + "integrity": "sha512-VNcvioYDH8/FxaeTKkM4/TiTwt6pBV9E3OfGmvaw8tPl0rrHCJ4Ll15HRT+pMiFAf/MLQvAzC+6RzUMEL9Ceng==", + "dev": true, + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, "node_modules/eslint-import-resolver-node": { "version": "0.3.9", "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", @@ -9511,7 +9523,7 @@ }, "typescript/agentkit": { "name": "@coinbase/agentkit", - "version": "0.1.0", + "version": "0.1.1", "license": "Apache-2.0", "dependencies": { "@coinbase/coinbase-sdk": "^0.17.0", @@ -10961,10 +10973,12 @@ } }, "@types/eslint": { - "version": "7.29.0", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-7.29.0.tgz", - "integrity": "sha512-VNcvioYDH8/FxaeTKkM4/TiTwt6pBV9E3OfGmvaw8tPl0rrHCJ4Ll15HRT+pMiFAf/MLQvAzC+6RzUMEL9Ceng==", + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-9.6.1.tgz", + "integrity": "sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag==", "dev": true, + "optional": true, + "peer": true, "requires": { "@types/estree": "*", "@types/json-schema": "*" @@ -12437,6 +12451,18 @@ "plur": "^4.0.0", "string-width": "^4.2.0", "supports-hyperlinks": "^2.0.0" + }, + "dependencies": { + "@types/eslint": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-7.29.0.tgz", + "integrity": "sha512-VNcvioYDH8/FxaeTKkM4/TiTwt6pBV9E3OfGmvaw8tPl0rrHCJ4Ll15HRT+pMiFAf/MLQvAzC+6RzUMEL9Ceng==", + "dev": true, + "requires": { + "@types/estree": "*", + "@types/json-schema": "*" + } + } } }, "eslint-import-resolver-node": { diff --git a/typescript/agentkit/CHANGELOG.md b/typescript/agentkit/CHANGELOG.md index 65a072643..134fa8e0f 100644 --- a/typescript/agentkit/CHANGELOG.md +++ b/typescript/agentkit/CHANGELOG.md @@ -2,6 +2,12 @@ ## Unreleased +## [0.1.1] - 2025-02-02 + +### Added + +- Added re-export for `./src/network/` in `./src/index.ts` + ## [0.1.0] - 2025-02-01 ### Added diff --git a/typescript/agentkit/README.md b/typescript/agentkit/README.md index 4208b6e20..9ad8a2c97 100644 --- a/typescript/agentkit/README.md +++ b/typescript/agentkit/README.md @@ -8,9 +8,10 @@ AgentKit is a framework for easily enabling AI agents to take actions onchain. I - [Getting Started](#getting-started) - [Installation](#installation) - [Usage](#usage) - - [Create an AgentKit instance](#1-create-an-agentkit-instance) - - [Create an AgentKit instance with a specified wallet provider](#2-create-an-agentkit-instance-with-a-specified-wallet-provider) - - [Create an AgentKit instance with a specified action providers](#3-create-an-agentkit-instance-with-a-specified-action-providers) + - [Create an AgentKit instance](##create-an-agentkit-instance-if-no-wallet-or-action-providers-are-specified-the-agent-will-use-the-cdpwalletprovider-and-walletprovider-action-provider) + - [Create an AgentKit instance with a specified wallet provider](#create-an-agentkit-instance-with-a-specified-wallet-provider) + - [Create an AgentKit instance with a specified action providers](#create-an-agentkit-instance-with-a-specified-action-providers) + - [Use the agent's actions with a framework extension. For example, using LangChain + OpenAI](#use-the-agents-actions-with-a-framework-extension-for-example-using-langchain--openai) - [Wallet Providers](#wallet-providers) - [CdpWalletProvider](#cdpwalletprovider) - [Network Configuration](#network-configuration) @@ -35,7 +36,7 @@ npm install @coinbase/agentkit ## Usage -1. Create an AgentKit instance. If no wallet or action providers are specified, the agent will use the `CdpWalletProvider` and `WalletProvider` action provider. +### Create an AgentKit instance. If no wallet or action providers are specified, the agent will use the `CdpWalletProvider` and `WalletProvider` action provider. ```typescript const agentKit = await AgentKit.from({ @@ -44,7 +45,7 @@ const agentKit = await AgentKit.from({ }); ``` -2. Create an AgentKit instance with a specified wallet provider. +### Create an AgentKit instance with a specified wallet provider. ```typescript import { CdpWalletProvider } from "@coinbase/agentkit"; @@ -60,7 +61,7 @@ const agentKit = await AgentKit.from({ }); ``` -3. Create an AgentKit instance with a specified action providers. +### Create an AgentKit instance with a specified action providers. ```typescript import { cdpApiActionProvider, pythActionProvider } from "@coinbase/agentkit"; @@ -77,7 +78,7 @@ const agentKit = await AgentKit.from({ }); ``` -4. Use the agent's actions with a framework extension. For example, using LangChain + OpenAI. +### Use the agent's actions with a framework extension. For example, using LangChain + OpenAI. *Prerequisites*: - [OpenAI API Key](https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key) diff --git a/typescript/agentkit/package.json b/typescript/agentkit/package.json index 6a1515558..6e4f78dec 100644 --- a/typescript/agentkit/package.json +++ b/typescript/agentkit/package.json @@ -2,7 +2,7 @@ "name": "@coinbase/agentkit", "description": "Coinbase AgentKit core primitives", "repository": "https://github.com/coinbase/agentkit", - "version": "0.1.0", + "version": "0.1.1", "author": "Coinbase Inc.", "license": "Apache-2.0", "main": "dist/index.js", diff --git a/typescript/agentkit/src/agentkit.ts b/typescript/agentkit/src/agentkit.ts index b81d82857..ce86bf1b3 100644 --- a/typescript/agentkit/src/agentkit.ts +++ b/typescript/agentkit/src/agentkit.ts @@ -4,7 +4,7 @@ import { Action, ActionProvider, walletActionProvider } from "./action-providers /** * Configuration options for AgentKit */ -type AgentKitOptions = { +export type AgentKitOptions = { cdpApiKeyName?: string; cdpApiKeyPrivateKey?: string; walletProvider?: WalletProvider; diff --git a/typescript/agentkit/src/index.ts b/typescript/agentkit/src/index.ts index b02942ff0..5017789c4 100644 --- a/typescript/agentkit/src/index.ts +++ b/typescript/agentkit/src/index.ts @@ -1,5 +1,4 @@ -// Export CDP AgentKit -export { AgentKit } from "./agentkit"; - +export * from "./agentkit"; export * from "./wallet-providers"; export * from "./action-providers"; +export * from "./network"; diff --git a/typescript/agentkit/src/network/index.ts b/typescript/agentkit/src/network/index.ts index eea524d65..a8495db67 100644 --- a/typescript/agentkit/src/network/index.ts +++ b/typescript/agentkit/src/network/index.ts @@ -1 +1,2 @@ export * from "./types"; +export * from "./network";