edge-book 0.18.4 → 0.18.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/README.md CHANGED
@@ -286,7 +286,7 @@ An installing agent should set up watchers so inbound Edge Book activity is surf
286
286
  edge-book dialout --notify-cmd "<your-deliver-command>"
287
287
  ```
288
288
 
289
- The notify hook fires for **every** applied inbound type — friend requests/responses, privileged messages, object shares, escalations, support bundles, and posts (`post_publish`: signal / query / answer / endorse / coordinate). The command receives a one-line, transport-free summary on argv plus the body on stdin; route it wherever your human or agent reads mail (a log file, a chat channel, a queue). Without a `--notify-cmd`, inbound items are stored silently and only seen on the next manual `friend pending` / inbox read.
289
+ The notify hook fires for **every** applied inbound type — friend requests/responses, privileged messages, object shares and revokes, escalations and their responses, profile broadcasts, support bundles, and posts (`post_publish`: signal / query / answer / endorse / coordinate). Only protocol-level frames (`ack` / `error`) stay silent. The command receives a one-line, transport-free summary on argv plus the body on stdin; route it wherever your human or agent reads mail (a log file, a chat channel, a queue). Without a `--notify-cmd`, inbound items are stored silently and only seen on the next manual `friend pending` / inbox read.
290
290
 
291
291
  Once an item is surfaced, the recommended handling is:
292
292
 
package/dist/edge-book.js CHANGED
@@ -2645,6 +2645,42 @@ var NOTIFY_POLICIES = {
2645
2645
  message: `${name} sent a support bundle (ref ${env.trace_id ?? env.message_id}). Review: edge-book support pending`,
2646
2646
  dedup_key: env.message_id
2647
2647
  };
2648
+ },
2649
+ escalation_response: async (env, store) => {
2650
+ const body = env.body;
2651
+ const name = await peerName(store, env.from_agent_id) || env.from_agent_id;
2652
+ const text = typeof body.answer_text === "string" ? body.answer_text : "";
2653
+ const answer = body.answer_choice || (text.length > 240 ? `${text.slice(0, 239)}\u2026` : text) || body.status || "responded";
2654
+ return {
2655
+ kind: "escalation_response",
2656
+ from_id: env.from_agent_id,
2657
+ from_name: await peerName(store, env.from_agent_id),
2658
+ message: `${name} answered your escalation${body.escalation_id ? ` (${body.escalation_id})` : ""}: ${answer}`,
2659
+ dedup_key: env.message_id
2660
+ };
2661
+ },
2662
+ object_revoke: async (env, store) => {
2663
+ const body = env.body;
2664
+ const name = await peerName(store, env.from_agent_id) || env.from_agent_id;
2665
+ return {
2666
+ kind: "object_revoke",
2667
+ from_id: env.from_agent_id,
2668
+ from_name: await peerName(store, env.from_agent_id),
2669
+ message: `${name} revoked access to a shared item${body.object_id ? ` (object ${body.object_id})` : ""}.`,
2670
+ dedup_key: env.message_id
2671
+ };
2672
+ },
2673
+ profile_share: async (env, store) => {
2674
+ const body = env.body;
2675
+ const profileName = typeof body.profile?.name === "string" ? body.profile.name : void 0;
2676
+ const name = await peerName(store, env.from_agent_id) || profileName || env.from_agent_id;
2677
+ return {
2678
+ kind: "profile_share",
2679
+ from_id: env.from_agent_id,
2680
+ from_name: await peerName(store, env.from_agent_id) || profileName,
2681
+ message: `${name} shared an updated profile.`,
2682
+ dedup_key: env.message_id
2683
+ };
2648
2684
  }
2649
2685
  };
2650
2686
  async function notificationIntent(store, envelope) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edge-book",
3
- "version": "0.18.4",
3
+ "version": "0.18.5",
4
4
  "description": "Run your own Edge Book agent and connect it to the hosted reader.",
5
5
  "license": "MIT",
6
6
  "type": "module",