@ekkos/cli 1.0.15 → 1.0.16

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": "@ekkos/cli",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "Setup ekkOS memory for AI coding assistants (Claude Code, Cursor, Windsurf)",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -189,7 +189,13 @@ $contextPercent = ""
189
189
  if (Test-Path $stateFile) {
190
190
  try {
191
191
  $hookState = Get-Content $stateFile -Raw | ConvertFrom-Json
192
- $turn = [int]$hookState.turn + 1
192
+ # Only continue incrementing if this state belongs to the SAME session.
193
+ # If session changed, reset turn counter to 0.
194
+ if ($hookState.session_id -eq $rawSessionId) {
195
+ $turn = [int]$hookState.turn + 1
196
+ } else {
197
+ $turn = 0
198
+ }
193
199
  } catch {
194
200
  $turn = 0
195
201
  }
@@ -282,7 +288,8 @@ if ($sessionName -ne "unknown-session") {
282
288
  # ═══════════════════════════════════════════════════════════════════════════
283
289
  # OUTPUT SYSTEM REMINDER
284
290
  # ═══════════════════════════════════════════════════════════════════════════
285
- $header = "[0;36m[1mekkOS Memory[0m [2m| Turn $turn | $sessionName | $timestamp[0m"
291
+ $esc = [char]27
292
+ $header = "${esc}[0;36m${esc}[1m🧠 ekkOS Memory${esc}[0m ${esc}[2m| Turn $turn | $sessionName | $timestamp${esc}[0m"
286
293
 
287
294
  $output = @"
288
295
  $header
@@ -290,7 +297,7 @@ $header
290
297
  "@
291
298
 
292
299
  if ($skillReminders.Count -gt 0) {
293
- $output += "[0;35m[1m" + ($skillReminders -join "`n") + "[0m`n"
300
+ $output += "${esc}[0;35m${esc}[1m" + ($skillReminders -join "`n") + "${esc}[0m`n"
294
301
  }
295
302
 
296
303
  $output += @"