vibe-kanban-alternative 0.2.37 → 0.2.39

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/bin/cli.js +20 -3
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -32,7 +32,7 @@ var require_package = __commonJS({
32
32
  module2.exports = {
33
33
  name: "vibe-kanban-alternative",
34
34
  private: false,
35
- version: "0.2.37",
35
+ version: "0.2.39",
36
36
  main: "index.js",
37
37
  bin: {
38
38
  "vibe-kanban-alternative": "bin/cli.js",
@@ -1261,6 +1261,20 @@ async function runReview(args) {
1261
1261
  });
1262
1262
  });
1263
1263
  }
1264
+ async function runTui(args) {
1265
+ await extractAndRun("vibe-tui", (bin) => {
1266
+ const proc = (0, import_child_process2.spawn)(bin, args, { stdio: "inherit" });
1267
+ proc.on("exit", (c) => process.exit(c || 0));
1268
+ proc.on("error", (e) => {
1269
+ console.error("TUI error:", e.message);
1270
+ process.exit(1);
1271
+ });
1272
+ process.on("SIGINT", () => {
1273
+ proc.kill("SIGINT");
1274
+ });
1275
+ process.on("SIGTERM", () => proc.kill("SIGTERM"));
1276
+ });
1277
+ }
1264
1278
  async function runMain(desktopMode) {
1265
1279
  checkForUpdates();
1266
1280
  const modeLabel = LOCAL_DEV_MODE ? " (local dev)" : "";
@@ -1320,8 +1334,8 @@ function runOrExit(task) {
1320
1334
  async function main() {
1321
1335
  import_fs3.default.mkdirSync(versionCacheDir, { recursive: true });
1322
1336
  const cli = cac("vibe-kanban-alternative");
1323
- cli.command("[...args]", "Launch the local vibe-kanban app").option("--desktop", "Launch the desktop app instead of browser mode").allowUnknownOptions().action((_args, options) => {
1324
- runOrExit(runMain(Boolean(options.desktop)));
1337
+ cli.command("[...args]", "Launch the local vibe-kanban app").option("--desktop", "Launch the desktop app instead of browser mode").option("--window, -w", "Launch in desktop window mode (alias for --desktop)").allowUnknownOptions().action((_args, options) => {
1338
+ runOrExit(runMain(Boolean(options.desktop || options.window || options.w)));
1325
1339
  });
1326
1340
  cli.command("review [...args]", "Run the review CLI").allowUnknownOptions().action((args) => {
1327
1341
  runOrExit(runReview(args));
@@ -1329,6 +1343,9 @@ async function main() {
1329
1343
  cli.command("mcp [...args]", "Run the MCP server").allowUnknownOptions().action((args) => {
1330
1344
  runOrExit(runMcp(args));
1331
1345
  });
1346
+ cli.command("tui [...args]", "Run the TUI cockpit").allowUnknownOptions().action((args) => {
1347
+ runOrExit(runTui(args));
1348
+ });
1332
1349
  cli.help();
1333
1350
  cli.version(CLI_VERSION);
1334
1351
  cli.parse(normalizeArgv(process.argv));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vibe-kanban-alternative",
3
3
  "private": false,
4
- "version": "0.2.37",
4
+ "version": "0.2.39",
5
5
  "main": "index.js",
6
6
  "bin": {
7
7
  "vibe-kanban-alternative": "bin/cli.js",