aiquila-mcp 0.4.7 → 0.4.8
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/tools/apps/talk.js +3 -3
- package/package.json +1 -1
package/dist/tools/apps/talk.js
CHANGED
|
@@ -136,7 +136,7 @@ export const listMessagesTool = {
|
|
|
136
136
|
if (args.lastKnownMessageId) {
|
|
137
137
|
queryParams.lastKnownMessageId = String(args.lastKnownMessageId);
|
|
138
138
|
}
|
|
139
|
-
const data = await fetchOCS(`${
|
|
139
|
+
const data = await fetchOCS(`${API_V1}/chat/${args.token}`, { queryParams });
|
|
140
140
|
let messages = data.ocs.data ?? [];
|
|
141
141
|
if (!args.includeSystemMessages) {
|
|
142
142
|
messages = messages.filter((m) => !m.systemMessage);
|
|
@@ -184,7 +184,7 @@ export const sendMessageTool = {
|
|
|
184
184
|
body.replyTo = String(args.replyTo);
|
|
185
185
|
if (args.silent)
|
|
186
186
|
body.silent = 'true';
|
|
187
|
-
const data = await fetchOCS(`${
|
|
187
|
+
const data = await fetchOCS(`${API_V1}/chat/${args.token}`, {
|
|
188
188
|
method: 'POST',
|
|
189
189
|
body,
|
|
190
190
|
});
|
|
@@ -364,7 +364,7 @@ export const deleteMessageTool = {
|
|
|
364
364
|
}),
|
|
365
365
|
handler: async (args) => {
|
|
366
366
|
try {
|
|
367
|
-
await fetchOCS(`${
|
|
367
|
+
await fetchOCS(`${API_V1}/chat/${args.token}/${args.messageId}`, {
|
|
368
368
|
method: 'DELETE',
|
|
369
369
|
});
|
|
370
370
|
return text(`Message ${args.messageId} deleted from conversation ${args.token}.`);
|