dimcode 0.0.5-beta.20 → 0.0.5-beta.22
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 +31 -19
- package/dist/cli.mjs +670 -448
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
# Dimcode CLI
|
|
2
2
|
|
|
3
|
-
> A powerful AI agent CLI
|
|
3
|
+
> A powerful AI agent CLI with an interactive terminal UI (TUI)
|
|
4
4
|
|
|
5
5
|
[](https://badge.fury.io/js/dimcode)
|
|
6
|
-
[](https://opensource.org/licenses/MIT)
|
|
7
6
|
|
|
8
7
|
Dimcode is a command-line interface for AI-powered coding assistance, featuring:
|
|
9
8
|
|
|
@@ -69,22 +68,31 @@ Press `Ctrl+P` to open the command palette, which provides quick access to:
|
|
|
69
68
|
|
|
70
69
|
Type slash commands directly in the input field:
|
|
71
70
|
|
|
72
|
-
| Command
|
|
73
|
-
|
|
74
|
-
| `/settings`
|
|
75
|
-
| `/
|
|
76
|
-
| `/
|
|
77
|
-
| `/
|
|
78
|
-
| `/
|
|
71
|
+
| Command | Description |
|
|
72
|
+
| ----------------- | --------------------------------------- |
|
|
73
|
+
| `/settings` | Open settings dialog (custom providers) |
|
|
74
|
+
| `/config` | Alternative for `/settings` |
|
|
75
|
+
| `/approvals` | Manage tool approvals (auto/all) |
|
|
76
|
+
| `/approval` | Alternative for `/approvals` |
|
|
77
|
+
| `/connect` | Connect a provider |
|
|
78
|
+
| `/models` | Select a model |
|
|
79
|
+
| `/sessions` | List all sessions |
|
|
80
|
+
| `/new` | Create a new session |
|
|
81
|
+
| `/redo` | Redo last interaction |
|
|
82
|
+
| `/rename <title>` | Rename current session |
|
|
83
|
+
| `/timeline` | Jump to a user message |
|
|
84
|
+
| `/tl` | Alternative for `/timeline` |
|
|
85
|
+
| `/review` | Review code changes |
|
|
86
|
+
| `/debug` | Open debug dialog (node mode only) |
|
|
79
87
|
|
|
80
88
|
### Keyboard Shortcuts
|
|
81
89
|
|
|
82
|
-
| Shortcut
|
|
83
|
-
|
|
84
|
-
| `Ctrl+P`
|
|
85
|
-
| `Ctrl+C`
|
|
86
|
-
| `Enter`
|
|
87
|
-
| `Shift+Enter` | New line in input
|
|
90
|
+
| Shortcut | Action |
|
|
91
|
+
| ------------- | -------------------- |
|
|
92
|
+
| `Ctrl+P` | Open command palette |
|
|
93
|
+
| `Ctrl+C` | Exit the application |
|
|
94
|
+
| `Enter` | Send message |
|
|
95
|
+
| `Shift+Enter` | New line in input |
|
|
88
96
|
|
|
89
97
|
## ⚙️ Configuration
|
|
90
98
|
|
|
@@ -96,7 +104,7 @@ Create a `.env` file in your working directory or set environment variables:
|
|
|
96
104
|
# OpenAI Configuration
|
|
97
105
|
OPENAI_API_KEY=your_api_key_here
|
|
98
106
|
OPENAI_BASE_URL=https://api.openai.com/v1 # Optional
|
|
99
|
-
|
|
107
|
+
DIMCODE_MODEL=deepseek-v3.1 # Default model
|
|
100
108
|
|
|
101
109
|
# Serper API for web search (optional)
|
|
102
110
|
SERPER_API_KEY=your_serper_key_here
|
|
@@ -110,33 +118,38 @@ On first launch, Dimcode will guide you through:
|
|
|
110
118
|
2. **Model Selection** - Choose your preferred AI model
|
|
111
119
|
3. **Tool Approvals** - Configure which tools can run automatically
|
|
112
120
|
|
|
113
|
-
Settings are stored in `~/.
|
|
121
|
+
Settings are stored in `~/.dimcode/dimcode/` directory by default (can be customized via `DIMCODE_HOME` environment variable).
|
|
114
122
|
|
|
115
123
|
## 🔧 Built-in Tools
|
|
116
124
|
|
|
117
125
|
Dimcode comes with powerful built-in tools:
|
|
118
126
|
|
|
119
127
|
### File Operations
|
|
128
|
+
|
|
120
129
|
- **Read** - Read file contents
|
|
121
130
|
- **Write** - Create or overwrite files
|
|
122
131
|
- **Edit** - Make precise edits to existing files
|
|
123
132
|
|
|
124
133
|
### Code Analysis
|
|
134
|
+
|
|
125
135
|
- **Grep** - Search content using patterns
|
|
126
136
|
- **Glob** - Find files by pattern
|
|
127
137
|
- **AstGrepSearch** - AST-based code search
|
|
128
138
|
- **AstGrepReplace** - AST-based code refactoring
|
|
129
139
|
|
|
130
140
|
### Web & Research
|
|
141
|
+
|
|
131
142
|
- **WebSearch** - Search the web using Serper API
|
|
132
143
|
- **WebFetch** - Fetch web page content
|
|
133
144
|
|
|
134
145
|
### Task Management
|
|
146
|
+
|
|
135
147
|
- **TodoWrite** - Create and manage TODO lists
|
|
136
148
|
- **Task** - Execute complex multi-step tasks
|
|
137
149
|
- **Skill** - Store and reuse common workflows
|
|
138
150
|
|
|
139
151
|
### System
|
|
152
|
+
|
|
140
153
|
- **Bash** - Execute shell commands (requires approval)
|
|
141
154
|
- **AskUser** - Request input from user
|
|
142
155
|
|
|
@@ -166,5 +179,4 @@ dim
|
|
|
166
179
|
## 🔐 Security & Privacy
|
|
167
180
|
|
|
168
181
|
- **Tool Approvals**: By default, sensitive operations (file writes, shell commands) require user approval
|
|
169
|
-
- **Local Storage**: All session data is stored locally in `~/.
|
|
170
|
-
|
|
182
|
+
- **Local Storage**: All session data is stored locally in `~/.dimcode/dimcode/` (customizable via `DIMCODE_HOME`)
|