@townco/cli 0.1.76 → 0.1.78
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/dist/commands/run.js +6 -2
- package/package.json +8 -8
package/dist/commands/run.js
CHANGED
|
@@ -514,14 +514,18 @@ export async function runCommand(options) {
|
|
|
514
514
|
},
|
|
515
515
|
});
|
|
516
516
|
// Start the GUI dev server (no package.json, run vite directly) with detached process group
|
|
517
|
-
const
|
|
517
|
+
const viteArgs = ["vite"];
|
|
518
|
+
if (process.env.BIND_HOST) {
|
|
519
|
+
viteArgs.push("--host", process.env.BIND_HOST);
|
|
520
|
+
}
|
|
521
|
+
const guiProcess = spawn("bunx", viteArgs, {
|
|
518
522
|
cwd: guiPath,
|
|
519
523
|
stdio: ["ignore", "pipe", "pipe"], // Pipe stdout/stderr for capture
|
|
520
524
|
detached: true,
|
|
521
525
|
env: {
|
|
522
526
|
...process.env,
|
|
523
527
|
...configEnvVars,
|
|
524
|
-
VITE_AGENT_URL:
|
|
528
|
+
VITE_AGENT_URL: `${process.env.EXT_HOST}:${availablePort}`,
|
|
525
529
|
VITE_DEBUGGER_URL: "http://localhost:4000",
|
|
526
530
|
// If agent uses bibliotecha MCP, pass BIBLIOTECHA_URL to GUI for auth
|
|
527
531
|
...(usesBibliotechaMcp &&
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@townco/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.78",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"town": "./dist/index.js"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"build": "tsc"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@townco/tsconfig": "0.1.
|
|
18
|
+
"@townco/tsconfig": "0.1.70",
|
|
19
19
|
"@types/archiver": "^7.0.0",
|
|
20
20
|
"@types/bun": "^1.3.1",
|
|
21
21
|
"@types/ignore-walk": "^4.0.3",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@optique/core": "^0.6.2",
|
|
27
27
|
"@optique/run": "^0.6.2",
|
|
28
|
-
"@townco/agent": "0.1.
|
|
29
|
-
"@townco/core": "0.0.
|
|
30
|
-
"@townco/debugger": "0.1.
|
|
31
|
-
"@townco/env": "0.1.
|
|
32
|
-
"@townco/secret": "0.1.
|
|
33
|
-
"@townco/ui": "0.1.
|
|
28
|
+
"@townco/agent": "0.1.78",
|
|
29
|
+
"@townco/core": "0.0.51",
|
|
30
|
+
"@townco/debugger": "0.1.28",
|
|
31
|
+
"@townco/env": "0.1.23",
|
|
32
|
+
"@townco/secret": "0.1.73",
|
|
33
|
+
"@townco/ui": "0.1.73",
|
|
34
34
|
"@trpc/client": "^11.7.2",
|
|
35
35
|
"@types/inquirer": "^9.0.9",
|
|
36
36
|
"@types/ws": "^8.5.13",
|