sync: Multi-project updates - SolverBot, GuruRMM, Dataforth
SolverBot: - Inject active project path into agent system prompts so agents know which directory to scope file operations to GuruRMM: - Bump agent version to 0.6.0 - Add serde aliases for PowerShell/ClaudeTask command types - Add typed CommandType enum on server for proper serialization - Support claude_task command type in send_command API Dataforth: - Fix SCP space-escaping in Sync-FromNAS.ps1 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
18
tmp_check_proc.ps1
Normal file
18
tmp_check_proc.ps1
Normal file
@@ -0,0 +1,18 @@
|
||||
$pass = ConvertTo-SecureString ("Paper123" + [char]33 + "@#") -AsPlainText -Force
|
||||
$cred = New-Object PSCredential("INTRANET\sysadmin", $pass)
|
||||
|
||||
# Check if the process is still running
|
||||
$proc = Get-WmiObject -ComputerName 192.168.0.6 -Credential $cred -Class Win32_Process -Filter "ProcessId=15856" 2>$null
|
||||
if ($proc) {
|
||||
Write-Output "Process 15856 still running: $($proc.CommandLine)"
|
||||
} else {
|
||||
Write-Output "Process 15856 has completed"
|
||||
}
|
||||
|
||||
# Check for any powershell processes running our script
|
||||
$procs = Get-WmiObject -ComputerName 192.168.0.6 -Credential $cred -Class Win32_Process -Filter "Name='powershell.exe'" 2>$null
|
||||
foreach ($p in $procs) {
|
||||
if ($p.CommandLine -match "Sync-FromNAS|BulkSync") {
|
||||
Write-Output "Found sync process: PID=$($p.ProcessId) CMD=$($p.CommandLine)"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user