@innovatorved/code-lab 0.3.1 → 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.
- package/ARCHITECTURE.md +8 -4
- package/CHANGELOG.md +45 -0
- package/README.md +70 -158
- 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 +298 -2
- package/dist/code-lab.d.ts +110 -15
- package/dist/code-lab.esm.js +35284 -18253
- package/dist/code-lab.js +40434 -23431
- package/dist/code-lab.umd.js +65502 -0
- package/dist/diagnostics.d.ts +5 -0
- package/dist/extensions/cpp.esm.js +19532 -3772
- package/dist/extensions/cpp.js +19529 -3769
- 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 +19666 -3843
- package/dist/extensions/python.js +19668 -3845
- 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 +100 -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 +89 -0
- package/dist/packages/ui/src/settings-dialog.d.ts +25 -0
- package/dist/packages/ui/src/themes.d.ts +35 -0
- package/dist/preview-sw.js +82 -24
- package/dist/runtime.d.ts +3 -3
- package/dist/runtime.esm.js +503 -73
- package/dist/runtime.js +501 -73
- 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 +13 -2
- package/dist/search.d.ts +5 -1
- package/dist/shell.d.ts +1 -1
- package/dist/shell.esm.js +435 -54
- package/dist/shell.js +435 -54
- package/dist/terminal.esm.js +242 -54
- package/dist/terminal.js +242 -54
- 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/dist/zip.d.ts +4 -3
- package/package.json +37 -8
- 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 +235 -0
- package/packages/settings/src/configuration-service.ts +543 -0
- package/packages/settings/src/index.ts +37 -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 +36 -0
- package/packages/ui/src/observability.ts +175 -0
- package/packages/ui/src/plugin-registry.ts +274 -0
- package/packages/ui/src/settings-dialog.ts +293 -0
- package/packages/ui/src/themes.ts +174 -0
- package/packages/ui/tsconfig.json +24 -0
- package/src/code-lab.css +298 -2
- package/src/csp.ts +7 -10
- package/src/diagnostics.ts +42 -3
- package/src/extensions/cpp.ts +105 -24
- package/src/extensions/python.ts +260 -116
- 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 +73 -12
- package/src/runtime.ts +501 -74
- package/src/schemas.ts +62 -62
- package/src/scm.ts +106 -19
- package/src/search.ts +71 -27
- package/src/shell.ts +433 -53
- package/src/terminal.ts +239 -52
- package/src/workbench/diff-editor.ts +106 -18
- package/src/workbench/drawer.ts +17 -4
- package/src/workbench/guided-pane.ts +12 -2
- package/src/workbench/icons.ts +5 -2
- package/src/workbench/share.ts +37 -8
- package/src/workbench/styles.ts +2 -1
- package/src/workbench/toolbar.ts +15 -4
- package/src/workbench.ts +2877 -284
- package/src/zip.ts +29 -7
- 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/dist/scm.d.ts
CHANGED
|
@@ -27,9 +27,17 @@ export interface GitState {
|
|
|
27
27
|
branches?: string[];
|
|
28
28
|
headCommit: string;
|
|
29
29
|
headFiles: Record<string, string>;
|
|
30
|
-
|
|
30
|
+
headSnapshot?: Record<string, string>;
|
|
31
|
+
staged: Map<string, string | null> | Set<string>;
|
|
31
32
|
commits: GitCommitRecord[];
|
|
32
33
|
}
|
|
34
|
+
export interface GitStatusEntry {
|
|
35
|
+
path: string;
|
|
36
|
+
status: GitFileChangeType;
|
|
37
|
+
staged: boolean;
|
|
38
|
+
index: string;
|
|
39
|
+
worktree: string;
|
|
40
|
+
}
|
|
33
41
|
export interface GitStatusResult {
|
|
34
42
|
branch: string;
|
|
35
43
|
headCommit: string;
|
|
@@ -38,6 +46,7 @@ export interface GitStatusResult {
|
|
|
38
46
|
deleted: GitFileStatus[];
|
|
39
47
|
staged: GitFileStatus[];
|
|
40
48
|
unstaged: GitFileStatus[];
|
|
49
|
+
entries: GitStatusEntry[];
|
|
41
50
|
hasChanges: boolean;
|
|
42
51
|
isClean: boolean;
|
|
43
52
|
}
|
|
@@ -51,8 +60,10 @@ export declare function computeShortCommitHash(input: string): string;
|
|
|
51
60
|
export declare function createGitState(initialFiles?: Record<string, string>, branch?: string): GitState;
|
|
52
61
|
/**
|
|
53
62
|
* Computes working-tree and staging-area Git status against `gitState`.
|
|
63
|
+
* Supports both `computeGitStatus(vfsFiles, repoRoot, gitState)` and
|
|
64
|
+
* `computeGitStatus(gitState, vfsFiles)` calling conventions.
|
|
54
65
|
*/
|
|
55
|
-
export declare function computeGitStatus(
|
|
66
|
+
export declare function computeGitStatus(arg1: Record<string, string> | GitState, arg2?: string | Record<string, string>, gitState?: GitState): GitStatusResult;
|
|
56
67
|
/**
|
|
57
68
|
* Stages a file addition, modification, or deletion (`currentContent === null`).
|
|
58
69
|
*/
|
package/dist/search.d.ts
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
export interface SearchOptions {
|
|
11
11
|
query?: string;
|
|
12
|
+
replacement?: string;
|
|
12
13
|
caseSensitive?: boolean;
|
|
13
14
|
wholeWord?: boolean;
|
|
14
15
|
regex?: boolean;
|
|
@@ -50,8 +51,10 @@ export interface SearchResult extends Array<SearchMatchGroup> {
|
|
|
50
51
|
}
|
|
51
52
|
export interface ReplaceResult {
|
|
52
53
|
updatedFiles: Record<string, string>;
|
|
54
|
+
files: Record<string, string>;
|
|
53
55
|
replacedCount: number;
|
|
54
56
|
filesAffected: string[];
|
|
57
|
+
filesModified: number;
|
|
55
58
|
}
|
|
56
59
|
/**
|
|
57
60
|
* Escapes regex special characters in a literal string.
|
|
@@ -63,6 +66,7 @@ export declare function escapeRegex(text: string): string;
|
|
|
63
66
|
export declare function normalizeSearchPath(filePath: string): string;
|
|
64
67
|
/**
|
|
65
68
|
* Matches a file path against a glob or literal substring filter.
|
|
69
|
+
* Supports comma-separated patterns (e.g. `*.ts, *.js`).
|
|
66
70
|
*/
|
|
67
71
|
export declare function matchesGlob(filePath: string, pattern: string): boolean;
|
|
68
72
|
/**
|
|
@@ -72,4 +76,4 @@ export declare function searchInFiles(files: Record<string, string>, queryOrOpti
|
|
|
72
76
|
/**
|
|
73
77
|
* Replaces occurrences of a query pattern across virtual workspace files.
|
|
74
78
|
*/
|
|
75
|
-
export declare function replaceInFiles(files: Record<string, string>, arg2: string | SearchOptions, arg3
|
|
79
|
+
export declare function replaceInFiles(files: Record<string, string>, arg2: string | SearchOptions, arg3?: string, arg4?: SearchOptions | string[]): ReplaceResult;
|
package/dist/shell.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export declare const tokenizeShell: (input: string) => any[];
|
|
|
29
29
|
export declare const PosixShell: any;
|
|
30
30
|
export declare const COREUTILS: Record<string, any>;
|
|
31
31
|
export declare const PosixPath: any;
|
|
32
|
-
export declare const expandGlob: (pattern: string,
|
|
32
|
+
export declare const expandGlob: (pattern: string, cwd: string, vfs: any) => string[];
|
|
33
33
|
export declare const createVirtualPortTable: () => any;
|
|
34
34
|
export declare const parseGitHubRepoUrl: (input: string) => any;
|
|
35
35
|
export declare const cloneGitHubRepository: (repoInput: string, vfs: any, options?: any) => Promise<any>;
|