@onpoint-dev-tools/crewcoder-opentui 0.0.0-stage → 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 (325) hide show
  1. package/LICENSE +191 -0
  2. package/README.md +262 -2
  3. package/THIRD_PARTY_NOTICES.md +51 -0
  4. package/dist/App.d.ts +16 -0
  5. package/dist/App.d.ts.map +1 -0
  6. package/dist/App.js +428 -0
  7. package/dist/App.js.map +1 -0
  8. package/dist/Root.d.ts +11 -0
  9. package/dist/Root.d.ts.map +1 -0
  10. package/dist/Root.js +13 -0
  11. package/dist/Root.js.map +1 -0
  12. package/dist/alert-model.d.ts +31 -0
  13. package/dist/alert-model.d.ts.map +1 -0
  14. package/dist/alert-model.js +34 -0
  15. package/dist/alert-model.js.map +1 -0
  16. package/dist/args.d.ts +13 -0
  17. package/dist/args.d.ts.map +1 -0
  18. package/dist/args.js +63 -0
  19. package/dist/args.js.map +1 -0
  20. package/dist/attachments.d.ts +29 -0
  21. package/dist/attachments.d.ts.map +1 -0
  22. package/dist/attachments.js +38 -0
  23. package/dist/attachments.js.map +1 -0
  24. package/dist/block-panels.d.ts +43 -0
  25. package/dist/block-panels.d.ts.map +1 -0
  26. package/dist/block-panels.js +210 -0
  27. package/dist/block-panels.js.map +1 -0
  28. package/dist/cli.d.ts +3 -0
  29. package/dist/cli.d.ts.map +1 -0
  30. package/dist/cli.js +138 -0
  31. package/dist/cli.js.map +1 -0
  32. package/dist/command-format.d.ts +18 -0
  33. package/dist/command-format.d.ts.map +1 -0
  34. package/dist/command-format.js +66 -0
  35. package/dist/command-format.js.map +1 -0
  36. package/dist/command-runner.d.ts +128 -0
  37. package/dist/command-runner.d.ts.map +1 -0
  38. package/dist/command-runner.js +571 -0
  39. package/dist/command-runner.js.map +1 -0
  40. package/dist/commands.d.ts +47 -0
  41. package/dist/commands.d.ts.map +1 -0
  42. package/dist/commands.js +108 -0
  43. package/dist/commands.js.map +1 -0
  44. package/dist/components/AttachmentRow.d.ts +11 -0
  45. package/dist/components/AttachmentRow.d.ts.map +1 -0
  46. package/dist/components/AttachmentRow.js +17 -0
  47. package/dist/components/AttachmentRow.js.map +1 -0
  48. package/dist/components/Composer.d.ts +23 -0
  49. package/dist/components/Composer.d.ts.map +1 -0
  50. package/dist/components/Composer.js +45 -0
  51. package/dist/components/Composer.js.map +1 -0
  52. package/dist/components/ExtensionQuestion.d.ts +18 -0
  53. package/dist/components/ExtensionQuestion.d.ts.map +1 -0
  54. package/dist/components/ExtensionQuestion.js +45 -0
  55. package/dist/components/ExtensionQuestion.js.map +1 -0
  56. package/dist/components/GoalForm.d.ts +18 -0
  57. package/dist/components/GoalForm.d.ts.map +1 -0
  58. package/dist/components/GoalForm.js +26 -0
  59. package/dist/components/GoalForm.js.map +1 -0
  60. package/dist/components/Home.d.ts +21 -0
  61. package/dist/components/Home.d.ts.map +1 -0
  62. package/dist/components/Home.js +48 -0
  63. package/dist/components/Home.js.map +1 -0
  64. package/dist/components/MentionList.d.ts +14 -0
  65. package/dist/components/MentionList.d.ts.map +1 -0
  66. package/dist/components/MentionList.js +24 -0
  67. package/dist/components/MentionList.js.map +1 -0
  68. package/dist/components/SearchBar.d.ts +19 -0
  69. package/dist/components/SearchBar.d.ts.map +1 -0
  70. package/dist/components/SearchBar.js +28 -0
  71. package/dist/components/SearchBar.js.map +1 -0
  72. package/dist/components/Sidebar.d.ts +19 -0
  73. package/dist/components/Sidebar.d.ts.map +1 -0
  74. package/dist/components/Sidebar.js +35 -0
  75. package/dist/components/Sidebar.js.map +1 -0
  76. package/dist/components/SummaryEditor.d.ts +16 -0
  77. package/dist/components/SummaryEditor.d.ts.map +1 -0
  78. package/dist/components/SummaryEditor.js +21 -0
  79. package/dist/components/SummaryEditor.js.map +1 -0
  80. package/dist/components/Transcript.d.ts +37 -0
  81. package/dist/components/Transcript.d.ts.map +1 -0
  82. package/dist/components/Transcript.js +314 -0
  83. package/dist/components/Transcript.js.map +1 -0
  84. package/dist/components/ui/alert.d.ts +9 -0
  85. package/dist/components/ui/alert.d.ts.map +1 -0
  86. package/dist/components/ui/alert.js +18 -0
  87. package/dist/components/ui/alert.js.map +1 -0
  88. package/dist/components/ui/command-palette.d.ts +15 -0
  89. package/dist/components/ui/command-palette.d.ts.map +1 -0
  90. package/dist/components/ui/command-palette.js +14 -0
  91. package/dist/components/ui/command-palette.js.map +1 -0
  92. package/dist/components/ui/confirm.d.ts +12 -0
  93. package/dist/components/ui/confirm.d.ts.map +1 -0
  94. package/dist/components/ui/confirm.js +16 -0
  95. package/dist/components/ui/confirm.js.map +1 -0
  96. package/dist/components/ui/select.d.ts +11 -0
  97. package/dist/components/ui/select.d.ts.map +1 -0
  98. package/dist/components/ui/select.js +29 -0
  99. package/dist/components/ui/select.js.map +1 -0
  100. package/dist/components/ui/spinner.d.ts +14 -0
  101. package/dist/components/ui/spinner.d.ts.map +1 -0
  102. package/dist/components/ui/spinner.js +17 -0
  103. package/dist/components/ui/spinner.js.map +1 -0
  104. package/dist/components/ui/tool-approval.d.ts +14 -0
  105. package/dist/components/ui/tool-approval.d.ts.map +1 -0
  106. package/dist/components/ui/tool-approval.js +37 -0
  107. package/dist/components/ui/tool-approval.js.map +1 -0
  108. package/dist/components/ui/tool-call.d.ts +12 -0
  109. package/dist/components/ui/tool-call.d.ts.map +1 -0
  110. package/dist/components/ui/tool-call.js +69 -0
  111. package/dist/components/ui/tool-call.js.map +1 -0
  112. package/dist/components/ui/types.d.ts +82 -0
  113. package/dist/components/ui/types.d.ts.map +1 -0
  114. package/dist/components/ui/types.js +2 -0
  115. package/dist/components/ui/types.js.map +1 -0
  116. package/dist/crewcoder-cli.d.ts +51 -0
  117. package/dist/crewcoder-cli.d.ts.map +1 -0
  118. package/dist/crewcoder-cli.js +26 -0
  119. package/dist/crewcoder-cli.js.map +1 -0
  120. package/dist/diff-anchors.d.ts +14 -0
  121. package/dist/diff-anchors.d.ts.map +1 -0
  122. package/dist/diff-anchors.js +43 -0
  123. package/dist/diff-anchors.js.map +1 -0
  124. package/dist/footer-layout.d.ts +49 -0
  125. package/dist/footer-layout.d.ts.map +1 -0
  126. package/dist/footer-layout.js +79 -0
  127. package/dist/footer-layout.js.map +1 -0
  128. package/dist/glyphs.d.ts +32 -0
  129. package/dist/glyphs.d.ts.map +1 -0
  130. package/dist/glyphs.js +35 -0
  131. package/dist/glyphs.js.map +1 -0
  132. package/dist/goal-form.d.ts +47 -0
  133. package/dist/goal-form.d.ts.map +1 -0
  134. package/dist/goal-form.js +59 -0
  135. package/dist/goal-form.js.map +1 -0
  136. package/dist/hooks/use-animation.d.ts +6 -0
  137. package/dist/hooks/use-animation.d.ts.map +1 -0
  138. package/dist/hooks/use-animation.js +52 -0
  139. package/dist/hooks/use-animation.js.map +1 -0
  140. package/dist/hooks/use-app-colors.d.ts +6 -0
  141. package/dist/hooks/use-app-colors.d.ts.map +1 -0
  142. package/dist/hooks/use-app-colors.js +6 -0
  143. package/dist/hooks/use-app-colors.js.map +1 -0
  144. package/dist/hooks/use-glyph-set.d.ts +8 -0
  145. package/dist/hooks/use-glyph-set.d.ts.map +1 -0
  146. package/dist/hooks/use-glyph-set.js +22 -0
  147. package/dist/hooks/use-glyph-set.js.map +1 -0
  148. package/dist/hooks/use-motion.d.ts +6 -0
  149. package/dist/hooks/use-motion.d.ts.map +1 -0
  150. package/dist/hooks/use-motion.js +8 -0
  151. package/dist/hooks/use-motion.js.map +1 -0
  152. package/dist/hooks/use-terminal-focus.d.ts +16 -0
  153. package/dist/hooks/use-terminal-focus.d.ts.map +1 -0
  154. package/dist/hooks/use-terminal-focus.js +30 -0
  155. package/dist/hooks/use-terminal-focus.js.map +1 -0
  156. package/dist/hooks/use-theme.d.ts +6 -0
  157. package/dist/hooks/use-theme.d.ts.map +1 -0
  158. package/dist/hooks/use-theme.js +11 -0
  159. package/dist/hooks/use-theme.js.map +1 -0
  160. package/dist/hunk.d.ts +27 -0
  161. package/dist/hunk.d.ts.map +1 -0
  162. package/dist/hunk.js +43 -0
  163. package/dist/hunk.js.map +1 -0
  164. package/dist/image-view.d.ts +33 -0
  165. package/dist/image-view.d.ts.map +1 -0
  166. package/dist/image-view.js +51 -0
  167. package/dist/image-view.js.map +1 -0
  168. package/dist/keybindings.d.ts +28 -0
  169. package/dist/keybindings.d.ts.map +1 -0
  170. package/dist/keybindings.js +105 -0
  171. package/dist/keybindings.js.map +1 -0
  172. package/dist/lib/terminal-themes/default.d.ts +3 -0
  173. package/dist/lib/terminal-themes/default.d.ts.map +1 -0
  174. package/dist/lib/terminal-themes/default.js +49 -0
  175. package/dist/lib/terminal-themes/default.js.map +1 -0
  176. package/dist/logo-pulse.d.ts +23 -0
  177. package/dist/logo-pulse.d.ts.map +1 -0
  178. package/dist/logo-pulse.js +30 -0
  179. package/dist/logo-pulse.js.map +1 -0
  180. package/dist/markdown-style.d.ts +47 -0
  181. package/dist/markdown-style.d.ts.map +1 -0
  182. package/dist/markdown-style.js +138 -0
  183. package/dist/markdown-style.js.map +1 -0
  184. package/dist/mentions.d.ts +57 -0
  185. package/dist/mentions.d.ts.map +1 -0
  186. package/dist/mentions.js +109 -0
  187. package/dist/mentions.js.map +1 -0
  188. package/dist/palette-model.d.ts +42 -0
  189. package/dist/palette-model.d.ts.map +1 -0
  190. package/dist/palette-model.js +77 -0
  191. package/dist/palette-model.js.map +1 -0
  192. package/dist/path-suggestions.d.ts +50 -0
  193. package/dist/path-suggestions.d.ts.map +1 -0
  194. package/dist/path-suggestions.js +99 -0
  195. package/dist/path-suggestions.js.map +1 -0
  196. package/dist/picker-flows.d.ts +78 -0
  197. package/dist/picker-flows.d.ts.map +1 -0
  198. package/dist/picker-flows.js +444 -0
  199. package/dist/picker-flows.js.map +1 -0
  200. package/dist/pickers.d.ts +34 -0
  201. package/dist/pickers.d.ts.map +1 -0
  202. package/dist/pickers.js +136 -0
  203. package/dist/pickers.js.map +1 -0
  204. package/dist/prompt-history.d.ts +32 -0
  205. package/dist/prompt-history.d.ts.map +1 -0
  206. package/dist/prompt-history.js +40 -0
  207. package/dist/prompt-history.js.map +1 -0
  208. package/dist/providers/app-theme-provider.d.ts +12 -0
  209. package/dist/providers/app-theme-provider.d.ts.map +1 -0
  210. package/dist/providers/app-theme-provider.js +14 -0
  211. package/dist/providers/app-theme-provider.js.map +1 -0
  212. package/dist/providers/theme-provider.d.ts +10 -0
  213. package/dist/providers/theme-provider.d.ts.map +1 -0
  214. package/dist/providers/theme-provider.js +57 -0
  215. package/dist/providers/theme-provider.js.map +1 -0
  216. package/dist/question-model.d.ts +71 -0
  217. package/dist/question-model.d.ts.map +1 -0
  218. package/dist/question-model.js +176 -0
  219. package/dist/question-model.js.map +1 -0
  220. package/dist/search-controller.d.ts +46 -0
  221. package/dist/search-controller.d.ts.map +1 -0
  222. package/dist/search-controller.js +89 -0
  223. package/dist/search-controller.js.map +1 -0
  224. package/dist/search-jump.d.ts +27 -0
  225. package/dist/search-jump.d.ts.map +1 -0
  226. package/dist/search-jump.js +65 -0
  227. package/dist/search-jump.js.map +1 -0
  228. package/dist/session-controller.d.ts +268 -0
  229. package/dist/session-controller.d.ts.map +1 -0
  230. package/dist/session-controller.js +941 -0
  231. package/dist/session-controller.js.map +1 -0
  232. package/dist/sidebar-model.d.ts +45 -0
  233. package/dist/sidebar-model.d.ts.map +1 -0
  234. package/dist/sidebar-model.js +223 -0
  235. package/dist/sidebar-model.js.map +1 -0
  236. package/dist/sidebar.d.ts +49 -0
  237. package/dist/sidebar.d.ts.map +1 -0
  238. package/dist/sidebar.js +106 -0
  239. package/dist/sidebar.js.map +1 -0
  240. package/dist/status-line.d.ts +32 -0
  241. package/dist/status-line.d.ts.map +1 -0
  242. package/dist/status-line.js +69 -0
  243. package/dist/status-line.js.map +1 -0
  244. package/dist/syntax/filetype.d.ts +12 -0
  245. package/dist/syntax/filetype.d.ts.map +1 -0
  246. package/dist/syntax/filetype.js +28 -0
  247. package/dist/syntax/filetype.js.map +1 -0
  248. package/dist/syntax/grammars.d.ts +42 -0
  249. package/dist/syntax/grammars.d.ts.map +1 -0
  250. package/dist/syntax/grammars.js +52 -0
  251. package/dist/syntax/grammars.js.map +1 -0
  252. package/dist/text-offset.d.ts +5 -0
  253. package/dist/text-offset.d.ts.map +1 -0
  254. package/dist/text-offset.js +38 -0
  255. package/dist/text-offset.js.map +1 -0
  256. package/dist/text-wrap.d.ts +12 -0
  257. package/dist/text-wrap.d.ts.map +1 -0
  258. package/dist/text-wrap.js +53 -0
  259. package/dist/text-wrap.js.map +1 -0
  260. package/dist/theme-controller.d.ts +77 -0
  261. package/dist/theme-controller.d.ts.map +1 -0
  262. package/dist/theme-controller.js +178 -0
  263. package/dist/theme-controller.js.map +1 -0
  264. package/dist/theme.d.ts +51 -0
  265. package/dist/theme.d.ts.map +1 -0
  266. package/dist/theme.js +86 -0
  267. package/dist/theme.js.map +1 -0
  268. package/dist/tmux-check.d.ts +35 -0
  269. package/dist/tmux-check.d.ts.map +1 -0
  270. package/dist/tmux-check.js +66 -0
  271. package/dist/tmux-check.js.map +1 -0
  272. package/dist/tmux.d.ts +69 -0
  273. package/dist/tmux.d.ts.map +1 -0
  274. package/dist/tmux.js +135 -0
  275. package/dist/tmux.js.map +1 -0
  276. package/dist/tool-diff.d.ts +51 -0
  277. package/dist/tool-diff.d.ts.map +1 -0
  278. package/dist/tool-diff.js +158 -0
  279. package/dist/tool-diff.js.map +1 -0
  280. package/dist/tool-presentation.d.ts +46 -0
  281. package/dist/tool-presentation.d.ts.map +1 -0
  282. package/dist/tool-presentation.js +148 -0
  283. package/dist/tool-presentation.js.map +1 -0
  284. package/dist/tool-renderer-view.d.ts +14 -0
  285. package/dist/tool-renderer-view.d.ts.map +1 -0
  286. package/dist/tool-renderer-view.js +10 -0
  287. package/dist/tool-renderer-view.js.map +1 -0
  288. package/dist/transcript-search.d.ts +54 -0
  289. package/dist/transcript-search.d.ts.map +1 -0
  290. package/dist/transcript-search.js +160 -0
  291. package/dist/transcript-search.js.map +1 -0
  292. package/dist/transcript.d.ts +59 -0
  293. package/dist/transcript.d.ts.map +1 -0
  294. package/dist/transcript.js +123 -0
  295. package/dist/transcript.js.map +1 -0
  296. package/dist/workflow-tools.d.ts +42 -0
  297. package/dist/workflow-tools.d.ts.map +1 -0
  298. package/dist/workflow-tools.js +89 -0
  299. package/dist/workflow-tools.js.map +1 -0
  300. package/examples/themes/ember.json +75 -0
  301. package/grammars/bash/LICENSE +21 -0
  302. package/grammars/bash/highlights.scm +56 -0
  303. package/grammars/bash/tree-sitter-bash.wasm +0 -0
  304. package/grammars/css/LICENSE +21 -0
  305. package/grammars/css/highlights.scm +76 -0
  306. package/grammars/css/tree-sitter-css.wasm +0 -0
  307. package/grammars/go/LICENSE +21 -0
  308. package/grammars/go/highlights.scm +123 -0
  309. package/grammars/go/tree-sitter-go.wasm +0 -0
  310. package/grammars/html/LICENSE +21 -0
  311. package/grammars/html/highlights.scm +13 -0
  312. package/grammars/html/tree-sitter-html.wasm +0 -0
  313. package/grammars/json/LICENSE +21 -0
  314. package/grammars/json/highlights.scm +16 -0
  315. package/grammars/json/tree-sitter-json.wasm +0 -0
  316. package/grammars/python/LICENSE +21 -0
  317. package/grammars/python/highlights.scm +137 -0
  318. package/grammars/python/tree-sitter-python.wasm +0 -0
  319. package/grammars/rust/LICENSE +21 -0
  320. package/grammars/rust/highlights.scm +161 -0
  321. package/grammars/rust/tree-sitter-rust.wasm +0 -0
  322. package/grammars/yaml/LICENSE +20 -0
  323. package/grammars/yaml/highlights.scm +79 -0
  324. package/grammars/yaml/tree-sitter-yaml.wasm +0 -0
  325. package/package.json +56 -5
package/LICENSE ADDED
@@ -0,0 +1,191 @@
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
+ Copyright 2026 OnPoint Dev Tools and CrewCoder contributors
180
+
181
+ Licensed under the Apache License, Version 2.0 (the "License");
182
+ you may not use this file except in compliance with the License.
183
+ You may obtain a copy of the License at
184
+
185
+ http://www.apache.org/licenses/LICENSE-2.0
186
+
187
+ Unless required by applicable law or agreed to in writing, software
188
+ distributed under the License is distributed on an "AS IS" BASIS,
189
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
190
+ See the License for the specific language governing permissions and
191
+ limitations under the License.
package/README.md CHANGED
@@ -1,3 +1,263 @@
1
- # Temporary Holding Version
1
+ # CrewCoder OpenTUI
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ `@onpoint-dev-tools/crewcoder-opentui` is CrewCoder's terminal UI built on
4
+ [OpenTUI](https://github.com/anomalyco/opentui) with React. Bare `crewcoder` from the
5
+ `crewcoder` umbrella package opens it.
6
+
7
+ > **Preview.** This UI is not at feature parity with the legacy
8
+ > [`crewcoder-tui`](../crewcoder-tui/README.md) yet. Prefer the legacy UI if you rely on
9
+ > the commands listed under [Not yet ported](#not-yet-ported).
10
+
11
+ ## Requirements
12
+
13
+ - **Node.js 26.4 or newer.** OpenTUI loads its native renderer through Node's FFI, which
14
+ is not available in older releases. Node marks FFI as experimental; the umbrella
15
+ launcher hides that runtime warning, but running `crewcoder-opentui` directly prints it.
16
+ - A platform with an OpenTUI native build: Linux x64/arm64 (glibc and musl), macOS
17
+ x64/arm64, Windows x64/arm64.
18
+ - An interactive terminal.
19
+
20
+ The umbrella lists this package as an **optional** dependency, so `npm i -g crewcoder` still
21
+ succeeds on Node 22, on other platforms, and in headless sandboxes or VPS images. Where
22
+ this UI cannot run, bare `crewcoder` opens the legacy UI instead and prints how to get
23
+ this one; agent commands (`crewcoder run ...`) work normally.
24
+
25
+ ## Usage
26
+
27
+ ```bash
28
+ crewcoder # via the umbrella package
29
+ crewcoder-opentui # this package directly
30
+ crewcoder-opentui --remote me@vps --remote-cwd /workspace [--remote-bin <path>]
31
+ ```
32
+
33
+ | Key | Action |
34
+ |---|---|
35
+ | Enter | Send the prompt. While a run is active it is queued as a follow-up to that run. |
36
+ | Escape | Abort the active run. |
37
+ | Ctrl+Y / Ctrl+N | Approve / deny the pending tool approval. |
38
+ | Up/Down, Enter, Esc | Choose, answer, or cancel an extension question ([docs](docs/QUESTIONS.md)). |
39
+ | Ctrl+C | Quit. |
40
+
41
+ Keys come from `DEFAULT_APP_KEYBINDINGS` in `src/keybindings.ts`; there is no user
42
+ override file yet.
43
+
44
+ Implemented now:
45
+
46
+ - **Welcome screen**: a fresh or `/new` session opens on the big CrewCoder wordmark
47
+ centered in the terminal with the composer beneath it, like the legacy landing page.
48
+ Windows too small for the wordmark (under 70 columns, or too short) show only the
49
+ composer. The logo text is shared with the legacy UI through
50
+ `@onpoint-dev-tools/crewcoder-tui-core/theme/logo` and drawn with OpenTUI renderables in
51
+ bold. As in legacy, it pulses in one color (the theme `accent` at half brightness up to
52
+ `glow`, 2.2 s per breath) and freezes after 3 minutes without a key; `NO_MOTION=1` or
53
+ `CI=true` keeps it on `glow` (`src/logo-pulse.ts`).
54
+ - **Full-screen transcript** (OpenTUI alternate screen, mouse on): the UI draws the whole
55
+ conversation in a scrollbox that follows new output and stays put once you scroll up.
56
+ PgUp/PgDn and the mouse wheel scroll it, Ctrl+Home/Ctrl+End jump to either end, and a
57
+ mouse selection is copied over OSC 52. Blocks update in place, so running tools show
58
+ live and tool output expands and collapses. See [`docs/TRANSCRIPT.md`](docs/TRANSCRIPT.md).
59
+ - **Footer**: only the working spinner, alerts (errors and command results), the pending
60
+ approval card (selectable Approve/Deny; Ctrl+Y and Ctrl+N also work), the composer, and
61
+ the status line. Agent output never goes to the footer.
62
+ - **Status line** under the composer: access (`Review`, or `Full Access` in the warning
63
+ color), mode or worker, `provider/model (effort)`, and the session as `<repo> · <first
64
+ prompt>` on the left (the repo is the main repository for worktrees; omitted outside git
65
+ and in remote mode); context usage and session cost pinned right
66
+ (`◔ 12.4k/200k - 6% | 15k tokens | $0.03`), live from `usage_update`. Usage appears after
67
+ the first report; on narrow terminals the session name shortens first and access always
68
+ stays (`src/status-line.ts`).
69
+ - Footer components from [termcn](https://www.termcn.dev): the pending approval card with
70
+ risk level, arguments, and selectable decision controls (`ToolApproval`), and the working
71
+ spinner (`Spinner`), themed in slate. Several upstream
72
+ issues are fixed in our copies, including a global `y` key that approved tool calls while
73
+ typing. See
74
+ [`docs/TERMCN.md`](docs/TERMCN.md).
75
+ - **Extension questions**: `confirm`, `select`, `input`, and declarative `component`
76
+ requests from trusted extensions open a focused card that replaces the footer. Long
77
+ questions, option labels, and descriptions wrap. The answer goes back over the live
78
+ `ui_response` channel, and Esc cancels the question without aborting the run. The
79
+ question and its answer stay in the transcript. Built on vendored termcn `select`
80
+ and `confirm`, plus OpenTUI's native `<input>`. See [`docs/QUESTIONS.md`](docs/QUESTIONS.md).
81
+ - **Markdown replies**: assistant text renders through OpenTUI's native
82
+ `MarkdownRenderable` in slate styles. That covers headings, bold/italic/strikethrough,
83
+ inline code, links, ordered and unordered lists, quotes, tables sized to content, and
84
+ fenced code behind a rail. Replies stream in place as text arrives.
85
+ - **Images and composer shortcuts**: Ctrl+V attaches a clipboard image (else pastes
86
+ clipboard text), image paths typed or dropped into the prompt attach on send, Ctrl+X
87
+ clears them, Ctrl+P toggles the palette, Tab/Ctrl+I opens the modes picker. Images reach
88
+ the agent as `--image`. Sent and tool-result images draw inline in the transcript
89
+ (kitty graphics, sixel, or half-block cells). See [`docs/ATTACHMENTS.md`](docs/ATTACHMENTS.md).
90
+ - **`@` path suggestions**: `@` at the start of a word lists workspace files and folders
91
+ under the composer (Up/Down, Enter or Tab to pick, Esc to close). Not in remote mode.
92
+ See [`docs/MENTIONS.md`](docs/MENTIONS.md).
93
+ - **Syntax highlighting** (Tree-sitter) for fenced code, inline diffs, and `read` output.
94
+ JS/TS/TSX, Markdown, and Zig come with OpenTUI; Python, Bash, JSON, Rust, Go, YAML, CSS,
95
+ and HTML grammars are bundled in `grammars/` (local files, no runtime downloads). Other
96
+ languages render as plain text. See [`docs/SYNTAX.md`](docs/SYNTAX.md).
97
+ - **Turn sections**: a turn reads in event order as separate sections divided by a blank
98
+ row. Reasoning comes first, then the agent's work, then the reply.
99
+ - **Reasoning** is an amber bordered panel headed `💭 Reasoning`, with the reasoning as
100
+ markdown, always expanded. It follows termcn's `thinking-block` design. While it
101
+ streams, the spinner reads `Thinking`.
102
+ - **Agent work**: consecutive tool calls and approvals sit in one dashed box titled
103
+ `Agent work`. Each tool shows a spinner while running (with its output streaming in),
104
+ then `✓` or `✗`, and a highlighted title chip (`📖 Read File`). Reads, searches,
105
+ commands, and listings put their target on the next row; edits and writes keep it
106
+ inline. Paths under the workspace are shown relative. Every tool's output is shown,
107
+ including file contents from reads; output over 12 lines collapses with a clickable
108
+ `▸ Show N more lines` toggle, and Ctrl+O expands or collapses all of them. Names are
109
+ mapped across CrewCoder, Claude Code, Codex, and MCP-prefixed tools
110
+ (`src/tool-presentation.ts`).
111
+ - **Inline diffs**: every edit and write shows its file diff in place, with real line
112
+ numbers and green/red rows (OpenTUI's native `<diff>`), for CrewCoder, Claude, and
113
+ Codex edits alike. Click a `▾ Diff` header to hide that diff, or press Ctrl+T to hide
114
+ or show all of them.
115
+ - **`/diff`**: opens [Hunk](https://www.hunk.dev) on the files this session changed
116
+ (`hunk diff -- <files>`), handing it the terminal until you quit it. Hunk is installed
117
+ separately (`npm install -g hunkdiff`). See [`docs/DIFF.md`](docs/DIFF.md).
118
+ - Transcript blocks for user (with muted `background` context), assistant, reasoning, tool,
119
+ approval, extension question, compaction, image, error, and system. Text
120
+ is normalized to `\n` and stripped of terminal control sequences.
121
+ - Status panels for background jobs (live output tail), plugin validation, crew rosters,
122
+ goals, review summaries, `/why` answers, and checkpoints, each in its status color with
123
+ a spinner while live. See [`docs/TRANSCRIPT.md`](docs/TRANSCRIPT.md#status-panels).
124
+ - New runs, automatic resume of the current session, live follow-ups, approval
125
+ decisions, and abort, all through the shared `crewcoder-tui-core` bridge.
126
+ - `/repaint` (alias `/redraw`): redraws every cell when something else wrote to the
127
+ terminal behind the UI (a stray process, a system message, a glitch after `/diff`).
128
+ Silent on success; the transcript and session are untouched.
129
+ - `/quit`: exits like Ctrl+C.
130
+ - CrewCoder-mode plans read as Requirements / Investigation / File changes / Plan /
131
+ Acceptance criteria with the `/approve-plan` hint, never collapsed; clarify questions are
132
+ numbered. Extension tool renderers draw matching tools from their templates. Bare
133
+ `/goal` opens the preflight form. See [`docs/TRANSCRIPT.md`](docs/TRANSCRIPT.md#plans-and-questions).
134
+ - Transcript search: Ctrl+F or `/find [text]`. Jumps to the match's line (expanding
135
+ collapsed output), marks it, and shows the line in the search bar; Enter/Up older,
136
+ Shift+Enter/Down newer, Esc closes. See [`docs/TRANSCRIPT.md`](docs/TRANSCRIPT.md#search).
137
+ - `/ext.<extension-id>.<command-id> [args]`: runs an extension's executable command
138
+ through `crewcoder command run` (the agent enforces the extension's trust); its output
139
+ shows in an alert and nothing is sent to the agent.
140
+ - **Focus gate:** while the terminal tab, pane, or window is unfocused, keys and pastes
141
+ are ignored (Ctrl+C included), so input a terminal duplicates to several panes cannot
142
+ reach a second CrewCoder. OpenTUI enables focus reporting (DECSET 1004) itself.
143
+ Terminals without focus reporting never report a blur, so input keeps working there.
144
+ - **`CREWCODER_TUI_MOUSE=0`** leaves the mouse to the terminal: native selection, but no
145
+ click toggles, no copy-on-select, and wheel scrolling is up to the terminal (some send
146
+ Up/Down in the alternate screen, which then moves through prompt history; PgUp/PgDn
147
+ always scroll the transcript).
148
+ - Multi-line composer: Enter sends, Shift+Enter or Ctrl+J adds a line; it grows to 8 lines.
149
+ - Prompt history: Up/Down move between the composer's lines, and on the first/last line
150
+ recall this session's sent messages (newest first). Down past the newest restores the
151
+ unsent draft; editing a recalled message starts over from the newest
152
+ (`src/prompt-history.ts`).
153
+ - Slash command palette (`/`) with the legacy commands: every picker (`/sessions`,
154
+ `/provider`, `/model`, `/effort`, `/modes`, `/prompts`, `/tool-mode`, `/profile`,
155
+ `/rewind`, `/handoff`, ...), settings switches (`/thinking`, `/identity`, `/checkpoints`,
156
+ `/full-access`, `/memory`, `/task`, `/compact auto`), session tools (`/branch [id]`,
157
+ Tab in `/sessions` to branch a saved session and open the branch,
158
+ `/compact`, `/compact preview` with a summary editor, `/export`, `/goal`, `/reload`,
159
+ `/clear`), review tools (`/diff`, `/why`, `/review-summary`, `/extensions`, `/teams`), and
160
+ live crews (`/crew <workers> <task>`, `/team <team> <task>`; with tmux installed they
161
+ can run in tmux and keep going after you close CrewCoder; see
162
+ [`docs/CREWS.md`](docs/CREWS.md)).
163
+ Results show in a status alert above the composer. See
164
+ [`docs/COMMAND_PALETTE.md`](docs/COMMAND_PALETTE.md).
165
+ - **Right sidebar** (Ctrl+B, `/sidebar`): modified files (`/file-changes on|off`), live
166
+ crew agents, this session's crew tasks, and the `<cwd>:<branch>` footer
167
+ (`<target>:<cwd>` over SSH). Starts closed, hides below 60 columns, and the divider
168
+ drags to resize. See [`docs/SIDEBAR.md`](docs/SIDEBAR.md).
169
+ - Remote SSH mode, using the same bridge as the legacy UI. The welcome screen and the
170
+ sidebar footer show the remote `<target>:<cwd>`.
171
+ - **tmux**: works inside tmux; at startup CrewCoder names any missing tmux setting
172
+ (clipboard, Shift+Enter, focus, 24-bit color) with the line to add, and a mouse copy that
173
+ tmux blocks says so. See [`docs/TMUX.md`](docs/TMUX.md).
174
+ - Themes: `/theme` lists every theme with a live preview; Enter applies and remembers it.
175
+ Also `--theme slate|dark|light|<name>|<path>` or `CREWCODER_THEME`. Slate is the default.
176
+ Custom JSON themes are shared with the legacy UI and can set syntax and markdown element
177
+ colors; example: [`examples/themes/ember.json`](examples/themes/ember.json). See
178
+ [`docs/THEMES.md`](docs/THEMES.md).
179
+
180
+ ## Not yet ported
181
+
182
+ Unported slash commands report that they are unavailable instead of being sent as prompts.
183
+ New components should come from [termcn](https://www.termcn.dev/docs/components/opentui)
184
+ when it has one (vendored per [`docs/TERMCN.md`](docs/TERMCN.md)).
185
+
186
+ **Deferred by owner decision:** Live UI (`contributes.liveUi[]`, experimental
187
+ sandboxed extension panels; use the legacy `crewcoder-tui` for it).
188
+
189
+ **Not ported yet:** the token budget handoff. When a session's budget runs out, legacy
190
+ offers to continue in a new session from the compacted summary; here the session shows the
191
+ "Token budget reached" error and stops. See [`docs/PORT_LIST.md`](docs/PORT_LIST.md).
192
+
193
+ ## Architecture
194
+
195
+ ```txt
196
+ src/cli.tsx argument parsing, alternate-screen renderer, copy-on-select, /diff terminal hand-off, React root
197
+ src/App.tsx welcome screen, transcript + footer layout, overlays, keys
198
+ src/components/Home.tsx the centered welcome screen
199
+ src/components/Sidebar.tsx the right sidebar and its draggable divider
200
+ src/components/ui/command-palette.tsx termcn command picker presentation
201
+ src/palette-model.ts pure picker matching, grouped order, windowing, height
202
+ src/pickers.ts palette catalog, picker kinds, item builders
203
+ src/picker-flows.ts per-picker loading and selection (PickerHost)
204
+ src/crewcoder-cli.ts injectable one-shot CrewCoder CLI client
205
+ src/commands.ts palette catalog, menus, config-backed switches
206
+ src/command-runner.ts every non-picker slash command (CommandHost)
207
+ src/command-format.ts goal / why / review-summary / CLI output as alert text
208
+ src/alert-model.ts footer alert type, clamping, and height
209
+ src/components/Composer.tsx multi-line composer (textarea)
210
+ src/components/MentionList.tsx @ path suggestions under the composer
211
+ src/mentions.ts @ list state and request ordering (SessionController.mentions)
212
+ src/attachments.ts clipboard images, image paths in prompts (injectable ClipboardSource)
213
+ src/components/AttachmentRow.tsx pending images above the composer
214
+ src/image-view.ts image pixel mode (CREWCODER_TUI_IMAGE_PROTOCOL, off in remote mode) and cell box
215
+ src/path-suggestions.ts @ token parsing, replacement, windowing, workspace walker
216
+ src/text-offset.ts textarea cursor (display cells) <-> JS string index
217
+ src/components/SummaryEditor.tsx /compact preview summary editor
218
+ src/components/ExtensionQuestion.tsx extension question card (confirm / select / input / component)
219
+ src/question-model.ts pure question layout: wrapping, option rows, windowing, height, answers
220
+ src/components/Transcript.tsx scrollbox transcript: reply, Reasoning panel, Agent work box, tool entries, rows
221
+ src/tool-presentation.ts tool name -> icon, title, target, layout; output clamping and diff line tones
222
+ src/status-line.ts status line under the composer: access, mode, model, session, context usage and cost
223
+ src/sidebar-model.ts pure sidebar rows: files, agents, tasks, <cwd>:<git> footer; widths and bounds
224
+ src/sidebar.ts SidebarController: open/width, task store polling, git label refresh
225
+ src/glyphs.ts emoji vs single-cell icon set from the terminal capability probe (CREWCODER_TUI_ICONS)
226
+ src/hooks/use-glyph-set.ts follows the renderer's capabilities event and resolves the icon set
227
+ src/tool-diff.ts per-file unified diffs from edit/write tool arguments, all providers
228
+ src/diff-anchors.ts reads an edited file once to give snippet diffs real line numbers
229
+ src/markdown-style.ts markdown + code scope styles from the theme, SyntaxStyle hooks, fenced-code rail
230
+ src/syntax/grammars.ts bundled Tree-sitter grammars: pinned list, hashes, registration
231
+ src/syntax/filetype.ts path -> highlighted filetype; line-numbered read output stays plain
232
+ grammars/ bundled grammar .wasm + highlights.scm + LICENSE (scripts/update-grammars.mjs)
233
+ src/hunk.ts /diff: hunk arguments and running a program on the real terminal
234
+ src/footer-layout.ts composer sizing, welcome-screen layout, path shortening
235
+ src/logo-pulse.ts welcome-logo pulse timing and color (pure)
236
+ src/transcript-search.ts transcript search matching and the match-line snippet (pure)
237
+ src/search-controller.ts transcript search state: query, matches, current, reveal
238
+ src/search-jump.ts match -> wrapped content row in the laid-out transcript
239
+ src/workflow-tools.ts CrewCoder-mode plan and clarify views (pure)
240
+ src/tool-renderer-view.ts extension tool renderer view (pure)
241
+ src/goal-form.ts bare /goal preflight form state and validation (pure)
242
+ src/components/GoalForm.tsx the /goal form
243
+ src/session-controller.ts owns TuiState + bridge + tool expansion; subscribe/getVersion for useSyncExternalStore
244
+ src/transcript.ts pure block -> display row, turn sections, streaming flag
245
+ src/keybindings.ts DEFAULT_APP_KEYBINDINGS and chord matching
246
+ src/theme.ts toAppTheme: shared theme tokens -> termcn tokens, diff and syntax colors
247
+ src/providers/app-theme-provider.tsx ThemeProvider + AppColorsContext (useAppColors)
248
+ src/theme-controller.ts startup theme order, /theme list + preview + apply, saved pick (opentui.json)
249
+ src/Root.tsx App under the controller's current theme (live /theme switches)
250
+ src/components/ui/, src/hooks/, src/providers/, src/lib/ vendored termcn (see docs/TERMCN.md)
251
+ @onpoint-dev-tools/crewcoder-tui-core bridge, event parser, reducer, state (shared with legacy)
252
+ ```
253
+
254
+ ## Development
255
+
256
+ ```bash
257
+ mise exec node@26 -- npm run typecheck -w @onpoint-dev-tools/crewcoder-opentui
258
+ mise exec node@26 -- npm test -w @onpoint-dev-tools/crewcoder-opentui
259
+ mise exec node@26 -- npm run build -w @onpoint-dev-tools/crewcoder-opentui
260
+ ```
261
+
262
+ Tests use OpenTUI's headless test renderer (`@opentui/react/test-utils`) and fail fast
263
+ with an explicit message on Node.js older than 26.4.
@@ -0,0 +1,51 @@
1
+ # Third-party notices
2
+
3
+ ## termcn
4
+
5
+ Files under `src/components/ui/`, `src/hooks/`, `src/providers/`, and `src/lib/terminal-themes/`
6
+ (compiled into `dist/`) are vendored from [termcn](https://github.com/shadcn-labs/termcn)
7
+ at commit `5a02dae79542add57ba392d2b51785138d0c3b6e`, some with local modifications
8
+ described in each file header. termcn is distributed under the MIT License:
9
+
10
+ ```text
11
+ MIT License
12
+
13
+ Copyright (c) 2026 Aniket Pawar
14
+
15
+ Permission is hereby granted, free of charge, to any person obtaining a copy
16
+ of this software and associated documentation files (the "Software"), to deal
17
+ in the Software without restriction, including without limitation the rights
18
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19
+ copies of the Software, and to permit persons to whom the Software is
20
+ furnished to do so, subject to the following conditions:
21
+
22
+ The above copyright notice and this permission notice shall be included in all
23
+ copies or substantial portions of the Software.
24
+
25
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
+ SOFTWARE.
32
+ ```
33
+
34
+ ## Tree-sitter grammars
35
+
36
+ Files under `grammars/<filetype>/` are copied unmodified from each grammar's npm package
37
+ at the exact version below: the compiled `tree-sitter-*.wasm`, `queries/highlights.scm`
38
+ (saved as `highlights.scm`), and the package's `LICENSE`, which ships next to them.
39
+ `scripts/update-grammars.mjs` reproduces them; `src/syntax/grammars.ts` pins their
40
+ SHA-256 hashes. All are distributed under the MIT License.
41
+
42
+ | Filetype | Package | Version | Copyright |
43
+ | --- | --- | --- | --- |
44
+ | python | `tree-sitter-python` | 0.25.0 | (c) 2016 Max Brunsfeld |
45
+ | bash | `tree-sitter-bash` | 0.25.1 | (c) 2017 Max Brunsfeld |
46
+ | json | `tree-sitter-json` | 0.24.8 | (c) 2014 Max Brunsfeld |
47
+ | rust | `tree-sitter-rust` | 0.24.0 | (c) 2017 Maxim Sokolov |
48
+ | go | `tree-sitter-go` | 0.25.0 | (c) 2014 Max Brunsfeld |
49
+ | yaml | `@tree-sitter-grammars/tree-sitter-yaml` | 0.7.1 | (c) 2024 tree-sitter-grammars contributors |
50
+ | css | `tree-sitter-css` | 0.25.0 | (c) 2018 Max Brunsfeld |
51
+ | html | `tree-sitter-html` | 0.23.2 | (c) 2014 Max Brunsfeld |
package/dist/App.d.ts ADDED
@@ -0,0 +1,16 @@
1
+ import { type ReactNode } from "react";
2
+ import { type RiskLevel } from "./components/ui/tool-approval.js";
3
+ import { type SessionController } from "./session-controller.js";
4
+ export type AppProps = {
5
+ controller: SessionController;
6
+ onQuit: () => void;
7
+ };
8
+ /**
9
+ * The full-screen UI: the conversation in a scrollbox, and below it a footer
10
+ * that holds only the working spinner, alerts (errors and command results),
11
+ * the approval card, the composer, and the status line. Running tools and
12
+ * streaming text live in the transcript, never in the footer.
13
+ */
14
+ export declare function App({ controller, onQuit }: AppProps): ReactNode;
15
+ export declare function riskLevel(value: string | undefined): RiskLevel | undefined;
16
+ //# sourceMappingURL=App.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAqD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAK1F,OAAO,EAAgB,KAAK,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAiBhF,OAAO,EAAyB,KAAK,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAIxF,MAAM,MAAM,QAAQ,GAAG;IACrB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,GAAG,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,QAAQ,GAAG,SAAS,CAwa/D;AA4BD,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAG1E"}