@evandu/super-pi 0.1.37 → 0.1.39
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/index.html
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
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-
|
|
12
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
11
|
+
<script type="module" crossorigin src="/assets/index-DSJuo0Bi.js"></script>
|
|
12
|
+
<link rel="stylesheet" crossorigin href="/assets/index-DX1yjXR8.css">
|
|
13
13
|
</head>
|
|
14
14
|
<body>
|
|
15
15
|
<div id="root"></div>
|
package/dist/server/store.js
CHANGED
|
@@ -903,7 +903,13 @@ export class Store {
|
|
|
903
903
|
const message = this.requireConversation(conversationId).messages.find((item) => item.id === messageId);
|
|
904
904
|
if (!message)
|
|
905
905
|
throw new Error("Assistant message not found");
|
|
906
|
-
|
|
906
|
+
// `at` is WHERE IN THE ANSWER THE QUESTION WAS ASKED - the same character offset a tool call carries,
|
|
907
|
+
// and for the same reason. Without it a question is a list item with no position, so it renders after
|
|
908
|
+
// the whole message; and because the question BLOCKS, everything the model says after the answer
|
|
909
|
+
// lands in the text above it. Measured on a real turn: the model said nothing, asked, waited, and on
|
|
910
|
+
// being answered streamed 「已经调用 question 工具问完,停下来等你回答」 - which rendered ABOVE the card
|
|
911
|
+
// and read as though it had been said before the question was ever asked.
|
|
912
|
+
const block = { ...structuredClone(question), id: id("question"), status: "pending", at: message.content.length };
|
|
907
913
|
(message.questionBlocks ??= []).push(block);
|
|
908
914
|
await this.persistTransaction({ kind: "message.replace", conversationId, message: structuredClone(message), updatedAt: now() });
|
|
909
915
|
return structuredClone(block);
|
package/dist/server/types.d.ts
CHANGED