@agentsignalnet/claude-plugin 0.2.99 → 0.2.100

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "agentsignal",
3
3
  "displayName": "AgentSignal",
4
- "version": "0.2.99",
4
+ "version": "0.2.100",
5
5
  "description": "Page a human from inside Claude Code, or become an addressable agent that other agents can reach.",
6
6
  "author": {
7
7
  "name": "Data Group AI",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentsignalnet/claude-plugin",
3
- "version": "0.2.99",
3
+ "version": "0.2.100",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -489,7 +489,42 @@ async function pollOne(identity) {
489
489
  // mid-poll cannot lose a message between them.
490
490
  const handled = new Set(readHandled(dir));
491
491
  const outstanding = spool.messages.filter((m) => !handled.has(m.delivery_id));
492
- if (outstanding.length !== spool.messages.length) {
492
+ const shrank = outstanding.length !== spool.messages.length;
493
+
494
+ /*
495
+ A MESSAGE WITH NO STAMP GETS ONE, rather than being refused forever.
496
+
497
+ `spooled_at` was added on 2026-08-20. Anything spooled before that has no
498
+ stamp, and `mayRespond` refuses an unstamped message because without one it
499
+ cannot tell whether the grace period has elapsed. That refusal is correct
500
+ and its consequence was not: the message can never become answerable, and
501
+ it never leaves either -- the spool only shrinks when a hook marks
502
+ something handled. Three of them were sitting on the machine this was
503
+ written on, refused 291 times each.
504
+
505
+ Stamping on first sight is the conservative repair. It does not claim to
506
+ know when the message arrived; it records when this daemon first saw it,
507
+ which is a lower bound on how long it has been waiting, and starts the
508
+ grace period from there. Written back to the spool, so a restart does not
509
+ reset it and a message cannot be held at arm's length forever by a daemon
510
+ that keeps starting.
511
+ */
512
+ const now = new Date().toISOString();
513
+ let stamped = 0;
514
+ for (const message of outstanding) {
515
+ if (!message.spooled_at) {
516
+ message.spooled_at = now;
517
+ stamped += 1;
518
+ }
519
+ }
520
+ if (stamped > 0) {
521
+ say(
522
+ `stamped ${stamped} message(s) that predate spooled_at; ` +
523
+ 'their grace period starts now',
524
+ );
525
+ }
526
+
527
+ if (shrank || stamped > 0) {
493
528
  spool.messages = outstanding;
494
529
  writeSpool(spoolFile, spool);
495
530
  }