@github-tools/sdk 1.11.1 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -14
- package/dist/connect/eve.d.mts +2 -3
- package/dist/connect/eve.d.mts.map +1 -1
- package/dist/connect/eve.mjs +1 -1
- package/dist/connect.d.mts +8 -86
- package/dist/connect.d.mts.map +1 -1
- package/dist/connect.mjs +2 -2
- package/dist/eve-runtime-BkzmgsI2.mjs +274 -0
- package/dist/eve-runtime-BkzmgsI2.mjs.map +1 -0
- package/dist/eve-runtime-C5HaKmOP.d.mts +85 -0
- package/dist/eve-runtime-C5HaKmOP.d.mts.map +1 -0
- package/dist/eve-runtime.d.mts +5 -4
- package/dist/eve-runtime.mjs +3 -3
- package/dist/eve.d.mts +4 -4
- package/dist/eve.d.mts.map +1 -1
- package/dist/eve.mjs +2 -2
- package/dist/index-BjRUOM2Z.d.mts +287 -0
- package/dist/index-BjRUOM2Z.d.mts.map +1 -0
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +3 -3
- package/dist/{src-jQWS2Txw.mjs → src-DPcwVTf-.mjs} +98 -4
- package/dist/src-DPcwVTf-.mjs.map +1 -0
- package/dist/{token-1uPUq_g-.mjs → token-qesvchbI.mjs} +23 -169
- package/dist/token-qesvchbI.mjs.map +1 -0
- package/dist/tool-types-K8i--5D9.d.mts +3255 -0
- package/dist/tool-types-K8i--5D9.d.mts.map +1 -0
- package/dist/{types-BD5YvGxm.d.mts → types-6aWpzNzg.d.mts} +3 -3
- package/dist/{types-BD5YvGxm.d.mts.map → types-6aWpzNzg.d.mts.map} +1 -1
- package/dist/{types-BDO-Mmn6.d.mts → types-BVSe0Zey.d.mts} +4 -3
- package/dist/types-BVSe0Zey.d.mts.map +1 -0
- package/dist/workflow.d.mts +2 -1
- package/dist/workflow.d.mts.map +1 -1
- package/dist/workflow.mjs +2 -2
- package/dist/{write-tools-Dk32V9Hl.mjs → write-tools-BEcL5Fv6.mjs} +2626 -1513
- package/dist/write-tools-BEcL5Fv6.mjs.map +1 -0
- package/package.json +5 -5
- package/dist/eve-runtime-Cb0LVEvS.d.mts +0 -66
- package/dist/eve-runtime-Cb0LVEvS.d.mts.map +0 -1
- package/dist/eve-runtime-DInXr4h5.mjs +0 -734
- package/dist/eve-runtime-DInXr4h5.mjs.map +0 -1
- package/dist/index-BNeMjmgp.d.mts +0 -770
- package/dist/index-BNeMjmgp.d.mts.map +0 -1
- package/dist/src-jQWS2Txw.mjs.map +0 -1
- package/dist/token-1uPUq_g-.mjs.map +0 -1
- package/dist/types-BDO-Mmn6.d.mts.map +0 -1
- package/dist/write-tools-Dk32V9Hl.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@github-tools/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "A typed tool layer for GitHub AI agents, with presets, human approval, and durable execution. Works with eve, the AI SDK, Vercel Workflow, and Chat SDK",
|
|
5
5
|
"author": "HugoRCD <hugo.richard@vercel.com",
|
|
6
6
|
"repository": {
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@vercel/connect": ">=0.3.2",
|
|
67
67
|
"@workflow/ai": "^4.1.2",
|
|
68
68
|
"ai": "^6.0.97 || ^7.0.0",
|
|
69
|
-
"eve": ">=0.
|
|
69
|
+
"eve": ">=0.44.0 <0.48.0",
|
|
70
70
|
"workflow": "^4.5.0",
|
|
71
71
|
"zod": "^4.3.6"
|
|
72
72
|
},
|
|
@@ -89,13 +89,13 @@
|
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"@ai-sdk/provider": "^4.0.5",
|
|
92
|
-
"@ai-sdk/provider-utils": "^5.0.
|
|
92
|
+
"@ai-sdk/provider-utils": "^5.0.28",
|
|
93
93
|
"@ai-sdk/workflow": "^1.0.52",
|
|
94
94
|
"@types/node": "^26.1.2",
|
|
95
95
|
"@vercel/connect": "^0.6.1",
|
|
96
|
-
"ai": "^7.0.
|
|
96
|
+
"ai": "^7.0.58",
|
|
97
97
|
"eslint": "^10.8.0",
|
|
98
|
-
"eve": "^0.
|
|
98
|
+
"eve": "^0.46.1",
|
|
99
99
|
"tsdown": "^0.22.14",
|
|
100
100
|
"typescript": "^6.0.3",
|
|
101
101
|
"typescript-eslint": "^8.65.0",
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { $t as GithubToolName, Jt as CombinedPresetToolNames, Yt as GithubToolPreset, Zt as PresetToolName, qt as GithubWriteToolName } from "./index-BNeMjmgp.mjs";
|
|
2
|
-
import { i as EveToolFactoryOptions, n as EveApprovalValue, r as EveGithubToolsOptions, t as EveApprovalConfig } from "./types-BDO-Mmn6.mjs";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
import { Approval, ToolDefinition, ToolModelOutput } from "eve/tools";
|
|
5
|
-
//#region src/eve/build.d.ts
|
|
6
|
-
type BuildOptions = EveGithubToolsOptions | (EveToolFactoryOptions & {
|
|
7
|
-
preset?: EveGithubToolsOptions['preset'];
|
|
8
|
-
});
|
|
9
|
-
type EveToolMap = Partial<Record<GithubToolName, ToolDefinition>>;
|
|
10
|
-
declare function buildEveToolDefinition(name: GithubToolName, options?: BuildOptions): ToolDefinition;
|
|
11
|
-
declare function buildEveToolMap(options?: EveGithubToolsOptions): EveToolMap;
|
|
12
|
-
declare function createEveGithubToolsDynamic(options?: EveGithubToolsOptions): import("eve/tools").DynamicSentinel<Partial<Record<GithubToolName, ToolDefinition<unknown, unknown>>>>;
|
|
13
|
-
declare function listResolvedEveToolNames(options?: {
|
|
14
|
-
preset?: undefined;
|
|
15
|
-
include?: undefined;
|
|
16
|
-
exclude?: undefined;
|
|
17
|
-
}): GithubToolName[];
|
|
18
|
-
declare function listResolvedEveToolNames<P extends GithubToolPreset>(options: {
|
|
19
|
-
preset: P;
|
|
20
|
-
include?: undefined;
|
|
21
|
-
exclude?: undefined;
|
|
22
|
-
}): PresetToolName<P>[];
|
|
23
|
-
declare function listResolvedEveToolNames<P extends readonly GithubToolPreset[]>(options: {
|
|
24
|
-
preset: P;
|
|
25
|
-
include?: undefined;
|
|
26
|
-
exclude?: undefined;
|
|
27
|
-
}): CombinedPresetToolNames<P>[];
|
|
28
|
-
declare function listResolvedEveToolNames(options: Pick<EveGithubToolsOptions, 'preset' | 'include' | 'exclude'>): GithubToolName[];
|
|
29
|
-
/**
|
|
30
|
-
* Tool descriptors (no `execute`) for authored eve `defineTool` loops.
|
|
31
|
-
* Prefer this when registering tools outside the SDK package so durable transforms can hoist inline execute.
|
|
32
|
-
*/
|
|
33
|
-
declare function listEveToolDescriptors(options?: EveGithubToolsOptions): {
|
|
34
|
-
name: GithubToolName;
|
|
35
|
-
description: string;
|
|
36
|
-
inputSchema: import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>;
|
|
37
|
-
writeTool: GithubWriteToolName | undefined;
|
|
38
|
-
toModelOutput: ((output: unknown) => import("eve/tools").ToolModelOutput) | undefined;
|
|
39
|
-
}[];
|
|
40
|
-
/**
|
|
41
|
-
* Execute a GitHub tool by name with the given eve options (token/context/attribution).
|
|
42
|
-
* Used by `@github-tools/eve-extension` so `execute` only closes over a serializable tool name.
|
|
43
|
-
*/
|
|
44
|
-
declare function executeGithubEveTool(name: GithubToolName, input: Record<string, unknown>, options?: EveGithubToolsOptions): Promise<unknown>;
|
|
45
|
-
//#endregion
|
|
46
|
-
//#region src/eve/approval.d.ts
|
|
47
|
-
/**
|
|
48
|
-
* `false` / `'never'` should omit the tool `approval` field entirely.
|
|
49
|
-
* eve treats a missing `approval` like `never()`; attaching `never()` is
|
|
50
|
-
* redundant and has caused approval UI noise on some channels.
|
|
51
|
-
*/
|
|
52
|
-
declare function isEveApprovalDisabled(value: EveApprovalValue | undefined): boolean;
|
|
53
|
-
declare function mapEveApprovalValue(value: EveApprovalValue): Approval;
|
|
54
|
-
declare function resolveEveApproval(toolName: GithubWriteToolName, config: EveApprovalConfig | undefined): Approval | undefined;
|
|
55
|
-
/**
|
|
56
|
-
* Approval to attach on a write tool, or `undefined` to omit the field.
|
|
57
|
-
* Prefer this when building `defineTool` values so `false` / `'never'` do not
|
|
58
|
-
* attach a redundant `never()` handler.
|
|
59
|
-
*/
|
|
60
|
-
declare function resolveEveToolApproval(toolName: GithubWriteToolName, config: EveApprovalConfig | undefined, override?: EveApprovalValue): Approval | undefined;
|
|
61
|
-
//#endregion
|
|
62
|
-
//#region src/eve/load-eve.d.ts
|
|
63
|
-
declare const MISSING_EVE_MESSAGE = "The \"eve\" package is required to use @github-tools/sdk/eve. Install it with: pnpm add eve";
|
|
64
|
-
//#endregion
|
|
65
|
-
export { resolveEveToolApproval as a, createEveGithubToolsDynamic as c, listResolvedEveToolNames as d, resolveEveApproval as i, executeGithubEveTool as l, isEveApprovalDisabled as n, buildEveToolDefinition as o, mapEveApprovalValue as r, buildEveToolMap as s, MISSING_EVE_MESSAGE as t, listEveToolDescriptors as u };
|
|
66
|
-
//# sourceMappingURL=eve-runtime-Cb0LVEvS.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eve-runtime-Cb0LVEvS.d.mts","names":[],"sources":["../src/eve/build.ts","../src/eve/approval.ts","../src/eve/load-eve.ts"],"mappings":";;;;;KASK,eAAe,yBAAyB;EAA0B,SAAS;;KAC3E,aAAa,QAAQ,OAAO,gBAAgB;iBA0CjC,uBACd,MAAM,gBACN,UAAS,eACR;iBA8Ba,gBAAgB,UAAS,wBAA6B;iBAmCtD,4BAA4B,UAAS,4CAA0B,gBAAA,QAAA,OAAA,gBAAA;iBAY/D,yBAAyB;EAAY;EAAoB;EAAqB;IAAwB;iBACtG,yBAAyB,UAAU,kBAAkB;EAAW,QAAQ;EAAG;EAAqB;IAAwB,eAAe;iBACvI,yBAAyB,mBAAmB,oBAAoB;EAAW,QAAQ;EAAG;EAAqB;IAAwB,wBAAwB;iBAC3J,yBAAyB,SAAS,KAAK,2DAA2D;;;;;iBAUlG,uBAAuB,UAAS;;;;;;;;;;;iBAyB1B,qBACpB,MAAM,gBACN,OAAO,yBACP,UAAS,wBAA0B;;;;;;;;iBCnKrB,sBAAsB,OAAO;iBAI7B,oBAAoB,OAAO,mBAAmB;iBAY9C,mBACd,UAAU,qBACV,QAAQ,gCACP;;;;;;iBAgBa,uBACd,UAAU,qBACV,QAAQ,+BACR,WAAW,mBACV;;;cCtCU"}
|