feat(detmir): ship ops, dlp, 1c and mcp updates

This commit is contained in:
igor04091968
2026-05-27 05:56:43 +03:00
parent 033ae810f3
commit 3042bd5042
85 changed files with 12028 additions and 460 deletions
+15
View File
@@ -113,6 +113,21 @@ $effectiveFile1CAutoUploadTaskName = if ($existingConfig -and $existingConfig.PS
$effectiveFile1CTargetHost = if ($existingConfig -and $existingConfig.PSObject.Properties.Name -contains 'analytics' -and $existingConfig.analytics.PSObject.Properties.Name -contains 'file1cAutomation' -and $existingConfig.analytics.file1cAutomation.PSObject.Properties.Name -contains 'targetHost') { [string]$existingConfig.analytics.file1cAutomation.targetHost } else { '' }
$effectiveFile1CTargetUser = if ($existingConfig -and $existingConfig.PSObject.Properties.Name -contains 'analytics' -and $existingConfig.analytics.PSObject.Properties.Name -contains 'file1cAutomation' -and $existingConfig.analytics.file1cAutomation.PSObject.Properties.Name -contains 'targetUser') { [string]$existingConfig.analytics.file1cAutomation.targetUser } else { 'igor' }
if ([string]::IsNullOrWhiteSpace($effectiveFile1CTargetHost)) {
$file1cLogPath = Join-Path $effectiveLogsRoot 'file1c-telemetry.log'
if (Test-Path -LiteralPath $file1cLogPath) {
$recoveredFile1CHost = ''
foreach ($line in Get-Content -LiteralPath $file1cLogPath -Encoding UTF8) {
if ([string]$line -match 'upload complete analyticsHost=([^\s]+)') {
$recoveredFile1CHost = [string]$Matches[1]
}
}
if (-not [string]::IsNullOrWhiteSpace($recoveredFile1CHost)) {
$effectiveFile1CTargetHost = $recoveredFile1CHost
}
}
}
$effectiveUsers = if ($Users -or $UserListPath) {
Normalize-ActivityWatchUsers -Users $Users -UserListPath $UserListPath -Domain $Domain
}