@inploi/plugin-kin 2.6.2 → 2.7.0

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.
@@ -4,11 +4,13 @@
4
4
  type HistoryMessage = {
5
5
  role: 'user' | 'assistant';
6
6
  content: string;
7
+ blocks?: unknown[];
7
8
  };
8
9
  type KinMessage = {
9
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
11
  content?: string;
11
12
  tool?: string;
13
+ blocks?: unknown[];
12
14
  company?: string;
13
15
  environment?: string;
14
16
  /** Message history sent on connect */
@@ -1,3 +1,5 @@
1
+ import { MessageBlock } from './message-payload';
2
+
1
3
  export type Message = {
2
4
  role: 'user' | 'assistant' | 'system';
3
5
  content: string;
@@ -6,6 +8,7 @@ export type Message = {
6
8
  attachment?: {
7
9
  name: string;
8
10
  };
11
+ blocks?: MessageBlock[];
9
12
  };
10
13
  type ConnectionState = 'idle' | 'connecting' | 'connected' | 'disconnected' | 'error';
11
14
  type UploadState = 'idle' | 'uploading' | 'processing' | 'success' | 'error';
@@ -30,6 +33,7 @@ export declare const store: {
30
33
  finishAssistantResponse: (options?: {
31
34
  commit?: boolean;
32
35
  broadcast?: boolean;
36
+ blocks?: MessageBlock[];
33
37
  }) => void;
34
38
  clearAssistantResponse: () => void;
35
39
  clearMessages: () => void;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-b322deb4.cjs");require("@inploi/sdk");exports.Mermaid=e.Nt;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-c2bd11fc.cjs");require("@inploi/sdk");exports.Mermaid=e.Nt;
@@ -1,4 +1,4 @@
1
- import { N as a } from "./index-6727858d.js";
1
+ import { N as a } from "./index-ff03b071.js";
2
2
  import "@inploi/sdk";
3
3
  export {
4
4
  a as Mermaid
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Runtime validation for message blocks rendered below assistant text.
3
+ * To add a block kind: add types → add a case in parseMessageBlock → add a renderer in BlockRenderer.
4
+ */
5
+ /** Union of all renderable block kinds. */
6
+ export type MessageBlock = JobCardsBlock;
7
+ /** Parse and validate a single block from untrusted input. */
8
+ export declare const parseMessageBlock: (input: unknown) => MessageBlock | null;
9
+ /** Parse and validate a blocks array from `response_end` or history messages. */
10
+ export declare const parseMessageBlocks: (input: unknown) => MessageBlock[] | null;
11
+ /** Job cards block */
12
+ export type JobCard = {
13
+ id: string;
14
+ title: string;
15
+ applyUrl?: string;
16
+ details: {
17
+ key: string;
18
+ value: string;
19
+ }[];
20
+ };
21
+ export type JobCardsBlock = {
22
+ kind: 'job_cards';
23
+ jobs: JobCard[];
24
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-b322deb4.cjs");require("@inploi/sdk");exports.kinPlugin=e.kinPlugin;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-c2bd11fc.cjs");require("@inploi/sdk");exports.kinPlugin=e.kinPlugin;
@@ -1,4 +1,4 @@
1
- import { k } from "./index-6727858d.js";
1
+ import { k } from "./index-ff03b071.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.6.2",
3
+ "version": "2.7.0",
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
- "@inploi/sdk": "1.17.0",
39
- "tsconfig": "0.1.0"
38
+ "tsconfig": "0.1.0",
39
+ "@inploi/sdk": "1.17.0"
40
40
  },
41
41
  "dependencies": {
42
42
  "streamdown": "^2.3.0",