Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ SYSTEMD_USER_UNITS := ~/.config/systemd/user
XDG_CONFIG_DIRS := $(subst /,\/,$(DATA_DEVELOPMENT_PATH)/config)

PKGNAME := command-line-assistant
VERSION := 0.3.0
VERSION := 0.3.1

default: help

Expand Down
2 changes: 1 addition & 1 deletion command_line_assistant/constants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Module to track constants for the project."""

#: Define the version for the program
VERSION = "0.3.0"
VERSION = "0.3.1"
16 changes: 8 additions & 8 deletions data/release/man/c.1
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "C" "1" "Mar 13, 2025" "0.3.0" "Command Line Assistant"
.TH "C" "1" "Mar 18, 2025" "0.3.1" "Command Line Assistant"
.SH NAME
c \- Command Line Assistant Client
.SH SYNOPSIS
Expand Down Expand Up @@ -71,7 +71,7 @@ c chat [\-h] [\-a [ATTACHMENT]] [\-i] [\-w [WITH_OUTPUT]] [\-r] [\-l] [\-d [DELE
.SS c chat Question Options
.INDENT 0.0
.IP \(bu 2
\fI\%query_string\fP \- The question that will be sent to the LLM (default: \fBNone\fP)
\fI\%query_string\fP \- The question that will be sent to the LLM (default: \fB\fP)
.IP \(bu 2
\fI\%\-a\fP \fBATTACHMENT\fP, \fI\%\-\-attachment\fP \fBATTACHMENT\fP \- File attachment to be read and sent alongside the query (default: \fBNone\fP)
.IP \(bu 2
Expand Down Expand Up @@ -170,13 +170,13 @@ c shell [\-h] [\-\-enable\-capture] [\-\-enable\-interactive] [\-\-disable\-inte
.SS c shell Interactive Mode Options
.INDENT 0.0
.IP \(bu 2
\fI\%\-\-enable\-interactive\fP \- Enable the shell integration for interactive mode on the system. Currently, only BASH is supported. After the interactive was sourced, you can hit Ctrl + J in your terminal to enable interactive mode.
\fI\%\-\-enable\-interactive\fP \- Enable the shell integration for interactive mode on the system. Currently, only BASH is supported. After the interactive was sourced, you can hit Ctrl + G in your terminal to enable interactive mode.
.IP \(bu 2
\fI\%\-\-disable\-interactive\fP \- Disable the shell integration for interactive mode on the system.
.UNINDENT
.SH DESCRIPTION
.sp
The Command Line Assistant powered by RHEL Lightspeed is an optional generative
The command line assistant powered by RHEL Lightspeed is an optional generative
AI assistant available within the RHEL command line interface. The Command Line
Assistant can help with several tasks such as:
.INDENT 0.0
Expand All @@ -191,7 +191,7 @@ Assistant can help with several tasks such as:
.UNINDENT
.UNINDENT
.sp
The Command Line Assistant provides a natural language interface, and can
The command line assistant provides a natural language interface, and can
incorporate information from resources such as the RHEL documentation.
.SH EXAMPLES
.INDENT 0.0
Expand Down Expand Up @@ -345,7 +345,7 @@ echo \(dqhow do I solve this?\(dq | c \-a log_with_error.log \(dqplease?\(dq
\fBHistory management\fP
.INDENT 2.0
.INDENT 3.5
With Command Line Assistant, you can also check your conversation history. For that, use the following command to retrieve all user
With command line assistant, you can also check your conversation history. For that, use the following command to retrieve all user
history:
.INDENT 0.0
.INDENT 3.5
Expand Down Expand Up @@ -395,7 +395,7 @@ $ c history \-\-clear
\fBShell integrations\fP
.INDENT 2.0
.INDENT 3.5
With Command Line Assistant, you can also enable shell integrations to help
With command line assistant, you can also enable shell integrations to help
in your experience:
.INDENT 0.0
.INDENT 3.5
Expand Down Expand Up @@ -483,7 +483,7 @@ State file that captures the terminal screen and store it as json.
.SH REFERENCE
.INDENT 0.0
.IP 1. 3
Command Line Assistant source code: <\X'tty: link https://github.com/rhel-lightspeed/command-line-assistant'\fI\%https://github.com/rhel\-lightspeed/command\-line\-assistant\fP\X'tty: link'>
Command line assistant source code: <\X'tty: link https://github.com/rhel-lightspeed/command-line-assistant'\fI\%https://github.com/rhel\-lightspeed/command\-line\-assistant\fP\X'tty: link'>
.UNINDENT
.SH BUGS
.sp
Expand Down
17 changes: 8 additions & 9 deletions data/release/man/clad.8
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,23 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "CLAD" "8" "Mar 13, 2025" "0.3.0" "Command Line Assistant"
.TH "CLAD" "8" "Mar 18, 2025" "0.3.1" "Command Line Assistant"
.SH NAME
clad \- Command Line Assistant Daemon
.SH SYNOPSIS
.sp
In order to run Command Line Assistant Daemon (clad), one need to first enable
the systemd service with the following:
The command line assistant daemon (clad), is a dbus activated daemon, meaning
that, any interaction with it will activate the service when it receive a
message in the expected channels, like this:
.INDENT 0.0
.INDENT 3.5
.sp
.EX
$ systemctl enable clad
$ c \(dqwhat is selinux?\(dq
.EE
.UNINDENT
.UNINDENT
.sp
All queries submitted through \fBc\fP will automatically activate the service.
.sp
To check status and logs, run the following:
.INDENT 0.0
.INDENT 3.5
Expand All @@ -56,9 +55,9 @@ $ systemctl status clad
.UNINDENT
.SH DESCRIPTION
.sp
Command Line Assistant Daemon (clad) is the core of the Command Line Assistant
tooling. It manages the communication with WatsonX API through an external
backend, user history management and much more.
Command line assistant daemon (clad) is the core of the command line assistant
tooling. It manages the communication with Red Hat RHEL Lightspeed service,
user history management and much more.
.SH EXAMPLES
.INDENT 0.0
.IP \(bu 2
Expand Down
2 changes: 1 addition & 1 deletion data/release/selinux/clad.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(clad, 0.3.0)
policy_module(clad, 0.3.1)

########################################
#
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
project = "Command Line Assistant"
copyright = "2025, RHEL Lightspeed Team"
author = "RHEL Lightspeed Team"
release = version = "0.3.0"
release = version = "0.3.1"

# Add the project root to Python path
sys.path.insert(0, os.path.abspath("../.."))
Expand Down
17 changes: 16 additions & 1 deletion packaging/command-line-assistant.spec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
%define modulename %{daemon_binary_name}

Name: command-line-assistant
Version: 0.3.0
Version: 0.3.1
Release: 1%{?dist}
Summary: A simple wrapper to interact with RAG

Expand Down Expand Up @@ -170,6 +170,21 @@ fi
%ghost %verify(not md5 size mode mtime) %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename}

%changelog
* Tue Mar 18 2025 Rodolfo Olivieri <rolivier@redhat.com> 0.3.1
- Add exception handling for RuntimeError
- Disallow empty query arguments for query_string and stdin
- Simpify cert loading
- Fix dbus permissions for clad
- Prevent one character input from query_string and stdin
- Improve CLAD systemd unit security
- Add explanation for --description in chat command
- Add a --from-chat switch to history to filter out conversation
- Specify pymysql in the mysql connection string
- Fix incorrect key on database schema
- Add cla binary and a symlink for c
- Fix inconsistency in reading the terminal output
- Fix typos in legal and feedback message

* Mon Mar 03 2025 Rodolfo Olivieri <rolivier@redhat.com> 0.3.0
- Update markdown text from "Suggestion" to "Snippet"
- Add small feedback command
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "command-line-assistant"
version = "0.3.0"
version = "0.3.1"
description = "A simple wrapper to interact with RAG"
authors = [
{ name = "RHEL Lightspeed Team", email = "rhel-sst-lightspeed@redhat.com" },
Expand Down