@band-ai/band-sdk-core 1.0.0 → 1.0.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/README.md +6 -8
- package/band_sdk_core.js +2 -4
- package/band_sdk_core_bg.wasm +0 -0
- package/index.d.ts +1 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -55,8 +55,8 @@ exception class.
|
|
|
55
55
|
### Delivery-state runtime classes
|
|
56
56
|
|
|
57
57
|
`ClaimRegistry`, `RetryTracker`, `ParticipantRoster`, and `SubscriptionTracker` are the
|
|
58
|
-
inbound-delivery runtime state classes — lifecycle and design decisions
|
|
59
|
-
|
|
58
|
+
inbound-delivery runtime state classes — lifecycle and design decisions
|
|
59
|
+
live as rustdoc on each type in `crates/core/src/runtime/`.
|
|
60
60
|
|
|
61
61
|
A participant is any plain object; `add`/`setAll` read `id`, `name`,
|
|
62
62
|
`type`, `handle`, `description` from it and `list()` returns objects with
|
|
@@ -115,10 +115,8 @@ classify a WebSocket close code or HTTP upgrade-rejection status.
|
|
|
115
115
|
`Session` never sleeps, connects, or closes a socket itself — the caller
|
|
116
116
|
drives its own transport and reports what happened through `onConnected`/
|
|
117
117
|
`onSocketClose`/`onUpgradeRejected`/`onSupersede`. Its epoch tickets are
|
|
118
|
-
JavaScript `bigint` values, matching `SubscriptionTracker`'s.
|
|
119
|
-
|
|
120
|
-
[`runtime-state-policy.md`](https://github.com/band-ai/band-sdk-core/blob/main/crates/core/docs/runtime-state-policy.md)'s
|
|
121
|
-
`## Session` section.
|
|
118
|
+
JavaScript `bigint` values, matching `SubscriptionTracker`'s. Decisions
|
|
119
|
+
live as rustdoc in `crates/core/src/runtime/session.rs`.
|
|
122
120
|
|
|
123
121
|
### `Session` lifecycle
|
|
124
122
|
|
|
@@ -139,8 +137,8 @@ if (disconnected.retryAfterS === undefined) throw new Error("expected a retry de
|
|
|
139
137
|
|
|
140
138
|
### `validateMemoryTypeForSystem(system, type, traceContext?)`
|
|
141
139
|
|
|
142
|
-
Validates the canonical memory taxonomy — design decisions
|
|
143
|
-
|
|
140
|
+
Validates the canonical memory taxonomy — design decisions live as
|
|
141
|
+
rustdoc in `crates/core/src/memory.rs`.
|
|
144
142
|
`system` and `type` are wire-name strings (`MemorySystem`/`MemoryType` in
|
|
145
143
|
`index.d.ts` are string-literal types, not classes — there is no runtime
|
|
146
144
|
enum on this boundary, matching how `EventType` stays a plain string in
|
package/band_sdk_core.js
CHANGED
|
@@ -513,8 +513,7 @@ if (Symbol.dispose) RoomRoster.prototype[Symbol.dispose] = RoomRoster.prototype.
|
|
|
513
513
|
exports.RoomRoster = RoomRoster;
|
|
514
514
|
|
|
515
515
|
/**
|
|
516
|
-
* One WebSocket session's state machine.
|
|
517
|
-
* `docs/runtime-state-policy.md`'s `## Session` section.
|
|
516
|
+
* One WebSocket session's state machine.
|
|
518
517
|
*/
|
|
519
518
|
class Session {
|
|
520
519
|
__destroy_into_raw() {
|
|
@@ -704,8 +703,7 @@ exports.SessionOutcome = SessionOutcome;
|
|
|
704
703
|
|
|
705
704
|
/**
|
|
706
705
|
* Reconnect backoff/jitter policy, plus the graduated rapid-disconnect
|
|
707
|
-
* cooldown ladder.
|
|
708
|
-
* `## Session` section.
|
|
706
|
+
* cooldown ladder.
|
|
709
707
|
*/
|
|
710
708
|
class SessionPolicy {
|
|
711
709
|
static __wrap(ptr) {
|
package/band_sdk_core_bg.wasm
CHANGED
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -220,8 +220,7 @@ export interface SessionPolicyConfig {
|
|
|
220
220
|
|
|
221
221
|
/**
|
|
222
222
|
* Reconnect backoff/jitter policy, plus the graduated rapid-disconnect
|
|
223
|
-
* cooldown ladder. A recommended, not final, starting design
|
|
224
|
-
* `docs/runtime-state-policy.md`'s `## Session` section.
|
|
223
|
+
* cooldown ladder. A recommended, not final, starting design.
|
|
225
224
|
*
|
|
226
225
|
* Throws a native `Error` with `.issues`/`.traceContext` if `factor < 1.0`
|
|
227
226
|
* or `baseDelayS > maxDelayS`. Throws a plain `Error` if `config` is
|