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/dist/index.mjs
CHANGED
@@ -6638,11 +6638,12 @@ async function createChildProcess(config, signal) {
|
|
6638
6638
|
});
|
6639
6639
|
}
|
6640
6640
|
let childProcess;
|
6641
|
+
const nodePrefix = "node:";
|
6641
6642
|
try {
|
6642
|
-
childProcess = await import(
|
6643
|
+
childProcess = await import(`${nodePrefix}child_process`);
|
6643
6644
|
} catch (error) {
|
6644
6645
|
try {
|
6645
|
-
childProcess = __require(
|
6646
|
+
childProcess = __require(`${nodePrefix}child_process`);
|
6646
6647
|
} catch (innerError) {
|
6647
6648
|
throw new MCPClientError({
|
6648
6649
|
message: "Failed to load child_process module dynamically",
|