firebase-tools-with-isolate 15.34.2 → 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/api.js +2 -4
- 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/constants.js +1 -4
- package/lib/apphosting/githubConnections.js +1 -1
- package/lib/apphosting/utils.js +0 -26
- 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/{crashlytics-onboard-web.js → crashlytics-setup.js} +5 -5
- package/lib/commands/crashlytics-sourcemap-upload.js +4 -0
- package/lib/commands/deploy.js +1 -3
- package/lib/commands/emulators-start.js +2 -2
- 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 +4 -2
- package/lib/commands/run-services-get.js +19 -0
- package/lib/commands/run-services-list.js +11 -0
- package/lib/crashlytics/alerts.js +1 -0
- package/lib/crashlytics/events.js +122 -1
- package/lib/crashlytics/filters.js +12 -6
- package/lib/crashlytics/firebasetelemetry.js +5 -3
- package/lib/crashlytics/onboarding.js +8 -7
- package/lib/crashlytics/profilingManager.js +14 -34
- package/lib/crashlytics/reports.js +46 -17
- package/lib/crashlytics/sourcemap.js +19 -5
- package/lib/crashlytics/utils.js +14 -0
- package/lib/database/import.js +5 -4
- package/lib/dataconnect/dataplaneClient.js +0 -10
- package/lib/dataconnect/names.js +3 -3
- package/lib/dataconnect/schemaMigration.js +1 -1
- package/lib/deploy/apphosting/deploy.js +20 -41
- package/lib/deploy/apphosting/localBuild.js +49 -0
- package/lib/deploy/apphosting/prepare.js +12 -25
- package/lib/deploy/apphosting/release.js +1 -1
- package/lib/deploy/apphosting/util.js +27 -4
- package/lib/deploy/functions/backend.js +0 -10
- package/lib/deploy/functions/cel.js +1 -1
- package/lib/deploy/functions/containerCleaner.js +1 -142
- package/lib/deploy/functions/functionsDeployHelper.js +0 -4
- 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/functions/validate.js +1 -1
- package/lib/deploy/hosting/prepare.js +1 -3
- package/lib/deploy/lifecycleHooks.js +1 -1
- package/lib/deploy/run/deploy.js +26 -43
- package/lib/deploy/run/get.js +30 -0
- package/lib/deploy/run/list.js +38 -0
- package/lib/deploy/run/prereqs.js +0 -3
- package/lib/deploy/run/util.js +9 -0
- 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 +109 -24
- package/lib/emulator/databaseEmulator.js +16 -11
- package/lib/emulator/dataconnect/pgliteServer.js +31 -24
- package/lib/emulator/downloadableEmulatorInfo.json +24 -24
- package/lib/emulator/downloadableEmulators.js +45 -7
- 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/rules/runtime.js +1 -0
- package/lib/emulator/storage/server.js +10 -5
- package/lib/extensions/extensionsApi.js +0 -8
- package/lib/extensions/extensionsHelper.js +3 -24
- package/lib/extensions/paramHelper.js +1 -1
- package/lib/extensions/provisioningHelper.js +1 -6
- package/lib/extensions/secretsUtils.js +0 -24
- package/lib/firestore/util.js +3 -3
- package/lib/frameworks/angular/utils.js +1 -1
- package/lib/frameworks/next/utils.js +1 -12
- package/lib/fsAsync.js +34 -20
- package/lib/functions/kits/install.js +233 -628
- package/lib/functions/kits/sources/directory.js +91 -0
- package/lib/functions/kits/sources/npm.js +324 -0
- package/lib/functions/kits/sources/types.js +12 -0
- package/lib/functionsConfig.js +0 -4
- package/lib/functionsShellCommandAction.js +1 -1
- package/lib/gcp/artifactregistry.js +0 -5
- package/lib/gcp/cloudfunctionsv2.js +0 -6
- package/lib/gcp/devConnect.js +2 -2
- package/lib/gcp/iam.js +0 -4
- package/lib/gcp/pubsub.js +0 -14
- package/lib/gcp/storage.js +2 -1
- 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/init/features/run.js +3 -7
- 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/crashlytics_reports.js +33 -71
- 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 +26 -31
- package/lib/mcp/tools/crashlytics/setup.js +392 -0
- package/lib/tsconfig.publish.tsbuildinfo +1 -1
- package/lib/utils.js +4 -10
- package/package.json +5 -6
- package/lib/deploy/hosting/args.js +0 -2
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "firebase-tools-with-isolate",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.36.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",
|
|
@@ -147,7 +147,6 @@
|
|
|
147
147
|
"lsofi": "^2.0.0",
|
|
148
148
|
"marked": "^13.0.2",
|
|
149
149
|
"marked-terminal": "^7.0.0",
|
|
150
|
-
"mime": "^2.5.2",
|
|
151
150
|
"minimatch": "^3.0.4",
|
|
152
151
|
"morgan": "^1.10.0",
|
|
153
152
|
"node-fetch": "^2.6.7",
|
|
@@ -242,13 +241,13 @@
|
|
|
242
241
|
"next": "15.5.24",
|
|
243
242
|
"nock": "^13.0.5",
|
|
244
243
|
"node-mocks-http": "^1.11.0",
|
|
245
|
-
"nyc": "^
|
|
244
|
+
"nyc": "^18.0.0",
|
|
246
245
|
"openapi-merge": "^1.0.23",
|
|
247
246
|
"openapi-typescript": "^4.5.0",
|
|
248
247
|
"openapi3-ts": "^3.2.0",
|
|
249
248
|
"prettier": "^3.2.4",
|
|
250
249
|
"proxy": "^1.0.2",
|
|
251
|
-
"puppeteer": "^
|
|
250
|
+
"puppeteer": "^25.0.0",
|
|
252
251
|
"sinon": "^9.2.3",
|
|
253
252
|
"sinon-chai": "^3.6.0",
|
|
254
253
|
"source-map-support": "^0.5.9",
|
|
@@ -257,8 +256,8 @@
|
|
|
257
256
|
"ts-node": "^10.4.0",
|
|
258
257
|
"typescript": "^5.3.3",
|
|
259
258
|
"typescript-json-schema": "^0.65.1",
|
|
260
|
-
"vite": "^
|
|
261
|
-
"vite-plugin-singlefile": "^
|
|
259
|
+
"vite": "^8.3.1",
|
|
260
|
+
"vite-plugin-singlefile": "^2.3.3"
|
|
262
261
|
},
|
|
263
262
|
"overrides": {
|
|
264
263
|
"body-parser": "^1.20.9",
|