@gigadrive/network-config 4.6.1 → 5.0.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,8 +1,8 @@
1
1
  import { Schema, Effect, Layer } from 'effect';
2
- import * as _effect_platform_FileSystem from '@effect/platform/FileSystem';
2
+ import { FileSystem, Path } from '@effect/platform';
3
3
  import * as _effect_platform_Path from '@effect/platform/Path';
4
+ import * as _effect_platform_FileSystem from '@effect/platform/FileSystem';
4
5
  import * as effect_Layer from 'effect/Layer';
5
- import { Path, FileSystem } from '@effect/platform';
6
6
 
7
7
  declare const StaticAssetHeadersSchema: Schema.filter<Schema.mutable<Schema.Record$<typeof Schema.String, Schema.Union<[Schema.filter<typeof Schema.String>, Schema.mutable<Schema.Array$<Schema.filter<typeof Schema.String>>>]>>>>;
8
8
  type StaticAssetHeaders = Schema.Schema.Type<typeof StaticAssetHeadersSchema>;
@@ -36,6 +36,21 @@ type StaticAssetManifest = StaticAssetManifestV1;
36
36
  */
37
37
  declare const parseStaticAssetManifest: (content: string) => StaticAssetManifest | undefined;
38
38
 
39
+ /**
40
+ * Lists every publishable file inside a static asset directory.
41
+ *
42
+ * Both the `assets:` key of a user config and a framework's `assetsDir` mean
43
+ * "publish this directory to the edge", and both resolve that declaration into
44
+ * concrete file paths through this walker.
45
+ *
46
+ * @param projectFolder - Absolute path to the project root
47
+ * @param assetsDir - Project-relative asset directory (e.g. `dist`, `.output/public`)
48
+ * @returns Sorted forward-slash paths relative to `assetsDir`. Empty when the
49
+ * directory is missing or is not a directory, so a project that never produced
50
+ * the expected build output fails config validation instead of the walker.
51
+ */
52
+ declare const collectAssetFiles: (projectFolder: string, assetsDir: string) => Effect.Effect<string[], never, FileSystem.FileSystem | Path.Path>;
53
+
39
54
  interface NormalizedImageLocalPattern {
40
55
  pathname?: string;
41
56
  search?: string;
@@ -940,7 +955,7 @@ declare const RawConfigReader_base: Effect.Service.Class<RawConfigReader, "RawCo
940
955
  disableVersionCheck?: boolean;
941
956
  } | undefined) => Effect.Effect<Record<string, unknown>, ConfigFileNotFoundError | ConfigFileEmptyError | ConfigFileParseError | ConfigModuleLoadError | ConfigVersionError, never>;
942
957
  readConfigFile: <T>(configFilePath: string) => Effect.Effect<T | null, ConfigFileEmptyError | ConfigFileParseError | ConfigModuleLoadError | ConfigVersionError, never>;
943
- }, never, ConfigModuleLoader | Path.Path | FileSystem.FileSystem>;
958
+ }, never, FileSystem.FileSystem | Path.Path | ConfigModuleLoader>;
944
959
  }>;
945
960
  declare class RawConfigReader extends RawConfigReader_base {
946
961
  }
@@ -985,7 +1000,7 @@ declare const V4ConfigParser_base: Effect.Service.Class<V4ConfigParser, "V4Confi
985
1000
  errors: never[];
986
1001
  warnings: never[];
987
1002
  routes: NormalizedConfigRoute[];
988
- }, FunctionConfigError, Path.Path | FileSystem.FileSystem>;
1003
+ }, FunctionConfigError, _effect_platform_FileSystem.FileSystem | _effect_platform_Path.Path>;
989
1004
  }, never, never>;
990
1005
  }>;
991
1006
  declare class V4ConfigParser extends V4ConfigParser_base {
@@ -993,8 +1008,8 @@ declare class V4ConfigParser extends V4ConfigParser_base {
993
1008
 
994
1009
  declare const VercelBuildOutputParser_base: Effect.Service.Class<VercelBuildOutputParser, "VercelBuildOutputParser", {
995
1010
  readonly effect: Effect.Effect<{
996
- parse: (parseResult: NormalizedConfig, projectFolder: string) => Effect.Effect<NormalizedConfig, ConfigFileEmptyError | ConfigFileParseError | ConfigModuleLoadError | ConfigVersionError, Path.Path | _effect_platform_FileSystem.FileSystem>;
997
- }, never, RawConfigReader | Path.Path>;
1011
+ parse: (parseResult: NormalizedConfig, projectFolder: string) => Effect.Effect<NormalizedConfig, ConfigFileEmptyError | ConfigFileParseError | ConfigModuleLoadError | ConfigVersionError, _effect_platform_FileSystem.FileSystem | Path.Path>;
1012
+ }, never, Path.Path | RawConfigReader>;
998
1013
  }>;
999
1014
  declare class VercelBuildOutputParser extends VercelBuildOutputParser_base {
1000
1015
  }
@@ -1029,7 +1044,7 @@ declare const parseConfigRaw: (filePath: string, projectFolder: string) => Effec
1029
1044
  errors: never[];
1030
1045
  warnings: never[];
1031
1046
  routes: NormalizedConfigRoute[];
1032
- }, ConfigFileNotFoundError | ConfigFileEmptyError | ConfigFileParseError | ConfigModuleLoadError | ConfigVersionError | ConfigSchemaValidationError | FunctionConfigError, RawConfigReader | _effect_platform_Path.Path | _effect_platform_FileSystem.FileSystem | SchemaValidator | V4ConfigParser>;
1047
+ }, ConfigFileNotFoundError | ConfigFileEmptyError | ConfigFileParseError | ConfigModuleLoadError | ConfigVersionError | ConfigSchemaValidationError | FunctionConfigError, _effect_platform_FileSystem.FileSystem | _effect_platform_Path.Path | RawConfigReader | SchemaValidator | V4ConfigParser>;
1033
1048
  /**
1034
1049
  * Parses a config file at the given path, validates it against the appropriate
1035
1050
  * JSON Schema, converts it to a NormalizedConfig, and applies post-processing.
@@ -1037,7 +1052,7 @@ declare const parseConfigRaw: (filePath: string, projectFolder: string) => Effec
1037
1052
  * @param filePath - Absolute path to the config file
1038
1053
  * @param projectFolder - Absolute path to the project root
1039
1054
  */
1040
- declare const parseConfig: (filePath: string, projectFolder: string) => Effect.Effect<NormalizedConfig, ConfigFileNotFoundError | ConfigFileEmptyError | ConfigFileParseError | ConfigModuleLoadError | ConfigVersionError | ConfigSchemaValidationError | FunctionConfigError, RawConfigReader | _effect_platform_Path.Path | _effect_platform_FileSystem.FileSystem | SchemaValidator | V4ConfigParser | VercelBuildOutputParser>;
1055
+ declare const parseConfig: (filePath: string, projectFolder: string) => Effect.Effect<NormalizedConfig, ConfigFileNotFoundError | ConfigFileEmptyError | ConfigFileParseError | ConfigModuleLoadError | ConfigVersionError | ConfigSchemaValidationError | FunctionConfigError, _effect_platform_FileSystem.FileSystem | _effect_platform_Path.Path | RawConfigReader | SchemaValidator | V4ConfigParser | VercelBuildOutputParser>;
1041
1056
  /**
1042
1057
  * Applies post-processing transformers to a NormalizedConfig:
1043
1058
  * - Vercel Build Output v3 (merges functions/routes from .vercel/output if present)
@@ -1048,7 +1063,7 @@ declare const parseConfig: (filePath: string, projectFolder: string) => Effect.E
1048
1063
  * @param projectFolder - Absolute path to the project root
1049
1064
  * @returns The post-processed NormalizedConfig
1050
1065
  */
1051
- declare const postProcessConfig: (config: NormalizedConfig, projectFolder: string) => Effect.Effect<NormalizedConfig, ConfigFileEmptyError | ConfigFileParseError | ConfigModuleLoadError | ConfigVersionError, _effect_platform_Path.Path | _effect_platform_FileSystem.FileSystem | VercelBuildOutputParser>;
1066
+ declare const postProcessConfig: (config: NormalizedConfig, projectFolder: string) => Effect.Effect<NormalizedConfig, ConfigFileEmptyError | ConfigFileParseError | ConfigModuleLoadError | ConfigVersionError, _effect_platform_FileSystem.FileSystem | _effect_platform_Path.Path | VercelBuildOutputParser>;
1052
1067
 
1053
1068
  interface ConfigV4 extends Config {
1054
1069
  version: 4;
@@ -1408,7 +1423,7 @@ declare const detectFramework: (projectFolder: string) => Effect.Effect<{
1408
1423
  framework: FrameworkDefinition;
1409
1424
  packageManager: PackageManager;
1410
1425
  config: NormalizedConfig;
1411
- }, ManifestReadError | ManifestParseError | FrameworkNotDetectedError, Path.Path | FileSystem.FileSystem>;
1426
+ }, ManifestReadError | ManifestParseError | FrameworkNotDetectedError, FileSystem.FileSystem | Path.Path>;
1412
1427
 
1413
1428
  /**
1414
1429
  * Detects the package manager by checking for lockfiles in the project folder.
@@ -1417,7 +1432,7 @@ declare const detectFramework: (projectFolder: string) => Effect.Effect<{
1417
1432
  * @param projectFolder - Absolute path to the project root
1418
1433
  * @returns The detected package manager
1419
1434
  */
1420
- declare const detectPackageManager: (projectFolder: string) => Effect.Effect<PackageManager, never, Path.Path | FileSystem.FileSystem>;
1435
+ declare const detectPackageManager: (projectFolder: string) => Effect.Effect<PackageManager, never, FileSystem.FileSystem | Path.Path>;
1421
1436
 
1422
1437
  /**
1423
1438
  * All supported framework definitions, sorted by priority descending.
@@ -1429,11 +1444,15 @@ declare const FRAMEWORK_DEFINITIONS: FrameworkDefinition[];
1429
1444
  * Generates a NormalizedConfig from a framework definition and detected package manager.
1430
1445
  * Prepends the install command and builds a complete deployment configuration.
1431
1446
  *
1447
+ * Runs after the customer build, so a framework's `assetsDir` is resolved
1448
+ * against real build output.
1449
+ *
1432
1450
  * @param framework - The detected framework definition
1433
1451
  * @param packageManager - The detected package manager
1452
+ * @param projectFolder - Absolute path to the project root, used to enumerate `assetsDir`
1434
1453
  * @returns A complete NormalizedConfig with framework defaults
1435
1454
  */
1436
- declare const generateConfig: (framework: FrameworkDefinition, packageManager: PackageManager, refinedDefaults?: FrameworkDefaultConfig | undefined) => Effect.Effect<NormalizedConfig, never, never>;
1455
+ declare const generateConfig: (framework: FrameworkDefinition, packageManager: PackageManager, projectFolder: string, refinedDefaults?: FrameworkDefaultConfig | undefined) => Effect.Effect<NormalizedConfig, never, _effect_platform_FileSystem.FileSystem | _effect_platform_Path.Path>;
1437
1456
 
1438
1457
  /**
1439
1458
  * Merges framework defaults with a user-provided config.
@@ -1468,7 +1487,7 @@ declare const mergeWithFrameworkDefaults: (userConfig: NormalizedConfig, framewo
1468
1487
  * @param language - The framework language to determine which manifest to read
1469
1488
  * @returns A set of dependency package names
1470
1489
  */
1471
- declare const readDependencies: (projectFolder: string, language: FrameworkLanguage) => Effect.Effect<Set<string>, ManifestReadError | ManifestParseError, Path.Path | FileSystem.FileSystem>;
1490
+ declare const readDependencies: (projectFolder: string, language: FrameworkLanguage) => Effect.Effect<Set<string>, ManifestReadError | ManifestParseError, FileSystem.FileSystem | Path.Path>;
1472
1491
 
1473
1492
  /**
1474
1493
  * Ensure a normalized config has no function files that are also defined as assets.
@@ -1478,6 +1497,6 @@ declare const readDependencies: (projectFolder: string, language: FrameworkLangu
1478
1497
  */
1479
1498
  declare const filterFunctionsFromAssets: (config: NormalizedConfig) => NormalizedConfig;
1480
1499
 
1481
- declare const NetworkConfigLive: Layer.Layer<ConfigModuleLoader | RawConfigReader | SchemaValidator | V4ConfigParser | VercelBuildOutputParser, never, _effect_platform_Path.Path | _effect_platform_FileSystem.FileSystem>;
1500
+ declare const NetworkConfigLive: Layer.Layer<ConfigModuleLoader | RawConfigReader | SchemaValidator | V4ConfigParser | VercelBuildOutputParser, never, _effect_platform_FileSystem.FileSystem | _effect_platform_Path.Path>;
1482
1501
 
1483
- export { ALLOWED_CONFIG_NAMES, AVAILABLE_REGIONS, AVAILABLE_RUNTIMES, type Config, ConfigFileEmptyError, ConfigFileNotFoundError, ConfigFileParseError, ConfigModuleLoadError, ConfigModuleLoader, ConfigSchemaValidationError, type ConfigV4, type ConfigV4FunctionSettings, type ConfigV4Service, type ConfigV4ServicePostgres, type ConfigV4ServiceRedis, type ConfigV4ServiceStorage, type ConfigV4Services, type ConfigV4StorageBucket, ConfigVersionError, DEFAULT_FUNCTION_DURATION_SECONDS, type DetectionResult, FRAMEWORK_DEFINITIONS, type FilePathMap, type FrameworkDefaultConfig, type FrameworkDefinition, type FrameworkDetectionItem, type FrameworkLanguage, FrameworkNotDetectedError, FunctionConfigError, type GigadriveNextBuildManifest, GigadriveNextBuildManifestSchema, type GigadriveNextBuildManifestV1, GigadriveNextBuildManifestV1Schema, type GigadriveNextBuildManifestV2, type GigadriveNextBuildManifestV2Export, GigadriveNextBuildManifestV2ExportSchema, type GigadriveNextBuildManifestV2Standalone, GigadriveNextBuildManifestV2StandaloneSchema, type GigadriveNextMiddlewareDescriptor, GigadriveNextMiddlewareDescriptorSchema, type GigadriveNextMiddlewareMatcher, GigadriveNextMiddlewareMatcherSchema, type GigadriveNextPrerenderManifestV1, GigadriveNextPrerenderManifestV1Schema, type GigadriveNextPrerenderOutput, GigadriveNextPrerenderOutputSchema, type GigadriveNextPrerenderSeedMethods, GigadriveNextPrerenderSeedMethodsSchema, type GigadriveNextRouteCondition, GigadriveNextRouteConditionSchema, type GigadriveNextServerDescriptor, GigadriveNextServerDescriptorSchema, type GigadriveNextStaticAssetPrefix, GigadriveNextStaticAssetPrefixSchema, type JsonValue, MAX_FUNCTION_DURATION_SECONDS, ManifestNotFoundError, ManifestParseError, ManifestReadError, type NeonAWSRegion, NetworkConfigLive, type NormalizedConfig, type NormalizedConfigEntrypoint, type NormalizedConfigRoute, type NormalizedConfigRouteHandler, type NormalizedConfigRouteMatchRequirements, type NormalizedConfigRouteMethod, type NormalizedConfigService, type NormalizedConfigServiceDefinition, type NormalizedConfigServicePostgres, type NormalizedConfigServiceRedis, type NormalizedConfigServiceStorage, type NormalizedConfigServiceType, type NormalizedConfigStorageBucket, type NormalizedFramework, type NormalizedImageFit, type NormalizedImageFormat, type NormalizedImageLocalPattern, type NormalizedImagePolicy, type NormalizedImageRemotePattern, type NormalizedImageVariant, type NormalizedNextjsFramework, type NormalizedSharedArtifact, type PackageManager, RawConfigReader, type Region, type Runtime, SchemaValidator, type StaticAssetHeaders, StaticAssetHeadersSchema, type StaticAssetManifest, type StaticAssetManifestEntry, StaticAssetManifestEntrySchema, type StaticAssetManifestV1, StaticAssetManifestV1Schema, type UpstashAWSRegion, V4ConfigParser, VercelBuildOutputParser, defineConfig, detectFramework, detectPackageManager, filterFunctionsFromAssets, generateConfig, getFunctionSettings, mergeWithFrameworkDefaults, parseConfig, parseConfigRaw, parseGigadriveNextBuildManifest, parseGigadriveNextPrerenderManifest, parseStaticAssetManifest, postProcessConfig, readDependencies };
1502
+ export { ALLOWED_CONFIG_NAMES, AVAILABLE_REGIONS, AVAILABLE_RUNTIMES, type Config, ConfigFileEmptyError, ConfigFileNotFoundError, ConfigFileParseError, ConfigModuleLoadError, ConfigModuleLoader, ConfigSchemaValidationError, type ConfigV4, type ConfigV4FunctionSettings, type ConfigV4Service, type ConfigV4ServicePostgres, type ConfigV4ServiceRedis, type ConfigV4ServiceStorage, type ConfigV4Services, type ConfigV4StorageBucket, ConfigVersionError, DEFAULT_FUNCTION_DURATION_SECONDS, type DetectionResult, FRAMEWORK_DEFINITIONS, type FilePathMap, type FrameworkDefaultConfig, type FrameworkDefinition, type FrameworkDetectionItem, type FrameworkLanguage, FrameworkNotDetectedError, FunctionConfigError, type GigadriveNextBuildManifest, GigadriveNextBuildManifestSchema, type GigadriveNextBuildManifestV1, GigadriveNextBuildManifestV1Schema, type GigadriveNextBuildManifestV2, type GigadriveNextBuildManifestV2Export, GigadriveNextBuildManifestV2ExportSchema, type GigadriveNextBuildManifestV2Standalone, GigadriveNextBuildManifestV2StandaloneSchema, type GigadriveNextMiddlewareDescriptor, GigadriveNextMiddlewareDescriptorSchema, type GigadriveNextMiddlewareMatcher, GigadriveNextMiddlewareMatcherSchema, type GigadriveNextPrerenderManifestV1, GigadriveNextPrerenderManifestV1Schema, type GigadriveNextPrerenderOutput, GigadriveNextPrerenderOutputSchema, type GigadriveNextPrerenderSeedMethods, GigadriveNextPrerenderSeedMethodsSchema, type GigadriveNextRouteCondition, GigadriveNextRouteConditionSchema, type GigadriveNextServerDescriptor, GigadriveNextServerDescriptorSchema, type GigadriveNextStaticAssetPrefix, GigadriveNextStaticAssetPrefixSchema, type JsonValue, MAX_FUNCTION_DURATION_SECONDS, ManifestNotFoundError, ManifestParseError, ManifestReadError, type NeonAWSRegion, NetworkConfigLive, type NormalizedConfig, type NormalizedConfigEntrypoint, type NormalizedConfigRoute, type NormalizedConfigRouteHandler, type NormalizedConfigRouteMatchRequirements, type NormalizedConfigRouteMethod, type NormalizedConfigService, type NormalizedConfigServiceDefinition, type NormalizedConfigServicePostgres, type NormalizedConfigServiceRedis, type NormalizedConfigServiceStorage, type NormalizedConfigServiceType, type NormalizedConfigStorageBucket, type NormalizedFramework, type NormalizedImageFit, type NormalizedImageFormat, type NormalizedImageLocalPattern, type NormalizedImagePolicy, type NormalizedImageRemotePattern, type NormalizedImageVariant, type NormalizedNextjsFramework, type NormalizedSharedArtifact, type PackageManager, RawConfigReader, type Region, type Runtime, SchemaValidator, type StaticAssetHeaders, StaticAssetHeadersSchema, type StaticAssetManifest, type StaticAssetManifestEntry, StaticAssetManifestEntrySchema, type StaticAssetManifestV1, StaticAssetManifestV1Schema, type UpstashAWSRegion, V4ConfigParser, VercelBuildOutputParser, collectAssetFiles, defineConfig, detectFramework, detectPackageManager, filterFunctionsFromAssets, generateConfig, getFunctionSettings, mergeWithFrameworkDefaults, parseConfig, parseConfigRaw, parseGigadriveNextBuildManifest, parseGigadriveNextPrerenderManifest, parseStaticAssetManifest, postProcessConfig, readDependencies };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Schema, Effect, Layer } from 'effect';
2
- import * as _effect_platform_FileSystem from '@effect/platform/FileSystem';
2
+ import { FileSystem, Path } from '@effect/platform';
3
3
  import * as _effect_platform_Path from '@effect/platform/Path';
4
+ import * as _effect_platform_FileSystem from '@effect/platform/FileSystem';
4
5
  import * as effect_Layer from 'effect/Layer';
5
- import { Path, FileSystem } from '@effect/platform';
6
6
 
7
7
  declare const StaticAssetHeadersSchema: Schema.filter<Schema.mutable<Schema.Record$<typeof Schema.String, Schema.Union<[Schema.filter<typeof Schema.String>, Schema.mutable<Schema.Array$<Schema.filter<typeof Schema.String>>>]>>>>;
8
8
  type StaticAssetHeaders = Schema.Schema.Type<typeof StaticAssetHeadersSchema>;
@@ -36,6 +36,21 @@ type StaticAssetManifest = StaticAssetManifestV1;
36
36
  */
37
37
  declare const parseStaticAssetManifest: (content: string) => StaticAssetManifest | undefined;
38
38
 
39
+ /**
40
+ * Lists every publishable file inside a static asset directory.
41
+ *
42
+ * Both the `assets:` key of a user config and a framework's `assetsDir` mean
43
+ * "publish this directory to the edge", and both resolve that declaration into
44
+ * concrete file paths through this walker.
45
+ *
46
+ * @param projectFolder - Absolute path to the project root
47
+ * @param assetsDir - Project-relative asset directory (e.g. `dist`, `.output/public`)
48
+ * @returns Sorted forward-slash paths relative to `assetsDir`. Empty when the
49
+ * directory is missing or is not a directory, so a project that never produced
50
+ * the expected build output fails config validation instead of the walker.
51
+ */
52
+ declare const collectAssetFiles: (projectFolder: string, assetsDir: string) => Effect.Effect<string[], never, FileSystem.FileSystem | Path.Path>;
53
+
39
54
  interface NormalizedImageLocalPattern {
40
55
  pathname?: string;
41
56
  search?: string;
@@ -940,7 +955,7 @@ declare const RawConfigReader_base: Effect.Service.Class<RawConfigReader, "RawCo
940
955
  disableVersionCheck?: boolean;
941
956
  } | undefined) => Effect.Effect<Record<string, unknown>, ConfigFileNotFoundError | ConfigFileEmptyError | ConfigFileParseError | ConfigModuleLoadError | ConfigVersionError, never>;
942
957
  readConfigFile: <T>(configFilePath: string) => Effect.Effect<T | null, ConfigFileEmptyError | ConfigFileParseError | ConfigModuleLoadError | ConfigVersionError, never>;
943
- }, never, ConfigModuleLoader | Path.Path | FileSystem.FileSystem>;
958
+ }, never, FileSystem.FileSystem | Path.Path | ConfigModuleLoader>;
944
959
  }>;
945
960
  declare class RawConfigReader extends RawConfigReader_base {
946
961
  }
@@ -985,7 +1000,7 @@ declare const V4ConfigParser_base: Effect.Service.Class<V4ConfigParser, "V4Confi
985
1000
  errors: never[];
986
1001
  warnings: never[];
987
1002
  routes: NormalizedConfigRoute[];
988
- }, FunctionConfigError, Path.Path | FileSystem.FileSystem>;
1003
+ }, FunctionConfigError, _effect_platform_FileSystem.FileSystem | _effect_platform_Path.Path>;
989
1004
  }, never, never>;
990
1005
  }>;
991
1006
  declare class V4ConfigParser extends V4ConfigParser_base {
@@ -993,8 +1008,8 @@ declare class V4ConfigParser extends V4ConfigParser_base {
993
1008
 
994
1009
  declare const VercelBuildOutputParser_base: Effect.Service.Class<VercelBuildOutputParser, "VercelBuildOutputParser", {
995
1010
  readonly effect: Effect.Effect<{
996
- parse: (parseResult: NormalizedConfig, projectFolder: string) => Effect.Effect<NormalizedConfig, ConfigFileEmptyError | ConfigFileParseError | ConfigModuleLoadError | ConfigVersionError, Path.Path | _effect_platform_FileSystem.FileSystem>;
997
- }, never, RawConfigReader | Path.Path>;
1011
+ parse: (parseResult: NormalizedConfig, projectFolder: string) => Effect.Effect<NormalizedConfig, ConfigFileEmptyError | ConfigFileParseError | ConfigModuleLoadError | ConfigVersionError, _effect_platform_FileSystem.FileSystem | Path.Path>;
1012
+ }, never, Path.Path | RawConfigReader>;
998
1013
  }>;
999
1014
  declare class VercelBuildOutputParser extends VercelBuildOutputParser_base {
1000
1015
  }
@@ -1029,7 +1044,7 @@ declare const parseConfigRaw: (filePath: string, projectFolder: string) => Effec
1029
1044
  errors: never[];
1030
1045
  warnings: never[];
1031
1046
  routes: NormalizedConfigRoute[];
1032
- }, ConfigFileNotFoundError | ConfigFileEmptyError | ConfigFileParseError | ConfigModuleLoadError | ConfigVersionError | ConfigSchemaValidationError | FunctionConfigError, RawConfigReader | _effect_platform_Path.Path | _effect_platform_FileSystem.FileSystem | SchemaValidator | V4ConfigParser>;
1047
+ }, ConfigFileNotFoundError | ConfigFileEmptyError | ConfigFileParseError | ConfigModuleLoadError | ConfigVersionError | ConfigSchemaValidationError | FunctionConfigError, _effect_platform_FileSystem.FileSystem | _effect_platform_Path.Path | RawConfigReader | SchemaValidator | V4ConfigParser>;
1033
1048
  /**
1034
1049
  * Parses a config file at the given path, validates it against the appropriate
1035
1050
  * JSON Schema, converts it to a NormalizedConfig, and applies post-processing.
@@ -1037,7 +1052,7 @@ declare const parseConfigRaw: (filePath: string, projectFolder: string) => Effec
1037
1052
  * @param filePath - Absolute path to the config file
1038
1053
  * @param projectFolder - Absolute path to the project root
1039
1054
  */
1040
- declare const parseConfig: (filePath: string, projectFolder: string) => Effect.Effect<NormalizedConfig, ConfigFileNotFoundError | ConfigFileEmptyError | ConfigFileParseError | ConfigModuleLoadError | ConfigVersionError | ConfigSchemaValidationError | FunctionConfigError, RawConfigReader | _effect_platform_Path.Path | _effect_platform_FileSystem.FileSystem | SchemaValidator | V4ConfigParser | VercelBuildOutputParser>;
1055
+ declare const parseConfig: (filePath: string, projectFolder: string) => Effect.Effect<NormalizedConfig, ConfigFileNotFoundError | ConfigFileEmptyError | ConfigFileParseError | ConfigModuleLoadError | ConfigVersionError | ConfigSchemaValidationError | FunctionConfigError, _effect_platform_FileSystem.FileSystem | _effect_platform_Path.Path | RawConfigReader | SchemaValidator | V4ConfigParser | VercelBuildOutputParser>;
1041
1056
  /**
1042
1057
  * Applies post-processing transformers to a NormalizedConfig:
1043
1058
  * - Vercel Build Output v3 (merges functions/routes from .vercel/output if present)
@@ -1048,7 +1063,7 @@ declare const parseConfig: (filePath: string, projectFolder: string) => Effect.E
1048
1063
  * @param projectFolder - Absolute path to the project root
1049
1064
  * @returns The post-processed NormalizedConfig
1050
1065
  */
1051
- declare const postProcessConfig: (config: NormalizedConfig, projectFolder: string) => Effect.Effect<NormalizedConfig, ConfigFileEmptyError | ConfigFileParseError | ConfigModuleLoadError | ConfigVersionError, _effect_platform_Path.Path | _effect_platform_FileSystem.FileSystem | VercelBuildOutputParser>;
1066
+ declare const postProcessConfig: (config: NormalizedConfig, projectFolder: string) => Effect.Effect<NormalizedConfig, ConfigFileEmptyError | ConfigFileParseError | ConfigModuleLoadError | ConfigVersionError, _effect_platform_FileSystem.FileSystem | _effect_platform_Path.Path | VercelBuildOutputParser>;
1052
1067
 
1053
1068
  interface ConfigV4 extends Config {
1054
1069
  version: 4;
@@ -1408,7 +1423,7 @@ declare const detectFramework: (projectFolder: string) => Effect.Effect<{
1408
1423
  framework: FrameworkDefinition;
1409
1424
  packageManager: PackageManager;
1410
1425
  config: NormalizedConfig;
1411
- }, ManifestReadError | ManifestParseError | FrameworkNotDetectedError, Path.Path | FileSystem.FileSystem>;
1426
+ }, ManifestReadError | ManifestParseError | FrameworkNotDetectedError, FileSystem.FileSystem | Path.Path>;
1412
1427
 
1413
1428
  /**
1414
1429
  * Detects the package manager by checking for lockfiles in the project folder.
@@ -1417,7 +1432,7 @@ declare const detectFramework: (projectFolder: string) => Effect.Effect<{
1417
1432
  * @param projectFolder - Absolute path to the project root
1418
1433
  * @returns The detected package manager
1419
1434
  */
1420
- declare const detectPackageManager: (projectFolder: string) => Effect.Effect<PackageManager, never, Path.Path | FileSystem.FileSystem>;
1435
+ declare const detectPackageManager: (projectFolder: string) => Effect.Effect<PackageManager, never, FileSystem.FileSystem | Path.Path>;
1421
1436
 
1422
1437
  /**
1423
1438
  * All supported framework definitions, sorted by priority descending.
@@ -1429,11 +1444,15 @@ declare const FRAMEWORK_DEFINITIONS: FrameworkDefinition[];
1429
1444
  * Generates a NormalizedConfig from a framework definition and detected package manager.
1430
1445
  * Prepends the install command and builds a complete deployment configuration.
1431
1446
  *
1447
+ * Runs after the customer build, so a framework's `assetsDir` is resolved
1448
+ * against real build output.
1449
+ *
1432
1450
  * @param framework - The detected framework definition
1433
1451
  * @param packageManager - The detected package manager
1452
+ * @param projectFolder - Absolute path to the project root, used to enumerate `assetsDir`
1434
1453
  * @returns A complete NormalizedConfig with framework defaults
1435
1454
  */
1436
- declare const generateConfig: (framework: FrameworkDefinition, packageManager: PackageManager, refinedDefaults?: FrameworkDefaultConfig | undefined) => Effect.Effect<NormalizedConfig, never, never>;
1455
+ declare const generateConfig: (framework: FrameworkDefinition, packageManager: PackageManager, projectFolder: string, refinedDefaults?: FrameworkDefaultConfig | undefined) => Effect.Effect<NormalizedConfig, never, _effect_platform_FileSystem.FileSystem | _effect_platform_Path.Path>;
1437
1456
 
1438
1457
  /**
1439
1458
  * Merges framework defaults with a user-provided config.
@@ -1468,7 +1487,7 @@ declare const mergeWithFrameworkDefaults: (userConfig: NormalizedConfig, framewo
1468
1487
  * @param language - The framework language to determine which manifest to read
1469
1488
  * @returns A set of dependency package names
1470
1489
  */
1471
- declare const readDependencies: (projectFolder: string, language: FrameworkLanguage) => Effect.Effect<Set<string>, ManifestReadError | ManifestParseError, Path.Path | FileSystem.FileSystem>;
1490
+ declare const readDependencies: (projectFolder: string, language: FrameworkLanguage) => Effect.Effect<Set<string>, ManifestReadError | ManifestParseError, FileSystem.FileSystem | Path.Path>;
1472
1491
 
1473
1492
  /**
1474
1493
  * Ensure a normalized config has no function files that are also defined as assets.
@@ -1478,6 +1497,6 @@ declare const readDependencies: (projectFolder: string, language: FrameworkLangu
1478
1497
  */
1479
1498
  declare const filterFunctionsFromAssets: (config: NormalizedConfig) => NormalizedConfig;
1480
1499
 
1481
- declare const NetworkConfigLive: Layer.Layer<ConfigModuleLoader | RawConfigReader | SchemaValidator | V4ConfigParser | VercelBuildOutputParser, never, _effect_platform_Path.Path | _effect_platform_FileSystem.FileSystem>;
1500
+ declare const NetworkConfigLive: Layer.Layer<ConfigModuleLoader | RawConfigReader | SchemaValidator | V4ConfigParser | VercelBuildOutputParser, never, _effect_platform_FileSystem.FileSystem | _effect_platform_Path.Path>;
1482
1501
 
1483
- export { ALLOWED_CONFIG_NAMES, AVAILABLE_REGIONS, AVAILABLE_RUNTIMES, type Config, ConfigFileEmptyError, ConfigFileNotFoundError, ConfigFileParseError, ConfigModuleLoadError, ConfigModuleLoader, ConfigSchemaValidationError, type ConfigV4, type ConfigV4FunctionSettings, type ConfigV4Service, type ConfigV4ServicePostgres, type ConfigV4ServiceRedis, type ConfigV4ServiceStorage, type ConfigV4Services, type ConfigV4StorageBucket, ConfigVersionError, DEFAULT_FUNCTION_DURATION_SECONDS, type DetectionResult, FRAMEWORK_DEFINITIONS, type FilePathMap, type FrameworkDefaultConfig, type FrameworkDefinition, type FrameworkDetectionItem, type FrameworkLanguage, FrameworkNotDetectedError, FunctionConfigError, type GigadriveNextBuildManifest, GigadriveNextBuildManifestSchema, type GigadriveNextBuildManifestV1, GigadriveNextBuildManifestV1Schema, type GigadriveNextBuildManifestV2, type GigadriveNextBuildManifestV2Export, GigadriveNextBuildManifestV2ExportSchema, type GigadriveNextBuildManifestV2Standalone, GigadriveNextBuildManifestV2StandaloneSchema, type GigadriveNextMiddlewareDescriptor, GigadriveNextMiddlewareDescriptorSchema, type GigadriveNextMiddlewareMatcher, GigadriveNextMiddlewareMatcherSchema, type GigadriveNextPrerenderManifestV1, GigadriveNextPrerenderManifestV1Schema, type GigadriveNextPrerenderOutput, GigadriveNextPrerenderOutputSchema, type GigadriveNextPrerenderSeedMethods, GigadriveNextPrerenderSeedMethodsSchema, type GigadriveNextRouteCondition, GigadriveNextRouteConditionSchema, type GigadriveNextServerDescriptor, GigadriveNextServerDescriptorSchema, type GigadriveNextStaticAssetPrefix, GigadriveNextStaticAssetPrefixSchema, type JsonValue, MAX_FUNCTION_DURATION_SECONDS, ManifestNotFoundError, ManifestParseError, ManifestReadError, type NeonAWSRegion, NetworkConfigLive, type NormalizedConfig, type NormalizedConfigEntrypoint, type NormalizedConfigRoute, type NormalizedConfigRouteHandler, type NormalizedConfigRouteMatchRequirements, type NormalizedConfigRouteMethod, type NormalizedConfigService, type NormalizedConfigServiceDefinition, type NormalizedConfigServicePostgres, type NormalizedConfigServiceRedis, type NormalizedConfigServiceStorage, type NormalizedConfigServiceType, type NormalizedConfigStorageBucket, type NormalizedFramework, type NormalizedImageFit, type NormalizedImageFormat, type NormalizedImageLocalPattern, type NormalizedImagePolicy, type NormalizedImageRemotePattern, type NormalizedImageVariant, type NormalizedNextjsFramework, type NormalizedSharedArtifact, type PackageManager, RawConfigReader, type Region, type Runtime, SchemaValidator, type StaticAssetHeaders, StaticAssetHeadersSchema, type StaticAssetManifest, type StaticAssetManifestEntry, StaticAssetManifestEntrySchema, type StaticAssetManifestV1, StaticAssetManifestV1Schema, type UpstashAWSRegion, V4ConfigParser, VercelBuildOutputParser, defineConfig, detectFramework, detectPackageManager, filterFunctionsFromAssets, generateConfig, getFunctionSettings, mergeWithFrameworkDefaults, parseConfig, parseConfigRaw, parseGigadriveNextBuildManifest, parseGigadriveNextPrerenderManifest, parseStaticAssetManifest, postProcessConfig, readDependencies };
1502
+ export { ALLOWED_CONFIG_NAMES, AVAILABLE_REGIONS, AVAILABLE_RUNTIMES, type Config, ConfigFileEmptyError, ConfigFileNotFoundError, ConfigFileParseError, ConfigModuleLoadError, ConfigModuleLoader, ConfigSchemaValidationError, type ConfigV4, type ConfigV4FunctionSettings, type ConfigV4Service, type ConfigV4ServicePostgres, type ConfigV4ServiceRedis, type ConfigV4ServiceStorage, type ConfigV4Services, type ConfigV4StorageBucket, ConfigVersionError, DEFAULT_FUNCTION_DURATION_SECONDS, type DetectionResult, FRAMEWORK_DEFINITIONS, type FilePathMap, type FrameworkDefaultConfig, type FrameworkDefinition, type FrameworkDetectionItem, type FrameworkLanguage, FrameworkNotDetectedError, FunctionConfigError, type GigadriveNextBuildManifest, GigadriveNextBuildManifestSchema, type GigadriveNextBuildManifestV1, GigadriveNextBuildManifestV1Schema, type GigadriveNextBuildManifestV2, type GigadriveNextBuildManifestV2Export, GigadriveNextBuildManifestV2ExportSchema, type GigadriveNextBuildManifestV2Standalone, GigadriveNextBuildManifestV2StandaloneSchema, type GigadriveNextMiddlewareDescriptor, GigadriveNextMiddlewareDescriptorSchema, type GigadriveNextMiddlewareMatcher, GigadriveNextMiddlewareMatcherSchema, type GigadriveNextPrerenderManifestV1, GigadriveNextPrerenderManifestV1Schema, type GigadriveNextPrerenderOutput, GigadriveNextPrerenderOutputSchema, type GigadriveNextPrerenderSeedMethods, GigadriveNextPrerenderSeedMethodsSchema, type GigadriveNextRouteCondition, GigadriveNextRouteConditionSchema, type GigadriveNextServerDescriptor, GigadriveNextServerDescriptorSchema, type GigadriveNextStaticAssetPrefix, GigadriveNextStaticAssetPrefixSchema, type JsonValue, MAX_FUNCTION_DURATION_SECONDS, ManifestNotFoundError, ManifestParseError, ManifestReadError, type NeonAWSRegion, NetworkConfigLive, type NormalizedConfig, type NormalizedConfigEntrypoint, type NormalizedConfigRoute, type NormalizedConfigRouteHandler, type NormalizedConfigRouteMatchRequirements, type NormalizedConfigRouteMethod, type NormalizedConfigService, type NormalizedConfigServiceDefinition, type NormalizedConfigServicePostgres, type NormalizedConfigServiceRedis, type NormalizedConfigServiceStorage, type NormalizedConfigServiceType, type NormalizedConfigStorageBucket, type NormalizedFramework, type NormalizedImageFit, type NormalizedImageFormat, type NormalizedImageLocalPattern, type NormalizedImagePolicy, type NormalizedImageRemotePattern, type NormalizedImageVariant, type NormalizedNextjsFramework, type NormalizedSharedArtifact, type PackageManager, RawConfigReader, type Region, type Runtime, SchemaValidator, type StaticAssetHeaders, StaticAssetHeadersSchema, type StaticAssetManifest, type StaticAssetManifestEntry, StaticAssetManifestEntrySchema, type StaticAssetManifestV1, StaticAssetManifestV1Schema, type UpstashAWSRegion, V4ConfigParser, VercelBuildOutputParser, collectAssetFiles, defineConfig, detectFramework, detectPackageManager, filterFunctionsFromAssets, generateConfig, getFunctionSettings, mergeWithFrameworkDefaults, parseConfig, parseConfigRaw, parseGigadriveNextBuildManifest, parseGigadriveNextPrerenderManifest, parseStaticAssetManifest, postProcessConfig, readDependencies };