@alwith/module-chat 0.1.0

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 (171) hide show
  1. package/LICENSE +94 -0
  2. package/README.md +54 -0
  3. package/THIRD_PARTY_NOTICES.md +43 -0
  4. package/dist/activity-host.d.ts +32 -0
  5. package/dist/activity-host.js +1 -0
  6. package/dist/approval/choice-elicitation-form.d.ts +15 -0
  7. package/dist/approval/choice-elicitation-form.js +1 -0
  8. package/dist/approval/choice-schema.d.ts +18 -0
  9. package/dist/approval/choice-schema.js +1 -0
  10. package/dist/approval/permission-options.d.ts +7 -0
  11. package/dist/approval/permission-options.js +1 -0
  12. package/dist/approval/permission-view.d.ts +19 -0
  13. package/dist/approval/permission-view.js +1 -0
  14. package/dist/approval/schema-elicitation-form.d.ts +29 -0
  15. package/dist/approval/schema-elicitation-form.js +1 -0
  16. package/dist/approval/url-elicitation-card.d.ts +8 -0
  17. package/dist/approval/url-elicitation-card.js +1 -0
  18. package/dist/codex/activity-group.d.ts +15 -0
  19. package/dist/codex/activity-group.js +6 -0
  20. package/dist/codex/assistant-message.d.ts +43 -0
  21. package/dist/codex/assistant-message.js +2 -0
  22. package/dist/codex/disclosure-state.d.ts +2 -0
  23. package/dist/codex/disclosure-state.js +1 -0
  24. package/dist/codex/edited-files-card.d.ts +15 -0
  25. package/dist/codex/edited-files-card.js +2 -0
  26. package/dist/codex/markdown-renderer.d.ts +11 -0
  27. package/dist/codex/markdown-renderer.js +6 -0
  28. package/dist/codex/markdown.css +760 -0
  29. package/dist/codex/navigation-audio.d.ts +18 -0
  30. package/dist/codex/navigation-audio.js +1 -0
  31. package/dist/codex/navigation-instruments.d.ts +54 -0
  32. package/dist/codex/navigation-instruments.js +1 -0
  33. package/dist/codex/navigation-preview.d.ts +8 -0
  34. package/dist/codex/navigation-preview.js +1 -0
  35. package/dist/codex/navigation-rail.css +216 -0
  36. package/dist/codex/navigation-rail.d.ts +25 -0
  37. package/dist/codex/navigation-rail.js +1 -0
  38. package/dist/codex/patch-view.d.ts +8 -0
  39. package/dist/codex/patch-view.js +2 -0
  40. package/dist/codex/plan.d.ts +4 -0
  41. package/dist/codex/plan.js +1 -0
  42. package/dist/codex/styles.css +1238 -0
  43. package/dist/codex/terminal-output.d.ts +3 -0
  44. package/dist/codex/terminal-output.js +1 -0
  45. package/dist/codex/thread-virtualizer.d.ts +52 -0
  46. package/dist/codex/thread-virtualizer.js +1 -0
  47. package/dist/codex/user-message.d.ts +30 -0
  48. package/dist/codex/user-message.js +1 -0
  49. package/dist/codex/virtualized-turn-list.d.ts +16 -0
  50. package/dist/codex/virtualized-turn-list.js +1 -0
  51. package/dist/composer/completion-filter.d.ts +12 -0
  52. package/dist/composer/completion-filter.js +1 -0
  53. package/dist/composer/completion-menu.d.ts +21 -0
  54. package/dist/composer/completion-menu.js +3 -0
  55. package/dist/composer/completion-trigger.d.ts +8 -0
  56. package/dist/composer/completion-trigger.js +3 -0
  57. package/dist/composer/effort-slider.d.ts +10 -0
  58. package/dist/composer/effort-slider.js +1 -0
  59. package/dist/composer/menu-radio.d.ts +15 -0
  60. package/dist/composer/menu-radio.js +1 -0
  61. package/dist/composer/model-select.d.ts +56 -0
  62. package/dist/composer/model-select.js +1 -0
  63. package/dist/composer/permission-mode-select.d.ts +13 -0
  64. package/dist/composer/permission-mode-select.js +1 -0
  65. package/dist/composer/prompt-input-attachments.d.ts +16 -0
  66. package/dist/composer/prompt-input-attachments.js +1 -0
  67. package/dist/composer/prompt-input-clipboard.d.ts +10 -0
  68. package/dist/composer/prompt-input-clipboard.js +1 -0
  69. package/dist/composer/prompt-input-context.d.ts +59 -0
  70. package/dist/composer/prompt-input-context.js +1 -0
  71. package/dist/composer/prompt-input-textarea.d.ts +13 -0
  72. package/dist/composer/prompt-input-textarea.js +3 -0
  73. package/dist/composer/prompt-input.d.ts +44 -0
  74. package/dist/composer/prompt-input.js +1 -0
  75. package/dist/image-lightbox.d.ts +5 -0
  76. package/dist/image-lightbox.js +1 -0
  77. package/dist/image-preview-dialog.d.ts +14 -0
  78. package/dist/image-preview-dialog.js +1 -0
  79. package/dist/lib/code-highlighter.d.ts +27 -0
  80. package/dist/lib/code-highlighter.js +1 -0
  81. package/dist/lib/code-highlighter.worker.d.ts +1 -0
  82. package/dist/lib/code-highlighter.worker.js +1 -0
  83. package/dist/lib/fuzzy.d.ts +11 -0
  84. package/dist/lib/fuzzy.js +1 -0
  85. package/dist/lib/group-blocks.d.ts +5 -0
  86. package/dist/lib/group-blocks.js +1 -0
  87. package/dist/lib/image-encode.d.ts +1 -0
  88. package/dist/lib/image-encode.js +1 -0
  89. package/dist/lib/limits.d.ts +5 -0
  90. package/dist/lib/limits.js +1 -0
  91. package/dist/lib/markdown-parser.d.ts +34 -0
  92. package/dist/lib/markdown-parser.js +1 -0
  93. package/dist/lib/markdown-parser.worker.d.ts +1 -0
  94. package/dist/lib/markdown-parser.worker.js +1 -0
  95. package/dist/lib/markdown-rules.d.ts +9 -0
  96. package/dist/lib/markdown-rules.js +1 -0
  97. package/dist/lib/pointer-centered-zoom.d.ts +13 -0
  98. package/dist/lib/pointer-centered-zoom.js +1 -0
  99. package/dist/lib/prepare-prompt-files.d.ts +7 -0
  100. package/dist/lib/prepare-prompt-files.js +1 -0
  101. package/dist/lib/stream-entry.d.ts +28 -0
  102. package/dist/lib/stream-entry.js +0 -0
  103. package/dist/lib/stream-style.d.ts +15 -0
  104. package/dist/lib/stream-style.js +2 -0
  105. package/dist/lib/streaming-markdown.d.ts +4 -0
  106. package/dist/lib/streaming-markdown.js +2 -0
  107. package/dist/locales.d.ts +489 -0
  108. package/dist/locales.js +1 -0
  109. package/dist/search/chat-search.d.ts +19 -0
  110. package/dist/search/chat-search.js +1 -0
  111. package/dist/search/dom-matches.d.ts +1 -0
  112. package/dist/search/dom-matches.js +1 -0
  113. package/dist/search/find-bar.d.ts +14 -0
  114. package/dist/search/find-bar.js +1 -0
  115. package/dist/search/literal-matches.d.ts +12 -0
  116. package/dist/search/literal-matches.js +1 -0
  117. package/dist/types.d.ts +139 -0
  118. package/dist/types.js +0 -0
  119. package/dist/ui/badge.d.ts +7 -0
  120. package/dist/ui/badge.js +1 -0
  121. package/dist/ui/button.d.ts +8 -0
  122. package/dist/ui/button.js +1 -0
  123. package/dist/ui/card.d.ts +11 -0
  124. package/dist/ui/card.js +1 -0
  125. package/dist/ui/checkbox.d.ts +3 -0
  126. package/dist/ui/checkbox.js +1 -0
  127. package/dist/ui/dialog.d.ts +17 -0
  128. package/dist/ui/dialog.js +1 -0
  129. package/dist/ui/dropdown-menu.d.ts +29 -0
  130. package/dist/ui/dropdown-menu.js +1 -0
  131. package/dist/ui/field.d.ts +24 -0
  132. package/dist/ui/field.js +1 -0
  133. package/dist/ui/hover-card.d.ts +5 -0
  134. package/dist/ui/hover-card.js +1 -0
  135. package/dist/ui/input-group-textarea.d.ts +2 -0
  136. package/dist/ui/input-group-textarea.js +1 -0
  137. package/dist/ui/input-group.d.ts +17 -0
  138. package/dist/ui/input-group.js +1 -0
  139. package/dist/ui/input.d.ts +3 -0
  140. package/dist/ui/input.js +1 -0
  141. package/dist/ui/label.d.ts +3 -0
  142. package/dist/ui/label.js +1 -0
  143. package/dist/ui/radio-group.d.ts +5 -0
  144. package/dist/ui/radio-group.js +1 -0
  145. package/dist/ui/separator.d.ts +3 -0
  146. package/dist/ui/separator.js +1 -0
  147. package/dist/ui/switch.d.ts +5 -0
  148. package/dist/ui/switch.js +1 -0
  149. package/dist/ui/textarea.d.ts +3 -0
  150. package/dist/ui/textarea.js +1 -0
  151. package/dist/ui/tooltip.d.ts +6 -0
  152. package/dist/ui/tooltip.js +1 -0
  153. package/licenses/Apache-2.0.txt +191 -0
  154. package/licenses/_agentclientprotocol_sdk-LICENSE +191 -0
  155. package/licenses/_base-ui_react-LICENSE +21 -0
  156. package/licenses/_floating-ui_dom-LICENSE +20 -0
  157. package/licenses/ai-elements-notice.txt +13 -0
  158. package/licenses/ansi_up-LICENSE +22 -0
  159. package/licenses/class-variance-authority-LICENSE +190 -0
  160. package/licenses/cn-LICENSE +21 -0
  161. package/licenses/diff2html-LICENSE.md +14 -0
  162. package/licenses/entities-LICENSE +11 -0
  163. package/licenses/highlight.js-LICENSE +29 -0
  164. package/licenses/katex-LICENSE +21 -0
  165. package/licenses/lucide-react-LICENSE +43 -0
  166. package/licenses/marked-LICENSE +44 -0
  167. package/licenses/marked-linkify-it-LICENSE +21 -0
  168. package/licenses/react-LICENSE +21 -0
  169. package/licenses/react-dom-LICENSE +21 -0
  170. package/licenses/shadcn-ui-MIT.txt +21 -0
  171. package/package.json +314 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 shadcn
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,14 @@
1
+ Copyright 2014-2016 Rodrigo Fernandes https://rtfpessoa.github.io/
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
4
+ documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
5
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
6
+ persons to whom the Software is furnished to do so, subject to the following conditions:
7
+
8
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
9
+ Software.
10
+
11
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
12
+ WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
13
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
14
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,11 @@
1
+ Copyright (c) Felix Böhm
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5
+
6
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7
+
8
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9
+
10
+ THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS,
11
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2006, Ivan Sagalaev.
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ * Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ * Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ * Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2013-2020 Khan Academy and other contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,43 @@
1
+ ISC License
2
+
3
+ Copyright (c) 2026 Lucide Icons and Contributors
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16
+
17
+ ---
18
+
19
+ The following Lucide icons are derived from the Feather project:
20
+
21
+ airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
22
+
23
+ The MIT License (MIT) (for the icons listed above)
24
+
25
+ Copyright (c) 2013-present Cole Bemis
26
+
27
+ Permission is hereby granted, free of charge, to any person obtaining a copy
28
+ of this software and associated documentation files (the "Software"), to deal
29
+ in the Software without restriction, including without limitation the rights
30
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
31
+ copies of the Software, and to permit persons to whom the Software is
32
+ furnished to do so, subject to the following conditions:
33
+
34
+ The above copyright notice and this permission notice shall be included in all
35
+ copies or substantial portions of the Software.
36
+
37
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
38
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
39
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
40
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
41
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
42
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
43
+ SOFTWARE.
@@ -0,0 +1,44 @@
1
+ # License information
2
+
3
+ ## Contribution License Agreement
4
+
5
+ If you contribute code to this project, you are implicitly allowing your code
6
+ to be distributed under the MIT license. You are also implicitly verifying that
7
+ all code is your original work. `</legalese>`
8
+
9
+ ## Marked
10
+
11
+ Copyright (c) 2018+, MarkedJS (https://github.com/markedjs/)
12
+ Copyright (c) 2011-2018, Christopher Jeffrey (https://github.com/chjj/)
13
+
14
+ Permission is hereby granted, free of charge, to any person obtaining a copy
15
+ of this software and associated documentation files (the "Software"), to deal
16
+ in the Software without restriction, including without limitation the rights
17
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18
+ copies of the Software, and to permit persons to whom the Software is
19
+ furnished to do so, subject to the following conditions:
20
+
21
+ The above copyright notice and this permission notice shall be included in
22
+ all copies or substantial portions of the Software.
23
+
24
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
30
+ THE SOFTWARE.
31
+
32
+ ## Markdown
33
+
34
+ Copyright © 2004, John Gruber
35
+ http://daringfireball.net/
36
+ All rights reserved.
37
+
38
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
39
+
40
+ * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
41
+ * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
42
+ * Neither the name “Markdown” nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
43
+
44
+ This software is provided by the copyright holders and contributors “as is” and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright owner or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Tony Brix
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Meta Platforms, Inc. and affiliates.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Meta Platforms, Inc. and affiliates.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 shadcn
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/package.json ADDED
@@ -0,0 +1,314 @@
1
+ {
2
+ "name": "@alwith/module-chat",
3
+ "version": "0.1.0",
4
+ "private": false,
5
+ "type": "module",
6
+ "exports": {
7
+ "./markdown-parser.worker": {
8
+ "types": "./dist/lib/markdown-parser.worker.d.ts",
9
+ "import": "./dist/lib/markdown-parser.worker.js",
10
+ "default": "./dist/lib/markdown-parser.worker.js"
11
+ },
12
+ "./markdown-parser": {
13
+ "types": "./dist/lib/markdown-parser.d.ts",
14
+ "import": "./dist/lib/markdown-parser.js",
15
+ "default": "./dist/lib/markdown-parser.js"
16
+ },
17
+ "./code-highlighter": {
18
+ "types": "./dist/lib/code-highlighter.d.ts",
19
+ "import": "./dist/lib/code-highlighter.js",
20
+ "default": "./dist/lib/code-highlighter.js"
21
+ },
22
+ "./thread-virtualizer": {
23
+ "types": "./dist/codex/thread-virtualizer.d.ts",
24
+ "import": "./dist/codex/thread-virtualizer.js",
25
+ "default": "./dist/codex/thread-virtualizer.js"
26
+ },
27
+ "./virtualized-turn-list": {
28
+ "types": "./dist/codex/virtualized-turn-list.d.ts",
29
+ "import": "./dist/codex/virtualized-turn-list.js",
30
+ "default": "./dist/codex/virtualized-turn-list.js"
31
+ },
32
+ "./markdown": {
33
+ "types": "./dist/codex/markdown-renderer.d.ts",
34
+ "import": "./dist/codex/markdown-renderer.js",
35
+ "default": "./dist/codex/markdown-renderer.js"
36
+ },
37
+ "./markdown.css": "./dist/codex/markdown.css",
38
+ "./markdown-rules": {
39
+ "types": "./dist/lib/markdown-rules.d.ts",
40
+ "import": "./dist/lib/markdown-rules.js",
41
+ "default": "./dist/lib/markdown-rules.js"
42
+ },
43
+ "./streaming-markdown": {
44
+ "types": "./dist/lib/streaming-markdown.d.ts",
45
+ "import": "./dist/lib/streaming-markdown.js",
46
+ "default": "./dist/lib/streaming-markdown.js"
47
+ },
48
+ "./group-blocks": {
49
+ "types": "./dist/lib/group-blocks.d.ts",
50
+ "import": "./dist/lib/group-blocks.js",
51
+ "default": "./dist/lib/group-blocks.js"
52
+ },
53
+ "./stream-style": {
54
+ "types": "./dist/lib/stream-style.d.ts",
55
+ "import": "./dist/lib/stream-style.js",
56
+ "default": "./dist/lib/stream-style.js"
57
+ },
58
+ "./stream-entry": {
59
+ "types": "./dist/lib/stream-entry.d.ts",
60
+ "import": "./dist/lib/stream-entry.js",
61
+ "default": "./dist/lib/stream-entry.js"
62
+ },
63
+ "./types": {
64
+ "types": "./dist/types.d.ts",
65
+ "import": "./dist/types.js",
66
+ "default": "./dist/types.js"
67
+ },
68
+ "./activity": {
69
+ "types": "./dist/codex/activity-group.d.ts",
70
+ "import": "./dist/codex/activity-group.js",
71
+ "default": "./dist/codex/activity-group.js"
72
+ },
73
+ "./activity-host": {
74
+ "types": "./dist/activity-host.d.ts",
75
+ "import": "./dist/activity-host.js",
76
+ "default": "./dist/activity-host.js"
77
+ },
78
+ "./plan": {
79
+ "types": "./dist/codex/plan.d.ts",
80
+ "import": "./dist/codex/plan.js",
81
+ "default": "./dist/codex/plan.js"
82
+ },
83
+ "./disclosure-state": {
84
+ "types": "./dist/codex/disclosure-state.d.ts",
85
+ "import": "./dist/codex/disclosure-state.js",
86
+ "default": "./dist/codex/disclosure-state.js"
87
+ },
88
+ "./styles.css": "./dist/codex/styles.css",
89
+ "./composer-context": {
90
+ "types": "./dist/composer/prompt-input-context.d.ts",
91
+ "import": "./dist/composer/prompt-input-context.js",
92
+ "default": "./dist/composer/prompt-input-context.js"
93
+ },
94
+ "./composer-clipboard": {
95
+ "types": "./dist/composer/prompt-input-clipboard.d.ts",
96
+ "import": "./dist/composer/prompt-input-clipboard.js",
97
+ "default": "./dist/composer/prompt-input-clipboard.js"
98
+ },
99
+ "./composer-textarea": {
100
+ "types": "./dist/composer/prompt-input-textarea.d.ts",
101
+ "import": "./dist/composer/prompt-input-textarea.js",
102
+ "default": "./dist/composer/prompt-input-textarea.js"
103
+ },
104
+ "./patch-view": {
105
+ "types": "./dist/codex/patch-view.d.ts",
106
+ "import": "./dist/codex/patch-view.js",
107
+ "default": "./dist/codex/patch-view.js"
108
+ },
109
+ "./terminal-output": {
110
+ "types": "./dist/codex/terminal-output.d.ts",
111
+ "import": "./dist/codex/terminal-output.js",
112
+ "default": "./dist/codex/terminal-output.js"
113
+ },
114
+ "./locales": {
115
+ "types": "./dist/locales.d.ts",
116
+ "import": "./dist/locales.js",
117
+ "default": "./dist/locales.js"
118
+ },
119
+ "./user-message": {
120
+ "types": "./dist/codex/user-message.d.ts",
121
+ "import": "./dist/codex/user-message.js",
122
+ "default": "./dist/codex/user-message.js"
123
+ },
124
+ "./image-lightbox": {
125
+ "types": "./dist/image-lightbox.d.ts",
126
+ "import": "./dist/image-lightbox.js",
127
+ "default": "./dist/image-lightbox.js"
128
+ },
129
+ "./assistant-message": {
130
+ "types": "./dist/codex/assistant-message.d.ts",
131
+ "import": "./dist/codex/assistant-message.js",
132
+ "default": "./dist/codex/assistant-message.js"
133
+ },
134
+ "./edited-files-card": {
135
+ "types": "./dist/codex/edited-files-card.d.ts",
136
+ "import": "./dist/codex/edited-files-card.js",
137
+ "default": "./dist/codex/edited-files-card.js"
138
+ },
139
+ "./composer": {
140
+ "types": "./dist/composer/prompt-input.d.ts",
141
+ "import": "./dist/composer/prompt-input.js",
142
+ "default": "./dist/composer/prompt-input.js"
143
+ },
144
+ "./image-encode": {
145
+ "types": "./dist/lib/image-encode.d.ts",
146
+ "import": "./dist/lib/image-encode.js",
147
+ "default": "./dist/lib/image-encode.js"
148
+ },
149
+ "./prepare-prompt-files": {
150
+ "types": "./dist/lib/prepare-prompt-files.d.ts",
151
+ "import": "./dist/lib/prepare-prompt-files.js",
152
+ "default": "./dist/lib/prepare-prompt-files.js"
153
+ },
154
+ "./limits": {
155
+ "types": "./dist/lib/limits.d.ts",
156
+ "import": "./dist/lib/limits.js",
157
+ "default": "./dist/lib/limits.js"
158
+ },
159
+ "./composer-attachments": {
160
+ "types": "./dist/composer/prompt-input-attachments.d.ts",
161
+ "import": "./dist/composer/prompt-input-attachments.js",
162
+ "default": "./dist/composer/prompt-input-attachments.js"
163
+ },
164
+ "./image-preview-dialog": {
165
+ "types": "./dist/image-preview-dialog.d.ts",
166
+ "import": "./dist/image-preview-dialog.js",
167
+ "default": "./dist/image-preview-dialog.js"
168
+ },
169
+ "./pointer-centered-zoom": {
170
+ "types": "./dist/lib/pointer-centered-zoom.d.ts",
171
+ "import": "./dist/lib/pointer-centered-zoom.js",
172
+ "default": "./dist/lib/pointer-centered-zoom.js"
173
+ },
174
+ "./permission-view": {
175
+ "types": "./dist/approval/permission-view.d.ts",
176
+ "import": "./dist/approval/permission-view.js",
177
+ "default": "./dist/approval/permission-view.js"
178
+ },
179
+ "./permission-options": {
180
+ "types": "./dist/approval/permission-options.d.ts",
181
+ "import": "./dist/approval/permission-options.js",
182
+ "default": "./dist/approval/permission-options.js"
183
+ },
184
+ "./choice-elicitation-form": {
185
+ "types": "./dist/approval/choice-elicitation-form.d.ts",
186
+ "import": "./dist/approval/choice-elicitation-form.js",
187
+ "default": "./dist/approval/choice-elicitation-form.js"
188
+ },
189
+ "./choice-schema": {
190
+ "types": "./dist/approval/choice-schema.d.ts",
191
+ "import": "./dist/approval/choice-schema.js",
192
+ "default": "./dist/approval/choice-schema.js"
193
+ },
194
+ "./schema-elicitation-form": {
195
+ "types": "./dist/approval/schema-elicitation-form.d.ts",
196
+ "import": "./dist/approval/schema-elicitation-form.js",
197
+ "default": "./dist/approval/schema-elicitation-form.js"
198
+ },
199
+ "./url-elicitation-card": {
200
+ "types": "./dist/approval/url-elicitation-card.d.ts",
201
+ "import": "./dist/approval/url-elicitation-card.js",
202
+ "default": "./dist/approval/url-elicitation-card.js"
203
+ },
204
+ "./search": {
205
+ "types": "./dist/search/chat-search.d.ts",
206
+ "import": "./dist/search/chat-search.js",
207
+ "default": "./dist/search/chat-search.js"
208
+ },
209
+ "./completion-trigger": {
210
+ "types": "./dist/composer/completion-trigger.d.ts",
211
+ "import": "./dist/composer/completion-trigger.js",
212
+ "default": "./dist/composer/completion-trigger.js"
213
+ },
214
+ "./completion-filter": {
215
+ "types": "./dist/composer/completion-filter.d.ts",
216
+ "import": "./dist/composer/completion-filter.js",
217
+ "default": "./dist/composer/completion-filter.js"
218
+ },
219
+ "./fuzzy": {
220
+ "types": "./dist/lib/fuzzy.d.ts",
221
+ "import": "./dist/lib/fuzzy.js",
222
+ "default": "./dist/lib/fuzzy.js"
223
+ },
224
+ "./completion-menu": {
225
+ "types": "./dist/composer/completion-menu.d.ts",
226
+ "import": "./dist/composer/completion-menu.js",
227
+ "default": "./dist/composer/completion-menu.js"
228
+ },
229
+ "./permission-mode-select": {
230
+ "types": "./dist/composer/permission-mode-select.d.ts",
231
+ "import": "./dist/composer/permission-mode-select.js",
232
+ "default": "./dist/composer/permission-mode-select.js"
233
+ },
234
+ "./effort-slider": {
235
+ "types": "./dist/composer/effort-slider.d.ts",
236
+ "import": "./dist/composer/effort-slider.js",
237
+ "default": "./dist/composer/effort-slider.js"
238
+ },
239
+ "./model-select": {
240
+ "types": "./dist/composer/model-select.d.ts",
241
+ "import": "./dist/composer/model-select.js",
242
+ "default": "./dist/composer/model-select.js"
243
+ },
244
+ "./search-source": {
245
+ "types": "./dist/search/literal-matches.d.ts",
246
+ "import": "./dist/search/literal-matches.js",
247
+ "default": "./dist/search/literal-matches.js"
248
+ },
249
+ "./navigation-rail": {
250
+ "types": "./dist/codex/navigation-rail.d.ts",
251
+ "import": "./dist/codex/navigation-rail.js",
252
+ "default": "./dist/codex/navigation-rail.js"
253
+ },
254
+ "./navigation-audio": {
255
+ "types": "./dist/codex/navigation-audio.d.ts",
256
+ "import": "./dist/codex/navigation-audio.js",
257
+ "default": "./dist/codex/navigation-audio.js"
258
+ },
259
+ "./navigation-instruments": {
260
+ "types": "./dist/codex/navigation-instruments.d.ts",
261
+ "import": "./dist/codex/navigation-instruments.js",
262
+ "default": "./dist/codex/navigation-instruments.js"
263
+ }
264
+ },
265
+ "peerDependencies": {
266
+ "react": "^19.3.0",
267
+ "@agentclientprotocol/sdk": "^1.4.0",
268
+ "react-dom": "^19.3.0",
269
+ "@alwith/api": "^0.1.0"
270
+ },
271
+ "files": [
272
+ "dist",
273
+ "README.md",
274
+ "LICENSE",
275
+ "THIRD_PARTY_NOTICES.md",
276
+ "licenses"
277
+ ],
278
+ "scripts": {
279
+ "test": "bun test src",
280
+ "typecheck": "tsc --noEmit",
281
+ "build": "bun ../../scripts/build-npm.ts",
282
+ "prepack": "bun run build"
283
+ },
284
+ "devDependencies": {
285
+ "@types/react": "^19.3.0",
286
+ "typescript": "^7.0.2",
287
+ "@types/react-dom": "^19.3.0"
288
+ },
289
+ "dependencies": {
290
+ "entities": "^8.1.0",
291
+ "highlight.js": "^11.12.0",
292
+ "katex": "^0.18.7",
293
+ "lucide-react": "^1.46.0",
294
+ "marked": "^18.0.13",
295
+ "marked-linkify-it": "^4.0.2",
296
+ "cn": "^0.3.0",
297
+ "ansi_up": "^6.0.6",
298
+ "diff2html": "^3.4.56",
299
+ "@base-ui/react": "^1.8.0",
300
+ "class-variance-authority": "^0.7.1",
301
+ "@floating-ui/dom": "^1.8.0",
302
+ "smplr": "^1.0.0"
303
+ },
304
+ "license": "SEE LICENSE IN LICENSE",
305
+ "publishConfig": {
306
+ "access": "public",
307
+ "registry": "https://registry.npmjs.org/"
308
+ },
309
+ "repository": {
310
+ "type": "git",
311
+ "url": "git+https://github.com/ALwith-ai/alwith-modules.git",
312
+ "directory": "packages/chat"
313
+ }
314
+ }