@evandu/super-pi 0.1.304 → 0.1.305
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/.super-pi-check-inputs.json +2 -2
- package/dist/client/.super-pi-client-sources.json +5 -5
- package/dist/client/assets/{CodeMirrorEditor-BgCUmuUG.js → CodeMirrorEditor-48A-quY7.js} +1 -1
- package/dist/client/assets/{GitDiffEditor-BT1PriQU.js → GitDiffEditor-CJ8yOdox.js} +1 -1
- package/dist/client/assets/{index-BklBoCmG.js → index-BN2-vzGQ.js} +6 -6
- package/dist/client/assets/{index-2PIw_FRw.css → index-Dx4q_-Im.css} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/application/group-chat-service.js +8 -0
- package/package.json +2 -1
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-BN2-vzGQ.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-Dx4q_-Im.css">
|
|
14
14
|
</head>
|
|
15
15
|
<body>
|
|
16
16
|
<div id="root"></div>
|
|
@@ -333,6 +333,14 @@ export class GroupChatService {
|
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
335
|
async setArchived(workspaceId, id, archived) {
|
|
336
|
+
if (archived) {
|
|
337
|
+
const room = this.find(this.rooms, workspaceId, id);
|
|
338
|
+
// A completed topic may still be persisting cleanup after publishing its terminal state.
|
|
339
|
+
// Cancelled workers remain guarded below until their actual execution has returned.
|
|
340
|
+
const tails = room.messages.flatMap(post => post.role === "user" && (post.status === "completed" || post.status === "failed")
|
|
341
|
+
? this.running.get(post.id) ?? [] : []);
|
|
342
|
+
await Promise.allSettled(tails);
|
|
343
|
+
}
|
|
336
344
|
if (archived && this.runtime.groupMembersBusy?.(workspaceId, id))
|
|
337
345
|
throw new Error("群成员仍有后台工作,请先停止或等待完成再归档。");
|
|
338
346
|
return this.edit(rooms => {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"superPi": {
|
|
4
4
|
"managedDirectListener": true
|
|
5
5
|
},
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.305",
|
|
7
7
|
"description": "Web control plane and companion for Pi",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"type": "module",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"pack:server": "npm run build && node scripts/pack-server.mjs"
|
|
55
55
|
},
|
|
56
56
|
"check:logic": [
|
|
57
|
+
"scripts/browser-navigation.test.mjs",
|
|
57
58
|
"scripts/group-capability-parity.test.mjs",
|
|
58
59
|
"scripts/context-compaction.test.mjs",
|
|
59
60
|
"scripts/minimax-output.test.mjs",
|