@robota-sdk/agent-tools 3.0.0-beta.5 → 3.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.
@@ -1018,7 +1018,7 @@ async function writeFileTool(args) {
1018
1018
  await (0, import_promises2.writeFile)(filePath, content, "utf8");
1019
1019
  const result = {
1020
1020
  success: true,
1021
- output: `Written ${content.length} bytes to ${filePath}`
1021
+ output: `Written ${Buffer.byteLength(content, "utf8")} bytes to ${filePath}`
1022
1022
  };
1023
1023
  return JSON.stringify(result);
1024
1024
  } catch (err) {
@@ -968,7 +968,7 @@ async function writeFileTool(args) {
968
968
  await writeFile(filePath, content, "utf8");
969
969
  const result = {
970
970
  success: true,
971
- output: `Written ${content.length} bytes to ${filePath}`
971
+ output: `Written ${Buffer.byteLength(content, "utf8")} bytes to ${filePath}`
972
972
  };
973
973
  return JSON.stringify(result);
974
974
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robota-sdk/agent-tools",
3
- "version": "3.0.0-beta.5",
3
+ "version": "3.0.0-beta.7",
4
4
  "description": "Tool registry and implementations for Robota SDK",
5
5
  "type": "module",
6
6
  "main": "dist/node/index.js",
@@ -26,7 +26,7 @@
26
26
  "zod": "^3.24.0"
27
27
  },
28
28
  "peerDependencies": {
29
- "@robota-sdk/agent-core": "3.0.0-beta.5"
29
+ "@robota-sdk/agent-core": "3.0.0-beta.7"
30
30
  },
31
31
  "devDependencies": {
32
32
  "openapi-types": "^12.1.3",
@@ -34,7 +34,7 @@
34
34
  "tsup": "^8.0.1",
35
35
  "typescript": "^5.3.3",
36
36
  "vitest": "^1.6.1",
37
- "@robota-sdk/agent-core": "3.0.0-beta.5"
37
+ "@robota-sdk/agent-core": "3.0.0-beta.7"
38
38
  },
39
39
  "license": "MIT",
40
40
  "publishConfig": {