@stream-mdx/tui 0.4.0 → 0.5.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +27 -15
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,4 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Promote the current hardening and product-surface tranche as `0.5.0`.
8
+
9
+ This release rolls up:
10
+
11
+ - renderer/store correctness hardening
12
+ - seeded smoke and scheduler-parity release discipline
13
+ - benchmark methodology and comparison cleanup
14
+ - docs, showcase, and TUI/product surface maturation
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+ - @stream-mdx/core@0.5.0
20
+ - @stream-mdx/protocol@0.5.0
21
+
3
22
  ## 0.1.1
23
+
4
24
  - Initial release with NDJSON helpers and snapshot store.
package/README.md CHANGED
@@ -1,17 +1,23 @@
1
- # @stream-mdx/tui
1
+ # `@stream-mdx/tui`
2
2
 
3
- Reference utilities for terminal and CLI integrations.
4
-
5
- ## Features
6
- - NDJSON encoder/decoder helpers for StreamMDX protocol events.
7
- - Lightweight snapshot store that applies patches and yields blocks.
3
+ `@stream-mdx/tui` provides terminal-oriented helpers for StreamMDX protocol streams: NDJSON encoding/decoding and a lightweight snapshot store that can apply events and materialize blocks outside React.
8
4
 
9
5
  ## Install
6
+
10
7
  ```bash
11
- npm install @stream-mdx/tui @stream-mdx/core @stream-mdx/protocol
8
+ npm install @stream-mdx/tui @stream-mdx/protocol @stream-mdx/core
12
9
  ```
13
10
 
14
- ## NDJSON
11
+ ## Main Capabilities
12
+
13
+ | Capability | Notes |
14
+ | --- | --- |
15
+ | NDJSON helpers | Encode/decode protocol events for line-oriented transports |
16
+ | Snapshot store | Apply patch streams and recover block state |
17
+ | Non-React usage | Useful in TUIs, CLIs, log viewers, and replay tools |
18
+
19
+ ## NDJSON Example
20
+
15
21
  ```ts
16
22
  import { NdjsonDecoder, encodeNdjsonEvent } from "@stream-mdx/tui";
17
23
 
@@ -20,7 +26,8 @@ const chunk = encodeNdjsonEvent({ event: "done" } as any);
20
26
  const events = decoder.push(chunk);
21
27
  ```
22
28
 
23
- ## Snapshot Store
29
+ ## Snapshot Store Example
30
+
24
31
  ```ts
25
32
  import { createSnapshotStore } from "@stream-mdx/tui";
26
33
 
@@ -30,11 +37,16 @@ const blocks = store.getBlocks();
30
37
  ```
31
38
 
32
39
  ## Notes
33
- - Token output is gated by the worker output mode ("tokens" or "both").
34
- - The store is intended for non-React environments (TUIs, CLIs).
35
40
 
36
- ## Docs
41
+ - Token output depends on the worker output mode (`tokens` or `both`).
42
+ - The store is intentionally lightweight and aimed at non-React consumers.
43
+
44
+ ## Documentation
37
45
 
38
- - CLI usage: https://github.com/kmccleary3301/stream-mdx/blob/main/docs/CLI_USAGE.md
39
- - Protocol spec: https://github.com/kmccleary3301/stream-mdx/blob/main/docs/STREAMMDX_JSON_DIFF_SPEC.md
40
- - Public API: https://github.com/kmccleary3301/stream-mdx/blob/main/docs/PUBLIC_API.md
46
+ - Run the example locally with `npm run example:tui-minimal` from the repo root.
47
+ - [`../../examples/tui-minimal/README.md`](../../examples/tui-minimal/README.md)
48
+ - [`../../docs/TUI_MINIMAL_EXAMPLE.md`](../../docs/TUI_MINIMAL_EXAMPLE.md)
49
+ - [`../../docs/TUI_GUIDE.md`](../../docs/TUI_GUIDE.md)
50
+ - [`../../docs/CLI_USAGE.md`](../../docs/CLI_USAGE.md)
51
+ - [`../../docs/STREAMMDX_JSON_DIFF_SPEC.md`](../../docs/STREAMMDX_JSON_DIFF_SPEC.md)
52
+ - [`../../docs/PUBLIC_API.md`](../../docs/PUBLIC_API.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-mdx/tui",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "StreamMDX TUI helpers (NDJSON parsing and snapshot store)",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -34,7 +34,7 @@
34
34
  "prepack": "npm run build"
35
35
  },
36
36
  "dependencies": {
37
- "@stream-mdx/core": "0.4.0",
38
- "@stream-mdx/protocol": "0.4.0"
37
+ "@stream-mdx/core": "0.5.0",
38
+ "@stream-mdx/protocol": "0.5.0"
39
39
  }
40
40
  }