@github-tools/sdk 1.10.0 → 1.11.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 (42) hide show
  1. package/README.md +10 -6
  2. package/dist/connect/eve.d.mts +4 -3
  3. package/dist/connect/eve.d.mts.map +1 -1
  4. package/dist/connect/eve.mjs +8 -3
  5. package/dist/connect/eve.mjs.map +1 -1
  6. package/dist/connect.d.mts +109 -4
  7. package/dist/connect.d.mts.map +1 -1
  8. package/dist/connect.mjs +3 -3
  9. package/dist/{eve-runtime-CI4dR_hI.d.mts → eve-runtime-BqfQZAP7.d.mts} +3 -3
  10. package/dist/{eve-runtime-CI4dR_hI.d.mts.map → eve-runtime-BqfQZAP7.d.mts.map} +1 -1
  11. package/dist/{eve-runtime-CIcrt7MD.mjs → eve-runtime-DXZgfCMb.mjs} +29 -2
  12. package/dist/eve-runtime-DXZgfCMb.mjs.map +1 -0
  13. package/dist/eve-runtime.d.mts +3 -3
  14. package/dist/eve-runtime.mjs +2 -2
  15. package/dist/eve.d.mts +32 -4
  16. package/dist/eve.d.mts.map +1 -1
  17. package/dist/eve.mjs +31 -3
  18. package/dist/eve.mjs.map +1 -1
  19. package/dist/{index-B0nL0C00.d.mts → index-BNeMjmgp.d.mts} +31 -7
  20. package/dist/index-BNeMjmgp.d.mts.map +1 -0
  21. package/dist/index.d.mts +2 -2
  22. package/dist/index.mjs +3 -3
  23. package/dist/{src-v-LjzPpR.mjs → src-jQWS2Txw.mjs} +64 -4
  24. package/dist/src-jQWS2Txw.mjs.map +1 -0
  25. package/dist/token-OPdZa0t3.mjs +390 -0
  26. package/dist/token-OPdZa0t3.mjs.map +1 -0
  27. package/dist/{types-VW0m0Uxl.d.mts → types-BD5YvGxm.d.mts} +7 -3
  28. package/dist/types-BD5YvGxm.d.mts.map +1 -0
  29. package/dist/{types-Ygt1pw1N.d.mts → types-BDO-Mmn6.d.mts} +2 -2
  30. package/dist/{types-Ygt1pw1N.d.mts.map → types-BDO-Mmn6.d.mts.map} +1 -1
  31. package/dist/workflow.d.mts +1 -1
  32. package/dist/workflow.mjs +2 -2
  33. package/dist/{write-tools-uIVfURVp.mjs → write-tools-Dk32V9Hl.mjs} +97 -5
  34. package/dist/write-tools-Dk32V9Hl.mjs.map +1 -0
  35. package/package.json +1 -1
  36. package/dist/eve-runtime-CIcrt7MD.mjs.map +0 -1
  37. package/dist/index-B0nL0C00.d.mts.map +0 -1
  38. package/dist/src-v-LjzPpR.mjs.map +0 -1
  39. package/dist/token-DDMlEkK-.mjs +0 -167
  40. package/dist/token-DDMlEkK-.mjs.map +0 -1
  41. package/dist/types-VW0m0Uxl.d.mts.map +0 -1
  42. package/dist/write-tools-uIVfURVp.mjs.map +0 -1
package/dist/eve.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { At as GithubToolsForPreset, Ft as CommitIdentity, Gt as GithubToolPreset, Ht as GITHUB_WRITE_TOOLS, Jt as GITHUB_TOOL_NAMES, Kt as PRESET_TOOLS, Ot as AllGithubTools, Ut as GithubWriteToolName, Wt as CombinedPresetToolNames, Yt as GithubToolName, jt as PickGithubTools, qt as PresetToolName } from "./index-B0nL0C00.mjs";
2
- import { a as EveToolOverrides, i as EveToolFactoryOptions, n as EveApprovalValue, r as EveGithubToolsOptions, t as EveApprovalConfig } from "./types-Ygt1pw1N.mjs";
3
- import { a as buildEveToolMap, c as listEveToolDescriptors, i as buildEveToolDefinition, l as listResolvedEveToolNames, n as mapEveApprovalValue, o as createEveGithubToolsDynamic, r as resolveEveApproval, s as executeGithubEveTool, t as MISSING_EVE_MESSAGE } from "./eve-runtime-CI4dR_hI.mjs";
1
+ import { $t as GithubToolName, Ft as PickGithubTools, Jt as CombinedPresetToolNames, Kt as GITHUB_WRITE_TOOLS, Mt as AllGithubTools, Pt as GithubToolsForPreset, Qt as GITHUB_TOOL_NAMES, Xt as PRESET_TOOLS, Yt as GithubToolPreset, Zt as PresetToolName, qt as GithubWriteToolName, zt as CommitIdentity } from "./index-BNeMjmgp.mjs";
2
+ import { a as EveToolOverrides, i as EveToolFactoryOptions, n as EveApprovalValue, r as EveGithubToolsOptions, t as EveApprovalConfig } from "./types-BDO-Mmn6.mjs";
3
+ import { a as buildEveToolMap, c as listEveToolDescriptors, i as buildEveToolDefinition, l as listResolvedEveToolNames, n as mapEveApprovalValue, o as createEveGithubToolsDynamic, r as resolveEveApproval, s as executeGithubEveTool, t as MISSING_EVE_MESSAGE } from "./eve-runtime-BqfQZAP7.mjs";
4
4
  //#region src/eve.d.ts
5
5
  /**
6
6
  * Register all GitHub tools (or a preset subset) as eve dynamic capabilities.
@@ -150,6 +150,13 @@ declare const listIssues: (options?: EveToolFactoryOptions) => import("eve/tools
150
150
  * instead. See https://github-tools.com/frameworks/eve-extension.
151
151
  */
152
152
  declare const getIssue: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
153
+ /**
154
+ * List comments on a GitHub issue. Prefer getIssueContext for the first page when triaging.
155
+ *
156
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
157
+ * instead. See https://github-tools.com/frameworks/eve-extension.
158
+ */
159
+ declare const listIssueComments: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
153
160
  /**
154
161
  * Create a new issue in a GitHub repository. Requires approval by default.
155
162
  *
@@ -192,6 +199,27 @@ declare const addLabels: (options?: EveToolFactoryOptions) => import("eve/tools"
192
199
  * instead. See https://github-tools.com/frameworks/eve-extension.
193
200
  */
194
201
  declare const removeLabel: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
202
+ /**
203
+ * Create a label in a GitHub repository. Requires approval by default.
204
+ *
205
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
206
+ * instead. See https://github-tools.com/frameworks/eve-extension.
207
+ */
208
+ declare const createLabel: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
209
+ /**
210
+ * Update a label in a GitHub repository. Requires approval by default.
211
+ *
212
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
213
+ * instead. See https://github-tools.com/frameworks/eve-extension.
214
+ */
215
+ declare const updateLabel: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
216
+ /**
217
+ * Delete a label from a GitHub repository permanently. Requires approval by default.
218
+ *
219
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
220
+ * instead. See https://github-tools.com/frameworks/eve-extension.
221
+ */
222
+ declare const deleteLabel: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
195
223
  /**
196
224
  * Search for code in GitHub repositories. Use qualifiers like "repo:owner/name" to scope the search.
197
225
  *
@@ -340,5 +368,5 @@ declare const getCiFailureContext: (options?: EveToolFactoryOptions) => import("
340
368
  */
341
369
  declare const getReleaseContext: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
342
370
  //#endregion
343
- export { type AllGithubTools, type CombinedPresetToolNames, type CommitIdentity, type EveApprovalConfig, type EveApprovalValue, type EveGithubToolsOptions, type EveToolFactoryOptions, type EveToolOverrides, GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, type GithubToolName, type GithubToolPreset, type GithubToolsForPreset, type GithubWriteToolName, MISSING_EVE_MESSAGE, PRESET_TOOLS, type PickGithubTools, type PresetToolName, addIssueComment, addLabels, addPullRequestComment, buildEveToolDefinition, buildEveToolMap, cancelWorkflowRun, closeIssue, createBranch, createEveGithubToolsDynamic, createGist, createGistComment, createGithubTools, createIssue, createOrUpdateFile, createPullRequest, createPullRequestReview, createRepository, deleteGist, executeGithubEveTool, forkRepository, getBlame, getCiFailureContext, getCommit, getFileContent, getGist, getIssue, getIssueContext, getPullRequest, getPullRequestContext, getReleaseContext, getRepository, getWorkflowRun, listBranches, listCommits, listEveToolDescriptors, listGistComments, listGists, listIssues, listLabels, listPullRequestFiles, listPullRequestReviews, listPullRequests, listResolvedEveToolNames, listWorkflowJobs, listWorkflowRuns, listWorkflows, mapEveApprovalValue, mergePullRequest, removeLabel, rerunWorkflowRun, resolveEveApproval, searchCode, searchRepositories, triggerWorkflow, updateGist };
371
+ export { type AllGithubTools, type CombinedPresetToolNames, type CommitIdentity, type EveApprovalConfig, type EveApprovalValue, type EveGithubToolsOptions, type EveToolFactoryOptions, type EveToolOverrides, GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, type GithubToolName, type GithubToolPreset, type GithubToolsForPreset, type GithubWriteToolName, MISSING_EVE_MESSAGE, PRESET_TOOLS, type PickGithubTools, type PresetToolName, addIssueComment, addLabels, addPullRequestComment, buildEveToolDefinition, buildEveToolMap, cancelWorkflowRun, closeIssue, createBranch, createEveGithubToolsDynamic, createGist, createGistComment, createGithubTools, createIssue, createLabel, createOrUpdateFile, createPullRequest, createPullRequestReview, createRepository, deleteGist, deleteLabel, executeGithubEveTool, forkRepository, getBlame, getCiFailureContext, getCommit, getFileContent, getGist, getIssue, getIssueContext, getPullRequest, getPullRequestContext, getReleaseContext, getRepository, getWorkflowRun, listBranches, listCommits, listEveToolDescriptors, listGistComments, listGists, listIssueComments, listIssues, listLabels, listPullRequestFiles, listPullRequestReviews, listPullRequests, listResolvedEveToolNames, listWorkflowJobs, listWorkflowRuns, listWorkflows, mapEveApprovalValue, mergePullRequest, removeLabel, rerunWorkflowRun, resolveEveApproval, searchCode, searchRepositories, triggerWorkflow, updateGist, updateLabel };
344
372
  //# sourceMappingURL=eve.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"eve.d.mts","names":[],"sources":["../src/eve.ts"],"mappings":";;;;;;;;;;;;;;;;;;iBAwDgB,kBAAkB,UAAlB,4CAAuE,gBAAA,QAAA,OAArB,oCAAqB;;;;;;;cAc1E,gBAAa,UATN,8CAAqB;;;;;;;cAgB5B,eAAY,UAhBL,8CAAqB;;;;;;;cAuB5B,iBAAc,UAvBP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qB;;;;;;;cAgW5B,oBAAiB,UAhWV,8CAAqB"}
package/dist/eve.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { i as PRESET_TOOLS, r as GITHUB_TOOL_NAMES, t as GITHUB_WRITE_TOOLS } from "./write-tools-uIVfURVp.mjs";
2
- import { a as listEveToolDescriptors, c as resolveEveApproval, i as executeGithubEveTool, l as MISSING_EVE_MESSAGE, n as buildEveToolMap, o as listResolvedEveToolNames, r as createEveGithubToolsDynamic, s as mapEveApprovalValue, t as buildEveToolDefinition } from "./eve-runtime-CIcrt7MD.mjs";
1
+ import { i as PRESET_TOOLS, r as GITHUB_TOOL_NAMES, t as GITHUB_WRITE_TOOLS } from "./write-tools-Dk32V9Hl.mjs";
2
+ import { a as listEveToolDescriptors, c as resolveEveApproval, i as executeGithubEveTool, l as MISSING_EVE_MESSAGE, n as buildEveToolMap, o as listResolvedEveToolNames, r as createEveGithubToolsDynamic, s as mapEveApprovalValue, t as buildEveToolDefinition } from "./eve-runtime-DXZgfCMb.mjs";
3
3
  //#region src/eve.ts
4
4
  /**
5
5
  * Legacy eve registration for `agent/tools/` (direct import).
@@ -162,6 +162,13 @@ const listIssues = factory("listIssues");
162
162
  */
163
163
  const getIssue = factory("getIssue");
164
164
  /**
165
+ * List comments on a GitHub issue. Prefer getIssueContext for the first page when triaging.
166
+ *
167
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
168
+ * instead. See https://github-tools.com/frameworks/eve-extension.
169
+ */
170
+ const listIssueComments = factory("listIssueComments");
171
+ /**
165
172
  * Create a new issue in a GitHub repository. Requires approval by default.
166
173
  *
167
174
  * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
@@ -204,6 +211,27 @@ const addLabels = factory("addLabels");
204
211
  */
205
212
  const removeLabel = factory("removeLabel");
206
213
  /**
214
+ * Create a label in a GitHub repository. Requires approval by default.
215
+ *
216
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
217
+ * instead. See https://github-tools.com/frameworks/eve-extension.
218
+ */
219
+ const createLabel = factory("createLabel");
220
+ /**
221
+ * Update a label in a GitHub repository. Requires approval by default.
222
+ *
223
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
224
+ * instead. See https://github-tools.com/frameworks/eve-extension.
225
+ */
226
+ const updateLabel = factory("updateLabel");
227
+ /**
228
+ * Delete a label from a GitHub repository permanently. Requires approval by default.
229
+ *
230
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
231
+ * instead. See https://github-tools.com/frameworks/eve-extension.
232
+ */
233
+ const deleteLabel = factory("deleteLabel");
234
+ /**
207
235
  * Search for code in GitHub repositories. Use qualifiers like "repo:owner/name" to scope the search.
208
236
  *
209
237
  * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
@@ -351,6 +379,6 @@ const getCiFailureContext = factory("getCiFailureContext");
351
379
  */
352
380
  const getReleaseContext = factory("getReleaseContext");
353
381
  //#endregion
354
- export { GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, MISSING_EVE_MESSAGE, PRESET_TOOLS, addIssueComment, addLabels, addPullRequestComment, buildEveToolDefinition, buildEveToolMap, cancelWorkflowRun, closeIssue, createBranch, createEveGithubToolsDynamic, createGist, createGistComment, createGithubTools, createIssue, createOrUpdateFile, createPullRequest, createPullRequestReview, createRepository, deleteGist, executeGithubEveTool, forkRepository, getBlame, getCiFailureContext, getCommit, getFileContent, getGist, getIssue, getIssueContext, getPullRequest, getPullRequestContext, getReleaseContext, getRepository, getWorkflowRun, listBranches, listCommits, listEveToolDescriptors, listGistComments, listGists, listIssues, listLabels, listPullRequestFiles, listPullRequestReviews, listPullRequests, listResolvedEveToolNames, listWorkflowJobs, listWorkflowRuns, listWorkflows, mapEveApprovalValue, mergePullRequest, removeLabel, rerunWorkflowRun, resolveEveApproval, searchCode, searchRepositories, triggerWorkflow, updateGist };
382
+ export { GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, MISSING_EVE_MESSAGE, PRESET_TOOLS, addIssueComment, addLabels, addPullRequestComment, buildEveToolDefinition, buildEveToolMap, cancelWorkflowRun, closeIssue, createBranch, createEveGithubToolsDynamic, createGist, createGistComment, createGithubTools, createIssue, createLabel, createOrUpdateFile, createPullRequest, createPullRequestReview, createRepository, deleteGist, deleteLabel, executeGithubEveTool, forkRepository, getBlame, getCiFailureContext, getCommit, getFileContent, getGist, getIssue, getIssueContext, getPullRequest, getPullRequestContext, getReleaseContext, getRepository, getWorkflowRun, listBranches, listCommits, listEveToolDescriptors, listGistComments, listGists, listIssueComments, listIssues, listLabels, listPullRequestFiles, listPullRequestReviews, listPullRequests, listResolvedEveToolNames, listWorkflowJobs, listWorkflowRuns, listWorkflows, mapEveApprovalValue, mergePullRequest, removeLabel, rerunWorkflowRun, resolveEveApproval, searchCode, searchRepositories, triggerWorkflow, updateGist, updateLabel };
355
383
 
356
384
  //# sourceMappingURL=eve.mjs.map
package/dist/eve.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"eve.mjs","names":[],"sources":["../src/eve.ts"],"sourcesContent":["/**\n * Legacy eve registration for `agent/tools/` (direct import).\n *\n * Prefer `@github-tools/eve-extension` for new agents. Shared runtime helpers\n * used by the extension live on `@github-tools/sdk/eve-runtime` — import those\n * from there rather than this subpath.\n */\n\nimport { buildEveToolDefinition, createEveGithubToolsDynamic } from './eve/build'\nimport type { EveToolFactoryOptions } from './eve/types'\n\nexport {\n buildEveToolDefinition,\n buildEveToolMap,\n createEveGithubToolsDynamic,\n listResolvedEveToolNames,\n listEveToolDescriptors,\n executeGithubEveTool,\n mapEveApprovalValue,\n resolveEveApproval,\n PRESET_TOOLS,\n GITHUB_TOOL_NAMES,\n GITHUB_WRITE_TOOLS,\n MISSING_EVE_MESSAGE,\n} from './eve-runtime'\nexport type {\n EveApprovalConfig,\n EveApprovalValue,\n EveGithubToolsOptions,\n EveToolFactoryOptions,\n EveToolOverrides,\n GithubToolPreset,\n PresetToolName,\n CombinedPresetToolNames,\n GithubToolName,\n GithubWriteToolName,\n AllGithubTools,\n GithubToolsForPreset,\n PickGithubTools,\n CommitIdentity,\n} from './eve-runtime'\n\n/**\n * Register all GitHub tools (or a preset subset) as eve dynamic capabilities.\n *\n * Export as the default from `agent/tools/github.ts`:\n *\n * ```ts\n * import { createGithubTools } from '@github-tools/sdk/eve'\n * export default createGithubTools({ preset: 'code-review' })\n * ```\n *\n * @deprecated Use the mountable `@github-tools/eve-extension` (`githubExtension`) instead — it is now the\n * recommended way to add GitHub tools to an eve agent. This direct import keeps working but is no longer\n * the recommended path. See https://github-tools.com/frameworks/eve-extension.\n */\nexport function createGithubTools(options?: import('./eve/types').EveGithubToolsOptions) {\n return createEveGithubToolsDynamic(options ?? {})\n}\n\nfunction factory(name: Parameters<typeof buildEveToolDefinition>[0]) {\n return (options?: EveToolFactoryOptions) => buildEveToolDefinition(name, options)\n}\n\n/**\n * Get information about a GitHub repository including description, stars, forks, language, and default branch.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getRepository = factory('getRepository')\n/**\n * List branches in a GitHub repository.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listBranches = factory('listBranches')\n/**\n * Get the content of a file from a GitHub repository.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getFileContent = factory('getFileContent')\n/**\n * Create a new branch in a GitHub repository from an existing branch or commit SHA. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createBranch = factory('createBranch')\n/**\n * Fork a GitHub repository to the authenticated user account or a specified organization. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const forkRepository = factory('forkRepository')\n/**\n * Create a new GitHub repository for the authenticated user or a specified organization. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createRepository = factory('createRepository')\n/**\n * Create or update a file in a GitHub repository. Provide the SHA when updating an existing file. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createOrUpdateFile = factory('createOrUpdateFile')\n/**\n * List pull requests for a GitHub repository.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listPullRequests = factory('listPullRequests')\n/**\n * Get detailed information about a specific pull request.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getPullRequest = factory('getPullRequest')\n/**\n * Create a new pull request in a GitHub repository. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createPullRequest = factory('createPullRequest')\n/**\n * Merge a pull request. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const mergePullRequest = factory('mergePullRequest')\n/**\n * Add a comment to a pull request. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const addPullRequestComment = factory('addPullRequestComment')\n/**\n * List files changed in a pull request, including diff status and patch content.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listPullRequestFiles = factory('listPullRequestFiles')\n/**\n * List reviews on a pull request (approvals, change requests, and comments).\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listPullRequestReviews = factory('listPullRequestReviews')\n/**\n * Submit a pull request review with optional inline comments. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createPullRequestReview = factory('createPullRequestReview')\n/**\n * Fetch pull request details plus files, reviews, and optional CI checks in one call.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getPullRequestContext = factory('getPullRequestContext')\n/**\n * Fetch an issue plus available label names and recent comments in one call.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getIssueContext = factory('getIssueContext')\n/**\n * List issues for a GitHub repository (excludes pull requests).\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listIssues = factory('listIssues')\n/**\n * Get detailed information about a specific issue.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getIssue = factory('getIssue')\n/**\n * Create a new issue in a GitHub repository. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createIssue = factory('createIssue')\n/**\n * Add a comment to a GitHub issue. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const addIssueComment = factory('addIssueComment')\n/**\n * Close an open GitHub issue. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const closeIssue = factory('closeIssue')\n/**\n * List labels available in a GitHub repository.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listLabels = factory('listLabels')\n/**\n * Add labels to an issue or pull request. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const addLabels = factory('addLabels')\n/**\n * Remove a label from an issue or pull request. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const removeLabel = factory('removeLabel')\n/**\n * Search for code in GitHub repositories. Use qualifiers like \"repo:owner/name\" to scope the search.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const searchCode = factory('searchCode')\n/**\n * Search for GitHub repositories by keyword, topic, language, or other qualifiers.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const searchRepositories = factory('searchRepositories')\n/**\n * List commits for a GitHub repository. Filter by file path to see commits that touched a file.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listCommits = factory('listCommits')\n/**\n * Get detailed information about a specific commit, including files changed with additions and deletions.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getCommit = factory('getCommit')\n/**\n * Line-level git blame for a file at a commit-like ref (branch, tag, or SHA).\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getBlame = factory('getBlame')\n/**\n * List gists for the authenticated user or a specific user.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listGists = factory('listGists')\n/**\n * Get a gist by ID, including file contents.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getGist = factory('getGist')\n/**\n * List comments on a gist.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listGistComments = factory('listGistComments')\n/**\n * Create a new gist with one or more files. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createGist = factory('createGist')\n/**\n * Update an existing gist. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const updateGist = factory('updateGist')\n/**\n * Delete a gist permanently. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const deleteGist = factory('deleteGist')\n/**\n * Add a comment to a gist. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createGistComment = factory('createGistComment')\n/**\n * List GitHub Actions workflows in a repository.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listWorkflows = factory('listWorkflows')\n/**\n * List workflow runs for a repository, optionally filtered by workflow, branch, status, or event.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listWorkflowRuns = factory('listWorkflowRuns')\n/**\n * Get details of a specific workflow run including status, timing, and trigger info.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getWorkflowRun = factory('getWorkflowRun')\n/**\n * List jobs for a workflow run, including step-level status and timing.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listWorkflowJobs = factory('listWorkflowJobs')\n/**\n * Trigger a workflow via workflow_dispatch event. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const triggerWorkflow = factory('triggerWorkflow')\n/**\n * Cancel an in-progress workflow run. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const cancelWorkflowRun = factory('cancelWorkflowRun')\n/**\n * Re-run a workflow run, optionally only the failed jobs. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const rerunWorkflowRun = factory('rerunWorkflowRun')\n/**\n * Diagnose CI failures for a ref — combined status, failing checks, and failed workflow jobs in one call.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getCiFailureContext = factory('getCiFailureContext')\n/**\n * Fetch a release plus the previous release and tag comparison in one call.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getReleaseContext = factory('getReleaseContext')\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAwDA,SAAgB,kBAAkB,SAAuD;CACvF,OAAO,4BAA4B,WAAW,CAAC,CAAC;AAClD;AAEA,SAAS,QAAQ,MAAoD;CACnE,QAAQ,YAAoC,uBAAuB,MAAM,OAAO;AAClF;;;;;;;AAQA,MAAa,gBAAgB,QAAQ,eAAe;;;;;;;AAOpD,MAAa,eAAe,QAAQ,cAAc;;;;;;;AAOlD,MAAa,iBAAiB,QAAQ,gBAAgB;;;;;;;AAOtD,MAAa,eAAe,QAAQ,cAAc;;;;;;;AAOlD,MAAa,iBAAiB,QAAQ,gBAAgB;;;;;;;AAOtD,MAAa,mBAAmB,QAAQ,kBAAkB;;;;;;;AAO1D,MAAa,qBAAqB,QAAQ,oBAAoB;;;;;;;AAO9D,MAAa,mBAAmB,QAAQ,kBAAkB;;;;;;;AAO1D,MAAa,iBAAiB,QAAQ,gBAAgB;;;;;;;AAOtD,MAAa,oBAAoB,QAAQ,mBAAmB;;;;;;;AAO5D,MAAa,mBAAmB,QAAQ,kBAAkB;;;;;;;AAO1D,MAAa,wBAAwB,QAAQ,uBAAuB;;;;;;;AAOpE,MAAa,uBAAuB,QAAQ,sBAAsB;;;;;;;AAOlE,MAAa,yBAAyB,QAAQ,wBAAwB;;;;;;;AAOtE,MAAa,0BAA0B,QAAQ,yBAAyB;;;;;;;AAOxE,MAAa,wBAAwB,QAAQ,uBAAuB;;;;;;;AAOpE,MAAa,kBAAkB,QAAQ,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3,"file":"eve.mjs","names":[],"sources":["../src/eve.ts"],"sourcesContent":["/**\n * Legacy eve registration for `agent/tools/` (direct import).\n *\n * Prefer `@github-tools/eve-extension` for new agents. Shared runtime helpers\n * used by the extension live on `@github-tools/sdk/eve-runtime` — import those\n * from there rather than this subpath.\n */\n\nimport { buildEveToolDefinition, createEveGithubToolsDynamic } from './eve/build'\nimport type { EveToolFactoryOptions } from './eve/types'\n\nexport {\n buildEveToolDefinition,\n buildEveToolMap,\n createEveGithubToolsDynamic,\n listResolvedEveToolNames,\n listEveToolDescriptors,\n executeGithubEveTool,\n mapEveApprovalValue,\n resolveEveApproval,\n PRESET_TOOLS,\n GITHUB_TOOL_NAMES,\n GITHUB_WRITE_TOOLS,\n MISSING_EVE_MESSAGE,\n} from './eve-runtime'\nexport type {\n EveApprovalConfig,\n EveApprovalValue,\n EveGithubToolsOptions,\n EveToolFactoryOptions,\n EveToolOverrides,\n GithubToolPreset,\n PresetToolName,\n CombinedPresetToolNames,\n GithubToolName,\n GithubWriteToolName,\n AllGithubTools,\n GithubToolsForPreset,\n PickGithubTools,\n CommitIdentity,\n} from './eve-runtime'\n\n/**\n * Register all GitHub tools (or a preset subset) as eve dynamic capabilities.\n *\n * Export as the default from `agent/tools/github.ts`:\n *\n * ```ts\n * import { createGithubTools } from '@github-tools/sdk/eve'\n * export default createGithubTools({ preset: 'code-review' })\n * ```\n *\n * @deprecated Use the mountable `@github-tools/eve-extension` (`githubExtension`) instead — it is now the\n * recommended way to add GitHub tools to an eve agent. This direct import keeps working but is no longer\n * the recommended path. See https://github-tools.com/frameworks/eve-extension.\n */\nexport function createGithubTools(options?: import('./eve/types').EveGithubToolsOptions) {\n return createEveGithubToolsDynamic(options ?? {})\n}\n\nfunction factory(name: Parameters<typeof buildEveToolDefinition>[0]) {\n return (options?: EveToolFactoryOptions) => buildEveToolDefinition(name, options)\n}\n\n/**\n * Get information about a GitHub repository including description, stars, forks, language, and default branch.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getRepository = factory('getRepository')\n/**\n * List branches in a GitHub repository.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listBranches = factory('listBranches')\n/**\n * Get the content of a file from a GitHub repository.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getFileContent = factory('getFileContent')\n/**\n * Create a new branch in a GitHub repository from an existing branch or commit SHA. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createBranch = factory('createBranch')\n/**\n * Fork a GitHub repository to the authenticated user account or a specified organization. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const forkRepository = factory('forkRepository')\n/**\n * Create a new GitHub repository for the authenticated user or a specified organization. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createRepository = factory('createRepository')\n/**\n * Create or update a file in a GitHub repository. Provide the SHA when updating an existing file. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createOrUpdateFile = factory('createOrUpdateFile')\n/**\n * List pull requests for a GitHub repository.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listPullRequests = factory('listPullRequests')\n/**\n * Get detailed information about a specific pull request.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getPullRequest = factory('getPullRequest')\n/**\n * Create a new pull request in a GitHub repository. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createPullRequest = factory('createPullRequest')\n/**\n * Merge a pull request. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const mergePullRequest = factory('mergePullRequest')\n/**\n * Add a comment to a pull request. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const addPullRequestComment = factory('addPullRequestComment')\n/**\n * List files changed in a pull request, including diff status and patch content.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listPullRequestFiles = factory('listPullRequestFiles')\n/**\n * List reviews on a pull request (approvals, change requests, and comments).\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listPullRequestReviews = factory('listPullRequestReviews')\n/**\n * Submit a pull request review with optional inline comments. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createPullRequestReview = factory('createPullRequestReview')\n/**\n * Fetch pull request details plus files, reviews, and optional CI checks in one call.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getPullRequestContext = factory('getPullRequestContext')\n/**\n * Fetch an issue plus available label names and recent comments in one call.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getIssueContext = factory('getIssueContext')\n/**\n * List issues for a GitHub repository (excludes pull requests).\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listIssues = factory('listIssues')\n/**\n * Get detailed information about a specific issue.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getIssue = factory('getIssue')\n/**\n * List comments on a GitHub issue. Prefer getIssueContext for the first page when triaging.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listIssueComments = factory('listIssueComments')\n/**\n * Create a new issue in a GitHub repository. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createIssue = factory('createIssue')\n/**\n * Add a comment to a GitHub issue. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const addIssueComment = factory('addIssueComment')\n/**\n * Close an open GitHub issue. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const closeIssue = factory('closeIssue')\n/**\n * List labels available in a GitHub repository.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listLabels = factory('listLabels')\n/**\n * Add labels to an issue or pull request. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const addLabels = factory('addLabels')\n/**\n * Remove a label from an issue or pull request. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const removeLabel = factory('removeLabel')\n/**\n * Create a label in a GitHub repository. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createLabel = factory('createLabel')\n/**\n * Update a label in a GitHub repository. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const updateLabel = factory('updateLabel')\n/**\n * Delete a label from a GitHub repository permanently. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const deleteLabel = factory('deleteLabel')\n/**\n * Search for code in GitHub repositories. Use qualifiers like \"repo:owner/name\" to scope the search.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const searchCode = factory('searchCode')\n/**\n * Search for GitHub repositories by keyword, topic, language, or other qualifiers.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const searchRepositories = factory('searchRepositories')\n/**\n * List commits for a GitHub repository. Filter by file path to see commits that touched a file.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listCommits = factory('listCommits')\n/**\n * Get detailed information about a specific commit, including files changed with additions and deletions.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getCommit = factory('getCommit')\n/**\n * Line-level git blame for a file at a commit-like ref (branch, tag, or SHA).\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getBlame = factory('getBlame')\n/**\n * List gists for the authenticated user or a specific user.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listGists = factory('listGists')\n/**\n * Get a gist by ID, including file contents.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getGist = factory('getGist')\n/**\n * List comments on a gist.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listGistComments = factory('listGistComments')\n/**\n * Create a new gist with one or more files. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createGist = factory('createGist')\n/**\n * Update an existing gist. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const updateGist = factory('updateGist')\n/**\n * Delete a gist permanently. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const deleteGist = factory('deleteGist')\n/**\n * Add a comment to a gist. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createGistComment = factory('createGistComment')\n/**\n * List GitHub Actions workflows in a repository.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listWorkflows = factory('listWorkflows')\n/**\n * List workflow runs for a repository, optionally filtered by workflow, branch, status, or event.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listWorkflowRuns = factory('listWorkflowRuns')\n/**\n * Get details of a specific workflow run including status, timing, and trigger info.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getWorkflowRun = factory('getWorkflowRun')\n/**\n * List jobs for a workflow run, including step-level status and timing.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listWorkflowJobs = factory('listWorkflowJobs')\n/**\n * Trigger a workflow via workflow_dispatch event. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const triggerWorkflow = factory('triggerWorkflow')\n/**\n * Cancel an in-progress workflow run. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const cancelWorkflowRun = factory('cancelWorkflowRun')\n/**\n * Re-run a workflow run, optionally only the failed jobs. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const rerunWorkflowRun = factory('rerunWorkflowRun')\n/**\n * Diagnose CI failures for a ref — combined status, failing checks, and failed workflow jobs in one call.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getCiFailureContext = factory('getCiFailureContext')\n/**\n * Fetch a release plus the previous release and tag comparison in one call.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getReleaseContext = factory('getReleaseContext')\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAwDA,SAAgB,kBAAkB,SAAuD;CACvF,OAAO,4BAA4B,WAAW,CAAC,CAAC;AAClD;AAEA,SAAS,QAAQ,MAAoD;CACnE,QAAQ,YAAoC,uBAAuB,MAAM,OAAO;AAClF;;;;;;;AAQA,MAAa,gBAAgB,QAAQ,eAAe;;;;;;;AAOpD,MAAa,eAAe,QAAQ,cAAc;;;;;;;AAOlD,MAAa,iBAAiB,QAAQ,gBAAgB;;;;;;;AAOtD,MAAa,eAAe,QAAQ,cAAc;;;;;;;AAOlD,MAAa,iBAAiB,QAAQ,gBAAgB;;;;;;;AAOtD,MAAa,mBAAmB,QAAQ,kBAAkB;;;;;;;AAO1D,MAAa,qBAAqB,QAAQ,oBAAoB;;;;;;;AAO9D,MAAa,mBAAmB,QAAQ,kBAAkB;;;;;;;AAO1D,MAAa,iBAAiB,QAAQ,gBAAgB;;;;;;;AAOtD,MAAa,oBAAoB,QAAQ,mBAAmB;;;;;;;AAO5D,MAAa,mBAAmB,QAAQ,kBAAkB;;;;;;;AAO1D,MAAa,wBAAwB,QAAQ,uBAAuB;;;;;;;AAOpE,MAAa,uBAAuB,QAAQ,sBAAsB;;;;;;;AAOlE,MAAa,yBAAyB,QAAQ,wBAAwB;;;;;;;AAOtE,MAAa,0BAA0B,QAAQ,yBAAyB;;;;;;;AAOxE,MAAa,wBAAwB,QAAQ,uBAAuB;;;;;;;AAOpE,MAAa,kBAAkB,QAAQ,iBAAiB;;;;;;;AAOxD,MAAa,aAAa,QAAQ,YAAY;;;;;;;AAO9C,M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;;;;;AAO1D,MAAa,sBAAsB,QAAQ,qBAAqB;;;;;;;AAOhE,MAAa,oBAAoB,QAAQ,mBAAmB"}
@@ -55,6 +55,8 @@ declare const GITHUB_TOOL_NAMES: {
55
55
  readonly getIssue: "getIssue";
56
56
  /** Fetch an issue plus available label names and recent comments in one call. */
57
57
  readonly getIssueContext: "getIssueContext";
58
+ /** List comments on a GitHub issue. Bodies are truncated by default (detail: summary). Prefer getIssueContext for the first page when triaging. */
59
+ readonly listIssueComments: "listIssueComments";
58
60
  /** Create a new issue in a GitHub repository. Requires approval by default. */
59
61
  readonly createIssue: "createIssue";
60
62
  /** Add a comment to a GitHub issue. Requires approval by default. */
@@ -73,6 +75,12 @@ declare const GITHUB_TOOL_NAMES: {
73
75
  readonly addLabels: "addLabels";
74
76
  /** Remove a label from an issue or pull request. Requires approval by default. */
75
77
  readonly removeLabel: "removeLabel";
78
+ /** Create a label in a GitHub repository. Requires approval by default. */
79
+ readonly createLabel: "createLabel";
80
+ /** Update a label in a GitHub repository — name, color, or description. Requires approval by default. */
81
+ readonly updateLabel: "updateLabel";
82
+ /** Delete a label from a GitHub repository permanently. Requires approval by default. */
83
+ readonly deleteLabel: "deleteLabel";
76
84
  /** Assign users to an issue or pull request. Requires approval by default. */
77
85
  readonly addAssignees: "addAssignees";
78
86
  /** Remove assignees from an issue or pull request. Requires approval by default. */
@@ -181,17 +189,19 @@ declare const PRESET_TOOLS: {
181
189
  /**
182
190
  * **Issue triage** — manage and organize GitHub issues.
183
191
  *
184
- * Tools: `listIssues`, `getIssueContext`, `createIssue`, `addIssueComment`, `updateIssueComment`, `deleteIssueComment`,
185
- * `closeIssue`, `updateIssue`, `addLabels`, `removeLabel`, `addAssignees`, `removeAssignees`,
192
+ * Tools: `listIssues`, `getIssueContext`, `listIssueComments`, `createIssue`, `addIssueComment`, `updateIssueComment`, `deleteIssueComment`,
193
+ * `closeIssue`, `updateIssue`, `addLabels`, `removeLabel`, `createLabel`, `updateLabel`, `deleteLabel`,
194
+ * `addAssignees`, `removeAssignees`,
186
195
  * `listIssueReactions`, `addIssueReaction`, `listCommentReactions`, `addCommentReaction`, `getRepository`,
187
196
  * `searchRepositories`, `searchCode`, `searchIssues`.
188
197
  *
189
198
  * Prefer `getIssueContext` (issue + `labelNames` + recent comments) over separate get/list calls.
199
+ * Use `listIssueComments` to paginate beyond the comments returned by `getIssueContext`.
190
200
  * Reopen a closed issue with `updateIssue` (`state: 'open'`) — there is no separate reopen tool.
191
201
  * Acknowledge a report with `addIssueReaction` / `addCommentReaction` instead of a comment when no reply is needed.
192
202
  * Agent prompt: optimized for categorizing, labeling, and responding to issues.
193
203
  */
194
- readonly 'issue-triage': readonly ["listIssues", "getIssueContext", "createIssue", "addIssueComment", "updateIssueComment", "deleteIssueComment", "closeIssue", "updateIssue", "addLabels", "removeLabel", "addAssignees", "removeAssignees", "listIssueReactions", "addIssueReaction", "listCommentReactions", "addCommentReaction", "getRepository", "searchRepositories", "searchCode", "searchIssues"];
204
+ readonly 'issue-triage': readonly ["listIssues", "getIssueContext", "listIssueComments", "createIssue", "addIssueComment", "updateIssueComment", "deleteIssueComment", "closeIssue", "updateIssue", "addLabels", "removeLabel", "createLabel", "updateLabel", "deleteLabel", "addAssignees", "removeAssignees", "listIssueReactions", "addIssueReaction", "listCommentReactions", "addCommentReaction", "getRepository", "searchRepositories", "searchCode", "searchIssues"];
195
205
  /**
196
206
  * **CI operations** — monitor and manage GitHub Actions workflows.
197
207
  *
@@ -210,7 +220,7 @@ declare const PRESET_TOOLS: {
210
220
  *
211
221
  * Agent prompt: optimized for answering questions about code structure and history.
212
222
  */
213
- readonly 'repo-explorer': readonly ["getRepository", "listBranches", "getFileContent", "getRepositoryTree", "listPullRequests", "getPullRequest", "listPullRequestFiles", "listPullRequestReviews", "getPullRequestContext", "listIssues", "getIssue", "getIssueContext", "listDiscussions", "getDiscussion", "listLabels", "listCommits", "getCommit", "getBlame", "compareCommits", "searchCode", "searchRepositories", "searchIssues", "listGists", "getGist", "listGistComments", "listWorkflows", "listWorkflowRuns", "getWorkflowRun", "listWorkflowJobs", "listCheckRuns", "getCombinedStatus", "getCiFailureContext", "listReleases", "getLatestRelease", "getRelease", "getReleaseContext"];
223
+ readonly 'repo-explorer': readonly ["getRepository", "listBranches", "getFileContent", "getRepositoryTree", "listPullRequests", "getPullRequest", "listPullRequestFiles", "listPullRequestReviews", "getPullRequestContext", "listIssues", "getIssue", "getIssueContext", "listIssueComments", "listDiscussions", "getDiscussion", "listLabels", "listCommits", "getCommit", "getBlame", "compareCommits", "searchCode", "searchRepositories", "searchIssues", "listGists", "getGist", "listGistComments", "listWorkflows", "listWorkflowRuns", "getWorkflowRun", "listWorkflowJobs", "listCheckRuns", "getCombinedStatus", "getCiFailureContext", "listReleases", "getLatestRelease", "getRelease", "getReleaseContext"];
214
224
  /**
215
225
  * **Security audit** — review repositories for security risks and report findings.
216
226
  *
@@ -270,7 +280,7 @@ declare const PRESET_TOOLS: {
270
280
  *
271
281
  * Agent prompt: optimized for day-to-day repo maintenance with careful write operations.
272
282
  */
273
- readonly maintainer: readonly ["getRepository", "listBranches", "getFileContent", "getRepositoryTree", "createBranch", "forkRepository", "createRepository", "createOrUpdateFile", "listPullRequests", "getPullRequest", "listPullRequestFiles", "listPullRequestReviews", "getPullRequestContext", "createPullRequest", "mergePullRequest", "updatePullRequest", "addPullRequestComment", "updatePullRequestComment", "deletePullRequestComment", "createPullRequestReview", "requestReviewers", "listIssues", "getIssue", "getIssueContext", "createIssue", "addIssueComment", "updateIssueComment", "deleteIssueComment", "closeIssue", "updateIssue", "listLabels", "addLabels", "removeLabel", "addAssignees", "removeAssignees", "listIssueReactions", "addIssueReaction", "listCommentReactions", "addCommentReaction", "listDiscussions", "getDiscussion", "addDiscussionComment", "listNotifications", "markNotificationRead", "listCommits", "getCommit", "getBlame", "compareCommits", "searchCode", "searchRepositories", "searchIssues", "listGists", "getGist", "listGistComments", "createGist", "updateGist", "deleteGist", "createGistComment", "listWorkflows", "listWorkflowRuns", "getWorkflowRun", "listWorkflowJobs", "triggerWorkflow", "cancelWorkflowRun", "rerunWorkflowRun", "listCheckRuns", "getCombinedStatus", "getCiFailureContext", "listReleases", "getLatestRelease", "getRelease", "getReleaseContext", "createRelease", "updateRelease", "deleteRelease"];
283
+ readonly maintainer: readonly ["getRepository", "listBranches", "getFileContent", "getRepositoryTree", "createBranch", "forkRepository", "createRepository", "createOrUpdateFile", "listPullRequests", "getPullRequest", "listPullRequestFiles", "listPullRequestReviews", "getPullRequestContext", "createPullRequest", "mergePullRequest", "updatePullRequest", "addPullRequestComment", "updatePullRequestComment", "deletePullRequestComment", "createPullRequestReview", "requestReviewers", "listIssues", "getIssue", "getIssueContext", "listIssueComments", "createIssue", "addIssueComment", "updateIssueComment", "deleteIssueComment", "closeIssue", "updateIssue", "listLabels", "addLabels", "removeLabel", "createLabel", "updateLabel", "deleteLabel", "addAssignees", "removeAssignees", "listIssueReactions", "addIssueReaction", "listCommentReactions", "addCommentReaction", "listDiscussions", "getDiscussion", "addDiscussionComment", "listNotifications", "markNotificationRead", "listCommits", "getCommit", "getBlame", "compareCommits", "searchCode", "searchRepositories", "searchIssues", "listGists", "getGist", "listGistComments", "createGist", "updateGist", "deleteGist", "createGistComment", "listWorkflows", "listWorkflowRuns", "getWorkflowRun", "listWorkflowJobs", "triggerWorkflow", "cancelWorkflowRun", "rerunWorkflowRun", "listCheckRuns", "getCombinedStatus", "getCiFailureContext", "listReleases", "getLatestRelease", "getRelease", "getReleaseContext", "createRelease", "updateRelease", "deleteRelease"];
274
284
  };
275
285
  type GithubToolPreset = keyof typeof PRESET_TOOLS;
276
286
  /** Tool names included in a single preset. */
@@ -324,6 +334,12 @@ declare const GITHUB_WRITE_TOOLS: {
324
334
  readonly addLabels: "addLabels";
325
335
  /** Remove a label from an issue or pull request. Requires approval by default. */
326
336
  readonly removeLabel: "removeLabel";
337
+ /** Create a label in a GitHub repository. Requires approval by default. */
338
+ readonly createLabel: "createLabel";
339
+ /** Update a label in a GitHub repository. Requires approval by default. */
340
+ readonly updateLabel: "updateLabel";
341
+ /** Delete a label from a GitHub repository permanently. Requires approval by default. */
342
+ readonly deleteLabel: "deleteLabel";
327
343
  /** Assign users to an issue or pull request. Requires approval by default. */
328
344
  readonly addAssignees: "addAssignees";
329
345
  /** Remove assignees from an issue or pull request. Requires approval by default. */
@@ -546,6 +562,8 @@ declare const requestReviewers: (token: GithubTokenInput, { needsApproval }?: To
546
562
  declare const listIssues: (token: GithubTokenInput) => GithubTool;
547
563
  /** Get detailed information about a specific issue. */
548
564
  declare const getIssue: (token: GithubTokenInput) => GithubTool;
565
+ /** List comments on a GitHub issue. Prefer getIssueContext for the first page when triaging. */
566
+ declare const listIssueComments: (token: GithubTokenInput) => GithubTool;
549
567
  /** Create a new issue in a GitHub repository. Requires approval by default. */
550
568
  declare const createIssue: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
551
569
  /** Add a comment to a GitHub issue. Requires approval by default. */
@@ -564,6 +582,12 @@ declare const listLabels: (token: GithubTokenInput) => GithubTool;
564
582
  declare const addLabels: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
565
583
  /** Remove a label from an issue or pull request. Requires approval by default. */
566
584
  declare const removeLabel: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
585
+ /** Create a label in a GitHub repository. Requires approval by default. */
586
+ declare const createLabel: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
587
+ /** Update a label in a GitHub repository. Requires approval by default. */
588
+ declare const updateLabel: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
589
+ /** Delete a label from a GitHub repository permanently. Requires approval by default. */
590
+ declare const deleteLabel: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
567
591
  /** Assign users to an issue or pull request. Requires approval by default. */
568
592
  declare const addAssignees: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
569
593
  /** Remove assignees from an issue or pull request. Requires approval by default. */
@@ -742,5 +766,5 @@ declare function createGithubTools<P extends readonly GithubToolPreset[]>(option
742
766
  declare function createGithubTools(options?: GithubToolsOptions): AllGithubTools | Pick<AllGithubTools, GithubToolName>;
743
767
  type GithubTools = AllGithubTools & ToolSet;
744
768
  //#endregion
745
- export { deleteIssueComment as $, listGists as A, GithubToolsForPreset as At, markNotificationRead as B, ToolOverrides as Bt, rerunWorkflowRun as C, getFileContent as Ct, deleteGist as D, createOctokit as Dt, createGistComment as E, listBranches as Et, listCommits as F, CommitIdentity as Ft, addIssueReaction as G, GithubToolPreset as Gt, getDiscussion as H, GITHUB_WRITE_TOOLS as Ht, searchCode as I, CommitToolOptions as It, addAssignees as J, GITHUB_TOOL_NAMES as Jt, listCommentReactions as K, PRESET_TOOLS as Kt, searchIssues as L, GithubTool as Lt, compareCommits as M, GithubTokenInput as Mt, getBlame as N, resolveGithubToken as Nt, getGist as O, AllGithubTools as Ot, getCommit as P, GithubToolsContext as Pt, createIssue as Q, searchRepositories as R, Octokit$1 as Rt, listWorkflows as S, forkRepository as St, createGist as T, getRepositoryTree as Tt, listDiscussions as U, GithubWriteToolName as Ut, addDiscussionComment as V, ApprovalConfig as Vt, addCommentReaction as W, CombinedPresetToolNames as Wt, addLabels as X, addIssueComment as Y, GithubToolName as Yt, closeIssue as Z, listCheckRuns as _, updatePullRequest as _t, createGithubAgent as a, updateIssue as at, listWorkflowJobs as b, createOrUpdateFile as bt, getPullRequestContext as c, createPullRequest as ct, deleteRelease as d, getPullRequest as dt, getIssue as et, getLatestRelease as f, listPullRequestFiles as ft, getCombinedStatus as g, requestReviewers as gt, updateRelease as h, mergePullRequest as ht, CreateGithubAgentOptions as i, removeLabel as it, updateGist as j, PickGithubTools as jt, listGistComments as k, GithubToolsBaseOptions as kt, getReleaseContext as l, createPullRequestReview as lt, listReleases as m, listPullRequests as mt, GithubToolsOptions as n, listLabels as nt, getCiFailureContext as o, updateIssueComment as ot, getRelease as p, listPullRequestReviews as pt, listIssueReactions as q, PresetToolName as qt, createGithubTools as r, removeAssignees as rt, getIssueContext as s, addPullRequestComment as st, GithubTools as t, listIssues as tt, createRelease as u, deletePullRequestComment as ut, cancelWorkflowRun as v, updatePullRequestComment as vt, triggerWorkflow as w, getRepository as wt, listWorkflowRuns as x, createRepository as xt, getWorkflowRun as y, createBranch as yt, listNotifications as z, ToolOptions as zt };
746
- //# sourceMappingURL=index-B0nL0C00.d.mts.map
769
+ export { createLabel as $, GithubToolName as $t, listGists as A, listBranches as At, markNotificationRead as B, CommitToolOptions as Bt, rerunWorkflowRun as C, createBranch as Ct, deleteGist as D, getFileContent as Dt, createGistComment as E, forkRepository as Et, listCommits as F, PickGithubTools as Ft, addIssueReaction as G, ApprovalConfig as Gt, getDiscussion as H, Octokit$1 as Ht, searchCode as I, GithubTokenInput as It, addAssignees as J, CombinedPresetToolNames as Jt, listCommentReactions as K, GITHUB_WRITE_TOOLS as Kt, searchIssues as L, resolveGithubToken as Lt, compareCommits as M, AllGithubTools as Mt, getBlame as N, GithubToolsBaseOptions as Nt, getGist as O, getRepository as Ot, getCommit as P, GithubToolsForPreset as Pt, createIssue as Q, GITHUB_TOOL_NAMES as Qt, searchRepositories as R, GithubToolsContext as Rt, listWorkflows as S, updatePullRequestComment as St, createGist as T, createRepository as Tt, listDiscussions as U, ToolOptions as Ut, addDiscussionComment as V, GithubTool as Vt, addCommentReaction as W, ToolOverrides as Wt, addLabels as X, PRESET_TOOLS as Xt, addIssueComment as Y, GithubToolPreset as Yt, closeIssue as Z, PresetToolName as Zt, listCheckRuns as _, listPullRequestReviews as _t, createGithubAgent as a, listLabels as at, listWorkflowJobs as b, requestReviewers as bt, getPullRequestContext as c, updateIssue as ct, deleteRelease as d, addPullRequestComment as dt, deleteIssueComment as et, getLatestRelease as f, createPullRequest as ft, getCombinedStatus as g, listPullRequestFiles as gt, updateRelease as h, getPullRequest as ht, CreateGithubAgentOptions as i, listIssues as it, updateGist as j, createOctokit as jt, listGistComments as k, getRepositoryTree as kt, getReleaseContext as l, updateIssueComment as lt, listReleases as m, deletePullRequestComment as mt, GithubToolsOptions as n, getIssue as nt, getCiFailureContext as o, removeAssignees as ot, getRelease as p, createPullRequestReview as pt, listIssueReactions as q, GithubWriteToolName as qt, createGithubTools as r, listIssueComments as rt, getIssueContext as s, removeLabel as st, GithubTools as t, deleteLabel as tt, createRelease as u, updateLabel as ut, cancelWorkflowRun as v, listPullRequests as vt, triggerWorkflow as w, createOrUpdateFile as wt, listWorkflowRuns as x, updatePullRequest as xt, getWorkflowRun as y, mergePullRequest as yt, listNotifications as z, CommitIdentity as zt };
770
+ //# sourceMappingURL=index-BNeMjmgp.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-BNeMjmgp.d.mts","names":[],"sources":["../src/core/tool-names.ts","../src/core/presets.ts","../src/core/write-tools.ts","../src/core/approval.ts","../src/types.ts","../src/core/context.ts","../src/core/token.ts","../src/core/tool-types.ts","../src/client.ts","../src/tools/repository.ts","../src/tools/pull-requests.ts","../src/tools/issues.ts","../src/tools/reactions.ts","../src/tools/discussions.ts","../src/tools/notifications.ts","../src/tools/search.ts","../src/tools/commits.ts","../src/tools/gists.ts","../src/tools/workflows.ts","../src/tools/checks.ts","../src/tools/releases.ts","../src/tools/bundles.ts","../src/agents.ts","../src/index.ts"],"mappings":";;;;;;;;cAIa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiKD,wBAAwB,+BAA+B;;;;;;;;cC9JtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA2KD,gCAAgC;;KAGhC,eAAe,UAAU,oBAAoB,gBAAgB,cA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;cAa1C,mBAAoB,OAAO,qBAAmB;;cAa9C,aAAc,OAAO,qBAAmB;;cAaxC,gBAAiB,OAAO,oBAAkB,kBAA0B,gBAAmB;;cAcvF,gBAAiB,OAAO,oBAAkB,kBAA0B,gBAAmB;;cAcvF,gBAAiB,OAAO,oBAAkB,kBAA0B,gBAAmB;;;;cCxEvF,wBAAyB,OAAO,qBAAmB;;cAcnD,kBAAmB,OAAO,qBAAmB;;cAa7C,oBAAqB,OAAO,qBAAmB;;cAa/C,sBAAuB,OAAO,qBAAmB;;;KCyFzD,eAAe,KAAK,sBAAsB;KAEnC,2BAA2B,eAAe;EACpD,OAAO,sBAAsB;;;;;;;;;EAS7B,SAAS,mBAAmB;;;;;;EAM5B;;;;;EAKA;;iBAGc,kBAAkB,SAAS;EAA6B;IAAuB,qBAAqB;iBACpG,kBAAkB,UAAU,kBAC1C,SAAS;EAA6B,QAAQ;IAC7C,qBAAqB,KAAK,gBAAgB,eAAe;iBAC5C,kBAAkB,mBAAmB,oBACnD,SAAS;EAA6B,QAAQ;IAC7C,qBAAqB,KAAK,gBAAgB,wBAAwB;;;KC1JzD,qBAAqB;;;;;;;;;;;;;;;;;;;EAmB/B,SAAS,mBAAmB;;iBAGd,kBAAkB,UAAU;EAA2B;IAAuB;iBAC9E,kBAAkB,UAAU,kBAC1C,SAAS;EAA2B,QAAQ;IAC3C,KAAK,gBAAgB,eAAe;iBACvB,kBAAkB,mBAAmB,oBACnD,SAAS;EAA2B,QAAQ;IAC3C,KAAK,gBAAgB,wBAAwB;iBAChC,kBAAkB,UAAU,qBAAqB,iBAAiB,KAAK,gBAAgB;KAyJ3F,cAAc,iBAAiB"}
package/dist/index.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as deleteIssueComment, A as listGists, At as GithubToolsForPreset, B as markNotificationRead, Bt as ToolOverrides, C as rerunWorkflowRun, Ct as getFileContent, D as deleteGist, Dt as createOctokit, E as createGistComment, Et as listBranches, F as listCommits, Ft as CommitIdentity, G as addIssueReaction, Gt as GithubToolPreset, H as getDiscussion, Ht as GITHUB_WRITE_TOOLS, I as searchCode, It as CommitToolOptions, J as addAssignees, Jt as GITHUB_TOOL_NAMES, K as listCommentReactions, Kt as PRESET_TOOLS, L as searchIssues, Lt as GithubTool, M as compareCommits, Mt as GithubTokenInput, N as getBlame, Nt as resolveGithubToken, O as getGist, Ot as AllGithubTools, P as getCommit, Pt as GithubToolsContext, Q as createIssue, R as searchRepositories, Rt as Octokit, S as listWorkflows, St as forkRepository, T as createGist, Tt as getRepositoryTree, U as listDiscussions, Ut as GithubWriteToolName, V as addDiscussionComment, Vt as ApprovalConfig, W as addCommentReaction, Wt as CombinedPresetToolNames, X as addLabels, Y as addIssueComment, Yt as GithubToolName, Z as closeIssue, _ as listCheckRuns, _t as updatePullRequest, a as createGithubAgent, at as updateIssue, b as listWorkflowJobs, bt as createOrUpdateFile, c as getPullRequestContext, ct as createPullRequest, d as deleteRelease, dt as getPullRequest, et as getIssue, f as getLatestRelease, ft as listPullRequestFiles, g as getCombinedStatus, gt as requestReviewers, h as updateRelease, ht as mergePullRequest, i as CreateGithubAgentOptions, it as removeLabel, j as updateGist, jt as PickGithubTools, k as listGistComments, l as getReleaseContext, lt as createPullRequestReview, m as listReleases, mt as listPullRequests, n as GithubToolsOptions, nt as listLabels, o as getCiFailureContext, ot as updateIssueComment, p as getRelease, pt as listPullRequestReviews, q as listIssueReactions, qt as PresetToolName, r as createGithubTools, rt as removeAssignees, s as getIssueContext, st as addPullRequestComment, t as GithubTools, tt as listIssues, u as createRelease, ut as deletePullRequestComment, v as cancelWorkflowRun, vt as updatePullRequestComment, w as triggerWorkflow, wt as getRepository, x as listWorkflowRuns, xt as createRepository, y as getWorkflowRun, yt as createBranch, z as listNotifications, zt as ToolOptions } from "./index-B0nL0C00.mjs";
2
- export { type AllGithubTools, type ApprovalConfig, type CombinedPresetToolNames, type CommitIdentity, type CommitToolOptions, type CreateGithubAgentOptions, GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, type GithubTokenInput, type GithubTool, type GithubToolName, type GithubToolPreset, GithubTools, type GithubToolsContext, type GithubToolsForPreset, GithubToolsOptions, type GithubWriteToolName, type Octokit, PRESET_TOOLS, type PickGithubTools, type PresetToolName, type ToolOptions, type ToolOverrides, addAssignees, addCommentReaction, addDiscussionComment, addIssueComment, addIssueReaction, addLabels, addPullRequestComment, cancelWorkflowRun, closeIssue, compareCommits, createBranch, createGist, createGistComment, createGithubAgent, createGithubTools, createIssue, createOctokit, createOrUpdateFile, createPullRequest, createPullRequestReview, createRelease, createRepository, deleteGist, deleteIssueComment, deletePullRequestComment, deleteRelease, forkRepository, getBlame, getCiFailureContext, getCombinedStatus, getCommit, getDiscussion, getFileContent, getGist, getIssue, getIssueContext, getLatestRelease, getPullRequest, getPullRequestContext, getRelease, getReleaseContext, getRepository, getRepositoryTree, getWorkflowRun, listBranches, listCheckRuns, listCommentReactions, listCommits, listDiscussions, listGistComments, listGists, listIssueReactions, listIssues, listLabels, listNotifications, listPullRequestFiles, listPullRequestReviews, listPullRequests, listReleases, listWorkflowJobs, listWorkflowRuns, listWorkflows, markNotificationRead, mergePullRequest, removeAssignees, removeLabel, requestReviewers, rerunWorkflowRun, resolveGithubToken, searchCode, searchIssues, searchRepositories, triggerWorkflow, updateGist, updateIssue, updateIssueComment, updatePullRequest, updatePullRequestComment, updateRelease };
1
+ import { $ as createLabel, $t as GithubToolName, A as listGists, At as listBranches, B as markNotificationRead, Bt as CommitToolOptions, C as rerunWorkflowRun, Ct as createBranch, D as deleteGist, Dt as getFileContent, E as createGistComment, Et as forkRepository, F as listCommits, Ft as PickGithubTools, G as addIssueReaction, Gt as ApprovalConfig, H as getDiscussion, Ht as Octokit, I as searchCode, It as GithubTokenInput, J as addAssignees, Jt as CombinedPresetToolNames, K as listCommentReactions, Kt as GITHUB_WRITE_TOOLS, L as searchIssues, Lt as resolveGithubToken, M as compareCommits, Mt as AllGithubTools, N as getBlame, O as getGist, Ot as getRepository, P as getCommit, Pt as GithubToolsForPreset, Q as createIssue, Qt as GITHUB_TOOL_NAMES, R as searchRepositories, Rt as GithubToolsContext, S as listWorkflows, St as updatePullRequestComment, T as createGist, Tt as createRepository, U as listDiscussions, Ut as ToolOptions, V as addDiscussionComment, Vt as GithubTool, W as addCommentReaction, Wt as ToolOverrides, X as addLabels, Xt as PRESET_TOOLS, Y as addIssueComment, Yt as GithubToolPreset, Z as closeIssue, Zt as PresetToolName, _ as listCheckRuns, _t as listPullRequestReviews, a as createGithubAgent, at as listLabels, b as listWorkflowJobs, bt as requestReviewers, c as getPullRequestContext, ct as updateIssue, d as deleteRelease, dt as addPullRequestComment, et as deleteIssueComment, f as getLatestRelease, ft as createPullRequest, g as getCombinedStatus, gt as listPullRequestFiles, h as updateRelease, ht as getPullRequest, i as CreateGithubAgentOptions, it as listIssues, j as updateGist, jt as createOctokit, k as listGistComments, kt as getRepositoryTree, l as getReleaseContext, lt as updateIssueComment, m as listReleases, mt as deletePullRequestComment, n as GithubToolsOptions, nt as getIssue, o as getCiFailureContext, ot as removeAssignees, p as getRelease, pt as createPullRequestReview, q as listIssueReactions, qt as GithubWriteToolName, r as createGithubTools, rt as listIssueComments, s as getIssueContext, st as removeLabel, t as GithubTools, tt as deleteLabel, u as createRelease, ut as updateLabel, v as cancelWorkflowRun, vt as listPullRequests, w as triggerWorkflow, wt as createOrUpdateFile, x as listWorkflowRuns, xt as updatePullRequest, y as getWorkflowRun, yt as mergePullRequest, z as listNotifications, zt as CommitIdentity } from "./index-BNeMjmgp.mjs";
2
+ export { type AllGithubTools, type ApprovalConfig, type CombinedPresetToolNames, type CommitIdentity, type CommitToolOptions, type CreateGithubAgentOptions, GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, type GithubTokenInput, type GithubTool, type GithubToolName, type GithubToolPreset, GithubTools, type GithubToolsContext, type GithubToolsForPreset, GithubToolsOptions, type GithubWriteToolName, type Octokit, PRESET_TOOLS, type PickGithubTools, type PresetToolName, type ToolOptions, type ToolOverrides, addAssignees, addCommentReaction, addDiscussionComment, addIssueComment, addIssueReaction, addLabels, addPullRequestComment, cancelWorkflowRun, closeIssue, compareCommits, createBranch, createGist, createGistComment, createGithubAgent, createGithubTools, createIssue, createLabel, createOctokit, createOrUpdateFile, createPullRequest, createPullRequestReview, createRelease, createRepository, deleteGist, deleteIssueComment, deleteLabel, deletePullRequestComment, deleteRelease, forkRepository, getBlame, getCiFailureContext, getCombinedStatus, getCommit, getDiscussion, getFileContent, getGist, getIssue, getIssueContext, getLatestRelease, getPullRequest, getPullRequestContext, getRelease, getReleaseContext, getRepository, getRepositoryTree, getWorkflowRun, listBranches, listCheckRuns, listCommentReactions, listCommits, listDiscussions, listGistComments, listGists, listIssueComments, listIssueReactions, listIssues, listLabels, listNotifications, listPullRequestFiles, listPullRequestReviews, listPullRequests, listReleases, listWorkflowJobs, listWorkflowRuns, listWorkflows, markNotificationRead, mergePullRequest, removeAssignees, removeLabel, requestReviewers, rerunWorkflowRun, resolveGithubToken, searchCode, searchIssues, searchRepositories, triggerWorkflow, updateGist, updateIssue, updateIssueComment, updateLabel, updatePullRequest, updatePullRequestComment, updateRelease };
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { Ei as createOctokit, Xr as resolveGithubToken, i as PRESET_TOOLS, r as GITHUB_TOOL_NAMES, t as GITHUB_WRITE_TOOLS } from "./write-tools-uIVfURVp.mjs";
2
- import { $ as listIssues, A as compareCommits, B as getDiscussion, C as createGist, Ct as getRepositoryTree, D as listGistComments, E as getGist, F as searchIssues, G as listIssueReactions, H as addCommentReaction, I as searchRepositories, J as addLabels, K as addAssignees, L as listNotifications, M as getCommit, N as listCommits, O as listGists, P as searchCode, Q as getIssue, R as markNotificationRead, S as triggerWorkflow, St as getRepository, T as deleteGist, U as addIssueReaction, V as listDiscussions, W as listCommentReactions, X as createIssue, Y as closeIssue, Z as deleteIssueComment, _ as getWorkflowRun, _t as createBranch, a as getIssueContext, at as addPullRequestComment, b as listWorkflows, bt as forkRepository, c as createRelease, ct as deletePullRequestComment, d as getRelease, dt as listPullRequestReviews, et as listLabels, f as listReleases, ft as listPullRequests, g as cancelWorkflowRun, gt as updatePullRequestComment, h as listCheckRuns, ht as updatePullRequest, i as getCiFailureContext, it as updateIssueComment, j as getBlame, k as updateGist, l as deleteRelease, lt as getPullRequest, m as getCombinedStatus, mt as requestReviewers, n as createGithubAgent, nt as removeLabel, o as getPullRequestContext, ot as createPullRequest, p as updateRelease, pt as mergePullRequest, q as addIssueComment, rt as updateIssue, s as getReleaseContext, st as createPullRequestReview, t as createGithubTools, tt as removeAssignees, u as getLatestRelease, ut as listPullRequestFiles, v as listWorkflowJobs, vt as createOrUpdateFile, w as createGistComment, wt as listBranches, x as rerunWorkflowRun, xt as getFileContent, y as listWorkflowRuns, yt as createRepository, z as addDiscussionComment } from "./src-v-LjzPpR.mjs";
3
- export { GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, PRESET_TOOLS, addAssignees, addCommentReaction, addDiscussionComment, addIssueComment, addIssueReaction, addLabels, addPullRequestComment, cancelWorkflowRun, closeIssue, compareCommits, createBranch, createGist, createGistComment, createGithubAgent, createGithubTools, createIssue, createOctokit, createOrUpdateFile, createPullRequest, createPullRequestReview, createRelease, createRepository, deleteGist, deleteIssueComment, deletePullRequestComment, deleteRelease, forkRepository, getBlame, getCiFailureContext, getCombinedStatus, getCommit, getDiscussion, getFileContent, getGist, getIssue, getIssueContext, getLatestRelease, getPullRequest, getPullRequestContext, getRelease, getReleaseContext, getRepository, getRepositoryTree, getWorkflowRun, listBranches, listCheckRuns, listCommentReactions, listCommits, listDiscussions, listGistComments, listGists, listIssueReactions, listIssues, listLabels, listNotifications, listPullRequestFiles, listPullRequestReviews, listPullRequests, listReleases, listWorkflowJobs, listWorkflowRuns, listWorkflows, markNotificationRead, mergePullRequest, removeAssignees, removeLabel, requestReviewers, rerunWorkflowRun, resolveGithubToken, searchCode, searchIssues, searchRepositories, triggerWorkflow, updateGist, updateIssue, updateIssueComment, updatePullRequest, updatePullRequestComment, updateRelease };
1
+ import { Ri as createOctokit, ci as resolveGithubToken, i as PRESET_TOOLS, r as GITHUB_TOOL_NAMES, t as GITHUB_WRITE_TOOLS } from "./write-tools-Dk32V9Hl.mjs";
2
+ import { $ as deleteLabel, A as compareCommits, B as getDiscussion, C as createGist, Ct as createRepository, D as listGistComments, Dt as getRepositoryTree, E as getGist, Et as getRepository, F as searchIssues, G as listIssueReactions, H as addCommentReaction, I as searchRepositories, J as addLabels, K as addAssignees, L as listNotifications, M as getCommit, N as listCommits, O as listGists, Ot as listBranches, P as searchCode, Q as deleteIssueComment, R as markNotificationRead, S as triggerWorkflow, St as createOrUpdateFile, T as deleteGist, Tt as getFileContent, U as addIssueReaction, V as listDiscussions, W as listCommentReactions, X as createIssue, Y as closeIssue, Z as createLabel, _ as getWorkflowRun, _t as mergePullRequest, a as getIssueContext, at as removeLabel, b as listWorkflows, bt as updatePullRequestComment, c as createRelease, ct as updateLabel, d as getRelease, dt as createPullRequestReview, et as getIssue, f as listReleases, ft as deletePullRequestComment, g as cancelWorkflowRun, gt as listPullRequests, h as listCheckRuns, ht as listPullRequestReviews, i as getCiFailureContext, it as removeAssignees, j as getBlame, k as updateGist, l as deleteRelease, lt as addPullRequestComment, m as getCombinedStatus, mt as listPullRequestFiles, n as createGithubAgent, nt as listIssues, o as getPullRequestContext, ot as updateIssue, p as updateRelease, pt as getPullRequest, q as addIssueComment, rt as listLabels, s as getReleaseContext, st as updateIssueComment, t as createGithubTools, tt as listIssueComments, u as getLatestRelease, ut as createPullRequest, v as listWorkflowJobs, vt as requestReviewers, w as createGistComment, wt as forkRepository, x as rerunWorkflowRun, xt as createBranch, y as listWorkflowRuns, yt as updatePullRequest, z as addDiscussionComment } from "./src-jQWS2Txw.mjs";
3
+ export { GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, PRESET_TOOLS, addAssignees, addCommentReaction, addDiscussionComment, addIssueComment, addIssueReaction, addLabels, addPullRequestComment, cancelWorkflowRun, closeIssue, compareCommits, createBranch, createGist, createGistComment, createGithubAgent, createGithubTools, createIssue, createLabel, createOctokit, createOrUpdateFile, createPullRequest, createPullRequestReview, createRelease, createRepository, deleteGist, deleteIssueComment, deleteLabel, deletePullRequestComment, deleteRelease, forkRepository, getBlame, getCiFailureContext, getCombinedStatus, getCommit, getDiscussion, getFileContent, getGist, getIssue, getIssueContext, getLatestRelease, getPullRequest, getPullRequestContext, getRelease, getReleaseContext, getRepository, getRepositoryTree, getWorkflowRun, listBranches, listCheckRuns, listCommentReactions, listCommits, listDiscussions, listGistComments, listGists, listIssueComments, listIssueReactions, listIssues, listLabels, listNotifications, listPullRequestFiles, listPullRequestReviews, listPullRequests, listReleases, listWorkflowJobs, listWorkflowRuns, listWorkflows, markNotificationRead, mergePullRequest, removeAssignees, removeLabel, requestReviewers, rerunWorkflowRun, resolveGithubToken, searchCode, searchIssues, searchRepositories, triggerWorkflow, updateGist, updateIssue, updateIssueComment, updateLabel, updatePullRequest, updatePullRequestComment, updateRelease };
@@ -1,4 +1,4 @@
1
- import { $ as listWorkflowJobsDescription, $n as listLabelsDescription, $r as getFileContentToModelOutput, $t as searchRepositoriesDescription, A as getLatestReleaseInputSchema, An as addAssigneesInputSchema, Ar as listPullRequestFilesInputSchema, At as listGistsInputSchema, B as getCombinedStatusCore, Bn as createIssueCore, Br as requestReviewersCore, Bt as getCommitCore, C as createReleaseDescription, Ci as listBranchesCore, Cn as listCommentReactionsDescription, Cr as deletePullRequestCommentDescription, Ct as getGistDescription, D as deleteReleaseInputSchema, Dn as listIssueReactionsInputSchema, Dr as getPullRequestInputSchema, Dt as listGistCommentsInputSchema, E as deleteReleaseDescription, En as listIssueReactionsDescription, Er as getPullRequestDescription, Et as listGistCommentsDescription, F as listReleasesDescription, Fn as addLabelsDescription, Fr as listPullRequestsDescription, Ft as compareCommitsDescription, G as listCheckRunsInputSchema, Gn as deleteIssueCommentInputSchema, Gr as updatePullRequestCommentInputSchema, Gt as listCommitsInputSchema, H as getCombinedStatusInputSchema, Hn as createIssueInputSchema, Hr as requestReviewersInputSchema, Ht as getCommitInputSchema, I as listReleasesInputSchema, In as addLabelsInputSchema, Ir as listPullRequestsInputSchema, It as compareCommitsInputSchema, J as cancelWorkflowRunInputSchema, Jn as getIssueInputSchema, Jr as updatePullRequestInputSchema, Jt as searchCodeInputSchema, K as cancelWorkflowRunCore, Kn as getIssueCore, Kr as updatePullRequestCore, Kt as searchCodeCore, L as updateReleaseCore, Ln as closeIssueCore, Lr as mergePullRequestCore, Lt as getBlameCore, M as getReleaseDescription, Mn as addIssueCommentDescription, Mr as listPullRequestReviewsDescription, Mt as updateGistDescription, N as getReleaseInputSchema, Nn as addIssueCommentInputSchema, Nr as listPullRequestReviewsInputSchema, Nt as updateGistInputSchema, O as getLatestReleaseCore, On as addAssigneesCore, Or as listPullRequestFilesCore, Ot as listGistsCore, P as listReleasesCore, Pn as addLabelsCore, Pr as listPullRequestsCore, Pt as compareCommitsCore, Q as listWorkflowJobsCore, Qn as listLabelsCore, Qr as getCommitToModelOutput, Qt as searchRepositoriesCore, R as updateReleaseDescription, Rn as closeIssueDescription, Rr as mergePullRequestDescription, Rt as getBlameDescription, S as createReleaseCore, Si as getRepositoryTreeInputSchema, Sn as listCommentReactionsCore, Sr as deletePullRequestCommentCore, St as getGistCore, T as deleteReleaseCore, Ti as listBranchesInputSchema, Tn as listIssueReactionsCore, Tr as getPullRequestCore, Tt as listGistCommentsCore, U as listCheckRunsCore, Un as deleteIssueCommentCore, Ur as updatePullRequestCommentCore, Ut as listCommitsCore, V as getCombinedStatusDescription, Vn as createIssueDescription, Vr as requestReviewersDescription, Vt as getCommitDescription, W as listCheckRunsDescription, Wn as deleteIssueCommentDescription, Wr as updatePullRequestCommentDescription, Wt as listCommitsDescription, X as getWorkflowRunDescription, Xn as listIssuesDescription, Xr as resolveGithubToken, Xt as searchIssuesDescription, Y as getWorkflowRunCore, Yn as listIssuesCore, Yr as createGithubTokenResolver, Yt as searchIssuesCore, Z as getWorkflowRunInputSchema, Zn as listIssuesInputSchema, Zr as compareCommitsToModelOutput, Zt as searchIssuesInputSchema, _ as getPullRequestContextDescription, _i as getRepositoryCore, _n as addCommentReactionDescription, _r as createPullRequestDescription, _t as createGistDescription, a as resolvePresetTools, ai as createOrUpdateFileCore, an as markNotificationReadDescription, ar as removeLabelDescription, at as listWorkflowsDescription, b as getReleaseContextDescription, bi as getRepositoryTreeCore, bn as addIssueReactionDescription, br as createPullRequestReviewDescription, bt as deleteGistDescription, ci as createRepositoryCore, cn as addDiscussionCommentDescription, cr as updateIssueCommentDescription, ct as rerunWorkflowRunDescription, d as getCiFailureContextDescription, di as forkRepositoryCore, dn as getDiscussionDescription, dr as updateIssueDescription, dt as triggerWorkflowDescription, ei as getPullRequestContextToModelOutput, en as searchRepositoriesInputSchema, er as listLabelsInputSchema, et as listWorkflowJobsInputSchema, f as getCiFailureContextInputSchema, fi as forkRepositoryDescription, fn as getDiscussionInputSchema, fr as updateIssueInputSchema, ft as triggerWorkflowInputSchema, g as getPullRequestContextCore, gi as getFileContentInputSchema, gn as addCommentReactionCore, gr as createPullRequestCore, gt as createGistCore, h as getIssueContextInputSchema, hi as getFileContentDescription, hn as listDiscussionsInputSchema, hr as addPullRequestCommentInputSchema, ht as createGistCommentInputSchema, ii as createBranchInputSchema, in as markNotificationReadCore, ir as removeLabelCore, it as listWorkflowsCore, j as getReleaseCore, jn as addIssueCommentCore, jr as listPullRequestReviewsCore, jt as updateGistCore, k as getLatestReleaseDescription, kn as addAssigneesDescription, kr as listPullRequestFilesDescription, kt as listGistsDescription, li as createRepositoryDescription, ln as addDiscussionCommentInputSchema, lr as updateIssueCommentInputSchema, lt as rerunWorkflowRunInputSchema, m as getIssueContextDescription, mi as getFileContentCore, mn as listDiscussionsDescription, mr as addPullRequestCommentDescription, mt as createGistCommentDescription, ni as createBranchCore, nn as listNotificationsDescription, nr as removeAssigneesDescription, nt as listWorkflowRunsDescription, o as bindToolsContext, oi as createOrUpdateFileDescription, on as markNotificationReadInputSchema, or as removeLabelInputSchema, ot as listWorkflowsInputSchema, p as getIssueContextCore, pi as forkRepositoryInputSchema, pn as listDiscussionsCore, pr as addPullRequestCommentCore, pt as createGistCommentCore, q as cancelWorkflowRunDescription, qn as getIssueDescription, qr as updatePullRequestDescription, qt as searchCodeDescription, ri as createBranchDescription, rn as listNotificationsInputSchema, rr as removeAssigneesInputSchema, rt as listWorkflowRunsInputSchema, s as formatContextInstructions, si as createOrUpdateFileInputSchema, sn as addDiscussionCommentCore, sr as updateIssueCommentCore, st as rerunWorkflowRunCore, ti as listPullRequestFilesToModelOutput, tn as listNotificationsCore, tr as removeAssigneesCore, tt as listWorkflowRunsCore, u as getCiFailureContextCore, ui as createRepositoryInputSchema, un as getDiscussionCore, ur as updateIssueCore, ut as triggerWorkflowCore, v as getPullRequestContextInputSchema, vi as getRepositoryDescription, vn as addCommentReactionInputSchema, vr as createPullRequestInputSchema, vt as createGistInputSchema, w as createReleaseInputSchema, wi as listBranchesDescription, wn as listCommentReactionsInputSchema, wr as deletePullRequestCommentInputSchema, wt as getGistInputSchema, x as getReleaseContextInputSchema, xi as getRepositoryTreeDescription, xn as addIssueReactionInputSchema, xr as createPullRequestReviewInputSchema, xt as deleteGistInputSchema, y as getReleaseContextCore, yi as getRepositoryInputSchema, yn as addIssueReactionCore, yr as createPullRequestReviewCore, yt as deleteGistCore, z as updateReleaseInputSchema, zn as closeIssueInputSchema, zr as mergePullRequestInputSchema, zt as getBlameInputSchema } from "./write-tools-uIVfURVp.mjs";
1
+ import { $ as listWorkflowJobsDescription, $n as getIssueDescription, $r as requestReviewersDescription, $t as searchRepositoriesDescription, A as getLatestReleaseInputSchema, Ai as getRepositoryDescription, An as addAssigneesInputSchema, Ar as createPullRequestInputSchema, At as listGistsInputSchema, B as getCombinedStatusCore, Bn as createIssueCore, Br as listPullRequestFilesCore, Bt as getCommitCore, C as createReleaseDescription, Ci as forkRepositoryCore, Cn as listCommentReactionsDescription, Cr as updateLabelDescription, Ct as getGistDescription, D as deleteReleaseInputSchema, Di as getFileContentDescription, Dn as listIssueReactionsInputSchema, Dr as addPullRequestCommentInputSchema, Dt as listGistCommentsInputSchema, E as deleteReleaseDescription, Ei as getFileContentCore, En as listIssueReactionsDescription, Er as addPullRequestCommentDescription, Et as listGistCommentsDescription, F as listReleasesDescription, Fi as listBranchesCore, Fn as addLabelsDescription, Fr as deletePullRequestCommentDescription, Ft as compareCommitsDescription, G as listCheckRunsInputSchema, Gn as createLabelInputSchema, Gr as listPullRequestReviewsInputSchema, Gt as listCommitsInputSchema, H as getCombinedStatusInputSchema, Hn as createIssueInputSchema, Hr as listPullRequestFilesInputSchema, Ht as getCommitInputSchema, I as listReleasesInputSchema, Ii as listBranchesDescription, In as addLabelsInputSchema, Ir as deletePullRequestCommentInputSchema, It as compareCommitsInputSchema, J as cancelWorkflowRunInputSchema, Jn as deleteIssueCommentInputSchema, Jr as listPullRequestsInputSchema, Jt as searchCodeInputSchema, K as cancelWorkflowRunCore, Kn as deleteIssueCommentCore, Kr as listPullRequestsCore, Kt as searchCodeCore, L as updateReleaseCore, Li as listBranchesInputSchema, Ln as closeIssueCore, Lr as getPullRequestCore, Lt as getBlameCore, M as getReleaseDescription, Mi as getRepositoryTreeCore, Mn as addIssueCommentDescription, Mr as createPullRequestReviewDescription, Mt as updateGistDescription, N as getReleaseInputSchema, Ni as getRepositoryTreeDescription, Nn as addIssueCommentInputSchema, Nr as createPullRequestReviewInputSchema, Nt as updateGistInputSchema, O as getLatestReleaseCore, Oi as getFileContentInputSchema, On as addAssigneesCore, Or as createPullRequestCore, Ot as listGistsCore, P as listReleasesCore, Pi as getRepositoryTreeInputSchema, Pn as addLabelsCore, Pr as deletePullRequestCommentCore, Pt as compareCommitsCore, Q as listWorkflowJobsCore, Qn as getIssueCore, Qr as requestReviewersCore, Qt as searchRepositoriesCore, R as updateReleaseDescription, Rn as closeIssueDescription, Rr as getPullRequestDescription, Rt as getBlameDescription, S as createReleaseCore, Si as createRepositoryInputSchema, Sn as listCommentReactionsCore, Sr as updateLabelCore, St as getGistCore, T as deleteReleaseCore, Ti as forkRepositoryInputSchema, Tn as listIssueReactionsCore, Tr as addPullRequestCommentCore, Tt as listGistCommentsCore, U as listCheckRunsCore, Un as createLabelCore, Ur as listPullRequestReviewsCore, Ut as listCommitsCore, V as getCombinedStatusDescription, Vn as createIssueDescription, Vr as listPullRequestFilesDescription, Vt as getCommitDescription, W as listCheckRunsDescription, Wn as createLabelDescription, Wr as listPullRequestReviewsDescription, Wt as listCommitsDescription, X as getWorkflowRunDescription, Xn as deleteLabelDescription, Xr as mergePullRequestDescription, Xt as searchIssuesDescription, Y as getWorkflowRunCore, Yn as deleteLabelCore, Yr as mergePullRequestCore, Yt as searchIssuesCore, Z as getWorkflowRunInputSchema, Zn as deleteLabelInputSchema, Zr as mergePullRequestInputSchema, Zt as searchIssuesInputSchema, _ as getPullRequestContextDescription, _i as createOrUpdateFileCore, _n as addCommentReactionDescription, _r as updateIssueCommentDescription, _t as createGistDescription, a as resolvePresetTools, ai as updatePullRequestDescription, an as markNotificationReadDescription, ar as listIssuesDescription, at as listWorkflowsDescription, b as getReleaseContextDescription, bi as createRepositoryCore, bn as addIssueReactionDescription, br as updateIssueDescription, bt as deleteGistDescription, ci as resolveGithubToken, cn as addDiscussionCommentDescription, cr as listLabelsDescription, ct as rerunWorkflowRunDescription, d as getCiFailureContextDescription, di as getFileContentToModelOutput, dn as getDiscussionDescription, dr as removeAssigneesDescription, dt as triggerWorkflowDescription, ei as requestReviewersInputSchema, en as searchRepositoriesInputSchema, er as getIssueInputSchema, et as listWorkflowJobsInputSchema, f as getCiFailureContextInputSchema, fi as getPullRequestContextToModelOutput, fn as getDiscussionInputSchema, fr as removeAssigneesInputSchema, ft as triggerWorkflowInputSchema, g as getPullRequestContextCore, gi as createBranchInputSchema, gn as addCommentReactionCore, gr as updateIssueCommentCore, gt as createGistCore, h as getIssueContextInputSchema, hi as createBranchDescription, hn as listDiscussionsInputSchema, hr as removeLabelInputSchema, ht as createGistCommentInputSchema, ii as updatePullRequestCore, in as markNotificationReadCore, ir as listIssuesCore, it as listWorkflowsCore, j as getReleaseCore, ji as getRepositoryInputSchema, jn as addIssueCommentCore, jr as createPullRequestReviewCore, jt as updateGistCore, k as getLatestReleaseDescription, ki as getRepositoryCore, kn as addAssigneesDescription, kr as createPullRequestDescription, kt as listGistsDescription, li as compareCommitsToModelOutput, ln as addDiscussionCommentInputSchema, lr as listLabelsInputSchema, lt as rerunWorkflowRunInputSchema, m as getIssueContextDescription, mi as createBranchCore, mn as listDiscussionsDescription, mr as removeLabelDescription, mt as createGistCommentDescription, ni as updatePullRequestCommentDescription, nn as listNotificationsDescription, nr as listIssueCommentsDescription, nt as listWorkflowRunsDescription, o as bindToolsContext, oi as updatePullRequestInputSchema, on as markNotificationReadInputSchema, or as listIssuesInputSchema, ot as listWorkflowsInputSchema, p as getIssueContextCore, pi as listPullRequestFilesToModelOutput, pn as listDiscussionsCore, pr as removeLabelCore, pt as createGistCommentCore, q as cancelWorkflowRunDescription, qn as deleteIssueCommentDescription, qr as listPullRequestsDescription, qt as searchCodeDescription, ri as updatePullRequestCommentInputSchema, rn as listNotificationsInputSchema, rr as listIssueCommentsInputSchema, rt as listWorkflowRunsInputSchema, s as formatContextInstructions, si as createGithubTokenResolver, sn as addDiscussionCommentCore, sr as listLabelsCore, st as rerunWorkflowRunCore, ti as updatePullRequestCommentCore, tn as listNotificationsCore, tr as listIssueCommentsCore, tt as listWorkflowRunsCore, u as getCiFailureContextCore, ui as getCommitToModelOutput, un as getDiscussionCore, ur as removeAssigneesCore, ut as triggerWorkflowCore, v as getPullRequestContextInputSchema, vi as createOrUpdateFileDescription, vn as addCommentReactionInputSchema, vr as updateIssueCommentInputSchema, vt as createGistInputSchema, w as createReleaseInputSchema, wi as forkRepositoryDescription, wn as listCommentReactionsInputSchema, wr as updateLabelInputSchema, wt as getGistInputSchema, x as getReleaseContextInputSchema, xi as createRepositoryDescription, xn as addIssueReactionInputSchema, xr as updateIssueInputSchema, xt as deleteGistInputSchema, y as getReleaseContextCore, yi as createOrUpdateFileInputSchema, yn as addIssueReactionCore, yr as updateIssueCore, yt as deleteGistCore, z as updateReleaseInputSchema, zn as closeIssueInputSchema, zr as getPullRequestInputSchema, zt as getBlameInputSchema } from "./write-tools-Dk32V9Hl.mjs";
2
2
  import { ToolLoopAgent, tool } from "ai";
3
3
  //#region src/tools/repository.ts
4
4
  async function getRepositoryStep(args) {
@@ -309,6 +309,19 @@ const getIssue = (token) => tool({
309
309
  ...args
310
310
  })
311
311
  });
312
+ async function listIssueCommentsStep(args) {
313
+ "use step";
314
+ return listIssueCommentsCore(args);
315
+ }
316
+ /** List comments on a GitHub issue. Prefer getIssueContext for the first page when triaging. */
317
+ const listIssueComments = (token) => tool({
318
+ description: listIssueCommentsDescription,
319
+ inputSchema: listIssueCommentsInputSchema,
320
+ execute: async (args) => listIssueCommentsStep({
321
+ token: await resolveGithubToken(token),
322
+ ...args
323
+ })
324
+ });
312
325
  async function createIssueStep(args) {
313
326
  "use step";
314
327
  return createIssueCore(args);
@@ -434,6 +447,48 @@ const removeLabel = (token, { needsApproval = true } = {}) => tool({
434
447
  ...args
435
448
  })
436
449
  });
450
+ async function createLabelStep(args) {
451
+ "use step";
452
+ return createLabelCore(args);
453
+ }
454
+ /** Create a label in a GitHub repository. Requires approval by default. */
455
+ const createLabel = (token, { needsApproval = true } = {}) => tool({
456
+ description: createLabelDescription,
457
+ needsApproval,
458
+ inputSchema: createLabelInputSchema,
459
+ execute: async (args) => createLabelStep({
460
+ token: await resolveGithubToken(token),
461
+ ...args
462
+ })
463
+ });
464
+ async function updateLabelStep(args) {
465
+ "use step";
466
+ return updateLabelCore(args);
467
+ }
468
+ /** Update a label in a GitHub repository. Requires approval by default. */
469
+ const updateLabel = (token, { needsApproval = true } = {}) => tool({
470
+ description: updateLabelDescription,
471
+ needsApproval,
472
+ inputSchema: updateLabelInputSchema,
473
+ execute: async (args) => updateLabelStep({
474
+ token: await resolveGithubToken(token),
475
+ ...args
476
+ })
477
+ });
478
+ async function deleteLabelStep(args) {
479
+ "use step";
480
+ return deleteLabelCore(args);
481
+ }
482
+ /** Delete a label from a GitHub repository permanently. Requires approval by default. */
483
+ const deleteLabel = (token, { needsApproval = true } = {}) => tool({
484
+ description: deleteLabelDescription,
485
+ needsApproval,
486
+ inputSchema: deleteLabelInputSchema,
487
+ execute: async (args) => deleteLabelStep({
488
+ token: await resolveGithubToken(token),
489
+ ...args
490
+ })
491
+ });
437
492
  async function addAssigneesStep(args) {
438
493
  "use step";
439
494
  return addAssigneesCore(args);
@@ -1085,7 +1140,8 @@ ${SHARED_RULES}`,
1085
1140
  When triaging issues:
1086
1141
  - Call getIssueContext exactly once (full body + labelNames + recent comments). In that same step, call listIssues or searchIssues if you need duplicate checks
1087
1142
  - Never re-call getIssueContext for the same issue
1088
- - Pick labels from labelNames; use addLabels / removeLabel to apply them
1143
+ - Use listIssueComments to paginate beyond the comments returned by getIssueContext
1144
+ - Pick labels from labelNames; use addLabels / removeLabel to apply them. Use createLabel / updateLabel / deleteLabel when the repository taxonomy itself needs changing
1089
1145
  - Create issues with clear titles and descriptions when asked
1090
1146
  - Use updateIssue to edit title, body, labels, milestone, or assignees, and to reopen a closed issue (state: 'open') — there is no separate reopen tool
1091
1147
  - Use updateIssueComment / deleteIssueComment to correct or remove existing comments
@@ -1307,6 +1363,7 @@ function createGithubTools({ token, requireApproval = true, preset, context, ove
1307
1363
  requestReviewers: requestReviewers(resolveToken, approval("requestReviewers")),
1308
1364
  getPullRequestContext: getPullRequestContext(resolveToken),
1309
1365
  getIssueContext: getIssueContext(resolveToken),
1366
+ listIssueComments: listIssueComments(resolveToken),
1310
1367
  createIssue: createIssue(resolveToken, approval("createIssue")),
1311
1368
  addIssueComment: addIssueComment(resolveToken, approval("addIssueComment")),
1312
1369
  updateIssueComment: updateIssueComment(resolveToken, approval("updateIssueComment")),
@@ -1316,6 +1373,9 @@ function createGithubTools({ token, requireApproval = true, preset, context, ove
1316
1373
  listLabels: listLabels(resolveToken),
1317
1374
  addLabels: addLabels(resolveToken, approval("addLabels")),
1318
1375
  removeLabel: removeLabel(resolveToken, approval("removeLabel")),
1376
+ createLabel: createLabel(resolveToken, approval("createLabel")),
1377
+ updateLabel: updateLabel(resolveToken, approval("updateLabel")),
1378
+ deleteLabel: deleteLabel(resolveToken, approval("deleteLabel")),
1319
1379
  addAssignees: addAssignees(resolveToken, approval("addAssignees")),
1320
1380
  removeAssignees: removeAssignees(resolveToken, approval("removeAssignees")),
1321
1381
  listIssueReactions: listIssueReactions(resolveToken),
@@ -1366,6 +1426,6 @@ function createGithubTools({ token, requireApproval = true, preset, context, ove
1366
1426
  return Object.fromEntries(Object.entries(scoped).filter(([name]) => allowed.has(name)));
1367
1427
  }
1368
1428
  //#endregion
1369
- export { listIssues as $, compareCommits as A, getDiscussion as B, createGist as C, getRepositoryTree as Ct, listGistComments as D, getGist as E, searchIssues as F, listIssueReactions as G, addCommentReaction as H, searchRepositories as I, addLabels as J, addAssignees as K, listNotifications as L, getCommit as M, listCommits as N, listGists as O, searchCode as P, getIssue as Q, markNotificationRead as R, triggerWorkflow as S, getRepository as St, deleteGist as T, addIssueReaction as U, listDiscussions as V, listCommentReactions as W, createIssue as X, closeIssue as Y, deleteIssueComment as Z, getWorkflowRun as _, createBranch as _t, getIssueContext as a, addPullRequestComment as at, listWorkflows as b, forkRepository as bt, createRelease as c, deletePullRequestComment as ct, getRelease as d, listPullRequestReviews as dt, listLabels as et, listReleases as f, listPullRequests as ft, cancelWorkflowRun as g, updatePullRequestComment as gt, listCheckRuns as h, updatePullRequest as ht, getCiFailureContext as i, updateIssueComment as it, getBlame as j, updateGist as k, deleteRelease as l, getPullRequest as lt, getCombinedStatus as m, requestReviewers as mt, createGithubAgent as n, removeLabel as nt, getPullRequestContext as o, createPullRequest as ot, updateRelease as p, mergePullRequest as pt, addIssueComment as q, resolveInstructions as r, updateIssue as rt, getReleaseContext as s, createPullRequestReview as st, createGithubTools as t, removeAssignees as tt, getLatestRelease as u, listPullRequestFiles as ut, listWorkflowJobs as v, createOrUpdateFile as vt, createGistComment as w, listBranches as wt, rerunWorkflowRun as x, getFileContent as xt, listWorkflowRuns as y, createRepository as yt, addDiscussionComment as z };
1429
+ export { deleteLabel as $, compareCommits as A, getDiscussion as B, createGist as C, createRepository as Ct, listGistComments as D, getRepositoryTree as Dt, getGist as E, getRepository as Et, searchIssues as F, listIssueReactions as G, addCommentReaction as H, searchRepositories as I, addLabels as J, addAssignees as K, listNotifications as L, getCommit as M, listCommits as N, listGists as O, listBranches as Ot, searchCode as P, deleteIssueComment as Q, markNotificationRead as R, triggerWorkflow as S, createOrUpdateFile as St, deleteGist as T, getFileContent as Tt, addIssueReaction as U, listDiscussions as V, listCommentReactions as W, createIssue as X, closeIssue as Y, createLabel as Z, getWorkflowRun as _, mergePullRequest as _t, getIssueContext as a, removeLabel as at, listWorkflows as b, updatePullRequestComment as bt, createRelease as c, updateLabel as ct, getRelease as d, createPullRequestReview as dt, getIssue as et, listReleases as f, deletePullRequestComment as ft, cancelWorkflowRun as g, listPullRequests as gt, listCheckRuns as h, listPullRequestReviews as ht, getCiFailureContext as i, removeAssignees as it, getBlame as j, updateGist as k, deleteRelease as l, addPullRequestComment as lt, getCombinedStatus as m, listPullRequestFiles as mt, createGithubAgent as n, listIssues as nt, getPullRequestContext as o, updateIssue as ot, updateRelease as p, getPullRequest as pt, addIssueComment as q, resolveInstructions as r, listLabels as rt, getReleaseContext as s, updateIssueComment as st, createGithubTools as t, listIssueComments as tt, getLatestRelease as u, createPullRequest as ut, listWorkflowJobs as v, requestReviewers as vt, createGistComment as w, forkRepository as wt, rerunWorkflowRun as x, createBranch as xt, listWorkflowRuns as y, updatePullRequest as yt, addDiscussionComment as z };
1370
1430
 
1371
- //# sourceMappingURL=src-v-LjzPpR.mjs.map
1431
+ //# sourceMappingURL=src-jQWS2Txw.mjs.map