@bytexbyte/nxtlinq-ai-agent-sdk 1.5.2 → 1.5.3

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.
@@ -942,17 +942,6 @@ requireWalletIDVVerification = true }) => {
942
942
  const isToolAllowed = await hasPermission(toolUse.name, true, () => {
943
943
  wasAutoConnected = true;
944
944
  });
945
- if (wasAutoConnected) {
946
- setIsLoading(false);
947
- setMessages(prev => [...prev, {
948
- id: Date.now().toString(),
949
- content: 'Click button to continue tool',
950
- role: 'assistant',
951
- timestamp: new Date().toISOString(),
952
- button: 'continue'
953
- }]);
954
- return;
955
- }
956
945
  // If currentPermissions does not include toolName and availablePermissionLabels includes toolName, it means AIT permission is missing
957
946
  if (!isToolAllowed && !permissions.includes(toolUse.name) && availablePermissions.map(p => p.label).includes(toolUse.name)) {
958
947
  permissionDenied = true;
@@ -1009,6 +998,17 @@ requireWalletIDVVerification = true }) => {
1009
998
  }
1010
999
  return;
1011
1000
  }
1001
+ if (wasAutoConnected) {
1002
+ setIsLoading(false);
1003
+ setMessages(prev => [...prev, {
1004
+ id: Date.now().toString(),
1005
+ content: 'Click button to continue tool',
1006
+ role: 'assistant',
1007
+ timestamp: new Date().toISOString(),
1008
+ button: 'continue'
1009
+ }]);
1010
+ return;
1011
+ }
1012
1012
  const toolResult = await onToolUse(toolUse);
1013
1013
  toolMsg = toolResult?.content || `Tool ${toolUse.name} executed successfully`;
1014
1014
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytexbyte/nxtlinq-ai-agent-sdk",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "description": "Nxtlinq AI Agent SDK - Proprietary Software with enhanced async operation handling",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",