dochub-sdk 0.1.326 → 0.1.327
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/classes/vue2/Documents.ts +1 -1
- package/interfaces/ai.ts +5 -0
- package/package.json +1 -1
@@ -108,7 +108,7 @@ export class DocHubDocumentProto extends DocHubComponentProto implements IDocHub
|
|
108
108
|
const entries = this.followFiles || [];
|
109
109
|
!entries.length && entries.push(...await DocHub.dataLake.getURIForPath(this.profile?.$base));
|
110
110
|
return {
|
111
|
-
title: this.profile?.title || this.profile?.$base?.toString() ||
|
111
|
+
title: this.profile?.title || this.profile?.$base?.toString() || '$undefined$',
|
112
112
|
icon: getIconByURI(this.baseURI || this.followFiles?.[0]),
|
113
113
|
// Генерирует на все задействованные файлы точки редактирования
|
114
114
|
entries: entries.map((uri: string): IDocHubEditableMetaEditEntry => {
|
package/interfaces/ai.ts
CHANGED
@@ -19,6 +19,11 @@ export interface IDocHubAIRequest {
|
|
19
19
|
* Обрабатывает завершение ответа от AI
|
20
20
|
*/
|
21
21
|
onFinish?: () => void;
|
22
|
+
/**
|
23
|
+
* Обрабатывает ошибку
|
24
|
+
* @param error - Ошибка
|
25
|
+
*/
|
26
|
+
onError?: (error: Error) => void;
|
22
27
|
/**
|
23
28
|
* Отменяет запрос
|
24
29
|
* @returns
|