@obsfx/trekker 1.5.0 → 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/bin/trekker.js CHANGED
@@ -3,15 +3,29 @@
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";
6
7
 
7
8
  // Check if running in Bun runtime
8
- const isBun = typeof globalThis.Bun !== "undefined";
9
+ const isBun = typeof Bun !== "undefined";
9
10
 
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
11
25
  console.error(`
12
26
  Trekker requires Bun runtime.
13
27
 
14
- Bun is not installed or you're running this with Node.js.
28
+ Bun is not installed on your system.
15
29
  Trekker uses bun:sqlite for database operations. This is a deliberate choice:
16
30
  bun:sqlite is significantly faster than Node.js SQLite drivers, making CLI
17
31
  operations feel instant.
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.5.0",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@obsfx/trekker",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "A CLI-based issue tracker built for AI coding agents. Stores tasks, epics, and dependencies in a local SQLite database.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",