@allpepper/task-orchestrator-tui 2.0.0 → 2.0.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/tui/index.tsx +3 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allpepper/task-orchestrator-tui",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Terminal UI for task orchestration - Kanban boards, tree views, and task management",
5
5
  "type": "module",
6
6
  "bin": {
package/src/tui/index.tsx CHANGED
@@ -1,11 +1,4 @@
1
1
  #!/usr/bin/env bun
2
- import { homedir } from 'node:os';
3
- import { join } from 'node:path';
4
-
5
- // Set default DB path BEFORE dynamically importing modules that read it
6
- if (!process.env.DATABASE_PATH) {
7
- process.env.DATABASE_PATH = join(homedir(), '.task-orchestrator', 'tasks.db');
8
- }
9
2
 
10
3
  async function main() {
11
4
  // Check if we're in a TTY environment
@@ -14,16 +7,14 @@ async function main() {
14
7
  process.exit(1);
15
8
  }
16
9
 
17
- // Dynamic imports so DATABASE_PATH is set before db/client.ts loads
18
- const [{ render }, React, { runMigrations }, { App }] = await Promise.all([
10
+ const [{ render }, React, { bootstrap }, { App }] = await Promise.all([
19
11
  import('ink'),
20
12
  import('react'),
21
- import('@allpepper/task-orchestrator/src/db/migrate'),
13
+ import('@allpepper/task-orchestrator'),
22
14
  import('./app'),
23
15
  ]);
24
16
 
25
- // Run database migrations first
26
- await runMigrations();
17
+ bootstrap();
27
18
 
28
19
  // Render the TUI
29
20
  const { waitUntilExit } = render(<App />);