feat: add iSphere live probe recorder

This commit is contained in:
zhaoyilun
2026-07-10 10:59:48 +08:00
parent 349fbe4a44
commit f7914a63dc
13 changed files with 2209 additions and 16 deletions

View File

@@ -65,6 +65,21 @@ if (-not $scan.ok -or $null -eq $scan.data.windows) {
throw "scan_windows failed: $($scan | ConvertTo-Json -Depth 8 -Compress)"
}
$runtimeProbe = Invoke-HelperJson @{
protocol = "isphere.helper.v1"
request_id = "verify-runtime-probe"
op = "probe_client_runtime"
timeout_ms = 5000
args = @{
process_names = @("IMPlatformClient", "IMPP.ISphere", "iSphere", "importal")
include_modules = $false
max_modules = 0
}
}
if (-not $runtimeProbe.ok -or $runtimeProbe.data.probe_mode -ne "read_only_process_module_inventory" -or $null -eq $runtimeProbe.data.targets) {
throw "probe_client_runtime failed: $($runtimeProbe | ConvertTo-Json -Depth 8 -Compress)"
}
$dumpMissing = Invoke-HelperJson @{
protocol = "isphere.helper.v1"
request_id = "verify-dump-missing"
@@ -118,5 +133,6 @@ finally {
helper = (Resolve-Path -LiteralPath $helperPath).Path
version = $version.data.helper_version
scan_window_count = $scan.data.windows.Count
runtime_probe_target_count = $runtimeProbe.data.target_count
uia_available = $selfCheck.data.uia_available
} | ConvertTo-Json -Depth 4 -Compress
} | ConvertTo-Json -Depth 4 -Compress