k2-im 0.1.44 → 0.1.46

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/browser.js CHANGED
@@ -1 +1 @@
1
- export{Ua as canCopyImageToClipboard,Va as copyImageToClipboard,B as createLazyBrowserApiProtocolClient}from'./chunk-SVYZRVHS.js';import'./chunk-XNBJ3NXF.js';import'./chunk-WOT6VMZA.js';
1
+ export{Ua as canCopyImageToClipboard,Va as copyImageToClipboard,B as createLazyBrowserApiProtocolClient}from'./chunk-R3MSZLO6.js';import'./chunk-7PCBQBZL.js';import'./chunk-WOT6VMZA.js';
@@ -2205,13 +2205,14 @@ interface ImStoragePort {
2205
2205
  * @param query beforeSortKey 排它上界 + limit 单页上限。
2206
2206
  */
2207
2207
  getMessages: (conversation: ImStorageConversation, query: ImStorageMessageQuery) => Promise<ImMessage[]>;
2208
- /** 批量落盘(单事务);records 为收敛后的合并态,按 id 覆盖写。 */
2208
+ /** 单事务保存已合并的消息;仅覆盖完整 ConversationRef 与消息 id 都相同的记录。 */
2209
2209
  saveMessages: (messages: readonly ImMessage[]) => Promise<void>;
2210
2210
  /**
2211
2211
  * 原子删除精确会话内的一条消息,并可同步写入删除后的会话摘要。
2212
2212
  *
2213
2213
  * @remarks `nextSession` 由 DomainState 从同一内存真相预计算;adapter 必须让消息删除与摘要写入同成同败。
2214
- * 返回值只表示 durable 消息行是否存在并被删除,身份不匹配必须返回 false 且不得产生部分副作用。
2214
+ * 返回值只表示 durable 消息行是否存在并被删除;目标行缺失时仍清理该会话的恢复记录和请求缓存,并写入合法摘要。
2215
+ * 精确主键下的已存记录身份不匹配时返回 false 且不产生副作用;nextSession 身份不匹配时必须拒绝调用。
2215
2216
  */
2216
2217
  deleteMessage: (conversation: ConversationRef, messageId: string, nextSession?: ImSession) => Promise<boolean>;
2217
2218
  /**