loki-mode 11.114.0 → 11.116.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/SKILL.md +2 -2
  2. package/VERSION +1 -1
  3. package/autonomy/loki +30 -129
  4. package/autonomy/quickstart.sh +25 -42
  5. package/autonomy/route.sh +42 -9
  6. package/bin/loki +38 -24
  7. package/dashboard/__init__.py +1 -1
  8. package/docs/CLI-REFERENCE.md +1 -1
  9. package/docs/INSTALLATION.md +2 -2
  10. package/docs/environment-variables.md +13 -0
  11. package/docs/exit-codes.md +1 -1
  12. package/docs/v10/GUIDE.md +15 -12
  13. package/loki-ts/dist/loki.js +1549 -1545
  14. package/mcp/__init__.py +1 -1
  15. package/package.json +2 -2
  16. package/packages/control-plane/dist/server.js +583 -417
  17. package/plugins/loki-mode/.claude-plugin/plugin.json +1 -1
  18. package/web-app/dist/assets/{AdminPage-DHD5YwZO.js → AdminPage-B5dlG5el.js} +1 -1
  19. package/web-app/dist/assets/{Avatar-DbmXZYj_.js → Avatar-Bab2uElK.js} +1 -1
  20. package/web-app/dist/assets/{Badge-Nq9IlKbi.js → Badge-BSjZ0T8J.js} +1 -1
  21. package/web-app/dist/assets/{Button-BB29bg4G.js → Button-CWOAU3Ws.js} +1 -1
  22. package/web-app/dist/assets/{CockpitPage-D3WGuYal.js → CockpitPage-Bvpo6mDF.js} +1 -1
  23. package/web-app/dist/assets/{ComparePage-Dc7txTbc.js → ComparePage-BvzhShe2.js} +1 -1
  24. package/web-app/dist/assets/{ErrorBoundary-DO85OYYt.js → ErrorBoundary-CYxxoxoW.js} +1 -1
  25. package/web-app/dist/assets/{EvidenceReceiptPanel-BX36iUDO.js → EvidenceReceiptPanel-BD0RsrHu.js} +1 -1
  26. package/web-app/dist/assets/{GitHubIssuesPanel-BC-rWDVk.js → GitHubIssuesPanel-CaRetFLU.js} +1 -1
  27. package/web-app/dist/assets/{GitHubPRsPanel-DozNklyN.js → GitHubPRsPanel-BC6Iffcb.js} +1 -1
  28. package/web-app/dist/assets/{HomePage-CvlpZnMF.js → HomePage-D1IjGD40.js} +2 -2
  29. package/web-app/dist/assets/{LoginPage-D8triQep.js → LoginPage-DnDOZ3Il.js} +1 -1
  30. package/web-app/dist/assets/{MagicPage-CJ3w-QA1.js → MagicPage-Dx4WfAVu.js} +1 -1
  31. package/web-app/dist/assets/{MetricsPage-DkeWF6w_.js → MetricsPage-DmpkRAXC.js} +1 -1
  32. package/web-app/dist/assets/{NotFoundPage-C6ug2gpC.js → NotFoundPage-DDYC654O.js} +1 -1
  33. package/web-app/dist/assets/{ProjectPage-DW2tYr2l.js → ProjectPage-5dyFZ7dM.js} +3 -3
  34. package/web-app/dist/assets/{ProjectsPage-BdFBxCoq.js → ProjectsPage-DGtZ1RW0.js} +1 -1
  35. package/web-app/dist/assets/{SettingsPage-DXfa2-qh.js → SettingsPage-B1sIWqaV.js} +1 -1
  36. package/web-app/dist/assets/{ShowcasePage-BYHFTJCy.js → ShowcasePage-C2Duj0oT.js} +1 -1
  37. package/web-app/dist/assets/{SystemSettingsPage-3XJw6IrI.js → SystemSettingsPage-QZg4JOWh.js} +1 -1
  38. package/web-app/dist/assets/{TeamsPage-TeTfhM1F.js → TeamsPage-BHpvKiOI.js} +1 -1
  39. package/web-app/dist/assets/{TemplatesPage-D43YOPTJ.js → TemplatesPage-D3b1K5Dw.js} +1 -1
  40. package/web-app/dist/assets/{TerminalOutput-BPnAqK64.js → TerminalOutput-dld3b0of.js} +1 -1
  41. package/web-app/dist/assets/{activity-DCCAY929.js → activity-B4ylAQDl.js} +1 -1
  42. package/web-app/dist/assets/{bell-BsVsHi3h.js → bell-Bls9OEWN.js} +1 -1
  43. package/web-app/dist/assets/{bot-BbN7wMZX.js → bot-QyeML0Oe.js} +1 -1
  44. package/web-app/dist/assets/{check-Tyk1mrdH.js → check-C-plZ5CV.js} +1 -1
  45. package/web-app/dist/assets/{chevron-left-DBBD8bZs.js → chevron-left-d57cmm31.js} +1 -1
  46. package/web-app/dist/assets/{circle-alert-BFBU13St.js → circle-alert-Bl4z_Nls.js} +1 -1
  47. package/web-app/dist/assets/{clock-Bkk7v3pN.js → clock-Dc9IIh_7.js} +1 -1
  48. package/web-app/dist/assets/{cloud-DdxKGfzC.js → cloud-BPhq0qv3.js} +1 -1
  49. package/web-app/dist/assets/{code-xml--6j3vK62.js → code-xml-D5e42YHJ.js} +1 -1
  50. package/web-app/dist/assets/{database-wgf6WWvv.js → database-CrHsz_4f.js} +1 -1
  51. package/web-app/dist/assets/{dollar-sign-CRCXoq4I.js → dollar-sign-CkwMnrxY.js} +1 -1
  52. package/web-app/dist/assets/{file-code-corner-D6IDMxIq.js → file-code-corner-BqLzM26v.js} +1 -1
  53. package/web-app/dist/assets/{file-plus-DLz_nZaL.js → file-plus-B4hum1Tf.js} +1 -1
  54. package/web-app/dist/assets/{globe-DXXv2npn.js → globe-BIEBiEDm.js} +1 -1
  55. package/web-app/dist/assets/{hammer-DgV8WFmY.js → hammer-LttQI71F.js} +1 -1
  56. package/web-app/dist/assets/{index-CuuEG3hc.js → index-CFZIL1az.js} +3 -3
  57. package/web-app/dist/assets/{layers-BtKE0z6S.js → layers-BpcHvHZ0.js} +1 -1
  58. package/web-app/dist/assets/{loader-circle-DhmVhPNf.js → loader-circle-BvdWWTj3.js} +1 -1
  59. package/web-app/dist/assets/{lock-BJZysQgx.js → lock-Cchd7ncO.js} +1 -1
  60. package/web-app/dist/assets/{package-BFAOCws4.js → package-DxSPNuaj.js} +1 -1
  61. package/web-app/dist/assets/{plus-C8NOHg9l.js → plus-rGqbAdmh.js} +1 -1
  62. package/web-app/dist/assets/{refresh-cw-97PjfXPq.js → refresh-cw-Bkixpik7.js} +1 -1
  63. package/web-app/dist/assets/{rotate-ccw-Dpq_tfhl.js → rotate-ccw-Bvmzfrud.js} +1 -1
  64. package/web-app/dist/assets/{scroll-text-CxXHbR8d.js → scroll-text-DqDYjQF3.js} +1 -1
  65. package/web-app/dist/assets/{server-BcsDNKwP.js → server-pGWmzQrW.js} +1 -1
  66. package/web-app/dist/assets/{shield-alert-jSGg7ywe.js → shield-alert-D2SBqTl5.js} +1 -1
  67. package/web-app/dist/assets/{thumbs-up-CVARZVuU.js → thumbs-up-Bh9of3Mt.js} +1 -1
  68. package/web-app/dist/assets/{trash-2-DUYZejSc.js → trash-2-BejzTz1b.js} +1 -1
  69. package/web-app/dist/assets/{trending-down-DoEuZ_uI.js → trending-down-hqukNoxZ.js} +1 -1
  70. package/web-app/dist/assets/{trending-up-DSC8EGV3.js → trending-up-CA33tCdP.js} +1 -1
  71. package/web-app/dist/assets/{upload-D2k1cwYw.js → upload-gJzN5kEi.js} +1 -1
  72. package/web-app/dist/assets/{usePolling-DMhCgxhw.js → usePolling-C9Ikxf2V.js} +1 -1
  73. package/web-app/dist/assets/{user-CfFpJKIA.js → user-YHfELT0L.js} +1 -1
  74. package/web-app/dist/index.html +1 -1
@@ -144,6 +144,19 @@ behaviour has a switch rather than a fork.
144
144
  is told to fix problems without being told which, so it re-derives them from
145
145
  scratch every iteration -- the slowest and least accurate way to converge.
146
146
 
147
+ ### Opt-in extras
148
+
149
+ These add a model session or prompt text and are off by default, because the
150
+ head-to-head benchmark (`benchmarks/h2h/RESULTS.md`) showed them adding cost
151
+ with no gain in pass rate. Set each to `1` to turn it on.
152
+
153
+ | Variable | Default | Effect |
154
+ |---|---|---|
155
+ | `LOKI_REVIEW_DEFAULT` | off | With no reviewer configured, a medium risk run asks its own CLI for one code review before seal. Off, the receipt lists "one reviewer" as not proven. A high risk run gets that review by default either way, and a configured reviewer (`review:` in loki.yaml, `LOKI_REVIEW_PROVIDER`, a reviewer agent) always runs. |
156
+ | `LOKI_PR_LESSONS` | off | Adds lessons from earlier runs and merged PRs to the implement brief. Lessons are recorded either way. |
157
+ | `LOKI_WORKED_EXAMPLE` | off | Adds the closest earlier VERIFIED run as a short worked example to the implement brief. |
158
+ | `LOKI_E10_ALREADY_DONE_CHECK` | off | Runs the separate already-done confirmation on a direct task too. Issue tasks always get it; on a direct task the implement session reports already-done itself. |
159
+
147
160
  ### Verification depth (risk tier)
148
161
 
149
162
  The v10 verify stage classifies risk on the diff (the artifact), never on the
@@ -441,7 +441,7 @@ The JSON carries `engine`, `adapter`, `provider`, `model`, `input_type`, `input`
441
441
 
442
442
  - Argument order never changes the route: flags first or last, `--prd FILE` or a positional file, `--provider X` or `LOKI_PROVIDER=X`, `--engine X` or `LOKI_ENGINE=X` all resolve identically (the flag wins over the env var).
443
443
  - Default engine is `engine10` for a PRD file (`.md`, `.json`, `.yaml`), an issue reference (`owner/repo#N` or an issue URL), a multi-word task and a one-word brief.
444
- - The legacy engine runs only on `--engine legacy` or `LOKI_ENGINE=legacy`, for one call when a flag engine10 does not support is present (a notice is printed), for a provider with no engine10 invoker, or for a PRD larger than 100000 bytes.
444
+ - The legacy engine runs only on `--engine legacy` or `LOKI_ENGINE=legacy`, or for a PRD larger than 100000 bytes. A flag engine10 does not support, a provider with no engine10 invoker, and a machine with no working bun each exit 2 with the fix. Inside a repository, `loki start` or `loki quick` with no task exits 64 with the `loki "<goal>"` usage (after offering to resume an interrupted run); outside one, a bare `loki start` shows the offline sample receipt and exits 0.
445
445
  - `--engine engine10` with an unsupported flag is refused (exit 2) instead of rerouted.
446
446
  - A missing PRD file path is a usage error (exit 2).
447
447
  - Adapter is `<engine>:<provider>`, with the legacy engine written `legacy-bash:<provider>`.
package/docs/v10/GUIDE.md CHANGED
@@ -34,18 +34,21 @@ the same path. `-v` means `--verbose`, `--budget` and `--budget-limit` mean
34
34
  `--no-dashboard` are accepted and ignored. A PRD file path that does not exist
35
35
  exits 2 with "PRD file not found".
36
36
 
37
- The previous loop (autonomy/run.sh) runs only when:
38
-
39
- 1. you pass `--engine legacy` or set `LOKI_ENGINE=legacy` (`--engine engine10`
40
- forces Loki 10 and refuses a flag it cannot honor; the flag wins over the
41
- variable), or
42
- 2. the call carries a flag Loki 10 does not support (for example `--simple`,
43
- `--complex`, `--parallel`, `--github`, `--sandbox`, `--max-iterations`).
44
- Only that call goes to the previous loop, and one stderr line names the flag
45
- and the engine chosen, or
46
- 3. LOKI_PROVIDER (or `--provider`) names a provider Loki 10 has no invoker
47
- for (anything but claude, codex, cline, aider, opencode), or bun is missing, or the
48
- PRD is larger than 100000 bytes. One stderr line says why.
37
+ Inside a git repository, `loki start` and `loki quick` with no task resume an
38
+ interrupted run when there is one; otherwise they print the `loki "<goal>"`
39
+ usage and exit 64. A bare `loki start` takes `LOKI_PRD_FILE` as its PRD, and
40
+ outside a repository it shows the offline sample receipt. `loki demo` and
41
+ `loki quickstart` build with `loki start <prd>`, so they run Loki 10 too; in an
42
+ empty folder they create the repository first.
43
+
44
+ A flag Loki 10 does not support (for example `--simple`, `--parallel`,
45
+ `--github`, `--sandbox`, `--max-iterations`) is refused with exit 2 and a line
46
+ naming its replacement. A provider other than claude, codex, cline, aider or
47
+ opencode, or a machine with no working bun, also exits 2 with the fix.
48
+
49
+ The previous loop (autonomy/run.sh) runs only when you pass `--engine legacy`
50
+ or set `LOKI_ENGINE=legacy` (the flag wins over the variable), or when the PRD
51
+ is larger than 100000 bytes (one stderr line says why).
49
52
 
50
53
  `loki <word>` with a single bare word stays the command namespace (`loki doctor`),
51
54
  so use `loki start <word>` for a one-word brief. A first argument starting with