@aria-framework/ai 0.9.0 → 0.9.1

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@aria-framework/ai",
3
3
  "description": "Aria App Framework — AI module. A dependency-injected model seam (createAiClient) over several providers (LM Studio / OpenAI-compatible / Anthropic), with a fact-preservation guard, generic Polish and Generate writing engines, and a browser polish widget. Prompts and config stay in the consuming app.",
4
- "version": "0.9.0",
4
+ "version": "0.9.1",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
7
7
  "publishConfig": {
@@ -79,9 +79,23 @@
79
79
  <span class="font-monospace"><%= Number(usage.total_tokens || 0).toLocaleString() %></span></div>
80
80
  <% } %>
81
81
  <div>
82
- <%# LAST GOOD, not just a dot. "last good 3h ago" tells a story a green light cannot. %>
82
+ <%# LAST GOOD, not just a dot. "last good 3h ago" tells a story a green light cannot.
83
+ THREE STATES, NOT TWO. `ago(...) || 'never'` claimed an endpoint had never worked
84
+ whenever there was no timestamp — but health lives in process memory, so every
85
+ restart wiped the record and a perfectly healthy endpoint came back reading "never".
86
+ That is not a missing value, it is a DIFFERENT FACT, and stating the stronger one is
87
+ how an operator ends up debugging a server that was fine. The checker already tells
88
+ them apart: `status: 'unknown'` means it has not been seen in this process at all,
89
+ whereas a real entry with no lastGoodAt has genuinely been tried and never answered. %>
83
90
  <div class="text-body-secondary text-uppercase" style="font-size:.68rem;letter-spacing:.06em">Last good</div>
84
- <span class="font-monospace"><%= ago(h.lastGoodAt) || 'never' %></span>
91
+ <% if (h.lastGoodAt) { %>
92
+ <span class="font-monospace"><%= ago(h.lastGoodAt) %></span>
93
+ <% } else if (h.status === 'unknown') { %>
94
+ <span class="font-monospace text-body-secondary"
95
+ title="Nothing recorded since this server started. Health is kept in memory, so a restart clears it — press Test to find out.">no record</span>
96
+ <% } else { %>
97
+ <span class="font-monospace">never</span>
98
+ <% } %>
85
99
  </div>
86
100
  </div>
87
101