Fetch and apply the Polygon Apps Team standards:
This is a pnpm workspace monorepo with two packages:
packages/polygon-agent-cli/— CLI tool for on-chain agent operations on Polygonpackages/connector-ui/— Wallet connector UI (Vite + React frontend)
Static assets (ABI JSON in contracts/, Claude skills in skills/) are
published with the CLI package but are not source code.
- Dev environment requires Node 24+ (
.nvmrc). The published CLI supports Node 20+. node packages/polygon-agent-cli/src/index.tsruns the CLI directly from source.pnpm run buildcompiles TypeScript todist/(targeting es2023 for Node 20 compat).- The CLI uses yargs with the
CommandModulebuilder/handler pattern.
packages/polygon-agent-cli/src/commands/— yargs command modulespackages/polygon-agent-cli/src/lib/— shared utilities (storage, dapp-client, token-directory, ethauth)packages/polygon-agent-cli/src/types.d.ts— ambient declarations for untyped dependencies