@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/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;