@ykurilov/agent-chat-core 0.91.0 → 0.92.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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @ykurilov/agent-chat-core
2
2
 
3
+ ## 0.92.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 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.
8
+
9
+ 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.
10
+
3
11
  ## 0.91.0
4
12
 
5
13
  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-LH6CTSB7.js.map
15654
+ //# sourceMappingURL=chunk-5ZJDBUMA.js.map