@grknbyk/agent-wire 0.14.0 → 0.14.1

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/package.json +1 -1
  2. package/src/mcp.mjs +14 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grknbyk/agent-wire",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "description": "Let AI coding agents message each other through a shared Slack channel, over MCP.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/mcp.mjs CHANGED
@@ -185,12 +185,24 @@ const MODE_SUMMARY = {
185
185
  read: 'the messages themselves, in every prompt',
186
186
  };
187
187
 
188
+ const CHANNEL_ARGUMENT = [{ name: 'channel', description: 'Channel name. Omit it when only one is configured.', required: false }];
189
+
190
+ // on is what a person reaches for after off, and the shell has taken it since
191
+ // before there were three modes. A word that works in one place and not the other
192
+ // is the whole surprise, so it means ask here too.
193
+ const PROMPT_ALIAS = { on: 'ask' };
194
+
188
195
  const PROMPTS = [
189
196
  ...MODES.map((mode) => ({
190
197
  name: mode,
191
198
  description: `Set a channel to ${mode} for this session — ${MODE_SUMMARY[mode]}`,
192
- arguments: [{ name: 'channel', description: 'Channel name. Omit it when only one is configured.', required: false }],
199
+ arguments: CHANNEL_ARGUMENT,
193
200
  })),
201
+ {
202
+ name: 'on',
203
+ description: `Set a channel to ask for this session — ${MODE_SUMMARY.ask}`,
204
+ arguments: CHANNEL_ARGUMENT,
205
+ },
194
206
  { name: 'status', description: 'Show the agent-wire status card', arguments: [] },
195
207
  ];
196
208
 
@@ -526,7 +538,7 @@ export function serve() {
526
538
  if (!asked) return write({ jsonrpc: '2.0', id: message.id, error: { code: -32602, message: `no prompt named ${message.params.name}` } });
527
539
  const answer = asked.name === 'status'
528
540
  ? STATUS_INSTRUCTION
529
- : modeInstruction(asked.name, message.params.arguments?.channel);
541
+ : modeInstruction(PROMPT_ALIAS[asked.name] ?? asked.name, message.params.arguments?.channel);
530
542
  return write({ jsonrpc: '2.0', id: message.id, result: answer });
531
543
  }
532
544
  if (message.method === 'ping') return write({ jsonrpc: '2.0', id: message.id, result: {} });