vibecodingmachine-core 2025.11.2-9.2122 → 2025.11.2-9.2136

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibecodingmachine-core",
3
- "version": "2025.11.29.2122",
3
+ "version": "2025.11.29.2136",
4
4
  "description": "Shared core logic for Vibe Coding Machine IDE integration",
5
5
  "main": "src/index.cjs",
6
6
  "module": "src/index.js",
@@ -1,5 +1,14 @@
1
1
  const https = require('https');
2
2
 
3
+ /**
4
+ * Compare two timestamp-based versions (YYYY.MM.DD.HHMM)
5
+ * Returns true if version1 is newer than version2
6
+ */
7
+ function isVersionNewer(version1, version2) {
8
+ // Versions are in format YYYY.MM.DD.HHMM, so string comparison works
9
+ return version1 > version2;
10
+ }
11
+
3
12
  /**
4
13
  * Format version timestamp to YYYY.MM.DD.HHMM (TIMEZONE)
5
14
  */
@@ -79,7 +88,8 @@ async function checkForElectronUpdates(currentVersion) {
79
88
  downloadUrl = baseUrl;
80
89
  }
81
90
 
82
- if (latestVersion !== currentVersion) {
91
+ // Only show update if latest version is actually newer than current
92
+ if (latestVersion !== currentVersion && isVersionNewer(latestVersion, currentVersion)) {
83
93
  console.log(`✅ [UPDATE CHECK] Update available: ${currentVersion} → ${latestVersion}`);
84
94
  console.log(`📥 [UPDATE CHECK] Download URL: ${downloadUrl}`);
85
95
  resolve({
@@ -62,6 +62,15 @@ async function checkForUpdates(packageName, currentVersion) {
62
62
  });
63
63
  }
64
64
 
65
+ /**
66
+ * Compare two timestamp-based versions (YYYY.MM.DD.HHMM)
67
+ * Returns true if version1 is newer than version2
68
+ */
69
+ function isVersionNewer(version1, version2) {
70
+ // Versions are in format YYYY.MM.DD.HHMM, so string comparison works
71
+ return version1 > version2;
72
+ }
73
+
65
74
  /**
66
75
  * Check for CLI updates from S3 version manifest (unified with Electron)
67
76
  * Both CLI and Electron now use the same timestamp-based versioning from git commits
@@ -70,7 +79,7 @@ async function checkForUpdates(packageName, currentVersion) {
70
79
  */
71
80
  async function checkForCLIUpdates(currentVersion) {
72
81
  return new Promise((resolve, reject) => {
73
- const manifestUrl = `https://vibecodingmachine-website.s3.amazonaws.com/downloads/version.json?t=${Date.now()}`;
82
+ const manifestUrl = `https://d3fh7zgi8horze.cloudfront.net/downloads/version.json?t=${Date.now()}`;
74
83
 
75
84
  https.get(manifestUrl, (res) => {
76
85
  let data = '';
@@ -92,7 +101,8 @@ async function checkForCLIUpdates(currentVersion) {
92
101
  const latestVersion = manifest.version;
93
102
  const publishedDate = manifest.date;
94
103
 
95
- if (latestVersion !== currentVersion) {
104
+ // Only show update if latest version is actually newer than current
105
+ if (latestVersion !== currentVersion && isVersionNewer(latestVersion, currentVersion)) {
96
106
  resolve({
97
107
  hasUpdate: true,
98
108
  currentVersion,