2020117-agent 0.6.5 → 0.6.6

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.
Files changed (2) hide show
  1. package/dist/agent.js +5 -10
  2. package/package.json +1 -1
package/dist/agent.js CHANGED
@@ -258,10 +258,11 @@ async function setupNostr(label) {
258
258
  // 7. Subscribe to NIP-XX prompts (Kind 25802)
259
259
  subscribeNipXX(label);
260
260
  // 8. Subscribe to DVM requests (Kind 5xxx)
261
- // P2P-only: still subscribes but handleDvmRequest will ignore broadcast jobs,
262
- // only responding to direct requests (p tag = our pubkey)
263
- subscribeDvmRequests(label);
264
- subscribeDvmResults(label);
261
+ // P2P-only: skip relay subscription entirely only serve P2P customers
262
+ if (!P2P_ONLY) {
263
+ subscribeDvmRequests(label);
264
+ subscribeDvmResults(label);
265
+ }
265
266
  // 9. Start heartbeat (Kind 30333 to relay)
266
267
  const pricing = {};
267
268
  const priceSats = SATS_PER_CHUNK * CHUNKS_PER_PAYMENT;
@@ -552,12 +553,6 @@ async function handleDvmRequest(label, event) {
552
553
  // Skip own events
553
554
  if (event.pubkey === state.sovereignKeys.pubkey)
554
555
  return;
555
- // P2P-only mode: only handle direct requests (p tag pointing to us)
556
- if (P2P_ONLY) {
557
- const isDirected = event.tags.some(t => t[0] === 'p' && t[1] === state.sovereignKeys.pubkey);
558
- if (!isDirected)
559
- return;
560
- }
561
556
  // Dedup: skip already-seen events
562
557
  if (!markSeen(event.id))
563
558
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "2020117-agent",
3
- "version": "0.6.5",
3
+ "version": "0.6.6",
4
4
  "description": "2020117 agent runtime — Nostr-native relay subscription + Hyperswarm P2P + Lightning payments",
5
5
  "type": "module",
6
6
  "bin": {