feat(agentconnect-ui): get-started screen instead of 'open from CLI' notice - #135
Merged
Conversation
When the dashboard is opened directly (no ?wallet= deep link from the CLI), show how to get started instead of 'Open this page from the polygon-agent CLI': the skill install command (npx skills add ...) and the starter prompt 'set up a Polygon Agent for me', each copyable.
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
Build copies the repo skills/ tree into dist/ so the Cloudflare worker serves SKILL.md and the sub-skills (polygon-agent-cli, polygon-defi, polygon-discovery, polygon-polymarket) at agentconnect.polygon.technology — previously only the retired connector-ui served them. Point the dashboard's main skill link at the canonical polygon-agent-cli/SKILL.md (survives the root SKILL.md removal).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two changes to
agentconnect-ui, both affecting what a visitor to https://agentconnect.polygon.technology/ gets.1. Get-started screen instead of the dead-end notice
When the dashboard is opened directly (no
?wallet=deep link from the CLI), it previously said "Open this page from the polygon-agent CLI." — a dead end. It now shows a "Set up a Polygon Agent" card with two copyable steps:npx skills add https://github.com/0xPolygon/polygon-agent-cliset up a Polygon Agent for meStyling reuses the existing dashboard design system. The wallet-dashboard view when
?wallet=is present is unchanged.2. Serve the agent skills from this deployment
The skill URLs the app and the skills reference (
agentconnect.polygon.technology/SKILL.md,/polygon-defi/SKILL.md, etc.) were served only by the retired connector-ui — the agentconnect-ui build never included them, so once connector-ui goes away those URLs would 404. The build now copies the reposkills/tree intodist/(smallserve-skillsvite plugin invite.config.ts), so the Cloudflare worker serves all of them as static assets:/SKILL.md,/polygon-agent-cli/SKILL.md,/polygon-defi/SKILL.md,/polygon-discovery/SKILL.md,/polygon-polymarket/SKILL.mdThe dashboard's main skill link (
SKILL_URL) now points at the canonical/polygon-agent-cli/SKILL.mdrather than the root/SKILL.md, which keeps it working after the rootskills/SKILL.mdis removed (see PR #134).Testing
typecheck,lint, andvite buildall clean (vite.config.ts is typechecked via tsconfig.node.json).dist/locally:SKILL.mdURLs return200 text/markdownwith real skill content.200; extensionless routes still fall back to the app.Note
agentconnect-uiauto-deploys on merge (thedeploy-agentconnect-uiworkflow triggers on push tomainforpackages/agentconnect-ui/**), so merging ships both changes to production. Cross-PR note: this pointsSKILL_URLat/polygon-agent-cli/SKILL.md, the canonical skill kept by PR #134; both PRs are consistent regardless of merge order.