arkaos 2.4.0 → 2.4.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/VERSION CHANGED
@@ -1 +1 @@
1
- 2.4.0
1
+ 2.4.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arkaos",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "The Operating System for AI Agent Teams",
5
5
  "type": "module",
6
6
  "bin": {
package/pyproject.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "arkaos-core"
3
- version = "2.4.0"
3
+ version = "2.4.1"
4
4
  description = "Core engine for ArkaOS — The Operating System for AI Agent Teams"
5
5
  readme = "README.md"
6
6
  license = {text = "MIT"}
@@ -36,17 +36,33 @@ echo " ArkaOS Dashboard"
36
36
  echo " ─────────────────"
37
37
 
38
38
  # ── Start FastAPI backend ──
39
+ API_LOG="$HOME/.arkaos/api.log"
39
40
  echo " Starting API on :${API_PORT}..."
40
- ARKAOS_ROOT="$ARKAOS_ROOT" python3 "${ARKAOS_ROOT}/scripts/dashboard-api.py" --port "$API_PORT" >/dev/null 2>&1 &
41
+ ARKAOS_ROOT="$ARKAOS_ROOT" python3 "${ARKAOS_ROOT}/scripts/dashboard-api.py" --port "$API_PORT" > "$API_LOG" 2>&1 &
41
42
  API_PID=$!
42
- sleep 2
43
43
 
44
- # Verify API started
45
- if ! kill -0 "$API_PID" 2>/dev/null; then
46
- echo " ✗ API failed to start"
47
- exit 1
44
+ # Wait for API with health check (up to 10 seconds)
45
+ API_READY=false
46
+ for i in $(seq 1 20); do
47
+ sleep 0.5
48
+ if ! kill -0 "$API_PID" 2>/dev/null; then
49
+ break
50
+ fi
51
+ if curl -s "http://localhost:${API_PORT}/api/overview" >/dev/null 2>&1; then
52
+ API_READY=true
53
+ break
54
+ fi
55
+ done
56
+
57
+ if [ "$API_READY" = true ]; then
58
+ echo " ✓ API: http://localhost:${API_PORT}"
59
+ else
60
+ echo " ⚠ API may still be starting (check log: $API_LOG)"
61
+ if [ -f "$API_LOG" ]; then
62
+ echo " Last error: $(tail -3 "$API_LOG" | head -1)"
63
+ fi
64
+ # Don't exit — API might still be loading, continue with dashboard
48
65
  fi
49
- echo " ✓ API: http://localhost:${API_PORT}"
50
66
 
51
67
  # ── Start Nuxt frontend ──
52
68
  UI_PID=""