@neon/tools 1.3.1 → 1.3.2
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 +2 -2
- package/dist/eve.d.ts +1 -1
- package/dist/eve.d.ts.map +1 -1
- package/dist/eve.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -300,7 +300,7 @@ export default defineTool(
|
|
|
300
300
|
);
|
|
301
301
|
```
|
|
302
302
|
|
|
303
|
-
Eve uses the filename as the model-facing tool name, so name the file after the published `id`. The adapter maps approval requirements to Eve's `approval` hook and forwards its abort signal.
|
|
303
|
+
Eve uses the filename as the model-facing tool name, so name the file after the published `id`. The adapter maps approval requirements to Eve's `approval` hook and forwards its abort signal. `abortSignal` is optional. Credentials are the constructor `apiKey` (a string or a callback invoked on every request).
|
|
304
304
|
|
|
305
305
|
## Mastra
|
|
306
306
|
|
|
@@ -324,7 +324,7 @@ const listProjects = createTool(configs.list_projects);
|
|
|
324
324
|
const createProject = createTool(configs.create_and_connect_projects);
|
|
325
325
|
```
|
|
326
326
|
|
|
327
|
-
The adapter maps approval requirements to Mastra's `requireApproval` field and forwards its abort signal.
|
|
327
|
+
The adapter maps approval requirements to Mastra's `requireApproval` field and forwards its abort signal. Credentials are the constructor `apiKey` (a string or a callback invoked on every request).
|
|
328
328
|
|
|
329
329
|
## Safety and binary data
|
|
330
330
|
|
package/dist/eve.d.ts
CHANGED
package/dist/eve.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eve.d.ts","sourceRoot":"","sources":["../src/eve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,KAAK,CAAC;AAC9B,OAAO,KAAK,EACX,wBAAwB,EACxB,cAAc,EACd,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,cAAc;IAC9B,WAAW,EAAE,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"eve.d.ts","sourceRoot":"","sources":["../src/eve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,KAAK,CAAC;AAC9B,OAAO,KAAK,EACX,wBAAwB,EACxB,cAAc,EACd,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,cAAc;IAC9B,WAAW,CAAC,EAAE,WAAW,CAAC;CAC1B;AAED,KAAK,aAAa,GAAG;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC;IACvB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,OAAO,EAAE,CACR,KAAK,EAAE,KAAK,EACZ,OAAO,CAAC,EAAE,wBAAwB,KAC9B,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,KAAK,CAAC,IAAI,SAAS,aAAa,EAAE,MAAM,IAAI;qBAK7D,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,WAC5B,cAAc,KACrB,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;;;;CAO7B,CAAC"}
|
package/dist/eve.js
CHANGED
|
@@ -3,7 +3,7 @@ const toEveTool = (tool) => ({
|
|
|
3
3
|
description: tool.description,
|
|
4
4
|
inputSchema: tool.inputSchema,
|
|
5
5
|
...tool.requiresApproval ? { approval: () => true } : {},
|
|
6
|
-
execute: (input, context) => tool.execute(input, { signal: context.abortSignal })
|
|
6
|
+
execute: (input, context) => tool.execute(input, context.abortSignal === void 0 ? void 0 : { signal: context.abortSignal })
|
|
7
7
|
});
|
|
8
8
|
//#endregion
|
|
9
9
|
export { toEveTool };
|