dochub-sdk 0.1.328 → 0.1.329

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.
Files changed (2) hide show
  1. package/interfaces/ai.ts +8 -0
  2. package/package.json +1 -1
package/interfaces/ai.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import { DocHubEditorContext } from "./editors";
2
+
1
3
  /**
2
4
  * Интерфейс открытого запроса к AI
3
5
  */
@@ -69,6 +71,12 @@ export interface IDocHubAI {
69
71
  * @returns - Запрос к AI
70
72
  */
71
73
  ask: DocHubAskFunction;
74
+ /**
75
+ * Создает глобальный контекст на основании встроенных механизмов
76
+ * @param context - Пользовательский контекст. Если не указан, то будет использован текущий контекст
77
+ * @returns - Глобальный контекст
78
+ */
79
+ makeGlobalContext(context?: DocHubEditorContext): Promise<string>;
72
80
  /**
73
81
  * Регистрирует драйвер AI
74
82
  * @param alias - Алиас драйвера
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.328",
3
+ "version": "0.1.329",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",