@stream-mdx/tui 0.2.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/CHANGELOG.md +4 -0
- package/README.md +34 -0
- package/dist/index.cjs +171 -0
- package/dist/index.d.cts +35 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.mjs +142 -0
- package/package.json +40 -0
package/CHANGELOG.md
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# @stream-mdx/tui
|
|
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.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
```bash
|
|
11
|
+
npm install @stream-mdx/tui @stream-mdx/core @stream-mdx/protocol
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## NDJSON
|
|
15
|
+
```ts
|
|
16
|
+
import { NdjsonDecoder, encodeNdjsonEvent } from "@stream-mdx/tui";
|
|
17
|
+
|
|
18
|
+
const decoder = new NdjsonDecoder();
|
|
19
|
+
const chunk = encodeNdjsonEvent({ event: "done" } as any);
|
|
20
|
+
const events = decoder.push(chunk);
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Snapshot Store
|
|
24
|
+
```ts
|
|
25
|
+
import { createSnapshotStore } from "@stream-mdx/tui";
|
|
26
|
+
|
|
27
|
+
const store = createSnapshotStore();
|
|
28
|
+
store.applyEvents(events);
|
|
29
|
+
const blocks = store.getBlocks();
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## 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).
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
NdjsonDecoder: () => NdjsonDecoder,
|
|
24
|
+
createSnapshotStore: () => createSnapshotStore,
|
|
25
|
+
decodeNdjson: () => decodeNdjson,
|
|
26
|
+
encodeNdjsonEvent: () => encodeNdjsonEvent,
|
|
27
|
+
encodeNdjsonEvents: () => encodeNdjsonEvents
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(index_exports);
|
|
30
|
+
var import_core = require("@stream-mdx/core");
|
|
31
|
+
function createSnapshotStore(initialBlocks = []) {
|
|
32
|
+
let snapshot = (0, import_core.createInitialSnapshot)(initialBlocks);
|
|
33
|
+
const meta = {};
|
|
34
|
+
const setSnapshot = (blocks) => {
|
|
35
|
+
snapshot = (0, import_core.createInitialSnapshot)(blocks ?? []);
|
|
36
|
+
return snapshot.blocks;
|
|
37
|
+
};
|
|
38
|
+
const applyPatches = (patches) => {
|
|
39
|
+
return (0, import_core.applyPatchBatch)(snapshot, patches ?? []);
|
|
40
|
+
};
|
|
41
|
+
const applyEvent = (event) => {
|
|
42
|
+
if (!event || typeof event !== "object") {
|
|
43
|
+
return snapshot.blocks;
|
|
44
|
+
}
|
|
45
|
+
switch (event.event) {
|
|
46
|
+
case "init":
|
|
47
|
+
meta.init = event;
|
|
48
|
+
return snapshot.blocks;
|
|
49
|
+
case "snapshot":
|
|
50
|
+
return setSnapshot(event.blocks ?? []);
|
|
51
|
+
case "patch": {
|
|
52
|
+
const patchEvent = event;
|
|
53
|
+
if (typeof patchEvent.tx === "number") {
|
|
54
|
+
meta.lastTx = patchEvent.tx;
|
|
55
|
+
}
|
|
56
|
+
return applyPatches(patchEvent.patches ?? []);
|
|
57
|
+
}
|
|
58
|
+
case "metrics":
|
|
59
|
+
meta.metrics = event.metrics;
|
|
60
|
+
return snapshot.blocks;
|
|
61
|
+
case "error":
|
|
62
|
+
meta.error = event;
|
|
63
|
+
return snapshot.blocks;
|
|
64
|
+
case "done":
|
|
65
|
+
meta.done = event;
|
|
66
|
+
return snapshot.blocks;
|
|
67
|
+
default:
|
|
68
|
+
return snapshot.blocks;
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
const applyEvents = (events) => {
|
|
72
|
+
let blocks = snapshot.blocks;
|
|
73
|
+
for (const event of events) {
|
|
74
|
+
blocks = applyEvent(event);
|
|
75
|
+
}
|
|
76
|
+
return blocks;
|
|
77
|
+
};
|
|
78
|
+
return {
|
|
79
|
+
getSnapshot: () => snapshot,
|
|
80
|
+
getBlocks: () => snapshot.blocks,
|
|
81
|
+
getMeta: () => ({ ...meta }),
|
|
82
|
+
setSnapshot,
|
|
83
|
+
applyPatches,
|
|
84
|
+
applyEvent,
|
|
85
|
+
applyEvents
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
function encodeNdjsonEvent(event) {
|
|
89
|
+
return `${JSON.stringify(event)}
|
|
90
|
+
`;
|
|
91
|
+
}
|
|
92
|
+
function encodeNdjsonEvents(events) {
|
|
93
|
+
let output = "";
|
|
94
|
+
for (const event of events) {
|
|
95
|
+
output += encodeNdjsonEvent(event);
|
|
96
|
+
}
|
|
97
|
+
return output;
|
|
98
|
+
}
|
|
99
|
+
function decodeNdjson(input) {
|
|
100
|
+
if (!input) return [];
|
|
101
|
+
const lines = input.split(/\r?\n/);
|
|
102
|
+
const result = [];
|
|
103
|
+
for (const line of lines) {
|
|
104
|
+
const trimmed = line.trim();
|
|
105
|
+
if (!trimmed) continue;
|
|
106
|
+
result.push(JSON.parse(trimmed));
|
|
107
|
+
}
|
|
108
|
+
return result;
|
|
109
|
+
}
|
|
110
|
+
var NdjsonDecoder = class {
|
|
111
|
+
constructor() {
|
|
112
|
+
this.buffer = "";
|
|
113
|
+
this.decoder = typeof TextDecoder !== "undefined" ? new TextDecoder() : null;
|
|
114
|
+
}
|
|
115
|
+
reset() {
|
|
116
|
+
this.buffer = "";
|
|
117
|
+
}
|
|
118
|
+
push(chunk) {
|
|
119
|
+
if (typeof chunk === "string") {
|
|
120
|
+
this.buffer += chunk;
|
|
121
|
+
} else if (chunk && chunk.length > 0) {
|
|
122
|
+
this.buffer += this.decodeBytes(chunk);
|
|
123
|
+
}
|
|
124
|
+
return this.drain(false);
|
|
125
|
+
}
|
|
126
|
+
flush() {
|
|
127
|
+
if (this.decoder) {
|
|
128
|
+
this.buffer += this.decoder.decode();
|
|
129
|
+
}
|
|
130
|
+
return this.drain(true);
|
|
131
|
+
}
|
|
132
|
+
decodeBytes(chunk) {
|
|
133
|
+
if (this.decoder) {
|
|
134
|
+
return this.decoder.decode(chunk, { stream: true });
|
|
135
|
+
}
|
|
136
|
+
if (typeof Buffer !== "undefined") {
|
|
137
|
+
return Buffer.from(chunk).toString("utf8");
|
|
138
|
+
}
|
|
139
|
+
let result = "";
|
|
140
|
+
for (const byte of chunk) {
|
|
141
|
+
result += String.fromCharCode(byte);
|
|
142
|
+
}
|
|
143
|
+
return result;
|
|
144
|
+
}
|
|
145
|
+
drain(flush) {
|
|
146
|
+
const lines = this.buffer.split(/\r?\n/);
|
|
147
|
+
const tail = lines.pop() ?? "";
|
|
148
|
+
this.buffer = flush ? "" : tail;
|
|
149
|
+
const result = [];
|
|
150
|
+
for (const line of lines) {
|
|
151
|
+
const trimmed = line.trim();
|
|
152
|
+
if (!trimmed) continue;
|
|
153
|
+
result.push(JSON.parse(trimmed));
|
|
154
|
+
}
|
|
155
|
+
if (flush) {
|
|
156
|
+
const trimmed = tail.trim();
|
|
157
|
+
if (trimmed.length > 0) {
|
|
158
|
+
result.push(JSON.parse(trimmed));
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
return result;
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
165
|
+
0 && (module.exports = {
|
|
166
|
+
NdjsonDecoder,
|
|
167
|
+
createSnapshotStore,
|
|
168
|
+
decodeNdjson,
|
|
169
|
+
encodeNdjsonEvent,
|
|
170
|
+
encodeNdjsonEvents
|
|
171
|
+
});
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PatchMetrics, DocumentSnapshot, Block, Patch } from '@stream-mdx/core';
|
|
2
|
+
import { StreamMdxInitEventV1, StreamMdxErrorEventV1, StreamMdxDoneEventV1, StreamMdxEventV1 } from '@stream-mdx/protocol';
|
|
3
|
+
|
|
4
|
+
type StreamMdxStoreMeta = {
|
|
5
|
+
init?: StreamMdxInitEventV1;
|
|
6
|
+
lastTx?: number;
|
|
7
|
+
metrics?: PatchMetrics;
|
|
8
|
+
error?: StreamMdxErrorEventV1;
|
|
9
|
+
done?: StreamMdxDoneEventV1;
|
|
10
|
+
};
|
|
11
|
+
type StreamMdxSnapshotStore = {
|
|
12
|
+
getSnapshot(): DocumentSnapshot;
|
|
13
|
+
getBlocks(): Block[];
|
|
14
|
+
getMeta(): StreamMdxStoreMeta;
|
|
15
|
+
setSnapshot(blocks: Block[]): Block[];
|
|
16
|
+
applyPatches(patches: Patch[]): Block[];
|
|
17
|
+
applyEvent(event: StreamMdxEventV1): Block[];
|
|
18
|
+
applyEvents(events: StreamMdxEventV1[]): Block[];
|
|
19
|
+
};
|
|
20
|
+
declare function createSnapshotStore(initialBlocks?: Block[]): StreamMdxSnapshotStore;
|
|
21
|
+
declare function encodeNdjsonEvent<T>(event: T): string;
|
|
22
|
+
declare function encodeNdjsonEvents<T>(events: Iterable<T>): string;
|
|
23
|
+
declare function decodeNdjson<T = StreamMdxEventV1>(input: string): T[];
|
|
24
|
+
declare class NdjsonDecoder<T = StreamMdxEventV1> {
|
|
25
|
+
private buffer;
|
|
26
|
+
private decoder;
|
|
27
|
+
constructor();
|
|
28
|
+
reset(): void;
|
|
29
|
+
push(chunk: string | Uint8Array): T[];
|
|
30
|
+
flush(): T[];
|
|
31
|
+
private decodeBytes;
|
|
32
|
+
private drain;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { NdjsonDecoder, type StreamMdxSnapshotStore, type StreamMdxStoreMeta, createSnapshotStore, decodeNdjson, encodeNdjsonEvent, encodeNdjsonEvents };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PatchMetrics, DocumentSnapshot, Block, Patch } from '@stream-mdx/core';
|
|
2
|
+
import { StreamMdxInitEventV1, StreamMdxErrorEventV1, StreamMdxDoneEventV1, StreamMdxEventV1 } from '@stream-mdx/protocol';
|
|
3
|
+
|
|
4
|
+
type StreamMdxStoreMeta = {
|
|
5
|
+
init?: StreamMdxInitEventV1;
|
|
6
|
+
lastTx?: number;
|
|
7
|
+
metrics?: PatchMetrics;
|
|
8
|
+
error?: StreamMdxErrorEventV1;
|
|
9
|
+
done?: StreamMdxDoneEventV1;
|
|
10
|
+
};
|
|
11
|
+
type StreamMdxSnapshotStore = {
|
|
12
|
+
getSnapshot(): DocumentSnapshot;
|
|
13
|
+
getBlocks(): Block[];
|
|
14
|
+
getMeta(): StreamMdxStoreMeta;
|
|
15
|
+
setSnapshot(blocks: Block[]): Block[];
|
|
16
|
+
applyPatches(patches: Patch[]): Block[];
|
|
17
|
+
applyEvent(event: StreamMdxEventV1): Block[];
|
|
18
|
+
applyEvents(events: StreamMdxEventV1[]): Block[];
|
|
19
|
+
};
|
|
20
|
+
declare function createSnapshotStore(initialBlocks?: Block[]): StreamMdxSnapshotStore;
|
|
21
|
+
declare function encodeNdjsonEvent<T>(event: T): string;
|
|
22
|
+
declare function encodeNdjsonEvents<T>(events: Iterable<T>): string;
|
|
23
|
+
declare function decodeNdjson<T = StreamMdxEventV1>(input: string): T[];
|
|
24
|
+
declare class NdjsonDecoder<T = StreamMdxEventV1> {
|
|
25
|
+
private buffer;
|
|
26
|
+
private decoder;
|
|
27
|
+
constructor();
|
|
28
|
+
reset(): void;
|
|
29
|
+
push(chunk: string | Uint8Array): T[];
|
|
30
|
+
flush(): T[];
|
|
31
|
+
private decodeBytes;
|
|
32
|
+
private drain;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { NdjsonDecoder, type StreamMdxSnapshotStore, type StreamMdxStoreMeta, createSnapshotStore, decodeNdjson, encodeNdjsonEvent, encodeNdjsonEvents };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
import { applyPatchBatch, createInitialSnapshot } from "@stream-mdx/core";
|
|
3
|
+
function createSnapshotStore(initialBlocks = []) {
|
|
4
|
+
let snapshot = createInitialSnapshot(initialBlocks);
|
|
5
|
+
const meta = {};
|
|
6
|
+
const setSnapshot = (blocks) => {
|
|
7
|
+
snapshot = createInitialSnapshot(blocks ?? []);
|
|
8
|
+
return snapshot.blocks;
|
|
9
|
+
};
|
|
10
|
+
const applyPatches = (patches) => {
|
|
11
|
+
return applyPatchBatch(snapshot, patches ?? []);
|
|
12
|
+
};
|
|
13
|
+
const applyEvent = (event) => {
|
|
14
|
+
if (!event || typeof event !== "object") {
|
|
15
|
+
return snapshot.blocks;
|
|
16
|
+
}
|
|
17
|
+
switch (event.event) {
|
|
18
|
+
case "init":
|
|
19
|
+
meta.init = event;
|
|
20
|
+
return snapshot.blocks;
|
|
21
|
+
case "snapshot":
|
|
22
|
+
return setSnapshot(event.blocks ?? []);
|
|
23
|
+
case "patch": {
|
|
24
|
+
const patchEvent = event;
|
|
25
|
+
if (typeof patchEvent.tx === "number") {
|
|
26
|
+
meta.lastTx = patchEvent.tx;
|
|
27
|
+
}
|
|
28
|
+
return applyPatches(patchEvent.patches ?? []);
|
|
29
|
+
}
|
|
30
|
+
case "metrics":
|
|
31
|
+
meta.metrics = event.metrics;
|
|
32
|
+
return snapshot.blocks;
|
|
33
|
+
case "error":
|
|
34
|
+
meta.error = event;
|
|
35
|
+
return snapshot.blocks;
|
|
36
|
+
case "done":
|
|
37
|
+
meta.done = event;
|
|
38
|
+
return snapshot.blocks;
|
|
39
|
+
default:
|
|
40
|
+
return snapshot.blocks;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const applyEvents = (events) => {
|
|
44
|
+
let blocks = snapshot.blocks;
|
|
45
|
+
for (const event of events) {
|
|
46
|
+
blocks = applyEvent(event);
|
|
47
|
+
}
|
|
48
|
+
return blocks;
|
|
49
|
+
};
|
|
50
|
+
return {
|
|
51
|
+
getSnapshot: () => snapshot,
|
|
52
|
+
getBlocks: () => snapshot.blocks,
|
|
53
|
+
getMeta: () => ({ ...meta }),
|
|
54
|
+
setSnapshot,
|
|
55
|
+
applyPatches,
|
|
56
|
+
applyEvent,
|
|
57
|
+
applyEvents
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function encodeNdjsonEvent(event) {
|
|
61
|
+
return `${JSON.stringify(event)}
|
|
62
|
+
`;
|
|
63
|
+
}
|
|
64
|
+
function encodeNdjsonEvents(events) {
|
|
65
|
+
let output = "";
|
|
66
|
+
for (const event of events) {
|
|
67
|
+
output += encodeNdjsonEvent(event);
|
|
68
|
+
}
|
|
69
|
+
return output;
|
|
70
|
+
}
|
|
71
|
+
function decodeNdjson(input) {
|
|
72
|
+
if (!input) return [];
|
|
73
|
+
const lines = input.split(/\r?\n/);
|
|
74
|
+
const result = [];
|
|
75
|
+
for (const line of lines) {
|
|
76
|
+
const trimmed = line.trim();
|
|
77
|
+
if (!trimmed) continue;
|
|
78
|
+
result.push(JSON.parse(trimmed));
|
|
79
|
+
}
|
|
80
|
+
return result;
|
|
81
|
+
}
|
|
82
|
+
var NdjsonDecoder = class {
|
|
83
|
+
constructor() {
|
|
84
|
+
this.buffer = "";
|
|
85
|
+
this.decoder = typeof TextDecoder !== "undefined" ? new TextDecoder() : null;
|
|
86
|
+
}
|
|
87
|
+
reset() {
|
|
88
|
+
this.buffer = "";
|
|
89
|
+
}
|
|
90
|
+
push(chunk) {
|
|
91
|
+
if (typeof chunk === "string") {
|
|
92
|
+
this.buffer += chunk;
|
|
93
|
+
} else if (chunk && chunk.length > 0) {
|
|
94
|
+
this.buffer += this.decodeBytes(chunk);
|
|
95
|
+
}
|
|
96
|
+
return this.drain(false);
|
|
97
|
+
}
|
|
98
|
+
flush() {
|
|
99
|
+
if (this.decoder) {
|
|
100
|
+
this.buffer += this.decoder.decode();
|
|
101
|
+
}
|
|
102
|
+
return this.drain(true);
|
|
103
|
+
}
|
|
104
|
+
decodeBytes(chunk) {
|
|
105
|
+
if (this.decoder) {
|
|
106
|
+
return this.decoder.decode(chunk, { stream: true });
|
|
107
|
+
}
|
|
108
|
+
if (typeof Buffer !== "undefined") {
|
|
109
|
+
return Buffer.from(chunk).toString("utf8");
|
|
110
|
+
}
|
|
111
|
+
let result = "";
|
|
112
|
+
for (const byte of chunk) {
|
|
113
|
+
result += String.fromCharCode(byte);
|
|
114
|
+
}
|
|
115
|
+
return result;
|
|
116
|
+
}
|
|
117
|
+
drain(flush) {
|
|
118
|
+
const lines = this.buffer.split(/\r?\n/);
|
|
119
|
+
const tail = lines.pop() ?? "";
|
|
120
|
+
this.buffer = flush ? "" : tail;
|
|
121
|
+
const result = [];
|
|
122
|
+
for (const line of lines) {
|
|
123
|
+
const trimmed = line.trim();
|
|
124
|
+
if (!trimmed) continue;
|
|
125
|
+
result.push(JSON.parse(trimmed));
|
|
126
|
+
}
|
|
127
|
+
if (flush) {
|
|
128
|
+
const trimmed = tail.trim();
|
|
129
|
+
if (trimmed.length > 0) {
|
|
130
|
+
result.push(JSON.parse(trimmed));
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
return result;
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
export {
|
|
137
|
+
NdjsonDecoder,
|
|
138
|
+
createSnapshotStore,
|
|
139
|
+
decodeNdjson,
|
|
140
|
+
encodeNdjsonEvent,
|
|
141
|
+
encodeNdjsonEvents
|
|
142
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@stream-mdx/tui",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "StreamMDX TUI helpers (NDJSON parsing and snapshot store)",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/kmccleary3301/stream-mdx.git",
|
|
9
|
+
"directory": "packages/markdown-v2-tui"
|
|
10
|
+
},
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"main": "./dist/index.cjs",
|
|
16
|
+
"module": "./dist/index.mjs",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"import": "./dist/index.mjs",
|
|
22
|
+
"require": "./dist/index.cjs"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist",
|
|
27
|
+
"README.md",
|
|
28
|
+
"CHANGELOG.md"
|
|
29
|
+
],
|
|
30
|
+
"sideEffects": false,
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "tsup",
|
|
33
|
+
"clean": "rm -rf dist",
|
|
34
|
+
"prepack": "npm run build"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@stream-mdx/core": "0.2.0",
|
|
38
|
+
"@stream-mdx/protocol": "0.2.0"
|
|
39
|
+
}
|
|
40
|
+
}
|