@selesai/code 0.8.1 → 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.
- package/CHANGELOG.md +15 -0
- package/README.md +4 -2
- package/dist/cli/args.d.ts +2 -0
- package/dist/cli/args.js +18 -0
- package/dist/cli/config-selector.js +2 -2
- package/dist/cli/startup-ui.d.ts +1 -1
- package/dist/cli/startup-ui.js +2 -2
- package/dist/core/keybindings.d.ts +44 -4
- package/dist/core/llama/provider.js +22 -7
- package/dist/core/model-resolver.js +2 -0
- package/dist/core/model-runtime.d.ts +4 -2
- package/dist/core/model-runtime.js +23 -2
- package/dist/core/remote-catalog-provider.js +72 -67
- package/dist/core/settings-manager.d.ts +8 -0
- package/dist/core/settings-manager.js +18 -0
- package/dist/extensions/pi-powerline-footer/CHANGELOG.md +3 -1
- package/dist/extensions/pi-powerline-footer/guide.ts +11 -3
- package/dist/extensions/pi-powerline-footer/index.ts +3 -272
- package/dist/extensions/pi-powerline-footer/package.json +4 -5
- package/dist/extensions/pi-powerline-footer/powerline-config.ts +0 -6
- package/dist/extensions/pi-powerline-footer/tests/fixed-editor-border.test.ts +2 -2
- package/dist/extensions/pi-powerline-footer/tests/guide.test.ts +24 -1
- package/dist/extensions/pi-powerline-footer/tsconfig.json +1 -1
- package/dist/extensions/pi-subagents/package-lock.json +2 -2
- package/dist/extensions/pi-subagents/package.json +1 -1
- package/dist/extensions/pi-subagents/test/unit/package-manifest.test.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/main.js +1 -0
- package/dist/modes/interactive/components/settings-selector.d.ts +6 -2
- package/dist/modes/interactive/components/settings-selector.js +20 -0
- package/dist/modes/interactive/interactive-mode.d.ts +28 -0
- package/dist/modes/interactive/interactive-mode.js +214 -28
- package/dist/modes/interactive/theme/dark.json +1 -0
- package/dist/modes/interactive/theme/light.json +1 -0
- package/dist/modes/interactive/theme/theme-controller.d.ts +3 -0
- package/dist/modes/interactive/theme/theme-controller.js +10 -1
- package/dist/modes/interactive/theme/theme.d.ts +2 -2
- package/dist/modes/interactive/theme/theme.js +24 -6
- package/docs/keybindings.md +35 -7
- package/docs/settings.md +16 -14
- package/docs/usage.md +5 -0
- package/package.json +5 -5
- package/dist/extensions/pi-powerline-footer/fixed-editor/cluster.ts +0 -113
- package/dist/extensions/pi-powerline-footer/fixed-editor/terminal-split.ts +0 -1080
- package/dist/extensions/pi-powerline-footer/tests/fixed-editor.test.ts +0 -1452
- 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
|
-
});
|