@blueking/chat-x 0.0.51-beta.4 → 0.0.51-beta.5
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/common/constants.d.ts +1 -0
- package/dist/components/chat-content/flow-agent-content/use-flow-node-actions.d.ts +1 -1
- package/dist/components/chat-input/chat-input.vue.d.ts +8 -6
- package/dist/composables/use-common.d.ts +9 -0
- package/dist/index.css +1 -1
- package/dist/index.js +2384 -2276
- package/dist/index.js.map +1 -1
- package/dist/lang/lang.d.ts +3 -1
- package/dist/mcp/generated/docs/activity-message.md +3 -3
- package/dist/mcp/generated/docs/chat-container.md +2 -0
- package/dist/mcp/generated/docs/chat-input.md +4 -2
- package/dist/mcp/generated/docs/execution-summary.md +23 -1
- package/dist/mcp/generated/docs/file-upload-btn.md +4 -3
- package/dist/mcp/generated/docs/flow-agent-content.md +12 -10
- package/dist/mcp/generated/docs/use-flow-node-actions.md +15 -8
- package/dist/mcp/generated/index.json +3 -3
- package/dist/utils/file.d.ts +11 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/upload-accept.d.ts +9 -0
- package/package.json +2 -2
|
@@ -30,6 +30,7 @@ export declare const CONST_USER_MESSAGE_TOOLS: IToolBtn[];
|
|
|
30
30
|
export declare const CONST_UPDATE_TOOLS: IToolBtn[];
|
|
31
31
|
export declare const MAX_UPLOAD_FILES = 9;
|
|
32
32
|
export declare const MAX_UPLOAD_FILE_SIZE: number;
|
|
33
|
+
export { ALLOWED_UPLOAD_EXTENSIONS, DEFAULT_UPLOAD_ACCEPT } from '../utils/upload-accept';
|
|
33
34
|
/**
|
|
34
35
|
* 关键词高亮类名
|
|
35
36
|
*/
|
|
@@ -30,7 +30,7 @@ export interface FlowNodeActionVM {
|
|
|
30
30
|
* 操作列表,组件层只需遍历渲染,显隐与点击行为均收敛于此,便于复用、单测与扩展。
|
|
31
31
|
*/
|
|
32
32
|
export declare const useFlowNodeActions: (options: {
|
|
33
|
-
/** 隐藏重试 / 跳过等交互式 resume
|
|
33
|
+
/** 隐藏重试 / 跳过等交互式 resume 操作(分享态、侧栏执行情况面板等只读场景,仅保留「详情」查看入口) */
|
|
34
34
|
hideResumeActions?: Ref<boolean>;
|
|
35
35
|
/** resume 回调(与第三方审批取消同一回调,按 payload.operation 分流) */
|
|
36
36
|
onInterruptResume: Ref<OnInterruptResume | undefined>;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { type Interrupt, type InterruptResume, type UserMessage, MessageContentType, MessageStatus } from '../../ag-ui/types';
|
|
2
2
|
import { type AITippyProps, type IAiSlashMenuItem, type ISkillListItem, type Shortcut, type TagSchema, type UploadFile, UploadStatus } from '../../types';
|
|
3
3
|
import type { IModelOption } from './model-selector';
|
|
4
|
-
export type ChatInputUploadResult = {
|
|
5
|
-
download_url?: string;
|
|
6
|
-
error?: string;
|
|
7
|
-
id?: string;
|
|
8
|
-
status?: 'failed' | 'success';
|
|
9
|
-
};
|
|
10
4
|
export type ChatInputEmits = {
|
|
11
5
|
(e: 'selectShortcut', shortcut: Shortcut): void;
|
|
12
6
|
(e: 'deleteShortcut'): void;
|
|
@@ -14,6 +8,7 @@ export type ChatInputEmits = {
|
|
|
14
8
|
(e: 'modelChange', model: IModelOption): void;
|
|
15
9
|
};
|
|
16
10
|
export type ChatInputProps = {
|
|
11
|
+
accept?: string;
|
|
17
12
|
defaultUploadFiles?: UploadFile[];
|
|
18
13
|
inputMaxHeight?: number;
|
|
19
14
|
messageStatus?: MessageStatus;
|
|
@@ -35,6 +30,12 @@ export type ChatInputProps = {
|
|
|
35
30
|
supportUpload?: boolean;
|
|
36
31
|
tippyOptions?: AITippyProps;
|
|
37
32
|
};
|
|
33
|
+
export type ChatInputUploadResult = {
|
|
34
|
+
download_url?: string;
|
|
35
|
+
error?: string;
|
|
36
|
+
id?: string;
|
|
37
|
+
status?: 'failed' | 'success';
|
|
38
|
+
};
|
|
38
39
|
type __VLS_Props = ChatInputProps;
|
|
39
40
|
type __VLS_ModelProps = {
|
|
40
41
|
'cite'?: string;
|
|
@@ -122,6 +123,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
122
123
|
"onUpdate:cite"?: ((value: string) => any) | undefined;
|
|
123
124
|
"onUpdate:selectedModel"?: ((value: string | undefined) => any) | undefined;
|
|
124
125
|
}>, {
|
|
126
|
+
accept: string;
|
|
125
127
|
prompts: string[];
|
|
126
128
|
skills: ISkillListItem[];
|
|
127
129
|
resources: IAiSlashMenuItem[];
|
|
@@ -7,6 +7,11 @@ import type { AITippyProps } from '../types';
|
|
|
7
7
|
export declare const KEYWORD_TOKEN: unique symbol;
|
|
8
8
|
export declare const RENDER_MODE_TOKEN: unique symbol;
|
|
9
9
|
export declare const COMMON_TIPPY_OPTIONS_TOKEN: unique symbol;
|
|
10
|
+
/**
|
|
11
|
+
* 侧栏「执行情况」面板上下文 token。
|
|
12
|
+
* 面板与对话流复用同一套消息渲染链路,内容组件据此按面板场景只读呈现。
|
|
13
|
+
*/
|
|
14
|
+
export declare const EXECUTION_PANEL_TOKEN: unique symbol;
|
|
10
15
|
export declare const useKeywordProvider: () => {
|
|
11
16
|
keyword: import("vue").ShallowRef<string, string>;
|
|
12
17
|
};
|
|
@@ -25,6 +30,10 @@ export declare const useCommonTippyInject: () => ComputedRef<Partial<Pick<Partia
|
|
|
25
30
|
triggerTarget: import("vue-tippy").TippyTarget;
|
|
26
31
|
getReferenceClientRect: null | (() => DOMRect & any);
|
|
27
32
|
}>, "placement" | "zIndex" | "appendTo">>> | undefined;
|
|
33
|
+
/** 侧栏「执行情况」面板内渲染消息时调用;面板身份在组件树中恒定,无需响应式 */
|
|
34
|
+
export declare const useExecutionPanelProvider: () => void;
|
|
35
|
+
/** 是否处于侧栏「执行情况」面板内;缺省 false,即对话流内渲染 */
|
|
36
|
+
export declare const useExecutionPanelInject: () => boolean;
|
|
28
37
|
export declare const useKeywordMatch: (getSearchTexts: () => (string | undefined)[]) => {
|
|
29
38
|
keywordMatched: ComputedRef<boolean | null>;
|
|
30
39
|
keyword: ComputedRef<string> | undefined;
|