@innovatorved/code-lab 0.3.2 → 0.5.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.
- package/ARCHITECTURE.md +5 -3
- package/CHANGELOG.md +41 -0
- package/README.md +53 -175
- package/dist/apps/web/src/index.d.ts +34 -0
- package/dist/code-lab-sql.css +482 -0
- package/dist/code-lab-sql.d.ts +179 -0
- package/dist/code-lab-sql.esm.js +542 -0
- package/dist/code-lab-sql.umd.js +531 -0
- package/dist/code-lab.css +1799 -98
- package/dist/code-lab.d.ts +110 -15
- package/dist/code-lab.esm.js +49678 -23253
- package/dist/code-lab.js +49648 -23251
- package/dist/code-lab.umd.js +75766 -0
- package/dist/diagnostics.d.ts +3 -0
- package/dist/extensions/cpp.esm.js +19504 -3788
- package/dist/extensions/cpp.js +19501 -3785
- package/dist/extensions/guided-lab.esm.js +19401 -3725
- package/dist/extensions/guided-lab.js +19400 -3724
- package/dist/extensions/python.d.ts +1 -0
- package/dist/extensions/python.esm.js +19597 -3788
- package/dist/extensions/python.js +19597 -3788
- package/dist/extensions/umbrella.d.ts +5 -0
- package/dist/index.d.ts +1 -1
- package/dist/modular-kernel.d.ts +11 -0
- package/dist/packages/commands/src/index.d.ts +96 -0
- package/dist/packages/core/src/di.d.ts +36 -0
- package/dist/packages/core/src/disposable.d.ts +27 -0
- package/dist/packages/core/src/errors.d.ts +69 -0
- package/dist/packages/core/src/events.d.ts +38 -0
- package/dist/packages/core/src/index.d.ts +6 -0
- package/dist/packages/core/src/path.d.ts +14 -0
- package/dist/packages/core/src/registry.d.ts +23 -0
- package/dist/packages/editor/src/index.d.ts +118 -0
- package/dist/packages/fs/src/backends.d.ts +37 -0
- package/dist/packages/fs/src/index.d.ts +3 -0
- package/dist/packages/fs/src/types.d.ts +40 -0
- package/dist/packages/fs/src/vfs-service.d.ts +33 -0
- package/dist/packages/preview/src/index.d.ts +34 -0
- package/dist/packages/runtime/src/index.d.ts +47 -0
- package/dist/packages/settings/src/builtin-schemas.d.ts +15 -0
- package/dist/packages/settings/src/configuration-service.d.ts +107 -0
- package/dist/packages/settings/src/index.d.ts +4 -0
- package/dist/packages/settings/src/jsonc.d.ts +20 -0
- package/dist/packages/settings/src/schema.d.ts +28 -0
- package/dist/packages/sql/src/completions.d.ts +8 -0
- package/dist/packages/sql/src/diagnostics.d.ts +2 -0
- package/dist/packages/sql/src/formatter.d.ts +2 -0
- package/dist/packages/sql/src/index.d.ts +7 -0
- package/dist/packages/sql/src/sql-editor.d.ts +2 -0
- package/dist/packages/sql/src/styles.d.ts +2 -0
- package/dist/packages/sql/src/tokenizer.d.ts +13 -0
- package/dist/packages/sql/src/types.d.ts +130 -0
- package/dist/packages/terminal/src/index.d.ts +54 -0
- package/dist/packages/ui/src/index.d.ts +4 -0
- package/dist/packages/ui/src/observability.d.ts +22 -0
- package/dist/packages/ui/src/plugin-registry.d.ts +90 -0
- package/dist/packages/ui/src/settings-dialog.d.ts +53 -0
- package/dist/packages/ui/src/themes.d.ts +40 -0
- package/dist/preview-sw.js +53 -12
- package/dist/runtime.d.ts +3 -3
- package/dist/runtime.esm.js +467 -44
- package/dist/runtime.js +465 -44
- package/dist/schemas.d.ts +234 -814
- package/dist/schemas.esm.js +19401 -3725
- package/dist/schemas.js +19404 -3728
- package/dist/scm.d.ts +92 -11
- package/dist/shell.d.ts +1 -1
- package/dist/shell.esm.js +1300 -151
- package/dist/shell.js +1300 -151
- package/dist/storage.d.ts +47 -0
- package/dist/terminal.esm.js +62 -3
- package/dist/terminal.js +62 -3
- package/dist/workbench/diff-editor.d.ts +1 -0
- package/dist/workbench/index.d.ts +1 -1
- package/dist/workbench/styles.d.ts +1 -1
- package/package.json +38 -9
- package/packages/commands/README.md +7 -0
- package/packages/commands/package.json +16 -0
- package/packages/commands/src/index.ts +467 -0
- package/packages/commands/tsconfig.json +22 -0
- package/packages/core/README.md +12 -0
- package/packages/core/package.json +13 -0
- package/packages/core/src/di.ts +147 -0
- package/packages/core/src/disposable.ts +112 -0
- package/packages/core/src/errors.ts +205 -0
- package/packages/core/src/events.ts +157 -0
- package/packages/core/src/index.ts +49 -0
- package/packages/core/src/path.ts +118 -0
- package/packages/core/src/registry.ts +61 -0
- package/packages/core/tsconfig.json +19 -0
- package/packages/editor/README.md +9 -0
- package/packages/editor/package.json +18 -0
- package/packages/editor/src/index.ts +344 -0
- package/packages/editor/tsconfig.json +24 -0
- package/packages/fs/README.md +7 -0
- package/packages/fs/package.json +16 -0
- package/packages/fs/src/backends.ts +301 -0
- package/packages/fs/src/index.ts +18 -0
- package/packages/fs/src/types.ts +44 -0
- package/packages/fs/src/vfs-service.ts +257 -0
- package/packages/fs/tsconfig.json +22 -0
- package/packages/preview/README.md +3 -0
- package/packages/preview/package.json +16 -0
- package/packages/preview/src/index.ts +125 -0
- package/packages/preview/tsconfig.json +22 -0
- package/packages/runtime/README.md +3 -0
- package/packages/runtime/package.json +17 -0
- package/packages/runtime/src/index.ts +134 -0
- package/packages/runtime/tsconfig.json +23 -0
- package/packages/settings/README.md +7 -0
- package/packages/settings/package.json +16 -0
- package/packages/settings/src/builtin-schemas.ts +246 -0
- package/packages/settings/src/configuration-service.ts +609 -0
- package/packages/settings/src/index.ts +38 -0
- package/packages/settings/src/jsonc.ts +189 -0
- package/packages/settings/src/schema.ts +164 -0
- package/packages/settings/tsconfig.json +22 -0
- package/packages/sql/README.md +12 -0
- package/packages/sql/package.json +13 -0
- package/packages/sql/src/completions.ts +359 -0
- package/packages/sql/src/diagnostics.ts +200 -0
- package/packages/sql/src/formatter.ts +271 -0
- package/packages/sql/src/index.ts +54 -0
- package/packages/sql/src/sql-editor.ts +802 -0
- package/packages/sql/src/styles.ts +501 -0
- package/packages/sql/src/tokenizer.ts +457 -0
- package/packages/sql/src/types.ts +148 -0
- package/packages/sql/tsconfig.json +19 -0
- package/packages/terminal/README.md +3 -0
- package/packages/terminal/package.json +16 -0
- package/packages/terminal/src/index.ts +183 -0
- package/packages/terminal/tsconfig.json +22 -0
- package/packages/ui/README.md +8 -0
- package/packages/ui/package.json +18 -0
- package/packages/ui/src/index.ts +40 -0
- package/packages/ui/src/observability.ts +175 -0
- package/packages/ui/src/plugin-registry.ts +289 -0
- package/packages/ui/src/settings-dialog.ts +575 -0
- package/packages/ui/src/themes.ts +267 -0
- package/packages/ui/tsconfig.json +24 -0
- package/src/code-lab.css +1799 -98
- package/src/diagnostics.ts +139 -7
- package/src/extensions/cpp.ts +88 -45
- package/src/extensions/python.ts +186 -53
- package/src/extensions/umbrella.ts +5 -0
- package/src/index.ts +1 -1
- package/src/modular-kernel.ts +11 -0
- package/src/preview-sw.js +52 -11
- package/src/runtime.ts +466 -46
- package/src/schemas.ts +62 -62
- package/src/scm.ts +781 -58
- package/src/shell.ts +1299 -151
- package/src/storage.ts +336 -3
- package/src/terminal.ts +60 -2
- package/src/workbench/diff-editor.ts +66 -6
- package/src/workbench/icons.ts +12 -2
- package/src/workbench/styles.ts +25 -19
- package/src/workbench.ts +17059 -6673
- package/dist/runtime/index.d.ts +0 -4
- package/dist/shell/coreutils/compilers-cli.d.ts +0 -24
- package/dist/shell/index.d.ts +0 -4
- package/src/runtime/index.ts +0 -5
- package/src/shell/coreutils/compilers-cli.ts +0 -103
- package/src/shell/index.ts +0 -5
package/src/schemas.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Zod Schemas and Inferred TypeScript Types for code-lab v0.
|
|
4
|
+
* Zod Schemas and Inferred TypeScript Types for code-lab v0.5.0
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
// ── 1. Guided Step ──────────────────────────────────────────────────────────
|
|
@@ -28,9 +28,9 @@ export const LanguageEnum = LanguageIdSchema;
|
|
|
28
28
|
|
|
29
29
|
export const LanguageBundleSchema = z.object({
|
|
30
30
|
language: LanguageIdSchema.default('js'),
|
|
31
|
-
files: z.record(z.string()).default({}),
|
|
32
|
-
starterFiles: z.record(z.string()).optional(),
|
|
33
|
-
solutionFiles: z.record(z.string()).optional(),
|
|
31
|
+
files: z.record(z.string(), z.string()).default({}),
|
|
32
|
+
starterFiles: z.record(z.string(), z.string()).optional(),
|
|
33
|
+
solutionFiles: z.record(z.string(), z.string()).optional(),
|
|
34
34
|
entry: z.string().optional(),
|
|
35
35
|
testEntry: z.string().optional()
|
|
36
36
|
});
|
|
@@ -45,26 +45,26 @@ export const GuidedLabExtensionOptionsSchema = z.object({
|
|
|
45
45
|
mode: z.enum(['guided', 'sandbox']).default('guided'),
|
|
46
46
|
language: LanguageIdSchema.optional(),
|
|
47
47
|
lang: LanguageIdSchema.optional(),
|
|
48
|
-
starterFiles: z.record(z.string()).optional(),
|
|
49
|
-
solutionFiles: z.record(z.string()).optional(),
|
|
50
|
-
tsStarterFiles: z.record(z.string()).optional(),
|
|
51
|
-
tsSolutionFiles: z.record(z.string()).optional(),
|
|
52
|
-
tsFiles: z.record(z.string()).optional(),
|
|
53
|
-
cppStarterFiles: z.record(z.string()).optional(),
|
|
54
|
-
cppSolutionFiles: z.record(z.string()).optional(),
|
|
55
|
-
cppFiles: z.record(z.string()).optional(),
|
|
56
|
-
pyStarterFiles: z.record(z.string()).optional(),
|
|
57
|
-
pySolutionFiles: z.record(z.string()).optional(),
|
|
58
|
-
pyFiles: z.record(z.string()).optional(),
|
|
48
|
+
starterFiles: z.record(z.string(), z.string()).optional(),
|
|
49
|
+
solutionFiles: z.record(z.string(), z.string()).optional(),
|
|
50
|
+
tsStarterFiles: z.record(z.string(), z.string()).optional(),
|
|
51
|
+
tsSolutionFiles: z.record(z.string(), z.string()).optional(),
|
|
52
|
+
tsFiles: z.record(z.string(), z.string()).optional(),
|
|
53
|
+
cppStarterFiles: z.record(z.string(), z.string()).optional(),
|
|
54
|
+
cppSolutionFiles: z.record(z.string(), z.string()).optional(),
|
|
55
|
+
cppFiles: z.record(z.string(), z.string()).optional(),
|
|
56
|
+
pyStarterFiles: z.record(z.string(), z.string()).optional(),
|
|
57
|
+
pySolutionFiles: z.record(z.string(), z.string()).optional(),
|
|
58
|
+
pyFiles: z.record(z.string(), z.string()).optional(),
|
|
59
59
|
pyEntry: z.string().optional(),
|
|
60
60
|
pyTestEntry: z.string().optional(),
|
|
61
61
|
pyTestCode: z.string().optional(),
|
|
62
62
|
summary: z.string().optional(),
|
|
63
|
-
onStepComplete: z.function(
|
|
64
|
-
onLabComplete: z.function(
|
|
63
|
+
onStepComplete: z.function({ input: [GuidedStepSchema, z.number()], output: z.void() }).optional(),
|
|
64
|
+
onLabComplete: z.function({ input: [z.string()], output: z.void() }).optional()
|
|
65
65
|
});
|
|
66
66
|
|
|
67
|
-
export type GuidedLabExtensionOptions = z.
|
|
67
|
+
export type GuidedLabExtensionOptions = z.input<typeof GuidedLabExtensionOptionsSchema>;
|
|
68
68
|
|
|
69
69
|
export const CppToolchainProgressSchema = z.object({
|
|
70
70
|
stage: z.enum(['downloading', 'caching', 'extracting', 'compiling', 'linking', 'ready', 'error']),
|
|
@@ -89,15 +89,15 @@ export const CppExtensionOptionsSchema = z.object({
|
|
|
89
89
|
std: z.enum(['c++17', 'c++20', 'c++23']).default('c++20'),
|
|
90
90
|
optLevel: z.enum(['-O0', '-O1', '-O2', '-O3']).default('-O2'),
|
|
91
91
|
flags: z.array(z.string()).default(['-O2', '-Wall', '-Wextra']),
|
|
92
|
-
headers: z.record(z.string()).optional(),
|
|
93
|
-
extraHeaders: z.record(z.string()).optional(),
|
|
94
|
-
files: z.record(z.string()).optional(),
|
|
95
|
-
starterFiles: z.record(z.string()).optional(),
|
|
96
|
-
solutionFiles: z.record(z.string()).optional(),
|
|
97
|
-
onProgress: z.function(
|
|
92
|
+
headers: z.record(z.string(), z.string()).optional(),
|
|
93
|
+
extraHeaders: z.record(z.string(), z.string()).optional(),
|
|
94
|
+
files: z.record(z.string(), z.string()).optional(),
|
|
95
|
+
starterFiles: z.record(z.string(), z.string()).optional(),
|
|
96
|
+
solutionFiles: z.record(z.string(), z.string()).optional(),
|
|
97
|
+
onProgress: z.function({ input: [z.any()], output: z.void() }).optional()
|
|
98
98
|
});
|
|
99
99
|
|
|
100
|
-
export type CppExtensionOptions = z.
|
|
100
|
+
export type CppExtensionOptions = z.input<typeof CppExtensionOptionsSchema>;
|
|
101
101
|
|
|
102
102
|
export const PythonToolchainProgressSchema = z.object({
|
|
103
103
|
stage: z.enum(['downloading', 'caching', 'extracting', 'initializing', 'ready']),
|
|
@@ -121,13 +121,13 @@ export const PythonExtensionOptionsSchema = z.object({
|
|
|
121
121
|
packages: z.array(z.string()).optional(),
|
|
122
122
|
preloadPackages: z.array(z.string()).optional(),
|
|
123
123
|
compilerMemoryLimitMb: z.number().optional(),
|
|
124
|
-
files: z.record(z.string()).optional(),
|
|
125
|
-
starterFiles: z.record(z.string()).optional(),
|
|
126
|
-
solutionFiles: z.record(z.string()).optional(),
|
|
127
|
-
onProgress: z.function(
|
|
124
|
+
files: z.record(z.string(), z.string()).optional(),
|
|
125
|
+
starterFiles: z.record(z.string(), z.string()).optional(),
|
|
126
|
+
solutionFiles: z.record(z.string(), z.string()).optional(),
|
|
127
|
+
onProgress: z.function({ input: [z.any()], output: z.void() }).optional()
|
|
128
128
|
});
|
|
129
129
|
|
|
130
|
-
export type PythonExtensionOptions = z.
|
|
130
|
+
export type PythonExtensionOptions = z.input<typeof PythonExtensionOptionsSchema>;
|
|
131
131
|
|
|
132
132
|
// ── 4. GitHub Clone Options & Progress ──────────────────────────────────────
|
|
133
133
|
|
|
@@ -160,16 +160,16 @@ export const GitHubCloneOptionsSchema = z.object({
|
|
|
160
160
|
maxFileSize: z.number().int().positive().default(5 * 1024 * 1024),
|
|
161
161
|
concurrency: z.number().int().positive().default(8),
|
|
162
162
|
clearExisting: z.boolean().default(false),
|
|
163
|
-
onProgress: z.function(
|
|
163
|
+
onProgress: z.function({ input: [z.any()], output: z.void() }).optional(),
|
|
164
164
|
fetchImpl: z.any().optional()
|
|
165
165
|
});
|
|
166
166
|
|
|
167
|
-
export type GitHubCloneOptions = z.
|
|
167
|
+
export type GitHubCloneOptions = z.input<typeof GitHubCloneOptionsSchema>;
|
|
168
168
|
|
|
169
169
|
// ── 5. Runtime Execution Options ────────────────────────────────────────────
|
|
170
170
|
|
|
171
171
|
export const RuntimeExecuteOptionsSchema = z.object({
|
|
172
|
-
files: z.record(z.string()).optional(),
|
|
172
|
+
files: z.record(z.string(), z.string()).optional(),
|
|
173
173
|
entry: z.string().optional(),
|
|
174
174
|
mode: z.enum(['run', 'test', 'repl']).default('run'),
|
|
175
175
|
replCode: z.string().optional(),
|
|
@@ -185,21 +185,21 @@ export const RuntimeExecuteOptionsSchema = z.object({
|
|
|
185
185
|
isBackground: z.boolean().optional(),
|
|
186
186
|
vfs: z.any().optional(),
|
|
187
187
|
activePortTable: z.any().optional(),
|
|
188
|
-
packages: z.record(z.any()).optional(),
|
|
189
|
-
npmModules: z.record(z.any()).optional(),
|
|
190
|
-
onStdout: z.function(
|
|
191
|
-
onStderr: z.function(
|
|
192
|
-
onTestResult: z.function(
|
|
188
|
+
packages: z.record(z.string(), z.any()).optional(),
|
|
189
|
+
npmModules: z.record(z.string(), z.any()).optional(),
|
|
190
|
+
onStdout: z.function({ input: [z.string()], output: z.void() }).optional(),
|
|
191
|
+
onStderr: z.function({ input: [z.string()], output: z.void() }).optional(),
|
|
192
|
+
onTestResult: z.function({ input: [z.any()], output: z.void() }).optional()
|
|
193
193
|
});
|
|
194
194
|
|
|
195
|
-
export type RuntimeExecuteOptions = z.
|
|
195
|
+
export type RuntimeExecuteOptions = z.input<typeof RuntimeExecuteOptionsSchema>;
|
|
196
196
|
|
|
197
197
|
// ── 6. Workspace Snapshot ───────────────────────────────────────────────────
|
|
198
198
|
|
|
199
199
|
export const WorkspaceSnapshotSchema = z.object({
|
|
200
200
|
version: z.number().default(1),
|
|
201
201
|
timestamp: z.number().optional(),
|
|
202
|
-
files: z.record(z.string()),
|
|
202
|
+
files: z.record(z.string(), z.string()),
|
|
203
203
|
openTabs: z.array(z.string()).default([]),
|
|
204
204
|
activeFile: z.string().nullable().optional(),
|
|
205
205
|
mode: z.enum(['guided', 'sandbox']).optional(),
|
|
@@ -217,12 +217,12 @@ export const WorkbenchOptionsSchema = z.object({
|
|
|
217
217
|
buildId: z.string().optional(),
|
|
218
218
|
title: z.string().default('code-lab'),
|
|
219
219
|
summary: z.string().optional(),
|
|
220
|
-
theme: z.enum(['dark', 'light', 'auto']).default('auto'),
|
|
220
|
+
theme: z.enum(['dark', 'light', 'high-contrast', 'auto']).default('auto'),
|
|
221
221
|
persistState: z.boolean().default(true),
|
|
222
222
|
repo: z.string().optional(),
|
|
223
223
|
githubRepo: z.string().optional(),
|
|
224
224
|
branch: z.string().optional(),
|
|
225
|
-
files: z.record(z.string()).default({}),
|
|
225
|
+
files: z.record(z.string(), z.string()).default({}),
|
|
226
226
|
entry: z.string().default('demo.js'),
|
|
227
227
|
testEntry: z.string().default('test.js'),
|
|
228
228
|
testFile: z.string().optional(),
|
|
@@ -231,25 +231,25 @@ export const WorkbenchOptionsSchema = z.object({
|
|
|
231
231
|
previewOrigin: z.string().optional(),
|
|
232
232
|
logger: z.any().optional(),
|
|
233
233
|
debug: z.boolean().optional(),
|
|
234
|
-
onClose: z.function(
|
|
235
|
-
onRun: z.function(
|
|
236
|
-
onTestResult: z.function(
|
|
237
|
-
onCodeChange: z.function(
|
|
234
|
+
onClose: z.function({ input: [], output: z.void() }).optional(),
|
|
235
|
+
onRun: z.function({ input: [z.any()], output: z.void() }).optional(),
|
|
236
|
+
onTestResult: z.function({ input: [z.any()], output: z.void() }).optional(),
|
|
237
|
+
onCodeChange: z.function({ input: [z.string(), z.string()], output: z.void() }).optional(),
|
|
238
238
|
plugins: z.array(z.any()).optional(),
|
|
239
239
|
extensions: z.array(z.any()).optional(),
|
|
240
240
|
// Backward-compatible guided lab properties:
|
|
241
241
|
steps: z.array(GuidedStepSchema).optional(),
|
|
242
|
-
starterFiles: z.record(z.string()).optional(),
|
|
243
|
-
solutionFiles: z.record(z.string()).optional(),
|
|
244
|
-
tsFiles: z.record(z.string()).optional(),
|
|
245
|
-
tsStarterFiles: z.record(z.string()).optional(),
|
|
246
|
-
tsSolutionFiles: z.record(z.string()).optional(),
|
|
247
|
-
cppFiles: z.record(z.string()).optional(),
|
|
248
|
-
cppStarterFiles: z.record(z.string()).optional(),
|
|
249
|
-
cppSolutionFiles: z.record(z.string()).optional(),
|
|
250
|
-
pyFiles: z.record(z.string()).optional(),
|
|
251
|
-
pyStarterFiles: z.record(z.string()).optional(),
|
|
252
|
-
pySolutionFiles: z.record(z.string()).optional(),
|
|
242
|
+
starterFiles: z.record(z.string(), z.string()).optional(),
|
|
243
|
+
solutionFiles: z.record(z.string(), z.string()).optional(),
|
|
244
|
+
tsFiles: z.record(z.string(), z.string()).optional(),
|
|
245
|
+
tsStarterFiles: z.record(z.string(), z.string()).optional(),
|
|
246
|
+
tsSolutionFiles: z.record(z.string(), z.string()).optional(),
|
|
247
|
+
cppFiles: z.record(z.string(), z.string()).optional(),
|
|
248
|
+
cppStarterFiles: z.record(z.string(), z.string()).optional(),
|
|
249
|
+
cppSolutionFiles: z.record(z.string(), z.string()).optional(),
|
|
250
|
+
pyFiles: z.record(z.string(), z.string()).optional(),
|
|
251
|
+
pyStarterFiles: z.record(z.string(), z.string()).optional(),
|
|
252
|
+
pySolutionFiles: z.record(z.string(), z.string()).optional(),
|
|
253
253
|
pyEntry: z.string().optional().default('main.py'),
|
|
254
254
|
pyTestEntry: z.string().optional().default('test.py'),
|
|
255
255
|
pyTestCode: z.string().optional(),
|
|
@@ -260,11 +260,11 @@ export const WorkbenchOptionsSchema = z.object({
|
|
|
260
260
|
language: LanguageIdSchema.optional(),
|
|
261
261
|
lang: LanguageIdSchema.optional(),
|
|
262
262
|
stepIndex: z.number().int().optional(),
|
|
263
|
-
onStepComplete: z.function(
|
|
264
|
-
onLabComplete: z.function(
|
|
263
|
+
onStepComplete: z.function({ input: [z.any(), z.number()], output: z.void() }).optional(),
|
|
264
|
+
onLabComplete: z.function({ input: [z.string()], output: z.void() }).optional()
|
|
265
265
|
});
|
|
266
266
|
|
|
267
|
-
export type WorkbenchOptions = z.
|
|
267
|
+
export type WorkbenchOptions = z.input<typeof WorkbenchOptionsSchema>;
|
|
268
268
|
|
|
269
269
|
// ── 8. Search Options & Match Results ────────────────────────────────────────
|
|
270
270
|
|
|
@@ -284,7 +284,7 @@ export const SearchOptionsSchema = z.object({
|
|
|
284
284
|
maxMatchesPerFile: z.number().int().positive().optional()
|
|
285
285
|
});
|
|
286
286
|
|
|
287
|
-
export type SearchOptions = z.
|
|
287
|
+
export type SearchOptions = z.input<typeof SearchOptionsSchema>;
|
|
288
288
|
|
|
289
289
|
// ── 9. Diagnostic Item & Problems ───────────────────────────────────────────
|
|
290
290
|
|
|
@@ -314,7 +314,7 @@ export type DiagnosticItem = z.infer<typeof DiagnosticItemSchema>;
|
|
|
314
314
|
export const StoredProjectSchema = z.object({
|
|
315
315
|
id: z.string(),
|
|
316
316
|
name: z.string(),
|
|
317
|
-
files: z.record(z.string()),
|
|
317
|
+
files: z.record(z.string(), z.string()),
|
|
318
318
|
updatedAt: z.number(),
|
|
319
319
|
createdAt: z.number().optional(),
|
|
320
320
|
entry: z.string().optional(),
|