@kedataindo/docflow-core 0.0.62 → 0.0.63
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/ai/index.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { b as AIAction, c as AIActionRequest, d as AICompleteRequest, e as AIConfig, f as AIContextLocation, g as AIDraftCitation, h as AIDraftEvent, a as AIDraftFn, i as AIProvider, A as AIStreamFn, k as
|
|
1
|
+
export { b as AIAction, c as AIActionRequest, d as AICompleteRequest, e as AIConfig, f as AIContextLocation, g as AIDraftCitation, h as AIDraftEvent, a as AIDraftFn, i as AIProvider, A as AIStreamFn, k as AiChatRequestContext, l as Auth, m as CONTEXT_CHAR_CAP, n as CslDate, o as CslItemData, p as CslName, H as HttpKeyStorageUrls, K as KeyStorage, L as LOCAL_STORAGE_KEY, O as OpenAICompatibleConfig, S as StreamEvent, r as buildAIPrompt, s as httpKeyStorage, t as localStorageKeyStorage, u as memoryKeyStorage, v as openaiCompatibleProvider, w as toAIStreamFn, x as trimContextAfter, y as trimContextBefore } from '../index-CDULnDYX.cjs';
|
package/dist/ai/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { b as AIAction, c as AIActionRequest, d as AICompleteRequest, e as AIConfig, f as AIContextLocation, g as AIDraftCitation, h as AIDraftEvent, a as AIDraftFn, i as AIProvider, A as AIStreamFn, k as
|
|
1
|
+
export { b as AIAction, c as AIActionRequest, d as AICompleteRequest, e as AIConfig, f as AIContextLocation, g as AIDraftCitation, h as AIDraftEvent, a as AIDraftFn, i as AIProvider, A as AIStreamFn, k as AiChatRequestContext, l as Auth, m as CONTEXT_CHAR_CAP, n as CslDate, o as CslItemData, p as CslName, H as HttpKeyStorageUrls, K as KeyStorage, L as LOCAL_STORAGE_KEY, O as OpenAICompatibleConfig, S as StreamEvent, r as buildAIPrompt, s as httpKeyStorage, t as localStorageKeyStorage, u as memoryKeyStorage, v as openaiCompatibleProvider, w as toAIStreamFn, x as trimContextAfter, y as trimContextBefore } from '../index-CDULnDYX.js';
|
|
@@ -64,6 +64,17 @@ interface AIContextLocation {
|
|
|
64
64
|
/** Nearest preceding heading text (BAB/section context), e.g. 'BAB II …'. */
|
|
65
65
|
section?: string;
|
|
66
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* Payload for the host's AI-chat hook (issue #219). Carries the selected text
|
|
69
|
+
* (if any) plus the cursor/selection location so a host with its OWN chat panel
|
|
70
|
+
* can pre-fill the prompt with context — without re-reading editor state.
|
|
71
|
+
*/
|
|
72
|
+
interface AiChatRequestContext {
|
|
73
|
+
/** Selected text, when the selection is not empty. */
|
|
74
|
+
selection?: string;
|
|
75
|
+
/** Location of the selection/cursor (page, paragraph, line, section…). */
|
|
76
|
+
context: AIContextLocation;
|
|
77
|
+
}
|
|
67
78
|
interface AIActionRequest {
|
|
68
79
|
action: AIAction;
|
|
69
80
|
/** Selected text (7B). */
|
|
@@ -329,4 +340,4 @@ interface OpenAICompatibleConfig {
|
|
|
329
340
|
}
|
|
330
341
|
declare function openaiCompatibleProvider(config: OpenAICompatibleConfig): AIProvider;
|
|
331
342
|
|
|
332
|
-
export { type AIStreamFn as A, type CitationPort as C, type HttpKeyStorageUrls as H, type ImageUploadHandler as I, type KeyStorage as K, LOCAL_STORAGE_KEY as L, type OpenAICompatibleConfig as O, type StreamEvent as S, type AIDraftFn as a, type AIAction as b, type AIActionRequest as c, type AICompleteRequest as d, type AIConfig as e, type AIContextLocation as f, type AIDraftCitation as g, type AIDraftEvent as h, type AIProvider as i, type AIProviderFactory as j, type
|
|
343
|
+
export { type AIStreamFn as A, type CitationPort as C, type HttpKeyStorageUrls as H, type ImageUploadHandler as I, type KeyStorage as K, LOCAL_STORAGE_KEY as L, type OpenAICompatibleConfig as O, type StreamEvent as S, type AIDraftFn as a, type AIAction as b, type AIActionRequest as c, type AICompleteRequest as d, type AIConfig as e, type AIContextLocation as f, type AIDraftCitation as g, type AIDraftEvent as h, type AIProvider as i, type AIProviderFactory as j, type AiChatRequestContext as k, type Auth as l, CONTEXT_CHAR_CAP as m, type CslDate as n, type CslItemData as o, type CslName as p, type ImageUploadResult as q, buildAIPrompt as r, httpKeyStorage as s, localStorageKeyStorage as t, memoryKeyStorage as u, openaiCompatibleProvider as v, toAIStreamFn as w, trimContextAfter as x, trimContextBefore as y };
|
|
@@ -64,6 +64,17 @@ interface AIContextLocation {
|
|
|
64
64
|
/** Nearest preceding heading text (BAB/section context), e.g. 'BAB II …'. */
|
|
65
65
|
section?: string;
|
|
66
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* Payload for the host's AI-chat hook (issue #219). Carries the selected text
|
|
69
|
+
* (if any) plus the cursor/selection location so a host with its OWN chat panel
|
|
70
|
+
* can pre-fill the prompt with context — without re-reading editor state.
|
|
71
|
+
*/
|
|
72
|
+
interface AiChatRequestContext {
|
|
73
|
+
/** Selected text, when the selection is not empty. */
|
|
74
|
+
selection?: string;
|
|
75
|
+
/** Location of the selection/cursor (page, paragraph, line, section…). */
|
|
76
|
+
context: AIContextLocation;
|
|
77
|
+
}
|
|
67
78
|
interface AIActionRequest {
|
|
68
79
|
action: AIAction;
|
|
69
80
|
/** Selected text (7B). */
|
|
@@ -329,4 +340,4 @@ interface OpenAICompatibleConfig {
|
|
|
329
340
|
}
|
|
330
341
|
declare function openaiCompatibleProvider(config: OpenAICompatibleConfig): AIProvider;
|
|
331
342
|
|
|
332
|
-
export { type AIStreamFn as A, type CitationPort as C, type HttpKeyStorageUrls as H, type ImageUploadHandler as I, type KeyStorage as K, LOCAL_STORAGE_KEY as L, type OpenAICompatibleConfig as O, type StreamEvent as S, type AIDraftFn as a, type AIAction as b, type AIActionRequest as c, type AICompleteRequest as d, type AIConfig as e, type AIContextLocation as f, type AIDraftCitation as g, type AIDraftEvent as h, type AIProvider as i, type AIProviderFactory as j, type
|
|
343
|
+
export { type AIStreamFn as A, type CitationPort as C, type HttpKeyStorageUrls as H, type ImageUploadHandler as I, type KeyStorage as K, LOCAL_STORAGE_KEY as L, type OpenAICompatibleConfig as O, type StreamEvent as S, type AIDraftFn as a, type AIAction as b, type AIActionRequest as c, type AICompleteRequest as d, type AIConfig as e, type AIContextLocation as f, type AIDraftCitation as g, type AIDraftEvent as h, type AIProvider as i, type AIProviderFactory as j, type AiChatRequestContext as k, type Auth as l, CONTEXT_CHAR_CAP as m, type CslDate as n, type CslItemData as o, type CslName as p, type ImageUploadResult as q, buildAIPrompt as r, httpKeyStorage as s, localStorageKeyStorage as t, memoryKeyStorage as u, openaiCompatibleProvider as v, toAIStreamFn as w, trimContextAfter as x, trimContextBefore as y };
|
package/dist/index.d.cts
CHANGED
|
@@ -4,8 +4,8 @@ import { IndexeddbPersistence } from 'y-indexeddb';
|
|
|
4
4
|
import { WebrtcProvider } from 'y-webrtc';
|
|
5
5
|
import { WebsocketProvider } from 'y-websocket';
|
|
6
6
|
import * as Y from 'yjs';
|
|
7
|
-
import { I as ImageUploadHandler, C as CitationPort, A as AIStreamFn, a as AIDraftFn } from './index-
|
|
8
|
-
export { b as AIAction, c as AIActionRequest, d as AICompleteRequest, e as AIConfig, f as AIContextLocation, g as AIDraftCitation, h as AIDraftEvent, i as AIProvider, j as AIProviderFactory, k as
|
|
7
|
+
import { I as ImageUploadHandler, C as CitationPort, A as AIStreamFn, a as AIDraftFn } from './index-CDULnDYX.cjs';
|
|
8
|
+
export { b as AIAction, c as AIActionRequest, d as AICompleteRequest, e as AIConfig, f as AIContextLocation, g as AIDraftCitation, h as AIDraftEvent, i as AIProvider, j as AIProviderFactory, k as AiChatRequestContext, l as Auth, m as CONTEXT_CHAR_CAP, n as CslDate, o as CslItemData, p as CslName, H as HttpKeyStorageUrls, q as ImageUploadResult, K as KeyStorage, L as LOCAL_STORAGE_KEY, O as OpenAICompatibleConfig, S as StreamEvent, r as buildAIPrompt, s as httpKeyStorage, t as localStorageKeyStorage, u as memoryKeyStorage, v as openaiCompatibleProvider, w as toAIStreamFn, x as trimContextAfter, y as trimContextBefore } from './index-CDULnDYX.cjs';
|
|
9
9
|
import { PaginationPlusOptions } from 'tiptap-pagination-plus';
|
|
10
10
|
export { PAGE_SIZES, PageSize, PaginationPlus, PaginationPlusOptions } from 'tiptap-pagination-plus';
|
|
11
11
|
import { PluginKey } from '@tiptap/pm/state';
|
package/dist/index.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import { IndexeddbPersistence } from 'y-indexeddb';
|
|
|
4
4
|
import { WebrtcProvider } from 'y-webrtc';
|
|
5
5
|
import { WebsocketProvider } from 'y-websocket';
|
|
6
6
|
import * as Y from 'yjs';
|
|
7
|
-
import { I as ImageUploadHandler, C as CitationPort, A as AIStreamFn, a as AIDraftFn } from './index-
|
|
8
|
-
export { b as AIAction, c as AIActionRequest, d as AICompleteRequest, e as AIConfig, f as AIContextLocation, g as AIDraftCitation, h as AIDraftEvent, i as AIProvider, j as AIProviderFactory, k as
|
|
7
|
+
import { I as ImageUploadHandler, C as CitationPort, A as AIStreamFn, a as AIDraftFn } from './index-CDULnDYX.js';
|
|
8
|
+
export { b as AIAction, c as AIActionRequest, d as AICompleteRequest, e as AIConfig, f as AIContextLocation, g as AIDraftCitation, h as AIDraftEvent, i as AIProvider, j as AIProviderFactory, k as AiChatRequestContext, l as Auth, m as CONTEXT_CHAR_CAP, n as CslDate, o as CslItemData, p as CslName, H as HttpKeyStorageUrls, q as ImageUploadResult, K as KeyStorage, L as LOCAL_STORAGE_KEY, O as OpenAICompatibleConfig, S as StreamEvent, r as buildAIPrompt, s as httpKeyStorage, t as localStorageKeyStorage, u as memoryKeyStorage, v as openaiCompatibleProvider, w as toAIStreamFn, x as trimContextAfter, y as trimContextBefore } from './index-CDULnDYX.js';
|
|
9
9
|
import { PaginationPlusOptions } from 'tiptap-pagination-plus';
|
|
10
10
|
export { PAGE_SIZES, PageSize, PaginationPlus, PaginationPlusOptions } from 'tiptap-pagination-plus';
|
|
11
11
|
import { PluginKey } from '@tiptap/pm/state';
|