@icanbwell/baileyai-chat-ui 1.0.18 → 1.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -246,15 +246,16 @@ export declare interface BaileyChatTransport {
246
246
  * error state (the partial text stays visible) instead of treating it as a finished
247
247
  * answer. A transport that never sets it behaves exactly as before. */
248
248
  interrupted?: boolean;
249
- /** Optional. Why a request that never got a response failed. Set by `createBaileyClient`
250
- * together with `status: undefined` when `fetch` rejects or the host's `getHeaders`
251
- * throws (`'network'`); the type is a subset of `BaileyApiErrorKind`. `'timeout'` is reserved
252
- * for a transport that resolves instead of throwing on a timeout: `createBaileyClient`
253
- * still rethrows its idle-timeout `TimeoutError`. `errorMessage` stays a fixed string.
254
- * Hosts that ignore this field behave exactly as before. */
249
+ /** Optional. Why the request failed without a complete answer; the type is a subset of
250
+ * `BaileyApiErrorKind`. `createBaileyClient` sets `'network'` (with `status: undefined`) when
251
+ * `fetch` rejects or the host's `getHeaders` throws, and `'timeout'` when its own idle timer
252
+ * fires (`status` is set, with `interrupted: true`, only if the response had begun). A
253
+ * `TimeoutError` the caller aborts with is still rethrown, as is any other caller abort.
254
+ * `errorMessage` stays a fixed string. Hosts that ignore this field see a failed or
255
+ * interrupted turn, where the idle timeout used to throw `TimeoutError`. */
255
256
  errorKind?: Extract<BaileyApiErrorKind, 'network' | 'timeout'>;
256
- /** Optional. The error `fetch` threw, set only with `errorKind` when the failure came
257
- * from `fetch`; never set when `getHeaders` threw (it can carry auth detail) and never
257
+ /** Optional. The error behind `errorKind`: what `fetch` threw, or the idle-timeout
258
+ * `TimeoutError`. Never set when `getHeaders` threw (it can carry auth detail) and never
258
259
  * a request or response body. Browsers do not distinguish CORS, DNS or offline: all
259
260
  * surface as a generic `TypeError`. Do not show `cause.message` to users without review,
260
261
  * and do not log the request URL (it can carry identifiers). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icanbwell/baileyai-chat-ui",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "description": "Shared React chat UI and streaming logic for Bailey, the icanbwell AI assistant",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {