patchwarden 0.6.1 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/PatchWarden-Control-Tray.cmd +11 -0
  2. package/PatchWarden-Control.cmd +6 -0
  3. package/PatchWarden-Desktop.cmd +5 -0
  4. package/PatchWarden.cmd +1 -1
  5. package/README.en.md +106 -18
  6. package/README.md +30 -19
  7. package/Restart-PatchWarden-Control.cmd +6 -0
  8. package/Stop-PatchWarden.cmd +11 -0
  9. package/dist/controlCenter.d.ts +14 -0
  10. package/dist/controlCenter.js +2002 -0
  11. package/dist/doctor.js +3 -3
  12. package/dist/version.d.ts +1 -1
  13. package/dist/version.js +1 -1
  14. package/docs/control-center/README.md +33 -0
  15. package/docs/control-center/control-center-daily-driver.md +211 -0
  16. package/docs/control-center/control-center-mvp.md +205 -0
  17. package/docs/control-center/control-center-phase2.md +159 -0
  18. package/docs/demo.md +3 -0
  19. package/docs/release-v0.6.4.md +45 -0
  20. package/examples/openai-tunnel/README.md +5 -5
  21. package/examples/openai-tunnel/tunnel-client.example.yaml +3 -3
  22. package/package.json +23 -15
  23. package/scripts/README.md +47 -0
  24. package/scripts/{brand-check.js → checks/brand-check.js} +2 -2
  25. package/scripts/checks/control-center-smoke.js +1098 -0
  26. package/scripts/{control-smoke.js → checks/control-smoke.js} +17 -3
  27. package/scripts/{doctor-smoke.js → checks/doctor-smoke.js} +1 -1
  28. package/scripts/{http-mcp-smoke.js → checks/http-mcp-smoke.js} +2 -2
  29. package/scripts/{lifecycle-smoke.js → checks/lifecycle-smoke.js} +12 -12
  30. package/scripts/{mcp-manifest-check.js → checks/mcp-manifest-check.js} +2 -2
  31. package/scripts/{mcp-smoke.js → checks/mcp-smoke.js} +4 -2
  32. package/scripts/{package-manifest-check.js → checks/package-manifest-check.js} +2 -1
  33. package/scripts/{tunnel-supervisor-smoke.js → checks/tunnel-supervisor-smoke.js} +2 -2
  34. package/scripts/{unit-tests.js → checks/unit-tests.js} +1 -1
  35. package/scripts/{watcher-supervisor-smoke.js → checks/watcher-supervisor-smoke.js} +11 -5
  36. package/scripts/control/control-center-tray.ps1 +281 -0
  37. package/scripts/{get-patchwarden-health.ps1 → control/get-patchwarden-health.ps1} +3 -3
  38. package/scripts/{manage-patchwarden.ps1 → control/manage-patchwarden.ps1} +30 -4
  39. package/scripts/control/restart-control-center.ps1 +173 -0
  40. package/scripts/{restart-patchwarden.ps1 → control/restart-patchwarden.ps1} +1 -1
  41. package/scripts/control/start-control-center.ps1 +263 -0
  42. package/scripts/{start-patchwarden-tunnel.ps1 → control/start-patchwarden-tunnel.ps1} +48 -6
  43. package/scripts/control/stop-patchwarden.ps1 +114 -0
  44. package/scripts/launchers/Check-PatchWarden-Health.cmd +1 -1
  45. package/scripts/launchers/Reset-PatchWarden-Tunnel-Key.cmd +1 -1
  46. package/scripts/launchers/Restart-PatchWarden.cmd +1 -1
  47. package/scripts/launchers/Start-PatchWarden-Direct-Tunnel.cmd +1 -1
  48. package/scripts/launchers/Start-PatchWarden-Tunnel.cmd +1 -1
  49. package/scripts/{patchwarden-mcp-direct.cmd → mcp/patchwarden-mcp-direct.cmd} +1 -1
  50. package/scripts/{patchwarden-mcp-stdio.cmd → mcp/patchwarden-mcp-stdio.cmd} +1 -1
  51. package/scripts/{pack-clean.js → release/pack-clean.js} +9 -1
  52. package/src/controlCenter.ts +2152 -0
  53. package/src/doctor.ts +4 -4
  54. package/src/version.ts +1 -1
  55. package/ui/colors_and_type.css +141 -0
  56. package/ui/pages/audit.html +743 -0
  57. package/ui/pages/dashboard.html +1154 -0
  58. package/ui/pages/direct-sessions.html +652 -0
  59. package/ui/pages/logs.html +502 -0
  60. package/ui/pages/task-detail.html +1229 -0
  61. package/ui/pages/tasks.html +702 -0
  62. package/ui/pages/workspace.html +947 -0
  63. package/ui/partials/project-shell.html +362 -0
  64. package/ui/vendor/lucide.js +12 -0
  65. package/ui/vendor/tailwindcss-browser.js +947 -0
@@ -1,6 +1,6 @@
1
1
  @echo off
2
2
  setlocal
3
3
  cd /d "%~dp0..\.."
4
- powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0..\manage-patchwarden.ps1" restart core
4
+ powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0..\control\manage-patchwarden.ps1" restart core
5
5
  echo.
6
6
  pause
@@ -1,7 +1,7 @@
1
1
  @echo off
2
2
  setlocal
3
3
  cd /d "%~dp0..\.."
4
- powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0..\start-patchwarden-tunnel.ps1" -ToolProfile chatgpt_direct -Profile patchwarden-direct -HealthListenAddr 127.0.0.1:8081 -SkipWatcher
4
+ powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0..\control\start-patchwarden-tunnel.ps1" -ToolProfile chatgpt_direct -Profile patchwarden-direct -HealthListenAddr 127.0.0.1:8081 -SkipWatcher
5
5
  echo.
6
6
  echo PatchWarden Direct tunnel launcher exited.
7
7
  pause
@@ -1,7 +1,7 @@
1
1
  @echo off
2
2
  setlocal
3
3
  cd /d "%~dp0..\.."
4
- powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0..\start-patchwarden-tunnel.ps1" -ToolProfile chatgpt_core -Profile patchwarden -HealthListenAddr 127.0.0.1:8080
4
+ powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0..\control\start-patchwarden-tunnel.ps1" -ToolProfile chatgpt_core -Profile patchwarden -HealthListenAddr 127.0.0.1:8080
5
5
  echo.
6
6
  echo PatchWarden Core tunnel launcher exited.
7
7
  pause
@@ -1,6 +1,6 @@
1
1
  @echo off
2
2
  setlocal
3
- set "PROJECT_ROOT=%~dp0.."
3
+ set "PROJECT_ROOT=%~dp0..\.."
4
4
  if not defined PATCHWARDEN_CONFIG set "PATCHWARDEN_CONFIG=%PROJECT_ROOT%\patchwarden.config.json"
5
5
  set "PATCHWARDEN_TOOL_PROFILE=chatgpt_direct"
6
6
  cd /d "%PROJECT_ROOT%"
@@ -1,6 +1,6 @@
1
1
  @echo off
2
2
  setlocal
3
- set "PROJECT_ROOT=%~dp0.."
3
+ set "PROJECT_ROOT=%~dp0..\.."
4
4
  if not defined PATCHWARDEN_CONFIG set "PATCHWARDEN_CONFIG=%PROJECT_ROOT%\patchwarden.config.json"
5
5
  set "PATCHWARDEN_TOOL_PROFILE=chatgpt_core"
6
6
  cd /d "%PROJECT_ROOT%"
@@ -15,7 +15,7 @@ import { join, relative, resolve } from "node:path";
15
15
  import { fileURLToPath } from "node:url";
16
16
 
17
17
  const scriptDir = resolve(fileURLToPath(new URL(".", import.meta.url)));
18
- const root = resolve(scriptDir, "..");
18
+ const root = resolve(scriptDir, "..", "..");
19
19
  const releaseDir = resolve(root, "release");
20
20
  const archivePath = resolve(root, "patchwarden-release.tar.gz");
21
21
 
@@ -29,7 +29,13 @@ const include = [
29
29
  "examples",
30
30
  "scripts",
31
31
  "src",
32
+ "ui",
32
33
  "PatchWarden.cmd",
34
+ "PatchWarden-Control.cmd",
35
+ "PatchWarden-Control-Tray.cmd",
36
+ "PatchWarden-Desktop.cmd",
37
+ "Restart-PatchWarden-Control.cmd",
38
+ "Stop-PatchWarden.cmd",
33
39
  ".gitignore",
34
40
  "LICENSE",
35
41
  "README.md",
@@ -42,6 +48,8 @@ const forbidden = [
42
48
  /(^|[\\/])node_modules([\\/]|$)/,
43
49
  /(^|[\\/])\.patchwarden([\\/]|$)/,
44
50
  /(^|[\\/])\.safe-bifrost([\\/]|$)/,
51
+ /(^|[\\/])\.local([\\/]|$)/,
52
+ /(^|[\\/])\.tmp([\\/]|$)/,
45
53
  /(^|[\\/])patchwarden\.config\.json$/,
46
54
  /(^|[\\/])safe-bifrost\.config\.json$/,
47
55
  /\.local\.(cmd|ps1)$/i,