@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token-OPdZa0t3.mjs","names":[],"sources":["../src/connect/connector.ts","../src/connect/scopes.ts","../src/connect/params.ts","../src/connect/token.ts"],"sourcesContent":["/**\n * A Vercel Connect connector name, or a resolver that returns one.\n *\n * Use a function to pick the connector dynamically — e.g. a different\n * connector per environment (`production` vs. `preview`) or per tenant.\n * It's resolved lazily, on every token request, alongside the token itself.\n */\nexport type GithubConnectorInput = string | (() => string | Promise<string>)\n\n/** Resolves a {@link GithubConnectorInput} to a connector name string. */\nexport async function resolveGithubConnector(connector: GithubConnectorInput): Promise<string> {\n return typeof connector === 'function' ? await connector() : connector\n}\n","import { resolvePresetTools, type GithubToolPreset } from '../core/presets'\nimport { ALL_GITHUB_TOOL_NAMES, type GithubToolName } from '../core/tool-names'\n\n/**\n * Vercel Connect scope strings mapped to each {@link GithubToolPreset}.\n *\n * Scopes mirror GitHub App permissions (`contents`, `pull_requests`, `issues`,\n * `discussions`, `actions`, `checks`, `statuses`, `administration`, `metadata`)\n * and must cover every read/write family a preset's tools touch, not just its\n * primary domain. Release tools fall under the `contents` permission on GitHub\n * Apps, and reaction tools under `issues`, so neither needs a scope of its own.\n *\n * Gist tools in `repo-explorer` and `maintainer` are intentionally left\n * unscoped: the Gists API only accepts GitHub App *user* access tokens, never\n * installation tokens, and Connect always mints `subject: { type: 'app' }`\n * installation tokens. Gist calls made with a Connect-derived token 403\n * regardless of requested scopes — use a fine-grained PAT with the \"Gists\"\n * account permission for those tools instead.\n *\n * Notification tools in `maintainer` and `notification-inbox` are unscoped for\n * the same reason: `notifications` is an account-level GitHub App permission\n * that only applies to user access tokens, so `listNotifications` /\n * `markNotificationRead` need a PAT with the \"Notifications\" account permission.\n */\nexport const PRESET_CONNECT_SCOPES = {\n 'repo-explorer': [\n 'contents:read',\n 'metadata:read',\n 'pull_requests:read',\n 'issues:read',\n 'discussions:read',\n 'actions:read',\n 'checks:read',\n 'statuses:read',\n ],\n 'code-review': [\n 'contents:read',\n 'metadata:read',\n 'pull_requests:read',\n 'pull_requests:write',\n 'checks:read',\n 'statuses:read',\n ],\n 'issue-triage': [\n 'contents:read',\n 'metadata:read',\n 'issues:read',\n 'issues:write',\n ],\n 'ci-ops': [\n 'contents:read',\n 'metadata:read',\n 'actions:read',\n 'actions:write',\n 'checks:read',\n 'statuses:read',\n ],\n 'security-audit': [\n 'contents:read',\n 'metadata:read',\n 'pull_requests:read',\n 'issues:read',\n 'issues:write',\n 'actions:read',\n 'checks:read',\n 'statuses:read',\n ],\n 'release-manager': [\n 'contents:read',\n 'contents:write',\n 'metadata:read',\n 'pull_requests:read',\n 'actions:read',\n 'actions:write',\n ],\n 'discussion-moderator': [\n 'contents:read',\n 'metadata:read',\n 'issues:read',\n 'issues:write',\n 'discussions:read',\n 'discussions:write',\n ],\n 'notification-inbox': [\n 'contents:read',\n 'metadata:read',\n 'pull_requests:read',\n 'issues:read',\n ],\n 'pr-author': [\n 'contents:read',\n 'contents:write',\n 'metadata:read',\n 'pull_requests:read',\n 'pull_requests:write',\n ],\n 'maintainer': [\n 'contents:read',\n 'contents:write',\n 'metadata:read',\n 'pull_requests:read',\n 'pull_requests:write',\n 'issues:read',\n 'issues:write',\n 'discussions:read',\n 'discussions:write',\n 'actions:read',\n 'actions:write',\n 'checks:read',\n 'statuses:read',\n 'administration:read',\n 'administration:write',\n ],\n} as const satisfies Record<GithubToolPreset, readonly string[]>\n\n/** Default scopes when no preset is specified — union of all preset scopes. */\nconst ALL_CONNECT_SCOPES = [\n ...new Set(Object.values(PRESET_CONNECT_SCOPES).flat()),\n] as string[]\n\n/** Stable scope order for tool-derived unions (tests + Connect payloads). */\nconst SCOPE_ORDER = [\n 'contents:read',\n 'contents:write',\n 'metadata:read',\n 'pull_requests:read',\n 'pull_requests:write',\n 'issues:read',\n 'issues:write',\n 'discussions:read',\n 'discussions:write',\n 'actions:read',\n 'actions:write',\n 'checks:read',\n 'statuses:read',\n 'administration:read',\n 'administration:write',\n] as const\n\nconst CONTENTS_READ = ['contents:read', 'metadata:read'] as const\nconst CONTENTS_WRITE = ['contents:read', 'contents:write', 'metadata:read'] as const\nconst PR_READ = ['contents:read', 'metadata:read', 'pull_requests:read'] as const\nconst PR_WRITE = ['contents:read', 'metadata:read', 'pull_requests:read', 'pull_requests:write'] as const\n/** Read-only PR context (details, files, reviews) plus optional CI checks. */\nconst PR_CONTEXT = ['contents:read', 'metadata:read', 'pull_requests:read', 'checks:read', 'statuses:read'] as const\nconst ISSUES_READ = ['contents:read', 'metadata:read', 'issues:read'] as const\nconst ISSUES_WRITE = ['contents:read', 'metadata:read', 'issues:read', 'issues:write'] as const\nconst DISCUSSIONS_READ = ['contents:read', 'metadata:read', 'discussions:read'] as const\nconst DISCUSSIONS_WRITE = ['contents:read', 'metadata:read', 'discussions:read', 'discussions:write'] as const\nconst ACTIONS_READ = ['contents:read', 'metadata:read', 'actions:read'] as const\nconst ACTIONS_WRITE = ['contents:read', 'metadata:read', 'actions:read', 'actions:write'] as const\nconst CHECKS = ['contents:read', 'metadata:read', 'checks:read', 'statuses:read'] as const\nconst CI_CONTEXT = ['contents:read', 'metadata:read', 'actions:read', 'checks:read', 'statuses:read'] as const\nconst ADMIN = ['metadata:read', 'administration:read', 'administration:write'] as const\nconst SEARCH_REPOS = ['metadata:read'] as const\nconst SEARCH_ISSUES = ['metadata:read', 'issues:read', 'pull_requests:read'] as const\nconst UNSCOPED = [] as const\n\n/**\n * Per-tool Connect scopes. Empty arrays are intentional for gist and\n * notification tools (installation tokens cannot satisfy those APIs).\n */\nexport const TOOL_CONNECT_SCOPES = {\n getRepository: CONTENTS_READ,\n listBranches: CONTENTS_READ,\n getFileContent: CONTENTS_READ,\n getRepositoryTree: CONTENTS_READ,\n createBranch: CONTENTS_WRITE,\n forkRepository: CONTENTS_READ,\n createRepository: ADMIN,\n createOrUpdateFile: CONTENTS_WRITE,\n\n listPullRequests: PR_READ,\n getPullRequest: PR_READ,\n createPullRequest: PR_WRITE,\n mergePullRequest: PR_WRITE,\n updatePullRequest: PR_WRITE,\n addPullRequestComment: PR_WRITE,\n updatePullRequestComment: PR_WRITE,\n deletePullRequestComment: PR_WRITE,\n listPullRequestFiles: PR_READ,\n listPullRequestReviews: PR_READ,\n createPullRequestReview: PR_WRITE,\n requestReviewers: PR_WRITE,\n getPullRequestContext: PR_CONTEXT,\n\n listIssues: ISSUES_READ,\n getIssue: ISSUES_READ,\n getIssueContext: ISSUES_READ,\n createIssue: ISSUES_WRITE,\n addIssueComment: ISSUES_WRITE,\n updateIssueComment: ISSUES_WRITE,\n deleteIssueComment: ISSUES_WRITE,\n closeIssue: ISSUES_WRITE,\n updateIssue: ISSUES_WRITE,\n listLabels: ISSUES_READ,\n addLabels: ISSUES_WRITE,\n removeLabel: ISSUES_WRITE,\n createLabel: ISSUES_WRITE,\n updateLabel: ISSUES_WRITE,\n deleteLabel: ISSUES_WRITE,\n addAssignees: ISSUES_WRITE,\n removeAssignees: ISSUES_WRITE,\n\n searchCode: CONTENTS_READ,\n searchRepositories: SEARCH_REPOS,\n searchIssues: SEARCH_ISSUES,\n\n listCommits: CONTENTS_READ,\n getCommit: CONTENTS_READ,\n getBlame: CONTENTS_READ,\n compareCommits: CONTENTS_READ,\n\n listGists: UNSCOPED,\n getGist: UNSCOPED,\n listGistComments: UNSCOPED,\n createGist: UNSCOPED,\n updateGist: UNSCOPED,\n deleteGist: UNSCOPED,\n createGistComment: UNSCOPED,\n\n listWorkflows: ACTIONS_READ,\n listWorkflowRuns: ACTIONS_READ,\n getWorkflowRun: ACTIONS_READ,\n listWorkflowJobs: ACTIONS_READ,\n triggerWorkflow: ACTIONS_WRITE,\n cancelWorkflowRun: ACTIONS_WRITE,\n rerunWorkflowRun: ACTIONS_WRITE,\n\n listCheckRuns: CHECKS,\n getCombinedStatus: CHECKS,\n getCiFailureContext: CI_CONTEXT,\n\n listDiscussions: DISCUSSIONS_READ,\n getDiscussion: DISCUSSIONS_READ,\n addDiscussionComment: DISCUSSIONS_WRITE,\n\n listNotifications: UNSCOPED,\n markNotificationRead: UNSCOPED,\n\n listIssueReactions: ISSUES_READ,\n addIssueReaction: ISSUES_WRITE,\n listCommentReactions: ISSUES_READ,\n addCommentReaction: ISSUES_WRITE,\n\n listReleases: CONTENTS_READ,\n getLatestRelease: CONTENTS_READ,\n getRelease: CONTENTS_READ,\n getReleaseContext: CONTENTS_READ,\n createRelease: CONTENTS_WRITE,\n updateRelease: CONTENTS_WRITE,\n deleteRelease: CONTENTS_WRITE,\n} as const satisfies Record<GithubToolName, readonly string[]>\n\nfunction orderScopes(scopes: Set<string>): string[] {\n return SCOPE_ORDER.filter(scope => scopes.has(scope))\n}\n\n/**\n * Returns Vercel Connect scopes for a preset or combined presets.\n * Without a preset, returns the union of all preset scopes (full tool set).\n */\nexport function connectGithubScopesForPreset(\n preset?: GithubToolPreset | GithubToolPreset[],\n): string[] {\n if (!preset) return [...ALL_CONNECT_SCOPES]\n\n const presets = Array.isArray(preset) ? preset : [preset]\n return [\n ...new Set(presets.flatMap(p => PRESET_CONNECT_SCOPES[p])),\n ]\n}\n\n/**\n * Returns Connect scopes covering exactly the given tools.\n * Always includes `metadata:read`. Gist and notification tools contribute nothing.\n */\nexport function connectGithubScopesForTools(names: readonly GithubToolName[]): string[] {\n const scopes = new Set<string>(['metadata:read'])\n for (const name of names) {\n for (const scope of TOOL_CONNECT_SCOPES[name]) {\n scopes.add(scope)\n }\n }\n return orderScopes(scopes)\n}\n\nexport type ConnectScopeSelection = {\n preset?: GithubToolPreset | GithubToolPreset[]\n include?: readonly GithubToolName[]\n exclude?: readonly GithubToolName[]\n}\n\nfunction resolveSelectedToolNames({\n preset,\n include,\n exclude,\n}: ConnectScopeSelection): GithubToolName[] {\n const presetAllowed = preset ? resolvePresetTools(preset) : null\n const includeAllowed = include ? new Set(include) : null\n const excluded = exclude ? new Set(exclude) : null\n\n const allowed = presetAllowed && includeAllowed\n ? new Set([...presetAllowed, ...includeAllowed])\n : presetAllowed ?? includeAllowed\n\n return ALL_GITHUB_TOOL_NAMES.filter(\n name => (!allowed || allowed.has(name)) && !excluded?.has(name),\n )\n}\n\n/**\n * Resolves Connect scopes for the effective tool set.\n *\n * - No `include` / `exclude`: same as {@link connectGithubScopesForPreset}\n * (omitted preset → full union, including `administration:write`).\n * - With `include` and/or `exclude`: scopes are derived from the resolved tools\n * so a hand-picked `include` list does not mint the full admin surface.\n */\nexport function connectGithubScopesForSelection(selection: ConnectScopeSelection = {}): string[] {\n const { preset, include, exclude } = selection\n if (!include && !exclude) {\n return connectGithubScopesForPreset(preset)\n }\n return connectGithubScopesForTools(resolveSelectedToolNames(selection))\n}\n","import type { ConnectTokenParams } from '@vercel/connect'\nimport { connectGithubScopesForSelection } from './scopes'\nimport type { ConnectGithubTokenOptions, GithubConnectParams } from './types'\n\nexport function resolveGithubConnectTokenParams(\n options: ConnectGithubTokenOptions = {},\n): ConnectTokenParams {\n const { preset, include, exclude, params } = options\n const scopes = params?.scopes ?? connectGithubScopesForSelection({ preset, include, exclude })\n return buildConnectTokenParams(scopes, params)\n}\n\nfunction buildConnectTokenParams(\n scopes: string[],\n params?: GithubConnectParams,\n): ConnectTokenParams {\n const { repositories, ...rest } = params ?? {}\n\n const authorizationDetails = rest.authorizationDetails\n ?? (repositories?.length\n ? [{ type: 'github_app_installation' as const, repositories }]\n : undefined)\n\n return {\n subject: { type: 'app' },\n ...rest,\n scopes,\n ...(authorizationDetails && { authorizationDetails }),\n }\n}\n","import { getToken, type ConnectOptions } from '@vercel/connect'\nimport type { GithubTokenInput } from '../core/token'\nimport { resolveGithubConnector, type GithubConnectorInput } from './connector'\nimport { resolveGithubConnectTokenParams } from './params'\nimport type { ConnectGithubTokenOptions } from './types'\n\n/**\n * Returns a lazy GitHub token provider 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 `params.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 * It's re-resolved on every call, alongside the token itself.\n */\nexport function connectGithubToken(\n connector: GithubConnectorInput,\n options: ConnectGithubTokenOptions = {},\n): GithubTokenInput {\n const { connectOptions } = options\n const tokenParams = resolveGithubConnectTokenParams(options)\n\n return async () => getToken(await resolveGithubConnector(connector), tokenParams, connectOptions)\n}\n\nexport type { ConnectOptions }\n"],"mappings":";;;;AAUA,eAAsB,uBAAuB,WAAkD;CAC7F,OAAO,OAAO,cAAc,aAAa,MAAM,UAAU,IAAI;AAC/D;;;;;;;;;;;;;;;;;;;;;;;;ACYA,MAAa,wBAAwB;CACnC,iBAAiB;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,eAAe;EACb;EACA;EACA;EACA;EACA;EACA;CACF;CACA,gBAAgB;EACd;EACA;EACA;EACA;CACF;CACA,UAAU;EACR;EACA;EACA;EACA;EACA;EACA;CACF;CACA,kBAAkB;EAChB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,mBAAmB;EACjB;EACA;EACA;EACA;EACA;EACA;CACF;CACA,wBAAwB;EACtB;EACA;EACA;EACA;EACA;EACA;CACF;CACA,sBAAsB;EACpB;EACA;EACA;EACA;CACF;CACA,aAAa;EACX;EACA;EACA;EACA;EACA;CACF;CACA,cAAc;EACZ;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;AACF;;AAGA,M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,cAAc,gCAAgC,OAAO;CAE3D,OAAO,YAAY,SAAS,MAAM,uBAAuB,SAAS,GAAG,aAAa,cAAc;AAClG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as EveGithubToolsOptions } from "./types-
|
|
1
|
+
import { $t as GithubToolName, Nt as GithubToolsBaseOptions, Yt as GithubToolPreset } from "./index-BNeMjmgp.mjs";
|
|
2
|
+
import { r as EveGithubToolsOptions } from "./types-BDO-Mmn6.mjs";
|
|
3
3
|
import { ConnectOptions, ConnectTokenParams } from "@vercel/connect";
|
|
4
4
|
//#region src/connect/connector.d.ts
|
|
5
5
|
/**
|
|
@@ -31,9 +31,13 @@ type ConnectGithubEveToolsOptions = Omit<EveGithubToolsOptions, 'token'> & {
|
|
|
31
31
|
};
|
|
32
32
|
type ConnectGithubTokenOptions = {
|
|
33
33
|
preset?: GithubToolPreset | GithubToolPreset[];
|
|
34
|
+
/** Same allow-list semantics as eve `include` — scopes derive from the resolved tools when set. */
|
|
35
|
+
include?: readonly GithubToolName[];
|
|
36
|
+
/** Same deny-list semantics as eve `exclude` — scopes derive from the resolved tools when set. */
|
|
37
|
+
exclude?: readonly GithubToolName[];
|
|
34
38
|
params?: GithubConnectParams;
|
|
35
39
|
connectOptions?: ConnectOptions;
|
|
36
40
|
};
|
|
37
41
|
//#endregion
|
|
38
42
|
export { GithubConnectorInput as a, GithubConnectParams as i, ConnectGithubTokenOptions as n, resolveGithubConnector as o, ConnectGithubToolsOptions as r, ConnectGithubEveToolsOptions as t };
|
|
39
|
-
//# sourceMappingURL=types-
|
|
43
|
+
//# sourceMappingURL=types-BD5YvGxm.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-BD5YvGxm.d.mts","names":[],"sources":["../src/connect/connector.ts","../src/connect/types.ts"],"mappings":";;;;;;;;;;;KAOY,gDAAgD;;iBAGtC,uBAAuB,WAAW,uBAAuB;;;;;;;KCAnE,sBAAsB,KAAK;;EAErC;;KAGU,4BAA4B;EACtC,SAAS,mBAAmB;EAC5B,UAAU;;KAGA,+BAA+B,KAAK;EAC9C,UAAU;;KAGA;EACV,SAAS,mBAAmB;;EAE5B,mBAAmB;;EAEnB,mBAAmB;EACnB,SAAS;EACT,iBAAiB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $t as GithubToolName, It as GithubTokenInput, Rt as GithubToolsContext, Yt as GithubToolPreset, qt as GithubWriteToolName, zt as CommitIdentity } from "./index-BNeMjmgp.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { Approval, ToolModelOutput } from "eve/tools";
|
|
4
4
|
//#region src/eve/types.d.ts
|
|
@@ -67,4 +67,4 @@ type EveGithubToolsOptions = {
|
|
|
67
67
|
type EveToolFactoryOptions = Omit<EveGithubToolsOptions, 'preset' | 'include' | 'exclude'>;
|
|
68
68
|
//#endregion
|
|
69
69
|
export { EveToolOverrides as a, EveToolFactoryOptions as i, EveApprovalValue as n, EveGithubToolsOptions as r, EveApprovalConfig as t };
|
|
70
|
-
//# sourceMappingURL=types-
|
|
70
|
+
//# sourceMappingURL=types-BDO-Mmn6.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-
|
|
1
|
+
{"version":3,"file":"types-BDO-Mmn6.d.mts","names":[],"sources":["../src/eve/types.ts"],"mappings":";;;;;;;;;;;;KAiBY,2DAKR;KAEQ,8BAER,QAAQ,OAAO,qBAAqB;KAE5B,mBAAmB,QAAQ,OAAO;EAC5C;EACA,WAAW;EACX,iBAAiB,oBAAoB,kBAAkB,QAAQ;;EAE/D,eAAe,EAAE;;KAGP;;EAEV,QAAQ;;;;;;EAMR,SAAS,mBAAmB;;;;;;EAM5B,UAAU;;;;;;EAMV,UAAU;;;;;;EAMV,kBAAkB;;;;;;EAMlB,YAAY;;EAEZ,SAAS;;EAET,YAAY;;EAEZ,YAAY;;;;;EAKZ,UAAU;;KAGA,wBAAwB,KAAK"}
|
package/dist/workflow.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $t as GithubToolName, Bt as CommitToolOptions, Ft as PickGithubTools, Gt as ApprovalConfig, It as GithubTokenInput, Jt as CombinedPresetToolNames, Kt as GITHUB_WRITE_TOOLS, Lt as resolveGithubToken, Mt as AllGithubTools, Pt as GithubToolsForPreset, Qt as GITHUB_TOOL_NAMES, Rt as GithubToolsContext, Wt as ToolOverrides, Xt as PRESET_TOOLS, Yt as GithubToolPreset, Zt as PresetToolName, a as createGithubAgent, i as CreateGithubAgentOptions, n as GithubToolsOptions, qt as GithubWriteToolName, r as createGithubTools, t as GithubTools, zt as CommitIdentity } from "./index-BNeMjmgp.mjs";
|
|
2
2
|
import { FinishReason, LanguageModel, LanguageModelResponseMetadata, LanguageModelUsage, ModelMessage, StepResult, StopCondition, ToolSet } from "ai";
|
|
3
3
|
import { WorkflowAgentOptions, WorkflowAgentStreamOptions, WorkflowAgentStreamResult } from "@ai-sdk/workflow";
|
|
4
4
|
import { Context } from "@ai-sdk/provider-utils";
|
package/dist/workflow.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as createGithubAgent, r as resolveInstructions, t as createGithubTools } from "./src-
|
|
1
|
+
import { ci as resolveGithubToken, i as PRESET_TOOLS, r as GITHUB_TOOL_NAMES, t as GITHUB_WRITE_TOOLS } from "./write-tools-Dk32V9Hl.mjs";
|
|
2
|
+
import { n as createGithubAgent, r as resolveInstructions, t as createGithubTools } from "./src-jQWS2Txw.mjs";
|
|
3
3
|
import { WorkflowAgent } from "@ai-sdk/workflow";
|
|
4
4
|
//#region src/workflow.ts
|
|
5
5
|
/**
|
|
@@ -1015,7 +1015,7 @@ async function getIssueCore({ token, owner, repo, issueNumber, detail = "summary
|
|
|
1015
1015
|
closedAt: data.closed_at
|
|
1016
1016
|
};
|
|
1017
1017
|
}
|
|
1018
|
-
z.object({
|
|
1018
|
+
const listIssueCommentsInputSchema = z.object({
|
|
1019
1019
|
owner: z.string().describe("Repository owner"),
|
|
1020
1020
|
repo: z.string().describe("Repository name"),
|
|
1021
1021
|
issueNumber: z.number().describe("Issue number"),
|
|
@@ -1023,6 +1023,7 @@ z.object({
|
|
|
1023
1023
|
page: z.number().optional().default(1).describe("Page number for pagination"),
|
|
1024
1024
|
detail: detailSchema
|
|
1025
1025
|
});
|
|
1026
|
+
const listIssueCommentsDescription = "List comments on a GitHub issue. Bodies are truncated by default (detail: summary)";
|
|
1026
1027
|
async function listIssueCommentsCore({ token, owner, repo, issueNumber, perPage, page, detail = "summary" }) {
|
|
1027
1028
|
const { data } = await createOctokit(token).rest.issues.listComments({
|
|
1028
1029
|
owner,
|
|
@@ -1272,6 +1273,72 @@ async function removeLabelCore({ token, owner, repo, issueNumber, label }) {
|
|
|
1272
1273
|
issueNumber
|
|
1273
1274
|
};
|
|
1274
1275
|
}
|
|
1276
|
+
const createLabelInputSchema = z.object({
|
|
1277
|
+
owner: z.string().describe("Repository owner"),
|
|
1278
|
+
repo: z.string().describe("Repository name"),
|
|
1279
|
+
name: z.string().describe("Label name"),
|
|
1280
|
+
color: z.string().describe("Label color as 6 hex digits without a leading # (e.g. \"d73a4a\")"),
|
|
1281
|
+
description: z.string().optional().describe("Short label description")
|
|
1282
|
+
});
|
|
1283
|
+
const createLabelDescription = "Create a label in a GitHub repository";
|
|
1284
|
+
/** Not idempotent — creating a label that already exists returns 422 from GitHub. */
|
|
1285
|
+
async function createLabelCore({ token, owner, repo, name, color, description }) {
|
|
1286
|
+
const { data } = await createOctokit(token).rest.issues.createLabel({
|
|
1287
|
+
owner,
|
|
1288
|
+
repo,
|
|
1289
|
+
name,
|
|
1290
|
+
color,
|
|
1291
|
+
description
|
|
1292
|
+
});
|
|
1293
|
+
return {
|
|
1294
|
+
name: data.name,
|
|
1295
|
+
color: data.color,
|
|
1296
|
+
description: data.description
|
|
1297
|
+
};
|
|
1298
|
+
}
|
|
1299
|
+
const updateLabelInputSchema = z.object({
|
|
1300
|
+
owner: z.string().describe("Repository owner"),
|
|
1301
|
+
repo: z.string().describe("Repository name"),
|
|
1302
|
+
name: z.string().describe("Current label name"),
|
|
1303
|
+
newName: z.string().optional().describe("New label name (rename)"),
|
|
1304
|
+
color: z.string().optional().describe("New color as 6 hex digits without a leading #"),
|
|
1305
|
+
description: z.string().nullable().optional().describe("New description, or null to clear it")
|
|
1306
|
+
});
|
|
1307
|
+
const updateLabelDescription = "Update a label in a GitHub repository — name, color, or description";
|
|
1308
|
+
/** Not idempotent — each call applies a new revision. */
|
|
1309
|
+
async function updateLabelCore({ token, owner, repo, name, newName, color, description }) {
|
|
1310
|
+
const { data } = await createOctokit(token).rest.issues.updateLabel({
|
|
1311
|
+
owner,
|
|
1312
|
+
repo,
|
|
1313
|
+
name,
|
|
1314
|
+
new_name: newName,
|
|
1315
|
+
color,
|
|
1316
|
+
description: description === null ? "" : description
|
|
1317
|
+
});
|
|
1318
|
+
return {
|
|
1319
|
+
name: data.name,
|
|
1320
|
+
color: data.color,
|
|
1321
|
+
description: data.description
|
|
1322
|
+
};
|
|
1323
|
+
}
|
|
1324
|
+
const deleteLabelInputSchema = z.object({
|
|
1325
|
+
owner: z.string().describe("Repository owner"),
|
|
1326
|
+
repo: z.string().describe("Repository name"),
|
|
1327
|
+
name: z.string().describe("Label name to delete")
|
|
1328
|
+
});
|
|
1329
|
+
const deleteLabelDescription = "Delete a label from a GitHub repository permanently";
|
|
1330
|
+
/** Not idempotent — deleting a missing label returns 404 from GitHub. */
|
|
1331
|
+
async function deleteLabelCore({ token, owner, repo, name }) {
|
|
1332
|
+
await createOctokit(token).rest.issues.deleteLabel({
|
|
1333
|
+
owner,
|
|
1334
|
+
repo,
|
|
1335
|
+
name
|
|
1336
|
+
});
|
|
1337
|
+
return {
|
|
1338
|
+
deleted: true,
|
|
1339
|
+
name
|
|
1340
|
+
};
|
|
1341
|
+
}
|
|
1275
1342
|
const addAssigneesInputSchema = z.object({
|
|
1276
1343
|
owner: z.string().describe("Repository owner"),
|
|
1277
1344
|
repo: z.string().describe("Repository name"),
|
|
@@ -2935,12 +3002,14 @@ const PRESET_TOOLS = {
|
|
|
2935
3002
|
/**
|
|
2936
3003
|
* **Issue triage** — manage and organize GitHub issues.
|
|
2937
3004
|
*
|
|
2938
|
-
* Tools: `listIssues`, `getIssueContext`, `createIssue`, `addIssueComment`, `updateIssueComment`, `deleteIssueComment`,
|
|
2939
|
-
* `closeIssue`, `updateIssue`, `addLabels`, `removeLabel`, `
|
|
3005
|
+
* Tools: `listIssues`, `getIssueContext`, `listIssueComments`, `createIssue`, `addIssueComment`, `updateIssueComment`, `deleteIssueComment`,
|
|
3006
|
+
* `closeIssue`, `updateIssue`, `addLabels`, `removeLabel`, `createLabel`, `updateLabel`, `deleteLabel`,
|
|
3007
|
+
* `addAssignees`, `removeAssignees`,
|
|
2940
3008
|
* `listIssueReactions`, `addIssueReaction`, `listCommentReactions`, `addCommentReaction`, `getRepository`,
|
|
2941
3009
|
* `searchRepositories`, `searchCode`, `searchIssues`.
|
|
2942
3010
|
*
|
|
2943
3011
|
* Prefer `getIssueContext` (issue + `labelNames` + recent comments) over separate get/list calls.
|
|
3012
|
+
* Use `listIssueComments` to paginate beyond the comments returned by `getIssueContext`.
|
|
2944
3013
|
* Reopen a closed issue with `updateIssue` (`state: 'open'`) — there is no separate reopen tool.
|
|
2945
3014
|
* Acknowledge a report with `addIssueReaction` / `addCommentReaction` instead of a comment when no reply is needed.
|
|
2946
3015
|
* Agent prompt: optimized for categorizing, labeling, and responding to issues.
|
|
@@ -2948,6 +3017,7 @@ const PRESET_TOOLS = {
|
|
|
2948
3017
|
"issue-triage": [
|
|
2949
3018
|
"listIssues",
|
|
2950
3019
|
"getIssueContext",
|
|
3020
|
+
"listIssueComments",
|
|
2951
3021
|
"createIssue",
|
|
2952
3022
|
"addIssueComment",
|
|
2953
3023
|
"updateIssueComment",
|
|
@@ -2956,6 +3026,9 @@ const PRESET_TOOLS = {
|
|
|
2956
3026
|
"updateIssue",
|
|
2957
3027
|
"addLabels",
|
|
2958
3028
|
"removeLabel",
|
|
3029
|
+
"createLabel",
|
|
3030
|
+
"updateLabel",
|
|
3031
|
+
"deleteLabel",
|
|
2959
3032
|
"addAssignees",
|
|
2960
3033
|
"removeAssignees",
|
|
2961
3034
|
"listIssueReactions",
|
|
@@ -3013,6 +3086,7 @@ const PRESET_TOOLS = {
|
|
|
3013
3086
|
"listIssues",
|
|
3014
3087
|
"getIssue",
|
|
3015
3088
|
"getIssueContext",
|
|
3089
|
+
"listIssueComments",
|
|
3016
3090
|
"listDiscussions",
|
|
3017
3091
|
"getDiscussion",
|
|
3018
3092
|
"listLabels",
|
|
@@ -3197,6 +3271,7 @@ const PRESET_TOOLS = {
|
|
|
3197
3271
|
"listIssues",
|
|
3198
3272
|
"getIssue",
|
|
3199
3273
|
"getIssueContext",
|
|
3274
|
+
"listIssueComments",
|
|
3200
3275
|
"createIssue",
|
|
3201
3276
|
"addIssueComment",
|
|
3202
3277
|
"updateIssueComment",
|
|
@@ -3206,6 +3281,9 @@ const PRESET_TOOLS = {
|
|
|
3206
3281
|
"listLabels",
|
|
3207
3282
|
"addLabels",
|
|
3208
3283
|
"removeLabel",
|
|
3284
|
+
"createLabel",
|
|
3285
|
+
"updateLabel",
|
|
3286
|
+
"deleteLabel",
|
|
3209
3287
|
"addAssignees",
|
|
3210
3288
|
"removeAssignees",
|
|
3211
3289
|
"listIssueReactions",
|
|
@@ -3318,6 +3396,8 @@ const GITHUB_TOOL_NAMES = {
|
|
|
3318
3396
|
getIssue: "getIssue",
|
|
3319
3397
|
/** Fetch an issue plus available label names and recent comments in one call. */
|
|
3320
3398
|
getIssueContext: "getIssueContext",
|
|
3399
|
+
/** List comments on a GitHub issue. Bodies are truncated by default (detail: summary). Prefer getIssueContext for the first page when triaging. */
|
|
3400
|
+
listIssueComments: "listIssueComments",
|
|
3321
3401
|
/** Create a new issue in a GitHub repository. Requires approval by default. */
|
|
3322
3402
|
createIssue: "createIssue",
|
|
3323
3403
|
/** Add a comment to a GitHub issue. Requires approval by default. */
|
|
@@ -3336,6 +3416,12 @@ const GITHUB_TOOL_NAMES = {
|
|
|
3336
3416
|
addLabels: "addLabels",
|
|
3337
3417
|
/** Remove a label from an issue or pull request. Requires approval by default. */
|
|
3338
3418
|
removeLabel: "removeLabel",
|
|
3419
|
+
/** Create a label in a GitHub repository. Requires approval by default. */
|
|
3420
|
+
createLabel: "createLabel",
|
|
3421
|
+
/** Update a label in a GitHub repository — name, color, or description. Requires approval by default. */
|
|
3422
|
+
updateLabel: "updateLabel",
|
|
3423
|
+
/** Delete a label from a GitHub repository permanently. Requires approval by default. */
|
|
3424
|
+
deleteLabel: "deleteLabel",
|
|
3339
3425
|
/** Assign users to an issue or pull request. Requires approval by default. */
|
|
3340
3426
|
addAssignees: "addAssignees",
|
|
3341
3427
|
/** Remove assignees from an issue or pull request. Requires approval by default. */
|
|
@@ -3469,6 +3555,12 @@ const GITHUB_WRITE_TOOLS = {
|
|
|
3469
3555
|
addLabels: "addLabels",
|
|
3470
3556
|
/** Remove a label from an issue or pull request. Requires approval by default. */
|
|
3471
3557
|
removeLabel: "removeLabel",
|
|
3558
|
+
/** Create a label in a GitHub repository. Requires approval by default. */
|
|
3559
|
+
createLabel: "createLabel",
|
|
3560
|
+
/** Update a label in a GitHub repository. Requires approval by default. */
|
|
3561
|
+
updateLabel: "updateLabel",
|
|
3562
|
+
/** Delete a label from a GitHub repository permanently. Requires approval by default. */
|
|
3563
|
+
deleteLabel: "deleteLabel",
|
|
3472
3564
|
/** Assign users to an issue or pull request. Requires approval by default. */
|
|
3473
3565
|
addAssignees: "addAssignees",
|
|
3474
3566
|
/** Remove assignees from an issue or pull request. Requires approval by default. */
|
|
@@ -3504,6 +3596,6 @@ const GITHUB_WRITE_TOOLS = {
|
|
|
3504
3596
|
};
|
|
3505
3597
|
Object.values(GITHUB_WRITE_TOOLS);
|
|
3506
3598
|
//#endregion
|
|
3507
|
-
export { listWorkflowJobsDescription as $,
|
|
3599
|
+
export { listWorkflowJobsDescription as $, getIssueDescription as $n, requestReviewersDescription as $r, searchRepositoriesDescription as $t, getLatestReleaseInputSchema as A, getRepositoryDescription as Ai, addAssigneesInputSchema as An, createPullRequestInputSchema as Ar, listGistsInputSchema as At, getCombinedStatusCore as B, createIssueCore as Bn, listPullRequestFilesCore as Br, getCommitCore as Bt, createReleaseDescription as C, forkRepositoryCore as Ci, listCommentReactionsDescription as Cn, updateLabelDescription as Cr, getGistDescription as Ct, deleteReleaseInputSchema as D, getFileContentDescription as Di, listIssueReactionsInputSchema as Dn, addPullRequestCommentInputSchema as Dr, listGistCommentsInputSchema as Dt, deleteReleaseDescription as E, getFileContentCore as Ei, listIssueReactionsDescription as En, addPullRequestCommentDescription as Er, listGistCommentsDescription as Et, listReleasesDescription as F, listBranchesCore as Fi, addLabelsDescription as Fn, deletePullRequestCommentDescription as Fr, compareCommitsDescription as Ft, listCheckRunsInputSchema as G, createLabelInputSchema as Gn, listPullRequestReviewsInputSchema as Gr, listCommitsInputSchema as Gt, getCombinedStatusInputSchema as H, createIssueInputSchema as Hn, listPullRequestFilesInputSchema as Hr, getCommitInputSchema as Ht, listReleasesInputSchema as I, listBranchesDescription as Ii, addLabelsInputSchema as In, deletePullRequestCommentInputSchema as Ir, compareCommitsInputSchema as It, cancelWorkflowRunInputSchema as J, deleteIssueCommentInputSchema as Jn, listPullRequestsInputSchema as Jr, searchCodeInputSchema as Jt, cancelWorkflowRunCore as K, deleteIssueCommentCore as Kn, listPullRequestsCore as Kr, searchCodeCore as Kt, updateReleaseCore as L, listBranchesInputSchema as Li, closeIssueCore as Ln, getPullRequestCore as Lr, getBlameCore as Lt, getReleaseDescription as M, getRepositoryTreeCore as Mi, addIssueCommentDescription as Mn, createPullRequestReviewDescription as Mr, updateGistDescription as Mt, getReleaseInputSchema as N, getRepositoryTreeDescription as Ni, addIssueCommentInputSchema as Nn, createPullRequestReviewInputSchema as Nr, updateGistInputSchema as Nt, getLatestReleaseCore as O, getFileContentInputSchema as Oi, addAssigneesCore as On, createPullRequestCore as Or, listGistsCore as Ot, listReleasesCore as P, getRepositoryTreeInputSchema as Pi, addLabelsCore as Pn, deletePullRequestCommentCore as Pr, compareCommitsCore as Pt, listWorkflowJobsCore as Q, getIssueCore as Qn, requestReviewersCore as Qr, searchRepositoriesCore as Qt, updateReleaseDescription as R, createOctokit as Ri, closeIssueDescription as Rn, getPullRequestDescription as Rr, getBlameDescription as Rt, createReleaseCore as S, createRepositoryInputSchema as Si, listCommentReactionsCore as Sn, updateLabelCore as Sr, getGistCore as St, deleteReleaseCore as T, forkRepositoryInputSchema as Ti, listIssueReactionsCore as Tn, addPullRequestCommentCore as Tr, listGistCommentsCore as Tt, listCheckRunsCore as U, createLabelCore as Un, listPullRequestReviewsCore as Ur, listCommitsCore as Ut, getCombinedStatusDescription as V, createIssueDescription as Vn, listPullRequestFilesDescription as Vr, getCommitDescription as Vt, listCheckRunsDescription as W, createLabelDescription as Wn, listPullRequestReviewsDescription as Wr, listCommitsDescription as Wt, getWorkflowRunDescription as X, deleteLabelDescription as Xn, mergePullRequestDescription as Xr, searchIssuesDescription as Xt, getWorkflowRunCore as Y, deleteLabelCore as Yn, mergePullRequestCore as Yr, searchIssuesCore as Yt, getWorkflowRunInputSchema as Z, deleteLabelInputSchema as Zn, mergePullRequestInputSchema as Zr, searchIssuesInputSchema as Zt, getPullRequestContextDescription as _, createOrUpdateFileCore as _i, addCommentReactionDescription as _n, updateIssueCommentDescription as _r, createGistDescription as _t, resolvePresetTools as a, updatePullRequestDescription as ai, markNotificationReadDescription as an, listIssuesDescription as ar, listWorkflowsDescription as at, getReleaseContextDescription as b, createRepositoryCore as bi, addIssueReactionDescription as bn, updateIssueDescription as br, deleteGistDescription as bt, mergeContextArgs as c, resolveGithubToken as ci, addDiscussionCommentDescription as cn, listLabelsDescription as cr, rerunWorkflowRunDescription as ct, getCiFailureContextDescription as d, getFileContentToModelOutput as di, getDiscussionDescription as dn, removeAssigneesDescription as dr, triggerWorkflowDescription as dt, requestReviewersInputSchema as ei, searchRepositoriesInputSchema as en, getIssueInputSchema as er, listWorkflowJobsInputSchema as et, getCiFailureContextInputSchema as f, getPullRequestContextToModelOutput as fi, getDiscussionInputSchema as fn, removeAssigneesInputSchema as fr, triggerWorkflowInputSchema as ft, getPullRequestContextCore as g, createBranchInputSchema as gi, addCommentReactionCore as gn, updateIssueCommentCore as gr, createGistCore as gt, getIssueContextInputSchema as h, createBranchDescription as hi, listDiscussionsInputSchema as hn, removeLabelInputSchema as hr, createGistCommentInputSchema as ht, PRESET_TOOLS as i, updatePullRequestCore as ii, markNotificationReadCore as in, listIssuesCore as ir, listWorkflowsCore as it, getReleaseCore as j, getRepositoryInputSchema as ji, addIssueCommentCore as jn, createPullRequestReviewCore as jr, updateGistCore as jt, getLatestReleaseDescription as k, getRepositoryCore as ki, addAssigneesDescription as kn, createPullRequestDescription as kr, listGistsDescription as kt, softenContextSchema as l, compareCommitsToModelOutput as li, addDiscussionCommentInputSchema as ln, listLabelsInputSchema as lr, rerunWorkflowRunInputSchema as lt, getIssueContextDescription as m, createBranchCore as mi, listDiscussionsDescription as mn, removeLabelDescription as mr, createGistCommentDescription as mt, ALL_GITHUB_TOOL_NAMES as n, updatePullRequestCommentDescription as ni, listNotificationsDescription as nn, listIssueCommentsDescription as nr, listWorkflowRunsDescription as nt, bindToolsContext as o, updatePullRequestInputSchema as oi, markNotificationReadInputSchema as on, listIssuesInputSchema as or, listWorkflowsInputSchema as ot, getIssueContextCore as p, listPullRequestFilesToModelOutput as pi, listDiscussionsCore as pn, removeLabelCore as pr, createGistCommentCore as pt, cancelWorkflowRunDescription as q, deleteIssueCommentDescription as qn, listPullRequestsDescription as qr, searchCodeDescription as qt, GITHUB_TOOL_NAMES as r, updatePullRequestCommentInputSchema as ri, listNotificationsInputSchema as rn, listIssueCommentsInputSchema as rr, listWorkflowRunsInputSchema as rt, formatContextInstructions as s, createGithubTokenResolver as si, addDiscussionCommentCore as sn, listLabelsCore as sr, rerunWorkflowRunCore as st, GITHUB_WRITE_TOOLS as t, updatePullRequestCommentCore as ti, listNotificationsCore as tn, listIssueCommentsCore as tr, listWorkflowRunsCore as tt, getCiFailureContextCore as u, getCommitToModelOutput as ui, getDiscussionCore as un, removeAssigneesCore as ur, triggerWorkflowCore as ut, getPullRequestContextInputSchema as v, createOrUpdateFileDescription as vi, addCommentReactionInputSchema as vn, updateIssueCommentInputSchema as vr, createGistInputSchema as vt, createReleaseInputSchema as w, forkRepositoryDescription as wi, listCommentReactionsInputSchema as wn, updateLabelInputSchema as wr, getGistInputSchema as wt, getReleaseContextInputSchema as x, createRepositoryDescription as xi, addIssueReactionInputSchema as xn, updateIssueInputSchema as xr, deleteGistInputSchema as xt, getReleaseContextCore as y, createOrUpdateFileInputSchema as yi, addIssueReactionCore as yn, updateIssueCore as yr, deleteGistCore as yt, updateReleaseInputSchema as z, closeIssueInputSchema as zn, getPullRequestInputSchema as zr, getBlameInputSchema as zt };
|
|
3508
3600
|
|
|
3509
|
-
//# sourceMappingURL=write-tools-
|
|
3601
|
+
//# sourceMappingURL=write-tools-Dk32V9Hl.mjs.map
|