@avatarsd-llc/libtracer-client 0.19.0 → 0.20.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/dist/client.d.ts CHANGED
@@ -66,23 +66,6 @@ export declare class FwdError extends Error {
66
66
  */
67
67
  constructor(code: number, path?: string | null);
68
68
  }
69
- /**
70
- * @brief An inbound ADVERTISE (`0x11`) / COMPACT (`0x12`) frame reached this
71
- * client, which does not implement the RFC-0004 compact (route-handle) delivery
72
- * flow yet.
73
- *
74
- * Routed to {@link LibtracerClient.onError} so the failure is diagnosable
75
- * instead of a silent drop; the sender should fall back to plain FWD delivery.
76
- */
77
- export declare class CompactFlowError extends Error {
78
- /** @brief The offending wire type code (`0x11` ADVERTISE or `0x12` COMPACT). */
79
- readonly frameType: number;
80
- /**
81
- * @brief Name the offending frame kind in the error message.
82
- * @param frameType the inbound frame's wire type code
83
- */
84
- constructor(frameType: number);
85
- }
86
69
  /**
87
70
  * @brief A remote await's local deadline in ms (RFC-0004 Amendment 3: the requester
88
71
  * owns it). The shorter of the request deadline and the await timeout; the request
package/dist/client.js CHANGED
@@ -57,31 +57,6 @@ export class FwdError extends Error {
57
57
  this.path = trPath;
58
58
  }
59
59
  }
60
- /** @brief ADVERTISE (`0x11`) — a route-handle label binding (RFC-0004 route handles). */
61
- const TYPE_ADVERTISE = 0x11;
62
- /** @brief COMPACT (`0x12`) — a label-compacted delivery (RFC-0004 route handles). */
63
- const TYPE_COMPACT = 0x12;
64
- /**
65
- * @brief An inbound ADVERTISE (`0x11`) / COMPACT (`0x12`) frame reached this
66
- * client, which does not implement the RFC-0004 compact (route-handle) delivery
67
- * flow yet.
68
- *
69
- * Routed to {@link LibtracerClient.onError} so the failure is diagnosable
70
- * instead of a silent drop; the sender should fall back to plain FWD delivery.
71
- */
72
- export class CompactFlowError extends Error {
73
- /**
74
- * @brief Name the offending frame kind in the error message.
75
- * @param frameType the inbound frame's wire type code
76
- */
77
- constructor(frameType) {
78
- const kind = frameType === TYPE_ADVERTISE ? 'ADVERTISE' : 'COMPACT';
79
- super(`inbound ${kind} (0x${frameType.toString(16).padStart(2, '0')}) dropped: ` +
80
- 'compact (route-handle) delivery is not supported by this client yet');
81
- this.name = 'CompactFlowError';
82
- this.frameType = frameType;
83
- }
84
- }
85
60
  /** @brief The request deadline used when `requestTimeoutMs` is not given. */
86
61
  const DEFAULT_REQUEST_TIMEOUT_MS = 10000;
87
62
  /**
@@ -197,12 +172,6 @@ export class LibtracerClient {
197
172
  }
198
173
  return;
199
174
  }
200
- // The compact (route-handle) flow is not implemented here: surface it loudly
201
- // rather than silently dropping the delivery (v0.1 client limitation).
202
- if (tlv.type === TYPE_ADVERTISE || tlv.type === TYPE_COMPACT) {
203
- this.emitError(new CompactFlowError(tlv.type));
204
- return;
205
- }
206
175
  // Non-FWD frame: shed exactly one ROUTER envelope, then deliver a VALUE
207
176
  // (the directly-delivered / bridge-mounted path, ADR-0034 inbound rule).
208
177
  const data = tlv.type === TYPE.ROUTER && tlv.children.length > 0 ? tlv.children[tlv.children.length - 1] : tlv;
package/dist/index.d.ts CHANGED
@@ -14,7 +14,7 @@
14
14
  * exported and vector-pinned — see docs/spec/rfcs/0004-remote-operation-addressing.md.
15
15
  */
16
16
  export declare const CLIENT_EXPERIMENTAL: true;
17
- export { LibtracerClient, FwdError, CompactFlowError, awaitDeadlineMs } from './client.js';
17
+ export { LibtracerClient, FwdError, awaitDeadlineMs } from './client.js';
18
18
  export type { ClientTransport, ValueHandler, Unsubscribe, ClientOptions, } from './client.js';
19
19
  export { encodeValue, encodePath, encodeSubscriber, encodeConnSpec, firstChild, pathSegments, PACKED_ESCAPE_LEN, DELIVERY_DURABILITY_REQUEST, DELIVERY_CLASS, deliveryClassBits, deliveryClassOf, } from './tlv.js';
20
20
  export type { ValueOptions, SubscriberOptions, ConnSpecOptions } from './tlv.js';
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@
16
16
  * exported and vector-pinned — see docs/spec/rfcs/0004-remote-operation-addressing.md.
17
17
  */
18
18
  export const CLIENT_EXPERIMENTAL = true;
19
- export { LibtracerClient, FwdError, CompactFlowError, awaitDeadlineMs } from './client.js';
19
+ export { LibtracerClient, FwdError, awaitDeadlineMs } from './client.js';
20
20
  export { encodeValue, encodePath, encodeSubscriber, encodeConnSpec, firstChild, pathSegments, PACKED_ESCAPE_LEN, DELIVERY_DURABILITY_REQUEST, DELIVERY_CLASS, deliveryClassBits, deliveryClassOf, } from './tlv.js';
21
21
  export { walkTopology, routeKey, CONN_ENDPOINT_NAME } from './topology.js';
22
22
  export { FWD_OP, FWD_OPCODE_MASK, FWD_OP_FLAG_MINT_REQUEST, FWD_KIND, FWD_ERROR, FWD_ERROR_PATH, fwdErrorName, fwdErrorPath, fwdErrorCodeForPath, encodeFwd, encodeField, parseField, decodeFwd, parseFwdTlv, replyErrorCode, replyErrorPath, } from './fwd.js';
package/dist/tlv.d.ts CHANGED
@@ -171,8 +171,8 @@ export declare function encodeConnSpec(o: ConnSpecOptions): Uint8Array;
171
171
  export interface SubscriberOptions {
172
172
  /**
173
173
  * @brief This subscription's DELIVERY policy — the packed 16-bit field of RFC-0022 §3.A,
174
- * carried as `SETTINGS{ NAME "delivery_policy" VALUE u16 }` (the same `SETTINGS` child
175
- * `delivery_compact` uses, so no new wire structure).
174
+ * carried as `SETTINGS{ NAME "delivery_policy" VALUE u16 }` (a NAME-tagged member of the
175
+ * subscriber's `SETTINGS` child, so no new wire structure).
176
176
  *
177
177
  * Bit 0–1 reliability (0 = best-effort, 1 = reliable), bits 2–4 priority (0–7, 0 =
178
178
  * default), bit 5 `durability_request` (deliver the producer's latched last value on
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avatarsd-llc/libtracer-client",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "description": "EXPERIMENTAL libtracer client SDK (#56, ADR-0034/0035) — a path-addressed client over the cross-validated codec (@avatarsd-llc/libtracer) and an injected transport seam (e.g. @avatarsd-llc/libtracer-ws). Speaks the RFC-0004 remote operations over FWD: read / write / await / readField / subscribe, each a FWD frame whose source-routed FWD{REPLY} is decoded back. Pre-1.0 and experimental.",
5
5
  "author": "avatarsd LLC",
6
6
  "license": "Apache-2.0",
@@ -33,8 +33,8 @@
33
33
  "access": "public"
34
34
  },
35
35
  "peerDependencies": {
36
- "@avatarsd-llc/libtracer": ">=0.19.0 <0.20.0",
37
- "@avatarsd-llc/libtracer-ws": ">=0.19.0 <0.20.0"
36
+ "@avatarsd-llc/libtracer": ">=0.20.0 <0.21.0",
37
+ "@avatarsd-llc/libtracer-ws": ">=0.20.0 <0.21.0"
38
38
  },
39
39
  "peerDependenciesMeta": {
40
40
  "@avatarsd-llc/libtracer-ws": {