usemint-cli 0.2.0-beta.1 → 0.2.0-beta.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/README.md +66 -54
- package/dist/cli/index.js +562 -118
- package/dist/cli/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,81 +9,103 @@
|
|
|
9
9
|
|
|
10
10
|
# Mint CLI
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
No API keys. No accounts. No config files.
|
|
12
|
+
AI coding assistant that uses a smart orchestrator + cheap coding models. One command edits your codebase — under a penny per task.
|
|
15
13
|
|
|
16
14
|
```bash
|
|
17
|
-
|
|
15
|
+
npm i -g usemint-cli
|
|
16
|
+
mint init
|
|
17
|
+
mint "add a pricing section with 3 tiers before the footer"
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
+
## How It Works
|
|
21
|
+
|
|
22
|
+
One smart model (Grok 4.1 Fast) orchestrates. It searches your files, reads them, understands the problem, then dispatches to a cheap coding model (DeepSeek V3) for the actual edit. You approve before anything touches disk.
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
You: "add a pricing section with 3 tiers"
|
|
26
|
+
|
|
27
|
+
● searching files...
|
|
28
|
+
✓ files found
|
|
29
|
+
● reading landing/index.html
|
|
30
|
+
✓ file read
|
|
31
|
+
● searching in landing/index.html
|
|
32
|
+
✓ pattern found
|
|
33
|
+
● editing landing/index.html
|
|
34
|
+
✓ file edited
|
|
35
|
+
|
|
36
|
+
Added pricing section with Free, Pro ($29/mo), and Enterprise tiers.
|
|
37
|
+
Cost: $0.003 · 8s
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
**Orchestrator** (Grok 4.1 Fast, $0.20/M) — thinks, plans, decides what to do
|
|
41
|
+
**Code writer** (DeepSeek V3, $0.28/M) — writes code when needed
|
|
42
|
+
**Everything else** — pure code, $0 (file search, read, edit, grep, shell commands)
|
|
43
|
+
|
|
20
44
|
## Install
|
|
21
45
|
|
|
22
46
|
```bash
|
|
23
47
|
npm install -g usemint-cli
|
|
24
48
|
```
|
|
25
49
|
|
|
26
|
-
Or run directly
|
|
50
|
+
Or run directly:
|
|
27
51
|
|
|
28
52
|
```bash
|
|
29
|
-
npx usemint-cli
|
|
53
|
+
npx usemint-cli "fix the auth bug"
|
|
30
54
|
```
|
|
31
55
|
|
|
32
56
|
## Usage
|
|
33
57
|
|
|
34
58
|
```bash
|
|
35
|
-
mint
|
|
36
|
-
mint
|
|
37
|
-
mint
|
|
38
|
-
mint
|
|
59
|
+
mint init # scan project, build search index
|
|
60
|
+
mint # open interactive TUI
|
|
61
|
+
mint "fix the auth bug" # one-shot — edit and exit
|
|
62
|
+
mint "what does main.ts do?" # ask questions about your code
|
|
39
63
|
```
|
|
40
64
|
|
|
41
|
-
|
|
65
|
+
### In the TUI
|
|
42
66
|
|
|
43
|
-
|
|
67
|
+
Type naturally. The orchestrator figures out what to do:
|
|
44
68
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
69
|
+
- **Questions** — "what does this function do?" "can you see the landing page?"
|
|
70
|
+
- **Edits** — "change the hero title to Ship Code Faster"
|
|
71
|
+
- **Features** — "add a contact form with name and email fields"
|
|
72
|
+
- **Fixes** — "fix the mobile menu toggle"
|
|
73
|
+
- **Multi-turn** — "change the color to blue" → "also make the footer match"
|
|
48
74
|
|
|
49
|
-
|
|
75
|
+
The orchestrator remembers what files it read and what it changed. Follow-up prompts work naturally.
|
|
50
76
|
|
|
51
|
-
|
|
52
|
-
|------------|----------|-------|---------------------|
|
|
53
|
-
| Simple | explain, Q&A | Groq Llama 3.1 8B | $0.05 / $0.08 |
|
|
54
|
-
| Medium | write, fix, refactor | DeepSeek V3 | $0.27 / $1.10 |
|
|
55
|
-
| Complex | architect, multi-file | Grok 3 Mini | $0.60 / $4.00 |
|
|
77
|
+
## What It Costs
|
|
56
78
|
|
|
57
|
-
|
|
79
|
+
| Task type | Time | Cost | Opus equivalent |
|
|
80
|
+
|-----------|------|------|-----------------|
|
|
81
|
+
| Simple edit (change text) | 6s | $0.002 | $0.12 |
|
|
82
|
+
| Color scheme change | 13s | $0.005 | $0.23 |
|
|
83
|
+
| Add new section | 9s | $0.003 | $0.18 |
|
|
84
|
+
| Multi-file feature | 15s | $0.008 | $0.40 |
|
|
85
|
+
|
|
86
|
+
98% cheaper than running Claude Opus for every task.
|
|
58
87
|
|
|
59
88
|
## Supported Providers
|
|
60
89
|
|
|
61
|
-
Mint
|
|
90
|
+
Mint routes through a gateway by default (no keys needed). You can also bring your own:
|
|
62
91
|
|
|
63
|
-
| Provider |
|
|
64
|
-
|
|
65
|
-
| Gateway (default) |
|
|
66
|
-
|
|
|
67
|
-
|
|
|
68
|
-
|
|
|
69
|
-
|
|
|
70
|
-
|
|
|
71
|
-
|
|
|
72
|
-
|
|
|
92
|
+
| Provider | Config command |
|
|
93
|
+
|----------|---------------|
|
|
94
|
+
| Gateway (default) | `mint login` |
|
|
95
|
+
| DeepSeek | `mint config:set providers.deepseek <key>` |
|
|
96
|
+
| Grok (xAI) | `mint config:set providers.grok <key>` |
|
|
97
|
+
| Mistral | `mint config:set providers.mistral <key>` |
|
|
98
|
+
| Groq | `mint config:set providers.groq <key>` |
|
|
99
|
+
| Gemini | `mint config:set providers.gemini <key>` |
|
|
100
|
+
| Anthropic | `mint config:set providers.anthropic <key>` |
|
|
101
|
+
| Kimi (Moonshot) | `mint config:set providers.kimi <key>` |
|
|
73
102
|
|
|
74
103
|
## TUI Features
|
|
75
104
|
|
|
76
|
-
- **Vim keybindings** — `i` for INSERT, `Esc` for NORMAL
|
|
77
|
-
- **Status bar** — current model,
|
|
78
|
-
- **
|
|
79
|
-
- **
|
|
80
|
-
|
|
81
|
-
## Security
|
|
82
|
-
|
|
83
|
-
- **No keys stored in code** — all credentials are read from environment variables or local config at runtime
|
|
84
|
-
- **Gateway mode** requires no API keys on your machine — keys live server-side
|
|
85
|
-
- **Local config** is stored in your OS config directory (via [conf](https://github.com/sindresorhus/conf)) and never committed to git
|
|
86
|
-
- `.env`, `.mint/`, and `.claude/` are gitignored by default
|
|
105
|
+
- **Vim keybindings** — `i` for INSERT, `Esc` for NORMAL
|
|
106
|
+
- **Status bar** — current model, session cost, monthly spend
|
|
107
|
+
- **Step indicators** — see what the orchestrator is doing in real-time
|
|
108
|
+
- **Approval gate** — review changes before they're applied
|
|
87
109
|
|
|
88
110
|
## Requirements
|
|
89
111
|
|
|
@@ -100,16 +122,6 @@ npm run build
|
|
|
100
122
|
node dist/cli/index.js
|
|
101
123
|
```
|
|
102
124
|
|
|
103
|
-
## Contributing
|
|
104
|
-
|
|
105
|
-
1. Fork the repo
|
|
106
|
-
2. Create your feature branch (`git checkout -b feat/my-feature`)
|
|
107
|
-
3. Commit your changes
|
|
108
|
-
4. Push to the branch (`git push origin feat/my-feature`)
|
|
109
|
-
5. Open a Pull Request
|
|
110
|
-
|
|
111
|
-
Please open an issue first for major changes so we can discuss the approach.
|
|
112
|
-
|
|
113
125
|
## License
|
|
114
126
|
|
|
115
127
|
[MIT](LICENSE)
|