firebase-tools
Version:
Command-Line Interface for Firebase
52 lines (38 loc) • 2.98 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.crashlytics_connect = exports.RESOURCE_CONTENT = void 0;
const resource_1 = require("../../resource");
exports.RESOURCE_CONTENT = `
### Instructions for Working with Firebase Crashlytics Tools
When working interactively with a user, only ask the one question at a time. Do not proceed without user instructions. Upon receiving user instructions, refer to the relevant resources for guidance.
Use the \`firebase_read_resources\` tool to access the following guides.
1. [Firebase App Id Guide](firebase://guides/app_id)
This guide provides crucial instructions for obtaining the application's App Id which is required for all API calls.
2. [Firebase Crashlytics Reports Guide](firebase://guides/crashlytics/reports)
This guide details how to request and use aggregated numerical data from Crashlytics. The agent should read this guide before requesting any report.
3. [Firebase Crashlytics Issues Guide](firebase://guides/crashlytics/issues)
This guide details how to work with issues within Crashlytics. The agent should read this guide before prioritizing issues or presenting issue data to the user.
4. [Investigating Crashlytics Issues Guide](firebase://guides/crashlytics/investigations)
This guide provides instructions on investigating the root causes of crashes and exceptions reported in Crashlytics issues.
### How to Check That You Are Connected
Verify that you can read the app's Crashlytics data by getting the topVersions report. This report will tell you which app versions have the most events.
a. Read the firebase://guides/app_id if you need to find the app_id.
b. Call the \`crashlytics_get_report\` tool to read the \`topVersions\` report.
c. Help the user resolve any issues that arise when trying to connect.
After confirming that you can access Crashlytics, ask the user what they would like help with. Your capabilities include:
- *Reading Crashlytics reports to prioritize or find important issues.*
Before fetching reports, read the critical instructions for the \`crashlytics_get_report\` tool in the [Firebase Crashlytics Reports Guide](firebase://guides/crashlytics/reports).
- *Investigating bug reports using Crashlytics event data.*
Before attempting to investigate an individual issue, read the [Investigating Crashlytics Issues Guide](firebase://guides/crashlytics/investigations) to understand the best practices for debugging issues.
- *Proposing code changes to resolve identified bugs.*
`.trim();
exports.crashlytics_connect = (0, resource_1.resource)({
uri: "firebase://guides/crashlytics/connect",
name: "crashlytics_connect_guide",
title: "Firebase Crashlytics Connect Guide",
description: "Guides the coding agent to connect to Firebase Crashlytics.",
}, async (uri) => {
return {
contents: [{ uri, type: "text", text: exports.RESOURCE_CONTENT }],
};
});