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.
- package/lib/subagent.js +13 -7
- 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
|
-
//
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
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.
|
|
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
|
+
}
|