aotrautils-srv 0.0.1941 → 0.0.1942
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 (03/08/2026-01:
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (03/08/2026-01:39:01)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -5473,7 +5473,7 @@ window.AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
5473
5473
|
|
|
5474
5474
|
|
|
5475
5475
|
|
|
5476
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (03/08/2026-01:
|
|
5476
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (03/08/2026-01:39:01)»*/
|
|
5477
5477
|
/*-----------------------------------------------------------------------------*/
|
|
5478
5478
|
|
|
5479
5479
|
|
|
@@ -5733,7 +5733,7 @@ window.getLLMAPIClient=(modelName, apiURL, agentRole, defaultPrompt, llmProvider
|
|
|
5733
5733
|
|
|
5734
5734
|
|
|
5735
5735
|
|
|
5736
|
-
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (03/08/2026-01:
|
|
5736
|
+
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (03/08/2026-01:39:01)»*/
|
|
5737
5737
|
/*-----------------------------------------------------------------------------*/
|
|
5738
5738
|
|
|
5739
5739
|
|
|
@@ -7750,6 +7750,9 @@ window.Persister=class Persister{
|
|
|
7750
7750
|
this.prefix=prefix;
|
|
7751
7751
|
this.createDirectoryIfNotExists=createDirectoryIfNotExists;
|
|
7752
7752
|
|
|
7753
|
+
// Initial setup :
|
|
7754
|
+
this.createDirectoryIfNecessary(this.dataDirPath+"."+this.prefix);
|
|
7755
|
+
|
|
7753
7756
|
}
|
|
7754
7757
|
|
|
7755
7758
|
//FILE_NAME_PATTERN:"data.clientId.repositoryName.json",
|
|
@@ -7775,8 +7778,6 @@ window.Persister=class Persister{
|
|
|
7775
7778
|
readTreeObjectFromFile(clientId="noclient", repositoryName="norepository", keepClassName=false){
|
|
7776
7779
|
const self=this;
|
|
7777
7780
|
|
|
7778
|
-
// this.createDirectoryIfNecessary(this.dataDirPath+"."+repositoryName);
|
|
7779
|
-
|
|
7780
7781
|
let resultFlat=null;
|
|
7781
7782
|
let path=self.getPath(clientId, repositoryName);
|
|
7782
7783
|
|
|
@@ -7810,8 +7811,6 @@ window.Persister=class Persister{
|
|
|
7810
7811
|
saveDataToFileForClient(clientId="noclient", repositoryName="norepository", dataFlatForClient, forceKeepUnflatten=false, doOnSuccess=null){
|
|
7811
7812
|
const self=this;
|
|
7812
7813
|
|
|
7813
|
-
this.createDirectoryIfNecessary(this.dataDirPath+"."+repositoryName);
|
|
7814
|
-
|
|
7815
7814
|
if(!empty(dataFlatForClient) && !isFlatMap(dataFlatForClient) && !forceKeepUnflatten){
|
|
7816
7815
|
dataFlatForClient=getAsFlatStructure(dataFlatForClient);
|
|
7817
7816
|
}
|
|
@@ -8525,7 +8524,7 @@ window.initNodeServerInfrastructureWrapper=function(doOnClientConnection=null, d
|
|
|
8525
8524
|
// TRACE
|
|
8526
8525
|
console.log("WARN : No key hash found. Generating one now.");
|
|
8527
8526
|
globalKeyHashObject={keyHash:window.getUUID(), hashes:[]};
|
|
8528
|
-
persister.saveDataToFileForClient(persisterClientId,persisterRepositoryName,globalKeyHashObject,false,()=>{
|
|
8527
|
+
persister.saveDataToFileForClient(persisterClientId, persisterRepositoryName, globalKeyHashObject, false, ()=>{
|
|
8529
8528
|
// TRACE
|
|
8530
8529
|
console.log("INFO : Key hash generated and saved successfully.");
|
|
8531
8530
|
});
|
|
@@ -8538,7 +8537,7 @@ window.initNodeServerInfrastructureWrapper=function(doOnClientConnection=null, d
|
|
|
8538
8537
|
globalKeyHashObject.hashes.push(generatedHash);
|
|
8539
8538
|
|
|
8540
8539
|
// We update the repository :
|
|
8541
|
-
persister.saveDataToFileForClient(persisterClientId,persisterRepositoryName,globalKeyHashObject,false,()=>{
|
|
8540
|
+
persister.saveDataToFileForClient(persisterClientId, persisterRepositoryName, globalKeyHashObject, false, ()=>{
|
|
8542
8541
|
// TRACE
|
|
8543
8542
|
console.log("INFO : Hash added to repository and saved successfully.");
|
|
8544
8543
|
});
|
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.1942",
|
|
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.1942",
|
|
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.1942",
|
|
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)",
|