Teknium
57b2dfdf0e
refactor(cli): decompose HermesCLI.run() (3433 -> 384 LOC) into _tui_* methods
...
70 nested closures (every prompt_toolkit key handler and handler factory, the
clarify/sudo/secret/approval/model-picker/command-palette/stash display
renderers, hint/placeholder/spinner callables, process_loop, spinner_loop,
_signal_handler, wake-startup) become HermesCLI._tui_* methods; run() only
binds them (kb.add(...)(self._tui_x)). The run() locals they closed over are
published on self at their original binding sites (_tui_multiline_shortcuts,
the four paste list-cells; process_loop reads self._app). Then four zero-
back-ref prologue regions become _tui_print_startup, _tui_init_run_state,
_tui_build_key_bindings -> kb and _tui_build_layout(kb) -> (layout, style).
All moved bodies verified AST-identical modulo cli_ref->self and the free-var
rewrites; unresolved-free-name check on every new method is empty. Source-
inspection tests repointed: getsource(run) -> _tui_process_loop, AST lookup of
handle_enter -> _tui_handle_enter.
2026-09-02 13:29:43 -07:00
..
2026-07-29 19:53:17 -07:00
2026-07-31 21:21:20 -07:00
2026-07-29 13:10:23 -07:00
2026-08-08 17:37:26 -07:00
2026-07-29 13:10:23 -07:00
2026-07-08 07:59:24 -07:00
2026-06-19 16:59:43 -07:00
2026-08-29 07:25:17 -07:00
2026-07-14 22:14:10 -07:00
2026-08-29 07:25:17 -07:00
2026-08-29 17:58:46 -07:00
2026-05-28 22:26:25 -07:00
2026-07-29 13:10:23 -07:00
2026-08-29 18:13:33 -07:00
2026-09-02 05:34:35 -07:00
2026-07-30 03:39:26 -05:00
2026-07-21 04:29:34 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-06-25 19:57:58 -05:00
2026-07-29 13:10:23 -07:00
2026-08-09 22:09:49 -04:00
2026-08-01 15:34:16 -07:00
2026-08-14 13:09:37 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 23:16:18 -07:00
2026-09-01 12:07:35 -07:00
2026-08-14 21:41:26 -07:00
2026-08-15 01:04:19 -07:00
2026-07-01 00:12:32 -07:00
2026-07-17 20:55:24 +00:00
2026-08-08 19:22:53 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-08-28 23:38:59 -05:00
2026-07-29 13:10:23 -07:00
2026-08-10 10:40:19 -07:00
2026-08-16 01:51:35 -07:00
2026-07-31 12:04:59 -04:00
2026-07-29 13:10:23 -07:00
2026-08-13 21:38:30 +02:00
2026-07-29 13:10:23 -07:00
2026-05-25 01:20:33 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-08-29 18:34:51 -07:00
2026-08-20 04:14:07 -07:00
2026-07-29 13:10:23 -07:00
2026-05-29 00:31:44 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 15:12:28 -07:00
2026-08-02 20:30:06 -07:00
2026-08-19 19:41:59 -07:00
2026-08-20 04:30:33 -07:00
2026-07-29 13:10:23 -07:00
2026-07-23 08:19:14 -07:00
2026-09-02 13:29:43 -07:00
2026-08-09 22:09:49 -04:00
2026-07-29 13:10:23 -07:00
2026-08-20 11:39:03 +05:30
2026-05-28 22:26:25 -07:00
2026-07-29 13:10:23 -07:00
2026-09-02 13:29:41 -07:00
2026-07-29 13:10:23 -07:00
2026-05-25 01:41:54 -07:00
2026-08-16 01:56:43 -07:00
2026-09-02 05:33:13 -07:00
2026-08-15 01:04:19 -07:00
2026-08-17 13:26:29 +05:30
2026-08-29 18:08:55 -07:00
2026-07-31 22:33:16 -07:00
2026-08-14 13:09:37 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-08-20 03:59:16 -07:00
2026-08-31 10:08:48 -07:00
2026-08-17 16:55:07 -07:00
2026-07-29 13:10:23 -07:00
2026-09-02 06:36:16 -07:00
2026-06-03 23:51:44 -06:00
2026-07-29 13:10:23 -07:00
2026-07-31 21:21:16 -07:00
2026-07-31 21:21:16 -07:00
2026-06-19 01:53:32 +05:30
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-09-01 22:14:33 -07:00
2026-08-14 14:39:08 +05:30
2026-05-28 22:26:25 -07:00
2026-08-15 02:04:49 -07:00
2026-07-27 21:10:51 -07:00
2026-08-19 19:42:07 -07:00
2026-08-31 10:09:42 -07:00
2026-07-29 13:10:23 -07:00
2026-05-28 22:26:25 -07:00
2026-08-09 22:09:49 -04:00
2026-09-02 13:29:41 -07:00
2026-08-20 01:46:08 -07:00
2026-09-02 13:29:43 -07:00
2026-07-29 13:10:23 -07:00
2026-07-28 23:53:16 -07:00
2026-07-29 13:10:23 -07:00
2026-09-02 13:29:43 -07:00
2026-08-13 14:22:14 -07:00
2026-07-29 15:12:28 -07:00
2026-08-08 14:06:30 +05:30
2026-07-29 13:10:23 -07:00
2026-07-22 16:51:01 -04:00
2026-06-05 18:05:05 -07:00
2026-08-31 07:27:50 -07:00
2026-07-29 23:16:18 -07:00
2026-08-17 03:03:47 -07:00
2026-07-29 15:34:53 -07:00
2026-08-20 00:00:28 -07:00