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 CHANGED
@@ -9325,7 +9325,7 @@ var init_package = __esm(() => {
9325
9325
  workspaces: [
9326
9326
  "packages/*"
9327
9327
  ],
9328
- version: "0.68.0",
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
- latestVersion = normalizeVersion(cache.latestVersion);
25643
- usedCache = true;
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
- latestVersion = fetchLatestVersion(packageName);
25647
- if (latestVersion) {
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
@@ -1674,7 +1674,7 @@ var package_default = {
1674
1674
  workspaces: [
1675
1675
  "packages/*"
1676
1676
  ],
1677
- version: "0.68.0",
1677
+ version: "0.68.1",
1678
1678
  description: "Batteries-included agent harness for Claude Code",
1679
1679
  type: "module",
1680
1680
  bin: {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "workspaces": [
4
4
  "packages/*"
5
5
  ],
6
- "version": "0.68.0",
6
+ "version": "0.68.1",
7
7
  "description": "Batteries-included agent harness for Claude Code",
8
8
  "type": "module",
9
9
  "bin": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.68.0",
2
+ "version": "0.68.1",
3
3
  "lastUpdated": "2026-03-24T00:00:00.000Z",
4
4
  "components": [
5
5
  {