Skip to content

fix: 0.1.3 follow-ups from post-0.1.2 review - #11

Merged
Autumn-Atlas merged 1 commit into
masterfrom
agent/0.1.3-followup
Sep 13, 2026
Merged

Autumn-Atlas merged 1 commit into
masterfrom
agent/0.1.3-followup

Conversation

@Autumn-Atlas

Copy link
Copy Markdown
Contributor

Four follow-ups from independent post-0.1.2 review (all confirmed before fixing):

  1. [medium] date-only string regression — 0.1.2's naive-datetime rejection broke the README-documented search(start_date="2024-01-01") form. Restored: date-only strings parse via date.fromisoformat → UTC midnight. Naive timestamp strings remain rejected.
  2. [medium] Markdown URL breakoutsafe_markdown_url allowed https://...><script>... through. Now urlsplit-validates (scheme + netloc) and percent-encodes <>() and spaces. Repro'd with a real renderer pre-fix.
  3. [medium] custom-domain key forwardingCurrentsAPI(key, domain=other) now requires explicit allow_custom_domain=True.
  4. [low] briefing SDK-error tracebacks — example now catches CurrentsAPIError and prints error: Currents API request failed (HTTP <status>): <message>.

66 tests pass (15 new: date-only, naive-ts-string, domain opt-in, 13 briefing-security). twine check PASSED.

…omain opt-in (0.1.3)

- YYYY-MM-DD strings accepted again as UTC midnight (0.1.2 regression);
  naive timestamp strings still rejected
- safe_markdown_url: urlsplit validation (scheme+netloc), percent-encode
  <>() and spaces — closes https://...><script> breakout
- custom domain now requires allow_custom_domain=True (key forwarding guard)
- briefing example catches CurrentsAPIError, prints HTTP status cleanly
- 15 new tests (66 total incl. 13 briefing-security regressions)
@Autumn-Atlas
Autumn-Atlas merged commit 9d68eb1 into master Sep 13, 2026
5 checks passed
@Autumn-Atlas
Autumn-Atlas deleted the agent/0.1.3-followup branch September 13, 2026 10:04
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