@blueking/ai-ui-sdk 0.4.3-beta.8 → 0.5.0-beta.1

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 (466) hide show
  1. package/dist/components/render-agent/agent-search.script.vue.js.js +7 -1
  2. package/dist/components/render-agent/agent-share.script.vue.js.js +5 -8
  3. package/dist/components/render-agent/agent-share.vue.d.ts +0 -1
  4. package/dist/components/render-agent/agent-type.vue.css +3 -3
  5. package/dist/components/render-agent/agent-type.vue.d.ts +1 -1
  6. package/dist/components/render-agent/agent-type.vue.js +1 -1
  7. package/dist/components/render-auth/auth-dialog.script.vue.js.js +3 -6
  8. package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
  9. package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
  10. package/dist/components/render-auto-refresh/index.vue.css +8 -8
  11. package/dist/components/render-auto-refresh/index.vue.js +1 -1
  12. package/dist/components/{render-agent/action/index.script.vue.js.js → render-card/agent/actions.script.vue.js.js} +10 -47
  13. package/dist/components/{render-agent/action/index.vue.d.ts → render-card/agent/actions.vue.d.ts} +0 -5
  14. package/dist/components/render-card/agent/actions.vue.js +3 -0
  15. package/dist/components/render-card/agent/index.script.vue.js.js +25 -71
  16. package/dist/components/render-card/agent/index.vue.d.ts +1 -6
  17. package/dist/components/render-card/agent/prefix-info-tool.vue.css +5 -5
  18. package/dist/components/render-card/agent/prefix-info-tool.vue.js +1 -1
  19. package/dist/components/render-card/base/application-base-actions.script.vue.js.js +14 -57
  20. package/dist/components/render-card/base/application-base-actions.vue.d.ts +9 -13
  21. package/dist/components/render-card/base.script.vue.js +149 -133
  22. package/dist/components/render-card/base.vue.css +12 -12
  23. package/dist/components/render-card/base.vue.js +1 -1
  24. package/dist/components/render-card/knowledgebase/actions.script.vue.js.js +2 -15
  25. package/dist/components/render-card/knowledgebase/actions.vue.d.ts +0 -4
  26. package/dist/components/render-card/knowledgebase/index.script.vue.js.js +2 -15
  27. package/dist/components/render-card/knowledgebase/index.vue.d.ts +1 -4
  28. package/dist/components/render-card/llm/corner-badge.script.vue.js +33 -27
  29. package/dist/components/render-card/llm/corner-badge.vue.css +3 -3
  30. package/dist/components/render-card/llm/corner-badge.vue.js +1 -1
  31. package/dist/components/render-card/llm/icons.vue.css +2 -2
  32. package/dist/components/render-card/llm/icons.vue.js +1 -1
  33. package/dist/components/render-card/llm/info.vue.css +1 -1
  34. package/dist/components/render-card/llm/info.vue.js +1 -1
  35. package/dist/components/render-card/llm/tag-prefix.vue.css +3 -3
  36. package/dist/components/render-card/llm/tag-prefix.vue.js +1 -1
  37. package/dist/components/render-card/mcp/actions.script.vue.js.js +8 -49
  38. package/dist/components/render-card/mcp/actions.vue.d.ts +0 -5
  39. package/dist/components/render-card/mcp/code-suffix.script.vue.js +46 -30
  40. package/dist/components/render-card/mcp/index.script.vue.js.js +12 -56
  41. package/dist/components/render-card/mcp/index.vue.d.ts +2 -7
  42. package/dist/components/render-card/mcp/name-suffix.script.vue.js +23 -15
  43. package/dist/components/render-card/mcp/name-suffix.vue.css +2 -2
  44. package/dist/components/render-card/mcp/name-suffix.vue.js +1 -1
  45. package/dist/components/render-card/prompt/icons.vue.css +1 -1
  46. package/dist/components/render-card/prompt/icons.vue.js +1 -1
  47. package/dist/components/render-card/prompt/index.script.vue.js.js +16 -63
  48. package/dist/components/render-card/prompt/index.vue.d.ts +1 -6
  49. package/dist/components/render-card/role/index.script.vue.js.js +23 -69
  50. package/dist/components/render-card/role/index.vue.d.ts +1 -6
  51. package/dist/components/render-card/skill/index.script.vue.js.js +26 -73
  52. package/dist/components/render-card/skill/index.vue.d.ts +4 -12
  53. package/dist/components/render-card/skill/prefix-info-tool.script.vue.js +84 -41
  54. package/dist/components/render-card/skill/tag-prefix.script.vue.js.js +50 -11
  55. package/dist/components/render-card/skill/{scanner.vue.css → tag-prefix.vue.css} +3 -3
  56. package/dist/components/render-card/skill/tag-prefix.vue.js +2 -0
  57. package/dist/components/render-card/tool/actions.script.vue.js.js +5 -40
  58. package/dist/components/render-card/tool/actions.vue.d.ts +0 -5
  59. package/dist/components/render-card/tool/index.script.vue.js.js +22 -68
  60. package/dist/components/render-card/tool/index.vue.d.ts +1 -6
  61. package/dist/components/render-card/tool/prefix-info-tool.script.vue.js.js +1 -1
  62. package/dist/components/render-checkbox/index.vue.css +9 -9
  63. package/dist/components/render-checkbox/index.vue.js +1 -1
  64. package/dist/components/render-choose-tag/index.vue.css +7 -7
  65. package/dist/components/render-choose-tag/index.vue.js +1 -1
  66. package/dist/components/render-collapse/index.vue.css +2 -2
  67. package/dist/components/render-collapse/index.vue.js +1 -1
  68. package/dist/components/render-collection/actions/index.script.vue.js.js +4 -35
  69. package/dist/components/render-collection/actions/index.vue.d.ts +0 -5
  70. package/dist/components/render-collection/content/index.script.vue.js +43 -39
  71. package/dist/components/render-collection/content/index.vue.css +4 -4
  72. package/dist/components/render-collection/content/index.vue.js +1 -1
  73. package/dist/components/render-collection/search/index.script.vue.js.js +7 -1
  74. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.script.vue.js +37 -27
  75. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +3 -3
  76. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +1 -1
  77. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.script.vue.js.js +3 -3
  78. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +4 -0
  79. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +2 -0
  80. package/dist/components/render-dataset/components/dataset-data-level/index.script.vue.js +22 -18
  81. package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +26 -22
  82. package/dist/components/render-dataset/components/dataset-data-valid/index.script.vue.js.js +3 -3
  83. package/dist/components/render-dataset/components/dataset-data-valid/index.vue.css +4 -0
  84. package/dist/components/render-dataset/components/dataset-data-valid/index.vue.js +2 -0
  85. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  86. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  87. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  88. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  89. package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js +104 -64
  90. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  91. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  92. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  93. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  94. package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.vue.js +184 -119
  95. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +1 -1
  96. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  97. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
  98. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
  99. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  100. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  101. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +1 -1
  102. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  103. package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
  104. package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
  105. package/dist/components/render-dataset/components/search-dataset/index.script.vue.js.js +17 -2
  106. package/dist/components/render-dataset/components/search-dataset/index.vue.d.ts +1 -0
  107. package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +360 -203
  108. package/dist/components/render-dataset-detail-origin-data/index.script.vue.js.js +7 -10
  109. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  110. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  111. package/dist/components/render-dataset-list/components/main.script.vue.js.js +5 -2
  112. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  113. package/dist/components/render-dataset-list/components/main.vue.d.ts +1 -0
  114. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  115. package/dist/components/render-dataset-list/components/table.script.vue.js +271 -162
  116. package/dist/components/render-dataset-list/index.script.vue.js.js +7 -2
  117. package/dist/components/render-dataset-list/index.vue.css +2 -2
  118. package/dist/components/render-dataset-list/index.vue.d.ts +1 -0
  119. package/dist/components/render-dataset-list/index.vue.js +1 -1
  120. package/dist/components/render-dialog/choose-resource.script.vue.js +390 -269
  121. package/dist/components/render-dialog/choose-resource.vue.css +3 -3
  122. package/dist/components/render-dialog/choose-resource.vue.js +1 -1
  123. package/dist/components/render-dialog/choose-result.script.vue.js +210 -149
  124. package/dist/components/render-dialog/choose-result.vue.css +14 -14
  125. package/dist/components/render-dialog/choose-result.vue.js +1 -1
  126. package/dist/components/render-dialog/choose-space.vue.css +9 -9
  127. package/dist/components/render-dialog/choose-space.vue.js +1 -1
  128. package/dist/components/render-dialog/index.script.vue.js +172 -113
  129. package/dist/components/render-dialog/index.vue.css +6 -6
  130. package/dist/components/render-dialog/index.vue.js +1 -1
  131. package/dist/components/render-dropdown/index.vue.d.ts +5 -5
  132. package/dist/components/render-file-card/index.vue.css +11 -11
  133. package/dist/components/render-file-card/index.vue.js +1 -1
  134. package/dist/components/render-file-type-icon/index.vue.css +6 -6
  135. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  136. package/dist/components/render-generate-tag/index.vue.css +5 -5
  137. package/dist/components/render-generate-tag/index.vue.d.ts +1 -1
  138. package/dist/components/render-generate-tag/index.vue.js +1 -1
  139. package/dist/components/render-knowledge/icon/index.vue.css +1 -1
  140. package/dist/components/render-knowledge/icon/index.vue.js +1 -1
  141. package/dist/components/render-knowledge/search/index.script.vue.js.js +7 -1
  142. package/dist/components/render-knowledgebase/search/index.script.vue.js.js +7 -1
  143. package/dist/components/render-markdown/edit.d.ts +1 -1
  144. package/dist/components/render-markdown/view.d.ts +1 -1
  145. package/dist/components/render-mcp/search/index.script.vue.js.js +7 -1
  146. package/dist/components/render-permission-tag/index.script.vue.js +74 -54
  147. package/dist/components/render-prompt/actions/index.script.vue.js.js +5 -36
  148. package/dist/components/render-prompt/actions/index.vue.d.ts +0 -5
  149. package/dist/components/render-prompt/content/index.vue.css +1 -1
  150. package/dist/components/render-prompt/content/index.vue.js +1 -1
  151. package/dist/components/render-prompt/search/index.script.vue.js.js +7 -1
  152. package/dist/components/render-reference/index.script.vue.js +259 -203
  153. package/dist/components/render-reference/index.vue.css +2 -2
  154. package/dist/components/render-reference/index.vue.js +1 -1
  155. package/dist/components/render-relate-agent/index.script.vue.js +640 -345
  156. package/dist/components/render-relate-agent/index.vue.d.ts +2 -2
  157. package/dist/components/render-resource-info/index.script.vue.js +51 -43
  158. package/dist/components/render-resource-version/index.vue.css +2 -2
  159. package/dist/components/render-resource-version/index.vue.d.ts +1 -1
  160. package/dist/components/render-resource-version/index.vue.js +1 -1
  161. package/dist/components/render-router-tab/index.vue.css +3 -3
  162. package/dist/components/render-router-tab/index.vue.js +1 -1
  163. package/dist/components/render-search-empty/index.script.vue.js.js +2 -3
  164. package/dist/components/render-select-plus-extension/index.vue.css +3 -3
  165. package/dist/components/render-select-plus-extension/index.vue.js +1 -1
  166. package/dist/components/render-skill/actions/index.script.vue.js.js +8 -52
  167. package/dist/components/render-skill/actions/index.vue.d.ts +2 -7
  168. package/dist/components/render-skill/search/index.script.vue.js.js +7 -1
  169. package/dist/components/render-skill/variable-form/index.script.vue.js +74 -47
  170. package/dist/components/render-t-table/index.script.vue.js +226 -142
  171. package/dist/components/render-t-table/index.vue.css +27 -27
  172. package/dist/components/render-t-table/index.vue.js +1 -1
  173. package/dist/components/render-tag-tree/index.vue.css +7 -7
  174. package/dist/components/render-tag-tree/index.vue.js +1 -1
  175. package/dist/components/render-tags/index.script.vue.js +95 -70
  176. package/dist/components/render-tags/index.vue.css +6 -6
  177. package/dist/components/render-tags/index.vue.d.ts +1 -1
  178. package/dist/components/render-tags/index.vue.js +1 -1
  179. package/dist/components/render-tool/search/index.script.vue.js.js +7 -1
  180. package/dist/components/render-tree/index.script.vue.js +115 -60
  181. package/dist/components.d.ts +1 -12
  182. package/dist/components.ts.js +1 -12
  183. package/dist/css/fonts/iconcool.eot +0 -0
  184. package/dist/css/fonts/iconcool.svg +0 -3
  185. package/dist/css/fonts/iconcool.ttf +0 -0
  186. package/dist/css/fonts/iconcool.woff +0 -0
  187. package/dist/css/g-utilities.css +0 -16
  188. package/dist/css/g-utilities.manifest.json +0 -4
  189. package/dist/css/iconcool.js +1 -1
  190. package/dist/css/style.css +0 -3
  191. package/dist/hooks/use-agent-http.d.ts +0 -2
  192. package/dist/hooks/use-agent-http.ts.js +1 -15
  193. package/dist/hooks/use-collection-http.d.ts +0 -2
  194. package/dist/hooks/use-collection-http.ts.js +1 -15
  195. package/dist/hooks/use-display-name.d.ts +3 -0
  196. package/dist/hooks/use-display-name.ts.js +14 -0
  197. package/dist/hooks/use-market-http.d.ts +0 -10
  198. package/dist/hooks/use-market-http.ts.js +1 -71
  199. package/dist/hooks/use-mcp-http.d.ts +0 -2
  200. package/dist/hooks/use-mcp-http.ts.js +1 -15
  201. package/dist/hooks/use-member-http.d.ts +2 -1
  202. package/dist/hooks/use-member-http.ts.js +23 -22
  203. package/dist/hooks/use-prompt-http.d.ts +0 -2
  204. package/dist/hooks/use-prompt-http.ts.js +1 -15
  205. package/dist/hooks/use-skill-http.d.ts +0 -2
  206. package/dist/hooks/use-skill-http.ts.js +1 -15
  207. package/dist/hooks/use-space-http.d.ts +1 -2
  208. package/dist/hooks/use-space-http.ts.js +1 -8
  209. package/dist/hooks/use-t-table.d.ts +5 -11
  210. package/dist/hooks/use-t-table.ts.js +3 -25
  211. package/dist/hooks/use-tool-http.d.ts +0 -2
  212. package/dist/hooks/use-tool-http.ts.js +1 -15
  213. package/dist/hooks.d.ts +1 -0
  214. package/dist/hooks.ts.js +1 -0
  215. package/dist/http/fetch/index.d.ts +2 -0
  216. package/dist/http/fetch/index.ts.js +4 -1
  217. package/dist/http/fetch/success-interceptor.ts.js +5 -1
  218. package/dist/http/helper/agent.ts.js +1 -2
  219. package/dist/http/helper/collection.ts.js +1 -2
  220. package/dist/http/helper/common.d.ts +1 -1
  221. package/dist/http/helper/common.ts.js +0 -4
  222. package/dist/http/helper/mcp.ts.js +2 -6
  223. package/dist/http/helper/prompt.ts.js +1 -2
  224. package/dist/http/helper/skill.ts.js +0 -4
  225. package/dist/http/helper/space.d.ts +1 -10
  226. package/dist/http/helper/space.ts.js +0 -8
  227. package/dist/http/helper/tool.ts.js +2 -6
  228. package/dist/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +6 -0
  229. package/dist/node_modules/@babel/runtime/helpers/arrayWithHoles.js +4 -0
  230. package/dist/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +5 -0
  231. package/dist/node_modules/@babel/runtime/helpers/defineProperty.js +10 -0
  232. package/dist/node_modules/@babel/runtime/helpers/interopRequireDefault.js +6 -0
  233. package/dist/node_modules/@babel/runtime/helpers/iterableToArray.js +4 -0
  234. package/dist/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +28 -0
  235. package/dist/node_modules/@babel/runtime/helpers/nonIterableRest.js +4 -0
  236. package/dist/node_modules/@babel/runtime/helpers/nonIterableSpread.js +4 -0
  237. package/dist/node_modules/@babel/runtime/helpers/slicedToArray.js +8 -0
  238. package/dist/node_modules/@babel/runtime/helpers/toConsumableArray.js +8 -0
  239. package/dist/node_modules/@babel/runtime/helpers/toPrimitive.js +12 -0
  240. package/dist/node_modules/@babel/runtime/helpers/toPropertyKey.js +7 -0
  241. package/dist/node_modules/@babel/runtime/helpers/typeof.js +10 -0
  242. package/dist/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +9 -0
  243. package/dist/node_modules/core-js/internals/a-callable.js +11 -0
  244. package/dist/node_modules/core-js/internals/a-constructor.js +11 -0
  245. package/dist/node_modules/core-js/internals/a-possible-prototype.js +10 -0
  246. package/dist/node_modules/core-js/internals/add-to-unscopables.js +21 -0
  247. package/dist/node_modules/core-js/internals/advance-string-index.js +8 -0
  248. package/dist/node_modules/core-js/internals/an-instance.js +9 -0
  249. package/dist/node_modules/core-js/internals/an-object.js +11 -0
  250. package/dist/node_modules/core-js/internals/array-buffer-non-extensible.js +11 -0
  251. package/dist/node_modules/core-js/internals/array-for-each.js +12 -0
  252. package/dist/node_modules/core-js/internals/array-includes.js +34 -0
  253. package/dist/node_modules/core-js/internals/array-iteration.js +72 -0
  254. package/dist/node_modules/core-js/internals/array-method-has-species-support.js +20 -0
  255. package/dist/node_modules/core-js/internals/array-method-is-strict.js +10 -0
  256. package/dist/node_modules/core-js/internals/array-set-length.js +27 -0
  257. package/dist/node_modules/core-js/internals/array-slice.js +4 -0
  258. package/dist/node_modules/core-js/internals/array-species-constructor.js +23 -0
  259. package/dist/node_modules/core-js/internals/array-species-create.js +8 -0
  260. package/dist/node_modules/core-js/internals/check-correctness-of-iteration.js +43 -0
  261. package/dist/node_modules/core-js/internals/classof-raw.js +9 -0
  262. package/dist/node_modules/core-js/internals/classof.js +30 -0
  263. package/dist/node_modules/core-js/internals/collection-strong.js +206 -0
  264. package/dist/node_modules/core-js/internals/collection.js +106 -0
  265. package/dist/node_modules/core-js/internals/copy-constructor-properties.js +17 -0
  266. package/dist/node_modules/core-js/internals/correct-is-regexp-logic.js +16 -0
  267. package/dist/node_modules/core-js/internals/correct-prototype-getter.js +9 -0
  268. package/dist/node_modules/core-js/internals/create-iter-result-object.js +6 -0
  269. package/dist/node_modules/core-js/internals/create-non-enumerable-property.js +11 -0
  270. package/dist/node_modules/core-js/internals/create-property-descriptor.js +9 -0
  271. package/dist/node_modules/core-js/internals/create-property.js +9 -0
  272. package/dist/node_modules/core-js/internals/define-built-in-accessor.js +9 -0
  273. package/dist/node_modules/core-js/internals/define-built-in.js +28 -0
  274. package/dist/node_modules/core-js/internals/define-built-ins.js +7 -0
  275. package/dist/node_modules/core-js/internals/define-global-property.js +13 -0
  276. package/dist/node_modules/core-js/internals/delete-property-or-throw.js +8 -0
  277. package/dist/node_modules/core-js/internals/descriptors.js +8 -0
  278. package/dist/node_modules/core-js/internals/document-create-element.js +11 -0
  279. package/dist/node_modules/core-js/internals/does-not-exceed-safe-integer.js +8 -0
  280. package/dist/node_modules/core-js/internals/dom-iterables.js +36 -0
  281. package/dist/node_modules/core-js/internals/dom-token-list-prototype.js +8 -0
  282. package/dist/node_modules/core-js/internals/enum-bug-keys.js +11 -0
  283. package/dist/node_modules/core-js/internals/environment-is-ios-pebble.js +4 -0
  284. package/dist/node_modules/core-js/internals/environment-is-ios.js +4 -0
  285. package/dist/node_modules/core-js/internals/environment-is-node.js +4 -0
  286. package/dist/node_modules/core-js/internals/environment-is-webos-webkit.js +4 -0
  287. package/dist/node_modules/core-js/internals/environment-user-agent.js +7 -0
  288. package/dist/node_modules/core-js/internals/environment-v8-version.js +28 -0
  289. package/dist/node_modules/core-js/internals/environment.js +21 -0
  290. package/dist/node_modules/core-js/internals/export.js +55 -0
  291. package/dist/node_modules/core-js/internals/fails.js +8 -0
  292. package/dist/node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js +78 -0
  293. package/dist/node_modules/core-js/internals/freezing.js +7 -0
  294. package/dist/node_modules/core-js/internals/function-apply.js +11 -0
  295. package/dist/node_modules/core-js/internals/function-bind-context.js +14 -0
  296. package/dist/node_modules/core-js/internals/function-bind-native.js +9 -0
  297. package/dist/node_modules/core-js/internals/function-call.js +8 -0
  298. package/dist/node_modules/core-js/internals/function-name.js +18 -0
  299. package/dist/node_modules/core-js/internals/function-uncurry-this-accessor.js +10 -0
  300. package/dist/node_modules/core-js/internals/function-uncurry-this-clause.js +10 -0
  301. package/dist/node_modules/core-js/internals/function-uncurry-this.js +13 -0
  302. package/dist/node_modules/core-js/internals/get-built-in.js +11 -0
  303. package/dist/node_modules/core-js/internals/get-iterator-method.js +14 -0
  304. package/dist/node_modules/core-js/internals/get-iterator.js +14 -0
  305. package/dist/node_modules/core-js/internals/get-method.js +10 -0
  306. package/dist/node_modules/core-js/internals/global-this.js +16 -0
  307. package/dist/node_modules/core-js/internals/has-own-property.js +12 -0
  308. package/dist/node_modules/core-js/internals/hidden-keys.js +2 -0
  309. package/dist/node_modules/core-js/internals/host-report-errors.js +7 -0
  310. package/dist/node_modules/core-js/internals/html.js +4 -0
  311. package/dist/node_modules/core-js/internals/ie8-dom-define.js +12 -0
  312. package/dist/node_modules/core-js/internals/indexed-object.js +16 -0
  313. package/dist/node_modules/core-js/internals/inherit-if-required.js +19 -0
  314. package/dist/node_modules/core-js/internals/inspect-source.js +15 -0
  315. package/dist/node_modules/core-js/internals/internal-metadata.js +91 -0
  316. package/dist/node_modules/core-js/internals/internal-state.js +71 -0
  317. package/dist/node_modules/core-js/internals/is-array-iterator-method.js +11 -0
  318. package/dist/node_modules/core-js/internals/is-array.js +9 -0
  319. package/dist/node_modules/core-js/internals/is-callable.js +12 -0
  320. package/dist/node_modules/core-js/internals/is-constructor.js +52 -0
  321. package/dist/node_modules/core-js/internals/is-forced.js +23 -0
  322. package/dist/node_modules/core-js/internals/is-null-or-undefined.js +6 -0
  323. package/dist/node_modules/core-js/internals/is-object.js +6 -0
  324. package/dist/node_modules/core-js/internals/is-possible-prototype.js +6 -0
  325. package/dist/node_modules/core-js/internals/is-pure.js +2 -0
  326. package/dist/node_modules/core-js/internals/is-raw-json.js +9 -0
  327. package/dist/node_modules/core-js/internals/is-regexp.js +13 -0
  328. package/dist/node_modules/core-js/internals/is-symbol.js +14 -0
  329. package/dist/node_modules/core-js/internals/iterate.js +74 -0
  330. package/dist/node_modules/core-js/internals/iterator-close.js +24 -0
  331. package/dist/node_modules/core-js/internals/iterator-create-constructor.js +16 -0
  332. package/dist/node_modules/core-js/internals/iterator-define.js +102 -0
  333. package/dist/node_modules/core-js/internals/iterators-core.js +49 -0
  334. package/dist/node_modules/core-js/internals/iterators.js +2 -0
  335. package/dist/node_modules/core-js/internals/length-of-array-like.js +8 -0
  336. package/dist/node_modules/core-js/internals/make-built-in.js +55 -0
  337. package/dist/node_modules/core-js/internals/math-trunc.js +11 -0
  338. package/dist/node_modules/core-js/internals/microtask.js +79 -0
  339. package/dist/node_modules/core-js/internals/native-raw-json.js +11 -0
  340. package/dist/node_modules/core-js/internals/new-promise-capability.js +21 -0
  341. package/dist/node_modules/core-js/internals/not-a-regexp.js +10 -0
  342. package/dist/node_modules/core-js/internals/object-assign.js +58 -0
  343. package/dist/node_modules/core-js/internals/object-create.js +85 -0
  344. package/dist/node_modules/core-js/internals/object-define-properties.js +21 -0
  345. package/dist/node_modules/core-js/internals/object-define-property.js +44 -0
  346. package/dist/node_modules/core-js/internals/object-get-own-property-descriptor.js +23 -0
  347. package/dist/node_modules/core-js/internals/object-get-own-property-names-external.js +24 -0
  348. package/dist/node_modules/core-js/internals/object-get-own-property-names.js +12 -0
  349. package/dist/node_modules/core-js/internals/object-get-own-property-symbols.js +3 -0
  350. package/dist/node_modules/core-js/internals/object-get-prototype-of.js +22 -0
  351. package/dist/node_modules/core-js/internals/object-is-extensible.js +17 -0
  352. package/dist/node_modules/core-js/internals/object-is-prototype-of.js +4 -0
  353. package/dist/node_modules/core-js/internals/object-keys-internal.js +21 -0
  354. package/dist/node_modules/core-js/internals/object-keys.js +10 -0
  355. package/dist/node_modules/core-js/internals/object-property-is-enumerable.js +14 -0
  356. package/dist/node_modules/core-js/internals/object-set-prototype-of.js +29 -0
  357. package/dist/node_modules/core-js/internals/object-to-array.js +49 -0
  358. package/dist/node_modules/core-js/internals/object-to-string.js +9 -0
  359. package/dist/node_modules/core-js/internals/ordinary-to-primitive.js +16 -0
  360. package/dist/node_modules/core-js/internals/own-keys.js +15 -0
  361. package/dist/node_modules/core-js/internals/parse-json-string.js +56 -0
  362. package/dist/node_modules/core-js/internals/path.js +4 -0
  363. package/dist/node_modules/core-js/internals/perform.js +8 -0
  364. package/dist/node_modules/core-js/internals/promise-constructor-detection.js +47 -0
  365. package/dist/node_modules/core-js/internals/promise-native-constructor.js +4 -0
  366. package/dist/node_modules/core-js/internals/promise-resolve.js +13 -0
  367. package/dist/node_modules/core-js/internals/promise-statics-incorrect-iteration.js +8 -0
  368. package/dist/node_modules/core-js/internals/queue.js +25 -0
  369. package/dist/node_modules/core-js/internals/regexp-exec-abstract.js +21 -0
  370. package/dist/node_modules/core-js/internals/regexp-exec.js +124 -0
  371. package/dist/node_modules/core-js/internals/regexp-flags-detection.js +47 -0
  372. package/dist/node_modules/core-js/internals/regexp-flags.js +18 -0
  373. package/dist/node_modules/core-js/internals/regexp-get-flags.js +16 -0
  374. package/dist/node_modules/core-js/internals/regexp-sticky-helpers.js +31 -0
  375. package/dist/node_modules/core-js/internals/regexp-unsupported-dot-all.js +11 -0
  376. package/dist/node_modules/core-js/internals/regexp-unsupported-ncg.js +12 -0
  377. package/dist/node_modules/core-js/internals/require-object-coercible.js +11 -0
  378. package/dist/node_modules/core-js/internals/safe-get-built-in.js +13 -0
  379. package/dist/node_modules/core-js/internals/same-value.js +8 -0
  380. package/dist/node_modules/core-js/internals/set-species.js +18 -0
  381. package/dist/node_modules/core-js/internals/set-to-string-tag.js +13 -0
  382. package/dist/node_modules/core-js/internals/shared-key.js +9 -0
  383. package/dist/node_modules/core-js/internals/shared-store.js +15 -0
  384. package/dist/node_modules/core-js/internals/shared.js +6 -0
  385. package/dist/node_modules/core-js/internals/species-constructor.js +15 -0
  386. package/dist/node_modules/core-js/internals/string-multibyte.js +37 -0
  387. package/dist/node_modules/core-js/internals/symbol-constructor-detection.js +19 -0
  388. package/dist/node_modules/core-js/internals/symbol-define-to-primitive.js +21 -0
  389. package/dist/node_modules/core-js/internals/symbol-registry-detection.js +5 -0
  390. package/dist/node_modules/core-js/internals/task.js +117 -0
  391. package/dist/node_modules/core-js/internals/to-absolute-index.js +13 -0
  392. package/dist/node_modules/core-js/internals/to-indexed-object.js +8 -0
  393. package/dist/node_modules/core-js/internals/to-integer-or-infinity.js +10 -0
  394. package/dist/node_modules/core-js/internals/to-length.js +11 -0
  395. package/dist/node_modules/core-js/internals/to-object.js +10 -0
  396. package/dist/node_modules/core-js/internals/to-primitive.js +26 -0
  397. package/dist/node_modules/core-js/internals/to-property-key.js +10 -0
  398. package/dist/node_modules/core-js/internals/to-string-tag-support.js +9 -0
  399. package/dist/node_modules/core-js/internals/to-string.js +9 -0
  400. package/dist/node_modules/core-js/internals/try-to-string.js +10 -0
  401. package/dist/node_modules/core-js/internals/uid.js +10 -0
  402. package/dist/node_modules/core-js/internals/use-symbol-as-uid.js +7 -0
  403. package/dist/node_modules/core-js/internals/v8-prototype-define-bug.js +13 -0
  404. package/dist/node_modules/core-js/internals/validate-arguments-length.js +7 -0
  405. package/dist/node_modules/core-js/internals/weak-map-basic-detection.js +7 -0
  406. package/dist/node_modules/core-js/internals/well-known-symbol-define.js +12 -0
  407. package/dist/node_modules/core-js/internals/well-known-symbol-wrapped.js +4 -0
  408. package/dist/node_modules/core-js/internals/well-known-symbol.js +19 -0
  409. package/dist/node_modules/core-js/modules/es.array.concat.js +59 -0
  410. package/dist/node_modules/core-js/modules/es.array.filter.js +15 -0
  411. package/dist/node_modules/core-js/modules/es.array.find-index.js +22 -0
  412. package/dist/node_modules/core-js/modules/es.array.find.js +22 -0
  413. package/dist/node_modules/core-js/modules/es.array.includes.js +28 -0
  414. package/dist/node_modules/core-js/modules/es.array.iterator.js +62 -0
  415. package/dist/node_modules/core-js/modules/es.array.join.js +19 -0
  416. package/dist/node_modules/core-js/modules/es.array.map.js +15 -0
  417. package/dist/node_modules/core-js/modules/es.array.splice.js +67 -0
  418. package/dist/node_modules/core-js/modules/es.function.name.js +26 -0
  419. package/dist/node_modules/core-js/modules/es.json.stringify.js +135 -0
  420. package/dist/node_modules/core-js/modules/es.object.assign.js +10 -0
  421. package/dist/node_modules/core-js/modules/es.object.entries.js +11 -0
  422. package/dist/node_modules/core-js/modules/es.object.get-own-property-symbols.js +19 -0
  423. package/dist/node_modules/core-js/modules/es.object.keys.js +15 -0
  424. package/dist/node_modules/core-js/modules/es.object.to-string.js +10 -0
  425. package/dist/node_modules/core-js/modules/es.promise.all.js +39 -0
  426. package/dist/node_modules/core-js/modules/es.promise.catch.js +26 -0
  427. package/dist/node_modules/core-js/modules/es.promise.constructor.js +293 -0
  428. package/dist/node_modules/core-js/modules/es.promise.finally.js +43 -0
  429. package/dist/node_modules/core-js/modules/es.promise.js +8 -0
  430. package/dist/node_modules/core-js/modules/es.promise.race.js +26 -0
  431. package/dist/node_modules/core-js/modules/es.promise.reject.js +15 -0
  432. package/dist/node_modules/core-js/modules/es.promise.resolve.js +18 -0
  433. package/dist/node_modules/core-js/modules/es.regexp.exec.js +9 -0
  434. package/dist/node_modules/core-js/modules/es.regexp.to-string.js +26 -0
  435. package/dist/node_modules/core-js/modules/es.set.constructor.js +9 -0
  436. package/dist/node_modules/core-js/modules/es.set.js +3 -0
  437. package/dist/node_modules/core-js/modules/es.string.includes.js +21 -0
  438. package/dist/node_modules/core-js/modules/es.string.iterator.js +31 -0
  439. package/dist/node_modules/core-js/modules/es.string.search.js +38 -0
  440. package/dist/node_modules/core-js/modules/es.string.split.js +113 -0
  441. package/dist/node_modules/core-js/modules/es.symbol.constructor.js +264 -0
  442. package/dist/node_modules/core-js/modules/es.symbol.description.js +69 -0
  443. package/dist/node_modules/core-js/modules/es.symbol.for.js +23 -0
  444. package/dist/node_modules/core-js/modules/es.symbol.js +7 -0
  445. package/dist/node_modules/core-js/modules/es.symbol.key-for.js +18 -0
  446. package/dist/node_modules/core-js/modules/web.dom-collections.for-each.js +23 -0
  447. package/dist/node_modules/core-js/modules/web.dom-collections.iterator.js +37 -0
  448. package/dist/node_modules/regenerator-runtime/runtime.js +761 -0
  449. package/dist/types/agent.d.ts +1 -3
  450. package/dist/types/collection.d.ts +1 -3
  451. package/dist/types/common.d.ts +0 -4
  452. package/dist/types/enum.d.ts +1 -4
  453. package/dist/types/enum.ts.js +0 -3
  454. package/dist/types/mcp.d.ts +0 -4
  455. package/dist/types/prompt.d.ts +1 -3
  456. package/dist/types/skill.d.ts +0 -4
  457. package/dist/types/space.d.ts +0 -2
  458. package/dist/types/tool.d.ts +0 -4
  459. package/package.json +4 -3
  460. package/dist/components/render-agent/action/index.vue.js +0 -3
  461. package/dist/components/render-card/base/collection-icon.script.vue.js.js +0 -149
  462. package/dist/components/render-card/base/collection-icon.vue.d.ts +0 -20
  463. package/dist/components/render-card/base/collection-icon.vue.js +0 -3
  464. package/dist/components/render-card/skill/scanner.script.vue.js.js +0 -66
  465. package/dist/components/render-card/skill/scanner.vue.d.ts +0 -11
  466. package/dist/components/render-card/skill/scanner.vue.js +0 -5
@@ -29,6 +29,4 @@ export declare const useSkillHttp: (apiPrefix: string, spaceId?: Ref<string>) =>
29
29
  (id: number, version: string): Promise<import("@/types/skill").ISkillBuildLog>;
30
30
  abort(): void;
31
31
  };
32
- addSkillFavorite: (id: number) => Promise<unknown>;
33
- removeSkillFavorite: (id: number) => Promise<unknown>;
34
32
  };
@@ -139,18 +139,6 @@ export const useSkillHttp = (apiPrefix, spaceId)=>{
139
139
  },
140
140
  signal
141
141
  }).then(transferSkillBuildLogApi2SkillBuildLog));
142
- // 收藏 Skill
143
- const addSkillFavorite = (id)=>fetch.post(`${apiPrefix}/skill/v1/skill/${id}/add_favorite/`, undefined, {
144
- headers: {
145
- 'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
146
- }
147
- });
148
- // 取消收藏 Skill
149
- const removeSkillFavorite = (id)=>fetch.delete(`${apiPrefix}/skill/v1/skill/${id}/remove_favorite/`, undefined, {
150
- headers: {
151
- 'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
152
- }
153
- });
154
142
  return {
155
143
  getSkillList,
156
144
  getSkillCount,
@@ -164,8 +152,6 @@ export const useSkillHttp = (apiPrefix, spaceId)=>{
164
152
  getSkillOpenclawWindowsInstancesStatus,
165
153
  installSkillToOpenclawWindows,
166
154
  getSkillOpenclawWindowsInstallTasksStatus,
167
- getSkillBuildLog,
168
- addSkillFavorite,
169
- removeSkillFavorite
155
+ getSkillBuildLog
170
156
  };
171
157
  };
@@ -1,10 +1,9 @@
1
1
  import { Ref } from 'vue';
2
2
  import { IFetchConfig } from '@/http/fetch';
3
- import { IResourceAuthorizedSpacesParam, IResourcesRemoveApplication, IResourcesRevokeApplication, IUsableSpaceParam } from '@/types/space';
3
+ import { IResourceAuthorizedSpacesParam, IResourcesRemoveApplication, IUsableSpaceParam } from '@/types/space';
4
4
  export declare const useSpaceHttp: (apiPrefix: string, spaceId?: Ref<string>) => {
5
5
  getResourceAuthorizedSpaces: (data: IResourceAuthorizedSpacesParam) => Promise<import("@/types/space").ISpace[]>;
6
6
  removeApplyResources: (data: IResourcesRemoveApplication) => Promise<unknown>;
7
- revokeApplyResources: (data: IResourcesRevokeApplication) => Promise<unknown>;
8
7
  getUsableSpaces: {
9
8
  (data: IUsableSpaceParam, config?: IFetchConfig): Promise<import("@/types/space").IUsableSpace[]>;
10
9
  abort(): void;
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
51
51
  return target;
52
52
  }
53
53
  import fetch, { withAbort } from '../http/fetch/index.ts.js';
54
- import { transferResourceAuthorizedSpacesParam2ResourceAuthorizedSpacesParamApi, transferResourcesRemoveApplication2ResourcesRemoveApplicationApi, transferResourcesRevokeApplication2ResourcesRevokeApplicationApi, transferSpaceApi2Space, transferUsableSpaceApi2UsableSpace, transferUsableSpaceParam2UsableSpaceParamApi } from '../http/helper/space.ts.js';
54
+ import { transferResourceAuthorizedSpacesParam2ResourceAuthorizedSpacesParamApi, transferResourcesRemoveApplication2ResourcesRemoveApplicationApi, transferSpaceApi2Space, transferUsableSpaceApi2UsableSpace, transferUsableSpaceParam2UsableSpaceParamApi } from '../http/helper/space.ts.js';
55
55
  export const useSpaceHttp = (apiPrefix, spaceId)=>{
56
56
  const getResourceAuthorizedSpaces = (data)=>fetch.get(`${apiPrefix}/meta/v1/space/authorized_spaces/`, transferResourceAuthorizedSpacesParam2ResourceAuthorizedSpacesParamApi(data), {
57
57
  headers: {
@@ -64,12 +64,6 @@ export const useSpaceHttp = (apiPrefix, spaceId)=>{
64
64
  'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
65
65
  }
66
66
  });
67
- // 撤销资源申请
68
- const revokeApplyResources = (data)=>fetch.post(`${apiPrefix}/meta/v1/space_manage/resources/revoke/`, transferResourcesRevokeApplication2ResourcesRevokeApplicationApi(data), {
69
- headers: {
70
- 'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
71
- }
72
- });
73
67
  // 获取可用的空间列表
74
68
  const getUsableSpaces = withAbort((signal, data, config)=>fetch.get(`${apiPrefix}/meta/v1/space_manage/resources/usable_space/`, transferUsableSpaceParam2UsableSpaceParamApi(data), _object_spread_props(_object_spread({
75
69
  headers: {
@@ -81,7 +75,6 @@ export const useSpaceHttp = (apiPrefix, spaceId)=>{
81
75
  return {
82
76
  getResourceAuthorizedSpaces,
83
77
  removeApplyResources,
84
- revokeApplyResources,
85
78
  getUsableSpaces
86
79
  };
87
80
  };
@@ -1,15 +1,13 @@
1
- import { type Ref } from 'vue';
2
1
  import type { IPagination, IPaginationParam, ISortParam, ITTableSort } from '@/types/common';
3
2
  import { OrderMethod } from '@/types/enum';
4
3
  interface IPaginatedApiResult<T> {
5
4
  results?: T;
6
5
  count?: number;
7
6
  }
8
- type ITableRow<T> = T extends Array<infer E> ? E : T;
9
7
  export declare const useTTable: <T>() => {
10
- isLoading: Ref<boolean, boolean>;
11
- initHook: (callBackFn: (search: IPaginationParam & ISortParam) => Promise<IPaginatedApiResult<T> | T>, isShowPagination: boolean, key?: string) => void;
12
- sort: Ref<{
8
+ isLoading: import("vue").Ref<boolean, boolean>;
9
+ initHook: (callBackFn: (search: IPaginationParam & ISortParam) => Promise<IPaginatedApiResult<T> | T>, isShowPagination: boolean) => void;
10
+ sort: import("vue").Ref<{
13
11
  descending?: OrderMethod;
14
12
  sortKey?: string;
15
13
  }, ITTableSort | {
@@ -24,7 +22,7 @@ export declare const useTTable: <T>() => {
24
22
  };
25
23
  }) => Promise<void>;
26
24
  triggerApi: () => Promise<void>;
27
- pagination: Ref<{
25
+ pagination: import("vue").Ref<{
28
26
  current: number;
29
27
  limit: number;
30
28
  count: number;
@@ -34,12 +32,8 @@ export declare const useTTable: <T>() => {
34
32
  count: number;
35
33
  }>;
36
34
  resetPagination: () => void;
37
- tableData: [[] | T] extends [Ref<any, any>] ? import("@vue/shared").IfAny<Ref<any, any> & ([] | T), Ref<Ref<any, any> & ([] | T), Ref<any, any> & ([] | T)>, Ref<any, any> & ([] | T)> : Ref<[] | import("vue").UnwrapRef<T>, [] | T | import("vue").UnwrapRef<T>>;
35
+ tableData: [[] | T] extends [import("vue").Ref<any, any>] ? import("@vue/shared").IfAny<import("vue").Ref<any, any> & ([] | T), import("vue").Ref<import("vue").Ref<any, any> & ([] | T), import("vue").Ref<any, any> & ([] | T)>, import("vue").Ref<any, any> & ([] | T)> : import("vue").Ref<[] | import("vue").UnwrapRef<T>, [] | T | import("vue").UnwrapRef<T>>;
38
36
  handlePageChange: (current: number) => void;
39
37
  handlePageSizeChange: (pageSize: number) => void;
40
- selectedRows: Ref<ITableRow<T>[], ITableRow<T>[]>;
41
- selectedIds: Ref<(string | number)[], (string | number)[]>;
42
- handleSelectionChange: (_keys: string | number | (string | number)[], selectedRowData: ITableRow<T>[]) => void;
43
- handleClearSelection: () => void;
44
38
  };
45
39
  export {};
@@ -1,10 +1,9 @@
1
1
  import { ref } from 'vue';
2
2
  import { OrderMethod } from '../types/enum.ts.js';
3
3
  export const useTTable = ()=>{
4
- const selectedRows = ref([]);
5
- const selectedIds = ref([]);
6
4
  const isLoading = ref(false);
7
5
  const isPagination = ref(false);
6
+ let callBack;
8
7
  const sort = ref({});
9
8
  const tableData = ref([]);
10
9
  const pagination = ref({
@@ -12,9 +11,6 @@ export const useTTable = ()=>{
12
11
  limit: 20,
13
12
  count: 0
14
13
  });
15
- let callBack;
16
- let rowKey = 'id';
17
- const getRowKey = (row)=>row[rowKey];
18
14
  // 更新数据
19
15
  const triggerApi = ()=>{
20
16
  isLoading.value = true;
@@ -34,10 +30,9 @@ export const useTTable = ()=>{
34
30
  isLoading.value = false;
35
31
  });
36
32
  };
37
- const initHook = (callBackFn, isShowPagination, key = 'id')=>{
33
+ const initHook = (callBackFn, isShowPagination)=>{
38
34
  callBack = callBackFn;
39
35
  isPagination.value = isShowPagination;
40
- rowKey = key;
41
36
  };
42
37
  // sortKey 为必传
43
38
  const handleSortChange = (config, { col })=>{
@@ -72,19 +67,6 @@ export const useTTable = ()=>{
72
67
  count: 0
73
68
  };
74
69
  };
75
- const handleSelectionChange = (_keys, selectedRowData)=>{
76
- const currentPageIds = tableData.value.map(getRowKey);
77
- const otherPageRows = selectedRows.value.filter((row)=>!currentPageIds.includes(getRowKey(row)));
78
- selectedRows.value = [
79
- ...otherPageRows,
80
- ...selectedRowData
81
- ];
82
- selectedIds.value = selectedRows.value.map(getRowKey);
83
- };
84
- const handleClearSelection = ()=>{
85
- selectedRows.value = [];
86
- selectedIds.value = [];
87
- };
88
70
  return {
89
71
  isLoading,
90
72
  initHook,
@@ -95,10 +77,6 @@ export const useTTable = ()=>{
95
77
  resetPagination,
96
78
  tableData,
97
79
  handlePageChange,
98
- handlePageSizeChange,
99
- selectedRows,
100
- selectedIds,
101
- handleSelectionChange,
102
- handleClearSelection
80
+ handlePageSizeChange
103
81
  };
104
82
  };
@@ -13,6 +13,4 @@ export declare const useToolHttp: (apiPrefix: string, spaceId?: Ref<string>) =>
13
13
  abort(): void;
14
14
  };
15
15
  getToolReferringAgents: (toolId: number) => Promise<import("@/types").IReferringAgent[]>;
16
- addToolFavorite: (id: number) => Promise<unknown>;
17
- removeToolFavorite: (id: number) => Promise<unknown>;
18
16
  };
@@ -86,25 +86,11 @@ export const useToolHttp = (apiPrefix, spaceId)=>{
86
86
  'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
87
87
  }
88
88
  }).then((data)=>data.map(transferReferringAgentApi2ReferringAgent));
89
- // 收藏 Tool
90
- const addToolFavorite = (id)=>fetch.post(`${apiPrefix}/tool/v1/tool/${id}/add_favorite/`, undefined, {
91
- headers: {
92
- 'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
93
- }
94
- });
95
- // 取消收藏 Tool
96
- const removeToolFavorite = (id)=>fetch.delete(`${apiPrefix}/tool/v1/tool/${id}/remove_favorite/`, undefined, {
97
- headers: {
98
- 'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
99
- }
100
- });
101
89
  return {
102
90
  deleteTool,
103
91
  restoreTool,
104
92
  getTools,
105
93
  getToolCount,
106
- getToolReferringAgents,
107
- addToolFavorite,
108
- removeToolFavorite
94
+ getToolReferringAgents
109
95
  };
110
96
  };
package/dist/hooks.d.ts CHANGED
@@ -7,6 +7,7 @@ export * from './hooks/use-member-http';
7
7
  export * from './hooks/use-t-table';
8
8
  export * from './hooks/use-ellipsis-tooltip';
9
9
  export * from './hooks/use-common-http';
10
+ export * from './hooks/use-display-name';
10
11
  export * from './hooks/use-loading-version';
11
12
  export * from './hooks/use-collection';
12
13
  export * from './hooks/use-scroll-load';
package/dist/hooks.ts.js CHANGED
@@ -7,6 +7,7 @@ export * from './hooks/use-member-http.ts.js';
7
7
  export * from './hooks/use-t-table.ts.js';
8
8
  export * from './hooks/use-ellipsis-tooltip.ts.js';
9
9
  export * from './hooks/use-common-http.ts.js';
10
+ export * from './hooks/use-display-name.ts.js';
10
11
  export * from './hooks/use-loading-version.ts.js';
11
12
  export * from './hooks/use-collection.ts.js';
12
13
  export * from './hooks/use-scroll-load.ts.js';
@@ -6,6 +6,8 @@ export interface IFetchConfig extends RequestInit {
6
6
  signal?: AbortSignal;
7
7
  withoutSpace?: boolean;
8
8
  noCheckPermission?: boolean;
9
+ noCheckBusiness?: boolean;
10
+ noTraceparent?: boolean;
9
11
  beforeRequest?: (data: RequestHookData) => RequestHookData | undefined;
10
12
  afterRequest?: (data: RequestHookData, response: Response) => void;
11
13
  }
@@ -109,8 +109,11 @@ const getFetchConfig = (method, payload, config)=>{
109
109
  const headers = {
110
110
  'X-Requested-With': 'fetch',
111
111
  'X-CSRFToken': getCookies('aidev_csrftoken') || '',
112
- traceparent: getTraceparent()
112
+ 'X-Tenant-Id': getCookies('bk_tenant_id') || ''
113
113
  };
114
+ if (!config.noTraceparent) {
115
+ headers.traceparent = getTraceparent();
116
+ }
114
117
  if (config.requestType !== 'formData') {
115
118
  headers['Content-Type'] = contentTypeMap[config.requestType] || 'application/json';
116
119
  }
@@ -35,8 +35,12 @@ const handleData = function() {
35
35
  const data = result.error || result;
36
36
  const code = data.code || response.code || -1;
37
37
  const message = data.message || response.statusText || '系统错误';
38
+ // 对应 HTTP 请求的状态码 200 到 299
38
39
  if (response.ok) {
39
- // 对应 HTTP 请求的状态码 200 到 299
40
+ // 如果不需要检查业务,直接返回数据
41
+ if (config.noCheckBusiness) {
42
+ return Promise.resolve(data);
43
+ }
40
44
  // 校验接口返回的数据,status 为 success 表示业务成功
41
45
  switch(code){
42
46
  // 接口请求成功
@@ -331,8 +331,7 @@ import { transferTool2ToolApi, transferToolApi2Tool } from './tool.ts.js';
331
331
  description: data.description,
332
332
  updated_by: data.updatedBy,
333
333
  created_by: data.createdBy,
334
- agent_version: data.agentVersion,
335
- group_type: data.groupType
334
+ agent_version: data.agentVersion
336
335
  });
337
336
  /**
338
337
  * ui转换为接口使用
@@ -72,8 +72,7 @@ import { transferBaseCountParam2BaseCountParamApi, transferIPaginationParam2IPag
72
72
  content: data.content,
73
73
  created_by: data.createdBy,
74
74
  created_at: data.createdAt,
75
- updated_by: data.updatedBy,
76
- group_type: data.groupType
75
+ updated_by: data.updatedBy
77
76
  });
78
77
  };
79
78
  /**
@@ -1,5 +1,5 @@
1
1
  import { ResourceStatus } from '@/enums';
2
- import type { IApprovalSettingValue, IApprovalSettingValueApi, IBaseCountParam, IBaseCountParamApi, IPaginationParam, IPaginationParamApi, IPaginationResponse, IPaginationResponseApi, IReferringAgent, IReferringAgentApi, IResourceCommon, IResourceCommonApi, IResourceCommonSearchParams, IResourceCommonSearchParamsApi, IResourceCount, IResourceCountApi, IResourceFormCommon, IResourceFormCommonApi, IResourceReference, IResourceReferenceApi, ISortParam, ISortParamApi, ITagTree, ITagTreeApi, ITagTreeNode, ITagTreeNodeApi, IVariable, IVariableApi } from '@/types/common';
2
+ import type { IBaseCountParam, IBaseCountParamApi, IPaginationParam, IPaginationParamApi, IPaginationResponse, IPaginationResponseApi, IReferringAgent, IReferringAgentApi, IResourceCommon, IResourceCommonApi, IResourceCommonSearchParams, IResourceCommonSearchParamsApi, IResourceCount, IResourceCountApi, IResourceFormCommon, IResourceFormCommonApi, IResourceReference, IResourceReferenceApi, ISortParam, ISortParamApi, ITagTree, ITagTreeApi, ITagTreeNode, ITagTreeNodeApi, IVariable, IVariableApi, IApprovalSettingValue, IApprovalSettingValueApi } from '@/types/common';
3
3
  /**
4
4
  * 接口转换为ui使用
5
5
  * @param data ITagsTreeApi
@@ -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
  /**
@@ -172,9 +172,7 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
172
172
  syncErrorMessage: data.sync_error_message,
173
173
  mcpType: data.mcp_type,
174
174
  detailUrl: data.detail_url,
175
- refCount: data.ref_count,
176
- favorite: data.favorite,
177
- favoriteCount: data.favorite_count
175
+ refCount: data.ref_count
178
176
  });
179
177
  };
180
178
  /**
@@ -205,9 +203,7 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
205
203
  server_config: data.serverConfig,
206
204
  sync_error_message: data.syncErrorMessage,
207
205
  mcp_type: data.mcpType,
208
- detail_url: data.detailUrl,
209
- favorite: data.favorite,
210
- favorite_count: data.favoriteCount
206
+ detail_url: data.detailUrl
211
207
  });
212
208
  };
213
209
  /**
@@ -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,
@@ -1,4 +1,4 @@
1
- import type { IResourceAuthorizedSpacesParam, IResourceAuthorizedSpacesParamApi, IResourcesRemoveApplication, IResourcesRevokeApplication, ISpace, ISpaceApi, IUsableSpace, IUsableSpaceApi, IUsableSpaceParam, IUsableSpaceParamApi } from '@/types/space';
1
+ import type { IResourceAuthorizedSpacesParam, IResourceAuthorizedSpacesParamApi, IResourcesRemoveApplication, ISpace, ISpaceApi, IUsableSpace, IUsableSpaceApi, IUsableSpaceParam, IUsableSpaceParamApi } from '@/types/space';
2
2
  /**
3
3
  * ui转换为接口
4
4
  * @param data IResourcesRemoveApplication
@@ -8,15 +8,6 @@ export declare const transferResourcesRemoveApplication2ResourcesRemoveApplicati
8
8
  resource_type: import("../../enums").Module;
9
9
  resource_id: number;
10
10
  };
11
- /**
12
- * ui转换为接口
13
- * @param data IResourcesRevokeApplication
14
- * @returns IResourcesRevokeApplicationApi
15
- */
16
- export declare const transferResourcesRevokeApplication2ResourcesRevokeApplicationApi: (n: IResourcesRevokeApplication) => {
17
- resource_type: import("../../enums").Module;
18
- resource_id: number;
19
- };
20
11
  /**
21
12
  * ui转换为接口
22
13
  * @param data IUsableSpaceParam
@@ -7,14 +7,6 @@ import { transferResourcePermissionApi2ResourcePermission } from './permission.t
7
7
  resource_type: n.resourceType,
8
8
  resource_id: n.resourceId
9
9
  });
10
- /**
11
- * ui转换为接口
12
- * @param data IResourcesRevokeApplication
13
- * @returns IResourcesRevokeApplicationApi
14
- */ export const transferResourcesRevokeApplication2ResourcesRevokeApplicationApi = (n)=>({
15
- resource_type: n.resourceType,
16
- resource_id: n.resourceId
17
- });
18
10
  /**
19
11
  * ui转换为接口
20
12
  * @param data IUsableSpaceParam
@@ -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转换为接口使用
@@ -0,0 +1,6 @@
1
+ function _arrayLikeToArray(r, a) {
2
+ (null == a || a > r.length) && (a = r.length);
3
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
4
+ return n;
5
+ }
6
+ module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -0,0 +1,4 @@
1
+ function _arrayWithHoles(r) {
2
+ if (Array.isArray(r)) return r;
3
+ }
4
+ module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -0,0 +1,5 @@
1
+ var arrayLikeToArray = require('./arrayLikeToArray.js');
2
+ function _arrayWithoutHoles(r) {
3
+ if (Array.isArray(r)) return arrayLikeToArray(r);
4
+ }
5
+ module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -0,0 +1,10 @@
1
+ var toPropertyKey = require('./toPropertyKey.js');
2
+ function _defineProperty(e, r, t) {
3
+ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
4
+ value: t,
5
+ enumerable: !0,
6
+ configurable: !0,
7
+ writable: !0
8
+ }) : e[r] = t, e;
9
+ }
10
+ module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -0,0 +1,6 @@
1
+ function _interopRequireDefault(e) {
2
+ return e && e.__esModule ? e : {
3
+ "default": e
4
+ };
5
+ }
6
+ module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -0,0 +1,4 @@
1
+ function _iterableToArray(r) {
2
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
3
+ }
4
+ module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -0,0 +1,28 @@
1
+ function _iterableToArrayLimit(r, l) {
2
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
3
+ if (null != t) {
4
+ var e,
5
+ n,
6
+ i,
7
+ u,
8
+ a = [],
9
+ f = !0,
10
+ o = !1;
11
+ try {
12
+ if (i = (t = t.call(r)).next, 0 === l) {
13
+ if (Object(t) !== t) return;
14
+ f = !1;
15
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
16
+ } catch (r) {
17
+ o = !0, n = r;
18
+ } finally {
19
+ try {
20
+ if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
21
+ } finally {
22
+ if (o) throw n;
23
+ }
24
+ }
25
+ return a;
26
+ }
27
+ }
28
+ module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -0,0 +1,4 @@
1
+ function _nonIterableRest() {
2
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3
+ }
4
+ module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -0,0 +1,4 @@
1
+ function _nonIterableSpread() {
2
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3
+ }
4
+ module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -0,0 +1,8 @@
1
+ var arrayWithHoles = require('./arrayWithHoles.js');
2
+ var iterableToArrayLimit = require('./iterableToArrayLimit.js');
3
+ var unsupportedIterableToArray = require('./unsupportedIterableToArray.js');
4
+ var nonIterableRest = require('./nonIterableRest.js');
5
+ function _slicedToArray(r, e) {
6
+ return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();
7
+ }
8
+ module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -0,0 +1,8 @@
1
+ var arrayWithoutHoles = require('./arrayWithoutHoles.js');
2
+ var iterableToArray = require('./iterableToArray.js');
3
+ var unsupportedIterableToArray = require('./unsupportedIterableToArray.js');
4
+ var nonIterableSpread = require('./nonIterableSpread.js');
5
+ function _toConsumableArray(r) {
6
+ return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread();
7
+ }
8
+ module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -0,0 +1,12 @@
1
+ var _typeof = require('./typeof.js')["default"];
2
+ function toPrimitive(t, r) {
3
+ if ("object" != _typeof(t) || !t) return t;
4
+ var e = t[Symbol.toPrimitive];
5
+ if (void 0 !== e) {
6
+ var i = e.call(t, r || "default");
7
+ if ("object" != _typeof(i)) return i;
8
+ throw new TypeError("@@toPrimitive must return a primitive value.");
9
+ }
10
+ return ("string" === r ? String : Number)(t);
11
+ }
12
+ module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -0,0 +1,7 @@
1
+ var _typeof = require('./typeof.js')["default"];
2
+ var toPrimitive = require('./toPrimitive.js');
3
+ function toPropertyKey(t) {
4
+ var i = toPrimitive(t, "string");
5
+ return "symbol" == _typeof(i) ? i : i + "";
6
+ }
7
+ module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -0,0 +1,10 @@
1
+ function _typeof(o) {
2
+ "@babel/helpers - typeof";
3
+
4
+ return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
5
+ return typeof o;
6
+ } : function (o) {
7
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
8
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
9
+ }
10
+ module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -0,0 +1,9 @@
1
+ var arrayLikeToArray = require('./arrayLikeToArray.js');
2
+ function _unsupportedIterableToArray(r, a) {
3
+ if (r) {
4
+ if ("string" == typeof r) return arrayLikeToArray(r, a);
5
+ var t = {}.toString.call(r).slice(8, -1);
6
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;
7
+ }
8
+ }
9
+ module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+ var isCallable = require('./is-callable.js');
3
+ var tryToString = require('./try-to-string.js');
4
+
5
+ var $TypeError = TypeError;
6
+
7
+ // `Assert: IsCallable(argument) is true`
8
+ module.exports = function (argument) {
9
+ if (isCallable(argument)) return argument;
10
+ throw new $TypeError(tryToString(argument) + ' is not a function');
11
+ };
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+ var isConstructor = require('./is-constructor.js');
3
+ var tryToString = require('./try-to-string.js');
4
+
5
+ var $TypeError = TypeError;
6
+
7
+ // `Assert: IsConstructor(argument) is true`
8
+ module.exports = function (argument) {
9
+ if (isConstructor(argument)) return argument;
10
+ throw new $TypeError(tryToString(argument) + ' is not a constructor');
11
+ };
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+ var isPossiblePrototype = require('./is-possible-prototype.js');
3
+
4
+ var $String = String;
5
+ var $TypeError = TypeError;
6
+
7
+ module.exports = function (argument) {
8
+ if (isPossiblePrototype(argument)) return argument;
9
+ throw new $TypeError("Can't set " + $String(argument) + ' as a prototype');
10
+ };