rucan 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.
@@ -0,0 +1,161 @@
1
+ function invalid(path, expectation) {
2
+ throw new Error(`${path}: expected ${expectation}`);
3
+ }
4
+ function record(value, path, keys) {
5
+ if (typeof value !== "object" || !value || Array.isArray(value))
6
+ invalid(path, "a mapping");
7
+ const result = { ...value };
8
+ for (const key of Object.keys(result)) {
9
+ if (!keys.includes(key))
10
+ throw new Error(`${path}.${key}: unknown field`);
11
+ }
12
+ return result;
13
+ }
14
+ function optional(value, fallback) {
15
+ return value === undefined ? fallback : value;
16
+ }
17
+ function choice(value, path, choices) {
18
+ return (choices.find((item) => item === value) ?? invalid(path, choices.join(" | ")));
19
+ }
20
+ function singleLine(value, path) {
21
+ if (typeof value !== "string" || !value.trim() || /\p{Cc}/u.test(value)) {
22
+ invalid(path, "a nonempty single-line string without control characters");
23
+ }
24
+ return value;
25
+ }
26
+ export function validateConfig(value) {
27
+ const root = record(value, "config", [
28
+ "version",
29
+ "defaults",
30
+ "terminal",
31
+ "updates",
32
+ "explorer",
33
+ "workspaces",
34
+ ]);
35
+ if (root.version !== 1)
36
+ invalid("version", "1 (supported configuration version)");
37
+ const rawDefaults = record(optional(root.defaults, {}), "defaults", [
38
+ "backend",
39
+ "persistence",
40
+ "on_exit",
41
+ "on_disconnect",
42
+ ]);
43
+ const defaults = {
44
+ backend: choice(optional(rawDefaults.backend, "native"), "defaults.backend", ["native", "tmux"]),
45
+ persistence: choice(optional(rawDefaults.persistence, "temporary"), "defaults.persistence", ["temporary", "persistent"]),
46
+ on_exit: choice(optional(rawDefaults.on_exit, "ask"), "defaults.on_exit", [
47
+ "ask",
48
+ "keep-all",
49
+ "keep-pinned",
50
+ "terminate",
51
+ ]),
52
+ on_disconnect: choice(optional(rawDefaults.on_disconnect, "preserve"), "defaults.on_disconnect", ["preserve"]),
53
+ };
54
+ const terminal = record(optional(root.terminal, {}), "terminal", [
55
+ "scrollback_lines",
56
+ "prefix_key",
57
+ ]);
58
+ const scrollback = optional(terminal.scrollback_lines, 10000);
59
+ if (typeof scrollback !== "number" ||
60
+ !Number.isInteger(scrollback) ||
61
+ scrollback < 0 ||
62
+ scrollback > 10000) {
63
+ invalid("terminal.scrollback_lines", "an integer from 0 to 10000");
64
+ }
65
+ const prefix = optional(terminal.prefix_key, "ctrl+g");
66
+ if (typeof prefix !== "string" || !/^ctrl\+[a-z]$/.test(prefix))
67
+ invalid("terminal.prefix_key", "ctrl+ followed by a lowercase letter");
68
+ const updates = record(optional(root.updates, {}), "updates", [
69
+ "check_on_startup",
70
+ "channel",
71
+ ]);
72
+ const check = optional(updates.check_on_startup, true);
73
+ if (typeof check !== "boolean")
74
+ invalid("updates.check_on_startup", "a boolean");
75
+ const workspaces = optional(root.workspaces, []);
76
+ if (!Array.isArray(workspaces))
77
+ invalid("workspaces", "a sequence");
78
+ const rawExplorer = record(optional(root.explorer, {}), "explorer", [
79
+ "exclusions",
80
+ "editor",
81
+ ]);
82
+ const editor = record(optional(rawExplorer.editor, {}), "explorer.editor", [
83
+ "command",
84
+ "args",
85
+ ]);
86
+ const allowedExclusions = optional(rawExplorer.exclusions, [
87
+ ".git",
88
+ "node_modules",
89
+ "target",
90
+ ".venv",
91
+ ]);
92
+ if (!Array.isArray(allowedExclusions) || allowedExclusions.length > 64)
93
+ invalid("explorer.exclusions", "up to 64 directory names");
94
+ const allowedEditorArgs = optional(editor.args, []);
95
+ if (!Array.isArray(allowedEditorArgs) || allowedEditorArgs.length > 32)
96
+ invalid("explorer.editor.args", "up to 32 arguments");
97
+ const explorer = {
98
+ exclusions: allowedExclusions.map((value, index) => {
99
+ const path = `explorer.exclusions[${index}]`;
100
+ const name = singleLine(value, path);
101
+ if (name === "." ||
102
+ name === ".." ||
103
+ name.includes("/") ||
104
+ Buffer.byteLength(name) > 255)
105
+ invalid(path, "a directory name");
106
+ return name;
107
+ }),
108
+ editor: {
109
+ command: singleLine(optional(editor.command, "vi"), "explorer.editor.command"),
110
+ args: allowedEditorArgs.map((value, index) => singleLine(value, `explorer.editor.args[${index}]`)),
111
+ },
112
+ };
113
+ const names = new Set();
114
+ return {
115
+ version: 1,
116
+ defaults,
117
+ explorer,
118
+ terminal: { scrollback_lines: scrollback, prefix_key: prefix },
119
+ updates: {
120
+ check_on_startup: check,
121
+ channel: choice(optional(updates.channel, "stable"), "updates.channel", [
122
+ "stable",
123
+ ]),
124
+ },
125
+ workspaces: workspaces.map((entry, index) => {
126
+ const path = `workspaces[${index}]`;
127
+ const item = record(entry, path, [
128
+ "name",
129
+ "cwd",
130
+ "command",
131
+ "backend",
132
+ "persistence",
133
+ "host",
134
+ "session",
135
+ ]);
136
+ const name = singleLine(item.name, `${path}.name`);
137
+ if (names.has(name))
138
+ throw new Error(`${path}.name: duplicate workspace "${name}"`);
139
+ names.add(name);
140
+ const workspace = {
141
+ name,
142
+ cwd: singleLine(optional(item.cwd, "~"), `${path}.cwd`),
143
+ command: singleLine(optional(item.command, "bash"), `${path}.command`),
144
+ backend: choice(optional(item.backend, defaults.backend), `${path}.backend`, ["native", "tmux"]),
145
+ persistence: choice(optional(item.persistence, defaults.persistence), `${path}.persistence`, ["temporary", "persistent"]),
146
+ };
147
+ if (item.host !== undefined) {
148
+ const host = singleLine(item.host, `${path}.host`);
149
+ if (!/^[a-zA-Z0-9][a-zA-Z0-9._-]*$/.test(host))
150
+ invalid(`${path}.host`, "an OpenSSH alias or DNS hostname");
151
+ workspace.host = host;
152
+ }
153
+ if (item.session !== undefined) {
154
+ if (workspace.backend !== "tmux")
155
+ invalid(`${path}.session`, "a workspace with backend tmux");
156
+ workspace.session = singleLine(item.session, `${path}.session`);
157
+ }
158
+ return workspace;
159
+ }),
160
+ };
161
+ }
@@ -0,0 +1,220 @@
1
+ import { posix } from "node:path";
2
+ function record(value) {
3
+ if (typeof value !== "object" || value === null || Array.isArray(value))
4
+ throw new Error("Invalid filesystem response");
5
+ return { ...value };
6
+ }
7
+ function decodeDirectory(value) {
8
+ const data = record(value);
9
+ if (typeof data.path !== "string" ||
10
+ !posix.isAbsolute(data.path) ||
11
+ !Array.isArray(data.entries) ||
12
+ data.entries.length > 500 ||
13
+ typeof data.truncated !== "boolean") {
14
+ throw new Error("Invalid directory listing");
15
+ }
16
+ const entries = data.entries.map((current) => {
17
+ const entry = record(current);
18
+ if (typeof entry.name !== "string" ||
19
+ !entry.name ||
20
+ entry.name === "." ||
21
+ entry.name === ".." ||
22
+ /[/\0]/u.test(entry.name) ||
23
+ !(entry.kind === "directory" ||
24
+ entry.kind === "file" ||
25
+ entry.kind === "symlink" ||
26
+ entry.kind === "other")) {
27
+ throw new Error("Invalid directory entry");
28
+ }
29
+ return { name: entry.name, kind: entry.kind };
30
+ });
31
+ return { path: data.path, entries, truncated: data.truncated };
32
+ }
33
+ const cacheTtl = 5000;
34
+ export class Explorer {
35
+ #connector;
36
+ #exclusions;
37
+ #onChange;
38
+ #connection;
39
+ #generation = 0;
40
+ #busy = false;
41
+ #root = "~";
42
+ #index = 0;
43
+ #open = new Set();
44
+ #cache = new Map();
45
+ #preview = [];
46
+ #status = "";
47
+ constructor(connector, exclusions, onChange) {
48
+ this.#connector = connector;
49
+ this.#exclusions = exclusions;
50
+ this.#onChange = onChange;
51
+ }
52
+ enter(path) {
53
+ this.#root = path;
54
+ this.#index = 0;
55
+ this.#open.clear();
56
+ this.#preview = [];
57
+ this.refresh(false);
58
+ }
59
+ leave() {
60
+ this.#generation++;
61
+ this.#busy = false;
62
+ this.#connection?.close();
63
+ this.#connection = undefined;
64
+ }
65
+ refresh(force = true) {
66
+ const root = this.#root;
67
+ if (force) {
68
+ this.#cache.delete(root);
69
+ this.#open.clear();
70
+ }
71
+ this.#load(root, true);
72
+ }
73
+ move(step) {
74
+ this.#index = Math.max(0, Math.min(this.#index + step, this.#visible().length - 1));
75
+ }
76
+ get file() {
77
+ const entry = this.#visible()[this.#index];
78
+ return entry?.kind === "file" ? entry.path : undefined;
79
+ }
80
+ activate() {
81
+ const entry = this.#visible()[this.#index];
82
+ if (!entry)
83
+ return;
84
+ if (entry.kind === "directory") {
85
+ if (this.#open.delete(entry.path))
86
+ this.#onChange();
87
+ else
88
+ this.#load(entry.path, false);
89
+ }
90
+ else if (entry.kind === "file") {
91
+ this.#fetch(async (client) => {
92
+ const preview = record(await client.request({ type: "fs-preview", path: entry.path }));
93
+ if (typeof preview.text !== "string" ||
94
+ typeof preview.binary !== "boolean" ||
95
+ typeof preview.truncated !== "boolean") {
96
+ throw new Error("Invalid file preview");
97
+ }
98
+ const text = preview.text;
99
+ return () => {
100
+ this.#preview = [
101
+ entry.path,
102
+ ...(preview.binary ? ["Binary file"] : text.split("\n")),
103
+ ];
104
+ this.#status =
105
+ preview.truncated === true ? "Preview limited to 64 KiB" : "";
106
+ };
107
+ });
108
+ }
109
+ }
110
+ layout(height) {
111
+ const rows = this.#visible();
112
+ const first = Math.max(0, this.#index - Math.max(0, height - 5));
113
+ const entries = rows
114
+ .slice(first, first + Math.max(1, height - 3))
115
+ .map((entry, offset) => {
116
+ const selection = first + offset === this.#index ? "›" : " ";
117
+ const kind = entry.kind === "directory"
118
+ ? this.#open.has(entry.path)
119
+ ? "▾ "
120
+ : "▸ "
121
+ : entry.kind === "symlink"
122
+ ? "↗ "
123
+ : " ";
124
+ return (selection + " ".repeat(Math.min(entry.depth, 20)) + kind + entry.name);
125
+ });
126
+ return {
127
+ sidebar: ["EXPLORER", this.#root, ...entries],
128
+ content: [this.#status, ...this.#preview],
129
+ };
130
+ }
131
+ #visible() {
132
+ const rows = [];
133
+ const visit = (path, depth) => {
134
+ if (depth >= 64)
135
+ return;
136
+ for (const entry of this.#cache.get(path)?.value.entries ?? []) {
137
+ const nested = posix.join(path, entry.name);
138
+ rows.push({ ...entry, path: nested, depth });
139
+ if (this.#open.has(nested))
140
+ visit(nested, depth + 1);
141
+ }
142
+ };
143
+ visit(this.#root, 0);
144
+ return rows;
145
+ }
146
+ #load(path, root) {
147
+ const use = (directory) => {
148
+ if (root)
149
+ this.#root = directory.path;
150
+ else
151
+ this.#open.add(directory.path);
152
+ this.#status = directory.truncated
153
+ ? "Directory listing limited to 500 entries"
154
+ : "";
155
+ };
156
+ const cached = this.#cache.get(path);
157
+ if (cached && cached.expires > Date.now()) {
158
+ use(cached.value);
159
+ this.#onChange();
160
+ return;
161
+ }
162
+ this.#fetch(async (client) => {
163
+ const directory = decodeDirectory(await client.request({
164
+ type: "fs-list",
165
+ path,
166
+ exclusions: this.#exclusions,
167
+ }));
168
+ return () => {
169
+ this.#cache.delete(directory.path);
170
+ this.#cache.set(directory.path, {
171
+ value: directory,
172
+ expires: Date.now() + cacheTtl,
173
+ });
174
+ while (this.#cache.size > 48) {
175
+ const first = [...this.#cache.keys()].find((key) => key !== this.#root && key !== directory.path);
176
+ if (first === undefined)
177
+ break;
178
+ this.#cache.delete(first);
179
+ this.#open.delete(first);
180
+ }
181
+ use(directory);
182
+ };
183
+ });
184
+ }
185
+ #fetch(operation) {
186
+ if (this.#busy)
187
+ this.leave();
188
+ this.#busy = true;
189
+ const revision = this.#generation;
190
+ this.#status = "Loading";
191
+ this.#onChange();
192
+ void (async () => {
193
+ let connection;
194
+ try {
195
+ connection =
196
+ this.#connection?.closed === false
197
+ ? this.#connection
198
+ : await this.#connector();
199
+ if (revision !== this.#generation) {
200
+ connection.close();
201
+ return;
202
+ }
203
+ this.#connection = connection;
204
+ const apply = await operation(connection);
205
+ if (revision === this.#generation)
206
+ apply();
207
+ }
208
+ catch (error) {
209
+ if (revision === this.#generation)
210
+ this.#status = error instanceof Error ? error.message : String(error);
211
+ }
212
+ finally {
213
+ if (revision === this.#generation) {
214
+ this.#busy = false;
215
+ this.#onChange();
216
+ }
217
+ }
218
+ })();
219
+ }
220
+ }
package/dist/main.js ADDED
@@ -0,0 +1,62 @@
1
+ #!/usr/bin/env node
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { render } from "ink";
4
+ import { version } from "./release/version.js";
5
+ import { runDoctorCommand } from "./commands/doctor.js";
6
+ import { runUpdateCommand } from "./commands/update.js";
7
+ import { runTmuxCommand } from "./commands/tmux.js";
8
+ import { runRemoteCommand } from "./commands/remote.js";
9
+ import { runSessionCommand } from "./commands/sessions.js";
10
+ import { configPath, loadConfig } from "./config/load.js";
11
+ import { runInteractive } from "./terminal/interactive.js";
12
+ import { WorkspaceView } from "./ui/workspace.js";
13
+ async function main(args) {
14
+ if (args.length === 1 && args[0] === "--version") {
15
+ console.log(`rucan ${version}`);
16
+ return;
17
+ }
18
+ if (args.length === 1 && args[0] === "--help") {
19
+ console.log("Usage: rucan [attach | remote | tmux | update | doctor | config | ls | status | new | pin | unpin | detach | rename | kill | shutdown | --fixture | --help | --version]\n\nOpen the workspace UI or control a local terminal session.");
20
+ return;
21
+ }
22
+ if (args.length === 1 && args[0] === "config") {
23
+ await loadConfig();
24
+ console.log(configPath());
25
+ return;
26
+ }
27
+ if ((await runRemoteCommand(args)) ||
28
+ (await runTmuxCommand(args)) ||
29
+ (await runUpdateCommand(args)) ||
30
+ (await runDoctorCommand(args)) ||
31
+ (await runSessionCommand(args)))
32
+ return;
33
+ if (args[0] === "remote" &&
34
+ args[1] === "open" &&
35
+ args[2] &&
36
+ args.length <= 4) {
37
+ await runInteractive(await loadConfig(), args[3], args[2]);
38
+ return;
39
+ }
40
+ if (args.length === 0 || (args.length === 2 && args[0] === "attach")) {
41
+ const target = args[1];
42
+ const separator = target?.indexOf(":") ?? -1;
43
+ if (target && separator > 0) {
44
+ await runInteractive(await loadConfig(), target.slice(separator + 1), target.slice(0, separator));
45
+ }
46
+ else
47
+ await runInteractive(await loadConfig(), target);
48
+ return;
49
+ }
50
+ if (args.length !== 1 || args[0] !== "--fixture")
51
+ throw new Error("Unknown arguments. Run rucan --help.");
52
+ if (!process.stdin.isTTY || !process.stdout.isTTY)
53
+ throw new Error("The workspace UI requires a terminal.");
54
+ const config = await loadConfig();
55
+ await render(_jsx(WorkspaceView, { config: config }), {
56
+ alternateScreen: true,
57
+ }).waitUntilExit();
58
+ }
59
+ main(process.argv.slice(2)).catch((error) => {
60
+ console.error(`rucan: ${error instanceof Error ? error.message : String(error)}`);
61
+ process.exitCode = 1;
62
+ });
@@ -0,0 +1,124 @@
1
+ import { once } from "node:events";
2
+ import { createConnection } from "node:net";
3
+ import { decodeFrames, encodeFrame, maxFrameBytes, } from "./framing.js";
4
+ function isRecord(value) {
5
+ return typeof value === "object" && value !== null && !Array.isArray(value);
6
+ }
7
+ export class SessionClient {
8
+ #socket;
9
+ #incoming;
10
+ #requestId = 0;
11
+ #pending = false;
12
+ constructor(socket) {
13
+ this.#socket = socket;
14
+ this.#incoming = decodeFrames(socket);
15
+ socket.on("error", () => {
16
+ // The async iterator reports stream errors to the pending exchange.
17
+ });
18
+ }
19
+ static async connect(path) {
20
+ const socket = createConnection(path);
21
+ try {
22
+ await once(socket, "connect", { signal: AbortSignal.timeout(5000) });
23
+ return await SessionClient.negotiate(socket);
24
+ }
25
+ catch (error) {
26
+ socket.destroy();
27
+ throw error;
28
+ }
29
+ }
30
+ static async negotiate(stream, deadline = 5000) {
31
+ const client = new SessionClient(stream);
32
+ try {
33
+ const reply = await client.#exchange(1, Buffer.from(JSON.stringify({
34
+ type: "hello",
35
+ minVersion: 1,
36
+ maxVersion: 1,
37
+ capabilities: ["native-session"],
38
+ })), deadline);
39
+ if (reply.type === "error" && reply.code === "incompatible-version") {
40
+ throw new Error("Agent protocol is incompatible with this client");
41
+ }
42
+ if (reply.type !== "welcome" ||
43
+ reply.version !== 1 ||
44
+ typeof reply.maxFrameBytes !== "number" ||
45
+ reply.maxFrameBytes !== maxFrameBytes ||
46
+ !Array.isArray(reply.capabilities) ||
47
+ !reply.capabilities.includes("native-session")) {
48
+ throw new Error("Invalid agent negotiation response");
49
+ }
50
+ return client;
51
+ }
52
+ catch (error) {
53
+ client.close();
54
+ throw error;
55
+ }
56
+ }
57
+ async #exchange(kind, bytes, deadline = 5000) {
58
+ if (this.#pending)
59
+ throw new Error("An agent request is already in progress");
60
+ this.#pending = true;
61
+ const expires = setTimeout(() => this.#socket.destroy(new Error("Agent request timed out")), deadline);
62
+ try {
63
+ const frame = encodeFrame(kind, bytes);
64
+ await new Promise((resolve, reject) => {
65
+ this.#socket.write(frame, (error) => {
66
+ if (error)
67
+ reject(error);
68
+ else
69
+ resolve();
70
+ });
71
+ });
72
+ const reply = await this.#incoming.next();
73
+ if (reply.done || reply.value.kind !== 1)
74
+ throw new Error("Missing agent control response");
75
+ const data = JSON.parse(new TextDecoder("utf-8", { fatal: true }).decode(reply.value.payload));
76
+ if (!isRecord(data))
77
+ throw new Error("Invalid agent control response");
78
+ return data;
79
+ }
80
+ catch (error) {
81
+ this.close();
82
+ throw error;
83
+ }
84
+ finally {
85
+ clearTimeout(expires);
86
+ this.#pending = false;
87
+ }
88
+ }
89
+ async #request(id, kind, payload, deadline) {
90
+ const reply = await this.#exchange(kind, payload, deadline);
91
+ if (reply.id !== id || typeof reply.ok !== "boolean") {
92
+ this.close();
93
+ throw new Error("Agent response does not match the request");
94
+ }
95
+ if (!reply.ok)
96
+ throw new Error(typeof reply.error === "string"
97
+ ? reply.error
98
+ : "Invalid agent error response");
99
+ return reply.value;
100
+ }
101
+ async request(operation) {
102
+ const id = (this.#requestId = (this.#requestId + 1) >>> 0);
103
+ return this.#request(id, 1, Buffer.from(JSON.stringify({ id, operation })), operation.type === "watch" ? 30_000 : undefined);
104
+ }
105
+ async sendInput(session, input) {
106
+ if (!/^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$/iu.test(session)) {
107
+ throw new Error("Invalid session ID");
108
+ }
109
+ if (input.length > 8192)
110
+ throw new Error("Input chunk exceeds 8192 bytes");
111
+ const id = (this.#requestId = (this.#requestId + 1) >>> 0);
112
+ const payload = Buffer.allocUnsafe(20 + input.length);
113
+ payload.writeUInt32BE(id);
114
+ payload.set(Buffer.from(session.replaceAll("-", ""), "hex"), 4);
115
+ payload.set(input, 20);
116
+ await this.#request(id, 2, payload);
117
+ }
118
+ get closed() {
119
+ return this.#socket.destroyed;
120
+ }
121
+ close() {
122
+ this.#socket.destroy();
123
+ }
124
+ }
@@ -0,0 +1,57 @@
1
+ export const maxFrameBytes = 1024 * 1024;
2
+ function validateLength(length) {
3
+ if (length < 1 || length > maxFrameBytes) {
4
+ throw new Error(`Invalid IPC frame length ${length}`);
5
+ }
6
+ }
7
+ export function encodeFrame(kind, payload) {
8
+ if (!Number.isInteger(kind) || kind < 1 || kind > 255) {
9
+ throw new Error(`Invalid IPC frame kind ${kind}`);
10
+ }
11
+ const length = payload.length + 1;
12
+ validateLength(length);
13
+ const bytes = Buffer.allocUnsafe(length + 4);
14
+ bytes.writeUInt32BE(length);
15
+ bytes[4] = kind;
16
+ bytes.set(payload, 5);
17
+ return bytes;
18
+ }
19
+ /** Read frames as the consumer requests them. Each frame owns its bounded body. */
20
+ export async function* decodeFrames(chunks) {
21
+ const header = Buffer.alloc(4);
22
+ let headerBytes = 0;
23
+ let body;
24
+ let bodyBytes = 0;
25
+ for await (const chunk of chunks) {
26
+ let offset = 0;
27
+ while (offset < chunk.length) {
28
+ if (!body) {
29
+ const count = Math.min(4 - headerBytes, chunk.length - offset);
30
+ header.set(chunk.subarray(offset, offset + count), headerBytes);
31
+ offset += count;
32
+ headerBytes += count;
33
+ if (headerBytes < 4)
34
+ continue;
35
+ const length = header.readUInt32BE();
36
+ validateLength(length);
37
+ body = Buffer.allocUnsafe(length);
38
+ }
39
+ const count = Math.min(body.length - bodyBytes, chunk.length - offset);
40
+ body.set(chunk.subarray(offset, offset + count), bodyBytes);
41
+ offset += count;
42
+ bodyBytes += count;
43
+ if (bodyBytes === body.length) {
44
+ const kind = body.readUInt8();
45
+ if (kind === 0)
46
+ throw new Error("Invalid IPC frame kind 0");
47
+ const frame = { kind, payload: body.subarray(1) };
48
+ body = undefined;
49
+ headerBytes = 0;
50
+ bodyBytes = 0;
51
+ yield frame;
52
+ }
53
+ }
54
+ }
55
+ if (headerBytes !== 0)
56
+ throw new Error("Truncated IPC frame");
57
+ }
@@ -0,0 +1 @@
1
+ export {};