Files
ANSCustomModels/.claude/settings.local.json
T
2026-06-18 05:57:14 +10:00

87 lines
12 KiB
JSON

{
"permissions": {
"allow": [
"Bash(find C:ProjectsANLSANSLIBANSCustomHelmetDetection -type f -name *)",
"mcp__desktop-commander__read_file",
"Bash(grep -E \"\\\\.\\(cpp|h|c|vcxproj|sln|props\\)$\")",
"Bash(find /c/Projects/CLionProjects/ANSCustomModels -name *.cmake -o -name CMakeLists.txt)",
"Bash(cp \"C:/Projects/ANLS/ANSLIB/ANSCustomFireNSmokeDetection/ANSCustomFireNSmoke.cpp\" \"C:/Projects/CLionProjects/ANSCustomModels/ANSCustomFireNSmokeDetection/ANSCustomFireNSmoke.cpp\")",
"Bash(cp \"C:/Projects/ANLS/ANSLIB/ANSCustomFireNSmokeDetection/dllmain.cpp\" \"C:/Projects/CLionProjects/ANSCustomModels/ANSCustomFireNSmokeDetection/dllmain.cpp\")",
"Bash(cp \"C:/Projects/ANLS/ANSLIB/ANSCustomFireNSmokeDetection/framework.h\" \"C:/Projects/CLionProjects/ANSCustomModels/ANSCustomFireNSmokeDetection/framework.h\")",
"Bash(cp \"C:/Projects/ANLS/ANSLIB/ANSCustomFireNSmokeDetection/pch.h\" \"C:/Projects/CLionProjects/ANSCustomModels/ANSCustomFireNSmokeDetection/pch.h\")",
"Bash(cp \"C:/Projects/ANLS/ANSLIB/ANSCustomFireNSmokeDetection/pch.cpp\" \"C:/Projects/CLionProjects/ANSCustomModels/ANSCustomFireNSmokeDetection/pch.cpp\")",
"Read(//c/ANSLibs/opencv/x64/vc17/**)",
"Read(//c/ANSLibs/opencv/**)",
"Bash(find C:/ANSLibs -name *.dll -type f)",
"Bash(xargs grep:*)",
"Bash(dumpbin /c/Projects/CLionProjects/ANSCORE/cmake-build-release/bin/ANSLIB.dll /imports)",
"Bash(objdump -p /c/Projects/CLionProjects/ANSCORE/cmake-build-release/bin/ANSLIB.dll)",
"Bash(nm -D /c/Projects/CLionProjects/ANSCORE/cmake-build-release/bin/ANSMOT.dll)",
"Bash(find /c/Projects/ANLS/ANSLIB -type f -name *ANSMOT*)",
"Bash(grep -r \"add_custom_command\\\\|install\\(\" /c/Projects/CLionProjects/ANSCORE --include=CMakeLists.txt --include=*.cmake)",
"Bash(find C:/Projects/CLionProjects/ANSCORE/cmake-build-release/bin -name *.dll -type f)",
"Read(//c/Projects/CLionProjects/ANSCustomModels/**)",
"Bash(dumpbin /EXPORTS C:/ProgramData/ANSCENTER/Shared/ANSODEngine.dll)",
"Bash(dumpbin /DEPENDENTS C:/ProgramData/ANSCENTER/Shared/ANSODEngine.dll)",
"Bash(cmd.exe /c \"dumpbin /DEPENDENTS C:\\\\ProgramData\\\\ANSCENTER\\\\Shared\\\\ANSODEngine.dll\")",
"Bash(\"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/dumpbin.exe\" /DEPENDENTS \"C:/ProgramData/ANSCENTER/Shared/ANSODEngine.dll\")",
"Bash(\"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/dumpbin.exe\" //DEPENDENTS ANSODEngine.dll)",
"Bash(\"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/dumpbin.exe\" //EXPORTS ANSLicensingSystem.dll)",
"Bash(\"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/dumpbin.exe\" //IMPORTS ANSODEngine.dll)",
"Bash(\"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/dumpbin.exe\" //IMPORTS ANSMOT.dll)",
"Bash(\"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/dumpbin.exe\" //IMPORTS ANSLIB.dll)",
"Bash(\"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/dumpbin.exe\" //EXPORTS ANSMOT.dll)",
"Bash(for dll:*)",
"Bash(do echo:*)",
"Bash(\"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/dumpbin.exe\" //IMPORTS \"$dll\")",
"Bash(done)",
"Bash(where ANSLicensingSystem.dll)",
"Read(//c/Windows/**)",
"Bash(find C:/Projects/CLionProjects/ANSCustomModels/cmake-build-release -name *.dll)",
"Bash(\"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/dumpbin.exe\" //HEADERS ANSMOT.dll)",
"Bash(\"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/dumpbin.exe\" //HEADERS ANSLicensingSystem.dll)",
"Bash(python -c \"import ctypes; h = ctypes.WinDLL\\(''./ANSMOT.dll''\\); print\\(''LOADED OK''\\)\")",
"Bash(\"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/dumpbin.exe\" //DEPENDENTS ANSLIB.dll)",
"Bash(\"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/dumpbin.exe\" //DEPENDENTS ANSCustomFireNSmokeDetection.dll)",
"Bash(\"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/dumpbin.exe\" //DEPENDENTS ANSLibsLoader.dll)",
"Bash(ls -la \"C:/Projects/CLionProjects/ANSCustomModels/cmake-build-release/bin/\"*.dll)",
"Bash(\"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/dumpbin.exe\" //DEPENDENTS FireNSmokeDetection_Demo.exe)",
"Bash(echo $PATH)",
"Bash(tr ';' '\\\\n')",
"Bash(ls -la \"C:/ProgramData/ANSCENTER/DLHUB_Runtime_Engine/\"*.dll)",
"Bash(cp \"C:/ProgramData/ANSCENTER/Shared/ANSLicensingSystem.dll\" \"C:/ProgramData/ANSCENTER/DLHUB_Runtime_Engine/ANSLicensingSystem.dll\")",
"Bash(cp \"C:/ProgramData/ANSCENTER/Shared/anslicensing.dll\" \"C:/ProgramData/ANSCENTER/DLHUB_Runtime_Engine/anslicensing.dll\")",
"Bash(cmake --build cmake-build-release --target ANSCustomFireNSmokeDetection)",
"Bash(cmd.exe /c \"call \\\\\"C:\\\\\\\\Program Files\\\\\\\\Microsoft Visual Studio\\\\\\\\2022\\\\\\\\Community\\\\\\\\VC\\\\\\\\Auxiliary\\\\\\\\Build\\\\\\\\vcvars64.bat\\\\\" >nul 2>&1 && cmake --build cmake-build-release --target ANSCustomFireNSmokeDetection\")",
"Bash(cmd.exe //c \"call \\\\\"C:\\\\Program Files\\\\Microsoft Visual Studio\\\\2022\\\\Community\\\\VC\\\\Auxiliary\\\\Build\\\\vcvars64.bat\\\\\" >nul && cmake --build cmake-build-release --target ANSCustomFireNSmokeDetection 2>&1\")",
"Bash(cmd.exe /c C:/Projects/CLionProjects/ANSCustomModels/_build_fns.bat)",
"Bash(cmd.exe /c 'C:\\\\Projects\\\\CLionProjects\\\\ANSCustomModels\\\\_build_fns.bat')",
"Bash(/c/Projects/CLionProjects/ANSCustomModels/_build_fns.bat)",
"PowerShell($dll = \"C:\\\\ProgramData\\\\ANSCENTER\\\\Shared\\\\ANSLibsLoader.dll\"; if \\(Test-Path $dll\\) { Get-Item $dll | Select-Object Name, Length, LastWriteTime, VersionInfo | Format-List } else { \"DLL not found at $dll\" })",
"PowerShell($bytes = [System.IO.File]::ReadAllBytes\\(\"C:\\\\ProgramData\\\\ANSCENTER\\\\Shared\\\\ANSLibsLoader.dll\"\\); $text = [System.Text.Encoding]::ASCII.GetString\\($bytes\\); if \\($text -match \"ANSCENTER_DebugLog\"\\) { \"FOUND: ANSCENTER_DebugLog symbol present in DLL\" } else { \"MISSING: ANSCENTER_DebugLog NOT present in DLL\" }; if \\($text -match \"ANSCENTER_IsDebugViewEnabled\"\\) { \"FOUND: ANSCENTER_IsDebugViewEnabled symbol present\" } else { \"MISSING: ANSCENTER_IsDebugViewEnabled NOT present\" })",
"PowerShell($bytes = [System.IO.File]::ReadAllBytes\\(\"C:\\\\ProgramData\\\\ANSCENTER\\\\Shared\\\\ANSLIB.dll\"\\); $text = [System.Text.Encoding]::ASCII.GetString\\($bytes\\); $matches = [regex]::Matches\\($text, \"ANSCENTER_[A-Za-z]+\"\\); $matches | ForEach-Object { $_.Value } | Sort-Object -Unique)",
"Bash(cmake --build C:/Projects/CLionProjects/ANSCustomModels/cmake-build-release --target FireNSmokeDetection_Demo --config Release)",
"Bash(where cmake *)",
"Bash(grep -i \"CMAKE_MAKE_PROGRAM:\" cmake-build-release/CMakeCache.txt 2>/dev/null; echo \"---\"; ls \"C:/Program Files/JetBrains/\" 2>/dev/null | head; echo \"---ninja search---\"; find \"C:/Program Files/JetBrains\" -name \"ninja.exe\" 2>/dev/null | head -3)",
"Read(//c/Program Files/Microsoft Visual Studio/2022/**)",
"Read(//c/Users/nghia/AppData/Local/Programs/CLion 2026.1/bin/ninja/win/x64/**)",
"Bash(cmd.exe /c '\"C:\\\\Program Files\\\\Microsoft Visual Studio\\\\2022\\\\Community\\\\VC\\\\Auxiliary\\\\Build\\\\vcvars64.bat\" && cmake -G Ninja -S . -B cmake-build-release -DCMAKE_BUILD_TYPE=Release \"-DCMAKE_MAKE_PROGRAM=C:/Program Files/JetBrains/CLion 2026.1.3/bin/ninja/win/x64/ninja.exe\"')",
"Bash(cmd.exe /c build.bat)",
"Bash(cmd.exe /c \"build.bat > build.log 2>&1\")",
"Bash(echo \"exit=$?\")",
"PowerShell(cmd.exe /c build.bat 2>&1)",
"Read(//c/ProgramData/ANSCENTER/Shared/**)",
"Bash(echo \"--- search ANSLIB.h anywhere on C: \\(limited\\) ---\"; find /c/ProgramData/ANSCENTER /c/ANSLibs /c/Projects -iname \"ANSLIB.h\" 2>/dev/null; echo \"--- other ANS headers in Shared? ---\"; ls /c/ProgramData/ANSCENTER/Shared/*.h 2>/dev/null || echo \"no .h in Shared\"; echo \"--- repo .h files referencing ANSLIB ---\"; grep -rl \"ANSLIB.h\" --include=*.h --include=*.cpp . 2>/dev/null)",
"PowerShell($env:PATH = \"C:\\\\ProgramData\\\\ANSCENTER\\\\Shared;C:\\\\ANSLibs\\\\opencv\\\\bin;\" + $env:PATH; & \"C:\\\\Projects\\\\CLionProjects\\\\ANSCustomModels\\\\cmake-build-release\\\\bin\\\\FireNSmokeDetection_Tests.exe\" 2>&1 | Select-Object -Last 50; Write-Output \"EXIT=$LASTEXITCODE\")",
"PowerShell(cmd.exe /c '\"C:\\\\Program Files\\\\Microsoft Visual Studio\\\\2022\\\\Community\\\\VC\\\\Auxiliary\\\\Build\\\\vcvars64.bat\" && cmake --build C:\\\\Projects\\\\CLionProjects\\\\ANSCustomModels\\\\cmake-build-release' 2>&1 | Select-String -Pattern \"error|FAILED|ninja:\" | Select-Object -Last 20; Write-Output \"=== build done ===\"; $env:PATH = \"C:\\\\ProgramData\\\\ANSCENTER\\\\Shared;C:\\\\ANSLibs\\\\opencv\\\\bin;\" + $env:PATH; & \"C:\\\\Projects\\\\CLionProjects\\\\ANSCustomModels\\\\cmake-build-release\\\\bin\\\\FireNSmokeDetection_Tests.exe\" 2>&1 | Select-String -Pattern \"PASSED|FAILED|SKIPPED\" | Select-Object -Last 10)",
"Bash(git -C C:/Projects/CLionProjects/ANSCustomModels status --short)",
"Bash(echo \"--- model dir ---\"; ls \"/c/Projects/ANSVIS/Models/ANS_FireSmoke_v2.0\" 2>/dev/null || echo \"MODEL DIR MISSING\"; echo \"--- existing custom DLL there? ---\"; ls -la --time-style=+%Y-%m-%d_%H:%M \"/c/Projects/ANSVIS/Models/ANS_FireSmoke_v2.0/ANSCustomFireNSmokeDetection.dll\" 2>/dev/null || echo \"no custom dll in model dir yet\"; echo \"--- video \\(C:\\) ---\"; ls -la \"/c/Programs/DemoAssets/Videos/FireNSmoke/ANSFireFull.mp4\" 2>/dev/null || echo \"C: video missing\"; echo \"--- video \\(E:\\) ---\"; ls -la \"/e/Programs/DemoAssets/Videos/FireNSmoke/ANSFireFull.mp4\" 2>/dev/null || echo \"E: video missing\")",
"Bash(git checkout *)",
"PowerShell(Copy-Item \"C:\\\\Projects\\\\CLionProjects\\\\ANSCustomModels\\\\cmake-build-release\\\\bin\\\\ANSCustomFireNSmokeDetection.dll\" \"C:\\\\Projects\\\\ANSVIS\\\\Models\\\\ANS_FireSmoke_v2.0\\\\ANSCustomFireNSmokeDetection.dll\" -Force; Write-Output \"copied. model-folder DLL now:\"; \\(Get-Item \"C:\\\\Projects\\\\ANSVIS\\\\Models\\\\ANS_FireSmoke_v2.0\\\\ANSCustomFireNSmokeDetection.dll\"\\).LastWriteTime)",
"Bash(cd \"/c/Projects/ANSVIS/Models/ANS_FireSmoke_v2.0\"; echo \"=== before ===\"; ls -la --time-style=+%H:%M:%S | grep -iE \"\\\\.engine|\\\\.trt\"; echo \"=== deleting .engine caches ===\"; rm -f *.engine.* && echo \"deleted\"; echo \"=== after ===\"; ls -la | grep -iE \"\\\\.engine|\\\\.trt\" || echo \"\\(no engine cache files remain — will rebuild from onnx\\)\")",
"PowerShell(\"=== GPU compute processes ===\"; & \"C:\\\\Windows\\\\System32\\\\nvidia-smi.exe\" --query-compute-apps=pid,process_name,used_memory --format=csv 2>&1; \"=== ANS / ANSVIS / related processes ===\"; Get-Process | Where-Object { $_.ProcessName -match \"ANSVIS|ANS|ansdn|annhub|fire|FireN\" } | Select-Object Id,ProcessName,StartTime | Format-Table -AutoSize; \"=== current time ===\"; Get-Date)",
"PowerShell($smi = \"C:\\\\Windows\\\\System32\\\\nvidia-smi.exe\"; \"=== Driver / CUDA / Compute Mode / Memory ===\"; & $smi --query-gpu=name,driver_version,compute_mode,memory.total,memory.used,memory.free --format=csv; \"`n=== Per-process GPU memory ===\"; & $smi --query-compute-apps=pid,process_name,used_memory --format=csv; \"`n=== Compute mode detail ===\"; & $smi -q -d COMPUTE 2>&1 | Select-String -Pattern \"Compute Mode|MIG\")"
]
}
}