@blueking/ai-blueking 0.4.0 → 0.4.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.
package/README.md CHANGED
@@ -229,7 +229,7 @@ AI 小鲸支持渲染可点击的交互式 HTML 元素。以下是如何实现
229
229
 
230
230
  // 清空消息
231
231
  const handleClear = () => {
232
- messages.value = [];
232
+ messages.value.splice(0); // 必须使用这种方式清空消息, 不能使用 messages.value = [],否则 ChatHelper 无法感知消息数组的变化
233
233
  };
234
234
 
235
235
  // 发送消息
@@ -1,8 +1,21 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1
+ import { IShortCut } from '../types';
2
+ interface IProps {
3
+ shortcuts: IShortCut[];
4
+ }
5
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<IProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
6
  click: (...args: any[]) => void;
3
7
  shortcutClick: (...args: any[]) => void;
4
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
8
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<IProps>>> & {
5
9
  onClick?: ((...args: any[]) => any) | undefined;
6
10
  onShortcutClick?: ((...args: any[]) => any) | undefined;
7
11
  }, {}, {}>;
8
12
  export default _default;
13
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
+ type __VLS_TypePropsToOption<T> = {
15
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
16
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
17
+ } : {
18
+ type: import('vue').PropType<T[K]>;
19
+ required: true;
20
+ };
21
+ };
@@ -29,7 +29,7 @@ export declare const langData: {
29
29
  readonly translateShortcut: "You are a highly skilled AI trained in language translation. I would like you to translate the text delimited by triple quotes (Translation of Chinese into English and other languages into Chinese), ensuring that the translation is colloquial and authentic.\n Only give me the output and nothing else. Do not wrap responses in quotes\n '''\n {{ SELECTED_TEXT }}\n '''\n ";
30
30
  readonly explanationShortcut: "You are a professional explainer. Please provide a detailed explanation of \"{{ SELECTED_TEXT }}\". Your explanation should include: 1) basic meaning and conceptual explanation; 2) practical applications or use cases; 3) if it's a technical term, please provide relevant technical background; 4) where appropriate, provide specific examples to aid understanding. Use clear and accessible language to ensure non-experts can understand. If the word/phrase has multiple meanings, please list the main definitions. Keep your response concise and clear while ensuring completeness and accuracy of information.";
31
31
  readonly 翻译: "translate";
32
- readonly 解释: "explan";
32
+ readonly 解释: "explanation";
33
33
  readonly 'AI\u5C0F\u9CB8\u6B63\u5728\u56DE\u590D\uFF0C\u8BF7\u7ED3\u675F\u540E\u518D\u6E05\u7A7A': "AI BK GPT is executing, please clear after completion";
34
34
  };
35
35
  export declare const zhLangData: {