loki-mode 11.17.32 → 11.17.34
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/README.md +1 -1
- package/SKILL.md +2 -2
- package/VERSION +1 -1
- package/autonomy/lib/help-core.sh +1 -1
- package/autonomy/loki +52 -10
- package/completions/_loki +3 -1
- package/completions/loki.bash +2 -2
- package/dashboard/__init__.py +1 -1
- package/docs/CLI-REFERENCE.md +1 -1
- package/docs/INSTALLATION.md +11 -1
- package/docs/v10/BOARD.md +41 -16
- package/docs/v10/DECISIONS.md +9 -0
- package/docs/v10/PROGRESS.md +6 -0
- package/loki-ts/dist/loki.js +1176 -1167
- package/mcp/__init__.py +1 -1
- package/package.json +2 -4
- package/packages/control-plane/dist/server.js +39 -17
- package/plugins/loki-mode/.claude-plugin/plugin.json +1 -1
- package/skills/fixtures/demo-receipt/README.md +25 -14
- package/skills/fixtures/demo-receipt/events.jsonl +26 -0
- package/skills/fixtures/demo-receipt/pubkey.jwk +1 -0
- package/skills/fixtures/demo-receipt/receipt.json +117 -0
- package/web-app/dist/assets/{AdminPage-Bx2Qd8G1.js → AdminPage-o3gtaCnU.js} +1 -1
- package/web-app/dist/assets/{Avatar-Cjc8Q-0N.js → Avatar-C02t-Irl.js} +1 -1
- package/web-app/dist/assets/{Badge-DsHXrrI9.js → Badge-BuN80MKq.js} +1 -1
- package/web-app/dist/assets/{Button-CbJa4lbI.js → Button-lPXsKVcs.js} +1 -1
- package/web-app/dist/assets/{CockpitPage-B-Iz8Kk1.js → CockpitPage-8CNxkZSh.js} +1 -1
- package/web-app/dist/assets/{ComparePage-Bli_Q9B9.js → ComparePage-j-XhFiwH.js} +1 -1
- package/web-app/dist/assets/{ErrorBoundary-DNWO983Y.js → ErrorBoundary-D8nyc_y_.js} +1 -1
- package/web-app/dist/assets/{EvidenceReceiptPanel-CyHD9ajE.js → EvidenceReceiptPanel-DtTSMxZm.js} +1 -1
- package/web-app/dist/assets/{GitHubIssuesPanel-BMRbJ1_j.js → GitHubIssuesPanel-Bzmm3gBY.js} +1 -1
- package/web-app/dist/assets/{GitHubPRsPanel-B8deb-Jr.js → GitHubPRsPanel-Dh6vSHLE.js} +1 -1
- package/web-app/dist/assets/{HomePage-Bq6D15Fd.js → HomePage-CKKPOMOg.js} +2 -2
- package/web-app/dist/assets/{LoginPage-BeWvoLjh.js → LoginPage-49FrYkL9.js} +1 -1
- package/web-app/dist/assets/{MagicPage-DixEZZLR.js → MagicPage-D5psAu69.js} +1 -1
- package/web-app/dist/assets/{MetricsPage-C1SDqEUe.js → MetricsPage-oQXV5q4J.js} +1 -1
- package/web-app/dist/assets/{NotFoundPage-B-0pcfZY.js → NotFoundPage-C2hj6k1f.js} +1 -1
- package/web-app/dist/assets/{ProjectPage-hN0d717F.js → ProjectPage-Bo8ocjwn.js} +3 -3
- package/web-app/dist/assets/{ProjectsPage-sYsUaVH5.js → ProjectsPage-QUhbz991.js} +1 -1
- package/web-app/dist/assets/{SettingsPage-CtmYAmBc.js → SettingsPage-6XW8I3LO.js} +1 -1
- package/web-app/dist/assets/{ShowcasePage-BlF-BSKn.js → ShowcasePage-9CHGu9uW.js} +1 -1
- package/web-app/dist/assets/{SystemSettingsPage-D27mAoz8.js → SystemSettingsPage-gZZK7T45.js} +1 -1
- package/web-app/dist/assets/{TeamsPage-BRqpG6jU.js → TeamsPage-DSlKvZhA.js} +1 -1
- package/web-app/dist/assets/{TemplatesPage-0lL20oje.js → TemplatesPage-BVDR5mF2.js} +1 -1
- package/web-app/dist/assets/{TerminalOutput-CH42ZRTf.js → TerminalOutput-DnOFdmTG.js} +1 -1
- package/web-app/dist/assets/{activity-BO4cc2_I.js → activity-D22UFJWA.js} +1 -1
- package/web-app/dist/assets/{bell-gik7pcoK.js → bell-B2Mfgp26.js} +1 -1
- package/web-app/dist/assets/{bot-BnUNu28M.js → bot-CTXo6aac.js} +1 -1
- package/web-app/dist/assets/{check-CN251ufW.js → check-D9kJod1H.js} +1 -1
- package/web-app/dist/assets/{chevron-left-CXXqlPbU.js → chevron-left-XI4pnrlY.js} +1 -1
- package/web-app/dist/assets/{circle-alert-yM0T96Df.js → circle-alert-CvS3mi0t.js} +1 -1
- package/web-app/dist/assets/{clock-BW7Mcd7R.js → clock-CCgwQ80p.js} +1 -1
- package/web-app/dist/assets/{cloud-DTIHjSY2.js → cloud-S-SuEsEp.js} +1 -1
- package/web-app/dist/assets/{code-xml-PiS2-H_d.js → code-xml-PRnhUKWP.js} +1 -1
- package/web-app/dist/assets/{database-6XCZeiub.js → database-C_a7H_3N.js} +1 -1
- package/web-app/dist/assets/{dollar-sign-DM_6WChA.js → dollar-sign-FDCzdLrB.js} +1 -1
- package/web-app/dist/assets/{file-code-corner-CC_2deTP.js → file-code-corner-28-hDPSO.js} +1 -1
- package/web-app/dist/assets/{file-plus-CGcYkrkc.js → file-plus-c0yygSC8.js} +1 -1
- package/web-app/dist/assets/{globe-C2YAeOxY.js → globe-DOA9Y_1n.js} +1 -1
- package/web-app/dist/assets/{hammer-DD9m1IUB.js → hammer-Omzy4vB3.js} +1 -1
- package/web-app/dist/assets/{index-DgPhoE0o.js → index-Dp6emuTo.js} +3 -3
- package/web-app/dist/assets/{layers-DRXFC1XY.js → layers-D7ZjWXJQ.js} +1 -1
- package/web-app/dist/assets/{loader-circle-DTTTUPOC.js → loader-circle-CJ2SKm0h.js} +1 -1
- package/web-app/dist/assets/{lock-C4ID-r5J.js → lock-HKmv1nIN.js} +1 -1
- package/web-app/dist/assets/{package-DjWQkahr.js → package-FQl71HNO.js} +1 -1
- package/web-app/dist/assets/{plus-BqbIRuLZ.js → plus-DY8mlU6I.js} +1 -1
- package/web-app/dist/assets/{refresh-cw-ChrGVWbP.js → refresh-cw-CJ_pkRQQ.js} +1 -1
- package/web-app/dist/assets/{rotate-ccw-CHczvo_k.js → rotate-ccw-rGU_udZ1.js} +1 -1
- package/web-app/dist/assets/{scroll-text-BmWEIPDg.js → scroll-text-CeVAfOXM.js} +1 -1
- package/web-app/dist/assets/{server-CP9u1e49.js → server-D-N_u9OT.js} +1 -1
- package/web-app/dist/assets/{shield-alert-yfHUULdU.js → shield-alert-CJfx3HCX.js} +1 -1
- package/web-app/dist/assets/{thumbs-up-C_vLysUN.js → thumbs-up-BrC-E9mS.js} +1 -1
- package/web-app/dist/assets/{trash-2-BxN6ezWF.js → trash-2-Bb3mW1oq.js} +1 -1
- package/web-app/dist/assets/{trending-down-P9FX3SrZ.js → trending-down-CrgUJZLA.js} +1 -1
- package/web-app/dist/assets/{trending-up-DVa8fN5T.js → trending-up-Dk_GS57K.js} +1 -1
- package/web-app/dist/assets/{upload-I_shXYSZ.js → upload-BAxHyFqH.js} +1 -1
- package/web-app/dist/assets/{usePolling-zd4ba2Tv.js → usePolling-CkTdc2YU.js} +1 -1
- package/web-app/dist/assets/{user-CV_zlcjt.js → user-Dr6XCReg.js} +1 -1
- package/web-app/dist/index.html +1 -1
package/mcp/__init__.py
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "loki-mode",
|
|
3
3
|
"mcpName": "io.github.asklokesh/loki-mode",
|
|
4
|
-
"version": "11.17.
|
|
4
|
+
"version": "11.17.34",
|
|
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",
|
|
@@ -25,8 +25,6 @@
|
|
|
25
25
|
"distributed-systems",
|
|
26
26
|
"embeddings",
|
|
27
27
|
"enterprise",
|
|
28
|
-
"gemini",
|
|
29
|
-
"gemini-cli",
|
|
30
28
|
"gpt",
|
|
31
29
|
"hive-mind",
|
|
32
30
|
"large-language-model",
|
|
@@ -160,5 +158,5 @@
|
|
|
160
158
|
"dependencies": {
|
|
161
159
|
"@resvg/resvg-wasm": "^2.6.2"
|
|
162
160
|
},
|
|
163
|
-
"gitHead": "
|
|
161
|
+
"gitHead": "20640f6fb1c7022de3d5a36ca07e3878d3af6627"
|
|
164
162
|
}
|
|
@@ -7802,9 +7802,15 @@ var init_cache = __esm(() => {
|
|
|
7802
7802
|
init_paths();
|
|
7803
7803
|
});
|
|
7804
7804
|
|
|
7805
|
+
// ../../loki-ts/src/engine10/repomap.ts
|
|
7806
|
+
var init_repomap = __esm(() => {
|
|
7807
|
+
init_safe_git();
|
|
7808
|
+
});
|
|
7809
|
+
|
|
7805
7810
|
// ../../loki-ts/src/util/relevance.ts
|
|
7806
7811
|
var STOPWORDS;
|
|
7807
7812
|
var init_relevance = __esm(() => {
|
|
7813
|
+
init_repomap();
|
|
7808
7814
|
STOPWORDS = new Set([
|
|
7809
7815
|
"the",
|
|
7810
7816
|
"and",
|
|
@@ -9988,6 +9994,21 @@ function classifyCheck(i) {
|
|
|
9988
9994
|
return { result: "not_run", reason: UNMEASURED_REASON };
|
|
9989
9995
|
return { result: "pass", n: n2 };
|
|
9990
9996
|
}
|
|
9997
|
+
function checkProvenance(name, ctx) {
|
|
9998
|
+
const head = name.split(":")[0];
|
|
9999
|
+
if (LLM_JUDGES.has(head))
|
|
10000
|
+
return "llm_judge";
|
|
10001
|
+
if (head === "holdout")
|
|
10002
|
+
return "independent";
|
|
10003
|
+
if (!NON_RUNNER.has(head) && name.includes(":")) {
|
|
10004
|
+
const p = normPath(name.slice(name.indexOf(":") + 1));
|
|
10005
|
+
if (ctx.wallFiles.some((w) => normPath(w) === p))
|
|
10006
|
+
return "independent";
|
|
10007
|
+
if (ctx.addedFiles.some((a) => normPath(a) === p))
|
|
10008
|
+
return "agent_authored";
|
|
10009
|
+
}
|
|
10010
|
+
return "exogenous";
|
|
10011
|
+
}
|
|
9991
10012
|
function summaryOf(a) {
|
|
9992
10013
|
const why = a.tier === a.computed ? a.reasons.slice(0, 2).join("; ") : `computed ${a.computed}; override ${a.override?.from} to ${a.override?.to}: ${a.override?.reason}`;
|
|
9993
10014
|
const def = a.checks_deferred;
|
|
@@ -10142,7 +10163,7 @@ function failureExcerpt(out2, repoDir = "", cap = EXCERPT_GROUP_CAP) {
|
|
|
10142
10163
|
}
|
|
10143
10164
|
var NO_TESTS_REASON = "no tests executed", GO_EXIT0_REASON = "test count could not be confirmed: go test output is produced by the code under test and cannot confirm execution (a Go exit 0 is never a pass)", UNCONFIRMED_REASON = "test count could not be confirmed", FAIL_EVIDENCE, GO_FAIL_EVIDENCE, UNMEASURED_REASON = "executed count unmeasured (Loki could not parse the runner summary, harness-owned)", stripAnsi = (s) => s.replace(/\u001b\][^\u0007\u001b]*(?:\u0007|\u001b\\)/g, "").replace(/(?:\u001b\[|\u009b)[0-9;?]*[ -\/]*[@-~]/g, "").replace(/\r\n?/g, `
|
|
10144
10165
|
`), tailLines = (out2) => out2.split(`
|
|
10145
|
-
`).filter((x) => x.trim()).slice(-12), GO_PKG_RE, isExecutedProof = (c) => c.result === "pass" && typeof c.n === "number" && c.n > 0, hasExecutedProof = (checks) => checks.some(isExecutedProof), LLM_JUDGES, NON_RUNNER, SENSITIVE, API, TEST_CFG, RANK2, FILES_MEDIUM = 4, FILES_HIGH = 15, LINES_MEDIUM = 100, LINES_HIGH = 500, RAN_ALWAYS, PLAN, LOW_SKIPPED, deferredOf = (tier, selected, executed) => (tier === "low" ? LOW_SKIPPED : selected).filter((c) => !RAN_ALWAYS.includes(c) && !executed.includes(c)), EXCERPT_GROUP_CAP = 1500, EXCERPT_TOTAL_CAP = 6144;
|
|
10166
|
+
`).filter((x) => x.trim()).slice(-12), GO_PKG_RE, isExecutedProof = (c) => c.result === "pass" && typeof c.n === "number" && c.n > 0, hasExecutedProof = (checks) => checks.some(isExecutedProof), LLM_JUDGES, NON_RUNNER, normPath = (p) => p.replace(/^(?:\.\/)+/, ""), hasExogenousProof = (checks, ctx) => checks.some((c) => isExecutedProof(c) && ((p) => p !== "agent_authored" && p !== "llm_judge")(checkProvenance(c.name ?? "", ctx))), SENSITIVE, API, TEST_CFG, RANK2, FILES_MEDIUM = 4, FILES_HIGH = 15, LINES_MEDIUM = 100, LINES_HIGH = 500, RAN_ALWAYS, PLAN, LOW_SKIPPED, deferredOf = (tier, selected, executed) => (tier === "low" ? LOW_SKIPPED : selected).filter((c) => !RAN_ALWAYS.includes(c) && !executed.includes(c)), EXCERPT_GROUP_CAP = 1500, EXCERPT_TOTAL_CAP = 6144;
|
|
10146
10167
|
var init_check_result = __esm(() => {
|
|
10147
10168
|
init_testmap();
|
|
10148
10169
|
init_safe_git();
|
|
@@ -12386,11 +12407,6 @@ var init_project_graph = __esm(() => {
|
|
|
12386
12407
|
// ../../loki-ts/src/runner/retry_class.ts
|
|
12387
12408
|
var init_retry_class = () => {};
|
|
12388
12409
|
|
|
12389
|
-
// ../../loki-ts/src/engine10/repomap.ts
|
|
12390
|
-
var init_repomap = __esm(() => {
|
|
12391
|
-
init_safe_git();
|
|
12392
|
-
});
|
|
12393
|
-
|
|
12394
12410
|
// ../../loki-ts/src/util/reviewer_brief.ts
|
|
12395
12411
|
var init_reviewer_brief = __esm(() => {
|
|
12396
12412
|
init_repomap();
|
|
@@ -12398,9 +12414,15 @@ var init_reviewer_brief = __esm(() => {
|
|
|
12398
12414
|
init_safe_git();
|
|
12399
12415
|
});
|
|
12400
12416
|
|
|
12417
|
+
// ../../loki-ts/src/version.ts
|
|
12418
|
+
var init_version = __esm(() => {
|
|
12419
|
+
init_paths();
|
|
12420
|
+
});
|
|
12421
|
+
|
|
12401
12422
|
// ../../loki-ts/src/e10ext/reviewer_body.ts
|
|
12402
12423
|
var init_reviewer_body = __esm(() => {
|
|
12403
12424
|
init_base_guard();
|
|
12425
|
+
init_version();
|
|
12404
12426
|
});
|
|
12405
12427
|
|
|
12406
12428
|
// ../../loki-ts/src/runner/router/route_block.ts
|
|
@@ -15338,18 +15360,20 @@ function targetProofOf(v) {
|
|
|
15338
15360
|
const names = new Set(strs2(v?.target_checks)), raw2 = Array.isArray(v?.checks) ? v.checks : [];
|
|
15339
15361
|
return raw2.some((c) => names.has(String(c.name)) && hasExecutedProof([c]));
|
|
15340
15362
|
}
|
|
15341
|
-
function checksOf(v) {
|
|
15363
|
+
function checksOf(v, pc) {
|
|
15342
15364
|
if (!Array.isArray(v))
|
|
15343
15365
|
return [];
|
|
15344
15366
|
return v.filter((c) => !!c && typeof c === "object").map((c) => ({
|
|
15345
15367
|
name: String(c.name ?? ""),
|
|
15346
15368
|
cmd: String(c.cmd ?? ""),
|
|
15347
15369
|
result: c.result === "pass" || c.result === "fail" ? c.result : "not_run",
|
|
15348
|
-
duration_s: typeof c.duration_s === "number" ? c.duration_s : 0
|
|
15370
|
+
duration_s: typeof c.duration_s === "number" ? c.duration_s : 0,
|
|
15371
|
+
provenance: checkProvenance(String(c.name ?? ""), pc),
|
|
15372
|
+
...typeof c.n === "number" ? { n: c.n } : {}
|
|
15349
15373
|
}));
|
|
15350
15374
|
}
|
|
15351
15375
|
function renderReceiptMd(r) {
|
|
15352
|
-
const sig = r.verification.jwt ? `SIGNED (kid ${r.verification.kid})` : "UNSIGNED";
|
|
15376
|
+
const sig = r.verification.jwt ? `SIGNED (kid ${r.verification.kid})` : "UNSIGNED", ln = (c) => `- ${c.result}: ${c.name} (\`${c.cmd}\`, ${c.duration_s}s)`, sec = (h, cs) => [h, ...cs.length ? cs.map(ln) : ["- none"]], indep = (c) => c.provenance === "exogenous" || c.provenance === "independent";
|
|
15353
15377
|
const usd = r.cost.usd !== null ? `$${r.cost.usd.toFixed(4)}` : r.cost.measured_sessions > 0 ? `partial: $${r.cost.partial_usd.toFixed(4)} for ${r.cost.measured_sessions} of ${r.cost.total_sessions} sessions` : "not measured";
|
|
15354
15378
|
return [
|
|
15355
15379
|
`## Loki receipt: ${r.verdict}`,
|
|
@@ -15364,8 +15388,7 @@ function renderReceiptMd(r) {
|
|
|
15364
15388
|
...r.mutation_proof ? [`- ${r.mutation_proof}`] : [],
|
|
15365
15389
|
...r.route ? routeReceiptLines(r.route) : [],
|
|
15366
15390
|
"",
|
|
15367
|
-
"### Checks",
|
|
15368
|
-
...r.checks.length ? r.checks.map((c) => `- ${c.result}: ${c.name} (\`${c.cmd}\`, ${c.duration_s}s)`) : ["- none"],
|
|
15391
|
+
...r.checks.some((c) => c.provenance !== undefined) ? [...sec("### Agent-independent checks", r.checks.filter(indep)), "", ...sec("### Agent-authored / advisory checks", r.checks.filter((c) => !indep(c)))] : sec("### Checks", r.checks),
|
|
15369
15392
|
"",
|
|
15370
15393
|
...r.evidence.length ? ["### Evidence (already-satisfied)", ...r.evidence.map((e) => `- ${e}`), ""] : [],
|
|
15371
15394
|
"### NOT PROVEN",
|
|
@@ -15374,7 +15397,7 @@ function renderReceiptMd(r) {
|
|
|
15374
15397
|
].join(`
|
|
15375
15398
|
`);
|
|
15376
15399
|
}
|
|
15377
|
-
var DEEP_NOT_PROVEN, SIGNING_UNAVAILABLE = "receipt signing unavailable (no usable signing key: invalid key or unwritable ~/.loki/keys)", EXCLUDE_LOKI = ":(exclude).loki", sha2562 = (s) => createHash18("sha256").update(s).digest("hex"), str3 = (v) => typeof v === "string" && v !== "" ? v : null, strs2 = (v) => Array.isArray(v) ? v.filter((x) => typeof x === "string" && x !== "") : [], receiptRel = (ctx) => {
|
|
15400
|
+
var DEEP_NOT_PROVEN, 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)", EXCLUDE_LOKI = ":(exclude).loki", sha2562 = (s) => createHash18("sha256").update(s).digest("hex"), str3 = (v) => typeof v === "string" && v !== "" ? v : null, strs2 = (v) => Array.isArray(v) ? v.filter((x) => typeof x === "string" && x !== "") : [], receiptRel = (ctx) => {
|
|
15378
15401
|
const r = relative10(ctx.repoDir, join66(ctx.runDir, "receipt.json"));
|
|
15379
15402
|
return r.startsWith("..") || isAbsolute10(r) ? `.loki/runs/${ctx.runId}/receipt.json` : r;
|
|
15380
15403
|
}, commitStage, wallGreenOnBaseOf = (o) => {
|
|
@@ -15450,20 +15473,19 @@ var init_seal = __esm(() => {
|
|
|
15450
15473
|
const tree = (await git3(ctx, ["rev-parse", "HEAD^{tree}"])).out.trim();
|
|
15451
15474
|
const diff = await safeGitRun(ctx.repoDir, ["diff-tree", "-r", "-z", "--raw", "--no-renames", "--no-abbrev", "-O/dev/null", ctx.baseSha, head, "--", ".", EXCLUDE_LOKI], { timeoutMs: 20000 });
|
|
15452
15475
|
const diffOk = diff.exitCode === 0 && /^[0-9a-f]{40,64}$/.test(head);
|
|
15453
|
-
const checks = checksOf(o.verify?.checks);
|
|
15454
15476
|
const verifyNotProven = strs2(o.verify?.not_proven);
|
|
15455
15477
|
const base = o.wall?.base_run ?? {};
|
|
15456
15478
|
const wallNotRun = typeof base.not_run === "number" ? base.not_run : 0;
|
|
15457
15479
|
const wallGreenOnBase = wallGreenOnBaseOf(o);
|
|
15458
15480
|
const preRedChecks = strs2(o.verify?.pre_red_checks);
|
|
15459
|
-
const rawDiff = diffOk ? diff.stdout.split("\x00").filter(Boolean) : [];
|
|
15481
|
+
const rawDiff = diffOk ? diff.stdout.split("\x00").filter(Boolean) : [], pctx = { addedFiles: rawDiff.flatMap((m, i) => i % 2 === 0 && m.trim().split(" ").pop() === "A" && rawDiff[i + 1] ? [rawDiff[i + 1]] : []), wallFiles: Array.isArray(o.wall?.files) ? o.wall.files.map((f) => String(f.path)) : [] }, checks = checksOf(o.verify?.checks, pctx);
|
|
15460
15482
|
const weakTests = [];
|
|
15461
15483
|
for (let i = 0;i + 1 < rawDiff.length; i += 2)
|
|
15462
15484
|
if ((rawDiff[i].trim().split(" ").pop() ?? "") !== "A" && isTestFile(rawDiff[i + 1]))
|
|
15463
15485
|
weakTests.push(rawDiff[i + 1]);
|
|
15464
15486
|
const rcNotes = diffOk ? runnerConfigNotes(ctx.repoDir, ctx.baseSha, head, rawDiff.filter((_, i) => i % 2 === 1), signal) : [];
|
|
15465
15487
|
const grp = sealGroup(ctx.runDir, receiptSha256);
|
|
15466
|
-
const
|
|
15488
|
+
const vraw = Array.isArray(o.verify?.checks) ? o.verify.checks : [], executed = hasExecutedProof(vraw), proof = wallGreenOnBase || (process.env["LOKI_EXOGENOUS_PROOF"] === "0" ? executed : hasExogenousProof(vraw, pctx));
|
|
15467
15489
|
const uncoveredAfterLimit = o.implement?.exit === "killed" ? strs2(o.verify?.uncovered_changed) : [];
|
|
15468
15490
|
const verdict0 = capGroupVerdict(verdictOf2(o, checks.filter((c) => !(c.result === "fail" && preRedChecks.includes(c.name))), !diffOk || diff.stdout === "", verifyNotProven.length > 0 || weakTests.length > 0 || rcNotes.length > 0, wallGreenOnBase, proof, targetProofOf(o.verify), uncoveredAfterLimit), grp);
|
|
15469
15491
|
const supply = await supplyGuard(ctx.repoDir, rawDiff.filter((_, i) => i % 2 === 1), readDeclared(ctx.repoDir), process.env);
|
|
@@ -15473,8 +15495,8 @@ var init_seal = __esm(() => {
|
|
|
15473
15495
|
const verdict = mp?.outcome === "no" && mutationStrict() && o.plan?.behavior_change === true ? "PARTIAL" : verdict2;
|
|
15474
15496
|
const notProven = new Set([...DEEP_NOT_PROVEN, ...supply.notProven, ...grp.notProven, ...xr?.notes ?? [], ...reviewReceipt(ctx.provider, xr).notProven]);
|
|
15475
15497
|
if (!proof && (verdict === "PARTIAL" || verdict === "VERIFIED" || verdict === "ALREADY_SATISFIED")) {
|
|
15476
|
-
const vc =
|
|
15477
|
-
notProven.add(vc.length > 0 && vc.every((c) => c.n !== 0 && String(c.reason ?? "").startsWith(UNMEASURED_REASON)) ? UNMEASURED_REASON : vc.length > 0 && vc.every((c) => c.n !== 0 && String(c.reason ?? "").startsWith(UNCONFIRMED_REASON)) ? UNCONFIRMED_REASON : NO_TESTS_REASON);
|
|
15498
|
+
const vc = vraw;
|
|
15499
|
+
notProven.add(executed ? AGENT_ONLY_REASON : vc.length > 0 && vc.every((c) => c.n !== 0 && String(c.reason ?? "").startsWith(UNMEASURED_REASON)) ? UNMEASURED_REASON : vc.length > 0 && vc.every((c) => c.n !== 0 && String(c.reason ?? "").startsWith(UNCONFIRMED_REASON)) ? UNCONFIRMED_REASON : NO_TESTS_REASON);
|
|
15478
15500
|
}
|
|
15479
15501
|
if (wallNotRun > 0)
|
|
15480
15502
|
notProven.add(`wall base run not_run: ${wallNotRun}`);
|
|
@@ -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.17.
|
|
5
|
+
"version": "11.17.34",
|
|
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,18 +1,29 @@
|
|
|
1
|
-
# Demo
|
|
1
|
+
# Demo receipt fixtures
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
`loki demo --offline` (and `loki tour`) can show a newcomer a real receipt with
|
|
6
|
-
zero provider, zero key, zero spend, and zero network.
|
|
3
|
+
Two things live here. Both are bundled so that `loki demo --offline` (and
|
|
4
|
+
`loki tour`) works with zero provider, zero key, zero spend, and zero network.
|
|
7
5
|
|
|
8
|
-
|
|
9
|
-
findings, the cost, and the diff stats are the genuine recorded results of that
|
|
10
|
-
build.
|
|
6
|
+
## Sealed engine10 receipt (verified for real)
|
|
11
7
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
to
|
|
15
|
-
|
|
8
|
+
`receipt.json`, `events.jsonl` and `pubkey.jwk` come from one real sealed
|
|
9
|
+
engine10 run (`loki start`, claude provider) on a throwaway two-file repo whose
|
|
10
|
+
task was to fix a failing `add()`. Outcome VERIFIED, signed. `pubkey.jwk` is the
|
|
11
|
+
public half of the signing key (printed by `loki keys export`); the private key
|
|
12
|
+
was generated under a run-owned temp dir and is not committed.
|
|
16
13
|
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
The tour runs the same verifier as `loki verify`:
|
|
15
|
+
|
|
16
|
+
loki verify --pubkey skills/fixtures/demo-receipt/pubkey.jwk skills/fixtures/demo-receipt/receipt.json
|
|
17
|
+
|
|
18
|
+
It prints VERIFIED, then flips one byte in a copy under a temp dir and prints
|
|
19
|
+
TAMPERED. `events.jsonl` must stay next to `receipt.json` (the verifier binds the
|
|
20
|
+
receipt to it). Do not edit these files: any change makes the receipt TAMPERED.
|
|
21
|
+
Paths inside them point at the throwaway run's temp dir; they hold no secrets.
|
|
22
|
+
|
|
23
|
+
## Legacy proof sample
|
|
24
|
+
|
|
25
|
+
`proof.json` is a real Evidence Receipt from an earlier build, sanitized (no
|
|
26
|
+
machine paths, no secrets), used for the rendered headline the tour prints first.
|
|
27
|
+
`verification.hash` is `sample-not-reproducible` on purpose, so this file is
|
|
28
|
+
never mistaken for a reproducible run. It is a SAMPLE, not a verdict on the
|
|
29
|
+
user's own code.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{"v":1,"seq":0,"ts":"2026-10-17T05:40:44.577Z","run":"e10-20261017T054044Z-8877","type":"run.started","stage":null,"data":{"task_source":"text","issue_ref":null,"provider":"claude","model":"claude (provider default)","deep":false,"cap_s":900,"cap_ceiling_s":3600,"max_cost_usd":0,"model_override_applied":false,"branch":"loki/e10-20261017T054044Z-8877","actor":"demo","policy_revision":null,"parent_run":null,"answered_run":null,"answer_sha256":null,"downgrades":[{"stage":"plan","model":"sonnet","reason":"fast tier"},{"stage":"wall","model":"claude-sonnet-5-5","reason":"Wall pin"},{"stage":"already_done","model":"claude-sonnet-5-5","reason":"already-done check pin"}],"cli_version":"2.1.302","endpoint":"api.anthropic.com","config_digest":"f69c373f6a14eb85ed7a62bef8a2f23ab0acb2688cac60772adce7387b6c2e36","requested_model":"claude (provider default)","origin_repo":null}}
|
|
2
|
+
{"v":1,"seq":1,"ts":"2026-10-17T05:40:44.672Z","run":"e10-20261017T054044Z-8877","type":"stage.started","stage":"intake","data":{"target_s":15,"limit_s":60}}
|
|
3
|
+
{"v":1,"seq":2,"ts":"2026-10-17T05:40:45.116Z","run":"e10-20261017T054044Z-8877","type":"session.started","stage":"intake","data":{"session_id":"e10-20261017T054044Z-8877-project-model","provider":"claude","model":"sonnet","pgid":60310}}
|
|
4
|
+
{"v":1,"seq":3,"ts":"2026-10-17T05:40:52.367Z","run":"e10-20261017T054044Z-8877","type":"session.ended","stage":"intake","data":{"session_id":"e10-20261017T054044Z-8877-project-model","exit":"done","cause":"exit 0 (success)","duration_s":7.252}}
|
|
5
|
+
{"v":1,"seq":4,"ts":"2026-10-17T05:40:52.368Z","run":"e10-20261017T054044Z-8877","type":"cost","stage":"intake","data":{"session_id":"e10-20261017T054044Z-8877-project-model","model":"sonnet","usd":0.015212,"input_tokens":2239,"output_tokens":552,"cache_read_tokens":16921,"cache_creation_tokens":2505,"source":"/private/var/folders/2t/2qvt7wb54qv1tckcfs90rd7w0000gn/T/loki-run.jxNhxvYf/demo/.loki/metrics/result-cost-e10-20261017T054044Z-8877-project-model.json"}}
|
|
6
|
+
{"v":1,"seq":5,"ts":"2026-10-17T05:40:52.387Z","run":"e10-20261017T054044Z-8877","type":"stage.completed","stage":"intake","data":{"task":". Fix add() in add.js so npm test passes","title":". Fix add() in add.js so npm test passes","repo":null,"resumed":false,"contract_snapshot":{"contract":null,"notes":[],"sha256":null},"preexisting_untracked":[],"preexisting_untracked_blobs":{},"task_sha256":"c9bfaf4e68ae440dc6f6fb124800603369e06fe274ce8bf2616819940a6f0cfc","source":"text","base_sha":"7b054a41a78f06db68c51917e049f62e04b4430f","tree":"01c283c0105a16dbe6537e056efab679436409f1","branch":"loki/e10-20261017T054044Z-8877","readiness":"Readiness: 55/100 (D) - run `loki doctor --repo` for 4 fix(es)","project_model":{"status":"ok","key":"6aa89cd45f3db9ee7a291861865e8a0214325240b12ebc64312fe3a1d1e75d69","cached":false,"attempts":1,"session_model":"sonnet","ref":".loki/project.json"},"repomap_ref":"/private/var/folders/2t/2qvt7wb54qv1tckcfs90rd7w0000gn/T/loki-run.jxNhxvYf/demo/.loki/runs/e10-20261017T054044Z-8877/repomap.json","testmap":{"runners":["node"],"tests":[{"runner":"node","path":"tests/add.test.js"}],"evidence":{"node":"package.json"},"commands":{"node":{"cmd":"node --test <files>","coarse":false}},"sourceRefs":{"node:test":["tests/add.test.js"],"node:assert":["tests/add.test.js"],"add":["tests/add.test.js"]}},"already_satisfied":false,"duration_s":7.714}}
|
|
7
|
+
{"v":1,"seq":6,"ts":"2026-10-17T05:40:52.387Z","run":"e10-20261017T054044Z-8877","type":"stage.started","stage":"plan","data":{"target_s":45,"limit_s":90}}
|
|
8
|
+
{"v":1,"seq":7,"ts":"2026-10-17T05:40:52.387Z","run":"e10-20261017T054044Z-8877","type":"stage.started","stage":"wall","data":{"target_s":45,"limit_s":300,"start_ms":1792215652387}}
|
|
9
|
+
{"v":1,"seq":8,"ts":"2026-10-17T05:40:52.388Z","run":"e10-20261017T054044Z-8877","type":"variant","stage":null,"data":{"size":"small","reasons":["task 40 chars, names 1 files"],"plan_mode":"auto","plan_skipped":true,"wall_model":"claude-sonnet-5-5","small_task_path":"lean","cascade":false}}
|
|
10
|
+
{"v":1,"seq":9,"ts":"2026-10-17T05:40:52.388Z","run":"e10-20261017T054044Z-8877","type":"stage.skipped","stage":"plan","data":{"size":"small","reason":"small task: implementer plans"}}
|
|
11
|
+
{"v":1,"seq":10,"ts":"2026-10-17T05:40:52.388Z","run":"e10-20261017T054044Z-8877","type":"stage.skipped","stage":"wall","data":{"size":"small","reason":"small task with a relevant test: cascade skips Wall"}}
|
|
12
|
+
{"v":1,"seq":11,"ts":"2026-10-17T05:40:52.389Z","run":"e10-20261017T054044Z-8877","type":"stage.started","stage":"implement","data":{"target_s":180,"limit_s":712}}
|
|
13
|
+
{"v":1,"seq":12,"ts":"2026-10-17T05:40:52.393Z","run":"e10-20261017T054044Z-8877","type":"session.started","stage":"implement","data":{"session_id":"e10-20261017T054044Z-8877-impl","provider":"claude","model":"claude (provider default)","pgid":65384}}
|
|
14
|
+
{"v":1,"seq":13,"ts":"2026-10-17T05:41:11.788Z","run":"e10-20261017T054044Z-8877","type":"session.ended","stage":"implement","data":{"session_id":"e10-20261017T054044Z-8877-impl","exit":"done","cause":"exit 0 (success)","duration_s":19.394}}
|
|
15
|
+
{"v":1,"seq":14,"ts":"2026-10-17T05:41:11.788Z","run":"e10-20261017T054044Z-8877","type":"cost","stage":"implement","data":{"session_id":"e10-20261017T054044Z-8877-impl","model":"claude (provider default)","usd":0.038349400000000006,"input_tokens":2014,"output_tokens":897,"cache_read_tokens":23139,"cache_creation_tokens":3180,"source":"/private/var/folders/2t/2qvt7wb54qv1tckcfs90rd7w0000gn/T/loki-run.jxNhxvYf/demo/.loki/metrics/result-cost-e10-20261017T054044Z-8877-impl.json","effort":"medium"}}
|
|
16
|
+
{"v":1,"seq":15,"ts":"2026-10-17T05:41:11.828Z","run":"e10-20261017T054044Z-8877","type":"stage.completed","stage":"implement","data":{"exit":"done","already_done_evidence":null,"spec_conflict_reason":null,"tests_reverted":[],"impacted_tests":["tests/add.test.js"],"cascade":false,"iteration_ids":["e10-20261017T054044Z-8877-impl"],"model":"claude (provider default)","session_id":"9e8477a5-a601-420b-9ae9-9d0e95d90ad9","duration_s":19.439}}
|
|
17
|
+
{"v":1,"seq":16,"ts":"2026-10-17T05:41:11.828Z","run":"e10-20261017T054044Z-8877","type":"stage.started","stage":"verify","data":{"target_s":60,"limit_s":120}}
|
|
18
|
+
{"v":1,"seq":17,"ts":"2026-10-17T05:41:12.048Z","run":"e10-20261017T054044Z-8877","type":"test.result","stage":"verify","data":{"name":"node:tests/add.test.js","cmd":"node --test ./tests/add.test.js","result":"pass","duration_s":0.093,"n":1,"sk":0}}
|
|
19
|
+
{"v":1,"seq":18,"ts":"2026-10-17T05:41:12.206Z","run":"e10-20261017T054044Z-8877","type":"stage.completed","stage":"verify","data":{"checks":[{"name":"node:tests/add.test.js","cmd":"node --test ./tests/add.test.js","result":"pass","duration_s":0.093,"n":1,"sk":0}],"flaky":[],"failures_grouped":[],"holdout_failed":0,"changed_files":["add.js"],"not_proven":[],"pre_red":[],"pre_red_checks":[],"test_counts":{},"uncovered_changed":[],"target_checks":["node:tests/add.test.js"],"risk":{"version":1,"tier":"low","computed":"low","reasons":["1 file, no sensitive paths"],"stats":{"files":1,"lines":2,"sensitive":[],"tests_modified":[],"tests_deleted":[],"api":[]},"checks_selected":["targeted tests","lint of changed files"],"checks_deferred":["full test command","reviewer","council","security scan"],"summary":"risk: low (1 file, no sensitive paths), full test command, reviewer, council, security scan not run"},"duration_s":0.377}}
|
|
20
|
+
{"v":1,"seq":19,"ts":"2026-10-17T05:41:12.206Z","run":"e10-20261017T054044Z-8877","type":"stage.started","stage":"commit","data":{"target_s":5,"limit_s":30}}
|
|
21
|
+
{"v":1,"seq":20,"ts":"2026-10-17T05:41:12.326Z","run":"e10-20261017T054044Z-8877","type":"stage.completed","stage":"commit","data":{"committed":true,"head_sha":"3321417c16d471bd7f9978771e22dd9c9519e85f","scope_notes":["scope not determined; all edits committed"],"duration_s":0.12}}
|
|
22
|
+
{"v":1,"seq":21,"ts":"2026-10-17T05:41:12.327Z","run":"e10-20261017T054044Z-8877","type":"stage.started","stage":"seal","data":{"target_s":15,"limit_s":60}}
|
|
23
|
+
{"v":1,"seq":22,"ts":"2026-10-17T05:41:12.516Z","run":"e10-20261017T054044Z-8877","type":"receipt.sealed","stage":"seal","data":{"path":"/private/var/folders/2t/2qvt7wb54qv1tckcfs90rd7w0000gn/T/loki-run.jxNhxvYf/demo/.loki/runs/e10-20261017T054044Z-8877/receipt.json","receipt_sha256":"a1f0080ffca6fd2d572135d7e3999951eaae591d8ae3b178846da9cf2d71b1f7","signed":true,"kid":"s-_ivG-e4sq72EvyiuRsqgPKjl8i_qtA4bQgPJHQXSE","verdict":"VERIFIED","not_proven":["full suite","app boot","council","security scan","scope not determined; all edits committed","repo not recorded by intake","visual evidence skipped: no dev, preview or start script"]}}
|
|
24
|
+
{"v":1,"seq":23,"ts":"2026-10-17T05:41:12.516Z","run":"e10-20261017T054044Z-8877","type":"stage.completed","stage":"seal","data":{"receipt_path":"/private/var/folders/2t/2qvt7wb54qv1tckcfs90rd7w0000gn/T/loki-run.jxNhxvYf/demo/.loki/runs/e10-20261017T054044Z-8877/receipt.json","receipt_sha256":"a1f0080ffca6fd2d572135d7e3999951eaae591d8ae3b178846da9cf2d71b1f7","signed":true,"kid":"s-_ivG-e4sq72EvyiuRsqgPKjl8i_qtA4bQgPJHQXSE","verdict":"VERIFIED","not_proven":["full suite","app boot","council","security scan","scope not determined; all edits committed","repo not recorded by intake","visual evidence skipped: no dev, preview or start script"],"mutation_line":"test fails without the fix: inconclusive (no Wall tests)","summary":"VERIFIED receipt a1f0080ffca6 SIGNED kid s-_ivG-e4sq72EvyiuRsqgPKjl8i_qtA4bQgPJHQXSE","duration_s":0.19}}
|
|
25
|
+
{"v":1,"seq":24,"ts":"2026-10-17T05:41:12.520Z","run":"e10-20261017T054044Z-8877","type":"run.completed","stage":null,"data":{"verdict":"VERIFIED","pr_url":null,"not_proven":["full suite","app boot","council","security scan","scope not determined; all edits committed","repo not recorded by intake","visual evidence skipped: no dev, preview or start script"],"cost_usd":0.05356140000000001,"wall_s":28.153,"pre_model":{"span_s":0.749,"stages":{"setup":0.305,"intake":0.444}}}}
|
|
26
|
+
{"v":1,"seq":25,"ts":"2026-10-17T05:41:12.520Z","run":"e10-20261017T054044Z-8877","type":"log.sealed","stage":null,"data":{"kid":"s-_ivG-e4sq72EvyiuRsqgPKjl8i_qtA4bQgPJHQXSE","events_sha256":"f3dad33496a19534f83cb8aafdfb185695bc3d2a80262f33a4c78fa83eae1ec6","tampered":false,"sig":"M-F6c3sfJJHrVoac3TRzFMtXs-NU8C7zr7CnyeooWCopx2c7foF0Isjgh1jKzez9GwynrS-QN6CwjIOw3tcICA"}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"kty":"OKP","crv":"Ed25519","x":"lczJ_rUX-e_EOwobhomVKQ-MXzc1BWSmPUbzFCuCeaw","kid":"s-_ivG-e4sq72EvyiuRsqgPKjl8i_qtA4bQgPJHQXSE","alg":"EdDSA","use":"sig"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "loki.v10.receipt/1",
|
|
3
|
+
"run_id": "e10-20261017T054044Z-8877",
|
|
4
|
+
"task": {
|
|
5
|
+
"source": "text",
|
|
6
|
+
"sha256": "c9bfaf4e68ae440dc6f6fb124800603369e06fe274ce8bf2616819940a6f0cfc"
|
|
7
|
+
},
|
|
8
|
+
"repo": "",
|
|
9
|
+
"base_sha": "7b054a41a78f06db68c51917e049f62e04b4430f",
|
|
10
|
+
"head_sha": "3321417c16d471bd7f9978771e22dd9c9519e85f",
|
|
11
|
+
"tree": "8b73ce8c9bd52dae34b06a05a5010161e10107c7",
|
|
12
|
+
"diff_sha256": "521dd6447ed0243cb16e8c194b713b415b3a39365d764ca4f7e22ad6f527bbee",
|
|
13
|
+
"wall": {
|
|
14
|
+
"files": [],
|
|
15
|
+
"passed": null
|
|
16
|
+
},
|
|
17
|
+
"checks": [
|
|
18
|
+
{
|
|
19
|
+
"name": "node:tests/add.test.js",
|
|
20
|
+
"cmd": "node --test ./tests/add.test.js",
|
|
21
|
+
"result": "pass",
|
|
22
|
+
"duration_s": 0.093
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"not_proven": [
|
|
26
|
+
"full suite",
|
|
27
|
+
"app boot",
|
|
28
|
+
"council",
|
|
29
|
+
"security scan",
|
|
30
|
+
"scope not determined; all edits committed",
|
|
31
|
+
"repo not recorded by intake",
|
|
32
|
+
"visual evidence skipped: no dev, preview or start script"
|
|
33
|
+
],
|
|
34
|
+
"verdict": "VERIFIED",
|
|
35
|
+
"evidence": [],
|
|
36
|
+
"cost": {
|
|
37
|
+
"usd": 0.05356140000000001,
|
|
38
|
+
"input_tokens": 4253,
|
|
39
|
+
"output_tokens": 1449,
|
|
40
|
+
"cache_read_tokens": 40060,
|
|
41
|
+
"cache_creation_tokens": 5685,
|
|
42
|
+
"sdk_duration_ms": 25056,
|
|
43
|
+
"turns": 7,
|
|
44
|
+
"cache_creation_main_loop": {
|
|
45
|
+
"ephemeral_5m_tokens": 5685,
|
|
46
|
+
"ephemeral_1h_tokens": 0
|
|
47
|
+
},
|
|
48
|
+
"per_model": {
|
|
49
|
+
"claude-haiku-5-5": {
|
|
50
|
+
"input_tokens": 4239,
|
|
51
|
+
"output_tokens": 38,
|
|
52
|
+
"cache_read_tokens": 0,
|
|
53
|
+
"cache_creation_tokens": 0,
|
|
54
|
+
"cost_usd": 0.00044290000000000003
|
|
55
|
+
},
|
|
56
|
+
"claude-opus-5-5": {
|
|
57
|
+
"input_tokens": 8,
|
|
58
|
+
"output_tokens": 879,
|
|
59
|
+
"cache_read_tokens": 23139,
|
|
60
|
+
"cache_creation_tokens": 3180,
|
|
61
|
+
"cost_usd": 0.0381398
|
|
62
|
+
},
|
|
63
|
+
"claude-sonnet-5-5": {
|
|
64
|
+
"input_tokens": 6,
|
|
65
|
+
"output_tokens": 532,
|
|
66
|
+
"cache_read_tokens": 16921,
|
|
67
|
+
"cache_creation_tokens": 2505,
|
|
68
|
+
"cost_usd": 0.014978700000000001
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"tokens_scope": "all-models",
|
|
72
|
+
"measured_sessions": 2,
|
|
73
|
+
"total_sessions": 2,
|
|
74
|
+
"partial_usd": 0.05356140000000001
|
|
75
|
+
},
|
|
76
|
+
"time": {
|
|
77
|
+
"wall_s": 27.652,
|
|
78
|
+
"total_s": 27.877,
|
|
79
|
+
"stages": {
|
|
80
|
+
"intake": 7.715,
|
|
81
|
+
"plan+wall": 0.001,
|
|
82
|
+
"implement": 19.439,
|
|
83
|
+
"verify": 0.377,
|
|
84
|
+
"commit": 0.12,
|
|
85
|
+
"setup": 0.089,
|
|
86
|
+
"orchestration": 0.008,
|
|
87
|
+
"seal": 0.128
|
|
88
|
+
},
|
|
89
|
+
"stage_s": {
|
|
90
|
+
"intake": 7.715,
|
|
91
|
+
"plan": 0.001,
|
|
92
|
+
"wall": 0.001,
|
|
93
|
+
"implement": 19.439,
|
|
94
|
+
"verify": 0.377,
|
|
95
|
+
"commit": 0.12
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"provider": "claude",
|
|
99
|
+
"model": "claude (provider default)",
|
|
100
|
+
"resumed": false,
|
|
101
|
+
"events_sha256": "073806c566c00c82a00a653e6659b9025f3262383a18d4f9c4473fa0543d4905",
|
|
102
|
+
"log_seal": true,
|
|
103
|
+
"cost_preview": {
|
|
104
|
+
"estimate": "NOT AVAILABLE (no project shape recorded for this repo)",
|
|
105
|
+
"actual": {
|
|
106
|
+
"usd": 0.05356140000000001,
|
|
107
|
+
"wall_s": 27.877
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"mutation_proof": "test fails without the fix: inconclusive (no Wall tests)",
|
|
111
|
+
"mutation_outcome": "inconclusive",
|
|
112
|
+
"receipt_sha256": "a1f0080ffca6fd2d572135d7e3999951eaae591d8ae3b178846da9cf2d71b1f7",
|
|
113
|
+
"verification": {
|
|
114
|
+
"jwt": "eyJhbGciOiJFZERTQSIsImtpZCI6InMtX2l2Ry1lNHNxNzJFdnlpdVJzcWdQS2psOGlfcXRBNGJRZ1BKSFFYU0UiLCJ0eXAiOiJKV1QifQ.eyJpYXQiOjE3OTIyMTU2NzIsImpvYl9pZCI6ImUxMC0yMDI2MTAxN1QwNTQwNDRaLTg4NzciLCJyZWNlaXB0X3NoYTI1NiI6ImExZjAwODBmZmNhNmZkMmQ1NzIxMzVkN2UzOTk5OTUxZWFhZTU5MWQ4YWUzYjE3ODg0NmRhOWNmMmQ3MWIxZjciLCJydW5faWQiOiJlMTAtMjAyNjEwMTdUMDU0MDQ0Wi04ODc3In0.ZlhuBMk20fhuIm7BJxEXMMWB0fFx75K2eTCOp54tvRQTLcRJvtR-7VZ0QDOzr_w6lj02rwf3zHIq22a8L9soAA",
|
|
115
|
+
"kid": "s-_ivG-e4sq72EvyiuRsqgPKjl8i_qtA4bQgPJHQXSE"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as L,r as x,j as e,w as re,Z as ne,m as le,h as ie,p as P,F as ye,U as I,X as ce,L as de,x as oe,M as Ae,T as Z,S as we,l as xe,k as me,y as Ce,E as Fe,a0 as Se,a as U,a2 as he}from"./index-
|
|
1
|
+
import{c as L,r as x,j as e,w as re,Z as ne,m as le,h as ie,p as P,F as ye,U as I,X as ce,L as de,x as oe,M as Ae,T as Z,S as we,l as xe,k as me,y as Ce,E as Fe,a0 as Se,a as U,a2 as he}from"./index-Dp6emuTo.js";import{B as C}from"./Button-lPXsKVcs.js";import{T as $e}from"./trending-up-Dk_GS57K.js";import{C as z}from"./clock-CCgwQ80p.js";import{A as Be,U as ue,M as De}from"./Avatar-C02t-Irl.js";import{A as J}from"./activity-D22UFJWA.js";import{R as pe}from"./refresh-cw-CJ_pkRQQ.js";import{G as ze}from"./globe-DOA9Y_1n.js";import{C as Le}from"./chevron-left-XI4pnrlY.js";import{C as je}from"./check-D9kJod1H.js";import{D as Y}from"./dollar-sign-FDCzdLrB.js";import{U as Te}from"./user-Dr6XCReg.js";import{D as Me}from"./database-C_a7H_3N.js";import{L as Ue}from"./lock-HKmv1nIN.js";import{S as Re}from"./scroll-text-CeVAfOXM.js";import{S as Ie}from"./shield-alert-CJfx3HCX.js";/**
|
|
2
2
|
* @license lucide-react v0.577.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e}from"./index-
|
|
1
|
+
import{j as e}from"./index-Dp6emuTo.js";import{C as r}from"./clock-CCgwQ80p.js";import{C as a}from"./circle-alert-CvS3mi0t.js";import{C as l}from"./check-D9kJod1H.js";const i={completed:"bg-[#1FC5A8]/10 text-[#1FC5A8]",running:"bg-[#553DE9]/10 text-[#553DE9]",failed:"bg-[#C45B5B]/10 text-[#C45B5B]",started:"bg-[#D4A03C]/10 text-[#D4A03C]",empty:"bg-[#F8F4F0] text-[#6B6960]",version:"bg-[#553DE9]/10 text-[#553DE9]"};function o({status:t}){switch(t){case"completed":return e.jsx(l,{size:12});case"running":return e.jsxs("span",{className:"relative flex h-2 w-2",children:[e.jsx("span",{className:"animate-ping motion-reduce:animate-none absolute inline-flex h-full w-full rounded-full bg-current opacity-75"}),e.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-current"})]});case"failed":return e.jsx(a,{size:12});case"started":return e.jsx(r,{size:12});default:return null}}function f({status:t,children:n,className:s=""}){return e.jsxs("span",{className:["inline-flex items-center gap-1 rounded-btn px-2.5 py-0.5 text-xs font-semibold",i[t],s].filter(Boolean).join(" "),children:[e.jsx(o,{status:t}),n]})}export{f as B};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as p,j as t}from"./index-
|
|
1
|
+
import{r as p,j as t}from"./index-Dp6emuTo.js";const m={primary:"bg-[#553DE9] text-white hover:bg-[#4432c4] shadow-button rounded-btn",secondary:"border border-[#553DE9] text-[#553DE9] hover:bg-[#E8E4FD] bg-transparent rounded-btn",ghost:"text-[#36342E] hover:bg-[#F8F4F0] rounded-btn",danger:"bg-[#C45B5B]/10 text-[#C45B5B] border border-[#C45B5B]/20 hover:bg-[#C45B5B]/20 rounded-btn"},b={sm:"px-3 py-1.5 text-xs",md:"px-4 py-2 text-sm",lg:"px-6 py-3 text-base"},u={sm:14,md:16,lg:18};function h({size:e}){return t.jsxs("svg",{className:"animate-spin",width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[t.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),t.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})}const B=p.forwardRef(({variant:e="primary",size:o="md",icon:n,iconRight:i,loading:r=!1,disabled:a,className:c="",children:l,...x},d)=>{const s=u[o];return t.jsxs("button",{ref:d,disabled:a||r,className:["inline-flex items-center justify-center gap-2 font-medium transition-colors",m[e],b[o],(a||r)&&"opacity-60 cursor-not-allowed",c].filter(Boolean).join(" "),...x,children:[r?t.jsx(h,{size:s}):n?t.jsx(n,{size:s}):null,l,i&&!r&&t.jsx(i,{size:s})]})});B.displayName="Button";export{B};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as $,r as l,j as e,G as we,Q as Se,F as Ce,h as Re,T as U,Z as Ee,a as S,V as Me,S as $e,Y as Te,X as Pe,P as ie,i as Ae,g as ze,C as Ie,l as Le,N as I,J as _e,K as De,O as Fe,u as Oe}from"./index-
|
|
1
|
+
import{c as $,r as l,j as e,G as we,Q as Se,F as Ce,h as Re,T as U,Z as Ee,a as S,V as Me,S as $e,Y as Te,X as Pe,P as ie,i as Ae,g as ze,C as Ie,l as Le,N as I,J as _e,K as De,O as Fe,u as Oe}from"./index-Dp6emuTo.js";import{P as K,S as He,E as Be}from"./ErrorBoundary-D8nyc_y_.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-BrC-E9mS.js";import{C as oe}from"./check-D9kJod1H.js";import{C as Ye}from"./clock-CCgwQ80p.js";import{D as Xe}from"./dollar-sign-FDCzdLrB.js";import{U as Ze}from"./upload-BAxHyFqH.js";import{L as V}from"./loader-circle-CJ2SKm0h.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-DgPhoE0o.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-Dp6emuTo.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};
|
package/web-app/dist/assets/{EvidenceReceiptPanel-CyHD9ajE.js → EvidenceReceiptPanel-DtTSMxZm.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as l,a as x,j as e}from"./index-
|
|
1
|
+
import{r as l,a as x,j as e}from"./index-Dp6emuTo.js";const N={verified:{badge:"bg-success/10 text-success border-success/20",dot:"bg-success",label:"Verified",proven:"The server recomputed the integrity hash and it matches, and the gpg signature verified against its keyring.",notProven:"That the code is correct, or that the recorded diff still matches your repo. A receipt records which checks ran, not that the result is right."},unsigned:{badge:"bg-warning/10 text-warning border-warning/20",dot:"bg-warning",label:"Unsigned",proven:"The server recomputed the integrity hash and it matches these receipt bytes.",notProven:"Who produced it. An unsigned receipt is forgeable: whoever controls the builder can rewrite the facts and recompute the hash."},unchecked:{badge:"bg-warning/10 text-warning border-warning/20",dot:"bg-warning",label:"Not checked",proven:"The server recomputed the integrity hash and it matches.",notProven:"Provenance. A signature is present but was not evaluated here, which is not the same as a bad signature."},tampered:{badge:"bg-danger/10 text-danger border-danger/20",dot:"bg-danger",label:"Tampered",proven:"Nothing. The server recomputed the integrity hash and it does not match the contents.",notProven:"Anything at all. This receipt was edited after it was written. Do not trust this build."},failed:{badge:"bg-danger/10 text-danger border-danger/20",dot:"bg-danger",label:"Failed verification",proven:"Nothing. A verification check ran on the server and said no.",notProven:"Anything the receipt claims. Read the reason below."},not_verified:{badge:"border-muted/20 text-muted",dot:"bg-muted/40",label:"Not verified here",proven:"Nothing. No verification result was computed for this receipt here.",notProven:"Integrity or provenance. Run the command below to check it yourself."}};function w(t){const n=t==null?void 0:t.integrity_check,r=t==null?void 0:t.verification;return n?n.status==="tampered"?"tampered":n.status==="failed"?"failed":n.status!=="verified"?"not_verified":n.gpg_ok===!0?"verified":r!=null&&r.attestation||r!=null&&r.gpg_signature?"unchecked":"unsigned":"not_verified"}const v=[{key:"verified",label:"Verified",bar:"bg-success",text:"text-success"},{key:"with_gaps",label:"With gaps",bar:"bg-warning",text:"text-warning"},{key:"not_verified",label:"Not verified",bar:"bg-danger",text:"text-danger"},{key:"unknown",label:"Unknown",bar:"bg-muted/40",text:"text-muted"}];function y({summary:t}){const n=t.total_receipts;return n?e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"flex h-1.5 rounded-full overflow-hidden bg-muted/10",children:v.map(({key:r,bar:s})=>{const i=t[r];return i?e.jsx("div",{className:s,style:{width:`${i/n*100}%`},title:`${i} ${r}`},r):null})}),e.jsx("div",{className:"flex flex-wrap gap-x-4 gap-y-1 text-xs",children:v.map(({key:r,label:s,text:i})=>{const c=t[r];return c?e.jsxs("span",{className:i,children:[e.jsx("span",{className:"font-semibold",children:c})," ",s.toLowerCase()]},r):null})}),e.jsxs("p",{className:"text-muted text-xs",children:["Recorded verdicts across ",n," receipt",n===1?"":"s",", not re-verified here."]})]}):null}function u({label:t,value:n}){return e.jsxs("div",{className:"flex items-baseline gap-2 text-xs",children:[e.jsx("span",{className:"text-muted w-28 flex-shrink-0",children:t}),e.jsx("span",{className:"font-mono truncate",title:n,children:n})]})}function k({proof:t}){var m,p,g,f,b;const[n,r]=l.useState(!1),[s,i]=l.useState(null),[c,d]=l.useState(null);l.useEffect(()=>{if(!n||s||c)return;let o=!1;return x.getProof(t.run_id).then(h=>{o||i(h)}).catch(h=>{o||d((h==null?void 0:h.message)||"could not load this receipt")}),()=>{o=!0}},[n,t.run_id,s,c]);const a=N[w(s)],j=t.generated_at?new Date(t.generated_at).toLocaleString():"unknown";return e.jsxs("div",{className:`border rounded-card overflow-hidden ${s?a.badge:"border-muted/20"}`,children:[e.jsxs("button",{type:"button",className:"w-full flex items-center gap-3 px-3 py-2.5 text-left",onClick:()=>r(!n),"aria-expanded":n,children:[e.jsx("span",{className:`w-2 h-2 rounded-full flex-shrink-0 ${s?a.dot:"bg-muted/40"}`}),e.jsx("span",{className:"text-sm font-medium flex-1 truncate",children:t.headline?`Recorded: ${t.headline}`:t.run_id}),t.final_verdict&&e.jsxs("span",{className:"text-xs font-mono uppercase tracking-wider flex-shrink-0 text-muted",children:["council ",t.final_verdict]}),e.jsx("span",{className:"text-muted text-xs flex-shrink-0",children:n?"−":"+"})]}),n&&e.jsxs("div",{className:"px-3 pb-3 space-y-3 border-t border-current/10 pt-3",children:[c&&e.jsxs("p",{className:"text-xs text-danger",children:["Could not load this receipt: ",c]}),!c&&!s&&e.jsx("p",{className:"text-xs text-muted",children:"Loading receipt…"}),s&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx(u,{label:"Run",value:s.run_id}),e.jsx(u,{label:"Generated",value:j}),e.jsx(u,{label:"Loki version",value:s.loki_version||"unknown"}),e.jsx(u,{label:"Cost",value:typeof((m=s.cost)==null?void 0:m.usd)=="number"?`${s.cost.cost_partial===!0?"at least ":""}$${s.cost.usd.toFixed(2)}`:"unknown"}),e.jsx(u,{label:"Files changed",value:typeof((p=s.files_changed)==null?void 0:p.count)=="number"?String(s.files_changed.count):"unknown"}),((g=s.verification)==null?void 0:g.hash)&&e.jsx(u,{label:"Recorded hash",value:s.verification.hash})]}),e.jsxs("div",{className:`rounded-card border px-3 py-2 ${a.badge}`,children:[e.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider mb-1",children:a.label}),e.jsxs("p",{className:"text-xs mb-1",children:[e.jsx("span",{className:"font-semibold",children:"Proven: "}),a.proven]}),e.jsxs("p",{className:"text-xs opacity-80",children:[e.jsx("span",{className:"font-semibold",children:"Not proven: "}),a.notProven]}),(((f=s.integrity_check)==null?void 0:f.reasons)||[]).slice(0,2).map(o=>e.jsx("p",{className:"text-xs opacity-80 mt-1",children:o},o))]}),e.jsxs("p",{className:"text-xs text-muted",children:["Verify it yourself (also re-derives the diff against your repo):"," ",e.jsxs("code",{className:"font-mono",children:["loki proof verify ",s.run_id,(b=s.verification)!=null&&b.attestation?" --jwks <url|file>":""]})]}),t.pr_url&&e.jsx("a",{href:t.pr_url,target:"_blank",rel:"noreferrer noopener",className:"text-xs text-primary underline",children:"View the pull request"})]})]})]})}function P(){const[t,n]=l.useState(null),[r,s]=l.useState(null),[i,c]=l.useState(null);return l.useEffect(()=>{let d=!1;return x.listProofs().then(a=>{d||n(a.proofs||[])}).catch(a=>{d||c((a==null?void 0:a.message)||"could not load receipts")}),x.proofsSummary().then(a=>{d||s(a)}).catch(()=>{}),()=>{d=!0}},[]),e.jsxs("section",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-sm font-semibold",children:"Evidence Receipts"}),e.jsx("p",{className:"text-muted text-xs mt-1",children:"What each build actually checked, recorded so you can verify it yourself."})]}),i&&e.jsxs("p",{className:"text-xs text-danger",children:["Could not load receipts: ",i]}),!i&&t===null&&e.jsx("p",{className:"text-xs text-muted",children:"Loading…"}),r&&e.jsx(y,{summary:r}),t!==null&&t.length===0&&e.jsxs("p",{className:"text-xs text-muted",children:["No receipts yet. One is written at the end of each run (set ",e.jsx("code",{className:"font-mono",children:"LOKI_PROOF=0"})," to opt out)."]}),e.jsx("div",{className:"space-y-2",children:t==null?void 0:t.map(d=>e.jsx(k,{proof:d},d.run_id))})]})}export{P as E};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as _,r as o,a as k,j as e,m as B,J as v,N as h,a5 as H,M as L,l as q}from"./index-
|
|
1
|
+
import{c as _,r as o,a as k,j as e,m as B,J as v,N as h,a5 as H,M as L,l as q}from"./index-Dp6emuTo.js";import{B as N}from"./Button-lPXsKVcs.js";import{C as y}from"./thumbs-up-BrC-E9mS.js";import{R as S}from"./refresh-cw-CJ_pkRQQ.js";import{C as z}from"./circle-alert-CvS3mi0t.js";import{U as D}from"./user-Dr6XCReg.js";import{L as G}from"./loader-circle-CJ2SKm0h.js";import{R as T}from"./rotate-ccw-rGU_udZ1.js";/**
|
|
2
2
|
* @license lucide-react v0.577.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|