firebase-tools
Version:
Command-Line Interface for Firebase
43 lines (37 loc) • 2.31 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.crashlytics_issues = void 0;
const resource_1 = require("../../resource");
const RESOURCE_CONTENT = `
### How to Display Issues
When displaying a list of issues, use the following format:
1. Issue <full issue id>
* <the issue title>
* <the issue subtitle>
* **Description:** <a discription of the issue based on information from the tool response>
### How to Prioritize Crashlytics Issues
Follow these steps to fetch issues and prioritize them.
1. Use the 'crashlytics_get_report' tool to fetch the 'topIssues' report.
1a. Analyze the user's query and apply the appropriate filters. Use the information in the [Firebase Crashlytics Reports Guide](firebase://guides/crashlytics/reports) to further construct appropriate report requests.
1b. If the user asks for crashes, then set the *issueErrorType* filter to *FATAL*.
1c. If the user asks about a particular time range, then set both the *intervalStartTime* and *intervalEndTime*.
2. Use the 'crashlytics_get_report' tool to fetch the 'topVersions' for this app.
3. If the user instructions include statements about prioritization, use those instructions.
4. If the user instructions do not include statements about prioritization, then prioritize the returned issues using the following criteria:
4a. The app versions for the issue include the most recent version of the app.
4b. The number of users experiencing the issue across variants
4c. The volume of crashes
5. Return the top 5 issues, with a brief description each in a numerical list with the recommended format.
5a. Describe the rationale for the prioritization order.
6. Ask the user if they would like to diagnose and fix any of the issues presented before taking any action.
`.trim();
exports.crashlytics_issues = (0, resource_1.resource)({
uri: "firebase://guides/crashlytics/issues",
name: "crashlytics_issues_guide",
title: "Firebase Crashlytics Issues Guide",
description: "Guides the coding agent when working with Crashlytics issues, including prioritization rules and procedures for diagnosing and fixing crashes. ",
}, async (uri) => {
return {
contents: [{ uri, type: "text", text: RESOURCE_CONTENT }],
};
});