@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.
- package/package.json +1 -1
- package/src/tui/index.tsx +3 -12
package/package.json
CHANGED
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
|
-
|
|
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
|
|
13
|
+
import('@allpepper/task-orchestrator'),
|
|
22
14
|
import('./app'),
|
|
23
15
|
]);
|
|
24
16
|
|
|
25
|
-
|
|
26
|
-
await runMigrations();
|
|
17
|
+
bootstrap();
|
|
27
18
|
|
|
28
19
|
// Render the TUI
|
|
29
20
|
const { waitUntilExit } = render(<App />);
|