q-bot 2.0.0.dev2__py3-none-any.whl → 2.0.0.dev3__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.
- q/__init__.py +1 -1
- q/cli/commands.py +8 -1
- {q_bot-2.0.0.dev2.dist-info → q_bot-2.0.0.dev3.dist-info}/METADATA +30 -30
- {q_bot-2.0.0.dev2.dist-info → q_bot-2.0.0.dev3.dist-info}/RECORD +7 -7
- {q_bot-2.0.0.dev2.dist-info → q_bot-2.0.0.dev3.dist-info}/WHEEL +0 -0
- {q_bot-2.0.0.dev2.dist-info → q_bot-2.0.0.dev3.dist-info}/entry_points.txt +0 -0
- {q_bot-2.0.0.dev2.dist-info → q_bot-2.0.0.dev3.dist-info}/top_level.txt +0 -0
q/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "2.0.0.
|
|
1
|
+
__version__ = "2.0.0.dev3"
|
q/cli/commands.py
CHANGED
|
@@ -188,7 +188,8 @@ class CodeCommand(AgentCommand):
|
|
|
188
188
|
|
|
189
189
|
@property
|
|
190
190
|
def system(self) -> str:
|
|
191
|
-
|
|
191
|
+
code_lang = self.args.get("l") or StateManager.load_code_lang()
|
|
192
|
+
return f"You are a coding assistant. Given a natural language description, generate a code snippet that accomplishes the requested task. The code should be correct, efficient, concise, and idiomatic. Respond with only the code snippet, without explanations, additional text, or formatting. Use the {code_lang} programming language."
|
|
192
193
|
|
|
193
194
|
|
|
194
195
|
class ShellCommand(AgentCommand):
|
|
@@ -360,6 +361,12 @@ class KeyOption(Flag):
|
|
|
360
361
|
required = True
|
|
361
362
|
|
|
362
363
|
|
|
364
|
+
class CodeLangOption(Flag):
|
|
365
|
+
char = "l"
|
|
366
|
+
desc = "code lang"
|
|
367
|
+
value_type = ValueType.STR
|
|
368
|
+
|
|
369
|
+
|
|
363
370
|
class ModelOption(Flag):
|
|
364
371
|
char = "m"
|
|
365
372
|
desc = "model"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: q-bot
|
|
3
|
-
Version: 2.0.0.
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 2.0.0.dev3
|
|
4
|
+
Summary: A provider-agnostic command-line agent and LLM framework.
|
|
5
5
|
Author-email: Tushar Khan <dev@tusharkhan.com>
|
|
6
6
|
License-Expression: MIT
|
|
7
7
|
Project-URL: Repository, https://github.com/tk755/q
|
|
@@ -39,34 +39,34 @@ Requires Python 3.12+.
|
|
|
39
39
|
|
|
40
40
|
## Flag Reference
|
|
41
41
|
|
|
42
|
-
| Flag | Name | Arg | Description
|
|
43
|
-
| ---- | ------------ | ------- |
|
|
44
|
-
| `-a` | agent | | *[reserved for future use]*
|
|
45
|
-
| `-b` | batch | | *[reserved for future use]*
|
|
46
|
-
| `-c` | code | str | generate code
|
|
47
|
-
| `-d` | directory | - / str | add a directory to context
|
|
48
|
-
| `-e` | explain | - / str | explain code or text
|
|
49
|
-
| `-f` | file | str | read input from file
|
|
50
|
-
| `-g` | | |
|
|
51
|
-
| `-h` | help | - / str | help message /
|
|
52
|
-
| `-i` | image | str | generate/edit an image
|
|
53
|
-
| `-j` | json | - | output as JSON
|
|
54
|
-
| `-k` | api key | str | override API key
|
|
55
|
-
| `-l` |
|
|
56
|
-
| `-m` | model | str | override model/provider
|
|
57
|
-
| `-n` | new session | - | clear the session history
|
|
58
|
-
| `-o` | output | str | output file
|
|
59
|
-
| `-p` | | |
|
|
60
|
-
| `-q` | | |
|
|
61
|
-
| `-r` | rag | - / str | *[reserved for future use]*
|
|
62
|
-
| `-s` | shell | - / str | generate a shell command
|
|
63
|
-
| `-t` | text | str | generate text
|
|
64
|
-
| `-u` | user command | str | *[reserved for future use]*
|
|
65
|
-
| `-v` | verbose | - | debug logging
|
|
66
|
-
| `-w` | web
|
|
67
|
-
| `-x` | execute | - | execute a shell command
|
|
68
|
-
| `-y` | | |
|
|
69
|
-
| `-z` | undo | - / int | undo exchanges (default 1)
|
|
42
|
+
| Flag | Name | Arg | Description | Type |
|
|
43
|
+
| ---- | ------------ | ------- | --------------------------------- | ------: |
|
|
44
|
+
| `-a` | agent | | *[reserved for future use]* | Command |
|
|
45
|
+
| `-b` | batch | | *[reserved for future use]* | Command |
|
|
46
|
+
| `-c` | code | str | generate code | Command |
|
|
47
|
+
| `-d` | directory | - / str | add a directory to context | Option |
|
|
48
|
+
| `-e` | explain | - / str | explain code or text | Command |
|
|
49
|
+
| `-f` | file | str | read input from file | Option |
|
|
50
|
+
| `-g` | | | | |
|
|
51
|
+
| `-h` | help | - / str | help message / agent | Command |
|
|
52
|
+
| `-i` | image | str | generate/edit an image | Command |
|
|
53
|
+
| `-j` | json | - | output as JSON | Option |
|
|
54
|
+
| `-k` | api key | str | override API key | Option |
|
|
55
|
+
| `-l` | code lang | str | override code generation language | Option |
|
|
56
|
+
| `-m` | model | str | override model/provider | Option |
|
|
57
|
+
| `-n` | new session | - | clear the session history | Option |
|
|
58
|
+
| `-o` | output | str | output file | Option |
|
|
59
|
+
| `-p` | | | | |
|
|
60
|
+
| `-q` | | | | |
|
|
61
|
+
| `-r` | rag | - / str | *[reserved for future use]* | Command |
|
|
62
|
+
| `-s` | shell | - / str | generate a shell command | Command |
|
|
63
|
+
| `-t` | text | str | generate text | Command |
|
|
64
|
+
| `-u` | user command | str | *[reserved for future use]* | Command |
|
|
65
|
+
| `-v` | verbose | - | debug logging | Option |
|
|
66
|
+
| `-w` | web | str | search the web | Command |
|
|
67
|
+
| `-x` | execute | - | execute a shell command | Option |
|
|
68
|
+
| `-y` | | | | |
|
|
69
|
+
| `-z` | undo | - / int | undo exchanges (default 1) | Option |
|
|
70
70
|
|
|
71
71
|
## Sessions
|
|
72
72
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
q/__init__.py,sha256=
|
|
1
|
+
q/__init__.py,sha256=8gDQBdLmR46kPJax_sM468y8CQGXIiPVan0_C3lwaqo,27
|
|
2
2
|
q/agents.py,sha256=a0jOxDUA7Rm0jPm4gBmPmYMUzSPnheBoPFy9Mun2G1w,2335
|
|
3
3
|
q/client.py,sha256=rXFL_jRY2vhjZvk4ENkPfRYXtJG55NQtW70VEhSTNiA,1681
|
|
4
4
|
q/message.py,sha256=Hw0Z6Z0K_4EYKFd1x7ksu9SWvCGDx0Zkkt3O5aU_4UU,207
|
|
5
|
-
q/cli/commands.py,sha256=
|
|
5
|
+
q/cli/commands.py,sha256=Spj1ljHQ7WoHrajYPKIqMXt0JQD3RxGj68tbMw2heHw,12747
|
|
6
6
|
q/cli/main.py,sha256=T0KwbDIRezysdyLPUHnRMudT_tzcNmEWeYZ6YyCzm7E,473
|
|
7
7
|
q/cli/models.py,sha256=BAFM02IIr0LAIcLKiTuZLVg-rfGvbfKZ7w-yZL3UTv8,2425
|
|
8
8
|
q/cli/parser.py,sha256=-nEHcKOHGIMI7wMLGVYvVjXCX8NStFLwv8XPJQsOtnc,5013
|
|
@@ -11,8 +11,8 @@ q/cli/terminal.py,sha256=mvd5IQD1A7tscMADXm3rjIr_i6n5SC5e4qj8bGBV5E8,1960
|
|
|
11
11
|
q/providers/__init__.py,sha256=qhoJKdtxn_MWEhYzY4YL6c0u5lxWdPk82vWKUy5enO8,744
|
|
12
12
|
q/providers/anthropic.py,sha256=K-wewG4J-9xCzAGid7lKtxYawf0JL1_PLID92YP9-KM,2141
|
|
13
13
|
q/providers/openai.py,sha256=E39dXi-XnVFGWwbdPrmvFp5j8J1mvpF1HdWFxhDdILg,2340
|
|
14
|
-
q_bot-2.0.0.
|
|
15
|
-
q_bot-2.0.0.
|
|
16
|
-
q_bot-2.0.0.
|
|
17
|
-
q_bot-2.0.0.
|
|
18
|
-
q_bot-2.0.0.
|
|
14
|
+
q_bot-2.0.0.dev3.dist-info/METADATA,sha256=s4jPTKarDWkBbPWn2mHSvGRPeYz7YyUFy_CgH8Dbjoo,7652
|
|
15
|
+
q_bot-2.0.0.dev3.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
16
|
+
q_bot-2.0.0.dev3.dist-info/entry_points.txt,sha256=omXc-722JuPZx7nHjEqwkUOWgdkg7CERiDDaQ368VVs,38
|
|
17
|
+
q_bot-2.0.0.dev3.dist-info/top_level.txt,sha256=StwzvZ_nQwPDRL5G5ZFtZRgvshjiSP6ARSqz8CWwbGQ,2
|
|
18
|
+
q_bot-2.0.0.dev3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|