@slock-ai/daemon 0.46.2 → 0.47.0-staging.20260511151721

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.
@@ -4,8 +4,9 @@ import {
4
4
  buildFetchDispatcher,
5
5
  executeJsonRequest,
6
6
  executeResponseRequest,
7
- logger
8
- } from "./chunk-Z3PCMYZO.js";
7
+ logger,
8
+ resolveSlockHomePath
9
+ } from "./chunk-B7XIMLOT.js";
9
10
 
10
11
  // src/chat-bridge.ts
11
12
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
@@ -722,8 +723,7 @@ Use this ID in send_message's attachment_ids parameter to include it in a messag
722
723
  try {
723
724
  const fs = await import("fs");
724
725
  const path = await import("path");
725
- const os = await import("os");
726
- const cacheDir = path.join(os.homedir(), ".slock", "attachments");
726
+ const cacheDir = resolveSlockHomePath("attachments");
727
727
  fs.mkdirSync(cacheDir, { recursive: true });
728
728
  const existing = fs.readdirSync(cacheDir).find((f) => f.startsWith(attachment_id));
729
729
  if (existing) {