modelstat 0.0.48 → 0.0.50

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": "modelstat",
3
- "version": "0.0.48",
3
+ "version": "0.0.50",
4
4
  "description": "modelstat companion — reads local AI-tool usage and ships tokenised events to modelstat.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -66,7 +66,7 @@ struct AgentStats: Decodable {
66
66
  struct DeviceInfo: Decodable {
67
67
  let hostname: String?
68
68
  let os_family: String?
69
- let agent_status: String?
69
+ let companion_status: String?
70
70
  let last_seen_at: String?
71
71
  }
72
72
 
@@ -85,7 +85,7 @@ struct LocalStatus: Decodable {
85
85
  let message: String?
86
86
  let queue_size: Int?
87
87
  let last_event_at: String?
88
- let agent_version: String?
88
+ let companion_version: String?
89
89
  let stats: LocalStatsCounters?
90
90
  }
91
91
 
@@ -473,10 +473,10 @@ final class TrayController: NSObject {
473
473
  }
474
474
 
475
475
  // Live agent phase comes from the local heartbeat mirror.
476
- // Falls back to the device-view's reported agent_status. If
476
+ // Falls back to the device-view's reported companion_status. If
477
477
  // both are missing we say "running" rather than "starting" so
478
478
  // the menu doesn't lie about the daemon's state.
479
- let phase = local?.status ?? s.device?.agent_status ?? "running"
479
+ let phase = local?.status ?? s.device?.companion_status ?? "running"
480
480
  let phaseMsg = local?.message
481
481
  // Pulse the leading dot while the agent is actively working so the
482
482
  // menu reads as alive even on the rare beat where the numbers don't
@@ -494,7 +494,7 @@ final class TrayController: NSObject {
494
494
  // numbers, plus point the menu items at the dashboard. Keep the
495
495
  // reassuring "Claimed ✓" and append the agent version when the
496
496
  // local snapshot carries it.
497
- if let v = local?.agent_version, !v.isEmpty {
497
+ if let v = local?.companion_version, !v.isEmpty {
498
498
  setInfo(deviceMI, "Claimed ✓ · \(v)")
499
499
  } else {
500
500
  setInfo(deviceMI, "Claimed ✓ — synced to your account")