|
| 1 | +import { |
| 2 | + DEFAULT_FIREBASE_PROJECT, |
| 3 | + DEFAULT_FIREBASE_PROJECT_NAME, |
| 4 | + DEFAULT_FIREBASE_PROJECT_NUMBER, |
| 5 | + DEFAULT_FIREBASE_USER, |
| 6 | + DEFAULT_FIREBASE_WEB_APP_ID, |
| 7 | + DEFAULT_FIREBASE_WEB_APP_NAME, |
| 8 | + DEFAULT_FIREBASE_WEB_APP_API_KEY, |
| 9 | +} from "../../data/index.js"; |
| 10 | +import { toMockContent } from "../tool-mock-utils.js"; |
| 11 | + |
| 12 | +export const nextJsWithProjectMock = { |
| 13 | + firebase_login: toMockContent(`Successfully logged in as ${DEFAULT_FIREBASE_USER}`), |
| 14 | + |
| 15 | + firebase_get_environment: toMockContent(`# Environment Information |
| 16 | +
|
| 17 | +Project Directory: |
| 18 | +/Users/samedson/Firebase/firebase-tools/scripts/agent-evals/output/2025-10-24_15-36-06-588Z/-firebase-init-backend-app-2c27e75e3e5d809c/repo |
| 19 | +Project Config Path: <NO CONFIG PRESENT> |
| 20 | +Active Project ID: ${DEFAULT_FIREBASE_PROJECT} |
| 21 | +Gemini in Firebase Terms of Service: Accepted |
| 22 | +Authenticated User: ${DEFAULT_FIREBASE_USER} |
| 23 | +Detected App IDs: <NONE> |
| 24 | +Available Project Aliases (format: '[alias]: [projectId]'): <NONE> |
| 25 | +
|
| 26 | +No firebase.json file was found. |
| 27 | +
|
| 28 | +If this project does not use Firebase services that require a firebase.json file, no action is necessary. |
| 29 | +
|
| 30 | +If this project uses Firebase services that require a firebase.json file, the user will most likely want to: |
| 31 | +
|
| 32 | +a) Change the project directory using the 'firebase_update_environment' tool to select a directory with a 'firebase.json' file in it, or |
| 33 | +b) Initialize a new Firebase project directory using the 'firebase_init' tool. |
| 34 | +
|
| 35 | +Confirm with the user before taking action.`), |
| 36 | + |
| 37 | + firebase_update_environment: toMockContent( |
| 38 | + `- Updated active project to '${DEFAULT_FIREBASE_PROJECT}'\n`, |
| 39 | + ), |
| 40 | + |
| 41 | + firebase_list_projects: toMockContent(` |
| 42 | +- projectId: ${DEFAULT_FIREBASE_PROJECT} |
| 43 | + projectNumber: '${DEFAULT_FIREBASE_PROJECT_NUMBER}' |
| 44 | + displayName: ${DEFAULT_FIREBASE_PROJECT_NAME} |
| 45 | + name: projects/${DEFAULT_FIREBASE_PROJECT} |
| 46 | + resources: |
| 47 | + hostingSite: ${DEFAULT_FIREBASE_PROJECT} |
| 48 | + state: ACTIVE |
| 49 | + etag: 1_99999999-7777-4444-8888-dddddddddddd |
| 50 | +`), |
| 51 | + |
| 52 | + firebase_list_apps: toMockContent(` |
| 53 | +- name: 'projects/${DEFAULT_FIREBASE_PROJECT}/webApps/${DEFAULT_FIREBASE_WEB_APP_ID}' |
| 54 | + displayName: ${DEFAULT_FIREBASE_WEB_APP_NAME} |
| 55 | + platform: WEB |
| 56 | + appId: '${DEFAULT_FIREBASE_WEB_APP_ID}' |
| 57 | + namespace: 000000000000000000000000000000000000000000000000 |
| 58 | + apiKeyId: ${DEFAULT_FIREBASE_WEB_APP_API_KEY} |
| 59 | + state: ACTIVE |
| 60 | + expireTime: '1970-01-01T00:00:00Z' |
| 61 | +`), |
| 62 | + |
| 63 | + firebase_get_sdk_config: toMockContent( |
| 64 | + `{"projectId":"${DEFAULT_FIREBASE_PROJECT}","appId":"${DEFAULT_FIREBASE_WEB_APP_ID}","storageBucket":"${DEFAULT_FIREBASE_PROJECT}.firebasestorage.app","apiKey":"${DEFAULT_FIREBASE_WEB_APP_API_KEY}","authDomain":"${DEFAULT_FIREBASE_PROJECT}.firebaseapp.com","messagingSenderId":"${DEFAULT_FIREBASE_PROJECT_NUMBER}","projectNumber":"${DEFAULT_FIREBASE_PROJECT_NUMBER}","version":"2"}`, |
| 65 | + ), |
| 66 | +} as const; |
0 commit comments