@raytrace-cli/cli 0.17.16 → 0.17.17
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/package.json +1 -1
- package/src/config.mjs +9 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raytrace-cli/cli",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.17",
|
|
4
4
|
"mcpName": "io.github.Godcreatebugs/raytrace",
|
|
5
5
|
"description": "See what your coding agent did: traces, tool calls, cost and step-by-step evidence for Claude Code and Codex.",
|
|
6
6
|
"license": "MIT",
|
package/src/config.mjs
CHANGED
|
@@ -35,7 +35,15 @@ function quote(value) {
|
|
|
35
35
|
return delimiter ? `${delimiter}${value}${delimiter}` : value;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
export
|
|
38
|
+
export function portOf(config) {
|
|
39
|
+
const value = String(config.RAYTACE_PORT ?? '').trim();
|
|
40
|
+
if (!value) return DEFAULT_PORT;
|
|
41
|
+
const port = Number(value);
|
|
42
|
+
if (!Number.isInteger(port) || port < 1 || port > 65535) {
|
|
43
|
+
throw new Error(`RAYTACE_PORT in ${paths.config} must be a port number from 1 to 65535 (got ${JSON.stringify(config.RAYTACE_PORT)}).`);
|
|
44
|
+
}
|
|
45
|
+
return port;
|
|
46
|
+
}
|
|
39
47
|
|
|
40
48
|
/** The environment the proxy and the Codex launcher run with. */
|
|
41
49
|
export function proxyEnv(config = readConfig()) {
|