@claw-link/gateway-host 0.2.7 → 0.2.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claw-link/gateway-host",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "description": "ClawLink Host Gateway — a secure, outbound-only worker that bridges a local agent CLI (OpenClaw, Hermes, Claude, Codex, Cursor) to your ClawLink agents. No inbound ports; authenticated per-agent by a Host Token.",
5
5
  "homepage": "https://claw-link.co",
6
6
  "bin": {
@@ -171,11 +171,13 @@ function printAgents(cfg) {
171
171
  if (!agents.length) { console.log(' No agents mapped. Run: clhost add-agent'); return; }
172
172
  console.log(` ${agents.length} agent(s) mapped:`);
173
173
  for (const a of agents) {
174
- const id = (a.agent_id || '(unresolved)').slice(0, 8);
174
+ const id = a.agent_id || '(unresolved)';
175
175
  const tok = a.host_token ? `…${String(a.host_token).slice(-4)}` : '—';
176
- console.log(` • ${id} runtime=${a.runtime || 'pull'} token=${tok}` + (a.work_dir ? ` work=${a.work_dir}` : ''));
176
+ console.log(` • ${id} runtime=${a.runtime || 'pull'} token=${tok}` + (a.work_dir ? ` work=${a.work_dir}` : ''));
177
177
  }
178
- console.log('\n Update a token after rotating it: clhost retoken <id>');
178
+ // Show a concrete, copy-pasteable example (commands also accept any id prefix).
179
+ const example = agents[0].agent_id || '<id>';
180
+ console.log(`\n Re-enter a token after rotating (full id or any prefix): clhost retoken ${example}`);
179
181
  }
180
182
 
181
183
  // `agents` — list mapped agents.