evolclaw 2.5.2 → 2.5.3

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.
@@ -718,8 +718,8 @@ export async function setupAunAid(rl, _config) {
718
718
  if (!fs.existsSync(caCertPath)) {
719
719
  try {
720
720
  fs.mkdirSync(caDir, { recursive: true });
721
- const httpPort = gatewayPort === 443 ? 20001 : gatewayPort;
722
- const resp = await fetch(`https://gateway.${domain}:${httpPort}/pki/chain`);
721
+ // Derive HTTPS URL from gateway WebSocket URL (same as SDK's _gatewayHttpUrl)
722
+ const resp = await fetch(`https://gateway.${domain}:${port}/pki/chain`);
723
723
  if (resp.ok) {
724
724
  fs.writeFileSync(caCertPath, await resp.text());
725
725
  console.log(' ✓ CA 根证书已下载');
@@ -426,7 +426,7 @@ export async function cmdInit(options) {
426
426
  if (!fs.existsSync(caCertPath)) {
427
427
  try {
428
428
  fs.mkdirSync(caDir, { recursive: true });
429
- const resp = await fetch(`https://gateway.${domain}:20001/pki/chain`);
429
+ const resp = await fetch(`https://gateway.${domain}/pki/chain`);
430
430
  if (resp.ok) {
431
431
  fs.writeFileSync(caCertPath, await resp.text());
432
432
  console.log('✓ CA 根证书已下载');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evolclaw",
3
- "version": "2.5.2",
3
+ "version": "2.5.3",
4
4
  "description": "Lightweight AI Agent gateway connecting Claude Agent SDK to messaging channels (Feishu, ACP) with multi-project session management",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",