@blueking/chat-x 0.0.45-beta.2 → 0.0.45-beta.4
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/dist/ag-ui/types/contents.d.ts +5 -0
- package/dist/ag-ui/types/interrupt.d.ts +35 -5
- package/dist/components/ai-buttons/tool-btn/tool-btn.vue.d.ts +11 -1
- package/dist/components/chat-content/flow-agent-content/flow-agent-content.vue.d.ts +4 -0
- package/dist/components/chat-content/flow-agent-content/flow-agent-node-detail.vue.d.ts +2 -0
- package/dist/components/chat-content/flow-agent-content/flow-agent-state.d.ts +34 -0
- package/dist/components/chat-content/flow-agent-content/use-flow-agent.d.ts +51 -0
- package/dist/components/chat-content/flow-agent-content/use-flow-node-actions.d.ts +32 -0
- package/dist/components/chat-content/flow-agent-content/use-flow-tab.d.ts +18 -0
- package/dist/components/chat-input/ai-slash-input/ai-skill-list/ai-skill-list.vue.d.ts +8 -0
- package/dist/components/chat-input/ai-slash-input/ai-slash-input.vue.d.ts +3 -1
- package/dist/components/chat-input/chat-input.vue.d.ts +3 -1
- package/dist/components/chat-message/activity-message/activity-message.vue.d.ts +4 -1
- package/dist/components/index.d.ts +4 -1
- package/dist/composables/index.d.ts +1 -0
- package/dist/composables/use-common.d.ts +1 -1
- package/dist/composables/use-custom-tab.d.ts +1 -1
- package/dist/composables/use-full-screen.d.ts +17 -0
- package/dist/composables/use-global-config.d.ts +3 -0
- package/dist/composables/use-message-group.d.ts +9 -0
- package/dist/icons/execution.d.ts +3 -0
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/screen.d.ts +6 -0
- package/dist/index.css +1 -1
- package/dist/index.js +4400 -4153
- package/dist/index.js.map +1 -1
- package/dist/lang/lang.d.ts +5 -1
- package/dist/mcp/generated/docs/activity-message.md +33 -9
- package/dist/mcp/generated/docs/chat-container.md +103 -20
- package/dist/mcp/generated/docs/file-upload-btn.md +1 -1
- package/dist/mcp/generated/docs/flow-agent-content.md +47 -7
- package/dist/mcp/generated/docs/interrupt-message.md +2 -2
- package/dist/mcp/generated/docs/interrupt.md +80 -8
- package/dist/mcp/generated/docs/markdown-content.md +23 -0
- package/dist/mcp/generated/docs/message-container.md +1 -1
- package/dist/mcp/generated/docs/message-render.md +3 -3
- package/dist/mcp/generated/docs/message-tools.md +3 -3
- package/dist/mcp/generated/docs/shortcut-render.md +5 -1
- package/dist/mcp/generated/docs/theme.md +48 -2
- package/dist/mcp/generated/docs/tool-approval-card.md +2 -2
- package/dist/mcp/generated/docs/tool-btn.md +37 -6
- package/dist/mcp/generated/docs/use-flow-node-actions.md +124 -0
- package/dist/mcp/generated/docs/use-full-screen.md +114 -0
- package/dist/mcp/generated/docs/use-global-config.md +20 -5
- package/dist/mcp/generated/index.json +36 -4
- package/dist/plugins/index.d.ts +1 -0
- package/dist/plugins/markdown-bk-inline-style.d.ts +20 -0
- package/dist/types/custom.d.ts +1 -0
- package/dist/types/editor.d.ts +6 -0
- package/dist/types/input.d.ts +1 -1
- package/dist/types/tool.d.ts +3 -3
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/utils.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "2.0.0",
|
|
3
|
-
"generatedAt": "2026-06-
|
|
3
|
+
"generatedAt": "2026-06-10T06:11:42.002Z",
|
|
4
4
|
"domains": {
|
|
5
5
|
"setup": {
|
|
6
6
|
"label": "对话搭建",
|
|
@@ -1539,12 +1539,44 @@
|
|
|
1539
1539
|
],
|
|
1540
1540
|
"docFile": "docs/use-custom-tab.md"
|
|
1541
1541
|
},
|
|
1542
|
+
{
|
|
1543
|
+
"name": "useFlowNodeActions",
|
|
1544
|
+
"slug": "use-flow-node-actions",
|
|
1545
|
+
"kind": "composable",
|
|
1546
|
+
"description": "聚合 FlowAgent 节点行尾操作(详情 / 重试 / 跳过)为声明式视图模型列表,显隐与 resume 回调收敛于此。",
|
|
1547
|
+
"aiSummary": "useFlowNodeActions 接收 onInterruptResume 与 openNodeDetail,返回 getNodeActions(task, node)。 失败节点按 retryable/skippable 展示重试/跳过,详情恒在末尾;点击 resume 时不传 interrupt。",
|
|
1548
|
+
"relatedComponents": [
|
|
1549
|
+
{
|
|
1550
|
+
"slug": "flow-agent-content",
|
|
1551
|
+
"relation": "FlowAgentContent 内部消费,驱动节点行尾按钮组渲染"
|
|
1552
|
+
}
|
|
1553
|
+
],
|
|
1554
|
+
"docFile": "docs/use-flow-node-actions.md"
|
|
1555
|
+
},
|
|
1556
|
+
{
|
|
1557
|
+
"name": "useFullScreen",
|
|
1558
|
+
"slug": "use-full-screen",
|
|
1559
|
+
"kind": "composable",
|
|
1560
|
+
"description": "基于浏览器原生 Fullscreen API 的全屏控制组合式函数,自动嗅探标准与 WebKit 前缀,状态与 ESC 退出保持同步。",
|
|
1561
|
+
"aiSummary": "useFullScreen 将目标元素(或 document.documentElement)以浏览器原生全屏展示。 模块加载时一次性嗅探 requestFullscreen / webkitRequestFullscreen,返回 isSupported、只读 isFullScreen 与 enter/exit/toggle。 监听 fullscreenchange 同步 ESC 等外部退出;ChatContainer 侧栏全屏按钮使用此 composable。",
|
|
1562
|
+
"relatedComponents": [
|
|
1563
|
+
{
|
|
1564
|
+
"slug": "chat-container",
|
|
1565
|
+
"relation": "侧栏 .ai-full-screen-wrapper 全屏切换"
|
|
1566
|
+
},
|
|
1567
|
+
{
|
|
1568
|
+
"slug": "tool-btn",
|
|
1569
|
+
"relation": "全屏按钮通过插槽渲染 FullScreenIcon"
|
|
1570
|
+
}
|
|
1571
|
+
],
|
|
1572
|
+
"docFile": "docs/use-full-screen.md"
|
|
1573
|
+
},
|
|
1542
1574
|
{
|
|
1543
1575
|
"name": "useGlobalConfig",
|
|
1544
1576
|
"slug": "use-global-config",
|
|
1545
1577
|
"kind": "composable",
|
|
1546
|
-
"description": "在聊天根容器与子组件之间通过 provide/inject
|
|
1547
|
-
"aiSummary": "useGlobalConfig 接收 GlobalConfig(含 supportUpload: ComputedRef<boolean>),以 GLOBAL_CONFIG_TOKEN provide 给后代; injectGlobalConfig 在子组件中取出配置,无 Provider 时返回 undefined。ChatContainer 在 setup 中调用 useGlobalConfig;
|
|
1578
|
+
"description": "在聊天根容器与子组件之间通过 provide/inject 共享全局展示配置(字号主题档位、是否支持上传等)。",
|
|
1579
|
+
"aiSummary": "useGlobalConfig 接收 GlobalConfig(含 size?: ComputedRef<AiSizeMode>、supportUpload: ComputedRef<boolean>),以 GLOBAL_CONFIG_TOKEN provide 给后代; injectGlobalConfig 在子组件中取出配置,无 Provider 时返回 undefined。ChatContainer 在 setup 中调用 useGlobalConfig 注入 size 与 supportUpload; 后代组件可通过 injectGlobalConfig 读取配置;字号主题主要通过根节点 data-ai-size 与 CSS 变量生效。",
|
|
1548
1580
|
"relatedComponents": [
|
|
1549
1581
|
{
|
|
1550
1582
|
"slug": "chat-container",
|
|
@@ -1801,7 +1833,7 @@
|
|
|
1801
1833
|
"slug": "theme",
|
|
1802
1834
|
"kind": "theme",
|
|
1803
1835
|
"description": "`@blueking/chat-x` 使用 SCSS 变量和 CSS 类来控制样式,支持通过覆盖变量或样式来自定义主题。",
|
|
1804
|
-
"aiSummary": "说明通过 SCSS 变量(尺寸、颜色、z-index
|
|
1836
|
+
"aiSummary": "说明通过 SCSS 变量(尺寸、颜色、z-index)、字号主题 CSS 变量(data-ai-size 切换 small/normal)与 CSS 类覆盖自定义主题。 ChatContainer.size 控制根节点 data-ai-size;浮层同步 document.body.dataset.aiSize。含渐变边框 mixin、骨架屏类 ai-skeleton-element 等。",
|
|
1805
1837
|
"relatedComponents": [
|
|
1806
1838
|
{
|
|
1807
1839
|
"slug": "chat-container",
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 蓝鲸行内富文本(安全样式)扩展。
|
|
3
|
+
*
|
|
4
|
+
* 语法(与 HTML 无关,不开启 markdown-it `html`):
|
|
5
|
+
*
|
|
6
|
+
* ::bk{ 属性列表 } 正文内容 :/bk::
|
|
7
|
+
*
|
|
8
|
+
* - 属性列表:写在 `{}` 内,使用 `;` 分隔,每项为 `键=值` 或 `键:值`(等号与冒号等价)。
|
|
9
|
+
* - 正文:支持行内 Markdown(加粗、链接、行内代码等),由 markdown-it 再次 tokenize。
|
|
10
|
+
* - 结束标记固定为 `:/bk::`,请勿在正文中使用该字面量。
|
|
11
|
+
*
|
|
12
|
+
* 支持的键(仅生成固定白名单 style):
|
|
13
|
+
* - `color` / `c`:颜色(#rgb / #rrggbb 或 CSS 命名色)
|
|
14
|
+
* - `background-color`:背景色,规则同 color
|
|
15
|
+
* - `font-size`:字号,如 `14px`(限制 1-72px)
|
|
16
|
+
* - `bold`:加粗
|
|
17
|
+
* - `italic`:斜体
|
|
18
|
+
*/
|
|
19
|
+
import type { PluginSimple } from '../markdown-it';
|
|
20
|
+
export declare const markdownItBkInlineStyle: PluginSimple;
|
package/dist/types/custom.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { Component } from 'vue';
|
|
|
2
2
|
export type CustomBkFlowTab = CustomTab<CustomBkFlowTabData>;
|
|
3
3
|
export type CustomBkFlowTabData = CustomTabData<{
|
|
4
4
|
data?: Partial<NodeDetailData>;
|
|
5
|
+
has_confidence?: boolean;
|
|
5
6
|
loading?: boolean;
|
|
6
7
|
node_id?: string;
|
|
7
8
|
node_name?: string;
|
package/dist/types/editor.d.ts
CHANGED
|
@@ -21,3 +21,9 @@ export declare const resourceTypeMap: {
|
|
|
21
21
|
};
|
|
22
22
|
export type ResourceType = keyof typeof resourceTypeMap;
|
|
23
23
|
export declare const noop: () => void;
|
|
24
|
+
export interface ISkillListItem {
|
|
25
|
+
description: string;
|
|
26
|
+
icon: string;
|
|
27
|
+
skill_code: string;
|
|
28
|
+
skill_name: string;
|
|
29
|
+
}
|
package/dist/types/input.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type tagSchema } from '../components/chat-input/ai-slash-input/constants';
|
|
2
1
|
import type { BinaryInputContent } from '../ag-ui/types/contents';
|
|
2
|
+
import type { tagSchema } from '../components/chat-input/ai-slash-input/constants';
|
|
3
3
|
import type { InferDoc } from '../edix';
|
|
4
4
|
export declare const MessageState: {
|
|
5
5
|
readonly ACTIVE: "active";
|
package/dist/types/tool.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ToolIconsMap } from '../icons/tools';
|
|
2
2
|
import type { TippyOptions } from 'vue-tippy';
|
|
3
3
|
export declare enum MessageToolsStatus {
|
|
4
4
|
Disabled = "disabled",// 禁用
|
|
5
5
|
Hidden = "hidden"
|
|
6
6
|
}
|
|
7
|
-
export type AITippyProps = Partial<Pick<TippyOptions, 'appendTo' | 'zIndex'>>;
|
|
7
|
+
export type AITippyProps = Partial<Pick<TippyOptions, 'appendTo' | 'placement' | 'zIndex'>>;
|
|
8
8
|
export interface IToolBtn {
|
|
9
9
|
description?: string;
|
|
10
|
-
id
|
|
10
|
+
id?: keyof typeof ToolIconsMap;
|
|
11
11
|
name?: string;
|
|
12
12
|
}
|
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/utils.d.ts
CHANGED