@github-tools/sdk 1.8.2 → 1.10.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 +247 -78
- package/dist/connect/eve.d.mts +18 -7
- package/dist/connect/eve.d.mts.map +1 -1
- package/dist/connect/eve.mjs +17 -4
- package/dist/connect/eve.mjs.map +1 -1
- package/dist/connect.d.mts +31 -11
- package/dist/connect.d.mts.map +1 -1
- package/dist/connect.mjs +6 -3
- package/dist/connect.mjs.map +1 -1
- package/dist/eve-runtime-CI4dR_hI.d.mts +54 -0
- package/dist/eve-runtime-CI4dR_hI.d.mts.map +1 -0
- package/dist/eve-runtime-CIcrt7MD.mjs +674 -0
- package/dist/eve-runtime-CIcrt7MD.mjs.map +1 -0
- package/dist/eve-runtime.d.mts +4 -0
- package/dist/eve-runtime.mjs +3 -0
- package/dist/eve.d.mts +331 -112
- package/dist/eve.d.mts.map +1 -1
- package/dist/eve.mjs +356 -3
- package/dist/eve.mjs.map +1 -0
- package/dist/index-B0nL0C00.d.mts +746 -0
- package/dist/index-B0nL0C00.d.mts.map +1 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/src-v-LjzPpR.mjs +1371 -0
- package/dist/src-v-LjzPpR.mjs.map +1 -0
- package/dist/{token-CW8lQBND.mjs → token-DDMlEkK-.mjs} +74 -7
- package/dist/token-DDMlEkK-.mjs.map +1 -0
- package/dist/types-VW0m0Uxl.d.mts +39 -0
- package/dist/types-VW0m0Uxl.d.mts.map +1 -0
- package/dist/{types-B0mvQgJf.d.mts → types-Ygt1pw1N.d.mts} +30 -9
- package/dist/types-Ygt1pw1N.d.mts.map +1 -0
- package/dist/workflow.d.mts +7 -7
- package/dist/workflow.d.mts.map +1 -1
- package/dist/workflow.mjs +6 -4
- package/dist/workflow.mjs.map +1 -1
- package/dist/write-tools-uIVfURVp.mjs +3509 -0
- package/dist/write-tools-uIVfURVp.mjs.map +1 -0
- package/package.json +17 -13
- package/dist/eve-UPaHEGVi.mjs +0 -512
- package/dist/eve-UPaHEGVi.mjs.map +0 -1
- package/dist/index-Cs1Kebmt.d.mts +0 -463
- package/dist/index-Cs1Kebmt.d.mts.map +0 -1
- package/dist/src-CfzZfU82.mjs +0 -812
- package/dist/src-CfzZfU82.mjs.map +0 -1
- package/dist/token-CW8lQBND.mjs.map +0 -1
- package/dist/types-B0mvQgJf.d.mts.map +0 -1
- package/dist/types-DwHrGKWO.d.mts +0 -27
- package/dist/types-DwHrGKWO.d.mts.map +0 -1
- package/dist/write-tools-Dx9LfYlU.mjs +0 -1840
- package/dist/write-tools-Dx9LfYlU.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eve-runtime-CIcrt7MD.mjs","names":["repository.getRepositoryDescription","repository.getRepositoryInputSchema","repository.getRepositoryCore","repository.listBranchesDescription","repository.listBranchesInputSchema","repository.listBranchesCore","repository.getFileContentDescription","repository.getFileContentInputSchema","repository.getFileContentCore","repository.getRepositoryTreeDescription","repository.getRepositoryTreeInputSchema","repository.getRepositoryTreeCore","repository.createBranchDescription","repository.createBranchInputSchema","repository.createBranchCore","repository.forkRepositoryDescription","repository.forkRepositoryInputSchema","repository.forkRepositoryCore","repository.createRepositoryDescription","repository.createRepositoryInputSchema","repository.createRepositoryCore","repository.createOrUpdateFileDescription","repository.createOrUpdateFileInputSchema","repository.createOrUpdateFileCore","pullRequests.listPullRequestsDescription","pullRequests.listPullRequestsInputSchema","pullRequests.listPullRequestsCore","pullRequests.getPullRequestDescription","pullRequests.getPullRequestInputSchema","pullRequests.getPullRequestCore","pullRequests.createPullRequestDescription","pullRequests.createPullRequestInputSchema","pullRequests.createPullRequestCore","pullRequests.mergePullRequestDescription","pullRequests.mergePullRequestInputSchema","pullRequests.mergePullRequestCore","pullRequests.updatePullRequestDescription","pullRequests.updatePullRequestInputSchema","pullRequests.updatePullRequestCore","pullRequests.addPullRequestCommentDescription","pullRequests.addPullRequestCommentInputSchema","pullRequests.addPullRequestCommentCore","pullRequests.updatePullRequestCommentDescription","pullRequests.updatePullRequestCommentInputSchema","pullRequests.updatePullRequestCommentCore","pullRequests.deletePullRequestCommentDescription","pullRequests.deletePullRequestCommentInputSchema","pullRequests.deletePullRequestCommentCore","pullRequests.listPullRequestFilesDescription","pullRequests.listPullRequestFilesInputSchema","pullRequests.listPullRequestFilesCore","pullRequests.listPullRequestReviewsDescription","pullRequests.listPullRequestReviewsInputSchema","pullRequests.listPullRequestReviewsCore","pullRequests.createPullRequestReviewDescription","pullRequests.createPullRequestReviewInputSchema","pullRequests.createPullRequestReviewCore","pullRequests.requestReviewersDescription","pullRequests.requestReviewersInputSchema","pullRequests.requestReviewersCore","bundles.getPullRequestContextDescription","bundles.getPullRequestContextInputSchema","bundles.getPullRequestContextCore","bundles.getIssueContextDescription","bundles.getIssueContextInputSchema","bundles.getIssueContextCore","issues.listIssuesDescription","issues.listIssuesInputSchema","issues.listIssuesCore","issues.getIssueDescription","issues.getIssueInputSchema","issues.getIssueCore","issues.createIssueDescription","issues.createIssueInputSchema","issues.createIssueCore","issues.addIssueCommentDescription","issues.addIssueCommentInputSchema","issues.addIssueCommentCore","issues.updateIssueCommentDescription","issues.updateIssueCommentInputSchema","issues.updateIssueCommentCore","issues.deleteIssueCommentDescription","issues.deleteIssueCommentInputSchema","issues.deleteIssueCommentCore","issues.closeIssueDescription","issues.closeIssueInputSchema","issues.closeIssueCore","issues.updateIssueDescription","issues.updateIssueInputSchema","issues.updateIssueCore","issues.listLabelsDescription","issues.listLabelsInputSchema","issues.listLabelsCore","issues.addLabelsDescription","issues.addLabelsInputSchema","issues.addLabelsCore","issues.removeLabelDescription","issues.removeLabelInputSchema","issues.removeLabelCore","issues.addAssigneesDescription","issues.addAssigneesInputSchema","issues.addAssigneesCore","issues.removeAssigneesDescription","issues.removeAssigneesInputSchema","issues.removeAssigneesCore","reactions.listIssueReactionsDescription","reactions.listIssueReactionsInputSchema","reactions.listIssueReactionsCore","reactions.addIssueReactionDescription","reactions.addIssueReactionInputSchema","reactions.addIssueReactionCore","reactions.listCommentReactionsDescription","reactions.listCommentReactionsInputSchema","reactions.listCommentReactionsCore","reactions.addCommentReactionDescription","reactions.addCommentReactionInputSchema","reactions.addCommentReactionCore","discussions.listDiscussionsDescription","discussions.listDiscussionsInputSchema","discussions.listDiscussionsCore","discussions.getDiscussionDescription","discussions.getDiscussionInputSchema","discussions.getDiscussionCore","discussions.addDiscussionCommentDescription","discussions.addDiscussionCommentInputSchema","discussions.addDiscussionCommentCore","notifications.listNotificationsDescription","notifications.listNotificationsInputSchema","notifications.listNotificationsCore","notifications.markNotificationReadDescription","notifications.markNotificationReadInputSchema","notifications.markNotificationReadCore","search.searchCodeDescription","search.searchCodeInputSchema","search.searchCodeCore","search.searchRepositoriesDescription","search.searchRepositoriesInputSchema","search.searchRepositoriesCore","search.searchIssuesDescription","search.searchIssuesInputSchema","search.searchIssuesCore","commits.listCommitsDescription","commits.listCommitsInputSchema","commits.listCommitsCore","commits.getCommitDescription","commits.getCommitInputSchema","commits.getCommitCore","commits.getBlameDescription","commits.getBlameInputSchema","commits.getBlameCore","commits.compareCommitsDescription","commits.compareCommitsInputSchema","commits.compareCommitsCore","gists.listGistsDescription","gists.listGistsInputSchema","gists.listGistsCore","gists.getGistDescription","gists.getGistInputSchema","gists.getGistCore","gists.listGistCommentsDescription","gists.listGistCommentsInputSchema","gists.listGistCommentsCore","gists.createGistDescription","gists.createGistInputSchema","gists.createGistCore","gists.updateGistDescription","gists.updateGistInputSchema","gists.updateGistCore","gists.deleteGistDescription","gists.deleteGistInputSchema","gists.deleteGistCore","gists.createGistCommentDescription","gists.createGistCommentInputSchema","gists.createGistCommentCore","workflows.listWorkflowsDescription","workflows.listWorkflowsInputSchema","workflows.listWorkflowsCore","workflows.listWorkflowRunsDescription","workflows.listWorkflowRunsInputSchema","workflows.listWorkflowRunsCore","workflows.getWorkflowRunDescription","workflows.getWorkflowRunInputSchema","workflows.getWorkflowRunCore","workflows.listWorkflowJobsDescription","workflows.listWorkflowJobsInputSchema","workflows.listWorkflowJobsCore","workflows.triggerWorkflowDescription","workflows.triggerWorkflowInputSchema","workflows.triggerWorkflowCore","workflows.cancelWorkflowRunDescription","workflows.cancelWorkflowRunInputSchema","workflows.cancelWorkflowRunCore","workflows.rerunWorkflowRunDescription","workflows.rerunWorkflowRunInputSchema","workflows.rerunWorkflowRunCore","checks.listCheckRunsDescription","checks.listCheckRunsInputSchema","checks.listCheckRunsCore","checks.getCombinedStatusDescription","checks.getCombinedStatusInputSchema","checks.getCombinedStatusCore","bundles.getCiFailureContextDescription","bundles.getCiFailureContextInputSchema","bundles.getCiFailureContextCore","releases.listReleasesDescription","releases.listReleasesInputSchema","releases.listReleasesCore","releases.getLatestReleaseDescription","releases.getLatestReleaseInputSchema","releases.getLatestReleaseCore","releases.getReleaseDescription","releases.getReleaseInputSchema","releases.getReleaseCore","bundles.getReleaseContextDescription","bundles.getReleaseContextInputSchema","bundles.getReleaseContextCore","releases.createReleaseDescription","releases.createReleaseInputSchema","releases.createReleaseCore","releases.updateReleaseDescription","releases.updateReleaseInputSchema","releases.updateReleaseCore","releases.deleteReleaseDescription","releases.deleteReleaseInputSchema","releases.deleteReleaseCore"],"sources":["../src/eve/load-eve.ts","../src/eve/approval.ts","../src/eve/registry.ts","../src/eve/steps.ts","../src/eve/build.ts"],"sourcesContent":["import * as eveTools from 'eve/tools'\nimport * as eveApproval from 'eve/tools/approval'\n\n/**\n * Static ESM imports so bundlers (eve/Nitro/Vercel) can resolve `eve` when it is\n * compiled into the output rather than left as `node_modules/eve` at runtime.\n * Runtime `createRequire(\"eve/tools\")` fails in those targets.\n */\nexport type EveToolsModule = typeof import('eve/tools')\nexport type EveApprovalModule = typeof import('eve/tools/approval')\n\nexport const MISSING_EVE_MESSAGE =\n 'The \"eve\" package is required to use @github-tools/sdk/eve. Install it with: pnpm add eve'\n\nexport function getEveTools(): EveToolsModule {\n return eveTools\n}\n\nexport function getEveApprovalHelpers(): EveApprovalModule {\n return eveApproval\n}\n","import type { Approval } from 'eve/tools'\nimport type { GithubWriteToolName } from '../core/write-tools'\nimport { getEveApprovalHelpers } from './load-eve'\nimport type { EveApprovalConfig, EveApprovalValue } from './types'\n\nexport function mapEveApprovalValue(value: EveApprovalValue): Approval {\n if (typeof value === 'function') return value\n\n const { always, never, once } = getEveApprovalHelpers()\n\n if (value === true || value === 'always') return always()\n if (value === false || value === 'never') return never()\n if (value === 'once') return once()\n\n return always()\n}\n\nexport function resolveEveApproval(\n toolName: GithubWriteToolName,\n config: EveApprovalConfig | undefined,\n): Approval | undefined {\n if (config === undefined) return getEveApprovalHelpers().always()\n if (config === true) return getEveApprovalHelpers().always()\n if (config === false) return getEveApprovalHelpers().never()\n\n const value = config[toolName]\n if (value === undefined) return getEveApprovalHelpers().always()\n\n return mapEveApprovalValue(value)\n}\n","import type { ToolModelOutput } from 'eve/tools'\nimport type { z } from 'zod'\nimport type { CommitIdentity } from '../types'\nimport * as bundles from '../core/bundles'\nimport * as checks from '../core/checks'\nimport * as commits from '../core/commits'\nimport { mergeContextArgs, softenContextSchema, type GithubToolsContext } from '../core/context'\nimport * as discussions from '../core/discussions'\nimport * as gists from '../core/gists'\nimport * as issues from '../core/issues'\nimport * as notifications from '../core/notifications'\nimport {\n compareCommitsToModelOutput,\n getCommitToModelOutput,\n getFileContentToModelOutput,\n getPullRequestContextToModelOutput,\n listPullRequestFilesToModelOutput,\n} from '../core/model-output'\nimport * as pullRequests from '../core/pull-requests'\nimport * as reactions from '../core/reactions'\nimport * as releases from '../core/releases'\nimport * as repository from '../core/repository'\nimport * as search from '../core/search'\nimport * as workflows from '../core/workflows'\nimport { resolveGithubToken, type GithubTokenInput } from '../core/token'\nimport type { GithubWriteToolName } from '../core/write-tools'\nimport type { GithubToolName } from '../core/tool-names'\nexport type { GithubToolName } from '../core/tool-names'\nexport { ALL_GITHUB_TOOL_NAMES } from '../core/tool-names'\n\nexport type ToolBuildContext = {\n token: GithubTokenInput\n context?: GithubToolsContext\n author?: CommitIdentity\n committer?: CommitIdentity\n coAuthors?: CommitIdentity[]\n}\n\ntype ToolRegistryEntry = {\n name: GithubToolName\n writeTool?: GithubWriteToolName\n description: string\n inputSchema: z.ZodType\n execute: (args: Record<string, unknown>) => Promise<unknown>\n toModelOutput?: (output: unknown) => ToolModelOutput\n}\n\nfunction withToken<T extends Record<string, unknown>>(\n core: (args: T & { token: string }) => Promise<unknown>,\n ctx: ToolBuildContext,\n extra?: Record<string, unknown>,\n) {\n return async (input: Record<string, unknown>) =>\n core({\n token: await resolveGithubToken(ctx.token),\n ...extra,\n ...mergeContextArgs(input, ctx.context ?? {}),\n } as T & { token: string })\n}\n\nfunction modelOutputAdapter(\n fn: (options: { toolCallId: string, input: unknown, output: unknown }) => { type: 'json' | 'text', value: unknown },\n) {\n return (output: unknown) => fn({ toolCallId: '', input: {}, output }) as ToolModelOutput\n}\n\nexport function createToolRegistry(ctx: ToolBuildContext): ToolRegistryEntry[] {\n const entries: ToolRegistryEntry[] = [\n {\n name: 'getRepository',\n description: repository.getRepositoryDescription,\n inputSchema: repository.getRepositoryInputSchema,\n execute: withToken(repository.getRepositoryCore, ctx),\n },\n {\n name: 'listBranches',\n description: repository.listBranchesDescription,\n inputSchema: repository.listBranchesInputSchema,\n execute: withToken(repository.listBranchesCore, ctx),\n },\n {\n name: 'getFileContent',\n description: repository.getFileContentDescription,\n inputSchema: repository.getFileContentInputSchema,\n execute: withToken(repository.getFileContentCore, ctx),\n toModelOutput: modelOutputAdapter(getFileContentToModelOutput),\n },\n {\n name: 'getRepositoryTree',\n description: repository.getRepositoryTreeDescription,\n inputSchema: repository.getRepositoryTreeInputSchema,\n execute: withToken(repository.getRepositoryTreeCore, ctx),\n },\n {\n name: 'createBranch',\n writeTool: 'createBranch',\n description: repository.createBranchDescription,\n inputSchema: repository.createBranchInputSchema,\n execute: withToken(repository.createBranchCore, ctx),\n },\n {\n name: 'forkRepository',\n writeTool: 'forkRepository',\n description: repository.forkRepositoryDescription,\n inputSchema: repository.forkRepositoryInputSchema,\n execute: withToken(repository.forkRepositoryCore, ctx),\n },\n {\n name: 'createRepository',\n writeTool: 'createRepository',\n description: repository.createRepositoryDescription,\n inputSchema: repository.createRepositoryInputSchema,\n execute: withToken(repository.createRepositoryCore, ctx),\n },\n {\n name: 'createOrUpdateFile',\n writeTool: 'createOrUpdateFile',\n description: repository.createOrUpdateFileDescription,\n inputSchema: repository.createOrUpdateFileInputSchema,\n execute: withToken(repository.createOrUpdateFileCore, ctx, {\n author: ctx.author,\n committer: ctx.committer,\n coAuthors: ctx.coAuthors,\n }),\n },\n {\n name: 'listPullRequests',\n description: pullRequests.listPullRequestsDescription,\n inputSchema: pullRequests.listPullRequestsInputSchema,\n execute: withToken(pullRequests.listPullRequestsCore, ctx),\n },\n {\n name: 'getPullRequest',\n description: pullRequests.getPullRequestDescription,\n inputSchema: pullRequests.getPullRequestInputSchema,\n execute: withToken(pullRequests.getPullRequestCore, ctx),\n },\n {\n name: 'createPullRequest',\n writeTool: 'createPullRequest',\n description: pullRequests.createPullRequestDescription,\n inputSchema: pullRequests.createPullRequestInputSchema,\n execute: withToken(pullRequests.createPullRequestCore, ctx),\n },\n {\n name: 'mergePullRequest',\n writeTool: 'mergePullRequest',\n description: pullRequests.mergePullRequestDescription,\n inputSchema: pullRequests.mergePullRequestInputSchema,\n execute: withToken(pullRequests.mergePullRequestCore, ctx, { coAuthors: ctx.coAuthors }),\n },\n {\n name: 'updatePullRequest',\n writeTool: 'updatePullRequest',\n description: pullRequests.updatePullRequestDescription,\n inputSchema: pullRequests.updatePullRequestInputSchema,\n execute: withToken(pullRequests.updatePullRequestCore, ctx),\n },\n {\n name: 'addPullRequestComment',\n writeTool: 'addPullRequestComment',\n description: pullRequests.addPullRequestCommentDescription,\n inputSchema: pullRequests.addPullRequestCommentInputSchema,\n execute: withToken(pullRequests.addPullRequestCommentCore, ctx),\n },\n {\n name: 'updatePullRequestComment',\n writeTool: 'updatePullRequestComment',\n description: pullRequests.updatePullRequestCommentDescription,\n inputSchema: pullRequests.updatePullRequestCommentInputSchema,\n execute: withToken(pullRequests.updatePullRequestCommentCore, ctx),\n },\n {\n name: 'deletePullRequestComment',\n writeTool: 'deletePullRequestComment',\n description: pullRequests.deletePullRequestCommentDescription,\n inputSchema: pullRequests.deletePullRequestCommentInputSchema,\n execute: withToken(pullRequests.deletePullRequestCommentCore, ctx),\n },\n {\n name: 'listPullRequestFiles',\n description: pullRequests.listPullRequestFilesDescription,\n inputSchema: pullRequests.listPullRequestFilesInputSchema,\n execute: withToken(pullRequests.listPullRequestFilesCore, ctx),\n toModelOutput: modelOutputAdapter(listPullRequestFilesToModelOutput),\n },\n {\n name: 'listPullRequestReviews',\n description: pullRequests.listPullRequestReviewsDescription,\n inputSchema: pullRequests.listPullRequestReviewsInputSchema,\n execute: withToken(pullRequests.listPullRequestReviewsCore, ctx),\n },\n {\n name: 'createPullRequestReview',\n writeTool: 'createPullRequestReview',\n description: pullRequests.createPullRequestReviewDescription,\n inputSchema: pullRequests.createPullRequestReviewInputSchema,\n execute: withToken(pullRequests.createPullRequestReviewCore, ctx),\n },\n {\n name: 'requestReviewers',\n writeTool: 'requestReviewers',\n description: pullRequests.requestReviewersDescription,\n inputSchema: pullRequests.requestReviewersInputSchema,\n execute: withToken(pullRequests.requestReviewersCore, ctx),\n },\n {\n name: 'getPullRequestContext',\n description: bundles.getPullRequestContextDescription,\n inputSchema: bundles.getPullRequestContextInputSchema,\n execute: withToken(bundles.getPullRequestContextCore, ctx),\n toModelOutput: modelOutputAdapter(getPullRequestContextToModelOutput),\n },\n {\n name: 'getIssueContext',\n description: bundles.getIssueContextDescription,\n inputSchema: bundles.getIssueContextInputSchema,\n execute: withToken(bundles.getIssueContextCore, ctx),\n },\n {\n name: 'listIssues',\n description: issues.listIssuesDescription,\n inputSchema: issues.listIssuesInputSchema,\n execute: withToken(issues.listIssuesCore, ctx),\n },\n {\n name: 'getIssue',\n description: issues.getIssueDescription,\n inputSchema: issues.getIssueInputSchema,\n execute: withToken(issues.getIssueCore, ctx),\n },\n {\n name: 'createIssue',\n writeTool: 'createIssue',\n description: issues.createIssueDescription,\n inputSchema: issues.createIssueInputSchema,\n execute: withToken(issues.createIssueCore, ctx),\n },\n {\n name: 'addIssueComment',\n writeTool: 'addIssueComment',\n description: issues.addIssueCommentDescription,\n inputSchema: issues.addIssueCommentInputSchema,\n execute: withToken(issues.addIssueCommentCore, ctx),\n },\n {\n name: 'updateIssueComment',\n writeTool: 'updateIssueComment',\n description: issues.updateIssueCommentDescription,\n inputSchema: issues.updateIssueCommentInputSchema,\n execute: withToken(issues.updateIssueCommentCore, ctx),\n },\n {\n name: 'deleteIssueComment',\n writeTool: 'deleteIssueComment',\n description: issues.deleteIssueCommentDescription,\n inputSchema: issues.deleteIssueCommentInputSchema,\n execute: withToken(issues.deleteIssueCommentCore, ctx),\n },\n {\n name: 'closeIssue',\n writeTool: 'closeIssue',\n description: issues.closeIssueDescription,\n inputSchema: issues.closeIssueInputSchema,\n execute: withToken(issues.closeIssueCore, ctx),\n },\n {\n name: 'updateIssue',\n writeTool: 'updateIssue',\n description: issues.updateIssueDescription,\n inputSchema: issues.updateIssueInputSchema,\n execute: withToken(issues.updateIssueCore, ctx),\n },\n {\n name: 'listLabels',\n description: issues.listLabelsDescription,\n inputSchema: issues.listLabelsInputSchema,\n execute: withToken(issues.listLabelsCore, ctx),\n },\n {\n name: 'addLabels',\n writeTool: 'addLabels',\n description: issues.addLabelsDescription,\n inputSchema: issues.addLabelsInputSchema,\n execute: withToken(issues.addLabelsCore, ctx),\n },\n {\n name: 'removeLabel',\n writeTool: 'removeLabel',\n description: issues.removeLabelDescription,\n inputSchema: issues.removeLabelInputSchema,\n execute: withToken(issues.removeLabelCore, ctx),\n },\n {\n name: 'addAssignees',\n writeTool: 'addAssignees',\n description: issues.addAssigneesDescription,\n inputSchema: issues.addAssigneesInputSchema,\n execute: withToken(issues.addAssigneesCore, ctx),\n },\n {\n name: 'removeAssignees',\n writeTool: 'removeAssignees',\n description: issues.removeAssigneesDescription,\n inputSchema: issues.removeAssigneesInputSchema,\n execute: withToken(issues.removeAssigneesCore, ctx),\n },\n {\n name: 'listIssueReactions',\n description: reactions.listIssueReactionsDescription,\n inputSchema: reactions.listIssueReactionsInputSchema,\n execute: withToken(reactions.listIssueReactionsCore, ctx),\n },\n {\n name: 'addIssueReaction',\n writeTool: 'addIssueReaction',\n description: reactions.addIssueReactionDescription,\n inputSchema: reactions.addIssueReactionInputSchema,\n execute: withToken(reactions.addIssueReactionCore, ctx),\n },\n {\n name: 'listCommentReactions',\n description: reactions.listCommentReactionsDescription,\n inputSchema: reactions.listCommentReactionsInputSchema,\n execute: withToken(reactions.listCommentReactionsCore, ctx),\n },\n {\n name: 'addCommentReaction',\n writeTool: 'addCommentReaction',\n description: reactions.addCommentReactionDescription,\n inputSchema: reactions.addCommentReactionInputSchema,\n execute: withToken(reactions.addCommentReactionCore, ctx),\n },\n {\n name: 'listDiscussions',\n description: discussions.listDiscussionsDescription,\n inputSchema: discussions.listDiscussionsInputSchema,\n execute: withToken(discussions.listDiscussionsCore, ctx),\n },\n {\n name: 'getDiscussion',\n description: discussions.getDiscussionDescription,\n inputSchema: discussions.getDiscussionInputSchema,\n execute: withToken(discussions.getDiscussionCore, ctx),\n },\n {\n name: 'addDiscussionComment',\n writeTool: 'addDiscussionComment',\n description: discussions.addDiscussionCommentDescription,\n inputSchema: discussions.addDiscussionCommentInputSchema,\n execute: withToken(discussions.addDiscussionCommentCore, ctx),\n },\n {\n name: 'listNotifications',\n description: notifications.listNotificationsDescription,\n inputSchema: notifications.listNotificationsInputSchema,\n execute: withToken(notifications.listNotificationsCore, ctx),\n },\n {\n name: 'markNotificationRead',\n writeTool: 'markNotificationRead',\n description: notifications.markNotificationReadDescription,\n inputSchema: notifications.markNotificationReadInputSchema,\n execute: withToken(notifications.markNotificationReadCore, ctx),\n },\n {\n name: 'searchCode',\n description: search.searchCodeDescription,\n inputSchema: search.searchCodeInputSchema,\n execute: withToken(search.searchCodeCore, ctx),\n },\n {\n name: 'searchRepositories',\n description: search.searchRepositoriesDescription,\n inputSchema: search.searchRepositoriesInputSchema,\n execute: withToken(search.searchRepositoriesCore, ctx),\n },\n {\n name: 'searchIssues',\n description: search.searchIssuesDescription,\n inputSchema: search.searchIssuesInputSchema,\n execute: withToken(search.searchIssuesCore, ctx),\n },\n {\n name: 'listCommits',\n description: commits.listCommitsDescription,\n inputSchema: commits.listCommitsInputSchema,\n execute: withToken(commits.listCommitsCore, ctx),\n },\n {\n name: 'getCommit',\n description: commits.getCommitDescription,\n inputSchema: commits.getCommitInputSchema,\n execute: withToken(commits.getCommitCore, ctx),\n toModelOutput: modelOutputAdapter(getCommitToModelOutput),\n },\n {\n name: 'getBlame',\n description: commits.getBlameDescription,\n inputSchema: commits.getBlameInputSchema,\n execute: withToken(commits.getBlameCore, ctx),\n },\n {\n name: 'compareCommits',\n description: commits.compareCommitsDescription,\n inputSchema: commits.compareCommitsInputSchema,\n execute: withToken(commits.compareCommitsCore, ctx),\n toModelOutput: modelOutputAdapter(compareCommitsToModelOutput),\n },\n {\n name: 'listGists',\n description: gists.listGistsDescription,\n inputSchema: gists.listGistsInputSchema,\n execute: withToken(gists.listGistsCore, ctx),\n },\n {\n name: 'getGist',\n description: gists.getGistDescription,\n inputSchema: gists.getGistInputSchema,\n execute: withToken(gists.getGistCore, ctx),\n },\n {\n name: 'listGistComments',\n description: gists.listGistCommentsDescription,\n inputSchema: gists.listGistCommentsInputSchema,\n execute: withToken(gists.listGistCommentsCore, ctx),\n },\n {\n name: 'createGist',\n writeTool: 'createGist',\n description: gists.createGistDescription,\n inputSchema: gists.createGistInputSchema,\n execute: withToken(gists.createGistCore, ctx),\n },\n {\n name: 'updateGist',\n writeTool: 'updateGist',\n description: gists.updateGistDescription,\n inputSchema: gists.updateGistInputSchema,\n execute: withToken(gists.updateGistCore, ctx),\n },\n {\n name: 'deleteGist',\n writeTool: 'deleteGist',\n description: gists.deleteGistDescription,\n inputSchema: gists.deleteGistInputSchema,\n execute: withToken(gists.deleteGistCore, ctx),\n },\n {\n name: 'createGistComment',\n writeTool: 'createGistComment',\n description: gists.createGistCommentDescription,\n inputSchema: gists.createGistCommentInputSchema,\n execute: withToken(gists.createGistCommentCore, ctx),\n },\n {\n name: 'listWorkflows',\n description: workflows.listWorkflowsDescription,\n inputSchema: workflows.listWorkflowsInputSchema,\n execute: withToken(workflows.listWorkflowsCore, ctx),\n },\n {\n name: 'listWorkflowRuns',\n description: workflows.listWorkflowRunsDescription,\n inputSchema: workflows.listWorkflowRunsInputSchema,\n execute: withToken(workflows.listWorkflowRunsCore, ctx),\n },\n {\n name: 'getWorkflowRun',\n description: workflows.getWorkflowRunDescription,\n inputSchema: workflows.getWorkflowRunInputSchema,\n execute: withToken(workflows.getWorkflowRunCore, ctx),\n },\n {\n name: 'listWorkflowJobs',\n description: workflows.listWorkflowJobsDescription,\n inputSchema: workflows.listWorkflowJobsInputSchema,\n execute: withToken(workflows.listWorkflowJobsCore, ctx),\n },\n {\n name: 'triggerWorkflow',\n writeTool: 'triggerWorkflow',\n description: workflows.triggerWorkflowDescription,\n inputSchema: workflows.triggerWorkflowInputSchema,\n execute: withToken(workflows.triggerWorkflowCore, ctx),\n },\n {\n name: 'cancelWorkflowRun',\n writeTool: 'cancelWorkflowRun',\n description: workflows.cancelWorkflowRunDescription,\n inputSchema: workflows.cancelWorkflowRunInputSchema,\n execute: withToken(workflows.cancelWorkflowRunCore, ctx),\n },\n {\n name: 'rerunWorkflowRun',\n writeTool: 'rerunWorkflowRun',\n description: workflows.rerunWorkflowRunDescription,\n inputSchema: workflows.rerunWorkflowRunInputSchema,\n execute: withToken(workflows.rerunWorkflowRunCore, ctx),\n },\n {\n name: 'listCheckRuns',\n description: checks.listCheckRunsDescription,\n inputSchema: checks.listCheckRunsInputSchema,\n execute: withToken(checks.listCheckRunsCore, ctx),\n },\n {\n name: 'getCombinedStatus',\n description: checks.getCombinedStatusDescription,\n inputSchema: checks.getCombinedStatusInputSchema,\n execute: withToken(checks.getCombinedStatusCore, ctx),\n },\n {\n name: 'getCiFailureContext',\n description: bundles.getCiFailureContextDescription,\n inputSchema: bundles.getCiFailureContextInputSchema,\n execute: withToken(bundles.getCiFailureContextCore, ctx),\n },\n {\n name: 'listReleases',\n description: releases.listReleasesDescription,\n inputSchema: releases.listReleasesInputSchema,\n execute: withToken(releases.listReleasesCore, ctx),\n },\n {\n name: 'getLatestRelease',\n description: releases.getLatestReleaseDescription,\n inputSchema: releases.getLatestReleaseInputSchema,\n execute: withToken(releases.getLatestReleaseCore, ctx),\n },\n {\n name: 'getRelease',\n description: releases.getReleaseDescription,\n inputSchema: releases.getReleaseInputSchema,\n execute: withToken(releases.getReleaseCore, ctx),\n },\n {\n name: 'getReleaseContext',\n description: bundles.getReleaseContextDescription,\n inputSchema: bundles.getReleaseContextInputSchema,\n execute: withToken(bundles.getReleaseContextCore, ctx),\n },\n {\n name: 'createRelease',\n writeTool: 'createRelease',\n description: releases.createReleaseDescription,\n inputSchema: releases.createReleaseInputSchema,\n execute: withToken(releases.createReleaseCore, ctx),\n },\n {\n name: 'updateRelease',\n writeTool: 'updateRelease',\n description: releases.updateReleaseDescription,\n inputSchema: releases.updateReleaseInputSchema,\n execute: withToken(releases.updateReleaseCore, ctx),\n },\n {\n name: 'deleteRelease',\n writeTool: 'deleteRelease',\n description: releases.deleteReleaseDescription,\n inputSchema: releases.deleteReleaseInputSchema,\n execute: withToken(releases.deleteReleaseCore, ctx),\n },\n ]\n\n if (!ctx.context) return entries\n\n return entries.map(entry => ({\n ...entry,\n inputSchema: softenContextSchema(entry.inputSchema, ctx.context!),\n }))\n}\n","import { resolveGithubToken } from '../core/token'\nimport { createToolRegistry, type GithubToolName, type ToolBuildContext } from './registry'\n\nasync function executeGithubToolStep(\n name: GithubToolName,\n input: Record<string, unknown>,\n ctx: ToolBuildContext,\n) {\n 'use step'\n const entry = createToolRegistry(ctx).find(tool => tool.name === name)\n if (!entry) {\n throw new Error(`Unknown GitHub tool: ${name}`)\n }\n return entry.execute(input)\n}\n\nexport async function runGithubToolStep(\n name: GithubToolName,\n input: Record<string, unknown>,\n ctx: ToolBuildContext,\n) {\n // Resolve the token before entering the step so only a serializable string crosses the boundary.\n const token = await resolveGithubToken(ctx.token)\n return executeGithubToolStep(name, input, { ...ctx, token })\n}\n","import type { ToolDefinition } from 'eve/tools'\nimport { resolvePresetTools, type CombinedPresetToolNames, type GithubToolPreset, type PresetToolName } from '../core/presets'\nimport { createGithubTokenResolver } from '../core/token'\nimport { mapEveApprovalValue, resolveEveApproval } from './approval'\nimport { getEveTools } from './load-eve'\nimport { ALL_GITHUB_TOOL_NAMES, createToolRegistry, type GithubToolName, type ToolBuildContext } from './registry'\nimport { runGithubToolStep } from './steps'\nimport type { EveGithubToolsOptions, EveToolFactoryOptions, EveToolOverrides } from './types'\n\ntype BuildOptions = EveGithubToolsOptions | (EveToolFactoryOptions & { preset?: EveGithubToolsOptions['preset'] })\ntype EveToolMap = Partial<Record<GithubToolName, ToolDefinition>>\n\nfunction resolveAllowedToolNames(\n options: Pick<EveGithubToolsOptions, 'preset' | 'include' | 'exclude'>,\n): (name: GithubToolName) => boolean {\n const presetAllowed = options.preset ? resolvePresetTools(options.preset) : null\n const includeAllowed = options.include ? new Set(options.include) : null\n const excluded = options.exclude ? new Set(options.exclude) : null\n\n // `preset` and `include` compose as a union (add tools a preset is missing);\n // `exclude` always subtracts from that combined set afterward.\n const allowed = presetAllowed && includeAllowed\n ? new Set([...presetAllowed, ...includeAllowed])\n : presetAllowed ?? includeAllowed\n\n return name => (!allowed || allowed.has(name)) && !excluded?.has(name)\n}\n\nfunction applyOverrides<T extends ToolDefinition>(\n tool: T,\n name: GithubToolName,\n overrides?: EveToolOverrides,\n): T {\n const override = overrides?.[name]\n if (!override) return tool\n return {\n ...tool,\n ...override.description !== undefined && { description: override.description },\n ...override.approval !== undefined && { approval: mapEveApprovalValue(override.approval) },\n ...override.toModelOutput !== undefined && { toModelOutput: override.toModelOutput },\n ...override.outputSchema !== undefined && { outputSchema: override.outputSchema },\n }\n}\n\nexport function buildEveToolDefinition(\n name: GithubToolName,\n options: BuildOptions = {},\n): ToolDefinition {\n const { defineTool } = getEveTools()\n const ctx: ToolBuildContext = {\n token: createGithubTokenResolver(options.token),\n context: options.context,\n author: options.author,\n committer: options.committer,\n coAuthors: options.coAuthors,\n }\n\n const entry = createToolRegistry(ctx).find(tool => tool.name === name)\n if (!entry) {\n throw new Error(`Unknown GitHub tool: ${name}`)\n }\n\n const tool = defineTool({\n description: entry.description,\n inputSchema: entry.inputSchema,\n ...(entry.writeTool && {\n approval: resolveEveApproval(entry.writeTool, options.requireApproval),\n }),\n ...(entry.toModelOutput && { toModelOutput: entry.toModelOutput }),\n execute: async (input) => runGithubToolStep(name, input as Record<string, unknown>, ctx),\n })\n\n return applyOverrides(tool, name, options.overrides)\n}\n\nexport function buildEveToolMap(options: EveGithubToolsOptions = {}): EveToolMap {\n const { defineTool } = getEveTools()\n const ctx: ToolBuildContext = {\n token: createGithubTokenResolver(options.token),\n context: options.context,\n author: options.author,\n committer: options.committer,\n coAuthors: options.coAuthors,\n }\n\n const isAllowed = resolveAllowedToolNames(options)\n const registry = createToolRegistry(ctx)\n const tools = {} as EveToolMap\n\n for (const entry of registry) {\n if (!isAllowed(entry.name)) continue\n\n const tool = defineTool({\n description: entry.description,\n inputSchema: entry.inputSchema,\n ...(entry.writeTool && {\n approval: resolveEveApproval(entry.writeTool, options.requireApproval),\n }),\n ...(entry.toModelOutput && { toModelOutput: entry.toModelOutput }),\n execute: async (input) => runGithubToolStep(entry.name, input as Record<string, unknown>, ctx),\n })\n\n tools[entry.name] = applyOverrides(tool, entry.name, options.overrides)\n }\n\n return tools\n}\n\nexport function createEveGithubToolsDynamic(options: EveGithubToolsOptions = {}) {\n const { defineDynamic } = getEveTools()\n\n // TODO(eve-auth): resolve token from ctx.getToken('github') when eve-managed auth lands.\n // Deferred — eve does not yet expose managed GitHub tokens on the session context.\n return defineDynamic({\n events: {\n 'session.started': async () => buildEveToolMap(options),\n },\n })\n}\n\nexport function listResolvedEveToolNames(options?: { preset?: undefined, include?: undefined, exclude?: undefined }): GithubToolName[]\nexport function listResolvedEveToolNames<P extends GithubToolPreset>(options: { preset: P, include?: undefined, exclude?: undefined }): PresetToolName<P>[]\nexport function listResolvedEveToolNames<P extends readonly GithubToolPreset[]>(options: { preset: P, include?: undefined, exclude?: undefined }): CombinedPresetToolNames<P>[]\nexport function listResolvedEveToolNames(options: Pick<EveGithubToolsOptions, 'preset' | 'include' | 'exclude'>): GithubToolName[]\nexport function listResolvedEveToolNames(options: Pick<EveGithubToolsOptions, 'preset' | 'include' | 'exclude'> = {}): GithubToolName[] {\n const isAllowed = resolveAllowedToolNames(options)\n return ALL_GITHUB_TOOL_NAMES.filter(isAllowed)\n}\n\n/**\n * Tool descriptors (no `execute`) for authored eve `defineTool` loops.\n * Prefer this when registering tools outside the SDK package so durable transforms can hoist inline execute.\n */\nexport function listEveToolDescriptors(options: EveGithubToolsOptions = {}) {\n const ctx: ToolBuildContext = {\n token: createGithubTokenResolver(options.token),\n context: options.context,\n author: options.author,\n committer: options.committer,\n coAuthors: options.coAuthors,\n }\n\n const isAllowed = resolveAllowedToolNames(options)\n return createToolRegistry(ctx)\n .filter(entry => isAllowed(entry.name))\n .map(entry => ({\n name: entry.name,\n description: entry.description,\n inputSchema: entry.inputSchema,\n writeTool: entry.writeTool,\n toModelOutput: entry.toModelOutput,\n }))\n}\n\n/**\n * Execute a GitHub tool by name with the given eve options (token/context/attribution).\n * Used by `@github-tools/eve-extension` so `execute` only closes over a serializable tool name.\n */\nexport async function executeGithubEveTool(\n name: GithubToolName,\n input: Record<string, unknown>,\n options: EveGithubToolsOptions = {},\n) {\n const ctx: ToolBuildContext = {\n token: createGithubTokenResolver(options.token),\n context: options.context,\n author: options.author,\n committer: options.committer,\n coAuthors: options.coAuthors,\n }\n return runGithubToolStep(name, input, ctx)\n}\n"],"mappings":";;;;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AAQ;CAEiB,CAAG;AAC3C"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { At as GithubToolsForPreset, Ft as CommitIdentity, Gt as GithubToolPreset, Ht as GITHUB_WRITE_TOOLS, Jt as GITHUB_TOOL_NAMES, Kt as PRESET_TOOLS, Ot as AllGithubTools, Ut as GithubWriteToolName, Wt as CombinedPresetToolNames, Yt as GithubToolName, jt as PickGithubTools, qt as PresetToolName } from "./index-B0nL0C00.mjs";
|
|
2
|
+
import { a as EveToolOverrides, i as EveToolFactoryOptions, n as EveApprovalValue, r as EveGithubToolsOptions, t as EveApprovalConfig } from "./types-Ygt1pw1N.mjs";
|
|
3
|
+
import { a as buildEveToolMap, c as listEveToolDescriptors, i as buildEveToolDefinition, l as listResolvedEveToolNames, n as mapEveApprovalValue, o as createEveGithubToolsDynamic, r as resolveEveApproval, s as executeGithubEveTool, t as MISSING_EVE_MESSAGE } from "./eve-runtime-CI4dR_hI.mjs";
|
|
4
|
+
export { type AllGithubTools, type CombinedPresetToolNames, type CommitIdentity, type EveApprovalConfig, type EveApprovalValue, type EveGithubToolsOptions, type EveToolFactoryOptions, type EveToolOverrides, GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, type GithubToolName, type GithubToolPreset, type GithubToolsForPreset, type GithubWriteToolName, MISSING_EVE_MESSAGE, PRESET_TOOLS, type PickGithubTools, type PresetToolName, buildEveToolDefinition, buildEveToolMap, createEveGithubToolsDynamic, executeGithubEveTool, listEveToolDescriptors, listResolvedEveToolNames, mapEveApprovalValue, resolveEveApproval };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { i as PRESET_TOOLS, r as GITHUB_TOOL_NAMES, t as GITHUB_WRITE_TOOLS } from "./write-tools-uIVfURVp.mjs";
|
|
2
|
+
import { a as listEveToolDescriptors, c as resolveEveApproval, i as executeGithubEveTool, l as MISSING_EVE_MESSAGE, n as buildEveToolMap, o as listResolvedEveToolNames, r as createEveGithubToolsDynamic, s as mapEveApprovalValue, t as buildEveToolDefinition } from "./eve-runtime-CIcrt7MD.mjs";
|
|
3
|
+
export { GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, MISSING_EVE_MESSAGE, PRESET_TOOLS, buildEveToolDefinition, buildEveToolMap, createEveGithubToolsDynamic, executeGithubEveTool, listEveToolDescriptors, listResolvedEveToolNames, mapEveApprovalValue, resolveEveApproval };
|
package/dist/eve.d.mts
CHANGED
|
@@ -1,29 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as EveToolOverrides, i as EveToolFactoryOptions, n as EveApprovalValue, r as EveGithubToolsOptions, t as EveApprovalConfig } from "./types-
|
|
3
|
-
import {
|
|
4
|
-
import * as _$eve_tools0 from "eve/tools";
|
|
5
|
-
import { ToolDefinition, ToolModelOutput } from "eve/tools";
|
|
6
|
-
//#region src/eve/build.d.ts
|
|
7
|
-
type BuildOptions = EveGithubToolsOptions | (EveToolFactoryOptions & {
|
|
8
|
-
preset?: EveGithubToolsOptions['preset'];
|
|
9
|
-
});
|
|
10
|
-
type EveToolMap = Partial<Record<GithubToolName, ToolDefinition>>;
|
|
11
|
-
declare function buildEveToolDefinition(name: GithubToolName, options?: BuildOptions): ToolDefinition;
|
|
12
|
-
declare function buildEveToolMap(options?: EveGithubToolsOptions): EveToolMap;
|
|
13
|
-
declare function createEveGithubToolsDynamic(options?: EveGithubToolsOptions): _$eve_tools0.DynamicSentinel<Partial<Record<GithubToolName, ToolDefinition<unknown, unknown>>>>;
|
|
14
|
-
declare function listResolvedEveToolNames(options?: {
|
|
15
|
-
preset?: undefined;
|
|
16
|
-
}): GithubToolName[];
|
|
17
|
-
declare function listResolvedEveToolNames<P extends GithubToolPreset>(options: {
|
|
18
|
-
preset: P;
|
|
19
|
-
}): PresetToolName<P>[];
|
|
20
|
-
declare function listResolvedEveToolNames<P extends readonly GithubToolPreset[]>(options: {
|
|
21
|
-
preset: P;
|
|
22
|
-
}): CombinedPresetToolNames<P>[];
|
|
23
|
-
//#endregion
|
|
24
|
-
//#region src/eve/load-eve.d.ts
|
|
25
|
-
declare const MISSING_EVE_MESSAGE = "The \"eve\" package is required to use @github-tools/sdk/eve. Install it with: pnpm add eve";
|
|
26
|
-
//#endregion
|
|
1
|
+
import { At as GithubToolsForPreset, Ft as CommitIdentity, Gt as GithubToolPreset, Ht as GITHUB_WRITE_TOOLS, Jt as GITHUB_TOOL_NAMES, Kt as PRESET_TOOLS, Ot as AllGithubTools, Ut as GithubWriteToolName, Wt as CombinedPresetToolNames, Yt as GithubToolName, jt as PickGithubTools, qt as PresetToolName } from "./index-B0nL0C00.mjs";
|
|
2
|
+
import { a as EveToolOverrides, i as EveToolFactoryOptions, n as EveApprovalValue, r as EveGithubToolsOptions, t as EveApprovalConfig } from "./types-Ygt1pw1N.mjs";
|
|
3
|
+
import { a as buildEveToolMap, c as listEveToolDescriptors, i as buildEveToolDefinition, l as listResolvedEveToolNames, n as mapEveApprovalValue, o as createEveGithubToolsDynamic, r as resolveEveApproval, s as executeGithubEveTool, t as MISSING_EVE_MESSAGE } from "./eve-runtime-CI4dR_hI.mjs";
|
|
27
4
|
//#region src/eve.d.ts
|
|
28
5
|
/**
|
|
29
6
|
* Register all GitHub tools (or a preset subset) as eve dynamic capabilities.
|
|
@@ -34,92 +11,334 @@ declare const MISSING_EVE_MESSAGE = "The \"eve\" package is required to use @git
|
|
|
34
11
|
* import { createGithubTools } from '@github-tools/sdk/eve'
|
|
35
12
|
* export default createGithubTools({ preset: 'code-review' })
|
|
36
13
|
* ```
|
|
14
|
+
*
|
|
15
|
+
* @deprecated Use the mountable `@github-tools/eve-extension` (`githubExtension`) instead — it is now the
|
|
16
|
+
* recommended way to add GitHub tools to an eve agent. This direct import keeps working but is no longer
|
|
17
|
+
* the recommended path. See https://github-tools.com/frameworks/eve-extension.
|
|
18
|
+
*/
|
|
19
|
+
declare function createGithubTools(options?: EveGithubToolsOptions): import("eve/tools").DynamicSentinel<Partial<Record<GithubToolName, import("eve/tools").ToolDefinition<unknown, unknown>>>>;
|
|
20
|
+
/**
|
|
21
|
+
* Get information about a GitHub repository including description, stars, forks, language, and default branch.
|
|
22
|
+
*
|
|
23
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
24
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
25
|
+
*/
|
|
26
|
+
declare const getRepository: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
27
|
+
/**
|
|
28
|
+
* List branches in a GitHub repository.
|
|
29
|
+
*
|
|
30
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
31
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
32
|
+
*/
|
|
33
|
+
declare const listBranches: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
34
|
+
/**
|
|
35
|
+
* Get the content of a file from a GitHub repository.
|
|
36
|
+
*
|
|
37
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
38
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
39
|
+
*/
|
|
40
|
+
declare const getFileContent: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
41
|
+
/**
|
|
42
|
+
* Create a new branch in a GitHub repository from an existing branch or commit SHA. Requires approval by default.
|
|
43
|
+
*
|
|
44
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
45
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
46
|
+
*/
|
|
47
|
+
declare const createBranch: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
48
|
+
/**
|
|
49
|
+
* Fork a GitHub repository to the authenticated user account or a specified organization. Requires approval by default.
|
|
50
|
+
*
|
|
51
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
52
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
53
|
+
*/
|
|
54
|
+
declare const forkRepository: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
55
|
+
/**
|
|
56
|
+
* Create a new GitHub repository for the authenticated user or a specified organization. Requires approval by default.
|
|
57
|
+
*
|
|
58
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
59
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
60
|
+
*/
|
|
61
|
+
declare const createRepository: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
62
|
+
/**
|
|
63
|
+
* Create or update a file in a GitHub repository. Provide the SHA when updating an existing file. Requires approval by default.
|
|
64
|
+
*
|
|
65
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
66
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
67
|
+
*/
|
|
68
|
+
declare const createOrUpdateFile: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
69
|
+
/**
|
|
70
|
+
* List pull requests for a GitHub repository.
|
|
71
|
+
*
|
|
72
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
73
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
74
|
+
*/
|
|
75
|
+
declare const listPullRequests: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
76
|
+
/**
|
|
77
|
+
* Get detailed information about a specific pull request.
|
|
78
|
+
*
|
|
79
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
80
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
81
|
+
*/
|
|
82
|
+
declare const getPullRequest: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
83
|
+
/**
|
|
84
|
+
* Create a new pull request in a GitHub repository. Requires approval by default.
|
|
85
|
+
*
|
|
86
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
87
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
88
|
+
*/
|
|
89
|
+
declare const createPullRequest: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
90
|
+
/**
|
|
91
|
+
* Merge a pull request. Requires approval by default.
|
|
92
|
+
*
|
|
93
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
94
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
95
|
+
*/
|
|
96
|
+
declare const mergePullRequest: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
97
|
+
/**
|
|
98
|
+
* Add a comment to a pull request. Requires approval by default.
|
|
99
|
+
*
|
|
100
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
101
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
102
|
+
*/
|
|
103
|
+
declare const addPullRequestComment: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
104
|
+
/**
|
|
105
|
+
* List files changed in a pull request, including diff status and patch content.
|
|
106
|
+
*
|
|
107
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
108
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
109
|
+
*/
|
|
110
|
+
declare const listPullRequestFiles: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
111
|
+
/**
|
|
112
|
+
* List reviews on a pull request (approvals, change requests, and comments).
|
|
113
|
+
*
|
|
114
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
115
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
116
|
+
*/
|
|
117
|
+
declare const listPullRequestReviews: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
118
|
+
/**
|
|
119
|
+
* Submit a pull request review with optional inline comments. Requires approval by default.
|
|
120
|
+
*
|
|
121
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
122
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
123
|
+
*/
|
|
124
|
+
declare const createPullRequestReview: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
125
|
+
/**
|
|
126
|
+
* Fetch pull request details plus files, reviews, and optional CI checks in one call.
|
|
127
|
+
*
|
|
128
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
129
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
130
|
+
*/
|
|
131
|
+
declare const getPullRequestContext: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
132
|
+
/**
|
|
133
|
+
* Fetch an issue plus available label names and recent comments in one call.
|
|
134
|
+
*
|
|
135
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
136
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
137
|
+
*/
|
|
138
|
+
declare const getIssueContext: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
139
|
+
/**
|
|
140
|
+
* List issues for a GitHub repository (excludes pull requests).
|
|
141
|
+
*
|
|
142
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
143
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
144
|
+
*/
|
|
145
|
+
declare const listIssues: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
146
|
+
/**
|
|
147
|
+
* Get detailed information about a specific issue.
|
|
148
|
+
*
|
|
149
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
150
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
151
|
+
*/
|
|
152
|
+
declare const getIssue: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
153
|
+
/**
|
|
154
|
+
* Create a new issue in a GitHub repository. Requires approval by default.
|
|
155
|
+
*
|
|
156
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
157
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
158
|
+
*/
|
|
159
|
+
declare const createIssue: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
160
|
+
/**
|
|
161
|
+
* Add a comment to a GitHub issue. Requires approval by default.
|
|
162
|
+
*
|
|
163
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
164
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
165
|
+
*/
|
|
166
|
+
declare const addIssueComment: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
167
|
+
/**
|
|
168
|
+
* Close an open GitHub issue. Requires approval by default.
|
|
169
|
+
*
|
|
170
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
171
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
172
|
+
*/
|
|
173
|
+
declare const closeIssue: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
174
|
+
/**
|
|
175
|
+
* List labels available in a GitHub repository.
|
|
176
|
+
*
|
|
177
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
178
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
179
|
+
*/
|
|
180
|
+
declare const listLabels: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
181
|
+
/**
|
|
182
|
+
* Add labels to an issue or pull request. Requires approval by default.
|
|
183
|
+
*
|
|
184
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
185
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
186
|
+
*/
|
|
187
|
+
declare const addLabels: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
188
|
+
/**
|
|
189
|
+
* Remove a label from an issue or pull request. Requires approval by default.
|
|
190
|
+
*
|
|
191
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
192
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
193
|
+
*/
|
|
194
|
+
declare const removeLabel: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
195
|
+
/**
|
|
196
|
+
* Search for code in GitHub repositories. Use qualifiers like "repo:owner/name" to scope the search.
|
|
197
|
+
*
|
|
198
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
199
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
200
|
+
*/
|
|
201
|
+
declare const searchCode: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
202
|
+
/**
|
|
203
|
+
* Search for GitHub repositories by keyword, topic, language, or other qualifiers.
|
|
204
|
+
*
|
|
205
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
206
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
207
|
+
*/
|
|
208
|
+
declare const searchRepositories: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
209
|
+
/**
|
|
210
|
+
* List commits for a GitHub repository. Filter by file path to see commits that touched a file.
|
|
211
|
+
*
|
|
212
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
213
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
214
|
+
*/
|
|
215
|
+
declare const listCommits: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
216
|
+
/**
|
|
217
|
+
* Get detailed information about a specific commit, including files changed with additions and deletions.
|
|
218
|
+
*
|
|
219
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
220
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
221
|
+
*/
|
|
222
|
+
declare const getCommit: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
223
|
+
/**
|
|
224
|
+
* Line-level git blame for a file at a commit-like ref (branch, tag, or SHA).
|
|
225
|
+
*
|
|
226
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
227
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
228
|
+
*/
|
|
229
|
+
declare const getBlame: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
230
|
+
/**
|
|
231
|
+
* List gists for the authenticated user or a specific user.
|
|
232
|
+
*
|
|
233
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
234
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
235
|
+
*/
|
|
236
|
+
declare const listGists: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
237
|
+
/**
|
|
238
|
+
* Get a gist by ID, including file contents.
|
|
239
|
+
*
|
|
240
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
241
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
242
|
+
*/
|
|
243
|
+
declare const getGist: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
244
|
+
/**
|
|
245
|
+
* List comments on a gist.
|
|
246
|
+
*
|
|
247
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
248
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
249
|
+
*/
|
|
250
|
+
declare const listGistComments: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
251
|
+
/**
|
|
252
|
+
* Create a new gist with one or more files. Requires approval by default.
|
|
253
|
+
*
|
|
254
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
255
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
256
|
+
*/
|
|
257
|
+
declare const createGist: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
258
|
+
/**
|
|
259
|
+
* Update an existing gist. Requires approval by default.
|
|
260
|
+
*
|
|
261
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
262
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
263
|
+
*/
|
|
264
|
+
declare const updateGist: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
265
|
+
/**
|
|
266
|
+
* Delete a gist permanently. Requires approval by default.
|
|
267
|
+
*
|
|
268
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
269
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
270
|
+
*/
|
|
271
|
+
declare const deleteGist: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
272
|
+
/**
|
|
273
|
+
* Add a comment to a gist. Requires approval by default.
|
|
274
|
+
*
|
|
275
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
276
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
277
|
+
*/
|
|
278
|
+
declare const createGistComment: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
279
|
+
/**
|
|
280
|
+
* List GitHub Actions workflows in a repository.
|
|
281
|
+
*
|
|
282
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
283
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
284
|
+
*/
|
|
285
|
+
declare const listWorkflows: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
286
|
+
/**
|
|
287
|
+
* List workflow runs for a repository, optionally filtered by workflow, branch, status, or event.
|
|
288
|
+
*
|
|
289
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
290
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
291
|
+
*/
|
|
292
|
+
declare const listWorkflowRuns: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
293
|
+
/**
|
|
294
|
+
* Get details of a specific workflow run including status, timing, and trigger info.
|
|
295
|
+
*
|
|
296
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
297
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
298
|
+
*/
|
|
299
|
+
declare const getWorkflowRun: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
300
|
+
/**
|
|
301
|
+
* List jobs for a workflow run, including step-level status and timing.
|
|
302
|
+
*
|
|
303
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
304
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
305
|
+
*/
|
|
306
|
+
declare const listWorkflowJobs: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
307
|
+
/**
|
|
308
|
+
* Trigger a workflow via workflow_dispatch event. Requires approval by default.
|
|
309
|
+
*
|
|
310
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
311
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
312
|
+
*/
|
|
313
|
+
declare const triggerWorkflow: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
314
|
+
/**
|
|
315
|
+
* Cancel an in-progress workflow run. Requires approval by default.
|
|
316
|
+
*
|
|
317
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
318
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
319
|
+
*/
|
|
320
|
+
declare const cancelWorkflowRun: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
321
|
+
/**
|
|
322
|
+
* Re-run a workflow run, optionally only the failed jobs. Requires approval by default.
|
|
323
|
+
*
|
|
324
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
325
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
326
|
+
*/
|
|
327
|
+
declare const rerunWorkflowRun: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
328
|
+
/**
|
|
329
|
+
* Diagnose CI failures for a ref — combined status, failing checks, and failed workflow jobs in one call.
|
|
330
|
+
*
|
|
331
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
332
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
333
|
+
*/
|
|
334
|
+
declare const getCiFailureContext: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
335
|
+
/**
|
|
336
|
+
* Fetch a release plus the previous release and tag comparison in one call.
|
|
337
|
+
*
|
|
338
|
+
* @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
|
|
339
|
+
* instead. See https://github-tools.com/frameworks/eve-extension.
|
|
37
340
|
*/
|
|
38
|
-
declare
|
|
39
|
-
/** Get information about a GitHub repository including description, stars, forks, language, and default branch. */
|
|
40
|
-
declare const getRepository: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
41
|
-
/** List branches in a GitHub repository. */
|
|
42
|
-
declare const listBranches: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
43
|
-
/** Get the content of a file from a GitHub repository. */
|
|
44
|
-
declare const getFileContent: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
45
|
-
/** Create a new branch in a GitHub repository from an existing branch or commit SHA. Requires approval by default. */
|
|
46
|
-
declare const createBranch: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
47
|
-
/** Fork a GitHub repository to the authenticated user account or a specified organization. Requires approval by default. */
|
|
48
|
-
declare const forkRepository: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
49
|
-
/** Create a new GitHub repository for the authenticated user or a specified organization. Requires approval by default. */
|
|
50
|
-
declare const createRepository: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
51
|
-
/** Create or update a file in a GitHub repository. Provide the SHA when updating an existing file. Requires approval by default. */
|
|
52
|
-
declare const createOrUpdateFile: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
53
|
-
/** List pull requests for a GitHub repository. */
|
|
54
|
-
declare const listPullRequests: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
55
|
-
/** Get detailed information about a specific pull request. */
|
|
56
|
-
declare const getPullRequest: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
57
|
-
/** Create a new pull request in a GitHub repository. Requires approval by default. */
|
|
58
|
-
declare const createPullRequest: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
59
|
-
/** Merge a pull request. Requires approval by default. */
|
|
60
|
-
declare const mergePullRequest: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
61
|
-
/** Add a comment to a pull request. Requires approval by default. */
|
|
62
|
-
declare const addPullRequestComment: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
63
|
-
/** List files changed in a pull request, including diff status and patch content. */
|
|
64
|
-
declare const listPullRequestFiles: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
65
|
-
/** List reviews on a pull request (approvals, change requests, and comments). */
|
|
66
|
-
declare const listPullRequestReviews: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
67
|
-
/** Submit a pull request review with optional inline comments. Requires approval by default. */
|
|
68
|
-
declare const createPullRequestReview: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
69
|
-
/** List issues for a GitHub repository (excludes pull requests). */
|
|
70
|
-
declare const listIssues: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
71
|
-
/** Get detailed information about a specific issue. */
|
|
72
|
-
declare const getIssue: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
73
|
-
/** Create a new issue in a GitHub repository. Requires approval by default. */
|
|
74
|
-
declare const createIssue: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
75
|
-
/** Add a comment to a GitHub issue. Requires approval by default. */
|
|
76
|
-
declare const addIssueComment: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
77
|
-
/** Close an open GitHub issue. Requires approval by default. */
|
|
78
|
-
declare const closeIssue: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
79
|
-
/** List labels available in a GitHub repository. */
|
|
80
|
-
declare const listLabels: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
81
|
-
/** Add labels to an issue or pull request. Requires approval by default. */
|
|
82
|
-
declare const addLabels: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
83
|
-
/** Remove a label from an issue or pull request. Requires approval by default. */
|
|
84
|
-
declare const removeLabel: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
85
|
-
/** Search for code in GitHub repositories. Use qualifiers like "repo:owner/name" to scope the search. */
|
|
86
|
-
declare const searchCode: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
87
|
-
/** Search for GitHub repositories by keyword, topic, language, or other qualifiers. */
|
|
88
|
-
declare const searchRepositories: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
89
|
-
/** List commits for a GitHub repository. Filter by file path to see commits that touched a file. */
|
|
90
|
-
declare const listCommits: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
91
|
-
/** Get detailed information about a specific commit, including files changed with additions and deletions. */
|
|
92
|
-
declare const getCommit: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
93
|
-
/** Line-level git blame for a file at a commit-like ref (branch, tag, or SHA). */
|
|
94
|
-
declare const getBlame: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
95
|
-
/** List gists for the authenticated user or a specific user. */
|
|
96
|
-
declare const listGists: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
97
|
-
/** Get a gist by ID, including file contents. */
|
|
98
|
-
declare const getGist: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
99
|
-
/** List comments on a gist. */
|
|
100
|
-
declare const listGistComments: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
101
|
-
/** Create a new gist with one or more files. Requires approval by default. */
|
|
102
|
-
declare const createGist: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
103
|
-
/** Update an existing gist. Requires approval by default. */
|
|
104
|
-
declare const updateGist: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
105
|
-
/** Delete a gist permanently. Requires approval by default. */
|
|
106
|
-
declare const deleteGist: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
107
|
-
/** Add a comment to a gist. Requires approval by default. */
|
|
108
|
-
declare const createGistComment: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
109
|
-
/** List GitHub Actions workflows in a repository. */
|
|
110
|
-
declare const listWorkflows: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
111
|
-
/** List workflow runs for a repository, optionally filtered by workflow, branch, status, or event. */
|
|
112
|
-
declare const listWorkflowRuns: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
113
|
-
/** Get details of a specific workflow run including status, timing, and trigger info. */
|
|
114
|
-
declare const getWorkflowRun: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
115
|
-
/** List jobs for a workflow run, including step-level status and timing. */
|
|
116
|
-
declare const listWorkflowJobs: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
117
|
-
/** Trigger a workflow via workflow_dispatch event. Requires approval by default. */
|
|
118
|
-
declare const triggerWorkflow: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
119
|
-
/** Cancel an in-progress workflow run. Requires approval by default. */
|
|
120
|
-
declare const cancelWorkflowRun: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
121
|
-
/** Re-run a workflow run, optionally only the failed jobs. Requires approval by default. */
|
|
122
|
-
declare const rerunWorkflowRun: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
|
|
341
|
+
declare const getReleaseContext: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
|
|
123
342
|
//#endregion
|
|
124
|
-
export { type AllGithubTools, type CombinedPresetToolNames, type CommitIdentity, type EveApprovalConfig, type EveApprovalValue, type EveGithubToolsOptions, type EveToolFactoryOptions, type EveToolOverrides, GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, type GithubToolName, type GithubToolPreset, type GithubToolsForPreset, type GithubWriteToolName, MISSING_EVE_MESSAGE, PRESET_TOOLS, type PickGithubTools, type PresetToolName, addIssueComment, addLabels, addPullRequestComment, buildEveToolDefinition, buildEveToolMap, cancelWorkflowRun, closeIssue, createBranch, createEveGithubToolsDynamic, createGist, createGistComment, createGithubTools, createIssue, createOrUpdateFile, createPullRequest, createPullRequestReview, createRepository, deleteGist, forkRepository, getBlame, getCommit, getFileContent, getGist, getIssue, getPullRequest, getRepository, getWorkflowRun, listBranches, listCommits, listGistComments, listGists, listIssues, listLabels, listPullRequestFiles, listPullRequestReviews, listPullRequests, listResolvedEveToolNames, listWorkflowJobs, listWorkflowRuns, listWorkflows, mergePullRequest, removeLabel, rerunWorkflowRun, searchCode, searchRepositories, triggerWorkflow, updateGist };
|
|
343
|
+
export { type AllGithubTools, type CombinedPresetToolNames, type CommitIdentity, type EveApprovalConfig, type EveApprovalValue, type EveGithubToolsOptions, type EveToolFactoryOptions, type EveToolOverrides, GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, type GithubToolName, type GithubToolPreset, type GithubToolsForPreset, type GithubWriteToolName, MISSING_EVE_MESSAGE, PRESET_TOOLS, type PickGithubTools, type PresetToolName, addIssueComment, addLabels, addPullRequestComment, buildEveToolDefinition, buildEveToolMap, cancelWorkflowRun, closeIssue, createBranch, createEveGithubToolsDynamic, createGist, createGistComment, createGithubTools, createIssue, createOrUpdateFile, createPullRequest, createPullRequestReview, createRepository, deleteGist, executeGithubEveTool, forkRepository, getBlame, getCiFailureContext, getCommit, getFileContent, getGist, getIssue, getIssueContext, getPullRequest, getPullRequestContext, getReleaseContext, getRepository, getWorkflowRun, listBranches, listCommits, listEveToolDescriptors, listGistComments, listGists, listIssues, listLabels, listPullRequestFiles, listPullRequestReviews, listPullRequests, listResolvedEveToolNames, listWorkflowJobs, listWorkflowRuns, listWorkflows, mapEveApprovalValue, mergePullRequest, removeLabel, rerunWorkflowRun, resolveEveApproval, searchCode, searchRepositories, triggerWorkflow, updateGist };
|
|
125
344
|
//# sourceMappingURL=eve.d.mts.map
|
package/dist/eve.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eve.d.mts","names":[],"sources":["../src/eve
|
|
1
|
+
{"version":3,"file":"eve.d.mts","names":[],"sources":["../src/eve.ts"],"mappings":";;;;;;;;;;;;;;;;;;iBAwDgB,kBAAkB,UAAlB,4CAAuE,gBAAA,QAAA,OAArB,oCAAqB;;;;;;;cAc1E,gBAAa,UATN,8CAAqB;;;;;;;cAgB5B,eAAY,UAhBL,8CAAqB;;;;;;;cAuB5B,iBAAc,UAvBP,8CAAqB;;;;;;;cA8B5B,eAAY,UA9BL,8CAAqB;;;;;;;cAqC5B,iBAAc,UArCP,8CAAqB;;;;;;;cA4C5B,mBAAgB,UA5CT,8CAAqB;;;;;;;cAmD5B,qBAAkB,UAnDX,8CAAqB;;;;;;;cA0D5B,mBAAgB,UA1DT,8CAAqB;;;;;;;cAiE5B,iBAAc,UAjEP,8CAAqB;;;;;;;cAwE5B,oBAAiB,UAxEV,8CAAqB;;;;;;;cA+E5B,mBAAgB,UA/ET,8CAAqB;;;;;;;cAsF5B,wBAAqB,UAtFd,8CAAqB;;;;;;;cA6F5B,uBAAoB,UA7Fb,8CAAqB;;;;;;;cAoG5B,y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