firebase-tools-with-isolate 15.32.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.
Files changed (103) hide show
  1. package/lib/accountImporter.js +6 -3
  2. package/lib/api.js +3 -3
  3. package/lib/apphosting/backend.js +1 -1
  4. package/lib/apphosting/secrets/index.js +7 -2
  5. package/lib/checkValidTargetFilters.js +1 -0
  6. package/lib/command.js +31 -24
  7. package/lib/commands/apps-create.js +34 -3
  8. package/lib/commands/crashlytics-heapdumps-disable.js +26 -0
  9. package/lib/commands/crashlytics-heapdumps-enable.js +54 -0
  10. package/lib/commands/crashlytics-heapdumps-status.js +32 -0
  11. package/lib/commands/deploy.js +3 -0
  12. package/lib/commands/functions-kits-uninstall.js +43 -21
  13. package/lib/commands/functions-lifecycle-list.js +5 -6
  14. package/lib/commands/hosting-channel-deploy.js +3 -3
  15. package/lib/commands/hosting-clone.js +102 -31
  16. package/lib/commands/hosting-disable.js +5 -1
  17. package/lib/commands/index.js +9 -0
  18. package/lib/commands/init.js +7 -0
  19. package/lib/commands/run-services-update.js +16 -0
  20. package/lib/config.js +1 -0
  21. package/lib/crashlytics/alerts.js +122 -0
  22. package/lib/crashlytics/onboarding.js +71 -3
  23. package/lib/crashlytics/profilingManager.js +195 -0
  24. package/lib/crashlytics/sourcemap.js +46 -11
  25. package/lib/crashlytics/types.js +6 -1
  26. package/lib/deploy/apphosting/prepare.js +1 -0
  27. package/lib/deploy/auth/deploy.js +1 -1
  28. package/lib/deploy/auth/prepare.js +6 -7
  29. package/lib/deploy/firestore/prepare.js +5 -5
  30. package/lib/deploy/functions/build.js +3 -0
  31. package/lib/deploy/functions/cel.js +89 -58
  32. package/lib/deploy/functions/functionsDeployHelper.js +10 -0
  33. package/lib/deploy/functions/params.js +4 -2
  34. package/lib/deploy/functions/prepare.js +25 -8
  35. package/lib/deploy/functions/release/executor.js +7 -3
  36. package/lib/deploy/functions/release/fabricator.js +42 -14
  37. package/lib/deploy/functions/release/planner.js +3 -2
  38. package/lib/deploy/functions/release/sourceTokenScraper.js +1 -1
  39. package/lib/deploy/functions/validate.js +16 -0
  40. package/lib/deploy/hosting/prepare.js +1 -1
  41. package/lib/deploy/hosting/release.js +2 -2
  42. package/lib/deploy/index.js +5 -0
  43. package/lib/deploy/run/args.js +2 -0
  44. package/lib/deploy/run/buildEnv.js +72 -0
  45. package/lib/deploy/run/deploy.js +214 -0
  46. package/lib/deploy/run/index.js +23 -0
  47. package/lib/deploy/run/prepare.js +47 -0
  48. package/lib/deploy/run/prereqs.js +32 -0
  49. package/lib/deploy/run/release.js +9 -0
  50. package/lib/deploy/run/update.js +50 -0
  51. package/lib/deploy/run/util.js +73 -0
  52. package/lib/emulator/apphosting/serve.js +1 -1
  53. package/lib/emulator/auth/operations.js +8 -4
  54. package/lib/emulator/auth/utils.js +1 -1
  55. package/lib/emulator/commandUtils.js +7 -3
  56. package/lib/emulator/databaseEmulator.js +7 -3
  57. package/lib/emulator/dataconnect/pgliteServer.js +1 -1
  58. package/lib/emulator/dataconnectEmulator.js +1 -1
  59. package/lib/emulator/download.js +1 -1
  60. package/lib/emulator/downloadableEmulatorInfo.json +31 -31
  61. package/lib/emulator/downloadableEmulators.js +1 -3
  62. package/lib/emulator/emulatorLogger.js +2 -1
  63. package/lib/emulator/eventarcEmulator.js +1 -1
  64. package/lib/emulator/functionsEmulatorRuntime.js +2 -1
  65. package/lib/emulator/functionsEmulatorShared.js +1 -41
  66. package/lib/experiments.js +17 -11
  67. package/lib/extensions/warnings.js +48 -7
  68. package/lib/firestore/validator.js +1 -1
  69. package/lib/frameworks/next/constants.js +20 -12
  70. package/lib/frameworks/next/index.js +4 -23
  71. package/lib/frameworks/next/utils.js +28 -0
  72. package/lib/functions/env.js +4 -2
  73. package/lib/functions/projectConfig.js +10 -5
  74. package/lib/gcp/artifactregistry.js +20 -0
  75. package/lib/gcp/cloudmonitoring.js +80 -3
  76. package/lib/gcp/cloudsql/permissions.js +21 -32
  77. package/lib/gcp/cloudsql/permissionsSetup.js +6 -6
  78. package/lib/gcp/cloudtasks.js +15 -1
  79. package/lib/gcp/cloudtrace.js +38 -0
  80. package/lib/gcp/run.js +5 -0
  81. package/lib/gcp/runv2.js +32 -11
  82. package/lib/gcp/storage.js +9 -5
  83. package/lib/hosting/api.js +15 -15
  84. package/lib/hosting/runTags.js +1 -1
  85. package/lib/init/features/auth.js +46 -8
  86. package/lib/init/features/hosting/index.js +4 -2
  87. package/lib/init/features/index.js +4 -1
  88. package/lib/init/features/run.js +159 -0
  89. package/lib/init/index.js +6 -0
  90. package/lib/management/apps.js +4 -2
  91. package/lib/mcp/tools/firestore/converter.js +2 -2
  92. package/lib/mcp/util.js +11 -10
  93. package/lib/profileReport.js +12 -9
  94. package/lib/scopes.js +1 -3
  95. package/lib/streamJson.js +1 -0
  96. package/lib/throttler/throttler.js +1 -0
  97. package/lib/tsconfig.publish.tsbuildinfo +1 -1
  98. package/lib/utils.js +0 -15
  99. package/package.json +11 -17
  100. package/schema/firebase-config.json +41 -0
  101. package/schema/firebaserc.json +133 -0
  102. package/lib/mcp/resources/guides/init_data_connect.js +0 -30
  103. package/lib/mcp/resources/guides/init_rtdb.js +0 -30
package/lib/utils.js CHANGED
@@ -56,7 +56,6 @@ exports.wrappedSafeLoad = wrappedSafeLoad;
56
56
  exports.generateId = generateId;
57
57
  exports.generatePassword = generatePassword;
58
58
  exports.readSecretValue = readSecretValue;
59
- exports.updateOrCreateGitignore = updateOrCreateGitignore;
60
59
  exports.promptForDirectory = promptForDirectory;
61
60
  exports.deepEqual = deepEqual;
62
61
  exports.newUniqueId = newUniqueId;
@@ -616,20 +615,6 @@ function readSecretValue(prompt, dataFile) {
616
615
  throw e;
617
616
  }
618
617
  }
619
- function updateOrCreateGitignore(dirPath, entries) {
620
- const gitignorePath = path.join(dirPath, ".gitignore");
621
- if (!fs.existsSync(gitignorePath)) {
622
- fs.writeFileSync(gitignorePath, entries.join("\n"));
623
- return;
624
- }
625
- let content = fs.readFileSync(gitignorePath, "utf-8");
626
- for (const entry of entries) {
627
- if (!content.includes(entry)) {
628
- content += `\n${entry}\n`;
629
- }
630
- }
631
- fs.writeFileSync(gitignorePath, content);
632
- }
633
618
  async function promptForDirectory(args) {
634
619
  let dir = "";
635
620
  while (!dir) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firebase-tools-with-isolate",
3
- "version": "15.32.0",
3
+ "version": "15.34.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",
@@ -106,7 +106,6 @@
106
106
  ]
107
107
  },
108
108
  "dependencies": {
109
- "@apphosting/common": "^0.0.8",
110
109
  "@electric-sql/pglite": "^0.3.3",
111
110
  "@electric-sql/pglite-tools": "^0.2.8",
112
111
  "@google-cloud/cloud-sql-connector": "^1.3.3",
@@ -158,19 +157,17 @@
158
157
  "pglite-2": "npm:@electric-sql/pglite@0.2.17",
159
158
  "portfinder": "^1.0.32",
160
159
  "progress": "^2.0.3",
161
- "proxy-agent": "^6.3.0",
162
160
  "retry": "^0.13.1",
163
161
  "semver": "^7.5.2",
164
162
  "sql-formatter": "^15.3.0",
165
163
  "stream-chain": "^4.2.5",
166
164
  "stream-json": "^3.6.0",
167
165
  "superstatic": "^10.0.0",
168
- "tar": "^7.5.11",
166
+ "tar": "^7.5.21",
169
167
  "tcp-port-used": "^1.0.2",
170
168
  "tmp": "^0.2.3",
171
169
  "triple-beam": "^1.3.0",
172
170
  "undici": "^6.19.0",
173
- "universal-analytics": "^0.5.3",
174
171
  "update-notifier-cjs": "^5.1.6",
175
172
  "winston": "^3.0.0",
176
173
  "winston-transport": "^4.4.0",
@@ -220,7 +217,6 @@
220
217
  "@types/tcp-port-used": "^1.0.1",
221
218
  "@types/tmp": "^0.2.3",
222
219
  "@types/triple-beam": "^1.3.0",
223
- "@types/universal-analytics": "^0.4.5",
224
220
  "@types/update-notifier": "^5.1.0",
225
221
  "@types/ws": "^8.18.1",
226
222
  "@typescript-eslint/eslint-plugin": "^5.9.0",
@@ -242,7 +238,7 @@
242
238
  "googleapis": "^105.0.0",
243
239
  "mocha": "^11.7.1",
244
240
  "mock-fs": "5.2.0",
245
- "next": "^14.1.0",
241
+ "next": "15.5.24",
246
242
  "nock": "^13.0.5",
247
243
  "node-mocks-http": "^1.11.0",
248
244
  "nyc": "^15.1.0",
@@ -268,24 +264,22 @@
268
264
  "ajv-formats": "3.0.1",
269
265
  "ajv": "^8.17.1"
270
266
  },
271
- "hono": "^4.11.4",
267
+ "hono": "^4.13.5",
272
268
  "@tootallnate/once": "^3.0.1",
273
- "protobufjs": "^7.4.0",
269
+ "protobufjs": "^7.6.5",
274
270
  "serialize-javascript": "^7.0.5",
275
271
  "diff": "^8.0.4",
276
272
  "underscore": "^1.13.8",
277
- "brace-expansion": "^1.1.14",
278
- "@grpc/grpc-js": "^1.14.3",
273
+ "brace-expansion": "^1.1.18",
274
+ "@grpc/grpc-js": "^1.14.4",
279
275
  "rollup": "^3.30.0",
280
276
  "picomatch": "^2.3.2",
281
- "qs": "^6.15.2",
282
- "tar": "^7.5.11",
277
+ "qs": "^6.16.0",
278
+ "tar": "^7.5.21",
283
279
  "@opentelemetry/core": "^2.8.0",
284
- "basic-ftp": "^5.2.2",
280
+ "basic-ftp": "^6.2.1",
281
+ "re2": "1.24.0",
285
282
  "@babel/traverse": "^7.23.2",
286
- "universal-analytics": {
287
- "uuid": "^11.1.1"
288
- },
289
283
  "gaxios": {
290
284
  "uuid": "^11.1.1"
291
285
  },
@@ -1221,6 +1221,34 @@
1221
1221
  ],
1222
1222
  "type": "object"
1223
1223
  },
1224
+ "RunSingle": {
1225
+ "additionalProperties": false,
1226
+ "properties": {
1227
+ "ignore": {
1228
+ "items": {
1229
+ "type": "string"
1230
+ },
1231
+ "type": "array"
1232
+ },
1233
+ "localBuild": {
1234
+ "type": "boolean"
1235
+ },
1236
+ "region": {
1237
+ "type": "string"
1238
+ },
1239
+ "rootDir": {
1240
+ "type": "string"
1241
+ },
1242
+ "serviceId": {
1243
+ "type": "string"
1244
+ }
1245
+ },
1246
+ "required": [
1247
+ "region",
1248
+ "serviceId"
1249
+ ],
1250
+ "type": "object"
1251
+ },
1224
1252
  "StorageSingle": {
1225
1253
  "additionalProperties": false,
1226
1254
  "properties": {
@@ -2008,6 +2036,19 @@
2008
2036
  "remoteconfig": {
2009
2037
  "$ref": "#/definitions/RemoteConfigConfig"
2010
2038
  },
2039
+ "run": {
2040
+ "anyOf": [
2041
+ {
2042
+ "$ref": "#/definitions/RunSingle"
2043
+ },
2044
+ {
2045
+ "items": {
2046
+ "$ref": "#/definitions/RunSingle"
2047
+ },
2048
+ "type": "array"
2049
+ }
2050
+ ]
2051
+ },
2011
2052
  "storage": {
2012
2053
  "anyOf": [
2013
2054
  {
@@ -0,0 +1,133 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Firebase Runtime Configuration",
4
+ "description": "Schema for the Firebase Runtime Configuration file (.firebaserc).",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "definitions": {
8
+ "projectTargets": {
9
+ "type": "object",
10
+ "description": "Resource target configurations for a specific Firebase project ID.",
11
+ "properties": {
12
+ "hosting": {
13
+ "type": "object",
14
+ "description": "Maps hosting target names (specified in firebase.json) to an array containing the Firebase Hosting site name.",
15
+ "additionalProperties": {
16
+ "type": "array",
17
+ "description": "Array of Firebase Hosting site name(s) associated with this target name.",
18
+ "items": {
19
+ "type": "string"
20
+ }
21
+ }
22
+ },
23
+ "storage": {
24
+ "type": "object",
25
+ "description": "Maps storage target names (specified in firebase.json) to an array of Cloud Storage bucket names.",
26
+ "additionalProperties": {
27
+ "type": "array",
28
+ "description": "Array of Cloud Storage bucket name(s) associated with this target name.",
29
+ "items": {
30
+ "type": "string"
31
+ }
32
+ }
33
+ },
34
+ "database": {
35
+ "type": "object",
36
+ "description": "Maps Realtime Database target names (specified in firebase.json) to an array of Realtime Database instance names.",
37
+ "additionalProperties": {
38
+ "type": "array",
39
+ "description": "Array of Realtime Database instance name(s) associated with this target name.",
40
+ "items": {
41
+ "type": "string"
42
+ }
43
+ }
44
+ },
45
+ "firestore": {
46
+ "type": "object",
47
+ "description": "Maps Firestore target names (specified in firebase.json) to an array of Firestore database IDs.",
48
+ "additionalProperties": {
49
+ "type": "array",
50
+ "description": "Array of Firestore database ID(s) associated with this target name.",
51
+ "items": {
52
+ "type": "string"
53
+ }
54
+ }
55
+ }
56
+ },
57
+ "additionalProperties": {
58
+ "type": "object",
59
+ "description": "Resource targets for additional target types, mapping target names to an array of resource identifiers.",
60
+ "additionalProperties": {
61
+ "type": "array",
62
+ "description": "Array of resource identifiers associated with this target name.",
63
+ "items": {
64
+ "type": "string"
65
+ }
66
+ }
67
+ }
68
+ },
69
+ "projectEtags": {
70
+ "type": "object",
71
+ "description": "ETags for resources within a specific Firebase project.",
72
+ "properties": {
73
+ "extensionInstances": {
74
+ "type": "object",
75
+ "description": "Maps deployed Firebase Extension instance IDs to their deployed ETag hash.",
76
+ "additionalProperties": {
77
+ "type": "string",
78
+ "description": "The ETag string returned by the Firebase Extensions API for this instance."
79
+ }
80
+ }
81
+ },
82
+ "additionalProperties": false
83
+ }
84
+ },
85
+ "properties": {
86
+ "projects": {
87
+ "type": "object",
88
+ "description": "Maps project aliases (such as 'default', 'staging', or 'production') to Firebase Project IDs.",
89
+ "properties": {
90
+ "default": {
91
+ "type": "string",
92
+ "description": "The default Firebase Project ID used when no project or alias is explicitly specified."
93
+ }
94
+ },
95
+ "additionalProperties": {
96
+ "type": "string",
97
+ "description": "The Firebase Project ID associated with this alias."
98
+ }
99
+ },
100
+ "targets": {
101
+ "type": "object",
102
+ "description": "Maps Firebase project IDs to named resource targets for multi-resource deployments.",
103
+ "additionalProperties": {
104
+ "$ref": "#/definitions/projectTargets"
105
+ }
106
+ },
107
+ "etags": {
108
+ "type": "object",
109
+ "description": "Stores resource ETags per project to detect drift and out-of-band updates during extension deployments.",
110
+ "additionalProperties": {
111
+ "$ref": "#/definitions/projectEtags"
112
+ }
113
+ },
114
+ "dataconnectEmulatorConfig": {
115
+ "type": "object",
116
+ "description": "Deprecated configuration for the Firebase Data Connect emulator.",
117
+ "properties": {
118
+ "postgres": {
119
+ "type": "object",
120
+ "description": "PostgreSQL database configuration for the emulator.",
121
+ "properties": {
122
+ "localConnectionString": {
123
+ "type": "string",
124
+ "description": "Connection string to a local PostgreSQL instance."
125
+ }
126
+ },
127
+ "additionalProperties": false
128
+ }
129
+ },
130
+ "additionalProperties": false
131
+ }
132
+ }
133
+ }
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.init_data_connect = void 0;
4
- const resource_1 = require("../../resource");
5
- exports.init_data_connect = (0, resource_1.resource)({
6
- uri: "firebase://guides/init/data_connect",
7
- name: "data_connect_init_guide",
8
- title: "Firebase SQL Connect Init Guide",
9
- description: "guides the coding agent through configuring SQL Connect for PostgreSQL access in the current project",
10
- }, async (uri) => {
11
- return {
12
- contents: [
13
- {
14
- uri,
15
- type: "text",
16
- text: `
17
- Create a file called \`data-connect.ts\`:
18
-
19
- \`\`\`ts
20
- import { initializeApp } from "firebase/app";
21
- import { getDataConnect } from "firebase/data-connect";
22
-
23
- const app = initializeApp({...});
24
- const db = getDataConnect(app);
25
- \`\`\`
26
- `.trim(),
27
- },
28
- ],
29
- };
30
- });
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.init_rtdb = void 0;
4
- const resource_1 = require("../../resource");
5
- exports.init_rtdb = (0, resource_1.resource)({
6
- uri: "firebase://guides/init/rtdb",
7
- name: "rtdb_init_guide",
8
- title: "Firebase Realtime Database Init Guide",
9
- description: "guides the coding agent through configuring Realtime Database in the current project",
10
- }, async (uri) => {
11
- return {
12
- contents: [
13
- {
14
- uri,
15
- type: "text",
16
- text: `
17
- Create a file called \`rtdb.ts\`:
18
-
19
- \`\`\`ts
20
- import { initializeApp } from "firebase/app";
21
- import { getDatabase } from "firebase/database";
22
-
23
- const app = initializeApp({...});
24
- const db = getDatabase(app);
25
- \`\`\`
26
- `.trim(),
27
- },
28
- ],
29
- };
30
- });