@prbe.ai/electron-sdk 0.1.7 → 0.1.8
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/dist/index.d.mts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -399,8 +399,13 @@ var PRBEToolRegistry = class {
|
|
|
399
399
|
var PRBEClosureTool = class {
|
|
400
400
|
declaration;
|
|
401
401
|
handler;
|
|
402
|
-
constructor(name, description, parameters, handler) {
|
|
403
|
-
this.declaration = {
|
|
402
|
+
constructor(name, description, parameters, handler, options) {
|
|
403
|
+
this.declaration = {
|
|
404
|
+
name,
|
|
405
|
+
description,
|
|
406
|
+
parameters,
|
|
407
|
+
...options?.interactive ? { interactive: true } : {}
|
|
408
|
+
};
|
|
404
409
|
this.handler = handler;
|
|
405
410
|
}
|
|
406
411
|
async execute(args) {
|
|
@@ -1908,9 +1913,9 @@ var PRBEAgent = class _PRBEAgent {
|
|
|
1908
1913
|
/**
|
|
1909
1914
|
* Register a custom tool that the middleware can invoke during investigations.
|
|
1910
1915
|
*/
|
|
1911
|
-
registerTool(name, description, parameters, handler) {
|
|
1916
|
+
registerTool(name, description, parameters, handler, options) {
|
|
1912
1917
|
this.registry.register(
|
|
1913
|
-
new PRBEClosureTool(name, description, parameters, handler)
|
|
1918
|
+
new PRBEClosureTool(name, description, parameters, handler, options)
|
|
1914
1919
|
);
|
|
1915
1920
|
}
|
|
1916
1921
|
/**
|