@inploi/plugin-kin 2.7.1 → 2.7.3
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/cdn/index.js +68 -68
- package/dist/components/messages.d.ts +55 -0
- package/dist/components/overlay.d.ts +5 -0
- package/dist/components/status-label.d.ts +10 -0
- package/dist/components/widget.d.ts +114 -0
- package/dist/{highlighted-body-B3W2YXNL-809b0e90.cjs → highlighted-body-B3W2YXNL-80d2aee0.cjs} +1 -1
- package/dist/{highlighted-body-B3W2YXNL-0de86b49.js → highlighted-body-B3W2YXNL-e8d9e8c5.js} +1 -1
- package/dist/{index-320440ab.js → index-6a21495e.js} +5270 -5026
- package/dist/index-938f36af.cjs +129 -0
- package/dist/kin.client.d.ts +5 -1
- package/dist/kin.state.d.ts +13 -0
- package/dist/{mermaid-3ZIDBTTL-bfc2bb8d.js → mermaid-3ZIDBTTL-37d51d37.js} +1 -1
- package/dist/{mermaid-3ZIDBTTL-17d174dc.cjs → mermaid-3ZIDBTTL-c77919f3.cjs} +1 -1
- package/dist/plugin-kin.cjs +1 -1
- package/dist/plugin-kin.js +1 -1
- package/package.json +1 -1
- package/dist/index-94feb989.cjs +0 -129
package/dist/kin.client.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ type HistoryMessage = {
|
|
|
7
7
|
blocks?: unknown[];
|
|
8
8
|
};
|
|
9
9
|
type KinMessage = {
|
|
10
|
-
type: 'user_message' | 'response_start' | 'response_chunk' | 'response_end' | 'tool_call' | 'tool_result' | 'error' | 'system' | 'authenticated' | 'data_cleared' | 'guardrail_block' | 'history' | 'quick_replies' | 'upload_received' | 'file_processing' | 'file_processed';
|
|
10
|
+
type: 'user_message' | 'response_start' | 'response_chunk' | 'response_end' | 'tool_call' | 'tool_result' | 'error' | 'system' | 'authenticated' | 'data_cleared' | 'guardrail_block' | 'history' | 'quick_replies' | 'upload_received' | 'file_processing' | 'file_processed' | 'job_detail' | 'job_detail_chunk' | 'job_detail_done';
|
|
11
11
|
content?: string;
|
|
12
12
|
tool?: string;
|
|
13
13
|
blocks?: unknown[];
|
|
@@ -24,6 +24,9 @@ type KinMessage = {
|
|
|
24
24
|
/** CV-specific fields (when fileType is 'cv') */
|
|
25
25
|
summary?: string;
|
|
26
26
|
skills?: string[];
|
|
27
|
+
/** Job detail fields */
|
|
28
|
+
jobId?: string;
|
|
29
|
+
description?: string;
|
|
27
30
|
};
|
|
28
31
|
export declare const FILE_ACCEPT_STRING = ".pdf,.docx,.doc,.txt,.jpg,.jpeg,.png,.webp";
|
|
29
32
|
type KinClientOptions = {
|
|
@@ -44,6 +47,7 @@ export declare function createKinClient({ url, onMessage, onOpen, onClose, onErr
|
|
|
44
47
|
success: boolean;
|
|
45
48
|
error?: string;
|
|
46
49
|
}>;
|
|
50
|
+
requestJobDetail: (jobId: string) => void;
|
|
47
51
|
clearData: () => void;
|
|
48
52
|
disconnect: () => void;
|
|
49
53
|
isConnected: () => boolean;
|
package/dist/kin.state.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { VNode } from 'preact';
|
|
1
2
|
import { MessageBlock } from './message-payload';
|
|
2
3
|
|
|
3
4
|
export type Message = {
|
|
@@ -12,6 +13,12 @@ export type Message = {
|
|
|
12
13
|
};
|
|
13
14
|
type ConnectionState = 'idle' | 'connecting' | 'connected' | 'disconnected' | 'error';
|
|
14
15
|
type UploadState = 'idle' | 'uploading' | 'processing' | 'success' | 'error';
|
|
16
|
+
export type JobDetailState = {
|
|
17
|
+
status: 'loading' | 'streaming' | 'ready';
|
|
18
|
+
description?: string;
|
|
19
|
+
summary?: string;
|
|
20
|
+
liveSummary?: string;
|
|
21
|
+
};
|
|
15
22
|
export declare const store: {
|
|
16
23
|
isOpen: import('@preact/signals').Signal<boolean>;
|
|
17
24
|
isStreaming: import('@preact/signals').Signal<boolean>;
|
|
@@ -26,6 +33,12 @@ export declare const store: {
|
|
|
26
33
|
uploadError: import('@preact/signals').Signal<string | null>;
|
|
27
34
|
uploadFileName: import('@preact/signals').Signal<string | null>;
|
|
28
35
|
hasUnreadMessages: import('@preact/signals').Signal<boolean>;
|
|
36
|
+
jobDetails: import('@preact/signals').Signal<Record<string, JobDetailState>>;
|
|
37
|
+
overlay: import('@preact/signals').Signal<VNode<{}> | null>;
|
|
38
|
+
requestJobDetail: import('@preact/signals').Signal<((jobId: string) => void) | null>;
|
|
39
|
+
setJobDetail: (jobId: string, patch: Partial<JobDetailState>) => void;
|
|
40
|
+
appendJobSummaryChunk: (jobId: string, content: string) => void;
|
|
41
|
+
finalizeJobSummary: (jobId: string, summary: string) => void;
|
|
29
42
|
addMessage: (message: Omit<Message, "id" | "timestamp">) => Message;
|
|
30
43
|
removeMessage: (id: string) => void;
|
|
31
44
|
startAssistantResponse: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-938f36af.cjs");require("@inploi/sdk");exports.Mermaid=e.Nt;
|
package/dist/plugin-kin.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-938f36af.cjs");require("@inploi/sdk");exports.kinPlugin=e.kinPlugin;
|
package/dist/plugin-kin.js
CHANGED