Skip to content

feat(wasm,lsp): client-side WebAssembly XTCE/PUS-C/PCAP decoder and XTCE 1.2 Language Server (xtce lsp) - #10

Merged
mysma-9403 merged 2 commits into
mainfrom
feat/xtce-wasm-and-lsp
Nov 20, 2026
Merged

mysma-9403 merged 2 commits into
mainfrom
feat/xtce-wasm-and-lsp

fix(lsp,wasm): use O(1) line index and UTF-16 char resolution per Alt…

d1b68ca
Select commit
Loading
Failed to load commit list.
Altanix-Bot / Altanix Code Review & Security Gate succeeded Nov 20, 2026 in 18s

Audit Passed - Code Approved

Ten Pull Request wprowadza dwie główne funkcjonalności: serwer Language Server Protocol (LSP) dla plików XTCE 1.2 w module CLI oraz nową bibliotekę WebAssembly xtce-wasm do dekodowania danych telemetrycznych CCSDS, PUS-C i plików PCAP bezpośrednio w przeglądarce.

Co wprowadza (Key Additions):
• Dodano nowy moduł LSP w crates/xtce-cli/src/lsp.rs implementujący protokół JSON-RPC 2.0 dla plików XTCE 1.2.
• Zaimplementowano obsługę żądań LSP: initialize, textDocument/didOpen, textDocument/didChange, textDocument/didSave, textDocument/publishDiagnostics, textDocument/hover, textDocument/definition oraz textDocument/documentSymbol.
• Dodano nową bibliotekę xtce-wasm (crates/xtce-wasm) kompilowaną do targetu wasm32-unknown-unknown z czystym API C i wsparciem dla operacji w pamięci liniowej.
• Wystawiono funkcje WebAssembly C-ABI: wasm_alloc, wasm_free, wasm_result_ptr, wasm_result_len, wasm_inspect_xtce, wasm_decode_xtce_and_packets oraz wasm_generate_pus_stream.

Co zmienia (Modifications):
• Zaktualizowano plik główny CLI crates/xtce-cli/src/main.rs poprzez dodanie nowej komendy podrzędnej Lsp uruchamiającej serwer przez stdio.
• Zaktualizowano dokumentację projektową w README.md oraz crates/xtce-cli/README.md, uwzględniając nowe polecenia oraz bibliotekę xtce-wasm.


🛡️ Zweryfikowano przez Altanix AST Engine v2: Zero-Copy, Concurrency & Migration Guard