Commit Graph

28275 Commits

Author SHA1 Message Date
Teknium a5bee5eaab refactor(tools): MCP registration cache stand-ins -> SimpleNamespace factory; string-fragment joins 2026-09-03 01:25:48 -07:00
Teknium 9458f4c27a refactor(tools): MCP group L docstring rewrap 2026-09-03 01:20:43 -07:00
Teknium 760ac0b609 refactor(tools): MCP handlers/errors/transport/config/health/registration/oauth-manager compaction — shared _dispatch, folded utility factory, auth-type cache tuple 2026-09-03 01:18:04 -07:00
Teknium a4700fe5e9 Merge branch 'simp/r3-33-A' into simp/r3-33 2026-09-03 00:49:06 -07:00
Teknium 6a6ee5bb67 refactor(tools): process_registry slice -25% LOC — shared exit/status/stdin/reader helpers, early-return watch limiter, suppress(), compact docs; schema byte-identical 2026-09-03 00:44:58 -07:00
Teknium ac872a405d Merge branch 'simp/r3-33-F' into simp/r3-33 2026-09-03 00:25:07 -07:00
Teknium fee5b9efb8 Merge branch 'simp/r3-33-E' into simp/r3-33 2026-09-03 00:17:19 -07:00
Teknium 036907e328 refactor(tools): fold single-use locals into call sites in MCP stdio/loop/elicitation paths 2026-09-03 00:08:40 -07:00
Teknium f7a4ccc081 refactor(tools): flatten identity-header/loop-stop control flow, inline SSE client factory 2026-09-03 00:01:18 -07:00
Teknium 650cf52daa Merge branch 'simp/r3-33-I' into simp/r3-33 2026-09-03 00:00:26 -07:00
Teknium 8ca4473001 Merge branch 'simp/r3-33-H' into simp/r3-33 2026-09-03 00:00:25 -07:00
Teknium c6c231c65e Merge branch 'simp/r3-33-G' into simp/r3-33 2026-09-03 00:00:24 -07:00
Teknium f5e6b2ca62 Merge branch 'simp/r3-33-D' into simp/r3-33 2026-09-03 00:00:23 -07:00
Teknium ca4ef8042a Merge branch 'simp/r3-33-C' into simp/r3-33 2026-09-03 00:00:22 -07:00
Teknium 9a10c5e853 Merge branch 'simp/r3-33-B' into simp/r3-33 2026-09-03 00:00:21 -07:00
Teknium c74c187f42 refactor(tools): MCP registration/common/handlers comprehension and predicate collapses 2026-09-02 23:56:55 -07:00
Teknium 1545afb892 refactor(tools): simplify registry, schema_sanitizer, self_repo_guard, plugin_guard, project_tools, path_security (-25% LOC)
Zero behavior change; tool schemas byte-identical; golden corpus (376 guard
commands, 93 heredoc forms, sanitizer/unrename cases) identical old vs new.

registry.py (1263 -> 924): _memo_check per-pass check_fn memo (2 sites),
_grouped/_toolset_entries toolset grouping (6 sites), _unique_env replaces
_extend_unique, _attr accessor for get_schema/get_toolset_for_tool/get_emoji/
get_max_result_size, fold cache-prune loops, flatten _callable_module walk,
merge guard try-blocks, docstring/comment compaction (all WHY kept).
schema_sanitizer.py (511 -> 392): _rewrite bottom-up tree map shared by
_strip_ref_siblings/strip_nullable_unions/collapse_const_unions, _dict_nodes
generator replaces nested _walk closure, collapsed _const_branch_type guards.
self_repo_guard.py (678 -> 517): _scope_keys state machine as one if/elif
ladder, heredoc opener parsed by one regex (_HEREDOC_OPENER_RE), _masked_line
inlined, _operator_before via rstrip, folded tail expressions.
plugin_guard.py (235 -> 163): positional Finding ctor, packed tables, docs.
project_tools.py (181 -> 156): _activated shared by create/switch, _ACTIONS
dict dispatch replaces the if-chain in _handle_project.
path_security.py (24 -> 18): unused logger/logging import dropped.
2026-09-02 23:56:07 -07:00
Teknium e0bdc2324e refactor(tools): inline trivial sampling accessors, merge discovery branches 2026-09-02 23:54:08 -07:00
Teknium d23f885c59 refactor(tools): drop section-banner comments in MCP health mixin 2026-09-02 23:51:58 -07:00
Teknium a8f0249a31 refactor(tools): inline pgid capture, merge tool-loop guard branches, drop single-use locals 2026-09-02 23:47:41 -07:00
Teknium d846133563 refactor(tools): mcp_tool facade constant grouping and section banners 2026-09-02 23:45:46 -07:00
Teknium d4b4e8b0de refactor(tools): simplify memory_tool(+store), session_search_tool, microsoft_graph_{client,auth} (group I, -17% LOC)
- session_search_tool_common/_discover folded back into session_search_tool (single module, no re-export shim)
- MemoryStore: one locked _mutate pipeline for add/replace/remove/batch; _reload_target/_read_entries_checked/_commit/_batch_error/_previews inlined
- memory_tool: _STORE_ACTIONS table now carries store call + gate text; _target_label/_missing_old_text_error inlined
- session_search: _discovery_entry (title + FTS hits), _same_lineage, _loud (error-level DB failure -> tool_error), _session_end_reason/_normalize_title_query inlined
- graph client: iterate_pages folded into collect_paginated (its only caller), _decode_json_or, try/else retry loop
- docstrings compacted by hand keeping every WHY/invariant; tool schemas byte-identical; SQL untouched
2026-09-02 23:43:14 -07:00
Teknium 28ded1edb3 refactor(tools): hug telegram/signal log calls 2026-09-02 23:42:08 -07:00
Teknium da18bcd338 refactor(tools): MCP run/discovery/registration log-call folding, _publish_error helper 2026-09-02 23:40:12 -07:00
Teknium e1d76e552b refactor(tools): inline single-use stdio config resolver 2026-09-02 23:39:40 -07:00
Teknium 19a479bc06 refactor(tools): tidy signal retry logging and platform config guard 2026-09-02 23:38:33 -07:00
Teknium 49c38ef10f refactor(tools): MCP docstring/comment compaction, status predicate, renderer tidy 2026-09-02 23:36:18 -07:00
Teknium 672cd01c7c refactor(tools): fold legacy HTTP transport into streamable path, tighten MCP classifier/sampling bodies 2026-09-02 23:35:14 -07:00
Teknium 5e5d1a3a33 refactor(tools): tighten MCP recycle deadlines, watchdog argv/kill loop, stdio liveness probe 2026-09-02 23:34:29 -07:00
Teknium dc79b0a11a refactor(tools): compact send_message routing call sites 2026-09-02 23:34:21 -07:00
Teknium 0a9bc0f3e6 refactor(tools): share _NO_DELIVERABLE, tighten telegram format helper 2026-09-02 23:31:11 -07:00
Teknium 4efaf9ecd4 refactor(tools): fold single-use MCP helpers, collapse defensive layers, compact docstrings
_stdio_children_dead_impl/_refresh_tools_task folded into their methods,
_recover_401/_is_invalid_client_at_token_endpoint defensive getattr chains
collapsed, lifecycle pid ledgers and drain loop tightened, WHY-preserving
docstring compaction across the group. Schemas byte-identical.
2026-09-02 23:28:07 -07:00
Teknium 4228d0f20a refactor(tools): compact send_message literals and telegram media warnings 2026-09-02 23:28:01 -07:00
Teknium 51d44c5e32 refactor(tools): fold small conditionals in send_message helpers 2026-09-02 23:25:00 -07:00
Teknium c9d52c05b2 refactor(tools): unify adapter media-method selection across matrix and live-adapter sends 2026-09-02 23:19:33 -07:00
Teknium 6260446b15 refactor(tools): tighten send_message target/home/mirror helpers 2026-09-02 23:15:03 -07:00
Teknium fbd054e0ff refactor(tools): skill_manager_tool — walrus gates, compact profile lookup and file-path validation 2026-09-02 23:13:20 -07:00
Teknium 9cfb22618c refactor(tools): compact target parser/resolver layout 2026-09-02 23:12:15 -07:00
Teknium ce992963a2 refactor(tools): skill ledger/batch — inline one-use helpers, drop section banners 2026-09-02 23:10:14 -07:00
Teknium 6b226dbce9 refactor(tools): compact signal RPC builder and blank squeeze 2026-09-02 23:09:31 -07:00
Teknium 7f7fd4a533 refactor(tools): MCP discovery/run/handlers defensive collapse, shared helpers, blank squeeze 2026-09-02 23:07:18 -07:00
Teknium a861976519 refactor(tools): skill guards/tool — is_relative_to collapses, string reflow 2026-09-02 23:03:24 -07:00
Teknium 3106c534c2 refactor(tools): extract telegram format + gateway-loop dispatch helpers, compact media descriptors 2026-09-02 23:03:04 -07:00
Teknium 50357b3c7b refactor(tools): group H pass 4 — shared _joined tail for stdlib extractors, v3 mime fold, blank squeeze 2026-09-02 22:59:19 -07:00
Teknium 6a7d04e89d refactor(tools): collapse defensive layers and compact prose in MCP transport/loop/sampling/errors 2026-09-02 22:53:26 -07:00
Teknium 37232a4853 refactor(tools): group H pass 3 — dispatch table for V4A apply, docstring/comment compaction keeping every WHY 2026-09-02 22:52:52 -07:00
Teknium ee81b1abdd refactor(tools): compact MCP oauth/config/health/lifecycle/agent/content modules
Dead-code removal (_make_hermes_provider_class factory -> direct class def,
_same_endpoint/_context_var_value inlined), image/audio cache unified into
_cache_mcp_media_block, match->isinstance chain, closer hugging, docstring
compaction keeping every invariant. Tool schemas byte-identical.
2026-09-02 22:45:12 -07:00
Teknium b187d4e547 refactor(tools): skill linter checks as generators, skill_manage arg-shape table, suppress() collapses 2026-09-02 22:43:10 -07:00
Teknium 0a07fc0a22 refactor(tools): group H pass 2 — inline xlsx/pdf helpers, layout compaction, docstring tightening 2026-09-02 22:42:07 -07:00
Teknium 47be9a3629 refactor(tools): MCP SDK type-family table, drop identity capability map, layout compaction 2026-09-02 22:39:46 -07:00