@preapexis/honeycomb 0.0.0-stage → 1.1.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/LICENSE +15 -0
- package/README.md +443 -2
- package/bin/bee.js +18 -0
- package/package.json +66 -4
- package/plan/tools/tool-parity.md +61 -0
- package/src/commands/btw.ts +95 -0
- package/src/commands/claude-migrate.ts +63 -0
- package/src/commands/diff.ts +119 -0
- package/src/commands/discovery.ts +112 -0
- package/src/commands/doctor.ts +80 -0
- package/src/commands/goal/index.ts +254 -0
- package/src/commands/goal/report.ts +66 -0
- package/src/commands/goal/state.ts +74 -0
- package/src/commands/hooks.ts +38 -0
- package/src/commands/index.ts +13 -0
- package/src/commands/init.ts +66 -0
- package/src/commands/memory.ts +70 -0
- package/src/commands/plan.ts +36 -0
- package/src/commands/review-report.ts +23 -0
- package/src/commands/review.ts +21 -0
- package/src/commands/rewind-history.ts +40 -0
- package/src/commands/security-review.ts +138 -0
- package/src/commands/simplify.ts +21 -0
- package/src/commands/stats.ts +125 -0
- package/src/commands/tasks.ts +87 -0
- package/src/commands/verify.ts +21 -0
- package/src/commands/worktree.ts +138 -0
- package/src/config/bi.config.json +77 -0
- package/src/config/index.ts +47 -0
- package/src/config/limits.ts +12 -0
- package/src/config/path-rules.ts +19 -0
- package/src/config/project.ts +133 -0
- package/src/extension/ask-user.ts +52 -0
- package/src/extension/index.ts +4 -0
- package/src/extension/lsp-install.ts +95 -0
- package/src/extension/lsp-menu.ts +90 -0
- package/src/extension/permission-modes/index.ts +337 -0
- package/src/extension/permission-modes/mcp-resources.ts +21 -0
- package/src/extension/permission-modes/metadata.ts +18 -0
- package/src/extension/permission-modes/paths.ts +44 -0
- package/src/extension/permission-modes/plan-note.ts +58 -0
- package/src/extension/permission-modes/policy.ts +236 -0
- package/src/extension/permission-modes/preview.ts +104 -0
- package/src/extension/permission-modes/rules.ts +67 -0
- package/src/extension/permission-modes/shell.ts +183 -0
- package/src/extension/permission-modes/state.ts +6 -0
- package/src/extension/quiet-startup.ts +25 -0
- package/src/extension/register-tools.ts +312 -0
- package/src/extension/scoped-rules.ts +91 -0
- package/src/extension/system-instruction.ts +74 -0
- package/src/index.ts +71 -0
- package/src/tools/advanced.ts +133 -0
- package/src/tools/agent.ts +379 -0
- package/src/tools/dispatcher.ts +80 -0
- package/src/tools/executable.ts +15 -0
- package/src/tools/execution.ts +289 -0
- package/src/tools/filesystem.ts +662 -0
- package/src/tools/git.ts +196 -0
- package/src/tools/glob.ts +81 -0
- package/src/tools/grep.ts +203 -0
- package/src/tools/image-read.ts +71 -0
- package/src/tools/index.ts +52 -0
- package/src/tools/lsp-client.ts +104 -0
- package/src/tools/lsp.ts +172 -0
- package/src/tools/memory-store.ts +77 -0
- package/src/tools/notebook.ts +169 -0
- package/src/tools/registry.ts +31 -0
- package/src/tools/shells.ts +63 -0
- package/src/tools/todo.ts +119 -0
- package/src/tools/undo-journal.ts +46 -0
- package/src/tools/web-fetch.ts +119 -0
- package/src/tools/web-search.ts +76 -0
- package/src/tools/write-file.ts +14 -0
- package/src/tui/editor.ts +65 -0
- package/src/tui/footer-stats.ts +35 -0
- package/src/tui/header.ts +81 -0
- package/src/tui/index.ts +124 -0
- package/src/tui/mascot.ts +59 -0
- package/src/tui/permission-dialog.ts +94 -0
- package/src/tui/permission-rules.ts +64 -0
- package/src/tui/tasks-panel.ts +84 -0
- package/src/tui/text.ts +55 -0
- package/src/tui/tool-renderer.ts +42 -0
- package/src/tui/working-feedback.ts +220 -0
- package/src/types/agent.ts +54 -0
- package/src/types/common.ts +1 -0
- package/src/types/execution.ts +24 -0
- package/src/types/index.ts +4 -0
- package/src/types/tools.ts +61 -0
- package/themes/catppuccin-mocha.json +80 -0
- package/themes/github-dark.json +80 -0
- package/themes/honeycomb-dark.json +81 -0
- package/themes/honeycomb-light.json +81 -0
- package/themes/tokyo-day.json +80 -0
- package/themes/tokyo-night.json +80 -0
- package/themes/vercel-black.json +80 -0
- package/themes/vercel-light.json +80 -0
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import { spawn, spawnSync } from 'node:child_process';
|
|
2
|
+
import { randomUUID } from 'node:crypto';
|
|
3
|
+
import { once } from 'node:events';
|
|
4
|
+
import path from 'node:path';
|
|
5
|
+
import { StringDecoder } from 'node:string_decoder';
|
|
6
|
+
import { availableShellTool, executionShells, shellCommand, shellForTool, type LaunchCommand, type ShellName, type Shells } from './shells.ts';
|
|
7
|
+
import { BI_CONFIG } from '../config/index.ts';
|
|
8
|
+
import { CONFIG_LIMITS, OUTPUT_TRUNCATION_MARKER } from '../config/limits.ts';
|
|
9
|
+
import type {
|
|
10
|
+
DispatchResult,
|
|
11
|
+
ExecutionOptions,
|
|
12
|
+
ManagedJob,
|
|
13
|
+
ManagedProcess,
|
|
14
|
+
Tool,
|
|
15
|
+
ToolContext,
|
|
16
|
+
ToolResult,
|
|
17
|
+
} from '../types/index.ts';
|
|
18
|
+
|
|
19
|
+
/** Shared process lifecycle for foreground and background execution tools. */
|
|
20
|
+
export class ProcessManager {
|
|
21
|
+
private readonly sessions = new Map<string, Map<string, ManagedProcess>>();
|
|
22
|
+
private readonly jobListeners = new Set<(sessionId: string, job: ManagedJob) => void>();
|
|
23
|
+
|
|
24
|
+
constructor(private readonly maxOutputChars = BI_CONFIG.output.maxChars, readonly shells: Shells = executionShells()) {
|
|
25
|
+
validateOutputLimit(maxOutputChars);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
start(command: string | LaunchCommand, context: ToolContext, kind: 'foreground' | 'background' = 'foreground'): { id: string; process: ManagedProcess } {
|
|
29
|
+
context.signal?.throwIfAborted();
|
|
30
|
+
if (!context.sessionId?.trim()) throw new Error('Managed execution requires a session ID');
|
|
31
|
+
const maxOutputChars = context.projectConfig?.output?.maxChars ?? this.maxOutputChars;
|
|
32
|
+
validateOutputLimit(maxOutputChars);
|
|
33
|
+
const launch = typeof command === 'string' ? shellCommand(command, shellForTool('terminal', this.shells), this.shells) : command;
|
|
34
|
+
const child = spawn(launch.executable, launch.args, {
|
|
35
|
+
cwd: context.workingDirectory,
|
|
36
|
+
env: process.env,
|
|
37
|
+
detached: process.platform !== 'win32',
|
|
38
|
+
windowsHide: true,
|
|
39
|
+
stdio: ['pipe', 'pipe', 'pipe'],
|
|
40
|
+
});
|
|
41
|
+
const managed: ManagedProcess = { child, output: '', background: kind === 'background' };
|
|
42
|
+
const stdoutDecoder = new StringDecoder('utf8');
|
|
43
|
+
const stderrDecoder = new StringDecoder('utf8');
|
|
44
|
+
child.stdout?.on('data', (chunk: Buffer) => appendOutput(managed, stdoutDecoder.write(chunk), maxOutputChars));
|
|
45
|
+
child.stderr?.on('data', (chunk: Buffer) => appendOutput(managed, stderrDecoder.write(chunk), maxOutputChars));
|
|
46
|
+
child.stdout?.on('end', () => appendOutput(managed, stdoutDecoder.end(), maxOutputChars));
|
|
47
|
+
child.stderr?.on('end', () => appendOutput(managed, stderrDecoder.end(), maxOutputChars));
|
|
48
|
+
const id = randomUUID();
|
|
49
|
+
child.on('close', (code, signal) => {
|
|
50
|
+
managed.exited = { code, signal };
|
|
51
|
+
if (!managed.background || this.get(id, context.sessionId) !== managed) return;
|
|
52
|
+
for (const listener of this.jobListeners) {
|
|
53
|
+
try { listener(context.sessionId, { id, exited: managed.exited }); } catch { /* Observers cannot affect process cleanup. */ }
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
child.on('error', () => { if (!child.pid) managed.exited = { code: null, signal: null }; });
|
|
57
|
+
child.stdin?.on('error', () => { /* The process may close stdin during a write. */ });
|
|
58
|
+
if (launch.stdinScript) child.stdin.write(launch.stdinScript);
|
|
59
|
+
const processes = this.sessions.get(context.sessionId) ?? new Map<string, ManagedProcess>();
|
|
60
|
+
processes.set(id, managed);
|
|
61
|
+
this.sessions.set(context.sessionId, processes);
|
|
62
|
+
return { id, process: managed };
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
get(id: string, sessionId: string): ManagedProcess | undefined {
|
|
66
|
+
return this.sessions.get(sessionId)?.get(id);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
list(sessionId: string): Array<{ id: string; running: boolean; output: string }> {
|
|
70
|
+
return Array.from(this.sessions.get(sessionId) ?? [], ([id, p]) => ({ id, running: !p.exited, output: p.output }));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/** List recent user-visible jobs without reading their captured output. */
|
|
74
|
+
listJobs(sessionId: string): ManagedJob[] {
|
|
75
|
+
const jobs: ManagedJob[] = [];
|
|
76
|
+
for (const [id, process] of this.sessions.get(sessionId) ?? []) {
|
|
77
|
+
if (!process.background) continue;
|
|
78
|
+
jobs.push({ id, exited: process.exited });
|
|
79
|
+
if (jobs.length > 100) jobs.shift();
|
|
80
|
+
}
|
|
81
|
+
return jobs.reverse();
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
onJobFinished(listener: (sessionId: string, job: ManagedJob) => void) {
|
|
85
|
+
this.jobListeners.add(listener);
|
|
86
|
+
return () => { this.jobListeners.delete(listener); };
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** This manager belongs to one extension instance; retire all its handles on a Pi boundary. */
|
|
90
|
+
clear(): void {
|
|
91
|
+
const sessions = [...this.sessions.values()];
|
|
92
|
+
this.sessions.clear();
|
|
93
|
+
for (const processes of sessions) for (const managed of processes.values()) {
|
|
94
|
+
terminate(managed, 'SIGKILL');
|
|
95
|
+
managed.child.stdin?.destroy();
|
|
96
|
+
managed.child.stdout?.destroy();
|
|
97
|
+
managed.child.stderr?.destroy();
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function terminate(managed: ManagedProcess, signal: NodeJS.Signals): boolean {
|
|
103
|
+
const { child } = managed;
|
|
104
|
+
if (managed.exited || !child.pid || child.exitCode !== null || child.signalCode !== null) return true;
|
|
105
|
+
try {
|
|
106
|
+
if (process.platform === 'win32') {
|
|
107
|
+
const taskkill = path.win32.join(process.env.SystemRoot ?? 'C:\\Windows', 'System32', 'taskkill.exe');
|
|
108
|
+
const result = spawnSync(taskkill, ['/PID', String(child.pid), '/T', '/F'], { windowsHide: true, timeout: 5000, stdio: 'ignore' });
|
|
109
|
+
if (result.status === 0) return true;
|
|
110
|
+
child.kill(signal);
|
|
111
|
+
return false;
|
|
112
|
+
}
|
|
113
|
+
process.kill(-child.pid, signal);
|
|
114
|
+
return true;
|
|
115
|
+
} catch (error) {
|
|
116
|
+
return (error as NodeJS.ErrnoException).code === 'ESRCH';
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function appendOutput(process: ManagedProcess, text: string, maxChars: number): void {
|
|
121
|
+
if (process.outputTruncated) return;
|
|
122
|
+
const remaining = maxChars - OUTPUT_TRUNCATION_MARKER.length - process.output.length;
|
|
123
|
+
if (text.length <= remaining) {
|
|
124
|
+
process.output += text;
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
let prefix = text.slice(0, Math.max(0, remaining));
|
|
128
|
+
const lastCodeUnit = prefix.charCodeAt(prefix.length - 1);
|
|
129
|
+
if (lastCodeUnit >= 0xd800 && lastCodeUnit <= 0xdbff) prefix = prefix.slice(0, -1);
|
|
130
|
+
process.output += prefix + OUTPUT_TRUNCATION_MARKER;
|
|
131
|
+
process.outputTruncated = true;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
function validateOutputLimit(maxChars: number): void {
|
|
135
|
+
if (!Number.isInteger(maxChars) || maxChars < CONFIG_LIMITS.minOutputChars ||
|
|
136
|
+
maxChars > CONFIG_LIMITS.maxOutputChars) {
|
|
137
|
+
throw new Error(`output.maxChars must be an integer from ${CONFIG_LIMITS.minOutputChars} to ${CONFIG_LIMITS.maxOutputChars}`);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export function createExecutionTools(
|
|
142
|
+
manager: ProcessManager | undefined = undefined,
|
|
143
|
+
options: ExecutionOptions = {},
|
|
144
|
+
): { tools: Tool<any>[]; processManager: ProcessManager } {
|
|
145
|
+
const processManager = manager ?? new ProcessManager(options.maxOutputChars);
|
|
146
|
+
const timeoutMs = options.timeoutMs ?? 30_000;
|
|
147
|
+
const { shells } = processManager;
|
|
148
|
+
const preferred = shellForTool('terminal', shells);
|
|
149
|
+
const authorize = async (command: string, context: ToolContext, shell: ShellName | 'node' | undefined) =>
|
|
150
|
+
options.allowCommand
|
|
151
|
+
? await options.allowCommand(command, context, shell)
|
|
152
|
+
: !!context.confirmCommand && await context.confirmCommand(command, shell);
|
|
153
|
+
const tools: Tool<any>[] = [
|
|
154
|
+
...(['bash', 'powershell'] as const).filter(name => shells[name]).map(name =>
|
|
155
|
+
execTool(name, `Run a ${name === 'bash' ? 'POSIX shell' : 'PowerShell'} command in the working directory`, { command: 'string' }, async (a, c) => {
|
|
156
|
+
const command = str(a, 'command');
|
|
157
|
+
if (!await authorize(command, c, name)) return { success: false, error: 'Command denied by execution policy' };
|
|
158
|
+
return waitForProcess(processManager.start(shellCommand(command, name, shells), c).process, timeoutMs, c.signal);
|
|
159
|
+
})),
|
|
160
|
+
execTool('background', `Start a ${preferred} command in the background`, { command: 'string' }, async (a, c) => {
|
|
161
|
+
const command = str(a, 'command');
|
|
162
|
+
if (!await authorize(command, c, preferred)) return { success: false, error: 'Command denied by execution policy' };
|
|
163
|
+
const { id, process } = processManager.start(command, c, 'background');
|
|
164
|
+
await once(process.child, 'spawn');
|
|
165
|
+
return { success: true, output: id, metadata: { processId: id } };
|
|
166
|
+
}),
|
|
167
|
+
execTool('process', 'Inspect a managed process and its captured output', { processId: 'string' }, async (a, c) => {
|
|
168
|
+
const p = processManager.get(str(a, 'processId'), c.sessionId);
|
|
169
|
+
if (!p) return { success: false, error: 'Process not found' };
|
|
170
|
+
return { success: true, output: p.output, metadata: {
|
|
171
|
+
running: !p.exited,
|
|
172
|
+
exitCode: p.exited?.code,
|
|
173
|
+
signal: p.exited?.signal,
|
|
174
|
+
outputTruncated: p.outputTruncated === true,
|
|
175
|
+
} };
|
|
176
|
+
}),
|
|
177
|
+
execTool('kill', 'Terminate a managed process', { processId: 'string', force: 'boolean?' }, async (a, c) => {
|
|
178
|
+
const id = str(a, 'processId');
|
|
179
|
+
const p = processManager.get(id, c.sessionId);
|
|
180
|
+
if (!p) return { success: false, error: 'Process not found' };
|
|
181
|
+
if (!terminate(p, a.force === true ? 'SIGKILL' : 'SIGTERM')) return { success: false, error: 'Could not terminate the managed process' };
|
|
182
|
+
return { success: true, output: `Termination requested for ${id}` };
|
|
183
|
+
}),
|
|
184
|
+
execTool('terminal', `Start a ${preferred} command or send input to a managed process`, { command: 'string?', processId: 'string?', input: 'string?' }, async (a, c) => {
|
|
185
|
+
if (typeof a.input === 'string') {
|
|
186
|
+
if (a.command !== undefined) return { success: false, error: 'Terminal command and input are mutually exclusive' };
|
|
187
|
+
const id = str(a, 'processId');
|
|
188
|
+
const p = processManager.get(id, c.sessionId);
|
|
189
|
+
if (!p?.child.stdin?.writable) return { success: false, error: 'Terminal process not found or stdin is closed' };
|
|
190
|
+
if (!c.confirmCommand || !await c.confirmCommand(`Send terminal input to ${a.processId}:\n${a.input}`, preferred)) return { success: false, error: 'Terminal input was not approved' };
|
|
191
|
+
if (c.signal?.aborted || processManager.get(id, c.sessionId) !== p || !p.child.stdin.writable) return { success: false, error: 'Terminal input cancelled or stdin closed' };
|
|
192
|
+
p.child.stdin.write(a.input);
|
|
193
|
+
return { success: true, output: p.output, metadata: {
|
|
194
|
+
running: !p.exited,
|
|
195
|
+
outputTruncated: p.outputTruncated === true,
|
|
196
|
+
} };
|
|
197
|
+
}
|
|
198
|
+
if (a.processId !== undefined || typeof a.command !== 'string') return { success: false, error: 'command is required to start a terminal' };
|
|
199
|
+
const command = str(a, 'command');
|
|
200
|
+
if (!await authorize(command, c, preferred)) return { success: false, error: 'Command denied by execution policy' };
|
|
201
|
+
const { id, process } = processManager.start(command, c, 'background');
|
|
202
|
+
await once(process.child, 'spawn');
|
|
203
|
+
return { success: true, output: id, metadata: { processId: id } };
|
|
204
|
+
}),
|
|
205
|
+
execTool('run_code', 'Execute JavaScript code with Node.js', { code: 'string' }, async (a, c) => {
|
|
206
|
+
const code = str(a, 'code');
|
|
207
|
+
if (!await authorize(nodeCommandPreview(code), c, 'node')) return { success: false, error: 'Code execution denied by execution policy' };
|
|
208
|
+
return waitForProcess(processManager.start({ executable: process.execPath, args: ['--input-type=module', '-e', code] }, c).process, timeoutMs, c.signal);
|
|
209
|
+
}),
|
|
210
|
+
];
|
|
211
|
+
return { tools: tools.filter(tool => availableShellTool(tool.name, shells)), processManager };
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
function execTool(
|
|
215
|
+
name: string,
|
|
216
|
+
description: string,
|
|
217
|
+
shape: Record<string, string>,
|
|
218
|
+
execute: (args: Record<string, unknown>, context: ToolContext) => Promise<ToolResult>,
|
|
219
|
+
): Tool<any> {
|
|
220
|
+
return {
|
|
221
|
+
name, description,
|
|
222
|
+
parameters: {
|
|
223
|
+
type: 'object',
|
|
224
|
+
properties: Object.fromEntries(Object.entries(shape).map(([k, v]) => [k, { type: v.replace('?', '') }])),
|
|
225
|
+
required: Object.entries(shape).filter(([, v]) => !v.endsWith('?')).map(([k]) => k),
|
|
226
|
+
additionalProperties: false,
|
|
227
|
+
},
|
|
228
|
+
validate: (value): value is Record<string, unknown> => value !== null && typeof value === 'object' &&
|
|
229
|
+
!Array.isArray(value) && Object.entries(shape).every(([k, v]) =>
|
|
230
|
+
(v.endsWith('?') && (value as Record<string, unknown>)[k] === undefined) ||
|
|
231
|
+
typeof (value as Record<string, unknown>)[k] === v.replace('?', '')),
|
|
232
|
+
execute,
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
async function waitForProcess(
|
|
237
|
+
process: ManagedProcess,
|
|
238
|
+
timeoutMs: number,
|
|
239
|
+
signal?: AbortSignal,
|
|
240
|
+
): Promise<DispatchResult> {
|
|
241
|
+
if (process.exited) return processResult(process);
|
|
242
|
+
return new Promise((resolve) => {
|
|
243
|
+
let settled = false;
|
|
244
|
+
const finish = (result: DispatchResult) => {
|
|
245
|
+
if (settled) return;
|
|
246
|
+
settled = true;
|
|
247
|
+
clearTimeout(timer);
|
|
248
|
+
signal?.removeEventListener('abort', abort);
|
|
249
|
+
process.child.removeListener('close', exited);
|
|
250
|
+
process.child.removeListener('error', failed);
|
|
251
|
+
resolve(result);
|
|
252
|
+
};
|
|
253
|
+
const timer = setTimeout(() => {
|
|
254
|
+
terminate(process, 'SIGKILL');
|
|
255
|
+
finish({ success: false, output: process.output, error: 'Execution timed out' });
|
|
256
|
+
}, timeoutMs);
|
|
257
|
+
const abort = () => {
|
|
258
|
+
terminate(process, 'SIGKILL');
|
|
259
|
+
finish({ success: false, error: 'Execution cancelled', errorCode: 'OPERATION_CANCELLED' });
|
|
260
|
+
};
|
|
261
|
+
const exited = () => finish(processResult(process));
|
|
262
|
+
const failed = () => finish({ success: false, error: 'Could not start the managed process' });
|
|
263
|
+
process.child.once('close', exited);
|
|
264
|
+
process.child.once('error', failed);
|
|
265
|
+
signal?.addEventListener('abort', abort, { once: true });
|
|
266
|
+
if (signal?.aborted) abort();
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
function processResult(process: ManagedProcess): ToolResult {
|
|
271
|
+
return {
|
|
272
|
+
success: process.exited?.code === 0,
|
|
273
|
+
output: process.output,
|
|
274
|
+
...(process.exited?.code === 0 ? {} : { error: `Process exited with code ${process.exited?.code ?? 'unknown'}` }),
|
|
275
|
+
metadata: {
|
|
276
|
+
exitCode: process.exited?.code,
|
|
277
|
+
signal: process.exited?.signal,
|
|
278
|
+
outputTruncated: process.outputTruncated === true,
|
|
279
|
+
},
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
function str(args: Record<string, unknown>, key: string): string {
|
|
284
|
+
return args[key] as string;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export function nodeCommandPreview(code: string): string {
|
|
288
|
+
return `node --input-type=module -e '${code.replaceAll("'", "'\\''")}'`;
|
|
289
|
+
}
|