@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.
@@ -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 contain serializer markers (~k, ~r, ~l) as non-enumerable
26
- // properties and ~arr wrappers for arrays. JSON.parse(JSON.stringify(obj))
27
- // strips non-enumerable props and produces a clean JSON Schema for the AI SDK.
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, (key, value)=>{
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
@@ -13,3 +13,4 @@
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
15
  */ export { default as handleAgentChat } from './handleAgentChat.js';
16
+ export { default as RESERVED_PLATFORM_TOOL_NAMES } from './reservedToolNames.js';
package/package.json CHANGED
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "name": "@lowdefy/ai-utils",
3
- "version": "0.0.0-experimental-20260422132846",
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.30",
16
- "@lowdefy/errors": "0.0.0-experimental-20260422132846",
17
- "@lowdefy/helpers": "0.0.0-experimental-20260422132846",
18
- "ai": "6.0.116",
19
- "glob": "11.0.2"
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",