anyclaw 0.2.3 → 0.2.4
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.js +0 -0
- package/dist/commands/bridge.js +4 -4
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
File without changes
|
package/dist/commands/bridge.js
CHANGED
|
@@ -12,7 +12,7 @@ function parseArgs(args) {
|
|
|
12
12
|
gatewayUrl: "http://localhost:3007",
|
|
13
13
|
gatewayType: "claw",
|
|
14
14
|
clawKey: "",
|
|
15
|
-
serviceUrl: "
|
|
15
|
+
serviceUrl: "https://api.paean.ai",
|
|
16
16
|
name: "",
|
|
17
17
|
};
|
|
18
18
|
for (let i = 0; i < args.length; i++) {
|
|
@@ -45,7 +45,7 @@ function parseArgs(args) {
|
|
|
45
45
|
}
|
|
46
46
|
config.clawKey = config.clawKey || process.env.CLAW_KEY || "";
|
|
47
47
|
config.serviceUrl =
|
|
48
|
-
config.serviceUrl || process.env.ANYCLAW_SERVICE_URL || "
|
|
48
|
+
config.serviceUrl || process.env.ANYCLAW_SERVICE_URL || "https://api.paean.ai";
|
|
49
49
|
config.gatewayUrl =
|
|
50
50
|
config.gatewayUrl || process.env.GATEWAY_URL || "http://localhost:3007";
|
|
51
51
|
config.name = config.name || process.env.ANYCLAW_BRIDGE_NAME || "";
|
|
@@ -62,7 +62,7 @@ function printHelp() {
|
|
|
62
62
|
-g, --gateway <url> Local agent gateway URL (default: http://localhost:3007)
|
|
63
63
|
-t, --type <type> Gateway type: claw, paeanclaw, zeroclaw, openai (default: claw)
|
|
64
64
|
-k, --key <key> ClawKey for relay authentication
|
|
65
|
-
-s, --service <url> AnyClaw service URL (default:
|
|
65
|
+
-s, --service <url> AnyClaw service URL (default: https://api.paean.ai)
|
|
66
66
|
-n, --name <name> Display name for this gateway in the web UI
|
|
67
67
|
-h, --help Show this help
|
|
68
68
|
|
|
@@ -128,7 +128,7 @@ export async function runBridge(args) {
|
|
|
128
128
|
}
|
|
129
129
|
console.log(`\n ▄▀█ █▄░█ █▄█ █▀▀ █░░ ▄▀█ █░█░█`);
|
|
130
130
|
console.log(` █▀█ █░▀█ ░█░ █▄▄ █▄▄ █▀█ ▀▄▀▄▀`);
|
|
131
|
-
console.log(`\n AnyClaw Bridge v0.2.
|
|
131
|
+
console.log(`\n AnyClaw Bridge v0.2.4`);
|
|
132
132
|
if (config.name)
|
|
133
133
|
console.log(` Name: ${config.name}`);
|
|
134
134
|
console.log(` Gateway: ${config.gatewayUrl} (${config.gatewayType})`);
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ function parseArgs() {
|
|
|
18
18
|
gatewayUrl: "http://localhost:3007",
|
|
19
19
|
gatewayType: "claw",
|
|
20
20
|
clawKey: "",
|
|
21
|
-
serviceUrl: "
|
|
21
|
+
serviceUrl: "https://api.paean.ai",
|
|
22
22
|
};
|
|
23
23
|
for (let i = 0; i < args.length; i++) {
|
|
24
24
|
switch (args[i]) {
|
|
@@ -46,7 +46,7 @@ function parseArgs() {
|
|
|
46
46
|
}
|
|
47
47
|
config.clawKey = config.clawKey || process.env.CLAW_KEY || "";
|
|
48
48
|
config.serviceUrl =
|
|
49
|
-
config.serviceUrl || process.env.ANYCLAW_SERVICE_URL || "
|
|
49
|
+
config.serviceUrl || process.env.ANYCLAW_SERVICE_URL || "https://api.paean.ai";
|
|
50
50
|
config.gatewayUrl =
|
|
51
51
|
config.gatewayUrl || process.env.GATEWAY_URL || "http://localhost:3007";
|
|
52
52
|
return config;
|
|
@@ -62,7 +62,7 @@ function printHelp() {
|
|
|
62
62
|
-g, --gateway <url> Local agent gateway URL (default: http://localhost:3007)
|
|
63
63
|
-t, --type <type> Gateway type: claw, 0claw, paeanclaw, zeroclaw, openai (default: claw)
|
|
64
64
|
-k, --key <key> ClawKey for relay authentication
|
|
65
|
-
-s, --service <url> AnyClaw service URL (default:
|
|
65
|
+
-s, --service <url> AnyClaw service URL (default: https://api.paean.ai)
|
|
66
66
|
-h, --help Show this help
|
|
67
67
|
|
|
68
68
|
Environment:
|
|
@@ -126,7 +126,7 @@ async function main() {
|
|
|
126
126
|
}
|
|
127
127
|
console.log(`\n ▄▀█ █▄░█ █▄█ █▀▀ █░░ ▄▀█ █░█░█`);
|
|
128
128
|
console.log(` █▀█ █░▀█ ░█░ █▄▄ █▄▄ █▀█ ▀▄▀▄▀`);
|
|
129
|
-
console.log(`\n AnyClaw Bridge v0.2.
|
|
129
|
+
console.log(`\n AnyClaw Bridge v0.2.4`);
|
|
130
130
|
console.log(` Gateway: ${config.gatewayUrl} (${config.gatewayType})`);
|
|
131
131
|
console.log(` Service: ${config.serviceUrl}`);
|
|
132
132
|
console.log(` Key: ${config.clawKey.slice(0, 8)}...`);
|