codeep 1.2.2 → 1.2.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/renderer/Input.js +5 -5
- package/dist/renderer/main.js +2 -11
- package/package.json +1 -1
package/dist/renderer/Input.js
CHANGED
|
@@ -96,6 +96,11 @@ export class Input {
|
|
|
96
96
|
event.key = 'mouse';
|
|
97
97
|
return event;
|
|
98
98
|
}
|
|
99
|
+
// Enter (also handle \r\n sent by some terminals)
|
|
100
|
+
if (data === '\r' || data === '\n' || data === '\r\n') {
|
|
101
|
+
event.key = 'enter';
|
|
102
|
+
return event;
|
|
103
|
+
}
|
|
99
104
|
// Detect paste: multiple printable characters at once (not escape sequences)
|
|
100
105
|
if (data.length > 1 && !data.startsWith('\x1b')) {
|
|
101
106
|
// Check if it's all printable characters (paste event)
|
|
@@ -179,11 +184,6 @@ export class Input {
|
|
|
179
184
|
event.ctrl = true;
|
|
180
185
|
return event;
|
|
181
186
|
}
|
|
182
|
-
// Enter
|
|
183
|
-
if (data === '\r' || data === '\n') {
|
|
184
|
-
event.key = 'enter';
|
|
185
|
-
return event;
|
|
186
|
-
}
|
|
187
187
|
// Backspace
|
|
188
188
|
if (data === '\x7f' || data === '\b') {
|
|
189
189
|
event.key = 'backspace';
|
package/dist/renderer/main.js
CHANGED
|
@@ -11,7 +11,7 @@ import { renderPermissionScreen, getPermissionOptions } from './components/Permi
|
|
|
11
11
|
// Intro animation is now handled by App.startIntro()
|
|
12
12
|
import { chat, setProjectContext } from '../api/index.js';
|
|
13
13
|
import { runAgent } from '../utils/agent.js';
|
|
14
|
-
import { config, loadApiKey, loadAllApiKeys, getCurrentProvider, getModelsForCurrentProvider, PROTOCOLS, LANGUAGES, setProvider, setApiKey, clearApiKey, autoSaveSession, saveSession, startNewSession, getCurrentSessionId, loadSession, listSessionsWithInfo, deleteSession, renameSession, hasReadPermission, hasWritePermission, setProjectPermission, initializeAsProject, isManuallyInitializedProject, } from '../config/index.js';
|
|
14
|
+
import { config, loadApiKey, loadAllApiKeys, getCurrentProvider, getModelsForCurrentProvider, PROTOCOLS, LANGUAGES, setProvider, setApiKey, clearApiKey, getApiKey, autoSaveSession, saveSession, startNewSession, getCurrentSessionId, loadSession, listSessionsWithInfo, deleteSession, renameSession, hasReadPermission, hasWritePermission, setProjectPermission, initializeAsProject, isManuallyInitializedProject, } from '../config/index.js';
|
|
15
15
|
import { isProjectDirectory, getProjectContext } from '../utils/project.js';
|
|
16
16
|
import { getCurrentVersion } from '../utils/update.js';
|
|
17
17
|
import { getProviderList } from '../config/providers.js';
|
|
@@ -938,16 +938,7 @@ function handleCommand(command, args) {
|
|
|
938
938
|
const providers = getProviderList();
|
|
939
939
|
const currentProvider = getCurrentProvider();
|
|
940
940
|
const configuredProviders = providers
|
|
941
|
-
.filter(p =>
|
|
942
|
-
// Check if provider has an API key configured
|
|
943
|
-
try {
|
|
944
|
-
const key = config.get(`apiKey_${p.id}`) || config.get('apiKey');
|
|
945
|
-
return !!key;
|
|
946
|
-
}
|
|
947
|
-
catch {
|
|
948
|
-
return false;
|
|
949
|
-
}
|
|
950
|
-
})
|
|
941
|
+
.filter(p => !!getApiKey(p.id))
|
|
951
942
|
.map(p => ({
|
|
952
943
|
id: p.id,
|
|
953
944
|
name: p.name,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeep",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "AI-powered coding assistant built for the terminal. Multiple LLM providers, project-aware context, and a seamless development workflow.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|