loki-mode 6.64.1 → 6.64.2

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/SKILL.md CHANGED
@@ -3,7 +3,7 @@ name: loki-mode
3
3
  description: Multi-agent autonomous startup system. Triggers on "Loki Mode". Takes PRD to deployed product with minimal human intervention. Requires --dangerously-skip-permissions flag.
4
4
  ---
5
5
 
6
- # Loki Mode v6.64.1
6
+ # Loki Mode v6.64.2
7
7
 
8
8
  **You are an autonomous agent. You make decisions. You do not ask questions. You do not stop.**
9
9
 
@@ -267,4 +267,4 @@ The following features are documented in skill modules but not yet fully automat
267
267
  | Quality gates 3-reviewer system | Implemented (v5.35.0) | 5 specialist reviewers in `skills/quality-gates.md`; execution in run.sh |
268
268
  | Benchmarks (HumanEval, SWE-bench) | Infrastructure only | Runner scripts and datasets exist in `benchmarks/`; no published results |
269
269
 
270
- **v6.64.1 | [Autonomi](https://www.autonomi.dev/) flagship product | ~260 lines core**
270
+ **v6.64.2 | [Autonomi](https://www.autonomi.dev/) flagship product | ~260 lines core**
package/VERSION CHANGED
@@ -1 +1 @@
1
- 6.64.1
1
+ 6.64.2
package/autonomy/loki CHANGED
@@ -3421,20 +3421,52 @@ cmd_web_stop() {
3421
3421
  rm -f "$pids_file" 2>/dev/null || true
3422
3422
  fi
3423
3423
 
3424
- # Also stop the Loki Dashboard if it was started by a Purple Lab session
3424
+ # Global cleanup: kill ALL loki-related processes regardless of CWD
3425
+ # This ensures "loki web stop" from anywhere cleans up everything
3426
+
3427
+ # Kill any dashboard server (by process name and by port)
3425
3428
  local dash_port="${LOKI_DASHBOARD_PORT:-57374}"
3426
- local dash_pid_file="${LOKI_DIR}/dashboard/dashboard.pid"
3427
- if [ -f "$dash_pid_file" ]; then
3428
- local dash_pid
3429
- dash_pid=$(cat "$dash_pid_file" 2>/dev/null)
3430
- if [ -n "$dash_pid" ] && kill -0 "$dash_pid" 2>/dev/null; then
3431
- kill "$dash_pid" 2>/dev/null || true
3432
- sleep 1
3433
- kill -0 "$dash_pid" 2>/dev/null && kill -9 "$dash_pid" 2>/dev/null || true
3434
- echo "Loki Dashboard stopped (port $dash_port)"
3429
+ local dash_pids
3430
+ dash_pids=$(pgrep -f "dashboard.server\|dashboard/server" 2>/dev/null || true)
3431
+ if [ -n "$dash_pids" ]; then
3432
+ for dpid in $dash_pids; do
3433
+ kill "$dpid" 2>/dev/null || true
3434
+ done
3435
+ sleep 1
3436
+ for dpid in $dash_pids; do
3437
+ kill -0 "$dpid" 2>/dev/null && kill -9 "$dpid" 2>/dev/null || true
3438
+ done
3439
+ echo "Loki Dashboard stopped"
3440
+ fi
3441
+ # Also kill by port in case pgrep missed it
3442
+ local dash_port_pid
3443
+ dash_port_pid=$(lsof -ti:"$dash_port" -sTCP:LISTEN 2>/dev/null | head -1 || true)
3444
+ if [ -n "$dash_port_pid" ]; then
3445
+ kill "$dash_port_pid" 2>/dev/null || true
3446
+ sleep 1
3447
+ kill -0 "$dash_port_pid" 2>/dev/null && kill -9 "$dash_port_pid" 2>/dev/null || true
3448
+ fi
3449
+
3450
+ # Kill any loki run.sh orchestrator processes (status monitors, resource monitors)
3451
+ local run_pids
3452
+ run_pids=$(pgrep -f "loki-run-\|status-monitor\|resource-monitor" 2>/dev/null || true)
3453
+ if [ -n "$run_pids" ]; then
3454
+ for rpid in $run_pids; do
3455
+ kill "$rpid" 2>/dev/null || true
3456
+ done
3457
+ sleep 1
3458
+ for rpid in $run_pids; do
3459
+ kill -0 "$rpid" 2>/dev/null && kill -9 "$rpid" 2>/dev/null || true
3460
+ done
3461
+ if [ "$stopped" = true ]; then
3462
+ echo "Background processes cleaned up"
3435
3463
  fi
3436
- rm -f "$dash_pid_file" 2>/dev/null || true
3437
3464
  fi
3465
+
3466
+ # Clean up all PID files globally
3467
+ rm -f "${LOKI_DIR}/dashboard/dashboard.pid" 2>/dev/null || true
3468
+ rm -f "$HOME/.loki/dashboard/dashboard.pid" 2>/dev/null || true
3469
+ rm -f "${PURPLE_LAB_STATE_DIR}/purple-lab.pid" "${PURPLE_LAB_STATE_DIR}/port" 2>/dev/null || true
3438
3470
  }
3439
3471
 
3440
3472
  cmd_web_status() {
@@ -7,7 +7,7 @@ Modules:
7
7
  control: Session control API (start/stop/pause/resume)
8
8
  """
9
9
 
10
- __version__ = "6.64.1"
10
+ __version__ = "6.64.2"
11
11
 
12
12
  # Expose the control app for easy import
13
13
  try:
@@ -2,7 +2,7 @@
2
2
 
3
3
  The flagship product of [Autonomi](https://www.autonomi.dev/). Complete installation instructions for all platforms and use cases.
4
4
 
5
- **Version:** v6.64.1
5
+ **Version:** v6.64.2
6
6
 
7
7
  ---
8
8
 
package/mcp/__init__.py CHANGED
@@ -57,4 +57,4 @@ try:
57
57
  except ImportError:
58
58
  __all__ = ['mcp']
59
59
 
60
- __version__ = '6.64.1'
60
+ __version__ = '6.64.2'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loki-mode",
3
- "version": "6.64.1",
3
+ "version": "6.64.2",
4
4
  "description": "Loki Mode by Autonomi - Multi-agent autonomous startup system for Claude Code, Codex CLI, and Gemini CLI",
5
5
  "keywords": [
6
6
  "agent",