@lightupai/polaris 0.0.114 → 0.0.116

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.
@@ -57,8 +57,28 @@ if [ -f "$INSTALLED_PKG" ]; then
57
57
  ) &
58
58
  fi
59
59
 
60
- if [ -n "$CACHED_LATEST" ] && [ -n "$INSTALLED_VERSION" ] && [ "$CACHED_LATEST" != "$INSTALLED_VERSION" ]; then
61
- UPDATE_MSG=" [update available: v${CACHED_LATEST}]"
60
+ # Only notify when the registry version is strictly newer (prevents false
61
+ # positives when a freshly-updated client's cache still shows an older latest).
62
+ if [ -n "$CACHED_LATEST" ] && [ -n "$INSTALLED_VERSION" ]; then
63
+ _ver_gt() {
64
+ # Returns true (0) when $1 is semver-greater than $2
65
+ # Works for the "0.0.NNN" format used by polaris.
66
+ IFS=. read -r _a1 _a2 _a3 <<_EOF_
67
+ $1
68
+ _EOF_
69
+ IFS=. read -r _b1 _b2 _b3 <<_EOF_
70
+ $2
71
+ _EOF_
72
+ [ "${_a1:-0}" -gt "${_b1:-0}" ] && return 0
73
+ [ "${_a1:-0}" -lt "${_b1:-0}" ] && return 1
74
+ [ "${_a2:-0}" -gt "${_b2:-0}" ] && return 0
75
+ [ "${_a2:-0}" -lt "${_b2:-0}" ] && return 1
76
+ [ "${_a3:-0}" -gt "${_b3:-0}" ] && return 0
77
+ return 1
78
+ }
79
+ if _ver_gt "$CACHED_LATEST" "$INSTALLED_VERSION"; then
80
+ UPDATE_MSG=" [v${INSTALLED_VERSION}, update available]"
81
+ fi
62
82
  fi
63
83
  fi
64
84
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightupai/polaris",
3
- "version": "0.0.114",
3
+ "version": "0.0.116",
4
4
  "description": "Record and stream Claude Code sessions to Slack. Like Gong for AI coding — capture every prompt, response, and tool call. Multiplayer collaboration across AI coding agents.",
5
5
  "keywords": [
6
6
  "claude-code",