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/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
- // User-configured servers loaded from ~/.50c/servers.json
20
- // Run: 50c servers add <alias> <host> <user> to configure
21
- function loadUserServers() {
22
- try {
23
- const serversPath = path.join(require('os').homedir(), '.50c', 'servers.json');
24
- if (fs.existsSync(serversPath)) {
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
- // TLS certificate validation enabled for security
46
+ rejectUnauthorized: false // Allow self-signed certs
53
47
  };
54
48
 
55
49
  const req = lib.request(reqOptions, (res) => {