truememory-mirror 1.1.0 → 1.1.2
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.
- package/bin/mirror.js +2 -1
- package/package.json +1 -1
- package/src/unified.js +3 -3
package/bin/mirror.js
CHANGED
|
@@ -284,7 +284,8 @@ async function main() {
|
|
|
284
284
|
|
|
285
285
|
try {
|
|
286
286
|
await pollStatus(result.profile_id, args.apiUrl, (status) => {
|
|
287
|
-
|
|
287
|
+
const reported = Math.round((status.progress || 0) * 100);
|
|
288
|
+
if (reported > serverPct) serverPct = reported;
|
|
288
289
|
if (serverPct > displayPct) renderProgress();
|
|
289
290
|
});
|
|
290
291
|
} catch (err) {
|
package/package.json
CHANGED
package/src/unified.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const MAX_PAYLOAD_BYTES =
|
|
2
|
-
const MIN_SESSIONS =
|
|
1
|
+
const MAX_PAYLOAD_BYTES = 5 * 1024 * 1024; // 5MB
|
|
2
|
+
const MIN_SESSIONS = 10;
|
|
3
3
|
|
|
4
|
-
export function unifyMessages(claudeSessions, codexSessions, opencodeSessions = [], limit =
|
|
4
|
+
export function unifyMessages(claudeSessions, codexSessions, opencodeSessions = [], limit = 500) {
|
|
5
5
|
const allSessions = [...claudeSessions, ...codexSessions, ...opencodeSessions];
|
|
6
6
|
|
|
7
7
|
allSessions.sort((a, b) => {
|