@exreve/exk 1.0.10 → 1.0.11

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/index.js CHANGED
@@ -941,7 +941,7 @@ async function runDaemon(foreground = false, email) {
941
941
  socket?.emit('fs:list:response', { success: false, error: error.message });
942
942
  }
943
943
  });
944
- // File write handler
944
+ // File write handler - supports text (utf-8) and binary (base64) files
945
945
  socket.on('fs:write', async (data) => {
946
946
  try {
947
947
  const { filePath, content, encoding = 'utf-8' } = data;
@@ -953,8 +953,14 @@ async function runDaemon(foreground = false, email) {
953
953
  // Ensure directory exists
954
954
  const dir = path.dirname(filePath);
955
955
  await fs.mkdir(dir, { recursive: true });
956
- // Write file
957
- await fs.writeFile(filePath, content, encoding);
956
+ // Write file - support base64 encoding for binary files
957
+ if (encoding === 'base64') {
958
+ const buffer = Buffer.from(content, 'base64');
959
+ await fs.writeFile(filePath, buffer);
960
+ }
961
+ else {
962
+ await fs.writeFile(filePath, content, encoding);
963
+ }
958
964
  socket?.emit('fs:write:response', { success: true });
959
965
  }
960
966
  catch (err) {
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exreve/exk",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "exk - Control Claude CLI with voice and programmable interfaces",
5
5
  "type": "module",
6
6
  "bin": {
@@ -33,8 +33,8 @@
33
33
  "url": ""
34
34
  },
35
35
  "dependencies": {
36
- "@anthropic-ai/claude-agent-sdk": "^0.1.23",
37
- "@anthropic-ai/sdk": "^0.74.0",
36
+ "@anthropic-ai/claude-agent-sdk": "^0.2.87",
37
+ "@anthropic-ai/sdk": "^0.80.0",
38
38
  "@fastify/static": "^9.0.0",
39
39
  "@xenova/transformers": "^2.17.2",
40
40
  "chokidar": "^3.6.0",