@github-tools/sdk 1.13.0 → 1.14.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 (36) hide show
  1. package/README.md +5 -5
  2. package/dist/connect/eve.d.mts +1 -1
  3. package/dist/connect/eve.mjs +1 -1
  4. package/dist/connect.d.mts +3 -3
  5. package/dist/connect.mjs +2 -2
  6. package/dist/{eve-runtime-BkzmgsI2.mjs → eve-runtime-BdolQrBF.mjs} +3 -2
  7. package/dist/eve-runtime-BdolQrBF.mjs.map +1 -0
  8. package/dist/{eve-runtime-C5HaKmOP.d.mts → eve-runtime-D1v4C0UP.d.mts} +4 -4
  9. package/dist/{eve-runtime-C5HaKmOP.d.mts.map → eve-runtime-D1v4C0UP.d.mts.map} +1 -1
  10. package/dist/eve-runtime.d.mts +4 -4
  11. package/dist/eve-runtime.mjs +2 -2
  12. package/dist/eve.d.mts +3 -3
  13. package/dist/eve.mjs +2 -2
  14. package/dist/{index-BjRUOM2Z.d.mts → index-PqQNoVuw.d.mts} +2 -2
  15. package/dist/{index-BjRUOM2Z.d.mts.map → index-PqQNoVuw.d.mts.map} +1 -1
  16. package/dist/index.d.mts +2 -2
  17. package/dist/index.mjs +2 -2
  18. package/dist/{src-DPcwVTf-.mjs → src-D9WxaIVj.mjs} +5 -3
  19. package/dist/src-D9WxaIVj.mjs.map +1 -0
  20. package/dist/{token-qesvchbI.mjs → token-Dt6qs_kf.mjs} +2 -2
  21. package/dist/{token-qesvchbI.mjs.map → token-Dt6qs_kf.mjs.map} +1 -1
  22. package/dist/{tool-types-K8i--5D9.d.mts → tool-types-DbZpOYFG.d.mts} +89 -32
  23. package/dist/tool-types-DbZpOYFG.d.mts.map +1 -0
  24. package/dist/{types-6aWpzNzg.d.mts → types-BAEqBfM5.d.mts} +3 -3
  25. package/dist/{types-6aWpzNzg.d.mts.map → types-BAEqBfM5.d.mts.map} +1 -1
  26. package/dist/{types-BVSe0Zey.d.mts → types-CCoH12WC.d.mts} +2 -2
  27. package/dist/{types-BVSe0Zey.d.mts.map → types-CCoH12WC.d.mts.map} +1 -1
  28. package/dist/workflow.d.mts +2 -2
  29. package/dist/workflow.mjs +2 -2
  30. package/dist/{write-tools-BEcL5Fv6.mjs → write-tools-Ct0ZV87Z.mjs} +242 -124
  31. package/dist/write-tools-Ct0ZV87Z.mjs.map +1 -0
  32. package/package.json +1 -1
  33. package/dist/eve-runtime-BkzmgsI2.mjs.map +0 -1
  34. package/dist/src-DPcwVTf-.mjs.map +0 -1
  35. package/dist/tool-types-K8i--5D9.d.mts.map +0 -1
  36. package/dist/write-tools-BEcL5Fv6.mjs.map +0 -1
package/README.md CHANGED
@@ -188,7 +188,7 @@ Core properties (`execute`, `inputSchema`, `outputSchema`) cannot be overridden.
188
188
 
189
189
  ## Rate-limit metadata
190
190
 
191
- Object-shaped tool results include a `rateLimit` field from the last GitHub response. Array-shaped results are unchanged. The field is stripped before the model sees the output; hooks, channels, and UIs still receive it.
191
+ Object-shaped tool results include a `rateLimit` field from the last GitHub response. REST list tools now return objects, so they carry it too. The field is stripped before the model sees the output; hooks, channels, and UIs still receive it.
192
192
 
193
193
  ```ts
194
194
  import type { GithubRateLimit } from '@github-tools/sdk'
@@ -471,16 +471,16 @@ New agents should use the [eve extension](#eve-extension) above; see [`examples/
471
471
 
472
472
  ## Available Tools
473
473
 
474
- List tools (`listCommits`, `listPullRequests`, `listIssues`, `listWorkflowRuns`, `listCheckRuns`, `listReleases`) accept an optional `maxPages` alongside `perPage`. Set it to sequentially fetch and combine up to that many pages in one call, stopping early once a page comes back short.
474
+ List tools return `{ items, hasMore, page, perPage, nextPage? }` (or add those fields next to `checkRuns` / `runs` / …). When `hasMore`, call with `nextPage` or set `maxPages` to combine sequential pages in one call — do not repeat the same page. Filter `listCommits` with `path` / `author` / `since` / `until`. `getRepositoryTree` accepts a `path` prefix.
475
475
 
476
476
  ### Repository
477
477
 
478
478
  | Tool | Description |
479
479
  |---|---|
480
480
  | `getRepository` | Get repository metadata (stars, language, default branch, …) |
481
- | `listBranches` | List branches |
481
+ | `listBranches` | List branches (`hasMore` / `nextPage` when there are more) |
482
482
  | `getFileContent` | Read a file or directory listing (prefer `startLine`/`endLine` or `maxLines` for large files) |
483
- | `getRepositoryTree` | List the file and directory structure at a given ref |
483
+ | `getRepositoryTree` | List the file and directory structure at a given ref (prefer a `path` prefix over `recursive: true`) |
484
484
  | `createBranch` | Create a new branch from an existing branch or commit SHA |
485
485
  | `deleteBranch` | Permanently delete a branch |
486
486
  | `forkRepository` | Fork a repository to a user or organization |
@@ -606,7 +606,7 @@ Pull request conversations share the issue numbering, so the issue-level tools w
606
606
 
607
607
  | Tool | Description |
608
608
  |---|---|
609
- | `listCommits` | List commits, optionally filtered by file path, author, or date range |
609
+ | `listCommits` | List commits, optionally filtered by file path, author, or date range. When `hasMore`, pass `nextPage` |
610
610
  | `getCommit` | Get a commit's full details including changed files and diffs |
611
611
  | `getBlame` | Line-level git blame for a file (GitHub GraphQL) |
612
612
  | `compareCommits` | Compare two branches, tags, or commits: ahead/behind counts, commits in between, and files that differ |
@@ -1,4 +1,4 @@
1
- import { a as GithubConnectorInput, t as ConnectGithubEveToolsOptions } from "../types-6aWpzNzg.mjs";
1
+ import { a as GithubConnectorInput, t as ConnectGithubEveToolsOptions } from "../types-BAEqBfM5.mjs";
2
2
  //#region src/connect/eve.d.ts
3
3
  /**
4
4
  * Register eve GitHub tools backed by a Vercel Connect connector.
@@ -1,5 +1,5 @@
1
1
  import { createGithubTools } from "../eve.mjs";
2
- import { t as connectGithubToken } from "../token-qesvchbI.mjs";
2
+ import { t as connectGithubToken } from "../token-Dt6qs_kf.mjs";
3
3
  //#region src/connect/eve.ts
4
4
  /**
5
5
  * Register eve GitHub tools backed by a Vercel Connect connector.
@@ -1,6 +1,6 @@
1
- import { a as GithubConnectorInput, i as GithubConnectParams, n as ConnectGithubTokenOptions, o as resolveGithubConnector, r as ConnectGithubToolsOptions, t as ConnectGithubEveToolsOptions } from "./types-6aWpzNzg.mjs";
2
- import { a as GithubTokenInput, d as GithubToolPreset, h as GithubToolName, t as AllGithubTools } from "./tool-types-K8i--5D9.mjs";
3
- import "./index-BjRUOM2Z.mjs";
1
+ import { a as GithubConnectorInput, i as GithubConnectParams, n as ConnectGithubTokenOptions, o as resolveGithubConnector, r as ConnectGithubToolsOptions, t as ConnectGithubEveToolsOptions } from "./types-BAEqBfM5.mjs";
2
+ import { a as GithubTokenInput, d as GithubToolPreset, h as GithubToolName, t as AllGithubTools } from "./tool-types-DbZpOYFG.mjs";
3
+ import "./eve-runtime-D1v4C0UP.mjs";
4
4
  import "@vercel/connect";
5
5
  //#region src/connect/scopes.d.ts
6
6
  /**
package/dist/connect.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { t as createGithubTools } from "./src-DPcwVTf-.mjs";
2
- import { a as connectGithubScopesForSelection, i as connectGithubScopesForPreset, n as PRESET_CONNECT_SCOPES, o as connectGithubScopesForTools, r as TOOL_CONNECT_SCOPES, s as resolveGithubConnector, t as connectGithubToken } from "./token-qesvchbI.mjs";
1
+ import { t as createGithubTools } from "./src-D9WxaIVj.mjs";
2
+ import { a as connectGithubScopesForSelection, i as connectGithubScopesForPreset, n as PRESET_CONNECT_SCOPES, o as connectGithubScopesForTools, r as TOOL_CONNECT_SCOPES, s as resolveGithubConnector, t as connectGithubToken } from "./token-Dt6qs_kf.mjs";
3
3
  //#region src/connect/tools.ts
4
4
  /**
5
5
  * Create GitHub tools backed by a Vercel Connect connector.
@@ -1,4 +1,4 @@
1
- import { Ci as compareCommitsToModelOutput, Di as listPullRequestFilesToModelOutput, Ei as getPullRequestContextToModelOutput, Si as resolveGithubToken, Ti as getFileContentToModelOutput, a as isGithubWriteToolName, d as softenContextSchema, i as GITHUB_TOOL_CATALOG, na as stripRateLimit, r as ALL_GITHUB_TOOL_NAMES, s as resolvePresetTools, u as mergeContextArgs, wi as getCommitToModelOutput, xi as createGithubTokenResolver } from "./write-tools-BEcL5Fv6.mjs";
1
+ import { Ci as compareCommitsToModelOutput, Di as getRepositoryTreeToModelOutput, Ei as getPullRequestContextToModelOutput, Oi as listPullRequestFilesToModelOutput, Si as resolveGithubToken, Ti as getFileContentToModelOutput, a as isGithubWriteToolName, d as softenContextSchema, i as GITHUB_TOOL_CATALOG, r as ALL_GITHUB_TOOL_NAMES, ra as stripRateLimit, s as resolvePresetTools, u as mergeContextArgs, wi as getCommitToModelOutput, xi as createGithubTokenResolver } from "./write-tools-Ct0ZV87Z.mjs";
2
2
  import * as eveTools from "eve/tools";
3
3
  import * as eveApproval from "eve/tools/approval";
4
4
  //#region src/eve/load-eve.ts
@@ -71,6 +71,7 @@ function modelOutputAdapter(fn) {
71
71
  }
72
72
  const GITHUB_EVE_TOOL_MODEL_OUTPUT = {
73
73
  getFileContent: modelOutputAdapter(getFileContentToModelOutput),
74
+ getRepositoryTree: modelOutputAdapter(getRepositoryTreeToModelOutput),
74
75
  listPullRequestFiles: modelOutputAdapter(listPullRequestFilesToModelOutput),
75
76
  getPullRequestContext: modelOutputAdapter(getPullRequestContextToModelOutput),
76
77
  getCommit: modelOutputAdapter(getCommitToModelOutput),
@@ -271,4 +272,4 @@ async function executeGithubEveTool(name, input, options = {}) {
271
272
  //#endregion
272
273
  export { listEveToolDescriptors as a, hasGithubEveToolModelOutput as c, resolveEveApproval as d, resolveEveToolApproval as f, executeGithubEveTool as i, isEveApprovalDisabled as l, buildEveToolMap as n, listResolvedEveToolNames as o, MISSING_EVE_MESSAGE as p, createEveGithubToolsDynamic as r, formatGithubEveToolOutput as s, buildEveToolDefinition as t, mapEveApprovalValue as u };
273
274
 
274
- //# sourceMappingURL=eve-runtime-BkzmgsI2.mjs.map
275
+ //# sourceMappingURL=eve-runtime-BdolQrBF.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eve-runtime-BdolQrBF.mjs","names":[],"sources":["../src/eve/load-eve.ts","../src/eve/approval.ts","../src/eve/registry.ts","../src/eve/steps.ts","../src/eve/build.ts"],"sourcesContent":["import * as eveTools from 'eve/tools'\nimport * as eveApproval from 'eve/tools/approval'\n\n/**\n * Static ESM imports so bundlers (eve/Nitro/Vercel) can resolve `eve` when it is\n * compiled into the output rather than left as `node_modules/eve` at runtime.\n * Runtime `createRequire(\"eve/tools\")` fails in those targets.\n */\nexport type EveToolsModule = typeof import('eve/tools')\nexport type EveApprovalModule = typeof import('eve/tools/approval')\n\n/**\n * @deprecated Never thrown since eve moved to static ESM imports — a missing\n * `eve` package now fails at module resolution with the bundler/runtime's own\n * error. Kept only for backward compatibility of the public export; do not\n * match on it. Will be removed in the next major.\n */\nexport const MISSING_EVE_MESSAGE =\n 'The \"eve\" package is required to use @github-tools/sdk/eve. Install it with: pnpm add eve'\n\nexport function getEveTools(): EveToolsModule {\n return eveTools\n}\n\nexport function getEveApprovalHelpers(): EveApprovalModule {\n return eveApproval\n}\n","import type { Approval, ApprovalPolicy } from 'eve/tools/approval'\nimport type { GithubWriteToolName } from '../core/write-tools'\nimport { getEveApprovalHelpers } from './load-eve'\nimport type { EveApprovalConfig, EveApprovalValue } from './types'\n\n/**\n * `false` / `'never'` should omit the tool `approval` field entirely.\n * eve treats a missing `approval` like `never()`; attaching `never()` is\n * redundant and has caused approval UI noise on some channels.\n */\nexport function isEveApprovalDisabled(value: EveApprovalValue | undefined): boolean {\n return value === false || value === 'never'\n}\n\nexport function mapEveApprovalValue(value: EveApprovalValue): ApprovalPolicy {\n if (typeof value === 'function') return value\n // Object-shaped eve `ApprovalConfiguration` — the request-time policy lives on `request`.\n if (typeof value === 'object') return value.request\n\n const { always, never, once } = getEveApprovalHelpers()\n\n if (value === true || value === 'always') return always()\n if (value === false || value === 'never') return never()\n return once()\n}\n\nexport function resolveEveApproval(\n toolName: GithubWriteToolName,\n config: EveApprovalConfig | undefined,\n): ApprovalPolicy {\n if (config === undefined) return getEveApprovalHelpers().always()\n if (config === true) return getEveApprovalHelpers().always()\n if (config === false) return getEveApprovalHelpers().never()\n\n const value = config[toolName]\n if (value === undefined) return getEveApprovalHelpers().always()\n\n return mapEveApprovalValue(value)\n}\n\n/**\n * Approval to attach on a write tool, or `undefined` to omit the field.\n * Prefer this when building `defineTool` values so `false` / `'never'` do not\n * attach a redundant `never()` handler.\n */\nexport function resolveEveToolApproval(\n toolName: GithubWriteToolName,\n config: EveApprovalConfig | undefined,\n override?: EveApprovalValue,\n): Approval | undefined {\n const value = override !== undefined\n ? override\n : typeof config === 'object' && config !== null\n ? config[toolName]\n : config\n\n if (value === undefined) return getEveApprovalHelpers().always()\n if (isEveApprovalDisabled(value)) return undefined\n // Pass policies and `ApprovalConfiguration` objects through unchanged so a\n // response-time authorizer (`response`) survives onto `defineTool`.\n if (typeof value === 'function' || typeof value === 'object') return value\n return mapEveApprovalValue(value)\n}\n","import type { ToolModelOutput } from 'eve/tools'\nimport type { z } from 'zod'\nimport type { CommitIdentity } from '../types'\nimport { GITHUB_TOOL_CATALOG, isGithubWriteToolName } from '../core/catalog'\nimport { mergeContextArgs, softenContextSchema, type GithubToolsContext } from '../core/context'\nimport {\n compareCommitsToModelOutput,\n getCommitToModelOutput,\n getFileContentToModelOutput,\n getPullRequestContextToModelOutput,\n getRepositoryTreeToModelOutput,\n listPullRequestFilesToModelOutput,\n} from '../core/model-output'\nimport { stripRateLimit } from '../core/rate-limit'\nimport { resolveGithubToken, type GithubTokenInput } from '../core/token'\nimport type { GithubWriteToolName } from '../core/write-tools'\nimport { ALL_GITHUB_TOOL_NAMES, type GithubToolName } from '../core/tool-names'\nexport type { GithubToolName } from '../core/tool-names'\nexport { ALL_GITHUB_TOOL_NAMES } from '../core/tool-names'\n\nexport type ToolBuildContext = {\n token: GithubTokenInput\n context?: GithubToolsContext\n author?: CommitIdentity\n committer?: CommitIdentity\n coAuthors?: CommitIdentity[]\n}\n\ntype ToolRegistryEntry = {\n name: GithubToolName\n writeTool?: GithubWriteToolName\n description: string\n inputSchema: z.ZodType\n execute: (args: Record<string, unknown>) => Promise<unknown>\n toModelOutput?: (output: unknown) => ToolModelOutput\n}\n\nfunction withToken<T extends Record<string, unknown>>(\n core: (args: T & { token: string }) => Promise<unknown>,\n ctx: ToolBuildContext,\n extra?: Record<string, unknown>,\n) {\n return async (input: Record<string, unknown>) =>\n core({\n token: await resolveGithubToken(ctx.token),\n ...extra,\n ...mergeContextArgs(input, ctx.context ?? {}),\n } as T & { token: string })\n}\n\nfunction modelOutputAdapter(\n fn: (options: { toolCallId: string, input: unknown, output: unknown }) => { type: 'json' | 'text', value: unknown },\n) {\n return (output: unknown) => fn({ toolCallId: '', input: {}, output }) as ToolModelOutput\n}\n\nconst GITHUB_EVE_TOOL_MODEL_OUTPUT = {\n getFileContent: modelOutputAdapter(getFileContentToModelOutput),\n getRepositoryTree: modelOutputAdapter(getRepositoryTreeToModelOutput),\n listPullRequestFiles: modelOutputAdapter(listPullRequestFilesToModelOutput),\n getPullRequestContext: modelOutputAdapter(getPullRequestContextToModelOutput),\n getCommit: modelOutputAdapter(getCommitToModelOutput),\n compareCommits: modelOutputAdapter(compareCommitsToModelOutput),\n} satisfies Partial<Record<GithubToolName, (output: unknown) => ToolModelOutput>>\n\nconst EVE_TOOL_MODEL_OUTPUTS: Partial<Record<GithubToolName, (output: unknown) => ToolModelOutput>> = GITHUB_EVE_TOOL_MODEL_OUTPUT\n\n/** Whether a GitHub tool has a built-in eve `toModelOutput` projection. */\nexport function hasGithubEveToolModelOutput(name: GithubToolName): boolean {\n return Object.hasOwn(GITHUB_EVE_TOOL_MODEL_OUTPUT, name)\n}\n\n/**\n * Apply the built-in eve `toModelOutput` projection for a tool.\n * Strips `rateLimit` so it never reaches the model. Tools without a dedicated\n * formatter get `{ type: 'json', value }` of the remaining payload.\n * Used by `@github-tools/eve-extension` so the callback only closes over a serializable tool name.\n */\nexport function formatGithubEveToolOutput(name: GithubToolName, output: unknown): ToolModelOutput {\n const stripped = stripRateLimit(output)\n // `runGithubToolStep` returns `{ error }` when execute throws. The per-tool\n // formatters assume the success shape (e.g. `listPullRequestFilesToModelOutput`\n // calls `.map` on the payload), so dispatching an error payload would throw a\n // second time inside model-output formatting and re-break the tool loop.\n if (isErrorPayload(stripped)) {\n return { type: 'json', value: stripped }\n }\n const format = GITHUB_EVE_TOOL_MODEL_OUTPUT[name as keyof typeof GITHUB_EVE_TOOL_MODEL_OUTPUT]\n if (!format) {\n return { type: 'json', value: stripped }\n }\n return format(stripped)\n}\n\nfunction isErrorPayload(output: unknown): output is { error: string } {\n return (\n output != null\n && typeof output === 'object'\n && !Array.isArray(output)\n && typeof (output as { error?: unknown }).error === 'string'\n )\n}\n\nexport function createToolRegistry(ctx: ToolBuildContext): ToolRegistryEntry[] {\n // Commit-identity options are session-level, not model inputs, so they ride\n // alongside the token instead of living in the tool's input schema.\n const commitExtras: Partial<Record<GithubToolName, Record<string, unknown>>> = {\n createOrUpdateFile: { author: ctx.author, committer: ctx.committer, coAuthors: ctx.coAuthors },\n mergePullRequest: { coAuthors: ctx.coAuthors },\n }\n\n const entries = ALL_GITHUB_TOOL_NAMES.map((name): ToolRegistryEntry => {\n const descriptor = GITHUB_TOOL_CATALOG[name]\n // Argument types vary per tool; `withToken` re-narrows at the dispatch boundary.\n const core = descriptor.core as (args: Record<string, unknown> & { token: string }) => Promise<unknown>\n const toModelOutput = EVE_TOOL_MODEL_OUTPUTS[name]\n return {\n name,\n ...(isGithubWriteToolName(name) && { writeTool: name }),\n description: descriptor.description,\n inputSchema: descriptor.inputSchema,\n execute: withToken(core, ctx, commitExtras[name]),\n ...(toModelOutput && { toModelOutput }),\n }\n })\n\n if (!ctx.context) return entries\n\n return entries.map(entry => ({\n ...entry,\n inputSchema: softenContextSchema(entry.inputSchema, ctx.context!),\n }))\n}\n","import { resolveGithubToken } from '../core/token'\nimport { createToolRegistry, type GithubToolName, type ToolBuildContext } from './registry'\n\nasync function executeGithubToolStep(\n name: GithubToolName,\n input: Record<string, unknown>,\n ctx: ToolBuildContext,\n) {\n 'use step'\n const entry = createToolRegistry(ctx).find(tool => tool.name === name)\n if (!entry) {\n throw new Error(`Unknown GitHub tool: ${name}`)\n }\n return entry.execute(input)\n}\n\nexport async function runGithubToolStep(\n name: GithubToolName,\n input: Record<string, unknown>,\n ctx: ToolBuildContext,\n) {\n try {\n // Resolve the token before entering the step so only a serializable string crosses the boundary.\n const token = await resolveGithubToken(ctx.token)\n return await executeGithubToolStep(name, input, { ...ctx, token })\n } catch (error) {\n // Eve's tool-loop logs thrown execute errors but does not always append a\n // tool_result. Returning a payload keeps the Anthropic tool_use/tool_result pairing intact.\n return { error: error instanceof Error ? error.message : String(error) }\n }\n}\n","import type { ToolDefinition } from 'eve/tools'\nimport { resolvePresetTools, type CombinedPresetToolNames, type GithubToolPreset, type PresetToolName } from '../core/presets'\nimport { createGithubTokenResolver } from '../core/token'\nimport { isEveApprovalDisabled, mapEveApprovalValue, resolveEveToolApproval } from './approval'\nimport { getEveTools } from './load-eve'\nimport { ALL_GITHUB_TOOL_NAMES, createToolRegistry, formatGithubEveToolOutput, hasGithubEveToolModelOutput, type GithubToolName, type ToolBuildContext } from './registry'\nimport { runGithubToolStep } from './steps'\nimport type { EveGithubToolsOptions, EveToolFactoryOptions, EveToolOverrides } from './types'\n\ntype BuildOptions = EveGithubToolsOptions | (EveToolFactoryOptions & { preset?: EveGithubToolsOptions['preset'] })\ntype EveToolMap = Partial<Record<GithubToolName, ToolDefinition>>\n\nfunction resolveAllowedToolNames(\n options: Pick<EveGithubToolsOptions, 'preset' | 'include' | 'exclude'>,\n): (name: GithubToolName) => boolean {\n const presetAllowed = options.preset ? resolvePresetTools(options.preset) : null\n const includeAllowed = options.include ? new Set(options.include) : null\n const excluded = options.exclude ? new Set(options.exclude) : null\n\n // `preset` and `include` compose as a union (add tools a preset is missing);\n // `exclude` always subtracts from that combined set afterward.\n const allowed = presetAllowed && includeAllowed\n ? new Set([...presetAllowed, ...includeAllowed])\n : presetAllowed ?? includeAllowed\n\n return name => (!allowed || allowed.has(name)) && !excluded?.has(name)\n}\n\nfunction applyOverrides<T extends ToolDefinition>(\n tool: T,\n name: GithubToolName,\n overrides?: EveToolOverrides,\n): T {\n const override = overrides?.[name]\n if (!override) return tool\n\n const next: T = {\n ...tool,\n ...override.description !== undefined && { description: override.description },\n ...override.toModelOutput !== undefined && { toModelOutput: override.toModelOutput },\n ...override.outputSchema !== undefined && { outputSchema: override.outputSchema },\n }\n\n if (override.approval === undefined) return next\n if (isEveApprovalDisabled(override.approval)) {\n const rest = { ...next }\n delete (rest as { approval?: unknown }).approval\n return rest\n }\n // Preserve policies and `ApprovalConfiguration` objects as-is; only literals need mapping.\n const approval = typeof override.approval === 'function' || typeof override.approval === 'object'\n ? override.approval\n : mapEveApprovalValue(override.approval)\n return { ...next, approval }\n}\n\nexport function buildEveToolDefinition(\n name: GithubToolName,\n options: BuildOptions = {},\n): ToolDefinition {\n const { defineTool } = getEveTools()\n const ctx: ToolBuildContext = {\n token: createGithubTokenResolver(options.token),\n context: options.context,\n author: options.author,\n committer: options.committer,\n coAuthors: options.coAuthors,\n }\n\n const entry = createToolRegistry(ctx).find(tool => tool.name === name)\n if (!entry) {\n throw new Error(`Unknown GitHub tool: ${name}`)\n }\n\n const approval = entry.writeTool\n ? resolveEveToolApproval(entry.writeTool, options.requireApproval)\n : undefined\n\n // Annotated so defineTool resolves to its ToolDefinition overload — inference\n // from the bare literal picks the background-tool overload on eve 0.45+.\n const definition: ToolDefinition = {\n description: entry.description,\n inputSchema: entry.inputSchema,\n ...(approval && { approval }),\n toModelOutput: (output: unknown) => formatGithubEveToolOutput(name, output),\n execute: async (input) => runGithubToolStep(name, input as Record<string, unknown>, ctx),\n }\n\n return applyOverrides(defineTool(definition), name, options.overrides)\n}\n\nexport function buildEveToolMap(options: EveGithubToolsOptions = {}): EveToolMap {\n const { defineTool } = getEveTools()\n const ctx: ToolBuildContext = {\n token: createGithubTokenResolver(options.token),\n context: options.context,\n author: options.author,\n committer: options.committer,\n coAuthors: options.coAuthors,\n }\n\n const isAllowed = resolveAllowedToolNames(options)\n const registry = createToolRegistry(ctx)\n const tools = {} as EveToolMap\n\n for (const entry of registry) {\n if (!isAllowed(entry.name)) continue\n\n const approval = entry.writeTool\n ? resolveEveToolApproval(entry.writeTool, options.requireApproval)\n : undefined\n\n const definition: ToolDefinition = {\n description: entry.description,\n inputSchema: entry.inputSchema,\n ...(approval && { approval }),\n toModelOutput: (output: unknown) => formatGithubEveToolOutput(entry.name, output),\n execute: async (input) => runGithubToolStep(entry.name, input as Record<string, unknown>, ctx),\n }\n\n tools[entry.name] = applyOverrides(defineTool(definition), entry.name, options.overrides)\n }\n\n return tools\n}\n\nexport function createEveGithubToolsDynamic(options: EveGithubToolsOptions = {}) {\n const { defineDynamic } = getEveTools()\n\n // TODO(eve-auth): resolve token from ctx.getToken('github') when eve-managed auth lands.\n // Deferred — eve does not yet expose managed GitHub tokens on the session context.\n return defineDynamic({\n events: {\n 'step.started': async () => buildEveToolMap(options),\n },\n })\n}\n\nexport function listResolvedEveToolNames(options?: { preset?: undefined, include?: undefined, exclude?: undefined }): GithubToolName[]\nexport function listResolvedEveToolNames<P extends GithubToolPreset>(options: { preset: P, include?: undefined, exclude?: undefined }): PresetToolName<P>[]\nexport function listResolvedEveToolNames<P extends readonly GithubToolPreset[]>(options: { preset: P, include?: undefined, exclude?: undefined }): CombinedPresetToolNames<P>[]\nexport function listResolvedEveToolNames(options: Pick<EveGithubToolsOptions, 'preset' | 'include' | 'exclude'>): GithubToolName[]\nexport function listResolvedEveToolNames(options: Pick<EveGithubToolsOptions, 'preset' | 'include' | 'exclude'> = {}): GithubToolName[] {\n const isAllowed = resolveAllowedToolNames(options)\n return ALL_GITHUB_TOOL_NAMES.filter(isAllowed)\n}\n\n/**\n * Tool descriptors (no `execute`) for authored eve `defineTool` loops.\n * Prefer this when registering tools outside the SDK package so durable transforms can hoist inline execute.\n */\nexport function listEveToolDescriptors(options: EveGithubToolsOptions = {}) {\n const ctx: ToolBuildContext = {\n token: createGithubTokenResolver(options.token),\n context: options.context,\n author: options.author,\n committer: options.committer,\n coAuthors: options.coAuthors,\n }\n\n const isAllowed = resolveAllowedToolNames(options)\n return createToolRegistry(ctx)\n .filter(entry => isAllowed(entry.name))\n .map(entry => ({\n name: entry.name,\n description: entry.description,\n inputSchema: entry.inputSchema,\n writeTool: entry.writeTool,\n toModelOutput: entry.toModelOutput,\n }))\n}\n\nexport { formatGithubEveToolOutput, hasGithubEveToolModelOutput }\n\n/**\n * Execute a GitHub tool by name with the given eve options (token/context/attribution).\n * Used by `@github-tools/eve-extension` so `execute` only closes over a serializable tool name.\n */\nexport async function executeGithubEveTool(\n name: GithubToolName,\n input: Record<string, unknown>,\n options: EveGithubToolsOptions = {},\n) {\n const ctx: ToolBuildContext = {\n token: createGithubTokenResolver(options.token),\n context: options.context,\n author: options.author,\n committer: options.committer,\n coAuthors: options.coAuthors,\n }\n return runGithubToolStep(name, input, ctx)\n}\n"],"mappings":";;;;;;;;;;AAiBA,MAAa,sBACX;AAEF,SAAgB,cAA8B;CAC5C,OAAO;AACT;AAEA,SAAgB,wBAA2C;CACzD,OAAO;AACT;;;;;;;;AChBA,SAAgB,sBAAsB,OAA8C;CAClF,OAAO,UAAU,SAAS,UAAU;AACtC;AAEA,SAAgB,oBAAoB,OAAyC;CAC3E,IAAI,OAAO,UAAU,YAAY,OAAO;CAExC,IAAI,OAAO,UAAU,UAAU,OAAO,MAAM;CAE5C,MAAM,EAAE,QAAQ,OAAO,SAAS,sBAAsB;CAEtD,IAAI,UAAU,QAAQ,UAAU,UAAU,OAAO,OAAO;CACxD,IAAI,UAAU,SAAS,UAAU,SAAS,OAAO,MAAM;CACvD,OAAO,KAAK;AACd;AAEA,SAAgB,mBACd,UACA,QACgB;CAChB,IAAI,WAAW,KAAA,GAAW,OAAO,sBAAsB,CAAC,CAAC,OAAO;CAChE,IAAI,WAAW,MAAM,OAAO,sBAAsB,CAAC,CAAC,OAAO;CAC3D,IAAI,WAAW,OAAO,OAAO,sBAAsB,CAAC,CAAC,MAAM;CAE3D,MAAM,QAAQ,OAAO;CACrB,IAA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4BAA4B,UAAiC,CAAC,GAAG;CAC/E,MAAM,EAAE,kBAAkB,YAAY;CAItC,OAAO,cAAc,EACnB,QAAQ,EACN,gBAAgB,YAAY,gBAAgB,OAAO,EACrD,EACF,CAAC;AACH;AAMA,SAAgB,yBAAyB,UAAyE,CAAC,GAAqB;CACtI,MAAM,YAAY,wBAAwB,OAAO;CACjD,OAAO,sBAAsB,OAAO,SAAS;AAC/C;;;;;AAMA,SAAgB,uBAAuB,UAAiC,CAAC,GAAG;CAC1E,MAAM,MAAwB;EAC5B,OAAO,0BAA0B,QAAQ,KAAK;EAC9C,SAAS,QAAQ;EACjB,QAAQ,QAAQ;EAChB,WAAW,QAAQ;EACnB,WAAW,QAAQ;CACrB;CAEA,MAAM,YAAY,wBAAwB,OAAO;CACjD,OAAO,mBAAmB,GAAG,CAAC,CAC3B,QAAO,UAAS,UAAU,MAAM,IAAI,CAAC,CAAC,CACtC,KAAI,WAAU;EACb,MAAM,MAAM;EACZ,aAAa,MAAM;EACnB,aAAa,MAAM;EACnB,WAAW,MAAM;EACjB,eAAe,MAAM;CACvB,EAAE;AACN;;;;;AAQA,eAAsB,qBACpB,MACA,OACA,UAAiC,CAAC,GAClC;CAQA,OAAO,kBAAkB,MAAM,OAAO;EANpC,OAAO,0BAA0B,QAAQ,KAAK;EAC9C,SAAS,QAAQ;EACjB,QAAQ,QAAQ;EAChB,WAAW,QAAQ;EACnB,WAAW,QAAQ;CAEiB,CAAG;AAC3C"}
@@ -1,6 +1,6 @@
1
- import { d as GithubToolPreset, g as GithubWriteToolName, h as GithubToolName, p as PresetToolName, u as CombinedPresetToolNames } from "./tool-types-K8i--5D9.mjs";
2
- import { i as EveToolFactoryOptions, n as EveApprovalValue, r as EveGithubToolsOptions, t as EveApprovalConfig } from "./types-BVSe0Zey.mjs";
3
- import "./index-BjRUOM2Z.mjs";
1
+ import { d as GithubToolPreset, g as GithubWriteToolName, h as GithubToolName, p as PresetToolName, u as CombinedPresetToolNames } from "./tool-types-DbZpOYFG.mjs";
2
+ import { i as EveToolFactoryOptions, n as EveApprovalValue, r as EveGithubToolsOptions, t as EveApprovalConfig } from "./types-CCoH12WC.mjs";
3
+ import "./index-PqQNoVuw.mjs";
4
4
  import { z } from "zod";
5
5
  import { ToolDefinition, ToolModelOutput } from "eve/tools";
6
6
  import { Approval, ApprovalPolicy } from "eve/tools/approval";
@@ -82,4 +82,4 @@ declare function resolveEveToolApproval(toolName: GithubWriteToolName, config: E
82
82
  declare const MISSING_EVE_MESSAGE = "The \"eve\" package is required to use @github-tools/sdk/eve. Install it with: pnpm add eve";
83
83
  //#endregion
84
84
  export { resolveEveToolApproval as a, createEveGithubToolsDynamic as c, listResolvedEveToolNames as d, formatGithubEveToolOutput as f, resolveEveApproval as i, executeGithubEveTool as l, isEveApprovalDisabled as n, buildEveToolDefinition as o, hasGithubEveToolModelOutput as p, mapEveApprovalValue as r, buildEveToolMap as s, MISSING_EVE_MESSAGE as t, listEveToolDescriptors as u };
85
- //# sourceMappingURL=eve-runtime-C5HaKmOP.d.mts.map
85
+ //# sourceMappingURL=eve-runtime-D1v4C0UP.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"eve-runtime-C5HaKmOP.d.mts","names":[],"sources":["../src/eve/registry.ts","../src/eve/build.ts","../src/eve/approval.ts","../src/eve/load-eve.ts"],"mappings":";;;;;;;;iBAkEgB,4BAA4B,MAAM;;;;;;;iBAUlC,0BAA0B,MAAM,gBAAgB,kBAAkB;;;KCnE7E,eAAe,yBAAyB;EAA0B,SAAS;;KAC3E,aAAa,QAAQ,OAAO,gBAAgB;iBA8CjC,uBACd,MAAM,gBACN,UAAS,eACR;iBAgCa,gBAAgB,UAAS,wBAA6B;iBAmCtD,4BAA4B,UAAS,4CAA0B,gBAAA,QAAA,ipDAAA;iBAY/D,yBAAyB;EAAY;EAAoB;EAAqB;IAAwB;iBACtG,yBAAyB,UAAU,kBAAkB;EAAW,QAAQ;EAAG;EAAqB;IAAwB,eAAe;iBACvI,yBAAyB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BACV,QAAQ,+BACR,WAAW,mBACV;;;;;;;;;cChCU"}
@@ -1,5 +1,5 @@
1
- import { _ as CommitIdentity, d as GithubToolPreset, f as PRESET_TOOLS, g as GithubWriteToolName, h as GithubToolName, i as PickGithubTools, l as GITHUB_WRITE_TOOLS, m as GITHUB_TOOL_NAMES, p as PresetToolName, r as GithubToolsForPreset, t as AllGithubTools, u as CombinedPresetToolNames } from "./tool-types-K8i--5D9.mjs";
2
- import { a as EveToolOverrides, i as EveToolFactoryOptions, n as EveApprovalValue, r as EveGithubToolsOptions, t as EveApprovalConfig } from "./types-BVSe0Zey.mjs";
3
- import { o as GithubRateLimit } from "./index-BjRUOM2Z.mjs";
4
- import { a as resolveEveToolApproval, c as createEveGithubToolsDynamic, d as listResolvedEveToolNames, f as formatGithubEveToolOutput, i as resolveEveApproval, l as executeGithubEveTool, n as isEveApprovalDisabled, o as buildEveToolDefinition, p as hasGithubEveToolModelOutput, r as mapEveApprovalValue, s as buildEveToolMap, t as MISSING_EVE_MESSAGE, u as listEveToolDescriptors } from "./eve-runtime-C5HaKmOP.mjs";
1
+ import { _ as CommitIdentity, d as GithubToolPreset, f as PRESET_TOOLS, g as GithubWriteToolName, h as GithubToolName, i as PickGithubTools, l as GITHUB_WRITE_TOOLS, m as GITHUB_TOOL_NAMES, p as PresetToolName, r as GithubToolsForPreset, t as AllGithubTools, u as CombinedPresetToolNames } from "./tool-types-DbZpOYFG.mjs";
2
+ import { a as EveToolOverrides, i as EveToolFactoryOptions, n as EveApprovalValue, r as EveGithubToolsOptions, t as EveApprovalConfig } from "./types-CCoH12WC.mjs";
3
+ import { o as GithubRateLimit } from "./index-PqQNoVuw.mjs";
4
+ import { a as resolveEveToolApproval, c as createEveGithubToolsDynamic, d as listResolvedEveToolNames, f as formatGithubEveToolOutput, i as resolveEveApproval, l as executeGithubEveTool, n as isEveApprovalDisabled, o as buildEveToolDefinition, p as hasGithubEveToolModelOutput, r as mapEveApprovalValue, s as buildEveToolMap, t as MISSING_EVE_MESSAGE, u as listEveToolDescriptors } from "./eve-runtime-D1v4C0UP.mjs";
5
5
  export { type AllGithubTools, type CombinedPresetToolNames, type CommitIdentity, type EveApprovalConfig, type EveApprovalValue, type EveGithubToolsOptions, type EveToolFactoryOptions, type EveToolOverrides, GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, type GithubRateLimit, type GithubToolName, type GithubToolPreset, type GithubToolsForPreset, type GithubWriteToolName, MISSING_EVE_MESSAGE, PRESET_TOOLS, type PickGithubTools, type PresetToolName, buildEveToolDefinition, buildEveToolMap, createEveGithubToolsDynamic, executeGithubEveTool, formatGithubEveToolOutput, hasGithubEveToolModelOutput, isEveApprovalDisabled, listEveToolDescriptors, listResolvedEveToolNames, mapEveApprovalValue, resolveEveApproval, resolveEveToolApproval };
@@ -1,3 +1,3 @@
1
- import { n as GITHUB_TOOL_NAMES, o as PRESET_TOOLS, t as GITHUB_WRITE_TOOLS } from "./write-tools-BEcL5Fv6.mjs";
2
- import { a as listEveToolDescriptors, c as hasGithubEveToolModelOutput, d as resolveEveApproval, f as resolveEveToolApproval, i as executeGithubEveTool, l as isEveApprovalDisabled, n as buildEveToolMap, o as listResolvedEveToolNames, p as MISSING_EVE_MESSAGE, r as createEveGithubToolsDynamic, s as formatGithubEveToolOutput, t as buildEveToolDefinition, u as mapEveApprovalValue } from "./eve-runtime-BkzmgsI2.mjs";
1
+ import { n as GITHUB_TOOL_NAMES, o as PRESET_TOOLS, t as GITHUB_WRITE_TOOLS } from "./write-tools-Ct0ZV87Z.mjs";
2
+ import { a as listEveToolDescriptors, c as hasGithubEveToolModelOutput, d as resolveEveApproval, f as resolveEveToolApproval, i as executeGithubEveTool, l as isEveApprovalDisabled, n as buildEveToolMap, o as listResolvedEveToolNames, p as MISSING_EVE_MESSAGE, r as createEveGithubToolsDynamic, s as formatGithubEveToolOutput, t as buildEveToolDefinition, u as mapEveApprovalValue } from "./eve-runtime-BdolQrBF.mjs";
3
3
  export { GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, MISSING_EVE_MESSAGE, PRESET_TOOLS, buildEveToolDefinition, buildEveToolMap, createEveGithubToolsDynamic, executeGithubEveTool, formatGithubEveToolOutput, hasGithubEveToolModelOutput, isEveApprovalDisabled, listEveToolDescriptors, listResolvedEveToolNames, mapEveApprovalValue, resolveEveApproval, resolveEveToolApproval };
package/dist/eve.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { _ as CommitIdentity, d as GithubToolPreset, f as PRESET_TOOLS, g as GithubWriteToolName, h as GithubToolName, i as PickGithubTools, l as GITHUB_WRITE_TOOLS, m as GITHUB_TOOL_NAMES, p as PresetToolName, r as GithubToolsForPreset, t as AllGithubTools, u as CombinedPresetToolNames } from "./tool-types-K8i--5D9.mjs";
2
- import { a as EveToolOverrides, i as EveToolFactoryOptions, n as EveApprovalValue, r as EveGithubToolsOptions, t as EveApprovalConfig } from "./types-BVSe0Zey.mjs";
3
- import { a as resolveEveToolApproval, c as createEveGithubToolsDynamic, d as listResolvedEveToolNames, i as resolveEveApproval, l as executeGithubEveTool, n as isEveApprovalDisabled, o as buildEveToolDefinition, r as mapEveApprovalValue, s as buildEveToolMap, t as MISSING_EVE_MESSAGE, u as listEveToolDescriptors } from "./eve-runtime-C5HaKmOP.mjs";
1
+ import { _ as CommitIdentity, d as GithubToolPreset, f as PRESET_TOOLS, g as GithubWriteToolName, h as GithubToolName, i as PickGithubTools, l as GITHUB_WRITE_TOOLS, m as GITHUB_TOOL_NAMES, p as PresetToolName, r as GithubToolsForPreset, t as AllGithubTools, u as CombinedPresetToolNames } from "./tool-types-DbZpOYFG.mjs";
2
+ import { a as EveToolOverrides, i as EveToolFactoryOptions, n as EveApprovalValue, r as EveGithubToolsOptions, t as EveApprovalConfig } from "./types-CCoH12WC.mjs";
3
+ import { a as resolveEveToolApproval, c as createEveGithubToolsDynamic, d as listResolvedEveToolNames, i as resolveEveApproval, l as executeGithubEveTool, n as isEveApprovalDisabled, o as buildEveToolDefinition, r as mapEveApprovalValue, s as buildEveToolMap, t as MISSING_EVE_MESSAGE, u as listEveToolDescriptors } from "./eve-runtime-D1v4C0UP.mjs";
4
4
  //#region src/eve.d.ts
5
5
  /**
6
6
  * Register all GitHub tools (or a preset subset) as eve dynamic capabilities.
package/dist/eve.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { n as GITHUB_TOOL_NAMES, o as PRESET_TOOLS, t as GITHUB_WRITE_TOOLS } from "./write-tools-BEcL5Fv6.mjs";
2
- import { a as listEveToolDescriptors, d as resolveEveApproval, f as resolveEveToolApproval, i as executeGithubEveTool, l as isEveApprovalDisabled, n as buildEveToolMap, o as listResolvedEveToolNames, p as MISSING_EVE_MESSAGE, r as createEveGithubToolsDynamic, t as buildEveToolDefinition, u as mapEveApprovalValue } from "./eve-runtime-BkzmgsI2.mjs";
1
+ import { n as GITHUB_TOOL_NAMES, o as PRESET_TOOLS, t as GITHUB_WRITE_TOOLS } from "./write-tools-Ct0ZV87Z.mjs";
2
+ import { a as listEveToolDescriptors, d as resolveEveApproval, f as resolveEveToolApproval, i as executeGithubEveTool, l as isEveApprovalDisabled, n as buildEveToolMap, o as listResolvedEveToolNames, p as MISSING_EVE_MESSAGE, r as createEveGithubToolsDynamic, t as buildEveToolDefinition, u as mapEveApprovalValue } from "./eve-runtime-BdolQrBF.mjs";
3
3
  //#region src/eve.ts
4
4
  /**
5
5
  * Legacy eve registration for `agent/tools/` (direct import).
@@ -1,4 +1,4 @@
1
- import { _ as CommitIdentity, a as GithubTokenInput, d as GithubToolPreset, h as GithubToolName, n as GithubToolsBaseOptions, p as PresetToolName, t as AllGithubTools, u as CombinedPresetToolNames, v as CommitToolOptions, x as ToolOptions, y as GithubTool } from "./tool-types-K8i--5D9.mjs";
1
+ import { _ as CommitIdentity, a as GithubTokenInput, d as GithubToolPreset, h as GithubToolName, n as GithubToolsBaseOptions, p as PresetToolName, t as AllGithubTools, u as CombinedPresetToolNames, v as CommitToolOptions, x as ToolOptions, y as GithubTool } from "./tool-types-DbZpOYFG.mjs";
2
2
  import { ToolLoopAgent, ToolLoopAgentSettings, ToolSet } from "ai";
3
3
  import { Octokit } from "octokit";
4
4
  //#region src/client.d.ts
@@ -284,4 +284,4 @@ declare function createGithubTools(options?: GithubToolsOptions): AllGithubTools
284
284
  type GithubTools = AllGithubTools & ToolSet;
285
285
  //#endregion
286
286
  export { closeIssue as $, getGist as A, createRepository as At, searchRepositories as B, listWorkflowRuns as C, replyToReviewComment as Ct, createGist as D, updatePullRequestComment as Dt, triggerWorkflow as E, updatePullRequest as Et, getBlame as F, getRepositoryTree as Ft, listDiscussions as G, markNotificationRead as H, getCommit as I, listBranches as It, listCommentReactions as J, addCommentReaction as K, listCommits as L, createOctokit as Lt, listGists as M, forkRepository as Mt, updateGist as N, getFileContent as Nt, createGistComment as O, createBranch as Ot, compareCommits as P, getRepository as Pt, addLabels as Q, searchCode as R, listWorkflowJobs as S, mergePullRequest as St, rerunWorkflowRun as T, resolveReviewThread as Tt, addDiscussionComment as U, listNotifications as V, getDiscussion as W, addAssignees as X, listIssueReactions as Y, addIssueComment as Z, getCombinedStatus as _, getPullRequest as _t, createGithubAgent as a, listIssueComments as at, getWorkflowJobLogs as b, listPullRequestReviews as bt, getIssueContext as c, removeAssignees as ct, createRelease as d, updateIssueComment as dt, createIssue as et, deleteRelease as f, updateLabel as ft, updateRelease as g, deletePullRequestComment as gt, listReleases as h, createPullRequestReview as ht, CreateGithubAgentOptions as i, getIssue as it, listGistComments as j, deleteBranch as jt, deleteGist as k, createOrUpdateFile as kt, getPullRequestContext as l, removeLabel as lt, getRelease as m, createPullRequest as mt, GithubToolsOptions as n, deleteIssueComment as nt, GithubRateLimit as o, listIssues as ot, getLatestRelease as p, addPullRequestComment as pt, addIssueReaction as q, createGithubTools as r, deleteLabel as rt, getCiFailureContext as s, listLabels as st, GithubTools as t, createLabel as tt, getReleaseContext as u, updateIssue as ut, listCheckRuns as v, listPullRequestFiles as vt, listWorkflows as w, requestReviewers as wt, getWorkflowRun as x, listPullRequests as xt, cancelWorkflowRun as y, listPullRequestReviewThreads as yt, searchIssues as z };
287
- //# sourceMappingURL=index-BjRUOM2Z.d.mts.map
287
+ //# sourceMappingURL=index-PqQNoVuw.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-BjRUOM2Z.d.mts","names":[],"sources":["../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/core/rate-limit.ts","../src/agents.ts","../src/index.ts"],"mappings":";;;;iBAiBgB,cAAc,gBAAgB;;;;cC0BjC,gBAAiB,OAAO,qBAAmB;;cAa3C,eAAgB,OAAO,qBAAmB;;cAa1C,iBAAkB,OAAO,qBAAmB;;cAc5C,oBAAqB,OAAO,qBAAmB;;cAa/C,eAAgB,OAAO,oBAAkB,kBAA0B,gBAAmB;;cActF,eAAgB,OAAO,oBAAkB,kBAA0B,gBAAmB;;cActF,iBAAkB,OAAO,oBAAkB,kBAA0B,gBAAmB;;cAcxF,mBAAoB,OAAO,oBAAkB,kBAA0B,gBAAmB;;cAc1F,qBACX,OAAO,oBACP,eAAA,QAAA,WAAA,cAAwD,sBACvD;;;KCvGS,mBAAmB;EAC7B,YAAY;;;cASD,mBAAoB,OAAO,qBAAmB;;cAa9C,iBAAkB,OAAO,qBAAmB;;cAa5C,oBAAqB,OAAO,oBAAkB,kBAA0B,gBAAmB;;cAc3F,mBAAoB,OAAO,oBAAkB,eAAA,cAAqC,qBAAwB;;cAc1G,oBAAqB,OAAO,oBAAkB,kBAA0B,gBAAmB;;cAc3F,wBAAyB,OAAO,oBAAkB,kBAA0B,gBAAmB;;cAc/F,2BAA4B,OAAO,oBAAkB,kBAA0B,gBAAmB;;cAclG,2BAA4B,OAAO,oBAAkB,kBAA0B,gBAA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vF,wBAAyB,OAAO,qBAAmB;;cAcnD,kBAAmB,OAAO,qBAAmB;;cAa7C,oBAAqB,OAAO,qBAAmB;;cAa/C,sBAAuB,OAAO,qBAAmB;;;;;;;KC7DlD;EACV;EACA;EACA;EACA;EACA;;;;KCqJG,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;;;KC5JzD,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;KA+K3F,cAAc,iBAAiB"}
1
+ {"version":3,"file":"index-PqQNoVuw.d.mts","names":[],"sources":["../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/core/rate-limit.ts","../src/agents.ts","../src/index.ts"],"mappings":";;;;iBAiBgB,cAAc,gBAAgB;;;;cC0BjC,gBAAiB,OAAO,qBAAmB;;cAa3C,eAAgB,OA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;;;;;;;;;;;;;;;;;;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;KA+K3F,cAAc,iBAAiB"}
package/dist/index.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { S as ToolOverrides, _ as CommitIdentity, a as GithubTokenInput, b as Octokit, c as ApprovalConfig, d as GithubToolPreset, f as PRESET_TOOLS, g as GithubWriteToolName, h as GithubToolName, i as PickGithubTools, l as GITHUB_WRITE_TOOLS, m as GITHUB_TOOL_NAMES, o as resolveGithubToken, p as PresetToolName, r as GithubToolsForPreset, s as GithubToolsContext, t as AllGithubTools, u as CombinedPresetToolNames, v as CommitToolOptions, x as ToolOptions, y as GithubTool } from "./tool-types-K8i--5D9.mjs";
2
- import { $ as closeIssue, A as getGist, At as createRepository, B as searchRepositories, C as listWorkflowRuns, Ct as replyToReviewComment, D as createGist, Dt as updatePullRequestComment, E as triggerWorkflow, Et as updatePullRequest, F as getBlame, Ft as getRepositoryTree, G as listDiscussions, H as markNotificationRead, I as getCommit, It as listBranches, J as listCommentReactions, K as addCommentReaction, L as listCommits, Lt as createOctokit, M as listGists, Mt as forkRepository, N as updateGist, Nt as getFileContent, O as createGistComment, Ot as createBranch, P as compareCommits, Pt as getRepository, Q as addLabels, R as searchCode, S as listWorkflowJobs, St as mergePullRequest, T as rerunWorkflowRun, Tt as resolveReviewThread, U as addDiscussionComment, V as listNotifications, W as getDiscussion, X as addAssignees, Y as listIssueReactions, Z as addIssueComment, _ as getCombinedStatus, _t as getPullRequest, a as createGithubAgent, at as listIssueComments, b as getWorkflowJobLogs, bt as listPullRequestReviews, c as getIssueContext, ct as removeAssignees, d as createRelease, dt as updateIssueComment, et as createIssue, f as deleteRelease, ft as updateLabel, g as updateRelease, gt as deletePullRequestComment, h as listReleases, ht as createPullRequestReview, i as CreateGithubAgentOptions, it as getIssue, j as listGistComments, jt as deleteBranch, k as deleteGist, kt as createOrUpdateFile, l as getPullRequestContext, lt as removeLabel, m as getRelease, mt as createPullRequest, n as GithubToolsOptions, nt as deleteIssueComment, o as GithubRateLimit, ot as listIssues, p as getLatestRelease, pt as addPullRequestComment, q as addIssueReaction, r as createGithubTools, rt as deleteLabel, s as getCiFailureContext, st as listLabels, t as GithubTools, tt as createLabel, u as getReleaseContext, ut as updateIssue, v as listCheckRuns, vt as listPullRequestFiles, w as listWorkflows, wt as requestReviewers, x as getWorkflowRun, xt as listPullRequests, y as cancelWorkflowRun, yt as listPullRequestReviewThreads, z as searchIssues } from "./index-BjRUOM2Z.mjs";
1
+ import { S as ToolOverrides, _ as CommitIdentity, a as GithubTokenInput, b as Octokit, c as ApprovalConfig, d as GithubToolPreset, f as PRESET_TOOLS, g as GithubWriteToolName, h as GithubToolName, i as PickGithubTools, l as GITHUB_WRITE_TOOLS, m as GITHUB_TOOL_NAMES, o as resolveGithubToken, p as PresetToolName, r as GithubToolsForPreset, s as GithubToolsContext, t as AllGithubTools, u as CombinedPresetToolNames, v as CommitToolOptions, x as ToolOptions, y as GithubTool } from "./tool-types-DbZpOYFG.mjs";
2
+ import { $ as closeIssue, A as getGist, At as createRepository, B as searchRepositories, C as listWorkflowRuns, Ct as replyToReviewComment, D as createGist, Dt as updatePullRequestComment, E as triggerWorkflow, Et as updatePullRequest, F as getBlame, Ft as getRepositoryTree, G as listDiscussions, H as markNotificationRead, I as getCommit, It as listBranches, J as listCommentReactions, K as addCommentReaction, L as listCommits, Lt as createOctokit, M as listGists, Mt as forkRepository, N as updateGist, Nt as getFileContent, O as createGistComment, Ot as createBranch, P as compareCommits, Pt as getRepository, Q as addLabels, R as searchCode, S as listWorkflowJobs, St as mergePullRequest, T as rerunWorkflowRun, Tt as resolveReviewThread, U as addDiscussionComment, V as listNotifications, W as getDiscussion, X as addAssignees, Y as listIssueReactions, Z as addIssueComment, _ as getCombinedStatus, _t as getPullRequest, a as createGithubAgent, at as listIssueComments, b as getWorkflowJobLogs, bt as listPullRequestReviews, c as getIssueContext, ct as removeAssignees, d as createRelease, dt as updateIssueComment, et as createIssue, f as deleteRelease, ft as updateLabel, g as updateRelease, gt as deletePullRequestComment, h as listReleases, ht as createPullRequestReview, i as CreateGithubAgentOptions, it as getIssue, j as listGistComments, jt as deleteBranch, k as deleteGist, kt as createOrUpdateFile, l as getPullRequestContext, lt as removeLabel, m as getRelease, mt as createPullRequest, n as GithubToolsOptions, nt as deleteIssueComment, o as GithubRateLimit, ot as listIssues, p as getLatestRelease, pt as addPullRequestComment, q as addIssueReaction, r as createGithubTools, rt as deleteLabel, s as getCiFailureContext, st as listLabels, t as GithubTools, tt as createLabel, u as getReleaseContext, ut as updateIssue, v as listCheckRuns, vt as listPullRequestFiles, w as listWorkflows, wt as requestReviewers, x as getWorkflowRun, xt as listPullRequests, y as cancelWorkflowRun, yt as listPullRequestReviewThreads, z as searchIssues } from "./index-PqQNoVuw.mjs";
3
3
  export { type AllGithubTools, type ApprovalConfig, type CombinedPresetToolNames, type CommitIdentity, type CommitToolOptions, type CreateGithubAgentOptions, GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, type GithubRateLimit, 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, deleteBranch, deleteGist, deleteIssueComment, deleteLabel, deletePullRequestComment, deleteRelease, forkRepository, getBlame, getCiFailureContext, getCombinedStatus, getCommit, getDiscussion, getFileContent, getGist, getIssue, getIssueContext, getLatestRelease, getPullRequest, getPullRequestContext, getRelease, getReleaseContext, getRepository, getRepositoryTree, getWorkflowJobLogs, getWorkflowRun, listBranches, listCheckRuns, listCommentReactions, listCommits, listDiscussions, listGistComments, listGists, listIssueComments, listIssueReactions, listIssues, listLabels, listNotifications, listPullRequestFiles, listPullRequestReviewThreads, listPullRequestReviews, listPullRequests, listReleases, listWorkflowJobs, listWorkflowRuns, listWorkflows, markNotificationRead, mergePullRequest, removeAssignees, removeLabel, replyToReviewComment, requestReviewers, rerunWorkflowRun, resolveGithubToken, resolveReviewThread, searchCode, searchIssues, searchRepositories, triggerWorkflow, updateGist, updateIssue, updateIssueComment, updateLabel, updatePullRequest, updatePullRequestComment, updateRelease };
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { Si as resolveGithubToken, n as GITHUB_TOOL_NAMES, o as PRESET_TOOLS, t as GITHUB_WRITE_TOOLS, ta as createOctokit } from "./write-tools-BEcL5Fv6.mjs";
2
- import { $ as deleteIssueComment, A as updateGist, At as getFileContent, B as addDiscussionComment, C as triggerWorkflow, Ct as updatePullRequest, D as getGist, Dt as createRepository, E as deleteGist, Et as createOrUpdateFile, F as searchCode, G as listCommentReactions, H as listDiscussions, I as searchIssues, J as addIssueComment, K as listIssueReactions, L as searchRepositories, M as getBlame, Mt as getRepositoryTree, N as getCommit, Nt as listBranches, O as listGistComments, Ot as deleteBranch, P as listCommits, Q as createLabel, R as listNotifications, S as rerunWorkflowRun, St as resolveReviewThread, T as createGistComment, Tt as createBranch, U as addCommentReaction, V as getDiscussion, W as addIssueReaction, X as closeIssue, Y as addLabels, Z as createIssue, _ as getWorkflowJobLogs, _t as listPullRequestReviews, a as getIssueContext, at as removeAssignees, b as listWorkflowRuns, bt as replyToReviewComment, c as createRelease, ct as updateIssueComment, d as getRelease, dt as createPullRequest, et as deleteLabel, f as listReleases, ft as createPullRequestReview, g as cancelWorkflowRun, gt as listPullRequestReviewThreads, h as listCheckRuns, ht as listPullRequestFiles, i as getCiFailureContext, it as listLabels, j as compareCommits, jt as getRepository, k as listGists, kt as forkRepository, l as deleteRelease, lt as updateLabel, m as getCombinedStatus, mt as getPullRequest, n as createGithubAgent, nt as listIssueComments, o as getPullRequestContext, ot as removeLabel, p as updateRelease, pt as deletePullRequestComment, q as addAssignees, rt as listIssues, s as getReleaseContext, st as updateIssue, t as createGithubTools, tt as getIssue, u as getLatestRelease, ut as addPullRequestComment, v as getWorkflowRun, vt as listPullRequests, w as createGist, wt as updatePullRequestComment, x as listWorkflows, xt as requestReviewers, y as listWorkflowJobs, yt as mergePullRequest, z as markNotificationRead } from "./src-DPcwVTf-.mjs";
1
+ import { Si as resolveGithubToken, n as GITHUB_TOOL_NAMES, na as createOctokit, o as PRESET_TOOLS, t as GITHUB_WRITE_TOOLS } from "./write-tools-Ct0ZV87Z.mjs";
2
+ import { $ as deleteIssueComment, A as updateGist, At as getFileContent, B as addDiscussionComment, C as triggerWorkflow, Ct as updatePullRequest, D as getGist, Dt as createRepository, E as deleteGist, Et as createOrUpdateFile, F as searchCode, G as listCommentReactions, H as listDiscussions, I as searchIssues, J as addIssueComment, K as listIssueReactions, L as searchRepositories, M as getBlame, Mt as getRepositoryTree, N as getCommit, Nt as listBranches, O as listGistComments, Ot as deleteBranch, P as listCommits, Q as createLabel, R as listNotifications, S as rerunWorkflowRun, St as resolveReviewThread, T as createGistComment, Tt as createBranch, U as addCommentReaction, V as getDiscussion, W as addIssueReaction, X as closeIssue, Y as addLabels, Z as createIssue, _ as getWorkflowJobLogs, _t as listPullRequestReviews, a as getIssueContext, at as removeAssignees, b as listWorkflowRuns, bt as replyToReviewComment, c as createRelease, ct as updateIssueComment, d as getRelease, dt as createPullRequest, et as deleteLabel, f as listReleases, ft as createPullRequestReview, g as cancelWorkflowRun, gt as listPullRequestReviewThreads, h as listCheckRuns, ht as listPullRequestFiles, i as getCiFailureContext, it as listLabels, j as compareCommits, jt as getRepository, k as listGists, kt as forkRepository, l as deleteRelease, lt as updateLabel, m as getCombinedStatus, mt as getPullRequest, n as createGithubAgent, nt as listIssueComments, o as getPullRequestContext, ot as removeLabel, p as updateRelease, pt as deletePullRequestComment, q as addAssignees, rt as listIssues, s as getReleaseContext, st as updateIssue, t as createGithubTools, tt as getIssue, u as getLatestRelease, ut as addPullRequestComment, v as getWorkflowRun, vt as listPullRequests, w as createGist, wt as updatePullRequestComment, x as listWorkflows, xt as requestReviewers, y as listWorkflowJobs, yt as mergePullRequest, z as markNotificationRead } from "./src-D9WxaIVj.mjs";
3
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, deleteBranch, deleteGist, deleteIssueComment, deleteLabel, deletePullRequestComment, deleteRelease, forkRepository, getBlame, getCiFailureContext, getCombinedStatus, getCommit, getDiscussion, getFileContent, getGist, getIssue, getIssueContext, getLatestRelease, getPullRequest, getPullRequestContext, getRelease, getReleaseContext, getRepository, getRepositoryTree, getWorkflowJobLogs, getWorkflowRun, listBranches, listCheckRuns, listCommentReactions, listCommits, listDiscussions, listGistComments, listGists, listIssueComments, listIssueReactions, listIssues, listLabels, listNotifications, listPullRequestFiles, listPullRequestReviewThreads, listPullRequestReviews, listPullRequests, listReleases, listWorkflowJobs, listWorkflowRuns, listWorkflows, markNotificationRead, mergePullRequest, removeAssignees, removeLabel, replyToReviewComment, requestReviewers, rerunWorkflowRun, resolveGithubToken, resolveReviewThread, searchCode, searchIssues, searchRepositories, triggerWorkflow, updateGist, updateIssue, updateIssueComment, updateLabel, updatePullRequest, updatePullRequestComment, updateRelease };
@@ -1,4 +1,4 @@
1
- import { $ as getWorkflowJobLogsInputSchema, $i as listBranchesDescription, $n as deleteIssueCommentInputSchema, $r as listPullRequestReviewsInputSchema, $t as searchCodeInputSchema, A as getLatestReleaseCore, Ai as createBranchInputSchema, An as listIssueReactionsCore, Ar as addPullRequestCommentCore, At as listGistCommentsCore, B as updateReleaseDescription, Bi as forkRepositoryCore, Bn as addLabelsDescription, Br as deletePullRequestCommentDescription, Bt as compareCommitsDescription, C as getReleaseContextInputSchema, Ci as compareCommitsToModelOutput, Cn as addCommentReactionInputSchema, Cr as updateIssueCommentInputSchema, Ct as createGistInputSchema, D as deleteReleaseCore, Di as listPullRequestFilesToModelOutput, Dn as listCommentReactionsCore, Dr as updateLabelCore, Dt as getGistCore, E as createReleaseInputSchema, Ei as getPullRequestContextToModelOutput, En as addIssueReactionInputSchema, Er as updateIssueInputSchema, Et as deleteGistInputSchema, F as getReleaseInputSchema, Fi as createRepositoryDescription, Fn as addAssigneesInputSchema, Fr as createPullRequestInputSchema, Ft as listGistsInputSchema, G as listCheckRunsCore, Gi as getFileContentInputSchema, Gn as createIssueCore, Gr as listPullRequestFilesCore, Gt as getCommitCore, H as getCombinedStatusCore, Hi as forkRepositoryInputSchema, Hn as closeIssueCore, Hr as getPullRequestCore, Ht as getBlameCore, I as listReleasesCore, Ii as createRepositoryInputSchema, In as addIssueCommentCore, Ir as createPullRequestReviewCore, It as updateGistCore, J as cancelWorkflowRunCore, Ji as getRepositoryInputSchema, Jn as createLabelCore, Jr as listPullRequestReviewThreadsCore, Jt as listCommitsCore, K as listCheckRunsDescription, Ki as getRepositoryCore, Kn as createIssueDescription, Kr as listPullRequestFilesDescription, Kt as getCommitDescription, L as listReleasesDescription, Li as deleteBranchCore, Ln as addIssueCommentDescription, Lr as createPullRequestReviewDescription, Lt as updateGistDescription, M as getLatestReleaseInputSchema, Mi as createOrUpdateFileDescription, Mn as listIssueReactionsInputSchema, Mr as addPullRequestCommentInputSchema, Mt as listGistCommentsInputSchema, N as getReleaseCore, Ni as createOrUpdateFileInputSchema, Nn as addAssigneesCore, Nr as createPullRequestCore, Nt as listGistsCore, O as deleteReleaseDescription, Oi as createBranchCore, On as listCommentReactionsDescription, Or as updateLabelDescription, Ot as getGistDescription, P as getReleaseDescription, Pi as createRepositoryCore, Pn as addAssigneesDescription, Pr as createPullRequestDescription, Pt as listGistsDescription, Q as getWorkflowJobLogsDescription, Qi as listBranchesCore, Qn as deleteIssueCommentDescription, Qr as listPullRequestReviewsDescription, Qt as searchCodeDescription, R as listReleasesInputSchema, Ri as deleteBranchDescription, Rn as addIssueCommentInputSchema, Rr as createPullRequestReviewInputSchema, Rt as updateGistInputSchema, S as getReleaseContextDescription, Si as resolveGithubToken, Sn as addCommentReactionDescription, Sr as updateIssueCommentDescription, St as createGistDescription, T as createReleaseDescription, Ti as getFileContentToModelOutput, Tn as addIssueReactionDescription, Tr as updateIssueDescription, Tt as deleteGistDescription, U as getCombinedStatusDescription, Ui as getFileContentCore, Un as closeIssueDescription, Ur as getPullRequestDescription, Ut as getBlameDescription, V as updateReleaseInputSchema, Vi as forkRepositoryDescription, Vn as addLabelsInputSchema, Vr as deletePullRequestCommentInputSchema, Vt as compareCommitsInputSchema, W as getCombinedStatusInputSchema, Wi as getFileContentDescription, Wn as closeIssueInputSchema, Wr as getPullRequestInputSchema, Wt as getBlameInputSchema, X as cancelWorkflowRunInputSchema, Xi as getRepositoryTreeDescription, Xn as createLabelInputSchema, Xr as listPullRequestReviewThreadsInputSchema, Xt as listCommitsInputSchema, Y as cancelWorkflowRunDescription, Yi as getRepositoryTreeCore, Yn as createLabelDescription, Yr as listPullRequestReviewThreadsDescription, Yt as listCommitsDescription, Z as getWorkflowJobLogsCore, Zi as getRepositoryTreeInputSchema, Zn as deleteIssueCommentCore, Zr as listPullRequestReviewsCore, Zt as searchCodeCore, _ as getIssueContextInputSchema, _i as updatePullRequestCommentInputSchema, _n as getDiscussionInputSchema, _r as removeAssigneesInputSchema, _t as triggerWorkflowInputSchema, ai as mergePullRequestInputSchema, an as searchRepositoriesInputSchema, ar as getIssueInputSchema, at as listWorkflowJobsInputSchema, b as getPullRequestContextInputSchema, bi as updatePullRequestInputSchema, bn as listDiscussionsInputSchema, br as removeLabelInputSchema, bt as createGistCommentInputSchema, c as bindToolsContext, ci as replyToReviewCommentInputSchema, cn as listNotificationsInputSchema, cr as listIssueCommentsInputSchema, ct as listWorkflowRunsInputSchema, di as requestReviewersInputSchema, dn as markNotificationReadInputSchema, dr as listIssuesInputSchema, dt as listWorkflowsInputSchema, ea as listBranchesInputSchema, ei as listPullRequestsCore, en as searchIssuesCore, er as deleteLabelCore, et as getWorkflowRunCore, f as getCiFailureContextCore, fi as resolveReviewThreadCore, fn as addDiscussionCommentCore, fr as listLabelsCore, ft as rerunWorkflowRunCore, g as getIssueContextDescription, gi as updatePullRequestCommentDescription, gn as getDiscussionDescription, gr as removeAssigneesDescription, gt as triggerWorkflowDescription, h as getIssueContextCore, hi as updatePullRequestCommentCore, hn as getDiscussionCore, hr as removeAssigneesCore, ht as triggerWorkflowCore, ii as mergePullRequestDescription, in as searchRepositoriesDescription, ir as getIssueDescription, it as listWorkflowJobsDescription, j as getLatestReleaseDescription, ji as createOrUpdateFileCore, jn as listIssueReactionsDescription, jr as addPullRequestCommentDescription, jt as listGistCommentsDescription, k as deleteReleaseInputSchema, ki as createBranchDescription, kn as listCommentReactionsInputSchema, kr as updateLabelInputSchema, kt as getGistInputSchema, l as formatContextInstructions, li as requestReviewersCore, ln as markNotificationReadCore, lr as listIssuesCore, lt as listWorkflowsCore, m as getCiFailureContextInputSchema, mi as resolveReviewThreadInputSchema, mn as addDiscussionCommentInputSchema, mr as listLabelsInputSchema, mt as rerunWorkflowRunInputSchema, na as stripRateLimit, ni as listPullRequestsInputSchema, nn as searchIssuesInputSchema, nr as deleteLabelInputSchema, nt as getWorkflowRunInputSchema, oi as replyToReviewCommentCore, on as listNotificationsCore, or as listIssueCommentsCore, ot as listWorkflowRunsCore, p as getCiFailureContextDescription, pi as resolveReviewThreadDescription, pn as addDiscussionCommentDescription, pr as listLabelsDescription, pt as rerunWorkflowRunDescription, q as listCheckRunsInputSchema, qi as getRepositoryDescription, qn as createIssueInputSchema, qr as listPullRequestFilesInputSchema, qt as getCommitInputSchema, ri as mergePullRequestCore, rn as searchRepositoriesCore, rr as getIssueCore, rt as listWorkflowJobsCore, s as resolvePresetTools, si as replyToReviewCommentDescription, sn as listNotificationsDescription, sr as listIssueCommentsDescription, st as listWorkflowRunsDescription, ti as listPullRequestsDescription, tn as searchIssuesDescription, tr as deleteLabelDescription, tt as getWorkflowRunDescription, ui as requestReviewersDescription, un as markNotificationReadDescription, ur as listIssuesDescription, ut as listWorkflowsDescription, v as getPullRequestContextCore, vi as updatePullRequestCore, vn as listDiscussionsCore, vr as removeLabelCore, vt as createGistCommentCore, w as createReleaseCore, wi as getCommitToModelOutput, wn as addIssueReactionCore, wr as updateIssueCore, wt as deleteGistCore, x as getReleaseContextCore, xi as createGithubTokenResolver, xn as addCommentReactionCore, xr as updateIssueCommentCore, xt as createGistCore, y as getPullRequestContextDescription, yi as updatePullRequestDescription, yn as listDiscussionsDescription, yr as removeLabelDescription, yt as createGistCommentDescription, z as updateReleaseCore, zi as deleteBranchInputSchema, zn as addLabelsCore, zr as deletePullRequestCommentCore, zt as compareCommitsCore } from "./write-tools-BEcL5Fv6.mjs";
1
+ import { $ as getWorkflowJobLogsInputSchema, $i as listBranchesCore, $n as deleteIssueCommentInputSchema, $r as listPullRequestReviewsInputSchema, $t as searchCodeInputSchema, A as getLatestReleaseCore, Ai as createBranchDescription, An as listIssueReactionsCore, Ar as addPullRequestCommentCore, At as listGistCommentsCore, B as updateReleaseDescription, Bi as deleteBranchInputSchema, Bn as addLabelsDescription, Br as deletePullRequestCommentDescription, Bt as compareCommitsDescription, C as getReleaseContextInputSchema, Ci as compareCommitsToModelOutput, Cn as addCommentReactionInputSchema, Cr as updateIssueCommentInputSchema, Ct as createGistInputSchema, D as deleteReleaseCore, Di as getRepositoryTreeToModelOutput, Dn as listCommentReactionsCore, Dr as updateLabelCore, Dt as getGistCore, E as createReleaseInputSchema, Ei as getPullRequestContextToModelOutput, En as addIssueReactionInputSchema, Er as updateIssueInputSchema, Et as deleteGistInputSchema, F as getReleaseInputSchema, Fi as createRepositoryCore, Fn as addAssigneesInputSchema, Fr as createPullRequestInputSchema, Ft as listGistsInputSchema, G as listCheckRunsCore, Gi as getFileContentDescription, Gn as createIssueCore, Gr as listPullRequestFilesCore, Gt as getCommitCore, H as getCombinedStatusCore, Hi as forkRepositoryDescription, Hn as closeIssueCore, Hr as getPullRequestCore, Ht as getBlameCore, I as listReleasesCore, Ii as createRepositoryDescription, In as addIssueCommentCore, Ir as createPullRequestReviewCore, It as updateGistCore, J as cancelWorkflowRunCore, Ji as getRepositoryDescription, Jn as createLabelCore, Jr as listPullRequestReviewThreadsCore, Jt as listCommitsCore, K as listCheckRunsDescription, Ki as getFileContentInputSchema, Kn as createIssueDescription, Kr as listPullRequestFilesDescription, Kt as getCommitDescription, L as listReleasesDescription, Li as createRepositoryInputSchema, Ln as addIssueCommentDescription, Lr as createPullRequestReviewDescription, Lt as updateGistDescription, M as getLatestReleaseInputSchema, Mi as createOrUpdateFileCore, Mn as listIssueReactionsInputSchema, Mr as addPullRequestCommentInputSchema, Mt as listGistCommentsInputSchema, N as getReleaseCore, Ni as createOrUpdateFileDescription, Nn as addAssigneesCore, Nr as createPullRequestCore, Nt as listGistsCore, O as deleteReleaseDescription, Oi as listPullRequestFilesToModelOutput, On as listCommentReactionsDescription, Or as updateLabelDescription, Ot as getGistDescription, P as getReleaseDescription, Pi as createOrUpdateFileInputSchema, Pn as addAssigneesDescription, Pr as createPullRequestDescription, Pt as listGistsDescription, Q as getWorkflowJobLogsDescription, Qi as getRepositoryTreeInputSchema, Qn as deleteIssueCommentDescription, Qr as listPullRequestReviewsDescription, Qt as searchCodeDescription, R as listReleasesInputSchema, Ri as deleteBranchCore, Rn as addIssueCommentInputSchema, Rr as createPullRequestReviewInputSchema, Rt as updateGistInputSchema, S as getReleaseContextDescription, Si as resolveGithubToken, Sn as addCommentReactionDescription, Sr as updateIssueCommentDescription, St as createGistDescription, T as createReleaseDescription, Ti as getFileContentToModelOutput, Tn as addIssueReactionDescription, Tr as updateIssueDescription, Tt as deleteGistDescription, U as getCombinedStatusDescription, Ui as forkRepositoryInputSchema, Un as closeIssueDescription, Ur as getPullRequestDescription, Ut as getBlameDescription, V as updateReleaseInputSchema, Vi as forkRepositoryCore, Vn as addLabelsInputSchema, Vr as deletePullRequestCommentInputSchema, Vt as compareCommitsInputSchema, W as getCombinedStatusInputSchema, Wi as getFileContentCore, Wn as closeIssueInputSchema, Wr as getPullRequestInputSchema, Wt as getBlameInputSchema, X as cancelWorkflowRunInputSchema, Xi as getRepositoryTreeCore, Xn as createLabelInputSchema, Xr as listPullRequestReviewThreadsInputSchema, Xt as listCommitsInputSchema, Y as cancelWorkflowRunDescription, Yi as getRepositoryInputSchema, Yn as createLabelDescription, Yr as listPullRequestReviewThreadsDescription, Yt as listCommitsDescription, Z as getWorkflowJobLogsCore, Zi as getRepositoryTreeDescription, Zn as deleteIssueCommentCore, Zr as listPullRequestReviewsCore, Zt as searchCodeCore, _ as getIssueContextInputSchema, _i as updatePullRequestCommentInputSchema, _n as getDiscussionInputSchema, _r as removeAssigneesInputSchema, _t as triggerWorkflowInputSchema, ai as mergePullRequestInputSchema, an as searchRepositoriesInputSchema, ar as getIssueInputSchema, at as listWorkflowJobsInputSchema, b as getPullRequestContextInputSchema, bi as updatePullRequestInputSchema, bn as listDiscussionsInputSchema, br as removeLabelInputSchema, bt as createGistCommentInputSchema, c as bindToolsContext, ci as replyToReviewCommentInputSchema, cn as listNotificationsInputSchema, cr as listIssueCommentsInputSchema, ct as listWorkflowRunsInputSchema, di as requestReviewersInputSchema, dn as markNotificationReadInputSchema, dr as listIssuesInputSchema, dt as listWorkflowsInputSchema, ea as listBranchesDescription, ei as listPullRequestsCore, en as searchIssuesCore, er as deleteLabelCore, et as getWorkflowRunCore, f as getCiFailureContextCore, fi as resolveReviewThreadCore, fn as addDiscussionCommentCore, fr as listLabelsCore, ft as rerunWorkflowRunCore, g as getIssueContextDescription, gi as updatePullRequestCommentDescription, gn as getDiscussionDescription, gr as removeAssigneesDescription, gt as triggerWorkflowDescription, h as getIssueContextCore, hi as updatePullRequestCommentCore, hn as getDiscussionCore, hr as removeAssigneesCore, ht as triggerWorkflowCore, ii as mergePullRequestDescription, in as searchRepositoriesDescription, ir as getIssueDescription, it as listWorkflowJobsDescription, j as getLatestReleaseDescription, ji as createBranchInputSchema, jn as listIssueReactionsDescription, jr as addPullRequestCommentDescription, jt as listGistCommentsDescription, k as deleteReleaseInputSchema, ki as createBranchCore, kn as listCommentReactionsInputSchema, kr as updateLabelInputSchema, kt as getGistInputSchema, l as formatContextInstructions, li as requestReviewersCore, ln as markNotificationReadCore, lr as listIssuesCore, lt as listWorkflowsCore, m as getCiFailureContextInputSchema, mi as resolveReviewThreadInputSchema, mn as addDiscussionCommentInputSchema, mr as listLabelsInputSchema, mt as rerunWorkflowRunInputSchema, ni as listPullRequestsInputSchema, nn as searchIssuesInputSchema, nr as deleteLabelInputSchema, nt as getWorkflowRunInputSchema, oi as replyToReviewCommentCore, on as listNotificationsCore, or as listIssueCommentsCore, ot as listWorkflowRunsCore, p as getCiFailureContextDescription, pi as resolveReviewThreadDescription, pn as addDiscussionCommentDescription, pr as listLabelsDescription, pt as rerunWorkflowRunDescription, q as listCheckRunsInputSchema, qi as getRepositoryCore, qn as createIssueInputSchema, qr as listPullRequestFilesInputSchema, qt as getCommitInputSchema, ra as stripRateLimit, ri as mergePullRequestCore, rn as searchRepositoriesCore, rr as getIssueCore, rt as listWorkflowJobsCore, s as resolvePresetTools, si as replyToReviewCommentDescription, sn as listNotificationsDescription, sr as listIssueCommentsDescription, st as listWorkflowRunsDescription, ta as listBranchesInputSchema, ti as listPullRequestsDescription, tn as searchIssuesDescription, tr as deleteLabelDescription, tt as getWorkflowRunDescription, ui as requestReviewersDescription, un as markNotificationReadDescription, ur as listIssuesDescription, ut as listWorkflowsDescription, v as getPullRequestContextCore, vi as updatePullRequestCore, vn as listDiscussionsCore, vr as removeLabelCore, vt as createGistCommentCore, w as createReleaseCore, wi as getCommitToModelOutput, wn as addIssueReactionCore, wr as updateIssueCore, wt as deleteGistCore, x as getReleaseContextCore, xi as createGithubTokenResolver, xn as addCommentReactionCore, xr as updateIssueCommentCore, xt as createGistCore, y as getPullRequestContextDescription, yi as updatePullRequestDescription, yn as listDiscussionsDescription, yr as removeLabelDescription, yt as createGistCommentDescription, z as updateReleaseCore, zi as deleteBranchDescription, zn as addLabelsCore, zr as deletePullRequestCommentCore, zt as compareCommitsCore } from "./write-tools-Ct0ZV87Z.mjs";
2
2
  import { ToolLoopAgent, tool } from "ai";
3
3
  //#region src/tools/repository.ts
4
4
  async function getRepositoryStep(args) {
@@ -49,6 +49,7 @@ async function getRepositoryTreeStep(args) {
49
49
  const getRepositoryTree = (token) => tool({
50
50
  description: getRepositoryTreeDescription,
51
51
  inputSchema: getRepositoryTreeInputSchema,
52
+ toModelOutput: getRepositoryTreeToModelOutput,
52
53
  execute: async (args) => getRepositoryTreeStep({
53
54
  token: await resolveGithubToken(token),
54
55
  ...args
@@ -1185,7 +1186,8 @@ function resolveAiSdkApproval(toolName, config) {
1185
1186
  //#region src/agents.ts
1186
1187
  const SHARED_RULES = `When a tool execution is denied by the user, do not retry it. Briefly acknowledge the decision and move on.
1187
1188
  Call independent read tools in the same step when you already know the arguments — never serialize reads that could run in parallel.
1188
- Bodies default to detail summary; patches default to includePatch false; prefer getFileContent with startLine/endLine or maxLines for large files.`;
1189
+ Bodies default to detail summary; patches default to includePatch false; prefer getFileContent with startLine/endLine or maxLines for large files.
1190
+ Paged lists return { items, hasMore, page, nextPage }. When hasMore, call with nextPage or raise maxPages — never the same page. Prefer path/author/since/until on listCommits instead of walking history. Prefer a path prefix on getRepositoryTree over recursive true.`;
1189
1191
  const DEFAULT_INSTRUCTIONS = `You are a helpful GitHub assistant. You can read and explore repositories, issues, pull requests, discussions, commits, code, gists, and workflows. You can also create issues, pull requests, comments, gists, reactions, trigger workflows, and update files when asked.
1190
1192
 
1191
1193
  Prefer getPullRequestContext, getIssueContext, getReleaseContext, or getCiFailureContext for multi-part reads instead of chaining separate tools.
@@ -1522,4 +1524,4 @@ function withStrippedRateLimit(tool) {
1522
1524
  //#endregion
1523
1525
  export { deleteIssueComment as $, updateGist as A, getFileContent as At, addDiscussionComment as B, triggerWorkflow as C, updatePullRequest as Ct, getGist as D, createRepository as Dt, deleteGist as E, createOrUpdateFile as Et, searchCode as F, listCommentReactions as G, listDiscussions as H, searchIssues as I, addIssueComment as J, listIssueReactions as K, searchRepositories as L, getBlame as M, getRepositoryTree as Mt, getCommit as N, listBranches as Nt, listGistComments as O, deleteBranch as Ot, listCommits as P, createLabel as Q, listNotifications as R, rerunWorkflowRun as S, resolveReviewThread as St, createGistComment as T, createBranch as Tt, addCommentReaction as U, getDiscussion as V, addIssueReaction as W, closeIssue as X, addLabels as Y, createIssue as Z, getWorkflowJobLogs as _, listPullRequestReviews as _t, getIssueContext as a, removeAssignees as at, listWorkflowRuns as b, replyToReviewComment as bt, createRelease as c, updateIssueComment as ct, getRelease as d, createPullRequest as dt, deleteLabel as et, listReleases as f, createPullRequestReview as ft, cancelWorkflowRun as g, listPullRequestReviewThreads as gt, listCheckRuns as h, listPullRequestFiles as ht, getCiFailureContext as i, listLabels as it, compareCommits as j, getRepository as jt, listGists as k, forkRepository as kt, deleteRelease as l, updateLabel as lt, getCombinedStatus as m, getPullRequest as mt, createGithubAgent as n, listIssueComments as nt, getPullRequestContext as o, removeLabel as ot, updateRelease as p, deletePullRequestComment as pt, addAssignees as q, resolveInstructions as r, listIssues as rt, getReleaseContext as s, updateIssue as st, createGithubTools as t, getIssue as tt, getLatestRelease as u, addPullRequestComment as ut, getWorkflowRun as v, listPullRequests as vt, createGist as w, updatePullRequestComment as wt, listWorkflows as x, requestReviewers as xt, listWorkflowJobs as y, mergePullRequest as yt, markNotificationRead as z };
1524
1526
 
1525
- //# sourceMappingURL=src-DPcwVTf-.mjs.map
1527
+ //# sourceMappingURL=src-D9WxaIVj.mjs.map