@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
@@ -1,2 +1,2 @@
1
- import { t as githubToolApproval } from "../interrupts-BSDPwdJ2.mjs";
1
+ import { t as githubToolApproval } from "../interrupts-MwQ_v_PF.mjs";
2
2
  export { githubToolApproval };
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { defineInterrupt } from "@tanstack/ai";
3
- //#region src/tanstack/interrupts.ts
3
+ // src/tanstack/interrupts.ts
4
4
  /** Register on the server and client when using GitHub automatic approval. */
5
5
  const githubToolApproval = defineInterrupt({
6
6
  id: "github-tools.approval",
@@ -11,7 +11,6 @@ const githubToolApproval = defineInterrupt({
11
11
  }),
12
12
  responseSchema: z.object({ approved: z.boolean().describe("Whether to execute this exact tool call.") })
13
13
  });
14
- //#endregion
15
14
  export { githubToolApproval };
16
15
 
17
16
  //# sourceMappingURL=interrupts.mjs.map
@@ -1,10 +1,8 @@
1
- import { A as DEFAULT_EVALUATION_MODEL, B as PRESET_TOOLS, G as GithubWriteToolName, H as GITHUB_TOOL_NAMES, I as GithubGuardrails, M as GithubTokenCall, N as GithubTokenInput, O as GITHUB_WRITE_TOOLS, U as GITHUB_TOOL_CATALOG, V as PresetToolName, W as GithubToolName, c as CommitIdentity, d as Octokit, g as ToolApprovalMode, j as RoutablePreset, k as AUTO_APPROVAL_TOOLS, m as ApprovalConfig, n as GithubDryRunResult, s as GithubToolsContext, z as GithubToolPreset } from "./dry-run-DXckOam2.mjs";
2
- import "./index-CzzrtCVj.mjs";
3
- import { t as githubToolApproval } from "./interrupts-BSDPwdJ2.mjs";
1
+ import { A as DEFAULT_EVALUATION_MODEL, B as GithubToolPreset, G as GithubToolName, H as PresetToolName, K as GithubWriteToolName, L as GithubGuardrails, M as GithubTokenCall, N as GithubTokenInput, O as GITHUB_WRITE_TOOLS, U as GITHUB_TOOL_NAMES, V as PRESET_TOOLS, W as GITHUB_TOOL_CATALOG, c as CommitIdentity, d as Octokit, g as ToolApprovalMode, j as RoutablePreset, k as AUTO_APPROVAL_TOOLS, m as ApprovalConfig, n as GithubDryRunResult, s as GithubToolsContext } from "./dry-run-BAbes7Mv.mjs";
2
+ import { t as githubToolApproval } from "./interrupts-MwQ_v_PF.mjs";
3
+ import "./index-DgCZi9Ns.mjs";
4
4
  import { z } from "zod";
5
5
  import { AnyTextAdapter, ChatMiddleware, ChatStream, EvaluateAdapter, ModelMessage, ServerTool, Tool, chat } from "@tanstack/ai";
6
- //#endregion
7
- //#region src/core/detail.d.ts
8
6
  type DetailLevel = 'summary' | 'full';
9
7
  declare namespace bundles_d_exports {
10
8
  export { getCiFailureContextCore, getCiFailureContextDescription, getCiFailureContextInputSchema, getIssueContextCore, getIssueContextDescription, getIssueContextInputSchema, getPullRequestContextCore, getPullRequestContextDescription, getPullRequestContextInputSchema, getReleaseContextCore, getReleaseContextDescription, getReleaseContextInputSchema };
@@ -469,8 +467,6 @@ declare function createCommitStatusCore({ token, owner, repo, sha, state, contex
469
467
  url: string | null;
470
468
  createdAt: string;
471
469
  }>;
472
- //#endregion
473
- //#region src/core/pagination.d.ts
474
470
  type PagingFields = {
475
471
  hasMore: boolean;
476
472
  page: number;
@@ -3192,8 +3188,6 @@ declare function rerunWorkflowRunCore({ token, owner, repo, runId, onlyFailedJob
3192
3188
  runId: number;
3193
3189
  onlyFailedJobs: boolean;
3194
3190
  }>;
3195
- //#endregion
3196
- //#region src/core/cores.d.ts
3197
3191
  /**
3198
3192
  * The `*Core` implementation of every tool, keyed by tool name.
3199
3193
  *
@@ -3302,8 +3296,6 @@ declare const GITHUB_TOOL_CORES: {
3302
3296
  readonly listDependabotAlerts: typeof listDependabotAlertsCore;
3303
3297
  readonly listSecretScanningAlerts: typeof listSecretScanningAlertsCore;
3304
3298
  };
3305
- //#endregion
3306
- //#region src/tanstack/tools.d.ts
3307
3299
  type Catalog = typeof GITHUB_TOOL_CATALOG;
3308
3300
  type CoreResult<N extends GithubToolName> = Awaited<ReturnType<(typeof GITHUB_TOOL_CORES)[N]>>;
3309
3301
  /**
@@ -3341,8 +3333,6 @@ type CreateGithubToolsOptions = Omit<TanstackToolOptions, 'description' | 'needs
3341
3333
  export declare function createGithubTools<const P extends GithubToolPreset | readonly GithubToolPreset[] | undefined = undefined>(options?: CreateGithubToolsOptions & {
3342
3334
  preset?: P;
3343
3335
  }): GithubTanstackTool<P extends GithubToolPreset ? PresetToolName<P> : P extends readonly GithubToolPreset[] ? PresetToolName<P[number]> : GithubToolName>[];
3344
- //#endregion
3345
- //#region src/tanstack/evaluation.d.ts
3346
3336
  /** Jev configuration for TanStack automatic approval and preset selection. */
3347
3337
  type GithubEvaluationOptions = {
3348
3338
  /** Defaults to vercelGatewayDecider('typesafe-ai/jev') using Gateway authentication. */
@@ -3357,8 +3347,6 @@ type GithubEvaluationOptions = {
3357
3347
  maxPresets?: number;
3358
3348
  };
3359
3349
  export declare function selectPresets(messages: readonly ModelMessage[], options?: GithubEvaluationOptions, signal?: AbortSignal): Promise<RoutablePreset[]>;
3360
- //#endregion
3361
- //#region src/tanstack/agent.d.ts
3362
3350
  type NativeOptions<A extends AnyTextAdapter> = Parameters<typeof chat<A, undefined, true>>[0];
3363
3351
  type ChatSettings<A extends AnyTextAdapter> = Omit<NativeOptions<A>, 'tools' | 'messages' | 'systemPrompts' | 'context' | 'middleware' | 'interrupts' | 'stream' | 'outputSchema'>;
3364
3352
  /** Configure a GitHub agent backed by TanStack chat(). */
@@ -3391,8 +3379,6 @@ type GithubAgent<A extends AnyTextAdapter> = {
3391
3379
  };
3392
3380
  /** Create a GitHub agent with preset instructions, tools, and automatic approval middleware. */
3393
3381
  export declare function createGithubAgent<A extends AnyTextAdapter>({ token, preset, requireApproval, overrides, context, author, committer, coAuthors, guardrails, dryRun, instructions, additionalInstructions, evaluation, middleware, ...settings }: CreateGithubAgentOptions<A>): GithubAgent<A>;
3394
- //#endregion
3395
- //#region src/tanstack/approval.d.ts
3396
3382
  /** Options for GitHub approval middleware. Register githubToolApproval with chat(). */
3397
3383
  type GithubApprovalMiddlewareOptions = {
3398
3384
  tools: readonly Tool[];
@@ -3400,8 +3386,6 @@ type GithubApprovalMiddlewareOptions = {
3400
3386
  };
3401
3387
  /** Evaluate automatic GitHub writes before execution and request review through githubToolApproval. */
3402
3388
  export declare function createGithubApprovalMiddleware({ tools, evaluation }: GithubApprovalMiddlewareOptions): ChatMiddleware<unknown, typeof githubToolApproval>;
3403
- //#endregion
3404
- //#region src/tanstack/factories.d.ts
3405
3389
  /** Create the TanStack `getRepository` server tool. */
3406
3390
  export declare const getRepository: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit<import("@tanstack/ai").ServerTool<import("zod").ZodObject<{
3407
3391
  owner: import("zod").ZodString;
@@ -6467,6 +6451,5 @@ export declare const listSecretScanningAlerts: (token: GithubTokenInput, options
6467
6451
  }[];
6468
6452
  } & PagingFields>;
6469
6453
  };
6470
- //#endregion
6471
6454
  export { AUTO_APPROVAL_TOOLS, type ApprovalConfig, type CommitIdentity, type CreateGithubAgentOptions, type CreateGithubToolsOptions, DEFAULT_EVALUATION_MODEL, GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, type GithubAgent, type GithubAgentCallOptions, type GithubApprovalMiddlewareOptions, type GithubEvaluationOptions, type GithubTanstackTool, type GithubTokenCall, type GithubTokenInput, type GithubToolName, type GithubToolPreset, type GithubToolsContext, type GithubWriteToolName, PRESET_TOOLS, type TanstackToolOptions, type TanstackToolOverrides, type ToolApprovalMode };
6472
6455
  //# sourceMappingURL=tanstack.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tanstack.d.mts","names":[],"sources":["../src/core/detail.ts","../src/core/bundles.ts","../src/core/checks.ts","../src/core/pagination.ts","../src/core/commits.ts","../src/core/discussions.ts","../src/core/gists.ts","../src/core/issues.ts","../src/core/notifications.ts","../src/core/pull-requests.ts","../src/core/reactions.ts","../src/core/releases.ts","../src/core/security.ts","../src/core/repository.ts","../src/core/search.ts","../src/core/workflows.ts","../src/core/cores.ts","../src/tanstack/tools.ts","../src/tanstack/evaluation.ts","../src/tanstack/agent.ts","../src/tanstack/approval.ts","../src/tanstack/factories.ts"],"mappings":";;;;;;;KAeY;;;;cCIC,kCAAgC,EAAA;;;;;;;;;;;;;;GAW3C,EAAA,KAAA;cAEW;iBA6BS,4BACpB,OACA,OACA,MACA,YACA,cACA,gBACA,eACA,cACA,cACA,qBACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,SAAS;IACV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsCY,4BAA0B,EAAA;;;;;;;;;;;GAarC,EAAA,KAAA;cAEW;iBAES,sBACpB,OACA,OACA,MACA,aACA,eACA,iBACA,aACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,SAAS;IACV;;;;;;;;;;;;;;;;;;;;;;;;;;cA2BY,8BAA4B,EAAA;;;;;;;;;;;;GASvC,EAAA,KAAA;cAEW;iBAKS,wBACpB,OACA,OACA,MACA,WACA,KACA,aACA,iBACA,gBACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,SAAS;IACV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwCY,gCAA8B,EAAA;;;;;;;;GAQzC,EAAA,KAAA;cAEW;iBAMS,0BACpB,OACA,OACA,MACA,KACA,OACA,eACA,eACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;IACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cCnSY,0BAAwB,EAAA;;;;;;;GAOnC,EAAA,KAAA;cAEW;iBA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,4BAAA,yBAAA;;;;;;;;;;;;MAAA;;;qBAGb,yBAAsB,OAAtB,kBAAsB,UAAA,wBAAA,4BAAA,yBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAA;;;qBAGtB,uBAAoB,OAApB,kBAAoB,UAAA,wBAAA,4BAAA,yBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAGpB,2BAAwB,OAAxB,kBAAwB,UAAA,wBAAA,4BAAA,yBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAA"}
1
+ {"version":3,"file":"tanstack.d.mts","names":["_$__pagination0.PagedList","_$__pagination0.PagedList","_$__pagination0.PagedList","_$__pagination0.PagedList","_$__pagination0.PagedList","_$__pagination0.PagedList","_$__pagination0.PagedList","_$__pagination0.PagedList","repository","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","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","bundles.getPullRequestContextCore","bundles.getIssueContextCore","issues","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","reactions.listIssueReactionsCore","reactions.addIssueReactionCore","reactions.listCommentReactionsCore","reactions.addCommentReactionCore","discussions","discussions.listDiscussionsCore","discussions.getDiscussionCore","discussions.addDiscussionCommentCore","notifications","notifications.listNotificationsCore","notifications.markNotificationReadCore","search","search.searchCodeCore","search.searchRepositoriesCore","search.searchIssuesCore","commits","commits.listCommitsCore","commits.getCommitCore","commits.getBlameCore","commits.compareCommitsCore","gists","gists.listGistsCore","gists.getGistCore","gists.listGistCommentsCore","gists.createGistCore","gists.updateGistCore","gists.deleteGistCore","gists.createGistCommentCore","workflows","workflows.listWorkflowsCore","workflows.listWorkflowRunsCore","workflows.getWorkflowRunCore","workflows.listWorkflowJobsCore","workflows.getWorkflowJobLogsCore","workflows.triggerWorkflowCore","workflows.cancelWorkflowRunCore","workflows.rerunWorkflowRunCore","checks","checks.listCheckRunsCore","checks.getCombinedStatusCore","checks.createCommitStatusCore","bundles.getCiFailureContextCore","releases","releases.listReleasesCore","releases.getLatestReleaseCore","releases.getReleaseCore","bundles.getReleaseContextCore","releases.createReleaseCore","releases.updateReleaseCore","releases.deleteReleaseCore","security","security.listCodeScanningAlertsCore","security.listDependabotAlertsCore","security.listSecretScanningAlertsCore","_$__0.GithubTokenInput","_$__tools0.TanstackToolOptions","_$___core_pagination0.PagingFields","_$__0.GithubDryRunResult"],"sources":["../src/core/detail.ts","../src/core/bundles.ts","../src/core/checks.ts","../src/core/pagination.ts","../src/core/commits.ts","../src/core/discussions.ts","../src/core/gists.ts","../src/core/issues.ts","../src/core/notifications.ts","../src/core/pull-requests.ts","../src/core/reactions.ts","../src/core/releases.ts","../src/core/security.ts","../src/core/repository.ts","../src/core/search.ts","../src/core/workflows.ts","../src/core/cores.ts","../src/tanstack/tools.ts","../src/tanstack/evaluation.ts","../src/tanstack/agent.ts","../src/tanstack/approval.ts","../src/tanstack/factories.ts"],"mappings":";;;;;KAeY;;;;cCIC,kCAAgC,EAAA;;;;;;;;;;;;;;GAW3C,EAAA,KAAA;cAEW;iBA6BS,4BACpB,OACA,OACA,MACA,YACA,cACA,gBACA,eACA,cACA,cACA,qBACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,SAAS;IACV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsCY,4BAA0B,EAAA;;;;;;;;;;;GAarC,EAAA,KAAA;cAEW;iBAES,sBACpB,OACA,OACA,MACA,aACA,eACA,iBACA,aACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,SAAS;IACV;;;;;;;;;;;;;;;;;;;;;;;;;;cA2BY,8BAA4B,EAAA;;;;;;;;;;;;GASvC,EAAA,KAAA;cAEW;iBAKS,wBACpB,OACA,OACA,MACA,WACA,KACA,aACA,iBACA,gBACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,SAAS;IACV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwCY,gCAA8B,EAAA;;;;;;;;GAQzC,EAAA,KAAA;cAEW;iBAMS,0BACpB,OACA,OACA,MACA,KACA,OACA,eACA,eACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;IACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cCnSY,0BAAwB,EAAA;;;;;;;GAOnC,EAAA,KAAA;cAEW;iBAES,oBAA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;;;;;;;;;;;;;;;;;;;;;;;;qBAGjB,gBAAa,OAAbD,kBAAa,UAAAC,wBAAA,4BAAA,yBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAAE;;;qBAGb,gBAAa,OAAbH,kBAAa,UAAAC,wBAAA,4BAAA,yBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAAE;;;qBAGb,gBAAa,OAAbH,kBAAa,UAAAC,wBAAA,4BAAA,yBAAA;;;;;;;;;;;;MAAAE;;;qBAGb,yBAAsB,OAAtBH,kBAAsB,UAAAC,wBAAA,4BAAA,yBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAAC;;;qBAGtB,uBAAoB,OAApBF,kBAAoB,UAAAC,wBAAA,4BAAA,yBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAGpB,2BAAwB,OAAxBD,kBAAwB,UAAAC,wBAAA,4BAAA,yBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAAC"}
package/dist/tanstack.mjs CHANGED
@@ -1,10 +1,10 @@
1
- import { $a as stripRateLimit, C as withGithubGuardrails, E as isGithubWriteToolName, T as GITHUB_TOOL_CATALOG, Za as githubToolsErrors, c as AUTO_APPROVAL_TOOLS, d as PRESET_PURPOSES, f as RISK_QUESTION, g as GITHUB_TOOL_NAMES, h as requiresApproval, i as dryRunWrite, l as DEFAULT_EVALUATION_MODEL, m as rankPresets, n as resolveInstructions, o as mergeContextArgs, p as conversationState, s as softenContextSchema, t as GITHUB_WRITE_TOOLS, u as INTENT_QUESTION, v as PRESET_TOOLS, w as ALL_GITHUB_TOOL_NAMES, x as githubTokenCall, y as resolvePresetTools } from "./write-tools-w-8tjnDQ.mjs";
2
- import { t as resolveApprovalMode } from "./approval-policy-CEMMPq92.mjs";
3
- import { t as GITHUB_TOOL_CORES } from "./cores-meFAMt2D.mjs";
1
+ import { $a as stripRateLimit, C as withGithubGuardrails, E as isGithubWriteToolName, T as GITHUB_TOOL_CATALOG, Za as githubToolsErrors, c as AUTO_APPROVAL_TOOLS, d as PRESET_PURPOSES, f as RISK_QUESTION, g as GITHUB_TOOL_NAMES, h as requiresApproval, i as dryRunWrite, l as DEFAULT_EVALUATION_MODEL, m as rankPresets, n as resolveInstructions, o as mergeContextArgs, p as conversationState, s as softenContextSchema, t as GITHUB_WRITE_TOOLS, u as INTENT_QUESTION, v as PRESET_TOOLS, w as ALL_GITHUB_TOOL_NAMES, x as githubTokenCall, y as resolvePresetTools } from "./write-tools-BR29EOoM.mjs";
2
+ import { t as GITHUB_TOOL_CORES } from "./cores-CMUr_SEv.mjs";
3
+ import { t as resolveApprovalMode } from "./approval-policy-C2rcAY77.mjs";
4
4
  import { githubToolApproval } from "./tanstack/interrupts.mjs";
5
5
  import { boolean, chat, convertMessagesToModelMessages, decide, score, toolDefinition } from "@tanstack/ai";
6
6
  import { isDeepStrictEqual } from "node:util";
7
- //#region src/tanstack/tools.ts
7
+ // src/tanstack/tools.ts
8
8
  const autoTools = /* @__PURE__ */ new WeakMap();
9
9
  function buildTool(name, token, options) {
10
10
  const descriptor = GITHUB_TOOL_CATALOG[name];
@@ -62,8 +62,7 @@ function createGithubTools(options = {}) {
62
62
  dryRun: options.dryRun
63
63
  }));
64
64
  }
65
- //#endregion
66
- //#region src/tanstack/evaluation.ts
65
+ // src/tanstack/evaluation.ts
67
66
  const TANSTACK_DEFAULT_EVALUATION_MODEL = "typesafe-ai/jev";
68
67
  async function evaluationAdapter(options) {
69
68
  if (options.adapter) return options.adapter;
@@ -137,8 +136,7 @@ async function selectPresets(messages, options = {}, signal) {
137
136
  return ["repo-explorer"];
138
137
  }
139
138
  }
140
- //#endregion
141
- //#region src/tanstack/approval.ts
139
+ // src/tanstack/approval.ts
142
140
  /** Evaluate automatic GitHub writes before execution and request review through githubToolApproval. */
143
141
  function createGithubApprovalMiddleware({ tools, evaluation }) {
144
142
  const managed = new Map(tools.flatMap((tool) => {
@@ -223,8 +221,7 @@ function createGithubApprovalMiddleware({ tools, evaluation }) {
223
221
  }
224
222
  };
225
223
  }
226
- //#endregion
227
- //#region src/tanstack/agent.ts
224
+ // src/tanstack/agent.ts
228
225
  /** Create a GitHub agent with preset instructions, tools, and automatic approval middleware. */
229
226
  function createGithubAgent({ token, preset, requireApproval, overrides, context, author, committer, coAuthors, guardrails, dryRun, instructions, additionalInstructions, evaluation, middleware = [], ...settings }) {
230
227
  async function prepare(call) {
@@ -297,8 +294,7 @@ function createGithubAgent({ token, preset, requireApproval, overrides, context,
297
294
  }
298
295
  };
299
296
  }
300
- //#endregion
301
- //#region src/tanstack/factories.ts
297
+ // src/tanstack/factories.ts
302
298
  /** Create the TanStack `getRepository` server tool. */
303
299
  const getRepository = toolFactory("getRepository");
304
300
  /** Create the TanStack `listBranches` server tool. */
@@ -493,7 +489,6 @@ const listCodeScanningAlerts = toolFactory("listCodeScanningAlerts");
493
489
  const listDependabotAlerts = toolFactory("listDependabotAlerts");
494
490
  /** Create the TanStack `listSecretScanningAlerts` server tool. */
495
491
  const listSecretScanningAlerts = toolFactory("listSecretScanningAlerts");
496
- //#endregion
497
492
  export { AUTO_APPROVAL_TOOLS, DEFAULT_EVALUATION_MODEL, GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, PRESET_TOOLS, addAssignees, addCommentReaction, addDiscussionComment, addIssueComment, addIssueReaction, addLabels, addPullRequestComment, addSubIssue, cancelWorkflowRun, closeIssue, compareCommits, createBranch, createCommitStatus, createGist, createGistComment, createGithubAgent, createGithubApprovalMiddleware, createGithubTools, createIssue, createLabel, createOrUpdateFile, createPullRequest, createPullRequestReview, createRelease, createRepository, deleteBranch, deleteGist, deleteIssueComment, deleteLabel, deletePullRequestComment, deleteRelease, disablePullRequestAutoMerge, editFiles, enablePullRequestAutoMerge, forkRepository, getBlame, getBranchRules, getCiFailureContext, getCollaboratorPermission, getCombinedStatus, getCommit, getDiscussion, getFileContent, getGist, getIssue, getIssueContext, getLatestRelease, getPullRequest, getPullRequestContext, getRelease, getReleaseContext, getRepository, getRepositoryTree, getWorkflowJobLogs, getWorkflowRun, listBranches, listCheckRuns, listCodeScanningAlerts, listCommentReactions, listCommits, listDependabotAlerts, listDiscussions, listGistComments, listGists, listIssueComments, listIssueReactions, listIssues, listLabels, listMilestones, listNotifications, listPullRequestFiles, listPullRequestReviewThreads, listPullRequestReviews, listPullRequests, listReleases, listSecretScanningAlerts, listSubIssues, listWorkflowJobs, listWorkflowRuns, listWorkflows, markNotificationRead, mergePullRequest, removeAssignees, removeLabel, replyToReviewComment, requestReviewers, rerunWorkflowRun, resolveReviewThread, searchCode, searchIssues, searchRepositories, selectPresets, triggerWorkflow, updateGist, updateIssue, updateIssueComment, updateLabel, updatePullRequest, updatePullRequestBranch, updatePullRequestComment, updateRelease };
498
493
 
499
494
  //# sourceMappingURL=tanstack.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"tanstack.mjs","names":[],"sources":["../src/tanstack/tools.ts","../src/tanstack/evaluation.ts","../src/tanstack/approval.ts","../src/tanstack/agent.ts","../src/tanstack/factories.ts"],"sourcesContent":["import { toolDefinition } from '@tanstack/ai'\nimport type { ServerTool } from '@tanstack/ai'\nimport type { z } from 'zod'\nimport { GITHUB_TOOL_CATALOG, isGithubWriteToolName } from '../core/catalog'\nimport { GITHUB_TOOL_CORES } from '../core/cores'\nimport { resolveApprovalMode, type ApprovalConfig, type ToolApprovalMode } from '../core/approval-policy'\nimport { mergeContextArgs, softenContextSchema, type GithubToolsContext } from '../core/context'\nimport { resolvePresetTools, type GithubToolPreset, type PresetToolName } from '../core/presets'\nimport { githubTokenCall, withGithubGuardrails, type GithubTokenInput } from '../core/token'\nimport type { GithubGuardrails } from '../core/guardrails'\nimport { dryRunWrite, type GithubDryRunResult } from '../core/dry-run'\nimport type { GithubToolName } from '../core/tool-names'\nimport { ALL_GITHUB_TOOL_NAMES } from '../core/tool-names'\nimport { stripRateLimit } from '../core/rate-limit'\nimport type { CommitIdentity } from '../types'\nimport type { GithubWriteToolName } from '../core/write-tools'\n\ntype Catalog = typeof GITHUB_TOOL_CATALOG\ntype CoreResult<N extends GithubToolName> = Awaited<ReturnType<(typeof GITHUB_TOOL_CORES)[N]>>\n\n/**\n * A TanStack server tool with the catalog's input schema and core return type. A write tool created\n * with `dryRun: true` returns a `GithubDryRunResult` instead, so narrow with `'dryRun' in result`.\n */\nexport type GithubTanstackTool<N extends GithubToolName = GithubToolName> = N extends GithubToolName\n ? Omit<ServerTool<Catalog[N]['inputSchema'], undefined, N, unknown, boolean>, 'execute'> & {\n execute: (input: z.input<Catalog[N]['inputSchema']>) => Promise<N extends GithubWriteToolName ? CoreResult<N> | GithubDryRunResult : CoreResult<N>>\n }\n : never\n\n/** Supported TanStack tool customizations. */\nexport type TanstackToolOverrides = {\n description?: string\n needsApproval?: boolean\n}\n\n/** Options shared by TanStack tool factories. */\nexport type TanstackToolOptions = Omit<TanstackToolOverrides, 'needsApproval'> & {\n needsApproval?: ToolApprovalMode\n context?: GithubToolsContext\n author?: CommitIdentity\n committer?: CommitIdentity\n coAuthors?: CommitIdentity[]\n /** Repositories and branches the tool may act on, checked before each call reaches GitHub. */\n guardrails?: GithubGuardrails\n /** Send no write to GitHub: a write returns a `GithubDryRunResult` instead, after the guardrails check. */\n dryRun?: boolean\n}\n\n/** Configuration for a native array of GitHub server tools. */\nexport type CreateGithubToolsOptions = Omit<TanstackToolOptions, 'description' | 'needsApproval'> & {\n token?: GithubTokenInput\n preset?: GithubToolPreset | readonly GithubToolPreset[]\n requireApproval?: ApprovalConfig\n overrides?: Partial<Record<GithubToolName, TanstackToolOverrides>>\n}\n\nexport const autoTools = new WeakMap<object, { name: GithubToolName, resolveInput: (input: unknown) => Record<string, unknown> }>()\n\nfunction buildTool<N extends GithubToolName>(name: N, token: GithubTokenInput | undefined, options: TanstackToolOptions): GithubTanstackTool<N> {\n const descriptor = GITHUB_TOOL_CATALOG[name]\n const resolveToken = withGithubGuardrails(token, options.guardrails)\n const inputSchema = options.context ? softenContextSchema(descriptor.inputSchema, options.context) : descriptor.inputSchema\n const resolveInput = (input: unknown): Record<string, unknown> => {\n const args = inputSchema.parse(input) as Record<string, unknown>\n return options.context ? mergeContextArgs(args, options.context) : args\n }\n const mode = options.needsApproval ?? (isGithubWriteToolName(name) ? true : false)\n const dryRun = options.dryRun && isGithubWriteToolName(name)\n const core = GITHUB_TOOL_CORES[name] as (input: Record<string, unknown> & { token: string }) => Promise<unknown>\n const built = toolDefinition({\n name,\n description: options.description ?? descriptor.description,\n inputSchema,\n // A dry-run write asks nobody; its result reports what approval would have decided instead. Reads still run, so they keep their approval.\n needsApproval: mode !== false && !dryRun,\n }).server(async (input) => {\n const resolved = resolveInput(input)\n if (dryRun) {\n // `'auto'` is decided by the approval middleware, which a dry-run write never reaches.\n return dryRunWrite(name, resolved, options.guardrails, () => mode === 'auto' ? undefined : { required: mode })\n }\n const attribution = name === 'createOrUpdateFile' || name === 'editFiles'\n ? { author: options.author, committer: options.committer, coAuthors: options.coAuthors }\n : name === 'mergePullRequest' || name === 'enablePullRequestAutoMerge' ? { coAuthors: options.coAuthors, branches: options.guardrails?.branches }\n : name === 'updatePullRequestBranch' ? { guardrails: options.guardrails } : {}\n return stripRateLimit(await core({ ...resolved, ...attribution, token: await resolveToken(githubTokenCall(name, resolved)) }))\n })\n if (mode === 'auto' && !dryRun) autoTools.set(built, { name, resolveInput })\n return built as unknown as GithubTanstackTool<N>\n}\n\nexport function toolFactory<N extends GithubToolName>(name: N) {\n return (token: GithubTokenInput, options: TanstackToolOptions = {}): GithubTanstackTool<N> => buildTool(name, token, options)\n}\n\n/** Create TanStack server tools, optionally restricted to one or more presets. */\nexport function createGithubTools<const P extends GithubToolPreset | readonly GithubToolPreset[] | undefined = undefined>(\n options: CreateGithubToolsOptions & { preset?: P } = {},\n): GithubTanstackTool<P extends GithubToolPreset ? PresetToolName<P> : P extends readonly GithubToolPreset[] ? PresetToolName<P[number]> : GithubToolName>[] {\n const allowed = options.preset ? resolvePresetTools(typeof options.preset === 'string' ? options.preset : [...options.preset]) : null\n const tools = ALL_GITHUB_TOOL_NAMES.filter(name => !allowed || allowed.has(name)).map(name => buildTool(name, options.token, {\n context: options.context,\n author: options.author,\n committer: options.committer,\n coAuthors: options.coAuthors,\n needsApproval: isGithubWriteToolName(name) ? resolveApprovalMode(name, options.requireApproval ?? true) : false,\n ...options.overrides?.[name],\n guardrails: options.guardrails,\n dryRun: options.dryRun,\n }))\n return tools as ReturnType<typeof createGithubTools<P>>\n}\n","import { boolean, decide, score } from '@tanstack/ai'\nimport type { EvaluateAdapter, ModelMessage } from '@tanstack/ai'\nimport { GITHUB_TOOL_CATALOG } from '../core/catalog'\nimport { INTENT_QUESTION, PRESET_PURPOSES, RISK_QUESTION, conversationState, rankPresets, requiresApproval, type RoutablePreset } from '../core/evaluation-policy'\nimport { PRESET_TOOLS } from '../core/presets'\nimport { githubToolsErrors } from '../core/errors'\nimport type { GithubToolName } from '../core/tool-names'\n\n/** Jev configuration for TanStack automatic approval and preset selection. */\nexport type GithubEvaluationOptions = {\n /** Defaults to vercelGatewayDecider('typesafe-ai/jev') using Gateway authentication. */\n adapter?: EvaluateAdapter\n /** Maximum risk on the 0–2 rubric. @default 1 */\n maxRisk?: number\n /** Minimum probability that the user requested the call. @default 0.6 */\n minIntent?: number\n /** Minimum probability for a preset to qualify. @default 0.7 */\n minPresetProbability?: number\n /** Maximum number of combined presets. @default 2 */\n maxPresets?: number\n}\n\n// `@tanstack/ai-vercel-gateway` 0.3 types only the `typesafe-ai/jev` alias, not pinned releases.\nconst TANSTACK_DEFAULT_EVALUATION_MODEL = 'typesafe-ai/jev'\n\nasync function evaluationAdapter(options: GithubEvaluationOptions) {\n if (options.adapter) return options.adapter\n const { vercelGatewayDecider } = await import('@tanstack/ai-vercel-gateway')\n return vercelGatewayDecider(TANSTACK_DEFAULT_EVALUATION_MODEL)\n}\n\nexport function latestUserText(messages: readonly ModelMessage[]): string {\n return conversationState(messages, messageText).request\n}\n\nfunction messageText(message: ModelMessage): string {\n if (typeof message.content === 'string') return message.content\n return message.content?.flatMap(part => part.type === 'text' ? [part.content] : []).join('\\n') ?? ''\n}\n\nfunction evaluationFailed(error: unknown, options: GithubEvaluationOptions, fallback: string, signal?: AbortSignal) {\n signal?.throwIfAborted()\n if (error instanceof Error && error.name === 'AbortError') throw error\n const cause = error instanceof Error ? error : new Error(String(error))\n console.warn('[github-tools]', githubToolsErrors.EVALUATION_FAILED({\n model: options.adapter?.model ?? TANSTACK_DEFAULT_EVALUATION_MODEL,\n fallback,\n detail: cause.message,\n cause,\n }))\n}\n\nexport async function needsAutoApproval(name: GithubToolName, input: unknown, messages: readonly ModelMessage[], options: GithubEvaluationOptions = {}, signal?: AbortSignal): Promise<boolean> {\n signal?.throwIfAborted()\n try {\n const result = await decide({\n adapter: await evaluationAdapter(options),\n state: { ...conversationState(messages, messageText), toolCall: { tool: name, description: GITHUB_TOOL_CATALOG[name].description, input } },\n questions: {\n risk: score({ instructions: RISK_QUESTION.instructions, levels: RISK_QUESTION.criteria }),\n intent: boolean(INTENT_QUESTION),\n },\n abortSignal: signal,\n })\n signal?.throwIfAborted()\n return requiresApproval(result.risk.score, result.intent.probability, options)\n } catch (error) {\n evaluationFailed(error, options, `asking approval for ${name}`, signal)\n return true\n }\n}\n\nexport async function selectPresets(messages: readonly ModelMessage[], options: GithubEvaluationOptions = {}, signal?: AbortSignal): Promise<RoutablePreset[]> {\n signal?.throwIfAborted()\n try {\n const presets = Object.keys(PRESET_PURPOSES) as RoutablePreset[]\n const result = await decide({\n adapter: await evaluationAdapter(options),\n state: conversationState(messages, messageText),\n questions: Object.fromEntries(presets.map(preset => [preset, boolean({\n instructions: 'Does handling this GitHub request need the tools of this preset?',\n criteria: { true: JSON.stringify({ purpose: PRESET_PURPOSES[preset], tools: [...PRESET_TOOLS[preset]] }) },\n })])),\n abortSignal: signal,\n })\n signal?.throwIfAborted()\n return rankPresets(Object.fromEntries(presets.map(preset => [preset, result[preset].probability])) as Record<RoutablePreset, number>, options)\n } catch (error) {\n evaluationFailed(error, options, 'using the repo-explorer preset', signal)\n return ['repo-explorer']\n }\n}\n","import { isDeepStrictEqual } from 'node:util'\nimport type { ChatMiddleware, ChatMiddlewareContext, Tool } from '@tanstack/ai'\nimport { autoTools } from './tools'\nimport { needsAutoApproval, type GithubEvaluationOptions } from './evaluation'\nimport { githubToolApproval } from './interrupts'\n\ntype Decision = { toolCallId: string, toolName: string, input: Record<string, unknown>, approved: boolean }\ntype RunState = { decisions: Decision[] }\n\n/** Options for GitHub approval middleware. Register githubToolApproval with chat(). */\nexport type GithubApprovalMiddlewareOptions = {\n tools: readonly Tool[]\n evaluation?: GithubEvaluationOptions\n}\n\n/** Evaluate automatic GitHub writes before execution and request review through githubToolApproval. */\nexport function createGithubApprovalMiddleware({ tools, evaluation }: GithubApprovalMiddlewareOptions): ChatMiddleware<unknown, typeof githubToolApproval> {\n const managed = new Map(tools.flatMap(tool => {\n const info = autoTools.get(tool)\n return info ? [[tool.name, { tool, ...info }] as const] : []\n }))\n const runs = new WeakMap<ChatMiddlewareContext, RunState>()\n const state = (ctx: ChatMiddlewareContext) => runs.get(ctx)!\n const decisionFor = (ctx: ChatMiddlewareContext, toolCallId: string | undefined, toolName: string, input: unknown) =>\n state(ctx).decisions.find(decision => decision.toolCallId === toolCallId && decision.toolName === toolName && isDeepStrictEqual(decision.input, input))\n\n return {\n name: 'github-tools.approval',\n onConfig(ctx, config) {\n if (ctx.phase === 'init') runs.set(ctx, { decisions: [] })\n return {\n tools: config.tools?.map(tool => {\n const info = managed.get(tool.name)\n if (!info || tool !== info.tool) return tool\n return {\n ...tool,\n needsApproval: false,\n execute: async (input, execution) => {\n const resolved = info.resolveInput(input)\n if (!decisionFor(ctx, execution?.toolCallId, tool.name, resolved)?.approved) {\n throw new Error(`GitHub tool ${tool.name} has no approval for this input.`)\n }\n return tool.execute!(resolved, execution)\n },\n }\n }),\n }\n },\n onInterruptResolution(ctx, resolutions) {\n for (const resolution of resolutions.for(githubToolApproval)) {\n const payload = resolution.request.payload\n if (!payload || !managed.has(payload.toolName)) continue\n state(ctx).decisions.push({ ...payload, approved: resolution.status === 'resolved' && resolution.response.approved })\n }\n },\n async onInterruptBoundary(ctx) {\n if (ctx.phase !== 'beforeTools') return\n const completed = new Set(ctx.messages.filter(message => message.role === 'tool').map(message => message.toolCallId))\n const calls = ctx.messages.flatMap(message => message.role === 'assistant' ? message.toolCalls ?? [] : []).filter(call => !completed.has(call.id))\n const interrupts = []\n for (const call of calls) {\n const info = managed.get(call.function.name)\n if (!info) continue\n const input = info.resolveInput(JSON.parse(call.function.arguments))\n if (decisionFor(ctx, call.id, info.name, input)) continue\n const needsApproval = await needsAutoApproval(info.name, input, ctx.messages, evaluation, ctx.signal)\n if (needsApproval) {\n interrupts.push(githubToolApproval.interrupt({\n key: call.id,\n reason: 'github-tool-approval',\n message: `Approve ${info.name}?`,\n payload: { toolCallId: call.id, toolName: info.name, input },\n }))\n } else {\n state(ctx).decisions.push({ toolCallId: call.id, toolName: info.name, input, approved: true })\n }\n }\n if (interrupts.length) return { interrupts }\n },\n onBeforeToolCall(ctx, call) {\n const info = managed.get(call.toolName)\n if (!info) return\n const decision = decisionFor(ctx, call.toolCallId, call.toolName, info.resolveInput(call.args))\n if (!decision) return { type: 'skip', result: { error: 'No approval recorded for this GitHub tool call and input.' } }\n if (!decision.approved) return { type: 'skip', result: { error: 'User denied this GitHub tool call.' } }\n },\n }\n}\n","import { chat, convertMessagesToModelMessages } from '@tanstack/ai'\nimport type { AnyTextAdapter, ChatMiddleware, ChatStream } from '@tanstack/ai'\nimport { resolveInstructions } from '../core/instructions'\nimport { PRESET_TOOLS, type GithubToolPreset } from '../core/presets'\nimport { createGithubTools, type CreateGithubToolsOptions } from './tools'\nimport { selectPresets, type GithubEvaluationOptions } from './evaluation'\nimport { createGithubApprovalMiddleware } from './approval'\nimport { githubToolApproval } from './interrupts'\n\ntype NativeOptions<A extends AnyTextAdapter> = Parameters<typeof chat<A, undefined, true>>[0]\ntype ChatSettings<A extends AnyTextAdapter> = Omit<NativeOptions<A>, 'tools' | 'messages' | 'systemPrompts' | 'context' | 'middleware' | 'interrupts' | 'stream' | 'outputSchema'>\n\n/** Configure a GitHub agent backed by TanStack chat(). */\nexport type CreateGithubAgentOptions<A extends AnyTextAdapter> = ChatSettings<A> & Omit<CreateGithubToolsOptions, 'preset'> & {\n /** Explicit presets or request-based selection with Jev. */\n preset?: GithubToolPreset | readonly GithubToolPreset[] | 'auto'\n /** Replace the default instructions; repository context is still appended. */\n instructions?: string\n /** Append to default instructions, unless instructions is supplied. */\n additionalInstructions?: string\n /** Evaluator adapter and thresholds for automatic routing and approval. */\n evaluation?: GithubEvaluationOptions\n /** Additional TanStack middleware. GitHub approval runs before these hooks. */\n middleware?: ChatMiddleware[]\n}\n\n/** One agent invocation, including TanStack cancellation and continuation options. */\nexport type GithubAgentCallOptions<A extends AnyTextAdapter> = Omit<Partial<ChatSettings<A>>, 'adapter'> & (\n | { prompt: string, messages?: never }\n | { messages: NonNullable<NativeOptions<A>['messages']>, prompt?: never }\n)\n\n/** A reusable, stateless TanStack GitHub agent. */\nexport type GithubAgent<A extends AnyTextAdapter> = {\n /** Collect TanStack's text result. Throws on interrupts; use stream() for approval UIs. */\n generate: (options: GithubAgentCallOptions<A>) => Promise<string>\n /** Run the tool loop as native TanStack events, including approval interrupts. */\n stream: (options: GithubAgentCallOptions<A>) => ChatStream\n}\n\n/** Create a GitHub agent with preset instructions, tools, and automatic approval middleware. */\nexport function createGithubAgent<A extends AnyTextAdapter>({\n token, preset, requireApproval, overrides, context, author, committer, coAuthors, guardrails, dryRun,\n instructions, additionalInstructions, evaluation, middleware = [], ...settings\n}: CreateGithubAgentOptions<A>): GithubAgent<A> {\n async function prepare(call: GithubAgentCallOptions<A>) {\n const { prompt, messages: suppliedMessages, ...callSettings } = call\n const messages = suppliedMessages ?? [{ role: 'user' as const, content: prompt! }]\n const modelMessages = convertMessagesToModelMessages(messages)\n const continuingAuto = preset === 'auto' && Boolean((callSettings.resume ?? settings.resume)?.length)\n const selected = preset === 'auto'\n ? continuingAuto ? 'repo-explorer' : await selectPresets(modelMessages, evaluation, (callSettings.abortController ?? settings.abortController)?.signal)\n : preset\n const availableTools = createGithubTools({ token, preset: continuingAuto ? undefined : selected, requireApproval, overrides, context, author, committer, coAuthors, guardrails, dryRun })\n const completed = new Set(modelMessages.filter(message => message.role === 'tool').map(message => message.toolCallId))\n const pendingNames = new Set(modelMessages.flatMap(message => message.role === 'assistant' ? message.toolCalls ?? [] : [])\n .filter(call => !completed.has(call.id)).map(call => call.function.name))\n const continuationNames = new Set<string>([...PRESET_TOOLS['repo-explorer'], ...pendingNames])\n const tools = continuingAuto ? availableTools.filter(tool => continuationNames.has(tool.name)) : availableTools\n const promptPreset: GithubToolPreset | GithubToolPreset[] | undefined = typeof selected === 'string' || selected === undefined\n ? selected\n : selected.length === 1 ? selected[0] : [...selected]\n return {\n ...settings,\n ...callSettings,\n messages,\n tools,\n systemPrompts: [resolveInstructions({ preset: continuingAuto ? undefined : promptPreset, instructions, additionalInstructions, context })],\n middleware: [createGithubApprovalMiddleware({ tools, evaluation }), ...middleware],\n interrupts: [githubToolApproval],\n }\n }\n\n return {\n async generate(call) {\n const prepared = await prepare(call)\n let interrupted = false\n const observeInterrupt: ChatMiddleware = {\n name: 'github-tools.generate',\n onChunk(_ctx, chunk) {\n if (chunk.type === 'RUN_FINISHED' && chunk.outcome?.type === 'interrupt') interrupted = true\n },\n }\n const text = await chat({ ...prepared, middleware: [observeInterrupt, ...prepared.middleware], stream: false })\n if (interrupted) throw new Error('GitHub agent requires review. Use stream() to handle approval interrupts and continuation.')\n return text\n },\n async *stream(call) {\n yield* chat({ ...await prepare(call), stream: true })\n },\n }\n}\n","import { toolFactory } from './tools'\n\n/** Create the TanStack `getRepository` server tool. */\nexport const getRepository = toolFactory('getRepository')\n\n/** Create the TanStack `listBranches` server tool. */\nexport const listBranches = toolFactory('listBranches')\n\n/** Create the TanStack `getFileContent` server tool. */\nexport const getFileContent = toolFactory('getFileContent')\n\n/** Create the TanStack `getRepositoryTree` server tool. */\nexport const getRepositoryTree = toolFactory('getRepositoryTree')\n\n/** Create the TanStack `createBranch` server tool. */\nexport const createBranch = toolFactory('createBranch')\n\n/** Create the TanStack `deleteBranch` server tool. */\nexport const deleteBranch = toolFactory('deleteBranch')\n\n/** Create the TanStack `forkRepository` server tool. */\nexport const forkRepository = toolFactory('forkRepository')\n\n/** Create the TanStack `createRepository` server tool. */\nexport const createRepository = toolFactory('createRepository')\n\n/** Create the TanStack `createOrUpdateFile` server tool. */\nexport const createOrUpdateFile = toolFactory('createOrUpdateFile')\n\n/** Create the TanStack `editFiles` server tool. */\nexport const editFiles = toolFactory('editFiles')\n\n/** Create the TanStack `listPullRequests` server tool. */\nexport const listPullRequests = toolFactory('listPullRequests')\n\n/** Create the TanStack `getPullRequest` server tool. */\nexport const getPullRequest = toolFactory('getPullRequest')\n\n/** Create the TanStack `createPullRequest` server tool. */\nexport const createPullRequest = toolFactory('createPullRequest')\n\n/** Create the TanStack `mergePullRequest` server tool. */\nexport const mergePullRequest = toolFactory('mergePullRequest')\n\n/** Create the TanStack `enablePullRequestAutoMerge` server tool. */\nexport const enablePullRequestAutoMerge = toolFactory('enablePullRequestAutoMerge')\n\n/** Create the TanStack `disablePullRequestAutoMerge` server tool. */\nexport const disablePullRequestAutoMerge = toolFactory('disablePullRequestAutoMerge')\n\n/** Create the TanStack `getBranchRules` server tool. */\nexport const getBranchRules = toolFactory('getBranchRules')\n\n/** Create the TanStack `getCollaboratorPermission` server tool. */\nexport const getCollaboratorPermission = toolFactory('getCollaboratorPermission')\n\n/** Create the TanStack `updatePullRequest` server tool. */\nexport const updatePullRequest = toolFactory('updatePullRequest')\n\n/** Create the TanStack `updatePullRequestBranch` server tool. */\nexport const updatePullRequestBranch = toolFactory('updatePullRequestBranch')\n\n/** Create the TanStack `addPullRequestComment` server tool. */\nexport const addPullRequestComment = toolFactory('addPullRequestComment')\n\n/** Create the TanStack `updatePullRequestComment` server tool. */\nexport const updatePullRequestComment = toolFactory('updatePullRequestComment')\n\n/** Create the TanStack `deletePullRequestComment` server tool. */\nexport const deletePullRequestComment = toolFactory('deletePullRequestComment')\n\n/** Create the TanStack `listPullRequestFiles` server tool. */\nexport const listPullRequestFiles = toolFactory('listPullRequestFiles')\n\n/** Create the TanStack `listPullRequestReviews` server tool. */\nexport const listPullRequestReviews = toolFactory('listPullRequestReviews')\n\n/** Create the TanStack `createPullRequestReview` server tool. */\nexport const createPullRequestReview = toolFactory('createPullRequestReview')\n\n/** Create the TanStack `listPullRequestReviewThreads` server tool. */\nexport const listPullRequestReviewThreads = toolFactory('listPullRequestReviewThreads')\n\n/** Create the TanStack `replyToReviewComment` server tool. */\nexport const replyToReviewComment = toolFactory('replyToReviewComment')\n\n/** Create the TanStack `resolveReviewThread` server tool. */\nexport const resolveReviewThread = toolFactory('resolveReviewThread')\n\n/** Create the TanStack `requestReviewers` server tool. */\nexport const requestReviewers = toolFactory('requestReviewers')\n\n/** Create the TanStack `getPullRequestContext` server tool. */\nexport const getPullRequestContext = toolFactory('getPullRequestContext')\n\n/** Create the TanStack `getIssueContext` server tool. */\nexport const getIssueContext = toolFactory('getIssueContext')\n\n/** Create the TanStack `listIssues` server tool. */\nexport const listIssues = toolFactory('listIssues')\n\n/** Create the TanStack `getIssue` server tool. */\nexport const getIssue = toolFactory('getIssue')\n\n/** Create the TanStack `listIssueComments` server tool. */\nexport const listIssueComments = toolFactory('listIssueComments')\n\n/** Create the TanStack `createIssue` server tool. */\nexport const createIssue = toolFactory('createIssue')\n\n/** Create the TanStack `addIssueComment` server tool. */\nexport const addIssueComment = toolFactory('addIssueComment')\n\n/** Create the TanStack `updateIssueComment` server tool. */\nexport const updateIssueComment = toolFactory('updateIssueComment')\n\n/** Create the TanStack `deleteIssueComment` server tool. */\nexport const deleteIssueComment = toolFactory('deleteIssueComment')\n\n/** Create the TanStack `closeIssue` server tool. */\nexport const closeIssue = toolFactory('closeIssue')\n\n/** Create the TanStack `updateIssue` server tool. */\nexport const updateIssue = toolFactory('updateIssue')\n\n/** Create the TanStack `listLabels` server tool. */\nexport const listLabels = toolFactory('listLabels')\n\n/** Create the TanStack `addLabels` server tool. */\nexport const addLabels = toolFactory('addLabels')\n\n/** Create the TanStack `removeLabel` server tool. */\nexport const removeLabel = toolFactory('removeLabel')\n\n/** Create the TanStack `createLabel` server tool. */\nexport const createLabel = toolFactory('createLabel')\n\n/** Create the TanStack `updateLabel` server tool. */\nexport const updateLabel = toolFactory('updateLabel')\n\n/** Create the TanStack `deleteLabel` server tool. */\nexport const deleteLabel = toolFactory('deleteLabel')\n\n/** Create the TanStack `addAssignees` server tool. */\nexport const addAssignees = toolFactory('addAssignees')\n\n/** Create the TanStack `removeAssignees` server tool. */\nexport const removeAssignees = toolFactory('removeAssignees')\n\n/** Create the TanStack `listMilestones` server tool. */\nexport const listMilestones = toolFactory('listMilestones')\n\n/** Create the TanStack `listSubIssues` server tool. */\nexport const listSubIssues = toolFactory('listSubIssues')\n\n/** Create the TanStack `addSubIssue` server tool. */\nexport const addSubIssue = toolFactory('addSubIssue')\n\n/** Create the TanStack `listIssueReactions` server tool. */\nexport const listIssueReactions = toolFactory('listIssueReactions')\n\n/** Create the TanStack `addIssueReaction` server tool. */\nexport const addIssueReaction = toolFactory('addIssueReaction')\n\n/** Create the TanStack `listCommentReactions` server tool. */\nexport const listCommentReactions = toolFactory('listCommentReactions')\n\n/** Create the TanStack `addCommentReaction` server tool. */\nexport const addCommentReaction = toolFactory('addCommentReaction')\n\n/** Create the TanStack `listDiscussions` server tool. */\nexport const listDiscussions = toolFactory('listDiscussions')\n\n/** Create the TanStack `getDiscussion` server tool. */\nexport const getDiscussion = toolFactory('getDiscussion')\n\n/** Create the TanStack `addDiscussionComment` server tool. */\nexport const addDiscussionComment = toolFactory('addDiscussionComment')\n\n/** Create the TanStack `listNotifications` server tool. */\nexport const listNotifications = toolFactory('listNotifications')\n\n/** Create the TanStack `markNotificationRead` server tool. */\nexport const markNotificationRead = toolFactory('markNotificationRead')\n\n/** Create the TanStack `searchCode` server tool. */\nexport const searchCode = toolFactory('searchCode')\n\n/** Create the TanStack `searchRepositories` server tool. */\nexport const searchRepositories = toolFactory('searchRepositories')\n\n/** Create the TanStack `searchIssues` server tool. */\nexport const searchIssues = toolFactory('searchIssues')\n\n/** Create the TanStack `listCommits` server tool. */\nexport const listCommits = toolFactory('listCommits')\n\n/** Create the TanStack `getCommit` server tool. */\nexport const getCommit = toolFactory('getCommit')\n\n/** Create the TanStack `getBlame` server tool. */\nexport const getBlame = toolFactory('getBlame')\n\n/** Create the TanStack `compareCommits` server tool. */\nexport const compareCommits = toolFactory('compareCommits')\n\n/** Create the TanStack `listGists` server tool. */\nexport const listGists = toolFactory('listGists')\n\n/** Create the TanStack `getGist` server tool. */\nexport const getGist = toolFactory('getGist')\n\n/** Create the TanStack `listGistComments` server tool. */\nexport const listGistComments = toolFactory('listGistComments')\n\n/** Create the TanStack `createGist` server tool. */\nexport const createGist = toolFactory('createGist')\n\n/** Create the TanStack `updateGist` server tool. */\nexport const updateGist = toolFactory('updateGist')\n\n/** Create the TanStack `deleteGist` server tool. */\nexport const deleteGist = toolFactory('deleteGist')\n\n/** Create the TanStack `createGistComment` server tool. */\nexport const createGistComment = toolFactory('createGistComment')\n\n/** Create the TanStack `listWorkflows` server tool. */\nexport const listWorkflows = toolFactory('listWorkflows')\n\n/** Create the TanStack `listWorkflowRuns` server tool. */\nexport const listWorkflowRuns = toolFactory('listWorkflowRuns')\n\n/** Create the TanStack `getWorkflowRun` server tool. */\nexport const getWorkflowRun = toolFactory('getWorkflowRun')\n\n/** Create the TanStack `listWorkflowJobs` server tool. */\nexport const listWorkflowJobs = toolFactory('listWorkflowJobs')\n\n/** Create the TanStack `getWorkflowJobLogs` server tool. */\nexport const getWorkflowJobLogs = toolFactory('getWorkflowJobLogs')\n\n/** Create the TanStack `triggerWorkflow` server tool. */\nexport const triggerWorkflow = toolFactory('triggerWorkflow')\n\n/** Create the TanStack `cancelWorkflowRun` server tool. */\nexport const cancelWorkflowRun = toolFactory('cancelWorkflowRun')\n\n/** Create the TanStack `rerunWorkflowRun` server tool. */\nexport const rerunWorkflowRun = toolFactory('rerunWorkflowRun')\n\n/** Create the TanStack `listCheckRuns` server tool. */\nexport const listCheckRuns = toolFactory('listCheckRuns')\n\n/** Create the TanStack `getCombinedStatus` server tool. */\nexport const getCombinedStatus = toolFactory('getCombinedStatus')\n\n/** Create the TanStack `createCommitStatus` server tool. */\nexport const createCommitStatus = toolFactory('createCommitStatus')\n\n/** Create the TanStack `getCiFailureContext` server tool. */\nexport const getCiFailureContext = toolFactory('getCiFailureContext')\n\n/** Create the TanStack `listReleases` server tool. */\nexport const listReleases = toolFactory('listReleases')\n\n/** Create the TanStack `getLatestRelease` server tool. */\nexport const getLatestRelease = toolFactory('getLatestRelease')\n\n/** Create the TanStack `getRelease` server tool. */\nexport const getRelease = toolFactory('getRelease')\n\n/** Create the TanStack `getReleaseContext` server tool. */\nexport const getReleaseContext = toolFactory('getReleaseContext')\n\n/** Create the TanStack `createRelease` server tool. */\nexport const createRelease = toolFactory('createRelease')\n\n/** Create the TanStack `updateRelease` server tool. */\nexport const updateRelease = toolFactory('updateRelease')\n\n/** Create the TanStack `deleteRelease` server tool. */\nexport const deleteRelease = toolFactory('deleteRelease')\n\n/** Create the TanStack `listCodeScanningAlerts` server tool. */\nexport const listCodeScanningAlerts = toolFactory('listCodeScanningAlerts')\n\n/** Create the TanStack `listDependabotAlerts` server tool. */\nexport const listDependabotAlerts = toolFactory('listDependabotAlerts')\n\n/** Create the TanStack `listSecretScanningAlerts` server tool. */\nexport const listSecretScanningAlerts = toolFactory('listSecretScanningAlerts')\n"],"mappings":";;;;;;;AAyDA,MAAa,4BAAY,IAAI,QAAqG;AAElI,SAAS,UAAoC,MAAS,OAAqC,SAAqD;CAC9I,MAAM,aAAa,oBAAoB;CACvC,MAAM,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AAa,oBAAoB,YAAY,mBAAmB;;AAGhE,MAAa,gBAAgB,YAAY,eAAe;;AAGxD,MAAa,mBAAmB,YAAY,kBAAkB;;AAG9D,MAAa,iBAAiB,YAAY,gBAAgB;;AAG1D,MAAa,mBAAmB,YAAY,kBAAkB;;AAG9D,MAAa,qBAAqB,YAAY,oBAAoB;;AAGlE,MAAa,kBAAkB,YAAY,iBAAiB;;AAG5D,MAAa,oBAAoB,YAAY,mBAAmB;;AAGhE,MAAa,mBAAmB,YAAY,kBAAkB;;AAG9D,MAAa,gBAAgB,YAAY,eAAe;;AAGxD,MAAa,oBAAoB,YAAY,mBAAmB;;AAGhE,MAAa,qBAAqB,YAAY,oBAAoB;;AAGlE,MAAa,sBAAsB,YAAY,qBAAqB;;AAGpE,MAAa,eAAe,YAAY,cAAc;;AAGtD,MAAa,mBAAmB,YAAY,kBAAkB;;AAG9D,MAAa,aAAa,YAAY,YAAY;;AAGlD,MAAa,oBAAoB,YAAY,mBAAmB;;AAGhE,MAAa,gBAAgB,YAAY,eAAe;;AAGxD,MAAa,gBAAgB,YAAY,eAAe;;AAGxD,MAAa,gBAAgB,YAAY,eAAe;;AAGxD,MAAa,yBAAyB,YAAY,wBAAwB;;AAG1E,MAAa,uBAAuB,YAAY,sBAAsB;;AAGtE,MAAa,2BAA2B,YAAY,0BAA0B"}
1
+ {"version":3,"file":"tanstack.mjs","names":[],"sources":["../src/tanstack/tools.ts","../src/tanstack/evaluation.ts","../src/tanstack/approval.ts","../src/tanstack/agent.ts","../src/tanstack/factories.ts"],"sourcesContent":["import { toolDefinition } from '@tanstack/ai'\nimport type { ServerTool } from '@tanstack/ai'\nimport type { z } from 'zod'\nimport { GITHUB_TOOL_CATALOG, isGithubWriteToolName } from '../core/catalog'\nimport { GITHUB_TOOL_CORES } from '../core/cores'\nimport { resolveApprovalMode, type ApprovalConfig, type ToolApprovalMode } from '../core/approval-policy'\nimport { mergeContextArgs, softenContextSchema, type GithubToolsContext } from '../core/context'\nimport { resolvePresetTools, type GithubToolPreset, type PresetToolName } from '../core/presets'\nimport { githubTokenCall, withGithubGuardrails, type GithubTokenInput } from '../core/token'\nimport type { GithubGuardrails } from '../core/guardrails'\nimport { dryRunWrite, type GithubDryRunResult } from '../core/dry-run'\nimport type { GithubToolName } from '../core/tool-names'\nimport { ALL_GITHUB_TOOL_NAMES } from '../core/tool-names'\nimport { stripRateLimit } from '../core/rate-limit'\nimport type { CommitIdentity } from '../types'\nimport type { GithubWriteToolName } from '../core/write-tools'\n\ntype Catalog = typeof GITHUB_TOOL_CATALOG\ntype CoreResult<N extends GithubToolName> = Awaited<ReturnType<(typeof GITHUB_TOOL_CORES)[N]>>\n\n/**\n * A TanStack server tool with the catalog's input schema and core return type. A write tool created\n * with `dryRun: true` returns a `GithubDryRunResult` instead, so narrow with `'dryRun' in result`.\n */\nexport type GithubTanstackTool<N extends GithubToolName = GithubToolName> = N extends GithubToolName\n ? Omit<ServerTool<Catalog[N]['inputSchema'], undefined, N, unknown, boolean>, 'execute'> & {\n execute: (input: z.input<Catalog[N]['inputSchema']>) => Promise<N extends GithubWriteToolName ? CoreResult<N> | GithubDryRunResult : CoreResult<N>>\n }\n : never\n\n/** Supported TanStack tool customizations. */\nexport type TanstackToolOverrides = {\n description?: string\n needsApproval?: boolean\n}\n\n/** Options shared by TanStack tool factories. */\nexport type TanstackToolOptions = Omit<TanstackToolOverrides, 'needsApproval'> & {\n needsApproval?: ToolApprovalMode\n context?: GithubToolsContext\n author?: CommitIdentity\n committer?: CommitIdentity\n coAuthors?: CommitIdentity[]\n /** Repositories and branches the tool may act on, checked before each call reaches GitHub. */\n guardrails?: GithubGuardrails\n /** Send no write to GitHub: a write returns a `GithubDryRunResult` instead, after the guardrails check. */\n dryRun?: boolean\n}\n\n/** Configuration for a native array of GitHub server tools. */\nexport type CreateGithubToolsOptions = Omit<TanstackToolOptions, 'description' | 'needsApproval'> & {\n token?: GithubTokenInput\n preset?: GithubToolPreset | readonly GithubToolPreset[]\n requireApproval?: ApprovalConfig\n overrides?: Partial<Record<GithubToolName, TanstackToolOverrides>>\n}\n\nexport const autoTools = new WeakMap<object, { name: GithubToolName, resolveInput: (input: unknown) => Record<string, unknown> }>()\n\nfunction buildTool<N extends GithubToolName>(name: N, token: GithubTokenInput | undefined, options: TanstackToolOptions): GithubTanstackTool<N> {\n const descriptor = GITHUB_TOOL_CATALOG[name]\n const resolveToken = withGithubGuardrails(token, options.guardrails)\n const inputSchema = options.context ? softenContextSchema(descriptor.inputSchema, options.context) : descriptor.inputSchema\n const resolveInput = (input: unknown): Record<string, unknown> => {\n const args = inputSchema.parse(input) as Record<string, unknown>\n return options.context ? mergeContextArgs(args, options.context) : args\n }\n const mode = options.needsApproval ?? (isGithubWriteToolName(name) ? true : false)\n const dryRun = options.dryRun && isGithubWriteToolName(name)\n const core = GITHUB_TOOL_CORES[name] as (input: Record<string, unknown> & { token: string }) => Promise<unknown>\n const built = toolDefinition({\n name,\n description: options.description ?? descriptor.description,\n inputSchema,\n // A dry-run write asks nobody; its result reports what approval would have decided instead. Reads still run, so they keep their approval.\n needsApproval: mode !== false && !dryRun,\n }).server(async (input) => {\n const resolved = resolveInput(input)\n if (dryRun) {\n // `'auto'` is decided by the approval middleware, which a dry-run write never reaches.\n return dryRunWrite(name, resolved, options.guardrails, () => mode === 'auto' ? undefined : { required: mode })\n }\n const attribution = name === 'createOrUpdateFile' || name === 'editFiles'\n ? { author: options.author, committer: options.committer, coAuthors: options.coAuthors }\n : name === 'mergePullRequest' || name === 'enablePullRequestAutoMerge' ? { coAuthors: options.coAuthors, branches: options.guardrails?.branches }\n : name === 'updatePullRequestBranch' ? { guardrails: options.guardrails } : {}\n return stripRateLimit(await core({ ...resolved, ...attribution, token: await resolveToken(githubTokenCall(name, resolved)) }))\n })\n if (mode === 'auto' && !dryRun) autoTools.set(built, { name, resolveInput })\n return built as unknown as GithubTanstackTool<N>\n}\n\nexport function toolFactory<N extends GithubToolName>(name: N) {\n return (token: GithubTokenInput, options: TanstackToolOptions = {}): GithubTanstackTool<N> => buildTool(name, token, options)\n}\n\n/** Create TanStack server tools, optionally restricted to one or more presets. */\nexport function createGithubTools<const P extends GithubToolPreset | readonly GithubToolPreset[] | undefined = undefined>(\n options: CreateGithubToolsOptions & { preset?: P } = {},\n): GithubTanstackTool<P extends GithubToolPreset ? PresetToolName<P> : P extends readonly GithubToolPreset[] ? PresetToolName<P[number]> : GithubToolName>[] {\n const allowed = options.preset ? resolvePresetTools(typeof options.preset === 'string' ? options.preset : [...options.preset]) : null\n const tools = ALL_GITHUB_TOOL_NAMES.filter(name => !allowed || allowed.has(name)).map(name => buildTool(name, options.token, {\n context: options.context,\n author: options.author,\n committer: options.committer,\n coAuthors: options.coAuthors,\n needsApproval: isGithubWriteToolName(name) ? resolveApprovalMode(name, options.requireApproval ?? true) : false,\n ...options.overrides?.[name],\n guardrails: options.guardrails,\n dryRun: options.dryRun,\n }))\n return tools as ReturnType<typeof createGithubTools<P>>\n}\n","import { boolean, decide, score } from '@tanstack/ai'\nimport type { EvaluateAdapter, ModelMessage } from '@tanstack/ai'\nimport { GITHUB_TOOL_CATALOG } from '../core/catalog'\nimport { INTENT_QUESTION, PRESET_PURPOSES, RISK_QUESTION, conversationState, rankPresets, requiresApproval, type RoutablePreset } from '../core/evaluation-policy'\nimport { PRESET_TOOLS } from '../core/presets'\nimport { githubToolsErrors } from '../core/errors'\nimport type { GithubToolName } from '../core/tool-names'\n\n/** Jev configuration for TanStack automatic approval and preset selection. */\nexport type GithubEvaluationOptions = {\n /** Defaults to vercelGatewayDecider('typesafe-ai/jev') using Gateway authentication. */\n adapter?: EvaluateAdapter\n /** Maximum risk on the 0–2 rubric. @default 1 */\n maxRisk?: number\n /** Minimum probability that the user requested the call. @default 0.6 */\n minIntent?: number\n /** Minimum probability for a preset to qualify. @default 0.7 */\n minPresetProbability?: number\n /** Maximum number of combined presets. @default 2 */\n maxPresets?: number\n}\n\n// `@tanstack/ai-vercel-gateway` 0.3 types only the `typesafe-ai/jev` alias, not pinned releases.\nconst TANSTACK_DEFAULT_EVALUATION_MODEL = 'typesafe-ai/jev'\n\nasync function evaluationAdapter(options: GithubEvaluationOptions) {\n if (options.adapter) return options.adapter\n const { vercelGatewayDecider } = await import('@tanstack/ai-vercel-gateway')\n return vercelGatewayDecider(TANSTACK_DEFAULT_EVALUATION_MODEL)\n}\n\nexport function latestUserText(messages: readonly ModelMessage[]): string {\n return conversationState(messages, messageText).request\n}\n\nfunction messageText(message: ModelMessage): string {\n if (typeof message.content === 'string') return message.content\n return message.content?.flatMap(part => part.type === 'text' ? [part.content] : []).join('\\n') ?? ''\n}\n\nfunction evaluationFailed(error: unknown, options: GithubEvaluationOptions, fallback: string, signal?: AbortSignal) {\n signal?.throwIfAborted()\n if (error instanceof Error && error.name === 'AbortError') throw error\n const cause = error instanceof Error ? error : new Error(String(error))\n console.warn('[github-tools]', githubToolsErrors.EVALUATION_FAILED({\n model: options.adapter?.model ?? TANSTACK_DEFAULT_EVALUATION_MODEL,\n fallback,\n detail: cause.message,\n cause,\n }))\n}\n\nexport async function needsAutoApproval(name: GithubToolName, input: unknown, messages: readonly ModelMessage[], options: GithubEvaluationOptions = {}, signal?: AbortSignal): Promise<boolean> {\n signal?.throwIfAborted()\n try {\n const result = await decide({\n adapter: await evaluationAdapter(options),\n state: { ...conversationState(messages, messageText), toolCall: { tool: name, description: GITHUB_TOOL_CATALOG[name].description, input } },\n questions: {\n risk: score({ instructions: RISK_QUESTION.instructions, levels: RISK_QUESTION.criteria }),\n intent: boolean(INTENT_QUESTION),\n },\n abortSignal: signal,\n })\n signal?.throwIfAborted()\n return requiresApproval(result.risk.score, result.intent.probability, options)\n } catch (error) {\n evaluationFailed(error, options, `asking approval for ${name}`, signal)\n return true\n }\n}\n\nexport async function selectPresets(messages: readonly ModelMessage[], options: GithubEvaluationOptions = {}, signal?: AbortSignal): Promise<RoutablePreset[]> {\n signal?.throwIfAborted()\n try {\n const presets = Object.keys(PRESET_PURPOSES) as RoutablePreset[]\n const result = await decide({\n adapter: await evaluationAdapter(options),\n state: conversationState(messages, messageText),\n questions: Object.fromEntries(presets.map(preset => [preset, boolean({\n instructions: 'Does handling this GitHub request need the tools of this preset?',\n criteria: { true: JSON.stringify({ purpose: PRESET_PURPOSES[preset], tools: [...PRESET_TOOLS[preset]] }) },\n })])),\n abortSignal: signal,\n })\n signal?.throwIfAborted()\n return rankPresets(Object.fromEntries(presets.map(preset => [preset, result[preset].probability])) as Record<RoutablePreset, number>, options)\n } catch (error) {\n evaluationFailed(error, options, 'using the repo-explorer preset', signal)\n return ['repo-explorer']\n }\n}\n","import { isDeepStrictEqual } from 'node:util'\nimport type { ChatMiddleware, ChatMiddlewareContext, Tool } from '@tanstack/ai'\nimport { autoTools } from './tools'\nimport { needsAutoApproval, type GithubEvaluationOptions } from './evaluation'\nimport { githubToolApproval } from './interrupts'\n\ntype Decision = { toolCallId: string, toolName: string, input: Record<string, unknown>, approved: boolean }\ntype RunState = { decisions: Decision[] }\n\n/** Options for GitHub approval middleware. Register githubToolApproval with chat(). */\nexport type GithubApprovalMiddlewareOptions = {\n tools: readonly Tool[]\n evaluation?: GithubEvaluationOptions\n}\n\n/** Evaluate automatic GitHub writes before execution and request review through githubToolApproval. */\nexport function createGithubApprovalMiddleware({ tools, evaluation }: GithubApprovalMiddlewareOptions): ChatMiddleware<unknown, typeof githubToolApproval> {\n const managed = new Map(tools.flatMap(tool => {\n const info = autoTools.get(tool)\n return info ? [[tool.name, { tool, ...info }] as const] : []\n }))\n const runs = new WeakMap<ChatMiddlewareContext, RunState>()\n const state = (ctx: ChatMiddlewareContext) => runs.get(ctx)!\n const decisionFor = (ctx: ChatMiddlewareContext, toolCallId: string | undefined, toolName: string, input: unknown) =>\n state(ctx).decisions.find(decision => decision.toolCallId === toolCallId && decision.toolName === toolName && isDeepStrictEqual(decision.input, input))\n\n return {\n name: 'github-tools.approval',\n onConfig(ctx, config) {\n if (ctx.phase === 'init') runs.set(ctx, { decisions: [] })\n return {\n tools: config.tools?.map(tool => {\n const info = managed.get(tool.name)\n if (!info || tool !== info.tool) return tool\n return {\n ...tool,\n needsApproval: false,\n execute: async (input, execution) => {\n const resolved = info.resolveInput(input)\n if (!decisionFor(ctx, execution?.toolCallId, tool.name, resolved)?.approved) {\n throw new Error(`GitHub tool ${tool.name} has no approval for this input.`)\n }\n return tool.execute!(resolved, execution)\n },\n }\n }),\n }\n },\n onInterruptResolution(ctx, resolutions) {\n for (const resolution of resolutions.for(githubToolApproval)) {\n const payload = resolution.request.payload\n if (!payload || !managed.has(payload.toolName)) continue\n state(ctx).decisions.push({ ...payload, approved: resolution.status === 'resolved' && resolution.response.approved })\n }\n },\n async onInterruptBoundary(ctx) {\n if (ctx.phase !== 'beforeTools') return\n const completed = new Set(ctx.messages.filter(message => message.role === 'tool').map(message => message.toolCallId))\n const calls = ctx.messages.flatMap(message => message.role === 'assistant' ? message.toolCalls ?? [] : []).filter(call => !completed.has(call.id))\n const interrupts = []\n for (const call of calls) {\n const info = managed.get(call.function.name)\n if (!info) continue\n const input = info.resolveInput(JSON.parse(call.function.arguments))\n if (decisionFor(ctx, call.id, info.name, input)) continue\n const needsApproval = await needsAutoApproval(info.name, input, ctx.messages, evaluation, ctx.signal)\n if (needsApproval) {\n interrupts.push(githubToolApproval.interrupt({\n key: call.id,\n reason: 'github-tool-approval',\n message: `Approve ${info.name}?`,\n payload: { toolCallId: call.id, toolName: info.name, input },\n }))\n } else {\n state(ctx).decisions.push({ toolCallId: call.id, toolName: info.name, input, approved: true })\n }\n }\n if (interrupts.length) return { interrupts }\n },\n onBeforeToolCall(ctx, call) {\n const info = managed.get(call.toolName)\n if (!info) return\n const decision = decisionFor(ctx, call.toolCallId, call.toolName, info.resolveInput(call.args))\n if (!decision) return { type: 'skip', result: { error: 'No approval recorded for this GitHub tool call and input.' } }\n if (!decision.approved) return { type: 'skip', result: { error: 'User denied this GitHub tool call.' } }\n },\n }\n}\n","import { chat, convertMessagesToModelMessages } from '@tanstack/ai'\nimport type { AnyTextAdapter, ChatMiddleware, ChatStream } from '@tanstack/ai'\nimport { resolveInstructions } from '../core/instructions'\nimport { PRESET_TOOLS, type GithubToolPreset } from '../core/presets'\nimport { createGithubTools, type CreateGithubToolsOptions } from './tools'\nimport { selectPresets, type GithubEvaluationOptions } from './evaluation'\nimport { createGithubApprovalMiddleware } from './approval'\nimport { githubToolApproval } from './interrupts'\n\ntype NativeOptions<A extends AnyTextAdapter> = Parameters<typeof chat<A, undefined, true>>[0]\ntype ChatSettings<A extends AnyTextAdapter> = Omit<NativeOptions<A>, 'tools' | 'messages' | 'systemPrompts' | 'context' | 'middleware' | 'interrupts' | 'stream' | 'outputSchema'>\n\n/** Configure a GitHub agent backed by TanStack chat(). */\nexport type CreateGithubAgentOptions<A extends AnyTextAdapter> = ChatSettings<A> & Omit<CreateGithubToolsOptions, 'preset'> & {\n /** Explicit presets or request-based selection with Jev. */\n preset?: GithubToolPreset | readonly GithubToolPreset[] | 'auto'\n /** Replace the default instructions; repository context is still appended. */\n instructions?: string\n /** Append to default instructions, unless instructions is supplied. */\n additionalInstructions?: string\n /** Evaluator adapter and thresholds for automatic routing and approval. */\n evaluation?: GithubEvaluationOptions\n /** Additional TanStack middleware. GitHub approval runs before these hooks. */\n middleware?: ChatMiddleware[]\n}\n\n/** One agent invocation, including TanStack cancellation and continuation options. */\nexport type GithubAgentCallOptions<A extends AnyTextAdapter> = Omit<Partial<ChatSettings<A>>, 'adapter'> & (\n | { prompt: string, messages?: never }\n | { messages: NonNullable<NativeOptions<A>['messages']>, prompt?: never }\n)\n\n/** A reusable, stateless TanStack GitHub agent. */\nexport type GithubAgent<A extends AnyTextAdapter> = {\n /** Collect TanStack's text result. Throws on interrupts; use stream() for approval UIs. */\n generate: (options: GithubAgentCallOptions<A>) => Promise<string>\n /** Run the tool loop as native TanStack events, including approval interrupts. */\n stream: (options: GithubAgentCallOptions<A>) => ChatStream\n}\n\n/** Create a GitHub agent with preset instructions, tools, and automatic approval middleware. */\nexport function createGithubAgent<A extends AnyTextAdapter>({\n token, preset, requireApproval, overrides, context, author, committer, coAuthors, guardrails, dryRun,\n instructions, additionalInstructions, evaluation, middleware = [], ...settings\n}: CreateGithubAgentOptions<A>): GithubAgent<A> {\n async function prepare(call: GithubAgentCallOptions<A>) {\n const { prompt, messages: suppliedMessages, ...callSettings } = call\n const messages = suppliedMessages ?? [{ role: 'user' as const, content: prompt! }]\n const modelMessages = convertMessagesToModelMessages(messages)\n const continuingAuto = preset === 'auto' && Boolean((callSettings.resume ?? settings.resume)?.length)\n const selected = preset === 'auto'\n ? continuingAuto ? 'repo-explorer' : await selectPresets(modelMessages, evaluation, (callSettings.abortController ?? settings.abortController)?.signal)\n : preset\n const availableTools = createGithubTools({ token, preset: continuingAuto ? undefined : selected, requireApproval, overrides, context, author, committer, coAuthors, guardrails, dryRun })\n const completed = new Set(modelMessages.filter(message => message.role === 'tool').map(message => message.toolCallId))\n const pendingNames = new Set(modelMessages.flatMap(message => message.role === 'assistant' ? message.toolCalls ?? [] : [])\n .filter(call => !completed.has(call.id)).map(call => call.function.name))\n const continuationNames = new Set<string>([...PRESET_TOOLS['repo-explorer'], ...pendingNames])\n const tools = continuingAuto ? availableTools.filter(tool => continuationNames.has(tool.name)) : availableTools\n const promptPreset: GithubToolPreset | GithubToolPreset[] | undefined = typeof selected === 'string' || selected === undefined\n ? selected\n : selected.length === 1 ? selected[0] : [...selected]\n return {\n ...settings,\n ...callSettings,\n messages,\n tools,\n systemPrompts: [resolveInstructions({ preset: continuingAuto ? undefined : promptPreset, instructions, additionalInstructions, context })],\n middleware: [createGithubApprovalMiddleware({ tools, evaluation }), ...middleware],\n interrupts: [githubToolApproval],\n }\n }\n\n return {\n async generate(call) {\n const prepared = await prepare(call)\n let interrupted = false\n const observeInterrupt: ChatMiddleware = {\n name: 'github-tools.generate',\n onChunk(_ctx, chunk) {\n if (chunk.type === 'RUN_FINISHED' && chunk.outcome?.type === 'interrupt') interrupted = true\n },\n }\n const text = await chat({ ...prepared, middleware: [observeInterrupt, ...prepared.middleware], stream: false })\n if (interrupted) throw new Error('GitHub agent requires review. Use stream() to handle approval interrupts and continuation.')\n return text\n },\n async *stream(call) {\n yield* chat({ ...await prepare(call), stream: true })\n },\n }\n}\n","import { toolFactory } from './tools'\n\n/** Create the TanStack `getRepository` server tool. */\nexport const getRepository = toolFactory('getRepository')\n\n/** Create the TanStack `listBranches` server tool. */\nexport const listBranches = toolFactory('listBranches')\n\n/** Create the TanStack `getFileContent` server tool. */\nexport const getFileContent = toolFactory('getFileContent')\n\n/** Create the TanStack `getRepositoryTree` server tool. */\nexport const getRepositoryTree = toolFactory('getRepositoryTree')\n\n/** Create the TanStack `createBranch` server tool. */\nexport const createBranch = toolFactory('createBranch')\n\n/** Create the TanStack `deleteBranch` server tool. */\nexport const deleteBranch = toolFactory('deleteBranch')\n\n/** Create the TanStack `forkRepository` server tool. */\nexport const forkRepository = toolFactory('forkRepository')\n\n/** Create the TanStack `createRepository` server tool. */\nexport const createRepository = toolFactory('createRepository')\n\n/** Create the TanStack `createOrUpdateFile` server tool. */\nexport const createOrUpdateFile = toolFactory('createOrUpdateFile')\n\n/** Create the TanStack `editFiles` server tool. */\nexport const editFiles = toolFactory('editFiles')\n\n/** Create the TanStack `listPullRequests` server tool. */\nexport const listPullRequests = toolFactory('listPullRequests')\n\n/** Create the TanStack `getPullRequest` server tool. */\nexport const getPullRequest = toolFactory('getPullRequest')\n\n/** Create the TanStack `createPullRequest` server tool. */\nexport const createPullRequest = toolFactory('createPullRequest')\n\n/** Create the TanStack `mergePullRequest` server tool. */\nexport const mergePullRequest = toolFactory('mergePullRequest')\n\n/** Create the TanStack `enablePullRequestAutoMerge` server tool. */\nexport const enablePullRequestAutoMerge = toolFactory('enablePullRequestAutoMerge')\n\n/** Create the TanStack `disablePullRequestAutoMerge` server tool. */\nexport const disablePullRequestAutoMerge = toolFactory('disablePullRequestAutoMerge')\n\n/** Create the TanStack `getBranchRules` server tool. */\nexport const getBranchRules = toolFactory('getBranchRules')\n\n/** Create the TanStack `getCollaboratorPermission` server tool. */\nexport const getCollaboratorPermission = toolFactory('getCollaboratorPermission')\n\n/** Create the TanStack `updatePullRequest` server tool. */\nexport const updatePullRequest = toolFactory('updatePullRequest')\n\n/** Create the TanStack `updatePullRequestBranch` server tool. */\nexport const updatePullRequestBranch = toolFactory('updatePullRequestBranch')\n\n/** Create the TanStack `addPullRequestComment` server tool. */\nexport const addPullRequestComment = toolFactory('addPullRequestComment')\n\n/** Create the TanStack `updatePullRequestComment` server tool. */\nexport const updatePullRequestComment = toolFactory('updatePullRequestComment')\n\n/** Create the TanStack `deletePullRequestComment` server tool. */\nexport const deletePullRequestComment = toolFactory('deletePullRequestComment')\n\n/** Create the TanStack `listPullRequestFiles` server tool. */\nexport const listPullRequestFiles = toolFactory('listPullRequestFiles')\n\n/** Create the TanStack `listPullRequestReviews` server tool. */\nexport const listPullRequestReviews = toolFactory('listPullRequestReviews')\n\n/** Create the TanStack `createPullRequestReview` server tool. */\nexport const createPullRequestReview = toolFactory('createPullRequestReview')\n\n/** Create the TanStack `listPullRequestReviewThreads` server tool. */\nexport const listPullRequestReviewThreads = toolFactory('listPullRequestReviewThreads')\n\n/** Create the TanStack `replyToReviewComment` server tool. */\nexport const replyToReviewComment = toolFactory('replyToReviewComment')\n\n/** Create the TanStack `resolveReviewThread` server tool. */\nexport const resolveReviewThread = toolFactory('resolveReviewThread')\n\n/** Create the TanStack `requestReviewers` server tool. */\nexport const requestReviewers = toolFactory('requestReviewers')\n\n/** Create the TanStack `getPullRequestContext` server tool. */\nexport const getPullRequestContext = toolFactory('getPullRequestContext')\n\n/** Create the TanStack `getIssueContext` server tool. */\nexport const getIssueContext = toolFactory('getIssueContext')\n\n/** Create the TanStack `listIssues` server tool. */\nexport const listIssues = toolFactory('listIssues')\n\n/** Create the TanStack `getIssue` server tool. */\nexport const getIssue = toolFactory('getIssue')\n\n/** Create the TanStack `listIssueComments` server tool. */\nexport const listIssueComments = toolFactory('listIssueComments')\n\n/** Create the TanStack `createIssue` server tool. */\nexport const createIssue = toolFactory('createIssue')\n\n/** Create the TanStack `addIssueComment` server tool. */\nexport const addIssueComment = toolFactory('addIssueComment')\n\n/** Create the TanStack `updateIssueComment` server tool. */\nexport const updateIssueComment = toolFactory('updateIssueComment')\n\n/** Create the TanStack `deleteIssueComment` server tool. */\nexport const deleteIssueComment = toolFactory('deleteIssueComment')\n\n/** Create the TanStack `closeIssue` server tool. */\nexport const closeIssue = toolFactory('closeIssue')\n\n/** Create the TanStack `updateIssue` server tool. */\nexport const updateIssue = toolFactory('updateIssue')\n\n/** Create the TanStack `listLabels` server tool. */\nexport const listLabels = toolFactory('listLabels')\n\n/** Create the TanStack `addLabels` server tool. */\nexport const addLabels = toolFactory('addLabels')\n\n/** Create the TanStack `removeLabel` server tool. */\nexport const removeLabel = toolFactory('removeLabel')\n\n/** Create the TanStack `createLabel` server tool. */\nexport const createLabel = toolFactory('createLabel')\n\n/** Create the TanStack `updateLabel` server tool. */\nexport const updateLabel = toolFactory('updateLabel')\n\n/** Create the TanStack `deleteLabel` server tool. */\nexport const deleteLabel = toolFactory('deleteLabel')\n\n/** Create the TanStack `addAssignees` server tool. */\nexport const addAssignees = toolFactory('addAssignees')\n\n/** Create the TanStack `removeAssignees` server tool. */\nexport const removeAssignees = toolFactory('removeAssignees')\n\n/** Create the TanStack `listMilestones` server tool. */\nexport const listMilestones = toolFactory('listMilestones')\n\n/** Create the TanStack `listSubIssues` server tool. */\nexport const listSubIssues = toolFactory('listSubIssues')\n\n/** Create the TanStack `addSubIssue` server tool. */\nexport const addSubIssue = toolFactory('addSubIssue')\n\n/** Create the TanStack `listIssueReactions` server tool. */\nexport const listIssueReactions = toolFactory('listIssueReactions')\n\n/** Create the TanStack `addIssueReaction` server tool. */\nexport const addIssueReaction = toolFactory('addIssueReaction')\n\n/** Create the TanStack `listCommentReactions` server tool. */\nexport const listCommentReactions = toolFactory('listCommentReactions')\n\n/** Create the TanStack `addCommentReaction` server tool. */\nexport const addCommentReaction = toolFactory('addCommentReaction')\n\n/** Create the TanStack `listDiscussions` server tool. */\nexport const listDiscussions = toolFactory('listDiscussions')\n\n/** Create the TanStack `getDiscussion` server tool. */\nexport const getDiscussion = toolFactory('getDiscussion')\n\n/** Create the TanStack `addDiscussionComment` server tool. */\nexport const addDiscussionComment = toolFactory('addDiscussionComment')\n\n/** Create the TanStack `listNotifications` server tool. */\nexport const listNotifications = toolFactory('listNotifications')\n\n/** Create the TanStack `markNotificationRead` server tool. */\nexport const markNotificationRead = toolFactory('markNotificationRead')\n\n/** Create the TanStack `searchCode` server tool. */\nexport const searchCode = toolFactory('searchCode')\n\n/** Create the TanStack `searchRepositories` server tool. */\nexport const searchRepositories = toolFactory('searchRepositories')\n\n/** Create the TanStack `searchIssues` server tool. */\nexport const searchIssues = toolFactory('searchIssues')\n\n/** Create the TanStack `listCommits` server tool. */\nexport const listCommits = toolFactory('listCommits')\n\n/** Create the TanStack `getCommit` server tool. */\nexport const getCommit = toolFactory('getCommit')\n\n/** Create the TanStack `getBlame` server tool. */\nexport const getBlame = toolFactory('getBlame')\n\n/** Create the TanStack `compareCommits` server tool. */\nexport const compareCommits = toolFactory('compareCommits')\n\n/** Create the TanStack `listGists` server tool. */\nexport const listGists = toolFactory('listGists')\n\n/** Create the TanStack `getGist` server tool. */\nexport const getGist = toolFactory('getGist')\n\n/** Create the TanStack `listGistComments` server tool. */\nexport const listGistComments = toolFactory('listGistComments')\n\n/** Create the TanStack `createGist` server tool. */\nexport const createGist = toolFactory('createGist')\n\n/** Create the TanStack `updateGist` server tool. */\nexport const updateGist = toolFactory('updateGist')\n\n/** Create the TanStack `deleteGist` server tool. */\nexport const deleteGist = toolFactory('deleteGist')\n\n/** Create the TanStack `createGistComment` server tool. */\nexport const createGistComment = toolFactory('createGistComment')\n\n/** Create the TanStack `listWorkflows` server tool. */\nexport const listWorkflows = toolFactory('listWorkflows')\n\n/** Create the TanStack `listWorkflowRuns` server tool. */\nexport const listWorkflowRuns = toolFactory('listWorkflowRuns')\n\n/** Create the TanStack `getWorkflowRun` server tool. */\nexport const getWorkflowRun = toolFactory('getWorkflowRun')\n\n/** Create the TanStack `listWorkflowJobs` server tool. */\nexport const listWorkflowJobs = toolFactory('listWorkflowJobs')\n\n/** Create the TanStack `getWorkflowJobLogs` server tool. */\nexport const getWorkflowJobLogs = toolFactory('getWorkflowJobLogs')\n\n/** Create the TanStack `triggerWorkflow` server tool. */\nexport const triggerWorkflow = toolFactory('triggerWorkflow')\n\n/** Create the TanStack `cancelWorkflowRun` server tool. */\nexport const cancelWorkflowRun = toolFactory('cancelWorkflowRun')\n\n/** Create the TanStack `rerunWorkflowRun` server tool. */\nexport const rerunWorkflowRun = toolFactory('rerunWorkflowRun')\n\n/** Create the TanStack `listCheckRuns` server tool. */\nexport const listCheckRuns = toolFactory('listCheckRuns')\n\n/** Create the TanStack `getCombinedStatus` server tool. */\nexport const getCombinedStatus = toolFactory('getCombinedStatus')\n\n/** Create the TanStack `createCommitStatus` server tool. */\nexport const createCommitStatus = toolFactory('createCommitStatus')\n\n/** Create the TanStack `getCiFailureContext` server tool. */\nexport const getCiFailureContext = toolFactory('getCiFailureContext')\n\n/** Create the TanStack `listReleases` server tool. */\nexport const listReleases = toolFactory('listReleases')\n\n/** Create the TanStack `getLatestRelease` server tool. */\nexport const getLatestRelease = toolFactory('getLatestRelease')\n\n/** Create the TanStack `getRelease` server tool. */\nexport const getRelease = toolFactory('getRelease')\n\n/** Create the TanStack `getReleaseContext` server tool. */\nexport const getReleaseContext = toolFactory('getReleaseContext')\n\n/** Create the TanStack `createRelease` server tool. */\nexport const createRelease = toolFactory('createRelease')\n\n/** Create the TanStack `updateRelease` server tool. */\nexport const updateRelease = toolFactory('updateRelease')\n\n/** Create the TanStack `deleteRelease` server tool. */\nexport const deleteRelease = toolFactory('deleteRelease')\n\n/** Create the TanStack `listCodeScanningAlerts` server tool. */\nexport const listCodeScanningAlerts = toolFactory('listCodeScanningAlerts')\n\n/** Create the TanStack `listDependabotAlerts` server tool. */\nexport const listDependabotAlerts = toolFactory('listDependabotAlerts')\n\n/** Create the TanStack `listSecretScanningAlerts` server tool. */\nexport const listSecretScanningAlerts = toolFactory('listSecretScanningAlerts')\n"],"mappings":";;;;;;;AAyDA,MAAa,4BAAY,IAAI,QAAqG;AAElI,SAAS,UAAoC,MAAS,OAAqC,SAAqD;CAC9I,MAAM,aAAa,oBAAoB;CACvC,MAAM,eAAe,qBAAqB,OAAO,QAAQ,UAAU;CACnE,MAAM,cAAc,QAAQ,UAAU,oBAAoB,WAAW,aAAa,QAAQ,OAAO,IAAI,WAAW;CAChH,MAAM,gBAAgB,UAA4C;EAChE,MAAM,OAAO,YAAY,MAAM,KAAK;EACpC,OAAO,QAAQ,UAAU,iBAAiB,MAAM,QAAQ,OAAO,IAAI;CACrE;CACA,MAAM,OAAO,QAAQ,kBAAkB,sBAAsB,IAAI,IAAI,OAAO;CAC5E,MAAM,SAAS,QAAQ,UAAU,sBAAsB,IAAI;CAC3D,MAAM,OAAO,kBAAkB;CAC/B,MAAM,QAAQ,eAAe;EAC3B;EACA,aAAa,QAAQ,eAAe,WAAW;EAC/C;EAEA,eAAe,SAAS,SAAS,CAAC;CACpC,CAAC,CAAC,CAAC,OAAO,OAAO,UAAU;EACzB,MAAM,WAAW,aAAa,KAAK;EACnC,IAAI,QAEF,OAAO,YAAY,MAAM,UAAU,QAAQ,kBAAkB,SAAS,SAAS,KAAA,IAAY,EAAE,UAAU,KAAK,CAAC;EAE/G,MAAM,cAAc,SAAS,wBAAwB,SAAS,cAC1D;GAAE,QAAQ,QAAQ;GAAQ,WAAW,QAAQ;GAAW,WAAW,QAAQ;EAAU,IACrF,SAAS,sBAAsB,SAAS,+BAA+B;GAAE,WAAW,QAAQ;GAAW,UAAU,QAAQ,YAAY;EAAS,IAC9I,SAAS,4BAA4B,EAAE,YAAY,QAAQ,WAAW,IAAI,CAAC;EAC/E,OAAO,eAAe,MAAM,KAAK;GAAE,GAAG;GAAU,GAAG;GAAa,OAAO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{ T as GITHUB_TOOL_CATALOG, Za as githubToolsErrors, v as PRESET_TOOLS, w as ALL_GITHUB_TOOL_NAMES, y as resolvePresetTools } from "./write-tools-BR29EOoM.mjs";
2
2
  import { ConnectError, ConnectorInstallationRequiredError, UserAuthorizationRequiredError, getToken } from "@vercel/connect";
3
- //#region src/connect/connector.ts
3
+ // src/connect/connector.ts
4
4
  /** Resolves a {@link GithubConnectorInput} to a connector name string. */
5
5
  async function resolveGithubConnector(connector) {
6
6
  return typeof connector === "function" ? await connector() : connector;
7
7
  }
8
- //#endregion
9
- //#region src/connect/scopes.ts
8
+ // src/connect/scopes.ts
10
9
  /** Stable scope order for tool-derived unions (tests + Connect payloads). */
11
10
  const SCOPE_ORDER = [
12
11
  "contents:read",
@@ -107,8 +106,7 @@ function connectGithubScopesForSelection(selection = {}) {
107
106
  if (!include && !exclude) return connectGithubScopesForPreset(preset);
108
107
  return connectGithubScopesForTools(resolveSelectedToolNames(selection));
109
108
  }
110
- //#endregion
111
- //#region src/connect/params.ts
109
+ // src/connect/params.ts
112
110
  function resolveGithubConnectTokenParams(options = {}) {
113
111
  const { preset, include, exclude, params } = options;
114
112
  return buildConnectTokenParams(params?.scopes ?? connectGithubScopesForSelection({
@@ -130,8 +128,7 @@ function buildConnectTokenParams(scopes, params) {
130
128
  ...authorizationDetails && { authorizationDetails }
131
129
  };
132
130
  }
133
- //#endregion
134
- //#region src/connect/token.ts
131
+ // src/connect/token.ts
135
132
  /**
136
133
  * Returns a lazy GitHub token provider backed by a Vercel Connect connector.
137
134
  * Scopes are derived from `preset`, or from the resolved `include`/`exclude`
@@ -266,7 +263,6 @@ function resolveConnectOptions(connectOptions) {
266
263
  ...connectOptions
267
264
  };
268
265
  }
269
- //#endregion
270
266
  export { connectGithubScopesForSelection as a, connectGithubScopesForPreset as i, PRESET_CONNECT_SCOPES as n, connectGithubScopesForTools as o, TOOL_CONNECT_SCOPES as r, resolveGithubConnector as s, connectGithubToken as t };
271
267
 
272
- //# sourceMappingURL=token-BLps09gm.mjs.map
268
+ //# sourceMappingURL=token-HpJhSRkl.mjs.map