bdtui 0.7.2 → 0.8.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/bin/bdtui.js CHANGED
@@ -1,36 +1,36 @@
1
1
  #!/usr/bin/env node
2
- import path from 'path';
3
- import { spawnSync } from 'child_process';
4
- import { createRequire } from 'module';
5
-
6
- const require = createRequire(import.meta.url);
7
- const { version } = require('../package.json');
8
-
9
- const arg = process.argv[2];
10
-
11
- if (arg === '-v' || arg === '--version') {
12
- console.log(version);
13
- process.exit(0);
14
- }
15
-
16
- const cwd = arg ? path.resolve(arg) : process.cwd();
17
- process.chdir(cwd);
18
-
19
- ensureDoltRunning(cwd);
20
-
21
- const { run } = await import('../src/app.js');
22
- await run(cwd);
23
-
24
- function ensureDoltRunning(cwd) {
25
- const test = spawnSync('bd', ['dolt', 'test'], { cwd, stdio: 'ignore' });
26
- if (test.status === 0) return;
27
- // `bd` missing or otherwise unusable — let the TUI surface the real error.
28
- if (test.error && test.error.code === 'ENOENT') return;
29
-
30
- process.stderr.write("Dolt server not running — starting via 'bd dolt start'…\n");
31
- const start = spawnSync('bd', ['dolt', 'start'], { cwd, stdio: 'inherit' });
32
- if (start.status !== 0) {
33
- process.stderr.write("Failed to start Dolt server. Run 'bd dolt start' manually.\n");
34
- process.exit(start.status ?? 1);
35
- }
36
- }
2
+ import path from 'path';
3
+ import { spawnSync } from 'child_process';
4
+ import { createRequire } from 'module';
5
+
6
+ const require = createRequire(import.meta.url);
7
+ const { version } = require('../package.json');
8
+
9
+ const arg = process.argv[2];
10
+
11
+ if (arg === '-v' || arg === '--version') {
12
+ console.log(version);
13
+ process.exit(0);
14
+ }
15
+
16
+ const cwd = arg ? path.resolve(arg) : process.cwd();
17
+ process.chdir(cwd);
18
+
19
+ ensureDoltRunning(cwd);
20
+
21
+ const { run } = await import('../src/app.js');
22
+ await run(cwd);
23
+
24
+ function ensureDoltRunning(cwd) {
25
+ const test = spawnSync('bd', ['dolt', 'test'], { cwd, stdio: 'ignore' });
26
+ if (test.status === 0) return;
27
+ // `bd` missing or otherwise unusable — let the TUI surface the real error.
28
+ if (test.error && test.error.code === 'ENOENT') return;
29
+
30
+ process.stderr.write("Dolt server not running — starting via 'bd dolt start'…\n");
31
+ const start = spawnSync('bd', ['dolt', 'start'], { cwd, stdio: 'inherit' });
32
+ if (start.status !== 0) {
33
+ process.stderr.write("Failed to start Dolt server. Run 'bd dolt start' manually.\n");
34
+ process.exit(start.status ?? 1);
35
+ }
36
+ }
package/package.json CHANGED
@@ -1,48 +1,48 @@
1
- {
2
- "name": "bdtui",
3
- "version": "0.7.2",
4
- "description": "Terminal UI (TUI) for the bd beads issue tracker - browse, filter, and update beads from the CLI with vim keybindings",
5
- "keywords": [
6
- "bd",
7
- "beads",
8
- "bdtui",
9
- "issue-tracker",
10
- "tui",
11
- "terminal-ui",
12
- "terminal",
13
- "cli",
14
- "bug-tracker",
15
- "project-management",
16
- "blessed",
17
- "vim",
18
- "dependency-aware",
19
- "developer-tools",
20
- "nodejs"
21
- ],
22
- "type": "module",
23
- "bin": {
24
- "bdtui": "bin/bdtui.js"
25
- },
26
- "files": [
27
- "bin",
28
- "src",
29
- "README.md",
30
- "CHANGELOG.md"
31
- ],
32
- "repository": {
33
- "type": "git",
34
- "url": "git+https://github.com/jsiovn/bdtui.git"
35
- },
36
- "homepage": "https://github.com/jsiovn/bdtui#readme",
37
- "bugs": {
38
- "url": "https://github.com/jsiovn/bdtui/issues"
39
- },
40
- "author": "JSIOVN",
41
- "license": "MIT",
42
- "engines": {
43
- "node": ">=20"
44
- },
45
- "dependencies": {
46
- "blessed": "^0.1.81"
47
- }
48
- }
1
+ {
2
+ "name": "bdtui",
3
+ "version": "0.8.1",
4
+ "description": "Terminal UI (TUI) for the bd beads issue tracker - browse, filter, and update beads from the CLI with vim keybindings",
5
+ "keywords": [
6
+ "bd",
7
+ "beads",
8
+ "bdtui",
9
+ "issue-tracker",
10
+ "tui",
11
+ "terminal-ui",
12
+ "terminal",
13
+ "cli",
14
+ "bug-tracker",
15
+ "project-management",
16
+ "blessed",
17
+ "vim",
18
+ "dependency-aware",
19
+ "developer-tools",
20
+ "nodejs"
21
+ ],
22
+ "type": "module",
23
+ "bin": {
24
+ "bdtui": "bin/bdtui.js"
25
+ },
26
+ "files": [
27
+ "bin",
28
+ "src",
29
+ "README.md",
30
+ "CHANGELOG.md"
31
+ ],
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "git+https://github.com/jsiovn/bdtui.git"
35
+ },
36
+ "homepage": "https://github.com/jsiovn/bdtui#readme",
37
+ "bugs": {
38
+ "url": "https://github.com/jsiovn/bdtui/issues"
39
+ },
40
+ "author": "JSIOVN",
41
+ "license": "MIT",
42
+ "engines": {
43
+ "node": ">=20"
44
+ },
45
+ "dependencies": {
46
+ "blessed": "^0.1.81"
47
+ }
48
+ }