yaicli 0.3.1__py3-none-any.whl → 0.3.2__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.
- pyproject.toml +1 -1
- yaicli/cli.py +2 -0
- {yaicli-0.3.1.dist-info → yaicli-0.3.2.dist-info}/METADATA +1 -1
- {yaicli-0.3.1.dist-info → yaicli-0.3.2.dist-info}/RECORD +7 -7
- {yaicli-0.3.1.dist-info → yaicli-0.3.2.dist-info}/WHEEL +0 -0
- {yaicli-0.3.1.dist-info → yaicli-0.3.2.dist-info}/entry_points.txt +0 -0
- {yaicli-0.3.1.dist-info → yaicli-0.3.2.dist-info}/licenses/LICENSE +0 -0
pyproject.toml
CHANGED
yaicli/cli.py
CHANGED
@@ -344,6 +344,7 @@ class CLI:
|
|
344
344
|
def get_system_prompt(self) -> str:
|
345
345
|
"""Get the system prompt based on current role and mode"""
|
346
346
|
# Use the role manager to get the system prompt
|
347
|
+
self.console.print(f"Using role: {self.role}")
|
347
348
|
return self.role_manager.get_system_prompt(self.role)
|
348
349
|
|
349
350
|
def _build_messages(self, user_input: str) -> List[dict]:
|
@@ -499,6 +500,7 @@ class CLI:
|
|
499
500
|
@self.bindings.add(Keys.ControlI) # TAB
|
500
501
|
def _(event: KeyPressEvent) -> None:
|
501
502
|
self.current_mode = EXEC_MODE if self.current_mode == CHAT_MODE else CHAT_MODE
|
503
|
+
self.role = DefaultRoleNames.SHELL if self.current_mode == EXEC_MODE else DefaultRoleNames.DEFAULT
|
502
504
|
|
503
505
|
def _run_once(self, input: str, shell: bool) -> None:
|
504
506
|
"""Run a single command (non-interactive)."""
|
@@ -1,8 +1,8 @@
|
|
1
|
-
pyproject.toml,sha256=
|
1
|
+
pyproject.toml,sha256=C7FTGTVlazP67RAED5c9JjzINHUfFe7xcu05LrZv1mk,1519
|
2
2
|
yaicli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
3
|
yaicli/api.py,sha256=9kRozzxBKduQsda3acnxzvOD9wRLL0cH182L4ddHY8E,13666
|
4
4
|
yaicli/chat_manager.py,sha256=I7BAMz91FLYT6x69wbomtAGLx0WsoTwS4Wo0MgP6P9I,10644
|
5
|
-
yaicli/cli.py,sha256=
|
5
|
+
yaicli/cli.py,sha256=z5t4XxKcl4MRGMTaASr0bc9PiidPpoSaBsgJd6d69-Y,22850
|
6
6
|
yaicli/config.py,sha256=xtzgXApM93zCqSUxmVSBdph0co_NKfEUU3hWtPe8qvM,6236
|
7
7
|
yaicli/console.py,sha256=291F4hGksJtxYpg_mehepCIJ-eB2MaDNIyv1JAMgJ1Y,1985
|
8
8
|
yaicli/const.py,sha256=iOQNG6M4EBmKgbwZdNqRsHrcQ7Od1nKOyLAqUhfMEBM,7020
|
@@ -13,8 +13,8 @@ yaicli/printer.py,sha256=nXpralD5qZJQga3OTdEPhj22g7UoF-4mJbZeOtWXojo,12430
|
|
13
13
|
yaicli/render.py,sha256=mB1OT9859_PTwI9f-KY802lPaeQXKRw6ls_5jN21jWc,511
|
14
14
|
yaicli/roles.py,sha256=bhXpLnGTPRZp3-K1Tt6ppTsuG2v9S0RAXikfMFhDs_U,9144
|
15
15
|
yaicli/utils.py,sha256=MLvb-C5n19AD9Z1nW4Z3Z43ZKNH8STxQmNDnL7mq26E,4490
|
16
|
-
yaicli-0.3.
|
17
|
-
yaicli-0.3.
|
18
|
-
yaicli-0.3.
|
19
|
-
yaicli-0.3.
|
20
|
-
yaicli-0.3.
|
16
|
+
yaicli-0.3.2.dist-info/METADATA,sha256=YHnAg8uWg41eBr1GwnMO4ch5S_sf1x2zdTnqlGQm-5g,45320
|
17
|
+
yaicli-0.3.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
18
|
+
yaicli-0.3.2.dist-info/entry_points.txt,sha256=iMhGm3btBaqrknQoF6WCg5sdx69ZyNSC73tRpCcbcLw,63
|
19
|
+
yaicli-0.3.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
20
|
+
yaicli-0.3.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|