loki-mode 9.72.0 → 9.74.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SKILL.md +2 -2
- package/VERSION +1 -1
- package/autonomy/completion-council.sh +20 -3
- package/autonomy/lib/proof-generator.py +7 -0
- package/autonomy/loki +18 -7
- package/autonomy/run.sh +14 -1
- package/dashboard/__init__.py +1 -1
- package/dashboard/server.py +22 -13
- package/dashboard/static/index.html +52 -52
- package/docs/INSTALLATION.md +1 -1
- package/docs/v10/ARCHITECT-CUTS.md +257 -314
- package/docs/v10/BOARD.md +66 -46
- package/loki-ts/dist/loki.js +251 -250
- package/mcp/__init__.py +1 -1
- package/package.json +1 -1
- package/plugins/loki-mode/.claude-plugin/plugin.json +1 -1
- package/web-app/dist/assets/{AdminPage-DSGXcnR9.js → AdminPage-DaeYgQSE.js} +1 -1
- package/web-app/dist/assets/{Avatar-BzKgYbPS.js → Avatar-CgwQi58_.js} +1 -1
- package/web-app/dist/assets/{Badge-D7IV8fCI.js → Badge-Bwq-lpRh.js} +1 -1
- package/web-app/dist/assets/{Button-BtZtsVmf.js → Button-BEf4Nher.js} +1 -1
- package/web-app/dist/assets/{CockpitPage-Bh_KE2W9.js → CockpitPage-Bj41Xtg9.js} +1 -1
- package/web-app/dist/assets/{ComparePage-BoIN52_0.js → ComparePage-tFbdo90G.js} +1 -1
- package/web-app/dist/assets/{ErrorBoundary-DFtJl7OU.js → ErrorBoundary-Brewvgm9.js} +1 -1
- package/web-app/dist/assets/{EvidenceReceiptPanel-B8PMx1El.js → EvidenceReceiptPanel-h_82QBVa.js} +1 -1
- package/web-app/dist/assets/GitHubIssuesPanel-Dcg5xDMm.js +7 -0
- package/web-app/dist/assets/{GitHubPRsPanel-3sCeuTr1.js → GitHubPRsPanel-DFKzVyA1.js} +1 -1
- package/web-app/dist/assets/{HomePage-D6-3wjI4.js → HomePage-D21cM1Je.js} +2 -2
- package/web-app/dist/assets/{LoginPage-CU3Mx-d-.js → LoginPage-DJ9yqMn4.js} +1 -1
- package/web-app/dist/assets/{MagicPage-DzfcQSzS.js → MagicPage-mwkjJhBy.js} +1 -1
- package/web-app/dist/assets/{MetricsPage-DpnfqYW8.js → MetricsPage-D2q-PD-s.js} +1 -1
- package/web-app/dist/assets/{NotFoundPage-BtVVYFq7.js → NotFoundPage-BtusJvgS.js} +1 -1
- package/web-app/dist/assets/{ProjectPage-BaOPrdxG.js → ProjectPage-CRPALtO8.js} +63 -63
- package/web-app/dist/assets/{ProjectsPage-c79Knint.js → ProjectsPage-DuzABpfc.js} +1 -1
- package/web-app/dist/assets/{SettingsPage-DojLML_x.js → SettingsPage-DhJPX-Rf.js} +1 -1
- package/web-app/dist/assets/{ShowcasePage-3F53w-Sp.js → ShowcasePage-CvgS47nu.js} +1 -1
- package/web-app/dist/assets/{SystemSettingsPage-BxeFJwt4.js → SystemSettingsPage-l3Cv9YjY.js} +1 -1
- package/web-app/dist/assets/{TeamsPage-CHA0HuWY.js → TeamsPage-DridGcnR.js} +1 -1
- package/web-app/dist/assets/{TemplatesPage-CnDQ-KFh.js → TemplatesPage-CTNsfp03.js} +1 -1
- package/web-app/dist/assets/{TerminalOutput-VmO52cMY.js → TerminalOutput-BuyksqLh.js} +1 -1
- package/web-app/dist/assets/{activity-vZCshJM0.js → activity-DM2TKaBi.js} +1 -1
- package/web-app/dist/assets/{bell-BxRFgtqf.js → bell-D2PMLbbX.js} +1 -1
- package/web-app/dist/assets/{bot-SHNpokFd.js → bot-BnN32Jxp.js} +1 -1
- package/web-app/dist/assets/{check-CAYEkTkW.js → check-CU128nw_.js} +1 -1
- package/web-app/dist/assets/{chevron-left-Dm6SOUPc.js → chevron-left-ehNW1Do7.js} +1 -1
- package/web-app/dist/assets/{circle-alert-HPEKCt1i.js → circle-alert-Cpw2gtOC.js} +1 -1
- package/web-app/dist/assets/{clock-b69SYSxv.js → clock-BOZHdPVS.js} +1 -1
- package/web-app/dist/assets/{cloud-rpBEl6db.js → cloud-BZ2L9Fzi.js} +1 -1
- package/web-app/dist/assets/{code-xml-BiySzxEs.js → code-xml-sSo522gu.js} +1 -1
- package/web-app/dist/assets/{database-YQhBvS_C.js → database-DrR1xHzS.js} +1 -1
- package/web-app/dist/assets/{dollar-sign-BFXsvdVi.js → dollar-sign-CHE3T_rh.js} +1 -1
- package/web-app/dist/assets/{file-code-corner-DvWqbYRN.js → file-code-corner-CgcssyRQ.js} +1 -1
- package/web-app/dist/assets/{file-plus-DGq3HAu7.js → file-plus-DtwfrxYH.js} +1 -1
- package/web-app/dist/assets/{globe-8LZ1qpNX.js → globe-Dzla77iL.js} +1 -1
- package/web-app/dist/assets/{hammer-COs1axEr.js → hammer-BAMdG66t.js} +1 -1
- package/web-app/dist/assets/{index-DX1bd46M.js → index-mQOnSYoW.js} +2 -2
- package/web-app/dist/assets/{layers-Cdf9Vwe0.js → layers-DhuyLqmc.js} +1 -1
- package/web-app/dist/assets/{loader-circle-ShwFKNSv.js → loader-circle-DclFyQ3B.js} +1 -1
- package/web-app/dist/assets/{lock-BfbeK72G.js → lock-C8v_bXNl.js} +1 -1
- package/web-app/dist/assets/{package-BQa5Hscq.js → package-B4AnjM5D.js} +1 -1
- package/web-app/dist/assets/{plus-BTFF6T_O.js → plus-DM95CmZI.js} +1 -1
- package/web-app/dist/assets/{refresh-cw-CN7NPez3.js → refresh-cw-CWaauzqX.js} +1 -1
- package/web-app/dist/assets/{rotate-ccw-D0c1s7z6.js → rotate-ccw-DxcvylpJ.js} +1 -1
- package/web-app/dist/assets/{scroll-text-7r82F3ag.js → scroll-text-Dx-V_BpP.js} +1 -1
- package/web-app/dist/assets/{server-g7Dgm8VB.js → server-Cj2EfoGN.js} +1 -1
- package/web-app/dist/assets/{shield-alert-DA4JgSeJ.js → shield-alert-OlmWv7sU.js} +1 -1
- package/web-app/dist/assets/{thumbs-up-B9nl24v9.js → thumbs-up-CIpJhyTd.js} +1 -1
- package/web-app/dist/assets/{trash-2-D1_LooXF.js → trash-2-BIkoZkY6.js} +1 -1
- package/web-app/dist/assets/{trending-down-a8VELF9U.js → trending-down-CI-OcCGt.js} +1 -1
- package/web-app/dist/assets/{trending-up-BXEafWW0.js → trending-up-B0dpgKi-.js} +1 -1
- package/web-app/dist/assets/{upload-FBwFJdt-.js → upload-NhOBAjKA.js} +1 -1
- package/web-app/dist/assets/{usePolling-C2vYaczh.js → usePolling-_QRF6f7x.js} +1 -1
- package/web-app/dist/assets/{user-DTXNLcfG.js → user-kRNvOpun.js} +1 -1
- package/web-app/dist/index.html +1 -1
- package/web-app/dist/assets/GitHubIssuesPanel-BQTpIC7Z.js +0 -7
package/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: loki-mode
|
|
|
3
3
|
description: Autonomous spec-driven build system with a built-in trust layer. It does not call work done until it is verified (RARV-C closure loop, 8 quality gates, completion council, verified-completion evidence gate). Triggers on "Loki Mode". Takes a spec (PRD, GitHub issue, OpenAPI doc, etc.) to deployed product with minimal human intervention. Provider-agnostic. Requires --dangerously-skip-permissions flag.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Loki Mode v9.
|
|
6
|
+
# Loki Mode v9.74.0
|
|
7
7
|
|
|
8
8
|
**You are an autonomous agent. You make decisions. You do not ask questions. You do not stop.**
|
|
9
9
|
|
|
@@ -470,4 +470,4 @@ See `CHANGELOG.md` entries [7.5.7], [7.5.8], [7.5.13] for the per-fix list and r
|
|
|
470
470
|
|
|
471
471
|
---
|
|
472
472
|
|
|
473
|
-
**v9.
|
|
473
|
+
**v9.74.0 | [Autonomi](https://www.autonomi.dev/) flagship product | ~410 lines core**
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
9.
|
|
1
|
+
9.74.0
|
|
@@ -3742,11 +3742,19 @@ except (json.JSONDecodeError, IOError, KeyError, ValueError):
|
|
|
3742
3742
|
runner = d.get('runner', 'none')
|
|
3743
3743
|
passed = d.get('pass')
|
|
3744
3744
|
status = d.get('status', '')
|
|
3745
|
+
# S-157 (BACKLOG 89): same failed-count rule as council_evidence_gate. A
|
|
3746
|
+
# numeric failed_count above zero is a failure whatever pass says; legacy
|
|
3747
|
+
# numeric failed is the fallback; null, missing or a bool is unmeasured.
|
|
3748
|
+
def _count(v):
|
|
3749
|
+
return v if isinstance(v, (int, float)) and not isinstance(v, bool) else None
|
|
3750
|
+
failed_n = _count(d.get('failed_count'))
|
|
3751
|
+
if failed_n is None:
|
|
3752
|
+
failed_n = _count(d.get('failed'))
|
|
3745
3753
|
if status == 'no_tests_run':
|
|
3746
3754
|
print('inconclusive:%s' % runner)
|
|
3747
3755
|
elif runner == 'none':
|
|
3748
3756
|
print('pass:none')
|
|
3749
|
-
elif passed is False:
|
|
3757
|
+
elif passed is False or (failed_n or 0) > 0:
|
|
3750
3758
|
print('fail:%s' % runner)
|
|
3751
3759
|
elif passed is not True:
|
|
3752
3760
|
print('inconclusive:%s' % runner)
|
|
@@ -4602,9 +4610,18 @@ runner = d.get('runner', 'none')
|
|
|
4602
4610
|
passed = d.get('pass')
|
|
4603
4611
|
# Affirmative green requires a REAL suite (runner != none) that recorded a
|
|
4604
4612
|
# boolean True pass. A missing/null/non-boolean pass key or a zero-test run
|
|
4605
|
-
# (status no_tests_run) is inconclusive, which is not green.
|
|
4613
|
+
# (status no_tests_run) is inconclusive, which is not green. S-157 (BACKLOG
|
|
4614
|
+
# 98): a recorded failure count above zero is never green, by the same rule
|
|
4615
|
+
# as council_evidence_gate (numeric failed_count wins, legacy numeric failed
|
|
4616
|
+
# is the fallback, null/missing/bool is unmeasured).
|
|
4617
|
+
def _count(v):
|
|
4618
|
+
return v if isinstance(v, (int, float)) and not isinstance(v, bool) else None
|
|
4619
|
+
failed_n = _count(d.get('failed_count'))
|
|
4620
|
+
if failed_n is None:
|
|
4621
|
+
failed_n = _count(d.get('failed'))
|
|
4606
4622
|
print('yes' if (runner != 'none' and passed is True
|
|
4607
|
-
and d.get('status') != 'no_tests_run'
|
|
4623
|
+
and d.get('status') != 'no_tests_run'
|
|
4624
|
+
and (failed_n or 0) <= 0) else 'no')
|
|
4608
4625
|
" 2>/dev/null || echo "no")
|
|
4609
4626
|
[ "$tr_state" = "yes" ] || return 1
|
|
4610
4627
|
|
|
@@ -911,6 +911,7 @@ def _collect_tests(loki_dir):
|
|
|
911
911
|
"status": "not_run",
|
|
912
912
|
"duration_sec": None,
|
|
913
913
|
}
|
|
914
|
+
empty = dict(out)
|
|
914
915
|
if not isinstance(raw, dict):
|
|
915
916
|
return out
|
|
916
917
|
out["runner"] = str(raw.get("runner") or "")
|
|
@@ -944,6 +945,12 @@ def _collect_tests(loki_dir):
|
|
|
944
945
|
out["status"] = "inconclusive"
|
|
945
946
|
else:
|
|
946
947
|
out["status"] = "not_run"
|
|
948
|
+
# BACKLOG 98: a test-results.json left by an earlier iteration is not this
|
|
949
|
+
# run's evidence, so it cannot lift the headline (the gates' rule). An
|
|
950
|
+
# earlier red is never discarded: a stale failure still reads failed.
|
|
951
|
+
if out["status"] != "failed" and not _test_results_fresh(
|
|
952
|
+
os.path.join(loki_dir, "quality")):
|
|
953
|
+
return empty
|
|
947
954
|
return out
|
|
948
955
|
|
|
949
956
|
|
package/autonomy/loki
CHANGED
|
@@ -28444,16 +28444,23 @@ if budget_limit is not None:
|
|
|
28444
28444
|
|
|
28445
28445
|
# Prefer the recorded cumulative spend; fall back to the current run only when
|
|
28446
28446
|
# the state file carries no figure. Never silently substitute 0.0 for "unknown".
|
|
28447
|
-
|
|
28447
|
+
# A recorded ZERO is not a reading: run.sh check_budget_limit writes
|
|
28448
|
+
# "budget_used": 0 for a run it never measured. Same rule as the dashboard
|
|
28449
|
+
# (server.py budget readers): only a positive recorded figure counts, and a
|
|
28450
|
+
# measured zero comes from current_cost, which collect_efficiency leaves None
|
|
28451
|
+
# unless a record passes record_is_measured.
|
|
28452
|
+
if isinstance(budget_used_recorded, (int, float)) and budget_used_recorded > 0:
|
|
28448
28453
|
budget_used = budget_used_recorded
|
|
28449
28454
|
elif isinstance(current_cost, (int, float)):
|
|
28450
28455
|
budget_used = current_cost
|
|
28451
28456
|
else:
|
|
28452
|
-
budget_used =
|
|
28457
|
+
budget_used = None
|
|
28453
28458
|
status = "none"
|
|
28454
28459
|
percent_used = None
|
|
28455
28460
|
remaining = None
|
|
28456
|
-
if budget_limit is not None and budget_limit > 0:
|
|
28461
|
+
if budget_limit is not None and budget_limit > 0 and budget_used is None:
|
|
28462
|
+
status = "unknown"
|
|
28463
|
+
elif budget_limit is not None and budget_limit > 0:
|
|
28457
28464
|
percent_used = round(budget_used / budget_limit * 100, 2)
|
|
28458
28465
|
remaining = max(0.0, budget_limit - budget_used)
|
|
28459
28466
|
if budget_used >= budget_limit:
|
|
@@ -28487,7 +28494,7 @@ if show_json:
|
|
|
28487
28494
|
"by_model": {k: round(v, 6) for k, v in by_model.items()},
|
|
28488
28495
|
"budget": {
|
|
28489
28496
|
"limit": budget_limit,
|
|
28490
|
-
"used": round(budget_used, 6),
|
|
28497
|
+
"used": round(budget_used, 6) if budget_used is not None else None,
|
|
28491
28498
|
"remaining": round(remaining, 6) if remaining is not None else None,
|
|
28492
28499
|
"percent_used": percent_used,
|
|
28493
28500
|
"status": status,
|
|
@@ -28538,13 +28545,17 @@ if budget_limit is None:
|
|
|
28538
28545
|
print(DIM + " When set, Loki warns at 80% and hard-stops at 100%." + NC)
|
|
28539
28546
|
else:
|
|
28540
28547
|
col = GREEN
|
|
28541
|
-
if status
|
|
28548
|
+
if status in ("warn", "unknown"):
|
|
28542
28549
|
col = YELLOW
|
|
28543
28550
|
elif status == "exceeded":
|
|
28544
28551
|
col = RED
|
|
28545
28552
|
print(" Cap: " + _fmt_usd(budget_limit))
|
|
28546
|
-
|
|
28547
|
-
|
|
28553
|
+
if budget_used is None:
|
|
28554
|
+
print(" Used: not recorded (no measured iteration cost)")
|
|
28555
|
+
print(" Remaining: not recorded")
|
|
28556
|
+
else:
|
|
28557
|
+
print(" Used: " + _fmt_usd(budget_used) + " (" + col + str(percent_used) + "%" + NC + ")")
|
|
28558
|
+
print(" Remaining: " + _fmt_usd(remaining))
|
|
28548
28559
|
print(" Status: " + col + BOLD + status.upper() + NC)
|
|
28549
28560
|
if status == "warn":
|
|
28550
28561
|
print(YELLOW + " Warning: at or above 80% of cap. Run continues; hard-stop at 100%." + NC)
|
package/autonomy/run.sh
CHANGED
|
@@ -13875,7 +13875,20 @@ sys.stdout.write(t.strip())
|
|
|
13875
13875
|
echo "$LOKI_MONOREPO_TEST_CMD" | grep -qE '[;|`$]|&&|\|\||>>|<<'; then
|
|
13876
13876
|
log_error "LOKI_MONOREPO_TEST_CMD rejected (only [A-Za-z0-9_./= -] allowed): $LOKI_MONOREPO_TEST_CMD"
|
|
13877
13877
|
test_runner="monorepo-custom-rejected"
|
|
13878
|
-
|
|
13878
|
+
# BACKLOG 62: nothing ran, so record the no-runner shape
|
|
13879
|
+
# (see the runner=="none" return below) instead of falling
|
|
13880
|
+
# through with test_passed=true, which wrote pass:true and
|
|
13881
|
+
# touched unit-tests.pass. The runner label stays distinct:
|
|
13882
|
+
# the council reads a non-boolean pass on a named runner as
|
|
13883
|
+
# NO_PASS (inconclusive pass-through). The command itself is
|
|
13884
|
+
# not echoed into the JSON (it failed the whitelist).
|
|
13885
|
+
rm -f "$quality_dir/unit-tests.pass" 2>/dev/null || true
|
|
13886
|
+
cat > "$quality_dir/test-results.json" << TREOF
|
|
13887
|
+
{"timestamp":"$(date -u +%Y-%m-%dT%H:%M:%SZ)","runner":"monorepo-custom-rejected","pass":"inconclusive","summary":"LOKI_MONOREPO_TEST_CMD rejected by whitelist (not run)","command":null,"exit_code":null,"status":"not_run","passed_count":null,"failed_count":null,"verification_gap":"test_command_rejected"}
|
|
13888
|
+
TREOF
|
|
13889
|
+
printf '%s\n' "${ITERATION_COUNT:-0}" > "$quality_dir/.test-results.iter" 2>/dev/null || true
|
|
13890
|
+
_LOKI_TEST_SUITE_STATUS=not_run
|
|
13891
|
+
return 0
|
|
13879
13892
|
else
|
|
13880
13893
|
test_runner="monorepo-custom"
|
|
13881
13894
|
local output
|
package/dashboard/__init__.py
CHANGED
package/dashboard/server.py
CHANGED
|
@@ -7852,6 +7852,8 @@ def _compute_cost_snapshot() -> dict:
|
|
|
7852
7852
|
budget_remaining = None
|
|
7853
7853
|
# Did ANY record carry an observed value? Not "was a file present".
|
|
7854
7854
|
cost_recorded = False
|
|
7855
|
+
# Tokens were measured (tracker fallback) but no USD figure was recorded.
|
|
7856
|
+
cost_unknown = False
|
|
7855
7857
|
|
|
7856
7858
|
# Read efficiency files (one JSON file per iteration/task).
|
|
7857
7859
|
# Use the iteration-*.json pattern so this reader sees the same
|
|
@@ -7929,25 +7931,32 @@ def _compute_cost_snapshot() -> dict:
|
|
|
7929
7931
|
total_input = totals.get("total_input", 0)
|
|
7930
7932
|
total_output = totals.get("total_output", 0)
|
|
7931
7933
|
if total_input > 0 or total_output > 0:
|
|
7932
|
-
# Real observed tokens from the context tracker:
|
|
7933
|
-
# measurement
|
|
7934
|
-
#
|
|
7934
|
+
# Real observed tokens from the context tracker: the TOKENS
|
|
7935
|
+
# are a measurement. The USD figure is only a measurement
|
|
7936
|
+
# when the tracker recorded a number; a missing one is
|
|
7937
|
+
# unknown (null), while a recorded 0.0 stays 0.0.
|
|
7935
7938
|
cost_recorded = True
|
|
7936
|
-
|
|
7939
|
+
usd = totals.get("total_cost_usd")
|
|
7940
|
+
if isinstance(usd, (int, float)) and not isinstance(usd, bool):
|
|
7941
|
+
estimated_cost = usd
|
|
7942
|
+
else:
|
|
7943
|
+
cost_unknown = True
|
|
7944
|
+
# No provider recorded -> the model is unknown, not sonnet.
|
|
7945
|
+
model = str(ctx.get("provider") or "unknown").lower()
|
|
7937
7946
|
# Rebuild by_model and by_phase from per_iteration data
|
|
7938
7947
|
for it in ctx.get("per_iteration", []):
|
|
7939
7948
|
inp = it.get("input_tokens", 0)
|
|
7940
7949
|
out = it.get("output_tokens", 0)
|
|
7941
|
-
cost = it.get("cost_usd"
|
|
7942
|
-
|
|
7950
|
+
cost = it.get("cost_usd")
|
|
7951
|
+
cost_is_num = isinstance(cost, (int, float)) and not isinstance(cost, bool)
|
|
7943
7952
|
if model not in by_model:
|
|
7944
|
-
by_model[model] = {"input_tokens": 0, "output_tokens": 0, "cost_usd": 0.0
|
|
7953
|
+
by_model[model] = {"input_tokens": 0, "output_tokens": 0, "cost_usd": 0.0,
|
|
7954
|
+
"measured": False, "tokens_measured": True}
|
|
7945
7955
|
by_model[model]["input_tokens"] += inp
|
|
7946
7956
|
by_model[model]["output_tokens"] += out
|
|
7947
|
-
|
|
7948
|
-
|
|
7949
|
-
|
|
7950
|
-
by_model[model]["tokens_measured"] = True
|
|
7957
|
+
if cost_is_num:
|
|
7958
|
+
by_model[model]["cost_usd"] += cost
|
|
7959
|
+
by_model[model]["measured"] = True
|
|
7951
7960
|
except (json.JSONDecodeError, KeyError, TypeError, AttributeError):
|
|
7952
7961
|
pass
|
|
7953
7962
|
|
|
@@ -7964,7 +7973,7 @@ def _compute_cost_snapshot() -> dict:
|
|
|
7964
7973
|
# Spend against the cap only when something was measured: with
|
|
7965
7974
|
# nothing recorded, "used" is unknown, not $0.00, and "remaining"
|
|
7966
7975
|
# is unknown, not the whole cap.
|
|
7967
|
-
if budget_limit is not None and cost_recorded:
|
|
7976
|
+
if budget_limit is not None and cost_recorded and not cost_unknown:
|
|
7968
7977
|
budget_used = estimated_cost
|
|
7969
7978
|
budget_remaining = max(0.0, budget_limit - budget_used)
|
|
7970
7979
|
except (json.JSONDecodeError, KeyError):
|
|
@@ -7988,7 +7997,7 @@ def _compute_cost_snapshot() -> dict:
|
|
|
7988
7997
|
total_input + total_output + total_cache_read + total_cache_creation
|
|
7989
7998
|
) if cost_recorded else None,
|
|
7990
7999
|
"cache_hit_ratio": round(total_cache_read / _read_in, 4) if _read_in > 0 else None,
|
|
7991
|
-
"estimated_cost_usd": round(estimated_cost, 6) if cost_recorded else None,
|
|
8000
|
+
"estimated_cost_usd": round(estimated_cost, 6) if cost_recorded and not cost_unknown else None,
|
|
7992
8001
|
"cost_recorded": cost_recorded,
|
|
7993
8002
|
"by_phase": {k: {
|
|
7994
8003
|
"input_tokens": v["input_tokens"] if v.get("tokens_measured") else None,
|