@github-tools/eve-extension 0.6.0 → 0.7.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.
@@ -1 +1 @@
1
- {"version":3,"file":"github.d.ts","sourceRoot":"","sources":["../../../../extension/tools/github.ts"],"names":[],"mappings":"AAkBA,OAAO,EAA+C,KAAK,cAAc,EAAE,MAAM,WAAW,CAAA;;AA+G5F,wBA6BE"}
1
+ {"version":3,"file":"github.d.ts","sourceRoot":"","sources":["../../../../extension/tools/github.ts"],"names":[],"mappings":"AAmBA,OAAO,EAA+C,KAAK,cAAc,EAAE,MAAM,WAAW,CAAA;;AA+G5F,wBA6BE"}
@@ -4,7 +4,7 @@ import { createRequire as __eveCreateRequire } from "node:module";
4
4
  __eveDirname(__eveFileURLToPath(import.meta.url));
5
5
  __eveCreateRequire(import.meta.url);
6
6
  import extension_default from "../extension.mjs";
7
- import { GITHUB_WRITE_TOOLS, executeGithubEveTool, formatGithubEveToolOutput, isEveApprovalDisabled, listEveToolDescriptors, mapEveApprovalValue, resolveEveApproval, resolveGithubToken } from "@github-tools/sdk/eve-runtime";
7
+ import { GITHUB_WRITE_TOOLS, executeGithubEveTool, formatGithubEveToolOutput, githubToolsErrors, isEveApprovalDisabled, listEveToolDescriptors, mapEveApprovalValue, resolveEveApproval, resolveGithubToken } from "@github-tools/sdk/eve-runtime";
8
8
  import { connectGithubToken } from "@github-tools/sdk/connect";
9
9
  import { defineDynamic, defineTool } from "eve/tools";
10
10
  function buildSessionOptions(ctx) {
@@ -48,7 +48,7 @@ function writeToolName(name) {
48
48
  return GITHUB_WRITE_TOOLS[name];
49
49
  }
50
50
  function requireToolContext(ctx) {
51
- if (!ctx) throw new Error("connect.subject resolver needs the tool execution context — it is only available while a tool call executes");
51
+ if (!ctx) throw githubToolsErrors.SUBJECT_CONTEXT_REQUIRED();
52
52
  return ctx;
53
53
  }
54
54
  async function runGithubEveTool(name, input, ctx) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@github-tools/eve-extension",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
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": {
@@ -46,7 +46,7 @@
46
46
  "license": "MIT",
47
47
  "dependencies": {
48
48
  "zod": "^4.3.6",
49
- "@github-tools/sdk": "1.15.0"
49
+ "@github-tools/sdk": "1.16.0"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "@vercel/connect": ">=0.3.2",