@ekkos/cli 1.0.15 → 1.0.17
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.
|
@@ -996,6 +996,8 @@ async function launchDashboard(initialSessionName, jsonlPath, refreshMs) {
|
|
|
996
996
|
*/
|
|
997
997
|
async function fetchAnthropicUsage() {
|
|
998
998
|
try {
|
|
999
|
+
if (process.platform !== 'darwin')
|
|
1000
|
+
return null; // macOS keychain only
|
|
999
1001
|
const { execSync } = require('child_process');
|
|
1000
1002
|
const credsJson = execSync('security find-generic-password -s "Claude Code-credentials" -w', { encoding: 'utf-8', timeout: 5000 }).trim();
|
|
1001
1003
|
const creds = JSON.parse(credsJson);
|
|
@@ -582,6 +582,8 @@ async function launchSwarmDashboard(launchTs, refreshMs) {
|
|
|
582
582
|
// ── Usage window (Anthropic OAuth) ──
|
|
583
583
|
async function fetchAnthropicUsage() {
|
|
584
584
|
try {
|
|
585
|
+
if (process.platform !== 'darwin')
|
|
586
|
+
return null; // macOS keychain only
|
|
585
587
|
const { execSync } = require('child_process');
|
|
586
588
|
const credsJson = execSync('security find-generic-password -s "Claude Code-credentials" -w', { encoding: 'utf-8', timeout: 5000 }).trim();
|
|
587
589
|
const creds = JSON.parse(credsJson);
|
package/package.json
CHANGED
|
@@ -189,7 +189,13 @@ $contextPercent = ""
|
|
|
189
189
|
if (Test-Path $stateFile) {
|
|
190
190
|
try {
|
|
191
191
|
$hookState = Get-Content $stateFile -Raw | ConvertFrom-Json
|
|
192
|
-
|
|
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
|
-
$
|
|
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 += @"
|