@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 requires HITL approval
35
- if (automationContext.toolsRequiringApproval.includes(toolKey)) {
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.44";
1
+ export declare const version = "0.1.45";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = '0.1.44';
1
+ export const version = '0.1.45';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toolplex/client",
3
- "version": "0.1.44",
3
+ "version": "0.1.45",
4
4
  "author": "ToolPlex LLC",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "description": "The official ToolPlex client for AI agent tool discovery and execution",