OSS restructuring for open-core model: - Rename package from agentserver/ to xml_pipeline/ - Update all imports (44 Python files, 31 docs/configs) - Update pyproject.toml for OSS distribution (v0.3.0) - Move prompt_toolkit from core to optional [console] extra - Remove auth/server/lsp from core optional deps (-> Nextra) New console example in examples/console/: - Self-contained demo with handlers and config - Uses prompt_toolkit (optional, falls back to input()) - No password auth, no TUI, no LSP — just the basics - Shows how to use xml-pipeline as a library Import changes: - from agentserver.* -> from xml_pipeline.* - CLI entry points updated: xml_pipeline.cli:main Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
63 lines
1.4 KiB
Python
63 lines
1.4 KiB
Python
"""
|
|
LSP (Language Server Protocol) integration for the editor.
|
|
|
|
Provides:
|
|
- YAMLLSPClient: Wrapper for yaml-language-server communication
|
|
- ASLSClient: Wrapper for AssemblyScript language server communication
|
|
- LSPServerManager: Server lifecycle management
|
|
- LSPBridge: Integration with prompt_toolkit editor
|
|
|
|
Supported Language Servers:
|
|
- yaml-language-server: npm install -g yaml-language-server
|
|
- asls (AssemblyScript): npm install -g assemblyscript-lsp
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
from .client import (
|
|
YAMLLSPClient,
|
|
LSPCompletion,
|
|
LSPDiagnostic,
|
|
LSPHover,
|
|
is_lsp_available,
|
|
)
|
|
from .asls_client import (
|
|
ASLSClient,
|
|
ASLSConfig,
|
|
is_asls_available,
|
|
is_assemblyscript_file,
|
|
ASSEMBLYSCRIPT_EXTENSIONS,
|
|
)
|
|
from .manager import (
|
|
LSPServerManager,
|
|
LSPServerType,
|
|
get_lsp_manager,
|
|
ensure_lsp_stopped,
|
|
)
|
|
from .bridge import (
|
|
LSPCompleter,
|
|
DiagnosticsProcessor,
|
|
)
|
|
|
|
__all__ = [
|
|
# YAML Client
|
|
"YAMLLSPClient",
|
|
"LSPCompletion",
|
|
"LSPDiagnostic",
|
|
"LSPHover",
|
|
"is_lsp_available",
|
|
# AssemblyScript Client
|
|
"ASLSClient",
|
|
"ASLSConfig",
|
|
"is_asls_available",
|
|
"is_assemblyscript_file",
|
|
"ASSEMBLYSCRIPT_EXTENSIONS",
|
|
# Manager
|
|
"LSPServerManager",
|
|
"LSPServerType",
|
|
"get_lsp_manager",
|
|
"ensure_lsp_stopped",
|
|
# Bridge
|
|
"LSPCompleter",
|
|
"DiagnosticsProcessor",
|
|
]
|