@sigops/sel-tools
v1.0.0
Published
SEL parser, linter, formatter, and LSP for SigOps Expression Language
Readme
@sigops/sel-tools
Parser, linter, formatter, and Language Server Protocol implementation for the SigOps Expression Language (SEL). Pure TypeScript with no external runtime dependencies — the same code runs in the browser, the CLI, the VS Code extension, and the SigOps runtime.
Install
pnpm add @sigops/sel-toolsQuickstart
import { parse, LintEngine, defaultRules, format } from '@sigops/sel-tools';
const src = 'monitor cpu { threshold: 90 }';
const ast = parse(src);
const engine = new LintEngine();
for (const r of defaultRules) engine.addRule(r);
const diagnostics = engine.lint(ast);
const pretty = format(src);Docs
Full guide: docs/guides/sel-tools.md. Runnable example: examples/hello-sel.
License
MIT
