firebase-tools 15.16.0 → 15.18.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 (54) hide show
  1. package/lib/api.js +1 -1
  2. package/lib/apphosting/localbuilds.js +116 -5
  3. package/lib/apphosting/universalMakerDownload.js +72 -0
  4. package/lib/apphosting/universalMakerInfo.json +16 -0
  5. package/lib/archiveDirectory.js +1 -1
  6. package/lib/deploy/apphosting/release.js +27 -13
  7. package/lib/deploy/apphosting/util.js +4 -19
  8. package/lib/deploy/functions/backend.js +2 -1
  9. package/lib/deploy/functions/prepare.js +140 -35
  10. package/lib/deploy/functions/prepareFunctionsUpload.js +1 -1
  11. package/lib/deploy/functions/services/ailogic.js +17 -0
  12. package/lib/deploy/functions/services/database.js +16 -0
  13. package/lib/deploy/functions/services/firestore.js +1 -0
  14. package/lib/deploy/functions/services/storage.js +15 -1
  15. package/lib/deploy/functions/triggerRegionHelper.js +111 -2
  16. package/lib/deploy/functions/validate.js +1 -1
  17. package/lib/downloadUtils.js +24 -0
  18. package/lib/emulator/download.js +2 -24
  19. package/lib/emulator/downloadableEmulatorInfo.json +31 -31
  20. package/lib/emulator/functionsEmulatorShared.js +2 -1
  21. package/lib/env.js +5 -1
  22. package/lib/firestore/api-sort.js +22 -0
  23. package/lib/firestore/api-types.js +11 -1
  24. package/lib/firestore/api.js +21 -1
  25. package/lib/firestore/fsConfig.js +8 -0
  26. package/lib/firestore/pretty-print.js +26 -8
  27. package/lib/frameworks/next/index.js +1 -1
  28. package/lib/fsAsync.js +53 -10
  29. package/lib/mcp/apps/deploy/mcp-app.js +120 -0
  30. package/lib/mcp/apps/deploy/vite.config.js +16 -0
  31. package/lib/mcp/apps/init/mcp-app.js +230 -0
  32. package/lib/mcp/apps/init/vite.config.js +16 -0
  33. package/lib/mcp/apps/update_environment/mcp-app.js +38 -36
  34. package/lib/mcp/apps/update_environment/vite.config.js +16 -0
  35. package/lib/mcp/index.js +16 -5
  36. package/lib/mcp/resources/deploy_ui.js +31 -0
  37. package/lib/mcp/resources/index.js +4 -0
  38. package/lib/mcp/resources/init_ui.js +31 -0
  39. package/lib/mcp/resources/update_environment_ui.js +3 -3
  40. package/lib/mcp/tools/auth/get_users.js +1 -1
  41. package/lib/mcp/tools/core/deploy.js +87 -0
  42. package/lib/mcp/tools/core/deploy_status.js +32 -0
  43. package/lib/mcp/tools/core/index.js +4 -0
  44. package/lib/mcp/tools/core/init.js +3 -0
  45. package/lib/mcp/tools/core/update_environment.js +3 -0
  46. package/lib/mcp/tools/firestore/query_collection.js +1 -1
  47. package/lib/mcp/tools/functions/list_functions.js +2 -2
  48. package/lib/mcp/util/jobs.js +31 -0
  49. package/lib/mcp/util.js +5 -4
  50. package/lib/tsconfig.compile.tsbuildinfo +1 -1
  51. package/lib/tsconfig.publish.tsbuildinfo +1 -1
  52. package/package.json +3 -3
  53. package/templates/init/functions/dart/pubspec.yaml +1 -1
  54. package/templates/init/functions/dart/server.dart +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firebase-tools",
3
- "version": "15.16.0",
3
+ "version": "15.18.0",
4
4
  "description": "Command-Line Interface for Firebase",
5
5
  "main": "./lib/index.js",
6
6
  "mcpName": "io.github.firebase/firebase-mcp",
@@ -48,7 +48,8 @@
48
48
  ],
49
49
  "reporter": [
50
50
  "lcovonly",
51
- "text"
51
+ "text",
52
+ "html"
52
53
  ],
53
54
  "report-dir": "./.coverage",
54
55
  "extension": [
@@ -62,7 +63,6 @@
62
63
  ]
63
64
  },
64
65
  "dependencies": {
65
- "@apphosting/build": "^0.1.7",
66
66
  "@apphosting/common": "^0.0.8",
67
67
  "@electric-sql/pglite": "^0.3.3",
68
68
  "@electric-sql/pglite-tools": "^0.2.8",
@@ -7,7 +7,7 @@ environment:
7
7
  sdk: ^3.9.0
8
8
 
9
9
  dependencies:
10
- firebase_functions: ^0.5.0
10
+ firebase_functions: ^0.6.0
11
11
 
12
12
  dev_dependencies:
13
13
  build_runner: ^2.4.0
@@ -1,7 +1,7 @@
1
1
  import 'package:firebase_functions/firebase_functions.dart';
2
2
 
3
- void main(List<String> args) {
4
- fireUp(args, (firebase) {
3
+ void main() {
4
+ runFunctions((firebase) {
5
5
  // https://firebase.google.com/docs/functions/http-events
6
6
  firebase.https.onRequest(
7
7
  name: 'helloWorld',