@ykurilov/agent-chat-core 0.91.0 → 0.93.0
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/CHANGELOG.md +14 -0
- package/dist/{chunk-LH6CTSB7.js → chunk-5ZJDBUMA.js} +5 -1
- package/dist/chunk-5ZJDBUMA.js.map +1 -0
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/storage-contract.js +11 -1
- package/dist/storage-contract.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/storage/chat-storage.d.ts +4 -0
- package/package.json +1 -1
- package/dist/chunk-LH6CTSB7.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @ykurilov/agent-chat-core
|
|
2
2
|
|
|
3
|
+
## 0.93.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4f97a07: Swift AgentChatOduvanchik показывает картинки Markdown отдельными блоками с подписью. Приложение может передать `.agentChatImageLoader` с сигнатурой `@Sendable (String) async throws -> Data`; адрес сохраняется без преобразования, включая пути Mac. Без загрузчика HTTP(S) грузится штатно, для остальных адресов остаётся подпись. Загрузка/ошибка используют постоянную рамку 4:3 без изменения высоты после декодирования. Веб-часть и сервер не меняются. Документация: docs/swift-markdown-images.md.
|
|
8
|
+
|
|
9
|
+
## 0.92.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 6b9b6ba: Avoid downloading unchanged history after watch opens with a subscribe-before-verify handshake; retain legacy fallback. Add static SSR text and labels-only entries, optional hasMessages and hasChatMessages fallback, and a PostgreSQL usage date index. Existing interactive skin and editor entries remain unchanged.
|
|
14
|
+
|
|
15
|
+
Migration: update all SDK packages together. Use @ykurilov/agent-chat-skin-oduvanchik/text for static saved Markdown (no interactive copy/diagram/demo), /text/styles.css for scoped standalone styles, @ykurilov/agent-chat-flows/labels for dictionaries, and hasChatMessages(storage, chatId) after authorization. Server history verification still reads the snapshot. App-owned model-menu requests are unchanged. Full contract: https://github.com/ykurilov/agent-chat-sdk/blob/main/docs/loading-performance.md.
|
|
16
|
+
|
|
3
17
|
## 0.91.0
|
|
4
18
|
|
|
5
19
|
No changes in this release.
|
|
@@ -2897,6 +2897,9 @@ function assertKnownFormatVersion(message) {
|
|
|
2897
2897
|
throw new UnsupportedFormatVersionError(message.id, message.formatVersion);
|
|
2898
2898
|
}
|
|
2899
2899
|
}
|
|
2900
|
+
async function hasChatMessages(storage, chatId) {
|
|
2901
|
+
return storage.hasMessages ? storage.hasMessages(chatId) : (await storage.listMessageLinks(chatId)).length > 0;
|
|
2902
|
+
}
|
|
2900
2903
|
|
|
2901
2904
|
// src/page-context/page-context.ts
|
|
2902
2905
|
function continuationRequestContext(start, corrections) {
|
|
@@ -15550,6 +15553,7 @@ export {
|
|
|
15550
15553
|
MessageNotAwaitingError,
|
|
15551
15554
|
UnsupportedFormatVersionError,
|
|
15552
15555
|
assertKnownFormatVersion,
|
|
15556
|
+
hasChatMessages,
|
|
15553
15557
|
APP_CHANGE_PART_TYPE,
|
|
15554
15558
|
BROWSER_CALL_PART_TYPE,
|
|
15555
15559
|
BrowserCallNotPendingError,
|
|
@@ -15647,4 +15651,4 @@ export {
|
|
|
15647
15651
|
InvalidWidgetAnswerError,
|
|
15648
15652
|
createChatService
|
|
15649
15653
|
};
|
|
15650
|
-
//# sourceMappingURL=chunk-
|
|
15654
|
+
//# sourceMappingURL=chunk-5ZJDBUMA.js.map
|