@agentsignalnet/claude-plugin 0.2.64 → 0.2.65

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.64",
4
+ "version": "0.2.65",
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.64",
3
+ "version": "0.2.65",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -3565,6 +3565,36 @@ async function nameChannels() {
3565
3565
  );
3566
3566
  }
3567
3567
 
3568
+ /**
3569
+ * A PORT ALREADY IN USE IS ALMOST ALWAYS THIS SAME PROGRAM.
3570
+ *
3571
+ * Without a handler, node throws the raw listen error: an "Unhandled 'error'
3572
+ * event" and a stack through `node:net`, which says nothing about what to do
3573
+ * and buries the one useful word, the port. Worse, the usual cause is that a
3574
+ * dashboard is ALREADY RUNNING and working -- so the reader is looking at a
3575
+ * crash while the thing they wanted is up, needing only the link the running
3576
+ * one printed. That is the same shape as the 404 this page-and-note work has
3577
+ * been about: a healthy system presenting as a broken one.
3578
+ *
3579
+ * Nothing is retried and no other port is chosen. Silently landing on 8900
3580
+ * would print a link nobody expects and leave two dashboards running, which is
3581
+ * how you end up reading a stale one and wondering why it never updates.
3582
+ */
3583
+ server.on('error', (error) => {
3584
+ if (error.code === 'EADDRINUSE') {
3585
+ console.error(`Port ${port} is already in use, so this did not start.`);
3586
+ console.error('That is usually a dashboard already running — find the link it');
3587
+ console.error('printed when it started, or stop it and start this again.');
3588
+ console.error(`To run a second one alongside it, set PORT: PORT=${port + 1} …`);
3589
+ } else if (error.code === 'EACCES') {
3590
+ console.error(`Not allowed to listen on port ${port}. Ports below 1024 need root;`);
3591
+ console.error('pick a higher one with PORT.');
3592
+ } else {
3593
+ console.error(`Could not listen on port ${port}: ${error.message}`);
3594
+ }
3595
+ process.exit(1);
3596
+ });
3597
+
3568
3598
  server.listen(port, '127.0.0.1', () => {
3569
3599
  // The port the OS actually gave us, not the one asked for. They differ
3570
3600
  // whenever PORT is 0 -- which is how anything automated starts a server