firebase-tools-with-isolate 15.33.0 → 15.34.1
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/apphosting/backend.js +1 -1
- package/lib/auth.js +10 -5
- 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 +7 -0
- package/lib/commands/hosting-channel-create.js +3 -0
- package/lib/commands/hosting-channel-delete.js +3 -0
- package/lib/commands/hosting-channel-deploy.js +3 -0
- package/lib/commands/hosting-channel-list.js +3 -0
- package/lib/commands/hosting-channel-open.js +3 -0
- package/lib/commands/hosting-clone.js +63 -9
- package/lib/commands/hosting-disable.js +2 -0
- package/lib/commands/hosting-sites-create.js +3 -0
- package/lib/commands/hosting-sites-delete.js +3 -0
- package/lib/commands/hosting-sites-get.js +3 -0
- package/lib/commands/hosting-sites-list.js +3 -0
- package/lib/commands/index.js +9 -0
- package/lib/commands/init.js +7 -0
- package/lib/commands/run-services-update.js +18 -0
- package/lib/crashlytics/alerts.js +1 -11
- package/lib/crashlytics/onboarding.js +10 -5
- 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/params.js +1 -0
- 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/hosting/prepare.js +3 -0
- 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 +242 -0
- package/lib/deploy/run/index.js +23 -0
- package/lib/deploy/run/prepare.js +99 -0
- package/lib/deploy/run/prereqs.js +32 -0
- package/lib/deploy/run/release.js +9 -0
- package/lib/deploy/run/update.js +51 -0
- package/lib/deploy/run/util.js +75 -0
- package/lib/emulator/apphosting/serve.js +1 -1
- package/lib/emulator/auth/cloudFunctions.js +47 -18
- 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 -17
- 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 +198 -0
- package/lib/init/index.js +6 -0
- package/lib/mcp/index.js +19 -3
- package/lib/profileReport.js +8 -5
- package/lib/throttler/throttler.js +1 -0
- package/lib/tsconfig.publish.tsbuildinfo +1 -1
- package/package.json +10 -10
- 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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "firebase-tools-with-isolate",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.34.1",
|
|
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",
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
"lint:ts": "eslint --cache --config .eslintrc.js --ext .ts,.js .",
|
|
28
28
|
"mocha:fast": "mocha 'src/**/*.spec.{ts,js}'",
|
|
29
29
|
"mocha": "nyc mocha 'src/**/*.spec.{ts,js}'",
|
|
30
|
-
"
|
|
30
|
+
"sanitize:lockfile": "node scripts/sanitize-lockfile.js",
|
|
31
|
+
"prepare": "npm run sanitize:lockfile && npm run clean && npm run build:publish",
|
|
31
32
|
"test": "npm run lint:quiet && npm run test:compile && npm run mocha",
|
|
32
33
|
"test:appdistribution": "npm run lint:quiet && npm run test:compile && nyc mocha 'src/appdistribution/*.spec.{ts,js}'",
|
|
33
34
|
"test:apptesting": "npm run lint:quiet && npm run test:compile && nyc mocha 'src/apptesting/*.spec.{ts,js}'",
|
|
@@ -106,7 +107,6 @@
|
|
|
106
107
|
]
|
|
107
108
|
},
|
|
108
109
|
"dependencies": {
|
|
109
|
-
"@apphosting/common": "^0.0.8",
|
|
110
110
|
"@electric-sql/pglite": "^0.3.3",
|
|
111
111
|
"@electric-sql/pglite-tools": "^0.2.8",
|
|
112
112
|
"@google-cloud/cloud-sql-connector": "^1.3.3",
|
|
@@ -158,7 +158,6 @@
|
|
|
158
158
|
"pglite-2": "npm:@electric-sql/pglite@0.2.17",
|
|
159
159
|
"portfinder": "^1.0.32",
|
|
160
160
|
"progress": "^2.0.3",
|
|
161
|
-
"proxy-agent": "^6.3.0",
|
|
162
161
|
"retry": "^0.13.1",
|
|
163
162
|
"semver": "^7.5.2",
|
|
164
163
|
"sql-formatter": "^15.3.0",
|
|
@@ -170,7 +169,6 @@
|
|
|
170
169
|
"tmp": "^0.2.3",
|
|
171
170
|
"triple-beam": "^1.3.0",
|
|
172
171
|
"undici": "^6.19.0",
|
|
173
|
-
"universal-analytics": "^0.5.3",
|
|
174
172
|
"update-notifier-cjs": "^5.1.6",
|
|
175
173
|
"winston": "^3.0.0",
|
|
176
174
|
"winston-transport": "^4.4.0",
|
|
@@ -220,7 +218,6 @@
|
|
|
220
218
|
"@types/tcp-port-used": "^1.0.1",
|
|
221
219
|
"@types/tmp": "^0.2.3",
|
|
222
220
|
"@types/triple-beam": "^1.3.0",
|
|
223
|
-
"@types/universal-analytics": "^0.4.5",
|
|
224
221
|
"@types/update-notifier": "^5.1.0",
|
|
225
222
|
"@types/ws": "^8.18.1",
|
|
226
223
|
"@typescript-eslint/eslint-plugin": "^5.9.0",
|
|
@@ -281,12 +278,9 @@
|
|
|
281
278
|
"qs": "^6.16.0",
|
|
282
279
|
"tar": "^7.5.21",
|
|
283
280
|
"@opentelemetry/core": "^2.8.0",
|
|
284
|
-
"basic-ftp": "^
|
|
281
|
+
"basic-ftp": "^6.2.1",
|
|
285
282
|
"re2": "1.24.0",
|
|
286
283
|
"@babel/traverse": "^7.23.2",
|
|
287
|
-
"universal-analytics": {
|
|
288
|
-
"uuid": "^11.1.1"
|
|
289
|
-
},
|
|
290
284
|
"gaxios": {
|
|
291
285
|
"uuid": "^11.1.1"
|
|
292
286
|
},
|
|
@@ -299,5 +293,11 @@
|
|
|
299
293
|
"@google-cloud/cloud-sql-connector": {
|
|
300
294
|
"uuid": "^11.1.1"
|
|
301
295
|
}
|
|
296
|
+
},
|
|
297
|
+
"allowScripts": {
|
|
298
|
+
"esbuild": true,
|
|
299
|
+
"protobufjs": false,
|
|
300
|
+
"puppeteer": false,
|
|
301
|
+
"re2": true
|
|
302
302
|
}
|
|
303
303
|
}
|
|
@@ -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
|
-
});
|