@blueking/chat-helper 0.0.12-beta.26 → 0.0.12-beta.28

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.
@@ -58,6 +58,8 @@ export interface IAgentCommandComponentApi {
58
58
  }
59
59
  export interface IAgentInfo {
60
60
  agentName?: string;
61
+ /** Agent 类型:single 为普通智能体,claw 为 Claw 智能体 */
62
+ agentType?: 'claw' | 'single' | string;
61
63
  relatedSkills?: IRelatedSkill[];
62
64
  resources?: IAgentResourceItem[];
63
65
  saasUrl?: string;
@@ -79,6 +81,8 @@ export interface IAgentInfo {
79
81
  }
80
82
  export interface IAgentInfoApi {
81
83
  agent_name: string;
84
+ /** Agent 类型:single 为普通智能体,claw 为 Claw 智能体 */
85
+ agent_type?: 'claw' | 'single' | string;
82
86
  related_skills?: IRelatedSkillApi[];
83
87
  resources?: IAgentResourceItem[];
84
88
  saas_url?: string;
@@ -12,6 +12,7 @@ import type { IAgentInfo, ILlmItem, ILlmListQuery } from './type';
12
12
  export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtocol) => {
13
13
  info: import("vue").Ref<{
14
14
  agentName?: string;
15
+ agentType?: "claw" | "single" | string;
15
16
  relatedSkills?: {
16
17
  description: string;
17
18
  icon: string;
@@ -1022,6 +1023,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
1022
1023
  };
1023
1024
  }, IAgentInfo | {
1024
1025
  agentName?: string;
1026
+ agentType?: "claw" | "single" | string;
1025
1027
  relatedSkills?: {
1026
1028
  description: string;
1027
1029
  icon: string;
@@ -0,0 +1 @@
1
+ export {};
@@ -63,6 +63,7 @@
63
63
  supportUpload: data.prompt_setting.support_upload
64
64
  } : undefined,
65
65
  agentName: data === null || data === void 0 ? void 0 : data.agent_name,
66
+ agentType: data === null || data === void 0 ? void 0 : data.agent_type,
66
67
  relatedSkills: data === null || data === void 0 ? void 0 : (_data_related_skills = data.related_skills) === null || _data_related_skills === void 0 ? void 0 : _data_related_skills.map((skill)=>({
67
68
  id: skill.id,
68
69
  skill_name: skill.skill_name,
package/dist/index.d.ts CHANGED
@@ -14,6 +14,7 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
14
14
  agent: {
15
15
  info: import("vue").Ref<{
16
16
  agentName?: string;
17
+ agentType?: "claw" | "single" | string;
17
18
  relatedSkills?: {
18
19
  description: string;
19
20
  icon: string;
@@ -1024,6 +1025,7 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
1024
1025
  };
1025
1026
  }, import("./agent").IAgentInfo | {
1026
1027
  agentName?: string;
1028
+ agentType?: "claw" | "single" | string;
1027
1029
  relatedSkills?: {
1028
1030
  description: string;
1029
1031
  icon: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/chat-helper",
3
- "version": "0.0.12-beta.26",
3
+ "version": "0.0.12-beta.28",
4
4
  "description": "",
5
5
  "main": "./dist/index.ts.js",
6
6
  "types": "./dist/index.d.ts",
@@ -24,12 +24,14 @@
24
24
  "@blueking/cli-service": "0.1.0-beta.31",
25
25
  "eslint-plugin-simple-import-sort": "^10.0.0",
26
26
  "typescript": "^5.5.4",
27
+ "vitest": "^4.0.18",
27
28
  "vue-tsc": "^3.1.4"
28
29
  },
29
30
  "dependencies": {
30
31
  "@types/json-schema": "^7.0.15"
31
32
  },
32
33
  "scripts": {
33
- "build": "bk-cli-service build && vue-tsc --emitDeclarationOnly"
34
+ "build": "bk-cli-service build && vue-tsc --emitDeclarationOnly",
35
+ "test": "vitest run"
34
36
  }
35
37
  }