@aihu/language-server
v0.2.16
Published
Cross-editor Language Server (aihu-language-server) for .aihu Single File Components — diagnostics, hover, completion, and quick-fix code actions.
Readme
@aihu/language-server
Aihu — agentic discovery and interaction, for human purpose.
Cross-editor Language Server (aihu-language-server) for .aihu Single File Components — diagnostics, hover, completion, and quick-fix code actions.
Held-private workspace package. Not yet published to npm.
Status: Held private — not yet published to npm. See v1.1 roadmap for ratification gating (e.g. RFC #56 live-binding for
@aihu/pluginenforcement).
Cross-editor Language Server Protocol
implementation for .aihu Single File Components. Ships the runnable
aihu-language-server binary that any LSP-aware editor (VS Code, Neovim, Helix,
Zed, …) can launch over stdio.
Features
- Diagnostics — shells out to the
aihu-compileRust binary with--machine-errors(debounced 300 ms) and maps the structured errors onto LSP diagnostics. - Hover — Markdown documentation for the 13 aihu macro keywords, aware of
@statevs@templateblock context. - Completion — 9
$-triggered macro-kind snippets (context-filtered) and 5@-triggered top-level block names. - Code actions — QuickFix for the
C440–C444old-spec macro diagnostics, backed by the macro-simplification codemod.
Layout
The package is laid out with a clean editor-agnostic seam (src/core/) so a
future @volar/language-core virtual-code layer can consume the same
diagnostics/hover/completion/code-action logic without touching the connection
wiring (arch-4 §2.7). Volar is not adopted yet — that is a separate
Phase-2 decision.
src/core/*— pure logic + the compiler bridge (no LSP connection objects).src/server.ts— wires the core onto avscode-languageserverconnection.src/bin.ts— the runnableaihu-language-serverstdio entry.
Install
npm install @aihu/language-server
# or
bun add @aihu/language-serverAuto-generated against @aihu/[email protected].
Package facts
| | |
|---|---|
| Version | 0.2.16 |
| Tier | E — Held private (unmapped tier) |
| Published files | 3 entries |
| License | MIT |
Auto-generated against @aihu/[email protected].
Exports
| Subpath | ESM | CJS |
|---|---|---|
| . | ./dist/server.js | — |
| ./core | ./dist/core/index.js | — |
Auto-generated against @aihu/[email protected].
Dependencies
Dependencies:
@aihu/compiler—workspace:*@volar/language-core—2.4.28@volar/language-server—2.4.28@volar/source-map—2.4.28vscode-uri—3.1.0
Auto-generated against @aihu/[email protected].
See also
Auto-generated against @aihu/[email protected].
License
MIT — see LICENSE.
Auto-generated against @aihu/[email protected].
