loki-mode 7.0.1 → 7.1.0

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 v7.0.1
6
+ # Loki Mode v7.1.0
7
7
 
8
8
  **You are an autonomous agent. You make decisions. You do not ask questions. You do not stop.**
9
9
 
@@ -271,14 +271,14 @@ Auto-detected or force with `LOKI_COMPLEXITY`:
271
271
 
272
272
  ---
273
273
 
274
- ## Managed Agents Integration (v7.0.1)
274
+ ## Managed Agents Integration (v7.1.0)
275
275
 
276
276
  Opt-in integration with Claude Managed Agents (released Apr 2026). Gives
277
277
  Loki cross-project audited memory and real multiagent councils. Features
278
278
  are BAKED INTO existing RARV-C and council flows -- no new commands to
279
279
  learn.
280
280
 
281
- **All flags default false.** Default behavior is identical to v7.0.1.
281
+ **All flags default false.** Default behavior is identical to v7.1.0.
282
282
 
283
283
  | Flag | Purpose | Status |
284
284
  |------|---------|--------|
@@ -320,4 +320,4 @@ The following features are documented in skill modules but not yet fully automat
320
320
  | Quality gates 3-reviewer system | Implemented (v5.35.0) | 5 specialist reviewers in `skills/quality-gates.md`; execution in run.sh |
321
321
  | Benchmarks (HumanEval, SWE-bench) | Infrastructure only | Runner scripts and datasets exist in `benchmarks/`; no published results |
322
322
 
323
- **v7.0.1 | [Autonomi](https://www.autonomi.dev/) flagship product | ~260 lines core**
323
+ **v7.1.0 | [Autonomi](https://www.autonomi.dev/) flagship product | ~260 lines core**
package/VERSION CHANGED
@@ -1 +1 @@
1
- 7.0.1
1
+ 7.1.0
package/autonomy/run.sh CHANGED
@@ -1040,6 +1040,41 @@ emit_event_json() {
1040
1040
  log_debug "Event: $event_type - $json_data"
1041
1041
  }
1042
1042
 
1043
+ # v7.0.2: Bash helper to emit a managed-agents event to the dashboard's
1044
+ # managed event log (.loki/managed/events.ndjson). Mirrors the Python
1045
+ # emit_managed_event helper so bash callers can land events in the same
1046
+ # stream the dashboard reads. Schema: {ts, type, payload}.
1047
+ emit_managed_event_bash() {
1048
+ local event_type="$1"
1049
+ shift
1050
+ local target_dir="${TARGET_DIR:-.}"
1051
+ local events_file="$target_dir/.loki/managed/events.ndjson"
1052
+ mkdir -p "$target_dir/.loki/managed"
1053
+
1054
+ local timestamp
1055
+ timestamp=$(date -u +%Y-%m-%dT%H:%M:%SZ)
1056
+
1057
+ # Build payload JSON from key=value args (same convention as emit_event_json)
1058
+ local payload="{"
1059
+ local first=true
1060
+ while [ $# -gt 0 ]; do
1061
+ local key="${1%%=*}"
1062
+ local value="${1#*=}"
1063
+ if [ "$first" = true ]; then first=false; else payload+=","; fi
1064
+ if [[ "$value" =~ ^[0-9]+\.?[0-9]*$ ]] || [[ "$value" =~ ^(true|false|null)$ ]]; then
1065
+ payload+="\"$key\":$value"
1066
+ else
1067
+ value=$(printf '%s' "$value" | sed 's/\\/\\\\/g; s/"/\\"/g; s/ /\\t/g')
1068
+ payload+="\"$key\":\"$value\""
1069
+ fi
1070
+ shift
1071
+ done
1072
+ payload+="}"
1073
+
1074
+ local json_event="{\"ts\":\"$timestamp\",\"type\":\"$event_type\",\"payload\":$payload}"
1075
+ echo "$json_event" >> "$events_file"
1076
+ }
1077
+
1043
1078
  # Emit event to .loki/events/pending/ directory (for event bus subscribers)
1044
1079
  # Used by OTEL bridge and other enterprise services that watch the pending dir.
1045
1080
  # Usage: emit_event_pending <type> [key=value ...]
@@ -6146,6 +6181,10 @@ MANAGED_REVIEW
6146
6181
  "op=run_code_review" \
6147
6182
  "reason=subprocess_failed" \
6148
6183
  "review_id=$review_id"
6184
+ emit_managed_event_bash "managed_agents_fallback" \
6185
+ "op=run_code_review" \
6186
+ "reason=subprocess_failed" \
6187
+ "review_id=$review_id"
6149
6188
  return 1
6150
6189
  fi
6151
6190
 
@@ -6160,6 +6199,11 @@ MANAGED_REVIEW
6160
6199
  "reason=managed_unavailable" \
6161
6200
  "detail=${reason//\"/}" \
6162
6201
  "review_id=$review_id"
6202
+ emit_managed_event_bash "managed_agents_fallback" \
6203
+ "op=run_code_review" \
6204
+ "reason=managed_unavailable" \
6205
+ "detail=${reason//\"/}" \
6206
+ "review_id=$review_id"
6163
6207
  return 1
6164
6208
  fi
6165
6209
 
@@ -6171,12 +6215,19 @@ MANAGED_REVIEW
6171
6215
  "op=run_code_review" \
6172
6216
  "reason=verdict_write_failed" \
6173
6217
  "review_id=$review_id"
6218
+ emit_managed_event_bash "managed_agents_fallback" \
6219
+ "op=run_code_review" \
6220
+ "reason=verdict_write_failed" \
6221
+ "review_id=$review_id"
6174
6222
  return 1
6175
6223
  fi
6176
6224
 
6177
6225
  emit_event_json "managed_review_council_ok" \
6178
6226
  "review_id=$review_id" \
6179
6227
  "iteration=${ITERATION_COUNT:-0}"
6228
+ emit_managed_event_bash "managed_review_council_ok" \
6229
+ "review_id=$review_id" \
6230
+ "iteration=${ITERATION_COUNT:-0}"
6180
6231
  return 0
6181
6232
  }
6182
6233
 
@@ -7,7 +7,7 @@ Modules:
7
7
  control: Session control API (start/stop/pause/resume)
8
8
  """
9
9
 
10
- __version__ = "7.0.1"
10
+ __version__ = "7.1.0"
11
11
 
12
12
  # Expose the control app for easy import
13
13
  try: