lithe-cli 0.8.7__tar.gz → 0.8.8__tar.gz
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.
Potentially problematic release.
This version of lithe-cli might be problematic. Click here for more details.
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/PKG-INFO +2 -2
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/README.md +1 -1
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/lithe_cli/__init__.py +1 -1
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/lithe_cli/ttui.py +6 -0
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/lithe_cli.egg-info/PKG-INFO +2 -2
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/tests/test_ttui.py +16 -1
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/LICENSE +0 -0
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/lithe_cli/__main__.py +0 -0
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/lithe_cli/agent.py +0 -0
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/lithe_cli/commands.py +0 -0
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/lithe_cli/config.py +0 -0
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/lithe_cli/main.py +0 -0
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/lithe_cli/profiles.py +0 -0
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/lithe_cli/prompts.py +0 -0
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/lithe_cli/py.typed +0 -0
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/lithe_cli/sessions.py +0 -0
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/lithe_cli/setup.py +0 -0
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/lithe_cli/tui.py +0 -0
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/lithe_cli/ui.py +0 -0
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/lithe_cli/workbench.py +0 -0
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/lithe_cli.egg-info/SOURCES.txt +0 -0
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/lithe_cli.egg-info/dependency_links.txt +0 -0
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/lithe_cli.egg-info/entry_points.txt +0 -0
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/lithe_cli.egg-info/requires.txt +0 -0
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/lithe_cli.egg-info/top_level.txt +0 -0
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/pyproject.toml +0 -0
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/setup.cfg +0 -0
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/tests/test_cli.py +0 -0
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/tests/test_cli_sessions.py +0 -0
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/tests/test_profiles.py +0 -0
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/tests/test_tui_v2.py +0 -0
- {lithe_cli-0.8.7 → lithe_cli-0.8.8}/tests/test_workbench.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lithe-cli
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.8
|
|
4
4
|
Summary: Command-line interface for the lithe agent kernel: chat, one-shot runs, undo, and run inspection.
|
|
5
5
|
License: MIT License
|
|
6
6
|
|
|
@@ -160,7 +160,7 @@ the conversation; the right sidebar is five fixed sections — 会话(current
|
|
|
160
160
|
工具/待办、用量:
|
|
161
161
|
|
|
162
162
|
```text
|
|
163
|
-
lithe 0.8.
|
|
163
|
+
lithe 0.8.8 · ▣ #12 重构计划 │ zhipu · glm-4.6 │ ~/myproj ● 运行中
|
|
164
164
|
╭──────────────────────────────────────╮╭──────────────────────────╮
|
|
165
165
|
│ 把 a.txt 改成三行待办清单 ││ ◆ 会话 │
|
|
166
166
|
│ ◆ edit_file · 局部修改 a.txt ││ #12 重构计划 ● │
|
|
@@ -111,7 +111,7 @@ the conversation; the right sidebar is five fixed sections — 会话(current
|
|
|
111
111
|
工具/待办、用量:
|
|
112
112
|
|
|
113
113
|
```text
|
|
114
|
-
lithe 0.8.
|
|
114
|
+
lithe 0.8.8 · ▣ #12 重构计划 │ zhipu · glm-4.6 │ ~/myproj ● 运行中
|
|
115
115
|
╭──────────────────────────────────────╮╭──────────────────────────╮
|
|
116
116
|
│ 把 a.txt 改成三行待办清单 ││ ◆ 会话 │
|
|
117
117
|
│ ◆ edit_file · 局部修改 a.txt ││ #12 重构计划 ● │
|
|
@@ -517,6 +517,12 @@ class LitheApp(App):
|
|
|
517
517
|
streaming.update("")
|
|
518
518
|
if at_bottom:
|
|
519
519
|
conv.scroll_end(animate=False)
|
|
520
|
+
# The pane's extent only grows once the newly mounted lines lay
|
|
521
|
+
# out (next refresh). Anchoring again after that refresh keeps
|
|
522
|
+
# the follow exact: otherwise the scroll lands one refresh short
|
|
523
|
+
# of the bottom and the next event's at-bottom check mis-reads
|
|
524
|
+
# "still reading up there" and stops following for good.
|
|
525
|
+
conv.call_after_refresh(conv.scroll_end, animate=False)
|
|
520
526
|
|
|
521
527
|
def _refresh_chrome(self) -> None:
|
|
522
528
|
self.query_one("#top", Static).update(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lithe-cli
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.8
|
|
4
4
|
Summary: Command-line interface for the lithe agent kernel: chat, one-shot runs, undo, and run inspection.
|
|
5
5
|
License: MIT License
|
|
6
6
|
|
|
@@ -160,7 +160,7 @@ the conversation; the right sidebar is five fixed sections — 会话(current
|
|
|
160
160
|
工具/待办、用量:
|
|
161
161
|
|
|
162
162
|
```text
|
|
163
|
-
lithe 0.8.
|
|
163
|
+
lithe 0.8.8 · ▣ #12 重构计划 │ zhipu · glm-4.6 │ ~/myproj ● 运行中
|
|
164
164
|
╭──────────────────────────────────────╮╭──────────────────────────╮
|
|
165
165
|
│ 把 a.txt 改成三行待办清单 ││ ◆ 会话 │
|
|
166
166
|
│ ◆ edit_file · 局部修改 a.txt ││ #12 重构计划 ● │
|
|
@@ -291,6 +291,19 @@ def test_mid_turn_text_restored_and_commands_still_work(tmp_path):
|
|
|
291
291
|
asyncio.run(scenario())
|
|
292
292
|
|
|
293
293
|
|
|
294
|
+
async def _settle_bottom(pilot, conv):
|
|
295
|
+
"""Give the follow anchor cycles to land: mounting grows the pane's
|
|
296
|
+
extent only after a layout refresh, so scroll position converges over
|
|
297
|
+
a few pauses (robust on slow CI)."""
|
|
298
|
+
import time
|
|
299
|
+
|
|
300
|
+
deadline = time.monotonic() + 2.0
|
|
301
|
+
while time.monotonic() < deadline:
|
|
302
|
+
await pilot.pause(0.02)
|
|
303
|
+
if conv.scroll_y >= conv.max_scroll_y - 1:
|
|
304
|
+
return
|
|
305
|
+
|
|
306
|
+
|
|
294
307
|
def test_sync_feed_follows_only_when_at_bottom(tmp_path):
|
|
295
308
|
"""Scrolling up to re-read earlier output sticks; new events must not
|
|
296
309
|
yank the reader back to the bottom."""
|
|
@@ -304,6 +317,7 @@ def test_sync_feed_follows_only_when_at_bottom(tmp_path):
|
|
|
304
317
|
await pilot.pause()
|
|
305
318
|
conv = app.query_one("#conv", VerticalScroll)
|
|
306
319
|
assert conv.max_scroll_y > 0
|
|
320
|
+
await _settle_bottom(pilot, conv)
|
|
307
321
|
assert conv.scroll_y >= conv.max_scroll_y - 1 # followed down
|
|
308
322
|
conv.scroll_to(y=0, animate=False)
|
|
309
323
|
await pilot.pause()
|
|
@@ -314,9 +328,10 @@ def test_sync_feed_follows_only_when_at_bottom(tmp_path):
|
|
|
314
328
|
await pilot.pause()
|
|
315
329
|
assert conv.scroll_y == 0, "reading position must stick"
|
|
316
330
|
conv.scroll_end(animate=False)
|
|
331
|
+
await _settle_bottom(pilot, conv)
|
|
317
332
|
app.state.say("dim", "tail")
|
|
318
333
|
app._sync_feed()
|
|
319
|
-
await pilot
|
|
334
|
+
await _settle_bottom(pilot, conv)
|
|
320
335
|
assert conv.scroll_y >= conv.max_scroll_y - 1 # follows again
|
|
321
336
|
|
|
322
337
|
asyncio.run(scenario())
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|