50c 3.9.1 → 3.9.2

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.
Files changed (2) hide show
  1. package/lib/subagent.js +13 -7
  2. package/package.json +39 -39
package/lib/subagent.js CHANGED
@@ -16,12 +16,18 @@ const http = require('http');
16
16
  const fs = require('fs');
17
17
  const path = require('path');
18
18
 
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
- };
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();
25
31
 
26
32
  /**
27
33
  * HTTP/HTTPS fetch - no shell, pure Node
@@ -43,7 +49,7 @@ async function httpFetch(url, options = {}) {
43
49
  ...(bodyData ? { 'Content-Length': Buffer.byteLength(bodyData) } : {})
44
50
  },
45
51
  timeout: options.timeout || 30000,
46
- rejectUnauthorized: false // Allow self-signed certs
52
+ // TLS certificate validation enabled for security
47
53
  };
48
54
 
49
55
  const req = lib.request(reqOptions, (res) => {
package/package.json CHANGED
@@ -1,39 +1,39 @@
1
- {
2
- "name": "50c",
3
- "version": "3.9.1",
4
- "description": "AI developer tools via MCP. Pay-per-use from $0.01. No subscriptions.",
5
- "bin": {
6
- "50c": "./bin/50c.js"
7
- },
8
- "scripts": {
9
- "postinstall": "node -e \"console.log('\\n50c Hub installed. Run: 50c install\\n')\""
10
- },
11
- "keywords": [
12
- "mcp",
13
- "ai",
14
- "llm",
15
- "cli",
16
- "agent",
17
- "50c",
18
- "hints",
19
- "genius",
20
- "beacon",
21
- "developer-tools",
22
- "context",
23
- "compression",
24
- "caz",
25
- "file-memory"
26
- ],
27
- "author": "genxis",
28
- "license": "SEE LICENSE IN LICENSE",
29
- "homepage": "https://50c.ai",
30
- "engines": {
31
- "node": ">=18.0.0"
32
- },
33
- "files": [
34
- "bin/",
35
- "lib/",
36
- "README.md",
37
- "LICENSE"
38
- ]
39
- }
1
+ {
2
+ "name": "50c",
3
+ "version": "3.9.2",
4
+ "description": "AI developer tools via MCP. Pay-per-use from $0.01. No subscriptions.",
5
+ "bin": {
6
+ "50c": "./bin/50c.js"
7
+ },
8
+ "scripts": {
9
+ "postinstall": "node -e \"console.log('\\n50c Hub installed. Run: 50c install\\n')\""
10
+ },
11
+ "keywords": [
12
+ "mcp",
13
+ "ai",
14
+ "llm",
15
+ "cli",
16
+ "agent",
17
+ "50c",
18
+ "hints",
19
+ "genius",
20
+ "beacon",
21
+ "developer-tools",
22
+ "context",
23
+ "compression",
24
+ "caz",
25
+ "file-memory"
26
+ ],
27
+ "author": "genxis",
28
+ "license": "SEE LICENSE IN LICENSE",
29
+ "homepage": "https://50c.ai",
30
+ "engines": {
31
+ "node": ">=18.0.0"
32
+ },
33
+ "files": [
34
+ "bin/",
35
+ "lib/",
36
+ "README.md",
37
+ "LICENSE"
38
+ ]
39
+ }