firebase-tools 15.33.0 → 15.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/lib/apphosting/backend.js +1 -1
- package/lib/checkValidTargetFilters.js +1 -0
- package/lib/command.js +30 -23
- package/lib/commands/crashlytics-heapdumps-disable.js +26 -0
- package/lib/commands/crashlytics-heapdumps-enable.js +54 -0
- package/lib/commands/crashlytics-heapdumps-status.js +32 -0
- package/lib/commands/deploy.js +3 -0
- package/lib/commands/hosting-clone.js +49 -9
- package/lib/commands/index.js +9 -0
- package/lib/commands/init.js +7 -0
- package/lib/commands/run-services-update.js +16 -0
- package/lib/crashlytics/onboarding.js +2 -2
- package/lib/crashlytics/profilingManager.js +195 -0
- package/lib/deploy/apphosting/prepare.js +1 -0
- package/lib/deploy/auth/deploy.js +1 -1
- package/lib/deploy/auth/prepare.js +6 -7
- package/lib/deploy/firestore/prepare.js +5 -5
- package/lib/deploy/functions/release/executor.js +7 -3
- package/lib/deploy/functions/release/fabricator.js +41 -9
- package/lib/deploy/functions/release/sourceTokenScraper.js +1 -1
- package/lib/deploy/index.js +5 -0
- package/lib/deploy/run/args.js +2 -0
- package/lib/deploy/run/buildEnv.js +72 -0
- package/lib/deploy/run/deploy.js +214 -0
- package/lib/deploy/run/index.js +23 -0
- package/lib/deploy/run/prepare.js +47 -0
- package/lib/deploy/run/prereqs.js +32 -0
- package/lib/deploy/run/release.js +9 -0
- package/lib/deploy/run/update.js +50 -0
- package/lib/deploy/run/util.js +73 -0
- package/lib/emulator/apphosting/serve.js +1 -1
- package/lib/emulator/auth/utils.js +1 -1
- package/lib/emulator/commandUtils.js +7 -3
- package/lib/emulator/dataconnect/pgliteServer.js +1 -1
- package/lib/emulator/dataconnectEmulator.js +1 -1
- package/lib/emulator/download.js +1 -1
- package/lib/emulator/downloadableEmulatorInfo.json +31 -31
- package/lib/emulator/downloadableEmulators.js +1 -3
- package/lib/emulator/eventarcEmulator.js +1 -1
- package/lib/emulator/functionsEmulatorShared.js +1 -41
- package/lib/experiments.js +1 -12
- package/lib/firestore/validator.js +1 -1
- package/lib/functions/projectConfig.js +10 -5
- package/lib/gcp/cloudsql/permissions.js +21 -32
- package/lib/gcp/cloudsql/permissionsSetup.js +6 -6
- package/lib/gcp/storage.js +9 -5
- package/lib/init/features/index.js +4 -1
- package/lib/init/features/run.js +159 -0
- package/lib/init/index.js +6 -0
- package/lib/profileReport.js +8 -5
- package/lib/throttler/throttler.js +1 -0
- package/lib/tsconfig.compile.tsbuildinfo +1 -1
- package/lib/tsconfig.publish.tsbuildinfo +1 -1
- package/package.json +2 -8
- package/schema/firebaserc.json +133 -0
- package/lib/mcp/resources/guides/init_data_connect.js +0 -30
- package/lib/mcp/resources/guides/init_rtdb.js +0 -30
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateService = updateService;
|
|
4
|
+
const clc = require("colorette");
|
|
5
|
+
const __1 = require("..");
|
|
6
|
+
const error_1 = require("../../error");
|
|
7
|
+
const projectUtils_1 = require("../../projectUtils");
|
|
8
|
+
const util_1 = require("./util");
|
|
9
|
+
async function updateService(serviceId, region, options) {
|
|
10
|
+
const settings = {
|
|
11
|
+
baseImage: readFlagPair(options.baseImage, options.clearBaseImage, "base-image"),
|
|
12
|
+
};
|
|
13
|
+
if (Object.values(settings).every((value) => value === undefined)) {
|
|
14
|
+
throw new error_1.FirebaseError("Specify a setting to update: --base-image <baseImage> or --clear-base-image.");
|
|
15
|
+
}
|
|
16
|
+
const projectId = (0, projectUtils_1.needProjectId)(options);
|
|
17
|
+
const config = findServiceToUpdate(serviceId, region, options);
|
|
18
|
+
if (settings.baseImage === null && config.localBuild) {
|
|
19
|
+
throw new error_1.FirebaseError(`Cannot clear the base image of ${config.serviceId}: local builds need one.`);
|
|
20
|
+
}
|
|
21
|
+
if (!(await (0, util_1.getExistingService)(projectId, config.region, config.serviceId))) {
|
|
22
|
+
const howToCreate = config.localBuild
|
|
23
|
+
? clc.bold("firebase init run")
|
|
24
|
+
: `${clc.bold("firebase init run")} or ` +
|
|
25
|
+
clc.bold(`firebase deploy --only run:${(0, util_1.fullServiceName)(config)}`);
|
|
26
|
+
throw new error_1.FirebaseError(`Cloud Run service ${config.serviceId} doesn't exist in ${config.region} yet. ` +
|
|
27
|
+
`Create it with ${howToCreate}, then update it.`);
|
|
28
|
+
}
|
|
29
|
+
await (0, __1.deploy)(["run"], { ...options, only: `run:${(0, util_1.fullServiceName)(config)}` }, settings);
|
|
30
|
+
}
|
|
31
|
+
function readFlagPair(value, clear, flag) {
|
|
32
|
+
if (value && clear) {
|
|
33
|
+
throw new error_1.FirebaseError(`Use either --${flag} or --clear-${flag}, not both.`);
|
|
34
|
+
}
|
|
35
|
+
return clear ? null : value;
|
|
36
|
+
}
|
|
37
|
+
function findServiceToUpdate(serviceId, region, options) {
|
|
38
|
+
const matches = (0, util_1.getAllServiceConfigs)(options).filter((c) => c.serviceId === serviceId && (!region || c.region === region));
|
|
39
|
+
if (!matches.length) {
|
|
40
|
+
const service = region ? `${serviceId} in ${region}` : serviceId;
|
|
41
|
+
throw new error_1.FirebaseError(`Cloud Run service ${service} not detected in firebase.json.`);
|
|
42
|
+
}
|
|
43
|
+
if (matches.length > 1) {
|
|
44
|
+
const regions = matches.map((c) => c.region);
|
|
45
|
+
const example = `firebase run:services:update ${serviceId} --region ${regions[0]}`;
|
|
46
|
+
throw new error_1.FirebaseError(`firebase.json lists ${serviceId} in ${regions.length} regions: ${regions.join(", ")}. ` +
|
|
47
|
+
`Pick one with --region, e.g. ${example}`);
|
|
48
|
+
}
|
|
49
|
+
return matches[0];
|
|
50
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAllServiceConfigs = getAllServiceConfigs;
|
|
4
|
+
exports.getServiceConfigs = getServiceConfigs;
|
|
5
|
+
exports.findServices = findServices;
|
|
6
|
+
exports.fullServiceName = fullServiceName;
|
|
7
|
+
exports.getExistingService = getExistingService;
|
|
8
|
+
exports.mainContainer = mainContainer;
|
|
9
|
+
const error_1 = require("../../error");
|
|
10
|
+
const runv2 = require("../../gcp/runv2");
|
|
11
|
+
const utils_1 = require("../../utils");
|
|
12
|
+
function getAllServiceConfigs(options) {
|
|
13
|
+
const configs = [options.config?.src?.run ?? []].flat();
|
|
14
|
+
const names = new Set();
|
|
15
|
+
for (const config of configs) {
|
|
16
|
+
if (!config.region) {
|
|
17
|
+
throw new error_1.FirebaseError(`Cloud Run service ${config.serviceId} is missing a region in firebase.json.`);
|
|
18
|
+
}
|
|
19
|
+
const name = fullServiceName(config);
|
|
20
|
+
if (names.has(name)) {
|
|
21
|
+
throw new error_1.FirebaseError(`Cloud Run service ${name} is listed more than once in firebase.json.`);
|
|
22
|
+
}
|
|
23
|
+
names.add(name);
|
|
24
|
+
}
|
|
25
|
+
return configs;
|
|
26
|
+
}
|
|
27
|
+
function getServiceConfigs(options) {
|
|
28
|
+
const configs = getAllServiceConfigs(options);
|
|
29
|
+
const filters = options.only ? options.only.split(",") : ["run"];
|
|
30
|
+
if (filters.includes("run")) {
|
|
31
|
+
return configs;
|
|
32
|
+
}
|
|
33
|
+
const selected = filters
|
|
34
|
+
.filter((f) => f.startsWith("run:"))
|
|
35
|
+
.flatMap((filter) => {
|
|
36
|
+
const name = filter.slice("run:".length);
|
|
37
|
+
const matches = findServices(configs, name);
|
|
38
|
+
if (!matches.length) {
|
|
39
|
+
throw new error_1.FirebaseError(`Cloud Run service ${name} not detected in firebase.json.`);
|
|
40
|
+
}
|
|
41
|
+
if (matches.length > 1) {
|
|
42
|
+
(0, utils_1.logLabeledBullet)("run", `${filter} matches ${matches.length} services in firebase.json: ` +
|
|
43
|
+
`${matches.map(fullServiceName).join(", ")}. Deploying all of them. ` +
|
|
44
|
+
`To deploy just one, use --only ${filter}:<region>.`);
|
|
45
|
+
}
|
|
46
|
+
return matches;
|
|
47
|
+
});
|
|
48
|
+
return configs.filter((c) => selected.includes(c));
|
|
49
|
+
}
|
|
50
|
+
function findServices(configs, name) {
|
|
51
|
+
const [serviceId, region, ...rest] = name.split(":");
|
|
52
|
+
if (!serviceId || region === "" || rest.length) {
|
|
53
|
+
throw new error_1.FirebaseError(`Invalid Cloud Run service "${name}". Use <serviceId> or <serviceId>:<region>.`);
|
|
54
|
+
}
|
|
55
|
+
return configs.filter((c) => c.serviceId === serviceId && (!region || c.region === region));
|
|
56
|
+
}
|
|
57
|
+
function fullServiceName(config) {
|
|
58
|
+
return `${config.serviceId}:${config.region}`;
|
|
59
|
+
}
|
|
60
|
+
async function getExistingService(projectId, region, serviceId) {
|
|
61
|
+
try {
|
|
62
|
+
return await runv2.getService(projectId, region, serviceId);
|
|
63
|
+
}
|
|
64
|
+
catch (err) {
|
|
65
|
+
if ((0, error_1.getErrStatus)(err) === 404) {
|
|
66
|
+
return undefined;
|
|
67
|
+
}
|
|
68
|
+
throw err;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
function mainContainer(template) {
|
|
72
|
+
return template?.containers?.[0];
|
|
73
|
+
}
|
|
@@ -107,7 +107,7 @@ async function tripFirebasePostinstall(rootDirectory, env) {
|
|
|
107
107
|
for (const dependency of dependenciesToSearch) {
|
|
108
108
|
if (dependency.name === "@firebase/util" &&
|
|
109
109
|
(0, semver_1.gte)(dependency.version, "1.11.0") &&
|
|
110
|
-
firebaseUtilPaths.
|
|
110
|
+
!firebaseUtilPaths.includes(dependency.path)) {
|
|
111
111
|
firebaseUtilPaths.push(dependency.path);
|
|
112
112
|
}
|
|
113
113
|
if (dependency.dependencies) {
|
|
@@ -19,7 +19,7 @@ function isValidEmailAddress(email) {
|
|
|
19
19
|
return /^[^@]+@[^@]+$/.test(email);
|
|
20
20
|
}
|
|
21
21
|
function isValidPhoneNumber(phoneNumber) {
|
|
22
|
-
return
|
|
22
|
+
return phoneNumber.startsWith("+");
|
|
23
23
|
}
|
|
24
24
|
function canonicalizeEmailAddress(email) {
|
|
25
25
|
return email.toLowerCase();
|
|
@@ -214,7 +214,7 @@ function processKillSignal(signal, res, rej, options) {
|
|
|
214
214
|
}
|
|
215
215
|
catch (e) {
|
|
216
216
|
logger_1.logger.debug(e);
|
|
217
|
-
rej();
|
|
217
|
+
rej((0, error_2.getError)(e));
|
|
218
218
|
}
|
|
219
219
|
};
|
|
220
220
|
}
|
|
@@ -251,13 +251,17 @@ async function runScript(script, extraEnv) {
|
|
|
251
251
|
return new Promise((resolve, reject) => {
|
|
252
252
|
proc.on("error", (err) => {
|
|
253
253
|
utils.logWarning(`There was an error running the script: ${JSON.stringify(err)}`);
|
|
254
|
-
reject(
|
|
254
|
+
reject(new error_1.FirebaseError("There was an error running the script.", {
|
|
255
|
+
original: err instanceof Error ? err : undefined,
|
|
256
|
+
}));
|
|
255
257
|
});
|
|
256
258
|
const exitDelayMs = 500;
|
|
257
259
|
proc.once("exit", (code, signal) => {
|
|
258
260
|
if (signal) {
|
|
259
261
|
utils.logWarning(`Script exited with signal: ${signal}`);
|
|
260
|
-
setTimeout(
|
|
262
|
+
setTimeout(() => {
|
|
263
|
+
reject(new error_1.FirebaseError(`Script exited with signal: ${signal}`));
|
|
264
|
+
}, exitDelayMs);
|
|
261
265
|
return;
|
|
262
266
|
}
|
|
263
267
|
const exitCode = code || 0;
|
|
@@ -165,7 +165,7 @@ class PostgresServer {
|
|
|
165
165
|
return db;
|
|
166
166
|
}
|
|
167
167
|
catch (err) {
|
|
168
|
-
if (pg17Dir && (0, error_1.hasMessage)(err) &&
|
|
168
|
+
if (pg17Dir && (0, error_1.hasMessage)(err) && err.message.includes("Database already exists")) {
|
|
169
169
|
fs.rmSync(pg17Dir, { force: true, recursive: true });
|
|
170
170
|
const db = new pglite_1.PGlite({ ...baseArgs, dataDir: pg17Dir });
|
|
171
171
|
await db.waitReady;
|
|
@@ -105,7 +105,7 @@ class DataConnectEmulator {
|
|
|
105
105
|
const emuInfo = await this.emulatorClient.getInfo();
|
|
106
106
|
if (!emuInfo) {
|
|
107
107
|
this.logger.logLabeled("ERROR", "dataconnect", "Could not connect to SQL Connect emulator. Check dataconnect-debug.log for more details.");
|
|
108
|
-
return Promise.reject();
|
|
108
|
+
return Promise.reject(new error_1.FirebaseError("Could not connect to SQL Connect emulator. Check dataconnect-debug.log for more details."));
|
|
109
109
|
}
|
|
110
110
|
return Promise.resolve();
|
|
111
111
|
}
|
package/lib/emulator/download.js
CHANGED
|
@@ -71,7 +71,7 @@ function removeOldFiles(name, emulator, removeAllVersions = false) {
|
|
|
71
71
|
const files = fs.readdirSync(emulator.opts.cacheDir);
|
|
72
72
|
for (const file of files) {
|
|
73
73
|
const fullFilePath = path.join(emulator.opts.cacheDir, file);
|
|
74
|
-
if (file.
|
|
74
|
+
if (!file.includes(emulator.opts.namePrefix)) {
|
|
75
75
|
continue;
|
|
76
76
|
}
|
|
77
77
|
if ((fullFilePath !== currentLocalPath && fullFilePath !== currentUnzipPath) ||
|
|
@@ -44,46 +44,46 @@
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
"pubsub": {
|
|
47
|
-
"version": "0.8.
|
|
48
|
-
"expectedSize":
|
|
49
|
-
"expectedChecksum": "
|
|
50
|
-
"expectedChecksumSHA256": "
|
|
51
|
-
"remoteUrl": "https://storage.googleapis.com/firebase-preview-drop/emulator/pubsub-emulator-0.8.
|
|
52
|
-
"downloadPathRelativeToCacheDir": "pubsub-emulator-0.8.
|
|
53
|
-
"binaryPathRelativeToCacheDir": "pubsub-emulator-0.8.
|
|
47
|
+
"version": "0.8.37",
|
|
48
|
+
"expectedSize": 53029797,
|
|
49
|
+
"expectedChecksum": "62cc150027ebea586c2c53c48c2cbb25",
|
|
50
|
+
"expectedChecksumSHA256": "c83383e0c71633e58abad6fdc9c0312c7d0f6a5a34236c42e3f92eb24ded1c26",
|
|
51
|
+
"remoteUrl": "https://storage.googleapis.com/firebase-preview-drop/emulator/pubsub-emulator-0.8.37.zip",
|
|
52
|
+
"downloadPathRelativeToCacheDir": "pubsub-emulator-0.8.37.zip",
|
|
53
|
+
"binaryPathRelativeToCacheDir": "pubsub-emulator-0.8.37/pubsub-emulator/bin/cloud-pubsub-emulator"
|
|
54
54
|
},
|
|
55
55
|
"dataconnect": {
|
|
56
56
|
"darwin": {
|
|
57
|
-
"version": "3.4.
|
|
58
|
-
"expectedSize":
|
|
59
|
-
"expectedChecksum": "
|
|
60
|
-
"expectedChecksumSHA256": "
|
|
61
|
-
"remoteUrl": "https://storage.googleapis.com/firemat-preview-drop/emulator/dataconnect-emulator-macos-amd64-v3.4.
|
|
62
|
-
"downloadPathRelativeToCacheDir": "dataconnect-emulator-3.4.
|
|
57
|
+
"version": "3.4.23",
|
|
58
|
+
"expectedSize": 33978064,
|
|
59
|
+
"expectedChecksum": "98d206c1a991b9a92609659d0533c9fd",
|
|
60
|
+
"expectedChecksumSHA256": "b88f852a34fbaad55c565d09aa758b7614ffba2da73a15218df5f078d8673d61",
|
|
61
|
+
"remoteUrl": "https://storage.googleapis.com/firemat-preview-drop/emulator/dataconnect-emulator-macos-amd64-v3.4.23",
|
|
62
|
+
"downloadPathRelativeToCacheDir": "dataconnect-emulator-3.4.23"
|
|
63
63
|
},
|
|
64
64
|
"darwin_arm64": {
|
|
65
|
-
"version": "3.4.
|
|
66
|
-
"expectedSize":
|
|
67
|
-
"expectedChecksum": "
|
|
68
|
-
"expectedChecksumSHA256": "
|
|
69
|
-
"remoteUrl": "https://storage.googleapis.com/firemat-preview-drop/emulator/dataconnect-emulator-macos-arm64-v3.4.
|
|
70
|
-
"downloadPathRelativeToCacheDir": "dataconnect-emulator-3.4.
|
|
65
|
+
"version": "3.4.23",
|
|
66
|
+
"expectedSize": 31927234,
|
|
67
|
+
"expectedChecksum": "c232606e8a5d8fbe2be2f090afea32ad",
|
|
68
|
+
"expectedChecksumSHA256": "a58ded5bcaf5a6cfb3156add51c08c3a126a3f921b10c7426c9e9fb31aa2d0e5",
|
|
69
|
+
"remoteUrl": "https://storage.googleapis.com/firemat-preview-drop/emulator/dataconnect-emulator-macos-arm64-v3.4.23",
|
|
70
|
+
"downloadPathRelativeToCacheDir": "dataconnect-emulator-3.4.23"
|
|
71
71
|
},
|
|
72
72
|
"win32": {
|
|
73
|
-
"version": "3.4.
|
|
74
|
-
"expectedSize":
|
|
75
|
-
"expectedChecksum": "
|
|
76
|
-
"expectedChecksumSHA256": "
|
|
77
|
-
"remoteUrl": "https://storage.googleapis.com/firemat-preview-drop/emulator/dataconnect-emulator-windows-amd64-v3.4.
|
|
78
|
-
"downloadPathRelativeToCacheDir": "dataconnect-emulator-3.4.
|
|
73
|
+
"version": "3.4.23",
|
|
74
|
+
"expectedSize": 33988608,
|
|
75
|
+
"expectedChecksum": "962fbd2e1ba814f68df68971c44554d8",
|
|
76
|
+
"expectedChecksumSHA256": "ecccb3bb3df107b5792975e7cdf281476630042483b5fe3c334606fcc3770156",
|
|
77
|
+
"remoteUrl": "https://storage.googleapis.com/firemat-preview-drop/emulator/dataconnect-emulator-windows-amd64-v3.4.23",
|
|
78
|
+
"downloadPathRelativeToCacheDir": "dataconnect-emulator-3.4.23.exe"
|
|
79
79
|
},
|
|
80
80
|
"linux": {
|
|
81
|
-
"version": "3.4.
|
|
82
|
-
"expectedSize":
|
|
83
|
-
"expectedChecksum": "
|
|
84
|
-
"expectedChecksumSHA256": "
|
|
85
|
-
"remoteUrl": "https://storage.googleapis.com/firemat-preview-drop/emulator/dataconnect-emulator-linux-amd64-v3.4.
|
|
86
|
-
"downloadPathRelativeToCacheDir": "dataconnect-emulator-3.4.
|
|
81
|
+
"version": "3.4.23",
|
|
82
|
+
"expectedSize": 33058978,
|
|
83
|
+
"expectedChecksum": "b1e424fbcf1e6a17bb9220e15fd8fee2",
|
|
84
|
+
"expectedChecksumSHA256": "337ec8a195d6198e83bdeb070b12a64cecbf7aa1ba2c190b6611f78cd128a21a",
|
|
85
|
+
"remoteUrl": "https://storage.googleapis.com/firemat-preview-drop/emulator/dataconnect-emulator-linux-amd64-v3.4.23",
|
|
86
|
+
"downloadPathRelativeToCacheDir": "dataconnect-emulator-3.4.23"
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -459,9 +459,7 @@ async function start(targetName, args, extraEnv = {}) {
|
|
|
459
459
|
return _runBinary(emulator, command, extraEnv);
|
|
460
460
|
}
|
|
461
461
|
function isIncomaptibleArchError(err) {
|
|
462
|
-
return ((0, error_1.hasMessage)(err) &&
|
|
463
|
-
/Unknown system error/.test(err.message ?? "") &&
|
|
464
|
-
process.platform === "darwin");
|
|
462
|
+
return ((0, error_1.hasMessage)(err) && err.message.includes("Unknown system error") && process.platform === "darwin");
|
|
465
463
|
}
|
|
466
464
|
function emulatorVersionOverride(emulator) {
|
|
467
465
|
return process.env[`${emulator.toUpperCase()}_EMULATOR_VERSION`];
|
|
@@ -125,7 +125,7 @@ class EventarcEmulator {
|
|
|
125
125
|
async triggerEventFunction(channel, event) {
|
|
126
126
|
if (!registry_1.EmulatorRegistry.isRunning(types_1.Emulators.FUNCTIONS)) {
|
|
127
127
|
this.logger.log("INFO", "Functions emulator not found. This should not happen.");
|
|
128
|
-
return Promise.reject();
|
|
128
|
+
return Promise.reject(new error_1.FirebaseError("Functions emulator not found. This should not happen."));
|
|
129
129
|
}
|
|
130
130
|
const key = `${event.type}-${channel}`;
|
|
131
131
|
const triggers = this.events[key] || [];
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.EVENTARC_SOURCE_ENV = void 0;
|
|
4
4
|
exports.getEventTenantId = getEventTenantId;
|
|
5
5
|
exports.eventServiceImplemented = eventServiceImplemented;
|
|
6
6
|
exports.prepareEndpoints = prepareEndpoints;
|
|
7
7
|
exports.emulatedFunctionsFromEndpoints = emulatedFunctionsFromEndpoints;
|
|
8
8
|
exports.emulatedFunctionsByRegion = emulatedFunctionsByRegion;
|
|
9
|
-
exports.getEmulatedTriggersFromDefinitions = getEmulatedTriggersFromDefinitions;
|
|
10
9
|
exports.getTemporarySocketPath = getTemporarySocketPath;
|
|
11
10
|
exports.getFunctionService = getFunctionService;
|
|
12
11
|
exports.getServiceFromEventType = getServiceFromEventType;
|
|
13
|
-
exports.waitForBody = waitForBody;
|
|
14
12
|
exports.findModuleRoot = findModuleRoot;
|
|
15
13
|
exports.formatHost = formatHost;
|
|
16
14
|
exports.getSignatureType = getSignatureType;
|
|
@@ -20,7 +18,6 @@ const os = require("os");
|
|
|
20
18
|
const path = require("path");
|
|
21
19
|
const fs = require("fs");
|
|
22
20
|
const crypto_1 = require("crypto");
|
|
23
|
-
const _ = require("lodash");
|
|
24
21
|
const backend = require("../deploy/functions/backend");
|
|
25
22
|
const build = require("../deploy/functions/build");
|
|
26
23
|
const constants_1 = require("./constants");
|
|
@@ -49,26 +46,6 @@ function getEventTenantId(eventPayload) {
|
|
|
49
46
|
return undefined;
|
|
50
47
|
}
|
|
51
48
|
exports.EVENTARC_SOURCE_ENV = "EVENTARC_CLOUD_EVENT_SOURCE";
|
|
52
|
-
class EmulatedTrigger {
|
|
53
|
-
constructor(definition, module) {
|
|
54
|
-
this.definition = definition;
|
|
55
|
-
this.module = module;
|
|
56
|
-
}
|
|
57
|
-
get memoryLimitBytes() {
|
|
58
|
-
return (this.definition.availableMemoryMb || 128) * 1024 * 1024;
|
|
59
|
-
}
|
|
60
|
-
get timeoutMs() {
|
|
61
|
-
return (this.definition.timeoutSeconds || 60) * 1000;
|
|
62
|
-
}
|
|
63
|
-
getRawFunction() {
|
|
64
|
-
if (!this.module) {
|
|
65
|
-
throw new Error("EmulatedTrigger has not been provided a module.");
|
|
66
|
-
}
|
|
67
|
-
const func = _.get(this.module, this.definition.entryPoint);
|
|
68
|
-
return func.__emulator_func || func;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
exports.EmulatedTrigger = EmulatedTrigger;
|
|
72
49
|
function eventServiceImplemented(eventType) {
|
|
73
50
|
return V2_EVENTS.includes(eventType);
|
|
74
51
|
}
|
|
@@ -191,12 +168,6 @@ function emulatedFunctionsByRegion(definitions, secretEnvVariables = []) {
|
|
|
191
168
|
}
|
|
192
169
|
return regionDefinitions;
|
|
193
170
|
}
|
|
194
|
-
function getEmulatedTriggersFromDefinitions(definitions, module) {
|
|
195
|
-
return definitions.reduce((obj, definition) => {
|
|
196
|
-
obj[definition.id] = new EmulatedTrigger(definition, module);
|
|
197
|
-
return obj;
|
|
198
|
-
}, {});
|
|
199
|
-
}
|
|
200
171
|
function getTemporarySocketPath() {
|
|
201
172
|
const rand = (0, crypto_1.randomBytes)(8).toString("hex");
|
|
202
173
|
if (process.platform === "win32") {
|
|
@@ -257,17 +228,6 @@ function getServiceFromEventType(eventType) {
|
|
|
257
228
|
}
|
|
258
229
|
return "";
|
|
259
230
|
}
|
|
260
|
-
function waitForBody(req) {
|
|
261
|
-
let data = "";
|
|
262
|
-
return new Promise((resolve) => {
|
|
263
|
-
req.on("data", (chunk) => {
|
|
264
|
-
data += chunk;
|
|
265
|
-
});
|
|
266
|
-
req.on("end", () => {
|
|
267
|
-
resolve(data);
|
|
268
|
-
});
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
231
|
function findModuleRoot(moduleName, filepath) {
|
|
272
232
|
const hierarchy = filepath.split(path.sep);
|
|
273
233
|
for (let i = 0; i < hierarchy.length; i++) {
|
package/lib/experiments.js
CHANGED
|
@@ -53,10 +53,6 @@ exports.ALL_EXPERIMENTS = experiments({
|
|
|
53
53
|
default: false,
|
|
54
54
|
public: true,
|
|
55
55
|
},
|
|
56
|
-
runfunctions: {
|
|
57
|
-
shortDescription: "Functions created using the V2 API target Cloud Run Functions (not production ready)",
|
|
58
|
-
public: false,
|
|
59
|
-
},
|
|
60
56
|
functionsiac: {
|
|
61
57
|
shortDescription: "Exports functions IaC code",
|
|
62
58
|
public: false,
|
|
@@ -87,10 +83,6 @@ exports.ALL_EXPERIMENTS = experiments({
|
|
|
87
83
|
emulatoruisnapshot: {
|
|
88
84
|
shortDescription: "Load pre-release versions of the emulator UI",
|
|
89
85
|
},
|
|
90
|
-
emulatorapphosting: {
|
|
91
|
-
shortDescription: "App Hosting emulator",
|
|
92
|
-
public: false,
|
|
93
|
-
},
|
|
94
86
|
webframeworks: {
|
|
95
87
|
shortDescription: "Native support for popular web frameworks",
|
|
96
88
|
fullDescription: "Adds support for popular web frameworks such as Next.js " +
|
|
@@ -112,9 +104,6 @@ exports.ALL_EXPERIMENTS = experiments({
|
|
|
112
104
|
public: true,
|
|
113
105
|
default: true,
|
|
114
106
|
},
|
|
115
|
-
crossservicerules: {
|
|
116
|
-
shortDescription: "Allow Firebase Rules to reference resources in other services",
|
|
117
|
-
},
|
|
118
107
|
internaltesting: {
|
|
119
108
|
shortDescription: "Exposes Firebase CLI commands intended for internal testing purposes.",
|
|
120
109
|
fullDescription: "Exposes Firebase CLI commands intended for internal testing purposes. " +
|
|
@@ -218,7 +207,7 @@ exports.ALL_EXPERIMENTS = experiments({
|
|
|
218
207
|
default: false,
|
|
219
208
|
public: false,
|
|
220
209
|
},
|
|
221
|
-
|
|
210
|
+
crashlyticsWebBreadcrumbs: {
|
|
222
211
|
shortDescription: "Enable provisioning Cloud Trace storage during web app onboarding.",
|
|
223
212
|
default: false,
|
|
224
213
|
public: false,
|
|
@@ -26,7 +26,7 @@ function assertHasOneOf(obj, props) {
|
|
|
26
26
|
}
|
|
27
27
|
function assertEnum(obj, prop, valid) {
|
|
28
28
|
const objString = clc.cyan(JSON.stringify(obj));
|
|
29
|
-
if (valid.
|
|
29
|
+
if (!valid.includes(obj[prop])) {
|
|
30
30
|
throw new error_1.FirebaseError(`Field "${prop}" must be one of ${valid.join(", ")}: ${objString}`);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -145,11 +145,16 @@ function assertUniqueSourcePrefixPair(config) {
|
|
|
145
145
|
else {
|
|
146
146
|
continue;
|
|
147
147
|
}
|
|
148
|
-
const
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
const prefixes = isKitConfig(c)
|
|
149
|
+
? Object.keys(c.instances).map((instanceId) => addKitPrefix(instanceId))
|
|
150
|
+
: [c.prefix || ""];
|
|
151
|
+
for (const prefix of prefixes) {
|
|
152
|
+
const key = JSON.stringify({ source: sourceIdentifier, prefix });
|
|
153
|
+
if (sourcePrefixPairs.has(key)) {
|
|
154
|
+
throw new error_1.FirebaseError(`More than one functions config specifies the same ${sourceDescription} and prefix ('${prefix}'). Please use kits with a unique instance ID to resolve this conflict.`);
|
|
155
|
+
}
|
|
156
|
+
sourcePrefixPairs.add(key);
|
|
151
157
|
}
|
|
152
|
-
sourcePrefixPairs.add(key);
|
|
153
158
|
}
|
|
154
159
|
}
|
|
155
160
|
function validateKitInstanceId(instanceId) {
|
|
@@ -194,8 +199,8 @@ function validate(config) {
|
|
|
194
199
|
const validated = config.map((cfg) => validateSingle(cfg));
|
|
195
200
|
assertUnique(validated, "codebase");
|
|
196
201
|
assertUnique(validated, "kit");
|
|
197
|
-
assertUniqueSourcePrefixPair(validated);
|
|
198
202
|
assertUniqueKitInstancesAndCodebases(validated);
|
|
203
|
+
assertUniqueSourcePrefixPair(validated);
|
|
199
204
|
return validated;
|
|
200
205
|
}
|
|
201
206
|
function normalizeAndValidate(config) {
|
|
@@ -20,20 +20,27 @@ function firebasereader(databaseId, schema = exports.DEFAULT_SCHEMA) {
|
|
|
20
20
|
function firebasewriter(databaseId, schema = exports.DEFAULT_SCHEMA) {
|
|
21
21
|
return `firebasewriter_${databaseId}_${schema}`;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
|
|
25
|
-
return [
|
|
26
|
-
`do
|
|
23
|
+
function createRoleBypassRLS(role, superuser) {
|
|
24
|
+
return `do
|
|
27
25
|
$$
|
|
28
26
|
begin
|
|
29
27
|
if not exists (select FROM pg_catalog.pg_roles
|
|
30
|
-
WHERE rolname = '${
|
|
31
|
-
CREATE ROLE "${
|
|
28
|
+
WHERE rolname = '${role}') then
|
|
29
|
+
CREATE ROLE "${role}" WITH ADMIN "${superuser}" BYPASSRLS;
|
|
30
|
+
else
|
|
31
|
+
ALTER ROLE "${role}" BYPASSRLS;
|
|
32
32
|
end if;
|
|
33
33
|
end
|
|
34
34
|
$$
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
;`;
|
|
36
|
+
}
|
|
37
|
+
function ownerRolePermissions(databaseId, superuser, schema) {
|
|
38
|
+
const firebaseOwnerRole = firebaseowner(databaseId, schema);
|
|
39
|
+
return [
|
|
40
|
+
createRoleBypassRLS(firebaseOwnerRole, superuser),
|
|
41
|
+
`REVOKE "${firebaseOwnerRole}" FROM "${exports.CLOUDSQL_SUPER_USER}"`,
|
|
42
|
+
`GRANT "${exports.CLOUDSQL_SUPER_USER}" TO "${firebaseOwnerRole}"`,
|
|
43
|
+
`CREATE SCHEMA IF NOT EXISTS "${schema}" AUTHORIZATION "${firebaseOwnerRole}"`,
|
|
37
44
|
`ALTER SCHEMA "${schema}" OWNER TO "${firebaseOwnerRole}"`,
|
|
38
45
|
`GRANT USAGE ON SCHEMA "${schema}" TO "${firebaseOwnerRole}"`,
|
|
39
46
|
`GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA "${schema}" TO "${firebaseOwnerRole}"`,
|
|
@@ -43,19 +50,10 @@ function ownerRolePermissions(databaseId, superuser, schema) {
|
|
|
43
50
|
function writerRolePermissions(databaseId, superuser, schema) {
|
|
44
51
|
const firebaseWriterRole = firebasewriter(databaseId, schema);
|
|
45
52
|
return [
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
begin
|
|
49
|
-
if not exists (select FROM pg_catalog.pg_roles
|
|
50
|
-
WHERE rolname = '${firebaseWriterRole}') then
|
|
51
|
-
CREATE ROLE "${firebaseWriterRole}" WITH ADMIN "${superuser}";
|
|
52
|
-
end if;
|
|
53
|
-
end
|
|
54
|
-
$$
|
|
55
|
-
;`,
|
|
56
|
-
`GRANT "${firebaseWriterRole}" TO "cloudsqlsuperuser"`,
|
|
53
|
+
createRoleBypassRLS(firebaseWriterRole, superuser),
|
|
54
|
+
`GRANT "${firebaseWriterRole}" TO "${exports.CLOUDSQL_SUPER_USER}"`,
|
|
57
55
|
`GRANT USAGE ON SCHEMA "${schema}" TO "${firebaseWriterRole}"`,
|
|
58
|
-
`GRANT SELECT, INSERT, UPDATE, DELETE
|
|
56
|
+
`GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA "${schema}" TO "${firebaseWriterRole}"`,
|
|
59
57
|
`GRANT USAGE, SELECT ON ALL SEQUENCES IN SCHEMA "${schema}" TO "${firebaseWriterRole}"`,
|
|
60
58
|
`GRANT EXECUTE ON ALL FUNCTIONS IN SCHEMA "${schema}" TO "${firebaseWriterRole}"`,
|
|
61
59
|
];
|
|
@@ -63,17 +61,8 @@ function writerRolePermissions(databaseId, superuser, schema) {
|
|
|
63
61
|
function readerRolePermissions(databaseId, superuser, schema) {
|
|
64
62
|
const firebaseReaderRole = firebasereader(databaseId, schema);
|
|
65
63
|
return [
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
begin
|
|
69
|
-
if not exists (select FROM pg_catalog.pg_roles
|
|
70
|
-
WHERE rolname = '${firebaseReaderRole}') then
|
|
71
|
-
CREATE ROLE "${firebaseReaderRole}" WITH ADMIN "${superuser}";
|
|
72
|
-
end if;
|
|
73
|
-
end
|
|
74
|
-
$$
|
|
75
|
-
;`,
|
|
76
|
-
`GRANT "${firebaseReaderRole}" TO "cloudsqlsuperuser"`,
|
|
64
|
+
createRoleBypassRLS(firebaseReaderRole, superuser),
|
|
65
|
+
`GRANT "${firebaseReaderRole}" TO "${exports.CLOUDSQL_SUPER_USER}"`,
|
|
77
66
|
`GRANT USAGE ON SCHEMA "${schema}" TO "${firebaseReaderRole}"`,
|
|
78
67
|
`GRANT SELECT ON ALL TABLES IN SCHEMA "${schema}" TO "${firebaseReaderRole}"`,
|
|
79
68
|
`GRANT USAGE, SELECT ON ALL SEQUENCES IN SCHEMA "${schema}" TO "${firebaseReaderRole}"`,
|
|
@@ -87,7 +76,7 @@ function defaultPermissions(databaseId, schema, ownerRole) {
|
|
|
87
76
|
`ALTER DEFAULT PRIVILEGES
|
|
88
77
|
FOR ROLE "${ownerRole}"
|
|
89
78
|
IN SCHEMA "${schema}"
|
|
90
|
-
GRANT SELECT, INSERT, UPDATE, DELETE
|
|
79
|
+
GRANT SELECT, INSERT, UPDATE, DELETE ON TABLES TO "${firebaseWriterRole}";`,
|
|
91
80
|
`ALTER DEFAULT PRIVILEGES
|
|
92
81
|
FOR ROLE "${ownerRole}"
|
|
93
82
|
IN SCHEMA "${schema}"
|
|
@@ -124,15 +124,10 @@ async function setupSQLPermissions(instanceId, databaseId, schemaInfo, options,
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
async function greenFieldSchemaSetup(instanceId, databaseId, schema, options) {
|
|
127
|
-
const revokes = [];
|
|
128
|
-
if (await checkSQLRoleIsGranted(options, instanceId, databaseId, "cloudsqlsuperuser", (0, permissions_1.firebaseowner)(databaseId, schema))) {
|
|
129
|
-
logger_1.logger.warn("Detected cloudsqlsuperuser was previously given to firebase owner, revoking to improve database security.");
|
|
130
|
-
revokes.push(`REVOKE "cloudsqlsuperuser" FROM "${(0, permissions_1.firebaseowner)(databaseId, schema)}"`);
|
|
131
|
-
}
|
|
132
127
|
const user = (await (0, connect_1.getIAMUser)(options)).user;
|
|
133
128
|
const projectNumber = await (0, projectUtils_1.needProjectNumber)(options);
|
|
134
129
|
const { user: fdcP4SAUser } = (0, connect_2.toDatabaseUser)((0, connect_2.getDataConnectP4SA)(projectNumber));
|
|
135
|
-
const sqlRoleSetupCmds = (0, lodash_1.concat)(
|
|
130
|
+
const sqlRoleSetupCmds = (0, lodash_1.concat)([`CREATE SCHEMA IF NOT EXISTS "${schema}"`], (0, permissions_1.ownerRolePermissions)(databaseId, permissions_1.FIREBASE_SUPER_USER, schema), (0, permissions_1.writerRolePermissions)(databaseId, permissions_1.FIREBASE_SUPER_USER, schema), (0, permissions_1.readerRolePermissions)(databaseId, permissions_1.FIREBASE_SUPER_USER, schema), `GRANT "${(0, permissions_1.firebaseowner)(databaseId, schema)}" TO "${user}"`, `REVOKE "${(0, permissions_1.firebaseowner)(databaseId, schema)}" FROM "${fdcP4SAUser}"`, `GRANT "${(0, permissions_1.firebasewriter)(databaseId, schema)}" TO "${fdcP4SAUser}"`, (0, permissions_1.defaultPermissions)(databaseId, schema, (0, permissions_1.firebaseowner)(databaseId, schema)));
|
|
136
131
|
return sqlRoleSetupCmds;
|
|
137
132
|
}
|
|
138
133
|
async function getSchemaMetadata(instanceId, databaseId, schema, options) {
|
|
@@ -224,7 +219,12 @@ async function brownfieldSqlSetup(instanceId, databaseId, schemaInfo, options, s
|
|
|
224
219
|
}
|
|
225
220
|
async function grantRoleTo(options, instanceId, databaseId, role, email, schema = permissions_1.DEFAULT_SCHEMA) {
|
|
226
221
|
const projectId = (0, projectUtils_1.needProjectId)(options);
|
|
222
|
+
const projectNumber = await (0, projectUtils_1.needProjectNumber)(options);
|
|
227
223
|
const { user, mode } = (0, connect_2.toDatabaseUser)(email);
|
|
224
|
+
const { user: fdcP4SAUser } = (0, connect_2.toDatabaseUser)((0, connect_2.getDataConnectP4SA)(String(projectNumber)));
|
|
225
|
+
if (role === "owner" && user === fdcP4SAUser) {
|
|
226
|
+
throw new error_1.FirebaseError(`Cannot grant the "owner" role to the Data Connect service agent (${email}). The service agent must only hold data-plane roles (writer/reader).`);
|
|
227
|
+
}
|
|
228
228
|
await cloudSqlAdminClient.createUser(projectId, instanceId, mode, user);
|
|
229
229
|
const fdcSqlRole = exports.fdcSqlRoleMap[role](databaseId, schema);
|
|
230
230
|
await (0, connect_1.executeSqlCmdsAsSuperUser)(options, instanceId, databaseId, [`GRANT "${fdcSqlRole}" TO "${user}"`], false);
|
package/lib/gcp/storage.js
CHANGED
|
@@ -118,9 +118,11 @@ async function getBucket(bucketName) {
|
|
|
118
118
|
return result.body;
|
|
119
119
|
}
|
|
120
120
|
catch (err) {
|
|
121
|
-
|
|
121
|
+
const error = (0, error_1.getError)(err);
|
|
122
|
+
logger_1.logger.debug(error);
|
|
122
123
|
throw new error_1.FirebaseError("Failed to obtain the storage bucket", {
|
|
123
|
-
original:
|
|
124
|
+
original: error,
|
|
125
|
+
status: (0, error_1.getErrStatus)(err),
|
|
124
126
|
});
|
|
125
127
|
}
|
|
126
128
|
}
|
|
@@ -147,14 +149,16 @@ async function createBucket(projectId, req, projectPrivate) {
|
|
|
147
149
|
async function patchBucket(bucketName, metadata) {
|
|
148
150
|
try {
|
|
149
151
|
const localAPIClient = new apiv2_1.Client({ urlPrefix: (0, api_1.storageOrigin)() });
|
|
150
|
-
const mask = (0, proto_1.fieldMasks)(metadata, "labels", "acl", "defaultObjectAcl", "lifecycle");
|
|
152
|
+
const mask = (0, proto_1.fieldMasks)(metadata, "labels", "acl", "defaultObjectAcl", "lifecycle", "cors");
|
|
151
153
|
const result = await localAPIClient.patch(`/storage/v1/b/${bucketName}`, metadata, { queryParams: { updateMask: mask.join(",") } });
|
|
152
154
|
return result.body;
|
|
153
155
|
}
|
|
154
156
|
catch (err) {
|
|
155
|
-
|
|
157
|
+
const error = (0, error_1.getError)(err);
|
|
158
|
+
logger_1.logger.debug(error);
|
|
156
159
|
throw new error_1.FirebaseError("Failed to patch the storage bucket", {
|
|
157
|
-
original:
|
|
160
|
+
original: error,
|
|
161
|
+
status: (0, error_1.getErrStatus)(err),
|
|
158
162
|
});
|
|
159
163
|
}
|
|
160
164
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.agentSkillsActuate = exports.agentSkillsAskQuestions = exports.authActuate = exports.authAskQuestions = exports.aiLogicActuate = exports.aiLogicAskQuestions = exports.aitools = exports.apptestingAcutate = exports.apptestingAskQuestions = exports.genkit = exports.apphosting = exports.dataconnectResolverActuate = exports.dataconnectResolverAskQuestions = exports.dataconnectSdkActuate = exports.dataconnectSdkAskQuestions = exports.dataconnectActuate = exports.dataconnectAskQuestions = exports.hostingGithub = exports.remoteconfig = exports.project = exports.extensions = exports.emulators = exports.storageActuate = exports.storageAskQuestions = exports.hostingActuate = exports.hostingAskQuestions = exports.functionsActuate = exports.functionsAskQuestions = exports.firestoreActuate = exports.firestoreAskQuestions = exports.databaseActuate = exports.databaseAskQuestions = exports.account = void 0;
|
|
3
|
+
exports.runActuate = exports.runAskQuestions = exports.agentSkillsActuate = exports.agentSkillsAskQuestions = exports.authActuate = exports.authAskQuestions = exports.aiLogicActuate = exports.aiLogicAskQuestions = exports.aitools = exports.apptestingAcutate = exports.apptestingAskQuestions = exports.genkit = exports.apphosting = exports.dataconnectResolverActuate = exports.dataconnectResolverAskQuestions = exports.dataconnectSdkActuate = exports.dataconnectSdkAskQuestions = exports.dataconnectActuate = exports.dataconnectAskQuestions = exports.hostingGithub = exports.remoteconfig = exports.project = exports.extensions = exports.emulators = exports.storageActuate = exports.storageAskQuestions = exports.hostingActuate = exports.hostingAskQuestions = exports.functionsActuate = exports.functionsAskQuestions = exports.firestoreActuate = exports.firestoreAskQuestions = exports.databaseActuate = exports.databaseAskQuestions = exports.account = void 0;
|
|
4
4
|
var account_1 = require("./account");
|
|
5
5
|
Object.defineProperty(exports, "account", { enumerable: true, get: function () { return account_1.doSetup; } });
|
|
6
6
|
var database_1 = require("./database");
|
|
@@ -55,3 +55,6 @@ Object.defineProperty(exports, "authActuate", { enumerable: true, get: function
|
|
|
55
55
|
var agentSkills_1 = require("./agentSkills");
|
|
56
56
|
Object.defineProperty(exports, "agentSkillsAskQuestions", { enumerable: true, get: function () { return agentSkills_1.askQuestions; } });
|
|
57
57
|
Object.defineProperty(exports, "agentSkillsActuate", { enumerable: true, get: function () { return agentSkills_1.actuate; } });
|
|
58
|
+
var run_1 = require("./run");
|
|
59
|
+
Object.defineProperty(exports, "runAskQuestions", { enumerable: true, get: function () { return run_1.askQuestions; } });
|
|
60
|
+
Object.defineProperty(exports, "runActuate", { enumerable: true, get: function () { return run_1.actuate; } });
|