@projectservan8n/cnapse 0.5.3 → 0.5.4
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/dist/index.js +3 -3
- package/package.json +1 -1
- package/src/components/App.tsx +3 -2
- package/src/components/HelpMenu.tsx +1 -1
package/dist/index.js
CHANGED
|
@@ -114,7 +114,7 @@ var MENU_ITEMS = [
|
|
|
114
114
|
{ command: "/memory", description: "View/clear learned task patterns", category: "actions" },
|
|
115
115
|
// Settings
|
|
116
116
|
{ command: "/config", description: "Show/edit configuration", category: "settings" },
|
|
117
|
-
{ command: "/watch", shortcut: "Ctrl+
|
|
117
|
+
{ command: "/watch", shortcut: "Ctrl+E", description: "Toggle screen watching", category: "settings" },
|
|
118
118
|
{ command: "/model", description: "Change AI model", category: "settings" },
|
|
119
119
|
{ command: "/provider", shortcut: "Ctrl+P", description: "Change AI provider", category: "settings" }
|
|
120
120
|
];
|
|
@@ -1928,11 +1928,11 @@ function App() {
|
|
|
1928
1928
|
if (key.ctrl && inputChar === "l") chat2.clearMessages();
|
|
1929
1929
|
if (key.ctrl && inputChar === "h") setOverlay("help");
|
|
1930
1930
|
if (key.ctrl && inputChar === "p") setOverlay("provider");
|
|
1931
|
-
if (key.ctrl && inputChar === "
|
|
1931
|
+
if (key.ctrl && inputChar === "e") {
|
|
1932
1932
|
setScreenWatch((prev) => {
|
|
1933
1933
|
const newState = !prev;
|
|
1934
1934
|
chat2.addSystemMessage(
|
|
1935
|
-
newState ? "\u{1F5A5}\uFE0F Screen watching enabled
|
|
1935
|
+
newState ? "\u{1F5A5}\uFE0F Screen watching enabled (Ctrl+E to toggle)" : "\u{1F5A5}\uFE0F Screen watching disabled."
|
|
1936
1936
|
);
|
|
1937
1937
|
return newState;
|
|
1938
1938
|
});
|
package/package.json
CHANGED
package/src/components/App.tsx
CHANGED
|
@@ -39,11 +39,12 @@ export function App() {
|
|
|
39
39
|
if (key.ctrl && inputChar === 'l') chat.clearMessages();
|
|
40
40
|
if (key.ctrl && inputChar === 'h') setOverlay('help');
|
|
41
41
|
if (key.ctrl && inputChar === 'p') setOverlay('provider');
|
|
42
|
-
|
|
42
|
+
// Note: Ctrl+W avoided - conflicts with terminal close
|
|
43
|
+
if (key.ctrl && inputChar === 'e') {
|
|
43
44
|
setScreenWatch(prev => {
|
|
44
45
|
const newState = !prev;
|
|
45
46
|
chat.addSystemMessage(newState
|
|
46
|
-
? '🖥️ Screen watching enabled
|
|
47
|
+
? '🖥️ Screen watching enabled (Ctrl+E to toggle)'
|
|
47
48
|
: '🖥️ Screen watching disabled.'
|
|
48
49
|
);
|
|
49
50
|
return newState;
|
|
@@ -22,7 +22,7 @@ const MENU_ITEMS: MenuItem[] = [
|
|
|
22
22
|
|
|
23
23
|
// Settings
|
|
24
24
|
{ command: '/config', description: 'Show/edit configuration', category: 'settings' },
|
|
25
|
-
{ command: '/watch', shortcut: 'Ctrl+
|
|
25
|
+
{ command: '/watch', shortcut: 'Ctrl+E', description: 'Toggle screen watching', category: 'settings' },
|
|
26
26
|
{ command: '/model', description: 'Change AI model', category: 'settings' },
|
|
27
27
|
{ command: '/provider', shortcut: 'Ctrl+P', description: 'Change AI provider', category: 'settings' },
|
|
28
28
|
];
|