mini-code-cli 0.2.0.0__py3-none-any.whl → 0.2.1.1__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.
- mini_code_cli/agent_loop.py +18 -8
- mini_code_cli/tui.py +16 -2
- mini_code_cli/ui.py +27 -0
- {mini_code_cli-0.2.0.0.dist-info → mini_code_cli-0.2.1.1.dist-info}/METADATA +4 -2
- {mini_code_cli-0.2.0.0.dist-info → mini_code_cli-0.2.1.1.dist-info}/RECORD +9 -9
- {mini_code_cli-0.2.0.0.dist-info → mini_code_cli-0.2.1.1.dist-info}/WHEEL +0 -0
- {mini_code_cli-0.2.0.0.dist-info → mini_code_cli-0.2.1.1.dist-info}/entry_points.txt +0 -0
- {mini_code_cli-0.2.0.0.dist-info → mini_code_cli-0.2.1.1.dist-info}/licenses/LICENSE +0 -0
- {mini_code_cli-0.2.0.0.dist-info → mini_code_cli-0.2.1.1.dist-info}/top_level.txt +0 -0
mini_code_cli/agent_loop.py
CHANGED
|
@@ -1284,6 +1284,11 @@ class AgentSession:
|
|
|
1284
1284
|
"history_file": history_index,
|
|
1285
1285
|
"index": max(len(messages) - 1, 0),
|
|
1286
1286
|
})
|
|
1287
|
+
# The context bar lives in the header, which is otherwise set once at
|
|
1288
|
+
# startup. Refresh it after each recorded turn so it tracks the
|
|
1289
|
+
# transcript instead of freezing at the initial value.
|
|
1290
|
+
if self.tui_active:
|
|
1291
|
+
self.console.set_summary(self._tui_header_lines())
|
|
1287
1292
|
|
|
1288
1293
|
def _show_history(self):
|
|
1289
1294
|
"""Print the high-level recorder as a numbered list of turns."""
|
|
@@ -1530,20 +1535,25 @@ class AgentSession:
|
|
|
1530
1535
|
permission = "auto"
|
|
1531
1536
|
shell = "on" if shell_execution_enabled(self.args) else "off"
|
|
1532
1537
|
planning = self.plan_strategy if self.plan_mode else "off"
|
|
1533
|
-
|
|
1538
|
+
sep = f" {self.console.glyph('v')} "
|
|
1539
|
+
session_line = sep.join((
|
|
1540
|
+
f"version: {version}",
|
|
1541
|
+
f"session: {self.unique_id}",
|
|
1542
|
+
))
|
|
1534
1543
|
if self.restored_session:
|
|
1535
|
-
session_line += "
|
|
1544
|
+
session_line += f"{sep}[restored]"
|
|
1536
1545
|
lines = [
|
|
1537
1546
|
session_line,
|
|
1538
|
-
f"model
|
|
1539
|
-
f"server
|
|
1540
|
-
f"dir
|
|
1541
|
-
f"
|
|
1542
|
-
f"
|
|
1547
|
+
f"model: {oneline(self.model or '(auto)', 56)}",
|
|
1548
|
+
f"server: {oneline(self.server_url, 56)}",
|
|
1549
|
+
f"dir: {oneline(self.allowed_dir, 56)}",
|
|
1550
|
+
sep.join((f"permissions: {permission}", f"shell: {shell}")),
|
|
1551
|
+
sep.join((f"compaction: {self.compaction_strategy}",
|
|
1552
|
+
f"planning: {planning}")),
|
|
1543
1553
|
]
|
|
1544
1554
|
badge = self._context_badge()
|
|
1545
1555
|
if badge:
|
|
1546
|
-
lines.append(f"context {badge}")
|
|
1556
|
+
lines.append(f"context: {badge}")
|
|
1547
1557
|
return lines
|
|
1548
1558
|
|
|
1549
1559
|
def _tui_history_turns(self):
|
mini_code_cli/tui.py
CHANGED
|
@@ -16,7 +16,7 @@ import textwrap
|
|
|
16
16
|
import threading
|
|
17
17
|
from collections import deque
|
|
18
18
|
|
|
19
|
-
from .ui import (Console, _ANSI_RE, _pad_visual, _read_escape_sequence,
|
|
19
|
+
from .ui import (Console, LOGO, _ANSI_RE, _pad_visual, _read_escape_sequence,
|
|
20
20
|
_visual_len)
|
|
21
21
|
|
|
22
22
|
|
|
@@ -648,6 +648,12 @@ class TuiConsole(Console):
|
|
|
648
648
|
cols, rows = self._size()
|
|
649
649
|
summary = [str(line) for line in (self._summary_lines
|
|
650
650
|
or ["Mini-Code"])]
|
|
651
|
+
# The fixed view replaces the scrolling welcome banner, so show the
|
|
652
|
+
# same mark at the top of the dashboard when the terminal is big
|
|
653
|
+
# enough. On a short/narrow terminal the information lines win.
|
|
654
|
+
if (rows >= 24 and cols >= max(len(line) for line in LOGO) + 4):
|
|
655
|
+
summary = [self.style(line, fg="cyan", bold=True)
|
|
656
|
+
for line in LOGO] + summary
|
|
651
657
|
if self._info_provider is not None:
|
|
652
658
|
try:
|
|
653
659
|
info = self._info_provider()
|
|
@@ -655,7 +661,15 @@ class TuiConsole(Console):
|
|
|
655
661
|
info = ""
|
|
656
662
|
if info:
|
|
657
663
|
summary.append(self.style(info, dim=True))
|
|
658
|
-
|
|
664
|
+
# The dashboard is not only decoration: keep enough lines for the
|
|
665
|
+
# workload settings and the live usage line. The old rows//3 cap
|
|
666
|
+
# truncated them after the logo was added.
|
|
667
|
+
max_summary = max(rows // 3, 3)
|
|
668
|
+
if rows >= 24:
|
|
669
|
+
max_summary = max(max_summary, 12)
|
|
670
|
+
elif rows >= 20:
|
|
671
|
+
max_summary = max(max_summary, 8)
|
|
672
|
+
header = self._box("Mini-Code", summary[:max_summary], cols,
|
|
659
673
|
fg="cyan")
|
|
660
674
|
|
|
661
675
|
input_lines = self._input_lines()
|
mini_code_cli/ui.py
CHANGED
|
@@ -49,6 +49,16 @@ _BG = {
|
|
|
49
49
|
|
|
50
50
|
_ANSI_RE = re.compile(r"\033\[[0-9;]*m")
|
|
51
51
|
|
|
52
|
+
#: Startup mark. Kept deliberately small so it fits an 80-column terminal and
|
|
53
|
+
#: still leaves the information box below it readable.
|
|
54
|
+
LOGO = (
|
|
55
|
+
r" __ __ ___ _ _ ___ ___ ___ ___ ___",
|
|
56
|
+
r" | \/ |_ _| \| |_ _| / __/ _ \| \| __|",
|
|
57
|
+
r" | |\/| || || .` || | | (_| (_) | |) | _|",
|
|
58
|
+
r" |_| |_|___|_|\_|___| \___\___/|___/|___|",
|
|
59
|
+
)
|
|
60
|
+
TAGLINE = "a minimal coding agent CLI"
|
|
61
|
+
|
|
52
62
|
|
|
53
63
|
# --- helpers ----------------------------------------------------------------
|
|
54
64
|
|
|
@@ -813,8 +823,25 @@ class Console:
|
|
|
813
823
|
f"compaction : {compaction_strategy or 'summarise'}",
|
|
814
824
|
f"planning : {planning}",
|
|
815
825
|
]
|
|
826
|
+
self._print_logo()
|
|
816
827
|
self.banner(f"MiniCodeCLI v{version}", lines, fg="cyan")
|
|
817
828
|
|
|
829
|
+
def _print_logo(self):
|
|
830
|
+
"""Print the ASCII mark above the welcome box.
|
|
831
|
+
|
|
832
|
+
The art is skipped on very narrow terminals; wrapping a logo is worse
|
|
833
|
+
than omitting it. Colour is optional, so piped logs still show the
|
|
834
|
+
plain mark.
|
|
835
|
+
"""
|
|
836
|
+
art_width = max(len(line) for line in LOGO)
|
|
837
|
+
if self.width < art_width + 4:
|
|
838
|
+
return
|
|
839
|
+
pad = " " * max((self.width - art_width) // 2, 0)
|
|
840
|
+
for line in LOGO:
|
|
841
|
+
self.emit(pad + self.style(line, fg="cyan", bold=True))
|
|
842
|
+
self.emit(pad + self.style(TAGLINE, dim=True))
|
|
843
|
+
self.emit()
|
|
844
|
+
|
|
818
845
|
def farewell(self, version, rows, sign_off=None):
|
|
819
846
|
"""Render the exit banner: a sign-off plus a summary of the session state.
|
|
820
847
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mini-code-cli
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1.1
|
|
4
4
|
Summary: Mini Coding Agent. Allows you to easily experiment with a small coding agent.
|
|
5
5
|
Author-email: Nikolai Rozanov <nikolai.rozanov@gmail.com>
|
|
6
6
|
License-Expression: AGPL-3.0-only
|
|
@@ -30,6 +30,8 @@ Dynamic: license-file
|
|
|
30
30
|
[](LICENSE)
|
|
31
31
|
[](#citation)
|
|
32
32
|
|
|
33
|
+

|
|
34
|
+
|
|
33
35
|
**Purpose:** a no-bloat, minimal coding CLI to enjoy experimenting and researching!
|
|
34
36
|
|
|
35
37
|
**Install** · [Quick start](#quick-start) · [Modes & safety](#modes--safety) · [Options](#command-line-options) · [Tools](#available-tools) · [Sub-agents](#sub-agents) · [In-session commands](#in-session-commands) · [Development](#development) · [Docs](#documentation) · [Citation](#citation)
|
|
@@ -479,7 +481,7 @@ If you use `mini-code-cli` in your research or writing, please cite it:
|
|
|
479
481
|
author = {Rozanov, Nikolai},
|
|
480
482
|
title = {mini-code-cli: A minimal, dependency-light coding agent},
|
|
481
483
|
year = {2026},
|
|
482
|
-
version = {0.2.
|
|
484
|
+
version = {0.2.1.0},
|
|
483
485
|
howpublished = {\url{https://github.com/ai-nikolai/mini-code-cli}},
|
|
484
486
|
note = {A no-bloat, dependency-light agent CLI for experimenting.}
|
|
485
487
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
mini_code_cli/__init__.py,sha256=YGfjMiLSV2MRJGQQzv8wMLAgYnSY3NsQuIYnKQW_lqg,2328
|
|
2
2
|
mini_code_cli/__main__.py,sha256=Jls6gR2UuAnJjlEpUoYhpGmWwwkhFqB2mllQ7u9V1T8,425
|
|
3
3
|
mini_code_cli/agent_files.py,sha256=ZsGiAKFEsEklufmCq8f-2bHq9PB3gT97IAr3-JXcSpQ,3191
|
|
4
|
-
mini_code_cli/agent_loop.py,sha256=
|
|
4
|
+
mini_code_cli/agent_loop.py,sha256=xKbrBVoji-_oBYowqJqlW5CpqMqceUVrFpaBxKTgq4k,159279
|
|
5
5
|
mini_code_cli/background.py,sha256=j7ky8yDryGUFADbAfW1YFEciaEZeg-hs-kqGurWNj1w,17772
|
|
6
6
|
mini_code_cli/compaction.py,sha256=UJ3gTOVsMdWlS2xQ20CkgIO3fX7nqm0Cj9Q8SUa7JjU,8826
|
|
7
7
|
mini_code_cli/config.py,sha256=YG-ffIrLRgP6I_9ydJhUN1njIL5rvXgzuLNc7LQadg4,10376
|
|
@@ -16,15 +16,15 @@ mini_code_cli/shell_safety_utils.py,sha256=5E126vGnG7iIuTZe_R5JrxB_zxZpMKGe_pilz
|
|
|
16
16
|
mini_code_cli/skills.py,sha256=jkvaB08U78-339KzPs4dKkd0g1rokgAd6fo_TI9P6zo,17960
|
|
17
17
|
mini_code_cli/tokens.py,sha256=jq0bQhEmtWj6-VqxnjXyFcLT1U5Azo0ncJ0Vnf5_sr8,7895
|
|
18
18
|
mini_code_cli/tools.py,sha256=pwYgthF2Do9W13F7RrQdul723qNKbwhUFODPgjt3Gvg,38165
|
|
19
|
-
mini_code_cli/tui.py,sha256
|
|
20
|
-
mini_code_cli/ui.py,sha256=
|
|
19
|
+
mini_code_cli/tui.py,sha256=pLEYzk1u2wamgMPka5Lkiu-F1uc8SQdeXKwycKnFZxY,43565
|
|
20
|
+
mini_code_cli/ui.py,sha256=zBuFo9Ub58xkyy58mCCKNE-RDCwvZLO77-_chYrWjXs,49525
|
|
21
21
|
mini_code_cli/utils.py,sha256=WsiQ32dGO-digE5TiPlKaFff7INZ0aMlW35y-VnY5Z4,12994
|
|
22
22
|
mini_code_cli/subagents/__init__.py,sha256=eGDVz6LqJnw4AkCtECvH--S56G5zniin5hMl9jPZIeQ,1942
|
|
23
23
|
mini_code_cli/subagents/base.py,sha256=ofUoqVcb4ODkaTd1Ig7FTTZClPV48diItTjjnFEfQe8,19602
|
|
24
24
|
mini_code_cli/subagents/builtin.py,sha256=j_fr-tH6qEaRLij2WjGMaew4XOSRndwWm0xCO7BH03c,8188
|
|
25
|
-
mini_code_cli-0.2.
|
|
26
|
-
mini_code_cli-0.2.
|
|
27
|
-
mini_code_cli-0.2.
|
|
28
|
-
mini_code_cli-0.2.
|
|
29
|
-
mini_code_cli-0.2.
|
|
30
|
-
mini_code_cli-0.2.
|
|
25
|
+
mini_code_cli-0.2.1.1.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
|
26
|
+
mini_code_cli-0.2.1.1.dist-info/METADATA,sha256=PaFqerQ9ZZX42Yf45-ud8x9lkf3J2alY1Q4o0v-EHlQ,27804
|
|
27
|
+
mini_code_cli-0.2.1.1.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
28
|
+
mini_code_cli-0.2.1.1.dist-info/entry_points.txt,sha256=MwDp5UbXpI7wodSmOSYL8_nKutnBiyp96ZDDtaX7x14,60
|
|
29
|
+
mini_code_cli-0.2.1.1.dist-info/top_level.txt,sha256=3Hb6PpNkJYXvzDKXuuFJRvzCdsTRh0TuRWz-ScJ6qV0,14
|
|
30
|
+
mini_code_cli-0.2.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|