Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 0 additions & 89 deletions .github/workflows/deploy-connector-ui.yml

This file was deleted.

15 changes: 12 additions & 3 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ Fetch and apply the Polygon Apps Team standards:

## Repository Structure

This is a pnpm workspace monorepo with two packages:
This is a pnpm workspace monorepo. The primary package is:

- `packages/polygon-agent-cli/` — CLI tool for on-chain agent operations on Polygon
- `packages/connector-ui/` — Wallet connector UI (Vite + React frontend)

Wallets use the Sequence V3 embedded-wallet model (`@0xsequence/typescript-sdk`,
`OMSClient`): the CLI authenticates directly via email OTP (`wallet login`) and
holds the credential on disk. There is no browser-approval connector UI or relay.

Static assets (ABI JSON in `contracts/`, Claude skills in `skills/`) are
published with the CLI package but are not source code.
Expand All @@ -26,5 +29,11 @@ published with the CLI package but are not source code.
## Key Directories

- `packages/polygon-agent-cli/src/commands/` — yargs command modules
- `packages/polygon-agent-cli/src/lib/` — shared utilities (storage, dapp-client, token-directory, ethauth)
- `packages/polygon-agent-cli/src/lib/` — shared utilities (storage, oms-client, oms-tx, oms-storage, tx-dispatch, token-directory, ethauth)
- `packages/polygon-agent-cli/src/types.d.ts` — ambient declarations for untyped dependencies

## Wallet auth (Sequence V3 / OMS)

- `polygon-agent wallet login --email <addr>` — email OTP; start+complete happen in one process (the pending-auth commitment is in-memory only). Session persists ~1 week under `~/.polygon-agent/oms/<name>/`.
- Requires `SEQUENCE_PUBLISHABLE_KEY` + `SEQUENCE_OMS_PROJECT_ID` (from Sequence Builder), via env or `builder.json` (set with `setup --oms-publishable-key/--oms-project-id`).
- `lib/tx-dispatch.ts` `runTx` is the single tx primitive (wraps `runOmsTx`). All commands submit through it.
21 changes: 0 additions & 21 deletions packages/connector-ui/.env.example

This file was deleted.

7 changes: 0 additions & 7 deletions packages/connector-ui/.gitignore

This file was deleted.

Loading