@ykurilov/agent-chat-core 0.95.2 → 0.96.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/dist/index.js CHANGED
@@ -189,7 +189,7 @@ import {
189
189
  withoutFileParts,
190
190
  withoutGlueFragments,
191
191
  withoutResetSteps
192
- } from "./chunk-J4S522IU.js";
192
+ } from "./chunk-THL3LUXH.js";
193
193
  import {
194
194
  APP_EVENT_DATA_MAX_BYTES,
195
195
  APP_EVENT_TYPE_MAX_LENGTH,
@@ -14,7 +14,7 @@ import {
14
14
  extendCatalog,
15
15
  newStoredMessage,
16
16
  standardCatalog
17
- } from "./chunk-J4S522IU.js";
17
+ } from "./chunk-THL3LUXH.js";
18
18
  import "./chunk-CVRDB3NM.js";
19
19
 
20
20
  // src/storage/storage-contract.ts
@@ -38,6 +38,13 @@ export interface MessageAttachments {
38
38
  }): Promise<StoredFilePart[]>;
39
39
  /** Отмечает файлы прикреплёнными; вызывается перед записью сообщения: файл, отмеченный зря, безвреден, а неотмеченный файл записанного сообщения удалила бы чистка. */
40
40
  confirmUserParts(parts: readonly StoredFilePart[]): Promise<void>;
41
+ /** Background notification after insertion of a new user message. Not called for edits/imports/retries. Errors go to the service logError. */
42
+ userMessageStored?(input: {
43
+ userId: string;
44
+ chatId: string;
45
+ messageId: string;
46
+ parts: readonly StoredFilePart[];
47
+ }): void | Promise<void>;
41
48
  /**
42
49
  * Чат удаляется: убирает все его файлы, в том числе прикреплённые к сообщениям. Ошибка останавливает удаление
43
50
  * чата целиком: его можно повторить. Не задан — файлы остаются на совести приложения.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ykurilov/agent-chat-core",
3
- "version": "0.95.2",
3
+ "version": "0.96.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,