@blueking/chat-x 0.0.3-beta.3 → 0.0.3-beta.6

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 (36) hide show
  1. package/dist/ag-ui/types/constants.d.ts +2 -0
  2. package/dist/ag-ui/types/contents.d.ts +29 -4
  3. package/dist/ag-ui/types/messages.d.ts +3 -3
  4. package/dist/common/constants.d.ts +4 -0
  5. package/dist/components/ai-buttons/scroll-btn/scroll-btn.vue.d.ts +9 -4
  6. package/dist/components/ai-shortcut/shortcut-render/shortcut-render.vue.d.ts +4 -0
  7. package/dist/components/chat-content/activity-layout/activity-layout.vue.d.ts +29 -0
  8. package/dist/components/chat-content/flow-agent-content/detail-section.vue.d.ts +16 -0
  9. package/dist/components/chat-content/flow-agent-content/flow-agent-content.vue.d.ts +17 -0
  10. package/dist/components/chat-content/flow-agent-content/flow-agent-node-detail.vue.d.ts +22 -0
  11. package/dist/components/chat-content/flow-agent-content/simple-table.vue.d.ts +12 -0
  12. package/dist/components/chat-content/knowledge-rag-content/knowledge-rag-content.vue.d.ts +17 -0
  13. package/dist/components/chat-content/reference-doc-content/reference-doc-content.vue.d.ts +15 -0
  14. package/dist/components/chat-input/chat-input.vue.d.ts +5 -0
  15. package/dist/components/chat-message/message-container/message-container.vue.d.ts +24 -12340
  16. package/dist/components/execution-summary/execution-summary.vue.d.ts +13 -0
  17. package/dist/components/highlight-keyword/highlight-keyword.d.ts +15 -0
  18. package/dist/components/index.d.ts +6 -1
  19. package/dist/components/message-loading/message-loading.vue.d.ts +33 -0
  20. package/dist/components/selection-footer/selection-footer.vue.d.ts +19 -0
  21. package/dist/composables/index.d.ts +2 -0
  22. package/dist/composables/use-common.d.ts +23 -0
  23. package/dist/composables/use-custom-tab.d.ts +31 -0
  24. package/dist/composables/use-message-group.d.ts +37039 -0
  25. package/dist/icons/ai.d.ts +3 -0
  26. package/dist/icons/execution.d.ts +18 -0
  27. package/dist/icons/index.d.ts +1 -0
  28. package/dist/index.css +1 -1
  29. package/dist/index.js +10965 -9426
  30. package/dist/index.js.map +1 -1
  31. package/dist/lang/lang.d.ts +12 -1
  32. package/dist/types/custom.d.ts +60 -0
  33. package/dist/types/index.d.ts +1 -0
  34. package/dist/types/tool.d.ts +1 -1
  35. package/dist/utils/utils.d.ts +2 -1
  36. package/package.json +23 -9
@@ -32,6 +32,7 @@ export declare const lang: {
32
32
  readonly 复制失败: "Copy Failed";
33
33
  readonly 返回底部: "Return to bottom";
34
34
  readonly 停止生成: "Stop generating";
35
+ readonly 正在停止: "Stopping";
35
36
  readonly 耗时: "Duration";
36
37
  readonly 参数: "Parameters";
37
38
  readonly 描述: "Description";
@@ -62,6 +63,8 @@ export declare const lang: {
62
63
  readonly 参数值: "Param Value";
63
64
  readonly 名称: "Name";
64
65
  readonly 变量说明: "Description";
66
+ readonly 结构化输出: "Structured Output";
67
+ readonly 手动跳过: "Manual Skip";
65
68
  readonly 暂无数据: "No Data";
66
69
  readonly '\u8282\u70B9\u8F93\u51FA\u5185\u5BB9...': "Node output content...";
67
70
  readonly '\u8C03\u7528 MCP\uFF1A': "Call MCP:";
@@ -85,6 +88,14 @@ export declare const lang: {
85
88
  readonly 宽: "W";
86
89
  readonly 高: "H";
87
90
  readonly 上传图片: "Upload Image";
91
+ readonly '\u641C\u7D22 \u5173\u952E\u5B57': "Search keyword";
92
+ readonly 选择日期: "Select date";
93
+ readonly 在对话中定位: "Locate in Chat";
94
+ readonly 全选: "Select All";
95
+ readonly 确定: "Confirm";
88
96
  readonly '\u4E0A\u4F20\u56FE\u7247, \u6700\u591A\u652F\u6301\u4E0A\u4F20 3 \u4E2A, \u6700\u5927\u652F\u6301 2.4MB': "Upload Image, up to 3 images supported, max 2.4MB each";
97
+ readonly '\u4F60\u597D\uFF0C\u6211\u662F\u5C0F\u9CB8': "Hello, I am BlueKing AI Bot";
98
+ readonly 清空搜索: "Clear Search";
99
+ readonly 搜索结果为空: "Search Result is Empty";
89
100
  };
90
- export declare const t: (key: keyof typeof lang) => "Send" | "Stop" | "Ask AI" | "Copy" | "Share" | "Like" | "Unsatisfied" | "Delete" | "Quote" | "Regenerate" | "Submit" | "Cancel" | "Preview Content" | "Jump to Detail" | "Call Tool:" | "Calling..." | "Call Success" | "Call Failed" | "Tell us your thoughts" | "What makes you satisfied?" | "What makes you dissatisfied?" | "Return Content" | "Edit" | "Deep Thinking" | "Loading image..." | "Failed to load image" | "Thinking..." | "Thinking Completed" | "Thinking Failed" | "Copy Success" | "Copy Failed" | "Return to bottom" | "Stop generating" | "Duration" | "Parameters" | "Description" | "Execution Status" | "Running" | "Success" | "Failed" | "Pending" | "Details" | "Node Details" | "Node" | "Node Config" | "Node Output" | "Basic Info" | "Flow Template" | "Node Name" | "Step Name" | "Execution Plan" | "Optional" | "Failure Handler" | "Timeout Control" | "Always Use Latest Version" | "Yes" | "No" | "Input Params" | "Output Params" | "Param Name" | "Param Value" | "Name" | "No Data" | "Node output content..." | "Call MCP:" | "More" | "Searching" | "Search Completed" | "Upload File" | "Requesting..." | "Cancel satisfied" | "Cancel dissatisfied" | "Confirm delete this answer?" | "This operation cannot be undone. Please proceed with caution!" | "Preview" | "Zoom Out" | "Zoom In" | "Rotate" | "Download" | "Sorry, image loading failed. Please try reloading." | "Reset" | "Reload" | "W" | "H" | "Upload Image" | "Upload Image, up to 3 images supported, max 2.4MB each" | "发送" | "停止" | "问问小鲸" | "复制" | "分享" | "点赞" | "不满意" | "删除" | "引用" | "重新生成" | "提交" | "取消" | "预览内容" | "跳转详情" | "调用工具:" | "调用中" | "调用成功" | "调用失败" | "说出您的想法" | "什么原因让你满意?" | "什么原因让你不满意?" | "返回内容" | "编辑" | "深度思考" | "图片加载中..." | "图片加载失败" | "思考中" | "已思考完成" | "思考失败" | "复制成功" | "复制失败" | "返回底部" | "停止生成" | "耗时" | "参数" | "描述" | "执行情况" | "执行中" | "成功" | "失败" | "挂起" | "详情" | "节点详情" | "节点" | "节点配置" | "节点输出" | "基础信息" | "流程模板" | "节点名称" | "步骤名称" | "执行方案" | "是否可选" | "失败处理" | "超时控制" | "总是使用最新版本" | "是" | "否" | "输入参数" | "输出参数" | "参数名" | "参数值" | "名称" | "变量说明" | "暂无数据" | "节点输出内容..." | "调用 MCP:" | "更多" | "检索中" | "检索完成" | "上传文件" | "请求中..." | "取消满意" | "取消不满意" | "确认删除该回答?" | "删除操作无法撤回,请谨慎操作!" | "预览" | "缩小" | "放大" | "旋转" | "下载" | "抱歉,图片加载失败,可尝试重新加载" | "重置" | "重新加载" | "宽" | "高" | "上传图片" | "上传图片, 最多支持上传 3 个, 最大支持 2.4MB";
101
+ export declare const t: (key: keyof typeof lang) => "Send" | "Stop" | "Ask AI" | "Copy" | "Share" | "Like" | "Unsatisfied" | "Delete" | "Quote" | "Regenerate" | "Submit" | "Cancel" | "Preview Content" | "Jump to Detail" | "Call Tool:" | "Calling..." | "Call Success" | "Call Failed" | "Tell us your thoughts" | "What makes you satisfied?" | "What makes you dissatisfied?" | "Return Content" | "Edit" | "Deep Thinking" | "Loading image..." | "Failed to load image" | "Thinking..." | "Thinking Completed" | "Thinking Failed" | "Copy Success" | "Copy Failed" | "Return to bottom" | "Stop generating" | "Stopping" | "Duration" | "Parameters" | "Description" | "Execution Status" | "Running" | "Success" | "Failed" | "Pending" | "Details" | "Node Details" | "Node" | "Node Config" | "Node Output" | "Basic Info" | "Flow Template" | "Node Name" | "Step Name" | "Execution Plan" | "Optional" | "Failure Handler" | "Timeout Control" | "Always Use Latest Version" | "Yes" | "No" | "Input Params" | "Output Params" | "Param Name" | "Param Value" | "Name" | "Structured Output" | "Manual Skip" | "No Data" | "Node output content..." | "Call MCP:" | "More" | "Searching" | "Search Completed" | "Upload File" | "Requesting..." | "Cancel satisfied" | "Cancel dissatisfied" | "Confirm delete this answer?" | "This operation cannot be undone. Please proceed with caution!" | "Preview" | "Zoom Out" | "Zoom In" | "Rotate" | "Download" | "Sorry, image loading failed. Please try reloading." | "Reset" | "Reload" | "W" | "H" | "Upload Image" | "Search keyword" | "Select date" | "Locate in Chat" | "Select All" | "Confirm" | "Upload Image, up to 3 images supported, max 2.4MB each" | "Hello, I am BlueKing AI Bot" | "Clear Search" | "Search Result is Empty" | "发送" | "停止" | "问问小鲸" | "复制" | "分享" | "点赞" | "不满意" | "删除" | "引用" | "重新生成" | "提交" | "取消" | "预览内容" | "跳转详情" | "调用工具:" | "调用中" | "调用成功" | "调用失败" | "说出您的想法" | "什么原因让你满意?" | "什么原因让你不满意?" | "返回内容" | "编辑" | "深度思考" | "图片加载中..." | "图片加载失败" | "思考中" | "已思考完成" | "思考失败" | "复制成功" | "复制失败" | "返回底部" | "停止生成" | "正在停止" | "耗时" | "参数" | "描述" | "执行情况" | "执行中" | "成功" | "失败" | "挂起" | "详情" | "节点详情" | "节点" | "节点配置" | "节点输出" | "基础信息" | "流程模板" | "节点名称" | "步骤名称" | "执行方案" | "是否可选" | "失败处理" | "超时控制" | "总是使用最新版本" | "是" | "否" | "输入参数" | "输出参数" | "参数名" | "参数值" | "名称" | "变量说明" | "结构化输出" | "手动跳过" | "暂无数据" | "节点输出内容..." | "调用 MCP:" | "更多" | "检索中" | "检索完成" | "上传文件" | "请求中..." | "取消满意" | "取消不满意" | "确认删除该回答?" | "删除操作无法撤回,请谨慎操作!" | "预览" | "缩小" | "放大" | "旋转" | "下载" | "抱歉,图片加载失败,可尝试重新加载" | "重置" | "重新加载" | "宽" | "高" | "上传图片" | "搜索 关键字" | "选择日期" | "在对话中定位" | "全选" | "确定" | "上传图片, 最多支持上传 3 个, 最大支持 2.4MB" | "你好,我是小鲸" | "清空搜索" | "搜索结果为空";
@@ -0,0 +1,60 @@
1
+ import type { Component } from 'vue';
2
+ export type CustomBkFlowTab = CustomTab<CustomBkFlowTabData>;
3
+ export type CustomBkFlowTabData = CustomTabData<{
4
+ data?: Partial<NodeDetailData>;
5
+ loading?: boolean;
6
+ node_id?: string;
7
+ node_name?: string;
8
+ task_id?: number;
9
+ task_name?: string;
10
+ }>;
11
+ export type CustomTab<T extends CustomTabData<Record<string, unknown>>> = {
12
+ data?: T;
13
+ icon?: string;
14
+ label: string;
15
+ name: string;
16
+ };
17
+ export type CustomTabData<T extends Record<string, unknown>> = {
18
+ component?: Component;
19
+ props?: T;
20
+ };
21
+ export interface NodeDetailData {
22
+ inputs: Record<string, unknown>;
23
+ node_id: string;
24
+ task_id: number;
25
+ basic_info: {
26
+ auto_retry: {
27
+ enable: boolean;
28
+ interval: number;
29
+ times: number;
30
+ };
31
+ error_ignorable: boolean;
32
+ node_name: string;
33
+ optional: boolean;
34
+ retryable: boolean;
35
+ skippable: boolean;
36
+ stage_name: string;
37
+ template_name: string;
38
+ timeout_config: {
39
+ action: string;
40
+ enable: boolean;
41
+ seconds: number;
42
+ };
43
+ };
44
+ outputs: Array<{
45
+ key: string;
46
+ preset: boolean;
47
+ value: unknown;
48
+ }>;
49
+ plugin_output: Array<{
50
+ key: string;
51
+ name: string;
52
+ schema: {
53
+ description: string;
54
+ enum: unknown[];
55
+ properties?: Record<string, unknown>;
56
+ type: string;
57
+ };
58
+ type: string;
59
+ }>;
60
+ }
@@ -1,3 +1,4 @@
1
+ export * from './custom';
1
2
  export * from './editor';
2
3
  export * from './image';
3
4
  export * from './input';
@@ -4,7 +4,7 @@ export declare enum MessageToolsStatus {
4
4
  Disabled = "disabled",// 禁用
5
5
  Hidden = "hidden"
6
6
  }
7
- export type AITippyProps = Partial<Omit<TippyOptions, 'content' | 'getReferenceClientRect' | 'theme' | 'triggerTarget'>>;
7
+ export type AITippyProps = Partial<Pick<TippyOptions, 'appendTo' | 'zIndex'>>;
8
8
  export interface IToolBtn {
9
9
  description?: string;
10
10
  id: keyof typeof ToolIconsMap;
@@ -1,7 +1,8 @@
1
- export declare const getCookieByName: (name: string) => string | null | undefined;
1
+ export declare const getCookieByName: (name: string) => string | null;
2
2
  /**
3
3
  *
4
4
  * @param duration 耗时,单位:毫秒
5
5
  * @returns 返回格式化后的耗时字符串,如:1m 30s 500ms
6
6
  */
7
7
  export declare const formatDuration: (duration: number) => string;
8
+ export declare const generateUUID: () => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/chat-x",
3
- "version": "0.0.3-beta.3",
3
+ "version": "0.0.3-beta.6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -15,7 +15,14 @@
15
15
  "test": "vitest",
16
16
  "test:coverage": "vitest run --coverage",
17
17
  "wiki:dev": "vitepress dev wikis",
18
- "wiki:build": "vitepress build wikis"
18
+ "wiki:build": "vitepress build wikis",
19
+ "mcp:build:index": "tsx mcp/scripts/build-index.ts",
20
+ "mcp:build": "tsc -p mcp/tsconfig.json && pnpm mcp:build:index",
21
+ "mcp:start": "node mcp/dist/index.js",
22
+ "mcp:dev": "tsx mcp/src/index.ts"
23
+ },
24
+ "bin": {
25
+ "chat-x-mcp": "mcp/dist/index.js"
19
26
  },
20
27
  "module": "dist/index.js",
21
28
  "publishConfig": {
@@ -30,7 +37,9 @@
30
37
  },
31
38
  "types": "dist/index.d.ts",
32
39
  "files": [
33
- "dist"
40
+ "dist",
41
+ "mcp/dist",
42
+ "mcp/generated"
34
43
  ],
35
44
  "keywords": [],
36
45
  "author": "",
@@ -52,31 +61,36 @@
52
61
  },
53
62
  "devDependencies": {
54
63
  "@blueking/chat-helper": "workspace:*",
64
+ "@modelcontextprotocol/sdk": "^1.27.1",
55
65
  "@types/katex": "^0.16.7",
56
66
  "@types/lodash": "^4.17.23",
57
67
  "@types/markdown-it": "^14.1.2",
58
68
  "@vitejs/plugin-vue": "^6.0.1",
59
- "@vitest/coverage-v8": "4.0.18",
69
+ "@vitest/coverage-v8": "^4.0.18",
60
70
  "@vue/test-utils": "^2.4.6",
61
- "@vue/tsconfig": "^0.8.1",
71
+ "@vue/tsconfig": "^0.9.0",
62
72
  "bkui-vue": "latest",
63
73
  "echarts": "^6.0.0",
64
- "entities": "^7.0.0",
74
+ "entities": "^8.0.0",
65
75
  "github-markdown-css": "^5.8.1",
76
+ "glob": "^13.0.6",
77
+ "gray-matter": "^4.0.3",
66
78
  "happy-dom": "^20.3.7",
67
79
  "less": "^4.4.2",
68
80
  "linkify-it": "^5.0.0",
69
81
  "mdurl": "^2.0.0",
70
82
  "monaco-editor": "^0.55.1",
71
- "oxc-minify": "^0.112.0",
83
+ "oxc-minify": "^0.121.0",
72
84
  "punycode.js": "^2.3.1",
73
85
  "sass-embedded": "^1.93.3",
86
+ "tsx": "^4.21.0",
74
87
  "uc.micro": "^2.1.0",
75
- "vite": "npm:rolldown-vite@7.3.1",
88
+ "vite": "^8.0.2",
76
89
  "vite-bundle-analyzer": "^1.3.2",
77
90
  "vitepress": "2.0.0-alpha.16",
78
91
  "vitest": "^4.0.18",
79
92
  "vue-tippy": "^6.7.1",
80
- "vue-tsc": "^3.1.4"
93
+ "vue-tsc": "^3.1.4",
94
+ "zod": "^4.3.6"
81
95
  }
82
96
  }