Skip to content

docs(cli): phone pairing guide with screenshots and PDF - #1458

Closed
agentiknet wants to merge 2 commits into
wt/pair-page-workerfrom
wt/phone-pairing-guide
Closed

agentiknet wants to merge 2 commits into
wt/pair-page-workerfrom
wt/phone-pairing-guide

Conversation

@agentiknet

@agentiknet agentiknet commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

DRAFT on purpose: stacked on #1457 (wt/pair-page-worker), which is open and not merged. The supervisor retargets this to main after #1457 merges — auto-merge lands an approved stacked PR in its stale base otherwise.

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 in guides/meta.json and docs/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 from packages/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/cli major) and pr-1450-review.md (web-fragment offers + revocation signalling) are both still pending, unreleased changesets — @agentproto/cli's CHANGELOG tops out at 0.21.5 with 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

Gate Exit
node scripts/agentflow/docs.mjs --check (pnpm cli-docs:check, the docs gate) 0 (43 verbs, CLI version 0.21.5 / ✓ docs in sync), re-checked after fast-forwarding onto #1457's latest tip

Docs-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.mjs per the task instructions rather than guessing. Its walkMarkdown() only collects files ending in .md or named meta.json:

} else if (entry.isFile() && (entry.name.endsWith(".md") || entry.name === "meta.json")) {

syncTree() calls syncOne() only on that list — there is no path that copies .png/.pdf/any other asset from docs/cli/** into content/docs/**. cli-site's own public/ only has one hand-placed panel.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.mjs has just never needed to move a binary asset before (no existing docs/cli/guides/*.md has ever embedded one).

Smallest fix, on the cli-site side (not made here, per instructions): extend walkMarkdown/syncTree in scripts/sync-content.mjs to also collect and copy non-markdown files (at minimum images and PDFs, e.g. /\.(png|jpe?g|svg|pdf)$/i) from docs/cli/** straight through to content/docs/**, preserving the relative directory structure (no rename, no frontmatter injection — the same pass-through syncOne already gives meta.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 the ts side.

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-profile Claude Subs Agentik · model claude-sonnet-5 · supervisor sess_d3e835f4 · $2.2493 (daemon) · host mac.home · cwd agentproto/phone-pairing-guide

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
agentiknet deleted the branch wt/pair-page-worker September 27, 2026 15:51
@agentiknet agentiknet closed this Sep 27, 2026
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.
@agentiknet
agentiknet deleted the wt/phone-pairing-guide branch November 7, 2026 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant