@github-tools/sdk 1.21.0 → 1.23.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.
- package/README.md +9 -9
- package/dist/{approval-policy-CEMMPq92.mjs → approval-policy-DJlImo7H.mjs} +3 -4
- package/dist/{approval-policy-CEMMPq92.mjs.map → approval-policy-DJlImo7H.mjs.map} +1 -1
- package/dist/connect/eve.d.mts +2 -4
- package/dist/connect/eve.d.mts.map +1 -1
- package/dist/connect/eve.mjs +3 -4
- package/dist/connect/eve.mjs.map +1 -1
- package/dist/connect.d.mts +3 -9
- package/dist/connect.d.mts.map +1 -1
- package/dist/connect.mjs +3 -4
- package/dist/{cores-meFAMt2D.mjs → cores-H6HKlwFZ.mjs} +3 -4
- package/dist/{cores-meFAMt2D.mjs.map → cores-H6HKlwFZ.mjs.map} +1 -1
- package/dist/{dry-run-DXckOam2.d.mts → dry-run-BAbes7Mv.d.mts} +2 -28
- package/dist/dry-run-BAbes7Mv.d.mts.map +1 -0
- package/dist/{evaluation-DJHINyAu.mjs → evaluation-Dlf-571x.mjs} +4 -6
- package/dist/{evaluation-DJHINyAu.mjs.map → evaluation-Dlf-571x.mjs.map} +1 -1
- package/dist/{eve-runtime-B_CJE9JV.d.mts → eve-runtime-CoBSN8nF.d.mts} +66 -15
- package/dist/eve-runtime-CoBSN8nF.d.mts.map +1 -0
- package/dist/{eve-runtime-DPzMPCLt.mjs → eve-runtime-DEdQqbCs.mjs} +214 -27
- package/dist/eve-runtime-DEdQqbCs.mjs.map +1 -0
- package/dist/eve-runtime.d.mts +5 -5
- package/dist/eve-runtime.mjs +4 -4
- package/dist/eve.d.mts +67 -69
- package/dist/eve.d.mts.map +1 -1
- package/dist/eve.mjs +67 -68
- package/dist/eve.mjs.map +1 -1
- package/dist/{index-CzzrtCVj.d.mts → index-v5n5OLs7.d.mts} +29 -54
- package/dist/index-v5n5OLs7.d.mts.map +1 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/{interrupts-BSDPwdJ2.d.mts → interrupts-MwQ_v_PF.d.mts} +1 -3
- package/dist/interrupts-MwQ_v_PF.d.mts.map +1 -0
- package/dist/rolldown-runtime-D8jQpDG7.mjs +12 -0
- package/dist/{src-BlhrSieS.mjs → src-BRZIY_PZ.mjs} +21 -38
- package/dist/{src-BlhrSieS.mjs.map → src-BRZIY_PZ.mjs.map} +1 -1
- package/dist/tanstack/interrupts.d.mts +1 -1
- package/dist/tanstack/interrupts.mjs +1 -2
- package/dist/tanstack.d.mts +3 -20
- package/dist/tanstack.d.mts.map +1 -1
- package/dist/tanstack.mjs +8 -13
- package/dist/tanstack.mjs.map +1 -1
- package/dist/{token-BLps09gm.mjs → token-DZu9uttC.mjs} +6 -10
- package/dist/{token-BLps09gm.mjs.map → token-DZu9uttC.mjs.map} +1 -1
- package/dist/{types-Bln8U42J.d.mts → types-8KtcPTao.d.mts} +3 -7
- package/dist/types-8KtcPTao.d.mts.map +1 -0
- package/dist/{types-C7O2lwwz.d.mts → types-C-BIKmas.d.mts} +2 -4
- package/dist/types-C-BIKmas.d.mts.map +1 -0
- package/dist/workflow.d.mts +2 -4
- package/dist/workflow.d.mts.map +1 -1
- package/dist/workflow.mjs +3 -4
- package/dist/{write-tools-w-8tjnDQ.mjs → write-tools-C-962T9O.mjs} +57 -88
- package/dist/write-tools-C-962T9O.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/dry-run-DXckOam2.d.mts.map +0 -1
- package/dist/eve-runtime-B_CJE9JV.d.mts.map +0 -1
- package/dist/eve-runtime-DPzMPCLt.mjs.map +0 -1
- package/dist/index-CzzrtCVj.d.mts.map +0 -1
- package/dist/interrupts-BSDPwdJ2.d.mts.map +0 -1
- package/dist/types-Bln8U42J.d.mts.map +0 -1
- package/dist/types-C7O2lwwz.d.mts.map +0 -1
- package/dist/write-tools-w-8tjnDQ.mjs.map +0 -1
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 resolveEveToolApproval,\n isEveApprovalDisabled,\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 * Edit files in one commit, by exact text replacement or whole contents, on a new or existing branch, and optionally open 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 editFiles = factory('editFiles')\n/**\n * List the required checks, required reviews and other rules that protect a 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 getBranchRules = factory('getBranchRules')\n/**\n * Get a user's permission and role on a repository, to check whether they may trigger the bot or approve an action.\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 getCollaboratorPermission = factory('getCollaboratorPermission')\n/**\n * List code scanning alerts for 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 listCodeScanningAlerts = factory('listCodeScanningAlerts')\n/**\n * List Dependabot alerts for vulnerable dependencies.\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 listDependabotAlerts = factory('listDependabotAlerts')\n/**\n * List secret scanning alerts, without the secrets.\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 listSecretScanningAlerts = factory('listSecretScanningAlerts')\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 * Merge a pull request once its required checks and reviews pass. 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 enablePullRequestAutoMerge = factory('enablePullRequestAutoMerge')\n/**\n * Cancel a pending auto-merge. 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 disablePullRequestAutoMerge = factory('disablePullRequestAutoMerge')\n/**\n * Bring a pull request branch up to date by merging its base branch into it. 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 updatePullRequestBranch = factory('updatePullRequestBranch')\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 milestones in a GitHub repository with their due dates and issue counts.\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 listMilestones = factory('listMilestones')\n/**\n * List the sub-issues of an 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 listSubIssues = factory('listSubIssues')\n/**\n * Add an existing issue as a sub-issue of another 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 addSubIssue = factory('addSubIssue')\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 * Report a result on a commit as a commit status. 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 createCommitStatus = factory('createCommitStatus')\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":";;;;;;;;;;;;;;;;;;;;;;;;AA0DA,SAAgB,kBAAkB,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O1D,MAAa,iBAAiB,QAAQ,gBAAgB;;;;;;;AAOtD,MAAa,mBAAmB,QAAQ,kBAAkB;;;;;;;AAO1D,MAAa,kBAAkB,QAAQ,iBAAiB;;;;;;;AAOxD,MAAa,oBAAoB,QAAQ,mBAAmB;;;;;;;AAO5D,MAAa,mBAAmB,QAAQ,kBAAkB;;;;;;;AAO1D,MAAa,qBAAqB,QAAQ,oBAAoB;;;;;;;AAO9D,MAAa,sBAAsB,QAAQ,qBAAqB;;;;;;;AAOhE,MAAa,oBAAoB,QAAQ,mBAAmB"}
|
|
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 resolveEveToolApproval,\n isEveApprovalDisabled,\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\n */\nexport const createOrUpdateFile = factory('createOrUpdateFile')\n/**\n * Edit files in one commit, by exact text replacement or whole contents, on a new or existing branch, and optionally open 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/integrations/eve.\n */\nexport const editFiles = factory('editFiles')\n/**\n * List the required checks, required reviews and other rules that protect a branch.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/integrations/eve.\n */\nexport const getBranchRules = factory('getBranchRules')\n/**\n * Get a user's permission and role on a repository, to check whether they may trigger the bot or approve an action.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/integrations/eve.\n */\nexport const getCollaboratorPermission = factory('getCollaboratorPermission')\n/**\n * List code scanning alerts for 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/integrations/eve.\n */\nexport const listCodeScanningAlerts = factory('listCodeScanningAlerts')\n/**\n * List Dependabot alerts for vulnerable dependencies.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/integrations/eve.\n */\nexport const listDependabotAlerts = factory('listDependabotAlerts')\n/**\n * List secret scanning alerts, without the secrets.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/integrations/eve.\n */\nexport const listSecretScanningAlerts = factory('listSecretScanningAlerts')\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\n */\nexport const mergePullRequest = factory('mergePullRequest')\n/**\n * Merge a pull request once its required checks and reviews pass. 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/integrations/eve.\n */\nexport const enablePullRequestAutoMerge = factory('enablePullRequestAutoMerge')\n/**\n * Cancel a pending auto-merge. 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/integrations/eve.\n */\nexport const disablePullRequestAutoMerge = factory('disablePullRequestAutoMerge')\n/**\n * Bring a pull request branch up to date by merging its base branch into it. 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/integrations/eve.\n */\nexport const updatePullRequestBranch = factory('updatePullRequestBranch')\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\n */\nexport const closeIssue = factory('closeIssue')\n/**\n * List milestones in a GitHub repository with their due dates and issue counts.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/integrations/eve.\n */\nexport const listMilestones = factory('listMilestones')\n/**\n * List the sub-issues of an issue.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/integrations/eve.\n */\nexport const listSubIssues = factory('listSubIssues')\n/**\n * Add an existing issue as a sub-issue of another 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/integrations/eve.\n */\nexport const addSubIssue = factory('addSubIssue')\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\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/integrations/eve.\n */\nexport const rerunWorkflowRun = factory('rerunWorkflowRun')\n/**\n * Report a result on a commit as a commit status. 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/integrations/eve.\n */\nexport const createCommitStatus = factory('createCommitStatus')\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/integrations/eve.\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/integrations/eve.\n */\nexport const getReleaseContext = factory('getReleaseContext')\n"],"mappings":";;;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;AAOpD,MAAa,mBAAmB,QAAQ,kBAAkB;;;;;;;AAO1D,MAAa,iBAAiB,QAAQ,gBAAgB;;;;;;;AAOtD,MAAa,mBAAmB,QAAQ,kBAAkB;;;;;;;AAO1D,MAAa,kBAAkB,QAAQ,iBAAiB;;;;;;;AAOxD,MAAa,oBAAoB,QAAQ,mBAAmB;;;;;;;AAO5D,MAAa,mBAAmB,QAAQ,kBAAkB;;;;;;;AAO1D,MAAa,qBAAqB,QAAQ,oBAAoB;;;;;;;AAO9D,MAAa,sBAAsB,QAAQ,qBAAqB;;;;;;;AAOhE,MAAa,oBAAoB,QAAQ,mBAAmB"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as GithubToolPreset, G as GithubToolName, H as PresetToolName, L as GithubGuardrails, N as GithubTokenInput, c as CommitIdentity, f as ToolOptions, i as GithubToolsBaseOptions, l as CommitToolOptions, r as AllGithubTools, s as GithubToolsContext, u as GithubTool, z as CombinedPresetToolNames } from "./dry-run-BAbes7Mv.mjs";
|
|
2
2
|
import { ToolLoopAgent, ToolLoopAgentSettings, ToolSet } from "ai";
|
|
3
3
|
import { Octokit } from "octokit";
|
|
4
4
|
import "evlog";
|
|
5
|
-
//#region src/core/instructions.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* Guidance for using the GitHub tools, for an agent that has its own system prompt, such as an eve
|
|
8
7
|
* agent mounting the GitHub extension. Unlike {@link resolveInstructions}, it leaves out the
|
|
@@ -13,8 +12,6 @@ declare function resolveToolGuidance(options: {
|
|
|
13
12
|
preset?: GithubToolPreset | GithubToolPreset[];
|
|
14
13
|
context?: GithubToolsContext;
|
|
15
14
|
}): string;
|
|
16
|
-
//#endregion
|
|
17
|
-
//#region src/agents.d.ts
|
|
18
15
|
/** Name of the tool `preset: 'auto'` adds so the model can call GitHub tools that were not picked. */
|
|
19
16
|
declare const CALL_GITHUB_TOOL = "callGithubTool";
|
|
20
17
|
type AgentOptions = Omit<ToolLoopAgentSettings<ToolSet>, 'model' | 'tools' | 'instructions'>;
|
|
@@ -57,11 +54,7 @@ declare function createGithubAgent<P extends GithubToolPreset>(options: CreateGi
|
|
|
57
54
|
declare function createGithubAgent<P extends readonly GithubToolPreset[]>(options: CreateGithubAgentOptions & {
|
|
58
55
|
preset: P;
|
|
59
56
|
}): ToolLoopAgent<never, Pick<AllGithubTools, CombinedPresetToolNames<P>>>;
|
|
60
|
-
//#endregion
|
|
61
|
-
//#region src/client.d.ts
|
|
62
57
|
declare function createOctokit(token: string): Octokit;
|
|
63
|
-
//#endregion
|
|
64
|
-
//#region src/tools/repository.d.ts
|
|
65
58
|
/** Get information about a GitHub repository including description, stars, forks, language, and default branch. */
|
|
66
59
|
declare const getRepository: (token: GithubTokenInput) => GithubTool;
|
|
67
60
|
/** List branches in a GitHub repository. */
|
|
@@ -86,8 +79,6 @@ declare const editFiles: (token: GithubTokenInput, { needsApproval, author, comm
|
|
|
86
79
|
declare const getBranchRules: (token: GithubTokenInput) => GithubTool;
|
|
87
80
|
/** Get a user's permission and role on a repository. */
|
|
88
81
|
declare const getCollaboratorPermission: (token: GithubTokenInput) => GithubTool;
|
|
89
|
-
//#endregion
|
|
90
|
-
//#region src/tools/pull-requests.d.ts
|
|
91
82
|
type MergeToolOptions = ToolOptions & {
|
|
92
83
|
coAuthors?: CommitIdentity[];
|
|
93
84
|
/** Base branches the pull request may be merged into, as in `guardrails.branches`. */
|
|
@@ -133,8 +124,6 @@ declare const enablePullRequestAutoMerge: (token: GithubTokenInput, { needsAppro
|
|
|
133
124
|
declare const disablePullRequestAutoMerge: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
134
125
|
/** Merge a pull request's base branch into its head branch. Requires approval by default. */
|
|
135
126
|
declare const updatePullRequestBranch: (token: GithubTokenInput, { needsApproval, guardrails }?: UpdateBranchToolOptions) => GithubTool;
|
|
136
|
-
//#endregion
|
|
137
|
-
//#region src/tools/issues.d.ts
|
|
138
127
|
/** List issues for a GitHub repository (excludes pull requests). */
|
|
139
128
|
declare const listIssues: (token: GithubTokenInput) => GithubTool;
|
|
140
129
|
/** Get detailed information about a specific issue. */
|
|
@@ -175,8 +164,6 @@ declare const listMilestones: (token: GithubTokenInput) => GithubTool;
|
|
|
175
164
|
declare const listSubIssues: (token: GithubTokenInput) => GithubTool;
|
|
176
165
|
/** Add an existing issue as a sub-issue of another issue. Requires approval by default. */
|
|
177
166
|
declare const addSubIssue: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
178
|
-
//#endregion
|
|
179
|
-
//#region src/tools/reactions.d.ts
|
|
180
167
|
/** List reactions on an issue or pull request conversation. */
|
|
181
168
|
declare const listIssueReactions: (token: GithubTokenInput) => GithubTool;
|
|
182
169
|
/** React to an issue or pull request with an emoji. Requires approval by default. */
|
|
@@ -185,30 +172,22 @@ declare const addIssueReaction: (token: GithubTokenInput, { needsApproval }?: To
|
|
|
185
172
|
declare const listCommentReactions: (token: GithubTokenInput) => GithubTool;
|
|
186
173
|
/** React to an issue or pull request comment with an emoji. Requires approval by default. */
|
|
187
174
|
declare const addCommentReaction: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
188
|
-
//#endregion
|
|
189
|
-
//#region src/tools/discussions.d.ts
|
|
190
175
|
/** List discussions in a repository, optionally filtered by category. */
|
|
191
176
|
declare const listDiscussions: (token: GithubTokenInput) => GithubTool;
|
|
192
177
|
/** Get a discussion by number. */
|
|
193
178
|
declare const getDiscussion: (token: GithubTokenInput) => GithubTool;
|
|
194
179
|
/** Add a comment to a discussion. Requires approval by default. */
|
|
195
180
|
declare const addDiscussionComment: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
196
|
-
//#endregion
|
|
197
|
-
//#region src/tools/notifications.d.ts
|
|
198
181
|
/** List notification threads for the authenticated user. */
|
|
199
182
|
declare const listNotifications: (token: GithubTokenInput) => GithubTool;
|
|
200
183
|
/** Mark a notification thread as read. Requires approval by default. */
|
|
201
184
|
declare const markNotificationRead: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
202
|
-
//#endregion
|
|
203
|
-
//#region src/tools/search.d.ts
|
|
204
185
|
/** Search for code in GitHub repositories. Use qualifiers like "repo:owner/name" to scope the search. Results include matching text snippets when GitHub returns them. */
|
|
205
186
|
declare const searchCode: (token: GithubTokenInput) => GithubTool;
|
|
206
187
|
/** Search for GitHub repositories by keyword, topic, language, or other qualifiers. */
|
|
207
188
|
declare const searchRepositories: (token: GithubTokenInput) => GithubTool;
|
|
208
189
|
/** Search for issues and pull requests across GitHub using search qualifiers like "repo:owner/name is:open". */
|
|
209
190
|
declare const searchIssues: (token: GithubTokenInput) => GithubTool;
|
|
210
|
-
//#endregion
|
|
211
|
-
//#region src/tools/commits.d.ts
|
|
212
191
|
/** List commits for a GitHub repository. Filter by file path to see commits that touched a file. */
|
|
213
192
|
declare const listCommits: (token: GithubTokenInput) => GithubTool;
|
|
214
193
|
/** Get detailed information about a specific commit. Patches omitted by default. */
|
|
@@ -217,8 +196,6 @@ declare const getCommit: (token: GithubTokenInput) => GithubTool;
|
|
|
217
196
|
declare const getBlame: (token: GithubTokenInput) => GithubTool;
|
|
218
197
|
/** Compare two branches, tags, or commits. Patches omitted by default. */
|
|
219
198
|
declare const compareCommits: (token: GithubTokenInput) => GithubTool;
|
|
220
|
-
//#endregion
|
|
221
|
-
//#region src/tools/gists.d.ts
|
|
222
199
|
/** List gists for the authenticated user or a specific user. */
|
|
223
200
|
declare const listGists: (token: GithubTokenInput) => GithubTool;
|
|
224
201
|
/** Get a gist by ID, including file contents. */
|
|
@@ -233,8 +210,6 @@ declare const updateGist: (token: GithubTokenInput, { needsApproval }?: ToolOpti
|
|
|
233
210
|
declare const deleteGist: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
234
211
|
/** Add a comment to a gist. Requires approval by default. */
|
|
235
212
|
declare const createGistComment: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
236
|
-
//#endregion
|
|
237
|
-
//#region src/tools/workflows.d.ts
|
|
238
213
|
/** List GitHub Actions workflows in a repository. */
|
|
239
214
|
declare const listWorkflows: (token: GithubTokenInput) => GithubTool;
|
|
240
215
|
/** List workflow runs for a repository, optionally filtered by workflow, branch, status, or event. */
|
|
@@ -251,24 +226,18 @@ declare const triggerWorkflow: (token: GithubTokenInput, { needsApproval }?: Too
|
|
|
251
226
|
declare const cancelWorkflowRun: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
252
227
|
/** Re-run a workflow run, optionally only the failed jobs. Requires approval by default. */
|
|
253
228
|
declare const rerunWorkflowRun: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
254
|
-
//#endregion
|
|
255
|
-
//#region src/tools/checks.d.ts
|
|
256
229
|
/** List check runs (Checks API — GitHub Actions and other CI providers) for a commit, branch, or tag. */
|
|
257
230
|
declare const listCheckRuns: (token: GithubTokenInput) => GithubTool;
|
|
258
231
|
/** Get the combined commit status (Statuses API — legacy CI integrations) for a commit, branch, or tag. */
|
|
259
232
|
declare const getCombinedStatus: (token: GithubTokenInput) => GithubTool;
|
|
260
233
|
/** Report a result on a commit as a commit status. Requires approval by default. */
|
|
261
234
|
declare const createCommitStatus: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
262
|
-
//#endregion
|
|
263
|
-
//#region src/tools/security.d.ts
|
|
264
235
|
/** List code scanning alerts for a repository, with the rule, severity and location. */
|
|
265
236
|
declare const listCodeScanningAlerts: (token: GithubTokenInput) => GithubTool;
|
|
266
237
|
/** List Dependabot alerts for vulnerable dependencies, with the advisory and the first patched version. */
|
|
267
238
|
declare const listDependabotAlerts: (token: GithubTokenInput) => GithubTool;
|
|
268
239
|
/** List secret scanning alerts for a repository. The secret itself is never returned. */
|
|
269
240
|
declare const listSecretScanningAlerts: (token: GithubTokenInput) => GithubTool;
|
|
270
|
-
//#endregion
|
|
271
|
-
//#region src/tools/releases.d.ts
|
|
272
241
|
/** List releases for a GitHub repository, newest first (includes drafts and prereleases). */
|
|
273
242
|
declare const listReleases: (token: GithubTokenInput) => GithubTool;
|
|
274
243
|
/** Get the latest published release for a GitHub repository (excludes drafts and prereleases). */
|
|
@@ -281,8 +250,6 @@ declare const createRelease: (token: GithubTokenInput, { needsApproval }?: ToolO
|
|
|
281
250
|
declare const updateRelease: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
282
251
|
/** Delete a release permanently. Requires approval by default. */
|
|
283
252
|
declare const deleteRelease: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
284
|
-
//#endregion
|
|
285
|
-
//#region src/tools/bundles.d.ts
|
|
286
253
|
/** Fetch pull request details plus files, reviews, and optional CI checks in one call. */
|
|
287
254
|
declare const getPullRequestContext: (token: GithubTokenInput) => GithubTool;
|
|
288
255
|
/** Fetch an issue plus available label names and recent comments in one call. */
|
|
@@ -291,8 +258,6 @@ declare const getIssueContext: (token: GithubTokenInput) => GithubTool;
|
|
|
291
258
|
declare const getReleaseContext: (token: GithubTokenInput) => GithubTool;
|
|
292
259
|
/** Diagnose CI failures for a ref — combined status, failing checks, and failed workflow jobs. */
|
|
293
260
|
declare const getCiFailureContext: (token: GithubTokenInput) => GithubTool;
|
|
294
|
-
//#endregion
|
|
295
|
-
//#region src/core/rate-limit.d.ts
|
|
296
261
|
/**
|
|
297
262
|
* GitHub REST/GraphQL rate-limit snapshot from the last request in a tool call.
|
|
298
263
|
* Present on object-shaped execute results; stripped before the model sees the output.
|
|
@@ -304,8 +269,6 @@ type GithubRateLimit = {
|
|
|
304
269
|
resource?: string;
|
|
305
270
|
retryAfter?: number;
|
|
306
271
|
};
|
|
307
|
-
//#endregion
|
|
308
|
-
//#region src/core/errors.d.ts
|
|
309
272
|
/**
|
|
310
273
|
* Structured error catalog for every failure the SDK can surface to a model
|
|
311
274
|
* or a consumer. Each entry carries `why` (technical cause) and `fix`
|
|
@@ -319,7 +282,7 @@ declare const githubToolsErrors: import("evlog").ErrorCatalog<"github_tools", {
|
|
|
319
282
|
readonly message: "GitHub token is required. Pass it as `token` or set the GITHUB_TOKEN environment variable.";
|
|
320
283
|
readonly why: "No token string, async token provider, or GITHUB_TOKEN environment variable was available when the tool resolved its GitHub credentials.";
|
|
321
284
|
readonly fix: "Pass `token` (a PAT string or async provider) when creating the tools, set GITHUB_TOKEN, or configure a Vercel Connect `connector`.";
|
|
322
|
-
readonly link: "https://github-tools.com/
|
|
285
|
+
readonly link: "https://github-tools.com/auth";
|
|
323
286
|
};
|
|
324
287
|
readonly OIDC_TOKEN_EXPIRED: {
|
|
325
288
|
readonly status: 401;
|
|
@@ -328,7 +291,7 @@ declare const githubToolsErrors: import("evlog").ErrorCatalog<"github_tools", {
|
|
|
328
291
|
}) => string;
|
|
329
292
|
readonly why: "The SDK pins the VERCEL_OIDC_TOKEN environment token when it is set (skipping @vercel/oidc's project-root walk, which fails inside eve/workflow snapshots), so an expired env token is never refreshed automatically.";
|
|
330
293
|
readonly fix: "Locally: run `vercel env pull` to refresh .env.local. On Vercel: deployments inject a fresh token — check nothing overrides VERCEL_OIDC_TOKEN with a stale value.";
|
|
331
|
-
readonly link: "https://github-tools.com/
|
|
294
|
+
readonly link: "https://github-tools.com/auth#expired-oidc-tokens";
|
|
332
295
|
};
|
|
333
296
|
readonly CONNECT_NOT_AUTHORIZED: {
|
|
334
297
|
readonly status: 403;
|
|
@@ -337,7 +300,7 @@ declare const githubToolsErrors: import("evlog").ErrorCatalog<"github_tools", {
|
|
|
337
300
|
}) => string;
|
|
338
301
|
readonly why: "Connect rejected the identity of the calling process (the Vercel OIDC token), not the GitHub permissions — the request never reached GitHub.";
|
|
339
302
|
readonly fix: "Refresh the OIDC token (`vercel env pull` locally) and check the connector is linked to the Vercel project this code runs in.";
|
|
340
|
-
readonly link: "https://github-tools.com/
|
|
303
|
+
readonly link: "https://github-tools.com/auth#create-a-github-connector";
|
|
341
304
|
};
|
|
342
305
|
readonly CONNECT_USER_NOT_CONNECTED: {
|
|
343
306
|
readonly status: 401;
|
|
@@ -346,7 +309,7 @@ declare const githubToolsErrors: import("evlog").ErrorCatalog<"github_tools", {
|
|
|
346
309
|
}) => string;
|
|
347
310
|
readonly why: "The Connect token was requested with a user subject, but that user has not connected their GitHub account to this connector (or revoked the authorization).";
|
|
348
311
|
readonly fix: "Have the user connect their GitHub account (e.g. from the integrations panel), then retry.";
|
|
349
|
-
readonly link: "https://github-tools.com/
|
|
312
|
+
readonly link: "https://github-tools.com/auth#per-user-tokens";
|
|
350
313
|
};
|
|
351
314
|
readonly CONNECT_INSTALLATION_REQUIRED: {
|
|
352
315
|
readonly status: 401;
|
|
@@ -356,28 +319,28 @@ declare const githubToolsErrors: import("evlog").ErrorCatalog<"github_tools", {
|
|
|
356
319
|
}) => string;
|
|
357
320
|
readonly why: "The connector exists but its GitHub App is not installed on the target org or user account, so Connect cannot mint a token for it.";
|
|
358
321
|
readonly fix: "Install the connector's GitHub App on the org or account named in the message (from the Vercel Connect dashboard), or target a repository on an account where it is installed.";
|
|
359
|
-
readonly link: "https://github-tools.com/
|
|
322
|
+
readonly link: "https://github-tools.com/auth#create-a-github-connector";
|
|
360
323
|
};
|
|
361
324
|
readonly SUBJECT_CONTEXT_REQUIRED: {
|
|
362
325
|
readonly status: 500;
|
|
363
326
|
readonly message: "A `connect` or `connect.subject` resolver needs the tool execution context — it is only available while a tool call executes.";
|
|
364
327
|
readonly why: "A per-call Connect resolver was invoked without an eve ToolContext and tool call, which only exist during tool execution.";
|
|
365
328
|
readonly fix: "Keep Connect resolver calls on the tool execute path; use static `connect` params when no execution context is available.";
|
|
366
|
-
readonly link: "https://github-tools.com/
|
|
329
|
+
readonly link: "https://github-tools.com/integrations/eve#per-user-tokens";
|
|
367
330
|
};
|
|
368
331
|
readonly SESSION_SCOPE_NEEDS_TOOL_SELECTION: {
|
|
369
332
|
readonly status: 500;
|
|
370
333
|
readonly message: "`evaluation.scope: 'session'` on `createGithubAgent` does not work with `evaluation.selection: 'presets'`.";
|
|
371
334
|
readonly why: "With presets, a request later in the conversation could need a tool outside the presets picked for the first request, and the agent would have no way to reach it. Tool selection adds `callGithubTool` for that.";
|
|
372
335
|
readonly fix: "Remove `selection: 'presets'` to pick single tools, the default, or remove `scope: 'session'` to route presets for each request. The eve extension accepts both together, because it defers unlisted tools.";
|
|
373
|
-
readonly link: "https://github-tools.com/
|
|
336
|
+
readonly link: "https://github-tools.com/presets#keep-the-prompt-cache-across-requests";
|
|
374
337
|
};
|
|
375
338
|
readonly DURABLE_GENERATE_UNAVAILABLE: {
|
|
376
339
|
readonly status: 500;
|
|
377
340
|
readonly message: "`createDurableGithubAgent(...).generate()` needs `WorkflowAgent.generate()` from `@ai-sdk/workflow` 2.0.59 or later.";
|
|
378
341
|
readonly why: "The installed `@ai-sdk/workflow` has no non-streaming `WorkflowAgent.generate()`.";
|
|
379
342
|
readonly fix: "Upgrade `@ai-sdk/workflow` to 2.0.59 or later, or call `.stream()` instead.";
|
|
380
|
-
readonly link: "https://github-tools.com/
|
|
343
|
+
readonly link: "https://github-tools.com/integrations/workflow#non-streaming";
|
|
381
344
|
};
|
|
382
345
|
readonly GUARDRAIL_BLOCKED: {
|
|
383
346
|
readonly status: 403;
|
|
@@ -386,14 +349,29 @@ declare const githubToolsErrors: import("evlog").ErrorCatalog<"github_tools", {
|
|
|
386
349
|
}) => string;
|
|
387
350
|
readonly why: "The call targets a repository or branch outside the `guardrails` these tools were created with. Guardrails apply whoever approves the call.";
|
|
388
351
|
readonly fix: "Act on a repository and branch the guardrails allow, such as a branch matching the allowed patterns, or ask the user to change `guardrails`.";
|
|
389
|
-
readonly link: "https://github-tools.com/
|
|
352
|
+
readonly link: "https://github-tools.com/approval#guardrails";
|
|
353
|
+
};
|
|
354
|
+
readonly APP_BOT_UNKNOWN: {
|
|
355
|
+
readonly status: 403;
|
|
356
|
+
readonly message: "GitHub lists no installation of the App to this user token, so the App's bot account can't be credited.";
|
|
357
|
+
readonly why: "Attribution reads the App that issued a user token from the installations GitHub lists to it. An empty list means the token is not a GitHub App user token, or the user can reach no installation of the App.";
|
|
358
|
+
readonly fix: "Use a Vercel Connect connector backed by a GitHub App installed where the user works, or turn attribution off.";
|
|
359
|
+
};
|
|
360
|
+
readonly CALLER_FORBIDDEN: {
|
|
361
|
+
readonly status: 403;
|
|
362
|
+
readonly message: ({ reason }: {
|
|
363
|
+
reason: string;
|
|
364
|
+
}) => string;
|
|
365
|
+
readonly why: "The tools run with a GitHub App's token for a person who has no token of their own, so each call is limited to what that person may do on the target repository.";
|
|
366
|
+
readonly fix: "Tell the person which access they are missing. Do not retry the call or reach the same result another way.";
|
|
367
|
+
readonly link: "https://github-tools.com/integrations/eve#per-user-tokens";
|
|
390
368
|
};
|
|
391
369
|
readonly EVALUATION_UNAVAILABLE: {
|
|
392
370
|
readonly status: 500;
|
|
393
371
|
readonly message: "`requireApproval: 'auto'` and `preset: 'auto'` need `experimental_decide` (or `experimental_evaluate`) from `ai` 7.0.105 or later.";
|
|
394
372
|
readonly why: "The installed `ai` package exports neither `experimental_decide` nor `experimental_evaluate`, which run the decision model behind the `'auto'` options.";
|
|
395
373
|
readonly fix: "Upgrade `ai` to 7.0.105 or later, or replace `'auto'` with `true` / `false` or an explicit preset.";
|
|
396
|
-
readonly link: "https://github-tools.com/
|
|
374
|
+
readonly link: "https://github-tools.com/approval#let-a-model-decide";
|
|
397
375
|
};
|
|
398
376
|
readonly EVALUATION_FAILED: {
|
|
399
377
|
readonly status: 502;
|
|
@@ -404,7 +382,7 @@ declare const githubToolsErrors: import("evlog").ErrorCatalog<"github_tools", {
|
|
|
404
382
|
}) => string;
|
|
405
383
|
readonly why: "The `experimental_decide` call behind `requireApproval: 'auto'` or `preset: 'auto'` threw — typically the model is not enabled for the AI Gateway project, the team has no credits, or the gateway is rate limiting or unavailable.";
|
|
406
384
|
readonly fix: "Check the evaluation model is available to the project on AI Gateway and has credits, or set `evaluation.model` to one that is. The agent keeps running on the fallback until then.";
|
|
407
|
-
readonly link: "https://github-tools.com/
|
|
385
|
+
readonly link: "https://github-tools.com/approval#let-a-model-decide";
|
|
408
386
|
};
|
|
409
387
|
readonly UNAUTHORIZED: {
|
|
410
388
|
readonly status: 401;
|
|
@@ -422,7 +400,7 @@ declare const githubToolsErrors: import("evlog").ErrorCatalog<"github_tools", {
|
|
|
422
400
|
}) => string;
|
|
423
401
|
readonly why: "The token authenticated but lacks permission: a missing scope on this resource, SAML SSO enforcement, or an API that only accepts user access tokens (gists, notifications) called with an installation token.";
|
|
424
402
|
readonly fix: "Grant the missing permission on the PAT or GitHub App installation; authorize the token for SAML if the org enforces it; use a user access token for gist and notification tools.";
|
|
425
|
-
readonly link: "https://github-tools.com/
|
|
403
|
+
readonly link: "https://github-tools.com/auth#permissions-per-preset";
|
|
426
404
|
};
|
|
427
405
|
readonly RATE_LIMITED: {
|
|
428
406
|
readonly status: 429;
|
|
@@ -457,8 +435,6 @@ declare module 'evlog' {
|
|
|
457
435
|
github_tools: typeof githubToolsErrors;
|
|
458
436
|
}
|
|
459
437
|
}
|
|
460
|
-
//#endregion
|
|
461
|
-
//#region src/index.d.ts
|
|
462
438
|
type GithubToolsOptions = GithubToolsBaseOptions & {
|
|
463
439
|
/**
|
|
464
440
|
* Restrict the returned tools to a predefined preset.
|
|
@@ -491,6 +467,5 @@ declare function createGithubTools<P extends readonly GithubToolPreset[]>(option
|
|
|
491
467
|
}): Pick<AllGithubTools, CombinedPresetToolNames<P>>;
|
|
492
468
|
declare function createGithubTools(options?: GithubToolsOptions): AllGithubTools | Pick<AllGithubTools, GithubToolName>;
|
|
493
469
|
type GithubTools = AllGithubTools & ToolSet;
|
|
494
|
-
//#endregion
|
|
495
470
|
export { addAssignees as $, resolveToolGuidance as $t, createGist as A, mergePullRequest as At, listCommits as B, deleteBranch as Bt, getWorkflowJobLogs as C, disablePullRequestAutoMerge as Ct, listWorkflows as D, listPullRequestReviewThreads as Dt, listWorkflowRuns as E, listPullRequestFiles as Et, listGists as F, updatePullRequestBranch as Ft, markNotificationRead as G, getFileContent as Gt, searchIssues as H, forkRepository as Ht, updateGist as I, updatePullRequestComment as It, listDiscussions as J, listBranches as Jt, addDiscussionComment as K, getRepository as Kt, compareCommits as L, createBranch as Lt, deleteGist as M, requestReviewers as Mt, getGist as N, resolveReviewThread as Nt, rerunWorkflowRun as O, listPullRequestReviews as Ot, listGistComments as P, updatePullRequest as Pt, listIssueReactions as Q, createGithubAgent as Qt, getBlame as R, createOrUpdateFile as Rt, cancelWorkflowRun as S, deletePullRequestComment as St, listWorkflowJobs as T, getPullRequest as Tt, searchRepositories as U, getBranchRules as Ut, searchCode as V, editFiles as Vt, listNotifications as W, getCollaboratorPermission as Wt, addIssueReaction as X, CALL_GITHUB_TOOL as Xt, addCommentReaction as Y, createOctokit as Yt, listCommentReactions as Z, CreateGithubAgentOptions as Zt, listDependabotAlerts as _, updateIssueComment as _t, GithubRateLimit as a, createLabel as at, getCombinedStatus as b, createPullRequest as bt, getPullRequestContext as c, getIssue as ct, deleteRelease as d, listLabels as dt, addIssueComment as et, getLatestRelease as f, listMilestones as ft, listCodeScanningAlerts as g, updateIssue as gt, updateRelease as h, removeLabel as ht, githubToolsErrors as i, createIssue as it, createGistComment as j, replyToReviewComment as jt, triggerWorkflow as k, listPullRequests as kt, getReleaseContext as l, listIssueComments as lt, listReleases as m, removeAssignees as mt, GithubToolsOptions as n, addSubIssue as nt, getCiFailureContext as o, deleteIssueComment as ot, getRelease as p, listSubIssues as pt, getDiscussion as q, getRepositoryTree as qt, createGithubTools as r, closeIssue as rt, getIssueContext as s, deleteLabel as st, GithubTools as t, addLabels as tt, createRelease as u, listIssues as ut, listSecretScanningAlerts as v, updateLabel as vt, getWorkflowRun as w, enablePullRequestAutoMerge as wt, listCheckRuns as x, createPullRequestReview as xt, createCommitStatus as y, addPullRequestComment as yt, getCommit as z, createRepository as zt };
|
|
496
|
-
//# sourceMappingURL=index-
|
|
471
|
+
//# sourceMappingURL=index-v5n5OLs7.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-v5n5OLs7.d.mts","names":[],"sources":["../src/core/instructions.ts","../src/agents.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/security.ts","../src/tools/releases.ts","../src/tools/bundles.ts","../src/core/rate-limit.ts","../src/core/errors.ts","../src/index.ts"],"mappings":";;;;;;;;;;iBAmKgB,oBAAoB;EAClC,SAAS,mBAAmB;EAC5B,UAAU;;;cCjJC;KA+FR,eAAe,KAAK,sBAAsB;KAEnC,2BAA2B,eAAe;EACpD,OAAO,sBAAsB;;;;;;;;;;;;;;;;EAgB7B,SAAS,mBAAmB;;;;;;EAM5B;;;;;EAKA;;iBA2Dc,kBAAkB,SAAS;EAA6B;IAAgC,qBAAqB;iBAC7G,kBAAkB,UAAU,kBAC1C,SAAS;EAA6B,QAAQ;IAC7C,qBAAqB,KAAK,gBAAgB,eAAe;iBAC5C,kBAAkB,mBAAmB,oBACnD,SAAS;EAA6B,QAAQ;IAC7C,qBAAqB,KAAK,gBAAgB,wBAAwB;iBCjMrD,cAAc,gBAAgB;;cCiCjC,gBAAiB,OAAO,qBAAmB;;cAa3C,eAAgB,OAAO,qBAAmB;;cAa1C,iBAAkB,OAAO,qBAAmB;;cAc5C,oBAAqB,OAAO,qBAAmB;;cAc/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;;cAcU,YACX,O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;;;;;;;;;;;;;;;;;;;aA+BzB,YAAA;MAAE;;;;;;;;;;;;;;aAaF,YAAA;MAAE;;;;;;;;;;;;;;;aAce,YAAA,OAAA,UAAA;MAAE;MAAe;MAAkB;;;;;;;;aAQpD,YAAA;MAAE;;;;;;;;aAOF,YAAA;MAAE;;;;;;;;aAOF,YAAA;MAAE;;;;;;;;aAOF,YAAA;MAAE;;;;;;;;aAOF,YAAA;MAAE;;;;;;;;YAQhB;IACR,qBAAqB;;;KCtGb,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;KAgO3F,cAAc,iBAAiB"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as DEFAULT_EVALUATION_MODEL, B as
|
|
2
|
-
import { $ as addAssignees, A as createGist, At as mergePullRequest, B as listCommits, Bt as deleteBranch, C as getWorkflowJobLogs, Ct as disablePullRequestAutoMerge, D as listWorkflows, Dt as listPullRequestReviewThreads, E as listWorkflowRuns, Et as listPullRequestFiles, F as listGists, Ft as updatePullRequestBranch, G as markNotificationRead, Gt as getFileContent, H as searchIssues, Ht as forkRepository, I as updateGist, It as updatePullRequestComment, J as listDiscussions, Jt as listBranches, K as addDiscussionComment, Kt as getRepository, L as compareCommits, Lt as createBranch, M as deleteGist, Mt as requestReviewers, N as getGist, Nt as resolveReviewThread, O as rerunWorkflowRun, Ot as listPullRequestReviews, P as listGistComments, Pt as updatePullRequest, Q as listIssueReactions, Qt as createGithubAgent, R as getBlame, Rt as createOrUpdateFile, S as cancelWorkflowRun, St as deletePullRequestComment, T as listWorkflowJobs, Tt as getPullRequest, U as searchRepositories, Ut as getBranchRules, V as searchCode, Vt as editFiles, W as listNotifications, Wt as getCollaboratorPermission, X as addIssueReaction, Xt as CALL_GITHUB_TOOL, Y as addCommentReaction, Yt as createOctokit, Z as listCommentReactions, Zt as CreateGithubAgentOptions, _ as listDependabotAlerts, _t as updateIssueComment, a as GithubRateLimit, at as createLabel, b as getCombinedStatus, bt as createPullRequest, c as getPullRequestContext, ct as getIssue, d as deleteRelease, dt as listLabels, et as addIssueComment, f as getLatestRelease, ft as listMilestones, g as listCodeScanningAlerts, gt as updateIssue, h as updateRelease, ht as removeLabel, i as githubToolsErrors, it as createIssue, j as createGistComment, jt as replyToReviewComment, k as triggerWorkflow, kt as listPullRequests, l as getReleaseContext, lt as listIssueComments, m as listReleases, mt as removeAssignees, n as GithubToolsOptions, nt as addSubIssue, o as getCiFailureContext, ot as deleteIssueComment, p as getRelease, pt as listSubIssues, q as getDiscussion, qt as getRepositoryTree, r as createGithubTools, rt as closeIssue, s as getIssueContext, st as deleteLabel, t as GithubTools, tt as addLabels, u as createRelease, ut as listIssues, v as listSecretScanningAlerts, vt as updateLabel, w as getWorkflowRun, wt as enablePullRequestAutoMerge, x as listCheckRuns, xt as createPullRequestReview, y as createCommitStatus, yt as addPullRequestComment, z as getCommit, zt as createRepository } from "./index-
|
|
1
|
+
import { A as DEFAULT_EVALUATION_MODEL, B as GithubToolPreset, D as selectTools, E as selectPresets, F as resolveGithubToken, G as GithubToolName, H as PresetToolName, I as withGithubGuardrails, K as GithubWriteToolName, L as GithubGuardrails, M as GithubTokenCall, N as GithubTokenInput, O as GITHUB_WRITE_TOOLS, R as CORE_READ_TOOLS, U as GITHUB_TOOL_NAMES, V as PRESET_TOOLS, a as GithubToolsForPreset, c as CommitIdentity, d as Octokit, f as ToolOptions, g as ToolApprovalMode, h as StaticApprovalConfig, k as AUTO_APPROVAL_TOOLS, l as CommitToolOptions, m as ApprovalConfig, n as GithubDryRunResult, o as PickGithubTools, p as ToolOverrides, r as AllGithubTools, s as GithubToolsContext, t as GithubDryRunApproval, u as GithubTool, v as GithubEvaluationOptions, z as CombinedPresetToolNames } from "./dry-run-BAbes7Mv.mjs";
|
|
2
|
+
import { $ as addAssignees, A as createGist, At as mergePullRequest, B as listCommits, Bt as deleteBranch, C as getWorkflowJobLogs, Ct as disablePullRequestAutoMerge, D as listWorkflows, Dt as listPullRequestReviewThreads, E as listWorkflowRuns, Et as listPullRequestFiles, F as listGists, Ft as updatePullRequestBranch, G as markNotificationRead, Gt as getFileContent, H as searchIssues, Ht as forkRepository, I as updateGist, It as updatePullRequestComment, J as listDiscussions, Jt as listBranches, K as addDiscussionComment, Kt as getRepository, L as compareCommits, Lt as createBranch, M as deleteGist, Mt as requestReviewers, N as getGist, Nt as resolveReviewThread, O as rerunWorkflowRun, Ot as listPullRequestReviews, P as listGistComments, Pt as updatePullRequest, Q as listIssueReactions, Qt as createGithubAgent, R as getBlame, Rt as createOrUpdateFile, S as cancelWorkflowRun, St as deletePullRequestComment, T as listWorkflowJobs, Tt as getPullRequest, U as searchRepositories, Ut as getBranchRules, V as searchCode, Vt as editFiles, W as listNotifications, Wt as getCollaboratorPermission, X as addIssueReaction, Xt as CALL_GITHUB_TOOL, Y as addCommentReaction, Yt as createOctokit, Z as listCommentReactions, Zt as CreateGithubAgentOptions, _ as listDependabotAlerts, _t as updateIssueComment, a as GithubRateLimit, at as createLabel, b as getCombinedStatus, bt as createPullRequest, c as getPullRequestContext, ct as getIssue, d as deleteRelease, dt as listLabels, et as addIssueComment, f as getLatestRelease, ft as listMilestones, g as listCodeScanningAlerts, gt as updateIssue, h as updateRelease, ht as removeLabel, i as githubToolsErrors, it as createIssue, j as createGistComment, jt as replyToReviewComment, k as triggerWorkflow, kt as listPullRequests, l as getReleaseContext, lt as listIssueComments, m as listReleases, mt as removeAssignees, n as GithubToolsOptions, nt as addSubIssue, o as getCiFailureContext, ot as deleteIssueComment, p as getRelease, pt as listSubIssues, q as getDiscussion, qt as getRepositoryTree, r as createGithubTools, rt as closeIssue, s as getIssueContext, st as deleteLabel, t as GithubTools, tt as addLabels, u as createRelease, ut as listIssues, v as listSecretScanningAlerts, vt as updateLabel, w as getWorkflowRun, wt as enablePullRequestAutoMerge, x as listCheckRuns, xt as createPullRequestReview, y as createCommitStatus, yt as addPullRequestComment, z as getCommit, zt as createRepository } from "./index-v5n5OLs7.mjs";
|
|
3
3
|
export { AUTO_APPROVAL_TOOLS, type AllGithubTools, type ApprovalConfig, CALL_GITHUB_TOOL, CORE_READ_TOOLS, type CombinedPresetToolNames, type CommitIdentity, type CommitToolOptions, type CreateGithubAgentOptions, DEFAULT_EVALUATION_MODEL, GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, type GithubDryRunApproval, type GithubDryRunResult, type GithubEvaluationOptions, type GithubGuardrails, type GithubRateLimit, type GithubTokenCall, 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 StaticApprovalConfig, type ToolApprovalMode, type ToolOptions, type ToolOverrides, addAssignees, addCommentReaction, addDiscussionComment, addIssueComment, addIssueReaction, addLabels, addPullRequestComment, addSubIssue, cancelWorkflowRun, closeIssue, compareCommits, createBranch, createCommitStatus, createGist, createGistComment, createGithubAgent, createGithubTools, createIssue, createLabel, createOctokit, createOrUpdateFile, createPullRequest, createPullRequestReview, createRelease, createRepository, deleteBranch, deleteGist, deleteIssueComment, deleteLabel, deletePullRequestComment, deleteRelease, disablePullRequestAutoMerge, editFiles, enablePullRequestAutoMerge, forkRepository, getBlame, getBranchRules, getCiFailureContext, getCollaboratorPermission, getCombinedStatus, getCommit, getDiscussion, getFileContent, getGist, getIssue, getIssueContext, getLatestRelease, getPullRequest, getPullRequestContext, getRelease, getReleaseContext, getRepository, getRepositoryTree, getWorkflowJobLogs, getWorkflowRun, githubToolsErrors, listBranches, listCheckRuns, listCodeScanningAlerts, listCommentReactions, listCommits, listDependabotAlerts, listDiscussions, listGistComments, listGists, listIssueComments, listIssueReactions, listIssues, listLabels, listMilestones, listNotifications, listPullRequestFiles, listPullRequestReviewThreads, listPullRequestReviews, listPullRequests, listReleases, listSecretScanningAlerts, listSubIssues, listWorkflowJobs, listWorkflowRuns, listWorkflows, markNotificationRead, mergePullRequest, removeAssignees, removeLabel, replyToReviewComment, requestReviewers, rerunWorkflowRun, resolveGithubToken, resolveReviewThread, searchCode, searchIssues, searchRepositories, selectPresets, selectTools, triggerWorkflow, updateGist, updateIssue, updateIssueComment, updateLabel, updatePullRequest, updatePullRequestBranch, updatePullRequestComment, updateRelease, withGithubGuardrails };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as withGithubGuardrails, S as resolveGithubToken, Ya as createOctokit, Za as githubToolsErrors, _ as CORE_READ_TOOLS, c as AUTO_APPROVAL_TOOLS, g as GITHUB_TOOL_NAMES, l as DEFAULT_EVALUATION_MODEL, t as GITHUB_WRITE_TOOLS, v as PRESET_TOOLS } from "./write-tools-
|
|
2
|
-
import { d as selectTools, u as selectPresets } from "./evaluation-
|
|
3
|
-
import { $ as addLabels, A as deleteGist, At as requestReviewers, B as searchIssues, Bt as forkRepository, C as listWorkflowJobs, Ct as getPullRequest, D as triggerWorkflow, Dt as listPullRequests, E as rerunWorkflowRun, Et as listPullRequestReviews, F as compareCommits, Ft as createBranch, G as getDiscussion, Gt as getRepositoryTree, H as listNotifications, Ht as getCollaboratorPermission, I as getBlame, It as createOrUpdateFile, J as addIssueReaction, K as listDiscussions, Kt as listBranches, L as getCommit, Lt as createRepository, M as listGistComments, Mt as updatePullRequest, N as listGists, Nt as updatePullRequestBranch, O as createGist, Ot as mergePullRequest, P as updateGist, Pt as updatePullRequestComment, Q as addIssueComment, R as listCommits, Rt as deleteBranch, S as getWorkflowRun, St as enablePullRequestAutoMerge, T as listWorkflows, Tt as listPullRequestReviewThreads, U as markNotificationRead, Ut as getFileContent, V as searchRepositories, Vt as getBranchRules, W as addDiscussionComment, Wt as getRepository, X as listIssueReactions, Y as listCommentReactions, Z as addAssignees, _ as createCommitStatus, _t as addPullRequestComment, a as getIssueContext, at as deleteLabel, b as cancelWorkflowRun, bt as deletePullRequestComment, c as createRelease, ct as listIssues, d as getRelease, dt as listSubIssues, et as addSubIssue, f as listReleases, ft as removeAssignees, g as listSecretScanningAlerts, gt as updateLabel, h as listDependabotAlerts, ht as updateIssueComment, i as getCiFailureContext, it as deleteIssueComment, j as getGist, jt as resolveReviewThread, k as createGistComment, kt as replyToReviewComment, l as deleteRelease, lt as listLabels, m as listCodeScanningAlerts, mt as updateIssue, n as CALL_GITHUB_TOOL, nt as createIssue, o as getPullRequestContext, ot as getIssue, p as updateRelease, pt as removeLabel, q as addCommentReaction, r as createGithubAgent, rt as createLabel, s as getReleaseContext, st as listIssueComments, t as createGithubTools, tt as closeIssue, u as getLatestRelease, ut as listMilestones, v as getCombinedStatus, vt as createPullRequest, w as listWorkflowRuns, wt as listPullRequestFiles, x as getWorkflowJobLogs, xt as disablePullRequestAutoMerge, y as listCheckRuns, yt as createPullRequestReview, z as searchCode, zt as editFiles } from "./src-
|
|
1
|
+
import { C as withGithubGuardrails, S as resolveGithubToken, Ya as createOctokit, Za as githubToolsErrors, _ as CORE_READ_TOOLS, c as AUTO_APPROVAL_TOOLS, g as GITHUB_TOOL_NAMES, l as DEFAULT_EVALUATION_MODEL, t as GITHUB_WRITE_TOOLS, v as PRESET_TOOLS } from "./write-tools-C-962T9O.mjs";
|
|
2
|
+
import { d as selectTools, u as selectPresets } from "./evaluation-Dlf-571x.mjs";
|
|
3
|
+
import { $ as addLabels, A as deleteGist, At as requestReviewers, B as searchIssues, Bt as forkRepository, C as listWorkflowJobs, Ct as getPullRequest, D as triggerWorkflow, Dt as listPullRequests, E as rerunWorkflowRun, Et as listPullRequestReviews, F as compareCommits, Ft as createBranch, G as getDiscussion, Gt as getRepositoryTree, H as listNotifications, Ht as getCollaboratorPermission, I as getBlame, It as createOrUpdateFile, J as addIssueReaction, K as listDiscussions, Kt as listBranches, L as getCommit, Lt as createRepository, M as listGistComments, Mt as updatePullRequest, N as listGists, Nt as updatePullRequestBranch, O as createGist, Ot as mergePullRequest, P as updateGist, Pt as updatePullRequestComment, Q as addIssueComment, R as listCommits, Rt as deleteBranch, S as getWorkflowRun, St as enablePullRequestAutoMerge, T as listWorkflows, Tt as listPullRequestReviewThreads, U as markNotificationRead, Ut as getFileContent, V as searchRepositories, Vt as getBranchRules, W as addDiscussionComment, Wt as getRepository, X as listIssueReactions, Y as listCommentReactions, Z as addAssignees, _ as createCommitStatus, _t as addPullRequestComment, a as getIssueContext, at as deleteLabel, b as cancelWorkflowRun, bt as deletePullRequestComment, c as createRelease, ct as listIssues, d as getRelease, dt as listSubIssues, et as addSubIssue, f as listReleases, ft as removeAssignees, g as listSecretScanningAlerts, gt as updateLabel, h as listDependabotAlerts, ht as updateIssueComment, i as getCiFailureContext, it as deleteIssueComment, j as getGist, jt as resolveReviewThread, k as createGistComment, kt as replyToReviewComment, l as deleteRelease, lt as listLabels, m as listCodeScanningAlerts, mt as updateIssue, n as CALL_GITHUB_TOOL, nt as createIssue, o as getPullRequestContext, ot as getIssue, p as updateRelease, pt as removeLabel, q as addCommentReaction, r as createGithubAgent, rt as createLabel, s as getReleaseContext, st as listIssueComments, t as createGithubTools, tt as closeIssue, u as getLatestRelease, ut as listMilestones, v as getCombinedStatus, vt as createPullRequest, w as listWorkflowRuns, wt as listPullRequestFiles, x as getWorkflowJobLogs, xt as disablePullRequestAutoMerge, y as listCheckRuns, yt as createPullRequestReview, z as searchCode, zt as editFiles } from "./src-BRZIY_PZ.mjs";
|
|
4
4
|
export { AUTO_APPROVAL_TOOLS, CALL_GITHUB_TOOL, CORE_READ_TOOLS, DEFAULT_EVALUATION_MODEL, GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, PRESET_TOOLS, addAssignees, addCommentReaction, addDiscussionComment, addIssueComment, addIssueReaction, addLabels, addPullRequestComment, addSubIssue, cancelWorkflowRun, closeIssue, compareCommits, createBranch, createCommitStatus, createGist, createGistComment, createGithubAgent, createGithubTools, createIssue, createLabel, createOctokit, createOrUpdateFile, createPullRequest, createPullRequestReview, createRelease, createRepository, deleteBranch, deleteGist, deleteIssueComment, deleteLabel, deletePullRequestComment, deleteRelease, disablePullRequestAutoMerge, editFiles, enablePullRequestAutoMerge, forkRepository, getBlame, getBranchRules, getCiFailureContext, getCollaboratorPermission, getCombinedStatus, getCommit, getDiscussion, getFileContent, getGist, getIssue, getIssueContext, getLatestRelease, getPullRequest, getPullRequestContext, getRelease, getReleaseContext, getRepository, getRepositoryTree, getWorkflowJobLogs, getWorkflowRun, githubToolsErrors, listBranches, listCheckRuns, listCodeScanningAlerts, listCommentReactions, listCommits, listDependabotAlerts, listDiscussions, listGistComments, listGists, listIssueComments, listIssueReactions, listIssues, listLabels, listMilestones, listNotifications, listPullRequestFiles, listPullRequestReviewThreads, listPullRequestReviews, listPullRequests, listReleases, listSecretScanningAlerts, listSubIssues, listWorkflowJobs, listWorkflowRuns, listWorkflows, markNotificationRead, mergePullRequest, removeAssignees, removeLabel, replyToReviewComment, requestReviewers, rerunWorkflowRun, resolveGithubToken, resolveReviewThread, searchCode, searchIssues, searchRepositories, selectPresets, selectTools, triggerWorkflow, updateGist, updateIssue, updateIssueComment, updateLabel, updatePullRequest, updatePullRequestBranch, updatePullRequestComment, updateRelease, withGithubGuardrails };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
//#region src/tanstack/interrupts.d.ts
|
|
3
2
|
/** Register on the server and client when using GitHub automatic approval. */
|
|
4
3
|
declare const githubToolApproval: Omit<import("@tanstack/ai").InterruptDefinition<"github-tools.approval", z.ZodObject<{
|
|
5
4
|
toolCallId: z.ZodString;
|
|
@@ -55,6 +54,5 @@ declare const githubToolApproval: Omit<import("@tanstack/ai").InterruptDefinitio
|
|
|
55
54
|
} | undefined;
|
|
56
55
|
};
|
|
57
56
|
};
|
|
58
|
-
//#endregion
|
|
59
57
|
export { githubToolApproval as t };
|
|
60
|
-
//# sourceMappingURL=interrupts-
|
|
58
|
+
//# sourceMappingURL=interrupts-MwQ_v_PF.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interrupts-MwQ_v_PF.d.mts","names":[],"sources":["../src/tanstack/interrupts.ts"],"mappings":";;cAIa,oBAAkB,4BAAA,6CAAA,EAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
export { __exportAll as t };
|