loki-mode 11.150.0 → 11.152.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SKILL.md +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/docs/dev/architecture-reference.md +1 -0
- package/docs/environment-variables.md +1 -0
- package/loki-ts/dist/loki.js +2022 -2002
- package/mcp/__init__.py +1 -1
- package/package.json +2 -2
- package/packages/control-plane/dist/server.js +1066 -629
- package/plugins/loki-mode/.claude-plugin/plugin.json +1 -1
- package/web-app/dist/assets/{AdminPage-CWvllXMU.js → AdminPage-PE4AZL7D.js} +1 -1
- package/web-app/dist/assets/{Avatar-DbIzu9K5.js → Avatar-DSKSMtms.js} +1 -1
- package/web-app/dist/assets/{Badge-BkwJ_zjf.js → Badge-B7MenaNC.js} +1 -1
- package/web-app/dist/assets/{Button-BSZFZnes.js → Button-w1Dkly6r.js} +1 -1
- package/web-app/dist/assets/{CockpitPage-BHE19UcW.js → CockpitPage-BDzgc_cw.js} +1 -1
- package/web-app/dist/assets/{ComparePage-Qc_U8g5V.js → ComparePage-C1lxtIqD.js} +1 -1
- package/web-app/dist/assets/{ErrorBoundary-DMTMbzOY.js → ErrorBoundary-CIUKkW3v.js} +1 -1
- package/web-app/dist/assets/{EvidenceReceiptPanel-CUvu3G5J.js → EvidenceReceiptPanel-3irfwXn0.js} +1 -1
- package/web-app/dist/assets/{GitHubIssuesPanel-DSLiaoBN.js → GitHubIssuesPanel-8-YcImUk.js} +1 -1
- package/web-app/dist/assets/{GitHubPRsPanel-Dbwpybpv.js → GitHubPRsPanel-CYFJPXlS.js} +1 -1
- package/web-app/dist/assets/{HomePage-uoRHVcYc.js → HomePage-CHmilgoW.js} +2 -2
- package/web-app/dist/assets/{LoginPage-TncMWNaS.js → LoginPage-B4iVxWhF.js} +1 -1
- package/web-app/dist/assets/{MagicPage-BXd8HWOW.js → MagicPage-Ds1hWKs_.js} +1 -1
- package/web-app/dist/assets/{MetricsPage-Xe6JSjOG.js → MetricsPage-CSmj9i-9.js} +1 -1
- package/web-app/dist/assets/{NotFoundPage-C8NhwJS4.js → NotFoundPage-BwYGtThw.js} +1 -1
- package/web-app/dist/assets/{ProjectPage-CvKJXdZy.js → ProjectPage-CQcyfWrI.js} +3 -3
- package/web-app/dist/assets/{ProjectsPage-D1zD1jAK.js → ProjectsPage-BofiyP0N.js} +1 -1
- package/web-app/dist/assets/{SettingsPage-Bz2Favev.js → SettingsPage-yBZ6gtRW.js} +1 -1
- package/web-app/dist/assets/{ShowcasePage-AzMKrTbB.js → ShowcasePage-CAQ2Eyxi.js} +1 -1
- package/web-app/dist/assets/{SystemSettingsPage-9Dt0NWyl.js → SystemSettingsPage-C7oyc5yv.js} +1 -1
- package/web-app/dist/assets/{TeamsPage-9cJ064XM.js → TeamsPage-CmEMd8pi.js} +1 -1
- package/web-app/dist/assets/{TemplatesPage-D_i5e94W.js → TemplatesPage-DHDNJt4B.js} +1 -1
- package/web-app/dist/assets/{TerminalOutput-CnGqnq7-.js → TerminalOutput-CvVB75WD.js} +1 -1
- package/web-app/dist/assets/{activity-Brd7abkc.js → activity-YWe5HHl1.js} +1 -1
- package/web-app/dist/assets/{bell-BnGIMbzr.js → bell-S1cFZU3e.js} +1 -1
- package/web-app/dist/assets/{bot-C3aB106t.js → bot-DFLqlRci.js} +1 -1
- package/web-app/dist/assets/{check-CH1ru0_N.js → check-CMSz_WCA.js} +1 -1
- package/web-app/dist/assets/{chevron-left-BQGiwphP.js → chevron-left-D0OYlQoM.js} +1 -1
- package/web-app/dist/assets/{circle-alert-C4H86w39.js → circle-alert-Cpkys85L.js} +1 -1
- package/web-app/dist/assets/{clock-B7F9sLEL.js → clock-aWGlxAfo.js} +1 -1
- package/web-app/dist/assets/{cloud-t0eSjq53.js → cloud-BoQ1ukGN.js} +1 -1
- package/web-app/dist/assets/{code-xml-CB4GHmBt.js → code-xml-DE1cQQY-.js} +1 -1
- package/web-app/dist/assets/{database-BOCWTeqT.js → database-0mNn2gEZ.js} +1 -1
- package/web-app/dist/assets/{dollar-sign-BOCuiqew.js → dollar-sign-DhVHLdXn.js} +1 -1
- package/web-app/dist/assets/{file-code-corner-EW2e6JpA.js → file-code-corner-Kdhlthsx.js} +1 -1
- package/web-app/dist/assets/{file-plus-Dnw62geu.js → file-plus-DC8Ol12M.js} +1 -1
- package/web-app/dist/assets/{globe-HuKuNaOb.js → globe-Dc20I0TQ.js} +1 -1
- package/web-app/dist/assets/{hammer-fgN1T0l1.js → hammer-bQSO5V22.js} +1 -1
- package/web-app/dist/assets/{index-BZKDbUua.js → index-qo4plPi9.js} +3 -3
- package/web-app/dist/assets/{layers-B3LVkwXz.js → layers-Cpg61897.js} +1 -1
- package/web-app/dist/assets/{loader-circle-BgD5tA9k.js → loader-circle-CWrV4VSZ.js} +1 -1
- package/web-app/dist/assets/{lock-BH1LlYZB.js → lock-BUAbIFbd.js} +1 -1
- package/web-app/dist/assets/{package-BeQCistp.js → package-D9crdKwa.js} +1 -1
- package/web-app/dist/assets/{plus-BuH4vmGj.js → plus-DQ47s2Pu.js} +1 -1
- package/web-app/dist/assets/{refresh-cw-D_098L9Q.js → refresh-cw-BpPNEb-w.js} +1 -1
- package/web-app/dist/assets/{rotate-ccw-Btm4s-hb.js → rotate-ccw-BlGqvWmT.js} +1 -1
- package/web-app/dist/assets/{scroll-text-BwVorFYw.js → scroll-text-CdoJqUVY.js} +1 -1
- package/web-app/dist/assets/{server-Crihwepu.js → server-DAeMHIWE.js} +1 -1
- package/web-app/dist/assets/{shield-alert-OBwnKWh5.js → shield-alert-Nog-1UpV.js} +1 -1
- package/web-app/dist/assets/{thumbs-up-CXl4cEB8.js → thumbs-up-aKWWv11P.js} +1 -1
- package/web-app/dist/assets/{trash-2-Bq0sbSvW.js → trash-2-CdLQoGGx.js} +1 -1
- package/web-app/dist/assets/{trending-down-DEGPy0_Q.js → trending-down-CHMgoZbL.js} +1 -1
- package/web-app/dist/assets/{trending-up-WBovgc0k.js → trending-up-CE85XyXv.js} +1 -1
- package/web-app/dist/assets/{upload-Bfbx8_79.js → upload-7eXHbK2F.js} +1 -1
- package/web-app/dist/assets/{usePolling-g0FNsxMP.js → usePolling-DJo4_OMt.js} +1 -1
- package/web-app/dist/assets/{user-BfHVf-Fa.js → user-DvywwLv_.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.
|
|
6
|
+
# Loki Mode v11.152.0
|
|
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.
|
|
464
|
+
**v11.152.0 | [Autonomi](https://www.autonomi.dev/) flagship product | core skill**
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
11.
|
|
1
|
+
11.152.0
|
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.
|
|
3
|
+
Generated from `loki-ts/src/cli/registry.ts` by `scripts/generate-stale-zero.sh` for v11.152.0. 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.
|
|
5
|
+
**Version:** v11.152.0
|
|
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
|
|
|
@@ -273,6 +273,7 @@ One mechanism, on by default, `LOKI_REPO_CARD=0` opts out (nothing read, nothing
|
|
|
273
273
|
- **What is refused.** A setup is not stored when the script calls no check, has fewer than 4 lines or more than 12000 characters before the first check, does not parse by itself (`bash -n`), still names a path of the machine after the repository path is replaced by `${LOKI_REPO_ROOT}`, or carries something shaped like a real provider credential. The generic secret redactor is deliberately not applied to a setup: it blanks the throwaway password and signing secret the script invents for its own empty database, and the recipe stops running.
|
|
274
274
|
- **Where.** The local copy is `~/.loki/repo-cards/<sha256 of the normalized origin URL, else the absolute path>/card.json` (directory 0700, file 0600), written by the seal stage after every issue run, so a fresh clone of the same origin reads it with no action from the user. `loki knowledge export` writes the same card to `.github/loki-repo-card.md` for a team to commit, so it travels with every clone, teammate, CI job and container. The path is under `.github/` because `.claude/` is ignored in real repositories (FireLater's own tracked `.gitignore` ignores it, so a card there would never reach a clone), and `.loki/` is ignored run state. Loki reads the file itself and puts it in the brief, so no provider has to load it; the command warns when git ignores the path. Loki never commits it. `.loki/memory/repo-card.md` (ignored run state) is a rendered mirror for the Knowledge tab. When both copies exist, per fact the one verified on the newer commit wins. A setup read from the committed file passes the same refusal test as a captured one (size, credential shape, machine path, `bash -n`) or is not read, and every fact from that file is labelled in the brief as "from the card committed in this repository, not run on this machine".
|
|
275
275
|
- **Use.** The implement stage of an issue run on claude appends the card to the brief's repository context (fixed order, no timestamps or run ids, so the bytes change only when the card or the lockfiles do), writes the setup to `$LOKI_SCRATCH/loki-setup.sh`, records `repo-card.json` in the run directory, `repo_card` in the implement data and a `repo.card` event. The brief tells the session to start its `loki-proof.sh` from the setup. The fixed sentence `SETUP_FIRST_LINE` (setup first, at the top level, `# QUIRK:` above a workaround) follows `PROOF_SCRIPT_LINE` in the issue brief.
|
|
276
|
+
- **Setup check.** A setup is verified on the change of the run that wrote it, so it can need something that change carried and a clean checkout lacks (measured on FireLater: every stored setup stopped at `npm run migrate` on a clean checkout, because each run had made its own fix to the migration files, and two later sessions spent 85 and 113 seconds finding it again). So on the next issue run Loki runs the stored setup itself on the checkout before the session (`runSetupScript` in `engine10/proof_rerun.ts`: the proof re-run's own runner, a new scratch directory, the user's connection settings blanked, the ownership cleanup, a 120 second cap). It starts beside the plan session and only reads the tree. A cut script has no meaningful exit status, so Loki appends one line that prints a per-run token: the setup reached its end only when that line printed. Three outcomes reach the brief as `Setup check:`. It ran to its end: use it as it is. It stopped and one edit gets it through: at seal the card also keeps, as `patch` facts, up to 4 of the run's edits to files that existed before it (30 changed lines and 2500 characters at most each; no test, document, lockfile or anything shaped like a credential), and Loki tries each alone, smallest first, after the plan and already-done sessions have ended: apply, run the setup, take it out again, so the tree is as it was whatever happens (an exit handler covers a crash mid-trial). Edits are never tried together, which keeps another issue's feature code out. The first that works is handed over as a fact Loki ran both ways, with the failing output, the diff and `$LOKI_SCRATCH/loki-setup-fix.patch`; the session applies it, Loki never leaves it applied. It stopped and no single edit helps: the last output only. A `patch` fact never leaves the machine: it is not written to or read from the committed card. Trials stop after 120 seconds in total; they run inside the implement stage, so their seconds (8 to 21 measured) count against its limit. The event is `repo.card` with `when: "checked"`. Verified on one repository only.
|
|
276
277
|
- **Staleness.** A fact whose lockfile hash differs from the checkout's is shown as "last verified on <commit> with other dependency files: check before trusting". A stored setup is dropped at seal when the run's proof script carried it (7 in 10 of its lines), exited non-zero and reached no check. A stored command whose check could not start this run is dropped.
|
|
277
278
|
- **Show.** `loki knowledge` (`--json`), and `loki doctor --repo` prints the same lines after the repo profile.
|
|
278
279
|
- **What it replaced.** `verified_command.json` (E-126): the brief read it on every run and nothing ever wrote it.
|
|
@@ -34,6 +34,7 @@ with nowhere to look them up.
|
|
|
34
34
|
| `LOKI_E10_ISSUE_ACCEPTANCE` | on | On an issue run, the label is checked against the issue's own acceptance lines: one short check marks each line met (with evidence that it was exercised) or not met, and any line not met makes the run PARTIAL. `0` turns the check and the cap off. `LOKI_E10_ISSUE_ACCEPTANCE_MODEL` picks the model for the check (default: the run's own model). |
|
|
35
35
|
| `LOKI_PR_LABEL` | on | Loki sets a GitHub label on the pull request and the issue: `loki: safe to merge` on VERIFIED, `loki: needs you` otherwise. `0` turns it off. |
|
|
36
36
|
| `LOKI_E10_PROOF_RERUN` | on | On an issue run, Loki runs the session's proof script (`$TMPDIR/loki-proof.sh`) again by itself after the session and every fix round, in a new empty directory; the acceptance check uses that run's real output and a failing re-run keeps the run from VERIFIED. `0` turns it off. `LOKI_E10_PROOF_RERUN_S` is its time limit in seconds (default 600). |
|
|
37
|
+
| `LOKI_E10_PROOF_BASE` | off | Set to `1` to turn it on. On an issue run, after its own passing run of the proof script Loki runs the same script once more against the base commit, in a throwaway checkout with the installed `node_modules` copied in (the working tree is not touched), and compares check by check. A check that also passes there proves nothing about the change. An acceptance line whose passing checks all pass there too is handed back to the session during the run, told to the acceptance reviewer and listed on the receipt (`proof_base`). When the base run prints no check (its setup fails there) or every check passes there, the comparison is reported as not available and changes nothing. `0` turns the base run off. `LOKI_E10_PROOF_BASE_CAP=1` (off by default) also makes it a cap: such a line is not met, so the run is not VERIFIED. Lines that ask that something keeps working, and the fresh-install line Loki adds, are never listed. Only `node_modules` is carried over, so on other stacks the base run usually cannot start and the comparison is not available. |
|
|
37
38
|
| `LOKI_E10_PROVE_REPAIR` | `1` | The prove stage sends asks its scripts did not prove back to the implement session, two rounds at most, and reruns the scripts. `0` keeps the first result. |
|
|
38
39
|
| `LOKI_RERUN_GUARD` | `1` | Before any model call, `loki start owner/repo#N` stops when an open Loki pull request from the same owner already covers the issue, and prints its URL. It never closes, edits or comments on that pull request. If the open pull requests cannot be listed it stops too. Skipped with `--no-pr` and when the origin is not on GitHub (a local mirror). `0` starts the run anyway. |
|
|
39
40
|
| `LOKI_ISSUE_WHOLE_FIRST` | unset (on for Sonnet and stronger models, off on Haiku) | `loki start owner/repo#N` (and the runs `loki backlog` and `loki issues run` start) runs the issue as one whole-issue run and never splits it up front, whatever its size, on Sonnet and stronger models. A run that implements on Haiku (`--session-model haiku` or `small`, `--haiku`, a Haiku model override) keeps the up-front split of a large issue. `1` forces the whole-issue run on any model; `0` restores the split everywhere. Sizing, the plan and the checks are unchanged. |
|