@sentry/junior-github 0.298.0 → 0.300.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.
Files changed (49) hide show
  1. package/dist/{chunk-OK6BNAGC.js → chunk-YUF5P5I7.js} +50 -20
  2. package/dist/credential-support.d.ts +7 -0
  3. package/dist/db/schema.d.ts +34 -0
  4. package/dist/events/pull-request.d.ts +8 -2
  5. package/dist/graphql-documents.d.ts +31 -0
  6. package/dist/index.d.ts +1 -0
  7. package/dist/index.js +1532 -785
  8. package/dist/object-facts.d.ts +16 -1
  9. package/dist/plugin.d.ts +3 -0
  10. package/dist/pull-request-outcomes/apply.d.ts +3 -1
  11. package/dist/pull-request-outcomes/reconcile.d.ts +10 -5
  12. package/dist/pull-request-outcomes/store.d.ts +5 -0
  13. package/dist/pull-request-requesters/draft-reviewers.d.ts +15 -0
  14. package/dist/testing.js +1 -1
  15. package/dist/tool-support/attribution.d.ts +4 -2
  16. package/dist/tool-support/pull-request-description.d.ts +8 -0
  17. package/dist/tools/clone-repository.d.ts +70 -2
  18. package/dist/tools/comment-on-issue.d.ts +70 -2
  19. package/dist/tools/comment-on-pull-request.d.ts +70 -2
  20. package/dist/tools/create-issue.d.ts +70 -2
  21. package/dist/tools/create-pull-request.d.ts +75 -4
  22. package/dist/tools/get-deployment.d.ts +70 -2
  23. package/dist/tools/get-issue.d.ts +70 -2
  24. package/dist/tools/get-pull-request.d.ts +90 -2
  25. package/dist/tools/get-release.d.ts +70 -2
  26. package/dist/tools/get-repository.d.ts +70 -2
  27. package/dist/tools/get-status.d.ts +70 -2
  28. package/dist/tools/react-to-issue.d.ts +70 -2
  29. package/dist/tools/resolve-pull-request-review-thread.d.ts +70 -2
  30. package/dist/tools/submit-pull-request-review.d.ts +70 -2
  31. package/dist/tools/update-issue-comment.d.ts +70 -2
  32. package/dist/tools/update-issue.d.ts +70 -2
  33. package/dist/tools/update-pull-request-feedback.d.ts +70 -4
  34. package/dist/tools/update-pull-request.d.ts +74 -4
  35. package/dist/tools.d.ts +10 -1
  36. package/dist/webhooks/check-suite.d.ts +2 -4
  37. package/dist/webhooks/fail-open-log.d.ts +10 -0
  38. package/dist/webhooks/handler.d.ts +1 -1
  39. package/dist/webhooks/installation-requests.d.ts +12 -1
  40. package/dist/webhooks/merge-conflict.d.ts +1 -1
  41. package/dist/webhooks/pull-request-preview.d.ts +12 -0
  42. package/dist/webhooks/pull-request-ready-reviewers.d.ts +25 -0
  43. package/dist/webhooks/pull-request-ready.d.ts +1 -1
  44. package/migrations/0011_pull_request_draft.sql +1 -0
  45. package/migrations/meta/0011_snapshot.json +434 -0
  46. package/migrations/meta/_journal.json +7 -0
  47. package/package.json +7 -4
  48. package/skills/github-code/SKILL.md +1 -1
  49. package/skills/github-code/SPEC.md +1 -1
@@ -1,3 +1,18 @@
1
- import type { ObjectAnnotation } from "@sentry/junior-plugin-api";
1
+ import { type ObjectAnnotation, type ObjectFacts } from "@sentry/junior-plugin-api";
2
+ /**
3
+ * Return the public images in a pull request body, in body order, for card
4
+ * previews. Screenshots often come as a before and after pair, so the
5
+ * dashboard chooses which one to show.
6
+ */
7
+ export declare function githubPreviewImageUrls(body: string | null | undefined): string[];
8
+ type CodeChangeFacts = Extract<ObjectFacts, {
9
+ type: "code_change";
10
+ }>;
11
+ /**
12
+ * Add preview images in body order while the facts stay in the 4 KiB limit.
13
+ * Images that do not fit are left out.
14
+ */
15
+ export declare function withGitHubPreviewImages(facts: Omit<CodeChangeFacts, "previewImageUrls">, urls: readonly string[]): CodeChangeFacts;
2
16
  /** Select card facts from GitHub REST responses; never infer reviews or checks. */
3
17
  export declare function githubObjectFacts(type: "task" | "code_change", response: unknown): Pick<ObjectAnnotation, "facts" | "sourceUpdatedAt" | "description">;
18
+ export {};
package/dist/plugin.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { type PluginRegistration } from "@sentry/junior-plugin-api";
2
2
  import { type GitHubAppPermissions } from "./permissions.js";
3
+ import { type GitHubPluginExperiments } from "./tools.js";
3
4
  import { type GitHubPullRequestEventOptions } from "./events/pull-request.js";
4
5
  /** Configure the built-in GitHub plugin manifest and hooks. */
5
6
  export interface GitHubPluginOptions {
@@ -23,6 +24,8 @@ export interface GitHubPluginOptions {
23
24
  appPermissions?: GitHubAppPermissions;
24
25
  /** Environment variable containing the GitHub App id. */
25
26
  appIdEnv?: string;
27
+ /** Opt-ins for GitHub plugin behavior that is still being tested. */
28
+ experimental?: GitHubPluginExperiments;
26
29
  /** Environment variable containing Junior's Git committer email. */
27
30
  botEmailEnv?: string;
28
31
  /** Environment variable containing Junior's Git committer name. */
@@ -3,9 +3,11 @@
3
3
  * the daily reconcile both use it, so the stored row, Junior's code index,
4
4
  * and the conversation chip change together.
5
5
  */
6
- import type { CodeChangePublisher, PluginConversationAnnotations, PluginLogger } from "@sentry/junior-plugin-api";
6
+ import type { CodeChangeInput, CodeChangePublisher, PluginConversationAnnotations, PluginLogger } from "@sentry/junior-plugin-api";
7
7
  import type { GitHubDb } from "../db/database.js";
8
8
  import { type GitHubPullRequestOutcomeInput, recordGitHubPullRequestOutcome } from "./store.js";
9
+ /** Write a pull request outcome as a code change in Junior's code index. */
10
+ export declare function githubCodeChange(outcome: GitHubPullRequestOutcomeInput, conversationIds: string[]): CodeChangeInput;
9
11
  /**
10
12
  * Record one pull request outcome. When the stored row changes, update the
11
13
  * code index, and mark the chip of each linked conversation merged or closed.
@@ -5,8 +5,10 @@
5
5
  * does not deliver a close, or its handler fails, the row stays open. Once a
6
6
  * day for each repository, the heartbeat reads the stored open rows from
7
7
  * GitHub with GraphQL. Each close goes through the webhook write path, with
8
- * its merged or closed_unmerged event. The write is guarded by `updatedAt`,
9
- * so a replay cannot move a newer row back.
8
+ * its merged or closed_unmerged event. A changed draft state of an open pull
9
+ * request goes through the same path, without an event. A pull request that
10
+ * is still open also gets its current title in the code index. The writes are
11
+ * guarded by `updatedAt`, so a replay cannot move a newer row back.
10
12
  */
11
13
  import type { CodeChangePublisher, EventPublisher, PluginConversationAnnotations, PluginLogger, PluginState } from "@sentry/junior-plugin-api";
12
14
  import type { GitHubDb } from "../db/database.js";
@@ -19,12 +21,15 @@ interface ReconcileArgs {
19
21
  events: EventPublisher;
20
22
  /** Read the commits of one pull request, for the people of a merge. */
21
23
  loadCommitPages(target: GitHubPullRequestTarget): Promise<GitHubCommitPageLoader>;
22
- /** Read the lifecycle of some pull requests with one GraphQL query. */
24
+ /**
25
+ * Read the lifecycle of some pull requests with one GraphQL query. Throws
26
+ * `GitHubRepositoryUnreachableError` when GitHub cannot reach the repository.
27
+ */
23
28
  loadLifecycles(input: {
24
29
  numbers: number[];
25
- repositoryFullName: string;
30
+ repositoryId: number;
26
31
  }): Promise<unknown>;
27
- log: Pick<PluginLogger, "error">;
32
+ log: Pick<PluginLogger, "error" | "warn">;
28
33
  nowMs: number;
29
34
  state: PluginState;
30
35
  }
@@ -8,6 +8,7 @@ declare const githubPullRequestOutcomeInputSchema: z.ZodObject<{
8
8
  junior_only: "junior_only";
9
9
  mixed: "mixed";
10
10
  }>>;
11
+ draft: z.ZodOptional<z.ZodBoolean>;
11
12
  mergedAt: z.ZodOptional<z.ZodDate>;
12
13
  number: z.ZodNumber;
13
14
  openedAt: z.ZodDate;
@@ -62,11 +63,15 @@ export declare function listGitHubFinishedWork(db: GitHubDb, conversationIds: st
62
63
  * GitHub.
63
64
  */
64
65
  export declare function listGitHubStaleOpenPullRequests(db: GitHubDb, before: Date): Promise<Array<{
66
+ draft: boolean;
65
67
  number: number;
66
68
  repositoryFullName: string;
69
+ repositoryId: string;
67
70
  }>>;
68
71
  /** Return candidate conversations linked to any Junior-owned pull request. */
69
72
  export declare function listGitHubAssignedWork(db: GitHubDb, conversationIds: string[]): Promise<string[]>;
73
+ /** Return the conversations linked to one Junior-owned pull request. */
74
+ export declare function readGitHubPullRequestConversationIds(db: GitHubDb, pullRequestId: string): Promise<string[]>;
70
75
  /** Append native conversation ids to an existing Junior-owned PR projection. */
71
76
  export declare function recordGitHubPullRequestConversations(db: GitHubDb, input: GitHubPullRequestConversationsInput): Promise<boolean>;
72
77
  /** Link an existing Junior-owned PR to tracked issues across repositories. */
@@ -0,0 +1,15 @@
1
+ /**
2
+ * The reviewers that a person named for a draft pull request.
3
+ *
4
+ * Junior asks for a review when it opens a pull request. A draft gets no
5
+ * request, so GitHub does not notify the reviewers before the work is ready.
6
+ * When the person named the reviewers, Junior saves them here, and the
7
+ * `ready_for_review` webhook asks them. With no saved reviewers, that webhook
8
+ * asks the requester.
9
+ */
10
+ import type { PluginState } from "@sentry/junior-plugin-api";
11
+ import type { GitHubPullRequestTarget } from "../webhooks/pull-request-people.js";
12
+ /** Save the reviewers that a person named for a draft pull request. */
13
+ export declare function saveGitHubDraftReviewers(state: PluginState, target: GitHubPullRequestTarget, reviewers: string[]): Promise<void>;
14
+ /** Return the reviewers that a person named for a draft pull request. */
15
+ export declare function readGitHubDraftReviewers(state: PluginState, target: GitHubPullRequestTarget): Promise<string[] | undefined>;
package/dist/testing.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  normalizeGitHubEvents
3
- } from "./chunk-OK6BNAGC.js";
3
+ } from "./chunk-YUF5P5I7.js";
4
4
  export {
5
5
  normalizeGitHubEvents
6
6
  };
@@ -1,11 +1,13 @@
1
1
  import type { Actor, Identity, PluginEgress, PluginLogger, Source, User } from "@sentry/junior-plugin-api";
2
2
  export declare const GITHUB_REQUEST_ATTRIBUTION_START = "<!-- junior-request-attribution:start -->";
3
3
  export declare const GITHUB_REQUEST_ATTRIBUTION_END = "<!-- junior-request-attribution:end -->";
4
+ /** Return a GitHub login without a leading `@`, when it is a valid login. */
5
+ export declare function parseGitHubLogin(value: string | undefined): string | undefined;
4
6
  /**
5
7
  * Return the GitHub login linked to a user, when it is a valid login.
6
8
  *
7
- * Attribution mentions and PR assignment use this login so the requester gets
8
- * GitHub notifications for the issue or pull request.
9
+ * Attribution mentions, PR assignment, and review requests use this login so
10
+ * the requester gets GitHub notifications for the issue or pull request.
9
11
  */
10
12
  export declare function linkedGitHubLogin(user: User | undefined): string | undefined;
11
13
  /**
@@ -0,0 +1,8 @@
1
+ import { type PluginDecider } from "@sentry/junior-plugin-api";
2
+ /** List the fixes that a pull request description needs. Empty means it passes. */
3
+ export declare function pullRequestDescriptionFixes(decider: PluginDecider, body: string): Promise<string[]>;
4
+ /**
5
+ * Reject a pull request description that has what reviewers do not need.
6
+ * The agent gets the reasons as a tool input error and sends a better body.
7
+ */
8
+ export declare function checkPullRequestDescription(decider: PluginDecider, body: string): Promise<void>;
@@ -13,7 +13,7 @@ export declare function createGitHubCloneRepositoryTool(ctx: {
13
13
  kind: "object";
14
14
  key: string;
15
15
  label: string;
16
- objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
16
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
17
17
  title: string;
18
18
  url: string | null;
19
19
  description?: string | undefined;
@@ -24,6 +24,7 @@ export declare function createGitHubCloneRepositoryTool(ctx: {
24
24
  sourceUpdatedAt?: string | undefined;
25
25
  facts?: {
26
26
  type: "code_change";
27
+ summary?: string | undefined;
27
28
  author?: string | undefined;
28
29
  sourceBranch?: string | undefined;
29
30
  targetBranch?: string | undefined;
@@ -38,8 +39,10 @@ export declare function createGitHubCloneRepositoryTool(ctx: {
38
39
  changedFiles?: number | undefined;
39
40
  additions?: number | undefined;
40
41
  deletions?: number | undefined;
42
+ previewImageUrls?: string[] | undefined;
41
43
  } | {
42
44
  type: "task";
45
+ summary?: string | undefined;
43
46
  assignees?: string[] | undefined;
44
47
  priority?: string | undefined;
45
48
  project?: string | undefined;
@@ -48,14 +51,45 @@ export declare function createGitHubCloneRepositoryTool(ctx: {
48
51
  labels?: string[] | undefined;
49
52
  } | {
50
53
  type: "deployment";
54
+ summary?: string | undefined;
51
55
  project?: string | undefined;
52
56
  environment?: string | undefined;
53
57
  revision?: string | undefined;
54
58
  branch?: string | undefined;
55
59
  } | {
56
60
  type: "calendar_event";
61
+ summary?: string | undefined;
57
62
  when?: string | undefined;
58
63
  attendees?: string[] | undefined;
64
+ } | {
65
+ type: "conversation";
66
+ summary?: string | undefined;
67
+ participants?: string[] | undefined;
68
+ lastActivityAt?: string | undefined;
69
+ } | {
70
+ type: "document";
71
+ summary?: string | undefined;
72
+ owner?: string | undefined;
73
+ modifiedAt?: string | undefined;
74
+ } | {
75
+ type: "message";
76
+ summary?: string | undefined;
77
+ channel?: string | undefined;
78
+ author?: string | undefined;
79
+ sentAt?: string | undefined;
80
+ } | {
81
+ type: "web_page";
82
+ summary?: string | undefined;
83
+ siteName?: string | undefined;
84
+ author?: string | undefined;
85
+ thumbnailUrl?: string | undefined;
86
+ } | {
87
+ type: "person";
88
+ summary?: string | undefined;
89
+ email?: string | undefined;
90
+ slackHandle?: string | undefined;
91
+ githubHandle?: string | undefined;
92
+ avatarUrl?: string | undefined;
59
93
  } | undefined;
60
94
  }[] | undefined;
61
95
  reply?: {
@@ -76,7 +110,7 @@ export declare function createGitHubCloneRepositoryTool(ctx: {
76
110
  kind: "object";
77
111
  key: string;
78
112
  label: string;
79
- objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
113
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
80
114
  title: string;
81
115
  url: string | null;
82
116
  description?: string | undefined;
@@ -87,6 +121,7 @@ export declare function createGitHubCloneRepositoryTool(ctx: {
87
121
  sourceUpdatedAt?: string | undefined;
88
122
  facts?: {
89
123
  type: "code_change";
124
+ summary?: string | undefined;
90
125
  author?: string | undefined;
91
126
  sourceBranch?: string | undefined;
92
127
  targetBranch?: string | undefined;
@@ -101,8 +136,10 @@ export declare function createGitHubCloneRepositoryTool(ctx: {
101
136
  changedFiles?: number | undefined;
102
137
  additions?: number | undefined;
103
138
  deletions?: number | undefined;
139
+ previewImageUrls?: string[] | undefined;
104
140
  } | {
105
141
  type: "task";
142
+ summary?: string | undefined;
106
143
  assignees?: string[] | undefined;
107
144
  priority?: string | undefined;
108
145
  project?: string | undefined;
@@ -111,14 +148,45 @@ export declare function createGitHubCloneRepositoryTool(ctx: {
111
148
  labels?: string[] | undefined;
112
149
  } | {
113
150
  type: "deployment";
151
+ summary?: string | undefined;
114
152
  project?: string | undefined;
115
153
  environment?: string | undefined;
116
154
  revision?: string | undefined;
117
155
  branch?: string | undefined;
118
156
  } | {
119
157
  type: "calendar_event";
158
+ summary?: string | undefined;
120
159
  when?: string | undefined;
121
160
  attendees?: string[] | undefined;
161
+ } | {
162
+ type: "conversation";
163
+ summary?: string | undefined;
164
+ participants?: string[] | undefined;
165
+ lastActivityAt?: string | undefined;
166
+ } | {
167
+ type: "document";
168
+ summary?: string | undefined;
169
+ owner?: string | undefined;
170
+ modifiedAt?: string | undefined;
171
+ } | {
172
+ type: "message";
173
+ summary?: string | undefined;
174
+ channel?: string | undefined;
175
+ author?: string | undefined;
176
+ sentAt?: string | undefined;
177
+ } | {
178
+ type: "web_page";
179
+ summary?: string | undefined;
180
+ siteName?: string | undefined;
181
+ author?: string | undefined;
182
+ thumbnailUrl?: string | undefined;
183
+ } | {
184
+ type: "person";
185
+ summary?: string | undefined;
186
+ email?: string | undefined;
187
+ slackHandle?: string | undefined;
188
+ githubHandle?: string | undefined;
189
+ avatarUrl?: string | undefined;
122
190
  } | undefined;
123
191
  }[] | undefined;
124
192
  reply?: {
@@ -10,7 +10,7 @@ export declare function createGitHubCommentOnIssueTool(egress: PluginEgress): im
10
10
  kind: "object";
11
11
  key: string;
12
12
  label: string;
13
- objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
13
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
14
14
  title: string;
15
15
  url: string | null;
16
16
  description?: string | undefined;
@@ -21,6 +21,7 @@ export declare function createGitHubCommentOnIssueTool(egress: PluginEgress): im
21
21
  sourceUpdatedAt?: string | undefined;
22
22
  facts?: {
23
23
  type: "code_change";
24
+ summary?: string | undefined;
24
25
  author?: string | undefined;
25
26
  sourceBranch?: string | undefined;
26
27
  targetBranch?: string | undefined;
@@ -35,8 +36,10 @@ export declare function createGitHubCommentOnIssueTool(egress: PluginEgress): im
35
36
  changedFiles?: number | undefined;
36
37
  additions?: number | undefined;
37
38
  deletions?: number | undefined;
39
+ previewImageUrls?: string[] | undefined;
38
40
  } | {
39
41
  type: "task";
42
+ summary?: string | undefined;
40
43
  assignees?: string[] | undefined;
41
44
  priority?: string | undefined;
42
45
  project?: string | undefined;
@@ -45,14 +48,45 @@ export declare function createGitHubCommentOnIssueTool(egress: PluginEgress): im
45
48
  labels?: string[] | undefined;
46
49
  } | {
47
50
  type: "deployment";
51
+ summary?: string | undefined;
48
52
  project?: string | undefined;
49
53
  environment?: string | undefined;
50
54
  revision?: string | undefined;
51
55
  branch?: string | undefined;
52
56
  } | {
53
57
  type: "calendar_event";
58
+ summary?: string | undefined;
54
59
  when?: string | undefined;
55
60
  attendees?: string[] | undefined;
61
+ } | {
62
+ type: "conversation";
63
+ summary?: string | undefined;
64
+ participants?: string[] | undefined;
65
+ lastActivityAt?: string | undefined;
66
+ } | {
67
+ type: "document";
68
+ summary?: string | undefined;
69
+ owner?: string | undefined;
70
+ modifiedAt?: string | undefined;
71
+ } | {
72
+ type: "message";
73
+ summary?: string | undefined;
74
+ channel?: string | undefined;
75
+ author?: string | undefined;
76
+ sentAt?: string | undefined;
77
+ } | {
78
+ type: "web_page";
79
+ summary?: string | undefined;
80
+ siteName?: string | undefined;
81
+ author?: string | undefined;
82
+ thumbnailUrl?: string | undefined;
83
+ } | {
84
+ type: "person";
85
+ summary?: string | undefined;
86
+ email?: string | undefined;
87
+ slackHandle?: string | undefined;
88
+ githubHandle?: string | undefined;
89
+ avatarUrl?: string | undefined;
56
90
  } | undefined;
57
91
  }[] | undefined;
58
92
  reply?: {
@@ -75,7 +109,7 @@ export declare function createGitHubCommentOnIssueTool(egress: PluginEgress): im
75
109
  kind: "object";
76
110
  key: string;
77
111
  label: string;
78
- objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
112
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
79
113
  title: string;
80
114
  url: string | null;
81
115
  description?: string | undefined;
@@ -86,6 +120,7 @@ export declare function createGitHubCommentOnIssueTool(egress: PluginEgress): im
86
120
  sourceUpdatedAt?: string | undefined;
87
121
  facts?: {
88
122
  type: "code_change";
123
+ summary?: string | undefined;
89
124
  author?: string | undefined;
90
125
  sourceBranch?: string | undefined;
91
126
  targetBranch?: string | undefined;
@@ -100,8 +135,10 @@ export declare function createGitHubCommentOnIssueTool(egress: PluginEgress): im
100
135
  changedFiles?: number | undefined;
101
136
  additions?: number | undefined;
102
137
  deletions?: number | undefined;
138
+ previewImageUrls?: string[] | undefined;
103
139
  } | {
104
140
  type: "task";
141
+ summary?: string | undefined;
105
142
  assignees?: string[] | undefined;
106
143
  priority?: string | undefined;
107
144
  project?: string | undefined;
@@ -110,14 +147,45 @@ export declare function createGitHubCommentOnIssueTool(egress: PluginEgress): im
110
147
  labels?: string[] | undefined;
111
148
  } | {
112
149
  type: "deployment";
150
+ summary?: string | undefined;
113
151
  project?: string | undefined;
114
152
  environment?: string | undefined;
115
153
  revision?: string | undefined;
116
154
  branch?: string | undefined;
117
155
  } | {
118
156
  type: "calendar_event";
157
+ summary?: string | undefined;
119
158
  when?: string | undefined;
120
159
  attendees?: string[] | undefined;
160
+ } | {
161
+ type: "conversation";
162
+ summary?: string | undefined;
163
+ participants?: string[] | undefined;
164
+ lastActivityAt?: string | undefined;
165
+ } | {
166
+ type: "document";
167
+ summary?: string | undefined;
168
+ owner?: string | undefined;
169
+ modifiedAt?: string | undefined;
170
+ } | {
171
+ type: "message";
172
+ summary?: string | undefined;
173
+ channel?: string | undefined;
174
+ author?: string | undefined;
175
+ sentAt?: string | undefined;
176
+ } | {
177
+ type: "web_page";
178
+ summary?: string | undefined;
179
+ siteName?: string | undefined;
180
+ author?: string | undefined;
181
+ thumbnailUrl?: string | undefined;
182
+ } | {
183
+ type: "person";
184
+ summary?: string | undefined;
185
+ email?: string | undefined;
186
+ slackHandle?: string | undefined;
187
+ githubHandle?: string | undefined;
188
+ avatarUrl?: string | undefined;
121
189
  } | undefined;
122
190
  }[] | undefined;
123
191
  reply?: {
@@ -15,7 +15,7 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
15
15
  kind: "object";
16
16
  key: string;
17
17
  label: string;
18
- objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
18
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
19
19
  title: string;
20
20
  url: string | null;
21
21
  description?: string | undefined;
@@ -26,6 +26,7 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
26
26
  sourceUpdatedAt?: string | undefined;
27
27
  facts?: {
28
28
  type: "code_change";
29
+ summary?: string | undefined;
29
30
  author?: string | undefined;
30
31
  sourceBranch?: string | undefined;
31
32
  targetBranch?: string | undefined;
@@ -40,8 +41,10 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
40
41
  changedFiles?: number | undefined;
41
42
  additions?: number | undefined;
42
43
  deletions?: number | undefined;
44
+ previewImageUrls?: string[] | undefined;
43
45
  } | {
44
46
  type: "task";
47
+ summary?: string | undefined;
45
48
  assignees?: string[] | undefined;
46
49
  priority?: string | undefined;
47
50
  project?: string | undefined;
@@ -50,14 +53,45 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
50
53
  labels?: string[] | undefined;
51
54
  } | {
52
55
  type: "deployment";
56
+ summary?: string | undefined;
53
57
  project?: string | undefined;
54
58
  environment?: string | undefined;
55
59
  revision?: string | undefined;
56
60
  branch?: string | undefined;
57
61
  } | {
58
62
  type: "calendar_event";
63
+ summary?: string | undefined;
59
64
  when?: string | undefined;
60
65
  attendees?: string[] | undefined;
66
+ } | {
67
+ type: "conversation";
68
+ summary?: string | undefined;
69
+ participants?: string[] | undefined;
70
+ lastActivityAt?: string | undefined;
71
+ } | {
72
+ type: "document";
73
+ summary?: string | undefined;
74
+ owner?: string | undefined;
75
+ modifiedAt?: string | undefined;
76
+ } | {
77
+ type: "message";
78
+ summary?: string | undefined;
79
+ channel?: string | undefined;
80
+ author?: string | undefined;
81
+ sentAt?: string | undefined;
82
+ } | {
83
+ type: "web_page";
84
+ summary?: string | undefined;
85
+ siteName?: string | undefined;
86
+ author?: string | undefined;
87
+ thumbnailUrl?: string | undefined;
88
+ } | {
89
+ type: "person";
90
+ summary?: string | undefined;
91
+ email?: string | undefined;
92
+ slackHandle?: string | undefined;
93
+ githubHandle?: string | undefined;
94
+ avatarUrl?: string | undefined;
61
95
  } | undefined;
62
96
  }[] | undefined;
63
97
  reply?: {
@@ -80,7 +114,7 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
80
114
  kind: "object";
81
115
  key: string;
82
116
  label: string;
83
- objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
117
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
84
118
  title: string;
85
119
  url: string | null;
86
120
  description?: string | undefined;
@@ -91,6 +125,7 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
91
125
  sourceUpdatedAt?: string | undefined;
92
126
  facts?: {
93
127
  type: "code_change";
128
+ summary?: string | undefined;
94
129
  author?: string | undefined;
95
130
  sourceBranch?: string | undefined;
96
131
  targetBranch?: string | undefined;
@@ -105,8 +140,10 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
105
140
  changedFiles?: number | undefined;
106
141
  additions?: number | undefined;
107
142
  deletions?: number | undefined;
143
+ previewImageUrls?: string[] | undefined;
108
144
  } | {
109
145
  type: "task";
146
+ summary?: string | undefined;
110
147
  assignees?: string[] | undefined;
111
148
  priority?: string | undefined;
112
149
  project?: string | undefined;
@@ -115,14 +152,45 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
115
152
  labels?: string[] | undefined;
116
153
  } | {
117
154
  type: "deployment";
155
+ summary?: string | undefined;
118
156
  project?: string | undefined;
119
157
  environment?: string | undefined;
120
158
  revision?: string | undefined;
121
159
  branch?: string | undefined;
122
160
  } | {
123
161
  type: "calendar_event";
162
+ summary?: string | undefined;
124
163
  when?: string | undefined;
125
164
  attendees?: string[] | undefined;
165
+ } | {
166
+ type: "conversation";
167
+ summary?: string | undefined;
168
+ participants?: string[] | undefined;
169
+ lastActivityAt?: string | undefined;
170
+ } | {
171
+ type: "document";
172
+ summary?: string | undefined;
173
+ owner?: string | undefined;
174
+ modifiedAt?: string | undefined;
175
+ } | {
176
+ type: "message";
177
+ summary?: string | undefined;
178
+ channel?: string | undefined;
179
+ author?: string | undefined;
180
+ sentAt?: string | undefined;
181
+ } | {
182
+ type: "web_page";
183
+ summary?: string | undefined;
184
+ siteName?: string | undefined;
185
+ author?: string | undefined;
186
+ thumbnailUrl?: string | undefined;
187
+ } | {
188
+ type: "person";
189
+ summary?: string | undefined;
190
+ email?: string | undefined;
191
+ slackHandle?: string | undefined;
192
+ githubHandle?: string | undefined;
193
+ avatarUrl?: string | undefined;
126
194
  } | undefined;
127
195
  }[] | undefined;
128
196
  reply?: {