omo-suites 1.7.2 → 1.7.3

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/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to OMO Suites will be documented in this file.
5
5
  Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
6
6
  This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.7.3] - 2026-03-07
9
+
10
+ ### Fixed
11
+ - TUI dashboard now shows correct version (was hardcoded 1.2.0/1.1.0)
12
+ - Version resolution walks up directories to find package.json in all install contexts
13
+
8
14
  ## [1.7.2] - 2026-03-07
9
15
 
10
16
  ### Fixed
package/dist/cli/omocs.js CHANGED
@@ -762,13 +762,29 @@ function renderNarrow(ctx, cols, rows, output) {
762
762
  output.push(gold(BOX.vertical) + padEnd(foot, w - 2) + gold(BOX.vertical));
763
763
  output.push(gold(BOX.bottomLeft + BOX.horizontal.repeat(w - 2) + BOX.bottomRight));
764
764
  }
765
- var __pkgDir, VERSION = "1.2.0", MENU_ITEMS;
765
+ var __pkgDir, VERSION = "unknown", MENU_ITEMS;
766
766
  var init_renderer = __esm(() => {
767
767
  init_utils();
768
768
  __pkgDir = dirname(dirname(fileURLToPath(import.meta.url)));
769
769
  try {
770
- const pkg = JSON.parse(readFileSync2(resolve2(__pkgDir, "package.json"), "utf-8"));
771
- VERSION = pkg.version;
770
+ let dir = dirname(fileURLToPath(import.meta.url));
771
+ let found = false;
772
+ for (let i = 0;i < 5; i++) {
773
+ const candidate = resolve2(dir, "package.json");
774
+ try {
775
+ const pkg = JSON.parse(readFileSync2(candidate, "utf-8"));
776
+ if (pkg.name === "omo-suites" || pkg.name === "omocs") {
777
+ VERSION = pkg.version;
778
+ found = true;
779
+ break;
780
+ }
781
+ } catch {}
782
+ dir = dirname(dir);
783
+ }
784
+ if (!found) {
785
+ const pkg = JSON.parse(readFileSync2(resolve2(__pkgDir, "package.json"), "utf-8"));
786
+ VERSION = pkg.version;
787
+ }
772
788
  } catch {}
773
789
  MENU_ITEMS = ["Profile", "Agents", "MCP", "LSP", "Doctor", "Stats", "Launchboard"];
774
790
  });
@@ -2729,7 +2745,7 @@ async function executeCommand(input) {
2729
2745
  case "stats":
2730
2746
  return await statsCommand();
2731
2747
  case "version":
2732
- return [goldBold(`OMO Suites v${VERSION3}`)];
2748
+ return [goldBold(`OMO Suites v${VERSION}`)];
2733
2749
  case "clear":
2734
2750
  return [];
2735
2751
  case "quit":
@@ -2970,7 +2986,7 @@ function formatNumber2(n) {
2970
2986
  return (n / 1000).toFixed(1) + "K";
2971
2987
  return String(n);
2972
2988
  }
2973
- var VERSION3 = "1.1.0", COMMAND_LIST;
2989
+ var COMMAND_LIST;
2974
2990
  var init_commands = __esm(() => {
2975
2991
  init_agents();
2976
2992
  init_profiles();
@@ -2980,6 +2996,7 @@ var init_commands = __esm(() => {
2980
2996
  init_opencode();
2981
2997
  init_shell();
2982
2998
  init_utils();
2999
+ init_renderer();
2983
3000
  COMMAND_LIST = [
2984
3001
  "help",
2985
3002
  "test",
@@ -36113,7 +36130,7 @@ function findPackageJson() {
36113
36130
  }
36114
36131
  return resolve8(dirname7(dirname7(fileURLToPath4(import.meta.url))), "package.json");
36115
36132
  }
36116
- var pkg, VERSION4, program2;
36133
+ var pkg, VERSION3, program2;
36117
36134
  var init_src = __esm(() => {
36118
36135
  init_esm();
36119
36136
  init_ui();
@@ -36127,9 +36144,9 @@ var init_src = __esm(() => {
36127
36144
  init_stats2();
36128
36145
  init_launchboard2();
36129
36146
  pkg = JSON.parse(readFileSync13(findPackageJson(), "utf-8"));
36130
- VERSION4 = pkg.version;
36147
+ VERSION3 = pkg.version;
36131
36148
  program2 = new Command;
36132
- program2.name("omocs").description("OMO Suites — CLI toolkit for OpenCode power users").version(VERSION4, "-v, --version", "Show version").hook("preAction", () => {
36149
+ program2.name("omocs").description("OMO Suites — CLI toolkit for OpenCode power users").version(VERSION3, "-v, --version", "Show version").hook("preAction", () => {
36133
36150
  process.on("uncaughtException", (error) => {
36134
36151
  handleError(error);
36135
36152
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omo-suites",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "OMO Suites — OpenCode plugin + CLI toolkit. Multi-model orchestration, profiles, agent routing, MCP/LSP management.",
5
5
  "type": "module",
6
6
  "main": "dist/plugin.js",