@github-tools/eve-extension 0.4.0 → 0.4.1

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 CHANGED
@@ -19,7 +19,7 @@ This is **the recommended way** to add GitHub tools to an eve agent. The legacy
19
19
  pnpm add @github-tools/eve-extension
20
20
  ```
21
21
 
22
- `eve` is a required peer dependency; `@vercel/connect` is optional (install it only when using `connector`):
22
+ `eve` `>=0.44` is a required peer dependency; `@vercel/connect` is optional (install it only when using `connector`):
23
23
 
24
24
  ```sh
25
25
  pnpm add eve
@@ -43,7 +43,7 @@ export default githubExtension({
43
43
 
44
44
  > `code-review` pairs cleanly with a Connect `connector`. `maintainer` and `repo-explorer` include gist tools, and GitHub only grants gist access to user access tokens, never the installation tokens Connect mints, so gist calls 403 over Connect. Write tools already require approval via `always()` by default, so a plain `{ someTool: true }` is a no-op, use a predicate (as above) when you actually want to narrow or loosen the default.
45
45
 
46
- Tools are registered with **inline** `execute` and `toModelOutput` handlers in the extension package so they survive multi-turn durable eve Workflow replay (see [#51](https://github.com/vercel-labs/github-tools/issues/51), [#99](https://github.com/vercel-labs/github-tools/issues/99)). `toModelOutput` strips `rateLimit` from the model-facing payload; the execute result still carries it for hooks and channels. Do not use the deprecated `@github-tools/sdk/connect/eve` one-liner for durable Slack/multi-turn agents.
46
+ Tools are registered with **inline** `execute` and `toModelOutput` as direct `defineTool` properties so they survive multi-turn durable eve Workflow replay (see [#51](https://github.com/vercel-labs/github-tools/issues/51), [#99](https://github.com/vercel-labs/github-tools/issues/99)). A spread or imported `toModelOutput` has no durable descriptor: on eve 0.44+ the resolver discards every GitHub tool. `toModelOutput` strips `rateLimit` from the model-facing payload; the execute result still carries it for hooks and channels. Do not use the deprecated `@github-tools/sdk/connect/eve` one-liner for durable Slack/multi-turn agents.
47
47
 
48
48
  `connector` also accepts a `() => string | Promise<string>` resolver, so the same config can pick a connector dynamically (e.g. by environment):
49
49
 
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "kind": "eve-extension",
3
3
  "formatVersion": 2,
4
- "builtWithEve": "0.40.0",
4
+ "builtWithEve": "0.46.1",
5
5
  "requires": {
6
6
  "extension": 1,
7
- "tool": 13,
8
- "dynamicTool": 18,
7
+ "tool": 20,
8
+ "dynamicTool": 20,
9
9
  "config": 1
10
10
  }
11
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"github.d.ts","sourceRoot":"","sources":["../../../../extension/tools/github.ts"],"names":[],"mappings":"AAeA,OAAO,EAA6B,KAAK,cAAc,EAAE,MAAM,WAAW,CAAA;;AAqE1E,wBAyCE"}
1
+ {"version":3,"file":"github.d.ts","sourceRoot":"","sources":["../../../../extension/tools/github.ts"],"names":[],"mappings":"AAeA,OAAO,EAA6B,KAAK,cAAc,EAAE,MAAM,WAAW,CAAA;;AAqE1E,wBA0CE"}
@@ -53,7 +53,10 @@ var github_default = defineDynamic({ events: { "step.started": async () => {
53
53
  inputSchema: entry.inputSchema,
54
54
  ...entry.writeTool && !skipApproval && { approval: resolveEveApproval(entry.writeTool, sessionOptions.requireApproval) },
55
55
  ...override?.approval !== void 0 && !skipApproval && { approval: mapEveApprovalValue(override.approval) },
56
- ...override?.toModelOutput !== void 0 ? { toModelOutput: override.toModelOutput } : { toModelOutput: (output) => formatGithubEveToolOutput(name, output) },
56
+ toModelOutput: (output) => {
57
+ const custom = buildSessionOptions().overrides?.[name]?.toModelOutput;
58
+ return custom ? custom(output) : formatGithubEveToolOutput(name, output);
59
+ },
57
60
  ...override?.outputSchema !== void 0 && { outputSchema: override.outputSchema },
58
61
  execute: async (input) => runGithubEveTool(name, input)
59
62
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@github-tools/eve-extension",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "GitHub tools for eve, distributed as a mountable eve extension (https://eve.dev/docs/extensions)",
5
5
  "author": "HugoRCD <hugo.richard@vercel.com>",
6
6
  "repository": {
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "peerDependencies": {
52
52
  "@vercel/connect": ">=0.3.2",
53
- "eve": "*"
53
+ "eve": ">=0.44.0"
54
54
  },
55
55
  "peerDependenciesMeta": {
56
56
  "@vercel/connect": {
@@ -61,7 +61,7 @@
61
61
  "@types/node": "^26.1.2",
62
62
  "@vercel/connect": "^0.6.1",
63
63
  "eslint": "^10.8.0",
64
- "eve": "^0.40.0",
64
+ "eve": "^0.46.1",
65
65
  "typescript": "^6.0.3",
66
66
  "typescript-eslint": "^8.65.0"
67
67
  },