@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/CHANGELOG.md +10 -0
- package/README.md +9 -0
- package/dist/{chunk-J4S522IU.js → chunk-THL3LUXH.js} +17 -1
- package/dist/chunk-THL3LUXH.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/storage-contract.js +1 -1
- package/dist/types/attachments/message-attachments.d.ts +7 -0
- package/package.json +1 -1
- package/dist/chunk-J4S522IU.js.map +0 -1
package/dist/index.js
CHANGED
package/dist/storage-contract.js
CHANGED
|
@@ -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
|
* чата целиком: его можно повторить. Не задан — файлы остаются на совести приложения.
|