markstream-octane 0.0.56-beta.3 → 0.1.0-beta.2

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
@@ -1,9 +1,15 @@
1
1
  # markstream-octane
2
2
 
3
- Native Octane streaming Markdown renderer for AI chat, SSE/WebSocket output, incomplete Markdown, Mermaid, KaTeX, Shiki, and Monaco.
3
+ Native Octane streaming Markdown renderer for AI chat, SSE/WebSocket output, incomplete Markdown, Mermaid, KaTeX, and stream-diffs enhanced code blocks.
4
4
 
5
5
  `markstream-octane` is compiled with the Octane compiler and runs on the Octane client and server runtimes. It does not require a React root or React compatibility layer. The published package contains precompiled JavaScript, declarations, styles, and workers, so consumers do not need to compile TSRX from `node_modules`.
6
6
 
7
+ The coordinated 2.0 family beta will use `markstream-octane@next`. Before installing, verify that `npm view markstream-octane@next version` reports `0.1.0-beta.1`. It removes the Monaco and Shiki code-block APIs in favor of `stream-diffs`; read the [coordinated 2.0 family migration guide](https://markstream.simonhe.me/guide/migration-2-0) before upgrading.
8
+
9
+ ```bash
10
+ pnpm add markstream-octane@next octane@^0.1.21 stream-diffs
11
+ ```
12
+
7
13
  ## Install
8
14
 
9
15
  ```bash
@@ -16,13 +22,14 @@ Optional renderer features are peer dependencies. Install only the features used
16
22
 
17
23
  | Feature | Package |
18
24
  | --- | --- |
19
- | Shiki code blocks | `stream-markdown` |
20
- | Monaco editor code blocks | `stream-monaco` |
25
+ | Enhanced code blocks | `stream-diffs` |
21
26
  | Mermaid diagrams | `mermaid` |
22
27
  | KaTeX math | `katex` |
23
28
  | D2 diagrams | `@terrastruct/d2` |
24
29
  | Infographic blocks | `@antv/infographic` |
25
30
 
31
+ Enhanced code blocks resolve to `stream-diffs` automatically. Direct `CodeBlockNode` and top-level `NodeRenderer` both accept the shared `codeBlockOptions` / `CodeBlockOptions` contract; `maxHeight` and the single symmetric `padding` value use numeric CSS pixels. Use `codeBlockProps` for header and toolbar controls. Markstream keeps theme, code/language, streaming state, header, mounting, reveal, and disposal host-owned. Themes are registered names and `themes` is the `[dark, light]` pair. An old Monaco JSON theme is not accepted directly: first convert it to a Shiki `ThemeRegistration`, then call `registerCustomTheme(name, loader)` from `stream-diffs/pierre`; see the [coordinated 2.0 family migration guide](https://markstream.simonhe.me/guide/migration-2-0).
32
+
26
33
  ## Compiler setup
27
34
 
28
35
  Octane source components use the `.tsrx` extension. Add the Octane compiler to Vite: