loki-mode 11.112.0 → 11.113.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 (67) hide show
  1. package/SKILL.md +2 -2
  2. package/VERSION +1 -1
  3. package/dashboard/__init__.py +1 -1
  4. package/docs/CLI-REFERENCE.md +1 -1
  5. package/docs/INSTALLATION.md +1 -1
  6. package/loki-ts/dist/loki.js +1549 -1544
  7. package/mcp/__init__.py +1 -1
  8. package/package.json +2 -2
  9. package/packages/control-plane/dist/server.js +201 -18
  10. package/plugins/loki-mode/.claude-plugin/plugin.json +1 -1
  11. package/web-app/dist/assets/{AdminPage-DYoUXYdU.js → AdminPage-DlG6FYb4.js} +1 -1
  12. package/web-app/dist/assets/{Avatar-BBaMPJfc.js → Avatar-vnjoDkIZ.js} +1 -1
  13. package/web-app/dist/assets/{Badge-Dt_ztUHa.js → Badge-C1NuBT_H.js} +1 -1
  14. package/web-app/dist/assets/{Button-Cu-QdpUO.js → Button-Ciy4pmj_.js} +1 -1
  15. package/web-app/dist/assets/{CockpitPage-LMBCBSXS.js → CockpitPage-BYtzLzj6.js} +1 -1
  16. package/web-app/dist/assets/{ComparePage-Bi5x5Kx8.js → ComparePage-D6SYW1I0.js} +1 -1
  17. package/web-app/dist/assets/{ErrorBoundary-Coi36uQa.js → ErrorBoundary-CbCIvTI3.js} +1 -1
  18. package/web-app/dist/assets/{EvidenceReceiptPanel-BjfnylRS.js → EvidenceReceiptPanel-Cl9lNKAw.js} +1 -1
  19. package/web-app/dist/assets/{GitHubIssuesPanel-D5Apw6Oi.js → GitHubIssuesPanel-BtencgMH.js} +1 -1
  20. package/web-app/dist/assets/{GitHubPRsPanel-5ZvMb91S.js → GitHubPRsPanel-DEVC9na6.js} +1 -1
  21. package/web-app/dist/assets/{HomePage-DNyTyTW6.js → HomePage-DEJscGBj.js} +2 -2
  22. package/web-app/dist/assets/{LoginPage-BmYbmrkg.js → LoginPage-7K3qDzKk.js} +1 -1
  23. package/web-app/dist/assets/{MagicPage-B1esRu80.js → MagicPage-BotGRxpL.js} +1 -1
  24. package/web-app/dist/assets/{MetricsPage-D3lnwh_V.js → MetricsPage-CB8BF-6i.js} +1 -1
  25. package/web-app/dist/assets/{NotFoundPage-BxxwqqL9.js → NotFoundPage-BHMvpg4P.js} +1 -1
  26. package/web-app/dist/assets/{ProjectPage-DCgbdCM2.js → ProjectPage-r0mIGPSn.js} +3 -3
  27. package/web-app/dist/assets/{ProjectsPage-DME15NIM.js → ProjectsPage-D_hZ1rEL.js} +1 -1
  28. package/web-app/dist/assets/{SettingsPage-DybJpnZ2.js → SettingsPage-CHHkteMZ.js} +1 -1
  29. package/web-app/dist/assets/{ShowcasePage-BwgWWjcD.js → ShowcasePage-Cy7tDHge.js} +1 -1
  30. package/web-app/dist/assets/{SystemSettingsPage-ghxnJSGd.js → SystemSettingsPage-Zt7GNTIB.js} +1 -1
  31. package/web-app/dist/assets/{TeamsPage-8rcAs_4i.js → TeamsPage-Dtjkhjn9.js} +1 -1
  32. package/web-app/dist/assets/{TemplatesPage-D-YkyMid.js → TemplatesPage-IakqM_lf.js} +1 -1
  33. package/web-app/dist/assets/{TerminalOutput-BAhHuPOd.js → TerminalOutput-SFilq66V.js} +1 -1
  34. package/web-app/dist/assets/{activity-hdD5wW2u.js → activity-ay9_06YW.js} +1 -1
  35. package/web-app/dist/assets/{bell-DjWf1-AD.js → bell-Bi0EjCn_.js} +1 -1
  36. package/web-app/dist/assets/{bot-B4smBIHH.js → bot-B5e5ZMaN.js} +1 -1
  37. package/web-app/dist/assets/{check-Bx8Vedfz.js → check-BAQRLaFi.js} +1 -1
  38. package/web-app/dist/assets/{chevron-left-Cqg-qMiB.js → chevron-left-Cf1MVavm.js} +1 -1
  39. package/web-app/dist/assets/{circle-alert-DJPTd64w.js → circle-alert-CbT59W36.js} +1 -1
  40. package/web-app/dist/assets/{clock-DAwVo66N.js → clock-55a5dRV6.js} +1 -1
  41. package/web-app/dist/assets/{cloud-cWtzmtCN.js → cloud-DmGqDPQ5.js} +1 -1
  42. package/web-app/dist/assets/{code-xml-DZ4-8xns.js → code-xml-DjMwYkuI.js} +1 -1
  43. package/web-app/dist/assets/{database-KAOYEZLe.js → database-DXHTJCLk.js} +1 -1
  44. package/web-app/dist/assets/{dollar-sign-BgRpI1Or.js → dollar-sign-B71QQCqr.js} +1 -1
  45. package/web-app/dist/assets/{file-code-corner-BT_JXcbS.js → file-code-corner-Dip2vyuh.js} +1 -1
  46. package/web-app/dist/assets/{file-plus-D567SLBE.js → file-plus-CFKa6IqE.js} +1 -1
  47. package/web-app/dist/assets/{globe-C8duz8y-.js → globe-DfECeT3m.js} +1 -1
  48. package/web-app/dist/assets/{hammer-DFgOZ55H.js → hammer-CpZEVoIx.js} +1 -1
  49. package/web-app/dist/assets/{index-Cqm7mcD3.js → index-CjF4794n.js} +3 -3
  50. package/web-app/dist/assets/{layers-D5SMi3KF.js → layers-DFfMwDZt.js} +1 -1
  51. package/web-app/dist/assets/{loader-circle-yhfpH3HU.js → loader-circle-CE6b69Hp.js} +1 -1
  52. package/web-app/dist/assets/{lock-1pGkRsNY.js → lock-Bqqqa6DA.js} +1 -1
  53. package/web-app/dist/assets/{package-BZZ8rCmn.js → package-DbJfm6nu.js} +1 -1
  54. package/web-app/dist/assets/{plus-D3dzuNA0.js → plus-Blz_ZL5_.js} +1 -1
  55. package/web-app/dist/assets/{refresh-cw-C1EY9mdH.js → refresh-cw-BH6SR66h.js} +1 -1
  56. package/web-app/dist/assets/{rotate-ccw-Zz24GUgC.js → rotate-ccw-5C_0Ff6Y.js} +1 -1
  57. package/web-app/dist/assets/{scroll-text-CprzZkhZ.js → scroll-text-B3evRETh.js} +1 -1
  58. package/web-app/dist/assets/{server-bv2lyoFf.js → server-D7_Y9P6W.js} +1 -1
  59. package/web-app/dist/assets/{shield-alert-B8wSICzV.js → shield-alert-B5tVvHR9.js} +1 -1
  60. package/web-app/dist/assets/{thumbs-up-DYxl-grX.js → thumbs-up-CQFAacNs.js} +1 -1
  61. package/web-app/dist/assets/{trash-2-BFXmB-lq.js → trash-2-1PnQ54Gg.js} +1 -1
  62. package/web-app/dist/assets/{trending-down-BOFHm0lm.js → trending-down-B6uI9Cp0.js} +1 -1
  63. package/web-app/dist/assets/{trending-up-0ERKZkIv.js → trending-up-C4Tb-P9N.js} +1 -1
  64. package/web-app/dist/assets/{upload-DS5z-6i4.js → upload-DMZ9IlME.js} +1 -1
  65. package/web-app/dist/assets/{usePolling-H70WnOOu.js → usePolling-BllRexiH.js} +1 -1
  66. package/web-app/dist/assets/{user-ByTDBOqh.js → user-naL_AodH.js} +1 -1
  67. package/web-app/dist/index.html +1 -1
package/mcp/__init__.py CHANGED
@@ -75,4 +75,4 @@ try:
75
75
  except ImportError:
76
76
  __all__ = ['mcp']
77
77
 
78
- __version__ = '11.112.0'
78
+ __version__ = '11.113.0'
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.112.0",
4
+ "version": "11.113.0",
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",
@@ -162,5 +162,5 @@
162
162
  "dependencies": {
163
163
  "@resvg/resvg-wasm": "^2.6.2"
164
164
  },
165
- "gitHead": "061785b4d15316e55118bf2bda7b91e7649fca3f"
165
+ "gitHead": "b11fc1c40be40cfef879decbedc5dc932e976f30"
166
166
  }
@@ -1,5 +1,28 @@
1
1
  // @bun
2
2
  var __defProp = Object.defineProperty;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ function __accessProp(key) {
7
+ return this[key];
8
+ }
9
+ var __toCommonJS = (from) => {
10
+ var entry = (__moduleCache ??= new WeakMap).get(from), desc;
11
+ if (entry)
12
+ return entry;
13
+ entry = __defProp({}, "__esModule", { value: true });
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (var key of __getOwnPropNames(from))
16
+ if (!__hasOwnProp.call(entry, key))
17
+ __defProp(entry, key, {
18
+ get: __accessProp.bind(from, key),
19
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
+ });
21
+ }
22
+ __moduleCache.set(from, entry);
23
+ return entry;
24
+ };
25
+ var __moduleCache;
3
26
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
4
27
  var __returnValue = (v) => v;
5
28
  function __exportSetter(name, newValue) {
@@ -323,6 +346,14 @@ var init_atomic = __esm(() => {
323
346
  });
324
347
 
325
348
  // ../../loki-ts/src/util/paths.ts
349
+ var exports_paths = {};
350
+ __export(exports_paths, {
351
+ lokiDirFor: () => lokiDirFor,
352
+ lokiDir: () => lokiDir,
353
+ homeLokiDir: () => homeLokiDir,
354
+ findRepoRootForVersion: () => findRepoRootForVersion,
355
+ REPO_ROOT: () => REPO_ROOT
356
+ });
326
357
  import { resolve, dirname as dirname2 } from "path";
327
358
  import { fileURLToPath } from "url";
328
359
  import { existsSync as existsSync3 } from "fs";
@@ -14138,6 +14169,22 @@ function projectInterpreter(root) {
14138
14169
  };
14139
14170
  return [join47(root, ".venv", "bin", "python"), join47(root, "venv", "bin", "python"), ...ve && inRepo(ve) ? [join47(ve, "bin", "python")] : []].some(existsSync29) ? "project" : "system";
14140
14171
  }
14172
+ function declaresPythonEnv(root, ref) {
14173
+ const MANIFEST = /^(?:[\w.-]*requirements[\w.-]*\.(?:txt|in)|Pipfile(?:\.lock)?|setup\.py|poetry\.lock|uv\.lock|pdm\.lock|environment\.ya?ml|conda\.ya?ml)$/i;
14174
+ const DEPS = { "pyproject.toml": /^\s*(?:dependencies|optional-dependencies|requires)\s*=|^\s*\[(?:tool\.poetry|tool\.pdm|tool\.uv|project\.optional-dependencies|dependency-groups)/m, "setup.cfg": /^\s*install_requires\s*=/m };
14175
+ try {
14176
+ for (const f of safeGit(root, ["ls-tree", "-r", "-z", "--name-only", ref]).split("\x00").filter(Boolean)) {
14177
+ const b = f.slice(f.lastIndexOf("/") + 1);
14178
+ if (MANIFEST.test(b))
14179
+ return true;
14180
+ if (DEPS[b] && DEPS[b].test(safeGit(root, ["show", `${ref}:${f}`])))
14181
+ return true;
14182
+ }
14183
+ return false;
14184
+ } catch {
14185
+ return true;
14186
+ }
14187
+ }
14141
14188
  var _pythonCache, PY_TIMEOUT_MS = 5000, PY_SCRIPT = `
14142
14189
  import ast, sys, json, re
14143
14190
  def u(n): return ast.unparse(n)
@@ -16030,18 +16077,20 @@ function checkProvenance(name, ctx) {
16030
16077
  }
16031
16078
  function changedSymbols(diffU0) {
16032
16079
  const out2 = new Set;
16033
- let ctx = "", added = [], removed = 0;
16080
+ let ctx = "", added = [], removed = [];
16034
16081
  const flush = () => {
16035
16082
  const own = stripComments(added.join(`
16036
16083
  `)).split(`
16037
16084
  `).flatMap(declNames);
16038
16085
  for (const n3 of own)
16039
16086
  out2.add(n3);
16040
- if (removed > 0 || own.length === 0)
16087
+ const kept = new Set(added.map((l) => l.trim())), removedCode = stripComments(removed.filter((l) => !kept.has(l.trim())).join(`
16088
+ `)).trim() !== "";
16089
+ if (removedCode || own.length === 0)
16041
16090
  for (const n3 of declNames(ctx))
16042
16091
  out2.add(n3);
16043
16092
  added = [];
16044
- removed = 0;
16093
+ removed = [];
16045
16094
  };
16046
16095
  for (const line2 of diffU0.split(`
16047
16096
  `)) {
@@ -16051,7 +16100,7 @@ function changedSymbols(diffU0) {
16051
16100
  } else if (line2.startsWith("+") && !line2.startsWith("+++"))
16052
16101
  added.push(line2.slice(1));
16053
16102
  else if (line2.startsWith("-") && !line2.startsWith("---"))
16054
- removed++;
16103
+ removed.push(line2.slice(1));
16055
16104
  }
16056
16105
  flush();
16057
16106
  return [...out2];
@@ -21907,7 +21956,7 @@ function restoreBranch(repoDir, orig) {
21907
21956
  return true;
21908
21957
  try {
21909
21958
  if (safeGit(repoDir, ["status", "--porcelain", "--untracked-files=no"], { stdio: ["ignore", "pipe", "pipe"] }).trim())
21910
- throw new Error("dirty");
21959
+ return false;
21911
21960
  safeGit(repoDir, ["checkout", orig], { stdio: "ignore" });
21912
21961
  return true;
21913
21962
  } catch {
@@ -22046,7 +22095,7 @@ function resultOf(outcome) {
22046
22095
  }
22047
22096
  function nextOf(result, filesChanged, reason, provider = "claude", runId, landNext = "") {
22048
22097
  if (result === "verified")
22049
- return filesChanged ? landNext ? `loki diff, then ${landNext}` : "loki diff" : "loki status";
22098
+ return filesChanged && landNext ? landNext : "loki status";
22050
22099
  if (result === "done-unverified")
22051
22100
  return "loki verify";
22052
22101
  const r = reason ?? "", undo = filesChanged ? "; loki undo to revert" : "";
@@ -22113,11 +22162,19 @@ Next: ${i.next} (${files})${un}
22113
22162
  `)}
22114
22163
  `;
22115
22164
  }
22116
- function diffStat(repoDir, base) {
22165
+ function runHead(repoDir, runId) {
22166
+ const ref = `refs/heads/loki/${runId}`;
22167
+ try {
22168
+ return /^e10-[A-Za-z0-9-]+$/.test(runId) && safeGit(repoDir, ["rev-parse", "--verify", "-q", `${ref}^{commit}`]).trim() ? ref : "HEAD";
22169
+ } catch {
22170
+ return "HEAD";
22171
+ }
22172
+ }
22173
+ function diffStat(repoDir, base, head = "HEAD") {
22117
22174
  if (!base)
22118
22175
  return null;
22119
22176
  try {
22120
- const s = safeGit(repoDir, ["diff", "--shortstat", `${base}..HEAD`, "--", ".", ":(exclude).loki"]);
22177
+ const s = safeGit(repoDir, ["diff", "--shortstat", `${base}..${head}`, "--", ".", ":(exclude).loki"]);
22121
22178
  const g = (re) => Number(re.exec(s)?.[1] ?? 0);
22122
22179
  return { files: g(/(\d+) files? changed/), ins: g(/(\d+) insertion/), del: g(/(\d+) deletion/) };
22123
22180
  } catch {
@@ -22485,6 +22542,32 @@ function guardedBackstop(intact, repoDir, workerEnv, runId, base, preexistingDir
22485
22542
  backstopCommit(repoDir, workerEnv, runId, b, preexistingDirty, installCreated, untrackedBlobs);
22486
22543
  return null;
22487
22544
  }
22545
+ function commitUnsealedWork(intact, repoDir, workerEnv, runId, intake) {
22546
+ if (!intact || !intake || validBase(intake["base_sha"]) === null)
22547
+ return false;
22548
+ const g = (args) => safeGit(repoDir, args, { env: workerEnv });
22549
+ try {
22550
+ if (g(["symbolic-ref", "-q", "--short", "HEAD"]).trim() !== `loki/${runId}`)
22551
+ return false;
22552
+ const keys = (o) => o && typeof o === "object" ? Object.keys(o) : [];
22553
+ const users = [...keys(intake["preexisting_dirty"]), ...keys(intake["preexisting_untracked_blobs"]), ...Array.isArray(intake["preexisting_untracked"]) ? intake["preexisting_untracked"].map(String) : []];
22554
+ g(["add", "-A", "--", "."]);
22555
+ const keep = g(["--literal-pathspecs", "ls-files", "--cached", "-z", "--", ".loki", ...new Set(users)]).split("\x00").filter(Boolean);
22556
+ if (keep.length > 0)
22557
+ g(["--literal-pathspecs", "reset", "-q", "HEAD", "--", ...keep]);
22558
+ try {
22559
+ g(["diff", "--cached", "--quiet"]);
22560
+ return false;
22561
+ } catch (e) {
22562
+ if (e.status !== 1)
22563
+ return false;
22564
+ }
22565
+ g(["commit", "-q", "-m", `loki: work in progress, not verified (${runId})`, "-m", `Loki-Run: ${runId}`]);
22566
+ return true;
22567
+ } catch {
22568
+ return false;
22569
+ }
22570
+ }
22488
22571
  var WALL_FILE, parseStaged = (out2) => out2.split("\x00").reduce((a, t, i, all) => i % 2 === 0 && t ? [...a, { st: t, f: all[i + 1] }] : a, []), formatChanged = (repoDir, staged, dropped2, env = process.env) => runFormatters(repoDir, staged.filter(({ st, f }) => (st === "A" || st === "M") && !dropped2.has(f) && !f.startsWith(".loki/")).map(({ f }) => f), tokenFreeEnv(env)), validBase = (b) => typeof b === "string" && /^[0-9a-f]{40,64}$/.test(b) ? b : null;
22489
22572
  var init_commit_filter = __esm(() => {
22490
22573
  init_preexisting_dirty();
@@ -29476,7 +29559,7 @@ function renderReceiptMd(r) {
29476
29559
  ].join(`
29477
29560
  `);
29478
29561
  }
29479
- var SIGNING_UNAVAILABLE = "receipt signing unavailable (no usable signing key: invalid key or unwritable ~/.loki/keys)", AGENT_ONLY_REASON = "only agent-authored tests executed (no agent-independent proof)", WALL_GREEN_ON_BASE_REASON = "Wall green on base: no Wall test discriminates the change", EXCLUDE_LOKI = ":(exclude).loki", sha2562 = (s) => createHash30("sha256").update(s).digest("hex"), str3 = (v) => typeof v === "string" && v !== "" ? v : null, EXTERNAL_MODEL_LABEL = "external (no Loki implement session)", EXTERNAL_DIFF_NOT_ISOLATED = "Wall author not filesystem-isolated from the external diff", EXTERNAL_NO_WALL = "external diff sealed with no Wall file that ran; the only checks are the repo's existing tests", externalRun = (o) => o.implement?.exit === "external", LEAN_NO_SYMBOL = "no passing check references a changed symbol and no Wall file ran", strs2 = (v) => Array.isArray(v) ? v.filter((x) => typeof x === "string" && x !== "") : [], g = (ctx) => (a) => git5(ctx, a), receiptRel = (ctx) => {
29562
+ var SYSTEM_INTERP = "tests ran on the system interpreter", SYSTEM_INTERP_SUFFIX = " (the repo declares no Python dependencies, so this is its interpreter; informational, does not cap)", SIGNING_UNAVAILABLE = "receipt signing unavailable (no usable signing key: invalid key or unwritable ~/.loki/keys)", AGENT_ONLY_REASON = "only agent-authored tests executed (no agent-independent proof)", WALL_GREEN_ON_BASE_REASON = "Wall green on base: no Wall test discriminates the change", EXCLUDE_LOKI = ":(exclude).loki", sha2562 = (s) => createHash30("sha256").update(s).digest("hex"), str3 = (v) => typeof v === "string" && v !== "" ? v : null, EXTERNAL_MODEL_LABEL = "external (no Loki implement session)", EXTERNAL_DIFF_NOT_ISOLATED = "Wall author not filesystem-isolated from the external diff", EXTERNAL_NO_WALL = "external diff sealed with no Wall file that ran; the only checks are the repo's existing tests", externalRun = (o) => o.implement?.exit === "external", LEAN_NO_SYMBOL = "no passing check references a changed symbol and no Wall file ran", strs2 = (v) => Array.isArray(v) ? v.filter((x) => typeof x === "string" && x !== "") : [], g = (ctx) => (a) => git5(ctx, a), receiptRel = (ctx) => {
29480
29563
  const r = relative19(ctx.repoDir, join93(ctx.runDir, "receipt.json"));
29481
29564
  return r.startsWith("..") || isAbsolute15(r) ? `.loki/runs/${ctx.runId}/receipt.json` : r;
29482
29565
  }, commitStage, wallGreenOnBaseOf = (o) => {
@@ -29521,6 +29604,7 @@ var init_seal = __esm(() => {
29521
29604
  init_run_cap();
29522
29605
  init_lock_ecosystems();
29523
29606
  init_conventions();
29607
+ init_python();
29524
29608
  commitStage = {
29525
29609
  name: "commit",
29526
29610
  ...STAGE_BUDGETS.commit,
@@ -29581,7 +29665,8 @@ var init_seal = __esm(() => {
29581
29665
  const rcNotes = diffOk ? [...runnerConfigNotes(ctx.repoDir, ctx.baseSha, head, rawDiff.filter((_, i) => i % 2 === 1), signal), ...addedSymlinkNotes(rawDiff, str3(o.plan?.plan)), ...misplacedNamedNotes(str3(o.intake?.task) ?? "", rawDiff, ctx.repoDir, head)] : [];
29582
29666
  const vraw = Array.isArray(o.verify?.checks) ? o.verify.checks : [];
29583
29667
  const decl = splitDeclaredAdvisories([...rcNotes, ...verifyNotProven], { repoDir: ctx.repoDir, runDir: ctx.runDir, baseSha: ctx.baseSha, rawDiff, planFiles: readPlanScope(ctx.runDir), wallPaths: wallRel, task: str3(o.intake?.task) ?? "", head, wallPassedN: o.verify?.wall_passed === true && vraw.some((c) => c.result === "pass" && typeof c.n === "number" && c.n > 0 && wallRel.some((w) => String(c.name).endsWith(`:${w}`) || String(c.name).includes(w))) });
29584
- const disclosedSet = new Set(decl.disclosed), capRc = rcNotes.filter((n3) => !disclosedSet.has(n3)), capVerify = verifyNotProven.filter((n3) => !disclosedSet.has(n3));
29668
+ const sysInfo = verifyNotProven.includes(SYSTEM_INTERP) && !declaresPythonEnv(ctx.repoDir, head) ? SYSTEM_INTERP : null;
29669
+ const disclosedSet = new Set(decl.disclosed), capRc = rcNotes.filter((n3) => !disclosedSet.has(n3)), capVerify = verifyNotProven.filter((n3) => !disclosedSet.has(n3) && n3 !== sysInfo);
29585
29670
  const DECLARED_SUFFIX = " (declared by the plan or required by the passing Wall; disclosed, does not cap)";
29586
29671
  const grp = sealGroup(ctx.runDir, receiptSha256);
29587
29672
  const executed = hasExecutedProof(vraw), proof = process.env["LOKI_EXOGENOUS_PROOF"] === "0" ? executed : hasExogenousProof(vraw, pctx);
@@ -29676,7 +29761,7 @@ var init_seal = __esm(() => {
29676
29761
  notProven.add(`flaky test: ${f}`);
29677
29762
  for (const n3 of verifyNotProven)
29678
29763
  if (!dropped2.has(n3))
29679
- notProven.add(disclosedSet.has(n3) ? n3 + DECLARED_SUFFIX : n3);
29764
+ notProven.add(disclosedSet.has(n3) ? n3 + DECLARED_SUFFIX : n3 === sysInfo ? n3 + SYSTEM_INTERP_SUFFIX : n3);
29680
29765
  for (const n3 of rcNotes)
29681
29766
  notProven.add(disclosedSet.has(n3) ? n3 + DECLARED_SUFFIX : n3);
29682
29767
  for (const n3 of decl.extra ?? [])
@@ -32761,9 +32846,47 @@ var init_liveline = __esm(() => {
32761
32846
  });
32762
32847
 
32763
32848
  // ../../loki-ts/src/cli/registry.ts
32849
+ var exports_registry = {};
32850
+ __export(exports_registry, {
32851
+ visibleCommands: () => visibleCommands,
32852
+ suggestWord: () => suggestWord,
32853
+ suggestCommand: () => suggestCommand,
32854
+ registryPaths: () => registryPaths,
32855
+ levenshtein: () => levenshtein,
32856
+ findCommand: () => findCommand,
32857
+ commandShapedGoal: () => commandShapedGoal,
32858
+ classOf: () => classOf,
32859
+ allNames: () => allNames,
32860
+ REGISTRY: () => REGISTRY2,
32861
+ GLOBAL_FLAGS: () => GLOBAL_FLAGS
32862
+ });
32764
32863
  function cmd(name, cls, where, desc2, reason, extra = {}) {
32765
32864
  return { name, cls, where, desc: desc2, reason, ...extra };
32766
32865
  }
32866
+ function classOf(c) {
32867
+ return c.cls ?? "KEEP-MODERN";
32868
+ }
32869
+ function visibleCommands() {
32870
+ return REGISTRY2.filter((c) => !c.hidden && (c.cls === "KEEP-MODERN" || c.cls === "UPDATE"));
32871
+ }
32872
+ function allNames(c) {
32873
+ return [c.name, ...c.aliases ?? []];
32874
+ }
32875
+ function findCommand(name) {
32876
+ return REGISTRY2.find((c) => allNames(c).includes(name));
32877
+ }
32878
+ function registryPaths() {
32879
+ const out2 = [];
32880
+ const walk = (c, prefix) => {
32881
+ const p = prefix ? `${prefix} ${c.name}` : c.name;
32882
+ out2.push(p);
32883
+ for (const s of c.subcommands ?? [])
32884
+ walk(s, p);
32885
+ };
32886
+ for (const c of REGISTRY2)
32887
+ walk(c, "");
32888
+ return out2;
32889
+ }
32767
32890
  function levenshtein(a, b) {
32768
32891
  const prev = Array.from({ length: b.length + 1 }, (_, j) => j);
32769
32892
  for (let i = 1;i <= a.length; i++) {
@@ -32789,8 +32912,36 @@ function suggestWord(typo, names) {
32789
32912
  }
32790
32913
  return best;
32791
32914
  }
32792
- var bool = (name, desc2, excludes) => ({ name, type: "bool", desc: desc2, ...excludes ? { excludes } : {} }), json, str4 = (name, placeholder, desc2) => ({ name, type: "string", placeholder, desc: desc2 }), dyn = (name, dynamic, desc2) => ({ name, type: "dynamic", dynamic, desc: desc2 }), sub = (name, desc2, extra = {}) => ({ name, desc: desc2, ...extra }), port, dbFlag, runId, legacy = (name, desc2, reason, aliases) => cmd(name, "DROP-LEGACY", "bash", desc2, reason, aliases ? { aliases } : {}), startFlags, REGISTRY2;
32915
+ function suggestCommand(typo) {
32916
+ return suggestWord(typo, visibleCommands().flatMap((c) => [...allNames(c)]));
32917
+ }
32918
+ function commandShapedGoal(text4) {
32919
+ const words3 = text4.trim().split(/\s+/).filter(Boolean);
32920
+ if (words3.length < 2)
32921
+ return null;
32922
+ const first = words3[0].toLowerCase(), second = words3[1].toLowerCase();
32923
+ const hit2 = findCommand(first);
32924
+ if (!hit2 && !PRE_DISPATCH.includes(first))
32925
+ return null;
32926
+ const subs = new Set;
32927
+ const walk = (c) => {
32928
+ for (const s of c.subcommands ?? []) {
32929
+ allNames(s).forEach((n3) => subs.add(n3));
32930
+ walk(s);
32931
+ }
32932
+ };
32933
+ if (hit2)
32934
+ walk(hit2);
32935
+ const commandWord = (w) => findCommand(w) !== undefined || PRE_DISPATCH.includes(w);
32936
+ if (second.startsWith("-"))
32937
+ return first;
32938
+ return words3.length <= 3 && (subs.has(second) || commandWord(second)) ? first : null;
32939
+ }
32940
+ var GLOBAL_FLAGS, bool = (name, desc2, excludes) => ({ name, type: "bool", desc: desc2, ...excludes ? { excludes } : {} }), json, str4 = (name, placeholder, desc2) => ({ name, type: "string", placeholder, desc: desc2 }), dyn = (name, dynamic, desc2) => ({ name, type: "dynamic", dynamic, desc: desc2 }), sub = (name, desc2, extra = {}) => ({ name, desc: desc2, ...extra }), port, dbFlag, runId, legacy = (name, desc2, reason, aliases) => cmd(name, "DROP-LEGACY", "bash", desc2, reason, aliases ? { aliases } : {}), startFlags, REGISTRY2, PRE_DISPATCH;
32793
32941
  var init_registry = __esm(() => {
32942
+ GLOBAL_FLAGS = [
32943
+ { name: "--help", short: "-h", type: "bool", desc: "Show help for this command" }
32944
+ ];
32794
32945
  json = bool("--json", "Machine-readable JSON output");
32795
32946
  port = { name: "--port", type: "int", placeholder: "<port>", desc: "Port" };
32796
32947
  dbFlag = { name: "--db", type: "path", desc: "Database path" };
@@ -33032,6 +33183,7 @@ var init_registry = __esm(() => {
33032
33183
  cmd("serve", "DELETE", "bash", "Deprecated alias of api start", "Alias; use api start"),
33033
33184
  cmd("open", "DELETE", "bash", "Deprecated alias of dashboard open", "Alias; use dashboard open")
33034
33185
  ];
33186
+ PRE_DISPATCH = ["route"];
33035
33187
  });
33036
33188
 
33037
33189
  // ../../loki-ts/src/commands/provider.ts
@@ -35877,6 +36029,7 @@ var init_ship_hook = __esm(() => {
35877
36029
  // ../../loki-ts/src/util/one_line_goal.ts
35878
36030
  var exports_one_line_goal = {};
35879
36031
  __export(exports_one_line_goal, {
36032
+ refuseCommandGoal: () => refuseCommandGoal,
35880
36033
  publishPlan: () => publishPlan,
35881
36034
  publishNote: () => publishNote,
35882
36035
  landNext: () => landNext,
@@ -35899,6 +36052,20 @@ async function publishPlan(origin, ghReady2) {
35899
36052
  function publishNote(reason) {
35900
36053
  return reason === "gh_unauthenticated" ? "publish: gh is not logged in, so no PR will be opened; the result stays on a local branch (run gh auth login to get a PR next time)" : reason === "no_remote" ? "publish: no git remote, so the result stays on a local branch (git remote add origin <url> to get a PR next time)" : "";
35901
36054
  }
36055
+ function refuseCommandGoal(task, env = process.env) {
36056
+ const { commandShapedGoal: commandShapedGoal2 } = (init_registry(), __toCommonJS(exports_registry));
36057
+ const cmd2 = commandShapedGoal2(task);
36058
+ if (cmd2 === null)
36059
+ return null;
36060
+ process.stderr.write(`loki: "${task.trim().slice(0, 80)}" is a command, not a goal; nothing was started. Help for 'loki ${cmd2}':
36061
+ `);
36062
+ const { REPO_ROOT: REPO_ROOT2 } = (init_paths(), __toCommonJS(exports_paths));
36063
+ __require("child_process").spawnSync("bash", [`${REPO_ROOT2}/bin/loki`, cmd2, "--help"], { stdio: ["ignore", 2, 2], env: { ...env, LOKI_HELP_ONLY: "1" }, timeout: 20000 });
36064
+ process.stderr.write(`To run the command, type it without quotes: loki ${task.trim().slice(0, 80)}
36065
+ To give Loki a goal instead, write it as a sentence: loki "<what you want done>"
36066
+ `);
36067
+ return 2;
36068
+ }
35902
36069
  function landNext(reason, branch, orig) {
35903
36070
  if (!reason || !branch)
35904
36071
  return "";
@@ -38690,6 +38857,8 @@ async function runSupervisor(opts) {
38690
38857
  (await Promise.resolve().then(() => (init_pr_lessons(), exports_pr_lessons))).learnFromRun(opts.repoDir, opts.runId, allEvents, verdict);
38691
38858
  } catch {}
38692
38859
  const stages = allEvents.filter((e) => e.type === "stage.completed" && typeof e.data.duration_s === "number").map((e) => ({ label: String(e.stage), seconds: e.data.duration_s })), pc = partialCost(allEvents, log.tampered, lokiRoot), summary = { pr: prUrl ? { url: prUrl, draft: verdict !== "VERIFIED" } : null, verdict, outcome, notProven, flaky: recordFingerprints(join116(opts.repoDir, ".loki", "state"), opts.runId, "flaky", folded.stages["verify"]?.data.flaky, cleanTreeId(opts.repoDir)), wallS, stages, cost: { usd: costUsd, provider: String(opts.started?.provider ?? ""), tokens: summaryTokens(folded, allEvents.some((e) => e.type === "cost")), ...summaryCache(allEvents, log.tampered), partialUsd: pc.usd, measuredSessions: pc.measured, totalSessions: pc.total, stageShares: log.tampered ? null : stageShareText(allEvents), capUsd: Number(opts.started?.["max_cost_usd"]) > 0 ? Number(opts.started?.["max_cost_usd"]) : undefined } };
38860
+ if (prUrl === null && (cancelled2 || !receiptVerdict || verdict !== "VERIFIED" && verdict !== "PARTIAL" && verdict !== "ALREADY_SATISFIED"))
38861
+ commitUnsealedWork(intact && !log.tampered, opts.repoDir, workerEnv, opts.runId, folded.stages["intake"]?.type === "stage.completed" ? folded.stages["intake"].data : undefined);
38693
38862
  await slackEvent(env, "finished", { summary: formatSummary(summary), outcome: String(outcome), cost: summary.cost.usd != null ? `$${summary.cost.usd.toFixed(2)}` : "not measured", time: `${Math.round(wallS)}s`, receipt: log.tampered ? "TAMPERED" : receiptVerdict ? verdict : undefined });
38694
38863
  rmRunPid();
38695
38864
  process.off("exit", rmRunPid);
@@ -38803,6 +38972,11 @@ usage: loki "<task>" [--no-pr] [--deep] [--json] [--verbose] [--quiet] [--max-co
38803
38972
  noteRefusal("prd_missing");
38804
38973
  return 2;
38805
38974
  }
38975
+ if (spec === null) {
38976
+ const r = (await Promise.resolve().then(() => (init_one_line_goal(), exports_one_line_goal))).refuseCommandGoal(task);
38977
+ if (r !== null)
38978
+ return r;
38979
+ }
38806
38980
  let repoDir;
38807
38981
  try {
38808
38982
  repoDir = safeGit(process.cwd(), ["rev-parse", "--show-toplevel"]).trim();
@@ -39127,7 +39301,7 @@ ${prUrl ? "One question" : "Reason"}: ${reason}
39127
39301
  stages: events2.filter((e) => e.type === "stage.completed" && typeof e.data.duration_s === "number").map((e) => ({ label: String(e.stage), seconds: e.data.duration_s }))
39128
39302
  }, verbose);
39129
39303
  const rmap = await reqOnce(events2), uncovered = rmap ? rmap.requirements.filter((r) => r.status === "uncovered").length : 0;
39130
- const baseSha = events2.find((e) => e.type === "stage.completed" && e.stage === "intake")?.data.base_sha, hbs = typeof baseSha === "string" ? baseSha : null, ds = diffStat(repoDir, hbs);
39304
+ const baseSha = events2.find((e) => e.type === "stage.completed" && e.stage === "intake")?.data.base_sha, hbs = typeof baseSha === "string" ? baseSha : null, ds = diffStat(repoDir, hbs, runHead(repoDir, runId2));
39131
39305
  let handoffRef = "";
39132
39306
  if (!json2) {
39133
39307
  handoffRef = writeHandoff({ requirements: rmap?.requirements ?? null, sinceMs: t0, repoDir, runId: runId2, events: events2, outcome: res.outcome, reason: reasonOf(events2, res.tampered, res.stop, res.outcome), prUrl: res.prUrl, draft: res.verdict !== "VERIFIED", usd, partialUsd: pc.usd, measuredSessions: pc.measured, totalSessions: pc.total, elapsedS: Number(f.run.completed?.data.wall_s ?? (Date.now() - t0) / 1000), notProven: res.notProven, task, baseSha: hbs, stats: ds }) ? "review: .loki/review/HANDOFF.md" : "";
@@ -40884,8 +41058,9 @@ var init_deep = __esm(() => {
40884
41058
  init_repo_profile();
40885
41059
  init_types();
40886
41060
  init_safe_git();
41061
+ init_paths();
40887
41062
  init_pr();
40888
- DEFAULT_SECRET_SCAN_SH = new URL("../../../../autonomy/lib/secret-scan.sh", import.meta.url).pathname;
41063
+ DEFAULT_SECRET_SCAN_SH = join123(REPO_ROOT, "autonomy/lib/secret-scan.sh");
40889
41064
  deepStage = {
40890
41065
  name: "deep",
40891
41066
  ...STAGE_BUDGETS.deep,
@@ -45397,6 +45572,12 @@ function returnCheckout(repoDir, branch, orig) {
45397
45572
  return git13(repoDir, ["checkout", "-q", orig]) === null ? `engine10: the checkout stays on ${branch}: git checkout ${orig} failed; return with: git checkout ${orig}
45398
45573
  ` : null;
45399
45574
  }
45575
+ function workLine(repoDir, branch, orig) {
45576
+ if (!tipOf(repoDir, `refs/heads/${branch}`) || currentBranch(repoDir) === branch)
45577
+ return "";
45578
+ return `engine10: the run's work is on branch ${branch}; your checkout is back on ${orig ?? "the starting branch"}; see it with: git diff ${orig ?? "HEAD"}...${branch}
45579
+ `;
45580
+ }
45400
45581
  function finishRunBranch(repoDir, runId2, end, env = process.env) {
45401
45582
  if (keepRunBranch(env) || !/^e10-[A-Za-z0-9-]+$/.test(runId2))
45402
45583
  return "";
@@ -45413,13 +45594,15 @@ function finishRunBranch(repoDir, runId2, end, env = process.env) {
45413
45594
  migrateSessionFiles(repoDir, runLive);
45414
45595
  let notes = "";
45415
45596
  const keepHere = end.keepWork === true && tip !== null && tipOf(repoDir, end.baseSha ?? "") !== tip;
45597
+ const stay = tip ? returnCheckout(repoDir, branch, end.orig) : null;
45598
+ if (stay)
45599
+ notes += stay;
45416
45600
  if (tip && !keepHere) {
45417
- const stay = returnCheckout(repoDir, branch, end.orig);
45418
- if (stay)
45419
- notes += stay;
45420
- else if (findInterrupted(repoDir, runId2, true) === null)
45601
+ if (!stay && findInterrupted(repoDir, runId2, true) === null)
45421
45602
  notes += settleBranch(repoDir, branch, runDir, "branch", end.pushed && tip !== null, { orig_branch: end.orig }).note;
45422
45603
  }
45604
+ if (!stay)
45605
+ notes += workLine(repoDir, branch, end.orig);
45423
45606
  return notes + sweepRunBranches(repoDir, env, runId2);
45424
45607
  } catch (e) {
45425
45608
  return `engine10: run-end cleanup skipped: ${e.message}
@@ -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.112.0",
5
+ "version": "11.113.0",
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-Cqm7mcD3.js";import{B as C}from"./Button-Cu-QdpUO.js";import{T as $e}from"./trending-up-0ERKZkIv.js";import{C as z}from"./clock-DAwVo66N.js";import{A as Be,U as ue,M as De}from"./Avatar-BBaMPJfc.js";import{A as J}from"./activity-hdD5wW2u.js";import{R as pe}from"./refresh-cw-C1EY9mdH.js";import{G as ze}from"./globe-C8duz8y-.js";import{C as Le}from"./chevron-left-Cqg-qMiB.js";import{C as je}from"./check-Bx8Vedfz.js";import{D as Y}from"./dollar-sign-BgRpI1Or.js";import{U as Te}from"./user-ByTDBOqh.js";import{D as Me}from"./database-KAOYEZLe.js";import{L as Ue}from"./lock-1pGkRsNY.js";import{S as Re}from"./scroll-text-CprzZkhZ.js";import{S as Ie}from"./shield-alert-B8wSICzV.js";/**
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-CjF4794n.js";import{B as C}from"./Button-Ciy4pmj_.js";import{T as $e}from"./trending-up-C4Tb-P9N.js";import{C as z}from"./clock-55a5dRV6.js";import{A as Be,U as ue,M as De}from"./Avatar-vnjoDkIZ.js";import{A as J}from"./activity-ay9_06YW.js";import{R as pe}from"./refresh-cw-BH6SR66h.js";import{G as ze}from"./globe-DfECeT3m.js";import{C as Le}from"./chevron-left-Cf1MVavm.js";import{C as je}from"./check-BAQRLaFi.js";import{D as Y}from"./dollar-sign-B71QQCqr.js";import{U as Te}from"./user-naL_AodH.js";import{D as Me}from"./database-DXHTJCLk.js";import{L as Ue}from"./lock-Bqqqa6DA.js";import{S as Re}from"./scroll-text-B3evRETh.js";import{S as Ie}from"./shield-alert-B5tVvHR9.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 l,j as s}from"./index-Cqm7mcD3.js";/**
1
+ import{c as l,j as s}from"./index-CjF4794n.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-Cqm7mcD3.js";import{C as r}from"./clock-DAwVo66N.js";import{C as a}from"./circle-alert-DJPTd64w.js";import{C as l}from"./check-Bx8Vedfz.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
+ import{j as e}from"./index-CjF4794n.js";import{C as r}from"./clock-55a5dRV6.js";import{C as a}from"./circle-alert-CbT59W36.js";import{C as l}from"./check-BAQRLaFi.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-Cqm7mcD3.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
+ import{r as p,j as t}from"./index-CjF4794n.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-Cqm7mcD3.js";import{P as K,S as He,E as Be}from"./ErrorBoundary-Coi36uQa.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-DYxl-grX.js";import{C as oe}from"./check-Bx8Vedfz.js";import{C as Ye}from"./clock-DAwVo66N.js";import{D as Xe}from"./dollar-sign-BgRpI1Or.js";import{U as Ze}from"./upload-DS5z-6i4.js";import{L as V}from"./loader-circle-yhfpH3HU.js";/**
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-CjF4794n.js";import{P as K,S as He,E as Be}from"./ErrorBoundary-CbCIvTI3.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-CQFAacNs.js";import{C as oe}from"./check-BAQRLaFi.js";import{C as Ye}from"./clock-55a5dRV6.js";import{D as Xe}from"./dollar-sign-B71QQCqr.js";import{U as Ze}from"./upload-DMZ9IlME.js";import{L as V}from"./loader-circle-CE6b69Hp.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-Cqm7mcD3.js";function f({value:r,prefix:t="",suffix:s=""}){const[u,n]=o.useState(0),c=o.useRef(0);return o.useEffect(()=>{const a=c.current,h=r-a;if(h===0)return;const i=600,d=performance.now();function l(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(l)}requestAnimationFrame(l)},[r]),e.jsxs("span",{className:"tabular-nums",children:[t,u.toLocaleString(),s]})}function g(){const[r,t]=o.useState(5),[s,u]=o.useState(30),[n,c]=o.useState(75),a=.4,i=Math.round(r*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:[r," developers"]})]}),e.jsx("input",{type:"range",min:1,max:50,value:r,onChange:l=>t(Number(l.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:l=>u(Number(l.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:l=>c(Number(l.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:"GPT-4o / Codex",category:"AI Models",lokiMode:!0,boltNew:!0,replit:!0,lovable:!1},{feature:"5-provider auto-failover",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:r}){return typeof r=="string"?e.jsx("span",{className:"text-xs text-[#6B6960] font-medium",children:r}):r?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 r=[...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:r.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-CjF4794n.js";function f({value:r,prefix:t="",suffix:s=""}){const[u,n]=o.useState(0),c=o.useRef(0);return o.useEffect(()=>{const a=c.current,h=r-a;if(h===0)return;const i=600,d=performance.now();function l(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(l)}requestAnimationFrame(l)},[r]),e.jsxs("span",{className:"tabular-nums",children:[t,u.toLocaleString(),s]})}function g(){const[r,t]=o.useState(5),[s,u]=o.useState(30),[n,c]=o.useState(75),a=.4,i=Math.round(r*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:[r," developers"]})]}),e.jsx("input",{type:"range",min:1,max:50,value:r,onChange:l=>t(Number(l.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:l=>u(Number(l.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:l=>c(Number(l.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:"GPT-4o / Codex",category:"AI Models",lokiMode:!0,boltNew:!0,replit:!0,lovable:!1},{feature:"5-provider auto-failover",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:r}){return typeof r=="string"?e.jsx("span",{className:"text-xs text-[#6B6960] font-medium",children:r}):r?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 r=[...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:r.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,4 +1,4 @@
1
- import{c as o,r as a,j as e,T as n,h as i,p as c}from"./index-Cqm7mcD3.js";/**
1
+ import{c as o,r as a,j as e,T as n,h as i,p as c}from"./index-CjF4794n.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 l,a as x,j as e}from"./index-Cqm7mcD3.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
+ import{r as l,a as x,j as e}from"./index-CjF4794n.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-Cqm7mcD3.js";import{B as N}from"./Button-Cu-QdpUO.js";import{C as y}from"./thumbs-up-DYxl-grX.js";import{R as S}from"./refresh-cw-C1EY9mdH.js";import{C as z}from"./circle-alert-DJPTd64w.js";import{U as D}from"./user-ByTDBOqh.js";import{L as G}from"./loader-circle-yhfpH3HU.js";import{R as T}from"./rotate-ccw-Zz24GUgC.js";/**
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-CjF4794n.js";import{B as N}from"./Button-Ciy4pmj_.js";import{C as y}from"./thumbs-up-CQFAacNs.js";import{R as S}from"./refresh-cw-BH6SR66h.js";import{C as z}from"./circle-alert-CbT59W36.js";import{U as D}from"./user-naL_AodH.js";import{L as G}from"./loader-circle-CE6b69Hp.js";import{R as T}from"./rotate-ccw-5C_0Ff6Y.js";/**
2
2
  * @license lucide-react v0.577.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.