detector

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: Apache-2.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectProjectPM

func DetectProjectPM(exec executor.Executor, projectDir string) string

DetectProjectPM detects which package manager a project uses based on lock files.

Types

type AICLIDetector

type AICLIDetector struct {
	// contains filtered or unexported fields
}

AICLIDetector detects AI CLI tools.

func NewAICLIDetector

func NewAICLIDetector(exec executor.Executor) *AICLIDetector

func (*AICLIDetector) Detect

func (d *AICLIDetector) Detect(ctx context.Context) []model.AITool

type AgentDetector

type AgentDetector struct {
	// contains filtered or unexported fields
}

AgentDetector detects general-purpose AI agents.

func NewAgentDetector

func NewAgentDetector(exec executor.Executor) *AgentDetector

func (*AgentDetector) Detect

func (d *AgentDetector) Detect(ctx context.Context, searchDirs []string) []model.AITool

type ExtensionDetector

type ExtensionDetector struct {
	// contains filtered or unexported fields
}

ExtensionDetector collects IDE extensions.

func NewExtensionDetector

func NewExtensionDetector(exec executor.Executor) *ExtensionDetector

func (*ExtensionDetector) Detect

func (d *ExtensionDetector) Detect(_ context.Context, searchDirs []string) []model.Extension

type FrameworkDetector

type FrameworkDetector struct {
	// contains filtered or unexported fields
}

FrameworkDetector detects AI frameworks and runtimes.

func NewFrameworkDetector

func NewFrameworkDetector(exec executor.Executor) *FrameworkDetector

func (*FrameworkDetector) Detect

func (d *FrameworkDetector) Detect(ctx context.Context) []model.AITool

type IDEDetector

type IDEDetector struct {
	// contains filtered or unexported fields
}

IDEDetector detects installed IDEs and AI desktop apps.

func NewIDEDetector

func NewIDEDetector(exec executor.Executor) *IDEDetector

func (*IDEDetector) Detect

func (d *IDEDetector) Detect(ctx context.Context) []model.IDE

type MCPDetector

type MCPDetector struct {
	// contains filtered or unexported fields
}

MCPDetector collects MCP configuration files.

func NewMCPDetector

func NewMCPDetector(exec executor.Executor) *MCPDetector

func (*MCPDetector) Detect

func (d *MCPDetector) Detect(_ context.Context, userIdentity string, enterprise bool) []model.MCPConfig

Detect finds MCP configs. If enterprise is true, includes base64-encoded content. Returns community-mode MCPConfig structs (enterprise mode uses MCPConfigEnterprise separately).

func (*MCPDetector) DetectEnterprise

func (d *MCPDetector) DetectEnterprise(_ context.Context) []model.MCPConfigEnterprise

DetectEnterprise returns enterprise-mode MCP configs with base64 content.

type NodePMDetector

type NodePMDetector struct {
	// contains filtered or unexported fields
}

NodePMDetector detects installed Node.js package managers.

func NewNodePMDetector

func NewNodePMDetector(exec executor.Executor) *NodePMDetector

func (*NodePMDetector) DetectManagers

func (d *NodePMDetector) DetectManagers(ctx context.Context) []model.PkgManager

type NodeProjectDetector

type NodeProjectDetector struct {
	// contains filtered or unexported fields
}

NodeProjectDetector scans for Node.js projects.

func NewNodeProjectDetector

func NewNodeProjectDetector(exec executor.Executor) *NodeProjectDetector

func (*NodeProjectDetector) CountProjects

func (d *NodeProjectDetector) CountProjects(_ context.Context, searchDirs []string) int

CountProjects counts the number of Node.js projects found under the given directories. It finds package.json files (excluding node_modules) up to a limit.

type NodeScanner

type NodeScanner struct {
	// contains filtered or unexported fields
}

NodeScanner performs enterprise-mode node scanning (raw output, base64 encoded).

func NewNodeScanner

func NewNodeScanner(exec executor.Executor, log *progress.Logger) *NodeScanner

func (*NodeScanner) ScanGlobalPackages

func (s *NodeScanner) ScanGlobalPackages(ctx context.Context) []model.NodeScanResult

ScanGlobalPackages runs npm/yarn/pnpm list -g and returns raw base64-encoded results.

func (*NodeScanner) ScanProjects

func (s *NodeScanner) ScanProjects(ctx context.Context, searchDirs []string) []model.NodeScanResult

ScanProjects finds package.json files, sorts by most recently modified, then scans. Respects the size limit (default 500MB, override via STEPSEC_MAX_NODE_SCAN_BYTES).

Jump to

Keyboard shortcuts

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