@inkeep/agents-work-apps 0.45.2 → 0.45.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.
@@ -4,10 +4,10 @@ import "./routes/setup.js";
4
4
  import "./routes/tokenExchange.js";
5
5
  import { WebhookVerificationResult, verifyWebhookSignature } from "./routes/webhooks.js";
6
6
  import { Hono } from "hono";
7
- import * as hono_types4 from "hono/types";
7
+ import * as hono_types0 from "hono/types";
8
8
 
9
9
  //#region src/github/index.d.ts
10
- declare function createGithubRoutes(): Hono<hono_types4.BlankEnv, hono_types4.BlankSchema, "/">;
11
- declare const githubRoutes: Hono<hono_types4.BlankEnv, hono_types4.BlankSchema, "/">;
10
+ declare function createGithubRoutes(): Hono<hono_types0.BlankEnv, hono_types0.BlankSchema, "/">;
11
+ declare const githubRoutes: Hono<hono_types0.BlankEnv, hono_types0.BlankSchema, "/">;
12
12
  //#endregion
13
13
  export { GenerateInstallationAccessTokenResult, GenerateTokenError, GenerateTokenResult, GitHubAppConfig, InstallationAccessToken, InstallationInfo, LookupInstallationError, LookupInstallationForRepoResult, LookupInstallationResult, WebhookVerificationResult, clearConfigCache, createAppJwt, createGithubRoutes, determineStatus, fetchInstallationDetails, fetchInstallationRepositories, generateInstallationAccessToken, getGitHubAppConfig, getGitHubAppName, getStateSigningSecret, getWebhookSecret, githubRoutes, isGitHubAppConfigured, isGitHubAppNameConfigured, isStateSigningConfigured, isWebhookConfigured, lookupInstallationForRepo, validateGitHubAppConfigOnStartup, validateGitHubInstallFlowConfigOnStartup, validateGitHubWebhookConfigOnStartup, verifyWebhookSignature };
@@ -1,11 +1,11 @@
1
1
  import { Hono } from "hono";
2
- import * as hono_types0 from "hono/types";
2
+ import * as hono_types3 from "hono/types";
3
3
 
4
4
  //#region src/github/mcp/index.d.ts
5
5
  declare const app: Hono<{
6
6
  Variables: {
7
7
  toolId: string;
8
8
  };
9
- }, hono_types0.BlankSchema, "/">;
9
+ }, hono_types3.BlankSchema, "/">;
10
10
  //#endregion
11
11
  export { app as default };
@@ -90,8 +90,9 @@ const getServer = async (toolId) => {
90
90
  server.tool("get-file-content", `Get the content of a specific file from a repository. Returns a mapping of line number to line content. ${getAvailableRepositoryString(repositoryAccess)}`, {
91
91
  owner: z.string().describe("Repository owner name"),
92
92
  repo: z.string().describe("Repository name"),
93
- file_path: z.string().describe("Path to the file. the path is relative to the root of the repository")
94
- }, async ({ owner, repo, file_path }) => {
93
+ file_path: z.string().describe("Path to the file. the path is relative to the root of the repository"),
94
+ branch_name: z.string().optional().describe("The name of the branch to get the file content for (defaults to master/main branch). If you are analyzing a pr you created, you should use the branch name from the pr.")
95
+ }, async ({ owner, repo, file_path, branch_name }) => {
95
96
  try {
96
97
  let githubClient;
97
98
  try {
@@ -108,7 +109,8 @@ const getServer = async (toolId) => {
108
109
  const response = await githubClient.rest.repos.getContent({
109
110
  owner,
110
111
  repo,
111
- path: file_path
112
+ path: file_path,
113
+ ref: branch_name
112
114
  });
113
115
  if ("content" in response.data && !Array.isArray(response.data)) {
114
116
  const fileData = response.data;
@@ -579,8 +581,9 @@ const getServer = async (toolId) => {
579
581
  owner: z.string().describe("Repository owner name"),
580
582
  repo: z.string().describe("Repository name"),
581
583
  file_path: z.string().describe("The path of the file to visualize the update operations for"),
584
+ branch_name: z.string().optional().describe("The name of the branch to visualize the update operations for (defaults to master/main branch). If you are modifying a pr you created, you should use the branch name from the pr."),
582
585
  operations: updateOperationsSchema
583
- }, async ({ owner, repo, file_path, operations }) => {
586
+ }, async ({ owner, repo, file_path, branch_name, operations }) => {
584
587
  try {
585
588
  let githubClient;
586
589
  try {
@@ -597,7 +600,8 @@ const getServer = async (toolId) => {
597
600
  const response = await githubClient.rest.repos.getContent({
598
601
  owner,
599
602
  repo,
600
- path: file_path
603
+ path: file_path,
604
+ ref: branch_name
601
605
  });
602
606
  if ("content" in response.data && !Array.isArray(response.data)) {
603
607
  const fileData = response.data;
@@ -42,8 +42,8 @@ declare const ChangedFileSchema: z.ZodObject<{
42
42
  path: z.ZodString;
43
43
  status: z.ZodEnum<{
44
44
  added: "added";
45
- removed: "removed";
46
45
  modified: "modified";
46
+ removed: "removed";
47
47
  renamed: "renamed";
48
48
  copied: "copied";
49
49
  changed: "changed";
@@ -1,7 +1,7 @@
1
1
  import { Hono } from "hono";
2
- import * as hono_types2 from "hono/types";
2
+ import * as hono_types4 from "hono/types";
3
3
 
4
4
  //#region src/github/routes/setup.d.ts
5
- declare const app: Hono<hono_types2.BlankEnv, hono_types2.BlankSchema, "/">;
5
+ declare const app: Hono<hono_types4.BlankEnv, hono_types4.BlankSchema, "/">;
6
6
  //#endregion
7
7
  export { app as default };
@@ -1,7 +1,7 @@
1
1
  import { Hono } from "hono";
2
- import * as hono_types0 from "hono/types";
2
+ import * as hono_types6 from "hono/types";
3
3
 
4
4
  //#region src/github/routes/tokenExchange.d.ts
5
- declare const app: Hono<hono_types0.BlankEnv, hono_types0.BlankSchema, "/">;
5
+ declare const app: Hono<hono_types6.BlankEnv, hono_types6.BlankSchema, "/">;
6
6
  //#endregion
7
7
  export { app as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-work-apps",
3
- "version": "0.45.2",
3
+ "version": "0.45.3",
4
4
  "description": "First party integrations for Inkeep Agents",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -21,10 +21,10 @@
21
21
  "@octokit/rest": "^22.0.1",
22
22
  "drizzle-orm": "^0.44.7",
23
23
  "fetch-to-node": "^2.1.0",
24
- "hono": "^4.10.4",
24
+ "hono": "^4.11.7",
25
25
  "jose": "^6.1.0",
26
26
  "minimatch": "^10.1.1",
27
- "@inkeep/agents-core": "0.45.2"
27
+ "@inkeep/agents-core": "0.45.3"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "@hono/zod-openapi": "^1.1.5",