@innovatorved/code-lab 0.3.2 → 0.4.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.
Files changed (155) hide show
  1. package/ARCHITECTURE.md +5 -3
  2. package/CHANGELOG.md +20 -0
  3. package/README.md +70 -168
  4. package/dist/apps/web/src/index.d.ts +34 -0
  5. package/dist/code-lab-sql.css +482 -0
  6. package/dist/code-lab-sql.d.ts +179 -0
  7. package/dist/code-lab-sql.esm.js +542 -0
  8. package/dist/code-lab-sql.umd.js +531 -0
  9. package/dist/code-lab.css +246 -0
  10. package/dist/code-lab.d.ts +110 -15
  11. package/dist/code-lab.esm.js +34265 -18104
  12. package/dist/code-lab.js +33186 -17053
  13. package/dist/code-lab.umd.js +65502 -0
  14. package/dist/extensions/cpp.esm.js +19478 -3760
  15. package/dist/extensions/cpp.js +19475 -3757
  16. package/dist/extensions/guided-lab.esm.js +19401 -3725
  17. package/dist/extensions/guided-lab.js +19400 -3724
  18. package/dist/extensions/python.d.ts +1 -0
  19. package/dist/extensions/python.esm.js +19576 -3766
  20. package/dist/extensions/python.js +19576 -3766
  21. package/dist/extensions/umbrella.d.ts +5 -0
  22. package/dist/index.d.ts +1 -1
  23. package/dist/modular-kernel.d.ts +11 -0
  24. package/dist/packages/commands/src/index.d.ts +96 -0
  25. package/dist/packages/core/src/di.d.ts +36 -0
  26. package/dist/packages/core/src/disposable.d.ts +27 -0
  27. package/dist/packages/core/src/errors.d.ts +69 -0
  28. package/dist/packages/core/src/events.d.ts +38 -0
  29. package/dist/packages/core/src/index.d.ts +6 -0
  30. package/dist/packages/core/src/path.d.ts +14 -0
  31. package/dist/packages/core/src/registry.d.ts +23 -0
  32. package/dist/packages/editor/src/index.d.ts +118 -0
  33. package/dist/packages/fs/src/backends.d.ts +37 -0
  34. package/dist/packages/fs/src/index.d.ts +3 -0
  35. package/dist/packages/fs/src/types.d.ts +40 -0
  36. package/dist/packages/fs/src/vfs-service.d.ts +33 -0
  37. package/dist/packages/preview/src/index.d.ts +34 -0
  38. package/dist/packages/runtime/src/index.d.ts +47 -0
  39. package/dist/packages/settings/src/builtin-schemas.d.ts +15 -0
  40. package/dist/packages/settings/src/configuration-service.d.ts +100 -0
  41. package/dist/packages/settings/src/index.d.ts +4 -0
  42. package/dist/packages/settings/src/jsonc.d.ts +20 -0
  43. package/dist/packages/settings/src/schema.d.ts +28 -0
  44. package/dist/packages/sql/src/completions.d.ts +8 -0
  45. package/dist/packages/sql/src/diagnostics.d.ts +2 -0
  46. package/dist/packages/sql/src/formatter.d.ts +2 -0
  47. package/dist/packages/sql/src/index.d.ts +7 -0
  48. package/dist/packages/sql/src/sql-editor.d.ts +2 -0
  49. package/dist/packages/sql/src/styles.d.ts +2 -0
  50. package/dist/packages/sql/src/tokenizer.d.ts +13 -0
  51. package/dist/packages/sql/src/types.d.ts +130 -0
  52. package/dist/packages/terminal/src/index.d.ts +54 -0
  53. package/dist/packages/ui/src/index.d.ts +4 -0
  54. package/dist/packages/ui/src/observability.d.ts +22 -0
  55. package/dist/packages/ui/src/plugin-registry.d.ts +89 -0
  56. package/dist/packages/ui/src/settings-dialog.d.ts +25 -0
  57. package/dist/packages/ui/src/themes.d.ts +35 -0
  58. package/dist/preview-sw.js +53 -12
  59. package/dist/runtime.d.ts +3 -3
  60. package/dist/runtime.esm.js +467 -44
  61. package/dist/runtime.js +465 -44
  62. package/dist/schemas.d.ts +234 -814
  63. package/dist/schemas.esm.js +19401 -3725
  64. package/dist/schemas.js +19404 -3728
  65. package/dist/shell.d.ts +1 -1
  66. package/dist/shell.esm.js +364 -39
  67. package/dist/shell.js +364 -39
  68. package/dist/terminal.esm.js +62 -3
  69. package/dist/terminal.js +62 -3
  70. package/dist/workbench/diff-editor.d.ts +1 -0
  71. package/package.json +37 -8
  72. package/packages/commands/README.md +7 -0
  73. package/packages/commands/package.json +16 -0
  74. package/packages/commands/src/index.ts +467 -0
  75. package/packages/commands/tsconfig.json +22 -0
  76. package/packages/core/README.md +12 -0
  77. package/packages/core/package.json +13 -0
  78. package/packages/core/src/di.ts +147 -0
  79. package/packages/core/src/disposable.ts +112 -0
  80. package/packages/core/src/errors.ts +205 -0
  81. package/packages/core/src/events.ts +157 -0
  82. package/packages/core/src/index.ts +49 -0
  83. package/packages/core/src/path.ts +118 -0
  84. package/packages/core/src/registry.ts +61 -0
  85. package/packages/core/tsconfig.json +19 -0
  86. package/packages/editor/README.md +9 -0
  87. package/packages/editor/package.json +18 -0
  88. package/packages/editor/src/index.ts +344 -0
  89. package/packages/editor/tsconfig.json +24 -0
  90. package/packages/fs/README.md +7 -0
  91. package/packages/fs/package.json +16 -0
  92. package/packages/fs/src/backends.ts +301 -0
  93. package/packages/fs/src/index.ts +18 -0
  94. package/packages/fs/src/types.ts +44 -0
  95. package/packages/fs/src/vfs-service.ts +257 -0
  96. package/packages/fs/tsconfig.json +22 -0
  97. package/packages/preview/README.md +3 -0
  98. package/packages/preview/package.json +16 -0
  99. package/packages/preview/src/index.ts +125 -0
  100. package/packages/preview/tsconfig.json +22 -0
  101. package/packages/runtime/README.md +3 -0
  102. package/packages/runtime/package.json +17 -0
  103. package/packages/runtime/src/index.ts +134 -0
  104. package/packages/runtime/tsconfig.json +23 -0
  105. package/packages/settings/README.md +7 -0
  106. package/packages/settings/package.json +16 -0
  107. package/packages/settings/src/builtin-schemas.ts +235 -0
  108. package/packages/settings/src/configuration-service.ts +543 -0
  109. package/packages/settings/src/index.ts +37 -0
  110. package/packages/settings/src/jsonc.ts +189 -0
  111. package/packages/settings/src/schema.ts +164 -0
  112. package/packages/settings/tsconfig.json +22 -0
  113. package/packages/sql/README.md +12 -0
  114. package/packages/sql/package.json +13 -0
  115. package/packages/sql/src/completions.ts +359 -0
  116. package/packages/sql/src/diagnostics.ts +200 -0
  117. package/packages/sql/src/formatter.ts +271 -0
  118. package/packages/sql/src/index.ts +54 -0
  119. package/packages/sql/src/sql-editor.ts +802 -0
  120. package/packages/sql/src/styles.ts +501 -0
  121. package/packages/sql/src/tokenizer.ts +457 -0
  122. package/packages/sql/src/types.ts +148 -0
  123. package/packages/sql/tsconfig.json +19 -0
  124. package/packages/terminal/README.md +3 -0
  125. package/packages/terminal/package.json +16 -0
  126. package/packages/terminal/src/index.ts +183 -0
  127. package/packages/terminal/tsconfig.json +22 -0
  128. package/packages/ui/README.md +8 -0
  129. package/packages/ui/package.json +18 -0
  130. package/packages/ui/src/index.ts +36 -0
  131. package/packages/ui/src/observability.ts +175 -0
  132. package/packages/ui/src/plugin-registry.ts +274 -0
  133. package/packages/ui/src/settings-dialog.ts +293 -0
  134. package/packages/ui/src/themes.ts +174 -0
  135. package/packages/ui/tsconfig.json +24 -0
  136. package/src/code-lab.css +246 -0
  137. package/src/extensions/cpp.ts +58 -15
  138. package/src/extensions/python.ts +156 -24
  139. package/src/extensions/umbrella.ts +5 -0
  140. package/src/index.ts +1 -1
  141. package/src/modular-kernel.ts +11 -0
  142. package/src/preview-sw.js +52 -11
  143. package/src/runtime.ts +466 -46
  144. package/src/schemas.ts +62 -62
  145. package/src/shell.ts +363 -39
  146. package/src/terminal.ts +60 -2
  147. package/src/workbench/diff-editor.ts +66 -6
  148. package/src/workbench/icons.ts +5 -2
  149. package/src/workbench.ts +2410 -220
  150. package/dist/runtime/index.d.ts +0 -4
  151. package/dist/shell/coreutils/compilers-cli.d.ts +0 -24
  152. package/dist/shell/index.d.ts +0 -4
  153. package/src/runtime/index.ts +0 -5
  154. package/src/shell/coreutils/compilers-cli.ts +0 -103
  155. package/src/shell/index.ts +0 -5
package/dist/schemas.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  /**
3
- * Zod Schemas and Inferred TypeScript Types for code-lab v0.3.2
3
+ * Zod Schemas and Inferred TypeScript Types for code-lab v0.4.0
4
4
  */
5
5
  export declare const GuidedStepSchema: z.ZodObject<{
6
6
  id: z.ZodString;
@@ -9,56 +9,37 @@ export declare const GuidedStepSchema: z.ZodObject<{
9
9
  targetFile: z.ZodOptional<z.ZodString>;
10
10
  targetSymbol: z.ZodOptional<z.ZodString>;
11
11
  symbol: z.ZodOptional<z.ZodString>;
12
- instructions: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
12
+ instructions: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
13
13
  hint: z.ZodOptional<z.ZodString>;
14
- testNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
15
- }, "strip", z.ZodTypeAny, {
16
- symbol?: string;
17
- hint?: string;
18
- id?: string;
19
- title?: string;
20
- concept?: string;
21
- targetFile?: string;
22
- targetSymbol?: string;
23
- instructions?: string | string[];
24
- testNames?: string[];
25
- }, {
26
- symbol?: string;
27
- hint?: string;
28
- id?: string;
29
- title?: string;
30
- concept?: string;
31
- targetFile?: string;
32
- targetSymbol?: string;
33
- instructions?: string | string[];
34
- testNames?: string[];
35
- }>;
14
+ testNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
15
+ }, z.core.$strip>;
36
16
  export type GuidedStep = z.infer<typeof GuidedStepSchema>;
37
- export declare const LanguageIdSchema: z.ZodEnum<["js", "ts", "cpp", "py"]>;
17
+ export declare const LanguageIdSchema: z.ZodEnum<{
18
+ js: "js";
19
+ ts: "ts";
20
+ cpp: "cpp";
21
+ py: "py";
22
+ }>;
38
23
  export type LanguageId = z.infer<typeof LanguageIdSchema>;
39
- export declare const LanguageEnum: z.ZodEnum<["js", "ts", "cpp", "py"]>;
24
+ export declare const LanguageEnum: z.ZodEnum<{
25
+ js: "js";
26
+ ts: "ts";
27
+ cpp: "cpp";
28
+ py: "py";
29
+ }>;
40
30
  export declare const LanguageBundleSchema: z.ZodObject<{
41
- language: z.ZodDefault<z.ZodEnum<["js", "ts", "cpp", "py"]>>;
31
+ language: z.ZodDefault<z.ZodEnum<{
32
+ js: "js";
33
+ ts: "ts";
34
+ cpp: "cpp";
35
+ py: "py";
36
+ }>>;
42
37
  files: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
43
38
  starterFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
44
39
  solutionFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
45
40
  entry: z.ZodOptional<z.ZodString>;
46
41
  testEntry: z.ZodOptional<z.ZodString>;
47
- }, "strip", z.ZodTypeAny, {
48
- language?: "js" | "ts" | "cpp" | "py";
49
- files?: Record<string, string>;
50
- starterFiles?: Record<string, string>;
51
- solutionFiles?: Record<string, string>;
52
- entry?: string;
53
- testEntry?: string;
54
- }, {
55
- language?: "js" | "ts" | "cpp" | "py";
56
- files?: Record<string, string>;
57
- starterFiles?: Record<string, string>;
58
- solutionFiles?: Record<string, string>;
59
- entry?: string;
60
- testEntry?: string;
61
- }>;
42
+ }, z.core.$strip>;
62
43
  export type LanguageBundle = z.infer<typeof LanguageBundleSchema>;
63
44
  export declare const GuidedLabExtensionOptionsSchema: z.ZodObject<{
64
45
  steps: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -68,34 +49,27 @@ export declare const GuidedLabExtensionOptionsSchema: z.ZodObject<{
68
49
  targetFile: z.ZodOptional<z.ZodString>;
69
50
  targetSymbol: z.ZodOptional<z.ZodString>;
70
51
  symbol: z.ZodOptional<z.ZodString>;
71
- instructions: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
52
+ instructions: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
72
53
  hint: z.ZodOptional<z.ZodString>;
73
- testNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
74
- }, "strip", z.ZodTypeAny, {
75
- symbol?: string;
76
- hint?: string;
77
- id?: string;
78
- title?: string;
79
- concept?: string;
80
- targetFile?: string;
81
- targetSymbol?: string;
82
- instructions?: string | string[];
83
- testNames?: string[];
84
- }, {
85
- symbol?: string;
86
- hint?: string;
87
- id?: string;
88
- title?: string;
89
- concept?: string;
90
- targetFile?: string;
91
- targetSymbol?: string;
92
- instructions?: string | string[];
93
- testNames?: string[];
94
- }>, "many">>;
54
+ testNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
55
+ }, z.core.$strip>>>;
95
56
  stepIndex: z.ZodDefault<z.ZodNumber>;
96
- mode: z.ZodDefault<z.ZodEnum<["guided", "sandbox"]>>;
97
- language: z.ZodOptional<z.ZodEnum<["js", "ts", "cpp", "py"]>>;
98
- lang: z.ZodOptional<z.ZodEnum<["js", "ts", "cpp", "py"]>>;
57
+ mode: z.ZodDefault<z.ZodEnum<{
58
+ guided: "guided";
59
+ sandbox: "sandbox";
60
+ }>>;
61
+ language: z.ZodOptional<z.ZodEnum<{
62
+ js: "js";
63
+ ts: "ts";
64
+ cpp: "cpp";
65
+ py: "py";
66
+ }>>;
67
+ lang: z.ZodOptional<z.ZodEnum<{
68
+ js: "js";
69
+ ts: "ts";
70
+ cpp: "cpp";
71
+ py: "py";
72
+ }>>;
99
73
  starterFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
100
74
  solutionFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
101
75
  tsStarterFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -111,145 +85,35 @@ export declare const GuidedLabExtensionOptionsSchema: z.ZodObject<{
111
85
  pyTestEntry: z.ZodOptional<z.ZodString>;
112
86
  pyTestCode: z.ZodOptional<z.ZodString>;
113
87
  summary: z.ZodOptional<z.ZodString>;
114
- onStepComplete: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
88
+ onStepComplete: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
115
89
  id: z.ZodString;
116
90
  title: z.ZodString;
117
91
  concept: z.ZodOptional<z.ZodString>;
118
92
  targetFile: z.ZodOptional<z.ZodString>;
119
93
  targetSymbol: z.ZodOptional<z.ZodString>;
120
94
  symbol: z.ZodOptional<z.ZodString>;
121
- instructions: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
95
+ instructions: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
122
96
  hint: z.ZodOptional<z.ZodString>;
123
- testNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
124
- }, "strip", z.ZodTypeAny, {
125
- symbol?: string;
126
- hint?: string;
127
- id?: string;
128
- title?: string;
129
- concept?: string;
130
- targetFile?: string;
131
- targetSymbol?: string;
132
- instructions?: string | string[];
133
- testNames?: string[];
134
- }, {
135
- symbol?: string;
136
- hint?: string;
137
- id?: string;
138
- title?: string;
139
- concept?: string;
140
- targetFile?: string;
141
- targetSymbol?: string;
142
- instructions?: string | string[];
143
- testNames?: string[];
144
- }>, z.ZodNumber], z.ZodUnknown>, z.ZodVoid>>;
145
- onLabComplete: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodVoid>>;
146
- }, "strip", z.ZodTypeAny, {
147
- mode?: "guided" | "sandbox";
148
- language?: "js" | "ts" | "cpp" | "py";
149
- starterFiles?: Record<string, string>;
150
- solutionFiles?: Record<string, string>;
151
- steps?: {
152
- symbol?: string;
153
- hint?: string;
154
- id?: string;
155
- title?: string;
156
- concept?: string;
157
- targetFile?: string;
158
- targetSymbol?: string;
159
- instructions?: string | string[];
160
- testNames?: string[];
161
- }[];
162
- stepIndex?: number;
163
- lang?: "js" | "ts" | "cpp" | "py";
164
- tsStarterFiles?: Record<string, string>;
165
- tsSolutionFiles?: Record<string, string>;
166
- tsFiles?: Record<string, string>;
167
- cppStarterFiles?: Record<string, string>;
168
- cppSolutionFiles?: Record<string, string>;
169
- cppFiles?: Record<string, string>;
170
- pyStarterFiles?: Record<string, string>;
171
- pySolutionFiles?: Record<string, string>;
172
- pyFiles?: Record<string, string>;
173
- pyEntry?: string;
174
- pyTestEntry?: string;
175
- pyTestCode?: string;
176
- summary?: string;
177
- onStepComplete?: (args_0: {
178
- symbol?: string;
179
- hint?: string;
180
- id?: string;
181
- title?: string;
182
- concept?: string;
183
- targetFile?: string;
184
- targetSymbol?: string;
185
- instructions?: string | string[];
186
- testNames?: string[];
187
- }, args_1: number, ...args: unknown[]) => void;
188
- onLabComplete?: (args_0: string, ...args: unknown[]) => void;
189
- }, {
190
- mode?: "guided" | "sandbox";
191
- language?: "js" | "ts" | "cpp" | "py";
192
- starterFiles?: Record<string, string>;
193
- solutionFiles?: Record<string, string>;
194
- steps?: {
195
- symbol?: string;
196
- hint?: string;
197
- id?: string;
198
- title?: string;
199
- concept?: string;
200
- targetFile?: string;
201
- targetSymbol?: string;
202
- instructions?: string | string[];
203
- testNames?: string[];
204
- }[];
205
- stepIndex?: number;
206
- lang?: "js" | "ts" | "cpp" | "py";
207
- tsStarterFiles?: Record<string, string>;
208
- tsSolutionFiles?: Record<string, string>;
209
- tsFiles?: Record<string, string>;
210
- cppStarterFiles?: Record<string, string>;
211
- cppSolutionFiles?: Record<string, string>;
212
- cppFiles?: Record<string, string>;
213
- pyStarterFiles?: Record<string, string>;
214
- pySolutionFiles?: Record<string, string>;
215
- pyFiles?: Record<string, string>;
216
- pyEntry?: string;
217
- pyTestEntry?: string;
218
- pyTestCode?: string;
219
- summary?: string;
220
- onStepComplete?: (args_0: {
221
- symbol?: string;
222
- hint?: string;
223
- id?: string;
224
- title?: string;
225
- concept?: string;
226
- targetFile?: string;
227
- targetSymbol?: string;
228
- instructions?: string | string[];
229
- testNames?: string[];
230
- }, args_1: number, ...args: unknown[]) => void;
231
- onLabComplete?: (args_0: string, ...args: unknown[]) => void;
232
- }>;
233
- export type GuidedLabExtensionOptions = z.infer<typeof GuidedLabExtensionOptionsSchema>;
97
+ testNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
98
+ }, z.core.$strip>, z.ZodNumber], null>, z.ZodVoid>>;
99
+ onLabComplete: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodString], null>, z.ZodVoid>>;
100
+ }, z.core.$strip>;
101
+ export type GuidedLabExtensionOptions = z.input<typeof GuidedLabExtensionOptionsSchema>;
234
102
  export declare const CppToolchainProgressSchema: z.ZodObject<{
235
- stage: z.ZodEnum<["downloading", "caching", "extracting", "compiling", "linking", "ready", "error"]>;
103
+ stage: z.ZodEnum<{
104
+ error: "error";
105
+ downloading: "downloading";
106
+ caching: "caching";
107
+ extracting: "extracting";
108
+ compiling: "compiling";
109
+ linking: "linking";
110
+ ready: "ready";
111
+ }>;
236
112
  loadedBytes: z.ZodOptional<z.ZodNumber>;
237
113
  totalBytes: z.ZodOptional<z.ZodNumber>;
238
114
  percent: z.ZodOptional<z.ZodNumber>;
239
115
  message: z.ZodOptional<z.ZodString>;
240
- }, "strip", z.ZodTypeAny, {
241
- message?: string;
242
- stage?: "error" | "downloading" | "caching" | "extracting" | "compiling" | "linking" | "ready";
243
- loadedBytes?: number;
244
- totalBytes?: number;
245
- percent?: number;
246
- }, {
247
- message?: string;
248
- stage?: "error" | "downloading" | "caching" | "extracting" | "compiling" | "linking" | "ready";
249
- loadedBytes?: number;
250
- totalBytes?: number;
251
- percent?: number;
252
- }>;
116
+ }, z.core.$strip>;
253
117
  export type CppToolchainProgress = z.infer<typeof CppToolchainProgressSchema>;
254
118
  export declare const CppExtensionOptionsSchema: z.ZodObject<{
255
119
  toolchainUrl: z.ZodOptional<z.ZodString>;
@@ -261,74 +125,39 @@ export declare const CppExtensionOptionsSchema: z.ZodObject<{
261
125
  sysrootUrl: z.ZodOptional<z.ZodString>;
262
126
  cacheInIndexedDB: z.ZodDefault<z.ZodBoolean>;
263
127
  preload: z.ZodDefault<z.ZodBoolean>;
264
- std: z.ZodDefault<z.ZodEnum<["c++17", "c++20", "c++23"]>>;
265
- optLevel: z.ZodDefault<z.ZodEnum<["-O0", "-O1", "-O2", "-O3"]>>;
266
- flags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
128
+ std: z.ZodDefault<z.ZodEnum<{
129
+ "c++17": "c++17";
130
+ "c++20": "c++20";
131
+ "c++23": "c++23";
132
+ }>>;
133
+ optLevel: z.ZodDefault<z.ZodEnum<{
134
+ "-O0": "-O0";
135
+ "-O1": "-O1";
136
+ "-O2": "-O2";
137
+ "-O3": "-O3";
138
+ }>>;
139
+ flags: z.ZodDefault<z.ZodArray<z.ZodString>>;
267
140
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
268
141
  extraHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
269
142
  files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
270
143
  starterFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
271
144
  solutionFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
272
- onProgress: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodVoid>>;
273
- }, "strip", z.ZodTypeAny, {
274
- files?: Record<string, string>;
275
- starterFiles?: Record<string, string>;
276
- solutionFiles?: Record<string, string>;
277
- toolchainUrl?: string;
278
- clangWasmUrl?: string;
279
- clangUrl?: string;
280
- lldWasmUrl?: string;
281
- lldUrl?: string;
282
- sysrootTarUrl?: string;
283
- sysrootUrl?: string;
284
- cacheInIndexedDB?: boolean;
285
- preload?: boolean;
286
- std?: "c++17" | "c++20" | "c++23";
287
- optLevel?: "-O0" | "-O1" | "-O2" | "-O3";
288
- flags?: string[];
289
- headers?: Record<string, string>;
290
- extraHeaders?: Record<string, string>;
291
- onProgress?: (args_0: any, ...args: unknown[]) => void;
292
- }, {
293
- files?: Record<string, string>;
294
- starterFiles?: Record<string, string>;
295
- solutionFiles?: Record<string, string>;
296
- toolchainUrl?: string;
297
- clangWasmUrl?: string;
298
- clangUrl?: string;
299
- lldWasmUrl?: string;
300
- lldUrl?: string;
301
- sysrootTarUrl?: string;
302
- sysrootUrl?: string;
303
- cacheInIndexedDB?: boolean;
304
- preload?: boolean;
305
- std?: "c++17" | "c++20" | "c++23";
306
- optLevel?: "-O0" | "-O1" | "-O2" | "-O3";
307
- flags?: string[];
308
- headers?: Record<string, string>;
309
- extraHeaders?: Record<string, string>;
310
- onProgress?: (args_0: any, ...args: unknown[]) => void;
311
- }>;
312
- export type CppExtensionOptions = z.infer<typeof CppExtensionOptionsSchema>;
145
+ onProgress: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodAny], null>, z.ZodVoid>>;
146
+ }, z.core.$strip>;
147
+ export type CppExtensionOptions = z.input<typeof CppExtensionOptionsSchema>;
313
148
  export declare const PythonToolchainProgressSchema: z.ZodObject<{
314
- stage: z.ZodEnum<["downloading", "caching", "extracting", "initializing", "ready"]>;
149
+ stage: z.ZodEnum<{
150
+ downloading: "downloading";
151
+ caching: "caching";
152
+ extracting: "extracting";
153
+ ready: "ready";
154
+ initializing: "initializing";
155
+ }>;
315
156
  loadedBytes: z.ZodOptional<z.ZodNumber>;
316
157
  totalBytes: z.ZodOptional<z.ZodNumber>;
317
158
  percent: z.ZodOptional<z.ZodNumber>;
318
159
  message: z.ZodOptional<z.ZodString>;
319
- }, "strip", z.ZodTypeAny, {
320
- message?: string;
321
- stage?: "downloading" | "caching" | "extracting" | "ready" | "initializing";
322
- loadedBytes?: number;
323
- totalBytes?: number;
324
- percent?: number;
325
- }, {
326
- message?: string;
327
- stage?: "downloading" | "caching" | "extracting" | "ready" | "initializing";
328
- loadedBytes?: number;
329
- totalBytes?: number;
330
- percent?: number;
331
- }>;
160
+ }, z.core.$strip>;
332
161
  export type PythonToolchainProgress = z.infer<typeof PythonToolchainProgressSchema>;
333
162
  export declare const PythonExtensionOptionsSchema: z.ZodObject<{
334
163
  cdnBaseUrl: z.ZodOptional<z.ZodString>;
@@ -339,65 +168,37 @@ export declare const PythonExtensionOptionsSchema: z.ZodObject<{
339
168
  activate: z.ZodOptional<z.ZodBoolean>;
340
169
  entry: z.ZodDefault<z.ZodString>;
341
170
  testEntry: z.ZodDefault<z.ZodString>;
342
- packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
343
- preloadPackages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
171
+ packages: z.ZodOptional<z.ZodArray<z.ZodString>>;
172
+ preloadPackages: z.ZodOptional<z.ZodArray<z.ZodString>>;
344
173
  compilerMemoryLimitMb: z.ZodOptional<z.ZodNumber>;
345
174
  files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
346
175
  starterFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
347
176
  solutionFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
348
- onProgress: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodVoid>>;
349
- }, "strip", z.ZodTypeAny, {
350
- files?: Record<string, string>;
351
- starterFiles?: Record<string, string>;
352
- solutionFiles?: Record<string, string>;
353
- entry?: string;
354
- testEntry?: string;
355
- cacheInIndexedDB?: boolean;
356
- preload?: boolean;
357
- onProgress?: (args_0: any, ...args: unknown[]) => void;
358
- cdnBaseUrl?: string;
359
- indexUrl?: string;
360
- pyodideIndexUrl?: string;
361
- activate?: boolean;
362
- packages?: string[];
363
- preloadPackages?: string[];
364
- compilerMemoryLimitMb?: number;
365
- }, {
366
- files?: Record<string, string>;
367
- starterFiles?: Record<string, string>;
368
- solutionFiles?: Record<string, string>;
369
- entry?: string;
370
- testEntry?: string;
371
- cacheInIndexedDB?: boolean;
372
- preload?: boolean;
373
- onProgress?: (args_0: any, ...args: unknown[]) => void;
374
- cdnBaseUrl?: string;
375
- indexUrl?: string;
376
- pyodideIndexUrl?: string;
377
- activate?: boolean;
378
- packages?: string[];
379
- preloadPackages?: string[];
380
- compilerMemoryLimitMb?: number;
177
+ onProgress: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodAny], null>, z.ZodVoid>>;
178
+ }, z.core.$strip>;
179
+ export type PythonExtensionOptions = z.input<typeof PythonExtensionOptionsSchema>;
180
+ export declare const CloneProgressPhaseSchema: z.ZodEnum<{
181
+ error: "error";
182
+ downloading: "downloading";
183
+ ready: "ready";
184
+ connecting: "connecting";
185
+ metadata: "metadata";
186
+ mounting: "mounting";
381
187
  }>;
382
- export type PythonExtensionOptions = z.infer<typeof PythonExtensionOptionsSchema>;
383
- export declare const CloneProgressPhaseSchema: z.ZodEnum<["connecting", "metadata", "downloading", "mounting", "ready", "error"]>;
384
188
  export type CloneProgressPhase = z.infer<typeof CloneProgressPhaseSchema>;
385
189
  export declare const CloneProgressEventSchema: z.ZodObject<{
386
- phase: z.ZodEnum<["connecting", "metadata", "downloading", "mounting", "ready", "error"]>;
190
+ phase: z.ZodEnum<{
191
+ error: "error";
192
+ downloading: "downloading";
193
+ ready: "ready";
194
+ connecting: "connecting";
195
+ metadata: "metadata";
196
+ mounting: "mounting";
197
+ }>;
387
198
  message: z.ZodString;
388
199
  loaded: z.ZodOptional<z.ZodNumber>;
389
200
  total: z.ZodOptional<z.ZodNumber>;
390
- }, "strip", z.ZodTypeAny, {
391
- message?: string;
392
- phase?: "error" | "downloading" | "ready" | "connecting" | "metadata" | "mounting";
393
- loaded?: number;
394
- total?: number;
395
- }, {
396
- message?: string;
397
- phase?: "error" | "downloading" | "ready" | "connecting" | "metadata" | "mounting";
398
- loaded?: number;
399
- total?: number;
400
- }>;
201
+ }, z.core.$strip>;
401
202
  export type CloneProgressEvent = z.infer<typeof CloneProgressEventSchema>;
402
203
  export declare const GitHubCloneOptionsSchema: z.ZodObject<{
403
204
  intoRoot: z.ZodDefault<z.ZodBoolean>;
@@ -408,128 +209,56 @@ export declare const GitHubCloneOptionsSchema: z.ZodObject<{
408
209
  maxFileSize: z.ZodDefault<z.ZodNumber>;
409
210
  concurrency: z.ZodDefault<z.ZodNumber>;
410
211
  clearExisting: z.ZodDefault<z.ZodBoolean>;
411
- onProgress: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodVoid>>;
212
+ onProgress: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodAny], null>, z.ZodVoid>>;
412
213
  fetchImpl: z.ZodOptional<z.ZodAny>;
413
- }, "strip", z.ZodTypeAny, {
414
- onProgress?: (args_0: any, ...args: unknown[]) => void;
415
- intoRoot?: boolean;
416
- targetDir?: string;
417
- branch?: string;
418
- depth?: number;
419
- maxFiles?: number;
420
- maxFileSize?: number;
421
- concurrency?: number;
422
- clearExisting?: boolean;
423
- fetchImpl?: any;
424
- }, {
425
- onProgress?: (args_0: any, ...args: unknown[]) => void;
426
- intoRoot?: boolean;
427
- targetDir?: string;
428
- branch?: string;
429
- depth?: number;
430
- maxFiles?: number;
431
- maxFileSize?: number;
432
- concurrency?: number;
433
- clearExisting?: boolean;
434
- fetchImpl?: any;
435
- }>;
436
- export type GitHubCloneOptions = z.infer<typeof GitHubCloneOptionsSchema>;
214
+ }, z.core.$strip>;
215
+ export type GitHubCloneOptions = z.input<typeof GitHubCloneOptionsSchema>;
437
216
  export declare const RuntimeExecuteOptionsSchema: z.ZodObject<{
438
217
  files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
439
218
  entry: z.ZodOptional<z.ZodString>;
440
- mode: z.ZodDefault<z.ZodEnum<["run", "test", "repl"]>>;
219
+ mode: z.ZodDefault<z.ZodEnum<{
220
+ run: "run";
221
+ test: "test";
222
+ repl: "repl";
223
+ }>>;
441
224
  replCode: z.ZodOptional<z.ZodString>;
442
225
  printReplResult: z.ZodOptional<z.ZodBoolean>;
443
- testFilter: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>;
226
+ testFilter: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodNull]>>;
444
227
  timeoutMs: z.ZodDefault<z.ZodNumber>;
445
228
  maxOutputBytes: z.ZodDefault<z.ZodNumber>;
446
229
  maxConsoleCalls: z.ZodDefault<z.ZodNumber>;
447
230
  instanceId: z.ZodOptional<z.ZodString>;
448
231
  concurrent: z.ZodOptional<z.ZodBoolean>;
449
- argv: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodNull]>>;
232
+ argv: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodNull]>>;
450
233
  pid: z.ZodOptional<z.ZodNumber>;
451
234
  isBackground: z.ZodOptional<z.ZodBoolean>;
452
235
  vfs: z.ZodOptional<z.ZodAny>;
453
236
  activePortTable: z.ZodOptional<z.ZodAny>;
454
237
  packages: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
455
238
  npmModules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
456
- onStdout: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodVoid>>;
457
- onStderr: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodVoid>>;
458
- onTestResult: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodVoid>>;
459
- }, "strip", z.ZodTypeAny, {
460
- mode?: "run" | "test" | "repl";
461
- files?: Record<string, string>;
462
- entry?: string;
463
- packages?: Record<string, any>;
464
- replCode?: string;
465
- printReplResult?: boolean;
466
- testFilter?: string | string[];
467
- timeoutMs?: number;
468
- maxOutputBytes?: number;
469
- maxConsoleCalls?: number;
470
- instanceId?: string;
471
- concurrent?: boolean;
472
- argv?: string[];
473
- pid?: number;
474
- isBackground?: boolean;
475
- vfs?: any;
476
- activePortTable?: any;
477
- npmModules?: Record<string, any>;
478
- onStdout?: (args_0: string, ...args: unknown[]) => void;
479
- onStderr?: (args_0: string, ...args: unknown[]) => void;
480
- onTestResult?: (args_0: any, ...args: unknown[]) => void;
481
- }, {
482
- mode?: "run" | "test" | "repl";
483
- files?: Record<string, string>;
484
- entry?: string;
485
- packages?: Record<string, any>;
486
- replCode?: string;
487
- printReplResult?: boolean;
488
- testFilter?: string | string[];
489
- timeoutMs?: number;
490
- maxOutputBytes?: number;
491
- maxConsoleCalls?: number;
492
- instanceId?: string;
493
- concurrent?: boolean;
494
- argv?: string[];
495
- pid?: number;
496
- isBackground?: boolean;
497
- vfs?: any;
498
- activePortTable?: any;
499
- npmModules?: Record<string, any>;
500
- onStdout?: (args_0: string, ...args: unknown[]) => void;
501
- onStderr?: (args_0: string, ...args: unknown[]) => void;
502
- onTestResult?: (args_0: any, ...args: unknown[]) => void;
503
- }>;
504
- export type RuntimeExecuteOptions = z.infer<typeof RuntimeExecuteOptionsSchema>;
239
+ onStdout: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodString], null>, z.ZodVoid>>;
240
+ onStderr: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodString], null>, z.ZodVoid>>;
241
+ onTestResult: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodAny], null>, z.ZodVoid>>;
242
+ }, z.core.$strip>;
243
+ export type RuntimeExecuteOptions = z.input<typeof RuntimeExecuteOptionsSchema>;
505
244
  export declare const WorkspaceSnapshotSchema: z.ZodObject<{
506
245
  version: z.ZodDefault<z.ZodNumber>;
507
246
  timestamp: z.ZodOptional<z.ZodNumber>;
508
247
  files: z.ZodRecord<z.ZodString, z.ZodString>;
509
- openTabs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
248
+ openTabs: z.ZodDefault<z.ZodArray<z.ZodString>>;
510
249
  activeFile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
511
- mode: z.ZodOptional<z.ZodEnum<["guided", "sandbox"]>>;
512
- lang: z.ZodOptional<z.ZodEnum<["js", "ts", "cpp", "py"]>>;
250
+ mode: z.ZodOptional<z.ZodEnum<{
251
+ guided: "guided";
252
+ sandbox: "sandbox";
253
+ }>>;
254
+ lang: z.ZodOptional<z.ZodEnum<{
255
+ js: "js";
256
+ ts: "ts";
257
+ cpp: "cpp";
258
+ py: "py";
259
+ }>>;
513
260
  labId: z.ZodOptional<z.ZodString>;
514
- }, "strip", z.ZodTypeAny, {
515
- mode?: "guided" | "sandbox";
516
- files?: Record<string, string>;
517
- lang?: "js" | "ts" | "cpp" | "py";
518
- version?: number;
519
- timestamp?: number;
520
- openTabs?: string[];
521
- activeFile?: string;
522
- labId?: string;
523
- }, {
524
- mode?: "guided" | "sandbox";
525
- files?: Record<string, string>;
526
- lang?: "js" | "ts" | "cpp" | "py";
527
- version?: number;
528
- timestamp?: number;
529
- openTabs?: string[];
530
- activeFile?: string;
531
- labId?: string;
532
- }>;
261
+ }, z.core.$strip>;
533
262
  export type WorkspaceSnapshot = z.infer<typeof WorkspaceSnapshotSchema>;
534
263
  export declare const WorkbenchOptionsSchema: z.ZodObject<{
535
264
  id: z.ZodOptional<z.ZodString>;
@@ -537,7 +266,12 @@ export declare const WorkbenchOptionsSchema: z.ZodObject<{
537
266
  buildId: z.ZodOptional<z.ZodString>;
538
267
  title: z.ZodDefault<z.ZodString>;
539
268
  summary: z.ZodOptional<z.ZodString>;
540
- theme: z.ZodDefault<z.ZodEnum<["dark", "light", "auto"]>>;
269
+ theme: z.ZodDefault<z.ZodEnum<{
270
+ dark: "dark";
271
+ light: "light";
272
+ "high-contrast": "high-contrast";
273
+ auto: "auto";
274
+ }>>;
541
275
  persistState: z.ZodDefault<z.ZodBoolean>;
542
276
  repo: z.ZodOptional<z.ZodString>;
543
277
  githubRepo: z.ZodOptional<z.ZodString>;
@@ -551,12 +285,12 @@ export declare const WorkbenchOptionsSchema: z.ZodObject<{
551
285
  previewOrigin: z.ZodOptional<z.ZodString>;
552
286
  logger: z.ZodOptional<z.ZodAny>;
553
287
  debug: z.ZodOptional<z.ZodBoolean>;
554
- onClose: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodVoid>>;
555
- onRun: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodVoid>>;
556
- onTestResult: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodVoid>>;
557
- onCodeChange: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodString], z.ZodUnknown>, z.ZodVoid>>;
558
- plugins: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
559
- extensions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
288
+ onClose: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [], null>, z.ZodVoid>>;
289
+ onRun: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodAny], null>, z.ZodVoid>>;
290
+ onTestResult: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodAny], null>, z.ZodVoid>>;
291
+ onCodeChange: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodString, z.ZodString], null>, z.ZodVoid>>;
292
+ plugins: z.ZodOptional<z.ZodArray<z.ZodAny>>;
293
+ extensions: z.ZodOptional<z.ZodArray<z.ZodAny>>;
560
294
  steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
561
295
  id: z.ZodString;
562
296
  title: z.ZodString;
@@ -564,30 +298,10 @@ export declare const WorkbenchOptionsSchema: z.ZodObject<{
564
298
  targetFile: z.ZodOptional<z.ZodString>;
565
299
  targetSymbol: z.ZodOptional<z.ZodString>;
566
300
  symbol: z.ZodOptional<z.ZodString>;
567
- instructions: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
301
+ instructions: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
568
302
  hint: z.ZodOptional<z.ZodString>;
569
- testNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
570
- }, "strip", z.ZodTypeAny, {
571
- symbol?: string;
572
- hint?: string;
573
- id?: string;
574
- title?: string;
575
- concept?: string;
576
- targetFile?: string;
577
- targetSymbol?: string;
578
- instructions?: string | string[];
579
- testNames?: string[];
580
- }, {
581
- symbol?: string;
582
- hint?: string;
583
- id?: string;
584
- title?: string;
585
- concept?: string;
586
- targetFile?: string;
587
- targetSymbol?: string;
588
- instructions?: string | string[];
589
- testNames?: string[];
590
- }>, "many">>;
303
+ testNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
304
+ }, z.core.$strip>>>;
591
305
  starterFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
592
306
  solutionFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
593
307
  tsFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -605,134 +319,27 @@ export declare const WorkbenchOptionsSchema: z.ZodObject<{
605
319
  showWebPreview: z.ZodOptional<z.ZodBoolean>;
606
320
  stdin: z.ZodOptional<z.ZodString>;
607
321
  guided: z.ZodOptional<z.ZodAny>;
608
- mode: z.ZodOptional<z.ZodEnum<["guided", "sandbox"]>>;
609
- language: z.ZodOptional<z.ZodEnum<["js", "ts", "cpp", "py"]>>;
610
- lang: z.ZodOptional<z.ZodEnum<["js", "ts", "cpp", "py"]>>;
322
+ mode: z.ZodOptional<z.ZodEnum<{
323
+ guided: "guided";
324
+ sandbox: "sandbox";
325
+ }>>;
326
+ language: z.ZodOptional<z.ZodEnum<{
327
+ js: "js";
328
+ ts: "ts";
329
+ cpp: "cpp";
330
+ py: "py";
331
+ }>>;
332
+ lang: z.ZodOptional<z.ZodEnum<{
333
+ js: "js";
334
+ ts: "ts";
335
+ cpp: "cpp";
336
+ py: "py";
337
+ }>>;
611
338
  stepIndex: z.ZodOptional<z.ZodNumber>;
612
- onStepComplete: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny, z.ZodNumber], z.ZodUnknown>, z.ZodVoid>>;
613
- onLabComplete: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodVoid>>;
614
- }, "strip", z.ZodTypeAny, {
615
- mode?: "guided" | "sandbox";
616
- id?: string;
617
- title?: string;
618
- language?: "js" | "ts" | "cpp" | "py";
619
- files?: Record<string, string>;
620
- starterFiles?: Record<string, string>;
621
- solutionFiles?: Record<string, string>;
622
- entry?: string;
623
- testEntry?: string;
624
- steps?: {
625
- symbol?: string;
626
- hint?: string;
627
- id?: string;
628
- title?: string;
629
- concept?: string;
630
- targetFile?: string;
631
- targetSymbol?: string;
632
- instructions?: string | string[];
633
- testNames?: string[];
634
- }[];
635
- stepIndex?: number;
636
- guided?: any;
637
- lang?: "js" | "ts" | "cpp" | "py";
638
- tsStarterFiles?: Record<string, string>;
639
- tsSolutionFiles?: Record<string, string>;
640
- tsFiles?: Record<string, string>;
641
- cppStarterFiles?: Record<string, string>;
642
- cppSolutionFiles?: Record<string, string>;
643
- cppFiles?: Record<string, string>;
644
- pyStarterFiles?: Record<string, string>;
645
- pySolutionFiles?: Record<string, string>;
646
- pyFiles?: Record<string, string>;
647
- pyEntry?: string;
648
- pyTestEntry?: string;
649
- pyTestCode?: string;
650
- summary?: string;
651
- onStepComplete?: (args_0: any, args_1: number, ...args: unknown[]) => void;
652
- onLabComplete?: (args_0: string, ...args: unknown[]) => void;
653
- branch?: string;
654
- onTestResult?: (args_0: any, ...args: unknown[]) => void;
655
- labId?: string;
656
- buildId?: string;
657
- theme?: "dark" | "light" | "auto";
658
- persistState?: boolean;
659
- repo?: string;
660
- githubRepo?: string;
661
- testFile?: string;
662
- backLabel?: string;
663
- monacoUrl?: string;
664
- previewOrigin?: string;
665
- logger?: any;
666
- debug?: boolean;
667
- onClose?: (...args: unknown[]) => void;
668
- onRun?: (args_0: any, ...args: unknown[]) => void;
669
- onCodeChange?: (args_0: string, args_1: string, ...args: unknown[]) => void;
670
- plugins?: any[];
671
- extensions?: any[];
672
- showWebPreview?: boolean;
673
- stdin?: string;
674
- }, {
675
- mode?: "guided" | "sandbox";
676
- id?: string;
677
- title?: string;
678
- language?: "js" | "ts" | "cpp" | "py";
679
- files?: Record<string, string>;
680
- starterFiles?: Record<string, string>;
681
- solutionFiles?: Record<string, string>;
682
- entry?: string;
683
- testEntry?: string;
684
- steps?: {
685
- symbol?: string;
686
- hint?: string;
687
- id?: string;
688
- title?: string;
689
- concept?: string;
690
- targetFile?: string;
691
- targetSymbol?: string;
692
- instructions?: string | string[];
693
- testNames?: string[];
694
- }[];
695
- stepIndex?: number;
696
- guided?: any;
697
- lang?: "js" | "ts" | "cpp" | "py";
698
- tsStarterFiles?: Record<string, string>;
699
- tsSolutionFiles?: Record<string, string>;
700
- tsFiles?: Record<string, string>;
701
- cppStarterFiles?: Record<string, string>;
702
- cppSolutionFiles?: Record<string, string>;
703
- cppFiles?: Record<string, string>;
704
- pyStarterFiles?: Record<string, string>;
705
- pySolutionFiles?: Record<string, string>;
706
- pyFiles?: Record<string, string>;
707
- pyEntry?: string;
708
- pyTestEntry?: string;
709
- pyTestCode?: string;
710
- summary?: string;
711
- onStepComplete?: (args_0: any, args_1: number, ...args: unknown[]) => void;
712
- onLabComplete?: (args_0: string, ...args: unknown[]) => void;
713
- branch?: string;
714
- onTestResult?: (args_0: any, ...args: unknown[]) => void;
715
- labId?: string;
716
- buildId?: string;
717
- theme?: "dark" | "light" | "auto";
718
- persistState?: boolean;
719
- repo?: string;
720
- githubRepo?: string;
721
- testFile?: string;
722
- backLabel?: string;
723
- monacoUrl?: string;
724
- previewOrigin?: string;
725
- logger?: any;
726
- debug?: boolean;
727
- onClose?: (...args: unknown[]) => void;
728
- onRun?: (args_0: any, ...args: unknown[]) => void;
729
- onCodeChange?: (args_0: string, args_1: string, ...args: unknown[]) => void;
730
- plugins?: any[];
731
- extensions?: any[];
732
- showWebPreview?: boolean;
733
- stdin?: string;
734
- }>;
735
- export type WorkbenchOptions = z.infer<typeof WorkbenchOptionsSchema>;
339
+ onStepComplete: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodAny, z.ZodNumber], null>, z.ZodVoid>>;
340
+ onLabComplete: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodString], null>, z.ZodVoid>>;
341
+ }, z.core.$strip>;
342
+ export type WorkbenchOptions = z.input<typeof WorkbenchOptionsSchema>;
736
343
  export declare const SearchOptionsSchema: z.ZodObject<{
737
344
  query: z.ZodDefault<z.ZodString>;
738
345
  caseSensitive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -741,43 +348,20 @@ export declare const SearchOptionsSchema: z.ZodObject<{
741
348
  isRegex: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
742
349
  include: z.ZodOptional<z.ZodString>;
743
350
  includeGlob: z.ZodOptional<z.ZodString>;
744
- includePattern: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
351
+ includePattern: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
745
352
  exclude: z.ZodOptional<z.ZodString>;
746
353
  excludeGlob: z.ZodOptional<z.ZodString>;
747
- excludePattern: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
354
+ excludePattern: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
748
355
  maxMatches: z.ZodOptional<z.ZodNumber>;
749
356
  maxMatchesPerFile: z.ZodOptional<z.ZodNumber>;
750
- }, "strip", z.ZodTypeAny, {
751
- query?: string;
752
- caseSensitive?: boolean;
753
- wholeWord?: boolean;
754
- regex?: boolean;
755
- isRegex?: boolean;
756
- include?: string;
757
- includeGlob?: string;
758
- includePattern?: string | string[];
759
- exclude?: string;
760
- excludeGlob?: string;
761
- excludePattern?: string | string[];
762
- maxMatches?: number;
763
- maxMatchesPerFile?: number;
764
- }, {
765
- query?: string;
766
- caseSensitive?: boolean;
767
- wholeWord?: boolean;
768
- regex?: boolean;
769
- isRegex?: boolean;
770
- include?: string;
771
- includeGlob?: string;
772
- includePattern?: string | string[];
773
- exclude?: string;
774
- excludeGlob?: string;
775
- excludePattern?: string | string[];
776
- maxMatches?: number;
777
- maxMatchesPerFile?: number;
357
+ }, z.core.$strip>;
358
+ export type SearchOptions = z.input<typeof SearchOptionsSchema>;
359
+ export declare const DiagnosticSeveritySchema: z.ZodEnum<{
360
+ error: "error";
361
+ warning: "warning";
362
+ info: "info";
363
+ hint: "hint";
778
364
  }>;
779
- export type SearchOptions = z.infer<typeof SearchOptionsSchema>;
780
- export declare const DiagnosticSeveritySchema: z.ZodEnum<["error", "warning", "info", "hint"]>;
781
365
  export type DiagnosticSeverity = z.infer<typeof DiagnosticSeveritySchema>;
782
366
  export declare const DiagnosticItemSchema: z.ZodObject<{
783
367
  id: z.ZodString;
@@ -789,39 +373,16 @@ export declare const DiagnosticItemSchema: z.ZodObject<{
789
373
  endCol: z.ZodOptional<z.ZodNumber>;
790
374
  endColumn: z.ZodOptional<z.ZodNumber>;
791
375
  message: z.ZodString;
792
- severity: z.ZodEnum<["error", "warning", "info", "hint"]>;
376
+ severity: z.ZodEnum<{
377
+ error: "error";
378
+ warning: "warning";
379
+ info: "info";
380
+ hint: "hint";
381
+ }>;
793
382
  source: z.ZodOptional<z.ZodString>;
794
- code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
795
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
796
- }, "strip", z.ZodTypeAny, {
797
- id?: string;
798
- code?: string | number;
799
- message?: string;
800
- file?: string;
801
- line?: number;
802
- col?: number;
803
- column?: number;
804
- endLine?: number;
805
- endCol?: number;
806
- endColumn?: number;
807
- severity?: "error" | "warning" | "info" | "hint";
808
- source?: string;
809
- tags?: string[];
810
- }, {
811
- id?: string;
812
- code?: string | number;
813
- message?: string;
814
- file?: string;
815
- line?: number;
816
- col?: number;
817
- column?: number;
818
- endLine?: number;
819
- endCol?: number;
820
- endColumn?: number;
821
- severity?: "error" | "warning" | "info" | "hint";
822
- source?: string;
823
- tags?: string[];
824
- }>;
383
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
384
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
385
+ }, z.core.$strip>;
825
386
  export type DiagnosticItem = z.infer<typeof DiagnosticItemSchema>;
826
387
  export declare const StoredProjectSchema: z.ZodObject<{
827
388
  id: z.ZodString;
@@ -832,236 +393,95 @@ export declare const StoredProjectSchema: z.ZodObject<{
832
393
  entry: z.ZodOptional<z.ZodString>;
833
394
  testEntry: z.ZodOptional<z.ZodString>;
834
395
  version: z.ZodOptional<z.ZodNumber>;
835
- }, "strip", z.ZodTypeAny, {
836
- id?: string;
837
- files?: Record<string, string>;
838
- entry?: string;
839
- testEntry?: string;
840
- version?: number;
841
- name?: string;
842
- updatedAt?: number;
843
- createdAt?: number;
844
- }, {
845
- id?: string;
846
- files?: Record<string, string>;
847
- entry?: string;
848
- testEntry?: string;
849
- version?: number;
850
- name?: string;
851
- updatedAt?: number;
852
- createdAt?: number;
853
- }>;
396
+ }, z.core.$strip>;
854
397
  export type StoredProject = z.infer<typeof StoredProjectSchema>;
855
- export declare const GitFileChangeTypeSchema: z.ZodEnum<["modified", "added", "deleted", "untracked"]>;
398
+ export declare const GitFileChangeTypeSchema: z.ZodEnum<{
399
+ modified: "modified";
400
+ added: "added";
401
+ deleted: "deleted";
402
+ untracked: "untracked";
403
+ }>;
856
404
  export type GitFileChangeType = z.infer<typeof GitFileChangeTypeSchema>;
857
405
  export declare const GitFileStatusSchema: z.ZodObject<{
858
406
  path: z.ZodString;
859
- status: z.ZodEnum<["modified", "added", "deleted", "untracked"]>;
407
+ status: z.ZodEnum<{
408
+ modified: "modified";
409
+ added: "added";
410
+ deleted: "deleted";
411
+ untracked: "untracked";
412
+ }>;
860
413
  staged: z.ZodBoolean;
861
414
  oldContent: z.ZodOptional<z.ZodString>;
862
415
  newContent: z.ZodOptional<z.ZodString>;
863
- }, "strip", z.ZodTypeAny, {
864
- status?: "modified" | "added" | "deleted" | "untracked";
865
- path?: string;
866
- staged?: boolean;
867
- oldContent?: string;
868
- newContent?: string;
869
- }, {
870
- status?: "modified" | "added" | "deleted" | "untracked";
871
- path?: string;
872
- staged?: boolean;
873
- oldContent?: string;
874
- newContent?: string;
875
- }>;
416
+ }, z.core.$strip>;
876
417
  export type GitFileStatus = z.infer<typeof GitFileStatusSchema>;
877
418
  export declare const GitStateSummarySchema: z.ZodObject<{
878
419
  branch: z.ZodDefault<z.ZodString>;
879
420
  headCommit: z.ZodOptional<z.ZodString>;
880
- branches: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
421
+ branches: z.ZodDefault<z.ZodArray<z.ZodString>>;
881
422
  staged: z.ZodDefault<z.ZodArray<z.ZodObject<{
882
423
  path: z.ZodString;
883
- status: z.ZodEnum<["modified", "added", "deleted", "untracked"]>;
424
+ status: z.ZodEnum<{
425
+ modified: "modified";
426
+ added: "added";
427
+ deleted: "deleted";
428
+ untracked: "untracked";
429
+ }>;
884
430
  staged: z.ZodBoolean;
885
431
  oldContent: z.ZodOptional<z.ZodString>;
886
432
  newContent: z.ZodOptional<z.ZodString>;
887
- }, "strip", z.ZodTypeAny, {
888
- status?: "modified" | "added" | "deleted" | "untracked";
889
- path?: string;
890
- staged?: boolean;
891
- oldContent?: string;
892
- newContent?: string;
893
- }, {
894
- status?: "modified" | "added" | "deleted" | "untracked";
895
- path?: string;
896
- staged?: boolean;
897
- oldContent?: string;
898
- newContent?: string;
899
- }>, "many">>;
433
+ }, z.core.$strip>>>;
900
434
  unstaged: z.ZodDefault<z.ZodArray<z.ZodObject<{
901
435
  path: z.ZodString;
902
- status: z.ZodEnum<["modified", "added", "deleted", "untracked"]>;
436
+ status: z.ZodEnum<{
437
+ modified: "modified";
438
+ added: "added";
439
+ deleted: "deleted";
440
+ untracked: "untracked";
441
+ }>;
903
442
  staged: z.ZodBoolean;
904
443
  oldContent: z.ZodOptional<z.ZodString>;
905
444
  newContent: z.ZodOptional<z.ZodString>;
906
- }, "strip", z.ZodTypeAny, {
907
- status?: "modified" | "added" | "deleted" | "untracked";
908
- path?: string;
909
- staged?: boolean;
910
- oldContent?: string;
911
- newContent?: string;
912
- }, {
913
- status?: "modified" | "added" | "deleted" | "untracked";
914
- path?: string;
915
- staged?: boolean;
916
- oldContent?: string;
917
- newContent?: string;
918
- }>, "many">>;
445
+ }, z.core.$strip>>>;
919
446
  untracked: z.ZodDefault<z.ZodArray<z.ZodObject<{
920
447
  path: z.ZodString;
921
- status: z.ZodEnum<["modified", "added", "deleted", "untracked"]>;
448
+ status: z.ZodEnum<{
449
+ modified: "modified";
450
+ added: "added";
451
+ deleted: "deleted";
452
+ untracked: "untracked";
453
+ }>;
922
454
  staged: z.ZodBoolean;
923
455
  oldContent: z.ZodOptional<z.ZodString>;
924
456
  newContent: z.ZodOptional<z.ZodString>;
925
- }, "strip", z.ZodTypeAny, {
926
- status?: "modified" | "added" | "deleted" | "untracked";
927
- path?: string;
928
- staged?: boolean;
929
- oldContent?: string;
930
- newContent?: string;
931
- }, {
932
- status?: "modified" | "added" | "deleted" | "untracked";
933
- path?: string;
934
- staged?: boolean;
935
- oldContent?: string;
936
- newContent?: string;
937
- }>, "many">>;
457
+ }, z.core.$strip>>>;
938
458
  modified: z.ZodOptional<z.ZodArray<z.ZodObject<{
939
459
  path: z.ZodString;
940
- status: z.ZodEnum<["modified", "added", "deleted", "untracked"]>;
460
+ status: z.ZodEnum<{
461
+ modified: "modified";
462
+ added: "added";
463
+ deleted: "deleted";
464
+ untracked: "untracked";
465
+ }>;
941
466
  staged: z.ZodBoolean;
942
467
  oldContent: z.ZodOptional<z.ZodString>;
943
468
  newContent: z.ZodOptional<z.ZodString>;
944
- }, "strip", z.ZodTypeAny, {
945
- status?: "modified" | "added" | "deleted" | "untracked";
946
- path?: string;
947
- staged?: boolean;
948
- oldContent?: string;
949
- newContent?: string;
950
- }, {
951
- status?: "modified" | "added" | "deleted" | "untracked";
952
- path?: string;
953
- staged?: boolean;
954
- oldContent?: string;
955
- newContent?: string;
956
- }>, "many">>;
469
+ }, z.core.$strip>>>;
957
470
  deleted: z.ZodOptional<z.ZodArray<z.ZodObject<{
958
471
  path: z.ZodString;
959
- status: z.ZodEnum<["modified", "added", "deleted", "untracked"]>;
472
+ status: z.ZodEnum<{
473
+ modified: "modified";
474
+ added: "added";
475
+ deleted: "deleted";
476
+ untracked: "untracked";
477
+ }>;
960
478
  staged: z.ZodBoolean;
961
479
  oldContent: z.ZodOptional<z.ZodString>;
962
480
  newContent: z.ZodOptional<z.ZodString>;
963
- }, "strip", z.ZodTypeAny, {
964
- status?: "modified" | "added" | "deleted" | "untracked";
965
- path?: string;
966
- staged?: boolean;
967
- oldContent?: string;
968
- newContent?: string;
969
- }, {
970
- status?: "modified" | "added" | "deleted" | "untracked";
971
- path?: string;
972
- staged?: boolean;
973
- oldContent?: string;
974
- newContent?: string;
975
- }>, "many">>;
481
+ }, z.core.$strip>>>;
976
482
  hasChanges: z.ZodDefault<z.ZodBoolean>;
977
483
  isClean: z.ZodDefault<z.ZodBoolean>;
978
484
  ahead: z.ZodDefault<z.ZodNumber>;
979
485
  behind: z.ZodDefault<z.ZodNumber>;
980
- }, "strip", z.ZodTypeAny, {
981
- branch?: string;
982
- modified?: {
983
- status?: "modified" | "added" | "deleted" | "untracked";
984
- path?: string;
985
- staged?: boolean;
986
- oldContent?: string;
987
- newContent?: string;
988
- }[];
989
- deleted?: {
990
- status?: "modified" | "added" | "deleted" | "untracked";
991
- path?: string;
992
- staged?: boolean;
993
- oldContent?: string;
994
- newContent?: string;
995
- }[];
996
- untracked?: {
997
- status?: "modified" | "added" | "deleted" | "untracked";
998
- path?: string;
999
- staged?: boolean;
1000
- oldContent?: string;
1001
- newContent?: string;
1002
- }[];
1003
- staged?: {
1004
- status?: "modified" | "added" | "deleted" | "untracked";
1005
- path?: string;
1006
- staged?: boolean;
1007
- oldContent?: string;
1008
- newContent?: string;
1009
- }[];
1010
- headCommit?: string;
1011
- branches?: string[];
1012
- unstaged?: {
1013
- status?: "modified" | "added" | "deleted" | "untracked";
1014
- path?: string;
1015
- staged?: boolean;
1016
- oldContent?: string;
1017
- newContent?: string;
1018
- }[];
1019
- hasChanges?: boolean;
1020
- isClean?: boolean;
1021
- ahead?: number;
1022
- behind?: number;
1023
- }, {
1024
- branch?: string;
1025
- modified?: {
1026
- status?: "modified" | "added" | "deleted" | "untracked";
1027
- path?: string;
1028
- staged?: boolean;
1029
- oldContent?: string;
1030
- newContent?: string;
1031
- }[];
1032
- deleted?: {
1033
- status?: "modified" | "added" | "deleted" | "untracked";
1034
- path?: string;
1035
- staged?: boolean;
1036
- oldContent?: string;
1037
- newContent?: string;
1038
- }[];
1039
- untracked?: {
1040
- status?: "modified" | "added" | "deleted" | "untracked";
1041
- path?: string;
1042
- staged?: boolean;
1043
- oldContent?: string;
1044
- newContent?: string;
1045
- }[];
1046
- staged?: {
1047
- status?: "modified" | "added" | "deleted" | "untracked";
1048
- path?: string;
1049
- staged?: boolean;
1050
- oldContent?: string;
1051
- newContent?: string;
1052
- }[];
1053
- headCommit?: string;
1054
- branches?: string[];
1055
- unstaged?: {
1056
- status?: "modified" | "added" | "deleted" | "untracked";
1057
- path?: string;
1058
- staged?: boolean;
1059
- oldContent?: string;
1060
- newContent?: string;
1061
- }[];
1062
- hasChanges?: boolean;
1063
- isClean?: boolean;
1064
- ahead?: number;
1065
- behind?: number;
1066
- }>;
486
+ }, z.core.$strip>;
1067
487
  export type GitStateSummary = z.infer<typeof GitStateSummarySchema>;