@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.
@@ -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;
@@ -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,4 +1,4 @@
1
- import { N as a } from "./index-320440ab.js";
1
+ import { N as a } from "./index-6a21495e.js";
2
2
  import "@inploi/sdk";
3
3
  export {
4
4
  a as Mermaid
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-94feb989.cjs");require("@inploi/sdk");exports.Mermaid=e.Nt;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-938f36af.cjs");require("@inploi/sdk");exports.Mermaid=e.Nt;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-94feb989.cjs");require("@inploi/sdk");exports.kinPlugin=e.kinPlugin;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-938f36af.cjs");require("@inploi/sdk");exports.kinPlugin=e.kinPlugin;
@@ -1,4 +1,4 @@
1
- import { k } from "./index-320440ab.js";
1
+ import { k } from "./index-6a21495e.js";
2
2
  import "@inploi/sdk";
3
3
  export {
4
4
  k as kinPlugin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inploi/plugin-kin",
3
- "version": "2.7.1",
3
+ "version": "2.7.3",
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",