Commit Graph

28271 Commits

Author SHA1 Message Date
Teknium db03f855c7 Merge branch 'simp/hclia-runtime' into simp/integration 2026-09-02 14:19:38 -07:00
Teknium 6ad4ed9fba Merge branch 'simp/hclia-adapters' into simp/integration 2026-09-02 14:19:38 -07:00
Teknium db46847dbf Merge branch 'simp/hclia-creds-c' into simp/integration 2026-09-02 14:19:38 -07:00
Teknium 52028c4464 Merge branch 'simp/hclia-creds-b' into simp/integration 2026-09-02 14:19:38 -07:00
Teknium 343ceb6abe Merge branch 'simp/hclia-creds-a' into simp/integration 2026-09-02 14:19:38 -07:00
Teknium 81ddc99705 Merge branch 'simp/cli-update' into simp/integration 2026-09-02 14:19:37 -07:00
Teknium 50be642e52 Merge branch 'simp/cli-misc' into simp/integration 2026-09-02 14:19:37 -07:00
Teknium db0515f120 Merge branch 'simp/cli-mixins' into simp/integration 2026-09-02 14:19:37 -07:00
Teknium 0526bae1c4 Merge branch 'simp/cli-main' into simp/integration 2026-09-02 14:19:37 -07:00
Teknium 6625f8e5b4 Merge branch 'simp/cli-clipy' into simp/integration 2026-09-02 14:19:36 -07:00
Teknium 4dfd383765 Merge branch 'simp/agent-loop' into simp/integration 2026-09-02 14:19:36 -07:00
Teknium 673b2c6d5a Merge branch 'simp/agent-runagent' into simp/integration 2026-09-02 14:19:36 -07:00
Teknium e5e4f91b57 Merge branch 'simp/agent-tools' into simp/integration 2026-09-02 14:19:36 -07:00
Teknium 8c40fc4aba Merge branch 'simp/agent-ctxcomp' into simp/integration 2026-09-02 14:19:35 -07:00
Teknium 082dd91c79 Merge branch 'simp/agent-convcomp' into simp/integration 2026-09-02 14:19:35 -07:00
Teknium 7c6a581d38 Merge branch 'simp/agent-chat' into simp/integration 2026-09-02 14:19:35 -07:00
Teknium 53ab9d1ed0 Merge branch 'simp/agent-init-pb' into simp/integration 2026-09-02 14:19:35 -07:00
Teknium c43c0bcfa6 Merge branch 'simp/agent-init-moa' into simp/integration 2026-09-02 14:19:35 -07:00
Teknium 646aae4ba6 refactor(tui): move the projects RPC surface (workspaces, repo discovery, sidebar tree) out of server.py into methods_projects.py 2026-09-02 14:09:13 -07:00
Teknium a0c04543e0 refactor(tui): move billing/usage/subscription serializers out of server.py into billing_view.py 2026-09-02 14:09:13 -07:00
Teknium 99433742dc refactor(tui): extract the prompt turn into prompt_turn.py; compact methods_*/session_*/agent_callbacks; split _start_agent_build into scope/wiring helpers
- server.py 7663 -> 5319: _run_prompt_submit and its goal/loop/voice/scope
  phases move to tui_gateway/prompt_turn.py (bound via method_ctx.bind_module);
  _start_agent_build split into _bind/_release_build_profile_scopes,
  _deferred_build_agent_kwargs, _wire_session_agent, _start_session_services;
  _load_enabled_toolsets split (_enabled_mcp_server_names, _resolve_explicit_toolsets).
- methods_slash: _LIVE_SLASH_OUTPUT dispatch table; methods_tools: _SLASH_BUILTINS,
  _guarded; tool_progress: _PROGRESS_HANDLERS; methods_config_set:
  _REASONING_DISPLAY_WORDS; methods_voice: _VOICE_TOGGLE_ACTIONS.
- Unified: _denied_source (methods_session) replaces _WORKER_SOURCES in
  methods_profiles; _compress_live_with_feedback / _compute_host_slash shared by
  the slash mirror and /compress; _end_voice_chat shared by stop-phrase paths;
  _watcher_mtime_ns; _reaper_session_is_detached_idle; _notif_* helpers.
- Dead: _profile_dir_or_err, _resume_info, _slash_builtin_table (refs.py: 0 hits).
- acp_adapter/server.py: docstring compaction only (AST-identical).
- Every file semantically reviewed hunk-by-hunk for wire/log/lock/order parity.
2026-09-02 14:09:13 -07:00
Teknium 2eed968c87 refactor(tui): split session reaper/flush/heartbeat out of server.py; env knobs via _env.env_float/env_int; drop dead MCP shims 2026-09-02 14:09:13 -07:00
Teknium c6011955df refactor(tui): split compute-host bridge, session workdir/db-row, and session lifecycle out of server.py 2026-09-02 14:09:13 -07:00
Teknium 0a2fd94515 refactor(tui): table-drive the 8 identical *.respond handlers; drop dead mcp_rpc_helpers.resolve_profile + server shims; bind_module publishes cross-module aliases 2026-09-02 14:09:12 -07:00
Teknium 0a1057c709 refactor(tui): split live model-switch and compression logic out of server.py 2026-09-02 14:09:12 -07:00
Teknium 0095f908cd refactor(tui): split change watcher and tool-progress callbacks out of server.py; bind_module rebinds nested dispatch tables 2026-09-02 14:09:11 -07:00
Teknium c9312b6eee refactor(tui): split notification poller and prompt attachment staging out of server.py 2026-09-02 14:09:10 -07:00
Teknium 28bc8d05b9 refactor(tui): restore compact WHY notes lost in earlier docstring compaction 2026-09-02 14:09:08 -07:00
Teknium 1134e5171d refactor(tui): split auto-continue, session history shaping and agent-callback wiring out of server.py 2026-09-02 14:09:08 -07:00
Teknium f2efa400e2 refactor(tui): rename methods_config_set._display_cfg -> _display_section; bind_module refuses cross-module function name collisions 2026-09-02 14:09:07 -07:00
Teknium a0a41abf72 refactor(tui): move slash.exec mirror + completion helpers out of server.py 2026-09-02 14:09:06 -07:00
Teknium b1581c1985 refactor(tui): move browser connect/disconnect helpers into methods_browser.py 2026-09-02 14:09:05 -07:00
Teknium 518a19b22d refactor(tui): move voice/TTS/wake-word handlers + state into methods_voice.py 2026-09-02 14:09:04 -07:00
Teknium d6871a1a3b refactor(tui): extract config.set into methods_config_set.py with a key dispatch table
- 790-line if-chain in server.py -> 20 _set_* handlers + _CONFIG_SETTERS dict
- dedupe: _write_display_sections (4 copies of the cfg/display/sections dance),
  _toggle_display_bool (density/battery), _emit_session_info/_emit_all_session_info,
  _display_cfg
- bind_module rebinds function values inside dispatch dicts
- wire parity: 61-call config.set sweep + resulting config.yaml byte-identical
2026-09-02 14:09:03 -07:00
Teknium beacf4e942 refactor(tui): resume — verified partial work (acp_adapter + methods_* compaction, bind_module via globals()) 2026-09-02 14:09:01 -07:00
Teknium 93fead86dd refactor(tui): compact peripheral modules (compute_host, entry, hosted_room_*, ws, project_tree, ...); add _env knobs and method_ctx.bind_module
Docstring/comment compaction plus small structural dedupe across the
tui_gateway peripheral modules. Originally landed as an outage-recovery
snapshot; reviewed and verified afterwards (import smokes, cluster tests).
2026-09-02 14:09:00 -07:00
Teknium a07dceb01f refactor(adapters/small_group): 5147->3565; line/email/ntfy/homeassistant/sms send-family and standalone-send dedupe, god-method extraction, dead find_pending_for_chat removed 2026-09-02 14:06:48 -07:00
Teknium c4f96565d0 refactor(adapters/whatsapp_webhook): 6449->4465; whatsapp_cloud/common/plugin send + media unification, webhook route/filter dispatch tables 2026-09-02 14:06:38 -07:00
Teknium 40532d1b7f refactor(adapters/qq_signal): 8720->6042; qqbot keyboards/chunked_upload/onboard dedupe, signal send/receive helpers, bluebubbles + msgraph_webhook helper unification 2026-09-02 14:06:37 -07:00
Teknium 791417590d refactor(adapters/matrix_group): 9272->6311; matrix dead fetch_history/_send_simple_message/HTMLParser stubs removed, simplex/mattermost/irc one-verb API helpers and send builders 2026-09-02 14:06:37 -07:00
Teknium 8f1ef66b1f refactor(adapters/p2p_group): 12752->8794; buzz/photon/a2a/raft dedupe (sidecar paths unified in photon package, JSON-RPC helpers, Nostr event builders), dead a2a security getters + stream_message removed 2026-09-02 14:06:36 -07:00
Teknium b8bea7199c refactor(adapters/cn_group): 12368->8549; wecom split into streaming/media/send_queue mixins, dingtalk inbound parsers -> inbound.py, google_chat cards.py + setup_files.py, teams summary_writer.py; dedupe token/URL/credential helpers 2026-09-02 14:06:34 -07:00
Teknium 9837fd0bc4 refactor(adapters/yuanbao_weixin): 10420->6889; yuanbao_proto spec-table encode/decode (-46%), unify weixin HTTP/send/media/typing helpers, drop dead send_file/register_handler/encode_forward_msg_data, duplicate _on_delta 2026-09-02 14:06:33 -07:00
Teknium 513ba5b846 refactor(adapters/feishu): 8095->5665; unify request/response wrappers, card builders, comment timeline selectors; dead symbols dropped; compact docs 2026-09-02 14:06:33 -07:00
Teknium 33c74a26c6 refactor(adapters/slack): 10667->7456; drop F811 _ssrf_redirect_guard shadow, split _handle_slack_message_impl (1135->~500) and connect(), unify Block Kit handlers, client/DM lookups, ts-eviction, upload retry; compact docs 2026-09-02 14:06:33 -07:00
Teknium 6e5b084b8b refactor(adapters/discord): 11250->7733; _HermesView base for 6 component views (1074-line factory -> 634), _send_prompt/_resolve_channel/_send_url_media/_send_local_file unification, opus loading and setup helpers extracted, dead _discord_allow_any_attachment removed 2026-09-02 14:06:32 -07:00
Teknium cc11c6bfdd refactor(adapters/telegram): 11957->8819; unify send/edit retry classification, media caching, auth gates, model-picker branches, polling recovery; compact docs 2026-09-02 14:06:32 -07:00
Teknium 581d97e545 refactor(adapters/api_server): 10589->8871; extract OpenAI-compatible routes into api_server_openai_routes.py, dedupe SSE/response builders, drop dead idempotency acknowledge path 2026-09-02 14:06:32 -07:00
Teknium d3db321828 refactor(adapters/base): base.py 7719->5348, helpers.py 942->640; extract _process_message_background helpers, unify media send/fallback/cache/notice paths, drop dead _resolve_extensionless_candidate + TextBatchAggregator, compact docs 2026-09-02 14:06:31 -07:00
Teknium 661fc669a0 refactor(adapters): add gateway/platforms/_shared.py (scoped-secret / profile-scope / port helpers) and lift shared text-batching into BasePlatformAdapter
Unifies 25 per-adapter copies of _get_scoped_secret/_get_wsecret/_resolve_qq_secret/_sig_secret/_yb_secret, 4+ _profile_scoped*, 3 _coerce_port, 5 _text_batch_key and 4 _enqueue_text_event.
2026-09-02 14:06:31 -07:00