From 320f816100754eca53cec2877418956ecf958196 Mon Sep 17 00:00:00 2001 From: Samuel James Date: Tue, 23 Jun 2026 22:58:09 +0000 Subject: [PATCH] Add auto-start SSH tunnel hook (#2) --- .kiro/hooks/start-forgejo-tunnel.kiro.hook | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .kiro/hooks/start-forgejo-tunnel.kiro.hook diff --git a/.kiro/hooks/start-forgejo-tunnel.kiro.hook b/.kiro/hooks/start-forgejo-tunnel.kiro.hook new file mode 100644 index 0000000..0447d32 --- /dev/null +++ b/.kiro/hooks/start-forgejo-tunnel.kiro.hook @@ -0,0 +1,14 @@ +{ + "enabled": true, + "name": "Start Forgejo Tunnel", + "description": "Starts the SSH tunnel to Forgejo (localhost:3000 → 192.168.122.102:3000) when a prompt is submitted, ensuring the Forgejo extension and Git operations work.", + "version": "1", + "when": { + "type": "promptSubmit" + }, + "then": { + "type": "runCommand", + "command": "powershell -Command \"if (-not (Test-NetConnection -ComputerName localhost -Port 3000 -InformationLevel Quiet -WarningAction SilentlyContinue)) { Start-Process ssh -ArgumentList '-N','forgejo-tunnel' -WindowStyle Hidden }\"", + "timeout": 10 + } +} \ No newline at end of file