@aiiware/aii 0.1.2
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/LICENSE +33 -0
- package/README.md +146 -0
- package/bin/aii +767 -0
- package/package.json +71 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
Copyright (c) 2025 AiiWare.com. All Rights Reserved.
|
|
2
|
+
|
|
3
|
+
DISTRIBUTION LICENSE
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software in its distributed form (the "Software"), to use, copy, and
|
|
7
|
+
distribute the Software for personal or commercial purposes, subject to the
|
|
8
|
+
following conditions:
|
|
9
|
+
|
|
10
|
+
1. The above copyright notice and this permission notice shall be included in
|
|
11
|
+
all copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
2. The source code of this Software is proprietary and confidential.
|
|
14
|
+
Unauthorized copying, modification, reverse engineering, decompilation, or
|
|
15
|
+
distribution of the source code is strictly prohibited without prior written
|
|
16
|
+
permission from AiiWare.com.
|
|
17
|
+
|
|
18
|
+
3. This license grants rights to use the distributed package only. The Software
|
|
19
|
+
is provided as-is in bundled/minified form. Users may not create derivative
|
|
20
|
+
works or modified versions.
|
|
21
|
+
|
|
22
|
+
4. The Software may be redistributed in its complete, unmodified, and original
|
|
23
|
+
packaged form as distributed via npm.
|
|
24
|
+
|
|
25
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
26
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
27
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
28
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
29
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
30
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
31
|
+
SOFTWARE.
|
|
32
|
+
|
|
33
|
+
For licensing inquiries, please contact: support@aiiware.com
|
package/README.md
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
# @aiiware/aii
|
|
2
|
+
|
|
3
|
+
**AI-powered CLI assistant** that brings intelligent AI capabilities directly to your terminal.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @aiiware/aii
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Requirements
|
|
12
|
+
|
|
13
|
+
- Node.js 18+
|
|
14
|
+
- Aii Server running (default: `localhost:26169`)
|
|
15
|
+
|
|
16
|
+
## Quick Start
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
# First run - auto-initializes configuration
|
|
20
|
+
aii "explain what git rebase does"
|
|
21
|
+
|
|
22
|
+
# Pipe content for processing
|
|
23
|
+
cat error.log | aii "summarize the errors"
|
|
24
|
+
|
|
25
|
+
# Interactive chat mode
|
|
26
|
+
aii chat
|
|
27
|
+
|
|
28
|
+
# Clean output (just the result)
|
|
29
|
+
aii "translate hello to spanish" --clean
|
|
30
|
+
|
|
31
|
+
# Use a specific model
|
|
32
|
+
aii "complex analysis" --model gpt-4o
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Commands
|
|
36
|
+
|
|
37
|
+
### AI Query (default)
|
|
38
|
+
```bash
|
|
39
|
+
aii "your question"
|
|
40
|
+
aii "your question" --clean # Just the result
|
|
41
|
+
aii "your question" --standard # Result + metrics (default)
|
|
42
|
+
aii "your question" --thinking # Full reasoning
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Interactive Chat
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
aii chat # Start interactive chat session
|
|
49
|
+
|
|
50
|
+
# In chat mode:
|
|
51
|
+
/help # Show available commands
|
|
52
|
+
/clear # Clear conversation and start fresh
|
|
53
|
+
/history # Show conversation history
|
|
54
|
+
/stats # Show session statistics
|
|
55
|
+
/exit # Exit chat mode
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Prompts (Templates)
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
aii prompt list # List available prompts
|
|
62
|
+
aii prompt show <name> # Show prompt details
|
|
63
|
+
aii prompt use <name> [--var value] # Use a prompt template
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Configuration
|
|
67
|
+
```bash
|
|
68
|
+
aii config show # Show current configuration
|
|
69
|
+
aii config validate # Validate configuration
|
|
70
|
+
aii config set <key> <value> # Set a configuration value
|
|
71
|
+
aii config model <model> # Change LLM model
|
|
72
|
+
aii config provider <provider> # Change LLM provider
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### System
|
|
76
|
+
```bash
|
|
77
|
+
aii doctor # System health check
|
|
78
|
+
aii --help # Show help
|
|
79
|
+
aii --version # Show version
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Options
|
|
83
|
+
|
|
84
|
+
| Option | Description |
|
|
85
|
+
|--------|-------------|
|
|
86
|
+
| `--clean` | Clean output mode (just the result) |
|
|
87
|
+
| `--standard` | Standard output mode (result + metrics) |
|
|
88
|
+
| `--thinking` | Thinking mode (full reasoning) |
|
|
89
|
+
| `--model <model>` | Override LLM model |
|
|
90
|
+
| `--host <host:port>` | API server host |
|
|
91
|
+
| `-y, --yes` | Auto-confirm shell commands |
|
|
92
|
+
| `--offline` | Offline mode (no web/MCP) |
|
|
93
|
+
| `--no-colors` | Disable colored output |
|
|
94
|
+
| `--no-emojis` | Disable emoji icons |
|
|
95
|
+
| `--no-streaming` | Disable streaming output |
|
|
96
|
+
|
|
97
|
+
## Configuration
|
|
98
|
+
|
|
99
|
+
Configuration is stored in `~/.aii/`:
|
|
100
|
+
- `config.yaml` - Main configuration
|
|
101
|
+
- `secrets.yaml` - API keys
|
|
102
|
+
|
|
103
|
+
### Example config.yaml
|
|
104
|
+
|
|
105
|
+
```yaml
|
|
106
|
+
llm:
|
|
107
|
+
provider: deepseek
|
|
108
|
+
model: deepseek-chat
|
|
109
|
+
temperature: 0.7
|
|
110
|
+
|
|
111
|
+
api:
|
|
112
|
+
url: http://localhost:26169
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### API Keys
|
|
116
|
+
|
|
117
|
+
Store your LLM provider API keys in `~/.aii/secrets.yaml`:
|
|
118
|
+
|
|
119
|
+
```yaml
|
|
120
|
+
anthropic_api_key: sk-ant-...
|
|
121
|
+
openai_api_key: sk-...
|
|
122
|
+
deepseek_api_key: sk-...
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
Or set via environment variables:
|
|
126
|
+
- `ANTHROPIC_API_KEY`
|
|
127
|
+
- `OPENAI_API_KEY`
|
|
128
|
+
- `DEEPSEEK_API_KEY`
|
|
129
|
+
|
|
130
|
+
## Features
|
|
131
|
+
|
|
132
|
+
- **Real-time Streaming**: Token-by-token response display
|
|
133
|
+
- **Interactive Chat**: Multi-turn conversations with context
|
|
134
|
+
- **Prompt Templates**: Pre-built templates for common tasks
|
|
135
|
+
- **Multiple LLM Providers**: Claude, GPT, Gemini, DeepSeek, and more
|
|
136
|
+
- **Pipe Support**: Process piped content with AI
|
|
137
|
+
- **Output Modes**: Clean, standard, or thinking mode
|
|
138
|
+
|
|
139
|
+
## Links
|
|
140
|
+
|
|
141
|
+
- **Website**: [aiiware.com](https://aiiware.com)
|
|
142
|
+
- **Issues & Feedback**: [GitHub](https://github.com/aiiware/aii-cli-ts/issues)
|
|
143
|
+
|
|
144
|
+
## License
|
|
145
|
+
|
|
146
|
+
Proprietary - Copyright 2025-present AiiWare.com. All Rights Reserved.
|