@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.
Files changed (45) hide show
  1. package/bin/CHANGELOG.md +88 -0
  2. package/bin/README.md +52 -19
  3. package/bin/docs/cli-integration.md +106 -0
  4. package/bin/docs/cli.md +270 -0
  5. package/bin/docs/compaction.md +56 -37
  6. package/bin/docs/configuration.md +46 -0
  7. package/bin/docs/containerization.md +86 -54
  8. package/bin/docs/custom-provider.md +132 -782
  9. package/bin/docs/docs.json +143 -103
  10. package/bin/docs/environment-variables.md +5 -3
  11. package/bin/docs/extensions.md +134 -2937
  12. package/bin/docs/how-knightcode-works.md +49 -0
  13. package/bin/docs/index.md +24 -69
  14. package/bin/docs/json.md +193 -65
  15. package/bin/docs/keybindings.md +56 -101
  16. package/bin/docs/llama-cpp.md +3 -3
  17. package/bin/docs/message-types.md +261 -0
  18. package/bin/docs/models.md +65 -517
  19. package/bin/docs/packages.md +66 -167
  20. package/bin/docs/prompt-templates.md +31 -68
  21. package/bin/docs/providers.md +103 -233
  22. package/bin/docs/quickstart.md +61 -106
  23. package/bin/docs/rpc-commands.md +854 -0
  24. package/bin/docs/rpc-extension-ui.md +200 -0
  25. package/bin/docs/rpc.md +129 -1556
  26. package/bin/docs/sdk.md +76 -1160
  27. package/bin/docs/security.md +70 -32
  28. package/bin/docs/session-format.md +39 -216
  29. package/bin/docs/sessions.md +43 -121
  30. package/bin/docs/settings.md +112 -367
  31. package/bin/docs/shell-aliases.md +85 -5
  32. package/bin/docs/skills.md +51 -189
  33. package/bin/docs/slash-commands.md +63 -0
  34. package/bin/docs/terminal-setup.md +107 -79
  35. package/bin/docs/termux.md +74 -83
  36. package/bin/docs/themes.md +68 -280
  37. package/bin/docs/tmux.md +31 -39
  38. package/bin/docs/tui.md +69 -923
  39. package/bin/docs/usage.md +79 -285
  40. package/bin/docs/windows.md +43 -17
  41. package/bin/export-html/template.js +6 -1
  42. package/bin/knightcode +2 -2
  43. package/bin/package.json +6 -6
  44. package/package.json +1 -1
  45. package/bin/docs/development.md +0 -71
package/bin/docs/tmux.md CHANGED
@@ -1,63 +1,55 @@
1
- # tmux Setup
1
+ # Run KnightCode in tmux
2
2
 
3
- KnightCode works inside tmux, but tmux strips modifier information from certain keys by default. Without configuration, `Shift+Enter` and `Ctrl+Enter` are usually indistinguishable from plain `Enter`.
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
- ## Recommended Configuration
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 kill-server
18
- tmux
8
+ tmux -V
19
9
  ```
20
10
 
21
- KnightCode requests extended key reporting automatically when Kitty keyboard protocol is not available. With `extended-keys-format csi-u`, tmux forwards modified keys in CSI-u format, which is the most reliable configuration. The `extended-keys-format` option requires tmux 3.5 or later.
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
- ## Why `csi-u` Is Recommended
13
+ ## Enable extended keys in tmux 3.5 or newer
24
14
 
25
- With only:
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
- tmux defaults to `extended-keys-format xterm`. When an application requests extended key reporting, modified keys are forwarded in xterm `modifyOtherKeys` format such as:
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
- - `Ctrl+C` → `\x1b[27;5;99~`
34
- - `Ctrl+D` → `\x1b[27;5;100~`
35
- - `Ctrl+Enter` → `\x1b[27;5;13~`
24
+ ## Restart tmux
36
25
 
37
- With `extended-keys-format csi-u`, the same keys are forwarded as:
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
- - `Ctrl+C` → `\x1b[99;5u`
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
- KnightCode supports both formats, but `csi-u` is the recommended tmux setup.
30
+ ```bash
31
+ tmux kill-server
32
+ tmux
33
+ ```
34
+
35
+ ## Verify modified keys
44
36
 
45
- ## What This Fixes
37
+ Start KnightCode inside the new tmux session and check that:
46
38
 
47
- Without tmux extended keys, modified Enter keys collapse to legacy sequences:
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
- | Key | Without extkeys | With `csi-u` |
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
- This affects the default keybindings (`Enter` to submit, `Shift+Enter` for newline) and any custom keybindings using modified Enter.
45
+ ## Use tmux 3.2 through 3.4
57
46
 
58
- ## Requirements
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
- - tmux 3.5 or later for `extended-keys-format csi-u` (run `tmux -V` to check)
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
- With tmux 3.2 through 3.4, omit `extended-keys-format csi-u`; KnightCode still supports tmux's default xterm `modifyOtherKeys` format.
55
+ For older versions, upgrade tmux or use KnightCode outside tmux rather than relying on modified Enter shortcuts.