@benjilabs/beaconfire-mcp 0.2.0 → 0.3.0

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/wait.js CHANGED
@@ -2,7 +2,6 @@ import { DEFAULT_WAIT_S } from "./config.js";
2
2
  import { ToolError } from "./deps.js";
3
3
  import { judgePlain, judgeWrap, renderMessage, } from "./inbox.js";
4
4
  import { log } from "./redact.js";
5
- import { PUBLIC_ROOM } from "./send.js";
6
5
  const TWO_DAYS = 2 * 24 * 60 * 60;
7
6
  const SEVEN_DAYS = 7 * 24 * 60 * 60;
8
7
  /** Allowance on the sealed `since` for a replier whose clock runs behind (the relay accepts 900 s ahead). */
@@ -72,7 +71,6 @@ export async function wait(deps, args, signal) {
72
71
  signal?.addEventListener("abort", onAbort);
73
72
  if (signal?.aborted)
74
73
  onAbort();
75
- let ctx = { myGroups: [] };
76
74
  let ask = { at: null, to: null };
77
75
  let trustView = deps.trust;
78
76
  /** `re` is known to be a help ask: from `deps.sent`, or found as my own 5050 (decision 0065). */
@@ -110,12 +108,7 @@ export async function wait(deps, args, signal) {
110
108
  marked = true;
111
109
  },
112
110
  })
113
- : judgePlain(deps, e, {
114
- myGroups: ctx.myGroups,
115
- now,
116
- trust: trustView,
117
- mode: e.tags.some((t) => t[0] === "h") ? "group" : "direct",
118
- });
111
+ : judgePlain(deps, e, { now, trust: trustView });
119
112
  if (j.kind === "ack")
120
113
  myAcks.add(j.re);
121
114
  if (j.kind !== "candidate")
@@ -177,7 +170,6 @@ export async function wait(deps, args, signal) {
177
170
  trustView = deps.trust.snapshot();
178
171
  if (done)
179
172
  return;
180
- ctx = { myGroups: roster.groupsOf(me).filter((g) => g !== PUBLIC_ROOM) };
181
173
  const sent = deps.sent.get(re);
182
174
  ask = { at: sent?.at ?? null, to: sent?.to ?? null };
183
175
  marked = sent?.help === true;