firebase-tools 15.35.0 → 15.36.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/lib/appcheck/debugTokens.js +293 -0
- package/lib/appcheck/localConfig.js +191 -0
- package/lib/appdistribution/options-parser-util.js +1 -1
- package/lib/apphosting/githubConnections.js +1 -1
- package/lib/auth.js +8 -2
- package/lib/commands/appcheck-debugtokens-create.js +60 -35
- package/lib/commands/appcheck-debugtokens-delete.js +21 -7
- package/lib/commands/appcheck-debugtokens-list.js +37 -8
- package/lib/commands/appcheck-debugtokens-prune.js +59 -0
- package/lib/commands/crashlytics-heapdumps-status.js +1 -1
- package/lib/commands/deploy.js +1 -3
- package/lib/commands/hosting-channel-create.js +1 -3
- package/lib/commands/hosting-channel-delete.js +1 -3
- package/lib/commands/hosting-channel-deploy.js +1 -3
- package/lib/commands/hosting-channel-list.js +1 -3
- package/lib/commands/hosting-channel-open.js +1 -3
- package/lib/commands/hosting-clone.js +3 -5
- package/lib/commands/hosting-disable.js +2 -2
- package/lib/commands/hosting-sites-create.js +1 -3
- package/lib/commands/hosting-sites-delete.js +1 -3
- package/lib/commands/hosting-sites-get.js +1 -3
- package/lib/commands/hosting-sites-list.js +1 -3
- package/lib/commands/index.js +1 -0
- package/lib/crashlytics/events.js +122 -1
- package/lib/crashlytics/filters.js +12 -6
- package/lib/crashlytics/profilingManager.js +14 -34
- package/lib/crashlytics/utils.js +14 -0
- package/lib/database/import.js +5 -4
- package/lib/dataconnect/names.js +3 -3
- package/lib/dataconnect/schemaMigration.js +1 -1
- package/lib/deploy/functions/backend.js +0 -10
- package/lib/deploy/functions/cel.js +1 -1
- package/lib/deploy/functions/release/reporter.js +0 -26
- package/lib/deploy/functions/runtimes/discovery/index.js +4 -1
- package/lib/deploy/functions/runtimes/discovery/v1alpha1.js +1 -1
- package/lib/deploy/functions/services/index.js +13 -11
- package/lib/deploy/hosting/prepare.js +1 -3
- package/lib/deploy/lifecycleHooks.js +1 -1
- package/lib/emulator/auth/operations.js +2 -2
- package/lib/emulator/auth/server.js +4 -2
- package/lib/emulator/auth/widget_ui.js +1 -1
- package/lib/emulator/commandUtils.js +4 -1
- package/lib/emulator/databaseEmulator.js +16 -11
- package/lib/emulator/dataconnect/pgliteServer.js +30 -24
- package/lib/emulator/downloadableEmulatorInfo.json +24 -24
- package/lib/emulator/downloadableEmulators.js +2 -2
- package/lib/emulator/extensions/postinstall.js +6 -6
- package/lib/emulator/firestoreEmulator.js +21 -15
- package/lib/emulator/functionsEmulator.js +11 -7
- package/lib/emulator/functionsEmulatorRuntime.js +7 -2
- package/lib/emulator/hub.js +12 -8
- package/lib/emulator/shared/express.js +30 -0
- package/lib/emulator/storage/apis/firebase.js +11 -10
- package/lib/emulator/storage/apis/gcloud.js +21 -20
- package/lib/emulator/storage/files.js +1 -1
- package/lib/emulator/storage/rules/manager.js +15 -12
- package/lib/emulator/storage/server.js +10 -5
- package/lib/extensions/extensionsHelper.js +2 -2
- package/lib/extensions/paramHelper.js +1 -1
- package/lib/extensions/provisioningHelper.js +1 -6
- package/lib/firestore/util.js +3 -3
- package/lib/frameworks/angular/utils.js +1 -1
- package/lib/frameworks/next/utils.js +1 -1
- package/lib/functions/kits/install.js +221 -316
- package/lib/functions/kits/sources/directory.js +32 -0
- package/lib/functions/kits/sources/npm.js +55 -5
- package/lib/functionsConfig.js +0 -4
- package/lib/functionsShellCommandAction.js +1 -1
- package/lib/gcp/cloudfunctionsv2.js +0 -6
- package/lib/gcp/devConnect.js +2 -2
- package/lib/hosting/api.js +79 -0
- package/lib/hosting/proxy.js +4 -1
- package/lib/init/features/hosting/github.js +6 -4
- package/lib/init/features/hosting/index.js +4 -0
- package/lib/mcp/apps/init/mcp-app.js +4 -1
- package/lib/mcp/index.js +8 -2
- package/lib/mcp/prompts/apptesting/run_test.js +3 -3
- package/lib/mcp/prompts/core/deploy.js +3 -3
- package/lib/mcp/resources/guides/init_ai.js +10 -10
- package/lib/mcp/tools/crashlytics/events.js +18 -93
- package/lib/mcp/tools/crashlytics/index.js +2 -0
- package/lib/mcp/tools/crashlytics/reports.js +1 -1
- package/lib/mcp/tools/crashlytics/setup.js +392 -0
- package/lib/tsconfig.compile.tsbuildinfo +1 -1
- package/lib/tsconfig.publish.tsbuildinfo +1 -1
- package/lib/utils.js +4 -10
- package/package.json +1 -1
- package/lib/functions/kits/sources/index.js +0 -19
package/lib/utils.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.streamToString = exports.stringToStream = exports.
|
|
3
|
+
exports.streamToString = exports.stringToStream = exports.envOverrides = exports.IS_WINDOWS = void 0;
|
|
4
4
|
exports.consoleUrl = consoleUrl;
|
|
5
5
|
exports.getInheritedOption = getInheritedOption;
|
|
6
|
-
exports.setVSCodeEnvVars = setVSCodeEnvVars;
|
|
7
6
|
exports.envOverride = envOverride;
|
|
8
7
|
exports.getDatabaseUrl = getDatabaseUrl;
|
|
9
8
|
exports.getDatabaseViewDataUrl = getDatabaseViewDataUrl;
|
|
@@ -85,7 +84,6 @@ const error_1 = require("./error");
|
|
|
85
84
|
const logger_1 = require("./logger");
|
|
86
85
|
const prompt_1 = require("./prompt");
|
|
87
86
|
const templates_1 = require("./templates");
|
|
88
|
-
const vsCodeUtils_1 = require("./vsCodeUtils");
|
|
89
87
|
const fsutils_1 = require("./fsutils");
|
|
90
88
|
const node_os_1 = require("node:os");
|
|
91
89
|
const node_child_process_1 = require("node:child_process");
|
|
@@ -95,7 +93,6 @@ const WARNING_CHAR = exports.IS_WINDOWS ? "!" : "⚠";
|
|
|
95
93
|
const ERROR_CHAR = exports.IS_WINDOWS ? "!!" : "⬢";
|
|
96
94
|
const THIRTY_DAYS_IN_MILLISECONDS = 30 * 24 * 60 * 60 * 1000;
|
|
97
95
|
exports.envOverrides = [];
|
|
98
|
-
exports.vscodeEnvVars = {};
|
|
99
96
|
function consoleUrl(project, path) {
|
|
100
97
|
const api = require("./api");
|
|
101
98
|
return `${api.consoleOrigin()}/project/${project}${path}`;
|
|
@@ -109,11 +106,8 @@ function getInheritedOption(options, key) {
|
|
|
109
106
|
target = target.parent;
|
|
110
107
|
}
|
|
111
108
|
}
|
|
112
|
-
function setVSCodeEnvVars(envVar, value) {
|
|
113
|
-
exports.vscodeEnvVars[envVar] = value;
|
|
114
|
-
}
|
|
115
109
|
function envOverride(envname, value, coerce) {
|
|
116
|
-
const currentEnvValue =
|
|
110
|
+
const currentEnvValue = process.env[envname];
|
|
117
111
|
if (currentEnvValue && currentEnvValue.length) {
|
|
118
112
|
exports.envOverrides.push(envname);
|
|
119
113
|
if (coerce) {
|
|
@@ -284,13 +278,13 @@ async function promiseWhile(action, check, interval = 2500) {
|
|
|
284
278
|
if (check(res)) {
|
|
285
279
|
return resolve(res);
|
|
286
280
|
}
|
|
287
|
-
setTimeout(run, interval);
|
|
281
|
+
setTimeout(() => void run(), interval);
|
|
288
282
|
}
|
|
289
283
|
catch (err) {
|
|
290
284
|
return promiseReject(err);
|
|
291
285
|
}
|
|
292
286
|
};
|
|
293
|
-
run();
|
|
287
|
+
void run();
|
|
294
288
|
});
|
|
295
289
|
}
|
|
296
290
|
function withTimeout(timeoutMs, promise) {
|
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./types"), exports);
|
|
18
|
-
__exportStar(require("./npm"), exports);
|
|
19
|
-
__exportStar(require("./directory"), exports);
|