@innovatorved/code-lab 0.1.7 → 0.1.9
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/ARCHITECTURE.md +34 -16
- package/README.md +17 -7
- package/dist/code-lab.css +683 -0
- package/dist/code-lab.d.ts +271 -1
- package/dist/code-lab.esm.js +3326 -193
- package/dist/code-lab.js +3286 -191
- package/dist/csp.d.ts +86 -0
- package/dist/diagnostics.d.ts +43 -0
- package/dist/extensions/guided-lab.esm.js +63 -0
- package/dist/extensions/guided-lab.js +63 -0
- package/dist/html.d.ts +24 -0
- package/dist/index.d.ts +9 -1
- package/dist/logger.d.ts +60 -0
- package/dist/preview-sw.js +604 -46
- package/dist/runtime.esm.js +169 -31
- package/dist/runtime.js +169 -31
- package/dist/schemas.d.ts +357 -25
- package/dist/schemas.esm.js +70 -0
- package/dist/schemas.js +70 -0
- package/dist/scm.d.ts +77 -0
- package/dist/search.d.ts +75 -0
- package/dist/shell.esm.js +333 -48
- package/dist/shell.js +333 -48
- package/dist/storage.d.ts +57 -0
- package/dist/terminal.esm.js +122 -7
- package/dist/terminal.js +122 -7
- package/dist/zip.d.ts +42 -0
- package/package.json +3 -1
- package/src/code-lab.css +683 -0
- package/src/csp.ts +588 -0
- package/src/diagnostics.ts +116 -0
- package/src/html.ts +88 -0
- package/src/index.ts +39 -1
- package/src/logger.ts +139 -0
- package/src/preview-sw.js +84 -46
- package/src/runtime.ts +67 -30
- package/src/schemas.ts +91 -1
- package/src/scm.ts +268 -0
- package/src/search.ts +389 -0
- package/src/shell.ts +231 -47
- package/src/storage.ts +377 -0
- package/src/terminal.ts +20 -6
- package/src/workbench.ts +1061 -107
- package/src/zip.ts +326 -0
package/ARCHITECTURE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# `@innovatorved/code-lab` Architecture (v0.1.
|
|
1
|
+
# `@innovatorved/code-lab` Architecture (v0.1.9)
|
|
2
2
|
|
|
3
|
-
`@innovatorved/code-lab` is an embeddable,
|
|
3
|
+
`@innovatorved/code-lab` is an embeddable, browser-native Node.js v22 + Bun v1.1 IDE, POSIX shell, PTY terminal, and virtual execution sandbox with self-contained browser bundles (zero runtime dependencies in `dist/*`; Zod schemas available under `@innovatorved/code-lab/schemas`).
|
|
4
4
|
|
|
5
5
|
It is designed around two strictly decoupled layers that can be used together (`dist/code-lab.js`) or independently (`dist/runtime.js`, `dist/shell.js`, `dist/terminal.js` for headless or modular execution):
|
|
6
6
|
|
|
@@ -11,23 +11,23 @@ It is designed around two strictly decoupled layers that can be used together (`
|
|
|
11
11
|
└──────────────────────────────────────┬──────────────────────────────────────┘
|
|
12
12
|
│
|
|
13
13
|
┌──────────────────────────────────────▼──────────────────────────────────────┐
|
|
14
|
-
│ UI Layer: CodeLabWorkbench (src/workbench.
|
|
14
|
+
│ UI Layer: CodeLabWorkbench (src/workbench.ts) │
|
|
15
15
|
│ ┌────────────────────┐ ┌─────────────────────────┐ ┌──────────────────┐ │
|
|
16
16
|
│ │ Guided Walkthrough │ │ Multi-File Explorer & │ │ Monaco / Native │ │
|
|
17
17
|
│ │ & Step Verification│ │ Solution Diff Viewer │ │ Code Editor │ │
|
|
18
18
|
│ └────────────────────┘ └─────────────────────────┘ └──────────────────┘ │
|
|
19
19
|
│ ┌────────────────────────────────────────────────────────────────────────┐ │
|
|
20
|
-
│ │
|
|
21
|
-
│ │ [Test Suite] [Terminal
|
|
20
|
+
│ │ 6-Tab Bottom Drawer: │ │
|
|
21
|
+
│ │ [Test Suite] [Terminal] [Ports] [Web Preview] [Network] [VFS] │ │
|
|
22
22
|
│ └───────────────────┬────────────────────────────────────┬───────────────┘ │
|
|
23
23
|
└──────────────────────┼────────────────────────────────────┼─────────────────┘
|
|
24
24
|
│ │
|
|
25
25
|
┌──────────────────────▼────────────────┐ ┌────────────────▼─────────────────┐
|
|
26
|
-
│ POSIX Shell & PTY (src/shell.
|
|
27
|
-
│ src/terminal.
|
|
26
|
+
│ POSIX Shell & PTY (src/shell.ts, │ │ Virtual Runtime Engine │
|
|
27
|
+
│ src/terminal.ts) │ │ (src/runtime.ts) │
|
|
28
28
|
│ • Recursive-descent AST parser │ │ • Web Worker pool + preemption │
|
|
29
29
|
│ • Pipes (|), redirects (>, >>, 2>&1) │ │ • In-memory POSIX VFS (/tmp, …) │
|
|
30
|
-
│ •
|
|
30
|
+
│ • 58 POSIX coreutils + git + jq │ │ • Node.js v22 (50 built-in mods)│
|
|
31
31
|
│ • Interactive PTY ANSI/256-color │ │ • Bun v1.1 (serve, sqlite, test)│
|
|
32
32
|
│ • Job table (ps, jobs, fg, bg, kill) │ │ • VirtualPortTable (127.0.0.1) │
|
|
33
33
|
└───────────────────────────────────────┘ └──────────────────────────────────┘
|
|
@@ -35,7 +35,7 @@ It is designed around two strictly decoupled layers that can be used together (`
|
|
|
35
35
|
|
|
36
36
|
---
|
|
37
37
|
|
|
38
|
-
## 1. Virtual Runtime Engine (`src/runtime.
|
|
38
|
+
## 1. Virtual Runtime Engine (`src/runtime.ts`)
|
|
39
39
|
|
|
40
40
|
`CodeLabRuntime` is a self-contained browser execution engine that requires **zero server infrastructure** and **zero COOP/COEP headers**.
|
|
41
41
|
|
|
@@ -50,7 +50,7 @@ It is designed around two strictly decoupled layers that can be used together (`
|
|
|
50
50
|
- Real-time byte size, UTF-8 preview, and 16-byte hex dump snapshots (`vfs.getSnapshot()`) for inspecting binary WAL logs, SSTables, and SQLite tables.
|
|
51
51
|
|
|
52
52
|
### 1.3 Node.js v22 & Bun v1.1 Shims
|
|
53
|
-
- **
|
|
53
|
+
- **50 Built-in Node.js Modules**: `fs`, `fs/promises`, `path`, `crypto`, `events`, `stream`, `stream/promises`, `stream/web`, `stream/consumers`, `http`, `https`, `http2`, `net`, `tls`, `dgram`, `zlib`, `util`, `util/types`, `assert`, `assert/strict`, `buffer`, `url`, `querystring`, `timers`, `timers/promises`, `perf_hooks`, `string_decoder`, `dns`, `dns/promises`, `os`, `child_process`, `worker_threads`, `vm`, `readline`, `readline/promises`, `async_hooks`, `diagnostics_channel`, `v8`, `domain`, `cluster`, `repl`, `inspector`, `trace_events`, `wasi`, `tty`, `constants`, `console`, `module`, `process`, and `node:test`.
|
|
54
54
|
- **Bun v1.1 API (`Bun`, `'bun'`, `'bun:test'`, `'bun:sqlite'`)**:
|
|
55
55
|
- `Bun.serve({ port, fetch, error })` binds directly to the shared `VirtualPortTable`.
|
|
56
56
|
- `Bun.file(path)` and `Bun.write(dest, data)` read and write directly to the POSIX VFS.
|
|
@@ -65,20 +65,20 @@ It is designed around two strictly decoupled layers that can be used together (`
|
|
|
65
65
|
|
|
66
66
|
---
|
|
67
67
|
|
|
68
|
-
## 2. POSIX Shell & Coreutils (`src/shell.
|
|
68
|
+
## 2. POSIX Shell & Coreutils (`src/shell.ts`)
|
|
69
69
|
|
|
70
70
|
`createPosixShell` implements a complete POSIX shell interpreter inside the browser:
|
|
71
71
|
- **Lexer & Recursive-Descent AST Parser**: Supports single/double quotes, escape sequences, pipelines (`cmd1 | cmd2 | cmd3`), logical operators (`&&`, `||`, `;`), background execution (`&`), I/O redirection (`>`, `>>`, `<`, `<<<`, `2>`, `2>&1`, `&>`), environment variable expansion (`$VAR`, `${VAR:-default}`, `${VAR:=default}`, `${#VAR}`, `$?`, `$$`), command substitution (`$(...)`), arithmetic expansion (`$((...))`), brace expansion (`{a,b,c}`, `{1..5}`), and globbing (`*`, `?`, `**`).
|
|
72
|
-
- **
|
|
72
|
+
- **58 Built-in Coreutils**:
|
|
73
73
|
- File & Directory: `ls`, `cat`, `head`, `tail`, `wc`, `cp`, `mv`, `rm`, `mkdir`, `rmdir`, `touch`, `ln`, `pwd`, `cd`, `find`, `tree`, `stat`, `file`, `du`, `df`, `chmod`, `chown`, `mktemp`, `basename`, `dirname`, `realpath`.
|
|
74
74
|
- Text & Data Processing: `grep`, `sed`, `awk`, `sort`, `uniq`, `cut`, `tr`, `tee`, `xargs`, `diff`, `jq`, `xxd`, `hexdump`, `base64`, `md5sum`, `sha256sum`.
|
|
75
75
|
- Networking, Process & Archive: `curl`, `nc`, `ping`, `dig`, `nslookup`, `lsof`, `netstat`, `ss`, `ps`, `top`, `kill`, `jobs`, `fg`, `bg`, `tar`, `gzip`, `gunzip`.
|
|
76
|
-
- Developer Toolchains: `node`, `bun`, `npm`, `pnpm`, `npx`, `bunx`, `tsc`, `git` (`init`, `status`, `add`, `commit`, `log`, `diff`, `branch`, `checkout`).
|
|
76
|
+
- Developer Toolchains: `node`, `bun`, `npm`, `pnpm`, `npx`, `bunx`, `tsc`, `git` (`init`, `status`, `add`, `commit`, `log`, `diff`, `branch`, `checkout`, `clone`).
|
|
77
77
|
- Web Preview: `serve` (built-in static dev server that transpiles TS/TSX/JSX to browser-native ESM and injects a jsDelivr `+esm` import map for bare specifiers).
|
|
78
78
|
|
|
79
79
|
---
|
|
80
80
|
|
|
81
|
-
## 3. PTY Terminal Engine (`src/terminal.
|
|
81
|
+
## 3. PTY Terminal Engine (`src/terminal.ts`)
|
|
82
82
|
|
|
83
83
|
`PTYTerminalEngine` provides an interactive terminal UI and ANSI/VT100 escape sequence parser:
|
|
84
84
|
- Supports SGR 16-color, 256-color (`38;5;n`), and 24-bit TrueColor (`38;2;r;g;b`) foreground/background attributes, bold, dim, italic, underline, and partial SGR resets (`22`, `23`, `24`, `39`, `49`).
|
|
@@ -86,7 +86,7 @@ It is designed around two strictly decoupled layers that can be used together (`
|
|
|
86
86
|
|
|
87
87
|
---
|
|
88
88
|
|
|
89
|
-
## 4. IDE Workbench (`src/workbench.
|
|
89
|
+
## 4. IDE Workbench (`src/workbench.ts`)
|
|
90
90
|
|
|
91
91
|
`CodeLabWorkbench` and `<code-lab>` provide the full visual IDE experience:
|
|
92
92
|
- **Guided Challenge & Reference Sandbox Modes**: Step-by-step verification (`Verify Step`), AST/symbol jump-to-TODO, hints, and unified/split diff comparison against starter or solution files.
|
|
@@ -111,5 +111,23 @@ Running `bun run build` (`bun run tools/bundle.js`) produces:
|
|
|
111
111
|
- `dist/terminal.js` & `dist/terminal.esm.js` (standalone PTY terminal engine)
|
|
112
112
|
- `dist/code-lab.css` (standalone dark/light CSS variables & workbench styles)
|
|
113
113
|
- `dist/preview-sw.js` (Web Preview virtual-loopback Service Worker for pop-out tabs; also copied to `examples/cloud-ide/public/preview-sw.js` for root scope)
|
|
114
|
-
- `dist/code-lab.d.ts` (TypeScript definitions for `CodeLab`, `CodeLabWorkbench`, `CodeLabElement`, `CodeLabRuntime`, `CodeLabShell`, and `
|
|
114
|
+
- `dist/code-lab.d.ts` (TypeScript definitions for `CodeLab`, `CodeLabWorkbench`, `CodeLabElement`, `CodeLabRuntime`, `CodeLabShell`, `CodeLabTerminal`, and the strict leaf modules `zip`, `storage`, `search`, `diagnostics`, and `scm`)
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## 6. Strict Browser-IDE Modules & Competitor Gap Analysis
|
|
119
|
+
|
|
120
|
+
`@innovatorved/code-lab` includes five strict, zero-`@ts-nocheck` leaf modules (`tsconfig.strict.json`) that close key usability gaps compared to **StackBlitz WebContainers**, **CodeSandbox Sandpack**, and **VS Code for the Web (`vscode.dev`)** while preserving zero server dependencies and zero COOP/COEP header requirements:
|
|
121
|
+
|
|
122
|
+
| Capability | StackBlitz / CodeSandbox / VS Code Web | `@innovatorved/code-lab` Implementation |
|
|
123
|
+
| :--- | :--- | :--- |
|
|
124
|
+
| **Project Archive Export / Import** | Download/upload project as `.zip` archive | `src/zip.ts` (`createZip`, `extractZip`, `computeCrc32`, `sanitizeZipPath`) — RFC-compliant PKZIP STORE (`0x04034b50`) encoder/decoder with zip-slip path traversal protection and workbench `exportProjectZip()` / `importProjectZip()` helpers |
|
|
125
|
+
| **Durable Workspace Persistence** | IndexedDB workspace storage with fallback | `src/storage.ts` (`WorkspaceStorage`, `createWorkspaceStorage`) — Cascading 3-tier persistence (`IndexedDB` → `localStorage` → in-memory `Map`) with quota-exceeded self-healing fallback |
|
|
126
|
+
| **Workspace Search & Replace** | Multi-file regex/glob search & replace (`Cmd+Shift+F`) | `src/search.ts` (`searchInFiles`, `replaceInFiles`, `matchesGlob`) — Cross-file search & replace supporting case sensitivity, whole-word matching, regular expressions, and include/exclude globs |
|
|
127
|
+
| **Unified Diagnostics & Problems** | Problems panel aggregating compiler & test markers | `src/diagnostics.ts` (`DiagnosticsStore`, `createDiagnosticsStore`) — Structured diagnostic store (`error`, `warning`, `info`) with stack-trace parser (`parseRuntimeError`) and node:test failure ingestion |
|
|
128
|
+
| **Visual Source Control (SCM)** | Staging, unstaging, diffing, and commit history | `src/scm.ts` (`createGitState`, `computeGitStatus`, `stageFile`, `unstageFile`, `commitChanges`, `computeShortCommitHash`) — Pure TypeScript SCM state machine synced with the POSIX shell `git` command |
|
|
129
|
+
| **Live Preview & Error Overlay** | Hot/debounced reload, console bridge, runtime error overlay | `src/csp.ts` (`buildPreviewShims`) + `src/workbench.ts` — 300ms debounced VFS-synced auto-reload, `codelab:preview-console` forwarding to terminal logs, and `codelab:preview-error` in-frame overlay |
|
|
130
|
+
|
|
131
|
+
All 39 test suites (`bun run test:all` and `node tests/run-all.js`) and the Playwright Chromium E2E suite (`bun run test:browser`) verify these modules and end-to-end workbench flows against the built `dist/*` artifacts.
|
|
132
|
+
|
|
115
133
|
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> **Note:** This project is in active development. APIs and sandbox internals are stable for production use.
|
|
4
4
|
|
|
5
|
-
Browser-native code IDE workbench, modular guided challenge engine (`@innovatorved/code-lab/extensions/guided-lab`), POSIX shell with
|
|
5
|
+
Browser-native code IDE workbench, modular guided challenge engine (`@innovatorved/code-lab/extensions/guided-lab`), POSIX shell with 58 UNIX coreutils, public GitHub repository cloner (`git clone`), and Web Worker execution runtime for **Node.js** and **Bun** (JavaScript & TypeScript) with Zod type safety and zero backend server dependencies.
|
|
6
6
|
|
|
7
7
|
- **Live Cloud IDE & GitHub Repo Explorer**: **[https://code-lab-3dr.pages.dev](https://code-lab-3dr.pages.dev)** — Enter any public GitHub repository (`owner/repo` or URL) to clone and run it directly in your browser.
|
|
8
8
|
- **Built for**: [System Design In Depth](https://system-design-in-depth.vedgupta.in)
|
|
@@ -11,14 +11,14 @@ Browser-native code IDE workbench, modular guided challenge engine (`@innovatorv
|
|
|
11
11
|
|
|
12
12
|
## Features
|
|
13
13
|
|
|
14
|
-
- **Modular Architecture (`v0.1.
|
|
14
|
+
- **Modular Architecture (`v0.1.9`)**: Pure, general-purpose browser IDE (`code-lab`) by default with File Explorer, Monaco Editor, and PTY Terminal. Curriculum features (Guided Steps, Mode Switcher, and JS/TS switcher) are encapsulated in an opt-in modular extension (`@innovatorved/code-lab/extensions/guided-lab`).
|
|
15
15
|
- **End-to-End TypeScript & Zod Type Safety**: Written in TypeScript with strict runtime schemas and inferred types (`z.infer<typeof ...>`) for workbench options, guided labs, runtime execution, and git cloning.
|
|
16
16
|
- **Public GitHub Repository Cloning (`git clone`)**: Clone any public GitHub repository (`git clone https://github.com/owner/repo` or `git clone owner/repo --branch main` in the terminal, or `await lab.cloneRepo('owner/repo')` via the SDK) directly into `/workspace` with zero authentication required (automatic GitHub Trees API + jsDelivr unlimited fallback). Clone progress (`remote: Enumerating objects…`, `Receiving objects: n%…`) streams into the terminal in real time as it downloads.
|
|
17
17
|
- **Interactive IDE Workbench**: Multi-file Monaco editor, collapsible hierarchical file tree with drag-and-drop, a workspace **folder switcher** (breadcrumb dropdown that scopes the explorer to any subfolder), decoupled editor tabs, Command Palette (`Cmd+Shift+P`), Quick Open (`Cmd+P`), breadcrumbs, and line-by-line solution diff viewer.
|
|
18
18
|
- **Interactive PTY Terminal**: Inline prompt (`codelab:/workspace$ `), cursor navigation, history (`Up`/`Down`), `Ctrl+R` reverse-i-search, `Tab` auto-completion, `Ctrl+C` interrupt, `Ctrl+L` clear, and 256-color / TrueColor ANSI support.
|
|
19
|
-
- **POSIX Shell &
|
|
19
|
+
- **POSIX Shell & 58 Coreutils**: Full pure-JS AST interpreter supporting pipelines (`|`), redirects (`>`, `>>`, `2>&1`, `<<<`, `<<EOF`), control flow (`if`/`for`/`while`/`case`), functions, arithmetic `$((...))`, brace expansion `{1..5}`, and 58 UNIX commands (`git`, `ls`, `cat`, `grep`, `find`, `sed`, `awk`, `jq`, `tar`, `curl`, `nc`, `lsof`, `tsc`, etc.).
|
|
20
20
|
- **Dual Runtime Engines (Node.js v22 & Bun v1.1)**:
|
|
21
|
-
- **Node.js**:
|
|
21
|
+
- **Node.js**: 50 built-in modules (`fs`, `fs/promises`, `http`, `https`, `net`, `stream`, `events`, `crypto`, `zlib`, `vm`, `worker_threads`, `readline`, `module`, `node:test`, `assert`, etc.).
|
|
22
22
|
- **Bun**: Native `.ts` transpilation, `Bun.serve()`, `Bun.file()`, `Bun.write()`, `Bun.spawn()`, `Bun.password`, `Bun.hash()`, `bun:test`, and VFS-backed `bun:sqlite`.
|
|
23
23
|
- **Persistent HTTP/TCP Servers & Dual Web Preview**: Start background servers (`node server.js &` or `bun run server.ts &`), query them with `curl http://localhost:3000` or global `fetch()`, and view live responses in the Ports table, an embedded **Web Preview** tab (URL bar, back/forward, device frames), or a popped-out browser tab backed by a virtual-loopback Service Worker (`/__preview/:port/*`). Public URLs (e.g. `https://example.com`) entered in the preview URL bar open in a real browser tab instead of the virtual frame.
|
|
24
24
|
- **Built-in Preview Server (`serve`) & Toolbar *Run & Preview***: Render a real app in the browser with no bundler — `serve [dir] [--port]`, the toolbar globe button, or `npm run dev` all start a static server that transpiles `.ts` / `.tsx` / `.jsx` to browser-native ESM, resolves extensionless relative imports, and injects a jsDelivr `+esm` **import map** for bare specifiers (`react`, `react-dom/client`, `@angular/core`, …). Vite/`ng`/Astro/Next scripts that need native binaries transparently fall back to it.
|
|
@@ -122,8 +122,8 @@ Complete documentation is published on the [GitHub Wiki](https://github.com/inno
|
|
|
122
122
|
- **[Quick Start](https://github.com/innovatorved/code-lab/wiki/Quick-Start)**: Setup, CDN, and quick examples.
|
|
123
123
|
- **[Integration Guide](https://github.com/innovatorved/code-lab/wiki/Integration-Guide)**: Embedding in React, Next.js, Vite, and HTML.
|
|
124
124
|
- **[Workbench Configuration](https://github.com/innovatorved/code-lab/wiki/Workbench-Configuration)**: Complete reference of options, methods, events, and shortcuts.
|
|
125
|
-
- **[POSIX Shell & Coreutils](https://github.com/innovatorved/code-lab/wiki/POSIX-Shell-and-Coreutils)**: Pipelines, redirects, background jobs, and
|
|
126
|
-
- **[Runtime APIs (Node & Bun)](https://github.com/innovatorved/code-lab/wiki/Runtime-APIs)**:
|
|
125
|
+
- **[POSIX Shell & Coreutils](https://github.com/innovatorved/code-lab/wiki/POSIX-Shell-and-Coreutils)**: Pipelines, redirects, background jobs, and 58 UNIX commands.
|
|
126
|
+
- **[Runtime APIs (Node & Bun)](https://github.com/innovatorved/code-lab/wiki/Runtime-APIs)**: 50 Node.js built-ins, Bun APIs, `bun:test`, `bun:sqlite`, and npm install.
|
|
127
127
|
- **[HTTP Servers & Networking](https://github.com/innovatorved/code-lab/wiki/HTTP-Servers-and-Networking)**: Virtual port table, background servers, `curl`, and Port Preview.
|
|
128
128
|
- **[Headless Runtime](https://github.com/innovatorved/code-lab/wiki/Headless-Runtime)**: Run code and tests programmatically with zero UI.
|
|
129
129
|
- **[Authoring Guided Labs](https://github.com/innovatorved/code-lab/wiki/Authoring-Guided-Labs)**: Schema and invariants for creating interactive coding challenges.
|
|
@@ -146,11 +146,21 @@ bun run tests/test-all-builds.js # 15/15 builds & 226 unit tests
|
|
|
146
146
|
bun run tests/test-runtime-advanced.js # Advanced runtime, VFS, HTTP/TCP
|
|
147
147
|
bun run tests/test-option1-shell-bun-http.js # Shell AST, Bun runtime, curl, ports, npm/pnpm
|
|
148
148
|
bun run tests/test-frameworks.js # React/Preact/Vue/Angular support + browser preview server
|
|
149
|
-
bun run tests/test-coreutils-adversarial.js # Adversarial stress tests on
|
|
149
|
+
bun run tests/test-coreutils-adversarial.js # Adversarial stress tests on 58 coreutils
|
|
150
150
|
bun run tests/test-stress-shell.js # Deep pipelines, redirections, large stdout
|
|
151
151
|
bun run tests/test-workbench-ui.js # Workbench tabs, explorer, shortcuts
|
|
152
152
|
```
|
|
153
153
|
|
|
154
|
+
Individual suites also run under Node 20, 22 and 24 — CI exercises all three:
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
bun run build && node tests/run-all.js # same 39 suites, Node runtime
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
Suites load the built bundles from `dist/` (never raw TypeScript from `src/`), so
|
|
161
|
+
`dist/` must exist and be newer than `src/`. `tests/run-all.js` exits with code 2
|
|
162
|
+
and a "dist/ is stale" message otherwise; run `bun run build` first.
|
|
163
|
+
|
|
154
164
|
---
|
|
155
165
|
|
|
156
166
|
## License
|