Skip to content

v0.2: tz, weather, matrix - #2

Merged
gldc merged 2 commits into
mainfrom
feat/v0.2
Jul 24, 2026
Merged

gldc merged 2 commits into
mainfrom
feat/v0.2

Conversation

@gldc

@gldc gldc commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Adds three subcommands over already-researched Google Maps Platform APIs:

  • tz --at=LAT,LNG [--time=EPOCH] — Time Zone API (Essentials). Legacy web service: ?key= is the only documented auth form; key stays scrubbed from all output. Embedded-status map (ZERO_RESULTS→4, REQUEST_DENIED→3, OVER_*→5 retryable).
  • weather <place>|--at [--days=1-10|--hours=1-48] [--units] — Weather API (GA 2025-06-30, Essentials). Place form geocodes first (one extra Essentials call).
  • matrix --from=A --from=B --to=C [--mode] — computeRouteMatrix (Essentials; billed per element, capped 10×10). Field mask includes status per docs warning, never sets routingPreference.

110 tests green on 3.11 + 3.13.

🤖 Generated with Claude Code

gldc and others added 2 commits July 23, 2026 23:47
- tz: Time Zone API (legacy web service, ?key= auth, embedded status map)
- weather: Weather API current/daily/hourly; accepts a place (geocoded
  first) or --at=LAT,LNG; --days 1-10 / --hours 1-48 mutually exclusive
- matrix: Routes computeRouteMatrix, repeated --from/--to (max 10 each),
  mask pins status+condition, never traffic-aware
- 32 new hermetic tests (110 total); README + SKILL.md updated

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- hours cap 48→24 (forecast/hours pageSize maxes at 24; CLI never paginates)
- matrix: non-list 200 body → upstream error (was silent ok-empty); surface
  per-element status errors (row.error) — the mask's status field is now read
- tz/weather: dict-container guards (200 non-dict was an uncaught traceback)
- weather trims null-safe ((x or {}) idiom); geocode-result-without-location
  → clean not_found
- redact() also scrubs the URL-encoded key form; real RED test forces the
  encoded key through an upstream error message
- README: key-in-URL claim corrected for tz/weather; gcloud restriction list
  grown to five services; SKILL.md frontmatter description covers new verbs

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@gldc
gldc merged commit cfd427f into main Jul 24, 2026
2 checks passed
@gldc
gldc deleted the feat/v0.2 branch July 24, 2026 03:59
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