{
  "permissions": {
    "allow": [
      "Bash(ls -la \"E:\\\\GithubData\\\\ubains-module-test\\\\自动化部署脚本\\\\x86架构\\\\新统一平台\\\\定时脚本\"\" 2>/dev/null || dir \"E:GithubDataubains-module-test自动化部署脚本x86架构新统一平台定时脚本\"\")",
      "Bash(dir \"E:\\\\GithubData\\\\ubains-module-test\\\\自动化部署脚本\\\\x86架构\\\\新统一平台\" /s /b)",
      "Bash(powershell -NoProfile -Command \"$content = Get-Content ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\远程更新程序\\\\remote_program_update.ps1'' -Raw -Encoding UTF8; $utf8BOM = New-Object System.Text.UTF8Encoding $true; [System.IO.File]::WriteAllText\\(''C:\\\\Users\\\\EDY\\\\Desktop\\\\test\\\\remote_program_update.ps1'', $content, $utf8BOM\\)\")",
      "Bash(dir \"C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\")",
      "Bash(git checkout -- \"AuxiliaryTool/ScriptTool/远程更新程序/program_update.sh\" \"AuxiliaryTool/ScriptTool/远程更新程序/remote_program_update.ps1\")",
      "Bash(ls -la \"C:\\\\PycharmData\\\\ubains-module-test\\\\.claude\\\\skills\\\\prd\"\" 2>/dev/null || echo \"Not found \")",
      "Bash(dir /s /b \"C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\*.log\")",
      "Bash(cmd /c dir \"C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\issue_handler.sh\")",
      "Bash(powershell -Command \"Copy-Item ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\问题处理\\\\issue_handler.sh'' ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\issue_handler.sh''\")",
      "Bash(powershell -Command \"Remove-Item ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\issue_handler.sh'' -Force\")",
      "Bash(powershell -Command \"$scriptDir = ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection''; $localScript = Join-Path $scriptDir ''..\\\\问题处理\\\\issue_handler.sh''; [System.IO.Path]::GetFullPath\\($localScript\\)\")",
      "Bash(python -c \"\nwith open\\(''check_server_health.ps1'', ''r'', encoding=''utf-8''\\) as f:\n    lines = f.readlines\\(\\)\n    \nstart = 2130  # 0-indexed, so line 2131 is index 2130\nend = 2575   # function Test-RedisConnection is at 2576\n\nbrace_count = 0\nfor i in range\\(start, min\\(end, len\\(lines\\)\\)\\):\n    line = lines[i]\n    # Count opening braces\n    brace_count += line.count\\(''{''\\)\n    # Count closing braces\n    brace_count -= line.count\\(''}''\\)\n    \nprint\\(f''Brace balance from line 2131 to 2575: {brace_count}''\\)\nif brace_count != 0:\n    print\\(''ERROR: Unmatched braces!''\\)\n    # Find the issue\n    count = 0\n    for i in range\\(start, min\\(end, len\\(lines\\)\\)\\):\n        line = lines[i]\n        count += line.count\\(''{''\\)\n        count -= line.count\\(''}''\\)\n        if count < 0:\n            print\\(f''Extra closing brace at line {i+1}: {line.rstrip\\(\\)}''\\)\n            break\n\")",
      "Bash(python -c \"\nwith open\\(''check_server_health.ps1'', ''r'', encoding=''utf-8''\\) as f:\n    lines = f.readlines\\(\\)\n    \nstart = 2130\nend = 2575\n\ncount = 0\nfor i in range\\(start, min\\(end, len\\(lines\\)\\)\\):\n    line = lines[i]\n    open_count = line.count\\(''{''\\)\n    close_count = line.count\\(''}''\\)\n    old_count = count\n    count += open_count\n    count -= close_count\n    \n    if open_count > 0 or close_count > 0:\n        print\\(''Line {}: delta={:+d}, total={}''.format\\(i+1, open_count-close_count, count\\)\\)\n\")",
      "Bash(Select-Object -Last 60)",
      "Bash(python -c \"\nwith open\\(''C:/PycharmData/ubains-module-test/AuxiliaryTool/ScriptTool/ServiceSelfInspection/check_server_health.ps1'', ''r'', encoding=''utf-8-sig''\\) as f:\n    lines = f.readlines\\(\\)\ndepth = 0\nfor i, line in enumerate\\(lines\\):\n    code = line\n    if ''#'' in code:\n        code = code[:code.index\\(''#''\\)]\n    open_count = code.count\\(''{''\\)\n    close_count = code.count\\(''}''\\)\n    old_depth = depth\n    depth += open_count - close_count\n    if i >= 1900 and i < 2150 and \\(open_count > 0 or close_count > 0\\):\n        marker = '' <<<< NEGATIVE'' if depth < 0 else ''''\n        print\\(f''{i+1:4d} d:{old_depth:2d}->{depth:2d}{marker}: {line[:55].rstrip\\(\\)}''\\)\n\")",
      "Bash(python -c \"\nimport sys\nsys.stdout.reconfigure\\(encoding=''utf-8''\\)\nwith open\\(''C:/PycharmData/ubains-module-test/AuxiliaryTool/ScriptTool/ServiceSelfInspection/check_server_health.ps1'', ''r'', encoding=''utf-8-sig''\\) as f:\n    lines = f.readlines\\(\\)\ndepth = 0\nfor i, line in enumerate\\(lines\\):\n    code = line\n    if ''#'' in code:\n        code = code[:code.index\\(''#''\\)]\n    open_count = code.count\\(''{''\\)\n    close_count = code.count\\(''}''\\)\n    old_depth = depth\n    depth += open_count - close_count\n    if i >= 1900 and i < 2150 and \\(open_count > 0 or close_count > 0\\):\n        marker = '' <<<< NEGATIVE'' if depth < 0 else ''''\n        truncated = line[:50].rstrip\\(\\)\n        print\\(f''{i+1:4d} d:{old_depth:2d}->{depth:2d}{marker}: {truncated}''\\)\n\")",
      "Bash(python -c \"\nimport sys\nsys.stdout.reconfigure\\(encoding=''utf-8''\\)\nwith open\\(''C:/PycharmData/ubains-module-test/AuxiliaryTool/ScriptTool/ServiceSelfInspection/check_server_health.ps1'', ''r'', encoding=''utf-8-sig''\\) as f:\n    lines = f.readlines\\(\\)\ndepth = 0\nfor i, line in enumerate\\(lines\\):\n    code = line\n    if ''#'' in code:\n        code = code[:code.index\\(''#''\\)]\n    open_count = code.count\\(''{''\\)\n    close_count = code.count\\(''}''\\)\n    old_depth = depth\n    depth += open_count - close_count\n    if i >= 1590 and i < 1780 and \\(open_count > 0 or close_count > 0\\):\n        marker = '' <<<< NEGATIVE'' if depth < 0 else ''''\n        truncated = line[:50].rstrip\\(\\)\n        print\\(f''{i+1:4d} d:{old_depth:2d}->{depth:2d}{marker}: {truncated}''\\)\n\")",
      "Bash(python -c \"\nimport sys\nsys.stdout.reconfigure\\(encoding=''utf-8''\\)\nwith open\\(''C:/PycharmData/ubains-module-test/AuxiliaryTool/ScriptTool/ServiceSelfInspection/check_server_health.ps1'', ''r'', encoding=''utf-8-sig''\\) as f:\n    content = f.read\\(\\)\nlines = content.splitlines\\(\\)\ndepth = 0\nmax_depth = 0\nmax_depth_line = 0\nfinal_depth = 0\nfor i, line in enumerate\\(lines\\):\n    code = line\n    if ''#'' in code:\n        code = code[:code.index\\(''#''\\)]\n    open_count = code.count\\(''{''\\)\n    close_count = code.count\\(''}''\\)\n    depth += open_count - close_count\n    if depth > max_depth:\n        max_depth = depth\n        max_depth_line = i + 1\n\nprint\\(f''Max depth: {max_depth} at line {max_depth_line}''\\)\nprint\\(f''Final depth: {depth}''\\)\nprint\\(f''Total open braces: {content.count\\(\"\"{\"\"\\)}''\\)\nprint\\(f''Total close braces: {content.count\\(\"\"}\"\"\\)}''\\)\nprint\\(f''Difference: {content.count\\(\"\"{\"\"\\) - content.count\\(\"\"}\"\"\\)}''\\)\n\")",
      "Bash(python -c \"\nimport sys\nsys.stdout.reconfigure\\(encoding=''utf-8''\\)\nwith open\\(''C:/PycharmData/ubains-module-test/AuxiliaryTool/ScriptTool/ServiceSelfInspection/check_server_health.ps1'', ''r'', encoding=''utf-8-sig''\\) as f:\n    lines = f.readlines\\(\\)\ndepth = 0\nfor i, line in enumerate\\(lines\\):\n    code = line\n    if ''#'' in code:\n        code = code[:code.index\\(''#''\\)]\n    open_count = code.count\\(''{''\\)\n    close_count = code.count\\(''}''\\)\n    old_depth = depth\n    depth += open_count - close_count\n    # Print lines where depth changes from/to specific values near the end\n    if i >= 5700 or \\(i >= 5600 and \\(open_count > 0 or close_count > 0\\)\\):\n        truncated = line[:50].rstrip\\(\\)\n        print\\(f''{i+1:4d} d:{old_depth:2d}->{depth:2d}: {truncated}''\\)\n\")",
      "Bash(python -c \"\nimport sys\nsys.stdout.reconfigure\\(encoding=''utf-8''\\)\nwith open\\(''C:/PycharmData/ubains-module-test/AuxiliaryTool/ScriptTool/ServiceSelfInspection/check_server_health.ps1'', ''r'', encoding=''utf-8-sig''\\) as f:\n    lines = f.readlines\\(\\)\ndepth = 0\nfor i, line in enumerate\\(lines\\):\n    code = line\n    if ''#'' in code:\n        code = code[:code.index\\(''#''\\)]\n    open_count = code.count\\(''{''\\)\n    close_count = code.count\\(''}''\\)\n    old_depth = depth\n    depth += open_count - close_count\n    if i >= 5310 and i < 5450 and \\(open_count > 0 or close_count > 0\\):\n        truncated = line[:55].rstrip\\(\\)\n        print\\(f''{i+1:4d} d:{old_depth:2d}->{depth:2d}: {truncated}''\\)\n\")",
      "Bash(python -c \"\nimport sys\nsys.stdout.reconfigure\\(encoding=''utf-8''\\)\nwith open\\(''C:/PycharmData/ubains-module-test/AuxiliaryTool/ScriptTool/ServiceSelfInspection/check_server_health.ps1'', ''r'', encoding=''utf-8-sig''\\) as f:\n    lines = f.readlines\\(\\)\ndepth = 0\nfor i, line in enumerate\\(lines\\):\n    code = line\n    if ''#'' in code:\n        code = code[:code.index\\(''#''\\)]\n    open_count = code.count\\(''{''\\)\n    close_count = code.count\\(''}''\\)\n    old_depth = depth\n    depth += open_count - close_count\n    if i >= 5200 and i < 5320 and \\(open_count > 0 or close_count > 0 or i < 5215\\):\n        truncated = line[:55].rstrip\\(\\)\n        print\\(f''{i+1:4d} d:{old_depth:2d}->{depth:2d}: {truncated}''\\)\n\")",
      "Bash(python -c \"\nimport sys\nsys.stdout.reconfigure\\(encoding=''utf-8''\\)\nwith open\\(''C:/PycharmData/ubains-module-test/AuxiliaryTool/ScriptTool/ServiceSelfInspection/check_server_health.ps1'', ''r'', encoding=''utf-8-sig''\\) as f:\n    lines = f.readlines\\(\\)\ndepth = 0\nfor i, line in enumerate\\(lines\\):\n    code = line\n    if ''#'' in code:\n        code = code[:code.index\\(''#''\\)]\n    open_count = code.count\\(''{''\\)\n    close_count = code.count\\(''}''\\)\n    old_depth = depth\n    depth += open_count - close_count\n    if i >= 5110 and i < 5220 and \\(open_count > 0 or close_count > 0 or i < 5120\\):\n        truncated = line[:55].rstrip\\(\\)\n        print\\(f''{i+1:4d} d:{old_depth:2d}->{depth:2d}: {truncated}''\\)\n\")",
      "Bash(python -c \"\nimport sys\nsys.stdout.reconfigure\\(encoding=''utf-8''\\)\nwith open\\(''C:/PycharmData/ubains-module-test/AuxiliaryTool/ScriptTool/ServiceSelfInspection/check_server_health.ps1'', ''r'', encoding=''utf-8-sig''\\) as f:\n    lines = f.readlines\\(\\)\ndepth = 0\nfor i, line in enumerate\\(lines\\):\n    code = line\n    if ''#'' in code:\n        code = code[:code.index\\(''#''\\)]\n    open_count = code.count\\(''{''\\)\n    close_count = code.count\\(''}''\\)\n    old_depth = depth\n    depth += open_count - close_count\n    # Find where depth becomes 1 and stays at 1 for a while\n    if i >= 4970 and i < 5130 and \\(open_count > 0 or close_count > 0 or i < 4980\\):\n        truncated = line[:55].rstrip\\(\\)\n        print\\(f''{i+1:4d} d:{old_depth:2d}->{depth:2d}: {truncated}''\\)\n\")",
      "Bash(python -c \"\nimport sys\nsys.stdout.reconfigure\\(encoding=''utf-8''\\)\nwith open\\(''C:/PycharmData/ubains-module-test/AuxiliaryTool/ScriptTool/ServiceSelfInspection/check_server_health.ps1'', ''r'', encoding=''utf-8-sig''\\) as f:\n    lines = f.readlines\\(\\)\ndepth = 0\nfor i, line in enumerate\\(lines\\):\n    code = line\n    if ''#'' in code:\n        code = code[:code.index\\(''#''\\)]\n    open_count = code.count\\(''{''\\)\n    close_count = code.count\\(''}''\\)\n    old_depth = depth\n    depth += open_count - close_count\n    if i >= 4880 and i < 4980 and \\(open_count > 0 or close_count > 0\\):\n        truncated = line[:55].rstrip\\(\\)\n        print\\(f''{i+1:4d} d:{old_depth:2d}->{depth:2d}: {truncated}''\\)\n\")",
      "Bash(python -c \"\nimport sys\nsys.stdout.reconfigure\\(encoding=''utf-8''\\)\nwith open\\(''C:/PycharmData/ubains-module-test/AuxiliaryTool/ScriptTool/ServiceSelfInspection/check_server_health.ps1'', ''r'', encoding=''utf-8-sig''\\) as f:\n    lines = f.readlines\\(\\)\ndepth = 0\nfor i, line in enumerate\\(lines\\):\n    code = line\n    if ''#'' in code:\n        code = code[:code.index\\(''#''\\)]\n    open_count = code.count\\(''{''\\)\n    close_count = code.count\\(''}''\\)\n    old_depth = depth\n    depth += open_count - close_count\n    if i >= 4840 and i < 4900 and \\(open_count > 0 or close_count > 0\\):\n        truncated = line[:55].rstrip\\(\\)\n        print\\(f''{i+1:4d} d:{old_depth:2d}->{depth:2d}: {truncated}''\\)\n\")",
      "Bash(python -c \"\nimport sys\nsys.stdout.reconfigure\\(encoding=''utf-8''\\)\nwith open\\(''C:/PycharmData/ubains-module-test/AuxiliaryTool/ScriptTool/ServiceSelfInspection/check_server_health.ps1'', ''r'', encoding=''utf-8-sig''\\) as f:\n    lines = f.readlines\\(\\)\ndepth = 0\nfor i, line in enumerate\\(lines\\):\n    code = line\n    if ''#'' in code:\n        code = code[:code.index\\(''#''\\)]\n    open_count = code.count\\(''{''\\)\n    close_count = code.count\\(''}''\\)\n    old_depth = depth\n    depth += open_count - close_count\n    if i >= 4710 and i < 4750 and \\(open_count > 0 or close_count > 0 or i < 4725\\):\n        truncated = line[:55].rstrip\\(\\)\n        print\\(f''{i+1:4d} d:{old_depth:2d}->{depth:2d}: {truncated}''\\)\n\")",
      "Bash(python -c \"\nimport sys\nsys.stdout.reconfigure\\(encoding=''utf-8''\\)\nwith open\\(''C:/PycharmData/ubains-module-test/AuxiliaryTool/ScriptTool/ServiceSelfInspection/check_server_health.ps1'', ''r'', encoding=''utf-8-sig''\\) as f:\n    lines = f.readlines\\(\\)\ndepth = 0\nfor i, line in enumerate\\(lines\\):\n    code = line\n    if ''#'' in code:\n        code = code[:code.index\\(''#''\\)]\n    open_count = code.count\\(''{''\\)\n    close_count = code.count\\(''}''\\)\n    old_depth = depth\n    depth += open_count - close_count\n    if i >= 4640 and i < 4680 and \\(open_count > 0 or close_count > 0 or i < 4655\\):\n        truncated = line[:55].rstrip\\(\\)\n        print\\(f''{i+1:4d} d:{old_depth:2d}->{depth:2d}: {truncated}''\\)\n\")",
      "Bash(python -c \"\nimport sys\nsys.stdout.reconfigure\\(encoding=''utf-8''\\)\nwith open\\(''C:/PycharmData/ubains-module-test/AuxiliaryTool/ScriptTool/ServiceSelfInspection/check_server_health.ps1'', ''r'', encoding=''utf-8-sig''\\) as f:\n    lines = f.readlines\\(\\)\ndepth = 0\nfor i, line in enumerate\\(lines\\):\n    code = line\n    if ''#'' in code:\n        code = code[:code.index\\(''#''\\)]\n    open_count = code.count\\(''{''\\)\n    close_count = code.count\\(''}''\\)\n    old_depth = depth\n    depth += open_count - close_count\n    if i >= 4575 and i < 4610 and \\(open_count > 0 or close_count > 0 or i < 4595\\):\n        truncated = line[:55].rstrip\\(\\)\n        print\\(f''{i+1:4d} d:{old_depth:2d}->{depth:2d}: {truncated}''\\)\n\")",
      "Bash(python -c \"\nimport sys\nsys.stdout.reconfigure\\(encoding=''utf-8''\\)\nwith open\\(''C:/PycharmData/ubains-module-test/AuxiliaryTool/ScriptTool/ServiceSelfInspection/check_server_health.ps1'', ''r'', encoding=''utf-8-sig''\\) as f:\n    lines = f.readlines\\(\\)\ndepth = 0\nfor i, line in enumerate\\(lines\\):\n    code = line\n    if ''#'' in code:\n        code = code[:code.index\\(''#''\\)]\n    open_count = code.count\\(''{''\\)\n    close_count = code.count\\(''}''\\)\n    old_depth = depth\n    depth += open_count - close_count\n    if i >= 4170 and i < 4195 and \\(open_count > 0 or close_count > 0 or i < 4185\\):\n        truncated = line[:55].rstrip\\(\\)\n        print\\(f''{i+1:4d} d:{old_depth:2d}->{depth:2d}: {truncated}''\\)\n\")",
      "Bash(python -c \"\nimport sys\nsys.stdout.reconfigure\\(encoding=''utf-8''\\)\nwith open\\(''C:/PycharmData/ubains-module-test/AuxiliaryTool/ScriptTool/ServiceSelfInspection/check_server_health.ps1'', ''r'', encoding=''utf-8-sig''\\) as f:\n    lines = f.readlines\\(\\)\ndepth = 0\nfor i, line in enumerate\\(lines\\):\n    code = line\n    if ''#'' in code:\n        code = code[:code.index\\(''#''\\)]\n    open_count = code.count\\(''{''\\)\n    close_count = code.count\\(''}''\\)\n    old_depth = depth\n    depth += open_count - close_count\n    if i >= 3975 and i < 3995 and \\(open_count > 0 or close_count > 0 or i < 3985\\):\n        truncated = line[:55].rstrip\\(\\)\n        print\\(f''{i+1:4d} d:{old_depth:2d}->{depth:2d}: {truncated}''\\)\n\")",
      "Bash(python -c \"\nimport sys\nsys.stdout.reconfigure\\(encoding=''utf-8''\\)\nwith open\\(''C:/PycharmData/ubains-module-test/AuxiliaryTool/ScriptTool/ServiceSelfInspection/check_server_health.ps1'', ''r'', encoding=''utf-8-sig''\\) as f:\n    lines = f.readlines\\(\\)\ndepth = 0\nfor i, line in enumerate\\(lines\\):\n    code = line\n    if ''#'' in code:\n        code = code[:code.index\\(''#''\\)]\n    open_count = code.count\\(''{''\\)\n    close_count = code.count\\(''}''\\)\n    old_depth = depth\n    depth += open_count - close_count\n    if i >= 3945 and i < 3960 and \\(open_count > 0 or close_count > 0 or i < 3955\\):\n        truncated = line[:55].rstrip\\(\\)\n        print\\(f''{i+1:4d} d:{old_depth:2d}->{depth:2d}: {truncated}''\\)\n\")",
      "Bash(python -c \"\nimport sys\nsys.stdout.reconfigure\\(encoding=''utf-8''\\)\nwith open\\(''C:/PycharmData/ubains-module-test/AuxiliaryTool/ScriptTool/ServiceSelfInspection/check_server_health.ps1'', ''r'', encoding=''utf-8-sig''\\) as f:\n    lines = f.readlines\\(\\)\ndepth = 0\nfor i, line in enumerate\\(lines\\):\n    code = line\n    if ''#'' in code:\n        code = code[:code.index\\(''#''\\)]\n    open_count = code.count\\(''{''\\)\n    close_count = code.count\\(''}''\\)\n    old_depth = depth\n    depth += open_count - close_count\n    if i >= 3925 and i < 3940 and \\(open_count > 0 or close_count > 0 or i < 3935\\):\n        truncated = line[:55].rstrip\\(\\)\n        print\\(f''{i+1:4d} d:{old_depth:2d}->{depth:2d}: {truncated}''\\)\n\")",
      "Bash(python -c \"\nimport sys\nsys.stdout.reconfigure\\(encoding=''utf-8''\\)\nwith open\\(''C:/PycharmData/ubains-module-test/AuxiliaryTool/ScriptTool/ServiceSelfInspection/check_server_health.ps1'', ''r'', encoding=''utf-8-sig''\\) as f:\n    lines = f.readlines\\(\\)\ndepth = 0\nfor i, line in enumerate\\(lines\\):\n    code = line\n    if ''#'' in code:\n        code = code[:code.index\\(''#''\\)]\n    open_count = code.count\\(''{''\\)\n    close_count = code.count\\(''}''\\)\n    old_depth = depth\n    depth += open_count - close_count\n    if i >= 3915 and i < 3930 and \\(open_count > 0 or close_count > 0 or i < 3925\\):\n        truncated = line[:55].rstrip\\(\\)\n        print\\(f''{i+1:4d} d:{old_depth:2d}->{depth:2d}: {truncated}''\\)\n\")",
      "Bash(python -c \"\nimport sys\nsys.stdout.reconfigure\\(encoding=''utf-8''\\)\nwith open\\(''C:/PycharmData/ubains-module-test/AuxiliaryTool/ScriptTool/ServiceSelfInspection/check_server_health.ps1'', ''r'', encoding=''utf-8-sig''\\) as f:\n    lines = f.readlines\\(\\)\ndepth = 0\nfor i, line in enumerate\\(lines\\):\n    code = line\n    if ''#'' in code:\n        code = code[:code.index\\(''#''\\)]\n    open_count = code.count\\(''{''\\)\n    close_count = code.count\\(''}''\\)\n    old_depth = depth\n    depth += open_count - close_count\n    if i >= 3650 and i < 3870 and \\(open_count > 0 or close_count > 0\\):\n        truncated = line[:55].rstrip\\(\\)\n        print\\(f''{i+1:4d} d:{old_depth:2d}->{depth:2d}: {truncated}''\\)\n\")",
      "Bash(python -c \"\nimport sys\nsys.stdout.reconfigure\\(encoding=''utf-8''\\)\nwith open\\(''C:/PycharmData/ubains-module-test/AuxiliaryTool/ScriptTool/ServiceSelfInspection/check_server_health.ps1'', ''r'', encoding=''utf-8-sig''\\) as f:\n    lines = f.readlines\\(\\)\ndepth = 0\nfor i, line in enumerate\\(lines\\):\n    code = line\n    if ''#'' in code:\n        code = code[:code.index\\(''#''\\)]\n    open_count = code.count\\(''{''\\)\n    close_count = code.count\\(''}''\\)\n    old_depth = depth\n    depth += open_count - close_count\n    if i >= 3510 and i < 3660 and \\(open_count > 0 or close_count > 0\\):\n        truncated = line[:55].rstrip\\(\\)\n        print\\(f''{i+1:4d} d:{old_depth:2d}->{depth:2d}: {truncated}''\\)\n\")",
      "Bash(python -c \"\nimport sys\nsys.stdout.reconfigure\\(encoding=''utf-8''\\)\nwith open\\(''C:/PycharmData/ubains-module-test/AuxiliaryTool/ScriptTool/ServiceSelfInspection/check_server_health.ps1'', ''r'', encoding=''utf-8-sig''\\) as f:\n    lines = f.readlines\\(\\)\ndepth = 0\nfor i, line in enumerate\\(lines\\):\n    code = line\n    if ''#'' in code:\n        code = code[:code.index\\(''#''\\)]\n    open_count = code.count\\(''{''\\)\n    close_count = code.count\\(''}''\\)\n    old_depth = depth\n    depth += open_count - close_count\n    if i >= 3130 and i < 3520 and \\(open_count > 0 or close_count > 0\\):\n        truncated = line[:55].rstrip\\(\\)\n        print\\(f''{i+1:4d} d:{old_depth:2d}->{depth:2d}: {truncated}''\\)\n\")",
      "Bash(python -c \"\nimport sys\nsys.stdout.reconfigure\\(encoding=''utf-8''\\)\nwith open\\(''C:/PycharmData/ubains-module-test/AuxiliaryTool/ScriptTool/ServiceSelfInspection/check_server_health.ps1'', ''r'', encoding=''utf-8-sig''\\) as f:\n    lines = f.readlines\\(\\)\ndepth = 0\nfor i, line in enumerate\\(lines\\):\n    code = line\n    if ''#'' in code:\n        code = code[:code.index\\(''#''\\)]\n    open_count = code.count\\(''{''\\)\n    close_count = code.count\\(''}''\\)\n    old_depth = depth\n    depth += open_count - close_count\n    if i >= 2845 and i < 3140 and \\(open_count > 0 or close_count > 0\\):\n        truncated = line[:55].rstrip\\(\\)\n        print\\(f''{i+1:4d} d:{old_depth:2d}->{depth:2d}: {truncated}''\\)\n\")",
      "Bash(python -c \"\nimport sys\nsys.stdout.reconfigure\\(encoding=''utf-8''\\)\nwith open\\(''C:/PycharmData/ubains-module-test/AuxiliaryTool/ScriptTool/ServiceSelfInspection/check_server_health.ps1'', ''r'', encoding=''utf-8-sig''\\) as f:\n    lines = f.readlines\\(\\)\ndepth = 0\nfor i, line in enumerate\\(lines\\):\n    code = line\n    if ''#'' in code:\n        code = code[:code.index\\(''#''\\)]\n    open_count = code.count\\(''{''\\)\n    close_count = code.count\\(''}''\\)\n    old_depth = depth\n    depth += open_count - close_count\n    if i >= 2570 and i < 2850 and \\(open_count > 0 or close_count > 0\\):\n        truncated = line[:55].rstrip\\(\\)\n        print\\(f''{i+1:4d} d:{old_depth:2d}->{depth:2d}: {truncated}''\\)\n\")",
      "Bash(python -c \"\nimport sys\nsys.stdout.reconfigure\\(encoding=''utf-8''\\)\nwith open\\(''C:/PycharmData/ubains-module-test/AuxiliaryTool/ScriptTool/ServiceSelfInspection/check_server_health.ps1'', ''r'', encoding=''utf-8-sig''\\) as f:\n    lines = f.readlines\\(\\)\ndepth = 0\nfor i, line in enumerate\\(lines\\):\n    code = line\n    if ''#'' in code:\n        code = code[:code.index\\(''#''\\)]\n    open_count = code.count\\(''{''\\)\n    close_count = code.count\\(''}''\\)\n    old_depth = depth\n    depth += open_count - close_count\n    # Find where depth first becomes 1 and stays at 1\n    if i < 300 and \\(open_count > 0 or close_count > 0\\):\n        truncated = line[:55].rstrip\\(\\)\n        print\\(f''{i+1:4d} d:{old_depth:2d}->{depth:2d}: {truncated}''\\)\n\")",
      "Bash(python -c \"\nimport sys\nsys.stdout.reconfigure\\(encoding=''utf-8''\\)\nwith open\\(''C:/PycharmData/ubains-module-test/AuxiliaryTool/ScriptTool/ServiceSelfInspection/check_server_health.ps1'', ''r'', encoding=''utf-8-sig''\\) as f:\n    lines = f.readlines\\(\\)\ndepth = 0\nfor i, line in enumerate\\(lines\\):\n    code = line\n    if ''#'' in code:\n        code = code[:code.index\\(''#''\\)]\n    open_count = code.count\\(''{''\\)\n    close_count = code.count\\(''}''\\)\n    old_depth = depth\n    depth += open_count - close_count\n    # Mark where depth becomes 1 and check all function definitions\n    if ''function '' in line:\n        truncated = line[:60].rstrip\\(\\)\n        print\\(f''{i+1:4d} d:{old_depth:2d}->{depth:2d}: {truncated}''\\)\n\")",
      "Bash(python -c \"\nimport sys\nsys.stdout.reconfigure\\(encoding=''utf-8''\\)\nwith open\\(''C:/PycharmData/ubains-module-test/AuxiliaryTool/ScriptTool/ServiceSelfInspection/check_server_health.ps1'', ''r'', encoding=''utf-8-sig''\\) as f:\n    content = f.read\\(\\)\n# Find all lines with just }\nimport re\nlines = content.splitlines\\(\\)\nfor i, line in enumerate\\(lines\\):\n    stripped = line.strip\\(\\)\n    if stripped == ''}'':\n        print\\(f''{i+1}: {repr\\(line[:40]\\)}''\\)\n\")",
      "Bash(python -c \"\nimport sys\nsys.stdout.reconfigure\\(encoding=''utf-8''\\)\nwith open\\(''C:/PycharmData/ubains-module-test/AuxiliaryTool/ScriptTool/ServiceSelfInspection/check_server_health.ps1'', ''r'', encoding=''utf-8-sig''\\) as f:\n    lines = f.readlines\\(\\)\ndepth = 0\nlast_depth_0_line = 0\nfor i, line in enumerate\\(lines\\):\n    code = line\n    if ''#'' in code:\n        code = code[:code.index\\(''#''\\)]\n    open_count = code.count\\(''{''\\)\n    close_count = code.count\\(''}''\\)\n    old_depth = depth\n    depth += open_count - close_count\n    if old_depth == 0 and depth > 0:\n        last_depth_0_line = i + 1\n    if old_depth > 0 and depth == 0:\n        last_depth_0_line = i + 1\n    if i > 2100 and i < 2150 and \\(open_count > 0 or close_count > 0\\):\n        truncated = line[:50].rstrip\\(\\)\n        print\\(f''{i+1:4d} d:{old_depth:2d}->{depth:2d}: {truncated}''\\)\n\nprint\\(f''Last line where depth was 0 before line 2132: {last_depth_0_line}''\\)\n\")",
      "Bash(wc -l \"C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\modules\"/*.psm1)",
      "Bash(powershell -Command \"Get-Content ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\check_server_health_part1.ps1'' | Add-Content ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\check_server_health_cleaned.ps1'' -Encoding UTF8; Get-Content ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\check_server_health_part2.ps1'' | Add-Content ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\check_server_health_cleaned.ps1'' -Encoding UTF8\")",
      "Bash(powershell -Command \"\\(Get-Content ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\check_server_health_cleaned.ps1''\\).Count\")",
      "Bash(powershell -Command \"Copy-Item ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\check_server_health_cleaned.ps1'' ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\check_server_health.ps1'' -Force\")",
      "Bash(powershell -Command \"Remove-Item ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\check_server_health_part1.ps1'', ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\check_server_health_part2.ps1'', ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\check_server_health_cleaned.ps1'' -Force\")",
      "Bash(powershell -Command \"\\(Get-Content ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\check_server_health.ps1''\\).Count\")",
      "Bash(powershell -Command \"\n$modules = @\\(\n    ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\modules\\\\ServiceCheck.psm1'',\n    ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\modules\\\\DNSCheck.psm1'',\n    ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\modules\\\\ServerResourceAnalysis.psm1'',\n    ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\modules\\\\NTPCheck.psm1'',\n    ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\modules\\\\ContainerCheck.psm1'',\n    ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\modules\\\\ConfigIPCheck.psm1'',\n    ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\modules\\\\MiddlewareCheck.psm1''\n\\)\n\nforeach \\($module in $modules\\) {\n    if \\(Test-Path $module\\) {\n        $content = Get-Content $module -Raw -Encoding UTF8\n        $utf8WithBOM = New-Object System.Text.UTF8Encoding $true\n        [System.IO.File]::WriteAllText\\($module, $content, $utf8WithBOM\\)\n        Write-Host \"\"Fixed encoding: $module\"\"\n    }\n}\n\")",
      "Bash(powershell -ExecutionPolicy Bypass -File \"C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\fix_encoding.ps1\")",
      "Bash(powershell -Command \"Remove-Item ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\fix_encoding.ps1'' -Force\")",
      "Bash(powershell -Command \"\ntry {\n    Import-Module ''.\\\\modules\\\\ServiceCheck.psm1'' -Force -ErrorAction Stop\n    Write-Host ''[SUCCESS] ServiceCheck.psm1 loaded successfully'' -ForegroundColor Green\n} catch {\n    Write-Host ''[ERROR] ServiceCheck.psm1 failed to load: '' $_Exception.Message -ForegroundColor Red\n}\n\")",
      "Bash(powershell -Command \"\n$modules = @\\(''DNSCheck.psm1'', ''ServerResourceAnalysis.psm1'', ''NTPCheck.psm1'', ''ContainerCheck.psm1'', ''ConfigIPCheck.psm1'', ''MiddlewareCheck.psm1''\\)\nforeach \\($m in $modules\\) {\n    try {\n        Import-Module \\(Join-Path ''.\\\\modules'' $m\\) -Force -ErrorAction Stop\n        Write-Host \"\"[SUCCESS] $m loaded\"\" -ForegroundColor Green\n    } catch {\n        Write-Host \"\"[ERROR] $m failed: $_\" -ForegroundColor Red\n    }\n}\n\")",
      "Bash(powershell -ExecutionPolicy Bypass -File test_modules.ps1)",
      "Bash(powershell -Command \"Remove-Item ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\test_modules.ps1'' -Force\")",
      "Bash(powershell -Command \"\n# Test module import with Global switch\nImport-Module ''.\\\\modules\\\\ServiceCheck.psm1'' -Force -Global\nif \\(Get-Command Test-UjavaServices -ErrorAction SilentlyContinue\\) {\n    Write-Host ''[SUCCESS] Test-UjavaServices function is available'' -ForegroundColor Green\n} else {\n    Write-Host ''[ERROR] Test-UjavaServices function NOT available'' -ForegroundColor Red\n}\n\nImport-Module ''.\\\\modules\\\\DNSCheck.psm1'' -Force -Global\nif \\(Get-Command Test-DNSResolution -ErrorAction SilentlyContinue\\) {\n    Write-Host ''[SUCCESS] Test-DNSResolution function is available'' -ForegroundColor Green\n} else {\n    Write-Host ''[ERROR] Test-DNSResolution function NOT available'' -ForegroundColor Red\n}\n\")",
      "Bash(powershell -ExecutionPolicy Bypass -File test_module_export.ps1)",
      "Bash(powershell -ExecutionPolicy Bypass -File \"C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\fix_all_encoding.ps1\")",
      "Bash(powershell -ExecutionPolicy Bypass -File \"C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\fix_module_structure.ps1\")",
      "Bash(powershell -Command \"Remove-Item ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\fix_module_structure.ps1'', ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\fix_all_encoding.ps1'', ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\test_module_export.ps1'' -Force -ErrorAction SilentlyContinue\")",
      "Bash(powershell -ExecutionPolicy Bypass -File test_all_modules.ps1)",
      "Bash(powershell -Command \"\n$content = Get-Content ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\modules\\\\DNSCheck.psm1'' -Raw -Encoding UTF8\n$utf8WithBOM = New-Object System.Text.UTF8Encoding $true\n[System.IO.File]::WriteAllText\\(''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\modules\\\\DNSCheck.psm1'', $content, $utf8WithBOM\\)\nWrite-Host ''DNSCheck.psm1 encoding fixed''\n\")",
      "Bash(powershell -Command \"Remove-Module DNSCheck -Force -ErrorAction SilentlyContinue; $m = Import-Module ''.\\\\modules\\\\DNSCheck.psm1'' -Force -Global -PassThru; Write-Host ''Exported:'' $m.ExportedFunctions.Keys\")",
      "Bash(powershell -ExecutionPolicy Bypass -File test_dns.ps1)",
      "Bash(powershell -ExecutionPolicy Bypass -File \"C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\fix_remaining_modules.ps1\")",
      "Bash(powershell -Command \"\n$content = Get-Content ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\modules\\\\ServerResourceAnalysis.psm1'' -Raw -Encoding UTF8\n$utf8WithBOM = New-Object System.Text.UTF8Encoding $true\n[System.IO.File]::WriteAllText\\(''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\modules\\\\ServerResourceAnalysis.psm1'', $content, $utf8WithBOM\\)\nWrite-Host ''ServerResourceAnalysis.psm1 encoding fixed''\n\")",
      "Bash(powershell -Command \"\n$modules = @\\(''NTPCheck.psm1'', ''ContainerCheck.psm1'', ''ConfigIPCheck.psm1'', ''MiddlewareCheck.psm1''\\)\n$modulesDir = ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\modules''\nforeach \\($m in $modules\\) {\n    $p = Join-Path $modulesDir $m\n    $content = Get-Content $p -Raw -Encoding UTF8\n    $utf8 = New-Object System.Text.UTF8Encoding $true\n    [System.IO.File]::WriteAllText\\($p, $content, $utf8\\)\n    Write-Host \"\"Fixed: $m\"\"\n}\n\")",
      "Bash(powershell -Command \"Remove-Item ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\test_all_modules.ps1'', ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\test_dns.ps1'' -Force -ErrorAction SilentlyContinue\")",
      "Bash(powershell -Command \"\n$content = Get-Content ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\modules\\\\Common.psm1'' -Raw -Encoding UTF8\n$utf8 = New-Object System.Text.UTF8Encoding $true\n[System.IO.File]::WriteAllText\\(''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\modules\\\\Common.psm1'', $content, $utf8\\)\nWrite-Host ''Common.psm1 encoding fixed''\n\")",
      "Bash(powershell -Command \"\nRemove-Module Common -Force -ErrorAction SilentlyContinue\n$m = Import-Module ''.\\\\modules\\\\Common.psm1'' -Force -Global -PassThru\nWrite-Host ''Module:'' $m.Name\nWrite-Host ''Exported functions:'' \\($m.ExportedFunctions.Keys -join '', ''\\)\n\")",
      "Bash(powershell -Command \"\n$modulesDir = ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\modules''\n$modules = @\\(''ServiceCheck.psm1'', ''DNSCheck.psm1'', ''ServerResourceAnalysis.psm1'', ''NTPCheck.psm1'', ''ContainerCheck.psm1'', ''ConfigIPCheck.psm1'', ''MiddlewareCheck.psm1'', ''Common.psm1''\\)\nforeach \\($m in $modules\\) {\n    $p = Join-Path $modulesDir $m\n    if \\(Test-Path $p\\) {\n        $content = Get-Content $p -Raw -Encoding UTF8\n        $utf8 = New-Object System.Text.UTF8Encoding $true\n        [System.IO.File]::WriteAllText\\($p, $content, $utf8\\)\n        Write-Host \"\"Fixed encoding: $m\"\"\n    }\n}\n\")",
      "Bash(powershell -ExecutionPolicy Bypass -File delete_duplicates.ps1)",
      "Bash(powershell -Command \"Remove-Item ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\delete_duplicates.ps1'' -Force -ErrorAction SilentlyContinue\")",
      "Bash(powershell -Command \"Remove-Item ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\test_all_modules.ps1'' -Force -ErrorAction SilentlyContinue\")",
      "Bash(powershell -Command \"\n$filePath = ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\modules\\\\ContainerCheck.psm1''\n$content = [System.IO.File]::ReadAllBytes\\($filePath\\)\n$hasBOM = $content[0] -eq 0xEF -and $content[1] -eq 0xBB -and $content[2] -eq 0xBF\nWrite-Host ''Has BOM:'' $hasBOM\nWrite-Host ''First 20 bytes \\(hex\\):'' -NoNewline\n$content[0..19] | ForEach-Object { Write-Host \\(''{0:X2}'' -f $_\\) -NoNewline }\nWrite-Host ''''\n\")",
      "Bash(powershell -Command \"& { $filePath = ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\modules\\\\ContainerCheck.psm1''; $content = [System.IO.File]::ReadAllBytes\\($filePath\\); $hasBOM = $content[0] -eq 0xEF -and $content[1] -eq 0xBB -and $content[2] -eq 0xBF; Write-Host ''Has BOM:'' $hasBOM }\")",
      "Bash(powershell -ExecutionPolicy Bypass -File \"C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\test_encoding.ps1\")",
      "Bash(powershell -ExecutionPolicy Bypass -File \"C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\test_container_module.ps1\")",
      "Bash(powershell -ExecutionPolicy Bypass -File \"C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\diagnose_modules.ps1\")",
      "Bash(powershell -NoProfile -Command \"Get-Content ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\远程更新程序\\\\remote_update_program.ps1'' | Select-String -Pattern ''^[{}]'' | ForEach-Object { $i++; [PSCustomObject]@{Line=$i; Content=$_ }\")",
      "Bash(powershell -NoProfile -Command \"$errors = $null; [System.Management.Automation.PSParser]::Tokenize\\(\\(Get-Content ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\远程更新程序\\\\remote_update_program.ps1'' -Raw\\), [ref]$errors\\); if \\($errors\\) { $errors | Format-List } else { ''No syntax errors'' }\")",
      "Bash(powershell -ExecutionPolicy Bypass -File \"C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\test_main_import.ps1\")",
      "Bash(powershell -ExecutionPolicy Bypass -File \"C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\test_common_module.ps1\")",
      "Bash(powershell -Command \"Get-Content remote_update_program.ps1 | Select-Object -First 5 | Format-Hex\")",
      "Bash(powershell -ExecutionPolicy Bypass -File \"C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\test_both_modules.ps1\")",
      "Bash(powershell -Command \"[System.IO.File]::ReadAllText\\(\\(Resolve-Path ''remote_update_program.ps1''\\).Path\\) | Out-File -FilePath ''remote_update_program.ps1'' -Encoding UTF8\")",
      "Bash(powershell -Command \"Get-Content ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\modules\\\\*.psm1'' | Select-String ''Common.psm1'' | Select-Object -First 20\")",
      "Bash(powershell -Command \"Get-ChildItem ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\modules\\\\*.psm1'' | ForEach-Object { $content = Get-Content $_FullName -Raw; if \\($content -match ''Common.psm1''\\) { Write-Host $_Name } }\")",
      "Bash(powershell -Command \"$ErrorActionPreference=''Stop''; try { . .\\\\remote_update_program.ps1; Write-Host ''Script loaded successfully'' } catch { Write-Host $_Exception.Message }\")",
      "Bash(powershell -ExecutionPolicy Bypass -File \"C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\update_common_imports.ps1\")",
      "Bash(powershell -Command \"Remove-Item ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\test_*.ps1'', ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\diagnose_modules.ps1'', ''C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\update_common_imports.ps1'' -ErrorAction SilentlyContinue\")",
      "Bash(powershell -ExecutionPolicy Bypass -File \"C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\debug_modules.ps1\")",
      "Bash(powershell -ExecutionPolicy Bypass -File \"C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\debug_modules2.ps1\")",
      "Bash(powershell:*)",
      "Bash(dir /b \"C:\\\\PycharmData\\\\ubains-module-test\\\\Docs\\\\PRD\\\\服务自检\\\\问题修复\"\" | findstr \"java服务 \")",
      "Bash(python fix_encoding.py)",
      "Bash(python fix_middleware.py)",
      "Bash(del \"C:\\\\Users\\\\EDY\\\\Desktop\\\\fix_encoding.ps1\")",
      "Bash(copy /Y \"C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\modules\\\\MiddlewareCheck.psm1.backup3\" \"C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\ServiceSelfInspection\\\\modules\\\\MiddlewareCheck.psm1\")",
      "Bash(xxd -l 10 \"C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\RemoteUpdate\\\\remote_update.ps1\")",
      "Bash(dir /b \"C:\\\\PycharmData\\\\ubains-module-test\\\\Docs\\\\PRD\\\\服务自检\\\\问题修复\"\")",
      "Bash(chcp 65001)",
      "Bash(more)",
      "Bash(timeout 3)",
      "Bash(Out-File -FilePath 'C:\\\\PycharmData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\RemoteUpdate\\\\test_projects.ps1' -Encoding UTF8)",
      "Bash(Select-Object -First 5)",
      "Bash(del:*)",
      "Bash(git --no-pager show HEAD:AuxiliaryTool/ScriptTool/ServiceSelfInspection/modules/ConfigIPCheck.psm1)",
      "Bash(python:*)",
      "Bash(git checkout:*)",
      "mcp__chrome-devtools__navigate_page",
      "mcp__chrome-devtools__take_snapshot",
      "mcp__chrome-devtools__evaluate_script",
      "mcp__chrome-devtools__take_screenshot",
      "mcp__chrome-devtools__fill",
      "mcp__chrome-devtools__click",
      "mcp__chrome-devtools__wait_for",
      "mcp__chrome-devtools__press_key",
      "mcp__chrome-devtools__new_page",
      "mcp__chrome-devtools__close_page",
      "mcp__chrome-devtools__list_pages",
      "mcp__chrome-devtools__fill_form",
      "Bash(grep:*)",
      "Bash(mkdir:*)",
      "Bash(cd \"E:/GithubData/ubains-module-test/AuxiliaryTool/DocumentAutoOptimizationCalibration\" && pip install translators -q)",
      "Bash(ls -la \"E:\\\\GithubData\\\\ubains-module-test\\\\Docs\\\\PRD\" 2>&1 || dir \"E:\\\\GithubData\\\\ubains-module-test\\\\Docs\\\\PRD\" 2>&1)",
      "Bash(sed -i 's/if \\\\[ \"\"$size_bytes\"\" -gt 0 \\\\] || \\\\[\\\\[ \"\"$target_file\"\" == \\\\*\"\"\\\\$TARGET_KEY\"\"\\\\* \\\\]\\\\]; then/if [ \"\"$size_bytes\"\" -gt 0 ]; then/' check_deleted_file_ubains.sh)",
      "Bash(sed -i '/^[[:space:]]*TARGET_KEY=/d' check_deleted_file_ubains.sh)",
      "Bash(check_deleted_file_ubains_header.tmp:*)",
      "Bash(mv check_deleted_file_ubains_header.tmp check_deleted_file_ubains.sh)",
      "Bash(chmod +x check_deleted_file_ubains.sh)",
      "Bash(bash -n \"E:\\\\ubains-module-test\\\\ubains-module-test\\\\自动化部署脚本\\\\x86架构\\\\预定系统\\\\一键更新\\\\update_cron_jobs.sh\")",
      "Bash(bash -n auto_deploy_services.sh)",
      "Bash(dir /s /b)",
      "Bash(findstr /i \"JwtAuthentication\")",
      "Bash(sshpass *)",
      "Bash(ping *)",
      "Bash(dir \"AuxiliaryTool\\\\ScriptTool\\\\RemoteUpdate\\\\\" 2>nul)",
      "Bash('\"$plink\\\\')",
      "Bash('\"$cmd\\\\')",
      "Bash(python3 log_monitor.py)",
      "Bash(dir E:\\\\GithubData\\\\ubains-module-test\\\\Docs\\\\PRD\\\\日志监测 *)",
      "Bash(dir E:\\\\GithubData\\\\ubains-module-test\\\\Docs\\\\PRD\\\\日志监测\\\\服务日志分析结果 *)",
      "Bash(dir *)",
      "Bash(python3 -c ' *)",
      "Bash(powershell.exe -NoProfile -Command \"Get-Content check_server_health.ps1 -Encoding UTF8 | Select-Object -Index 0,1 | Select-Object -First 3\")",
      "Bash(powershell.exe -NoProfile -ExecutionPolicy Bypass -File \"fix_encoding.ps1\")",
      "Bash(powershell.exe -NoProfile -ExecutionPolicy Bypass -Command '& { $content = Get-Content '\\\\''check_server_health.ps1'\\\\'' -Raw -Encoding UTF8; $content[0..100] -join '\\\\'''\\\\'' }')",
      "Bash(powershell.exe -NoProfile -ExecutionPolicy Bypass -Command \"try { . .\\\\check_server_health.ps1 -ErrorAction Stop 2>&1 | Select-Object -First 10 } catch { Write-Host '语法错误' }\")",
      "Bash(python3)",
      "Bash(powershell.exe -NoProfile -ExecutionPolicy Bypass -Command ' *)",
      "Bash(awk '/Add-Issue.*检测到/ && !/OOM/ && !/只读/ && !/zombieCount/ && !/coreCount/ && !/磁盘错误/ && !/失败服务/' \"C:\\\\Users\\\\UBAINS\\\\Desktop\\\\Test\\\\check_server_health.ps1\")",
      "Bash(powershell.exe *)",
      "Bash(2S)",
      "Bash(chmod +x \"C:/Users/UBAINS/Desktop/Test/test_mysql.sh\")",
      "Bash(cd \"E:\\\\\\\\GithubData\\\\\\\\ubains-module-test\\\\\\\\AuxiliaryTool\\\\\\\\ScriptTool\\\\\\\\新服务自检\")",
      "Bash(sed -i '1914,1985d' check_server_health.ps1)",
      "Bash(awk '/^        # EMQX增强检测 - 综合指标统计/,/^        catch {/' \"C:\\\\Users\\\\UBAINS\\\\Desktop\\\\Test\\\\check_server_health.ps1\")",
      "Bash(awk 'NR>=2750 && NR<=2800' \"E:\\\\GithubData\\\\ubains-module-test\\\\AuxiliaryTool\\\\ScriptTool\\\\新服务自检\\\\check_server_health.ps1\")",
      "Bash(npx vue-tsc *)",
      "Bash(npm run *)",
      "Bash(curl *)",
      "Bash(tee explore_menu_output.log)",
      "Bash(tasklist)",
      "Bash(ssh *)",
      "Bash(tee explore_menu_v3.log)",
      "Bash(cat \"C:\\\\\\\\Users\\\\\\\\UBAINS\\\\\\\\AppData\\\\\\\\Local\\\\\\\\Temp\\\\\\\\claude\\\\\\\\E--GithubData-ubains-module-test-platform-auto-test\\\\\\\\16b7010d-dda1-49c0-8ae3-4d1e7f451517\\\\\\\\tasks\\\\\\\\bm0gqc5bz.output\")",
      "Bash(pkill -f \"uvicorn app.main:app\")",
      "Bash(nohup uvicorn app.main:app --reload --port 8001)",
      "Bash(awk '{print $1}')",
      "Bash(xargs kill -9)",
      "Bash(PYTHONIOENCODING=utf-8 python scripts/verify_menu_v3.py)",
      "Bash(PYTHONIOENCODING=utf-8 timeout 600 python scripts/verify_menu_v3.py)",
      "Bash(tee verify_result.log)",
      "Bash(scp *)",
      "Bash(taskkill /F /IM chrome.exe)",
      "Bash(taskkill //F //IM chrome.exe)",
      "Bash(pip show *)",
      "Bash(git pull *)",
      "Bash(git stash *)",
      "Bash(git reset *)",
      "Bash(git add *)",
      "Bash(pip install *)",
      "Bash(git commit -m 'feat\\(keyword-matcher\\): jieba分词优化 + 评分归一化 \\(Phase 1&2\\) *)",
      "Bash(git push *)",
      "Bash(git commit -m 'feat\\(smart-locate\\): 语义定位器+组合选择器+Claude增强+iframe穿透 \\(Phase 3-6\\) *)",
      "Bash(netstat -ano)",
      "Bash(findstr \":8001\")",
      "Bash(taskkill /F /PID 30168)",
      "Bash(MSYS_NO_PATHCONV=1 cmd.exe *)",
      "Bash(sqlite3 backend/data/test_platform.db \"SELECT id, name, status, total_cases, passed, failed, skipped, duration, start_time, end_time FROM executions WHERE id = 'exec_5f48bf8852b54c5299fd7dd470aa4d83';\")",
      "Bash(cp /tmp/step_8.png \"E:/GithubData/ubains-module-test/platform-auto-test/data/screenshots/debug_step_8.png\")",
      "Bash(cp /tmp/step_9.png \"E:/GithubData/ubains-module-test/platform-auto-test/data/screenshots/debug_step_9.png\")",
      "Bash(cp /tmp/step_10.png \"E:/GithubData/ubains-module-test/platform-auto-test/data/screenshots/debug_step_10.png\")",
      "Bash(curl -s \"http://192.168.5.60/api/cases/case_13650e0406e64779b66e6fa5de35c24a\")",
      "WebFetch(domain:192.168.5.60)",
      "Bash(echo \"智能定位请求已发送，后台运行中 \\(PID: $!\\)\")"
    ]
  }
}
