@townco/cli 0.1.9 → 0.1.10
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 +3 -2
- package/package.json +1 -1
package/dist/commands/run.js
CHANGED
|
@@ -147,8 +147,9 @@ export async function runCommand(options) {
|
|
|
147
147
|
}
|
|
148
148
|
// Default: Start TUI interface with the agent
|
|
149
149
|
console.log(`Starting interactive terminal for agent "${name}"...\n`);
|
|
150
|
-
// Get path to TUI app
|
|
151
|
-
|
|
150
|
+
// Get path to bundled TUI app (relative to this compiled file)
|
|
151
|
+
// When compiled: dist/commands/run.js -> ../../tui/index.js
|
|
152
|
+
const tuiPath = join(import.meta.dirname, "..", "..", "tui", "index.js");
|
|
152
153
|
// Run TUI with the agent
|
|
153
154
|
const tuiProcess = spawn("bun", [tuiPath, "--agent", binPath], {
|
|
154
155
|
cwd: agentPath,
|