@icanbwell/baileyai-chat-ui 1.0.4 → 1.0.5

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
@@ -359,7 +359,16 @@ export declare interface CopyMarkdownButtonProps {
359
359
 
360
360
  export declare function createBaileyMarkdownComponents({ renderTable, renderChart }?: BaileyMarkdownRenderers): Components;
361
361
 
362
- export declare function extractPseudoToolCalls(text: string): ExtractPseudoToolCallsResult;
362
+ export declare function extractPseudoToolCalls(text: string, options?: ExtractPseudoToolCallsOptions): ExtractPseudoToolCallsResult;
363
+
364
+ declare interface ExtractPseudoToolCallsOptions {
365
+ /** Hide a still-open (unclosed) recognized tag from cleanedText, the same as a completed
366
+ * block. Defaults to true for mid-stream calls, where the tag is expected to close on a later
367
+ * delta. Pass false once the stream has ended (no later delta is coming) so a tag that never
368
+ * closed - a truncated response, or a malformed tag - stays visible instead of being silently
369
+ * and permanently swallowed. */
370
+ hideOpenBlock?: boolean;
371
+ }
363
372
 
364
373
  declare interface ExtractPseudoToolCallsResult {
365
374
  /** `text` with every matched block removed. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icanbwell/baileyai-chat-ui",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
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": {