Document rejection of invisible-separator baseURL wrappers

Co-authored-by: Eric Allam <eric@trigger.dev>
This commit is contained in:
Cursor Agent
2026-02-15 06:22:50 +00:00
parent abdddacbe8
commit 1a2f243cfd
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -11,5 +11,6 @@ Add a new `@trigger.dev/ai` package with:
- strict `baseURL` normalization/validation (trimming, path-safe slash handling, absolute `http(s)` URLs only, no query/hash/credentials)
- rejection of internal whitespace characters in normalized `baseURL` values
- rejection of internal invisible separator characters (e.g. zero-width/BOM characters) in normalized `baseURL` values
- rejection of invisible separator wrappers around otherwise valid `baseURL` values (for example `\u200B...` and `\u2060...`)
- deterministic baseURL validation error ordering for multi-issue inputs (internal whitespace → protocol → query/hash → credentials)
- explicit default `baseURL` behavior (`https://api.trigger.dev`) and case-insensitive `HTTP(S)` protocol acceptance
+1
View File
@@ -27,6 +27,7 @@
- Added explicit validation that `baseURL` excludes query parameters and hash fragments.
- Added explicit validation that `baseURL` excludes username/password credentials.
- Added explicit validation that `baseURL` excludes internal whitespace/invisible separator characters (including zero-width/BOM characters).
- Clarified that invisible separator characters are rejected even when wrapped around an otherwise valid `baseURL`.
- Documented that `HTTP://` and `HTTPS://` are accepted (case-insensitive protocol matching).
- Added deterministic validation ordering for multi-issue baseURL values
(internal whitespace → protocol → query/hash → credentials).