@avatarsd-llc/libtracer-client 0.18.0 → 0.19.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/fwd.d.ts +6 -1
- package/dist/fwd.js +6 -1
- package/package.json +3 -3
package/dist/fwd.d.ts
CHANGED
|
@@ -112,7 +112,12 @@ export interface FwdRequest {
|
|
|
112
112
|
readonly payload?: Uint8Array;
|
|
113
113
|
/** @brief REPLY only — the reply {@link FWD_KIND}. */
|
|
114
114
|
readonly kind?: number;
|
|
115
|
-
/**
|
|
115
|
+
/**
|
|
116
|
+
* @brief AWAIT only — the `await_timeout` in ns, a hint the terminus MAY ignore.
|
|
117
|
+
*
|
|
118
|
+
* The deadline is the requester's own (RFC-0004 Amendment 3): the caller ends its wait on
|
|
119
|
+
* its own clock, and a core responder never answers `TIMEOUT`. Absent, no hint is sent.
|
|
120
|
+
*/
|
|
116
121
|
readonly awaitTimeoutNs?: bigint;
|
|
117
122
|
}
|
|
118
123
|
/**
|
package/dist/fwd.js
CHANGED
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
* Child order (RFC-0004 §B): op, dst (PATH), FIELD? selector, src (PATH), then
|
|
15
15
|
* - REPLY: kind (VALUE u8), payload?
|
|
16
16
|
* - WRITE: payload?
|
|
17
|
-
* - AWAIT: await_timeout? (VALUE u64 ns)
|
|
17
|
+
* - AWAIT: await_timeout? (VALUE u64 ns), a hint the terminus MAY ignore; the deadline is
|
|
18
|
+
* the requester's own (RFC-0004 Amendment 3)
|
|
18
19
|
* - READ : nothing
|
|
19
20
|
*/
|
|
20
21
|
import { TYPE, encode, decode } from '@avatarsd-llc/libtracer';
|
|
@@ -318,6 +319,10 @@ export function decodeFwd(bytes) {
|
|
|
318
319
|
* Vector-pinned by `fwd/fwd-reply-error-after-description` (the DESCRIPTION
|
|
319
320
|
* written first), which the Rust binding pins against the same bytes so the
|
|
320
321
|
* two cores cannot drift apart on it again (#878).
|
|
322
|
+
*
|
|
323
|
+
* A bare ERROR payload, with no STATUS wrapper, answers `null`: `STATUS{ ERROR }`
|
|
324
|
+
* is the one error-reply spelling (RFC-0004 erratum 2026-10-08, vector
|
|
325
|
+
* `fwd/reply-error-bare-ignored`).
|
|
321
326
|
*/
|
|
322
327
|
function replyErrorTlv(reply) {
|
|
323
328
|
const status = reply.payload;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avatarsd-llc/libtracer-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.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.
|
|
37
|
-
"@avatarsd-llc/libtracer-ws": ">=0.
|
|
36
|
+
"@avatarsd-llc/libtracer": ">=0.19.0 <0.20.0",
|
|
37
|
+
"@avatarsd-llc/libtracer-ws": ">=0.19.0 <0.20.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependenciesMeta": {
|
|
40
40
|
"@avatarsd-llc/libtracer-ws": {
|