firebase-tools-with-isolate 15.35.0 → 15.37.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/accountExporter.js +1 -1
- package/lib/accountImporter.js +7 -6
- package/lib/apiv2.js +0 -1
- 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/apptesting/parseTestFiles.js +1 -1
- package/lib/auth.js +9 -3
- package/lib/bin/progressiveHelp.js +1 -1
- package/lib/command.js +1 -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-events-get.js +48 -0
- package/lib/commands/crashlytics-events-list.js +70 -0
- package/lib/commands/crashlytics-heapdumps-enable.js +3 -4
- package/lib/commands/crashlytics-heapdumps-status.js +5 -3
- package/lib/commands/crashlytics-issues-get.js +61 -0
- package/lib/commands/crashlytics-reports-get.js +179 -0
- package/lib/commands/crashlytics-reports-list.js +42 -0
- package/lib/commands/dataconnect-services-list.js +8 -2
- package/lib/commands/deploy.js +1 -3
- package/lib/commands/ext-dev-init.js +1 -1
- 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 +5 -4
- 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 +11 -0
- package/lib/commands/open.js +3 -1
- package/lib/commands/serve.js +1 -1
- package/lib/commands/use.js +1 -1
- package/lib/config.js +1 -1
- package/lib/crashlytics/commandUtils.js +194 -0
- package/lib/crashlytics/events.js +122 -1
- package/lib/crashlytics/filters.js +12 -6
- package/lib/crashlytics/profilingManager.js +77 -50
- package/lib/crashlytics/reports.js +5 -1
- package/lib/crashlytics/utils.js +14 -0
- package/lib/database/import.js +5 -4
- package/lib/dataconnect/client.js +14 -8
- package/lib/dataconnect/names.js +3 -3
- package/lib/dataconnect/schemaMigration.js +1 -1
- package/lib/deploy/dataconnect/release.js +2 -2
- package/lib/deploy/firestore/prepare.js +21 -3
- package/lib/deploy/functions/backend.js +0 -10
- package/lib/deploy/functions/cel.js +2 -2
- package/lib/deploy/functions/deploy.js +2 -1
- package/lib/deploy/functions/prepare.js +28 -0
- package/lib/deploy/functions/release/fabricator.js +27 -3
- package/lib/deploy/functions/release/planner.js +3 -0
- 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/parsing.js +1 -1
- package/lib/deploy/functions/runtimes/discovery/v1alpha1.js +1 -1
- package/lib/deploy/functions/runtimes/supported/index.js +10 -4
- package/lib/deploy/functions/runtimes/supported/types.js +7 -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 +31 -31
- 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 +84 -8
- package/lib/emulator/functionsEmulatorRuntime.js +9 -4
- 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/experiments.js +5 -0
- package/lib/extensions/extensionsHelper.js +2 -2
- package/lib/extensions/listExtensions.js +1 -1
- package/lib/extensions/paramHelper.js +1 -1
- package/lib/extensions/provisioningHelper.js +1 -6
- package/lib/firestore/delete.js +2 -3
- package/lib/firestore/util.js +3 -3
- package/lib/frameworks/angular/utils.js +1 -1
- package/lib/frameworks/next/constants.js +17 -14
- package/lib/frameworks/next/index.js +25 -3
- package/lib/frameworks/next/utils.js +7 -9
- 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/cloudbilling.js +2 -2
- package/lib/gcp/cloudbuild.js +0 -77
- package/lib/gcp/cloudfunctionsv2.js +0 -6
- package/lib/gcp/cloudscheduler.js +12 -0
- package/lib/gcp/cloudtasks.js +0 -4
- package/lib/gcp/devConnect.js +2 -8
- package/lib/gcp/iam.js +15 -1
- package/lib/gcp/resourceManager.js +1 -14
- package/lib/gcp/storage.js +87 -4
- package/lib/hosting/api.js +79 -7
- package/lib/hosting/implicitInit.js +1 -1
- package/lib/hosting/proxy.js +5 -2
- package/lib/init/features/firestore/rules.js +1 -1
- package/lib/init/features/functions/index.js +2 -2
- package/lib/init/features/functions/npm-dependencies.js +1 -1
- package/lib/init/features/hosting/github.js +6 -4
- package/lib/init/features/hosting/index.js +4 -0
- package/lib/init/features/storage/rules.js +1 -1
- package/lib/localFunction.js +3 -3
- package/lib/management/database.js +1 -1
- package/lib/mcp/apps/init/mcp-app.js +5 -2
- package/lib/mcp/apps/update_environment/mcp-app.js +1 -1
- package/lib/mcp/index.js +14 -4
- 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 +3 -3
- package/lib/mcp/tools/crashlytics/setup.js +392 -0
- package/lib/mcp/util/dataconnect/converter.js +1 -1
- package/lib/profileReport.js +1 -1
- package/lib/profiler.js +1 -1
- package/lib/rulesDeploy.js +0 -1
- package/lib/throttler/throttler.js +1 -1
- package/lib/tsconfig.publish.tsbuildinfo +1 -1
- package/lib/utils.js +5 -11
- package/package.json +16 -14
- package/schema/firebase-config.json +3 -0
- 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) {
|
|
@@ -748,7 +742,7 @@ function formatFilesize(bytes, decimals = 2) {
|
|
|
748
742
|
const dm = decimals < 0 ? 0 : decimals;
|
|
749
743
|
const sizes = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
|
|
750
744
|
const i = Math.min(Math.floor(Math.log(bytes) / Math.log(k)), sizes.length - 1);
|
|
751
|
-
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm))
|
|
745
|
+
return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm))} ${sizes[i]}`;
|
|
752
746
|
}
|
|
753
747
|
function pLimit(concurrency) {
|
|
754
748
|
if (!Number.isInteger(concurrency) || concurrency <= 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "firebase-tools-with-isolate",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.37.0",
|
|
4
4
|
"description": "Command-Line Interface for Firebase with monorepo support",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"mcpName": "io.github.firebase/firebase-mcp",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"@google-cloud/cloud-sql-connector": "^1.3.3",
|
|
113
113
|
"@google-cloud/pubsub": "^5.2.0",
|
|
114
114
|
"@inquirer/prompts": "^7.10.1",
|
|
115
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
115
|
+
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
116
116
|
"abort-controller": "^3.0.0",
|
|
117
117
|
"ajv": "^8.17.1",
|
|
118
118
|
"ajv-formats": "3.0.1",
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
"tcp-port-used": "^1.0.2",
|
|
168
168
|
"tmp": "^0.2.3",
|
|
169
169
|
"triple-beam": "^1.3.0",
|
|
170
|
-
"undici": "^6.
|
|
170
|
+
"undici": "^6.29.1",
|
|
171
171
|
"update-notifier-cjs": "^5.1.6",
|
|
172
172
|
"winston": "^3.0.0",
|
|
173
173
|
"winston-transport": "^4.4.0",
|
|
@@ -200,6 +200,7 @@
|
|
|
200
200
|
"@types/lodash": "^4.14.149",
|
|
201
201
|
"@types/lsofi": "1.0.2",
|
|
202
202
|
"@types/marked-terminal": "^6.1.1",
|
|
203
|
+
"@types/minimatch": "^3.0.5",
|
|
203
204
|
"@types/mocha": "^9.0.0",
|
|
204
205
|
"@types/mock-fs": "4.13.4",
|
|
205
206
|
"@types/node": "^25.0.3",
|
|
@@ -231,23 +232,23 @@
|
|
|
231
232
|
"eslint-plugin-brikke": "^2.2.2",
|
|
232
233
|
"eslint-plugin-jsdoc": "^48.0.1",
|
|
233
234
|
"eslint-plugin-prettier": "^5.1.3",
|
|
234
|
-
"firebase": "^
|
|
235
|
-
"firebase-admin": "^
|
|
235
|
+
"firebase": "^12.19.0",
|
|
236
|
+
"firebase-admin": "^14.5.0",
|
|
236
237
|
"firebase-functions": "^4.3.1",
|
|
237
238
|
"google-discovery-to-swagger": "^2.1.0",
|
|
238
239
|
"googleapis": "^105.0.0",
|
|
239
240
|
"mocha": "^11.7.1",
|
|
240
241
|
"mock-fs": "5.2.0",
|
|
241
|
-
"next": "
|
|
242
|
+
"next": "^16.3.7",
|
|
242
243
|
"nock": "^13.0.5",
|
|
243
244
|
"node-mocks-http": "^1.11.0",
|
|
244
|
-
"nyc": "^
|
|
245
|
+
"nyc": "^18.0.0",
|
|
245
246
|
"openapi-merge": "^1.0.23",
|
|
246
247
|
"openapi-typescript": "^4.5.0",
|
|
247
248
|
"openapi3-ts": "^3.2.0",
|
|
248
249
|
"prettier": "^3.2.4",
|
|
249
250
|
"proxy": "^1.0.2",
|
|
250
|
-
"puppeteer": "^
|
|
251
|
+
"puppeteer": "^25.0.0",
|
|
251
252
|
"sinon": "^9.2.3",
|
|
252
253
|
"sinon-chai": "^3.6.0",
|
|
253
254
|
"source-map-support": "^0.5.9",
|
|
@@ -256,8 +257,8 @@
|
|
|
256
257
|
"ts-node": "^10.4.0",
|
|
257
258
|
"typescript": "^5.3.3",
|
|
258
259
|
"typescript-json-schema": "^0.65.1",
|
|
259
|
-
"vite": "^
|
|
260
|
-
"vite-plugin-singlefile": "^
|
|
260
|
+
"vite": "^8.3.1",
|
|
261
|
+
"vite-plugin-singlefile": "^2.3.3"
|
|
261
262
|
},
|
|
262
263
|
"overrides": {
|
|
263
264
|
"body-parser": "^1.20.9",
|
|
@@ -287,15 +288,16 @@
|
|
|
287
288
|
"gaxios": {
|
|
288
289
|
"uuid": "^11.1.1"
|
|
289
290
|
},
|
|
290
|
-
"firebase-admin": {
|
|
291
|
-
"uuid": "^11.1.1"
|
|
292
|
-
},
|
|
293
291
|
"googleapis": {
|
|
294
292
|
"uuid": "^11.1.1"
|
|
295
293
|
},
|
|
296
294
|
"@google-cloud/cloud-sql-connector": {
|
|
297
295
|
"uuid": "^11.1.1"
|
|
298
|
-
}
|
|
296
|
+
},
|
|
297
|
+
"firebase-functions": {
|
|
298
|
+
"firebase-admin": "$firebase-admin"
|
|
299
|
+
},
|
|
300
|
+
"proxy-addr": "^2.0.8"
|
|
299
301
|
},
|
|
300
302
|
"allowScripts": {
|
|
301
303
|
"esbuild": true,
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"nodejs20",
|
|
10
10
|
"nodejs22",
|
|
11
11
|
"nodejs24",
|
|
12
|
+
"nodejs26",
|
|
12
13
|
"python310",
|
|
13
14
|
"python311",
|
|
14
15
|
"python312",
|
|
@@ -1001,6 +1002,7 @@
|
|
|
1001
1002
|
"nodejs20",
|
|
1002
1003
|
"nodejs22",
|
|
1003
1004
|
"nodejs24",
|
|
1005
|
+
"nodejs26",
|
|
1004
1006
|
"python310",
|
|
1005
1007
|
"python311",
|
|
1006
1008
|
"python312",
|
|
@@ -1089,6 +1091,7 @@
|
|
|
1089
1091
|
"nodejs20",
|
|
1090
1092
|
"nodejs22",
|
|
1091
1093
|
"nodejs24",
|
|
1094
|
+
"nodejs26",
|
|
1092
1095
|
"python310",
|
|
1093
1096
|
"python311",
|
|
1094
1097
|
"python312",
|
|
@@ -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);
|