@macula-io/ts 0.16.0 → 0.17.0

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 CHANGED
@@ -218,10 +218,10 @@ fixed) is in [CHANGELOG.md](CHANGELOG.md).
218
218
  `handler(payload)` for each (sync or async; `opts.bytes` as for
219
219
  `call()`). Resolves with an async
220
220
  `stop()` that unadvertises and waits for the current poll tick to
221
- finish. Only one `serve()` per `Session` at a time, and `call()`/
222
- `serve()` refuse to run concurrently on the same `Session` — both read
223
- frames off one shared control stream; open a second `Session` for the
224
- other role.
221
+ finish. Only one `serve()` per `Session` at a time, since a second would
222
+ answer CALLs meant for the first, and a `Session` takes one role at a
223
+ time: `call()` refuses while a `serve()` or `subscribe()` is active on
224
+ it. Open a second `Session` for the other role.
225
225
  - **DHT** — `session.findRecordsByType(recordType)`,
226
226
  `session.findRecords(key)`, `session.findRecord(key)`, and
227
227
  `session.putProcedureAdvertisement(procedure, servingStation, opts?)`/
@@ -243,8 +243,8 @@ fixed) is in [CHANGELOG.md](CHANGELOG.md).
243
243
  `subscribe()`d to.
244
244
  - **Content transfer** — `session.putContent(data, name?)` /
245
245
  `session.getContent(mcid)`, sent on their own dedicated QUIC stream
246
- (not the shared control stream, so they run safely alongside an active
247
- `serve()`/`subscribe()`). Data above 256 KiB is chunked and reassembled
246
+ (not the control stream, and outside the one-role rule, so they run
247
+ alongside an active `serve()`/`subscribe()`). Data above 256 KiB is chunked and reassembled
248
248
  automatically. `mcid` crosses the boundary as a lowercase hex string.
249
249
  **This is a one-time TRANSFER mechanism, not durable object storage** —
250
250
  a station may forget content after serving it, and there is no
@@ -283,8 +283,8 @@ fixed) is in [CHANGELOG.md](CHANGELOG.md).
283
283
  plain ADVERTISE and the signed DHT record on the same call — both are
284
284
  required for `resolveDirect()`+`callDirect()` to actually reach a live
285
285
  route. `resolveDirect`/`callDirect`/`callDirectWithUcan`/
286
- `advertiseDirect` share the same same-Session exclusivity guard as
287
- `call()`/the DHT methods; a long-lived provider that also serves the
286
+ `advertiseDirect` follow the same one-role rule as `call()`/the DHT
287
+ methods; a long-lived provider that also serves the
288
288
  same procedure needs a separate `Session` (and identity — this fleet
289
289
  enforces one connection per identity) to keep re-advertising on, which
290
290
  is why `keepAdvertisedDirect()` is a standalone function rather than a
@@ -332,7 +332,7 @@ slice of work built on top of a working `Session`.
332
332
 
333
333
  ```bash
334
334
  npx vitest run # default suite, no network
335
- npm run test:live # MACULA_TS_LIVE=1 vitest run src/session.live.test.ts src/rpc.live.test.ts src/dht.live.test.ts src/pubsub.live.test.ts src/content.live.test.ts src/ucan.live.test.ts src/directdial.live.test.ts src/pool.live.test.ts
335
+ MACULA_TS_LIVE_STATION=<station host> MACULA_TS_LIVE_OTHER_STATION=<another station host> npm run test:live
336
336
  ```
337
337
 
338
338
  `src/session.live.test.ts`, `src/rpc.live.test.ts`, `src/dht.live.test.ts`,
@@ -344,9 +344,18 @@ explicitly, gated behind `MACULA_TS_LIVE`. Same convention as macula-go's
344
344
  `live` build tag, macula-rust's `#[ignore]`, and macula-dotnet's
345
345
  `[Trait("Category","Live")]`: real-network tests are written and
346
346
  runnable, just excluded from the default/CI run so a station outage doesn't
347
- make ordinary CI flaky. `.github/workflows/ci.yml` exposes this as a
348
- manually-triggered (`workflow_dispatch`) job, never run automatically on
349
- push/PR.
347
+ make ordinary CI flaky. `.github/workflows/live.yml` runs them when dispatched
348
+ by hand (`workflow_dispatch`), never on push or PR. Its two required inputs name
349
+ the stations, and it loads the committed linux-x64 prebuild, the same `.node`
350
+ file the npm package ships, after checking its sha256 against the commit.
351
+
352
+ A live run names its stations: `MACULA_TS_LIVE_STATION` is the host every live
353
+ test uses, and `MACULA_TS_LIVE_OTHER_STATION` is the second station the pool's
354
+ multi-station test connects to. Neither has a default. With `MACULA_TS_LIVE`
355
+ set, a station that isn't set, or that no session can be opened to, fails the
356
+ tests with a message naming its variable instead of skipping them. When
357
+ `MACULA_TS_LIVE_WAITS` names a file, each wait for a station to register an
358
+ ADVERTISE or SUBSCRIBE is also recorded there.
350
359
 
351
360
  ## Packaging: genuinely zero install-time scripts
352
361
 
package/dist/content.js CHANGED
@@ -1,13 +1,12 @@
1
1
  // Content transfer -- macula-go's content package (Put/Get), thin
2
2
  // CALL/RESULT wrappers to reserved `_content.*` procedures sent on
3
3
  // their OWN dedicated QUIC stream (Session.OpenDedicatedStream on the
4
- // Go side), NOT the shared control stream call()/serve()/the DHT
5
- // methods/subscribe() all read from -- see cabi/content.go's own doc
6
- // for why Session.putContent()/getContent() (session.ts) are, unlike
7
- // those, never subject to Session's same-Session exclusivity guard, and
8
- // why two concurrent putContent()/getContent() calls on one Session
9
- // don't race each other either (each gets its own fresh dedicated
10
- // stream).
4
+ // Go side), NOT the control stream call()/serve()/the DHT
5
+ // methods/subscribe() all use -- see cabi/content.go's own doc for why
6
+ // Session.putContent()/getContent() (session.ts) are, unlike those, never
7
+ // subject to Session's one-role rule, and why two concurrent
8
+ // putContent()/getContent() calls on one Session don't race each other
9
+ // either (each gets its own fresh dedicated stream).
11
10
  //
12
11
  // IMPORTANT: this is a one-time TRANSFER mechanism, not durable object
13
12
  // storage. A station may forget content after serving it, there is no
@@ -1 +1 @@
1
- {"version":3,"file":"content.js","sourceRoot":"","sources":["../src/content.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,mEAAmE;AACnE,sEAAsE;AACtE,iEAAiE;AACjE,qEAAqE;AACrE,qEAAqE;AACrE,wEAAwE;AACxE,oEAAoE;AACpE,kEAAkE;AAClE,WAAW;AACX,EAAE;AACF,uEAAuE;AACvE,sEAAsE;AACtE,gEAAgE;AAChE,qEAAqE;AACrE,wEAAwE;AACxE,uEAAuE;AACvE,wDAAwD;AACxD,EAAE;AACF,kEAAkE;AAClE,wEAAwE;AACxE,iEAAiE;AACjE,qEAAqE;AACrE,mEAAmE;AACnE,sEAAsE;AACtE,4BAA4B;AAE5B;;;;;;;sDAOsD;AACtD,MAAM,OAAO,oBAAqB,SAAQ,KAAK;IAC7C;2CACuC;IAC9B,IAAI,CAAS;IAEtB,YAAY,IAAY;QACtB,KAAK,CAAC,wCAAwC,IAAI,EAAE,CAAC,CAAC;QACtD,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAC;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF"}
1
+ {"version":3,"file":"content.js","sourceRoot":"","sources":["../src/content.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,mEAAmE;AACnE,sEAAsE;AACtE,0DAA0D;AAC1D,uEAAuE;AACvE,0EAA0E;AAC1E,6DAA6D;AAC7D,uEAAuE;AACvE,qDAAqD;AACrD,EAAE;AACF,uEAAuE;AACvE,sEAAsE;AACtE,gEAAgE;AAChE,qEAAqE;AACrE,wEAAwE;AACxE,uEAAuE;AACvE,wDAAwD;AACxD,EAAE;AACF,kEAAkE;AAClE,wEAAwE;AACxE,iEAAiE;AACjE,qEAAqE;AACrE,mEAAmE;AACnE,sEAAsE;AACtE,4BAA4B;AAE5B;;;;;;;sDAOsD;AACtD,MAAM,OAAO,oBAAqB,SAAQ,KAAK;IAC7C;2CACuC;IAC9B,IAAI,CAAS;IAEtB,YAAY,IAAY;QACtB,KAAK,CAAC,wCAAwC,IAAI,EAAE,CAAC,CAAC;QACtD,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAC;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF"}
@@ -62,9 +62,9 @@ export interface KeepAdvertisedDirectOptions extends AdvertiseDirectOptions {
62
62
  * long-lived provider needs to call `AdvertiseDirect` again on its own
63
63
  * schedule, and it is this function's CALLER's job to decide WHICH
64
64
  * Session that runs on. See `Session.advertiseDirect()`'s own doc for why
65
- * that must NOT be a Session with an active `serve()` on it
66
- * (`advertiseDirect()`'s own `PutRecord` CALL would race `serve()`'s own
67
- * reads of the same shared control stream): a long-lived provider that
65
+ * that must NOT be a Session with an active `serve()` on it (a Session
66
+ * takes one role at a time, and `advertiseDirect()`'s own `PutRecord` is a
67
+ * CALL): a long-lived provider that
68
68
  * also serves `procedure` needs a SEPARATE Session (and identity -- this
69
69
  * fleet enforces one connection per identity, kicking whichever connects
70
70
  * second) for that, passed here instead of the serving Session.
@@ -37,9 +37,9 @@ export const KEEP_ADVERTISED_DIRECT_INTERVAL_MS = 15 * 60 * 1000;
37
37
  * long-lived provider needs to call `AdvertiseDirect` again on its own
38
38
  * schedule, and it is this function's CALLER's job to decide WHICH
39
39
  * Session that runs on. See `Session.advertiseDirect()`'s own doc for why
40
- * that must NOT be a Session with an active `serve()` on it
41
- * (`advertiseDirect()`'s own `PutRecord` CALL would race `serve()`'s own
42
- * reads of the same shared control stream): a long-lived provider that
40
+ * that must NOT be a Session with an active `serve()` on it (a Session
41
+ * takes one role at a time, and `advertiseDirect()`'s own `PutRecord` is a
42
+ * CALL): a long-lived provider that
43
43
  * also serves `procedure` needs a SEPARATE Session (and identity -- this
44
44
  * fleet enforces one connection per identity, kicking whichever connects
45
45
  * second) for that, passed here instead of the serving Session.
package/dist/pool.js CHANGED
@@ -15,24 +15,22 @@
15
15
  // Erlang's macula_client can put N tracked (Realm, Topic) subscriptions
16
16
  // (plus Call, plus Advertise) on ONE gen_server-owned link, because a BEAM
17
17
  // mailbox demuxes every message type for that one process regardless of how
18
- // many concerns it's juggling. This SDK's Session has no equivalent: its
19
- // underlying control stream supports exactly one concurrent reader --
20
- // `subscribe()` throws outright if called twice on the same Session
21
- // ("a second concurrent subscribe() on the same Session races; open a
22
- // second Session instead"), and `call()`/`serve()` are mutually exclusive
23
- // with an active subscribe on the same Session for the identical reason
24
- // (macula-go's FrameStream does a raw sequential read into a shared buffer,
25
- // no per-caller demux). Confirmed live 2026-09-04 while porting the Go side
26
- // of this same design: this is a wire-level constraint, not a TS-specific
27
- // gap -- macula-mcp already works around it today by giving lobby_observer.ts
28
- // a dedicated identity+Session PER ROOM TOPIC rather than multiplexing one
29
- // connection.
18
+ // many concerns it's juggling. This SDK's Session takes one role at a time:
19
+ // `subscribe()` throws outright if called twice on the same Session, and
20
+ // `call()`/`serve()` refuse to run beside an active subscribe on the same
21
+ // Session. The rule dates from macula-go's FrameStream doing a raw
22
+ // sequential read into a shared buffer with no per-caller demux (confirmed
23
+ // live 2026-09-04). macula-go v0.10.0, which this release embeds, routes
24
+ // each reply and event on one reader, but Session keeps its one-role rule
25
+ // in this release, so a pool link is still built around it -- as
26
+ // macula-mcp's lobby_observer.ts is, with a dedicated identity+Session PER
27
+ // ROOM TOPIC rather than multiplexing one connection.
30
28
  //
31
29
  // So a "link" to one station here is a small SET of role-scoped sessions,
32
30
  // not one session:
33
31
  // - one "control" session (this pool's own caller-supplied identity),
34
32
  // used for publish() and call() and NEVER subscribed on -- publish() is
35
- // write-only (explicitly unguarded by the exclusivity rule) and call()'s
33
+ // write-only (explicitly outside the one-role rule) and call()'s
36
34
  // own internal queue already serialises concurrent calls safely, so one
37
35
  // control session per station is enough regardless of call volume.
38
36
  // - one additional session PER CURRENTLY-TRACKED TOPIC, under an identity
@@ -45,8 +43,8 @@
45
43
  // backoff; a topic session dying just re-subscribes its own one topic on
46
44
  // respawn (no "replay N subscriptions onto a survivor" step needed, since
47
45
  // each session only ever carried one). A control link can't also carry a
48
- // liveness-only subscribe without reintroducing the exclusivity problem it
49
- // exists to avoid, and a failed call() genuinely does surface a dead
46
+ // liveness-only subscribe without breaking the one-role rule it exists to
47
+ // keep, and a failed call() genuinely does surface a dead
50
48
  // connection -- but publish() does not: found live 2026-09-04 that a
51
49
  // publish() attempt on a session the station had already kicked can still
52
50
  // locally "succeed" (the frame is handed off before the QUIC stack notices
package/dist/pool.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"pool.js","sourceRoot":"","sources":["../src/pool.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,0EAA0E;AAC1E,iEAAiE;AACjE,kEAAkE;AAClE,6EAA6E;AAC7E,0EAA0E;AAC1E,4EAA4E;AAC5E,8EAA8E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AAE,GAAG,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;QAC7F,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC;QAC5B,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC;IAClC,CAAC;CACF"}
package/dist/session.d.ts CHANGED
@@ -117,13 +117,10 @@ export declare class Session {
117
117
  *
118
118
  * Real network I/O -- a signed frame out and a wait for the reply,
119
119
  * up to opts.deadlineMs -- so this runs off the main thread on the
120
- * native side, like connect()/close(). Do not call this
121
- * concurrently with an active serve() on the SAME Session: both read
122
- * frames off the one shared control stream, and macula-go's own
123
- * ServeOneCall/Call docs both warn that mixing roles on one
124
- * connection races (an unrelated frame arriving first is discarded,
125
- * not queued) -- open a second Session for the other role instead,
126
- * exactly what this SDK's own live test does. */
120
+ * native side, like connect()/close(). Rejects while a serve() or
121
+ * subscribe() is active on the SAME Session (#requireHandleNotServing):
122
+ * a Session takes one role at a time, so open a second Session for the
123
+ * other role, exactly what this SDK's own live test does. */
127
124
  call(procedure: string, payload: JsonValue, opts?: CallOptions): Promise<JsonValue>;
128
125
  /** Caller role: call(), attaching `ucanToken` to the outgoing CALL
129
126
  * (macula-go's `connection.Session.CallWithUCAN`) -- for invoking a
@@ -150,9 +147,8 @@ export declare class Session {
150
147
  * security property that isn't actually enforced.
151
148
  *
152
149
  * Real network I/O, off the main thread on the native side, and
153
- * subject to the identical same-Session exclusivity rule as `call()`
154
- * (`#requireHandleNotServing`) -- both end up on the same shared
155
- * control stream. */
150
+ * subject to the same one-role check as `call()`
151
+ * (`#requireHandleNotServing`). */
156
152
  callWithUcan(procedure: string, payload: JsonValue, ucanToken: string | Ucan, opts?: CallOptions): Promise<JsonValue>;
157
153
  /** Provider role: advertises `procedure` (macula-go's
158
154
  * connection.Session.Advertise) and answers inbound CALLs against it
@@ -166,11 +162,15 @@ export declare class Session {
166
162
  * between this and the JS handler) would map to
167
163
  * TemporaryRelayFailure, per that same file.
168
164
  *
169
- * Only one serve() registration is allowed per Session at a time --
170
- * see call()'s own doc on why mixing roles (or two server loops) on
171
- * one connection is unsafe, not just inadvisable; open a second
172
- * Session for a second procedure instead of trying to serve two
173
- * procedures off one.
165
+ * Only one serve() registration is allowed per Session at a time: each
166
+ * poll tick takes the next inbound CALL from the session's one queue
167
+ * (macula-go's ServeOneCall) and answers a CALL for a procedure it
168
+ * doesn't serve with unknown_next_peer, so a second serve() would answer
169
+ * CALLs meant for the first. Open a second Session for a second
170
+ * procedure instead of trying to serve two procedures off one. serve()
171
+ * also refuses while a subscribe() is active on the same Session, and
172
+ * call()/the DHT methods refuse while a serve() is (the one-role rule,
173
+ * #requireHandleNotServing).
174
174
  *
175
175
  * `opts.bytes` picks how bytes in each inbound CALL's payload reach
176
176
  * `handler`: "hex" (the default) or "tagged" (rpc.ts's BytesOutput).
@@ -194,9 +194,9 @@ export declare class Session {
194
194
  * signature or checks its expiry -- see DhtRecord's own doc (dht.ts).
195
195
  *
196
196
  * Real network I/O, off the main thread on the native side, exactly
197
- * like call() -- and subject to the same same-Session exclusivity
198
- * rule as call() (see #requireHandleNotServing's own doc): do not
199
- * call this while serve() is active on the same Session. */
197
+ * like call() -- and subject to the same one-role rule as call() (see
198
+ * #requireHandleNotServing's own doc): it refuses while a serve() or
199
+ * subscribe() is active on the same Session. */
200
200
  findRecordsByType(recordType: DhtRecordType | number): Promise<DhtRecord[]>;
201
201
  /** DHT: returns every record stored at `key` -- the full
202
202
  * signer-deduped multiset at that storage key (macula-go's
@@ -204,14 +204,14 @@ export declare class Session {
204
204
  * procedure, not just the first one found. `key` must be exactly 32
205
205
  * bytes -- see dht/record.go's ProcedureKey/StationEndpointKey/
206
206
  * ContentKey (macula-go) for how those are derived from the thing
207
- * being looked up. Same I/O and exclusivity notes as
207
+ * being looked up. Same I/O and one-role notes as
208
208
  * findRecordsByType(). */
209
209
  findRecords(key: Uint8Array): Promise<DhtRecord[]>;
210
210
  /** DHT: returns ONE record by storage key (macula-go's
211
211
  * dht.FindRecord). Resolves `null` when none exists -- mirrors
212
212
  * macula-go's own dht.ErrNotFound, translated to a value instead of a
213
213
  * thrown error since "not found" is an expected, routine outcome
214
- * here, not exceptional. Same I/O and exclusivity notes as
214
+ * here, not exceptional. Same I/O and one-role notes as
215
215
  * findRecordsByType(). */
216
216
  findRecord(key: Uint8Array): Promise<DhtRecord | null>;
217
217
  /** DHT: builds the realm-qualified discovery URI (macula-go's
@@ -248,7 +248,7 @@ export declare class Session {
248
248
  * silently becomes CBOR text. Typed arguments rule that mistake out
249
249
  * (see DhtRecord's own doc). `ttlMs` defaults to DHT_DEFAULT_TTL_MS
250
250
  * (48h). Resolves with the signed record actually stored. Same I/O
251
- * and exclusivity notes as findRecordsByType(). */
251
+ * and one-role notes as findRecordsByType(). */
252
252
  putProcedureAdvertisement(procedure: string, servingStation: Uint8Array, opts?: {
253
253
  realm?: Uint8Array;
254
254
  ttlMs?: number;
@@ -261,7 +261,7 @@ export declare class Session {
261
261
  * own doc for wrapping macula-go's real constructor instead of a
262
262
  * generic JSON-payload builder (announcer_node/mcid are the same kind
263
263
  * of raw-byte field). `ttlMs` defaults to DHT_DEFAULT_TTL_MS (48h).
264
- * Same I/O and exclusivity notes as findRecordsByType(). */
264
+ * Same I/O and one-role notes as findRecordsByType(). */
265
265
  putContentAnnouncement(mcid: Uint8Array, endpoint: string, ttlMs?: number): Promise<DhtRecord>;
266
266
  /** Direct-dial (caller side): finds `procedure`'s currently-advertised
267
267
  * serving station and its dialable host/port (macula-go's
@@ -284,7 +284,7 @@ export declare class Session {
284
284
  * diagnostics).
285
285
  *
286
286
  * Real network I/O, off the main thread on the native side, subject to
287
- * the same same-Session exclusivity rule as `call()`/the DHT methods
287
+ * the same one-role rule as `call()`/the DHT methods
288
288
  * (`#requireHandleNotServing`). */
289
289
  resolveDirect(procedure: string, opts?: {
290
290
  realm?: string;
@@ -309,9 +309,9 @@ export declare class Session {
309
309
  *
310
310
  * Real network I/O (DHT lookups, a fresh QUIC dial, then the CALL
311
311
  * itself) -- off the main thread on the native side, subject to the
312
- * same same-Session exclusivity rule as `call()` for THIS Session's own
313
- * DHT-querying use (the separate dialed connection this opens
314
- * internally is not this Session and is never exposed as one). */
312
+ * same one-role rule as `call()` for THIS Session's own DHT-querying use
313
+ * (the separate dialed connection this opens internally is not this
314
+ * Session and is never exposed as one). */
315
315
  callDirect(procedure: string, payload: JsonValue, opts?: CallOptions): Promise<JsonValue>;
316
316
  /** Direct-dial (caller side): `callDirect()`, attaching `ucanToken` to
317
317
  * the outgoing CALL (macula-go's `directdial.CallWithUCAN`) -- for
@@ -324,7 +324,7 @@ export declare class Session {
324
324
  * method's and ucan.ts's own doc for why: macula's UCAN gate is a
325
325
  * bearer-token check, not an audience match).
326
326
  *
327
- * Same I/O and exclusivity notes as `callDirect()`. */
327
+ * Same I/O and one-role notes as `callDirect()`. */
328
328
  callDirectWithUcan(procedure: string, payload: JsonValue, ucanToken: string | Ucan, opts?: CallOptions): Promise<JsonValue>;
329
329
  /** Direct-dial (provider side): publishes `procedure` as
330
330
  * direct-dial-reachable at THIS Session's own currently-connected
@@ -351,10 +351,8 @@ export declare class Session {
351
351
  *
352
352
  * **Must NOT be called on a Session that is also actively
353
353
  * `serve()`-ing** -- enforced by the same `#requireHandleNotServing`
354
- * guard `call()`/the DHT methods use, for the identical reason: this
355
- * method's own `PutRecord` CALL reads a RESULT off the same shared
356
- * control stream `serve()`'s poll loop is also reading, and the two
357
- * would race (matches `directdial.AdvertiseDirect`'s own doc). A
354
+ * one-role check `call()`/the DHT methods use, since this method's own
355
+ * `PutRecord` is a CALL. A
358
356
  * provider that also serves `procedure` needs a SEPARATE Session (and
359
357
  * identity -- this fleet enforces one connection per identity, kicking
360
358
  * whichever connects second) to call this on.
@@ -375,13 +373,11 @@ export declare class Session {
375
373
  * observes a subscriber's own publish arriving back at it rather than
376
374
  * asserting it as a hard guarantee, for the same reason).
377
375
  *
378
- * Deliberately NOT guarded by the same-Session exclusivity rule
379
- * call()/serve()/subscribe()/the DHT methods share (see
380
- * #requireHandleNotServing's own doc) -- publish() only ever writes,
381
- * never reads off the shared control stream, so it does not race a
382
- * concurrent serve()/subscribe() the way those do, and can run safely
383
- * on the SAME Session a subscribe() of its own is active on -- exactly
384
- * what a subscriber publishing to (and receiving) its own topic needs.
376
+ * Deliberately NOT subject to the one-role rule call()/serve()/
377
+ * subscribe()/the DHT methods share (see #requireHandleNotServing's own
378
+ * doc) -- publish() only ever writes, so it runs on the SAME Session a
379
+ * subscribe() of its own is active on -- exactly what a subscriber
380
+ * publishing to (and receiving) its own topic needs.
385
381
  *
386
382
  * `opts.realm` (see CallOptions.realm's own doc for the hex-string
387
383
  * format and exact-match semantics) scopes which realm this EVENT is
@@ -394,21 +390,18 @@ export declare class Session {
394
390
  * here. */
395
391
  publish(topic: string, payload: JsonValue, opts?: PublishOptions): Promise<void>;
396
392
  /** Pubsub: sends a signed SUBSCRIBE for `topic`, then delivers every
397
- * inbound EVENT for it to `handler` -- macula-go's own
398
- * connection.Session.RunSubscriber (connection/subscriber.go) drives
399
- * the actual read loop on the Go side, in a background goroutine, NOT
400
- * reimplemented on top of a hand-rolled poll here (see cabi/pubsub.go's
401
- * own doc for why RunSubscriber specifically, over the lower-level
402
- * RecvEvent). Delivery is Go-driven, not JS-driven: unlike serve()'s
393
+ * inbound EVENT for it to `handler` -- a background goroutine on the Go
394
+ * side reads the macula-go connection.Subscription that SUBSCRIBE
395
+ * opened (see cabi/pubsub.go's own doc for why the SUBSCRIBE goes out
396
+ * before that goroutine starts). Delivery is Go-driven, not JS-driven:
397
+ * unlike serve()'s
403
398
  * poll loop, nothing on this side calls into the native layer
404
399
  * repeatedly to ask "did anything arrive yet" -- the addon calls INTO
405
400
  * this handler asynchronously, via a Napi::ThreadSafeFunction wired to
406
401
  * that background goroutine, whenever an EVENT actually shows up.
407
402
  *
408
403
  * Only one subscribe() (and no active serve()) is allowed per Session
409
- * at a time -- same reasoning as serve()'s own one-at-a-time rule
410
- * (#requireHandleNotServing's own doc): the background reader and any
411
- * other read off this Session's shared control stream would race.
404
+ * at a time -- the one-role rule (#requireHandleNotServing's own doc).
412
405
  * Open a second Session for a second topic (or to serve/call
413
406
  * concurrently) instead.
414
407
  *
@@ -443,8 +436,8 @@ export declare class Session {
443
436
  subscribe(topic: string, handler: (evt: PubsubEvent) => void, opts?: SubscribeOptions): Promise<() => Promise<void>>;
444
437
  /** Content transfer: stores `data` (macula-go's content.Put, on this
445
438
  * Session's own fresh dedicated QUIC stream -- Session.
446
- * OpenDedicatedStream on the Go side, NOT the shared control stream
447
- * call()/serve()/the DHT methods/subscribe() all read from), chunking
439
+ * OpenDedicatedStream on the Go side, NOT the control stream
440
+ * call()/serve()/the DHT methods/subscribe() all use), chunking
448
441
  * automatically above manifest.DefaultChunkSize (256 KiB) and
449
442
  * returning the hex-encoded mcid it's now addressable by. `name` is
450
443
  * used ONLY on the chunked path (attached to the resulting manifest)
@@ -455,12 +448,11 @@ export declare class Session {
455
448
  * station may forget this content later, and there is no list/delete
456
449
  * operation. Treat this as "hand these bytes to a peer once."
457
450
  *
458
- * Because Put opens its own dedicated stream instead of reading the
459
- * shared control stream, this is, unlike call()/serve()/the DHT
460
- * methods/subscribe(), never subject to Session's same-Session
461
- * exclusivity guard (#requireHandleNotServing) -- it can run
462
- * concurrently with an active serve()/subscribe() (or another
463
- * putContent()/getContent()) on the same Session without racing.
451
+ * Because Put opens its own dedicated stream, this is, unlike call()/
452
+ * serve()/the DHT methods/subscribe(), never subject to Session's
453
+ * one-role rule (#requireHandleNotServing) -- it can run concurrently
454
+ * with an active serve()/subscribe() (or another putContent()/
455
+ * getContent()) on the same Session.
464
456
  *
465
457
  * Real network I/O (one or more signed CALLs on the new stream) --
466
458
  * runs off the main thread on the native side, like every other
@@ -482,8 +474,8 @@ export declare class Session {
482
474
  * (a bad session, a malformed mcid, a real transport error) rejects
483
475
  * with a plain Error instead.
484
476
  *
485
- * Same dedicated-stream, no-exclusivity-guard reasoning as
486
- * putContent() -- safe alongside an active serve()/subscribe() on the
487
- * same Session. Real network I/O, runs off the main thread. */
477
+ * Not subject to the one-role rule, for the same dedicated-stream
478
+ * reason as putContent() -- safe alongside an active serve()/subscribe()
479
+ * on the same Session. Real network I/O, runs off the main thread. */
488
480
  getContent(mcid: string): Promise<Uint8Array>;
489
481
  }
package/dist/session.js CHANGED
@@ -50,26 +50,20 @@ export class Session {
50
50
  #identity;
51
51
  #activeServe = null;
52
52
  #activeSubscription = null;
53
- // Serializes every operation that reads this Session's shared
54
- // control stream: call()/callWithUcan()/the DHT methods, plus
55
- // serve()'s advertise + each poll tick + unadvertise, plus
56
- // subscribe()'s start + stop. macula-go's connection/frame_stream.go
57
- // RecvFrame mutates a shared buffer with no mutex of its own, so two
58
- // reads racing it corrupt the stream -- verified live: `Promise.all`
59
- // of 4 concurrent call()s on one Session left EVERY later read on
60
- // that same Session permanently failing "claimed frame length ...
61
- // exceeds the 16777215-byte cap" (a torn buffer), not just that one
62
- // batch. The `#activeServe`/`#activeSubscription` checks above only
63
- // ever protected call()-family operations from an ACTIVE serve()/
64
- // subscribe() -- they did nothing to stop two ordinary call()s (or a
65
- // call() racing a DHT method) from racing each other, since neither
66
- // flag is set in that case. This queue is what actually closes that
67
- // gap: every control-stream-reading native call funnels through
68
- // #enqueue, so only one is ever in flight at a time, regardless of
69
- // which method it came from. publish()/putContent()/getContent() do
70
- // NOT go through this -- see their own docs for why (a pure write,
71
- // and each own dedicated QUIC stream, respectively -- neither reads
72
- // this shared stream at all).
53
+ // Serializes every native call that uses this Session's control
54
+ // stream: call()/callWithUcan()/the DHT methods, plus serve()'s
55
+ // advertise, each poll tick and unadvertise, plus subscribe()'s start
56
+ // and stop, so only one of them is in flight at a time. It was added
57
+ // when macula-go read the control stream without a lock, so two reads
58
+ // racing it corrupted the stream -- verified live: `Promise.all` of 4
59
+ // concurrent call()s on one Session left EVERY later read on that
60
+ // Session permanently failing "claimed frame length ... exceeds the
61
+ // 16777215-byte cap". macula-go v0.10.0, which this release embeds,
62
+ // reads the control stream on one goroutine and routes each reply,
63
+ // event and inbound CALL to what is waiting for it, so concurrent calls
64
+ // no longer race; this release keeps the queue as it was.
65
+ // publish()/putContent()/getContent() do NOT go through it -- see their
66
+ // own docs (a pure write, and each own dedicated QUIC stream).
73
67
  #queue = Promise.resolve();
74
68
  #enqueue(fn) {
75
69
  const result = this.#queue.then(fn, fn);
@@ -108,31 +102,27 @@ export class Session {
108
102
  }
109
103
  return this.#handle;
110
104
  }
111
- /** call()'s own handle-plus-exclusivity guard, factored out since the
112
- * DHT methods below (findRecord/findRecords/findRecordsByType/
113
- * putRecord) all end up on this Session's same shared control stream
114
- * too -- macula-go's dht.FindRecord et al. are themselves just a
115
- * connection.Session.Call under the hood (see cabi/dht.go), so mixing
116
- * one of these with an active serve() OR subscribe() on this Session
117
- * races exactly the way call() itself would: serve()'s poll loop and
118
- * subscribe()'s background reader both read frames off this same
119
- * stream on their own schedule, same as call()'s own blocking read
120
- * does. publish() is deliberately NOT guarded by this: it only ever
121
- * WRITES a fire-and-forget frame (connection.Session.Publish), never
122
- * reads, so it does not race a concurrent reader the way call()/
123
- * serve()/subscribe()/the DHT methods do -- and the live pubsub round
124
- * trip this SDK's own test performs (subscribe(), then publish() on
125
- * the SAME Session while that subscription is active) depends on
126
- * publish() staying unguarded here. */
105
+ /** call()'s own handle-plus-one-role check, factored out since the DHT
106
+ * methods below and the direct-dial methods are CALLs too (macula-go's
107
+ * dht.FindRecord et al. are a connection.Session.Call under the hood,
108
+ * see cabi/dht.go). A Session takes one role at a time: calls, one
109
+ * serve(), or one subscribe(). macula-go v0.10.0 routes each reply,
110
+ * event and inbound CALL on its own, so a call beside a serve() or
111
+ * subscribe() no longer races; this release keeps the check as it was.
112
+ * publish() is deliberately NOT checked: it only ever WRITES a
113
+ * fire-and-forget frame (connection.Session.Publish), and the live
114
+ * pubsub round trip this SDK's own test performs (subscribe(), then
115
+ * publish() on the SAME Session while that subscription is active)
116
+ * depends on publish() staying unchecked here. */
127
117
  #requireHandleNotServing(caller) {
128
118
  const handle = this.#requireHandle();
129
119
  if (this.#activeServe !== null) {
130
120
  throw new Error(`macula-ts: Session.${caller}() while serve("${this.#activeServe.procedure}") is active on the same ` +
131
- `Session races on the shared control stream -- open a second Session for the other role.`);
121
+ `Session is not supported -- open a second Session for the other role.`);
132
122
  }
133
123
  if (this.#activeSubscription !== null) {
134
124
  throw new Error(`macula-ts: Session.${caller}() while subscribe("${this.#activeSubscription.topic}") is active on the ` +
135
- `same Session races on the shared control stream -- open a second Session for the other role.`);
125
+ `same Session is not supported -- open a second Session for the other role.`);
136
126
  }
137
127
  return handle;
138
128
  }
@@ -210,13 +200,10 @@ export class Session {
210
200
  *
211
201
  * Real network I/O -- a signed frame out and a wait for the reply,
212
202
  * up to opts.deadlineMs -- so this runs off the main thread on the
213
- * native side, like connect()/close(). Do not call this
214
- * concurrently with an active serve() on the SAME Session: both read
215
- * frames off the one shared control stream, and macula-go's own
216
- * ServeOneCall/Call docs both warn that mixing roles on one
217
- * connection races (an unrelated frame arriving first is discarded,
218
- * not queued) -- open a second Session for the other role instead,
219
- * exactly what this SDK's own live test does. */
203
+ * native side, like connect()/close(). Rejects while a serve() or
204
+ * subscribe() is active on the SAME Session (#requireHandleNotServing):
205
+ * a Session takes one role at a time, so open a second Session for the
206
+ * other role, exactly what this SDK's own live test does. */
220
207
  async call(procedure, payload, opts = {}) {
221
208
  const handle = this.#requireHandleNotServing("call");
222
209
  const timeoutMs = opts.deadlineMs ?? DEFAULT_CALL_TIMEOUT_MS;
@@ -254,9 +241,8 @@ export class Session {
254
241
  * security property that isn't actually enforced.
255
242
  *
256
243
  * Real network I/O, off the main thread on the native side, and
257
- * subject to the identical same-Session exclusivity rule as `call()`
258
- * (`#requireHandleNotServing`) -- both end up on the same shared
259
- * control stream. */
244
+ * subject to the same one-role check as `call()`
245
+ * (`#requireHandleNotServing`). */
260
246
  async callWithUcan(procedure, payload, ucanToken, opts = {}) {
261
247
  const handle = this.#requireHandleNotServing("callWithUcan");
262
248
  const timeoutMs = opts.deadlineMs ?? DEFAULT_CALL_TIMEOUT_MS;
@@ -282,11 +268,15 @@ export class Session {
282
268
  * between this and the JS handler) would map to
283
269
  * TemporaryRelayFailure, per that same file.
284
270
  *
285
- * Only one serve() registration is allowed per Session at a time --
286
- * see call()'s own doc on why mixing roles (or two server loops) on
287
- * one connection is unsafe, not just inadvisable; open a second
288
- * Session for a second procedure instead of trying to serve two
289
- * procedures off one.
271
+ * Only one serve() registration is allowed per Session at a time: each
272
+ * poll tick takes the next inbound CALL from the session's one queue
273
+ * (macula-go's ServeOneCall) and answers a CALL for a procedure it
274
+ * doesn't serve with unknown_next_peer, so a second serve() would answer
275
+ * CALLs meant for the first. Open a second Session for a second
276
+ * procedure instead of trying to serve two procedures off one. serve()
277
+ * also refuses while a subscribe() is active on the same Session, and
278
+ * call()/the DHT methods refuse while a serve() is (the one-role rule,
279
+ * #requireHandleNotServing).
290
280
  *
291
281
  * `opts.bytes` picks how bytes in each inbound CALL's payload reach
292
282
  * `handler`: "hex" (the default) or "tagged" (rpc.ts's BytesOutput).
@@ -302,13 +292,13 @@ export class Session {
302
292
  async serve(procedure, handler, opts = {}) {
303
293
  const bytesMode = bytesModeFor(opts.bytes);
304
294
  if (this.#activeServe !== null) {
305
- throw new Error(`macula-ts: Session is already serving "${this.#activeServe.procedure}" -- macula-go's ServeOneCall reads ` +
306
- `one frame at a time off the shared control stream, so a second concurrent serve() (or a serve() ` +
307
- `alongside call()) on the same Session races; open a second Session instead.`);
295
+ throw new Error(`macula-ts: Session is already serving "${this.#activeServe.procedure}" -- a second serve() on the ` +
296
+ `same Session would answer CALLs meant for the first, since each serve() takes the next inbound CALL ` +
297
+ `from the session's one queue; open a second Session instead.`);
308
298
  }
309
299
  if (this.#activeSubscription !== null) {
310
300
  throw new Error(`macula-ts: Session.serve() while subscribe("${this.#activeSubscription.topic}") is active on the same ` +
311
- `Session races on the shared control stream -- open a second Session for the other role.`);
301
+ `Session is not supported -- open a second Session for the other role.`);
312
302
  }
313
303
  const handle = this.#requireHandle();
314
304
  const identityHandle = this.#identity.handleForFfi();
@@ -386,9 +376,9 @@ export class Session {
386
376
  * signature or checks its expiry -- see DhtRecord's own doc (dht.ts).
387
377
  *
388
378
  * Real network I/O, off the main thread on the native side, exactly
389
- * like call() -- and subject to the same same-Session exclusivity
390
- * rule as call() (see #requireHandleNotServing's own doc): do not
391
- * call this while serve() is active on the same Session. */
379
+ * like call() -- and subject to the same one-role rule as call() (see
380
+ * #requireHandleNotServing's own doc): it refuses while a serve() or
381
+ * subscribe() is active on the same Session. */
392
382
  async findRecordsByType(recordType) {
393
383
  const handle = this.#requireHandleNotServing("findRecordsByType");
394
384
  const json = await this.#enqueue(() => native.dhtFindRecordsByType(handle, this.#identity.handleForFfi(), recordType));
@@ -400,7 +390,7 @@ export class Session {
400
390
  * procedure, not just the first one found. `key` must be exactly 32
401
391
  * bytes -- see dht/record.go's ProcedureKey/StationEndpointKey/
402
392
  * ContentKey (macula-go) for how those are derived from the thing
403
- * being looked up. Same I/O and exclusivity notes as
393
+ * being looked up. Same I/O and one-role notes as
404
394
  * findRecordsByType(). */
405
395
  async findRecords(key) {
406
396
  const handle = this.#requireHandleNotServing("findRecords");
@@ -412,7 +402,7 @@ export class Session {
412
402
  * dht.FindRecord). Resolves `null` when none exists -- mirrors
413
403
  * macula-go's own dht.ErrNotFound, translated to a value instead of a
414
404
  * thrown error since "not found" is an expected, routine outcome
415
- * here, not exceptional. Same I/O and exclusivity notes as
405
+ * here, not exceptional. Same I/O and one-role notes as
416
406
  * findRecordsByType(). */
417
407
  async findRecord(key) {
418
408
  const handle = this.#requireHandleNotServing("findRecord");
@@ -454,7 +444,7 @@ export class Session {
454
444
  * silently becomes CBOR text. Typed arguments rule that mistake out
455
445
  * (see DhtRecord's own doc). `ttlMs` defaults to DHT_DEFAULT_TTL_MS
456
446
  * (48h). Resolves with the signed record actually stored. Same I/O
457
- * and exclusivity notes as findRecordsByType(). */
447
+ * and one-role notes as findRecordsByType(). */
458
448
  async putProcedureAdvertisement(procedure, servingStation, opts = {}) {
459
449
  const handle = this.#requireHandleNotServing("putProcedureAdvertisement");
460
450
  requireKey32(servingStation);
@@ -471,7 +461,7 @@ export class Session {
471
461
  * own doc for wrapping macula-go's real constructor instead of a
472
462
  * generic JSON-payload builder (announcer_node/mcid are the same kind
473
463
  * of raw-byte field). `ttlMs` defaults to DHT_DEFAULT_TTL_MS (48h).
474
- * Same I/O and exclusivity notes as findRecordsByType(). */
464
+ * Same I/O and one-role notes as findRecordsByType(). */
475
465
  async putContentAnnouncement(mcid, endpoint, ttlMs = DHT_DEFAULT_TTL_MS) {
476
466
  const handle = this.#requireHandleNotServing("putContentAnnouncement");
477
467
  if (mcid.length !== 34) {
@@ -501,7 +491,7 @@ export class Session {
501
491
  * diagnostics).
502
492
  *
503
493
  * Real network I/O, off the main thread on the native side, subject to
504
- * the same same-Session exclusivity rule as `call()`/the DHT methods
494
+ * the same one-role rule as `call()`/the DHT methods
505
495
  * (`#requireHandleNotServing`). */
506
496
  async resolveDirect(procedure, opts = {}) {
507
497
  if (opts.deadlineMs !== undefined && !(opts.deadlineMs > 0)) {
@@ -532,9 +522,9 @@ export class Session {
532
522
  *
533
523
  * Real network I/O (DHT lookups, a fresh QUIC dial, then the CALL
534
524
  * itself) -- off the main thread on the native side, subject to the
535
- * same same-Session exclusivity rule as `call()` for THIS Session's own
536
- * DHT-querying use (the separate dialed connection this opens
537
- * internally is not this Session and is never exposed as one). */
525
+ * same one-role rule as `call()` for THIS Session's own DHT-querying use
526
+ * (the separate dialed connection this opens internally is not this
527
+ * Session and is never exposed as one). */
538
528
  async callDirect(procedure, payload, opts = {}) {
539
529
  const handle = this.#requireHandleNotServing("callDirect");
540
530
  const timeoutMs = opts.deadlineMs ?? DEFAULT_CALL_TIMEOUT_MS;
@@ -558,7 +548,7 @@ export class Session {
558
548
  * method's and ucan.ts's own doc for why: macula's UCAN gate is a
559
549
  * bearer-token check, not an audience match).
560
550
  *
561
- * Same I/O and exclusivity notes as `callDirect()`. */
551
+ * Same I/O and one-role notes as `callDirect()`. */
562
552
  async callDirectWithUcan(procedure, payload, ucanToken, opts = {}) {
563
553
  const handle = this.#requireHandleNotServing("callDirectWithUcan");
564
554
  const timeoutMs = opts.deadlineMs ?? DEFAULT_CALL_TIMEOUT_MS;
@@ -597,10 +587,8 @@ export class Session {
597
587
  *
598
588
  * **Must NOT be called on a Session that is also actively
599
589
  * `serve()`-ing** -- enforced by the same `#requireHandleNotServing`
600
- * guard `call()`/the DHT methods use, for the identical reason: this
601
- * method's own `PutRecord` CALL reads a RESULT off the same shared
602
- * control stream `serve()`'s poll loop is also reading, and the two
603
- * would race (matches `directdial.AdvertiseDirect`'s own doc). A
590
+ * one-role check `call()`/the DHT methods use, since this method's own
591
+ * `PutRecord` is a CALL. A
604
592
  * provider that also serves `procedure` needs a SEPARATE Session (and
605
593
  * identity -- this fleet enforces one connection per identity, kicking
606
594
  * whichever connects second) to call this on.
@@ -625,13 +613,11 @@ export class Session {
625
613
  * observes a subscriber's own publish arriving back at it rather than
626
614
  * asserting it as a hard guarantee, for the same reason).
627
615
  *
628
- * Deliberately NOT guarded by the same-Session exclusivity rule
629
- * call()/serve()/subscribe()/the DHT methods share (see
630
- * #requireHandleNotServing's own doc) -- publish() only ever writes,
631
- * never reads off the shared control stream, so it does not race a
632
- * concurrent serve()/subscribe() the way those do, and can run safely
633
- * on the SAME Session a subscribe() of its own is active on -- exactly
634
- * what a subscriber publishing to (and receiving) its own topic needs.
616
+ * Deliberately NOT subject to the one-role rule call()/serve()/
617
+ * subscribe()/the DHT methods share (see #requireHandleNotServing's own
618
+ * doc) -- publish() only ever writes, so it runs on the SAME Session a
619
+ * subscribe() of its own is active on -- exactly what a subscriber
620
+ * publishing to (and receiving) its own topic needs.
635
621
  *
636
622
  * `opts.realm` (see CallOptions.realm's own doc for the hex-string
637
623
  * format and exact-match semantics) scopes which realm this EVENT is
@@ -649,21 +635,18 @@ export class Session {
649
635
  await native.sessionPublish(handle, this.#identity.handleForFfi(), realm, topic, payloadJson, opts.ttlMs ?? 0);
650
636
  }
651
637
  /** Pubsub: sends a signed SUBSCRIBE for `topic`, then delivers every
652
- * inbound EVENT for it to `handler` -- macula-go's own
653
- * connection.Session.RunSubscriber (connection/subscriber.go) drives
654
- * the actual read loop on the Go side, in a background goroutine, NOT
655
- * reimplemented on top of a hand-rolled poll here (see cabi/pubsub.go's
656
- * own doc for why RunSubscriber specifically, over the lower-level
657
- * RecvEvent). Delivery is Go-driven, not JS-driven: unlike serve()'s
638
+ * inbound EVENT for it to `handler` -- a background goroutine on the Go
639
+ * side reads the macula-go connection.Subscription that SUBSCRIBE
640
+ * opened (see cabi/pubsub.go's own doc for why the SUBSCRIBE goes out
641
+ * before that goroutine starts). Delivery is Go-driven, not JS-driven:
642
+ * unlike serve()'s
658
643
  * poll loop, nothing on this side calls into the native layer
659
644
  * repeatedly to ask "did anything arrive yet" -- the addon calls INTO
660
645
  * this handler asynchronously, via a Napi::ThreadSafeFunction wired to
661
646
  * that background goroutine, whenever an EVENT actually shows up.
662
647
  *
663
648
  * Only one subscribe() (and no active serve()) is allowed per Session
664
- * at a time -- same reasoning as serve()'s own one-at-a-time rule
665
- * (#requireHandleNotServing's own doc): the background reader and any
666
- * other read off this Session's shared control stream would race.
649
+ * at a time -- the one-role rule (#requireHandleNotServing's own doc).
667
650
  * Open a second Session for a second topic (or to serve/call
668
651
  * concurrently) instead.
669
652
  *
@@ -698,12 +681,11 @@ export class Session {
698
681
  async subscribe(topic, handler, opts = {}) {
699
682
  if (this.#activeServe !== null) {
700
683
  throw new Error(`macula-ts: Session.subscribe() while serve("${this.#activeServe.procedure}") is active on the same ` +
701
- `Session races on the shared control stream -- open a second Session for the other role.`);
684
+ `Session is not supported -- open a second Session for the other role.`);
702
685
  }
703
686
  if (this.#activeSubscription !== null) {
704
- throw new Error(`macula-ts: Session is already subscribed to "${this.#activeSubscription.topic}" -- macula-go's ` +
705
- `RunSubscriber reads one frame at a time off the shared control stream, so a second concurrent ` +
706
- `subscribe() on the same Session races; open a second Session instead.`);
687
+ throw new Error(`macula-ts: Session is already subscribed to "${this.#activeSubscription.topic}" -- one ` +
688
+ `subscribe() per Session is supported; open a second Session instead.`);
707
689
  }
708
690
  const handle = this.#requireHandle();
709
691
  const identityHandle = this.#identity.handleForFfi();
@@ -769,8 +751,8 @@ export class Session {
769
751
  }
770
752
  /** Content transfer: stores `data` (macula-go's content.Put, on this
771
753
  * Session's own fresh dedicated QUIC stream -- Session.
772
- * OpenDedicatedStream on the Go side, NOT the shared control stream
773
- * call()/serve()/the DHT methods/subscribe() all read from), chunking
754
+ * OpenDedicatedStream on the Go side, NOT the control stream
755
+ * call()/serve()/the DHT methods/subscribe() all use), chunking
774
756
  * automatically above manifest.DefaultChunkSize (256 KiB) and
775
757
  * returning the hex-encoded mcid it's now addressable by. `name` is
776
758
  * used ONLY on the chunked path (attached to the resulting manifest)
@@ -781,12 +763,11 @@ export class Session {
781
763
  * station may forget this content later, and there is no list/delete
782
764
  * operation. Treat this as "hand these bytes to a peer once."
783
765
  *
784
- * Because Put opens its own dedicated stream instead of reading the
785
- * shared control stream, this is, unlike call()/serve()/the DHT
786
- * methods/subscribe(), never subject to Session's same-Session
787
- * exclusivity guard (#requireHandleNotServing) -- it can run
788
- * concurrently with an active serve()/subscribe() (or another
789
- * putContent()/getContent()) on the same Session without racing.
766
+ * Because Put opens its own dedicated stream, this is, unlike call()/
767
+ * serve()/the DHT methods/subscribe(), never subject to Session's
768
+ * one-role rule (#requireHandleNotServing) -- it can run concurrently
769
+ * with an active serve()/subscribe() (or another putContent()/
770
+ * getContent()) on the same Session.
790
771
  *
791
772
  * Real network I/O (one or more signed CALLs on the new stream) --
792
773
  * runs off the main thread on the native side, like every other
@@ -810,9 +791,9 @@ export class Session {
810
791
  * (a bad session, a malformed mcid, a real transport error) rejects
811
792
  * with a plain Error instead.
812
793
  *
813
- * Same dedicated-stream, no-exclusivity-guard reasoning as
814
- * putContent() -- safe alongside an active serve()/subscribe() on the
815
- * same Session. Real network I/O, runs off the main thread. */
794
+ * Not subject to the one-role rule, for the same dedicated-stream
795
+ * reason as putContent() -- safe alongside an active serve()/subscribe()
796
+ * on the same Session. Real network I/O, runs off the main thread. */
816
797
  async getContent(mcid) {
817
798
  const handle = this.#requireHandle();
818
799
  const data = await native.contentGet(handle, this.#identity.handleForFfi(), mcid);
@@ -1 +1 @@
1
- {"version":3,"file":"session.js","sourceRoot":"","sources":["../src/session.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,kEAAkE;AAClE,uEAAuE;AACvE,oEAAoE;AACpE,sEAAsE;AACtE,uBAAuB;AACvB,EAAE;AACF,sEAAsE;AACtE,qEAAqE;AACrE,uEAAuE;AACvE,sEAAsE;AACtE,QAAQ;AACR,OAAO,EAAE,MAAM,EAAe,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAiC,MAAM,UAAU,CAAC;AAI7E,OAAO,EACL,YAAY,EACZ,uBAAuB,EACvB,eAAe,EACf,aAAa,GAId,MAAM,UAAU,CAAC;AAyClB,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;AAE9C;;;;;;;;;;;;oEAYoE;AACpE,MAAM,UAAU,iBAAiB,CAAC,KAAyB;IACzD,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAC1C,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QACnC,MAAM,IAAI,KAAK,CAAC,sEAAsE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACjH,CAAC;IACD,OAAO,IAAI,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;AACnD,CAAC;AAyBD,MAAM,OAAO,OAAO;IAClB,OAAO,CAAgB;IACvB,gEAAgE;IAChE,oEAA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QACZ,CAAC;QAED,IAAI,CAAC,mBAAmB,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;QAC3C,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;uCAsBmC;IACnC,KAAK,CAAC,UAAU,CAAC,IAAgB,EAAE,IAAI,GAAG,EAAE;QAC1C,MAAM,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACrC,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QACxF,OAAO,EAAE,IAAI,EAAE,CAAC;IAClB,CAAC;IAED;;;;;;;;;;;;;;;;0EAgBsE;IACtE,KAAK,CAAC,UAAU,CAAC,IAAY;QAC3B,MAAM,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACrC,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,EAAE,IAAI,CAAC,CAAC;QAClF,IAAI,IAAI,KAAK,IAAI;YAAE,MAAM,IAAI,oBAAoB,CAAC,IAAI,CAAC,CAAC;QACxD,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAED,SAAS,YAAY,CAAC,GAAe;IACnC,IAAI,GAAG,CAAC,MAAM,KAAK,EAAE,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,oDAAoD,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC;IACpF,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@macula-io/ts",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "TypeScript SDK for the Macula mesh (FFI over macula-go)",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [