aotrautils 0.0.2045 → 0.0.2046

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 (18/10/2026-01:57:55)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (18/10/2026-02:46:26)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -5510,7 +5510,7 @@ window.AOTRAUTILS_LIB_IS_LOADED=true;
5510
5510
 
5511
5511
 
5512
5512
 
5513
- /*utils CLIENT library associated with aotra version : «1_29072022-2359 (18/10/2026-01:57:55)»*/
5513
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (18/10/2026-02:46:26)»*/
5514
5514
  /*-----------------------------------------------------------------------------*/
5515
5515
  /* ## Utility global methods in a browser (htmljs) client environment.
5516
5516
  *
@@ -13078,7 +13078,7 @@ window.createOritaMicroClient=function(url, port, isNode=false, staticMicroClien
13078
13078
 
13079
13079
 
13080
13080
 
13081
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (18/10/2026-01:57:55)»*/
13081
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (18/10/2026-02:46:26)»*/
13082
13082
  /*-----------------------------------------------------------------------------*/
13083
13083
 
13084
13084
 
@@ -14167,10 +14167,10 @@ function rayVsUnitSphereClosestPoint(p, r) {
14167
14167
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14168
14168
 
14169
14169
  window.AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14170
- /*utils 3D library associated with aotra version : «1_29072022-2359 (18/10/2026-01:57:55)»*/
14170
+ /*utils 3D library associated with aotra version : «1_29072022-2359 (18/10/2026-02:46:26)»*/
14171
14171
  /*-----------------------------------------------------------------------------*/
14172
14172
 
14173
- /*utils AI library associated with aotra version : «1_29072022-2359 (18/10/2026-01:57:55)»*/
14173
+ /*utils AI library associated with aotra version : «1_29072022-2359 (18/10/2026-02:46:26)»*/
14174
14174
  /*-----------------------------------------------------------------------------*/
14175
14175
 
14176
14176
 
@@ -14434,7 +14434,7 @@ window.getLLMAPIClient=(modelName, apiURL, agentRole, defaultPrompt, llmProvider
14434
14434
 
14435
14435
 
14436
14436
 
14437
- /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (18/10/2026-01:57:55)»*/
14437
+ /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (18/10/2026-02:46:26)»*/
14438
14438
  /*-----------------------------------------------------------------------------*/
14439
14439
 
14440
14440
 
@@ -17308,8 +17308,8 @@ window.launchNodeHTTPServer=function(port, doOnConnect=null, doOnFinalizeServer=
17308
17308
 
17309
17309
 
17310
17310
  }catch(error) {
17311
- response.writeHead(erreur.error || 500, { "Content-Type": "application/json" });
17312
- response.end(JSON.stringify({ error: erreur.error || "ERROR : HTTPO Endpoints encountered an error" }));
17311
+ response.writeHead(error.error || 500, { "Content-Type": "application/json" });
17312
+ response.end(JSON.stringify({ error: error.error || "ERROR : HTTP Endpoints encountered an error" }));
17313
17313
  }
17314
17314
  }
17315
17315
 
@@ -18534,14 +18534,14 @@ window.ServerReceptionEntryPointsBag=class ServerReceptionEntryPointsBag{
18534
18534
  // DBG
18535
18535
  lognow("(SERVER) (ServerReceptionEntryPointsBag) Registering receive (NEW API) for message type «"+messageType+"»...");
18536
18536
 
18537
- const channelNameParam=this.channelNameParam;
18537
+ const channelName=this.channelName;
18538
18538
  const clientsRoomsTag=this.clientsRoomsTag;
18539
18539
  const messageTypes=(!messageType || empty(messageType) ? [] :
18540
18540
  (isArray(messageType) ? messageType : [messageType])
18541
18541
  );
18542
18542
  const listenerConfig={listenerMessageTypes:messageTypes, httpEndpointDefinition:httpEndpointDefinition};
18543
18543
  const serverReceptionEntryPoint=
18544
- new window.ServerReceptionEntryPoint(channelNameParam, clientsRoomsTag, listenerConfig, asyncDoOnIncomingMessage, this);
18544
+ new window.ServerReceptionEntryPoint(channelName, clientsRoomsTag, listenerConfig, asyncDoOnIncomingMessage, this);
18545
18545
  this.serverReceptionEntryPoints.push(serverReceptionEntryPoint);
18546
18546
 
18547
18547
  if(httpEndpointDefinition){
@@ -18554,6 +18554,22 @@ window.ServerReceptionEntryPointsBag=class ServerReceptionEntryPointsBag{
18554
18554
 
18555
18555
  return this;
18556
18556
  }
18557
+
18558
+ addAPIEndpointsExposition(){
18559
+ const self=this;
18560
+ this.addReceiveListener("endpoints", async (message, clientSocket=null)=>{// (Also handles backupUUID tests executions)
18561
+ const results=[];
18562
+ foreach(self.serverReceptionEntryPoints, serverReceptionEntryPoint=>{
18563
+ const conf=serverReceptionEntryPoint.listenerConfig;
18564
+ if(!conf || !conf.httpEndpointDefinition)
18565
+ return "continue";
18566
+ const httpEndpoint=conf.httpEndpointDefinition;
18567
+ results.push({httpMethod:httpEndpoint.httpMethod,urlPath:httpEndpoint.urlPath});
18568
+ });
18569
+ return {endpoints:results};
18570
+ },{urlPath:"/endpoints", httpMethod:"GET"})
18571
+ return this;
18572
+ }
18557
18573
 
18558
18574
  }
18559
18575
 
@@ -18561,7 +18577,7 @@ window.ServerReceptionEntryPointsBag=class ServerReceptionEntryPointsBag{
18561
18577
 
18562
18578
  window.ServerReceptionEntryPoint=class ServerReceptionEntryPoint{
18563
18579
 
18564
- constructor(channelNameParam, clientsRoomsTag, listenerConfig=null, asyncDoOnIncomingMessage, parentServerReceptionEntryPointsBag=null){
18580
+ constructor(channelNameParam, clientsRoomsTag, listenerConfig=null, asyncDoOnIncomingMessage=null, parentServerReceptionEntryPointsBag=null){
18565
18581
  this.channelName=channelNameParam;
18566
18582
  this.clientsRoomsTag=clientsRoomsTag;
18567
18583
  this.listenerConfig=listenerConfig;
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.2045",
3
+ "version": "0.0.2046",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "aotrautils",
9
- "version": "0.0.2045",
9
+ "version": "0.0.2046",
10
10
  "license": "HGPL-1.0",
11
11
  "dependencies": {
12
12
  "atob": "^2.1.2",
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.2045",
3
+ "version": "0.0.2046",
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)",