@obsfx/trekker 1.4.1 → 1.6.0
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/README.md +17 -0
- package/bin/trekker.js +45 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
A CLI issue tracker built for AI coding agents. Stores tasks, epics, and dependencies in a local SQLite database. No server required.
|
|
4
4
|
|
|
5
|
+
## Prerequisites
|
|
6
|
+
|
|
7
|
+
Trekker requires [Bun](https://bun.sh) runtime. It uses `bun:sqlite` for database operations. This is a deliberate choice: `bun:sqlite` is significantly faster than Node.js SQLite drivers, making CLI operations feel instant.
|
|
8
|
+
|
|
9
|
+
**Install Bun:**
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
# macOS/Linux
|
|
13
|
+
curl -fsSL https://bun.sh/install | bash
|
|
14
|
+
|
|
15
|
+
# Windows
|
|
16
|
+
powershell -c "irm bun.sh/install.ps1 | iex"
|
|
17
|
+
|
|
18
|
+
# Or via npm
|
|
19
|
+
npm install -g bun
|
|
20
|
+
```
|
|
21
|
+
|
|
5
22
|
## Install
|
|
6
23
|
|
|
7
24
|
```bash
|
package/bin/trekker.js
CHANGED
|
@@ -1,8 +1,52 @@
|
|
|
1
|
-
#!/usr/bin/env
|
|
1
|
+
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { existsSync } from "fs";
|
|
4
4
|
import { dirname, resolve } from "path";
|
|
5
5
|
import { fileURLToPath } from "url";
|
|
6
|
+
import { spawnSync } from "child_process";
|
|
7
|
+
|
|
8
|
+
// Check if running in Bun runtime
|
|
9
|
+
const isBun = typeof Bun !== "undefined";
|
|
10
|
+
|
|
11
|
+
if (!isBun) {
|
|
12
|
+
// Not running in Bun - check if Bun is available and re-execute with it
|
|
13
|
+
const bunCheck = spawnSync("bun", ["--version"], { stdio: "ignore" });
|
|
14
|
+
|
|
15
|
+
if (bunCheck.status === 0) {
|
|
16
|
+
// Bun is available, re-execute this script with Bun
|
|
17
|
+
const scriptPath = fileURLToPath(import.meta.url);
|
|
18
|
+
const result = spawnSync("bun", [scriptPath, ...process.argv.slice(2)], {
|
|
19
|
+
stdio: "inherit",
|
|
20
|
+
});
|
|
21
|
+
process.exit(result.status ?? 1);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Bun is not installed
|
|
25
|
+
console.error(`
|
|
26
|
+
Trekker requires Bun runtime.
|
|
27
|
+
|
|
28
|
+
Bun is not installed on your system.
|
|
29
|
+
Trekker uses bun:sqlite for database operations. This is a deliberate choice:
|
|
30
|
+
bun:sqlite is significantly faster than Node.js SQLite drivers, making CLI
|
|
31
|
+
operations feel instant.
|
|
32
|
+
|
|
33
|
+
To install Bun:
|
|
34
|
+
|
|
35
|
+
macOS/Linux:
|
|
36
|
+
curl -fsSL https://bun.sh/install | bash
|
|
37
|
+
|
|
38
|
+
Windows:
|
|
39
|
+
powershell -c "irm bun.sh/install.ps1 | iex"
|
|
40
|
+
|
|
41
|
+
Or via npm:
|
|
42
|
+
npm install -g bun
|
|
43
|
+
|
|
44
|
+
After installing Bun, run trekker again.
|
|
45
|
+
|
|
46
|
+
Learn more: https://bun.sh
|
|
47
|
+
`);
|
|
48
|
+
process.exit(1);
|
|
49
|
+
}
|
|
6
50
|
|
|
7
51
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
8
52
|
const distPath = resolve(__dirname, "../dist/index.js");
|
package/dist/index.js
CHANGED
|
@@ -3443,7 +3443,7 @@ function formatItem(item) {
|
|
|
3443
3443
|
// package.json
|
|
3444
3444
|
var package_default = {
|
|
3445
3445
|
name: "@obsfx/trekker",
|
|
3446
|
-
version: "1.
|
|
3446
|
+
version: "1.6.0",
|
|
3447
3447
|
description: "A CLI-based issue tracker built for AI coding agents. Stores tasks, epics, and dependencies in a local SQLite database.",
|
|
3448
3448
|
type: "module",
|
|
3449
3449
|
main: "dist/index.js",
|
package/package.json
CHANGED