@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.
Files changed (28) hide show
  1. package/dist/ToggleButtonGroup/ToggleButtonGroup.module.css +1 -1
  2. package/dist/chat/ComposerBanner/ComposerBanner.d.ts.map +1 -1
  3. package/dist/chat/ComposerBanner/ComposerBanner.js +16 -15
  4. package/dist/chat/ComposerBanner/ComposerBanner.js.map +1 -1
  5. package/dist/chat/Message/turn/Message.module.css +1 -1
  6. package/dist/chat/Message/turn/Message.module.css.js +22 -16
  7. package/dist/chat/Message/turn/Message.module.css.js.map +1 -1
  8. package/dist/chat/Message/turn/MessageAssistantBody.d.ts +2 -1
  9. package/dist/chat/Message/turn/MessageAssistantBody.d.ts.map +1 -1
  10. package/dist/chat/Message/turn/MessageAssistantBody.js +148 -56
  11. package/dist/chat/Message/turn/MessageAssistantBody.js.map +1 -1
  12. package/dist/chat/Message/turn/MessageUserBubble.d.ts.map +1 -1
  13. package/dist/chat/Message/turn/MessageUserBubble.js +52 -53
  14. package/dist/chat/Message/turn/MessageUserBubble.js.map +1 -1
  15. package/dist/chat/Message/turn/workedCollapse.d.ts +16 -0
  16. package/dist/chat/Message/turn/workedCollapse.d.ts.map +1 -0
  17. package/dist/chat/Message/turn/workedCollapse.js +31 -0
  18. package/dist/chat/Message/turn/workedCollapse.js.map +1 -0
  19. package/dist/chat/Tool/agent/AgentTool.d.ts +10 -0
  20. package/dist/chat/Tool/agent/AgentTool.d.ts.map +1 -1
  21. package/dist/chat/Tool/agent/AgentTool.js +110 -99
  22. package/dist/chat/Tool/agent/AgentTool.js.map +1 -1
  23. package/dist/chat/Tool/index.d.ts +1 -1
  24. package/dist/chat/Tool/index.d.ts.map +1 -1
  25. package/dist/chat/Tool/index.js +45 -44
  26. package/dist/chat/index.js +62 -61
  27. package/dist/index.js +364 -363
  28. package/package.json +1 -1
@@ -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 h } from "./Attachment/Attachment.js";
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 C } from "./Chip/Chip.js";
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 D, fileCite as H } from "./Chip/helpers/cursorLines.js";
10
- import { ComposerBanner as y, ComposerBannerStatus as G } from "./ComposerBanner/ComposerBanner.js";
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 ho } from "./Message/streamdown/MessageText.js";
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 co } from "./Message/turn/MessagePresets.js";
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 Do, defaultStreamingThoughtMessage as Ho, formatThoughtLabel as _o, useThoughtDuration as yo } from "./Reasoning/thoughtLabel.js";
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 wo } from "./Tool/ask-user-question/AskUserQuestionTool.js";
30
- import { ChooseDesignDirectionTool as Qo } from "./Tool/choose-design-direction/ChooseDesignDirectionTool.js";
31
- import { DefaultTool as zo } from "./Tool/default/Default.js";
32
- import { fileChangesFromToolParts as Yo } from "./Tool/fileChangesFromToolParts.js";
33
- import { TOOL_INTERRUPTED_MESSAGE as Xo, isToolInvocationInProgress as Zo, isToolInvocationStalled as $o, isToolInvocationTerminal as oe, lineCountsByPathFromEditingToolPart as ee, lineCountsFromEditingToolPart as re, removeFileLinesRemoved as te, toolPathKey as se } from "./Tool/helpers.js";
34
- import { IntegrationActionCard as le } from "./Tool/integration-card/IntegrationActionCard.js";
35
- import { ReadFilesTool as ie } from "./Tool/read/ReadFilesTool.js";
36
- import { ToolHoverCard as me } from "./Tool/shell/ToolHoverCard.js";
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 xe, ToolPathListPopover as Te } from "./Tool/shell/ToolPathListHoverCard.js";
39
- import { ToolShell as ce, ToolShellContent as Ce, ToolShellFooter as Pe, ToolShellHeader as Se } from "./Tool/shell/ToolShell.js";
40
- import { ToolShellCard as Ae, ToolShellCardContent as ve, ToolShellCardFooter as Me, ToolShellCardHeader as Fe } from "./Tool/shell/ToolShellCard.js";
41
- import { ToolShellStatusIcon as Le } from "./Tool/shell/ToolShellStatusIcon.js";
42
- import { ToolSummaryBadges as Re } from "./Tool/shell/ToolSummaryBadge.js";
43
- import { Tool as Ue, renderedToolName as Be } from "./Tool/Tool.js";
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
- wo as AskUserQuestionTool,
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
- C as Chip,
55
+ c as Chip,
56
56
  S as ChipContent,
57
57
  A as ChipIcon,
58
- Qo as ChooseDesignDirectionTool,
59
- y as ComposerBanner,
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
- zo as DefaultTool,
65
+ Wo as DefaultTool,
66
66
  Q as INVISIBLE_PART_TYPES,
67
- le as IntegrationActionCard,
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
- ho as MessageText,
74
+ go as MessageText,
75
75
  Po as MessageTurnProvider,
76
- co as MessageUser,
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
- ie as ReadFilesTool,
81
+ pe as ReadFilesTool,
82
82
  Uo as Reasoning,
83
83
  No as Source,
84
84
  Oo as Sources,
85
- Xo as TOOL_INTERRUPTED_MESSAGE,
86
- Ue as Tool,
87
- me as ToolHoverCard,
85
+ Zo as TOOL_INTERRUPTED_MESSAGE,
86
+ Be as Tool,
87
+ fe as ToolHoverCard,
88
88
  he as ToolLineCounts,
89
- xe as ToolPathListHoverCard,
90
- Te as ToolPathListPopover,
89
+ Te as ToolPathListHoverCard,
90
+ ue as ToolPathListPopover,
91
91
  ce as ToolShell,
92
- Ae as ToolShellCard,
93
- ve as ToolShellCardContent,
94
- Me as ToolShellCardFooter,
95
- Fe as ToolShellCardHeader,
96
- Ce as ToolShellContent,
97
- Pe as ToolShellFooter,
98
- Se as ToolShellHeader,
99
- Le as ToolShellStatusIcon,
100
- Re as ToolSummaryBadges,
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
- Do as defaultStaticThoughtMessage,
108
- Ho as defaultStreamingThoughtMessage,
109
- Yo as fileChangesFromToolParts,
110
- D as fileChipDisplay,
111
- H as fileCite,
112
- _o as formatThoughtLabel,
113
- h as getAttachmentLabel,
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
- Zo as isToolInvocationInProgress,
117
- $o as isToolInvocationStalled,
118
- oe as isToolInvocationTerminal,
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
- ee as lineCountsByPathFromEditingToolPart,
124
- re as lineCountsFromEditingToolPart,
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
- te as removeFileLinesRemoved,
130
- Be as renderedToolName,
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
- se as toolPathKey,
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
- yo as useThoughtDuration
141
+ _o as useThoughtDuration
141
142
  };
142
143
  //# sourceMappingURL=index.js.map