@steerable/agent-ui 0.6.38 → 0.6.40
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/LICENSE +201 -91
- package/dist/cards/ActionSegmentCard.d.ts +0 -1
- package/dist/cards/ActionSegmentCard.js +0 -1
- package/dist/cards/AnalysisDocumentCard.d.ts +0 -1
- package/dist/cards/AnalysisDocumentCard.js +0 -1
- package/dist/cards/AskUserQuestionsCard.d.ts +0 -1
- package/dist/cards/AskUserQuestionsCard.js +0 -1
- package/dist/cards/CoverageReportCard.d.ts +0 -1
- package/dist/cards/CoverageReportCard.js +0 -1
- package/dist/cards/OrchestrationPlanCard.d.ts +0 -1
- package/dist/cards/OrchestrationPlanCard.js +0 -1
- package/dist/cards/PlanSelectorCard.d.ts +0 -1
- package/dist/cards/PlanSelectorCard.js +0 -1
- package/dist/cards/PlanStepsCard.d.ts +0 -1
- package/dist/cards/PlanStepsCard.js +0 -1
- package/dist/cards/QuizCard.d.ts +0 -1
- package/dist/cards/QuizCard.js +0 -1
- package/dist/cards/ResearchPlanCard.d.ts +0 -1
- package/dist/cards/ResearchPlanCard.js +0 -1
- package/dist/cards/SearchSourcesCard.d.ts +0 -1
- package/dist/cards/SearchSourcesCard.js +0 -1
- package/dist/cards/SuggestedRepliesCard.d.ts +0 -1
- package/dist/cards/SuggestedRepliesCard.js +0 -1
- package/dist/cards/SummaryMessageCard.d.ts +0 -1
- package/dist/cards/SummaryMessageCard.js +0 -1
- package/dist/cards/ThinkingProcessCard.d.ts +0 -1
- package/dist/cards/ThinkingProcessCard.js +0 -1
- package/dist/cards/ToolExecutionCard.d.ts +0 -1
- package/dist/cards/ToolExecutionCard.js +0 -1
- package/dist/cards/icons.d.ts +0 -1
- package/dist/cards/icons.js +0 -1
- package/dist/cards/index.d.ts +0 -1
- package/dist/cards/index.js +0 -1
- package/dist/cards/types.d.ts +0 -1
- package/dist/cards/types.js +0 -1
- package/dist/components/AgentSelector.d.ts +0 -1
- package/dist/components/AgentSelector.js +0 -1
- package/dist/components/AgentSelector.stories.d.ts +0 -1
- package/dist/components/AgentSelector.stories.js +0 -1
- package/dist/components/ChatPanel.d.ts +0 -1
- package/dist/components/ChatPanel.js +0 -1
- package/dist/components/ChatPanel.stories.d.ts +0 -1
- package/dist/components/ChatPanel.stories.js +0 -1
- package/dist/components/MessageList.d.ts +0 -1
- package/dist/components/MessageList.js +0 -1
- package/dist/components/MessageList.stories.d.ts +0 -1
- package/dist/components/MessageList.stories.js +0 -1
- package/dist/components/ModelSelector.d.ts +0 -1
- package/dist/components/ModelSelector.js +0 -1
- package/dist/components/ModelSelector.stories.d.ts +0 -1
- package/dist/components/ModelSelector.stories.js +0 -1
- package/dist/components/OrchestrationPlanCard.d.ts +0 -1
- package/dist/components/OrchestrationPlanCard.js +0 -1
- package/dist/components/OrchestrationPlanCard.stories.d.ts +0 -1
- package/dist/components/OrchestrationPlanCard.stories.js +0 -1
- package/dist/components/SSEStreamView.d.ts +1 -2
- package/dist/components/SSEStreamView.js +1 -2
- package/dist/components/SSEStreamView.stories.d.ts +0 -1
- package/dist/components/SSEStreamView.stories.js +0 -1
- package/dist/components/ToolCallRenderer.d.ts +0 -1
- package/dist/components/ToolCallRenderer.js +0 -1
- package/dist/components/ToolCallRenderer.stories.d.ts +0 -1
- package/dist/components/ToolCallRenderer.stories.js +0 -1
- package/dist/components/cn.d.ts +0 -1
- package/dist/components/cn.js +0 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.js +0 -1
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.js +0 -1
- package/dist/hooks/useAgentSession.d.ts +0 -1
- package/dist/hooks/useAgentSession.js +0 -1
- package/dist/hooks/useChatStream.d.ts +0 -1
- package/dist/hooks/useChatStream.js +0 -1
- package/dist/hooks/useToolCallStatus.d.ts +0 -1
- package/dist/hooks/useToolCallStatus.js +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/state/ChatSessionProvider.d.ts +0 -1
- package/dist/state/ChatSessionProvider.js +0 -1
- package/dist/state/MockChatStreamTransport.d.ts +0 -1
- package/dist/state/MockChatStreamTransport.js +0 -1
- package/dist/state/MockChatStreamTransport.stories.d.ts +0 -1
- package/dist/state/MockChatStreamTransport.stories.js +0 -1
- package/dist/state/bridgeLegacySSE.d.ts +0 -1
- package/dist/state/bridgeLegacySSE.js +0 -1
- package/dist/state/index.d.ts +0 -1
- package/dist/state/index.js +0 -1
- package/dist/state/parseSSE.d.ts +0 -1
- package/dist/state/parseSSE.js +0 -1
- package/dist/state/useChatComposer.d.ts +0 -1
- package/dist/state/useChatComposer.js +0 -1
- package/dist/state/useChatList.d.ts +0 -1
- package/dist/state/useChatList.js +0 -1
- package/dist/state/useChatSession.d.ts +0 -1
- package/dist/state/useChatSession.js +0 -1
- package/dist/state/useScrollLock.d.ts +0 -1
- package/dist/state/useScrollLock.js +0 -1
- package/dist/state/useToolCallStream.d.ts +0 -1
- package/dist/state/useToolCallStream.js +0 -1
- package/dist/tailwind-preset.d.ts +0 -1
- package/dist/tailwind-preset.js +0 -1
- package/package.json +3 -3
- package/src/components/SSEStreamView.tsx +1 -1
- package/dist/cards/ActionSegmentCard.d.ts.map +0 -1
- package/dist/cards/ActionSegmentCard.js.map +0 -1
- package/dist/cards/AnalysisDocumentCard.d.ts.map +0 -1
- package/dist/cards/AnalysisDocumentCard.js.map +0 -1
- package/dist/cards/AskUserQuestionsCard.d.ts.map +0 -1
- package/dist/cards/AskUserQuestionsCard.js.map +0 -1
- package/dist/cards/CoverageReportCard.d.ts.map +0 -1
- package/dist/cards/CoverageReportCard.js.map +0 -1
- package/dist/cards/OrchestrationPlanCard.d.ts.map +0 -1
- package/dist/cards/OrchestrationPlanCard.js.map +0 -1
- package/dist/cards/PlanSelectorCard.d.ts.map +0 -1
- package/dist/cards/PlanSelectorCard.js.map +0 -1
- package/dist/cards/PlanStepsCard.d.ts.map +0 -1
- package/dist/cards/PlanStepsCard.js.map +0 -1
- package/dist/cards/QuizCard.d.ts.map +0 -1
- package/dist/cards/QuizCard.js.map +0 -1
- package/dist/cards/ResearchPlanCard.d.ts.map +0 -1
- package/dist/cards/ResearchPlanCard.js.map +0 -1
- package/dist/cards/SearchSourcesCard.d.ts.map +0 -1
- package/dist/cards/SearchSourcesCard.js.map +0 -1
- package/dist/cards/SuggestedRepliesCard.d.ts.map +0 -1
- package/dist/cards/SuggestedRepliesCard.js.map +0 -1
- package/dist/cards/SummaryMessageCard.d.ts.map +0 -1
- package/dist/cards/SummaryMessageCard.js.map +0 -1
- package/dist/cards/ThinkingProcessCard.d.ts.map +0 -1
- package/dist/cards/ThinkingProcessCard.js.map +0 -1
- package/dist/cards/ToolExecutionCard.d.ts.map +0 -1
- package/dist/cards/ToolExecutionCard.js.map +0 -1
- package/dist/cards/icons.d.ts.map +0 -1
- package/dist/cards/icons.js.map +0 -1
- package/dist/cards/index.d.ts.map +0 -1
- package/dist/cards/index.js.map +0 -1
- package/dist/cards/types.d.ts.map +0 -1
- package/dist/cards/types.js.map +0 -1
- package/dist/components/AgentSelector.d.ts.map +0 -1
- package/dist/components/AgentSelector.js.map +0 -1
- package/dist/components/AgentSelector.stories.d.ts.map +0 -1
- package/dist/components/AgentSelector.stories.js.map +0 -1
- package/dist/components/ChatPanel.d.ts.map +0 -1
- package/dist/components/ChatPanel.js.map +0 -1
- package/dist/components/ChatPanel.stories.d.ts.map +0 -1
- package/dist/components/ChatPanel.stories.js.map +0 -1
- package/dist/components/MessageList.d.ts.map +0 -1
- package/dist/components/MessageList.js.map +0 -1
- package/dist/components/MessageList.stories.d.ts.map +0 -1
- package/dist/components/MessageList.stories.js.map +0 -1
- package/dist/components/ModelSelector.d.ts.map +0 -1
- package/dist/components/ModelSelector.js.map +0 -1
- package/dist/components/ModelSelector.stories.d.ts.map +0 -1
- package/dist/components/ModelSelector.stories.js.map +0 -1
- package/dist/components/OrchestrationPlanCard.d.ts.map +0 -1
- package/dist/components/OrchestrationPlanCard.js.map +0 -1
- package/dist/components/OrchestrationPlanCard.stories.d.ts.map +0 -1
- package/dist/components/OrchestrationPlanCard.stories.js.map +0 -1
- package/dist/components/SSEStreamView.d.ts.map +0 -1
- package/dist/components/SSEStreamView.js.map +0 -1
- package/dist/components/SSEStreamView.stories.d.ts.map +0 -1
- package/dist/components/SSEStreamView.stories.js.map +0 -1
- package/dist/components/ToolCallRenderer.d.ts.map +0 -1
- package/dist/components/ToolCallRenderer.js.map +0 -1
- package/dist/components/ToolCallRenderer.stories.d.ts.map +0 -1
- package/dist/components/ToolCallRenderer.stories.js.map +0 -1
- package/dist/components/cn.d.ts.map +0 -1
- package/dist/components/cn.js.map +0 -1
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/useAgentSession.d.ts.map +0 -1
- package/dist/hooks/useAgentSession.js.map +0 -1
- package/dist/hooks/useChatStream.d.ts.map +0 -1
- package/dist/hooks/useChatStream.js.map +0 -1
- package/dist/hooks/useToolCallStatus.d.ts.map +0 -1
- package/dist/hooks/useToolCallStatus.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/state/ChatSessionProvider.d.ts.map +0 -1
- package/dist/state/ChatSessionProvider.js.map +0 -1
- package/dist/state/MockChatStreamTransport.d.ts.map +0 -1
- package/dist/state/MockChatStreamTransport.js.map +0 -1
- package/dist/state/MockChatStreamTransport.stories.d.ts.map +0 -1
- package/dist/state/MockChatStreamTransport.stories.js.map +0 -1
- package/dist/state/bridgeLegacySSE.d.ts.map +0 -1
- package/dist/state/bridgeLegacySSE.js.map +0 -1
- package/dist/state/index.d.ts.map +0 -1
- package/dist/state/index.js.map +0 -1
- package/dist/state/parseSSE.d.ts.map +0 -1
- package/dist/state/parseSSE.js.map +0 -1
- package/dist/state/useChatComposer.d.ts.map +0 -1
- package/dist/state/useChatComposer.js.map +0 -1
- package/dist/state/useChatList.d.ts.map +0 -1
- package/dist/state/useChatList.js.map +0 -1
- package/dist/state/useChatSession.d.ts.map +0 -1
- package/dist/state/useChatSession.js.map +0 -1
- package/dist/state/useScrollLock.d.ts.map +0 -1
- package/dist/state/useScrollLock.js.map +0 -1
- package/dist/state/useToolCallStream.d.ts.map +0 -1
- package/dist/state/useToolCallStream.js.map +0 -1
- package/dist/tailwind-preset.d.ts.map +0 -1
- package/dist/tailwind-preset.js.map +0 -1
package/LICENSE
CHANGED
|
@@ -1,91 +1,201 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -23,4 +23,3 @@ export const ActionSegmentCard = ({ payload, className, renderArgs, renderOutput
|
|
|
23
23
|
return (_jsx("div", { className: ['steerable-action-segment space-y-1.5', className].filter(Boolean).join(' '), children: segments.map((s) => (_jsx(ToolExecutionCard, { payload: segmentToTool(s), renderArgs: renderArgs, renderOutput: renderOutput }, s.id))) }));
|
|
24
24
|
};
|
|
25
25
|
export default ActionSegmentCard;
|
|
26
|
-
//# sourceMappingURL=ActionSegmentCard.js.map
|
|
@@ -8,4 +8,3 @@ export const AnalysisDocumentCard = ({ payload, renderMarkdown, renderFooter, cl
|
|
|
8
8
|
].filter(Boolean).join(' '), children: [payload.title && headerVariant === 'strip' ? (_jsx("div", { className: "border-b border-[var(--agent-border,#e5e7eb)] bg-[var(--agent-muted,#f3f4f6)]/50 px-4 py-2", children: _jsx("span", { className: "block truncate text-xs font-medium text-[var(--agent-muted-foreground,#6b7280)]", children: payload.title }) })) : (_jsxs("header", { className: "mb-3 flex items-center gap-2 border-b border-[var(--agent-border,#e5e7eb)] px-4 pt-3 pb-2", children: [_jsx(BookIcon, { size: 14, className: "text-[var(--agent-muted-foreground,#6b7280)]" }), _jsx("h3", { className: "text-sm font-medium", children: payload.title || '分析报告' }), payload.modelId && (_jsx("span", { className: "ml-auto rounded-full bg-[var(--agent-muted,#f3f4f6)] px-2 py-0.5 text-[10px] uppercase tracking-wider text-[var(--agent-muted-foreground,#6b7280)]", children: payload.modelId }))] })), _jsx("div", { className: ['p-4', bodyClassName].filter(Boolean).join(' '), children: renderMarkdown ? (asReactNode(renderMarkdown(payload.body))) : (_jsx("pre", { className: "whitespace-pre-wrap break-words font-sans", children: payload.body })) }), renderFooter && asReactNode(renderFooter())] }));
|
|
9
9
|
};
|
|
10
10
|
export default AnalysisDocumentCard;
|
|
11
|
-
//# sourceMappingURL=AnalysisDocumentCard.js.map
|
|
@@ -171,4 +171,3 @@ allowCustomText = true, requireAllAnswered = false, submitLabel = '提交', mult
|
|
|
171
171
|
].join(' '), children: [submitting ? _jsx(LoaderIcon, { size: 10, className: "animate-spin" }) : _jsx(CheckIcon, { size: 12 }), submitLabel] })] }))] }) }));
|
|
172
172
|
};
|
|
173
173
|
export default AskUserQuestionsCard;
|
|
174
|
-
//# sourceMappingURL=AskUserQuestionsCard.js.map
|
|
@@ -52,4 +52,3 @@ export const CoverageReportCard = ({ payload, isComplete, onRemediate, className
|
|
|
52
52
|
}) }), _jsxs("div", { className: "space-y-2 rounded-md border border-[var(--agent-border,#e5e7eb)] bg-[var(--agent-background,#fff)] p-2", children: [_jsxs("div", { className: "flex items-center gap-1.5 text-xs font-medium text-amber-600 dark:text-amber-400", children: [_jsx(AlertIcon, { size: 12 }), "\u8584\u5F31\u77E5\u8BC6\u70B9"] }), weakPoints.length === 0 ? (emptyWeakPointsLabel ? (_jsxs("div", { className: "inline-flex items-center gap-1.5 text-xs text-green-600 dark:text-green-400", children: [_jsx(CheckIcon, { size: 12 }), emptyWeakPointsLabel] })) : null) : allowWeakPointSelection ? (_jsx("div", { className: "space-y-1.5", children: weakPoints.map((point) => (_jsxs("label", { className: "flex cursor-pointer items-start gap-2", children: [_jsx("input", { type: "checkbox", className: "mt-0.5 h-4 w-4", checked: selected.includes(point.id), onChange: () => toggle(point.id), disabled: remediateDisabled }), _jsxs("div", { className: "min-w-0 text-xs", children: [_jsxs("p", { className: "font-medium", children: [point.name, point.sectionName ? ` · ${point.sectionName}` : ''] }), _jsxs("p", { className: "text-[var(--agent-muted-foreground,#6b7280)]", children: ["\u6B63\u786E\u7387 ", pct(point.accuracy), " \u00B7 ", point.recommendation] })] })] }, point.id))) })) : (_jsx("ul", { className: "space-y-1 text-xs", children: weakPoints.map((wp) => (_jsxs("li", { children: [_jsx("span", { className: "font-medium", children: wp.name }), wp.sectionName && (_jsxs("span", { className: "ml-1 text-[var(--agent-muted-foreground,#6b7280)]", children: ["\u00B7 ", wp.sectionName] })), _jsxs("span", { className: "ml-1 text-[var(--agent-muted-foreground,#6b7280)]", children: ["\u00B7 \u6B63\u786E\u7387 ", pct(wp.accuracy)] }), _jsx("p", { className: "text-[var(--agent-muted-foreground,#6b7280)]", children: wp.recommendation })] }, wp.id))) }))] }), payload.actions?.allowRemediateQuiz && onRemediate && weakPoints.length > 0 && (_jsxs("div", { className: "flex items-center justify-between pt-1", children: [_jsx("span", { className: "text-xs text-[var(--agent-muted-foreground,#6b7280)]", children: remediateHint }), _jsx("button", { type: "button", onClick: handleClick, disabled: remediateDisabled, className: "inline-flex h-[28px] items-center rounded-full bg-[var(--agent-primary,#18181b)] px-3 text-xs font-medium text-[var(--agent-primary-foreground,#fff)] transition-all duration-200 hover:opacity-90 disabled:opacity-50", children: remediateLabel || payload.actions.remediateActionLabel || '为薄弱点出题' })] }))] }) }));
|
|
53
53
|
};
|
|
54
54
|
export default CoverageReportCard;
|
|
55
|
-
//# sourceMappingURL=CoverageReportCard.js.map
|
|
@@ -57,4 +57,3 @@ declare const DOT_CLASS: Record<OrchestrationTaskStatus, string>;
|
|
|
57
57
|
export declare const OrchestrationPlanCard: React.FC<OrchestrationPlanCardProps>;
|
|
58
58
|
export { STATUS_LABEL as ORCHESTRATION_STATUS_LABEL, DOT_CLASS as ORCHESTRATION_DOT_CLASS };
|
|
59
59
|
export default OrchestrationPlanCard;
|
|
60
|
-
//# sourceMappingURL=OrchestrationPlanCard.d.ts.map
|
|
@@ -100,4 +100,3 @@ export const OrchestrationPlanCard = ({ payload, taskStatuses, agentNameFor, cla
|
|
|
100
100
|
};
|
|
101
101
|
export { STATUS_LABEL as ORCHESTRATION_STATUS_LABEL, DOT_CLASS as ORCHESTRATION_DOT_CLASS };
|
|
102
102
|
export default OrchestrationPlanCard;
|
|
103
|
-
//# sourceMappingURL=OrchestrationPlanCard.js.map
|
|
@@ -103,4 +103,3 @@ export const PlanSelectorCard = ({ payload, isComplete, onSelect, className, exp
|
|
|
103
103
|
: _jsxs("div", { className: "flex items-center gap-1.5", children: [_jsx(CheckIcon, { size: 12, className: "text-blue-500" }), _jsx("span", { className: "text-xs text-[var(--agent-muted-foreground,#6b7280)]", children: "\u65B9\u6848\u5DF2\u9009\u62E9" })] }) })] }) }));
|
|
104
104
|
};
|
|
105
105
|
export default PlanSelectorCard;
|
|
106
|
-
//# sourceMappingURL=PlanSelectorCard.js.map
|
|
@@ -22,4 +22,3 @@ export const PlanStepsCard = ({ payload, isStreaming, className }) => {
|
|
|
22
22
|
].filter(Boolean).join(' '), children: [_jsx(ListChecksIcon, { size: 14, className: "mt-0.5 flex-shrink-0 text-[var(--agent-muted-foreground,#6b7280)]" }), _jsxs("div", { className: "flex flex-wrap items-center gap-1 text-xs text-[var(--agent-muted-foreground,#6b7280)]", children: [steps.map((step, idx) => (_jsxs(React.Fragment, { children: [idx > 0 && _jsx("span", { "aria-hidden": true, className: "select-none opacity-40", children: "/" }), _jsx("span", { className: "whitespace-nowrap", children: step })] }, `${idx}-${step}`))), isStreaming && (_jsx("span", { "aria-hidden": true, className: "ml-1 inline-block h-1.5 w-1.5 translate-y-[1px] animate-pulse rounded-full bg-current" }))] })] }));
|
|
23
23
|
};
|
|
24
24
|
export default PlanStepsCard;
|
|
25
|
-
//# sourceMappingURL=PlanStepsCard.js.map
|
package/dist/cards/QuizCard.d.ts
CHANGED
package/dist/cards/QuizCard.js
CHANGED
|
@@ -110,4 +110,3 @@ export const QuizCard = ({ payload, isComplete, onSubmit, className, choiceVaria
|
|
|
110
110
|
}) }), _jsxs("div", { className: "flex flex-wrap items-center justify-between gap-x-3 gap-y-2 pt-1", children: [isReadOnly ? (_jsxs("div", { className: "inline-flex min-w-0 items-center gap-1.5 text-xs text-green-600 dark:text-green-400", children: [_jsx(CheckIcon, { size: 12 }), _jsx("span", { className: "truncate", children: submittedMessage ?? '已提交' })] })) : (submitHint && (_jsx("span", { className: "min-w-0 flex-1 break-words text-xs text-[var(--agent-muted-foreground,#6b7280)]", children: submitHint }))), !isReadOnly && onSubmit && (_jsx("button", { type: "button", onClick: handleSubmit, disabled: submitting || isReadOnly, className: "ml-auto inline-flex h-[28px] shrink-0 items-center gap-1 rounded-full bg-[var(--agent-primary,#18181b)] px-3 text-xs font-medium text-[var(--agent-primary-foreground,#fff)] transition-all duration-200 hover:opacity-90 disabled:opacity-50", children: submitting ? (_jsxs(_Fragment, { children: [_jsx(LoaderIcon, { size: 10, className: "animate-spin" }), submittingLabel] })) : (payload.submitActionLabel || '提交') }))] })] }) }));
|
|
111
111
|
};
|
|
112
112
|
export default QuizCard;
|
|
113
|
-
//# sourceMappingURL=QuizCard.js.map
|
|
@@ -47,4 +47,3 @@ export const ResearchPlanCard = ({ payload, totalRounds = 3, className, }) => {
|
|
|
47
47
|
}) })] }), payload.decision && (_jsxs("div", { className: "rounded-md border border-[var(--agent-border,#e5e7eb)] bg-[var(--agent-muted,#f3f4f6)]/40 px-2.5 py-2", children: [_jsx("div", { className: "text-xs text-[var(--agent-muted-foreground,#6b7280)]", children: "\u4E0B\u4E00\u6B65\u51B3\u7B56" }), _jsx("div", { className: "text-sm font-medium", children: decisionLabel ?? payload.decision.next }), payload.decision.reason && (_jsx("div", { className: "mt-0.5 whitespace-pre-wrap text-xs text-[var(--agent-muted-foreground,#6b7280)]", children: payload.decision.reason }))] }))] }) }));
|
|
48
48
|
};
|
|
49
49
|
export default ResearchPlanCard;
|
|
50
|
-
//# sourceMappingURL=ResearchPlanCard.js.map
|
|
@@ -80,4 +80,3 @@ export const SearchSourcesCard = ({ payload, className, appearance = 'card', fav
|
|
|
80
80
|
].filter(Boolean).join(' ') })] }), expanded && (isCard ? (_jsx("ul", { className: "divide-y divide-[var(--agent-border,#e5e7eb)] border-t border-[var(--agent-border,#e5e7eb)]", children: unique.map((s, idx) => (_jsx("li", { className: "px-3 py-2 text-sm", children: _jsxs("a", { href: s.url, target: "_blank", rel: "noopener noreferrer", className: "flex items-start gap-2 text-[var(--agent-foreground,#111827)] hover:underline", children: [_jsx(FaviconCircle, { src: s.favicon ?? faviconUrlFor(s.url), size: 16 }), _jsxs("span", { className: "min-w-0 flex-1", children: [_jsx("span", { className: "block truncate font-medium", children: s.title || extractDomain(s.url) }), _jsx("span", { className: "block truncate text-xs text-[var(--agent-muted-foreground,#6b7280)]", children: extractDomain(s.url) }), s.snippet && (_jsx("span", { className: "mt-1 block text-xs text-[var(--agent-muted-foreground,#6b7280)] line-clamp-2", children: s.snippet }))] }), _jsx(ExternalLinkIcon, { size: 12, className: "mt-1 flex-shrink-0 text-[var(--agent-muted-foreground,#6b7280)]" })] }) }, `${idx}-${s.url}`))) })) : (_jsx("div", { className: "mt-1.5 flex flex-col gap-0.5", children: unique.map((s, idx) => (_jsxs("a", { href: s.url, target: "_blank", rel: "noopener noreferrer", className: "group/item flex items-center gap-2.5 rounded-md px-2 py-1.5 transition-colors duration-150 hover:bg-[var(--agent-muted,#f3f4f6)]", children: [_jsx(FaviconCircle, { src: s.favicon ?? faviconUrlFor(s.url), size: 16 }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx("div", { className: "truncate text-xs text-[var(--agent-foreground,#111827)]", children: s.title || extractDomain(s.url) }), _jsx("div", { className: "truncate text-[11px] text-[var(--agent-muted-foreground,#6b7280)]", children: extractDomain(s.url) })] }), _jsx(ExternalLinkIcon, { size: 12, className: "shrink-0 text-[var(--agent-muted-foreground,#6b7280)] opacity-0 transition-opacity group-hover/item:opacity-100" })] }, `${idx}-${s.url}`))) })))] }));
|
|
81
81
|
};
|
|
82
82
|
export default SearchSourcesCard;
|
|
83
|
-
//# sourceMappingURL=SearchSourcesCard.js.map
|
|
@@ -53,4 +53,3 @@ export const SummaryMessageCard = ({ payload, renderMarkdown, renderLabel, rende
|
|
|
53
53
|
].filter(Boolean).join(' '), children: [_jsxs("button", { type: "button", onClick: () => canToggle && setExpanded((v) => !v), disabled: !canToggle, className: "flex w-full items-center gap-2 px-3 py-2 text-left text-[var(--agent-muted-foreground,#6b7280)]", children: [isPending ? _jsx(LoaderIcon, { size: 12 }) : _jsx(ArchiveIcon, { size: 12 }), _jsx("span", { children: labelNode }), canToggle && _jsx("span", { className: "ml-auto", children: toggleNode })] }), body && (_jsx("div", { className: "border-t border-[var(--agent-border,#e5e7eb)] px-3 py-2 text-[var(--agent-foreground,#111827)]", children: body }))] }));
|
|
54
54
|
};
|
|
55
55
|
export default SummaryMessageCard;
|
|
56
|
-
//# sourceMappingURL=SummaryMessageCard.js.map
|
|
@@ -76,4 +76,3 @@ export const ThinkingProcessCard = ({ payload, renderMarkdown, renderLabel, rend
|
|
|
76
76
|
].join(' '), children: [_jsx("div", { className: bodyClassName ?? defaultBodyClasses, children: renderMarkdown ? asReactNode(renderMarkdown(payload.body)) : payload.body }), isStreaming && renderStreamingFooter && (_jsx("div", { className: "mt-2", children: asReactNode(renderStreamingFooter()) }))] }))] }));
|
|
77
77
|
};
|
|
78
78
|
export default ThinkingProcessCard;
|
|
79
|
-
//# sourceMappingURL=ThinkingProcessCard.js.map
|
|
@@ -67,4 +67,3 @@ export const ToolExecutionCard = ({ payload, className, defaultExpanded = false,
|
|
|
67
67
|
}, className: `flex min-w-0 flex-1 items-center gap-1.5 py-1 pr-2.5 text-left ${expandable ? '' : 'pl-2.5'} ${onActivate ? 'cursor-pointer hover:bg-[var(--agent-muted,#f3f4f6)]/60' : ''}`, "aria-expanded": onActivate ? undefined : expanded, "aria-label": onActivate ? activateTitle : undefined, title: onActivate ? activateTitle : undefined, "data-testid": onActivate ? 'tool-activate' : undefined, children: [lead ?? (_jsx(ZapIcon, { size: 12, className: "shrink-0 text-[var(--agent-muted-foreground,#6b7280)]" })), _jsx("span", { className: "shrink-0 font-medium text-[var(--agent-foreground,#111827)]", children: title }), payload.summary && (_jsx("span", { className: "min-w-0 flex-1 truncate text-[var(--agent-muted-foreground,#6b7280)]", children: payload.summary })), _jsxs("span", { className: "ml-auto inline-flex shrink-0 items-center gap-1 whitespace-nowrap", children: [_jsx(StatusIcon, { status: status }), _jsx("span", { className: STATUS_TONE[status], children: STATUS_LABEL[status] }), typeof payload.durationMs === 'number' && (_jsxs("span", { className: "text-[var(--agent-muted-foreground,#9ca3af)]", children: ["\u00B7 ", payload.durationMs, "ms"] }))] })] })] }), expandable && expanded && (_jsxs("div", { className: "space-y-1.5 border-t border-[var(--agent-border,#e5e7eb)] px-2.5 py-1.5", children: [payload.args !== undefined && (_jsxs("section", { children: [_jsx("div", { className: "mb-1 text-[10px] uppercase tracking-wider text-[var(--agent-muted-foreground,#6b7280)]", children: "\u8F93\u5165" }), renderArgs ? renderArgs(payload.args) : defaultRender(payload.args)] })), payload.output !== undefined && (_jsxs("section", { children: [_jsx("div", { className: "mb-1 text-[10px] uppercase tracking-wider text-[var(--agent-muted-foreground,#6b7280)]", children: "\u8F93\u51FA" }), renderOutput ? renderOutput(payload.output) : defaultRender(payload.output)] })), payload.error && (_jsxs("section", { children: [_jsx("div", { className: "mb-1 text-[10px] uppercase tracking-wider text-rose-600", children: "\u9519\u8BEF" }), _jsx("pre", { className: "whitespace-pre-wrap break-words rounded bg-rose-50/60 px-2 py-1.5 text-[11px] text-rose-700", children: payload.error })] }))] }))] }));
|
|
68
68
|
};
|
|
69
69
|
export default ToolExecutionCard;
|
|
70
|
-
//# sourceMappingURL=ToolExecutionCard.js.map
|
package/dist/cards/icons.d.ts
CHANGED
|
@@ -35,4 +35,3 @@ export declare function BookIcon(props: IconProps): import("react/jsx-runtime").
|
|
|
35
35
|
export declare function ThumbsUpIcon(props: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
36
36
|
export declare function PencilIcon(props: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
37
37
|
export {};
|
|
38
|
-
//# sourceMappingURL=icons.d.ts.map
|
package/dist/cards/icons.js
CHANGED
|
@@ -84,4 +84,3 @@ export function ThumbsUpIcon(props) {
|
|
|
84
84
|
export function PencilIcon(props) {
|
|
85
85
|
return (_jsxs("svg", { ...base(props), children: [_jsx("path", { d: "M12 20h9" }), _jsx("path", { d: "M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z" })] }));
|
|
86
86
|
}
|
|
87
|
-
//# sourceMappingURL=icons.js.map
|
package/dist/cards/index.d.ts
CHANGED
|
@@ -36,4 +36,3 @@ export { ActionSegmentCard } from './ActionSegmentCard.js';
|
|
|
36
36
|
export type { ActionSegmentCardProps } from './ActionSegmentCard.js';
|
|
37
37
|
export { ToolExecutionCard } from './ToolExecutionCard.js';
|
|
38
38
|
export type { ToolExecutionCardProps } from './ToolExecutionCard.js';
|
|
39
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/cards/index.js
CHANGED
|
@@ -24,4 +24,3 @@ export { SearchSourcesCard } from './SearchSourcesCard.js';
|
|
|
24
24
|
export { SummaryMessageCard } from './SummaryMessageCard.js';
|
|
25
25
|
export { ActionSegmentCard } from './ActionSegmentCard.js';
|
|
26
26
|
export { ToolExecutionCard } from './ToolExecutionCard.js';
|
|
27
|
-
//# sourceMappingURL=index.js.map
|
package/dist/cards/types.d.ts
CHANGED
package/dist/cards/types.js
CHANGED
|
@@ -60,4 +60,3 @@ export function AgentSelector(props) {
|
|
|
60
60
|
: 'text-agent-foreground hover:bg-agent-muted', disabled && 'cursor-not-allowed opacity-50'), title: agent.name, children: renderAgent(agent, { selected }) }, agent.id));
|
|
61
61
|
}) }));
|
|
62
62
|
}
|
|
63
|
-
//# sourceMappingURL=AgentSelector.js.map
|
|
@@ -40,4 +40,3 @@ export function MessageList(props) {
|
|
|
40
40
|
const Renderer = renderMessage ?? DefaultMessageBubble;
|
|
41
41
|
return (_jsxs("div", { ref: containerRef, className: cn('flex h-full w-full flex-col gap-3 overflow-y-auto bg-agent-canvas px-4 py-3', 'focus:outline-none focus-visible:ring-2 focus-visible:ring-agent-accent', className), role: "log", "aria-live": "polite", "aria-label": "Conversation", tabIndex: 0, children: [header, messages.length === 0 ? (emptyState ?? (_jsx("div", { className: "m-auto text-sm text-agent-muted-foreground", children: "No messages yet." }))) : (messages.map((message, index) => (_jsx(Renderer, { message: message, index: index, isLastAssistant: index === lastAssistantIndex, isStreaming: isStreaming }, message.id ?? index))))] }));
|
|
42
42
|
}
|
|
43
|
-
//# sourceMappingURL=MessageList.js.map
|