loki-mode 8.64.0 → 8.66.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.64.0
6
+ # Loki Mode v8.66.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.64.0 | [Autonomi](https://www.autonomi.dev/) flagship product | ~410 lines core**
472
+ **v8.66.0 | [Autonomi](https://www.autonomi.dev/) flagship product | ~410 lines core**
package/VERSION CHANGED
@@ -1 +1 @@
1
- 8.64.0
1
+ 8.66.0
package/autonomy/loki CHANGED
@@ -2083,6 +2083,59 @@ cmd_start() {
2083
2083
  esac
2084
2084
  done
2085
2085
 
2086
+ # Explicit-provider pre-flight. Runs BEFORE provider_offer_gate below, and
2087
+ # is deliberately narrower than it.
2088
+ #
2089
+ # provider_offer_gate passes when ANY provider is on PATH, so `--provider
2090
+ # codex` on a claude-only machine sails through it and dies much later in
2091
+ # the runner. And when NOTHING is installed the gate offers to install
2092
+ # CLAUDE, which is a nudge toward substituting a provider the user did not
2093
+ # ask for. An explicit choice that cannot be honoured is an error, never a
2094
+ # silent (or suggested) swap: running a different model than the one asked
2095
+ # for is worse than failing.
2096
+ #
2097
+ # Only guards an EXPLICIT choice (--provider flag or LOKI_PROVIDER). The
2098
+ # default path returns immediately and still gets the friendly install
2099
+ # offer below. The later check at the "Pre-flight: check that the provider
2100
+ # CLI is installed" block stays: it covers effective_provider, which
2101
+ # includes the default, so the two have different scopes.
2102
+ local _pf_explicit="${provider:-${LOKI_PROVIDER:-}}"
2103
+ if [ -n "$_pf_explicit" ] && ! command -v "$_pf_explicit" >/dev/null 2>&1; then
2104
+ # Provider name == binary name here, same assumption as the existing
2105
+ # check below and provider-offer.sh:53. opencode is included; it is in
2106
+ # SUPPORTED_PROVIDERS but missing from the older lists.
2107
+ local _pf_installed=""
2108
+ local _pf_p
2109
+ for _pf_p in claude codex cline aider opencode; do
2110
+ if command -v "$_pf_p" >/dev/null 2>&1; then
2111
+ _pf_installed="${_pf_installed:+$_pf_installed }$_pf_p"
2112
+ fi
2113
+ done
2114
+
2115
+ echo -e "${RED}Error: you asked for provider '$_pf_explicit', but its CLI is not installed.${NC}" >&2
2116
+ echo "" >&2
2117
+ echo "Install it:" >&2
2118
+ case "$_pf_explicit" in
2119
+ claude) echo " npm install -g @anthropic-ai/claude-code" >&2 ;;
2120
+ codex) echo " npm install -g @openai/codex" >&2 ;;
2121
+ cline) echo " npm install -g cline" >&2 ;;
2122
+ aider) echo " pip install aider-chat" >&2 ;;
2123
+ opencode) echo " npm install -g opencode-ai" >&2 ;;
2124
+ *) echo " No install command is known for '$_pf_explicit'." >&2 ;;
2125
+ esac
2126
+ echo "" >&2
2127
+ if [ -n "$_pf_installed" ]; then
2128
+ echo "Installed providers on this machine: $_pf_installed" >&2
2129
+ echo "Re-run with one of those, e.g. loki start --provider ${_pf_installed%% *}" >&2
2130
+ else
2131
+ echo "No supported provider CLI is installed on this machine." >&2
2132
+ echo "Supported providers: claude, codex, cline, aider, opencode" >&2
2133
+ fi
2134
+ echo "" >&2
2135
+ echo "Loki will not silently run a different provider than the one you asked for." >&2
2136
+ exit 1
2137
+ fi
2138
+
2086
2139
  # v7.29.0: provider pre-flight gate. If no provider CLI is installed, offer
2087
2140
  # to install one (TTY) or print honest manual instructions and exit 2
2088
2141
  # (non-TTY/CI), BEFORE any spend or runner entry. This moves what used to be
@@ -7,7 +7,7 @@ Modules:
7
7
  control: Session control API (start/stop/pause/resume)
8
8
  """
9
9
 
10
- __version__ = "8.64.0"
10
+ __version__ = "8.66.0"
11
11
 
12
12
  # Expose the control app for easy import
13
13
  try: