@sentry/junior-google 0.256.0 → 0.258.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.
- package/dist/db/schema.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/tools/cancel-event.d.ts +12 -12
- package/dist/tools/create-event.d.ts +29 -29
- package/dist/tools/files.d.ts +3 -3
- package/dist/tools/find-meeting-times.d.ts +27 -27
- package/dist/tools/list-events.d.ts +37 -37
- package/dist/tools/list-file-comments.d.ts +28 -28
- package/dist/tools/read-doc.d.ts +13 -13
- package/dist/tools/read-meeting-transcript.d.ts +21 -21
- package/dist/tools/read-sheet.d.ts +18 -18
- package/dist/tools/read-slides.d.ts +19 -19
- package/dist/tools/search-files.d.ts +17 -17
- package/dist/tools/shared.d.ts +11 -11
- package/dist/tools/update-event.d.ts +26 -26
- package/package.json +3 -3
package/dist/db/schema.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1344,7 +1344,7 @@ function localFormat(timeZone) {
|
|
|
1344
1344
|
});
|
|
1345
1345
|
}
|
|
1346
1346
|
function clockMinutes(value) {
|
|
1347
|
-
const [hours, minutes] = value.split(":").map(Number);
|
|
1347
|
+
const [hours = 0, minutes = 0] = value.split(":").map(Number);
|
|
1348
1348
|
return hours * 60 + minutes;
|
|
1349
1349
|
}
|
|
1350
1350
|
function overlaps(busy, startMs, endMs) {
|
|
@@ -11,14 +11,11 @@ export declare function createCancelCalendarEventTool(ctx: GoogleToolContext): i
|
|
|
11
11
|
timeZone?: string | undefined;
|
|
12
12
|
}, {
|
|
13
13
|
[x: string]: unknown;
|
|
14
|
-
eventId: string;
|
|
15
|
-
target: "cancelCalendarEvent";
|
|
16
|
-
cancelled: boolean;
|
|
17
14
|
objectAnnotations?: {
|
|
18
15
|
kind: "object";
|
|
19
16
|
key: string;
|
|
20
17
|
label: string;
|
|
21
|
-
objectType: "
|
|
18
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
22
19
|
title: string;
|
|
23
20
|
url: string | null;
|
|
24
21
|
description?: string | undefined;
|
|
@@ -33,7 +30,7 @@ export declare function createCancelCalendarEventTool(ctx: GoogleToolContext): i
|
|
|
33
30
|
sourceBranch?: string | undefined;
|
|
34
31
|
targetBranch?: string | undefined;
|
|
35
32
|
reviewers?: string[] | undefined;
|
|
36
|
-
review?: "
|
|
33
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
37
34
|
checks?: {
|
|
38
35
|
passed: number;
|
|
39
36
|
failed: number;
|
|
@@ -71,9 +68,10 @@ export declare function createCancelCalendarEventTool(ctx: GoogleToolContext): i
|
|
|
71
68
|
attendees?: {
|
|
72
69
|
email: string;
|
|
73
70
|
optional?: boolean | undefined;
|
|
74
|
-
response?: "accepted" | "declined" | "
|
|
71
|
+
response?: "accepted" | "declined" | "needsAction" | "tentative" | undefined;
|
|
75
72
|
}[] | undefined;
|
|
76
73
|
end?: string | undefined;
|
|
74
|
+
eventId: string;
|
|
77
75
|
label?: string | undefined;
|
|
78
76
|
location?: string | undefined;
|
|
79
77
|
repeats?: boolean | undefined;
|
|
@@ -82,16 +80,15 @@ export declare function createCancelCalendarEventTool(ctx: GoogleToolContext): i
|
|
|
82
80
|
title?: string | undefined;
|
|
83
81
|
url?: string | undefined;
|
|
84
82
|
videoCallUrl?: string | undefined;
|
|
85
|
-
}, {
|
|
86
|
-
[x: string]: unknown;
|
|
87
|
-
eventId: string;
|
|
88
83
|
target: "cancelCalendarEvent";
|
|
89
84
|
cancelled: boolean;
|
|
85
|
+
}, {
|
|
86
|
+
[x: string]: unknown;
|
|
90
87
|
objectAnnotations?: {
|
|
91
88
|
kind: "object";
|
|
92
89
|
key: string;
|
|
93
90
|
label: string;
|
|
94
|
-
objectType: "
|
|
91
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
95
92
|
title: string;
|
|
96
93
|
url: string | null;
|
|
97
94
|
description?: string | undefined;
|
|
@@ -106,7 +103,7 @@ export declare function createCancelCalendarEventTool(ctx: GoogleToolContext): i
|
|
|
106
103
|
sourceBranch?: string | undefined;
|
|
107
104
|
targetBranch?: string | undefined;
|
|
108
105
|
reviewers?: string[] | undefined;
|
|
109
|
-
review?: "
|
|
106
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
110
107
|
checks?: {
|
|
111
108
|
passed: number;
|
|
112
109
|
failed: number;
|
|
@@ -144,9 +141,10 @@ export declare function createCancelCalendarEventTool(ctx: GoogleToolContext): i
|
|
|
144
141
|
attendees?: {
|
|
145
142
|
email: string;
|
|
146
143
|
optional?: boolean | undefined;
|
|
147
|
-
response?: "accepted" | "declined" | "
|
|
144
|
+
response?: "accepted" | "declined" | "needsAction" | "tentative" | undefined;
|
|
148
145
|
}[] | undefined;
|
|
149
146
|
end?: string | undefined;
|
|
147
|
+
eventId: string;
|
|
150
148
|
label?: string | undefined;
|
|
151
149
|
location?: string | undefined;
|
|
152
150
|
repeats?: boolean | undefined;
|
|
@@ -155,4 +153,6 @@ export declare function createCancelCalendarEventTool(ctx: GoogleToolContext): i
|
|
|
155
153
|
title?: string | undefined;
|
|
156
154
|
url?: string | undefined;
|
|
157
155
|
videoCallUrl?: string | undefined;
|
|
156
|
+
target: "cancelCalendarEvent";
|
|
157
|
+
cancelled: boolean;
|
|
158
158
|
}>;
|
|
@@ -2,9 +2,9 @@ import { z } from "zod";
|
|
|
2
2
|
import { type GoogleToolContext } from "./shared";
|
|
3
3
|
declare const repeatSchema: z.ZodObject<{
|
|
4
4
|
frequency: z.ZodEnum<{
|
|
5
|
+
monthly: "monthly";
|
|
5
6
|
weekdays: "weekdays";
|
|
6
7
|
weekly: "weekly";
|
|
7
|
-
monthly: "monthly";
|
|
8
8
|
}>;
|
|
9
9
|
interval: z.ZodDefault<z.ZodNumber>;
|
|
10
10
|
count: z.ZodOptional<z.ZodNumber>;
|
|
@@ -22,36 +22,25 @@ export declare function calendarEventId(toolCallId: string | undefined): string;
|
|
|
22
22
|
/** Create an event on Junior's own calendar and invite the attendees. */
|
|
23
23
|
export declare function createCreateCalendarEventTool(ctx: GoogleToolContext): import("@sentry/junior-plugin-api").PluginToolDefinition<{
|
|
24
24
|
title: string;
|
|
25
|
+
description?: string | undefined;
|
|
26
|
+
location?: string | undefined;
|
|
25
27
|
start: string;
|
|
26
28
|
end: string;
|
|
29
|
+
timeZone?: string | undefined;
|
|
27
30
|
attendees: string[];
|
|
28
31
|
optionalAttendees: string[];
|
|
29
|
-
description?: string | undefined;
|
|
30
|
-
location?: string | undefined;
|
|
31
|
-
timeZone?: string | undefined;
|
|
32
32
|
repeat?: {
|
|
33
|
-
frequency: "
|
|
33
|
+
frequency: "monthly" | "weekdays" | "weekly";
|
|
34
34
|
interval: number;
|
|
35
35
|
count?: number | undefined;
|
|
36
36
|
} | undefined;
|
|
37
37
|
}, {
|
|
38
38
|
[x: string]: unknown;
|
|
39
|
-
attendees: {
|
|
40
|
-
email: string;
|
|
41
|
-
optional?: boolean | undefined;
|
|
42
|
-
response?: "accepted" | "declined" | "tentative" | "needsAction" | undefined;
|
|
43
|
-
}[];
|
|
44
|
-
end: string;
|
|
45
|
-
eventId: string;
|
|
46
|
-
label: string;
|
|
47
|
-
start: string;
|
|
48
|
-
target: "createCalendarEvent";
|
|
49
|
-
created: boolean;
|
|
50
39
|
objectAnnotations?: {
|
|
51
40
|
kind: "object";
|
|
52
41
|
key: string;
|
|
53
42
|
label: string;
|
|
54
|
-
objectType: "
|
|
43
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
55
44
|
title: string;
|
|
56
45
|
url: string | null;
|
|
57
46
|
description?: string | undefined;
|
|
@@ -66,7 +55,7 @@ export declare function createCreateCalendarEventTool(ctx: GoogleToolContext): i
|
|
|
66
55
|
sourceBranch?: string | undefined;
|
|
67
56
|
targetBranch?: string | undefined;
|
|
68
57
|
reviewers?: string[] | undefined;
|
|
69
|
-
review?: "
|
|
58
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
70
59
|
checks?: {
|
|
71
60
|
passed: number;
|
|
72
61
|
failed: number;
|
|
@@ -101,30 +90,30 @@ export declare function createCreateCalendarEventTool(ctx: GoogleToolContext): i
|
|
|
101
90
|
arguments: Record<string, unknown>;
|
|
102
91
|
reason?: string | undefined;
|
|
103
92
|
} | undefined;
|
|
104
|
-
location?: string | undefined;
|
|
105
|
-
repeats?: boolean | undefined;
|
|
106
|
-
seriesEventId?: string | undefined;
|
|
107
|
-
title?: string | undefined;
|
|
108
|
-
url?: string | undefined;
|
|
109
|
-
videoCallUrl?: string | undefined;
|
|
110
|
-
}, {
|
|
111
|
-
[x: string]: unknown;
|
|
112
93
|
attendees: {
|
|
113
94
|
email: string;
|
|
114
95
|
optional?: boolean | undefined;
|
|
115
|
-
response?: "accepted" | "declined" | "
|
|
96
|
+
response?: "accepted" | "declined" | "needsAction" | "tentative" | undefined;
|
|
116
97
|
}[];
|
|
117
98
|
end: string;
|
|
118
99
|
eventId: string;
|
|
119
100
|
label: string;
|
|
101
|
+
location?: string | undefined;
|
|
102
|
+
repeats?: boolean | undefined;
|
|
103
|
+
seriesEventId?: string | undefined;
|
|
120
104
|
start: string;
|
|
105
|
+
title?: string | undefined;
|
|
106
|
+
url?: string | undefined;
|
|
107
|
+
videoCallUrl?: string | undefined;
|
|
121
108
|
target: "createCalendarEvent";
|
|
122
109
|
created: boolean;
|
|
110
|
+
}, {
|
|
111
|
+
[x: string]: unknown;
|
|
123
112
|
objectAnnotations?: {
|
|
124
113
|
kind: "object";
|
|
125
114
|
key: string;
|
|
126
115
|
label: string;
|
|
127
|
-
objectType: "
|
|
116
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
128
117
|
title: string;
|
|
129
118
|
url: string | null;
|
|
130
119
|
description?: string | undefined;
|
|
@@ -139,7 +128,7 @@ export declare function createCreateCalendarEventTool(ctx: GoogleToolContext): i
|
|
|
139
128
|
sourceBranch?: string | undefined;
|
|
140
129
|
targetBranch?: string | undefined;
|
|
141
130
|
reviewers?: string[] | undefined;
|
|
142
|
-
review?: "
|
|
131
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
143
132
|
checks?: {
|
|
144
133
|
passed: number;
|
|
145
134
|
failed: number;
|
|
@@ -174,11 +163,22 @@ export declare function createCreateCalendarEventTool(ctx: GoogleToolContext): i
|
|
|
174
163
|
arguments: Record<string, unknown>;
|
|
175
164
|
reason?: string | undefined;
|
|
176
165
|
} | undefined;
|
|
166
|
+
attendees: {
|
|
167
|
+
email: string;
|
|
168
|
+
optional?: boolean | undefined;
|
|
169
|
+
response?: "accepted" | "declined" | "needsAction" | "tentative" | undefined;
|
|
170
|
+
}[];
|
|
171
|
+
end: string;
|
|
172
|
+
eventId: string;
|
|
173
|
+
label: string;
|
|
177
174
|
location?: string | undefined;
|
|
178
175
|
repeats?: boolean | undefined;
|
|
179
176
|
seriesEventId?: string | undefined;
|
|
177
|
+
start: string;
|
|
180
178
|
title?: string | undefined;
|
|
181
179
|
url?: string | undefined;
|
|
182
180
|
videoCallUrl?: string | undefined;
|
|
181
|
+
target: "createCalendarEvent";
|
|
182
|
+
created: boolean;
|
|
183
183
|
}>;
|
|
184
184
|
export {};
|
package/dist/tools/files.d.ts
CHANGED
|
@@ -58,20 +58,20 @@ export declare function googleFileRequest(ctx: GoogleToolContext, file: FileRefe
|
|
|
58
58
|
* before it reads content or comments.
|
|
59
59
|
*/
|
|
60
60
|
export declare function readGoogleFile(ctx: GoogleToolContext, file: FileReference, types: readonly GoogleFileType[]): Promise<{
|
|
61
|
-
type: "document" | "presentation" | "spreadsheet";
|
|
62
61
|
id: string;
|
|
63
62
|
mimeType: string;
|
|
64
|
-
name: string;
|
|
65
63
|
modifiedTime?: string | undefined;
|
|
64
|
+
name: string;
|
|
66
65
|
webViewLink?: string | undefined;
|
|
66
|
+
type: "document" | "presentation" | "spreadsheet";
|
|
67
67
|
}>;
|
|
68
68
|
/** Optional output fields shared by the tools that read one file. */
|
|
69
69
|
export declare function fileOutputFields(file: {
|
|
70
70
|
modifiedTime?: string;
|
|
71
71
|
webViewLink?: string;
|
|
72
72
|
}): {
|
|
73
|
-
url?: string | undefined;
|
|
74
73
|
modifiedTime?: string | undefined;
|
|
74
|
+
url?: string | undefined;
|
|
75
75
|
};
|
|
76
76
|
/** Longest file text that one tool result returns. */
|
|
77
77
|
export declare const MAX_CONTENT_CHARS = 100000;
|
|
@@ -43,36 +43,19 @@ export declare function createFindMeetingTimesTool(ctx: GoogleToolContext): impo
|
|
|
43
43
|
attendees: string[];
|
|
44
44
|
optionalAttendees: string[];
|
|
45
45
|
durationMinutes: number;
|
|
46
|
-
workdayStart: string;
|
|
47
|
-
workdayEnd: string;
|
|
48
|
-
maxResults: number;
|
|
49
46
|
timeMin?: string | undefined;
|
|
50
47
|
timeMax?: string | undefined;
|
|
51
48
|
timeZone?: string | undefined;
|
|
49
|
+
workdayStart: string;
|
|
50
|
+
workdayEnd: string;
|
|
51
|
+
maxResults: number;
|
|
52
52
|
}, {
|
|
53
53
|
[x: string]: unknown;
|
|
54
|
-
target: "findMeetingTimes";
|
|
55
|
-
checked: {
|
|
56
|
-
email: string;
|
|
57
|
-
timeZone?: string | undefined;
|
|
58
|
-
}[];
|
|
59
|
-
slots: {
|
|
60
|
-
end: string;
|
|
61
|
-
label: string;
|
|
62
|
-
start: string;
|
|
63
|
-
otherTimeZoneLabels?: string[] | undefined;
|
|
64
|
-
optionalConflicts?: string[] | undefined;
|
|
65
|
-
}[];
|
|
66
|
-
timeZone: string;
|
|
67
|
-
unavailable: {
|
|
68
|
-
email: string;
|
|
69
|
-
reason: string;
|
|
70
|
-
}[];
|
|
71
54
|
objectAnnotations?: {
|
|
72
55
|
kind: "object";
|
|
73
56
|
key: string;
|
|
74
57
|
label: string;
|
|
75
|
-
objectType: "
|
|
58
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
76
59
|
title: string;
|
|
77
60
|
url: string | null;
|
|
78
61
|
description?: string | undefined;
|
|
@@ -87,7 +70,7 @@ export declare function createFindMeetingTimesTool(ctx: GoogleToolContext): impo
|
|
|
87
70
|
sourceBranch?: string | undefined;
|
|
88
71
|
targetBranch?: string | undefined;
|
|
89
72
|
reviewers?: string[] | undefined;
|
|
90
|
-
review?: "
|
|
73
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
91
74
|
checks?: {
|
|
92
75
|
passed: number;
|
|
93
76
|
failed: number;
|
|
@@ -122,8 +105,6 @@ export declare function createFindMeetingTimesTool(ctx: GoogleToolContext): impo
|
|
|
122
105
|
arguments: Record<string, unknown>;
|
|
123
106
|
reason?: string | undefined;
|
|
124
107
|
} | undefined;
|
|
125
|
-
}, {
|
|
126
|
-
[x: string]: unknown;
|
|
127
108
|
target: "findMeetingTimes";
|
|
128
109
|
checked: {
|
|
129
110
|
email: string;
|
|
@@ -132,20 +113,22 @@ export declare function createFindMeetingTimesTool(ctx: GoogleToolContext): impo
|
|
|
132
113
|
slots: {
|
|
133
114
|
end: string;
|
|
134
115
|
label: string;
|
|
135
|
-
start: string;
|
|
136
116
|
otherTimeZoneLabels?: string[] | undefined;
|
|
137
117
|
optionalConflicts?: string[] | undefined;
|
|
118
|
+
start: string;
|
|
138
119
|
}[];
|
|
139
120
|
timeZone: string;
|
|
140
121
|
unavailable: {
|
|
141
122
|
email: string;
|
|
142
123
|
reason: string;
|
|
143
124
|
}[];
|
|
125
|
+
}, {
|
|
126
|
+
[x: string]: unknown;
|
|
144
127
|
objectAnnotations?: {
|
|
145
128
|
kind: "object";
|
|
146
129
|
key: string;
|
|
147
130
|
label: string;
|
|
148
|
-
objectType: "
|
|
131
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
149
132
|
title: string;
|
|
150
133
|
url: string | null;
|
|
151
134
|
description?: string | undefined;
|
|
@@ -160,7 +143,7 @@ export declare function createFindMeetingTimesTool(ctx: GoogleToolContext): impo
|
|
|
160
143
|
sourceBranch?: string | undefined;
|
|
161
144
|
targetBranch?: string | undefined;
|
|
162
145
|
reviewers?: string[] | undefined;
|
|
163
|
-
review?: "
|
|
146
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
164
147
|
checks?: {
|
|
165
148
|
passed: number;
|
|
166
149
|
failed: number;
|
|
@@ -195,5 +178,22 @@ export declare function createFindMeetingTimesTool(ctx: GoogleToolContext): impo
|
|
|
195
178
|
arguments: Record<string, unknown>;
|
|
196
179
|
reason?: string | undefined;
|
|
197
180
|
} | undefined;
|
|
181
|
+
target: "findMeetingTimes";
|
|
182
|
+
checked: {
|
|
183
|
+
email: string;
|
|
184
|
+
timeZone?: string | undefined;
|
|
185
|
+
}[];
|
|
186
|
+
slots: {
|
|
187
|
+
end: string;
|
|
188
|
+
label: string;
|
|
189
|
+
otherTimeZoneLabels?: string[] | undefined;
|
|
190
|
+
optionalConflicts?: string[] | undefined;
|
|
191
|
+
start: string;
|
|
192
|
+
}[];
|
|
193
|
+
timeZone: string;
|
|
194
|
+
unavailable: {
|
|
195
|
+
email: string;
|
|
196
|
+
reason: string;
|
|
197
|
+
}[];
|
|
198
198
|
}>;
|
|
199
199
|
export {};
|
|
@@ -7,41 +7,18 @@ import { type GoogleToolContext } from "./shared";
|
|
|
7
7
|
* returned, because they often hold links and notes meant only for attendees.
|
|
8
8
|
*/
|
|
9
9
|
export declare function createListCalendarEventsTool(ctx: GoogleToolContext): import("@sentry/junior-plugin-api").PluginToolDefinition<{
|
|
10
|
+
calendar?: string | undefined;
|
|
10
11
|
timeMin: string;
|
|
11
12
|
timeMax: string;
|
|
12
|
-
maxResults: number;
|
|
13
|
-
calendar?: string | undefined;
|
|
14
13
|
timeZone?: string | undefined;
|
|
14
|
+
maxResults: number;
|
|
15
15
|
}, {
|
|
16
16
|
[x: string]: unknown;
|
|
17
|
-
target: "listCalendarEvents";
|
|
18
|
-
calendar: string;
|
|
19
|
-
events: {
|
|
20
|
-
end: string;
|
|
21
|
-
eventId: string;
|
|
22
|
-
label: string;
|
|
23
|
-
organizedByJunior: boolean;
|
|
24
|
-
start: string;
|
|
25
|
-
attendees?: {
|
|
26
|
-
email: string;
|
|
27
|
-
optional?: boolean | undefined;
|
|
28
|
-
response?: "accepted" | "declined" | "tentative" | "needsAction" | undefined;
|
|
29
|
-
}[] | undefined;
|
|
30
|
-
location?: string | undefined;
|
|
31
|
-
organizer?: string | undefined;
|
|
32
|
-
seriesEventId?: string | undefined;
|
|
33
|
-
title?: string | undefined;
|
|
34
|
-
url?: string | undefined;
|
|
35
|
-
videoCallUrl?: string | undefined;
|
|
36
|
-
}[];
|
|
37
|
-
timeZone: string;
|
|
38
|
-
truncated: boolean;
|
|
39
|
-
visible: boolean;
|
|
40
17
|
objectAnnotations?: {
|
|
41
18
|
kind: "object";
|
|
42
19
|
key: string;
|
|
43
20
|
label: string;
|
|
44
|
-
objectType: "
|
|
21
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
45
22
|
title: string;
|
|
46
23
|
url: string | null;
|
|
47
24
|
description?: string | undefined;
|
|
@@ -56,7 +33,7 @@ export declare function createListCalendarEventsTool(ctx: GoogleToolContext): im
|
|
|
56
33
|
sourceBranch?: string | undefined;
|
|
57
34
|
targetBranch?: string | undefined;
|
|
58
35
|
reviewers?: string[] | undefined;
|
|
59
|
-
review?: "
|
|
36
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
60
37
|
checks?: {
|
|
61
38
|
passed: number;
|
|
62
39
|
failed: number;
|
|
@@ -90,24 +67,22 @@ export declare function createListCalendarEventsTool(ctx: GoogleToolContext): im
|
|
|
90
67
|
arguments: Record<string, unknown>;
|
|
91
68
|
reason?: string | undefined;
|
|
92
69
|
} | undefined;
|
|
93
|
-
}, {
|
|
94
|
-
[x: string]: unknown;
|
|
95
70
|
target: "listCalendarEvents";
|
|
96
71
|
calendar: string;
|
|
97
72
|
events: {
|
|
98
|
-
end: string;
|
|
99
|
-
eventId: string;
|
|
100
|
-
label: string;
|
|
101
|
-
organizedByJunior: boolean;
|
|
102
|
-
start: string;
|
|
103
73
|
attendees?: {
|
|
104
74
|
email: string;
|
|
105
75
|
optional?: boolean | undefined;
|
|
106
|
-
response?: "accepted" | "declined" | "
|
|
76
|
+
response?: "accepted" | "declined" | "needsAction" | "tentative" | undefined;
|
|
107
77
|
}[] | undefined;
|
|
78
|
+
end: string;
|
|
79
|
+
eventId: string;
|
|
80
|
+
label: string;
|
|
108
81
|
location?: string | undefined;
|
|
109
82
|
organizer?: string | undefined;
|
|
83
|
+
organizedByJunior: boolean;
|
|
110
84
|
seriesEventId?: string | undefined;
|
|
85
|
+
start: string;
|
|
111
86
|
title?: string | undefined;
|
|
112
87
|
url?: string | undefined;
|
|
113
88
|
videoCallUrl?: string | undefined;
|
|
@@ -115,11 +90,13 @@ export declare function createListCalendarEventsTool(ctx: GoogleToolContext): im
|
|
|
115
90
|
timeZone: string;
|
|
116
91
|
truncated: boolean;
|
|
117
92
|
visible: boolean;
|
|
93
|
+
}, {
|
|
94
|
+
[x: string]: unknown;
|
|
118
95
|
objectAnnotations?: {
|
|
119
96
|
kind: "object";
|
|
120
97
|
key: string;
|
|
121
98
|
label: string;
|
|
122
|
-
objectType: "
|
|
99
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
123
100
|
title: string;
|
|
124
101
|
url: string | null;
|
|
125
102
|
description?: string | undefined;
|
|
@@ -134,7 +111,7 @@ export declare function createListCalendarEventsTool(ctx: GoogleToolContext): im
|
|
|
134
111
|
sourceBranch?: string | undefined;
|
|
135
112
|
targetBranch?: string | undefined;
|
|
136
113
|
reviewers?: string[] | undefined;
|
|
137
|
-
review?: "
|
|
114
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
138
115
|
checks?: {
|
|
139
116
|
passed: number;
|
|
140
117
|
failed: number;
|
|
@@ -168,4 +145,27 @@ export declare function createListCalendarEventsTool(ctx: GoogleToolContext): im
|
|
|
168
145
|
arguments: Record<string, unknown>;
|
|
169
146
|
reason?: string | undefined;
|
|
170
147
|
} | undefined;
|
|
148
|
+
target: "listCalendarEvents";
|
|
149
|
+
calendar: string;
|
|
150
|
+
events: {
|
|
151
|
+
attendees?: {
|
|
152
|
+
email: string;
|
|
153
|
+
optional?: boolean | undefined;
|
|
154
|
+
response?: "accepted" | "declined" | "needsAction" | "tentative" | undefined;
|
|
155
|
+
}[] | undefined;
|
|
156
|
+
end: string;
|
|
157
|
+
eventId: string;
|
|
158
|
+
label: string;
|
|
159
|
+
location?: string | undefined;
|
|
160
|
+
organizer?: string | undefined;
|
|
161
|
+
organizedByJunior: boolean;
|
|
162
|
+
seriesEventId?: string | undefined;
|
|
163
|
+
start: string;
|
|
164
|
+
title?: string | undefined;
|
|
165
|
+
url?: string | undefined;
|
|
166
|
+
videoCallUrl?: string | undefined;
|
|
167
|
+
}[];
|
|
168
|
+
timeZone: string;
|
|
169
|
+
truncated: boolean;
|
|
170
|
+
visible: boolean;
|
|
171
171
|
}>;
|
|
@@ -5,27 +5,11 @@ export declare function createListGoogleFileCommentsTool(ctx: GoogleToolContext)
|
|
|
5
5
|
pageToken?: string | undefined;
|
|
6
6
|
}, {
|
|
7
7
|
[x: string]: unknown;
|
|
8
|
-
target: "listGoogleFileComments";
|
|
9
|
-
comments: {
|
|
10
|
-
commentId: string;
|
|
11
|
-
content: string;
|
|
12
|
-
replies: {
|
|
13
|
-
content: string;
|
|
14
|
-
action?: "resolve" | "reopen" | undefined;
|
|
15
|
-
author?: string | undefined;
|
|
16
|
-
createdTime?: string | undefined;
|
|
17
|
-
}[];
|
|
18
|
-
resolved: boolean;
|
|
19
|
-
author?: string | undefined;
|
|
20
|
-
createdTime?: string | undefined;
|
|
21
|
-
quotedText?: string | undefined;
|
|
22
|
-
}[];
|
|
23
|
-
fileId: string;
|
|
24
8
|
objectAnnotations?: {
|
|
25
9
|
kind: "object";
|
|
26
10
|
key: string;
|
|
27
11
|
label: string;
|
|
28
|
-
objectType: "
|
|
12
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
29
13
|
title: string;
|
|
30
14
|
url: string | null;
|
|
31
15
|
description?: string | undefined;
|
|
@@ -40,7 +24,7 @@ export declare function createListGoogleFileCommentsTool(ctx: GoogleToolContext)
|
|
|
40
24
|
sourceBranch?: string | undefined;
|
|
41
25
|
targetBranch?: string | undefined;
|
|
42
26
|
reviewers?: string[] | undefined;
|
|
43
|
-
review?: "
|
|
27
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
44
28
|
checks?: {
|
|
45
29
|
passed: number;
|
|
46
30
|
failed: number;
|
|
@@ -75,30 +59,30 @@ export declare function createListGoogleFileCommentsTool(ctx: GoogleToolContext)
|
|
|
75
59
|
arguments: Record<string, unknown>;
|
|
76
60
|
reason?: string | undefined;
|
|
77
61
|
} | undefined;
|
|
78
|
-
nextPageToken?: string | undefined;
|
|
79
|
-
}, {
|
|
80
|
-
[x: string]: unknown;
|
|
81
62
|
target: "listGoogleFileComments";
|
|
82
63
|
comments: {
|
|
64
|
+
author?: string | undefined;
|
|
83
65
|
commentId: string;
|
|
84
66
|
content: string;
|
|
67
|
+
createdTime?: string | undefined;
|
|
68
|
+
quotedText?: string | undefined;
|
|
85
69
|
replies: {
|
|
86
|
-
|
|
87
|
-
action?: "resolve" | "reopen" | undefined;
|
|
70
|
+
action?: "reopen" | "resolve" | undefined;
|
|
88
71
|
author?: string | undefined;
|
|
72
|
+
content: string;
|
|
89
73
|
createdTime?: string | undefined;
|
|
90
74
|
}[];
|
|
91
75
|
resolved: boolean;
|
|
92
|
-
author?: string | undefined;
|
|
93
|
-
createdTime?: string | undefined;
|
|
94
|
-
quotedText?: string | undefined;
|
|
95
76
|
}[];
|
|
96
77
|
fileId: string;
|
|
78
|
+
nextPageToken?: string | undefined;
|
|
79
|
+
}, {
|
|
80
|
+
[x: string]: unknown;
|
|
97
81
|
objectAnnotations?: {
|
|
98
82
|
kind: "object";
|
|
99
83
|
key: string;
|
|
100
84
|
label: string;
|
|
101
|
-
objectType: "
|
|
85
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
102
86
|
title: string;
|
|
103
87
|
url: string | null;
|
|
104
88
|
description?: string | undefined;
|
|
@@ -113,7 +97,7 @@ export declare function createListGoogleFileCommentsTool(ctx: GoogleToolContext)
|
|
|
113
97
|
sourceBranch?: string | undefined;
|
|
114
98
|
targetBranch?: string | undefined;
|
|
115
99
|
reviewers?: string[] | undefined;
|
|
116
|
-
review?: "
|
|
100
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
117
101
|
checks?: {
|
|
118
102
|
passed: number;
|
|
119
103
|
failed: number;
|
|
@@ -148,5 +132,21 @@ export declare function createListGoogleFileCommentsTool(ctx: GoogleToolContext)
|
|
|
148
132
|
arguments: Record<string, unknown>;
|
|
149
133
|
reason?: string | undefined;
|
|
150
134
|
} | undefined;
|
|
135
|
+
target: "listGoogleFileComments";
|
|
136
|
+
comments: {
|
|
137
|
+
author?: string | undefined;
|
|
138
|
+
commentId: string;
|
|
139
|
+
content: string;
|
|
140
|
+
createdTime?: string | undefined;
|
|
141
|
+
quotedText?: string | undefined;
|
|
142
|
+
replies: {
|
|
143
|
+
action?: "reopen" | "resolve" | undefined;
|
|
144
|
+
author?: string | undefined;
|
|
145
|
+
content: string;
|
|
146
|
+
createdTime?: string | undefined;
|
|
147
|
+
}[];
|
|
148
|
+
resolved: boolean;
|
|
149
|
+
}[];
|
|
150
|
+
fileId: string;
|
|
151
151
|
nextPageToken?: string | undefined;
|
|
152
152
|
}>;
|
package/dist/tools/read-doc.d.ts
CHANGED
|
@@ -9,16 +9,11 @@ export declare function createReadGoogleDocTool(ctx: GoogleToolContext): import(
|
|
|
9
9
|
document: string;
|
|
10
10
|
}, {
|
|
11
11
|
[x: string]: unknown;
|
|
12
|
-
target: "readGoogleDoc";
|
|
13
|
-
content: string;
|
|
14
|
-
documentId: string;
|
|
15
|
-
title: string;
|
|
16
|
-
truncated: boolean;
|
|
17
12
|
objectAnnotations?: {
|
|
18
13
|
kind: "object";
|
|
19
14
|
key: string;
|
|
20
15
|
label: string;
|
|
21
|
-
objectType: "
|
|
16
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
22
17
|
title: string;
|
|
23
18
|
url: string | null;
|
|
24
19
|
description?: string | undefined;
|
|
@@ -33,7 +28,7 @@ export declare function createReadGoogleDocTool(ctx: GoogleToolContext): import(
|
|
|
33
28
|
sourceBranch?: string | undefined;
|
|
34
29
|
targetBranch?: string | undefined;
|
|
35
30
|
reviewers?: string[] | undefined;
|
|
36
|
-
review?: "
|
|
31
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
37
32
|
checks?: {
|
|
38
33
|
passed: number;
|
|
39
34
|
failed: number;
|
|
@@ -67,20 +62,20 @@ export declare function createReadGoogleDocTool(ctx: GoogleToolContext): import(
|
|
|
67
62
|
arguments: Record<string, unknown>;
|
|
68
63
|
reason?: string | undefined;
|
|
69
64
|
} | undefined;
|
|
70
|
-
modifiedTime?: string | undefined;
|
|
71
|
-
url?: string | undefined;
|
|
72
|
-
}, {
|
|
73
|
-
[x: string]: unknown;
|
|
74
65
|
target: "readGoogleDoc";
|
|
75
66
|
content: string;
|
|
76
67
|
documentId: string;
|
|
68
|
+
modifiedTime?: string | undefined;
|
|
77
69
|
title: string;
|
|
78
70
|
truncated: boolean;
|
|
71
|
+
url?: string | undefined;
|
|
72
|
+
}, {
|
|
73
|
+
[x: string]: unknown;
|
|
79
74
|
objectAnnotations?: {
|
|
80
75
|
kind: "object";
|
|
81
76
|
key: string;
|
|
82
77
|
label: string;
|
|
83
|
-
objectType: "
|
|
78
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
84
79
|
title: string;
|
|
85
80
|
url: string | null;
|
|
86
81
|
description?: string | undefined;
|
|
@@ -95,7 +90,7 @@ export declare function createReadGoogleDocTool(ctx: GoogleToolContext): import(
|
|
|
95
90
|
sourceBranch?: string | undefined;
|
|
96
91
|
targetBranch?: string | undefined;
|
|
97
92
|
reviewers?: string[] | undefined;
|
|
98
|
-
review?: "
|
|
93
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
99
94
|
checks?: {
|
|
100
95
|
passed: number;
|
|
101
96
|
failed: number;
|
|
@@ -129,6 +124,11 @@ export declare function createReadGoogleDocTool(ctx: GoogleToolContext): import(
|
|
|
129
124
|
arguments: Record<string, unknown>;
|
|
130
125
|
reason?: string | undefined;
|
|
131
126
|
} | undefined;
|
|
127
|
+
target: "readGoogleDoc";
|
|
128
|
+
content: string;
|
|
129
|
+
documentId: string;
|
|
132
130
|
modifiedTime?: string | undefined;
|
|
131
|
+
title: string;
|
|
132
|
+
truncated: boolean;
|
|
133
133
|
url?: string | undefined;
|
|
134
134
|
}>;
|
|
@@ -11,22 +11,11 @@ export declare function createReadMeetingTranscriptTool(ctx: GoogleToolContext):
|
|
|
11
11
|
eventId: string;
|
|
12
12
|
}, {
|
|
13
13
|
[x: string]: unknown;
|
|
14
|
-
target: "readMeetingTranscript";
|
|
15
|
-
eventId: string;
|
|
16
|
-
records: {
|
|
17
|
-
content: string;
|
|
18
|
-
kind: "document" | "notes" | "transcript";
|
|
19
|
-
title: string;
|
|
20
|
-
path?: string | undefined;
|
|
21
|
-
url?: string | undefined;
|
|
22
|
-
}[];
|
|
23
|
-
status: "ok" | "no_record";
|
|
24
|
-
truncated: boolean;
|
|
25
14
|
objectAnnotations?: {
|
|
26
15
|
kind: "object";
|
|
27
16
|
key: string;
|
|
28
17
|
label: string;
|
|
29
|
-
objectType: "
|
|
18
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
30
19
|
title: string;
|
|
31
20
|
url: string | null;
|
|
32
21
|
description?: string | undefined;
|
|
@@ -41,7 +30,7 @@ export declare function createReadMeetingTranscriptTool(ctx: GoogleToolContext):
|
|
|
41
30
|
sourceBranch?: string | undefined;
|
|
42
31
|
targetBranch?: string | undefined;
|
|
43
32
|
reviewers?: string[] | undefined;
|
|
44
|
-
review?: "
|
|
33
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
45
34
|
checks?: {
|
|
46
35
|
passed: number;
|
|
47
36
|
failed: number;
|
|
@@ -75,26 +64,26 @@ export declare function createReadMeetingTranscriptTool(ctx: GoogleToolContext):
|
|
|
75
64
|
arguments: Record<string, unknown>;
|
|
76
65
|
reason?: string | undefined;
|
|
77
66
|
} | undefined;
|
|
78
|
-
message?: string | undefined;
|
|
79
|
-
title?: string | undefined;
|
|
80
|
-
}, {
|
|
81
|
-
[x: string]: unknown;
|
|
82
67
|
target: "readMeetingTranscript";
|
|
83
68
|
eventId: string;
|
|
69
|
+
message?: string | undefined;
|
|
84
70
|
records: {
|
|
85
71
|
content: string;
|
|
86
72
|
kind: "document" | "notes" | "transcript";
|
|
87
|
-
title: string;
|
|
88
73
|
path?: string | undefined;
|
|
74
|
+
title: string;
|
|
89
75
|
url?: string | undefined;
|
|
90
76
|
}[];
|
|
91
|
-
status: "
|
|
77
|
+
status: "no_record" | "ok";
|
|
78
|
+
title?: string | undefined;
|
|
92
79
|
truncated: boolean;
|
|
80
|
+
}, {
|
|
81
|
+
[x: string]: unknown;
|
|
93
82
|
objectAnnotations?: {
|
|
94
83
|
kind: "object";
|
|
95
84
|
key: string;
|
|
96
85
|
label: string;
|
|
97
|
-
objectType: "
|
|
86
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
98
87
|
title: string;
|
|
99
88
|
url: string | null;
|
|
100
89
|
description?: string | undefined;
|
|
@@ -109,7 +98,7 @@ export declare function createReadMeetingTranscriptTool(ctx: GoogleToolContext):
|
|
|
109
98
|
sourceBranch?: string | undefined;
|
|
110
99
|
targetBranch?: string | undefined;
|
|
111
100
|
reviewers?: string[] | undefined;
|
|
112
|
-
review?: "
|
|
101
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
113
102
|
checks?: {
|
|
114
103
|
passed: number;
|
|
115
104
|
failed: number;
|
|
@@ -143,6 +132,17 @@ export declare function createReadMeetingTranscriptTool(ctx: GoogleToolContext):
|
|
|
143
132
|
arguments: Record<string, unknown>;
|
|
144
133
|
reason?: string | undefined;
|
|
145
134
|
} | undefined;
|
|
135
|
+
target: "readMeetingTranscript";
|
|
136
|
+
eventId: string;
|
|
146
137
|
message?: string | undefined;
|
|
138
|
+
records: {
|
|
139
|
+
content: string;
|
|
140
|
+
kind: "document" | "notes" | "transcript";
|
|
141
|
+
path?: string | undefined;
|
|
142
|
+
title: string;
|
|
143
|
+
url?: string | undefined;
|
|
144
|
+
}[];
|
|
145
|
+
status: "no_record" | "ok";
|
|
147
146
|
title?: string | undefined;
|
|
147
|
+
truncated: boolean;
|
|
148
148
|
}>;
|
|
@@ -10,21 +10,11 @@ export declare function createReadGoogleSheetTool(ctx: GoogleToolContext): impor
|
|
|
10
10
|
range?: string | undefined;
|
|
11
11
|
}, {
|
|
12
12
|
[x: string]: unknown;
|
|
13
|
-
target: "readGoogleSheet";
|
|
14
|
-
ranges: {
|
|
15
|
-
content: string;
|
|
16
|
-
range: string;
|
|
17
|
-
truncated: boolean;
|
|
18
|
-
}[];
|
|
19
|
-
spreadsheetId: string;
|
|
20
|
-
tabs: string[];
|
|
21
|
-
title: string;
|
|
22
|
-
truncated: boolean;
|
|
23
13
|
objectAnnotations?: {
|
|
24
14
|
kind: "object";
|
|
25
15
|
key: string;
|
|
26
16
|
label: string;
|
|
27
|
-
objectType: "
|
|
17
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
28
18
|
title: string;
|
|
29
19
|
url: string | null;
|
|
30
20
|
description?: string | undefined;
|
|
@@ -39,7 +29,7 @@ export declare function createReadGoogleSheetTool(ctx: GoogleToolContext): impor
|
|
|
39
29
|
sourceBranch?: string | undefined;
|
|
40
30
|
targetBranch?: string | undefined;
|
|
41
31
|
reviewers?: string[] | undefined;
|
|
42
|
-
review?: "
|
|
32
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
43
33
|
checks?: {
|
|
44
34
|
passed: number;
|
|
45
35
|
failed: number;
|
|
@@ -73,11 +63,8 @@ export declare function createReadGoogleSheetTool(ctx: GoogleToolContext): impor
|
|
|
73
63
|
arguments: Record<string, unknown>;
|
|
74
64
|
reason?: string | undefined;
|
|
75
65
|
} | undefined;
|
|
76
|
-
modifiedTime?: string | undefined;
|
|
77
|
-
url?: string | undefined;
|
|
78
|
-
}, {
|
|
79
|
-
[x: string]: unknown;
|
|
80
66
|
target: "readGoogleSheet";
|
|
67
|
+
modifiedTime?: string | undefined;
|
|
81
68
|
ranges: {
|
|
82
69
|
content: string;
|
|
83
70
|
range: string;
|
|
@@ -87,11 +74,14 @@ export declare function createReadGoogleSheetTool(ctx: GoogleToolContext): impor
|
|
|
87
74
|
tabs: string[];
|
|
88
75
|
title: string;
|
|
89
76
|
truncated: boolean;
|
|
77
|
+
url?: string | undefined;
|
|
78
|
+
}, {
|
|
79
|
+
[x: string]: unknown;
|
|
90
80
|
objectAnnotations?: {
|
|
91
81
|
kind: "object";
|
|
92
82
|
key: string;
|
|
93
83
|
label: string;
|
|
94
|
-
objectType: "
|
|
84
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
95
85
|
title: string;
|
|
96
86
|
url: string | null;
|
|
97
87
|
description?: string | undefined;
|
|
@@ -106,7 +96,7 @@ export declare function createReadGoogleSheetTool(ctx: GoogleToolContext): impor
|
|
|
106
96
|
sourceBranch?: string | undefined;
|
|
107
97
|
targetBranch?: string | undefined;
|
|
108
98
|
reviewers?: string[] | undefined;
|
|
109
|
-
review?: "
|
|
99
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
110
100
|
checks?: {
|
|
111
101
|
passed: number;
|
|
112
102
|
failed: number;
|
|
@@ -140,6 +130,16 @@ export declare function createReadGoogleSheetTool(ctx: GoogleToolContext): impor
|
|
|
140
130
|
arguments: Record<string, unknown>;
|
|
141
131
|
reason?: string | undefined;
|
|
142
132
|
} | undefined;
|
|
133
|
+
target: "readGoogleSheet";
|
|
143
134
|
modifiedTime?: string | undefined;
|
|
135
|
+
ranges: {
|
|
136
|
+
content: string;
|
|
137
|
+
range: string;
|
|
138
|
+
truncated: boolean;
|
|
139
|
+
}[];
|
|
140
|
+
spreadsheetId: string;
|
|
141
|
+
tabs: string[];
|
|
142
|
+
title: string;
|
|
143
|
+
truncated: boolean;
|
|
144
144
|
url?: string | undefined;
|
|
145
145
|
}>;
|
|
@@ -9,21 +9,11 @@ export declare function createReadGoogleSlidesTool(ctx: GoogleToolContext): impo
|
|
|
9
9
|
presentation: string;
|
|
10
10
|
}, {
|
|
11
11
|
[x: string]: unknown;
|
|
12
|
-
target: "readGoogleSlides";
|
|
13
|
-
presentationId: string;
|
|
14
|
-
slideCount: number;
|
|
15
|
-
slides: {
|
|
16
|
-
slideNumber: number;
|
|
17
|
-
text: string;
|
|
18
|
-
notes?: string | undefined;
|
|
19
|
-
}[];
|
|
20
|
-
title: string;
|
|
21
|
-
truncated: boolean;
|
|
22
12
|
objectAnnotations?: {
|
|
23
13
|
kind: "object";
|
|
24
14
|
key: string;
|
|
25
15
|
label: string;
|
|
26
|
-
objectType: "
|
|
16
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
27
17
|
title: string;
|
|
28
18
|
url: string | null;
|
|
29
19
|
description?: string | undefined;
|
|
@@ -38,7 +28,7 @@ export declare function createReadGoogleSlidesTool(ctx: GoogleToolContext): impo
|
|
|
38
28
|
sourceBranch?: string | undefined;
|
|
39
29
|
targetBranch?: string | undefined;
|
|
40
30
|
reviewers?: string[] | undefined;
|
|
41
|
-
review?: "
|
|
31
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
42
32
|
checks?: {
|
|
43
33
|
passed: number;
|
|
44
34
|
failed: number;
|
|
@@ -72,25 +62,25 @@ export declare function createReadGoogleSlidesTool(ctx: GoogleToolContext): impo
|
|
|
72
62
|
arguments: Record<string, unknown>;
|
|
73
63
|
reason?: string | undefined;
|
|
74
64
|
} | undefined;
|
|
75
|
-
modifiedTime?: string | undefined;
|
|
76
|
-
url?: string | undefined;
|
|
77
|
-
}, {
|
|
78
|
-
[x: string]: unknown;
|
|
79
65
|
target: "readGoogleSlides";
|
|
66
|
+
modifiedTime?: string | undefined;
|
|
80
67
|
presentationId: string;
|
|
81
68
|
slideCount: number;
|
|
82
69
|
slides: {
|
|
70
|
+
notes?: string | undefined;
|
|
83
71
|
slideNumber: number;
|
|
84
72
|
text: string;
|
|
85
|
-
notes?: string | undefined;
|
|
86
73
|
}[];
|
|
87
74
|
title: string;
|
|
88
75
|
truncated: boolean;
|
|
76
|
+
url?: string | undefined;
|
|
77
|
+
}, {
|
|
78
|
+
[x: string]: unknown;
|
|
89
79
|
objectAnnotations?: {
|
|
90
80
|
kind: "object";
|
|
91
81
|
key: string;
|
|
92
82
|
label: string;
|
|
93
|
-
objectType: "
|
|
83
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
94
84
|
title: string;
|
|
95
85
|
url: string | null;
|
|
96
86
|
description?: string | undefined;
|
|
@@ -105,7 +95,7 @@ export declare function createReadGoogleSlidesTool(ctx: GoogleToolContext): impo
|
|
|
105
95
|
sourceBranch?: string | undefined;
|
|
106
96
|
targetBranch?: string | undefined;
|
|
107
97
|
reviewers?: string[] | undefined;
|
|
108
|
-
review?: "
|
|
98
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
109
99
|
checks?: {
|
|
110
100
|
passed: number;
|
|
111
101
|
failed: number;
|
|
@@ -139,6 +129,16 @@ export declare function createReadGoogleSlidesTool(ctx: GoogleToolContext): impo
|
|
|
139
129
|
arguments: Record<string, unknown>;
|
|
140
130
|
reason?: string | undefined;
|
|
141
131
|
} | undefined;
|
|
132
|
+
target: "readGoogleSlides";
|
|
142
133
|
modifiedTime?: string | undefined;
|
|
134
|
+
presentationId: string;
|
|
135
|
+
slideCount: number;
|
|
136
|
+
slides: {
|
|
137
|
+
notes?: string | undefined;
|
|
138
|
+
slideNumber: number;
|
|
139
|
+
text: string;
|
|
140
|
+
}[];
|
|
141
|
+
title: string;
|
|
142
|
+
truncated: boolean;
|
|
143
143
|
url?: string | undefined;
|
|
144
144
|
}>;
|
|
@@ -2,24 +2,15 @@ import { type GoogleToolContext } from "./shared";
|
|
|
2
2
|
/** Find Docs, Sheets, and Slides that Junior's account can open. */
|
|
3
3
|
export declare function createSearchGoogleFilesTool(ctx: GoogleToolContext): import("@sentry/junior-plugin-api").PluginToolDefinition<{
|
|
4
4
|
query: string;
|
|
5
|
-
maxResults: number;
|
|
6
5
|
types?: ("document" | "presentation" | "spreadsheet")[] | undefined;
|
|
6
|
+
maxResults: number;
|
|
7
7
|
}, {
|
|
8
8
|
[x: string]: unknown;
|
|
9
|
-
target: "searchGoogleFiles";
|
|
10
|
-
files: {
|
|
11
|
-
fileId: string;
|
|
12
|
-
title: string;
|
|
13
|
-
type: "document" | "presentation" | "spreadsheet";
|
|
14
|
-
modifiedTime?: string | undefined;
|
|
15
|
-
url?: string | undefined;
|
|
16
|
-
}[];
|
|
17
|
-
truncated: boolean;
|
|
18
9
|
objectAnnotations?: {
|
|
19
10
|
kind: "object";
|
|
20
11
|
key: string;
|
|
21
12
|
label: string;
|
|
22
|
-
objectType: "
|
|
13
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
23
14
|
title: string;
|
|
24
15
|
url: string | null;
|
|
25
16
|
description?: string | undefined;
|
|
@@ -34,7 +25,7 @@ export declare function createSearchGoogleFilesTool(ctx: GoogleToolContext): imp
|
|
|
34
25
|
sourceBranch?: string | undefined;
|
|
35
26
|
targetBranch?: string | undefined;
|
|
36
27
|
reviewers?: string[] | undefined;
|
|
37
|
-
review?: "
|
|
28
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
38
29
|
checks?: {
|
|
39
30
|
passed: number;
|
|
40
31
|
failed: number;
|
|
@@ -68,22 +59,22 @@ export declare function createSearchGoogleFilesTool(ctx: GoogleToolContext): imp
|
|
|
68
59
|
arguments: Record<string, unknown>;
|
|
69
60
|
reason?: string | undefined;
|
|
70
61
|
} | undefined;
|
|
71
|
-
}, {
|
|
72
|
-
[x: string]: unknown;
|
|
73
62
|
target: "searchGoogleFiles";
|
|
74
63
|
files: {
|
|
75
64
|
fileId: string;
|
|
65
|
+
modifiedTime?: string | undefined;
|
|
76
66
|
title: string;
|
|
77
67
|
type: "document" | "presentation" | "spreadsheet";
|
|
78
|
-
modifiedTime?: string | undefined;
|
|
79
68
|
url?: string | undefined;
|
|
80
69
|
}[];
|
|
81
70
|
truncated: boolean;
|
|
71
|
+
}, {
|
|
72
|
+
[x: string]: unknown;
|
|
82
73
|
objectAnnotations?: {
|
|
83
74
|
kind: "object";
|
|
84
75
|
key: string;
|
|
85
76
|
label: string;
|
|
86
|
-
objectType: "
|
|
77
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
87
78
|
title: string;
|
|
88
79
|
url: string | null;
|
|
89
80
|
description?: string | undefined;
|
|
@@ -98,7 +89,7 @@ export declare function createSearchGoogleFilesTool(ctx: GoogleToolContext): imp
|
|
|
98
89
|
sourceBranch?: string | undefined;
|
|
99
90
|
targetBranch?: string | undefined;
|
|
100
91
|
reviewers?: string[] | undefined;
|
|
101
|
-
review?: "
|
|
92
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
102
93
|
checks?: {
|
|
103
94
|
passed: number;
|
|
104
95
|
failed: number;
|
|
@@ -132,4 +123,13 @@ export declare function createSearchGoogleFilesTool(ctx: GoogleToolContext): imp
|
|
|
132
123
|
arguments: Record<string, unknown>;
|
|
133
124
|
reason?: string | undefined;
|
|
134
125
|
} | undefined;
|
|
126
|
+
target: "searchGoogleFiles";
|
|
127
|
+
files: {
|
|
128
|
+
fileId: string;
|
|
129
|
+
modifiedTime?: string | undefined;
|
|
130
|
+
title: string;
|
|
131
|
+
type: "document" | "presentation" | "spreadsheet";
|
|
132
|
+
url?: string | undefined;
|
|
133
|
+
}[];
|
|
134
|
+
truncated: boolean;
|
|
135
135
|
}>;
|
package/dist/tools/shared.d.ts
CHANGED
|
@@ -70,8 +70,8 @@ export declare const attendeeOutputSchema: z.ZodObject<{
|
|
|
70
70
|
response: z.ZodOptional<z.ZodEnum<{
|
|
71
71
|
accepted: "accepted";
|
|
72
72
|
declined: "declined";
|
|
73
|
-
tentative: "tentative";
|
|
74
73
|
needsAction: "needsAction";
|
|
74
|
+
tentative: "tentative";
|
|
75
75
|
}>>;
|
|
76
76
|
}, z.core.$strip>;
|
|
77
77
|
/** Shape Google attendees for a tool result. Room resources are left out. */
|
|
@@ -113,17 +113,11 @@ export type OwnEvent = z.infer<typeof ownEventSchema>;
|
|
|
113
113
|
* label is the short date for the sidebar; the card shows the full time.
|
|
114
114
|
*/
|
|
115
115
|
export declare function ownEventResult(event: OwnEvent, timeZone: string): {
|
|
116
|
-
videoCallUrl?: string | undefined;
|
|
117
|
-
url?: string | undefined;
|
|
118
|
-
seriesEventId?: string | undefined;
|
|
119
|
-
repeats?: boolean | undefined;
|
|
120
|
-
location?: string | undefined;
|
|
121
|
-
title?: string | undefined;
|
|
122
116
|
objectAnnotations: {
|
|
123
117
|
kind: "object";
|
|
124
118
|
key: string;
|
|
125
119
|
label: string;
|
|
126
|
-
objectType: "
|
|
120
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
127
121
|
title: string;
|
|
128
122
|
url: string | null;
|
|
129
123
|
description?: string | undefined;
|
|
@@ -138,7 +132,7 @@ export declare function ownEventResult(event: OwnEvent, timeZone: string): {
|
|
|
138
132
|
sourceBranch?: string | undefined;
|
|
139
133
|
targetBranch?: string | undefined;
|
|
140
134
|
reviewers?: string[] | undefined;
|
|
141
|
-
review?: "
|
|
135
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
142
136
|
checks?: {
|
|
143
137
|
passed: number;
|
|
144
138
|
failed: number;
|
|
@@ -171,12 +165,18 @@ export declare function ownEventResult(event: OwnEvent, timeZone: string): {
|
|
|
171
165
|
attendees: {
|
|
172
166
|
email: string;
|
|
173
167
|
optional?: boolean | undefined;
|
|
174
|
-
response?: "accepted" | "declined" | "
|
|
168
|
+
response?: "accepted" | "declined" | "needsAction" | "tentative" | undefined;
|
|
175
169
|
}[];
|
|
176
170
|
end: string;
|
|
177
171
|
eventId: string;
|
|
178
172
|
label: string;
|
|
179
173
|
start: string;
|
|
174
|
+
title?: string | undefined;
|
|
175
|
+
location?: string | undefined;
|
|
176
|
+
repeats?: boolean | undefined;
|
|
177
|
+
seriesEventId?: string | undefined;
|
|
178
|
+
url?: string | undefined;
|
|
179
|
+
videoCallUrl?: string | undefined;
|
|
180
180
|
};
|
|
181
181
|
/** Output fields shared by the tools that create or change Junior's events. */
|
|
182
182
|
export declare const ownEventOutputFields: {
|
|
@@ -186,8 +186,8 @@ export declare const ownEventOutputFields: {
|
|
|
186
186
|
response: z.ZodOptional<z.ZodEnum<{
|
|
187
187
|
accepted: "accepted";
|
|
188
188
|
declined: "declined";
|
|
189
|
-
tentative: "tentative";
|
|
190
189
|
needsAction: "needsAction";
|
|
190
|
+
tentative: "tentative";
|
|
191
191
|
}>>;
|
|
192
192
|
}, z.core.$strip>>;
|
|
193
193
|
end: z.ZodString;
|
|
@@ -6,33 +6,23 @@ import { type GoogleToolContext } from "./shared";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare function createUpdateCalendarEventTool(ctx: GoogleToolContext): import("@sentry/junior-plugin-api").PluginToolDefinition<{
|
|
8
8
|
eventId: string;
|
|
9
|
-
addAttendees: string[];
|
|
10
|
-
addOptionalAttendees: string[];
|
|
11
|
-
removeAttendees: string[];
|
|
12
9
|
title?: string | undefined;
|
|
13
10
|
description?: string | undefined;
|
|
14
11
|
start?: string | undefined;
|
|
15
12
|
end?: string | undefined;
|
|
16
13
|
timeZone?: string | undefined;
|
|
17
14
|
location?: string | undefined;
|
|
15
|
+
addAttendees: string[];
|
|
16
|
+
addOptionalAttendees: string[];
|
|
17
|
+
removeAttendees: string[];
|
|
18
18
|
addVideoCall?: true | undefined;
|
|
19
19
|
}, {
|
|
20
20
|
[x: string]: unknown;
|
|
21
|
-
attendees: {
|
|
22
|
-
email: string;
|
|
23
|
-
optional?: boolean | undefined;
|
|
24
|
-
response?: "accepted" | "declined" | "tentative" | "needsAction" | undefined;
|
|
25
|
-
}[];
|
|
26
|
-
end: string;
|
|
27
|
-
eventId: string;
|
|
28
|
-
label: string;
|
|
29
|
-
start: string;
|
|
30
|
-
target: "updateCalendarEvent";
|
|
31
21
|
objectAnnotations?: {
|
|
32
22
|
kind: "object";
|
|
33
23
|
key: string;
|
|
34
24
|
label: string;
|
|
35
|
-
objectType: "
|
|
25
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
36
26
|
title: string;
|
|
37
27
|
url: string | null;
|
|
38
28
|
description?: string | undefined;
|
|
@@ -47,7 +37,7 @@ export declare function createUpdateCalendarEventTool(ctx: GoogleToolContext): i
|
|
|
47
37
|
sourceBranch?: string | undefined;
|
|
48
38
|
targetBranch?: string | undefined;
|
|
49
39
|
reviewers?: string[] | undefined;
|
|
50
|
-
review?: "
|
|
40
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
51
41
|
checks?: {
|
|
52
42
|
passed: number;
|
|
53
43
|
failed: number;
|
|
@@ -82,29 +72,29 @@ export declare function createUpdateCalendarEventTool(ctx: GoogleToolContext): i
|
|
|
82
72
|
arguments: Record<string, unknown>;
|
|
83
73
|
reason?: string | undefined;
|
|
84
74
|
} | undefined;
|
|
85
|
-
location?: string | undefined;
|
|
86
|
-
repeats?: boolean | undefined;
|
|
87
|
-
seriesEventId?: string | undefined;
|
|
88
|
-
title?: string | undefined;
|
|
89
|
-
url?: string | undefined;
|
|
90
|
-
videoCallUrl?: string | undefined;
|
|
91
|
-
}, {
|
|
92
|
-
[x: string]: unknown;
|
|
93
75
|
attendees: {
|
|
94
76
|
email: string;
|
|
95
77
|
optional?: boolean | undefined;
|
|
96
|
-
response?: "accepted" | "declined" | "
|
|
78
|
+
response?: "accepted" | "declined" | "needsAction" | "tentative" | undefined;
|
|
97
79
|
}[];
|
|
98
80
|
end: string;
|
|
99
81
|
eventId: string;
|
|
100
82
|
label: string;
|
|
83
|
+
location?: string | undefined;
|
|
84
|
+
repeats?: boolean | undefined;
|
|
85
|
+
seriesEventId?: string | undefined;
|
|
101
86
|
start: string;
|
|
87
|
+
title?: string | undefined;
|
|
88
|
+
url?: string | undefined;
|
|
89
|
+
videoCallUrl?: string | undefined;
|
|
102
90
|
target: "updateCalendarEvent";
|
|
91
|
+
}, {
|
|
92
|
+
[x: string]: unknown;
|
|
103
93
|
objectAnnotations?: {
|
|
104
94
|
kind: "object";
|
|
105
95
|
key: string;
|
|
106
96
|
label: string;
|
|
107
|
-
objectType: "
|
|
97
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
108
98
|
title: string;
|
|
109
99
|
url: string | null;
|
|
110
100
|
description?: string | undefined;
|
|
@@ -119,7 +109,7 @@ export declare function createUpdateCalendarEventTool(ctx: GoogleToolContext): i
|
|
|
119
109
|
sourceBranch?: string | undefined;
|
|
120
110
|
targetBranch?: string | undefined;
|
|
121
111
|
reviewers?: string[] | undefined;
|
|
122
|
-
review?: "
|
|
112
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
123
113
|
checks?: {
|
|
124
114
|
passed: number;
|
|
125
115
|
failed: number;
|
|
@@ -154,10 +144,20 @@ export declare function createUpdateCalendarEventTool(ctx: GoogleToolContext): i
|
|
|
154
144
|
arguments: Record<string, unknown>;
|
|
155
145
|
reason?: string | undefined;
|
|
156
146
|
} | undefined;
|
|
147
|
+
attendees: {
|
|
148
|
+
email: string;
|
|
149
|
+
optional?: boolean | undefined;
|
|
150
|
+
response?: "accepted" | "declined" | "needsAction" | "tentative" | undefined;
|
|
151
|
+
}[];
|
|
152
|
+
end: string;
|
|
153
|
+
eventId: string;
|
|
154
|
+
label: string;
|
|
157
155
|
location?: string | undefined;
|
|
158
156
|
repeats?: boolean | undefined;
|
|
159
157
|
seriesEventId?: string | undefined;
|
|
158
|
+
start: string;
|
|
160
159
|
title?: string | undefined;
|
|
161
160
|
url?: string | undefined;
|
|
162
161
|
videoCallUrl?: string | undefined;
|
|
162
|
+
target: "updateCalendarEvent";
|
|
163
163
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior-google",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.258.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"commander": "^14.0.3",
|
|
26
26
|
"drizzle-orm": "^0.45.2",
|
|
27
27
|
"zod": "^4.5.4",
|
|
28
|
-
"@sentry/junior-plugin-api": "0.
|
|
28
|
+
"@sentry/junior-plugin-api": "0.258.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@oxlint/plugins": "1.79.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"drizzle-kit": "^0.31.8",
|
|
34
34
|
"oxlint": "^1.79.0",
|
|
35
35
|
"tsup": "^8.5.1",
|
|
36
|
-
"typescript": "^
|
|
36
|
+
"typescript": "^7.0.2",
|
|
37
37
|
"vitest": "^4.1.7",
|
|
38
38
|
"@sentry/junior-testing": "0.0.0"
|
|
39
39
|
},
|