@blueking/chat-helper 0.0.1-beta.19 → 0.0.1-beta.20

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.
@@ -1,6 +1,7 @@
1
1
  import type { IMessage } from '../message/type';
2
2
  export interface IAgentCommand {
3
3
  agentId: number;
4
+ alias?: string;
4
5
  components: IAgentCommandComponent[];
5
6
  content: null | string;
6
7
  icon?: string;
@@ -10,6 +11,7 @@ export interface IAgentCommand {
10
11
  }
11
12
  export interface IAgentCommandApi {
12
13
  agent_id: number;
14
+ alias?: string;
13
15
  components: IAgentCommandComponentApi[];
14
16
  content: null | string;
15
17
  icon: string;
@@ -46,6 +46,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
46
46
  conversationSettings?: {
47
47
  commands?: {
48
48
  agentId: number;
49
+ alias?: string;
49
50
  components: {
50
51
  default?: null | string;
51
52
  fillBack?: boolean;
@@ -554,6 +555,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
554
555
  conversationSettings?: {
555
556
  commands?: {
556
557
  agentId: number;
558
+ alias?: string;
557
559
  components: {
558
560
  default?: null | string;
559
561
  fillBack?: boolean;
@@ -35,6 +35,7 @@
35
35
  commands: data === null || data === void 0 ? void 0 : (_data_conversation_settings2 = data.conversation_settings) === null || _data_conversation_settings2 === void 0 ? void 0 : (_data_conversation_settings_commands = _data_conversation_settings2.commands) === null || _data_conversation_settings_commands === void 0 ? void 0 : _data_conversation_settings_commands.map((command)=>({
36
36
  id: command.id,
37
37
  name: command.name,
38
+ alias: command.alias,
38
39
  icon: command.icon,
39
40
  components: command.components.map((component)=>({
40
41
  type: component.type,
package/dist/index.d.ts CHANGED
@@ -48,6 +48,7 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
48
48
  conversationSettings?: {
49
49
  commands?: {
50
50
  agentId: number;
51
+ alias?: string;
51
52
  components: {
52
53
  default?: null | string;
53
54
  fillBack?: boolean;
@@ -556,6 +557,7 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
556
557
  conversationSettings?: {
557
558
  commands?: {
558
559
  agentId: number;
560
+ alias?: string;
559
561
  components: {
560
562
  default?: null | string;
561
563
  fillBack?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/chat-helper",
3
- "version": "0.0.1-beta.19",
3
+ "version": "0.0.1-beta.20",
4
4
  "description": "",
5
5
  "main": "./dist/index.ts.js",
6
6
  "types": "./dist/index.d.ts",