@github-tools/sdk 1.11.1 → 1.13.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 +31 -14
- package/dist/connect/eve.d.mts +2 -3
- package/dist/connect/eve.d.mts.map +1 -1
- package/dist/connect/eve.mjs +1 -1
- package/dist/connect.d.mts +8 -86
- package/dist/connect.d.mts.map +1 -1
- package/dist/connect.mjs +2 -2
- package/dist/eve-runtime-BkzmgsI2.mjs +274 -0
- package/dist/eve-runtime-BkzmgsI2.mjs.map +1 -0
- package/dist/eve-runtime-C5HaKmOP.d.mts +85 -0
- package/dist/eve-runtime-C5HaKmOP.d.mts.map +1 -0
- package/dist/eve-runtime.d.mts +5 -4
- package/dist/eve-runtime.mjs +3 -3
- package/dist/eve.d.mts +4 -4
- package/dist/eve.d.mts.map +1 -1
- package/dist/eve.mjs +2 -2
- package/dist/index-BjRUOM2Z.d.mts +287 -0
- package/dist/index-BjRUOM2Z.d.mts.map +1 -0
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +3 -3
- package/dist/{src-jQWS2Txw.mjs → src-DPcwVTf-.mjs} +98 -4
- package/dist/src-DPcwVTf-.mjs.map +1 -0
- package/dist/{token-1uPUq_g-.mjs → token-qesvchbI.mjs} +23 -169
- package/dist/token-qesvchbI.mjs.map +1 -0
- package/dist/tool-types-K8i--5D9.d.mts +3255 -0
- package/dist/tool-types-K8i--5D9.d.mts.map +1 -0
- package/dist/{types-BD5YvGxm.d.mts → types-6aWpzNzg.d.mts} +3 -3
- package/dist/{types-BD5YvGxm.d.mts.map → types-6aWpzNzg.d.mts.map} +1 -1
- package/dist/{types-BDO-Mmn6.d.mts → types-BVSe0Zey.d.mts} +4 -3
- package/dist/types-BVSe0Zey.d.mts.map +1 -0
- package/dist/workflow.d.mts +2 -1
- package/dist/workflow.d.mts.map +1 -1
- package/dist/workflow.mjs +2 -2
- package/dist/{write-tools-Dk32V9Hl.mjs → write-tools-BEcL5Fv6.mjs} +2626 -1513
- package/dist/write-tools-BEcL5Fv6.mjs.map +1 -0
- package/package.json +5 -5
- package/dist/eve-runtime-Cb0LVEvS.d.mts +0 -66
- package/dist/eve-runtime-Cb0LVEvS.d.mts.map +0 -1
- package/dist/eve-runtime-DInXr4h5.mjs +0 -734
- package/dist/eve-runtime-DInXr4h5.mjs.map +0 -1
- package/dist/index-BNeMjmgp.d.mts +0 -770
- package/dist/index-BNeMjmgp.d.mts.map +0 -1
- package/dist/src-jQWS2Txw.mjs.map +0 -1
- package/dist/token-1uPUq_g-.mjs.map +0 -1
- package/dist/types-BDO-Mmn6.d.mts.map +0 -1
- package/dist/write-tools-Dk32V9Hl.mjs.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eve-runtime-DInXr4h5.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.listIssueCommentsDescription","issues.listIssueCommentsInputSchema","issues.listIssueCommentsCore","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.createLabelDescription","issues.createLabelInputSchema","issues.createLabelCore","issues.updateLabelDescription","issues.updateLabelInputSchema","issues.updateLabelCore","issues.deleteLabelDescription","issues.deleteLabelInputSchema","issues.deleteLabelCore","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\n/**\n * `false` / `'never'` should omit the tool `approval` field entirely.\n * eve treats a missing `approval` like `never()`; attaching `never()` is\n * redundant and has caused approval UI noise on some channels.\n */\nexport function isEveApprovalDisabled(value: EveApprovalValue | undefined): boolean {\n return value === false || value === 'never'\n}\n\nexport function mapEveApprovalValue(value: EveApprovalValue): 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\n/**\n * Approval to attach on a write tool, or `undefined` to omit the field.\n * Prefer this when building `defineTool` values so `false` / `'never'` do not\n * attach a redundant `never()` handler.\n */\nexport function resolveEveToolApproval(\n toolName: GithubWriteToolName,\n config: EveApprovalConfig | undefined,\n override?: EveApprovalValue,\n): Approval | undefined {\n if (override !== undefined) {\n if (isEveApprovalDisabled(override)) return undefined\n return mapEveApprovalValue(override)\n }\n if (config === false) return undefined\n if (typeof config === 'object' && config !== null && isEveApprovalDisabled(config[toolName])) {\n return undefined\n }\n return resolveEveApproval(toolName, config)\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: 'listIssueComments',\n description: issues.listIssueCommentsDescription,\n inputSchema: issues.listIssueCommentsInputSchema,\n execute: withToken(issues.listIssueCommentsCore, 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: 'createLabel',\n writeTool: 'createLabel',\n description: issues.createLabelDescription,\n inputSchema: issues.createLabelInputSchema,\n execute: withToken(issues.createLabelCore, ctx),\n },\n {\n name: 'updateLabel',\n writeTool: 'updateLabel',\n description: issues.updateLabelDescription,\n inputSchema: issues.updateLabelInputSchema,\n execute: withToken(issues.updateLabelCore, ctx),\n },\n {\n name: 'deleteLabel',\n writeTool: 'deleteLabel',\n description: issues.deleteLabelDescription,\n inputSchema: issues.deleteLabelInputSchema,\n execute: withToken(issues.deleteLabelCore, 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 { isEveApprovalDisabled, mapEveApprovalValue, resolveEveToolApproval } 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\n const next: T = {\n ...tool,\n ...override.description !== undefined && { description: override.description },\n ...override.toModelOutput !== undefined && { toModelOutput: override.toModelOutput },\n ...override.outputSchema !== undefined && { outputSchema: override.outputSchema },\n }\n\n if (override.approval === undefined) return next\n if (isEveApprovalDisabled(override.approval)) {\n const rest = { ...next }\n delete (rest as { approval?: unknown }).approval\n return rest\n }\n return { ...next, approval: mapEveApprovalValue(override.approval) }\n}\n\nexport function buildEveToolDefinition(\n name: GithubToolName,\n options: BuildOptions = {},\n): ToolDefinition {\n const { defineTool } = getEveTools()\n const ctx: ToolBuildContext = {\n token: createGithubTokenResolver(options.token),\n context: options.context,\n author: options.author,\n committer: options.committer,\n coAuthors: options.coAuthors,\n }\n\n const entry = createToolRegistry(ctx).find(tool => tool.name === name)\n if (!entry) {\n throw new Error(`Unknown GitHub tool: ${name}`)\n }\n\n const approval = entry.writeTool\n ? resolveEveToolApproval(entry.writeTool, options.requireApproval)\n : undefined\n\n const tool = defineTool({\n description: entry.description,\n inputSchema: entry.inputSchema,\n ...(approval && { approval }),\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 approval = entry.writeTool\n ? resolveEveToolApproval(entry.writeTool, options.requireApproval)\n : undefined\n\n const tool = defineTool({\n description: entry.description,\n inputSchema: entry.inputSchema,\n ...(approval && { approval }),\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 'step.started': async () => buildEveToolMap(options),\n },\n })\n}\n\nexport function listResolvedEveToolNames(options?: { preset?: undefined, include?: undefined, exclude?: undefined }): GithubToolName[]\nexport function listResolvedEveToolNames<P extends GithubToolPreset>(options: { preset: P, include?: undefined, exclude?: undefined }): PresetToolName<P>[]\nexport function listResolvedEveToolNames<P extends readonly GithubToolPreset[]>(options: { preset: P, include?: undefined, exclude?: undefined }): CombinedPresetToolNames<P>[]\nexport function listResolvedEveToolNames(options: Pick<EveGithubToolsOptions, 'preset' | 'include' | 'exclude'>): GithubToolName[]\nexport function listResolvedEveToolNames(options: Pick<EveGithubToolsOptions, 'preset' | 'include' | 'exclude'> = {}): GithubToolName[] {\n const isAllowed = resolveAllowedToolNames(options)\n return ALL_GITHUB_TOOL_NAMES.filter(isAllowed)\n}\n\n/**\n * Tool descriptors (no `execute`) for authored eve `defineTool` loops.\n * Prefer this when registering tools outside the SDK package so durable transforms can hoist inline execute.\n */\nexport function listEveToolDescriptors(options: EveGithubToolsOptions = {}) {\n const ctx: ToolBuildContext = {\n token: createGithubTokenResolver(options.token),\n context: options.context,\n author: options.author,\n committer: options.committer,\n coAuthors: options.coAuthors,\n }\n\n const isAllowed = resolveAllowedToolNames(options)\n return createToolRegistry(ctx)\n .filter(entry => isAllowed(entry.name))\n .map(entry => ({\n name: entry.name,\n description: entry.description,\n inputSchema: entry.inputSchema,\n writeTool: entry.writeTool,\n toModelOutput: entry.toModelOutput,\n }))\n}\n\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":";;;;AAWA,MAAa,sBACX;AAEF,SAAgB,cAA8B;CAC5C,OAAO;AACT;AAEA,SAAgB,wBAA2C;CACzD,OAAO;AACT;;;;;;;;ACVA,SAAgB,sBAAsB,OAA8C;CAClF,OAAO,UAAU,SAAS,UAAU;AACtC;AAEA,SAAgB,oBAAoB,OAAmC;CACrE,IAAI,OAAO,UAAU,YAAY,OAAO;CAExC,MAAM,EAAE,QAAQ,OAAO,SAAS,sBAAsB;CAEtD,IAAI,UAAU,QAAQ,UAAU,UAAU,OAAO,OAAO;CACxD,IAAI,UAAU,SAAS,UAAU,SAAS,OAAO,MAAM;CACvD,IAAI,UAAU,QAAQ,OAAO,KAAK;CAElC,OAAO,OAAO;AAChB;AAEA,SAAgB,mBACd,UACA,QACsB;CACtB,IAAI,WAAW,KAAA,GAAW,OAAO,sBAAsB,CAAC,CAAC,OAAO;CAChE,IAAI,WAAW,MAAM,OAAO,sBAAsB,CAAC,CAAC,OAAO;CAC3D,IAAI,WAAW,OAAO,OAAO,sBAAsB,CAAC,CAAC,MAAM;CAE3D,MAAM,QAAQ,OAAO;CACrB,IAAI,UAAU,KAAA,GAAW,OAAO,sBAAsB,CAAC,CAAC,OAAO;CAE/D,OAAO,oBAAoB,KAAK;AAClC;;;;;;AAOA,SAAgB,uBACd,UACA,QACA,UACsB;CACtB,IAAI,aAAa,KAAA,GAAW;EAC1B,IAAI,sBAAsB,QAAQ,GAAG,OAAO,KAAA;EAC5C,OAAO,oBAAoB,QAAQ;CACrC;CACA,IAAI,WAAW,OAAO,OAAO,KAAA;CAC7B,IAAI,OAAO,WAAW,YAAY,WAAW,QAAQ,sBAAsB,OAAO,SAAS,GACzF;CAEF,OAAO,mBAAmB,UAAU,MAAM;AAC5C;;;ACZA,SAAS,UACP,MACA,KACA,OACA;CACA,OAAO,OAAO,UACZ,KAAK;EACH,OA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