Repository navigation
docs(cli): phone pairing guide with screenshots and PDF - #1458
Closed
agentiknet wants to merge 2 commits into
Closed
agentiknet wants to merge 2 commits into
agentiknet wants to merge 2 commits into
Conversation
Add docs/cli/guides/phone-pairing.md covering pair offer --qr end to end (prerequisites, the 3-step pairing flow, using it, unpairing, multiple daemons, troubleshooting, self-hosting), with production screenshots from #1457 and a rendered PDF for download. Registers the guide in guides/meta.json and docs/cli/README.md.
Checking whether --qr is merely recognized doesn't catch a daemon built between #1450 and #1457, which accepts the flag but prints the old shared-origin cli.agentproto.sh link with a 16-hex id — a link that 404s on the current pair page. Check the printed link's shape instead (https://<32-hex>.agentproto.cloud/pair#...), in both Prerequisites and the Troubleshooting 404 entry. Regenerate the PDF.
agentiknet
added a commit
to agentproto/cli-site
that referenced
this pull request
Oct 2, 2026
#16) Guides in agentproto/ts can now embed screenshots and link a PDF, but sync-content.mjs only ever copied .md/meta.json — any relative image or PDF reference 404s once synced. Copy matched assets (png/jpg/gif/ svg/webp/pdf) to two places: content/docs/<rel>, where fumadocs-mdx's remarkImage plugin resolves a relative markdown image as a static import against the compiled .mdx file's own directory; and public/docs/<rel>, where Next serves it ahead of the docs catch-all route at the exact path a relative link resolves to from the page's own URL. Proved against agentproto/ts#1458's phone-pairing guide: all 5 screenshots and the PDF link render/200 through a real `next dev` render of the page.
agentiknet
added a commit
that referenced
this pull request
Nov 3, 2026
User guide for pairing a phone with a daemon (pair offer --qr, fingerprint confirm, home screen, unpair, several daemons, troubleshooting, self-hosting), with screenshots of the pair page. Salvaged from wt/phone-pairing-guide (618ed84 + 125c47f, draft PR #1458 closed when its base #1457 merged). Adapted: the release caveat is gone (pair/v2 ships), the self-hosting anchor points at the current concepts/pairing.md heading, and the PDF export is dropped.
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.
New user guide:
docs/cli/guides/phone-pairing.md— "Use agentproto from your phone". Covers what pairing gets you (Control Center, E2E encrypted, no public tunnel), prerequisites, the 3-step pair flow (pair offer --qr→ scan → confirm fingerprint → Control Center), using it day to day (home screen, connecting/offline states), unpairing from both sides, multiple daemons ("wrong address"), troubleshooting, and a short self-hosting section. Registered inguides/meta.jsonanddocs/cli/README.md.Every command/flag is verified against
packages/cli/src/commands/pair.ts; nothing invented.Assets
docs/cli/guides/assets/phone-pairing/*.png— 5 production screenshots copied frompackages/pair-page/docs/prod/(originals untouched, nothing deleted), renamed descriptively:confirm-fingerprint.png,control-center.png,paired-home.png,revoked.png,wrong-address.png. All already under 300 KB (28–82 KB, 390×844), so no downscaling was needed.docs/cli/guides/assets/phone-pairing/phone-pairing-guide.pdf— the guide rendered to PDF (markdown → pandoc HTML with embedded images → headless Chrome--print-to-pdf, A4 portrait). 7 pages, 452 KB. Opened and visually checked: all text and all 5 images render correctly on their pages, nothing is cut off or blank. Linked from the guide's top ("Download this guide as a PDF").Prerequisites version
Per instructions, I checked
.changeset/and package versions rather than guessing a number:pr-1448-agentic.md(pair/v2,@agentproto/climajor) andpr-1450-review.md(web-fragment offers + revocation signalling) are both still pending, unreleased changesets —@agentproto/cli's CHANGELOG tops out at0.21.5with no pair/v2 entry yet, and this PR's own base (#1457) is unmerged. So the guide says "agentproto ≥ the release that ships pair/v2" rather than a version number, with a pointer to the CHANGELOG and a--qr-recognition fallback check.Gates
node scripts/agentflow/docs.mjs --check(pnpm cli-docs:check, the docs gate)43 verbs, CLI version 0.21.5/✓ docs in sync), re-checked after fast-forwarding onto #1457's latest tipDocs-only change (no
packages/**/adapters/**touched), so no changeset is needed.cli-site: relative images and the PDF link will NOT resolve yet
I checked
projects/agentproto/cli-site/scripts/sync-content.mjsper the task instructions rather than guessing. ItswalkMarkdown()only collects files ending in.mdor namedmeta.json:syncTree()callssyncOne()only on that list — there is no path that copies.png/.pdf/any other asset fromdocs/cli/**intocontent/docs/**.cli-site's ownpublic/only has one hand-placedpanel.png; nothing is synced there either. So today, every relative image reference and the PDF link in this guide will 404 once it's live on the site — this isn't specific to my content,sync-content.mjshas just never needed to move a binary asset before (no existingdocs/cli/guides/*.mdhas ever embedded one).Smallest fix, on the
cli-siteside (not made here, per instructions): extendwalkMarkdown/syncTreeinscripts/sync-content.mjsto also collect and copy non-markdown files (at minimum images and PDFs, e.g./\.(png|jpe?g|svg|pdf)$/i) fromdocs/cli/**straight through tocontent/docs/**, preserving the relative directory structure (no rename, no frontmatter injection — the same pass-throughsyncOnealready givesmeta.json). That keeps this guide's relative paths (./assets/phone-pairing/*.png,./assets/phone-pairing/phone-pairing-guide.pdf) resolving at the same relative location under/docs/guides/assets/phone-pairing/...with no changes needed on thetsside.Never merge
Not merging this. Auto-merge is out of my reach either way (repo-var gated, decided on the base branch), and this is a draft targeting an unmerged base by design.
🤖 @agentproto-bot — PR · session
sess_39ac1d77(rdv-browser: phone pairing guide page) · claude-code / subscription · auth-profileClaude Subs Agentik· modelclaude-sonnet-5· supervisorsess_d3e835f4· $2.2493 (daemon) · hostmac.home· cwdagentproto/phone-pairing-guide