feat: add task start/stop for tmux-managed hyperguild session
This commit is contained in:
19
Taskfile.yml
19
Taskfile.yml
@@ -74,6 +74,25 @@ tasks:
|
|||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' | jq .
|
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' | jq .
|
||||||
|
|
||||||
|
start:
|
||||||
|
desc: Start the full hyperguild (ingestion + supervisor) in a tmux session
|
||||||
|
cmds:
|
||||||
|
- |
|
||||||
|
tmux new-session -d -s hyperguild -x 220 -y 50 2>/dev/null || true
|
||||||
|
tmux rename-window -t hyperguild:0 'ingestion'
|
||||||
|
tmux send-keys -t hyperguild:ingestion "cd {{.ROOT_DIR}} && INGEST_BRAIN_DIR={{.ROOT_DIR}}/brain INGEST_PORT=3300 go run ./ingestion/cmd/server/" Enter
|
||||||
|
tmux new-window -t hyperguild -n 'supervisor'
|
||||||
|
tmux send-keys -t hyperguild:supervisor "cd {{.ROOT_DIR}} && SUPERVISOR_CONFIG_DIR={{.ROOT_DIR}}/config/supervisor SUPERVISOR_MODELS_FILE={{.ROOT_DIR}}/config/models.yaml SUPERVISOR_SESSIONS_DIR={{.ROOT_DIR}}/brain/sessions INGEST_BASE_URL=http://localhost:3300 go run ./cmd/supervisor/" Enter
|
||||||
|
tmux new-window -t hyperguild -n 'shell'
|
||||||
|
tmux select-window -t hyperguild:shell
|
||||||
|
tmux attach -t hyperguild
|
||||||
|
|
||||||
|
stop:
|
||||||
|
desc: Stop the hyperguild tmux session
|
||||||
|
cmds:
|
||||||
|
- tmux kill-session -t hyperguild 2>/dev/null || true
|
||||||
|
- echo "hyperguild stopped"
|
||||||
|
|
||||||
ingestion:build:
|
ingestion:build:
|
||||||
desc: Build ingestion server binary
|
desc: Build ingestion server binary
|
||||||
cmds:
|
cmds:
|
||||||
|
|||||||
Reference in New Issue
Block a user