@quantiya/codevibe-codex-plugin 2.0.4 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1092) hide show
  1. package/node_modules/@quantiya/codevibe-core/dist/index.js +198 -196
  2. package/node_modules/@quantiya/codevibe-core/dist/local-model/manager.d.ts +18 -6
  3. package/node_modules/@quantiya/codevibe-core/dist/local-model/ollama.d.ts +38 -1
  4. package/node_modules/@quantiya/codevibe-core/dist/orchestration/setup-types.d.ts +9 -4
  5. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/mobile-user-prompt-return.test.d.ts +1 -0
  6. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/runOrchestrationShell-session-retire.test.d.ts +1 -0
  7. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/cli.d.ts +10 -0
  8. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/cli.js +1155 -824
  9. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/components/InputBar.d.ts +67 -0
  10. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/emit-shell-event.d.ts +1 -1
  11. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/index.d.ts +119 -2
  12. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/ink-runtime.d.ts +11 -1
  13. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/mode-selection.d.ts +5 -9
  14. package/node_modules/@quantiya/codevibe-core/dist/types/session.d.ts +2 -1
  15. package/node_modules/@quantiya/codevibe-core/node_modules/@alcalzone/ansi-tokenize/LICENSE +21 -0
  16. package/node_modules/@quantiya/codevibe-core/node_modules/@alcalzone/ansi-tokenize/README.md +278 -0
  17. package/node_modules/@quantiya/codevibe-core/node_modules/@alcalzone/ansi-tokenize/build/ansiCodes.d.ts +7 -0
  18. package/node_modules/@quantiya/codevibe-core/node_modules/@alcalzone/ansi-tokenize/build/ansiCodes.js +57 -0
  19. package/node_modules/@quantiya/codevibe-core/node_modules/@alcalzone/ansi-tokenize/build/ansiCodes.js.map +1 -0
  20. package/node_modules/@quantiya/codevibe-core/node_modules/@alcalzone/ansi-tokenize/build/consts.d.ts +17 -0
  21. package/node_modules/@quantiya/codevibe-core/node_modules/@alcalzone/ansi-tokenize/build/consts.js +28 -0
  22. package/node_modules/@quantiya/codevibe-core/node_modules/@alcalzone/ansi-tokenize/build/consts.js.map +1 -0
  23. package/node_modules/@quantiya/codevibe-core/node_modules/@alcalzone/ansi-tokenize/build/diff.js +26 -0
  24. package/node_modules/@quantiya/codevibe-core/node_modules/@alcalzone/ansi-tokenize/build/diff.js.map +1 -0
  25. package/node_modules/@quantiya/codevibe-core/node_modules/@alcalzone/ansi-tokenize/build/reduce.js +37 -0
  26. package/node_modules/@quantiya/codevibe-core/node_modules/@alcalzone/ansi-tokenize/build/reduce.js.map +1 -0
  27. package/node_modules/@quantiya/codevibe-core/node_modules/@alcalzone/ansi-tokenize/build/tokenize.d.ts +16 -0
  28. package/node_modules/@quantiya/codevibe-core/node_modules/@alcalzone/ansi-tokenize/build/tokenize.js +194 -0
  29. package/node_modules/@quantiya/codevibe-core/node_modules/@alcalzone/ansi-tokenize/build/tokenize.js.map +1 -0
  30. package/node_modules/@quantiya/codevibe-core/node_modules/@alcalzone/ansi-tokenize/package.json +55 -0
  31. package/node_modules/@quantiya/codevibe-core/node_modules/cli-boxes/index.d.ts +122 -0
  32. package/node_modules/@quantiya/codevibe-core/node_modules/cli-boxes/index.js +3 -0
  33. package/node_modules/@quantiya/codevibe-core/node_modules/cli-boxes/package.json +49 -0
  34. package/node_modules/@quantiya/codevibe-core/node_modules/cli-boxes/readme.md +103 -0
  35. package/node_modules/@quantiya/codevibe-core/node_modules/cli-truncate/index.d.ts +118 -0
  36. package/node_modules/@quantiya/codevibe-core/node_modules/cli-truncate/index.js +194 -0
  37. package/node_modules/@quantiya/codevibe-core/node_modules/cli-truncate/package.json +52 -0
  38. package/node_modules/@quantiya/codevibe-core/node_modules/cli-truncate/readme.md +153 -0
  39. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/ansi-tokenizer.d.ts +38 -0
  40. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/ansi-tokenizer.js +316 -0
  41. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/ansi-tokenizer.js.map +1 -0
  42. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/AccessibilityContext.d.ts +3 -0
  43. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/AccessibilityContext.js +5 -0
  44. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/AccessibilityContext.js.map +1 -0
  45. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/AnimationContext.d.ts +9 -0
  46. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/AnimationContext.js +13 -0
  47. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/AnimationContext.js.map +1 -0
  48. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/App.d.ts +24 -0
  49. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/App.js +554 -0
  50. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/App.js.map +1 -0
  51. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/AppContext.d.ts +80 -0
  52. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/AppContext.js +25 -0
  53. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/AppContext.js.map +1 -0
  54. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/BackgroundContext.d.ts +4 -0
  55. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/BackgroundContext.js +3 -0
  56. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/BackgroundContext.js.map +1 -0
  57. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/Box.d.ts +130 -0
  58. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/Box.js +34 -0
  59. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/Box.js.map +1 -0
  60. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/CursorContext.d.ts +11 -0
  61. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/CursorContext.js +8 -0
  62. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/CursorContext.js.map +1 -0
  63. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/ErrorBoundary.d.ts +18 -0
  64. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/ErrorBoundary.js +23 -0
  65. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/ErrorBoundary.js.map +1 -0
  66. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/ErrorOverview.js +90 -0
  67. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/ErrorOverview.js.map +1 -0
  68. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/Newline.d.ts +13 -0
  69. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/Newline.js +8 -0
  70. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/Newline.js.map +1 -0
  71. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/Spacer.d.ts +7 -0
  72. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/Spacer.js +11 -0
  73. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/Spacer.js.map +1 -0
  74. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/Static.d.ts +24 -0
  75. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/Static.js +28 -0
  76. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/Static.js.map +1 -0
  77. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/StderrContext.d.ts +15 -0
  78. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/StderrContext.js +13 -0
  79. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/StderrContext.js.map +1 -0
  80. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/StdinContext.d.ts +28 -0
  81. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/StdinContext.js +20 -0
  82. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/StdinContext.js.map +1 -0
  83. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/StdoutContext.d.ts +15 -0
  84. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/StdoutContext.js +13 -0
  85. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/StdoutContext.js.map +1 -0
  86. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/Text.d.ts +55 -0
  87. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/Text.js +50 -0
  88. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/Text.js.map +1 -0
  89. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/Transform.d.ts +16 -0
  90. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/Transform.js +15 -0
  91. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/components/Transform.js.map +1 -0
  92. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/cursor-helpers.d.ts +38 -0
  93. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/cursor-helpers.js +56 -0
  94. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/cursor-helpers.js.map +1 -0
  95. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/devtools-window-polyfill.d.ts +1 -0
  96. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/devtools-window-polyfill.js +68 -0
  97. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/devtools-window-polyfill.js.map +1 -0
  98. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/devtools.js +36 -0
  99. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/devtools.js.map +1 -0
  100. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/dom.d.ts +62 -0
  101. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/dom.js +143 -0
  102. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/dom.js.map +1 -0
  103. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-animation.d.ts +49 -0
  104. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-animation.js +87 -0
  105. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-animation.js.map +1 -0
  106. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-app.d.ts +5 -0
  107. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-app.js +8 -0
  108. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-app.js.map +1 -0
  109. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-box-metrics.d.ts +59 -0
  110. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-box-metrics.js +81 -0
  111. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-box-metrics.js.map +1 -0
  112. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-cursor.d.ts +12 -0
  113. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-cursor.js +29 -0
  114. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-cursor.js.map +1 -0
  115. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-focus-manager.d.ts +43 -0
  116. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-focus-manager.js +18 -0
  117. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-focus-manager.js.map +1 -0
  118. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-focus.d.ts +30 -0
  119. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-focus.js +43 -0
  120. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-focus.js.map +1 -0
  121. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-input.d.ts +132 -0
  122. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-input.js +126 -0
  123. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-input.js.map +1 -0
  124. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-is-screen-reader-enabled.d.ts +6 -0
  125. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-is-screen-reader-enabled.js +12 -0
  126. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-is-screen-reader-enabled.js.map +1 -0
  127. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-paste.d.ts +35 -0
  128. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-paste.js +62 -0
  129. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-paste.js.map +1 -0
  130. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-stderr.d.ts +5 -0
  131. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-stderr.js +8 -0
  132. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-stderr.js.map +1 -0
  133. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-stdin.d.ts +7 -0
  134. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-stdin.js +9 -0
  135. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-stdin.js.map +1 -0
  136. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-stdout.d.ts +5 -0
  137. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-stdout.js +8 -0
  138. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-stdout.js.map +1 -0
  139. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-window-size.d.ts +18 -0
  140. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-window-size.js +22 -0
  141. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/hooks/use-window-size.js.map +1 -0
  142. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/index.d.ts +42 -0
  143. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/index.js +24 -0
  144. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/index.js.map +1 -0
  145. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/ink.d.ts +146 -0
  146. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/ink.js +950 -0
  147. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/ink.js.map +1 -0
  148. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/input-parser.d.ts +10 -0
  149. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/input-parser.js +194 -0
  150. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/input-parser.js.map +1 -0
  151. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/kitty-keyboard.d.ts +23 -0
  152. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/kitty-keyboard.js +32 -0
  153. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/kitty-keyboard.js.map +1 -0
  154. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/log-update.d.ts +20 -0
  155. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/log-update.js +254 -0
  156. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/log-update.js.map +1 -0
  157. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/measure-element.d.ts +20 -0
  158. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/measure-element.js +13 -0
  159. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/measure-element.js.map +1 -0
  160. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/measure-text.js +21 -0
  161. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/measure-text.js.map +1 -0
  162. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/output.d.ts +35 -0
  163. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/output.js +208 -0
  164. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/output.js.map +1 -0
  165. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/parse-keypress.d.ts +20 -0
  166. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/parse-keypress.js +495 -0
  167. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/parse-keypress.js.map +1 -0
  168. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/reconciler.d.ts +4 -0
  169. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/reconciler.js +306 -0
  170. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/reconciler.js.map +1 -0
  171. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/render-background.d.ts +4 -0
  172. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/render-background.js +25 -0
  173. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/render-background.js.map +1 -0
  174. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/render-border.js +84 -0
  175. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/render-border.js.map +1 -0
  176. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/render-node-to-output.d.ts +14 -0
  177. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/render-node-to-output.js +147 -0
  178. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/render-node-to-output.js.map +1 -0
  179. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/render-to-string.d.ts +38 -0
  180. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/render-to-string.js +116 -0
  181. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/render-to-string.js.map +1 -0
  182. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/render.d.ts +176 -0
  183. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/render.js +62 -0
  184. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/render.js.map +1 -0
  185. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/renderer.d.ts +8 -0
  186. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/renderer.js +55 -0
  187. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/renderer.js.map +1 -0
  188. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/sanitize-ansi.d.ts +2 -0
  189. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/sanitize-ansi.js +27 -0
  190. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/sanitize-ansi.js.map +1 -0
  191. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/squash-text-nodes.js +36 -0
  192. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/squash-text-nodes.js.map +1 -0
  193. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/styles.d.ts +302 -0
  194. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/styles.js +303 -0
  195. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/styles.js.map +1 -0
  196. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/utils.d.ts +9 -0
  197. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/utils.js +19 -0
  198. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/utils.js.map +1 -0
  199. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/wrap-text.js +38 -0
  200. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/wrap-text.js.map +1 -0
  201. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/write-synchronized.d.ts +4 -0
  202. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/write-synchronized.js +9 -0
  203. package/node_modules/@quantiya/codevibe-core/node_modules/ink/build/write-synchronized.js.map +1 -0
  204. package/node_modules/@quantiya/codevibe-core/node_modules/ink/license +10 -0
  205. package/node_modules/@quantiya/codevibe-core/node_modules/ink/package.json +137 -0
  206. package/node_modules/@quantiya/codevibe-core/node_modules/ink/readme.md +3192 -0
  207. package/node_modules/@quantiya/codevibe-core/node_modules/is-in-ci/index.js +7 -0
  208. package/node_modules/@quantiya/codevibe-core/node_modules/is-in-ci/package.json +49 -0
  209. package/node_modules/@quantiya/codevibe-core/node_modules/is-in-ci/readme.md +44 -0
  210. package/node_modules/@quantiya/codevibe-core/node_modules/react/LICENSE +21 -0
  211. package/node_modules/@quantiya/codevibe-core/node_modules/react/README.md +37 -0
  212. package/node_modules/@quantiya/codevibe-core/node_modules/react/cjs/react-compiler-runtime.development.js +24 -0
  213. package/node_modules/@quantiya/codevibe-core/node_modules/react/cjs/react-compiler-runtime.production.js +16 -0
  214. package/node_modules/@quantiya/codevibe-core/node_modules/react/cjs/react-compiler-runtime.profiling.js +16 -0
  215. package/node_modules/@quantiya/codevibe-core/node_modules/react/cjs/react-jsx-dev-runtime.development.js +338 -0
  216. package/node_modules/@quantiya/codevibe-core/node_modules/react/cjs/react-jsx-dev-runtime.production.js +14 -0
  217. package/node_modules/@quantiya/codevibe-core/node_modules/react/cjs/react-jsx-dev-runtime.profiling.js +14 -0
  218. package/node_modules/@quantiya/codevibe-core/node_modules/react/cjs/react-jsx-dev-runtime.react-server.development.js +370 -0
  219. package/node_modules/@quantiya/codevibe-core/node_modules/react/cjs/react-jsx-dev-runtime.react-server.production.js +40 -0
  220. package/node_modules/@quantiya/codevibe-core/node_modules/react/cjs/react-jsx-runtime.development.js +352 -0
  221. package/node_modules/@quantiya/codevibe-core/node_modules/react/cjs/react-jsx-runtime.production.js +34 -0
  222. package/node_modules/@quantiya/codevibe-core/node_modules/react/cjs/react-jsx-runtime.profiling.js +34 -0
  223. package/node_modules/@quantiya/codevibe-core/node_modules/react/cjs/react-jsx-runtime.react-server.development.js +370 -0
  224. package/node_modules/@quantiya/codevibe-core/node_modules/react/cjs/react-jsx-runtime.react-server.production.js +40 -0
  225. package/node_modules/@quantiya/codevibe-core/node_modules/react/cjs/react.development.js +1284 -0
  226. package/node_modules/@quantiya/codevibe-core/node_modules/react/cjs/react.production.js +542 -0
  227. package/node_modules/@quantiya/codevibe-core/node_modules/react/cjs/react.react-server.development.js +848 -0
  228. package/node_modules/@quantiya/codevibe-core/node_modules/react/cjs/react.react-server.production.js +423 -0
  229. package/node_modules/@quantiya/codevibe-core/node_modules/react/compiler-runtime.js +14 -0
  230. package/node_modules/@quantiya/codevibe-core/node_modules/react/index.js +7 -0
  231. package/node_modules/@quantiya/codevibe-core/node_modules/react/jsx-dev-runtime.js +7 -0
  232. package/node_modules/@quantiya/codevibe-core/node_modules/react/jsx-dev-runtime.react-server.js +7 -0
  233. package/node_modules/@quantiya/codevibe-core/node_modules/react/jsx-runtime.js +7 -0
  234. package/node_modules/@quantiya/codevibe-core/node_modules/react/jsx-runtime.react-server.js +7 -0
  235. package/node_modules/@quantiya/codevibe-core/node_modules/react/package.json +51 -0
  236. package/node_modules/@quantiya/codevibe-core/node_modules/react/react.react-server.js +7 -0
  237. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/README.md +152 -0
  238. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/backend.js +1 -0
  239. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/dist/backend.js +18302 -0
  240. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/dist/backend.js.map +1 -0
  241. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/dist/importFile.worker.worker.js +2 -0
  242. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/dist/importFile.worker.worker.js.map +1 -0
  243. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/dist/parseHookNames.chunk.js +2 -0
  244. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/dist/parseHookNames.chunk.js.map +1 -0
  245. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/dist/parseSourceAndMetadata.worker.worker.js +2 -0
  246. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/dist/parseSourceAndMetadata.worker.worker.js.map +1 -0
  247. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/dist/standalone.js +3 -0
  248. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/dist/standalone.js.LICENSE.txt +41 -0
  249. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/dist/standalone.js.map +1 -0
  250. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/node_modules/ws/LICENSE +21 -0
  251. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/node_modules/ws/README.md +495 -0
  252. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/node_modules/ws/browser.js +8 -0
  253. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/node_modules/ws/index.js +10 -0
  254. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/node_modules/ws/lib/buffer-util.js +129 -0
  255. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/node_modules/ws/lib/constants.js +10 -0
  256. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/node_modules/ws/lib/event-target.js +184 -0
  257. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/node_modules/ws/lib/extension.js +223 -0
  258. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/node_modules/ws/lib/limiter.js +55 -0
  259. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/node_modules/ws/lib/permessage-deflate.js +518 -0
  260. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/node_modules/ws/lib/receiver.js +664 -0
  261. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/node_modules/ws/lib/sender.js +409 -0
  262. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/node_modules/ws/lib/stream.js +180 -0
  263. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/node_modules/ws/lib/validation.js +104 -0
  264. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/node_modules/ws/lib/websocket-server.js +461 -0
  265. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/node_modules/ws/lib/websocket.js +1215 -0
  266. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/node_modules/ws/package.json +56 -0
  267. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/package.json +38 -0
  268. package/node_modules/@quantiya/codevibe-core/node_modules/react-devtools-core/standalone.js +1 -0
  269. package/node_modules/@quantiya/codevibe-core/node_modules/react-reconciler/LICENSE +21 -0
  270. package/node_modules/@quantiya/codevibe-core/node_modules/react-reconciler/README.md +353 -0
  271. package/node_modules/@quantiya/codevibe-core/node_modules/react-reconciler/cjs/react-reconciler-constants.development.js +19 -0
  272. package/node_modules/@quantiya/codevibe-core/node_modules/react-reconciler/cjs/react-reconciler-constants.production.js +18 -0
  273. package/node_modules/@quantiya/codevibe-core/node_modules/react-reconciler/cjs/react-reconciler-reflection.development.js +394 -0
  274. package/node_modules/@quantiya/codevibe-core/node_modules/react-reconciler/cjs/react-reconciler-reflection.production.js +382 -0
  275. package/node_modules/@quantiya/codevibe-core/node_modules/react-reconciler/cjs/react-reconciler.development.js +19736 -0
  276. package/node_modules/@quantiya/codevibe-core/node_modules/react-reconciler/cjs/react-reconciler.production.js +11594 -0
  277. package/node_modules/@quantiya/codevibe-core/node_modules/react-reconciler/cjs/react-reconciler.profiling.js +13427 -0
  278. package/node_modules/@quantiya/codevibe-core/node_modules/react-reconciler/constants.js +7 -0
  279. package/node_modules/@quantiya/codevibe-core/node_modules/react-reconciler/index.js +7 -0
  280. package/node_modules/@quantiya/codevibe-core/node_modules/react-reconciler/package.json +34 -0
  281. package/node_modules/@quantiya/codevibe-core/node_modules/react-reconciler/reflection.js +7 -0
  282. package/node_modules/@quantiya/codevibe-core/node_modules/scheduler/LICENSE +21 -0
  283. package/node_modules/@quantiya/codevibe-core/node_modules/scheduler/cjs/scheduler-unstable_mock.development.js +414 -0
  284. package/node_modules/@quantiya/codevibe-core/node_modules/scheduler/cjs/scheduler-unstable_mock.production.js +406 -0
  285. package/node_modules/@quantiya/codevibe-core/node_modules/scheduler/cjs/scheduler-unstable_post_task.development.js +150 -0
  286. package/node_modules/@quantiya/codevibe-core/node_modules/scheduler/cjs/scheduler-unstable_post_task.production.js +140 -0
  287. package/node_modules/@quantiya/codevibe-core/node_modules/scheduler/cjs/scheduler.development.js +364 -0
  288. package/node_modules/@quantiya/codevibe-core/node_modules/scheduler/cjs/scheduler.native.development.js +350 -0
  289. package/node_modules/@quantiya/codevibe-core/node_modules/scheduler/cjs/scheduler.native.production.js +330 -0
  290. package/node_modules/@quantiya/codevibe-core/node_modules/scheduler/cjs/scheduler.production.js +340 -0
  291. package/node_modules/@quantiya/codevibe-core/node_modules/scheduler/index.js +7 -0
  292. package/node_modules/@quantiya/codevibe-core/node_modules/scheduler/index.native.js +7 -0
  293. package/node_modules/@quantiya/codevibe-core/node_modules/scheduler/package.json +27 -0
  294. package/node_modules/@quantiya/codevibe-core/node_modules/scheduler/unstable_mock.js +7 -0
  295. package/node_modules/@quantiya/codevibe-core/node_modules/scheduler/unstable_post_task.js +7 -0
  296. package/node_modules/@quantiya/codevibe-core/node_modules/slice-ansi/index.d.ts +19 -0
  297. package/node_modules/@quantiya/codevibe-core/node_modules/slice-ansi/index.js +317 -0
  298. package/node_modules/@quantiya/codevibe-core/node_modules/slice-ansi/package.json +59 -0
  299. package/node_modules/@quantiya/codevibe-core/node_modules/slice-ansi/readme.md +55 -0
  300. package/node_modules/@quantiya/codevibe-core/node_modules/slice-ansi/tokenize-ansi.js +752 -0
  301. package/node_modules/@quantiya/codevibe-core/node_modules/string-width/index.js +203 -0
  302. package/node_modules/@quantiya/codevibe-core/node_modules/string-width/package.json +65 -0
  303. package/node_modules/@quantiya/codevibe-core/node_modules/string-width/readme.md +66 -0
  304. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/index.d.ts +227 -0
  305. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/package.json +75 -0
  306. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/readme.md +1085 -0
  307. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/absolute.d.ts +52 -0
  308. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/all-extend.d.ts +121 -0
  309. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/all-union-fields.d.ts +91 -0
  310. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/and-all.d.ts +76 -0
  311. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/and.d.ts +82 -0
  312. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/array-element.d.ts +46 -0
  313. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/array-indices.d.ts +25 -0
  314. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/array-length.d.ts +36 -0
  315. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/array-reverse.d.ts +85 -0
  316. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/array-slice.d.ts +132 -0
  317. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/array-splice.d.ts +104 -0
  318. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/array-tail.d.ts +70 -0
  319. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/array-values.d.ts +24 -0
  320. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/arrayable.d.ts +31 -0
  321. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/async-return-type.d.ts +28 -0
  322. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/asyncify.d.ts +25 -0
  323. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/basic.d.ts +38 -0
  324. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/camel-case.d.ts +125 -0
  325. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/camel-cased-properties-deep.d.ts +106 -0
  326. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/camel-cased-properties.d.ts +49 -0
  327. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/characters.d.ts +67 -0
  328. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/conditional-except.d.ts +47 -0
  329. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/conditional-keys.d.ts +63 -0
  330. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/conditional-pick-deep.d.ts +122 -0
  331. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/conditional-pick.d.ts +48 -0
  332. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/conditional-simplify-deep.d.ts +73 -0
  333. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/conditional-simplify.d.ts +50 -0
  334. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/delimiter-case.d.ts +79 -0
  335. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/delimiter-cased-properties-deep.d.ts +115 -0
  336. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/delimiter-cased-properties.d.ts +52 -0
  337. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/distributed-omit.d.ts +96 -0
  338. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/distributed-pick.d.ts +92 -0
  339. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/empty-object.d.ts +51 -0
  340. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/entries.d.ts +64 -0
  341. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/entry.d.ts +67 -0
  342. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/exact.d.ts +73 -0
  343. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/except.d.ts +112 -0
  344. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/exclude-exactly.d.ts +57 -0
  345. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/exclude-rest-element.d.ts +40 -0
  346. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/exclude-strict.d.ts +51 -0
  347. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/exclusify-union.d.ts +147 -0
  348. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/extends-strict.d.ts +151 -0
  349. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/extract-exactly.d.ts +56 -0
  350. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/extract-rest-element.d.ts +30 -0
  351. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/extract-strict.d.ts +51 -0
  352. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/find-global-type.d.ts +68 -0
  353. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/fixed-length-array.d.ts +97 -0
  354. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/get.d.ts +227 -0
  355. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/global-this.d.ts +24 -0
  356. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/globals/index.d.ts +3 -0
  357. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/globals/observable-like.d.ts +78 -0
  358. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/greater-than-or-equal.d.ts +63 -0
  359. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/greater-than.d.ts +92 -0
  360. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/has-optional-keys.d.ts +23 -0
  361. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/has-readonly-keys.d.ts +23 -0
  362. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/has-required-keys.d.ts +61 -0
  363. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/has-writable-keys.d.ts +23 -0
  364. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/if-any.d.ts +28 -0
  365. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/if-empty-object.d.ts +30 -0
  366. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/if-never.d.ts +28 -0
  367. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/if-null.d.ts +28 -0
  368. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/if-unknown.d.ts +28 -0
  369. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/if.d.ts +102 -0
  370. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/includes.d.ts +24 -0
  371. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/int-closed-range.d.ts +45 -0
  372. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/int-range.d.ts +67 -0
  373. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/internal/array.d.ts +144 -0
  374. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/internal/characters.d.ts +65 -0
  375. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/internal/enforce-optional.d.ts +49 -0
  376. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/internal/index.d.ts +11 -0
  377. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/internal/keys.d.ts +100 -0
  378. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/internal/numeric.d.ts +143 -0
  379. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/internal/object.d.ts +301 -0
  380. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/internal/string.d.ts +127 -0
  381. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/internal/tuple.d.ts +79 -0
  382. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/internal/type.d.ts +171 -0
  383. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/invariant-of.d.ts +85 -0
  384. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/is-any.d.ts +31 -0
  385. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/is-equal.d.ts +41 -0
  386. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/is-float.d.ts +43 -0
  387. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/is-integer.d.ts +60 -0
  388. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/is-literal.d.ts +317 -0
  389. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/is-lowercase.d.ts +38 -0
  390. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/is-never.d.ts +56 -0
  391. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/is-null.d.ts +22 -0
  392. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/is-nullable.d.ts +30 -0
  393. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/is-optional-key-of.d.ts +51 -0
  394. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/is-optional.d.ts +28 -0
  395. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/is-readonly-key-of.d.ts +55 -0
  396. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/is-required-key-of.d.ts +51 -0
  397. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/is-tuple.d.ts +92 -0
  398. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/is-undefined.d.ts +22 -0
  399. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/is-union.d.ts +40 -0
  400. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/is-unknown.d.ts +43 -0
  401. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/is-uppercase.d.ts +38 -0
  402. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/is-writable-key-of.d.ts +51 -0
  403. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/iterable-element.d.ts +66 -0
  404. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/join.d.ts +79 -0
  405. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/json-value.d.ts +33 -0
  406. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/jsonifiable.d.ts +37 -0
  407. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/jsonify.d.ts +127 -0
  408. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/kebab-case.d.ts +47 -0
  409. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/kebab-cased-properties-deep.d.ts +72 -0
  410. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/kebab-cased-properties.d.ts +46 -0
  411. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/key-as-string.d.ts +27 -0
  412. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/keys-of-union.d.ts +44 -0
  413. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/last-array-element.d.ts +89 -0
  414. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/less-than-or-equal.d.ts +60 -0
  415. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/less-than.d.ts +60 -0
  416. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/literal-to-primitive-deep.d.ts +71 -0
  417. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/literal-to-primitive.d.ts +38 -0
  418. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/literal-union.d.ts +39 -0
  419. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/merge-deep.d.ts +495 -0
  420. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/merge-exclusive.d.ts +45 -0
  421. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/merge.d.ts +87 -0
  422. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/multidimensional-array.d.ts +38 -0
  423. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/multidimensional-readonly-array.d.ts +38 -0
  424. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/non-empty-object.d.ts +38 -0
  425. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/non-empty-string.d.ts +32 -0
  426. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/non-empty-tuple.d.ts +24 -0
  427. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/non-nullable-deep.d.ts +102 -0
  428. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/numeric.d.ts +226 -0
  429. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/object-merge.d.ts +199 -0
  430. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/omit-deep.d.ts +153 -0
  431. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/omit-index-signature.d.ts +98 -0
  432. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/opaque.d.ts +3 -0
  433. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/optional-keys-of.d.ts +46 -0
  434. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/optional.d.ts +31 -0
  435. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/or-all.d.ts +73 -0
  436. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/or.d.ts +82 -0
  437. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/override-properties.d.ts +43 -0
  438. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/package-json.d.ts +710 -0
  439. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/partial-deep.d.ts +157 -0
  440. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/partial-on-undefined-deep.d.ts +81 -0
  441. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/pascal-case.d.ts +52 -0
  442. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/pascal-cased-properties-deep.d.ts +79 -0
  443. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/pascal-cased-properties.d.ts +46 -0
  444. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/paths.d.ts +241 -0
  445. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/pick-deep.d.ts +139 -0
  446. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/pick-index-signature.d.ts +52 -0
  447. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/primitive.d.ts +15 -0
  448. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/promisable.d.ts +27 -0
  449. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/readonly-deep.d.ts +118 -0
  450. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/readonly-keys-of.d.ts +38 -0
  451. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/readonly-tuple.d.ts +34 -0
  452. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/remove-prefix.d.ts +114 -0
  453. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/remove-suffix.d.ts +114 -0
  454. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/replace.d.ts +87 -0
  455. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/require-all-or-none.d.ts +54 -0
  456. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/require-at-least-one.d.ts +48 -0
  457. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/require-exactly-one.d.ts +48 -0
  458. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/require-one-or-none.d.ts +49 -0
  459. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/required-deep.d.ts +78 -0
  460. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/required-keys-of.d.ts +38 -0
  461. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/schema.d.ts +127 -0
  462. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/screaming-snake-case.d.ts +31 -0
  463. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/set-field-type.d.ts +67 -0
  464. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/set-non-nullable-deep.d.ts +89 -0
  465. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/set-non-nullable.d.ts +34 -0
  466. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/set-optional.d.ts +42 -0
  467. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/set-parameter-type.d.ts +125 -0
  468. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/set-readonly.d.ts +40 -0
  469. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/set-required-deep.d.ts +65 -0
  470. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/set-required.d.ts +75 -0
  471. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/set-return-type.d.ts +31 -0
  472. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/shared-union-fields-deep.d.ts +180 -0
  473. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/shared-union-fields.d.ts +79 -0
  474. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/simplify-deep.d.ts +117 -0
  475. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/simplify.d.ts +61 -0
  476. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/single-key-object.d.ts +28 -0
  477. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/snake-case.d.ts +48 -0
  478. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/snake-cased-properties-deep.d.ts +72 -0
  479. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/snake-cased-properties.d.ts +46 -0
  480. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/some-extend.d.ts +115 -0
  481. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/split-on-rest-element.d.ts +108 -0
  482. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/split.d.ts +90 -0
  483. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/spread.d.ts +78 -0
  484. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/string-length.d.ts +38 -0
  485. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/string-repeat.d.ts +76 -0
  486. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/string-slice.d.ts +39 -0
  487. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/string-to-array.d.ts +97 -0
  488. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/string-to-number.d.ts +67 -0
  489. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/stringified.d.ts +25 -0
  490. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/structured-cloneable.d.ts +89 -0
  491. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/subtract.d.ts +87 -0
  492. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/sum.d.ts +82 -0
  493. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/tagged-union.d.ts +53 -0
  494. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/tagged.d.ts +261 -0
  495. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/trim.d.ts +29 -0
  496. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/tsconfig-json.d.ts +1356 -0
  497. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/tuple-of.d.ts +114 -0
  498. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/tuple-to-object.d.ts +47 -0
  499. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/tuple-to-union.d.ts +54 -0
  500. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/typed-array.d.ts +19 -0
  501. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/undefined-on-partial-deep.d.ts +83 -0
  502. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/union-length.d.ts +27 -0
  503. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/union-member.d.ts +65 -0
  504. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/union-to-intersection.d.ts +35 -0
  505. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/union-to-tuple.d.ts +49 -0
  506. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/unknown-array.d.ts +27 -0
  507. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/unknown-map.d.ts +26 -0
  508. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/unknown-record.d.ts +33 -0
  509. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/unknown-set.d.ts +26 -0
  510. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/unwrap-partial.d.ts +33 -0
  511. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/unwrap-required.d.ts +37 -0
  512. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/value-of.d.ts +24 -0
  513. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/words.d.ts +148 -0
  514. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/writable-deep.d.ts +84 -0
  515. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/writable-keys-of.d.ts +34 -0
  516. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/writable.d.ts +68 -0
  517. package/node_modules/@quantiya/codevibe-core/node_modules/type-fest/source/xor.d.ts +83 -0
  518. package/node_modules/@quantiya/codevibe-core/node_modules/widest-line/package.json +60 -0
  519. package/node_modules/@quantiya/codevibe-core/node_modules/wrap-ansi/index.d.ts +41 -0
  520. package/node_modules/@quantiya/codevibe-core/node_modules/wrap-ansi/index.js +468 -0
  521. package/node_modules/@quantiya/codevibe-core/node_modules/wrap-ansi/package.json +69 -0
  522. package/node_modules/@quantiya/codevibe-core/node_modules/wrap-ansi/readme.md +77 -0
  523. package/node_modules/@quantiya/codevibe-core/node_modules/ws/LICENSE +20 -0
  524. package/node_modules/@quantiya/codevibe-core/node_modules/ws/README.md +548 -0
  525. package/node_modules/@quantiya/codevibe-core/node_modules/ws/browser.js +8 -0
  526. package/node_modules/@quantiya/codevibe-core/node_modules/ws/index.js +22 -0
  527. package/node_modules/@quantiya/codevibe-core/node_modules/ws/lib/buffer-util.js +131 -0
  528. package/node_modules/@quantiya/codevibe-core/node_modules/ws/lib/constants.js +19 -0
  529. package/node_modules/@quantiya/codevibe-core/node_modules/ws/lib/event-target.js +292 -0
  530. package/node_modules/@quantiya/codevibe-core/node_modules/ws/lib/extension.js +203 -0
  531. package/node_modules/@quantiya/codevibe-core/node_modules/ws/lib/limiter.js +55 -0
  532. package/node_modules/@quantiya/codevibe-core/node_modules/ws/lib/permessage-deflate.js +528 -0
  533. package/node_modules/@quantiya/codevibe-core/node_modules/ws/lib/receiver.js +760 -0
  534. package/node_modules/@quantiya/codevibe-core/node_modules/ws/lib/sender.js +607 -0
  535. package/node_modules/@quantiya/codevibe-core/node_modules/ws/lib/stream.js +161 -0
  536. package/node_modules/@quantiya/codevibe-core/node_modules/ws/lib/subprotocol.js +62 -0
  537. package/node_modules/@quantiya/codevibe-core/node_modules/ws/lib/validation.js +152 -0
  538. package/node_modules/@quantiya/codevibe-core/node_modules/ws/lib/websocket-server.js +562 -0
  539. package/node_modules/@quantiya/codevibe-core/node_modules/ws/lib/websocket.js +1407 -0
  540. package/node_modules/@quantiya/codevibe-core/node_modules/ws/package.json +70 -0
  541. package/node_modules/@quantiya/codevibe-core/node_modules/ws/wrapper.mjs +21 -0
  542. package/node_modules/@quantiya/codevibe-core/package.json +5 -4
  543. package/node_modules/shell-quote/.github/FUNDING.yml +12 -0
  544. package/node_modules/shell-quote/.nycrc +14 -0
  545. package/node_modules/shell-quote/LICENSE +24 -0
  546. package/node_modules/shell-quote/README.md +168 -0
  547. package/node_modules/shell-quote/eslint.config.mjs +29 -0
  548. package/node_modules/shell-quote/index.d.ts +28 -0
  549. package/node_modules/shell-quote/index.js +4 -0
  550. package/node_modules/shell-quote/package.json +76 -0
  551. package/node_modules/shell-quote/parse.d.ts +46 -0
  552. package/node_modules/shell-quote/parse.js +261 -0
  553. package/node_modules/shell-quote/quote.d.ts +15 -0
  554. package/node_modules/shell-quote/quote.js +65 -0
  555. package/node_modules/shell-quote/security.md +11 -0
  556. package/node_modules/shell-quote/test/comment.js +16 -0
  557. package/node_modules/shell-quote/test/env.js +52 -0
  558. package/node_modules/shell-quote/test/env_fn.js +21 -0
  559. package/node_modules/shell-quote/test/op.js +102 -0
  560. package/node_modules/shell-quote/test/parse.js +67 -0
  561. package/node_modules/shell-quote/test/quote.js +128 -0
  562. package/node_modules/shell-quote/test/set.js +31 -0
  563. package/node_modules/shell-quote/tsconfig.json +10 -0
  564. package/node_modules/tagged-tag/index.d.ts +3 -0
  565. package/node_modules/tagged-tag/package.json +36 -0
  566. package/node_modules/tagged-tag/readme.md +5 -0
  567. package/node_modules/terminal-size/index.d.ts +17 -0
  568. package/node_modules/terminal-size/index.js +139 -0
  569. package/node_modules/terminal-size/package.json +49 -0
  570. package/node_modules/terminal-size/readme.md +32 -0
  571. package/package.json +13 -3
  572. package/node_modules/@alcalzone/ansi-tokenize/README.md +0 -248
  573. package/node_modules/@alcalzone/ansi-tokenize/build/ansiCodes.d.ts +0 -11
  574. package/node_modules/@alcalzone/ansi-tokenize/build/ansiCodes.js +0 -41
  575. package/node_modules/@alcalzone/ansi-tokenize/build/ansiCodes.js.map +0 -1
  576. package/node_modules/@alcalzone/ansi-tokenize/build/diff.js +0 -17
  577. package/node_modules/@alcalzone/ansi-tokenize/build/diff.js.map +0 -1
  578. package/node_modules/@alcalzone/ansi-tokenize/build/reduce.js +0 -27
  579. package/node_modules/@alcalzone/ansi-tokenize/build/reduce.js.map +0 -1
  580. package/node_modules/@alcalzone/ansi-tokenize/build/tokenize.d.ts +0 -12
  581. package/node_modules/@alcalzone/ansi-tokenize/build/tokenize.js +0 -70
  582. package/node_modules/@alcalzone/ansi-tokenize/build/tokenize.js.map +0 -1
  583. package/node_modules/@alcalzone/ansi-tokenize/node_modules/is-fullwidth-code-point/index.js +0 -40
  584. package/node_modules/@alcalzone/ansi-tokenize/node_modules/is-fullwidth-code-point/package.json +0 -45
  585. package/node_modules/@alcalzone/ansi-tokenize/node_modules/is-fullwidth-code-point/readme.md +0 -43
  586. package/node_modules/@alcalzone/ansi-tokenize/package.json +0 -63
  587. package/node_modules/cli-boxes/index.d.ts +0 -127
  588. package/node_modules/cli-boxes/index.js +0 -6
  589. package/node_modules/cli-boxes/package.json +0 -42
  590. package/node_modules/cli-boxes/readme.md +0 -115
  591. package/node_modules/cli-truncate/index.d.ts +0 -116
  592. package/node_modules/cli-truncate/index.js +0 -99
  593. package/node_modules/cli-truncate/node_modules/ansi-styles/index.d.ts +0 -236
  594. package/node_modules/cli-truncate/node_modules/ansi-styles/package.json +0 -54
  595. package/node_modules/cli-truncate/node_modules/ansi-styles/readme.md +0 -173
  596. package/node_modules/cli-truncate/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  597. package/node_modules/cli-truncate/node_modules/emoji-regex/README.md +0 -107
  598. package/node_modules/cli-truncate/node_modules/emoji-regex/index.d.ts +0 -3
  599. package/node_modules/cli-truncate/node_modules/emoji-regex/index.js +0 -4
  600. package/node_modules/cli-truncate/node_modules/emoji-regex/index.mjs +0 -4
  601. package/node_modules/cli-truncate/node_modules/emoji-regex/package.json +0 -45
  602. package/node_modules/cli-truncate/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  603. package/node_modules/cli-truncate/node_modules/is-fullwidth-code-point/index.js +0 -40
  604. package/node_modules/cli-truncate/node_modules/is-fullwidth-code-point/package.json +0 -45
  605. package/node_modules/cli-truncate/node_modules/is-fullwidth-code-point/readme.md +0 -43
  606. package/node_modules/cli-truncate/node_modules/slice-ansi/index.js +0 -105
  607. package/node_modules/cli-truncate/node_modules/slice-ansi/package.json +0 -53
  608. package/node_modules/cli-truncate/node_modules/slice-ansi/readme.md +0 -66
  609. package/node_modules/cli-truncate/node_modules/string-width/index.js +0 -82
  610. package/node_modules/cli-truncate/node_modules/string-width/package.json +0 -64
  611. package/node_modules/cli-truncate/node_modules/string-width/readme.md +0 -66
  612. package/node_modules/cli-truncate/package.json +0 -51
  613. package/node_modules/cli-truncate/readme.md +0 -150
  614. package/node_modules/ink/build/apply-styles.js +0 -175
  615. package/node_modules/ink/build/build-layout.js +0 -77
  616. package/node_modules/ink/build/calculate-wrapped-text.js +0 -53
  617. package/node_modules/ink/build/components/App.d.ts +0 -59
  618. package/node_modules/ink/build/components/App.js +0 -286
  619. package/node_modules/ink/build/components/App.js.map +0 -1
  620. package/node_modules/ink/build/components/AppContext.d.ts +0 -11
  621. package/node_modules/ink/build/components/AppContext.js +0 -11
  622. package/node_modules/ink/build/components/AppContext.js.map +0 -1
  623. package/node_modules/ink/build/components/Box.d.ts +0 -62
  624. package/node_modules/ink/build/components/Box.js +0 -20
  625. package/node_modules/ink/build/components/Box.js.map +0 -1
  626. package/node_modules/ink/build/components/Color.js +0 -62
  627. package/node_modules/ink/build/components/ErrorOverview.js +0 -79
  628. package/node_modules/ink/build/components/ErrorOverview.js.map +0 -1
  629. package/node_modules/ink/build/components/Newline.d.ts +0 -13
  630. package/node_modules/ink/build/components/Newline.js +0 -8
  631. package/node_modules/ink/build/components/Newline.js.map +0 -1
  632. package/node_modules/ink/build/components/Spacer.d.ts +0 -6
  633. package/node_modules/ink/build/components/Spacer.js +0 -10
  634. package/node_modules/ink/build/components/Spacer.js.map +0 -1
  635. package/node_modules/ink/build/components/Static.d.ts +0 -31
  636. package/node_modules/ink/build/components/Static.js +0 -33
  637. package/node_modules/ink/build/components/Static.js.map +0 -1
  638. package/node_modules/ink/build/components/StderrContext.d.ts +0 -17
  639. package/node_modules/ink/build/components/StderrContext.js +0 -13
  640. package/node_modules/ink/build/components/StderrContext.js.map +0 -1
  641. package/node_modules/ink/build/components/StdinContext.d.ts +0 -23
  642. package/node_modules/ink/build/components/StdinContext.js +0 -19
  643. package/node_modules/ink/build/components/StdinContext.js.map +0 -1
  644. package/node_modules/ink/build/components/StdoutContext.d.ts +0 -17
  645. package/node_modules/ink/build/components/StdoutContext.js +0 -13
  646. package/node_modules/ink/build/components/StdoutContext.js.map +0 -1
  647. package/node_modules/ink/build/components/Text.d.ts +0 -49
  648. package/node_modules/ink/build/components/Text.js +0 -40
  649. package/node_modules/ink/build/components/Text.js.map +0 -1
  650. package/node_modules/ink/build/components/Transform.d.ts +0 -15
  651. package/node_modules/ink/build/components/Transform.js +0 -14
  652. package/node_modules/ink/build/components/Transform.js.map +0 -1
  653. package/node_modules/ink/build/devtools-window-polyfill.js +0 -64
  654. package/node_modules/ink/build/devtools-window-polyfill.js.map +0 -1
  655. package/node_modules/ink/build/devtools.js +0 -9
  656. package/node_modules/ink/build/devtools.js.map +0 -1
  657. package/node_modules/ink/build/dom.d.ts +0 -42
  658. package/node_modules/ink/build/dom.js +0 -117
  659. package/node_modules/ink/build/dom.js.map +0 -1
  660. package/node_modules/ink/build/experimental/apply-style.js +0 -140
  661. package/node_modules/ink/build/experimental/dom.js +0 -123
  662. package/node_modules/ink/build/experimental/output.js +0 -91
  663. package/node_modules/ink/build/experimental/reconciler.js +0 -141
  664. package/node_modules/ink/build/experimental/renderer.js +0 -81
  665. package/node_modules/ink/build/hooks/use-app.d.ts +0 -5
  666. package/node_modules/ink/build/hooks/use-app.js +0 -8
  667. package/node_modules/ink/build/hooks/use-app.js.map +0 -1
  668. package/node_modules/ink/build/hooks/use-focus-manager.d.ts +0 -34
  669. package/node_modules/ink/build/hooks/use-focus-manager.js +0 -18
  670. package/node_modules/ink/build/hooks/use-focus-manager.js.map +0 -1
  671. package/node_modules/ink/build/hooks/use-focus.d.ts +0 -34
  672. package/node_modules/ink/build/hooks/use-focus.js +0 -47
  673. package/node_modules/ink/build/hooks/use-focus.js.map +0 -1
  674. package/node_modules/ink/build/hooks/use-input.d.ts +0 -97
  675. package/node_modules/ink/build/hooks/use-input.js +0 -96
  676. package/node_modules/ink/build/hooks/use-input.js.map +0 -1
  677. package/node_modules/ink/build/hooks/use-stderr.d.ts +0 -5
  678. package/node_modules/ink/build/hooks/use-stderr.js +0 -8
  679. package/node_modules/ink/build/hooks/use-stderr.js.map +0 -1
  680. package/node_modules/ink/build/hooks/use-stdin.d.ts +0 -5
  681. package/node_modules/ink/build/hooks/use-stdin.js +0 -8
  682. package/node_modules/ink/build/hooks/use-stdin.js.map +0 -1
  683. package/node_modules/ink/build/hooks/use-stdout.d.ts +0 -5
  684. package/node_modules/ink/build/hooks/use-stdout.js +0 -8
  685. package/node_modules/ink/build/hooks/use-stdout.js.map +0 -1
  686. package/node_modules/ink/build/hooks/useInput.js +0 -38
  687. package/node_modules/ink/build/index.d.ts +0 -27
  688. package/node_modules/ink/build/index.js +0 -16
  689. package/node_modules/ink/build/index.js.map +0 -1
  690. package/node_modules/ink/build/ink.d.ts +0 -37
  691. package/node_modules/ink/build/ink.js +0 -235
  692. package/node_modules/ink/build/ink.js.map +0 -1
  693. package/node_modules/ink/build/instance.js +0 -205
  694. package/node_modules/ink/build/log-update.d.ts +0 -12
  695. package/node_modules/ink/build/log-update.js +0 -37
  696. package/node_modules/ink/build/log-update.js.map +0 -1
  697. package/node_modules/ink/build/measure-element.d.ts +0 -16
  698. package/node_modules/ink/build/measure-element.js +0 -9
  699. package/node_modules/ink/build/measure-element.js.map +0 -1
  700. package/node_modules/ink/build/measure-text.js +0 -20
  701. package/node_modules/ink/build/measure-text.js.map +0 -1
  702. package/node_modules/ink/build/output.d.ts +0 -35
  703. package/node_modules/ink/build/output.js +0 -148
  704. package/node_modules/ink/build/output.js.map +0 -1
  705. package/node_modules/ink/build/parse-keypress.d.ts +0 -14
  706. package/node_modules/ink/build/parse-keypress.js +0 -225
  707. package/node_modules/ink/build/parse-keypress.js.map +0 -1
  708. package/node_modules/ink/build/reconciler.d.ts +0 -4
  709. package/node_modules/ink/build/reconciler.js +0 -219
  710. package/node_modules/ink/build/reconciler.js.map +0 -1
  711. package/node_modules/ink/build/render-border.js +0 -73
  712. package/node_modules/ink/build/render-border.js.map +0 -1
  713. package/node_modules/ink/build/render-node-to-output.d.ts +0 -10
  714. package/node_modules/ink/build/render-node-to-output.js +0 -99
  715. package/node_modules/ink/build/render-node-to-output.js.map +0 -1
  716. package/node_modules/ink/build/render.d.ts +0 -63
  717. package/node_modules/ink/build/render.js +0 -48
  718. package/node_modules/ink/build/render.js.map +0 -1
  719. package/node_modules/ink/build/renderer.d.ts +0 -8
  720. package/node_modules/ink/build/renderer.js +0 -36
  721. package/node_modules/ink/build/renderer.js.map +0 -1
  722. package/node_modules/ink/build/squash-text-nodes.js +0 -35
  723. package/node_modules/ink/build/squash-text-nodes.js.map +0 -1
  724. package/node_modules/ink/build/styles.d.ts +0 -243
  725. package/node_modules/ink/build/styles.js +0 -232
  726. package/node_modules/ink/build/styles.js.map +0 -1
  727. package/node_modules/ink/build/wrap-text.js +0 -31
  728. package/node_modules/ink/build/wrap-text.js.map +0 -1
  729. package/node_modules/ink/license +0 -9
  730. package/node_modules/ink/node_modules/ansi-styles/index.d.ts +0 -236
  731. package/node_modules/ink/node_modules/ansi-styles/index.js +0 -223
  732. package/node_modules/ink/node_modules/ansi-styles/package.json +0 -54
  733. package/node_modules/ink/node_modules/ansi-styles/readme.md +0 -173
  734. package/node_modules/ink/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  735. package/node_modules/ink/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  736. package/node_modules/ink/node_modules/emoji-regex/README.md +0 -107
  737. package/node_modules/ink/node_modules/emoji-regex/index.d.ts +0 -3
  738. package/node_modules/ink/node_modules/emoji-regex/index.js +0 -4
  739. package/node_modules/ink/node_modules/emoji-regex/index.mjs +0 -4
  740. package/node_modules/ink/node_modules/emoji-regex/package.json +0 -45
  741. package/node_modules/ink/node_modules/string-width/index.d.ts +0 -39
  742. package/node_modules/ink/node_modules/string-width/index.js +0 -82
  743. package/node_modules/ink/node_modules/string-width/package.json +0 -64
  744. package/node_modules/ink/node_modules/string-width/readme.md +0 -66
  745. package/node_modules/ink/node_modules/type-fest/index.d.ts +0 -178
  746. package/node_modules/ink/node_modules/type-fest/package.json +0 -91
  747. package/node_modules/ink/node_modules/type-fest/readme.md +0 -1060
  748. package/node_modules/ink/node_modules/type-fest/source/all-union-fields.d.ts +0 -88
  749. package/node_modules/ink/node_modules/type-fest/source/and.d.ts +0 -25
  750. package/node_modules/ink/node_modules/type-fest/source/array-indices.d.ts +0 -23
  751. package/node_modules/ink/node_modules/type-fest/source/array-slice.d.ts +0 -109
  752. package/node_modules/ink/node_modules/type-fest/source/array-splice.d.ts +0 -99
  753. package/node_modules/ink/node_modules/type-fest/source/array-tail.d.ts +0 -76
  754. package/node_modules/ink/node_modules/type-fest/source/array-values.d.ts +0 -22
  755. package/node_modules/ink/node_modules/type-fest/source/arrayable.d.ts +0 -29
  756. package/node_modules/ink/node_modules/type-fest/source/async-return-type.d.ts +0 -23
  757. package/node_modules/ink/node_modules/type-fest/source/asyncify.d.ts +0 -32
  758. package/node_modules/ink/node_modules/type-fest/source/basic.d.ts +0 -68
  759. package/node_modules/ink/node_modules/type-fest/source/camel-case.d.ts +0 -89
  760. package/node_modules/ink/node_modules/type-fest/source/camel-cased-properties-deep.d.ts +0 -97
  761. package/node_modules/ink/node_modules/type-fest/source/camel-cased-properties.d.ts +0 -43
  762. package/node_modules/ink/node_modules/type-fest/source/conditional-except.d.ts +0 -45
  763. package/node_modules/ink/node_modules/type-fest/source/conditional-keys.d.ts +0 -47
  764. package/node_modules/ink/node_modules/type-fest/source/conditional-pick-deep.d.ts +0 -118
  765. package/node_modules/ink/node_modules/type-fest/source/conditional-pick.d.ts +0 -44
  766. package/node_modules/ink/node_modules/type-fest/source/conditional-simplify.d.ts +0 -32
  767. package/node_modules/ink/node_modules/type-fest/source/delimiter-case.d.ts +0 -78
  768. package/node_modules/ink/node_modules/type-fest/source/delimiter-cased-properties-deep.d.ts +0 -106
  769. package/node_modules/ink/node_modules/type-fest/source/delimiter-cased-properties.d.ts +0 -46
  770. package/node_modules/ink/node_modules/type-fest/source/distributed-omit.d.ts +0 -89
  771. package/node_modules/ink/node_modules/type-fest/source/distributed-pick.d.ts +0 -85
  772. package/node_modules/ink/node_modules/type-fest/source/empty-object.d.ts +0 -46
  773. package/node_modules/ink/node_modules/type-fest/source/enforce-optional.d.ts +0 -47
  774. package/node_modules/ink/node_modules/type-fest/source/entries.d.ts +0 -62
  775. package/node_modules/ink/node_modules/type-fest/source/entry.d.ts +0 -65
  776. package/node_modules/ink/node_modules/type-fest/source/exact.d.ts +0 -68
  777. package/node_modules/ink/node_modules/type-fest/source/except.d.ts +0 -108
  778. package/node_modules/ink/node_modules/type-fest/source/find-global-type.d.ts +0 -64
  779. package/node_modules/ink/node_modules/type-fest/source/fixed-length-array.d.ts +0 -43
  780. package/node_modules/ink/node_modules/type-fest/source/get.d.ts +0 -219
  781. package/node_modules/ink/node_modules/type-fest/source/global-this.d.ts +0 -21
  782. package/node_modules/ink/node_modules/type-fest/source/greater-than-or-equal.d.ts +0 -22
  783. package/node_modules/ink/node_modules/type-fest/source/greater-than.d.ts +0 -56
  784. package/node_modules/ink/node_modules/type-fest/source/has-optional-keys.d.ts +0 -21
  785. package/node_modules/ink/node_modules/type-fest/source/has-readonly-keys.d.ts +0 -21
  786. package/node_modules/ink/node_modules/type-fest/source/has-required-keys.d.ts +0 -59
  787. package/node_modules/ink/node_modules/type-fest/source/has-writable-keys.d.ts +0 -21
  788. package/node_modules/ink/node_modules/type-fest/source/if-any.d.ts +0 -24
  789. package/node_modules/ink/node_modules/type-fest/source/if-empty-object.d.ts +0 -26
  790. package/node_modules/ink/node_modules/type-fest/source/if-never.d.ts +0 -24
  791. package/node_modules/ink/node_modules/type-fest/source/if-null.d.ts +0 -24
  792. package/node_modules/ink/node_modules/type-fest/source/if-unknown.d.ts +0 -24
  793. package/node_modules/ink/node_modules/type-fest/source/includes.d.ts +0 -22
  794. package/node_modules/ink/node_modules/type-fest/source/int-closed-range.d.ts +0 -35
  795. package/node_modules/ink/node_modules/type-fest/source/int-range.d.ts +0 -55
  796. package/node_modules/ink/node_modules/type-fest/source/internal/array.d.ts +0 -126
  797. package/node_modules/ink/node_modules/type-fest/source/internal/characters.d.ts +0 -67
  798. package/node_modules/ink/node_modules/type-fest/source/internal/index.d.ts +0 -8
  799. package/node_modules/ink/node_modules/type-fest/source/internal/keys.d.ts +0 -97
  800. package/node_modules/ink/node_modules/type-fest/source/internal/numeric.d.ts +0 -118
  801. package/node_modules/ink/node_modules/type-fest/source/internal/object.d.ts +0 -236
  802. package/node_modules/ink/node_modules/type-fest/source/internal/string.d.ts +0 -210
  803. package/node_modules/ink/node_modules/type-fest/source/internal/tuple.d.ts +0 -90
  804. package/node_modules/ink/node_modules/type-fest/source/internal/type.d.ts +0 -139
  805. package/node_modules/ink/node_modules/type-fest/source/invariant-of.d.ts +0 -76
  806. package/node_modules/ink/node_modules/type-fest/source/is-any.d.ts +0 -33
  807. package/node_modules/ink/node_modules/type-fest/source/is-equal.d.ts +0 -31
  808. package/node_modules/ink/node_modules/type-fest/source/is-float.d.ts +0 -41
  809. package/node_modules/ink/node_modules/type-fest/source/is-integer.d.ts +0 -58
  810. package/node_modules/ink/node_modules/type-fest/source/is-literal.d.ts +0 -296
  811. package/node_modules/ink/node_modules/type-fest/source/is-never.d.ts +0 -42
  812. package/node_modules/ink/node_modules/type-fest/source/is-null.d.ts +0 -20
  813. package/node_modules/ink/node_modules/type-fest/source/is-tuple.d.ts +0 -89
  814. package/node_modules/ink/node_modules/type-fest/source/is-unknown.d.ts +0 -52
  815. package/node_modules/ink/node_modules/type-fest/source/iterable-element.d.ts +0 -64
  816. package/node_modules/ink/node_modules/type-fest/source/join.d.ts +0 -68
  817. package/node_modules/ink/node_modules/type-fest/source/jsonifiable.d.ts +0 -37
  818. package/node_modules/ink/node_modules/type-fest/source/jsonify.d.ts +0 -122
  819. package/node_modules/ink/node_modules/type-fest/source/kebab-case.d.ts +0 -44
  820. package/node_modules/ink/node_modules/type-fest/source/kebab-cased-properties-deep.d.ts +0 -63
  821. package/node_modules/ink/node_modules/type-fest/source/kebab-cased-properties.d.ts +0 -40
  822. package/node_modules/ink/node_modules/type-fest/source/keys-of-union.d.ts +0 -42
  823. package/node_modules/ink/node_modules/type-fest/source/last-array-element.d.ts +0 -38
  824. package/node_modules/ink/node_modules/type-fest/source/less-than-or-equal.d.ts +0 -22
  825. package/node_modules/ink/node_modules/type-fest/source/less-than.d.ts +0 -26
  826. package/node_modules/ink/node_modules/type-fest/source/literal-to-primitive-deep.d.ts +0 -36
  827. package/node_modules/ink/node_modules/type-fest/source/literal-to-primitive.d.ts +0 -36
  828. package/node_modules/ink/node_modules/type-fest/source/literal-union.d.ts +0 -37
  829. package/node_modules/ink/node_modules/type-fest/source/merge-deep.d.ts +0 -486
  830. package/node_modules/ink/node_modules/type-fest/source/merge-exclusive.d.ts +0 -41
  831. package/node_modules/ink/node_modules/type-fest/source/merge.d.ts +0 -48
  832. package/node_modules/ink/node_modules/type-fest/source/multidimensional-array.d.ts +0 -44
  833. package/node_modules/ink/node_modules/type-fest/source/multidimensional-readonly-array.d.ts +0 -48
  834. package/node_modules/ink/node_modules/type-fest/source/non-empty-object.d.ts +0 -35
  835. package/node_modules/ink/node_modules/type-fest/source/non-empty-string.d.ts +0 -28
  836. package/node_modules/ink/node_modules/type-fest/source/non-empty-tuple.d.ts +0 -21
  837. package/node_modules/ink/node_modules/type-fest/source/numeric.d.ts +0 -222
  838. package/node_modules/ink/node_modules/type-fest/source/observable-like.d.ts +0 -63
  839. package/node_modules/ink/node_modules/type-fest/source/omit-deep.d.ts +0 -167
  840. package/node_modules/ink/node_modules/type-fest/source/omit-index-signature.d.ts +0 -95
  841. package/node_modules/ink/node_modules/type-fest/source/opaque.d.ts +0 -1
  842. package/node_modules/ink/node_modules/type-fest/source/optional-keys-of.d.ts +0 -39
  843. package/node_modules/ink/node_modules/type-fest/source/or.d.ts +0 -25
  844. package/node_modules/ink/node_modules/type-fest/source/override-properties.d.ts +0 -36
  845. package/node_modules/ink/node_modules/type-fest/source/package-json.d.ts +0 -676
  846. package/node_modules/ink/node_modules/type-fest/source/partial-deep.d.ts +0 -151
  847. package/node_modules/ink/node_modules/type-fest/source/partial-on-undefined-deep.d.ts +0 -78
  848. package/node_modules/ink/node_modules/type-fest/source/pascal-case.d.ts +0 -42
  849. package/node_modules/ink/node_modules/type-fest/source/pascal-cased-properties-deep.d.ts +0 -62
  850. package/node_modules/ink/node_modules/type-fest/source/pascal-cased-properties.d.ts +0 -36
  851. package/node_modules/ink/node_modules/type-fest/source/paths.d.ts +0 -262
  852. package/node_modules/ink/node_modules/type-fest/source/pick-deep.d.ts +0 -149
  853. package/node_modules/ink/node_modules/type-fest/source/pick-index-signature.d.ts +0 -50
  854. package/node_modules/ink/node_modules/type-fest/source/primitive.d.ts +0 -13
  855. package/node_modules/ink/node_modules/type-fest/source/promisable.d.ts +0 -25
  856. package/node_modules/ink/node_modules/type-fest/source/readonly-deep.d.ts +0 -81
  857. package/node_modules/ink/node_modules/type-fest/source/readonly-keys-of.d.ts +0 -30
  858. package/node_modules/ink/node_modules/type-fest/source/readonly-tuple.d.ts +0 -41
  859. package/node_modules/ink/node_modules/type-fest/source/replace.d.ts +0 -85
  860. package/node_modules/ink/node_modules/type-fest/source/require-all-or-none.d.ts +0 -51
  861. package/node_modules/ink/node_modules/type-fest/source/require-at-least-one.d.ts +0 -47
  862. package/node_modules/ink/node_modules/type-fest/source/require-exactly-one.d.ts +0 -45
  863. package/node_modules/ink/node_modules/type-fest/source/require-one-or-none.d.ts +0 -46
  864. package/node_modules/ink/node_modules/type-fest/source/required-deep.d.ts +0 -78
  865. package/node_modules/ink/node_modules/type-fest/source/required-keys-of.d.ts +0 -30
  866. package/node_modules/ink/node_modules/type-fest/source/schema.d.ts +0 -114
  867. package/node_modules/ink/node_modules/type-fest/source/screaming-snake-case.d.ts +0 -28
  868. package/node_modules/ink/node_modules/type-fest/source/set-field-type.d.ts +0 -65
  869. package/node_modules/ink/node_modules/type-fest/source/set-non-nullable-deep.d.ts +0 -83
  870. package/node_modules/ink/node_modules/type-fest/source/set-non-nullable.d.ts +0 -39
  871. package/node_modules/ink/node_modules/type-fest/source/set-optional.d.ts +0 -38
  872. package/node_modules/ink/node_modules/type-fest/source/set-parameter-type.d.ts +0 -117
  873. package/node_modules/ink/node_modules/type-fest/source/set-readonly.d.ts +0 -39
  874. package/node_modules/ink/node_modules/type-fest/source/set-required-deep.d.ts +0 -68
  875. package/node_modules/ink/node_modules/type-fest/source/set-required.d.ts +0 -70
  876. package/node_modules/ink/node_modules/type-fest/source/set-return-type.d.ts +0 -29
  877. package/node_modules/ink/node_modules/type-fest/source/shared-union-fields-deep.d.ts +0 -178
  878. package/node_modules/ink/node_modules/type-fest/source/shared-union-fields.d.ts +0 -76
  879. package/node_modules/ink/node_modules/type-fest/source/simplify-deep.d.ts +0 -115
  880. package/node_modules/ink/node_modules/type-fest/source/simplify.d.ts +0 -58
  881. package/node_modules/ink/node_modules/type-fest/source/single-key-object.d.ts +0 -29
  882. package/node_modules/ink/node_modules/type-fest/source/snake-case.d.ts +0 -45
  883. package/node_modules/ink/node_modules/type-fest/source/snake-cased-properties-deep.d.ts +0 -63
  884. package/node_modules/ink/node_modules/type-fest/source/snake-cased-properties.d.ts +0 -40
  885. package/node_modules/ink/node_modules/type-fest/source/split.d.ts +0 -88
  886. package/node_modules/ink/node_modules/type-fest/source/spread.d.ts +0 -84
  887. package/node_modules/ink/node_modules/type-fest/source/string-key-of.d.ts +0 -25
  888. package/node_modules/ink/node_modules/type-fest/source/string-repeat.d.ts +0 -47
  889. package/node_modules/ink/node_modules/type-fest/source/string-slice.d.ts +0 -37
  890. package/node_modules/ink/node_modules/type-fest/source/stringified.d.ts +0 -23
  891. package/node_modules/ink/node_modules/type-fest/source/structured-cloneable.d.ts +0 -92
  892. package/node_modules/ink/node_modules/type-fest/source/subtract.d.ts +0 -83
  893. package/node_modules/ink/node_modules/type-fest/source/sum.d.ts +0 -78
  894. package/node_modules/ink/node_modules/type-fest/source/tagged-union.d.ts +0 -51
  895. package/node_modules/ink/node_modules/type-fest/source/tagged.d.ts +0 -256
  896. package/node_modules/ink/node_modules/type-fest/source/trim.d.ts +0 -27
  897. package/node_modules/ink/node_modules/type-fest/source/tsconfig-json.d.ts +0 -1294
  898. package/node_modules/ink/node_modules/type-fest/source/tuple-to-object.d.ts +0 -42
  899. package/node_modules/ink/node_modules/type-fest/source/tuple-to-union.d.ts +0 -51
  900. package/node_modules/ink/node_modules/type-fest/source/typed-array.d.ts +0 -17
  901. package/node_modules/ink/node_modules/type-fest/source/undefined-on-partial-deep.d.ts +0 -80
  902. package/node_modules/ink/node_modules/type-fest/source/union-to-intersection.d.ts +0 -61
  903. package/node_modules/ink/node_modules/type-fest/source/union-to-tuple.d.ts +0 -56
  904. package/node_modules/ink/node_modules/type-fest/source/unknown-array.d.ts +0 -25
  905. package/node_modules/ink/node_modules/type-fest/source/unknown-map.d.ts +0 -24
  906. package/node_modules/ink/node_modules/type-fest/source/unknown-record.d.ts +0 -31
  907. package/node_modules/ink/node_modules/type-fest/source/unknown-set.d.ts +0 -24
  908. package/node_modules/ink/node_modules/type-fest/source/value-of.d.ts +0 -42
  909. package/node_modules/ink/node_modules/type-fest/source/words.d.ts +0 -118
  910. package/node_modules/ink/node_modules/type-fest/source/writable-deep.d.ts +0 -83
  911. package/node_modules/ink/node_modules/type-fest/source/writable-keys-of.d.ts +0 -33
  912. package/node_modules/ink/node_modules/type-fest/source/writable.d.ts +0 -68
  913. package/node_modules/ink/node_modules/wrap-ansi/index.d.ts +0 -41
  914. package/node_modules/ink/node_modules/wrap-ansi/index.js +0 -222
  915. package/node_modules/ink/node_modules/wrap-ansi/package.json +0 -69
  916. package/node_modules/ink/node_modules/wrap-ansi/readme.md +0 -75
  917. package/node_modules/ink/package.json +0 -196
  918. package/node_modules/ink/readme.md +0 -2162
  919. package/node_modules/is-in-ci/index.js +0 -11
  920. package/node_modules/is-in-ci/license +0 -9
  921. package/node_modules/is-in-ci/package.json +0 -49
  922. package/node_modules/is-in-ci/readme.md +0 -44
  923. package/node_modules/js-tokens/CHANGELOG.md +0 -151
  924. package/node_modules/js-tokens/LICENSE +0 -21
  925. package/node_modules/js-tokens/README.md +0 -240
  926. package/node_modules/js-tokens/index.js +0 -23
  927. package/node_modules/js-tokens/package.json +0 -30
  928. package/node_modules/loose-envify/LICENSE +0 -21
  929. package/node_modules/loose-envify/README.md +0 -45
  930. package/node_modules/loose-envify/cli.js +0 -16
  931. package/node_modules/loose-envify/custom.js +0 -4
  932. package/node_modules/loose-envify/index.js +0 -3
  933. package/node_modules/loose-envify/loose-envify.js +0 -36
  934. package/node_modules/loose-envify/package.json +0 -36
  935. package/node_modules/loose-envify/replace.js +0 -65
  936. package/node_modules/react/LICENSE +0 -21
  937. package/node_modules/react/README.md +0 -37
  938. package/node_modules/react/cjs/react-jsx-dev-runtime.development.js +0 -1315
  939. package/node_modules/react/cjs/react-jsx-dev-runtime.production.min.js +0 -10
  940. package/node_modules/react/cjs/react-jsx-dev-runtime.profiling.min.js +0 -10
  941. package/node_modules/react/cjs/react-jsx-runtime.development.js +0 -1333
  942. package/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -11
  943. package/node_modules/react/cjs/react-jsx-runtime.profiling.min.js +0 -11
  944. package/node_modules/react/cjs/react.development.js +0 -2740
  945. package/node_modules/react/cjs/react.production.min.js +0 -26
  946. package/node_modules/react/cjs/react.shared-subset.development.js +0 -20
  947. package/node_modules/react/cjs/react.shared-subset.production.min.js +0 -10
  948. package/node_modules/react/index.js +0 -7
  949. package/node_modules/react/jsx-dev-runtime.js +0 -7
  950. package/node_modules/react/jsx-runtime.js +0 -7
  951. package/node_modules/react/package.json +0 -47
  952. package/node_modules/react/react.shared-subset.js +0 -7
  953. package/node_modules/react/umd/react.development.js +0 -3343
  954. package/node_modules/react/umd/react.production.min.js +0 -31
  955. package/node_modules/react/umd/react.profiling.min.js +0 -31
  956. package/node_modules/react-reconciler/LICENSE +0 -21
  957. package/node_modules/react-reconciler/README.md +0 -337
  958. package/node_modules/react-reconciler/cjs/react-reconciler-constants.development.js +0 -45
  959. package/node_modules/react-reconciler/cjs/react-reconciler-constants.production.min.js +0 -10
  960. package/node_modules/react-reconciler/cjs/react-reconciler-reflection.development.js +0 -660
  961. package/node_modules/react-reconciler/cjs/react-reconciler-reflection.production.min.js +0 -15
  962. package/node_modules/react-reconciler/cjs/react-reconciler.development.js +0 -21531
  963. package/node_modules/react-reconciler/cjs/react-reconciler.production.min.js +0 -234
  964. package/node_modules/react-reconciler/cjs/react-reconciler.profiling.min.js +0 -255
  965. package/node_modules/react-reconciler/constants.js +0 -7
  966. package/node_modules/react-reconciler/index.js +0 -7
  967. package/node_modules/react-reconciler/package.json +0 -40
  968. package/node_modules/react-reconciler/reflection.js +0 -7
  969. package/node_modules/scheduler/LICENSE +0 -21
  970. package/node_modules/scheduler/cjs/scheduler-unstable_mock.development.js +0 -700
  971. package/node_modules/scheduler/cjs/scheduler-unstable_mock.production.min.js +0 -20
  972. package/node_modules/scheduler/cjs/scheduler-unstable_post_task.development.js +0 -207
  973. package/node_modules/scheduler/cjs/scheduler-unstable_post_task.production.min.js +0 -14
  974. package/node_modules/scheduler/cjs/scheduler.development.js +0 -634
  975. package/node_modules/scheduler/cjs/scheduler.production.min.js +0 -19
  976. package/node_modules/scheduler/index.js +0 -7
  977. package/node_modules/scheduler/package.json +0 -36
  978. package/node_modules/scheduler/umd/scheduler-unstable_mock.development.js +0 -699
  979. package/node_modules/scheduler/umd/scheduler-unstable_mock.production.min.js +0 -19
  980. package/node_modules/scheduler/umd/scheduler.development.js +0 -152
  981. package/node_modules/scheduler/umd/scheduler.production.min.js +0 -146
  982. package/node_modules/scheduler/umd/scheduler.profiling.min.js +0 -146
  983. package/node_modules/scheduler/unstable_mock.js +0 -7
  984. package/node_modules/scheduler/unstable_post_task.js +0 -7
  985. package/node_modules/slice-ansi/index.d.ts +0 -19
  986. package/node_modules/slice-ansi/index.js +0 -169
  987. package/node_modules/slice-ansi/license +0 -10
  988. package/node_modules/slice-ansi/node_modules/ansi-styles/index.d.ts +0 -236
  989. package/node_modules/slice-ansi/node_modules/ansi-styles/index.js +0 -223
  990. package/node_modules/slice-ansi/node_modules/ansi-styles/license +0 -9
  991. package/node_modules/slice-ansi/node_modules/ansi-styles/package.json +0 -54
  992. package/node_modules/slice-ansi/node_modules/ansi-styles/readme.md +0 -173
  993. package/node_modules/slice-ansi/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  994. package/node_modules/slice-ansi/node_modules/is-fullwidth-code-point/license +0 -9
  995. package/node_modules/slice-ansi/package.json +0 -58
  996. package/node_modules/slice-ansi/readme.md +0 -54
  997. package/node_modules/widest-line/license +0 -9
  998. package/node_modules/widest-line/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  999. package/node_modules/widest-line/node_modules/emoji-regex/README.md +0 -107
  1000. package/node_modules/widest-line/node_modules/emoji-regex/index.d.ts +0 -3
  1001. package/node_modules/widest-line/node_modules/emoji-regex/index.js +0 -4
  1002. package/node_modules/widest-line/node_modules/emoji-regex/index.mjs +0 -4
  1003. package/node_modules/widest-line/node_modules/emoji-regex/package.json +0 -45
  1004. package/node_modules/widest-line/node_modules/string-width/index.d.ts +0 -39
  1005. package/node_modules/widest-line/node_modules/string-width/index.js +0 -82
  1006. package/node_modules/widest-line/node_modules/string-width/license +0 -9
  1007. package/node_modules/widest-line/node_modules/string-width/package.json +0 -64
  1008. package/node_modules/widest-line/node_modules/string-width/readme.md +0 -66
  1009. package/node_modules/widest-line/package.json +0 -60
  1010. /package/node_modules/{ink/build/devtools-window-polyfill.d.ts → @quantiya/codevibe-core/dist/orchestration-shell/__tests__/companion-turn-mirror.test.d.ts} +0 -0
  1011. /package/node_modules/{@alcalzone → @quantiya/codevibe-core/node_modules/@alcalzone}/ansi-tokenize/build/diff.d.ts +0 -0
  1012. /package/node_modules/{@alcalzone → @quantiya/codevibe-core/node_modules/@alcalzone}/ansi-tokenize/build/index.d.ts +0 -0
  1013. /package/node_modules/{@alcalzone → @quantiya/codevibe-core/node_modules/@alcalzone}/ansi-tokenize/build/index.js +0 -0
  1014. /package/node_modules/{@alcalzone → @quantiya/codevibe-core/node_modules/@alcalzone}/ansi-tokenize/build/index.js.map +0 -0
  1015. /package/node_modules/{@alcalzone → @quantiya/codevibe-core/node_modules/@alcalzone}/ansi-tokenize/build/reduce.d.ts +0 -0
  1016. /package/node_modules/{@alcalzone → @quantiya/codevibe-core/node_modules/@alcalzone}/ansi-tokenize/build/styledChars.d.ts +0 -0
  1017. /package/node_modules/{@alcalzone → @quantiya/codevibe-core/node_modules/@alcalzone}/ansi-tokenize/build/styledChars.js +0 -0
  1018. /package/node_modules/{@alcalzone → @quantiya/codevibe-core/node_modules/@alcalzone}/ansi-tokenize/build/styledChars.js.map +0 -0
  1019. /package/node_modules/{@alcalzone → @quantiya/codevibe-core/node_modules/@alcalzone}/ansi-tokenize/build/undo.d.ts +0 -0
  1020. /package/node_modules/{@alcalzone → @quantiya/codevibe-core/node_modules/@alcalzone}/ansi-tokenize/build/undo.js +0 -0
  1021. /package/node_modules/{@alcalzone → @quantiya/codevibe-core/node_modules/@alcalzone}/ansi-tokenize/build/undo.js.map +0 -0
  1022. /package/node_modules/{ink → @quantiya/codevibe-core}/node_modules/ansi-escapes/base.d.ts +0 -0
  1023. /package/node_modules/{ink → @quantiya/codevibe-core}/node_modules/ansi-escapes/base.js +0 -0
  1024. /package/node_modules/{ink → @quantiya/codevibe-core}/node_modules/ansi-escapes/index.d.ts +0 -0
  1025. /package/node_modules/{ink → @quantiya/codevibe-core}/node_modules/ansi-escapes/index.js +0 -0
  1026. /package/node_modules/{@alcalzone/ansi-tokenize/node_modules/ansi-styles → @quantiya/codevibe-core/node_modules/ansi-escapes}/license +0 -0
  1027. /package/node_modules/{ink → @quantiya/codevibe-core}/node_modules/ansi-escapes/package.json +0 -0
  1028. /package/node_modules/{ink → @quantiya/codevibe-core}/node_modules/ansi-escapes/readme.md +0 -0
  1029. /package/node_modules/{@alcalzone/ansi-tokenize → @quantiya/codevibe-core}/node_modules/ansi-styles/index.d.ts +0 -0
  1030. /package/node_modules/{@alcalzone/ansi-tokenize → @quantiya/codevibe-core}/node_modules/ansi-styles/index.js +0 -0
  1031. /package/node_modules/{@alcalzone/ansi-tokenize/node_modules/is-fullwidth-code-point → @quantiya/codevibe-core/node_modules/ansi-styles}/license +0 -0
  1032. /package/node_modules/{@alcalzone/ansi-tokenize → @quantiya/codevibe-core}/node_modules/ansi-styles/package.json +0 -0
  1033. /package/node_modules/{@alcalzone/ansi-tokenize → @quantiya/codevibe-core}/node_modules/ansi-styles/readme.md +0 -0
  1034. /package/node_modules/{cli-boxes → @quantiya/codevibe-core/node_modules/chalk}/license +0 -0
  1035. /package/node_modules/{ink → @quantiya/codevibe-core}/node_modules/chalk/package.json +0 -0
  1036. /package/node_modules/{ink → @quantiya/codevibe-core}/node_modules/chalk/readme.md +0 -0
  1037. /package/node_modules/{ink → @quantiya/codevibe-core}/node_modules/chalk/source/index.d.ts +0 -0
  1038. /package/node_modules/{ink → @quantiya/codevibe-core}/node_modules/chalk/source/index.js +0 -0
  1039. /package/node_modules/{ink → @quantiya/codevibe-core}/node_modules/chalk/source/utilities.js +0 -0
  1040. /package/node_modules/{ink → @quantiya/codevibe-core}/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -0
  1041. /package/node_modules/{cli-truncate/node_modules → @quantiya/codevibe-core/node_modules/chalk/source/vendor}/ansi-styles/index.js +0 -0
  1042. /package/node_modules/{ink → @quantiya/codevibe-core}/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -0
  1043. /package/node_modules/{ink → @quantiya/codevibe-core}/node_modules/chalk/source/vendor/supports-color/browser.js +0 -0
  1044. /package/node_modules/{ink → @quantiya/codevibe-core}/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -0
  1045. /package/node_modules/{ink → @quantiya/codevibe-core}/node_modules/chalk/source/vendor/supports-color/index.js +0 -0
  1046. /package/node_modules/{cli-boxes → @quantiya/codevibe-core/node_modules/cli-boxes}/boxes.json +0 -0
  1047. /package/node_modules/{cli-truncate → @quantiya/codevibe-core/node_modules/cli-boxes}/license +0 -0
  1048. /package/node_modules/{cli-truncate/node_modules/ansi-styles → @quantiya/codevibe-core/node_modules/cli-truncate}/license +0 -0
  1049. /package/node_modules/{ink → @quantiya/codevibe-core/node_modules/ink}/build/colorize.d.ts +0 -0
  1050. /package/node_modules/{ink → @quantiya/codevibe-core/node_modules/ink}/build/colorize.js +0 -0
  1051. /package/node_modules/{ink → @quantiya/codevibe-core/node_modules/ink}/build/colorize.js.map +0 -0
  1052. /package/node_modules/{ink → @quantiya/codevibe-core/node_modules/ink}/build/components/ErrorOverview.d.ts +0 -0
  1053. /package/node_modules/{ink → @quantiya/codevibe-core/node_modules/ink}/build/components/FocusContext.d.ts +0 -0
  1054. /package/node_modules/{ink → @quantiya/codevibe-core/node_modules/ink}/build/components/FocusContext.js +0 -0
  1055. /package/node_modules/{ink → @quantiya/codevibe-core/node_modules/ink}/build/components/FocusContext.js.map +0 -0
  1056. /package/node_modules/{ink → @quantiya/codevibe-core/node_modules/ink}/build/devtools.d.ts +0 -0
  1057. /package/node_modules/{ink → @quantiya/codevibe-core/node_modules/ink}/build/get-max-width.d.ts +0 -0
  1058. /package/node_modules/{ink → @quantiya/codevibe-core/node_modules/ink}/build/get-max-width.js +0 -0
  1059. /package/node_modules/{ink → @quantiya/codevibe-core/node_modules/ink}/build/get-max-width.js.map +0 -0
  1060. /package/node_modules/{ink → @quantiya/codevibe-core/node_modules/ink}/build/instances.d.ts +0 -0
  1061. /package/node_modules/{ink → @quantiya/codevibe-core/node_modules/ink}/build/instances.js +0 -0
  1062. /package/node_modules/{ink → @quantiya/codevibe-core/node_modules/ink}/build/instances.js.map +0 -0
  1063. /package/node_modules/{ink → @quantiya/codevibe-core/node_modules/ink}/build/measure-text.d.ts +0 -0
  1064. /package/node_modules/{ink → @quantiya/codevibe-core/node_modules/ink}/build/render-border.d.ts +0 -0
  1065. /package/node_modules/{ink → @quantiya/codevibe-core/node_modules/ink}/build/squash-text-nodes.d.ts +0 -0
  1066. /package/node_modules/{ink → @quantiya/codevibe-core/node_modules/ink}/build/wrap-text.d.ts +0 -0
  1067. /package/node_modules/{@alcalzone/ansi-tokenize → @quantiya/codevibe-core}/node_modules/is-fullwidth-code-point/index.d.ts +0 -0
  1068. /package/node_modules/{slice-ansi → @quantiya/codevibe-core}/node_modules/is-fullwidth-code-point/index.js +0 -0
  1069. /package/node_modules/{cli-truncate → @quantiya/codevibe-core}/node_modules/is-fullwidth-code-point/license +0 -0
  1070. /package/node_modules/{slice-ansi → @quantiya/codevibe-core}/node_modules/is-fullwidth-code-point/package.json +0 -0
  1071. /package/node_modules/{slice-ansi → @quantiya/codevibe-core}/node_modules/is-fullwidth-code-point/readme.md +0 -0
  1072. /package/node_modules/{is-in-ci → @quantiya/codevibe-core/node_modules/is-in-ci}/cli.js +0 -0
  1073. /package/node_modules/{is-in-ci → @quantiya/codevibe-core/node_modules/is-in-ci}/index.d.ts +0 -0
  1074. /package/node_modules/{cli-truncate/node_modules/string-width → @quantiya/codevibe-core/node_modules/is-in-ci}/license +0 -0
  1075. /package/node_modules/{scheduler → @quantiya/codevibe-core/node_modules/scheduler}/README.md +0 -0
  1076. /package/node_modules/{ink → @quantiya/codevibe-core}/node_modules/signal-exit/LICENSE.txt +0 -0
  1077. /package/node_modules/{ink → @quantiya/codevibe-core}/node_modules/signal-exit/README.md +0 -0
  1078. /package/node_modules/{ink → @quantiya/codevibe-core}/node_modules/signal-exit/index.js +0 -0
  1079. /package/node_modules/{ink → @quantiya/codevibe-core}/node_modules/signal-exit/package.json +0 -0
  1080. /package/node_modules/{ink → @quantiya/codevibe-core}/node_modules/signal-exit/signals.js +0 -0
  1081. /package/node_modules/{cli-truncate → @quantiya/codevibe-core}/node_modules/slice-ansi/license +0 -0
  1082. /package/node_modules/{cli-truncate → @quantiya/codevibe-core}/node_modules/string-width/index.d.ts +0 -0
  1083. /package/node_modules/{ink/node_modules/ansi-escapes → @quantiya/codevibe-core/node_modules/string-width}/license +0 -0
  1084. /package/node_modules/{ink → @quantiya/codevibe-core}/node_modules/type-fest/license-cc0 +0 -0
  1085. /package/node_modules/{ink → @quantiya/codevibe-core}/node_modules/type-fest/license-mit +0 -0
  1086. /package/node_modules/{widest-line → @quantiya/codevibe-core/node_modules/widest-line}/index.d.ts +0 -0
  1087. /package/node_modules/{widest-line → @quantiya/codevibe-core/node_modules/widest-line}/index.js +0 -0
  1088. /package/node_modules/{ink/node_modules/ansi-styles → @quantiya/codevibe-core/node_modules/widest-line}/license +0 -0
  1089. /package/node_modules/{widest-line → @quantiya/codevibe-core/node_modules/widest-line}/readme.md +0 -0
  1090. /package/node_modules/{ink/node_modules/chalk → @quantiya/codevibe-core/node_modules/wrap-ansi}/license +0 -0
  1091. /package/node_modules/{ink/node_modules/string-width → tagged-tag}/license +0 -0
  1092. /package/node_modules/{ink/node_modules/wrap-ansi → terminal-size}/license +0 -0
@@ -0,0 +1,3192 @@
1
+ [![](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)
2
+
3
+ ---
4
+
5
+ <div align="center">
6
+ <br>
7
+ <br>
8
+ <img width="240" alt="Ink" src="media/logo.png">
9
+ <br>
10
+ <br>
11
+ <br>
12
+ </div>
13
+
14
+ > React for CLIs. Build and test your CLI output using components.
15
+
16
+ [![Build Status](https://github.com/vadimdemedes/ink/workflows/test/badge.svg)](https://github.com/vadimdemedes/ink/actions)
17
+ [![npm](https://img.shields.io/npm/dm/ink?logo=npm)](https://npmjs.com/package/ink)
18
+
19
+ Ink provides the same component-based UI building experience that React offers in the browser, but for command-line apps.
20
+ It uses [Yoga](https://github.com/facebook/yoga) to build Flexbox layouts in the terminal, so most CSS-like properties are available in Ink as well.
21
+ If you are already familiar with React, you already know Ink.
22
+
23
+ Since Ink is a React renderer, all features of React are supported.
24
+ Head over to the [React](https://reactjs.org) website for documentation on how to use it.
25
+ Only Ink's methods are documented in this readme.
26
+
27
+ **Fully AI-generated pull requests are not accepted. You can use AI, but should be verified and cleaned up by a human. Only Opus 4.6+ (high-effort) and Codex 5.4+ (extra high) are accepted models. Preferably created with Opus and verified by Codex.**
28
+
29
+ ---
30
+
31
+ <div align="center">
32
+ <p>
33
+ <p>
34
+ <sup>
35
+ <a href="https://opencollective.com/vadimdemedes">My open source work is supported by the community ❤️</a>
36
+ </sup>
37
+ </p>
38
+ </p>
39
+ </div>
40
+
41
+ ## Install
42
+
43
+ ```sh
44
+ npm install ink react
45
+ ```
46
+
47
+ > [!NOTE]
48
+ > This readme documents the upcoming version of Ink. For the latest stable release, see [Ink on npm](https://www.npmjs.com/package/ink).
49
+
50
+ ## Usage
51
+
52
+ ```jsx
53
+ import React, {useState, useEffect} from 'react';
54
+ import {render, Text} from 'ink';
55
+
56
+ const Counter = () => {
57
+ const [counter, setCounter] = useState(0);
58
+
59
+ useEffect(() => {
60
+ const timer = setInterval(() => {
61
+ setCounter(previousCounter => previousCounter + 1);
62
+ }, 100);
63
+
64
+ return () => {
65
+ clearInterval(timer);
66
+ };
67
+ }, []);
68
+
69
+ return <Text color="green">{counter} tests passed</Text>;
70
+ };
71
+
72
+ render(<Counter />);
73
+ ```
74
+
75
+ <img src="media/demo.svg" width="600">
76
+
77
+ ## Who's Using Ink?
78
+
79
+ - [Claude Code](https://github.com/anthropics/claude-code) - An agentic coding tool made by Anthropic.
80
+ - [Gemini CLI](https://github.com/google-gemini/gemini-cli) - An agentic coding tool made by Google.
81
+ - [GitHub Copilot CLI](https://github.com/features/copilot/cli) - Just say what you want the shell to do.
82
+ - [Canva CLI](https://www.canva.dev/docs/apps/canva-cli/) - CLI for creating and managing Canva Apps.
83
+ - [Cloudflare's Wrangler](https://github.com/cloudflare/wrangler2) - The CLI for Cloudflare Workers.
84
+ - [Linear](https://linear.app) - Linear built an internal CLI for managing deployments, configs, and other housekeeping tasks.
85
+ - [Gatsby](https://www.gatsbyjs.org) - Gatsby is a modern web framework for blazing-fast websites.
86
+ - [tap](https://node-tap.org) - A Test-Anything-Protocol library for JavaScript.
87
+ - [Terraform CDK](https://github.com/hashicorp/terraform-cdk) - Cloud Development Kit (CDK) for HashiCorp Terraform.
88
+ - [Specify CLI](https://specifyapp.com) - Automate the distribution of your design tokens.
89
+ - [Twilio's SIGNAL](https://github.com/twilio-labs/plugin-signal2020) - CLI for Twilio's SIGNAL conference. [Blog post](https://www.twilio.com/blog/building-conference-cli-in-react).
90
+ - [Typewriter](https://github.com/segmentio/typewriter) - Generates strongly-typed [Segment](https://segment.com) analytics clients from arbitrary JSON Schema.
91
+ - [Prisma](https://www.prisma.io) - The unified data layer for modern applications.
92
+ - [Blitz](https://blitzjs.com) - The Fullstack React Framework.
93
+ - [New York Times](https://github.com/nytimes/kyt) - NYT uses Ink's `kyt` - a toolkit that encapsulates and manages the configuration for web apps.
94
+ - [tink](https://github.com/npm/tink) - A next-generation runtime and package manager.
95
+ - [Inkle](https://github.com/jrr/inkle) - A Wordle game.
96
+ - [loki](https://github.com/oblador/loki) - Visual regression testing tool for Storybook.
97
+ - [Bit](https://github.com/teambit/bit) - Build, distribute, and collaborate on components.
98
+ - [Remirror](https://github.com/remirror/remirror) - Your friendly, world-class editor toolkit.
99
+ - [Prime](https://github.com/birkir/prime) - Open-source GraphQL CMS.
100
+ - [emoj](https://github.com/sindresorhus/emoj) - Find relevant emojis.
101
+ - [emma](https://github.com/maticzav/emma-cli) - Find and install npm packages easily.
102
+ - [npm-check-extras](https://github.com/akgondber/npm-check-extras) - Check for outdated and unused dependencies, and run update/delete actions on selected ones.
103
+ - [swiff](https://github.com/simple-integrated-marketing/swiff) - Multi-environment command-line tools for time-saving web developers.
104
+ - [share](https://github.com/marionebl/share-cli) - Share files quickly.
105
+ - [Kubelive](https://github.com/ameerthehacker/kubelive) - A CLI for Kubernetes that provides live data about the cluster and its resources.
106
+ - [changelog-view](https://github.com/jdeniau/changelog-view) - View changelogs.
107
+ - [cfpush](https://github.com/mamachanko/cfpush) - Interactive Cloud Foundry tutorial.
108
+ - [startd](https://github.com/mgrip/startd) - Turn your React component into a web app.
109
+ - [wiki-cli](https://github.com/hexrcs/wiki-cli) - Search Wikipedia and read article summaries.
110
+ - [garson](https://github.com/goliney/garson) - Build interactive, config-based command-line interfaces.
111
+ - [git-contrib-calendar](https://github.com/giannisp/git-contrib-calendar) - Display a contributions calendar for any Git repository.
112
+ - [gitgud](https://github.com/GitGud-org/GitGud) - Interactive command-line GUI for Git.
113
+ - [Autarky](https://github.com/pranshuchittora/autarky) - Find and delete old `node_modules` directories to free up disk space.
114
+ - [fast-cli](https://github.com/sindresorhus/fast-cli) - Test your download and upload speeds.
115
+ - [tasuku](https://github.com/privatenumber/tasuku) - Minimal task runner.
116
+ - [mnswpr](https://github.com/mordv/mnswpr) - A Minesweeper game.
117
+ - [lrn](https://github.com/krychu/lrn) - Learning by repetition.
118
+ - [turdle](https://github.com/mynameisankit/turdle) - A Wordle game.
119
+ - [Shopify CLI](https://github.com/Shopify/cli) - Build apps, themes, and storefronts for the Shopify platform.
120
+ - [ToDesktop CLI](https://www.todesktop.com/electron) - All-in-one platform for building Electron apps.
121
+ - [Walle](https://github.com/Pobepto/walle) - A full-featured crypto wallet for EVM networks.
122
+ - [Sudoku](https://github.com/mrozio13pl/sudoku-in-terminal) - A Sudoku game.
123
+ - [Sea Trader](https://github.com/zyishai/sea-trader) - A Taipan!-inspired trading simulator game.
124
+ - [srtd](https://github.com/t1mmen/srtd) - Live-reloading SQL templates for Supabase projects.
125
+ - [tweakcc](https://github.com/Piebald-AI/tweakcc) - Customize your Claude Code styling.
126
+ - [argonaut](https://github.com/darksworm/argonaut) - Manage Argo CD resources.
127
+ - [Qodo Command](https://github.com/qodo-ai/command) - Build, run, and manage AI agents.
128
+ - [Nanocoder](https://github.com/nano-collective/nanocoder) - A community-built, local-first AI coding agent with multi-provider support.
129
+ - [dev3000](https://github.com/vercel-labs/dev3000) - An AI agent MCP orchestrator and developer browser.
130
+ - [Neovate Code](https://github.com/neovateai/neovate-code) - An agentic coding tool made by AntGroup.
131
+ - [instagram-cli](https://github.com/supreme-gg-gg/instagram-cli) - Instagram client.
132
+ - [ElevenLabs CLI](https://github.com/elevenlabs/cli) - ElevenLabs agents client.
133
+ - [SSH AI Chat](https://github.com/miantiao-me/ssh-ai-chat) - Chat with AI over SSH.
134
+ - [Deep Code CLI](https://github.com/lessweb/deepcode-cli) - AI coding assistant optimized for the DeepSeek model.
135
+
136
+ _(PRs welcome. Append new entries at the end. Repos must have 100+ stars and showcase Ink beyond a basic list picker.)_
137
+
138
+ ## Contents
139
+
140
+ - [Getting Started](#getting-started)
141
+ - [App Lifecycle](#app-lifecycle)
142
+ - [Components](#components)
143
+ - [`<Text>`](#text)
144
+ - [`<Box>`](#box)
145
+ - [`<Newline>`](#newline)
146
+ - [`<Spacer>`](#spacer)
147
+ - [`<Static>`](#static)
148
+ - [`<Transform>`](#transform)
149
+ - [Hooks](#hooks)
150
+ - [`useInput`](#useinputinputhandler-options)
151
+ - [`usePaste`](#usepastehandler-options)
152
+ - [`useApp`](#useapp)
153
+ - [`useStdin`](#usestdin)
154
+ - [`useStdout`](#usestdout)
155
+ - [`useBoxMetrics`](#useboxmetricsref)
156
+ - [`useStderr`](#usestderr)
157
+ - [`useWindowSize`](#usewindowsize)
158
+ - [`useFocus`](#usefocusoptions)
159
+ - [`useFocusManager`](#usefocusmanager)
160
+ - [`useCursor`](#usecursor)
161
+ - [`useAnimation`](#useanimationoptions)
162
+ - [API](#api)
163
+ - [Testing](#testing)
164
+ - [Using React Devtools](#using-react-devtools)
165
+ - [Screen Reader Support](#screen-reader-support)
166
+ - [Useful Components](#useful-components)
167
+ - [Useful Hooks](#useful-hooks)
168
+ - [Recipes](#recipes)
169
+ - [Examples](#examples)
170
+ - [Continuous Integration](#continuous-integration)
171
+
172
+ ## Getting Started
173
+
174
+ Use [create-ink-app](https://github.com/vadimdemedes/create-ink-app) to quickly scaffold a new Ink-based CLI.
175
+
176
+ ```sh
177
+ npx create-ink-app my-ink-cli
178
+ ```
179
+
180
+ Alternatively, create a TypeScript project:
181
+
182
+ ```sh
183
+ npx create-ink-app --typescript my-ink-cli
184
+ ```
185
+
186
+ <details><summary>Manual JavaScript setup</summary>
187
+ <p>
188
+ Ink requires the same Babel setup as you would do for regular React-based apps in the browser.
189
+
190
+ Set up Babel with a React preset to ensure all examples in this readme work as expected.
191
+ After [installing Babel](https://babeljs.io/docs/en/usage), install `@babel/preset-react` and insert the following configuration in `babel.config.json`:
192
+
193
+ ```sh
194
+ npm install --save-dev @babel/preset-react
195
+ ```
196
+
197
+ ```json
198
+ {
199
+ "presets": ["@babel/preset-react"]
200
+ }
201
+ ```
202
+
203
+ Next, create a file `source.js`, where you'll type code that uses Ink:
204
+
205
+ ```jsx
206
+ import React from 'react';
207
+ import {render, Text} from 'ink';
208
+
209
+ const Demo = () => <Text>Hello World</Text>;
210
+
211
+ render(<Demo />);
212
+ ```
213
+
214
+ Then, transpile this file with Babel:
215
+
216
+ ```sh
217
+ npx babel source.js -o cli.js
218
+ ```
219
+
220
+ Now you can run `cli.js` with Node.js:
221
+
222
+ ```sh
223
+ node cli
224
+ ```
225
+
226
+ If you don't like transpiling files during development, you can use [import-jsx](https://github.com/vadimdemedes/import-jsx) or [@esbuild-kit/esm-loader](https://github.com/esbuild-kit/esm-loader) to `import` a JSX file and transpile it on the fly.
227
+
228
+ </p>
229
+ </details>
230
+
231
+ Ink uses [Yoga](https://github.com/facebook/yoga), a Flexbox layout engine, to build great user interfaces for your CLIs using familiar CSS-like properties you've used when building apps for the browser.
232
+ It's important to remember that each element is a Flexbox container.
233
+ Think of it as if every `<div>` in the browser had `display: flex`.
234
+ See [`<Box>`](#box) built-in component below for documentation on how to use Flexbox layouts in Ink.
235
+ Note that all text must be wrapped in a [`<Text>`](#text) component.
236
+
237
+ ## App Lifecycle
238
+
239
+ An Ink app is a Node.js process, so it stays alive only while there is active work in the event loop (timers, pending promises, [`useInput`](#useinputinputhandler-options) listening on `stdin`, etc.). If your component tree has no async work, the app will render once and exit immediately.
240
+
241
+ To exit the app, press **Ctrl+C** (enabled by default via [`exitOnCtrlC`](#exitonctrlc)), call [`exit()`](#exiterrororresult) from [`useApp`](#useapp) inside a component, or call [`unmount()`](#unmount) on the object returned by [`render()`](#rendertree-options).
242
+
243
+ Use [`waitUntilExit()`](#waituntilexit) to run code after the app is unmounted:
244
+
245
+ ```jsx
246
+ const {waitUntilExit} = render(<MyApp />);
247
+
248
+ await waitUntilExit();
249
+
250
+ console.log('App exited');
251
+ ```
252
+
253
+ ## Components
254
+
255
+ ### `<Text>`
256
+
257
+ This component can display text and change its style to make it bold, underlined, italic, or strikethrough.
258
+
259
+ ```jsx
260
+ import {render, Text} from 'ink';
261
+
262
+ const Example = () => (
263
+ <>
264
+ <Text color="green">I am green</Text>
265
+ <Text color="black" backgroundColor="white">
266
+ I am black on white
267
+ </Text>
268
+ <Text color="#ffffff">I am white</Text>
269
+ <Text bold>I am bold</Text>
270
+ <Text italic>I am italic</Text>
271
+ <Text underline>I am underline</Text>
272
+ <Text strikethrough>I am strikethrough</Text>
273
+ <Text inverse>I am inversed</Text>
274
+ </>
275
+ );
276
+
277
+ render(<Example />);
278
+ ```
279
+
280
+ > [!NOTE]
281
+ > `<Text>` allows only text nodes and nested `<Text>` components inside of it. For example, `<Box>` component can't be used inside `<Text>`.
282
+
283
+ #### color
284
+
285
+ Type: `string`
286
+
287
+ Change text color.
288
+ Ink uses [chalk](https://github.com/chalk/chalk) under the hood, so all its functionality is supported.
289
+
290
+ ```jsx
291
+ <Text color="green">Green</Text>
292
+ <Text color="#005cc5">Blue</Text>
293
+ <Text color="rgb(232, 131, 136)">Red</Text>
294
+ ```
295
+
296
+ <img src="media/text-color.jpg" width="247">
297
+
298
+ #### backgroundColor
299
+
300
+ Type: `string`
301
+
302
+ Same as `color` above, but for background.
303
+
304
+ ```jsx
305
+ <Text backgroundColor="green" color="white">Green</Text>
306
+ <Text backgroundColor="#005cc5" color="white">Blue</Text>
307
+ <Text backgroundColor="rgb(232, 131, 136)" color="white">Red</Text>
308
+ ```
309
+
310
+ <img src="media/text-backgroundColor.jpg" width="226">
311
+
312
+ #### dimColor
313
+
314
+ Type: `boolean`\
315
+ Default: `false`
316
+
317
+ Dim the color (make it less bright).
318
+
319
+ ```jsx
320
+ <Text color="red" dimColor>
321
+ Dimmed Red
322
+ </Text>
323
+ ```
324
+
325
+ <img src="media/text-dimColor.jpg" width="138">
326
+
327
+ #### bold
328
+
329
+ Type: `boolean`\
330
+ Default: `false`
331
+
332
+ Make the text bold.
333
+
334
+ #### italic
335
+
336
+ Type: `boolean`\
337
+ Default: `false`
338
+
339
+ Make the text italic.
340
+
341
+ #### underline
342
+
343
+ Type: `boolean`\
344
+ Default: `false`
345
+
346
+ Make the text underlined.
347
+
348
+ #### strikethrough
349
+
350
+ Type: `boolean`\
351
+ Default: `false`
352
+
353
+ Make the text crossed with a line.
354
+
355
+ #### inverse
356
+
357
+ Type: `boolean`\
358
+ Default: `false`
359
+
360
+ Invert background and foreground colors.
361
+
362
+ ```jsx
363
+ <Text inverse color="yellow">
364
+ Inversed Yellow
365
+ </Text>
366
+ ```
367
+
368
+ <img src="media/text-inverse.jpg" width="138">
369
+
370
+ #### wrap
371
+
372
+ Type: `string`\
373
+ Allowed values: `wrap` `hard` `truncate` `truncate-start` `truncate-middle` `truncate-end`\
374
+ Default: `wrap`
375
+
376
+ This property tells Ink to wrap or truncate text if its width is larger than the container.
377
+ If `wrap` is passed (the default), Ink will wrap text and split it into multiple lines.
378
+ If `hard` is passed, Ink will fill each line to the full column width, breaking words as necessary.
379
+ If `truncate-*` is passed, Ink will truncate text instead, resulting in one line of text with the rest cut off.
380
+
381
+ ```jsx
382
+ <Box width={7}>
383
+ <Text>Hello World</Text>
384
+ </Box>
385
+ //=> 'Hello\nWorld'
386
+
387
+ <Box width={7}>
388
+ <Text wrap="hard">Hello World</Text>
389
+ </Box>
390
+ //=> 'Hello W\norld'
391
+
392
+ // `truncate` is an alias to `truncate-end`
393
+ <Box width={7}>
394
+ <Text wrap="truncate">Hello World</Text>
395
+ </Box>
396
+ //=> 'Hello…'
397
+
398
+ <Box width={7}>
399
+ <Text wrap="truncate-middle">Hello World</Text>
400
+ </Box>
401
+ //=> 'He…ld'
402
+
403
+ <Box width={7}>
404
+ <Text wrap="truncate-start">Hello World</Text>
405
+ </Box>
406
+ //=> '…World'
407
+ ```
408
+
409
+ ### `<Box>`
410
+
411
+ `<Box>` is an essential Ink component to build your layout.
412
+ It's like `<div style="display: flex">` in the browser.
413
+
414
+ ```jsx
415
+ import {render, Box, Text} from 'ink';
416
+
417
+ const Example = () => (
418
+ <Box margin={2}>
419
+ <Text>This is a box with margin</Text>
420
+ </Box>
421
+ );
422
+
423
+ render(<Example />);
424
+ ```
425
+
426
+ #### Dimensions
427
+
428
+ ##### width
429
+
430
+ Type: `number` `string`
431
+
432
+ Width of the element in spaces.
433
+ You can also set it as a percentage, which will calculate the width based on the width of the parent element.
434
+
435
+ ```jsx
436
+ <Box width={4}>
437
+ <Text>X</Text>
438
+ </Box>
439
+ //=> 'X '
440
+ ```
441
+
442
+ ```jsx
443
+ <Box width={10}>
444
+ <Box width="50%">
445
+ <Text>X</Text>
446
+ </Box>
447
+ <Text>Y</Text>
448
+ </Box>
449
+ //=> 'X Y'
450
+ ```
451
+
452
+ ##### height
453
+
454
+ Type: `number` `string`
455
+
456
+ Height of the element in lines (rows).
457
+ You can also set it as a percentage, which will calculate the height based on the height of the parent element.
458
+
459
+ ```jsx
460
+ <Box height={4}>
461
+ <Text>X</Text>
462
+ </Box>
463
+ //=> 'X\n\n\n'
464
+ ```
465
+
466
+ ```jsx
467
+ <Box height={6} flexDirection="column">
468
+ <Box height="50%">
469
+ <Text>X</Text>
470
+ </Box>
471
+ <Text>Y</Text>
472
+ </Box>
473
+ //=> 'X\n\n\nY\n\n'
474
+ ```
475
+
476
+ ##### minWidth
477
+
478
+ Type: `number`
479
+
480
+ Sets a minimum width of the element.
481
+ Percentages aren't supported yet; see https://github.com/facebook/yoga/issues/872.
482
+
483
+ ##### minHeight
484
+
485
+ Type: `number` `string`
486
+
487
+ Sets a minimum height of the element in lines (rows).
488
+ You can also set it as a percentage, which will calculate the minimum height based on the height of the parent element.
489
+
490
+ ##### maxWidth
491
+
492
+ Type: `number`
493
+
494
+ Sets a maximum width of the element.
495
+ Percentages aren't supported yet; see https://github.com/facebook/yoga/issues/872.
496
+
497
+ ##### maxHeight
498
+
499
+ Type: `number` `string`
500
+
501
+ Sets a maximum height of the element in lines (rows).
502
+ You can also set it as a percentage, which will calculate the maximum height based on the height of the parent element.
503
+
504
+ ##### aspectRatio
505
+
506
+ Type: `number`
507
+
508
+ Defines the aspect ratio (width/height) for the element.
509
+
510
+ Use it with at least one size constraint (`width`, `height`, `minHeight`, or `maxHeight`) so Ink can derive the missing dimension.
511
+
512
+ #### Padding
513
+
514
+ ##### paddingTop
515
+
516
+ Type: `number`\
517
+ Default: `0`
518
+
519
+ Top padding.
520
+
521
+ ##### paddingBottom
522
+
523
+ Type: `number`\
524
+ Default: `0`
525
+
526
+ Bottom padding.
527
+
528
+ ##### paddingLeft
529
+
530
+ Type: `number`\
531
+ Default: `0`
532
+
533
+ Left padding.
534
+
535
+ ##### paddingRight
536
+
537
+ Type: `number`\
538
+ Default: `0`
539
+
540
+ Right padding.
541
+
542
+ ##### paddingX
543
+
544
+ Type: `number`\
545
+ Default: `0`
546
+
547
+ Horizontal padding. Equivalent to setting `paddingLeft` and `paddingRight`.
548
+
549
+ ##### paddingY
550
+
551
+ Type: `number`\
552
+ Default: `0`
553
+
554
+ Vertical padding. Equivalent to setting `paddingTop` and `paddingBottom`.
555
+
556
+ ##### padding
557
+
558
+ Type: `number`\
559
+ Default: `0`
560
+
561
+ Padding on all sides. Equivalent to setting `paddingTop`, `paddingBottom`, `paddingLeft` and `paddingRight`.
562
+
563
+ ```jsx
564
+ <Box paddingTop={2}><Text>Top</Text></Box>
565
+ <Box paddingBottom={2}><Text>Bottom</Text></Box>
566
+ <Box paddingLeft={2}><Text>Left</Text></Box>
567
+ <Box paddingRight={2}><Text>Right</Text></Box>
568
+ <Box paddingX={2}><Text>Left and right</Text></Box>
569
+ <Box paddingY={2}><Text>Top and bottom</Text></Box>
570
+ <Box padding={2}><Text>Top, bottom, left and right</Text></Box>
571
+ ```
572
+
573
+ #### Margin
574
+
575
+ ##### marginTop
576
+
577
+ Type: `number`\
578
+ Default: `0`
579
+
580
+ Top margin.
581
+
582
+ ##### marginBottom
583
+
584
+ Type: `number`\
585
+ Default: `0`
586
+
587
+ Bottom margin.
588
+
589
+ ##### marginLeft
590
+
591
+ Type: `number`\
592
+ Default: `0`
593
+
594
+ Left margin.
595
+
596
+ ##### marginRight
597
+
598
+ Type: `number`\
599
+ Default: `0`
600
+
601
+ Right margin.
602
+
603
+ ##### marginX
604
+
605
+ Type: `number`\
606
+ Default: `0`
607
+
608
+ Horizontal margin. Equivalent to setting `marginLeft` and `marginRight`.
609
+
610
+ ##### marginY
611
+
612
+ Type: `number`\
613
+ Default: `0`
614
+
615
+ Vertical margin. Equivalent to setting `marginTop` and `marginBottom`.
616
+
617
+ ##### margin
618
+
619
+ Type: `number`\
620
+ Default: `0`
621
+
622
+ Margin on all sides. Equivalent to setting `marginTop`, `marginBottom`, `marginLeft` and `marginRight`.
623
+
624
+ ```jsx
625
+ <Box marginTop={2}><Text>Top</Text></Box>
626
+ <Box marginBottom={2}><Text>Bottom</Text></Box>
627
+ <Box marginLeft={2}><Text>Left</Text></Box>
628
+ <Box marginRight={2}><Text>Right</Text></Box>
629
+ <Box marginX={2}><Text>Left and right</Text></Box>
630
+ <Box marginY={2}><Text>Top and bottom</Text></Box>
631
+ <Box margin={2}><Text>Top, bottom, left and right</Text></Box>
632
+ ```
633
+
634
+ #### Gap
635
+
636
+ #### gap
637
+
638
+ Type: `number`\
639
+ Default: `0`
640
+
641
+ Size of the gap between an element's columns and rows. A shorthand for `columnGap` and `rowGap`.
642
+
643
+ ```jsx
644
+ <Box gap={1} width={3} flexWrap="wrap">
645
+ <Text>A</Text>
646
+ <Text>B</Text>
647
+ <Text>C</Text>
648
+ </Box>
649
+ // A B
650
+ //
651
+ // C
652
+ ```
653
+
654
+ #### columnGap
655
+
656
+ Type: `number`\
657
+ Default: `0`
658
+
659
+ Size of the gap between an element's columns.
660
+
661
+ ```jsx
662
+ <Box columnGap={1}>
663
+ <Text>A</Text>
664
+ <Text>B</Text>
665
+ </Box>
666
+ // A B
667
+ ```
668
+
669
+ #### rowGap
670
+
671
+ Type: `number`\
672
+ Default: `0`
673
+
674
+ Size of the gap between an element's rows.
675
+
676
+ ```jsx
677
+ <Box flexDirection="column" rowGap={1}>
678
+ <Text>A</Text>
679
+ <Text>B</Text>
680
+ </Box>
681
+ // A
682
+ //
683
+ // B
684
+ ```
685
+
686
+ #### Flex
687
+
688
+ ##### flexGrow
689
+
690
+ Type: `number`\
691
+ Default: `0`
692
+
693
+ See [flex-grow](https://css-tricks.com/almanac/properties/f/flex-grow/).
694
+
695
+ ```jsx
696
+ <Box>
697
+ <Text>Label:</Text>
698
+ <Box flexGrow={1}>
699
+ <Text>Fills all remaining space</Text>
700
+ </Box>
701
+ </Box>
702
+ ```
703
+
704
+ ##### flexShrink
705
+
706
+ Type: `number`\
707
+ Default: `1`
708
+
709
+ See [flex-shrink](https://css-tricks.com/almanac/properties/f/flex-shrink/).
710
+
711
+ ```jsx
712
+ <Box width={20}>
713
+ <Box flexShrink={2} width={10}>
714
+ <Text>Will be 1/4</Text>
715
+ </Box>
716
+ <Box width={10}>
717
+ <Text>Will be 3/4</Text>
718
+ </Box>
719
+ </Box>
720
+ ```
721
+
722
+ ##### flexBasis
723
+
724
+ Type: `number` `string`
725
+
726
+ See [flex-basis](https://css-tricks.com/almanac/properties/f/flex-basis/).
727
+
728
+ ```jsx
729
+ <Box width={6}>
730
+ <Box flexBasis={3}>
731
+ <Text>X</Text>
732
+ </Box>
733
+ <Text>Y</Text>
734
+ </Box>
735
+ //=> 'X Y'
736
+ ```
737
+
738
+ ```jsx
739
+ <Box width={6}>
740
+ <Box flexBasis="50%">
741
+ <Text>X</Text>
742
+ </Box>
743
+ <Text>Y</Text>
744
+ </Box>
745
+ //=> 'X Y'
746
+ ```
747
+
748
+ ##### flexDirection
749
+
750
+ Type: `string`\
751
+ Allowed values: `row` `row-reverse` `column` `column-reverse`
752
+
753
+ See [flex-direction](https://css-tricks.com/almanac/properties/f/flex-direction/).
754
+
755
+ ```jsx
756
+ <Box>
757
+ <Box marginRight={1}>
758
+ <Text>X</Text>
759
+ </Box>
760
+ <Text>Y</Text>
761
+ </Box>
762
+ // X Y
763
+
764
+ <Box flexDirection="row-reverse">
765
+ <Text>X</Text>
766
+ <Box marginRight={1}>
767
+ <Text>Y</Text>
768
+ </Box>
769
+ </Box>
770
+ // Y X
771
+
772
+ <Box flexDirection="column">
773
+ <Text>X</Text>
774
+ <Text>Y</Text>
775
+ </Box>
776
+ // X
777
+ // Y
778
+
779
+ <Box flexDirection="column-reverse">
780
+ <Text>X</Text>
781
+ <Text>Y</Text>
782
+ </Box>
783
+ // Y
784
+ // X
785
+ ```
786
+
787
+ ##### flexWrap
788
+
789
+ Type: `string`\
790
+ Allowed values: `nowrap` `wrap` `wrap-reverse`
791
+
792
+ See [flex-wrap](https://css-tricks.com/almanac/properties/f/flex-wrap/).
793
+
794
+ ```jsx
795
+ <Box width={2} flexWrap="wrap">
796
+ <Text>A</Text>
797
+ <Text>BC</Text>
798
+ </Box>
799
+ // A
800
+ // B C
801
+ ```
802
+
803
+ ```jsx
804
+ <Box flexDirection="column" height={2} flexWrap="wrap">
805
+ <Text>A</Text>
806
+ <Text>B</Text>
807
+ <Text>C</Text>
808
+ </Box>
809
+ // A C
810
+ // B
811
+ ```
812
+
813
+ ##### alignItems
814
+
815
+ Type: `string`\
816
+ Allowed values: `flex-start` `center` `flex-end` `stretch` `baseline`
817
+
818
+ See [align-items](https://css-tricks.com/almanac/properties/a/align-items/).
819
+
820
+ ```jsx
821
+ <Box alignItems="flex-start">
822
+ <Box marginRight={1}>
823
+ <Text>X</Text>
824
+ </Box>
825
+ <Text>
826
+ A
827
+ <Newline/>
828
+ B
829
+ <Newline/>
830
+ C
831
+ </Text>
832
+ </Box>
833
+ // X A
834
+ // B
835
+ // C
836
+
837
+ <Box alignItems="center">
838
+ <Box marginRight={1}>
839
+ <Text>X</Text>
840
+ </Box>
841
+ <Text>
842
+ A
843
+ <Newline/>
844
+ B
845
+ <Newline/>
846
+ C
847
+ </Text>
848
+ </Box>
849
+ // A
850
+ // X B
851
+ // C
852
+
853
+ <Box alignItems="flex-end">
854
+ <Box marginRight={1}>
855
+ <Text>X</Text>
856
+ </Box>
857
+ <Text>
858
+ A
859
+ <Newline/>
860
+ B
861
+ <Newline/>
862
+ C
863
+ </Text>
864
+ </Box>
865
+ // A
866
+ // B
867
+ // X C
868
+ ```
869
+
870
+ ##### alignSelf
871
+
872
+ Type: `string`\
873
+ Default: `auto`\
874
+ Allowed values: `auto` `flex-start` `center` `flex-end` `stretch` `baseline`
875
+
876
+ See [align-self](https://css-tricks.com/almanac/properties/a/align-self/).
877
+
878
+ ```jsx
879
+ <Box height={3}>
880
+ <Box alignSelf="flex-start">
881
+ <Text>X</Text>
882
+ </Box>
883
+ </Box>
884
+ // X
885
+ //
886
+ //
887
+
888
+ <Box height={3}>
889
+ <Box alignSelf="center">
890
+ <Text>X</Text>
891
+ </Box>
892
+ </Box>
893
+ //
894
+ // X
895
+ //
896
+
897
+ <Box height={3}>
898
+ <Box alignSelf="flex-end">
899
+ <Text>X</Text>
900
+ </Box>
901
+ </Box>
902
+ //
903
+ //
904
+ // X
905
+ ```
906
+
907
+ ##### alignContent
908
+
909
+ Type: `string`\
910
+ Default: `flex-start`\
911
+ Allowed values: `flex-start` `flex-end` `center` `stretch` `space-between` `space-around` `space-evenly`
912
+
913
+ Defines alignment between flex lines on the cross axis when `flexWrap` creates multiple lines.
914
+ See [align-content](https://css-tricks.com/almanac/properties/a/align-content/).
915
+ Unlike CSS (`stretch`), Ink defaults to `flex-start` so wrapped lines stay compact and fixed-height boxes don't gain unexpected empty rows unless you opt in to stretching.
916
+
917
+ ##### justifyContent
918
+
919
+ Type: `string`\
920
+ Allowed values: `flex-start` `center` `flex-end` `space-between` `space-around` `space-evenly`
921
+
922
+ See [justify-content](https://css-tricks.com/almanac/properties/j/justify-content/).
923
+
924
+ ```jsx
925
+ <Box justifyContent="flex-start">
926
+ <Text>X</Text>
927
+ </Box>
928
+ // [X ]
929
+
930
+ <Box justifyContent="center">
931
+ <Text>X</Text>
932
+ </Box>
933
+ // [ X ]
934
+
935
+ <Box justifyContent="flex-end">
936
+ <Text>X</Text>
937
+ </Box>
938
+ // [ X]
939
+
940
+ <Box justifyContent="space-between">
941
+ <Text>X</Text>
942
+ <Text>Y</Text>
943
+ </Box>
944
+ // [X Y]
945
+
946
+ <Box justifyContent="space-around">
947
+ <Text>X</Text>
948
+ <Text>Y</Text>
949
+ </Box>
950
+ // [ X Y ]
951
+
952
+ <Box justifyContent="space-evenly">
953
+ <Text>X</Text>
954
+ <Text>Y</Text>
955
+ </Box>
956
+ // [ X Y ]
957
+ ```
958
+
959
+ #### Position
960
+
961
+ ##### position
962
+
963
+ Type: `string`\
964
+ Allowed values: `relative` `absolute` `static`\
965
+ Default: `relative`
966
+
967
+ Controls how the element is positioned.
968
+
969
+ When `position` is `static`, `top`, `right`, `bottom`, and `left` are ignored.
970
+
971
+ ##### top
972
+
973
+ Type: `number` `string`
974
+
975
+ Top offset for positioned elements.
976
+ You can also set it as a percentage of the parent size.
977
+
978
+ ##### right
979
+
980
+ Type: `number` `string`
981
+
982
+ Right offset for positioned elements.
983
+ You can also set it as a percentage of the parent size.
984
+
985
+ ##### bottom
986
+
987
+ Type: `number` `string`
988
+
989
+ Bottom offset for positioned elements.
990
+ You can also set it as a percentage of the parent size.
991
+
992
+ ##### left
993
+
994
+ Type: `number` `string`
995
+
996
+ Left offset for positioned elements.
997
+ You can also set it as a percentage of the parent size.
998
+
999
+ #### Visibility
1000
+
1001
+ ##### display
1002
+
1003
+ Type: `string`\
1004
+ Allowed values: `flex` `none`\
1005
+ Default: `flex`
1006
+
1007
+ Set this property to `none` to hide the element.
1008
+
1009
+ ##### overflowX
1010
+
1011
+ Type: `string`\
1012
+ Allowed values: `visible` `hidden`\
1013
+ Default: `visible`
1014
+
1015
+ Behavior for an element's overflow in the horizontal direction.
1016
+
1017
+ ##### overflowY
1018
+
1019
+ Type: `string`\
1020
+ Allowed values: `visible` `hidden`\
1021
+ Default: `visible`
1022
+
1023
+ Behavior for an element's overflow in the vertical direction.
1024
+
1025
+ ##### overflow
1026
+
1027
+ Type: `string`\
1028
+ Allowed values: `visible` `hidden`\
1029
+ Default: `visible`
1030
+
1031
+ A shortcut for setting `overflowX` and `overflowY` at the same time.
1032
+
1033
+ #### Borders
1034
+
1035
+ ##### borderStyle
1036
+
1037
+ Type: `string`\
1038
+ Allowed values: `single` `double` `round` `bold` `singleDouble` `doubleSingle` `classic` | `BoxStyle`
1039
+
1040
+ Add a border with a specified style.
1041
+ If `borderStyle` is `undefined` (the default), no border will be added.
1042
+ Ink uses border styles from the [`cli-boxes`](https://github.com/sindresorhus/cli-boxes) module.
1043
+
1044
+ ```jsx
1045
+ <Box flexDirection="column">
1046
+ <Box>
1047
+ <Box borderStyle="single" marginRight={2}>
1048
+ <Text>single</Text>
1049
+ </Box>
1050
+
1051
+ <Box borderStyle="double" marginRight={2}>
1052
+ <Text>double</Text>
1053
+ </Box>
1054
+
1055
+ <Box borderStyle="round" marginRight={2}>
1056
+ <Text>round</Text>
1057
+ </Box>
1058
+
1059
+ <Box borderStyle="bold">
1060
+ <Text>bold</Text>
1061
+ </Box>
1062
+ </Box>
1063
+
1064
+ <Box marginTop={1}>
1065
+ <Box borderStyle="singleDouble" marginRight={2}>
1066
+ <Text>singleDouble</Text>
1067
+ </Box>
1068
+
1069
+ <Box borderStyle="doubleSingle" marginRight={2}>
1070
+ <Text>doubleSingle</Text>
1071
+ </Box>
1072
+
1073
+ <Box borderStyle="classic">
1074
+ <Text>classic</Text>
1075
+ </Box>
1076
+ </Box>
1077
+ </Box>
1078
+ ```
1079
+
1080
+ <img src="media/box-borderStyle.jpg" width="521">
1081
+
1082
+ Alternatively, pass a custom border style like so:
1083
+
1084
+ ```jsx
1085
+ <Box
1086
+ borderStyle={{
1087
+ topLeft: '↘',
1088
+ top: '↓',
1089
+ topRight: '↙',
1090
+ left: '→',
1091
+ bottomLeft: '↗',
1092
+ bottom: '↑',
1093
+ bottomRight: '↖',
1094
+ right: '←',
1095
+ }}
1096
+ >
1097
+ <Text>Custom</Text>
1098
+ </Box>
1099
+ ```
1100
+
1101
+ See example in [examples/borders](examples/borders/borders.tsx).
1102
+
1103
+ ##### borderColor
1104
+
1105
+ Type: `string`
1106
+
1107
+ Change border color.
1108
+ A shorthand for setting `borderTopColor`, `borderRightColor`, `borderBottomColor`, and `borderLeftColor`.
1109
+
1110
+ ```jsx
1111
+ <Box borderStyle="round" borderColor="green">
1112
+ <Text>Green Rounded Box</Text>
1113
+ </Box>
1114
+ ```
1115
+
1116
+ <img src="media/box-borderColor.jpg" width="228">
1117
+
1118
+ ##### borderTopColor
1119
+
1120
+ Type: `string`
1121
+
1122
+ Change top border color.
1123
+ Accepts the same values as [`color`](#color) in `<Text>` component.
1124
+
1125
+ ```jsx
1126
+ <Box borderStyle="round" borderTopColor="green">
1127
+ <Text>Hello world</Text>
1128
+ </Box>
1129
+ ```
1130
+
1131
+ ##### borderRightColor
1132
+
1133
+ Type: `string`
1134
+
1135
+ Change the right border color.
1136
+ Accepts the same values as [`color`](#color) in `<Text>` component.
1137
+
1138
+ ```jsx
1139
+ <Box borderStyle="round" borderRightColor="green">
1140
+ <Text>Hello world</Text>
1141
+ </Box>
1142
+ ```
1143
+
1144
+ ##### borderBottomColor
1145
+
1146
+ Type: `string`
1147
+
1148
+ Change the bottom border color.
1149
+ Accepts the same values as [`color`](#color) in `<Text>` component.
1150
+
1151
+ ```jsx
1152
+ <Box borderStyle="round" borderBottomColor="green">
1153
+ <Text>Hello world</Text>
1154
+ </Box>
1155
+ ```
1156
+
1157
+ ##### borderLeftColor
1158
+
1159
+ Type: `string`
1160
+
1161
+ Change the left border color.
1162
+ Accepts the same values as [`color`](#color) in `<Text>` component.
1163
+
1164
+ ```jsx
1165
+ <Box borderStyle="round" borderLeftColor="green">
1166
+ <Text>Hello world</Text>
1167
+ </Box>
1168
+ ```
1169
+
1170
+ ##### borderDimColor
1171
+
1172
+ Type: `boolean`\
1173
+ Default: `false`
1174
+
1175
+ Dim the border color.
1176
+ A shorthand for setting `borderTopDimColor`, `borderBottomDimColor`, `borderLeftDimColor`, and `borderRightDimColor`.
1177
+
1178
+ ```jsx
1179
+ <Box borderStyle="round" borderDimColor>
1180
+ <Text>Hello world</Text>
1181
+ </Box>
1182
+ ```
1183
+
1184
+ ##### borderTopDimColor
1185
+
1186
+ Type: `boolean`\
1187
+ Default: `false`
1188
+
1189
+ Dim the top border color.
1190
+
1191
+ ```jsx
1192
+ <Box borderStyle="round" borderTopDimColor>
1193
+ <Text>Hello world</Text>
1194
+ </Box>
1195
+ ```
1196
+
1197
+ ##### borderBottomDimColor
1198
+
1199
+ Type: `boolean`\
1200
+ Default: `false`
1201
+
1202
+ Dim the bottom border color.
1203
+
1204
+ ```jsx
1205
+ <Box borderStyle="round" borderBottomDimColor>
1206
+ <Text>Hello world</Text>
1207
+ </Box>
1208
+ ```
1209
+
1210
+ ##### borderLeftDimColor
1211
+
1212
+ Type: `boolean`\
1213
+ Default: `false`
1214
+
1215
+ Dim the left border color.
1216
+
1217
+ ```jsx
1218
+ <Box borderStyle="round" borderLeftDimColor>
1219
+ <Text>Hello world</Text>
1220
+ </Box>
1221
+ ```
1222
+
1223
+ ##### borderRightDimColor
1224
+
1225
+ Type: `boolean`\
1226
+ Default: `false`
1227
+
1228
+ Dim the right border color.
1229
+
1230
+ ```jsx
1231
+ <Box borderStyle="round" borderRightDimColor>
1232
+ <Text>Hello world</Text>
1233
+ </Box>
1234
+ ```
1235
+
1236
+ ##### borderBackgroundColor
1237
+
1238
+ Type: `string`
1239
+
1240
+ Change border background color.
1241
+ Accepts the same values as [`backgroundColor`](#backgroundcolor) in `<Text>` component.
1242
+ A shorthand for setting `borderTopBackgroundColor`, `borderRightBackgroundColor`, `borderBottomBackgroundColor`, and `borderLeftBackgroundColor`.
1243
+
1244
+ ```jsx
1245
+ <Box borderStyle="round" borderColor="white" borderBackgroundColor="green">
1246
+ <Text>Hello world</Text>
1247
+ </Box>
1248
+ ```
1249
+
1250
+ ##### borderTopBackgroundColor
1251
+
1252
+ Type: `string`
1253
+
1254
+ Change top border background color.
1255
+ Accepts the same values as [`backgroundColor`](#backgroundcolor) in `<Text>` component.
1256
+ Falls back to `borderBackgroundColor` if not specified.
1257
+
1258
+ ```jsx
1259
+ <Box borderStyle="round" borderColor="white" borderTopBackgroundColor="green">
1260
+ <Text>Hello world</Text>
1261
+ </Box>
1262
+ ```
1263
+
1264
+ ##### borderBottomBackgroundColor
1265
+
1266
+ Type: `string`
1267
+
1268
+ Change bottom border background color.
1269
+ Accepts the same values as [`backgroundColor`](#backgroundcolor) in `<Text>` component.
1270
+ Falls back to `borderBackgroundColor` if not specified.
1271
+
1272
+ ```jsx
1273
+ <Box
1274
+ borderStyle="round"
1275
+ borderColor="white"
1276
+ borderBottomBackgroundColor="green"
1277
+ >
1278
+ <Text>Hello world</Text>
1279
+ </Box>
1280
+ ```
1281
+
1282
+ ##### borderRightBackgroundColor
1283
+
1284
+ Type: `string`
1285
+
1286
+ Change right border background color.
1287
+ Accepts the same values as [`backgroundColor`](#backgroundcolor) in `<Text>` component.
1288
+ Falls back to `borderBackgroundColor` if not specified.
1289
+
1290
+ ```jsx
1291
+ <Box borderStyle="round" borderColor="white" borderRightBackgroundColor="green">
1292
+ <Text>Hello world</Text>
1293
+ </Box>
1294
+ ```
1295
+
1296
+ ##### borderLeftBackgroundColor
1297
+
1298
+ Type: `string`
1299
+
1300
+ Change left border background color.
1301
+ Accepts the same values as [`backgroundColor`](#backgroundcolor) in `<Text>` component.
1302
+ Falls back to `borderBackgroundColor` if not specified.
1303
+
1304
+ ```jsx
1305
+ <Box borderStyle="round" borderColor="white" borderLeftBackgroundColor="green">
1306
+ <Text>Hello world</Text>
1307
+ </Box>
1308
+ ```
1309
+
1310
+ ##### borderTop
1311
+
1312
+ Type: `boolean`\
1313
+ Default: `true`
1314
+
1315
+ Determines whether the top border is visible.
1316
+
1317
+ ##### borderRight
1318
+
1319
+ Type: `boolean`\
1320
+ Default: `true`
1321
+
1322
+ Determines whether the right border is visible.
1323
+
1324
+ ##### borderBottom
1325
+
1326
+ Type: `boolean`\
1327
+ Default: `true`
1328
+
1329
+ Determines whether the bottom border is visible.
1330
+
1331
+ ##### borderLeft
1332
+
1333
+ Type: `boolean`\
1334
+ Default: `true`
1335
+
1336
+ Determines whether the left border is visible.
1337
+
1338
+ #### Background
1339
+
1340
+ ##### backgroundColor
1341
+
1342
+ Type: `string`
1343
+
1344
+ Background color for the element.
1345
+
1346
+ Accepts the same values as [`color`](#color) in the `<Text>` component.
1347
+
1348
+ ```jsx
1349
+ <Box flexDirection="column">
1350
+ <Box backgroundColor="red" width={20} height={5} alignSelf="flex-start">
1351
+ <Text>Red background</Text>
1352
+ </Box>
1353
+
1354
+ <Box
1355
+ backgroundColor="#FF8800"
1356
+ width={20}
1357
+ height={3}
1358
+ marginTop={1}
1359
+ alignSelf="flex-start"
1360
+ >
1361
+ <Text>Orange background</Text>
1362
+ </Box>
1363
+
1364
+ <Box
1365
+ backgroundColor="rgb(0, 255, 0)"
1366
+ width={20}
1367
+ height={3}
1368
+ marginTop={1}
1369
+ alignSelf="flex-start"
1370
+ >
1371
+ <Text>Green background</Text>
1372
+ </Box>
1373
+ </Box>
1374
+ ```
1375
+
1376
+ The background color fills the entire `<Box>` area and is inherited by child `<Text>` components unless they specify their own `backgroundColor`.
1377
+
1378
+ ```jsx
1379
+ <Box backgroundColor="blue" alignSelf="flex-start">
1380
+ <Text>Blue inherited </Text>
1381
+ <Text backgroundColor="yellow">Yellow override </Text>
1382
+ <Text>Blue inherited again</Text>
1383
+ </Box>
1384
+ ```
1385
+
1386
+ Background colors work with borders and padding:
1387
+
1388
+ ```jsx
1389
+ <Box
1390
+ backgroundColor="cyan"
1391
+ borderStyle="round"
1392
+ padding={1}
1393
+ alignSelf="flex-start"
1394
+ >
1395
+ <Text>Background with border and padding</Text>
1396
+ </Box>
1397
+ ```
1398
+
1399
+ See example in [examples/box-backgrounds](examples/box-backgrounds/box-backgrounds.tsx).
1400
+
1401
+ ### `<Newline>`
1402
+
1403
+ Adds one or more newline (`\n`) characters.
1404
+ Must be used within `<Text>` components.
1405
+
1406
+ #### count
1407
+
1408
+ Type: `number`\
1409
+ Default: `1`
1410
+
1411
+ Number of newlines to insert.
1412
+
1413
+ ```jsx
1414
+ import {render, Text, Newline} from 'ink';
1415
+
1416
+ const Example = () => (
1417
+ <Text>
1418
+ <Text color="green">Hello</Text>
1419
+ <Newline />
1420
+ <Text color="red">World</Text>
1421
+ </Text>
1422
+ );
1423
+
1424
+ render(<Example />);
1425
+ ```
1426
+
1427
+ Output:
1428
+
1429
+ ```
1430
+ Hello
1431
+ World
1432
+ ```
1433
+
1434
+ ### `<Spacer>`
1435
+
1436
+ A flexible space that expands along the major axis of its containing layout.
1437
+ It's useful as a shortcut for filling all the available space between elements.
1438
+
1439
+ For example, using `<Spacer>` in a `<Box>` with default flex direction (`row`) will position "Left" on the left side and will push "Right" to the right side.
1440
+
1441
+ ```jsx
1442
+ import {render, Box, Text, Spacer} from 'ink';
1443
+
1444
+ const Example = () => (
1445
+ <Box>
1446
+ <Text>Left</Text>
1447
+ <Spacer />
1448
+ <Text>Right</Text>
1449
+ </Box>
1450
+ );
1451
+
1452
+ render(<Example />);
1453
+ ```
1454
+
1455
+ In a vertical flex direction (`column`), it will position "Top" at the top of the container and push "Bottom" to the bottom.
1456
+ Note that the container needs to be tall enough to see this in effect.
1457
+
1458
+ ```jsx
1459
+ import {render, Box, Text, Spacer} from 'ink';
1460
+
1461
+ const Example = () => (
1462
+ <Box flexDirection="column" height={10}>
1463
+ <Text>Top</Text>
1464
+ <Spacer />
1465
+ <Text>Bottom</Text>
1466
+ </Box>
1467
+ );
1468
+
1469
+ render(<Example />);
1470
+ ```
1471
+
1472
+ ### `<Static>`
1473
+
1474
+ `<Static>` component permanently renders its output above everything else.
1475
+ It's useful for displaying activity like completed tasks or logs - things that
1476
+ don't change after they're rendered (hence the name "Static").
1477
+
1478
+ It's preferred to use `<Static>` for use cases like these when you can't know
1479
+ or control the number of items that need to be rendered.
1480
+
1481
+ For example, [Tap](https://github.com/tapjs/node-tap) uses `<Static>` to display
1482
+ a list of completed tests. [Gatsby](https://github.com/gatsbyjs/gatsby) uses it
1483
+ to display a list of generated pages while still displaying a live progress bar.
1484
+
1485
+ ```jsx
1486
+ import React, {useState, useEffect} from 'react';
1487
+ import {render, Static, Box, Text} from 'ink';
1488
+
1489
+ const Example = () => {
1490
+ const [tests, setTests] = useState([]);
1491
+
1492
+ useEffect(() => {
1493
+ let completedTests = 0;
1494
+ let timer;
1495
+
1496
+ const run = () => {
1497
+ // Fake 10 completed tests
1498
+ if (completedTests++ < 10) {
1499
+ setTests(previousTests => [
1500
+ ...previousTests,
1501
+ {
1502
+ id: previousTests.length,
1503
+ title: `Test #${previousTests.length + 1}`,
1504
+ },
1505
+ ]);
1506
+
1507
+ timer = setTimeout(run, 100);
1508
+ }
1509
+ };
1510
+
1511
+ run();
1512
+
1513
+ return () => {
1514
+ clearTimeout(timer);
1515
+ };
1516
+ }, []);
1517
+
1518
+ return (
1519
+ <>
1520
+ {/* This part will be rendered once to the terminal */}
1521
+ <Static items={tests}>
1522
+ {test => (
1523
+ <Box key={test.id}>
1524
+ <Text color="green">✔ {test.title}</Text>
1525
+ </Box>
1526
+ )}
1527
+ </Static>
1528
+
1529
+ {/* This part keeps updating as state changes */}
1530
+ <Box marginTop={1}>
1531
+ <Text dimColor>Completed tests: {tests.length}</Text>
1532
+ </Box>
1533
+ </>
1534
+ );
1535
+ };
1536
+
1537
+ render(<Example />);
1538
+ ```
1539
+
1540
+ > [!NOTE]
1541
+ > `<Static>` only renders new items in the `items` prop and ignores items that were previously rendered. This means that when you add new items to the `items` array, changes you make to previous items will not trigger a rerender.
1542
+
1543
+ See [examples/static](examples/static/static.tsx) for an example usage of `<Static>` component.
1544
+
1545
+ #### items
1546
+
1547
+ Type: `Array`
1548
+
1549
+ Array of items of any type to render using the function you pass as a component child.
1550
+
1551
+ #### style
1552
+
1553
+ Type: `object`
1554
+
1555
+ Styles to apply to a container of child elements.
1556
+ See [`<Box>`](#box) for supported properties.
1557
+
1558
+ ```jsx
1559
+ <Static items={...} style={{padding: 1}}>
1560
+ {...}
1561
+ </Static>
1562
+ ```
1563
+
1564
+ #### children(item)
1565
+
1566
+ Type: `Function`
1567
+
1568
+ Function that is called to render every item in the `items` array.
1569
+ The first argument is the item itself, and the second argument is the index of that item in the
1570
+ `items` array.
1571
+
1572
+ Note that a `key` must be assigned to the root component.
1573
+
1574
+ ```jsx
1575
+ <Static items={['a', 'b', 'c']}>
1576
+ {(item, index) => {
1577
+ // This function is called for every item in ['a', 'b', 'c']
1578
+ // `item` is 'a', 'b', 'c'
1579
+ // `index` is 0, 1, 2
1580
+ return (
1581
+ <Box key={index}>
1582
+ <Text>Item: {item}</Text>
1583
+ </Box>
1584
+ );
1585
+ }}
1586
+ </Static>
1587
+ ```
1588
+
1589
+ ### `<Transform>`
1590
+
1591
+ Transform a string representation of React components before they're written to output.
1592
+ For example, you might want to apply a [gradient to text](https://github.com/sindresorhus/ink-gradient), [add a clickable link](https://github.com/sindresorhus/ink-link), or [create some text effects](https://github.com/sindresorhus/ink-big-text).
1593
+ These use cases can't accept React nodes as input; they expect a string.
1594
+ That's what the `<Transform>` component does: it gives you an output string of its child components and lets you transform it in any way.
1595
+
1596
+ > [!NOTE]
1597
+ > `<Transform>` must be applied only to `<Text>` children components and shouldn't change the dimensions of the output; otherwise, the layout will be incorrect.
1598
+
1599
+ > [!IMPORTANT]
1600
+ > When children use `<Text>` styling props (e.g. `color`, `bold`), the string passed to `transform` will contain [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code). If your transform manipulates whitespace or does string operations like `.trim()`, you may need to use ANSI-aware methods (e.g. from [`slice-ansi`](https://github.com/chalk/slice-ansi) or [`strip-ansi`](https://github.com/chalk/strip-ansi)).
1601
+
1602
+ ```jsx
1603
+ import {render, Transform} from 'ink';
1604
+
1605
+ const Example = () => (
1606
+ <Transform transform={output => output.toUpperCase()}>
1607
+ <Text>Hello World</Text>
1608
+ </Transform>
1609
+ );
1610
+
1611
+ render(<Example />);
1612
+ ```
1613
+
1614
+ Since the `transform` function converts all characters to uppercase, the final output rendered to the terminal will be "HELLO WORLD", not "Hello World".
1615
+
1616
+ When the output wraps to multiple lines, it can be helpful to know which line is being processed.
1617
+
1618
+ For example, to implement a hanging indent component, you can indent all the lines except for the first.
1619
+
1620
+ ```jsx
1621
+ import {render, Transform} from 'ink';
1622
+
1623
+ const HangingIndent = ({indent = 4, children}) => (
1624
+ <Transform
1625
+ transform={(line, index) =>
1626
+ index === 0 ? line : ' '.repeat(indent) + line
1627
+ }
1628
+ >
1629
+ {children}
1630
+ </Transform>
1631
+ );
1632
+
1633
+ const text =
1634
+ 'WHEN I WROTE the following pages, or rather the bulk of them, ' +
1635
+ 'I lived alone, in the woods, a mile from any neighbor, in a ' +
1636
+ 'house which I had built myself, on the shore of Walden Pond, ' +
1637
+ 'in Concord, Massachusetts, and earned my living by the labor ' +
1638
+ 'of my hands only. I lived there two years and two months. At ' +
1639
+ 'present I am a sojourner in civilized life again.';
1640
+
1641
+ render(<HangingIndent indent={4}>{text}</HangingIndent>);
1642
+ ```
1643
+
1644
+ #### transform(outputLine, index)
1645
+
1646
+ Type: `Function`
1647
+
1648
+ Function that transforms children output.
1649
+ It accepts children and must return transformed children as well.
1650
+
1651
+ ##### children
1652
+
1653
+ Type: `string`
1654
+
1655
+ Output of child components.
1656
+
1657
+ ##### index
1658
+
1659
+ Type: `number`
1660
+
1661
+ The zero-indexed line number of the line that's currently being transformed.
1662
+
1663
+ ## Hooks
1664
+
1665
+ ### useInput(inputHandler, options?)
1666
+
1667
+ A React hook that returns `void` and handles user input.
1668
+ It's a more convenient alternative to using `useStdin` and listening for `data` events.
1669
+ The callback you pass to `useInput` is called for each character when the user enters any input.
1670
+ However, if the user pastes text and it's more than one character, the callback will be called only once, and the whole string will be passed as `input`.
1671
+ You can find a full example of using `useInput` at [examples/use-input](examples/use-input/use-input.tsx).
1672
+
1673
+ ```jsx
1674
+ import {useInput} from 'ink';
1675
+
1676
+ const UserInput = () => {
1677
+ useInput((input, key) => {
1678
+ if (input === 'q') {
1679
+ // Exit program
1680
+ }
1681
+
1682
+ if (key.leftArrow) {
1683
+ // Left arrow key pressed
1684
+ }
1685
+ });
1686
+
1687
+ return …
1688
+ };
1689
+ ```
1690
+
1691
+ #### inputHandler(input, key)
1692
+
1693
+ Type: `Function`
1694
+
1695
+ The handler function that you pass to `useInput` receives two arguments:
1696
+
1697
+ ##### input
1698
+
1699
+ Type: `string`
1700
+
1701
+ The input that the program received.
1702
+
1703
+ ##### key
1704
+
1705
+ Type: `object`
1706
+
1707
+ Handy information about a key that was pressed.
1708
+
1709
+ ###### key.leftArrow
1710
+
1711
+ ###### key.rightArrow
1712
+
1713
+ ###### key.upArrow
1714
+
1715
+ ###### key.downArrow
1716
+
1717
+ Type: `boolean`\
1718
+ Default: `false`
1719
+
1720
+ If an arrow key was pressed, the corresponding property will be `true`.
1721
+ For example, if the user presses the left arrow key, `key.leftArrow` equals `true`.
1722
+
1723
+ ###### key.return
1724
+
1725
+ Type: `boolean`\
1726
+ Default: `false`
1727
+
1728
+ Return (Enter) key was pressed.
1729
+
1730
+ ###### key.escape
1731
+
1732
+ Type: `boolean`\
1733
+ Default: `false`
1734
+
1735
+ Escape key was pressed.
1736
+
1737
+ ###### key.ctrl
1738
+
1739
+ Type: `boolean`\
1740
+ Default: `false`
1741
+
1742
+ Ctrl key was pressed.
1743
+
1744
+ ###### key.shift
1745
+
1746
+ Type: `boolean`\
1747
+ Default: `false`
1748
+
1749
+ Shift key was pressed.
1750
+
1751
+ ###### key.tab
1752
+
1753
+ Type: `boolean`\
1754
+ Default: `false`
1755
+
1756
+ Tab key was pressed.
1757
+
1758
+ ###### key.backspace
1759
+
1760
+ Type: `boolean`\
1761
+ Default: `false`
1762
+
1763
+ Backspace key was pressed.
1764
+
1765
+ ###### key.delete
1766
+
1767
+ Type: `boolean`\
1768
+ Default: `false`
1769
+
1770
+ Delete key was pressed.
1771
+
1772
+ ###### key.pageDown
1773
+
1774
+ ###### key.pageUp
1775
+
1776
+ Type: `boolean`\
1777
+ Default: `false`
1778
+
1779
+ If the Page Up or Page Down key was pressed, the corresponding property will be `true`.
1780
+ For example, if the user presses Page Down, `key.pageDown` equals `true`.
1781
+
1782
+ ###### key.home
1783
+
1784
+ ###### key.end
1785
+
1786
+ Type: `boolean`\
1787
+ Default: `false`
1788
+
1789
+ If the Home or End key was pressed, the corresponding property will be `true`.
1790
+ For example, if the user presses End, `key.end` equals `true`.
1791
+
1792
+ ###### key.meta
1793
+
1794
+ Type: `boolean`\
1795
+ Default: `false`
1796
+
1797
+ [Meta key](https://en.wikipedia.org/wiki/Meta_key) was pressed.
1798
+
1799
+ ###### key.super
1800
+
1801
+ Type: `boolean`\
1802
+ Default: `false`
1803
+
1804
+ Super key (Cmd on macOS, Win on Windows) was pressed. Requires [kitty keyboard protocol](#kittykeyboard).
1805
+
1806
+ ###### key.hyper
1807
+
1808
+ Type: `boolean`\
1809
+ Default: `false`
1810
+
1811
+ Hyper key was pressed. Requires [kitty keyboard protocol](#kittykeyboard).
1812
+
1813
+ ###### key.capsLock
1814
+
1815
+ Type: `boolean`\
1816
+ Default: `false`
1817
+
1818
+ Caps Lock was active. Requires [kitty keyboard protocol](#kittykeyboard).
1819
+
1820
+ ###### key.numLock
1821
+
1822
+ Type: `boolean`\
1823
+ Default: `false`
1824
+
1825
+ Num Lock was active. Requires [kitty keyboard protocol](#kittykeyboard).
1826
+
1827
+ ###### key.eventType
1828
+
1829
+ Type: `'press' | 'repeat' | 'release'`\
1830
+ Default: `undefined`
1831
+
1832
+ The type of key event. Only available with [kitty keyboard protocol](#kittykeyboard). Without the protocol, this property is `undefined`.
1833
+
1834
+ #### options
1835
+
1836
+ Type: `object`
1837
+
1838
+ ##### isActive
1839
+
1840
+ Type: `boolean`\
1841
+ Default: `true`
1842
+
1843
+ Enable or disable capturing of user input.
1844
+ Useful when there are multiple `useInput` hooks used at once to avoid handling the same input several times.
1845
+
1846
+ ### usePaste(handler, options?)
1847
+
1848
+ A React hook that calls `handler` whenever the user pastes text. Bracketed paste mode (`\x1b[?2004h`) is automatically enabled while the hook is active, so pasted text arrives as a single string rather than being misinterpreted as individual key presses.
1849
+
1850
+ `usePaste` and `useInput` can be used together in the same component. They operate on separate event channels, so paste content is never forwarded to `useInput` handlers when `usePaste` is active.
1851
+
1852
+ ```jsx
1853
+ import {useInput, usePaste} from 'ink';
1854
+
1855
+ const MyInput = () => {
1856
+ useInput((input, key) => {
1857
+ // Only receives typed characters and key events, not pasted text.
1858
+ if (key.return) {
1859
+ // Submit
1860
+ }
1861
+ });
1862
+
1863
+ usePaste((text) => {
1864
+ // Receives the full pasted string, including newlines.
1865
+ console.log('Pasted:', text);
1866
+ });
1867
+
1868
+ return …
1869
+ };
1870
+ ```
1871
+
1872
+ #### handler(text)
1873
+
1874
+ Type: `Function`
1875
+
1876
+ Called with the full pasted string whenever the user pastes text. The string is delivered verbatim — newlines, escape sequences, and other special characters are preserved exactly as pasted.
1877
+
1878
+ ##### text
1879
+
1880
+ Type: `string`
1881
+
1882
+ The pasted text.
1883
+
1884
+ #### options
1885
+
1886
+ Type: `object`
1887
+
1888
+ ##### isActive
1889
+
1890
+ Type: `boolean`\
1891
+ Default: `true`
1892
+
1893
+ Enable or disable the paste handler. Useful when multiple components use `usePaste` and only one should be active at a time.
1894
+
1895
+ ### useApp()
1896
+
1897
+ A React hook that returns app lifecycle methods.
1898
+
1899
+ #### exit(errorOrResult?)
1900
+
1901
+ Type: `Function`
1902
+
1903
+ Exit (unmount) the whole Ink app.
1904
+
1905
+ ##### errorOrResult
1906
+
1907
+ Type: `Error | unknown`
1908
+
1909
+ Optional value that controls how [`waitUntilExit`](#waituntilexit) settles:
1910
+
1911
+ - `exit()` resolves with `undefined`.
1912
+ - `exit(error)` rejects when `error` is an `Error`.
1913
+ - `exit(value)` resolves with `value`.
1914
+
1915
+ ```js
1916
+ import {useEffect} from 'react';
1917
+ import {useApp} from 'ink';
1918
+
1919
+ const Example = () => {
1920
+ const {exit} = useApp();
1921
+
1922
+ // Exit the app after 5 seconds
1923
+ useEffect(() => {
1924
+ setTimeout(() => {
1925
+ exit();
1926
+ }, 5000);
1927
+ }, [exit]);
1928
+
1929
+ return …
1930
+ };
1931
+ ```
1932
+
1933
+ #### waitUntilRenderFlush()
1934
+
1935
+ Type: `Function`
1936
+
1937
+ Returns a promise that settles after pending render output is flushed to stdout.
1938
+
1939
+ ```js
1940
+ import {useEffect} from 'react';
1941
+ import {useApp} from 'ink';
1942
+
1943
+ const Example = () => {
1944
+ const {waitUntilRenderFlush} = useApp();
1945
+
1946
+ useEffect(() => {
1947
+ void (async () => {
1948
+ await waitUntilRenderFlush();
1949
+ runNextCommand();
1950
+ })();
1951
+ }, [waitUntilRenderFlush]);
1952
+
1953
+ return …;
1954
+ };
1955
+ ```
1956
+
1957
+ #### suspendTerminal(callback?)
1958
+
1959
+ Type: `Function`
1960
+
1961
+ Temporarily hands the terminal over to a child process (such as `$EDITOR`, `less`, or `fzf`), then restores Ink's terminal state and forces a full redraw.
1962
+
1963
+ While suspended, Ink stops writing output, stops consuming input, and restores the terminal modes the child expects (raw mode off, cursor visible, bracketed paste off, alternate screen exited, kitty keyboard protocol off). When the suspension ends, Ink reapplies its own terminal state and repaints from scratch.
1964
+
1965
+ ##### callback
1966
+
1967
+ Type: `Function`
1968
+
1969
+ When a callback is provided, Ink suspends, runs the callback, and restores the terminal once it settles, even if the callback throws.
1970
+
1971
+ ```js
1972
+ import {useApp} from 'ink';
1973
+
1974
+ const {suspendTerminal} = useApp();
1975
+
1976
+ await suspendTerminal(async () => {
1977
+ await runEditor();
1978
+ });
1979
+ ```
1980
+
1981
+ When called without a callback, it returns a suspension you resume yourself. `resume()` is async because restoring the terminal may need to wait for ordered writes and a full redraw.
1982
+
1983
+ ```js
1984
+ const suspension = await suspendTerminal();
1985
+
1986
+ try {
1987
+ await runEditor();
1988
+ } finally {
1989
+ await suspension.resume();
1990
+ }
1991
+ ```
1992
+
1993
+ The suspension is also a disposable, so it can be resumed automatically with `await using`:
1994
+
1995
+ ```js
1996
+ await using suspension = await suspendTerminal();
1997
+ await runEditor();
1998
+ ```
1999
+
2000
+ Suspending while a suspension is already active throws. This is supported only in interactive TTY mode; in non-interactive output the callback still runs but Ink performs no terminal handoff.
2001
+
2002
+ ### useStdin()
2003
+
2004
+ A React hook that returns the stdin stream and stdin-related utilities.
2005
+
2006
+ #### stdin
2007
+
2008
+ Type: `stream.Readable`\
2009
+ Default: `process.stdin`
2010
+
2011
+ The stdin stream passed to `render()` in `options.stdin`, or `process.stdin` by default.
2012
+ Useful if your app needs to handle user input.
2013
+
2014
+ ```js
2015
+ import {useStdin} from 'ink';
2016
+
2017
+ const Example = () => {
2018
+ const {stdin} = useStdin();
2019
+
2020
+ return …
2021
+ };
2022
+ ```
2023
+
2024
+ #### isRawModeSupported
2025
+
2026
+ Type: `boolean`
2027
+
2028
+ A boolean flag determining if the current `stdin` supports `setRawMode`.
2029
+ A component using `setRawMode` might want to use `isRawModeSupported` to nicely fall back in environments where raw mode is not supported.
2030
+
2031
+ ```jsx
2032
+ import {useStdin} from 'ink';
2033
+
2034
+ const Example = () => {
2035
+ const {isRawModeSupported} = useStdin();
2036
+
2037
+ return isRawModeSupported ? (
2038
+ <MyInputComponent />
2039
+ ) : (
2040
+ <MyComponentThatDoesntUseInput />
2041
+ );
2042
+ };
2043
+ ```
2044
+
2045
+ #### setRawMode(isRawModeEnabled)
2046
+
2047
+ Type: `function`
2048
+
2049
+ ##### isRawModeEnabled
2050
+
2051
+ Type: `boolean`
2052
+
2053
+ See [`setRawMode`](https://nodejs.org/api/tty.html#tty_readstream_setrawmode_mode).
2054
+ Ink exposes this function to be able to handle <kbd>Ctrl</kbd>+<kbd>C</kbd>, that's why you should use Ink's `setRawMode` instead of `process.stdin.setRawMode`.
2055
+
2056
+ **Warning:** This function will throw unless the current `stdin` supports `setRawMode`. Use [`isRawModeSupported`](#israwmodesupported) to detect `setRawMode` support.
2057
+
2058
+ ```js
2059
+ import {useStdin} from 'ink';
2060
+
2061
+ const Example = () => {
2062
+ const {setRawMode} = useStdin();
2063
+
2064
+ useEffect(() => {
2065
+ setRawMode(true);
2066
+
2067
+ return () => {
2068
+ setRawMode(false);
2069
+ };
2070
+ });
2071
+
2072
+ return …
2073
+ };
2074
+ ```
2075
+
2076
+ ### useStdout()
2077
+
2078
+ A React hook that returns the stdout stream where Ink renders your app and stdout-related utilities.
2079
+
2080
+ #### stdout
2081
+
2082
+ Type: `stream.Writable`\
2083
+ Default: `process.stdout`
2084
+
2085
+ ```js
2086
+ import {useStdout} from 'ink';
2087
+
2088
+ const Example = () => {
2089
+ const {stdout} = useStdout();
2090
+
2091
+ return …
2092
+ };
2093
+ ```
2094
+
2095
+ #### write(data)
2096
+
2097
+ Write any string to stdout while preserving Ink's output.
2098
+ It's useful when you want to display external information outside of Ink's rendering and ensure there's no conflict between the two.
2099
+ It's similar to `<Static>`, except it can't accept components; it only works with strings.
2100
+
2101
+ ##### data
2102
+
2103
+ Type: `string`
2104
+
2105
+ Data to write to stdout.
2106
+
2107
+ ```js
2108
+ import {useStdout} from 'ink';
2109
+
2110
+ const Example = () => {
2111
+ const {write} = useStdout();
2112
+
2113
+ useEffect(() => {
2114
+ // Write a single message to stdout, above Ink's output
2115
+ write('Hello from Ink to stdout\n');
2116
+ }, []);
2117
+
2118
+ return …
2119
+ };
2120
+ ```
2121
+
2122
+ See additional usage example in [examples/use-stdout](examples/use-stdout/use-stdout.tsx).
2123
+
2124
+ ### useBoxMetrics(ref)
2125
+
2126
+ A React hook that returns the current layout metrics for a tracked box element.
2127
+ It updates when layout changes (for example terminal resize, sibling/content changes, or position changes).
2128
+
2129
+ Use `hasMeasured` to detect when the currently tracked element has been measured.
2130
+
2131
+ #### ref
2132
+
2133
+ Type: `React.RefObject<DOMElement | null>`
2134
+
2135
+ A ref to the `<Box>` element to track.
2136
+
2137
+ ```jsx
2138
+ import {useRef} from 'react';
2139
+ import {Box, Text, useBoxMetrics} from 'ink';
2140
+
2141
+ const Example = () => {
2142
+ const ref = useRef(null);
2143
+ const {width, height, left, top, hasMeasured} = useBoxMetrics(ref);
2144
+
2145
+ return (
2146
+ <Box ref={ref}>
2147
+ <Text>
2148
+ {hasMeasured ? `${width}x${height} at ${left},${top}` : 'Measuring...'}
2149
+ </Text>
2150
+ </Box>
2151
+ );
2152
+ };
2153
+ ```
2154
+
2155
+ #### width
2156
+
2157
+ Type: `number`
2158
+
2159
+ Element width.
2160
+
2161
+ #### height
2162
+
2163
+ Type: `number`
2164
+
2165
+ Element height.
2166
+
2167
+ #### left
2168
+
2169
+ Type: `number`
2170
+
2171
+ Distance from the left edge of the parent.
2172
+
2173
+ #### top
2174
+
2175
+ Type: `number`
2176
+
2177
+ Distance from the top edge of the parent.
2178
+
2179
+ #### hasMeasured
2180
+
2181
+ Type: `boolean`
2182
+
2183
+ Whether the currently tracked element has been measured.
2184
+
2185
+ > [!NOTE]
2186
+ > The hook returns `{width: 0, height: 0, left: 0, top: 0}` until the first layout pass completes. It also returns zeros when the tracked ref is detached.
2187
+
2188
+ ### useStderr()
2189
+
2190
+ A React hook that returns the stderr stream and stderr-related utilities.
2191
+
2192
+ #### stderr
2193
+
2194
+ Type: `stream.Writable`\
2195
+ Default: `process.stderr`
2196
+
2197
+ Stderr stream.
2198
+
2199
+ ```js
2200
+ import {useStderr} from 'ink';
2201
+
2202
+ const Example = () => {
2203
+ const {stderr} = useStderr();
2204
+
2205
+ return …
2206
+ };
2207
+ ```
2208
+
2209
+ #### write(data)
2210
+
2211
+ Write any string to stderr while preserving Ink's output.
2212
+
2213
+ It's useful when you want to display external information outside of Ink's rendering and ensure there's no conflict between the two.
2214
+ It's similar to `<Static>`, except it can't accept components; it only works with strings.
2215
+
2216
+ ##### data
2217
+
2218
+ Type: `string`
2219
+
2220
+ Data to write to stderr.
2221
+
2222
+ ```js
2223
+ import {useStderr} from 'ink';
2224
+
2225
+ const Example = () => {
2226
+ const {write} = useStderr();
2227
+
2228
+ useEffect(() => {
2229
+ // Write a single message to stderr, above Ink's output
2230
+ write('Hello from Ink to stderr\n');
2231
+ }, []);
2232
+
2233
+ return …
2234
+ };
2235
+ ```
2236
+
2237
+ ### useWindowSize()
2238
+
2239
+ A React hook that returns the current terminal dimensions and re-renders the component whenever the terminal is resized.
2240
+
2241
+ ```js
2242
+ import {Text, useWindowSize} from 'ink';
2243
+
2244
+ const Example = () => {
2245
+ const {columns, rows} = useWindowSize();
2246
+
2247
+ return (
2248
+ <Text>
2249
+ {columns}x{rows}
2250
+ </Text>
2251
+ );
2252
+ };
2253
+ ```
2254
+
2255
+ #### columns
2256
+
2257
+ Type: `number`
2258
+
2259
+ Number of columns (horizontal character cells).
2260
+
2261
+ #### rows
2262
+
2263
+ Type: `number`
2264
+
2265
+ Number of rows (vertical character cells).
2266
+
2267
+ > [!NOTE]
2268
+ > When the terminal is resized narrower, ghost lines may briefly appear depending on the terminal emulator's reflow behavior.
2269
+
2270
+ ### useFocus(options?)
2271
+
2272
+ A React hook that returns focus state and focus controls for the current component.
2273
+ A component that uses the `useFocus` hook becomes "focusable" to Ink, so when the user presses <kbd>Tab</kbd>, Ink will switch focus to this component.
2274
+ If there are multiple components that execute the `useFocus` hook, focus will be given to them in the order in which these components are rendered.
2275
+ This hook returns an object with an `isFocused` boolean property, which determines whether this component is focused.
2276
+
2277
+ #### options
2278
+
2279
+ ##### autoFocus
2280
+
2281
+ Type: `boolean`\
2282
+ Default: `false`
2283
+
2284
+ Auto-focus this component if there's no active (focused) component right now.
2285
+
2286
+ ##### isActive
2287
+
2288
+ Type: `boolean`\
2289
+ Default: `true`
2290
+
2291
+ Enable or disable this component's focus, while still maintaining its position in the list of focusable components.
2292
+ This is useful for inputs that are temporarily disabled.
2293
+
2294
+ ##### id
2295
+
2296
+ Type: `string`\
2297
+ Required: `false`
2298
+
2299
+ Set a component's focus ID, which can be used to programmatically focus the component. This is useful for large interfaces with many focusable elements to avoid having to cycle through all of them.
2300
+
2301
+ ```jsx
2302
+ import {render, useFocus, Text} from 'ink';
2303
+
2304
+ const Example = () => {
2305
+ const {isFocused} = useFocus();
2306
+
2307
+ return <Text>{isFocused ? 'I am focused' : 'I am not focused'}</Text>;
2308
+ };
2309
+
2310
+ render(<Example />);
2311
+ ```
2312
+
2313
+ See example in [examples/use-focus](examples/use-focus/use-focus.tsx) and [examples/use-focus-with-id](examples/use-focus-with-id/use-focus-with-id.tsx).
2314
+
2315
+ ### useFocusManager()
2316
+
2317
+ A React hook that returns methods to manage focus across focusable components.
2318
+
2319
+ #### enableFocus()
2320
+
2321
+ Enable focus management for all components.
2322
+
2323
+ > [!NOTE]
2324
+ > You don't need to call this method manually unless you've disabled focus management. Focus management is enabled by default.
2325
+
2326
+ ```js
2327
+ import {useFocusManager} from 'ink';
2328
+
2329
+ const Example = () => {
2330
+ const {enableFocus} = useFocusManager();
2331
+
2332
+ useEffect(() => {
2333
+ enableFocus();
2334
+ }, []);
2335
+
2336
+ return …
2337
+ };
2338
+ ```
2339
+
2340
+ #### disableFocus()
2341
+
2342
+ Disable focus management for all components.
2343
+ The currently active component (if there's one) will lose its focus.
2344
+
2345
+ ```js
2346
+ import {useFocusManager} from 'ink';
2347
+
2348
+ const Example = () => {
2349
+ const {disableFocus} = useFocusManager();
2350
+
2351
+ useEffect(() => {
2352
+ disableFocus();
2353
+ }, []);
2354
+
2355
+ return …
2356
+ };
2357
+ ```
2358
+
2359
+ #### focusNext()
2360
+
2361
+ Switch focus to the next focusable component.
2362
+ If there's no active component right now, focus will be given to the first focusable component.
2363
+ If the active component is the last in the list of focusable components, focus will be switched to the first focusable component.
2364
+
2365
+ > [!NOTE]
2366
+ > Ink calls this method when user presses <kbd>Tab</kbd>.
2367
+
2368
+ ```js
2369
+ import {useFocusManager} from 'ink';
2370
+
2371
+ const Example = () => {
2372
+ const {focusNext} = useFocusManager();
2373
+
2374
+ useEffect(() => {
2375
+ focusNext();
2376
+ }, []);
2377
+
2378
+ return …
2379
+ };
2380
+ ```
2381
+
2382
+ #### focusPrevious()
2383
+
2384
+ Switch focus to the previous focusable component.
2385
+ If there's no active component right now, focus will be given to the first focusable component.
2386
+ If the active component is the first in the list of focusable components, focus will be switched to the last focusable component.
2387
+
2388
+ > [!NOTE]
2389
+ > Ink calls this method when user presses <kbd>Shift</kbd>+<kbd>Tab</kbd>.
2390
+
2391
+ ```js
2392
+ import {useFocusManager} from 'ink';
2393
+
2394
+ const Example = () => {
2395
+ const {focusPrevious} = useFocusManager();
2396
+
2397
+ useEffect(() => {
2398
+ focusPrevious();
2399
+ }, []);
2400
+
2401
+ return …
2402
+ };
2403
+ ```
2404
+
2405
+ #### focus(id)
2406
+
2407
+ ##### id
2408
+
2409
+ Type: `string`
2410
+
2411
+ Switch focus to the component with the given [`id`](#id).
2412
+ If there's no component with that ID, focus is not changed.
2413
+
2414
+ ```js
2415
+ import {useFocusManager, useInput} from 'ink';
2416
+
2417
+ const Example = () => {
2418
+ const {focus} = useFocusManager();
2419
+
2420
+ useInput(input => {
2421
+ if (input === 's') {
2422
+ // Focus the component with focus ID 'someId'
2423
+ focus('someId');
2424
+ }
2425
+ });
2426
+
2427
+ return …
2428
+ };
2429
+ ```
2430
+
2431
+ #### activeId
2432
+
2433
+ Type: `string | undefined`
2434
+
2435
+ The ID of the currently focused component, or `undefined` if no component is focused.
2436
+
2437
+ ```js
2438
+ import {Text, useFocusManager} from 'ink';
2439
+
2440
+ const Example = () => {
2441
+ const {activeId} = useFocusManager();
2442
+
2443
+ return <Text>Focused: {activeId ?? 'none'}</Text>;
2444
+ };
2445
+ ```
2446
+
2447
+ ### useCursor()
2448
+
2449
+ A React hook that returns methods to control the terminal cursor position after each render.
2450
+ This is essential for IME (Input Method Editor) support, where the composing character is displayed at the cursor location.
2451
+
2452
+ ```jsx
2453
+ import {useState} from 'react';
2454
+ import {Box, Text, useCursor} from 'ink';
2455
+ import stringWidth from 'string-width';
2456
+
2457
+ const TextInput = () => {
2458
+ const [text, setText] = useState('');
2459
+ const {setCursorPosition} = useCursor();
2460
+
2461
+ const prompt = '> ';
2462
+ setCursorPosition({x: stringWidth(prompt + text), y: 1});
2463
+
2464
+ return (
2465
+ <Box flexDirection="column">
2466
+ <Text>Type here:</Text>
2467
+ <Text>
2468
+ {prompt}
2469
+ {text}
2470
+ </Text>
2471
+ </Box>
2472
+ );
2473
+ };
2474
+ ```
2475
+
2476
+ #### setCursorPosition(position)
2477
+
2478
+ Set the cursor position relative to the Ink output. Pass `undefined` to hide the cursor.
2479
+
2480
+ ##### position
2481
+
2482
+ Type: `object | undefined`
2483
+
2484
+ Use [`string-width`](https://github.com/sindresorhus/string-width) to calculate `x` for strings containing wide characters (CJK, emoji).
2485
+
2486
+ See a full example at [examples/cursor-ime](examples/cursor-ime/cursor-ime.tsx).
2487
+
2488
+ ###### x
2489
+
2490
+ Type: `number`
2491
+
2492
+ Column position (0-based).
2493
+
2494
+ ###### y
2495
+
2496
+ Type: `number`
2497
+
2498
+ Row position from the top of the Ink output (0 = first line).
2499
+
2500
+ ### useIsScreenReaderEnabled()
2501
+
2502
+ A React hook that returns whether a screen reader is enabled.
2503
+ This is useful when you want to render different output for screen readers.
2504
+
2505
+ ```jsx
2506
+ import {useIsScreenReaderEnabled, Text} from 'ink';
2507
+
2508
+ const Example = () => {
2509
+ const isScreenReaderEnabled = useIsScreenReaderEnabled();
2510
+
2511
+ return (
2512
+ <Text>
2513
+ {isScreenReaderEnabled
2514
+ ? 'Screen reader is enabled'
2515
+ : 'Screen reader is disabled'}
2516
+ </Text>
2517
+ );
2518
+ };
2519
+ ```
2520
+
2521
+ ### useAnimation(options?)
2522
+
2523
+ A React hook that drives animations. Returns a frame counter, elapsed time, frame delta, and a reset function. All animations share a single timer internally, so multiple animated components consolidate into one render cycle.
2524
+
2525
+ ```jsx
2526
+ import {Text, useAnimation} from 'ink';
2527
+
2528
+ const Spinner = () => {
2529
+ const {frame} = useAnimation({interval: 80});
2530
+ const characters = ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'];
2531
+
2532
+ return <Text>{characters[frame % characters.length]}</Text>;
2533
+ };
2534
+ ```
2535
+
2536
+ #### options
2537
+
2538
+ Type: `object`
2539
+
2540
+ ##### interval
2541
+
2542
+ Type: `number`\
2543
+ Default: `100`
2544
+
2545
+ Time between ticks in milliseconds.
2546
+
2547
+ ##### isActive
2548
+
2549
+ Type: `boolean`\
2550
+ Default: `true`
2551
+
2552
+ Whether the animation is running. When set to `false`, the animation stops. When toggled back to `true`, all values reset to `0`.
2553
+
2554
+ #### Return value
2555
+
2556
+ ##### frame
2557
+
2558
+ Type: `number`
2559
+
2560
+ Discrete counter that increments by 1 each interval. Useful for indexed sequences like spinner frames.
2561
+
2562
+ ##### time
2563
+
2564
+ Type: `number`
2565
+
2566
+ Total elapsed time in milliseconds since the animation started or was last reset. Useful for continuous math-based animations like sine waves: `Math.sin(time / 1000 * Math.PI * 2)`.
2567
+
2568
+ ##### delta
2569
+
2570
+ Type: `number`
2571
+
2572
+ Time in milliseconds since the previous rendered tick. Accounts for throttled renders. Useful for physics-based or velocity-driven motion: `position += speed * delta`.
2573
+
2574
+ ##### reset
2575
+
2576
+ Type: `() => void`
2577
+
2578
+ Resets `frame`, `time`, and `delta` to `0` and restarts timing from the current moment. Useful for one-shot animations triggered by events.
2579
+
2580
+ ## API
2581
+
2582
+ #### render(tree, options?)
2583
+
2584
+ Returns: [`Instance`](#instance)
2585
+
2586
+ Mount a component and render the output.
2587
+
2588
+ ##### tree
2589
+
2590
+ Type: `ReactNode`
2591
+
2592
+ ##### options
2593
+
2594
+ Type: `object`
2595
+
2596
+ ###### stdout
2597
+
2598
+ Type: `stream.Writable`\
2599
+ Default: `process.stdout`
2600
+
2601
+ Output stream where the app will be rendered.
2602
+
2603
+ ###### stdin
2604
+
2605
+ Type: `stream.Readable`\
2606
+ Default: `process.stdin`
2607
+
2608
+ Input stream where app will listen for input.
2609
+
2610
+ ###### stderr
2611
+
2612
+ Type: `stream.Writable`\
2613
+ Default: `process.stderr`
2614
+
2615
+ Error stream.
2616
+
2617
+ ###### exitOnCtrlC
2618
+
2619
+ Type: `boolean`\
2620
+ Default: `true`
2621
+
2622
+ Configure whether Ink should listen for Ctrl+C keyboard input and exit the app.
2623
+ This is needed in case `process.stdin` is in [raw mode](https://nodejs.org/api/tty.html#tty_readstream_setrawmode_mode), because then Ctrl+C is ignored by default and the process is expected to handle it manually.
2624
+
2625
+ ###### patchConsole
2626
+
2627
+ Type: `boolean`\
2628
+ Default: `true`
2629
+
2630
+ Patch console methods to ensure console output doesn't mix with Ink's output.
2631
+ When any of the `console.*` methods are called (like `console.log()`), Ink intercepts their output, clears the main output, renders output from the console method, and then rerenders the main output again.
2632
+ That way, both are visible and don't overlap each other.
2633
+
2634
+ Once unmount starts, Ink restores the native console before React cleanup runs. Teardown-time `console.*` output then follows the normal console behavior instead of being rerouted through Ink.
2635
+
2636
+ This functionality is powered by [patch-console](https://github.com/vadimdemedes/patch-console), so if you need to disable Ink's interception of output but want to build something custom, you can use that.
2637
+
2638
+ ###### onRender
2639
+
2640
+ Type: `({renderTime: number}) => void`\
2641
+ Default: `undefined`
2642
+
2643
+ Runs the given callback after each render and re-render with render metrics.
2644
+ This callback runs after Ink commits a frame, but it does not wait for `stdout`/`stderr` stream callbacks.
2645
+ To run code after output is flushed, use [`waitUntilRenderFlush()`](#waituntilrenderflush).
2646
+
2647
+ ###### isScreenReaderEnabled
2648
+
2649
+ Type: `boolean`\
2650
+ Default: `process.env['INK_SCREEN_READER'] === 'true'`
2651
+
2652
+ Enable screen reader support. See [Screen Reader Support](#screen-reader-support).
2653
+
2654
+ ###### debug
2655
+
2656
+ Type: `boolean`\
2657
+ Default: `false`
2658
+
2659
+ If `true`, each update will be rendered as separate output, without replacing the previous one.
2660
+
2661
+ ###### maxFps
2662
+
2663
+ Type: `number`\
2664
+ Default: `30`
2665
+
2666
+ Maximum frames per second for render updates.
2667
+ This controls how frequently the UI can update to prevent excessive re-rendering.
2668
+ Higher values allow more frequent updates but may impact performance.
2669
+ Setting it to a lower value may be useful for components that update very frequently, to reduce CPU usage.
2670
+
2671
+ ###### incrementalRendering
2672
+
2673
+ Type: `boolean`\
2674
+ Default: `false`
2675
+
2676
+ Enable incremental rendering mode which only updates changed lines instead of redrawing the entire output.
2677
+ This can reduce flickering and improve performance for frequently updating UIs.
2678
+
2679
+ ###### concurrent
2680
+
2681
+ Type: `boolean`\
2682
+ Default: `false`
2683
+
2684
+ Enable React Concurrent Rendering mode.
2685
+
2686
+ When enabled:
2687
+
2688
+ - Suspense boundaries work correctly with async data fetching
2689
+ - `useTransition` and `useDeferredValue` hooks are fully functional
2690
+ - Updates can be interrupted for higher priority work
2691
+
2692
+ ```jsx
2693
+ render(<MyApp />, {concurrent: true});
2694
+ ```
2695
+
2696
+ > [!NOTE]
2697
+ > Concurrent mode changes the timing of renders. Some tests may need to use `act()` to properly await updates. Reusing the same stdout across multiple `render()` calls without unmounting is unsupported. Call `unmount()` first if you need to change the rendering mode or create a fresh instance.
2698
+
2699
+ ###### interactive
2700
+
2701
+ Type: `boolean`\
2702
+ Default: `true` (`false` if in CI (detected via [`is-in-ci`](https://github.com/sindresorhus/is-in-ci)) or `stdout.isTTY` is falsy)
2703
+
2704
+ Override automatic interactive mode detection.
2705
+
2706
+ By default, Ink detects whether the environment is interactive based on CI detection and `stdout.isTTY`. When non-interactive, Ink skips terminal-specific features like ANSI erase sequences, cursor manipulation, synchronized output, resize handling, and kitty keyboard auto-detection. Only the final frame of non-static output is written at unmount.
2707
+
2708
+ Most users should not need to set this option. Use it when you have your own "interactive" detection logic that differs from the built-in behavior.
2709
+
2710
+ > [!NOTE]
2711
+ > Reusing the same stdout across multiple `render()` calls without unmounting is unsupported. Call `unmount()` first if you need to change this option or create a fresh instance.
2712
+
2713
+ ```jsx
2714
+ // Use your own detection logic
2715
+ const isInteractive = myCustomDetection();
2716
+ render(<MyApp />, {interactive: isInteractive});
2717
+ ```
2718
+
2719
+ ###### alternateScreen
2720
+
2721
+ Type: `boolean`\
2722
+ Default: `false`
2723
+
2724
+ Render the app in the terminal's alternate screen buffer. When enabled, the app renders on a separate screen, and the original terminal content is restored when the app exits. This is the same mechanism used by programs like vim, htop, and less.
2725
+
2726
+ Note: The terminal's scrollback buffer is not available while in the alternate screen. This is standard terminal behavior; programs like vim use the alternate screen specifically to avoid polluting the user's scrollback history.
2727
+
2728
+ Ink intentionally treats alternate-screen teardown output as disposable. It does not preserve or replay teardown-time frames, hook writes, or `console.*` output after restoring the primary screen.
2729
+
2730
+ Only works in interactive mode. Ignored when `interactive` is `false` or in a non-interactive environment (CI, piped stdout).
2731
+
2732
+ > [!NOTE]
2733
+ > Reusing the same stdout across multiple `render()` calls without unmounting is unsupported. Call `unmount()` first if you need to change this option or create a fresh instance.
2734
+
2735
+ ```jsx
2736
+ render(<MyApp />, {alternateScreen: true});
2737
+ ```
2738
+
2739
+ ###### kittyKeyboard
2740
+
2741
+ Type: `object`\
2742
+ Default: `undefined`
2743
+
2744
+ Enable the [kitty keyboard protocol](https://sw.kovidgoyal.net/kitty/keyboard-protocol/) for enhanced keyboard input handling. When enabled, terminals that support the protocol will report additional key information including `super`, `hyper`, `capsLock`, `numLock` modifiers and `eventType` (press/repeat/release).
2745
+
2746
+ ```jsx
2747
+ import {render} from 'ink';
2748
+
2749
+ render(<MyApp />, {kittyKeyboard: {mode: 'auto'}});
2750
+ ```
2751
+
2752
+ ```jsx
2753
+ import {render} from 'ink';
2754
+
2755
+ render(<MyApp />, {
2756
+ kittyKeyboard: {
2757
+ mode: 'enabled',
2758
+ flags: ['disambiguateEscapeCodes', 'reportEventTypes'],
2759
+ },
2760
+ });
2761
+ ```
2762
+
2763
+ **kittyKeyboard.mode**
2764
+
2765
+ Type: `'auto' | 'enabled' | 'disabled'`\
2766
+ Default: `'auto'`
2767
+
2768
+ - `'auto'`: Detect terminal support using a heuristic precheck (known terminals like kitty, WezTerm, Ghostty) followed by a protocol query confirmation (`CSI ? u`). The protocol is only enabled if the terminal responds to the query within a short timeout.
2769
+ - `'enabled'`: Force enable the protocol. Both stdin and stdout must be TTYs.
2770
+ - `'disabled'`: Never enable the protocol.
2771
+
2772
+ **kittyKeyboard.flags**
2773
+
2774
+ Type: `string[]`\
2775
+ Default: `['disambiguateEscapeCodes']`
2776
+
2777
+ Protocol flags to request from the terminal. Pass an array of flag name strings.
2778
+
2779
+ Available flags:
2780
+
2781
+ - `'disambiguateEscapeCodes'` - Disambiguate escape codes
2782
+ - `'reportEventTypes'` - Report key press, repeat, and release events
2783
+ - `'reportAlternateKeys'` - Report alternate key encodings
2784
+ - `'reportAllKeysAsEscapeCodes'` - Report all keys as escape codes
2785
+ - `'reportAssociatedText'` - Report associated text with key events
2786
+
2787
+ **Behavior notes**
2788
+
2789
+ When the kitty keyboard protocol is enabled, input handling changes in several ways:
2790
+
2791
+ - **Non-printable keys produce empty input.** Keys like function keys (F1-F35), modifier-only keys (Shift, Control, Super), media keys, Caps Lock, Print Screen, and similar keys will not produce any text in the `input` parameter of `useInput`. They can still be detected via the `key` object properties.
2792
+ - **Ctrl+letter shortcuts work as expected.** When the terminal sends `Ctrl+letter` as codepoint 1-26 (the kitty CSI-u alternate form), `input` is set to the letter name (e.g. `'c'` for `Ctrl+C`) and `key.ctrl` is `true`. This ensures `exitOnCtrlC` and custom `Ctrl+letter` handlers continue to work regardless of which codepoint form the terminal uses.
2793
+ - **Key disambiguation.** The protocol allows the terminal to distinguish between keys that normally produce the same escape sequence. For example:
2794
+ - `Ctrl+I` vs `Tab` - without the protocol, both produce the same byte (`\x09`). With the protocol, they are reported as distinct keys.
2795
+ - `Shift+Enter` vs `Enter` - the shift modifier is correctly reported.
2796
+ - `Escape` key vs `Ctrl+[` - these are disambiguated.
2797
+ - **Event types.** With the `reportEventTypes` flag, key press, repeat, and release events are distinguished via `key.eventType`.
2798
+
2799
+ #### renderToString(tree, options?)
2800
+
2801
+ Returns: `string`
2802
+
2803
+ Render a React element to a string synchronously. Unlike `render()`, this function does not write to stdout, does not set up any terminal event listeners, and returns the rendered output as a string.
2804
+
2805
+ Useful for generating documentation, writing output to files, testing, or any scenario where you need the rendered output as a string without starting a persistent terminal application.
2806
+
2807
+ ```jsx
2808
+ import {renderToString, Text, Box} from 'ink';
2809
+
2810
+ const output = renderToString(
2811
+ <Box padding={1}>
2812
+ <Text color="green">Hello World</Text>
2813
+ </Box>,
2814
+ );
2815
+
2816
+ console.log(output);
2817
+ ```
2818
+
2819
+ **Notes:**
2820
+
2821
+ - Terminal-specific hooks (`useInput`, `useStdin`, `useStdout`, `useStderr`, `useWindowSize`, `useApp`, `useFocus`, `useFocusManager`) return default no-op values since there is no terminal session. They will not throw, but they will not function as in a live terminal.
2822
+ - `useEffect` callbacks will execute during rendering (due to synchronous rendering mode), but state updates they trigger will not affect the returned output, which reflects the initial render.
2823
+ - `useLayoutEffect` callbacks fire synchronously during commit, so state updates they trigger **will** be reflected in the output.
2824
+ - The `<Static>` component is supported — its output is prepended to the dynamic output.
2825
+ - If a component throws during rendering, the error is propagated to the caller after cleanup.
2826
+
2827
+ ##### tree
2828
+
2829
+ Type: `ReactNode`
2830
+
2831
+ ##### options
2832
+
2833
+ Type: `object`
2834
+
2835
+ ###### columns
2836
+
2837
+ Type: `number`\
2838
+ Default: `80`
2839
+
2840
+ Width of the virtual terminal in columns. Controls where text wrapping occurs.
2841
+
2842
+ ```jsx
2843
+ const output = renderToString(<Text>{'A'.repeat(100)}</Text>, {
2844
+ columns: 40,
2845
+ });
2846
+ // Text wraps at 40 columns
2847
+ ```
2848
+
2849
+ #### Instance
2850
+
2851
+ This is the object that `render()` returns.
2852
+
2853
+ ##### rerender(tree)
2854
+
2855
+ Replace the previous root node with a new one or update the props of the current root node.
2856
+
2857
+ ###### tree
2858
+
2859
+ Type: `ReactNode`
2860
+
2861
+ ```jsx
2862
+ // Update props of the root node
2863
+ const {rerender} = render(<Counter count={1} />);
2864
+ rerender(<Counter count={2} />);
2865
+
2866
+ // Replace root node
2867
+ const {rerender} = render(<OldCounter />);
2868
+ rerender(<NewCounter />);
2869
+ ```
2870
+
2871
+ ##### unmount()
2872
+
2873
+ Manually unmount the whole Ink app.
2874
+
2875
+ ```jsx
2876
+ const {unmount} = render(<MyApp />);
2877
+ unmount();
2878
+ ```
2879
+
2880
+ ##### waitUntilExit()
2881
+
2882
+ Returns a promise that settles when the app is unmounted.
2883
+
2884
+ It resolves with the value passed to `exit(value)` and rejects with the error passed to `exit(error)`.
2885
+ When `unmount()` is called manually, it settles after unmount-related stdout writes complete.
2886
+
2887
+ ```jsx
2888
+ const {unmount, waitUntilExit} = render(<MyApp />);
2889
+
2890
+ setTimeout(unmount, 1000);
2891
+
2892
+ await waitUntilExit(); // resolves after `unmount()` is called
2893
+ ```
2894
+
2895
+ ##### waitUntilRenderFlush()
2896
+
2897
+ Returns a promise that settles after pending render output is flushed to stdout.
2898
+
2899
+ Useful when you need to run code only after a frame is written:
2900
+
2901
+ ```jsx
2902
+ const {rerender, waitUntilRenderFlush} = render(<MyApp step="loading" />);
2903
+
2904
+ rerender(<MyApp step="ready" />);
2905
+ await waitUntilRenderFlush(); // output for "ready" is flushed
2906
+
2907
+ runNextCommand();
2908
+ ```
2909
+
2910
+ ##### cleanup()
2911
+
2912
+ Unmount the current app and delete the internal Ink instance associated with the current `stdout`.
2913
+ This is mostly useful for advanced cases (for example, tests) where you need `render()` to create a fresh instance for the same stream.
2914
+ Unlike deleting the internal instance directly, this also tears down terminal state such as the alternate screen.
2915
+
2916
+ ##### clear()
2917
+
2918
+ Clear output.
2919
+
2920
+ ```jsx
2921
+ const {clear} = render(<MyApp />);
2922
+ clear();
2923
+ ```
2924
+
2925
+ #### measureElement(ref)
2926
+
2927
+ Measure the dimensions of a particular `<Box>` element.
2928
+ Returns an object with `width` and `height` properties.
2929
+ This function is useful when your component needs to know the amount of available space it has. You can use it when you need to change the layout based on the length of its content.
2930
+
2931
+ > [!NOTE]
2932
+ > `measureElement()` returns `{width: 0, height: 0}` when called during render (before layout is calculated). Call it from post-render code, such as `useEffect`, `useLayoutEffect`, input handlers, or timer callbacks. When content changes, pass the relevant dependency to your effect so it re-measures after each update.
2933
+
2934
+ ##### ref
2935
+
2936
+ Type: `MutableRef`
2937
+
2938
+ A reference to a `<Box>` element captured with the `ref` property.
2939
+ See [Refs](https://reactjs.org/docs/refs-and-the-dom.html) for more information on how to capture references.
2940
+
2941
+ ```jsx
2942
+ import {render, measureElement, Box, Text} from 'ink';
2943
+
2944
+ const Example = () => {
2945
+ const ref = useRef();
2946
+
2947
+ useEffect(() => {
2948
+ const {width, height} = measureElement(ref.current);
2949
+ // width = 100, height = 1
2950
+ }, []);
2951
+
2952
+ return (
2953
+ <Box width={100}>
2954
+ <Box ref={ref}>
2955
+ <Text>This box will stretch to 100 width</Text>
2956
+ </Box>
2957
+ </Box>
2958
+ );
2959
+ };
2960
+
2961
+ render(<Example />);
2962
+ ```
2963
+
2964
+ ## Testing
2965
+
2966
+ Ink components are simple to test with [ink-testing-library](https://github.com/vadimdemedes/ink-testing-library).
2967
+ Here's a simple example that checks how the component is rendered:
2968
+
2969
+ ```jsx
2970
+ import React from 'react';
2971
+ import {Text} from 'ink';
2972
+ import {render} from 'ink-testing-library';
2973
+
2974
+ const Test = () => <Text>Hello World</Text>;
2975
+ const {lastFrame} = render(<Test />);
2976
+
2977
+ lastFrame() === 'Hello World'; //=> true
2978
+ ```
2979
+
2980
+ Check out [ink-testing-library](https://github.com/vadimdemedes/ink-testing-library) for more examples and full documentation.
2981
+
2982
+ ## Using React Devtools
2983
+
2984
+ ![](media/devtools.jpg)
2985
+
2986
+ Ink supports [React Devtools](https://github.com/facebook/react/tree/master/packages/react-devtools) out of the box. To enable integration with React Devtools in your Ink-based CLI, first ensure you have installed the optional `react-devtools-core` dependency, and then run your app with the `DEV=true` environment variable:
2987
+
2988
+ ```sh
2989
+ DEV=true my-cli
2990
+ ```
2991
+
2992
+ Then, start React Devtools itself:
2993
+
2994
+ ```sh
2995
+ npx react-devtools
2996
+ ```
2997
+
2998
+ After it starts, you should see the component tree of your CLI.
2999
+ You can even inspect and change the props of components, and see the results immediately in the CLI, without restarting it.
3000
+
3001
+ > [!NOTE]
3002
+ > You must manually quit your CLI via <kbd>Ctrl</kbd>+<kbd>C</kbd> after you're done testing.
3003
+
3004
+ ## Screen Reader Support
3005
+
3006
+ Ink has basic support for screen readers.
3007
+
3008
+ To enable it, you can either pass the `isScreenReaderEnabled` option to the `render` function or set the `INK_SCREEN_READER` environment variable to `true`.
3009
+
3010
+ Ink implements a small subset of functionality from the [ARIA specification](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA).
3011
+
3012
+ ```jsx
3013
+ render(<MyApp />, {isScreenReaderEnabled: true});
3014
+ ```
3015
+
3016
+ When screen reader support is enabled, Ink will try its best to generate a screen-reader-friendly output.
3017
+
3018
+ For example, for this code:
3019
+
3020
+ ```jsx
3021
+ <Box aria-role="checkbox" aria-state={{checked: true}}>
3022
+ <Text>Accept terms and conditions</Text>
3023
+ </Box>
3024
+ ```
3025
+
3026
+ Ink will generate the following output for screen readers:
3027
+
3028
+ ```
3029
+ (checked) checkbox: Accept terms and conditions
3030
+ ```
3031
+
3032
+ You can also provide a custom label for screen readers if you want to render something different for them.
3033
+
3034
+ For example, if you are building a progress bar, you can use `aria-label` to provide a more descriptive label for screen readers.
3035
+
3036
+ ```jsx
3037
+ <Box>
3038
+ <Box width="50%" height={1} backgroundColor="green" />
3039
+ <Text aria-label="Progress: 50%">50%</Text>
3040
+ </Box>
3041
+ ```
3042
+
3043
+ In the example above, the screen reader will read "Progress: 50%" instead of "50%".
3044
+
3045
+ ### `aria-label`
3046
+
3047
+ Type: `string`
3048
+
3049
+ A label for the element for screen readers.
3050
+
3051
+ ### `aria-hidden`
3052
+
3053
+ Type: `boolean`\
3054
+ Default: `false`
3055
+
3056
+ Hide the element from screen readers.
3057
+
3058
+ ### `aria-role`
3059
+
3060
+ Type: `string`
3061
+
3062
+ The role of the element.
3063
+
3064
+ Supported values:
3065
+
3066
+ - `button`
3067
+ - `checkbox`
3068
+ - `combobox`
3069
+ - `list`
3070
+ - `listbox`
3071
+ - `listitem`
3072
+ - `menu`
3073
+ - `menuitem`
3074
+ - `option`
3075
+ - `progressbar`
3076
+ - `radio`
3077
+ - `radiogroup`
3078
+ - `tab`
3079
+ - `tablist`
3080
+ - `table`
3081
+ - `textbox`
3082
+ - `timer`
3083
+ - `toolbar`
3084
+
3085
+ ### `aria-state`
3086
+
3087
+ Type: `object`
3088
+
3089
+ The state of the element.
3090
+
3091
+ Supported values:
3092
+
3093
+ - `busy` (boolean)
3094
+ - `checked` (boolean)
3095
+ - `disabled` (boolean)
3096
+ - `expanded` (boolean)
3097
+ - `multiline` (boolean)
3098
+ - `multiselectable` (boolean)
3099
+ - `readonly` (boolean)
3100
+ - `required` (boolean)
3101
+ - `selected` (boolean)
3102
+
3103
+ ## Creating Components
3104
+
3105
+ When building custom components, it's important to keep accessibility in mind. While Ink provides the building blocks, ensuring your components are accessible will make your CLIs usable by a wider audience.
3106
+
3107
+ ### General Principles
3108
+
3109
+ - **Provide screen reader-friendly output:** Use the `useIsScreenReaderEnabled` hook to detect if a screen reader is active. You can then render more descriptive output for screen reader users.
3110
+ - **Leverage ARIA props:** For components that have a specific role (e.g., a checkbox or button), use the `aria-role`, `aria-state`, and `aria-label` props on `<Box>` and `<Text>` to provide semantic meaning to screen readers.
3111
+
3112
+ For a practical example of building an accessible component, see the [ARIA example](/examples/aria/aria.tsx).
3113
+
3114
+ ## Useful Components
3115
+
3116
+ - [ink-text-input](https://github.com/vadimdemedes/ink-text-input) - Text input.
3117
+ - [ink-spinner](https://github.com/vadimdemedes/ink-spinner) - Spinner.
3118
+ - [ink-select-input](https://github.com/vadimdemedes/ink-select-input) - Select (dropdown) input.
3119
+ - [ink-link](https://github.com/sindresorhus/ink-link) - Link.
3120
+ - [ink-gradient](https://github.com/sindresorhus/ink-gradient) - Gradient color.
3121
+ - [ink-big-text](https://github.com/sindresorhus/ink-big-text) - Awesome text.
3122
+ - [ink-picture](https://github.com/endernoke/ink-picture) - Display images.
3123
+ - [ink-tab](https://github.com/jdeniau/ink-tab) - Tab.
3124
+ - [ink-color-pipe](https://github.com/LitoMore/ink-color-pipe) - Create color text with simpler style strings.
3125
+ - [ink-multi-select](https://github.com/karaggeorge/ink-multi-select) - Select one or more values from a list
3126
+ - [ink-divider](https://github.com/JureSotosek/ink-divider) - A divider.
3127
+ - [ink-progress-bar](https://github.com/brigand/ink-progress-bar) - Progress bar.
3128
+ - [ink-table](https://github.com/maticzav/ink-table) - Table.
3129
+ - [ink-ascii](https://github.com/hexrcs/ink-ascii) - Awesome text component with more font choices, based on Figlet.
3130
+ - [ink-markdown](https://github.com/cameronhunter/ink-markdown) - Render syntax highlighted Markdown.
3131
+ - [ink-quicksearch-input](https://github.com/Eximchain/ink-quicksearch-input) - Select component with fast, quicksearch-like navigation.
3132
+ - [ink-confirm-input](https://github.com/kevva/ink-confirm-input) - Yes/No confirmation input.
3133
+ - [ink-syntax-highlight](https://github.com/vsashyn/ink-syntax-highlight) - Code syntax highlighting.
3134
+ - [ink-form](https://github.com/lukasbach/ink-form) - Form.
3135
+ - [ink-task-list](https://github.com/privatenumber/ink-task-list) - Task list.
3136
+ - [ink-spawn](https://github.com/kraenhansen/ink-spawn) - Spawn child processes.
3137
+ - [ink-titled-box](https://github.com/mishieck/ink-titled-box) - Box with a title.
3138
+ - [ink-chart](https://github.com/pppp606/ink-chart) - Sparkline and bar chart.
3139
+ - [ink-scroll-view](https://github.com/ByteLandTechnology/ink-scroll-view) - Scroll container.
3140
+ - [ink-scroll-list](https://github.com/ByteLandTechnology/ink-scroll-list) - Scrollable list.
3141
+ - [ink-stepper](https://github.com/archcorsair/ink-stepper) - Step-by-step wizard.
3142
+ - [ink-virtual-list](https://github.com/archcorsair/ink-virtual-list) - Virtualized list that renders only visible items for performance.
3143
+ - [ink-color-picker](https://github.com/sina-byn/ink-color-picker) - Color picker.
3144
+
3145
+ ## Useful Hooks
3146
+
3147
+ - [ink-use-stdout-dimensions](https://github.com/cameronhunter/ink-monorepo/tree/master/packages/ink-use-stdout-dimensions) - Subscribe to stdout dimensions.
3148
+
3149
+ ## Recipes
3150
+
3151
+ - [Routing with React Router](recipes/routing.md) - Navigate between routes using `MemoryRouter`.
3152
+
3153
+ ## Examples
3154
+
3155
+ The [`examples`](/examples) directory contains a set of real examples. You can run them with:
3156
+
3157
+ ```bash
3158
+ npm run example examples/[example name]
3159
+ # e.g. npm run example examples/borders
3160
+ ```
3161
+
3162
+ - [Jest](examples/jest/jest.tsx) - Implementation of basic Jest UI.
3163
+ - [Counter](examples/counter/counter.tsx) - A simple counter that increments every 100ms.
3164
+ - [Form with validation](https://github.com/final-form/rff-cli-example) - Manage form state using [Final Form](https://github.com/final-form/final-form#-final-form).
3165
+ - [Borders](examples/borders/borders.tsx) - Add borders to the `<Box>` component.
3166
+ - [Suspense](examples/suspense/suspense.tsx) - Use React Suspense.
3167
+ - [Table](examples/table/table.tsx) - Renders a table with multiple columns and rows.
3168
+ - [Focus management](examples/use-focus/use-focus.tsx) - Use the `useFocus` hook to manage focus between components.
3169
+ - [User input](examples/use-input/use-input.tsx) - Listen for user input.
3170
+ - [Write to stdout](examples/use-stdout/use-stdout.tsx) - Write to stdout, bypassing main Ink output.
3171
+ - [Write to stderr](examples/use-stderr/use-stderr.tsx) - Write to stderr, bypassing main Ink output.
3172
+ - [Static](examples/static/static.tsx) - Use the `<Static>` component to render permanent output.
3173
+ - [Child process](examples/subprocess-output) - Renders output from a child process.
3174
+ - [Router](examples/router/router.tsx) - Navigate between routes using React Router's `MemoryRouter`.
3175
+
3176
+ ## Continuous Integration
3177
+
3178
+ When running on CI (detected via the `CI` environment variable), Ink adapts its rendering:
3179
+
3180
+ - Only the last frame is rendered on exit, instead of continuously updating the terminal. This is because most CI environments don't support the ANSI escape sequences used to overwrite previous output.
3181
+ - Terminal resize events are not listened to.
3182
+
3183
+ If your CI environment supports full terminal rendering and you want to opt out of this behavior, set `CI=false`:
3184
+
3185
+ ```sh
3186
+ CI=false node my-cli.js
3187
+ ```
3188
+
3189
+ ## Maintainers
3190
+
3191
+ - [Vadim Demedes](https://github.com/vadimdemedes)
3192
+ - [Sindre Sorhus](https://github.com/sindresorhus)