@aeye/cletus 0.3.0 → 0.3.1
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.
- package/README.md +46 -8
- package/dist/index.js +2429 -1489
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
> **Interactive CLI demo showcasing @aeye capabilities - an AI-powered assistant with file management, data operations, and autonomous task execution.**
|
|
4
4
|
|
|
5
|
-
Cletus is a terminal-based AI assistant built with the @aeye library that demonstrates the power of multi-provider AI integration, tool calling, and context management. It features a beautiful TUI (Terminal User Interface) powered by React/Ink and provides specialized AI agents for different domains like file operations, data management, image generation, and web searching.
|
|
6
|
-
|
|
7
5
|
[](https://www.gnu.org/licenses/gpl-3.0)
|
|
8
|
-
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @aeye/cletus
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
For the best experience, configure what models are used for each use case. Use openai/gpt-4o for chat, google/nano-banana for image generation and editing, anthropic/claude-sonnet-4 for file editing, etc! If you don't specify then a model will be dynamically chosen based on configured weights and what can handle the request.
|
|
9
12
|
|
|
10
13
|
## Features
|
|
11
14
|
|
|
@@ -96,15 +99,50 @@ Here are some examples of what you can do with Cletus:
|
|
|
96
99
|
- **Image Operations** - Generate, edit, analyze, and find images
|
|
97
100
|
- **Web Integration** - Search the web, scrape pages, make API calls
|
|
98
101
|
|
|
99
|
-
|
|
102
|
+
### 📝 Prompt File Support
|
|
100
103
|
|
|
101
|
-
|
|
104
|
+
Cletus supports three complementary ways to customize the AI's context and behavior:
|
|
102
105
|
|
|
103
|
-
|
|
104
|
-
|
|
106
|
+
- **User Prompts** - Configure via `config.user.globalPrompt` for persistent instructions across all chats
|
|
107
|
+
- **Chat Prompts** - Set per-chat custom prompts when creating or updating a chat
|
|
108
|
+
- **Prompt Files** - Automatically load contextual instructions from files in your current working directory
|
|
109
|
+
|
|
110
|
+
These prompt types work together: user prompts set global preferences, chat prompts provide conversation-specific context, and prompt files add project-specific instructions from your working directory.
|
|
111
|
+
|
|
112
|
+
#### Prompt File Loading
|
|
113
|
+
|
|
114
|
+
When starting a chat, Cletus searches for prompt files in your current working directory (case-insensitive):
|
|
115
|
+
|
|
116
|
+
1. **Default Files Checked** (in order):
|
|
117
|
+
- `cletus.md`
|
|
118
|
+
- `agents.md`
|
|
119
|
+
- `claude.md`
|
|
120
|
+
|
|
121
|
+
2. **Custom Files** - Configure via `config.user.promptFiles` to replace the default list with your own files
|
|
122
|
+
|
|
123
|
+
3. **Loading Behavior**:
|
|
124
|
+
- Files are searched in the order specified
|
|
125
|
+
- Only the **first file found** is loaded (not all matching files)
|
|
126
|
+
- Content is wrapped in `<prompt-file name="filename">` tags
|
|
127
|
+
- The content is incorporated into the system prompt for every AI request
|
|
128
|
+
|
|
129
|
+
**Example Usage:**
|
|
130
|
+
|
|
131
|
+
Create a `cletus.md` file in your project directory:
|
|
132
|
+
|
|
133
|
+
```markdown
|
|
134
|
+
# Project Context
|
|
135
|
+
|
|
136
|
+
This is a TypeScript project using React and Node.js.
|
|
137
|
+
Follow these coding standards:
|
|
138
|
+
- Use functional components
|
|
139
|
+
- Prefer async/await over promises
|
|
140
|
+
- Use descriptive variable names
|
|
105
141
|
```
|
|
106
142
|
|
|
107
|
-
|
|
143
|
+
When you run `cletus` from that directory, these instructions will automatically be included in the AI's context.
|
|
144
|
+
|
|
145
|
+
## Building from Source
|
|
108
146
|
|
|
109
147
|
```bash
|
|
110
148
|
# Clone the repository
|