@bytexbyte/nxtlinq-ai-agent-ui-react-development 0.4.7 → 0.4.8
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatBotContext.d.ts","sourceRoot":"","sources":["../../src/context/ChatBotContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA+B/B,OAAO,EAEL,kBAAkB,EAClB,YAAY,EAEb,MAAM,uBAAuB,CAAC;AA0B/B,eAAO,MAAM,UAAU,0BAMtB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"ChatBotContext.d.ts","sourceRoot":"","sources":["../../src/context/ChatBotContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA+B/B,OAAO,EAEL,kBAAkB,EAClB,YAAY,EAEb,MAAM,uBAAuB,CAAC;AA0B/B,eAAO,MAAM,UAAU,0BAMtB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAwgGlD,CAAC"}
|
|
@@ -1652,6 +1652,10 @@ customError, voiceThresholds, debugVoiceRms = false, sttGlossary, }) => {
|
|
|
1652
1652
|
const isToolAllowed = await hasPermission(toolUse.name);
|
|
1653
1653
|
// Typed preflight already emitted the only permitted recovery UI.
|
|
1654
1654
|
if (!isToolAllowed) {
|
|
1655
|
+
// Do not leave suggestions from the previous turn visible while
|
|
1656
|
+
// authorization recovery short-circuits the normal response path.
|
|
1657
|
+
setSuggestions([]);
|
|
1658
|
+
void updateSuggestions(pseudoId, localStorage.getItem('walletAddress') || undefined, content);
|
|
1655
1659
|
pendingTextToolRetryRef.current.set({
|
|
1656
1660
|
content,
|
|
1657
1661
|
isPresetMessage,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bytexbyte/nxtlinq-ai-agent-ui-react-development",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.8",
|
|
4
4
|
"description": "Official React Web UI for nxtlinq AI Agent — drop-in chat widget",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"react-dom": ">=18.0.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@bytexbyte/nxtlinq-ai-agent-core-development": "2.0.
|
|
41
|
+
"@bytexbyte/nxtlinq-ai-agent-core-development": "2.0.3",
|
|
42
42
|
"@bytexbyte/nxtlinq-ai-agent-web-development": "1.0.3",
|
|
43
43
|
"@emotion/react": "^11.14.0",
|
|
44
44
|
"@emotion/styled": "^11.14.1",
|
|
@@ -1932,6 +1932,14 @@ export const ChatBotProvider: React.FC<ChatBotProps> = ({
|
|
|
1932
1932
|
|
|
1933
1933
|
// Typed preflight already emitted the only permitted recovery UI.
|
|
1934
1934
|
if (!isToolAllowed) {
|
|
1935
|
+
// Do not leave suggestions from the previous turn visible while
|
|
1936
|
+
// authorization recovery short-circuits the normal response path.
|
|
1937
|
+
setSuggestions([]);
|
|
1938
|
+
void updateSuggestions(
|
|
1939
|
+
pseudoId,
|
|
1940
|
+
localStorage.getItem('walletAddress') || undefined,
|
|
1941
|
+
content,
|
|
1942
|
+
);
|
|
1935
1943
|
pendingTextToolRetryRef.current.set({
|
|
1936
1944
|
content,
|
|
1937
1945
|
isPresetMessage,
|