@codesweep-ai/ui 0.2.1-dev.20260830023458.856ea8f

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 (215) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +2 -0
  3. package/README.md +124 -0
  4. package/dist/BUILD.json +1 -0
  5. package/dist/chart.d.ts +3 -0
  6. package/dist/chart.d.ts.map +1 -0
  7. package/dist/chart.js +3 -0
  8. package/dist/code.d.ts +2 -0
  9. package/dist/code.d.ts.map +1 -0
  10. package/dist/code.js +2 -0
  11. package/dist/components/AgentStatus.d.ts +15 -0
  12. package/dist/components/AgentStatus.d.ts.map +1 -0
  13. package/dist/components/AgentStatus.js +38 -0
  14. package/dist/components/AgentTrace.d.ts +42 -0
  15. package/dist/components/AgentTrace.d.ts.map +1 -0
  16. package/dist/components/AgentTrace.js +140 -0
  17. package/dist/components/AppShell.d.ts +29 -0
  18. package/dist/components/AppShell.d.ts.map +1 -0
  19. package/dist/components/AppShell.js +71 -0
  20. package/dist/components/Button.d.ts +10 -0
  21. package/dist/components/Button.d.ts.map +1 -0
  22. package/dist/components/Button.js +41 -0
  23. package/dist/components/Card.d.ts +19 -0
  24. package/dist/components/Card.d.ts.map +1 -0
  25. package/dist/components/Card.js +96 -0
  26. package/dist/components/CardGroup.d.ts +16 -0
  27. package/dist/components/CardGroup.d.ts.map +1 -0
  28. package/dist/components/CardGroup.js +33 -0
  29. package/dist/components/CardGroupContext.d.ts +14 -0
  30. package/dist/components/CardGroupContext.d.ts.map +1 -0
  31. package/dist/components/CardGroupContext.js +8 -0
  32. package/dist/components/ChartFrame.d.ts +30 -0
  33. package/dist/components/ChartFrame.d.ts.map +1 -0
  34. package/dist/components/ChartFrame.js +96 -0
  35. package/dist/components/ChartTooltip.d.ts +22 -0
  36. package/dist/components/ChartTooltip.d.ts.map +1 -0
  37. package/dist/components/ChartTooltip.js +26 -0
  38. package/dist/components/CheckboxGroup.d.ts +37 -0
  39. package/dist/components/CheckboxGroup.d.ts.map +1 -0
  40. package/dist/components/CheckboxGroup.js +198 -0
  41. package/dist/components/Chip.d.ts +9 -0
  42. package/dist/components/Chip.d.ts.map +1 -0
  43. package/dist/components/Chip.js +31 -0
  44. package/dist/components/CodeBlock.d.ts +30 -0
  45. package/dist/components/CodeBlock.d.ts.map +1 -0
  46. package/dist/components/CodeBlock.js +112 -0
  47. package/dist/components/Dropdown.d.ts +28 -0
  48. package/dist/components/Dropdown.d.ts.map +1 -0
  49. package/dist/components/Dropdown.js +50 -0
  50. package/dist/components/EventLanes.d.ts +93 -0
  51. package/dist/components/EventLanes.d.ts.map +1 -0
  52. package/dist/components/EventLanes.js +445 -0
  53. package/dist/components/FormGroup.d.ts +29 -0
  54. package/dist/components/FormGroup.d.ts.map +1 -0
  55. package/dist/components/FormGroup.js +48 -0
  56. package/dist/components/HighlightText.d.ts +15 -0
  57. package/dist/components/HighlightText.d.ts.map +1 -0
  58. package/dist/components/HighlightText.js +28 -0
  59. package/dist/components/Input.d.ts +35 -0
  60. package/dist/components/Input.d.ts.map +1 -0
  61. package/dist/components/Input.js +61 -0
  62. package/dist/components/Legend.d.ts +21 -0
  63. package/dist/components/Legend.d.ts.map +1 -0
  64. package/dist/components/Legend.js +61 -0
  65. package/dist/components/LightweightMarkdown.d.ts +3 -0
  66. package/dist/components/LightweightMarkdown.d.ts.map +1 -0
  67. package/dist/components/LightweightMarkdown.js +249 -0
  68. package/dist/components/MarkdownMinimap.d.ts +7 -0
  69. package/dist/components/MarkdownMinimap.d.ts.map +1 -0
  70. package/dist/components/MarkdownMinimap.js +84 -0
  71. package/dist/components/MarkdownViewer.d.ts +51 -0
  72. package/dist/components/MarkdownViewer.d.ts.map +1 -0
  73. package/dist/components/MarkdownViewer.js +455 -0
  74. package/dist/components/MermaidDiagram.d.ts +11 -0
  75. package/dist/components/MermaidDiagram.d.ts.map +1 -0
  76. package/dist/components/MermaidDiagram.js +119 -0
  77. package/dist/components/Modal.d.ts +13 -0
  78. package/dist/components/Modal.d.ts.map +1 -0
  79. package/dist/components/Modal.js +91 -0
  80. package/dist/components/Panel.d.ts +13 -0
  81. package/dist/components/Panel.d.ts.map +1 -0
  82. package/dist/components/Panel.js +44 -0
  83. package/dist/components/PulseBadge.d.ts +15 -0
  84. package/dist/components/PulseBadge.d.ts.map +1 -0
  85. package/dist/components/PulseBadge.js +22 -0
  86. package/dist/components/RadioGroup.d.ts +20 -0
  87. package/dist/components/RadioGroup.d.ts.map +1 -0
  88. package/dist/components/RadioGroup.js +63 -0
  89. package/dist/components/RichMarkdownRenderer.d.ts +10 -0
  90. package/dist/components/RichMarkdownRenderer.d.ts.map +1 -0
  91. package/dist/components/RichMarkdownRenderer.js +18 -0
  92. package/dist/components/SearchInput.d.ts +25 -0
  93. package/dist/components/SearchInput.d.ts.map +1 -0
  94. package/dist/components/SearchInput.js +92 -0
  95. package/dist/components/SectionedTree.d.ts +36 -0
  96. package/dist/components/SectionedTree.d.ts.map +1 -0
  97. package/dist/components/SectionedTree.js +173 -0
  98. package/dist/components/SegmentedControl.d.ts +16 -0
  99. package/dist/components/SegmentedControl.d.ts.map +1 -0
  100. package/dist/components/SegmentedControl.js +48 -0
  101. package/dist/components/Skeleton.d.ts +8 -0
  102. package/dist/components/Skeleton.d.ts.map +1 -0
  103. package/dist/components/Skeleton.js +25 -0
  104. package/dist/components/SplitPane.d.ts +16 -0
  105. package/dist/components/SplitPane.d.ts.map +1 -0
  106. package/dist/components/SplitPane.js +118 -0
  107. package/dist/components/StatusBadge.d.ts +15 -0
  108. package/dist/components/StatusBadge.d.ts.map +1 -0
  109. package/dist/components/StatusBadge.js +40 -0
  110. package/dist/components/StreamingText.d.ts +20 -0
  111. package/dist/components/StreamingText.d.ts.map +1 -0
  112. package/dist/components/StreamingText.js +50 -0
  113. package/dist/components/Table.d.ts +62 -0
  114. package/dist/components/Table.d.ts.map +1 -0
  115. package/dist/components/Table.js +256 -0
  116. package/dist/components/ThemeToggle.d.ts +11 -0
  117. package/dist/components/ThemeToggle.d.ts.map +1 -0
  118. package/dist/components/ThemeToggle.js +55 -0
  119. package/dist/components/Toast.d.ts +8 -0
  120. package/dist/components/Toast.d.ts.map +1 -0
  121. package/dist/components/Toast.js +51 -0
  122. package/dist/components/ToastContainer.d.ts +5 -0
  123. package/dist/components/ToastContainer.d.ts.map +1 -0
  124. package/dist/components/ToastContainer.js +29 -0
  125. package/dist/components/Tree.d.ts +50 -0
  126. package/dist/components/Tree.d.ts.map +1 -0
  127. package/dist/components/Tree.js +528 -0
  128. package/dist/components/TreeDnd.d.ts +18 -0
  129. package/dist/components/TreeDnd.d.ts.map +1 -0
  130. package/dist/components/TreeDnd.js +39 -0
  131. package/dist/index.d.ts +50 -0
  132. package/dist/index.d.ts.map +1 -0
  133. package/dist/index.js +35 -0
  134. package/dist/lib/accentToken.d.ts +3 -0
  135. package/dist/lib/accentToken.d.ts.map +1 -0
  136. package/dist/lib/accentToken.js +12 -0
  137. package/dist/lib/chartTheme.d.ts +45 -0
  138. package/dist/lib/chartTheme.d.ts.map +1 -0
  139. package/dist/lib/chartTheme.js +64 -0
  140. package/dist/lib/cn.d.ts +6 -0
  141. package/dist/lib/cn.d.ts.map +1 -0
  142. package/dist/lib/cn.js +11 -0
  143. package/dist/lib/forwardRefToRoot.d.ts +8 -0
  144. package/dist/lib/forwardRefToRoot.d.ts.map +1 -0
  145. package/dist/lib/forwardRefToRoot.js +18 -0
  146. package/dist/lib/markdownUrl.d.ts +5 -0
  147. package/dist/lib/markdownUrl.d.ts.map +1 -0
  148. package/dist/lib/markdownUrl.js +24 -0
  149. package/dist/lib/toast.d.ts +30 -0
  150. package/dist/lib/toast.d.ts.map +1 -0
  151. package/dist/lib/toast.js +34 -0
  152. package/dist/lib/useTheme.d.ts +22 -0
  153. package/dist/lib/useTheme.d.ts.map +1 -0
  154. package/dist/lib/useTheme.js +62 -0
  155. package/dist/markdown/rich.d.ts +10 -0
  156. package/dist/markdown/rich.d.ts.map +1 -0
  157. package/dist/markdown/rich.js +8 -0
  158. package/dist/markdown.d.ts +3 -0
  159. package/dist/markdown.d.ts.map +1 -0
  160. package/dist/markdown.js +2 -0
  161. package/dist/mermaid.d.ts +2 -0
  162. package/dist/mermaid.d.ts.map +1 -0
  163. package/dist/mermaid.js +2 -0
  164. package/dist/minimap.d.ts +2 -0
  165. package/dist/minimap.d.ts.map +1 -0
  166. package/dist/minimap.js +2 -0
  167. package/dist/styles/base.css +98 -0
  168. package/dist/styles/components/agent-status.css +52 -0
  169. package/dist/styles/components/agent-trace.css +206 -0
  170. package/dist/styles/components/app-shell.css +195 -0
  171. package/dist/styles/components/button.css +172 -0
  172. package/dist/styles/components/card-group.css +20 -0
  173. package/dist/styles/components/card.css +200 -0
  174. package/dist/styles/components/chart-frame.css +144 -0
  175. package/dist/styles/components/chart-tooltip.css +54 -0
  176. package/dist/styles/components/checkbox-group.css +281 -0
  177. package/dist/styles/components/chip.css +61 -0
  178. package/dist/styles/components/code-block.css +215 -0
  179. package/dist/styles/components/dropdown.css +131 -0
  180. package/dist/styles/components/event-lanes.css +159 -0
  181. package/dist/styles/components/form-group.css +34 -0
  182. package/dist/styles/components/highlight-text.css +17 -0
  183. package/dist/styles/components/input.css +168 -0
  184. package/dist/styles/components/legend.css +80 -0
  185. package/dist/styles/components/markdown-minimap.css +13 -0
  186. package/dist/styles/components/markdown-viewer.css +354 -0
  187. package/dist/styles/components/mermaid-diagram.css +8 -0
  188. package/dist/styles/components/modal.css +167 -0
  189. package/dist/styles/components/panel.css +126 -0
  190. package/dist/styles/components/pulse-badge.css +56 -0
  191. package/dist/styles/components/radio-group.css +89 -0
  192. package/dist/styles/components/search-input.css +153 -0
  193. package/dist/styles/components/sectioned-tree.css +183 -0
  194. package/dist/styles/components/segmented-control.css +54 -0
  195. package/dist/styles/components/skeleton.css +21 -0
  196. package/dist/styles/components/split-pane.css +78 -0
  197. package/dist/styles/components/status-badge.css +94 -0
  198. package/dist/styles/components/streaming-text.css +38 -0
  199. package/dist/styles/components/table.css +235 -0
  200. package/dist/styles/components/theme-toggle.css +123 -0
  201. package/dist/styles/components/toast-container.css +34 -0
  202. package/dist/styles/components/toast.css +169 -0
  203. package/dist/styles/components/tree.css +375 -0
  204. package/dist/styles/components.css +37 -0
  205. package/dist/styles/core.css +3 -0
  206. package/dist/styles/markdown-content.css +368 -0
  207. package/dist/styles/print.css +55 -0
  208. package/dist/styles/reset.css +202 -0
  209. package/dist/styles/syntax.css +62 -0
  210. package/dist/styles/tokens.css +344 -0
  211. package/dist/styles/utilities.css +7 -0
  212. package/dist/testing/index.d.ts +39 -0
  213. package/dist/testing/index.d.ts.map +1 -0
  214. package/dist/testing/index.js +119 -0
  215. package/package.json +138 -0
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,2 @@
1
+ Codesweep UI
2
+ Copyright 2026 CodeSweep Inc.
package/README.md ADDED
@@ -0,0 +1,124 @@
1
+ # @codesweep-ai/ui
2
+
3
+ [![ci](https://github.com/codesweep-ai/ui/actions/workflows/ci.yml/badge.svg)](https://github.com/codesweep-ai/ui/actions/workflows/ci.yml)
4
+ [![license: Apache-2.0](https://img.shields.io/badge/license-Apache_2.0-blue.svg)](https://github.com/codesweep-ai/ui/blob/main/LICENSE)
5
+ ![React](https://img.shields.io/badge/react-18%20%C2%B7%2019-informational)
6
+ ![Themes](https://img.shields.io/badge/themes-light%20%C2%B7%20dark-lightgrey)
7
+
8
+ > **Unbranded React components for agent and LLM interfaces, on a documented design token system.**
9
+
10
+ An application that runs tools and streams model output has to show things an
11
+ ordinary component library does not cover. Work in flight, a trace of what an
12
+ agent did, text arriving a token at a time. `AgentStatus`, `AgentTrace`,
13
+ `StreamingText` and `PulseBadge` handle those.
14
+
15
+ The rest of the package covers what any application needs anyway, so a project
16
+ rarely has to combine this set with another. Buttons, forms, tables, trees,
17
+ modals, Markdown, code, charts and a full application shell all ship with it.
18
+
19
+ Every value a component renders resolves through a CSS custom property rather
20
+ than a literal, and every one of those properties is documented. The defaults
21
+ are deliberately unbranded, so there is no other product's identity to strip out
22
+ before the components look like yours.
23
+
24
+ ## Quickstart
25
+
26
+ ```sh
27
+ npm install @codesweep-ai/ui react react-dom
28
+ ```
29
+
30
+ Load the core stylesheet and one sheet per component you render, then compose:
31
+
32
+ ```tsx
33
+ import "@codesweep-ai/ui/styles/core.css";
34
+ import "@codesweep-ai/ui/styles/components/agent-status.css";
35
+ import "@codesweep-ai/ui/styles/components/streaming-text.css";
36
+
37
+ import { AgentStatus, StreamingText } from "@codesweep-ai/ui";
38
+
39
+ export function RunStatus() {
40
+ return (
41
+ <section>
42
+ <AgentStatus state="in-flight">Analysing the repository…</AgentStatus>
43
+ <StreamingText text="I found the affected call sites." done />
44
+ </section>
45
+ );
46
+ }
47
+ ```
48
+
49
+ [INSTALL.md](https://github.com/codesweep-ai/ui/blob/main/INSTALL.md) has the rest: the prerequisites, which stylesheets a
50
+ project needs, and the boot script that applies a theme before React paints. To
51
+ look at the components before installing anything, start with the catalogue
52
+ app below.
53
+
54
+ ## Seeing it run
55
+
56
+ A catalogue app renders every component, in both themes and in each of its
57
+ states, alongside the composition patterns. Clone the repository and start it:
58
+
59
+ ```sh
60
+ npm install
61
+ npm run preview # http://localhost:25177
62
+ ```
63
+
64
+ That server reads the components from source, so an edit shows up without a
65
+ rebuild. There is a **Tokens** page rendering every scale as swatches, and a
66
+ **Palette Lab** panel that swaps candidate palettes live against real
67
+ components.
68
+
69
+ To build it as static files and serve those instead:
70
+
71
+ ```sh
72
+ npm run preview:build # writes preview/dist/
73
+ npm run preview:serve # http://localhost:4173
74
+ ```
75
+
76
+ `preview/dist/` is self-contained and uses relative asset paths, so it also
77
+ works from a domain root, from a sub-folder, or opened straight off the
78
+ filesystem.
79
+
80
+ ## Finding a component
81
+
82
+ The package ships dozens of components and patterns.
83
+ [CATALOG.md](https://github.com/codesweep-ai/ui/blob/main/CATALOG.md) indexes them by intent, so search it for what you are
84
+ building rather than scanning a list. Each entry links to that component's
85
+ specification under [`components/`](https://github.com/codesweep-ai/ui/tree/main/components), which holds its props, its
86
+ visual spec, and the DOM hooks it guarantees.
87
+
88
+ The catalogue also gives the order to decide in. Match an entry and compose it,
89
+ or extend the one that comes close. Add a new component only when nothing
90
+ fits.
91
+
92
+ ## Themes and tokens
93
+
94
+ Light and dark both ship. `ThemeToggle` renders the control, `useTheme` reads
95
+ and sets the value, and `themeBootScript` applies the stored choice before the
96
+ page paints. [MANUAL.md](https://github.com/codesweep-ai/ui/blob/main/MANUAL.md) covers all three.
97
+
98
+ The tokens beneath both themes cover colour, space, radius, type and elevation.
99
+ Every one is a CSS custom property, and section 4 of
100
+ [DESIGN_SYSTEM_SPEC.md](https://github.com/codesweep-ai/ui/blob/main/DESIGN_SYSTEM_SPEC.md) lists them. A component
101
+ stylesheet reads tokens and never literal values, which `npm run check`
102
+ enforces.
103
+
104
+ ## Docs
105
+
106
+ The documentation lives in the [codesweep-ai/ui](https://github.com/codesweep-ai/ui)
107
+ GitHub repository, and none of it ships in this package.
108
+
109
+ - [INSTALL.md](https://github.com/codesweep-ai/ui/blob/main/INSTALL.md) · getting the package, and the setup it needs once
110
+ - [MANUAL.md](https://github.com/codesweep-ai/ui/blob/main/MANUAL.md) · what the package exports, the entry points, theming and the DOM contract
111
+ - [CATALOG.md](https://github.com/codesweep-ai/ui/blob/main/CATALOG.md) · every component and pattern, indexed by intent
112
+ - [DESIGN_SYSTEM_SPEC.md](https://github.com/codesweep-ai/ui/blob/main/DESIGN_SYSTEM_SPEC.md) · the tokens, the architecture and the conventions
113
+ - [CONTRIBUTING.md](https://github.com/codesweep-ai/ui/blob/main/CONTRIBUTING.md) · working on the package
114
+ - [AGENTS.md](https://github.com/codesweep-ai/ui/blob/main/AGENTS.md) · where an agent looks first
115
+
116
+ ## Contributing
117
+
118
+ Bug reports and pull requests are welcome.
119
+ [CONTRIBUTING.md](https://github.com/codesweep-ai/ui/blob/main/CONTRIBUTING.md) says how to work on the package, and applies
120
+ to coding agents as well as to people.
121
+
122
+ ## License
123
+
124
+ [Apache-2.0](https://github.com/codesweep-ai/ui/blob/main/LICENSE).
@@ -0,0 +1 @@
1
+ {"sha":"856ea8f94ad828e1de541d33e9a784aede8d7c0c"}
@@ -0,0 +1,3 @@
1
+ export { ChartFrame } from "./components/ChartFrame";
2
+ export { ChartTooltip } from "./components/ChartTooltip";
3
+ //# sourceMappingURL=chart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../src/chart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC"}
package/dist/chart.js ADDED
@@ -0,0 +1,3 @@
1
+ import { ChartTooltip as e } from "./components/ChartTooltip.js";
2
+ import { ChartFrame as t } from "./components/ChartFrame.js";
3
+ export { t as ChartFrame, e as ChartTooltip };
package/dist/code.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { CodeBlock, registerCodeLanguage } from "./components/CodeBlock";
2
+ //# sourceMappingURL=code.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code.d.ts","sourceRoot":"","sources":["../src/code.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
package/dist/code.js ADDED
@@ -0,0 +1,2 @@
1
+ import { CodeBlock as e, registerCodeLanguage as t } from "./components/CodeBlock.js";
2
+ export { e as CodeBlock, t as registerCodeLanguage };
@@ -0,0 +1,15 @@
1
+ import type { ReactNode } from "react";
2
+ type AgentState = "in-flight" | "paused" | "settled" | "error";
3
+ interface AgentStatusProps {
4
+ /** Current activity state. Drives the leading indicator (pulse, icon) and color. */
5
+ state: AgentState;
6
+ /** Status text. Use a specific verb phrase: "Reading 142 files…", not "Loading…". */
7
+ children: ReactNode;
8
+ /** Optional icon override for "paused" or "settled". Ignored for "in-flight" (always PulseBadge). */
9
+ icon?: ReactNode;
10
+ /** Optional className on the row. */
11
+ className?: string;
12
+ }
13
+ export declare const AgentStatus: import("react").ForwardRefExoticComponent<AgentStatusProps & import("react").RefAttributes<HTMLDivElement>>;
14
+ export {};
15
+ //# sourceMappingURL=AgentStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentStatus.d.ts","sourceRoot":"","sources":["../../src/components/AgentStatus.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,KAAK,UAAU,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;AAE/D,UAAU,gBAAgB;IACxB,oFAAoF;IACpF,KAAK,EAAE,UAAU,CAAC;IAClB,qFAAqF;IACrF,QAAQ,EAAE,SAAS,CAAC;IACpB,qGAAqG;IACrG,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA8DD,eAAO,MAAM,WAAW,6GAAsE,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { forwardRefToRoot as e } from "../lib/forwardRefToRoot.js";
2
+ import { cn as t } from "../lib/cn.js";
3
+ import { PulseBadge as n } from "./PulseBadge.js";
4
+ import { AlertTriangle as r, CheckCircle2 as i, HelpCircle as a } from "lucide-react";
5
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
6
+ //#region src/components/AgentStatus.tsx
7
+ var c = {
8
+ paused: a,
9
+ settled: i,
10
+ error: r
11
+ }, l = {
12
+ paused: "cs-component-agent-status-11",
13
+ settled: "cs-component-agent-status-12",
14
+ error: "cs-component-agent-status-13"
15
+ };
16
+ function u({ state: e, children: r, icon: i, className: a }) {
17
+ let u = e === "in-flight" ? /* @__PURE__ */ o(n, { "aria-label": "Working" }) : i || (() => {
18
+ let n = c[e];
19
+ return /* @__PURE__ */ o(n, {
20
+ className: t("cs-component-agent-status-16 ", l[e]),
21
+ "aria-hidden": "true"
22
+ });
23
+ })();
24
+ return /* @__PURE__ */ s("div", {
25
+ "data-component": "AgentStatus",
26
+ "data-state": e,
27
+ role: "status",
28
+ "aria-live": "polite",
29
+ className: t("cs-component-agent-status-21 ", "cs-component-agent-status-22 ", a),
30
+ children: [u, /* @__PURE__ */ o("span", {
31
+ className: "cs-component-agent-status-23",
32
+ children: r
33
+ })]
34
+ });
35
+ }
36
+ var d = e(u);
37
+ //#endregion
38
+ export { d as AgentStatus };
@@ -0,0 +1,42 @@
1
+ import { type ReactNode } from "react";
2
+ export type AgentTraceStepStatus = "success" | "warning" | "error" | "info" | "in-flight";
3
+ export interface AgentTraceStep {
4
+ /** Stable id. */
5
+ id: string;
6
+ /** Outcome of the step (drives the leading icon). */
7
+ status: AgentTraceStepStatus;
8
+ /** Single-line summary of the step. */
9
+ label: string;
10
+ /** ISO timestamp or formatted string. Rendered right-aligned in `var(--muted)`. */
11
+ timestamp?: string;
12
+ /** Optional expandable detail (rendered when the row is expanded). */
13
+ detail?: ReactNode;
14
+ }
15
+ interface AgentTraceProps {
16
+ /** The list of steps (in order). */
17
+ steps?: AgentTraceStep[];
18
+ /** Render skeleton rows. */
19
+ loading?: boolean;
20
+ /** Skeleton count when loading. Default: 4 */
21
+ loadingRows?: number;
22
+ /** Render error state in place of steps. */
23
+ error?: Error | string | null;
24
+ /** Primary text for the error state. Default: "Something went wrong" */
25
+ errorMessage?: string;
26
+ /** Retry handler. When provided, an inline Retry button is rendered. */
27
+ onRetry?: () => void;
28
+ /** Primary text for the empty state. Default: "No activity yet." */
29
+ emptyMessage?: string;
30
+ /** Secondary text for the empty state. */
31
+ emptyHint?: string;
32
+ /** Optional CTA in the empty state. */
33
+ emptyAction?: {
34
+ label: string;
35
+ onClick: () => void;
36
+ };
37
+ /** Additional className on the wrapper. */
38
+ className?: string;
39
+ }
40
+ export declare const AgentTrace: import("react").ForwardRefExoticComponent<AgentTraceProps & import("react").RefAttributes<HTMLDivElement>>;
41
+ export {};
42
+ //# sourceMappingURL=AgentTrace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentTrace.d.ts","sourceRoot":"","sources":["../../src/components/AgentTrace.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAgBjD,MAAM,MAAM,oBAAoB,GAC5B,SAAS,GACT,SAAS,GACT,OAAO,GACP,MAAM,GACN,WAAW,CAAC;AAEhB,MAAM,WAAW,cAAc;IAC7B,iBAAiB;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,qDAAqD;IACrD,MAAM,EAAE,oBAAoB,CAAC;IAC7B,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,mFAAmF;IACnF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sEAAsE;IACtE,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AAED,UAAU,eAAe;IACvB,oCAAoC;IACpC,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC;IACzB,4BAA4B;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,8CAA8C;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,IAAI,CAAC;IAC9B,wEAAwE;IACxE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wEAAwE;IACxE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,oEAAoE;IACpE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uCAAuC;IACvC,WAAW,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC;IACrD,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAwMD,eAAO,MAAM,UAAU,4GAAoE,CAAC"}
@@ -0,0 +1,140 @@
1
+ "use client";
2
+ "use client";
3
+ import { forwardRefToRoot as e } from "../lib/forwardRefToRoot.js";
4
+ import { cn as t } from "../lib/cn.js";
5
+ import { PulseBadge as n } from "./PulseBadge.js";
6
+ import { Button as r } from "./Button.js";
7
+ import { Skeleton as i } from "./Skeleton.js";
8
+ import { useState as a } from "react";
9
+ import { AlertCircle as o, AlertTriangle as s, CheckCircle2 as c, ChevronDown as l, ChevronRight as u, Inbox as d, Info as f } from "lucide-react";
10
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
11
+ //#region src/components/AgentTrace.tsx
12
+ var h = {
13
+ success: c,
14
+ warning: s,
15
+ error: o,
16
+ info: f
17
+ }, g = {
18
+ success: "cs-component-agent-trace-14",
19
+ warning: "cs-component-agent-trace-15",
20
+ error: "cs-component-agent-trace-16",
21
+ info: "cs-component-agent-trace-17"
22
+ };
23
+ function _({ status: e }) {
24
+ if (e === "in-flight") return /* @__PURE__ */ p(n, { "aria-label": "In progress" });
25
+ let r = h[e];
26
+ return /* @__PURE__ */ p(r, {
27
+ className: t("cs-component-agent-trace-20 ", g[e]),
28
+ "aria-hidden": "true"
29
+ });
30
+ }
31
+ function v({ steps: e = [], loading: n = !1, loadingRows: a = 4, error: s = null, errorMessage: c = "Something went wrong", onRetry: l, emptyMessage: u = "No activity yet.", emptyHint: f, emptyAction: h, className: g }) {
32
+ let _ = t("cs-component-agent-trace-24 ", "cs-component-agent-trace-25 ", "cs-component-agent-trace-26", g);
33
+ if (n) return /* @__PURE__ */ p("div", {
34
+ "data-component": "AgentTrace",
35
+ "data-testid": "agenttrace-loading",
36
+ className: _,
37
+ children: Array.from({ length: a }).map((e, n) => /* @__PURE__ */ m("div", {
38
+ className: t("cs-component-agent-trace-29 ", "cs-component-agent-trace-30 ", n > 0 && "cs-component-agent-trace-31 "),
39
+ children: [/* @__PURE__ */ p(i, {
40
+ variant: "circle",
41
+ width: 14,
42
+ height: 14
43
+ }), /* @__PURE__ */ p(i, { width: "60%" })]
44
+ }, n))
45
+ });
46
+ if (s) {
47
+ let e = typeof s == "string" ? s : s.message;
48
+ return /* @__PURE__ */ p("div", {
49
+ "data-component": "AgentTrace",
50
+ "data-testid": "agenttrace-error",
51
+ className: t(_, "cs-component-agent-trace-37 "),
52
+ children: /* @__PURE__ */ m("div", {
53
+ className: "cs-component-agent-trace-38 ",
54
+ children: [
55
+ /* @__PURE__ */ p(o, { className: "cs-component-agent-trace-39 " }),
56
+ /* @__PURE__ */ p("span", {
57
+ className: "cs-component-agent-trace-40 ",
58
+ children: c
59
+ }),
60
+ e && /* @__PURE__ */ p("span", {
61
+ className: "cs-component-agent-trace-41 ",
62
+ children: e
63
+ }),
64
+ l && /* @__PURE__ */ p(r, {
65
+ variant: "secondary",
66
+ size: "sm",
67
+ onClick: l,
68
+ children: "Retry"
69
+ })
70
+ ]
71
+ })
72
+ });
73
+ }
74
+ return e.length === 0 ? /* @__PURE__ */ p("div", {
75
+ "data-component": "AgentTrace",
76
+ "data-testid": "agenttrace-empty",
77
+ className: t(_, "cs-component-agent-trace-37 "),
78
+ children: /* @__PURE__ */ m("div", {
79
+ className: "cs-component-agent-trace-38 ",
80
+ children: [
81
+ /* @__PURE__ */ p(d, { className: "cs-component-agent-trace-46 " }),
82
+ /* @__PURE__ */ p("span", {
83
+ className: "cs-component-agent-trace-40 ",
84
+ children: u
85
+ }),
86
+ f && /* @__PURE__ */ p("span", {
87
+ className: "cs-component-agent-trace-41 ",
88
+ children: f
89
+ }),
90
+ h && /* @__PURE__ */ p(r, {
91
+ variant: "secondary",
92
+ size: "sm",
93
+ onClick: h.onClick,
94
+ children: h.label
95
+ })
96
+ ]
97
+ })
98
+ }) : /* @__PURE__ */ p("div", {
99
+ "data-component": "AgentTrace",
100
+ className: _,
101
+ children: e.map((e, t) => /* @__PURE__ */ p(y, {
102
+ step: e,
103
+ isFirst: t === 0
104
+ }, e.id))
105
+ });
106
+ }
107
+ function y({ step: e, isFirst: n }) {
108
+ let [r, i] = a(!1), o = !!e.detail;
109
+ return /* @__PURE__ */ m("div", {
110
+ className: t(!n && "cs-component-agent-trace-31 "),
111
+ children: [/* @__PURE__ */ m("button", {
112
+ type: "button",
113
+ disabled: !o,
114
+ onClick: () => o && i((e) => !e),
115
+ "aria-expanded": o ? r : void 0,
116
+ className: t("cs-component-agent-trace-51 ", "cs-component-agent-trace-30 ", "cs-component-agent-trace-52 ", "cs-component-agent-trace-53", o ? "cs-component-agent-trace-54 " : "cs-component-agent-trace-55"),
117
+ children: [
118
+ o && /* @__PURE__ */ p("span", {
119
+ className: "cs-component-agent-trace-56 ",
120
+ children: p(r ? l : u, { className: "cs-component-agent-trace-57 " })
121
+ }),
122
+ /* @__PURE__ */ p(_, { status: e.status }),
123
+ /* @__PURE__ */ p("span", {
124
+ className: "cs-component-agent-trace-58 ",
125
+ children: e.label
126
+ }),
127
+ e.timestamp && /* @__PURE__ */ p("span", {
128
+ className: "cs-component-agent-trace-59 ",
129
+ children: e.timestamp
130
+ })
131
+ ]
132
+ }), o && r && /* @__PURE__ */ p("div", {
133
+ className: t("cs-component-agent-trace-60 ", "cs-component-agent-trace-41 ", "cs-component-agent-trace-61 "),
134
+ children: e.detail
135
+ })]
136
+ });
137
+ }
138
+ var b = e(v);
139
+ //#endregion
140
+ export { b as AgentTrace };
@@ -0,0 +1,29 @@
1
+ interface NavItem {
2
+ label: string;
3
+ href: string;
4
+ active?: boolean;
5
+ /** Optional group key — a separator is rendered between adjacent items with different groups. */
6
+ group?: string;
7
+ onClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
8
+ }
9
+ interface HeaderProps {
10
+ logoSrc?: string;
11
+ title: string;
12
+ titleHref?: string | null;
13
+ navItems?: NavItem[];
14
+ actions?: React.ReactNode;
15
+ className?: string;
16
+ }
17
+ interface FooterProps {
18
+ children?: React.ReactNode;
19
+ className?: string;
20
+ }
21
+ interface AppShellProps {
22
+ children: React.ReactNode;
23
+ className?: string;
24
+ }
25
+ export declare const Header: import("react").ForwardRefExoticComponent<HeaderProps & import("react").RefAttributes<HTMLElement>>;
26
+ export declare const Footer: import("react").ForwardRefExoticComponent<FooterProps & import("react").RefAttributes<HTMLElement>>;
27
+ export declare const AppShell: import("react").ForwardRefExoticComponent<AppShellProps & import("react").RefAttributes<HTMLDivElement>>;
28
+ export {};
29
+ //# sourceMappingURL=AppShell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppShell.d.ts","sourceRoot":"","sources":["../../src/components/AppShell.tsx"],"names":[],"mappings":"AAGA,UAAU,OAAO;IACf,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,iGAAiG;IACjG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CAC5D;AAED,UAAU,WAAW;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,WAAW;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,aAAa;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAgGD,eAAO,MAAM,MAAM,qGAAyD,CAAC;AAC7E,eAAO,MAAM,MAAM,qGAAyD,CAAC;AAC7E,eAAO,MAAM,QAAQ,0GAAgE,CAAC"}