nanocode-cli 0.2.0__tar.gz → 0.2.1__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.
- {nanocode_cli-0.2.0/nanocode_cli.egg-info → nanocode_cli-0.2.1}/PKG-INFO +8 -2
- {nanocode_cli-0.2.0 → nanocode_cli-0.2.1}/README.md +7 -1
- {nanocode_cli-0.2.0 → nanocode_cli-0.2.1}/nanocode.py +12 -5
- {nanocode_cli-0.2.0 → nanocode_cli-0.2.1/nanocode_cli.egg-info}/PKG-INFO +8 -2
- {nanocode_cli-0.2.0 → nanocode_cli-0.2.1}/pyproject.toml +1 -1
- {nanocode_cli-0.2.0 → nanocode_cli-0.2.1}/LICENSE +0 -0
- {nanocode_cli-0.2.0 → nanocode_cli-0.2.1}/MANIFEST.in +0 -0
- {nanocode_cli-0.2.0 → nanocode_cli-0.2.1}/nanocode_cli.egg-info/SOURCES.txt +0 -0
- {nanocode_cli-0.2.0 → nanocode_cli-0.2.1}/nanocode_cli.egg-info/dependency_links.txt +0 -0
- {nanocode_cli-0.2.0 → nanocode_cli-0.2.1}/nanocode_cli.egg-info/entry_points.txt +0 -0
- {nanocode_cli-0.2.0 → nanocode_cli-0.2.1}/nanocode_cli.egg-info/requires.txt +0 -0
- {nanocode_cli-0.2.0 → nanocode_cli-0.2.1}/nanocode_cli.egg-info/top_level.txt +0 -0
- {nanocode_cli-0.2.0 → nanocode_cli-0.2.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nanocode-cli
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: A lightweight terminal-based AI coding assistant
|
|
5
5
|
Author-email: hit9 <hit9@icloud.com>
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
@@ -32,7 +32,7 @@ Dynamic: license-file
|
|
|
32
32
|
|
|
33
33
|
A lightweight terminal-based AI coding assistant.
|
|
34
34
|
|
|
35
|
-
nanocode is used to
|
|
35
|
+
nanocode is used to help building itself, including features such as `@file` path completion.
|
|
36
36
|
|
|
37
37
|
## Screenshots
|
|
38
38
|
|
|
@@ -46,6 +46,12 @@ nanocode is used to build itself, including features such as `@file` path comple
|
|
|
46
46
|
uv tool install nanocode-cli
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
+
Upgrade an existing install:
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
uv tool upgrade nanocode-cli
|
|
53
|
+
```
|
|
54
|
+
|
|
49
55
|
For local development:
|
|
50
56
|
|
|
51
57
|
```sh
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
A lightweight terminal-based AI coding assistant.
|
|
4
4
|
|
|
5
|
-
nanocode is used to
|
|
5
|
+
nanocode is used to help building itself, including features such as `@file` path completion.
|
|
6
6
|
|
|
7
7
|
## Screenshots
|
|
8
8
|
|
|
@@ -16,6 +16,12 @@ nanocode is used to build itself, including features such as `@file` path comple
|
|
|
16
16
|
uv tool install nanocode-cli
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
+
Upgrade an existing install:
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
uv tool upgrade nanocode-cli
|
|
23
|
+
```
|
|
24
|
+
|
|
19
25
|
For local development:
|
|
20
26
|
|
|
21
27
|
```sh
|
|
@@ -41,7 +41,7 @@ from prompt_toolkit.patch_stdout import patch_stdout
|
|
|
41
41
|
|
|
42
42
|
JsonValue: TypeAlias = Any
|
|
43
43
|
Json: TypeAlias = dict[str, JsonValue]
|
|
44
|
-
__version__ = "0.2.
|
|
44
|
+
__version__ = "0.2.1"
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
class Error(Exception): ...
|
|
@@ -2693,13 +2693,19 @@ class Agent:
|
|
|
2693
2693
|
for event, execution in zip(self.tool_runner.latest_events, self.tool_runner.latest_executions):
|
|
2694
2694
|
if not event.summary:
|
|
2695
2695
|
continue
|
|
2696
|
-
|
|
2696
|
+
is_reading_result_file = self._has_read_result_file_call(tool_calls, event.result_file)
|
|
2697
|
+
if event.needs_raw_read and not is_reading_result_file:
|
|
2697
2698
|
needs_read.append(event)
|
|
2698
2699
|
if event.outcome in {"failure", "partial"}:
|
|
2699
|
-
if not event.key_details:
|
|
2700
|
+
if not event.key_details and not is_reading_result_file:
|
|
2700
2701
|
missing_evidence.append(event)
|
|
2701
2702
|
continue
|
|
2702
|
-
if
|
|
2703
|
+
if (
|
|
2704
|
+
self._is_large_tool_output(execution.output)
|
|
2705
|
+
and not event.key_details
|
|
2706
|
+
and not event.needs_raw_read
|
|
2707
|
+
and not is_reading_result_file
|
|
2708
|
+
):
|
|
2703
2709
|
missing_evidence.append(event)
|
|
2704
2710
|
if not missing and not missing_evidence and not needs_read:
|
|
2705
2711
|
return ""
|
|
@@ -2728,12 +2734,13 @@ class Agent:
|
|
|
2728
2734
|
def _has_read_result_file_call(self, tool_calls: list[JsonValue], result_file: str) -> bool:
|
|
2729
2735
|
if not result_file:
|
|
2730
2736
|
return False
|
|
2737
|
+
expected = self.session.resolve_path(result_file)
|
|
2731
2738
|
for raw_call in tool_calls:
|
|
2732
2739
|
call = _json_dict(raw_call)
|
|
2733
2740
|
if _json_str(call.get("name")) != ReadTool.name():
|
|
2734
2741
|
continue
|
|
2735
2742
|
args = [_json_str(arg) or "" for arg in _json_list(call.get("args"))]
|
|
2736
|
-
if args and args[0] ==
|
|
2743
|
+
if args and self.session.resolve_path(args[0]) == expected:
|
|
2737
2744
|
return True
|
|
2738
2745
|
return False
|
|
2739
2746
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nanocode-cli
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: A lightweight terminal-based AI coding assistant
|
|
5
5
|
Author-email: hit9 <hit9@icloud.com>
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
@@ -32,7 +32,7 @@ Dynamic: license-file
|
|
|
32
32
|
|
|
33
33
|
A lightweight terminal-based AI coding assistant.
|
|
34
34
|
|
|
35
|
-
nanocode is used to
|
|
35
|
+
nanocode is used to help building itself, including features such as `@file` path completion.
|
|
36
36
|
|
|
37
37
|
## Screenshots
|
|
38
38
|
|
|
@@ -46,6 +46,12 @@ nanocode is used to build itself, including features such as `@file` path comple
|
|
|
46
46
|
uv tool install nanocode-cli
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
+
Upgrade an existing install:
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
uv tool upgrade nanocode-cli
|
|
53
|
+
```
|
|
54
|
+
|
|
49
55
|
For local development:
|
|
50
56
|
|
|
51
57
|
```sh
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|