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