@reforma/components 0.1.4 → 0.1.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/ToggleButtonGroup/ToggleButtonGroup.module.css +1 -1
- package/dist/chat/ComposerBanner/ComposerBanner.d.ts.map +1 -1
- package/dist/chat/ComposerBanner/ComposerBanner.js +16 -15
- package/dist/chat/ComposerBanner/ComposerBanner.js.map +1 -1
- package/dist/chat/Message/turn/Message.module.css +1 -1
- package/dist/chat/Message/turn/Message.module.css.js +22 -16
- package/dist/chat/Message/turn/Message.module.css.js.map +1 -1
- package/dist/chat/Message/turn/MessageAssistantBody.d.ts +2 -1
- package/dist/chat/Message/turn/MessageAssistantBody.d.ts.map +1 -1
- package/dist/chat/Message/turn/MessageAssistantBody.js +148 -56
- package/dist/chat/Message/turn/MessageAssistantBody.js.map +1 -1
- package/dist/chat/Message/turn/MessageUserBubble.d.ts.map +1 -1
- package/dist/chat/Message/turn/MessageUserBubble.js +52 -53
- package/dist/chat/Message/turn/MessageUserBubble.js.map +1 -1
- package/dist/chat/Message/turn/workedCollapse.d.ts +16 -0
- package/dist/chat/Message/turn/workedCollapse.d.ts.map +1 -0
- package/dist/chat/Message/turn/workedCollapse.js +31 -0
- package/dist/chat/Message/turn/workedCollapse.js.map +1 -0
- package/dist/chat/Tool/agent/AgentTool.d.ts +10 -0
- package/dist/chat/Tool/agent/AgentTool.d.ts.map +1 -1
- package/dist/chat/Tool/agent/AgentTool.js +110 -99
- package/dist/chat/Tool/agent/AgentTool.js.map +1 -1
- package/dist/chat/Tool/index.d.ts +1 -1
- package/dist/chat/Tool/index.d.ts.map +1 -1
- package/dist/chat/Tool/index.js +45 -44
- package/dist/chat/index.js +62 -61
- package/dist/index.js +364 -363
- package/package.json +1 -1
package/dist/chat/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Approval as r, ApprovalAccepted as t, ApprovalButtons as s, ApprovalRejected as a, ApprovalRequest as l } from "./Approval/Approval.js";
|
|
2
|
-
import { Attachment as i, AttachmentPreview as p, Attachments as m, PreviewableAttachment as f, getAttachmentLabel as
|
|
2
|
+
import { Attachment as i, AttachmentPreview as p, Attachments as m, PreviewableAttachment as f, getAttachmentLabel as g } from "./Attachment/Attachment.js";
|
|
3
3
|
import { ChatProvider as x, useChat as T, useChatHandlers as u } from "./ChatContext.js";
|
|
4
|
-
import { Chip as
|
|
4
|
+
import { Chip as c } from "./Chip/Chip.js";
|
|
5
5
|
import { ChipContent as S } from "./Chip/ChipContent.js";
|
|
6
6
|
import { ChipIcon as A, chipIconForLinkHost as v } from "./Chip/ChipIcon.js";
|
|
7
7
|
import { getFileKind as F } from "./Chip/helpers/chipKind.js";
|
|
8
8
|
import { chipItemFromPath as L, chipLabelFromPath as E, chipTooltipFromPath as R, configureScratchRoots as b, normalizeChipPath as U } from "./Chip/helpers/chipPath.js";
|
|
9
|
-
import { fileChipDisplay as
|
|
10
|
-
import { ComposerBanner as
|
|
9
|
+
import { fileChipDisplay as y, fileCite as D } from "./Chip/helpers/cursorLines.js";
|
|
10
|
+
import { ComposerBanner as _, ComposerBannerStatus as G } from "./ComposerBanner/ComposerBanner.js";
|
|
11
11
|
import { Conversation as O, ConversationEmptyState as k, ConversationScrollButton as q } from "./Conversation/Conversation.js";
|
|
12
12
|
import { ConversationPendingLoader as w } from "./Conversation/ConversationPendingLoader.js";
|
|
13
13
|
import { INVISIBLE_PART_TYPES as Q, groupMessageParts as j, isVisiblePart as z, lastPendingAskUserQuestionPart as W, lastPendingChooseDesignDirectionPart as Y, lastVisiblePartFromGroups as J, partsFromSegmentGroups as X, partsHaveOpenToolCalls as Z, partsRequireUserAction as $, segmentMessage as oo, segmentRequiresUserAction as eo, splitUserMessageParts as ro } from "./Message/normalize/normalizeMessageParts.js";
|
|
@@ -15,128 +15,129 @@ import { collectMessageSources as so } from "./Message/parts/collectMessageSourc
|
|
|
15
15
|
import { MessageFileParts as lo } from "./Message/parts/MessageFileParts.js";
|
|
16
16
|
import { MessagePart as io } from "./Message/parts/MessagePart.js";
|
|
17
17
|
import { MessageSourceParts as mo } from "./Message/parts/MessageSourceParts.js";
|
|
18
|
-
import { MessageText as
|
|
18
|
+
import { MessageText as go } from "./Message/streamdown/MessageText.js";
|
|
19
19
|
import { MessageAssistantBody as xo } from "./Message/turn/MessageAssistantBody.js";
|
|
20
|
-
import { MessageAssistant as uo, MessageUser as
|
|
20
|
+
import { MessageAssistant as uo, MessageUser as Co } from "./Message/turn/MessagePresets.js";
|
|
21
21
|
import { MessageTurnProvider as Po, useMessageStreaming as So, useMessageTurn as Ao } from "./Message/turn/messageTurnContext.js";
|
|
22
22
|
import { MESSAGE_USER_COLLAPSE_MIN_CHARS as Mo, MessageUserBubble as Fo } from "./Message/turn/MessageUserBubble.js";
|
|
23
23
|
import { MessageUserFiles as Lo } from "./Message/turn/MessageUserFiles.js";
|
|
24
24
|
import { MessageWrapper as Ro } from "./Message/turn/MessageWrapper.js";
|
|
25
25
|
import { Reasoning as Uo } from "./Reasoning/Reasoning.js";
|
|
26
|
-
import { defaultStaticThoughtMessage as
|
|
26
|
+
import { defaultStaticThoughtMessage as yo, defaultStreamingThoughtMessage as Do, formatThoughtLabel as Ho, useThoughtDuration as _o } from "./Reasoning/thoughtLabel.js";
|
|
27
27
|
import { Source as No, Sources as Oo } from "./Sources/Sources.js";
|
|
28
|
-
import { subagentActivityLabel as qo } from "./Tool/agent/AgentTool.js";
|
|
29
|
-
import { AskUserQuestionTool as
|
|
30
|
-
import { ChooseDesignDirectionTool as
|
|
31
|
-
import { DefaultTool as
|
|
32
|
-
import { fileChangesFromToolParts as
|
|
33
|
-
import { TOOL_INTERRUPTED_MESSAGE as
|
|
34
|
-
import { IntegrationActionCard as
|
|
35
|
-
import { ReadFilesTool as
|
|
36
|
-
import { ToolHoverCard as
|
|
28
|
+
import { subagentActivityLabel as qo, subagentComposerCopy as Vo } from "./Tool/agent/AgentTool.js";
|
|
29
|
+
import { AskUserQuestionTool as Ko } from "./Tool/ask-user-question/AskUserQuestionTool.js";
|
|
30
|
+
import { ChooseDesignDirectionTool as jo } from "./Tool/choose-design-direction/ChooseDesignDirectionTool.js";
|
|
31
|
+
import { DefaultTool as Wo } from "./Tool/default/Default.js";
|
|
32
|
+
import { fileChangesFromToolParts as Jo } from "./Tool/fileChangesFromToolParts.js";
|
|
33
|
+
import { TOOL_INTERRUPTED_MESSAGE as Zo, isToolInvocationInProgress as $o, isToolInvocationStalled as oe, isToolInvocationTerminal as ee, lineCountsByPathFromEditingToolPart as re, lineCountsFromEditingToolPart as te, removeFileLinesRemoved as se, toolPathKey as ae } from "./Tool/helpers.js";
|
|
34
|
+
import { IntegrationActionCard as ne } from "./Tool/integration-card/IntegrationActionCard.js";
|
|
35
|
+
import { ReadFilesTool as pe } from "./Tool/read/ReadFilesTool.js";
|
|
36
|
+
import { ToolHoverCard as fe } from "./Tool/shell/ToolHoverCard.js";
|
|
37
37
|
import { ToolLineCounts as he } from "./Tool/shell/ToolLineCounts.js";
|
|
38
|
-
import { ToolPathListHoverCard as
|
|
39
|
-
import { ToolShell as ce, ToolShellContent as
|
|
40
|
-
import { ToolShellCard as
|
|
41
|
-
import { ToolShellStatusIcon as
|
|
42
|
-
import { ToolSummaryBadges as
|
|
43
|
-
import { Tool as
|
|
38
|
+
import { ToolPathListHoverCard as Te, ToolPathListPopover as ue } from "./Tool/shell/ToolPathListHoverCard.js";
|
|
39
|
+
import { ToolShell as ce, ToolShellContent as Pe, ToolShellFooter as Se, ToolShellHeader as de } from "./Tool/shell/ToolShell.js";
|
|
40
|
+
import { ToolShellCard as ve, ToolShellCardContent as Me, ToolShellCardFooter as Fe, ToolShellCardHeader as Ie } from "./Tool/shell/ToolShellCard.js";
|
|
41
|
+
import { ToolShellStatusIcon as Ee } from "./Tool/shell/ToolShellStatusIcon.js";
|
|
42
|
+
import { ToolSummaryBadges as be } from "./Tool/shell/ToolSummaryBadge.js";
|
|
43
|
+
import { Tool as Be, renderedToolName as ye } from "./Tool/Tool.js";
|
|
44
44
|
export {
|
|
45
45
|
r as Approval,
|
|
46
46
|
t as ApprovalAccepted,
|
|
47
47
|
s as ApprovalButtons,
|
|
48
48
|
a as ApprovalRejected,
|
|
49
49
|
l as ApprovalRequest,
|
|
50
|
-
|
|
50
|
+
Ko as AskUserQuestionTool,
|
|
51
51
|
i as Attachment,
|
|
52
52
|
p as AttachmentPreview,
|
|
53
53
|
m as Attachments,
|
|
54
54
|
x as ChatProvider,
|
|
55
|
-
|
|
55
|
+
c as Chip,
|
|
56
56
|
S as ChipContent,
|
|
57
57
|
A as ChipIcon,
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
jo as ChooseDesignDirectionTool,
|
|
59
|
+
_ as ComposerBanner,
|
|
60
60
|
G as ComposerBannerStatus,
|
|
61
61
|
O as Conversation,
|
|
62
62
|
k as ConversationEmptyState,
|
|
63
63
|
w as ConversationPendingLoader,
|
|
64
64
|
q as ConversationScrollButton,
|
|
65
|
-
|
|
65
|
+
Wo as DefaultTool,
|
|
66
66
|
Q as INVISIBLE_PART_TYPES,
|
|
67
|
-
|
|
67
|
+
ne as IntegrationActionCard,
|
|
68
68
|
Mo as MESSAGE_USER_COLLAPSE_MIN_CHARS,
|
|
69
69
|
uo as MessageAssistant,
|
|
70
70
|
xo as MessageAssistantBody,
|
|
71
71
|
lo as MessageFileParts,
|
|
72
72
|
io as MessagePart,
|
|
73
73
|
mo as MessageSourceParts,
|
|
74
|
-
|
|
74
|
+
go as MessageText,
|
|
75
75
|
Po as MessageTurnProvider,
|
|
76
|
-
|
|
76
|
+
Co as MessageUser,
|
|
77
77
|
Fo as MessageUserBubble,
|
|
78
78
|
Lo as MessageUserFiles,
|
|
79
79
|
Ro as MessageWrapper,
|
|
80
80
|
f as PreviewableAttachment,
|
|
81
|
-
|
|
81
|
+
pe as ReadFilesTool,
|
|
82
82
|
Uo as Reasoning,
|
|
83
83
|
No as Source,
|
|
84
84
|
Oo as Sources,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
Zo as TOOL_INTERRUPTED_MESSAGE,
|
|
86
|
+
Be as Tool,
|
|
87
|
+
fe as ToolHoverCard,
|
|
88
88
|
he as ToolLineCounts,
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
Te as ToolPathListHoverCard,
|
|
90
|
+
ue as ToolPathListPopover,
|
|
91
91
|
ce as ToolShell,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
92
|
+
ve as ToolShellCard,
|
|
93
|
+
Me as ToolShellCardContent,
|
|
94
|
+
Fe as ToolShellCardFooter,
|
|
95
|
+
Ie as ToolShellCardHeader,
|
|
96
|
+
Pe as ToolShellContent,
|
|
97
|
+
Se as ToolShellFooter,
|
|
98
|
+
de as ToolShellHeader,
|
|
99
|
+
Ee as ToolShellStatusIcon,
|
|
100
|
+
be as ToolSummaryBadges,
|
|
101
101
|
v as chipIconForLinkHost,
|
|
102
102
|
L as chipItemFromPath,
|
|
103
103
|
E as chipLabelFromPath,
|
|
104
104
|
R as chipTooltipFromPath,
|
|
105
105
|
so as collectMessageSources,
|
|
106
106
|
b as configureScratchRoots,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
107
|
+
yo as defaultStaticThoughtMessage,
|
|
108
|
+
Do as defaultStreamingThoughtMessage,
|
|
109
|
+
Jo as fileChangesFromToolParts,
|
|
110
|
+
y as fileChipDisplay,
|
|
111
|
+
D as fileCite,
|
|
112
|
+
Ho as formatThoughtLabel,
|
|
113
|
+
g as getAttachmentLabel,
|
|
114
114
|
F as getFileKind,
|
|
115
115
|
j as groupMessageParts,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
116
|
+
$o as isToolInvocationInProgress,
|
|
117
|
+
oe as isToolInvocationStalled,
|
|
118
|
+
ee as isToolInvocationTerminal,
|
|
119
119
|
z as isVisiblePart,
|
|
120
120
|
W as lastPendingAskUserQuestionPart,
|
|
121
121
|
Y as lastPendingChooseDesignDirectionPart,
|
|
122
122
|
J as lastVisiblePartFromGroups,
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
re as lineCountsByPathFromEditingToolPart,
|
|
124
|
+
te as lineCountsFromEditingToolPart,
|
|
125
125
|
U as normalizeChipPath,
|
|
126
126
|
X as partsFromSegmentGroups,
|
|
127
127
|
Z as partsHaveOpenToolCalls,
|
|
128
128
|
$ as partsRequireUserAction,
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
se as removeFileLinesRemoved,
|
|
130
|
+
ye as renderedToolName,
|
|
131
131
|
oo as segmentMessage,
|
|
132
132
|
eo as segmentRequiresUserAction,
|
|
133
133
|
ro as splitUserMessageParts,
|
|
134
134
|
qo as subagentActivityLabel,
|
|
135
|
-
|
|
135
|
+
Vo as subagentComposerCopy,
|
|
136
|
+
ae as toolPathKey,
|
|
136
137
|
T as useChat,
|
|
137
138
|
u as useChatHandlers,
|
|
138
139
|
So as useMessageStreaming,
|
|
139
140
|
Ao as useMessageTurn,
|
|
140
|
-
|
|
141
|
+
_o as useThoughtDuration
|
|
141
142
|
};
|
|
142
143
|
//# sourceMappingURL=index.js.map
|