loki-mode 8.63.0 → 8.65.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: Autonomous spec-driven build system with a built-in trust layer. It does not call work done until it is verified (RARV-C closure loop, 8 quality gates, completion council, verified-completion evidence gate). Triggers on "Loki Mode". Takes a spec (PRD, GitHub issue, OpenAPI doc, etc.) to deployed product with minimal human intervention. Provider-agnostic. Requires --dangerously-skip-permissions flag.
4
4
  ---
5
5
 
6
- # Loki Mode v8.63.0
6
+ # Loki Mode v8.65.0
7
7
 
8
8
  **You are an autonomous agent. You make decisions. You do not ask questions. You do not stop.**
9
9
 
@@ -469,4 +469,4 @@ See `CHANGELOG.md` entries [7.5.7], [7.5.8], [7.5.13] for the per-fix list and r
469
469
 
470
470
  ---
471
471
 
472
- **v8.63.0 | [Autonomi](https://www.autonomi.dev/) flagship product | ~410 lines core**
472
+ **v8.65.0 | [Autonomi](https://www.autonomi.dev/) flagship product | ~410 lines core**
package/VERSION CHANGED
@@ -1 +1 @@
1
- 8.63.0
1
+ 8.65.0
package/autonomy/run.sh CHANGED
@@ -1610,8 +1610,18 @@ COMPLEXITY_TIER=${LOKI_COMPLEXITY:-auto}
1610
1610
  DETECTED_COMPLEXITY=""
1611
1611
 
1612
1612
  # Multi-Provider Support (v5.0.0)
1613
- # Provider: claude (default), codex, cline, aider
1614
- LOKI_PROVIDER=${LOKI_PROVIDER:-claude}
1613
+ # Provider: auto-detected when unset; claude > cline > codex > aider > opencode.
1614
+ #
1615
+ # WHY NOT `:-claude`. That default was a hard failure for anyone who has Codex
1616
+ # but not Claude: run.sh would select a provider that is not installed and die,
1617
+ # even though auto_detect_provider() has existed in providers/loader.sh -- with
1618
+ # the right priority order and its own passing test -- since v5.0.0. Nothing in
1619
+ # production ever called it. Detection was built, tested, and never wired.
1620
+ #
1621
+ # An EXPLICIT choice still wins: this only fills an unset value, so
1622
+ # LOKI_PROVIDER=codex and --provider codex are untouched.
1623
+ _LOKI_PROVIDER_WAS_EXPLICIT=1
1624
+ [ -z "${LOKI_PROVIDER:-}" ] && _LOKI_PROVIDER_WAS_EXPLICIT=0
1615
1625
 
1616
1626
  # Source provider configuration
1617
1627
  PROVIDERS_DIR="$PROJECT_DIR/providers"
@@ -1619,6 +1629,21 @@ if [ -f "$PROVIDERS_DIR/loader.sh" ]; then
1619
1629
  # shellcheck source=/dev/null
1620
1630
  source "$PROVIDERS_DIR/loader.sh"
1621
1631
 
1632
+ # Detect only when the operator expressed no preference. Sourcing the
1633
+ # loader first is required -- auto_detect_provider() is defined there.
1634
+ if [ "$_LOKI_PROVIDER_WAS_EXPLICIT" -eq 0 ]; then
1635
+ _detected="$(auto_detect_provider 2>/dev/null || true)"
1636
+ if [ -n "$_detected" ]; then
1637
+ LOKI_PROVIDER="$_detected"
1638
+ echo "[loki] provider: $LOKI_PROVIDER (auto-detected)" >&2
1639
+ else
1640
+ # Nothing installed. Keep the historical default so the existing
1641
+ # "not installed" error path reports claude, which is the actionable
1642
+ # message -- rather than an empty provider name.
1643
+ LOKI_PROVIDER=claude
1644
+ fi
1645
+ fi
1646
+
1622
1647
  # Validate provider
1623
1648
  if ! validate_provider "$LOKI_PROVIDER"; then
1624
1649
  echo "ERROR: Unknown provider: $LOKI_PROVIDER" >&2
@@ -7,7 +7,7 @@ Modules:
7
7
  control: Session control API (start/stop/pause/resume)
8
8
  """
9
9
 
10
- __version__ = "8.63.0"
10
+ __version__ = "8.65.0"
11
11
 
12
12
  # Expose the control app for easy import
13
13
  try: