From 0990385b893e1a60ffcfedbbfde9a0fe74880820 Mon Sep 17 00:00:00 2001 From: posimai Date: Mon, 20 Apr 2026 20:48:28 +0900 Subject: [PATCH] =?UTF-8?q?feat(pc-audit):=20=E3=83=80=E3=83=96=E3=83=AB?= =?UTF-8?q?=E3=82=AF=E3=83=AA=E3=83=83=E3=82=AF=E5=AE=9F=E8=A1=8C=E3=83=90?= =?UTF-8?q?=E3=83=83=E3=83=81=E8=BF=BD=E5=8A=A0=E3=80=81viewer=20=E3=81=AE?= =?UTF-8?q?=E3=83=91=E3=82=B9=E8=A1=A8=E7=A4=BA=E6=94=B9=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/pc-audit/report-viewer.html | 351 +++++++++++++++++++++++++++++ tools/pc-audit/run-audit-share.bat | 31 +++ tools/pc-audit/run-audit.bat | 29 +++ 3 files changed, 411 insertions(+) create mode 100644 tools/pc-audit/report-viewer.html create mode 100644 tools/pc-audit/run-audit-share.bat create mode 100644 tools/pc-audit/run-audit.bat diff --git a/tools/pc-audit/report-viewer.html b/tools/pc-audit/report-viewer.html new file mode 100644 index 00000000..d6149d75 --- /dev/null +++ b/tools/pc-audit/report-viewer.html @@ -0,0 +1,351 @@ + + + + + + PC audit viewer(ローカル専用) + + + +

PC audit viewer

+

この HTML はブラウザ内だけで動きます。ファイルを選ぶまで外部にデータは送りません。Web 公開はしていません。

+ +
+ +

+ 場所: tools\pc-audit\out\latest.json +  (run-audit.bat を実行した後に作られます) +

+ +
+ + +
+
+
+
+ 生データ(JSON 全体) +

+  
+ + + + diff --git a/tools/pc-audit/run-audit-share.bat b/tools/pc-audit/run-audit-share.bat new file mode 100644 index 00000000..b4127abc --- /dev/null +++ b/tools/pc-audit/run-audit-share.bat @@ -0,0 +1,31 @@ +@echo off +chcp 65001 > nul +echo. +echo =========================== +echo Posimai PC Audit (共有用) +echo .claude のパスは匿名化されます +echo =========================== +echo. + +cd /d "%~dp0..\..\" + +echo [1/2] 監査を実行しています(ShareSafe モード)... +call npm run audit:pc:share +if errorlevel 1 ( + echo. + echo 監査の実行に失敗しました。 + pause + exit /b 1 +) + +echo. +echo [2/2] レポートをブラウザで開きます... +start "" "%~dp0report-viewer.html" + +echo. +echo 完了しました。 +echo ブラウザで report-viewer.html が開いたら、 +echo ファイル選択で「out\latest.json」を選んでください。 +echo このレポートは社内 IT やエンジニアに共有できます。 +echo. +pause diff --git a/tools/pc-audit/run-audit.bat b/tools/pc-audit/run-audit.bat new file mode 100644 index 00000000..7ec627ef --- /dev/null +++ b/tools/pc-audit/run-audit.bat @@ -0,0 +1,29 @@ +@echo off +chcp 65001 > nul +echo. +echo =========================== +echo Posimai PC Audit +echo =========================== +echo. + +cd /d "%~dp0..\..\" + +echo [1/2] 監査を実行しています... +call npm run audit:pc +if errorlevel 1 ( + echo. + echo 監査の実行に失敗しました。 + pause + exit /b 1 +) + +echo. +echo [2/2] レポートをブラウザで開きます... +start "" "%~dp0report-viewer.html" + +echo. +echo 完了しました。 +echo ブラウザで report-viewer.html が開いたら、 +echo ファイル選択で「out\latest.json」を選んでください。 +echo. +pause