aotrautils-srv 0.0.1927 → 0.0.1929
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,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (26/07/2026-
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (26/07/2026-16:03:18)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -5470,7 +5470,7 @@ window.AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
5470
5470
|
|
|
5471
5471
|
|
|
5472
5472
|
|
|
5473
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (26/07/2026-
|
|
5473
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (26/07/2026-16:03:18)»*/
|
|
5474
5474
|
/*-----------------------------------------------------------------------------*/
|
|
5475
5475
|
|
|
5476
5476
|
|
|
@@ -5730,7 +5730,7 @@ window.getLLMAPIClient=(modelName, apiURL, agentRole, defaultPrompt, llmProvider
|
|
|
5730
5730
|
|
|
5731
5731
|
|
|
5732
5732
|
|
|
5733
|
-
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (26/07/2026-
|
|
5733
|
+
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (26/07/2026-16:03:18)»*/
|
|
5734
5734
|
/*-----------------------------------------------------------------------------*/
|
|
5735
5735
|
|
|
5736
5736
|
|
|
@@ -5771,7 +5771,7 @@ if(typeof(window)==="undefined") window=global;
|
|
|
5771
5771
|
|
|
5772
5772
|
// New implementation :
|
|
5773
5773
|
|
|
5774
|
-
class
|
|
5774
|
+
window.AORTACClientCell=class{
|
|
5775
5775
|
|
|
5776
5776
|
constructor(serverCellOrigin, model, view, isNodeContext=true){
|
|
5777
5777
|
|
|
@@ -6037,7 +6037,7 @@ class AORTACClientCell{
|
|
|
6037
6037
|
|
|
6038
6038
|
|
|
6039
6039
|
|
|
6040
|
-
|
|
6040
|
+
/*private*/const ClientLobule=class{
|
|
6041
6041
|
|
|
6042
6042
|
constructor(){
|
|
6043
6043
|
this.serversBag=null;
|
|
@@ -6102,7 +6102,7 @@ window.getAORTACClient=function(serverCellOrigin="ws://127.0.0.1:40000", model,
|
|
|
6102
6102
|
lognow("ERROR : No known server node, cannot connect to servers cells blob. Aborting AORTAC client setup.");
|
|
6103
6103
|
return null;
|
|
6104
6104
|
}
|
|
6105
|
-
return new AORTACClientCell(serverCellOrigin, model, view, isNodeContext);
|
|
6105
|
+
return new window.AORTACClientCell(serverCellOrigin, model, view, isNodeContext);
|
|
6106
6106
|
}
|
|
6107
6107
|
|
|
6108
6108
|
|
|
@@ -6142,7 +6142,7 @@ window.AORTAC_OUTCOMING_SERVERS_CONNECTION_GLOBAL_TIMEOUT=30000;
|
|
|
6142
6142
|
window.AORTAC_SERVER_CELL_PERIODICAL_CONNECTIVITY_CHECK_MILLIS=2000;
|
|
6143
6143
|
|
|
6144
6144
|
|
|
6145
|
-
class
|
|
6145
|
+
window.AORTACServerCell=class{
|
|
6146
6146
|
|
|
6147
6147
|
constructor(quorumNumber=1, selfOrigin, outcomingCellsOrigins, model, controller, sslConfig={/*OPTIONAL*/certPath:null,/*OPTIONAL*/keyPath:null}){
|
|
6148
6148
|
|
|
@@ -7069,7 +7069,7 @@ class AORTACServerCell{
|
|
|
7069
7069
|
|
|
7070
7070
|
|
|
7071
7071
|
|
|
7072
|
-
|
|
7072
|
+
/*private*/const ServerCellLobule=class{
|
|
7073
7073
|
|
|
7074
7074
|
constructor(){
|
|
7075
7075
|
this.serversBag=null;
|
|
@@ -7143,7 +7143,7 @@ window.getAORTACServerCell=function(quorumNumber=1, selfOrigin="ws://127.0.0.1:4
|
|
|
7143
7143
|
// TRACE
|
|
7144
7144
|
throw new Error("ERROR : The aortacCServerCellInstance singleton instance already exists. It cannot be instantiated again in the same process. Aborting.");
|
|
7145
7145
|
}
|
|
7146
|
-
window.aortacCServerCellInstance=new AORTACServerCell(quorumNumber, selfOrigin, outcomingCellsOrigins, model, controller);
|
|
7146
|
+
window.aortacCServerCellInstance=new window.AORTACServerCell(quorumNumber, selfOrigin, outcomingCellsOrigins, model, controller);
|
|
7147
7147
|
return window.aortacCServerCellInstance;
|
|
7148
7148
|
}
|
|
7149
7149
|
|
|
@@ -8138,7 +8138,7 @@ window.WebsocketImplementation={
|
|
|
8138
8138
|
});
|
|
8139
8139
|
|
|
8140
8140
|
// NODE SERVER INSTANCE :
|
|
8141
|
-
const nodeServerInstance=new NodeServerInstance(serverSocket, listenableServer);
|
|
8141
|
+
const nodeServerInstance=new window.NodeServerInstance(serverSocket, listenableServer);
|
|
8142
8142
|
|
|
8143
8143
|
// Join room server part protocol :
|
|
8144
8144
|
nodeServerInstance.receive("protocol",(message, clientSocket)=>{
|
|
@@ -8235,7 +8235,7 @@ window.WebsocketImplementation={
|
|
|
8235
8235
|
// DBG
|
|
8236
8236
|
lognow("DEBUG : CLIENT : clientSocket created:");
|
|
8237
8237
|
|
|
8238
|
-
const nodeClientInstance=new ClientInstance(clientSocket);
|
|
8238
|
+
const nodeClientInstance=new window.ClientInstance(clientSocket);
|
|
8239
8239
|
return nodeClientInstance;
|
|
8240
8240
|
},
|
|
8241
8241
|
|
|
@@ -8283,7 +8283,7 @@ window.WebsocketImplementation={
|
|
|
8283
8283
|
}
|
|
8284
8284
|
|
|
8285
8285
|
// BROWSER CLIENT INSTANCE :
|
|
8286
|
-
const browserClientInstance=new ClientInstance(clientSocket);
|
|
8286
|
+
const browserClientInstance=new window.ClientInstance(clientSocket);
|
|
8287
8287
|
return browserClientInstance;
|
|
8288
8288
|
},
|
|
8289
8289
|
|
|
@@ -8636,7 +8636,7 @@ window.initNodeServerInfrastructureWrapper=function(doOnClientConnection=null, d
|
|
|
8636
8636
|
|
|
8637
8637
|
// ========================= UTILITY SERVERSIDE METHODS : =========================
|
|
8638
8638
|
|
|
8639
|
-
class
|
|
8639
|
+
window.ListManager=class{
|
|
8640
8640
|
|
|
8641
8641
|
constructor(config){
|
|
8642
8642
|
this.config=config;
|
|
@@ -8798,7 +8798,7 @@ class ListManager{
|
|
|
8798
8798
|
};
|
|
8799
8799
|
|
|
8800
8800
|
window.getListManager=function(config){
|
|
8801
|
-
return new ListManager(config);
|
|
8801
|
+
return new window.ListManager(config);
|
|
8802
8802
|
};
|
|
8803
8803
|
|
|
8804
8804
|
|
|
@@ -9197,7 +9197,7 @@ window.initClient=function(isNodeContext=true
|
|
|
9197
9197
|
|
|
9198
9198
|
|
|
9199
9199
|
|
|
9200
|
-
class
|
|
9200
|
+
window.ClientReceptionEntryPoint=class{
|
|
9201
9201
|
|
|
9202
9202
|
constructor(channelNameParam, entryPointId, clientsRoomsTag, listenerConfig, doOnIncomingMessage){
|
|
9203
9203
|
this.channelName=channelNameParam;
|
|
@@ -9276,7 +9276,7 @@ class ClientReceptionEntryPoint{
|
|
|
9276
9276
|
//
|
|
9277
9277
|
// CLIENT INSTANCE :
|
|
9278
9278
|
//
|
|
9279
|
-
class
|
|
9279
|
+
window.ClientInstance=class{
|
|
9280
9280
|
|
|
9281
9281
|
constructor(clientSocket){
|
|
9282
9282
|
|
|
@@ -9332,7 +9332,7 @@ class ClientInstance{
|
|
|
9332
9332
|
// // DBG
|
|
9333
9333
|
// lognow("INFO : (CLIENT) SETTING UP RECEIVE for :",channelNameParam);
|
|
9334
9334
|
|
|
9335
|
-
const clientReceptionEntryPoint=new ClientReceptionEntryPoint(channelNameParam, entryPointId, clientsRoomsTag, listenerConfig, doOnIncomingMessage);
|
|
9335
|
+
const clientReceptionEntryPoint=new window.ClientReceptionEntryPoint(channelNameParam, entryPointId, clientsRoomsTag, listenerConfig, doOnIncomingMessage);
|
|
9336
9336
|
if(!contains.filter((l)=>(
|
|
9337
9337
|
l.entryPointId && clientReceptionEntryPoint.entryPointId
|
|
9338
9338
|
&& l.entryPointId===clientReceptionEntryPoint.entryPointId
|
|
@@ -9484,7 +9484,7 @@ class ClientInstance{
|
|
|
9484
9484
|
|
|
9485
9485
|
// ==================================================================================================================
|
|
9486
9486
|
|
|
9487
|
-
class
|
|
9487
|
+
window.ServerReceptionEntryPoint=class{
|
|
9488
9488
|
|
|
9489
9489
|
constructor(channelNameParam, clientsRoomsTag, listenerConfig=null, doOnIncomingMessage){
|
|
9490
9490
|
this.channelName=channelNameParam;
|
|
@@ -9546,12 +9546,7 @@ class ServerReceptionEntryPoint{
|
|
|
9546
9546
|
|
|
9547
9547
|
|
|
9548
9548
|
|
|
9549
|
-
|
|
9550
|
-
|
|
9551
|
-
|
|
9552
|
-
|
|
9553
|
-
|
|
9554
|
-
class NodeServerInstance{
|
|
9549
|
+
window.NodeServerInstance=class{
|
|
9555
9550
|
|
|
9556
9551
|
constructor(serverSocket, listenableServer){
|
|
9557
9552
|
|
|
@@ -9595,7 +9590,7 @@ class NodeServerInstance{
|
|
|
9595
9590
|
// DBG
|
|
9596
9591
|
lognow("(SERVER) Registering receive for «"+channelNameParam+"»...");
|
|
9597
9592
|
|
|
9598
|
-
const serverReceptionEntryPoint=new ServerReceptionEntryPoint(channelNameParam, clientsRoomsTag, listenerConfig, doOnIncomingMessage);
|
|
9593
|
+
const serverReceptionEntryPoint=new window.ServerReceptionEntryPoint(channelNameParam, clientsRoomsTag, listenerConfig, doOnIncomingMessage);
|
|
9599
9594
|
this.serverReceptionEntryPoints.push(serverReceptionEntryPoint);
|
|
9600
9595
|
|
|
9601
9596
|
// SPECIAL FOR THE SOCKETIO IMPLEMENTATION :
|
aotrautils-srv/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1929",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "aotrautils-srv",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.1929",
|
|
10
10
|
"license": "HGPL-1.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"atob": "^2.1.2",
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1929",
|
|
4
4
|
"main": "aotrautils-srv.build.js",
|
|
5
5
|
"description": "A library for vanilla javascript utils (server-side) used in aotra javascript CMS",
|
|
6
6
|
"author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",
|