@slock-ai/daemon 0.46.2 → 0.47.0-play.20260512173159
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/chat-bridge.js +4 -4
- package/dist/{chunk-FG5JGA67.js → chunk-5DPZMLC3.js} +900 -147
- package/dist/{chunk-Z3PCMYZO.js → chunk-B7XIMLOT.js} +44 -1
- package/dist/cli/index.js +14308 -312
- package/dist/core.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +2 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -4,8 +4,9 @@ import {
|
|
|
4
4
|
buildFetchDispatcher,
|
|
5
5
|
executeJsonRequest,
|
|
6
6
|
executeResponseRequest,
|
|
7
|
-
logger
|
|
8
|
-
|
|
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
|
|
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) {
|