@github-tools/sdk 1.10.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -6
- package/dist/connect/eve.d.mts +4 -3
- package/dist/connect/eve.d.mts.map +1 -1
- package/dist/connect/eve.mjs +8 -3
- package/dist/connect/eve.mjs.map +1 -1
- package/dist/connect.d.mts +109 -4
- package/dist/connect.d.mts.map +1 -1
- package/dist/connect.mjs +3 -3
- package/dist/{eve-runtime-CI4dR_hI.d.mts → eve-runtime-BqfQZAP7.d.mts} +3 -3
- package/dist/{eve-runtime-CI4dR_hI.d.mts.map → eve-runtime-BqfQZAP7.d.mts.map} +1 -1
- package/dist/{eve-runtime-CIcrt7MD.mjs → eve-runtime-DXZgfCMb.mjs} +29 -2
- package/dist/eve-runtime-DXZgfCMb.mjs.map +1 -0
- package/dist/eve-runtime.d.mts +3 -3
- package/dist/eve-runtime.mjs +2 -2
- package/dist/eve.d.mts +32 -4
- package/dist/eve.d.mts.map +1 -1
- package/dist/eve.mjs +31 -3
- package/dist/eve.mjs.map +1 -1
- package/dist/{index-B0nL0C00.d.mts → index-BNeMjmgp.d.mts} +31 -7
- package/dist/index-BNeMjmgp.d.mts.map +1 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/{src-v-LjzPpR.mjs → src-jQWS2Txw.mjs} +64 -4
- package/dist/src-jQWS2Txw.mjs.map +1 -0
- package/dist/token-OPdZa0t3.mjs +390 -0
- package/dist/token-OPdZa0t3.mjs.map +1 -0
- package/dist/{types-VW0m0Uxl.d.mts → types-BD5YvGxm.d.mts} +7 -3
- package/dist/types-BD5YvGxm.d.mts.map +1 -0
- package/dist/{types-Ygt1pw1N.d.mts → types-BDO-Mmn6.d.mts} +2 -2
- package/dist/{types-Ygt1pw1N.d.mts.map → types-BDO-Mmn6.d.mts.map} +1 -1
- package/dist/workflow.d.mts +1 -1
- package/dist/workflow.mjs +2 -2
- package/dist/{write-tools-uIVfURVp.mjs → write-tools-Dk32V9Hl.mjs} +97 -5
- package/dist/write-tools-Dk32V9Hl.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/eve-runtime-CIcrt7MD.mjs.map +0 -1
- package/dist/index-B0nL0C00.d.mts.map +0 -1
- package/dist/src-v-LjzPpR.mjs.map +0 -1
- package/dist/token-DDMlEkK-.mjs +0 -167
- package/dist/token-DDMlEkK-.mjs.map +0 -1
- package/dist/types-VW0m0Uxl.d.mts.map +0 -1
- package/dist/write-tools-uIVfURVp.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ They all reach the GitHub API, but none of them were built as an agent's tool la
|
|
|
33
33
|
| Production agents that must survive restarts and timeouts | [Durable Agents](#durable-agents-vercel-workflow-sdk) |
|
|
34
34
|
| A GitHub, Slack, or Discord bot | [Chat SDK docs](https://github-tools.com/frameworks/chat-sdk) |
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
79 tools cover repositories, branches, pull requests, issues, reactions, discussions, notifications, commits, releases, checks and statuses, search, gists, and workflows. See the full [Tools Catalog](https://github-tools.com/api/tools-catalog). Write operations support granular approval control out of the box.
|
|
37
37
|
|
|
38
38
|
## Installation
|
|
39
39
|
|
|
@@ -103,7 +103,7 @@ createGithubTools({ token, preset: ['code-review', 'issue-triage'] })
|
|
|
103
103
|
| Preset | Tools included |
|
|
104
104
|
|---|---|
|
|
105
105
|
| `code-review` | `getPullRequest`, `listPullRequests`, `listPullRequestFiles`, `listPullRequestReviews`, `getPullRequestContext`, `getFileContent`, `listCommits`, `getCommit`, `getBlame`, `compareCommits`, `getRepository`, `listBranches`, `searchCode`, `listCheckRuns`, `getCombinedStatus`, `updatePullRequest`, `addPullRequestComment`, `updatePullRequestComment`, `deletePullRequestComment`, `createPullRequestReview`, `requestReviewers` |
|
|
106
|
-
| `issue-triage` | `listIssues`, `getIssueContext`, `createIssue`, `addIssueComment`, `updateIssueComment`, `deleteIssueComment`, `closeIssue`, `updateIssue`, `addLabels`, `removeLabel`, `addAssignees`, `removeAssignees`, `listIssueReactions`, `addIssueReaction`, `listCommentReactions`, `addCommentReaction`, `getRepository`, `searchRepositories`, `searchCode`, `searchIssues` |
|
|
106
|
+
| `issue-triage` | `listIssues`, `getIssueContext`, `listIssueComments`, `createIssue`, `addIssueComment`, `updateIssueComment`, `deleteIssueComment`, `closeIssue`, `updateIssue`, `addLabels`, `removeLabel`, `createLabel`, `updateLabel`, `deleteLabel`, `addAssignees`, `removeAssignees`, `listIssueReactions`, `addIssueReaction`, `listCommentReactions`, `addCommentReaction`, `getRepository`, `searchRepositories`, `searchCode`, `searchIssues` |
|
|
107
107
|
| `repo-explorer` | All read-only tools including discussions, gists, workflows, checks/statuses, and releases (no write operations) |
|
|
108
108
|
| `ci-ops` | `listWorkflows`, `listWorkflowRuns`, `getWorkflowRun`, `listWorkflowJobs`, `listCheckRuns`, `getCombinedStatus`, `getCiFailureContext`, `triggerWorkflow`, `cancelWorkflowRun`, `rerunWorkflowRun`, `getRepository`, `listBranches`, `listCommits`, `getCommit` |
|
|
109
109
|
| `security-audit` | Read-only exploration (`getFileContent`, `getRepositoryTree`, `searchCode`, `listCommits`, `getCommit`, `getBlame`, `compareCommits`), PR and CI visibility, plus `createIssue`, `addIssueComment`, `addLabels` to report findings (no destructive writes) |
|
|
@@ -111,7 +111,7 @@ createGithubTools({ token, preset: ['code-review', 'issue-triage'] })
|
|
|
111
111
|
| `discussion-moderator` | `listDiscussions`, `getDiscussion`, `addDiscussionComment`, `getRepository`, `searchIssues`, `getIssueContext`, `addIssueComment` |
|
|
112
112
|
| `notification-inbox` | `listNotifications`, `markNotificationRead`, `getIssue`, `getPullRequest`, `getRepository` (requires a Notifications PAT) |
|
|
113
113
|
| `pr-author` | `getRepository`, `listBranches`, `getFileContent`, `createBranch`, `createOrUpdateFile`, `createPullRequest`, `updatePullRequest`, `getPullRequest`, `listPullRequestFiles`, `compareCommits`, `getCommit` |
|
|
114
|
-
| `maintainer` | All
|
|
114
|
+
| `maintainer` | All 79 tools |
|
|
115
115
|
|
|
116
116
|
Start with the smallest preset that fits. Use `maintainer` or omit `preset` when you need the full catalog. Full breakdown: [Tools Catalog](https://github-tools.com/api/tools-catalog).
|
|
117
117
|
|
|
@@ -158,7 +158,7 @@ createGithubTools({
|
|
|
158
158
|
})
|
|
159
159
|
```
|
|
160
160
|
|
|
161
|
-
Write tools: `createBranch`, `forkRepository`, `createRepository`, `createOrUpdateFile`, `createPullRequest`, `mergePullRequest`, `updatePullRequest`, `addPullRequestComment`, `updatePullRequestComment`, `deletePullRequestComment`, `createPullRequestReview`, `requestReviewers`, `createIssue`, `addIssueComment`, `updateIssueComment`, `deleteIssueComment`, `closeIssue`, `updateIssue`, `addLabels`, `removeLabel`, `addAssignees`, `removeAssignees`, `addIssueReaction`, `addCommentReaction`, `addDiscussionComment`, `markNotificationRead`, `createGist`, `updateGist`, `deleteGist`, `createGistComment`, `triggerWorkflow`, `cancelWorkflowRun`, `rerunWorkflowRun`, `createRelease`, `updateRelease`, `deleteRelease`.
|
|
161
|
+
Write tools: `createBranch`, `forkRepository`, `createRepository`, `createOrUpdateFile`, `createPullRequest`, `mergePullRequest`, `updatePullRequest`, `addPullRequestComment`, `updatePullRequestComment`, `deletePullRequestComment`, `createPullRequestReview`, `requestReviewers`, `createIssue`, `addIssueComment`, `updateIssueComment`, `deleteIssueComment`, `closeIssue`, `updateIssue`, `addLabels`, `removeLabel`, `createLabel`, `updateLabel`, `deleteLabel`, `addAssignees`, `removeAssignees`, `addIssueReaction`, `addCommentReaction`, `addDiscussionComment`, `markNotificationRead`, `createGist`, `updateGist`, `deleteGist`, `createGistComment`, `triggerWorkflow`, `cancelWorkflowRun`, `rerunWorkflowRun`, `createRelease`, `updateRelease`, `deleteRelease`.
|
|
162
162
|
|
|
163
163
|
All other tools are read-only and never require approval.
|
|
164
164
|
|
|
@@ -499,6 +499,7 @@ List tools (`listCommits`, `listPullRequests`, `listIssues`, `listWorkflowRuns`,
|
|
|
499
499
|
| `listIssues` | List issues filtered by state and labels |
|
|
500
500
|
| `getIssue` | Get an issue's details (body truncated by default; set `detail: full` for complete text) |
|
|
501
501
|
| `getIssueContext` | Fetch an issue plus label names and recent comments in one call |
|
|
502
|
+
| `listIssueComments` | List comments on an issue (paginated; prefer `getIssueContext` for the first page) |
|
|
502
503
|
| `createIssue` | Open a new issue |
|
|
503
504
|
| `addIssueComment` | Post a comment on an issue |
|
|
504
505
|
| `updateIssueComment` | Edit the body of an issue comment |
|
|
@@ -508,6 +509,9 @@ List tools (`listCommits`, `listPullRequests`, `listIssues`, `listWorkflowRuns`,
|
|
|
508
509
|
| `listLabels` | List labels available in a repository |
|
|
509
510
|
| `addLabels` | Add labels to an issue or pull request |
|
|
510
511
|
| `removeLabel` | Remove a label from an issue or pull request |
|
|
512
|
+
| `createLabel` | Create a label in a repository |
|
|
513
|
+
| `updateLabel` | Update a label's name, color, or description |
|
|
514
|
+
| `deleteLabel` | Delete a label from a repository permanently |
|
|
511
515
|
| `addAssignees` | Assign users to an issue or pull request |
|
|
512
516
|
| `removeAssignees` | Remove assignees from an issue or pull request |
|
|
513
517
|
|
|
@@ -614,8 +618,8 @@ Create one at **GitHub → Settings → Developer settings → Personal access t
|
|
|
614
618
|
| **Administration** | Read and write | `forkRepository`, `createRepository` |
|
|
615
619
|
| **Pull requests** | Read-only | `listPullRequests`, `getPullRequest`, `listPullRequestFiles`, `listPullRequestReviews`, `getPullRequestContext` |
|
|
616
620
|
| **Pull requests** | Read and write | `createPullRequest`, `mergePullRequest`, `updatePullRequest`, `addPullRequestComment`, `updatePullRequestComment`, `deletePullRequestComment`, `createPullRequestReview`, `requestReviewers` |
|
|
617
|
-
| **Issues** | Read-only | `listIssues`, `getIssue`, `getIssueContext`, `listLabels`, `listIssueReactions`, `listCommentReactions` |
|
|
618
|
-
| **Issues** | Read and write | `createIssue`, `addIssueComment`, `updateIssueComment`, `deleteIssueComment`, `closeIssue`, `updateIssue`, `addLabels`, `removeLabel`, `addAssignees`, `removeAssignees`, `addIssueReaction`, `addCommentReaction` |
|
|
621
|
+
| **Issues** | Read-only | `listIssues`, `getIssue`, `getIssueContext`, `listIssueComments`, `listLabels`, `listIssueReactions`, `listCommentReactions` |
|
|
622
|
+
| **Issues** | Read and write | `createIssue`, `addIssueComment`, `updateIssueComment`, `deleteIssueComment`, `closeIssue`, `updateIssue`, `addLabels`, `removeLabel`, `createLabel`, `updateLabel`, `deleteLabel`, `addAssignees`, `removeAssignees`, `addIssueReaction`, `addCommentReaction` |
|
|
619
623
|
| **Discussions** | Read-only | `listDiscussions`, `getDiscussion` |
|
|
620
624
|
| **Discussions** | Read and write | `addDiscussionComment` |
|
|
621
625
|
| **Gists** | Read-only | `listGists`, `getGist`, `listGistComments` |
|
package/dist/connect/eve.d.mts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as GithubConnectorInput, t as ConnectGithubEveToolsOptions } from "../types-
|
|
1
|
+
import { $t as GithubToolName } from "../index-BNeMjmgp.mjs";
|
|
2
|
+
import { a as GithubConnectorInput, t as ConnectGithubEveToolsOptions } from "../types-BD5YvGxm.mjs";
|
|
3
3
|
//#region src/connect/eve.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Register eve GitHub tools backed by a Vercel Connect connector.
|
|
6
|
-
* Scopes are derived from `preset
|
|
6
|
+
* Scopes are derived from `preset`, or from the resolved `include`/`exclude`
|
|
7
|
+
* tool set when those are set, unless overridden in `connect.scopes`.
|
|
7
8
|
*
|
|
8
9
|
* `connector` may be a static name or a resolver function — e.g. to pick a
|
|
9
10
|
* different connector per environment (production vs. preview) or tenant.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eve.d.mts","names":[],"sources":["../../src/connect/eve.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"eve.d.mts","names":[],"sources":["../../src/connect/eve.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;iBA4BgB,mBACd,WAAW,sBACX,UAAS,mDAAiC,gBAAA,QAAA,OAAjC,oCAAiC"}
|
package/dist/connect/eve.mjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { createGithubTools } from "../eve.mjs";
|
|
2
|
-
import { t as connectGithubToken } from "../token-
|
|
2
|
+
import { t as connectGithubToken } from "../token-OPdZa0t3.mjs";
|
|
3
3
|
//#region src/connect/eve.ts
|
|
4
4
|
/**
|
|
5
5
|
* Register eve GitHub tools backed by a Vercel Connect connector.
|
|
6
|
-
* Scopes are derived from `preset
|
|
6
|
+
* Scopes are derived from `preset`, or from the resolved `include`/`exclude`
|
|
7
|
+
* tool set when those are set, unless overridden in `connect.scopes`.
|
|
7
8
|
*
|
|
8
9
|
* `connector` may be a static name or a resolver function — e.g. to pick a
|
|
9
10
|
* different connector per environment (production vs. preview) or tenant.
|
|
@@ -24,12 +25,16 @@ import { t as connectGithubToken } from "../token-DDMlEkK-.mjs";
|
|
|
24
25
|
* eve extension (pre-built) so that workaround is unnecessary.
|
|
25
26
|
*/
|
|
26
27
|
function connectGithubTools(connector, options = {}) {
|
|
27
|
-
const { connect, preset, ...rest } = options;
|
|
28
|
+
const { connect, preset, include, exclude, ...rest } = options;
|
|
28
29
|
return createGithubTools({
|
|
29
30
|
...rest,
|
|
30
31
|
preset,
|
|
32
|
+
include,
|
|
33
|
+
exclude,
|
|
31
34
|
token: connectGithubToken(connector, {
|
|
32
35
|
preset,
|
|
36
|
+
include,
|
|
37
|
+
exclude,
|
|
33
38
|
params: connect
|
|
34
39
|
})
|
|
35
40
|
});
|
package/dist/connect/eve.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eve.mjs","names":["createEveGithubTools"],"sources":["../../src/connect/eve.ts"],"sourcesContent":["import { createGithubTools as createEveGithubTools } from '../eve'\nimport type { GithubConnectorInput } from './connector'\nimport { connectGithubToken } from './token'\nimport type { ConnectGithubEveToolsOptions } from './types'\n\n/**\n * Register eve GitHub tools backed by a Vercel Connect connector.\n * Scopes are derived from `preset` unless overridden in `connect.scopes`.\n *\n * `connector` may be a static name or a resolver function — e.g. to pick a\n * different connector per environment (production vs. preview) or tenant.\n *\n * @deprecated Use the mountable `@github-tools/eve-extension` instead and pass `connector`\n * directly to `githubExtension(...)` — no separate Connect import is needed. This direct\n * import is also **not durable** under multi-turn eve Workflow replay (`defineTool` inside\n * `node_modules` is not hoisted); mount `@github-tools/eve-extension` instead\n * (see https://github.com/vercel-labs/github-tools/issues/51 and\n * https://github-tools.com/frameworks/eve-extension).\n *\n * Shared runtime helpers used by the extension are on `@github-tools/sdk/eve-runtime`\n * (not deprecated).\n *\n * TODO(eve-connect-bundle): eve's authored-module bundler inlines workspace-linked\n * SDK code and code-splits `@vercel/connect` unless the agent sets\n * `build.externalDependencies: ['@vercel/connect']` in `agent.ts`. Prefer the\n * eve extension (pre-built) so that workaround is unnecessary.\n */\nexport function connectGithubTools(\n connector: GithubConnectorInput,\n options: ConnectGithubEveToolsOptions = {},\n) {\n const { connect, preset, ...rest } = options\n\n return createEveGithubTools({\n ...rest,\n preset,\n token: connectGithubToken(connector, { preset, params: connect }),\n })\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"eve.mjs","names":["createEveGithubTools"],"sources":["../../src/connect/eve.ts"],"sourcesContent":["import { createGithubTools as createEveGithubTools } from '../eve'\nimport type { GithubConnectorInput } from './connector'\nimport { connectGithubToken } from './token'\nimport type { ConnectGithubEveToolsOptions } from './types'\n\n/**\n * Register eve GitHub tools backed by a Vercel Connect connector.\n * Scopes are derived from `preset`, or from the resolved `include`/`exclude`\n * tool set when those are set, unless overridden in `connect.scopes`.\n *\n * `connector` may be a static name or a resolver function — e.g. to pick a\n * different connector per environment (production vs. preview) or tenant.\n *\n * @deprecated Use the mountable `@github-tools/eve-extension` instead and pass `connector`\n * directly to `githubExtension(...)` — no separate Connect import is needed. This direct\n * import is also **not durable** under multi-turn eve Workflow replay (`defineTool` inside\n * `node_modules` is not hoisted); mount `@github-tools/eve-extension` instead\n * (see https://github.com/vercel-labs/github-tools/issues/51 and\n * https://github-tools.com/frameworks/eve-extension).\n *\n * Shared runtime helpers used by the extension are on `@github-tools/sdk/eve-runtime`\n * (not deprecated).\n *\n * TODO(eve-connect-bundle): eve's authored-module bundler inlines workspace-linked\n * SDK code and code-splits `@vercel/connect` unless the agent sets\n * `build.externalDependencies: ['@vercel/connect']` in `agent.ts`. Prefer the\n * eve extension (pre-built) so that workaround is unnecessary.\n */\nexport function connectGithubTools(\n connector: GithubConnectorInput,\n options: ConnectGithubEveToolsOptions = {},\n) {\n const { connect, preset, include, exclude, ...rest } = options\n\n return createEveGithubTools({\n ...rest,\n preset,\n include,\n exclude,\n token: connectGithubToken(connector, { preset, include, exclude, params: connect }),\n })\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,SAAgB,mBACd,WACA,UAAwC,CAAC,GACzC;CACA,MAAM,EAAE,SAAS,QAAQ,SAAS,SAAS,GAAG,SAAS;CAEvD,OAAOA,kBAAqB;EAC1B,GAAG;EACH;EACA;EACA;EACA,OAAO,mBAAmB,WAAW;GAAE;GAAQ;GAAS;GAAS,QAAQ;EAAQ,CAAC;CACpF,CAAC;AACH"}
|
package/dist/connect.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as GithubConnectorInput, i as GithubConnectParams, n as ConnectGithubTokenOptions, o as resolveGithubConnector, r as ConnectGithubToolsOptions, t as ConnectGithubEveToolsOptions } from "./types-
|
|
1
|
+
import { $t as GithubToolName, It as GithubTokenInput, Mt as AllGithubTools, Yt as GithubToolPreset } from "./index-BNeMjmgp.mjs";
|
|
2
|
+
import { a as GithubConnectorInput, i as GithubConnectParams, n as ConnectGithubTokenOptions, o as resolveGithubConnector, r as ConnectGithubToolsOptions, t as ConnectGithubEveToolsOptions } from "./types-BD5YvGxm.mjs";
|
|
3
|
+
import "./eve-runtime-BqfQZAP7.mjs";
|
|
3
4
|
import "@vercel/connect";
|
|
4
5
|
//#region src/connect/scopes.d.ts
|
|
5
6
|
/**
|
|
@@ -35,16 +36,120 @@ declare const PRESET_CONNECT_SCOPES: {
|
|
|
35
36
|
readonly 'pr-author': readonly ["contents:read", "contents:write", "metadata:read", "pull_requests:read", "pull_requests:write"];
|
|
36
37
|
readonly maintainer: readonly ["contents:read", "contents:write", "metadata:read", "pull_requests:read", "pull_requests:write", "issues:read", "issues:write", "discussions:read", "discussions:write", "actions:read", "actions:write", "checks:read", "statuses:read", "administration:read", "administration:write"];
|
|
37
38
|
};
|
|
39
|
+
/**
|
|
40
|
+
* Per-tool Connect scopes. Empty arrays are intentional for gist and
|
|
41
|
+
* notification tools (installation tokens cannot satisfy those APIs).
|
|
42
|
+
*/
|
|
43
|
+
declare const TOOL_CONNECT_SCOPES: {
|
|
44
|
+
readonly getRepository: readonly ["contents:read", "metadata:read"];
|
|
45
|
+
readonly listBranches: readonly ["contents:read", "metadata:read"];
|
|
46
|
+
readonly getFileContent: readonly ["contents:read", "metadata:read"];
|
|
47
|
+
readonly getRepositoryTree: readonly ["contents:read", "metadata:read"];
|
|
48
|
+
readonly createBranch: readonly ["contents:read", "contents:write", "metadata:read"];
|
|
49
|
+
readonly forkRepository: readonly ["contents:read", "metadata:read"];
|
|
50
|
+
readonly createRepository: readonly ["metadata:read", "administration:read", "administration:write"];
|
|
51
|
+
readonly createOrUpdateFile: readonly ["contents:read", "contents:write", "metadata:read"];
|
|
52
|
+
readonly listPullRequests: readonly ["contents:read", "metadata:read", "pull_requests:read"];
|
|
53
|
+
readonly getPullRequest: readonly ["contents:read", "metadata:read", "pull_requests:read"];
|
|
54
|
+
readonly createPullRequest: readonly ["contents:read", "metadata:read", "pull_requests:read", "pull_requests:write"];
|
|
55
|
+
readonly mergePullRequest: readonly ["contents:read", "metadata:read", "pull_requests:read", "pull_requests:write"];
|
|
56
|
+
readonly updatePullRequest: readonly ["contents:read", "metadata:read", "pull_requests:read", "pull_requests:write"];
|
|
57
|
+
readonly addPullRequestComment: readonly ["contents:read", "metadata:read", "pull_requests:read", "pull_requests:write"];
|
|
58
|
+
readonly updatePullRequestComment: readonly ["contents:read", "metadata:read", "pull_requests:read", "pull_requests:write"];
|
|
59
|
+
readonly deletePullRequestComment: readonly ["contents:read", "metadata:read", "pull_requests:read", "pull_requests:write"];
|
|
60
|
+
readonly listPullRequestFiles: readonly ["contents:read", "metadata:read", "pull_requests:read"];
|
|
61
|
+
readonly listPullRequestReviews: readonly ["contents:read", "metadata:read", "pull_requests:read"];
|
|
62
|
+
readonly createPullRequestReview: readonly ["contents:read", "metadata:read", "pull_requests:read", "pull_requests:write"];
|
|
63
|
+
readonly requestReviewers: readonly ["contents:read", "metadata:read", "pull_requests:read", "pull_requests:write"];
|
|
64
|
+
readonly getPullRequestContext: readonly ["contents:read", "metadata:read", "pull_requests:read", "checks:read", "statuses:read"];
|
|
65
|
+
readonly listIssues: readonly ["contents:read", "metadata:read", "issues:read"];
|
|
66
|
+
readonly getIssue: readonly ["contents:read", "metadata:read", "issues:read"];
|
|
67
|
+
readonly getIssueContext: readonly ["contents:read", "metadata:read", "issues:read"];
|
|
68
|
+
readonly createIssue: readonly ["contents:read", "metadata:read", "issues:read", "issues:write"];
|
|
69
|
+
readonly addIssueComment: readonly ["contents:read", "metadata:read", "issues:read", "issues:write"];
|
|
70
|
+
readonly updateIssueComment: readonly ["contents:read", "metadata:read", "issues:read", "issues:write"];
|
|
71
|
+
readonly deleteIssueComment: readonly ["contents:read", "metadata:read", "issues:read", "issues:write"];
|
|
72
|
+
readonly closeIssue: readonly ["contents:read", "metadata:read", "issues:read", "issues:write"];
|
|
73
|
+
readonly updateIssue: readonly ["contents:read", "metadata:read", "issues:read", "issues:write"];
|
|
74
|
+
readonly listLabels: readonly ["contents:read", "metadata:read", "issues:read"];
|
|
75
|
+
readonly addLabels: readonly ["contents:read", "metadata:read", "issues:read", "issues:write"];
|
|
76
|
+
readonly removeLabel: readonly ["contents:read", "metadata:read", "issues:read", "issues:write"];
|
|
77
|
+
readonly createLabel: readonly ["contents:read", "metadata:read", "issues:read", "issues:write"];
|
|
78
|
+
readonly updateLabel: readonly ["contents:read", "metadata:read", "issues:read", "issues:write"];
|
|
79
|
+
readonly deleteLabel: readonly ["contents:read", "metadata:read", "issues:read", "issues:write"];
|
|
80
|
+
readonly addAssignees: readonly ["contents:read", "metadata:read", "issues:read", "issues:write"];
|
|
81
|
+
readonly removeAssignees: readonly ["contents:read", "metadata:read", "issues:read", "issues:write"];
|
|
82
|
+
readonly searchCode: readonly ["contents:read", "metadata:read"];
|
|
83
|
+
readonly searchRepositories: readonly ["metadata:read"];
|
|
84
|
+
readonly searchIssues: readonly ["metadata:read", "issues:read", "pull_requests:read"];
|
|
85
|
+
readonly listCommits: readonly ["contents:read", "metadata:read"];
|
|
86
|
+
readonly getCommit: readonly ["contents:read", "metadata:read"];
|
|
87
|
+
readonly getBlame: readonly ["contents:read", "metadata:read"];
|
|
88
|
+
readonly compareCommits: readonly ["contents:read", "metadata:read"];
|
|
89
|
+
readonly listGists: readonly [];
|
|
90
|
+
readonly getGist: readonly [];
|
|
91
|
+
readonly listGistComments: readonly [];
|
|
92
|
+
readonly createGist: readonly [];
|
|
93
|
+
readonly updateGist: readonly [];
|
|
94
|
+
readonly deleteGist: readonly [];
|
|
95
|
+
readonly createGistComment: readonly [];
|
|
96
|
+
readonly listWorkflows: readonly ["contents:read", "metadata:read", "actions:read"];
|
|
97
|
+
readonly listWorkflowRuns: readonly ["contents:read", "metadata:read", "actions:read"];
|
|
98
|
+
readonly getWorkflowRun: readonly ["contents:read", "metadata:read", "actions:read"];
|
|
99
|
+
readonly listWorkflowJobs: readonly ["contents:read", "metadata:read", "actions:read"];
|
|
100
|
+
readonly triggerWorkflow: readonly ["contents:read", "metadata:read", "actions:read", "actions:write"];
|
|
101
|
+
readonly cancelWorkflowRun: readonly ["contents:read", "metadata:read", "actions:read", "actions:write"];
|
|
102
|
+
readonly rerunWorkflowRun: readonly ["contents:read", "metadata:read", "actions:read", "actions:write"];
|
|
103
|
+
readonly listCheckRuns: readonly ["contents:read", "metadata:read", "checks:read", "statuses:read"];
|
|
104
|
+
readonly getCombinedStatus: readonly ["contents:read", "metadata:read", "checks:read", "statuses:read"];
|
|
105
|
+
readonly getCiFailureContext: readonly ["contents:read", "metadata:read", "actions:read", "checks:read", "statuses:read"];
|
|
106
|
+
readonly listDiscussions: readonly ["contents:read", "metadata:read", "discussions:read"];
|
|
107
|
+
readonly getDiscussion: readonly ["contents:read", "metadata:read", "discussions:read"];
|
|
108
|
+
readonly addDiscussionComment: readonly ["contents:read", "metadata:read", "discussions:read", "discussions:write"];
|
|
109
|
+
readonly listNotifications: readonly [];
|
|
110
|
+
readonly markNotificationRead: readonly [];
|
|
111
|
+
readonly listIssueReactions: readonly ["contents:read", "metadata:read", "issues:read"];
|
|
112
|
+
readonly addIssueReaction: readonly ["contents:read", "metadata:read", "issues:read", "issues:write"];
|
|
113
|
+
readonly listCommentReactions: readonly ["contents:read", "metadata:read", "issues:read"];
|
|
114
|
+
readonly addCommentReaction: readonly ["contents:read", "metadata:read", "issues:read", "issues:write"];
|
|
115
|
+
readonly listReleases: readonly ["contents:read", "metadata:read"];
|
|
116
|
+
readonly getLatestRelease: readonly ["contents:read", "metadata:read"];
|
|
117
|
+
readonly getRelease: readonly ["contents:read", "metadata:read"];
|
|
118
|
+
readonly getReleaseContext: readonly ["contents:read", "metadata:read"];
|
|
119
|
+
readonly createRelease: readonly ["contents:read", "contents:write", "metadata:read"];
|
|
120
|
+
readonly updateRelease: readonly ["contents:read", "contents:write", "metadata:read"];
|
|
121
|
+
readonly deleteRelease: readonly ["contents:read", "contents:write", "metadata:read"];
|
|
122
|
+
};
|
|
38
123
|
/**
|
|
39
124
|
* Returns Vercel Connect scopes for a preset or combined presets.
|
|
40
125
|
* Without a preset, returns the union of all preset scopes (full tool set).
|
|
41
126
|
*/
|
|
42
127
|
declare function connectGithubScopesForPreset(preset?: GithubToolPreset | GithubToolPreset[]): string[];
|
|
128
|
+
/**
|
|
129
|
+
* Returns Connect scopes covering exactly the given tools.
|
|
130
|
+
* Always includes `metadata:read`. Gist and notification tools contribute nothing.
|
|
131
|
+
*/
|
|
132
|
+
declare function connectGithubScopesForTools(names: readonly GithubToolName[]): string[];
|
|
133
|
+
type ConnectScopeSelection = {
|
|
134
|
+
preset?: GithubToolPreset | GithubToolPreset[];
|
|
135
|
+
include?: readonly GithubToolName[];
|
|
136
|
+
exclude?: readonly GithubToolName[];
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* Resolves Connect scopes for the effective tool set.
|
|
140
|
+
*
|
|
141
|
+
* - No `include` / `exclude`: same as {@link connectGithubScopesForPreset}
|
|
142
|
+
* (omitted preset → full union, including `administration:write`).
|
|
143
|
+
* - With `include` and/or `exclude`: scopes are derived from the resolved tools
|
|
144
|
+
* so a hand-picked `include` list does not mint the full admin surface.
|
|
145
|
+
*/
|
|
146
|
+
declare function connectGithubScopesForSelection(selection?: ConnectScopeSelection): string[];
|
|
43
147
|
//#endregion
|
|
44
148
|
//#region src/connect/token.d.ts
|
|
45
149
|
/**
|
|
46
150
|
* Returns a lazy GitHub token provider backed by a Vercel Connect connector.
|
|
47
|
-
* Scopes are derived from `preset
|
|
151
|
+
* Scopes are derived from `preset`, or from the resolved `include`/`exclude`
|
|
152
|
+
* tool set when those are set, unless overridden in `params.scopes`.
|
|
48
153
|
*
|
|
49
154
|
* `connector` may be a static name or a resolver function — e.g. to pick a
|
|
50
155
|
* different connector per environment (production vs. preview) or tenant.
|
|
@@ -62,5 +167,5 @@ declare function connectGithubToken(connector: GithubConnectorInput, options?: C
|
|
|
62
167
|
*/
|
|
63
168
|
declare function connectGithubTools(connector: GithubConnectorInput, options?: ConnectGithubToolsOptions): AllGithubTools | Pick<AllGithubTools, GithubToolName>;
|
|
64
169
|
//#endregion
|
|
65
|
-
export { type ConnectGithubEveToolsOptions, type ConnectGithubTokenOptions, type ConnectGithubToolsOptions, type GithubConnectParams, type GithubConnectorInput, PRESET_CONNECT_SCOPES, connectGithubScopesForPreset, connectGithubToken, connectGithubTools, resolveGithubConnector };
|
|
170
|
+
export { type ConnectGithubEveToolsOptions, type ConnectGithubTokenOptions, type ConnectGithubToolsOptions, type ConnectScopeSelection, type GithubConnectParams, type GithubConnectorInput, PRESET_CONNECT_SCOPES, TOOL_CONNECT_SCOPES, connectGithubScopesForPreset, connectGithubScopesForSelection, connectGithubScopesForTools, connectGithubToken, connectGithubTools, resolveGithubConnector };
|
|
66
171
|
//# sourceMappingURL=connect.d.mts.map
|
package/dist/connect.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.d.mts","names":[],"sources":["../src/connect/scopes.ts","../src/connect/token.ts","../src/connect/tools.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"connect.d.mts","names":[],"sources":["../src/connect/scopes.ts","../src/connect/token.ts","../src/connect/tools.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;cAwBa;;;;;;;;;;;;;;;;cA0IA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoGG,6BACd,SAAS,mBAAmB;;;;;iBAcd,4BAA4B,gBAAgB;KAUhD;EACV,SAAS,mBAAmB;EAC5B,mBAAmB;EACnB,mBAAmB;;;;;;;;;;iBA6BL,gCAAgC,YAAW;;;;;;;;;;;;iBChT3C,mBACd,WAAW,sBACX,UAAS,4BACR;;;;;;;;;;iBCNa,mBACd,WAAW,sBACX,UAAS,4BAAA,iBAA8B,KAAA,gBAAA"}
|
package/dist/connect.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as createGithubTools } from "./src-
|
|
2
|
-
import { i as
|
|
1
|
+
import { t as createGithubTools } from "./src-jQWS2Txw.mjs";
|
|
2
|
+
import { a as connectGithubScopesForSelection, i as connectGithubScopesForPreset, n as PRESET_CONNECT_SCOPES, o as connectGithubScopesForTools, r as TOOL_CONNECT_SCOPES, s as resolveGithubConnector, t as connectGithubToken } from "./token-OPdZa0t3.mjs";
|
|
3
3
|
//#region src/connect/tools.ts
|
|
4
4
|
/**
|
|
5
5
|
* Create GitHub tools backed by a Vercel Connect connector.
|
|
@@ -20,6 +20,6 @@ function connectGithubTools(connector, options = {}) {
|
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
//#endregion
|
|
23
|
-
export { PRESET_CONNECT_SCOPES, connectGithubScopesForPreset, connectGithubToken, connectGithubTools, resolveGithubConnector };
|
|
23
|
+
export { PRESET_CONNECT_SCOPES, TOOL_CONNECT_SCOPES, connectGithubScopesForPreset, connectGithubScopesForSelection, connectGithubScopesForTools, connectGithubToken, connectGithubTools, resolveGithubConnector };
|
|
24
24
|
|
|
25
25
|
//# sourceMappingURL=connect.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as EveToolFactoryOptions, n as EveApprovalValue, r as EveGithubToolsOptions, t as EveApprovalConfig } from "./types-
|
|
1
|
+
import { $t as GithubToolName, Jt as CombinedPresetToolNames, Yt as GithubToolPreset, Zt as PresetToolName, qt as GithubWriteToolName } from "./index-BNeMjmgp.mjs";
|
|
2
|
+
import { i as EveToolFactoryOptions, n as EveApprovalValue, r as EveGithubToolsOptions, t as EveApprovalConfig } from "./types-BDO-Mmn6.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { Approval, ToolDefinition, ToolModelOutput } from "eve/tools";
|
|
5
5
|
//#region src/eve/build.d.ts
|
|
@@ -51,4 +51,4 @@ declare function resolveEveApproval(toolName: GithubWriteToolName, config: EveAp
|
|
|
51
51
|
declare const MISSING_EVE_MESSAGE = "The \"eve\" package is required to use @github-tools/sdk/eve. Install it with: pnpm add eve";
|
|
52
52
|
//#endregion
|
|
53
53
|
export { buildEveToolMap as a, listEveToolDescriptors as c, buildEveToolDefinition as i, listResolvedEveToolNames as l, mapEveApprovalValue as n, createEveGithubToolsDynamic as o, resolveEveApproval as r, executeGithubEveTool as s, MISSING_EVE_MESSAGE as t };
|
|
54
|
-
//# sourceMappingURL=eve-runtime-
|
|
54
|
+
//# sourceMappingURL=eve-runtime-BqfQZAP7.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eve-runtime-
|
|
1
|
+
{"version":3,"file":"eve-runtime-BqfQZAP7.d.mts","names":[],"sources":["../src/eve/build.ts","../src/eve/approval.ts","../src/eve/load-eve.ts"],"mappings":";;;;;KASK,eAAe,yBAAyB;EAA0B,SAAS;;KAC3E,aAAa,QAAQ,OAAO,gBAAgB;iBAkCjC,uBACd,MAAM,gBACN,UAAS,eACR;iBA4Ba,gBAAgB,UAAS,wBAA6B;iBAiCtD,4BAA4B,UAAS,4CAA0B,gBAAA,QAAA,OAAA,gBAAA;iBAY/D,yBAAyB;EAAY;EAAoB;EAAqB;IAAwB;iBACtG,yBAAyB,UAAU,kBAAkB;EAAW,QAAQ;EAAG;EAAqB;IAAwB,eAAe;iBACvI,yBAAyB,mBAAmB,oBAAoB;EAAW,QAAQ;EAAG;EAAqB;IAAwB,wBAAwB;iBAC3J,yBAAyB,SAAS,KAAK,2DAA2D;;;;;iBAUlG,uBAAuB,UAAS;;;;;;;;;;;iBAyB1B,qBACpB,MAAM,gBACN,OAAO,yBACP,UAAS,wBAA0B;;;iBC5JrB,oBAAoB,OAAO,mBAAmB;iBAY9C,mBACd,UAAU,qBACV,QAAQ,gCACP;;;cCTU"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as listWorkflowJobsDescription, $n as
|
|
1
|
+
import { $ as listWorkflowJobsDescription, $n as getIssueDescription, $r as requestReviewersDescription, $t as searchRepositoriesDescription, A as getLatestReleaseInputSchema, Ai as getRepositoryDescription, An as addAssigneesInputSchema, Ar as createPullRequestInputSchema, At as listGistsInputSchema, B as getCombinedStatusCore, Bn as createIssueCore, Br as listPullRequestFilesCore, Bt as getCommitCore, C as createReleaseDescription, Ci as forkRepositoryCore, Cn as listCommentReactionsDescription, Cr as updateLabelDescription, Ct as getGistDescription, D as deleteReleaseInputSchema, Di as getFileContentDescription, Dn as listIssueReactionsInputSchema, Dr as addPullRequestCommentInputSchema, Dt as listGistCommentsInputSchema, E as deleteReleaseDescription, Ei as getFileContentCore, En as listIssueReactionsDescription, Er as addPullRequestCommentDescription, Et as listGistCommentsDescription, F as listReleasesDescription, Fi as listBranchesCore, Fn as addLabelsDescription, Fr as deletePullRequestCommentDescription, Ft as compareCommitsDescription, G as listCheckRunsInputSchema, Gn as createLabelInputSchema, Gr as listPullRequestReviewsInputSchema, Gt as listCommitsInputSchema, H as getCombinedStatusInputSchema, Hn as createIssueInputSchema, Hr as listPullRequestFilesInputSchema, Ht as getCommitInputSchema, I as listReleasesInputSchema, Ii as listBranchesDescription, In as addLabelsInputSchema, Ir as deletePullRequestCommentInputSchema, It as compareCommitsInputSchema, J as cancelWorkflowRunInputSchema, Jn as deleteIssueCommentInputSchema, Jr as listPullRequestsInputSchema, Jt as searchCodeInputSchema, K as cancelWorkflowRunCore, Kn as deleteIssueCommentCore, Kr as listPullRequestsCore, Kt as searchCodeCore, L as updateReleaseCore, Li as listBranchesInputSchema, Ln as closeIssueCore, Lr as getPullRequestCore, Lt as getBlameCore, M as getReleaseDescription, Mi as getRepositoryTreeCore, Mn as addIssueCommentDescription, Mr as createPullRequestReviewDescription, Mt as updateGistDescription, N as getReleaseInputSchema, Ni as getRepositoryTreeDescription, Nn as addIssueCommentInputSchema, Nr as createPullRequestReviewInputSchema, Nt as updateGistInputSchema, O as getLatestReleaseCore, Oi as getFileContentInputSchema, On as addAssigneesCore, Or as createPullRequestCore, Ot as listGistsCore, P as listReleasesCore, Pi as getRepositoryTreeInputSchema, Pn as addLabelsCore, Pr as deletePullRequestCommentCore, Pt as compareCommitsCore, Q as listWorkflowJobsCore, Qn as getIssueCore, Qr as requestReviewersCore, Qt as searchRepositoriesCore, R as updateReleaseDescription, Rn as closeIssueDescription, Rr as getPullRequestDescription, Rt as getBlameDescription, S as createReleaseCore, Si as createRepositoryInputSchema, Sn as listCommentReactionsCore, Sr as updateLabelCore, St as getGistCore, T as deleteReleaseCore, Ti as forkRepositoryInputSchema, Tn as listIssueReactionsCore, Tr as addPullRequestCommentCore, Tt as listGistCommentsCore, U as listCheckRunsCore, Un as createLabelCore, Ur as listPullRequestReviewsCore, Ut as listCommitsCore, V as getCombinedStatusDescription, Vn as createIssueDescription, Vr as listPullRequestFilesDescription, Vt as getCommitDescription, W as listCheckRunsDescription, Wn as createLabelDescription, Wr as listPullRequestReviewsDescription, Wt as listCommitsDescription, X as getWorkflowRunDescription, Xn as deleteLabelDescription, Xr as mergePullRequestDescription, Xt as searchIssuesDescription, Y as getWorkflowRunCore, Yn as deleteLabelCore, Yr as mergePullRequestCore, Yt as searchIssuesCore, Z as getWorkflowRunInputSchema, Zn as deleteLabelInputSchema, Zr as mergePullRequestInputSchema, Zt as searchIssuesInputSchema, _ as getPullRequestContextDescription, _i as createOrUpdateFileCore, _n as addCommentReactionDescription, _r as updateIssueCommentDescription, _t as createGistDescription, a as resolvePresetTools, ai as updatePullRequestDescription, an as markNotificationReadDescription, ar as listIssuesDescription, at as listWorkflowsDescription, b as getReleaseContextDescription, bi as createRepositoryCore, bn as addIssueReactionDescription, br as updateIssueDescription, bt as deleteGistDescription, c as mergeContextArgs, ci as resolveGithubToken, cn as addDiscussionCommentDescription, cr as listLabelsDescription, ct as rerunWorkflowRunDescription, d as getCiFailureContextDescription, di as getFileContentToModelOutput, dn as getDiscussionDescription, dr as removeAssigneesDescription, dt as triggerWorkflowDescription, ei as requestReviewersInputSchema, en as searchRepositoriesInputSchema, er as getIssueInputSchema, et as listWorkflowJobsInputSchema, f as getCiFailureContextInputSchema, fi as getPullRequestContextToModelOutput, fn as getDiscussionInputSchema, fr as removeAssigneesInputSchema, ft as triggerWorkflowInputSchema, g as getPullRequestContextCore, gi as createBranchInputSchema, gn as addCommentReactionCore, gr as updateIssueCommentCore, gt as createGistCore, h as getIssueContextInputSchema, hi as createBranchDescription, hn as listDiscussionsInputSchema, hr as removeLabelInputSchema, ht as createGistCommentInputSchema, ii as updatePullRequestCore, in as markNotificationReadCore, ir as listIssuesCore, it as listWorkflowsCore, j as getReleaseCore, ji as getRepositoryInputSchema, jn as addIssueCommentCore, jr as createPullRequestReviewCore, jt as updateGistCore, k as getLatestReleaseDescription, ki as getRepositoryCore, kn as addAssigneesDescription, kr as createPullRequestDescription, kt as listGistsDescription, l as softenContextSchema, li as compareCommitsToModelOutput, ln as addDiscussionCommentInputSchema, lr as listLabelsInputSchema, lt as rerunWorkflowRunInputSchema, m as getIssueContextDescription, mi as createBranchCore, mn as listDiscussionsDescription, mr as removeLabelDescription, mt as createGistCommentDescription, n as ALL_GITHUB_TOOL_NAMES, ni as updatePullRequestCommentDescription, nn as listNotificationsDescription, nr as listIssueCommentsDescription, nt as listWorkflowRunsDescription, oi as updatePullRequestInputSchema, on as markNotificationReadInputSchema, or as listIssuesInputSchema, ot as listWorkflowsInputSchema, p as getIssueContextCore, pi as listPullRequestFilesToModelOutput, pn as listDiscussionsCore, pr as removeLabelCore, pt as createGistCommentCore, q as cancelWorkflowRunDescription, qn as deleteIssueCommentDescription, qr as listPullRequestsDescription, qt as searchCodeDescription, ri as updatePullRequestCommentInputSchema, rn as listNotificationsInputSchema, rr as listIssueCommentsInputSchema, rt as listWorkflowRunsInputSchema, si as createGithubTokenResolver, sn as addDiscussionCommentCore, sr as listLabelsCore, st as rerunWorkflowRunCore, ti as updatePullRequestCommentCore, tn as listNotificationsCore, tr as listIssueCommentsCore, tt as listWorkflowRunsCore, u as getCiFailureContextCore, ui as getCommitToModelOutput, un as getDiscussionCore, ur as removeAssigneesCore, ut as triggerWorkflowCore, v as getPullRequestContextInputSchema, vi as createOrUpdateFileDescription, vn as addCommentReactionInputSchema, vr as updateIssueCommentInputSchema, vt as createGistInputSchema, w as createReleaseInputSchema, wi as forkRepositoryDescription, wn as listCommentReactionsInputSchema, wr as updateLabelInputSchema, wt as getGistInputSchema, x as getReleaseContextInputSchema, xi as createRepositoryDescription, xn as addIssueReactionInputSchema, xr as updateIssueInputSchema, xt as deleteGistInputSchema, y as getReleaseContextCore, yi as createOrUpdateFileInputSchema, yn as addIssueReactionCore, yr as updateIssueCore, yt as deleteGistCore, z as updateReleaseInputSchema, zn as closeIssueInputSchema, zr as getPullRequestInputSchema, zt as getBlameInputSchema } from "./write-tools-Dk32V9Hl.mjs";
|
|
2
2
|
import * as eveTools from "eve/tools";
|
|
3
3
|
import * as eveApproval from "eve/tools/approval";
|
|
4
4
|
//#region src/eve/load-eve.ts
|
|
@@ -208,6 +208,12 @@ function createToolRegistry(ctx) {
|
|
|
208
208
|
inputSchema: getIssueInputSchema,
|
|
209
209
|
execute: withToken(getIssueCore, ctx)
|
|
210
210
|
},
|
|
211
|
+
{
|
|
212
|
+
name: "listIssueComments",
|
|
213
|
+
description: listIssueCommentsDescription,
|
|
214
|
+
inputSchema: listIssueCommentsInputSchema,
|
|
215
|
+
execute: withToken(listIssueCommentsCore, ctx)
|
|
216
|
+
},
|
|
211
217
|
{
|
|
212
218
|
name: "createIssue",
|
|
213
219
|
writeTool: "createIssue",
|
|
@@ -270,6 +276,27 @@ function createToolRegistry(ctx) {
|
|
|
270
276
|
inputSchema: removeLabelInputSchema,
|
|
271
277
|
execute: withToken(removeLabelCore, ctx)
|
|
272
278
|
},
|
|
279
|
+
{
|
|
280
|
+
name: "createLabel",
|
|
281
|
+
writeTool: "createLabel",
|
|
282
|
+
description: createLabelDescription,
|
|
283
|
+
inputSchema: createLabelInputSchema,
|
|
284
|
+
execute: withToken(createLabelCore, ctx)
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
name: "updateLabel",
|
|
288
|
+
writeTool: "updateLabel",
|
|
289
|
+
description: updateLabelDescription,
|
|
290
|
+
inputSchema: updateLabelInputSchema,
|
|
291
|
+
execute: withToken(updateLabelCore, ctx)
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
name: "deleteLabel",
|
|
295
|
+
writeTool: "deleteLabel",
|
|
296
|
+
description: deleteLabelDescription,
|
|
297
|
+
inputSchema: deleteLabelInputSchema,
|
|
298
|
+
execute: withToken(deleteLabelCore, ctx)
|
|
299
|
+
},
|
|
273
300
|
{
|
|
274
301
|
name: "addAssignees",
|
|
275
302
|
writeTool: "addAssignees",
|
|
@@ -671,4 +698,4 @@ async function executeGithubEveTool(name, input, options = {}) {
|
|
|
671
698
|
//#endregion
|
|
672
699
|
export { listEveToolDescriptors as a, resolveEveApproval as c, executeGithubEveTool as i, MISSING_EVE_MESSAGE as l, buildEveToolMap as n, listResolvedEveToolNames as o, createEveGithubToolsDynamic as r, mapEveApprovalValue as s, buildEveToolDefinition as t };
|
|
673
700
|
|
|
674
|
-
//# sourceMappingURL=eve-runtime-
|
|
701
|
+
//# sourceMappingURL=eve-runtime-DXZgfCMb.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eve-runtime-DXZgfCMb.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\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: '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 { 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":";;;;AAWA,MAAa,sBACX;AAEF,SAAgB,cAA8B;CAC5C,OAAO;AACT;AAEA,SAAgB,wBAA2C;CACzD,OAAO;AACT;;;ACfA,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;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HANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as EveToolOverrides, i as EveToolFactoryOptions, n as EveApprovalValue, r as EveGithubToolsOptions, t as EveApprovalConfig } from "./types-
|
|
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-
|
|
1
|
+
import { $t as GithubToolName, Ft as PickGithubTools, Jt as CombinedPresetToolNames, Kt as GITHUB_WRITE_TOOLS, Mt as AllGithubTools, Pt as GithubToolsForPreset, Qt as GITHUB_TOOL_NAMES, Xt as PRESET_TOOLS, Yt as GithubToolPreset, Zt as PresetToolName, qt as GithubWriteToolName, zt as CommitIdentity } from "./index-BNeMjmgp.mjs";
|
|
2
|
+
import { a as EveToolOverrides, i as EveToolFactoryOptions, n as EveApprovalValue, r as EveGithubToolsOptions, t as EveApprovalConfig } from "./types-BDO-Mmn6.mjs";
|
|
3
|
+
import { a as buildEveToolMap, c as listEveToolDescriptors, i as buildEveToolDefinition, l as listResolvedEveToolNames, n as mapEveApprovalValue, o as createEveGithubToolsDynamic, r as resolveEveApproval, s as executeGithubEveTool, t as MISSING_EVE_MESSAGE } from "./eve-runtime-BqfQZAP7.mjs";
|
|
4
4
|
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 };
|
package/dist/eve-runtime.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as PRESET_TOOLS, r as GITHUB_TOOL_NAMES, t as GITHUB_WRITE_TOOLS } from "./write-tools-
|
|
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-
|
|
1
|
+
import { i as PRESET_TOOLS, r as GITHUB_TOOL_NAMES, t as GITHUB_WRITE_TOOLS } from "./write-tools-Dk32V9Hl.mjs";
|
|
2
|
+
import { a as listEveToolDescriptors, c as resolveEveApproval, i as executeGithubEveTool, l as MISSING_EVE_MESSAGE, n as buildEveToolMap, o as listResolvedEveToolNames, r as createEveGithubToolsDynamic, s as mapEveApprovalValue, t as buildEveToolDefinition } from "./eve-runtime-DXZgfCMb.mjs";
|
|
3
3
|
export { GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, MISSING_EVE_MESSAGE, PRESET_TOOLS, buildEveToolDefinition, buildEveToolMap, createEveGithubToolsDynamic, executeGithubEveTool, listEveToolDescriptors, listResolvedEveToolNames, mapEveApprovalValue, resolveEveApproval };
|