tiny-cli-agent 0.1.0__tar.gz → 0.1.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.
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/PKG-INFO +18 -7
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/README.md +14 -6
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/pyproject.toml +6 -2
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/src/tiny_agent/__init__.py +1 -1
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/src/tiny_cli_agent.egg-info/PKG-INFO +18 -7
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/tests/check_config.py +4 -4
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/.gitignore +0 -0
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/AGENT.md +0 -0
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/LICENSE +0 -0
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/MANIFEST.in +0 -0
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/setup.cfg +0 -0
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/src/tiny_agent/__main__.py +0 -0
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/src/tiny_agent/cli.py +0 -0
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/src/tiny_agent/evals.py +0 -0
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/src/tiny_cli_agent.egg-info/SOURCES.txt +0 -0
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/src/tiny_cli_agent.egg-info/dependency_links.txt +0 -0
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/src/tiny_cli_agent.egg-info/entry_points.txt +0 -0
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/src/tiny_cli_agent.egg-info/requires.txt +0 -0
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/src/tiny_cli_agent.egg-info/top_level.txt +0 -0
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/tests/_setup.py +0 -0
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/tests/check_e2e.py +0 -0
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/tests/check_evals.py +0 -0
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/tests/check_pty.py +0 -0
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/tests/check_terminal_ui.py +0 -0
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/tests/check_tools.py +0 -0
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/tests/check_tui.py +0 -0
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/tests/check_usage.py +0 -0
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/tests/run_all.py +0 -0
- {tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/tests/test_suite.py +0 -0
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tiny-cli-agent
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: A small terminal coding agent for DeepSeek / OpenAI-compatible APIs
|
|
5
5
|
Author: wangdejun
|
|
6
6
|
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/wangdejun/tiny-agent
|
|
8
|
+
Project-URL: Repository, https://github.com/wangdejun/tiny-agent
|
|
9
|
+
Project-URL: Issues, https://github.com/wangdejun/tiny-agent/issues
|
|
7
10
|
Classifier: Development Status :: 3 - Alpha
|
|
8
11
|
Classifier: Environment :: Console
|
|
9
12
|
Classifier: Intended Audience :: Developers
|
|
@@ -31,7 +34,7 @@ Dynamic: license-file
|
|
|
31
34
|
|
|
32
35
|
一个小型的终端编程 Agent:让大模型在循环里自己决定调用哪个工具(读写文件、搜索、执行命令、派生子 Agent),执行后把结果喂回模型,直到任务完成。思路与 Claude Code 一致,规模小到可以通读,适合学习和实验。默认对接 DeepSeek,任何 OpenAI 兼容的接口都可以使用。
|
|
33
36
|
|
|
34
|
-
> **状态:Alpha(0.1.
|
|
37
|
+
> **状态:Alpha(0.1.1)。** 这是一个教学和实验性质的实现,不是生产级工具。使用前请先阅读下面的[安全须知](#安全须知)。
|
|
35
38
|
|
|
36
39
|
## 主要功能
|
|
37
40
|
|
|
@@ -51,17 +54,25 @@ Dynamic: license-file
|
|
|
51
54
|
|
|
52
55
|
```bash
|
|
53
56
|
# 推荐:用 pipx 安装命令行工具(依赖隔离,不污染系统 Python)
|
|
54
|
-
pipx install
|
|
55
|
-
pipx install
|
|
57
|
+
pipx install tiny-cli-agent # 从 PyPI 安装
|
|
58
|
+
pipx install . # 或在项目根目录从源码安装
|
|
56
59
|
|
|
57
60
|
# 也可以用 pip
|
|
58
|
-
pip install
|
|
61
|
+
pip install tiny-cli-agent
|
|
59
62
|
|
|
60
63
|
# 开发时用可编辑安装(改代码立即生效)
|
|
61
64
|
pip install -e ".[dev]"
|
|
62
65
|
```
|
|
63
66
|
|
|
64
|
-
|
|
67
|
+
安装后的命令名仍是 `tiny-agent`,PyPI 上的包名是 `tiny-cli-agent`。
|
|
68
|
+
|
|
69
|
+
升级:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
pipx upgrade tiny-cli-agent
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
macOS 自带的 `python3` 可能低于 3.10(例如 3.9),此时用 `pipx install --python python3.12 tiny-cli-agent` 指定较新的解释器。
|
|
65
76
|
|
|
66
77
|
## 快速开始
|
|
67
78
|
|
|
@@ -211,4 +222,4 @@ python -m build # 构建 wheel 和 sdist 到 dist/
|
|
|
211
222
|
|
|
212
223
|
## 许可证
|
|
213
224
|
|
|
214
|
-
本项目使用 [MIT 许可证](LICENSE)。
|
|
225
|
+
本项目使用 [MIT 许可证](https://github.com/wangdejun/tiny-agent/blob/main/LICENSE)。
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
一个小型的终端编程 Agent:让大模型在循环里自己决定调用哪个工具(读写文件、搜索、执行命令、派生子 Agent),执行后把结果喂回模型,直到任务完成。思路与 Claude Code 一致,规模小到可以通读,适合学习和实验。默认对接 DeepSeek,任何 OpenAI 兼容的接口都可以使用。
|
|
4
4
|
|
|
5
|
-
> **状态:Alpha(0.1.
|
|
5
|
+
> **状态:Alpha(0.1.1)。** 这是一个教学和实验性质的实现,不是生产级工具。使用前请先阅读下面的[安全须知](#安全须知)。
|
|
6
6
|
|
|
7
7
|
## 主要功能
|
|
8
8
|
|
|
@@ -22,17 +22,25 @@
|
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
24
|
# 推荐:用 pipx 安装命令行工具(依赖隔离,不污染系统 Python)
|
|
25
|
-
pipx install
|
|
26
|
-
pipx install
|
|
25
|
+
pipx install tiny-cli-agent # 从 PyPI 安装
|
|
26
|
+
pipx install . # 或在项目根目录从源码安装
|
|
27
27
|
|
|
28
28
|
# 也可以用 pip
|
|
29
|
-
pip install
|
|
29
|
+
pip install tiny-cli-agent
|
|
30
30
|
|
|
31
31
|
# 开发时用可编辑安装(改代码立即生效)
|
|
32
32
|
pip install -e ".[dev]"
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
安装后的命令名仍是 `tiny-agent`,PyPI 上的包名是 `tiny-cli-agent`。
|
|
36
|
+
|
|
37
|
+
升级:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
pipx upgrade tiny-cli-agent
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
macOS 自带的 `python3` 可能低于 3.10(例如 3.9),此时用 `pipx install --python python3.12 tiny-cli-agent` 指定较新的解释器。
|
|
36
44
|
|
|
37
45
|
## 快速开始
|
|
38
46
|
|
|
@@ -182,4 +190,4 @@ python -m build # 构建 wheel 和 sdist 到 dist/
|
|
|
182
190
|
|
|
183
191
|
## 许可证
|
|
184
192
|
|
|
185
|
-
本项目使用 [MIT 许可证](LICENSE)。
|
|
193
|
+
本项目使用 [MIT 许可证](https://github.com/wangdejun/tiny-agent/blob/main/LICENSE)。
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "tiny-cli-agent"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.1"
|
|
8
8
|
description = "A small terminal coding agent for DeepSeek / OpenAI-compatible APIs"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "MIT"
|
|
@@ -29,7 +29,11 @@ classifiers = [
|
|
|
29
29
|
"Programming Language :: Python :: 3.12",
|
|
30
30
|
"Topic :: Software Development",
|
|
31
31
|
]
|
|
32
|
-
|
|
32
|
+
|
|
33
|
+
[project.urls]
|
|
34
|
+
Homepage = "https://github.com/wangdejun/tiny-agent"
|
|
35
|
+
Repository = "https://github.com/wangdejun/tiny-agent"
|
|
36
|
+
Issues = "https://github.com/wangdejun/tiny-agent/issues"
|
|
33
37
|
|
|
34
38
|
[project.optional-dependencies]
|
|
35
39
|
dev = [
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tiny-cli-agent
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: A small terminal coding agent for DeepSeek / OpenAI-compatible APIs
|
|
5
5
|
Author: wangdejun
|
|
6
6
|
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/wangdejun/tiny-agent
|
|
8
|
+
Project-URL: Repository, https://github.com/wangdejun/tiny-agent
|
|
9
|
+
Project-URL: Issues, https://github.com/wangdejun/tiny-agent/issues
|
|
7
10
|
Classifier: Development Status :: 3 - Alpha
|
|
8
11
|
Classifier: Environment :: Console
|
|
9
12
|
Classifier: Intended Audience :: Developers
|
|
@@ -31,7 +34,7 @@ Dynamic: license-file
|
|
|
31
34
|
|
|
32
35
|
一个小型的终端编程 Agent:让大模型在循环里自己决定调用哪个工具(读写文件、搜索、执行命令、派生子 Agent),执行后把结果喂回模型,直到任务完成。思路与 Claude Code 一致,规模小到可以通读,适合学习和实验。默认对接 DeepSeek,任何 OpenAI 兼容的接口都可以使用。
|
|
33
36
|
|
|
34
|
-
> **状态:Alpha(0.1.
|
|
37
|
+
> **状态:Alpha(0.1.1)。** 这是一个教学和实验性质的实现,不是生产级工具。使用前请先阅读下面的[安全须知](#安全须知)。
|
|
35
38
|
|
|
36
39
|
## 主要功能
|
|
37
40
|
|
|
@@ -51,17 +54,25 @@ Dynamic: license-file
|
|
|
51
54
|
|
|
52
55
|
```bash
|
|
53
56
|
# 推荐:用 pipx 安装命令行工具(依赖隔离,不污染系统 Python)
|
|
54
|
-
pipx install
|
|
55
|
-
pipx install
|
|
57
|
+
pipx install tiny-cli-agent # 从 PyPI 安装
|
|
58
|
+
pipx install . # 或在项目根目录从源码安装
|
|
56
59
|
|
|
57
60
|
# 也可以用 pip
|
|
58
|
-
pip install
|
|
61
|
+
pip install tiny-cli-agent
|
|
59
62
|
|
|
60
63
|
# 开发时用可编辑安装(改代码立即生效)
|
|
61
64
|
pip install -e ".[dev]"
|
|
62
65
|
```
|
|
63
66
|
|
|
64
|
-
|
|
67
|
+
安装后的命令名仍是 `tiny-agent`,PyPI 上的包名是 `tiny-cli-agent`。
|
|
68
|
+
|
|
69
|
+
升级:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
pipx upgrade tiny-cli-agent
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
macOS 自带的 `python3` 可能低于 3.10(例如 3.9),此时用 `pipx install --python python3.12 tiny-cli-agent` 指定较新的解释器。
|
|
65
76
|
|
|
66
77
|
## 快速开始
|
|
67
78
|
|
|
@@ -211,4 +222,4 @@ python -m build # 构建 wheel 和 sdist 到 dist/
|
|
|
211
222
|
|
|
212
223
|
## 许可证
|
|
213
224
|
|
|
214
|
-
本项目使用 [MIT 许可证](LICENSE)。
|
|
225
|
+
本项目使用 [MIT 许可证](https://github.com/wangdejun/tiny-agent/blob/main/LICENSE)。
|
|
@@ -15,7 +15,7 @@ ok("用户目录是 ~/.tiny-agent", m.HOME_DIR == os.path.join(SANDBOX, ".tiny-a
|
|
|
15
15
|
ok("用户级记忆在 ~/.tiny-agent/AGENT.md", m.USER_MEMORY == os.path.join(SANDBOX, ".tiny-agent", "AGENT.md"), m.USER_MEMORY)
|
|
16
16
|
ok("会话目录在项目的 .tiny-agent/", m.SESSION_DIR.endswith(os.path.join(".tiny-agent", "sessions")))
|
|
17
17
|
ok(".tiny-agent 被搜索工具跳过", ".tiny-agent" in m.SKIP_DIRS)
|
|
18
|
-
ok("版本号", tiny_agent.__version__ == "0.1.
|
|
18
|
+
ok("版本号", tiny_agent.__version__ == "0.1.1")
|
|
19
19
|
|
|
20
20
|
# ---- 取值优先级:环境变量 > 配置文件 > 默认值 ----
|
|
21
21
|
v, src = m.resolve_setting(m.URL_ENVS, "base_url", m.DEFAULT_BASE_URL)
|
|
@@ -86,11 +86,11 @@ sys.argv = ["tiny-agent", "--version"]
|
|
|
86
86
|
with contextlib.redirect_stdout(io.StringIO()) as cap:
|
|
87
87
|
try: m.main(); code = None
|
|
88
88
|
except SystemExit as e: code = e.code
|
|
89
|
-
ok("--version", code == 0 and "tiny-agent 0.1.
|
|
89
|
+
ok("--version", code == 0 and "tiny-agent 0.1.1" in cap.getvalue(), f"{code} {cap.getvalue()!r}")
|
|
90
90
|
sys.argv = ["tiny-agent", "--show-config"]
|
|
91
91
|
with contextlib.redirect_stdout(io.StringIO()) as cap:
|
|
92
92
|
m.main()
|
|
93
|
-
ok("--show-config 不需要创建客户端", "tiny-agent 0.1.
|
|
93
|
+
ok("--show-config 不需要创建客户端", "tiny-agent 0.1.1" in cap.getvalue() and m.client is None)
|
|
94
94
|
sys.argv = ["tiny-agent", "--help"]
|
|
95
95
|
with contextlib.redirect_stdout(io.StringIO()) as cap:
|
|
96
96
|
try: m.main()
|
|
@@ -98,7 +98,7 @@ with contextlib.redirect_stdout(io.StringIO()) as cap:
|
|
|
98
98
|
h = cap.getvalue()
|
|
99
99
|
ok("--help 列出所有选项", all(k in h for k in ("--tui", "--resume", "--plan", "--yes", "--max-steps", "--setup", "--show-config", "--version")))
|
|
100
100
|
r = subprocess.run([sys.executable, "-m", "tiny_agent", "--version"], capture_output=True, text=True, timeout=60, env=dict(os.environ))
|
|
101
|
-
ok("python -m tiny_agent 可用", r.returncode == 0 and "0.1.
|
|
101
|
+
ok("python -m tiny_agent 可用", r.returncode == 0 and "0.1.1" in r.stdout, r.stdout + r.stderr)
|
|
102
102
|
env = {k: v for k, v in os.environ.items() if "API_KEY" not in k}
|
|
103
103
|
r = subprocess.run([sys.executable, "-m", "tiny_agent", "你好"], capture_output=True, text=True, timeout=60, env=env, cwd=SANDBOX)
|
|
104
104
|
ok("没有 key 时命令行报错清楚且无 traceback", r.returncode != 0 and "--setup" in r.stderr and "Traceback" not in r.stderr, r.stderr[-300:])
|
|
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
|
{tiny_cli_agent-0.1.0 → tiny_cli_agent-0.1.1}/src/tiny_cli_agent.egg-info/dependency_links.txt
RENAMED
|
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
|