omo-suites 1.7.7 → 1.7.9
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 +12 -0
- package/dist/cli/omocs.js +33 -14
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,18 @@ 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.9] - 2026-03-07
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- CLI doctor now checks opencode.json (was .opencode.json) and oh-my-opencode.json
|
|
12
|
+
- Both CLI and TUI doctor views are now consistent
|
|
13
|
+
|
|
14
|
+
## [1.7.8] - 2026-03-07
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
- Auto-update re-exec fails on Windows when node path contains spaces (e.g. C:\Program Files\...)
|
|
18
|
+
- Properly quote process.argv[0] and args with spaces
|
|
19
|
+
|
|
8
20
|
## [1.7.7] - 2026-03-07
|
|
9
21
|
|
|
10
22
|
### Fixed
|
package/dist/cli/omocs.js
CHANGED
|
@@ -33828,8 +33828,9 @@ var init_init = __esm(() => {
|
|
|
33828
33828
|
});
|
|
33829
33829
|
|
|
33830
33830
|
// src/commands/doctor.ts
|
|
33831
|
-
import { statSync as statSync2 } from "fs";
|
|
33831
|
+
import { existsSync as existsSync10, statSync as statSync2 } from "fs";
|
|
33832
33832
|
import { homedir as homedir6 } from "os";
|
|
33833
|
+
import { join as join7 } from "path";
|
|
33833
33834
|
async function runChecks() {
|
|
33834
33835
|
const results = [];
|
|
33835
33836
|
const spinner = ora({ text: "Running health checks...", color: "cyan" }).start();
|
|
@@ -33947,17 +33948,34 @@ async function runChecks() {
|
|
|
33947
33948
|
const ocConfig = await readOpenCodeConfig();
|
|
33948
33949
|
if (ocConfig) {
|
|
33949
33950
|
results.push({
|
|
33950
|
-
name: "
|
|
33951
|
+
name: "opencode.json",
|
|
33951
33952
|
status: "pass",
|
|
33952
33953
|
message: `Found at ${ocConfig.path}`
|
|
33953
33954
|
});
|
|
33954
33955
|
} else {
|
|
33955
33956
|
results.push({
|
|
33956
|
-
name: "
|
|
33957
|
+
name: "opencode.json",
|
|
33957
33958
|
status: "warn",
|
|
33958
33959
|
message: "Not found in current dir or home — run `omocs init`"
|
|
33959
33960
|
});
|
|
33960
33961
|
}
|
|
33962
|
+
spinner.text = "Checking oh-my-opencode config...";
|
|
33963
|
+
const omoConfigPaths = [
|
|
33964
|
+
join7(process.cwd(), "oh-my-opencode.json"),
|
|
33965
|
+
join7(process.cwd(), ".opencode", "oh-my-opencode.json")
|
|
33966
|
+
];
|
|
33967
|
+
let omoConfigPath = null;
|
|
33968
|
+
for (const p of omoConfigPaths) {
|
|
33969
|
+
if (existsSync10(p)) {
|
|
33970
|
+
omoConfigPath = p;
|
|
33971
|
+
break;
|
|
33972
|
+
}
|
|
33973
|
+
}
|
|
33974
|
+
results.push({
|
|
33975
|
+
name: "oh-my-opencode.json",
|
|
33976
|
+
status: omoConfigPath ? "pass" : "warn",
|
|
33977
|
+
message: omoConfigPath ? `Found at ${omoConfigPath}` : "Not found (optional)"
|
|
33978
|
+
});
|
|
33961
33979
|
spinner.text = "Checking LSP servers...";
|
|
33962
33980
|
let lspInstalled = 0;
|
|
33963
33981
|
let lspTotal = 0;
|
|
@@ -34331,14 +34349,14 @@ var init_account = __esm(() => {
|
|
|
34331
34349
|
|
|
34332
34350
|
// src/core/store.ts
|
|
34333
34351
|
import { existsSync as existsSync11, readFileSync as readFileSync11, writeFileSync as writeFileSync6 } from "fs";
|
|
34334
|
-
import { join as
|
|
34352
|
+
import { join as join8 } from "path";
|
|
34335
34353
|
|
|
34336
34354
|
class Store {
|
|
34337
34355
|
filePath;
|
|
34338
34356
|
defaults;
|
|
34339
34357
|
constructor(filename, defaults) {
|
|
34340
34358
|
ensureConfigDir();
|
|
34341
|
-
this.filePath =
|
|
34359
|
+
this.filePath = join8(getConfigDir(), filename);
|
|
34342
34360
|
this.defaults = defaults;
|
|
34343
34361
|
}
|
|
34344
34362
|
async read() {
|
|
@@ -35147,7 +35165,7 @@ var require_bindings = __commonJS((exports, module) => {
|
|
|
35147
35165
|
var fs = __require("fs");
|
|
35148
35166
|
var path2 = __require("path");
|
|
35149
35167
|
var fileURLToPath4 = require_file_uri_to_path();
|
|
35150
|
-
var
|
|
35168
|
+
var join9 = path2.join;
|
|
35151
35169
|
var dirname7 = path2.dirname;
|
|
35152
35170
|
var exists = fs.accessSync && function(path3) {
|
|
35153
35171
|
try {
|
|
@@ -35200,7 +35218,7 @@ var require_bindings = __commonJS((exports, module) => {
|
|
|
35200
35218
|
var requireFunc = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require;
|
|
35201
35219
|
var tries = [], i = 0, l = opts.try.length, n, b, err;
|
|
35202
35220
|
for (;i < l; i++) {
|
|
35203
|
-
n =
|
|
35221
|
+
n = join9.apply(null, opts.try[i].map(function(p) {
|
|
35204
35222
|
return opts[p] || p;
|
|
35205
35223
|
}));
|
|
35206
35224
|
tries.push(n);
|
|
@@ -35258,14 +35276,14 @@ var require_bindings = __commonJS((exports, module) => {
|
|
|
35258
35276
|
if (dir === ".") {
|
|
35259
35277
|
dir = process.cwd();
|
|
35260
35278
|
}
|
|
35261
|
-
if (exists(
|
|
35279
|
+
if (exists(join9(dir, "package.json")) || exists(join9(dir, "node_modules"))) {
|
|
35262
35280
|
return dir;
|
|
35263
35281
|
}
|
|
35264
35282
|
if (prev === dir) {
|
|
35265
35283
|
throw new Error('Could not find module root given file: "' + file + '". Do you have a `package.json` file? ');
|
|
35266
35284
|
}
|
|
35267
35285
|
prev = dir;
|
|
35268
|
-
dir =
|
|
35286
|
+
dir = join9(dir, "..");
|
|
35269
35287
|
}
|
|
35270
35288
|
};
|
|
35271
35289
|
});
|
|
@@ -35845,13 +35863,13 @@ var require_lib4 = __commonJS((exports, module) => {
|
|
|
35845
35863
|
|
|
35846
35864
|
// src/commands/stats.ts
|
|
35847
35865
|
import { existsSync as existsSync12, writeFileSync as writeFileSync7 } from "fs";
|
|
35848
|
-
import { join as
|
|
35866
|
+
import { join as join9 } from "path";
|
|
35849
35867
|
import { homedir as homedir7 } from "os";
|
|
35850
35868
|
function findDatabase() {
|
|
35851
35869
|
const locations = [
|
|
35852
|
-
|
|
35853
|
-
|
|
35854
|
-
|
|
35870
|
+
join9(process.cwd(), ".opencode", "data.db"),
|
|
35871
|
+
join9(homedir7(), ".opencode", "data.db"),
|
|
35872
|
+
join9(homedir7(), ".config", "opencode", "data.db")
|
|
35855
35873
|
];
|
|
35856
35874
|
for (const loc of locations) {
|
|
35857
35875
|
if (existsSync12(loc))
|
|
@@ -36314,7 +36332,8 @@ async function checkAndUpdate(currentVersion) {
|
|
|
36314
36332
|
console.log(source_default.green(`✅ Updated to v${latestVersion}. Restarting...
|
|
36315
36333
|
`));
|
|
36316
36334
|
try {
|
|
36317
|
-
|
|
36335
|
+
const args = process.argv.slice(1).map((a) => a.includes(" ") ? `"${a}"` : a).join(" ");
|
|
36336
|
+
execSync(`"${process.argv[0]}" ${args}`, {
|
|
36318
36337
|
stdio: "inherit",
|
|
36319
36338
|
env: { ...process.env, OMOCS_NO_UPDATE: "1" }
|
|
36320
36339
|
});
|
package/package.json
CHANGED