Repository navigation
feat: set date and time pickers from an ISO 8601 date - #79
Merged
Merged
Conversation
desktop_set_value takes an ISO 8601 string for AXDateTimeArea, AXDateField and AXTimeField. The client normalizes it to UTC to the second, the host (peekaboo-date-value.patch) writes it as an NSDate and confirms it by reading the same instant back. Refusals and unknown results carry the keyboard route. Co-Authored-By: Claude <noreply@anthropic.com>
This was referenced Oct 17, 2026
Merged
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.
Item 1 from #75.
API:
desktop_set_valueaccepts a stringvalueon AXDateTimeArea, AXDateField and AXTimeField:2026-10-17is local midnight,2026-10-17T15:30[:SS]is local time, andZ/±HH:MMsets the zone.src/date-value.ts) validates the string and normalizes it to UTC to the second (2026-10-17T13:30:00Z). Impossible dates such as Feb 30 are refused.keyboard_route: click the first field, type the digits, Tab to the next field, or step with Up/Down.Host (
peekaboo-date-value.patch, appended): when the element's AXValue is an NSDate and the request is a string, ActionInputDriver takes a date path:setAutomationDate, polls for up to 1 s, and confirms only on the same instant. A mismatch → the usual unverified mutation (unknown).Tests:
test/date-value.test.mjs;npm testandnpm run checkpass.Live: pending. The session was locked at last check, and another session's swift test helper is currently holding ~/.peekaboo/global.lock. The signed dev app is built at /tmp/dt/app; I'll check against a TextEdit/Calendar or Settings date picker when possible.
Co-Authored-By: Claude noreply@anthropic.com