@evandu/super-pi 0.1.257 → 0.1.258
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/dist/client/.super-pi-client-sources.json +9 -8
- package/dist/client/assets/{CodeMirrorEditor-BzP7t7OU.js → CodeMirrorEditor-CyVU-MC_.js} +1 -1
- package/dist/client/assets/{GitDiffEditor-DZB8u23P.js → GitDiffEditor-BOtWl74Z.js} +1 -1
- package/dist/client/assets/index-Ba79LA0t.js +349 -0
- package/dist/client/assets/index-JchFQmlF.css +1 -0
- package/dist/client/index.html +2 -2
- package/dist/shared/transcript-order.d.ts +7 -0
- package/dist/shared/transcript-order.js +12 -0
- package/package.json +2 -1
- package/dist/client/assets/index-B9YPOWDi.css +0 -1
- package/dist/client/assets/index-BStEdM85.js +0 -349
package/dist/client/index.html
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
<link rel="alternate icon" href="/favicon.ico" />
|
|
9
9
|
<link rel="apple-touch-icon" href="/favicon.svg" />
|
|
10
10
|
<title>Super Pi</title>
|
|
11
|
-
<script type="module" crossorigin src="/assets/index-
|
|
11
|
+
<script type="module" crossorigin src="/assets/index-Ba79LA0t.js"></script>
|
|
12
12
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-XKyaHtl9.js">
|
|
13
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
13
|
+
<link rel="stylesheet" crossorigin href="/assets/index-JchFQmlF.css">
|
|
14
14
|
</head>
|
|
15
15
|
<body>
|
|
16
16
|
<div id="root"></div>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Preserve persisted message order while placing unanchored activity cards by time. */
|
|
2
|
+
export function orderTranscriptItems(items) {
|
|
3
|
+
let messageTime = 0;
|
|
4
|
+
return items.map(item => {
|
|
5
|
+
if (!item.key.startsWith("m:"))
|
|
6
|
+
return item;
|
|
7
|
+
// Queue acceptance can predate an earlier reply. Use a monotonic placement time without
|
|
8
|
+
// changing the message's real timestamp or breaking the server's causal ordering.
|
|
9
|
+
messageTime = Math.max(messageTime, Number.isFinite(item.at) ? item.at : 0);
|
|
10
|
+
return { ...item, at: messageTime };
|
|
11
|
+
}).sort((a, b) => a.at - b.at || a.seq - b.seq).map(item => item.key);
|
|
12
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evandu/super-pi",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.258",
|
|
4
4
|
"description": "Web control plane and companion for Pi",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -95,6 +95,7 @@
|
|
|
95
95
|
"scripts/super-pi-tool-names.test.mjs",
|
|
96
96
|
"scripts/agent-wiring.test.mjs",
|
|
97
97
|
"scripts/message-timestamps.test.mjs",
|
|
98
|
+
"scripts/transcript-causal-order.test.mjs",
|
|
98
99
|
"scripts/pi-resolution.test.mjs",
|
|
99
100
|
"scripts/agent-real-pi.test.mjs",
|
|
100
101
|
"scripts/image-input-real-pi.test.mjs",
|