@bytexbyte/nxtlinq-ai-agent-sdk 1.4.8 → 1.5.1
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/README.md +74 -531
- package/dist/components/ChatBot.d.ts.map +1 -1
- package/dist/components/ChatBot.js +29 -2
- package/dist/components/context/ChatBotContext.d.ts.map +1 -1
- package/dist/components/context/ChatBotContext.js +29 -62
- package/dist/components/types/ChatBotTypes.d.ts +1 -0
- package/dist/components/types/ChatBotTypes.d.ts.map +1 -1
- package/dist/components/ui/BerifyMeModal.d.ts +20 -0
- package/dist/components/ui/BerifyMeModal.d.ts.map +1 -0
- package/dist/components/ui/BerifyMeModal.js +107 -0
- package/dist/components/ui/ChatBotUI.d.ts.map +1 -1
- package/dist/components/ui/ChatBotUI.js +157 -3
- package/dist/components/ui/MessageList.d.ts.map +1 -1
- package/dist/components/ui/MessageList.js +19 -8
- package/dist/components/ui/PermissionForm.d.ts.map +1 -1
- package/dist/components/ui/PermissionForm.js +5 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/package.json +2 -2
- package/umd/nxtlinq-ai-agent.umd.js +19 -19
- package/dist/core/utils/__tests__/urlUtils.test.d.ts +0 -5
- package/dist/core/utils/__tests__/urlUtils.test.d.ts.map +0 -1
- package/dist/core/utils/__tests__/urlUtils.test.js +0 -57
- package/dist/setupTests.d.ts +0 -2
- package/dist/setupTests.d.ts.map +0 -1
- package/dist/setupTests.js +0 -16
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useChatBot } from '../context/ChatBotContext';
|
|
4
4
|
export const PermissionForm = ({ onClose, onOpen }) => {
|
|
5
|
-
const { hitAddress, permissions, setPermissions, setIsDisabled, onSave, onConnectWallet, onSignIn, isNeedSignInWithWallet, walletInfo, onVerifyWallet, serviceId, nxtlinqApi, permissionGroup, isAITLoading, isWalletLoading = false, refreshAIT } = useChatBot();
|
|
5
|
+
const { hitAddress, permissions, setPermissions, setIsDisabled, onSave, onConnectWallet, onSignIn, isNeedSignInWithWallet, walletInfo, onVerifyWallet, serviceId, nxtlinqApi, permissionGroup, isAITLoading, isWalletLoading = false, refreshAIT, props } = useChatBot();
|
|
6
6
|
const [availablePermissions, setAvailablePermissions] = React.useState([]);
|
|
7
7
|
const [isSaving, setIsSaving] = React.useState(false);
|
|
8
8
|
const [tempPermissions, setTempPermissions] = React.useState(permissions);
|
|
@@ -47,7 +47,10 @@ export const PermissionForm = ({ onClose, onOpen }) => {
|
|
|
47
47
|
refreshWalletInfo();
|
|
48
48
|
}
|
|
49
49
|
}, [hitAddress]);
|
|
50
|
+
// Check if wallet IDV verification is required based on configuration
|
|
51
|
+
const requireWalletIDVVerification = props.requireWalletIDVVerification ?? true; // Default to true
|
|
50
52
|
const isWalletVerified = Boolean(walletInfo?.id);
|
|
53
|
+
const shouldShowVerificationPrompt = requireWalletIDVVerification && !isWalletVerified;
|
|
51
54
|
const handleSave = async () => {
|
|
52
55
|
setIsSaving(true);
|
|
53
56
|
try {
|
|
@@ -235,7 +238,7 @@ export const PermissionForm = ({ onClose, onOpen }) => {
|
|
|
235
238
|
if (isNeedSignInWithWallet) {
|
|
236
239
|
e.currentTarget.style.backgroundColor = '#007bff';
|
|
237
240
|
}
|
|
238
|
-
}, children: !isNeedSignInWithWallet ? 'Signed In' : 'Sign In' })] })) :
|
|
241
|
+
}, children: !isNeedSignInWithWallet ? 'Signed In' : 'Sign In' })] })) : shouldShowVerificationPrompt ? (_jsxs("div", { style: { textAlign: 'center', padding: '32px 0' }, children: [_jsxs("div", { style: { marginBottom: '24px' }, children: [_jsx("h4", { style: {
|
|
239
242
|
marginBottom: '12px',
|
|
240
243
|
fontSize: '16px',
|
|
241
244
|
color: '#666'
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export { ModelSelector } from './components/ui/ModelSelector';
|
|
|
7
7
|
export { NotificationModal } from './components/ui/NotificationModal';
|
|
8
8
|
export { PermissionForm } from './components/ui/PermissionForm';
|
|
9
9
|
export { PresetMessages } from './components/ui/PresetMessages';
|
|
10
|
+
export { BerifyMeModal } from './components/ui/BerifyMeModal';
|
|
10
11
|
export type { AIModel, AITMetadata, ChatBotContextType, ChatBotProps, NovaError, NovaResponse, PresetMessage, ToolCall, ToolUse } from './components/types/ChatBotTypes';
|
|
11
12
|
export { AI_MODEL_MAP, ALL_AVAILABLE_MODELS, DEFAULT_AI_MODELS } from './components/types/ChatBotTypes';
|
|
12
13
|
export { connectWallet, disconnectWallet, validateToken } from './core/utils/walletUtils';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAG/C,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAGlF,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAG/C,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAGlF,OAAO,E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{ ModelSelector } from './components/ui/ModelSelector';
|
|
|
10
10
|
export { NotificationModal } from './components/ui/NotificationModal';
|
|
11
11
|
export { PermissionForm } from './components/ui/PermissionForm';
|
|
12
12
|
export { PresetMessages } from './components/ui/PresetMessages';
|
|
13
|
+
export { BerifyMeModal } from './components/ui/BerifyMeModal';
|
|
13
14
|
// AI Model constants
|
|
14
15
|
export { AI_MODEL_MAP, ALL_AVAILABLE_MODELS, DEFAULT_AI_MODELS } from './components/types/ChatBotTypes';
|
|
15
16
|
// Utility functions
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bytexbyte/nxtlinq-ai-agent-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1",
|
|
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",
|
|
@@ -59,4 +59,4 @@
|
|
|
59
59
|
"universal-cookie": "^8.0.1",
|
|
60
60
|
"uuid": "^11.1.0"
|
|
61
61
|
}
|
|
62
|
-
}
|
|
62
|
+
}
|