@knightcodeai/cli-linux-x64 0.9.0 → 0.9.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/bin/CHANGELOG.md +88 -0
- package/bin/README.md +52 -19
- package/bin/docs/cli-integration.md +106 -0
- package/bin/docs/cli.md +270 -0
- package/bin/docs/compaction.md +56 -37
- package/bin/docs/configuration.md +46 -0
- package/bin/docs/containerization.md +86 -54
- package/bin/docs/custom-provider.md +132 -782
- package/bin/docs/docs.json +143 -103
- package/bin/docs/environment-variables.md +5 -3
- package/bin/docs/extensions.md +134 -2937
- package/bin/docs/how-knightcode-works.md +49 -0
- package/bin/docs/index.md +24 -69
- package/bin/docs/json.md +193 -65
- package/bin/docs/keybindings.md +56 -101
- package/bin/docs/llama-cpp.md +3 -3
- package/bin/docs/message-types.md +261 -0
- package/bin/docs/models.md +65 -517
- package/bin/docs/packages.md +66 -167
- package/bin/docs/prompt-templates.md +31 -68
- package/bin/docs/providers.md +103 -233
- package/bin/docs/quickstart.md +61 -106
- package/bin/docs/rpc-commands.md +854 -0
- package/bin/docs/rpc-extension-ui.md +200 -0
- package/bin/docs/rpc.md +129 -1556
- package/bin/docs/sdk.md +76 -1160
- package/bin/docs/security.md +70 -32
- package/bin/docs/session-format.md +39 -216
- package/bin/docs/sessions.md +43 -121
- package/bin/docs/settings.md +112 -367
- package/bin/docs/shell-aliases.md +85 -5
- package/bin/docs/skills.md +51 -189
- package/bin/docs/slash-commands.md +63 -0
- package/bin/docs/terminal-setup.md +107 -79
- package/bin/docs/termux.md +74 -83
- package/bin/docs/themes.md +68 -280
- package/bin/docs/tmux.md +31 -39
- package/bin/docs/tui.md +69 -923
- package/bin/docs/usage.md +79 -285
- package/bin/docs/windows.md +43 -17
- package/bin/export-html/template.js +6 -1
- package/bin/knightcode +2 -2
- package/bin/package.json +6 -6
- package/package.json +1 -1
- package/bin/docs/development.md +0 -71
package/bin/docs/tmux.md
CHANGED
|
@@ -1,63 +1,55 @@
|
|
|
1
|
-
# tmux
|
|
1
|
+
# Run KnightCode in tmux
|
|
2
2
|
|
|
3
|
-
KnightCode works inside tmux, but tmux
|
|
3
|
+
KnightCode works inside tmux, but tmux can report `Shift+Enter`, `Ctrl+Enter`, and plain `Enter` as the same key. Enable extended keys so KnightCode can distinguish them.
|
|
4
4
|
|
|
5
|
-
##
|
|
6
|
-
|
|
7
|
-
Add to `~/.tmux.conf`:
|
|
8
|
-
|
|
9
|
-
```tmux
|
|
10
|
-
set -g extended-keys on
|
|
11
|
-
set -g extended-keys-format csi-u
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
Then restart tmux fully:
|
|
5
|
+
## Check your tmux version
|
|
15
6
|
|
|
16
7
|
```bash
|
|
17
|
-
tmux
|
|
18
|
-
tmux
|
|
8
|
+
tmux -V
|
|
19
9
|
```
|
|
20
10
|
|
|
21
|
-
|
|
11
|
+
For tmux 3.5 or newer, use the recommended CSI-u configuration below. For tmux 3.2 through 3.4, use the older-version configuration.
|
|
22
12
|
|
|
23
|
-
##
|
|
13
|
+
## Enable extended keys in tmux 3.5 or newer
|
|
24
14
|
|
|
25
|
-
|
|
15
|
+
Add these lines to `~/.tmux.conf`:
|
|
26
16
|
|
|
27
17
|
```tmux
|
|
28
18
|
set -g extended-keys on
|
|
19
|
+
set -g extended-keys-format csi-u
|
|
29
20
|
```
|
|
30
21
|
|
|
31
|
-
|
|
22
|
+
KnightCode requests extended-key reporting when the terminal does not provide the Kitty keyboard protocol directly. CSI-u is the most reliable format for forwarding modified keys through tmux.
|
|
32
23
|
|
|
33
|
-
|
|
34
|
-
- `Ctrl+D` → `\x1b[27;5;100~`
|
|
35
|
-
- `Ctrl+Enter` → `\x1b[27;5;13~`
|
|
24
|
+
## Restart tmux
|
|
36
25
|
|
|
37
|
-
|
|
26
|
+
The configuration applies to the tmux server. To guarantee that it is active, close your tmux sessions and start a new server.
|
|
38
27
|
|
|
39
|
-
|
|
40
|
-
- `Ctrl+D` → `\x1b[100;5u`
|
|
41
|
-
- `Ctrl+Enter` → `\x1b[13;5u`
|
|
28
|
+
If you choose to stop the server from the command line, save your work first. This command terminates every session managed by that server:
|
|
42
29
|
|
|
43
|
-
|
|
30
|
+
```bash
|
|
31
|
+
tmux kill-server
|
|
32
|
+
tmux
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Verify modified keys
|
|
44
36
|
|
|
45
|
-
|
|
37
|
+
Start KnightCode inside the new tmux session and check that:
|
|
46
38
|
|
|
47
|
-
|
|
39
|
+
1. `Shift+Enter` inserts a new line in the editor.
|
|
40
|
+
2. `Enter` submits the prompt.
|
|
41
|
+
3. `Alt+Enter` queues a follow-up on macOS and Linux. Windows and WSL use `Ctrl+Q` by default.
|
|
48
42
|
|
|
49
|
-
|
|
50
|
-
|-----|-----------------|--------------|
|
|
51
|
-
| Enter | `\r` | `\r` |
|
|
52
|
-
| Shift+Enter | `\r` | `\x1b[13;2u` |
|
|
53
|
-
| Ctrl+Enter | `\r` | `\x1b[13;5u` |
|
|
54
|
-
| Alt/Option+Enter | `\x1b\r` | `\x1b[13;3u` |
|
|
43
|
+
If these keys still behave like plain `Enter`, verify that the terminal outside tmux can report modified keys. See [Configure your terminal](terminal-setup.md).
|
|
55
44
|
|
|
56
|
-
|
|
45
|
+
## Use tmux 3.2 through 3.4
|
|
57
46
|
|
|
58
|
-
|
|
47
|
+
These versions support extended keys but not `extended-keys-format csi-u`. Add only:
|
|
48
|
+
|
|
49
|
+
```tmux
|
|
50
|
+
set -g extended-keys on
|
|
51
|
+
```
|
|
59
52
|
|
|
60
|
-
|
|
61
|
-
- A terminal emulator that supports extended keys (Ghostty, Kitty, iTerm2, WezTerm, Windows Terminal)
|
|
53
|
+
KnightCode supports the xterm `modifyOtherKeys` format used by these versions. Restart tmux and repeat the verification steps.
|
|
62
54
|
|
|
63
|
-
|
|
55
|
+
For older versions, upgrade tmux or use KnightCode outside tmux rather than relying on modified Enter shortcuts.
|