File tree Expand file tree Collapse file tree 7 files changed +9
-15
lines changed
Expand file tree Collapse file tree 7 files changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,7 @@ import { FirebaseError } from "../error";
33
44export const ApplicationIdSchema = z
55 . string ( )
6- . describe (
7- "Firebase App Id. Leave blank if unknown to receive instructions for finding it." ,
8- ) ;
6+ . describe ( "Firebase App Id. Leave blank if unknown to receive instructions for finding it." ) ;
97
108export const IssueIdSchema = z . string ( ) . describe ( "Crashlytics issue id, as hexidecimal uuid" ) ;
119
@@ -113,7 +111,7 @@ export function validateEventFilters(filter: EventFilter = {}): EventFilter {
113111 if ( ! ! filter . intervalStartTime && ! filter . intervalEndTime ) {
114112 // interval.end_time is required if interval.start_time is set but the agent likes to forget it
115113 filter . intervalEndTime = new Date ( ) . toISOString ( ) ;
116- }
114+ }
117115 const ninetyDaysAgo = new Date ( Date . now ( ) - 90 * 24 * 60 * 60 * 1000 ) ;
118116 if ( filter . intervalStartTime && new Date ( filter . intervalStartTime ) < ninetyDaysAgo ) {
119117 throw new FirebaseError ( "intervalStartTime must be less than 90 days in the past" ) ;
Original file line number Diff line number Diff line change @@ -80,7 +80,6 @@ export async function getReport(
8080 filter : EventFilter ,
8181 pageSize = DEFAULT_PAGE_SIZE ,
8282) : Promise < Report > {
83-
8483 if ( ! reportName ) {
8584 throw new FirebaseError ( "Invalid Crashlytics report " + reportName ) ;
8685 }
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ You will assist developers in investigating and resolving mobile application iss
3636**Obtain the Firebase App ID.**
3737 If an App ID is not readily available, consult this guide for selection: [Firebase App Id Guide](firebase://guides/app_id).
3838
39- ${ connectResourceContent }
39+ ${ connectResourceContent }
4040` . trim ( ) ,
4141 } ,
4242 } ,
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ export const list_events = tool(
140140 if ( ! appId ) {
141141 result . isError = true ;
142142 result . content . push ( { type : "text" , text : "Must specify 'appId' parameter" } ) ;
143- result . content . push ( { type : "text" , text : forceAppIdGuide } ) ;
143+ result . content . push ( { type : "text" , text : forceAppIdGuide } ) ;
144144 }
145145 if ( ! filter || ( ! filter . issueId && ! filter . issueVariantId ) ) {
146146 result . isError = true ;
@@ -190,7 +190,7 @@ export const batch_get_events = tool(
190190 if ( ! appId ) {
191191 result . isError = true ;
192192 result . content . push ( { type : "text" , text : "Must specify 'appId' parameter." } ) ;
193- result . content . push ( { type : "text" , text : forceAppIdGuide } ) ;
193+ result . content . push ( { type : "text" , text : forceAppIdGuide } ) ;
194194 }
195195 if ( ! names || names . length === 0 ) {
196196 result . isError = true ;
Original file line number Diff line number Diff line change @@ -2,9 +2,7 @@ import type { ServerTool } from "../../tool";
22import { create_note , list_notes , delete_note } from "./notes" ;
33import { get_issue , update_issue } from "./issues" ;
44import { list_events , batch_get_events } from "./events" ;
5- import {
6- get_report ,
7- } from "./reports" ;
5+ import { get_report } from "./reports" ;
86
97export const crashlyticsTools : ServerTool [ ] = [
108 create_note ,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export const get_issue = tool(
3030 if ( ! appId ) {
3131 result . isError = true ;
3232 result . content . push ( { type : "text" , text : "Must specify 'appId' parameter" } ) ;
33- result . content . push ( { type : "text" , text : forceAppIdGuide } ) ;
33+ result . content . push ( { type : "text" , text : forceAppIdGuide } ) ;
3434 }
3535 if ( ! issueId ) {
3636 result . isError = true ;
@@ -70,7 +70,7 @@ export const update_issue = tool(
7070 if ( ! appId ) {
7171 result . isError = true ;
7272 result . content . push ( { type : "text" , text : "Must specify 'appId' parameter" } ) ;
73- result . content . push ( { type : "text" , text : forceAppIdGuide } ) ;
73+ result . content . push ( { type : "text" , text : forceAppIdGuide } ) ;
7474 }
7575 if ( ! issueId ) {
7676 result . isError = true ;
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
22import { dump , DumpOptions } from "js-yaml" ;
33import { EventFilter , validateEventFilters } from "../../../crashlytics/filters" ;
44import {
5- CrashlyticsReport ,
65 getReport ,
76 ReportInputSchema ,
87 simplifyReport ,
@@ -63,7 +62,7 @@ export const get_report = tool(
6362 if ( ! appId ) {
6463 result . isError = true ;
6564 result . content . push ( { type : "text" , text : "Must specify 'appId' parameter" } ) ;
66- result . content . push ( { type : "text" , text : forceAppIdGuide } ) ;
65+ result . content . push ( { type : "text" , text : forceAppIdGuide } ) ;
6766 }
6867 try {
6968 filter = validateEventFilters ( filter || { } ) ;
You can’t perform that action at this time.
0 commit comments