The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 06:00 UTC
@effect/ai-cloudflare
4.1.2
Patch Changes
- Updated dependencies [
5216684,b707ad1,46f48af,92201bc,cf329f3,1d25d78,d190d97,d7b3b6b,a478745,69eaa29,3711ba6,715c5e4,b0a1cee,2a10622,6bccdd5,60be011,e1edcdc,ef81e9d,013fb34,113dbc7,519d66e,e7a6ea4,019f35e,2a0d16c,e5570c9]:
4.1.1
Patch Changes
- Updated dependencies [
8567117,3f5c6aa,29b89b6,0b4cfbc,088510f,ad62cd7,ba406a5,5e56eba,6a95d51,24d5acd,c38dfa0,f2755e7,a40cb20,bd6b9c2,49d84d6,a8f77d5,7a9c22f,efcb8cc,378f5f0,d4272bd,7d6ead4,59178ce,9394b6d,5d3f066,49d84d6,2863a22,49d84d6,49d84d6,20cca92,1f22f02,dd2b7a3,52f4e42,194dd79,c5de00a,460827e,0325583,20bef50,2f50b91,b41529e,80954c9,5daca23,c96c31e,136ddf9,5ca262e,898b049,73e6ea1,937f170,f5f96b2,1946637,197ce1d,b49120e,33d3088]:
4.1.0
Minor Changes
- #8829
3c42058Thanks @effect-bot! - RemoveAiError.HttpRequestDetailsandResponse.HttpRequestDetails, so AI errors and response metadata no longer carry request headers or query parameters.AiError.NetworkErrorrecords the request asmethodandurlfields instead ofrequest, and therequestfield is gone fromAiError.HttpContextandResponse.ResponseMetadataPart.
Patch Changes
#8829
7ea1ea2Thanks @wmaurer! - Add an optionalcauseto the AINetworkError. It holds theHttpClientErrorthe request failed with, stored unchanged and not redacted, so the reason a request failed is no longer lost. The newNetworkError.fromHttpClientErrorsets it, and all AI providers now use it.NetworkError.fromRequestErroris unchanged.#8829
3f8f359Thanks @jem-computer! - Declare decision images as input fields withDecision.Image, and addDecision.locate, which answers with a bounding box around one target in an image field.DecideOptions.imagesis removed. AddDecision.Imagefields to the input schema and refer to each image by its path in instructions:
// Before DecisionModel.decide(Triage, { input: "Checkout error", images: [screenshot] }) // After const Triage = Decision.make({ input: Schema.Struct({ report: Schema.String, screenshot: Decision.Image }), decisions }) DecisionModel.decide(Triage, { input: { report: "Checkout error", screenshot } })- Custom providers receive
imagesas{ reference, path, image }, with each image replaced by its reference instateand its data as a base64 string orURL. Decision.locate({ image: "photo", instructions })takes a path thatDecision.makechecks against the input's image fields. Providers opt in withsupportsLocate: true.Decision.AnyandDecisionModel.ProviderAnswergain locate variants, so exhaustive switches over them need aLocatecase.TypeSafeDecisionModelsupports images, sent as assets keyed by reference, and sends locate decisions as Box questions, which needjev-previeworjev-1.14.0. OpenAI and Cloudflare label each image with its reference.
Updated dependencies [
631d4f4,7ea1ea2,a2ccc14,ed20129,20795b9,a8e5e6c,c4d298d,fb5dbee,8309b94,ac10e55,af23904,df8dce5,0c24a8f,468c6ee,2d1fcd4,8f23668,3f8f359,fe6b748,2a03584,40e145e,7217410,cf249fe,4f0fad1,e75708c,7890077,c4a00fc,f74db37,069cf72,9a07ebc,f40dc4e,fa516c6,ffd9237,93895b9,8938b19,e5a1479,89e1e1e,eda0960,65db606,7c42335,cb21d14,89e1e1e,c32eb78,be9895b,26b4bfe,e19c611,f97711f,4f16778,d2b6bc7,8e668fe,ce9e999,3d88452,3c42058,2ae4045,e853fa1,6dc3f7c,1513bbd,c065ed7,1194a4c,2cb498e,89e5443,2a9a425,e710bbb,b0d6e75,32b3570,9f93f4f,27370c7]:
4.0.7
Patch Changes
- Updated dependencies [
ac3485a,3a4c691,4f0600e,110fd22,aa58cda,8e257e7,e62a149,dcd43a5,3388cdd,81b0e14,a046435,f6d8968,5741c3a,381d5c6,d47478a,383716d,46dc30a,3d5c862,93ebc4f,c7b161a,e55945d,1a53d6a,5e25cc9,9503d5c,13efb72,8ca6abb,4a09dd1,346fc92,20e5ba8,f4b237e,1dd08ee,940be42,37be245,563fde0,938cecb,cf197c1,7ca71bb,1e73219,4dd860d,4d24a11,6bbc5ac,5fd25f4,a461561,832b3c6,837e906,cd1f2d4,fb38ce6,446c7ac,b48b7d8,dc66d90,d5a3dc3,482e0d5,d84f518,d34d399,5bbd25e,14eab6b,af8fcb3,6b82a28,3043aea,785577e,a8dbbce,65094ac,113ec70,ad3126e,eedfb27,45c467a,c983fc1,58f164f,f6df1aa,c05355c,ae7805c,9ffc621,c97b331,15297e5,41f6738,53f9352,b72f6a2,52e1716,50c863a,c148d27,a11ecdd,08e338e,8450ad5,39da87a,a2adb31,a6174d5,96e6004,3ebd645,3c3c79b,8c6d2fa,1ff35d2,2b100e9,e3938e5,f90101a,306c9a1,5b69c67,a12ffe3,f6cf0fd,3541f65,d50aaa2,3731ddb,3b8090c,137757a,a658477]:
4.0.6
Patch Changes
#9528
0163546Thanks @third774! - Add optional AI Gateway routing viagatewayIdorCLOUDFLARE_AI_GATEWAY_ID, sent as thecf-aig-gateway-idheader.#9709
85e2aeeThanks @tim-smart! - Add typed HTTP date andRetry-Afterheader values toHeaders, and parse them consistently across the HTTP client, OTLP exporter, GraphQL client, AI clients and static server.Headers.parseHttpDate/Headers.formatHttpDateread all three RFC 9110 date formats as UTC, whatever the process time zone, and emit IMF-fixdate.Headers.parseRetryAfter,Headers.formatRetryAfterandHeaders.retryAfterDelayaccept whole non-negative seconds of any size, read exactly, or an HTTP date, and the delay is never negative. HTTP dates accept the23:59:60leap second, read as the following second.Headers.RetryAfterholds either aDuration(RetryAfterDuration) or aDateTime.Utc(RetryAfterDateTime).Headers.retryAfterDurationbuilds the first from anyDuration.Input: infinite durations throw, finite negative ones become zero, and fractional seconds are rounded up when formatted.- Parse failures are reported as
Headers.HeaderParseError. Schema.DateTimeUtcFromHttpDateandSchema.RetryAfterFromStringexpose the same parsing as string codecs for HTTP API headers.- Invalid
Retry-Aftervalues such as-5,1.5,1e3orInfinityare now ignored everywhere.HttpClient.retryTransientandHttpClient.withRateLimiterno longer honour fractional seconds, and the AI clients no longer produce negative or infiniteretryAfterdurations. HttpStaticServerreadsIf-Modified-SinceandLast-Modifiedas UTC; asctime dates were previously shifted by the process time zone.
#9430
48102acThanks @effect-bot! - Add non-retryableAiError.InvalidResponseErrorfor provider response schema and SSE decoding failures, with optional HTTP context; model-generated output validation remains retryable. Update exhaustive matches onAiErrorReasonto handle the new tag, and update serialized-error consumers to accept it.Updated dependencies [
ce13a48,f3bbbb4,5547315,6093cfb,30319d5,74a7596,bfb32a3,f8bf7f4,7f3d3df,db1046d,3c4f88a,916e709,916f843,66ec757,daac06f,c2552ec,b02c1cd,1855f1d,683ed2c,ac68940,22a8401,c53c194,ca6d1cc,47940c5,e8b24ef,2e8aae0,ad7497b,7f504a3,99e365d,954067d,3e1a035,41a1fe7,bcb3a86,739d3d1,ed4da35,3d84e19,cc00906,09ba1f5,9ff1a73,06bc532,97bfd84,25efaef,c10335b,a808972,20e844c,b9f73f3,5739878,28acdf3,59b6396,0bccc9c,fed70de,82648a2,afb5f32,28813f5,0fae934,f260830,19b63eb,14db221,679f956,b72707c,44c8c1d,1e7909b,0611a65,2fadc65,feb6ce5,5a2ed53,c8d26a4,0c8b446,05c3409,b04191b,05c3409,4067e64,e04563d,02d7fc5,561d2a1,8fe2dcc,a8086fa,88a33b4,e77372a,3dd4388,ba2b00c,a049d4a,84aeede,43e5e19,77bbf16,6af3a47,aac8d21,84c8dc4,78d1988,5676a2a,4b437bf,1af11fd,716f8df,ee27718,4d86d1b,5462ed7,658837c,00261cc,7cccb93,7c98228,5a8e248,8037a65,25912db,7f32606,0386f88,403298a,5a3ebc0,fac2191,fdb12dc,97909b8,c3983f4,3a5e65e,8b40fbc,3f3e119,7c7b8ed,d4f71bc,c66241e,f0e941e,5f8a6e5,2800a09,e9749b0,eaef09c,a3c56e5,bb61152,e9c842b,6d8c8e2,1f28187,0b9842b,c29ddd8,84c3405,3934c0c,048e7c8,1121334,9a680d6,85e2aee,34ec440,343a149,915117b,7f823c1,6e614e6,9990b39,22bf781,41f08b7,e8482ca,5ae85fa,c477a0a,8fbb39e,1c70828,8207d1e,7886b84,4839c60,2595d83,f5ae278,7a8ce00,688d302,c7072e4,425cedb,88bc680,268e09c,7e94505,afa5da3,c29ddd8,48102ac,463eca3,e7162ea,95752db,4577a28,973d599,2f066a5,f0ccbb6,2dda6ce,3da7c0a,5a67e0b,73b3a6e,c6f9e4c,be02676,26de861,9313799,d5c1e5b,11bb31f,8c23e46,9c96011,0d50570,9ed2bf1,76ec912,af2756d,3ec8100,93abf02,1e94993,99a4616,0a7978e,b4a060b,274f4a4,25f29be,9036440,415f005,191308b,4b96570,d84ec3f,392aa1c,99e9bd9,6f6f45f,13fc07e,a4b38dd,8b18580,0c477fe,9a5331d,a706d73,c9a1e72,89eaaf8,8215811,ad69018,a733eba,7282d5f,da33572,d9e2d12,dc923b8,1b74086,8a5507b,23460fa,0dbbea6,70aad3f,0909236,a9e66d8,ee5c0d5,631c5d6,7e60c1a,4cddd3c,8727e5d,2bc97fa,f9a7f05,d978cca,b334ccf,0b50cfc,5b7d2b5,6ee26b1,eab7e6a,e618f10,da14b1f,3314fc3,66db624,4b8a50d,8d52668,1de1055,db130e6,5fa5fa5]:
4.0.5
Patch Changes
#9121
bd2c7a3Thanks @jem-computer! - Support images inCloudflareDecisionModel. Byte arrays, base64 strings, anddata:URLs are sent to Clef. Remote URLs fail withAiError.InvalidUserInputError.#9124
793d89eThanks @jem-computer! - Support structured decision instructions, descriptions, and score legends in TypeSafe, Cloudflare, and OpenRouter.Decision.rateaccepts labeled descriptions;Rate.criteriaentries are now{ label, description }objects instead of strings.Updated dependencies [
f665607,dbf442b,74d1930,a03afb6,f159284,5d301cc,cd74ea2,925cf64,54c51d9,995c104,816575e,0df6e06,52a7d3c,ec831c3,3abc63e,a841b8b,91efea7,e271997,7719bda,563397f,65b04f8,c2859bf,c462214,d1ad2c7,12be65e,352618a,2a8ec8b,8dec89d,f05642f,3ad9a0c,dba4e52,7ca8224,65d20dd,e3ff963,bc454a3,793d89e,ec9332b,f2b3d8a,cb2cf5f,b8c201d,118c9c4]:
4.0.4
Patch Changes
- Updated dependencies [
7547a99,711719d,8f1ea52,c93485e,37e088f,9314666,a0a26b7,cc843ea,ab90be9,a59b971,fccf660,1bfd8fd,78e4c43,fde67a1,118deef,cea74c9,b7c1ac6,f837966,09738f4,22e7129,fdcb47e,fc349a1,ab90be9,892d14d,077c557,4a999a3,797696a,cf5179b,e1c6053]:
4.0.3
Patch Changes
- Updated dependencies [
b4e5af8,b8d6e7a,89d5c88,66257d2,cd2ab19,ca068ce,f686000,e052f1b,c755b69,ebe487f,63bfad8,8598157,76a03f7,182e26d,a46592a,1d3419e,e00eaae,133ceb2,a494a64,d6082a2,ee3a350,7ba976c,9dbd07e,d4f7dc3,a9b5148,e7d84e4,0e2b988,84f48df,48ed32f,59e58a6,b9e7821,aa811e4,bfc5742,f9f7a5a,73fa287,7ff5048,7803e51,93410da,aef1d1f,d6d515b,ea52c24,7e44402,0b17b9e,9753be9,977096b,cf58cb0]:
4.0.2
Patch Changes
- #8770
540ecd1Thanks @fubhy! - Tag every module and directly importable export with an explicit@stability.@stability stablefollows strict semver, and@stability unstablemay receive breaking changes in minor releases. - Updated dependencies [
26c1089,6c59de7,467d3ac,375c1b0,45a70ce,fb757e3,716e358,af114e6,d0b3862,7064da9,eee0eeb,b9d6581,7a721ce,a0cb4c2,3cb395e,540ecd1,aefe05a,c381fbc,c6f2179,0aeb7fd,2fbecc8,7095539,46b75b1,99b6b45,e4cb9f1,2e03688,b817ebe,4153144,2b3c63c,bd00773,146e86a,44defad,22d6f4d,7d8d497,98a5ed7,d350f8e,bd96be0,f6af4b6,7234786,1f74b62,42763ce,5630677,a0e1b87,f5716ad,26931d0,972c80f,efebfa9,a3b4cf3,3ed997b,7b396bd,c07c144,8903b68,a84aa4e,88917eb,50a5686,c419a0e,d85a309,7e7ede6,1803500,495740d,985860d,e36abbb,c6086ee,0ac6ac8,90a1bae,b1d200c,1ba8521,1b35732,763b445,00f1cc7,d4f4bc8,f11526a,8781388,5326527,8409eb4,c5cf8ce,684ccdc,33303ea,b79fcb8,888a189,9b8200d,82303c1,76fcd89,f31e6b7,332d363,a6c7dcb]:
4.0.1
Patch Changes
- #8677
480bba2Thanks @danieljvdm! - Add a Cloudflare Workers AI decision provider for Clef and Clef-flash. - Updated dependencies [
ed2cc2f,58a2ee8,bc44526,073bb47,2ec021e,cad1118,1672d9c,a81e4e6,f5c2a91,498e72b,cabf123,a5b1d4e,878cb33,5e6f756,18dfb98,04706ef,f157482,b5a2d4c,1c18c68,43416c4,d6ac8f9,1d9fb8c,20dcd50,42e5750,888e326,0b52bb4,e823e69,962647b,43fdcdc,1f89b8e,e1a521a]: