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.
- package/dist/utils/init-channel.js +2 -2
- package/dist/utils/init.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
722
|
-
const resp = await fetch(`https://gateway.${domain}:${
|
|
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 根证书已下载');
|
package/dist/utils/init.js
CHANGED
|
@@ -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}
|
|
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