Skip to content

Leave-by times start from home on the Contacts card - #30

Merged
mgilardi merged 1 commit into
mainfrom
eta-home-from-contacts
Nov 16, 2026
Merged

mgilardi merged 1 commit into
mainfrom
eta-home-from-contacts

Conversation

@mgilardi

Copy link
Copy Markdown
Collaborator

Owner, relayed by Simon (2026-11-15): "Home (Recommended)", read from his Contacts "me" card, kept out of the repo, and said in check-ins if the card has none.

  • ek me-address [--label home|work]: reads My Card through the Contacts framework, read only. Prints {"found": false, "reason": ...} when there's no My Card or no address with that label.
  • eta_from: "contacts:home": resolved on every run, so the address is never written to config, cache or repo. A missing address gives a note ("No leave-by times: your Contacts card has no home address. Add it to your card in Contacts.") and no lookups.
  • RULES §5 relays that note. SETUP and CHANGELOG updated.

Tested: ek me-address against the real card (found an address, printed only yes/no), then a real Apple Maps ETA from it (printed only minutes). 15 eta tests pass, including the card, a missing address and the address never being saved; ci-checks.sh passes.

🤖 Generated with Claude Code

The owner chose home as the starting point, read from his own Contacts card. eta_from now takes contacts:home (or contacts:work), resolved each run through a new read-only ek me-address, so the address is never saved and stays right after a move. A card with no home address gives a note and no trips. Tested against a real card and Apple Maps, printing only a yes and the minutes; three new tests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@mgilardi
mgilardi merged commit e043026 into main Nov 16, 2026
3 checks passed
@mgilardi
mgilardi deleted the eta-home-from-contacts branch November 16, 2026 05:56
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