pi-web 0.12.3 → 0.12.4
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/README.md +2 -2
- package/build/server/server.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,8 +15,8 @@ Then open [http://127.0.0.1:8192](http://127.0.0.1:8192) in your browser.
|
|
|
15
15
|
## Options
|
|
16
16
|
|
|
17
17
|
```
|
|
18
|
-
--port <number> Port to listen on (default: 8192
|
|
19
|
-
--host <string> Host to bind to (default: 127.0.0.1
|
|
18
|
+
--port <number> Port to listen on (default: 8192)
|
|
19
|
+
--host <string> Host to bind to (default: 127.0.0.1)
|
|
20
20
|
--agent <pi|omp> Agent backend profile (default: pi)
|
|
21
21
|
--help Show help
|
|
22
22
|
```
|
package/build/server/server.js
CHANGED
|
@@ -15,8 +15,8 @@ pi-web - Web UI for the pi coding agent
|
|
|
15
15
|
Usage: pi-web [options]
|
|
16
16
|
|
|
17
17
|
Options:
|
|
18
|
-
--port <number> Port to listen on (default: 8192
|
|
19
|
-
--host <string> Host to bind to (default: 127.0.0.1
|
|
18
|
+
--port <number> Port to listen on (default: 8192)
|
|
19
|
+
--host <string> Host to bind to (default: 127.0.0.1)
|
|
20
20
|
--agent <pi|omp> Agent backend profile (default: pi)
|
|
21
21
|
-h, --help Show this help message
|
|
22
22
|
`.trim());
|
|
@@ -45,8 +45,8 @@ function getAgentCommand(agent) {
|
|
|
45
45
|
: 'npx -y @mariozechner/pi-coding-agent@latest';
|
|
46
46
|
}
|
|
47
47
|
const AGENT = parseAgent(getArg('agent'));
|
|
48
|
-
const PORT = parseInt(getArg('port') ||
|
|
49
|
-
const HOST = getArg('host') ||
|
|
48
|
+
const PORT = parseInt(getArg('port') || '8192', 10);
|
|
49
|
+
const HOST = getArg('host') || '127.0.0.1';
|
|
50
50
|
const AGENT_CMD = getAgentCommand(AGENT);
|
|
51
51
|
const DEFAULT_IDLE_SESSION_TTL_MS = 60_000;
|
|
52
52
|
const idleSessionTtlMsEnv = parseInt(process.env.PI_WEB_IDLE_SESSION_TTL_MS || '', 10);
|