@innovatorved/code-lab 0.1.11 → 0.1.12
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 +1 -1
- package/README.md +1 -1
- package/dist/code-lab.d.ts +1 -1
- package/dist/code-lab.esm.js +6 -4
- package/dist/code-lab.js +5 -3
- package/dist/preview-sw.js +1 -1
- package/dist/runtime.esm.js +1 -1
- package/dist/runtime.js +1 -1
- package/dist/shell.esm.js +4 -2
- package/dist/shell.js +4 -2
- package/dist/terminal.esm.js +1 -1
- package/dist/terminal.js +1 -1
- package/package.json +1 -1
- package/src/shell.ts +3 -1
- package/src/workbench.ts +1 -1
package/ARCHITECTURE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# `@innovatorved/code-lab` Architecture (v0.1.
|
|
1
|
+
# `@innovatorved/code-lab` Architecture (v0.1.12)
|
|
2
2
|
|
|
3
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
|
|
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ 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.12`)**: 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.
|
package/dist/code-lab.d.ts
CHANGED
package/dist/code-lab.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ============================================================
|
|
3
|
-
* @innovatorved/code-lab v0.1.
|
|
3
|
+
* @innovatorved/code-lab v0.1.12 — Standalone Browser Code IDE & Virtual Runtime
|
|
4
4
|
* ============================================================
|
|
5
5
|
* Features:
|
|
6
6
|
* - Sandboxed Web Worker Execution Engine with Multi-Instance Isolation & Watchdog Timer
|
|
@@ -13291,7 +13291,9 @@ if (typeof module !== 'undefined' && module.exports) {
|
|
|
13291
13291
|
const content = vfs.readFileSync(full, 'utf8');
|
|
13292
13292
|
const rel = full.startsWith(rootDir + '/') ? full.slice(rootDir.length + 1) : name;
|
|
13293
13293
|
files.push({ full, rel, content });
|
|
13294
|
-
} catch (
|
|
13294
|
+
} catch (err) {
|
|
13295
|
+
_shellLogger.debug('Preview asset read skipped.', full, err);
|
|
13296
|
+
}
|
|
13295
13297
|
}
|
|
13296
13298
|
}
|
|
13297
13299
|
};
|
|
@@ -18913,7 +18915,7 @@ if (typeof module !== 'undefined' && module.exports) {
|
|
|
18913
18915
|
|
|
18914
18916
|
// The bundler rewrites this literal from package.json at build time. Keeping
|
|
18915
18917
|
// the fallback in sync lets tests require src/workbench.js directly.
|
|
18916
|
-
const CODELAB_VERSION = '0.1.
|
|
18918
|
+
const CODELAB_VERSION = '0.1.12';
|
|
18917
18919
|
|
|
18918
18920
|
// Ambient TypeScript declarations for Node.js built-ins inside Monaco
|
|
18919
18921
|
const NODE_AMBIENT_DTS = `
|
|
@@ -27426,7 +27428,7 @@ const PTYTerminalEngine = CodeLabTerminal ? CodeLabTerminal.PTYTerminalEngine :
|
|
|
27426
27428
|
const mount = CodeLab ? CodeLab.mount : null;
|
|
27427
27429
|
const create = CodeLab ? CodeLab.create : null;
|
|
27428
27430
|
const unmount = CodeLab ? CodeLab.unmount : null;
|
|
27429
|
-
const version = CodeLab ? CodeLab.version : '0.1.
|
|
27431
|
+
const version = CodeLab ? CodeLab.version : '0.1.12';
|
|
27430
27432
|
const renderMarkdown = CodeLab ? CodeLab.renderMarkdown : null;
|
|
27431
27433
|
const renderSimpleMarkdown = CodeLab ? CodeLab.renderSimpleMarkdown : null;
|
|
27432
27434
|
const cloneRepo = CodeLab ? CodeLab.cloneRepo : null;
|
package/dist/code-lab.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ============================================================
|
|
3
|
-
* @innovatorved/code-lab v0.1.
|
|
3
|
+
* @innovatorved/code-lab v0.1.12 — Standalone Browser Code IDE & Virtual Runtime
|
|
4
4
|
* ============================================================
|
|
5
5
|
* Features:
|
|
6
6
|
* - Sandboxed Web Worker Execution Engine with Multi-Instance Isolation & Watchdog Timer
|
|
@@ -13294,7 +13294,9 @@ if (typeof module !== 'undefined' && module.exports) {
|
|
|
13294
13294
|
const content = vfs.readFileSync(full, 'utf8');
|
|
13295
13295
|
const rel = full.startsWith(rootDir + '/') ? full.slice(rootDir.length + 1) : name;
|
|
13296
13296
|
files.push({ full, rel, content });
|
|
13297
|
-
} catch (
|
|
13297
|
+
} catch (err) {
|
|
13298
|
+
_shellLogger.debug('Preview asset read skipped.', full, err);
|
|
13299
|
+
}
|
|
13298
13300
|
}
|
|
13299
13301
|
}
|
|
13300
13302
|
};
|
|
@@ -18920,7 +18922,7 @@ if (typeof module !== 'undefined' && module.exports) {
|
|
|
18920
18922
|
|
|
18921
18923
|
// The bundler rewrites this literal from package.json at build time. Keeping
|
|
18922
18924
|
// the fallback in sync lets tests require src/workbench.js directly.
|
|
18923
|
-
const CODELAB_VERSION = '0.1.
|
|
18925
|
+
const CODELAB_VERSION = '0.1.12';
|
|
18924
18926
|
|
|
18925
18927
|
// Ambient TypeScript declarations for Node.js built-ins inside Monaco
|
|
18926
18928
|
const NODE_AMBIENT_DTS = `
|
package/dist/preview-sw.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ============================================================
|
|
3
|
-
* @innovatorved/code-lab v0.1.
|
|
3
|
+
* @innovatorved/code-lab v0.1.12 — Standalone Browser Code IDE & Virtual Runtime
|
|
4
4
|
* ============================================================
|
|
5
5
|
* Features:
|
|
6
6
|
* - Sandboxed Web Worker Execution Engine with Multi-Instance Isolation & Watchdog Timer
|
package/dist/runtime.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ============================================================
|
|
3
|
-
* @innovatorved/code-lab v0.1.
|
|
3
|
+
* @innovatorved/code-lab v0.1.12 — Standalone Browser Code IDE & Virtual Runtime
|
|
4
4
|
* ============================================================
|
|
5
5
|
* Features:
|
|
6
6
|
* - Sandboxed Web Worker Execution Engine with Multi-Instance Isolation & Watchdog Timer
|
package/dist/runtime.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ============================================================
|
|
3
|
-
* @innovatorved/code-lab v0.1.
|
|
3
|
+
* @innovatorved/code-lab v0.1.12 — Standalone Browser Code IDE & Virtual Runtime
|
|
4
4
|
* ============================================================
|
|
5
5
|
* Features:
|
|
6
6
|
* - Sandboxed Web Worker Execution Engine with Multi-Instance Isolation & Watchdog Timer
|
package/dist/shell.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ============================================================
|
|
3
|
-
* @innovatorved/code-lab v0.1.
|
|
3
|
+
* @innovatorved/code-lab v0.1.12 — Standalone Browser Code IDE & Virtual Runtime
|
|
4
4
|
* ============================================================
|
|
5
5
|
* Features:
|
|
6
6
|
* - Sandboxed Web Worker Execution Engine with Multi-Instance Isolation & Watchdog Timer
|
|
@@ -3228,7 +3228,9 @@ var CodeLabLogger = (() => {
|
|
|
3228
3228
|
const content = vfs.readFileSync(full, 'utf8');
|
|
3229
3229
|
const rel = full.startsWith(rootDir + '/') ? full.slice(rootDir.length + 1) : name;
|
|
3230
3230
|
files.push({ full, rel, content });
|
|
3231
|
-
} catch (
|
|
3231
|
+
} catch (err) {
|
|
3232
|
+
_shellLogger.debug('Preview asset read skipped.', full, err);
|
|
3233
|
+
}
|
|
3232
3234
|
}
|
|
3233
3235
|
}
|
|
3234
3236
|
};
|
package/dist/shell.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ============================================================
|
|
3
|
-
* @innovatorved/code-lab v0.1.
|
|
3
|
+
* @innovatorved/code-lab v0.1.12 — Standalone Browser Code IDE & Virtual Runtime
|
|
4
4
|
* ============================================================
|
|
5
5
|
* Features:
|
|
6
6
|
* - Sandboxed Web Worker Execution Engine with Multi-Instance Isolation & Watchdog Timer
|
|
@@ -3229,7 +3229,9 @@ var CodeLabLogger = (() => {
|
|
|
3229
3229
|
const content = vfs.readFileSync(full, 'utf8');
|
|
3230
3230
|
const rel = full.startsWith(rootDir + '/') ? full.slice(rootDir.length + 1) : name;
|
|
3231
3231
|
files.push({ full, rel, content });
|
|
3232
|
-
} catch (
|
|
3232
|
+
} catch (err) {
|
|
3233
|
+
_shellLogger.debug('Preview asset read skipped.', full, err);
|
|
3234
|
+
}
|
|
3233
3235
|
}
|
|
3234
3236
|
}
|
|
3235
3237
|
};
|
package/dist/terminal.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ============================================================
|
|
3
|
-
* @innovatorved/code-lab v0.1.
|
|
3
|
+
* @innovatorved/code-lab v0.1.12 — Standalone Browser Code IDE & Virtual Runtime
|
|
4
4
|
* ============================================================
|
|
5
5
|
* Features:
|
|
6
6
|
* - Sandboxed Web Worker Execution Engine with Multi-Instance Isolation & Watchdog Timer
|
package/dist/terminal.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ============================================================
|
|
3
|
-
* @innovatorved/code-lab v0.1.
|
|
3
|
+
* @innovatorved/code-lab v0.1.12 — Standalone Browser Code IDE & Virtual Runtime
|
|
4
4
|
* ============================================================
|
|
5
5
|
* Features:
|
|
6
6
|
* - Sandboxed Web Worker Execution Engine with Multi-Instance Isolation & Watchdog Timer
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@innovatorved/code-lab",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "Standalone browser-native IDE Workbench, POSIX Shell & Coreutils, PTY Terminal, and Web Worker Node.js/Bun Virtual Runtime.",
|
|
5
5
|
"main": "./dist/code-lab.js",
|
|
6
6
|
"module": "./dist/code-lab.esm.js",
|
package/src/shell.ts
CHANGED
|
@@ -3109,7 +3109,9 @@
|
|
|
3109
3109
|
const content = vfs.readFileSync(full, 'utf8');
|
|
3110
3110
|
const rel = full.startsWith(rootDir + '/') ? full.slice(rootDir.length + 1) : name;
|
|
3111
3111
|
files.push({ full, rel, content });
|
|
3112
|
-
} catch (
|
|
3112
|
+
} catch (err) {
|
|
3113
|
+
_shellLogger.debug('Preview asset read skipped.', full, err);
|
|
3114
|
+
}
|
|
3113
3115
|
}
|
|
3114
3116
|
}
|
|
3115
3117
|
};
|
package/src/workbench.ts
CHANGED
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
|
|
58
58
|
// The bundler rewrites this literal from package.json at build time. Keeping
|
|
59
59
|
// the fallback in sync lets tests require src/workbench.js directly.
|
|
60
|
-
const CODELAB_VERSION = '0.1.
|
|
60
|
+
const CODELAB_VERSION = '0.1.12';
|
|
61
61
|
|
|
62
62
|
// Ambient TypeScript declarations for Node.js built-ins inside Monaco
|
|
63
63
|
const NODE_AMBIENT_DTS = `
|