@farris/x-ui 0.0.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.
Files changed (140) hide show
  1. package/app-preview/index.d.ts +8 -0
  2. package/app-preview/src/app-preview.component.d.ts +22 -0
  3. package/app-preview/src/app-preview.props.d.ts +14 -0
  4. package/app-preview/src/types.d.ts +37 -0
  5. package/attachment-preview/index.d.ts +8 -0
  6. package/attachment-preview/src/attachment-preview.component.d.ts +20 -0
  7. package/attachment-preview/src/attachment-preview.props.d.ts +13 -0
  8. package/attachment-preview/src/types.d.ts +27 -0
  9. package/bubble/index.d.ts +10 -0
  10. package/bubble/src/bubble.component.d.ts +119 -0
  11. package/bubble/src/bubble.props.d.ts +79 -0
  12. package/bubble/src/components/action/bubble-action.component.d.ts +11 -0
  13. package/bubble/src/components/action/bubble-action.props.d.ts +15 -0
  14. package/bubble/src/components/attachment/bubble-attachment.component.d.ts +16 -0
  15. package/bubble/src/components/attachment/bubble-attachment.props.d.ts +18 -0
  16. package/bubble/src/components/bubble-think/bubble-think.component.d.ts +10 -0
  17. package/bubble/src/components/bubble-think/bubble-think.props.d.ts +16 -0
  18. package/bubble/src/components/bubble-thought-chain/bubble-thought-chain.component.d.ts +6 -0
  19. package/bubble/src/components/bubble-thought-chain/bubble-thought-chain.props.d.ts +9 -0
  20. package/bubble/src/components/embedded-content/file/file-embedded-content.component.d.ts +16 -0
  21. package/bubble/src/components/embedded-content/file/file-embedded-content.props.d.ts +26 -0
  22. package/bubble/src/components/embedded-content/page/page-embedded-content.component.d.ts +13 -0
  23. package/bubble/src/components/embedded-content/page/page-embedded-content.props.d.ts +20 -0
  24. package/bubble/src/components/header/content-header.component.d.ts +6 -0
  25. package/bubble/src/components/header/sender-header.component.d.ts +6 -0
  26. package/bubble/src/components/text-content/text-content.component.d.ts +20 -0
  27. package/bubble/src/components/text-content/text-content.props.d.ts +32 -0
  28. package/bubble/src/composition/types.d.ts +153 -0
  29. package/bubble/src/composition/use-attachment.d.ts +5 -0
  30. package/bubble/src/composition/use-embedded-content.d.ts +12 -0
  31. package/bubble/src/composition/use-widget-content.d.ts +47 -0
  32. package/bubble/test/bubble.spec.d.ts +1 -0
  33. package/carousel/index.d.ts +10 -0
  34. package/carousel/src/carousel.component.d.ts +169 -0
  35. package/carousel/src/carousel.props.d.ts +94 -0
  36. package/carousel/src/components/carousel-item.component.d.ts +61 -0
  37. package/carousel/src/components/carousel-item.props.d.ts +35 -0
  38. package/carousel/src/composition/type.d.ts +27 -0
  39. package/carousel/src/composition/use-carousel.d.ts +23 -0
  40. package/carousel/test/carousel.spec.d.ts +1 -0
  41. package/chat-preview/index.d.ts +13 -0
  42. package/chat-preview/src/agent-workbench-sdk.d.ts +61 -0
  43. package/chat-preview/src/chat-preview.component.d.ts +34 -0
  44. package/chat-preview/src/chat-preview.props.d.ts +19 -0
  45. package/chat-preview/src/preview-bridge-protocol.d.ts +22 -0
  46. package/chat-preview/src/preview-chrome-sdk.d.ts +28 -0
  47. package/chat-preview/src/preview-iframe-sdk.d.ts +6 -0
  48. package/coding/index.d.ts +8 -0
  49. package/coding/src/coding.component.d.ts +12 -0
  50. package/coding/src/coding.props.d.ts +10 -0
  51. package/coding/src/types.d.ts +23 -0
  52. package/common/index.d.ts +7 -0
  53. package/common/src/runtime-attachment-download.d.ts +16 -0
  54. package/common/src/types.d.ts +2 -0
  55. package/common/src/use-appearance.d.ts +14 -0
  56. package/common/src/use-render.d.ts +15 -0
  57. package/common/src/use-sequential-streaming.d.ts +19 -0
  58. package/common/src/use-streaming-output.d.ts +18 -0
  59. package/common/src/use-timer.d.ts +7 -0
  60. package/components.d.ts +40 -0
  61. package/confirm-dialog/index.d.ts +7 -0
  62. package/confirm-dialog/src/confirm-dialog.component.d.ts +38 -0
  63. package/confirm-dialog/src/confirm-dialog.props.d.ts +33 -0
  64. package/dynamic-component/index.d.ts +7 -0
  65. package/dynamic-component/src/composition/dynamic-component-registry.d.ts +9 -0
  66. package/dynamic-component/src/composition/types.d.ts +18 -0
  67. package/dynamic-component/src/composition/use-dynamic-component-parser.d.ts +14 -0
  68. package/dynamic-component/src/dynamic-component.component.d.ts +15 -0
  69. package/enterprise-cloud/index.d.ts +16 -0
  70. package/enterprise-cloud/src/agent-thinking.component.d.ts +15 -0
  71. package/enterprise-cloud/src/attachment-file.component.d.ts +15 -0
  72. package/enterprise-cloud/src/error-reminder.component.d.ts +15 -0
  73. package/enterprise-cloud/src/hitl-question.component.d.ts +43 -0
  74. package/enterprise-cloud/src/input-recommend.component.d.ts +25 -0
  75. package/enterprise-cloud/src/link-card.component.d.ts +15 -0
  76. package/enterprise-cloud/src/reference-sources.component.d.ts +15 -0
  77. package/enterprise-cloud/src/types.d.ts +155 -0
  78. package/enterprise-cloud/src/unknown-enterprise.component.d.ts +15 -0
  79. package/enterprise-cloud/src/user-auth.component.d.ts +25 -0
  80. package/farris.x-ui.esm.js +13185 -0
  81. package/farris.x-ui.umd.cjs +108 -0
  82. package/file-operation/index.d.ts +8 -0
  83. package/file-operation/src/file-operation.component.d.ts +12 -0
  84. package/file-operation/src/file-operation.props.d.ts +10 -0
  85. package/file-operation/src/types.d.ts +30 -0
  86. package/generate-process/index.d.ts +7 -0
  87. package/generate-process/src/composition/type.d.ts +1 -0
  88. package/generate-process/src/generate-process.component.d.ts +41 -0
  89. package/generate-process/src/generate-process.props.d.ts +47 -0
  90. package/history/index.d.ts +7 -0
  91. package/history/src/composition/type.d.ts +8 -0
  92. package/history/src/history.component.d.ts +15 -0
  93. package/history/src/history.props.d.ts +14 -0
  94. package/index.css +1 -0
  95. package/index.d.ts +8 -0
  96. package/markdown/index.d.ts +8 -0
  97. package/markdown/src/markdown.component.d.ts +12 -0
  98. package/markdown/src/markdown.props.d.ts +10 -0
  99. package/markdown/src/types.d.ts +8 -0
  100. package/markdown-preview/index.d.ts +7 -0
  101. package/markdown-preview/src/markdown-preview.component.d.ts +9 -0
  102. package/markdown-preview/src/markdown-preview.props.d.ts +9 -0
  103. package/package.json +19 -0
  104. package/prompts/index.d.ts +9 -0
  105. package/prompts/src/components/prompt.component.d.ts +131 -0
  106. package/prompts/src/components/prompt.props.d.ts +79 -0
  107. package/prompts/src/composition/type.d.ts +34 -0
  108. package/prompts/src/prompts.component.d.ts +46 -0
  109. package/prompts/src/prompts.props.d.ts +61 -0
  110. package/started-todo/index.d.ts +8 -0
  111. package/started-todo/src/started-todo.component.d.ts +108 -0
  112. package/started-todo/src/started-todo.props.d.ts +54 -0
  113. package/started-todo/src/types.d.ts +9 -0
  114. package/suggestion/index.d.ts +7 -0
  115. package/suggestion/src/composition/type.d.ts +6 -0
  116. package/suggestion/src/suggestion.component.d.ts +37 -0
  117. package/suggestion/src/suggestion.props.d.ts +34 -0
  118. package/todo/index.d.ts +12 -0
  119. package/todo/src/components/todo-list-item-view.component.d.ts +112 -0
  120. package/todo/src/components/todo-list-item-view.props.d.ts +57 -0
  121. package/todo/src/components/todo-list-view.d.ts +17 -0
  122. package/todo/src/components/todo-list-view.props.d.ts +11 -0
  123. package/todo/src/composition/status-icon.d.ts +6 -0
  124. package/todo/src/composition/type.d.ts +32 -0
  125. package/todo/src/todo.component.d.ts +41 -0
  126. package/todo/src/todo.props.d.ts +24 -0
  127. package/tool-use/index.d.ts +6 -0
  128. package/tool-use/src/tool-use.component.d.ts +19 -0
  129. package/welcome/index.d.ts +7 -0
  130. package/welcome/src/composition/type.d.ts +1 -0
  131. package/welcome/src/welcome.component.d.ts +35 -0
  132. package/welcome/src/welcome.props.d.ts +30 -0
  133. package/welcome/test/welcome.spec.d.ts +1 -0
  134. package/widget-container/index.d.ts +8 -0
  135. package/widget-container/src/composition/class/stage.class.d.ts +10 -0
  136. package/widget-container/src/composition/types.d.ts +24 -0
  137. package/widget-container/src/composition/use-deep-equal.d.ts +3 -0
  138. package/widget-container/src/composition/use-load-widget.d.ts +5 -0
  139. package/widget-container/src/widget-container.component.d.ts +28 -0
  140. package/widget-container/src/widget-container.props.d.ts +35 -0
@@ -0,0 +1,43 @@
1
+ import { PropType } from 'vue';
2
+ import { MessageContentHitlQuestion } from './types';
3
+
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ content: {
6
+ type: PropType<MessageContentHitlQuestion>;
7
+ required: true;
8
+ };
9
+ disabled: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
13
+ onSubmitAnswers: {
14
+ type: PropType<(answers: Array<{
15
+ id: string;
16
+ answer: unknown;
17
+ }>) => void>;
18
+ default: undefined;
19
+ };
20
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
21
+ content: {
22
+ type: PropType<MessageContentHitlQuestion>;
23
+ required: true;
24
+ };
25
+ disabled: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ onSubmitAnswers: {
30
+ type: PropType<(answers: Array<{
31
+ id: string;
32
+ answer: unknown;
33
+ }>) => void>;
34
+ default: undefined;
35
+ };
36
+ }>> & Readonly<{}>, {
37
+ disabled: boolean;
38
+ onSubmitAnswers: (answers: Array<{
39
+ id: string;
40
+ answer: unknown;
41
+ }>) => void;
42
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
43
+ export default _default;
@@ -0,0 +1,25 @@
1
+ import { PropType } from 'vue';
2
+ import { MessageContentInputRecommend } from './types';
3
+
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ content: {
6
+ type: PropType<MessageContentInputRecommend>;
7
+ required: true;
8
+ };
9
+ onPick: {
10
+ type: PropType<(text: string) => void>;
11
+ default: undefined;
12
+ };
13
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
14
+ content: {
15
+ type: PropType<MessageContentInputRecommend>;
16
+ required: true;
17
+ };
18
+ onPick: {
19
+ type: PropType<(text: string) => void>;
20
+ default: undefined;
21
+ };
22
+ }>> & Readonly<{}>, {
23
+ onPick: (text: string) => void;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
25
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { PropType } from 'vue';
2
+ import { MessageContentLinkCard } from './types';
3
+
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ content: {
6
+ type: PropType<MessageContentLinkCard>;
7
+ required: true;
8
+ };
9
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
+ content: {
11
+ type: PropType<MessageContentLinkCard>;
12
+ required: true;
13
+ };
14
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
15
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { PropType } from 'vue';
2
+ import { MessageContentReferenceSources } from './types';
3
+
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ content: {
6
+ type: PropType<MessageContentReferenceSources>;
7
+ required: true;
8
+ };
9
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
+ content: {
11
+ type: PropType<MessageContentReferenceSources>;
12
+ required: true;
13
+ };
14
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
15
+ export default _default;
@@ -0,0 +1,155 @@
1
+ /**
2
+ * 企业云「智能消息标准」相关 content 变体(阶段 A)。
3
+ * standardType:可选,便于与未来 wire 上的 type 枚举对账。
4
+ */
5
+ export interface MessageContentAgentThinking {
6
+ type: 'AgentThinking';
7
+ standardType?: 'agent/thinking';
8
+ streamStatus?: 'start' | 'continue' | 'end';
9
+ text: string;
10
+ sources?: string[];
11
+ }
12
+ export interface ReferenceSourceItem {
13
+ title: string;
14
+ url: string;
15
+ }
16
+ export interface MessageContentReferenceSources {
17
+ type: 'ReferenceSources';
18
+ standardType?: 'agent/reference' | string;
19
+ items: ReferenceSourceItem[];
20
+ }
21
+ /** 当前仅支持 Workbench 侧冻结的 {@link AgentWorkbenchSDK};后续可扩展其它 sdk 名 */
22
+ export type InputRecommendSdkName = 'AgentWorkbenchSDK';
23
+ /**
24
+ * 网关 `agent/input-recommend`(及兼容 `agent/suggestions`)可在 content 中携带:
25
+ * 点击某一推荐 chip 时调用的 SDK 方法及参数(见 `pickActionDefault` / `pickActions`)。
26
+ */
27
+ export interface InputRecommendPickAction {
28
+ sdk: InputRecommendSdkName;
29
+ /**
30
+ * `AgentWorkbenchSDK` 上的方法名,如 `sendChatMessage`、`showPreview`、`postAssistantMessage`。
31
+ * 运行时会通过 `invokeAgentWorkbenchSdkApi` 派发。
32
+ */
33
+ api: string;
34
+ /**
35
+ * 传给该方法的参数列表(按展开调用)。任意嵌套结构中的字符串若包含 `{{suggestionText}}` 会替换为当前 chip 文案。
36
+ */
37
+ params?: unknown[];
38
+ }
39
+ export interface MessageContentInputRecommend {
40
+ type: 'InputRecommend';
41
+ standardType?: 'agent/suggestions' | 'agent/input-recommend' | string;
42
+ title?: string;
43
+ suggestions: string[];
44
+ /**
45
+ * 与 `suggestions` 同序;某项为空则回退到 `pickActionDefault`。
46
+ * 若整卡均未配置,点击行为等价于 `sendChatMessage(该 chip 文案)`。
47
+ */
48
+ pickActions?: Array<InputRecommendPickAction | null | undefined>;
49
+ /**
50
+ * 整卡默认点击动作。网关也可只传 `pickAction`(与该项同义,由归一化层写入)。
51
+ */
52
+ pickActionDefault?: InputRecommendPickAction;
53
+ }
54
+ export interface UserAuthOption {
55
+ optionId: string;
56
+ name: string;
57
+ message?: string;
58
+ }
59
+ export interface MessageContentUserAuth {
60
+ type: 'UserAuth';
61
+ standardType?: 'agent/request-run' | string;
62
+ /** 《智能消息1.0》§5.3.3 content.requestId */
63
+ requestId?: string;
64
+ description: string;
65
+ options: UserAuthOption[];
66
+ }
67
+ export interface MessageContentErrorReminder {
68
+ type: 'ErrorReminder';
69
+ standardType?: 'agent/error' | string;
70
+ errorLevel: 0 | 1 | 2;
71
+ errorText: string;
72
+ errorLink?: string;
73
+ }
74
+ export interface LinkRelatedItem {
75
+ title: string;
76
+ url: string;
77
+ poster?: string;
78
+ }
79
+ export interface MessageContentLinkCard {
80
+ type: 'LinkCard';
81
+ standardType?: 'card/url' | string;
82
+ poster?: string;
83
+ title: string;
84
+ subtitle?: string;
85
+ url: string;
86
+ relatedLinks?: LinkRelatedItem[];
87
+ }
88
+ export interface MessageContentUnknownEnterprise {
89
+ type: 'UnknownEnterprise';
90
+ standardType?: 'unknown' | string;
91
+ /** Gateway body.type,阶段 C 登记、便于与标准对账 */
92
+ wireType?: string;
93
+ hint?: string;
94
+ }
95
+ /** 企业云「文件」类资源消息(附件):对应文档中 category/name/size/media */
96
+ export interface MessageContentAttachmentFile {
97
+ type: 'AttachmentFile';
98
+ standardType?: 'resource/file' | string;
99
+ category: string;
100
+ name: string;
101
+ size: number;
102
+ /** 云盘或下载路径 id / URL,演示可写占位 */
103
+ media: string;
104
+ }
105
+ /** 网关 `agent/tool-use`:一次工具调用(名称 / 调用描述或参数 / 执行结果) */
106
+ export interface MessageContentToolUse {
107
+ type: 'ToolUse';
108
+ standardType?: 'agent/tool-use' | string;
109
+ /** 与下行 `agent/tool-result.content.toolUseId` 关联;合泡块 id 优先以此为准 */
110
+ toolUseId?: string;
111
+ toolName: string;
112
+ /** 网关下发的调用描述或入参(多为可读字符串) */
113
+ toolDescription: string;
114
+ /** 工具输出(常为 JSON 字符串);可与 tool-use 分帧,由 applyGatewayEnvelope 合并写入 */
115
+ result: string;
116
+ /**
117
+ * 是否已收到 `agent/tool-result`(含 `result` 为空字符串的完成帧)。
118
+ * 仅以 `trim(result).length` 判断「完成」时,空 stdout 会一直显示「调用中」。
119
+ */
120
+ toolResultApplied?: boolean;
121
+ sessionId?: string;
122
+ }
123
+ /** HITL 单题:`agent/hitl-question.content.questions[]`(见《HITL 前端对接》) */
124
+ export type HitlUiType = 'text' | 'select' | 'multi_select' | 'confirm' | 'form' | 'date' | 'number';
125
+ export interface HitlQuestionOption {
126
+ label: string;
127
+ description?: string;
128
+ preview?: string;
129
+ }
130
+ export interface HitlQuestionItem {
131
+ id: string;
132
+ question: string;
133
+ header?: string;
134
+ ui_type?: HitlUiType;
135
+ options?: HitlQuestionOption[];
136
+ allow_other?: boolean;
137
+ placeholder?: string;
138
+ default_value?: string;
139
+ min?: number;
140
+ max?: number;
141
+ }
142
+ /**
143
+ * HITL 问题卡(下行 {@code body.type === 'agent/hitl-question'})。
144
+ * headers 中与上行 `agent/hitl-answer` 对齐的字段可由归一化层从信封 headers 填入。
145
+ */
146
+ export interface MessageContentHitlQuestion {
147
+ type: 'HitlQuestion';
148
+ standardType?: 'agent/hitl-question';
149
+ requestId: string;
150
+ questions: HitlQuestionItem[];
151
+ agentId?: string;
152
+ agentSessionId?: string;
153
+ userId?: string;
154
+ }
155
+ export type EnterpriseCloudMessageContent = MessageContentAgentThinking | MessageContentToolUse | MessageContentReferenceSources | MessageContentInputRecommend | MessageContentUserAuth | MessageContentErrorReminder | MessageContentLinkCard | MessageContentUnknownEnterprise | MessageContentAttachmentFile | MessageContentHitlQuestion;
@@ -0,0 +1,15 @@
1
+ import { PropType } from 'vue';
2
+ import { MessageContentUnknownEnterprise } from './types';
3
+
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ content: {
6
+ type: PropType<MessageContentUnknownEnterprise>;
7
+ required: true;
8
+ };
9
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
+ content: {
11
+ type: PropType<MessageContentUnknownEnterprise>;
12
+ required: true;
13
+ };
14
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
15
+ export default _default;
@@ -0,0 +1,25 @@
1
+ import { PropType } from 'vue';
2
+ import { MessageContentUserAuth } from './types';
3
+
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ content: {
6
+ type: PropType<MessageContentUserAuth>;
7
+ required: true;
8
+ };
9
+ onConfirm: {
10
+ type: PropType<(optionId: string, name: string, message?: string) => void>;
11
+ default: undefined;
12
+ };
13
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
14
+ content: {
15
+ type: PropType<MessageContentUserAuth>;
16
+ required: true;
17
+ };
18
+ onConfirm: {
19
+ type: PropType<(optionId: string, name: string, message?: string) => void>;
20
+ default: undefined;
21
+ };
22
+ }>> & Readonly<{}>, {
23
+ onConfirm: (optionId: string, name: string, message?: string) => void;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
25
+ export default _default;