@urun-sh/core 0.5.0 → 0.5.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/CHANGELOG.md CHANGED
@@ -1,6 +1,19 @@
1
1
  # Changelog
2
2
 
3
- ## 0.5.0
3
+ ## 0.5.1
4
+
5
+ - **FIX: `end()`'s own transport teardown no longer clobbers the server's confirmed park
6
+ reason.** `Session.end()` → `POST /api/sessions/{id}/end` already answers authoritatively
7
+ (`{status: 'paused', reason: 'client_ended'}`), but the transport teardown that same call
8
+ triggers used to unconditionally re-stamp `session.phase` with a hardcoded
9
+ `client_detached` — so the reactive `session.phase` stream never reflected what the server
10
+ actually said. `TransportSession.disconnect()` now takes an optional `reason` (default
11
+ `client_detached`, unchanged for an unsolicited transport loss); `Session.end()` threads the
12
+ `/end` response's own `reason` through `Session.detach()` into it, so a self-initiated end
13
+ settles at the server's answer instead of a generic client-side detach. Every other caller
14
+ of `disconnect()`/`detach()` (including an unsolicited socket death) is unaffected.
15
+ - Lockstep release of `@urun-sh/core`, `@urun-sh/react`, `@urun-sh/openai`, `@urun-sh/next`
16
+ (peer ranges bumped to `^0.5.1` where they pin core).
4
17
 
5
18
  - **BREAKING: `end()` PARKS, and `cancel()` is the admission-ticket verb** (owner ruling D3,
6
19
  2026-09-06; Review A §5.1 "two end verbs", §3.3 residue).