@soda-gql/builder 0.0.9 → 0.2.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/dist/index.d.mts CHANGED
@@ -1,42 +1,13 @@
1
- import { CanonicalId, CanonicalId as CanonicalId$1, CanonicalPathTracker, ScopeFrame, ScopeHandle, buildAstPath, createCanonicalId, createCanonicalTracker, createOccurrenceTracker, createPathTracker } from "@soda-gql/common";
2
- import { ZodSchema, z } from "zod";
1
+ import { Script } from "node:vm";
2
+ import * as _soda_gql_common0 from "@soda-gql/common";
3
+ import { CanonicalId, Effect, EffectGenerator } from "@soda-gql/common";
4
+ import { AnyFragment, AnyOperation } from "@soda-gql/core";
3
5
  import * as neverthrow0 from "neverthrow";
4
6
  import { Result } from "neverthrow";
5
- import { Script } from "node:vm";
6
- import { AnyComposedOperation, AnyInlineOperation, AnyModel, AnySlice } from "@soda-gql/core";
7
- import { RuntimeComposedOperationInput, RuntimeInlineOperationInput, RuntimeModelInput, RuntimeSliceInput } from "@soda-gql/core/runtime";
7
+ import { ZodSchema, z } from "zod";
8
+ import { RuntimeFragmentInput, RuntimeOperationInput } from "@soda-gql/core/runtime";
8
9
  import { ResolvedSodaGqlConfig } from "@soda-gql/config";
9
10
 
10
- //#region packages/builder/src/intermediate-module/types.d.ts
11
- /**
12
- * Request type yielded by module generators to import dependencies.
13
- */
14
- type EvaluationRequest = {
15
- readonly kind: "import";
16
- readonly filePath: string;
17
- };
18
- type IntermediateModule = {
19
- readonly filePath: string;
20
- readonly canonicalIds: readonly string[];
21
- readonly sourceCode: string;
22
- readonly transpiledCode: string;
23
- readonly contentHash: string;
24
- readonly script: Script;
25
- };
26
- type IntermediateArtifactElement = {
27
- readonly type: "model";
28
- readonly element: AnyModel;
29
- } | {
30
- readonly type: "slice";
31
- readonly element: AnySlice;
32
- } | {
33
- readonly type: "operation";
34
- readonly element: AnyComposedOperation;
35
- } | {
36
- readonly type: "inlineOperation";
37
- readonly element: AnyInlineOperation;
38
- };
39
- //#endregion
40
11
  //#region packages/builder/src/internal/graphql-system.d.ts
41
12
  type GraphqlSystemIdentifyHelper = {
42
13
  readonly isGraphqlSystemFile: (input: {
@@ -194,35 +165,26 @@ type BuilderOptions = BuilderInput & {
194
165
  };
195
166
  //#endregion
196
167
  //#region packages/builder/src/ast/types.d.ts
197
- type SourcePosition = {
198
- readonly line: number;
199
- readonly column: number;
200
- };
201
- type SourceLocation = {
202
- readonly start: SourcePosition;
203
- readonly end: SourcePosition;
204
- };
205
168
  type ModuleDefinition = {
206
- readonly canonicalId: CanonicalId$1;
169
+ readonly canonicalId: CanonicalId;
207
170
  /** AST-derived path uniquely identifying this definition's location (e.g., "MyComponent.useQuery.def") */
208
171
  readonly astPath: string;
209
- /** Whether this definition is at the top level of the module */
172
+ /**
173
+ * Whether this definition is at the top level of the module (stack.length === 1 during AST traversal).
174
+ * Invariant: if isExported is true, isTopLevel must also be true.
175
+ */
210
176
  readonly isTopLevel: boolean;
211
- /** Whether this definition is exported from the module */
177
+ /**
178
+ * Whether this definition is exported from the module.
179
+ * Invariant: isExported can only be true when isTopLevel is true.
180
+ */
212
181
  readonly isExported: boolean;
213
182
  /** The export binding name if this definition is exported */
214
183
  readonly exportBinding?: string;
215
- readonly loc: SourceLocation;
216
184
  readonly expression: string;
217
185
  };
218
- type ModuleDiagnostic = {
219
- readonly code: "NON_TOP_LEVEL_DEFINITION";
220
- readonly message: string;
221
- readonly loc: SourceLocation;
222
- };
223
186
  type ModuleImport = {
224
187
  readonly source: string;
225
- readonly imported: string;
226
188
  readonly local: string;
227
189
  readonly kind: "named" | "namespace" | "default";
228
190
  readonly isTypeOnly: boolean;
@@ -244,7 +206,6 @@ type ModuleAnalysis = {
244
206
  readonly filePath: string;
245
207
  readonly signature: string;
246
208
  readonly definitions: readonly ModuleDefinition[];
247
- readonly diagnostics: readonly ModuleDiagnostic[];
248
209
  readonly imports: readonly ModuleImport[];
249
210
  readonly exports: readonly ModuleExport[];
250
211
  };
@@ -265,12 +226,42 @@ declare const createAstAnalyzer: ({
265
226
  analyze: (input: AnalyzeModuleInput) => ModuleAnalysis;
266
227
  };
267
228
  //#endregion
229
+ //#region packages/builder/src/intermediate-module/types.d.ts
230
+ /**
231
+ * Request type yielded by module generators to import dependencies.
232
+ */
233
+ type EvaluationRequest = {
234
+ readonly kind: "import";
235
+ readonly filePath: string;
236
+ };
237
+ type IntermediateModule = {
238
+ readonly filePath: string;
239
+ readonly canonicalIds: readonly string[];
240
+ readonly sourceCode: string;
241
+ readonly transpiledCode: string;
242
+ readonly contentHash: string;
243
+ readonly script: Script;
244
+ };
245
+ type IntermediateArtifactElement = {
246
+ readonly type: "fragment";
247
+ readonly element: AnyFragment;
248
+ } | {
249
+ readonly type: "operation";
250
+ readonly element: AnyOperation;
251
+ };
252
+ //#endregion
268
253
  //#region packages/builder/src/intermediate-module/evaluation.d.ts
269
254
  type BuildIntermediateModulesInput = {
270
255
  readonly analyses: Map<string, ModuleAnalysis>;
271
256
  readonly targetFiles: Set<string>;
272
257
  readonly graphqlSystemPath: string;
273
258
  };
259
+ /**
260
+ * Clear the cached gql module.
261
+ * Call this between test runs to ensure clean state.
262
+ * @internal - exported for testing purposes only
263
+ */
264
+ declare const __clearGqlCache: () => void;
274
265
  /**
275
266
  * Build intermediate modules from dependency graph.
276
267
  * Each intermediate module corresponds to one source file.
@@ -280,46 +271,54 @@ declare const generateIntermediateModules: ({
280
271
  targetFiles,
281
272
  graphqlSystemPath
282
273
  }: BuildIntermediateModulesInput) => Generator<IntermediateModule, void, undefined>;
283
- declare const evaluateIntermediateModules: ({
284
- intermediateModules,
285
- graphqlSystemPath,
286
- analyses
287
- }: {
274
+ type EvaluateIntermediateModulesInput = {
288
275
  intermediateModules: Map<string, IntermediateModule>;
289
276
  graphqlSystemPath: string;
290
277
  analyses: Map<string, ModuleAnalysis>;
291
- }) => Record<string, IntermediateArtifactElement>;
278
+ };
279
+ /**
280
+ * Synchronous evaluation of intermediate modules.
281
+ * Throws if any element requires async operations (e.g., async metadata factory).
282
+ */
283
+ declare const evaluateIntermediateModules: (input: EvaluateIntermediateModulesInput) => Record<string, IntermediateArtifactElement>;
284
+ /**
285
+ * Asynchronous evaluation of intermediate modules.
286
+ * Supports async metadata factories and other async operations.
287
+ */
288
+ declare const evaluateIntermediateModulesAsync: (input: EvaluateIntermediateModulesInput) => Promise<Record<string, IntermediateArtifactElement>>;
289
+ /**
290
+ * Generator version of evaluateIntermediateModules for external scheduler control.
291
+ * Yields effects for element evaluation, enabling unified scheduler at the root level.
292
+ *
293
+ * This function:
294
+ * 1. Sets up the VM context and runs intermediate module scripts
295
+ * 2. Runs synchronous module evaluation (trampoline - no I/O)
296
+ * 3. Yields element evaluation effects via ParallelEffect
297
+ * 4. Returns the artifacts record
298
+ */
299
+ declare function evaluateIntermediateModulesGen(input: EvaluateIntermediateModulesInput): EffectGenerator<Record<string, IntermediateArtifactElement>>;
292
300
  //#endregion
293
301
  //#region packages/builder/src/artifact/types.d.ts
294
- type IntermediateElements = Record<CanonicalId$1, IntermediateArtifactElement>;
302
+ type IntermediateElements = Record<CanonicalId, IntermediateArtifactElement>;
295
303
  type BuilderArtifactElementMetadata = {
296
304
  readonly sourcePath: string;
297
- readonly sourceHash: string;
298
305
  readonly contentHash: string;
299
306
  };
300
307
  type BuilderArtifactElementBase = {
301
- readonly id: CanonicalId$1;
308
+ readonly id: CanonicalId;
302
309
  readonly metadata: BuilderArtifactElementMetadata;
303
310
  };
304
311
  type BuilderArtifactOperation = BuilderArtifactElementBase & {
305
312
  readonly type: "operation";
306
- readonly prebuild: RuntimeComposedOperationInput["prebuild"];
313
+ readonly prebuild: RuntimeOperationInput["prebuild"];
307
314
  };
308
- type BuilderArtifactInlineOperation = BuilderArtifactElementBase & {
309
- readonly type: "inlineOperation";
310
- readonly prebuild: RuntimeInlineOperationInput["prebuild"];
315
+ type BuilderArtifactFragment = BuilderArtifactElementBase & {
316
+ readonly type: "fragment";
317
+ readonly prebuild: RuntimeFragmentInput["prebuild"];
311
318
  };
312
- type BuilderArtifactSlice = BuilderArtifactElementBase & {
313
- readonly type: "slice";
314
- readonly prebuild: RuntimeSliceInput["prebuild"];
315
- };
316
- type BuilderArtifactModel = BuilderArtifactElementBase & {
317
- readonly type: "model";
318
- readonly prebuild: RuntimeModelInput["prebuild"];
319
- };
320
- type BuilderArtifactElement = BuilderArtifactOperation | BuilderArtifactInlineOperation | BuilderArtifactSlice | BuilderArtifactModel;
319
+ type BuilderArtifactElement = BuilderArtifactOperation | BuilderArtifactFragment;
321
320
  type BuilderArtifact = {
322
- readonly elements: Record<CanonicalId$1, BuilderArtifactElement>;
321
+ readonly elements: Record<CanonicalId, BuilderArtifactElement>;
323
322
  readonly report: {
324
323
  readonly durationMs: number;
325
324
  readonly warnings: readonly string[];
@@ -367,6 +366,19 @@ type FingerprintError = {
367
366
  * @returns Result containing FileFingerprint or FingerprintError
368
367
  */
369
368
  declare function computeFingerprint(path: string): Result<FileFingerprint, FingerprintError>;
369
+ /**
370
+ * Compute fingerprint from pre-read file content and stats.
371
+ * This is used by the generator-based discoverer which already has the content.
372
+ *
373
+ * @param path - Absolute path to file (for caching)
374
+ * @param stats - File stats (mtimeMs, size)
375
+ * @param content - File content as string
376
+ * @returns FileFingerprint
377
+ */
378
+ declare function computeFingerprintFromContent(path: string, stats: {
379
+ readonly mtimeMs: number;
380
+ readonly size: number;
381
+ }, content: string): FileFingerprint;
370
382
  /**
371
383
  * Invalidate cached fingerprint for a specific path
372
384
  *
@@ -455,13 +467,118 @@ type ModuleLoadStats = {
455
467
  readonly skips: number;
456
468
  };
457
469
  //#endregion
470
+ //#region packages/builder/src/scheduler/effects.d.ts
471
+ type AcceptableArtifact = AnyFragment | AnyOperation;
472
+ /**
473
+ * File stats result type.
474
+ */
475
+ type FileStats = {
476
+ readonly mtimeMs: number;
477
+ readonly size: number;
478
+ readonly isFile: boolean;
479
+ };
480
+ /**
481
+ * File read effect - reads a file from the filesystem.
482
+ * Works in both sync and async schedulers.
483
+ *
484
+ * @example
485
+ * const content = yield* new FileReadEffect("/path/to/file").run();
486
+ */
487
+ declare class FileReadEffect extends Effect<string> {
488
+ readonly path: string;
489
+ constructor(path: string);
490
+ protected _executeSync(): string;
491
+ protected _executeAsync(): Promise<string>;
492
+ }
493
+ /**
494
+ * File stat effect - gets file stats from the filesystem.
495
+ * Works in both sync and async schedulers.
496
+ *
497
+ * @example
498
+ * const stats = yield* new FileStatEffect("/path/to/file").run();
499
+ */
500
+ declare class FileStatEffect extends Effect<FileStats> {
501
+ readonly path: string;
502
+ constructor(path: string);
503
+ protected _executeSync(): FileStats;
504
+ protected _executeAsync(): Promise<FileStats>;
505
+ }
506
+ /**
507
+ * File read effect that returns null if file doesn't exist.
508
+ * Useful for discovery where missing files are expected.
509
+ */
510
+ declare class OptionalFileReadEffect extends Effect<string | null> {
511
+ readonly path: string;
512
+ constructor(path: string);
513
+ protected _executeSync(): string | null;
514
+ protected _executeAsync(): Promise<string | null>;
515
+ }
516
+ /**
517
+ * File stat effect that returns null if file doesn't exist.
518
+ * Useful for discovery where missing files are expected.
519
+ */
520
+ declare class OptionalFileStatEffect extends Effect<FileStats | null> {
521
+ readonly path: string;
522
+ constructor(path: string);
523
+ protected _executeSync(): FileStats | null;
524
+ protected _executeAsync(): Promise<FileStats | null>;
525
+ }
526
+ /**
527
+ * Element evaluation effect - evaluates a GqlElement using its generator.
528
+ * Supports both sync and async schedulers, enabling parallel element evaluation
529
+ * when using async scheduler.
530
+ *
531
+ * @example
532
+ * yield* new ElementEvaluationEffect(element).run();
533
+ */
534
+ declare class ElementEvaluationEffect extends Effect<void> {
535
+ readonly element: AcceptableArtifact;
536
+ constructor(element: AcceptableArtifact);
537
+ protected _executeSync(): void;
538
+ protected _executeAsync(): Promise<void>;
539
+ }
540
+ /**
541
+ * Builder effect constructors.
542
+ * Extends the base Effects with file I/O operations and element evaluation.
543
+ */
544
+ declare const BuilderEffects: {
545
+ /**
546
+ * Create a file read effect.
547
+ * @param path - The file path to read
548
+ */
549
+ readonly readFile: (path: string) => FileReadEffect;
550
+ /**
551
+ * Create a file stat effect.
552
+ * @param path - The file path to stat
553
+ */
554
+ readonly stat: (path: string) => FileStatEffect;
555
+ /**
556
+ * Create an optional file read effect that returns null if file doesn't exist.
557
+ * @param path - The file path to read
558
+ */
559
+ readonly readFileOptional: (path: string) => OptionalFileReadEffect;
560
+ /**
561
+ * Create an optional file stat effect that returns null if file doesn't exist.
562
+ * @param path - The file path to stat
563
+ */
564
+ readonly statOptional: (path: string) => OptionalFileStatEffect;
565
+ /**
566
+ * Create an element evaluation effect.
567
+ * @param element - The GqlElement to evaluate
568
+ */
569
+ readonly evaluateElement: (element: AcceptableArtifact) => ElementEvaluationEffect;
570
+ readonly pure: <T>(value: T) => _soda_gql_common0.PureEffect<T>;
571
+ readonly defer: <T>(promise: Promise<T>) => _soda_gql_common0.DeferEffect<T>;
572
+ readonly parallel: (effects: readonly Effect<unknown>[]) => _soda_gql_common0.ParallelEffect;
573
+ readonly yield: () => _soda_gql_common0.YieldEffect;
574
+ };
575
+ //#endregion
458
576
  //#region packages/builder/src/schemas/artifact.d.ts
459
577
  declare const BuilderArtifactElementSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
460
- id: z.core.$ZodType<CanonicalId$1, CanonicalId$1, z.core.$ZodTypeInternals<CanonicalId$1, CanonicalId$1>>;
578
+ id: z.core.$ZodType<CanonicalId, CanonicalId, z.core.$ZodTypeInternals<CanonicalId, CanonicalId>>;
461
579
  type: z.ZodLiteral<"operation">;
462
580
  metadata: z.ZodObject<{
463
581
  sourcePath: z.ZodString;
464
- sourceHash: z.ZodString;
465
582
  contentHash: z.ZodString;
466
583
  }, z.core.$strip>;
467
584
  prebuild: z.ZodObject<{
@@ -473,29 +590,12 @@ declare const BuilderArtifactElementSchema: z.ZodDiscriminatedUnion<[z.ZodObject
473
590
  operationName: z.ZodString;
474
591
  document: z.ZodUnknown;
475
592
  variableNames: z.ZodArray<z.ZodString>;
476
- projectionPathGraph: z.ZodUnknown;
477
- }, z.core.$strip>;
478
- }, z.core.$strip>, z.ZodObject<{
479
- id: z.core.$ZodType<CanonicalId$1, CanonicalId$1, z.core.$ZodTypeInternals<CanonicalId$1, CanonicalId$1>>;
480
- type: z.ZodLiteral<"slice">;
481
- metadata: z.ZodObject<{
482
- sourcePath: z.ZodString;
483
- sourceHash: z.ZodString;
484
- contentHash: z.ZodString;
485
- }, z.core.$strip>;
486
- prebuild: z.ZodObject<{
487
- operationType: z.ZodEnum<{
488
- query: "query";
489
- mutation: "mutation";
490
- subscription: "subscription";
491
- }>;
492
593
  }, z.core.$strip>;
493
594
  }, z.core.$strip>, z.ZodObject<{
494
- id: z.core.$ZodType<CanonicalId$1, CanonicalId$1, z.core.$ZodTypeInternals<CanonicalId$1, CanonicalId$1>>;
495
- type: z.ZodLiteral<"model">;
595
+ id: z.core.$ZodType<CanonicalId, CanonicalId, z.core.$ZodTypeInternals<CanonicalId, CanonicalId>>;
596
+ type: z.ZodLiteral<"fragment">;
496
597
  metadata: z.ZodObject<{
497
598
  sourcePath: z.ZodString;
498
- sourceHash: z.ZodString;
499
599
  contentHash: z.ZodString;
500
600
  }, z.core.$strip>;
501
601
  prebuild: z.ZodObject<{
@@ -503,12 +603,11 @@ declare const BuilderArtifactElementSchema: z.ZodDiscriminatedUnion<[z.ZodObject
503
603
  }, z.core.$strip>;
504
604
  }, z.core.$strip>], "type">;
505
605
  declare const BuilderArtifactSchema: z.ZodObject<{
506
- elements: z.ZodRecord<z.core.$ZodType<CanonicalId$1, CanonicalId$1, z.core.$ZodTypeInternals<CanonicalId$1, CanonicalId$1>>, z.ZodDiscriminatedUnion<[z.ZodObject<{
507
- id: z.core.$ZodType<CanonicalId$1, CanonicalId$1, z.core.$ZodTypeInternals<CanonicalId$1, CanonicalId$1>>;
606
+ elements: z.ZodRecord<z.core.$ZodType<CanonicalId, CanonicalId, z.core.$ZodTypeInternals<CanonicalId, CanonicalId>>, z.ZodDiscriminatedUnion<[z.ZodObject<{
607
+ id: z.core.$ZodType<CanonicalId, CanonicalId, z.core.$ZodTypeInternals<CanonicalId, CanonicalId>>;
508
608
  type: z.ZodLiteral<"operation">;
509
609
  metadata: z.ZodObject<{
510
610
  sourcePath: z.ZodString;
511
- sourceHash: z.ZodString;
512
611
  contentHash: z.ZodString;
513
612
  }, z.core.$strip>;
514
613
  prebuild: z.ZodObject<{
@@ -520,29 +619,12 @@ declare const BuilderArtifactSchema: z.ZodObject<{
520
619
  operationName: z.ZodString;
521
620
  document: z.ZodUnknown;
522
621
  variableNames: z.ZodArray<z.ZodString>;
523
- projectionPathGraph: z.ZodUnknown;
524
622
  }, z.core.$strip>;
525
623
  }, z.core.$strip>, z.ZodObject<{
526
- id: z.core.$ZodType<CanonicalId$1, CanonicalId$1, z.core.$ZodTypeInternals<CanonicalId$1, CanonicalId$1>>;
527
- type: z.ZodLiteral<"slice">;
624
+ id: z.core.$ZodType<CanonicalId, CanonicalId, z.core.$ZodTypeInternals<CanonicalId, CanonicalId>>;
625
+ type: z.ZodLiteral<"fragment">;
528
626
  metadata: z.ZodObject<{
529
627
  sourcePath: z.ZodString;
530
- sourceHash: z.ZodString;
531
- contentHash: z.ZodString;
532
- }, z.core.$strip>;
533
- prebuild: z.ZodObject<{
534
- operationType: z.ZodEnum<{
535
- query: "query";
536
- mutation: "mutation";
537
- subscription: "subscription";
538
- }>;
539
- }, z.core.$strip>;
540
- }, z.core.$strip>, z.ZodObject<{
541
- id: z.core.$ZodType<CanonicalId$1, CanonicalId$1, z.core.$ZodTypeInternals<CanonicalId$1, CanonicalId$1>>;
542
- type: z.ZodLiteral<"model">;
543
- metadata: z.ZodObject<{
544
- sourcePath: z.ZodString;
545
- sourceHash: z.ZodString;
546
628
  contentHash: z.ZodString;
547
629
  }, z.core.$strip>;
548
630
  prebuild: z.ZodObject<{
@@ -576,12 +658,14 @@ type BuilderServiceConfig = {
576
658
  */
577
659
  interface BuilderService {
578
660
  /**
579
- * Generate artifacts from configured entry points.
661
+ * Generate artifacts from configured entry points (synchronous).
580
662
  *
581
663
  * The service automatically detects file changes using an internal file tracker.
582
664
  * On first call, performs full build. Subsequent calls perform incremental builds
583
665
  * based on detected file changes (added/updated/removed).
584
666
  *
667
+ * Throws if any element requires async operations (e.g., async metadata factory).
668
+ *
585
669
  * @param options - Optional build options
586
670
  * @param options.force - If true, bypass change detection and force full rebuild
587
671
  * @returns Result containing BuilderArtifact on success or BuilderError on failure.
@@ -589,6 +673,22 @@ interface BuilderService {
589
673
  build(options?: {
590
674
  force?: boolean;
591
675
  }): Result<BuilderArtifact, BuilderError>;
676
+ /**
677
+ * Generate artifacts from configured entry points (asynchronous).
678
+ *
679
+ * The service automatically detects file changes using an internal file tracker.
680
+ * On first call, performs full build. Subsequent calls perform incremental builds
681
+ * based on detected file changes (added/updated/removed).
682
+ *
683
+ * Supports async metadata factories and parallel element evaluation.
684
+ *
685
+ * @param options - Optional build options
686
+ * @param options.force - If true, bypass change detection and force full rebuild
687
+ * @returns Promise of Result containing BuilderArtifact on success or BuilderError on failure.
688
+ */
689
+ buildAsync(options?: {
690
+ force?: boolean;
691
+ }): Promise<Result<BuilderArtifact, BuilderError>>;
592
692
  /**
593
693
  * Get the current generation number of the artifact.
594
694
  * Increments on each successful build.
@@ -739,15 +839,30 @@ type DiscoverModulesResult = {
739
839
  readonly cacheSkips: number;
740
840
  };
741
841
  /**
742
- * Discover and analyze all modules starting from entry points.
743
- * Uses AST parsing instead of RegExp for reliable dependency extraction.
744
- * Supports caching with fingerprint-based invalidation to skip re-parsing unchanged files.
842
+ * Generator-based module discovery that yields effects for file I/O.
843
+ * This allows the discovery process to be executed with either sync or async schedulers.
745
844
  */
746
- declare const discoverModules: ({
845
+ declare function discoverModulesGen({
747
846
  entryPaths,
748
847
  astAnalyzer,
749
848
  incremental
750
- }: DiscoverModulesOptions) => BuilderResult<DiscoverModulesResult>;
849
+ }: DiscoverModulesOptions): EffectGenerator<DiscoverModulesResult>;
850
+ /**
851
+ * Discover and analyze all modules starting from entry points.
852
+ * Uses AST parsing instead of RegExp for reliable dependency extraction.
853
+ * Supports caching with fingerprint-based invalidation to skip re-parsing unchanged files.
854
+ *
855
+ * This function uses the synchronous scheduler internally for backward compatibility.
856
+ * For async execution with parallel file I/O, use discoverModulesGen with an async scheduler.
857
+ */
858
+ declare const discoverModules: (options: DiscoverModulesOptions) => BuilderResult<DiscoverModulesResult>;
859
+ /**
860
+ * Asynchronous version of discoverModules.
861
+ * Uses async scheduler for parallel file I/O operations.
862
+ *
863
+ * This is useful for large codebases where parallel file operations can improve performance.
864
+ */
865
+ declare const discoverModulesAsync: (options: DiscoverModulesOptions) => Promise<BuilderResult<DiscoverModulesResult>>;
751
866
  //#endregion
752
867
  //#region packages/builder/src/discovery/entry-paths.d.ts
753
868
  /**
@@ -776,12 +891,21 @@ declare const buildArtifact: ({
776
891
  */
777
892
  interface BuilderSession {
778
893
  /**
779
- * Perform build fully or incrementally.
894
+ * Perform build fully or incrementally (synchronous).
780
895
  * The session automatically detects file changes using the file tracker.
896
+ * Throws if any element requires async operations (e.g., async metadata factory).
781
897
  */
782
898
  build(options?: {
783
899
  force?: boolean;
784
900
  }): Result<BuilderArtifact, BuilderError>;
901
+ /**
902
+ * Perform build fully or incrementally (asynchronous).
903
+ * The session automatically detects file changes using the file tracker.
904
+ * Supports async metadata factories and parallel element evaluation.
905
+ */
906
+ buildAsync(options?: {
907
+ force?: boolean;
908
+ }): Promise<Result<BuilderArtifact, BuilderError>>;
785
909
  /**
786
910
  * Get the current generation number.
787
911
  */
@@ -812,9 +936,11 @@ type DependencyGraphError = {
812
936
  readonly chain: readonly [importingFile: string, importSpecifier: string];
813
937
  };
814
938
  declare const validateModuleDependencies: ({
815
- analyses
939
+ analyses,
940
+ graphqlSystemHelper
816
941
  }: {
817
942
  analyses: Map<string, ModuleAnalysis>;
943
+ graphqlSystemHelper: GraphqlSystemIdentifyHelper;
818
944
  }) => Result<null, DependencyGraphError>;
819
945
  //#endregion
820
946
  //#region packages/builder/src/session/module-adjacency.d.ts
@@ -839,5 +965,5 @@ declare const collectAffectedFiles: (input: {
839
965
  previousModuleAdjacency: Map<string, Set<string>>;
840
966
  }) => Set<string>;
841
967
  //#endregion
842
- export { type BuilderAnalyzer, type BuilderArtifact, type BuilderArtifactElement, type BuilderArtifactElementMetadata, type BuilderArtifactInlineOperation, type BuilderArtifactModel, type BuilderArtifactOperation, BuilderArtifactSchema, type BuilderArtifactSlice, type BuilderError, type BuilderFormat, type BuilderInput, type BuilderMode, type BuilderOptions, type BuilderService, type BuilderServiceConfig, type BuilderSession, type CanonicalId, type CanonicalPathTracker, type DiscoveredDependency, type DiscoveryCache, type DiscoverySnapshot, type GraphqlSystemIdentifyHelper, type ScopeFrame, type ScopeHandle, buildAstPath, createBuilderService, createBuilderSession, createCanonicalId, createCanonicalTracker, createGraphqlSystemIdentifyHelper, createOccurrenceTracker, createPathTracker };
968
+ export { type BuilderAnalyzer, type BuilderArtifact, type BuilderArtifactElement, type BuilderArtifactElementMetadata, type BuilderArtifactFragment, type BuilderArtifactOperation, BuilderArtifactSchema, BuilderEffects, type BuilderError, type BuilderFormat, type BuilderInput, type BuilderMode, type BuilderOptions, type BuilderService, type BuilderServiceConfig, type BuilderSession, type DiscoveredDependency, type DiscoveryCache, type DiscoverySnapshot, FileReadEffect, FileStatEffect, type FileStats, type GraphqlSystemIdentifyHelper, __clearGqlCache, collectAffectedFiles, createBuilderService, createBuilderSession, createGraphqlSystemIdentifyHelper, extractModuleAdjacency };
843
969
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/intermediate-module/types.ts","../src/internal/graphql-system.ts","../src/errors.ts","../src/types.ts","../src/ast/types.ts","../src/ast/index.ts","../src/intermediate-module/evaluation.ts","../src/artifact/types.ts","../src/discovery/fingerprint.ts","../src/discovery/types.ts","../src/schemas/artifact.ts","../src/service.ts","../src/cache/memory-cache.ts","../src/cache/entity-cache.ts","../src/discovery/cache.ts","../src/discovery/discoverer.ts","../src/discovery/entry-paths.ts","../src/artifact/builder.ts","../src/session/builder-session.ts","../src/session/dependency-validation.ts","../src/session/module-adjacency.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;KAMY,iBAAA;;;;KAKA,kBAAA;EALA,SAAA,QAAA,EAAA,MAAiB;EAKjB,SAAA,YAAkB,EAAA,SAAA,MAMX,EAAM;EAGb,SAAA,UAAA,EAAA,MAAA;EACoC,SAAA,cAAA,EAAA,MAAA;EACA,SAAA,WAAA,EAAA,MAAA;EACI,SAAA,MAAA,EANjC,MAMiC;CACM;AAAkB,KAJhE,2BAAA,GAIgE;;oBAH5B;;ECZpC,SAAA,IAAA,EAAA,OAAA;EA0BC,SAAA,OAAA,EDbmC,QCanC;;;oBDZuC;AElBpD,CAAA,GAAY;EA4BA,SAAA,IAAA,EAAY,iBAAA;EA0GZ,SAAA,OAAa,EFnHiC,kBEmHjC;CAAa;;;KDlI1B,2BAAA;;;;;IDHA,QAAA,EAAA,MAAiB;IAKjB,SAAA,EAAA,MAAkB;EASlB,CAAA,EAAA,GAAA,OAAA;CACoC;;;;;cCcnC,4CAA6C,0BAAwB;;;;;;KC9BtE,gBAAA;;;;KA4BA,YAAA;;EF3BA,SAAA,OAAA,EAAA,MAAiB;EAKjB,SAAA,KAAA,EAAA,MAAkB;AAS9B,CAAA,GAAY;EACoC,SAAA,IAAA,EAAA,kBAAA;EACA,SAAA,OAAA,EAAA,MAAA;EACI,SAAA,IAAA,EAAA,MAAA;CACM,GAAA;EAAkB,SAAA,IAAA,EAAA,gBAAA;;;;ACf5E,CAAA,GAAY;EA0BC,SAAA,IAAA,EAAA,oBAAA;;;;EC9BD,SAAA,KAAA,CAAA,EAAA,OAAgB;AA4B5B,CAAA,GAAY;EA0GA,SAAA,IAAA,EAAA,oBAAa;EAAa,SAAA,OAAA,EAAA,MAAA;EAAG,SAAA,QAAA,EAAA,MAAA;EAAV,SAAA,KAAA,CAAA,EAAA,OAAA;CAAM,GA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kFD,CAAA,MAAA,CAAA;EAMe,SAAA,MAAA,EgBvFhD,qBhBuFgD;CAO4B,EAAA,GgB7F3F,chB6F2F;;;KiBhKnF,oBAAA;;;;cAKC;;;YAGD,YAAY;MACpB,aAAa;;;;;;;;cCLJ;;;aAGA,YAAY;MACrB,YAAY;;ApBNhB;AAKA;AASA;;AAEgD,coBsDnC,oBpBtDmC,EAAA,CAAA,KAAA,EAAA;EACI,YAAA,EoBsDpC,GpBtDoC,CAAA,MAAA,CAAA;EACM,YAAA,EoBsD1C,GpBtD0C,CAAA,MAAA,CAAA;EAAkB,uBAAA,EoBuDjD,GpBvDiD,CAAA,MAAA,EoBuDrC,GpBvDqC,CAAA,MAAA,CAAA,CAAA;MoBwDxE"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/internal/graphql-system.ts","../src/errors.ts","../src/types.ts","../src/ast/types.ts","../src/ast/index.ts","../src/intermediate-module/types.ts","../src/intermediate-module/evaluation.ts","../src/artifact/types.ts","../src/discovery/fingerprint.ts","../src/discovery/types.ts","../src/scheduler/effects.ts","../src/schemas/artifact.ts","../src/service.ts","../src/cache/memory-cache.ts","../src/cache/entity-cache.ts","../src/discovery/cache.ts","../src/discovery/discoverer.ts","../src/discovery/entry-paths.ts","../src/artifact/builder.ts","../src/session/builder-session.ts","../src/session/dependency-validation.ts","../src/session/module-adjacency.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;KAUY,2BAAA;;;;;;IAAA,SAAA,EAAA,MAAA;EA0BC,CAAA,EAAA,GAAA,OAAA;;;;AC/Bb;AA4BA;AA0GY,cDvGC,iCCuGY,EAAA,CAAA,MAAA,EDvGiC,qBCuGjC,EAAA,GDvGyD,2BCuGzD;;;;;;KAtIb,gBAAA;;;;KA4BA,YAAA;;;EDvBA,SAAA,KAAA,EAAA,MAAA;AA0BZ,CAAA,GAAa;;;;AC/Bb,CAAA,GAAY;EA4BA,SAAA,IAAA,EAAY,gBAAA;EA0GZ,SAAA,OAAa,EAAA,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