openkrew 0.2.6 → 0.2.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.
@@ -73,19 +73,17 @@ function getGatewayName() {
73
73
  }
74
74
 
75
75
  /**
76
- * Checks if the binary is already downloaded.
77
- * Version management is handled by the .NET SelfUpdater after first install.
78
- * The bootstrapper only needs to ensure the binary exists.
76
+ * Checks if the binary is downloaded and matches the npm package version.
77
+ * When npm install -g openkrew@X.Y.Z runs, PACKAGE_VERSION updates to X.Y.Z.
78
+ * If the installed binary version doesn't match, we re-download from S3.
79
79
  */
80
80
  function isInstalled() {
81
81
  const binaryPath = join(BIN_DIR, getBinaryName());
82
82
  if (!existsSync(binaryPath)) return false;
83
83
 
84
84
  try {
85
- // Just check that a version file exists — the .NET auto-updater
86
- // manages version checks against S3 from here on.
87
85
  const installedVersion = readFileSync(VERSION_FILE, "utf8").trim();
88
- return installedVersion.length > 0;
86
+ return installedVersion === PACKAGE_VERSION;
89
87
  } catch {
90
88
  return false;
91
89
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openkrew",
3
- "version": "0.2.6",
3
+ "version": "0.2.9",
4
4
  "description": "Distributed multi-machine AI agent team platform",
5
5
  "type": "module",
6
6
  "license": "BUSL-1.1",