@grknbyk/agent-wire 0.9.0 → 0.9.2
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.
- package/README.md +11 -0
- package/package.json +1 -1
- package/src/setup.mjs +10 -3
package/README.md
CHANGED
|
@@ -38,6 +38,17 @@ Run `setup` in a real terminal window. It asks questions, so it refuses a pipe,
|
|
|
38
38
|
script, and an editor task — an agent that tries to run it from a tool gets a
|
|
39
39
|
one-line refusal and usually tells you the wrong thing about why.
|
|
40
40
|
|
|
41
|
+
On macOS the first line often fails with `EACCES` on `/usr/local/lib/node_modules`,
|
|
42
|
+
which is owned by root. Give npm a prefix you own rather than reaching for `sudo`,
|
|
43
|
+
which leaves root-owned files behind for every install after this one:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
mkdir -p ~/.npm-global
|
|
47
|
+
npm config set prefix ~/.npm-global
|
|
48
|
+
echo 'export PATH="$HOME/.npm-global/bin:$PATH"' >> ~/.zshrc
|
|
49
|
+
source ~/.zshrc
|
|
50
|
+
```
|
|
51
|
+
|
|
41
52
|
Setup prints the path of the bundled `manifest.json`. You create the app from it
|
|
42
53
|
at [api.slack.com/apps/new](https://api.slack.com/apps/new), install it, and paste
|
|
43
54
|
the Bot User OAuth Token back. Then you create the channel in Slack and type
|
package/package.json
CHANGED
package/src/setup.mjs
CHANGED
|
@@ -170,15 +170,22 @@ export async function runSetup() {
|
|
|
170
170
|
} else {
|
|
171
171
|
const written = installHook();
|
|
172
172
|
console.log(written.ok
|
|
173
|
-
|
|
173
|
+
// The hook is read per prompt, not at startup, so it works on
|
|
174
|
+
// the next one. Telling people to restart was advice for a
|
|
175
|
+
// problem they do not have.
|
|
176
|
+
? `Added.${written.backedUp ? ' The previous file is kept as settings.json.agent-wire.bak.' : ''} It takes effect on the next prompt.`
|
|
174
177
|
: `Not added: ${written.reason}`);
|
|
175
178
|
}
|
|
176
179
|
}
|
|
177
180
|
|
|
178
181
|
console.log(`\nDone. You are ${config.mark} ${config.nickname} in ${channelList(adopted.channels)}.`);
|
|
179
182
|
console.log(`Config: ${paths.config}`);
|
|
180
|
-
|
|
181
|
-
|
|
183
|
+
// The same line the README gives. They disagreed, and the one printed at
|
|
184
|
+
// the end of a successful install is the one people actually paste.
|
|
185
|
+
console.log('\nRegister it with your MCP client. Claude Code:');
|
|
186
|
+
console.log(' claude mcp add -s user agent-wire -- agent-wire serve');
|
|
187
|
+
console.log('\nAny other client:');
|
|
188
|
+
console.log(JSON.stringify({ mcpServers: { 'agent-wire': { command: 'agent-wire', args: ['serve'] } } }, null, 2));
|
|
182
189
|
console.log(`\nUpload assets/agent-wire.png as the app icon at https://api.slack.com/apps (Basic Information → Display Information).`);
|
|
183
190
|
return 0;
|
|
184
191
|
} catch (error) {
|