Commit graph

11 commits

Author SHA1 Message Date
admin
78e316af64 refactor: move Go source into source/ directory
- source/cmd/wallarm/main.go — binary entrypoint
- source/internal/ — all packages
- source/go.mod, source/go.sum
- deploy.sh builds from source/ subdirectory
- Clean separation: source code vs deployment configs
2026-08-01 15:33:17 +00:00
admin
ed9655ee79 fix: move deploy form out of TUI into plain terminal
Bubbletea and huh cannot coexist in the same process.  Fixed by:
- TUI handles only display: deploy choice + dashboard
- Deploy wizard runs as plain terminal prompts in main.go
- No more terminal conflicts, keys work correctly
- Same flow: wallarm → choice → form → deploy → state saved
2026-08-01 15:12:42 +00:00
admin
e378c2a436 fix: remove alt screen to prevent huh/bubbletea terminal conflict
tea.WithAltScreen() caused the alternate buffer to conflict with
huh form rendering.  Using normal screen lets huh render inline.
Also reverted broken tea.Suspend/tea.Resume (not valid commands).
2026-08-01 15:08:25 +00:00
admin
f5ddb145cb fix: prevent recursive form launch — set deploying before huh runs
m.deploying is now set synchronously before the goroutine starts,
preventing bubbletea from re-capturing number keys meant for the
huh form.  Removed duplicate '1' key handler from wizard view.
2026-08-01 15:06:33 +00:00
admin
a6e12d54cc fix: numbered cloud region options [1] US [2] EU for quick selection 2026-08-01 15:04:11 +00:00
admin
91add96b7d fix: Enter key now triggers deploy form from wizard view 2026-08-01 15:03:36 +00:00
admin
8b610b1bdb fix: tunnel credentials now use plain terminal prompts
Bubbletea and huh were fighting over terminal input. Fixed by:
- TUI exits when user selects 'Remote Assistance'
- Plain terminal prompts in main.go collect jumphost URL, user, pass
- Starts tunnel directly, shows connection string for admin
- No more conflicting rendering between TUI and forms
2026-08-01 14:54:08 +00:00
admin
c169887fed feat: remote assistance — deploy locally or open tunnel for admin
Startup flow now offers:
- [1] Deploy locally — config wizard, deploys on this server
- [2] Remote assistance — prompts for jumphost URL, user, password
  (or SSH key path), opens reverse TLS:443 tunnel so a remote admin
  can connect and run deployment through their terminal.

Tunnel now supports password auth in addition to key auth.
2026-08-01 14:47:49 +00:00
admin
ff5a09b994 refactor: drop Docker, single-binary native-only world
Removed:
- docker/ (scripts, binaries, images) - no longer needed
- native/, common/ bash scripts - replaced by Go binary
- setup.sh - replaced by deploy.sh
- internal/docker/ Go package - no longer needed

Added:
- deploy.sh - one-command bootstrap
- --version flag

Result: one binary, one TUI, one deployment type. Zero Docker.
Binary distributed via Gitea releases (not in repo).
2026-08-01 14:31:25 +00:00
admin
1a11e40c66 feat: wired TUI form to deployment — wizard actually deploys now
- Wizard: type pick → cloud region → token → node config → deploys via native.InstallNode / docker.DeployContainer
- State saved after successful deployment with API token
- Dashboard reflects real node state from ~/.wallarm/state.json
- Removed old unused HuhForm stub
2026-08-01 13:59:25 +00:00
admin
dfd7180556 feat: bubbletea TUI — wizard + dashboard
- Wizard: type pick → cloud region → token → node config (huh forms)
- Dashboard: node list with status, action shortcuts
- Auto-routes based on ~/.wallarm/state.json existence
- Replaces text stubs with proper interactive TUI
2026-08-01 13:16:08 +00:00