@blueking/ai-ui-sdk 0.4.3-beta.7 → 0.4.3-beta.9

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.
Files changed (179) hide show
  1. package/dist/components/render-agent/agent-share.script.vue.js.js +5 -8
  2. package/dist/components/render-agent/agent-share.vue.d.ts +0 -1
  3. package/dist/components/render-agent/agent-type.vue.css +3 -3
  4. package/dist/components/render-agent/agent-type.vue.d.ts +1 -1
  5. package/dist/components/render-agent/agent-type.vue.js +1 -1
  6. package/dist/components/render-auth/auth-dialog.script.vue.js.js +3 -6
  7. package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
  8. package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
  9. package/dist/components/render-auto-refresh/index.vue.css +8 -8
  10. package/dist/components/render-auto-refresh/index.vue.js +1 -1
  11. package/dist/components/{render-agent/action/index.script.vue.js.js → render-card/agent/actions.script.vue.js.js} +9 -33
  12. package/dist/components/{render-agent/action/index.vue.d.ts → render-card/agent/actions.vue.d.ts} +0 -1
  13. package/dist/components/render-card/agent/actions.vue.js +3 -0
  14. package/dist/components/render-card/agent/index.script.vue.js.js +22 -55
  15. package/dist/components/render-card/agent/index.vue.d.ts +1 -3
  16. package/dist/components/render-card/agent/prefix-info-tool.vue.css +5 -5
  17. package/dist/components/render-card/agent/prefix-info-tool.vue.js +1 -1
  18. package/dist/components/render-card/base/application-base-actions.script.vue.js.js +1 -1
  19. package/dist/components/render-card/base.vue.css +12 -12
  20. package/dist/components/render-card/base.vue.js +1 -1
  21. package/dist/components/render-card/llm/corner-badge.vue.css +3 -3
  22. package/dist/components/render-card/llm/corner-badge.vue.js +1 -1
  23. package/dist/components/render-card/llm/icons.vue.css +2 -2
  24. package/dist/components/render-card/llm/icons.vue.js +1 -1
  25. package/dist/components/render-card/llm/info.vue.css +1 -1
  26. package/dist/components/render-card/llm/info.vue.js +1 -1
  27. package/dist/components/render-card/llm/tag-prefix.vue.css +3 -3
  28. package/dist/components/render-card/llm/tag-prefix.vue.js +1 -1
  29. package/dist/components/render-card/mcp/actions.script.vue.js.js +7 -34
  30. package/dist/components/render-card/mcp/actions.vue.d.ts +0 -1
  31. package/dist/components/render-card/mcp/index.script.vue.js.js +3 -34
  32. package/dist/components/render-card/mcp/index.vue.d.ts +2 -4
  33. package/dist/components/render-card/mcp/name-suffix.vue.css +2 -2
  34. package/dist/components/render-card/mcp/name-suffix.vue.js +1 -1
  35. package/dist/components/render-card/prompt/icons.vue.css +1 -1
  36. package/dist/components/render-card/prompt/icons.vue.js +1 -1
  37. package/dist/components/render-card/prompt/index.script.vue.js.js +14 -48
  38. package/dist/components/render-card/prompt/index.vue.d.ts +1 -3
  39. package/dist/components/render-card/role/index.script.vue.js.js +20 -53
  40. package/dist/components/render-card/role/index.vue.d.ts +1 -3
  41. package/dist/components/render-card/skill/index.script.vue.js.js +24 -58
  42. package/dist/components/render-card/skill/index.vue.d.ts +4 -8
  43. package/dist/components/render-card/skill/tag-prefix.script.vue.js.js +50 -11
  44. package/dist/components/render-card/skill/{scanner.vue.css → tag-prefix.vue.css} +3 -3
  45. package/dist/components/render-card/skill/tag-prefix.vue.js +2 -0
  46. package/dist/components/render-card/tool/actions.script.vue.js.js +4 -25
  47. package/dist/components/render-card/tool/actions.vue.d.ts +0 -1
  48. package/dist/components/render-card/tool/index.script.vue.js.js +20 -53
  49. package/dist/components/render-card/tool/index.vue.d.ts +1 -3
  50. package/dist/components/render-checkbox/index.vue.css +9 -9
  51. package/dist/components/render-checkbox/index.vue.js +1 -1
  52. package/dist/components/render-choose-tag/index.vue.css +7 -7
  53. package/dist/components/render-choose-tag/index.vue.js +1 -1
  54. package/dist/components/render-collapse/index.vue.css +2 -2
  55. package/dist/components/render-collapse/index.vue.js +1 -1
  56. package/dist/components/render-collection/actions/index.script.vue.js.js +4 -22
  57. package/dist/components/render-collection/actions/index.vue.d.ts +0 -1
  58. package/dist/components/render-collection/content/index.vue.css +4 -4
  59. package/dist/components/render-collection/content/index.vue.js +1 -1
  60. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +3 -3
  61. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +1 -1
  62. package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
  63. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  64. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  65. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  66. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  67. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  68. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  69. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  70. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  71. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +1 -1
  72. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  73. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
  74. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
  75. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  76. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  77. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +1 -1
  78. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  79. package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
  80. package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
  81. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  82. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  83. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  84. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  85. package/dist/components/render-dataset-list/index.vue.css +2 -2
  86. package/dist/components/render-dataset-list/index.vue.js +1 -1
  87. package/dist/components/render-dialog/choose-resource.vue.css +3 -3
  88. package/dist/components/render-dialog/choose-resource.vue.js +1 -1
  89. package/dist/components/render-dialog/choose-result.vue.css +14 -14
  90. package/dist/components/render-dialog/choose-result.vue.js +1 -1
  91. package/dist/components/render-dialog/choose-space.script.vue.js.js +10 -10
  92. package/dist/components/render-dialog/choose-space.vue.css +10 -10
  93. package/dist/components/render-dialog/choose-space.vue.js +1 -1
  94. package/dist/components/render-dialog/index.vue.css +6 -6
  95. package/dist/components/render-dialog/index.vue.js +1 -1
  96. package/dist/components/render-dropdown/index.vue.d.ts +5 -5
  97. package/dist/components/render-file-card/index.vue.css +11 -11
  98. package/dist/components/render-file-card/index.vue.js +1 -1
  99. package/dist/components/render-file-type-icon/index.vue.css +6 -6
  100. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  101. package/dist/components/render-generate-tag/index.vue.css +5 -5
  102. package/dist/components/render-generate-tag/index.vue.d.ts +1 -1
  103. package/dist/components/render-generate-tag/index.vue.js +1 -1
  104. package/dist/components/render-knowledge/icon/index.vue.css +1 -1
  105. package/dist/components/render-knowledge/icon/index.vue.js +1 -1
  106. package/dist/components/render-markdown/edit.d.ts +1 -1
  107. package/dist/components/render-markdown/view.d.ts +1 -1
  108. package/dist/components/render-prompt/actions/index.script.vue.js.js +4 -22
  109. package/dist/components/render-prompt/actions/index.vue.d.ts +0 -1
  110. package/dist/components/render-prompt/content/index.vue.css +1 -1
  111. package/dist/components/render-prompt/content/index.vue.js +1 -1
  112. package/dist/components/render-reference/index.vue.css +2 -2
  113. package/dist/components/render-reference/index.vue.js +1 -1
  114. package/dist/components/render-relate-agent/index.script.vue.js +6 -8
  115. package/dist/components/render-relate-agent/index.vue.d.ts +2 -2
  116. package/dist/components/render-resource-version/index.vue.css +2 -2
  117. package/dist/components/render-resource-version/index.vue.d.ts +1 -1
  118. package/dist/components/render-resource-version/index.vue.js +1 -1
  119. package/dist/components/render-router-tab/index.vue.css +3 -3
  120. package/dist/components/render-router-tab/index.vue.js +1 -1
  121. package/dist/components/render-search-empty/index.script.vue.js.js +2 -3
  122. package/dist/components/render-select-plus-extension/index.vue.css +3 -3
  123. package/dist/components/render-select-plus-extension/index.vue.js +1 -1
  124. package/dist/components/render-skill/actions/index.script.vue.js.js +7 -37
  125. package/dist/components/render-skill/actions/index.vue.d.ts +2 -3
  126. package/dist/components/render-t-table/index.script.vue.js +5 -8
  127. package/dist/components/render-t-table/index.vue.css +27 -27
  128. package/dist/components/render-t-table/index.vue.js +1 -1
  129. package/dist/components/render-tag-tree/index.vue.css +7 -7
  130. package/dist/components/render-tag-tree/index.vue.js +1 -1
  131. package/dist/components/render-tags/index.script.vue.js +6 -6
  132. package/dist/components/render-tags/index.vue.css +6 -6
  133. package/dist/components/render-tags/index.vue.d.ts +1 -1
  134. package/dist/components/render-tags/index.vue.js +1 -1
  135. package/dist/components.d.ts +1 -12
  136. package/dist/components.ts.js +1 -12
  137. package/dist/css/g-utilities.css +0 -12
  138. package/dist/css/g-utilities.manifest.json +0 -3
  139. package/dist/hooks/use-agent-http.d.ts +0 -2
  140. package/dist/hooks/use-agent-http.ts.js +1 -15
  141. package/dist/hooks/use-collection-http.d.ts +0 -2
  142. package/dist/hooks/use-collection-http.ts.js +1 -15
  143. package/dist/hooks/use-market-http.d.ts +0 -10
  144. package/dist/hooks/use-market-http.ts.js +1 -71
  145. package/dist/hooks/use-mcp-http.d.ts +0 -2
  146. package/dist/hooks/use-mcp-http.ts.js +1 -15
  147. package/dist/hooks/use-prompt-http.d.ts +0 -2
  148. package/dist/hooks/use-prompt-http.ts.js +1 -15
  149. package/dist/hooks/use-skill-http.d.ts +0 -2
  150. package/dist/hooks/use-skill-http.ts.js +1 -15
  151. package/dist/hooks/use-t-table.d.ts +5 -11
  152. package/dist/hooks/use-t-table.ts.js +3 -25
  153. package/dist/hooks/use-tool-http.d.ts +0 -2
  154. package/dist/hooks/use-tool-http.ts.js +1 -15
  155. package/dist/http/helper/agent.ts.js +1 -2
  156. package/dist/http/helper/collection.ts.js +1 -2
  157. package/dist/http/helper/common.d.ts +1 -1
  158. package/dist/http/helper/common.ts.js +0 -4
  159. package/dist/http/helper/mcp.ts.js +4 -6
  160. package/dist/http/helper/prompt.ts.js +1 -2
  161. package/dist/http/helper/skill.ts.js +0 -4
  162. package/dist/http/helper/tool.ts.js +2 -6
  163. package/dist/types/agent.d.ts +1 -3
  164. package/dist/types/collection.d.ts +1 -3
  165. package/dist/types/common.d.ts +0 -4
  166. package/dist/types/enum.d.ts +1 -4
  167. package/dist/types/enum.ts.js +0 -3
  168. package/dist/types/mcp.d.ts +2 -4
  169. package/dist/types/prompt.d.ts +1 -3
  170. package/dist/types/skill.d.ts +0 -4
  171. package/dist/types/tool.d.ts +0 -4
  172. package/package.json +1 -1
  173. package/dist/components/render-agent/action/index.vue.js +0 -3
  174. package/dist/components/render-card/base/collection-icon.script.vue.js.js +0 -149
  175. package/dist/components/render-card/base/collection-icon.vue.d.ts +0 -20
  176. package/dist/components/render-card/base/collection-icon.vue.js +0 -3
  177. package/dist/components/render-card/skill/scanner.script.vue.js.js +0 -66
  178. package/dist/components/render-card/skill/scanner.vue.d.ts +0 -11
  179. package/dist/components/render-card/skill/scanner.vue.js +0 -5
@@ -78,8 +78,6 @@ import { transferResourcePermission2ResourcePermissionApi, transferResourcePermi
78
78
  spaceId: data.space_id,
79
79
  approvers: data.approvers,
80
80
  ticketUrl: data.ticket_url,
81
- favorite: data.favorite,
82
- favoriteCount: data.favorite_count,
83
81
  permission: transferResourcePermissionApi2ResourcePermission(data.permission)
84
82
  });
85
83
  /**
@@ -96,8 +94,6 @@ import { transferResourcePermission2ResourcePermissionApi, transferResourcePermi
96
94
  space_id: data.spaceId,
97
95
  approvers: data.approvers,
98
96
  ticket_url: data.ticketUrl,
99
- favorite: data.favorite,
100
- favorite_count: data.favoriteCount,
101
97
  permission: transferResourcePermission2ResourcePermissionApi(data.permission)
102
98
  });
103
99
  /**
@@ -169,12 +169,11 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
169
169
  serverConfig: data.server_config,
170
170
  mcpTools: (_data_mcp_tools = data.mcp_tools) === null || _data_mcp_tools === void 0 ? void 0 : _data_mcp_tools.map(transferMcpToolApi2McpTool),
171
171
  selectedTools: (_data_selected_tools = data.selected_tools) === null || _data_selected_tools === void 0 ? void 0 : _data_selected_tools.map(transferMcpToolApi2McpTool),
172
+ isSelectedAll: data.is_selected_all,
172
173
  syncErrorMessage: data.sync_error_message,
173
174
  mcpType: data.mcp_type,
174
175
  detailUrl: data.detail_url,
175
- refCount: data.ref_count,
176
- favorite: data.favorite,
177
- favoriteCount: data.favorite_count
176
+ refCount: data.ref_count
178
177
  });
179
178
  };
180
179
  /**
@@ -202,12 +201,11 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
202
201
  mcp_tool_names: data.mcpToolNames,
203
202
  mcp_tools: (_data_mcpTools = data.mcpTools) === null || _data_mcpTools === void 0 ? void 0 : _data_mcpTools.map(transferMcpTool2McpToolApi),
204
203
  selected_tools: (_data_selectedTools = data.selectedTools) === null || _data_selectedTools === void 0 ? void 0 : _data_selectedTools.map(transferMcpTool2McpToolApi),
204
+ is_selected_all: data.isSelectedAll,
205
205
  server_config: data.serverConfig,
206
206
  sync_error_message: data.syncErrorMessage,
207
207
  mcp_type: data.mcpType,
208
- detail_url: data.detailUrl,
209
- favorite: data.favorite,
210
- favorite_count: data.favoriteCount
208
+ detail_url: data.detailUrl
211
209
  });
212
210
  };
213
211
  /**
@@ -96,8 +96,7 @@ import { transferBaseCountParam2BaseCountParamApi, transferIPaginationParam2IPag
96
96
  is_public: data.isPublic,
97
97
  content: data.content,
98
98
  updated_by: data.updatedBy,
99
- tag_names: data.tagNames,
100
- group_type: data.groupType
99
+ tag_names: data.tagNames
101
100
  });
102
101
  };
103
102
  export const transferPromptCount2PromptCountApi = (data)=>{
@@ -92,8 +92,6 @@ import { transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortP
92
92
  downloadCount: data.download_count,
93
93
  installCount: data.install_count,
94
94
  refCount: data.ref_count,
95
- favorite: data.favorite,
96
- favoriteCount: data.favorite_count,
97
95
  scanner: data.scanner ? {
98
96
  effectiveStatus: data.scanner.effective_status,
99
97
  effectiveStatusCn: data.scanner.effective_status_cn,
@@ -118,8 +116,6 @@ import { transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortP
118
116
  skill_markdown: data.skillMarkdown,
119
117
  download_count: data.downloadCount,
120
118
  install_count: data.installCount,
121
- favorite: data.favorite,
122
- favorite_count: data.favoriteCount,
123
119
  scanner: data.scanner ? {
124
120
  effective_status: data.scanner.effectiveStatus,
125
121
  effective_status_cn: data.scanner.effectiveStatusCn,
@@ -95,18 +95,14 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
95
95
  id: data.tool_id
96
96
  })), transferIApprovalSettingValueApi2IApprovalSettingValue(data)), {
97
97
  id: data.tool_id,
98
- refCount: data.ref_count,
99
- favorite: data.favorite,
100
- favoriteCount: data.favorite_count
98
+ refCount: data.ref_count
101
99
  });
102
100
  /**
103
101
  * ui转换为接口使用(完整资源)
104
102
  * @param data ITool
105
103
  * @returns IToolApi
106
104
  */ export const transferTool2ToolApi = (data)=>_object_spread_props(_object_spread({}, transferToolForm2ToolFormApi(data), transferResourceCommon2ResourceCommonApi(data), transferIApprovalSettingValue2IApprovalSettingValueApi(data)), {
107
- tool_id: data.id,
108
- favorite: data.favorite,
109
- favorite_count: data.favoriteCount
105
+ tool_id: data.id
110
106
  });
111
107
  /**
112
108
  * ui转换为接口使用
@@ -1,5 +1,5 @@
1
1
  import type { IBaseCountParam, IBaseCountParamApi, IContent, IPaginationParam, IPaginationParamApi, IResourceCommon, IResourceCommonApi, IResourceCommonSearchParams, IResourceCommonSearchParamsApi, IResourceFormCommon, IResourceFormCommonApi, ISortParam, ISortParamApi, IVariable, IVariableApi } from './common';
2
- import { AgentCommandType, AgentDeployMode, AgentType, EnumCharacter, GroupType, Module, PromptSource, ResourceStatus, UserScope } from './enum';
2
+ import { AgentCommandType, AgentDeployMode, AgentType, EnumCharacter, Module, PromptSource, ResourceStatus, UserScope } from './enum';
3
3
  import type { IKnowledge, IKnowledgeApi, IKnowledgebase, IKnowledgebaseApi, IKnowledgeQuerySetting, IKnowledgeQuerySettingApi } from './knowledge';
4
4
  import type { IMcp, IMcpApi } from './mcp';
5
5
  import type { ISkill, ISkillApi } from './skill';
@@ -265,7 +265,6 @@ export interface IAgentListParam extends IPaginationParam, IResourceCommonSearch
265
265
  updatedBy?: string;
266
266
  createdBy?: string;
267
267
  agentVersion?: string;
268
- groupType?: GroupType;
269
268
  }
270
269
  export interface IAgentListParamApi extends IPaginationParamApi, IResourceCommonSearchParamsApi, ISortParamApi {
271
270
  agent_type: AgentType;
@@ -283,7 +282,6 @@ export interface IAgentListParamApi extends IPaginationParamApi, IResourceCommon
283
282
  updated_by?: string;
284
283
  created_by?: string;
285
284
  agent_version?: string;
286
- group_type?: GroupType;
287
285
  }
288
286
  export interface IResourceApply {
289
287
  resourceType: Module;
@@ -1,5 +1,5 @@
1
1
  import type { IBaseCountParam, IBaseCountParamApi, IContent, IPaginationParam, IPaginationParamApi, IResourceCommon, IResourceCommonApi, IResourceCommonSearchParams, IResourceCommonSearchParamsApi, IResourceFormCommon, IResourceFormCommonApi, ISortParam, ISortParamApi, IVariable, IVariableApi } from './common';
2
- import { EnumCharacter, GroupType, Module } from './enum';
2
+ import { EnumCharacter, Module } from './enum';
3
3
  import { IResourcePermission, IResourcePermissionApi } from './permission';
4
4
  export interface ICollectionFormApi extends Omit<IResourceFormCommonApi, 'description'> {
5
5
  collection_name: string;
@@ -65,7 +65,6 @@ export interface ICollectionListParam extends IPaginationParam, ISortParam, IRes
65
65
  createdAt?: string;
66
66
  updatedBy?: string;
67
67
  permission?: IResourcePermission;
68
- groupType?: GroupType;
69
68
  }
70
69
  export interface ICollectionListParamApi extends IPaginationParamApi, ISortParamApi, IResourceCommonSearchParamsApi {
71
70
  fuzzy?: string;
@@ -85,7 +84,6 @@ export interface ICollectionListParamApi extends IPaginationParamApi, ISortParam
85
84
  created_at?: string;
86
85
  updated_by?: string;
87
86
  permission?: IResourcePermissionApi;
88
- group_type?: GroupType;
89
87
  }
90
88
  export type ICollectionCountParam = IBaseCountParam;
91
89
  export type ICollectionCountParamApi = IBaseCountParamApi;
@@ -109,8 +109,6 @@ export interface IResourceCommon<T = ResourceStatus> {
109
109
  spaceId?: string;
110
110
  approvers?: string[];
111
111
  ticketUrl?: string;
112
- favorite?: boolean;
113
- favoriteCount?: number;
114
112
  permission: IResourcePermission;
115
113
  }
116
114
  export interface IResourceCommonApi<T = ResourceStatus> {
@@ -123,8 +121,6 @@ export interface IResourceCommonApi<T = ResourceStatus> {
123
121
  space_id: string;
124
122
  approvers?: string[];
125
123
  ticket_url?: string;
126
- favorite?: boolean;
127
- favorite_count?: number;
128
124
  permission: IResourcePermissionApi;
129
125
  }
130
126
  export interface IPaginationResponseApi<T> {
@@ -278,7 +278,6 @@ export declare enum GroupType {
278
278
  All = "all",
279
279
  Space = "space",
280
280
  User = "user",
281
- Favorite = "favorite",
282
281
  Deleted = "deleted"
283
282
  }
284
283
  export declare enum OrderMethod {
@@ -344,9 +343,7 @@ export declare enum PromptOrderBy {
344
343
  CreatedAt = "created_at",
345
344
  Likes = "likes",
346
345
  UsedCount = "used_count",
347
- PromptName = "prompt_name",
348
- UpdatedAt = "updated_at",
349
- UpdatedBy = "updated_by"
346
+ PromptName = "prompt_name"
350
347
  }
351
348
  export declare enum IsSensitiveParam {
352
349
  Null = "null",
@@ -311,7 +311,6 @@ export var GroupType;
311
311
  GroupType["All"] = "all";
312
312
  GroupType["Space"] = "space";
313
313
  GroupType["User"] = "user";
314
- GroupType["Favorite"] = "favorite";
315
314
  GroupType["Deleted"] = "deleted";
316
315
  })(GroupType || (GroupType = {}));
317
316
  export var OrderMethod;
@@ -391,8 +390,6 @@ export var PromptOrderBy;
391
390
  PromptOrderBy["Likes"] = "likes";
392
391
  PromptOrderBy["UsedCount"] = "used_count";
393
392
  PromptOrderBy["PromptName"] = "prompt_name";
394
- PromptOrderBy["UpdatedAt"] = "updated_at";
395
- PromptOrderBy["UpdatedBy"] = "updated_by";
396
393
  })(PromptOrderBy || (PromptOrderBy = {}));
397
394
  export var IsSensitiveParam;
398
395
  (function(IsSensitiveParam) {
@@ -79,9 +79,8 @@ export interface IMcpApi extends IMcpFormApi, IResourceCommonApi {
79
79
  mcp_type: McpType;
80
80
  detail_url?: string;
81
81
  selected_tools?: IMcpToolApi[];
82
+ is_selected_all?: boolean;
82
83
  ref_count?: number;
83
- favorite?: boolean;
84
- favorite_count?: number;
85
84
  }
86
85
  export interface IMcpToolOutputParam {
87
86
  paramName: string;
@@ -110,9 +109,8 @@ export interface IMcp extends IMcpForm, IResourceCommon {
110
109
  mcpType: McpType;
111
110
  detailUrl?: string;
112
111
  selectedTools?: IMcpTool[];
112
+ isSelectedAll?: boolean;
113
113
  refCount?: number;
114
- favorite?: boolean;
115
- favoriteCount?: number;
116
114
  }
117
115
  export interface IRegisterMcpParam {
118
116
  mcps: {
@@ -1,5 +1,5 @@
1
1
  import type { IBaseCountParam, IBaseCountParamApi, IPaginationParam, IPaginationParamApi, IResourceCommon, IResourceCommonApi, IResourceCommonSearchParams, IResourceCommonSearchParamsApi, IResourceFormCommon, IResourceFormCommonApi, ISortParam, ISortParamApi, IVariable, IVariableApi } from './common';
2
- import { EnumCharacter, GroupType, Module, PromptOrderBy } from './enum';
2
+ import { EnumCharacter, Module, PromptOrderBy } from './enum';
3
3
  import { IResourcePermission, IResourcePermissionApi } from './permission';
4
4
  export interface IPromptsApiParams extends IPaginationParamApi, IResourceCommonSearchParamsApi, ISortParamApi<PromptOrderBy> {
5
5
  fuzzy?: string;
@@ -18,7 +18,6 @@ export interface IPromptsApiParams extends IPaginationParamApi, IResourceCommonS
18
18
  content?: string;
19
19
  updated_by?: string;
20
20
  permission?: IResourcePermissionApi;
21
- group_type?: GroupType;
22
21
  }
23
22
  export interface IPromptsParams extends IPaginationParam, IResourceCommonSearchParams, ISortParam<PromptOrderBy> {
24
23
  fuzzy?: string;
@@ -37,7 +36,6 @@ export interface IPromptsParams extends IPaginationParam, IResourceCommonSearchP
37
36
  content?: string;
38
37
  updatedBy?: string;
39
38
  permission?: IResourcePermission;
40
- groupType?: GroupType;
41
39
  }
42
40
  export interface IPromptFormApi extends IResourceFormCommonApi {
43
41
  prompt_name: string;
@@ -72,8 +72,6 @@ export interface ISkill extends ISkillForm, IResourceCommon<SkillStatus> {
72
72
  downloadCount?: number;
73
73
  installCount?: number;
74
74
  refCount?: number;
75
- favorite?: boolean;
76
- favoriteCount?: number;
77
75
  scanner?: ISkillScanner;
78
76
  envs?: ISkillEnv[];
79
77
  bkaiDependencies?: {
@@ -87,8 +85,6 @@ export interface ISkillApi extends ISkillFormApi, IResourceCommonApi<SkillStatus
87
85
  download_count?: number;
88
86
  install_count?: number;
89
87
  ref_count?: number;
90
- favorite?: boolean;
91
- favorite_count?: number;
92
88
  scanner?: ISkillScannerApi;
93
89
  envs?: ISkillEnvApi[];
94
90
  bkai_dependencies?: {
@@ -35,8 +35,6 @@ export interface IToolFormApi extends IResourceFormCommonApi {
35
35
  export interface IToolApi extends IToolFormApi, Omit<IResourceCommonApi, 'id'>, IApprovalSettingValueApi {
36
36
  tool_id: number;
37
37
  ref_count?: number;
38
- favorite?: boolean;
39
- favorite_count?: number;
40
38
  }
41
39
  export interface IToolForm extends IResourceFormCommon {
42
40
  toolName: string;
@@ -53,8 +51,6 @@ export interface IToolForm extends IResourceFormCommon {
53
51
  }
54
52
  export interface ITool extends IToolForm, IResourceCommon, IApprovalSettingValue {
55
53
  refCount?: number;
56
- favorite?: boolean;
57
- favoriteCount?: number;
58
54
  }
59
55
  export interface IApplicationTool extends ITool {
60
56
  resourceId: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/ai-ui-sdk",
3
- "version": "0.4.3-beta.7",
3
+ "version": "0.4.3-beta.9",
4
4
  "description": "蓝鲸AI UI SDK",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",
@@ -1,3 +0,0 @@
1
- import script from './index.script.vue.js.js';
2
- script.__file = "./src/components/render-agent/action/index.vue";
3
- export default script;
@@ -1,149 +0,0 @@
1
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
2
- try {
3
- var info = gen[key](arg);
4
- var value = info.value;
5
- } catch (error) {
6
- reject(error);
7
- return;
8
- }
9
- if (info.done) {
10
- resolve(value);
11
- } else {
12
- Promise.resolve(value).then(_next, _throw);
13
- }
14
- }
15
- function _async_to_generator(fn) {
16
- return function() {
17
- var self = this, args = arguments;
18
- return new Promise(function(resolve, reject) {
19
- var gen = fn.apply(self, args);
20
- function _next(value) {
21
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
22
- }
23
- function _throw(err) {
24
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
25
- }
26
- _next(undefined);
27
- });
28
- };
29
- }
30
- import { defineComponent as _defineComponent } from 'vue';
31
- import { unref as _unref, withModifiers as _withModifiers, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, resolveDirective as _resolveDirective, withCtx as _withCtx, createBlock as _createBlock, withDirectives as _withDirectives } from "vue";
32
- import { ref, toRef } from 'vue';
33
- import { useAgentHttp } from '../../../hooks/use-agent-http.ts.js';
34
- import { useMarketHttp } from '../../../hooks/use-market-http.ts.js';
35
- import { useMcpHttp } from '../../../hooks/use-mcp-http.ts.js';
36
- import { useSkillHttp } from '../../../hooks/use-skill-http.ts.js';
37
- import { useToolHttp } from '../../../hooks/use-tool-http.ts.js';
38
- import { useCollectionHttp, usePromptHttp } from '../../../https.ts.js';
39
- import { Module, ResourceCardType } from '../../../types/enum.ts.js';
40
- export default /*@__PURE__*/ _defineComponent({
41
- props: {
42
- favorite: {
43
- type: Boolean
44
- },
45
- favoriteCount: {},
46
- type: {},
47
- showCount: {
48
- type: Boolean
49
- },
50
- id: {},
51
- module: {},
52
- apiPrefix: {},
53
- spaceId: {}
54
- },
55
- emits: [
56
- "success-favorite",
57
- "success-cancel-favorite"
58
- ],
59
- setup (__props, { emit: __emit }) {
60
- const props = __props;
61
- const emits = __emit;
62
- const { addMarketSkillFavorite, removeMarketSkillFavorite, addMarketToolFavorite, removeMarketToolFavorite, addMarketAgentFavorite, removeMarketAgentFavorite, addMarketCollectionFavorite, removeMarketCollectionFavorite, addMarketPromptFavorite, removeMarketPromptFavorite } = useMarketHttp(props.apiPrefix, toRef(props, 'spaceId'));
63
- const { addMcpFavorite, removeMcpFavorite } = useMcpHttp(props.apiPrefix, toRef(props, 'spaceId'));
64
- const { addSkillFavorite, removeSkillFavorite } = useSkillHttp(props.apiPrefix, toRef(props, 'spaceId'));
65
- const { addToolFavorite, removeToolFavorite } = useToolHttp(props.apiPrefix, toRef(props, 'spaceId'));
66
- const { addAgentFavorite, removeAgentFavorite } = useAgentHttp(props.apiPrefix, toRef(props, 'spaceId'));
67
- const { addPromptFavorite, removePromptFavorite } = usePromptHttp(props.apiPrefix, toRef(props, 'spaceId'));
68
- const { addCollectionFavorite, removeCollectionFavorite } = useCollectionHttp(props.apiPrefix, toRef(props, 'spaceId'));
69
- const loading = ref(false);
70
- const handleClick = function() {
71
- var _ref = _async_to_generator(function*() {
72
- if (loading.value || !props.id) return;
73
- const isMarket = props.type === ResourceCardType.Market;
74
- const favoriteMap = {
75
- [Module.Skill]: props.favorite ? isMarket ? removeMarketSkillFavorite : removeSkillFavorite : isMarket ? addMarketSkillFavorite : addSkillFavorite,
76
- [Module.Tool]: props.favorite ? isMarket ? removeMarketToolFavorite : removeToolFavorite : isMarket ? addMarketToolFavorite : addToolFavorite,
77
- [Module.Mcp]: props.favorite ? removeMcpFavorite : addMcpFavorite,
78
- [Module.Agent]: props.favorite ? isMarket ? removeMarketAgentFavorite : removeAgentFavorite : isMarket ? addMarketAgentFavorite : addAgentFavorite,
79
- [Module.Prompt]: props.favorite ? isMarket ? removeMarketPromptFavorite : removePromptFavorite : isMarket ? addMarketPromptFavorite : addPromptFavorite,
80
- [Module.Collection]: props.favorite ? isMarket ? removeMarketCollectionFavorite : removeCollectionFavorite : isMarket ? addMarketCollectionFavorite : addCollectionFavorite
81
- };
82
- try {
83
- var _favoriteMap_props_module;
84
- loading.value = true;
85
- yield (_favoriteMap_props_module = favoriteMap[props.module]) === null || _favoriteMap_props_module === void 0 ? void 0 : _favoriteMap_props_module.call(favoriteMap, props.id);
86
- emits(props.favorite ? 'success-cancel-favorite' : 'success-favorite');
87
- } finally{
88
- loading.value = false;
89
- }
90
- });
91
- return function handleClick() {
92
- return _ref.apply(this, arguments);
93
- };
94
- }();
95
- return (_ctx, _cache)=>{
96
- const _component_bk_loading = _resolveComponent("bk-loading");
97
- const _directive_bk_tooltips = _resolveDirective("bk-tooltips");
98
- return props.type !== _unref(ResourceCardType).Application ? _withDirectives((_openBlock(), _createBlock(_component_bk_loading, {
99
- key: 0,
100
- class: _normalizeClass([
101
- 'g-flex-row !g-cursor-pointer',
102
- {
103
- '!g-mr-12': props.showCount
104
- },
105
- props.favorite ? 'g-text-fc943b hover:g-text-e38b02' : 'g-text-gray hover:g-text-normal'
106
- ]),
107
- loading: loading.value,
108
- mode: "spin",
109
- size: "mini",
110
- theme: "primary"
111
- }, {
112
- default: _withCtx(()=>{
113
- var _props_favoriteCount;
114
- return [
115
- _createElementVNode("i", {
116
- class: _normalizeClass([
117
- 'ai-ui-sdk-icon g-text-16',
118
- {
119
- 'g-mr-4': props.showCount
120
- },
121
- props.favorite ? 'ai-ui-sdk-favorite g-text-fc943b hover:g-text-e38b02' : 'ai-ui-sdk-weishoucang g-text-gray hover:g-text-f59500'
122
- ]),
123
- onClick: _withModifiers(handleClick, [
124
- "stop"
125
- ])
126
- }, null, 2 /* CLASS */ ),
127
- props.showCount ? (_openBlock(), _createElementBlock(_Fragment, {
128
- key: 0
129
- }, [
130
- _createTextVNode(_toDisplayString((_props_favoriteCount = props.favoriteCount) !== null && _props_favoriteCount !== void 0 ? _props_favoriteCount : 0), 1 /* TEXT */ )
131
- ], 64 /* STABLE_FRAGMENT */ )) : _createCommentVNode("v-if", true)
132
- ];
133
- }),
134
- _: 1 /* STABLE */
135
- }, 8 /* PROPS */ , [
136
- "class",
137
- "loading"
138
- ])), [
139
- [
140
- _directive_bk_tooltips,
141
- {
142
- content: props.favorite ? '取消收藏' : '添加收藏',
143
- placement: 'top'
144
- }
145
- ]
146
- ]) : _createCommentVNode("v-if", true);
147
- };
148
- }
149
- });
@@ -1,20 +0,0 @@
1
- import { Module, ResourceCardType } from '@/types/enum';
2
- interface IProps {
3
- favorite?: boolean;
4
- favoriteCount?: number;
5
- type: ResourceCardType;
6
- showCount: boolean;
7
- id?: number;
8
- module: Module;
9
- apiPrefix: string;
10
- spaceId?: string;
11
- }
12
- declare const __VLS_export: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
13
- "success-favorite": () => any;
14
- "success-cancel-favorite": () => any;
15
- }, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
16
- "onSuccess-favorite"?: () => any;
17
- "onSuccess-cancel-favorite"?: () => any;
18
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
- declare const _default: typeof __VLS_export;
20
- export default _default;
@@ -1,3 +0,0 @@
1
- import script from './collection-icon.script.vue.js.js';
2
- script.__file = "./src/components/render-card/base/collection-icon.vue";
3
- export default script;
@@ -1,66 +0,0 @@
1
- import { defineComponent as _defineComponent } from 'vue';
2
- import { normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withModifiers as _withModifiers, resolveDirective as _resolveDirective, openBlock as _openBlock, createElementBlock as _createElementBlock, withDirectives as _withDirectives, createCommentVNode as _createCommentVNode } from "vue";
3
- import { SkillEffectiveStatus } from '../../../enums.ts.js';
4
- export default /*@__PURE__*/ _defineComponent({
5
- props: {
6
- scanner: {}
7
- },
8
- emits: [
9
- "show-scanner"
10
- ],
11
- setup (__props, { emit: __emit }) {
12
- const props = __props;
13
- const emits = __emit;
14
- const statusConfig = {
15
- [SkillEffectiveStatus.Pass]: {
16
- tagClass: 'tag-pass',
17
- iconClass: 'ai-ui-sdk-icon ai-ui-sdk-anquanrenzheng',
18
- tooltipContent: '安全扫描通过,可放心使用'
19
- },
20
- [SkillEffectiveStatus.Fail]: {
21
- tagClass: 'tag-fail',
22
- iconClass: 'ai-ui-sdk-icon ai-ui-sdk-weixian',
23
- tooltipContent: '安全扫描未通过,存在风险,请注意使用'
24
- },
25
- [SkillEffectiveStatus.Error]: {
26
- tagClass: 'tag-error',
27
- iconClass: 'ai-ui-sdk-icon ai-ui-sdk-warning-circle-fill',
28
- tooltipContent: '安全扫描失败,请联系管理员'
29
- }
30
- };
31
- const handleDetail = ()=>{
32
- if (!props.scanner) return;
33
- emits('show-scanner', props.scanner.reportContent);
34
- };
35
- return (_ctx, _cache)=>{
36
- var _props_scanner, _statusConfig_props_scanner_effectiveStatus, _statusConfig_props_scanner_effectiveStatus1, _statusConfig_props_scanner_effectiveStatus2;
37
- const _directive_bk_tooltips = _resolveDirective("bk-tooltips");
38
- return ((_props_scanner = props.scanner) === null || _props_scanner === void 0 ? void 0 : _props_scanner.effectiveStatus) ? _withDirectives((_openBlock(), _createElementBlock("span", {
39
- key: 0,
40
- class: _normalizeClass([
41
- (_statusConfig_props_scanner_effectiveStatus = statusConfig[props.scanner.effectiveStatus]) === null || _statusConfig_props_scanner_effectiveStatus === void 0 ? void 0 : _statusConfig_props_scanner_effectiveStatus.tagClass,
42
- "g-leading-16 !g-pl-6 !g-pr-6 g-rounded-2 g-text-10 !g-cursor-pointer"
43
- ]),
44
- onClick: _withModifiers(handleDetail, [
45
- "stop"
46
- ])
47
- }, [
48
- _createElementVNode("i", {
49
- class: _normalizeClass([
50
- (_statusConfig_props_scanner_effectiveStatus1 = statusConfig[props.scanner.effectiveStatus]) === null || _statusConfig_props_scanner_effectiveStatus1 === void 0 ? void 0 : _statusConfig_props_scanner_effectiveStatus1.iconClass,
51
- 'g-mr-2 !g-text-12'
52
- ])
53
- }, null, 2 /* CLASS */ ),
54
- _createTextVNode(" " + _toDisplayString(props.scanner.effectiveStatusCn), 1 /* TEXT */ )
55
- ], 2 /* CLASS */ )), [
56
- [
57
- _directive_bk_tooltips,
58
- {
59
- content: (_statusConfig_props_scanner_effectiveStatus2 = statusConfig[props.scanner.effectiveStatus]) === null || _statusConfig_props_scanner_effectiveStatus2 === void 0 ? void 0 : _statusConfig_props_scanner_effectiveStatus2.tooltipContent,
60
- placement: 'top-start'
61
- }
62
- ]
63
- ]) : _createCommentVNode("v-if", true);
64
- };
65
- }
66
- });
@@ -1,11 +0,0 @@
1
- import type { ISkillScanner } from '@/types/skill';
2
- interface IProps {
3
- scanner?: ISkillScanner;
4
- }
5
- declare const __VLS_export: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
6
- "show-scanner": (content: string) => any;
7
- }, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
8
- "onShow-scanner"?: (content: string) => any;
9
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
10
- declare const _default: typeof __VLS_export;
11
- export default _default;
@@ -1,5 +0,0 @@
1
- import script from './scanner.script.vue.js.js';
2
- script.__scopeId = "data-v-v3y5e0w8";
3
- script.__file = "./src/components/render-card/skill/scanner.vue";
4
- import './scanner.vue.css';
5
- export default script;