codeep 1.0.109 → 1.0.110
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/app.js +4 -20
- package/package.json +1 -1
package/dist/app.js
CHANGED
|
@@ -37,21 +37,11 @@ import { learnFromProject, addCustomRule, getLearningStatus } from './utils/lear
|
|
|
37
37
|
import { getAllSkills, findSkill, formatSkillsList, formatSkillHelp, generateSkillPrompt, saveCustomSkill, deleteCustomSkill, parseSkillChain, parseSkillArgs, searchSkills, trackSkillUsage, getSkillStats } from './utils/skills.js';
|
|
38
38
|
import { AgentProgress, AgentSummary, LiveCodeStream } from './components/AgentProgress.js';
|
|
39
39
|
import { createActionLog } from './utils/tools.js';
|
|
40
|
-
// Modal overlay component - renders modal content on top of chat
|
|
41
|
-
const ModalOverlay = ({ children, onClose }) => {
|
|
42
|
-
useInput((input, key) => {
|
|
43
|
-
if (key.escape) {
|
|
44
|
-
onClose();
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
return (_jsxs(Box, { flexDirection: "column", borderStyle: "round", borderColor: "#f02a30", padding: 1, marginTop: 2, marginBottom: 2, children: [children, _jsx(Box, { marginTop: 1, children: _jsx(Text, { color: "cyan", children: "Press Escape to close" }) })] }));
|
|
48
|
-
};
|
|
49
40
|
export const App = () => {
|
|
50
41
|
const { exit } = useApp();
|
|
51
42
|
const { stdout } = useStdout();
|
|
52
43
|
// Start with 'chat' screen, will switch to login if needed after loading API key
|
|
53
44
|
const [screen, setScreen] = useState('chat');
|
|
54
|
-
const [modalScreen, setModalScreen] = useState(null);
|
|
55
45
|
const [messages, setMessages] = useState([]);
|
|
56
46
|
const [inputHistory, setInputHistory] = useState([]);
|
|
57
47
|
const [isLoading, setIsLoading] = useState(false);
|
|
@@ -173,12 +163,6 @@ export const App = () => {
|
|
|
173
163
|
return () => clearTimeout(timer);
|
|
174
164
|
}
|
|
175
165
|
}, [notification, notificationDuration]);
|
|
176
|
-
// Clear input when opening modals
|
|
177
|
-
useEffect(() => {
|
|
178
|
-
if (modalScreen !== null) {
|
|
179
|
-
setClearInputTrigger(prev => prev + 1);
|
|
180
|
-
}
|
|
181
|
-
}, [modalScreen]);
|
|
182
166
|
// Handle keyboard shortcuts
|
|
183
167
|
useInput((input, key) => {
|
|
184
168
|
// Ctrl+L to clear chat (F5 doesn't work reliably in all terminals)
|
|
@@ -538,10 +522,10 @@ export const App = () => {
|
|
|
538
522
|
exit();
|
|
539
523
|
break;
|
|
540
524
|
case '/help':
|
|
541
|
-
|
|
525
|
+
setScreen('help');
|
|
542
526
|
break;
|
|
543
527
|
case '/status':
|
|
544
|
-
|
|
528
|
+
setScreen('status');
|
|
545
529
|
break;
|
|
546
530
|
case '/version': {
|
|
547
531
|
const version = getCurrentVersion();
|
|
@@ -629,7 +613,7 @@ export const App = () => {
|
|
|
629
613
|
}
|
|
630
614
|
break;
|
|
631
615
|
case '/settings':
|
|
632
|
-
|
|
616
|
+
setScreen('settings');
|
|
633
617
|
break;
|
|
634
618
|
case '/grant': {
|
|
635
619
|
// Always open permission dialog to allow users to manage permissions
|
|
@@ -1410,7 +1394,7 @@ export const App = () => {
|
|
|
1410
1394
|
const actionColor = change.action === 'delete' ? 'red' : change.action === 'edit' ? 'yellow' : 'green';
|
|
1411
1395
|
const actionLabel = change.action === 'delete' ? 'DELETE' : change.action === 'edit' ? 'EDIT' : 'CREATE';
|
|
1412
1396
|
return (_jsxs(Text, { children: ["\u2022 ", _jsxs(Text, { color: actionColor, children: ["[", actionLabel, "]"] }), " ", change.path, change.action !== 'delete' && change.content.includes('\n') && ` (${change.content.split('\n').length} lines)`] }, i));
|
|
1413
|
-
}), _jsx(Text, { children: " " }), _jsxs(Text, { children: ["Apply changes? ", _jsx(Text, { color: "#f02a30", bold: true, children: "[Y/n]" })] }), _jsx(Text, { color: "cyan", children: "Press Y to apply, N or Esc to reject" })] })), notification && (_jsx(Box, { justifyContent: "center", children: _jsx(Text, { color: "cyan", children: notification }) })),
|
|
1397
|
+
}), _jsx(Text, { children: " " }), _jsxs(Text, { children: ["Apply changes? ", _jsx(Text, { color: "#f02a30", bold: true, children: "[Y/n]" })] }), _jsx(Text, { color: "cyan", children: "Press Y to apply, N or Esc to reject" })] })), notification && (_jsx(Box, { justifyContent: "center", children: _jsx(Text, { color: "cyan", children: notification }) })), _jsxs(Box, { flexDirection: "column", children: [_jsx(Text, { color: "#f02a30", children: '─'.repeat(Math.max(20, stdout?.columns || 80)) }), _jsx(Box, { paddingX: 1, children: _jsx(ChatInput, { onSubmit: handleSubmit, disabled: isLoading || isAgentRunning || pendingFileChanges.length > 0, history: inputHistory, clearTrigger: clearInputTrigger }) }), _jsx(Text, { color: "#f02a30", children: '─'.repeat(Math.max(20, stdout?.columns || 80)) })] }), _jsxs(Box, { flexDirection: "column", children: [_jsx(Box, { children: _jsxs(Text, { children: [_jsx(Text, { color: "#f02a30", bold: true, children: "Ctrl+V" }), _jsx(Text, { children: " Paste " }), _jsx(Text, { color: "#f02a30", bold: true, children: "Ctrl+L" }), _jsx(Text, { children: " Clear " }), _jsx(Text, { color: "#f02a30", bold: true, children: "Esc" }), _jsx(Text, { children: " Cancel " }), _jsx(Text, { color: "#f02a30", bold: true, children: "\u2191\u2193" }), _jsx(Text, { children: " History " }), _jsx(Text, { color: "#f02a30", bold: true, children: "/help" }), _jsx(Text, { children: " Commands" })] }) }), _jsx(Box, { children: config.get('agentMode') === 'on' ? (hasWriteAccess && projectContext ? (_jsx(Text, { color: "green", children: "Agent: ON \u2713" })) : (_jsx(Text, { color: "yellow", children: "Agent: ON (no permission - use /grant)" }))) : (_jsx(Text, { color: "cyan", children: "Agent: Manual (use /agent)" })) })] })] }, "chat-screen"));
|
|
1414
1398
|
};
|
|
1415
1399
|
// Model selection component
|
|
1416
1400
|
const ModelSelect = ({ onClose, notify }) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeep",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.110",
|
|
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",
|