@townco/cli 0.1.9 → 0.1.11

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.
@@ -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
- const tuiPath = join(process.cwd(), "apps", "tui", "src", "index.tsx");
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@townco/cli",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "townco": "./dist/index.js"
@@ -26,7 +26,7 @@
26
26
  "dependencies": {
27
27
  "@optique/core": "^0.6.2",
28
28
  "@optique/run": "^0.6.2",
29
- "@townco/agent": "0.1.9",
29
+ "@townco/agent": "0.1.11",
30
30
  "@townco/secret": "0.1.6",
31
31
  "@townco/ui": "0.1.6",
32
32
  "@types/inquirer": "^9.0.9",