aotrautils 0.0.1486 → 0.0.1487
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.
- aotrautils/aotrautils.build.js +10 -11
- aotrautils/package.json +1 -1
aotrautils/aotrautils.build.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
|
3
|
-
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (28/04/2025-02:
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (28/04/2025-02:48:03)»*/
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
5
5
|
|
6
6
|
|
@@ -4894,7 +4894,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
4894
4894
|
|
4895
4895
|
|
4896
4896
|
|
4897
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (28/04/2025-02:
|
4897
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (28/04/2025-02:48:03)»*/
|
4898
4898
|
/*-----------------------------------------------------------------------------*/
|
4899
4899
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
4900
4900
|
*
|
@@ -13466,7 +13466,7 @@ getAORTACClient=function(clientId=getUUID(), serverNodeOrigin="ws://127.0.0.1:40
|
|
13466
13466
|
|
13467
13467
|
|
13468
13468
|
|
13469
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (28/04/2025-02:
|
13469
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (28/04/2025-02:48:03)»*/
|
13470
13470
|
/*-----------------------------------------------------------------------------*/
|
13471
13471
|
|
13472
13472
|
|
@@ -14705,7 +14705,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
14705
14705
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
14706
14706
|
|
14707
14707
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
14708
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (28/04/2025-02:
|
14708
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (28/04/2025-02:48:03)»*/
|
14709
14709
|
/*-----------------------------------------------------------------------------*/
|
14710
14710
|
|
14711
14711
|
|
@@ -14851,7 +14851,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
14851
14851
|
|
14852
14852
|
|
14853
14853
|
|
14854
|
-
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (28/04/2025-02:
|
14854
|
+
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (28/04/2025-02:48:03)»*/
|
14855
14855
|
/*-----------------------------------------------------------------------------*/
|
14856
14856
|
|
14857
14857
|
|
@@ -17317,7 +17317,7 @@ class ClientInstance{
|
|
17317
17317
|
if(WebsocketImplementation.useSocketIOImplementation){
|
17318
17318
|
// FOR THE SOCKETIO IMPLEMENTATION :
|
17319
17319
|
clientSocket.on(channelNameParam, (eventOrMessage)=>{
|
17320
|
-
clientReceptionEntryPoint.execute(eventOrMessage, clientSocket, clientReceptionEntryPoint);
|
17320
|
+
clientReceptionEntryPoint.execute(eventOrMessage, clientSocket, this.clientReceptionEntryPoints, clientReceptionEntryPoint.listenerConfig.messageId);
|
17321
17321
|
});
|
17322
17322
|
}
|
17323
17323
|
|
@@ -17337,19 +17337,18 @@ class ClientInstance{
|
|
17337
17337
|
// 1) We prepare the reception :
|
17338
17338
|
const resultPromise={
|
17339
17339
|
clientsRoomsTag:clientsRoomsTag,
|
17340
|
-
messageId:messageId,
|
17341
|
-
thenWhenReceiveMessageType:(channelNameForResponse, listenerConfig={messageType:"",condition:()=>true}, doOnIncomingMessageForResponse)=>{
|
17340
|
+
thenWhenReceiveMessageType:(channelNameForResponse, listenerConfig={messageType:"",messageId:messageId,condition:()=>true}, doOnIncomingMessageForResponse)=>{
|
17342
17341
|
listenerConfig=nonull(listenerConfig,{messageType:"",condition:()=>true});
|
17343
17342
|
const listenerId=nonull(listenerConfig.messageType,"");
|
17344
17343
|
|
17345
17344
|
//
|
17346
|
-
self.receive(channelNameForResponse, (dataLocal, clientSocket)=>{
|
17345
|
+
self.receive(channelNameForResponse, (dataLocal, clientSocket, clientReceptionEntryPoints, messageIdParam)=>{
|
17347
17346
|
|
17348
17347
|
// We check if the message matches the condition :
|
17349
17348
|
if(listenerConfig.condition && !listenerConfig.condition(dataLocal, clientSocket)) return ;
|
17350
17349
|
|
17351
17350
|
// We check if we have the same message id:
|
17352
|
-
if(
|
17351
|
+
if(messageIdParam!==dataLocal.messageId){
|
17353
17352
|
// DBG
|
17354
17353
|
lognow("DEBUG : Message ignored : resultPromise.messageId:"+resultPromise.messageId+"|dataLocal.messageId"+dataLocal.messageId);
|
17355
17354
|
return;
|
@@ -17424,7 +17423,7 @@ class ClientInstance{
|
|
17424
17423
|
// FOR THE WEBSOCKET IMPLEMENTATION :
|
17425
17424
|
clientSocket.addEventListener("message", (eventOrMessage)=>{
|
17426
17425
|
foreach(self.clientReceptionEntryPoints,(clientReceptionEntryPoint)=>{
|
17427
|
-
clientReceptionEntryPoint.execute(eventOrMessage, clientSocket, self.clientReceptionEntryPoints);
|
17426
|
+
clientReceptionEntryPoint.execute(eventOrMessage, clientSocket, self.clientReceptionEntryPoints, clientReceptionEntryPoint.listenerConfig.messageId);
|
17428
17427
|
});
|
17429
17428
|
});
|
17430
17429
|
}
|
aotrautils/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1487",
|
4
4
|
"main": "aotrautils.build.js",
|
5
5
|
"description": "A library for vanilla javascript utils (client-side) used in aotra javascript CMS",
|
6
6
|
"author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",
|