@awebai/claude-channel 1.4.2 → 1.4.3
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/.claude-plugin/plugin.json +1 -1
- package/dist/index.js +1 -17
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22879,9 +22879,6 @@ function hydrateAddressesFromSignedPayload(msg) {
|
|
|
22879
22879
|
} catch {
|
|
22880
22880
|
}
|
|
22881
22881
|
}
|
|
22882
|
-
async function ackMessage(client, messageId) {
|
|
22883
|
-
await client.post(`/v1/messages/${encodeURIComponent(messageId)}/ack`);
|
|
22884
|
-
}
|
|
22885
22882
|
async function verifyInboxMessage(msg) {
|
|
22886
22883
|
if (msg.signed_payload && msg.signature && msg.from_did) {
|
|
22887
22884
|
const status2 = await verifySignedPayload(msg.signed_payload, msg.signature, msg.from_did, msg.signing_key_id || "");
|
|
@@ -22957,9 +22954,6 @@ function hydrateAddressesFromSignedPayload2(msg) {
|
|
|
22957
22954
|
} catch {
|
|
22958
22955
|
}
|
|
22959
22956
|
}
|
|
22960
|
-
async function markRead(client, sessionId, upToMessageId) {
|
|
22961
|
-
await client.post(`/v1/chat/sessions/${encodeURIComponent(sessionId)}/read`, { up_to_message_id: upToMessageId });
|
|
22962
|
-
}
|
|
22963
22957
|
async function verifyChatMessage(msg) {
|
|
22964
22958
|
if (msg.signed_payload && msg.signature && msg.from_did) {
|
|
22965
22959
|
const status2 = await verifySignedPayload(msg.signed_payload, msg.signature, msg.from_did, msg.signing_key_id || "");
|
|
@@ -26725,7 +26719,7 @@ async function main() {
|
|
|
26725
26719
|
},
|
|
26726
26720
|
instructions: `Events from the aweb channel are coordination messages from other agents in your team. Use the aw CLI to respond, not MCP tools.
|
|
26727
26721
|
|
|
26728
|
-
Mail events (type="mail") are async. Read them and act if needed.
|
|
26722
|
+
Mail events (type="mail") are async. Read them and act if needed. Channel delivery does not acknowledge or mark the message handled. Reply with: aw mail reply <message_id> --body "<reply>". Replying marks the source message handled after the reply is sent. Running aw mail inbox explicitly marks displayed unread mail as read; aw mail show is read-only.
|
|
26729
26723
|
|
|
26730
26724
|
Chat events (type="chat") may have sender_waiting="true", meaning the sender is blocked waiting for your reply. Respond promptly with: aw chat send-and-wait <from> "<reply>"
|
|
26731
26725
|
If you need more time, send a status update the same way.
|
|
@@ -26813,9 +26807,6 @@ async function dispatchEvent(mcp, client, pinStore, trust, self, dispatched, eve
|
|
|
26813
26807
|
method: "notifications/claude/channel",
|
|
26814
26808
|
params: { content: msg.body, meta: meta3 }
|
|
26815
26809
|
});
|
|
26816
|
-
ackMessage(client, msg.message_id).catch(
|
|
26817
|
-
(err2) => console.error(`[aw-channel] ack failed: ${err2}`)
|
|
26818
|
-
);
|
|
26819
26810
|
}
|
|
26820
26811
|
if (pinsDirty) await pinStore.save(PIN_STORE_PATH);
|
|
26821
26812
|
break;
|
|
@@ -26824,7 +26815,6 @@ async function dispatchEvent(mcp, client, pinStore, trust, self, dispatched, eve
|
|
|
26824
26815
|
if (!event.session_id) break;
|
|
26825
26816
|
const messages = await fetchHistory(client, event.session_id, true, CHAT_FETCH_LIMIT, event.message_id);
|
|
26826
26817
|
let pinsDirty = false;
|
|
26827
|
-
let lastMessageId;
|
|
26828
26818
|
for (const msg of messages) {
|
|
26829
26819
|
if (isSelfSender(msg.from_agent, msg.from_address, msg.from_stable_id, msg.from_did, self)) continue;
|
|
26830
26820
|
const conversationID = msg.conversation_id || event.conversation_id || event.session_id;
|
|
@@ -26860,12 +26850,6 @@ async function dispatchEvent(mcp, client, pinStore, trust, self, dispatched, eve
|
|
|
26860
26850
|
method: "notifications/claude/channel",
|
|
26861
26851
|
params: { content: msg.body, meta: meta3 }
|
|
26862
26852
|
});
|
|
26863
|
-
lastMessageId = msg.message_id;
|
|
26864
|
-
}
|
|
26865
|
-
if (lastMessageId) {
|
|
26866
|
-
markRead(client, event.session_id, lastMessageId).catch(
|
|
26867
|
-
(err2) => console.error(`[aw-channel] mark-read failed: ${err2}`)
|
|
26868
|
-
);
|
|
26869
26853
|
}
|
|
26870
26854
|
if (pinsDirty) await pinStore.save(PIN_STORE_PATH);
|
|
26871
26855
|
break;
|