@innovatorved/code-lab 0.6.0 → 0.6.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.
Files changed (51) hide show
  1. package/ARCHITECTURE.md +1 -1
  2. package/CHANGELOG.md +8 -0
  3. package/README.md +1 -1
  4. package/dist/code-lab-sql.css +87 -64
  5. package/dist/code-lab-sql.esm.js +109 -86
  6. package/dist/code-lab-sql.umd.js +110 -87
  7. package/dist/code-lab.css +1 -1
  8. package/dist/code-lab.d.ts +1 -1
  9. package/dist/code-lab.esm.js +601 -248
  10. package/dist/code-lab.js +600 -247
  11. package/dist/code-lab.umd.js +600 -247
  12. package/dist/index.d.ts +1 -1
  13. package/dist/packages/sql/src/styles.d.ts +1 -1
  14. package/dist/packages/ui/src/settings-dialog.d.ts +2 -0
  15. package/dist/preview-sw.js +1 -1
  16. package/dist/runtime.esm.js +1 -1
  17. package/dist/runtime.js +1 -1
  18. package/dist/schemas.d.ts +1 -1
  19. package/dist/shell.esm.js +1 -1
  20. package/dist/shell.js +1 -1
  21. package/dist/terminal.esm.js +1 -1
  22. package/dist/terminal.js +1 -1
  23. package/dist/workbench/index.d.ts +1 -1
  24. package/dist/workbench/intellisense.d.ts +1 -1
  25. package/dist/workbench/styles.d.ts +1 -1
  26. package/package.json +1 -1
  27. package/packages/commands/package.json +1 -1
  28. package/packages/core/package.json +1 -1
  29. package/packages/editor/package.json +1 -1
  30. package/packages/fs/package.json +1 -1
  31. package/packages/preview/package.json +1 -1
  32. package/packages/runtime/package.json +1 -1
  33. package/packages/settings/package.json +1 -1
  34. package/packages/sql/package.json +1 -1
  35. package/packages/sql/src/styles.ts +87 -64
  36. package/packages/terminal/package.json +1 -1
  37. package/packages/ui/package.json +1 -1
  38. package/packages/ui/src/observability.ts +12 -14
  39. package/packages/ui/src/settings-dialog.ts +379 -55
  40. package/packages/ui/src/themes.ts +78 -78
  41. package/src/code-lab.css +750 -309
  42. package/src/index.ts +1 -1
  43. package/src/schemas.ts +1 -1
  44. package/src/workbench/diff-editor.ts +5 -1
  45. package/src/workbench/drawer.ts +5 -5
  46. package/src/workbench/icons.ts +5 -5
  47. package/src/workbench/intellisense.ts +94 -82
  48. package/src/workbench/styles.ts +58 -54
  49. package/src/workbench/toolbar.ts +1 -1
  50. package/src/workbench/xterm-adapter.ts +61 -56
  51. package/src/workbench.ts +98 -92
package/ARCHITECTURE.md CHANGED
@@ -1,4 +1,4 @@
1
- # `@innovatorved/code-lab` Architecture (v0.6.0)
1
+ # `@innovatorved/code-lab` Architecture (v0.6.1)
2
2
 
3
3
  `@innovatorved/code-lab` is an embeddable, browser-native Node.js v22 + Bun v1.1 + WASI C++20 + Python 3.12 IDE, first-class SQL playground (`@innovatorved/code-lab/sql`), 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`; modular extensions under `@innovatorved/code-lab/extensions/{guided-lab,javascript,typescript,cpp,python}`).
4
4
 
package/CHANGELOG.md CHANGED
@@ -4,6 +4,14 @@ All notable changes to `@innovatorved/code-lab` are documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.6.1] - 2026-11-16
8
+
9
+ ### Changed
10
+ - **Unified Geist Monochrome Design System (`src/code-lab.css`, `packages/ui/src/themes.ts`, `packages/ui/src/settings-dialog.ts`, `packages/sql/src/styles.ts`, `src/workbench/`)**:
11
+ - Replaced all copied VS Code blue tokens (`#0078d4`, `#005fb8`, `#04395e`) with the unified **Charcoal Ink** (`#0f0f10` canvas, `#141415` chrome, `#18181a` surface, `#27272a` hairline border, `#f4f4f5` primary ink/CTA) and **Warm Paper** (`#ffffff` canvas, `#f7f7f5` chrome, `#f1f1ee` surface, `#e6e4df` hairline border, `#18181b` primary ink/CTA) design system shared across `system-design-in-depth`, `dsa-in-depth`, and `interview-copilot-admin`, with seamless `--ds-*` / `--*` host CSS custom-property inheritance.
12
+ - Standardized typography on **Geist** (`--cl-font-sans`) for UI chrome and **Geist Mono** (`--cl-font-mono`) for code editors, Monaco `DiffEditor`, `@xterm/xterm` terminal, and standalone SQL editor, backed by a tokenized type scale (`--cl-text-2xs` through `--cl-text-xl`).
13
+ - Refactored ad-hoc inline `style="..."` font sizes and colors across Settings UI (`@code-lab/ui`), Observability, modals, and workbench panels into reusable `.cl-ui-*` and `.cl-settings-*` component classes.
14
+
7
15
  ## [0.6.0] - 2026-11-15
8
16
 
9
17
  ### Added
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @innovatorved/code-lab
2
2
 
3
- Modular browser-native IDE workbench (`v0.6.0`), Web Worker runtime for Node.js, Bun, TypeScript, C++20 WebAssembly, and Python 3.12 WebAssembly, POSIX shell with 73 UNIX coreutils, and lightweight SQL playground built with strict TypeScript and Zod schemas — zero backend servers or cross-origin isolation headers required.
3
+ Modular browser-native IDE workbench (`v0.6.1`), Web Worker runtime for Node.js, Bun, TypeScript, C++20 WebAssembly, and Python 3.12 WebAssembly, POSIX shell with 73 UNIX coreutils, and lightweight SQL playground built with strict TypeScript and Zod schemas — zero backend servers or cross-origin isolation headers required.
4
4
 
5
5
 
6
6
  ## Highlights
@@ -1,26 +1,32 @@
1
1
  /* @innovatorved/code-lab/sql — Lightweight SQL Editor & Playground Styles */
2
2
  .cl-sql-root {
3
- --cl-bg: var(--code-bg, var(--surface, #0a0a0a));
4
- --cl-fg: var(--code-fg, var(--fg, #f5f5f5));
5
- --cl-accent: var(--accent, #0284c7);
6
- --cl-border: var(--border, #262626);
7
- --cl-font-mono: var(--font-mono, 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
8
- --cl-sql-gutter-bg: rgba(255, 255, 255, 0.025);
9
- --cl-sql-gutter-fg: #737373;
10
- --cl-sql-popup-bg: #141414;
11
- --cl-sql-popup-hover: rgba(2, 132, 199, 0.18);
12
- --cl-sql-kw: #38bdf8;
3
+ --cl-bg: var(--code-bg, var(--ds-canvas, var(--bg, #0f0f10)));
4
+ --cl-fg: var(--code-fg, var(--ds-ink, var(--fg, #f4f4f5)));
5
+ --cl-accent: var(--brand-accent, var(--accent, #f4f4f5));
6
+ --cl-accent-fg: var(--brand-accent-ink, var(--accent-fg, #0f0f10));
7
+ --cl-border: var(--ds-border, var(--border, #27272a));
8
+ --cl-font-sans: var(--ds-font-sans, var(--font-sans, "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif));
9
+ --cl-font-mono: var(--ds-font-mono, var(--font-mono, "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace));
10
+ --cl-text-2xs: var(--ds-text-2xs, 0.6875rem);
11
+ --cl-text-xs: var(--ds-text-xs, 0.75rem);
12
+ --cl-text-sm: var(--ds-text-sm, 0.8125rem);
13
+ --cl-sql-gutter-bg: var(--ds-canvas-subtle, var(--bg-alt, #141415));
14
+ --cl-sql-gutter-fg: var(--ds-ink-faint, #8e8e97);
15
+ --cl-sql-popup-bg: var(--ds-surface, #18181a);
16
+ --cl-sql-popup-hover: var(--ds-surface-active, #28282b);
17
+ --cl-sql-selection: rgba(244, 244, 245, 0.18);
18
+ --cl-sql-kw: #f87171;
13
19
  --cl-sql-fn: #c084fc;
14
- --cl-sql-type: #2dd4bf;
20
+ --cl-sql-type: #fb923c;
15
21
  --cl-sql-str: #86efac;
16
- --cl-sql-num: #fbbf24;
17
- --cl-sql-op: #f472b6;
18
- --cl-sql-param: #fb923c;
19
- --cl-sql-qident: #93c5fd;
20
- --cl-sql-comment: #737373;
21
- --cl-sql-error: #ef4444;
22
- --cl-sql-warn: #f59e0b;
23
- --cl-sql-font-size: 13.5px;
22
+ --cl-sql-num: #fcd34d;
23
+ --cl-sql-op: #d4d4d8;
24
+ --cl-sql-param: #fbbf24;
25
+ --cl-sql-qident: #e4e4e7;
26
+ --cl-sql-comment: #8e8e97;
27
+ --cl-sql-error: #f87171;
28
+ --cl-sql-warn: #fbbf24;
29
+ --cl-sql-font-size: 0.8125rem;
24
30
  --cl-sql-line-height: 1.55;
25
31
 
26
32
  color-scheme: dark;
@@ -34,29 +40,33 @@
34
40
  background: var(--cl-bg);
35
41
  color: var(--cl-fg);
36
42
  accent-color: var(--cl-accent);
37
- font-family: var(--cl-font-mono);
43
+ font-family: var(--cl-font-sans);
38
44
  container-type: inline-size;
39
45
  }
40
46
 
41
47
  .cl-sql-root[data-cl-sql-theme="light"],
42
48
  :root[data-theme="light"] .cl-sql-root:not([data-cl-sql-theme="dark"]) {
43
- --cl-bg: var(--code-bg, var(--surface, #ffffff));
44
- --cl-fg: var(--code-fg, var(--fg, #0f172a));
45
- --cl-accent: var(--accent, #0284c7);
46
- --cl-border: var(--border, #e2e8f0);
47
- --cl-sql-gutter-bg: #f8fafc;
48
- --cl-sql-gutter-fg: #64748b;
49
+ --cl-bg: var(--code-bg, var(--ds-surface, var(--surface, #ffffff)));
50
+ --cl-fg: var(--code-fg, var(--ds-ink, var(--fg, #18181b)));
51
+ --cl-accent: var(--brand-accent, var(--accent, #18181b));
52
+ --cl-accent-fg: var(--brand-accent-ink, var(--accent-fg, #ffffff));
53
+ --cl-border: var(--ds-border, var(--border, #e6e4df));
54
+ --cl-sql-gutter-bg: var(--ds-canvas, var(--bg, #f7f7f5));
55
+ --cl-sql-gutter-fg: var(--ds-ink-faint, #6e6a64);
49
56
  --cl-sql-popup-bg: #ffffff;
50
- --cl-sql-popup-hover: rgba(2, 132, 199, 0.12);
51
- --cl-sql-kw: #0369a1;
52
- --cl-sql-fn: #7e22ce;
53
- --cl-sql-type: #0f766e;
54
- --cl-sql-str: #15803d;
55
- --cl-sql-num: #b45309;
56
- --cl-sql-op: #be185d;
57
- --cl-sql-param: #c2410c;
58
- --cl-sql-qident: #1d4ed8;
59
- --cl-sql-comment: #64748b;
57
+ --cl-sql-popup-hover: #ecebe7;
58
+ --cl-sql-selection: rgba(24, 24, 27, 0.14);
59
+ --cl-sql-kw: #c2410c;
60
+ --cl-sql-fn: #6d28d9;
61
+ --cl-sql-type: #9a3412;
62
+ --cl-sql-str: #067647;
63
+ --cl-sql-num: #b54708;
64
+ --cl-sql-op: #3f3f46;
65
+ --cl-sql-param: #b54708;
66
+ --cl-sql-qident: #18181b;
67
+ --cl-sql-comment: #6e6a64;
68
+ --cl-sql-error: #b42318;
69
+ --cl-sql-warn: #b54708;
60
70
  color-scheme: light;
61
71
  background: var(--cl-bg);
62
72
  color: var(--cl-fg);
@@ -76,7 +86,7 @@
76
86
  gap: 8px;
77
87
  padding: 6px 10px;
78
88
  border-bottom: 1px solid var(--cl-border);
79
- font-size: 12px;
89
+ font-size: var(--cl-text-xs);
80
90
  background: var(--cl-sql-gutter-bg);
81
91
  border-radius: 7px 7px 0 0;
82
92
  }
@@ -92,13 +102,14 @@
92
102
  .cl-sql-dialect-pill {
93
103
  display: inline-flex;
94
104
  align-items: center;
95
- padding: 2px 7px;
105
+ padding: 2px 8px;
96
106
  border-radius: 999px;
97
- font-size: 11px;
107
+ font-family: var(--cl-font-mono);
108
+ font-size: var(--cl-text-2xs);
98
109
  font-weight: 600;
99
110
  letter-spacing: 0.02em;
100
111
  border: 1px solid var(--cl-border);
101
- color: var(--cl-accent);
112
+ color: var(--cl-fg);
102
113
  }
103
114
 
104
115
  .cl-sql-btn {
@@ -107,15 +118,16 @@
107
118
  align-items: center;
108
119
  gap: 5px;
109
120
  padding: 4px 10px;
110
- border-radius: 5px;
121
+ border-radius: 6px;
111
122
  border: 1px solid var(--cl-border);
112
123
  background: transparent;
113
124
  color: var(--cl-fg);
114
- font-family: inherit;
115
- font-size: 12px;
125
+ font-family: var(--cl-font-sans);
126
+ font-size: var(--cl-text-xs);
116
127
  font-weight: 500;
117
128
  cursor: pointer;
118
129
  touch-action: manipulation;
130
+ transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
119
131
  }
120
132
 
121
133
  .cl-sql-btn:hover {
@@ -125,11 +137,11 @@
125
137
  .cl-sql-btn-primary {
126
138
  background: var(--cl-accent);
127
139
  border-color: var(--cl-accent);
128
- color: #ffffff;
140
+ color: var(--cl-accent-fg);
129
141
  }
130
142
 
131
143
  .cl-sql-btn:focus-visible {
132
- outline: 2px solid var(--cl-accent);
144
+ outline: 1px solid var(--cl-accent);
133
145
  outline-offset: 2px;
134
146
  }
135
147
 
@@ -163,12 +175,12 @@
163
175
  border-left: 1px solid var(--cl-border);
164
176
  padding: 10px 12px;
165
177
  overflow: auto;
166
- font-size: 12.5px;
178
+ font-size: var(--cl-text-sm);
167
179
  }
168
180
 
169
181
  .cl-sql-ResultsEmpty {
170
182
  color: var(--cl-sql-gutter-fg);
171
- font-size: 12px;
183
+ font-size: var(--cl-text-xs);
172
184
  }
173
185
 
174
186
  .cl-sql-surface {
@@ -187,6 +199,8 @@
187
199
  background: var(--cl-sql-gutter-bg);
188
200
  border-right: 1px solid var(--cl-border);
189
201
  color: var(--cl-sql-gutter-fg);
202
+ font-family: var(--cl-font-mono);
203
+ font-variant-numeric: tabular-nums;
190
204
  font-size: var(--cl-sql-font-size);
191
205
  line-height: var(--cl-sql-line-height);
192
206
  overflow: hidden;
@@ -281,7 +295,7 @@
281
295
  }
282
296
 
283
297
  .cl-sql-textarea::selection {
284
- background: rgba(2, 132, 199, 0.32);
298
+ background: var(--cl-sql-selection);
285
299
  }
286
300
 
287
301
  .cl-sql-textarea:focus-visible {
@@ -326,11 +340,12 @@
326
340
 
327
341
  .cl-sql-diagnostics {
328
342
  display: none;
329
- padding: 7px 12px;
343
+ padding: 8px 12px;
330
344
  border-top: 1px solid var(--cl-border);
331
- font-size: 12px;
345
+ font-family: var(--cl-font-sans);
346
+ font-size: var(--cl-text-xs);
332
347
  line-height: 1.45;
333
- background: rgba(239, 68, 68, 0.09);
348
+ background: rgba(239, 68, 68, 0.08);
334
349
  color: var(--cl-fg);
335
350
  }
336
351
 
@@ -346,8 +361,9 @@
346
361
  }
347
362
 
348
363
  .cl-sql-diag-badge {
349
- font-size: 10.5px;
350
- font-weight: 700;
364
+ font-family: var(--cl-font-mono);
365
+ font-size: var(--cl-text-2xs);
366
+ font-weight: 600;
351
367
  text-transform: uppercase;
352
368
  padding: 1px 5px;
353
369
  border-radius: 4px;
@@ -357,14 +373,14 @@
357
373
 
358
374
  .cl-sql-diag-badge[data-severity="warning"] {
359
375
  background: var(--cl-sql-warn);
360
- color: #000000;
376
+ color: #09090b;
361
377
  }
362
378
 
363
379
  .cl-sql-diag-hint {
364
380
  width: 100%;
365
381
  margin-top: 2px;
366
382
  color: var(--cl-sql-gutter-fg);
367
- font-size: 11.5px;
383
+ font-size: var(--cl-text-xs);
368
384
  }
369
385
 
370
386
  /* Schema-aware completion popup */
@@ -381,10 +397,11 @@
381
397
  padding: 4px;
382
398
  list-style: none;
383
399
  border: 1px solid var(--cl-border);
384
- border-radius: 7px;
400
+ border-radius: 8px;
385
401
  background: var(--cl-sql-popup-bg);
386
- box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38);
387
- font-size: 12px;
402
+ box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
403
+ font-family: var(--cl-font-sans);
404
+ font-size: var(--cl-text-xs);
388
405
  }
389
406
 
390
407
  .cl-sql-completions[data-open="true"] {
@@ -397,7 +414,7 @@
397
414
  justify-content: space-between;
398
415
  gap: 8px;
399
416
  padding: 5px 8px;
400
- border-radius: 5px;
417
+ border-radius: 6px;
401
418
  cursor: pointer;
402
419
  touch-action: manipulation;
403
420
  }
@@ -421,14 +438,17 @@
421
438
  width: 18px;
422
439
  height: 18px;
423
440
  border-radius: 4px;
441
+ font-family: var(--cl-font-mono);
424
442
  font-size: 10px;
425
443
  font-weight: 700;
426
- background: rgba(2, 132, 199, 0.16);
427
- color: var(--cl-accent);
444
+ border: 1px solid var(--cl-border);
445
+ background: var(--cl-sql-gutter-bg);
446
+ color: var(--cl-fg);
428
447
  flex-shrink: 0;
429
448
  }
430
449
 
431
450
  .cl-sql-comp-label {
451
+ font-family: var(--cl-font-mono);
432
452
  font-weight: 600;
433
453
  overflow: hidden;
434
454
  text-overflow: ellipsis;
@@ -440,11 +460,12 @@
440
460
  align-items: center;
441
461
  gap: 5px;
442
462
  flex-shrink: 0;
443
- font-size: 11px;
463
+ font-size: var(--cl-text-2xs);
444
464
  color: var(--cl-sql-gutter-fg);
445
465
  }
446
466
 
447
467
  .cl-sql-comp-badge {
468
+ font-family: var(--cl-font-mono);
448
469
  padding: 1px 5px;
449
470
  border-radius: 4px;
450
471
  border: 1px solid var(--cl-border);
@@ -455,9 +476,11 @@
455
476
  display: flex;
456
477
  align-items: center;
457
478
  justify-content: space-between;
458
- padding: 3px 10px;
479
+ padding: 4px 10px;
459
480
  border-top: 1px solid var(--cl-border);
460
- font-size: 11px;
481
+ font-family: var(--cl-font-sans);
482
+ font-size: var(--cl-text-2xs);
483
+ font-variant-numeric: tabular-nums;
461
484
  color: var(--cl-sql-gutter-fg);
462
485
  }
463
486