@inploi/plugin-kin 2.4.4 → 2.4.6
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 +76 -76
- package/dist/components/icons.d.ts +26 -24
- package/dist/components/tooltip.d.ts +6 -0
- package/dist/{highlighted-body-B3W2YXNL-8dac2ba2.js → highlighted-body-B3W2YXNL-0ae08105.js} +1 -1
- package/dist/{highlighted-body-B3W2YXNL-a9f26142.cjs → highlighted-body-B3W2YXNL-933fd530.cjs} +1 -1
- package/dist/index-2d61bdd5.cjs +155 -0
- package/dist/{index-3ffc9af2.js → index-2f826588.js} +5390 -5370
- package/dist/index.d.ts +1 -1
- package/dist/kin.client.d.ts +2 -1
- package/dist/kin.d.ts +8 -4
- package/dist/kin.state.d.ts +11 -6
- package/dist/kin.vars.d.ts +3 -0
- package/dist/{mermaid-3ZIDBTTL-0b3f7dc5.js → mermaid-3ZIDBTTL-132e74b7.js} +1 -1
- package/dist/{mermaid-3ZIDBTTL-f596aef3.cjs → mermaid-3ZIDBTTL-1c6420c6.cjs} +1 -1
- package/dist/plugin-kin.cjs +1 -1
- package/dist/plugin-kin.js +1 -2
- package/package.json +3 -3
- package/dist/index-516b7de7.cjs +0 -155
- package/dist/kin.theme.d.ts +0 -39
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { kinPlugin, type Kin, type KinPlugin, type KinPluginParams, type KinTheme
|
|
1
|
+
export { kinPlugin, type Kin, type KinPlugin, type KinPluginParams, type KinTheme } from './kin';
|
package/dist/kin.client.d.ts
CHANGED
|
@@ -6,8 +6,9 @@ type HistoryMessage = {
|
|
|
6
6
|
content: string;
|
|
7
7
|
};
|
|
8
8
|
type KinMessage = {
|
|
9
|
-
type: 'user_message' | 'response_start' | 'response_chunk' | 'response_end' | 'error' | 'system' | 'authenticated' | 'data_cleared' | 'guardrail_block' | 'history' | 'quick_replies' | 'upload_received' | 'file_processing' | 'file_processed';
|
|
9
|
+
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
10
|
content?: string;
|
|
11
|
+
tool?: string;
|
|
11
12
|
company?: string;
|
|
12
13
|
environment?: string;
|
|
13
14
|
/** Message history sent on connect */
|
package/dist/kin.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import { KinTheme } from './kin.theme';
|
|
2
|
-
|
|
3
|
-
export type { KinTheme } from './kin.theme';
|
|
4
|
-
export { BRAND_THEMES } from './kin.theme';
|
|
5
1
|
/** A starter prompt button shown in the empty state */
|
|
6
2
|
export type StarterPrompt = {
|
|
7
3
|
/** Text displayed on the button */
|
|
@@ -9,6 +5,14 @@ export type StarterPrompt = {
|
|
|
9
5
|
/** Message sent when clicked (can differ from label) */
|
|
10
6
|
message: string;
|
|
11
7
|
};
|
|
8
|
+
export type KinTheme = {
|
|
9
|
+
/** Primary accent color as HEX (e.g., "#FF4D00") */
|
|
10
|
+
accentColor: string;
|
|
11
|
+
/** Optional neutral base color as HEX (e.g., "#555555"). Defaults to medium gray. */
|
|
12
|
+
neutralColor?: string;
|
|
13
|
+
/** Light or dark mode */
|
|
14
|
+
mode: 'light' | 'dark';
|
|
15
|
+
};
|
|
12
16
|
export type KinPluginParams = {
|
|
13
17
|
/** Override the agents service URL. Defaults to production (wss://agents.inploi.com). Only needed for local development. */
|
|
14
18
|
serviceUrl?: string;
|
package/dist/kin.state.d.ts
CHANGED
|
@@ -9,6 +9,10 @@ type UploadState = 'idle' | 'uploading' | 'processing' | 'success' | 'error';
|
|
|
9
9
|
export declare const store: {
|
|
10
10
|
isOpen: import('@preact/signals').Signal<boolean>;
|
|
11
11
|
isStreaming: import('@preact/signals').Signal<boolean>;
|
|
12
|
+
assistantStatus: import('@preact/signals').Signal<string | null>;
|
|
13
|
+
liveAssistantMessage: import('@preact/signals').Signal<(Message & {
|
|
14
|
+
role: "assistant";
|
|
15
|
+
}) | null>;
|
|
12
16
|
connectionState: import('@preact/signals').Signal<ConnectionState>;
|
|
13
17
|
messages: import('@preact/signals').Signal<Message[]>;
|
|
14
18
|
quickReplies: import('@preact/signals').Signal<string[]>;
|
|
@@ -17,18 +21,19 @@ export declare const store: {
|
|
|
17
21
|
uploadFileName: import('@preact/signals').Signal<string | null>;
|
|
18
22
|
hasUnreadMessages: import('@preact/signals').Signal<boolean>;
|
|
19
23
|
addMessage: (message: Omit<Message, "id" | "timestamp">) => void;
|
|
20
|
-
|
|
24
|
+
startAssistantResponse: () => void;
|
|
25
|
+
appendToLiveAssistantMessage: (content: string) => void;
|
|
26
|
+
finishAssistantResponse: (options?: {
|
|
27
|
+
commit?: boolean;
|
|
28
|
+
broadcast?: boolean;
|
|
29
|
+
}) => void;
|
|
30
|
+
clearAssistantResponse: () => void;
|
|
21
31
|
clearMessages: () => void;
|
|
22
32
|
setMessages: (newMessages: Array<{
|
|
23
33
|
role: "user" | "assistant";
|
|
24
34
|
content: string;
|
|
25
35
|
}>) => void;
|
|
26
|
-
syncToOtherTabs: () => void;
|
|
27
36
|
setUploadState: (state: UploadState, fileName?: string, error?: string) => void;
|
|
28
|
-
resetUploadState: () => void;
|
|
29
|
-
setHasUnreadMessages: (hasUnread: boolean) => void;
|
|
30
|
-
clearUnreadMessages: () => void;
|
|
31
|
-
setQuickReplies: (options: string[]) => void;
|
|
32
37
|
resetState: () => void;
|
|
33
38
|
};
|
|
34
39
|
export {};
|
|
@@ -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-2d61bdd5.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-2d61bdd5.cjs");require("@inploi/sdk");exports.kinPlugin=e.kinPlugin;
|
package/dist/plugin-kin.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inploi/plugin-kin",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Kin - A unified Talent Agent interface for hiring. One system, many roles.",
|
|
6
6
|
"main": "dist/plugin-kin.js",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"vite": "^4.4.5",
|
|
36
36
|
"vite-plugin-dts": "^3.7.0",
|
|
37
37
|
"vite-tsconfig-paths": "^4.2.1",
|
|
38
|
-
"
|
|
39
|
-
"
|
|
38
|
+
"@inploi/sdk": "1.17.0",
|
|
39
|
+
"tsconfig": "0.1.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"streamdown": "^2.3.0",
|