@gjermundgaraba/clankermux 0.0.0-stage → 0.1.1
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 +96 -2
- package/dist/client/attachment.d.ts +71 -0
- package/dist/client/attachment.js +240 -0
- package/dist/client/connection.d.ts +51 -0
- package/dist/client/connection.js +171 -0
- package/dist/client/index.d.ts +10 -0
- package/dist/client/index.js +4 -0
- package/dist/client/keyboard.d.ts +24 -0
- package/dist/client/keyboard.js +32 -0
- package/dist/client/mount.d.ts +65 -0
- package/dist/client/mount.js +177 -0
- package/dist/client/osc52.d.ts +14 -0
- package/dist/client/osc52.js +88 -0
- package/dist/client/profile.d.ts +10 -0
- package/dist/client/profile.js +30 -0
- package/dist/client/worker.d.ts +120 -0
- package/dist/client/worker.js +566 -0
- package/dist/engine/decoder.d.ts +45 -0
- package/dist/engine/decoder.js +137 -0
- package/dist/engine/index.d.ts +110 -0
- package/dist/engine/index.js +372 -0
- package/dist/engine/keys.d.ts +39 -0
- package/dist/engine/keys.js +66 -0
- package/dist/engine/pin.d.ts +2 -0
- package/dist/engine/pin.js +3 -0
- package/dist/engine/render.d.ts +79 -0
- package/dist/engine/render.js +224 -0
- package/dist/proto/frame.d.ts +47 -0
- package/dist/proto/frame.js +78 -0
- package/dist/proto/index.d.ts +3 -0
- package/dist/proto/index.js +3 -0
- package/dist/proto/messages.d.ts +218 -0
- package/dist/proto/messages.js +1 -0
- package/dist/proto/stream.d.ts +11 -0
- package/dist/proto/stream.js +30 -0
- package/dist/renderer/index.d.ts +44 -0
- package/dist/renderer/index.js +138 -0
- package/ghostty-vt.wasm +0 -0
- package/package.json +48 -3
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
export declare const VERSION = 1;
|
|
2
|
+
export interface Peer {
|
|
3
|
+
name: string;
|
|
4
|
+
version: string;
|
|
5
|
+
}
|
|
6
|
+
export interface Hello {
|
|
7
|
+
version: number;
|
|
8
|
+
client: Peer;
|
|
9
|
+
engine?: string;
|
|
10
|
+
capabilities: string[];
|
|
11
|
+
}
|
|
12
|
+
export interface Limits {
|
|
13
|
+
max_frame: number;
|
|
14
|
+
control_body: number;
|
|
15
|
+
ring: number;
|
|
16
|
+
input_queue: number;
|
|
17
|
+
scrollback: number;
|
|
18
|
+
continuation: number;
|
|
19
|
+
label: number;
|
|
20
|
+
text: number;
|
|
21
|
+
markers: number;
|
|
22
|
+
records: number;
|
|
23
|
+
page: number;
|
|
24
|
+
hello_timeout: number;
|
|
25
|
+
remove_grace: number;
|
|
26
|
+
}
|
|
27
|
+
export interface Welcome {
|
|
28
|
+
version: number;
|
|
29
|
+
server: Peer;
|
|
30
|
+
engine: string;
|
|
31
|
+
incarnation: string;
|
|
32
|
+
capabilities: string[];
|
|
33
|
+
limits: Limits;
|
|
34
|
+
}
|
|
35
|
+
export interface Request {
|
|
36
|
+
id: number;
|
|
37
|
+
method: string;
|
|
38
|
+
params: unknown;
|
|
39
|
+
}
|
|
40
|
+
export interface Reply {
|
|
41
|
+
id: number;
|
|
42
|
+
result: unknown;
|
|
43
|
+
}
|
|
44
|
+
export type ErrorCode = "protocol_error" | "version_mismatch" | "invalid_request" | "limit_exceeded" | "no_such_session" | "not_running" | "running" | "signal_failed" | "engine_mismatch" | "channel_in_use" | "read_only" | "input_overflow" | "too_slow" | "internal";
|
|
45
|
+
export interface ErrorMessage {
|
|
46
|
+
id?: number;
|
|
47
|
+
code: ErrorCode;
|
|
48
|
+
message: string;
|
|
49
|
+
}
|
|
50
|
+
export type OnExit = "remove" | "keep";
|
|
51
|
+
export type Status = "running" | "exited" | "restored";
|
|
52
|
+
export type Exit = {
|
|
53
|
+
code: number;
|
|
54
|
+
} | {
|
|
55
|
+
signal: string;
|
|
56
|
+
};
|
|
57
|
+
/** One program status record (OSC 7501). */
|
|
58
|
+
export interface StatusRecord {
|
|
59
|
+
id: string;
|
|
60
|
+
state: string;
|
|
61
|
+
kind?: string;
|
|
62
|
+
app?: string;
|
|
63
|
+
title?: string;
|
|
64
|
+
msg?: string;
|
|
65
|
+
progress?: number;
|
|
66
|
+
updated_at: string;
|
|
67
|
+
}
|
|
68
|
+
export interface Session {
|
|
69
|
+
id: string;
|
|
70
|
+
label: string;
|
|
71
|
+
status: Status;
|
|
72
|
+
argv: string[];
|
|
73
|
+
cwd: string;
|
|
74
|
+
pid?: number;
|
|
75
|
+
cols: number;
|
|
76
|
+
rows: number;
|
|
77
|
+
title: string;
|
|
78
|
+
pwd: string;
|
|
79
|
+
on_exit: OnExit;
|
|
80
|
+
created_at: string;
|
|
81
|
+
exited_at?: string;
|
|
82
|
+
exit?: Exit;
|
|
83
|
+
offset: number;
|
|
84
|
+
marker: number;
|
|
85
|
+
attachments: number;
|
|
86
|
+
program_status?: StatusRecord[];
|
|
87
|
+
}
|
|
88
|
+
export interface Page {
|
|
89
|
+
sessions: Session[];
|
|
90
|
+
next?: string;
|
|
91
|
+
}
|
|
92
|
+
export interface Read {
|
|
93
|
+
text: string;
|
|
94
|
+
cols: number;
|
|
95
|
+
rows: number;
|
|
96
|
+
cursor?: {
|
|
97
|
+
x: number;
|
|
98
|
+
y: number;
|
|
99
|
+
};
|
|
100
|
+
offset: number;
|
|
101
|
+
status: Status;
|
|
102
|
+
}
|
|
103
|
+
export interface ListParams {
|
|
104
|
+
after?: string;
|
|
105
|
+
}
|
|
106
|
+
export interface SessionParams {
|
|
107
|
+
session: string;
|
|
108
|
+
}
|
|
109
|
+
export interface SignalParams {
|
|
110
|
+
session: string;
|
|
111
|
+
signal: string;
|
|
112
|
+
}
|
|
113
|
+
export interface SetLabelParams {
|
|
114
|
+
session: string;
|
|
115
|
+
label: string;
|
|
116
|
+
}
|
|
117
|
+
export interface SetSizeParams {
|
|
118
|
+
session: string;
|
|
119
|
+
cols: number;
|
|
120
|
+
rows: number;
|
|
121
|
+
}
|
|
122
|
+
export interface ReadParams {
|
|
123
|
+
session: string;
|
|
124
|
+
scrollback?: number;
|
|
125
|
+
}
|
|
126
|
+
export interface WriteParams {
|
|
127
|
+
session: string;
|
|
128
|
+
/** Base64. */
|
|
129
|
+
data: string;
|
|
130
|
+
}
|
|
131
|
+
export interface CreateParams {
|
|
132
|
+
label?: string;
|
|
133
|
+
argv?: string[];
|
|
134
|
+
cwd?: string;
|
|
135
|
+
env?: Record<string, string>;
|
|
136
|
+
cols?: number;
|
|
137
|
+
rows?: number;
|
|
138
|
+
on_exit?: OnExit;
|
|
139
|
+
}
|
|
140
|
+
export type Event = {
|
|
141
|
+
event: "session_created";
|
|
142
|
+
session: Session;
|
|
143
|
+
} | {
|
|
144
|
+
event: "session_changed";
|
|
145
|
+
session: Session;
|
|
146
|
+
} | {
|
|
147
|
+
event: "session_exited";
|
|
148
|
+
session: Session;
|
|
149
|
+
} | {
|
|
150
|
+
event: "session_removed";
|
|
151
|
+
id: string;
|
|
152
|
+
} | {
|
|
153
|
+
event: "program_status_changed";
|
|
154
|
+
id: string;
|
|
155
|
+
record: StatusRecord;
|
|
156
|
+
} | {
|
|
157
|
+
event: "program_status_removed";
|
|
158
|
+
id: string;
|
|
159
|
+
record_ids: string[];
|
|
160
|
+
};
|
|
161
|
+
export type Scheme = "light" | "dark";
|
|
162
|
+
export interface Profile {
|
|
163
|
+
fg?: string;
|
|
164
|
+
bg?: string;
|
|
165
|
+
cursor?: string;
|
|
166
|
+
scheme?: Scheme;
|
|
167
|
+
}
|
|
168
|
+
/** `OPEN.viewport`: the terminal size in cells and, optionally, pixels. */
|
|
169
|
+
export interface Size {
|
|
170
|
+
cols: number;
|
|
171
|
+
rows: number;
|
|
172
|
+
cell_width?: number;
|
|
173
|
+
cell_height?: number;
|
|
174
|
+
}
|
|
175
|
+
/** The `VIEWPORT` payload. */
|
|
176
|
+
export interface Viewport extends Size {
|
|
177
|
+
profile?: Profile;
|
|
178
|
+
}
|
|
179
|
+
export interface Resume {
|
|
180
|
+
incarnation: string;
|
|
181
|
+
offset: number;
|
|
182
|
+
marker: number;
|
|
183
|
+
}
|
|
184
|
+
export interface Open {
|
|
185
|
+
session: string;
|
|
186
|
+
read_only?: boolean;
|
|
187
|
+
viewport?: Size;
|
|
188
|
+
profile?: Profile;
|
|
189
|
+
resume?: Resume;
|
|
190
|
+
}
|
|
191
|
+
export interface Attached {
|
|
192
|
+
mode: "snapshot" | "resume";
|
|
193
|
+
offset: number;
|
|
194
|
+
marker: number;
|
|
195
|
+
cols: number;
|
|
196
|
+
rows: number;
|
|
197
|
+
session: Session;
|
|
198
|
+
/** Total length of the snapshot that follows, in mode `snapshot`. */
|
|
199
|
+
snapshot_bytes?: number;
|
|
200
|
+
}
|
|
201
|
+
export interface Resized {
|
|
202
|
+
seq: number;
|
|
203
|
+
offset: number;
|
|
204
|
+
cols: number;
|
|
205
|
+
rows: number;
|
|
206
|
+
}
|
|
207
|
+
export interface Exited {
|
|
208
|
+
seq: number;
|
|
209
|
+
offset: number;
|
|
210
|
+
exit: Exit;
|
|
211
|
+
}
|
|
212
|
+
export interface Gap {
|
|
213
|
+
from: number;
|
|
214
|
+
to: number;
|
|
215
|
+
}
|
|
216
|
+
export interface Closed {
|
|
217
|
+
reason: "closed" | "removed" | "stopping";
|
|
218
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const VERSION = 1;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Splits an ordered byte stream into frames, for carriers that are not
|
|
3
|
+
* message-oriented (a Unix or TCP socket). One call to `feed` per chunk;
|
|
4
|
+
* each complete frame comes back as its own bytes, header included.
|
|
5
|
+
*/
|
|
6
|
+
export declare class StreamFramer {
|
|
7
|
+
private buffer;
|
|
8
|
+
private readonly maxFrame;
|
|
9
|
+
constructor(maxFrame: number);
|
|
10
|
+
feed(chunk: Uint8Array): Uint8Array[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { HEADER_LEN, parseHeader } from "./frame.js";
|
|
2
|
+
/**
|
|
3
|
+
* Splits an ordered byte stream into frames, for carriers that are not
|
|
4
|
+
* message-oriented (a Unix or TCP socket). One call to `feed` per chunk;
|
|
5
|
+
* each complete frame comes back as its own bytes, header included.
|
|
6
|
+
*/
|
|
7
|
+
export class StreamFramer {
|
|
8
|
+
buffer = new Uint8Array(0);
|
|
9
|
+
maxFrame;
|
|
10
|
+
constructor(maxFrame) {
|
|
11
|
+
this.maxFrame = maxFrame;
|
|
12
|
+
}
|
|
13
|
+
feed(chunk) {
|
|
14
|
+
const joined = new Uint8Array(this.buffer.length + chunk.length);
|
|
15
|
+
joined.set(this.buffer);
|
|
16
|
+
joined.set(chunk, this.buffer.length);
|
|
17
|
+
const frames = [];
|
|
18
|
+
let pos = 0;
|
|
19
|
+
while (joined.length - pos >= HEADER_LEN) {
|
|
20
|
+
const header = parseHeader(joined.subarray(pos), this.maxFrame);
|
|
21
|
+
const end = pos + HEADER_LEN + header.length;
|
|
22
|
+
if (end > joined.length)
|
|
23
|
+
break;
|
|
24
|
+
frames.push(joined.slice(pos, end));
|
|
25
|
+
pos = end;
|
|
26
|
+
}
|
|
27
|
+
this.buffer = joined.slice(pos);
|
|
28
|
+
return frames;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { type Frame } from "../engine/index.ts";
|
|
2
|
+
/** The cell grid in CSS pixels and the fonts to draw with. */
|
|
3
|
+
export interface Metrics {
|
|
4
|
+
cellWidth: number;
|
|
5
|
+
cellHeight: number;
|
|
6
|
+
/** Distance from the top of a cell to the text baseline. */
|
|
7
|
+
baseline: number;
|
|
8
|
+
font: string;
|
|
9
|
+
boldFont: string;
|
|
10
|
+
italicFont: string;
|
|
11
|
+
boldItalicFont: string;
|
|
12
|
+
}
|
|
13
|
+
/** CSS colours used where the frame has none: only the cursor, since the
|
|
14
|
+
* frame always carries default foreground and background colours. */
|
|
15
|
+
export interface Palette {
|
|
16
|
+
cursor: string;
|
|
17
|
+
}
|
|
18
|
+
/** The part of `CanvasRenderingContext2D` the renderer uses. */
|
|
19
|
+
export interface Context2D {
|
|
20
|
+
fillStyle: string | CanvasGradient | CanvasPattern;
|
|
21
|
+
font: string;
|
|
22
|
+
globalAlpha: number;
|
|
23
|
+
fillRect(x: number, y: number, w: number, h: number): void;
|
|
24
|
+
fillText(text: string, x: number, y: number): void;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Draws frames onto a 2D context: changed rows only, then the cursor.
|
|
28
|
+
* Rows are cached so the row the cursor leaves can be redrawn.
|
|
29
|
+
*/
|
|
30
|
+
export declare class CanvasRenderer {
|
|
31
|
+
private readonly ctx;
|
|
32
|
+
private readonly metrics;
|
|
33
|
+
private readonly palette;
|
|
34
|
+
private rows;
|
|
35
|
+
private cursorRow;
|
|
36
|
+
private cols;
|
|
37
|
+
private background;
|
|
38
|
+
private foreground;
|
|
39
|
+
constructor(ctx: Context2D, metrics: Metrics, palette: Palette);
|
|
40
|
+
draw(frame: Frame): void;
|
|
41
|
+
private drawRow;
|
|
42
|
+
private font;
|
|
43
|
+
private drawCursor;
|
|
44
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { FLAG, NO_COLOR } from "../engine/index.js";
|
|
2
|
+
const hex = (color) => `#${color.toString(16).padStart(6, "0")}`;
|
|
3
|
+
/** A cell or cursor colour, or `fallback` when it has none. */
|
|
4
|
+
const css = (color, fallback) => (color === NO_COLOR ? fallback : hex(color));
|
|
5
|
+
/**
|
|
6
|
+
* Draws frames onto a 2D context: changed rows only, then the cursor.
|
|
7
|
+
* Rows are cached so the row the cursor leaves can be redrawn.
|
|
8
|
+
*/
|
|
9
|
+
export class CanvasRenderer {
|
|
10
|
+
ctx;
|
|
11
|
+
metrics;
|
|
12
|
+
palette;
|
|
13
|
+
rows = new Map();
|
|
14
|
+
cursorRow;
|
|
15
|
+
cols = 0;
|
|
16
|
+
background = "";
|
|
17
|
+
foreground = "";
|
|
18
|
+
constructor(ctx, metrics, palette) {
|
|
19
|
+
this.ctx = ctx;
|
|
20
|
+
this.metrics = metrics;
|
|
21
|
+
this.palette = palette;
|
|
22
|
+
}
|
|
23
|
+
draw(frame) {
|
|
24
|
+
// The frame always carries the default colours.
|
|
25
|
+
this.background = hex(frame.background);
|
|
26
|
+
this.foreground = hex(frame.foreground);
|
|
27
|
+
if (frame.full || frame.cols !== this.cols) {
|
|
28
|
+
this.cols = frame.cols;
|
|
29
|
+
this.rows.clear();
|
|
30
|
+
this.ctx.globalAlpha = 1;
|
|
31
|
+
this.ctx.fillStyle = this.background;
|
|
32
|
+
this.ctx.fillRect(0, 0, frame.cols * this.metrics.cellWidth, frame.rows * this.metrics.cellHeight);
|
|
33
|
+
}
|
|
34
|
+
const drawn = new Set();
|
|
35
|
+
for (const row of frame.lines) {
|
|
36
|
+
this.rows.set(row.y, row.cells);
|
|
37
|
+
this.drawRow(row);
|
|
38
|
+
drawn.add(row.y);
|
|
39
|
+
}
|
|
40
|
+
// The cursor's old row is redrawn from the cache when the cursor
|
|
41
|
+
// moved or went away; the engine marks no row dirty for either.
|
|
42
|
+
const cursor = frame.cursor?.visible ? frame.cursor : undefined;
|
|
43
|
+
if (this.cursorRow !== undefined && this.cursorRow !== cursor?.y && !drawn.has(this.cursorRow)) {
|
|
44
|
+
const cells = this.rows.get(this.cursorRow);
|
|
45
|
+
if (cells)
|
|
46
|
+
this.drawRow({ y: this.cursorRow, cells });
|
|
47
|
+
}
|
|
48
|
+
this.cursorRow = undefined;
|
|
49
|
+
if (!cursor)
|
|
50
|
+
return;
|
|
51
|
+
if (!drawn.has(cursor.y)) {
|
|
52
|
+
const cells = this.rows.get(cursor.y);
|
|
53
|
+
if (cells)
|
|
54
|
+
this.drawRow({ y: cursor.y, cells });
|
|
55
|
+
}
|
|
56
|
+
this.drawCursor(cursor);
|
|
57
|
+
this.cursorRow = cursor.y;
|
|
58
|
+
}
|
|
59
|
+
drawRow(row) {
|
|
60
|
+
const { cellWidth, cellHeight, baseline } = this.metrics;
|
|
61
|
+
const y = row.y * cellHeight;
|
|
62
|
+
this.ctx.globalAlpha = 1;
|
|
63
|
+
this.ctx.fillStyle = this.background;
|
|
64
|
+
this.ctx.fillRect(0, y, this.cols * cellWidth, cellHeight);
|
|
65
|
+
for (let x = 0; x < row.cells.length; x++) {
|
|
66
|
+
const cell = row.cells[x];
|
|
67
|
+
if (cell.flags & FLAG.SPACER)
|
|
68
|
+
continue;
|
|
69
|
+
const width = cell.flags & FLAG.WIDE ? 2 : 1;
|
|
70
|
+
let fg = css(cell.fg, this.foreground);
|
|
71
|
+
let bg = css(cell.bg, this.background);
|
|
72
|
+
if (cell.flags & FLAG.INVERSE)
|
|
73
|
+
[fg, bg] = [bg, fg];
|
|
74
|
+
if (bg !== this.background) {
|
|
75
|
+
this.ctx.fillStyle = bg;
|
|
76
|
+
this.ctx.fillRect(x * cellWidth, y, width * cellWidth, cellHeight);
|
|
77
|
+
}
|
|
78
|
+
if (cell.flags & FLAG.INVISIBLE)
|
|
79
|
+
continue;
|
|
80
|
+
this.ctx.globalAlpha = cell.flags & FLAG.FAINT ? 0.6 : 1;
|
|
81
|
+
this.ctx.fillStyle = fg;
|
|
82
|
+
if (cell.text !== "" && cell.text !== " ") {
|
|
83
|
+
this.ctx.font = this.font(cell.flags);
|
|
84
|
+
this.ctx.fillText(cell.text, x * cellWidth, y + baseline);
|
|
85
|
+
}
|
|
86
|
+
if (cell.underline !== 0) {
|
|
87
|
+
this.ctx.fillRect(x * cellWidth, y + cellHeight - 2, width * cellWidth, 1);
|
|
88
|
+
}
|
|
89
|
+
if (cell.flags & FLAG.STRIKETHROUGH) {
|
|
90
|
+
this.ctx.fillRect(x * cellWidth, y + Math.floor(cellHeight / 2), width * cellWidth, 1);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
this.ctx.globalAlpha = 1;
|
|
94
|
+
}
|
|
95
|
+
font(flags) {
|
|
96
|
+
const bold = (flags & FLAG.BOLD) !== 0;
|
|
97
|
+
const italic = (flags & FLAG.ITALIC) !== 0;
|
|
98
|
+
if (bold && italic)
|
|
99
|
+
return this.metrics.boldItalicFont;
|
|
100
|
+
if (bold)
|
|
101
|
+
return this.metrics.boldFont;
|
|
102
|
+
if (italic)
|
|
103
|
+
return this.metrics.italicFont;
|
|
104
|
+
return this.metrics.font;
|
|
105
|
+
}
|
|
106
|
+
drawCursor(cursor) {
|
|
107
|
+
const { cellWidth, cellHeight, baseline } = this.metrics;
|
|
108
|
+
const x = cursor.x * cellWidth;
|
|
109
|
+
const y = cursor.y * cellHeight;
|
|
110
|
+
const color = css(cursor.color, this.palette.cursor);
|
|
111
|
+
this.ctx.globalAlpha = 1;
|
|
112
|
+
this.ctx.fillStyle = color;
|
|
113
|
+
switch (cursor.style) {
|
|
114
|
+
case "bar":
|
|
115
|
+
this.ctx.fillRect(x, y, 2, cellHeight);
|
|
116
|
+
return;
|
|
117
|
+
case "underline":
|
|
118
|
+
this.ctx.fillRect(x, y + cellHeight - 2, cellWidth, 2);
|
|
119
|
+
return;
|
|
120
|
+
case "block_hollow":
|
|
121
|
+
this.ctx.fillRect(x, y, cellWidth, 1);
|
|
122
|
+
this.ctx.fillRect(x, y + cellHeight - 1, cellWidth, 1);
|
|
123
|
+
this.ctx.fillRect(x, y, 1, cellHeight);
|
|
124
|
+
this.ctx.fillRect(x + cellWidth - 1, y, 1, cellHeight);
|
|
125
|
+
return;
|
|
126
|
+
default: {
|
|
127
|
+
this.ctx.fillRect(x, y, cellWidth, cellHeight);
|
|
128
|
+
// The cell's text in the background colour, over the block.
|
|
129
|
+
const cell = this.rows.get(cursor.y)?.[cursor.x];
|
|
130
|
+
if (cell && cell.text !== "" && cell.text !== " ") {
|
|
131
|
+
this.ctx.fillStyle = this.background;
|
|
132
|
+
this.ctx.font = this.font(cell.flags);
|
|
133
|
+
this.ctx.fillText(cell.text, x, y + baseline);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
package/ghostty-vt.wasm
ADDED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjermundgaraba/clankermux",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/gjermundgaraba/clankermux.git",
|
|
8
|
+
"directory": "web/packages/clankermux"
|
|
9
|
+
},
|
|
10
|
+
"type": "module",
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/client/index.d.ts",
|
|
15
|
+
"default": "./dist/client/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./worker": {
|
|
18
|
+
"types": "./dist/client/worker.d.ts",
|
|
19
|
+
"default": "./dist/client/worker.js"
|
|
20
|
+
},
|
|
21
|
+
"./proto": {
|
|
22
|
+
"types": "./dist/proto/index.d.ts",
|
|
23
|
+
"default": "./dist/proto/index.js"
|
|
24
|
+
},
|
|
25
|
+
"./engine": {
|
|
26
|
+
"types": "./dist/engine/index.d.ts",
|
|
27
|
+
"default": "./dist/engine/index.js"
|
|
28
|
+
},
|
|
29
|
+
"./renderer": {
|
|
30
|
+
"types": "./dist/renderer/index.d.ts",
|
|
31
|
+
"default": "./dist/renderer/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./ghostty-vt.wasm": "./ghostty-vt.wasm"
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"dist",
|
|
37
|
+
"ghostty-vt.wasm"
|
|
38
|
+
],
|
|
39
|
+
"publishConfig": {
|
|
40
|
+
"access": "public"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"ws": "^8.18.0",
|
|
44
|
+
"@types/ws": "^8.18.0"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"typecheck": "tsc -p tsconfig.json && tsc -p tsconfig.worker.json",
|
|
48
|
+
"test": "vitest run",
|
|
49
|
+
"build": "tsc -p tsconfig.build.json"
|
|
50
|
+
}
|
|
6
51
|
}
|