toonise 0.1.0
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/CHANGELOG.md +30 -0
- package/LICENSE +21 -0
- package/README.md +102 -0
- package/bin/toonise +2 -0
- package/dist/index.js +1634 -0
- package/package.json +77 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## [0.1.0] - 2024-03-21
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- Initial release
|
|
9
|
+
- Modern TUI with purple accent theme
|
|
10
|
+
- Multi-agent support (build, explore agents)
|
|
11
|
+
- File operations (read, write, edit, patch)
|
|
12
|
+
- PDF, DOCX, XLSX file support
|
|
13
|
+
- Code search (grep, glob)
|
|
14
|
+
- Bash command execution
|
|
15
|
+
- Web fetch capability
|
|
16
|
+
- Context window tracking and compaction
|
|
17
|
+
- Real-time tool execution status
|
|
18
|
+
- Message queuing system
|
|
19
|
+
- Command history navigation
|
|
20
|
+
- Model switching
|
|
21
|
+
- Host configuration
|
|
22
|
+
- Session management
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
- Beautiful terminal interface with progress bars
|
|
26
|
+
- Sidebar with context, plans, tools, insights
|
|
27
|
+
- Token usage visualization
|
|
28
|
+
- File modification tracking
|
|
29
|
+
- Streaming AI responses
|
|
30
|
+
- Abort capability for long operations
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# Toonise
|
|
2
|
+
|
|
3
|
+
A high-performance CLI developer assistant with a modern terminal UI powered by local LLMs via Ollama.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **Modern TUI** - Beautiful terminal interface with syntax highlighting, progress indicators, and real-time updates
|
|
8
|
+
- **Multi-Agent Support** - Switch between specialized agents (build, explore, etc.)
|
|
9
|
+
- **File Operations** - Read, write, edit files with diff support
|
|
10
|
+
- **Code Search** - Grep and glob for finding code patterns
|
|
11
|
+
- **Shell Integration** - Execute bash commands safely
|
|
12
|
+
- **Web Tools** - Fetch URLs for documentation lookup
|
|
13
|
+
- **Context Management** - Automatic context window tracking and compaction
|
|
14
|
+
- **Tool Previews** - Real-time tool execution status in sidebar
|
|
15
|
+
|
|
16
|
+
## Prerequisites
|
|
17
|
+
|
|
18
|
+
- Node.js 18+
|
|
19
|
+
- [Ollama](https://ollama.ai) installed and running
|
|
20
|
+
|
|
21
|
+
## Installation
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm install -g toonise
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Usage
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
toonise
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Commands
|
|
34
|
+
|
|
35
|
+
| Command | Description |
|
|
36
|
+
|---------|-------------|
|
|
37
|
+
| `/agent [name]` | Switch agent (build, explore, etc.) |
|
|
38
|
+
| `/model [name]` | Switch model |
|
|
39
|
+
| `/host [url]` | Change Ollama host |
|
|
40
|
+
| `/compact` | Compact conversation history |
|
|
41
|
+
| `/clear` | Clear chat |
|
|
42
|
+
| `/new` | Start new session |
|
|
43
|
+
| `/abort` | Stop current AI processing |
|
|
44
|
+
| `/exit` | Exit application |
|
|
45
|
+
|
|
46
|
+
### Keyboard Shortcuts
|
|
47
|
+
|
|
48
|
+
- `Ctrl+B` - Toggle sidebar
|
|
49
|
+
- `Up/Down Arrow` - Command history
|
|
50
|
+
- `Escape` - Close dialogs
|
|
51
|
+
|
|
52
|
+
## Configuration
|
|
53
|
+
|
|
54
|
+
Toonise stores configuration in `~/.config/toonise/`:
|
|
55
|
+
|
|
56
|
+
- `config.json` - Settings (model, host, etc.)
|
|
57
|
+
- `history.json` - Conversation history
|
|
58
|
+
|
|
59
|
+
## Available Tools
|
|
60
|
+
|
|
61
|
+
The AI can use these tools to assist you:
|
|
62
|
+
|
|
63
|
+
| Tool | Description |
|
|
64
|
+
|------|-------------|
|
|
65
|
+
| `read` | Read file contents (text, PDF, DOCX, XLSX) |
|
|
66
|
+
| `write` | Create or overwrite files |
|
|
67
|
+
| `edit` | String replacement in files |
|
|
68
|
+
| `patch` | Apply unified diff patches |
|
|
69
|
+
| `grep` | Search file contents |
|
|
70
|
+
| `glob` | Find files by pattern |
|
|
71
|
+
| `bash` | Execute shell commands |
|
|
72
|
+
| `webfetch` | Fetch URL content |
|
|
73
|
+
|
|
74
|
+
## Development
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
# Clone the repository
|
|
78
|
+
git clone https://github.com/anomaly/toonise.git
|
|
79
|
+
cd toonise
|
|
80
|
+
|
|
81
|
+
# Install dependencies
|
|
82
|
+
npm install
|
|
83
|
+
|
|
84
|
+
# Run in development
|
|
85
|
+
npm run dev
|
|
86
|
+
|
|
87
|
+
# Build
|
|
88
|
+
npm run build
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## License
|
|
92
|
+
|
|
93
|
+
MIT
|
|
94
|
+
|
|
95
|
+
## Contributing
|
|
96
|
+
|
|
97
|
+
Contributions are welcome! Please read our contributing guidelines before submitting PRs.
|
|
98
|
+
|
|
99
|
+
## Support
|
|
100
|
+
|
|
101
|
+
- GitHub Issues: https://github.com/anomaly/toonise/issues
|
|
102
|
+
- Documentation: https://github.com/anomaly/toonise#readme
|
package/bin/toonise
ADDED