@farris/x-ui 0.1.1 → 0.1.2
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/bubble/src/components/bubble-think/bubble-think.props.d.ts +1 -1
- package/bubble/src/composition/types.d.ts +10 -0
- package/bubble/src/composition/use-widget-content.d.ts +7 -1
- package/carousel/src/components/carousel-item.component.d.ts +1 -1
- package/farris.x-ui.esm.js +1911 -1847
- package/farris.x-ui.umd.cjs +46 -46
- package/hitl-question/src/hitl-question.component.d.ts +11 -0
- package/index.css +1 -1
- package/package.json +1 -1
- package/started-todo/src/started-todo.component.d.ts +27 -0
- package/started-todo/src/started-todo.props.d.ts +18 -0
- package/todo/src/composition/type.d.ts +8 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExtractPropTypes, PropType } from '../../../../../vue';
|
|
2
2
|
import { ThinkContent } from '../../../../../../../composition/types';
|
|
3
|
-
import { OutputMode } from '
|
|
3
|
+
import { OutputMode } from '../../../../../../../..';
|
|
4
4
|
|
|
5
5
|
export declare const bubbleThinkProps: {
|
|
6
6
|
/** 思考内容 */
|
|
@@ -117,6 +117,16 @@ export interface ThoughtChainContent {
|
|
|
117
117
|
* 用于 `Todo` 规划标题:`message` 仅为文案,与 `taskList` 根任务状态无关,避免 `NotStart` 被画成「未完成任务」。
|
|
118
118
|
*/
|
|
119
119
|
showHeaderStatusIcon?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* 待办列表整体状态:由网关 `agent/todo-list.content.listStatus` 透传。
|
|
122
|
+
* `completed` 时 `FXStartedTodo` 走「整体完成」分支:header 圆形 icon 换为对勾、
|
|
123
|
+
* 标题后追加「已完成 (N/N)」chip,根节点加 `is-completed` 类(不自动收起)。
|
|
124
|
+
*/
|
|
125
|
+
listStatus?: 'active' | 'completed';
|
|
126
|
+
/** 已完成项数(用于完成 chip 文案,可由 todoList 自动计算时不必显式传) */
|
|
127
|
+
completedCount?: number;
|
|
128
|
+
/** 总项数(同上,未显式传时回退到 `todoList.length`) */
|
|
129
|
+
totalCount?: number;
|
|
120
130
|
}
|
|
121
131
|
/** 思考过程 */
|
|
122
132
|
export interface ThinkContent {
|
|
@@ -32,9 +32,15 @@
|
|
|
32
32
|
* - `parseAssistantWidget`: 解析 widget 代码块为 JSON 对象
|
|
33
33
|
* - `getWidgetImplOptions`: 从 widget 数据提取 renderer.widgetImplOptions
|
|
34
34
|
*/
|
|
35
|
+
/**
|
|
36
|
+
* 判断文本是否为完整的 widget 代码块
|
|
37
|
+
* 用于区分流式过程中的 pending / complete 状态:单纯 `endsWith('```')` 会把
|
|
38
|
+
* 仅有一个开围栏 `` ``` `` 的中间态误判为完整 widget。
|
|
39
|
+
*/
|
|
40
|
+
export declare function isWidgetBlockComplete(text: string): boolean;
|
|
35
41
|
/**
|
|
36
42
|
* 判断文本是否为 widget 代码块
|
|
37
|
-
*
|
|
43
|
+
* 支持标准格式、不完整格式(流式渲染中途被截断),以及流式起步时仅有围栏前缀的情况
|
|
38
44
|
*/
|
|
39
45
|
export declare function isWidgetBlock(text: string): boolean;
|
|
40
46
|
/**
|
|
@@ -51,9 +51,9 @@ declare const _default: import('../../../../vue').DefineComponent<import('../../
|
|
|
51
51
|
}>> & Readonly<{
|
|
52
52
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
53
53
|
}>, {
|
|
54
|
+
active: boolean;
|
|
54
55
|
classNames: Record<import('../../../../../..').CarouselAppearanceType, string | string[] | Record<string, boolean>>;
|
|
55
56
|
styles: Record<import('../../../../../..').CarouselAppearanceType, import('../../../../vue').CSSProperties>;
|
|
56
|
-
active: boolean;
|
|
57
57
|
item: import('../../../../../..').CarouselItemType;
|
|
58
58
|
showInfo: boolean;
|
|
59
59
|
index: number;
|