Commit Graph

28271 Commits

Author SHA1 Message Date
Teknium cf60ebbdfd refactor(tui_gateway): W4 wave2 pass 19 — readiness scope inlined, secret mirroring unified 2026-09-03 03:12:31 -07:00
Teknium c5e7d319b1 refactor(tui_gateway): W4 wave2 pass 18 — config.get profile/project/thinking folds 2026-09-03 03:09:24 -07:00
Teknium 7b52503cc5 refactor(tui_gateway): W4 wave2 pass 17 — ui_meta default-false fold 2026-09-03 03:06:56 -07:00
Teknium cb31284395 refactor(tui_gateway): W4 wave2 pass 16 — profile asset/configure folds, voice tts setter 2026-09-03 03:04:57 -07:00
Teknium bd0689b13e refactor(tui_gateway): W4 wave2 pass 15 — toggle setters table (density/battery/statusbar/mouse) 2026-09-03 03:03:19 -07:00
Teknium c398505e5a refactor(tui_gateway): W4 wave2 pass 14 — busy/approvals into word table 2026-09-03 03:02:44 -07:00
Teknium 6e69a036ad refactor(tui_gateway): W4 wave2 pass 13 — word-validated config.set setters table 2026-09-03 03:01:18 -07:00
Teknium db7b8c7d02 refactor(tui_gateway): W4 wave2 pass 12 — record_repos pairs comprehension, voice.tts/tts_stop folds 2026-09-03 02:57:32 -07:00
Teknium f5a3ea3686 refactor(tui_gateway): W4 wave2 pass 11 — profile mcp toggle / preview folds 2026-09-03 02:55:03 -07:00
Teknium f94a5e7358 refactor(tui_gateway): W4 wave2 pass 10 — profile ui_meta fields fold 2026-09-03 02:53:14 -07:00
Teknium 90e008098d refactor(tui_gateway): W4 wave2 pass 9 — _set_model deferred phase extracted 2026-09-03 02:52:21 -07:00
Teknium 8d1714018a refactor(tui_gateway): W4 wave2 pass 8 — split prompt/personality/skin setters, nest single-use voice helpers 2026-09-03 02:49:40 -07:00
Teknium dfd0a56ee9 refactor(tui_gateway): W4 wave2 pass 7 — fd_trip/deliver fold, describe_toolsets loop, voice banners 2026-09-03 02:45:12 -07:00
Teknium 0b937a599c refactor(tui_gateway): W4 wave2 pass 6 — full-duplex listener predicates 2026-09-03 02:42:03 -07:00
Teknium b7cd04cb6a refactor(tui_gateway): W4 wave2 pass 5 — readiness probe stamp, config.get session getters, wake.start compaction 2026-09-03 02:39:10 -07:00
Teknium 0548956da0 refactor(tui_gateway): W4 wave2 pass 4 — profile/config_set docstring+comment compaction, mirror helpers 2026-09-03 02:36:23 -07:00
Teknium b7747dce42 refactor(tui_gateway): W4 wave2 pass 3 — config.set toggle-setter table, voice.record inlined, wake.status/feed compaction 2026-09-03 02:31:38 -07:00
Teknium b263a6f977 refactor(tui_gateway): W4 wave2 pass 2 — wake owner-result helper, profile asset magic table, config.set/get compaction 2026-09-03 02:25:37 -07:00
Teknium f334f61523 refactor(tui_gateway): W4 wave2 pass 1 — config.get table, config.set guard decorator, voice/profile helper folds 2026-09-03 02:15:41 -07:00
Teknium e1dc1ff22d Merge branch 'simp/r3-36-B' into simp/r3-36 2026-09-03 01:46:31 -07:00
Teknium a55547ad62 Merge branch 'simp/r3-36-E' into simp/r3-36 2026-09-03 01:06:22 -07:00
Teknium 0194f07940 Merge branch 'simp/r3-36-D' into simp/r3-36 2026-09-03 01:06:21 -07:00
Teknium 46afe9ff44 refactor(tui_gateway): control-ack builder, callback/pid/route helpers, envelope collapse (group E) 2026-09-03 00:52:04 -07:00
Teknium 47c781c2a8 refactor(tui_gateway): shared token estimator in compress feedback, iterator subsequence rank 2026-09-03 00:47:01 -07:00
Teknium af0eaf691c refactor(tui_gateway): _list_repo_files split into git/walk generators with islice cap 2026-09-03 00:44:33 -07:00
Teknium 37e60502c1 refactor(tui_gateway): /learn,/plan,/init via one prompt-builtin factory; mcp.servers.test failure payload inline 2026-09-03 00:42:22 -07:00
Teknium 8b25a8ae09 refactor(tui_gateway): insights.get guard, undo count parse, quick-command output join, Counter role tally 2026-09-03 00:37:54 -07:00
Teknium 255654b473 refactor(tui_gateway): usage formatter row table, catalog bucket via setdefault, mirror_model one-liner 2026-09-03 00:33:29 -07:00
Teknium e44f1447ac Merge branch 'simp/r3-36-H' into simp/r3-36 2026-09-03 00:27:17 -07:00
Teknium e01e92dd3a Merge branch 'simp/r3-36-G' into simp/r3-36 2026-09-03 00:27:16 -07:00
Teknium cd6705ff4f Merge branch 'simp/r3-36-F' into simp/r3-36 2026-09-03 00:27:15 -07:00
Teknium 254ea038d9 Merge branch 'simp/r3-36-C' into simp/r3-36 2026-09-03 00:27:14 -07:00
Teknium ae94886814 refactor(tui_gateway): table-driven groups passthrough handlers, pid/authority helpers, docstring compaction (group E) 2026-09-03 00:17:58 -07:00
Teknium 9bc478d617 refactor(tui_gateway): commands.catalog phase helpers, complete.path listing split, slash formatter table, captured-exec + oauth/plugin helpers 2026-09-03 00:13:38 -07:00
Teknium b279e45d7c refactor(tui_gateway): entry discovery spawn helper, row/kwargs table tightening
- entry: _spawn_discovery + logged _mcp_startup_call replace the two duplicated
  start_background_mcp_discovery try/except blocks (same log levels + messages);
  docstrings/comments compacted keeping every signal/thread WHY.
- methods_projects/agent_callbacks: _project_tree_row and preview kwargs tightened.
Goldens identical; WIRE-PARITY-OK.
2026-09-03 00:05:29 -07:00
Teknium de227bdc34 refactor(tui_gateway): final compaction pass on r3-36 group G
- mcp_oauth_sessions: lift the probe+rollback block out of _worker (_probe_with_rollback).
- project_tree: lane group built from a field table; stamp_profile/_lane_key/_disambiguate
  flattening. methods_projects: policy loader + scan loop tightened. agent_callbacks:
  preview-history filter via _PREVIEW_HISTORY_ROLES. Blank-line squeeze after in-body
  lazy imports (AST-identical). All goldens identical; WIRE-PARITY-OK.
2026-09-02 23:54:51 -07:00
Teknium 42e34fa73d refactor(tui_gateway): methods_session — collapse _find_live_unpersisted/_try_get_session, squeeze intra-body blanks, rewrap comments to 100 cols 2026-09-02 23:51:54 -07:00
Teknium 10b426272f refactor(tui_gateway): projects.* error shell decorator, shared wake frame fields, secret-copy helper 2026-09-02 23:47:08 -07:00
Teknium aef127ad46 refactor(tui_gateway): projects mutator table, mcp_startup call helper, kwargs table in agent_callbacks
- methods_projects: update/add_folder/remove_folder/set_primary handlers registered from a
  _PROJECT_MUTATORS table (same @method names, same 5062/5063/5061 mapping); _pick() for
  params->kwargs; old-vs-new RPC golden (27 calls incl. error paths) identical.
- entry: _mcp_startup_call() replaces 5 lazy import+try/except ladders on hermes_cli.mcp_startup
  (tests monkeypatch mcp_startup module attrs — still resolved at call time).
- agent_callbacks: _background_agent_kwargs built from key tables; drop unused _registry.
- docstring compaction (module docstrings <= 8 lines, WHYs kept).
WIRE-PARITY-OK.
2026-09-02 23:44:18 -07:00
Teknium d44228c609 refactor(tui_gateway): _TurnScopes/_TurnRun as dataclasses, tighter module docstring 2026-09-02 23:44:12 -07:00
Teknium bd770ab70b refactor(tui_gateway): compact voice/config/profiles docstrings, hug payloads, squeeze body blanks 2026-09-02 23:43:54 -07:00
Teknium b0fbde9451 refactor(tui_gateway): collapse billing/publisher/method_ctx defensive layers in group H 2026-09-02 23:41:16 -07:00
Teknium 955d362176 refactor(tui_gateway): methods_session — fold steer/redirect into _apply_correction, _save_via_compute_host, _int_param/_b64 helpers, compact payload literals and docstrings 2026-09-02 23:40:05 -07:00
Teknium 9ea83e7f96 refactor(tui_gateway): collapse hosted-room init/scope validation, share resolve-or-create, squeeze layout 2026-09-02 23:34:06 -07:00
Teknium 3d80006765 refactor(tui_gateway): drop compute_host spike path, unify frame/reply builders, extend _room_method, compact layout (group E) 2026-09-02 23:27:53 -07:00
Teknium 052a5dec66 refactor(tui_gateway): table-drive billing error kinds, share pet selection, compact group H docstrings 2026-09-02 23:25:59 -07:00
Teknium 79d0d3b600 refactor(tui_gateway): compact project_tree/methods_projects/agent_callbacks/entry/mcp_oauth_sessions (-16%)
- project_tree: split build_tree (207 LOC) into _auto_buckets/_home_project phase helpers;
  _field() replaces 9 '(x.get(k) or "").strip()' ladders; _project_node takes wire-shaped
  **flags; drop unused placement 'repo_path' and _strip_trailing_sep; _FolderIndex/
  _project_for_session collapsed. Old-vs-new golden (67 synthetic build_tree runs) identical.
- methods_projects: _project_ok/_path_param unify 4 handler tails; _project_tree_row via
  dict comprehensions; discovered-cache read via contextlib.nullcontext; policy loader
  helpers. Golden over rows/policy/junk predicates identical.
- agent_callbacks: subagent mirror dispatch on a delta table; drop _render_personality_prompt
  (single caller); getattr shorthand in _background_agent_kwargs.
- entry: _write_or_exit unifies 3 write-fail exits; suppress(); heartbeat/sweep start loop.
- mcp_oauth_sessions: suppress(), gc/listener/redirect compaction, docstrings.
WIRE-PARITY-OK; tests green.
2026-09-02 23:24:24 -07:00
Teknium cb0352d6db refactor(tui_gateway): AST-neutral layout compaction + docstring tightening for prompt modules 2026-09-02 23:21:59 -07:00
Teknium 31184bdc0f refactor(tui_gateway): unify hosted-room driver/peer plumbing into fenced-op, session-probe and error-table helpers 2026-09-02 23:15:46 -07:00
Teknium f80e2c77c1 refactor(tui_gateway): split prompt turn/submit god functions into phase helpers, unify side-agent + followup dispatch 2026-09-02 23:14:19 -07:00