ai 6.0.0-beta.53 → 6.0.0-beta.55
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/CHANGELOG.md +12 -0
 - package/dist/index.d.mts +5 -1
 - package/dist/index.d.ts +5 -1
 - package/dist/index.js +9 -2
 - package/dist/index.js.map +1 -1
 - package/dist/index.mjs +8 -2
 - package/dist/index.mjs.map +1 -1
 - package/dist/internal/index.js +1 -1
 - package/dist/internal/index.mjs +1 -1
 - package/package.json +1 -1
 
    
        package/dist/index.mjs
    CHANGED
    
    | 
         @@ -775,7 +775,7 @@ import { 
     | 
|
| 
       775 
775 
     | 
    
         
             
            } from "@ai-sdk/provider-utils";
         
     | 
| 
       776 
776 
     | 
    
         | 
| 
       777 
777 
     | 
    
         
             
            // src/version.ts
         
     | 
| 
       778 
     | 
    
         
            -
            var VERSION = true ? "6.0.0-beta. 
     | 
| 
      
 778 
     | 
    
         
            +
            var VERSION = true ? "6.0.0-beta.55" : "0.0.0-test";
         
     | 
| 
       779 
779 
     | 
    
         | 
| 
       780 
780 
     | 
    
         
             
            // src/util/download/download.ts
         
     | 
| 
       781 
781 
     | 
    
         
             
            var download = async ({ url }) => {
         
     | 
| 
         @@ -3757,6 +3757,9 @@ async function parsePartialJson(jsonText) { 
     | 
|
| 
       3757 
3757 
     | 
    
         
             
            }
         
     | 
| 
       3758 
3758 
     | 
    
         | 
| 
       3759 
3759 
     | 
    
         
             
            // src/ui/ui-messages.ts
         
     | 
| 
      
 3760 
     | 
    
         
            +
            function isDataUIPart(part) {
         
     | 
| 
      
 3761 
     | 
    
         
            +
              return part.type.startsWith("data-");
         
     | 
| 
      
 3762 
     | 
    
         
            +
            }
         
     | 
| 
       3760 
3763 
     | 
    
         
             
            function isToolUIPart(part) {
         
     | 
| 
       3761 
3764 
     | 
    
         
             
              return part.type.startsWith("tool-");
         
     | 
| 
       3762 
3765 
     | 
    
         
             
            }
         
     | 
| 
         @@ -6422,7 +6425,9 @@ var BasicAgent = class { 
     | 
|
| 
       6422 
6425 
     | 
    
         
             
               */
         
     | 
| 
       6423 
6426 
     | 
    
         
             
              respond(options) {
         
     | 
| 
       6424 
6427 
     | 
    
         
             
                return this.stream({
         
     | 
| 
       6425 
     | 
    
         
            -
                  prompt: convertToModelMessages(options.messages 
     | 
| 
      
 6428 
     | 
    
         
            +
                  prompt: convertToModelMessages(options.messages, {
         
     | 
| 
      
 6429 
     | 
    
         
            +
                    tools: this.tools
         
     | 
| 
      
 6430 
     | 
    
         
            +
                  })
         
     | 
| 
       6426 
6431 
     | 
    
         
             
                }).toUIMessageStreamResponse();
         
     | 
| 
       6427 
6432 
     | 
    
         
             
              }
         
     | 
| 
       6428 
6433 
     | 
    
         
             
            };
         
     | 
| 
         @@ -11169,6 +11174,7 @@ export { 
     | 
|
| 
       11169 
11174 
     | 
    
         
             
              getToolName,
         
     | 
| 
       11170 
11175 
     | 
    
         
             
              getToolOrDynamicToolName,
         
     | 
| 
       11171 
11176 
     | 
    
         
             
              hasToolCall,
         
     | 
| 
      
 11177 
     | 
    
         
            +
              isDataUIPart,
         
     | 
| 
       11172 
11178 
     | 
    
         
             
              isDeepEqualData,
         
     | 
| 
       11173 
11179 
     | 
    
         
             
              isToolOrDynamicToolUIPart,
         
     | 
| 
       11174 
11180 
     | 
    
         
             
              isToolUIPart,
         
     |