@mysten-incubation/sui-agent-pass 0.1.15 → 0.1.16

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/dist/cli.js +20 -5
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -181,11 +181,26 @@ async function registerClient(client, http) {
181
181
  }
182
182
  case 'cursor':
183
183
  return mergeJsonConfig(join(home, '.cursor/mcp.json'), http ?? stdio);
184
- case 'hermes':
185
- console.log(`Add to ~/.hermes/config.yaml under mcp_servers:\n\n agent-pass:\n${http
186
- ? ` url: "${http.url}"\n headers:\n Authorization: "${http.headers.Authorization}"`
187
- : ` command: "${stdio.command}"\n args: ${JSON.stringify(stdio.args)}`}\n\nThen restart Hermes; the tools appear in "hermes tools list".`);
184
+ case 'hermes': {
185
+ // `hermes mcp add` writes ~/.hermes/config.yaml itself; an HTTP signer's bearer header
186
+ // has no plain flag there, so that form is printed to paste.
187
+ if (http) {
188
+ console.log(`Add to ~/.hermes/config.yaml under mcp_servers:\n\n agent-pass:\n url: "${http.url}"\n headers:\n Authorization: "${http.headers.Authorization}"\n\nThen restart Hermes; the tools appear in "hermes tools list".`);
189
+ return;
190
+ }
191
+ await cli('hermes', ['mcp', 'remove', 'agent-pass'], true).catch(() => { });
192
+ await cli('hermes', [
193
+ 'mcp',
194
+ 'add',
195
+ 'agent-pass',
196
+ '--command',
197
+ stdio.command,
198
+ '--args',
199
+ ...stdio.args,
200
+ ]);
201
+ console.log('Registered agent-pass with Hermes (hermes mcp add). Restart Hermes to load it.');
188
202
  return;
203
+ }
189
204
  case 'codex': {
190
205
  // `codex mcp add` writes ~/.codex/config.toml itself; an HTTP signer's bearer header has
191
206
  // no flag there, so that form is printed to paste.
@@ -267,7 +282,7 @@ async function chooseClients() {
267
282
  { name: `Claude Code${claude}`, value: 'claude-code' },
268
283
  { name: `Claude Desktop${desktop}`, value: 'claude-desktop' },
269
284
  { name: `Cursor${cursor}`, value: 'cursor' },
270
- { name: `Hermes${hermes} (prints the config to paste)`, value: 'hermes' },
285
+ { name: `Hermes${hermes}`, value: 'hermes' },
271
286
  { name: `Codex${codex}`, value: 'codex' },
272
287
  { name: 'Something else (prints a generic MCP entry)', value: 'json' },
273
288
  ], "That's all", false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mysten-incubation/sui-agent-pass",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "type": "module",
5
5
  "description": "AI builds transactions. A session signer signs. Your pass enforces the rules.",
6
6
  "repository": {