@selesai/code 0.8.2 → 0.8.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +4 -2
  3. package/dist/cli/args.d.ts +2 -0
  4. package/dist/cli/args.js +18 -0
  5. package/dist/cli/config-selector.js +2 -2
  6. package/dist/cli/startup-ui.d.ts +1 -1
  7. package/dist/cli/startup-ui.js +2 -2
  8. package/dist/core/keybindings.d.ts +44 -4
  9. package/dist/core/llama/provider.js +22 -7
  10. package/dist/core/model-resolver.js +2 -0
  11. package/dist/core/model-runtime.d.ts +4 -2
  12. package/dist/core/model-runtime.js +23 -2
  13. package/dist/core/remote-catalog-provider.js +72 -67
  14. package/dist/core/settings-manager.d.ts +8 -0
  15. package/dist/core/settings-manager.js +18 -0
  16. package/dist/extensions/pi-powerline-footer/CHANGELOG.md +2 -1
  17. package/dist/extensions/pi-powerline-footer/index.ts +3 -272
  18. package/dist/extensions/pi-powerline-footer/package.json +4 -5
  19. package/dist/extensions/pi-powerline-footer/powerline-config.ts +0 -6
  20. package/dist/extensions/pi-powerline-footer/tests/fixed-editor-border.test.ts +2 -2
  21. package/dist/extensions/pi-powerline-footer/tests/guide.test.ts +1 -1
  22. package/dist/extensions/pi-powerline-footer/tsconfig.json +1 -1
  23. package/dist/index.d.ts +1 -1
  24. package/dist/main.js +1 -0
  25. package/dist/modes/interactive/components/settings-selector.d.ts +6 -2
  26. package/dist/modes/interactive/components/settings-selector.js +20 -0
  27. package/dist/modes/interactive/interactive-mode.d.ts +28 -0
  28. package/dist/modes/interactive/interactive-mode.js +214 -28
  29. package/dist/modes/interactive/theme/dark.json +1 -0
  30. package/dist/modes/interactive/theme/light.json +1 -0
  31. package/dist/modes/interactive/theme/theme-controller.d.ts +3 -0
  32. package/dist/modes/interactive/theme/theme-controller.js +10 -1
  33. package/dist/modes/interactive/theme/theme.d.ts +2 -2
  34. package/dist/modes/interactive/theme/theme.js +24 -6
  35. package/docs/keybindings.md +35 -7
  36. package/docs/settings.md +16 -14
  37. package/docs/usage.md +5 -0
  38. package/package.json +5 -5
  39. package/dist/extensions/pi-powerline-footer/fixed-editor/cluster.ts +0 -113
  40. package/dist/extensions/pi-powerline-footer/fixed-editor/terminal-split.ts +0 -1080
  41. package/dist/extensions/pi-powerline-footer/tests/fixed-editor.test.ts +0 -1452
  42. package/dist/extensions/pi-powerline-footer/tests/jump-shortcuts.test.ts +0 -49
@@ -1,49 +0,0 @@
1
- import test from "node:test";
2
- import assert from "node:assert/strict";
3
-
4
- import { isSupportedSuperShortcut, matchesConfiguredShortcut, shortcutConflictKey } from "../shortcuts.ts";
5
- import { resolveShortcutConfig } from "../index.ts";
6
-
7
- test("surviving editor shortcuts resolve alongside chat jumps", () => {
8
- const resolved = resolveShortcutConfig({});
9
- assert.equal(resolved.stashHistory, "ctrl+alt+h");
10
- assert.equal(resolved.copyEditor, "ctrl+alt+c");
11
- assert.equal(resolved.cutEditor, "ctrl+alt+x");
12
- assert.equal(resolved.ideaCapture, null);
13
- assert.equal(resolved.editorStart, "super+shift+up");
14
- assert.equal(resolved.editorEnd, "super+shift+down");
15
- assert.equal(resolved.jumpPreviousUserMessage, "ctrl+shift+u");
16
- assert.equal(resolved.jumpChatBottom, "ctrl+shift+g");
17
- assert.equal(resolved.scrollChatUp, "super+up");
18
- assert.equal(resolved.scrollChatDown, "super+down");
19
- });
20
-
21
- test("super shortcut matching and conflict normalization remain supported", () => {
22
- assert.equal(matchesConfiguredShortcut("\x1b[1;9A", "super+up"), true);
23
- assert.equal(matchesConfiguredShortcut("c", "super+c"), false);
24
- assert.equal(isSupportedSuperShortcut("super+up"), true);
25
- assert.equal(isSupportedSuperShortcut("super+z"), false);
26
- assert.equal(shortcutConflictKey("super+home"), "super+up");
27
- });
28
-
29
- test("idea capture shortcut remains configurable", () => {
30
- const resolved = resolveShortcutConfig({
31
- powerlineShortcuts: {
32
- ideaCapture: "ctrl+alt+i",
33
- },
34
- });
35
-
36
- assert.equal(resolved.ideaCapture, "ctrl+alt+i");
37
- });
38
-
39
- test("editor boundary shortcuts remain configurable", () => {
40
- const resolved = resolveShortcutConfig({
41
- powerlineShortcuts: {
42
- editorStart: "ctrl+shift+y",
43
- editorEnd: "ctrl+shift+x",
44
- },
45
- });
46
-
47
- assert.equal(resolved.editorStart, "ctrl+shift+y");
48
- assert.equal(resolved.editorEnd, "ctrl+shift+x");
49
- });