@sentry/junior-github 0.299.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.
@@ -273,7 +273,7 @@ var GITHUB_PULL_REQUEST_OUTCOME_GUIDANCE = {
273
273
  "pull_request.review.approved": `Mention each person in People involved, or the person who asked for the pull request if that line is missing. Say who approved it and link it. Do not merge it unless asked. ${MERGE_STATE_CHECK}`,
274
274
  "pull_request.merged": "Mention each person in People involved, or the person who asked for the pull request if that line is missing. Say that it merged and link it."
275
275
  };
276
- var DRAFT_CHECKS_RECOVERED_GUIDANCE = "If the pull request is still a draft, call github_getPullRequest and read its `checks`. When `checks.required` is `passing` and no decision is open, in the pull request body or in an open review item that waits on the person who asked for it, mark it ready with github_updatePullRequest and draft false, and report that in the originating thread. When it is `failing`, fix the failing checks like a failed check. When it is `not_reported`, the required checks may not have started on the latest commit yet. It does not mean that none are required. Otherwise stay silent.";
276
+ var DRAFT_CHECKS_RECOVERED_GUIDANCE = "If the pull request is still a draft, call github_getPullRequest and read its `checks`. When `checks.required` is `passing` and no decision is open, in the pull request body or in an open review item that waits on the person who asked for it, mark it ready with github_updatePullRequest and draft false, and report that in the originating thread. When it is `failing`, fix the failing checks like a failed check. When it is `pending` or `not_reported`, stay silent: a later passing suite wakes you again. `not_reported` means the required checks may not have started on the latest commit yet, not that none are required.";
277
277
  function gitHubPullRequestCreateWatch(config, pullRequest) {
278
278
  const outcomeEvents = Object.keys(
279
279
  GITHUB_PULL_REQUEST_OUTCOME_GUIDANCE
package/dist/index.js CHANGED
@@ -63,7 +63,7 @@ import {
63
63
  readGrantPermissions,
64
64
  requireEnv,
65
65
  resolveUserAccount
66
- } from "./chunk-O74CQGTZ.js";
66
+ } from "./chunk-YUF5P5I7.js";
67
67
 
68
68
  // src/tool-support/attribution.ts
69
69
  import * as z from "zod";
@@ -465,7 +465,7 @@ function createGitHubCloneRepositoryTool(ctx) {
465
465
  openWorldHint: true,
466
466
  readOnlyHint: true
467
467
  },
468
- description: "Clone a GitHub repository into the sandbox as an ad-hoc checkout. The destination must not already exist. In the default Sandbox, a matching Workspace is a tool input error: call switchWorkspace instead, or pass allow_ad_hoc=true for an intentional ad-hoc checkout. Inside a Workspace, the clone proceeds and the result notes matching Workspaces.",
468
+ description: "Clone a GitHub repository into the sandbox as an ad-hoc checkout. The destination must not already exist. In the default Sandbox, a matching Workspace is a tool input error: call switchWorkspace instead, or opt in to an intentional ad-hoc checkout. Inside a Workspace, the clone proceeds and the result notes matching Workspaces.",
469
469
  describeProposal(input) {
470
470
  const directory = typeof input.directory === "string" && input.directory.length > 0 ? input.directory : void 0;
471
471
  const adHoc = input.allow_ad_hoc === true ? " as an intentional ad-hoc checkout" : "";
@@ -666,7 +666,7 @@ function createGitHubCommentOnPullRequestTool(egress) {
666
666
  openWorldHint: true,
667
667
  readOnlyHint: false
668
668
  },
669
- description: "Post a conversation comment on a GitHub pull request, or reply in an inline review thread with in_reply_to. For issues, use github_commentOnIssue. Use it to answer a question asked in a pull request review or comment. Returns the comment id and URL.",
669
+ description: "Post a conversation comment on a GitHub pull request, or reply in an inline review thread. For issues, use github_commentOnIssue. Use it to answer a question asked in a pull request review or comment. Returns the comment id and URL.",
670
670
  inputSchema: inputSchema4,
671
671
  outputSchema: outputSchema4,
672
672
  async execute(input) {
@@ -1593,10 +1593,12 @@ function createGitHubGetIssueTool(ctx) {
1593
1593
  });
1594
1594
  }
1595
1595
  function issueRepoRef(repositoryUrl) {
1596
- const match = repositoryUrl?.match(
1597
- /^https:\/\/api\.github\.com\/repos\/([^/]+\/[^/]+)$/
1598
- );
1599
- return match?.[1];
1596
+ const url = repositoryUrl ? URL.parse(repositoryUrl) : null;
1597
+ if (url?.origin !== "https://api.github.com" || url.search || url.hash) {
1598
+ return void 0;
1599
+ }
1600
+ const [repos, owner, repo, ...rest] = url.pathname.slice(1).split("/");
1601
+ return repos === "repos" && owner && repo && rest.length === 0 ? `${owner}/${repo}` : void 0;
1600
1602
  }
1601
1603
 
1602
1604
  // src/tools/create-pull-request.ts
@@ -3628,12 +3630,14 @@ var REST_REACTION_CONTENT = new Map(
3628
3630
  var inputSchema14 = z22.object({
3629
3631
  repo: z22.string().describe('Repository in "owner/name" format.'),
3630
3632
  comment_kind: z22.enum(["conversation", "review", "review_body"]).describe(
3631
- 'Comment kind: "conversation" for a pull request conversation comment, "review" for an inline review comment, "review_body" for the body of a submitted review.'
3633
+ 'Comment kind: "conversation" for a pull request conversation comment, "review" for an inline review comment, "review_body" for the body of a submitted review. Use the exact value from the event.'
3632
3634
  ),
3633
3635
  comment_id: z22.number().int().positive().describe(
3634
- "GitHub comment id (conversation comment id, inline review comment id, or review id)."
3636
+ "GitHub comment id (conversation comment id, inline review comment id, or review id). Use the exact value from the event."
3637
+ ),
3638
+ pull_request: z22.number().int().positive().describe(
3639
+ "Pull request number that the comment is on. Use the exact value from the event."
3635
3640
  ),
3636
- pull_request: z22.number().int().positive().describe("Pull request number that the comment is on."),
3637
3641
  status: z22.enum(["addressed", "declined"]).describe(
3638
3642
  "Feedback outcome. Maps to a reaction: addressed -> +1, declined -> -1."
3639
3643
  )
@@ -3801,7 +3805,7 @@ function createGitHubUpdatePullRequestFeedbackTool(ctx, botEmail) {
3801
3805
  openWorldHint: true,
3802
3806
  readOnlyHint: false
3803
3807
  },
3804
- description: "Set your outcome reaction on GitHub pull request feedback: addressed (+1) or declined (-1). Use the pull_request, comment_id, and comment_kind from the event after acting on the feedback. Replaces only your prior status reaction on that comment. Only works on pull requests the bot authored.",
3808
+ description: "Set your outcome reaction on GitHub pull request feedback: addressed (+1) or declined (-1). Call it after acting on the feedback. Replaces only your prior status reaction on that comment. Only works on pull requests the bot authored.",
3805
3809
  exposure: "direct",
3806
3810
  inputSchema: inputSchema14,
3807
3811
  outputSchema: outputSchema14,
@@ -7175,10 +7179,11 @@ function linkifyLine(line) {
7175
7179
  continue;
7176
7180
  }
7177
7181
  if (line.startsWith("https://", index2) || line.startsWith("http://", index2)) {
7178
- const match = /^https?:\/\/\S+/.exec(line.slice(index2));
7179
- if (match) {
7180
- output += match[0];
7181
- index2 += match[0].length;
7182
+ const url = /^\S+/.exec(line.slice(index2))[0];
7183
+ const scheme = line.startsWith("https://", index2) ? 8 : 7;
7184
+ if (url.length > scheme) {
7185
+ output += url;
7186
+ index2 += url.length;
7182
7187
  continue;
7183
7188
  }
7184
7189
  }
@@ -7795,7 +7800,10 @@ function githubErrorMessage2(bodyText) {
7795
7800
  async function githubForbiddenPermissionDeniedMessage(ctx) {
7796
7801
  const sso = ctx.response.headers.get("x-github-sso");
7797
7802
  if (sso?.startsWith("required")) {
7798
- const url = sso.match(/\burl=(https:\/\/github\.com\/\S+)/)?.[1];
7803
+ const url = sso.split(";").map((part) => part.trim()).find((part) => part.startsWith("url="))?.slice("url=".length);
7804
+ if (url && URL.parse(url)?.origin !== "https://github.com") {
7805
+ return "GitHub requires SAML SSO authorization for this credential.";
7806
+ }
7799
7807
  return `GitHub requires SAML SSO authorization for this credential.${url ? ` Authorize it at ${url}` : ""}`;
7800
7808
  }
7801
7809
  const message = githubErrorMessage2(
package/dist/testing.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  normalizeGitHubEvents
3
- } from "./chunk-O74CQGTZ.js";
3
+ } from "./chunk-YUF5P5I7.js";
4
4
  export {
5
5
  normalizeGitHubEvents
6
6
  };
@@ -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" | "conversation" | "deployment" | "item" | "message" | "person" | "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;
@@ -41,6 +42,7 @@ export declare function createGitHubCloneRepositoryTool(ctx: {
41
42
  previewImageUrls?: string[] | undefined;
42
43
  } | {
43
44
  type: "task";
45
+ summary?: string | undefined;
44
46
  assignees?: string[] | undefined;
45
47
  priority?: string | undefined;
46
48
  project?: string | undefined;
@@ -49,25 +51,41 @@ export declare function createGitHubCloneRepositoryTool(ctx: {
49
51
  labels?: string[] | undefined;
50
52
  } | {
51
53
  type: "deployment";
54
+ summary?: string | undefined;
52
55
  project?: string | undefined;
53
56
  environment?: string | undefined;
54
57
  revision?: string | undefined;
55
58
  branch?: string | undefined;
56
59
  } | {
57
60
  type: "calendar_event";
61
+ summary?: string | undefined;
58
62
  when?: string | undefined;
59
63
  attendees?: string[] | undefined;
60
64
  } | {
61
65
  type: "conversation";
66
+ summary?: string | undefined;
62
67
  participants?: string[] | undefined;
63
68
  lastActivityAt?: string | undefined;
69
+ } | {
70
+ type: "document";
71
+ summary?: string | undefined;
72
+ owner?: string | undefined;
73
+ modifiedAt?: string | undefined;
64
74
  } | {
65
75
  type: "message";
76
+ summary?: string | undefined;
66
77
  channel?: string | undefined;
67
78
  author?: string | undefined;
68
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;
69
86
  } | {
70
87
  type: "person";
88
+ summary?: string | undefined;
71
89
  email?: string | undefined;
72
90
  slackHandle?: string | undefined;
73
91
  githubHandle?: string | undefined;
@@ -92,7 +110,7 @@ export declare function createGitHubCloneRepositoryTool(ctx: {
92
110
  kind: "object";
93
111
  key: string;
94
112
  label: string;
95
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
113
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
96
114
  title: string;
97
115
  url: string | null;
98
116
  description?: string | undefined;
@@ -103,6 +121,7 @@ export declare function createGitHubCloneRepositoryTool(ctx: {
103
121
  sourceUpdatedAt?: string | undefined;
104
122
  facts?: {
105
123
  type: "code_change";
124
+ summary?: string | undefined;
106
125
  author?: string | undefined;
107
126
  sourceBranch?: string | undefined;
108
127
  targetBranch?: string | undefined;
@@ -120,6 +139,7 @@ export declare function createGitHubCloneRepositoryTool(ctx: {
120
139
  previewImageUrls?: string[] | undefined;
121
140
  } | {
122
141
  type: "task";
142
+ summary?: string | undefined;
123
143
  assignees?: string[] | undefined;
124
144
  priority?: string | undefined;
125
145
  project?: string | undefined;
@@ -128,25 +148,41 @@ export declare function createGitHubCloneRepositoryTool(ctx: {
128
148
  labels?: string[] | undefined;
129
149
  } | {
130
150
  type: "deployment";
151
+ summary?: string | undefined;
131
152
  project?: string | undefined;
132
153
  environment?: string | undefined;
133
154
  revision?: string | undefined;
134
155
  branch?: string | undefined;
135
156
  } | {
136
157
  type: "calendar_event";
158
+ summary?: string | undefined;
137
159
  when?: string | undefined;
138
160
  attendees?: string[] | undefined;
139
161
  } | {
140
162
  type: "conversation";
163
+ summary?: string | undefined;
141
164
  participants?: string[] | undefined;
142
165
  lastActivityAt?: string | undefined;
166
+ } | {
167
+ type: "document";
168
+ summary?: string | undefined;
169
+ owner?: string | undefined;
170
+ modifiedAt?: string | undefined;
143
171
  } | {
144
172
  type: "message";
173
+ summary?: string | undefined;
145
174
  channel?: string | undefined;
146
175
  author?: string | undefined;
147
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;
148
183
  } | {
149
184
  type: "person";
185
+ summary?: string | undefined;
150
186
  email?: string | undefined;
151
187
  slackHandle?: string | undefined;
152
188
  githubHandle?: string | undefined;
@@ -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" | "conversation" | "deployment" | "item" | "message" | "person" | "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;
@@ -38,6 +39,7 @@ export declare function createGitHubCommentOnIssueTool(egress: PluginEgress): im
38
39
  previewImageUrls?: string[] | undefined;
39
40
  } | {
40
41
  type: "task";
42
+ summary?: string | undefined;
41
43
  assignees?: string[] | undefined;
42
44
  priority?: string | undefined;
43
45
  project?: string | undefined;
@@ -46,25 +48,41 @@ export declare function createGitHubCommentOnIssueTool(egress: PluginEgress): im
46
48
  labels?: string[] | undefined;
47
49
  } | {
48
50
  type: "deployment";
51
+ summary?: string | undefined;
49
52
  project?: string | undefined;
50
53
  environment?: string | undefined;
51
54
  revision?: string | undefined;
52
55
  branch?: string | undefined;
53
56
  } | {
54
57
  type: "calendar_event";
58
+ summary?: string | undefined;
55
59
  when?: string | undefined;
56
60
  attendees?: string[] | undefined;
57
61
  } | {
58
62
  type: "conversation";
63
+ summary?: string | undefined;
59
64
  participants?: string[] | undefined;
60
65
  lastActivityAt?: string | undefined;
66
+ } | {
67
+ type: "document";
68
+ summary?: string | undefined;
69
+ owner?: string | undefined;
70
+ modifiedAt?: string | undefined;
61
71
  } | {
62
72
  type: "message";
73
+ summary?: string | undefined;
63
74
  channel?: string | undefined;
64
75
  author?: string | undefined;
65
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;
66
83
  } | {
67
84
  type: "person";
85
+ summary?: string | undefined;
68
86
  email?: string | undefined;
69
87
  slackHandle?: string | undefined;
70
88
  githubHandle?: string | undefined;
@@ -91,7 +109,7 @@ export declare function createGitHubCommentOnIssueTool(egress: PluginEgress): im
91
109
  kind: "object";
92
110
  key: string;
93
111
  label: string;
94
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
112
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
95
113
  title: string;
96
114
  url: string | null;
97
115
  description?: string | undefined;
@@ -102,6 +120,7 @@ export declare function createGitHubCommentOnIssueTool(egress: PluginEgress): im
102
120
  sourceUpdatedAt?: string | undefined;
103
121
  facts?: {
104
122
  type: "code_change";
123
+ summary?: string | undefined;
105
124
  author?: string | undefined;
106
125
  sourceBranch?: string | undefined;
107
126
  targetBranch?: string | undefined;
@@ -119,6 +138,7 @@ export declare function createGitHubCommentOnIssueTool(egress: PluginEgress): im
119
138
  previewImageUrls?: string[] | undefined;
120
139
  } | {
121
140
  type: "task";
141
+ summary?: string | undefined;
122
142
  assignees?: string[] | undefined;
123
143
  priority?: string | undefined;
124
144
  project?: string | undefined;
@@ -127,25 +147,41 @@ export declare function createGitHubCommentOnIssueTool(egress: PluginEgress): im
127
147
  labels?: string[] | undefined;
128
148
  } | {
129
149
  type: "deployment";
150
+ summary?: string | undefined;
130
151
  project?: string | undefined;
131
152
  environment?: string | undefined;
132
153
  revision?: string | undefined;
133
154
  branch?: string | undefined;
134
155
  } | {
135
156
  type: "calendar_event";
157
+ summary?: string | undefined;
136
158
  when?: string | undefined;
137
159
  attendees?: string[] | undefined;
138
160
  } | {
139
161
  type: "conversation";
162
+ summary?: string | undefined;
140
163
  participants?: string[] | undefined;
141
164
  lastActivityAt?: string | undefined;
165
+ } | {
166
+ type: "document";
167
+ summary?: string | undefined;
168
+ owner?: string | undefined;
169
+ modifiedAt?: string | undefined;
142
170
  } | {
143
171
  type: "message";
172
+ summary?: string | undefined;
144
173
  channel?: string | undefined;
145
174
  author?: string | undefined;
146
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;
147
182
  } | {
148
183
  type: "person";
184
+ summary?: string | undefined;
149
185
  email?: string | undefined;
150
186
  slackHandle?: string | undefined;
151
187
  githubHandle?: string | undefined;
@@ -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" | "conversation" | "deployment" | "item" | "message" | "person" | "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;
@@ -43,6 +44,7 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
43
44
  previewImageUrls?: string[] | undefined;
44
45
  } | {
45
46
  type: "task";
47
+ summary?: string | undefined;
46
48
  assignees?: string[] | undefined;
47
49
  priority?: string | undefined;
48
50
  project?: string | undefined;
@@ -51,25 +53,41 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
51
53
  labels?: string[] | undefined;
52
54
  } | {
53
55
  type: "deployment";
56
+ summary?: string | undefined;
54
57
  project?: string | undefined;
55
58
  environment?: string | undefined;
56
59
  revision?: string | undefined;
57
60
  branch?: string | undefined;
58
61
  } | {
59
62
  type: "calendar_event";
63
+ summary?: string | undefined;
60
64
  when?: string | undefined;
61
65
  attendees?: string[] | undefined;
62
66
  } | {
63
67
  type: "conversation";
68
+ summary?: string | undefined;
64
69
  participants?: string[] | undefined;
65
70
  lastActivityAt?: string | undefined;
71
+ } | {
72
+ type: "document";
73
+ summary?: string | undefined;
74
+ owner?: string | undefined;
75
+ modifiedAt?: string | undefined;
66
76
  } | {
67
77
  type: "message";
78
+ summary?: string | undefined;
68
79
  channel?: string | undefined;
69
80
  author?: string | undefined;
70
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;
71
88
  } | {
72
89
  type: "person";
90
+ summary?: string | undefined;
73
91
  email?: string | undefined;
74
92
  slackHandle?: string | undefined;
75
93
  githubHandle?: string | undefined;
@@ -96,7 +114,7 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
96
114
  kind: "object";
97
115
  key: string;
98
116
  label: string;
99
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
117
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
100
118
  title: string;
101
119
  url: string | null;
102
120
  description?: string | undefined;
@@ -107,6 +125,7 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
107
125
  sourceUpdatedAt?: string | undefined;
108
126
  facts?: {
109
127
  type: "code_change";
128
+ summary?: string | undefined;
110
129
  author?: string | undefined;
111
130
  sourceBranch?: string | undefined;
112
131
  targetBranch?: string | undefined;
@@ -124,6 +143,7 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
124
143
  previewImageUrls?: string[] | undefined;
125
144
  } | {
126
145
  type: "task";
146
+ summary?: string | undefined;
127
147
  assignees?: string[] | undefined;
128
148
  priority?: string | undefined;
129
149
  project?: string | undefined;
@@ -132,25 +152,41 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
132
152
  labels?: string[] | undefined;
133
153
  } | {
134
154
  type: "deployment";
155
+ summary?: string | undefined;
135
156
  project?: string | undefined;
136
157
  environment?: string | undefined;
137
158
  revision?: string | undefined;
138
159
  branch?: string | undefined;
139
160
  } | {
140
161
  type: "calendar_event";
162
+ summary?: string | undefined;
141
163
  when?: string | undefined;
142
164
  attendees?: string[] | undefined;
143
165
  } | {
144
166
  type: "conversation";
167
+ summary?: string | undefined;
145
168
  participants?: string[] | undefined;
146
169
  lastActivityAt?: string | undefined;
170
+ } | {
171
+ type: "document";
172
+ summary?: string | undefined;
173
+ owner?: string | undefined;
174
+ modifiedAt?: string | undefined;
147
175
  } | {
148
176
  type: "message";
177
+ summary?: string | undefined;
149
178
  channel?: string | undefined;
150
179
  author?: string | undefined;
151
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;
152
187
  } | {
153
188
  type: "person";
189
+ summary?: string | undefined;
154
190
  email?: string | undefined;
155
191
  slackHandle?: string | undefined;
156
192
  githubHandle?: string | undefined;
@@ -10,7 +10,7 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
10
10
  kind: "object";
11
11
  key: string;
12
12
  label: string;
13
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "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 createGitHubIssueTool(ctx: ToolRegistrationHookContext):
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;
@@ -38,6 +39,7 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
38
39
  previewImageUrls?: string[] | undefined;
39
40
  } | {
40
41
  type: "task";
42
+ summary?: string | undefined;
41
43
  assignees?: string[] | undefined;
42
44
  priority?: string | undefined;
43
45
  project?: string | undefined;
@@ -46,25 +48,41 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
46
48
  labels?: string[] | undefined;
47
49
  } | {
48
50
  type: "deployment";
51
+ summary?: string | undefined;
49
52
  project?: string | undefined;
50
53
  environment?: string | undefined;
51
54
  revision?: string | undefined;
52
55
  branch?: string | undefined;
53
56
  } | {
54
57
  type: "calendar_event";
58
+ summary?: string | undefined;
55
59
  when?: string | undefined;
56
60
  attendees?: string[] | undefined;
57
61
  } | {
58
62
  type: "conversation";
63
+ summary?: string | undefined;
59
64
  participants?: string[] | undefined;
60
65
  lastActivityAt?: string | undefined;
66
+ } | {
67
+ type: "document";
68
+ summary?: string | undefined;
69
+ owner?: string | undefined;
70
+ modifiedAt?: string | undefined;
61
71
  } | {
62
72
  type: "message";
73
+ summary?: string | undefined;
63
74
  channel?: string | undefined;
64
75
  author?: string | undefined;
65
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;
66
83
  } | {
67
84
  type: "person";
85
+ summary?: string | undefined;
68
86
  email?: string | undefined;
69
87
  slackHandle?: string | undefined;
70
88
  githubHandle?: string | undefined;
@@ -97,7 +115,7 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
97
115
  kind: "object";
98
116
  key: string;
99
117
  label: string;
100
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
118
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
101
119
  title: string;
102
120
  url: string | null;
103
121
  description?: string | undefined;
@@ -108,6 +126,7 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
108
126
  sourceUpdatedAt?: string | undefined;
109
127
  facts?: {
110
128
  type: "code_change";
129
+ summary?: string | undefined;
111
130
  author?: string | undefined;
112
131
  sourceBranch?: string | undefined;
113
132
  targetBranch?: string | undefined;
@@ -125,6 +144,7 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
125
144
  previewImageUrls?: string[] | undefined;
126
145
  } | {
127
146
  type: "task";
147
+ summary?: string | undefined;
128
148
  assignees?: string[] | undefined;
129
149
  priority?: string | undefined;
130
150
  project?: string | undefined;
@@ -133,25 +153,41 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
133
153
  labels?: string[] | undefined;
134
154
  } | {
135
155
  type: "deployment";
156
+ summary?: string | undefined;
136
157
  project?: string | undefined;
137
158
  environment?: string | undefined;
138
159
  revision?: string | undefined;
139
160
  branch?: string | undefined;
140
161
  } | {
141
162
  type: "calendar_event";
163
+ summary?: string | undefined;
142
164
  when?: string | undefined;
143
165
  attendees?: string[] | undefined;
144
166
  } | {
145
167
  type: "conversation";
168
+ summary?: string | undefined;
146
169
  participants?: string[] | undefined;
147
170
  lastActivityAt?: string | undefined;
171
+ } | {
172
+ type: "document";
173
+ summary?: string | undefined;
174
+ owner?: string | undefined;
175
+ modifiedAt?: string | undefined;
148
176
  } | {
149
177
  type: "message";
178
+ summary?: string | undefined;
150
179
  channel?: string | undefined;
151
180
  author?: string | undefined;
152
181
  sentAt?: string | undefined;
182
+ } | {
183
+ type: "web_page";
184
+ summary?: string | undefined;
185
+ siteName?: string | undefined;
186
+ author?: string | undefined;
187
+ thumbnailUrl?: string | undefined;
153
188
  } | {
154
189
  type: "person";
190
+ summary?: string | undefined;
155
191
  email?: string | undefined;
156
192
  slackHandle?: string | undefined;
157
193
  githubHandle?: string | undefined;