workspace

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReindexProject

func ReindexProject(p *Project)

Types

type EntityStats added in v0.2.0

type EntityStats struct {
	TotalEntities int
	TotalMentions int
}

EntityStats aggregates entity graph counts across all workspace projects.

type Project

type Project struct {
	Name                string
	Path                string
	Store               *store.Store
	NoGitignore         bool
	NoHistory           bool
	SimilarityThreshold float64
}

type Workspace

type Workspace struct {
	Root                string
	Projects            []*Project
	NoGitignore         bool
	NoHistory           bool
	SimilarityThreshold float64
}

func Open

func Open(root string) (*Workspace, error)

func (*Workspace) Close

func (w *Workspace) Close() error

func (*Workspace) FindNodeByName

func (w *Workspace) FindNodeByName(name string) (*store.Node, string, error)

func (*Workspace) FindNodeByPath

func (w *Workspace) FindNodeByPath(path string) (*store.Node, string, error)

func (*Workspace) FindProject

func (w *Workspace) FindProject(name string) *Project

func (*Workspace) GetAllFiles

func (w *Workspace) GetAllFiles(pathFilter, projectFilter string) (map[string][]store.FileInfo, error)

func (*Workspace) GetAllStats

func (w *Workspace) GetAllStats() (map[string]store.Stats, error)

func (*Workspace) GetAllTopLevelDirs added in v0.3.0

func (w *Workspace) GetAllTopLevelDirs(projectFilter string) ([]string, error)

GetAllTopLevelDirs fans out GetTopLevelDirs across all projects, deduplicates the segments, and returns them sorted. Per-project errors are silently ignored, mirroring GetAllFiles' error-handling policy.

func (*Workspace) GetEntityStats added in v0.2.0

func (w *Workspace) GetEntityStats() (EntityStats, error)

GetEntityStats fan-outs entity stats across all projects. Projects that return errors are skipped (consistent with GetAllStats pattern).

func (*Workspace) IndexAll

func (w *Workspace) IndexAll() error

func (*Workspace) Search

func (w *Workspace) Search(query, kind string, limit int) ([]store.SearchResult, error)

func (*Workspace) SearchWithOptions added in v0.2.0

func (w *Workspace) SearchWithOptions(opts store.SearchOptions) ([]store.SearchResult, error)

Jump to

Keyboard shortcuts

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