Teknium
74e56381d4
Merge branch 'simp/hclia-providers' into simp/integration
2026-09-02 14:19:39 -07:00
Teknium
796e81b391
Merge branch 'simp/hclia-prompt' into simp/integration
2026-09-02 14:19:39 -07:00
Teknium
b226b80752
Merge branch 'simp/hclia-review' into simp/integration
2026-09-02 14:19:39 -07:00
Teknium
0b18fe0bcd
Merge branch 'simp/hclia-aux' into simp/integration
2026-09-02 14:19:39 -07:00
Teknium
583e49ab4f
Merge branch 'simp/hclia-transports' into simp/integration
2026-09-02 14:19:38 -07:00
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
44982309b8
refactor(agent/prompt): dispatch tables and helper extraction in display, context refs, breakdown, compaction
...
build_tool_preview -> _PREVIEW_BUILDERS per-tool table; git @refs -> _GIT_REFERENCE_ARGS; context_breakdown
_skills_block/_append_overflow dedupe; prune_pre_checkpoint_items summary retention folded into one closure;
build_skill_invocation_message reuses _render_skill_block; ruff SIM collapses; restored two compacted
cache-policy invariant comments.
2026-09-02 13:53:58 -07:00
Teknium
593c8e9146
refactor(agent/prompt): split build_system_prompt_parts into tier helpers; unify model-gate resolver
...
_tool_guidance_block, _skills_prompt, _bot_mode_parts, _active_profile_line, _platform_hint, _memory_parts,
_zone_bits, _timestamp_line lifted out of the 600-line builder; tool_use_enforcement and execution_guidance
gates share _model_gate. Emitted prompt text is byte-identical.
2026-09-02 13:53:57 -07:00
Teknium
be5c6a2fd8
refactor(agent/prompt): remove dead code, unify duplicated helpers, compact docstrings across prompt/skill/redaction modules
...
Dead (zero refs): coding_system_blocks, get_friendly_tool_labels, get_scan_ordered_skills_dirs,
_project_quarantine_cache_clear, clear_stable_prefixes, _redact_http_request_target_query_params,
_has_http_method_substring, PromptCachePlan.marker_count, display _diff_* colour thunks (-> _diff_ansi),
pass-through RedactingFormatter.__init__.
Unified: _slugify -> slugify_skill_name; reload diff -> diff_command_snapshots; _is_summary_item ->
is_compaction_summary_message alias; sanitizer walkers -> _sanitize_messages/_sanitize_structure;
assignment redaction passes -> _redact_assignments/_should_redact_assignment; quiet-mode tool lines -> _CUTE_LINES table.
2026-09-02 13:53:57 -07:00
Teknium
96e952a4f8
refactor(agent/providers): one ProviderRegistry engine behind every *_registry module
...
- provider_registry.py: ProviderRegistry (global + per-scope maps, lock,
generation counters, register/list/get/snapshot/restore/reset) with
export() binding the historical module-level names and _providers/
_scoped_providers/_lock test hooks into each *_registry module
- is_available_safe / configured_provider_name replace the 4 nested
_is_available_safe closures and 2 config-reading blocks
- browser/image_gen/video_gen/web_search/terminal_env/tts/transcription
registries keep their public API, log strings, error strings, builtin
collision policy (warn vs raise) and key normalization (strip vs lower)
2026-09-02 13:53:28 -07:00
Teknium
8dcb2b6ada
refactor(agent/providers): shared ProviderBase/CatalogProviderBase and provider_media; compact contract docs
...
- provider_base.py: ProviderBase (name/display_name/get_setup_schema) and
CatalogProviderBase (default_model/list_models/is_available) replace the
identical default-method bodies duplicated across 7 provider ABCs
- provider_media.py: one save_b64/save_bytes/save_url/cache_dir implementation
behind image_gen_provider and video_gen_provider
- memory_manager.py: _each_provider fan-out helper replaces per-hook
try/except loops; _signature_params/_has_var_kwargs unify signature probes
- image_routing.py: _resolve_inference_value shared by base_url/api_key
resolution; _dict_or_empty/_clean_str/_custom_provider_entries helpers
- MemoryProvider/ContextEngine/TTS/browser/web/terminal-env ABC docstrings
compacted to their invariants; method names and signatures unchanged
2026-09-02 13:53:28 -07:00
Teknium
b6e1037730
refactor(agent/lsp): table-driven server registry, shared client/manager helpers, compact docs
...
- servers.py: per-language _root_*/_spawn_* functions collapsed into declarative
ServerDef entries built by _make_spec/_simple_spawn/_markers_root (-707 LOC)
- client.py: _write/_send_reply/_cancel_task helpers replace repeated
try/except blocks; handler dispatch tables for server->client requests
- manager.py: _broken_key unifies the (server_id, root) key derivation
- install.py/cli.py/eventlog.py/workspace.py/protocol.py/range_shift.py/
reporter.py: dedupe helpers (_find_binary, _link_into_bin, _run_installer,
_emit_once, _walk_up), drop dead log_no_server_configured, compact docs
2026-09-02 13:53:27 -07:00
Teknium
449f8c954d
test(agent): repoint send-path clone AST contract at turn_context.build_api_messages
2026-09-02 13:41:27 -07:00
Teknium
95177359f8
refactor(agent/aux): ruff SIM cleanups; compact vision custom-runtime recovery
2026-09-02 13:33:04 -07:00
Teknium
05d1136dea
refactor(agent/aux): fallback reason via ordered predicate table; single loop for stale-credential re-walk
2026-09-02 13:33:01 -07:00
Teknium
d8ef59a415
refactor(agent/aux): recovery-ladder rungs via one _rung() generator helper with named accept predicates
2026-09-02 13:33:01 -07:00
Teknium
da388692e4
refactor(agent/aux): one _field accessor for dict/object wire payloads
2026-09-02 13:32:58 -07:00
Teknium
6320c54552
refactor(agent/aux): _to_async_client header selection via _endpoint_default_headers
2026-09-02 13:32:56 -07:00
Teknium
0d41e9bdbc
refactor(agent/aux): shared pool loader; restore @_relay_auxiliary_call placement on call_llm
2026-09-02 13:32:55 -07:00
Teknium
14ec5874a5
refactor(agent/aux): collapse cancel-check readers and Codex-route model predicates
2026-09-02 13:32:53 -07:00
Teknium
b40d76823f
refactor(agent/aux): shared creds-pair and Nous pool entry-state helpers
2026-09-02 13:32:51 -07:00
Teknium
9001ed2365
refactor(agent/aux): shared _prepare_aux_request head for call_llm/async_call_llm
2026-09-02 13:32:49 -07:00
Teknium
d46aa77cde
refactor(agent/aux): extract named-custom credential resolution, Bedrock and Vertex client builders out of resolve_provider_client
2026-09-02 13:32:45 -07:00
Teknium
e3d352872b
refactor(agent/aux): shared chain-label aliases, context-window screen, event-loop helper
2026-09-02 13:32:41 -07:00
Teknium
575cd5f34e
refactor(agent/aux): shared hook ticker and _is_specialized_aux_client predicate
2026-09-02 13:32:41 -07:00
Teknium
5dfda6a615
refactor(agent/aux): compact _fallback_destination
2026-09-02 13:32:12 -07:00
Teknium
28c3cb1561
refactor(agent/aux): shared _endpoint_default_headers, single primary-attempt closure in call_llm impls, vision tail dedupe
2026-09-02 13:32:09 -07:00
Teknium
936c8bb626
refactor(agent/aux): split _CodexCompletionsAdapter.create into request build / final-response parse; dedupe stream/client close paths
2026-09-02 13:32:07 -07:00
Teknium
312378d9b1
refactor(agent/aux): unify _read_main_{model,provider,api_key,base_url} and relay call-context builders
2026-09-02 13:32:03 -07:00
Teknium
4022e69e69
refactor(agent/aux): lift max_tokens forwarding policy and Nous dual-wire check out of _build_call_kwargs
2026-09-02 13:32:00 -07:00
Teknium
dcbf263a09
refactor(agent/aux): unify same-provider retry and fallback-candidate prep across sync/async (_prepare_same_provider_retry, _plan_fallback_candidate)
2026-09-02 13:31:57 -07:00
Teknium
127a179ae5
refactor(agent/aux): share call_llm/async_call_llm route resolution (_resolve_call_client) and recovery ladder (_aux_recovery_ladder generator) across sync/async wires
2026-09-02 13:31:57 -07:00
Teknium
401efb0b2b
refactor(cli): decompose _cmd_update_impl into phase helpers, unify duplicated update helpers, compact comments
...
hermes_cli/update_cmd.py 11217 -> 10204 LOC; _cmd_update_impl 2797 -> 521 LOC.
Decomposition (behavior-neutral, AST free-name verified) — _cmd_update_impl is
now a thin orchestrator calling, in order:
_clear_windows_venv_holders_or_exit -> _prepare_checkout_for_update
(-> _CheckoutPlan) -> _repair_current_checkout | _pull_updates ->
_sync_python_dependencies_after_pull -> _run_post_update_maintenance ->
_restart_gateway_fleet_after_update (-> _GatewayRestartOutcome;
_restart_systemd_gateway_units) -> _resume_windows_gateways_and_merge_outcome
-> _verify_fleet_after_update. _resolve_manage_cmd hoisted to module level.
Unified helpers: _git_run (49 captured git subprocess.run sites),
_systemctl / _systemctl_reset_and_restart (17 sites + 2 pairs),
_sweep_bytecode_after_update (3x), _print_bundled_skills_sync_report (ZIP+git),
_ensure_venv_pip (ZIP+git), _self_and_non_gateway_ancestor_pids (2x),
_record_update_step (4x), _write_gateway_update_exit_code for the 3 inline
".update_exit_code" writes. Dropped duplicate nested copies of
_wait_for_service_active/_service_restart_sec/_print_items, dead
upstream_exists, a dead if/pass branch and unused imports.
Comments/docstrings hand-compacted (236 blocks, AST-identical with docstrings
normalized); rationale/invariant sentences kept.
Tests: source-inspection guards repointed to the helper that now owns the code
(test_update_self_lock, test_update_fleet_check_fail_closed,
test_update_apply_shallow_count); new regression test drives the real Windows
resume/merge helper.
2026-09-02 13:30:54 -07:00