fix: load CLI version from package.json

This commit is contained in:
2026-03-23 13:11:25 +05:30
parent cb9c973868
commit c6698e7c22
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
#!/usr/bin/env bun
import { Command } from "commander";
import pkg from "../package.json";
import { cleanupMultiModel } from "./core/cleanup";
import { closeMultiModel } from "./core/close";
import { openMultiModel } from "./core/open";
@@ -10,7 +11,7 @@ const program = new Command();
program
.name("opencode-multi-model")
.description("Launch multiple OpenCode models in tmux sessions")
.version("1.0.0");
.version(pkg.version);
program
.command("open")