ai 4.1.58 → 4.1.59
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 +6 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/rsc/dist/rsc-server.mjs.map +1 -1
- package/rsc/dist/rsc-shared.mjs +1 -3
- package/rsc/dist/rsc-shared.mjs.map +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
@@ -2552,8 +2552,8 @@ It can be either an assistant message or a tool message.
|
|
2552
2552
|
*/
|
2553
2553
|
type ResponseMessage = (CoreAssistantMessage | CoreToolMessage) & {
|
2554
2554
|
/**
|
2555
|
-
Message ID generated by the AI SDK.
|
2556
|
-
|
2555
|
+
Message ID generated by the AI SDK.
|
2556
|
+
*/
|
2557
2557
|
id: string;
|
2558
2558
|
};
|
2559
2559
|
/**
|
package/dist/index.d.ts
CHANGED
@@ -2552,8 +2552,8 @@ It can be either an assistant message or a tool message.
|
|
2552
2552
|
*/
|
2553
2553
|
type ResponseMessage = (CoreAssistantMessage | CoreToolMessage) & {
|
2554
2554
|
/**
|
2555
|
-
Message ID generated by the AI SDK.
|
2556
|
-
|
2555
|
+
Message ID generated by the AI SDK.
|
2556
|
+
*/
|
2557
2557
|
id: string;
|
2558
2558
|
};
|
2559
2559
|
/**
|
package/dist/index.js
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __create = Object.create;
|
3
2
|
var __defProp = Object.defineProperty;
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
8
6
|
var __export = (target, all) => {
|
9
7
|
for (var name17 in all)
|
@@ -17,14 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
17
15
|
}
|
18
16
|
return to;
|
19
17
|
};
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
26
|
-
mod
|
27
|
-
));
|
28
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
19
|
|
30
20
|
// streams/index.ts
|
@@ -6690,11 +6680,12 @@ async function createChildProcess(config, signal) {
|
|
6690
6680
|
});
|
6691
6681
|
}
|
6692
6682
|
let childProcess;
|
6683
|
+
const nodePrefix = "node:";
|
6693
6684
|
try {
|
6694
|
-
childProcess = await import(
|
6685
|
+
childProcess = await import(`${nodePrefix}child_process`);
|
6695
6686
|
} catch (error) {
|
6696
6687
|
try {
|
6697
|
-
childProcess = require(
|
6688
|
+
childProcess = require(`${nodePrefix}child_process`);
|
6698
6689
|
} catch (innerError) {
|
6699
6690
|
throw new MCPClientError({
|
6700
6691
|
message: "Failed to load child_process module dynamically",
|