@toolplex/client 0.1.44 → 0.1.45
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.
|
@@ -31,8 +31,11 @@ export async function handleCallTool(params) {
|
|
|
31
31
|
const automationContext = clientContext.automationContext;
|
|
32
32
|
if (automationContext) {
|
|
33
33
|
const toolKey = `${params.server_id}.${params.tool_name}`;
|
|
34
|
-
// Check if tool
|
|
35
|
-
|
|
34
|
+
// Check if this is a pre-approved tool call (from HITL resume)
|
|
35
|
+
const isPreApproved = automationContext.preApprovedToolCall?.server_id === params.server_id &&
|
|
36
|
+
automationContext.preApprovedToolCall?.tool_name === params.tool_name;
|
|
37
|
+
// Check if tool requires HITL approval (skip if pre-approved)
|
|
38
|
+
if (!isPreApproved && automationContext.toolsRequiringApproval.includes(toolKey)) {
|
|
36
39
|
await logger.info(`Tool ${toolKey} requires HITL approval`);
|
|
37
40
|
// Return HITL signal for cloud-agent to handle
|
|
38
41
|
return {
|
|
@@ -22,6 +22,11 @@ export interface AutomationContext {
|
|
|
22
22
|
expirationHours: number;
|
|
23
23
|
/** Notification instructions from automation config */
|
|
24
24
|
notifyInstructions?: string;
|
|
25
|
+
/** Pre-approved tool call from HITL resume (bypasses approval check) */
|
|
26
|
+
preApprovedToolCall?: {
|
|
27
|
+
server_id: string;
|
|
28
|
+
tool_name: string;
|
|
29
|
+
};
|
|
25
30
|
}
|
|
26
31
|
export interface ClientFlags {
|
|
27
32
|
desktop_commander_server_id: string;
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.1.
|
|
1
|
+
export declare const version = "0.1.45";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '0.1.
|
|
1
|
+
export const version = '0.1.45';
|