codeep 1.2.0 → 1.2.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/renderer/main.js +24 -3
- package/package.json +1 -1
package/dist/renderer/main.js
CHANGED
|
@@ -510,12 +510,31 @@ async function runSkill(nameOrShortcut, args) {
|
|
|
510
510
|
cwd: projectPath || process.cwd(),
|
|
511
511
|
encoding: 'utf-8',
|
|
512
512
|
timeout: 60000,
|
|
513
|
+
stdio: ['pipe', 'pipe', 'pipe'],
|
|
513
514
|
});
|
|
514
|
-
|
|
515
|
+
const result = output.trim();
|
|
516
|
+
if (result) {
|
|
517
|
+
app.addMessage({ role: 'system', content: `\`${cmd}\`\n\`\`\`\n${result}\n\`\`\`` });
|
|
518
|
+
}
|
|
519
|
+
return result;
|
|
515
520
|
}
|
|
516
521
|
catch (err) {
|
|
517
522
|
const error = err;
|
|
518
|
-
|
|
523
|
+
const stderr = (error.stderr || '').trim();
|
|
524
|
+
const stdout = (error.stdout || '').trim();
|
|
525
|
+
// Git commands output progress/info to stderr even on success
|
|
526
|
+
if (error.status === 0 || stderr.includes('up-to-date') || stderr.includes('up to date') || stderr.includes('Already up to date')) {
|
|
527
|
+
const result = stdout || stderr;
|
|
528
|
+
if (result) {
|
|
529
|
+
app.addMessage({ role: 'system', content: `\`${cmd}\`\n\`\`\`\n${result}\n\`\`\`` });
|
|
530
|
+
}
|
|
531
|
+
return result;
|
|
532
|
+
}
|
|
533
|
+
const errOutput = stderr || stdout;
|
|
534
|
+
if (errOutput) {
|
|
535
|
+
app.addMessage({ role: 'system', content: `\`${cmd}\` failed:\n\`\`\`\n${errOutput}\n\`\`\`` });
|
|
536
|
+
}
|
|
537
|
+
throw new Error(errOutput || error.message || 'Command failed');
|
|
519
538
|
}
|
|
520
539
|
},
|
|
521
540
|
onPrompt: (prompt) => {
|
|
@@ -1369,7 +1388,9 @@ function handleCommand(command, args) {
|
|
|
1369
1388
|
case 'deploy':
|
|
1370
1389
|
case 'release':
|
|
1371
1390
|
case 'publish': {
|
|
1372
|
-
runSkill(command, args)
|
|
1391
|
+
runSkill(command, args).catch((err) => {
|
|
1392
|
+
app.notify(`Skill error: ${err.message}`);
|
|
1393
|
+
});
|
|
1373
1394
|
break;
|
|
1374
1395
|
}
|
|
1375
1396
|
case 'skills': {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeep",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.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",
|