Commit Graph

28253 Commits

Author SHA1 Message Date
Teknium e7e287cdd8 refactor(tui_gateway): tighten W5 modules (host_supervisor, agent_callbacks, model_switch, change_watcher, compute_host_bridge, browser, hosted-room adapters, git_probe, method_ctx, bot_relay) 3037->2680 LOC, zero behavior change 2026-09-03 02:28:12 -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
Teknium 7532f2045f refactor(tui_gateway): methods_tools/slash/complete — session+error guards, shared plugin runner, learning.* table, layout compaction 2026-09-02 23:12:13 -07:00
Teknium 2b538e535a refactor(tui_gateway): AST-neutral layout compaction of group H modules 2026-09-02 23:04:39 -07:00
Teknium f997235f1b refactor(tui_gateway): dedupe config/voice/profiles helpers, collapse ladders and hug payloads 2026-09-02 23:02:07 -07:00
Teknium 8c62bc058f refactor(tui_gateway): methods_session — _listing_rows helper, _Resume.claim/child_history, compact create/resume payloads 2026-09-02 22:53:19 -07:00
Teknium 957147365a refactor(tui_gateway): split _apply_model_switch into phase helpers, compact controller/browser/relay/watcher/billing helpers 2026-09-02 22:47:13 -07:00
Teknium 113f04616b Merge branch 'simp/r2-state' into simp/integration2
# Conflicts:
#	hermes_state_messages.py
2026-09-02 17:49:43 -07:00
Teknium f07ff1026f Merge branch 'simp/r2-update-doctor' into simp/integration2 2026-09-02 17:49:26 -07:00
Teknium 9c65ca8a02 Merge branch 'simp/r2-models-runtime' into simp/integration2 2026-09-02 17:49:26 -07:00
Teknium 56202613ef Merge branch 'simp/r2-loop' into simp/integration2 2026-09-02 17:49:25 -07:00
Teknium 56c5798203 Merge branch 'simp/r2-kanban' into simp/integration2 2026-09-02 17:49:25 -07:00
Teknium 06fb390212 fix(integration): restore stdin=DEVNULL on computer_use subprocess calls dropped in simplification 2026-09-02 17:48:26 -07:00
Teknium 135973b5b6 Merge branch 'simp/r2-state-b' into simp/r2-state
# Conflicts:
#	hermes_state_messages.py
2026-09-02 17:35:13 -07:00
Teknium 1113b65f3e Merge branch 'simp/r2-state-c' into simp/r2-state 2026-09-02 17:34:33 -07:00
Teknium 37e0e1a76d refactor(kanban-cli): split the subcommand spec list so no function exceeds 300 LOC 2026-09-02 17:30:13 -07:00
Teknium f9f87d9876 refactor(kanban-cli): compact docstrings/comments in kanban.py keeping every rationale 2026-09-02 17:30:13 -07:00
Teknium 37b160d04e refactor(kanban-cli): extract dispatcher/maintenance verbs to kanban_ops; unify single-mutation ok/err reporting 2026-09-02 17:30:13 -07:00
Teknium c7f3578521 refactor(kanban-cli): extract boards cluster to kanban_boards; unify goal-gate, id/reason, run-state and config helpers across handlers 2026-09-02 17:30:12 -07:00
Teknium 62a1607fbf refactor(kanban-cli): extract data-driven argparse tree to kanban_parser and output helpers to kanban_output 2026-09-02 17:30:12 -07:00