heron-ai 0.2.2 → 0.2.3

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/bin/heron.js CHANGED
@@ -8,7 +8,7 @@ const program = new Command();
8
8
  program
9
9
  .name('heron')
10
10
  .description('Open-source agent checkpoint — vet AI agents before granting production access')
11
- .version('0.2.2');
11
+ .version('0.2.3');
12
12
  // ─── scan: active mode (Heron → Agent) ───────────────────────────────────
13
13
  program
14
14
  .command('scan')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heron-ai",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Open-source agent interrogator — audit what your AI agents do, need, and access",
5
5
  "type": "module",
6
6
  "bin": {
@@ -75,7 +75,16 @@ if [ "$LOCAL_VERSION" = "$REMOTE_VERSION" ]; then
75
75
  exit 0
76
76
  fi
77
77
 
78
- # Versions differ upgrade available
79
- RESULT="UPGRADE_AVAILABLE $LOCAL_VERSION $REMOTE_VERSION"
80
- echo "$RESULT" > "$CACHE_FILE"
81
- echo "$RESULT"
78
+ # Only report if remote is actually newer (simple lexicographic semver compare)
79
+ version_gt() {
80
+ [ "$(printf '%s\n' "$1" "$2" | sort -V | tail -n1)" = "$1" ] && [ "$1" != "$2" ]
81
+ }
82
+
83
+ if version_gt "$REMOTE_VERSION" "$LOCAL_VERSION"; then
84
+ RESULT="UPGRADE_AVAILABLE $LOCAL_VERSION $REMOTE_VERSION"
85
+ echo "$RESULT" > "$CACHE_FILE"
86
+ echo "$RESULT"
87
+ else
88
+ # Remote is older or equal (CDN cache lag) — treat as up to date
89
+ echo "UP_TO_DATE" > "$CACHE_FILE"
90
+ fi