@ykurilov/agent-chat-core 0.110.0 → 0.111.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-WMVDYLNE.js → chunk-43MEXT4W.js} +5 -2
- package/dist/chunk-43MEXT4W.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/storage-contract.js +1 -1
- package/dist/types/background/background-tasks.d.ts +5 -0
- package/dist/types/notices/agent-notice.d.ts +2 -0
- package/package.json +1 -1
- package/dist/chunk-WMVDYLNE.js.map +0 -1
package/dist/index.js
CHANGED
package/dist/storage-contract.js
CHANGED
|
@@ -34,6 +34,11 @@ export interface BackgroundPort {
|
|
|
34
34
|
runHelper: RunHelper;
|
|
35
35
|
helperModel(name: string, ownerId: string, chatId: string): Promise<AgentToolsModel>;
|
|
36
36
|
assertWithinLimit(ownerId: string, chatId: string): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* Чат есть и принадлежит `ownerId` (с 0.111): запуск задачи из кода приложения.
|
|
39
|
+
* @throws ChatNotFoundError чата нет или он чужой.
|
|
40
|
+
*/
|
|
41
|
+
assertOwnChat(ownerId: string, chatId: string): Promise<void>;
|
|
37
42
|
logError(error: unknown): void;
|
|
38
43
|
/** Только фоновые помощники (`background: true`), ядро заполняет в `attach`. */
|
|
39
44
|
helpers?: Record<string, AgentHelper>;
|
|
@@ -37,6 +37,8 @@ export interface AgentNotice {
|
|
|
37
37
|
};
|
|
38
38
|
/** В итоге может быть чужой текст (помощник вызывал инструмент с пометкой `externalContent`). Нет — не было. */
|
|
39
39
|
externalContent?: true;
|
|
40
|
+
/** У `task_*` (с 0.111): задачу запустило приложение (`background.start`), а не модель. Нет — запустила модель. */
|
|
41
|
+
startedBy?: "app";
|
|
40
42
|
}
|
|
41
43
|
/** Тип части сообщения со служебными сообщениями. */
|
|
42
44
|
export declare const AGENT_NOTICE_PART_TYPE = "data-agent-notice";
|