Commit Graph

19 Commits

Author SHA1 Message Date
teknium1 dd1baee0e4 refactor(secrets): drop scope-aware env shims; runtime_provider and the voice/xai tools read the canonical getters
hermes_cli/runtime_provider._getenv was a 4-line copy of get_secret(name,
default) or default; it becomes agent.secret_scope.get_secret_str (returns
default only when the secret is genuinely unset, still raises
UnscopedSecretError — a child's unscoped read is a spawn-site bug). The
runtime_provider_backends/_custom siblings call it directly instead of via
the origin module.

tools/tts_tool, tools/transcription_tools and tools/xai_http each carried an
identical get_env_value re-export kept "so tests can patch" it; the seam is
hermes_cli.config.get_env_value, read lazily at call time. Callers
(tts_streaming, tts_tool_providers, transcription_cloud, voice_client_config,
tools_config) go there directly; resolve_provider_secret already defaults to
it so the env_getter kwarg is gone. Tests repointed at the canonical; the two
tests that only proved the shim forwarded are deleted.

Behavior change: none.
2026-09-13 05:07:50 -07:00
Teknium e83816a4d1 review-fix(comments): restore lost #NNNN rationale comments across non-test source (mechanical sweep, condensed, code unchanged)
For each issue anchor present in BASE 63279301bc non-test .py and absent on HEAD, the BASE comment/docstring block was re-attached at the HEAD location of the code it explained (matched by the distinctive code line / enclosing def). Sentences already covered by an existing HEAD comment were deduped; the issue number always survives. Insert-only: no code lines changed.
2026-09-03 09:44:26 -07:00
Teknium 7664005a5d refactor(tools): pack tts constant tables, writelines for elevenlabs, lease release result literal 2026-09-03 01:23:19 -07:00
Teknium 7f87550c68 refactor(tools): fold gemini base_url/xai rate locals, lease result merge 2026-09-03 01:20:15 -07:00
Teknium 5752c2dd68 refactor(tools): iter-sentinel drain, fold ogg repair guard, speaker init tuple, PEP8 blank fix 2026-09-03 01:17:43 -07:00
Teknium 58b0f218c4 refactor(tools): fold tts voice-delivery native branch, config-load fallthrough, speaker one-liners 2026-09-03 01:15:20 -07:00
Teknium 636bf247e8 refactor(tools): wrap over-long tts call lines (AST-neutral) 2026-09-03 01:09:56 -07:00
Teknium df4547570a refactor(tools): squeeze in-body and banner blank lines in tts modules 2026-09-03 01:09:11 -07:00
Teknium a3ce6dd4cb refactor(tools): compact tts providers/openai/speaker — fold aux-reply parsing, iter sentinels, blank squeeze 2026-09-03 01:07:09 -07:00
Teknium 282d714837 refactor(tools): AST-neutral layout compaction of tts modules (hug brackets, join closers) 2026-09-03 00:54:51 -07:00
Teknium 05c6da2985 refactor(tools): drop test-only _has_any_command_tts_provider, fold tts provider write paths and speaker text pump 2026-09-03 00:51:58 -07:00
Teknium 45fb404019 refactor(tools): share tts _origin/_section/_remove_quietly via delivery module; fold gemini json body parsing, media tag, stream reinit 2026-09-03 00:47:54 -07:00
Teknium 70d290fa46 refactor(tools): unify tts text packers, drop dead MAX_TEXT_LENGTH alias, compact docstrings 2026-09-02 23:30:19 -07:00
Teknium af4416a828 refactor(tools): reuse int16 aligner in speaker stream path; shared _require_key for tts providers 2026-09-02 23:19:53 -07:00
Teknium 35f68c5b77 refactor(tools): pack tts re-export import lists, one-line section banners 2026-09-02 23:16:29 -07:00
Teknium 2c1e34724e refactor(tools): compact tts local/openai/lifecycle/plugins modules, restore module-attr re-exports 2026-09-02 23:12:04 -07:00
Teknium 5e9b580185 refactor(tools): unify tts provider HTTP/write helpers, collapse gemini/minimax phases 2026-09-02 22:13:27 -07:00
Teknium 6ebbb6c787 refactor(tts): share auxiliary-model tag rewrite between xAI and Gemini 2026-09-02 16:44:14 -07:00
Teknium 2ef1e8e4e0 refactor(tools/voice): extract tts delivery + wake_word engines; dedupe transcription/voice_mode helpers; compact tts providers 2026-09-02 14:45:15 -07:00