codeep 1.1.17 → 1.1.18
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/App.d.ts +1 -0
- package/dist/renderer/App.js +5 -1
- package/dist/renderer/main.js +6 -0
- package/package.json +1 -1
package/dist/renderer/App.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export interface AppOptions {
|
|
|
21
21
|
onSubmit: (message: string) => Promise<void>;
|
|
22
22
|
onCommand: (command: string, args: string[]) => void;
|
|
23
23
|
onExit: () => void;
|
|
24
|
+
onStopAgent?: () => void;
|
|
24
25
|
getStatus: () => StatusInfo;
|
|
25
26
|
hasWriteAccess?: () => boolean;
|
|
26
27
|
hasProjectContext?: () => boolean;
|
package/dist/renderer/App.js
CHANGED
|
@@ -862,13 +862,17 @@ export class App {
|
|
|
862
862
|
this.handleMenuKey(event);
|
|
863
863
|
return;
|
|
864
864
|
}
|
|
865
|
-
// Escape to cancel streaming/loading or close autocomplete
|
|
865
|
+
// Escape to cancel streaming/loading/agent or close autocomplete
|
|
866
866
|
if (event.key === 'escape') {
|
|
867
867
|
if (this.showAutocomplete) {
|
|
868
868
|
this.showAutocomplete = false;
|
|
869
869
|
this.render();
|
|
870
870
|
return;
|
|
871
871
|
}
|
|
872
|
+
if (this.isAgentRunning && this.options.onStopAgent) {
|
|
873
|
+
this.options.onStopAgent();
|
|
874
|
+
return;
|
|
875
|
+
}
|
|
872
876
|
if (this.isStreaming) {
|
|
873
877
|
this.endStreaming();
|
|
874
878
|
}
|
package/dist/renderer/main.js
CHANGED
|
@@ -1504,6 +1504,12 @@ Commands (in chat):
|
|
|
1504
1504
|
console.log('\nGoodbye!');
|
|
1505
1505
|
process.exit(0);
|
|
1506
1506
|
},
|
|
1507
|
+
onStopAgent: () => {
|
|
1508
|
+
if (isAgentRunning && agentAbortController) {
|
|
1509
|
+
agentAbortController.abort();
|
|
1510
|
+
app.notify('Stopping agent...');
|
|
1511
|
+
}
|
|
1512
|
+
},
|
|
1507
1513
|
getStatus,
|
|
1508
1514
|
hasWriteAccess: () => hasWriteAccess,
|
|
1509
1515
|
hasProjectContext: () => projectContext !== null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeep",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.18",
|
|
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",
|