@langspan/client 0.20.0 → 0.21.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 +3 -3
- package/dist/protocol.d.ts +13 -1
- package/dist/protocol.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,9 +5,9 @@ protocol](https://github.com/Langspan/LangSpan.dev/blob/main/docs/protocol/READM
|
|
|
5
5
|
It sends typed commands to a running LangSpan coordinator and returns typed
|
|
6
6
|
outcomes. It has no runtime dependencies.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
`npm pack` in `clients/typescript
|
|
10
|
-
that writes.
|
|
8
|
+
Install it from npm with `npm install @langspan/client`. To build it from the
|
|
9
|
+
repository instead, run `npm ci` and then `npm pack` in `clients/typescript`,
|
|
10
|
+
and install the tarball that writes.
|
|
11
11
|
|
|
12
12
|
```ts
|
|
13
13
|
import { connect } from "@langspan/client";
|
package/dist/protocol.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare const MAX_FRAME_BYTES = 65536;
|
|
|
14
14
|
* knows. Pinned to `src/protocol.rs` and `fixtures/capabilities/answer.json`
|
|
15
15
|
* by the tests.
|
|
16
16
|
*/
|
|
17
|
-
export declare const CAPABILITIES: readonly ["anchored_notes", "briefing_memory", "briefing_outcomes", "build_errors", "collisions", "composition_table", "confirmed_briefings", "git_trouble", "inflight_partial", "intent_contracts", "intent_frames", "intent_overlaps", "interface_notices", "landing_held", "landing_rewrites", "message_paths", "notice_recipients", "opaque_events", "outline_reads", "place_told", "push_messages", "recap_since", "refusal_outcomes", "refused_roots", "remote_messages", "rename_held", "rename_holds", "renames", "reservations", "same_task", "sender_source", "session_limits", "standing_decisions", "subscriptions", "symbol_findings", "tolerant_responses", "trails", "unreadable_waits", "usage", "versioned_keys", "withheld_events", "worked_examples"];
|
|
17
|
+
export declare const CAPABILITIES: readonly ["anchored_notes", "briefing_memory", "briefing_outcomes", "build_errors", "chained_events", "collisions", "composition_table", "confirmed_briefings", "git_trouble", "inflight_partial", "intent_contracts", "intent_frames", "intent_overlaps", "interface_notices", "landing_held", "landing_rewrites", "message_paths", "notice_recipients", "opaque_events", "outline_reads", "place_told", "push_messages", "recap_since", "refusal_outcomes", "refused_roots", "remote_messages", "rename_held", "rename_holds", "renames", "reservations", "same_task", "sender_source", "session_limits", "standing_decisions", "subscriptions", "symbol_findings", "tolerant_responses", "trails", "unreadable_waits", "usage", "versioned_keys", "withheld_events", "worked_examples"];
|
|
18
18
|
/**
|
|
19
19
|
* What the coordinator serves and this client does not speak yet (ADR 0043,
|
|
20
20
|
* "Transport"). The client names the `subscriptions` capability, which
|
|
@@ -30,6 +30,18 @@ export interface Request {
|
|
|
30
30
|
command: Command;
|
|
31
31
|
capabilities?: readonly string[];
|
|
32
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* The fields a page entry or a subscription frame adds for a client that
|
|
35
|
+
* names `chained_events` (docs/protocol "The chain"): `digest` is SHA-256
|
|
36
|
+
* of `prev_digest` and `stored`, the event's JSON exactly as hashed. Both
|
|
37
|
+
* digests are absent on an event not chained yet, and `stored` on one the
|
|
38
|
+
* coordinator shows redacted. Read an entry as `RecordedEvent & EventLink`.
|
|
39
|
+
*/
|
|
40
|
+
export interface EventLink {
|
|
41
|
+
digest?: string;
|
|
42
|
+
prev_digest?: string;
|
|
43
|
+
stored?: string;
|
|
44
|
+
}
|
|
33
45
|
export interface Response {
|
|
34
46
|
version: number;
|
|
35
47
|
request_id: string;
|
package/dist/protocol.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langspan/client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "A TypeScript client for the LangSpan coordination protocol",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/Langspan/LangSpan.dev/tree/main/clients/typescript",
|