@innovatorved/code-lab 0.1.6 → 0.1.8

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 (51) hide show
  1. package/ARCHITECTURE.md +34 -16
  2. package/README.md +17 -7
  3. package/dist/code-lab.css +26 -0
  4. package/dist/code-lab.d.ts +271 -1
  5. package/dist/code-lab.esm.js +2909 -166
  6. package/dist/code-lab.js +2869 -164
  7. package/dist/csp.d.ts +86 -0
  8. package/dist/diagnostics.d.ts +43 -0
  9. package/dist/extensions/guided-lab.esm.js +66 -0
  10. package/dist/extensions/guided-lab.js +66 -0
  11. package/dist/html.d.ts +24 -0
  12. package/dist/index.d.ts +9 -1
  13. package/dist/logger.d.ts +60 -0
  14. package/dist/preview-sw.js +425 -11
  15. package/dist/runtime.d.ts +6 -27
  16. package/dist/runtime.esm.js +171 -31
  17. package/dist/runtime.js +171 -31
  18. package/dist/schemas.d.ts +366 -25
  19. package/dist/schemas.esm.js +73 -0
  20. package/dist/schemas.js +73 -0
  21. package/dist/scm.d.ts +77 -0
  22. package/dist/search.d.ts +75 -0
  23. package/dist/shell.d.ts +18 -47
  24. package/dist/shell.esm.js +236 -37
  25. package/dist/shell.js +236 -37
  26. package/dist/storage.d.ts +57 -0
  27. package/dist/terminal.d.ts +11 -87
  28. package/dist/terminal.esm.js +124 -7
  29. package/dist/terminal.js +124 -7
  30. package/dist/zip.d.ts +42 -0
  31. package/package.json +11 -3
  32. package/src/code-lab.css +26 -0
  33. package/src/csp.ts +396 -0
  34. package/src/diagnostics.ts +116 -0
  35. package/src/html.ts +88 -0
  36. package/src/index.ts +39 -1
  37. package/src/logger.ts +139 -0
  38. package/src/preview-sw.js +97 -11
  39. package/src/runtime.ts +132 -105
  40. package/src/schemas.ts +94 -1
  41. package/src/scm.ts +268 -0
  42. package/src/search.ts +389 -0
  43. package/src/shell.ts +410 -369
  44. package/src/storage.ts +377 -0
  45. package/src/terminal.ts +898 -918
  46. package/src/workbench.ts +926 -89
  47. package/src/zip.ts +326 -0
  48. package/src/runtime.js +0 -8229
  49. package/src/shell.js +0 -7257
  50. package/src/terminal.js +0 -1046
  51. package/src/workbench.js +0 -7353
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 v2.0.0
3
+ * Zod Schemas and Inferred TypeScript Types for code-lab v0.1.8
4
4
  */
5
5
  export declare const GuidedStepSchema: z.ZodObject<{
6
6
  id: z.ZodString;
@@ -14,23 +14,23 @@ export declare const GuidedStepSchema: z.ZodObject<{
14
14
  testNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
15
15
  }, "strip", z.ZodTypeAny, {
16
16
  symbol?: string;
17
+ hint?: string;
17
18
  id?: string;
18
19
  title?: string;
19
20
  concept?: string;
20
21
  targetFile?: string;
21
22
  targetSymbol?: string;
22
23
  instructions?: string | string[];
23
- hint?: string;
24
24
  testNames?: string[];
25
25
  }, {
26
26
  symbol?: string;
27
+ hint?: string;
27
28
  id?: string;
28
29
  title?: string;
29
30
  concept?: string;
30
31
  targetFile?: string;
31
32
  targetSymbol?: string;
32
33
  instructions?: string | string[];
33
- hint?: string;
34
34
  testNames?: string[];
35
35
  }>;
36
36
  export type GuidedStep = z.infer<typeof GuidedStepSchema>;
@@ -70,23 +70,23 @@ export declare const GuidedLabExtensionOptionsSchema: z.ZodObject<{
70
70
  testNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
71
71
  }, "strip", z.ZodTypeAny, {
72
72
  symbol?: string;
73
+ hint?: string;
73
74
  id?: string;
74
75
  title?: string;
75
76
  concept?: string;
76
77
  targetFile?: string;
77
78
  targetSymbol?: string;
78
79
  instructions?: string | string[];
79
- hint?: string;
80
80
  testNames?: string[];
81
81
  }, {
82
82
  symbol?: string;
83
+ hint?: string;
83
84
  id?: string;
84
85
  title?: string;
85
86
  concept?: string;
86
87
  targetFile?: string;
87
88
  targetSymbol?: string;
88
89
  instructions?: string | string[];
89
- hint?: string;
90
90
  testNames?: string[];
91
91
  }>, "many">>;
92
92
  stepIndex: z.ZodDefault<z.ZodNumber>;
@@ -111,43 +111,43 @@ export declare const GuidedLabExtensionOptionsSchema: z.ZodObject<{
111
111
  testNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
112
112
  }, "strip", z.ZodTypeAny, {
113
113
  symbol?: string;
114
+ hint?: string;
114
115
  id?: string;
115
116
  title?: string;
116
117
  concept?: string;
117
118
  targetFile?: string;
118
119
  targetSymbol?: string;
119
120
  instructions?: string | string[];
120
- hint?: string;
121
121
  testNames?: string[];
122
122
  }, {
123
123
  symbol?: string;
124
+ hint?: string;
124
125
  id?: string;
125
126
  title?: string;
126
127
  concept?: string;
127
128
  targetFile?: string;
128
129
  targetSymbol?: string;
129
130
  instructions?: string | string[];
130
- hint?: string;
131
131
  testNames?: string[];
132
132
  }>, z.ZodNumber], z.ZodUnknown>, z.ZodVoid>>;
133
133
  onLabComplete: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodVoid>>;
134
134
  }, "strip", z.ZodTypeAny, {
135
+ mode?: "guided" | "sandbox";
135
136
  language?: "js" | "ts";
136
137
  starterFiles?: Record<string, string>;
137
138
  solutionFiles?: Record<string, string>;
138
139
  steps?: {
139
140
  symbol?: string;
141
+ hint?: string;
140
142
  id?: string;
141
143
  title?: string;
142
144
  concept?: string;
143
145
  targetFile?: string;
144
146
  targetSymbol?: string;
145
147
  instructions?: string | string[];
146
- hint?: string;
147
148
  testNames?: string[];
148
149
  }[];
149
150
  stepIndex?: number;
150
- mode?: "guided" | "sandbox";
151
151
  lang?: "js" | "ts";
152
152
  tsStarterFiles?: Record<string, string>;
153
153
  tsSolutionFiles?: Record<string, string>;
@@ -155,33 +155,33 @@ export declare const GuidedLabExtensionOptionsSchema: z.ZodObject<{
155
155
  summary?: string;
156
156
  onStepComplete?: (args_0: {
157
157
  symbol?: string;
158
+ hint?: string;
158
159
  id?: string;
159
160
  title?: string;
160
161
  concept?: string;
161
162
  targetFile?: string;
162
163
  targetSymbol?: string;
163
164
  instructions?: string | string[];
164
- hint?: string;
165
165
  testNames?: string[];
166
166
  }, args_1: number, ...args: unknown[]) => void;
167
167
  onLabComplete?: (args_0: string, ...args: unknown[]) => void;
168
168
  }, {
169
+ mode?: "guided" | "sandbox";
169
170
  language?: "js" | "ts";
170
171
  starterFiles?: Record<string, string>;
171
172
  solutionFiles?: Record<string, string>;
172
173
  steps?: {
173
174
  symbol?: string;
175
+ hint?: string;
174
176
  id?: string;
175
177
  title?: string;
176
178
  concept?: string;
177
179
  targetFile?: string;
178
180
  targetSymbol?: string;
179
181
  instructions?: string | string[];
180
- hint?: string;
181
182
  testNames?: string[];
182
183
  }[];
183
184
  stepIndex?: number;
184
- mode?: "guided" | "sandbox";
185
185
  lang?: "js" | "ts";
186
186
  tsStarterFiles?: Record<string, string>;
187
187
  tsSolutionFiles?: Record<string, string>;
@@ -189,13 +189,13 @@ export declare const GuidedLabExtensionOptionsSchema: z.ZodObject<{
189
189
  summary?: string;
190
190
  onStepComplete?: (args_0: {
191
191
  symbol?: string;
192
+ hint?: string;
192
193
  id?: string;
193
194
  title?: string;
194
195
  concept?: string;
195
196
  targetFile?: string;
196
197
  targetSymbol?: string;
197
198
  instructions?: string | string[];
198
- hint?: string;
199
199
  testNames?: string[];
200
200
  }, args_1: number, ...args: unknown[]) => void;
201
201
  onLabComplete?: (args_0: string, ...args: unknown[]) => void;
@@ -210,12 +210,12 @@ export declare const CloneProgressEventSchema: z.ZodObject<{
210
210
  total: z.ZodOptional<z.ZodNumber>;
211
211
  }, "strip", z.ZodTypeAny, {
212
212
  message?: string;
213
- phase?: "connecting" | "metadata" | "downloading" | "mounting" | "ready" | "error";
213
+ phase?: "error" | "connecting" | "metadata" | "downloading" | "mounting" | "ready";
214
214
  loaded?: number;
215
215
  total?: number;
216
216
  }, {
217
217
  message?: string;
218
- phase?: "connecting" | "metadata" | "downloading" | "mounting" | "ready" | "error";
218
+ phase?: "error" | "connecting" | "metadata" | "downloading" | "mounting" | "ready";
219
219
  loaded?: number;
220
220
  total?: number;
221
221
  }>;
@@ -278,9 +278,9 @@ export declare const RuntimeExecuteOptionsSchema: z.ZodObject<{
278
278
  onStderr: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodVoid>>;
279
279
  onTestResult: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodVoid>>;
280
280
  }, "strip", z.ZodTypeAny, {
281
+ mode?: "run" | "test" | "repl";
281
282
  files?: Record<string, string>;
282
283
  entry?: string;
283
- mode?: "run" | "test" | "repl";
284
284
  replCode?: string;
285
285
  printReplResult?: boolean;
286
286
  testFilter?: string | string[];
@@ -300,9 +300,9 @@ export declare const RuntimeExecuteOptionsSchema: z.ZodObject<{
300
300
  onStderr?: (args_0: string, ...args: unknown[]) => void;
301
301
  onTestResult?: (args_0: any, ...args: unknown[]) => void;
302
302
  }, {
303
+ mode?: "run" | "test" | "repl";
303
304
  files?: Record<string, string>;
304
305
  entry?: string;
305
- mode?: "run" | "test" | "repl";
306
306
  replCode?: string;
307
307
  printReplResult?: boolean;
308
308
  testFilter?: string | string[];
@@ -333,8 +333,8 @@ export declare const WorkspaceSnapshotSchema: z.ZodObject<{
333
333
  lang: z.ZodOptional<z.ZodEnum<["js", "ts"]>>;
334
334
  labId: z.ZodOptional<z.ZodString>;
335
335
  }, "strip", z.ZodTypeAny, {
336
- files?: Record<string, string>;
337
336
  mode?: "guided" | "sandbox";
337
+ files?: Record<string, string>;
338
338
  lang?: "js" | "ts";
339
339
  version?: number;
340
340
  timestamp?: number;
@@ -342,8 +342,8 @@ export declare const WorkspaceSnapshotSchema: z.ZodObject<{
342
342
  activeFile?: string;
343
343
  labId?: string;
344
344
  }, {
345
- files?: Record<string, string>;
346
345
  mode?: "guided" | "sandbox";
346
+ files?: Record<string, string>;
347
347
  lang?: "js" | "ts";
348
348
  version?: number;
349
349
  timestamp?: number;
@@ -369,6 +369,9 @@ export declare const WorkbenchOptionsSchema: z.ZodObject<{
369
369
  testFile: z.ZodOptional<z.ZodString>;
370
370
  backLabel: z.ZodDefault<z.ZodString>;
371
371
  monacoUrl: z.ZodOptional<z.ZodString>;
372
+ previewOrigin: z.ZodOptional<z.ZodString>;
373
+ logger: z.ZodOptional<z.ZodAny>;
374
+ debug: z.ZodOptional<z.ZodBoolean>;
372
375
  onClose: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodVoid>>;
373
376
  onRun: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodVoid>>;
374
377
  onTestResult: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodVoid>>;
@@ -387,23 +390,23 @@ export declare const WorkbenchOptionsSchema: z.ZodObject<{
387
390
  testNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
388
391
  }, "strip", z.ZodTypeAny, {
389
392
  symbol?: string;
393
+ hint?: string;
390
394
  id?: string;
391
395
  title?: string;
392
396
  concept?: string;
393
397
  targetFile?: string;
394
398
  targetSymbol?: string;
395
399
  instructions?: string | string[];
396
- hint?: string;
397
400
  testNames?: string[];
398
401
  }, {
399
402
  symbol?: string;
403
+ hint?: string;
400
404
  id?: string;
401
405
  title?: string;
402
406
  concept?: string;
403
407
  targetFile?: string;
404
408
  targetSymbol?: string;
405
409
  instructions?: string | string[];
406
- hint?: string;
407
410
  testNames?: string[];
408
411
  }>, "many">>;
409
412
  starterFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -419,6 +422,7 @@ export declare const WorkbenchOptionsSchema: z.ZodObject<{
419
422
  onStepComplete: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny, z.ZodNumber], z.ZodUnknown>, z.ZodVoid>>;
420
423
  onLabComplete: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodVoid>>;
421
424
  }, "strip", z.ZodTypeAny, {
425
+ mode?: "guided" | "sandbox";
422
426
  id?: string;
423
427
  title?: string;
424
428
  language?: "js" | "ts";
@@ -429,18 +433,17 @@ export declare const WorkbenchOptionsSchema: z.ZodObject<{
429
433
  testEntry?: string;
430
434
  steps?: {
431
435
  symbol?: string;
436
+ hint?: string;
432
437
  id?: string;
433
438
  title?: string;
434
439
  concept?: string;
435
440
  targetFile?: string;
436
441
  targetSymbol?: string;
437
442
  instructions?: string | string[];
438
- hint?: string;
439
443
  testNames?: string[];
440
444
  }[];
441
445
  stepIndex?: number;
442
446
  guided?: any;
443
- mode?: "guided" | "sandbox";
444
447
  lang?: "js" | "ts";
445
448
  tsStarterFiles?: Record<string, string>;
446
449
  tsSolutionFiles?: Record<string, string>;
@@ -459,12 +462,16 @@ export declare const WorkbenchOptionsSchema: z.ZodObject<{
459
462
  testFile?: string;
460
463
  backLabel?: string;
461
464
  monacoUrl?: string;
465
+ previewOrigin?: string;
466
+ logger?: any;
467
+ debug?: boolean;
462
468
  onClose?: (...args: unknown[]) => void;
463
469
  onRun?: (args_0: any, ...args: unknown[]) => void;
464
470
  onCodeChange?: (args_0: string, args_1: string, ...args: unknown[]) => void;
465
471
  plugins?: any[];
466
472
  extensions?: any[];
467
473
  }, {
474
+ mode?: "guided" | "sandbox";
468
475
  id?: string;
469
476
  title?: string;
470
477
  language?: "js" | "ts";
@@ -475,18 +482,17 @@ export declare const WorkbenchOptionsSchema: z.ZodObject<{
475
482
  testEntry?: string;
476
483
  steps?: {
477
484
  symbol?: string;
485
+ hint?: string;
478
486
  id?: string;
479
487
  title?: string;
480
488
  concept?: string;
481
489
  targetFile?: string;
482
490
  targetSymbol?: string;
483
491
  instructions?: string | string[];
484
- hint?: string;
485
492
  testNames?: string[];
486
493
  }[];
487
494
  stepIndex?: number;
488
495
  guided?: any;
489
- mode?: "guided" | "sandbox";
490
496
  lang?: "js" | "ts";
491
497
  tsStarterFiles?: Record<string, string>;
492
498
  tsSolutionFiles?: Record<string, string>;
@@ -505,6 +511,9 @@ export declare const WorkbenchOptionsSchema: z.ZodObject<{
505
511
  testFile?: string;
506
512
  backLabel?: string;
507
513
  monacoUrl?: string;
514
+ previewOrigin?: string;
515
+ logger?: any;
516
+ debug?: boolean;
508
517
  onClose?: (...args: unknown[]) => void;
509
518
  onRun?: (args_0: any, ...args: unknown[]) => void;
510
519
  onCodeChange?: (args_0: string, args_1: string, ...args: unknown[]) => void;
@@ -512,3 +521,335 @@ export declare const WorkbenchOptionsSchema: z.ZodObject<{
512
521
  extensions?: any[];
513
522
  }>;
514
523
  export type WorkbenchOptions = z.infer<typeof WorkbenchOptionsSchema>;
524
+ export declare const SearchOptionsSchema: z.ZodObject<{
525
+ query: z.ZodDefault<z.ZodString>;
526
+ caseSensitive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
527
+ wholeWord: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
528
+ regex: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
529
+ isRegex: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
530
+ include: z.ZodOptional<z.ZodString>;
531
+ includeGlob: z.ZodOptional<z.ZodString>;
532
+ includePattern: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
533
+ exclude: z.ZodOptional<z.ZodString>;
534
+ excludeGlob: z.ZodOptional<z.ZodString>;
535
+ excludePattern: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
536
+ maxMatches: z.ZodOptional<z.ZodNumber>;
537
+ maxMatchesPerFile: z.ZodOptional<z.ZodNumber>;
538
+ }, "strip", z.ZodTypeAny, {
539
+ query?: string;
540
+ caseSensitive?: boolean;
541
+ wholeWord?: boolean;
542
+ regex?: boolean;
543
+ isRegex?: boolean;
544
+ include?: string;
545
+ includeGlob?: string;
546
+ includePattern?: string | string[];
547
+ exclude?: string;
548
+ excludeGlob?: string;
549
+ excludePattern?: string | string[];
550
+ maxMatches?: number;
551
+ maxMatchesPerFile?: number;
552
+ }, {
553
+ query?: string;
554
+ caseSensitive?: boolean;
555
+ wholeWord?: boolean;
556
+ regex?: boolean;
557
+ isRegex?: boolean;
558
+ include?: string;
559
+ includeGlob?: string;
560
+ includePattern?: string | string[];
561
+ exclude?: string;
562
+ excludeGlob?: string;
563
+ excludePattern?: string | string[];
564
+ maxMatches?: number;
565
+ maxMatchesPerFile?: number;
566
+ }>;
567
+ export type SearchOptions = z.infer<typeof SearchOptionsSchema>;
568
+ export declare const DiagnosticSeveritySchema: z.ZodEnum<["error", "warning", "info", "hint"]>;
569
+ export type DiagnosticSeverity = z.infer<typeof DiagnosticSeveritySchema>;
570
+ export declare const DiagnosticItemSchema: z.ZodObject<{
571
+ id: z.ZodString;
572
+ file: z.ZodString;
573
+ line: z.ZodNumber;
574
+ col: z.ZodOptional<z.ZodNumber>;
575
+ column: z.ZodOptional<z.ZodNumber>;
576
+ endLine: z.ZodOptional<z.ZodNumber>;
577
+ endCol: z.ZodOptional<z.ZodNumber>;
578
+ endColumn: z.ZodOptional<z.ZodNumber>;
579
+ message: z.ZodString;
580
+ severity: z.ZodEnum<["error", "warning", "info", "hint"]>;
581
+ source: z.ZodOptional<z.ZodString>;
582
+ code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
583
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
584
+ }, "strip", z.ZodTypeAny, {
585
+ id?: string;
586
+ code?: string | number;
587
+ message?: string;
588
+ file?: string;
589
+ line?: number;
590
+ col?: number;
591
+ column?: number;
592
+ endLine?: number;
593
+ endCol?: number;
594
+ endColumn?: number;
595
+ severity?: "error" | "warning" | "info" | "hint";
596
+ source?: string;
597
+ tags?: string[];
598
+ }, {
599
+ id?: string;
600
+ code?: string | number;
601
+ message?: string;
602
+ file?: string;
603
+ line?: number;
604
+ col?: number;
605
+ column?: number;
606
+ endLine?: number;
607
+ endCol?: number;
608
+ endColumn?: number;
609
+ severity?: "error" | "warning" | "info" | "hint";
610
+ source?: string;
611
+ tags?: string[];
612
+ }>;
613
+ export type DiagnosticItem = z.infer<typeof DiagnosticItemSchema>;
614
+ export declare const StoredProjectSchema: z.ZodObject<{
615
+ id: z.ZodString;
616
+ name: z.ZodString;
617
+ files: z.ZodRecord<z.ZodString, z.ZodString>;
618
+ updatedAt: z.ZodNumber;
619
+ createdAt: z.ZodOptional<z.ZodNumber>;
620
+ entry: z.ZodOptional<z.ZodString>;
621
+ testEntry: z.ZodOptional<z.ZodString>;
622
+ version: z.ZodOptional<z.ZodNumber>;
623
+ }, "strip", z.ZodTypeAny, {
624
+ id?: string;
625
+ files?: Record<string, string>;
626
+ entry?: string;
627
+ testEntry?: string;
628
+ version?: number;
629
+ name?: string;
630
+ updatedAt?: number;
631
+ createdAt?: number;
632
+ }, {
633
+ id?: string;
634
+ files?: Record<string, string>;
635
+ entry?: string;
636
+ testEntry?: string;
637
+ version?: number;
638
+ name?: string;
639
+ updatedAt?: number;
640
+ createdAt?: number;
641
+ }>;
642
+ export type StoredProject = z.infer<typeof StoredProjectSchema>;
643
+ export declare const GitFileChangeTypeSchema: z.ZodEnum<["modified", "added", "deleted", "untracked"]>;
644
+ export type GitFileChangeType = z.infer<typeof GitFileChangeTypeSchema>;
645
+ export declare const GitFileStatusSchema: z.ZodObject<{
646
+ path: z.ZodString;
647
+ status: z.ZodEnum<["modified", "added", "deleted", "untracked"]>;
648
+ staged: z.ZodBoolean;
649
+ oldContent: z.ZodOptional<z.ZodString>;
650
+ newContent: z.ZodOptional<z.ZodString>;
651
+ }, "strip", z.ZodTypeAny, {
652
+ status?: "modified" | "added" | "deleted" | "untracked";
653
+ path?: string;
654
+ staged?: boolean;
655
+ oldContent?: string;
656
+ newContent?: string;
657
+ }, {
658
+ status?: "modified" | "added" | "deleted" | "untracked";
659
+ path?: string;
660
+ staged?: boolean;
661
+ oldContent?: string;
662
+ newContent?: string;
663
+ }>;
664
+ export type GitFileStatus = z.infer<typeof GitFileStatusSchema>;
665
+ export declare const GitStateSummarySchema: z.ZodObject<{
666
+ branch: z.ZodDefault<z.ZodString>;
667
+ headCommit: z.ZodOptional<z.ZodString>;
668
+ branches: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
669
+ staged: z.ZodDefault<z.ZodArray<z.ZodObject<{
670
+ path: z.ZodString;
671
+ status: z.ZodEnum<["modified", "added", "deleted", "untracked"]>;
672
+ staged: z.ZodBoolean;
673
+ oldContent: z.ZodOptional<z.ZodString>;
674
+ newContent: z.ZodOptional<z.ZodString>;
675
+ }, "strip", z.ZodTypeAny, {
676
+ status?: "modified" | "added" | "deleted" | "untracked";
677
+ path?: string;
678
+ staged?: boolean;
679
+ oldContent?: string;
680
+ newContent?: string;
681
+ }, {
682
+ status?: "modified" | "added" | "deleted" | "untracked";
683
+ path?: string;
684
+ staged?: boolean;
685
+ oldContent?: string;
686
+ newContent?: string;
687
+ }>, "many">>;
688
+ unstaged: z.ZodDefault<z.ZodArray<z.ZodObject<{
689
+ path: z.ZodString;
690
+ status: z.ZodEnum<["modified", "added", "deleted", "untracked"]>;
691
+ staged: z.ZodBoolean;
692
+ oldContent: z.ZodOptional<z.ZodString>;
693
+ newContent: z.ZodOptional<z.ZodString>;
694
+ }, "strip", z.ZodTypeAny, {
695
+ status?: "modified" | "added" | "deleted" | "untracked";
696
+ path?: string;
697
+ staged?: boolean;
698
+ oldContent?: string;
699
+ newContent?: string;
700
+ }, {
701
+ status?: "modified" | "added" | "deleted" | "untracked";
702
+ path?: string;
703
+ staged?: boolean;
704
+ oldContent?: string;
705
+ newContent?: string;
706
+ }>, "many">>;
707
+ untracked: z.ZodDefault<z.ZodArray<z.ZodObject<{
708
+ path: z.ZodString;
709
+ status: z.ZodEnum<["modified", "added", "deleted", "untracked"]>;
710
+ staged: z.ZodBoolean;
711
+ oldContent: z.ZodOptional<z.ZodString>;
712
+ newContent: z.ZodOptional<z.ZodString>;
713
+ }, "strip", z.ZodTypeAny, {
714
+ status?: "modified" | "added" | "deleted" | "untracked";
715
+ path?: string;
716
+ staged?: boolean;
717
+ oldContent?: string;
718
+ newContent?: string;
719
+ }, {
720
+ status?: "modified" | "added" | "deleted" | "untracked";
721
+ path?: string;
722
+ staged?: boolean;
723
+ oldContent?: string;
724
+ newContent?: string;
725
+ }>, "many">>;
726
+ modified: z.ZodOptional<z.ZodArray<z.ZodObject<{
727
+ path: z.ZodString;
728
+ status: z.ZodEnum<["modified", "added", "deleted", "untracked"]>;
729
+ staged: z.ZodBoolean;
730
+ oldContent: z.ZodOptional<z.ZodString>;
731
+ newContent: z.ZodOptional<z.ZodString>;
732
+ }, "strip", z.ZodTypeAny, {
733
+ status?: "modified" | "added" | "deleted" | "untracked";
734
+ path?: string;
735
+ staged?: boolean;
736
+ oldContent?: string;
737
+ newContent?: string;
738
+ }, {
739
+ status?: "modified" | "added" | "deleted" | "untracked";
740
+ path?: string;
741
+ staged?: boolean;
742
+ oldContent?: string;
743
+ newContent?: string;
744
+ }>, "many">>;
745
+ deleted: z.ZodOptional<z.ZodArray<z.ZodObject<{
746
+ path: z.ZodString;
747
+ status: z.ZodEnum<["modified", "added", "deleted", "untracked"]>;
748
+ staged: z.ZodBoolean;
749
+ oldContent: z.ZodOptional<z.ZodString>;
750
+ newContent: z.ZodOptional<z.ZodString>;
751
+ }, "strip", z.ZodTypeAny, {
752
+ status?: "modified" | "added" | "deleted" | "untracked";
753
+ path?: string;
754
+ staged?: boolean;
755
+ oldContent?: string;
756
+ newContent?: string;
757
+ }, {
758
+ status?: "modified" | "added" | "deleted" | "untracked";
759
+ path?: string;
760
+ staged?: boolean;
761
+ oldContent?: string;
762
+ newContent?: string;
763
+ }>, "many">>;
764
+ hasChanges: z.ZodDefault<z.ZodBoolean>;
765
+ isClean: z.ZodDefault<z.ZodBoolean>;
766
+ ahead: z.ZodDefault<z.ZodNumber>;
767
+ behind: z.ZodDefault<z.ZodNumber>;
768
+ }, "strip", z.ZodTypeAny, {
769
+ branch?: string;
770
+ modified?: {
771
+ status?: "modified" | "added" | "deleted" | "untracked";
772
+ path?: string;
773
+ staged?: boolean;
774
+ oldContent?: string;
775
+ newContent?: string;
776
+ }[];
777
+ deleted?: {
778
+ status?: "modified" | "added" | "deleted" | "untracked";
779
+ path?: string;
780
+ staged?: boolean;
781
+ oldContent?: string;
782
+ newContent?: string;
783
+ }[];
784
+ untracked?: {
785
+ status?: "modified" | "added" | "deleted" | "untracked";
786
+ path?: string;
787
+ staged?: boolean;
788
+ oldContent?: string;
789
+ newContent?: string;
790
+ }[];
791
+ staged?: {
792
+ status?: "modified" | "added" | "deleted" | "untracked";
793
+ path?: string;
794
+ staged?: boolean;
795
+ oldContent?: string;
796
+ newContent?: string;
797
+ }[];
798
+ headCommit?: string;
799
+ branches?: string[];
800
+ unstaged?: {
801
+ status?: "modified" | "added" | "deleted" | "untracked";
802
+ path?: string;
803
+ staged?: boolean;
804
+ oldContent?: string;
805
+ newContent?: string;
806
+ }[];
807
+ hasChanges?: boolean;
808
+ isClean?: boolean;
809
+ ahead?: number;
810
+ behind?: number;
811
+ }, {
812
+ branch?: string;
813
+ modified?: {
814
+ status?: "modified" | "added" | "deleted" | "untracked";
815
+ path?: string;
816
+ staged?: boolean;
817
+ oldContent?: string;
818
+ newContent?: string;
819
+ }[];
820
+ deleted?: {
821
+ status?: "modified" | "added" | "deleted" | "untracked";
822
+ path?: string;
823
+ staged?: boolean;
824
+ oldContent?: string;
825
+ newContent?: string;
826
+ }[];
827
+ untracked?: {
828
+ status?: "modified" | "added" | "deleted" | "untracked";
829
+ path?: string;
830
+ staged?: boolean;
831
+ oldContent?: string;
832
+ newContent?: string;
833
+ }[];
834
+ staged?: {
835
+ status?: "modified" | "added" | "deleted" | "untracked";
836
+ path?: string;
837
+ staged?: boolean;
838
+ oldContent?: string;
839
+ newContent?: string;
840
+ }[];
841
+ headCommit?: string;
842
+ branches?: string[];
843
+ unstaged?: {
844
+ status?: "modified" | "added" | "deleted" | "untracked";
845
+ path?: string;
846
+ staged?: boolean;
847
+ oldContent?: string;
848
+ newContent?: string;
849
+ }[];
850
+ hasChanges?: boolean;
851
+ isClean?: boolean;
852
+ ahead?: number;
853
+ behind?: number;
854
+ }>;
855
+ export type GitStateSummary = z.infer<typeof GitStateSummarySchema>;