@agentsignalnet/claude-plugin 0.2.79 → 0.2.81

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.79",
4
+ "version": "0.2.81",
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/.mcp.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "mcpServers": {
3
3
  "agentsignal": {
4
4
  "command": "npx",
5
- "args": ["-y", "@agentsignalnet/mcp@0.2.56"],
5
+ "args": ["-y", "@agentsignalnet/mcp@0.2.57"],
6
6
  "env": {
7
7
  "AGENTSIGNAL_API_KEY": "${user_config.api_key}",
8
8
  "AGENTSIGNAL_JOIN_TOKEN": "${user_config.join_token}",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentsignalnet/claude-plugin",
3
- "version": "0.2.79",
3
+ "version": "0.2.81",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -3202,7 +3202,19 @@ const server = createServer(async (req, res) => {
3202
3202
  if (url.pathname === '/onboarding' && req.method === 'GET') {
3203
3203
  const here = repoRoot(process.cwd());
3204
3204
  const mine = identitiesHere(baseUrl);
3205
- const roster = await upstream('/v1/agents');
3205
+ /*
3206
+ SCOPED, for the same reason /setup is. Counts rather than names, but they
3207
+ are still the other company's counts -- "3 reachable" about people this
3208
+ dashboard is not for, on the page that claims to describe this machine's
3209
+ setup. A checklist that reports itself from real state has to read the
3210
+ right state.
3211
+ */
3212
+ const onboardingOn =
3213
+ boundTo || companiesKnown().length <= 1 ? channelFor(url.searchParams.get('channel')) : null;
3214
+ const roster =
3215
+ onboardingOn && inScope(onboardingOn)
3216
+ ? await upstream('/v1/agents', onboardingOn.key)
3217
+ : { error: 'unscoped' };
3206
3218
  const others = roster.error
3207
3219
  ? []
3208
3220
  : (roster.recipients ?? []).filter((r) => r.key !== (self && self.key));
@@ -3405,7 +3417,36 @@ const server = createServer(async (req, res) => {
3405
3417
  }
3406
3418
 
3407
3419
  if (url.pathname === '/setup') {
3408
- const roster = await upstream('/v1/agents');
3420
+ /*
3421
+ SCOPED LIKE EVERYTHING ELSE, because it was not, and that was a hole.
3422
+
3423
+ This read `upstream('/v1/agents')` with no key, which defaults to
3424
+ `apiKey` -- and apiKey is `channels[0].key`, the FIRST key this machine
3425
+ happened to find. Not the bound company's. On a machine holding keys to
3426
+ two, a dashboard bound to one showed the other's roster: names, and the
3427
+ email addresses of its people, under the heading "Who this channel
3428
+ reaches". Reported from a real machine, where logging in to one company
3429
+ listed the members of the other.
3430
+
3431
+ Disclosure was the visible half. The worse half is that `channel` came
3432
+ back from the same call, and the invite form posts `d.channel.ref` -- so
3433
+ "Bring somebody in", on a dashboard scoped to one company, minted a join
3434
+ code for the OTHER company's channel. That is not showing the wrong
3435
+ thing, it is handing out access to it.
3436
+
3437
+ The rest of this file already had the answer: bind first, read nothing
3438
+ while the question is open, and ask the bound channel's own key. Those
3439
+ three lines are all that was missing here.
3440
+ */
3441
+ const known = companiesKnown();
3442
+ if (!boundTo && known.length === 1) boundTo = known[0].account;
3443
+
3444
+ // NOTHING IS READ WHILE THE QUESTION IS OPEN -- the same rule /messages
3445
+ // keeps, and for the same reason: reading on is showing one company's
3446
+ // people behind a question about which company this is.
3447
+ const on = boundTo || known.length <= 1 ? channelFor(url.searchParams.get('channel')) : null;
3448
+
3449
+ const roster = on && inScope(on) ? await upstream('/v1/agents', on.key) : { error: 'unscoped' };
3409
3450
  const inChannel = new Set(
3410
3451
  roster.error ? [] : (roster.recipients ?? []).map((r) => r.key),
3411
3452
  );