@webiny/project 6.4.11 → 6.6.0-alpha.1
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/ProjectSdk.d.ts +6 -5
- package/ProjectSdk.js +10 -6
- package/ProjectSdk.js.map +1 -1
- package/abstractions/features/DeployApp.d.ts +2 -2
- package/abstractions/features/DeployApp.js.map +1 -1
- package/abstractions/features/DestroyApp.d.ts +2 -2
- package/abstractions/features/DestroyApp.js.map +1 -1
- package/abstractions/features/GetAppOutput.d.ts +2 -2
- package/abstractions/features/GetAppOutput.js.map +1 -1
- package/abstractions/features/RefreshApp.d.ts +2 -2
- package/abstractions/features/RefreshApp.js.map +1 -1
- package/abstractions/features/RunPulumiCommand.d.ts +2 -2
- package/abstractions/features/RunPulumiCommand.js.map +1 -1
- package/abstractions/features/Serve.d.ts +27 -0
- package/abstractions/features/Serve.js +5 -0
- package/abstractions/features/Serve.js.map +1 -0
- package/abstractions/features/Watch.d.ts +10 -0
- package/abstractions/features/Watch.js.map +1 -1
- package/abstractions/features/index.d.ts +1 -0
- package/abstractions/features/index.js +1 -0
- package/components/FeatureFlag.d.ts +43 -0
- package/components/FeatureFlag.js +60 -0
- package/components/FeatureFlag.js.map +1 -0
- package/createProjectSdkContainer.d.ts +1 -1
- package/createProjectSdkContainer.js +6 -32
- package/createProjectSdkContainer.js.map +1 -1
- package/decorators/DestroyAppClearStackOutputCache.d.ts +1 -1
- package/decorators/GetFeatureFlagsWithLicense.d.ts +0 -1
- package/decorators/GetFeatureFlagsWithLicense.js +27 -20
- package/decorators/GetFeatureFlagsWithLicense.js.map +1 -1
- package/extensions/AdminApiUrl.d.ts +10 -0
- package/extensions/AdminApiUrl.js +21 -0
- package/extensions/AdminApiUrl.js.map +1 -0
- package/extensions/AdminWebsocketsUrl.d.ts +12 -0
- package/extensions/AdminWebsocketsUrl.js +21 -0
- package/extensions/AdminWebsocketsUrl.js.map +1 -0
- package/extensions/ApiBuildParam.js +2 -2
- package/extensions/ApiBuildParam.js.map +1 -1
- package/extensions/ApiExtension.js +2 -2
- package/extensions/ApiExtension.js.map +1 -1
- package/extensions/FeatureFlags.d.ts +16 -11
- package/extensions/FeatureFlags.js +22 -10
- package/extensions/FeatureFlags.js.map +1 -1
- package/extensions/Project/SetAdminAppEnvVarsBeforeBuild.js +1 -0
- package/extensions/Project/SetAdminAppEnvVarsBeforeBuild.js.map +1 -1
- package/extensions/Project/SetAdminAppEnvVarsBeforeWatch.js +1 -0
- package/extensions/Project/SetAdminAppEnvVarsBeforeWatch.js.map +1 -1
- package/extensions/Project/ShowConfigChangeInfoBeforeAdminWatch.js +2 -1
- package/extensions/Project/ShowConfigChangeInfoBeforeAdminWatch.js.map +1 -1
- package/extensions/Project/ShowConfigChangeInfoBeforeApiWatch.js +2 -1
- package/extensions/Project/ShowConfigChangeInfoBeforeApiWatch.js.map +1 -1
- package/extensions/Project/WcpInjectTelemetryClientAfterBuild.js +2 -1
- package/extensions/Project/WcpInjectTelemetryClientAfterBuild.js.map +1 -1
- package/extensions/Project/showConfigChangeNotice.d.ts +7 -0
- package/extensions/Project/showConfigChangeNotice.js +9 -0
- package/extensions/Project/showConfigChangeNotice.js.map +1 -0
- package/extensions/Project.js +1 -17
- package/extensions/Project.js.map +1 -1
- package/extensions/index.d.ts +50 -24
- package/extensions/index.js +10 -2
- package/extensions/index.js.map +1 -1
- package/extensions/infra/Encryption.d.ts +10 -0
- package/extensions/infra/Encryption.js +36 -0
- package/extensions/infra/Encryption.js.map +1 -0
- package/extensions/infra/Hashing.d.ts +5 -0
- package/extensions/infra/Hashing.js +27 -0
- package/extensions/infra/Hashing.js.map +1 -0
- package/features/DestroyApp/DestroyApp.d.ts +1 -1
- package/features/GetAppOutput/GetAppOutput.d.ts +1 -1
- package/features/RefreshApp/RefreshApp.d.ts +1 -1
- package/features/RunPulumiCommand/RunPulumiCommand.d.ts +1 -1
- package/features/Serve/Serve.d.ts +10 -0
- package/features/Serve/Serve.js +15 -0
- package/features/Serve/Serve.js.map +1 -0
- package/features/Serve/index.d.ts +1 -0
- package/features/Serve/index.js +1 -0
- package/features/Watch/Watch.d.ts +3 -16
- package/features/Watch/Watch.js +4 -86
- package/features/Watch/Watch.js.map +1 -1
- package/features/Watch/watchers/ServersWatcher.d.ts +36 -0
- package/features/Watch/watchers/ServersWatcher.js +38 -0
- package/features/Watch/watchers/ServersWatcher.js.map +1 -0
- package/features/index.d.ts +1 -0
- package/features/index.js +1 -0
- package/index.d.ts +3 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +24 -24
- package/services/BuildAppWorkspaceService/BuildAppWorkspaceService.d.ts +2 -3
- package/services/BuildAppWorkspaceService/BuildAppWorkspaceService.js +11 -44
- package/services/BuildAppWorkspaceService/BuildAppWorkspaceService.js.map +1 -1
- package/services/BuildProjectWorkspaceService/BuildProjectWorkspaceService.js +4 -6
- package/services/BuildProjectWorkspaceService/BuildProjectWorkspaceService.js.map +1 -1
- package/services/GetProjectConfigService/FeatureFlagsContext.d.ts +26 -0
- package/services/GetProjectConfigService/FeatureFlagsContext.js +41 -0
- package/services/GetProjectConfigService/FeatureFlagsContext.js.map +1 -0
- package/services/GetProjectConfigService/LicenseDecoratedFeatureFlags.d.ts +8 -0
- package/services/GetProjectConfigService/LicenseDecoratedFeatureFlags.js +27 -0
- package/services/GetProjectConfigService/LicenseDecoratedFeatureFlags.js.map +1 -0
- package/services/GetProjectConfigService/renderConfig.js.map +1 -1
- package/services/GetProjectConfigService/renderConfigWorker.js +3 -2
- package/services/GetProjectConfigService/renderConfigWorker.js.map +1 -1
- package/services/ProjectInfoService/GetPulumiVersionService.js +3 -3
- package/services/ProjectInfoService/GetPulumiVersionService.js.map +1 -1
- package/services/PulumiExportService/PulumiExportService.js.map +1 -1
- package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js.map +1 -1
- package/services/PulumiSelectStackService/PulumiSelectStackService.js.map +1 -1
- package/services/UiService/UiService.d.ts +18 -0
- package/services/UiService/UiService.js +18 -2
- package/services/UiService/UiService.js.map +1 -1
- package/services/index.d.ts +0 -1
- package/services/index.js +0 -1
- package/utils/apiRuntimeEnv.d.ts +20 -0
- package/utils/apiRuntimeEnv.js +51 -0
- package/utils/apiRuntimeEnv.js.map +1 -0
- package/utils/index.d.ts +1 -1
- package/utils/index.js +1 -1
- package/components/Wcp.d.ts +0 -19
- package/components/Wcp.js +0 -37
- package/components/Wcp.js.map +0 -1
- package/extensions/Project/EnsureApiDeployedBeforeAdminBuild.d.ts +0 -11
- package/extensions/Project/EnsureApiDeployedBeforeAdminBuild.js +0 -30
- package/extensions/Project/EnsureApiDeployedBeforeAdminBuild.js.map +0 -1
- package/extensions/Project/EnsureApiDeployedBeforeAdminWatch.d.ts +0 -11
- package/extensions/Project/EnsureApiDeployedBeforeAdminWatch.js +0 -30
- package/extensions/Project/EnsureApiDeployedBeforeAdminWatch.js.map +0 -1
- package/extensions/Project/EnsureApiDeployedBeforeWatch.d.ts +0 -11
- package/extensions/Project/EnsureApiDeployedBeforeWatch.js +0 -30
- package/extensions/Project/EnsureApiDeployedBeforeWatch.js.map +0 -1
- package/extensions/Project/EnsureCoreDeployedBeforeApiDeploy.d.ts +0 -11
- package/extensions/Project/EnsureCoreDeployedBeforeApiDeploy.js +0 -31
- package/extensions/Project/EnsureCoreDeployedBeforeApiDeploy.js.map +0 -1
- package/extensions/Project/EnsureTelemetryEnabledForOss.d.ts +0 -13
- package/extensions/Project/EnsureTelemetryEnabledForOss.js +0 -34
- package/extensions/Project/EnsureTelemetryEnabledForOss.js.map +0 -1
- package/extensions/Project/TelemetryNoLongerNewUser.d.ts +0 -8
- package/extensions/Project/TelemetryNoLongerNewUser.js +0 -14
- package/extensions/Project/TelemetryNoLongerNewUser.js.map +0 -1
- package/extensions/Project/ValidateEncryptionBeforeDeploy.d.ts +0 -12
- package/extensions/Project/ValidateEncryptionBeforeDeploy.js +0 -31
- package/extensions/Project/ValidateEncryptionBeforeDeploy.js.map +0 -1
- package/extensions/Project/ValidateProductionPulumiState.d.ts +0 -12
- package/extensions/Project/ValidateProductionPulumiState.js +0 -33
- package/extensions/Project/ValidateProductionPulumiState.js.map +0 -1
- package/features/Watch/getIotEndpoint.d.ts +0 -2
- package/features/Watch/getIotEndpoint.js +0 -18
- package/features/Watch/getIotEndpoint.js.map +0 -1
- package/features/Watch/replaceLambdaFunctions.d.ts +0 -19
- package/features/Watch/replaceLambdaFunctions.js +0 -72
- package/features/Watch/replaceLambdaFunctions.js.map +0 -1
- package/services/GetPulumiService/GetPulumiService.d.ts +0 -9
- package/services/GetPulumiService/GetPulumiService.js +0 -44
- package/services/GetPulumiService/GetPulumiService.js.map +0 -1
- package/services/GetPulumiService/index.d.ts +0 -1
- package/services/GetPulumiService/index.js +0 -1
- package/utils/getTemplatesFolderPath.d.ts +0 -1
- package/utils/getTemplatesFolderPath.js +0 -11
- package/utils/getTemplatesFolderPath.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/Project/ShowConfigChangeInfoBeforeAdminWatch.js","sources":["../../../src/extensions/Project/ShowConfigChangeInfoBeforeAdminWatch.ts"],"sourcesContent":["import { AdminBeforeWatch, UiService } from \"~/abstractions/index.js\";\n\nclass ShowConfigChangeInfoBeforeAdminWatchImpl implements AdminBeforeWatch.Interface {\n constructor(private ui: UiService.Interface) {}\n\n async execute() {\n this.ui
|
|
1
|
+
{"version":3,"file":"extensions/Project/ShowConfigChangeInfoBeforeAdminWatch.js","sources":["../../../src/extensions/Project/ShowConfigChangeInfoBeforeAdminWatch.ts"],"sourcesContent":["import { AdminBeforeWatch, UiService } from \"~/abstractions/index.js\";\nimport { showConfigChangeNotice } from \"./showConfigChangeNotice.js\";\n\nclass ShowConfigChangeInfoBeforeAdminWatchImpl implements AdminBeforeWatch.Interface {\n constructor(private ui: UiService.Interface) {}\n\n async execute() {\n showConfigChangeNotice(this.ui);\n }\n}\n\nexport const ShowConfigChangeInfoBeforeAdminWatch = AdminBeforeWatch.createImplementation({\n implementation: ShowConfigChangeInfoBeforeAdminWatchImpl,\n dependencies: [UiService]\n});\n"],"names":["ShowConfigChangeInfoBeforeAdminWatchImpl","ui","showConfigChangeNotice","ShowConfigChangeInfoBeforeAdminWatch","AdminBeforeWatch","UiService"],"mappings":";;AAGA,MAAMA;IACF,YAAoBC,EAAuB,CAAE;aAAzBA,EAAE,GAAFA;IAA0B;IAE9C,MAAM,UAAU;QACZC,uBAAuB,IAAI,CAAC,EAAE;IAClC;AACJ;AAEO,MAAMC,uCAAuCC,iBAAiB,oBAAoB,CAAC;IACtF,gBAAgBJ;IAChB,cAAc;QAACK;KAAU;AAC7B"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ApiBeforeWatch, UiService } from "../../abstractions/index.js";
|
|
2
|
+
import { showConfigChangeNotice } from "./showConfigChangeNotice.js";
|
|
2
3
|
class ShowConfigChangeInfoBeforeApiWatchImpl {
|
|
3
4
|
constructor(ui){
|
|
4
5
|
this.ui = ui;
|
|
5
6
|
}
|
|
6
7
|
async execute() {
|
|
7
|
-
this.ui
|
|
8
|
+
showConfigChangeNotice(this.ui);
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
11
|
const ShowConfigChangeInfoBeforeApiWatch = ApiBeforeWatch.createImplementation({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/Project/ShowConfigChangeInfoBeforeApiWatch.js","sources":["../../../src/extensions/Project/ShowConfigChangeInfoBeforeApiWatch.ts"],"sourcesContent":["import { ApiBeforeWatch, UiService } from \"~/abstractions/index.js\";\n\nclass ShowConfigChangeInfoBeforeApiWatchImpl implements ApiBeforeWatch.Interface {\n constructor(private ui: UiService.Interface) {}\n\n async execute() {\n this.ui
|
|
1
|
+
{"version":3,"file":"extensions/Project/ShowConfigChangeInfoBeforeApiWatch.js","sources":["../../../src/extensions/Project/ShowConfigChangeInfoBeforeApiWatch.ts"],"sourcesContent":["import { ApiBeforeWatch, UiService } from \"~/abstractions/index.js\";\nimport { showConfigChangeNotice } from \"./showConfigChangeNotice.js\";\n\nclass ShowConfigChangeInfoBeforeApiWatchImpl implements ApiBeforeWatch.Interface {\n constructor(private ui: UiService.Interface) {}\n\n async execute() {\n showConfigChangeNotice(this.ui);\n }\n}\n\nexport const ShowConfigChangeInfoBeforeApiWatch = ApiBeforeWatch.createImplementation({\n implementation: ShowConfigChangeInfoBeforeApiWatchImpl,\n dependencies: [UiService]\n});\n"],"names":["ShowConfigChangeInfoBeforeApiWatchImpl","ui","showConfigChangeNotice","ShowConfigChangeInfoBeforeApiWatch","ApiBeforeWatch","UiService"],"mappings":";;AAGA,MAAMA;IACF,YAAoBC,EAAuB,CAAE;aAAzBA,EAAE,GAAFA;IAA0B;IAE9C,MAAM,UAAU;QACZC,uBAAuB,IAAI,CAAC,EAAE;IAClC;AACJ;AAEO,MAAMC,qCAAqCC,eAAe,oBAAoB,CAAC;IAClF,gBAAgBJ;IAChB,cAAc;QAACK;KAAU;AAC7B"}
|
|
@@ -24,12 +24,13 @@ class WcpInjectTelemetryClientAfterBuildImpl {
|
|
|
24
24
|
const response = await fetch(latestTelemetryClientUrl);
|
|
25
25
|
if (!response.ok) throw new Error(`Failed to download telemetry client: ${response.status} - ${response.statusText}`);
|
|
26
26
|
const telemetryCodeAsString = await response.text();
|
|
27
|
+
const wrapperCode = telemetryCodeAsString + '\nimport * as _webinyBuiltHandlers from "./_handler.mjs";\nexport const streamHandler = _webinyBuiltHandlers.streamHandler;\n';
|
|
27
28
|
for(let i = 0; i < handlersPaths.length; i++){
|
|
28
29
|
const current = handlersPaths[i];
|
|
29
30
|
const builtHandlerPath = current.join("handler.mjs").toString();
|
|
30
31
|
const renamedHandlerPath = current.join("_handler.mjs").toString();
|
|
31
32
|
fs.renameSync(builtHandlerPath, renamedHandlerPath);
|
|
32
|
-
fs.writeFileSync(builtHandlerPath,
|
|
33
|
+
fs.writeFileSync(builtHandlerPath, wrapperCode);
|
|
33
34
|
}
|
|
34
35
|
logger.info("WCP telemetry client injected successfully.");
|
|
35
36
|
} catch (err) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/Project/WcpInjectTelemetryClientAfterBuild.js","sources":["../../../src/extensions/Project/WcpInjectTelemetryClientAfterBuild.ts"],"sourcesContent":["import {\n ApiAfterBuild,\n GetApp,\n GetProjectIdService,\n LoggerService,\n UiService,\n WcpService\n} from \"~/abstractions/index.js\";\nimport fs from \"fs\";\n\nclass WcpInjectTelemetryClientAfterBuildImpl implements ApiAfterBuild.Interface {\n constructor(\n private getProjectIdService: GetProjectIdService.Interface,\n private wcpService: WcpService.Interface,\n private loggerService: LoggerService.Interface,\n private getApp: GetApp.Interface,\n private uiService: UiService.Interface\n ) {}\n\n async execute() {\n const projectId = await this.getProjectIdService.execute();\n if (!projectId) {\n return;\n }\n\n const logger = this.loggerService;\n const ui = this.uiService;\n\n logger.info(\"Injecting WCP telemetry client into the GraphQL API handler...\");\n\n const app = this.getApp.execute(\"api\");\n\n // Only wrap the GraphQL API handler with the telemetry client.\n const handlersPaths = [app.paths.workspaceFolder.join(\"graphql\", \"build\")];\n\n // 1. Download telemetry client code.\n const latestTelemetryClientUrl = this.wcpService\n .getWcpApiUrl()\n .join(\"/clients/latest.mjs\")\n .toString();\n\n try {\n logger.info(`Downloading telemetry client from: ${latestTelemetryClientUrl}`);\n const response = await fetch(latestTelemetryClientUrl);\n if (!response.ok) {\n throw new Error(\n `Failed to download telemetry client: ${response.status} - ${response.statusText}`\n );\n }\n\n const telemetryCodeAsString = await response.text();\n\n // 2. Wrap the initially built code with the telemetry client code.\n for (let i = 0; i < handlersPaths.length; i++) {\n const current = handlersPaths[i];\n\n // 2.1 Move initially built `handler.mjs` into `_handler.mjs`.\n const builtHandlerPath = current.join(\"handler.mjs\").toString();\n const renamedHandlerPath = current.join(\"_handler.mjs\").toString();\n fs.renameSync(builtHandlerPath, renamedHandlerPath);\n\n // 2.2 Write downloaded telemetry client code as a new `handler.js`.\n fs.writeFileSync(builtHandlerPath,
|
|
1
|
+
{"version":3,"file":"extensions/Project/WcpInjectTelemetryClientAfterBuild.js","sources":["../../../src/extensions/Project/WcpInjectTelemetryClientAfterBuild.ts"],"sourcesContent":["import {\n ApiAfterBuild,\n GetApp,\n GetProjectIdService,\n LoggerService,\n UiService,\n WcpService\n} from \"~/abstractions/index.js\";\nimport fs from \"fs\";\n\nclass WcpInjectTelemetryClientAfterBuildImpl implements ApiAfterBuild.Interface {\n constructor(\n private getProjectIdService: GetProjectIdService.Interface,\n private wcpService: WcpService.Interface,\n private loggerService: LoggerService.Interface,\n private getApp: GetApp.Interface,\n private uiService: UiService.Interface\n ) {}\n\n async execute() {\n const projectId = await this.getProjectIdService.execute();\n if (!projectId) {\n return;\n }\n\n const logger = this.loggerService;\n const ui = this.uiService;\n\n logger.info(\"Injecting WCP telemetry client into the GraphQL API handler...\");\n\n const app = this.getApp.execute(\"api\");\n\n // Only wrap the GraphQL API handler with the telemetry client.\n const handlersPaths = [app.paths.workspaceFolder.join(\"graphql\", \"build\")];\n\n // 1. Download telemetry client code.\n const latestTelemetryClientUrl = this.wcpService\n .getWcpApiUrl()\n .join(\"/clients/latest.mjs\")\n .toString();\n\n try {\n logger.info(`Downloading telemetry client from: ${latestTelemetryClientUrl}`);\n const response = await fetch(latestTelemetryClientUrl);\n if (!response.ok) {\n throw new Error(\n `Failed to download telemetry client: ${response.status} - ${response.statusText}`\n );\n }\n\n const telemetryCodeAsString = await response.text();\n\n // The downloaded wrapper re-exports only `handler`, but the AWS api bundle also exports\n // `streamHandler` — the entry point of the response-streaming Lambda. Without this\n // re-export that function has no handler to load and fails at cold start.\n //\n // Two constraints shape how it's done:\n //\n // 1. UNWRAPPED. `streamHandler` carries the marker `awslambda.streamifyResponse` attaches,\n // and the runtime inspects the exported function for it; routing it through a telemetry\n // wrapper function would strip the marker and silently downgrade the function to\n // buffered responses. Re-exporting the same function object keeps the marker — at the\n // cost of no telemetry for that function, which is the right trade.\n //\n // 2. Via a NAMESPACE import, not `export { streamHandler } from ...`. This injection also\n // runs for the self-hosted api build, whose bundle has no `streamHandler` (streaming is\n // native there, with no Lambda involved), and a named re-export of a missing binding is\n // a hard ESM error that would break the whole handler. A namespace access just yields\n // `undefined`, which nothing on that path reads.\n //\n // BACKLOGGED, not settled. String-appending to an artifact downloaded from another repo\n // means a change to the shape of `clients/latest.mjs` breaks the build on customers'\n // machines. The agreed fix is one line on the WCP side — `export * from \"./_handler.mjs\"`\n // right after that file's own import, which passes through every bundle export unwrapped\n // (the explicit `export { handler }` still shadows the star, and `export *` re-exports\n // nothing on the self-hosted bundle). When that ships, this whole append goes away.\n const wrapperCode =\n telemetryCodeAsString +\n '\\nimport * as _webinyBuiltHandlers from \"./_handler.mjs\";\\n' +\n \"export const streamHandler = _webinyBuiltHandlers.streamHandler;\\n\";\n\n // 2. Wrap the initially built code with the telemetry client code.\n for (let i = 0; i < handlersPaths.length; i++) {\n const current = handlersPaths[i];\n\n // 2.1 Move initially built `handler.mjs` into `_handler.mjs`.\n const builtHandlerPath = current.join(\"handler.mjs\").toString();\n const renamedHandlerPath = current.join(\"_handler.mjs\").toString();\n fs.renameSync(builtHandlerPath, renamedHandlerPath);\n\n // 2.2 Write downloaded telemetry client code as a new `handler.js`.\n fs.writeFileSync(builtHandlerPath, wrapperCode);\n }\n\n logger.info(\"WCP telemetry client injected successfully.\");\n } catch (err) {\n logger.debug({ err }, \"WCP client is unavailable; telemetry was disabled.\");\n ui.warning(`WCP client is unavailable; telemetry was disabled.`);\n }\n }\n}\n\nexport const WcpInjectTelemetryClientAfterBuild = ApiAfterBuild.createImplementation({\n implementation: WcpInjectTelemetryClientAfterBuildImpl,\n dependencies: [GetProjectIdService, WcpService, LoggerService, GetApp, UiService]\n});\n"],"names":["WcpInjectTelemetryClientAfterBuildImpl","getProjectIdService","wcpService","loggerService","getApp","uiService","projectId","logger","ui","app","handlersPaths","latestTelemetryClientUrl","response","fetch","Error","telemetryCodeAsString","wrapperCode","i","current","builtHandlerPath","renamedHandlerPath","fs","err","WcpInjectTelemetryClientAfterBuild","ApiAfterBuild","GetProjectIdService","WcpService","LoggerService","GetApp","UiService"],"mappings":";;AAUA,MAAMA;IACF,YACYC,mBAAkD,EAClDC,UAAgC,EAChCC,aAAsC,EACtCC,MAAwB,EACxBC,SAA8B,CACxC;aALUJ,mBAAmB,GAAnBA;aACAC,UAAU,GAAVA;aACAC,aAAa,GAAbA;aACAC,MAAM,GAANA;aACAC,SAAS,GAATA;IACT;IAEH,MAAM,UAAU;QACZ,MAAMC,YAAY,MAAM,IAAI,CAAC,mBAAmB,CAAC,OAAO;QACxD,IAAI,CAACA,WACD;QAGJ,MAAMC,SAAS,IAAI,CAAC,aAAa;QACjC,MAAMC,KAAK,IAAI,CAAC,SAAS;QAEzBD,OAAO,IAAI,CAAC;QAEZ,MAAME,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;QAGhC,MAAMC,gBAAgB;YAACD,IAAI,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,WAAW;SAAS;QAG1E,MAAME,2BAA2B,IAAI,CAAC,UAAU,CAC3C,YAAY,GACZ,IAAI,CAAC,uBACL,QAAQ;QAEb,IAAI;YACAJ,OAAO,IAAI,CAAC,CAAC,mCAAmC,EAAEI,0BAA0B;YAC5E,MAAMC,WAAW,MAAMC,MAAMF;YAC7B,IAAI,CAACC,SAAS,EAAE,EACZ,MAAM,IAAIE,MACN,CAAC,qCAAqC,EAAEF,SAAS,MAAM,CAAC,GAAG,EAAEA,SAAS,UAAU,EAAE;YAI1F,MAAMG,wBAAwB,MAAMH,SAAS,IAAI;YA0BjD,MAAMI,cACFD,wBAAAA;YAKJ,IAAK,IAAIE,IAAI,GAAGA,IAAIP,cAAc,MAAM,EAAEO,IAAK;gBAC3C,MAAMC,UAAUR,aAAa,CAACO,EAAE;gBAGhC,MAAME,mBAAmBD,QAAQ,IAAI,CAAC,eAAe,QAAQ;gBAC7D,MAAME,qBAAqBF,QAAQ,IAAI,CAAC,gBAAgB,QAAQ;gBAChEG,GAAG,UAAU,CAACF,kBAAkBC;gBAGhCC,GAAG,aAAa,CAACF,kBAAkBH;YACvC;YAEAT,OAAO,IAAI,CAAC;QAChB,EAAE,OAAOe,KAAK;YACVf,OAAO,KAAK,CAAC;gBAAEe;YAAI,GAAG;YACtBd,GAAG,OAAO,CAAC;QACf;IACJ;AACJ;AAEO,MAAMe,qCAAqCC,cAAc,oBAAoB,CAAC;IACjF,gBAAgBxB;IAChB,cAAc;QAACyB;QAAqBC;QAAYC;QAAeC;QAAQC;KAAU;AACrF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type UiService } from "../../abstractions/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* The "restart the watch command" notice is wired per app (`ApiBeforeWatch` + `AdminBeforeWatch`), but a
|
|
4
|
+
* single `webiny watch` can now cover several apps in one process — self-hosted watches api and admin
|
|
5
|
+
* together. The message is identical either way, so print it once per process instead of once per app.
|
|
6
|
+
*/
|
|
7
|
+
export declare const showConfigChangeNotice: (ui: UiService.Interface) => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
let shown = false;
|
|
2
|
+
const showConfigChangeNotice = (ui)=>{
|
|
3
|
+
if (shown) return;
|
|
4
|
+
shown = true;
|
|
5
|
+
ui.info("Changes done in %s are not reloaded automatically. You'll have to restart the watch command in order for your changes to take effect.", "webiny.config.tsx");
|
|
6
|
+
};
|
|
7
|
+
export { showConfigChangeNotice };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=showConfigChangeNotice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extensions/Project/showConfigChangeNotice.js","sources":["../../../src/extensions/Project/showConfigChangeNotice.ts"],"sourcesContent":["import { type UiService } from \"~/abstractions/index.js\";\n\nlet shown = false;\n\n/**\n * The \"restart the watch command\" notice is wired per app (`ApiBeforeWatch` + `AdminBeforeWatch`), but a\n * single `webiny watch` can now cover several apps in one process — self-hosted watches api and admin\n * together. The message is identical either way, so print it once per process instead of once per app.\n */\nexport const showConfigChangeNotice = (ui: UiService.Interface) => {\n if (shown) {\n return;\n }\n\n shown = true;\n\n ui.info(\n [\n \"Changes done in %s are not reloaded automatically.\",\n \"You'll have to restart the watch command in order for your changes to take effect.\"\n ].join(\" \"),\n \"webiny.config.tsx\"\n );\n};\n"],"names":["shown","showConfigChangeNotice","ui"],"mappings":"AAEA,IAAIA,QAAQ;AAOL,MAAMC,yBAAyB,CAACC;IACnC,IAAIF,OACA;IAGJA,QAAQ;IAERE,GAAG,IAAI,CACH,yIAIA;AAER"}
|
package/extensions/Project.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import react from "react";
|
|
2
2
|
import { createPathResolver } from "../utils/createPathResolver.js";
|
|
3
|
-
import {
|
|
3
|
+
import { AdminBeforeBuild, AdminBeforeWatch, ApiAfterBuild, ApiBeforeWatch } from "./index.js";
|
|
4
4
|
const p = createPathResolver(import.meta.dirname, "Project");
|
|
5
5
|
const Project = ()=>/*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(AdminBeforeBuild, {
|
|
6
6
|
src: p("SetAdminAppEnvVarsBeforeBuild.js")
|
|
@@ -10,24 +10,8 @@ const Project = ()=>/*#__PURE__*/ react.createElement(react.Fragment, null, /*#_
|
|
|
10
10
|
src: p("ShowConfigChangeInfoBeforeAdminWatch.js")
|
|
11
11
|
}), /*#__PURE__*/ react.createElement(ApiAfterBuild, {
|
|
12
12
|
src: p("WcpInjectTelemetryClientAfterBuild.js")
|
|
13
|
-
}), /*#__PURE__*/ react.createElement(ApiBeforeDeploy, {
|
|
14
|
-
src: p("EnsureCoreDeployedBeforeApiDeploy.js")
|
|
15
|
-
}), /*#__PURE__*/ react.createElement(ApiBeforeWatch, {
|
|
16
|
-
src: p("EnsureApiDeployedBeforeWatch.js")
|
|
17
13
|
}), /*#__PURE__*/ react.createElement(ApiBeforeWatch, {
|
|
18
14
|
src: p("ShowConfigChangeInfoBeforeApiWatch.js")
|
|
19
|
-
}), /*#__PURE__*/ react.createElement(AdminBeforeBuild, {
|
|
20
|
-
src: p("EnsureApiDeployedBeforeAdminBuild.js")
|
|
21
|
-
}), /*#__PURE__*/ react.createElement(AdminBeforeWatch, {
|
|
22
|
-
src: p("EnsureApiDeployedBeforeAdminWatch.js")
|
|
23
|
-
}), /*#__PURE__*/ react.createElement(AdminAfterDeploy, {
|
|
24
|
-
src: p("TelemetryNoLongerNewUser.js")
|
|
25
|
-
}), /*#__PURE__*/ react.createElement(BeforeDeploy, {
|
|
26
|
-
src: p("EnsureTelemetryEnabledForOss.js")
|
|
27
|
-
}), /*#__PURE__*/ react.createElement(BeforeDeploy, {
|
|
28
|
-
src: p("ValidateEncryptionBeforeDeploy.js")
|
|
29
|
-
}), /*#__PURE__*/ react.createElement(CoreBeforeDeploy, {
|
|
30
|
-
src: p("ValidateProductionPulumiState.js")
|
|
31
15
|
}));
|
|
32
16
|
export { Project };
|
|
33
17
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/Project.js","sources":["../../src/extensions/Project.tsx"],"sourcesContent":["import React from \"react\";\nimport { createPathResolver } from \"~/utils/createPathResolver.js\";\nimport {\n
|
|
1
|
+
{"version":3,"file":"extensions/Project.js","sources":["../../src/extensions/Project.tsx"],"sourcesContent":["import React from \"react\";\nimport { createPathResolver } from \"~/utils/createPathResolver.js\";\nimport {\n AdminBeforeBuild,\n AdminBeforeWatch,\n ApiAfterBuild,\n ApiBeforeWatch\n} from \"~/extensions/index.js\";\n\nconst p = createPathResolver(import.meta.dirname, \"Project\");\n\nexport const Project = () => {\n return (\n <>\n <AdminBeforeBuild src={p(\"SetAdminAppEnvVarsBeforeBuild.js\")} />\n <AdminBeforeWatch src={p(\"SetAdminAppEnvVarsBeforeWatch.js\")} />\n <AdminBeforeWatch src={p(\"ShowConfigChangeInfoBeforeAdminWatch.js\")} />\n <ApiAfterBuild src={p(\"WcpInjectTelemetryClientAfterBuild.js\")} />\n <ApiBeforeWatch src={p(\"ShowConfigChangeInfoBeforeApiWatch.js\")} />\n </>\n );\n};\n"],"names":["p","createPathResolver","Project","AdminBeforeBuild","AdminBeforeWatch","ApiAfterBuild","ApiBeforeWatch"],"mappings":";;;AASA,MAAMA,IAAIC,mBAAmB,YAAY,OAAO,EAAE;AAE3C,MAAMC,UAAU,IACZ,WAAP,GACI,wDACI,oBAACC,kBAAgBA;QAAC,KAAKH,EAAE;sBACzB,oBAACI,kBAAgBA;QAAC,KAAKJ,EAAE;sBACzB,oBAACI,kBAAgBA;QAAC,KAAKJ,EAAE;sBACzB,oBAACK,eAAaA;QAAC,KAAKL,EAAE;sBACtB,oBAACM,gBAAcA;QAAC,KAAKN,EAAE"}
|
package/extensions/index.d.ts
CHANGED
|
@@ -8,9 +8,13 @@ import { DatabaseSetup } from "./DatabaseSetup.js";
|
|
|
8
8
|
import { FeatureFlags } from "./FeatureFlags.js";
|
|
9
9
|
import { BuildParam } from "./ApiBuildParam.js";
|
|
10
10
|
import { AdminBuildParam } from "./AdminBuildParam.js";
|
|
11
|
+
import { AdminApiUrl } from "./AdminApiUrl.js";
|
|
12
|
+
import { AdminWebsocketsUrl } from "./AdminWebsocketsUrl.js";
|
|
11
13
|
import { AdminExtension } from "./AdminExtension.js";
|
|
12
14
|
import { ApiExtension } from "./ApiExtension.js";
|
|
13
15
|
import { ApiMaxBundleSize } from "./ApiMaxBundleSize.js";
|
|
16
|
+
import { Encryption } from "./infra/Encryption.js";
|
|
17
|
+
import { Hashing } from "./infra/Hashing.js";
|
|
14
18
|
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
19
|
import { ProductionEnvironments, PulumiResourceNamePrefix, CoreStackOutputValue, ApiStackOutputValue, AdminStackOutputValue } from "./pulumi/index.js";
|
|
16
20
|
export { Telemetry };
|
|
@@ -23,9 +27,13 @@ export { FeatureFlags };
|
|
|
23
27
|
export { DatabaseSetup };
|
|
24
28
|
export { BuildParam };
|
|
25
29
|
export { AdminBuildParam };
|
|
30
|
+
export { AdminApiUrl };
|
|
31
|
+
export { AdminWebsocketsUrl };
|
|
26
32
|
export { AdminExtension };
|
|
27
33
|
export { ApiExtension };
|
|
28
34
|
export { ApiMaxBundleSize };
|
|
35
|
+
export { Encryption };
|
|
36
|
+
export { Hashing };
|
|
29
37
|
export { BeforeBuild };
|
|
30
38
|
export { BeforeDeploy };
|
|
31
39
|
export { BeforeWatch };
|
|
@@ -52,16 +60,17 @@ export { CoreStackOutputValue };
|
|
|
52
60
|
export { ApiStackOutputValue };
|
|
53
61
|
export { AdminStackOutputValue };
|
|
54
62
|
export declare const definitions: (import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
|
|
55
|
-
|
|
63
|
+
key: import("zod").ZodString;
|
|
64
|
+
value: import("zod").ZodAny;
|
|
56
65
|
}, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
|
|
57
|
-
|
|
66
|
+
environments: import("zod").ZodArray<import("zod").ZodString>;
|
|
58
67
|
}, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
|
|
59
|
-
|
|
68
|
+
prefix: import("zod").ZodString;
|
|
60
69
|
}, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
|
|
61
|
-
|
|
70
|
+
enabled: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
62
71
|
}, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
|
|
63
|
-
|
|
64
|
-
value: import("zod").ZodString
|
|
72
|
+
paramName: import("zod").ZodString;
|
|
73
|
+
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]>;
|
|
65
74
|
}, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
|
|
66
75
|
features: import("zod").ZodObject<{
|
|
67
76
|
multiTenancy: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
@@ -77,26 +86,37 @@ export declare const definitions: (import("./index.js").ExtensionDefinitionModel
|
|
|
77
86
|
fileManager: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
78
87
|
threatDetection: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
79
88
|
}, import("zod/v4/core").$strip>>;
|
|
80
|
-
aiPowerups: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
pageGeneration: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
85
|
-
}, import("zod/v4/core").$strip>>;
|
|
86
|
-
fileManager: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
87
|
-
imageEnrichment: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
88
|
-
}, import("zod/v4/core").$strip>>;
|
|
89
|
-
lexicalGeneration: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
89
|
+
aiPowerups: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodBoolean, import("zod").ZodObject<{
|
|
90
|
+
websiteBuilder: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
91
|
+
pageGeneration: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
92
|
+
pageTranslation: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
90
93
|
}, import("zod/v4/core").$strip>>;
|
|
91
|
-
|
|
94
|
+
fileManager: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
95
|
+
imageEnrichment: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
96
|
+
}, import("zod/v4/core").$strip>>;
|
|
97
|
+
lexicalGeneration: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
98
|
+
cms: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
99
|
+
entryGeneration: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
100
|
+
entryComparison: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
101
|
+
entryTranslation: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
102
|
+
}, import("zod/v4/core").$strip>>;
|
|
103
|
+
}, import("zod/v4/core").$strip>]>>;
|
|
104
|
+
abTesting: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
105
|
+
remoteComponents: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
92
106
|
}, import("zod/v4/core").$strip>;
|
|
93
107
|
}, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
|
|
94
|
-
|
|
108
|
+
id: import("zod").ZodString;
|
|
95
109
|
}, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
|
|
96
|
-
|
|
110
|
+
src: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string, string>>;
|
|
97
111
|
}, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
|
|
98
|
-
|
|
99
|
-
|
|
112
|
+
url: import("zod").ZodString;
|
|
113
|
+
}, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
|
|
114
|
+
varName: import("zod").ZodString;
|
|
115
|
+
value: import("zod").ZodString;
|
|
116
|
+
}, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
|
|
117
|
+
size: import("zod").ZodNumber;
|
|
118
|
+
}, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
|
|
119
|
+
src: import("zod").ZodString;
|
|
100
120
|
}, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
|
|
101
121
|
setupName: import("zod").ZodEnum<{
|
|
102
122
|
ddb: "ddb";
|
|
@@ -104,10 +124,16 @@ export declare const definitions: (import("./index.js").ExtensionDefinitionModel
|
|
|
104
124
|
"ddb+os": "ddb+os";
|
|
105
125
|
}>;
|
|
106
126
|
}, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
|
|
107
|
-
|
|
108
|
-
|
|
127
|
+
passphrase: import("zod").ZodString;
|
|
128
|
+
salt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
129
|
+
algorithm: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
130
|
+
"aes-128-gcm": "aes-128-gcm";
|
|
131
|
+
"aes-192-gcm": "aes-192-gcm";
|
|
132
|
+
"aes-256-gcm": "aes-256-gcm";
|
|
133
|
+
}>>;
|
|
109
134
|
}, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
|
|
110
|
-
|
|
135
|
+
pepper: import("zod").ZodOptional<import("zod").ZodString>;
|
|
136
|
+
cost: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
111
137
|
}, import("zod/v4/core").$strip>>)[];
|
|
112
138
|
export { Project } from "./Project.js";
|
|
113
139
|
export * from "../defineExtension/index.js";
|
package/extensions/index.js
CHANGED
|
@@ -8,9 +8,13 @@ import { DatabaseSetup } from "./DatabaseSetup.js";
|
|
|
8
8
|
import { FeatureFlags } from "./FeatureFlags.js";
|
|
9
9
|
import { BuildParam } from "./ApiBuildParam.js";
|
|
10
10
|
import { AdminBuildParam } from "./AdminBuildParam.js";
|
|
11
|
+
import { AdminApiUrl } from "./AdminApiUrl.js";
|
|
12
|
+
import { AdminWebsocketsUrl } from "./AdminWebsocketsUrl.js";
|
|
11
13
|
import { AdminExtension } from "./AdminExtension.js";
|
|
12
14
|
import { ApiExtension } from "./ApiExtension.js";
|
|
13
15
|
import { ApiMaxBundleSize } from "./ApiMaxBundleSize.js";
|
|
16
|
+
import { Encryption } from "./infra/Encryption.js";
|
|
17
|
+
import { Hashing } from "./infra/Hashing.js";
|
|
14
18
|
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
19
|
import { AdminStackOutputValue, ApiStackOutputValue, CoreStackOutputValue, ProductionEnvironments, PulumiResourceNamePrefix } from "./pulumi/index.js";
|
|
16
20
|
export * from "../defineExtension/index.js";
|
|
@@ -50,11 +54,15 @@ const definitions = [
|
|
|
50
54
|
DatabaseSetup.def,
|
|
51
55
|
BuildParam.def,
|
|
52
56
|
AdminBuildParam.def,
|
|
57
|
+
AdminApiUrl.def,
|
|
58
|
+
AdminWebsocketsUrl.def,
|
|
53
59
|
AdminExtension.def,
|
|
54
60
|
ApiExtension.def,
|
|
55
|
-
ApiMaxBundleSize.def
|
|
61
|
+
ApiMaxBundleSize.def,
|
|
62
|
+
Encryption.def,
|
|
63
|
+
Hashing.def
|
|
56
64
|
];
|
|
57
65
|
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 };
|
|
66
|
+
export { AdminAfterBuild, AdminAfterDeploy, AdminApiUrl, AdminBeforeBuild, AdminBeforeDeploy, AdminBeforeWatch, AdminBuildParam, AdminExtension, AdminStackOutputValue, AdminWebsocketsUrl, AfterBuild, AfterDeploy, ApiAfterBuild, ApiAfterDeploy, ApiBeforeBuild, ApiBeforeDeploy, ApiBeforeWatch, ApiExtension, ApiMaxBundleSize, ApiStackOutputValue, BeforeBuild, BeforeDeploy, BeforeWatch, BuildParam, CoreAfterBuild, CoreAfterDeploy, CoreBeforeBuild, CoreBeforeDeploy, CoreBeforeWatch, CoreStackOutputValue, DatabaseSetup, Encryption, EnvVar, ExtensionDefinitions, FeatureFlags, Hashing, ProductionEnvironments, ProjectDecorator, ProjectId, ProjectImplementation, PulumiResourceNamePrefix, Telemetry, definitions };
|
|
59
67
|
|
|
60
68
|
//# sourceMappingURL=index.js.map
|
package/extensions/index.js.map
CHANGED
|
@@ -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":"
|
|
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 { 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 { 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\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","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":";;;;;;;;;;;;;;;;;;;;AAoGO,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,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,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("
|
|
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("
|
|
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("
|
|
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("
|
|
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 self-hosted server 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 self-hosted server 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,
|
|
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,
|
|
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>;
|