@@ -2,18 +2,18 @@ package model
22
33// ScanResult is the community-mode JSON output structure.
44type ScanResult struct {
5- AgentVersion string `json:"agent_version"`
6- AgentURL string `json:"agent_url"`
7- ScanTimestamp int64 `json:"scan_timestamp"`
8- ScanTimestampISO string `json:"scan_timestamp_iso"`
9- Device Device `json:"device"`
10- AIAgentsAndTools []AITool `json:"ai_agents_and_tools"`
11- IDEInstallations []IDE `json:"ide_installations"`
12- IDEExtensions []Extension `json:"ide_extensions"`
13- MCPConfigs []MCPConfig `json:"mcp_configs"`
14- NodePkgManagers []PkgManager `json:"node_package_managers"`
15- NodePackages []any `json:"node_packages"`
16- Summary Summary `json:"summary"`
5+ AgentVersion string `json:"agent_version"`
6+ AgentURL string `json:"agent_url"`
7+ ScanTimestamp int64 `json:"scan_timestamp"`
8+ ScanTimestampISO string `json:"scan_timestamp_iso"`
9+ Device Device `json:"device"`
10+ AIAgentsAndTools []AITool `json:"ai_agents_and_tools"`
11+ IDEInstallations []IDE `json:"ide_installations"`
12+ IDEExtensions []Extension `json:"ide_extensions"`
13+ MCPConfigs []MCPConfig `json:"mcp_configs"`
14+ NodePkgManagers []PkgManager `json:"node_package_managers"`
15+ NodePackages []any `json:"node_packages"`
16+ Summary Summary `json:"summary"`
1717}
1818
1919type Device struct {
@@ -63,9 +63,9 @@ type MCPConfig struct {
6363
6464// MCPConfigEnterprise includes base64-encoded content for enterprise mode.
6565type MCPConfigEnterprise struct {
66- ConfigSource string `json:"config_source"`
67- ConfigPath string `json:"config_path"`
68- Vendor string `json:"vendor"`
66+ ConfigSource string `json:"config_source"`
67+ ConfigPath string `json:"config_path"`
68+ Vendor string `json:"vendor"`
6969 ConfigContentBase64 string `json:"config_content_base64,omitempty"`
7070}
7171
@@ -86,13 +86,13 @@ type Summary struct {
8686// NodeScanResult holds raw scan output for enterprise telemetry.
8787// Used for both global packages and per-project scans.
8888type NodeScanResult struct {
89- ProjectPath string `json:"project_path"`
90- PackageManager string `json:"package_manager"`
91- PMVersion string `json:"package_manager_version"`
92- WorkingDirectory string `json:"working_directory"`
93- RawStdoutBase64 string `json:"raw_stdout_base64"`
94- RawStderrBase64 string `json:"raw_stderr_base64"`
95- Error string `json:"error"`
96- ExitCode int `json:"exit_code"`
97- ScanDurationMs int64 `json:"scan_duration_ms"`
89+ ProjectPath string `json:"project_path"`
90+ PackageManager string `json:"package_manager"`
91+ PMVersion string `json:"package_manager_version"`
92+ WorkingDirectory string `json:"working_directory"`
93+ RawStdoutBase64 string `json:"raw_stdout_base64"`
94+ RawStderrBase64 string `json:"raw_stderr_base64"`
95+ Error string `json:"error"`
96+ ExitCode int `json:"exit_code"`
97+ ScanDurationMs int64 `json:"scan_duration_ms"`
9898}
0 commit comments