@theronap/agnoclast-mcp 0.9.227 → 0.9.228
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/lib/report_spool.mjs +7 -0
- package/package.json +1 -1
package/lib/report_spool.mjs
CHANGED
|
@@ -144,6 +144,13 @@ export function wireBody(e) {
|
|
|
144
144
|
failure_class: e.failure_class ?? null, request_id: e.request_id ?? null, client_version: e.client_version ?? null,
|
|
145
145
|
count: e.count ?? 1,
|
|
146
146
|
}
|
|
147
|
+
// When this client SAW it (2026-10-10, obligation 85fc7617). An entry is sent after the NEXT success, which
|
|
148
|
+
// can be hours later, and without these the server dated every report by its arrival: a timeout that sat in
|
|
149
|
+
// a spool for 6 hours read "last 47m ago" on the issue list. The server bounds them (seenAt, bug_reports.ts).
|
|
150
|
+
const iso = (ms) => (Number.isFinite(ms) ? new Date(ms).toISOString() : undefined)
|
|
151
|
+
const first = iso(e.first_seen), last = iso(e.last_seen)
|
|
152
|
+
if (first) body.first_seen_at = first
|
|
153
|
+
if (last) body.last_seen_at = last
|
|
147
154
|
if (e.user_approved === true) {
|
|
148
155
|
body.user_approved = true
|
|
149
156
|
if (e.summary) body.summary = e.summary
|
package/package.json
CHANGED