anyclaw 0.2.0 → 0.2.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.
package/dist/cli.d.ts CHANGED
@@ -11,7 +11,7 @@
11
11
  * anyclaw status Check locally running agent gateways
12
12
  * anyclaw version Show version
13
13
  */
14
- declare const VERSION = "0.2.0";
14
+ declare const VERSION = "0.2.1";
15
15
  declare const BANNER = "\n \u2584\u2580\u2588 \u2588\u2584\u2591\u2588 \u2588\u2584\u2588 \u2588\u2580\u2580 \u2588\u2591\u2591 \u2584\u2580\u2588 \u2588\u2591\u2588\u2591\u2588\n \u2588\u2580\u2588 \u2588\u2591\u2580\u2588 \u2591\u2588\u2591 \u2588\u2584\u2584 \u2588\u2584\u2584 \u2588\u2580\u2588 \u2580\u2584\u2580\u2584\u2580\n";
16
16
  declare function printHelp(): void;
17
17
  declare function main(): Promise<void>;
package/dist/cli.js CHANGED
@@ -12,7 +12,7 @@
12
12
  * anyclaw status Check locally running agent gateways
13
13
  * anyclaw version Show version
14
14
  */
15
- const VERSION = "0.2.0";
15
+ const VERSION = "0.2.1";
16
16
  const BANNER = `
17
17
  ▄▀█ █▄░█ █▄█ █▀▀ █░░ ▄▀█ █░█░█
18
18
  █▀█ █░▀█ ░█░ █▄▄ █▄▄ █▀█ ▀▄▀▄▀
@@ -13,6 +13,7 @@ function parseArgs(args) {
13
13
  gatewayType: "claw",
14
14
  clawKey: "",
15
15
  serviceUrl: "http://localhost:4777",
16
+ name: "",
16
17
  };
17
18
  for (let i = 0; i < args.length; i++) {
18
19
  switch (args[i]) {
@@ -32,6 +33,10 @@ function parseArgs(args) {
32
33
  case "-s":
33
34
  config.serviceUrl = args[++i];
34
35
  break;
36
+ case "--name":
37
+ case "-n":
38
+ config.name = args[++i];
39
+ break;
35
40
  case "--help":
36
41
  case "-h":
37
42
  printHelp();
@@ -43,6 +48,7 @@ function parseArgs(args) {
43
48
  config.serviceUrl || process.env.ANYCLAW_SERVICE_URL || "http://localhost:4777";
44
49
  config.gatewayUrl =
45
50
  config.gatewayUrl || process.env.GATEWAY_URL || "http://localhost:3007";
51
+ config.name = config.name || process.env.ANYCLAW_BRIDGE_NAME || "";
46
52
  return config;
47
53
  }
48
54
  function printHelp() {
@@ -57,16 +63,19 @@ function printHelp() {
57
63
  -t, --type <type> Gateway type: claw, paeanclaw, zeroclaw, openai (default: claw)
58
64
  -k, --key <key> ClawKey for relay authentication
59
65
  -s, --service <url> AnyClaw service URL (default: http://localhost:4777)
66
+ -n, --name <name> Display name for this gateway in the web UI
60
67
  -h, --help Show this help
61
68
 
62
69
  Environment:
63
70
  CLAW_KEY ClawKey (alternative to --key)
64
71
  ANYCLAW_SERVICE_URL Service URL (alternative to --service)
65
72
  GATEWAY_URL Gateway URL (alternative to --gateway)
73
+ ANYCLAW_BRIDGE_NAME Gateway display name (alternative to --name)
66
74
 
67
75
  Examples:
68
76
  anyclaw bridge -g http://localhost:3007 -k ck_g_abc123
69
- anyclaw bridge -g http://localhost:42617 -t zeroclaw -k ck_p_xyz789
77
+ anyclaw bridge -g http://localhost:3007 -k ck_g_abc123 --name "Primary Agent"
78
+ anyclaw bridge -g http://localhost:42617 -t zeroclaw -k ck_p_xyz789 -n "Monitor"
70
79
  `);
71
80
  }
72
81
  const MIN_POLL_MS = 500;
@@ -116,7 +125,9 @@ export async function runBridge(args) {
116
125
  }
117
126
  console.log(`\n ▄▀█ █▄░█ █▄█ █▀▀ █░░ ▄▀█ █░█░█`);
118
127
  console.log(` █▀█ █░▀█ ░█░ █▄▄ █▄▄ █▀█ ▀▄▀▄▀`);
119
- console.log(`\n AnyClaw Bridge v0.2.0`);
128
+ console.log(`\n AnyClaw Bridge v0.2.1`);
129
+ if (config.name)
130
+ console.log(` Name: ${config.name}`);
120
131
  console.log(` Gateway: ${config.gatewayUrl} (${config.gatewayType})`);
121
132
  console.log(` Service: ${config.serviceUrl}`);
122
133
  console.log(` Key: ${config.clawKey.slice(0, 8)}...`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anyclaw",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "AnyClaw CLI — bridge, install, and manage local AI agent gateways",
5
5
  "type": "module",
6
6
  "bin": {