Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AITool ¶
type AITool struct {
Name string `json:"name"`
Vendor string `json:"vendor"`
Type string `json:"type"`
Version string `json:"version"`
BinaryPath string `json:"binary_path,omitempty"`
InstallPath string `json:"install_path,omitempty"`
ConfigDir string `json:"config_dir,omitempty"`
IsRunning *bool `json:"is_running,omitempty"`
}
AITool represents a detected AI agent, CLI tool, framework, or general agent. Fields are conditionally present based on type (cli_tool, general_agent, framework).
type BrewPackage ¶ added in v1.10.0
BrewPackage represents a single installed Homebrew formula or cask.
type BrewScanResult ¶ added in v1.10.0
type BrewScanResult struct {
ScanType string `json:"scan_type"` // "formulae" or "casks"
RawStdoutBase64 string `json:"raw_stdout_base64"`
RawStderrBase64 string `json:"raw_stderr_base64"`
Error string `json:"error"`
ExitCode int `json:"exit_code"`
ScanDurationMs int64 `json:"scan_duration_ms"`
LineCount int `json:"line_count"`
}
BrewScanResult holds raw Homebrew scan output for enterprise telemetry.
type MCPConfig ¶
type MCPConfig struct {
ConfigSource string `json:"config_source"`
ConfigPath string `json:"config_path"`
Vendor string `json:"vendor"`
}
MCPConfig represents a detected MCP server configuration (community mode).
type MCPConfigEnterprise ¶
type MCPConfigEnterprise struct {
ConfigSource string `json:"config_source"`
ConfigPath string `json:"config_path"`
Vendor string `json:"vendor"`
ConfigContentBase64 string `json:"config_content_base64,omitempty"`
}
MCPConfigEnterprise includes base64-encoded content for enterprise mode.
type NodeScanResult ¶
type NodeScanResult struct {
ProjectPath string `json:"project_path"`
PackageManager string `json:"package_manager"`
PMVersion string `json:"package_manager_version"`
WorkingDirectory string `json:"working_directory"`
RawStdoutBase64 string `json:"raw_stdout_base64"`
RawStderrBase64 string `json:"raw_stderr_base64"`
Error string `json:"error"`
ExitCode int `json:"exit_code"`
ScanDurationMs int64 `json:"scan_duration_ms"`
}
NodeScanResult holds raw scan output for enterprise telemetry. Used for both global packages and per-project scans.
type PackageDetail ¶ added in v1.10.0
PackageDetail represents a single package name and version.
type PkgManager ¶
type ProjectInfo ¶ added in v1.10.0
type ProjectInfo struct {
Path string `json:"path"`
PackageManager string `json:"package_manager,omitempty"`
Packages []PackageDetail `json:"packages,omitempty"`
}
ProjectInfo represents a detected project directory with its packages.
type PythonPackage ¶ added in v1.10.0
PythonPackage represents a single installed Python package.
type PythonScanResult ¶ added in v1.10.0
type PythonScanResult struct {
PackageManager string `json:"package_manager"`
PMVersion string `json:"package_manager_version"`
BinaryPath string `json:"binary_path"` // Resolved path to the package manager binary
RawStdoutBase64 string `json:"raw_stdout_base64"`
RawStderrBase64 string `json:"raw_stderr_base64"`
Error string `json:"error"`
ExitCode int `json:"exit_code"`
ScanDurationMs int64 `json:"scan_duration_ms"`
}
PythonScanResult holds raw Python scan output for enterprise telemetry.
type ScanResult ¶
type ScanResult struct {
AgentVersion string `json:"agent_version"`
AgentURL string `json:"agent_url"`
ScanTimestamp int64 `json:"scan_timestamp"`
ScanTimestampISO string `json:"scan_timestamp_iso"`
Device Device `json:"device"`
AIAgentsAndTools []AITool `json:"ai_agents_and_tools"`
IDEInstallations []IDE `json:"ide_installations"`
IDEExtensions []Extension `json:"ide_extensions"`
MCPConfigs []MCPConfig `json:"mcp_configs"`
NodePkgManagers []PkgManager `json:"node_package_managers"`
NodePackages []any `json:"node_packages"`
NodeProjects []ProjectInfo `json:"node_projects"`
BrewPkgManager *PkgManager `json:"brew_package_manager,omitempty"`
BrewFormulae []BrewPackage `json:"brew_formulae"`
BrewCasks []BrewPackage `json:"brew_casks"`
PythonPkgManagers []PkgManager `json:"python_package_managers"`
PythonPackages []PythonPackage `json:"python_packages"`
PythonProjects []ProjectInfo `json:"python_projects"`
Summary Summary `json:"summary"`
}
ScanResult is the community-mode JSON output structure.
type Summary ¶
type Summary struct {
AIAgentsAndToolsCount int `json:"ai_agents_and_tools_count"`
IDEInstallationsCount int `json:"ide_installations_count"`
IDEExtensionsCount int `json:"ide_extensions_count"`
MCPConfigsCount int `json:"mcp_configs_count"`
NodeProjectsCount int `json:"node_projects_count"`
BrewFormulaeCount int `json:"brew_formulae_count"`
BrewCasksCount int `json:"brew_casks_count"`
PythonProjectsCount int `json:"python_projects_count"`
}