nanocode-cli 0.2.9__tar.gz → 0.3.16__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.9/nanocode_cli.egg-info → nanocode_cli-0.3.16}/PKG-INFO +38 -33
- {nanocode_cli-0.2.9 → nanocode_cli-0.3.16}/README.md +37 -31
- nanocode_cli-0.3.16/nanocode.py +6243 -0
- {nanocode_cli-0.2.9 → nanocode_cli-0.3.16/nanocode_cli.egg-info}/PKG-INFO +38 -33
- {nanocode_cli-0.2.9 → nanocode_cli-0.3.16}/nanocode_cli.egg-info/requires.txt +0 -1
- {nanocode_cli-0.2.9 → nanocode_cli-0.3.16}/pyproject.toml +1 -2
- nanocode_cli-0.2.9/nanocode.py +0 -4120
- {nanocode_cli-0.2.9 → nanocode_cli-0.3.16}/LICENSE +0 -0
- {nanocode_cli-0.2.9 → nanocode_cli-0.3.16}/MANIFEST.in +0 -0
- {nanocode_cli-0.2.9 → nanocode_cli-0.3.16}/nanocode_cli.egg-info/SOURCES.txt +0 -0
- {nanocode_cli-0.2.9 → nanocode_cli-0.3.16}/nanocode_cli.egg-info/dependency_links.txt +0 -0
- {nanocode_cli-0.2.9 → nanocode_cli-0.3.16}/nanocode_cli.egg-info/entry_points.txt +0 -0
- {nanocode_cli-0.2.9 → nanocode_cli-0.3.16}/nanocode_cli.egg-info/top_level.txt +0 -0
- {nanocode_cli-0.2.9 → nanocode_cli-0.3.16}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nanocode-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.16
|
|
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
|
|
@@ -23,7 +23,6 @@ Description-Content-Type: text/markdown
|
|
|
23
23
|
License-File: LICENSE
|
|
24
24
|
Requires-Dist: json-repair>=0.39
|
|
25
25
|
Requires-Dist: prompt-toolkit>=3.0
|
|
26
|
-
Requires-Dist: typing-extensions>=4.7
|
|
27
26
|
Provides-Extra: dev
|
|
28
27
|
Requires-Dist: pytest>=8.0; extra == "dev"
|
|
29
28
|
Requires-Dist: ruff>=0.4.0; extra == "dev"
|
|
@@ -46,35 +45,7 @@ nanocode is used to help building itself, including features such as `@file` pat
|
|
|
46
45
|
- **Constrained Output**: Force model replies into auditable action frames.
|
|
47
46
|
- **Verified Edits**: Reject stale range edits before they touch files.
|
|
48
47
|
- **Autonomous Loop**: Chain reading, editing, running, and verification.
|
|
49
|
-
- **Live Telemetry**: Stream tool intent, token use,
|
|
50
|
-
|
|
51
|
-
## Tools
|
|
52
|
-
|
|
53
|
-
- File: `Read`, `LineCount`, `ListDir`, `Search`.
|
|
54
|
-
- Edit: `Edit`, `ReplaceRange`, `BatchReplaceRanges`, `ApplyPatch`.
|
|
55
|
-
- Shell: `Bash`, `Git`.
|
|
56
|
-
- Memory: `Blackboard`.
|
|
57
|
-
|
|
58
|
-
## Commands
|
|
59
|
-
|
|
60
|
-
- Info: `/help [question]`, `/status`.
|
|
61
|
-
- Session: `/compact`, `/blackboard [status|clear]`.
|
|
62
|
-
- Config: `/model`, `/compact-at`, `/reason`, `/reason_effort`, `/stream`, `/yolo`.
|
|
63
|
-
- Exit: `/exit`, `/quit`.
|
|
64
|
-
|
|
65
|
-
## Configuration
|
|
66
|
-
|
|
67
|
-
- Required: `NANOCODE_API_URL`, `NANOCODE_API_KEY`, `NANOCODE_MODEL`.
|
|
68
|
-
- Runtime: `NANOCODE_DIR`, `NANOCODE_TEMPERATURE`, `NANOCODE_STREAM`.
|
|
69
|
-
- Reasoning: `NANOCODE_REASONING`, `NANOCODE_REASONING_EFFORT`.
|
|
70
|
-
- Limits: `NANOCODE_MODEL_TIMEOUT`, `NANOCODE_SHELL_TIMEOUT`, `NANOCODE_COMPACT_AT`, `NANOCODE_MAX_AGENT_STEPS`.
|
|
71
|
-
- Cost: `NANOCODE_PROMPT_PRICE_PER_1M_TOKENS`, `NANOCODE_COMPLETION_PRICE_PER_1M_TOKENS`.
|
|
72
|
-
|
|
73
|
-
## Status
|
|
74
|
-
|
|
75
|
-
- Status bar: model, reasoning, context, tokens/cost, blackboard, elapsed time, and active model-call time.
|
|
76
|
-
- `/status`: model, reasoning, stream, yolo, conversation, tokens/cost, blackboard, goal, and verification.
|
|
77
|
-
|
|
48
|
+
- **Live Telemetry**: Stream tool intent, token use, and status.
|
|
78
49
|
|
|
79
50
|
## Install
|
|
80
51
|
|
|
@@ -115,10 +86,44 @@ Ask a source-aware question about nanocode itself:
|
|
|
115
86
|
/help how does compact work?
|
|
116
87
|
```
|
|
117
88
|
|
|
89
|
+
CLI arguments:
|
|
90
|
+
|
|
91
|
+
- `--yolo`: Skip tool execution confirmations.
|
|
92
|
+
- `--debug`: Write request prompts to `.nanocode/debug`.
|
|
93
|
+
- `--config <path>`: Path to config file (default: `~/.nanocode/config.toml`).
|
|
94
|
+
- `--init-config`: Create a default config file.
|
|
95
|
+
- `-v`, `--version`: Show program version.
|
|
96
|
+
|
|
118
97
|
## Safety
|
|
119
98
|
|
|
120
|
-
nanocode does
|
|
99
|
+
nanocode does NOT provide sandbox protection. It can run shell commands and edit files in the environment where you start it.
|
|
121
100
|
|
|
122
101
|
If you do not fully trust the model, tools, prompts, or workspace, run nanocode inside your own sandbox, container, VM, or other isolated environment.
|
|
123
102
|
|
|
124
|
-
|
|
103
|
+
USE AT YOUR OWN RISK.
|
|
104
|
+
|
|
105
|
+
## Tools
|
|
106
|
+
|
|
107
|
+
- File: `Read`, `LineCount`, `ListDir`, `Search`.
|
|
108
|
+
- Edit: `Edit`, `ReplaceRange`, `ApplyPatch`.
|
|
109
|
+
- Shell: `Bash`, `Git`.
|
|
110
|
+
- Memory: `Recall` reads stored tool results by key.
|
|
111
|
+
|
|
112
|
+
## Commands
|
|
113
|
+
|
|
114
|
+
- Info: `/help [question]`, `/status`, `/rules`, `/knowledge [update]`, `/compact`.
|
|
115
|
+
- Config: `/config`, `/set <key> <value>`, `/model [model_name]`, `/provider [name]`, `/yolo`.
|
|
116
|
+
- Maintenance: `/clean-logs`.
|
|
117
|
+
- Exit: `/exit`, `/quit`.
|
|
118
|
+
|
|
119
|
+
## Configuration
|
|
120
|
+
|
|
121
|
+
Run `nanocode --init-config` to create `~/.nanocode/config.toml`.
|
|
122
|
+
|
|
123
|
+
- Provider config: `[provider] active = "<name>"` plus `[provider.<name>]` url, key, model, and model options.
|
|
124
|
+
- Runtime config: `[paths]` and `[runtime]`.
|
|
125
|
+
|
|
126
|
+
## Status
|
|
127
|
+
|
|
128
|
+
- Status bar: active model, reasoning, conversation context, current-turn tool calls, tokens, elapsed time, and active model-call time.
|
|
129
|
+
- `/status`: active provider, model state, runtime state, conversation/tool counters, per-model calls/tokens, task, goal, and verification.
|
|
@@ -15,35 +15,7 @@ nanocode is used to help building itself, including features such as `@file` pat
|
|
|
15
15
|
- **Constrained Output**: Force model replies into auditable action frames.
|
|
16
16
|
- **Verified Edits**: Reject stale range edits before they touch files.
|
|
17
17
|
- **Autonomous Loop**: Chain reading, editing, running, and verification.
|
|
18
|
-
- **Live Telemetry**: Stream tool intent, token use,
|
|
19
|
-
|
|
20
|
-
## Tools
|
|
21
|
-
|
|
22
|
-
- File: `Read`, `LineCount`, `ListDir`, `Search`.
|
|
23
|
-
- Edit: `Edit`, `ReplaceRange`, `BatchReplaceRanges`, `ApplyPatch`.
|
|
24
|
-
- Shell: `Bash`, `Git`.
|
|
25
|
-
- Memory: `Blackboard`.
|
|
26
|
-
|
|
27
|
-
## Commands
|
|
28
|
-
|
|
29
|
-
- Info: `/help [question]`, `/status`.
|
|
30
|
-
- Session: `/compact`, `/blackboard [status|clear]`.
|
|
31
|
-
- Config: `/model`, `/compact-at`, `/reason`, `/reason_effort`, `/stream`, `/yolo`.
|
|
32
|
-
- Exit: `/exit`, `/quit`.
|
|
33
|
-
|
|
34
|
-
## Configuration
|
|
35
|
-
|
|
36
|
-
- Required: `NANOCODE_API_URL`, `NANOCODE_API_KEY`, `NANOCODE_MODEL`.
|
|
37
|
-
- Runtime: `NANOCODE_DIR`, `NANOCODE_TEMPERATURE`, `NANOCODE_STREAM`.
|
|
38
|
-
- Reasoning: `NANOCODE_REASONING`, `NANOCODE_REASONING_EFFORT`.
|
|
39
|
-
- Limits: `NANOCODE_MODEL_TIMEOUT`, `NANOCODE_SHELL_TIMEOUT`, `NANOCODE_COMPACT_AT`, `NANOCODE_MAX_AGENT_STEPS`.
|
|
40
|
-
- Cost: `NANOCODE_PROMPT_PRICE_PER_1M_TOKENS`, `NANOCODE_COMPLETION_PRICE_PER_1M_TOKENS`.
|
|
41
|
-
|
|
42
|
-
## Status
|
|
43
|
-
|
|
44
|
-
- Status bar: model, reasoning, context, tokens/cost, blackboard, elapsed time, and active model-call time.
|
|
45
|
-
- `/status`: model, reasoning, stream, yolo, conversation, tokens/cost, blackboard, goal, and verification.
|
|
46
|
-
|
|
18
|
+
- **Live Telemetry**: Stream tool intent, token use, and status.
|
|
47
19
|
|
|
48
20
|
## Install
|
|
49
21
|
|
|
@@ -84,10 +56,44 @@ Ask a source-aware question about nanocode itself:
|
|
|
84
56
|
/help how does compact work?
|
|
85
57
|
```
|
|
86
58
|
|
|
59
|
+
CLI arguments:
|
|
60
|
+
|
|
61
|
+
- `--yolo`: Skip tool execution confirmations.
|
|
62
|
+
- `--debug`: Write request prompts to `.nanocode/debug`.
|
|
63
|
+
- `--config <path>`: Path to config file (default: `~/.nanocode/config.toml`).
|
|
64
|
+
- `--init-config`: Create a default config file.
|
|
65
|
+
- `-v`, `--version`: Show program version.
|
|
66
|
+
|
|
87
67
|
## Safety
|
|
88
68
|
|
|
89
|
-
nanocode does
|
|
69
|
+
nanocode does NOT provide sandbox protection. It can run shell commands and edit files in the environment where you start it.
|
|
90
70
|
|
|
91
71
|
If you do not fully trust the model, tools, prompts, or workspace, run nanocode inside your own sandbox, container, VM, or other isolated environment.
|
|
92
72
|
|
|
93
|
-
|
|
73
|
+
USE AT YOUR OWN RISK.
|
|
74
|
+
|
|
75
|
+
## Tools
|
|
76
|
+
|
|
77
|
+
- File: `Read`, `LineCount`, `ListDir`, `Search`.
|
|
78
|
+
- Edit: `Edit`, `ReplaceRange`, `ApplyPatch`.
|
|
79
|
+
- Shell: `Bash`, `Git`.
|
|
80
|
+
- Memory: `Recall` reads stored tool results by key.
|
|
81
|
+
|
|
82
|
+
## Commands
|
|
83
|
+
|
|
84
|
+
- Info: `/help [question]`, `/status`, `/rules`, `/knowledge [update]`, `/compact`.
|
|
85
|
+
- Config: `/config`, `/set <key> <value>`, `/model [model_name]`, `/provider [name]`, `/yolo`.
|
|
86
|
+
- Maintenance: `/clean-logs`.
|
|
87
|
+
- Exit: `/exit`, `/quit`.
|
|
88
|
+
|
|
89
|
+
## Configuration
|
|
90
|
+
|
|
91
|
+
Run `nanocode --init-config` to create `~/.nanocode/config.toml`.
|
|
92
|
+
|
|
93
|
+
- Provider config: `[provider] active = "<name>"` plus `[provider.<name>]` url, key, model, and model options.
|
|
94
|
+
- Runtime config: `[paths]` and `[runtime]`.
|
|
95
|
+
|
|
96
|
+
## Status
|
|
97
|
+
|
|
98
|
+
- Status bar: active model, reasoning, conversation context, current-turn tool calls, tokens, elapsed time, and active model-call time.
|
|
99
|
+
- `/status`: active provider, model state, runtime state, conversation/tool counters, per-model calls/tokens, task, goal, and verification.
|