gastown-gui 0.9.0 → 0.9.1

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.
package/README.md CHANGED
@@ -232,14 +232,14 @@ npm run test:watch
232
232
 
233
233
  | Feature | Status |
234
234
  |---------|--------|
235
- | Polecat spawn/kill/logs | ❌ CLI only |
236
235
  | Agent configuration UI | ❌ Not implemented |
237
- | Rig deletion | ❌ Not implemented |
238
236
 
239
- ### Recently Implemented
237
+ ### Implemented Features
240
238
 
241
239
  | Feature | Status |
242
240
  |---------|--------|
241
+ | Polecat spawn/stop/restart | ✅ UI in Rig list |
242
+ | Rig deletion | ✅ Remove button in Rig list |
243
243
  | Crew management | ✅ Create/list/view |
244
244
  | Formula operations | ✅ Create/list/use |
245
245
  | Test coverage | ✅ 206 tests passing |
@@ -266,9 +266,10 @@ Contributions welcome!
266
266
  1. Fork the repository
267
267
  2. Create a feature branch
268
268
  3. Make your changes
269
- 4. Test locally (start server with `npm start`, verify in browser)
270
- 5. Run automated tests: `npm test` (206 tests must pass)
271
- 6. Submit a pull request
269
+ 4. **Update `CLAUDE.md`** if you add, rename, or delete files
270
+ 5. Test locally (start server with `npm start`, verify in browser)
271
+ 6. Run automated tests: `npm test` (206 tests must pass)
272
+ 7. Submit a pull request
272
273
 
273
274
  ### Looking for Maintainers
274
275
 
package/js/app.js CHANGED
@@ -397,8 +397,8 @@ async function loadInitialData() {
397
397
  preloadBackgroundData();
398
398
  } catch (err) {
399
399
  console.error('[App] Failed to load initial data:', err);
400
- elements.statusMessage.textContent = 'Error loading data';
401
- showToast('Failed to load data', 'error');
400
+ elements.statusMessage.textContent = 'Cannot connect to server';
401
+ showToast('Cannot connect - is the server running? Check terminal for the correct URL.', 'error', 10000);
402
402
  }
403
403
  }
404
404
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gastown-gui",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Web GUI for Gas Town multi-agent orchestrator - A companion interface for steveyegge/gastown",
5
5
  "type": "module",
6
6
  "main": "server.js",
package/start.sh DELETED
@@ -1,84 +0,0 @@
1
- #!/bin/bash
2
- # Gas Town - Unified Startup Script
3
- # Starts both the Go agents and the Node GUI server
4
-
5
- set -e
6
-
7
- SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8
- GT_DIR="$(dirname "$SCRIPT_DIR")"
9
- GT_ROOT="${GT_ROOT:-$HOME/gt}"
10
- PORT="${PORT:-4444}"
11
-
12
- # Colors
13
- GREEN='\033[0;32m'
14
- BLUE='\033[0;34m'
15
- YELLOW='\033[1;33m'
16
- NC='\033[0m' # No Color
17
-
18
- echo -e "${BLUE}╔═══════════════════════════════════════╗${NC}"
19
- echo -e "${BLUE}║ Gas Town - Starting Up ║${NC}"
20
- echo -e "${BLUE}╚═══════════════════════════════════════╝${NC}"
21
- echo ""
22
-
23
- # Check if gt binary exists
24
- if [ ! -f "$GT_DIR/gt" ]; then
25
- echo -e "${YELLOW}Building gt binary...${NC}"
26
- cd "$GT_DIR" && go build -o gt ./cmd/gt
27
- fi
28
-
29
- # Ensure bd is in PATH
30
- export PATH="$HOME/.local/bin:$PATH"
31
-
32
- # Check if bd exists
33
- if ! command -v bd &> /dev/null; then
34
- echo -e "${YELLOW}Warning: 'bd' (beads) not found in PATH${NC}"
35
- echo "Some features may not work. Install from: https://github.com/steveyegge/beads"
36
- fi
37
-
38
- # Initialize beads if needed
39
- if [ ! -d "$GT_ROOT/.beads" ]; then
40
- echo -e "${YELLOW}Initializing beads database...${NC}"
41
- cd "$GT_ROOT" && bd init 2>/dev/null || true
42
- fi
43
-
44
- # Start Gas Town agents (Mayor & Deacon)
45
- echo -e "${GREEN}Starting Gas Town agents...${NC}"
46
- cd "$GT_ROOT"
47
- "$GT_DIR/gt" start 2>/dev/null &
48
- GT_PID=$!
49
- sleep 2
50
-
51
- # Check if agents started
52
- if kill -0 $GT_PID 2>/dev/null; then
53
- echo -e "${GREEN}✓ Agents started (PID: $GT_PID)${NC}"
54
- else
55
- echo -e "${YELLOW}⚠ Agents may have started in background sessions${NC}"
56
- fi
57
-
58
- # Start Node GUI server
59
- echo -e "${GREEN}Starting GUI server on port $PORT...${NC}"
60
- cd "$SCRIPT_DIR"
61
- GT_ROOT="$GT_ROOT" PORT="$PORT" node server.js &
62
- NODE_PID=$!
63
- sleep 2
64
-
65
- # Check if server started
66
- if curl -s "http://localhost:$PORT/api/status" > /dev/null 2>&1; then
67
- echo -e "${GREEN}✓ GUI server running at http://localhost:$PORT${NC}"
68
- else
69
- echo -e "${YELLOW}⚠ GUI server may still be starting...${NC}"
70
- fi
71
-
72
- echo ""
73
- echo -e "${BLUE}═══════════════════════════════════════${NC}"
74
- echo -e "${GREEN}Gas Town is running!${NC}"
75
- echo ""
76
- echo " GUI: http://localhost:$PORT"
77
- echo " Agents: Mayor, Deacon"
78
- echo ""
79
- echo " To stop: $GT_DIR/gt shutdown && kill $NODE_PID"
80
- echo -e "${BLUE}═══════════════════════════════════════${NC}"
81
- echo ""
82
-
83
- # Wait for either process to exit
84
- wait $NODE_PID