Skip to content

Conversation

@CarsonRoscoe
Copy link
Contributor

@CarsonRoscoe CarsonRoscoe commented Feb 20, 2025

What changed?

Created a new npm module under typescript called create-onchain-agent.
This will become the npm module @coinbase/create-onchain-agent that can be executed in the CLI via npm create onchain-agent@latest

The CLI will scaffold out a NextJs full-stack project based on your selection within the CLI tool.

Why was this change implemented?

In preparation for our AgentKit workshop at EthDenver

Network support

All networks are supported

Wallet support

All wallet providers are supported

Checklist

  • Changelog updated
  • Commits are signed. See instructions
  • Doc strings
  • Readme updates
  • Rebased against master
  • Relevant exports added

Notes to reviewers

  • I am waiting on feedback regarding the UI/branding. Expect a visual update to the CLI and Next project tomorrow.
  • Video Demo

How to test locally

Assuming you've cloned the repo and have checked out this branch, from root run:

# Build the CLI/templates
cd typescript/create-react-agent
npm install
npm run build

# Move to wherever you want to generate the new project
cd ../..
mkdir sample-directory
cd sample-directory

# Run the CLI
node ../typescript/create-onchain-agent/dist/esm/cli.js

Fast Follows

  1. Upgrade the templating to use Hygen, which will help with building up more templates.
  2. Organize the select networks section better, so separate mainnets from testnets, and make it more clear that selecting other leads to entering a chain id

@cb-heimdall
Copy link

cb-heimdall commented Feb 20, 2025

✅ Heimdall Review Status

Requirement Status More Info
Reviews 1/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@github-actions github-actions bot added documentation Improvements or additions to documentation typescript needs triage labels Feb 20, 2025
@CarsonRoscoe CarsonRoscoe force-pushed the feat/create-onchain-agent branch from 4d3ec70 to 6ae24f0 Compare February 20, 2025 17:10
@CarsonRoscoe CarsonRoscoe changed the title feat: create-onchain-agent quickstart cli feat: typescript - create-onchain-agent quickstart cli Feb 21, 2025
@CarsonRoscoe CarsonRoscoe marked this pull request as ready for review February 21, 2025 18:43
@CarsonRoscoe CarsonRoscoe force-pushed the feat/create-onchain-agent branch from f63d0cd to 0992d2c Compare February 22, 2025 00:00
@CarsonRoscoe CarsonRoscoe merged commit 17a186f into main Feb 22, 2025
14 checks passed
@CarsonRoscoe CarsonRoscoe deleted the feat/create-onchain-agent branch February 22, 2025 02:03
kylexqian pushed a commit to OpenGradient/agentkit that referenced this pull request Feb 25, 2025
* Created base create-onchain-agent package

* Added base templates/next template

* Improved CLI handling of wallet provider

* Improve responsiveness of UI

* Finished working out what a agent route looks like

* Implemented API routes for CDV, Viem, Privy and Solana routes

* Refactored naming of route configuration and options

* Setup CLI for testing

* Added branching to CLI for network -> wallet provider selection

* chore: handling defaults in CLI

* chore: refactored api routes to better reflect network/walletProvider combinations

* fix: changes after rebase

* chore: cleanup files better after refactor

* feat: improve CLI display

* fix: adressed feedback

* feat: improved the cli logged messages

* refactor: types and constants out of utils

* refactor: refactored constants and types out of utils

* refactor: fileSystem out of cli

* feat: coinbase branding improvements

* feat: improved .env.local created format

* feat: improved .env.local created format

* feat: parse markdown when displaying agent messages

* chore: added comments to files where agents get created

* chore: refactored useAgent and commented

* chore: added base project README

* feat: added wallet provider descriptions to cli

* bump: 0.1.0

* fix: added files for npm

* chore: improved readme

* chore: removed @coinbase from package.json

* chore: added basis for prettier and lint

* chore: cli readme feedback

* chore: template readme feedback

* chore: add coinbase to package description

* chore: fixed prettier and ran

* chore: fixed lint and ran

* fix: package.lock

* bump: 0.1.1

* chore: typescript readme

* chore: fix constants lint error

* feat: add dynamic message modifier and faucet to template

* chore: comment regarding faucet

* chore: fixed package.lock

* fix: typo in readme

* chore: updated readme to better reflect the outcome of create-onchain-agent

* bump: 0.1.2

* feat: added wallet persistance for cdp

* chore: updated package-lock after bump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation typescript

Development

Successfully merging this pull request may close these issues.

4 participants