datafolder 1.0.46 → 1.0.47

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.
Files changed (115) hide show
  1. package/ChangeLog.md +2 -0
  2. package/data/sampleDataFolder/qykv/history/acl/10_acl.txt +0 -0
  3. package/data/sampleDataFolder/qykv/history/acl/11_acl.txt +0 -0
  4. package/data/sampleDataFolder/qykv/history/acl/12_acl.txt +0 -0
  5. package/data/sampleDataFolder/qykv/history/acl/13_acl.txt +0 -0
  6. package/data/sampleDataFolder/qykv/history/acl/14_acl.txt +0 -0
  7. package/data/sampleDataFolder/qykv/history/acl/15_acl.txt +0 -0
  8. package/data/sampleDataFolder/qykv/history/acl/16_acl.txt +0 -0
  9. package/data/sampleDataFolder/qykv/history/acl/7_acl.txt +0 -0
  10. package/data/sampleDataFolder/qykv/history/acl/8_acl.txt +0 -0
  11. package/data/sampleDataFolder/qykv/history/acl/9_acl.txt +0 -0
  12. package/data/sampleDataFolder/qykv/snapshot/10/1_pM.txt +0 -0
  13. package/data/sampleDataFolder/qykv/snapshot/10/1_prefixPM.txt +0 -0
  14. package/data/sampleDataFolder/qykv/snapshot/10/1_vL.txt +1 -0
  15. package/data/sampleDataFolder/qykv/snapshot/11/1_pM.txt +0 -0
  16. package/data/sampleDataFolder/qykv/snapshot/11/1_prefixPM.txt +0 -0
  17. package/data/sampleDataFolder/qykv/snapshot/11/1_vL.txt +1 -0
  18. package/data/sampleDataFolder/qykv/snapshot/12/1_pM.txt +0 -0
  19. package/data/sampleDataFolder/qykv/snapshot/12/1_prefixPM.txt +0 -0
  20. package/data/sampleDataFolder/qykv/snapshot/12/1_vL.txt +1 -0
  21. package/data/sampleDataFolder/qykv/snapshot/13/1_pM.txt +0 -0
  22. package/data/sampleDataFolder/qykv/snapshot/13/1_prefixPM.txt +0 -0
  23. package/data/sampleDataFolder/qykv/snapshot/13/1_vL.txt +1 -0
  24. package/data/sampleDataFolder/qykv/snapshot/14/1_pM.txt +0 -0
  25. package/data/sampleDataFolder/qykv/snapshot/14/1_prefixPM.txt +0 -0
  26. package/data/sampleDataFolder/qykv/snapshot/14/1_vL.txt +1 -0
  27. package/data/sampleDataFolder/qykv/snapshot/15/1_pM.txt +0 -0
  28. package/data/sampleDataFolder/qykv/snapshot/15/1_prefixPM.txt +0 -0
  29. package/data/sampleDataFolder/qykv/snapshot/15/1_vL.txt +1 -0
  30. package/data/sampleDataFolder/qykv/snapshot/16/1_pM.txt +0 -0
  31. package/data/sampleDataFolder/qykv/snapshot/16/1_prefixPM.txt +0 -0
  32. package/data/sampleDataFolder/qykv/snapshot/16/1_vL.txt +1 -0
  33. package/data/sampleDataFolder/qykv/snapshot/7/1_pM.txt +0 -0
  34. package/data/sampleDataFolder/qykv/snapshot/7/1_prefixPM.txt +0 -0
  35. package/data/sampleDataFolder/qykv/snapshot/7/1_vL.txt +1 -0
  36. package/data/sampleDataFolder/qykv/snapshot/8/1_pM.txt +0 -0
  37. package/data/sampleDataFolder/qykv/snapshot/8/1_prefixPM.txt +0 -0
  38. package/data/sampleDataFolder/qykv/snapshot/8/1_vL.txt +1 -0
  39. package/data/sampleDataFolder/qykv/snapshot/9/1_pM.txt +0 -0
  40. package/data/sampleDataFolder/qykv/snapshot/9/1_prefixPM.txt +0 -0
  41. package/data/sampleDataFolder/qykv/snapshot/9/1_vL.txt +1 -0
  42. package/data/sampleDataFolder/qykv/snapshot/info/10.json +1 -0
  43. package/data/sampleDataFolder/qykv/snapshot/info/11.json +1 -0
  44. package/data/sampleDataFolder/qykv/snapshot/info/12.json +1 -0
  45. package/data/sampleDataFolder/qykv/snapshot/info/13.json +1 -0
  46. package/data/sampleDataFolder/qykv/snapshot/info/14.json +1 -0
  47. package/data/sampleDataFolder/qykv/snapshot/info/15.json +1 -0
  48. package/data/sampleDataFolder/qykv/snapshot/info/16.json +1 -0
  49. package/data/sampleDataFolder/qykv/snapshot/info/7.json +1 -0
  50. package/data/sampleDataFolder/qykv/snapshot/info/8.json +1 -0
  51. package/data/sampleDataFolder/qykv/snapshot/info/9.json +1 -0
  52. package/data/sampleDataFolder/qylog/2026/11/14/14/change.txt +12 -0
  53. package/data/sampleDataFolder/qylog/2026/11/14/14/stderr.txt +14 -0
  54. package/data/sampleDataFolder/qylog/2026/11/14/14/stdout.txt +122 -0
  55. package/data/sampleDataFolder/qylog/2026/11/14/15/change.txt +18 -0
  56. package/data/sampleDataFolder/qylog/2026/11/14/15/stderr.txt +21 -0
  57. package/data/sampleDataFolder/qylog/2026/11/14/15/stdout.txt +183 -0
  58. package/package.json +1 -1
  59. package/src/QyAclSaver.js +11 -9
  60. package/src/QyAclSaver_Worker.d.ts +1 -1
  61. package/src/QyAclSaver_Worker.js +18 -14
  62. package/src/QyAclWriter.js +2 -2
  63. package/src/QyBatch.js +69 -69
  64. package/src/QyBinWriter.js +2 -2
  65. package/src/QyBinaryHeap.js +2 -2
  66. package/src/QyCD.js +2 -2
  67. package/src/QyCache.js +9 -9
  68. package/src/QyDB.js +2 -2
  69. package/src/QyDir.js +10 -10
  70. package/src/QyEmbeddingWriter.js +2 -2
  71. package/src/QyEmbeddings.js +2 -2
  72. package/src/QyExpireInfo.js +4 -4
  73. package/src/QyExpireMonitor.js +2 -2
  74. package/src/QyExpireProcessor.js +6 -4
  75. package/src/QyExpireProcessor_Worker.d.ts +1 -1
  76. package/src/QyExpireProcessor_Worker.js +13 -9
  77. package/src/QyFetch.js +2 -2
  78. package/src/QyFile.js +9 -9
  79. package/src/QyFileLogger.js +10 -10
  80. package/src/QyHNSW.js +6 -6
  81. package/src/QyIndexPropTree.js +2 -2
  82. package/src/QyIntersectNode.js +3 -3
  83. package/src/QyItem.js +2 -2
  84. package/src/QyJsonSaver.js +2 -2
  85. package/src/QyKVData.js +2 -2
  86. package/src/QyKVDataCleaner.js +6 -4
  87. package/src/QyKVDataCleaner_Worker.d.ts +1 -1
  88. package/src/QyKVDataCleaner_Worker.js +6 -2
  89. package/src/QyKVDataLoader.js +2 -2
  90. package/src/QyKVDataSaver.js +14 -12
  91. package/src/QyKVDataSaver_Worker.d.ts +1 -1
  92. package/src/QyKVDataSaver_Worker.js +11 -7
  93. package/src/QyLogFileSaver.js +8 -6
  94. package/src/QyLogFileSaver_Worker.d.ts +1 -1
  95. package/src/QyLogFileSaver_Worker.js +6 -2
  96. package/src/QyMessageWorker.js +2 -2
  97. package/src/QyMessager.d.ts +2 -2
  98. package/src/QyMessager.js +62 -60
  99. package/src/QyMessager_Run.js +10 -12
  100. package/src/QyOpRunner.js +2 -2
  101. package/src/QyQueue.js +2 -2
  102. package/src/QySaver.js +2 -2
  103. package/src/QySnapshotCompactor.js +12 -10
  104. package/src/QySnapshotCompactor_Worker.d.ts +1 -1
  105. package/src/QySnapshotCompactor_Worker.js +24 -20
  106. package/src/QySnapshotSaver.js +10 -8
  107. package/src/QySnapshotSaver_Worker.d.ts +1 -1
  108. package/src/QySnapshotSaver_Worker.js +8 -4
  109. package/src/QySnapshots.js +2 -2
  110. package/src/QyTrigger.js +5 -5
  111. package/src/QyUnionNode.js +3 -3
  112. package/src/QyUtils.d.ts +1 -0
  113. package/src/QyUtils.js +74 -73
  114. package/static/datafolderui/QyStyledElement.js +2 -2
  115. package/static/datafolderui/QyUIFolderViewer.js +2 -2
@@ -1,31 +1,35 @@
1
1
  import {
2
- QyMessageWorker as t
2
+ QyMessageWorker as s
3
3
  } from "./QyMessageWorker.js";
4
4
 
5
5
  import {
6
- QyAclWriter as s
6
+ QyAclWriter as t
7
7
  } from "./QyAclWriter.js";
8
8
 
9
- export default class extends t {
9
+ class QyAclSaver_Worker extends s {
10
10
  qyAclWriter;
11
- constructor(t) {
12
- super(t), this.qyAclWriter = new s({
11
+ constructor(s) {
12
+ super(s), this.qyAclWriter = new t({
13
13
  append: !0
14
14
  });
15
15
  }
16
- async _op_start(t) {
17
- await this.qyAclWriter.start(t);
16
+ async _op_start(s) {
17
+ await this.qyAclWriter.start(s);
18
18
  }
19
19
  async _op_stop() {
20
20
  await this.qyAclWriter.stop();
21
21
  }
22
- async call_save(t, s) {
23
- await this.qyAclWriter.save(t, s, !0);
22
+ async call_save(s, t) {
23
+ await this.qyAclWriter.save(s, t, !0);
24
24
  }
25
- cast_save(t, s) {
26
- this.qyAclWriter.save(t, s);
25
+ cast_save(s, t) {
26
+ this.qyAclWriter.save(s, t);
27
27
  }
28
- cast_switch(t) {
29
- this.qyAclWriter.switch(t);
28
+ cast_switch(s) {
29
+ this.qyAclWriter.switch(s);
30
30
  }
31
- }
31
+ }
32
+
33
+ export {
34
+ QyAclSaver_Worker
35
+ };
@@ -10,7 +10,7 @@ import {
10
10
  getDefaultOptions as o
11
11
  } from "./QyDefaultOptions.js";
12
12
 
13
- class t extends r {
13
+ class QyAclWriter extends r {
14
14
  qyAclCmdGenerator;
15
15
  constructor(r, t = void 0) {
16
16
  super({
@@ -26,5 +26,5 @@ class t extends r {
26
26
  }
27
27
 
28
28
  export {
29
- t as QyAclWriter
29
+ QyAclWriter
30
30
  };
package/src/QyBatch.js CHANGED
@@ -48,7 +48,7 @@ let m = {
48
48
  all: 3
49
49
  };
50
50
 
51
- class y extends t {
51
+ class QyBatch extends t {
52
52
  options;
53
53
  fileLogLevel;
54
54
  changeId = 0;
@@ -70,22 +70,22 @@ class y extends t {
70
70
  createDir(e) {
71
71
  o(e) && (e = n(e));
72
72
  e = this.qyCache.getOrCreateDir(e, this.currentDir);
73
- return q(this, this._action_createDir, e);
73
+ return x(this, this._action_createDir, e);
74
74
  }
75
75
  delDir(e) {
76
76
  o(e) && (e = n(e));
77
77
  e = this.qyCache.getOrCreateDir(e, this.currentDir).ensureAllLoaded();
78
- return q(this, this._action_delDir, e);
78
+ return x(this, this._action_delDir, e);
79
79
  }
80
80
  createFile(e) {
81
81
  o(e) && (e = n(e));
82
82
  e = this.qyCache.getOrCreateFile(e, this.currentDir).ensureLoaded();
83
- return q(this, this._action_createFile, e);
83
+ return x(this, this._action_createFile, e);
84
84
  }
85
85
  delFile(e) {
86
86
  o(e) && (e = n(e));
87
87
  e = this.qyCache.getOrCreateFile(e, this.currentDir).ensureLoaded();
88
- return q(this, this._action_delFile, e);
88
+ return x(this, this._action_delFile, e);
89
89
  }
90
90
  expireFile(e, t) {
91
91
  return this.expireFileM(e, 1e3 * t);
@@ -93,7 +93,7 @@ class y extends t {
93
93
  expireFileM(e, t) {
94
94
  o(e) && (e = n(e));
95
95
  e = this.qyCache.getOrCreateFile(e, this.currentDir);
96
- return q(this, this._action_expireItem, e, t);
96
+ return x(this, this._action_expireItem, e, t);
97
97
  }
98
98
  expireDir(e, t) {
99
99
  return this.expireDirM(e, 1e3 * t);
@@ -101,12 +101,12 @@ class y extends t {
101
101
  expireDirM(e, t) {
102
102
  o(e) && (e = n(e));
103
103
  e = this.qyCache.getOrCreateDir(e, this.currentDir);
104
- return q(this, this._action_expireItem, e, t);
104
+ return x(this, this._action_expireItem, e, t);
105
105
  }
106
106
  expireContent(e, t, i) {
107
107
  o(e) && (e = n(e));
108
108
  e = this.qyCache.getOrCreateFile(e, this.currentDir).ensureLoaded();
109
- return q(this, this._action_expireContent, e, t, i);
109
+ return x(this, this._action_expireContent, e, t, i);
110
110
  }
111
111
  expireContentM(e, t) {
112
112
  return this.expireContent(e, t, !0);
@@ -114,51 +114,51 @@ class y extends t {
114
114
  removeFileExpire(e) {
115
115
  o(e) && (e = n(e));
116
116
  e = this.qyCache.getOrCreateFile(e, this.currentDir);
117
- return q(this, this._action_removeItemExpire, e);
117
+ return x(this, this._action_removeItemExpire, e);
118
118
  }
119
119
  removeDirExpire(e) {
120
120
  o(e) && (e = n(e));
121
121
  e = this.qyCache.getOrCreateDir(e, this.currentDir);
122
- return q(this, this._action_removeItemExpire, e);
122
+ return x(this, this._action_removeItemExpire, e);
123
123
  }
124
124
  removeContentExpire(e, t = void 0, i = !1) {
125
125
  o(e) && (e = n(e));
126
126
  e = this.qyCache.getOrCreateFile(e, this.currentDir).ensureLoaded();
127
- return q(this, this._action_removeContentExpire, e, t, i);
127
+ return x(this, this._action_removeContentExpire, e, t, i);
128
128
  }
129
129
  createIndex(e, t) {
130
130
  o(e) && (e = n(e)), _(t) || (t = [ t ]);
131
131
  e = this.qyCache.getOrCreateDir(e, this.currentDir);
132
- return q(this, this._action_createIndex, e, t);
132
+ return x(this, this._action_createIndex, e, t);
133
133
  }
134
134
  createIndexByQuery(e, t) {
135
135
  o(e) && (e = n(e));
136
136
  e = this.qyCache.getOrCreateDir(e, this.currentDir);
137
- return q(this, this._action_createIndexByQuery, e, t);
137
+ return x(this, this._action_createIndexByQuery, e, t);
138
138
  }
139
139
  delIndex(e, t) {
140
140
  o(e) && (e = n(e));
141
141
  e = this.qyCache.getOrCreateDir(e, this.currentDir);
142
- return q(this, this._action_delIndex, e, t);
142
+ return x(this, this._action_delIndex, e, t);
143
143
  }
144
144
  insert(e, t) {
145
145
  o(e) && (e = n(e));
146
146
  e = this.qyCache.getOrCreateFile(e, this.currentDir).ensureLoaded();
147
- return q(this, this._action_insert, e, t);
147
+ return x(this, this._action_insert, e, t);
148
148
  }
149
149
  setProp(e, t, i) {
150
150
  o(e) && (e = n(e));
151
151
  e = this.qyCache.getOrCreateFile(e, this.currentDir).ensureLoaded();
152
- return q(this, this._action_setProp, e, t, i);
152
+ return x(this, this._action_setProp, e, t, i);
153
153
  }
154
154
  insertEmbedding(e, t) {
155
155
  var i = this.qyCache, i = (f(t) || (t = new Float32Array(t)), o(e) && (e = n(e)),
156
156
  i.getOrCreateFile(e, this.currentDir));
157
- return q(this, this._action_insertEmbedding, i, t);
157
+ return x(this, this._action_insertEmbedding, i, t);
158
158
  }
159
159
  delEmbedding(e) {
160
160
  var t = this.qyCache, t = (o(e) && (e = n(e)), t.getOrCreateFile(e, this.currentDir));
161
- return q(this, this._action_delEmbedding, t);
161
+ return x(this, this._action_delEmbedding, t);
162
162
  }
163
163
  insertWithEmbedding(e, t, i) {
164
164
  return this.insert(e, t), this.insertEmbedding(e, i);
@@ -166,22 +166,22 @@ class y extends t {
166
166
  delContent(e) {
167
167
  o(e) && (e = n(e));
168
168
  e = this.qyCache.getOrCreateFile(e, this.currentDir).ensureLoaded();
169
- return q(this, this._action_delContent, e);
169
+ return x(this, this._action_delContent, e);
170
170
  }
171
171
  insertTrigger(e, t, i, r) {
172
172
  o(t) && (t = n(t)), i = a(i);
173
173
  e = this.qyCache.getOrCreateTriggerFile(e);
174
- return q(this, this._action_insertTrigger, e, t, i, r);
174
+ return x(this, this._action_insertTrigger, e, t, i, r);
175
175
  }
176
176
  removeTrigger(e) {
177
- return q(this, this._action_removeTrigger, this.qyCache.getOrCreateTriggerFile(e));
177
+ return x(this, this._action_removeTrigger, this.qyCache.getOrCreateTriggerFile(e));
178
178
  }
179
179
  insertRpc(e, t) {
180
180
  e = this.qyCache.getOrCreateRpcFile(e);
181
- return q(this, this._action_insertRpc, e, t);
181
+ return x(this, this._action_insertRpc, e, t);
182
182
  }
183
183
  removeRpc(e) {
184
- return q(this, this._action_removeRpc, this.qyCache.getOrCreateRpcFile(e));
184
+ return x(this, this._action_removeRpc, this.qyCache.getOrCreateRpcFile(e));
185
185
  }
186
186
  run(e = !1) {
187
187
  if (this.running || 0 === this.aqIdx) return 0;
@@ -248,12 +248,12 @@ ${s.join("\n")}
248
248
  return !!this._action_delFile(e) && (this.qyCache.removeRpc(e.name), !0);
249
249
  }
250
250
  _action_createIndex(e, t) {
251
- var i = this.qyCache.getOrCreateIndexDir(e), r = D(this, i), t = r.qyIndexPropTree.insertPropPathList(t);
252
- 0 < t.length && x(this, e, 0, r, t);
251
+ var i = this.qyCache.getOrCreateIndexDir(e), r = y(this, i), t = r.qyIndexPropTree.insertPropPathList(t);
252
+ 0 < t.length && D(this, e, 0, r, t);
253
253
  }
254
254
  _action_createIndexByQuery(e, t) {
255
- var i = this.qyCache.getOrCreateIndexDir(e), r = D(this, i), t = r.qyIndexPropTree.insertQueryObj(t);
256
- 0 < t.length && x(this, e, 0, r, t);
255
+ var i = this.qyCache.getOrCreateIndexDir(e), r = y(this, i), t = r.qyIndexPropTree.insertQueryObj(t);
256
+ 0 < t.length && D(this, e, 0, r, t);
257
257
  }
258
258
  _action_delIndex(e, t) {
259
259
  var i, e = this.qyCache.getIndexDir(e);
@@ -267,7 +267,7 @@ ${s.join("\n")}
267
267
  e.created = !1, t || ({
268
268
  parentDir: t,
269
269
  name: i
270
- } = e, L(this, t, t.fileMapKey, i)), I(this, "delFile", e), this._action_removeItemExpire(e),
270
+ } = e, P(this, t, t.fileMapKey, i)), q(this, "delFile", e), this._action_removeItemExpire(e),
271
271
  !0);
272
272
  }
273
273
  _action_delDir(e) {
@@ -281,11 +281,11 @@ ${s.join("\n")}
281
281
  fileMapKey: o
282
282
  } = e;
283
283
  if (n) {
284
- O(this, e, o);
284
+ L(this, e, o);
285
285
  for (var s of e.fileList) this._action_delFile(s, !0);
286
286
  }
287
287
  if (r) {
288
- O(this, e, a);
288
+ L(this, e, a);
289
289
  for (var d of e.allSubdirs()) {
290
290
  let {
291
291
  subdirMap: e,
@@ -293,20 +293,20 @@ ${s.join("\n")}
293
293
  subdirMapKey: i,
294
294
  fileMapKey: r
295
295
  } = d;
296
- if (e && O(this, d, i), t) {
297
- O(this, d, r);
296
+ if (e && L(this, d, i), t) {
297
+ L(this, d, r);
298
298
  for (var h of d.fileList) this._action_delFile(h, !0);
299
299
  }
300
- d.created = !1, I(this, "delDir", d), this._action_removeItemExpire(d);
300
+ d.created = !1, q(this, "delDir", d), this._action_removeItemExpire(d);
301
301
  }
302
302
  }
303
- return void 0 !== t && (e.created = !1, L(this, t, t.subdirMapKey, i), I(this, "delDir", e),
303
+ return void 0 !== t && (e.created = !1, P(this, t, t.subdirMapKey, i), q(this, "delDir", e),
304
304
  this._action_removeItemExpire(e), !0);
305
305
  }
306
306
  _action_delContent(e) {
307
307
  var t = e.fileContent;
308
- return void 0 !== t && (e.fileContent = void 0, O(this, e, e.fileContentKey),
309
- I(this, "delContent", e, t, [ t, null ]), E(this, e, t), this._action_removeContentExpire(e, void 0, !1),
308
+ return void 0 !== t && (e.fileContent = void 0, L(this, e, e.fileContentKey),
309
+ q(this, "delContent", e, t, [ t, null ]), O(this, e, t), this._action_removeContentExpire(e, void 0, !1),
310
310
  !0);
311
311
  }
312
312
  _action_insertEmbedding(e, t) {
@@ -319,7 +319,7 @@ ${s.join("\n")}
319
319
  namePath: r
320
320
  } = e, n = o.addEmbedding(i, t), this._action_setProp(a, "embeddingLength", s),
321
321
  this._action_setProp(a, "embeddingIdx", n), void 0 === d?.namePath && this._action_setProp(a, "namePath", r),
322
- h = !0), h && I(this, "insertEmbedding", e), h;
322
+ h = !0), h && q(this, "insertEmbedding", e), h;
323
323
  }
324
324
  _action_delEmbedding(e) {
325
325
  var t, i = this.qyCache, r = (i.qyEmbeddings.delEmbedding(e.fullPathHash),
@@ -328,7 +328,7 @@ ${s.join("\n")}
328
328
  var n = r.fileContent;
329
329
  if (void 0 !== n && (t = n.embeddingLength, n = n.embeddingIdx, void 0 !== t) && void 0 !== n) return this._action_setProp(i.getOrCreateEmbeddingRecycleFile(t), n, 1),
330
330
  this._action_setProp(r, "embeddingLength", null), this._action_setProp(r, "embeddingIdx", null),
331
- I(this, "delEmbedding", e), !0;
331
+ q(this, "delEmbedding", e), !0;
332
332
  }
333
333
  }
334
334
  _action_setProp(e, t, i) {
@@ -341,7 +341,7 @@ ${s.join("\n")}
341
341
  let o;
342
342
  return void 0 !== a ? (o = a[t], null === i ? delete a[t] : a[t] = i) : null !== i && (e.fileContent = {
343
343
  [t]: i
344
- }), r = e, a = n, (e = this).qyAclCmdGenerator.pushMPropCmd(a, t, i), F(e, r, a),
344
+ }), r = e, a = n, (e = this).qyAclCmdGenerator.pushMPropCmd(a, t, i), I(e, r, a),
345
345
  o;
346
346
  }
347
347
  _action_insert(e, t) {
@@ -352,14 +352,14 @@ ${s.join("\n")}
352
352
  if (void 0 === i) return !1;
353
353
  e.fileContent = t;
354
354
  var r, n, [ a, o ] = i, s = e.fileContentKey;
355
- return void 0 === t ? O(this, e, s) : (n = e, s = s, (r = this).qyAclCmdGenerator.pushMCmd(s, o),
356
- F(r, n, s)), I(this, "insert", e, t, i), E(this, e, a, o, t), !0;
355
+ return void 0 === t ? L(this, e, s) : (n = e, s = s, (r = this).qyAclCmdGenerator.pushMCmd(s, o),
356
+ I(r, n, s)), q(this, "insert", e, t, i), O(this, e, a, o, t), !0;
357
357
  }
358
358
  _action_createFile(e) {
359
359
  var t;
360
360
  return !e.created && (t = e.parentDir, t.created || this._action_createDir(t),
361
- e.fileContentLoaded = !0, e.created = !0, P(this, t, t.fileMapKey, e.name),
362
- I(this, "createFile", e), !0);
361
+ e.fileContentLoaded = !0, e.created = !0, F(this, t, t.fileMapKey, e.name),
362
+ q(this, "createFile", e), !0);
363
363
  }
364
364
  _action_createDir(e) {
365
365
  if (e.created) return !1;
@@ -367,7 +367,7 @@ ${s.join("\n")}
367
367
  for (let e of t.reverse()) {
368
368
  e.subdirMapLoaded = !0, e.fileMapLoaded = !0, e.created = !0;
369
369
  var i = e.parentDir;
370
- P(this, i, i.subdirMapKey, e.name), I(this, "createDir", e);
370
+ F(this, i, i.subdirMapKey, e.name), q(this, "createDir", e);
371
371
  }
372
372
  return !0;
373
373
  }
@@ -376,8 +376,8 @@ ${s.join("\n")}
376
376
  parentDir: i,
377
377
  underHiddenDir: r
378
378
  } = e;
379
- return void 0 !== i && !r && void 0 !== (i = M(t, !0)) && (r = this.qyCache,
380
- t = r.getOrCreateInfoFile(e), this._action_setProp(t, N(e), i) !== i) && (r.monitorItemExpire(e, i),
379
+ return void 0 !== i && !r && void 0 !== (i = T(t, !0)) && (r = this.qyCache,
380
+ t = r.getOrCreateInfoFile(e), this._action_setProp(t, M(e), i) !== i) && (r.monitorItemExpire(e, i),
381
381
  !0);
382
382
  }
383
383
  _action_removeItemExpire(e) {
@@ -385,13 +385,13 @@ ${s.join("\n")}
385
385
  parentDir: t,
386
386
  underHiddenDir: i
387
387
  } = e;
388
- return void 0 !== t && !i && (t = this.qyCache, void 0 !== (i = t.getInfoFile(e))) && void 0 !== this._action_setProp(i, N(e), null) && (t.unmonitorItemExpire(e),
388
+ return void 0 !== t && !i && (t = this.qyCache, void 0 !== (i = t.getInfoFile(e))) && void 0 !== this._action_setProp(i, M(e), null) && (t.unmonitorItemExpire(e),
389
389
  !0);
390
390
  }
391
391
  _action_expireContent(e, i, r) {
392
392
  if (!e.underHiddenDir) {
393
393
  let t = l();
394
- var i = T(i, e => M(e, r, t)), n = this.qyCache, a = n.getOrCreateInfoFile(e), a = this._action_insert(a, {
394
+ var i = b(i, e => T(e, r, t)), n = this.qyCache, a = n.getOrCreateInfoFile(e), a = this._action_insert(a, {
395
395
  cExpire: {
396
396
  ...i
397
397
  }
@@ -402,19 +402,19 @@ ${s.join("\n")}
402
402
  _action_removeContentExpire(e, t = void 0, i) {
403
403
  var r, n;
404
404
  if (!e.underHiddenDir) return r = this.qyCache, void 0 !== (n = r.getInfoFile(e)) && (void 0 === t ? void 0 !== this._action_setProp(n, "cExpire", null) && (r.unmonitorContentExpire(e),
405
- !0) : (t = _(t) ? Object.fromEntries(t.map(e => [ e, null ])) : T(t, e => e ? null : void 0),
405
+ !0) : (t = _(t) ? Object.fromEntries(t.map(e => [ e, null ])) : b(t, e => e ? null : void 0),
406
406
  !!this._action_insert(n, {
407
407
  cExpire: t
408
408
  }) && (i || r.unmonitorContentExpire(e, Object.keys(t)), !0)));
409
409
  }
410
410
  }
411
411
 
412
- function D(e, t) {
412
+ function y(e, t) {
413
413
  t = t.getOrCreateFile(h);
414
414
  return t.created || e._action_createFile(t), t;
415
415
  }
416
416
 
417
- function x(t, i, e, r, n) {
417
+ function D(t, i, e, r, n) {
418
418
  var a, o = {};
419
419
  for (a of n) o[JSON.stringify(a.indexPropPath)] = 1;
420
420
  v.log(`Creating index ${n.map(e => e.indexPropPath)} for ` + i.fullPath), t._action_insert(r, o);
@@ -433,14 +433,14 @@ function x(t, i, e, r, n) {
433
433
  fileContent: u,
434
434
  name: g
435
435
  } = u;
436
- void 0 !== u && b(s, l, c, g, void 0, u);
436
+ void 0 !== u && E(s, l, c, g, void 0, u);
437
437
  }
438
438
  }
439
439
  }
440
440
  }
441
441
  }
442
442
 
443
- function q(e, t, ...i) {
443
+ function x(e, t, ...i) {
444
444
  var r, n;
445
445
  return e.running ? t.apply(e, i) : ({
446
446
  aqIdx: r,
@@ -448,7 +448,7 @@ function q(e, t, ...i) {
448
448
  } = e, n[r] = t, n[r + 1] = i, e.aqIdx += 2), e;
449
449
  }
450
450
 
451
- function I(t, i, r, n = void 0, a = void 0) {
451
+ function q(t, i, r, n = void 0, a = void 0) {
452
452
  var {
453
453
  fileLogLevel: o,
454
454
  fileDeltaList: s
@@ -463,7 +463,7 @@ function I(t, i, r, n = void 0, a = void 0) {
463
463
  }
464
464
  }
465
465
 
466
- function F(e, t, i) {
466
+ function I(e, t, i) {
467
467
  var {
468
468
  qyCache: e,
469
469
  syncList: r,
@@ -473,19 +473,19 @@ function F(e, t, i) {
473
473
  void 0 !== e && e.qyKVData.removeKey(i) && r.push(i, t);
474
474
  }
475
475
 
476
- function P(e, t, i, r) {
477
- e.qyAclCmdGenerator.pushACmd(i, r), F(e, t, i);
476
+ function F(e, t, i, r) {
477
+ e.qyAclCmdGenerator.pushACmd(i, r), I(e, t, i);
478
478
  }
479
479
 
480
- function L(e, t, i, r) {
481
- e.qyAclCmdGenerator.pushRCmd(i, r), F(e, t, i);
480
+ function P(e, t, i, r) {
481
+ e.qyAclCmdGenerator.pushRCmd(i, r), I(e, t, i);
482
482
  }
483
483
 
484
- function O(e, t, i) {
485
- e.qyAclCmdGenerator.pushDCmd(i), F(e, t, i);
484
+ function L(e, t, i) {
485
+ e.qyAclCmdGenerator.pushDCmd(i), I(e, t, i);
486
486
  }
487
487
 
488
- function E(e, t, i, r = void 0, n = void 0) {
488
+ function O(e, t, i, r = void 0, n = void 0) {
489
489
  if (!t.underHiddenDir) {
490
490
  var a = e.qyCache.getIndexDir(t.parentDir);
491
491
  if (void 0 !== a) {
@@ -495,13 +495,13 @@ function E(e, t, i, r = void 0, n = void 0) {
495
495
  for ({
496
496
  indexPropDir: o,
497
497
  indexPropPath: s
498
- } of a.qyIndexPropTree.allLeafNodes) b(e, o, s, d, i, r, n);
498
+ } of a.qyIndexPropTree.allLeafNodes) E(e, o, s, d, i, r, n);
499
499
  }
500
500
  }
501
501
  }
502
502
  }
503
503
 
504
- function b(t, e, i, r, n, a, o = void 0) {
504
+ function E(t, e, i, r, n, a, o = void 0) {
505
505
  e = p(e, i, n, a, o);
506
506
  if (void 0 !== e) {
507
507
  var s, d, [ i, n ] = e;
@@ -524,25 +524,25 @@ function b(t, e, i, r, n, a, o = void 0) {
524
524
  }
525
525
  }
526
526
 
527
- function T(e, t = void 0, i = [], r = {}) {
527
+ function b(e, t = void 0, i = [], r = {}) {
528
528
  if (s(e)) {
529
529
  var n = t ? t(e) : e;
530
530
  void 0 !== n && (r[JSON.stringify(i)] = n);
531
531
  } else {
532
532
  var a, o = i.length;
533
- for (a in e) i.push(a), T(e[a], t, i, r), i.length = o;
533
+ for (a in e) i.push(a), b(e[a], t, i, r), i.length = o;
534
534
  }
535
535
  return r;
536
536
  }
537
537
 
538
- function M(e, t, i = l()) {
538
+ function T(e, t, i = l()) {
539
539
  return r(e) ? (t ? e : 1e3 * e) + i : o(e) ? (t = new Date(e).getTime(), isNaN(t) || t <= i ? void 0 : t) : !u(e) || (t = e.getTime()) <= i ? void 0 : t;
540
540
  }
541
541
 
542
- function N(e) {
542
+ function M(e) {
543
543
  return (e.isFile ? "f" : "d") + "Expire";
544
544
  }
545
545
 
546
546
  export {
547
- y as QyBatch
547
+ QyBatch
548
548
  };
@@ -25,7 +25,7 @@ import {
25
25
  logger as m
26
26
  } from "./QyLogger.js";
27
27
 
28
- class a extends t {
28
+ class QyBinWriter extends t {
29
29
  filePath;
30
30
  totalSavedSize = 0;
31
31
  fileHandle;
@@ -137,5 +137,5 @@ async function r(t, a) {
137
137
  }
138
138
 
139
139
  export {
140
- a as QyBinWriter
140
+ QyBinWriter
141
141
  };
@@ -1,4 +1,4 @@
1
- class t {
1
+ class QyBinaryHeap {
2
2
  items = [];
3
3
  cmpFun;
4
4
  constructor(t = (t, e) => t - e) {
@@ -51,5 +51,5 @@ function i(t, e = t.items.length - 1) {
51
51
  }
52
52
 
53
53
  export {
54
- t as QyBinaryHeap
54
+ QyBinaryHeap
55
55
  };
package/src/QyCD.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  pathSplit as n
4
4
  } from "./QyUtils.js";
5
5
 
6
- class r {
6
+ class QyCD {
7
7
  qyCache;
8
8
  currentDir;
9
9
  constructor(r) {
@@ -116,5 +116,5 @@ function h(r, i) {
116
116
  }
117
117
 
118
118
  export {
119
- r as QyCD
119
+ QyCD
120
120
  };
package/src/QyCache.js CHANGED
@@ -64,7 +64,7 @@ import {
64
64
  QyEmbeddings as m
65
65
  } from "./QyEmbeddings.js";
66
66
 
67
- class t extends r {
67
+ class QyCache extends r {
68
68
  rootFolder;
69
69
  options;
70
70
  qyDB;
@@ -191,10 +191,10 @@ class t extends r {
191
191
  return r.isDir ? r : x(r) ? e.getOrCreateSubdir(r) : e.searchOrCreateSubdir(r);
192
192
  }
193
193
  getIndexDir(r) {
194
- return this.indexRootDir.searchSubdir(s(r.fullPathHash));
194
+ return this.indexRootDir.searchSubdir(i(r.fullPathHash));
195
195
  }
196
196
  getOrCreateIndexDir(r) {
197
- return this.indexRootDir.searchOrCreateSubdir(s(r.fullPathHash));
197
+ return this.indexRootDir.searchOrCreateSubdir(i(r.fullPathHash));
198
198
  }
199
199
  getTriggerFile(r) {
200
200
  return this.triggerRootDir.getFile(r);
@@ -203,13 +203,13 @@ class t extends r {
203
203
  return this.triggerRootDir.getOrCreateFile(r);
204
204
  }
205
205
  getInfoFile(r) {
206
- return this.infoRootDir.searchFile(i(r.fullPathHash));
206
+ return this.infoRootDir.searchFile(t(r.fullPathHash));
207
207
  }
208
208
  getOrCreateInfoFile(r) {
209
- return this.infoRootDir.searchOrCreateFile(i(r.fullPathHash));
209
+ return this.infoRootDir.searchOrCreateFile(t(r.fullPathHash));
210
210
  }
211
211
  hashToSrcFile(r) {
212
- r = this.infoRootDir.searchFile(i(r));
212
+ r = this.infoRootDir.searchFile(t(r));
213
213
  if (void 0 !== r && void 0 !== r.fileContent) {
214
214
  r = r.fileContent.namePath;
215
215
  if (void 0 !== r) return this.getOrCreateFile(r);
@@ -296,11 +296,11 @@ class t extends r {
296
296
  }
297
297
  }
298
298
 
299
- function i(r) {
299
+ function t(r) {
300
300
  return [ r.substring(0, 2), r ];
301
301
  }
302
302
 
303
- function s(r) {
303
+ function i(r) {
304
304
  return [ r[0], r ];
305
305
  }
306
306
 
@@ -309,5 +309,5 @@ function y(r, e, t, i, o, s) {
309
309
  }
310
310
 
311
311
  export {
312
- t as QyCache
312
+ QyCache
313
313
  };
package/src/QyDB.js CHANGED
@@ -35,7 +35,7 @@ import {
35
35
 
36
36
  let d = e(n, "../data/sampleDataFolder");
37
37
 
38
- class l extends t {
38
+ class QyDB extends t {
39
39
  rootFolder;
40
40
  options;
41
41
  fetch;
@@ -99,5 +99,5 @@ class l extends t {
99
99
  }
100
100
 
101
101
  export {
102
- l as QyDB
102
+ QyDB
103
103
  };