@blueking/chat-helper 0.0.1-beta.16 → 0.0.1-beta.18

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;
@@ -333,6 +334,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
333
334
  conversationSettings?: {
334
335
  commands?: {
335
336
  agentId: number;
337
+ alias?: string;
336
338
  components: {
337
339
  default?: null | string;
338
340
  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;
@@ -335,6 +336,7 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
335
336
  conversationSettings?: {
336
337
  commands?: {
337
338
  agentId: number;
339
+ alias?: string;
338
340
  components: {
339
341
  default?: null | string;
340
342
  fillBack?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/chat-helper",
3
- "version": "0.0.1-beta.16",
3
+ "version": "0.0.1-beta.18",
4
4
  "description": "",
5
5
  "main": "./dist/index.ts.js",
6
6
  "types": "./dist/index.d.ts",
@@ -25,4 +25,4 @@
25
25
  "typescript": "^5.5.4",
26
26
  "vue-tsc": "^3.1.4"
27
27
  }
28
- }
28
+ }