claude-code-tools 0.2.0__py3-none-any.whl → 1.4.1__py3-none-any.whl

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 (1805) hide show
  1. claude_code_tools/__init__.py +1 -1
  2. claude_code_tools/action_rpc.py +407 -0
  3. claude_code_tools/aichat.py +2460 -0
  4. claude_code_tools/claude_continue.py +299 -0
  5. claude_code_tools/codex_continue.py +309 -0
  6. claude_code_tools/config.py +93 -0
  7. claude_code_tools/delete_session.py +194 -0
  8. claude_code_tools/export_all.py +342 -0
  9. claude_code_tools/export_claude_session.py +481 -0
  10. claude_code_tools/export_codex_session.py +466 -0
  11. claude_code_tools/export_session.py +577 -0
  12. claude_code_tools/find_claude_session.py +1280 -118
  13. claude_code_tools/find_codex_session.py +946 -79
  14. claude_code_tools/find_original_session.py +134 -0
  15. claude_code_tools/find_session.py +1088 -0
  16. claude_code_tools/find_trimmed_sessions.py +259 -0
  17. claude_code_tools/gdoc2md.py +220 -0
  18. claude_code_tools/md2gdoc.py +549 -0
  19. claude_code_tools/node_menu_ui.py +406 -0
  20. claude_code_tools/search_index.py +1321 -0
  21. claude_code_tools/session_lineage.py +260 -0
  22. claude_code_tools/session_menu.py +187 -0
  23. claude_code_tools/session_menu_cli.py +448 -0
  24. claude_code_tools/session_utils.py +1313 -0
  25. claude_code_tools/smart_trim.py +424 -0
  26. claude_code_tools/smart_trim_core.py +616 -0
  27. claude_code_tools/tmux_cli_controller.py +55 -36
  28. claude_code_tools/trim_session.py +817 -0
  29. claude_code_tools/trim_session_claude.py +319 -0
  30. claude_code_tools/trim_session_codex.py +344 -0
  31. claude_code_tools-1.4.1.dist-info/METADATA +1113 -0
  32. claude_code_tools-1.4.1.dist-info/RECORD +1813 -0
  33. {claude_code_tools-0.2.0.dist-info → claude_code_tools-1.4.1.dist-info}/WHEEL +1 -1
  34. {claude_code_tools-0.2.0.dist-info → claude_code_tools-1.4.1.dist-info}/entry_points.txt +3 -2
  35. docs/lmsh.md +27 -5
  36. docs/local-llm-setup.md +286 -0
  37. docs/reddit-aichat-resume-v2.md +80 -0
  38. docs/reddit-aichat-resume.md +29 -0
  39. docs/reddit-aichat.md +79 -0
  40. docs/rollover-details.md +67 -0
  41. node_ui/action_config.js +72 -0
  42. node_ui/menu.js +2321 -0
  43. node_ui/node_modules/.bin/is-in-ci +5 -0
  44. node_ui/node_modules/.bin/loose-envify +16 -0
  45. node_ui/node_modules/.package-lock.json +714 -0
  46. node_ui/node_modules/@alcalzone/ansi-tokenize/README.md +248 -0
  47. node_ui/node_modules/@alcalzone/ansi-tokenize/build/ansiCodes.d.ts +11 -0
  48. node_ui/node_modules/@alcalzone/ansi-tokenize/build/ansiCodes.js +41 -0
  49. node_ui/node_modules/@alcalzone/ansi-tokenize/build/ansiCodes.js.map +1 -0
  50. node_ui/node_modules/@alcalzone/ansi-tokenize/build/diff.d.ts +6 -0
  51. node_ui/node_modules/@alcalzone/ansi-tokenize/build/diff.js +17 -0
  52. node_ui/node_modules/@alcalzone/ansi-tokenize/build/diff.js.map +1 -0
  53. node_ui/node_modules/@alcalzone/ansi-tokenize/build/index.d.ts +6 -0
  54. node_ui/node_modules/@alcalzone/ansi-tokenize/build/index.js +7 -0
  55. node_ui/node_modules/@alcalzone/ansi-tokenize/build/index.js.map +1 -0
  56. node_ui/node_modules/@alcalzone/ansi-tokenize/build/reduce.d.ts +5 -0
  57. node_ui/node_modules/@alcalzone/ansi-tokenize/build/reduce.js +27 -0
  58. node_ui/node_modules/@alcalzone/ansi-tokenize/build/reduce.js.map +1 -0
  59. node_ui/node_modules/@alcalzone/ansi-tokenize/build/styledChars.d.ts +6 -0
  60. node_ui/node_modules/@alcalzone/ansi-tokenize/build/styledChars.js +38 -0
  61. node_ui/node_modules/@alcalzone/ansi-tokenize/build/styledChars.js.map +1 -0
  62. node_ui/node_modules/@alcalzone/ansi-tokenize/build/tokenize.d.ts +12 -0
  63. node_ui/node_modules/@alcalzone/ansi-tokenize/build/tokenize.js +70 -0
  64. node_ui/node_modules/@alcalzone/ansi-tokenize/build/tokenize.js.map +1 -0
  65. node_ui/node_modules/@alcalzone/ansi-tokenize/build/undo.d.ts +3 -0
  66. node_ui/node_modules/@alcalzone/ansi-tokenize/build/undo.js +11 -0
  67. node_ui/node_modules/@alcalzone/ansi-tokenize/build/undo.js.map +1 -0
  68. node_ui/node_modules/@alcalzone/ansi-tokenize/package.json +63 -0
  69. node_ui/node_modules/ansi-escapes/base.d.ts +292 -0
  70. node_ui/node_modules/ansi-escapes/base.js +198 -0
  71. node_ui/node_modules/ansi-escapes/index.d.ts +2 -0
  72. node_ui/node_modules/ansi-escapes/index.js +2 -0
  73. node_ui/node_modules/ansi-escapes/license +9 -0
  74. node_ui/node_modules/ansi-escapes/package.json +70 -0
  75. node_ui/node_modules/ansi-escapes/readme.md +284 -0
  76. node_ui/node_modules/ansi-regex/index.d.ts +33 -0
  77. node_ui/node_modules/ansi-regex/index.js +14 -0
  78. node_ui/node_modules/ansi-regex/license +9 -0
  79. node_ui/node_modules/ansi-regex/package.json +61 -0
  80. node_ui/node_modules/ansi-regex/readme.md +66 -0
  81. node_ui/node_modules/ansi-styles/index.d.ts +236 -0
  82. node_ui/node_modules/ansi-styles/index.js +223 -0
  83. node_ui/node_modules/ansi-styles/license +9 -0
  84. node_ui/node_modules/ansi-styles/package.json +54 -0
  85. node_ui/node_modules/ansi-styles/readme.md +173 -0
  86. node_ui/node_modules/auto-bind/index.d.ts +50 -0
  87. node_ui/node_modules/auto-bind/index.js +41 -0
  88. node_ui/node_modules/auto-bind/license +9 -0
  89. node_ui/node_modules/auto-bind/package.json +51 -0
  90. node_ui/node_modules/auto-bind/react.d.ts +26 -0
  91. node_ui/node_modules/auto-bind/react.js +28 -0
  92. node_ui/node_modules/auto-bind/readme.md +92 -0
  93. node_ui/node_modules/chalk/license +9 -0
  94. node_ui/node_modules/chalk/package.json +83 -0
  95. node_ui/node_modules/chalk/readme.md +325 -0
  96. node_ui/node_modules/chalk/source/index.d.ts +320 -0
  97. node_ui/node_modules/chalk/source/index.js +225 -0
  98. node_ui/node_modules/chalk/source/utilities.js +33 -0
  99. node_ui/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
  100. node_ui/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
  101. node_ui/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
  102. node_ui/node_modules/chalk/source/vendor/supports-color/browser.js +30 -0
  103. node_ui/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
  104. node_ui/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
  105. node_ui/node_modules/cli-boxes/boxes.json +82 -0
  106. node_ui/node_modules/cli-boxes/index.d.ts +127 -0
  107. node_ui/node_modules/cli-boxes/index.js +6 -0
  108. node_ui/node_modules/cli-boxes/license +9 -0
  109. node_ui/node_modules/cli-boxes/package.json +42 -0
  110. node_ui/node_modules/cli-boxes/readme.md +115 -0
  111. node_ui/node_modules/cli-cursor/index.d.ts +47 -0
  112. node_ui/node_modules/cli-cursor/index.js +39 -0
  113. node_ui/node_modules/cli-cursor/license +9 -0
  114. node_ui/node_modules/cli-cursor/package.json +49 -0
  115. node_ui/node_modules/cli-cursor/readme.md +51 -0
  116. node_ui/node_modules/cli-truncate/index.d.ts +116 -0
  117. node_ui/node_modules/cli-truncate/index.js +99 -0
  118. node_ui/node_modules/cli-truncate/license +9 -0
  119. node_ui/node_modules/cli-truncate/node_modules/slice-ansi/index.js +105 -0
  120. node_ui/node_modules/cli-truncate/node_modules/slice-ansi/license +10 -0
  121. node_ui/node_modules/cli-truncate/node_modules/slice-ansi/package.json +53 -0
  122. node_ui/node_modules/cli-truncate/node_modules/slice-ansi/readme.md +66 -0
  123. node_ui/node_modules/cli-truncate/package.json +51 -0
  124. node_ui/node_modules/cli-truncate/readme.md +150 -0
  125. node_ui/node_modules/code-excerpt/dist/index.d.ts +9 -0
  126. node_ui/node_modules/code-excerpt/dist/index.js +27 -0
  127. node_ui/node_modules/code-excerpt/license +21 -0
  128. node_ui/node_modules/code-excerpt/package.json +43 -0
  129. node_ui/node_modules/code-excerpt/readme.md +65 -0
  130. node_ui/node_modules/convert-to-spaces/dist/index.d.ts +2 -0
  131. node_ui/node_modules/convert-to-spaces/dist/index.js +4 -0
  132. node_ui/node_modules/convert-to-spaces/license +21 -0
  133. node_ui/node_modules/convert-to-spaces/package.json +40 -0
  134. node_ui/node_modules/convert-to-spaces/readme.md +39 -0
  135. node_ui/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  136. node_ui/node_modules/emoji-regex/README.md +107 -0
  137. node_ui/node_modules/emoji-regex/index.d.ts +3 -0
  138. node_ui/node_modules/emoji-regex/index.js +4 -0
  139. node_ui/node_modules/emoji-regex/index.mjs +4 -0
  140. node_ui/node_modules/emoji-regex/package.json +45 -0
  141. node_ui/node_modules/environment/index.d.ts +74 -0
  142. node_ui/node_modules/environment/index.js +47 -0
  143. node_ui/node_modules/environment/license +9 -0
  144. node_ui/node_modules/environment/package.json +74 -0
  145. node_ui/node_modules/environment/readme.md +94 -0
  146. node_ui/node_modules/escape-string-regexp/index.d.ts +16 -0
  147. node_ui/node_modules/escape-string-regexp/index.js +11 -0
  148. node_ui/node_modules/escape-string-regexp/license +9 -0
  149. node_ui/node_modules/escape-string-regexp/package.json +40 -0
  150. node_ui/node_modules/escape-string-regexp/readme.md +34 -0
  151. node_ui/node_modules/figures/index.d.ts +269 -0
  152. node_ui/node_modules/figures/index.js +322 -0
  153. node_ui/node_modules/figures/license +9 -0
  154. node_ui/node_modules/figures/package.json +46 -0
  155. node_ui/node_modules/figures/readme.md +328 -0
  156. node_ui/node_modules/get-east-asian-width/index.d.ts +60 -0
  157. node_ui/node_modules/get-east-asian-width/index.js +30 -0
  158. node_ui/node_modules/get-east-asian-width/license +9 -0
  159. node_ui/node_modules/get-east-asian-width/lookup.js +403 -0
  160. node_ui/node_modules/get-east-asian-width/package.json +70 -0
  161. node_ui/node_modules/get-east-asian-width/readme.md +65 -0
  162. node_ui/node_modules/indent-string/index.d.ts +38 -0
  163. node_ui/node_modules/indent-string/index.js +38 -0
  164. node_ui/node_modules/indent-string/license +9 -0
  165. node_ui/node_modules/indent-string/package.json +40 -0
  166. node_ui/node_modules/indent-string/readme.md +73 -0
  167. node_ui/node_modules/ink/build/apply-styles.js +175 -0
  168. node_ui/node_modules/ink/build/build-layout.js +77 -0
  169. node_ui/node_modules/ink/build/calculate-wrapped-text.js +53 -0
  170. node_ui/node_modules/ink/build/colorize.d.ts +3 -0
  171. node_ui/node_modules/ink/build/colorize.js +48 -0
  172. node_ui/node_modules/ink/build/colorize.js.map +1 -0
  173. node_ui/node_modules/ink/build/components/App.d.ts +61 -0
  174. node_ui/node_modules/ink/build/components/App.js +286 -0
  175. node_ui/node_modules/ink/build/components/App.js.map +1 -0
  176. node_ui/node_modules/ink/build/components/AppContext.d.ts +12 -0
  177. node_ui/node_modules/ink/build/components/AppContext.js +11 -0
  178. node_ui/node_modules/ink/build/components/AppContext.js.map +1 -0
  179. node_ui/node_modules/ink/build/components/Box.d.ts +62 -0
  180. node_ui/node_modules/ink/build/components/Box.js +20 -0
  181. node_ui/node_modules/ink/build/components/Box.js.map +1 -0
  182. node_ui/node_modules/ink/build/components/Color.js +62 -0
  183. node_ui/node_modules/ink/build/components/ErrorOverview.d.ts +6 -0
  184. node_ui/node_modules/ink/build/components/ErrorOverview.js +79 -0
  185. node_ui/node_modules/ink/build/components/ErrorOverview.js.map +1 -0
  186. node_ui/node_modules/ink/build/components/FocusContext.d.ts +17 -0
  187. node_ui/node_modules/ink/build/components/FocusContext.js +17 -0
  188. node_ui/node_modules/ink/build/components/FocusContext.js.map +1 -0
  189. node_ui/node_modules/ink/build/components/Newline.d.ts +13 -0
  190. node_ui/node_modules/ink/build/components/Newline.js +8 -0
  191. node_ui/node_modules/ink/build/components/Newline.js.map +1 -0
  192. node_ui/node_modules/ink/build/components/Spacer.d.ts +6 -0
  193. node_ui/node_modules/ink/build/components/Spacer.js +10 -0
  194. node_ui/node_modules/ink/build/components/Spacer.js.map +1 -0
  195. node_ui/node_modules/ink/build/components/Static.d.ts +31 -0
  196. node_ui/node_modules/ink/build/components/Static.js +33 -0
  197. node_ui/node_modules/ink/build/components/Static.js.map +1 -0
  198. node_ui/node_modules/ink/build/components/StderrContext.d.ts +19 -0
  199. node_ui/node_modules/ink/build/components/StderrContext.js +13 -0
  200. node_ui/node_modules/ink/build/components/StderrContext.js.map +1 -0
  201. node_ui/node_modules/ink/build/components/StdinContext.d.ts +26 -0
  202. node_ui/node_modules/ink/build/components/StdinContext.js +19 -0
  203. node_ui/node_modules/ink/build/components/StdinContext.js.map +1 -0
  204. node_ui/node_modules/ink/build/components/StdoutContext.d.ts +19 -0
  205. node_ui/node_modules/ink/build/components/StdoutContext.js +13 -0
  206. node_ui/node_modules/ink/build/components/StdoutContext.js.map +1 -0
  207. node_ui/node_modules/ink/build/components/Text.d.ts +49 -0
  208. node_ui/node_modules/ink/build/components/Text.js +40 -0
  209. node_ui/node_modules/ink/build/components/Text.js.map +1 -0
  210. node_ui/node_modules/ink/build/components/Transform.d.ts +15 -0
  211. node_ui/node_modules/ink/build/components/Transform.js +14 -0
  212. node_ui/node_modules/ink/build/components/Transform.js.map +1 -0
  213. node_ui/node_modules/ink/build/devtools-window-polyfill.d.ts +1 -0
  214. node_ui/node_modules/ink/build/devtools-window-polyfill.js +64 -0
  215. node_ui/node_modules/ink/build/devtools-window-polyfill.js.map +1 -0
  216. node_ui/node_modules/ink/build/devtools.d.ts +1 -0
  217. node_ui/node_modules/ink/build/devtools.js +9 -0
  218. node_ui/node_modules/ink/build/devtools.js.map +1 -0
  219. node_ui/node_modules/ink/build/dom.d.ts +42 -0
  220. node_ui/node_modules/ink/build/dom.js +117 -0
  221. node_ui/node_modules/ink/build/dom.js.map +1 -0
  222. node_ui/node_modules/ink/build/experimental/apply-style.js +140 -0
  223. node_ui/node_modules/ink/build/experimental/dom.js +123 -0
  224. node_ui/node_modules/ink/build/experimental/output.js +91 -0
  225. node_ui/node_modules/ink/build/experimental/reconciler.js +141 -0
  226. node_ui/node_modules/ink/build/experimental/renderer.js +81 -0
  227. node_ui/node_modules/ink/build/get-max-width.d.ts +3 -0
  228. node_ui/node_modules/ink/build/get-max-width.js +10 -0
  229. node_ui/node_modules/ink/build/get-max-width.js.map +1 -0
  230. node_ui/node_modules/ink/build/hooks/use-app.d.ts +5 -0
  231. node_ui/node_modules/ink/build/hooks/use-app.js +8 -0
  232. node_ui/node_modules/ink/build/hooks/use-app.js.map +1 -0
  233. node_ui/node_modules/ink/build/hooks/use-focus-manager.d.ts +34 -0
  234. node_ui/node_modules/ink/build/hooks/use-focus-manager.js +18 -0
  235. node_ui/node_modules/ink/build/hooks/use-focus-manager.js.map +1 -0
  236. node_ui/node_modules/ink/build/hooks/use-focus.d.ts +34 -0
  237. node_ui/node_modules/ink/build/hooks/use-focus.js +47 -0
  238. node_ui/node_modules/ink/build/hooks/use-focus.js.map +1 -0
  239. node_ui/node_modules/ink/build/hooks/use-input.d.ts +97 -0
  240. node_ui/node_modules/ink/build/hooks/use-input.js +96 -0
  241. node_ui/node_modules/ink/build/hooks/use-input.js.map +1 -0
  242. node_ui/node_modules/ink/build/hooks/use-stderr.d.ts +5 -0
  243. node_ui/node_modules/ink/build/hooks/use-stderr.js +8 -0
  244. node_ui/node_modules/ink/build/hooks/use-stderr.js.map +1 -0
  245. node_ui/node_modules/ink/build/hooks/use-stdin.d.ts +5 -0
  246. node_ui/node_modules/ink/build/hooks/use-stdin.js +8 -0
  247. node_ui/node_modules/ink/build/hooks/use-stdin.js.map +1 -0
  248. node_ui/node_modules/ink/build/hooks/use-stdout.d.ts +5 -0
  249. node_ui/node_modules/ink/build/hooks/use-stdout.js +8 -0
  250. node_ui/node_modules/ink/build/hooks/use-stdout.js.map +1 -0
  251. node_ui/node_modules/ink/build/hooks/useInput.js +38 -0
  252. node_ui/node_modules/ink/build/index.d.ts +27 -0
  253. node_ui/node_modules/ink/build/index.js +16 -0
  254. node_ui/node_modules/ink/build/index.js.map +1 -0
  255. node_ui/node_modules/ink/build/ink.d.ts +38 -0
  256. node_ui/node_modules/ink/build/ink.js +235 -0
  257. node_ui/node_modules/ink/build/ink.js.map +1 -0
  258. node_ui/node_modules/ink/build/instance.js +205 -0
  259. node_ui/node_modules/ink/build/instances.d.ts +4 -0
  260. node_ui/node_modules/ink/build/instances.js +8 -0
  261. node_ui/node_modules/ink/build/instances.js.map +1 -0
  262. node_ui/node_modules/ink/build/log-update.d.ts +13 -0
  263. node_ui/node_modules/ink/build/log-update.js +37 -0
  264. node_ui/node_modules/ink/build/log-update.js.map +1 -0
  265. node_ui/node_modules/ink/build/measure-element.d.ts +16 -0
  266. node_ui/node_modules/ink/build/measure-element.js +9 -0
  267. node_ui/node_modules/ink/build/measure-element.js.map +1 -0
  268. node_ui/node_modules/ink/build/measure-text.d.ts +6 -0
  269. node_ui/node_modules/ink/build/measure-text.js +20 -0
  270. node_ui/node_modules/ink/build/measure-text.js.map +1 -0
  271. node_ui/node_modules/ink/build/output.d.ts +35 -0
  272. node_ui/node_modules/ink/build/output.js +148 -0
  273. node_ui/node_modules/ink/build/output.js.map +1 -0
  274. node_ui/node_modules/ink/build/parse-keypress.d.ts +15 -0
  275. node_ui/node_modules/ink/build/parse-keypress.js +225 -0
  276. node_ui/node_modules/ink/build/parse-keypress.js.map +1 -0
  277. node_ui/node_modules/ink/build/reconciler.d.ts +4 -0
  278. node_ui/node_modules/ink/build/reconciler.js +219 -0
  279. node_ui/node_modules/ink/build/reconciler.js.map +1 -0
  280. node_ui/node_modules/ink/build/render-border.d.ts +4 -0
  281. node_ui/node_modules/ink/build/render-border.js +73 -0
  282. node_ui/node_modules/ink/build/render-border.js.map +1 -0
  283. node_ui/node_modules/ink/build/render-node-to-output.d.ts +10 -0
  284. node_ui/node_modules/ink/build/render-node-to-output.js +99 -0
  285. node_ui/node_modules/ink/build/render-node-to-output.js.map +1 -0
  286. node_ui/node_modules/ink/build/render.d.ts +68 -0
  287. node_ui/node_modules/ink/build/render.js +48 -0
  288. node_ui/node_modules/ink/build/render.js.map +1 -0
  289. node_ui/node_modules/ink/build/renderer.d.ts +8 -0
  290. node_ui/node_modules/ink/build/renderer.js +36 -0
  291. node_ui/node_modules/ink/build/renderer.js.map +1 -0
  292. node_ui/node_modules/ink/build/squash-text-nodes.d.ts +3 -0
  293. node_ui/node_modules/ink/build/squash-text-nodes.js +35 -0
  294. node_ui/node_modules/ink/build/squash-text-nodes.js.map +1 -0
  295. node_ui/node_modules/ink/build/styles.d.ts +243 -0
  296. node_ui/node_modules/ink/build/styles.js +229 -0
  297. node_ui/node_modules/ink/build/styles.js.map +1 -0
  298. node_ui/node_modules/ink/build/wrap-text.d.ts +3 -0
  299. node_ui/node_modules/ink/build/wrap-text.js +31 -0
  300. node_ui/node_modules/ink/build/wrap-text.js.map +1 -0
  301. node_ui/node_modules/ink/license +9 -0
  302. node_ui/node_modules/ink/package.json +197 -0
  303. node_ui/node_modules/ink/readme.md +2153 -0
  304. node_ui/node_modules/ink-select-input/build/Indicator.d.ts +6 -0
  305. node_ui/node_modules/ink-select-input/build/Indicator.js +8 -0
  306. node_ui/node_modules/ink-select-input/build/Indicator.js.map +1 -0
  307. node_ui/node_modules/ink-select-input/build/Item.d.ts +7 -0
  308. node_ui/node_modules/ink-select-input/build/Item.js +7 -0
  309. node_ui/node_modules/ink-select-input/build/Item.js.map +1 -0
  310. node_ui/node_modules/ink-select-input/build/SelectInput.d.ts +49 -0
  311. node_ui/node_modules/ink-select-input/build/SelectInput.js +83 -0
  312. node_ui/node_modules/ink-select-input/build/SelectInput.js.map +1 -0
  313. node_ui/node_modules/ink-select-input/build/index.d.ts +3 -0
  314. node_ui/node_modules/ink-select-input/build/index.js +4 -0
  315. node_ui/node_modules/ink-select-input/build/index.js.map +1 -0
  316. node_ui/node_modules/ink-select-input/license +9 -0
  317. node_ui/node_modules/ink-select-input/node_modules/figures/index.d.ts +279 -0
  318. node_ui/node_modules/ink-select-input/node_modules/figures/index.js +292 -0
  319. node_ui/node_modules/ink-select-input/node_modules/figures/license +9 -0
  320. node_ui/node_modules/ink-select-input/node_modules/figures/package.json +49 -0
  321. node_ui/node_modules/ink-select-input/node_modules/figures/readme.md +337 -0
  322. node_ui/node_modules/ink-select-input/node_modules/is-unicode-supported/index.d.ts +12 -0
  323. node_ui/node_modules/ink-select-input/node_modules/is-unicode-supported/index.js +21 -0
  324. node_ui/node_modules/ink-select-input/node_modules/is-unicode-supported/license +9 -0
  325. node_ui/node_modules/ink-select-input/node_modules/is-unicode-supported/package.json +47 -0
  326. node_ui/node_modules/ink-select-input/node_modules/is-unicode-supported/readme.md +35 -0
  327. node_ui/node_modules/ink-select-input/package.json +83 -0
  328. node_ui/node_modules/ink-select-input/readme.md +98 -0
  329. node_ui/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
  330. node_ui/node_modules/is-fullwidth-code-point/index.js +40 -0
  331. node_ui/node_modules/is-fullwidth-code-point/license +9 -0
  332. node_ui/node_modules/is-fullwidth-code-point/package.json +45 -0
  333. node_ui/node_modules/is-fullwidth-code-point/readme.md +43 -0
  334. node_ui/node_modules/is-in-ci/cli.js +5 -0
  335. node_ui/node_modules/is-in-ci/index.d.ts +15 -0
  336. node_ui/node_modules/is-in-ci/index.js +11 -0
  337. node_ui/node_modules/is-in-ci/license +9 -0
  338. node_ui/node_modules/is-in-ci/package.json +48 -0
  339. node_ui/node_modules/is-in-ci/readme.md +43 -0
  340. node_ui/node_modules/is-unicode-supported/index.d.ts +12 -0
  341. node_ui/node_modules/is-unicode-supported/index.js +17 -0
  342. node_ui/node_modules/is-unicode-supported/license +9 -0
  343. node_ui/node_modules/is-unicode-supported/package.json +43 -0
  344. node_ui/node_modules/is-unicode-supported/readme.md +35 -0
  345. node_ui/node_modules/js-tokens/CHANGELOG.md +151 -0
  346. node_ui/node_modules/js-tokens/LICENSE +21 -0
  347. node_ui/node_modules/js-tokens/README.md +240 -0
  348. node_ui/node_modules/js-tokens/index.js +23 -0
  349. node_ui/node_modules/js-tokens/package.json +30 -0
  350. node_ui/node_modules/lodash/LICENSE +47 -0
  351. node_ui/node_modules/lodash/README.md +39 -0
  352. node_ui/node_modules/lodash/_DataView.js +7 -0
  353. node_ui/node_modules/lodash/_Hash.js +32 -0
  354. node_ui/node_modules/lodash/_LazyWrapper.js +28 -0
  355. node_ui/node_modules/lodash/_ListCache.js +32 -0
  356. node_ui/node_modules/lodash/_LodashWrapper.js +22 -0
  357. node_ui/node_modules/lodash/_Map.js +7 -0
  358. node_ui/node_modules/lodash/_MapCache.js +32 -0
  359. node_ui/node_modules/lodash/_Promise.js +7 -0
  360. node_ui/node_modules/lodash/_Set.js +7 -0
  361. node_ui/node_modules/lodash/_SetCache.js +27 -0
  362. node_ui/node_modules/lodash/_Stack.js +27 -0
  363. node_ui/node_modules/lodash/_Symbol.js +6 -0
  364. node_ui/node_modules/lodash/_Uint8Array.js +6 -0
  365. node_ui/node_modules/lodash/_WeakMap.js +7 -0
  366. node_ui/node_modules/lodash/_apply.js +21 -0
  367. node_ui/node_modules/lodash/_arrayAggregator.js +22 -0
  368. node_ui/node_modules/lodash/_arrayEach.js +22 -0
  369. node_ui/node_modules/lodash/_arrayEachRight.js +21 -0
  370. node_ui/node_modules/lodash/_arrayEvery.js +23 -0
  371. node_ui/node_modules/lodash/_arrayFilter.js +25 -0
  372. node_ui/node_modules/lodash/_arrayIncludes.js +17 -0
  373. node_ui/node_modules/lodash/_arrayIncludesWith.js +22 -0
  374. node_ui/node_modules/lodash/_arrayLikeKeys.js +49 -0
  375. node_ui/node_modules/lodash/_arrayMap.js +21 -0
  376. node_ui/node_modules/lodash/_arrayPush.js +20 -0
  377. node_ui/node_modules/lodash/_arrayReduce.js +26 -0
  378. node_ui/node_modules/lodash/_arrayReduceRight.js +24 -0
  379. node_ui/node_modules/lodash/_arraySample.js +15 -0
  380. node_ui/node_modules/lodash/_arraySampleSize.js +17 -0
  381. node_ui/node_modules/lodash/_arrayShuffle.js +15 -0
  382. node_ui/node_modules/lodash/_arraySome.js +23 -0
  383. node_ui/node_modules/lodash/_asciiSize.js +12 -0
  384. node_ui/node_modules/lodash/_asciiToArray.js +12 -0
  385. node_ui/node_modules/lodash/_asciiWords.js +15 -0
  386. node_ui/node_modules/lodash/_assignMergeValue.js +20 -0
  387. node_ui/node_modules/lodash/_assignValue.js +28 -0
  388. node_ui/node_modules/lodash/_assocIndexOf.js +21 -0
  389. node_ui/node_modules/lodash/_baseAggregator.js +21 -0
  390. node_ui/node_modules/lodash/_baseAssign.js +17 -0
  391. node_ui/node_modules/lodash/_baseAssignIn.js +17 -0
  392. node_ui/node_modules/lodash/_baseAssignValue.js +25 -0
  393. node_ui/node_modules/lodash/_baseAt.js +23 -0
  394. node_ui/node_modules/lodash/_baseClamp.js +22 -0
  395. node_ui/node_modules/lodash/_baseClone.js +166 -0
  396. node_ui/node_modules/lodash/_baseConforms.js +18 -0
  397. node_ui/node_modules/lodash/_baseConformsTo.js +27 -0
  398. node_ui/node_modules/lodash/_baseCreate.js +30 -0
  399. node_ui/node_modules/lodash/_baseDelay.js +21 -0
  400. node_ui/node_modules/lodash/_baseDifference.js +67 -0
  401. node_ui/node_modules/lodash/_baseEach.js +14 -0
  402. node_ui/node_modules/lodash/_baseEachRight.js +14 -0
  403. node_ui/node_modules/lodash/_baseEvery.js +21 -0
  404. node_ui/node_modules/lodash/_baseExtremum.js +32 -0
  405. node_ui/node_modules/lodash/_baseFill.js +32 -0
  406. node_ui/node_modules/lodash/_baseFilter.js +21 -0
  407. node_ui/node_modules/lodash/_baseFindIndex.js +24 -0
  408. node_ui/node_modules/lodash/_baseFindKey.js +23 -0
  409. node_ui/node_modules/lodash/_baseFlatten.js +38 -0
  410. node_ui/node_modules/lodash/_baseFor.js +16 -0
  411. node_ui/node_modules/lodash/_baseForOwn.js +16 -0
  412. node_ui/node_modules/lodash/_baseForOwnRight.js +16 -0
  413. node_ui/node_modules/lodash/_baseForRight.js +15 -0
  414. node_ui/node_modules/lodash/_baseFunctions.js +19 -0
  415. node_ui/node_modules/lodash/_baseGet.js +24 -0
  416. node_ui/node_modules/lodash/_baseGetAllKeys.js +20 -0
  417. node_ui/node_modules/lodash/_baseGetTag.js +28 -0
  418. node_ui/node_modules/lodash/_baseGt.js +14 -0
  419. node_ui/node_modules/lodash/_baseHas.js +19 -0
  420. node_ui/node_modules/lodash/_baseHasIn.js +13 -0
  421. node_ui/node_modules/lodash/_baseInRange.js +18 -0
  422. node_ui/node_modules/lodash/_baseIndexOf.js +20 -0
  423. node_ui/node_modules/lodash/_baseIndexOfWith.js +23 -0
  424. node_ui/node_modules/lodash/_baseIntersection.js +74 -0
  425. node_ui/node_modules/lodash/_baseInverter.js +21 -0
  426. node_ui/node_modules/lodash/_baseInvoke.js +24 -0
  427. node_ui/node_modules/lodash/_baseIsArguments.js +18 -0
  428. node_ui/node_modules/lodash/_baseIsArrayBuffer.js +17 -0
  429. node_ui/node_modules/lodash/_baseIsDate.js +18 -0
  430. node_ui/node_modules/lodash/_baseIsEqual.js +28 -0
  431. node_ui/node_modules/lodash/_baseIsEqualDeep.js +83 -0
  432. node_ui/node_modules/lodash/_baseIsMap.js +18 -0
  433. node_ui/node_modules/lodash/_baseIsMatch.js +62 -0
  434. node_ui/node_modules/lodash/_baseIsNaN.js +12 -0
  435. node_ui/node_modules/lodash/_baseIsNative.js +47 -0
  436. node_ui/node_modules/lodash/_baseIsRegExp.js +18 -0
  437. node_ui/node_modules/lodash/_baseIsSet.js +18 -0
  438. node_ui/node_modules/lodash/_baseIsTypedArray.js +60 -0
  439. node_ui/node_modules/lodash/_baseIteratee.js +31 -0
  440. node_ui/node_modules/lodash/_baseKeys.js +30 -0
  441. node_ui/node_modules/lodash/_baseKeysIn.js +33 -0
  442. node_ui/node_modules/lodash/_baseLodash.js +10 -0
  443. node_ui/node_modules/lodash/_baseLt.js +14 -0
  444. node_ui/node_modules/lodash/_baseMap.js +22 -0
  445. node_ui/node_modules/lodash/_baseMatches.js +22 -0
  446. node_ui/node_modules/lodash/_baseMatchesProperty.js +33 -0
  447. node_ui/node_modules/lodash/_baseMean.js +20 -0
  448. node_ui/node_modules/lodash/_baseMerge.js +42 -0
  449. node_ui/node_modules/lodash/_baseMergeDeep.js +94 -0
  450. node_ui/node_modules/lodash/_baseNth.js +20 -0
  451. node_ui/node_modules/lodash/_baseOrderBy.js +49 -0
  452. node_ui/node_modules/lodash/_basePick.js +19 -0
  453. node_ui/node_modules/lodash/_basePickBy.js +30 -0
  454. node_ui/node_modules/lodash/_baseProperty.js +14 -0
  455. node_ui/node_modules/lodash/_basePropertyDeep.js +16 -0
  456. node_ui/node_modules/lodash/_basePropertyOf.js +14 -0
  457. node_ui/node_modules/lodash/_basePullAll.js +51 -0
  458. node_ui/node_modules/lodash/_basePullAt.js +37 -0
  459. node_ui/node_modules/lodash/_baseRandom.js +18 -0
  460. node_ui/node_modules/lodash/_baseRange.js +28 -0
  461. node_ui/node_modules/lodash/_baseReduce.js +23 -0
  462. node_ui/node_modules/lodash/_baseRepeat.js +35 -0
  463. node_ui/node_modules/lodash/_baseRest.js +17 -0
  464. node_ui/node_modules/lodash/_baseSample.js +15 -0
  465. node_ui/node_modules/lodash/_baseSampleSize.js +18 -0
  466. node_ui/node_modules/lodash/_baseSet.js +51 -0
  467. node_ui/node_modules/lodash/_baseSetData.js +17 -0
  468. node_ui/node_modules/lodash/_baseSetToString.js +22 -0
  469. node_ui/node_modules/lodash/_baseShuffle.js +15 -0
  470. node_ui/node_modules/lodash/_baseSlice.js +31 -0
  471. node_ui/node_modules/lodash/_baseSome.js +22 -0
  472. node_ui/node_modules/lodash/_baseSortBy.js +21 -0
  473. node_ui/node_modules/lodash/_baseSortedIndex.js +42 -0
  474. node_ui/node_modules/lodash/_baseSortedIndexBy.js +67 -0
  475. node_ui/node_modules/lodash/_baseSortedUniq.js +30 -0
  476. node_ui/node_modules/lodash/_baseSum.js +24 -0
  477. node_ui/node_modules/lodash/_baseTimes.js +20 -0
  478. node_ui/node_modules/lodash/_baseToNumber.js +24 -0
  479. node_ui/node_modules/lodash/_baseToPairs.js +18 -0
  480. node_ui/node_modules/lodash/_baseToString.js +37 -0
  481. node_ui/node_modules/lodash/_baseTrim.js +19 -0
  482. node_ui/node_modules/lodash/_baseUnary.js +14 -0
  483. node_ui/node_modules/lodash/_baseUniq.js +72 -0
  484. node_ui/node_modules/lodash/_baseUnset.js +20 -0
  485. node_ui/node_modules/lodash/_baseUpdate.js +18 -0
  486. node_ui/node_modules/lodash/_baseValues.js +19 -0
  487. node_ui/node_modules/lodash/_baseWhile.js +26 -0
  488. node_ui/node_modules/lodash/_baseWrapperValue.js +25 -0
  489. node_ui/node_modules/lodash/_baseXor.js +36 -0
  490. node_ui/node_modules/lodash/_baseZipObject.js +23 -0
  491. node_ui/node_modules/lodash/_cacheHas.js +13 -0
  492. node_ui/node_modules/lodash/_castArrayLikeObject.js +14 -0
  493. node_ui/node_modules/lodash/_castFunction.js +14 -0
  494. node_ui/node_modules/lodash/_castPath.js +21 -0
  495. node_ui/node_modules/lodash/_castRest.js +14 -0
  496. node_ui/node_modules/lodash/_castSlice.js +18 -0
  497. node_ui/node_modules/lodash/_charsEndIndex.js +19 -0
  498. node_ui/node_modules/lodash/_charsStartIndex.js +20 -0
  499. node_ui/node_modules/lodash/_cloneArrayBuffer.js +16 -0
  500. node_ui/node_modules/lodash/_cloneBuffer.js +35 -0
  501. node_ui/node_modules/lodash/_cloneDataView.js +16 -0
  502. node_ui/node_modules/lodash/_cloneRegExp.js +17 -0
  503. node_ui/node_modules/lodash/_cloneSymbol.js +18 -0
  504. node_ui/node_modules/lodash/_cloneTypedArray.js +16 -0
  505. node_ui/node_modules/lodash/_compareAscending.js +41 -0
  506. node_ui/node_modules/lodash/_compareMultiple.js +44 -0
  507. node_ui/node_modules/lodash/_composeArgs.js +39 -0
  508. node_ui/node_modules/lodash/_composeArgsRight.js +41 -0
  509. node_ui/node_modules/lodash/_copyArray.js +20 -0
  510. node_ui/node_modules/lodash/_copyObject.js +40 -0
  511. node_ui/node_modules/lodash/_copySymbols.js +16 -0
  512. node_ui/node_modules/lodash/_copySymbolsIn.js +16 -0
  513. node_ui/node_modules/lodash/_coreJsData.js +6 -0
  514. node_ui/node_modules/lodash/_countHolders.js +21 -0
  515. node_ui/node_modules/lodash/_createAggregator.js +23 -0
  516. node_ui/node_modules/lodash/_createAssigner.js +37 -0
  517. node_ui/node_modules/lodash/_createBaseEach.js +32 -0
  518. node_ui/node_modules/lodash/_createBaseFor.js +25 -0
  519. node_ui/node_modules/lodash/_createBind.js +28 -0
  520. node_ui/node_modules/lodash/_createCaseFirst.js +33 -0
  521. node_ui/node_modules/lodash/_createCompounder.js +24 -0
  522. node_ui/node_modules/lodash/_createCtor.js +37 -0
  523. node_ui/node_modules/lodash/_createCurry.js +46 -0
  524. node_ui/node_modules/lodash/_createFind.js +25 -0
  525. node_ui/node_modules/lodash/_createFlow.js +78 -0
  526. node_ui/node_modules/lodash/_createHybrid.js +92 -0
  527. node_ui/node_modules/lodash/_createInverter.js +17 -0
  528. node_ui/node_modules/lodash/_createMathOperation.js +38 -0
  529. node_ui/node_modules/lodash/_createOver.js +27 -0
  530. node_ui/node_modules/lodash/_createPadding.js +33 -0
  531. node_ui/node_modules/lodash/_createPartial.js +43 -0
  532. node_ui/node_modules/lodash/_createRange.js +30 -0
  533. node_ui/node_modules/lodash/_createRecurry.js +56 -0
  534. node_ui/node_modules/lodash/_createRelationalOperation.js +20 -0
  535. node_ui/node_modules/lodash/_createRound.js +35 -0
  536. node_ui/node_modules/lodash/_createSet.js +19 -0
  537. node_ui/node_modules/lodash/_createToPairs.js +30 -0
  538. node_ui/node_modules/lodash/_createWrap.js +106 -0
  539. node_ui/node_modules/lodash/_customDefaultsAssignIn.js +29 -0
  540. node_ui/node_modules/lodash/_customDefaultsMerge.js +28 -0
  541. node_ui/node_modules/lodash/_customOmitClone.js +16 -0
  542. node_ui/node_modules/lodash/_deburrLetter.js +71 -0
  543. node_ui/node_modules/lodash/_defineProperty.js +11 -0
  544. node_ui/node_modules/lodash/_equalArrays.js +84 -0
  545. node_ui/node_modules/lodash/_equalByTag.js +112 -0
  546. node_ui/node_modules/lodash/_equalObjects.js +90 -0
  547. node_ui/node_modules/lodash/_escapeHtmlChar.js +21 -0
  548. node_ui/node_modules/lodash/_escapeStringChar.js +22 -0
  549. node_ui/node_modules/lodash/_flatRest.js +16 -0
  550. node_ui/node_modules/lodash/_freeGlobal.js +4 -0
  551. node_ui/node_modules/lodash/_getAllKeys.js +16 -0
  552. node_ui/node_modules/lodash/_getAllKeysIn.js +17 -0
  553. node_ui/node_modules/lodash/_getData.js +15 -0
  554. node_ui/node_modules/lodash/_getFuncName.js +31 -0
  555. node_ui/node_modules/lodash/_getHolder.js +13 -0
  556. node_ui/node_modules/lodash/_getMapData.js +18 -0
  557. node_ui/node_modules/lodash/_getMatchData.js +24 -0
  558. node_ui/node_modules/lodash/_getNative.js +17 -0
  559. node_ui/node_modules/lodash/_getPrototype.js +6 -0
  560. node_ui/node_modules/lodash/_getRawTag.js +46 -0
  561. node_ui/node_modules/lodash/_getSymbols.js +30 -0
  562. node_ui/node_modules/lodash/_getSymbolsIn.js +25 -0
  563. node_ui/node_modules/lodash/_getTag.js +58 -0
  564. node_ui/node_modules/lodash/_getValue.js +13 -0
  565. node_ui/node_modules/lodash/_getView.js +33 -0
  566. node_ui/node_modules/lodash/_getWrapDetails.js +17 -0
  567. node_ui/node_modules/lodash/_hasPath.js +39 -0
  568. node_ui/node_modules/lodash/_hasUnicode.js +26 -0
  569. node_ui/node_modules/lodash/_hasUnicodeWord.js +15 -0
  570. node_ui/node_modules/lodash/_hashClear.js +15 -0
  571. node_ui/node_modules/lodash/_hashDelete.js +17 -0
  572. node_ui/node_modules/lodash/_hashGet.js +30 -0
  573. node_ui/node_modules/lodash/_hashHas.js +23 -0
  574. node_ui/node_modules/lodash/_hashSet.js +23 -0
  575. node_ui/node_modules/lodash/_initCloneArray.js +26 -0
  576. node_ui/node_modules/lodash/_initCloneByTag.js +77 -0
  577. node_ui/node_modules/lodash/_initCloneObject.js +18 -0
  578. node_ui/node_modules/lodash/_insertWrapDetails.js +23 -0
  579. node_ui/node_modules/lodash/_isFlattenable.js +20 -0
  580. node_ui/node_modules/lodash/_isIndex.js +25 -0
  581. node_ui/node_modules/lodash/_isIterateeCall.js +30 -0
  582. node_ui/node_modules/lodash/_isKey.js +29 -0
  583. node_ui/node_modules/lodash/_isKeyable.js +15 -0
  584. node_ui/node_modules/lodash/_isLaziable.js +28 -0
  585. node_ui/node_modules/lodash/_isMaskable.js +14 -0
  586. node_ui/node_modules/lodash/_isMasked.js +20 -0
  587. node_ui/node_modules/lodash/_isPrototype.js +18 -0
  588. node_ui/node_modules/lodash/_isStrictComparable.js +15 -0
  589. node_ui/node_modules/lodash/_iteratorToArray.js +18 -0
  590. node_ui/node_modules/lodash/_lazyClone.js +23 -0
  591. node_ui/node_modules/lodash/_lazyReverse.js +23 -0
  592. node_ui/node_modules/lodash/_lazyValue.js +69 -0
  593. node_ui/node_modules/lodash/_listCacheClear.js +13 -0
  594. node_ui/node_modules/lodash/_listCacheDelete.js +35 -0
  595. node_ui/node_modules/lodash/_listCacheGet.js +19 -0
  596. node_ui/node_modules/lodash/_listCacheHas.js +16 -0
  597. node_ui/node_modules/lodash/_listCacheSet.js +26 -0
  598. node_ui/node_modules/lodash/_mapCacheClear.js +21 -0
  599. node_ui/node_modules/lodash/_mapCacheDelete.js +18 -0
  600. node_ui/node_modules/lodash/_mapCacheGet.js +16 -0
  601. node_ui/node_modules/lodash/_mapCacheHas.js +16 -0
  602. node_ui/node_modules/lodash/_mapCacheSet.js +22 -0
  603. node_ui/node_modules/lodash/_mapToArray.js +18 -0
  604. node_ui/node_modules/lodash/_matchesStrictComparable.js +20 -0
  605. node_ui/node_modules/lodash/_memoizeCapped.js +26 -0
  606. node_ui/node_modules/lodash/_mergeData.js +90 -0
  607. node_ui/node_modules/lodash/_metaMap.js +6 -0
  608. node_ui/node_modules/lodash/_nativeCreate.js +6 -0
  609. node_ui/node_modules/lodash/_nativeKeys.js +6 -0
  610. node_ui/node_modules/lodash/_nativeKeysIn.js +20 -0
  611. node_ui/node_modules/lodash/_nodeUtil.js +30 -0
  612. node_ui/node_modules/lodash/_objectToString.js +22 -0
  613. node_ui/node_modules/lodash/_overArg.js +15 -0
  614. node_ui/node_modules/lodash/_overRest.js +36 -0
  615. node_ui/node_modules/lodash/_parent.js +16 -0
  616. node_ui/node_modules/lodash/_reEscape.js +4 -0
  617. node_ui/node_modules/lodash/_reEvaluate.js +4 -0
  618. node_ui/node_modules/lodash/_reInterpolate.js +4 -0
  619. node_ui/node_modules/lodash/_realNames.js +4 -0
  620. node_ui/node_modules/lodash/_reorder.js +29 -0
  621. node_ui/node_modules/lodash/_replaceHolders.js +29 -0
  622. node_ui/node_modules/lodash/_root.js +9 -0
  623. node_ui/node_modules/lodash/_safeGet.js +21 -0
  624. node_ui/node_modules/lodash/_setCacheAdd.js +19 -0
  625. node_ui/node_modules/lodash/_setCacheHas.js +14 -0
  626. node_ui/node_modules/lodash/_setData.js +20 -0
  627. node_ui/node_modules/lodash/_setToArray.js +18 -0
  628. node_ui/node_modules/lodash/_setToPairs.js +18 -0
  629. node_ui/node_modules/lodash/_setToString.js +14 -0
  630. node_ui/node_modules/lodash/_setWrapToString.js +21 -0
  631. node_ui/node_modules/lodash/_shortOut.js +37 -0
  632. node_ui/node_modules/lodash/_shuffleSelf.js +28 -0
  633. node_ui/node_modules/lodash/_stackClear.js +15 -0
  634. node_ui/node_modules/lodash/_stackDelete.js +18 -0
  635. node_ui/node_modules/lodash/_stackGet.js +14 -0
  636. node_ui/node_modules/lodash/_stackHas.js +14 -0
  637. node_ui/node_modules/lodash/_stackSet.js +34 -0
  638. node_ui/node_modules/lodash/_strictIndexOf.js +23 -0
  639. node_ui/node_modules/lodash/_strictLastIndexOf.js +21 -0
  640. node_ui/node_modules/lodash/_stringSize.js +18 -0
  641. node_ui/node_modules/lodash/_stringToArray.js +18 -0
  642. node_ui/node_modules/lodash/_stringToPath.js +27 -0
  643. node_ui/node_modules/lodash/_toKey.js +21 -0
  644. node_ui/node_modules/lodash/_toSource.js +26 -0
  645. node_ui/node_modules/lodash/_trimmedEndIndex.js +19 -0
  646. node_ui/node_modules/lodash/_unescapeHtmlChar.js +21 -0
  647. node_ui/node_modules/lodash/_unicodeSize.js +44 -0
  648. node_ui/node_modules/lodash/_unicodeToArray.js +40 -0
  649. node_ui/node_modules/lodash/_unicodeWords.js +69 -0
  650. node_ui/node_modules/lodash/_updateWrapDetails.js +46 -0
  651. node_ui/node_modules/lodash/_wrapperClone.js +23 -0
  652. node_ui/node_modules/lodash/add.js +22 -0
  653. node_ui/node_modules/lodash/after.js +42 -0
  654. node_ui/node_modules/lodash/array.js +67 -0
  655. node_ui/node_modules/lodash/ary.js +29 -0
  656. node_ui/node_modules/lodash/assign.js +58 -0
  657. node_ui/node_modules/lodash/assignIn.js +40 -0
  658. node_ui/node_modules/lodash/assignInWith.js +38 -0
  659. node_ui/node_modules/lodash/assignWith.js +37 -0
  660. node_ui/node_modules/lodash/at.js +23 -0
  661. node_ui/node_modules/lodash/attempt.js +35 -0
  662. node_ui/node_modules/lodash/before.js +40 -0
  663. node_ui/node_modules/lodash/bind.js +57 -0
  664. node_ui/node_modules/lodash/bindAll.js +41 -0
  665. node_ui/node_modules/lodash/bindKey.js +68 -0
  666. node_ui/node_modules/lodash/camelCase.js +29 -0
  667. node_ui/node_modules/lodash/capitalize.js +23 -0
  668. node_ui/node_modules/lodash/castArray.js +44 -0
  669. node_ui/node_modules/lodash/ceil.js +26 -0
  670. node_ui/node_modules/lodash/chain.js +38 -0
  671. node_ui/node_modules/lodash/chunk.js +50 -0
  672. node_ui/node_modules/lodash/clamp.js +39 -0
  673. node_ui/node_modules/lodash/clone.js +36 -0
  674. node_ui/node_modules/lodash/cloneDeep.js +29 -0
  675. node_ui/node_modules/lodash/cloneDeepWith.js +40 -0
  676. node_ui/node_modules/lodash/cloneWith.js +42 -0
  677. node_ui/node_modules/lodash/collection.js +30 -0
  678. node_ui/node_modules/lodash/commit.js +33 -0
  679. node_ui/node_modules/lodash/compact.js +31 -0
  680. node_ui/node_modules/lodash/concat.js +43 -0
  681. node_ui/node_modules/lodash/cond.js +60 -0
  682. node_ui/node_modules/lodash/conforms.js +35 -0
  683. node_ui/node_modules/lodash/conformsTo.js +32 -0
  684. node_ui/node_modules/lodash/constant.js +26 -0
  685. node_ui/node_modules/lodash/core.js +3877 -0
  686. node_ui/node_modules/lodash/core.min.js +29 -0
  687. node_ui/node_modules/lodash/countBy.js +40 -0
  688. node_ui/node_modules/lodash/create.js +43 -0
  689. node_ui/node_modules/lodash/curry.js +57 -0
  690. node_ui/node_modules/lodash/curryRight.js +54 -0
  691. node_ui/node_modules/lodash/date.js +3 -0
  692. node_ui/node_modules/lodash/debounce.js +191 -0
  693. node_ui/node_modules/lodash/deburr.js +45 -0
  694. node_ui/node_modules/lodash/defaultTo.js +25 -0
  695. node_ui/node_modules/lodash/defaults.js +64 -0
  696. node_ui/node_modules/lodash/defaultsDeep.js +30 -0
  697. node_ui/node_modules/lodash/defer.js +26 -0
  698. node_ui/node_modules/lodash/delay.js +28 -0
  699. node_ui/node_modules/lodash/difference.js +33 -0
  700. node_ui/node_modules/lodash/differenceBy.js +44 -0
  701. node_ui/node_modules/lodash/differenceWith.js +40 -0
  702. node_ui/node_modules/lodash/divide.js +22 -0
  703. node_ui/node_modules/lodash/drop.js +38 -0
  704. node_ui/node_modules/lodash/dropRight.js +39 -0
  705. node_ui/node_modules/lodash/dropRightWhile.js +45 -0
  706. node_ui/node_modules/lodash/dropWhile.js +45 -0
  707. node_ui/node_modules/lodash/each.js +1 -0
  708. node_ui/node_modules/lodash/eachRight.js +1 -0
  709. node_ui/node_modules/lodash/endsWith.js +43 -0
  710. node_ui/node_modules/lodash/entries.js +1 -0
  711. node_ui/node_modules/lodash/entriesIn.js +1 -0
  712. node_ui/node_modules/lodash/eq.js +37 -0
  713. node_ui/node_modules/lodash/escape.js +43 -0
  714. node_ui/node_modules/lodash/escapeRegExp.js +32 -0
  715. node_ui/node_modules/lodash/every.js +56 -0
  716. node_ui/node_modules/lodash/extend.js +1 -0
  717. node_ui/node_modules/lodash/extendWith.js +1 -0
  718. node_ui/node_modules/lodash/fill.js +45 -0
  719. node_ui/node_modules/lodash/filter.js +52 -0
  720. node_ui/node_modules/lodash/find.js +42 -0
  721. node_ui/node_modules/lodash/findIndex.js +55 -0
  722. node_ui/node_modules/lodash/findKey.js +44 -0
  723. node_ui/node_modules/lodash/findLast.js +25 -0
  724. node_ui/node_modules/lodash/findLastIndex.js +59 -0
  725. node_ui/node_modules/lodash/findLastKey.js +44 -0
  726. node_ui/node_modules/lodash/first.js +1 -0
  727. node_ui/node_modules/lodash/flake.lock +40 -0
  728. node_ui/node_modules/lodash/flake.nix +20 -0
  729. node_ui/node_modules/lodash/flatMap.js +29 -0
  730. node_ui/node_modules/lodash/flatMapDeep.js +31 -0
  731. node_ui/node_modules/lodash/flatMapDepth.js +31 -0
  732. node_ui/node_modules/lodash/flatten.js +22 -0
  733. node_ui/node_modules/lodash/flattenDeep.js +25 -0
  734. node_ui/node_modules/lodash/flattenDepth.js +33 -0
  735. node_ui/node_modules/lodash/flip.js +28 -0
  736. node_ui/node_modules/lodash/floor.js +26 -0
  737. node_ui/node_modules/lodash/flow.js +27 -0
  738. node_ui/node_modules/lodash/flowRight.js +26 -0
  739. node_ui/node_modules/lodash/forEach.js +41 -0
  740. node_ui/node_modules/lodash/forEachRight.js +31 -0
  741. node_ui/node_modules/lodash/forIn.js +39 -0
  742. node_ui/node_modules/lodash/forInRight.js +37 -0
  743. node_ui/node_modules/lodash/forOwn.js +36 -0
  744. node_ui/node_modules/lodash/forOwnRight.js +34 -0
  745. node_ui/node_modules/lodash/fp/F.js +1 -0
  746. node_ui/node_modules/lodash/fp/T.js +1 -0
  747. node_ui/node_modules/lodash/fp/__.js +1 -0
  748. node_ui/node_modules/lodash/fp/_baseConvert.js +569 -0
  749. node_ui/node_modules/lodash/fp/_convertBrowser.js +18 -0
  750. node_ui/node_modules/lodash/fp/_falseOptions.js +7 -0
  751. node_ui/node_modules/lodash/fp/_mapping.js +358 -0
  752. node_ui/node_modules/lodash/fp/_util.js +16 -0
  753. node_ui/node_modules/lodash/fp/add.js +5 -0
  754. node_ui/node_modules/lodash/fp/after.js +5 -0
  755. node_ui/node_modules/lodash/fp/all.js +1 -0
  756. node_ui/node_modules/lodash/fp/allPass.js +1 -0
  757. node_ui/node_modules/lodash/fp/always.js +1 -0
  758. node_ui/node_modules/lodash/fp/any.js +1 -0
  759. node_ui/node_modules/lodash/fp/anyPass.js +1 -0
  760. node_ui/node_modules/lodash/fp/apply.js +1 -0
  761. node_ui/node_modules/lodash/fp/array.js +2 -0
  762. node_ui/node_modules/lodash/fp/ary.js +5 -0
  763. node_ui/node_modules/lodash/fp/assign.js +5 -0
  764. node_ui/node_modules/lodash/fp/assignAll.js +5 -0
  765. node_ui/node_modules/lodash/fp/assignAllWith.js +5 -0
  766. node_ui/node_modules/lodash/fp/assignIn.js +5 -0
  767. node_ui/node_modules/lodash/fp/assignInAll.js +5 -0
  768. node_ui/node_modules/lodash/fp/assignInAllWith.js +5 -0
  769. node_ui/node_modules/lodash/fp/assignInWith.js +5 -0
  770. node_ui/node_modules/lodash/fp/assignWith.js +5 -0
  771. node_ui/node_modules/lodash/fp/assoc.js +1 -0
  772. node_ui/node_modules/lodash/fp/assocPath.js +1 -0
  773. node_ui/node_modules/lodash/fp/at.js +5 -0
  774. node_ui/node_modules/lodash/fp/attempt.js +5 -0
  775. node_ui/node_modules/lodash/fp/before.js +5 -0
  776. node_ui/node_modules/lodash/fp/bind.js +5 -0
  777. node_ui/node_modules/lodash/fp/bindAll.js +5 -0
  778. node_ui/node_modules/lodash/fp/bindKey.js +5 -0
  779. node_ui/node_modules/lodash/fp/camelCase.js +5 -0
  780. node_ui/node_modules/lodash/fp/capitalize.js +5 -0
  781. node_ui/node_modules/lodash/fp/castArray.js +5 -0
  782. node_ui/node_modules/lodash/fp/ceil.js +5 -0
  783. node_ui/node_modules/lodash/fp/chain.js +5 -0
  784. node_ui/node_modules/lodash/fp/chunk.js +5 -0
  785. node_ui/node_modules/lodash/fp/clamp.js +5 -0
  786. node_ui/node_modules/lodash/fp/clone.js +5 -0
  787. node_ui/node_modules/lodash/fp/cloneDeep.js +5 -0
  788. node_ui/node_modules/lodash/fp/cloneDeepWith.js +5 -0
  789. node_ui/node_modules/lodash/fp/cloneWith.js +5 -0
  790. node_ui/node_modules/lodash/fp/collection.js +2 -0
  791. node_ui/node_modules/lodash/fp/commit.js +5 -0
  792. node_ui/node_modules/lodash/fp/compact.js +5 -0
  793. node_ui/node_modules/lodash/fp/complement.js +1 -0
  794. node_ui/node_modules/lodash/fp/compose.js +1 -0
  795. node_ui/node_modules/lodash/fp/concat.js +5 -0
  796. node_ui/node_modules/lodash/fp/cond.js +5 -0
  797. node_ui/node_modules/lodash/fp/conforms.js +1 -0
  798. node_ui/node_modules/lodash/fp/conformsTo.js +5 -0
  799. node_ui/node_modules/lodash/fp/constant.js +5 -0
  800. node_ui/node_modules/lodash/fp/contains.js +1 -0
  801. node_ui/node_modules/lodash/fp/convert.js +18 -0
  802. node_ui/node_modules/lodash/fp/countBy.js +5 -0
  803. node_ui/node_modules/lodash/fp/create.js +5 -0
  804. node_ui/node_modules/lodash/fp/curry.js +5 -0
  805. node_ui/node_modules/lodash/fp/curryN.js +5 -0
  806. node_ui/node_modules/lodash/fp/curryRight.js +5 -0
  807. node_ui/node_modules/lodash/fp/curryRightN.js +5 -0
  808. node_ui/node_modules/lodash/fp/date.js +2 -0
  809. node_ui/node_modules/lodash/fp/debounce.js +5 -0
  810. node_ui/node_modules/lodash/fp/deburr.js +5 -0
  811. node_ui/node_modules/lodash/fp/defaultTo.js +5 -0
  812. node_ui/node_modules/lodash/fp/defaults.js +5 -0
  813. node_ui/node_modules/lodash/fp/defaultsAll.js +5 -0
  814. node_ui/node_modules/lodash/fp/defaultsDeep.js +5 -0
  815. node_ui/node_modules/lodash/fp/defaultsDeepAll.js +5 -0
  816. node_ui/node_modules/lodash/fp/defer.js +5 -0
  817. node_ui/node_modules/lodash/fp/delay.js +5 -0
  818. node_ui/node_modules/lodash/fp/difference.js +5 -0
  819. node_ui/node_modules/lodash/fp/differenceBy.js +5 -0
  820. node_ui/node_modules/lodash/fp/differenceWith.js +5 -0
  821. node_ui/node_modules/lodash/fp/dissoc.js +1 -0
  822. node_ui/node_modules/lodash/fp/dissocPath.js +1 -0
  823. node_ui/node_modules/lodash/fp/divide.js +5 -0
  824. node_ui/node_modules/lodash/fp/drop.js +5 -0
  825. node_ui/node_modules/lodash/fp/dropLast.js +1 -0
  826. node_ui/node_modules/lodash/fp/dropLastWhile.js +1 -0
  827. node_ui/node_modules/lodash/fp/dropRight.js +5 -0
  828. node_ui/node_modules/lodash/fp/dropRightWhile.js +5 -0
  829. node_ui/node_modules/lodash/fp/dropWhile.js +5 -0
  830. node_ui/node_modules/lodash/fp/each.js +1 -0
  831. node_ui/node_modules/lodash/fp/eachRight.js +1 -0
  832. node_ui/node_modules/lodash/fp/endsWith.js +5 -0
  833. node_ui/node_modules/lodash/fp/entries.js +1 -0
  834. node_ui/node_modules/lodash/fp/entriesIn.js +1 -0
  835. node_ui/node_modules/lodash/fp/eq.js +5 -0
  836. node_ui/node_modules/lodash/fp/equals.js +1 -0
  837. node_ui/node_modules/lodash/fp/escape.js +5 -0
  838. node_ui/node_modules/lodash/fp/escapeRegExp.js +5 -0
  839. node_ui/node_modules/lodash/fp/every.js +5 -0
  840. node_ui/node_modules/lodash/fp/extend.js +1 -0
  841. node_ui/node_modules/lodash/fp/extendAll.js +1 -0
  842. node_ui/node_modules/lodash/fp/extendAllWith.js +1 -0
  843. node_ui/node_modules/lodash/fp/extendWith.js +1 -0
  844. node_ui/node_modules/lodash/fp/fill.js +5 -0
  845. node_ui/node_modules/lodash/fp/filter.js +5 -0
  846. node_ui/node_modules/lodash/fp/find.js +5 -0
  847. node_ui/node_modules/lodash/fp/findFrom.js +5 -0
  848. node_ui/node_modules/lodash/fp/findIndex.js +5 -0
  849. node_ui/node_modules/lodash/fp/findIndexFrom.js +5 -0
  850. node_ui/node_modules/lodash/fp/findKey.js +5 -0
  851. node_ui/node_modules/lodash/fp/findLast.js +5 -0
  852. node_ui/node_modules/lodash/fp/findLastFrom.js +5 -0
  853. node_ui/node_modules/lodash/fp/findLastIndex.js +5 -0
  854. node_ui/node_modules/lodash/fp/findLastIndexFrom.js +5 -0
  855. node_ui/node_modules/lodash/fp/findLastKey.js +5 -0
  856. node_ui/node_modules/lodash/fp/first.js +1 -0
  857. node_ui/node_modules/lodash/fp/flatMap.js +5 -0
  858. node_ui/node_modules/lodash/fp/flatMapDeep.js +5 -0
  859. node_ui/node_modules/lodash/fp/flatMapDepth.js +5 -0
  860. node_ui/node_modules/lodash/fp/flatten.js +5 -0
  861. node_ui/node_modules/lodash/fp/flattenDeep.js +5 -0
  862. node_ui/node_modules/lodash/fp/flattenDepth.js +5 -0
  863. node_ui/node_modules/lodash/fp/flip.js +5 -0
  864. node_ui/node_modules/lodash/fp/floor.js +5 -0
  865. node_ui/node_modules/lodash/fp/flow.js +5 -0
  866. node_ui/node_modules/lodash/fp/flowRight.js +5 -0
  867. node_ui/node_modules/lodash/fp/forEach.js +5 -0
  868. node_ui/node_modules/lodash/fp/forEachRight.js +5 -0
  869. node_ui/node_modules/lodash/fp/forIn.js +5 -0
  870. node_ui/node_modules/lodash/fp/forInRight.js +5 -0
  871. node_ui/node_modules/lodash/fp/forOwn.js +5 -0
  872. node_ui/node_modules/lodash/fp/forOwnRight.js +5 -0
  873. node_ui/node_modules/lodash/fp/fromPairs.js +5 -0
  874. node_ui/node_modules/lodash/fp/function.js +2 -0
  875. node_ui/node_modules/lodash/fp/functions.js +5 -0
  876. node_ui/node_modules/lodash/fp/functionsIn.js +5 -0
  877. node_ui/node_modules/lodash/fp/get.js +5 -0
  878. node_ui/node_modules/lodash/fp/getOr.js +5 -0
  879. node_ui/node_modules/lodash/fp/groupBy.js +5 -0
  880. node_ui/node_modules/lodash/fp/gt.js +5 -0
  881. node_ui/node_modules/lodash/fp/gte.js +5 -0
  882. node_ui/node_modules/lodash/fp/has.js +5 -0
  883. node_ui/node_modules/lodash/fp/hasIn.js +5 -0
  884. node_ui/node_modules/lodash/fp/head.js +5 -0
  885. node_ui/node_modules/lodash/fp/identical.js +1 -0
  886. node_ui/node_modules/lodash/fp/identity.js +5 -0
  887. node_ui/node_modules/lodash/fp/inRange.js +5 -0
  888. node_ui/node_modules/lodash/fp/includes.js +5 -0
  889. node_ui/node_modules/lodash/fp/includesFrom.js +5 -0
  890. node_ui/node_modules/lodash/fp/indexBy.js +1 -0
  891. node_ui/node_modules/lodash/fp/indexOf.js +5 -0
  892. node_ui/node_modules/lodash/fp/indexOfFrom.js +5 -0
  893. node_ui/node_modules/lodash/fp/init.js +1 -0
  894. node_ui/node_modules/lodash/fp/initial.js +5 -0
  895. node_ui/node_modules/lodash/fp/intersection.js +5 -0
  896. node_ui/node_modules/lodash/fp/intersectionBy.js +5 -0
  897. node_ui/node_modules/lodash/fp/intersectionWith.js +5 -0
  898. node_ui/node_modules/lodash/fp/invert.js +5 -0
  899. node_ui/node_modules/lodash/fp/invertBy.js +5 -0
  900. node_ui/node_modules/lodash/fp/invertObj.js +1 -0
  901. node_ui/node_modules/lodash/fp/invoke.js +5 -0
  902. node_ui/node_modules/lodash/fp/invokeArgs.js +5 -0
  903. node_ui/node_modules/lodash/fp/invokeArgsMap.js +5 -0
  904. node_ui/node_modules/lodash/fp/invokeMap.js +5 -0
  905. node_ui/node_modules/lodash/fp/isArguments.js +5 -0
  906. node_ui/node_modules/lodash/fp/isArray.js +5 -0
  907. node_ui/node_modules/lodash/fp/isArrayBuffer.js +5 -0
  908. node_ui/node_modules/lodash/fp/isArrayLike.js +5 -0
  909. node_ui/node_modules/lodash/fp/isArrayLikeObject.js +5 -0
  910. node_ui/node_modules/lodash/fp/isBoolean.js +5 -0
  911. node_ui/node_modules/lodash/fp/isBuffer.js +5 -0
  912. node_ui/node_modules/lodash/fp/isDate.js +5 -0
  913. node_ui/node_modules/lodash/fp/isElement.js +5 -0
  914. node_ui/node_modules/lodash/fp/isEmpty.js +5 -0
  915. node_ui/node_modules/lodash/fp/isEqual.js +5 -0
  916. node_ui/node_modules/lodash/fp/isEqualWith.js +5 -0
  917. node_ui/node_modules/lodash/fp/isError.js +5 -0
  918. node_ui/node_modules/lodash/fp/isFinite.js +5 -0
  919. node_ui/node_modules/lodash/fp/isFunction.js +5 -0
  920. node_ui/node_modules/lodash/fp/isInteger.js +5 -0
  921. node_ui/node_modules/lodash/fp/isLength.js +5 -0
  922. node_ui/node_modules/lodash/fp/isMap.js +5 -0
  923. node_ui/node_modules/lodash/fp/isMatch.js +5 -0
  924. node_ui/node_modules/lodash/fp/isMatchWith.js +5 -0
  925. node_ui/node_modules/lodash/fp/isNaN.js +5 -0
  926. node_ui/node_modules/lodash/fp/isNative.js +5 -0
  927. node_ui/node_modules/lodash/fp/isNil.js +5 -0
  928. node_ui/node_modules/lodash/fp/isNull.js +5 -0
  929. node_ui/node_modules/lodash/fp/isNumber.js +5 -0
  930. node_ui/node_modules/lodash/fp/isObject.js +5 -0
  931. node_ui/node_modules/lodash/fp/isObjectLike.js +5 -0
  932. node_ui/node_modules/lodash/fp/isPlainObject.js +5 -0
  933. node_ui/node_modules/lodash/fp/isRegExp.js +5 -0
  934. node_ui/node_modules/lodash/fp/isSafeInteger.js +5 -0
  935. node_ui/node_modules/lodash/fp/isSet.js +5 -0
  936. node_ui/node_modules/lodash/fp/isString.js +5 -0
  937. node_ui/node_modules/lodash/fp/isSymbol.js +5 -0
  938. node_ui/node_modules/lodash/fp/isTypedArray.js +5 -0
  939. node_ui/node_modules/lodash/fp/isUndefined.js +5 -0
  940. node_ui/node_modules/lodash/fp/isWeakMap.js +5 -0
  941. node_ui/node_modules/lodash/fp/isWeakSet.js +5 -0
  942. node_ui/node_modules/lodash/fp/iteratee.js +5 -0
  943. node_ui/node_modules/lodash/fp/join.js +5 -0
  944. node_ui/node_modules/lodash/fp/juxt.js +1 -0
  945. node_ui/node_modules/lodash/fp/kebabCase.js +5 -0
  946. node_ui/node_modules/lodash/fp/keyBy.js +5 -0
  947. node_ui/node_modules/lodash/fp/keys.js +5 -0
  948. node_ui/node_modules/lodash/fp/keysIn.js +5 -0
  949. node_ui/node_modules/lodash/fp/lang.js +2 -0
  950. node_ui/node_modules/lodash/fp/last.js +5 -0
  951. node_ui/node_modules/lodash/fp/lastIndexOf.js +5 -0
  952. node_ui/node_modules/lodash/fp/lastIndexOfFrom.js +5 -0
  953. node_ui/node_modules/lodash/fp/lowerCase.js +5 -0
  954. node_ui/node_modules/lodash/fp/lowerFirst.js +5 -0
  955. node_ui/node_modules/lodash/fp/lt.js +5 -0
  956. node_ui/node_modules/lodash/fp/lte.js +5 -0
  957. node_ui/node_modules/lodash/fp/map.js +5 -0
  958. node_ui/node_modules/lodash/fp/mapKeys.js +5 -0
  959. node_ui/node_modules/lodash/fp/mapValues.js +5 -0
  960. node_ui/node_modules/lodash/fp/matches.js +1 -0
  961. node_ui/node_modules/lodash/fp/matchesProperty.js +5 -0
  962. node_ui/node_modules/lodash/fp/math.js +2 -0
  963. node_ui/node_modules/lodash/fp/max.js +5 -0
  964. node_ui/node_modules/lodash/fp/maxBy.js +5 -0
  965. node_ui/node_modules/lodash/fp/mean.js +5 -0
  966. node_ui/node_modules/lodash/fp/meanBy.js +5 -0
  967. node_ui/node_modules/lodash/fp/memoize.js +5 -0
  968. node_ui/node_modules/lodash/fp/merge.js +5 -0
  969. node_ui/node_modules/lodash/fp/mergeAll.js +5 -0
  970. node_ui/node_modules/lodash/fp/mergeAllWith.js +5 -0
  971. node_ui/node_modules/lodash/fp/mergeWith.js +5 -0
  972. node_ui/node_modules/lodash/fp/method.js +5 -0
  973. node_ui/node_modules/lodash/fp/methodOf.js +5 -0
  974. node_ui/node_modules/lodash/fp/min.js +5 -0
  975. node_ui/node_modules/lodash/fp/minBy.js +5 -0
  976. node_ui/node_modules/lodash/fp/mixin.js +5 -0
  977. node_ui/node_modules/lodash/fp/multiply.js +5 -0
  978. node_ui/node_modules/lodash/fp/nAry.js +1 -0
  979. node_ui/node_modules/lodash/fp/negate.js +5 -0
  980. node_ui/node_modules/lodash/fp/next.js +5 -0
  981. node_ui/node_modules/lodash/fp/noop.js +5 -0
  982. node_ui/node_modules/lodash/fp/now.js +5 -0
  983. node_ui/node_modules/lodash/fp/nth.js +5 -0
  984. node_ui/node_modules/lodash/fp/nthArg.js +5 -0
  985. node_ui/node_modules/lodash/fp/number.js +2 -0
  986. node_ui/node_modules/lodash/fp/object.js +2 -0
  987. node_ui/node_modules/lodash/fp/omit.js +5 -0
  988. node_ui/node_modules/lodash/fp/omitAll.js +1 -0
  989. node_ui/node_modules/lodash/fp/omitBy.js +5 -0
  990. node_ui/node_modules/lodash/fp/once.js +5 -0
  991. node_ui/node_modules/lodash/fp/orderBy.js +5 -0
  992. node_ui/node_modules/lodash/fp/over.js +5 -0
  993. node_ui/node_modules/lodash/fp/overArgs.js +5 -0
  994. node_ui/node_modules/lodash/fp/overEvery.js +5 -0
  995. node_ui/node_modules/lodash/fp/overSome.js +5 -0
  996. node_ui/node_modules/lodash/fp/pad.js +5 -0
  997. node_ui/node_modules/lodash/fp/padChars.js +5 -0
  998. node_ui/node_modules/lodash/fp/padCharsEnd.js +5 -0
  999. node_ui/node_modules/lodash/fp/padCharsStart.js +5 -0
  1000. node_ui/node_modules/lodash/fp/padEnd.js +5 -0
  1001. node_ui/node_modules/lodash/fp/padStart.js +5 -0
  1002. node_ui/node_modules/lodash/fp/parseInt.js +5 -0
  1003. node_ui/node_modules/lodash/fp/partial.js +5 -0
  1004. node_ui/node_modules/lodash/fp/partialRight.js +5 -0
  1005. node_ui/node_modules/lodash/fp/partition.js +5 -0
  1006. node_ui/node_modules/lodash/fp/path.js +1 -0
  1007. node_ui/node_modules/lodash/fp/pathEq.js +1 -0
  1008. node_ui/node_modules/lodash/fp/pathOr.js +1 -0
  1009. node_ui/node_modules/lodash/fp/paths.js +1 -0
  1010. node_ui/node_modules/lodash/fp/pick.js +5 -0
  1011. node_ui/node_modules/lodash/fp/pickAll.js +1 -0
  1012. node_ui/node_modules/lodash/fp/pickBy.js +5 -0
  1013. node_ui/node_modules/lodash/fp/pipe.js +1 -0
  1014. node_ui/node_modules/lodash/fp/placeholder.js +6 -0
  1015. node_ui/node_modules/lodash/fp/plant.js +5 -0
  1016. node_ui/node_modules/lodash/fp/pluck.js +1 -0
  1017. node_ui/node_modules/lodash/fp/prop.js +1 -0
  1018. node_ui/node_modules/lodash/fp/propEq.js +1 -0
  1019. node_ui/node_modules/lodash/fp/propOr.js +1 -0
  1020. node_ui/node_modules/lodash/fp/property.js +1 -0
  1021. node_ui/node_modules/lodash/fp/propertyOf.js +5 -0
  1022. node_ui/node_modules/lodash/fp/props.js +1 -0
  1023. node_ui/node_modules/lodash/fp/pull.js +5 -0
  1024. node_ui/node_modules/lodash/fp/pullAll.js +5 -0
  1025. node_ui/node_modules/lodash/fp/pullAllBy.js +5 -0
  1026. node_ui/node_modules/lodash/fp/pullAllWith.js +5 -0
  1027. node_ui/node_modules/lodash/fp/pullAt.js +5 -0
  1028. node_ui/node_modules/lodash/fp/random.js +5 -0
  1029. node_ui/node_modules/lodash/fp/range.js +5 -0
  1030. node_ui/node_modules/lodash/fp/rangeRight.js +5 -0
  1031. node_ui/node_modules/lodash/fp/rangeStep.js +5 -0
  1032. node_ui/node_modules/lodash/fp/rangeStepRight.js +5 -0
  1033. node_ui/node_modules/lodash/fp/rearg.js +5 -0
  1034. node_ui/node_modules/lodash/fp/reduce.js +5 -0
  1035. node_ui/node_modules/lodash/fp/reduceRight.js +5 -0
  1036. node_ui/node_modules/lodash/fp/reject.js +5 -0
  1037. node_ui/node_modules/lodash/fp/remove.js +5 -0
  1038. node_ui/node_modules/lodash/fp/repeat.js +5 -0
  1039. node_ui/node_modules/lodash/fp/replace.js +5 -0
  1040. node_ui/node_modules/lodash/fp/rest.js +5 -0
  1041. node_ui/node_modules/lodash/fp/restFrom.js +5 -0
  1042. node_ui/node_modules/lodash/fp/result.js +5 -0
  1043. node_ui/node_modules/lodash/fp/reverse.js +5 -0
  1044. node_ui/node_modules/lodash/fp/round.js +5 -0
  1045. node_ui/node_modules/lodash/fp/sample.js +5 -0
  1046. node_ui/node_modules/lodash/fp/sampleSize.js +5 -0
  1047. node_ui/node_modules/lodash/fp/seq.js +2 -0
  1048. node_ui/node_modules/lodash/fp/set.js +5 -0
  1049. node_ui/node_modules/lodash/fp/setWith.js +5 -0
  1050. node_ui/node_modules/lodash/fp/shuffle.js +5 -0
  1051. node_ui/node_modules/lodash/fp/size.js +5 -0
  1052. node_ui/node_modules/lodash/fp/slice.js +5 -0
  1053. node_ui/node_modules/lodash/fp/snakeCase.js +5 -0
  1054. node_ui/node_modules/lodash/fp/some.js +5 -0
  1055. node_ui/node_modules/lodash/fp/sortBy.js +5 -0
  1056. node_ui/node_modules/lodash/fp/sortedIndex.js +5 -0
  1057. node_ui/node_modules/lodash/fp/sortedIndexBy.js +5 -0
  1058. node_ui/node_modules/lodash/fp/sortedIndexOf.js +5 -0
  1059. node_ui/node_modules/lodash/fp/sortedLastIndex.js +5 -0
  1060. node_ui/node_modules/lodash/fp/sortedLastIndexBy.js +5 -0
  1061. node_ui/node_modules/lodash/fp/sortedLastIndexOf.js +5 -0
  1062. node_ui/node_modules/lodash/fp/sortedUniq.js +5 -0
  1063. node_ui/node_modules/lodash/fp/sortedUniqBy.js +5 -0
  1064. node_ui/node_modules/lodash/fp/split.js +5 -0
  1065. node_ui/node_modules/lodash/fp/spread.js +5 -0
  1066. node_ui/node_modules/lodash/fp/spreadFrom.js +5 -0
  1067. node_ui/node_modules/lodash/fp/startCase.js +5 -0
  1068. node_ui/node_modules/lodash/fp/startsWith.js +5 -0
  1069. node_ui/node_modules/lodash/fp/string.js +2 -0
  1070. node_ui/node_modules/lodash/fp/stubArray.js +5 -0
  1071. node_ui/node_modules/lodash/fp/stubFalse.js +5 -0
  1072. node_ui/node_modules/lodash/fp/stubObject.js +5 -0
  1073. node_ui/node_modules/lodash/fp/stubString.js +5 -0
  1074. node_ui/node_modules/lodash/fp/stubTrue.js +5 -0
  1075. node_ui/node_modules/lodash/fp/subtract.js +5 -0
  1076. node_ui/node_modules/lodash/fp/sum.js +5 -0
  1077. node_ui/node_modules/lodash/fp/sumBy.js +5 -0
  1078. node_ui/node_modules/lodash/fp/symmetricDifference.js +1 -0
  1079. node_ui/node_modules/lodash/fp/symmetricDifferenceBy.js +1 -0
  1080. node_ui/node_modules/lodash/fp/symmetricDifferenceWith.js +1 -0
  1081. node_ui/node_modules/lodash/fp/tail.js +5 -0
  1082. node_ui/node_modules/lodash/fp/take.js +5 -0
  1083. node_ui/node_modules/lodash/fp/takeLast.js +1 -0
  1084. node_ui/node_modules/lodash/fp/takeLastWhile.js +1 -0
  1085. node_ui/node_modules/lodash/fp/takeRight.js +5 -0
  1086. node_ui/node_modules/lodash/fp/takeRightWhile.js +5 -0
  1087. node_ui/node_modules/lodash/fp/takeWhile.js +5 -0
  1088. node_ui/node_modules/lodash/fp/tap.js +5 -0
  1089. node_ui/node_modules/lodash/fp/template.js +5 -0
  1090. node_ui/node_modules/lodash/fp/templateSettings.js +5 -0
  1091. node_ui/node_modules/lodash/fp/throttle.js +5 -0
  1092. node_ui/node_modules/lodash/fp/thru.js +5 -0
  1093. node_ui/node_modules/lodash/fp/times.js +5 -0
  1094. node_ui/node_modules/lodash/fp/toArray.js +5 -0
  1095. node_ui/node_modules/lodash/fp/toFinite.js +5 -0
  1096. node_ui/node_modules/lodash/fp/toInteger.js +5 -0
  1097. node_ui/node_modules/lodash/fp/toIterator.js +5 -0
  1098. node_ui/node_modules/lodash/fp/toJSON.js +5 -0
  1099. node_ui/node_modules/lodash/fp/toLength.js +5 -0
  1100. node_ui/node_modules/lodash/fp/toLower.js +5 -0
  1101. node_ui/node_modules/lodash/fp/toNumber.js +5 -0
  1102. node_ui/node_modules/lodash/fp/toPairs.js +5 -0
  1103. node_ui/node_modules/lodash/fp/toPairsIn.js +5 -0
  1104. node_ui/node_modules/lodash/fp/toPath.js +5 -0
  1105. node_ui/node_modules/lodash/fp/toPlainObject.js +5 -0
  1106. node_ui/node_modules/lodash/fp/toSafeInteger.js +5 -0
  1107. node_ui/node_modules/lodash/fp/toString.js +5 -0
  1108. node_ui/node_modules/lodash/fp/toUpper.js +5 -0
  1109. node_ui/node_modules/lodash/fp/transform.js +5 -0
  1110. node_ui/node_modules/lodash/fp/trim.js +5 -0
  1111. node_ui/node_modules/lodash/fp/trimChars.js +5 -0
  1112. node_ui/node_modules/lodash/fp/trimCharsEnd.js +5 -0
  1113. node_ui/node_modules/lodash/fp/trimCharsStart.js +5 -0
  1114. node_ui/node_modules/lodash/fp/trimEnd.js +5 -0
  1115. node_ui/node_modules/lodash/fp/trimStart.js +5 -0
  1116. node_ui/node_modules/lodash/fp/truncate.js +5 -0
  1117. node_ui/node_modules/lodash/fp/unapply.js +1 -0
  1118. node_ui/node_modules/lodash/fp/unary.js +5 -0
  1119. node_ui/node_modules/lodash/fp/unescape.js +5 -0
  1120. node_ui/node_modules/lodash/fp/union.js +5 -0
  1121. node_ui/node_modules/lodash/fp/unionBy.js +5 -0
  1122. node_ui/node_modules/lodash/fp/unionWith.js +5 -0
  1123. node_ui/node_modules/lodash/fp/uniq.js +5 -0
  1124. node_ui/node_modules/lodash/fp/uniqBy.js +5 -0
  1125. node_ui/node_modules/lodash/fp/uniqWith.js +5 -0
  1126. node_ui/node_modules/lodash/fp/uniqueId.js +5 -0
  1127. node_ui/node_modules/lodash/fp/unnest.js +1 -0
  1128. node_ui/node_modules/lodash/fp/unset.js +5 -0
  1129. node_ui/node_modules/lodash/fp/unzip.js +5 -0
  1130. node_ui/node_modules/lodash/fp/unzipWith.js +5 -0
  1131. node_ui/node_modules/lodash/fp/update.js +5 -0
  1132. node_ui/node_modules/lodash/fp/updateWith.js +5 -0
  1133. node_ui/node_modules/lodash/fp/upperCase.js +5 -0
  1134. node_ui/node_modules/lodash/fp/upperFirst.js +5 -0
  1135. node_ui/node_modules/lodash/fp/useWith.js +1 -0
  1136. node_ui/node_modules/lodash/fp/util.js +2 -0
  1137. node_ui/node_modules/lodash/fp/value.js +5 -0
  1138. node_ui/node_modules/lodash/fp/valueOf.js +5 -0
  1139. node_ui/node_modules/lodash/fp/values.js +5 -0
  1140. node_ui/node_modules/lodash/fp/valuesIn.js +5 -0
  1141. node_ui/node_modules/lodash/fp/where.js +1 -0
  1142. node_ui/node_modules/lodash/fp/whereEq.js +1 -0
  1143. node_ui/node_modules/lodash/fp/without.js +5 -0
  1144. node_ui/node_modules/lodash/fp/words.js +5 -0
  1145. node_ui/node_modules/lodash/fp/wrap.js +5 -0
  1146. node_ui/node_modules/lodash/fp/wrapperAt.js +5 -0
  1147. node_ui/node_modules/lodash/fp/wrapperChain.js +5 -0
  1148. node_ui/node_modules/lodash/fp/wrapperLodash.js +5 -0
  1149. node_ui/node_modules/lodash/fp/wrapperReverse.js +5 -0
  1150. node_ui/node_modules/lodash/fp/wrapperValue.js +5 -0
  1151. node_ui/node_modules/lodash/fp/xor.js +5 -0
  1152. node_ui/node_modules/lodash/fp/xorBy.js +5 -0
  1153. node_ui/node_modules/lodash/fp/xorWith.js +5 -0
  1154. node_ui/node_modules/lodash/fp/zip.js +5 -0
  1155. node_ui/node_modules/lodash/fp/zipAll.js +5 -0
  1156. node_ui/node_modules/lodash/fp/zipObj.js +1 -0
  1157. node_ui/node_modules/lodash/fp/zipObject.js +5 -0
  1158. node_ui/node_modules/lodash/fp/zipObjectDeep.js +5 -0
  1159. node_ui/node_modules/lodash/fp/zipWith.js +5 -0
  1160. node_ui/node_modules/lodash/fp.js +2 -0
  1161. node_ui/node_modules/lodash/fromPairs.js +28 -0
  1162. node_ui/node_modules/lodash/function.js +25 -0
  1163. node_ui/node_modules/lodash/functions.js +31 -0
  1164. node_ui/node_modules/lodash/functionsIn.js +31 -0
  1165. node_ui/node_modules/lodash/get.js +33 -0
  1166. node_ui/node_modules/lodash/groupBy.js +41 -0
  1167. node_ui/node_modules/lodash/gt.js +29 -0
  1168. node_ui/node_modules/lodash/gte.js +30 -0
  1169. node_ui/node_modules/lodash/has.js +35 -0
  1170. node_ui/node_modules/lodash/hasIn.js +34 -0
  1171. node_ui/node_modules/lodash/head.js +23 -0
  1172. node_ui/node_modules/lodash/identity.js +21 -0
  1173. node_ui/node_modules/lodash/inRange.js +55 -0
  1174. node_ui/node_modules/lodash/includes.js +53 -0
  1175. node_ui/node_modules/lodash/index.js +1 -0
  1176. node_ui/node_modules/lodash/indexOf.js +42 -0
  1177. node_ui/node_modules/lodash/initial.js +22 -0
  1178. node_ui/node_modules/lodash/intersection.js +30 -0
  1179. node_ui/node_modules/lodash/intersectionBy.js +45 -0
  1180. node_ui/node_modules/lodash/intersectionWith.js +41 -0
  1181. node_ui/node_modules/lodash/invert.js +42 -0
  1182. node_ui/node_modules/lodash/invertBy.js +56 -0
  1183. node_ui/node_modules/lodash/invoke.js +24 -0
  1184. node_ui/node_modules/lodash/invokeMap.js +41 -0
  1185. node_ui/node_modules/lodash/isArguments.js +36 -0
  1186. node_ui/node_modules/lodash/isArray.js +26 -0
  1187. node_ui/node_modules/lodash/isArrayBuffer.js +27 -0
  1188. node_ui/node_modules/lodash/isArrayLike.js +33 -0
  1189. node_ui/node_modules/lodash/isArrayLikeObject.js +33 -0
  1190. node_ui/node_modules/lodash/isBoolean.js +29 -0
  1191. node_ui/node_modules/lodash/isBuffer.js +38 -0
  1192. node_ui/node_modules/lodash/isDate.js +27 -0
  1193. node_ui/node_modules/lodash/isElement.js +25 -0
  1194. node_ui/node_modules/lodash/isEmpty.js +77 -0
  1195. node_ui/node_modules/lodash/isEqual.js +35 -0
  1196. node_ui/node_modules/lodash/isEqualWith.js +41 -0
  1197. node_ui/node_modules/lodash/isError.js +36 -0
  1198. node_ui/node_modules/lodash/isFinite.js +36 -0
  1199. node_ui/node_modules/lodash/isFunction.js +37 -0
  1200. node_ui/node_modules/lodash/isInteger.js +33 -0
  1201. node_ui/node_modules/lodash/isLength.js +35 -0
  1202. node_ui/node_modules/lodash/isMap.js +27 -0
  1203. node_ui/node_modules/lodash/isMatch.js +36 -0
  1204. node_ui/node_modules/lodash/isMatchWith.js +41 -0
  1205. node_ui/node_modules/lodash/isNaN.js +38 -0
  1206. node_ui/node_modules/lodash/isNative.js +40 -0
  1207. node_ui/node_modules/lodash/isNil.js +25 -0
  1208. node_ui/node_modules/lodash/isNull.js +22 -0
  1209. node_ui/node_modules/lodash/isNumber.js +38 -0
  1210. node_ui/node_modules/lodash/isObject.js +31 -0
  1211. node_ui/node_modules/lodash/isObjectLike.js +29 -0
  1212. node_ui/node_modules/lodash/isPlainObject.js +62 -0
  1213. node_ui/node_modules/lodash/isRegExp.js +27 -0
  1214. node_ui/node_modules/lodash/isSafeInteger.js +37 -0
  1215. node_ui/node_modules/lodash/isSet.js +27 -0
  1216. node_ui/node_modules/lodash/isString.js +30 -0
  1217. node_ui/node_modules/lodash/isSymbol.js +29 -0
  1218. node_ui/node_modules/lodash/isTypedArray.js +27 -0
  1219. node_ui/node_modules/lodash/isUndefined.js +22 -0
  1220. node_ui/node_modules/lodash/isWeakMap.js +28 -0
  1221. node_ui/node_modules/lodash/isWeakSet.js +28 -0
  1222. node_ui/node_modules/lodash/iteratee.js +53 -0
  1223. node_ui/node_modules/lodash/join.js +26 -0
  1224. node_ui/node_modules/lodash/kebabCase.js +28 -0
  1225. node_ui/node_modules/lodash/keyBy.js +36 -0
  1226. node_ui/node_modules/lodash/keys.js +37 -0
  1227. node_ui/node_modules/lodash/keysIn.js +32 -0
  1228. node_ui/node_modules/lodash/lang.js +58 -0
  1229. node_ui/node_modules/lodash/last.js +20 -0
  1230. node_ui/node_modules/lodash/lastIndexOf.js +46 -0
  1231. node_ui/node_modules/lodash/lodash.js +17209 -0
  1232. node_ui/node_modules/lodash/lodash.min.js +140 -0
  1233. node_ui/node_modules/lodash/lowerCase.js +27 -0
  1234. node_ui/node_modules/lodash/lowerFirst.js +22 -0
  1235. node_ui/node_modules/lodash/lt.js +29 -0
  1236. node_ui/node_modules/lodash/lte.js +30 -0
  1237. node_ui/node_modules/lodash/map.js +53 -0
  1238. node_ui/node_modules/lodash/mapKeys.js +36 -0
  1239. node_ui/node_modules/lodash/mapValues.js +43 -0
  1240. node_ui/node_modules/lodash/matches.js +46 -0
  1241. node_ui/node_modules/lodash/matchesProperty.js +44 -0
  1242. node_ui/node_modules/lodash/math.js +17 -0
  1243. node_ui/node_modules/lodash/max.js +29 -0
  1244. node_ui/node_modules/lodash/maxBy.js +34 -0
  1245. node_ui/node_modules/lodash/mean.js +22 -0
  1246. node_ui/node_modules/lodash/meanBy.js +31 -0
  1247. node_ui/node_modules/lodash/memoize.js +73 -0
  1248. node_ui/node_modules/lodash/merge.js +39 -0
  1249. node_ui/node_modules/lodash/mergeWith.js +39 -0
  1250. node_ui/node_modules/lodash/method.js +34 -0
  1251. node_ui/node_modules/lodash/methodOf.js +33 -0
  1252. node_ui/node_modules/lodash/min.js +29 -0
  1253. node_ui/node_modules/lodash/minBy.js +34 -0
  1254. node_ui/node_modules/lodash/mixin.js +74 -0
  1255. node_ui/node_modules/lodash/multiply.js +22 -0
  1256. node_ui/node_modules/lodash/negate.js +40 -0
  1257. node_ui/node_modules/lodash/next.js +35 -0
  1258. node_ui/node_modules/lodash/noop.js +17 -0
  1259. node_ui/node_modules/lodash/now.js +23 -0
  1260. node_ui/node_modules/lodash/nth.js +29 -0
  1261. node_ui/node_modules/lodash/nthArg.js +32 -0
  1262. node_ui/node_modules/lodash/number.js +5 -0
  1263. node_ui/node_modules/lodash/object.js +49 -0
  1264. node_ui/node_modules/lodash/omit.js +57 -0
  1265. node_ui/node_modules/lodash/omitBy.js +29 -0
  1266. node_ui/node_modules/lodash/once.js +25 -0
  1267. node_ui/node_modules/lodash/orderBy.js +47 -0
  1268. node_ui/node_modules/lodash/over.js +24 -0
  1269. node_ui/node_modules/lodash/overArgs.js +61 -0
  1270. node_ui/node_modules/lodash/overEvery.js +34 -0
  1271. node_ui/node_modules/lodash/overSome.js +37 -0
  1272. node_ui/node_modules/lodash/package.json +17 -0
  1273. node_ui/node_modules/lodash/pad.js +49 -0
  1274. node_ui/node_modules/lodash/padEnd.js +39 -0
  1275. node_ui/node_modules/lodash/padStart.js +39 -0
  1276. node_ui/node_modules/lodash/parseInt.js +43 -0
  1277. node_ui/node_modules/lodash/partial.js +50 -0
  1278. node_ui/node_modules/lodash/partialRight.js +49 -0
  1279. node_ui/node_modules/lodash/partition.js +43 -0
  1280. node_ui/node_modules/lodash/pick.js +25 -0
  1281. node_ui/node_modules/lodash/pickBy.js +37 -0
  1282. node_ui/node_modules/lodash/plant.js +48 -0
  1283. node_ui/node_modules/lodash/property.js +32 -0
  1284. node_ui/node_modules/lodash/propertyOf.js +30 -0
  1285. node_ui/node_modules/lodash/pull.js +29 -0
  1286. node_ui/node_modules/lodash/pullAll.js +29 -0
  1287. node_ui/node_modules/lodash/pullAllBy.js +33 -0
  1288. node_ui/node_modules/lodash/pullAllWith.js +32 -0
  1289. node_ui/node_modules/lodash/pullAt.js +43 -0
  1290. node_ui/node_modules/lodash/random.js +82 -0
  1291. node_ui/node_modules/lodash/range.js +46 -0
  1292. node_ui/node_modules/lodash/rangeRight.js +41 -0
  1293. node_ui/node_modules/lodash/rearg.js +33 -0
  1294. node_ui/node_modules/lodash/reduce.js +51 -0
  1295. node_ui/node_modules/lodash/reduceRight.js +36 -0
  1296. node_ui/node_modules/lodash/reject.js +46 -0
  1297. node_ui/node_modules/lodash/release.md +48 -0
  1298. node_ui/node_modules/lodash/remove.js +53 -0
  1299. node_ui/node_modules/lodash/repeat.js +37 -0
  1300. node_ui/node_modules/lodash/replace.js +29 -0
  1301. node_ui/node_modules/lodash/rest.js +40 -0
  1302. node_ui/node_modules/lodash/result.js +56 -0
  1303. node_ui/node_modules/lodash/reverse.js +34 -0
  1304. node_ui/node_modules/lodash/round.js +26 -0
  1305. node_ui/node_modules/lodash/sample.js +24 -0
  1306. node_ui/node_modules/lodash/sampleSize.js +37 -0
  1307. node_ui/node_modules/lodash/seq.js +16 -0
  1308. node_ui/node_modules/lodash/set.js +35 -0
  1309. node_ui/node_modules/lodash/setWith.js +32 -0
  1310. node_ui/node_modules/lodash/shuffle.js +25 -0
  1311. node_ui/node_modules/lodash/size.js +46 -0
  1312. node_ui/node_modules/lodash/slice.js +37 -0
  1313. node_ui/node_modules/lodash/snakeCase.js +28 -0
  1314. node_ui/node_modules/lodash/some.js +51 -0
  1315. node_ui/node_modules/lodash/sortBy.js +48 -0
  1316. node_ui/node_modules/lodash/sortedIndex.js +24 -0
  1317. node_ui/node_modules/lodash/sortedIndexBy.js +33 -0
  1318. node_ui/node_modules/lodash/sortedIndexOf.js +31 -0
  1319. node_ui/node_modules/lodash/sortedLastIndex.js +25 -0
  1320. node_ui/node_modules/lodash/sortedLastIndexBy.js +33 -0
  1321. node_ui/node_modules/lodash/sortedLastIndexOf.js +31 -0
  1322. node_ui/node_modules/lodash/sortedUniq.js +24 -0
  1323. node_ui/node_modules/lodash/sortedUniqBy.js +26 -0
  1324. node_ui/node_modules/lodash/split.js +52 -0
  1325. node_ui/node_modules/lodash/spread.js +63 -0
  1326. node_ui/node_modules/lodash/startCase.js +29 -0
  1327. node_ui/node_modules/lodash/startsWith.js +39 -0
  1328. node_ui/node_modules/lodash/string.js +33 -0
  1329. node_ui/node_modules/lodash/stubArray.js +23 -0
  1330. node_ui/node_modules/lodash/stubFalse.js +18 -0
  1331. node_ui/node_modules/lodash/stubObject.js +23 -0
  1332. node_ui/node_modules/lodash/stubString.js +18 -0
  1333. node_ui/node_modules/lodash/stubTrue.js +18 -0
  1334. node_ui/node_modules/lodash/subtract.js +22 -0
  1335. node_ui/node_modules/lodash/sum.js +24 -0
  1336. node_ui/node_modules/lodash/sumBy.js +33 -0
  1337. node_ui/node_modules/lodash/tail.js +22 -0
  1338. node_ui/node_modules/lodash/take.js +37 -0
  1339. node_ui/node_modules/lodash/takeRight.js +39 -0
  1340. node_ui/node_modules/lodash/takeRightWhile.js +45 -0
  1341. node_ui/node_modules/lodash/takeWhile.js +45 -0
  1342. node_ui/node_modules/lodash/tap.js +29 -0
  1343. node_ui/node_modules/lodash/template.js +272 -0
  1344. node_ui/node_modules/lodash/templateSettings.js +67 -0
  1345. node_ui/node_modules/lodash/throttle.js +69 -0
  1346. node_ui/node_modules/lodash/thru.js +28 -0
  1347. node_ui/node_modules/lodash/times.js +51 -0
  1348. node_ui/node_modules/lodash/toArray.js +58 -0
  1349. node_ui/node_modules/lodash/toFinite.js +42 -0
  1350. node_ui/node_modules/lodash/toInteger.js +36 -0
  1351. node_ui/node_modules/lodash/toIterator.js +23 -0
  1352. node_ui/node_modules/lodash/toJSON.js +1 -0
  1353. node_ui/node_modules/lodash/toLength.js +38 -0
  1354. node_ui/node_modules/lodash/toLower.js +28 -0
  1355. node_ui/node_modules/lodash/toNumber.js +64 -0
  1356. node_ui/node_modules/lodash/toPairs.js +30 -0
  1357. node_ui/node_modules/lodash/toPairsIn.js +30 -0
  1358. node_ui/node_modules/lodash/toPath.js +33 -0
  1359. node_ui/node_modules/lodash/toPlainObject.js +32 -0
  1360. node_ui/node_modules/lodash/toSafeInteger.js +37 -0
  1361. node_ui/node_modules/lodash/toString.js +28 -0
  1362. node_ui/node_modules/lodash/toUpper.js +28 -0
  1363. node_ui/node_modules/lodash/transform.js +65 -0
  1364. node_ui/node_modules/lodash/trim.js +47 -0
  1365. node_ui/node_modules/lodash/trimEnd.js +41 -0
  1366. node_ui/node_modules/lodash/trimStart.js +43 -0
  1367. node_ui/node_modules/lodash/truncate.js +111 -0
  1368. node_ui/node_modules/lodash/unary.js +22 -0
  1369. node_ui/node_modules/lodash/unescape.js +34 -0
  1370. node_ui/node_modules/lodash/union.js +26 -0
  1371. node_ui/node_modules/lodash/unionBy.js +39 -0
  1372. node_ui/node_modules/lodash/unionWith.js +34 -0
  1373. node_ui/node_modules/lodash/uniq.js +25 -0
  1374. node_ui/node_modules/lodash/uniqBy.js +31 -0
  1375. node_ui/node_modules/lodash/uniqWith.js +28 -0
  1376. node_ui/node_modules/lodash/uniqueId.js +28 -0
  1377. node_ui/node_modules/lodash/unset.js +34 -0
  1378. node_ui/node_modules/lodash/unzip.js +45 -0
  1379. node_ui/node_modules/lodash/unzipWith.js +39 -0
  1380. node_ui/node_modules/lodash/update.js +35 -0
  1381. node_ui/node_modules/lodash/updateWith.js +33 -0
  1382. node_ui/node_modules/lodash/upperCase.js +27 -0
  1383. node_ui/node_modules/lodash/upperFirst.js +22 -0
  1384. node_ui/node_modules/lodash/util.js +34 -0
  1385. node_ui/node_modules/lodash/value.js +1 -0
  1386. node_ui/node_modules/lodash/valueOf.js +1 -0
  1387. node_ui/node_modules/lodash/values.js +34 -0
  1388. node_ui/node_modules/lodash/valuesIn.js +32 -0
  1389. node_ui/node_modules/lodash/without.js +31 -0
  1390. node_ui/node_modules/lodash/words.js +35 -0
  1391. node_ui/node_modules/lodash/wrap.js +30 -0
  1392. node_ui/node_modules/lodash/wrapperAt.js +48 -0
  1393. node_ui/node_modules/lodash/wrapperChain.js +34 -0
  1394. node_ui/node_modules/lodash/wrapperLodash.js +147 -0
  1395. node_ui/node_modules/lodash/wrapperReverse.js +44 -0
  1396. node_ui/node_modules/lodash/wrapperValue.js +21 -0
  1397. node_ui/node_modules/lodash/xor.js +28 -0
  1398. node_ui/node_modules/lodash/xorBy.js +39 -0
  1399. node_ui/node_modules/lodash/xorWith.js +34 -0
  1400. node_ui/node_modules/lodash/zip.js +22 -0
  1401. node_ui/node_modules/lodash/zipObject.js +24 -0
  1402. node_ui/node_modules/lodash/zipObjectDeep.js +23 -0
  1403. node_ui/node_modules/lodash/zipWith.js +32 -0
  1404. node_ui/node_modules/lodash.isequal/LICENSE +47 -0
  1405. node_ui/node_modules/lodash.isequal/README.md +18 -0
  1406. node_ui/node_modules/lodash.isequal/index.js +1848 -0
  1407. node_ui/node_modules/lodash.isequal/package.json +16 -0
  1408. node_ui/node_modules/loose-envify/LICENSE +21 -0
  1409. node_ui/node_modules/loose-envify/README.md +45 -0
  1410. node_ui/node_modules/loose-envify/cli.js +16 -0
  1411. node_ui/node_modules/loose-envify/custom.js +4 -0
  1412. node_ui/node_modules/loose-envify/index.js +3 -0
  1413. node_ui/node_modules/loose-envify/loose-envify.js +36 -0
  1414. node_ui/node_modules/loose-envify/package.json +36 -0
  1415. node_ui/node_modules/loose-envify/replace.js +65 -0
  1416. node_ui/node_modules/meow/build/dependencies.js +8828 -0
  1417. node_ui/node_modules/meow/build/index.d.ts +1425 -0
  1418. node_ui/node_modules/meow/build/index.js +95 -0
  1419. node_ui/node_modules/meow/build/licenses.md +1620 -0
  1420. node_ui/node_modules/meow/build/options.js +92 -0
  1421. node_ui/node_modules/meow/build/parser.js +84 -0
  1422. node_ui/node_modules/meow/build/utils.js +7 -0
  1423. node_ui/node_modules/meow/build/validate.js +122 -0
  1424. node_ui/node_modules/meow/license +9 -0
  1425. node_ui/node_modules/meow/package.json +105 -0
  1426. node_ui/node_modules/meow/readme.md +314 -0
  1427. node_ui/node_modules/mimic-fn/index.d.ts +54 -0
  1428. node_ui/node_modules/mimic-fn/index.js +13 -0
  1429. node_ui/node_modules/mimic-fn/license +9 -0
  1430. node_ui/node_modules/mimic-fn/package.json +42 -0
  1431. node_ui/node_modules/mimic-fn/readme.md +69 -0
  1432. node_ui/node_modules/onetime/index.d.ts +64 -0
  1433. node_ui/node_modules/onetime/index.js +44 -0
  1434. node_ui/node_modules/onetime/license +9 -0
  1435. node_ui/node_modules/onetime/package.json +43 -0
  1436. node_ui/node_modules/onetime/readme.md +94 -0
  1437. node_ui/node_modules/patch-console/dist/index.d.ts +4 -0
  1438. node_ui/node_modules/patch-console/dist/index.js +45 -0
  1439. node_ui/node_modules/patch-console/dist/index.js.map +1 -0
  1440. node_ui/node_modules/patch-console/license +9 -0
  1441. node_ui/node_modules/patch-console/package.json +53 -0
  1442. node_ui/node_modules/patch-console/readme.md +62 -0
  1443. node_ui/node_modules/react/LICENSE +21 -0
  1444. node_ui/node_modules/react/README.md +37 -0
  1445. node_ui/node_modules/react/cjs/react-jsx-dev-runtime.development.js +1315 -0
  1446. node_ui/node_modules/react/cjs/react-jsx-dev-runtime.production.min.js +10 -0
  1447. node_ui/node_modules/react/cjs/react-jsx-dev-runtime.profiling.min.js +10 -0
  1448. node_ui/node_modules/react/cjs/react-jsx-runtime.development.js +1333 -0
  1449. node_ui/node_modules/react/cjs/react-jsx-runtime.production.min.js +11 -0
  1450. node_ui/node_modules/react/cjs/react-jsx-runtime.profiling.min.js +11 -0
  1451. node_ui/node_modules/react/cjs/react.development.js +2740 -0
  1452. node_ui/node_modules/react/cjs/react.production.min.js +26 -0
  1453. node_ui/node_modules/react/cjs/react.shared-subset.development.js +20 -0
  1454. node_ui/node_modules/react/cjs/react.shared-subset.production.min.js +10 -0
  1455. node_ui/node_modules/react/index.js +7 -0
  1456. node_ui/node_modules/react/jsx-dev-runtime.js +7 -0
  1457. node_ui/node_modules/react/jsx-runtime.js +7 -0
  1458. node_ui/node_modules/react/package.json +47 -0
  1459. node_ui/node_modules/react/react.shared-subset.js +7 -0
  1460. node_ui/node_modules/react/umd/react.development.js +3343 -0
  1461. node_ui/node_modules/react/umd/react.production.min.js +31 -0
  1462. node_ui/node_modules/react/umd/react.profiling.min.js +31 -0
  1463. node_ui/node_modules/react-devtools-core/README.md +131 -0
  1464. node_ui/node_modules/react-devtools-core/backend.js +1 -0
  1465. node_ui/node_modules/react-devtools-core/dist/backend.js +16888 -0
  1466. node_ui/node_modules/react-devtools-core/dist/backend.js.map +1 -0
  1467. node_ui/node_modules/react-devtools-core/dist/importFile.worker.worker.js +2 -0
  1468. node_ui/node_modules/react-devtools-core/dist/importFile.worker.worker.js.map +1 -0
  1469. node_ui/node_modules/react-devtools-core/dist/parseHookNames.chunk.js +2 -0
  1470. node_ui/node_modules/react-devtools-core/dist/parseHookNames.chunk.js.map +1 -0
  1471. node_ui/node_modules/react-devtools-core/dist/parseSourceAndMetadata.worker.worker.js +2 -0
  1472. node_ui/node_modules/react-devtools-core/dist/parseSourceAndMetadata.worker.worker.js.map +1 -0
  1473. node_ui/node_modules/react-devtools-core/dist/standalone.js +3 -0
  1474. node_ui/node_modules/react-devtools-core/dist/standalone.js.LICENSE.txt +41 -0
  1475. node_ui/node_modules/react-devtools-core/dist/standalone.js.map +1 -0
  1476. node_ui/node_modules/react-devtools-core/node_modules/ws/LICENSE +21 -0
  1477. node_ui/node_modules/react-devtools-core/node_modules/ws/README.md +495 -0
  1478. node_ui/node_modules/react-devtools-core/node_modules/ws/browser.js +8 -0
  1479. node_ui/node_modules/react-devtools-core/node_modules/ws/index.js +10 -0
  1480. node_ui/node_modules/react-devtools-core/node_modules/ws/lib/buffer-util.js +129 -0
  1481. node_ui/node_modules/react-devtools-core/node_modules/ws/lib/constants.js +10 -0
  1482. node_ui/node_modules/react-devtools-core/node_modules/ws/lib/event-target.js +184 -0
  1483. node_ui/node_modules/react-devtools-core/node_modules/ws/lib/extension.js +223 -0
  1484. node_ui/node_modules/react-devtools-core/node_modules/ws/lib/limiter.js +55 -0
  1485. node_ui/node_modules/react-devtools-core/node_modules/ws/lib/permessage-deflate.js +518 -0
  1486. node_ui/node_modules/react-devtools-core/node_modules/ws/lib/receiver.js +607 -0
  1487. node_ui/node_modules/react-devtools-core/node_modules/ws/lib/sender.js +409 -0
  1488. node_ui/node_modules/react-devtools-core/node_modules/ws/lib/stream.js +180 -0
  1489. node_ui/node_modules/react-devtools-core/node_modules/ws/lib/validation.js +104 -0
  1490. node_ui/node_modules/react-devtools-core/node_modules/ws/lib/websocket-server.js +449 -0
  1491. node_ui/node_modules/react-devtools-core/node_modules/ws/lib/websocket.js +1197 -0
  1492. node_ui/node_modules/react-devtools-core/node_modules/ws/package.json +56 -0
  1493. node_ui/node_modules/react-devtools-core/package.json +38 -0
  1494. node_ui/node_modules/react-devtools-core/standalone.js +1 -0
  1495. node_ui/node_modules/react-reconciler/LICENSE +21 -0
  1496. node_ui/node_modules/react-reconciler/README.md +337 -0
  1497. node_ui/node_modules/react-reconciler/cjs/react-reconciler-constants.development.js +45 -0
  1498. node_ui/node_modules/react-reconciler/cjs/react-reconciler-constants.production.min.js +10 -0
  1499. node_ui/node_modules/react-reconciler/cjs/react-reconciler-reflection.development.js +660 -0
  1500. node_ui/node_modules/react-reconciler/cjs/react-reconciler-reflection.production.min.js +15 -0
  1501. node_ui/node_modules/react-reconciler/cjs/react-reconciler.development.js +21531 -0
  1502. node_ui/node_modules/react-reconciler/cjs/react-reconciler.production.min.js +234 -0
  1503. node_ui/node_modules/react-reconciler/cjs/react-reconciler.profiling.min.js +255 -0
  1504. node_ui/node_modules/react-reconciler/constants.js +7 -0
  1505. node_ui/node_modules/react-reconciler/index.js +7 -0
  1506. node_ui/node_modules/react-reconciler/package.json +40 -0
  1507. node_ui/node_modules/react-reconciler/reflection.js +7 -0
  1508. node_ui/node_modules/restore-cursor/index.d.ts +11 -0
  1509. node_ui/node_modules/restore-cursor/index.js +11 -0
  1510. node_ui/node_modules/restore-cursor/license +9 -0
  1511. node_ui/node_modules/restore-cursor/package.json +55 -0
  1512. node_ui/node_modules/restore-cursor/readme.md +31 -0
  1513. node_ui/node_modules/scheduler/LICENSE +21 -0
  1514. node_ui/node_modules/scheduler/README.md +9 -0
  1515. node_ui/node_modules/scheduler/cjs/scheduler-unstable_mock.development.js +700 -0
  1516. node_ui/node_modules/scheduler/cjs/scheduler-unstable_mock.production.min.js +20 -0
  1517. node_ui/node_modules/scheduler/cjs/scheduler-unstable_post_task.development.js +207 -0
  1518. node_ui/node_modules/scheduler/cjs/scheduler-unstable_post_task.production.min.js +14 -0
  1519. node_ui/node_modules/scheduler/cjs/scheduler.development.js +634 -0
  1520. node_ui/node_modules/scheduler/cjs/scheduler.production.min.js +19 -0
  1521. node_ui/node_modules/scheduler/index.js +7 -0
  1522. node_ui/node_modules/scheduler/package.json +36 -0
  1523. node_ui/node_modules/scheduler/umd/scheduler-unstable_mock.development.js +699 -0
  1524. node_ui/node_modules/scheduler/umd/scheduler-unstable_mock.production.min.js +19 -0
  1525. node_ui/node_modules/scheduler/umd/scheduler.development.js +152 -0
  1526. node_ui/node_modules/scheduler/umd/scheduler.production.min.js +146 -0
  1527. node_ui/node_modules/scheduler/umd/scheduler.profiling.min.js +146 -0
  1528. node_ui/node_modules/scheduler/unstable_mock.js +7 -0
  1529. node_ui/node_modules/scheduler/unstable_post_task.js +7 -0
  1530. node_ui/node_modules/shell-quote/.eslintrc +30 -0
  1531. node_ui/node_modules/shell-quote/.github/FUNDING.yml +12 -0
  1532. node_ui/node_modules/shell-quote/.nycrc +14 -0
  1533. node_ui/node_modules/shell-quote/LICENSE +24 -0
  1534. node_ui/node_modules/shell-quote/README.md +161 -0
  1535. node_ui/node_modules/shell-quote/index.js +4 -0
  1536. node_ui/node_modules/shell-quote/package.json +72 -0
  1537. node_ui/node_modules/shell-quote/parse.js +226 -0
  1538. node_ui/node_modules/shell-quote/print.py +3 -0
  1539. node_ui/node_modules/shell-quote/quote.js +19 -0
  1540. node_ui/node_modules/shell-quote/security.md +11 -0
  1541. node_ui/node_modules/shell-quote/test/comment.js +16 -0
  1542. node_ui/node_modules/shell-quote/test/env.js +52 -0
  1543. node_ui/node_modules/shell-quote/test/env_fn.js +21 -0
  1544. node_ui/node_modules/shell-quote/test/op.js +102 -0
  1545. node_ui/node_modules/shell-quote/test/parse.js +44 -0
  1546. node_ui/node_modules/shell-quote/test/quote.js +60 -0
  1547. node_ui/node_modules/shell-quote/test/set.js +31 -0
  1548. node_ui/node_modules/signal-exit/LICENSE.txt +16 -0
  1549. node_ui/node_modules/signal-exit/README.md +39 -0
  1550. node_ui/node_modules/signal-exit/index.js +202 -0
  1551. node_ui/node_modules/signal-exit/package.json +38 -0
  1552. node_ui/node_modules/signal-exit/signals.js +53 -0
  1553. node_ui/node_modules/slice-ansi/index.d.ts +19 -0
  1554. node_ui/node_modules/slice-ansi/index.js +169 -0
  1555. node_ui/node_modules/slice-ansi/license +10 -0
  1556. node_ui/node_modules/slice-ansi/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
  1557. node_ui/node_modules/slice-ansi/node_modules/is-fullwidth-code-point/index.js +12 -0
  1558. node_ui/node_modules/slice-ansi/node_modules/is-fullwidth-code-point/license +9 -0
  1559. node_ui/node_modules/slice-ansi/node_modules/is-fullwidth-code-point/package.json +53 -0
  1560. node_ui/node_modules/slice-ansi/node_modules/is-fullwidth-code-point/readme.md +31 -0
  1561. node_ui/node_modules/slice-ansi/package.json +58 -0
  1562. node_ui/node_modules/slice-ansi/readme.md +54 -0
  1563. node_ui/node_modules/stack-utils/LICENSE.md +21 -0
  1564. node_ui/node_modules/stack-utils/index.js +344 -0
  1565. node_ui/node_modules/stack-utils/node_modules/escape-string-regexp/index.d.ts +18 -0
  1566. node_ui/node_modules/stack-utils/node_modules/escape-string-regexp/index.js +11 -0
  1567. node_ui/node_modules/stack-utils/node_modules/escape-string-regexp/license +9 -0
  1568. node_ui/node_modules/stack-utils/node_modules/escape-string-regexp/package.json +43 -0
  1569. node_ui/node_modules/stack-utils/node_modules/escape-string-regexp/readme.md +29 -0
  1570. node_ui/node_modules/stack-utils/package.json +39 -0
  1571. node_ui/node_modules/stack-utils/readme.md +143 -0
  1572. node_ui/node_modules/string-width/index.d.ts +39 -0
  1573. node_ui/node_modules/string-width/index.js +82 -0
  1574. node_ui/node_modules/string-width/license +9 -0
  1575. node_ui/node_modules/string-width/package.json +64 -0
  1576. node_ui/node_modules/string-width/readme.md +66 -0
  1577. node_ui/node_modules/strip-ansi/index.d.ts +15 -0
  1578. node_ui/node_modules/strip-ansi/index.js +14 -0
  1579. node_ui/node_modules/strip-ansi/license +9 -0
  1580. node_ui/node_modules/strip-ansi/package.json +59 -0
  1581. node_ui/node_modules/strip-ansi/readme.md +37 -0
  1582. node_ui/node_modules/to-rotated/index.d.ts +18 -0
  1583. node_ui/node_modules/to-rotated/index.js +24 -0
  1584. node_ui/node_modules/to-rotated/license +9 -0
  1585. node_ui/node_modules/to-rotated/package.json +46 -0
  1586. node_ui/node_modules/to-rotated/readme.md +29 -0
  1587. node_ui/node_modules/type-fest/index.d.ts +178 -0
  1588. node_ui/node_modules/type-fest/license-cc0 +121 -0
  1589. node_ui/node_modules/type-fest/license-mit +9 -0
  1590. node_ui/node_modules/type-fest/package.json +91 -0
  1591. node_ui/node_modules/type-fest/readme.md +1060 -0
  1592. node_ui/node_modules/type-fest/source/all-union-fields.d.ts +88 -0
  1593. node_ui/node_modules/type-fest/source/and.d.ts +25 -0
  1594. node_ui/node_modules/type-fest/source/array-indices.d.ts +23 -0
  1595. node_ui/node_modules/type-fest/source/array-slice.d.ts +109 -0
  1596. node_ui/node_modules/type-fest/source/array-splice.d.ts +99 -0
  1597. node_ui/node_modules/type-fest/source/array-tail.d.ts +76 -0
  1598. node_ui/node_modules/type-fest/source/array-values.d.ts +22 -0
  1599. node_ui/node_modules/type-fest/source/arrayable.d.ts +29 -0
  1600. node_ui/node_modules/type-fest/source/async-return-type.d.ts +23 -0
  1601. node_ui/node_modules/type-fest/source/asyncify.d.ts +32 -0
  1602. node_ui/node_modules/type-fest/source/basic.d.ts +68 -0
  1603. node_ui/node_modules/type-fest/source/camel-case.d.ts +89 -0
  1604. node_ui/node_modules/type-fest/source/camel-cased-properties-deep.d.ts +97 -0
  1605. node_ui/node_modules/type-fest/source/camel-cased-properties.d.ts +43 -0
  1606. node_ui/node_modules/type-fest/source/conditional-except.d.ts +45 -0
  1607. node_ui/node_modules/type-fest/source/conditional-keys.d.ts +47 -0
  1608. node_ui/node_modules/type-fest/source/conditional-pick-deep.d.ts +118 -0
  1609. node_ui/node_modules/type-fest/source/conditional-pick.d.ts +44 -0
  1610. node_ui/node_modules/type-fest/source/conditional-simplify.d.ts +32 -0
  1611. node_ui/node_modules/type-fest/source/delimiter-case.d.ts +78 -0
  1612. node_ui/node_modules/type-fest/source/delimiter-cased-properties-deep.d.ts +106 -0
  1613. node_ui/node_modules/type-fest/source/delimiter-cased-properties.d.ts +46 -0
  1614. node_ui/node_modules/type-fest/source/distributed-omit.d.ts +89 -0
  1615. node_ui/node_modules/type-fest/source/distributed-pick.d.ts +85 -0
  1616. node_ui/node_modules/type-fest/source/empty-object.d.ts +46 -0
  1617. node_ui/node_modules/type-fest/source/enforce-optional.d.ts +47 -0
  1618. node_ui/node_modules/type-fest/source/entries.d.ts +62 -0
  1619. node_ui/node_modules/type-fest/source/entry.d.ts +65 -0
  1620. node_ui/node_modules/type-fest/source/exact.d.ts +68 -0
  1621. node_ui/node_modules/type-fest/source/except.d.ts +108 -0
  1622. node_ui/node_modules/type-fest/source/find-global-type.d.ts +64 -0
  1623. node_ui/node_modules/type-fest/source/fixed-length-array.d.ts +43 -0
  1624. node_ui/node_modules/type-fest/source/get.d.ts +219 -0
  1625. node_ui/node_modules/type-fest/source/global-this.d.ts +21 -0
  1626. node_ui/node_modules/type-fest/source/greater-than-or-equal.d.ts +22 -0
  1627. node_ui/node_modules/type-fest/source/greater-than.d.ts +56 -0
  1628. node_ui/node_modules/type-fest/source/has-optional-keys.d.ts +21 -0
  1629. node_ui/node_modules/type-fest/source/has-readonly-keys.d.ts +21 -0
  1630. node_ui/node_modules/type-fest/source/has-required-keys.d.ts +59 -0
  1631. node_ui/node_modules/type-fest/source/has-writable-keys.d.ts +21 -0
  1632. node_ui/node_modules/type-fest/source/if-any.d.ts +24 -0
  1633. node_ui/node_modules/type-fest/source/if-empty-object.d.ts +26 -0
  1634. node_ui/node_modules/type-fest/source/if-never.d.ts +24 -0
  1635. node_ui/node_modules/type-fest/source/if-null.d.ts +24 -0
  1636. node_ui/node_modules/type-fest/source/if-unknown.d.ts +24 -0
  1637. node_ui/node_modules/type-fest/source/includes.d.ts +22 -0
  1638. node_ui/node_modules/type-fest/source/int-closed-range.d.ts +35 -0
  1639. node_ui/node_modules/type-fest/source/int-range.d.ts +55 -0
  1640. node_ui/node_modules/type-fest/source/internal/array.d.ts +126 -0
  1641. node_ui/node_modules/type-fest/source/internal/characters.d.ts +67 -0
  1642. node_ui/node_modules/type-fest/source/internal/index.d.ts +8 -0
  1643. node_ui/node_modules/type-fest/source/internal/keys.d.ts +97 -0
  1644. node_ui/node_modules/type-fest/source/internal/numeric.d.ts +118 -0
  1645. node_ui/node_modules/type-fest/source/internal/object.d.ts +236 -0
  1646. node_ui/node_modules/type-fest/source/internal/string.d.ts +210 -0
  1647. node_ui/node_modules/type-fest/source/internal/tuple.d.ts +90 -0
  1648. node_ui/node_modules/type-fest/source/internal/type.d.ts +139 -0
  1649. node_ui/node_modules/type-fest/source/invariant-of.d.ts +76 -0
  1650. node_ui/node_modules/type-fest/source/is-any.d.ts +33 -0
  1651. node_ui/node_modules/type-fest/source/is-equal.d.ts +31 -0
  1652. node_ui/node_modules/type-fest/source/is-float.d.ts +41 -0
  1653. node_ui/node_modules/type-fest/source/is-integer.d.ts +58 -0
  1654. node_ui/node_modules/type-fest/source/is-literal.d.ts +296 -0
  1655. node_ui/node_modules/type-fest/source/is-never.d.ts +42 -0
  1656. node_ui/node_modules/type-fest/source/is-null.d.ts +20 -0
  1657. node_ui/node_modules/type-fest/source/is-tuple.d.ts +89 -0
  1658. node_ui/node_modules/type-fest/source/is-unknown.d.ts +52 -0
  1659. node_ui/node_modules/type-fest/source/iterable-element.d.ts +64 -0
  1660. node_ui/node_modules/type-fest/source/join.d.ts +68 -0
  1661. node_ui/node_modules/type-fest/source/jsonifiable.d.ts +37 -0
  1662. node_ui/node_modules/type-fest/source/jsonify.d.ts +122 -0
  1663. node_ui/node_modules/type-fest/source/kebab-case.d.ts +44 -0
  1664. node_ui/node_modules/type-fest/source/kebab-cased-properties-deep.d.ts +63 -0
  1665. node_ui/node_modules/type-fest/source/kebab-cased-properties.d.ts +40 -0
  1666. node_ui/node_modules/type-fest/source/keys-of-union.d.ts +42 -0
  1667. node_ui/node_modules/type-fest/source/last-array-element.d.ts +38 -0
  1668. node_ui/node_modules/type-fest/source/less-than-or-equal.d.ts +22 -0
  1669. node_ui/node_modules/type-fest/source/less-than.d.ts +26 -0
  1670. node_ui/node_modules/type-fest/source/literal-to-primitive-deep.d.ts +36 -0
  1671. node_ui/node_modules/type-fest/source/literal-to-primitive.d.ts +36 -0
  1672. node_ui/node_modules/type-fest/source/literal-union.d.ts +37 -0
  1673. node_ui/node_modules/type-fest/source/merge-deep.d.ts +486 -0
  1674. node_ui/node_modules/type-fest/source/merge-exclusive.d.ts +41 -0
  1675. node_ui/node_modules/type-fest/source/merge.d.ts +48 -0
  1676. node_ui/node_modules/type-fest/source/multidimensional-array.d.ts +44 -0
  1677. node_ui/node_modules/type-fest/source/multidimensional-readonly-array.d.ts +48 -0
  1678. node_ui/node_modules/type-fest/source/non-empty-object.d.ts +35 -0
  1679. node_ui/node_modules/type-fest/source/non-empty-string.d.ts +28 -0
  1680. node_ui/node_modules/type-fest/source/non-empty-tuple.d.ts +21 -0
  1681. node_ui/node_modules/type-fest/source/numeric.d.ts +222 -0
  1682. node_ui/node_modules/type-fest/source/observable-like.d.ts +63 -0
  1683. node_ui/node_modules/type-fest/source/omit-deep.d.ts +167 -0
  1684. node_ui/node_modules/type-fest/source/omit-index-signature.d.ts +95 -0
  1685. node_ui/node_modules/type-fest/source/opaque.d.ts +1 -0
  1686. node_ui/node_modules/type-fest/source/optional-keys-of.d.ts +39 -0
  1687. node_ui/node_modules/type-fest/source/or.d.ts +25 -0
  1688. node_ui/node_modules/type-fest/source/override-properties.d.ts +36 -0
  1689. node_ui/node_modules/type-fest/source/package-json.d.ts +676 -0
  1690. node_ui/node_modules/type-fest/source/partial-deep.d.ts +151 -0
  1691. node_ui/node_modules/type-fest/source/partial-on-undefined-deep.d.ts +78 -0
  1692. node_ui/node_modules/type-fest/source/pascal-case.d.ts +42 -0
  1693. node_ui/node_modules/type-fest/source/pascal-cased-properties-deep.d.ts +62 -0
  1694. node_ui/node_modules/type-fest/source/pascal-cased-properties.d.ts +36 -0
  1695. node_ui/node_modules/type-fest/source/paths.d.ts +262 -0
  1696. node_ui/node_modules/type-fest/source/pick-deep.d.ts +149 -0
  1697. node_ui/node_modules/type-fest/source/pick-index-signature.d.ts +50 -0
  1698. node_ui/node_modules/type-fest/source/primitive.d.ts +13 -0
  1699. node_ui/node_modules/type-fest/source/promisable.d.ts +25 -0
  1700. node_ui/node_modules/type-fest/source/readonly-deep.d.ts +81 -0
  1701. node_ui/node_modules/type-fest/source/readonly-keys-of.d.ts +30 -0
  1702. node_ui/node_modules/type-fest/source/readonly-tuple.d.ts +41 -0
  1703. node_ui/node_modules/type-fest/source/replace.d.ts +85 -0
  1704. node_ui/node_modules/type-fest/source/require-all-or-none.d.ts +51 -0
  1705. node_ui/node_modules/type-fest/source/require-at-least-one.d.ts +47 -0
  1706. node_ui/node_modules/type-fest/source/require-exactly-one.d.ts +45 -0
  1707. node_ui/node_modules/type-fest/source/require-one-or-none.d.ts +46 -0
  1708. node_ui/node_modules/type-fest/source/required-deep.d.ts +78 -0
  1709. node_ui/node_modules/type-fest/source/required-keys-of.d.ts +30 -0
  1710. node_ui/node_modules/type-fest/source/schema.d.ts +114 -0
  1711. node_ui/node_modules/type-fest/source/screaming-snake-case.d.ts +28 -0
  1712. node_ui/node_modules/type-fest/source/set-field-type.d.ts +65 -0
  1713. node_ui/node_modules/type-fest/source/set-non-nullable-deep.d.ts +83 -0
  1714. node_ui/node_modules/type-fest/source/set-non-nullable.d.ts +39 -0
  1715. node_ui/node_modules/type-fest/source/set-optional.d.ts +38 -0
  1716. node_ui/node_modules/type-fest/source/set-parameter-type.d.ts +117 -0
  1717. node_ui/node_modules/type-fest/source/set-readonly.d.ts +39 -0
  1718. node_ui/node_modules/type-fest/source/set-required-deep.d.ts +68 -0
  1719. node_ui/node_modules/type-fest/source/set-required.d.ts +70 -0
  1720. node_ui/node_modules/type-fest/source/set-return-type.d.ts +29 -0
  1721. node_ui/node_modules/type-fest/source/shared-union-fields-deep.d.ts +178 -0
  1722. node_ui/node_modules/type-fest/source/shared-union-fields.d.ts +76 -0
  1723. node_ui/node_modules/type-fest/source/simplify-deep.d.ts +115 -0
  1724. node_ui/node_modules/type-fest/source/simplify.d.ts +58 -0
  1725. node_ui/node_modules/type-fest/source/single-key-object.d.ts +29 -0
  1726. node_ui/node_modules/type-fest/source/snake-case.d.ts +45 -0
  1727. node_ui/node_modules/type-fest/source/snake-cased-properties-deep.d.ts +63 -0
  1728. node_ui/node_modules/type-fest/source/snake-cased-properties.d.ts +40 -0
  1729. node_ui/node_modules/type-fest/source/split.d.ts +88 -0
  1730. node_ui/node_modules/type-fest/source/spread.d.ts +84 -0
  1731. node_ui/node_modules/type-fest/source/string-key-of.d.ts +25 -0
  1732. node_ui/node_modules/type-fest/source/string-repeat.d.ts +47 -0
  1733. node_ui/node_modules/type-fest/source/string-slice.d.ts +37 -0
  1734. node_ui/node_modules/type-fest/source/stringified.d.ts +23 -0
  1735. node_ui/node_modules/type-fest/source/structured-cloneable.d.ts +92 -0
  1736. node_ui/node_modules/type-fest/source/subtract.d.ts +83 -0
  1737. node_ui/node_modules/type-fest/source/sum.d.ts +78 -0
  1738. node_ui/node_modules/type-fest/source/tagged-union.d.ts +51 -0
  1739. node_ui/node_modules/type-fest/source/tagged.d.ts +256 -0
  1740. node_ui/node_modules/type-fest/source/trim.d.ts +27 -0
  1741. node_ui/node_modules/type-fest/source/tsconfig-json.d.ts +1294 -0
  1742. node_ui/node_modules/type-fest/source/tuple-to-object.d.ts +42 -0
  1743. node_ui/node_modules/type-fest/source/tuple-to-union.d.ts +51 -0
  1744. node_ui/node_modules/type-fest/source/typed-array.d.ts +17 -0
  1745. node_ui/node_modules/type-fest/source/undefined-on-partial-deep.d.ts +80 -0
  1746. node_ui/node_modules/type-fest/source/union-to-intersection.d.ts +61 -0
  1747. node_ui/node_modules/type-fest/source/union-to-tuple.d.ts +56 -0
  1748. node_ui/node_modules/type-fest/source/unknown-array.d.ts +25 -0
  1749. node_ui/node_modules/type-fest/source/unknown-map.d.ts +24 -0
  1750. node_ui/node_modules/type-fest/source/unknown-record.d.ts +31 -0
  1751. node_ui/node_modules/type-fest/source/unknown-set.d.ts +24 -0
  1752. node_ui/node_modules/type-fest/source/value-of.d.ts +42 -0
  1753. node_ui/node_modules/type-fest/source/words.d.ts +118 -0
  1754. node_ui/node_modules/type-fest/source/writable-deep.d.ts +83 -0
  1755. node_ui/node_modules/type-fest/source/writable-keys-of.d.ts +33 -0
  1756. node_ui/node_modules/type-fest/source/writable.d.ts +68 -0
  1757. node_ui/node_modules/widest-line/index.d.ts +12 -0
  1758. node_ui/node_modules/widest-line/index.js +11 -0
  1759. node_ui/node_modules/widest-line/license +9 -0
  1760. node_ui/node_modules/widest-line/package.json +60 -0
  1761. node_ui/node_modules/widest-line/readme.md +26 -0
  1762. node_ui/node_modules/wrap-ansi/index.d.ts +41 -0
  1763. node_ui/node_modules/wrap-ansi/index.js +222 -0
  1764. node_ui/node_modules/wrap-ansi/license +9 -0
  1765. node_ui/node_modules/wrap-ansi/package.json +69 -0
  1766. node_ui/node_modules/wrap-ansi/readme.md +75 -0
  1767. node_ui/node_modules/ws/LICENSE +20 -0
  1768. node_ui/node_modules/ws/README.md +548 -0
  1769. node_ui/node_modules/ws/browser.js +8 -0
  1770. node_ui/node_modules/ws/index.js +13 -0
  1771. node_ui/node_modules/ws/lib/buffer-util.js +131 -0
  1772. node_ui/node_modules/ws/lib/constants.js +18 -0
  1773. node_ui/node_modules/ws/lib/event-target.js +292 -0
  1774. node_ui/node_modules/ws/lib/extension.js +203 -0
  1775. node_ui/node_modules/ws/lib/limiter.js +55 -0
  1776. node_ui/node_modules/ws/lib/permessage-deflate.js +528 -0
  1777. node_ui/node_modules/ws/lib/receiver.js +706 -0
  1778. node_ui/node_modules/ws/lib/sender.js +602 -0
  1779. node_ui/node_modules/ws/lib/stream.js +161 -0
  1780. node_ui/node_modules/ws/lib/subprotocol.js +62 -0
  1781. node_ui/node_modules/ws/lib/validation.js +152 -0
  1782. node_ui/node_modules/ws/lib/websocket-server.js +550 -0
  1783. node_ui/node_modules/ws/lib/websocket.js +1388 -0
  1784. node_ui/node_modules/ws/package.json +69 -0
  1785. node_ui/node_modules/ws/wrapper.mjs +8 -0
  1786. node_ui/node_modules/yoga-wasm-web/LICENSE +21 -0
  1787. node_ui/node_modules/yoga-wasm-web/README.md +70 -0
  1788. node_ui/node_modules/yoga-wasm-web/dist/asm.d.ts +6 -0
  1789. node_ui/node_modules/yoga-wasm-web/dist/asm.js +1 -0
  1790. node_ui/node_modules/yoga-wasm-web/dist/auto.d.ts +7 -0
  1791. node_ui/node_modules/yoga-wasm-web/dist/browser.js +1 -0
  1792. node_ui/node_modules/yoga-wasm-web/dist/generated/YGEnums.d.ts +328 -0
  1793. node_ui/node_modules/yoga-wasm-web/dist/index.d.ts +7 -0
  1794. node_ui/node_modules/yoga-wasm-web/dist/index.js +1 -0
  1795. node_ui/node_modules/yoga-wasm-web/dist/node.js +1 -0
  1796. node_ui/node_modules/yoga-wasm-web/dist/wrapAsm-57389177.js +1 -0
  1797. node_ui/node_modules/yoga-wasm-web/dist/wrapAsm-f766f97f.js +1 -0
  1798. node_ui/node_modules/yoga-wasm-web/dist/wrapAsm.d.ts +176 -0
  1799. node_ui/node_modules/yoga-wasm-web/dist/yoga.wasm +0 -0
  1800. node_ui/node_modules/yoga-wasm-web/package.json +56 -0
  1801. node_ui/package.json +21 -0
  1802. claude_code_tools/codex_bridge_mcp.py +0 -333
  1803. claude_code_tools-0.2.0.dist-info/METADATA +0 -495
  1804. claude_code_tools-0.2.0.dist-info/RECORD +0 -22
  1805. {claude_code_tools-0.2.0.dist-info → claude_code_tools-1.4.1.dist-info}/licenses/LICENSE +0 -0
node_ui/menu.js ADDED
@@ -0,0 +1,2321 @@
1
+ #!/usr/bin/env node
2
+ import fs from 'fs';
3
+ import meow from 'meow';
4
+ import React, {useState} from 'react';
5
+ import {render, Box, Text, useApp, useInput, useStdout} from 'ink';
6
+ import SelectInput from 'ink-select-input';
7
+ import chalk from 'chalk';
8
+ import figures from 'figures';
9
+ import {spawnSync} from 'child_process';
10
+ import {ACTIONS, filteredActions, RESUME_SUBMENU, TRIM_SUBMENU} from './action_config.js';
11
+
12
+ const h = React.createElement;
13
+
14
+ const cli = meow(
15
+ `Usage: node menu.js --data payload.json --out result.json`,
16
+ {
17
+ importMeta: import.meta,
18
+ flags: {
19
+ data: {type: 'string', isRequired: true},
20
+ out: {type: 'string', isRequired: true},
21
+ },
22
+ }
23
+ );
24
+
25
+ const payload = JSON.parse(fs.readFileSync(cli.flags.data, 'utf8'));
26
+ const sessions = payload.sessions || [];
27
+ const keywords = payload.keywords || [];
28
+ const outPath = cli.flags.out;
29
+ const focusId = payload.focus_id || null;
30
+ const startAction = payload.start_action || false;
31
+ const startScreen = payload.start_screen || null;
32
+ const rpcPath = payload.rpc_path || null;
33
+ const scopeLine = payload.scope_line || '';
34
+ const tipLine = payload.tip_line || '';
35
+ const selectTarget = payload.select_target || 'action'; // screen after selection
36
+ const resultsTitle = payload.results_title || null; // custom title for results
37
+ const startZoomed = payload.start_zoomed || false; // start with all rows expanded
38
+ const lineageBackTarget = payload.lineage_back_target || 'resume'; // where lineage goes back to
39
+ const directAction = payload.direct_action || null; // if set, execute this action immediately after selection
40
+ // Find options form data
41
+ const findOptions = payload.find_options || {};
42
+ const findVariant = payload.find_variant || 'find'; // 'find', 'find-claude', 'find-codex'
43
+ // Trim confirmation data (for trim_confirm screen)
44
+ const trimInfo = payload.trim_info || {};
45
+ // Directory confirmation data (for dir_confirm screen)
46
+ const dirInfo = payload.dir_info || {};
47
+ const BRANCH_ICON = '';
48
+ const DATE_FMT = new Intl.DateTimeFormat('en', {
49
+ month: 'short',
50
+ day: 'numeric',
51
+ hour: '2-digit',
52
+ minute: '2-digit',
53
+ });
54
+
55
+ // MM/DD format for date display (matches Rust UI)
56
+ const DATE_DAY_FMT = new Intl.DateTimeFormat('en', {
57
+ month: '2-digit',
58
+ day: '2-digit',
59
+ });
60
+
61
+ // 24-hour time format HH:MM (matches Rust UI)
62
+ const TIME_FMT = new Intl.DateTimeFormat('en', {
63
+ hour: '2-digit',
64
+ minute: '2-digit',
65
+ hour12: false,
66
+ });
67
+
68
+ // Generate annotation string for session display
69
+ // Note: "continued" is the internal derivation_type for what users see as "rolled-over" (r)
70
+ const toAnno = (s) => {
71
+ const annos = [];
72
+ if (s.derivation_type === 'continue' || s.derivation_type === 'continuation' || s.derivation_type === 'continued' || s.is_continuation) annos.push('r');
73
+ if (s.is_trimmed || s.derivation_type === 'trim' || s.derivation_type === 'trimmed') annos.push('t');
74
+ if (s.is_sidechain) annos.push('sub');
75
+ return annos.length ? `(${annos.join(',')})` : '';
76
+ };
77
+
78
+ const formatLines = (lines) => (Number.isFinite(lines) ? `${lines} user msgs` : '');
79
+
80
+ // Minimum valid timestamp (year 2000) - timestamps below this are treated as invalid
81
+ // This prevents Unix epoch (0) from showing as "12/31 19:00" in US timezones
82
+ const MIN_VALID_TS = 946684800;
83
+
84
+ // Check if timestamp is valid (finite and reasonable)
85
+ const isValidTs = (ts) => Number.isFinite(ts) && ts >= MIN_VALID_TS;
86
+
87
+ // Format date range to match Rust UI: "MM/DD HH:MM" or "MM/DD - MM/DD HH:MM"
88
+ const formatDateRange = (start, end) => {
89
+ const validStart = isValidTs(start);
90
+ const validEnd = isValidTs(end);
91
+
92
+ if (validStart && validEnd) {
93
+ const sDay = DATE_DAY_FMT.format(new Date(start * 1000));
94
+ const eDay = DATE_DAY_FMT.format(new Date(end * 1000));
95
+ const eTime = TIME_FMT.format(new Date(end * 1000));
96
+ if (sDay === eDay) return `${eDay} ${eTime}`;
97
+ return `${sDay} - ${eDay} ${eTime}`;
98
+ }
99
+ if (validEnd) {
100
+ const eDay = DATE_DAY_FMT.format(new Date(end * 1000));
101
+ const eTime = TIME_FMT.format(new Date(end * 1000));
102
+ return `${eDay} ${eTime}`;
103
+ }
104
+ if (validStart) {
105
+ const sDay = DATE_DAY_FMT.format(new Date(start * 1000));
106
+ const sTime = TIME_FMT.format(new Date(start * 1000));
107
+ return `${sDay} ${sTime}`;
108
+ }
109
+ return '';
110
+ };
111
+
112
+ const colorize = {
113
+ agent: (txt) => chalk.magenta(txt),
114
+ project: (txt) => chalk.green(txt),
115
+ branch: (txt) => chalk.cyan(txt),
116
+ lines: (txt) => chalk.yellow(txt),
117
+ date: (txt) => chalk.blue(txt),
118
+ title: (txt) => chalk.cyan.bold(txt),
119
+ };
120
+
121
+ /**
122
+ * Format session header line with optional custom title.
123
+ * Returns array of spans for use in h(Text, null, ...spans).
124
+ *
125
+ * @param {Object} session - Session object with agent_display, session_id, lines, etc.
126
+ * @param {string} [idOverride] - Optional pre-computed id string (8 chars)
127
+ * @param {string} [annoOverride] - Optional pre-computed annotation string
128
+ * @param {string} [dateOverride] - Optional pre-computed date string
129
+ * @returns {Array} Array of chalk-styled strings/spans
130
+ */
131
+ function formatSessionHeader(session, idOverride, annoOverride, dateOverride) {
132
+ const id = idOverride || (session.session_id || '').slice(0, 8);
133
+ const anno = annoOverride !== undefined ? annoOverride : toAnno(session);
134
+ const date = dateOverride || formatDateRange(session.create_time, session.mod_time);
135
+ const customTitle = session.custom_title;
136
+
137
+ const spans = [
138
+ colorize.agent(`[${session.agent_display || 'CLAUDE'}]`), ' ',
139
+ ];
140
+
141
+ // Add custom title if present
142
+ if (customTitle) {
143
+ spans.push(colorize.title(`[${customTitle}]`), ' ');
144
+ }
145
+
146
+ spans.push(
147
+ chalk.white(id),
148
+ anno ? ` ${chalk.dim(anno)}` : '',
149
+ ' | ',
150
+ colorize.lines(formatLines(session.lines)),
151
+ ' | ',
152
+ colorize.date(date)
153
+ );
154
+
155
+ return spans;
156
+ }
157
+
158
+ // Non-TTY fallback: pick first session and resume
159
+ if (!process.stdout.isTTY) {
160
+ if (sessions.length) {
161
+ fs.writeFileSync(
162
+ outPath,
163
+ JSON.stringify({session_id: sessions[0].session_id, action: 'resume', kwargs: {}}),
164
+ 'utf8'
165
+ );
166
+ process.exit(0);
167
+ }
168
+ process.exit(1);
169
+ }
170
+
171
+ function writeResult(sessionId, action, kwargs = {}) {
172
+ const data = JSON.stringify({session_id: sessionId, action, kwargs});
173
+ const fd = fs.openSync(outPath, 'w');
174
+ fs.writeSync(fd, data);
175
+ fs.fsyncSync(fd);
176
+ fs.closeSync(fd);
177
+ }
178
+
179
+ /**
180
+ * Wrap preview text into multiple lines for display.
181
+ * @param {string} preview - The preview text
182
+ * @param {number} maxLines - Maximum number of lines (default: 6)
183
+ * @param {number} maxWidth - Maximum width per line (default: 80)
184
+ * @returns {string[]} Array of wrapped lines
185
+ */
186
+ function wrapPreviewLines(preview, maxLines = 6, maxWidth = 80) {
187
+ if (!preview) return [];
188
+ const words = preview.split(/\s+/);
189
+ const lines = [];
190
+ let currentLine = '';
191
+ for (const word of words) {
192
+ if ((currentLine + ' ' + word).length > maxWidth) {
193
+ if (currentLine) lines.push(currentLine);
194
+ currentLine = word;
195
+ if (lines.length >= maxLines) break;
196
+ } else {
197
+ currentLine = currentLine ? currentLine + ' ' + word : word;
198
+ }
199
+ }
200
+ if (currentLine && lines.length < maxLines) lines.push(currentLine);
201
+ return lines;
202
+ }
203
+
204
+ /**
205
+ * Render preview as Ink elements (Box with multiple Text lines).
206
+ * @param {string} preview - The preview text
207
+ * @param {number} maxLines - Maximum number of lines (default: 6)
208
+ * @param {number} maxWidth - Maximum width per line (default: 80)
209
+ * @param {string} indent - Indentation for each line (default: ' ')
210
+ * @returns {React.Element|null} Ink Box element or null if no preview
211
+ */
212
+ function renderPreview(preview, maxLines = 6, maxWidth = 80, indent = ' ') {
213
+ const lines = wrapPreviewLines(preview, maxLines, maxWidth);
214
+ if (lines.length === 0) return null;
215
+ return h(Box, {flexDirection: 'column'},
216
+ h(Text, {dimColor: true}, 'Preview:'),
217
+ ...lines.map((line, i) => h(Text, {key: i, dimColor: true}, indent + line))
218
+ );
219
+ }
220
+
221
+ function SessionRow({session, active, index, width, pad, isExpanded}) {
222
+ const id = (session.session_id || '').slice(0, 8);
223
+ const anno = toAnno(session);
224
+ const lines = formatLines(session.lines);
225
+ const date = formatDateRange(session.create_time, session.mod_time);
226
+ const preview = session.preview || '';
227
+ const maxPreview = Math.max(0, width - 30);
228
+ const trimmedPreview = preview.length > maxPreview
229
+ ? preview.slice(0, maxPreview - 1) + '…'
230
+ : preview;
231
+
232
+ const agentIdRaw = `[${session.agent_display}] ${id}${anno ? ' ' + anno : ''}`;
233
+ const agentIdPart = colorize.agent(agentIdRaw.padEnd(pad.agentId));
234
+ const projPart = colorize.project((session.project || '').padEnd(pad.project));
235
+ const branchRaw = session.branch ? `${BRANCH_ICON} ${session.branch}` : '';
236
+ const branchPart = colorize.branch(branchRaw.padEnd(pad.branch));
237
+ const linesPart = colorize.lines((lines || '').padEnd(pad.lines));
238
+ const datePart = colorize.date((date || '').padEnd(pad.date));
239
+ // Show [−] when expanded, [+] when collapsed (dimmed to match line brightness)
240
+ const expandIcon = chalk.dim(isExpanded ? '[−]' : '[+]');
241
+ const header = `${(index + 1).toString().padEnd(2)} ${agentIdPart} | ${projPart} | ${branchPart} | ${linesPart} | ${datePart} ${expandIcon}`;
242
+
243
+ // When expanded, show up to 4 lines of preview; when collapsed, show 1 line
244
+ const previewLines = [];
245
+ if (preview) {
246
+ if (isExpanded) {
247
+ // Split preview into multiple lines, up to 4
248
+ const words = preview.split(/\s+/);
249
+ let currentLine = '';
250
+ for (const word of words) {
251
+ if ((currentLine + ' ' + word).length > maxPreview) {
252
+ if (currentLine) previewLines.push(currentLine);
253
+ currentLine = word;
254
+ if (previewLines.length >= 4) break;
255
+ } else {
256
+ currentLine = currentLine ? currentLine + ' ' + word : word;
257
+ }
258
+ }
259
+ if (currentLine && previewLines.length < 4) previewLines.push(currentLine);
260
+ if (previewLines.length === 0) previewLines.push(trimmedPreview);
261
+ } else {
262
+ previewLines.push(trimmedPreview);
263
+ }
264
+ } else {
265
+ previewLines.push('No preview available');
266
+ }
267
+
268
+ return h(
269
+ Box,
270
+ {flexDirection: 'column'},
271
+ h(
272
+ Text,
273
+ {
274
+ color: active ? 'white' : 'white',
275
+ backgroundColor: active ? '#303030' : undefined,
276
+ },
277
+ `${active ? figures.pointer : ' '} ${header}`
278
+ ),
279
+ ...previewLines.map((line, i) =>
280
+ h(Text, {key: i, dimColor: true}, ' ' + line) // 5 spaces to align with agent name column
281
+ )
282
+ );
283
+ }
284
+
285
+ // Calculate actual line count for a session when expanded (1 header + N preview lines)
286
+ function calcExpandedLines(session, maxPreview) {
287
+ const preview = session.preview || '';
288
+ if (!preview) return 2; // header + "No preview available"
289
+ const words = preview.split(/\s+/);
290
+ let lineCount = 0;
291
+ let currentLine = '';
292
+ for (const word of words) {
293
+ if ((currentLine + ' ' + word).length > maxPreview) {
294
+ if (currentLine) lineCount++;
295
+ currentLine = word;
296
+ if (lineCount >= 4) break; // max 4 preview lines
297
+ } else {
298
+ currentLine = currentLine ? currentLine + ' ' + word : word;
299
+ }
300
+ }
301
+ if (currentLine && lineCount < 4) lineCount++;
302
+ return 1 + Math.max(1, lineCount); // header + at least 1 preview line
303
+ }
304
+
305
+ function ResultsView({onSelect, onQuit, clearScreen = () => {}, focusIndex = 0, onChangeIndex}) {
306
+ const clampIndex = React.useCallback(
307
+ (i) => Math.max(0, Math.min(i, sessions.length - 1)),
308
+ [sessions.length]
309
+ );
310
+ const initialIndex = clampIndex(focusIndex);
311
+ const [index, setIndex] = useState(initialIndex);
312
+ const [scroll, setScroll] = useState(0);
313
+ const [numBuffer, setNumBuffer] = useState('');
314
+ const [expanded, setExpanded] = useState({}); // { [session_id]: true | false }
315
+ const [zoomAll, setZoomAll] = useState(startZoomed); // global zoom state
316
+ const [resetting, setResetting] = useState(false); // "blink" state for clean re-render
317
+
318
+ const {stdout} = useStdout();
319
+ const width = stdout?.columns || 80;
320
+ const height = stdout?.rows || 24;
321
+ const headerRows = 3; // title + blank + maybe kw
322
+ const footerRows = 2; // instruction line + spacing
323
+ const availableRows = Math.max(1, height - headerRows - footerRows);
324
+ const maxPreview = Math.max(0, width - 30);
325
+
326
+ // Pre-compute actual expanded line counts for all sessions (memoized)
327
+ const expandedLineCounts = React.useMemo(
328
+ () => sessions.map(s => calcExpandedLines(s, maxPreview)),
329
+ [maxPreview]
330
+ );
331
+
332
+ // In normal mode: fixed 2 lines per item
333
+ // In zoom mode: use actual line counts, computed dynamically from scroll position
334
+ const normalMaxItems = Math.max(1, Math.floor(availableRows / 2));
335
+
336
+ // Sync with parent's focusIndex when it changes
337
+ React.useEffect(() => {
338
+ const next = clampIndex(focusIndex);
339
+ if (next !== index) {
340
+ setIndex(next);
341
+ const maxScroll = Math.max(0, sessions.length - normalMaxItems);
342
+ let nextScroll = scroll;
343
+ if (next < nextScroll) nextScroll = next;
344
+ else if (next >= nextScroll + normalMaxItems) nextScroll = next - normalMaxItems + 1;
345
+ nextScroll = Math.max(0, Math.min(nextScroll, maxScroll));
346
+ setScroll(nextScroll);
347
+ }
348
+ }, [focusIndex, clampIndex, index, normalMaxItems, scroll, sessions.length]);
349
+
350
+ // Compute visible rows, effective maxItems, and clampedScroll based on zoom state
351
+ const {visible, maxItems, clampedScroll} = React.useMemo(() => {
352
+ if (!zoomAll) {
353
+ // Normal mode: fixed height per row
354
+ const clamped = Math.max(0, Math.min(scroll, Math.max(0, sessions.length - normalMaxItems)));
355
+ return {
356
+ visible: sessions.slice(clamped, clamped + normalMaxItems),
357
+ maxItems: normalMaxItems,
358
+ clampedScroll: clamped
359
+ };
360
+ }
361
+ // Zoom mode: greedily fill viewport based on actual heights
362
+ let totalLines = 0;
363
+ let count = 0;
364
+ const clamped = Math.max(0, Math.min(scroll, sessions.length - 1));
365
+ for (let i = clamped; i < sessions.length; i++) {
366
+ const rowLines = expandedLineCounts[i];
367
+ if (totalLines + rowLines > availableRows && count > 0) break;
368
+ totalLines += rowLines;
369
+ count++;
370
+ }
371
+ return {
372
+ visible: sessions.slice(clamped, clamped + count),
373
+ maxItems: Math.max(1, count),
374
+ clampedScroll: clamped
375
+ };
376
+ }, [zoomAll, scroll, normalMaxItems, availableRows, expandedLineCounts]);
377
+
378
+ // Ensure scroll starts at top, unless focused row is below viewport
379
+ // Use normalMaxItems (not dynamic maxItems) to avoid dependency cycle
380
+ React.useEffect(() => {
381
+ const top = 0;
382
+ let nextScroll = top;
383
+ if (initialIndex >= normalMaxItems) {
384
+ nextScroll = Math.max(0, initialIndex - 1);
385
+ }
386
+ setScroll(nextScroll);
387
+ setNumBuffer('');
388
+ }, [initialIndex, normalMaxItems]);
389
+
390
+ // "Blink" effect: after rendering minimal content, immediately render actual content
391
+ // This forces Ink to do a clean re-render instead of confused incremental update
392
+ React.useEffect(() => {
393
+ if (resetting) {
394
+ const timer = setTimeout(() => setResetting(false), 0);
395
+ return () => clearTimeout(timer);
396
+ }
397
+ }, [resetting]);
398
+
399
+ // Helper to notify parent after state updates (deferred to avoid React warnings)
400
+ const notifyParent = React.useCallback((idx) => {
401
+ if (onChangeIndex) {
402
+ setTimeout(() => onChangeIndex(idx), 0);
403
+ }
404
+ }, [onChangeIndex]);
405
+
406
+ useInput((input, key) => {
407
+ if (key.escape) {
408
+ // If typing a number, clear the buffer instead of quitting
409
+ if (numBuffer) {
410
+ setNumBuffer('');
411
+ return;
412
+ }
413
+ return onQuit();
414
+ }
415
+ if (key.return) {
416
+ if (numBuffer) {
417
+ const target = Math.min(
418
+ Math.max(parseInt(numBuffer, 10) - 1, 0),
419
+ sessions.length - 1,
420
+ );
421
+ setIndex(target);
422
+ setScroll((prev) => {
423
+ if (target < prev) return target;
424
+ if (target >= prev + maxItems) return target - maxItems + 1;
425
+ return prev;
426
+ });
427
+ notifyParent(target);
428
+ setNumBuffer('');
429
+ return;
430
+ }
431
+ clearScreen();
432
+ notifyParent(index);
433
+ return onSelect(index);
434
+ }
435
+ if (key.upArrow || input === 'k') {
436
+ setIndex((i) => {
437
+ const next = Math.max(0, i - 1);
438
+ setScroll((prev) => (next < prev ? next : prev));
439
+ setNumBuffer('');
440
+ notifyParent(next);
441
+ return next;
442
+ });
443
+ }
444
+ if (key.downArrow || input === 'j') {
445
+ setIndex((i) => {
446
+ const next = Math.min(sessions.length - 1, i + 1);
447
+ setScroll((prev) => (next >= prev + maxItems ? prev + 1 : prev));
448
+ setNumBuffer('');
449
+ notifyParent(next);
450
+ return next;
451
+ });
452
+ }
453
+ // Page up with 'u' - move by maxItems
454
+ if (input === 'u') {
455
+ setIndex((i) => {
456
+ const next = Math.max(0, i - maxItems);
457
+ // Adjust scroll: if new index is above viewport, scroll to show it
458
+ setScroll((prev) => (next < prev ? next : prev));
459
+ setNumBuffer('');
460
+ notifyParent(next);
461
+ return next;
462
+ });
463
+ return;
464
+ }
465
+ // Page down with 'd' - move by maxItems
466
+ if (input === 'd') {
467
+ setIndex((i) => {
468
+ const next = Math.min(sessions.length - 1, i + maxItems);
469
+ // Adjust scroll: if new index is below viewport, scroll to show it
470
+ setScroll((prev) => {
471
+ if (next >= prev + maxItems) {
472
+ return Math.min(next, Math.max(0, sessions.length - maxItems));
473
+ }
474
+ return prev;
475
+ });
476
+ setNumBuffer('');
477
+ notifyParent(next);
478
+ return next;
479
+ });
480
+ return;
481
+ }
482
+ // SPACE toggles expansion for the currently selected row
483
+ if (input === ' ') {
484
+ const row = sessions[index];
485
+ setExpanded(prev => ({
486
+ ...prev,
487
+ [row.session_id]: !prev[row.session_id]
488
+ }));
489
+ return;
490
+ }
491
+ // 'z' toggles zoom mode (expand all rows)
492
+ // "Blink" approach: clearScreen + render minimal content first,
493
+ // then useEffect triggers second render with actual content.
494
+ // clearScreen() alone corrupted Ink's state; blink alone didn't clear old content.
495
+ // Combined: clearScreen clears terminal, minimal render resets Ink's state,
496
+ // then actual content renders fresh.
497
+ if (input === 'z' || input === 'Z') {
498
+ clearScreen();
499
+ setResetting(true);
500
+ setIndex(0);
501
+ setScroll(0);
502
+ setExpanded({}); // clear individual expansions
503
+ setZoomAll(prev => !prev);
504
+ return;
505
+ }
506
+ const num = Number(input);
507
+ if (!Number.isNaN(num) && num >= 0 && num <= 9) {
508
+ // For small selection screens (resultsTitle set), direct number selection
509
+ if (resultsTitle && num >= 1 && num <= sessions.length) {
510
+ clearScreen();
511
+ return onSelect(num - 1);
512
+ }
513
+ const candidate = (numBuffer + input).replace(/^0+/, '') || '0';
514
+ setNumBuffer(candidate);
515
+ }
516
+ });
517
+
518
+ // "Blink" render: show minimal content to reset Ink's state, then actual content renders next tick
519
+ if (resetting) {
520
+ return h(Box, {flexDirection: 'column'}, h(Text, null, ' '));
521
+ }
522
+
523
+ const kw = keywords.join(', ');
524
+ const kwTrim = kw.length > width - 15 ? kw.slice(0, width - 18) + '…' : kw;
525
+ // visible and clampedScroll now computed in useMemo above
526
+
527
+ const pad = (() => {
528
+ const proj = Math.max(...sessions.map((s) => (s.project || '').length), 0);
529
+ const branch = Math.max(
530
+ ...sessions.map((s) => {
531
+ const raw = s.branch ? `${BRANCH_ICON} ${s.branch}` : '';
532
+ return raw.length;
533
+ }),
534
+ 0,
535
+ );
536
+ const lines = Math.max(...sessions.map((s) => (formatLines(s.lines) || '').length), 0);
537
+ const date = Math.max(
538
+ ...sessions.map((s) => (formatDateRange(s.create_time, s.mod_time) || '').length),
539
+ 0,
540
+ );
541
+ const agentId = Math.max(
542
+ ...sessions.map((s) => {
543
+ const anno = toAnno(s);
544
+ const id = (s.session_id || '').slice(0, 8);
545
+ return `[${s.agent_display}] ${id}${anno ? ' ' + anno : ''}`.length;
546
+ }),
547
+ 0,
548
+ );
549
+ return {project: proj, branch, lines, date, agentId};
550
+ })();
551
+
552
+ const annoSet = new Set();
553
+ sessions.forEach((s) => {
554
+ const a = toAnno(s);
555
+ if (a.includes('t')) annoSet.add('t');
556
+ if (a.includes('r')) annoSet.add('r');
557
+ if (a.includes('sub')) annoSet.add('sub');
558
+ });
559
+ // Legend for annotation symbols - (r) is "rolled-over" (internally "continued")
560
+ const annoLine = (() => {
561
+ if (!annoSet.size) return null;
562
+ const parts = [];
563
+ if (annoSet.has('t')) parts.push('(t)=trimmed');
564
+ if (annoSet.has('r')) parts.push('(r)=rolled-over');
565
+ if (annoSet.has('sub')) parts.push('(sub)=sub-agent (not resumable)');
566
+ return parts.join(' ');
567
+ })();
568
+
569
+ return h(
570
+ Box,
571
+ {flexDirection: 'column'},
572
+ h(
573
+ Box,
574
+ {marginBottom: 0},
575
+ h(Text, null, chalk.bold.cyan(resultsTitle || ' Sessions '), resultsTitle ? '' : ' ', resultsTitle ? '' : chalk.dim(kwTrim))
576
+ ),
577
+ scopeLine && resultsTitle
578
+ ? h(Box, {marginBottom: 1}, h(Text, {dimColor: true}, scopeLine))
579
+ : null,
580
+ !resultsTitle ? h(Box, {marginBottom: 1}) : null,
581
+ h(
582
+ Box,
583
+ // React key changes with zoomAll to force full remount, avoiding Ink render artifacts
584
+ {key: zoomAll ? 'zoomed' : 'normal', flexDirection: 'column', gap: 0},
585
+ visible.map((s, i) =>
586
+ h(SessionRow, {
587
+ key: s.session_id,
588
+ session: s,
589
+ active: clampedScroll + i === index,
590
+ index: clampedScroll + i,
591
+ width,
592
+ pad,
593
+ isExpanded: zoomAll || !!expanded[s.session_id],
594
+ })
595
+ )
596
+ ),
597
+ h(
598
+ Box,
599
+ {marginTop: 1},
600
+ h(
601
+ Text,
602
+ {dimColor: true},
603
+ (() => {
604
+ // Minimal help for custom title screens (like resume selection)
605
+ if (resultsTitle) {
606
+ const nums = sessions.length === 1 ? '1' : '1/2';
607
+ return `${nums}: select Enter: select Esc: quit ↑/↓: move`;
608
+ }
609
+ const currentRowExpanded = zoomAll || !!expanded[sessions[index]?.session_id];
610
+ const spaceLabel = currentRowExpanded ? 'Space: collapse row' : 'Space: expand row';
611
+ const zoomLabel = zoomAll ? 'z: unzoom' : 'z: zoom all';
612
+ const numLabel = numBuffer ? ` [typing ${numBuffer}]` : '';
613
+ return `Enter: select Esc: quit ↑/↓/j/k: move u/d: page ${spaceLabel} ${zoomLabel} num+Enter: jump${numLabel}`;
614
+ })()
615
+ )
616
+ ),
617
+ // scopeLine shown at top when resultsTitle is set, otherwise at bottom
618
+ scopeLine && !resultsTitle
619
+ ? h(
620
+ Box,
621
+ {marginTop: 0},
622
+ h(Text, {dimColor: true}, scopeLine)
623
+ )
624
+ : null,
625
+ tipLine
626
+ ? h(
627
+ Box,
628
+ {marginTop: 0},
629
+ h(Text, {dimColor: true}, tipLine)
630
+ )
631
+ : null,
632
+ annoLine
633
+ ? h(
634
+ Box,
635
+ {marginTop: 0},
636
+ h(Text, {dimColor: true}, annoLine)
637
+ )
638
+ : null
639
+ );
640
+ }
641
+
642
+ function ConfirmView({session, actionLabel, onConfirm, onBack}) {
643
+ useInput((input, key) => {
644
+ if (key.escape) return onBack();
645
+ if (key.return) return onConfirm();
646
+ });
647
+ const branchDisplay = session.branch ? `${BRANCH_ICON} ${session.branch}` : '';
648
+
649
+ return h(
650
+ Box,
651
+ {flexDirection: 'column'},
652
+ h(Text, null,
653
+ chalk.bgBlue.black(' Confirm action '), ' ', actionLabel, ' ',
654
+ colorize.project(session.project || ''), ' ',
655
+ colorize.branch(branchDisplay)
656
+ ),
657
+ h(Text, null, ...formatSessionHeader(session)),
658
+ h(Box, {marginBottom: 1}, renderPreview(session.preview) || null),
659
+ h(Text, {dimColor: true}, 'Enter: run action & exit Esc: back')
660
+ );
661
+ }
662
+
663
+ function ActionView({session, onBack, onDone, clearScreen}) {
664
+ const baseItems = filteredActions(session.is_sidechain);
665
+ const [index, setIndex] = useState(0);
666
+
667
+ const items = baseItems.map((item, idx) => ({
668
+ ...item,
669
+ label: `${idx + 1}. ${item.label}`,
670
+ number: idx + 1,
671
+ }));
672
+
673
+ useInput((input, key) => {
674
+ if (key.escape) {
675
+ clearScreen();
676
+ onBack();
677
+ }
678
+ if (key.return) {
679
+ onDone(items[index].value);
680
+ return;
681
+ }
682
+ if (key.upArrow || input === 'k') {
683
+ setIndex((i) => (i === 0 ? items.length - 1 : i - 1));
684
+ }
685
+ if (key.downArrow || input === 'j') {
686
+ setIndex((i) => (i === items.length - 1 ? 0 : i + 1));
687
+ }
688
+ const num = Number(input);
689
+ if (!Number.isNaN(num) && num >= 1 && num <= items.length) {
690
+ setIndex(num - 1);
691
+ }
692
+ });
693
+
694
+ const fullId = session.session_id || ''; // Show full session ID in actions view
695
+ const branchDisplay = session.branch ? `${BRANCH_ICON} ${session.branch}` : '';
696
+
697
+ return h(
698
+ Box,
699
+ {flexDirection: 'column'},
700
+ h(Text, null, ''),
701
+ h(
702
+ Box,
703
+ {flexDirection: 'column'},
704
+ h(Text, null,
705
+ chalk.bgCyan.black(' Actions '), ' ',
706
+ colorize.project(session.project || ''), ' ',
707
+ colorize.branch(branchDisplay)
708
+ ),
709
+ h(Text, null, ...formatSessionHeader(session, fullId)),
710
+ renderPreview(session.preview),
711
+ // Warning for sub-agent sessions
712
+ session.is_sidechain ? h(
713
+ Text,
714
+ {color: 'yellow', marginTop: 1},
715
+ '⚠ Sub-agent session (not resumable)'
716
+ ) : null
717
+ ),
718
+ h(Box, {marginBottom: 1}),
719
+ h(Box, {flexDirection: 'column'},
720
+ ...items.map((item, idx) => {
721
+ const isHighlighted = idx === index;
722
+ return h(
723
+ Text,
724
+ {
725
+ key: item.value,
726
+ color: isHighlighted ? 'blue' : 'white',
727
+ },
728
+ `${isHighlighted ? figures.pointer : ' '} ${item.label}`
729
+ );
730
+ })
731
+ ),
732
+ h(
733
+ Box,
734
+ {marginTop: 1},
735
+ h(Text, {dimColor: true}, 'Enter: select Esc: back ↑/↓: move number: jump')
736
+ )
737
+ );
738
+ }
739
+
740
+ function ResumeView({onBack, onDone, session, clearScreen}) {
741
+ const [index, setIndex] = useState(0);
742
+ const items = RESUME_SUBMENU.map((opt, idx) => ({...opt, label: `${idx + 1}. ${opt.label}`}));
743
+
744
+ useInput((input, key) => {
745
+ if (key.escape) {
746
+ clearScreen();
747
+ onBack();
748
+ }
749
+ if (key.return) {
750
+ onDone(items[index].value);
751
+ return;
752
+ }
753
+ if (key.upArrow || input === 'k') {
754
+ setIndex((i) => (i === 0 ? items.length - 1 : i - 1));
755
+ }
756
+ if (key.downArrow || input === 'j') {
757
+ setIndex((i) => (i === items.length - 1 ? 0 : i + 1));
758
+ }
759
+ const num = Number(input);
760
+ if (!Number.isNaN(num) && num >= 1 && num <= items.length) {
761
+ setIndex(num - 1);
762
+ }
763
+ });
764
+
765
+ const branchDisplay = session.branch ? `${BRANCH_ICON} ${session.branch}` : '';
766
+
767
+ return h(
768
+ Box,
769
+ {flexDirection: 'column'},
770
+ h(
771
+ Box,
772
+ {flexDirection: 'column'},
773
+ h(Text, null,
774
+ chalk.bgGreen.black(' Resume/Trim '), ' ',
775
+ colorize.project(session.project || ''), ' ',
776
+ colorize.branch(branchDisplay)
777
+ ),
778
+ h(Text, null, ...formatSessionHeader(session)),
779
+ renderPreview(session.preview)
780
+ ),
781
+ h(Box, {marginBottom: 1}),
782
+ h(Box, {flexDirection: 'column'},
783
+ ...items.map((item, idx) => {
784
+ const isHighlighted = idx === index;
785
+ return h(
786
+ Text,
787
+ {
788
+ key: item.value,
789
+ color: isHighlighted ? 'blue' : 'white',
790
+ },
791
+ `${isHighlighted ? figures.pointer : ' '} ${item.label}`
792
+ );
793
+ })
794
+ ),
795
+ h(
796
+ Box,
797
+ {marginTop: 1},
798
+ h(Text, {dimColor: true}, 'Enter: select Esc: back ↑/↓: move number: jump')
799
+ )
800
+ );
801
+ }
802
+
803
+ function TrimView({onBack, onDone, session, clearScreen}) {
804
+ const [index, setIndex] = useState(0);
805
+ const items = TRIM_SUBMENU.map((opt, idx) => ({...opt, label: `${idx + 1}. ${opt.label}`}));
806
+
807
+ useInput((input, key) => {
808
+ if (key.escape) {
809
+ clearScreen();
810
+ onBack();
811
+ }
812
+ if (key.return) {
813
+ onDone(items[index].value);
814
+ return;
815
+ }
816
+ if (key.upArrow || input === 'k') {
817
+ setIndex((i) => (i === 0 ? items.length - 1 : i - 1));
818
+ }
819
+ if (key.downArrow || input === 'j') {
820
+ setIndex((i) => (i === items.length - 1 ? 0 : i + 1));
821
+ }
822
+ const num = Number(input);
823
+ if (!Number.isNaN(num) && num >= 1 && num <= items.length) {
824
+ setIndex(num - 1);
825
+ }
826
+ });
827
+
828
+ const branchDisplay = session.branch ? `${BRANCH_ICON} ${session.branch}` : '';
829
+
830
+ return h(
831
+ Box,
832
+ {flexDirection: 'column'},
833
+ h(
834
+ Box,
835
+ {flexDirection: 'column'},
836
+ h(Text, null,
837
+ chalk.bgYellow.black(' Trim Session '), ' ',
838
+ colorize.project(session.project || ''), ' ',
839
+ colorize.branch(branchDisplay)
840
+ ),
841
+ h(Text, null, ...formatSessionHeader(session)),
842
+ renderPreview(session.preview)
843
+ ),
844
+ h(Box, {marginBottom: 1}),
845
+ h(Box, {flexDirection: 'column'},
846
+ ...items.map((item, idx) => {
847
+ const isHighlighted = idx === index;
848
+ return h(
849
+ Text,
850
+ {
851
+ key: item.value,
852
+ color: isHighlighted ? 'blue' : 'white',
853
+ },
854
+ `${isHighlighted ? figures.pointer : ' '} ${item.label}`
855
+ );
856
+ })
857
+ ),
858
+ h(
859
+ Box,
860
+ {marginTop: 1},
861
+ h(Text, {dimColor: true}, 'Enter: select Esc: back ↑/↓: move number: jump')
862
+ )
863
+ );
864
+ }
865
+
866
+ /**
867
+ * TrimConfirmView - Confirmation dialog after trim creates a new session file.
868
+ * Shows two options: Resume (default) or Delete & Exit.
869
+ * Escape cancels without deleting (file remains).
870
+ *
871
+ * When nothing_to_trim is true, shows simpler UI for resuming original session.
872
+ */
873
+ function TrimConfirmView({onDone, onCancel, clearScreen, trimInfo}) {
874
+ const [index, setIndex] = useState(0);
875
+
876
+ // Check if this is the "nothing to trim" case
877
+ const nothingToTrim = trimInfo.nothing_to_trim || false;
878
+
879
+ const items = nothingToTrim
880
+ ? [
881
+ {value: 'resume', label: 'Resume original session'},
882
+ {value: 'back', label: 'Back to menu'},
883
+ ]
884
+ : [
885
+ {value: 'resume', label: 'Resume trimmed session'},
886
+ {value: 'delete', label: 'Delete session file & exit'},
887
+ ];
888
+
889
+ useInput((input, key) => {
890
+ if (key.escape) {
891
+ clearScreen();
892
+ onCancel();
893
+ }
894
+ if (key.return) {
895
+ clearScreen();
896
+ onDone(items[index].value);
897
+ return;
898
+ }
899
+ if (key.upArrow || input === 'k') {
900
+ setIndex((i) => (i === 0 ? items.length - 1 : i - 1));
901
+ }
902
+ if (key.downArrow || input === 'j') {
903
+ setIndex((i) => (i === items.length - 1 ? 0 : i + 1));
904
+ }
905
+ const num = Number(input);
906
+ if (!Number.isNaN(num) && num >= 1 && num <= items.length) {
907
+ setIndex(num - 1);
908
+ }
909
+ });
910
+
911
+ // Extract info from trimInfo
912
+ const sessionId = (trimInfo.new_session_id || trimInfo.original_session_id || '').slice(0, 12);
913
+ const linesTrimmed = trimInfo.lines_trimmed || 0;
914
+ const tokensSaved = trimInfo.tokens_saved || 0;
915
+ const outputFile = trimInfo.output_file || '';
916
+
917
+ // Different header based on whether trimming happened
918
+ const header = nothingToTrim
919
+ ? h(Text, null, chalk.bgYellow.black(' Nothing to Trim '))
920
+ : h(Text, null, chalk.bgGreen.black(' Trim Complete '));
921
+
922
+ const infoLines = nothingToTrim
923
+ ? [
924
+ h(Text, null, ''),
925
+ h(Text, null, chalk.yellow('✓ '), 'Session is already well-optimized'),
926
+ h(Text, null, chalk.dim(' No changes were made')),
927
+ ]
928
+ : [
929
+ h(Text, null, ''),
930
+ h(Text, null, chalk.green('✓ '), 'New session: ', chalk.cyan(sessionId), '...'),
931
+ h(Text, null, chalk.green('✓ '), 'Lines trimmed: ', chalk.yellow(String(linesTrimmed))),
932
+ h(Text, null, chalk.green('✓ '), 'Tokens saved: ', chalk.yellow(`~${tokensSaved.toLocaleString()}`)),
933
+ outputFile ? h(Text, {dimColor: true}, ` ${outputFile}`) : null,
934
+ ];
935
+
936
+ const footerText = nothingToTrim
937
+ ? 'Enter: select Esc: back ↑/↓: move'
938
+ : 'Enter: select Esc: cancel (keep file) ↑/↓: move';
939
+
940
+ return h(
941
+ Box,
942
+ {flexDirection: 'column'},
943
+ h(
944
+ Box,
945
+ {flexDirection: 'column', marginBottom: 1},
946
+ header,
947
+ ...infoLines.filter(Boolean)
948
+ ),
949
+ h(Box, {flexDirection: 'column'},
950
+ ...items.map((item, idx) => {
951
+ const isHighlighted = idx === index;
952
+ return h(
953
+ Text,
954
+ {
955
+ key: item.value,
956
+ color: isHighlighted ? 'blue' : 'white',
957
+ },
958
+ `${isHighlighted ? figures.pointer : ' '} ${idx + 1}. ${item.label}`
959
+ );
960
+ })
961
+ ),
962
+ h(
963
+ Box,
964
+ {marginTop: 1},
965
+ h(Text, {dimColor: true}, footerText)
966
+ )
967
+ );
968
+ }
969
+
970
+ /**
971
+ * DirConfirmView - Confirmation dialog when session is from a different directory.
972
+ * Shows current dir vs session dir with Yes/No options.
973
+ * Escape cancels and goes back.
974
+ */
975
+ function DirConfirmView({onDone, onCancel, clearScreen, dirInfo}) {
976
+ const [index, setIndex] = useState(0);
977
+
978
+ const items = [
979
+ {value: 'yes', label: 'Yes, change directory and proceed'},
980
+ {value: 'no', label: 'No, proceed without changing directory'},
981
+ ];
982
+
983
+ useInput((input, key) => {
984
+ if (key.escape) {
985
+ clearScreen();
986
+ onCancel();
987
+ }
988
+ if (key.return) {
989
+ clearScreen();
990
+ onDone(items[index].value);
991
+ return;
992
+ }
993
+ if (key.upArrow || input === 'k') {
994
+ setIndex((i) => (i === 0 ? items.length - 1 : i - 1));
995
+ }
996
+ if (key.downArrow || input === 'j') {
997
+ setIndex((i) => (i === items.length - 1 ? 0 : i + 1));
998
+ }
999
+ const num = Number(input);
1000
+ if (!Number.isNaN(num) && num >= 1 && num <= items.length) {
1001
+ setIndex(num - 1);
1002
+ }
1003
+ });
1004
+
1005
+ const currentDir = dirInfo.current_dir || '';
1006
+ const sessionDir = dirInfo.session_dir || '';
1007
+
1008
+ return h(
1009
+ Box,
1010
+ {flexDirection: 'column'},
1011
+ h(
1012
+ Box,
1013
+ {flexDirection: 'column', marginBottom: 1},
1014
+ h(Text, null, chalk.bgYellow.black(' Different Directory ')),
1015
+ h(Text, null, ''),
1016
+ h(Text, null, 'This session is from a different project directory:'),
1017
+ h(Text, null, ''),
1018
+ h(Text, null, ' Current: ', chalk.dim(currentDir)),
1019
+ h(Text, null, ' Session: ', chalk.cyan(sessionDir)),
1020
+ h(Text, null, ''),
1021
+ h(Text, null, 'Change to the session\'s directory?')
1022
+ ),
1023
+ h(Box, {flexDirection: 'column'},
1024
+ ...items.map((item, idx) => {
1025
+ const isHighlighted = idx === index;
1026
+ return h(
1027
+ Text,
1028
+ {
1029
+ key: item.value,
1030
+ color: isHighlighted ? 'blue' : 'white',
1031
+ },
1032
+ `${isHighlighted ? figures.pointer : ' '} ${idx + 1}. ${item.label}`
1033
+ );
1034
+ })
1035
+ ),
1036
+ h(
1037
+ Box,
1038
+ {marginTop: 1},
1039
+ h(Text, {dimColor: true}, 'Enter: select Esc: cancel ↑/↓: move')
1040
+ )
1041
+ );
1042
+ }
1043
+
1044
+ function TrimForm({onSubmit, onBack, clearScreen, session}) {
1045
+ const [field, setField] = useState('tools');
1046
+ const [tools, setTools] = useState('');
1047
+ const [threshold, setThreshold] = useState('500');
1048
+ const [assistant, setAssistant] = useState('');
1049
+
1050
+ useInput((input, key) => {
1051
+ if (key.escape) {
1052
+ clearScreen();
1053
+ return onBack();
1054
+ }
1055
+ // Down arrow: cycle through fields (wrap around)
1056
+ if (key.downArrow) {
1057
+ if (field === 'tools') setField('threshold');
1058
+ else if (field === 'threshold') setField('assistant');
1059
+ else if (field === 'assistant') setField('tools'); // Cycle back to top
1060
+ return;
1061
+ }
1062
+ // Up arrow: cycle through fields (wrap around)
1063
+ if (key.upArrow) {
1064
+ if (field === 'threshold') setField('tools');
1065
+ else if (field === 'assistant') setField('threshold');
1066
+ else if (field === 'tools') setField('assistant'); // Cycle to bottom
1067
+ return;
1068
+ }
1069
+ // Enter: advance to next field, or submit on last field
1070
+ if (key.return) {
1071
+ if (field === 'tools') setField('threshold');
1072
+ else if (field === 'threshold') setField('assistant');
1073
+ else if (field === 'assistant') {
1074
+ onSubmit({
1075
+ tools: tools || null,
1076
+ threshold: Number(threshold) || 500,
1077
+ trim_assistant: assistant ? Number(assistant) : null,
1078
+ });
1079
+ }
1080
+ return;
1081
+ }
1082
+ if (key.backspace || key.delete) {
1083
+ if (field === 'tools') setTools((t) => t.slice(0, -1));
1084
+ if (field === 'threshold') setThreshold((t) => t.slice(0, -1));
1085
+ if (field === 'assistant') setAssistant((t) => t.slice(0, -1));
1086
+ return;
1087
+ }
1088
+ if (input) {
1089
+ if (field === 'tools') setTools((t) => t + input);
1090
+ if (field === 'threshold') setThreshold((t) => t + input);
1091
+ if (field === 'assistant') setAssistant((t) => t + input);
1092
+ }
1093
+ });
1094
+
1095
+ const arrow = figures.pointer;
1096
+ const branchDisplay = session.branch ? `${BRANCH_ICON} ${session.branch}` : '';
1097
+
1098
+ return h(
1099
+ Box,
1100
+ {flexDirection: 'column'},
1101
+ h(
1102
+ Box,
1103
+ {flexDirection: 'column'},
1104
+ h(Text, null,
1105
+ chalk.bgYellow.black(' Trim options '), ' ',
1106
+ colorize.project(session.project || ''), ' ',
1107
+ colorize.branch(branchDisplay)
1108
+ ),
1109
+ h(Text, null, ...formatSessionHeader(session)),
1110
+ renderPreview(session.preview)
1111
+ ),
1112
+ h(Box, {marginBottom: 1}),
1113
+ h(Text, {dimColor: true}, '↑↓: cycle fields | Enter: next/submit | Esc: back'),
1114
+ h(Box, {marginBottom: 1}),
1115
+ // Tools field
1116
+ h(
1117
+ Box,
1118
+ {flexDirection: 'column'},
1119
+ h(
1120
+ Text,
1121
+ null,
1122
+ field === 'tools' ? chalk.cyan(arrow) : ' ',
1123
+ ' Tools to trim ',
1124
+ h(Text, {dimColor: true}, "(comma-separated, e.g., 'bash,read,edit')")
1125
+ ),
1126
+ h(
1127
+ Text,
1128
+ null,
1129
+ ' > ',
1130
+ h(Text, {color: field === 'tools' ? 'yellow' : undefined}, tools || chalk.dim('(all tools)'))
1131
+ )
1132
+ ),
1133
+ h(Text, null, ''),
1134
+ // Threshold field
1135
+ h(
1136
+ Box,
1137
+ {flexDirection: 'column'},
1138
+ h(
1139
+ Text,
1140
+ null,
1141
+ field === 'threshold' ? chalk.cyan(arrow) : ' ',
1142
+ ' Length threshold in characters ',
1143
+ h(Text, {dimColor: true}, '(tool results longer than this get trimmed)')
1144
+ ),
1145
+ h(
1146
+ Text,
1147
+ null,
1148
+ ' > ',
1149
+ h(Text, {color: field === 'threshold' ? 'yellow' : undefined}, threshold || '500')
1150
+ )
1151
+ ),
1152
+ h(Text, null, ''),
1153
+ // Assistant messages field
1154
+ h(
1155
+ Box,
1156
+ {flexDirection: 'column'},
1157
+ h(
1158
+ Text,
1159
+ null,
1160
+ field === 'assistant' ? chalk.cyan(arrow) : ' ',
1161
+ ' Trim assistant messages ',
1162
+ h(Text, {dimColor: true}, '(optional)')
1163
+ ),
1164
+ h(Text, {dimColor: true}, ' Positive (e.g., 10): Trim first N messages exceeding threshold'),
1165
+ h(Text, {dimColor: true}, ' Negative (e.g., -5): Keep only last N messages'),
1166
+ h(Text, {dimColor: true}, ' Blank: Skip (no assistant message trimming)'),
1167
+ h(
1168
+ Text,
1169
+ null,
1170
+ ' > ',
1171
+ h(Text, {color: field === 'assistant' ? 'yellow' : undefined}, assistant || chalk.dim('(skip)'))
1172
+ )
1173
+ )
1174
+ );
1175
+ }
1176
+
1177
+ function LineageView({session, rpcPath, onContinue, onBack, clearScreen}) {
1178
+ const [stage, setStage] = useState('loading');
1179
+ const [lineage, setLineage] = useState([]);
1180
+ const [error, setError] = useState('');
1181
+ const startedRef = React.useRef(false);
1182
+
1183
+ React.useEffect(() => {
1184
+ if (stage === 'loading' && !startedRef.current) {
1185
+ startedRef.current = true;
1186
+ if (!rpcPath) {
1187
+ setError('RPC path missing');
1188
+ setStage('done');
1189
+ return;
1190
+ }
1191
+ const req = {
1192
+ action: 'lineage',
1193
+ agent: session.agent,
1194
+ session_id: session.session_id,
1195
+ file_path: session.file_path,
1196
+ cwd: session.cwd,
1197
+ claude_home: session.claude_home,
1198
+ };
1199
+ const proc = spawnSync('python3', [rpcPath], {
1200
+ input: JSON.stringify(req),
1201
+ encoding: 'utf8',
1202
+ });
1203
+ if (proc.error) {
1204
+ setError(proc.error.message);
1205
+ setStage('done');
1206
+ return;
1207
+ }
1208
+ try {
1209
+ const out = JSON.parse(proc.stdout || '{}');
1210
+ if (out.status === 'ok' && out.lineage) {
1211
+ setLineage(out.lineage);
1212
+ }
1213
+ } catch (e) {
1214
+ // Ignore parse errors, just show empty lineage
1215
+ }
1216
+ setStage('done');
1217
+ }
1218
+ }, [stage, rpcPath, session]);
1219
+
1220
+ useInput((input, key) => {
1221
+ if (stage !== 'done') return;
1222
+ if (key.escape) {
1223
+ clearScreen();
1224
+ return onBack();
1225
+ }
1226
+ if (key.return) {
1227
+ clearScreen();
1228
+ return onContinue();
1229
+ }
1230
+ });
1231
+
1232
+ const branchDisplay = session.branch ? `${BRANCH_ICON} ${session.branch}` : '';
1233
+
1234
+ return h(
1235
+ Box,
1236
+ {flexDirection: 'column'},
1237
+ h(
1238
+ Box,
1239
+ {flexDirection: 'column'},
1240
+ h(Text, null,
1241
+ chalk.bgYellow.black(' Session Lineage '), ' ',
1242
+ colorize.project(session.project || ''), ' ',
1243
+ colorize.branch(branchDisplay)
1244
+ ),
1245
+ h(Text, null, ...formatSessionHeader(session))
1246
+ ),
1247
+ h(Box, {marginTop: 1}),
1248
+ stage === 'loading'
1249
+ ? h(Text, {dimColor: true}, 'Loading session lineage...')
1250
+ : error
1251
+ ? h(Text, {color: 'red'}, error)
1252
+ : h(
1253
+ Box,
1254
+ {flexDirection: 'column'},
1255
+ lineage.length === 0
1256
+ ? h(Text, {dimColor: true}, 'This is the original session (no continuation history)')
1257
+ : h(
1258
+ Box,
1259
+ {flexDirection: 'column'},
1260
+ h(Text, null, chalk.cyan(`Found ${lineage.length} session(s) in continuation chain:`)),
1261
+ h(Box, {marginTop: 1}),
1262
+ ...lineage.map((node, i) =>
1263
+ h(
1264
+ Box,
1265
+ {key: i, flexDirection: 'column'},
1266
+ h(Text, null,
1267
+ ` ${i + 1}. `,
1268
+ chalk.white(node.session_file),
1269
+ node.derivation_type ? chalk.dim(` (${node.derivation_type})`) : ''
1270
+ )
1271
+ )
1272
+ )
1273
+ )
1274
+ ),
1275
+ h(Box, {marginTop: 1}),
1276
+ stage === 'done'
1277
+ ? h(Text, {dimColor: true}, 'Enter: continue to options Esc: back')
1278
+ : null
1279
+ );
1280
+ }
1281
+
1282
+ function ContinueForm({onSubmit, onBack, clearScreen, session}) {
1283
+ const [field, setField] = useState('agent');
1284
+ const [agent, setAgent] = useState(session.agent || 'claude');
1285
+ const [rolloverType, setRolloverType] = useState('quick'); // 'quick' or 'context'
1286
+ const [prompt, setPrompt] = useState('');
1287
+
1288
+ // Fields order: agent -> rollover_type -> prompt (only if context recovery)
1289
+ const getNextField = (current) => {
1290
+ if (current === 'agent') return 'rollover_type';
1291
+ if (current === 'rollover_type') return rolloverType === 'context' ? 'prompt' : null;
1292
+ if (current === 'prompt') return null;
1293
+ return null;
1294
+ };
1295
+ const getPrevField = (current) => {
1296
+ if (current === 'prompt') return 'rollover_type';
1297
+ if (current === 'rollover_type') return 'agent';
1298
+ if (current === 'agent') return rolloverType === 'context' ? 'prompt' : 'rollover_type';
1299
+ return null;
1300
+ };
1301
+
1302
+ useInput((input, key) => {
1303
+ if (key.escape) {
1304
+ clearScreen();
1305
+ return onBack();
1306
+ }
1307
+ // Down arrow: cycle through fields (wrap around)
1308
+ if (key.downArrow) {
1309
+ const next = getNextField(field);
1310
+ if (next) setField(next);
1311
+ else setField('agent'); // Wrap to top
1312
+ return;
1313
+ }
1314
+ // Up arrow: cycle through fields (wrap around)
1315
+ if (key.upArrow) {
1316
+ const prev = getPrevField(field);
1317
+ if (prev) setField(prev);
1318
+ return;
1319
+ }
1320
+ // Enter: advance to next field, or submit on last field
1321
+ if (key.return) {
1322
+ const next = getNextField(field);
1323
+ if (next) {
1324
+ setField(next);
1325
+ } else {
1326
+ // Submit - for quick resume, prompt is ignored
1327
+ onSubmit({agent, rollover_type: rolloverType, prompt: rolloverType === 'context' ? prompt : ''});
1328
+ }
1329
+ return;
1330
+ }
1331
+ if (key.backspace || key.delete) {
1332
+ if (field === 'agent' || field === 'rollover_type') return; // Can't backspace on selection
1333
+ if (field === 'prompt') setPrompt((t) => t.slice(0, -1));
1334
+ return;
1335
+ }
1336
+ if (input) {
1337
+ if (field === 'agent') {
1338
+ if (input === '1') setAgent('claude');
1339
+ else if (input === '2') setAgent('codex');
1340
+ } else if (field === 'rollover_type') {
1341
+ // Handle rollover type changes
1342
+ if (input === '1') {
1343
+ setRolloverType('quick');
1344
+ } else if (input === '2') {
1345
+ setRolloverType('context');
1346
+ }
1347
+ } else if (field === 'prompt') {
1348
+ setPrompt((t) => t + input);
1349
+ }
1350
+ }
1351
+ });
1352
+
1353
+ const arrow = figures.pointer;
1354
+ const branchDisplay = session.branch ? `${BRANCH_ICON} ${session.branch}` : '';
1355
+
1356
+ // Build the value display for each field
1357
+ const agentValue = agent === 'claude' ? 'Claude' : 'Codex';
1358
+ const rolloverValue = rolloverType === 'quick' ? 'Quick' : 'Context';
1359
+
1360
+ return h(
1361
+ Box,
1362
+ {flexDirection: 'column'},
1363
+ // Banner header explaining rollover
1364
+ h(
1365
+ Box,
1366
+ {flexDirection: 'column', marginBottom: 1},
1367
+ h(Text, null, chalk.bgCyan.black(' 🔄 ROLLOVER '), ' ', chalk.cyan('Continue work in a fresh session')),
1368
+ h(Text, {dimColor: true}, '─'.repeat(60))
1369
+ ),
1370
+ // Session info
1371
+ h(
1372
+ Box,
1373
+ {flexDirection: 'column'},
1374
+ h(Text, null,
1375
+ colorize.project(session.project || ''), ' ',
1376
+ colorize.branch(branchDisplay)
1377
+ ),
1378
+ h(Text, null, ...formatSessionHeader(session)),
1379
+ renderPreview(session.preview)
1380
+ ),
1381
+ h(Box, {marginBottom: 1}),
1382
+ h(Text, {dimColor: true}, 'Esc: back | ↑↓: navigate | 1/2: select | Enter: submit'),
1383
+ h(Box, {marginBottom: 1}),
1384
+ // Agent field - compact horizontal with [1]/[2] labels
1385
+ h(
1386
+ Text,
1387
+ null,
1388
+ field === 'agent' ? chalk.cyan(figures.pointer) : ' ',
1389
+ ' Agent: ',
1390
+ h(Text, {color: agent === 'claude' ? 'yellow' : 'white'}, agent === 'claude' ? '[1] Claude' : ' 1 Claude'),
1391
+ ' ',
1392
+ h(Text, {color: agent === 'codex' ? 'yellow' : 'white'}, agent === 'codex' ? '[2] Codex' : ' 2 Codex')
1393
+ ),
1394
+ h(Text, {dimColor: true}, '─'.repeat(60)),
1395
+ // Rollover type section header
1396
+ h(Box, {marginTop: 1}),
1397
+ h(Text, null, field === 'rollover_type' ? chalk.cyan(figures.pointer) : ' ', ' Rollover Type:'),
1398
+ h(Box, {marginTop: 1}),
1399
+ // Quick Resume option
1400
+ h(
1401
+ Box,
1402
+ {flexDirection: 'column', marginLeft: 3},
1403
+ h(
1404
+ Text,
1405
+ null,
1406
+ rolloverType === 'quick' ? chalk.yellow('[1] Quick Resume') : chalk.white(' 1 Quick Resume')
1407
+ ),
1408
+ h(Text, {dimColor: true}, ' Inject session lineage only, and quickly start new session.'),
1409
+ h(Text, {dimColor: true}, ' You provide context-extraction instructions once session resumes.')
1410
+ ),
1411
+ h(Box, {marginTop: 1}),
1412
+ // Context Recovery option
1413
+ h(
1414
+ Box,
1415
+ {flexDirection: 'column', marginLeft: 3},
1416
+ h(
1417
+ Text,
1418
+ null,
1419
+ rolloverType === 'context' ? chalk.yellow('[2] Resume with Context Recovery') : chalk.white(' 2 Resume with Context Recovery')
1420
+ ),
1421
+ h(Text, {dimColor: true}, ' Inject lineage + use headless/non-interactive agents to extract context.'),
1422
+ h(Text, {dimColor: true}, ' Slower, but resumes with full understanding of last task and overall work.')
1423
+ ),
1424
+ // Context instructions field - only shown when on prompt field (after pressing Enter/down)
1425
+ // This prevents layout shift from interfering with rollover type selection
1426
+ (rolloverType === 'context' && field === 'prompt') ? h(
1427
+ Box,
1428
+ {flexDirection: 'column', marginTop: 1},
1429
+ h(Text, {dimColor: true}, '─'.repeat(60)),
1430
+ h(Box, {marginTop: 1}),
1431
+ h(
1432
+ Text,
1433
+ null,
1434
+ chalk.cyan(figures.pointer),
1435
+ ' Custom context recovery instructions ',
1436
+ chalk.dim('(optional)')
1437
+ ),
1438
+ h(
1439
+ Text,
1440
+ null,
1441
+ ' ',
1442
+ h(Text, {color: 'yellow'}, prompt || chalk.dim('(default: recover context of last task)'))
1443
+ )
1444
+ ) : null
1445
+ );
1446
+ }
1447
+
1448
+ // Smart Trim form - instructions for what to trim
1449
+ function SmartTrimForm({onSubmit, onBack, clearScreen, session}) {
1450
+ const defaultPrompt = 'trim messages that are not relevant to the last task being worked on in this session';
1451
+ const [prompt, setPrompt] = useState('');
1452
+ const [hasTyped, setHasTyped] = useState(false);
1453
+
1454
+ useInput((input, key) => {
1455
+ if (key.escape) {
1456
+ clearScreen();
1457
+ return onBack();
1458
+ }
1459
+ if (key.return) {
1460
+ // Submit custom prompt if typed, otherwise use default
1461
+ onSubmit({prompt: hasTyped ? prompt : defaultPrompt});
1462
+ return;
1463
+ }
1464
+ if (key.backspace || key.delete) {
1465
+ if (hasTyped) {
1466
+ setPrompt((t) => t.slice(0, -1));
1467
+ }
1468
+ return;
1469
+ }
1470
+ if (input) {
1471
+ if (!hasTyped) {
1472
+ // First character typed - start fresh, don't append to default
1473
+ setHasTyped(true);
1474
+ setPrompt(input);
1475
+ } else {
1476
+ setPrompt((t) => t + input);
1477
+ }
1478
+ }
1479
+ });
1480
+
1481
+ const branchDisplay = session.branch ? `${BRANCH_ICON} ${session.branch}` : '';
1482
+
1483
+ // Display: show user's input in yellow, or default in dim gray
1484
+ const displayPrompt = hasTyped
1485
+ ? (prompt || chalk.dim('(none)'))
1486
+ : chalk.gray(defaultPrompt);
1487
+
1488
+ return h(
1489
+ Box,
1490
+ {flexDirection: 'column'},
1491
+ h(
1492
+ Box,
1493
+ {flexDirection: 'column'},
1494
+ h(Text, null,
1495
+ chalk.bgMagenta.black(' Smart Trim '), ' ',
1496
+ colorize.project(session.project || ''), ' ',
1497
+ colorize.branch(branchDisplay)
1498
+ ),
1499
+ h(Text, null, ...formatSessionHeader(session)),
1500
+ renderPreview(session.preview)
1501
+ ),
1502
+ h(Box, {marginBottom: 1}),
1503
+ h(Text, {dimColor: true}, 'Enter: submit | Esc: back'),
1504
+ h(Box, {marginBottom: 1}),
1505
+ h(
1506
+ Box,
1507
+ {flexDirection: 'column'},
1508
+ h(
1509
+ Text,
1510
+ null,
1511
+ chalk.cyan(figures.pointer),
1512
+ ' Trim instructions'
1513
+ ),
1514
+ h(Text, {dimColor: true}, ' Tell the agent what to look for when trimming'),
1515
+ h(
1516
+ Text,
1517
+ null,
1518
+ ' > ',
1519
+ hasTyped ? h(Text, {color: 'yellow'}, displayPrompt) : h(Text, null, displayPrompt)
1520
+ )
1521
+ )
1522
+ );
1523
+ }
1524
+
1525
+ // Find options form - interactive menu for find command options
1526
+ function FindOptionsForm({onSubmit, onCancel, initialOptions, variant}) {
1527
+ // variant: 'find' | 'find-claude' | 'find-codex'
1528
+ const showAgents = variant === 'find';
1529
+ const showNoSub = variant !== 'find-codex';
1530
+
1531
+ // Define fields based on variant
1532
+ const allFields = [
1533
+ 'keywords', 'global', 'num_matches',
1534
+ ...(showAgents ? ['agents'] : []),
1535
+ 'original',
1536
+ ...(showNoSub ? ['no_sub'] : []),
1537
+ 'no_trim', 'no_cont', 'min_lines', 'before', 'after'
1538
+ ];
1539
+
1540
+ // Mode: 'action' (top menu) or 'edit' (form editing)
1541
+ const [mode, setMode] = useState('action');
1542
+ const [actionIdx, setActionIdx] = useState(0); // 0=Submit, 1=Edit
1543
+ const [fieldIdx, setFieldIdx] = useState(0);
1544
+ const field = allFields[fieldIdx];
1545
+
1546
+ // Form state with initial values
1547
+ const [keywords, setKeywords] = useState(initialOptions.keywords || '');
1548
+ const [globalSearch, setGlobalSearch] = useState(initialOptions.global || false);
1549
+ const [numMatches, setNumMatches] = useState(String(initialOptions.num_matches || 10));
1550
+ const [agents, setAgents] = useState(initialOptions.agents || []);
1551
+ const [original, setOriginal] = useState(initialOptions.original || false);
1552
+ const [noSub, setNoSub] = useState(initialOptions.no_sub || false);
1553
+ const [noTrim, setNoTrim] = useState(initialOptions.no_trim || false);
1554
+ const [noCont, setNoCont] = useState(initialOptions.no_cont || false);
1555
+ const [minLines, setMinLines] = useState(String(initialOptions.min_lines || ''));
1556
+ const [before, setBefore] = useState(initialOptions.before || '');
1557
+ const [after, setAfter] = useState(initialOptions.after || '');
1558
+
1559
+ const doSubmit = () => onSubmit({
1560
+ keywords: keywords || null,
1561
+ global: globalSearch,
1562
+ num_matches: parseInt(numMatches, 10) || 10,
1563
+ agents: agents.length > 0 ? agents : null,
1564
+ original,
1565
+ no_sub: noSub,
1566
+ no_trim: noTrim,
1567
+ no_cont: noCont,
1568
+ min_lines: minLines ? parseInt(minLines, 10) : null,
1569
+ before: before || null,
1570
+ after: after || null,
1571
+ });
1572
+
1573
+ useInput((input, key) => {
1574
+ if (mode === 'action') {
1575
+ // Action menu mode
1576
+ if (key.escape) return onCancel();
1577
+ if (key.upArrow) { setActionIdx(0); return; }
1578
+ if (key.downArrow) { setActionIdx(1); return; }
1579
+ if (key.return) {
1580
+ if (actionIdx === 0) return doSubmit(); // Submit
1581
+ setMode('edit'); // Edit options
1582
+ return;
1583
+ }
1584
+ } else {
1585
+ // Edit mode
1586
+ if (key.escape) {
1587
+ setMode('action'); // Return to action menu
1588
+ return;
1589
+ }
1590
+
1591
+ // Navigate between fields
1592
+ if (key.return || key.downArrow || (key.tab && !key.shift)) {
1593
+ if (fieldIdx === allFields.length - 1) {
1594
+ setMode('action'); // Done editing, return to action menu
1595
+ } else {
1596
+ setFieldIdx((i) => i + 1);
1597
+ }
1598
+ return;
1599
+ }
1600
+ if (key.upArrow || (key.tab && key.shift)) {
1601
+ if (fieldIdx === 0) {
1602
+ setMode('action'); // Go back to action menu
1603
+ } else {
1604
+ setFieldIdx((i) => i - 1);
1605
+ }
1606
+ return;
1607
+ }
1608
+
1609
+ // Handle input based on field type
1610
+ const booleanFields = ['global', 'original', 'no_sub', 'no_trim', 'no_cont'];
1611
+ const textFields = ['keywords', 'num_matches', 'min_lines', 'before', 'after'];
1612
+
1613
+ if (booleanFields.includes(field)) {
1614
+ if (input === ' ' || input === 'y' || input === 'n' || input === '1' || input === '0') {
1615
+ const newVal = input === ' ' ? undefined : (input === 'y' || input === '1');
1616
+ if (field === 'global') setGlobalSearch(newVal !== undefined ? newVal : !globalSearch);
1617
+ if (field === 'original') setOriginal(newVal !== undefined ? newVal : !original);
1618
+ if (field === 'no_sub') setNoSub(newVal !== undefined ? newVal : !noSub);
1619
+ if (field === 'no_trim') setNoTrim(newVal !== undefined ? newVal : !noTrim);
1620
+ if (field === 'no_cont') setNoCont(newVal !== undefined ? newVal : !noCont);
1621
+ }
1622
+ } else if (field === 'agents') {
1623
+ if (input === '1' || input.toLowerCase() === 'c') {
1624
+ setAgents((a) => a.includes('claude') ? a.filter(x => x !== 'claude') : [...a, 'claude']);
1625
+ }
1626
+ if (input === '2' || input.toLowerCase() === 'x') {
1627
+ setAgents((a) => a.includes('codex') ? a.filter(x => x !== 'codex') : [...a, 'codex']);
1628
+ }
1629
+ } else if (textFields.includes(field)) {
1630
+ if (key.backspace || key.delete) {
1631
+ if (field === 'keywords') setKeywords((t) => t.slice(0, -1));
1632
+ if (field === 'num_matches') setNumMatches((t) => t.slice(0, -1));
1633
+ if (field === 'min_lines') setMinLines((t) => t.slice(0, -1));
1634
+ if (field === 'before') setBefore((t) => t.slice(0, -1));
1635
+ if (field === 'after') setAfter((t) => t.slice(0, -1));
1636
+ } else if (input && !key.ctrl) {
1637
+ if (field === 'keywords') setKeywords((t) => t + input);
1638
+ if (field === 'num_matches') setNumMatches((t) => t + input);
1639
+ if (field === 'min_lines') setMinLines((t) => t + input);
1640
+ if (field === 'before') setBefore((t) => t + input);
1641
+ if (field === 'after') setAfter((t) => t + input);
1642
+ }
1643
+ }
1644
+ }
1645
+ });
1646
+
1647
+ const arrow = figures.pointer;
1648
+ const check = figures.tick;
1649
+ const renderBool = (val) => val ? chalk.green(check + ' Yes') : chalk.dim('No');
1650
+ const renderText = (val, placeholder) => val ? chalk.yellow(val) : chalk.dim(placeholder);
1651
+ const inEdit = mode === 'edit';
1652
+
1653
+ const variantLabel = variant === 'find' ? 'All Agents' :
1654
+ variant === 'find-claude' ? 'Claude' : 'Codex';
1655
+
1656
+ return h(
1657
+ Box,
1658
+ {flexDirection: 'column'},
1659
+ h(Text, null, chalk.inverse.bold(` Find Sessions (${variantLabel}) `)),
1660
+
1661
+ // Action menu (top)
1662
+ h(Box, {marginTop: 1, marginBottom: 1, flexDirection: 'column'},
1663
+ h(Box, null,
1664
+ h(Text, null, !inEdit && actionIdx === 0 ? chalk.cyan(arrow) : ' ', ' '),
1665
+ h(Text, {color: !inEdit && actionIdx === 0 ? 'cyan' : 'white'}, 'Submit search')
1666
+ ),
1667
+ h(Box, null,
1668
+ h(Text, null, !inEdit && actionIdx === 1 ? chalk.cyan(arrow) : ' ', ' '),
1669
+ h(Text, {color: !inEdit && actionIdx === 1 ? 'cyan' : 'white'}, 'Edit options...')
1670
+ )
1671
+ ),
1672
+
1673
+ // Separator
1674
+ h(Text, {dimColor: true}, '─'.repeat(50)),
1675
+
1676
+ // Options form (bottom) - always visible
1677
+ h(Box, {marginTop: 1, flexDirection: 'column'},
1678
+ h(Text, {dimColor: !inEdit}, inEdit ? '↑/↓: navigate Enter: next Space/y/n: toggle Esc: done' : 'Options:'),
1679
+ h(Box, {marginTop: 1}),
1680
+
1681
+ // Keywords
1682
+ h(Box, null,
1683
+ h(Text, null, inEdit && field === 'keywords' ? chalk.cyan(arrow) : ' ', ' Keywords: '),
1684
+ h(Text, null, renderText(keywords, '(comma-separated, optional)'))
1685
+ ),
1686
+
1687
+ // Global search
1688
+ h(Box, null,
1689
+ h(Text, null, inEdit && field === 'global' ? chalk.cyan(arrow) : ' ', ' Global search (-g): '),
1690
+ h(Text, null, renderBool(globalSearch))
1691
+ ),
1692
+
1693
+ // Num matches
1694
+ h(Box, null,
1695
+ h(Text, null, inEdit && field === 'num_matches' ? chalk.cyan(arrow) : ' ', ' Max results (-n): '),
1696
+ h(Text, null, renderText(numMatches, '10'))
1697
+ ),
1698
+
1699
+ // Agents (only for unified find)
1700
+ showAgents ? h(Box, null,
1701
+ h(Text, null, inEdit && field === 'agents' ? chalk.cyan(arrow) : ' ', ' Agents (1=claude, 2=codex): '),
1702
+ h(Text, null, agents.length > 0 ? chalk.yellow(agents.join(', ')) : chalk.dim('all'))
1703
+ ) : null,
1704
+
1705
+ // Original only
1706
+ h(Box, null,
1707
+ h(Text, null, inEdit && field === 'original' ? chalk.cyan(arrow) : ' ', ' Original only (--original): '),
1708
+ h(Text, null, renderBool(original))
1709
+ ),
1710
+
1711
+ // No sub-agent (not for codex)
1712
+ showNoSub ? h(Box, null,
1713
+ h(Text, null, inEdit && field === 'no_sub' ? chalk.cyan(arrow) : ' ', ' Exclude sub-agents (--no-sub): '),
1714
+ h(Text, null, renderBool(noSub))
1715
+ ) : null,
1716
+
1717
+ // No trim
1718
+ h(Box, null,
1719
+ h(Text, null, inEdit && field === 'no_trim' ? chalk.cyan(arrow) : ' ', ' Exclude trimmed (--no-trim): '),
1720
+ h(Text, null, renderBool(noTrim))
1721
+ ),
1722
+
1723
+ // No rollover (internally "no_cont")
1724
+ h(Box, null,
1725
+ h(Text, null, inEdit && field === 'no_cont' ? chalk.cyan(arrow) : ' ', ' Exclude rollover (--no-roll): '),
1726
+ h(Text, null, renderBool(noCont))
1727
+ ),
1728
+
1729
+ // Min lines
1730
+ h(Box, null,
1731
+ h(Text, null, inEdit && field === 'min_lines' ? chalk.cyan(arrow) : ' ', ' Min lines (--min-lines): '),
1732
+ h(Text, null, renderText(minLines, '(no minimum)'))
1733
+ ),
1734
+
1735
+ // Before
1736
+ h(Box, null,
1737
+ h(Text, null, inEdit && field === 'before' ? chalk.cyan(arrow) : ' ', ' Before (--before): '),
1738
+ h(Text, null, renderText(before, '(no limit)'))
1739
+ ),
1740
+
1741
+ // After
1742
+ h(Box, null,
1743
+ h(Text, null, inEdit && field === 'after' ? chalk.cyan(arrow) : ' ', ' After (--after): '),
1744
+ h(Text, null, renderText(after, '(no limit)'))
1745
+ ),
1746
+
1747
+ h(Box, {marginTop: 1},
1748
+ h(Text, {dimColor: true}, 'Timestamps: YYYYMMDD, MM/DD/YY, YYYY-MM-DD with optional T or space + HH:MM:SS')
1749
+ )
1750
+ )
1751
+ );
1752
+ }
1753
+
1754
+ // Get default query from action config
1755
+ const DEFAULT_QUERY = ACTIONS.find(a => a.value === 'query')?.defaultQuery || 'Summarize this session';
1756
+
1757
+ function QueryView({session, rpcPath, onBack, onExit, clearScreen, exitOnBack = false}) {
1758
+ const {exit} = useApp();
1759
+ // If exitOnBack is true, Esc also exits (for direct invocation from Rust search)
1760
+ const handleBack = exitOnBack ? () => { onExit(); exit({exitCode: 0}); } : onBack;
1761
+ const [query, setQuery] = useState('');
1762
+ const [hasTyped, setHasTyped] = useState(false); // Track if user started typing
1763
+ const [stage, setStage] = useState('prompt'); // 'prompt', 'running', 'result'
1764
+ const [result, setResult] = useState('');
1765
+ const [error, setError] = useState('');
1766
+
1767
+ const runQuery = (queryText) => {
1768
+ if (!rpcPath) {
1769
+ setError('RPC path missing');
1770
+ setStage('result');
1771
+ return;
1772
+ }
1773
+ setStage('running');
1774
+ // Use setTimeout to let React render the "running" state before blocking
1775
+ setTimeout(() => {
1776
+ const req = {
1777
+ action: 'query',
1778
+ agent: session.agent,
1779
+ session_id: session.session_id,
1780
+ file_path: session.file_path,
1781
+ cwd: session.cwd,
1782
+ claude_home: session.claude_home,
1783
+ query: queryText,
1784
+ };
1785
+ const proc = spawnSync('python3', [rpcPath], {
1786
+ input: JSON.stringify(req),
1787
+ encoding: 'utf8',
1788
+ maxBuffer: 10 * 1024 * 1024, // 10MB for potentially long responses
1789
+ });
1790
+ if (proc.error) {
1791
+ setError(proc.error.message);
1792
+ setStage('result');
1793
+ return;
1794
+ }
1795
+ try {
1796
+ const out = JSON.parse(proc.stdout || '{}');
1797
+ if (out.status === 'ok') {
1798
+ setResult(out.message || 'No response');
1799
+ } else {
1800
+ setError(out.message || 'Error');
1801
+ }
1802
+ } catch (e) {
1803
+ setError(proc.stdout || 'Bad RPC output');
1804
+ }
1805
+ setStage('result');
1806
+ }, 50); // Small delay to allow render
1807
+ };
1808
+
1809
+ useInput((input, key) => {
1810
+ if (stage === 'prompt') {
1811
+ if (key.escape) {
1812
+ clearScreen();
1813
+ return handleBack();
1814
+ }
1815
+ if (key.return) {
1816
+ // Use default if user hasn't typed anything
1817
+ const q = hasTyped ? query.trim() : DEFAULT_QUERY;
1818
+ if (!q) {
1819
+ setError('Query cannot be empty');
1820
+ setStage('result');
1821
+ return;
1822
+ }
1823
+ runQuery(q);
1824
+ return;
1825
+ }
1826
+ if (key.backspace || key.delete) {
1827
+ if (hasTyped) {
1828
+ setQuery((q) => q.slice(0, -1));
1829
+ }
1830
+ return;
1831
+ }
1832
+ if (input) {
1833
+ if (!hasTyped) {
1834
+ // First keystroke clears placeholder
1835
+ setHasTyped(true);
1836
+ setQuery(input);
1837
+ } else {
1838
+ setQuery((q) => q + input);
1839
+ }
1840
+ }
1841
+ } else if (stage === 'result') {
1842
+ if (key.escape || key.return) {
1843
+ clearScreen();
1844
+ return handleBack();
1845
+ }
1846
+ }
1847
+ });
1848
+
1849
+ const id = (session.session_id || '').slice(0, 8);
1850
+ const anno = toAnno(session);
1851
+ const date = formatDateRange(session.create_time, session.mod_time);
1852
+ const branchDisplay = session.branch ? `${BRANCH_ICON} ${session.branch}` : '';
1853
+
1854
+ if (stage === 'running') {
1855
+ const agentName = session.agent === 'codex' ? 'Codex' : 'Claude';
1856
+ return h(
1857
+ Box,
1858
+ {flexDirection: 'column'},
1859
+ h(Text, null,
1860
+ chalk.bgMagenta.black(` QUERY `), ' ',
1861
+ colorize.project(session.project || ''), ' ',
1862
+ colorize.branch(branchDisplay)
1863
+ ),
1864
+ h(Box, {flexDirection: 'column', marginTop: 1},
1865
+ h(Text, {color: 'yellow'}, `⏳ Querying session using ${agentName} in non-interactive mode...`),
1866
+ h(Text, {dimColor: true}, ' This may take 30-60 seconds as the agent analyzes the session.')
1867
+ )
1868
+ );
1869
+ }
1870
+
1871
+ return h(
1872
+ Box,
1873
+ {flexDirection: 'column'},
1874
+ h(Text, null,
1875
+ chalk.bgMagenta.black(` QUERY `), ' ',
1876
+ colorize.project(session.project || ''), ' ',
1877
+ colorize.branch(branchDisplay)
1878
+ ),
1879
+ h(Text, null, ...formatSessionHeader(session)),
1880
+ stage === 'prompt'
1881
+ ? h(
1882
+ Box,
1883
+ {flexDirection: 'column', marginTop: 1},
1884
+ h(Text, null, 'Enter your question about this session (or Enter for default):'),
1885
+ h(Text, null, '>', ' ', hasTyped ? (query || chalk.dim('type query...')) : chalk.dim(DEFAULT_QUERY)),
1886
+ h(Text, {dimColor: true}, exitOnBack ? 'Enter: run query Esc: back to search' : 'Enter: run query Esc: back')
1887
+ )
1888
+ : h(
1889
+ Box,
1890
+ {flexDirection: 'column', marginTop: 1},
1891
+ error
1892
+ ? h(Text, {color: 'red'}, error)
1893
+ : h(
1894
+ Box,
1895
+ {flexDirection: 'column'},
1896
+ h(Text, {color: 'cyan', bold: true}, '─── Response ───'),
1897
+ h(Text, null, result)
1898
+ ),
1899
+ h(Text, {dimColor: true, marginTop: 1}, exitOnBack ? 'Enter/Esc: back to search' : 'Enter/Esc: back to menu')
1900
+ )
1901
+ );
1902
+ }
1903
+
1904
+ function NonLaunchView({session, action, rpcPath, onBack, onExit, clearScreen, exitOnBack = false}) {
1905
+ const {exit} = useApp();
1906
+ const needsDest = action === 'copy' || action === 'export';
1907
+ // If exitOnBack is true, Esc also exits (for direct invocation from Rust search)
1908
+ const handleBack = exitOnBack ? () => { onExit(); exit({exitCode: 0}); } : onBack;
1909
+ const [dest, setDest] = useState('');
1910
+ const [stage, setStage] = useState(needsDest ? 'prompt' : 'running');
1911
+ const [message, setMessage] = useState('');
1912
+ const [error, setError] = useState('');
1913
+ const [resultPath, setResultPath] = useState('');
1914
+ const startedRef = React.useRef(false);
1915
+
1916
+ const runRpc = (destArg) => {
1917
+ if (!rpcPath) {
1918
+ setError('RPC path missing');
1919
+ setStage('result');
1920
+ return;
1921
+ }
1922
+ const req = {
1923
+ action,
1924
+ agent: session.agent,
1925
+ session_id: session.session_id,
1926
+ file_path: session.file_path,
1927
+ cwd: session.cwd,
1928
+ claude_home: session.claude_home,
1929
+ dest: destArg,
1930
+ };
1931
+ const proc = spawnSync('python3', [rpcPath], {
1932
+ input: JSON.stringify(req),
1933
+ encoding: 'utf8',
1934
+ });
1935
+ if (proc.error) {
1936
+ setError(proc.error.message);
1937
+ setStage('result');
1938
+ return;
1939
+ }
1940
+ try {
1941
+ const out = JSON.parse(proc.stdout || '{}');
1942
+ if (out.status === 'ok') {
1943
+ const rawMsg = out.message || 'Done';
1944
+ setMessage(rawMsg);
1945
+ if (out.path) setResultPath(out.path);
1946
+ } else {
1947
+ setError(out.message || 'Error');
1948
+ }
1949
+ } catch (e) {
1950
+ setError(proc.stdout || 'Bad RPC output');
1951
+ }
1952
+ setStage('result');
1953
+ };
1954
+
1955
+ React.useEffect(() => {
1956
+ if (!needsDest && stage === 'running' && !startedRef.current) {
1957
+ startedRef.current = true;
1958
+ runRpc('');
1959
+ }
1960
+ }, [needsDest, stage]);
1961
+
1962
+ useInput((input, key) => {
1963
+ if (stage === 'prompt') {
1964
+ if (key.escape) {
1965
+ clearScreen();
1966
+ return handleBack();
1967
+ }
1968
+ if (key.return) {
1969
+ const submittedDest = dest.trim();
1970
+ const finalDest = submittedDest || (action === 'export' ? session.default_export_path : '');
1971
+ if (needsDest && !finalDest) {
1972
+ setError('Destination required');
1973
+ setStage('result');
1974
+ return;
1975
+ }
1976
+ setDest(finalDest);
1977
+ setStage('running');
1978
+ runRpc(finalDest);
1979
+ return;
1980
+ }
1981
+ if (key.backspace || key.delete) {
1982
+ setDest((d) => d.slice(0, -1));
1983
+ return;
1984
+ }
1985
+ if (input) setDest((d) => d + input);
1986
+ } else if (stage === 'result') {
1987
+ if (key.escape) {
1988
+ clearScreen();
1989
+ return handleBack();
1990
+ }
1991
+ if (key.return) {
1992
+ onExit();
1993
+ exit({exitCode: 0});
1994
+ }
1995
+ }
1996
+ });
1997
+
1998
+ const branchDisplay = session.branch ? `${BRANCH_ICON} ${session.branch}` : '';
1999
+
2000
+ return h(
2001
+ Box,
2002
+ {flexDirection: 'column'},
2003
+ h(Text, null,
2004
+ chalk.bgBlue.black(` ${action.toUpperCase()} `), ' ',
2005
+ colorize.project(session.project || ''), ' ',
2006
+ colorize.branch(branchDisplay)
2007
+ ),
2008
+ h(Text, null, ...formatSessionHeader(session)),
2009
+ renderPreview(session.preview),
2010
+ stage === 'prompt'
2011
+ ? (() => {
2012
+ const defaultPathHint = action === 'export' ? session.default_export_path : null;
2013
+ return h(
2014
+ Box,
2015
+ {flexDirection: 'column', marginTop: 1},
2016
+ h(
2017
+ Text,
2018
+ null,
2019
+ action === 'export'
2020
+ ? 'Enter path to export (blank = default below). Must end in .txt.'
2021
+ : 'Enter destination file or directory path:'
2022
+ ),
2023
+ h(Text, null, '>', ' ', dest || chalk.dim('type path...')),
2024
+ defaultPathHint ? h(Text, {dimColor: true}, `Default (blank = use): ${defaultPathHint}`) : null,
2025
+ h(Text, {dimColor: true}, exitOnBack ? 'Enter: run Esc: back to search' : 'Enter: run Esc: back')
2026
+ );
2027
+ })()
2028
+ : h(
2029
+ Box,
2030
+ {flexDirection: 'column', marginTop: 1},
2031
+ error
2032
+ ? h(Text, {color: 'red'}, error)
2033
+ : h(
2034
+ Box,
2035
+ {flexDirection: 'column'},
2036
+ h(Text, {color: 'green'}, message || 'Done'),
2037
+ resultPath && resultPath !== message && h(Text, {dimColor: true}, resultPath)
2038
+ ),
2039
+ h(Text, {dimColor: true}, exitOnBack ? 'Enter/Esc: back' : 'Enter: exit Esc: back')
2040
+ )
2041
+ );
2042
+ }
2043
+
2044
+ function App() {
2045
+ const {exit} = useApp();
2046
+ const {stdout} = useStdout();
2047
+ // Determine initial screen:
2048
+ // 1. startScreen param takes priority (e.g., 'resume' for aichat trim)
2049
+ // 2. startAction or single session -> 'action'
2050
+ // 3. Otherwise -> 'results'
2051
+ const [screen, setScreen] = useState(
2052
+ startScreen || (startAction || sessions.length === 1 ? 'action' : 'results')
2053
+ );
2054
+ const [current, setCurrent] = useState(
2055
+ focusId ? Math.max(0, sessions.findIndex((s) => s.session_id === focusId)) : 0
2056
+ );
2057
+ const [selectedSession, setSelectedSession] = useState(null); // Directly store selected session
2058
+ // Initialize nonLaunch if starting at nonlaunch screen with directAction
2059
+ const [nonLaunch, setNonLaunch] = useState(
2060
+ startScreen === 'nonlaunch' && directAction ? {action: directAction} : null
2061
+ );
2062
+ // Track where we entered trim from; 'direct' means from Rust search (back exits)
2063
+ const [trimSource, setTrimSource] = useState(
2064
+ startScreen === 'trim' && directAction ? 'direct' : null
2065
+ );
2066
+
2067
+ const safeCurrent = React.useMemo(() => {
2068
+ if (!sessions.length) return 0;
2069
+ return Math.min(Math.max(current, 0), sessions.length - 1);
2070
+ }, [current]);
2071
+
2072
+ // Use directly selected session if available, otherwise compute from index
2073
+ const session = selectedSession || sessions[safeCurrent];
2074
+
2075
+ const clearScreen = React.useCallback(() => {
2076
+ try {
2077
+ if (stdout?.isTTY) {
2078
+ stdout.write('\u001b[2J');
2079
+ stdout.write('\u001b[H');
2080
+ }
2081
+ } catch (e) {
2082
+ /* ignore */
2083
+ }
2084
+ }, [stdout]);
2085
+
2086
+ const switchScreen = (next) => {
2087
+ clearScreen();
2088
+ setScreen(next);
2089
+ };
2090
+
2091
+ const quit = () => exit({exitCode: 0});
2092
+
2093
+ const backToOptions = () => {
2094
+ fs.writeFileSync(outPath, JSON.stringify({action: 'back_to_options'}));
2095
+ exit({exitCode: 0});
2096
+ };
2097
+
2098
+ const finish = (action, kwargs = {}) => {
2099
+ writeResult(session.session_id, action, kwargs);
2100
+ exit({exitCode: 0});
2101
+ };
2102
+
2103
+ // Handle find_options screen first (doesn't need sessions)
2104
+ if (screen === 'find_options') {
2105
+ return h(FindOptionsForm, {
2106
+ initialOptions: findOptions,
2107
+ variant: findVariant,
2108
+ onSubmit: (opts) => {
2109
+ fs.writeFileSync(outPath, JSON.stringify({find_options: opts}));
2110
+ exit({exitCode: 0});
2111
+ },
2112
+ onCancel: () => exit({exitCode: 0}),
2113
+ });
2114
+ }
2115
+
2116
+ // Handle trim_confirm screen (confirmation after trim creates new file)
2117
+ if (screen === 'trim_confirm') {
2118
+ return h(TrimConfirmView, {
2119
+ trimInfo,
2120
+ clearScreen,
2121
+ onDone: (action) => {
2122
+ // action is 'resume' or 'delete'
2123
+ fs.writeFileSync(outPath, JSON.stringify({trim_action: action}));
2124
+ exit({exitCode: 0});
2125
+ },
2126
+ onCancel: () => {
2127
+ // Escape pressed - exit without action (file remains)
2128
+ fs.writeFileSync(outPath, JSON.stringify({trim_action: 'cancel'}));
2129
+ exit({exitCode: 0});
2130
+ },
2131
+ });
2132
+ }
2133
+
2134
+ // Handle dir_confirm screen (confirmation when session is from different directory)
2135
+ if (screen === 'dir_confirm') {
2136
+ return h(DirConfirmView, {
2137
+ dirInfo,
2138
+ clearScreen,
2139
+ onDone: (choice) => {
2140
+ // choice is 'yes' (change dir) or 'no' (don't change)
2141
+ fs.writeFileSync(outPath, JSON.stringify({dir_choice: choice}));
2142
+ exit({exitCode: 0});
2143
+ },
2144
+ onCancel: () => {
2145
+ // Escape pressed - cancel action
2146
+ fs.writeFileSync(outPath, JSON.stringify({dir_choice: 'cancel'}));
2147
+ exit({exitCode: 0});
2148
+ },
2149
+ });
2150
+ }
2151
+
2152
+ if (!sessions.length) {
2153
+ exit({exitCode: 0});
2154
+ return null;
2155
+ }
2156
+
2157
+ let view = null;
2158
+
2159
+ if (screen === 'results') {
2160
+ view = h(ResultsView, {
2161
+ focusIndex: current, // Pass parent's index to sync selection
2162
+ onSelect: (idx) => {
2163
+ const selected = sessions[idx];
2164
+ setSelectedSession(selected); // Store session directly
2165
+ setCurrent(idx);
2166
+ // If directAction is set, route to appropriate screen (same logic as ActionView.onDone)
2167
+ if (directAction) {
2168
+ if (['path', 'copy', 'export'].includes(directAction)) {
2169
+ setNonLaunch({action: directAction});
2170
+ switchScreen('nonlaunch');
2171
+ } else if (directAction === 'query') {
2172
+ switchScreen('query');
2173
+ } else if (directAction === 'resume_menu') {
2174
+ switchScreen('resume');
2175
+ } else if (directAction === 'suppress_resume') {
2176
+ // Trim: go to trim form, with back exiting to Rust search
2177
+ setTrimSource('direct'); // Special value for direct invocation
2178
+ switchScreen('trim');
2179
+ } else {
2180
+ // Actions like smart_trim_resume execute directly
2181
+ finish(directAction);
2182
+ }
2183
+ return;
2184
+ }
2185
+ switchScreen(selectTarget);
2186
+ },
2187
+ onChangeIndex: (idx) => setCurrent(idx),
2188
+ onQuit: backToOptions,
2189
+ clearScreen,
2190
+ });
2191
+ } else if (screen === 'action') {
2192
+ view = h(ActionView, {
2193
+ session,
2194
+ onBack: () => {
2195
+ // If only 1 session, exit to shell; otherwise go to results
2196
+ if (sessions.length === 1) quit();
2197
+ else switchScreen('results');
2198
+ },
2199
+ onDone: (action) => {
2200
+ if (['path', 'copy', 'export'].includes(action)) {
2201
+ setNonLaunch({action});
2202
+ switchScreen('nonlaunch');
2203
+ } else if (action === 'query') {
2204
+ switchScreen('query');
2205
+ } else if (action === 'resume_menu') switchScreen('resume');
2206
+ else finish(action);
2207
+ },
2208
+ clearScreen,
2209
+ });
2210
+ } else if (screen === 'resume') {
2211
+ // If started directly on resume with single session, quit on back
2212
+ // If selectTarget was 'resume', we came from results; back goes to results
2213
+ // Otherwise we came from action menu; back goes to action
2214
+ const resumeBackTarget = selectTarget === 'resume' ? 'results' : 'action';
2215
+ view = h(ResumeView, {
2216
+ session,
2217
+ onBack: () => {
2218
+ if (startScreen === 'resume' && sessions.length === 1) quit();
2219
+ else switchScreen(resumeBackTarget);
2220
+ },
2221
+ onDone: (value) => {
2222
+ if (value === 'suppress_resume') {
2223
+ setTrimSource('resume');
2224
+ switchScreen('trim');
2225
+ } else if (value === 'smart_trim_resume') {
2226
+ setTrimSource('resume');
2227
+ switchScreen('smart_trim_form');
2228
+ } else if (value === 'continue') switchScreen('lineage');
2229
+ else finish(value);
2230
+ },
2231
+ clearScreen,
2232
+ });
2233
+ } else if (screen === 'lineage') {
2234
+ // If directAction is set, back exits to shell; otherwise go to lineageBackTarget
2235
+ const lineageBack = directAction ? quit : () => switchScreen(lineageBackTarget);
2236
+ view = h(LineageView, {
2237
+ session,
2238
+ rpcPath,
2239
+ onContinue: () => switchScreen('continue_form'),
2240
+ onBack: lineageBack,
2241
+ clearScreen,
2242
+ });
2243
+ } else if (screen === 'continue_form') {
2244
+ // Back behavior depends on how we got here:
2245
+ // - If we started at lineage (rollover cmd), go back to lineage
2246
+ // - If directAction set and we started at continue_form (Rust search), exit to shell
2247
+ const continueBack = (directAction && startScreen !== 'lineage')
2248
+ ? quit
2249
+ : () => switchScreen('lineage');
2250
+ view = h(ContinueForm, {
2251
+ onBack: continueBack,
2252
+ onSubmit: (opts) => finish('continue', opts),
2253
+ session,
2254
+ clearScreen,
2255
+ });
2256
+ } else if (screen === 'smart_trim_form') {
2257
+ // If trimSource is 'direct', back exits to Rust search; otherwise go to trimSource screen
2258
+ const smartTrimBack = trimSource === 'direct' ? quit : () => switchScreen(trimSource || 'resume');
2259
+ view = h(SmartTrimForm, {
2260
+ onBack: smartTrimBack,
2261
+ onSubmit: (opts) => finish('smart_trim_resume', opts),
2262
+ session,
2263
+ clearScreen,
2264
+ });
2265
+ } else if (screen === 'trim') {
2266
+ // If trimSource is 'direct', back exits to Rust search; otherwise go to trimSource screen
2267
+ const trimBack = trimSource === 'direct' ? quit : () => switchScreen(trimSource || 'resume');
2268
+ view = h(TrimForm, {
2269
+ onBack: trimBack,
2270
+ onSubmit: (opts) => finish('suppress_resume', opts),
2271
+ session,
2272
+ clearScreen,
2273
+ });
2274
+ } else if (screen === 'trim_menu') {
2275
+ // Trim-only menu (for aichat trim command)
2276
+ // If selectTarget was 'trim_menu', we came from results; back goes to results
2277
+ // Otherwise just exit
2278
+ const trimBackTarget = selectTarget === 'trim_menu' ? 'results' : null;
2279
+ view = h(TrimView, {
2280
+ session,
2281
+ onBack: () => trimBackTarget ? switchScreen(trimBackTarget) : exit({exitCode: 0}),
2282
+ onDone: (value) => {
2283
+ if (value === 'suppress_resume') {
2284
+ setTrimSource('trim_menu');
2285
+ switchScreen('trim');
2286
+ } else if (value === 'smart_trim_resume') {
2287
+ setTrimSource('trim_menu');
2288
+ switchScreen('smart_trim_form');
2289
+ } else finish(value);
2290
+ },
2291
+ clearScreen,
2292
+ });
2293
+ } else if (screen === 'query') {
2294
+ // If we came via directAction, back goes to results; otherwise to action menu
2295
+ const queryBackTarget = directAction ? 'results' : 'action';
2296
+ view = h(QueryView, {
2297
+ session,
2298
+ rpcPath,
2299
+ onBack: () => switchScreen(queryBackTarget),
2300
+ onExit: quit,
2301
+ clearScreen,
2302
+ exitOnBack: !!directAction, // Exit completely when invoked from Rust search
2303
+ });
2304
+ } else if (screen === 'nonlaunch') {
2305
+ // If we came via directAction, back goes to results; otherwise to action menu
2306
+ const nonlaunchBackTarget = directAction ? 'results' : 'action';
2307
+ view = h(NonLaunchView, {
2308
+ session,
2309
+ action: nonLaunch.action,
2310
+ rpcPath,
2311
+ onBack: () => switchScreen(nonlaunchBackTarget),
2312
+ onExit: quit,
2313
+ clearScreen,
2314
+ exitOnBack: !!directAction, // Exit completely when invoked from Rust search
2315
+ });
2316
+ }
2317
+
2318
+ return view || null;
2319
+ }
2320
+
2321
+ render(h(App));