50c 3.9.5 → 3.9.7
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.
Potentially problematic release.
This version of 50c might be problematic. Click here for more details.
- package/README.md +175 -201
- package/bin/50c.js +2079 -2278
- package/lib/pre-publish.js +812 -1361
- package/lib/subagent.js +7 -13
- package/lib/team.js +691 -714
- package/lib/tools-registry.js +184 -226
- package/package.json +39 -39
- package/lib/backdoor-checker.js +0 -732
- package/lib/ip-utils.js +0 -47
package/lib/subagent.js
CHANGED
|
@@ -16,18 +16,12 @@ const http = require('http');
|
|
|
16
16
|
const fs = require('fs');
|
|
17
17
|
const path = require('path');
|
|
18
18
|
|
|
19
|
-
//
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return JSON.parse(fs.readFileSync(serversPath, 'utf8'));
|
|
26
|
-
}
|
|
27
|
-
} catch (e) {}
|
|
28
|
-
return {};
|
|
29
|
-
}
|
|
30
|
-
const KNOWN_SERVERS = loadUserServers();
|
|
19
|
+
// Known servers (can be extended via config)
|
|
20
|
+
const KNOWN_SERVERS = {
|
|
21
|
+
'nj': { host: '172.93.101.193', user: 'root', name: 'NJ Production' },
|
|
22
|
+
'zurich': { host: '89.21.66.24', user: 'root', name: 'Zurich' },
|
|
23
|
+
'chicago': { host: 'chicago.50c.ai', user: 'root', name: 'Chicago' }
|
|
24
|
+
};
|
|
31
25
|
|
|
32
26
|
/**
|
|
33
27
|
* HTTP/HTTPS fetch - no shell, pure Node
|
|
@@ -49,7 +43,7 @@ async function httpFetch(url, options = {}) {
|
|
|
49
43
|
...(bodyData ? { 'Content-Length': Buffer.byteLength(bodyData) } : {})
|
|
50
44
|
},
|
|
51
45
|
timeout: options.timeout || 30000,
|
|
52
|
-
|
|
46
|
+
rejectUnauthorized: false // Allow self-signed certs
|
|
53
47
|
};
|
|
54
48
|
|
|
55
49
|
const req = lib.request(reqOptions, (res) => {
|