loki-mode 6.37.5 → 6.37.6

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.37.5
6
+ # Loki Mode v6.37.6
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.37.5 | [Autonomi](https://www.autonomi.dev/) flagship product | ~260 lines core**
270
+ **v6.37.6 | [Autonomi](https://www.autonomi.dev/) flagship product | ~260 lines core**
package/VERSION CHANGED
@@ -1 +1 @@
1
- 6.37.5
1
+ 6.37.6
@@ -42,8 +42,9 @@ COUNCIL_ENABLED=${LOKI_COUNCIL_ENABLED:-true}
42
42
  COUNCIL_SIZE=${LOKI_COUNCIL_SIZE:-3}
43
43
  COUNCIL_THRESHOLD=${LOKI_COUNCIL_THRESHOLD:-2}
44
44
  COUNCIL_CHECK_INTERVAL=${LOKI_COUNCIL_CHECK_INTERVAL:-5}
45
- # Guard against zero/negative interval (division by zero in modulo)
46
- if [ "$COUNCIL_CHECK_INTERVAL" -le 0 ] 2>/dev/null; then
45
+ # Guard against invalid interval (must be positive integer)
46
+ if ! [[ "$COUNCIL_CHECK_INTERVAL" =~ ^[1-9][0-9]*$ ]]; then
47
+ echo "Warning: invalid COUNCIL_CHECK_INTERVAL '$COUNCIL_CHECK_INTERVAL', using default 5" >&2
47
48
  COUNCIL_CHECK_INTERVAL=5
48
49
  fi
49
50
  COUNCIL_MIN_ITERATIONS=${LOKI_COUNCIL_MIN_ITERATIONS:-3}
package/autonomy/loki CHANGED
@@ -1144,8 +1144,9 @@ cmd_stop() {
1144
1144
  if [ -n "$target_session" ]; then
1145
1145
  if is_session_running "$target_session"; then
1146
1146
  _stop_session_by_id "$target_session"
1147
+ echo "Stopped session: $target_session"
1147
1148
  else
1148
- echo -e "${YELLOW}Session '$target_session' is not running.${NC}"
1149
+ echo "No active session found"
1149
1150
  fi
1150
1151
  return 0
1151
1152
  fi
@@ -3035,6 +3036,10 @@ cmd_web_start() {
3035
3036
  echo -e "${RED}Error: Port must be between 1 and 65535, got $port${NC}"
3036
3037
  exit 1
3037
3038
  fi
3039
+ if lsof -Pi :"$port" -sTCP:LISTEN -t >/dev/null 2>&1; then
3040
+ echo -e "${RED}Error: Port $port is already in use${NC}"
3041
+ exit 1
3042
+ fi
3038
3043
 
3039
3044
  # Validate --prd file if provided
3040
3045
  if [ -n "$prd_file" ]; then
@@ -4449,12 +4454,12 @@ cmd_watch() {
4449
4454
  esac
4450
4455
  done
4451
4456
 
4452
- # Validate numeric arguments
4453
- if ! [[ "$poll_interval" =~ ^[0-9]+$ ]] || [ "$poll_interval" -lt 1 ]; then
4457
+ # Validate numeric arguments (no leading zeros, no decimals, positive integers only)
4458
+ if ! [[ "$poll_interval" =~ ^[1-9][0-9]*$ ]]; then
4454
4459
  echo -e "${RED}Invalid --interval: $poll_interval (expected positive integer)${NC}"
4455
4460
  return 1
4456
4461
  fi
4457
- if ! [[ "$debounce" =~ ^[0-9]+$ ]] || [ "$debounce" -lt 0 ]; then
4462
+ if ! [[ "$debounce" =~ ^[1-9][0-9]*$ ]] && [ "$debounce" != "0" ]; then
4458
4463
  echo -e "${RED}Invalid --debounce: $debounce (expected non-negative integer)${NC}"
4459
4464
  return 1
4460
4465
  fi
@@ -13980,6 +13985,13 @@ cmd_remote() {
13980
13985
  # Emit event
13981
13986
  emit_event session cli remote_start "prd=${prd_abs:-none}"
13982
13987
 
13988
+ # Check SSH directory exists (needed for remote connections)
13989
+ if [ ! -d "$HOME/.ssh" ]; then
13990
+ echo -e "${RED}Error: ~/.ssh directory not found${NC}"
13991
+ echo "Create it with: mkdir -p ~/.ssh && chmod 700 ~/.ssh"
13992
+ return 1
13993
+ fi
13994
+
13983
13995
  # Always use bypassPermissions so Loki Mode can operate autonomously
13984
13996
  rc_flags+=("--permission-mode" "bypassPermissions")
13985
13997
 
@@ -15757,7 +15769,7 @@ cmd_explain() {
15757
15769
 
15758
15770
  while [[ $# -gt 0 ]]; do
15759
15771
  case "$1" in
15760
- --json) output_json=true; shift ;;
15772
+ --json) output_json=true; require_jq || return 1; shift ;;
15761
15773
  --brief) output_brief=true; shift ;;
15762
15774
  --save) output_save=true; shift ;;
15763
15775
  --help|-h)
@@ -7,7 +7,7 @@ Modules:
7
7
  control: Session control API (start/stop/pause/resume)
8
8
  """
9
9
 
10
- __version__ = "6.37.5"
10
+ __version__ = "6.37.6"
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.37.5
5
+ **Version:** v6.37.6
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.37.5'
60
+ __version__ = '6.37.6'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loki-mode",
3
- "version": "6.37.5",
3
+ "version": "6.37.6",
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",