William Valentin
b39010d602
fix(tests): resolve 4 post-phase test failures
...
- platformClients.integration: iOS/Android push tests lacked
setStatus() call before listNodes(), so platform filter excluded
nodes. Added publishHeartbeat() to set platform on connection state.
- server.test: agent.send now emits run_state events before done (Phase
1). Added sendAndWaitForDone() helper and updated test to find done
event rather than assuming index 0.
- handlers.test: updated agent.send/cancel assertions to use find()
and pass send arg to agent.cancel, consistent with run_state events.
- httpBody: req.destroy() closed socket before 413 response could be
sent. Removed socket destruction from body reader; 413 responses now
send Connection: close so Node closes the connection cleanly.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-02-25 11:55:14 -08:00
William Valentin
ac60fa5be3
feat(companion): add reconnect resilience
2026-02-25 11:12:21 -08:00
William Valentin
0bf69acafe
fix(lint): clear error-level violations across runtime and ui
2026-02-23 16:51:44 -08:00
William Valentin
803de57261
fix(gateway): align session mocks and persist normalized push provider
2026-02-17 15:53:08 -08:00
William Valentin
01f75e536d
fix(companion): clear disconnect metadata after reconnect
2026-02-17 15:38:30 -08:00
William Valentin
809000b6c6
feat(companion): add direct disconnect metadata getters
2026-02-17 15:38:30 -08:00
William Valentin
6821e3779f
fix(companion): preserve manual disconnect snapshot metadata
2026-02-17 15:38:30 -08:00
William Valentin
95df7cd445
feat(companion): allow platform disconnect code and reason
2026-02-17 15:38:30 -08:00
William Valentin
44b686da9c
feat(companion): add disconnect metadata to connection snapshots
2026-02-17 15:38:30 -08:00
William Valentin
44916fc9b2
test(companion): cover cancel wait snapshot updates
2026-02-17 15:38:14 -08:00
William Valentin
33812e3845
test(companion): verify clearEventSubscriptions count integration
2026-02-17 15:38:14 -08:00
William Valentin
ffc7c4e9b3
feat(companion): return clearEventSubscriptions result counts
2026-02-17 15:38:14 -08:00
William Valentin
06bdb27f70
test(companion): add connection snapshot integration coverage
2026-02-17 15:38:14 -08:00
William Valentin
c8f6d76638
feat(companion): add connection snapshot helper
2026-02-17 15:38:14 -08:00
William Valentin
965267d67e
test(companion): add event surface snapshot integration coverage
2026-02-17 15:38:14 -08:00
William Valentin
29523bcdac
feat(companion): add event surface snapshot helper
2026-02-17 15:38:14 -08:00
William Valentin
a6e9daaaef
test(companion): add non-finite waitForIdle validation coverage
2026-02-17 15:38:14 -08:00
William Valentin
9e442920d2
test(companion): verify cancelPendingEventWaits count integration
2026-02-17 15:38:14 -08:00
William Valentin
83236a4ba3
feat(companion): return cancelPendingEventWaits count
2026-02-17 15:38:14 -08:00
William Valentin
a4e9828592
test(companion): add cancelPendingEventWaits integration coverage
2026-02-17 15:38:14 -08:00
William Valentin
c4a8d099d6
feat(companion): add cancellable pending event wait helper
2026-02-17 15:38:14 -08:00
William Valentin
c41332a643
fix(companion): validate event wait timeout options
2026-02-17 15:38:13 -08:00
William Valentin
45ea084cf0
feat(companion): add idle observability alias
2026-02-17 15:38:13 -08:00
William Valentin
699f848fc5
test(companion): cover waitForIdle pre-aborted signal
2026-02-17 15:38:13 -08:00
William Valentin
164db42d0f
test(companion): cover waitForIdle pending RPC lifecycle
2026-02-17 15:38:13 -08:00
William Valentin
c2395ced75
test(companion): add pending work snapshot integration coverage
2026-02-17 15:38:13 -08:00
William Valentin
b4cef5235e
feat(companion): add pending work snapshot helper
2026-02-17 15:38:13 -08:00
William Valentin
c5bc2c1754
fix(companion): normalize heartbeat jitter random samples
2026-02-17 15:38:13 -08:00
William Valentin
239d9f93ff
fix(companion): validate waitForIdle timeout option
2026-02-17 15:38:13 -08:00
William Valentin
1a46b122e0
test(companion): cover waitForIdle abort cancellation
2026-02-17 15:38:13 -08:00
William Valentin
a000235826
test(companion): add platform waitForIdle integration coverage
2026-02-17 15:38:13 -08:00
William Valentin
ed471072bb
feat(companion): add waitForIdle runtime drain helper
2026-02-17 15:38:13 -08:00
William Valentin
d14f82cd84
feat(companion): add hasPendingWork runtime observability
2026-02-17 15:38:13 -08:00
William Valentin
7e556c5815
test(companion): cover pending event wait count lifecycle
2026-02-17 15:38:13 -08:00
William Valentin
21a57c88b9
feat(companion): expose pending event wait observability
2026-02-17 15:38:13 -08:00
William Valentin
df86fbd08e
feat(companion): expose pending request observability
2026-02-17 15:38:13 -08:00
William Valentin
5277fed220
test(companion): cover heartbeat loop state reset on restart
2026-02-17 15:38:13 -08:00
William Valentin
36ad56a6c6
fix(companion): type-guard event wait name validation
2026-02-17 15:38:13 -08:00
William Valentin
7304a4b08f
test(companion): add platform event subscription lifecycle integration
2026-02-17 15:38:13 -08:00
William Valentin
490ca7def9
feat(companion): validate event wait helper input names
2026-02-17 15:38:13 -08:00
William Valentin
4f6904c395
test(companion): cover waitForAnyEvent socket-close rejection
2026-02-17 15:38:13 -08:00
William Valentin
8837843df1
fix(companion): reject event waiters on unexpected socket close
2026-02-17 15:38:13 -08:00
William Valentin
61533bd816
fix(companion): dedupe heartbeat loop scheduled timers
2026-02-17 15:38:13 -08:00
William Valentin
ebb62ffb65
test(companion): cover platform connected lifecycle integration
2026-02-17 15:38:13 -08:00
William Valentin
3a1e52c938
chore(companion): align platform waitForAnyEvent event-name typing
2026-02-17 15:38:13 -08:00
William Valentin
369250077a
feat(companion): add heartbeat success observability state
2026-02-17 15:38:13 -08:00
William Valentin
6dccef94a6
feat(companion): forward dispose close params on platform clients
2026-02-17 15:38:13 -08:00
William Valentin
274c49acbc
feat(companion): expose platform connected state passthrough
2026-02-17 15:38:13 -08:00
William Valentin
78466c7e71
feat(companion): add platform single-event passthrough helpers
2026-02-17 15:38:13 -08:00
William Valentin
6a9796066b
feat(companion): add platform event subscription count passthrough
2026-02-17 15:38:13 -08:00