agent-relay-server 0.69.0 → 0.69.1
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/docs/openapi.json +1 -1
- package/package.json +1 -1
- package/src/db/messages.ts +3 -0
package/docs/openapi.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.1.0",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Agent Relay API",
|
|
5
|
-
"version": "0.69.
|
|
5
|
+
"version": "0.69.1",
|
|
6
6
|
"description": "Real-time message bus for inter-agent communication. Agent-first: this spec is designed for machine consumption — agents can self-discover the full API surface via GET /api/spec.",
|
|
7
7
|
"license": {
|
|
8
8
|
"name": "MIT",
|
package/package.json
CHANGED
package/src/db/messages.ts
CHANGED
|
@@ -160,10 +160,12 @@ const REPLY_DUPLICATE_WINDOW_MS = 2 * 60 * 1000;
|
|
|
160
160
|
|
|
161
161
|
function findRecentDuplicateReply(input: SendMessageInput, threadId: number | null, now: number, hasAttachments: boolean): Message | null {
|
|
162
162
|
if (!input.replyTo || threadId === null || hasAttachments) return null;
|
|
163
|
+
const kind = inferMessageKind(input);
|
|
163
164
|
const row = getDb().query(`
|
|
164
165
|
${MSG_SELECT}
|
|
165
166
|
WHERE m.from_agent = ?
|
|
166
167
|
AND m.to_target = ?
|
|
168
|
+
AND m.kind = ?
|
|
167
169
|
AND m.thread_id = ?
|
|
168
170
|
AND m.body = ?
|
|
169
171
|
AND coalesce(m.subject, '') = coalesce(?, '')
|
|
@@ -174,6 +176,7 @@ function findRecentDuplicateReply(input: SendMessageInput, threadId: number | nu
|
|
|
174
176
|
`).get(
|
|
175
177
|
input.from,
|
|
176
178
|
input.to,
|
|
179
|
+
kind,
|
|
177
180
|
threadId,
|
|
178
181
|
input.body,
|
|
179
182
|
input.subject ?? null,
|