clai 0.2.7__tar.gz → 1.11.0__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.
- {clai-0.2.7 → clai-1.11.0}/.gitignore +4 -2
- {clai-0.2.7 → clai-1.11.0}/PKG-INFO +11 -10
- {clai-0.2.7 → clai-1.11.0}/README.md +5 -3
- {clai-0.2.7 → clai-1.11.0}/pyproject.toml +8 -8
- {clai-0.2.7 → clai-1.11.0}/update_readme.py +1 -1
- {clai-0.2.7 → clai-1.11.0}/LICENSE +0 -0
- {clai-0.2.7 → clai-1.11.0}/clai/__init__.py +0 -0
- {clai-0.2.7 → clai-1.11.0}/clai/__main__.py +0 -0
|
@@ -10,12 +10,14 @@ env*/
|
|
|
10
10
|
/TODO.md
|
|
11
11
|
/postgres-data/
|
|
12
12
|
.DS_Store
|
|
13
|
-
|
|
13
|
+
.chat_app_messages.sqlite
|
|
14
14
|
.cache/
|
|
15
15
|
.vscode/
|
|
16
16
|
/question_graph_history.json
|
|
17
17
|
/docs-site/.wrangler/
|
|
18
|
-
/CLAUDE.md
|
|
19
18
|
node_modules/
|
|
20
19
|
**.idea/
|
|
21
20
|
.coverage*
|
|
21
|
+
/test_tmp/
|
|
22
|
+
.mcp.json
|
|
23
|
+
.claude/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: clai
|
|
3
|
-
Version:
|
|
4
|
-
Summary:
|
|
5
|
-
Author-email: Samuel Colvin <samuel@pydantic.dev>, Marcelo Trylesinski <marcelotryle@gmail.com>, David Montague <david@pydantic.dev>, Alex Hall <alex@pydantic.dev>
|
|
3
|
+
Version: 1.11.0
|
|
4
|
+
Summary: Pydantic AI CLI: command line interface to chat to LLMs
|
|
5
|
+
Author-email: Samuel Colvin <samuel@pydantic.dev>, Marcelo Trylesinski <marcelotryle@gmail.com>, David Montague <david@pydantic.dev>, Alex Hall <alex@pydantic.dev>, Douwe Maan <douwe@pydantic.dev>
|
|
6
6
|
License-Expression: MIT
|
|
7
7
|
License-File: LICENSE
|
|
8
|
-
Classifier: Development Status ::
|
|
8
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
9
9
|
Classifier: Environment :: Console
|
|
10
10
|
Classifier: Environment :: MacOS X
|
|
11
11
|
Classifier: Intended Audience :: Developers
|
|
@@ -17,15 +17,14 @@ Classifier: Operating System :: Unix
|
|
|
17
17
|
Classifier: Programming Language :: Python
|
|
18
18
|
Classifier: Programming Language :: Python :: 3
|
|
19
19
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.10
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.11
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.12
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.13
|
|
25
24
|
Classifier: Topic :: Internet
|
|
26
25
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
27
|
-
Requires-Python: >=3.
|
|
28
|
-
Requires-Dist: pydantic-ai==
|
|
26
|
+
Requires-Python: >=3.10
|
|
27
|
+
Requires-Dist: pydantic-ai==1.11.0
|
|
29
28
|
Description-Content-Type: text/markdown
|
|
30
29
|
|
|
31
30
|
# clai
|
|
@@ -38,7 +37,7 @@ Description-Content-Type: text/markdown
|
|
|
38
37
|
|
|
39
38
|
(pronounced "clay")
|
|
40
39
|
|
|
41
|
-
Command line interface to chat to LLMs, part of the [
|
|
40
|
+
Command line interface to chat to LLMs, part of the [Pydantic AI project](https://github.com/pydantic/pydantic-ai).
|
|
42
41
|
|
|
43
42
|
## Usage
|
|
44
43
|
|
|
@@ -79,18 +78,20 @@ Either way, running `clai` will start an interactive session where you can chat
|
|
|
79
78
|
- `/exit`: Exit the session
|
|
80
79
|
- `/markdown`: Show the last response in markdown format
|
|
81
80
|
- `/multiline`: Toggle multiline input mode (use Ctrl+D to submit)
|
|
81
|
+
- `/cp`: Copy the last response to clipboard
|
|
82
82
|
|
|
83
83
|
## Help
|
|
84
84
|
|
|
85
85
|
```
|
|
86
86
|
usage: clai [-h] [-m [MODEL]] [-a AGENT] [-l] [-t [CODE_THEME]] [--no-stream] [--version] [prompt]
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
Pydantic AI CLI v...
|
|
89
89
|
|
|
90
90
|
Special prompts:
|
|
91
91
|
* `/exit` - exit the interactive mode (ctrl-c and ctrl-d also work)
|
|
92
92
|
* `/markdown` - show the last markdown output of the last question
|
|
93
93
|
* `/multiline` - toggle multiline mode
|
|
94
|
+
* `/cp` - copy the last response to clipboard
|
|
94
95
|
|
|
95
96
|
positional arguments:
|
|
96
97
|
prompt AI Prompt, if omitted fall into interactive mode
|
|
@@ -98,7 +99,7 @@ positional arguments:
|
|
|
98
99
|
options:
|
|
99
100
|
-h, --help show this help message and exit
|
|
100
101
|
-m [MODEL], --model [MODEL]
|
|
101
|
-
Model to use, in format "<provider>:<model>" e.g. "openai:gpt-
|
|
102
|
+
Model to use, in format "<provider>:<model>" e.g. "openai:gpt-5" or "anthropic:claude-sonnet-4-5". Defaults to "openai:gpt-5".
|
|
102
103
|
-a AGENT, --agent AGENT
|
|
103
104
|
Custom Agent to use, in format "module:variable", e.g. "mymodule.submodule:my_agent"
|
|
104
105
|
-l, --list-models List all available models and exit
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
(pronounced "clay")
|
|
10
10
|
|
|
11
|
-
Command line interface to chat to LLMs, part of the [
|
|
11
|
+
Command line interface to chat to LLMs, part of the [Pydantic AI project](https://github.com/pydantic/pydantic-ai).
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
@@ -49,18 +49,20 @@ Either way, running `clai` will start an interactive session where you can chat
|
|
|
49
49
|
- `/exit`: Exit the session
|
|
50
50
|
- `/markdown`: Show the last response in markdown format
|
|
51
51
|
- `/multiline`: Toggle multiline input mode (use Ctrl+D to submit)
|
|
52
|
+
- `/cp`: Copy the last response to clipboard
|
|
52
53
|
|
|
53
54
|
## Help
|
|
54
55
|
|
|
55
56
|
```
|
|
56
57
|
usage: clai [-h] [-m [MODEL]] [-a AGENT] [-l] [-t [CODE_THEME]] [--no-stream] [--version] [prompt]
|
|
57
58
|
|
|
58
|
-
|
|
59
|
+
Pydantic AI CLI v...
|
|
59
60
|
|
|
60
61
|
Special prompts:
|
|
61
62
|
* `/exit` - exit the interactive mode (ctrl-c and ctrl-d also work)
|
|
62
63
|
* `/markdown` - show the last markdown output of the last question
|
|
63
64
|
* `/multiline` - toggle multiline mode
|
|
65
|
+
* `/cp` - copy the last response to clipboard
|
|
64
66
|
|
|
65
67
|
positional arguments:
|
|
66
68
|
prompt AI Prompt, if omitted fall into interactive mode
|
|
@@ -68,7 +70,7 @@ positional arguments:
|
|
|
68
70
|
options:
|
|
69
71
|
-h, --help show this help message and exit
|
|
70
72
|
-m [MODEL], --model [MODEL]
|
|
71
|
-
Model to use, in format "<provider>:<model>" e.g. "openai:gpt-
|
|
73
|
+
Model to use, in format "<provider>:<model>" e.g. "openai:gpt-5" or "anthropic:claude-sonnet-4-5". Defaults to "openai:gpt-5".
|
|
72
74
|
-a AGENT, --agent AGENT
|
|
73
75
|
Custom Agent to use, in format "module:variable", e.g. "mymodule.submodule:my_agent"
|
|
74
76
|
-l, --list-models List all available models and exit
|
|
@@ -13,21 +13,21 @@ bump = true
|
|
|
13
13
|
[project]
|
|
14
14
|
name = "clai"
|
|
15
15
|
dynamic = ["version", "dependencies"]
|
|
16
|
-
description = "
|
|
16
|
+
description = "Pydantic AI CLI: command line interface to chat to LLMs"
|
|
17
17
|
authors = [
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
{ name = "Samuel Colvin", email = "samuel@pydantic.dev" },
|
|
19
|
+
{ name = "Marcelo Trylesinski", email = "marcelotryle@gmail.com" },
|
|
20
|
+
{ name = "David Montague", email = "david@pydantic.dev" },
|
|
21
|
+
{ name = "Alex Hall", email = "alex@pydantic.dev" },
|
|
22
|
+
{ name = "Douwe Maan", email = "douwe@pydantic.dev" },
|
|
22
23
|
]
|
|
23
24
|
license = "MIT"
|
|
24
25
|
readme = "README.md"
|
|
25
26
|
classifiers = [
|
|
26
|
-
"Development Status ::
|
|
27
|
+
"Development Status :: 5 - Production/Stable",
|
|
27
28
|
"Programming Language :: Python",
|
|
28
29
|
"Programming Language :: Python :: 3",
|
|
29
30
|
"Programming Language :: Python :: 3 :: Only",
|
|
30
|
-
"Programming Language :: Python :: 3.9",
|
|
31
31
|
"Programming Language :: Python :: 3.10",
|
|
32
32
|
"Programming Language :: Python :: 3.11",
|
|
33
33
|
"Programming Language :: Python :: 3.12",
|
|
@@ -43,7 +43,7 @@ classifiers = [
|
|
|
43
43
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
44
44
|
"Topic :: Internet",
|
|
45
45
|
]
|
|
46
|
-
requires-python = ">=3.
|
|
46
|
+
requires-python = ">=3.10"
|
|
47
47
|
|
|
48
48
|
[tool.hatch.metadata.hooks.uv-dynamic-versioning]
|
|
49
49
|
dependencies = [
|
|
@@ -17,7 +17,7 @@ def test_cli_help(capfd: pytest.CaptureFixture[str]):
|
|
|
17
17
|
|
|
18
18
|
help_output = capfd.readouterr().out.strip()
|
|
19
19
|
# TODO change when we reach v1
|
|
20
|
-
help_output = re.sub(r'(
|
|
20
|
+
help_output = re.sub(r'(Pydantic AI CLI v).+', r'\1...', help_output)
|
|
21
21
|
|
|
22
22
|
this_dir = Path(__file__).parent
|
|
23
23
|
readme = this_dir / 'README.md'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|