@inkeep/agents-work-apps 0.45.1 → 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.
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-work-apps",
3
- "version": "0.45.1",
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.1"
27
+ "@inkeep/agents-core": "0.45.3"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "@hono/zod-openapi": "^1.1.5",