@github-tools/sdk 1.21.0 → 1.22.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.
Files changed (61) hide show
  1. package/README.md +9 -9
  2. package/dist/{approval-policy-CEMMPq92.mjs → approval-policy-C2rcAY77.mjs} +3 -4
  3. package/dist/{approval-policy-CEMMPq92.mjs.map → approval-policy-C2rcAY77.mjs.map} +1 -1
  4. package/dist/connect/eve.d.mts +2 -4
  5. package/dist/connect/eve.d.mts.map +1 -1
  6. package/dist/connect/eve.mjs +3 -4
  7. package/dist/connect/eve.mjs.map +1 -1
  8. package/dist/connect.d.mts +3 -9
  9. package/dist/connect.d.mts.map +1 -1
  10. package/dist/connect.mjs +3 -4
  11. package/dist/{cores-meFAMt2D.mjs → cores-CMUr_SEv.mjs} +3 -4
  12. package/dist/{cores-meFAMt2D.mjs.map → cores-CMUr_SEv.mjs.map} +1 -1
  13. package/dist/{dry-run-DXckOam2.d.mts → dry-run-BAbes7Mv.d.mts} +2 -28
  14. package/dist/dry-run-BAbes7Mv.d.mts.map +1 -0
  15. package/dist/{evaluation-DJHINyAu.mjs → evaluation-DskA4Lzk.mjs} +4 -6
  16. package/dist/{evaluation-DJHINyAu.mjs.map → evaluation-DskA4Lzk.mjs.map} +1 -1
  17. package/dist/{eve-runtime-B_CJE9JV.d.mts → eve-runtime-Bmdw1C-K.d.mts} +43 -15
  18. package/dist/eve-runtime-Bmdw1C-K.d.mts.map +1 -0
  19. package/dist/{eve-runtime-DPzMPCLt.mjs → eve-runtime-DM9yjOsG.mjs} +158 -15
  20. package/dist/eve-runtime-DM9yjOsG.mjs.map +1 -0
  21. package/dist/eve-runtime.d.mts +5 -5
  22. package/dist/eve-runtime.mjs +4 -4
  23. package/dist/eve.d.mts +67 -69
  24. package/dist/eve.d.mts.map +1 -1
  25. package/dist/eve.mjs +67 -68
  26. package/dist/eve.mjs.map +1 -1
  27. package/dist/{index-CzzrtCVj.d.mts → index-DgCZi9Ns.d.mts} +23 -54
  28. package/dist/index-DgCZi9Ns.d.mts.map +1 -0
  29. package/dist/index.d.mts +2 -2
  30. package/dist/index.mjs +3 -3
  31. package/dist/{interrupts-BSDPwdJ2.d.mts → interrupts-MwQ_v_PF.d.mts} +1 -3
  32. package/dist/interrupts-MwQ_v_PF.d.mts.map +1 -0
  33. package/dist/rolldown-runtime-D8jQpDG7.mjs +12 -0
  34. package/dist/{src-BlhrSieS.mjs → src-Djn_FFj1.mjs} +21 -38
  35. package/dist/{src-BlhrSieS.mjs.map → src-Djn_FFj1.mjs.map} +1 -1
  36. package/dist/tanstack/interrupts.d.mts +1 -1
  37. package/dist/tanstack/interrupts.mjs +1 -2
  38. package/dist/tanstack.d.mts +3 -20
  39. package/dist/tanstack.d.mts.map +1 -1
  40. package/dist/tanstack.mjs +8 -13
  41. package/dist/tanstack.mjs.map +1 -1
  42. package/dist/{token-BLps09gm.mjs → token-HpJhSRkl.mjs} +6 -10
  43. package/dist/{token-BLps09gm.mjs.map → token-HpJhSRkl.mjs.map} +1 -1
  44. package/dist/{types-Bln8U42J.d.mts → types-8KtcPTao.d.mts} +3 -7
  45. package/dist/types-8KtcPTao.d.mts.map +1 -0
  46. package/dist/{types-C7O2lwwz.d.mts → types-C-BIKmas.d.mts} +2 -4
  47. package/dist/types-C-BIKmas.d.mts.map +1 -0
  48. package/dist/workflow.d.mts +2 -4
  49. package/dist/workflow.d.mts.map +1 -1
  50. package/dist/workflow.mjs +3 -4
  51. package/dist/{write-tools-w-8tjnDQ.mjs → write-tools-BR29EOoM.mjs} +51 -88
  52. package/dist/write-tools-BR29EOoM.mjs.map +1 -0
  53. package/package.json +1 -1
  54. package/dist/dry-run-DXckOam2.d.mts.map +0 -1
  55. package/dist/eve-runtime-B_CJE9JV.d.mts.map +0 -1
  56. package/dist/eve-runtime-DPzMPCLt.mjs.map +0 -1
  57. package/dist/index-CzzrtCVj.d.mts.map +0 -1
  58. package/dist/interrupts-BSDPwdJ2.d.mts.map +0 -1
  59. package/dist/types-Bln8U42J.d.mts.map +0 -1
  60. package/dist/types-C7O2lwwz.d.mts.map +0 -1
  61. package/dist/write-tools-w-8tjnDQ.mjs.map +0 -1
package/README.md CHANGED
@@ -32,9 +32,9 @@ They all reach the GitHub API, but none of them were built as an agent's tool la
32
32
  | Scripts, chat backends, or an existing AI SDK app | Quick Start below |
33
33
  | A TanStack AI app | [TanStack AI](#tanstack-ai) |
34
34
  | Production agents that must survive restarts and timeouts | [Durable Agents](#durable-agents-vercel-workflow-sdk) |
35
- | A GitHub, Slack, or Discord bot | [Chat SDK docs](https://github-tools.com/frameworks/chat-sdk) |
35
+ | A GitHub, Slack, or Discord bot | [Chat SDK docs](https://github-tools.com/integrations/chat-sdk) |
36
36
 
37
- 97 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
+ 97 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/reference/tools). Write operations support granular approval control out of the box.
38
38
 
39
39
  ## Installation
40
40
 
@@ -114,7 +114,7 @@ createGithubTools({ token, preset: ['code-review', 'issue-triage'] })
114
114
  | `pr-author` | `getRepository`, `getFileContent`, `getRepositoryTree`, `searchCode`, `listCommits`, `listBranches`, `getBranchRules`, `getCollaboratorPermission`, `createBranch`, `deleteBranch`, `createOrUpdateFile`, `editFiles`, `createPullRequest`, `updatePullRequest`, `updatePullRequestBranch`, `listPullRequests`, `getPullRequest`, `listPullRequestFiles`, `listPullRequestReviewThreads`, `replyToReviewComment`, `resolveReviewThread`, `compareCommits`, `getCommit` |
115
115
  | `maintainer` | All 97 tools |
116
116
 
117
- 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
+ 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/reference/tools).
118
118
 
119
119
  For an agent that handles open-ended requests, `createGithubAgent({ model, preset: 'auto' })` asks a fast evaluation model which tools the conversation's first request needs. It lists those and the core read tools for the whole conversation, and adds a `callGithubTool` tool the model can use to call any other GitHub tool without changing the tool list, so the provider's prompt cache holds. `evaluation: { selection: 'presets' }` routes each request to at most two presets instead and uses their system prompts. This needs `ai` 7.0.105 or later.
120
120
 
@@ -137,7 +137,7 @@ Each tool factory accepts a `token` string. Tools use named module-level step fu
137
137
 
138
138
  ## Approval Control
139
139
 
140
- Write operations (creating issues, merging PRs, pushing files, …) require user approval by default. This is designed for human-in-the-loop agent workflows. When the client sends the conversation back on each request, as with `useChat`, also pass `experimental_toolApprovalSecret` so a client can't forge an approval: see [Sign approvals](https://github-tools.com/guide/approval-control#sign-approvals).
140
+ Write operations (creating issues, merging PRs, pushing files, …) require user approval by default. This is designed for human-in-the-loop agent workflows. When the client sends the conversation back on each request, as with `useChat`, also pass `experimental_toolApprovalSecret` so a client can't forge an approval: see [Sign approvals](https://github-tools.com/approval#sign-approvals).
141
141
 
142
142
  ```ts
143
143
  // All writes need approval (default)
@@ -184,15 +184,15 @@ createGithubTools({
184
184
  })
185
185
  ```
186
186
 
187
- The checks run before any request reaches GitHub, and a blocked call fails with `github_tools.GUARDRAIL_BLOCKED` and a reason the model can act on. Even without `guardrails`, a call whose input contains what looks like a credential (a GitHub, npm, Slack, Stripe, Anthropic, OpenAI, Google or AWS key, or a private key) fails; set `guardrails: { secrets: 'allow' }` to turn that off. `createGithubAgent` denies a blocked write instead of asking for approval. Tools without a repository target (search, gists, notifications) aren't restricted. For tools built from individual factories, wrap the token with `withGithubGuardrails(token, guardrails)`. See [Guardrails](https://github-tools.com/guide/approval-control#guardrails).
187
+ The checks run before any request reaches GitHub, and a blocked call fails with `github_tools.GUARDRAIL_BLOCKED` and a reason the model can act on. Even without `guardrails`, a call whose input contains what looks like a credential (a GitHub, npm, Slack, Stripe, Anthropic, OpenAI, Google or AWS key, or a private key) fails; set `guardrails: { secrets: 'allow' }` to turn that off. `createGithubAgent` denies a blocked write instead of asking for approval. Tools without a repository target (search, gists, notifications) aren't restricted. For tools built from individual factories, wrap the token with `withGithubGuardrails(token, guardrails)`. See [Guardrails](https://github-tools.com/approval#guardrails).
188
188
 
189
189
  ### Shadow mode
190
190
 
191
- `dryRun: true` runs reads as usual, but no write reaches GitHub and nobody is asked to approve one. Each write goes through `guardrails`, then returns `{ dryRun: true, tool, input, approval, message }`, where `approval` says whether a person would have been asked. Use it to roll out a bot that runs on its own, test against real data, or compare models, before letting it write. It fits writes that stand on their own (labels, comments, reviews), not chains where a later step needs an earlier write's result. See [Shadow mode](https://github-tools.com/guide/approval-control#shadow-mode).
191
+ `dryRun: true` runs reads as usual, but no write reaches GitHub and nobody is asked to approve one. Each write goes through `guardrails`, then returns `{ dryRun: true, tool, input, approval, message }`, where `approval` says whether a person would have been asked. Use it to roll out a bot that runs on its own, test against real data, or compare models, before letting it write. It fits writes that stand on their own (labels, comments, reviews), not chains where a later step needs an earlier write's result. See [Shadow mode](https://github-tools.com/approval#shadow-mode).
192
192
 
193
193
  ### Text from GitHub
194
194
 
195
- Tool results drop HTML comments and invisible Unicode characters from issue, pull request, comment, review, release and discussion bodies, since a rendered page hides them but a model reads them. The default agent prompts tell the model to treat GitHub text as data and act only on what the user asked. See [Text from GitHub](https://github-tools.com/guide/approval-control#text-from-github).
195
+ Tool results drop HTML comments and invisible Unicode characters from issue, pull request, comment, review, release and discussion bodies, since a rendered page hides them but a model reads them. The default agent prompts tell the model to treat GitHub text as data and act only on what the user asked. See [Text from GitHub](https://github-tools.com/approval#text-from-github).
196
196
 
197
197
  ### Tool overrides
198
198
 
@@ -236,7 +236,7 @@ Classifiable failures become structured [evlog](https://evlog.dev) catalog error
236
236
 
237
237
  Codes: `TOKEN_REQUIRED`, `OIDC_TOKEN_EXPIRED`, `CONNECT_NOT_AUTHORIZED`, `CONNECT_USER_NOT_CONNECTED`, `CONNECT_INSTALLATION_REQUIRED`, `SUBJECT_CONTEXT_REQUIRED`, `UNAUTHORIZED` (401), `FORBIDDEN` (403), `RATE_LIMITED` (403/429), `NOT_FOUND` (404), `VALIDATION_FAILED` (422). Unmapped statuses pass through unchanged; the original Octokit error stays reachable as `cause`.
238
238
 
239
- In the eve extension, a failing tool returns `{ error: { code, message, why, fix, link } }` to the model. With `generateText`/`streamText`, the framework forwards `error.message` (self-sufficient by design); use evlog's `parseError(error)` when you need the full structure. The catalog is exported as `githubToolsErrors`. See the [errors guide](https://github-tools.com/guide/errors).
239
+ In the eve extension, a failing tool returns `{ error: { code, message, why, fix, link } }` to the model. With `generateText`/`streamText`, the framework forwards `error.message` (self-sufficient by design); use evlog's `parseError(error)` when you need the full structure. The catalog is exported as `githubToolsErrors`. See the [errors guide](https://github-tools.com/errors).
240
240
 
241
241
  ## Commit Attribution
242
242
 
@@ -403,7 +403,7 @@ const text = await agent.generate({ prompt: 'Summarize the open pull requests.'
403
403
 
404
404
  Set `GITHUB_TOKEN` and Gateway authentication on the server. `generate()` returns a string and throws on approval interrupts; `stream()` returns TanStack's native event stream. Auto modes use TanStack `decide()` with Gateway Jev and the same approval and routing thresholds as the AI SDK integration. Supply `evaluation.adapter` to use another evaluator. Auto-preset continuations skip routing and expose `repo-explorer` plus pending GitHub tools.
405
405
 
406
- `createGithubTools()` returns an array for TanStack `chat({ tools })`. Direct tools with auto approval also need `createGithubApprovalMiddleware({ tools })` and the shared `githubToolApproval` interrupt from `@github-tools/sdk/tanstack/interrupts`. Register that definition on the client to handle human review. See the [TanStack AI guide](https://github-tools.com/frameworks/tanstack-ai) for tools, streaming, and approval continuation.
406
+ `createGithubTools()` returns an array for TanStack `chat({ tools })`. Direct tools with auto approval also need `createGithubApprovalMiddleware({ tools })` and the shared `githubToolApproval` interrupt from `@github-tools/sdk/tanstack/interrupts`. Register that definition on the client to handle human review. See the [TanStack AI guide](https://github-tools.com/integrations/tanstack-ai) for tools, streaming, and approval continuation.
407
407
 
408
408
  ## eve
409
409
 
@@ -1,5 +1,5 @@
1
- import { c as AUTO_APPROVAL_TOOLS } from "./write-tools-w-8tjnDQ.mjs";
2
- //#region src/core/approval-policy.ts
1
+ import { c as AUTO_APPROVAL_TOOLS } from "./write-tools-BR29EOoM.mjs";
2
+ // src/core/approval-policy.ts
3
3
  const autoApprovalTools = new Set(AUTO_APPROVAL_TOOLS);
4
4
  /**
5
5
  * Resolve a write tool's approval mode from global or per-tool config.
@@ -11,7 +11,6 @@ function resolveApprovalMode(toolName, config) {
11
11
  if (typeof config === "boolean") return config;
12
12
  return config[toolName] ?? true;
13
13
  }
14
- //#endregion
15
14
  export { resolveApprovalMode as t };
16
15
 
17
- //# sourceMappingURL=approval-policy-CEMMPq92.mjs.map
16
+ //# sourceMappingURL=approval-policy-C2rcAY77.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"approval-policy-CEMMPq92.mjs","names":[],"sources":["../src/core/approval-policy.ts"],"sourcesContent":["import { AUTO_APPROVAL_TOOLS } from './evaluation-policy'\nimport type { GithubWriteToolName } from './write-tools'\n\n/**\n * Approval for a single write tool.\n *\n * - `true` — always ask the user\n * - `false` — never ask\n * - `'auto'` — ask only when an evaluation model (Jev by default) rates the call risky\n * or not asked for by the latest user message. AI SDK evaluation needs `ai` 7.0.105 or later.\n */\nexport type ToolApprovalMode = boolean | 'auto'\n\n/**\n * Whether write operations require user approval.\n *\n * - `true` — all write tools need approval (default)\n * - `false` — no approval needed for any write tool\n * - `'auto'` — low-risk write tools ({@link AUTO_APPROVAL_TOOLS}) are evaluated per call;\n * every other write tool needs approval\n * - object — per-tool {@link ToolApprovalMode} via {@link GithubWriteToolName}; unspecified write tools default to `true`\n *\n * @example Global disable\n * ```ts\n * createGithubTools({ token, requireApproval: false })\n * ```\n *\n * @example Auto approval for low-risk writes\n * ```ts\n * createGithubTools({ token, requireApproval: 'auto' })\n * ```\n *\n * @example Granular per write tool\n * ```ts\n * createGithubTools({\n * token,\n * requireApproval: {\n * mergePullRequest: true,\n * createOrUpdateFile: true,\n * addPullRequestComment: 'auto',\n * },\n * })\n * ```\n */\nexport type ApprovalConfig = ToolApprovalMode | Partial<Record<GithubWriteToolName, ToolApprovalMode>>\n\n/** {@link ApprovalConfig} without `'auto'`, for runtimes that cannot run the evaluation model. */\nexport type StaticApprovalConfig = boolean | Partial<Record<GithubWriteToolName, boolean>>\n\nconst autoApprovalTools: ReadonlySet<string> = new Set(AUTO_APPROVAL_TOOLS)\n\n/**\n * Resolve a write tool's approval mode from global or per-tool config.\n *\n * @returns `'auto'` only for tools that opt into evaluation; defaults to `true` for unspecified tools in object mode.\n */\nexport function resolveApprovalMode(toolName: GithubWriteToolName, config: ApprovalConfig): ToolApprovalMode {\n if (config === 'auto') return autoApprovalTools.has(toolName) ? 'auto' : true\n if (typeof config === 'boolean') return config\n return config[toolName] ?? true\n}\n"],"mappings":";;AAiDA,MAAM,oBAAyC,IAAI,IAAI,mBAAmB;;;;;;AAO1E,SAAgB,oBAAoB,UAA+B,QAA0C;CAC3G,IAAI,WAAW,QAAQ,OAAO,kBAAkB,IAAI,QAAQ,IAAI,SAAS;CACzE,IAAI,OAAO,WAAW,WAAW,OAAO;CACxC,OAAO,OAAO,aAAa;AAC7B"}
1
+ {"version":3,"file":"approval-policy-C2rcAY77.mjs","names":[],"sources":["../src/core/approval-policy.ts"],"sourcesContent":["import { AUTO_APPROVAL_TOOLS } from './evaluation-policy'\nimport type { GithubWriteToolName } from './write-tools'\n\n/**\n * Approval for a single write tool.\n *\n * - `true` — always ask the user\n * - `false` — never ask\n * - `'auto'` — ask only when an evaluation model (Jev by default) rates the call risky\n * or not asked for by the latest user message. AI SDK evaluation needs `ai` 7.0.105 or later.\n */\nexport type ToolApprovalMode = boolean | 'auto'\n\n/**\n * Whether write operations require user approval.\n *\n * - `true` — all write tools need approval (default)\n * - `false` — no approval needed for any write tool\n * - `'auto'` — low-risk write tools ({@link AUTO_APPROVAL_TOOLS}) are evaluated per call;\n * every other write tool needs approval\n * - object — per-tool {@link ToolApprovalMode} via {@link GithubWriteToolName}; unspecified write tools default to `true`\n *\n * @example Global disable\n * ```ts\n * createGithubTools({ token, requireApproval: false })\n * ```\n *\n * @example Auto approval for low-risk writes\n * ```ts\n * createGithubTools({ token, requireApproval: 'auto' })\n * ```\n *\n * @example Granular per write tool\n * ```ts\n * createGithubTools({\n * token,\n * requireApproval: {\n * mergePullRequest: true,\n * createOrUpdateFile: true,\n * addPullRequestComment: 'auto',\n * },\n * })\n * ```\n */\nexport type ApprovalConfig = ToolApprovalMode | Partial<Record<GithubWriteToolName, ToolApprovalMode>>\n\n/** {@link ApprovalConfig} without `'auto'`, for runtimes that cannot run the evaluation model. */\nexport type StaticApprovalConfig = boolean | Partial<Record<GithubWriteToolName, boolean>>\n\nconst autoApprovalTools: ReadonlySet<string> = new Set(AUTO_APPROVAL_TOOLS)\n\n/**\n * Resolve a write tool's approval mode from global or per-tool config.\n *\n * @returns `'auto'` only for tools that opt into evaluation; defaults to `true` for unspecified tools in object mode.\n */\nexport function resolveApprovalMode(toolName: GithubWriteToolName, config: ApprovalConfig): ToolApprovalMode {\n if (config === 'auto') return autoApprovalTools.has(toolName) ? 'auto' : true\n if (typeof config === 'boolean') return config\n return config[toolName] ?? true\n}\n"],"mappings":";;AAiDA,MAAM,oBAAyC,IAAI,IAAI,mBAAmB;;;;;;AAO1E,SAAgB,oBAAoB,UAA+B,QAA0C;CAC3G,IAAI,WAAW,QAAQ,OAAO,kBAAkB,IAAI,QAAQ,IAAI,SAAS;CACzE,IAAI,OAAO,WAAW,WAAW,OAAO;CACxC,OAAO,OAAO,aAAa;AAC7B"}
@@ -1,5 +1,4 @@
1
- import { s as GithubConnectorInput, t as ConnectGithubEveToolsOptions } from "../types-Bln8U42J.mjs";
2
- //#region src/connect/eve.d.ts
1
+ import { s as GithubConnectorInput, t as ConnectGithubEveToolsOptions } from "../types-8KtcPTao.mjs";
3
2
  /**
4
3
  * Register eve GitHub tools backed by a Vercel Connect connector.
5
4
  * Scopes are derived from `preset`, or from the resolved `include`/`exclude`
@@ -13,7 +12,7 @@ import { s as GithubConnectorInput, t as ConnectGithubEveToolsOptions } from "..
13
12
  * import is also **not durable** under multi-turn eve Workflow replay (`defineTool` inside
14
13
  * `node_modules` is not hoisted); mount `@github-tools/eve-extension` instead
15
14
  * (see https://github.com/vercel-labs/github-tools/issues/51 and
16
- * https://github-tools.com/frameworks/eve-extension).
15
+ * https://github-tools.com/integrations/eve).
17
16
  *
18
17
  * Shared runtime helpers used by the extension are on `@github-tools/sdk/eve-runtime`
19
18
  * (not deprecated).
@@ -24,5 +23,4 @@ import { s as GithubConnectorInput, t as ConnectGithubEveToolsOptions } from "..
24
23
  * eve extension (pre-built) so that workaround is unnecessary.
25
24
  */
26
25
  export declare function connectGithubTools(connector: GithubConnectorInput, options?: ConnectGithubEveToolsOptions): import("eve/tools").DynamicSentinel<import("eve/tools").DynamicToolResult, import("eve/tools").DynamicContext>;
27
- //#endregion
28
26
  //# sourceMappingURL=eve.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"eve.d.mts","names":[],"sources":["../../src/connect/eve.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;wBA4BgB,mBACd,WAAW,sBACX,UAAS,mDAAiC,oCAAA,uCAAA"}
1
+ {"version":3,"file":"eve.d.mts","names":[],"sources":["../../src/connect/eve.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;wBA4BgB,mBACd,WAAW,sBACX,UAAS,mDAAiC,oCAAA,uCAAA"}
@@ -1,6 +1,6 @@
1
1
  import { createGithubTools } from "../eve.mjs";
2
- import { t as connectGithubToken } from "../token-BLps09gm.mjs";
3
- //#region src/connect/eve.ts
2
+ import { t as connectGithubToken } from "../token-HpJhSRkl.mjs";
3
+ // src/connect/eve.ts
4
4
  /**
5
5
  * Register eve GitHub tools backed by a Vercel Connect connector.
6
6
  * Scopes are derived from `preset`, or from the resolved `include`/`exclude`
@@ -14,7 +14,7 @@ import { t as connectGithubToken } from "../token-BLps09gm.mjs";
14
14
  * import is also **not durable** under multi-turn eve Workflow replay (`defineTool` inside
15
15
  * `node_modules` is not hoisted); mount `@github-tools/eve-extension` instead
16
16
  * (see https://github.com/vercel-labs/github-tools/issues/51 and
17
- * https://github-tools.com/frameworks/eve-extension).
17
+ * https://github-tools.com/integrations/eve).
18
18
  *
19
19
  * Shared runtime helpers used by the extension are on `@github-tools/sdk/eve-runtime`
20
20
  * (not deprecated).
@@ -39,7 +39,6 @@ function connectGithubTools(connector, options = {}) {
39
39
  })
40
40
  });
41
41
  }
42
- //#endregion
43
42
  export { connectGithubTools };
44
43
 
45
44
  //# sourceMappingURL=eve.mjs.map
@@ -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`, 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"}
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/integrations/eve).\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"}
@@ -1,8 +1,7 @@
1
- import { a as GithubConnectParamsInput, c as resolveGithubConnector, i as GithubConnectParams, n as ConnectGithubTokenOptions, o as GithubConnectParamsResolver, r as ConnectGithubToolsOptions, s as GithubConnectorInput, t as ConnectGithubEveToolsOptions } from "./types-Bln8U42J.mjs";
2
- import { M as GithubTokenCall, N as GithubTokenInput, W as GithubToolName, r as AllGithubTools, z as GithubToolPreset } from "./dry-run-DXckOam2.mjs";
3
- import "./eve-runtime-B_CJE9JV.mjs";
1
+ import { a as GithubConnectParamsInput, c as resolveGithubConnector, i as GithubConnectParams, n as ConnectGithubTokenOptions, o as GithubConnectParamsResolver, r as ConnectGithubToolsOptions, s as GithubConnectorInput, t as ConnectGithubEveToolsOptions } from "./types-8KtcPTao.mjs";
2
+ import { B as GithubToolPreset, G as GithubToolName, M as GithubTokenCall, N as GithubTokenInput, r as AllGithubTools } from "./dry-run-BAbes7Mv.mjs";
3
+ import "./eve-runtime-Bmdw1C-K.mjs";
4
4
  import { ConnectTokenSubject } from "@vercel/connect";
5
- //#region src/connect/scopes.d.ts
6
5
  /**
7
6
  * Per-tool Connect scopes, derived from `GITHUB_TOOL_CATALOG`. Empty arrays are
8
7
  * intentional for gist and notification tools (installation tokens cannot
@@ -57,8 +56,6 @@ type ConnectScopeSelection = {
57
56
  * so a hand-picked `include` list does not mint the full admin surface.
58
57
  */
59
58
  export declare function connectGithubScopesForSelection(selection?: ConnectScopeSelection): string[];
60
- //#endregion
61
- //#region src/connect/token.d.ts
62
59
  /**
63
60
  * Returns a lazy GitHub token provider backed by a Vercel Connect connector.
64
61
  * Scopes are derived from `preset`, or from the resolved `include`/`exclude`
@@ -77,8 +74,6 @@ export declare function connectGithubScopesForSelection(selection?: ConnectScope
77
74
  * same repository reuse one token.
78
75
  */
79
76
  export declare function connectGithubToken(connector: GithubConnectorInput, options?: ConnectGithubTokenOptions): GithubTokenInput;
80
- //#endregion
81
- //#region src/connect/tools.d.ts
82
77
  /**
83
78
  * Create GitHub tools backed by a Vercel Connect connector.
84
79
  * Scopes are derived from `preset` unless overridden in `connect.scopes`.
@@ -87,6 +82,5 @@ export declare function connectGithubToken(connector: GithubConnectorInput, opti
87
82
  * different connector per environment (production vs. preview) or tenant.
88
83
  */
89
84
  export declare function connectGithubTools(connector: GithubConnectorInput, options?: ConnectGithubToolsOptions): AllGithubTools | Pick<AllGithubTools, "getRepository" | "listBranches" | "getFileContent" | "getRepositoryTree" | "createBranch" | "deleteBranch" | "forkRepository" | "createRepository" | "createOrUpdateFile" | "getBranchRules" | "getCollaboratorPermission" | "editFiles" | "listPullRequests" | "getPullRequest" | "createPullRequest" | "mergePullRequest" | "enablePullRequestAutoMerge" | "disablePullRequestAutoMerge" | "updatePullRequest" | "updatePullRequestBranch" | "addPullRequestComment" | "updatePullRequestComment" | "deletePullRequestComment" | "listPullRequestFiles" | "listPullRequestReviews" | "createPullRequestReview" | "listPullRequestReviewThreads" | "replyToReviewComment" | "resolveReviewThread" | "requestReviewers" | "getPullRequestContext" | "getIssueContext" | "listIssues" | "getIssue" | "listIssueComments" | "createIssue" | "addIssueComment" | "updateIssueComment" | "deleteIssueComment" | "closeIssue" | "updateIssue" | "listLabels" | "addLabels" | "removeLabel" | "createLabel" | "updateLabel" | "deleteLabel" | "addAssignees" | "removeAssignees" | "listMilestones" | "listSubIssues" | "addSubIssue" | "listIssueReactions" | "addIssueReaction" | "listCommentReactions" | "addCommentReaction" | "listDiscussions" | "getDiscussion" | "addDiscussionComment" | "listNotifications" | "markNotificationRead" | "searchCode" | "searchRepositories" | "searchIssues" | "listCommits" | "getCommit" | "getBlame" | "compareCommits" | "listGists" | "getGist" | "listGistComments" | "createGist" | "updateGist" | "deleteGist" | "createGistComment" | "listWorkflows" | "listWorkflowRuns" | "getWorkflowRun" | "listWorkflowJobs" | "getWorkflowJobLogs" | "triggerWorkflow" | "cancelWorkflowRun" | "rerunWorkflowRun" | "listCheckRuns" | "getCombinedStatus" | "createCommitStatus" | "getCiFailureContext" | "listReleases" | "getLatestRelease" | "getRelease" | "getReleaseContext" | "createRelease" | "updateRelease" | "deleteRelease" | "listCodeScanningAlerts" | "listDependabotAlerts" | "listSecretScanningAlerts">;
90
- //#endregion
91
85
  export { type ConnectGithubEveToolsOptions, type ConnectGithubTokenOptions, type ConnectGithubToolsOptions, type ConnectScopeSelection, type ConnectTokenSubject, type GithubConnectParams, type GithubConnectParamsInput, type GithubConnectParamsResolver, type GithubConnectorInput, type GithubTokenCall, resolveGithubConnector };
92
86
  //# sourceMappingURL=connect.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"connect.d.mts","names":[],"sources":["../src/connect/scopes.ts","../src/connect/token.ts","../src/connect/tools.ts"],"mappings":";;;;;;;;;;qBAgCa,qBAAmB;;;;;;;;;;;;;;;;;;;;;;;;qBAmCnB,uBAAqB;;;;;wBAelB,6BACd,SAAS,mBAAmB;;;;;wBAcd,4BAA4B,gBAAgB;KAUhD;EACV,SAAS,mBAAmB;EAC5B,mBAAmB;EACnB,mBAAmB;;;;;;;;;;wBA6BL,gCAAgC,YAAW;;;;;;;;;;;;;;;;;;;;wBC5G3C,mBACd,WAAW,sBACX,UAAS,4BACR;;;;;;;;;;wBCtBa,mBACd,WAAW,sBACX,UAAS,4BAAA,iBAA8B,KAAA"}
1
+ {"version":3,"file":"connect.d.mts","names":["_$___eve_runtime0.AllGithubTools"],"sources":["../src/connect/scopes.ts","../src/connect/token.ts","../src/connect/tools.ts"],"mappings":";;;;;;;;;qBAgCa,qBAAmB;;;;;;;;;;;;;;;;;;;;;;;;qBAmCnB,uBAAqB;;;;;wBAelB,6BACd,SAAS,mBAAmB;;;;;wBAcd,4BAA4B,gBAAgB;KAUhD;EACV,SAAS,mBAAmB;EAC5B,mBAAmB;EACnB,mBAAmB;;;;;;;;;;wBA6BL,gCAAgC,YAAW;;;;;;;;;;;;;;;;;;wBC5G3C,mBACd,WAAW,sBACX,UAAS,4BACR;;;;;;;;wBCtBa,mBACd,WAAW,sBACX,UAAS,4BAAAA,iBAA8B,KAAAA"}
package/dist/connect.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { t as createGithubTools } from "./src-BlhrSieS.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-BLps09gm.mjs";
3
- //#region src/connect/tools.ts
1
+ 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-HpJhSRkl.mjs";
2
+ import { t as createGithubTools } from "./src-Djn_FFj1.mjs";
3
+ // src/connect/tools.ts
4
4
  /**
5
5
  * Create GitHub tools backed by a Vercel Connect connector.
6
6
  * Scopes are derived from `preset` unless overridden in `connect.scopes`.
@@ -19,7 +19,6 @@ function connectGithubTools(connector, options = {}) {
19
19
  })
20
20
  });
21
21
  }
22
- //#endregion
23
22
  export { PRESET_CONNECT_SCOPES, TOOL_CONNECT_SCOPES, connectGithubScopesForPreset, connectGithubScopesForSelection, connectGithubScopesForTools, connectGithubToken, connectGithubTools, resolveGithubConnector };
24
23
 
25
24
  //# sourceMappingURL=connect.mjs.map
@@ -1,5 +1,5 @@
1
- import { A as listDependabotAlertsCore, An as getReleaseCore, Ar as updatePullRequestBranchCore, At as addDiscussionCommentCore, Ba as getRepositoryCore, Bi as updateIssueCore, Br as addAssigneesCore, D as listCodeScanningAlertsCore, Dn as getLatestReleaseCore, Dr as resolveReviewThreadCore, Dt as updateGistCore, G as addCommentReactionCore, Gn as createPullRequestReviewCore, Gt as getPullRequestContextCore, H as searchRepositoriesCore, Hn as createPullRequestCore, Ht as getIssueContextCore, I as searchCodeCore, In as updateReleaseCore, Ir as updatePullRequestCore, It as listDiscussionsCore, J as addIssueReactionCore, Jn as deletePullRequestCommentCore, Jt as getReleaseContextCore, Ka as listBranchesCore, Ki as compareCommitsCore, Kr as addLabelsCore, La as getFileContentCore, Li as updateIssueCommentCore, N as listSecretScanningAlertsCore, Nn as listReleasesCore, Nr as updatePullRequestCommentCore, Nt as getDiscussionCore, Oa as forkRepositoryCore, Oi as listSubIssuesCore, Pa as getCollaboratorPermissionCore, Pi as removeLabelCore, Qi as getCommitCore, Qr as closeIssueCore, Sa as deleteBranchCore, Si as listLabelsCore, Ta as editFilesCore, Ti as listMilestonesCore, Ua as getRepositoryTreeCore, Ui as updateLabelCore, Ur as addIssueCommentCore, Yi as getBlameCore, Yr as addSubIssueCore, Z as listCommentReactionsCore, Zn as disablePullRequestAutoMergeCore, Zt as cancelWorkflowRunCore, en as getWorkflowJobLogsCore, er as enablePullRequestAutoMergeCore, et as listIssueReactionsCore, fn as listWorkflowsCore, fr as listPullRequestReviewsCore, ft as createGistCore, ga as createOrUpdateFileCore, gi as listIssueCommentsCore, hn as rerunWorkflowRunCore, hr as listPullRequestsCore, ht as deleteGistCore, ia as createCommitStatusCore, ii as createLabelCore, ja as getBranchRulesCore, ji as removeAssigneesCore, ln as listWorkflowRunsCore, lr as listPullRequestReviewThreadsCore, lt as createGistCommentCore, on as listWorkflowJobsCore, or as listPullRequestFilesCore, ot as markNotificationReadCore, pa as createBranchCore, pi as getIssueCore, rn as getWorkflowRunCore, rr as getPullRequestCore, rt as listNotificationsCore, sa as getCombinedStatusCore, si as deleteIssueCommentCore, ta as listCommitsCore, ti as createIssueCore, ua as listCheckRunsCore, ui as deleteLabelCore, vn as triggerWorkflowCore, vr as mergePullRequestCore, vt as getGistCore, wn as deleteReleaseCore, wr as requestReviewersCore, wt as listGistsCore, xn as createReleaseCore, xr as replyToReviewCommentCore, xt as listGistCommentsCore, ya as createRepositoryCore, yi as listIssuesCore, z as searchIssuesCore, zn as addPullRequestCommentCore, zt as getCiFailureContextCore } from "./write-tools-w-8tjnDQ.mjs";
2
- //#region src/core/cores.ts
1
+ import { A as listDependabotAlertsCore, An as getReleaseCore, Ar as updatePullRequestBranchCore, At as addDiscussionCommentCore, Ba as getRepositoryCore, Bi as updateIssueCore, Br as addAssigneesCore, D as listCodeScanningAlertsCore, Dn as getLatestReleaseCore, Dr as resolveReviewThreadCore, Dt as updateGistCore, G as addCommentReactionCore, Gn as createPullRequestReviewCore, Gt as getPullRequestContextCore, H as searchRepositoriesCore, Hn as createPullRequestCore, Ht as getIssueContextCore, I as searchCodeCore, In as updateReleaseCore, Ir as updatePullRequestCore, It as listDiscussionsCore, J as addIssueReactionCore, Jn as deletePullRequestCommentCore, Jt as getReleaseContextCore, Ka as listBranchesCore, Ki as compareCommitsCore, Kr as addLabelsCore, La as getFileContentCore, Li as updateIssueCommentCore, N as listSecretScanningAlertsCore, Nn as listReleasesCore, Nr as updatePullRequestCommentCore, Nt as getDiscussionCore, Oa as forkRepositoryCore, Oi as listSubIssuesCore, Pa as getCollaboratorPermissionCore, Pi as removeLabelCore, Qi as getCommitCore, Qr as closeIssueCore, Sa as deleteBranchCore, Si as listLabelsCore, Ta as editFilesCore, Ti as listMilestonesCore, Ua as getRepositoryTreeCore, Ui as updateLabelCore, Ur as addIssueCommentCore, Yi as getBlameCore, Yr as addSubIssueCore, Z as listCommentReactionsCore, Zn as disablePullRequestAutoMergeCore, Zt as cancelWorkflowRunCore, en as getWorkflowJobLogsCore, er as enablePullRequestAutoMergeCore, et as listIssueReactionsCore, fn as listWorkflowsCore, fr as listPullRequestReviewsCore, ft as createGistCore, ga as createOrUpdateFileCore, gi as listIssueCommentsCore, hn as rerunWorkflowRunCore, hr as listPullRequestsCore, ht as deleteGistCore, ia as createCommitStatusCore, ii as createLabelCore, ja as getBranchRulesCore, ji as removeAssigneesCore, ln as listWorkflowRunsCore, lr as listPullRequestReviewThreadsCore, lt as createGistCommentCore, on as listWorkflowJobsCore, or as listPullRequestFilesCore, ot as markNotificationReadCore, pa as createBranchCore, pi as getIssueCore, rn as getWorkflowRunCore, rr as getPullRequestCore, rt as listNotificationsCore, sa as getCombinedStatusCore, si as deleteIssueCommentCore, ta as listCommitsCore, ti as createIssueCore, ua as listCheckRunsCore, ui as deleteLabelCore, vn as triggerWorkflowCore, vr as mergePullRequestCore, vt as getGistCore, wn as deleteReleaseCore, wr as requestReviewersCore, wt as listGistsCore, xn as createReleaseCore, xr as replyToReviewCommentCore, xt as listGistCommentsCore, ya as createRepositoryCore, yi as listIssuesCore, z as searchIssuesCore, zn as addPullRequestCommentCore, zt as getCiFailureContextCore } from "./write-tools-BR29EOoM.mjs";
2
+ // src/core/cores.ts
3
3
  /**
4
4
  * The `*Core` implementation of every tool, keyed by tool name.
5
5
  *
@@ -302,7 +302,6 @@ const GITHUB_TOOL_CORES = {
302
302
  return listSecretScanningAlertsCore;
303
303
  }
304
304
  };
305
- //#endregion
306
305
  export { GITHUB_TOOL_CORES as t };
307
306
 
308
- //# sourceMappingURL=cores-meFAMt2D.mjs.map
307
+ //# sourceMappingURL=cores-CMUr_SEv.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"cores-meFAMt2D.mjs","names":["repository.getRepositoryCore","repository.listBranchesCore","repository.getFileContentCore","repository.getRepositoryTreeCore","repository.createBranchCore","repository.deleteBranchCore","repository.forkRepositoryCore","repository.createRepositoryCore","repository.createOrUpdateFileCore","repository.editFilesCore","repository.getBranchRulesCore","repository.getCollaboratorPermissionCore","pullRequests.listPullRequestsCore","pullRequests.getPullRequestCore","pullRequests.createPullRequestCore","pullRequests.mergePullRequestCore","pullRequests.enablePullRequestAutoMergeCore","pullRequests.disablePullRequestAutoMergeCore","pullRequests.updatePullRequestCore","pullRequests.updatePullRequestBranchCore","pullRequests.addPullRequestCommentCore","pullRequests.updatePullRequestCommentCore","pullRequests.deletePullRequestCommentCore","pullRequests.listPullRequestFilesCore","pullRequests.listPullRequestReviewsCore","pullRequests.createPullRequestReviewCore","pullRequests.listPullRequestReviewThreadsCore","pullRequests.replyToReviewCommentCore","pullRequests.resolveReviewThreadCore","pullRequests.requestReviewersCore","bundles.getPullRequestContextCore","bundles.getIssueContextCore","issues.listIssuesCore","issues.getIssueCore","issues.listIssueCommentsCore","issues.createIssueCore","issues.addIssueCommentCore","issues.updateIssueCommentCore","issues.deleteIssueCommentCore","issues.closeIssueCore","issues.updateIssueCore","issues.listLabelsCore","issues.addLabelsCore","issues.removeLabelCore","issues.createLabelCore","issues.updateLabelCore","issues.deleteLabelCore","issues.addAssigneesCore","issues.removeAssigneesCore","issues.listMilestonesCore","issues.listSubIssuesCore","issues.addSubIssueCore","reactions.listIssueReactionsCore","reactions.addIssueReactionCore","reactions.listCommentReactionsCore","reactions.addCommentReactionCore","discussions.listDiscussionsCore","discussions.getDiscussionCore","discussions.addDiscussionCommentCore","notifications.listNotificationsCore","notifications.markNotificationReadCore","search.searchCodeCore","search.searchRepositoriesCore","search.searchIssuesCore","commits.listCommitsCore","commits.getCommitCore","commits.getBlameCore","commits.compareCommitsCore","gists.listGistsCore","gists.getGistCore","gists.listGistCommentsCore","gists.createGistCore","gists.updateGistCore","gists.deleteGistCore","gists.createGistCommentCore","workflows.listWorkflowsCore","workflows.listWorkflowRunsCore","workflows.getWorkflowRunCore","workflows.listWorkflowJobsCore","workflows.getWorkflowJobLogsCore","workflows.triggerWorkflowCore","workflows.cancelWorkflowRunCore","workflows.rerunWorkflowRunCore","checks.listCheckRunsCore","checks.getCombinedStatusCore","checks.createCommitStatusCore","bundles.getCiFailureContextCore","releases.listReleasesCore","releases.getLatestReleaseCore","releases.getReleaseCore","bundles.getReleaseContextCore","releases.createReleaseCore","releases.updateReleaseCore","releases.deleteReleaseCore","security.listCodeScanningAlertsCore","security.listDependabotAlertsCore","security.listSecretScanningAlertsCore"],"sources":["../src/core/cores.ts"],"sourcesContent":["import * as bundles from './bundles'\nimport * as checks from './checks'\nimport * as commits from './commits'\nimport * as discussions from './discussions'\nimport * as gists from './gists'\nimport * as issues from './issues'\nimport * as notifications from './notifications'\nimport * as pullRequests from './pull-requests'\nimport * as reactions from './reactions'\nimport * as releases from './releases'\nimport * as security from './security'\nimport * as repository from './repository'\nimport * as search from './search'\nimport * as workflows from './workflows'\nimport type { GithubToolName } from './catalog'\n\n/**\n * The `*Core` implementation of every tool, keyed by tool name.\n *\n * Kept apart from `GITHUB_TOOL_CATALOG` so that importing tool metadata does\n * not pull Octokit into a Vercel Workflow flow bundle, which cannot load\n * Node.js built-ins. Argument types vary per tool, so callers cast at the\n * dispatch boundary. Entries are getters so the ESM binding stays live\n * (module spies in tests).\n */\nexport const GITHUB_TOOL_CORES = {\n get getRepository() { return repository.getRepositoryCore },\n get listBranches() { return repository.listBranchesCore },\n get getFileContent() { return repository.getFileContentCore },\n get getRepositoryTree() { return repository.getRepositoryTreeCore },\n get createBranch() { return repository.createBranchCore },\n get deleteBranch() { return repository.deleteBranchCore },\n get forkRepository() { return repository.forkRepositoryCore },\n get createRepository() { return repository.createRepositoryCore },\n get createOrUpdateFile() { return repository.createOrUpdateFileCore },\n get editFiles() { return repository.editFilesCore },\n get getBranchRules() { return repository.getBranchRulesCore },\n get getCollaboratorPermission() { return repository.getCollaboratorPermissionCore },\n get listPullRequests() { return pullRequests.listPullRequestsCore },\n get getPullRequest() { return pullRequests.getPullRequestCore },\n get createPullRequest() { return pullRequests.createPullRequestCore },\n get mergePullRequest() { return pullRequests.mergePullRequestCore },\n get enablePullRequestAutoMerge() { return pullRequests.enablePullRequestAutoMergeCore },\n get disablePullRequestAutoMerge() { return pullRequests.disablePullRequestAutoMergeCore },\n get updatePullRequest() { return pullRequests.updatePullRequestCore },\n get updatePullRequestBranch() { return pullRequests.updatePullRequestBranchCore },\n get addPullRequestComment() { return pullRequests.addPullRequestCommentCore },\n get updatePullRequestComment() { return pullRequests.updatePullRequestCommentCore },\n get deletePullRequestComment() { return pullRequests.deletePullRequestCommentCore },\n get listPullRequestFiles() { return pullRequests.listPullRequestFilesCore },\n get listPullRequestReviews() { return pullRequests.listPullRequestReviewsCore },\n get createPullRequestReview() { return pullRequests.createPullRequestReviewCore },\n get listPullRequestReviewThreads() { return pullRequests.listPullRequestReviewThreadsCore },\n get replyToReviewComment() { return pullRequests.replyToReviewCommentCore },\n get resolveReviewThread() { return pullRequests.resolveReviewThreadCore },\n get requestReviewers() { return pullRequests.requestReviewersCore },\n get getPullRequestContext() { return bundles.getPullRequestContextCore },\n get getIssueContext() { return bundles.getIssueContextCore },\n get listIssues() { return issues.listIssuesCore },\n get getIssue() { return issues.getIssueCore },\n get listIssueComments() { return issues.listIssueCommentsCore },\n get createIssue() { return issues.createIssueCore },\n get addIssueComment() { return issues.addIssueCommentCore },\n get updateIssueComment() { return issues.updateIssueCommentCore },\n get deleteIssueComment() { return issues.deleteIssueCommentCore },\n get closeIssue() { return issues.closeIssueCore },\n get updateIssue() { return issues.updateIssueCore },\n get listLabels() { return issues.listLabelsCore },\n get addLabels() { return issues.addLabelsCore },\n get removeLabel() { return issues.removeLabelCore },\n get createLabel() { return issues.createLabelCore },\n get updateLabel() { return issues.updateLabelCore },\n get deleteLabel() { return issues.deleteLabelCore },\n get addAssignees() { return issues.addAssigneesCore },\n get removeAssignees() { return issues.removeAssigneesCore },\n get listMilestones() { return issues.listMilestonesCore },\n get listSubIssues() { return issues.listSubIssuesCore },\n get addSubIssue() { return issues.addSubIssueCore },\n get listIssueReactions() { return reactions.listIssueReactionsCore },\n get addIssueReaction() { return reactions.addIssueReactionCore },\n get listCommentReactions() { return reactions.listCommentReactionsCore },\n get addCommentReaction() { return reactions.addCommentReactionCore },\n get listDiscussions() { return discussions.listDiscussionsCore },\n get getDiscussion() { return discussions.getDiscussionCore },\n get addDiscussionComment() { return discussions.addDiscussionCommentCore },\n get listNotifications() { return notifications.listNotificationsCore },\n get markNotificationRead() { return notifications.markNotificationReadCore },\n get searchCode() { return search.searchCodeCore },\n get searchRepositories() { return search.searchRepositoriesCore },\n get searchIssues() { return search.searchIssuesCore },\n get listCommits() { return commits.listCommitsCore },\n get getCommit() { return commits.getCommitCore },\n get getBlame() { return commits.getBlameCore },\n get compareCommits() { return commits.compareCommitsCore },\n get listGists() { return gists.listGistsCore },\n get getGist() { return gists.getGistCore },\n get listGistComments() { return gists.listGistCommentsCore },\n get createGist() { return gists.createGistCore },\n get updateGist() { return gists.updateGistCore },\n get deleteGist() { return gists.deleteGistCore },\n get createGistComment() { return gists.createGistCommentCore },\n get listWorkflows() { return workflows.listWorkflowsCore },\n get listWorkflowRuns() { return workflows.listWorkflowRunsCore },\n get getWorkflowRun() { return workflows.getWorkflowRunCore },\n get listWorkflowJobs() { return workflows.listWorkflowJobsCore },\n get getWorkflowJobLogs() { return workflows.getWorkflowJobLogsCore },\n get triggerWorkflow() { return workflows.triggerWorkflowCore },\n get cancelWorkflowRun() { return workflows.cancelWorkflowRunCore },\n get rerunWorkflowRun() { return workflows.rerunWorkflowRunCore },\n get listCheckRuns() { return checks.listCheckRunsCore },\n get getCombinedStatus() { return checks.getCombinedStatusCore },\n get createCommitStatus() { return checks.createCommitStatusCore },\n get getCiFailureContext() { return bundles.getCiFailureContextCore },\n get listReleases() { return releases.listReleasesCore },\n get getLatestRelease() { return releases.getLatestReleaseCore },\n get getRelease() { return releases.getReleaseCore },\n get getReleaseContext() { return bundles.getReleaseContextCore },\n get createRelease() { return releases.createReleaseCore },\n get updateRelease() { return releases.updateReleaseCore },\n get deleteRelease() { return releases.deleteReleaseCore },\n get listCodeScanningAlerts() { return security.listCodeScanningAlertsCore },\n get listDependabotAlerts() { return security.listDependabotAlertsCore },\n get listSecretScanningAlerts() { return security.listSecretScanningAlertsCore },\n} satisfies Record<GithubToolName, (args: never) => Promise<unknown>>\n"],"mappings":";;;;;;;;;;;AAyBA,MAAa,oBAAoB;CAC/B,IAAI,gBAAgB;EAAE,OAAOA;CAA6B;CAC1D,IAAI,eAAe;EAAE,OAAOC;CAA4B;CACxD,IAAI,iBAAiB;EAAE,OAAOC;CAA8B;CAC5D,IAAI,oBAAoB;EAAE,OAAOC;CAAiC;CAClE,IAAI,eAAe;EAAE,OAAOC;CAA4B;CACxD,IAAI,eAAe;EAAE,OAAOC;CAA4B;CACxD,IAAI,iBAAiB;EAAE,OAAOC;CAA8B;CAC5D,IAAI,mBAAmB;EAAE,OAAOC;CAAgC;CAChE,IAAI,qBAAqB;EAAE,OAAOC;CAAkC;CACpE,IAAI,YAAY;EAAE,OAAOC;CAAyB;CAClD,IAAI,iBAAiB;EAAE,OAAOC;CAA8B;CAC5D,IAAI,4BAA4B;EAAE,OAAOC;CAAyC;CAClF,IAAI,mBAAmB;EAAE,OAAOC;CAAkC;CAClE,IAAI,iBAAiB;EAAE,OAAOC;CAAgC;CAC9D,IAAI,oBAAoB;EAAE,OAAOC;CAAmC;CACpE,IAAI,mBAAmB;EAAE,OAAOC;CAAkC;CAClE,IAAI,6BAA6B;EAAE,OAAOC;CAA4C;CACtF,IAAI,8BAA8B;EAAE,OAAOC;CAA6C;CACxF,IAAI,oBAAoB;EAAE,OAAOC;CAAmC;CACpE,IAAI,0BAA0B;EAAE,OAAOC;CAAyC;CAChF,IAAI,wBAAwB;EAAE,OAAOC;CAAuC;CAC5E,IAAI,2BAA2B;EAAE,OAAOC;CAA0C;CAClF,IAAI,2BAA2B;EAAE,OAAOC;CAA0C;CAClF,IAAI,uBAAuB;EAAE,OAAOC;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,OAAOC;CAA6B;CAC9D,IAAI,qBAAqB;EAAE,OAAOC;CAA8B;CAChE,IAAI,sBAAsB;EAAE,OAAOC;CAAgC;CACnE,IAAI,eAAe;EAAE,OAAOC;CAA0B;CACtD,IAAI,mBAAmB;EAAE,OAAOC;CAA8B;CAC9D,IAAI,aAAa;EAAE,OAAOC;CAAwB;CAClD,IAAI,oBAAoB;EAAE,OAAOC;CAA8B;CAC/D,IAAI,gBAAgB;EAAE,OAAOC;CAA2B;CACxD,IAAI,gBAAgB;EAAE,OAAOC;CAA2B;CACxD,IAAI,gBAAgB;EAAE,OAAOC;CAA2B;CACxD,IAAI,yBAAyB;EAAE,OAAOC;CAAoC;CAC1E,IAAI,uBAAuB;EAAE,OAAOC;CAAkC;CACtE,IAAI,2BAA2B;EAAE,OAAOC;CAAsC;AAChF"}
1
+ {"version":3,"file":"cores-CMUr_SEv.mjs","names":["repository.getRepositoryCore","repository.listBranchesCore","repository.getFileContentCore","repository.getRepositoryTreeCore","repository.createBranchCore","repository.deleteBranchCore","repository.forkRepositoryCore","repository.createRepositoryCore","repository.createOrUpdateFileCore","repository.editFilesCore","repository.getBranchRulesCore","repository.getCollaboratorPermissionCore","pullRequests.listPullRequestsCore","pullRequests.getPullRequestCore","pullRequests.createPullRequestCore","pullRequests.mergePullRequestCore","pullRequests.enablePullRequestAutoMergeCore","pullRequests.disablePullRequestAutoMergeCore","pullRequests.updatePullRequestCore","pullRequests.updatePullRequestBranchCore","pullRequests.addPullRequestCommentCore","pullRequests.updatePullRequestCommentCore","pullRequests.deletePullRequestCommentCore","pullRequests.listPullRequestFilesCore","pullRequests.listPullRequestReviewsCore","pullRequests.createPullRequestReviewCore","pullRequests.listPullRequestReviewThreadsCore","pullRequests.replyToReviewCommentCore","pullRequests.resolveReviewThreadCore","pullRequests.requestReviewersCore","bundles.getPullRequestContextCore","bundles.getIssueContextCore","issues.listIssuesCore","issues.getIssueCore","issues.listIssueCommentsCore","issues.createIssueCore","issues.addIssueCommentCore","issues.updateIssueCommentCore","issues.deleteIssueCommentCore","issues.closeIssueCore","issues.updateIssueCore","issues.listLabelsCore","issues.addLabelsCore","issues.removeLabelCore","issues.createLabelCore","issues.updateLabelCore","issues.deleteLabelCore","issues.addAssigneesCore","issues.removeAssigneesCore","issues.listMilestonesCore","issues.listSubIssuesCore","issues.addSubIssueCore","reactions.listIssueReactionsCore","reactions.addIssueReactionCore","reactions.listCommentReactionsCore","reactions.addCommentReactionCore","discussions.listDiscussionsCore","discussions.getDiscussionCore","discussions.addDiscussionCommentCore","notifications.listNotificationsCore","notifications.markNotificationReadCore","search.searchCodeCore","search.searchRepositoriesCore","search.searchIssuesCore","commits.listCommitsCore","commits.getCommitCore","commits.getBlameCore","commits.compareCommitsCore","gists.listGistsCore","gists.getGistCore","gists.listGistCommentsCore","gists.createGistCore","gists.updateGistCore","gists.deleteGistCore","gists.createGistCommentCore","workflows.listWorkflowsCore","workflows.listWorkflowRunsCore","workflows.getWorkflowRunCore","workflows.listWorkflowJobsCore","workflows.getWorkflowJobLogsCore","workflows.triggerWorkflowCore","workflows.cancelWorkflowRunCore","workflows.rerunWorkflowRunCore","checks.listCheckRunsCore","checks.getCombinedStatusCore","checks.createCommitStatusCore","bundles.getCiFailureContextCore","releases.listReleasesCore","releases.getLatestReleaseCore","releases.getReleaseCore","bundles.getReleaseContextCore","releases.createReleaseCore","releases.updateReleaseCore","releases.deleteReleaseCore","security.listCodeScanningAlertsCore","security.listDependabotAlertsCore","security.listSecretScanningAlertsCore"],"sources":["../src/core/cores.ts"],"sourcesContent":["import * as bundles from './bundles'\nimport * as checks from './checks'\nimport * as commits from './commits'\nimport * as discussions from './discussions'\nimport * as gists from './gists'\nimport * as issues from './issues'\nimport * as notifications from './notifications'\nimport * as pullRequests from './pull-requests'\nimport * as reactions from './reactions'\nimport * as releases from './releases'\nimport * as security from './security'\nimport * as repository from './repository'\nimport * as search from './search'\nimport * as workflows from './workflows'\nimport type { GithubToolName } from './catalog'\n\n/**\n * The `*Core` implementation of every tool, keyed by tool name.\n *\n * Kept apart from `GITHUB_TOOL_CATALOG` so that importing tool metadata does\n * not pull Octokit into a Vercel Workflow flow bundle, which cannot load\n * Node.js built-ins. Argument types vary per tool, so callers cast at the\n * dispatch boundary. Entries are getters so the ESM binding stays live\n * (module spies in tests).\n */\nexport const GITHUB_TOOL_CORES = {\n get getRepository() { return repository.getRepositoryCore },\n get listBranches() { return repository.listBranchesCore },\n get getFileContent() { return repository.getFileContentCore },\n get getRepositoryTree() { return repository.getRepositoryTreeCore },\n get createBranch() { return repository.createBranchCore },\n get deleteBranch() { return repository.deleteBranchCore },\n get forkRepository() { return repository.forkRepositoryCore },\n get createRepository() { return repository.createRepositoryCore },\n get createOrUpdateFile() { return repository.createOrUpdateFileCore },\n get editFiles() { return repository.editFilesCore },\n get getBranchRules() { return repository.getBranchRulesCore },\n get getCollaboratorPermission() { return repository.getCollaboratorPermissionCore },\n get listPullRequests() { return pullRequests.listPullRequestsCore },\n get getPullRequest() { return pullRequests.getPullRequestCore },\n get createPullRequest() { return pullRequests.createPullRequestCore },\n get mergePullRequest() { return pullRequests.mergePullRequestCore },\n get enablePullRequestAutoMerge() { return pullRequests.enablePullRequestAutoMergeCore },\n get disablePullRequestAutoMerge() { return pullRequests.disablePullRequestAutoMergeCore },\n get updatePullRequest() { return pullRequests.updatePullRequestCore },\n get updatePullRequestBranch() { return pullRequests.updatePullRequestBranchCore },\n get addPullRequestComment() { return pullRequests.addPullRequestCommentCore },\n get updatePullRequestComment() { return pullRequests.updatePullRequestCommentCore },\n get deletePullRequestComment() { return pullRequests.deletePullRequestCommentCore },\n get listPullRequestFiles() { return pullRequests.listPullRequestFilesCore },\n get listPullRequestReviews() { return pullRequests.listPullRequestReviewsCore },\n get createPullRequestReview() { return pullRequests.createPullRequestReviewCore },\n get listPullRequestReviewThreads() { return pullRequests.listPullRequestReviewThreadsCore },\n get replyToReviewComment() { return pullRequests.replyToReviewCommentCore },\n get resolveReviewThread() { return pullRequests.resolveReviewThreadCore },\n get requestReviewers() { return pullRequests.requestReviewersCore },\n get getPullRequestContext() { return bundles.getPullRequestContextCore },\n get getIssueContext() { return bundles.getIssueContextCore },\n get listIssues() { return issues.listIssuesCore },\n get getIssue() { return issues.getIssueCore },\n get listIssueComments() { return issues.listIssueCommentsCore },\n get createIssue() { return issues.createIssueCore },\n get addIssueComment() { return issues.addIssueCommentCore },\n get updateIssueComment() { return issues.updateIssueCommentCore },\n get deleteIssueComment() { return issues.deleteIssueCommentCore },\n get closeIssue() { return issues.closeIssueCore },\n get updateIssue() { return issues.updateIssueCore },\n get listLabels() { return issues.listLabelsCore },\n get addLabels() { return issues.addLabelsCore },\n get removeLabel() { return issues.removeLabelCore },\n get createLabel() { return issues.createLabelCore },\n get updateLabel() { return issues.updateLabelCore },\n get deleteLabel() { return issues.deleteLabelCore },\n get addAssignees() { return issues.addAssigneesCore },\n get removeAssignees() { return issues.removeAssigneesCore },\n get listMilestones() { return issues.listMilestonesCore },\n get listSubIssues() { return issues.listSubIssuesCore },\n get addSubIssue() { return issues.addSubIssueCore },\n get listIssueReactions() { return reactions.listIssueReactionsCore },\n get addIssueReaction() { return reactions.addIssueReactionCore },\n get listCommentReactions() { return reactions.listCommentReactionsCore },\n get addCommentReaction() { return reactions.addCommentReactionCore },\n get listDiscussions() { return discussions.listDiscussionsCore },\n get getDiscussion() { return discussions.getDiscussionCore },\n get addDiscussionComment() { return discussions.addDiscussionCommentCore },\n get listNotifications() { return notifications.listNotificationsCore },\n get markNotificationRead() { return notifications.markNotificationReadCore },\n get searchCode() { return search.searchCodeCore },\n get searchRepositories() { return search.searchRepositoriesCore },\n get searchIssues() { return search.searchIssuesCore },\n get listCommits() { return commits.listCommitsCore },\n get getCommit() { return commits.getCommitCore },\n get getBlame() { return commits.getBlameCore },\n get compareCommits() { return commits.compareCommitsCore },\n get listGists() { return gists.listGistsCore },\n get getGist() { return gists.getGistCore },\n get listGistComments() { return gists.listGistCommentsCore },\n get createGist() { return gists.createGistCore },\n get updateGist() { return gists.updateGistCore },\n get deleteGist() { return gists.deleteGistCore },\n get createGistComment() { return gists.createGistCommentCore },\n get listWorkflows() { return workflows.listWorkflowsCore },\n get listWorkflowRuns() { return workflows.listWorkflowRunsCore },\n get getWorkflowRun() { return workflows.getWorkflowRunCore },\n get listWorkflowJobs() { return workflows.listWorkflowJobsCore },\n get getWorkflowJobLogs() { return workflows.getWorkflowJobLogsCore },\n get triggerWorkflow() { return workflows.triggerWorkflowCore },\n get cancelWorkflowRun() { return workflows.cancelWorkflowRunCore },\n get rerunWorkflowRun() { return workflows.rerunWorkflowRunCore },\n get listCheckRuns() { return checks.listCheckRunsCore },\n get getCombinedStatus() { return checks.getCombinedStatusCore },\n get createCommitStatus() { return checks.createCommitStatusCore },\n get getCiFailureContext() { return bundles.getCiFailureContextCore },\n get listReleases() { return releases.listReleasesCore },\n get getLatestRelease() { return releases.getLatestReleaseCore },\n get getRelease() { return releases.getReleaseCore },\n get getReleaseContext() { return bundles.getReleaseContextCore },\n get createRelease() { return releases.createReleaseCore },\n get updateRelease() { return releases.updateReleaseCore },\n get deleteRelease() { return releases.deleteReleaseCore },\n get listCodeScanningAlerts() { return security.listCodeScanningAlertsCore },\n get listDependabotAlerts() { return security.listDependabotAlertsCore },\n get listSecretScanningAlerts() { return security.listSecretScanningAlertsCore },\n} satisfies Record<GithubToolName, (args: never) => Promise<unknown>>\n"],"mappings":";;;;;;;;;;;AAyBA,MAAa,oBAAoB;CAC/B,IAAI,gBAAgB;EAAE,OAAOA;CAA6B;CAC1D,IAAI,eAAe;EAAE,OAAOC;CAA4B;CACxD,IAAI,iBAAiB;EAAE,OAAOC;CAA8B;CAC5D,IAAI,oBAAoB;EAAE,OAAOC;CAAiC;CAClE,IAAI,eAAe;EAAE,OAAOC;CAA4B;CACxD,IAAI,eAAe;EAAE,OAAOC;CAA4B;CACxD,IAAI,iBAAiB;EAAE,OAAOC;CAA8B;CAC5D,IAAI,mBAAmB;EAAE,OAAOC;CAAgC;CAChE,I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  import { z } from "zod";
3
3
  import { Octokit as Octokit$1 } from "octokit";
4
- //#region src/core/catalog.d.ts
5
4
  /**
6
5
  * Single source of truth for every GitHub tool.
7
6
  *
@@ -1425,15 +1424,11 @@ type GithubToolName = keyof typeof GITHUB_TOOL_CATALOG;
1425
1424
  type GithubWriteToolName = { [K in GithubToolName]: (typeof GITHUB_TOOL_CATALOG)[K] extends {
1426
1425
  write: true;
1427
1426
  } ? K : never; }[GithubToolName];
1428
- //#endregion
1429
- //#region src/core/tool-names.d.ts
1430
1427
  /**
1431
1428
  * All GitHub tool names available via {@link createGithubTools}, keyed by name.
1432
1429
  * Derived from `GITHUB_TOOL_CATALOG` — the single source of truth for tools.
1433
1430
  */
1434
1431
  declare const GITHUB_TOOL_NAMES: { [K in GithubToolName]: K; };
1435
- //#endregion
1436
- //#region src/core/presets.d.ts
1437
1432
  /**
1438
1433
  * Predefined tool presets for common use cases.
1439
1434
  * Pass to {@link createGithubTools}, {@link createGithubAgent}, or {@link createDurableGithubAgent}.
@@ -1563,8 +1558,6 @@ type GithubToolPreset = keyof typeof PRESET_TOOLS;
1563
1558
  type PresetToolName<P extends GithubToolPreset> = Extract<(typeof PRESET_TOOLS)[P][number], GithubToolName>;
1564
1559
  /** Tool names included when combining multiple presets. */
1565
1560
  type CombinedPresetToolNames<P extends readonly GithubToolPreset[]> = PresetToolName<P[number]>;
1566
- //#endregion
1567
- //#region src/core/guardrails.d.ts
1568
1561
  /**
1569
1562
  * Limits on where GitHub tools can act, checked on every call before it reaches GitHub.
1570
1563
  * Unlike approval, they hold whoever approves a call and whatever the model asks for.
@@ -1592,8 +1585,6 @@ type GithubGuardrails = {
1592
1585
  */
1593
1586
  secrets?: 'block' | 'allow';
1594
1587
  };
1595
- //#endregion
1596
- //#region src/core/token.d.ts
1597
1588
  /**
1598
1589
  * The tool call a token is requested for. Passed to token providers so they
1599
1590
  * can mint a token for the call's target — e.g. the GitHub App installation
@@ -1624,8 +1615,6 @@ declare function resolveGithubToken(token?: GithubTokenInput, call?: GithubToken
1624
1615
  * tools from individual factories; `createGithubTools({ guardrails })` applies it for you.
1625
1616
  */
1626
1617
  declare function withGithubGuardrails(token: GithubTokenInput | undefined, guardrails: GithubGuardrails | undefined): GithubTokenResolver;
1627
- //#endregion
1628
- //#region src/core/evaluation-policy.d.ts
1629
1618
  /**
1630
1619
  * Decision model used by `'auto'` approval and `preset: 'auto'` unless `evaluation.model` is set.
1631
1620
  * Pinned to a Jev release so the default thresholds keep matching the model they were set for;
@@ -1639,15 +1628,11 @@ declare const DEFAULT_EVALUATION_MODEL = "typesafe-ai/jev-1.14.0";
1639
1628
  */
1640
1629
  declare const AUTO_APPROVAL_TOOLS: readonly ["addLabels", "removeLabel", "addAssignees", "removeAssignees", "addIssueReaction", "addCommentReaction", "addIssueComment", "addPullRequestComment", "addDiscussionComment", "createGistComment", "replyToReviewComment", "resolveReviewThread", "requestReviewers", "markNotificationRead"];
1641
1630
  type RoutablePreset = Exclude<GithubToolPreset, 'maintainer'>;
1642
- //#endregion
1643
- //#region src/core/write-tools.d.ts
1644
1631
  /**
1645
1632
  * GitHub tools that perform write operations and require approval by default.
1646
1633
  * Derived from the `write: true` entries of `GITHUB_TOOL_CATALOG`.
1647
1634
  */
1648
1635
  declare const GITHUB_WRITE_TOOLS: { [K in GithubWriteToolName]: K; };
1649
- //#endregion
1650
- //#region src/core/evaluation.d.ts
1651
1636
  /**
1652
1637
  * Tuning for `requireApproval: 'auto'` and `preset: 'auto'`. Every field is optional.
1653
1638
  */
@@ -1774,8 +1759,6 @@ declare function selectTools(messages: readonly ModelMessage[], options?: Github
1774
1759
  */
1775
1760
  declare function selectPresets(messages: readonly ModelMessage[], options?: GithubEvaluationOptions, abortSignal?: AbortSignal): Promise<RoutablePreset[]>;
1776
1761
  declare function latestUserText(messages: readonly ModelMessage[]): string;
1777
- //#endregion
1778
- //#region src/core/approval-policy.d.ts
1779
1762
  /**
1780
1763
  * Approval for a single write tool.
1781
1764
  *
@@ -1819,8 +1802,6 @@ type ToolApprovalMode = boolean | 'auto';
1819
1802
  type ApprovalConfig = ToolApprovalMode | Partial<Record<GithubWriteToolName, ToolApprovalMode>>;
1820
1803
  /** {@link ApprovalConfig} without `'auto'`, for runtimes that cannot run the evaluation model. */
1821
1804
  type StaticApprovalConfig = boolean | Partial<Record<GithubWriteToolName, boolean>>;
1822
- //#endregion
1823
- //#region src/types.d.ts
1824
1805
  type GithubTool = Tool<any, any>;
1825
1806
  type ToolOptions = {
1826
1807
  needsApproval?: GithubTool['needsApproval'];
@@ -1874,8 +1855,6 @@ type CommitToolOptions = ToolOptions & {
1874
1855
  * ```
1875
1856
  */
1876
1857
  type ToolOverrides = Partial<Pick<Tool, 'description' | 'needsApproval' | 'onInputAvailable' | 'onInputDelta' | 'onInputStart' | 'providerOptions' | 'strict' | 'title' | 'toModelOutput'>>;
1877
- //#endregion
1878
- //#region src/core/context.d.ts
1879
1858
  /**
1880
1859
  * Default repository / issue / PR / ref values applied to tool inputs and
1881
1860
  * injected into agent system prompts.
@@ -1890,8 +1869,6 @@ type GithubToolsContext = {
1890
1869
  issueNumber?: number;
1891
1870
  ref?: string;
1892
1871
  };
1893
- //#endregion
1894
- //#region src/core/tool-types.d.ts
1895
1872
  /** Full tool set returned when no `preset` is specified. */
1896
1873
  type AllGithubTools = Record<GithubToolName, GithubTool>;
1897
1874
  /** Base options shared by all {@link createGithubTools} overloads. */
@@ -1933,8 +1910,6 @@ type GithubToolsBaseOptions = {
1933
1910
  type GithubToolsForPreset<P extends GithubToolPreset | readonly GithubToolPreset[] | undefined> = P extends GithubToolPreset ? Pick<AllGithubTools, PresetToolName<P> & GithubToolName> : P extends readonly GithubToolPreset[] ? Pick<AllGithubTools, CombinedPresetToolNames<P> & GithubToolName> : AllGithubTools;
1934
1911
  /** Pick a subset of GitHub tools by tool name. */
1935
1912
  type PickGithubTools<T extends GithubToolName> = Pick<AllGithubTools, T>;
1936
- //#endregion
1937
- //#region src/core/dry-run.d.ts
1938
1913
  /** What approval would have decided for a write, had it run for real. */
1939
1914
  type GithubDryRunApproval = {
1940
1915
  /** `true` when a person would have been asked to approve the call. */
@@ -1951,6 +1926,5 @@ type GithubDryRunResult = {
1951
1926
  approval?: GithubDryRunApproval;
1952
1927
  message: string;
1953
1928
  };
1954
- //#endregion
1955
- export { DEFAULT_EVALUATION_MODEL as A, PRESET_TOOLS as B, fallbackTools as C, selectTools as D, selectPresets as E, withGithubGuardrails as F, GithubWriteToolName as G, GITHUB_TOOL_NAMES as H, GithubGuardrails as I, CORE_READ_TOOLS as L, GithubTokenCall as M, GithubTokenInput as N, GITHUB_WRITE_TOOLS as O, resolveGithubToken as P, CombinedPresetToolNames as R, fallbackPresets as S, needsAutoApproval as T, GITHUB_TOOL_CATALOG as U, PresetToolName as V, GithubToolName as W, AutoApprovalDecision as _, GithubToolsForPreset as a, evaluatePresets as b, CommitIdentity as c, Octokit$1 as d, ToolOptions as f, ToolApprovalMode as g, StaticApprovalConfig as h, GithubToolsBaseOptions as i, RoutablePreset as j, AUTO_APPROVAL_TOOLS as k, CommitToolOptions as l, ApprovalConfig as m, GithubDryRunResult as n, PickGithubTools as o, ToolOverrides as p, AllGithubTools as r, GithubToolsContext as s, GithubDryRunApproval as t, GithubTool as u, GithubEvaluationOptions as v, latestUserText as w, evaluateTools as x, autoApprovalDecision as y, GithubToolPreset as z };
1956
- //# sourceMappingURL=dry-run-DXckOam2.d.mts.map
1929
+ export { DEFAULT_EVALUATION_MODEL as A, GithubToolPreset as B, fallbackTools as C, selectTools as D, selectPresets as E, resolveGithubToken as F, GithubToolName as G, PresetToolName as H, withGithubGuardrails as I, GithubWriteToolName as K, GithubGuardrails as L, GithubTokenCall as M, GithubTokenInput as N, GITHUB_WRITE_TOOLS as O, GithubTokenResolver as P, CORE_READ_TOOLS as R, fallbackPresets as S, needsAutoApproval as T, GITHUB_TOOL_NAMES as U, PRESET_TOOLS as V, GITHUB_TOOL_CATALOG as W, AutoApprovalDecision as _, GithubToolsForPreset as a, evaluatePresets as b, CommitIdentity as c, Octokit$1 as d, ToolOptions as f, ToolApprovalMode as g, StaticApprovalConfig as h, GithubToolsBaseOptions as i, RoutablePreset as j, AUTO_APPROVAL_TOOLS as k, CommitToolOptions as l, ApprovalConfig as m, GithubDryRunResult as n, PickGithubTools as o, ToolOverrides as p, AllGithubTools as r, GithubToolsContext as s, GithubDryRunApproval as t, GithubTool as u, GithubEvaluationOptions as v, latestUserText as w, evaluateTools as x, autoApprovalDecision as y, CombinedPresetToolNames as z };
1930
+ //# sourceMappingURL=dry-run-BAbes7Mv.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dry-run-BAbes7Mv.d.mts","names":[],"sources":["../src/core/catalog.ts","../src/core/tool-names.ts","../src/core/presets.ts","../src/core/guardrails.ts","../src/core/token.ts","../src/core/evaluation-policy.ts","../src/core/write-tools.ts","../src/core/evaluation.ts","../src/core/approval-policy.ts","../src/types.ts","../src/core/context.ts","../src/core/tool-types.ts","../src/core/dry-run.ts"],"mappings":";;;;;;;;;;;;cA0Ea;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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BAAkB,UAAoC,yBAA8B,cAAc,cAAc;;;;;iBASxH,YACpB,mBAAmB,gBACnB,UAAS,yBACT,cAAc,cACb,QAAQ;;;;;iBAQW,cACpB,mBAAmB,gBACnB,UAAS,yBACT,cAAc,cACb,QAAQ;iBAIK,eAAe,mBAAmB;;;;;;;;;KCpStC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiCA,iBAAiB,mBAAmB,QAAQ,OAAO,qBAAqB;;KAGxE,iCAAiC,QAAQ,OAAO;KCzChD,aAAa;KAEb;EAAgB,gBAAgB;;;;;;;;KAQhC;EACV;EACA;;;;;KAMU,oBAAoB;;;;;EAK9B,SAAS;;;;;EAKT,YAAY;;;;;EAKZ,YAAY;;;;;;;;;;;;;;;;;;;;KAqBF,gBAAgB,QAC1B,KACE;;;;;;;;KCpDQ;EACV;EACA;EACA;EACA;EACA;;;KCLU,iBAAiB,OAAO,gBAAgB;;KAGxC;;EAEV,QAAQ;;EAER,kBAAkB;;EAElB,aAAa;;;;;;EAMb,UAAU;;EAEV,YAAY,QAAQ,OAAO,gBAAgB;;EAE3C,SAAS;;EAET,YAAY;;EAEZ,YAAY;;;;;;EAMZ,aAAa;;;;;;EAMb;;;KAIU,qBAAqB,UAAU,4BAA4B,kCACrE,UAAU,mBACN,KAAK,gBAAgB,eAAe,KAAK,kBACzC,mBAAmB,qBACjB,KAAK,gBAAgB,wBAAwB,KAAK,kBAClD;;KAGI,gBAAgB,UAAU,kBAAkB,KAAK,gBAAgB;;KCnDjE;;EAEV;;EAEA;;;KAIU;EACV;EACA,MAAM;EACN,OAAO;;EAEP,WAAW;EACX"}
@@ -1,6 +1,6 @@
1
- import { T as GITHUB_TOOL_CATALOG, Za as githubToolsErrors, _ as CORE_READ_TOOLS, d as PRESET_PURPOSES, f as RISK_QUESTION, h as requiresApproval, l as DEFAULT_EVALUATION_MODEL, m as rankPresets, p as conversationState, u as INTENT_QUESTION, v as PRESET_TOOLS, w as ALL_GITHUB_TOOL_NAMES } from "./write-tools-w-8tjnDQ.mjs";
1
+ import { T as GITHUB_TOOL_CATALOG, Za as githubToolsErrors, _ as CORE_READ_TOOLS, d as PRESET_PURPOSES, f as RISK_QUESTION, h as requiresApproval, l as DEFAULT_EVALUATION_MODEL, m as rankPresets, p as conversationState, u as INTENT_QUESTION, v as PRESET_TOOLS, w as ALL_GITHUB_TOOL_NAMES } from "./write-tools-BR29EOoM.mjs";
2
2
  import * as ai from "ai";
3
- //#region src/core/model-output.ts
3
+ // src/core/model-output.ts
4
4
  const MAX_PATCH_LENGTH = 4e3;
5
5
  const MAX_CONTENT_LENGTH = 2e4;
6
6
  const MAX_MODEL_TREE_ENTRIES = 200;
@@ -115,8 +115,7 @@ function getPullRequestContextToModelOutput({ output }) {
115
115
  }
116
116
  };
117
117
  }
118
- //#endregion
119
- //#region src/core/evaluation.ts
118
+ // src/core/evaluation.ts
120
119
  /**
121
120
  * Throws `EVALUATION_UNAVAILABLE` when the installed `ai` has neither `experimental_decide`
122
121
  * nor `experimental_evaluate`. Call it where `'auto'` is configured, so a too-old `ai` fails
@@ -305,7 +304,6 @@ function messageText(message) {
305
304
  if (typeof message.content === "string") return message.content;
306
305
  return message.content.flatMap((part) => part.type === "text" ? [part.text] : []).join("\n");
307
306
  }
308
- //#endregion
309
307
  export { listPullRequestFilesToModelOutput as _, evaluationRequest as a, latestUserText as c, selectTools as d, compareCommitsToModelOutput as f, getRepositoryTreeToModelOutput as g, getPullRequestContextToModelOutput as h, evaluateTools as i, needsAutoApproval as l, getFileContentToModelOutput as m, autoApprovalDecision as n, fallbackPresets as o, getCommitToModelOutput as p, evaluatePresets as r, fallbackTools as s, assertEvaluationAvailable as t, selectPresets as u };
310
308
 
311
- //# sourceMappingURL=evaluation-DJHINyAu.mjs.map
309
+ //# sourceMappingURL=evaluation-DskA4Lzk.mjs.map