@nocobase/plugin-ai 2.0.0-beta.6 → 2.0.0-beta.7
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/client/6a4c1ee12f864e38.js +10 -0
- package/dist/client/index.js +1 -1
- package/dist/collections/ai-employees.d.ts +1 -0
- package/dist/collections/ai-employees.js +4 -0
- package/dist/externalVersion.js +11 -11
- package/dist/locale/en-US.json +2 -0
- package/dist/locale/zh-CN.json +2 -0
- package/dist/node_modules/@langchain/anthropic/package.json +1 -1
- package/dist/node_modules/@langchain/core/package.json +1 -1
- package/dist/node_modules/@langchain/deepseek/package.json +1 -1
- package/dist/node_modules/@langchain/google-genai/LICENSE +6 -6
- package/dist/node_modules/@langchain/google-genai/dist/_virtual/rolldown_runtime.cjs +25 -0
- package/dist/node_modules/@langchain/google-genai/dist/chat_models.cjs +680 -842
- package/dist/node_modules/@langchain/google-genai/dist/chat_models.d.cts +581 -0
- package/dist/node_modules/@langchain/google-genai/dist/chat_models.d.ts +196 -157
- package/dist/node_modules/@langchain/google-genai/dist/chat_models.js +678 -837
- package/dist/node_modules/@langchain/google-genai/dist/embeddings.cjs +97 -151
- package/dist/node_modules/@langchain/google-genai/dist/embeddings.d.cts +104 -0
- package/dist/node_modules/@langchain/google-genai/dist/embeddings.d.ts +76 -70
- package/dist/node_modules/@langchain/google-genai/dist/embeddings.js +93 -144
- package/dist/node_modules/@langchain/google-genai/dist/index.cjs +252 -18
- package/dist/node_modules/@langchain/google-genai/dist/index.d.cts +3 -0
- package/dist/node_modules/@langchain/google-genai/dist/index.d.ts +3 -2
- package/dist/node_modules/@langchain/google-genai/dist/index.js +4 -2
- package/dist/node_modules/@langchain/google-genai/dist/output_parsers.cjs +47 -75
- package/dist/node_modules/@langchain/google-genai/dist/output_parsers.js +47 -72
- package/dist/node_modules/@langchain/google-genai/dist/profiles.cjs +345 -0
- package/dist/node_modules/@langchain/google-genai/dist/profiles.js +344 -0
- package/dist/node_modules/@langchain/google-genai/dist/types.d.cts +17 -0
- package/dist/node_modules/@langchain/google-genai/dist/types.d.ts +16 -2
- package/dist/node_modules/@langchain/google-genai/dist/utils/common.cjs +419 -551
- package/dist/node_modules/@langchain/google-genai/dist/utils/common.js +417 -545
- package/dist/node_modules/@langchain/google-genai/dist/utils/tools.cjs +65 -102
- package/dist/node_modules/@langchain/google-genai/dist/utils/tools.js +64 -99
- package/dist/node_modules/@langchain/google-genai/dist/utils/zod_to_genai_parameters.cjs +31 -49
- package/dist/node_modules/@langchain/google-genai/dist/utils/zod_to_genai_parameters.js +29 -45
- package/dist/node_modules/@langchain/google-genai/package.json +1 -1
- package/dist/node_modules/@langchain/ollama/package.json +1 -1
- package/dist/node_modules/@langchain/openai/package.json +1 -1
- package/dist/node_modules/nodejs-snowflake/package.json +1 -1
- package/dist/node_modules/zod/package.json +1 -1
- package/dist/node_modules/zod-to-json-schema/package.json +1 -1
- package/dist/server/ai-employees/ai-employee.js +5 -2
- package/dist/server/llm-providers/anthropic.js +4 -5
- package/dist/server/llm-providers/provider.js +5 -1
- package/dist/server/manager/ai-chat-conversation.js +3 -2
- package/dist/server/manager/built-in-manager.js +3 -3
- package/dist/server/migrations/20260107000000-reset-builtin-about.d.ts +14 -0
- package/dist/server/migrations/20260107000000-reset-builtin-about.js +48 -0
- package/dist/server/resource/ai.js +8 -2
- package/dist/server/resource/aiEmployees.d.ts +0 -1
- package/dist/server/resource/aiEmployees.js +0 -15
- package/dist/server/types/ai-message.type.d.ts +2 -0
- package/package.json +3 -3
- package/dist/client/a7f0550514128d80.js +0 -10
- package/dist/node_modules/@langchain/google-genai/dist/output_parsers.d.ts +0 -20
- package/dist/node_modules/@langchain/google-genai/dist/types.cjs +0 -2
- package/dist/node_modules/@langchain/google-genai/dist/types.js +0 -1
- package/dist/node_modules/@langchain/google-genai/dist/utils/common.d.ts +0 -22
- package/dist/node_modules/@langchain/google-genai/dist/utils/tools.d.ts +0 -10
- package/dist/node_modules/@langchain/google-genai/dist/utils/zod_to_genai_parameters.d.ts +0 -14
- package/dist/node_modules/@langchain/google-genai/index.cjs +0 -252
- package/dist/node_modules/@langchain/google-genai/index.d.cts +0 -1
- package/dist/node_modules/@langchain/google-genai/index.d.ts +0 -1
- package/dist/node_modules/@langchain/google-genai/index.js +0 -1
|
@@ -1,110 +1,73 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_zod_to_genai_parameters = require('./zod_to_genai_parameters.cjs');
|
|
3
|
+
const require_common = require('./common.cjs');
|
|
4
|
+
const __google_generative_ai = require_rolldown_runtime.__toESM(require("@google/generative-ai"));
|
|
5
|
+
const __langchain_core_utils_function_calling = require_rolldown_runtime.__toESM(require("@langchain/core/utils/function_calling"));
|
|
6
|
+
const __langchain_core_language_models_base = require_rolldown_runtime.__toESM(require("@langchain/core/language_models/base"));
|
|
7
|
+
|
|
8
|
+
//#region src/utils/tools.ts
|
|
9
9
|
function convertToolsToGenAI(tools, extra) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
const genAITools = processTools(tools);
|
|
11
|
+
const toolConfig = createToolConfig(genAITools, extra);
|
|
12
|
+
return {
|
|
13
|
+
tools: genAITools,
|
|
14
|
+
toolConfig
|
|
15
|
+
};
|
|
15
16
|
}
|
|
16
17
|
function processTools(tools) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
const genAIFunctionDeclaration = genAITools.find((t) => "functionDeclarations" in t);
|
|
42
|
-
if (genAIFunctionDeclaration) {
|
|
43
|
-
return genAITools.map((tool) => {
|
|
44
|
-
if (functionDeclarationTools?.length > 0 &&
|
|
45
|
-
"functionDeclarations" in tool) {
|
|
46
|
-
const newTool = {
|
|
47
|
-
functionDeclarations: [
|
|
48
|
-
...(tool.functionDeclarations || []),
|
|
49
|
-
...functionDeclarationTools,
|
|
50
|
-
],
|
|
51
|
-
};
|
|
52
|
-
// Clear the functionDeclarationTools array so it is not passed again
|
|
53
|
-
functionDeclarationTools = [];
|
|
54
|
-
return newTool;
|
|
55
|
-
}
|
|
56
|
-
return tool;
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
return [
|
|
60
|
-
...genAITools,
|
|
61
|
-
...(functionDeclarationTools.length > 0
|
|
62
|
-
? [
|
|
63
|
-
{
|
|
64
|
-
functionDeclarations: functionDeclarationTools,
|
|
65
|
-
},
|
|
66
|
-
]
|
|
67
|
-
: []),
|
|
68
|
-
];
|
|
18
|
+
let functionDeclarationTools = [];
|
|
19
|
+
const genAITools = [];
|
|
20
|
+
tools.forEach((tool) => {
|
|
21
|
+
if ((0, __langchain_core_utils_function_calling.isLangChainTool)(tool)) {
|
|
22
|
+
const [convertedTool] = require_common.convertToGenerativeAITools([tool]);
|
|
23
|
+
if (convertedTool.functionDeclarations) functionDeclarationTools.push(...convertedTool.functionDeclarations);
|
|
24
|
+
} else if ((0, __langchain_core_language_models_base.isOpenAITool)(tool)) {
|
|
25
|
+
const { functionDeclarations } = convertOpenAIToolToGenAI(tool);
|
|
26
|
+
if (functionDeclarations) functionDeclarationTools.push(...functionDeclarations);
|
|
27
|
+
else throw new Error("Failed to convert OpenAI structured tool to GenerativeAI tool");
|
|
28
|
+
} else genAITools.push(tool);
|
|
29
|
+
});
|
|
30
|
+
const genAIFunctionDeclaration = genAITools.find((t) => "functionDeclarations" in t);
|
|
31
|
+
if (genAIFunctionDeclaration) return genAITools.map((tool) => {
|
|
32
|
+
if (functionDeclarationTools?.length > 0 && "functionDeclarations" in tool) {
|
|
33
|
+
const newTool = { functionDeclarations: [...tool.functionDeclarations || [], ...functionDeclarationTools] };
|
|
34
|
+
functionDeclarationTools = [];
|
|
35
|
+
return newTool;
|
|
36
|
+
}
|
|
37
|
+
return tool;
|
|
38
|
+
});
|
|
39
|
+
return [...genAITools, ...functionDeclarationTools.length > 0 ? [{ functionDeclarations: functionDeclarationTools }] : []];
|
|
69
40
|
}
|
|
70
41
|
function convertOpenAIToolToGenAI(tool) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
parameters: (0, zod_to_genai_parameters_js_1.removeAdditionalProperties)(tool.function.parameters),
|
|
77
|
-
},
|
|
78
|
-
],
|
|
79
|
-
};
|
|
42
|
+
return { functionDeclarations: [{
|
|
43
|
+
name: tool.function.name,
|
|
44
|
+
description: tool.function.description,
|
|
45
|
+
parameters: require_zod_to_genai_parameters.removeAdditionalProperties(tool.function.parameters)
|
|
46
|
+
}] };
|
|
80
47
|
}
|
|
81
48
|
function createToolConfig(genAITools, extra) {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
allowedFunctionNames: [
|
|
103
|
-
...(allowedFunctionNames ?? []),
|
|
104
|
-
...(toolChoice && typeof toolChoice === "string" ? [toolChoice] : []),
|
|
105
|
-
],
|
|
106
|
-
},
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
return undefined;
|
|
49
|
+
if (!genAITools.length || !extra) return void 0;
|
|
50
|
+
const { toolChoice, allowedFunctionNames } = extra;
|
|
51
|
+
const modeMap = {
|
|
52
|
+
any: __google_generative_ai.FunctionCallingMode.ANY,
|
|
53
|
+
auto: __google_generative_ai.FunctionCallingMode.AUTO,
|
|
54
|
+
none: __google_generative_ai.FunctionCallingMode.NONE
|
|
55
|
+
};
|
|
56
|
+
if (toolChoice && [
|
|
57
|
+
"any",
|
|
58
|
+
"auto",
|
|
59
|
+
"none"
|
|
60
|
+
].includes(toolChoice)) return { functionCallingConfig: {
|
|
61
|
+
mode: modeMap[toolChoice] ?? "MODE_UNSPECIFIED",
|
|
62
|
+
allowedFunctionNames
|
|
63
|
+
} };
|
|
64
|
+
if (typeof toolChoice === "string" || allowedFunctionNames) return { functionCallingConfig: {
|
|
65
|
+
mode: __google_generative_ai.FunctionCallingMode.ANY,
|
|
66
|
+
allowedFunctionNames: [...allowedFunctionNames ?? [], ...toolChoice && typeof toolChoice === "string" ? [toolChoice] : []]
|
|
67
|
+
} };
|
|
68
|
+
return void 0;
|
|
110
69
|
}
|
|
70
|
+
|
|
71
|
+
//#endregion
|
|
72
|
+
exports.convertToolsToGenAI = convertToolsToGenAI;
|
|
73
|
+
//# sourceMappingURL=tools.cjs.map
|
|
@@ -1,107 +1,72 @@
|
|
|
1
|
-
import { FunctionCallingMode, } from "@google/generative-ai";
|
|
2
|
-
import { isLangChainTool } from "@langchain/core/utils/function_calling";
|
|
3
|
-
import { isOpenAITool, } from "@langchain/core/language_models/base";
|
|
4
|
-
import { convertToGenerativeAITools } from "./common.js";
|
|
5
1
|
import { removeAdditionalProperties } from "./zod_to_genai_parameters.js";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
import { convertToGenerativeAITools } from "./common.js";
|
|
3
|
+
import { FunctionCallingMode } from "@google/generative-ai";
|
|
4
|
+
import { isLangChainTool } from "@langchain/core/utils/function_calling";
|
|
5
|
+
import { isOpenAITool } from "@langchain/core/language_models/base";
|
|
6
|
+
|
|
7
|
+
//#region src/utils/tools.ts
|
|
8
|
+
function convertToolsToGenAI(tools, extra) {
|
|
9
|
+
const genAITools = processTools(tools);
|
|
10
|
+
const toolConfig = createToolConfig(genAITools, extra);
|
|
11
|
+
return {
|
|
12
|
+
tools: genAITools,
|
|
13
|
+
toolConfig
|
|
14
|
+
};
|
|
12
15
|
}
|
|
13
16
|
function processTools(tools) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
const genAIFunctionDeclaration = genAITools.find((t) => "functionDeclarations" in t);
|
|
39
|
-
if (genAIFunctionDeclaration) {
|
|
40
|
-
return genAITools.map((tool) => {
|
|
41
|
-
if (functionDeclarationTools?.length > 0 &&
|
|
42
|
-
"functionDeclarations" in tool) {
|
|
43
|
-
const newTool = {
|
|
44
|
-
functionDeclarations: [
|
|
45
|
-
...(tool.functionDeclarations || []),
|
|
46
|
-
...functionDeclarationTools,
|
|
47
|
-
],
|
|
48
|
-
};
|
|
49
|
-
// Clear the functionDeclarationTools array so it is not passed again
|
|
50
|
-
functionDeclarationTools = [];
|
|
51
|
-
return newTool;
|
|
52
|
-
}
|
|
53
|
-
return tool;
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
return [
|
|
57
|
-
...genAITools,
|
|
58
|
-
...(functionDeclarationTools.length > 0
|
|
59
|
-
? [
|
|
60
|
-
{
|
|
61
|
-
functionDeclarations: functionDeclarationTools,
|
|
62
|
-
},
|
|
63
|
-
]
|
|
64
|
-
: []),
|
|
65
|
-
];
|
|
17
|
+
let functionDeclarationTools = [];
|
|
18
|
+
const genAITools = [];
|
|
19
|
+
tools.forEach((tool) => {
|
|
20
|
+
if (isLangChainTool(tool)) {
|
|
21
|
+
const [convertedTool] = convertToGenerativeAITools([tool]);
|
|
22
|
+
if (convertedTool.functionDeclarations) functionDeclarationTools.push(...convertedTool.functionDeclarations);
|
|
23
|
+
} else if (isOpenAITool(tool)) {
|
|
24
|
+
const { functionDeclarations } = convertOpenAIToolToGenAI(tool);
|
|
25
|
+
if (functionDeclarations) functionDeclarationTools.push(...functionDeclarations);
|
|
26
|
+
else throw new Error("Failed to convert OpenAI structured tool to GenerativeAI tool");
|
|
27
|
+
} else genAITools.push(tool);
|
|
28
|
+
});
|
|
29
|
+
const genAIFunctionDeclaration = genAITools.find((t) => "functionDeclarations" in t);
|
|
30
|
+
if (genAIFunctionDeclaration) return genAITools.map((tool) => {
|
|
31
|
+
if (functionDeclarationTools?.length > 0 && "functionDeclarations" in tool) {
|
|
32
|
+
const newTool = { functionDeclarations: [...tool.functionDeclarations || [], ...functionDeclarationTools] };
|
|
33
|
+
functionDeclarationTools = [];
|
|
34
|
+
return newTool;
|
|
35
|
+
}
|
|
36
|
+
return tool;
|
|
37
|
+
});
|
|
38
|
+
return [...genAITools, ...functionDeclarationTools.length > 0 ? [{ functionDeclarations: functionDeclarationTools }] : []];
|
|
66
39
|
}
|
|
67
40
|
function convertOpenAIToolToGenAI(tool) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
parameters: removeAdditionalProperties(tool.function.parameters),
|
|
74
|
-
},
|
|
75
|
-
],
|
|
76
|
-
};
|
|
41
|
+
return { functionDeclarations: [{
|
|
42
|
+
name: tool.function.name,
|
|
43
|
+
description: tool.function.description,
|
|
44
|
+
parameters: removeAdditionalProperties(tool.function.parameters)
|
|
45
|
+
}] };
|
|
77
46
|
}
|
|
78
47
|
function createToolConfig(genAITools, extra) {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
allowedFunctionNames: [
|
|
100
|
-
...(allowedFunctionNames ?? []),
|
|
101
|
-
...(toolChoice && typeof toolChoice === "string" ? [toolChoice] : []),
|
|
102
|
-
],
|
|
103
|
-
},
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
return undefined;
|
|
48
|
+
if (!genAITools.length || !extra) return void 0;
|
|
49
|
+
const { toolChoice, allowedFunctionNames } = extra;
|
|
50
|
+
const modeMap = {
|
|
51
|
+
any: FunctionCallingMode.ANY,
|
|
52
|
+
auto: FunctionCallingMode.AUTO,
|
|
53
|
+
none: FunctionCallingMode.NONE
|
|
54
|
+
};
|
|
55
|
+
if (toolChoice && [
|
|
56
|
+
"any",
|
|
57
|
+
"auto",
|
|
58
|
+
"none"
|
|
59
|
+
].includes(toolChoice)) return { functionCallingConfig: {
|
|
60
|
+
mode: modeMap[toolChoice] ?? "MODE_UNSPECIFIED",
|
|
61
|
+
allowedFunctionNames
|
|
62
|
+
} };
|
|
63
|
+
if (typeof toolChoice === "string" || allowedFunctionNames) return { functionCallingConfig: {
|
|
64
|
+
mode: FunctionCallingMode.ANY,
|
|
65
|
+
allowedFunctionNames: [...allowedFunctionNames ?? [], ...toolChoice && typeof toolChoice === "string" ? [toolChoice] : []]
|
|
66
|
+
} };
|
|
67
|
+
return void 0;
|
|
107
68
|
}
|
|
69
|
+
|
|
70
|
+
//#endregion
|
|
71
|
+
export { convertToolsToGenAI };
|
|
72
|
+
//# sourceMappingURL=tools.js.map
|
|
@@ -1,53 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
if ("strict" in newObj) {
|
|
21
|
-
delete newObj.strict;
|
|
22
|
-
}
|
|
23
|
-
for (const key in newObj) {
|
|
24
|
-
if (key in newObj) {
|
|
25
|
-
if (Array.isArray(newObj[key])) {
|
|
26
|
-
newObj[key] = newObj[key].map(removeAdditionalProperties);
|
|
27
|
-
}
|
|
28
|
-
else if (typeof newObj[key] === "object" && newObj[key] !== null) {
|
|
29
|
-
newObj[key] = removeAdditionalProperties(newObj[key]);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return newObj;
|
|
34
|
-
}
|
|
35
|
-
return obj;
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const __langchain_core_utils_types = require_rolldown_runtime.__toESM(require("@langchain/core/utils/types"));
|
|
3
|
+
const __langchain_core_utils_json_schema = require_rolldown_runtime.__toESM(require("@langchain/core/utils/json_schema"));
|
|
4
|
+
|
|
5
|
+
//#region src/utils/zod_to_genai_parameters.ts
|
|
6
|
+
function removeAdditionalProperties(obj) {
|
|
7
|
+
if (typeof obj === "object" && obj !== null) {
|
|
8
|
+
const newObj = { ...obj };
|
|
9
|
+
if ("additionalProperties" in newObj) delete newObj.additionalProperties;
|
|
10
|
+
if ("$schema" in newObj) delete newObj.$schema;
|
|
11
|
+
if ("strict" in newObj) delete newObj.strict;
|
|
12
|
+
for (const key in newObj) if (key in newObj) {
|
|
13
|
+
if (Array.isArray(newObj[key])) newObj[key] = newObj[key].map(removeAdditionalProperties);
|
|
14
|
+
else if (typeof newObj[key] === "object" && newObj[key] !== null) newObj[key] = removeAdditionalProperties(newObj[key]);
|
|
15
|
+
}
|
|
16
|
+
return newObj;
|
|
17
|
+
}
|
|
18
|
+
return obj;
|
|
36
19
|
}
|
|
37
20
|
function schemaToGenerativeAIParameters(schema) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
const { $schema, ...rest } = jsonSchema;
|
|
42
|
-
return rest;
|
|
21
|
+
const jsonSchema = removeAdditionalProperties((0, __langchain_core_utils_types.isInteropZodSchema)(schema) ? (0, __langchain_core_utils_json_schema.toJsonSchema)(schema) : schema);
|
|
22
|
+
const { $schema,...rest } = jsonSchema;
|
|
23
|
+
return rest;
|
|
43
24
|
}
|
|
44
|
-
function jsonSchemaToGeminiParameters(
|
|
45
|
-
|
|
46
|
-
schema
|
|
47
|
-
|
|
48
|
-
// attributes, so we need to explicitly remove them.
|
|
49
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
50
|
-
const jsonSchema = removeAdditionalProperties(schema);
|
|
51
|
-
const { $schema, ...rest } = jsonSchema;
|
|
52
|
-
return rest;
|
|
25
|
+
function jsonSchemaToGeminiParameters(schema) {
|
|
26
|
+
const jsonSchema = removeAdditionalProperties(schema);
|
|
27
|
+
const { $schema,...rest } = jsonSchema;
|
|
28
|
+
return rest;
|
|
53
29
|
}
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
exports.jsonSchemaToGeminiParameters = jsonSchemaToGeminiParameters;
|
|
33
|
+
exports.removeAdditionalProperties = removeAdditionalProperties;
|
|
34
|
+
exports.schemaToGenerativeAIParameters = schemaToGenerativeAIParameters;
|
|
35
|
+
//# sourceMappingURL=zod_to_genai_parameters.cjs.map
|
|
@@ -1,48 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
obj) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
for (const key in newObj) {
|
|
19
|
-
if (key in newObj) {
|
|
20
|
-
if (Array.isArray(newObj[key])) {
|
|
21
|
-
newObj[key] = newObj[key].map(removeAdditionalProperties);
|
|
22
|
-
}
|
|
23
|
-
else if (typeof newObj[key] === "object" && newObj[key] !== null) {
|
|
24
|
-
newObj[key] = removeAdditionalProperties(newObj[key]);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
return newObj;
|
|
29
|
-
}
|
|
30
|
-
return obj;
|
|
1
|
+
import { isInteropZodSchema } from "@langchain/core/utils/types";
|
|
2
|
+
import { toJsonSchema } from "@langchain/core/utils/json_schema";
|
|
3
|
+
|
|
4
|
+
//#region src/utils/zod_to_genai_parameters.ts
|
|
5
|
+
function removeAdditionalProperties(obj) {
|
|
6
|
+
if (typeof obj === "object" && obj !== null) {
|
|
7
|
+
const newObj = { ...obj };
|
|
8
|
+
if ("additionalProperties" in newObj) delete newObj.additionalProperties;
|
|
9
|
+
if ("$schema" in newObj) delete newObj.$schema;
|
|
10
|
+
if ("strict" in newObj) delete newObj.strict;
|
|
11
|
+
for (const key in newObj) if (key in newObj) {
|
|
12
|
+
if (Array.isArray(newObj[key])) newObj[key] = newObj[key].map(removeAdditionalProperties);
|
|
13
|
+
else if (typeof newObj[key] === "object" && newObj[key] !== null) newObj[key] = removeAdditionalProperties(newObj[key]);
|
|
14
|
+
}
|
|
15
|
+
return newObj;
|
|
16
|
+
}
|
|
17
|
+
return obj;
|
|
31
18
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
const { $schema, ...rest } = jsonSchema;
|
|
37
|
-
return rest;
|
|
19
|
+
function schemaToGenerativeAIParameters(schema) {
|
|
20
|
+
const jsonSchema = removeAdditionalProperties(isInteropZodSchema(schema) ? toJsonSchema(schema) : schema);
|
|
21
|
+
const { $schema,...rest } = jsonSchema;
|
|
22
|
+
return rest;
|
|
38
23
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
schema
|
|
42
|
-
|
|
43
|
-
// attributes, so we need to explicitly remove them.
|
|
44
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
45
|
-
const jsonSchema = removeAdditionalProperties(schema);
|
|
46
|
-
const { $schema, ...rest } = jsonSchema;
|
|
47
|
-
return rest;
|
|
24
|
+
function jsonSchemaToGeminiParameters(schema) {
|
|
25
|
+
const jsonSchema = removeAdditionalProperties(schema);
|
|
26
|
+
const { $schema,...rest } = jsonSchema;
|
|
27
|
+
return rest;
|
|
48
28
|
}
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
export { jsonSchemaToGeminiParameters, removeAdditionalProperties, schemaToGenerativeAIParameters };
|
|
32
|
+
//# sourceMappingURL=zod_to_genai_parameters.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@langchain/google-genai","version":"0.
|
|
1
|
+
{"name":"@langchain/google-genai","version":"1.0.3","description":"Google Generative AI integration for LangChain.js","author":"LangChain","license":"MIT","type":"module","engines":{"node":">=20"},"repository":{"type":"git","url":"git@github.com:langchain-ai/langchainjs.git"},"homepage":"https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-google-genai/","dependencies":{"@google/generative-ai":"^0.24.0","uuid":"^11.1.0"},"peerDependencies":{"@langchain/core":"1.0.6"},"devDependencies":{"@jest/globals":"^29.5.0","@swc/core":"^1.3.90","@swc/jest":"^0.2.29","@tsconfig/recommended":"^1.0.3","dotenv":"^16.3.1","dpdm":"^3.14.0","eslint":"^9.34.0","hnswlib-node":"^3.0.0","jest":"^29.5.0","jest-environment-node":"^29.6.4","prettier":"^2.8.3","rollup":"^4.5.2","ts-jest":"^29.1.0","typescript":"~5.8.3","zod":"^3.25.76","@langchain/eslint":"0.1.0","@langchain/standard-tests":"0.0.2","@langchain/core":"1.0.6"},"publishConfig":{"access":"public"},"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"input":"./src/index.ts","import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./package.json":"./package.json"},"files":["dist/","CHANGELOG.md","README.md","LICENSE"],"scripts":{"build":"turbo build:compile --filter @langchain/google-genai","build:compile":"pnpm --filter @langchain/build compile @langchain/google-genai","lint:eslint":"eslint --cache src/","lint:dpdm":"dpdm --skip-dynamic-imports circular --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts","lint":"pnpm lint:eslint && pnpm lint:dpdm","lint:fix":"pnpm lint:eslint --fix && pnpm lint:dpdm","clean":"rm -rf .turbo dist/","test":"NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts","test:single":"NODE_OPTIONS=--experimental-vm-modules jest --config jest.config.cjs --testTimeout 100000","test:int":"NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%","test:standard:unit":"NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.standard\\.test.ts --testTimeout 100000 --maxWorkers=50%","test:standard:int":"NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.standard\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%","test:standard":"pnpm test:standard:unit && pnpm test:standard:int","format":"prettier --config .prettierrc --write \"src\"","format:check":"prettier --config .prettierrc --check \"src\"","typegen":"pnpm run typegen:profiles","typegen:profiles":"pnpm --filter @langchain/model-profiles make --config profiles.toml"},"_lastModified":"2026-01-09T02:29:51.570Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@langchain/ollama","version":"0.1.6","description":"Ollama integration for LangChain.js","type":"module","engines":{"node":">=18"},"main":"./index.js","types":"./index.d.ts","repository":{"type":"git","url":"git@github.com:langchain-ai/langchainjs.git"},"homepage":"https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-ollama/","scripts":{"build":"yarn turbo:command build:internal --filter=@langchain/ollama","build:internal":"yarn lc_build --create-entrypoints --pre --tree-shaking","lint:eslint":"NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/","lint:dpdm":"dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts","lint":"yarn lint:eslint && yarn lint:dpdm","lint:fix":"yarn lint:eslint --fix && yarn lint:dpdm","clean":"rm -rf .turbo dist/","prepack":"yarn build","test":"NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts","test:single":"NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000","test:int":"NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%","format":"prettier --config .prettierrc --write \"src\"","format:check":"prettier --config .prettierrc --check \"src\""},"author":"LangChain","license":"MIT","dependencies":{"ollama":"^0.5.12","uuid":"^10.0.0","zod":"^3.24.1","zod-to-json-schema":"^3.24.1"},"peerDependencies":{"@langchain/core":">=0.2.21 <0.4.0"},"devDependencies":{"@jest/globals":"^29.5.0","@langchain/core":"workspace:*","@langchain/scripts":">=0.1.0 <0.2.0","@langchain/standard-tests":"0.0.0","@swc/core":"^1.3.90","@swc/jest":"^0.2.29","@tsconfig/recommended":"^1.0.3","@typescript-eslint/eslint-plugin":"^6.12.0","@typescript-eslint/parser":"^6.12.0","dotenv":"^16.3.1","dpdm":"^3.12.0","eslint":"^8.33.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.6.0","eslint-plugin-import":"^2.27.5","eslint-plugin-no-instanceof":"^1.0.1","eslint-plugin-prettier":"^4.2.1","jest":"^29.5.0","jest-environment-node":"^29.6.4","prettier":"^2.8.3","release-it":"^17.6.0","rollup":"^4.5.2","ts-jest":"^29.1.0","typescript":"<5.2.0"},"publishConfig":{"access":"public"},"exports":{".":{"types":{"import":"./index.d.ts","require":"./index.d.cts","default":"./index.d.ts"},"import":"./index.js","require":"./index.cjs"},"./package.json":"./package.json"},"files":["dist/","index.cjs","index.js","index.d.ts","index.d.cts"],"_lastModified":"2026-01-
|
|
1
|
+
{"name":"@langchain/ollama","version":"0.1.6","description":"Ollama integration for LangChain.js","type":"module","engines":{"node":">=18"},"main":"./index.js","types":"./index.d.ts","repository":{"type":"git","url":"git@github.com:langchain-ai/langchainjs.git"},"homepage":"https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-ollama/","scripts":{"build":"yarn turbo:command build:internal --filter=@langchain/ollama","build:internal":"yarn lc_build --create-entrypoints --pre --tree-shaking","lint:eslint":"NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/","lint:dpdm":"dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts","lint":"yarn lint:eslint && yarn lint:dpdm","lint:fix":"yarn lint:eslint --fix && yarn lint:dpdm","clean":"rm -rf .turbo dist/","prepack":"yarn build","test":"NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts","test:single":"NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000","test:int":"NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%","format":"prettier --config .prettierrc --write \"src\"","format:check":"prettier --config .prettierrc --check \"src\""},"author":"LangChain","license":"MIT","dependencies":{"ollama":"^0.5.12","uuid":"^10.0.0","zod":"^3.24.1","zod-to-json-schema":"^3.24.1"},"peerDependencies":{"@langchain/core":">=0.2.21 <0.4.0"},"devDependencies":{"@jest/globals":"^29.5.0","@langchain/core":"workspace:*","@langchain/scripts":">=0.1.0 <0.2.0","@langchain/standard-tests":"0.0.0","@swc/core":"^1.3.90","@swc/jest":"^0.2.29","@tsconfig/recommended":"^1.0.3","@typescript-eslint/eslint-plugin":"^6.12.0","@typescript-eslint/parser":"^6.12.0","dotenv":"^16.3.1","dpdm":"^3.12.0","eslint":"^8.33.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.6.0","eslint-plugin-import":"^2.27.5","eslint-plugin-no-instanceof":"^1.0.1","eslint-plugin-prettier":"^4.2.1","jest":"^29.5.0","jest-environment-node":"^29.6.4","prettier":"^2.8.3","release-it":"^17.6.0","rollup":"^4.5.2","ts-jest":"^29.1.0","typescript":"<5.2.0"},"publishConfig":{"access":"public"},"exports":{".":{"types":{"import":"./index.d.ts","require":"./index.d.cts","default":"./index.d.ts"},"import":"./index.js","require":"./index.cjs"},"./package.json":"./package.json"},"files":["dist/","index.cjs","index.js","index.d.ts","index.d.cts"],"_lastModified":"2026-01-09T02:29:55.006Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@langchain/openai","version":"0.6.13","description":"OpenAI integrations for LangChain.js","type":"module","engines":{"node":">=18"},"main":"./index.js","types":"./index.d.ts","repository":{"type":"git","url":"git@github.com:langchain-ai/langchainjs.git"},"homepage":"https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-openai/","scripts":{"build":"yarn turbo:command build:internal --filter=@langchain/openai","build:internal":"yarn lc_build --create-entrypoints --pre --tree-shaking","lint:eslint":"NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/","lint:dpdm":"dpdm --skip-dynamic-imports circular --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts","lint":"yarn lint:eslint && yarn lint:dpdm","lint:fix":"yarn lint:eslint --fix && yarn lint:dpdm","clean":"rm -rf .turbo dist/","prepack":"yarn build","test":"NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts","test:single":"NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000","test:int":"NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%","test:standard:unit":"NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.standard\\.test.ts --testTimeout 100000 --maxWorkers=50%","test:standard:int":"NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.standard\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%","test:standard":"yarn test:standard:unit && yarn test:standard:int","format":"prettier --config .prettierrc --write \"src\"","format:check":"prettier --config .prettierrc --check \"src\""},"author":"LangChain","license":"MIT","dependencies":{"js-tiktoken":"^1.0.12","openai":"5.12.2","zod":"^3.25.32"},"peerDependencies":{"@langchain/core":">=0.3.68 <0.4.0"},"devDependencies":{"@azure/identity":"^4.2.1","@jest/globals":"^29.5.0","@langchain/core":"workspace:*","@langchain/scripts":">=0.1.0 <0.2.0","@langchain/standard-tests":"0.0.0","@swc/core":"^1.3.90","@swc/jest":"^0.2.29","dpdm":"^3.14.0","eslint":"^8.33.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.6.0","eslint-plugin-import":"^2.31.0","eslint-plugin-jest":"^27.6.0","eslint-plugin-no-instanceof":"^1.0.1","eslint-plugin-prettier":"^4.2.1","jest":"^29.5.0","jest-environment-node":"^29.6.4","prettier":"^2.8.3","release-it":"^18.1.2","rimraf":"^5.0.1","ts-jest":"^29.1.0","typescript":"~5.8.3"},"publishConfig":{"access":"public"},"keywords":["llm","ai","gpt3","chain","prompt","prompt engineering","chatgpt","machine learning","ml","openai","embeddings","vectorstores"],"exports":{".":{"types":{"import":"./index.d.ts","require":"./index.d.cts","default":"./index.d.ts"},"import":"./index.js","require":"./index.cjs"},"./package.json":"./package.json"},"files":["dist/","index.cjs","index.js","index.d.ts","index.d.cts"],"_lastModified":"2026-01-
|
|
1
|
+
{"name":"@langchain/openai","version":"0.6.13","description":"OpenAI integrations for LangChain.js","type":"module","engines":{"node":">=18"},"main":"./index.js","types":"./index.d.ts","repository":{"type":"git","url":"git@github.com:langchain-ai/langchainjs.git"},"homepage":"https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-openai/","scripts":{"build":"yarn turbo:command build:internal --filter=@langchain/openai","build:internal":"yarn lc_build --create-entrypoints --pre --tree-shaking","lint:eslint":"NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/","lint:dpdm":"dpdm --skip-dynamic-imports circular --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts","lint":"yarn lint:eslint && yarn lint:dpdm","lint:fix":"yarn lint:eslint --fix && yarn lint:dpdm","clean":"rm -rf .turbo dist/","prepack":"yarn build","test":"NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts","test:single":"NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000","test:int":"NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%","test:standard:unit":"NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.standard\\.test.ts --testTimeout 100000 --maxWorkers=50%","test:standard:int":"NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.standard\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%","test:standard":"yarn test:standard:unit && yarn test:standard:int","format":"prettier --config .prettierrc --write \"src\"","format:check":"prettier --config .prettierrc --check \"src\""},"author":"LangChain","license":"MIT","dependencies":{"js-tiktoken":"^1.0.12","openai":"5.12.2","zod":"^3.25.32"},"peerDependencies":{"@langchain/core":">=0.3.68 <0.4.0"},"devDependencies":{"@azure/identity":"^4.2.1","@jest/globals":"^29.5.0","@langchain/core":"workspace:*","@langchain/scripts":">=0.1.0 <0.2.0","@langchain/standard-tests":"0.0.0","@swc/core":"^1.3.90","@swc/jest":"^0.2.29","dpdm":"^3.14.0","eslint":"^8.33.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.6.0","eslint-plugin-import":"^2.31.0","eslint-plugin-jest":"^27.6.0","eslint-plugin-no-instanceof":"^1.0.1","eslint-plugin-prettier":"^4.2.1","jest":"^29.5.0","jest-environment-node":"^29.6.4","prettier":"^2.8.3","release-it":"^18.1.2","rimraf":"^5.0.1","ts-jest":"^29.1.0","typescript":"~5.8.3"},"publishConfig":{"access":"public"},"keywords":["llm","ai","gpt3","chain","prompt","prompt engineering","chatgpt","machine learning","ml","openai","embeddings","vectorstores"],"exports":{".":{"types":{"import":"./index.d.ts","require":"./index.d.cts","default":"./index.d.ts"},"import":"./index.js","require":"./index.cjs"},"./package.json":"./package.json"},"files":["dist/","index.cjs","index.js","index.d.ts","index.d.cts"],"_lastModified":"2026-01-09T02:29:43.617Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"nodejs-snowflake","collaborators":["Utkarsh Srivastava <utkarsh@sagacious.dev>"],"description":"Generate time sortable 64 bits unique ids for distributed systems (inspired from twitter snowflake)","version":"2.0.1","license":"Apache 2.0","repository":{"type":"git","url":"https://github.com/utkarsh-pro/nodejs-snowflake.git"},"files":["nodejs_snowflake_bg.wasm","nodejs_snowflake.js","nodejs_snowflake.d.ts"],"main":"nodejs_snowflake.js","types":"nodejs_snowflake.d.ts","_lastModified":"2026-01-
|
|
1
|
+
{"name":"nodejs-snowflake","collaborators":["Utkarsh Srivastava <utkarsh@sagacious.dev>"],"description":"Generate time sortable 64 bits unique ids for distributed systems (inspired from twitter snowflake)","version":"2.0.1","license":"Apache 2.0","repository":{"type":"git","url":"https://github.com/utkarsh-pro/nodejs-snowflake.git"},"files":["nodejs_snowflake_bg.wasm","nodejs_snowflake.js","nodejs_snowflake.d.ts"],"main":"nodejs_snowflake.js","types":"nodejs_snowflake.d.ts","_lastModified":"2026-01-09T02:29:35.985Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"zod","version":"3.25.67","type":"module","author":"Colin McDonnell <zod@colinhacks.com>","description":"TypeScript-first schema declaration and validation library with static type inference","files":["dist","v3","v4","v4-mini"],"funding":"https://github.com/sponsors/colinhacks","homepage":"https://zod.dev","keywords":["typescript","schema","validation","type","inference"],"license":"MIT","sideEffects":false,"main":"./dist/cjs/index.js","types":"./dist/types/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"@zod/source":"./src/index.ts","types":"./dist/types/index.d.ts","default":"./dist/esm/index.js"},"require":{"@zod/source":"./src/index.ts","types":"./dist/types/index.d.ts","default":"./dist/cjs/index.js"}},"./v3":{"import":{"@zod/source":"./src/index.ts","types":"./dist/types/index.d.ts","default":"./dist/esm/index.js"},"require":{"@zod/source":"./src/index.ts","types":"./dist/types/index.d.ts","default":"./dist/cjs/index.js"}},"./v4":{"import":{"@zod/source":"./src/v4/index.ts","types":"./dist/types/v4/index.d.ts","default":"./dist/esm/v4/index.js"},"require":{"@zod/source":"./src/v4/index.ts","types":"./dist/types/v4/index.d.ts","default":"./dist/cjs/v4/index.js"}},"./v4-mini":{"@zod/source":"./src/v4/mini/index.ts","types":"./dist/types/v4/mini/index.d.ts","import":"./dist/esm/v4/mini/index.js","require":"./dist/cjs/v4/mini/index.js"},"./v4/mini":{"@zod/source":"./src/v4/mini/index.ts","types":"./dist/types/v4/mini/index.d.ts","import":"./dist/esm/v4/mini/index.js","require":"./dist/cjs/v4/mini/index.js"},"./v4/core":{"@zod/source":"./src/v4/core/index.ts","types":"./dist/types/v4/core/index.d.ts","import":"./dist/esm/v4/core/index.js","require":"./dist/cjs/v4/core/index.js"},"./v4/locales":{"@zod/source":"./src/v4/locales/index.ts","types":"./dist/types/v4/locales/index.d.ts","import":"./dist/esm/v4/locales/index.js","require":"./dist/cjs/v4/locales/index.js"},"./v4/locales/*":{"@zod/source":"./src/v4/locales/*","types":"./dist/types/v4/locales/*","import":"./dist/esm/v4/locales/*","require":"./dist/cjs/v4/locales/*"},"./package.json":"./package.json"},"tshy":{"exports":{"./package.json":"./package.json",".":"./src/index.ts","./v3":"./src/v3/index.ts","./v4":"./src/v4/index.ts","./v4-mini":"./src/v4/mini/index.ts","./v4/core":"./src/v4/core/index.ts","./v4/locales":"./src/v4/locales/index.ts","./v4/locales/*":"./src/v4/locales/*"},"sourceDialects":["@zod/source"],"exclude":["./src/**/*.test.ts"]},"repository":{"type":"git","url":"git+https://github.com/colinhacks/zod.git"},"bugs":{"url":"https://github.com/colinhacks/zod/issues"},"support":{"backing":{"npm-funding":true}},"scripts":{"clean":"rm -rf dist","build":"tsx ./build.mts","postbuild":"pnpm biome check --write .","test:watch":"pnpm vitest","test":"pnpm vitest run","bump:beta":"pnpm version \"v$(pnpm pkg get version | jq -r)-beta.$(date +%Y%m%dT%H%M%S)\"","pub:beta":"pnpm bump:beta && pnpm publish --tag next --publish-branch v4 --no-git-checks --dry-run"},"_lastModified":"2026-01-
|
|
1
|
+
{"name":"zod","version":"3.25.67","type":"module","author":"Colin McDonnell <zod@colinhacks.com>","description":"TypeScript-first schema declaration and validation library with static type inference","files":["dist","v3","v4","v4-mini"],"funding":"https://github.com/sponsors/colinhacks","homepage":"https://zod.dev","keywords":["typescript","schema","validation","type","inference"],"license":"MIT","sideEffects":false,"main":"./dist/cjs/index.js","types":"./dist/types/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"@zod/source":"./src/index.ts","types":"./dist/types/index.d.ts","default":"./dist/esm/index.js"},"require":{"@zod/source":"./src/index.ts","types":"./dist/types/index.d.ts","default":"./dist/cjs/index.js"}},"./v3":{"import":{"@zod/source":"./src/index.ts","types":"./dist/types/index.d.ts","default":"./dist/esm/index.js"},"require":{"@zod/source":"./src/index.ts","types":"./dist/types/index.d.ts","default":"./dist/cjs/index.js"}},"./v4":{"import":{"@zod/source":"./src/v4/index.ts","types":"./dist/types/v4/index.d.ts","default":"./dist/esm/v4/index.js"},"require":{"@zod/source":"./src/v4/index.ts","types":"./dist/types/v4/index.d.ts","default":"./dist/cjs/v4/index.js"}},"./v4-mini":{"@zod/source":"./src/v4/mini/index.ts","types":"./dist/types/v4/mini/index.d.ts","import":"./dist/esm/v4/mini/index.js","require":"./dist/cjs/v4/mini/index.js"},"./v4/mini":{"@zod/source":"./src/v4/mini/index.ts","types":"./dist/types/v4/mini/index.d.ts","import":"./dist/esm/v4/mini/index.js","require":"./dist/cjs/v4/mini/index.js"},"./v4/core":{"@zod/source":"./src/v4/core/index.ts","types":"./dist/types/v4/core/index.d.ts","import":"./dist/esm/v4/core/index.js","require":"./dist/cjs/v4/core/index.js"},"./v4/locales":{"@zod/source":"./src/v4/locales/index.ts","types":"./dist/types/v4/locales/index.d.ts","import":"./dist/esm/v4/locales/index.js","require":"./dist/cjs/v4/locales/index.js"},"./v4/locales/*":{"@zod/source":"./src/v4/locales/*","types":"./dist/types/v4/locales/*","import":"./dist/esm/v4/locales/*","require":"./dist/cjs/v4/locales/*"},"./package.json":"./package.json"},"tshy":{"exports":{"./package.json":"./package.json",".":"./src/index.ts","./v3":"./src/v3/index.ts","./v4":"./src/v4/index.ts","./v4-mini":"./src/v4/mini/index.ts","./v4/core":"./src/v4/core/index.ts","./v4/locales":"./src/v4/locales/index.ts","./v4/locales/*":"./src/v4/locales/*"},"sourceDialects":["@zod/source"],"exclude":["./src/**/*.test.ts"]},"repository":{"type":"git","url":"git+https://github.com/colinhacks/zod.git"},"bugs":{"url":"https://github.com/colinhacks/zod/issues"},"support":{"backing":{"npm-funding":true}},"scripts":{"clean":"rm -rf dist","build":"tsx ./build.mts","postbuild":"pnpm biome check --write .","test:watch":"pnpm vitest","test":"pnpm vitest run","bump:beta":"pnpm version \"v$(pnpm pkg get version | jq -r)-beta.$(date +%Y%m%dT%H%M%S)\"","pub:beta":"pnpm bump:beta && pnpm publish --tag next --publish-branch v4 --no-git-checks --dry-run"},"_lastModified":"2026-01-09T02:29:55.831Z"}
|