@webiny/project 0.0.0-unstable.a4f3e4ea8b → 0.0.0-unstable.a85ef555b2

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 (230) hide show
  1. package/ProjectSdk.d.ts +6 -5
  2. package/ProjectSdk.js +10 -6
  3. package/ProjectSdk.js.map +1 -1
  4. package/abstractions/features/DeployApp.d.ts +2 -2
  5. package/abstractions/features/DeployApp.js.map +1 -1
  6. package/abstractions/features/DestroyApp.d.ts +2 -2
  7. package/abstractions/features/DestroyApp.js.map +1 -1
  8. package/abstractions/features/GetAppOutput.d.ts +2 -2
  9. package/abstractions/features/GetAppOutput.js.map +1 -1
  10. package/abstractions/features/GetAppStackOutput.d.ts +3 -2
  11. package/abstractions/features/GetAppStackOutput.js.map +1 -1
  12. package/abstractions/features/RefreshApp.d.ts +2 -2
  13. package/abstractions/features/RefreshApp.js.map +1 -1
  14. package/abstractions/features/RunPulumiCommand.d.ts +2 -2
  15. package/abstractions/features/RunPulumiCommand.js.map +1 -1
  16. package/abstractions/features/Serve.d.ts +27 -0
  17. package/abstractions/features/Serve.js +5 -0
  18. package/abstractions/features/Serve.js.map +1 -0
  19. package/abstractions/features/Watch.d.ts +10 -0
  20. package/abstractions/features/Watch.js.map +1 -1
  21. package/abstractions/features/index.d.ts +1 -0
  22. package/abstractions/features/index.js +1 -0
  23. package/components/FeatureFlag.d.ts +43 -0
  24. package/components/FeatureFlag.js +60 -0
  25. package/components/FeatureFlag.js.map +1 -0
  26. package/createProjectSdkContainer.d.ts +1 -1
  27. package/createProjectSdkContainer.js +28 -41
  28. package/createProjectSdkContainer.js.map +1 -1
  29. package/decorators/DestroyAppClearStackOutputCache.d.ts +1 -1
  30. package/decorators/GetFeatureFlagsWithLicense.d.ts +0 -1
  31. package/decorators/GetFeatureFlagsWithLicense.js +28 -20
  32. package/decorators/GetFeatureFlagsWithLicense.js.map +1 -1
  33. package/extensions/AdminApiUrl.d.ts +10 -0
  34. package/extensions/AdminApiUrl.js +21 -0
  35. package/extensions/AdminApiUrl.js.map +1 -0
  36. package/extensions/AdminExtension.d.ts +1 -1
  37. package/extensions/AdminExtension.js +3 -3
  38. package/extensions/AdminExtension.js.map +1 -1
  39. package/extensions/AdminWebsocketsUrl.d.ts +12 -0
  40. package/extensions/AdminWebsocketsUrl.js +21 -0
  41. package/extensions/AdminWebsocketsUrl.js.map +1 -0
  42. package/extensions/ApiBuildParam.js +6 -4
  43. package/extensions/ApiBuildParam.js.map +1 -1
  44. package/extensions/ApiExtension.d.ts +1 -1
  45. package/extensions/ApiExtension.js +7 -5
  46. package/extensions/ApiExtension.js.map +1 -1
  47. package/extensions/BugReporter.d.ts +6 -0
  48. package/extensions/BugReporter.js +33 -0
  49. package/extensions/BugReporter.js.map +1 -0
  50. package/extensions/FeatureFlags.d.ts +22 -17
  51. package/extensions/FeatureFlags.js +23 -8
  52. package/extensions/FeatureFlags.js.map +1 -1
  53. package/extensions/Project/SetAdminAppEnvVarsBeforeBuild.js +1 -0
  54. package/extensions/Project/SetAdminAppEnvVarsBeforeBuild.js.map +1 -1
  55. package/extensions/Project/SetAdminAppEnvVarsBeforeWatch.js +1 -0
  56. package/extensions/Project/SetAdminAppEnvVarsBeforeWatch.js.map +1 -1
  57. package/extensions/Project/ShowConfigChangeInfoBeforeAdminWatch.js +2 -1
  58. package/extensions/Project/ShowConfigChangeInfoBeforeAdminWatch.js.map +1 -1
  59. package/extensions/Project/ShowConfigChangeInfoBeforeApiWatch.js +2 -1
  60. package/extensions/Project/ShowConfigChangeInfoBeforeApiWatch.js.map +1 -1
  61. package/extensions/Project/WcpInjectTelemetryClientAfterBuild.js +2 -1
  62. package/extensions/Project/WcpInjectTelemetryClientAfterBuild.js.map +1 -1
  63. package/extensions/Project/showConfigChangeNotice.d.ts +7 -0
  64. package/extensions/Project/showConfigChangeNotice.js +9 -0
  65. package/extensions/Project/showConfigChangeNotice.js.map +1 -0
  66. package/extensions/Project.js +1 -17
  67. package/extensions/Project.js.map +1 -1
  68. package/extensions/hasDefaultExport.d.ts +2 -0
  69. package/extensions/hasDefaultExport.js +17 -0
  70. package/extensions/hasDefaultExport.js.map +1 -0
  71. package/extensions/index.d.ts +67 -35
  72. package/extensions/index.js +12 -2
  73. package/extensions/index.js.map +1 -1
  74. package/extensions/infra/Encryption.d.ts +10 -0
  75. package/extensions/infra/Encryption.js +36 -0
  76. package/extensions/infra/Encryption.js.map +1 -0
  77. package/extensions/infra/Hashing.d.ts +5 -0
  78. package/extensions/infra/Hashing.js +27 -0
  79. package/extensions/infra/Hashing.js.map +1 -0
  80. package/features/DestroyApp/DestroyApp.d.ts +1 -1
  81. package/features/GetAppOutput/GetAppOutput.d.ts +1 -1
  82. package/features/RefreshApp/RefreshApp.d.ts +1 -1
  83. package/features/RunPulumiCommand/RunPulumiCommand.d.ts +1 -1
  84. package/features/Serve/Serve.d.ts +10 -0
  85. package/features/Serve/Serve.js +15 -0
  86. package/features/Serve/Serve.js.map +1 -0
  87. package/features/Serve/index.d.ts +1 -0
  88. package/features/Serve/index.js +1 -0
  89. package/features/Watch/Watch.d.ts +3 -16
  90. package/features/Watch/Watch.js +4 -86
  91. package/features/Watch/Watch.js.map +1 -1
  92. package/features/Watch/watchers/ServersWatcher.d.ts +36 -0
  93. package/features/Watch/watchers/ServersWatcher.js +38 -0
  94. package/features/Watch/watchers/ServersWatcher.js.map +1 -0
  95. package/features/Watch/watchers/worker.js +3 -0
  96. package/features/Watch/watchers/worker.js.map +1 -1
  97. package/features/index.d.ts +1 -0
  98. package/features/index.js +1 -0
  99. package/index.d.ts +3 -1
  100. package/index.js +3 -1
  101. package/index.js.map +1 -1
  102. package/package.json +25 -25
  103. package/services/BuildAppWorkspaceService/BuildAppWorkspaceService.d.ts +2 -3
  104. package/services/BuildAppWorkspaceService/BuildAppWorkspaceService.js +11 -44
  105. package/services/BuildAppWorkspaceService/BuildAppWorkspaceService.js.map +1 -1
  106. package/services/BuildProjectWorkspaceService/BuildProjectWorkspaceService.js +4 -6
  107. package/services/BuildProjectWorkspaceService/BuildProjectWorkspaceService.js.map +1 -1
  108. package/services/GetProjectConfigService/ConfigRenderErrorBoundary.d.ts +15 -0
  109. package/services/GetProjectConfigService/ConfigRenderErrorBoundary.js +23 -0
  110. package/services/GetProjectConfigService/ConfigRenderErrorBoundary.js.map +1 -0
  111. package/services/GetProjectConfigService/EnvContext.d.ts +3 -2
  112. package/services/GetProjectConfigService/EnvContext.js +4 -6
  113. package/services/GetProjectConfigService/EnvContext.js.map +1 -1
  114. package/services/GetProjectConfigService/FeatureFlagsContext.d.ts +26 -0
  115. package/services/GetProjectConfigService/FeatureFlagsContext.js +41 -0
  116. package/services/GetProjectConfigService/FeatureFlagsContext.js.map +1 -0
  117. package/services/GetProjectConfigService/GetProjectConfigService.js +14 -11
  118. package/services/GetProjectConfigService/GetProjectConfigService.js.map +1 -1
  119. package/services/GetProjectConfigService/LicenseDecoratedFeatureFlags.d.ts +8 -0
  120. package/services/GetProjectConfigService/LicenseDecoratedFeatureFlags.js +28 -0
  121. package/services/GetProjectConfigService/LicenseDecoratedFeatureFlags.js.map +1 -0
  122. package/services/GetProjectConfigService/WcpProjectLicenseContext.d.ts +1 -0
  123. package/services/GetProjectConfigService/WcpProjectLicenseContext.js +1 -0
  124. package/services/GetProjectConfigService/WcpProjectLicenseContext.js.map +1 -1
  125. package/services/GetProjectConfigService/getRenderCacheKey.d.ts +1 -0
  126. package/services/GetProjectConfigService/getRenderCacheKey.js +13 -0
  127. package/services/GetProjectConfigService/getRenderCacheKey.js.map +1 -0
  128. package/services/GetProjectConfigService/nullRenderer.d.ts +4 -0
  129. package/services/GetProjectConfigService/nullRenderer.js +51 -0
  130. package/services/GetProjectConfigService/nullRenderer.js.map +1 -0
  131. package/services/GetProjectConfigService/renderConfig.d.ts +3 -12
  132. package/services/GetProjectConfigService/renderConfig.js +10 -35
  133. package/services/GetProjectConfigService/renderConfig.js.map +1 -1
  134. package/services/GetProjectConfigService/renderExtensions.d.ts +8 -0
  135. package/services/GetProjectConfigService/renderExtensions.js +52 -0
  136. package/services/GetProjectConfigService/renderExtensions.js.map +1 -0
  137. package/services/InitProjectSdkService/InitProjectSdkService.js +5 -8
  138. package/services/InitProjectSdkService/InitProjectSdkService.js.map +1 -1
  139. package/services/InitProjectSdkService/applyWcpEnvVars.js +27 -9
  140. package/services/InitProjectSdkService/applyWcpEnvVars.js.map +1 -1
  141. package/services/ProjectInfoService/GetPulumiVersionService.js +3 -3
  142. package/services/ProjectInfoService/GetPulumiVersionService.js.map +1 -1
  143. package/services/PulumiExportService/PulumiExportService.js.map +1 -1
  144. package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js.map +1 -1
  145. package/services/PulumiSelectStackService/PulumiSelectStackService.js.map +1 -1
  146. package/services/UiService/UiService.d.ts +18 -0
  147. package/services/UiService/UiService.js +18 -2
  148. package/services/UiService/UiService.js.map +1 -1
  149. package/services/ValidateProjectConfigService/ValidateProjectConfigService.js +10 -7
  150. package/services/ValidateProjectConfigService/ValidateProjectConfigService.js.map +1 -1
  151. package/services/WcpService/GetProjectEnvironment.js +16 -5
  152. package/services/WcpService/GetProjectEnvironment.js.map +1 -1
  153. package/services/WcpService/WcpGqlClient.js +2 -2
  154. package/services/WcpService/WcpGqlClient.js.map +1 -1
  155. package/services/WcpService/fetchProjectEnvironmentByApiKey.d.ts +8 -0
  156. package/services/WcpService/fetchProjectEnvironmentByApiKey.js +21 -0
  157. package/services/WcpService/fetchProjectEnvironmentByApiKey.js.map +1 -0
  158. package/services/index.d.ts +0 -1
  159. package/services/index.js +0 -1
  160. package/utils/apiRuntimeEnv.d.ts +20 -0
  161. package/utils/apiRuntimeEnv.js +51 -0
  162. package/utils/apiRuntimeEnv.js.map +1 -0
  163. package/utils/index.d.ts +2 -1
  164. package/utils/index.js +2 -1
  165. package/utils/trace/TraceRecorder.d.ts +17 -0
  166. package/utils/trace/TraceRecorder.js +51 -0
  167. package/utils/trace/TraceRecorder.js.map +1 -0
  168. package/utils/trace/formatTraceReport.d.ts +2 -0
  169. package/utils/trace/formatTraceReport.js +53 -0
  170. package/utils/trace/formatTraceReport.js.map +1 -0
  171. package/utils/trace/index.d.ts +6 -0
  172. package/utils/trace/index.js +6 -0
  173. package/utils/trace/isTraceRequested.d.ts +1 -0
  174. package/utils/trace/isTraceRequested.js +12 -0
  175. package/utils/trace/isTraceRequested.js.map +1 -0
  176. package/utils/trace/startTrace.d.ts +1 -0
  177. package/utils/trace/startTrace.js +19 -0
  178. package/utils/trace/startTrace.js.map +1 -0
  179. package/utils/trace/trace.d.ts +1 -0
  180. package/utils/trace/trace.js +13 -0
  181. package/utils/trace/trace.js.map +1 -0
  182. package/utils/trace/traceAsync.d.ts +1 -0
  183. package/utils/trace/traceAsync.js +13 -0
  184. package/utils/trace/traceAsync.js.map +1 -0
  185. package/components/Wcp.d.ts +0 -19
  186. package/components/Wcp.js +0 -37
  187. package/components/Wcp.js.map +0 -1
  188. package/extensions/Project/EnsureApiDeployedBeforeAdminBuild.d.ts +0 -11
  189. package/extensions/Project/EnsureApiDeployedBeforeAdminBuild.js +0 -30
  190. package/extensions/Project/EnsureApiDeployedBeforeAdminBuild.js.map +0 -1
  191. package/extensions/Project/EnsureApiDeployedBeforeAdminWatch.d.ts +0 -11
  192. package/extensions/Project/EnsureApiDeployedBeforeAdminWatch.js +0 -30
  193. package/extensions/Project/EnsureApiDeployedBeforeAdminWatch.js.map +0 -1
  194. package/extensions/Project/EnsureApiDeployedBeforeWatch.d.ts +0 -11
  195. package/extensions/Project/EnsureApiDeployedBeforeWatch.js +0 -30
  196. package/extensions/Project/EnsureApiDeployedBeforeWatch.js.map +0 -1
  197. package/extensions/Project/EnsureCoreDeployedBeforeApiDeploy.d.ts +0 -11
  198. package/extensions/Project/EnsureCoreDeployedBeforeApiDeploy.js +0 -31
  199. package/extensions/Project/EnsureCoreDeployedBeforeApiDeploy.js.map +0 -1
  200. package/extensions/Project/EnsureTelemetryEnabledForOss.d.ts +0 -13
  201. package/extensions/Project/EnsureTelemetryEnabledForOss.js +0 -34
  202. package/extensions/Project/EnsureTelemetryEnabledForOss.js.map +0 -1
  203. package/extensions/Project/TelemetryNoLongerNewUser.d.ts +0 -8
  204. package/extensions/Project/TelemetryNoLongerNewUser.js +0 -14
  205. package/extensions/Project/TelemetryNoLongerNewUser.js.map +0 -1
  206. package/extensions/Project/ValidateEncryptionBeforeDeploy.d.ts +0 -12
  207. package/extensions/Project/ValidateEncryptionBeforeDeploy.js +0 -31
  208. package/extensions/Project/ValidateEncryptionBeforeDeploy.js.map +0 -1
  209. package/extensions/Project/ValidateProductionPulumiState.d.ts +0 -12
  210. package/extensions/Project/ValidateProductionPulumiState.js +0 -33
  211. package/extensions/Project/ValidateProductionPulumiState.js.map +0 -1
  212. package/features/Watch/getIotEndpoint.d.ts +0 -2
  213. package/features/Watch/getIotEndpoint.js +0 -18
  214. package/features/Watch/getIotEndpoint.js.map +0 -1
  215. package/features/Watch/replaceLambdaFunctions.d.ts +0 -19
  216. package/features/Watch/replaceLambdaFunctions.js +0 -72
  217. package/features/Watch/replaceLambdaFunctions.js.map +0 -1
  218. package/rslib-runtime.js +0 -14
  219. package/rslib-runtime.js.map +0 -1
  220. package/services/GetProjectConfigService/renderConfigWorker.d.ts +0 -1
  221. package/services/GetProjectConfigService/renderConfigWorker.js +0 -63
  222. package/services/GetProjectConfigService/renderConfigWorker.js.map +0 -1
  223. package/services/GetPulumiService/GetPulumiService.d.ts +0 -9
  224. package/services/GetPulumiService/GetPulumiService.js +0 -44
  225. package/services/GetPulumiService/GetPulumiService.js.map +0 -1
  226. package/services/GetPulumiService/index.d.ts +0 -1
  227. package/services/GetPulumiService/index.js +0 -1
  228. package/utils/getTemplatesFolderPath.d.ts +0 -1
  229. package/utils/getTemplatesFolderPath.js +0 -11
  230. package/utils/getTemplatesFolderPath.js.map +0 -1
@@ -6,11 +6,16 @@ import { Telemetry } from "./Telemetry.js";
6
6
  import { EnvVar } from "./EnvVar.js";
7
7
  import { DatabaseSetup } from "./DatabaseSetup.js";
8
8
  import { FeatureFlags } from "./FeatureFlags.js";
9
+ import { BugReporter } from "./BugReporter.js";
9
10
  import { BuildParam } from "./ApiBuildParam.js";
10
11
  import { AdminBuildParam } from "./AdminBuildParam.js";
12
+ import { AdminApiUrl } from "./AdminApiUrl.js";
13
+ import { AdminWebsocketsUrl } from "./AdminWebsocketsUrl.js";
11
14
  import { AdminExtension } from "./AdminExtension.js";
12
15
  import { ApiExtension } from "./ApiExtension.js";
13
16
  import { ApiMaxBundleSize } from "./ApiMaxBundleSize.js";
17
+ import { Encryption } from "./infra/Encryption.js";
18
+ import { Hashing } from "./infra/Hashing.js";
14
19
  import { AdminAfterBuild, AdminAfterDeploy, AdminBeforeBuild, AdminBeforeDeploy, AdminBeforeWatch, AfterBuild, AfterDeploy, BeforeDeploy, BeforeWatch, ApiAfterBuild, ApiAfterDeploy, ApiBeforeBuild, ApiBeforeDeploy, ApiBeforeWatch, BeforeBuild, CoreAfterBuild, CoreAfterDeploy, CoreBeforeBuild, CoreBeforeDeploy, CoreBeforeWatch } from "./hooks/index.js";
15
20
  import { ProductionEnvironments, PulumiResourceNamePrefix, CoreStackOutputValue, ApiStackOutputValue, AdminStackOutputValue } from "./pulumi/index.js";
16
21
  export { Telemetry };
@@ -20,12 +25,17 @@ export { ProjectImplementation };
20
25
  export { ExtensionDefinitions };
21
26
  export { EnvVar };
22
27
  export { FeatureFlags };
28
+ export { BugReporter };
23
29
  export { DatabaseSetup };
24
30
  export { BuildParam };
25
31
  export { AdminBuildParam };
32
+ export { AdminApiUrl };
33
+ export { AdminWebsocketsUrl };
26
34
  export { AdminExtension };
27
35
  export { ApiExtension };
28
36
  export { ApiMaxBundleSize };
37
+ export { Encryption };
38
+ export { Hashing };
29
39
  export { BeforeBuild };
30
40
  export { BeforeDeploy };
31
41
  export { BeforeWatch };
@@ -52,33 +62,21 @@ export { CoreStackOutputValue };
52
62
  export { ApiStackOutputValue };
53
63
  export { AdminStackOutputValue };
54
64
  export declare const definitions: (import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
55
- prefix: import("zod").ZodString;
56
- }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
57
65
  key: import("zod").ZodString;
58
66
  value: import("zod").ZodAny;
59
67
  }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
60
- paramName: import("zod").ZodString;
61
- value: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>, import("zod").ZodArray<import("zod").ZodAny>, import("zod").ZodNumber, import("zod").ZodBoolean]>;
62
- }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
63
- id: import("zod").ZodString;
64
- }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
65
- varName: import("zod").ZodString;
66
- value: import("zod").ZodString;
67
- }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
68
- src: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string, string>>;
68
+ environments: import("zod").ZodArray<import("zod").ZodString>;
69
69
  }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
70
- setupName: import("zod").ZodEnum<{
71
- ddb: "ddb";
72
- "ddb+es": "ddb+es";
73
- "ddb+os": "ddb+os";
74
- }>;
70
+ prefix: import("zod").ZodString;
75
71
  }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
76
72
  enabled: import("zod").ZodDefault<import("zod").ZodBoolean>;
77
73
  }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
78
- src: import("zod").ZodString;
74
+ paramName: import("zod").ZodString;
75
+ value: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>, import("zod").ZodArray<import("zod").ZodAny>, import("zod").ZodNumber, import("zod").ZodBoolean]>;
79
76
  }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
80
77
  features: import("zod").ZodObject<{
81
78
  multiTenancy: import("zod").ZodOptional<import("zod").ZodBoolean>;
79
+ languages: import("zod").ZodOptional<import("zod").ZodBoolean>;
82
80
  advancedPublishingWorkflow: import("zod").ZodOptional<import("zod").ZodBoolean>;
83
81
  advancedAccessControlLayer: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodBoolean, import("zod").ZodObject<{
84
82
  teams: import("zod").ZodOptional<import("zod").ZodBoolean>;
@@ -91,29 +89,63 @@ export declare const definitions: (import("./index.js").ExtensionDefinitionModel
91
89
  fileManager: import("zod").ZodOptional<import("zod").ZodObject<{
92
90
  threatDetection: import("zod").ZodOptional<import("zod").ZodBoolean>;
93
91
  }, import("zod/v4/core").$strip>>;
94
- aiPowerups: import("zod").ZodOptional<import("zod").ZodObject<{
95
- enabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
96
- options: import("zod").ZodOptional<import("zod").ZodObject<{
97
- websiteBuilder: import("zod").ZodOptional<import("zod").ZodObject<{
98
- pageGeneration: import("zod").ZodOptional<import("zod").ZodBoolean>;
99
- pageTranslation: import("zod").ZodOptional<import("zod").ZodBoolean>;
100
- }, import("zod/v4/core").$strip>>;
101
- fileManager: import("zod").ZodOptional<import("zod").ZodObject<{
102
- imageEnrichment: import("zod").ZodOptional<import("zod").ZodBoolean>;
103
- }, import("zod/v4/core").$strip>>;
104
- lexicalGeneration: import("zod").ZodOptional<import("zod").ZodBoolean>;
105
- cms: import("zod").ZodOptional<import("zod").ZodObject<{
106
- entryGeneration: import("zod").ZodOptional<import("zod").ZodBoolean>;
107
- entryComparison: import("zod").ZodOptional<import("zod").ZodBoolean>;
108
- entryTranslation: import("zod").ZodOptional<import("zod").ZodBoolean>;
109
- }, import("zod/v4/core").$strip>>;
92
+ aiPowerups: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodBoolean, import("zod").ZodObject<{
93
+ websiteBuilder: import("zod").ZodOptional<import("zod").ZodObject<{
94
+ pageGeneration: import("zod").ZodOptional<import("zod").ZodBoolean>;
95
+ pageTranslation: import("zod").ZodOptional<import("zod").ZodBoolean>;
110
96
  }, import("zod/v4/core").$strip>>;
111
- }, import("zod/v4/core").$strip>>;
97
+ fileManager: import("zod").ZodOptional<import("zod").ZodObject<{
98
+ imageEnrichment: import("zod").ZodOptional<import("zod").ZodBoolean>;
99
+ }, import("zod/v4/core").$strip>>;
100
+ lexicalGeneration: import("zod").ZodOptional<import("zod").ZodBoolean>;
101
+ adminAssistant: import("zod").ZodOptional<import("zod").ZodBoolean>;
102
+ remoteComponents: import("zod").ZodOptional<import("zod").ZodBoolean>;
103
+ cms: import("zod").ZodOptional<import("zod").ZodObject<{
104
+ entryGeneration: import("zod").ZodOptional<import("zod").ZodBoolean>;
105
+ entryComparison: import("zod").ZodOptional<import("zod").ZodBoolean>;
106
+ entryTranslation: import("zod").ZodOptional<import("zod").ZodBoolean>;
107
+ }, import("zod/v4/core").$strip>>;
108
+ }, import("zod/v4/core").$strip>]>>;
109
+ abTesting: import("zod").ZodOptional<import("zod").ZodBoolean>;
110
+ collaboration: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodBoolean, import("zod").ZodObject<{
111
+ comments: import("zod").ZodOptional<import("zod").ZodBoolean>;
112
+ activityLog: import("zod").ZodOptional<import("zod").ZodBoolean>;
113
+ }, import("zod/v4/core").$strip>]>>;
112
114
  }, import("zod/v4/core").$strip>;
113
115
  }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
114
- environments: import("zod").ZodArray<import("zod").ZodString>;
116
+ id: import("zod").ZodString;
117
+ }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
118
+ src: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string, string>>;
119
+ }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
120
+ varName: import("zod").ZodString;
121
+ value: import("zod").ZodString;
122
+ }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
123
+ token: import("zod").ZodOptional<import("zod").ZodString>;
124
+ repository: import("zod").ZodOptional<import("zod").ZodString>;
125
+ labels: import("zod").ZodOptional<import("zod").ZodString>;
126
+ }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
127
+ src: import("zod").ZodString;
128
+ }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
129
+ setupName: import("zod").ZodEnum<{
130
+ ddb: "ddb";
131
+ "ddb+es": "ddb+es";
132
+ "ddb+os": "ddb+os";
133
+ }>;
134
+ }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
135
+ url: import("zod").ZodString;
115
136
  }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
116
137
  size: import("zod").ZodNumber;
138
+ }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
139
+ passphrase: import("zod").ZodString;
140
+ salt: import("zod").ZodOptional<import("zod").ZodString>;
141
+ algorithm: import("zod").ZodOptional<import("zod").ZodEnum<{
142
+ "aes-128-gcm": "aes-128-gcm";
143
+ "aes-192-gcm": "aes-192-gcm";
144
+ "aes-256-gcm": "aes-256-gcm";
145
+ }>>;
146
+ }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
147
+ pepper: import("zod").ZodOptional<import("zod").ZodString>;
148
+ cost: import("zod").ZodOptional<import("zod").ZodNumber>;
117
149
  }, import("zod/v4/core").$strip>>)[];
118
150
  export { Project } from "./Project.js";
119
151
  export * from "../defineExtension/index.js";
@@ -6,11 +6,16 @@ import { Telemetry } from "./Telemetry.js";
6
6
  import { EnvVar } from "./EnvVar.js";
7
7
  import { DatabaseSetup } from "./DatabaseSetup.js";
8
8
  import { FeatureFlags } from "./FeatureFlags.js";
9
+ import { BugReporter } from "./BugReporter.js";
9
10
  import { BuildParam } from "./ApiBuildParam.js";
10
11
  import { AdminBuildParam } from "./AdminBuildParam.js";
12
+ import { AdminApiUrl } from "./AdminApiUrl.js";
13
+ import { AdminWebsocketsUrl } from "./AdminWebsocketsUrl.js";
11
14
  import { AdminExtension } from "./AdminExtension.js";
12
15
  import { ApiExtension } from "./ApiExtension.js";
13
16
  import { ApiMaxBundleSize } from "./ApiMaxBundleSize.js";
17
+ import { Encryption } from "./infra/Encryption.js";
18
+ import { Hashing } from "./infra/Hashing.js";
14
19
  import { AdminAfterBuild, AdminAfterDeploy, AdminBeforeBuild, AdminBeforeDeploy, AdminBeforeWatch, AfterBuild, AfterDeploy, ApiAfterBuild, ApiAfterDeploy, ApiBeforeBuild, ApiBeforeDeploy, ApiBeforeWatch, BeforeBuild, BeforeDeploy, BeforeWatch, CoreAfterBuild, CoreAfterDeploy, CoreBeforeBuild, CoreBeforeDeploy, CoreBeforeWatch } from "./hooks/index.js";
15
20
  import { AdminStackOutputValue, ApiStackOutputValue, CoreStackOutputValue, ProductionEnvironments, PulumiResourceNamePrefix } from "./pulumi/index.js";
16
21
  export * from "../defineExtension/index.js";
@@ -22,6 +27,7 @@ const definitions = [
22
27
  ExtensionDefinitions.def,
23
28
  EnvVar.def,
24
29
  FeatureFlags.def,
30
+ BugReporter.def,
25
31
  AdminAfterBuild.def,
26
32
  AdminAfterDeploy.def,
27
33
  BeforeBuild.def,
@@ -50,11 +56,15 @@ const definitions = [
50
56
  DatabaseSetup.def,
51
57
  BuildParam.def,
52
58
  AdminBuildParam.def,
59
+ AdminApiUrl.def,
60
+ AdminWebsocketsUrl.def,
53
61
  AdminExtension.def,
54
62
  ApiExtension.def,
55
- ApiMaxBundleSize.def
63
+ ApiMaxBundleSize.def,
64
+ Encryption.def,
65
+ Hashing.def
56
66
  ];
57
67
  export { Project } from "./Project.js";
58
- export { AdminAfterBuild, AdminAfterDeploy, AdminBeforeBuild, AdminBeforeDeploy, AdminBeforeWatch, AdminBuildParam, AdminExtension, AdminStackOutputValue, AfterBuild, AfterDeploy, ApiAfterBuild, ApiAfterDeploy, ApiBeforeBuild, ApiBeforeDeploy, ApiBeforeWatch, ApiExtension, ApiMaxBundleSize, ApiStackOutputValue, BeforeBuild, BeforeDeploy, BeforeWatch, BuildParam, CoreAfterBuild, CoreAfterDeploy, CoreBeforeBuild, CoreBeforeDeploy, CoreBeforeWatch, CoreStackOutputValue, DatabaseSetup, EnvVar, ExtensionDefinitions, FeatureFlags, ProductionEnvironments, ProjectDecorator, ProjectId, ProjectImplementation, PulumiResourceNamePrefix, Telemetry, definitions };
68
+ export { AdminAfterBuild, AdminAfterDeploy, AdminApiUrl, AdminBeforeBuild, AdminBeforeDeploy, AdminBeforeWatch, AdminBuildParam, AdminExtension, AdminStackOutputValue, AdminWebsocketsUrl, AfterBuild, AfterDeploy, ApiAfterBuild, ApiAfterDeploy, ApiBeforeBuild, ApiBeforeDeploy, ApiBeforeWatch, ApiExtension, ApiMaxBundleSize, ApiStackOutputValue, BeforeBuild, BeforeDeploy, BeforeWatch, BugReporter, BuildParam, CoreAfterBuild, CoreAfterDeploy, CoreBeforeBuild, CoreBeforeDeploy, CoreBeforeWatch, CoreStackOutputValue, DatabaseSetup, Encryption, EnvVar, ExtensionDefinitions, FeatureFlags, Hashing, ProductionEnvironments, ProjectDecorator, ProjectId, ProjectImplementation, PulumiResourceNamePrefix, Telemetry, definitions };
59
69
 
60
70
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"extensions/index.js","sources":["../../src/extensions/index.ts"],"sourcesContent":["import { ExtensionDefinitions } from \"./ExtensionDefinitions.js\";\nimport { ProjectDecorator } from \"./ProjectDecorator.js\";\nimport { ProjectImplementation } from \"./ProjectImplementation.js\";\nimport { ProjectId } from \"./ProjectId.js\";\nimport { Telemetry } from \"./Telemetry.js\";\nimport { EnvVar } from \"./EnvVar.js\";\nimport { DatabaseSetup } from \"./DatabaseSetup.js\";\nimport { FeatureFlags } from \"./FeatureFlags.js\";\nimport { BuildParam } from \"./ApiBuildParam.js\";\nimport { AdminBuildParam } from \"./AdminBuildParam.js\";\nimport { AdminExtension } from \"./AdminExtension.js\";\nimport { ApiExtension } from \"./ApiExtension.js\";\nimport { ApiMaxBundleSize } from \"./ApiMaxBundleSize.js\";\n\n// Hooks.\nimport {\n AdminAfterBuild,\n AdminAfterDeploy,\n AdminBeforeBuild,\n AdminBeforeDeploy,\n AdminBeforeWatch,\n AfterBuild,\n AfterDeploy,\n BeforeDeploy,\n BeforeWatch,\n ApiAfterBuild,\n ApiAfterDeploy,\n ApiBeforeBuild,\n ApiBeforeDeploy,\n ApiBeforeWatch,\n BeforeBuild,\n CoreAfterBuild,\n CoreAfterDeploy,\n CoreBeforeBuild,\n CoreBeforeDeploy,\n CoreBeforeWatch\n} from \"./hooks/index.js\";\n\n// Pulumi (non-app-specific).\nimport {\n ProductionEnvironments,\n PulumiResourceNamePrefix,\n CoreStackOutputValue,\n ApiStackOutputValue,\n AdminStackOutputValue\n} from \"./pulumi/index.js\";\n\n// Exports.\nexport { Telemetry };\nexport { ProjectId };\nexport { ProjectDecorator };\nexport { ProjectImplementation };\nexport { ExtensionDefinitions };\nexport { EnvVar };\nexport { FeatureFlags };\nexport { DatabaseSetup };\nexport { BuildParam };\nexport { AdminBuildParam };\nexport { AdminExtension };\nexport { ApiExtension };\nexport { ApiMaxBundleSize };\n\n// Hooks.\nexport { BeforeBuild };\nexport { BeforeDeploy };\nexport { BeforeWatch };\nexport { AfterBuild };\nexport { AfterDeploy };\nexport { AdminBeforeBuild };\nexport { AdminBeforeDeploy };\nexport { AdminBeforeWatch };\nexport { AdminAfterBuild };\nexport { AdminAfterDeploy };\nexport { ApiBeforeBuild };\nexport { ApiBeforeDeploy };\nexport { ApiBeforeWatch };\nexport { ApiAfterBuild };\nexport { ApiAfterDeploy };\nexport { CoreBeforeBuild };\nexport { CoreBeforeDeploy };\nexport { CoreBeforeWatch };\nexport { CoreAfterBuild };\nexport { CoreAfterDeploy };\n\n// Pulumi (non-app-specific).\nexport { PulumiResourceNamePrefix };\nexport { ProductionEnvironments };\nexport { CoreStackOutputValue };\nexport { ApiStackOutputValue };\nexport { AdminStackOutputValue };\n\n// Definitions (used internally). 👇\nexport const definitions = [\n Telemetry.def,\n ProjectId.def,\n ProjectDecorator.def,\n ProjectImplementation.def,\n ExtensionDefinitions.def,\n EnvVar.def,\n FeatureFlags.def,\n\n // Hooks.\n AdminAfterBuild.def,\n AdminAfterDeploy.def,\n BeforeBuild.def,\n BeforeDeploy.def,\n BeforeWatch.def,\n AfterBuild.def,\n AfterDeploy.def,\n AdminBeforeBuild.def,\n AdminBeforeDeploy.def,\n AdminBeforeWatch.def,\n ApiAfterBuild.def,\n ApiAfterDeploy.def,\n ApiBeforeBuild.def,\n ApiBeforeDeploy.def,\n ApiBeforeWatch.def,\n CoreAfterBuild.def,\n CoreAfterDeploy.def,\n CoreBeforeBuild.def,\n CoreBeforeDeploy.def,\n CoreBeforeWatch.def,\n\n // Pulumi (non-app-specific).\n PulumiResourceNamePrefix.def,\n ProductionEnvironments.def,\n CoreStackOutputValue.def,\n ApiStackOutputValue.def,\n AdminStackOutputValue.def,\n DatabaseSetup.def,\n BuildParam.def,\n AdminBuildParam.def,\n AdminExtension.def,\n ApiExtension.def,\n ApiMaxBundleSize.def\n];\n\nexport { Project } from \"./Project.js\";\n\nexport * from \"../defineExtension/index.js\";\n"],"names":["definitions","Telemetry","ProjectId","ProjectDecorator","ProjectImplementation","ExtensionDefinitions","EnvVar","FeatureFlags","AdminAfterBuild","AdminAfterDeploy","BeforeBuild","BeforeDeploy","BeforeWatch","AfterBuild","AfterDeploy","AdminBeforeBuild","AdminBeforeDeploy","AdminBeforeWatch","ApiAfterBuild","ApiAfterDeploy","ApiBeforeBuild","ApiBeforeDeploy","ApiBeforeWatch","CoreAfterBuild","CoreAfterDeploy","CoreBeforeBuild","CoreBeforeDeploy","CoreBeforeWatch","PulumiResourceNamePrefix","ProductionEnvironments","CoreStackOutputValue","ApiStackOutputValue","AdminStackOutputValue","DatabaseSetup","BuildParam","AdminBuildParam","AdminExtension","ApiExtension","ApiMaxBundleSize"],"mappings":";;;;;;;;;;;;;;;;AA4FO,MAAMA,cAAc;IACvBC,UAAU,GAAG;IACbC,UAAU,GAAG;IACbC,iBAAiB,GAAG;IACpBC,sBAAsB,GAAG;IACzBC,qBAAqB,GAAG;IACxBC,OAAO,GAAG;IACVC,aAAa,GAAG;IAGhBC,gBAAgB,GAAG;IACnBC,iBAAiB,GAAG;IACpBC,YAAY,GAAG;IACfC,aAAa,GAAG;IAChBC,YAAY,GAAG;IACfC,WAAW,GAAG;IACdC,YAAY,GAAG;IACfC,iBAAiB,GAAG;IACpBC,kBAAkB,GAAG;IACrBC,iBAAiB,GAAG;IACpBC,cAAc,GAAG;IACjBC,eAAe,GAAG;IAClBC,eAAe,GAAG;IAClBC,gBAAgB,GAAG;IACnBC,eAAe,GAAG;IAClBC,eAAe,GAAG;IAClBC,gBAAgB,GAAG;IACnBC,gBAAgB,GAAG;IACnBC,iBAAiB,GAAG;IACpBC,gBAAgB,GAAG;IAGnBC,yBAAyB,GAAG;IAC5BC,uBAAuB,GAAG;IAC1BC,qBAAqB,GAAG;IACxBC,oBAAoB,GAAG;IACvBC,sBAAsB,GAAG;IACzBC,cAAc,GAAG;IACjBC,WAAW,GAAG;IACdC,gBAAgB,GAAG;IACnBC,eAAe,GAAG;IAClBC,aAAa,GAAG;IAChBC,iBAAiB,GAAG;CACvB"}
1
+ {"version":3,"file":"extensions/index.js","sources":["../../src/extensions/index.ts"],"sourcesContent":["import { ExtensionDefinitions } from \"./ExtensionDefinitions.js\";\nimport { ProjectDecorator } from \"./ProjectDecorator.js\";\nimport { ProjectImplementation } from \"./ProjectImplementation.js\";\nimport { ProjectId } from \"./ProjectId.js\";\nimport { Telemetry } from \"./Telemetry.js\";\nimport { EnvVar } from \"./EnvVar.js\";\nimport { DatabaseSetup } from \"./DatabaseSetup.js\";\nimport { FeatureFlags } from \"./FeatureFlags.js\";\nimport { BugReporter } from \"./BugReporter.js\";\nimport { BuildParam } from \"./ApiBuildParam.js\";\nimport { AdminBuildParam } from \"./AdminBuildParam.js\";\nimport { AdminApiUrl } from \"./AdminApiUrl.js\";\nimport { AdminWebsocketsUrl } from \"./AdminWebsocketsUrl.js\";\nimport { AdminExtension } from \"./AdminExtension.js\";\nimport { ApiExtension } from \"./ApiExtension.js\";\nimport { ApiMaxBundleSize } from \"./ApiMaxBundleSize.js\";\nimport { Encryption } from \"./infra/Encryption.js\";\nimport { Hashing } from \"./infra/Hashing.js\";\n\n// Hooks.\nimport {\n AdminAfterBuild,\n AdminAfterDeploy,\n AdminBeforeBuild,\n AdminBeforeDeploy,\n AdminBeforeWatch,\n AfterBuild,\n AfterDeploy,\n BeforeDeploy,\n BeforeWatch,\n ApiAfterBuild,\n ApiAfterDeploy,\n ApiBeforeBuild,\n ApiBeforeDeploy,\n ApiBeforeWatch,\n BeforeBuild,\n CoreAfterBuild,\n CoreAfterDeploy,\n CoreBeforeBuild,\n CoreBeforeDeploy,\n CoreBeforeWatch\n} from \"./hooks/index.js\";\n\n// Pulumi (non-app-specific).\nimport {\n ProductionEnvironments,\n PulumiResourceNamePrefix,\n CoreStackOutputValue,\n ApiStackOutputValue,\n AdminStackOutputValue\n} from \"./pulumi/index.js\";\n\n// Exports.\nexport { Telemetry };\nexport { ProjectId };\nexport { ProjectDecorator };\nexport { ProjectImplementation };\nexport { ExtensionDefinitions };\nexport { EnvVar };\nexport { FeatureFlags };\nexport { BugReporter };\nexport { DatabaseSetup };\nexport { BuildParam };\nexport { AdminBuildParam };\nexport { AdminApiUrl };\nexport { AdminWebsocketsUrl };\nexport { AdminExtension };\nexport { ApiExtension };\nexport { ApiMaxBundleSize };\nexport { Encryption };\nexport { Hashing };\n\n// Hooks.\nexport { BeforeBuild };\nexport { BeforeDeploy };\nexport { BeforeWatch };\nexport { AfterBuild };\nexport { AfterDeploy };\nexport { AdminBeforeBuild };\nexport { AdminBeforeDeploy };\nexport { AdminBeforeWatch };\nexport { AdminAfterBuild };\nexport { AdminAfterDeploy };\nexport { ApiBeforeBuild };\nexport { ApiBeforeDeploy };\nexport { ApiBeforeWatch };\nexport { ApiAfterBuild };\nexport { ApiAfterDeploy };\nexport { CoreBeforeBuild };\nexport { CoreBeforeDeploy };\nexport { CoreBeforeWatch };\nexport { CoreAfterBuild };\nexport { CoreAfterDeploy };\n\n// Pulumi (non-app-specific).\nexport { PulumiResourceNamePrefix };\nexport { ProductionEnvironments };\nexport { CoreStackOutputValue };\nexport { ApiStackOutputValue };\nexport { AdminStackOutputValue };\n\n// Definitions (used internally). 👇\nexport const definitions = [\n Telemetry.def,\n ProjectId.def,\n ProjectDecorator.def,\n ProjectImplementation.def,\n ExtensionDefinitions.def,\n EnvVar.def,\n FeatureFlags.def,\n BugReporter.def,\n\n // Hooks.\n AdminAfterBuild.def,\n AdminAfterDeploy.def,\n BeforeBuild.def,\n BeforeDeploy.def,\n BeforeWatch.def,\n AfterBuild.def,\n AfterDeploy.def,\n AdminBeforeBuild.def,\n AdminBeforeDeploy.def,\n AdminBeforeWatch.def,\n ApiAfterBuild.def,\n ApiAfterDeploy.def,\n ApiBeforeBuild.def,\n ApiBeforeDeploy.def,\n ApiBeforeWatch.def,\n CoreAfterBuild.def,\n CoreAfterDeploy.def,\n CoreBeforeBuild.def,\n CoreBeforeDeploy.def,\n CoreBeforeWatch.def,\n\n // Pulumi (non-app-specific).\n PulumiResourceNamePrefix.def,\n ProductionEnvironments.def,\n CoreStackOutputValue.def,\n ApiStackOutputValue.def,\n AdminStackOutputValue.def,\n DatabaseSetup.def,\n BuildParam.def,\n AdminBuildParam.def,\n AdminApiUrl.def,\n AdminWebsocketsUrl.def,\n AdminExtension.def,\n ApiExtension.def,\n ApiMaxBundleSize.def,\n Encryption.def,\n Hashing.def\n];\n\nexport { Project } from \"./Project.js\";\n\nexport * from \"../defineExtension/index.js\";\n"],"names":["definitions","Telemetry","ProjectId","ProjectDecorator","ProjectImplementation","ExtensionDefinitions","EnvVar","FeatureFlags","BugReporter","AdminAfterBuild","AdminAfterDeploy","BeforeBuild","BeforeDeploy","BeforeWatch","AfterBuild","AfterDeploy","AdminBeforeBuild","AdminBeforeDeploy","AdminBeforeWatch","ApiAfterBuild","ApiAfterDeploy","ApiBeforeBuild","ApiBeforeDeploy","ApiBeforeWatch","CoreAfterBuild","CoreAfterDeploy","CoreBeforeBuild","CoreBeforeDeploy","CoreBeforeWatch","PulumiResourceNamePrefix","ProductionEnvironments","CoreStackOutputValue","ApiStackOutputValue","AdminStackOutputValue","DatabaseSetup","BuildParam","AdminBuildParam","AdminApiUrl","AdminWebsocketsUrl","AdminExtension","ApiExtension","ApiMaxBundleSize","Encryption","Hashing"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAsGO,MAAMA,cAAc;IACvBC,UAAU,GAAG;IACbC,UAAU,GAAG;IACbC,iBAAiB,GAAG;IACpBC,sBAAsB,GAAG;IACzBC,qBAAqB,GAAG;IACxBC,OAAO,GAAG;IACVC,aAAa,GAAG;IAChBC,YAAY,GAAG;IAGfC,gBAAgB,GAAG;IACnBC,iBAAiB,GAAG;IACpBC,YAAY,GAAG;IACfC,aAAa,GAAG;IAChBC,YAAY,GAAG;IACfC,WAAW,GAAG;IACdC,YAAY,GAAG;IACfC,iBAAiB,GAAG;IACpBC,kBAAkB,GAAG;IACrBC,iBAAiB,GAAG;IACpBC,cAAc,GAAG;IACjBC,eAAe,GAAG;IAClBC,eAAe,GAAG;IAClBC,gBAAgB,GAAG;IACnBC,eAAe,GAAG;IAClBC,eAAe,GAAG;IAClBC,gBAAgB,GAAG;IACnBC,gBAAgB,GAAG;IACnBC,iBAAiB,GAAG;IACpBC,gBAAgB,GAAG;IAGnBC,yBAAyB,GAAG;IAC5BC,uBAAuB,GAAG;IAC1BC,qBAAqB,GAAG;IACxBC,oBAAoB,GAAG;IACvBC,sBAAsB,GAAG;IACzBC,cAAc,GAAG;IACjBC,WAAW,GAAG;IACdC,gBAAgB,GAAG;IACnBC,YAAY,GAAG;IACfC,mBAAmB,GAAG;IACtBC,eAAe,GAAG;IAClBC,aAAa,GAAG;IAChBC,iBAAiB,GAAG;IACpBC,WAAW,GAAG;IACdC,QAAQ,GAAG;CACd"}
@@ -0,0 +1,10 @@
1
+ import { z } from "zod";
2
+ export declare const Encryption: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
3
+ passphrase: z.ZodString;
4
+ salt: z.ZodOptional<z.ZodString>;
5
+ algorithm: z.ZodOptional<z.ZodEnum<{
6
+ "aes-128-gcm": "aes-128-gcm";
7
+ "aes-192-gcm": "aes-192-gcm";
8
+ "aes-256-gcm": "aes-256-gcm";
9
+ }>>;
10
+ }, z.core.$strip>>;
@@ -0,0 +1,36 @@
1
+ import react from "react";
2
+ import { z } from "zod";
3
+ import { defineExtension } from "../../defineExtension/index.js";
4
+ import { BuildParam } from "../ApiBuildParam.js";
5
+ const SUPPORTED_ALGORITHMS = [
6
+ "aes-128-gcm",
7
+ "aes-192-gcm",
8
+ "aes-256-gcm"
9
+ ];
10
+ const Encryption = defineExtension({
11
+ type: "Infra/Encryption",
12
+ tags: {
13
+ runtimeContext: "project"
14
+ },
15
+ description: "Configure the API's EncryptionService.",
16
+ paramsSchema: z.object({
17
+ passphrase: z.string().min(1).describe("The passphrase used to derive the AES encryption key via scrypt."),
18
+ salt: z.string().min(1).optional().describe("Optional scrypt salt. Ensures two projects using the same passphrase derive different encryption keys."),
19
+ algorithm: z["enum"](SUPPORTED_ALGORITHMS).optional().describe("AES-GCM algorithm. Defaults to aes-256-gcm.")
20
+ }),
21
+ render ({ passphrase, salt, algorithm }) {
22
+ return /*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(BuildParam, {
23
+ paramName: "EncryptionPassphrase",
24
+ value: passphrase
25
+ }), salt && /*#__PURE__*/ react.createElement(BuildParam, {
26
+ paramName: "EncryptionSalt",
27
+ value: salt
28
+ }), algorithm && /*#__PURE__*/ react.createElement(BuildParam, {
29
+ paramName: "EncryptionAlgorithm",
30
+ value: algorithm
31
+ }));
32
+ }
33
+ });
34
+ export { Encryption };
35
+
36
+ //# sourceMappingURL=Encryption.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensions/infra/Encryption.js","sources":["../../../src/extensions/infra/Encryption.tsx"],"sourcesContent":["import React from \"react\";\nimport { z } from \"zod\";\nimport { defineExtension } from \"~/defineExtension/index.js\";\nimport { BuildParam } from \"~/extensions/ApiBuildParam.js\";\n\nconst SUPPORTED_ALGORITHMS = [\"aes-128-gcm\", \"aes-192-gcm\", \"aes-256-gcm\"] as const;\n\nexport const Encryption = defineExtension({\n type: \"Infra/Encryption\",\n tags: { runtimeContext: \"project\" },\n description: \"Configure the API's EncryptionService.\",\n paramsSchema: z.object({\n passphrase: z\n .string()\n .min(1)\n .describe(\"The passphrase used to derive the AES encryption key via scrypt.\"),\n salt: z\n .string()\n .min(1)\n .optional()\n .describe(\n \"Optional scrypt salt. Ensures two projects using the same passphrase derive different encryption keys.\"\n ),\n algorithm: z\n .enum(SUPPORTED_ALGORITHMS)\n .optional()\n .describe(\"AES-GCM algorithm. Defaults to aes-256-gcm.\")\n }),\n render({ passphrase, salt, algorithm }) {\n return (\n <>\n <BuildParam paramName=\"EncryptionPassphrase\" value={passphrase} />\n {salt && <BuildParam paramName=\"EncryptionSalt\" value={salt} />}\n {algorithm && <BuildParam paramName=\"EncryptionAlgorithm\" value={algorithm} />}\n </>\n );\n }\n});\n"],"names":["SUPPORTED_ALGORITHMS","Encryption","defineExtension","z","passphrase","salt","algorithm","BuildParam"],"mappings":";;;;AAKA,MAAMA,uBAAuB;IAAC;IAAe;IAAe;CAAc;AAEnE,MAAMC,aAAaC,gBAAgB;IACtC,MAAM;IACN,MAAM;QAAE,gBAAgB;IAAU;IAClC,aAAa;IACb,cAAcC,EAAE,MAAM,CAAC;QACnB,YAAYA,EAAAA,MACD,GACN,GAAG,CAAC,GACJ,QAAQ,CAAC;QACd,MAAMA,EAAAA,MACK,GACN,GAAG,CAAC,GACJ,QAAQ,GACR,QAAQ,CACL;QAER,WAAWA,CAAC,CAADA,OACF,CAACH,sBACL,QAAQ,GACR,QAAQ,CAAC;IAClB;IACA,QAAO,EAAEI,UAAU,EAAEC,IAAI,EAAEC,SAAS,EAAE;QAClC,OAAO,WAAP,GACI,wDACI,oBAACC,YAAUA;YAAC,WAAU;YAAuB,OAAOH;YACnDC,QAAQ,WAARA,GAAQ,oBAACE,YAAUA;YAAC,WAAU;YAAiB,OAAOF;YACtDC,aAAa,WAAbA,GAAa,oBAACC,YAAUA;YAAC,WAAU;YAAsB,OAAOD;;IAG7E;AACJ"}
@@ -0,0 +1,5 @@
1
+ import { z } from "zod";
2
+ export declare const Hashing: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
3
+ pepper: z.ZodOptional<z.ZodString>;
4
+ cost: z.ZodOptional<z.ZodNumber>;
5
+ }, z.core.$strip>>;
@@ -0,0 +1,27 @@
1
+ import react from "react";
2
+ import { z } from "zod";
3
+ import { defineExtension } from "../../defineExtension/index.js";
4
+ import { BuildParam } from "../ApiBuildParam.js";
5
+ const Hashing = defineExtension({
6
+ type: "Infra/Hashing",
7
+ tags: {
8
+ runtimeContext: "project"
9
+ },
10
+ description: "Configure the API's hashing service (scrypt).",
11
+ paramsSchema: z.object({
12
+ pepper: z.string().min(1).optional().describe("Server-side secret folded into every hash (a 'pepper'). It is NOT stored with the hash, so a stolen database alone cannot be brute-forced without it. Changing it invalidates existing hashes."),
13
+ cost: z.number().int().positive().optional().describe("scrypt CPU/memory cost parameter N (a power of two). Defaults to 16384.")
14
+ }),
15
+ render ({ pepper, cost }) {
16
+ return /*#__PURE__*/ react.createElement(react.Fragment, null, pepper && /*#__PURE__*/ react.createElement(BuildParam, {
17
+ paramName: "HashingPepper",
18
+ value: pepper
19
+ }), cost && /*#__PURE__*/ react.createElement(BuildParam, {
20
+ paramName: "HashingCost",
21
+ value: cost
22
+ }));
23
+ }
24
+ });
25
+ export { Hashing };
26
+
27
+ //# sourceMappingURL=Hashing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensions/infra/Hashing.js","sources":["../../../src/extensions/infra/Hashing.tsx"],"sourcesContent":["import React from \"react\";\nimport { z } from \"zod\";\nimport { defineExtension } from \"~/defineExtension/index.js\";\nimport { BuildParam } from \"~/extensions/ApiBuildParam.js\";\n\nexport const Hashing = defineExtension({\n type: \"Infra/Hashing\",\n tags: { runtimeContext: \"project\" },\n description: \"Configure the API's hashing service (scrypt).\",\n paramsSchema: z.object({\n pepper: z\n .string()\n .min(1)\n .optional()\n .describe(\n \"Server-side secret folded into every hash (a 'pepper'). It is NOT stored with the \" +\n \"hash, so a stolen database alone cannot be brute-forced without it. Changing it \" +\n \"invalidates existing hashes.\"\n ),\n cost: z\n .number()\n .int()\n .positive()\n .optional()\n .describe(\"scrypt CPU/memory cost parameter N (a power of two). Defaults to 16384.\")\n }),\n render({ pepper, cost }) {\n return (\n <>\n {pepper && <BuildParam paramName=\"HashingPepper\" value={pepper} />}\n {cost && <BuildParam paramName=\"HashingCost\" value={cost} />}\n </>\n );\n }\n});\n"],"names":["Hashing","defineExtension","z","pepper","cost","BuildParam"],"mappings":";;;;AAKO,MAAMA,UAAUC,gBAAgB;IACnC,MAAM;IACN,MAAM;QAAE,gBAAgB;IAAU;IAClC,aAAa;IACb,cAAcC,EAAE,MAAM,CAAC;QACnB,QAAQA,EAAAA,MACG,GACN,GAAG,CAAC,GACJ,QAAQ,GACR,QAAQ,CACL;QAIR,MAAMA,EAAAA,MACK,GACN,GAAG,GACH,QAAQ,GACR,QAAQ,GACR,QAAQ,CAAC;IAClB;IACA,QAAO,EAAEC,MAAM,EAAEC,IAAI,EAAE;QACnB,OAAO,WAAP,GACI,0CACKD,UAAU,WAAVA,GAAU,oBAACE,YAAUA;YAAC,WAAU;YAAgB,OAAOF;YACvDC,QAAQ,WAARA,GAAQ,oBAACC,YAAUA;YAAC,WAAU;YAAc,OAAOD;;IAGhE;AACJ"}
@@ -8,7 +8,7 @@ export declare class DefaultDestroyApp implements DestroyApp.Interface {
8
8
  private projectSdkParamsService;
9
9
  constructor(getApp: GetApp.Interface, buildAppWorkspaceService: BuildAppWorkspaceService.Interface, getProject: GetProject.Interface, pulumiSelectStackService: PulumiSelectStackService.Interface, getPulumiService: GetPulumiService.Interface, projectSdkParamsService: ProjectSdkParamsService.Interface);
10
10
  execute(params: DestroyApp.Params): Promise<{
11
- pulumiProcess: import("execa").ExecaChildProcess<string>;
11
+ pulumiProcess: import("@webiny/pulumi-sdk/Pulumi").PulumiProcess;
12
12
  }>;
13
13
  }
14
14
  export declare const destroyApp: import("@webiny/di").Implementation<typeof DefaultDestroyApp>;
@@ -6,7 +6,7 @@ export declare class DefaultGetAppOutput implements GetAppOutput.Interface {
6
6
  private getPulumiService;
7
7
  constructor(getApp: GetApp.Interface, buildAppWorkspaceService: BuildAppWorkspaceService.Interface, pulumiSelectStackService: PulumiSelectStackService.Interface, getPulumiService: GetPulumiService.Interface);
8
8
  execute(params: GetAppOutput.Params): Promise<{
9
- pulumiProcess: import("execa").ExecaChildProcess<string>;
9
+ pulumiProcess: import("@webiny/pulumi-sdk/Pulumi").PulumiProcess;
10
10
  }>;
11
11
  }
12
12
  export declare const getAppOutput: import("@webiny/di").Implementation<typeof DefaultGetAppOutput>;
@@ -7,7 +7,7 @@ export declare class DefaultRefreshApp implements RefreshApp.Interface {
7
7
  private projectSdkParamsService;
8
8
  constructor(getApp: GetApp.Interface, getProject: GetProject.Interface, pulumiSelectStackService: PulumiSelectStackService.Interface, getPulumiService: GetPulumiService.Interface, projectSdkParamsService: ProjectSdkParamsService.Interface);
9
9
  execute(params: RefreshApp.Params): Promise<{
10
- pulumiProcess: import("execa").ExecaChildProcess<string>;
10
+ pulumiProcess: import("@webiny/pulumi-sdk/Pulumi").PulumiProcess;
11
11
  }>;
12
12
  }
13
13
  export declare const refreshApp: import("@webiny/di").Implementation<typeof DefaultRefreshApp>;
@@ -7,7 +7,7 @@ export declare class DefaultRunPulumiCommand implements RunPulumiCommand.Interfa
7
7
  private projectSdkParamsService;
8
8
  constructor(getApp: GetApp.Interface, getProject: GetProject.Interface, pulumiSelectStackService: PulumiSelectStackService.Interface, getPulumiService: GetPulumiService.Interface, projectSdkParamsService: ProjectSdkParamsService.Interface);
9
9
  execute(params: RunPulumiCommand.Params): Promise<{
10
- pulumiProcess: import("execa").ExecaChildProcess<string>;
10
+ pulumiProcess: import("@webiny/pulumi-sdk/Pulumi").PulumiProcess;
11
11
  }>;
12
12
  }
13
13
  export declare const runPulumiCommand: import("@webiny/di").Implementation<typeof DefaultRunPulumiCommand>;
@@ -0,0 +1,10 @@
1
+ import { Serve } from "../../abstractions/index.js";
2
+ /**
3
+ * Base (hosting-agnostic) Serve implementation. There is no cloud-agnostic notion of "serving" a
4
+ * built app — the AWS hosting type deploys, it doesn't serve locally — so this default refuses. Hosting types
5
+ * that DO support serving (e.g. the standalone hosting type) replace this implementation.
6
+ */
7
+ export declare class DefaultServe implements Serve.Interface {
8
+ execute(): Promise<Serve.Result>;
9
+ }
10
+ export declare const serve: import("@webiny/di").Implementation<typeof DefaultServe>;
@@ -0,0 +1,15 @@
1
+ import { createImplementation } from "@webiny/di";
2
+ import { Serve } from "../../abstractions/index.js";
3
+ class DefaultServe {
4
+ async execute() {
5
+ throw new Error('The "serve" command is not supported in this project hosting type.');
6
+ }
7
+ }
8
+ const serve = createImplementation({
9
+ abstraction: Serve,
10
+ implementation: DefaultServe,
11
+ dependencies: []
12
+ });
13
+ export { DefaultServe, serve };
14
+
15
+ //# sourceMappingURL=Serve.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/Serve/Serve.js","sources":["../../../src/features/Serve/Serve.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { Serve } from \"~/abstractions/index.js\";\n\n/**\n * Base (hosting-agnostic) Serve implementation. There is no cloud-agnostic notion of \"serving\" a\n * built app — the AWS hosting type deploys, it doesn't serve locally — so this default refuses. Hosting types\n * that DO support serving (e.g. the standalone hosting type) replace this implementation.\n */\nexport class DefaultServe implements Serve.Interface {\n async execute(): Promise<Serve.Result> {\n throw new Error(`The \"serve\" command is not supported in this project hosting type.`);\n }\n}\n\nexport const serve = createImplementation({\n abstraction: Serve,\n implementation: DefaultServe,\n dependencies: []\n});\n"],"names":["DefaultServe","Error","serve","createImplementation","Serve"],"mappings":";;AAQO,MAAMA;IACT,MAAM,UAAiC;QACnC,MAAM,IAAIC,MAAM;IACpB;AACJ;AAEO,MAAMC,QAAQC,qBAAqB;IACtC,aAAaC;IACb,gBAAgBJ;IAChB,cAAc,EAAE;AACpB"}
@@ -0,0 +1 @@
1
+ export * from "./Serve.js";
@@ -0,0 +1 @@
1
+ export * from "./Serve.js";
@@ -1,28 +1,15 @@
1
- import { BuildAppWorkspaceService, WatchedLambdaFunctionsService, GetApp, GetProductionEnvironments, GetProject, GetProjectConfigService, ListAppLambdaFunctionsService, ListPackagesService, LoggerService, ProjectSdkParamsService, PulumiExportService, PulumiGetStackOutputService, UiService, ValidateProjectConfigService, Watch } from "../../abstractions/index.js";
2
- import { PackagesWatcher } from "./watchers/PackagesWatcher.js";
3
- import { WebinyConfigWatcher } from "../../features/Watch/watchers/WebinyConfigWatcher.js";
1
+ import { BuildAppWorkspaceService, GetApp, GetProductionEnvironments, GetProject, GetProjectConfigService, ListPackagesService, LoggerService, ProjectSdkParamsService, ValidateProjectConfigService, Watch } from "../../abstractions/index.js";
4
2
  export declare class DefaultWatch implements Watch.Interface {
5
3
  private getApp;
6
4
  private logger;
7
- private listAppLambdaFunctionsService;
8
5
  private listPackagesService;
9
6
  private getProject;
10
7
  private getProjectConfigService;
11
8
  private validateProjectConfigService;
12
9
  private getProductionEnvironments;
13
- private ui;
14
- private pulumiGetStackOutputService;
15
- private pulumiExportService;
16
- private watchedLambdaFunctionsService;
17
10
  private buildAppWorkspaceService;
18
11
  private projectSdkParamsService;
19
- constructor(getApp: GetApp.Interface, logger: LoggerService.Interface, listAppLambdaFunctionsService: ListAppLambdaFunctionsService.Interface, listPackagesService: ListPackagesService.Interface, getProject: GetProject.Interface, getProjectConfigService: GetProjectConfigService.Interface, validateProjectConfigService: ValidateProjectConfigService.Interface, getProductionEnvironments: GetProductionEnvironments.Interface, ui: UiService.Interface, pulumiGetStackOutputService: PulumiGetStackOutputService.Interface, pulumiExportService: PulumiExportService.Interface, watchedLambdaFunctionsService: WatchedLambdaFunctionsService.Interface, buildAppWorkspaceService: BuildAppWorkspaceService.Interface, projectSdkParamsService: ProjectSdkParamsService.Interface);
20
- execute(params: Watch.Params): Promise<{
21
- packagesWatcher: PackagesWatcher;
22
- webinyConfigWatcher?: undefined;
23
- } | {
24
- packagesWatcher: PackagesWatcher;
25
- webinyConfigWatcher: WebinyConfigWatcher;
26
- }>;
12
+ constructor(getApp: GetApp.Interface, logger: LoggerService.Interface, listPackagesService: ListPackagesService.Interface, getProject: GetProject.Interface, getProjectConfigService: GetProjectConfigService.Interface, validateProjectConfigService: ValidateProjectConfigService.Interface, getProductionEnvironments: GetProductionEnvironments.Interface, buildAppWorkspaceService: BuildAppWorkspaceService.Interface, projectSdkParamsService: ProjectSdkParamsService.Interface);
13
+ execute(params: Watch.Params): Promise<Watch.Result>;
27
14
  }
28
15
  export declare const watch: import("@webiny/di").Implementation<typeof DefaultWatch>;
@@ -1,25 +1,17 @@
1
1
  import { createImplementation } from "@webiny/di";
2
- import { BuildAppWorkspaceService, GetApp, GetProductionEnvironments, GetProject, GetProjectConfigService, ListAppLambdaFunctionsService, ListPackagesService, LoggerService, ProjectSdkParamsService, PulumiExportService, PulumiGetStackOutputService, UiService, ValidateProjectConfigService, Watch, WatchedLambdaFunctionsService } from "../../abstractions/index.js";
2
+ import { BuildAppWorkspaceService, GetApp, GetProductionEnvironments, GetProject, GetProjectConfigService, ListPackagesService, LoggerService, ProjectSdkParamsService, ValidateProjectConfigService, Watch } from "../../abstractions/index.js";
3
3
  import chalk from "chalk";
4
4
  import { PackagesWatcher } from "./watchers/PackagesWatcher.js";
5
5
  import { WebinyConfigWatcher } from "./watchers/WebinyConfigWatcher.js";
6
- import { getIotEndpoint } from "./getIotEndpoint.js";
7
- import { replaceLambdaFunctions } from "./replaceLambdaFunctions.js";
8
- import { initInvocationForwarding } from "./initInvocationForwarding.js";
9
6
  class DefaultWatch {
10
- constructor(getApp, logger, listAppLambdaFunctionsService, listPackagesService, getProject, getProjectConfigService, validateProjectConfigService, getProductionEnvironments, ui, pulumiGetStackOutputService, pulumiExportService, watchedLambdaFunctionsService, buildAppWorkspaceService, projectSdkParamsService){
7
+ constructor(getApp, logger, listPackagesService, getProject, getProjectConfigService, validateProjectConfigService, getProductionEnvironments, buildAppWorkspaceService, projectSdkParamsService){
11
8
  this.getApp = getApp;
12
9
  this.logger = logger;
13
- this.listAppLambdaFunctionsService = listAppLambdaFunctionsService;
14
10
  this.listPackagesService = listPackagesService;
15
11
  this.getProject = getProject;
16
12
  this.getProjectConfigService = getProjectConfigService;
17
13
  this.validateProjectConfigService = validateProjectConfigService;
18
14
  this.getProductionEnvironments = getProductionEnvironments;
19
- this.ui = ui;
20
- this.pulumiGetStackOutputService = pulumiGetStackOutputService;
21
- this.pulumiExportService = pulumiExportService;
22
- this.watchedLambdaFunctionsService = watchedLambdaFunctionsService;
23
15
  this.buildAppWorkspaceService = buildAppWorkspaceService;
24
16
  this.projectSdkParamsService = projectSdkParamsService;
25
17
  }
@@ -45,16 +37,13 @@ class DefaultWatch {
45
37
  const app = this.getApp.execute(params.app);
46
38
  if (!app) throw new Error(`Invalid app name "${params.app}". Please specify a valid app name (core, api, or admin).`);
47
39
  const sdkParams = this.projectSdkParamsService.get();
48
- if (!sdkParams.env) throw new Error('Please specify environment, for example "dev".');
49
40
  const productionEnvironments = await this.getProductionEnvironments.execute();
50
41
  if (productionEnvironments.includes(sdkParams.env)) {
51
42
  if (!params.allowProduction) throw new Error(`${chalk.red("webiny watch")} command cannot be used with production environments.`);
52
43
  }
53
- if (params.increaseTimeout && params.increaseTimeout > 900) throw new Error("When increasing the timeout, the maximum value that can be passed is 900 seconds (15 minutes).");
54
44
  await this.buildAppWorkspaceService.execute(params.app, {
55
45
  forceRebuild: true
56
46
  });
57
- const ui = this.ui;
58
47
  const logger = this.logger;
59
48
  const project = this.getProject.execute();
60
49
  const getProjectConfigService = this.getProjectConfigService;
@@ -85,9 +74,6 @@ class DefaultWatch {
85
74
  const packagesWhitelist = Array.isArray(params.package) ? params.package : [
86
75
  params.package
87
76
  ].filter(Boolean);
88
- const functionsWhitelist = Array.isArray(params.function) ? params.function : [
89
- params.function
90
- ].filter(Boolean);
91
77
  const packagesList = await this.listPackagesService.execute({
92
78
  appName: app.name,
93
79
  packageWhitelist: packagesWhitelist
@@ -97,72 +83,9 @@ class DefaultWatch {
97
83
  params,
98
84
  logger
99
85
  });
100
- const functionsList = await this.listAppLambdaFunctionsService.execute(app, {
101
- whitelist: functionsWhitelist
102
- });
103
- const deployCommand = `yarn webiny deploy ${app.name} --env ${sdkParams.env}`;
104
- const learnMoreLink = "https://webiny.link/local-aws-lambda-development";
105
- const troubleshootingLink = learnMoreLink + "#troubleshooting";
106
- if (0 === functionsList.meta.count) {
107
- if (functionsList.meta.totalCount > 0) ui.info("No AWS Lambda functions will be invoked locally. If this is unexpected, you can try the following:\n ‣ stop the current development session\n ‣ redeploy the %s application by running %s command\n ‣ start a new %s session by rerunning %s command\n\nLearn more: %s", app.name, deployCommand, "webiny watch", "webiny watch", troubleshootingLink);
108
- return {
109
- packagesWatcher,
110
- webinyConfigWatcher
111
- };
112
- }
113
- ui.info("Local AWS Lambda development session started.");
114
- ui.warning("Note that once the session is terminated, the %s application will no longer work. To fix this, you %s redeploy it via the %s command. Learn more: %s.", app.getDisplayName(), "MUST", deployCommand, learnMoreLink);
115
- logger.debug("The events for following AWS Lambda functions will be forwarded locally: ", functionsList.list.map((fn)=>fn.name));
116
- ui.emptyLine();
117
- const { default: exitHook } = await import("exit-hook");
118
- exitHook(()=>{
119
- console.log();
120
- console.log();
121
- ui.info("Terminating local AWS Lambda development session.");
122
- ui.warning("Note that once the session is terminated, the %s application will no longer work. To fix this, you %s redeploy it via the %s command. Learn more: %s.", app?.getDisplayName(), "MUST", deployCommand, learnMoreLink);
123
- });
124
- const coreApp = this.getApp.execute("core");
125
- const coreStackOutput = await this.pulumiGetStackOutputService.execute(coreApp);
126
- if (!coreStackOutput) throw new Error(`You must deploy the ${chalk.bold("core")} app before you can start a watch session. To do that, run: ${chalk.bold(`yarn webiny deploy core --env ${sdkParams.env}`)}`);
127
- const deploymentId = coreStackOutput?.deploymentId;
128
- const iotEndpointTopic = `webiny-watch-${deploymentId}`;
129
- const iotEndpoint = await getIotEndpoint(coreStackOutput);
130
- const sessionId = new Date().getTime();
131
- const increaseTimeout = params.increaseTimeout;
132
- const localExecutionHandshakeTimeout = params.increaseHandshakeTimeout || 5;
133
- replaceLambdaFunctions({
134
- app,
135
- deploymentId,
136
- dependencies: {
137
- uiService: ui,
138
- loggerService: logger,
139
- pulumiExportService: this.pulumiExportService,
140
- watchedLambdaFunctionsService: this.watchedLambdaFunctionsService
141
- },
142
- iotEndpoint,
143
- iotEndpointTopic,
144
- sessionId,
145
- functionsList,
146
- increaseTimeout,
147
- localExecutionHandshakeTimeout
148
- });
149
- let inspector;
150
- if (params.inspect) {
151
- inspector = await import("inspector");
152
- inspector.open(9229, "127.0.0.1");
153
- ui.emptyLine();
154
- exitHook(()=>{
155
- inspector.close();
156
- });
157
- }
158
- initInvocationForwarding({
159
- iotEndpoint,
160
- iotEndpointTopic,
161
- functionsList,
162
- sessionId
163
- });
164
86
  return {
165
- packagesWatcher
87
+ packagesWatcher,
88
+ webinyConfigWatcher
166
89
  };
167
90
  }
168
91
  }
@@ -172,16 +95,11 @@ const watch = createImplementation({
172
95
  dependencies: [
173
96
  GetApp,
174
97
  LoggerService,
175
- ListAppLambdaFunctionsService,
176
98
  ListPackagesService,
177
99
  GetProject,
178
100
  GetProjectConfigService,
179
101
  ValidateProjectConfigService,
180
102
  GetProductionEnvironments,
181
- UiService,
182
- PulumiGetStackOutputService,
183
- PulumiExportService,
184
- WatchedLambdaFunctionsService,
185
103
  BuildAppWorkspaceService,
186
104
  ProjectSdkParamsService
187
105
  ]