loki-mode 6.64.1 → 6.64.3
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 +2 -2
- package/VERSION +1 -1
- package/autonomy/loki +43 -11
- package/autonomy/run.sh +3 -2
- package/dashboard/__init__.py +1 -1
- package/docs/INSTALLATION.md +1 -1
- package/mcp/__init__.py +1 -1
- package/package.json +1 -1
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.
|
|
6
|
+
# Loki Mode v6.64.3
|
|
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.
|
|
270
|
+
**v6.64.3 | [Autonomi](https://www.autonomi.dev/) flagship product | ~260 lines core**
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.64.
|
|
1
|
+
6.64.3
|
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
|
-
#
|
|
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
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
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() {
|
package/autonomy/run.sh
CHANGED
|
@@ -7948,9 +7948,10 @@ load_state() {
|
|
|
7948
7948
|
# Reset retry count if previous session ended in a terminal state
|
|
7949
7949
|
# This allows new sessions to start fresh after failures
|
|
7950
7950
|
case "$prev_status" in
|
|
7951
|
-
failed|max_iterations_reached|max_retries_exceeded)
|
|
7952
|
-
log_info "Previous session ended with status: $prev_status. Resetting
|
|
7951
|
+
failed|max_iterations_reached|max_retries_exceeded|exited)
|
|
7952
|
+
log_info "Previous session ended with status: $prev_status. Resetting for new session."
|
|
7953
7953
|
RETRY_COUNT=0
|
|
7954
|
+
ITERATION_COUNT=0
|
|
7954
7955
|
;;
|
|
7955
7956
|
esac
|
|
7956
7957
|
else
|
package/dashboard/__init__.py
CHANGED
package/docs/INSTALLATION.md
CHANGED
package/mcp/__init__.py
CHANGED