@dipoleml/dcode-cli 2.0.1 → 2.0.3
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 +19 -4
- package/dist/dcode.cjs +1681 -787
- package/dist/provider/dcode-builtin.json +10 -8
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,11 +6,23 @@ DCode plans, writes, runs, and reviews code with the raven model family. It read
|
|
|
6
6
|
|
|
7
7
|
## Requirements
|
|
8
8
|
|
|
9
|
-
- Node.js
|
|
9
|
+
- Node.js 22.13 or newer (the current LTS is fine). Older versions print how to upgrade and exit with code 3
|
|
10
10
|
- macOS, Windows, or Linux
|
|
11
11
|
|
|
12
12
|
## Install
|
|
13
13
|
|
|
14
|
+
The one-line installer checks Node.js, installs DCode and starts it right away:
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
# macOS and Linux
|
|
18
|
+
curl -fsSL https://dipoleml.com/install.sh | sh
|
|
19
|
+
|
|
20
|
+
# Windows (PowerShell)
|
|
21
|
+
irm https://dipoleml.com/install.ps1 | iex
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Or with npm:
|
|
25
|
+
|
|
14
26
|
```sh
|
|
15
27
|
npm install -g @dipoleml/dcode-cli
|
|
16
28
|
```
|
|
@@ -21,7 +33,7 @@ npm install -g @dipoleml/dcode-cli
|
|
|
21
33
|
dcode
|
|
22
34
|
```
|
|
23
35
|
|
|
24
|
-
With no arguments, DCode
|
|
36
|
+
With no arguments, DCode fills your terminal window: your name, model and folder in a header on top, the conversation scrolling in the middle, and the message box with your 5-hour and weekly usage pinned at the bottom. The DCode disc animates on launch, then you ask it to fix a bug, write a feature, or review a diff. Use `--no-fullscreen` to keep the conversation in your normal terminal scrollback. It proposes commands and file changes for your approval before anything runs. Colour adapts to your terminal (truecolor, 256 or 16 colours; set `NO_COLOR=1` to turn it off).
|
|
25
37
|
|
|
26
38
|
| Key | Action |
|
|
27
39
|
| --- | --- |
|
|
@@ -31,6 +43,9 @@ With no arguments, DCode opens its terminal workspace: the DCode disc animates o
|
|
|
31
43
|
| Shift+Tab | Cycle the permission mode |
|
|
32
44
|
| Ctrl+O, `/expand` | Show full tool output |
|
|
33
45
|
| `/`, `@` | Command and file suggestions (Tab to complete) |
|
|
46
|
+
| `/model` | Pick the model (up/down) and how hard it thinks: Off, Low, Standard, High (left/right) |
|
|
47
|
+
| Mouse wheel, PgUp/PgDn, End | Scroll the conversation; End jumps to the newest |
|
|
48
|
+
| `/setup` | Show what works on this computer (sign-in, browser, permissions, git) |
|
|
34
49
|
|
|
35
50
|
To run a single prompt and exit (useful in scripts and CI):
|
|
36
51
|
|
|
@@ -46,7 +61,7 @@ dcode -p "List every TODO in src" --output-format json
|
|
|
46
61
|
|
|
47
62
|
## Sign in
|
|
48
63
|
|
|
49
|
-
The first time DCode needs a model, it
|
|
64
|
+
The first time DCode needs a model, it offers to sign in with your DipoleML account (a free account works) or to use an API key. You can also run it directly:
|
|
50
65
|
|
|
51
66
|
```sh
|
|
52
67
|
dcode login
|
|
@@ -60,7 +75,7 @@ Your plan, usage, and API keys live on the [dashboard](https://chat.dipoleml.com
|
|
|
60
75
|
|
|
61
76
|
| Command | What it does |
|
|
62
77
|
| --- | --- |
|
|
63
|
-
| `dcode doctor` |
|
|
78
|
+
| `dcode doctor` | Check Node, your PATH, the DipoleML servers, sign-in, browser and git |
|
|
64
79
|
| `dcode plugins list` | List installed plugins and marketplaces |
|
|
65
80
|
| `dcode skills list` | List available skills |
|
|
66
81
|
| `dcode --licenses` | Print open-source license notices |
|