Files
alt-glitch 6d80aa80eb refactor(lsp): simplify __init__.py per /simplify review
- Remove dead _post_tool_call (body was only comments)
- Remove _on_session_start (redundant — _ensure_service lazy-inits)
- Remove _atexit_cleanup (duplicate of _on_session_end)
- Switch _baselines from dict to set (presence sentinel only)
- Remove redundant enabled_for recheck in transform_tool_result
- Remove V4A guard (path-empty check already covers it)
- Use modern type syntax (X | None, dict[], set[])
- Reduce from 322 → 217 lines, same behavior

77/77 tests pass.
2026-05-12 15:01:44 +00:00

12 lines
338 B
YAML

name: lsp
version: "1.0.0"
description: >-
Semantic diagnostics from real language servers (pyright, gopls,
rust-analyzer, typescript-language-server, etc.) surfaced on
write_file/patch. Opt-in: add 'lsp' to plugins.enabled in config.yaml.
author: NousResearch
hooks:
- pre_tool_call
- transform_tool_result
- on_session_end