Versions in this module Expand all Collapse all v0 v0.0.13 Sep 18, 2026 Changes in this version + const DynamicImportCapability + func CleanAbsPath(path string) string + func CompletionDetail(item CompletionItem) string + func DefaultStdinPath() string + func DiagnosticsJSON(diags []Diagnostic) ([]byte, error) + func DocsMarkdown(path, src string) string + func HoverMarkdown(idx *WorkspaceIndex, path, src string, line, col int) string + func KeywordMarkdown(name string) string + func ModuleDirForPath(path string) string + func PathToURI(path string) string + func PrefixAt(src string, line, col int) string + func RuneColumn(s string, byteOffset int) int + func RuntimeDocMarkdown(name string) string + func StdModuleMarkdown(name string) string + func SymbolSummary(sym Symbol) string + func URIToPath(uri string) string + func WordAt(src string, line, col int) string + type CompletionItem struct + Detail string + Kind string + Label string + func CompletionItems(path, src, prefix string) []CompletionItem + func WorkspaceCompletionItems(idx *WorkspaceIndex, path, src, prefix string) []CompletionItem + type Diagnostic struct + Code string + Column int + Hint string + Line int + Message string + Path string + Severity DiagnosticSeverity + Snippet string + func StaticDiagnostics(path, src string, program *ast.Program) []Diagnostic + type DiagnosticSeverity string + const SeverityError + const SeverityInfo + const SeverityWarning + type EffectFinding struct + Capability string + Usages []EffectUsage + type EffectUsage struct + Builtin string + Column int + Line int + type EffectsReport struct + Capabilities []EffectFinding + Diagnostics []Diagnostic + OK bool + Path string + func AnalyzeEffects(path, src string) EffectsReport + type EvaluationOptions struct + AllowedCapabilities []string + AllowedExecCommands []string + AllowedFileReadPaths []string + AllowedFileWritePaths []string + AllowedNativeModules []string + DeniedNativeModules []string + MaxDepth int + MaxExecOutputBytes int64 + MaxOutputBytes int64 + MaxSteps int64 + Profile string + TimeoutMS int64 + type EvaluationResult struct + Artifacts []map[string]any + Diagnostics []string + Duration int64 + Error string + Events []map[string]any + Metrics map[string]any + OK bool + Output string + Path string + Result string + func EvaluateSPL(path, src string, opts EvaluationOptions) EvaluationResult + type ExecuteSPLFunc func(path, src string, opts EvaluationOptions, output io.Writer) (result string, err error) + var ExecuteSPLFn ExecuteSPLFunc + type HoverInfo struct + Column int + Detail string + Kind string + Line int + Name string + func HoverAt(path, src string, line, col int) HoverInfo + type IndexedDocument struct + Path string + Source string + Symbols []Symbol + type KeywordDoc struct + Category string + Example string + Interpretation string + Name string + Syntax string + type Location struct + Column int + Line int + Name string + Path string + type PartialParseResult struct + Complete bool + Diagnostics []Diagnostic + Path string + Program *ast.Program + func ParsePartial(path, src string) PartialParseResult + type ProjectConfig struct + REPL struct{ ... } + Runtime struct{ ... } + Security struct{ ... } + Test struct{ ... } + Tooling struct{ ... } + func DefaultProjectConfig() ProjectConfig + func LoadProjectConfig(start string) (ProjectConfig, string, error) + type Reference struct + Column int + Line int + Name string + Path string + type Report struct + Changed bool + Diagnostics []Diagnostic + Formatted string + OK bool + Path string + Symbols []Symbol + func Analyze(path, src string, wantFormat bool) Report + func CheckSource(path, src string) Report + func FormatSource(path, src string) Report + type RuntimeDoc struct + Example string + Interpretation string + Kind string + Name string + Returns string + Signature string + type StdModuleDoc struct + Category string + Example string + Exports []string + Name string + Purpose string + Recommended bool + type Symbol struct + Column int + Detail string + Kind string + Line int + Name string + Path string + func SymbolsForSource(path, src string) []Symbol + func VisibleSymbolsForSource(path, src string) []Symbol + type WorkspaceIndex struct + Documents map[string]IndexedDocument + Root string + func NewWorkspaceIndex(root string) *WorkspaceIndex + func (idx *WorkspaceIndex) AllSymbols() []Symbol + func (idx *WorkspaceIndex) Definition(path, src string, line, col int) (Location, bool) + func (idx *WorkspaceIndex) References(path, src string, line, col int) []Reference + func (idx *WorkspaceIndex) Refresh() + func (idx *WorkspaceIndex) Remove(path string) + func (idx *WorkspaceIndex) Update(path, src string) v0.0.12 Jun 16, 2026 v0.0.11 Jun 7, 2026 v0.0.10 May 25, 2026