@inkeep/agents-work-apps 0.47.1 → 0.47.3

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.
@@ -3,9 +3,6 @@ import { z } from "zod";
3
3
  //#region src/github/mcp/schemas.d.ts
4
4
  declare const GitHubUserSchema: z.ZodObject<{
5
5
  login: z.ZodString;
6
- id: z.ZodNumber;
7
- avatarUrl: z.ZodString;
8
- url: z.ZodURL;
9
6
  }, z.core.$strip>;
10
7
  declare const RepositorySchema: z.ZodObject<{
11
8
  owner: z.ZodString;
@@ -20,9 +17,6 @@ declare const PullRequestSchema: z.ZodObject<{
20
17
  body: z.ZodNullable<z.ZodString>;
21
18
  author: z.ZodObject<{
22
19
  login: z.ZodString;
23
- id: z.ZodNumber;
24
- avatarUrl: z.ZodString;
25
- url: z.ZodURL;
26
20
  }, z.core.$strip>;
27
21
  url: z.ZodString;
28
22
  state: z.ZodString;
@@ -60,9 +54,6 @@ declare const CommentSchema: z.ZodObject<{
60
54
  body: z.ZodString;
61
55
  author: z.ZodObject<{
62
56
  login: z.ZodString;
63
- id: z.ZodNumber;
64
- avatarUrl: z.ZodString;
65
- url: z.ZodURL;
66
57
  }, z.core.$strip>;
67
58
  createdAt: z.ZodString;
68
59
  updatedAt: z.ZodOptional<z.ZodString>;
@@ -73,6 +64,8 @@ declare const CommentSchema: z.ZodObject<{
73
64
  }>;
74
65
  path: z.ZodOptional<z.ZodString>;
75
66
  line: z.ZodOptional<z.ZodNumber>;
67
+ diffHunk: z.ZodOptional<z.ZodString>;
68
+ isSuggestion: z.ZodOptional<z.ZodBoolean>;
76
69
  state: z.ZodOptional<z.ZodEnum<{
77
70
  APPROVED: "APPROVED";
78
71
  CHANGES_REQUESTED: "CHANGES_REQUESTED";
@@ -1,12 +1,7 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/github/mcp/schemas.ts
4
- const GitHubUserSchema = z.object({
5
- login: z.string(),
6
- id: z.number(),
7
- avatarUrl: z.string().url(),
8
- url: z.url()
9
- });
4
+ const GitHubUserSchema = z.object({ login: z.string() });
10
5
  const RepositorySchema = z.object({
11
6
  owner: z.string(),
12
7
  name: z.string(),
@@ -63,6 +58,8 @@ const CommentSchema = z.object({
63
58
  ]),
64
59
  path: z.string().optional(),
65
60
  line: z.number().optional(),
61
+ diffHunk: z.string().optional(),
62
+ isSuggestion: z.boolean().optional(),
66
63
  state: z.enum([
67
64
  "APPROVED",
68
65
  "CHANGES_REQUESTED",
@@ -36,12 +36,7 @@ function getGitHubClientFromInstallationId(installationId) {
36
36
  });
37
37
  }
38
38
  function mapUser(user) {
39
- return {
40
- login: user.login,
41
- id: user.id,
42
- avatarUrl: user.avatar_url,
43
- url: user.html_url
44
- };
39
+ return { login: user.login };
45
40
  }
46
41
  /**
47
42
  * Fetch pull request details
@@ -265,16 +260,21 @@ async function fetchComments(octokit, owner, repo, prNumber) {
265
260
  repo,
266
261
  pull_number: prNumber,
267
262
  per_page: 100
268
- })) for (const comment of response.data) results.push({
269
- id: comment.id,
270
- body: comment.body,
271
- author: mapUser(comment.user),
272
- createdAt: comment.created_at,
273
- updatedAt: comment.updated_at,
274
- type: "review",
275
- path: comment.path,
276
- line: comment.line || comment.original_line
277
- });
263
+ })) for (const comment of response.data) {
264
+ const isSuggestion = /```suggestion\b/.test(comment.body);
265
+ results.push({
266
+ id: comment.id,
267
+ body: comment.body,
268
+ author: mapUser(comment.user),
269
+ createdAt: comment.created_at,
270
+ updatedAt: comment.updated_at,
271
+ type: "review",
272
+ path: comment.path,
273
+ line: comment.line || comment.original_line,
274
+ diffHunk: comment.diff_hunk,
275
+ isSuggestion
276
+ });
277
+ }
278
278
  return results;
279
279
  })(),
280
280
  (async () => {
@@ -1,7 +1,7 @@
1
1
  import { Hono } from "hono";
2
- import * as hono_types4 from "hono/types";
2
+ import * as hono_types8 from "hono/types";
3
3
 
4
4
  //#region src/github/routes/setup.d.ts
5
- declare const app: Hono<hono_types4.BlankEnv, hono_types4.BlankSchema, "/">;
5
+ declare const app: Hono<hono_types8.BlankEnv, hono_types8.BlankSchema, "/">;
6
6
  //#endregion
7
7
  export { app as default };
@@ -1,7 +1,7 @@
1
1
  import { Hono } from "hono";
2
- import * as hono_types6 from "hono/types";
2
+ import * as hono_types4 from "hono/types";
3
3
 
4
4
  //#region src/github/routes/tokenExchange.d.ts
5
- declare const app: Hono<hono_types6.BlankEnv, hono_types6.BlankSchema, "/">;
5
+ declare const app: Hono<hono_types4.BlankEnv, hono_types4.BlankSchema, "/">;
6
6
  //#endregion
7
7
  export { app as default };
@@ -1,5 +1,5 @@
1
1
  import { Hono } from "hono";
2
- import * as hono_types8 from "hono/types";
2
+ import * as hono_types6 from "hono/types";
3
3
 
4
4
  //#region src/github/routes/webhooks.d.ts
5
5
  interface WebhookVerificationResult {
@@ -7,6 +7,6 @@ interface WebhookVerificationResult {
7
7
  error?: string;
8
8
  }
9
9
  declare function verifyWebhookSignature(payload: string, signature: string | undefined, secret: string): WebhookVerificationResult;
10
- declare const app: Hono<hono_types8.BlankEnv, hono_types8.BlankSchema, "/">;
10
+ declare const app: Hono<hono_types6.BlankEnv, hono_types6.BlankSchema, "/">;
11
11
  //#endregion
12
12
  export { WebhookVerificationResult, app as default, verifyWebhookSignature };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-work-apps",
3
- "version": "0.47.1",
3
+ "version": "0.47.3",
4
4
  "description": "First party integrations for Inkeep Agents",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -24,7 +24,7 @@
24
24
  "hono": "^4.11.7",
25
25
  "jose": "^6.1.0",
26
26
  "minimatch": "^10.1.1",
27
- "@inkeep/agents-core": "0.47.1"
27
+ "@inkeep/agents-core": "0.47.3"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "@hono/zod-openapi": "^1.1.5",