loki-mode 11.128.0 → 11.128.1
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/dashboard/__init__.py +1 -1
- package/docs/CLI-REFERENCE.md +1 -1
- package/docs/INSTALLATION.md +1 -1
- package/loki-ts/dist/loki.js +4 -4
- package/mcp/__init__.py +1 -1
- package/package.json +2 -2
- package/packages/control-plane/dist/server.js +1 -0
- package/plugins/loki-mode/.claude-plugin/plugin.json +1 -1
- package/web-app/dist/assets/{AdminPage-DF4k0ysx.js → AdminPage-DU19V0Z8.js} +1 -1
- package/web-app/dist/assets/{Avatar-C-uwJexT.js → Avatar-8tZOYCzr.js} +1 -1
- package/web-app/dist/assets/{Badge-CFwXAvwp.js → Badge-WsBr_wmd.js} +1 -1
- package/web-app/dist/assets/{Button-CKs00rxd.js → Button-dbsRjgbK.js} +1 -1
- package/web-app/dist/assets/{CockpitPage-DXQ6K0Uv.js → CockpitPage-BdmKE1BD.js} +1 -1
- package/web-app/dist/assets/{ComparePage-CV1WdrxH.js → ComparePage-B0baIWVY.js} +1 -1
- package/web-app/dist/assets/{ErrorBoundary-BoNQlXN0.js → ErrorBoundary-KGmneVKo.js} +1 -1
- package/web-app/dist/assets/{EvidenceReceiptPanel-BoPcm5Uy.js → EvidenceReceiptPanel-DzbcVDL0.js} +1 -1
- package/web-app/dist/assets/{GitHubIssuesPanel-Bv7T8Ie3.js → GitHubIssuesPanel-BO6bSgxF.js} +1 -1
- package/web-app/dist/assets/{GitHubPRsPanel-D3otxDyX.js → GitHubPRsPanel-BYiyPZye.js} +1 -1
- package/web-app/dist/assets/{HomePage-DBFbNHTs.js → HomePage-DDVp5P4l.js} +2 -2
- package/web-app/dist/assets/{LoginPage-CoSICpxe.js → LoginPage-CSMf6PA9.js} +1 -1
- package/web-app/dist/assets/{MagicPage-DkwWlmRA.js → MagicPage-CHxAoj4t.js} +1 -1
- package/web-app/dist/assets/{MetricsPage-CExS9EXg.js → MetricsPage-BgSvqiiI.js} +1 -1
- package/web-app/dist/assets/{NotFoundPage-Bgfe2qnY.js → NotFoundPage-DMC9Etyr.js} +1 -1
- package/web-app/dist/assets/{ProjectPage-BhCjP5SY.js → ProjectPage-BYpWEnfs.js} +3 -3
- package/web-app/dist/assets/{ProjectsPage-BzdHMSEl.js → ProjectsPage-DksZuUPc.js} +1 -1
- package/web-app/dist/assets/{SettingsPage-7cayqMSq.js → SettingsPage-BRghQ4OZ.js} +1 -1
- package/web-app/dist/assets/{ShowcasePage-wUCln7dW.js → ShowcasePage-AX3TFZdD.js} +1 -1
- package/web-app/dist/assets/{SystemSettingsPage-DBwjF02W.js → SystemSettingsPage-DVg5oEf3.js} +1 -1
- package/web-app/dist/assets/{TeamsPage-Bdw_T_6h.js → TeamsPage-CNKKrZdS.js} +1 -1
- package/web-app/dist/assets/{TemplatesPage-nu1f2803.js → TemplatesPage-DReGZVmw.js} +1 -1
- package/web-app/dist/assets/{TerminalOutput-CLmpIK4L.js → TerminalOutput-6g4gZVbt.js} +1 -1
- package/web-app/dist/assets/{activity-BXMGKZvU.js → activity-kKs9rNVl.js} +1 -1
- package/web-app/dist/assets/{bell-JNPwlzvO.js → bell-D2f6TSrY.js} +1 -1
- package/web-app/dist/assets/{bot-Sk6fR1wH.js → bot-CTiUgNPd.js} +1 -1
- package/web-app/dist/assets/{check-Ma-sojpE.js → check-b7nwLuDG.js} +1 -1
- package/web-app/dist/assets/{chevron-left-CrcDqrVe.js → chevron-left-z43N9oQm.js} +1 -1
- package/web-app/dist/assets/{circle-alert-Cwr65c2e.js → circle-alert-CFXh7q4_.js} +1 -1
- package/web-app/dist/assets/{clock-C-5tIG8f.js → clock-C5XlY5gQ.js} +1 -1
- package/web-app/dist/assets/{cloud-Db03agpM.js → cloud-DiRynGU2.js} +1 -1
- package/web-app/dist/assets/{code-xml-Cx0hm4Iq.js → code-xml-D0-7LFV7.js} +1 -1
- package/web-app/dist/assets/{database-CfRhE_ZA.js → database-BL7633cr.js} +1 -1
- package/web-app/dist/assets/{dollar-sign-DTUegk3W.js → dollar-sign-DYcrnk0S.js} +1 -1
- package/web-app/dist/assets/{file-code-corner-XuxF-CrX.js → file-code-corner-CUf4Ao24.js} +1 -1
- package/web-app/dist/assets/{file-plus-BbMAmihn.js → file-plus-DiPFi2oQ.js} +1 -1
- package/web-app/dist/assets/{globe-CpidIbDl.js → globe-2vq90XD6.js} +1 -1
- package/web-app/dist/assets/{hammer-DY_Kpy42.js → hammer-CPLZcW5e.js} +1 -1
- package/web-app/dist/assets/{index-D9BKjMuU.js → index-8TqwI_NF.js} +3 -3
- package/web-app/dist/assets/{layers-KfTHlTb8.js → layers-DkjwiuGI.js} +1 -1
- package/web-app/dist/assets/{loader-circle-BPaci-XO.js → loader-circle-B6seK0mv.js} +1 -1
- package/web-app/dist/assets/{lock-CvsetYwc.js → lock-BokWI7Bq.js} +1 -1
- package/web-app/dist/assets/{package-B64hIjyi.js → package-Bwj3Yy9P.js} +1 -1
- package/web-app/dist/assets/{plus-CR-XFuXp.js → plus-DDtdbe28.js} +1 -1
- package/web-app/dist/assets/{refresh-cw-CF5cvVRx.js → refresh-cw-MCFH-IYf.js} +1 -1
- package/web-app/dist/assets/{rotate-ccw-LtJcHjJa.js → rotate-ccw-DpGrHe4v.js} +1 -1
- package/web-app/dist/assets/{scroll-text-CeHSJV7U.js → scroll-text-AlMeqOJW.js} +1 -1
- package/web-app/dist/assets/{server-CENdgPIr.js → server-DlQAxyoR.js} +1 -1
- package/web-app/dist/assets/{shield-alert-BBEtOHZe.js → shield-alert-QMLIe6EO.js} +1 -1
- package/web-app/dist/assets/{thumbs-up-CT4JNEH-.js → thumbs-up-CH-iPy2L.js} +1 -1
- package/web-app/dist/assets/{trash-2-BbdDz5UF.js → trash-2-CC40OFfT.js} +1 -1
- package/web-app/dist/assets/{trending-down-BJQbwZ0K.js → trending-down-BkpkaJJX.js} +1 -1
- package/web-app/dist/assets/{trending-up-CcyzNaYn.js → trending-up-M8yk4S0A.js} +1 -1
- package/web-app/dist/assets/{upload-MSdRT33n.js → upload-EHu6t2yj.js} +1 -1
- package/web-app/dist/assets/{usePolling-BdUBXq9n.js → usePolling-BavtK4H1.js} +1 -1
- package/web-app/dist/assets/{user-CaCotRD9.js → user-DP41l_sQ.js} +1 -1
- package/web-app/dist/index.html +1 -1
package/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: loki-mode
|
|
|
3
3
|
description: Runs an autonomous software factory that knows what it is supposed to deliver and proves it did, with a signed receipt. Use when the user says Loki Mode or asks to build, fix or verify software autonomously.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Loki Mode v11.128.
|
|
6
|
+
# Loki Mode v11.128.1
|
|
7
7
|
|
|
8
8
|
**Current entry points (Loki 10 engine):** `loki "<task>"`, `loki owner/repo#N` and `loki quick "<task>"` run the Loki 10 engine and end with a signed receipt (`loki verify`). `loki backlog owner/repo --all` runs many issues in parallel. Guide: `docs/v10/GUIDE.md`. The skill instructions below, and `loki start`, describe the previous bash loop. PRD-file starts (`loki start ./prd.md`) and the opencode provider still run on it until FC38-SWEEP ports them; the legacy-engine command and the LOKI_ENGINE switch remain removed. Prefer `loki owner/repo#N` for issues.
|
|
9
9
|
|
|
@@ -461,4 +461,4 @@ Implemented, planned and deprecated items, with the version each landed in: `CHA
|
|
|
461
461
|
|
|
462
462
|
---
|
|
463
463
|
|
|
464
|
-
**v11.128.
|
|
464
|
+
**v11.128.1 | [Autonomi](https://www.autonomi.dev/) flagship product | core skill**
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
11.128.
|
|
1
|
+
11.128.1
|
package/dashboard/__init__.py
CHANGED
package/docs/CLI-REFERENCE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# CLI reference
|
|
2
2
|
|
|
3
|
-
Generated from `loki-ts/src/cli/registry.ts` by `scripts/generate-stale-zero.sh` for v11.128.
|
|
3
|
+
Generated from `loki-ts/src/cli/registry.ts` by `scripts/generate-stale-zero.sh` for v11.128.1. Do not edit by hand.
|
|
4
4
|
Hidden and legacy-only commands are omitted; see `docs/CLI-INVENTORY.md` for the full inventory.
|
|
5
5
|
|
|
6
6
|
| Command | Description |
|
package/docs/INSTALLATION.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Loki Mode, by [Autonomi](https://www.autonomi.dev/), turns a spec or an issue into a verified pull request with a receipt you can check. This page covers installing it, a first run, and the options around it.
|
|
4
4
|
|
|
5
|
-
**Version:** v11.128.
|
|
5
|
+
**Version:** v11.128.1
|
|
6
6
|
|
|
7
7
|
**Engine note:** `loki start` is the primary command. `loki start`, `loki "<task>"`, `loki owner/repo#N` and `loki quick` all run the Loki 10 engine, whatever the flag order or input form (PRD file, issue ref, task or one-word brief). The previous loop runs only on `--engine legacy`, `LOKI_ENGINE=legacy`, or for one call when a flag Loki 10 cannot honor is present. See the [user guide](v10/GUIDE.md) and the [5-minute quickstart](QUICKSTART.md).
|
|
8
8
|
|
package/loki-ts/dist/loki.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var m68=Object.create;var{getPrototypeOf:u68,defineProperty:rH,getOwnPropertyNames:p20,getOwnPropertyDescriptor:c68}=Object,l20=Object.prototype.hasOwnProperty;function i20($){return this[$]}var d68,p68,l68=($,Z,J)=>{var X=$!=null&&typeof $==="object";if(X){var Y=Z?d68??=new WeakMap:p68??=new WeakMap,Q=Y.get($);if(Q)return Q}J=$!=null?m68(u68($)):{};let W=Z||!$||!$.__esModule?rH(J,"default",{value:$,enumerable:!0}):J;for(let z of p20($))if(!l20.call(W,z))rH(W,z,{get:i20.bind($,z),enumerable:!0});if(X)Y.set($,W);return W},$v=($)=>{var Z=(d20??=new WeakMap).get($),J;if(Z)return Z;if(Z=rH({},"__esModule",{value:!0}),$&&typeof $==="object"||typeof $==="function"){for(var X of p20($))if(!l20.call(Z,X))rH(Z,X,{get:i20.bind($,X),enumerable:!(J=c68($,X))||J.enumerable})}return d20.set($,Z),Z},d20,HC=($,Z)=>()=>(Z||$((Z={exports:{}}).exports,Z),Z.exports);var i68=($)=>$;function a68($,Z){this[$]=i68.bind(null,Z)}var D0=($,Z)=>{for(var J in Z)rH($,J,{get:Z[J],enumerable:!0,configurable:!0,set:a68.bind(Z,J)})};var _=($,Z)=>()=>($&&(Z=$($=0)),Z);var e5=import.meta.require;var Jv={};D0(Jv,{lokiDirFor:()=>Xz,lokiDir:()=>G8,homeLokiDir:()=>B3,findRepoRootForVersion:()=>tH,REPO_ROOT:()=>_0});import{resolve as sZ,dirname as Zv}from"path";import{fileURLToPath as n68}from"url";import{existsSync as qC}from"fs";import{homedir as o68}from"os";function s68(){let $=a20;for(let Z=0;Z<6;Z++){if(qC(sZ($,"VERSION"))&&qC(sZ($,"autonomy/run.sh")))return $;let J=Zv($);if(J===$)break;$=J}return sZ(a20,"..","..","..")}function tH($){let Z=$;for(let J=0;J<6;J++){if(qC(sZ(Z,"VERSION"))&&qC(sZ(Z,"autonomy/run.sh")))return Z;let X=Zv(Z);if(X===Z)break;Z=X}return sZ($,"..","..","..")}function Xz($){return process.env.LOKI_DIR??sZ($,".loki")}function G8(){return Xz(process.cwd())}function B3(){return sZ(o68(),".loki")}var a20,_0;var q8=_(()=>{a20=Zv(n68(import.meta.url));_0=s68()});import{readFileSync as r68}from"fs";import{resolve as t68,dirname as e68}from"path";import{fileURLToPath as $48}from"url";function f9(){if(zY!==null)return zY;let $="11.128.
|
|
2
|
+
var m68=Object.create;var{getPrototypeOf:u68,defineProperty:rH,getOwnPropertyNames:p20,getOwnPropertyDescriptor:c68}=Object,l20=Object.prototype.hasOwnProperty;function i20($){return this[$]}var d68,p68,l68=($,Z,J)=>{var X=$!=null&&typeof $==="object";if(X){var Y=Z?d68??=new WeakMap:p68??=new WeakMap,Q=Y.get($);if(Q)return Q}J=$!=null?m68(u68($)):{};let W=Z||!$||!$.__esModule?rH(J,"default",{value:$,enumerable:!0}):J;for(let z of p20($))if(!l20.call(W,z))rH(W,z,{get:i20.bind($,z),enumerable:!0});if(X)Y.set($,W);return W},$v=($)=>{var Z=(d20??=new WeakMap).get($),J;if(Z)return Z;if(Z=rH({},"__esModule",{value:!0}),$&&typeof $==="object"||typeof $==="function"){for(var X of p20($))if(!l20.call(Z,X))rH(Z,X,{get:i20.bind($,X),enumerable:!(J=c68($,X))||J.enumerable})}return d20.set($,Z),Z},d20,HC=($,Z)=>()=>(Z||$((Z={exports:{}}).exports,Z),Z.exports);var i68=($)=>$;function a68($,Z){this[$]=i68.bind(null,Z)}var D0=($,Z)=>{for(var J in Z)rH($,J,{get:Z[J],enumerable:!0,configurable:!0,set:a68.bind(Z,J)})};var _=($,Z)=>()=>($&&(Z=$($=0)),Z);var e5=import.meta.require;var Jv={};D0(Jv,{lokiDirFor:()=>Xz,lokiDir:()=>G8,homeLokiDir:()=>B3,findRepoRootForVersion:()=>tH,REPO_ROOT:()=>_0});import{resolve as sZ,dirname as Zv}from"path";import{fileURLToPath as n68}from"url";import{existsSync as qC}from"fs";import{homedir as o68}from"os";function s68(){let $=a20;for(let Z=0;Z<6;Z++){if(qC(sZ($,"VERSION"))&&qC(sZ($,"autonomy/run.sh")))return $;let J=Zv($);if(J===$)break;$=J}return sZ(a20,"..","..","..")}function tH($){let Z=$;for(let J=0;J<6;J++){if(qC(sZ(Z,"VERSION"))&&qC(sZ(Z,"autonomy/run.sh")))return Z;let X=Zv(Z);if(X===Z)break;Z=X}return sZ($,"..","..","..")}function Xz($){return process.env.LOKI_DIR??sZ($,".loki")}function G8(){return Xz(process.cwd())}function B3(){return sZ(o68(),".loki")}var a20,_0;var q8=_(()=>{a20=Zv(n68(import.meta.url));_0=s68()});import{readFileSync as r68}from"fs";import{resolve as t68,dirname as e68}from"path";import{fileURLToPath as $48}from"url";function f9(){if(zY!==null)return zY;let $="11.128.1";if(typeof $==="string"&&$.length>0)return zY=$,zY;try{let Z=e68($48(import.meta.url)),J=tH(Z);zY=r68(t68(J,"VERSION"),"utf-8").trim()}catch{zY="unknown"}return zY}var zY=null;var M3=_(()=>{q8()});import{mkdirSync as Yv,readFileSync as UC,realpathSync as Z48,statSync as J48,writeFileSync as Qv}from"fs";import{dirname as Yz,join as Xv,resolve as n20}from"path";function z48(){return n20(B3(),"cache","update-check.json")}function rZ($){let Z=/^(\d+)\.(\d+)\.(\d+)$/.exec($.trim());if(!Z)return null;return[Number(Z[1]),Number(Z[2]),Number(Z[3])]}function eH($,Z){let J=rZ($),X=rZ(Z);if(!J||!X)return!1;let[Y,Q,W]=J,[z,V,K]=X;if(Y!==z)return Y>z;if(Q!==V)return Q>V;return W>K}function o20(){let $=(process.env.LOKI_NO_UPDATE_CHECK??"").trim().toLowerCase();if($==="1"||$==="true"||$==="yes")return!0;if(process.env.LOKI_AIRGAP==="true")return!0;if(process.env.CI)return!0;if(!process.stdout.isTTY)return!0;return!1}function s20($){try{let Z=UC($,"utf-8"),J=JSON.parse(Z);if(typeof J.checkedAt==="number"&&typeof J.latest==="string"&&rZ(J.latest)!==null)return{checkedAt:J.checkedAt,latest:J.latest}}catch{}return null}function V48($){try{let Z=JSON.parse(UC($,"utf-8")).failedAt;if(typeof Z==="number")return Z}catch{}return null}function K48($,Z){let J=s20($);try{Yv(Yz($),{recursive:!0}),Qv($,JSON.stringify({...J??{},failedAt:Z}),"utf-8")}catch{}}function G48($,Z){try{Yv(Yz($),{recursive:!0}),Qv($,JSON.stringify(Z),"utf-8")}catch{}}async function H48(){try{let $=await fetch(X48,{signal:AbortSignal.timeout(Q48),headers:{accept:"application/json"}});if(!$.ok)return null;let Z=await $.json();if(typeof Z.version==="string"&&rZ(Z.version)!==null)return Z.version}catch{}return null}async function q48($=Date.now(),Z=H48,J=z48()){let X=s20(J);if(X&&$-X.checkedAt<Y48)return X.latest;let Y=V48(J);if(Y!==null&&$-Y>=0&&$-Y<W48)return null;let Q=await Z();if(Q===null)return K48(J,$),null;return G48(J,{checkedAt:$,latest:Q}),Q}function U48($,Z=process.env){if(rZ($)===null)return null;let X=Z.PATH;if(!X)return null;let Y=new Set;for(let Q of X.split(":")){if(!Q)continue;let W=Xv(Q,"loki"),z;try{J48(W),z=Z48(W)}catch{continue}if(Y.has(z))continue;Y.add(z);try{let V=Xv(Yz(Yz(z)),"package.json"),K=JSON.parse(UC(V,"utf8")).version;if(typeof K!=="string")continue;if(eH(K,$))return{path:W,version:K}}catch{continue}}return null}function B48(){return n20(B3(),"cache","last-seen-version.json")}function M48($,Z={}){try{if(o20())return!1;if(rZ($)===null)return!1;let J=Z.seenFile??B48(),X=null;try{let Q=JSON.parse(UC(J,"utf-8")).version;if(typeof Q==="string"&&rZ(Q)!==null)X=Q}catch{}if(X!==null&&!eH($,X))return!1;try{Yv(Yz(J),{recursive:!0}),Qv(J,JSON.stringify({version:$}),"utf-8")}catch{return!1}if(X===null)return!1;return(Z.write??((Q)=>process.stderr.write(Q)))(`Loki Mode upgraded ${X} -> ${$}. What is new: https://github.com/asklokesh/loki-mode/releases/tag/v${$}
|
|
3
3
|
`),!0}catch{return!1}}function N48($){let Z=$.replace(/\\/g,"/");if(Z.includes("/Cellar/"))return"brew upgrade loki-mode";if(/\/pnpm\//.test(Z)||Z.includes("/.pnpm/"))return"pnpm add -g loki-mode (or npm i -g loki-mode)";if(Z.includes("/yarn/global/")||Z.includes("/.yarn/"))return"yarn global add loki-mode (or npm i -g loki-mode)";if(Z.includes("/.bun/"))return"bun install -g loki-mode (or npm i -g loki-mode)";if(Z.includes("/lib/node_modules/"))return"npm i -g loki-mode (or bun install -g loki-mode)";if(Z.includes("/homebrew/"))return"brew upgrade loki-mode";return"bun install -g loki-mode (or npm i -g loki-mode)"}async function r20($,Z={}){try{if(o20())return;if(rZ($)===null)return;let J=Z.write??((Q)=>process.stderr.write(Q));M48($,{write:J,...Z.cacheFile?{seenFile:Xv(Yz(Z.cacheFile),"last-seen-version.json")}:{}});let X=U48($,Z.env??process.env);if(X!==null){J(`Loki Mode ${X.version} is installed but not the one running (you are running ${$}).
|
|
4
4
|
Another loki earlier on PATH is winning. Newer copy: ${X.path}
|
|
5
5
|
Run \`which -a loki\` to see the order, then remove or re-point the earlier entry.
|
|
@@ -194,7 +194,7 @@ ${z.get(f.path).slice(f.start-1,f.end).join(`
|
|
|
194
194
|
`)}`)].join(`
|
|
195
195
|
`);return{text:V0,files:g,spans:d.map(({path:f,start:c,end:v,symbol:p,via:e})=>({path:f,start:c,end:v,symbol:p,via:e})),tokens:t$8(V0),budget_tokens:Y}}function T38($,Z,J){let X=$?.brief_files;if(!Array.isArray(X))return null;let Y=new Set(X.filter((H)=>typeof H==="string")),Q=[];for(let H=0;H+1<Z.length;H+=2)if(/^[MDT]$/.test(Z[H].trim().split(" ").pop()??"")&&!C5(Z[H+1])&&!Z[H+1].startsWith(".loki/"))Q.push(Z[H+1]);let W=Q.filter((H)=>Y.has(H)).length,z=null,V=Array.isArray($?.iteration_ids)?$.iteration_ids[0]:void 0;if(typeof V==="string"&&/^[\w.-]+$/.test(V))try{let H=JSON.parse(qh(Uh(J,".loki","metrics",`result-cost-${V}.json`),"utf8"));if(typeof H.reads_before_first_edit==="number")z=H.reads_before_first_edit}catch{}let K=(H)=>Math.round(H*1000)/1000,G=$?.context_pack;return{brief_files:Y.size,changed_files:Q.length,covered_files:W,context_recall:Q.length?K(W/Q.length):null,context_precision:Y.size?K(W/Y.size):null,reads_before_first_edit:z,...typeof G?.tokens==="number"?{pack_tokens:G.tokens}:{}}}function K10($,Z=20){let J=[];try{for(let W of o$8($)){let z=Uh($,W,"receipt.json");try{let V=JSON.parse(qh(z,"utf8"));J.push({mtime:r$8(z).mtimeMs,recall:V.context?.context_recall})}catch{}}}catch{}J=J.sort((W,z)=>W.mtime-z.mtime).slice(-Z);let X=J.map((W)=>W.recall).filter((W)=>typeof W==="number").sort((W,z)=>W-z),Y=X.length>>1;return{median:!X.length?null:X.length%2?X[Y]:Math.round((X[Y-1]+X[Y])/2*1000)/1000,n:X.length,runs_considered:J.length}}var ZP,t$8=($)=>Math.ceil(Buffer.byteLength($)/3),Gh,e$8,$38,Z38,J38,X38,Y38,Q38,W38,z38,V38,K38,G38,H38,q38,U38,B38,Hh=256000,j38=6000,C38=3200,J10=8,X10=120,P38=200,V10=($,Z,J)=>{let X=T38($,Z,J);return X?{context:X}:{}};var S1=_(()=>{tv();y0();k1();ZP=/\.(java|kt|kts|cs|go|rs)$/;Gh=new Set(["if","for","while","switch","catch","return","function","new","await","typeof","super","this","else","do","try","throw","using","lock","foreach","when","match","loop","fixed","checked","unchecked","yield","sizeof","nameof","default","case"]),e$8=/^\s*(?:export\s+)?(?:default\s+)?(?:declare\s+)?(?:async\s+)?function\s*\*?\s*([A-Za-z_$][\w$]*)/,$38=/^\s*(?:export\s+)?(?:default\s+)?(?:declare\s+)?(?:abstract\s+)?class\s+([A-Za-z_$][\w$]*)/,Z38=/^\s*(?:export\s+)?(?:declare\s+)?(?:const\s+)?(?:interface|enum|type|namespace)\s+([A-Za-z_$][\w$]*)/,J38=/^(?:export\s+)?(?:const|let|var)\s+([A-Za-z_$][\w$]*)/,X38=/^\s+(?:(?:public|private|protected|static|async|readonly|override|abstract|get|set)\s+)*\*?#?([A-Za-z_$][\w$]*)\s*(?:<[^>]*>)?\s*\(/,Y38=/^\s*(?:@\w+(?:\([^)]*\))?\s+)*(?:(?:public|private|protected|internal|static|final|abstract|sealed|partial|data|open|inner|enum|annotation|value|readonly|ref|unsafe|new|file)\s+)*(?:class|interface|enum|record|struct|object)\s+([A-Za-z_]\w*)/,Q38=/^\s*(?:@\w+(?:\([^)]*\))?\s+)*(?:(?:public|private|protected|internal|static|final|abstract|override|virtual|async|synchronized|native|sealed|partial|readonly|extern|unsafe|new|default|strictfp)\s+)*(?:<[^>]+>\s+)?([\w<>[\],.?]+(?:\s*<[^>]*>)?)\s+([A-Za-z_]\w*)\s*(?:<[^>]*>)?\s*\(/,W38=/^\s*(?:(?:public|private|protected|internal|static)\s+)+([A-Za-z_]\w*)\s*\(/,z38=/^\s*(?:@\w+(?:\([^)]*\))?\s+)*(?:(?:public|private|protected|internal|override|open|abstract|suspend|inline|operator|infix|tailrec|external|final)\s+)*fun\s+(?:<[^>]+>\s*)?(?:[\w.<>?]+\.)?([A-Za-z_]\w*)\s*\(/,V38=/^func\s+(?:\(\s*(?:\w+\s+)?\*?\s*([A-Za-z_]\w*)(?:\[[^\]]*\])?\s*\)\s*)?([A-Za-z_]\w*)/,K38=/^type\s+([A-Za-z_]\w*)\b/,G38=/^(?:var|const)\s+([A-Za-z_]\w*)/,H38=/^\s*(?:pub(?:\([^)]*\))?\s+)?(?:default\s+)?(?:const\s+)?(?:async\s+)?(?:unsafe\s+)?(?:extern\s+(?:"[^"]*"\s+)?)?fn\s+([A-Za-z_]\w*)/,q38=/^\s*(?:pub(?:\([^)]*\))?\s+)?(?:struct|enum|trait|union|mod)\s+([A-Za-z_]\w*)/,U38=/^\s*(?:unsafe\s+)?impl(?:\s*<[^>]*>)?\s+(?:[\w:<>, ]+?\s+for\s+)?([A-Za-z_]\w*)/,B38=/^\s*(?:pub(?:\([^)]*\))?\s+)?(?:const|static)\s+([A-Za-z_]\w*)/});import{closeSync as I38,openSync as R38,readSync as E38}from"fs";import{join as G10}from"path";function LY($,Z=q10()){let J;try{J=t($,["ls-files"],{stdio:["ignore","pipe","pipe"]})}catch{return{files:[],truncated:!1}}let X=J.split(`
|
|
196
196
|
`).filter((Y)=>Y.length>0);if(X.length>Z){let Y=m30($,X),Q=(W)=>Y.has(W)||/(^|\/)(vendor|node_modules|dist|build|third_party)\//.test(W);X=[...X.filter((W)=>!Q(W)),...X.filter(Q)]}return{files:X.slice(0,Z),truncated:X.length>Z}}function _38($,Z){let J,X=-1;try{let z=Buffer.allocUnsafe(H10);X=R38($,"r"),J=z.toString("utf8",0,E38(X,z,0,H10,0))}catch{return[]}finally{if(X>=0)try{I38(X)}catch{}}let Y=[],Q="",W="";for(let z of J.matchAll(Z)){if(Y.length>=U10)break;if(Z!==B10){if(z[1])Y.push(z[1]);continue}if(z[1]||z[2]){Q=z[2]??"",W="",Y.push(z[1]??z[2]);continue}if(Q&&(W||=z[3])===z[3])Y.push(`${Q}.${z[4]}`)}return Y}function XJ($,Z=q10()){let{files:J,truncated:X}=LY($,Z),Y=[];for(let Q of J){if(!w38.test(Q))continue;let W=ZP.test(Q)?Q10(G10($,Q),U10):_38(G10($,Q),Q.endsWith(".py")?B10:D38);if(W.length>0)Y.push({path:Q,symbols:W})}return{files:J,entries:Y,truncated:X}}var q10=()=>{let $=process.env.LOKI_E10_REPOMAP_MAX_FILES,Z=Number($);if(Number.isInteger(Z)&&Z>0)return Z;if($)process.stderr.write(`loki: ignoring invalid LOKI_E10_REPOMAP_MAX_FILES=${JSON.stringify($)}; using default 2000
|
|
197
|
-
`);return 2000},H10=256000,U10=300,w38,D38,B10;var JJ=_(()=>{y0();cC();S1();w38=/\.(ts|tsx|js|jsx|mjs|cjs|py|java|kt|kts|cs|go|rs)$/,D38=/^export\s+(?:default\s+)?(?:async\s+)?(?:function|class|const|let|interface|type|enum)\s+([A-Za-z0-9_$]+)/gm,B10=/^(?:(?:async\s+)?def\s+(\w+)|class\s+(\w+))|^([ \t]+)(?:async\s+)?def\s+(\w+)/gm});import{createHash as M10}from"crypto";import{readdirSync as x38,readFileSync as k38}from"fs";import{relative as S38,resolve as N10}from"path";function y38($){let Z=M10("sha256"),J=(X)=>{for(let Y of x38(X,{withFileTypes:!0}).sort((Q,W)=>Q.name<W.name?-1:1)){let Q=N10(X,Y.name);if(Y.isDirectory()){if(Y.name!=="node_modules")J(Q)}else if(Y.isFile()&&Y.name.endsWith(".ts"))Z.update(`${S38($,Q)}\x00`).update(k38(Q)).update("\x00")}};return J($),Z.digest("hex")}function v38($=N10(import.meta.dir,".."),Z="
|
|
197
|
+
`);return 2000},H10=256000,U10=300,w38,D38,B10;var JJ=_(()=>{y0();cC();S1();w38=/\.(ts|tsx|js|jsx|mjs|cjs|py|java|kt|kts|cs|go|rs)$/,D38=/^export\s+(?:default\s+)?(?:async\s+)?(?:function|class|const|let|interface|type|enum)\s+([A-Za-z0-9_$]+)/gm,B10=/^(?:(?:async\s+)?def\s+(\w+)|class\s+(\w+))|^([ \t]+)(?:async\s+)?def\s+(\w+)/gm});import{createHash as M10}from"crypto";import{readdirSync as x38,readFileSync as k38}from"fs";import{relative as S38,resolve as N10}from"path";function y38($){let Z=M10("sha256"),J=(X)=>{for(let Y of x38(X,{withFileTypes:!0}).sort((Q,W)=>Q.name<W.name?-1:1)){let Q=N10(X,Y.name);if(Y.isDirectory()){if(Y.name!=="node_modules")J(Q)}else if(Y.isFile()&&Y.name.endsWith(".ts"))Z.update(`${S38($,Q)}\x00`).update(k38(Q)).update("\x00")}};return J($),Z.digest("hex")}function v38($=N10(import.meta.dir,".."),Z="d36bc8b5afcd9e569d9bab8f8bd17efdd774d50fcfd48341dc4b57a7f7484754"){if(typeof Z==="string"&&/^[0-9a-f]{64}$/.test(Z))return Z;try{return y38($)}catch{return M10("sha256").update(`unbound:${process.pid}:${Date.now()}:${Math.random()}`).digest("hex")}}function PY(){return b38??=v38()}var b38=null;var F10=()=>{};import{createHash as C10}from"crypto";import{chmodSync as O10,existsSync as h38,mkdirSync as f38,readdirSync as g38,readFileSync as m38,renameSync as u38,statSync as c38,unlinkSync as P10,writeFileSync as d38}from"fs";import{basename as p38,resolve as B$}from"path";function Z7($,Z){let J=$&&$.trim()!==""?$:B$(Z);return C10("sha256").update(J).digest("hex")}function Bh(){return B$(B3(),"cache","v10")}function v7($,Z=Bh()){return B$(Z,$)}function Uz($,Z=(J)=>!0){if(!h38($))return null;try{let J=JSON.parse(m38($,"utf8"));return Z(J)?J:null}catch{return null}}function l38($){return typeof $==="object"&&$!==null&&Array.isArray($.files)&&Array.isArray($.entries)}function i38($){return typeof $==="object"&&$!==null&&Array.isArray($.runners)&&Array.isArray($.tests)}function YP($,Z,J){f38(Z,{recursive:!0,mode:448}),O10(Z,448);let X=`${$}.${process.pid}.${a38++}.tmp`;try{d38(X,JSON.stringify(J),{mode:384}),O10(X,384),u38(X,$)}catch(Y){try{P10(X)}catch{}throw Y}}function L10($,Z,J,X=Z==="slice-"?500:5){let Y=(Q)=>{try{return c38(B$($,Q)).mtimeMs}catch{return 0}};try{g38($).filter((Q)=>Q.startsWith(Z)&&Q.endsWith(".json")&&Q!==p38(J)).sort((Q,W)=>Y(W)-Y(Q)||(Q<W?1:-1)).slice(X-1).forEach((Q)=>{try{P10(B$($,Q))}catch{}})}catch{}}function s38($,Z,J){if($)return j10.hits++,$;j10.misses++;let X=Z();try{J(X)}catch{}return X}var a38=0,n38,Mh=($,Z,J,X)=>{YP($,Z,X),L10(Z,J,$);let Y=n38[J];if(Y)L10(Z,Y,$,1)},QP=($,Z,J=PY())=>`${$}-${J.slice(0,16)}-${Z}.json`,Lq=($,Z,J=PY())=>Uz(B$($,QP("repomap",Z,J)),l38),o38=($,Z,J,X=PY())=>Mh(B$($,QP("repomap",Z,X)),$,"repomap-",J),A10=($,Z,J=PY())=>Uz(B$($,QP("testmap",Z,J)),i38),T10=($,Z,J,X=PY())=>Mh(B$($,QP("testmap",Z,X)),$,"testmap-",J),j10,I10=($,Z,J,X=PY())=>s38(Lq($,Z,X),J,(Y)=>o38($,Z,Y,X)),R10=($,Z)=>C10("sha256").update(`${$.length}:${$}\x00${Z}`).digest("hex"),r38=($)=>{let Z=$;return typeof Z==="object"&&Z!==null&&typeof Z.gid==="string"&&typeof Z.id==="string"&&typeof Z.head==="string"&&Number.isInteger(Z.n)},E10=($,Z)=>Uz(B$($,`slice-${Z}.json`),r38),w10=($,Z,J)=>Mh(B$($,`slice-${Z}.json`),$,"slice-",J);var M$=_(()=>{q8();F10();n38={"repomap-":"repomap2-"},j10={hits:0,misses:0}});function D10($){return Array.from(new Set(($.toLowerCase().match(/[a-z0-9_]+/g)??[]).filter((Z)=>Z.length>2)))}function AY($,Z,J=Nh,X){return u30($,Z,J,X).map((Y)=>Y.path)}var Nh=8,_10=($)=>`${$.path} ${$.symbols.join(" ")}`.toLowerCase();var WP=_(()=>{tv()});function e38($,Z,J=Nh){let X=Z.entries;if(X.length===0)return[];let Y=X.map((z)=>new Set(t38(_10(z)))),Q=D10($).filter((z)=>{let V=Y.reduce((K,G)=>K+(G.has(z)?1:0),0);return V>0&&V*2<=Y.length});if(Q.length===0)return[];return Y.map((z,V)=>({path:X[V].path,score:Q.reduce((K,G)=>K+(z.has(G)?1:0),0),idx:V})).filter((z)=>z.score>0).sort((z,V)=>V.score-z.score||z.idx-V.idx).slice(0,J).map((z)=>z.path)}function x10($,Z,J=process.env){if(J.LOKI_SPEED==="0"||!Z)return[];try{return e38($,Z)}catch{return[]}}var t38=($)=>$.toLowerCase().match(/[a-z0-9_]+/g)??[];var k10=_(()=>{WP()});function S10($){let Z=$.slice($.lastIndexOf("/")+1);return $18.test(Z)}function Oh($){let Z=[],J=[];for(let Y of $.split(/\r?\n/)){let Q=Fh.exec(Y);if(Q){Z.push(Q[1].trim());continue}let W=b10.exec(Y);if(W)J.push(W[1].trim())}if(Z.length)return Z;if(J.length)return J;let X=$.trim();return X?[X]:[]}function G18($=process.env){try{let Z=JSON.parse($[zP]??"[]");return Array.isArray(Z)?Z.filter((J)=>typeof J==="string"):[]}catch{return[]}}function Bz($,Z=G18()){let J="none",X=0,Y=0;for(let K of $.split(/\r?\n/)){if(Fh.exec(K)){if((/^\s*/.exec(K)?.[0].length??0)>=2)continue;let U=/^\s*(?:\d+[.)]|[-*+])\s+\[[ xX]\]/.test(K);if(J==="accept"||U&&J!=="solution")Y++;else if(J==="solution"||J==="none")X++;continue}let H=b10.exec(K)?.[1];if(H!==void 0){J=y10(H)??"other";continue}let q=/[:*_]\s*$/.test(K)||/^\s*(?:\*\*|__)/.test(K)?Y18.exec(K)?.[1]:void 0;if(q!==void 0)J=y10(q)??(X18.test(q)?"other":J)}let Q=Q18.test($)&&W18.test($),W=[X>=z18,Y>=V18,Q].filter(Boolean).length,z=Z.map((K)=>K.trim().toLowerCase()).find((K)=>K18.test(K)),V=`structure: ${X} solution part(s), ${Y} acceptance criteria, ${Q?"backend and frontend":"one side of the stack"}`;return{parts:X,criteria:Y,stack:Q,large:Boolean(z)||W>=2,reason:z?`label ${z}`:V}}function v10($){let Z=$.split(/\r?\n/),J=[],X=null;for(let W of Z){let z=H18.exec(W);if(z){if(X)J.push({n:X.n,title:X.title,body:X.body.join(`
|
|
198
198
|
`).trim()});X={n:Number(z[1]),title:(z[2]??"").trim(),body:[]}}else if(X)X.body.push(W)}if(X)J.push({n:X.n,title:X.title,body:X.body.join(`
|
|
199
199
|
`).trim()});if(J.length>=2)return J.map((W)=>({...W,body:W.body||W.title||`Milestone ${W.n}`}));let Y=[],Q=!1;for(let W of Z){if(!Q){Q=q18.test(W);continue}let z=Fh.exec(W);if(z){let V=z[1].trim();Y.push({n:Y.length+1,title:V,body:V});continue}if(W.trim()===""||/^\s+\S/.test(W))continue;break}return Y.length>=2?Y:[]}function U18($,Z){let J=[...Z].sort((Y,Q)=>Q.length-Y.length||(Y<Q?-1:1)).find((Y)=>$===Y||$.startsWith(`${Y}/`));if(J)return J;let X=$.indexOf("/");return X<0?".":$.slice(0,X)}function B18($,Z){let J=[];for(let X of $.split(/[\s`'"(),;:]+/)){let Y=X.replace(/^\.\//,"").replace(/\.+$/,"");if(Y&&Z.has(Y))J.push(Y)}return J}function Lh($,Z,J){let X=Oh($),Y=new Set(Z.files),Q=J.maxFilesPerItem??8,W=J.workspaces??[],z=X.map((O)=>{let L=jq([...B18(O,Y),...J.select(O,Z,Q).filter((C)=>Y.has(C))]);return{text:O,files:L.filter((C)=>!S10(C)),shared:L.filter(S10)}}),V=z.map((O,L)=>L),K=(O)=>{while(V[O]!==O)V[O]=V[V[O]],O=V[O];return O},G=new Map;z.forEach((O,L)=>{for(let C of O.files){let P=G.get(C);if(P===void 0)G.set(C,L);else{let T=K(L),A=K(P);if(T!==A)V[Math.max(T,A)]=Math.min(T,A)}}});let H=z.findIndex((O)=>O.files.length>0);z.forEach((O,L)=>{if(O.files.length>0)return;let C=K(L),P=K(H<0?0:H);if(C!==P)V[Math.max(C,P)]=Math.min(C,P)});let q=new Map;z.forEach((O,L)=>{let C=K(L);q.set(C,[...q.get(C)??[],L])});let B=[...q.keys()].sort((O,L)=>O-L).map((O,L)=>{let C=q.get(O),P=jq(C.flatMap((A)=>z[A].files)),T=jq(C.flatMap((A)=>z[A].shared));return{id:`u${L+1}`,items:C.map((A)=>z[A].text),writeSet:P,modules:jq([...P,...T].map((A)=>U18(A,W))),serialized:T}}),M=[],F=jq(B.flatMap((O)=>O.serialized));for(let O of F){let L=B.filter((C)=>C.serialized.includes(O));for(let C=1;C<L.length;C++)M.push({from:L[C-1].id,to:L[C].id,via:O})}let N=(O)=>`${O.from}\x00${O.to}\x00${O.via}`;return M.sort((O,L)=>N(O)<N(L)?-1:N(O)>N(L)?1:0),{units:B,sharedFiles:F,edges:M}}var $18,Fh,b10,Z18,J18,X18,Y18,y10=($)=>J18.test($)?"accept":Z18.test($)?"solution":void 0,Q18,W18,z18=4,V18=4,K18,zP="LOKI_E10_ISSUE_LABELS",H18,q18,jq=($)=>[...new Set($)].sort();var Mz=_(()=>{$18=/^(package\.json|package-lock\.json|bun\.lockb?|yarn\.lock|pnpm-lock\.yaml|Cargo\.toml|Cargo\.lock|go\.mod|go\.sum|poetry\.lock|Pipfile\.lock|requirements\.txt|pyproject\.toml|CHANGELOG(\.md)?|index\.(ts|tsx|js|jsx|mjs)|__init__\.py|mod\.rs)$/i,Fh=/^\s*(?:\d+[.)]|[-*+])\s+(?:\[[ xX]\]\s+)?(\S.*)$/,b10=/^\s{0,3}#{1,6}\s+(\S.*?)\s*#*\s*$/;Z18=/\b(solution|proposal|proposed|implementation|deliverables?|scope|requirements?|tasks?|features?|changes|goals?|plan|todo|work items?)\b/i,J18=/\b(acceptance|criteria|definition of done|done when)\b/i,X18=/\b(problem|background|context|motivation|reproduce|steps|expected|actual|observed|environment|notes?|logs?|errors?|trace|screenshots?|current)\b/i,Y18=/^\s{0,3}(?:\*\*|__)?([A-Za-z][\w /&-]{0,60}?)(?:\*\*|__)?\s*:?\s*(?:\*\*|__)?\s*$/,Q18=/\b(backend|back-end|server|api|endpoints?|routes?|database|sql|postgres(?:ql)?|mysql|sqlite|migrations?|fastify|express|django|flask|rails|graphql)\b/i,W18=/\b(frontend|front-end|ui|react|vue|svelte|angular|components?|pages?|css|tailwind|dashboard|autocomplete)\b/i,K18=/^(?:epic|umbrella|tracking|meta)$/i;H18=/^\s{0,3}#{1,6}\s+Milestone\s+(\d+)\s*(?:[:.-]\s*(.*?))?\s*#*\s*$/i,q18=/^milestones:\s*$/i});import{readFileSync as VP}from"fs";import{resolve as KP}from"path";function N$($){try{let Z=process.env.LOKI_MODEL_CATALOG||KP(_0,"providers/model_catalog.json");return JSON.parse(VP(Z,"utf8")).providers?.claude?.cli_aliases?.[$]??$}catch{return $}}function jh($){return M18.has($)}function Ch($){try{let Z=process.env.LOKI_MODEL_CATALOG||KP(_0,"providers/model_catalog.json"),J=JSON.parse(VP(Z,"utf8")).providers?.claude?.models;if(!Array.isArray(J))return null;let X=[];for(let z of J)if(z.tier!=="legacy"&&!X.includes(z.tier))X.push(z.tier);let Y=N$($),Q=J.find((z)=>z.id===Y||z.alias===$),W=Q?X.indexOf(Q.tier):-1;return W>=0?W:null}catch{return null}}function h10($){try{let Z=process.env.LOKI_MODEL_CATALOG||KP(_0,"providers/model_catalog.json"),J=JSON.parse(VP(Z,"utf8")).providers?.claude?.models;if(!Array.isArray(J))return null;let X=N$($),Y=J.find((Q)=>Q.id===X||Q.alias===$)?.effort?.levels;return Array.isArray(Y)?Y:null}catch{return null}}function GP($){try{let Z=process.env.LOKI_MODEL_CATALOG||KP(_0,"providers/model_catalog.json"),J=JSON.parse(VP(Z,"utf8")).providers?.claude?.models;if(!Array.isArray(J))return null;let X=N$($);return J.find((Y)=>Y.id===X||Y.alias===$)?.thinking??null}catch{return null}}function HP($,Z){let J=GP($)?.max_effort?.[Z];return typeof J==="string"?J:null}function qP($,Z){let J=GP($)?.substitute?.[Z];return typeof J==="string"?J:null}function Cq($,Z){let J=GP($);if(!J||!Array.isArray(J.types))return!0;return J.types.includes(Z)||typeof J.substitute?.[Z]==="string"}function f10($){let Z=GP($)?.types;return Array.isArray(Z)&&Z.includes("adaptive")}function UP($){let Z=($??"").trim().toLowerCase();if(!Z)return;let J=Ah[Z]??Z;if(!Ph.has(J))throw Error(`unknown LOKI_SESSION_MODEL '${($??"").trim()}' (small|medium|high, planning|development|fast, or opus|sonnet|haiku|fable)`);return J}function Th($,Z=process.env){if(Z.LOKI_LEGACY_TIER_SWITCHING==="true")return;let J=(Z.LOKI_SESSION_MODEL??"").trim().toLowerCase();if($==="planning"&&(J==="high"||J==="planning"))return Z.LOKI_CLAUDE_MODEL_PLANNING||Z.LOKI_MODEL_PLANNING?void 0:"opus";if($!=="fast"||J!=="small"&&J!=="fast"||Z.LOKI_CLAUDE_MODEL_FAST||Z.LOKI_MODEL_FAST)return;return Z.LOKI_ALLOW_HAIKU===void 0||Z.LOKI_ALLOW_HAIKU==="true"?"haiku":void 0}var A4="claude (provider default)",M18,Ph,Ah;var F$=_(()=>{q8();M18=new Set(["haiku","sonnet","opus","fable"]);Ph=new Set(["planning","development","fast","opus","sonnet","haiku","fable"]),Ah={small:"fast",medium:"development",high:"planning"}});function g10($=process.env){let Z=($.LOKI_ROUTER??"").trim().toLowerCase();if(Z==="0"||Z==="false"||Z==="off")return"opt-out";if(Z==="1"||Z==="true"||Z==="on")return"on";if(Z==="auto")return"auto";return"off"}function A3($=process.env){let Z=($.LOKI_ROUTER_EXECUTOR??"").trim();if(Z)return{model:Z,reason:"LOKI_ROUTER=auto, executor from LOKI_ROUTER_EXECUTOR"};return $.LOKI_ALLOW_HAIKU==="false"?{model:"sonnet",reason:"LOKI_ROUTER=auto with LOKI_ALLOW_HAIKU=false: Sonnet executes implement and fix"}:{model:"haiku",reason:"LOKI_ROUTER=auto: Haiku executes implement and fix"}}function Ih($=process.env){let Z=($.LOKI_ADVISOR??"").trim().toLowerCase();return Z==="1"||Z==="true"||Z==="on"}var Z9=($=process.env)=>{let Z=g10($);return Z==="on"||Z==="auto"},z4=($=process.env)=>g10($)==="auto",Pq=($=process.env)=>Z9($)||Ih($);var p10={};D0(p10,{wallReviewRequired:()=>C18,unitRedo:()=>xh,resolveExecutor:()=>wh,parseUnits:()=>_h,parseRoute:()=>O18,nextState:()=>Dh,envOverride:()=>h7,defaultRoute:()=>c10,WALL_UNIT_ID:()=>d10,MAX_UNIT_FIELD:()=>Eh,MAX_UNITS:()=>Rh});function c10($,Z="no route returned"){return{executor:"sonnet",source:"default",risk:"medium",reason:Z}}function O18($,Z){let J=(W)=>({route:c10(Z),notProven:`NOT PROVEN (owner model): routing decision ${W}`}),X=$;if(typeof X==="string")try{X=JSON.parse(X)}catch{return J("is not valid JSON")}if(typeof X!=="object"||X===null)return J("is missing");let Y=X,Q=typeof Y.route==="object"&&Y.route!==null?Y.route:Y;if(typeof Q.executor!=="string"||!u10.includes(Q.executor))return J("has an invalid executor");if(typeof Q.risk!=="string"||!N18.includes(Q.risk))return J("has an invalid risk");if(typeof Q.reason!=="string"||Q.reason.trim()===""||Q.reason.length>200)return J("has an invalid reason");if(typeof Q.source!=="string"||!F18.includes(Q.source))return J("has an invalid source");return{route:{executor:Q.executor,reason:Q.reason,risk:Q.risk,source:Q.source},notProven:null}}function h7($){for(let Z of["LOKI_MODEL_OVERRIDE","LOKI_CLAUDE_MODEL_DEVELOPMENT","LOKI_MODEL_DEVELOPMENT","LOKI_SESSION_MODEL"]){let J=($[Z]??"").trim();if(J)return J}return null}function wh($){let Z=$.env??{},J=h7(Z);if(J)return{model:J,source:"override",reason:"explicit model override"};let X={model:$.route.executor,source:$.route.source,reason:$.route.reason},Y=(Z.LOKI_ROUTER_EXECUTOR??"").trim();if(Y)X={model:Y,source:"advisor",reason:"LOKI_ROUTER_EXECUTOR route input"};let Q=(G,H,q)=>{if(BP(G)>BP(X.model))X={model:G,source:H,reason:q}},W=/^(1|true)$/i.test((Z.LOKI_COST_FIRST??"").trim()),z=$.advisorAvailable&&BP(X.model)===0&&X.source!=="default"&&$.historyFloor!=="sonnet",V=W&&X.source==="advisor"&&$.shapeDefault!=="haiku"&&$.route.risk==="low",K=z&&($.shapeDefault==="haiku"||V);if(BP(X.model)===0&&!K)Q("sonnet","no-evidence","no evidence the shape earned haiku: executor sonnet");else if(K&&V)X={...X,reason:`${X.reason}; cost-first kept the lower-cost model`};if($.shapeDefault==="sonnet")Q("sonnet","shape-default","shipped shape default");else if($.shapeDefault==="prior-default")Q($.priorDefaultModel,"shape-default","shipped shape default: prior-default");if($.historyFloor==="sonnet")Q("sonnet","history","Haiku lost 2 of the last 3 runs on this shape");if(!$.advisorAvailable)Q("sonnet","no-advisor-floor","advisor unavailable: executor fixed at sonnet");return X}function Dh($,Z){let J=(X="none")=>({state:$,action:X});if(Z.kind==="error")return J();if($.model==="haiku"){if(Z.kind==="code_fail_repeat"||Z.kind==="escalate_marker")return{state:{model:"sonnet",swapped:!0},action:"swap-sonnet"};return{state:{model:"sonnet",swapped:!0},action:"swap-sonnet-retry"}}if($.model==="sonnet"){if(Z.kind==="spec_conflict")return J("blocked");if(Z.kind==="code_fail_repeat"||Z.kind==="stall")return{state:{model:"opus",swapped:$.swapped},action:"fix-on-opus"};return J()}return Z.kind==="code_fail_repeat"||Z.kind==="stall"?J("stalled"):J()}function _h($,Z){let J=$;if(typeof J==="string")try{J=JSON.parse(J)}catch{return{units:[],notProven:["NOT PROVEN (owner model): per-unit routes are not valid JSON; default sonnet"]}}let X=typeof J==="object"&&J!==null?J.units:void 0;if(!Array.isArray(X))return{units:[],notProven:["NOT PROVEN (owner model): no per-unit routes returned; default sonnet"]};if(X.length===0)return{units:[],notProven:["NOT PROVEN (owner model): empty per-unit routes; default sonnet"]};if(X.length>Rh)return{units:[],notProven:[`NOT PROVEN (owner model): ${X.length} per-unit routes exceed the cap of ${Rh}; default sonnet`]};let Y=(V)=>{let K=typeof V==="object"&&V!==null?V.id:void 0;return typeof K==="string"&&K.length<=Eh&&L18.test(K)&&!j18.includes(K)?K:null},Q=new Map;for(let V of X){let K=Y(V);if(K!==null)Q.set(K,(Q.get(K)??0)+1)}let W=[],z=[];return X.forEach((V,K)=>{let G=typeof V==="object"&&V!==null?V:{},H=Y(V),q=H??`#${K}`,U=typeof G.kind==="string"&&G.kind.length<=Eh,B=H!==null&&(Q.get(H)??0)>1;if(!(H!==null&&!B&&U&&typeof G.executor==="string"&&u10.includes(G.executor)&&typeof G.reason==="string"&&G.reason.trim()!==""&&G.reason.length<=200)){W.push({id:q,kind:U?G.kind:"",executor:"sonnet",reason:B?"duplicate unit id":"invalid unit route"}),z.push(`NOT PROVEN (owner model): unit ${q} route ${B?"has a duplicate id":"invalid"}; sonnet`);return}let F=G.executor==="haiku"&&!Z;W.push({id:q,kind:G.kind,executor:F?"sonnet":G.executor,reason:F?"advisor unavailable: raised to sonnet":G.reason})}),{units:W,notProven:z}}function xh($,Z){return $==="haiku"&&Z==="code"?"redo-sonnet":"none"}var u10,N18,F18,m10,BP=($)=>{let Z=m10.findIndex((J)=>$.toLowerCase().includes(J));return Z<0?m10.length:Z},d10="wall",Rh=200,Eh=64,L18,j18,C18=($)=>$.some((Z)=>Z.id===d10&&Z.executor==="haiku");var y1=_(()=>{u10=["haiku","sonnet"],N18=["low","medium","high"],F18=["advisor","opus-plan"];m10=["haiku","sonnet","opus"];L18=/^[A-Za-z0-9_.-]+$/,j18=["__proto__","constructor","prototype"]});var l10,P18=($)=>["0","off","false"].includes(($??"").toLowerCase()),Aq=($=process.env)=>!P18($.LOKI_E10_WALL_CONCURRENT),i10=($=process.env)=>{let Z=$.LOKI_E10_WALL_MAX_TOKENS,J=Z??"",X=Number(J);if(/^[0-9]+$/.test(J)&&Number.isSafeInteger(X)&&X>0)return X;if(Z!==void 0&&Z.trim()&&!l10.has(Z))l10.add(Z),process.stderr.write(`loki: LOKI_E10_WALL_MAX_TOKENS="${Z}" is not a positive decimal integer within the safe range; using 16000
|
|
200
200
|
`);return 16000},MP=($=process.env)=>$.LOKI_E10_WALL_MAX_TOKENS===void 0&&$.CLAUDE_CODE_MAX_OUTPUT_TOKENS?void 0:i10($);var NP=_(()=>{l10=new Set});function A18($,Z,J){let X=`${$}=${Z}`;if(a10.has(X))return;a10.add(X),process.stderr.write(`loki: ignoring invalid ${$}="${Z}" (need a number > 0); using ${J}${J===0?" (off)":"s"}
|
|
@@ -1456,7 +1456,7 @@ ${JM}`),2}let X=!$.includes("--no-pr"),Y=VO0($);if(Y!==null&&Number.isNaN(Y))ret
|
|
|
1456
1456
|
${JM}`),2;return WO0(X,Q.includes("--json"))}case"remove":case"rm":return YO0(Q,X);case"clear":if(Q.length>0)return X.err(`loki queue clear: unexpected argument '${Q[0]}'
|
|
1457
1457
|
${JM}`),2;return QO0(X);case"run":return rR(Q,X);default:{if(Y===void 0||Y==="--help"||Y==="-h"||Y==="help")return X.err(JM),2;let W=P9(Y,vP8);return X.err(`loki queue: unknown subcommand '${Y}'${W?` (did you mean '${W}'?)`:""}
|
|
1458
1458
|
${JM}`),2}}}var ZK=4,SP8,yP8,bP8,vP8,hP8,JM=`usage: loki queue <add <issue...> | list [--json] | remove <issue...> | clear | run [--no-pr] [--max-total-cost <usd>]>
|
|
1459
|
-
`;var YM=_(()=>{A9();q8();S7();Kl();SP8=/^(?:[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+#\d+|#?\d+)$/,yP8=/^https:\/\/github\.com\/([A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+)\/issues\/(\d+)\/?$/,bP8=/https:\/\/github\.com\/[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+\/pull\/\d+/;vP8=["add","list","remove","rm","clear","run"],hP8=["--no-pr","--max-total-cost"]});function uP8($){let Z=[$.trim()],J=[...$.matchAll(/```(?:json)?\s*\n([\s\S]*?)```/g)];if(J.length)Z.push(J[J.length-1][1].trim());let X=$.indexOf("{"),Y=$.lastIndexOf("}");if(X>=0&&Y>X)Z.push($.slice(X,Y+1));for(let Q of Z)try{return JSON.parse(Q)}catch{}return}function Cl($){let Z=uP8($);if(Z===void 0||Z===null||typeof Z!=="object"||Array.isArray(Z))return{ok:!1,reason:"no JSON object in the reply"};let J=Z.slices;if(!Array.isArray(J))return{ok:!1,reason:'the JSON has no "slices" array'};if(J.length<jl)return{ok:!1,reason:`a split needs at least ${jl} slices, got ${J.length}`};if(J.length>XK)return{ok:!1,reason:`a split may have at most ${XK} slices, got ${J.length}`,over:J.length};let X=[],Y=new Set;for(let[G,H]of J.entries()){let q=`slice ${G+1}`;if(!H||typeof H!=="object"||Array.isArray(H))return{ok:!1,reason:`${q} is not an object`};let U=H;if(typeof U.id!=="string"||!Ll.test(U.id))return{ok:!1,reason:`${q}: id must match ${Ll.source}`};if(Y.has(U.id))return{ok:!1,reason:`duplicate slice id ${U.id}`};if(Y.add(U.id),typeof U.title!=="string"||!U.title.trim()||U.title.length>200)return{ok:!1,reason:`${U.id}: title must be a non-empty string of at most 200 characters`};let B=Ol(U.acceptance,20,!0);if(!B||B.length===0)return{ok:!1,reason:`${U.id}: acceptance must be a list holding at least one non-empty string`};let M=U.depends_on===void 0?[]:Ol(U.depends_on,1/0);if(!M)return{ok:!1,reason:`${U.id}: depends_on must be a list of slice ids`};let F=U.files===void 0?[]:Ol(U.files,50);if(!F)return{ok:!1,reason:`${U.id}: files must be a list of paths`};let N=Array.isArray(U.files)?new Set(U.files.filter((L)=>typeof L==="string").map(GZ).filter((L)=>L!=="")).size:0,O=N-F.length;X.push({id:U.id,title:GZ(U.title),acceptance:B,depends_on:[...new Set(M)],files:F,...O>0?{files_dropped:O}:{}})}for(let G of X)for(let H of G.depends_on)if(!Y.has(H))return{ok:!1,reason:`${G.id} depends on unknown slice ${H}`};let Q=[],W=new Set,z=[...X];while(z.length){let G=z.find((H)=>H.depends_on.every((q)=>W.has(q)));if(!G)return{ok:!1,reason:`dependency cycle among ${z.map((H)=>H.id).join(", ")}`};Q.push(G),W.add(G.id),z=z.filter((H)=>H!==G)}let V=new Map;for(let G of Q){let H=new Set;for(let q of G.depends_on){H.add(q);for(let U of V.get(q))H.add(U)}V.set(G.id,H)}let K={};for(let G of Q){if(G.depends_on.length===0){K[G.id]=null;continue}let H=G.depends_on.find((q)=>G.depends_on.every((U)=>U===q||V.get(q).has(U)));if(!H)return{ok:!1,reason:`${G.id} depends on ${G.depends_on.join(" and ")}, which are not on one stack; a stacked PR has one base`};K[G.id]=H}return{ok:!0,slices:Q,parent:K}}function dP8($,Z,J,X,Y=""){return["You are planning how an autonomous coding agent should deliver one GitHub issue that is too large for a single pull request.",`A triage pass judged it too large: ${GZ(J)}`,"Split it into an ordered list of independently verifiable, PR-sized slices. Each slice becomes one pull request, opened as a stack:","a slice that depends on another is built on top of that slice's branch.",`Use at most ${XK} slices, and fewer when the issue allows. Prefer independent slices (empty depends_on) that can be built at the same time over a chain: add a dependency only when a slice cannot be built without the other's code. A long serial chain is a failure of the plan, because one failed slice skips everything after it.`,"Give a slice several dependencies only when they are already on one chain.","Do not edit, create or delete any repository file. You may read the repository to judge scope.",`Write exactly one JSON object to the file ${X} and nothing else to that file, in this form:`,'{"slices":[{"id":"s1","title":"<short title>","acceptance":["<checkable criterion>"],"depends_on":[],"files":["<path if known>"]}]}',`Rules: ${jl}-${XK} slices; id matches ${Ll.source}; depends_on lists slice ids; no cycles; files may be empty.`,"",`Issue ${$}#${Z.number}: ${Z.title}`,Z.labels.length?`Labels: ${Z.labels.join(", ")}`:"","",Z.body.slice(0,12000),...Y?["",Y]:[]].join(`
|
|
1459
|
+
`;var YM=_(()=>{A9();q8();S7();Kl();SP8=/^(?:[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+#\d+|#?\d+)$/,yP8=/^https:\/\/github\.com\/([A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+)\/issues\/(\d+)\/?$/,bP8=/https:\/\/github\.com\/[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+\/pull\/\d+/;vP8=["add","list","remove","rm","clear","run"],hP8=["--no-pr","--max-total-cost"]});function uP8($){let Z=[$.trim()],J=[...$.matchAll(/```(?:json)?\s*\n([\s\S]*?)```/g)];if(J.length)Z.push(J[J.length-1][1].trim());let X=$.indexOf("{"),Y=$.lastIndexOf("}");if(X>=0&&Y>X)Z.push($.slice(X,Y+1));for(let Q of Z)try{return JSON.parse(Q)}catch{}return}function Cl($){let Z=uP8($);if(Z===void 0||Z===null||typeof Z!=="object"||Array.isArray(Z))return{ok:!1,reason:"no JSON object in the reply"};let J=Z.slices;if(!Array.isArray(J))return{ok:!1,reason:'the JSON has no "slices" array'};if(J.length<jl)return{ok:!1,reason:`a split needs at least ${jl} slices, got ${J.length}`};if(J.length>XK)return{ok:!1,reason:`a split may have at most ${XK} slices, got ${J.length}`,over:J.length};let X=[],Y=new Set;for(let[G,H]of J.entries()){let q=`slice ${G+1}`;if(!H||typeof H!=="object"||Array.isArray(H))return{ok:!1,reason:`${q} is not an object`};let U=H;if(typeof U.id!=="string"||!Ll.test(U.id))return{ok:!1,reason:`${q}: id must match ${Ll.source}`};if(Y.has(U.id))return{ok:!1,reason:`duplicate slice id ${U.id}`};if(Y.add(U.id),typeof U.title!=="string"||!U.title.trim()||U.title.length>200)return{ok:!1,reason:`${U.id}: title must be a non-empty string of at most 200 characters`};let B=Ol(U.acceptance,20,!0);if(!B||B.length===0)return{ok:!1,reason:`${U.id}: acceptance must be a list holding at least one non-empty string`};let M=U.depends_on===void 0?[]:Ol(U.depends_on,1/0);if(!M)return{ok:!1,reason:`${U.id}: depends_on must be a list of slice ids`};let F=U.files===void 0?[]:Ol(U.files,50);if(!F)return{ok:!1,reason:`${U.id}: files must be a list of paths`};let N=Array.isArray(U.files)?new Set(U.files.filter((L)=>typeof L==="string").map(GZ).filter((L)=>L!=="")).size:0,O=N-F.length;X.push({id:U.id,title:GZ(U.title),acceptance:B,depends_on:[...new Set(M)],files:F,...O>0?{files_dropped:O}:{}})}for(let G of X)for(let H of G.depends_on)if(!Y.has(H))return{ok:!1,reason:`${G.id} depends on unknown slice ${H}`};let Q=[],W=new Set,z=[...X];while(z.length){let G=z.find((H)=>H.depends_on.every((q)=>W.has(q)));if(!G)return{ok:!1,reason:`dependency cycle among ${z.map((H)=>H.id).join(", ")}`};Q.push(G),W.add(G.id),z=z.filter((H)=>H!==G)}let V=new Map;for(let G of Q){let H=new Set;for(let q of G.depends_on){H.add(q);for(let U of V.get(q))H.add(U)}V.set(G.id,H)}let K={};for(let G of Q){if(G.depends_on.length===0){K[G.id]=null;continue}let H=G.depends_on.find((q)=>G.depends_on.every((U)=>U===q||V.get(q).has(U)));if(!H)return{ok:!1,reason:`${G.id} depends on ${G.depends_on.join(" and ")}, which are not on one stack; a stacked PR has one base`};K[G.id]=H}return{ok:!0,slices:Q,parent:K}}function dP8($,Z,J,X,Y=""){return["You are planning how an autonomous coding agent should deliver one GitHub issue that is too large for a single pull request.",`A triage pass judged it too large: ${GZ(J)}`,"Split it into an ordered list of independently verifiable, PR-sized slices. Each slice becomes one pull request, opened as a stack:","a slice that depends on another is built on top of that slice's branch.",`Use at most ${XK} slices, and fewer when the issue allows. Prefer independent slices (empty depends_on) that can be built at the same time over a chain: add a dependency only when a slice cannot be built without the other's code. A long serial chain is a failure of the plan, because one failed slice skips everything after it.`,"Give a slice several dependencies only when they are already on one chain.",`When a criterion changes behavior an existing test asserts (for example replacing ILIKE search with full-text search), search the repository's tests for it, put that test file in the slice's files, and say in the criterion that the test is updated to the new behavior. Never write "existing tests still pass" for behavior the slice replaces: the implementer treats an unnamed existing test as read-only and stops on the contradiction.`,"Do not edit, create or delete any repository file. You may read the repository to judge scope.",`Write exactly one JSON object to the file ${X} and nothing else to that file, in this form:`,'{"slices":[{"id":"s1","title":"<short title>","acceptance":["<checkable criterion>"],"depends_on":[],"files":["<path if known>"]}]}',`Rules: ${jl}-${XK} slices; id matches ${Ll.source}; depends_on lists slice ids; no cycles; files may be empty.`,"",`Issue ${$}#${Z.number}: ${Z.title}`,Z.labels.length?`Labels: ${Z.labels.join(", ")}`:"","",Z.body.slice(0,12000),...Y?["",Y]:[]].join(`
|
|
1460
1460
|
`)}function OO0($,Z,J,X,Y,Q){return[Od(J.id,Y,$,Z.number,J.title),`This is slice ${X+1} of a larger issue that was split into ${Y} pull requests. Implement only this slice.`+(Q?` The branch already contains slice ${Q} and everything it depends on.`:""),`Acceptance criteria: ${J.acceptance.map((W,z)=>`(${z+1}) ${W}`).join("; ")}`,J.files.length?`Likely files: ${J.files.join(", ")}`:"",J.files_dropped?`${J.files_dropped} more ${J.files_dropped===1?"path was":"paths were"} listed for this slice and dropped (past the 50-path cap, or too long to be a path); find the rest from the criteria.`:"",`Parent issue: ${GZ(Z.title)}`].filter(Boolean).join(`
|
|
1461
1461
|
|
|
1462
1462
|
`)}function LO0($,Z){return[`Loki triage: too-large (${GZ($)}). Loki split it into ${Z.length} stacked pull requests, run in this order:`,"",...Z.map((J,X)=>`${X+1}. ${J.id}: ${J.title}${J.depends_on.length?` (after ${J.depends_on.join(", ")})`:""}`)].join(`
|
|
@@ -3698,4 +3698,4 @@ Unknown commands exit 2 with a suggestion; run 'loki help' for the full list.
|
|
|
3698
3698
|
`);{let{suggestCommand:X}=await Promise.resolve().then(() => (S7(),wv)),Y=Z===void 0?void 0:X(Z);if(Y)process.stderr.write(`Did you mean 'loki ${Y}'?
|
|
3699
3699
|
`)}return process.stderr.write(v68),2}}up0();var h68=()=>globalThis[Symbol.for("loki.ownsStopSignals")]===!0;process.on("SIGINT",()=>{if(!h68())process.exit(130)});process.on("SIGTERM",()=>{if(!h68())process.exit(143)});var Us5=await qs5(Bun.argv.slice(2));process.exit(Us5);
|
|
3700
3700
|
|
|
3701
|
-
//# debugId=
|
|
3701
|
+
//# debugId=3B815B45D429799BB8CD1BEBA5326599
|
package/mcp/__init__.py
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "loki-mode",
|
|
3
3
|
"mcpName": "io.github.asklokesh/loki-mode",
|
|
4
|
-
"version": "11.128.
|
|
4
|
+
"version": "11.128.1",
|
|
5
5
|
"description": "An autonomous software factory that knows what it is supposed to deliver, and proves it did.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"agent",
|
|
@@ -161,5 +161,5 @@
|
|
|
161
161
|
"dependencies": {
|
|
162
162
|
"@resvg/resvg-wasm": "^2.6.2"
|
|
163
163
|
},
|
|
164
|
-
"gitHead": "
|
|
164
|
+
"gitHead": "56dc3d5a7d69f12288d0bdbe43303bf43e9011d2"
|
|
165
165
|
}
|
|
@@ -39312,6 +39312,7 @@ function decomposeBrief(slug, i, triageReason, outPath, note = "") {
|
|
|
39312
39312
|
"a slice that depends on another is built on top of that slice's branch.",
|
|
39313
39313
|
`Use at most ${MAX_SLICES} slices, and fewer when the issue allows. Prefer independent slices (empty depends_on) that can be built at the same time over a chain: add a dependency only when a slice cannot be built without the other's code. A long serial chain is a failure of the plan, because one failed slice skips everything after it.`,
|
|
39314
39314
|
"Give a slice several dependencies only when they are already on one chain.",
|
|
39315
|
+
`When a criterion changes behavior an existing test asserts (for example replacing ILIKE search with full-text search), search the repository's tests for it, put that test file in the slice's files, and say in the criterion that the test is updated to the new behavior. Never write "existing tests still pass" for behavior the slice replaces: the implementer treats an unnamed existing test as read-only and stops on the contradiction.`,
|
|
39315
39316
|
"Do not edit, create or delete any repository file. You may read the repository to judge scope.",
|
|
39316
39317
|
`Write exactly one JSON object to the file ${outPath} and nothing else to that file, in this form:`,
|
|
39317
39318
|
'{"slices":[{"id":"s1","title":"<short title>","acceptance":["<checkable criterion>"],"depends_on":[],"files":["<path if known>"]}]}',
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json.schemastore.org/claude-code-plugin-manifest.json",
|
|
3
3
|
"name": "loki-mode",
|
|
4
4
|
"displayName": "Loki Mode",
|
|
5
|
-
"version": "11.128.
|
|
5
|
+
"version": "11.128.1",
|
|
6
6
|
"description": "Autonomous spec-to-product build system with a built-in trust layer (RARV-C closure loop, 8 quality gates, completion council). Ships Loki's spec-hardening, drift-detection, and deterministic PR verification commands plus the Loki MCP server.",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "Autonomi",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as L,r as x,j as e,w as re,Z as ne,m as le,h as ie,p as P,F as ye,U as I,X as ce,L as de,x as oe,M as Ae,T as Z,S as we,l as xe,k as me,y as Ce,E as Fe,a0 as Se,a as U,a2 as he}from"./index-
|
|
1
|
+
import{c as L,r as x,j as e,w as re,Z as ne,m as le,h as ie,p as P,F as ye,U as I,X as ce,L as de,x as oe,M as Ae,T as Z,S as we,l as xe,k as me,y as Ce,E as Fe,a0 as Se,a as U,a2 as he}from"./index-8TqwI_NF.js";import{B as C}from"./Button-dbsRjgbK.js";import{T as $e}from"./trending-up-M8yk4S0A.js";import{C as z}from"./clock-C5XlY5gQ.js";import{A as Be,U as ue,M as De}from"./Avatar-8tZOYCzr.js";import{A as J}from"./activity-kKs9rNVl.js";import{R as pe}from"./refresh-cw-MCFH-IYf.js";import{G as ze}from"./globe-2vq90XD6.js";import{C as Le}from"./chevron-left-z43N9oQm.js";import{C as je}from"./check-b7nwLuDG.js";import{D as Y}from"./dollar-sign-DYcrnk0S.js";import{U as Te}from"./user-DP41l_sQ.js";import{D as Me}from"./database-BL7633cr.js";import{L as Ue}from"./lock-BokWI7Bq.js";import{S as Re}from"./scroll-text-AlMeqOJW.js";import{S as Ie}from"./shield-alert-QMLIe6EO.js";/**
|
|
2
2
|
* @license lucide-react v0.577.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e}from"./index-
|
|
1
|
+
import{j as e}from"./index-8TqwI_NF.js";import{C as r}from"./clock-C5XlY5gQ.js";import{C as a}from"./circle-alert-CFXh7q4_.js";import{C as l}from"./check-b7nwLuDG.js";const i={completed:"bg-[#1FC5A8]/10 text-[#1FC5A8]",running:"bg-[#553DE9]/10 text-[#553DE9]",failed:"bg-[#C45B5B]/10 text-[#C45B5B]",started:"bg-[#D4A03C]/10 text-[#D4A03C]",empty:"bg-[#F8F4F0] text-[#6B6960]",version:"bg-[#553DE9]/10 text-[#553DE9]"};function o({status:t}){switch(t){case"completed":return e.jsx(l,{size:12});case"running":return e.jsxs("span",{className:"relative flex h-2 w-2",children:[e.jsx("span",{className:"animate-ping motion-reduce:animate-none absolute inline-flex h-full w-full rounded-full bg-current opacity-75"}),e.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-current"})]});case"failed":return e.jsx(a,{size:12});case"started":return e.jsx(r,{size:12});default:return null}}function f({status:t,children:n,className:s=""}){return e.jsxs("span",{className:["inline-flex items-center gap-1 rounded-btn px-2.5 py-0.5 text-xs font-semibold",i[t],s].filter(Boolean).join(" "),children:[e.jsx(o,{status:t}),n]})}export{f as B};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as p,j as t}from"./index-
|
|
1
|
+
import{r as p,j as t}from"./index-8TqwI_NF.js";const m={primary:"bg-[#553DE9] text-white hover:bg-[#4432c4] shadow-button rounded-btn",secondary:"border border-[#553DE9] text-[#553DE9] hover:bg-[#E8E4FD] bg-transparent rounded-btn",ghost:"text-[#36342E] hover:bg-[#F8F4F0] rounded-btn",danger:"bg-[#C45B5B]/10 text-[#C45B5B] border border-[#C45B5B]/20 hover:bg-[#C45B5B]/20 rounded-btn"},b={sm:"px-3 py-1.5 text-xs",md:"px-4 py-2 text-sm",lg:"px-6 py-3 text-base"},u={sm:14,md:16,lg:18};function h({size:e}){return t.jsxs("svg",{className:"animate-spin",width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[t.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),t.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})}const B=p.forwardRef(({variant:e="primary",size:o="md",icon:n,iconRight:i,loading:r=!1,disabled:a,className:c="",children:l,...x},d)=>{const s=u[o];return t.jsxs("button",{ref:d,disabled:a||r,className:["inline-flex items-center justify-center gap-2 font-medium transition-colors",m[e],b[o],(a||r)&&"opacity-60 cursor-not-allowed",c].filter(Boolean).join(" "),...x,children:[r?t.jsx(h,{size:s}):n?t.jsx(n,{size:s}):null,l,i&&!r&&t.jsx(i,{size:s})]})});B.displayName="Button";export{B};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as $,r as l,j as e,G as we,Q as Se,F as Ce,h as Re,T as U,Z as Ee,a as S,V as Me,S as $e,Y as Te,X as Pe,P as ie,i as Ae,g as ze,C as Ie,l as Le,N as I,J as _e,K as De,O as Fe,u as Oe}from"./index-
|
|
1
|
+
import{c as $,r as l,j as e,G as we,Q as Se,F as Ce,h as Re,T as U,Z as Ee,a as S,V as Me,S as $e,Y as Te,X as Pe,P as ie,i as Ae,g as ze,C as Ie,l as Le,N as I,J as _e,K as De,O as Fe,u as Oe}from"./index-8TqwI_NF.js";import{P as K,S as He,E as Be}from"./ErrorBoundary-KGmneVKo.js";import{C as qe,F as Ge,M as Ue,H as Ke,a as We,G as Ve,T as Qe}from"./thumbs-up-CH-iPy2L.js";import{C as oe}from"./check-b7nwLuDG.js";import{C as Ye}from"./clock-C5XlY5gQ.js";import{D as Xe}from"./dollar-sign-DYcrnk0S.js";import{U as Ze}from"./upload-EHu6t2yj.js";import{L as V}from"./loader-circle-B6seK0mv.js";/**
|
|
2
2
|
* @license lucide-react v0.577.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,j as e}from"./index-D9BKjMuU.js";function f({value:l,prefix:t="",suffix:s=""}){const[u,n]=o.useState(0),c=o.useRef(0);return o.useEffect(()=>{const a=c.current,h=l-a;if(h===0)return;const i=600,d=performance.now();function r(b){const v=b-d,m=Math.min(v/i,1),N=1-Math.pow(1-m,3),p=Math.round(a+h*N);n(p),c.current=p,m<1&&requestAnimationFrame(r)}requestAnimationFrame(r)},[l]),e.jsxs("span",{className:"tabular-nums",children:[t,u.toLocaleString(),s]})}function g(){const[l,t]=o.useState(5),[s,u]=o.useState(30),[n,c]=o.useState(75),a=.4,i=Math.round(l*s*a*4.33),d=Math.round(i*n);return e.jsxs("div",{className:"bg-white border border-[#ECEAE3] rounded-xl p-6 shadow-sm",children:[e.jsx("h3",{className:"text-lg font-bold text-[#36342E] mb-1",children:"ROI Calculator"}),e.jsx("p",{className:"text-sm text-[#6B6960] mb-6",children:"Estimate how much your team could save with autonomous development."}),e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("label",{className:"text-sm font-medium text-[#36342E]",children:"Team size"}),e.jsxs("span",{className:"text-sm font-semibold text-[#553DE9] tabular-nums",children:[l," developers"]})]}),e.jsx("input",{type:"range",min:1,max:50,value:l,onChange:r=>t(Number(r.target.value)),className:"w-full h-2 bg-[#ECEAE3] rounded-full appearance-none cursor-pointer accent-[#553DE9]"}),e.jsxs("div",{className:"flex justify-between text-xs text-[#939084] mt-1",children:[e.jsx("span",{children:"1"}),e.jsx("span",{children:"50"})]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("label",{className:"text-sm font-medium text-[#36342E]",children:"Hours coding per week"}),e.jsxs("span",{className:"text-sm font-semibold text-[#553DE9] tabular-nums",children:[s,"h"]})]}),e.jsx("input",{type:"range",min:5,max:60,value:s,onChange:r=>u(Number(r.target.value)),className:"w-full h-2 bg-[#ECEAE3] rounded-full appearance-none cursor-pointer accent-[#553DE9]"}),e.jsxs("div",{className:"flex justify-between text-xs text-[#939084] mt-1",children:[e.jsx("span",{children:"5h"}),e.jsx("span",{children:"60h"})]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("label",{className:"text-sm font-medium text-[#36342E]",children:"Average hourly rate"}),e.jsxs("span",{className:"text-sm font-semibold text-[#553DE9] tabular-nums",children:["$",n,"/hr"]})]}),e.jsx("input",{type:"range",min:25,max:250,step:5,value:n,onChange:r=>c(Number(r.target.value)),className:"w-full h-2 bg-[#ECEAE3] rounded-full appearance-none cursor-pointer accent-[#553DE9]"}),e.jsxs("div",{className:"flex justify-between text-xs text-[#939084] mt-1",children:[e.jsx("span",{children:"$25"}),e.jsx("span",{children:"$250"})]})]})]}),e.jsxs("div",{className:"mt-6 pt-6 border-t border-[#ECEAE3]",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4 text-center",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-2xl font-bold text-[#553DE9]",children:e.jsx(f,{value:i,suffix:"h"})}),e.jsx("div",{className:"text-xs text-[#6B6960] mt-1",children:"Est. hours saved / month"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-2xl font-bold text-[#1FC5A8]",children:e.jsx(f,{value:d,prefix:"$"})}),e.jsx("div",{className:"text-xs text-[#6B6960] mt-1",children:"Est. cost saved / month"})]})]}),e.jsxs("div",{className:"mt-4 p-3 rounded-lg bg-[#553DE9]/5 border border-[#553DE9]/10",children:[e.jsxs("p",{className:"text-sm text-[#36342E] text-center",children:["If Loki Mode saved ",Math.round(a*100),"% of coding time, your team could save"," ",e.jsxs("span",{className:"font-bold text-[#553DE9]",children:[i.toLocaleString()," hours"]})," ","and"," ",e.jsxs("span",{className:"font-bold text-[#1FC5A8]",children:["$",d.toLocaleString()]})," ","per month."]}),e.jsxs("p",{className:"mt-2 text-xs text-[#6B6960] text-center",children:["The ",Math.round(a*100),"% is an assumption, not a measurement. Model and API spend is not included."]})]})]})]})}const j=[{feature:"Claude (Opus/Sonnet/Haiku)",category:"AI Models",lokiMode:!0,boltNew:!1,replit:!1,lovable:!0},{feature:"Any model via opencode (OpenRouter, local)",category:"AI Models",lokiMode:!0,boltNew:!1,replit:!1,lovable:!1},{feature:"Provider auto-failover (Claude Code, opencode)",category:"AI Models",lokiMode:!0,boltNew:!1,replit:!1,lovable:!1},{feature:"8 automated quality gates",category:"Quality",lokiMode:!0,boltNew:!1,replit:!1,lovable:!1},{feature:"Blind 3-reviewer code review",category:"Quality",lokiMode:!0,boltNew:!1,replit:!1,lovable:!1},{feature:"Anti-sycophancy checks",category:"Quality",lokiMode:!0,boltNew:!1,replit:!1,lovable:!1},{feature:"Automated test generation",category:"Quality",lokiMode:!0,boltNew:!1,replit:"Partial",lovable:!1},{feature:"Docker container generation",category:"Deployment",lokiMode:!0,boltNew:!1,replit:!0,lovable:!1},{feature:"CI/CD pipeline generation",category:"Deployment",lokiMode:!0,boltNew:!1,replit:!1,lovable:!1},{feature:"One-click cloud deploy",category:"Deployment",lokiMode:"Planned",boltNew:!0,replit:!0,lovable:!0},{feature:"Self-hosted (your keys)",category:"Cost",lokiMode:!0,boltNew:!1,replit:!1,lovable:!1},{feature:"Free tier available",category:"Cost",lokiMode:"Source-available (BUSL-1.1)",boltNew:!0,replit:!0,lovable:!0},{feature:"No vendor lock-in",category:"Cost",lokiMode:!0,boltNew:!1,replit:!1,lovable:!1},{feature:"SSO / OIDC authentication",category:"Enterprise",lokiMode:!0,boltNew:!1,replit:!0,lovable:!1},{feature:"RBAC access control",category:"Enterprise",lokiMode:!0,boltNew:!1,replit:!0,lovable:!1},{feature:"Audit logging",category:"Enterprise",lokiMode:!0,boltNew:!1,replit:!0,lovable:!1},{feature:"Air-gapped deployment",category:"Enterprise",lokiMode:!0,boltNew:!1,replit:!1,lovable:!1}];function y(){return e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",className:"text-[#1FC5A8]",children:e.jsx("path",{d:"M20 6L9 17l-5-5",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function w(){return e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",className:"text-[#C45B5B]/40",children:e.jsx("path",{d:"M18 6L6 18M6 6l12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function x({value:l}){return typeof l=="string"?e.jsx("span",{className:"text-xs text-[#6B6960] font-medium",children:l}):l?e.jsx(y,{}):e.jsx(w,{})}const k=[{title:"Full Autonomy",description:"Describe what you want. Loki Mode handles planning, coding, testing, and verification automatically.",icon:e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"text-[#553DE9]",children:e.jsx("path",{d:"M13 2L3 14h9l-1 8 10-12h-9l1-8z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},{title:"Production Quality",description:"8 quality gates, blind code review, and anti-sycophancy checks ensure code that actually works.",icon:e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"text-[#1FC5A8]",children:e.jsx("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},{title:"Your Infrastructure",description:"Self-hosted, source-available (BUSL-1.1), no data leaves your network. Use your own API keys across 5 providers.",icon:e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"text-[#2F71E3]",children:[e.jsx("rect",{x:"2",y:"2",width:"20",height:"8",rx:"2",stroke:"currentColor",strokeWidth:"2"}),e.jsx("rect",{x:"2",y:"14",width:"20",height:"8",rx:"2",stroke:"currentColor",strokeWidth:"2"}),e.jsx("circle",{cx:"6",cy:"6",r:"1",fill:"currentColor"}),e.jsx("circle",{cx:"6",cy:"18",r:"1",fill:"currentColor"})]})},{title:"Built for Teams",description:"Enterprise auth, RBAC, audit logs, and parallel workflows for teams of any size.",icon:e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"text-[#E93D82]",children:[e.jsx("path",{d:"M17 21v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("circle",{cx:"9",cy:"7",r:"4",stroke:"currentColor",strokeWidth:"2"}),e.jsx("path",{d:"M23 21v-2a4 4 0 00-3-3.87M16 3.13a4 4 0 010 7.75",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}];function C(){const l=[...new Set(j.map(t=>t.category))];return e.jsx("div",{className:"min-h-screen bg-[#FAF9F6]",children:e.jsxs("div",{className:"max-w-6xl mx-auto px-6 py-8",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-2xl font-bold text-[#36342E]",children:"Compare"}),e.jsx("p",{className:"text-[#6B6960] mt-1",children:"See how Loki Mode stacks up against other AI development platforms."})]}),e.jsx("div",{className:"bg-white border border-[#ECEAE3] rounded-xl overflow-hidden shadow-sm",children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-[#ECEAE3]",children:[e.jsx("th",{className:"text-left px-4 py-3 font-medium text-[#6B6960] w-[240px]",children:"Feature"}),e.jsx("th",{className:"text-center px-4 py-3 font-bold text-[#553DE9] bg-[#553DE9]/5 w-[130px]",children:"Loki Mode"}),e.jsx("th",{className:"text-center px-4 py-3 font-medium text-[#6B6960] w-[130px]",children:"bolt.new"}),e.jsx("th",{className:"text-center px-4 py-3 font-medium text-[#6B6960] w-[130px]",children:"Replit"}),e.jsx("th",{className:"text-center px-4 py-3 font-medium text-[#6B6960] w-[130px]",children:"Lovable"})]})}),e.jsx("tbody",{children:l.map(t=>e.jsxs(e.Fragment,{children:[e.jsx("tr",{className:"bg-[#FAF9F6]",children:e.jsx("td",{colSpan:5,className:"px-4 py-2 text-xs font-bold text-[#939084] uppercase tracking-wider",children:t})},`cat-${t}`),j.filter(s=>s.category===t).map(s=>e.jsxs("tr",{className:"border-b border-[#ECEAE3] last:border-b-0",children:[e.jsx("td",{className:"px-4 py-2.5 text-[#36342E]",children:s.feature}),e.jsx("td",{className:"px-4 py-2.5 text-center bg-[#553DE9]/5",children:e.jsx("div",{className:"flex justify-center",children:e.jsx(x,{value:s.lokiMode})})}),e.jsx("td",{className:"px-4 py-2.5 text-center",children:e.jsx("div",{className:"flex justify-center",children:e.jsx(x,{value:s.boltNew})})}),e.jsx("td",{className:"px-4 py-2.5 text-center",children:e.jsx("div",{className:"flex justify-center",children:e.jsx(x,{value:s.replit})})}),e.jsx("td",{className:"px-4 py-2.5 text-center",children:e.jsx("div",{className:"flex justify-center",children:e.jsx(x,{value:s.lovable})})})]},s.feature))]}))})]})})}),e.jsxs("div",{className:"mt-12",children:[e.jsx("h2",{className:"text-xl font-bold text-[#36342E] mb-6",children:"Why developers choose Loki Mode"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:k.map(t=>e.jsxs("div",{className:"bg-white border border-[#ECEAE3] rounded-xl p-5 shadow-sm hover:shadow-md transition-shadow",children:[e.jsx("div",{className:"mb-3",children:t.icon}),e.jsx("h3",{className:"text-base font-bold text-[#36342E] mb-1",children:t.title}),e.jsx("p",{className:"text-sm text-[#6B6960]",children:t.description})]},t.title))})]}),e.jsx("div",{className:"mt-12 max-w-xl mx-auto",children:e.jsx(g,{})})]})})}export{C as default};
|
|
1
|
+
import{r as o,j as e}from"./index-8TqwI_NF.js";function f({value:l,prefix:t="",suffix:s=""}){const[u,n]=o.useState(0),c=o.useRef(0);return o.useEffect(()=>{const a=c.current,h=l-a;if(h===0)return;const i=600,d=performance.now();function r(b){const v=b-d,m=Math.min(v/i,1),N=1-Math.pow(1-m,3),p=Math.round(a+h*N);n(p),c.current=p,m<1&&requestAnimationFrame(r)}requestAnimationFrame(r)},[l]),e.jsxs("span",{className:"tabular-nums",children:[t,u.toLocaleString(),s]})}function g(){const[l,t]=o.useState(5),[s,u]=o.useState(30),[n,c]=o.useState(75),a=.4,i=Math.round(l*s*a*4.33),d=Math.round(i*n);return e.jsxs("div",{className:"bg-white border border-[#ECEAE3] rounded-xl p-6 shadow-sm",children:[e.jsx("h3",{className:"text-lg font-bold text-[#36342E] mb-1",children:"ROI Calculator"}),e.jsx("p",{className:"text-sm text-[#6B6960] mb-6",children:"Estimate how much your team could save with autonomous development."}),e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("label",{className:"text-sm font-medium text-[#36342E]",children:"Team size"}),e.jsxs("span",{className:"text-sm font-semibold text-[#553DE9] tabular-nums",children:[l," developers"]})]}),e.jsx("input",{type:"range",min:1,max:50,value:l,onChange:r=>t(Number(r.target.value)),className:"w-full h-2 bg-[#ECEAE3] rounded-full appearance-none cursor-pointer accent-[#553DE9]"}),e.jsxs("div",{className:"flex justify-between text-xs text-[#939084] mt-1",children:[e.jsx("span",{children:"1"}),e.jsx("span",{children:"50"})]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("label",{className:"text-sm font-medium text-[#36342E]",children:"Hours coding per week"}),e.jsxs("span",{className:"text-sm font-semibold text-[#553DE9] tabular-nums",children:[s,"h"]})]}),e.jsx("input",{type:"range",min:5,max:60,value:s,onChange:r=>u(Number(r.target.value)),className:"w-full h-2 bg-[#ECEAE3] rounded-full appearance-none cursor-pointer accent-[#553DE9]"}),e.jsxs("div",{className:"flex justify-between text-xs text-[#939084] mt-1",children:[e.jsx("span",{children:"5h"}),e.jsx("span",{children:"60h"})]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("label",{className:"text-sm font-medium text-[#36342E]",children:"Average hourly rate"}),e.jsxs("span",{className:"text-sm font-semibold text-[#553DE9] tabular-nums",children:["$",n,"/hr"]})]}),e.jsx("input",{type:"range",min:25,max:250,step:5,value:n,onChange:r=>c(Number(r.target.value)),className:"w-full h-2 bg-[#ECEAE3] rounded-full appearance-none cursor-pointer accent-[#553DE9]"}),e.jsxs("div",{className:"flex justify-between text-xs text-[#939084] mt-1",children:[e.jsx("span",{children:"$25"}),e.jsx("span",{children:"$250"})]})]})]}),e.jsxs("div",{className:"mt-6 pt-6 border-t border-[#ECEAE3]",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4 text-center",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-2xl font-bold text-[#553DE9]",children:e.jsx(f,{value:i,suffix:"h"})}),e.jsx("div",{className:"text-xs text-[#6B6960] mt-1",children:"Est. hours saved / month"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-2xl font-bold text-[#1FC5A8]",children:e.jsx(f,{value:d,prefix:"$"})}),e.jsx("div",{className:"text-xs text-[#6B6960] mt-1",children:"Est. cost saved / month"})]})]}),e.jsxs("div",{className:"mt-4 p-3 rounded-lg bg-[#553DE9]/5 border border-[#553DE9]/10",children:[e.jsxs("p",{className:"text-sm text-[#36342E] text-center",children:["If Loki Mode saved ",Math.round(a*100),"% of coding time, your team could save"," ",e.jsxs("span",{className:"font-bold text-[#553DE9]",children:[i.toLocaleString()," hours"]})," ","and"," ",e.jsxs("span",{className:"font-bold text-[#1FC5A8]",children:["$",d.toLocaleString()]})," ","per month."]}),e.jsxs("p",{className:"mt-2 text-xs text-[#6B6960] text-center",children:["The ",Math.round(a*100),"% is an assumption, not a measurement. Model and API spend is not included."]})]})]})]})}const j=[{feature:"Claude (Opus/Sonnet/Haiku)",category:"AI Models",lokiMode:!0,boltNew:!1,replit:!1,lovable:!0},{feature:"Any model via opencode (OpenRouter, local)",category:"AI Models",lokiMode:!0,boltNew:!1,replit:!1,lovable:!1},{feature:"Provider auto-failover (Claude Code, opencode)",category:"AI Models",lokiMode:!0,boltNew:!1,replit:!1,lovable:!1},{feature:"8 automated quality gates",category:"Quality",lokiMode:!0,boltNew:!1,replit:!1,lovable:!1},{feature:"Blind 3-reviewer code review",category:"Quality",lokiMode:!0,boltNew:!1,replit:!1,lovable:!1},{feature:"Anti-sycophancy checks",category:"Quality",lokiMode:!0,boltNew:!1,replit:!1,lovable:!1},{feature:"Automated test generation",category:"Quality",lokiMode:!0,boltNew:!1,replit:"Partial",lovable:!1},{feature:"Docker container generation",category:"Deployment",lokiMode:!0,boltNew:!1,replit:!0,lovable:!1},{feature:"CI/CD pipeline generation",category:"Deployment",lokiMode:!0,boltNew:!1,replit:!1,lovable:!1},{feature:"One-click cloud deploy",category:"Deployment",lokiMode:"Planned",boltNew:!0,replit:!0,lovable:!0},{feature:"Self-hosted (your keys)",category:"Cost",lokiMode:!0,boltNew:!1,replit:!1,lovable:!1},{feature:"Free tier available",category:"Cost",lokiMode:"Source-available (BUSL-1.1)",boltNew:!0,replit:!0,lovable:!0},{feature:"No vendor lock-in",category:"Cost",lokiMode:!0,boltNew:!1,replit:!1,lovable:!1},{feature:"SSO / OIDC authentication",category:"Enterprise",lokiMode:!0,boltNew:!1,replit:!0,lovable:!1},{feature:"RBAC access control",category:"Enterprise",lokiMode:!0,boltNew:!1,replit:!0,lovable:!1},{feature:"Audit logging",category:"Enterprise",lokiMode:!0,boltNew:!1,replit:!0,lovable:!1},{feature:"Air-gapped deployment",category:"Enterprise",lokiMode:!0,boltNew:!1,replit:!1,lovable:!1}];function y(){return e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",className:"text-[#1FC5A8]",children:e.jsx("path",{d:"M20 6L9 17l-5-5",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function w(){return e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",className:"text-[#C45B5B]/40",children:e.jsx("path",{d:"M18 6L6 18M6 6l12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function x({value:l}){return typeof l=="string"?e.jsx("span",{className:"text-xs text-[#6B6960] font-medium",children:l}):l?e.jsx(y,{}):e.jsx(w,{})}const k=[{title:"Full Autonomy",description:"Describe what you want. Loki Mode handles planning, coding, testing, and verification automatically.",icon:e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"text-[#553DE9]",children:e.jsx("path",{d:"M13 2L3 14h9l-1 8 10-12h-9l1-8z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},{title:"Production Quality",description:"8 quality gates, blind code review, and anti-sycophancy checks ensure code that actually works.",icon:e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"text-[#1FC5A8]",children:e.jsx("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},{title:"Your Infrastructure",description:"Self-hosted, source-available (BUSL-1.1), no data leaves your network. Use your own API keys across 5 providers.",icon:e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"text-[#2F71E3]",children:[e.jsx("rect",{x:"2",y:"2",width:"20",height:"8",rx:"2",stroke:"currentColor",strokeWidth:"2"}),e.jsx("rect",{x:"2",y:"14",width:"20",height:"8",rx:"2",stroke:"currentColor",strokeWidth:"2"}),e.jsx("circle",{cx:"6",cy:"6",r:"1",fill:"currentColor"}),e.jsx("circle",{cx:"6",cy:"18",r:"1",fill:"currentColor"})]})},{title:"Built for Teams",description:"Enterprise auth, RBAC, audit logs, and parallel workflows for teams of any size.",icon:e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"text-[#E93D82]",children:[e.jsx("path",{d:"M17 21v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("circle",{cx:"9",cy:"7",r:"4",stroke:"currentColor",strokeWidth:"2"}),e.jsx("path",{d:"M23 21v-2a4 4 0 00-3-3.87M16 3.13a4 4 0 010 7.75",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}];function C(){const l=[...new Set(j.map(t=>t.category))];return e.jsx("div",{className:"min-h-screen bg-[#FAF9F6]",children:e.jsxs("div",{className:"max-w-6xl mx-auto px-6 py-8",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-2xl font-bold text-[#36342E]",children:"Compare"}),e.jsx("p",{className:"text-[#6B6960] mt-1",children:"See how Loki Mode stacks up against other AI development platforms."})]}),e.jsx("div",{className:"bg-white border border-[#ECEAE3] rounded-xl overflow-hidden shadow-sm",children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-[#ECEAE3]",children:[e.jsx("th",{className:"text-left px-4 py-3 font-medium text-[#6B6960] w-[240px]",children:"Feature"}),e.jsx("th",{className:"text-center px-4 py-3 font-bold text-[#553DE9] bg-[#553DE9]/5 w-[130px]",children:"Loki Mode"}),e.jsx("th",{className:"text-center px-4 py-3 font-medium text-[#6B6960] w-[130px]",children:"bolt.new"}),e.jsx("th",{className:"text-center px-4 py-3 font-medium text-[#6B6960] w-[130px]",children:"Replit"}),e.jsx("th",{className:"text-center px-4 py-3 font-medium text-[#6B6960] w-[130px]",children:"Lovable"})]})}),e.jsx("tbody",{children:l.map(t=>e.jsxs(e.Fragment,{children:[e.jsx("tr",{className:"bg-[#FAF9F6]",children:e.jsx("td",{colSpan:5,className:"px-4 py-2 text-xs font-bold text-[#939084] uppercase tracking-wider",children:t})},`cat-${t}`),j.filter(s=>s.category===t).map(s=>e.jsxs("tr",{className:"border-b border-[#ECEAE3] last:border-b-0",children:[e.jsx("td",{className:"px-4 py-2.5 text-[#36342E]",children:s.feature}),e.jsx("td",{className:"px-4 py-2.5 text-center bg-[#553DE9]/5",children:e.jsx("div",{className:"flex justify-center",children:e.jsx(x,{value:s.lokiMode})})}),e.jsx("td",{className:"px-4 py-2.5 text-center",children:e.jsx("div",{className:"flex justify-center",children:e.jsx(x,{value:s.boltNew})})}),e.jsx("td",{className:"px-4 py-2.5 text-center",children:e.jsx("div",{className:"flex justify-center",children:e.jsx(x,{value:s.replit})})}),e.jsx("td",{className:"px-4 py-2.5 text-center",children:e.jsx("div",{className:"flex justify-center",children:e.jsx(x,{value:s.lovable})})})]},s.feature))]}))})]})})}),e.jsxs("div",{className:"mt-12",children:[e.jsx("h2",{className:"text-xl font-bold text-[#36342E] mb-6",children:"Why developers choose Loki Mode"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:k.map(t=>e.jsxs("div",{className:"bg-white border border-[#ECEAE3] rounded-xl p-5 shadow-sm hover:shadow-md transition-shadow",children:[e.jsx("div",{className:"mb-3",children:t.icon}),e.jsx("h3",{className:"text-base font-bold text-[#36342E] mb-1",children:t.title}),e.jsx("p",{className:"text-sm text-[#6B6960]",children:t.description})]},t.title))})]}),e.jsx("div",{className:"mt-12 max-w-xl mx-auto",children:e.jsx(g,{})})]})})}export{C as default};
|
package/web-app/dist/assets/{EvidenceReceiptPanel-BoPcm5Uy.js → EvidenceReceiptPanel-DzbcVDL0.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as l,a as x,j as e}from"./index-
|
|
1
|
+
import{r as l,a as x,j as e}from"./index-8TqwI_NF.js";const N={verified:{badge:"bg-success/10 text-success border-success/20",dot:"bg-success",label:"Verified",proven:"The server recomputed the integrity hash and it matches, and the gpg signature verified against its keyring.",notProven:"That the code is correct, or that the recorded diff still matches your repo. A receipt records which checks ran, not that the result is right."},unsigned:{badge:"bg-warning/10 text-warning border-warning/20",dot:"bg-warning",label:"Unsigned",proven:"The server recomputed the integrity hash and it matches these receipt bytes.",notProven:"Who produced it. An unsigned receipt is forgeable: whoever controls the builder can rewrite the facts and recompute the hash."},unchecked:{badge:"bg-warning/10 text-warning border-warning/20",dot:"bg-warning",label:"Not checked",proven:"The server recomputed the integrity hash and it matches.",notProven:"Provenance. A signature is present but was not evaluated here, which is not the same as a bad signature."},tampered:{badge:"bg-danger/10 text-danger border-danger/20",dot:"bg-danger",label:"Tampered",proven:"Nothing. The server recomputed the integrity hash and it does not match the contents.",notProven:"Anything at all. This receipt was edited after it was written. Do not trust this build."},failed:{badge:"bg-danger/10 text-danger border-danger/20",dot:"bg-danger",label:"Failed verification",proven:"Nothing. A verification check ran on the server and said no.",notProven:"Anything the receipt claims. Read the reason below."},not_verified:{badge:"border-muted/20 text-muted",dot:"bg-muted/40",label:"Not verified here",proven:"Nothing. No verification result was computed for this receipt here.",notProven:"Integrity or provenance. Run the command below to check it yourself."}};function w(t){const n=t==null?void 0:t.integrity_check,r=t==null?void 0:t.verification;return n?n.status==="tampered"?"tampered":n.status==="failed"?"failed":n.status!=="verified"?"not_verified":n.gpg_ok===!0?"verified":r!=null&&r.attestation||r!=null&&r.gpg_signature?"unchecked":"unsigned":"not_verified"}const v=[{key:"verified",label:"Verified",bar:"bg-success",text:"text-success"},{key:"with_gaps",label:"With gaps",bar:"bg-warning",text:"text-warning"},{key:"not_verified",label:"Not verified",bar:"bg-danger",text:"text-danger"},{key:"unknown",label:"Unknown",bar:"bg-muted/40",text:"text-muted"}];function y({summary:t}){const n=t.total_receipts;return n?e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"flex h-1.5 rounded-full overflow-hidden bg-muted/10",children:v.map(({key:r,bar:s})=>{const i=t[r];return i?e.jsx("div",{className:s,style:{width:`${i/n*100}%`},title:`${i} ${r}`},r):null})}),e.jsx("div",{className:"flex flex-wrap gap-x-4 gap-y-1 text-xs",children:v.map(({key:r,label:s,text:i})=>{const c=t[r];return c?e.jsxs("span",{className:i,children:[e.jsx("span",{className:"font-semibold",children:c})," ",s.toLowerCase()]},r):null})}),e.jsxs("p",{className:"text-muted text-xs",children:["Recorded verdicts across ",n," receipt",n===1?"":"s",", not re-verified here."]})]}):null}function u({label:t,value:n}){return e.jsxs("div",{className:"flex items-baseline gap-2 text-xs",children:[e.jsx("span",{className:"text-muted w-28 flex-shrink-0",children:t}),e.jsx("span",{className:"font-mono truncate",title:n,children:n})]})}function k({proof:t}){var m,p,g,f,b;const[n,r]=l.useState(!1),[s,i]=l.useState(null),[c,d]=l.useState(null);l.useEffect(()=>{if(!n||s||c)return;let o=!1;return x.getProof(t.run_id).then(h=>{o||i(h)}).catch(h=>{o||d((h==null?void 0:h.message)||"could not load this receipt")}),()=>{o=!0}},[n,t.run_id,s,c]);const a=N[w(s)],j=t.generated_at?new Date(t.generated_at).toLocaleString():"unknown";return e.jsxs("div",{className:`border rounded-card overflow-hidden ${s?a.badge:"border-muted/20"}`,children:[e.jsxs("button",{type:"button",className:"w-full flex items-center gap-3 px-3 py-2.5 text-left",onClick:()=>r(!n),"aria-expanded":n,children:[e.jsx("span",{className:`w-2 h-2 rounded-full flex-shrink-0 ${s?a.dot:"bg-muted/40"}`}),e.jsx("span",{className:"text-sm font-medium flex-1 truncate",children:t.headline?`Recorded: ${t.headline}`:t.run_id}),t.final_verdict&&e.jsxs("span",{className:"text-xs font-mono uppercase tracking-wider flex-shrink-0 text-muted",children:["council ",t.final_verdict]}),e.jsx("span",{className:"text-muted text-xs flex-shrink-0",children:n?"−":"+"})]}),n&&e.jsxs("div",{className:"px-3 pb-3 space-y-3 border-t border-current/10 pt-3",children:[c&&e.jsxs("p",{className:"text-xs text-danger",children:["Could not load this receipt: ",c]}),!c&&!s&&e.jsx("p",{className:"text-xs text-muted",children:"Loading receipt…"}),s&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{label:"Run",value:s.run_id}),e.jsx(u,{label:"Generated",value:j}),e.jsx(u,{label:"Loki version",value:s.loki_version||"unknown"}),e.jsx(u,{label:"Cost",value:typeof((m=s.cost)==null?void 0:m.usd)=="number"?`${s.cost.cost_partial===!0?"at least ":""}$${s.cost.usd.toFixed(2)}`:"unknown"}),e.jsx(u,{label:"Files changed",value:typeof((p=s.files_changed)==null?void 0:p.count)=="number"?String(s.files_changed.count):"unknown"}),((g=s.verification)==null?void 0:g.hash)&&e.jsx(u,{label:"Recorded hash",value:s.verification.hash})]}),e.jsxs("div",{className:`rounded-card border px-3 py-2 ${a.badge}`,children:[e.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider mb-1",children:a.label}),e.jsxs("p",{className:"text-xs mb-1",children:[e.jsx("span",{className:"font-semibold",children:"Proven: "}),a.proven]}),e.jsxs("p",{className:"text-xs opacity-80",children:[e.jsx("span",{className:"font-semibold",children:"Not proven: "}),a.notProven]}),(((f=s.integrity_check)==null?void 0:f.reasons)||[]).slice(0,2).map(o=>e.jsx("p",{className:"text-xs opacity-80 mt-1",children:o},o))]}),e.jsxs("p",{className:"text-xs text-muted",children:["Verify it yourself (also re-derives the diff against your repo):"," ",e.jsxs("code",{className:"font-mono",children:["loki proof verify ",s.run_id,(b=s.verification)!=null&&b.attestation?" --jwks <url|file>":""]})]}),t.pr_url&&e.jsx("a",{href:t.pr_url,target:"_blank",rel:"noreferrer noopener",className:"text-xs text-primary underline",children:"View the pull request"})]})]})]})}function P(){const[t,n]=l.useState(null),[r,s]=l.useState(null),[i,c]=l.useState(null);return l.useEffect(()=>{let d=!1;return x.listProofs().then(a=>{d||n(a.proofs||[])}).catch(a=>{d||c((a==null?void 0:a.message)||"could not load receipts")}),x.proofsSummary().then(a=>{d||s(a)}).catch(()=>{}),()=>{d=!0}},[]),e.jsxs("section",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-sm font-semibold",children:"Evidence Receipts"}),e.jsx("p",{className:"text-muted text-xs mt-1",children:"What each build actually checked, recorded so you can verify it yourself."})]}),i&&e.jsxs("p",{className:"text-xs text-danger",children:["Could not load receipts: ",i]}),!i&&t===null&&e.jsx("p",{className:"text-xs text-muted",children:"Loading…"}),r&&e.jsx(y,{summary:r}),t!==null&&t.length===0&&e.jsxs("p",{className:"text-xs text-muted",children:["No receipts yet. One is written at the end of each run (set ",e.jsx("code",{className:"font-mono",children:"LOKI_PROOF=0"})," to opt out)."]}),e.jsx("div",{className:"space-y-2",children:t==null?void 0:t.map(d=>e.jsx(k,{proof:d},d.run_id))})]})}export{P as E};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as _,r as o,a as k,j as e,m as B,J as v,N as h,a5 as H,M as L,l as q}from"./index-
|
|
1
|
+
import{c as _,r as o,a as k,j as e,m as B,J as v,N as h,a5 as H,M as L,l as q}from"./index-8TqwI_NF.js";import{B as N}from"./Button-dbsRjgbK.js";import{C as y}from"./thumbs-up-CH-iPy2L.js";import{R as S}from"./refresh-cw-MCFH-IYf.js";import{C as z}from"./circle-alert-CFXh7q4_.js";import{U as D}from"./user-DP41l_sQ.js";import{L as G}from"./loader-circle-B6seK0mv.js";import{R as T}from"./rotate-ccw-DpGrHe4v.js";/**
|
|
2
2
|
* @license lucide-react v0.577.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as I,r as c,a as b,j as e,G as me,A as ue,S as Z,k as ee,m as pe,h as he,p as fe,X as te,M as be}from"./index-
|
|
1
|
+
import{c as I,r as c,a as b,j as e,G as me,A as ue,S as Z,k as ee,m as pe,h as he,p as fe,X as te,M as be}from"./index-8TqwI_NF.js";import{B as y}from"./Button-dbsRjgbK.js";import{C as ge}from"./chevron-left-z43N9oQm.js";import{G as P}from"./thumbs-up-CH-iPy2L.js";import{R as $}from"./refresh-cw-MCFH-IYf.js";import{C as Ne}from"./circle-alert-CFXh7q4_.js";import{L as Q,S as je}from"./ProjectPage-BYpWEnfs.js";import{S as se}from"./shield-alert-QMLIe6EO.js";import{F as ye}from"./file-code-corner-CUf4Ao24.js";import{C as V}from"./clock-C5XlY5gQ.js";import{C as re}from"./check-b7nwLuDG.js";import"./ErrorBoundary-KGmneVKo.js";import"./TerminalOutput-6g4gZVbt.js";import"./lock-BokWI7Bq.js";import"./package-Bwj3Yy9P.js";import"./file-plus-DiPFi2oQ.js";import"./activity-kKs9rNVl.js";import"./scroll-text-AlMeqOJW.js";import"./bot-CTiUgNPd.js";import"./loader-circle-B6seK0mv.js";import"./hammer-CPLZcW5e.js";import"./dollar-sign-DYcrnk0S.js";import"./globe-2vq90XD6.js";import"./trash-2-CC40OFfT.js";import"./upload-EHu6t2yj.js";import"./plus-DDtdbe28.js";import"./rotate-ccw-DpGrHe4v.js";import"./code-xml-D0-7LFV7.js";import"./trending-up-M8yk4S0A.js";import"./layers-DkjwiuGI.js";import"./trending-down-BkpkaJJX.js";import"./server-DlQAxyoR.js";/**
|
|
2
2
|
* @license lucide-react v0.577.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|