@agenticmail/api 0.9.9 → 0.9.10

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/dist/index.js CHANGED
@@ -1861,7 +1861,19 @@ function normalizeWakeList(value) {
1861
1861
  if (value === "all" || value === WAKE_ALL_SENTINEL) return void 0;
1862
1862
  const strip = (s) => s.trim().replace(/@localhost$/i, "").toLowerCase();
1863
1863
  if (Array.isArray(value)) return value.map((v) => strip(String(v))).filter(Boolean);
1864
- if (typeof value === "string") return value.split(",").map(strip).filter(Boolean);
1864
+ if (typeof value === "string") {
1865
+ const trimmed = value.trim();
1866
+ if (trimmed.startsWith("[") && trimmed.endsWith("]")) {
1867
+ try {
1868
+ const parsed = JSON.parse(trimmed);
1869
+ if (Array.isArray(parsed)) {
1870
+ return parsed.map((v) => strip(String(v))).filter(Boolean);
1871
+ }
1872
+ } catch {
1873
+ }
1874
+ }
1875
+ return value.split(",").map(strip).filter(Boolean);
1876
+ }
1865
1877
  return void 0;
1866
1878
  }
1867
1879
  function deriveDefaultWakeList(toField) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/api",
3
- "version": "0.9.9",
3
+ "version": "0.9.10",
4
4
  "description": "REST API server for AgenticMail — email and SMS endpoints for AI agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -107,7 +107,7 @@ export async function loadList(agent, folder) {
107
107
  </div>
108
108
  <div class="list-toolbar-spacer"></div>
109
109
  <span class="count-text" id="list-count"></span>
110
- <button class="icon-btn pager-btn" id="pager-prev" title="Newer" data-icon="back"></button>
110
+ <button class="icon-btn pager-btn" id="pager-prev" title="Newer"></button>
111
111
  <button class="icon-btn pager-btn" id="pager-next" title="Older"></button>
112
112
  </div>
113
113
  <div class="list-rows" id="list-rows"><div class="empty">Loading…</div></div>
@@ -116,6 +116,14 @@ export async function loadList(agent, folder) {
116
116
  // the head of the inbox); "Older" advances to higher offsets.
117
117
  // Each handler clamps to valid bounds and refetches via loadList
118
118
  // with the new offset preserved in state.pagination.
119
+ //
120
+ // Both buttons share the same `back` chevron glyph — Prev is the
121
+ // glyph as-is (points left), Next rotates it 180° to point right.
122
+ // Previously Prev had only a `data-icon="back"` attribute (no
123
+ // innerHTML assignment), which left it visually empty — the user
124
+ // could click it but couldn't see it, so on page 2+ the back
125
+ // button looked entirely missing.
126
+ document.getElementById('pager-prev').innerHTML = icon('back', { size: 18 });
119
127
  document.getElementById('pager-next').innerHTML = icon('back', { size: 18 });
120
128
  document.getElementById('pager-next').style.transform = 'rotate(180deg)';
121
129
  document.getElementById('pager-prev')?.addEventListener('click', () => goToPage(agent, folder, -1));