@innovatorved/code-lab 0.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.
@@ -0,0 +1,514 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Zod Schemas and Inferred TypeScript Types for code-lab v2.0.0
4
+ */
5
+ export declare const GuidedStepSchema: z.ZodObject<{
6
+ id: z.ZodString;
7
+ title: z.ZodString;
8
+ concept: z.ZodOptional<z.ZodString>;
9
+ targetFile: z.ZodOptional<z.ZodString>;
10
+ targetSymbol: z.ZodOptional<z.ZodString>;
11
+ symbol: z.ZodOptional<z.ZodString>;
12
+ instructions: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
13
+ hint: z.ZodOptional<z.ZodString>;
14
+ testNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ symbol?: string;
17
+ id?: string;
18
+ title?: string;
19
+ concept?: string;
20
+ targetFile?: string;
21
+ targetSymbol?: string;
22
+ instructions?: string | string[];
23
+ hint?: string;
24
+ testNames?: string[];
25
+ }, {
26
+ symbol?: string;
27
+ id?: string;
28
+ title?: string;
29
+ concept?: string;
30
+ targetFile?: string;
31
+ targetSymbol?: string;
32
+ instructions?: string | string[];
33
+ hint?: string;
34
+ testNames?: string[];
35
+ }>;
36
+ export type GuidedStep = z.infer<typeof GuidedStepSchema>;
37
+ export declare const LanguageBundleSchema: z.ZodObject<{
38
+ language: z.ZodDefault<z.ZodEnum<["js", "ts"]>>;
39
+ files: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
40
+ starterFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
41
+ solutionFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
42
+ entry: z.ZodOptional<z.ZodString>;
43
+ testEntry: z.ZodOptional<z.ZodString>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ language?: "js" | "ts";
46
+ files?: Record<string, string>;
47
+ starterFiles?: Record<string, string>;
48
+ solutionFiles?: Record<string, string>;
49
+ entry?: string;
50
+ testEntry?: string;
51
+ }, {
52
+ language?: "js" | "ts";
53
+ files?: Record<string, string>;
54
+ starterFiles?: Record<string, string>;
55
+ solutionFiles?: Record<string, string>;
56
+ entry?: string;
57
+ testEntry?: string;
58
+ }>;
59
+ export type LanguageBundle = z.infer<typeof LanguageBundleSchema>;
60
+ export declare const GuidedLabExtensionOptionsSchema: z.ZodObject<{
61
+ steps: z.ZodDefault<z.ZodArray<z.ZodObject<{
62
+ id: z.ZodString;
63
+ title: z.ZodString;
64
+ concept: z.ZodOptional<z.ZodString>;
65
+ targetFile: z.ZodOptional<z.ZodString>;
66
+ targetSymbol: z.ZodOptional<z.ZodString>;
67
+ symbol: z.ZodOptional<z.ZodString>;
68
+ instructions: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
69
+ hint: z.ZodOptional<z.ZodString>;
70
+ testNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ symbol?: string;
73
+ id?: string;
74
+ title?: string;
75
+ concept?: string;
76
+ targetFile?: string;
77
+ targetSymbol?: string;
78
+ instructions?: string | string[];
79
+ hint?: string;
80
+ testNames?: string[];
81
+ }, {
82
+ symbol?: string;
83
+ id?: string;
84
+ title?: string;
85
+ concept?: string;
86
+ targetFile?: string;
87
+ targetSymbol?: string;
88
+ instructions?: string | string[];
89
+ hint?: string;
90
+ testNames?: string[];
91
+ }>, "many">>;
92
+ stepIndex: z.ZodDefault<z.ZodNumber>;
93
+ mode: z.ZodDefault<z.ZodEnum<["guided", "sandbox"]>>;
94
+ language: z.ZodOptional<z.ZodEnum<["js", "ts"]>>;
95
+ lang: z.ZodOptional<z.ZodEnum<["js", "ts"]>>;
96
+ starterFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
97
+ solutionFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
98
+ tsStarterFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
99
+ tsSolutionFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
100
+ tsFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
101
+ summary: z.ZodOptional<z.ZodString>;
102
+ onStepComplete: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
103
+ id: z.ZodString;
104
+ title: z.ZodString;
105
+ concept: z.ZodOptional<z.ZodString>;
106
+ targetFile: z.ZodOptional<z.ZodString>;
107
+ targetSymbol: z.ZodOptional<z.ZodString>;
108
+ symbol: z.ZodOptional<z.ZodString>;
109
+ instructions: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
110
+ hint: z.ZodOptional<z.ZodString>;
111
+ testNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ symbol?: string;
114
+ id?: string;
115
+ title?: string;
116
+ concept?: string;
117
+ targetFile?: string;
118
+ targetSymbol?: string;
119
+ instructions?: string | string[];
120
+ hint?: string;
121
+ testNames?: string[];
122
+ }, {
123
+ symbol?: string;
124
+ id?: string;
125
+ title?: string;
126
+ concept?: string;
127
+ targetFile?: string;
128
+ targetSymbol?: string;
129
+ instructions?: string | string[];
130
+ hint?: string;
131
+ testNames?: string[];
132
+ }>, z.ZodNumber], z.ZodUnknown>, z.ZodVoid>>;
133
+ onLabComplete: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodVoid>>;
134
+ }, "strip", z.ZodTypeAny, {
135
+ language?: "js" | "ts";
136
+ starterFiles?: Record<string, string>;
137
+ solutionFiles?: Record<string, string>;
138
+ steps?: {
139
+ symbol?: string;
140
+ id?: string;
141
+ title?: string;
142
+ concept?: string;
143
+ targetFile?: string;
144
+ targetSymbol?: string;
145
+ instructions?: string | string[];
146
+ hint?: string;
147
+ testNames?: string[];
148
+ }[];
149
+ stepIndex?: number;
150
+ mode?: "guided" | "sandbox";
151
+ lang?: "js" | "ts";
152
+ tsStarterFiles?: Record<string, string>;
153
+ tsSolutionFiles?: Record<string, string>;
154
+ tsFiles?: Record<string, string>;
155
+ summary?: string;
156
+ onStepComplete?: (args_0: {
157
+ symbol?: string;
158
+ id?: string;
159
+ title?: string;
160
+ concept?: string;
161
+ targetFile?: string;
162
+ targetSymbol?: string;
163
+ instructions?: string | string[];
164
+ hint?: string;
165
+ testNames?: string[];
166
+ }, args_1: number, ...args: unknown[]) => void;
167
+ onLabComplete?: (args_0: string, ...args: unknown[]) => void;
168
+ }, {
169
+ language?: "js" | "ts";
170
+ starterFiles?: Record<string, string>;
171
+ solutionFiles?: Record<string, string>;
172
+ steps?: {
173
+ symbol?: string;
174
+ id?: string;
175
+ title?: string;
176
+ concept?: string;
177
+ targetFile?: string;
178
+ targetSymbol?: string;
179
+ instructions?: string | string[];
180
+ hint?: string;
181
+ testNames?: string[];
182
+ }[];
183
+ stepIndex?: number;
184
+ mode?: "guided" | "sandbox";
185
+ lang?: "js" | "ts";
186
+ tsStarterFiles?: Record<string, string>;
187
+ tsSolutionFiles?: Record<string, string>;
188
+ tsFiles?: Record<string, string>;
189
+ summary?: string;
190
+ onStepComplete?: (args_0: {
191
+ symbol?: string;
192
+ id?: string;
193
+ title?: string;
194
+ concept?: string;
195
+ targetFile?: string;
196
+ targetSymbol?: string;
197
+ instructions?: string | string[];
198
+ hint?: string;
199
+ testNames?: string[];
200
+ }, args_1: number, ...args: unknown[]) => void;
201
+ onLabComplete?: (args_0: string, ...args: unknown[]) => void;
202
+ }>;
203
+ export type GuidedLabExtensionOptions = z.infer<typeof GuidedLabExtensionOptionsSchema>;
204
+ export declare const CloneProgressPhaseSchema: z.ZodEnum<["connecting", "metadata", "downloading", "mounting", "ready", "error"]>;
205
+ export type CloneProgressPhase = z.infer<typeof CloneProgressPhaseSchema>;
206
+ export declare const CloneProgressEventSchema: z.ZodObject<{
207
+ phase: z.ZodEnum<["connecting", "metadata", "downloading", "mounting", "ready", "error"]>;
208
+ message: z.ZodString;
209
+ loaded: z.ZodOptional<z.ZodNumber>;
210
+ total: z.ZodOptional<z.ZodNumber>;
211
+ }, "strip", z.ZodTypeAny, {
212
+ message?: string;
213
+ phase?: "connecting" | "metadata" | "downloading" | "mounting" | "ready" | "error";
214
+ loaded?: number;
215
+ total?: number;
216
+ }, {
217
+ message?: string;
218
+ phase?: "connecting" | "metadata" | "downloading" | "mounting" | "ready" | "error";
219
+ loaded?: number;
220
+ total?: number;
221
+ }>;
222
+ export type CloneProgressEvent = z.infer<typeof CloneProgressEventSchema>;
223
+ export declare const GitHubCloneOptionsSchema: z.ZodObject<{
224
+ intoRoot: z.ZodDefault<z.ZodBoolean>;
225
+ targetDir: z.ZodDefault<z.ZodString>;
226
+ branch: z.ZodOptional<z.ZodString>;
227
+ depth: z.ZodOptional<z.ZodNumber>;
228
+ maxFiles: z.ZodDefault<z.ZodNumber>;
229
+ maxFileSize: z.ZodDefault<z.ZodNumber>;
230
+ concurrency: z.ZodDefault<z.ZodNumber>;
231
+ clearExisting: z.ZodDefault<z.ZodBoolean>;
232
+ onProgress: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodVoid>>;
233
+ fetchImpl: z.ZodOptional<z.ZodAny>;
234
+ }, "strip", z.ZodTypeAny, {
235
+ intoRoot?: boolean;
236
+ targetDir?: string;
237
+ branch?: string;
238
+ depth?: number;
239
+ maxFiles?: number;
240
+ maxFileSize?: number;
241
+ concurrency?: number;
242
+ clearExisting?: boolean;
243
+ onProgress?: (args_0: any, ...args: unknown[]) => void;
244
+ fetchImpl?: any;
245
+ }, {
246
+ intoRoot?: boolean;
247
+ targetDir?: string;
248
+ branch?: string;
249
+ depth?: number;
250
+ maxFiles?: number;
251
+ maxFileSize?: number;
252
+ concurrency?: number;
253
+ clearExisting?: boolean;
254
+ onProgress?: (args_0: any, ...args: unknown[]) => void;
255
+ fetchImpl?: any;
256
+ }>;
257
+ export type GitHubCloneOptions = z.infer<typeof GitHubCloneOptionsSchema>;
258
+ export declare const RuntimeExecuteOptionsSchema: z.ZodObject<{
259
+ files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
260
+ entry: z.ZodOptional<z.ZodString>;
261
+ mode: z.ZodDefault<z.ZodEnum<["run", "test", "repl"]>>;
262
+ replCode: z.ZodOptional<z.ZodString>;
263
+ printReplResult: z.ZodOptional<z.ZodBoolean>;
264
+ testFilter: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>;
265
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
266
+ maxOutputBytes: z.ZodDefault<z.ZodNumber>;
267
+ maxConsoleCalls: z.ZodDefault<z.ZodNumber>;
268
+ instanceId: z.ZodOptional<z.ZodString>;
269
+ concurrent: z.ZodOptional<z.ZodBoolean>;
270
+ argv: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodNull]>>;
271
+ pid: z.ZodOptional<z.ZodNumber>;
272
+ isBackground: z.ZodOptional<z.ZodBoolean>;
273
+ vfs: z.ZodOptional<z.ZodAny>;
274
+ activePortTable: z.ZodOptional<z.ZodAny>;
275
+ packages: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
276
+ npmModules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
277
+ onStdout: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodVoid>>;
278
+ onStderr: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodVoid>>;
279
+ onTestResult: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodVoid>>;
280
+ }, "strip", z.ZodTypeAny, {
281
+ files?: Record<string, string>;
282
+ entry?: string;
283
+ mode?: "run" | "test" | "repl";
284
+ replCode?: string;
285
+ printReplResult?: boolean;
286
+ testFilter?: string | string[];
287
+ timeoutMs?: number;
288
+ maxOutputBytes?: number;
289
+ maxConsoleCalls?: number;
290
+ instanceId?: string;
291
+ concurrent?: boolean;
292
+ argv?: string[];
293
+ pid?: number;
294
+ isBackground?: boolean;
295
+ vfs?: any;
296
+ activePortTable?: any;
297
+ packages?: Record<string, any>;
298
+ npmModules?: Record<string, any>;
299
+ onStdout?: (args_0: string, ...args: unknown[]) => void;
300
+ onStderr?: (args_0: string, ...args: unknown[]) => void;
301
+ onTestResult?: (args_0: any, ...args: unknown[]) => void;
302
+ }, {
303
+ files?: Record<string, string>;
304
+ entry?: string;
305
+ mode?: "run" | "test" | "repl";
306
+ replCode?: string;
307
+ printReplResult?: boolean;
308
+ testFilter?: string | string[];
309
+ timeoutMs?: number;
310
+ maxOutputBytes?: number;
311
+ maxConsoleCalls?: number;
312
+ instanceId?: string;
313
+ concurrent?: boolean;
314
+ argv?: string[];
315
+ pid?: number;
316
+ isBackground?: boolean;
317
+ vfs?: any;
318
+ activePortTable?: any;
319
+ packages?: Record<string, any>;
320
+ npmModules?: Record<string, any>;
321
+ onStdout?: (args_0: string, ...args: unknown[]) => void;
322
+ onStderr?: (args_0: string, ...args: unknown[]) => void;
323
+ onTestResult?: (args_0: any, ...args: unknown[]) => void;
324
+ }>;
325
+ export type RuntimeExecuteOptions = z.infer<typeof RuntimeExecuteOptionsSchema>;
326
+ export declare const WorkspaceSnapshotSchema: z.ZodObject<{
327
+ version: z.ZodDefault<z.ZodNumber>;
328
+ timestamp: z.ZodOptional<z.ZodNumber>;
329
+ files: z.ZodRecord<z.ZodString, z.ZodString>;
330
+ openTabs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
331
+ activeFile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
332
+ mode: z.ZodOptional<z.ZodEnum<["guided", "sandbox"]>>;
333
+ lang: z.ZodOptional<z.ZodEnum<["js", "ts"]>>;
334
+ labId: z.ZodOptional<z.ZodString>;
335
+ }, "strip", z.ZodTypeAny, {
336
+ files?: Record<string, string>;
337
+ mode?: "guided" | "sandbox";
338
+ lang?: "js" | "ts";
339
+ version?: number;
340
+ timestamp?: number;
341
+ openTabs?: string[];
342
+ activeFile?: string;
343
+ labId?: string;
344
+ }, {
345
+ files?: Record<string, string>;
346
+ mode?: "guided" | "sandbox";
347
+ lang?: "js" | "ts";
348
+ version?: number;
349
+ timestamp?: number;
350
+ openTabs?: string[];
351
+ activeFile?: string;
352
+ labId?: string;
353
+ }>;
354
+ export type WorkspaceSnapshot = z.infer<typeof WorkspaceSnapshotSchema>;
355
+ export declare const WorkbenchOptionsSchema: z.ZodObject<{
356
+ id: z.ZodOptional<z.ZodString>;
357
+ labId: z.ZodOptional<z.ZodString>;
358
+ buildId: z.ZodOptional<z.ZodString>;
359
+ title: z.ZodDefault<z.ZodString>;
360
+ summary: z.ZodOptional<z.ZodString>;
361
+ theme: z.ZodDefault<z.ZodEnum<["dark", "light", "auto"]>>;
362
+ persistState: z.ZodDefault<z.ZodBoolean>;
363
+ repo: z.ZodOptional<z.ZodString>;
364
+ githubRepo: z.ZodOptional<z.ZodString>;
365
+ branch: z.ZodOptional<z.ZodString>;
366
+ files: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
367
+ entry: z.ZodDefault<z.ZodString>;
368
+ testEntry: z.ZodDefault<z.ZodString>;
369
+ testFile: z.ZodOptional<z.ZodString>;
370
+ backLabel: z.ZodDefault<z.ZodString>;
371
+ monacoUrl: z.ZodOptional<z.ZodString>;
372
+ onClose: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodVoid>>;
373
+ onRun: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodVoid>>;
374
+ onTestResult: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodVoid>>;
375
+ onCodeChange: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodString], z.ZodUnknown>, z.ZodVoid>>;
376
+ plugins: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
377
+ extensions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
378
+ steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
379
+ id: z.ZodString;
380
+ title: z.ZodString;
381
+ concept: z.ZodOptional<z.ZodString>;
382
+ targetFile: z.ZodOptional<z.ZodString>;
383
+ targetSymbol: z.ZodOptional<z.ZodString>;
384
+ symbol: z.ZodOptional<z.ZodString>;
385
+ instructions: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
386
+ hint: z.ZodOptional<z.ZodString>;
387
+ testNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
388
+ }, "strip", z.ZodTypeAny, {
389
+ symbol?: string;
390
+ id?: string;
391
+ title?: string;
392
+ concept?: string;
393
+ targetFile?: string;
394
+ targetSymbol?: string;
395
+ instructions?: string | string[];
396
+ hint?: string;
397
+ testNames?: string[];
398
+ }, {
399
+ symbol?: string;
400
+ id?: string;
401
+ title?: string;
402
+ concept?: string;
403
+ targetFile?: string;
404
+ targetSymbol?: string;
405
+ instructions?: string | string[];
406
+ hint?: string;
407
+ testNames?: string[];
408
+ }>, "many">>;
409
+ starterFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
410
+ solutionFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
411
+ tsFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
412
+ tsStarterFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
413
+ tsSolutionFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
414
+ guided: z.ZodOptional<z.ZodAny>;
415
+ mode: z.ZodOptional<z.ZodEnum<["guided", "sandbox"]>>;
416
+ language: z.ZodOptional<z.ZodEnum<["js", "ts"]>>;
417
+ lang: z.ZodOptional<z.ZodEnum<["js", "ts"]>>;
418
+ stepIndex: z.ZodOptional<z.ZodNumber>;
419
+ onStepComplete: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny, z.ZodNumber], z.ZodUnknown>, z.ZodVoid>>;
420
+ onLabComplete: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodVoid>>;
421
+ }, "strip", z.ZodTypeAny, {
422
+ id?: string;
423
+ title?: string;
424
+ language?: "js" | "ts";
425
+ files?: Record<string, string>;
426
+ starterFiles?: Record<string, string>;
427
+ solutionFiles?: Record<string, string>;
428
+ entry?: string;
429
+ testEntry?: string;
430
+ steps?: {
431
+ symbol?: string;
432
+ id?: string;
433
+ title?: string;
434
+ concept?: string;
435
+ targetFile?: string;
436
+ targetSymbol?: string;
437
+ instructions?: string | string[];
438
+ hint?: string;
439
+ testNames?: string[];
440
+ }[];
441
+ stepIndex?: number;
442
+ guided?: any;
443
+ mode?: "guided" | "sandbox";
444
+ lang?: "js" | "ts";
445
+ tsStarterFiles?: Record<string, string>;
446
+ tsSolutionFiles?: Record<string, string>;
447
+ tsFiles?: Record<string, string>;
448
+ summary?: string;
449
+ onStepComplete?: (args_0: any, args_1: number, ...args: unknown[]) => void;
450
+ onLabComplete?: (args_0: string, ...args: unknown[]) => void;
451
+ branch?: string;
452
+ onTestResult?: (args_0: any, ...args: unknown[]) => void;
453
+ labId?: string;
454
+ buildId?: string;
455
+ theme?: "dark" | "light" | "auto";
456
+ persistState?: boolean;
457
+ repo?: string;
458
+ githubRepo?: string;
459
+ testFile?: string;
460
+ backLabel?: string;
461
+ monacoUrl?: string;
462
+ onClose?: (...args: unknown[]) => void;
463
+ onRun?: (args_0: any, ...args: unknown[]) => void;
464
+ onCodeChange?: (args_0: string, args_1: string, ...args: unknown[]) => void;
465
+ plugins?: any[];
466
+ extensions?: any[];
467
+ }, {
468
+ id?: string;
469
+ title?: string;
470
+ language?: "js" | "ts";
471
+ files?: Record<string, string>;
472
+ starterFiles?: Record<string, string>;
473
+ solutionFiles?: Record<string, string>;
474
+ entry?: string;
475
+ testEntry?: string;
476
+ steps?: {
477
+ symbol?: string;
478
+ id?: string;
479
+ title?: string;
480
+ concept?: string;
481
+ targetFile?: string;
482
+ targetSymbol?: string;
483
+ instructions?: string | string[];
484
+ hint?: string;
485
+ testNames?: string[];
486
+ }[];
487
+ stepIndex?: number;
488
+ guided?: any;
489
+ mode?: "guided" | "sandbox";
490
+ lang?: "js" | "ts";
491
+ tsStarterFiles?: Record<string, string>;
492
+ tsSolutionFiles?: Record<string, string>;
493
+ tsFiles?: Record<string, string>;
494
+ summary?: string;
495
+ onStepComplete?: (args_0: any, args_1: number, ...args: unknown[]) => void;
496
+ onLabComplete?: (args_0: string, ...args: unknown[]) => void;
497
+ branch?: string;
498
+ onTestResult?: (args_0: any, ...args: unknown[]) => void;
499
+ labId?: string;
500
+ buildId?: string;
501
+ theme?: "dark" | "light" | "auto";
502
+ persistState?: boolean;
503
+ repo?: string;
504
+ githubRepo?: string;
505
+ testFile?: string;
506
+ backLabel?: string;
507
+ monacoUrl?: string;
508
+ onClose?: (...args: unknown[]) => void;
509
+ onRun?: (args_0: any, ...args: unknown[]) => void;
510
+ onCodeChange?: (args_0: string, args_1: string, ...args: unknown[]) => void;
511
+ plugins?: any[];
512
+ extensions?: any[];
513
+ }>;
514
+ export type WorkbenchOptions = z.infer<typeof WorkbenchOptionsSchema>;
@@ -0,0 +1,66 @@
1
+ /**
2
+ * @innovatorved/code-lab - POSIX Shell Engine & UNIX Coreutils (TypeScript)
3
+ *
4
+ * Full-fidelity, CSP-safe POSIX shell AST interpreter and 35+ standard UNIX
5
+ * coreutils operating directly on the in-memory virtual filesystem (VFS).
6
+ *
7
+ * (C) 2026 InnovatorVed / CodeLab. MIT License.
8
+ */
9
+ import type { CloneProgressEvent, CloneProgressPhase, GitHubCloneOptions } from './schemas.js';
10
+ export type { CloneProgressEvent, CloneProgressPhase, GitHubCloneOptions };
11
+ export interface CloneResult {
12
+ owner: string;
13
+ repo: string;
14
+ branch: string;
15
+ url: string;
16
+ targetDir: string;
17
+ count: number;
18
+ fileCount: number;
19
+ filesWritten: number;
20
+ totalBytes: number;
21
+ commits: Array<{
22
+ hash: string;
23
+ author: string;
24
+ date: string;
25
+ message: string;
26
+ }>;
27
+ headSnapshot: Record<string, string>;
28
+ }
29
+ export interface ShellExecResult {
30
+ code: number;
31
+ exitCode?: number;
32
+ ok?: boolean;
33
+ stdout: string;
34
+ stderr: string;
35
+ controlFlow?: {
36
+ type: string;
37
+ count?: number;
38
+ code?: number;
39
+ };
40
+ aborted?: boolean;
41
+ }
42
+ export interface ShellExecOptions {
43
+ cwd?: string;
44
+ env?: Record<string, string>;
45
+ vfs?: any;
46
+ portTable?: any;
47
+ onStdout?: (chunk: string) => void;
48
+ onStderr?: (chunk: string) => void;
49
+ stdin?: string;
50
+ fetchImpl?: any;
51
+ onProgress?: (event: CloneProgressEvent) => void;
52
+ signal?: AbortSignal;
53
+ }
54
+ declare const _hostShell: any;
55
+ export declare const createPosixShell: (options?: any) => any;
56
+ export declare const parseShellCommand: (cmd: string) => any;
57
+ export declare const tokenizeShell: (input: string) => any[];
58
+ export declare const PosixShell: any;
59
+ export declare const COREUTILS: Record<string, any>;
60
+ export declare const PosixPath: any;
61
+ export declare const expandGlob: (pattern: string, vfs: any, cwd?: string) => string[];
62
+ export declare const createVirtualPortTable: () => any;
63
+ export declare const parseGitHubRepoUrl: (input: string) => any;
64
+ export declare const cloneGitHubRepository: (repoInput: string, vfs: any, options?: GitHubCloneOptions) => Promise<CloneResult>;
65
+ export declare const CodeLabShell: any;
66
+ export default _hostShell;