@exulu/backend 5.12.0 → 5.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/dist/{chunk-U4UIVZST.js → chunk-URX7KJQV.js} +1649 -380
- package/dist/{convert-exulu-tools-to-ai-sdk-tools-WEC42QHZ.js → convert-exulu-tools-to-ai-sdk-tools-IYEO2RV6.js} +1 -1
- package/dist/index.cjs +2921 -1322
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +761 -512
- package/ee/invoke-skills/create-sandbox.project-session.test.ts +184 -0
- package/ee/invoke-skills/create-sandbox.project.test.ts +47 -0
- package/ee/invoke-skills/create-sandbox.symlink.test.ts +296 -0
- package/ee/invoke-skills/create-sandbox.ts +146 -37
- package/ee/invoke-skills/project-sync.test.ts +389 -0
- package/ee/invoke-skills/project-sync.ts +306 -0
- package/ee/invoke-skills/safe-fs.test.ts +69 -0
- package/ee/invoke-skills/safe-fs.ts +216 -0
- package/ee/workers.ts +87 -86
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1018,6 +1018,13 @@ declare class ExuluTool {
|
|
|
1018
1018
|
toolCallId: string;
|
|
1019
1019
|
messages: unknown[];
|
|
1020
1020
|
}) => Promise<boolean>;
|
|
1021
|
+
/**
|
|
1022
|
+
* Calls for which approval is ALWAYS asked, even when the user allowed the tool for this
|
|
1023
|
+
* chat (e.g. save_to_project with overwrite: true). Only narrows the shortcut: a call whose
|
|
1024
|
+
* approval was already answered is still honoured by the approval wiring.
|
|
1025
|
+
* Ignored for tools that set `needsApprovalFn` (that check decides every call on its own).
|
|
1026
|
+
*/
|
|
1027
|
+
alwaysAskWhen?: (input: unknown) => boolean;
|
|
1021
1028
|
authentication?: ExuluAuthConfig;
|
|
1022
1029
|
config: {
|
|
1023
1030
|
name: string;
|
|
@@ -1025,7 +1032,7 @@ declare class ExuluTool {
|
|
|
1025
1032
|
type: "boolean" | "string" | "number" | "variable" | "json";
|
|
1026
1033
|
default?: string | boolean | number | object;
|
|
1027
1034
|
}[];
|
|
1028
|
-
constructor({ id, name, description, category, inputSchema, type, execute, config, needsApproval, needsApprovalFn, authentication, }: {
|
|
1035
|
+
constructor({ id, name, description, category, inputSchema, type, execute, config, needsApproval, needsApprovalFn, alwaysAskWhen, authentication, }: {
|
|
1029
1036
|
id: string;
|
|
1030
1037
|
name: string;
|
|
1031
1038
|
description: string;
|
|
@@ -1043,6 +1050,7 @@ declare class ExuluTool {
|
|
|
1043
1050
|
toolCallId: string;
|
|
1044
1051
|
messages: unknown[];
|
|
1045
1052
|
}) => Promise<boolean>;
|
|
1053
|
+
alwaysAskWhen?: (input: unknown) => boolean;
|
|
1046
1054
|
authentication?: ExuluAuthConfig;
|
|
1047
1055
|
execute: (inputs: any, options?: any) => Promise<{
|
|
1048
1056
|
result?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1018,6 +1018,13 @@ declare class ExuluTool {
|
|
|
1018
1018
|
toolCallId: string;
|
|
1019
1019
|
messages: unknown[];
|
|
1020
1020
|
}) => Promise<boolean>;
|
|
1021
|
+
/**
|
|
1022
|
+
* Calls for which approval is ALWAYS asked, even when the user allowed the tool for this
|
|
1023
|
+
* chat (e.g. save_to_project with overwrite: true). Only narrows the shortcut: a call whose
|
|
1024
|
+
* approval was already answered is still honoured by the approval wiring.
|
|
1025
|
+
* Ignored for tools that set `needsApprovalFn` (that check decides every call on its own).
|
|
1026
|
+
*/
|
|
1027
|
+
alwaysAskWhen?: (input: unknown) => boolean;
|
|
1021
1028
|
authentication?: ExuluAuthConfig;
|
|
1022
1029
|
config: {
|
|
1023
1030
|
name: string;
|
|
@@ -1025,7 +1032,7 @@ declare class ExuluTool {
|
|
|
1025
1032
|
type: "boolean" | "string" | "number" | "variable" | "json";
|
|
1026
1033
|
default?: string | boolean | number | object;
|
|
1027
1034
|
}[];
|
|
1028
|
-
constructor({ id, name, description, category, inputSchema, type, execute, config, needsApproval, needsApprovalFn, authentication, }: {
|
|
1035
|
+
constructor({ id, name, description, category, inputSchema, type, execute, config, needsApproval, needsApprovalFn, alwaysAskWhen, authentication, }: {
|
|
1029
1036
|
id: string;
|
|
1030
1037
|
name: string;
|
|
1031
1038
|
description: string;
|
|
@@ -1043,6 +1050,7 @@ declare class ExuluTool {
|
|
|
1043
1050
|
toolCallId: string;
|
|
1044
1051
|
messages: unknown[];
|
|
1045
1052
|
}) => Promise<boolean>;
|
|
1053
|
+
alwaysAskWhen?: (input: unknown) => boolean;
|
|
1046
1054
|
authentication?: ExuluAuthConfig;
|
|
1047
1055
|
execute: (inputs: any, options?: any) => Promise<{
|
|
1048
1056
|
result?: string;
|