Skip to content

Commit 07156be

Browse files
authored
Prepare for release v0.3.1 (#286)
1 parent 1963952 commit 07156be

File tree

8 files changed

+37
-23
lines changed

8 files changed

+37
-23
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ SYSTEMD_USER_UNITS := ~/.config/systemd/user
3333
XDG_CONFIG_DIRS := $(subst /,\/,$(DATA_DEVELOPMENT_PATH)/config)
3434

3535
PKGNAME := command-line-assistant
36-
VERSION := 0.3.0
36+
VERSION := 0.3.1
3737

3838
default: help
3939

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"""Module to track constants for the project."""
22

33
#: Define the version for the program
4-
VERSION = "0.3.0"
4+
VERSION = "0.3.1"

data/release/man/c.1

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
2727
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
2828
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
2929
..
30-
.TH "C" "1" "Mar 13, 2025" "0.3.0" "Command Line Assistant"
30+
.TH "C" "1" "Mar 18, 2025" "0.3.1" "Command Line Assistant"
3131
.SH NAME
3232
c \- Command Line Assistant Client
3333
.SH SYNOPSIS
@@ -71,7 +71,7 @@ c chat [\-h] [\-a [ATTACHMENT]] [\-i] [\-w [WITH_OUTPUT]] [\-r] [\-l] [\-d [DELE
7171
.SS c chat Question Options
7272
.INDENT 0.0
7373
.IP \(bu 2
74-
\fI\%query_string\fP \- The question that will be sent to the LLM (default: \fBNone\fP)
74+
\fI\%query_string\fP \- The question that will be sent to the LLM (default: \fB\fP)
7575
.IP \(bu 2
7676
\fI\%\-a\fP \fBATTACHMENT\fP, \fI\%\-\-attachment\fP \fBATTACHMENT\fP \- File attachment to be read and sent alongside the query (default: \fBNone\fP)
7777
.IP \(bu 2
@@ -170,13 +170,13 @@ c shell [\-h] [\-\-enable\-capture] [\-\-enable\-interactive] [\-\-disable\-inte
170170
.SS c shell Interactive Mode Options
171171
.INDENT 0.0
172172
.IP \(bu 2
173-
\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.
173+
\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.
174174
.IP \(bu 2
175175
\fI\%\-\-disable\-interactive\fP \- Disable the shell integration for interactive mode on the system.
176176
.UNINDENT
177177
.SH DESCRIPTION
178178
.sp
179-
The Command Line Assistant powered by RHEL Lightspeed is an optional generative
179+
The command line assistant powered by RHEL Lightspeed is an optional generative
180180
AI assistant available within the RHEL command line interface. The Command Line
181181
Assistant can help with several tasks such as:
182182
.INDENT 0.0
@@ -191,7 +191,7 @@ Assistant can help with several tasks such as:
191191
.UNINDENT
192192
.UNINDENT
193193
.sp
194-
The Command Line Assistant provides a natural language interface, and can
194+
The command line assistant provides a natural language interface, and can
195195
incorporate information from resources such as the RHEL documentation.
196196
.SH EXAMPLES
197197
.INDENT 0.0
@@ -345,7 +345,7 @@ echo \(dqhow do I solve this?\(dq | c \-a log_with_error.log \(dqplease?\(dq
345345
\fBHistory management\fP
346346
.INDENT 2.0
347347
.INDENT 3.5
348-
With Command Line Assistant, you can also check your conversation history. For that, use the following command to retrieve all user
348+
With command line assistant, you can also check your conversation history. For that, use the following command to retrieve all user
349349
history:
350350
.INDENT 0.0
351351
.INDENT 3.5
@@ -395,7 +395,7 @@ $ c history \-\-clear
395395
\fBShell integrations\fP
396396
.INDENT 2.0
397397
.INDENT 3.5
398-
With Command Line Assistant, you can also enable shell integrations to help
398+
With command line assistant, you can also enable shell integrations to help
399399
in your experience:
400400
.INDENT 0.0
401401
.INDENT 3.5
@@ -483,7 +483,7 @@ State file that captures the terminal screen and store it as json.
483483
.SH REFERENCE
484484
.INDENT 0.0
485485
.IP 1. 3
486-
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'>
486+
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'>
487487
.UNINDENT
488488
.SH BUGS
489489
.sp

data/release/man/clad.8

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,23 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
2727
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
2828
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
2929
..
30-
.TH "CLAD" "8" "Mar 13, 2025" "0.3.0" "Command Line Assistant"
30+
.TH "CLAD" "8" "Mar 18, 2025" "0.3.1" "Command Line Assistant"
3131
.SH NAME
3232
clad \- Command Line Assistant Daemon
3333
.SH SYNOPSIS
3434
.sp
35-
In order to run Command Line Assistant Daemon (clad), one need to first enable
36-
the systemd service with the following:
35+
The command line assistant daemon (clad), is a dbus activated daemon, meaning
36+
that, any interaction with it will activate the service when it receive a
37+
message in the expected channels, like this:
3738
.INDENT 0.0
3839
.INDENT 3.5
3940
.sp
4041
.EX
41-
$ systemctl enable clad
42+
$ c \(dqwhat is selinux?\(dq
4243
.EE
4344
.UNINDENT
4445
.UNINDENT
4546
.sp
46-
All queries submitted through \fBc\fP will automatically activate the service.
47-
.sp
4847
To check status and logs, run the following:
4948
.INDENT 0.0
5049
.INDENT 3.5
@@ -56,9 +55,9 @@ $ systemctl status clad
5655
.UNINDENT
5756
.SH DESCRIPTION
5857
.sp
59-
Command Line Assistant Daemon (clad) is the core of the Command Line Assistant
60-
tooling. It manages the communication with WatsonX API through an external
61-
backend, user history management and much more.
58+
Command line assistant daemon (clad) is the core of the command line assistant
59+
tooling. It manages the communication with Red Hat RHEL Lightspeed service,
60+
user history management and much more.
6261
.SH EXAMPLES
6362
.INDENT 0.0
6463
.IP \(bu 2

data/release/selinux/clad.te

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
policy_module(clad, 0.3.0)
1+
policy_module(clad, 0.3.1)
22

33
########################################
44
#

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
project = "Command Line Assistant"
1313
copyright = "2025, RHEL Lightspeed Team"
1414
author = "RHEL Lightspeed Team"
15-
release = version = "0.3.0"
15+
release = version = "0.3.1"
1616

1717
# Add the project root to Python path
1818
sys.path.insert(0, os.path.abspath("../.."))

packaging/command-line-assistant.spec

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
%define modulename %{daemon_binary_name}
1111

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

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

172172
%changelog
173+
* Tue Mar 18 2025 Rodolfo Olivieri <rolivier@redhat.com> 0.3.1
174+
- Add exception handling for RuntimeError
175+
- Disallow empty query arguments for query_string and stdin
176+
- Simpify cert loading
177+
- Fix dbus permissions for clad
178+
- Prevent one character input from query_string and stdin
179+
- Improve CLAD systemd unit security
180+
- Add explanation for --description in chat command
181+
- Add a --from-chat switch to history to filter out conversation
182+
- Specify pymysql in the mysql connection string
183+
- Fix incorrect key on database schema
184+
- Add cla binary and a symlink for c
185+
- Fix inconsistency in reading the terminal output
186+
- Fix typos in legal and feedback message
187+
173188
* Mon Mar 03 2025 Rodolfo Olivieri <rolivier@redhat.com> 0.3.0
174189
- Update markdown text from "Suggestion" to "Snippet"
175190
- Add small feedback command

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "command-line-assistant"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
description = "A simple wrapper to interact with RAG"
55
authors = [
66
{ name = "RHEL Lightspeed Team", email = "rhel-sst-lightspeed@redhat.com" },

0 commit comments

Comments
 (0)