oh-my-customcode 0.68.0 → 0.68.1
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/dist/cli/index.js +22 -5
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/templates/manifest.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -9325,7 +9325,7 @@ var init_package = __esm(() => {
|
|
|
9325
9325
|
workspaces: [
|
|
9326
9326
|
"packages/*"
|
|
9327
9327
|
],
|
|
9328
|
-
version: "0.68.
|
|
9328
|
+
version: "0.68.1",
|
|
9329
9329
|
description: "Batteries-included agent harness for Claude Code",
|
|
9330
9330
|
type: "module",
|
|
9331
9331
|
bin: {
|
|
@@ -25513,6 +25513,19 @@ function compareSemver(a, b) {
|
|
|
25513
25513
|
}
|
|
25514
25514
|
return 0;
|
|
25515
25515
|
}
|
|
25516
|
+
function isVersionPlausible(currentVersion, candidateVersion) {
|
|
25517
|
+
const current = normalizeVersion(currentVersion).split(".").map((n) => parseInt(n, 10) || 0);
|
|
25518
|
+
const candidate = normalizeVersion(candidateVersion).split(".").map((n) => parseInt(n, 10) || 0);
|
|
25519
|
+
const majorDiff = (candidate[0] ?? 0) - (current[0] ?? 0);
|
|
25520
|
+
const minorDiff = (candidate[1] ?? 0) - (current[1] ?? 0);
|
|
25521
|
+
if (majorDiff >= 1) {
|
|
25522
|
+
return false;
|
|
25523
|
+
}
|
|
25524
|
+
if (majorDiff === 0 && minorDiff >= 10) {
|
|
25525
|
+
return false;
|
|
25526
|
+
}
|
|
25527
|
+
return true;
|
|
25528
|
+
}
|
|
25516
25529
|
function isInteractiveSession(stdin = process.stdin, stdout = process.stdout) {
|
|
25517
25530
|
return Boolean(stdin.isTTY && stdout.isTTY);
|
|
25518
25531
|
}
|
|
@@ -25639,12 +25652,16 @@ function checkSelfUpdate(options) {
|
|
|
25639
25652
|
let usedCache = false;
|
|
25640
25653
|
const cache = readCache(cachePath);
|
|
25641
25654
|
if (cache && isCacheFresh(cache, now, cacheTtlMs)) {
|
|
25642
|
-
|
|
25643
|
-
|
|
25655
|
+
const cachedVersion = normalizeVersion(cache.latestVersion);
|
|
25656
|
+
if (isVersionPlausible(currentVersion, cachedVersion)) {
|
|
25657
|
+
latestVersion = cachedVersion;
|
|
25658
|
+
usedCache = true;
|
|
25659
|
+
}
|
|
25644
25660
|
}
|
|
25645
25661
|
if (!latestVersion) {
|
|
25646
|
-
|
|
25647
|
-
if (
|
|
25662
|
+
const fetched = fetchLatestVersion(packageName);
|
|
25663
|
+
if (fetched && isVersionPlausible(currentVersion, fetched)) {
|
|
25664
|
+
latestVersion = fetched;
|
|
25648
25665
|
writeCache(cachePath, latestVersion, now);
|
|
25649
25666
|
}
|
|
25650
25667
|
}
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
package/templates/manifest.json
CHANGED