codeep 1.1.0 → 1.1.1
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 +5 -1
- package/dist/utils/console.d.ts +4 -0
- package/dist/utils/console.js +14 -0
- package/package.json +1 -1
package/dist/app.js
CHANGED
|
@@ -37,7 +37,7 @@ 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 { createActionLog } from './utils/tools.js';
|
|
39
39
|
import { scanProject, saveProjectIntelligence, loadProjectIntelligence, generateContextFromIntelligence } from './utils/projectIntelligence.js';
|
|
40
|
-
import { logAction, startAgentSpinner, updateSpinner, stopSpinner, logAgentComplete, logSeparator } from './utils/console.js';
|
|
40
|
+
import { logAction, startAgentSpinner, updateSpinner, stopSpinner, logAgentComplete, logSeparator, setAgentRunning } from './utils/console.js';
|
|
41
41
|
export const App = () => {
|
|
42
42
|
const { exit } = useApp();
|
|
43
43
|
const { stdout } = useStdout();
|
|
@@ -271,6 +271,7 @@ export const App = () => {
|
|
|
271
271
|
setAgentStreamingContent(''); // Reset streaming content
|
|
272
272
|
// Start console spinner for agent
|
|
273
273
|
logSeparator();
|
|
274
|
+
setAgentRunning(true, dryRun);
|
|
274
275
|
startAgentSpinner('Starting...', dryRun);
|
|
275
276
|
// Add user message
|
|
276
277
|
const userMessage = {
|
|
@@ -357,6 +358,7 @@ export const App = () => {
|
|
|
357
358
|
errors: result.actions.filter(a => a.result === 'error').length,
|
|
358
359
|
};
|
|
359
360
|
// Log completion to console (chalk/ora)
|
|
361
|
+
setAgentRunning(false);
|
|
360
362
|
logAgentComplete(stats, result.success);
|
|
361
363
|
logSeparator();
|
|
362
364
|
// Add agent summary as assistant message (without duplicate stats - they're in console)
|
|
@@ -379,10 +381,12 @@ export const App = () => {
|
|
|
379
381
|
}
|
|
380
382
|
catch (error) {
|
|
381
383
|
const err = error;
|
|
384
|
+
setAgentRunning(false);
|
|
382
385
|
stopSpinner();
|
|
383
386
|
notify(`Agent error: ${err.message}`);
|
|
384
387
|
}
|
|
385
388
|
finally {
|
|
389
|
+
setAgentRunning(false);
|
|
386
390
|
stopSpinner();
|
|
387
391
|
setIsAgentRunning(false);
|
|
388
392
|
setAbortController(null);
|
package/dist/utils/console.d.ts
CHANGED
|
@@ -22,6 +22,10 @@ export declare function spinnerFail(text?: string): void;
|
|
|
22
22
|
* Stop spinner without status
|
|
23
23
|
*/
|
|
24
24
|
export declare function stopSpinner(): void;
|
|
25
|
+
/**
|
|
26
|
+
* Set agent running state
|
|
27
|
+
*/
|
|
28
|
+
export declare function setAgentRunning(running: boolean, dryRun?: boolean): void;
|
|
25
29
|
/**
|
|
26
30
|
* Log agent action
|
|
27
31
|
*/
|
package/dist/utils/console.js
CHANGED
|
@@ -55,6 +55,16 @@ export function stopSpinner() {
|
|
|
55
55
|
currentSpinner = null;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
+
// Track if agent is running for auto-restart spinner
|
|
59
|
+
let agentRunning = false;
|
|
60
|
+
let lastDryRun = false;
|
|
61
|
+
/**
|
|
62
|
+
* Set agent running state
|
|
63
|
+
*/
|
|
64
|
+
export function setAgentRunning(running, dryRun = false) {
|
|
65
|
+
agentRunning = running;
|
|
66
|
+
lastDryRun = dryRun;
|
|
67
|
+
}
|
|
58
68
|
/**
|
|
59
69
|
* Log agent action
|
|
60
70
|
*/
|
|
@@ -125,6 +135,10 @@ export function logAction(type, target, result, details) {
|
|
|
125
135
|
? chalk.gray(`\`${filename.length > 40 ? filename.slice(0, 40) + '...' : filename}\``)
|
|
126
136
|
: chalk.bold(filename);
|
|
127
137
|
console.log(`${color(icon)} ${verb} ${displayTarget}${lineInfo}`);
|
|
138
|
+
// Restart spinner if agent is still running
|
|
139
|
+
if (agentRunning) {
|
|
140
|
+
startAgentSpinner('Working...', lastDryRun);
|
|
141
|
+
}
|
|
128
142
|
}
|
|
129
143
|
/**
|
|
130
144
|
* Log agent step change
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeep",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
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",
|