Repository navigation
Conversation
Single-file, stdlib-only Google Maps CLI wrapping Places API (New) Text Search + Nearby + Details, Geocoding v4 forward/reverse, and Routes computeRoutes. Compact JSON envelope on stdout, structured errors on stderr, stable exit codes (0/2/3/4/5), and a `retryable` flag on every error. The API key is read only from GMAPS_API_KEY, sent only via the X-Goog-Api-Key header, and scrubbed from all output including error paths. Field masks are fixed per subcommand in one table (the billing-SKU lever) with a verbatim table-equality test guarding against cost regressions. The HTTP layer is a single injectable transport, so the whole surface is tested without network access: 79 hermetic tests covering the argparse surface, per-command request URL/headers/body, output trimming, the exit-code map, Unicode queries, --raw passthrough, and key redaction. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
GitHub Actions workflow installing pytest via pip and running the hermetic suite on both interpreter versions for every push to main and pull request. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Real examples for all six subcommands; the agent contract (JSON envelope, exit-code table, retryable semantics, key handling); GMAPS_API_KEY setup via gcloud with --api-target restrictions; and the field-mask / billing-SKU philosophy table. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- delete test_search_trim_shape_default (vacuous — no assertions; coverage lives in test_search_trim_output) - SKILL.md: portable agent-skill teaching the command surface, JSON/exit-code contract, and cost discipline - README: SKILL.md pointer; prefer --at= form for revgeocode in wrappers Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Implements the full CLI per the reviewed design:
search,nearby,place,geocode,revgeocode,route— single stdlib-only file, fixed per-command field masks, JSON envelope + stable exit codes, key only viaGMAPS_API_KEYenv →X-Goog-Api-Keyheader, scrubbed from all output.🤖 Generated with Claude Code