docs: align api.md and bring test client up to current feature set#6
Merged
Conversation
- api.md: fix "two-server" wording (the agent runs three servers) - test-client: display per-scan tag capabilities (family, memory, max NDEF, writable/lockable, read-only, password support) - test-client: surface write verification results (tag, bytes written, verified, attempts, locked) - test-client: expand write record types (mailto/tel/sms/geo/smartposter/ mime/vcard/aar) with type-specific title and MIME fields - test-client: add "lock after write" option and an Erase Tag action Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KoUv6XnHGJoEhE3fLEWMQz
Only render the verification panel when the server returns structured fields (uid/verified), and guard each line individually, so an agent that returns a minimal writeResponse payload doesn't show "Tag: ()". Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KoUv6XnHGJoEhE3fLEWMQz
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
Follow-up to the README refresh (already merged). This PR brings the API reference and the browser test client in line with the agent's current feature set. No protocol or server code changes — documentation and the demo client only.
docs/api.mdclient/test-client.htmlPreviously the demo only knew about basic text/uri reads and writes. It now exercises the shipped capabilities:
capabilitiesobject already present on everytagDatabroadcast.verified, attempts,locked) — thewriteResponsepayload was previously discarded.mailto,tel,sms,geo,smartposter,mime,vcard,aar— with type-specific Title and MIME-type inputs.lock: true) and an Erase Tag action (writes anemptyrecord).Backwards compatibility
All changes are backwards compatible:
v-ifand hide themselves when the data is absent; unsupported record types / lock / erase surface as a normal caught error rather than breaking the UI.Testing
server/constants.goandserver/handlers.go.nfc/capabilities.goand thatNFCClient.write()resolves with the response payload (top-leveluid/tagType/verified/etc.).🤖 Generated with Claude Code
Generated by Claude Code