code

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package code is the Stage-1 namespace for code-aware features (context extraction, lenses, actions, explainer). See ../REFACTOR_PLAN.md.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyFix

func ApplyFix(action Action, content string) (string, error)

func FormatContext

func FormatContext(ctx *Context) string

func FormatExplanation

func FormatExplanation(exp *Explanation) string

func FormatSuggestions

func FormatSuggestions(actions []Action, max int) string

Types

type Action

type Action = engine.CodeAction

type ActionDetector

type ActionDetector = engine.ActionDetector

func NewActionDetector

func NewActionDetector() *ActionDetector

type ActionRule

type ActionRule = engine.ActionRule

type Context

type Context = engine.CodeContext

type ContextExtractor

type ContextExtractor = engine.ContextExtractor

func NewContextExtractor

func NewContextExtractor(projectDir string, maxTokens int) *ContextExtractor

type Explainer

type Explainer = engine.CodeExplainer

func NewExplainer

func NewExplainer() *Explainer

type Explanation

type Explanation = engine.CodeExplanation

type ExplanationSection

type ExplanationSection = engine.ExplanationSection

type Lens

type Lens = engine.CodeLens

type LensGenerator

type LensGenerator = engine.LensGenerator

type LensProvider

type LensProvider = engine.CodeLensProvider

func NewLensProvider

func NewLensProvider() *LensProvider

type Snippet

type Snippet = engine.CodeSnippet

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL