letagents 0.12.4 → 0.12.5
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/mcp/server.js +4 -4
- package/package.json +1 -1
package/dist/mcp/server.js
CHANGED
|
@@ -2029,8 +2029,8 @@ server.tool("wait_for_messages", "Wait for new messages in a Let Agents Chat roo
|
|
|
2029
2029
|
const firstResult = await roomScopedApiCall({
|
|
2030
2030
|
room_id: targetRoomId,
|
|
2031
2031
|
project_id: targetProjectId,
|
|
2032
|
-
room_path: (targetRoomId) =>
|
|
2033
|
-
project_path: (targetProjectId) =>
|
|
2032
|
+
room_path: (targetRoomId) => `/rooms/${encodeRoomIdPath(targetRoomId)}/messages/poll?${queryString}`,
|
|
2033
|
+
project_path: (targetProjectId) => `/projects/${encodeURIComponent(targetProjectId)}/messages/poll?${queryString}`,
|
|
2034
2034
|
options: { signal: AbortSignal.timeout(clientTimeout) },
|
|
2035
2035
|
});
|
|
2036
2036
|
const allMessages = [...(firstResult.messages ?? [])];
|
|
@@ -2045,8 +2045,8 @@ server.tool("wait_for_messages", "Wait for new messages in a Let Agents Chat roo
|
|
|
2045
2045
|
const page = await roomScopedApiCall({
|
|
2046
2046
|
room_id: targetRoomId,
|
|
2047
2047
|
project_id: targetProjectId,
|
|
2048
|
-
room_path: (targetRoomId) =>
|
|
2049
|
-
project_path: (targetProjectId) =>
|
|
2048
|
+
room_path: (targetRoomId) => `/rooms/${encodeRoomIdPath(targetRoomId)}/messages?${qs}`,
|
|
2049
|
+
project_path: (targetProjectId) => `/projects/${encodeURIComponent(targetProjectId)}/messages?${qs}`,
|
|
2050
2050
|
});
|
|
2051
2051
|
const msgs = page.messages ?? [];
|
|
2052
2052
|
allMessages.push(...msgs);
|