@lowdefy/ai-utils 0.0.0-experimental-20260422132846 → 5.3.0
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/buildAgentTools.js +6 -7
- package/dist/index.js +1 -0
- package/package.json +10 -6
package/dist/buildAgentTools.js
CHANGED
|
@@ -22,14 +22,13 @@ import readFile from './fileSystem/readFile.js';
|
|
|
22
22
|
import searchFiles from './fileSystem/searchFiles.js';
|
|
23
23
|
import statFile from './fileSystem/statFile.js';
|
|
24
24
|
import RESERVED_PLATFORM_TOOL_NAMES from './reservedToolNames.js';
|
|
25
|
-
// Build artifacts
|
|
26
|
-
//
|
|
27
|
-
//
|
|
25
|
+
// Build artifacts carry serializer markers (~k, ~r, ~l) and wrap location-marked
|
|
26
|
+
// arrays as { '~arr': [...], '~k': '...' }. serializer.deserialize un-wraps
|
|
27
|
+
// ~arr back to a plain array and demotes markers to non-enumerable properties;
|
|
28
|
+
// the subsequent JSON round-trip drops those non-enumerable markers, leaving a
|
|
29
|
+
// clean structure for the AI SDK.
|
|
28
30
|
function cleanBuildArtifact(obj) {
|
|
29
|
-
return JSON.parse(JSON.stringify(obj
|
|
30
|
-
if (key.startsWith('~')) return undefined;
|
|
31
|
-
return value;
|
|
32
|
-
}));
|
|
31
|
+
return JSON.parse(JSON.stringify(serializer.deserialize(obj)));
|
|
33
32
|
}
|
|
34
33
|
function assertNotReserved(name, kind) {
|
|
35
34
|
if (RESERVED_PLATFORM_TOOL_NAMES.includes(name)) {
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/ai-utils",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/lowdefy/lowdefy.git"
|
|
8
|
+
},
|
|
5
9
|
"type": "module",
|
|
6
10
|
"exports": {
|
|
7
11
|
".": "./dist/index.js",
|
|
@@ -12,11 +16,11 @@
|
|
|
12
16
|
"dist/*"
|
|
13
17
|
],
|
|
14
18
|
"dependencies": {
|
|
15
|
-
"@ai-sdk/mcp": "1.0.
|
|
16
|
-
"@lowdefy/errors": "
|
|
17
|
-
"@lowdefy/helpers": "
|
|
18
|
-
"ai": "6.0.
|
|
19
|
-
"glob": "
|
|
19
|
+
"@ai-sdk/mcp": "1.0.41",
|
|
20
|
+
"@lowdefy/errors": "5.3.0",
|
|
21
|
+
"@lowdefy/helpers": "5.3.0",
|
|
22
|
+
"ai": "6.0.176",
|
|
23
|
+
"glob": "13.0.6"
|
|
20
24
|
},
|
|
21
25
|
"devDependencies": {
|
|
22
26
|
"@jest/globals": "28.1.3",
|