diff --git a/packages/connector-ui/public/skills/SKILL.md b/packages/connector-ui/public/skills/SKILL.md index dc37953..933b583 100644 --- a/packages/connector-ui/public/skills/SKILL.md +++ b/packages/connector-ui/public/skills/SKILL.md @@ -54,6 +54,8 @@ polygon-agent wallet create --usdc-limit 100 --native-limit 5 # → user approves in browser, browser shows a 6-digit code # → enter the 6-digit code in the terminal when prompted # → session saved to ~/.polygon-agent/wallets/main.json +# → notify the user and send them to https://agentconnect.polygon.technology/?rid= +# so they can fund their wallet with access to the session # Step 3: Fund wallet polygon-agent fund diff --git a/packages/polygon-agent-cli/skills/SKILL.md b/packages/polygon-agent-cli/skills/SKILL.md index dc37953..933b583 100644 --- a/packages/polygon-agent-cli/skills/SKILL.md +++ b/packages/polygon-agent-cli/skills/SKILL.md @@ -54,6 +54,8 @@ polygon-agent wallet create --usdc-limit 100 --native-limit 5 # → user approves in browser, browser shows a 6-digit code # → enter the 6-digit code in the terminal when prompted # → session saved to ~/.polygon-agent/wallets/main.json +# → notify the user and send them to https://agentconnect.polygon.technology/?rid= +# so they can fund their wallet with access to the session # Step 3: Fund wallet polygon-agent fund diff --git a/packages/polygon-agent-cli/src/commands/wallet-ui.tsx b/packages/polygon-agent-cli/src/commands/wallet-ui.tsx index 3d03ada..d06a701 100644 --- a/packages/polygon-agent-cli/src/commands/wallet-ui.tsx +++ b/packages/polygon-agent-cli/src/commands/wallet-ui.tsx @@ -273,8 +273,8 @@ export function WalletCreateUI({ useInput((input, key) => { if (phase !== 'code') return; - if (/^\d$/.test(input) && code.length < 6) { - setCode((prev) => prev + input); + if (/^\d+$/.test(input)) { + setCode((prev) => (prev + input).slice(0, 6)); } if (key.backspace || key.delete) { setCode((prev) => prev.slice(0, -1));