lcode-cli 0.54.0__py3-none-any.whl → 0.55.0__py3-none-any.whl
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.
- lcode/__init__.py +1 -1
- lcode/docs/public-benchmarks.md +5 -2
- lcode/docs/quickstart.md +1 -1
- lcode/docs/traces.md +3 -1
- lcode/harbor.py +5 -3
- lcode/harbor_bench.py +73 -13
- lcode/traces.py +45 -3
- {lcode_cli-0.54.0.dist-info → lcode_cli-0.55.0.dist-info}/METADATA +1 -1
- {lcode_cli-0.54.0.dist-info → lcode_cli-0.55.0.dist-info}/RECORD +12 -12
- {lcode_cli-0.54.0.dist-info → lcode_cli-0.55.0.dist-info}/WHEEL +0 -0
- {lcode_cli-0.54.0.dist-info → lcode_cli-0.55.0.dist-info}/entry_points.txt +0 -0
- {lcode_cli-0.54.0.dist-info → lcode_cli-0.55.0.dist-info}/licenses/LICENSE +0 -0
lcode/__init__.py
CHANGED
lcode/docs/public-benchmarks.md
CHANGED
|
@@ -82,7 +82,9 @@ With three attempts, the last line also gives each run's pass rate and the sprea
|
|
|
82
82
|
- **runs and spread**: the pass rate of each task's first attempt, its second and its third. Single
|
|
83
83
|
runs of the same setup differ by several points, so differences smaller than the spread are noise.
|
|
84
84
|
- **Time and tokens** per attempt, from lcode's own record of the request (its
|
|
85
|
-
[trace](traces.md)).
|
|
85
|
+
[trace](traces.md)). An attempt stopped at the task's time limit counts the tokens recorded
|
|
86
|
+
until then, and a reply lcode stopped counts with an estimate. `–` means no attempt of the task
|
|
87
|
+
has a record.
|
|
86
88
|
|
|
87
89
|
Attempts whose container didn't start (a failed image download, say) count neither as passed nor
|
|
88
90
|
as failed. The report shows how many there were.
|
|
@@ -90,7 +92,8 @@ as failed. The report shows how many there were.
|
|
|
90
92
|
Everything is saved in `~/.local/state/lcode/bench/<slice>-<time>/`:
|
|
91
93
|
|
|
92
94
|
- `lcode-bench.json`: the results, with the lcode and Harbor versions, the model, the context, the
|
|
93
|
-
machine, the
|
|
95
|
+
machine, when the run started and how long it took, and the command that reproduces them.
|
|
96
|
+
`--json FILE` saves a copy.
|
|
94
97
|
- Harbor's own results: each attempt's log, the task's test output, and lcode's trace and session.
|
|
95
98
|
`uvx --from harbor harbor view <folder>` browses them.
|
|
96
99
|
|
lcode/docs/quickstart.md
CHANGED
lcode/docs/traces.md
CHANGED
|
@@ -20,7 +20,9 @@ lcode trace path # the folder the traces are in
|
|
|
20
20
|
failed check, a note about a malformed tool call, a note you typed while it worked.
|
|
21
21
|
- **Each model call:** the answer (text, reasoning and tool calls), the time to the first token,
|
|
22
22
|
the total time, and the tokens in and out. With Ollama, also how long loading the model and
|
|
23
|
-
reading the prompt took.
|
|
23
|
+
reading the prompt took. The server counts a reply's tokens only when the reply ends, so for one
|
|
24
|
+
lcode stopped (it went round in circles, or you interrupted it) the trace has an estimate:
|
|
25
|
+
`estimated_in` and `estimated_out`, shown as "about".
|
|
24
26
|
- **Each tool call:** its arguments, the result the model got, and how long it took. A result
|
|
25
27
|
longer than 200,000 characters keeps its start and end. When lcode cut a long output for the
|
|
26
28
|
model, the result says where the full output was saved.
|
lcode/harbor.py
CHANGED
|
@@ -67,8 +67,10 @@ class Lcode(BaseInstalledAgent):
|
|
|
67
67
|
end = harbor_bench.trace_usage(Path(self.logs_dir) / "lcode")
|
|
68
68
|
if end is None:
|
|
69
69
|
return
|
|
70
|
-
context.n_input_tokens =
|
|
71
|
-
context.n_output_tokens = int(end.get("tokens_out") or 0)
|
|
70
|
+
context.n_input_tokens, context.n_output_tokens = harbor_bench.usage_tokens(end)
|
|
72
71
|
context.cost_usd = 0.0
|
|
73
|
-
keys = (
|
|
72
|
+
keys = (
|
|
73
|
+
*("status", "seconds", "steps", "model_calls", "tool_calls", "model_seconds", "tool_seconds"),
|
|
74
|
+
*("tokens_in", "tokens_out", "estimated_in", "estimated_out"), # the estimates: replies lcode stopped
|
|
75
|
+
)
|
|
74
76
|
context.metadata = {**(context.metadata or {}), "lcode": {key: end.get(key) for key in keys}}
|
lcode/harbor_bench.py
CHANGED
|
@@ -19,6 +19,7 @@ import json
|
|
|
19
19
|
import shlex
|
|
20
20
|
import statistics
|
|
21
21
|
import subprocess
|
|
22
|
+
import time
|
|
22
23
|
from dataclasses import asdict, dataclass, field
|
|
23
24
|
from pathlib import Path
|
|
24
25
|
|
|
@@ -108,23 +109,63 @@ def run_env(model: str | None) -> dict[str, str]:
|
|
|
108
109
|
|
|
109
110
|
|
|
110
111
|
def trace_usage(home: Path) -> dict | None:
|
|
111
|
-
"""How the newest request traced in `home` (lcode's LCODE_HOME in the task) went: its end event.
|
|
112
|
+
"""How the newest request traced in `home` (lcode's LCODE_HOME in the task) went: its end event. When lcode
|
|
113
|
+
was stopped before the request ended (at the task's time limit), the totals of what its trace recorded."""
|
|
112
114
|
traces = sorted((home / "traces").glob("*.jsonl"), key=lambda path: path.stat().st_mtime)
|
|
113
115
|
for path in reversed(traces):
|
|
114
116
|
try:
|
|
115
117
|
lines = path.read_text(errors="replace").splitlines()
|
|
116
118
|
except OSError:
|
|
117
119
|
continue
|
|
118
|
-
|
|
120
|
+
events = []
|
|
121
|
+
for line in lines:
|
|
119
122
|
try:
|
|
120
123
|
event = json.loads(line)
|
|
121
124
|
except ValueError:
|
|
122
125
|
continue
|
|
123
|
-
if isinstance(event, dict)
|
|
124
|
-
|
|
126
|
+
if isinstance(event, dict):
|
|
127
|
+
events.append(event)
|
|
128
|
+
end = next((event for event in reversed(events) if event.get("type") == "end"), None)
|
|
129
|
+
if end is not None:
|
|
130
|
+
return end
|
|
131
|
+
if any(event.get("type") == "model" for event in events):
|
|
132
|
+
return unfinished_usage(events)
|
|
125
133
|
return None
|
|
126
134
|
|
|
127
135
|
|
|
136
|
+
def unfinished_usage(events: list[dict]) -> dict:
|
|
137
|
+
"""An end event's totals for a request that never ended, from the events its trace has."""
|
|
138
|
+
usage: dict = {"type": "end", "status": "unfinished", "steps": 0, "model_calls": 0, "tool_calls": 0}
|
|
139
|
+
usage.update(dict.fromkeys(("tokens_in", "tokens_out", "estimated_in", "estimated_out"), 0))
|
|
140
|
+
usage.update(seconds=0.0, model_seconds=0.0, tool_seconds=0.0)
|
|
141
|
+
for event in events:
|
|
142
|
+
usage["seconds"] = max(usage["seconds"], number(event.get("at")))
|
|
143
|
+
if event.get("type") == "model":
|
|
144
|
+
usage["model_calls"] += 1
|
|
145
|
+
for key in ("tokens_in", "tokens_out", "estimated_in", "estimated_out"):
|
|
146
|
+
usage[key] += int(number(event.get(key)))
|
|
147
|
+
usage["model_seconds"] += number(event.get("seconds"))
|
|
148
|
+
if event.get("lane", "main") == "main" and event.get("kind") == "step":
|
|
149
|
+
usage["steps"] = max(usage["steps"], int(number(event.get("step"))))
|
|
150
|
+
elif event.get("type") == "tool":
|
|
151
|
+
usage["tool_calls"] += 1
|
|
152
|
+
usage["tool_seconds"] += number(event.get("seconds"))
|
|
153
|
+
return usage
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
def number(value: object) -> float:
|
|
157
|
+
return float(value) if isinstance(value, (int, float)) and not isinstance(value, bool) else 0.0
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
def usage_tokens(usage: dict) -> tuple[int, int]:
|
|
161
|
+
"""Tokens in and out of a traced request, with the estimates for replies lcode stopped before the server
|
|
162
|
+
counted them."""
|
|
163
|
+
return (
|
|
164
|
+
int(number(usage.get("tokens_in")) + number(usage.get("estimated_in"))),
|
|
165
|
+
int(number(usage.get("tokens_out")) + number(usage.get("estimated_out"))),
|
|
166
|
+
)
|
|
167
|
+
|
|
168
|
+
|
|
128
169
|
# ----------------------------------------------------------------------------- running Harbor, and the report
|
|
129
170
|
|
|
130
171
|
|
|
@@ -165,8 +206,8 @@ class Trial:
|
|
|
165
206
|
reward: float | None # None: the task's tests didn't run (its container didn't start, say)
|
|
166
207
|
started: str = ""
|
|
167
208
|
seconds: float | None = None # lcode's time on the task
|
|
168
|
-
tokens_in: int =
|
|
169
|
-
tokens_out: int =
|
|
209
|
+
tokens_in: int | None = None # None: not known (no trace)
|
|
210
|
+
tokens_out: int | None = None
|
|
170
211
|
error: str = ""
|
|
171
212
|
|
|
172
213
|
|
|
@@ -194,6 +235,11 @@ def read_trials(job: Path, dataset: str) -> list[Trial]:
|
|
|
194
235
|
if error and problem.get("exception_message"):
|
|
195
236
|
error += ": " + str(problem["exception_message"]).strip().splitlines()[-1][:300]
|
|
196
237
|
name = str(result.get("task_name") or path.parent.name.rsplit("__", 1)[0])
|
|
238
|
+
tokens_in, tokens_out = agent.get("n_input_tokens"), agent.get("n_output_tokens")
|
|
239
|
+
if tokens_in is None and tokens_out is None: # lcode 0.54.0 gave none for an attempt stopped at its limit
|
|
240
|
+
usage = trace_usage(path.parent / "agent" / "lcode")
|
|
241
|
+
if usage is not None:
|
|
242
|
+
tokens_in, tokens_out = usage_tokens(usage)
|
|
197
243
|
trials.append(
|
|
198
244
|
Trial(
|
|
199
245
|
dataset=dataset,
|
|
@@ -201,8 +247,8 @@ def read_trials(job: Path, dataset: str) -> list[Trial]:
|
|
|
201
247
|
reward=float(reward) if isinstance(reward, (int, float)) else None,
|
|
202
248
|
started=str(result.get("started_at") or ""),
|
|
203
249
|
seconds=seconds_between(result.get("agent_execution")),
|
|
204
|
-
tokens_in=int(
|
|
205
|
-
tokens_out=int(
|
|
250
|
+
tokens_in=None if tokens_in is None else int(number(tokens_in)),
|
|
251
|
+
tokens_out=None if tokens_out is None else int(number(tokens_out)),
|
|
206
252
|
error=error,
|
|
207
253
|
)
|
|
208
254
|
)
|
|
@@ -216,8 +262,8 @@ class TaskResult:
|
|
|
216
262
|
passed: list[bool] = field(default_factory=list) # each attempt whose tests ran, in the order they ran
|
|
217
263
|
not_run: int = 0
|
|
218
264
|
seconds: float | None = None # per attempt, on average
|
|
219
|
-
tokens_in: int =
|
|
220
|
-
tokens_out: int =
|
|
265
|
+
tokens_in: int | None = None # per attempt, on average, of those whose tokens are known
|
|
266
|
+
tokens_out: int | None = None
|
|
221
267
|
|
|
222
268
|
|
|
223
269
|
@dataclass
|
|
@@ -242,6 +288,8 @@ def summarize(trials: list[Trial], attempts: int = ATTEMPTS) -> Summary:
|
|
|
242
288
|
for (dataset, task), group in groups.items():
|
|
243
289
|
ran = [t for t in group if t.reward is not None]
|
|
244
290
|
timed = [t.seconds for t in ran if t.seconds is not None]
|
|
291
|
+
counted_in = [t.tokens_in for t in ran if t.tokens_in is not None]
|
|
292
|
+
counted_out = [t.tokens_out for t in ran if t.tokens_out is not None]
|
|
245
293
|
tasks.append(
|
|
246
294
|
TaskResult(
|
|
247
295
|
dataset,
|
|
@@ -249,8 +297,8 @@ def summarize(trials: list[Trial], attempts: int = ATTEMPTS) -> Summary:
|
|
|
249
297
|
[(t.reward or 0) >= 1 for t in ran],
|
|
250
298
|
len(group) - len(ran),
|
|
251
299
|
statistics.fmean(timed) if timed else None,
|
|
252
|
-
round(statistics.fmean(
|
|
253
|
-
round(statistics.fmean(
|
|
300
|
+
round(statistics.fmean(counted_in)) if counted_in else None,
|
|
301
|
+
round(statistics.fmean(counted_out)) if counted_out else None,
|
|
254
302
|
)
|
|
255
303
|
)
|
|
256
304
|
scored = [t for t in tasks if t.passed]
|
|
@@ -278,7 +326,9 @@ def print_summary(console, summary: Summary) -> None:
|
|
|
278
326
|
for t in summary.tasks:
|
|
279
327
|
passed = f"{sum(t.passed)}/{len(t.passed)}" + (f" ({t.not_run} didn't run)" if t.not_run else "")
|
|
280
328
|
took = "–" if t.seconds is None else f"{t.seconds / 60:.1f} min"
|
|
281
|
-
|
|
329
|
+
tokens_in = "–" if t.tokens_in is None else f"{t.tokens_in:,}"
|
|
330
|
+
tokens_out = "–" if t.tokens_out is None else f"{t.tokens_out:,}"
|
|
331
|
+
table.add_row(t.task, t.dataset, passed, took, tokens_in, tokens_out)
|
|
282
332
|
console.print(table)
|
|
283
333
|
k = summary.attempts
|
|
284
334
|
line = f"pass@1 {percent(summary.pass_at_1)} · pass^{k} {percent(summary.pass_all)}"
|
|
@@ -289,6 +339,11 @@ def print_summary(console, summary: Summary) -> None:
|
|
|
289
339
|
console.print(f"[yellow]{summary.not_run} attempt(s) didn't run (their container didn't start, say).[/]")
|
|
290
340
|
|
|
291
341
|
|
|
342
|
+
def took(seconds: float) -> str:
|
|
343
|
+
hours, minutes = divmod(round(seconds / 60), 60)
|
|
344
|
+
return f"{hours} h {minutes} min" if hours else f"{minutes} min"
|
|
345
|
+
|
|
346
|
+
|
|
292
347
|
def print_slice(console, name: str) -> None:
|
|
293
348
|
for dataset, tasks in SLICES[name].items():
|
|
294
349
|
console.print(f"[bold]{DATASETS[dataset]}[/] ({len(tasks)}): {', '.join(tasks)}")
|
|
@@ -346,6 +401,7 @@ def command(args, console) -> int:
|
|
|
346
401
|
overlay = jobs / "bridge.yaml"
|
|
347
402
|
overlay.write_text(BRIDGE_OVERLAY)
|
|
348
403
|
trials: list[Trial] = []
|
|
404
|
+
started, began = dt.datetime.now().astimezone(), time.monotonic()
|
|
349
405
|
for dataset, tasks in picked.items():
|
|
350
406
|
if not tasks:
|
|
351
407
|
continue
|
|
@@ -358,7 +414,9 @@ def command(args, console) -> int:
|
|
|
358
414
|
subprocess.call(argv)
|
|
359
415
|
trials += read_trials(jobs / dataset, dataset)
|
|
360
416
|
summary = summarize(trials, attempts)
|
|
417
|
+
seconds = time.monotonic() - began
|
|
361
418
|
print_summary(console, summary)
|
|
419
|
+
console.print(f"Took {took(seconds)}.")
|
|
362
420
|
if any("fully subnetted" in trial.error for trial in trials):
|
|
363
421
|
console.print(
|
|
364
422
|
"Docker couldn't make a network for the tasks: all its address ranges overlap your routes (a VPN that "
|
|
@@ -375,6 +433,8 @@ def command(args, console) -> int:
|
|
|
375
433
|
"docker_bridge": bool(args.docker_bridge),
|
|
376
434
|
"machine": detect().describe(),
|
|
377
435
|
"date": dt.datetime.now().astimezone().isoformat(timespec="seconds"),
|
|
436
|
+
"started": started.isoformat(timespec="seconds"),
|
|
437
|
+
"seconds": round(seconds), # the whole run, every task's attempts
|
|
378
438
|
"command": "lcode " + shlex.join(sys.argv[1:]),
|
|
379
439
|
"tasks": picked,
|
|
380
440
|
"summary": {
|
lcode/traces.py
CHANGED
|
@@ -6,11 +6,13 @@ in ~/.local/state/lcode/traces/<session id>-<request number>.jsonl. The lines, b
|
|
|
6
6
|
- start: the request as typed, the model and its settings, lcode's version, the folder;
|
|
7
7
|
- env: the git commit and the model's own sampling settings, looked up in the background;
|
|
8
8
|
- message: what lcode or the user added to the conversation for the model (the request, lcode's notes);
|
|
9
|
-
- model: one model call: its answer (text, thinking, tool calls), time to the first token, time and tokens
|
|
9
|
+
- model: one model call: its answer (text, thinking, tool calls), time to the first token, time and tokens. The
|
|
10
|
+
server counts a reply's tokens only when it ends, so a reply lcode stopped has 0 there and an estimate in
|
|
11
|
+
estimated_in and estimated_out (a token is about three characters);
|
|
10
12
|
- tool: one tool call: its arguments, the result the model got, how long it took;
|
|
11
13
|
- check: the project's checks, when lcode ran them; escalate: a stronger model's advice;
|
|
12
14
|
- compacted: the conversation was summarized; full: the trace reached its size limit;
|
|
13
|
-
- end: how the request ended, and its totals.
|
|
15
|
+
- end: how the request ended, and its totals (estimated_in and estimated_out: the stopped replies' estimates).
|
|
14
16
|
|
|
15
17
|
Events carry a "lane": the main agent's is "main", a subagent's "agent 1", "agent 2"…
|
|
16
18
|
|
|
@@ -88,6 +90,25 @@ def cut(text: str, limit: int = MAX_TEXT) -> str:
|
|
|
88
90
|
return f"{text[:head]}\n[… {len(text) - limit} characters left out of the trace …]\n{tail}"
|
|
89
91
|
|
|
90
92
|
|
|
93
|
+
def estimate(payload: dict, reply: dict) -> tuple[int, int]:
|
|
94
|
+
"""About how many tokens a model call took, in and out, for a reply the server never counted: a token is about
|
|
95
|
+
three characters, as lcode.sessions.estimate_tokens counts. For qwen3.6, Ollama counted 2.7 to 3.4 characters
|
|
96
|
+
a token in replies and 3.2 in tool results (the JSON), and about 3.9 in lcode's system prompt and tools. The
|
|
97
|
+
prompt is its messages' and tools' JSON, images left out."""
|
|
98
|
+
try:
|
|
99
|
+
messages = [
|
|
100
|
+
{k: v for k, v in m.items() if k != "images"} if isinstance(m, dict) else m
|
|
101
|
+
for m in payload.get("messages") or []
|
|
102
|
+
]
|
|
103
|
+
prompt = len(json.dumps(messages, default=str)) + len(json.dumps(payload.get("tools") or [], default=str))
|
|
104
|
+
calls = reply.get("tool_calls") or []
|
|
105
|
+
answer = len(str(reply.get("content") or "")) + len(str(reply.get("thinking") or ""))
|
|
106
|
+
answer += len(json.dumps(calls, default=str)) if calls else 0
|
|
107
|
+
return prompt // 3, answer // 3
|
|
108
|
+
except (TypeError, ValueError, RecursionError): # an estimate never costs the model event
|
|
109
|
+
return 0, 0
|
|
110
|
+
|
|
111
|
+
|
|
91
112
|
def nanos(value: Any) -> float | None:
|
|
92
113
|
return round(value / 1e9, 3) if isinstance(value, (int, float)) and value else None
|
|
93
114
|
|
|
@@ -115,6 +136,8 @@ class Recorder:
|
|
|
115
136
|
"tool_calls": 0,
|
|
116
137
|
"tokens_in": 0,
|
|
117
138
|
"tokens_out": 0,
|
|
139
|
+
"estimated_in": 0, # replies lcode stopped, which the server never counted
|
|
140
|
+
"estimated_out": 0,
|
|
118
141
|
"model_seconds": 0.0,
|
|
119
142
|
"tool_seconds": 0.0,
|
|
120
143
|
}
|
|
@@ -261,6 +284,9 @@ class Lane:
|
|
|
261
284
|
event["error"] = error[:4000]
|
|
262
285
|
elif not finished:
|
|
263
286
|
event["stopped"] = True # lcode closed the stream: it went round in circles, or was interrupted
|
|
287
|
+
if not final and first is not None: # the server counts a reply only at its end: about what this took
|
|
288
|
+
event["estimated_in"], event["estimated_out"] = estimate(payload, reply)
|
|
289
|
+
self.recorder.add(estimated_in=event["estimated_in"], estimated_out=event["estimated_out"])
|
|
264
290
|
self.recorder.add(model_calls=1, tokens_in=tokens_in, tokens_out=tokens_out, model_seconds=seconds)
|
|
265
291
|
self.recorder.write(event)
|
|
266
292
|
|
|
@@ -376,6 +402,16 @@ class Recording:
|
|
|
376
402
|
self.lane.model("chat", payload, began, None, answer, reply or {}, error)
|
|
377
403
|
|
|
378
404
|
|
|
405
|
+
def stopped_estimate(end: dict) -> str:
|
|
406
|
+
"""The end line's note on replies lcode stopped, which the server never counted."""
|
|
407
|
+
if not (end.get("estimated_in") or end.get("estimated_out")):
|
|
408
|
+
return ""
|
|
409
|
+
return (
|
|
410
|
+
f" (and about {format_tokens(end.get('estimated_in') or 0)} in, "
|
|
411
|
+
f"{format_tokens(end.get('estimated_out') or 0)} out in stopped replies)"
|
|
412
|
+
)
|
|
413
|
+
|
|
414
|
+
|
|
379
415
|
def next_number(folder: Path, session_id: str) -> int:
|
|
380
416
|
numbers = [0]
|
|
381
417
|
for f in folder.glob(f"{session_id}-*.jsonl"):
|
|
@@ -794,6 +830,11 @@ def show(info: Info, console: Console, verbose: bool = False) -> None:
|
|
|
794
830
|
else:
|
|
795
831
|
head = f"model ({e.get('purpose') or e.get('inside') or e.get('kind')})"
|
|
796
832
|
numbers = f"{format_tokens(e.get('tokens_in') or 0)} in · {format_tokens(e.get('tokens_out') or 0)} out"
|
|
833
|
+
if "estimated_out" in e: # stopped before the server counted it
|
|
834
|
+
numbers = (
|
|
835
|
+
f"about {format_tokens(e.get('estimated_in') or 0)} in · "
|
|
836
|
+
f"{format_tokens(e.get('estimated_out') or 0)} out"
|
|
837
|
+
)
|
|
797
838
|
if e.get("first_token") is not None:
|
|
798
839
|
numbers += f" · first token {duration(e['first_token'])}"
|
|
799
840
|
if (e.get("load_seconds") or 0) >= 1: # what the wait was: loading the model, reading the prompt
|
|
@@ -840,7 +881,8 @@ def show(info: Info, console: Console, verbose: bool = False) -> None:
|
|
|
840
881
|
console.print()
|
|
841
882
|
line = (
|
|
842
883
|
f"{escape(info.status)} · {end.get('model_calls', 0)} model call(s) · "
|
|
843
|
-
f"{format_tokens(end.get('tokens_in') or 0)} tokens in, {format_tokens(end.get('tokens_out') or 0)} out
|
|
884
|
+
f"{format_tokens(end.get('tokens_in') or 0)} tokens in, {format_tokens(end.get('tokens_out') or 0)} out"
|
|
885
|
+
f"{stopped_estimate(end)} · "
|
|
844
886
|
f"model {duration(end.get('model_seconds'))} · tools {duration(end.get('tool_seconds'))} "
|
|
845
887
|
f"({end.get('tool_calls', 0)} calls) · recording {end.get('trace_seconds', 0) * 1000:.0f} ms"
|
|
846
888
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: lcode-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.55.0
|
|
4
4
|
Summary: A local-first terminal coding agent powered by open-weight models on your own GPU or Mac, via Ollama.
|
|
5
5
|
Project-URL: Homepage, https://nasser1941.github.io/lcode/
|
|
6
6
|
Project-URL: Documentation, https://nasser1941.github.io/lcode/
|
|
@@ -14,15 +14,15 @@ lcode/docs/mcp.md,sha256=Ol3ScuP4i2KsoN9xaSEbnm86Tvoc1qnUV7zkRprWwHo,15168
|
|
|
14
14
|
lcode/docs/memory.md,sha256=XbsNnTwRdnUEYW7_2U1GHbtK0uOjTxR-s2EujgJbR0Y,6889
|
|
15
15
|
lcode/docs/models.md,sha256=d9wLOVBlMtnd8_2jQG9f0-qcEbGT6qtnwOdQSco-RD8,17121
|
|
16
16
|
lcode/docs/modes.md,sha256=vNQv5K-lk6egNQNlnOHk8YeIdoAsmyaWvSu-RbQeZnQ,34039
|
|
17
|
-
lcode/docs/public-benchmarks.md,sha256=
|
|
18
|
-
lcode/docs/quickstart.md,sha256=
|
|
17
|
+
lcode/docs/public-benchmarks.md,sha256=btUn1zwc46lcmWTqbpothnJsqjHfxKt2vj_fbhhSMP4,6310
|
|
18
|
+
lcode/docs/quickstart.md,sha256=nS8DJagdOqKXzJK0AG87EoSqqfRnx4-hCG6WVjlC5aU,3403
|
|
19
19
|
lcode/docs/sandbox.md,sha256=-_jc2I0LXKQIYCz_JOuHGaP2ehVuEqEepKqMATlFpZY,4064
|
|
20
20
|
lcode/docs/search.md,sha256=UKYrYG_xo67-bOLU1hLgiiTh3Dy6s9LG4nuc2JTQHa8,4249
|
|
21
21
|
lcode/docs/servers.md,sha256=0ddumHseQXx0CP0nqzgwV-493s81kdEBa6qtUYe9t6k,5718
|
|
22
|
-
lcode/docs/traces.md,sha256=
|
|
22
|
+
lcode/docs/traces.md,sha256=yY3ZT9twJeGqE-Yyo9Raynz3YqKS4uNoShBq8SPsYGI,10036
|
|
23
23
|
lcode/docs/troubleshooting.md,sha256=YcwmrpR6jcxnhDqV1-E7VQKeczfEC3xuokVkejkAoLo,6292
|
|
24
24
|
lcode/docs/usage.md,sha256=_dNyJhE6opWzozxAHW-7yDUHh1CEcYYAuUot0FxGYPI,48037
|
|
25
|
-
lcode/__init__.py,sha256=
|
|
25
|
+
lcode/__init__.py,sha256=nZIC11RlJK9Z_6eBc2C-2VT2l1f8DjO1t-cRkKLnx8U,473
|
|
26
26
|
lcode/__main__.py,sha256=s5N5pryX2FAu93GGZ3FxUrIXHWGzxz66lKUoaV_h8Ws,35
|
|
27
27
|
lcode/acp.py,sha256=eFNYdJNJd9tdCbF2UIj1N3UU4RnF2-pcMLA0KBYZbwE,29082
|
|
28
28
|
lcode/action.py,sha256=wuT5F9EJCdEligPeytzmEi8FpahWBhXer528tpuTj_k,16711
|
|
@@ -49,8 +49,8 @@ lcode/extensions.py,sha256=W0HFDl0BvROzr7i_qtabHdIbacBgP5o5qIJLzoM2oNE,16806
|
|
|
49
49
|
lcode/film.py,sha256=nfffI6oMWeherp8AOU_yM7-Cok0JKoQMVeuVtVHKXo0,14455
|
|
50
50
|
lcode/frontmatter.py,sha256=Bx0n4vLPhp7ZCWx-g7xqzqNy5VoKBxyeeikh5UFB_gA,2441
|
|
51
51
|
lcode/gitflow.py,sha256=6j_nnCBZXkX1qhTI7K4CyZ5D0NAZLpH96weFEo64AkQ,27913
|
|
52
|
-
lcode/harbor.py,sha256=
|
|
53
|
-
lcode/harbor_bench.py,sha256=
|
|
52
|
+
lcode/harbor.py,sha256=DwD40Ga5z0GP6Tu3ixXttJb7j4LIhC4vAN5VfGMcLQ0,3314
|
|
53
|
+
lcode/harbor_bench.py,sha256=DV2B5_Bntr20CQ65zNunm_usASYdLEKbWtlgNaLFfek,20853
|
|
54
54
|
lcode/hardware.py,sha256=9j_gxSUYLAVtnSLIEL8FVU2q-jEEjHtMs2SVAax7yU8,5154
|
|
55
55
|
lcode/hooks.py,sha256=K0itOiAuH4rxndJ9gne_uCrqby6oWAzFPRrfB3tCq-E,9324
|
|
56
56
|
lcode/imageopts.py,sha256=qELIIdKUJT3GLv9mhnjr_TeYNhOXhTMW3tgHzpuqW-Q,9715
|
|
@@ -86,7 +86,7 @@ lcode/sessions.py,sha256=EvopvWzoLeB_PTSKmWfZ9Rk_graFhYgoRXBgfyHgqg4,8913
|
|
|
86
86
|
lcode/steer.py,sha256=0vaqLxgRKgC0yGp8xoQfV1f9VEOzH3U4rCIb74eFnZ8,12127
|
|
87
87
|
lcode/subagents.py,sha256=_zFLuDAOHlzpLvl-V7W1wBq66MKifLtKByge9b7fLJk,29443
|
|
88
88
|
lcode/tools.py,sha256=XTdtcQe8Bg4GoanVSr8cbgkiFwQ-uqr_HyTT5MHVn9Q,69595
|
|
89
|
-
lcode/traces.py,sha256=
|
|
89
|
+
lcode/traces.py,sha256=v0B1RZCaarjg8TmiUnsKj-yzBPCi0v-k4EEPsLxHhik,47034
|
|
90
90
|
lcode/unreachable.py,sha256=TXrv41ljwX_amxdcf4CY6qGF2YkWetORvPUSvwceJXI,8685
|
|
91
91
|
lcode/update.py,sha256=HywxgKBiQLcFsAoK7lZeQ83kDD1Mgo50lV33tf2cbt0,29202
|
|
92
92
|
lcode/vision.py,sha256=w33QPmdGwP33wM4mvmAH4amFDZ1xzeXhEsSLJ-STSHY,4243
|
|
@@ -119,8 +119,8 @@ lcode/workflows/wan21-vace.json,sha256=vJsiRvLCXCjKIibOO0SGM3fT6bedAGxF8N2sN2vcP
|
|
|
119
119
|
lcode/workflows/wan22-fun-inp-5b.json,sha256=4HbKEezik8MHvxTMP6PjQUPQPfCeSu10U9FrC-DHKYw,3327
|
|
120
120
|
lcode/workflows/wan22-ti2v-5b.json,sha256=RcTehoC2pNizzlb7Ed3keJ56DiE7V5lhXmsvR2Y0smQ,3371
|
|
121
121
|
lcode/workflows/z-image-turbo-t2i.json,sha256=sHsL7xnnuULOuWGYlQrDl4jOTySdAmb2T82c_cChv0s,1585
|
|
122
|
-
lcode_cli-0.
|
|
123
|
-
lcode_cli-0.
|
|
124
|
-
lcode_cli-0.
|
|
125
|
-
lcode_cli-0.
|
|
126
|
-
lcode_cli-0.
|
|
122
|
+
lcode_cli-0.55.0.dist-info/METADATA,sha256=QmuPY1V2wDb6iwy6zCj_dkCf3YakuIE02F_tjSxnZ0I,14142
|
|
123
|
+
lcode_cli-0.55.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
124
|
+
lcode_cli-0.55.0.dist-info/entry_points.txt,sha256=Hxsn_itbnbgft3U0FwxWdmEt0yoAV2LB-nJDnL9WT20,172
|
|
125
|
+
lcode_cli-0.55.0.dist-info/licenses/LICENSE,sha256=JWjmoL7nNIC1XUa-dZm2hwLUgjUQMFo6k8APb0idNzs,1074
|
|
126
|
+
lcode_cli-0.55.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|