@aigencydev/cli 0.3.1 → 0.3.3
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/tools/bash.js +14 -1
- package/dist/ui/App.js +12 -3
- package/dist/version.js +1 -1
- package/package.json +2 -6
package/dist/tools/bash.js
CHANGED
|
@@ -345,10 +345,23 @@ export const bashTool = async (params, ctx) => {
|
|
|
345
345
|
duration: Date.now() - start,
|
|
346
346
|
};
|
|
347
347
|
}
|
|
348
|
+
let errorMsg;
|
|
349
|
+
if (result.exitCode !== 0) {
|
|
350
|
+
const stderrTrim = result.stderr.trim();
|
|
351
|
+
const stdoutTrim = result.stdout.trim();
|
|
352
|
+
const errorDetail = stderrTrim || stdoutTrim;
|
|
353
|
+
if (errorDetail) {
|
|
354
|
+
const tail = errorDetail.slice(-500);
|
|
355
|
+
errorMsg = `Komut başarısız (exit code ${result.exitCode}): ${tail}`;
|
|
356
|
+
}
|
|
357
|
+
else {
|
|
358
|
+
errorMsg = `Komut çıktı vermeden başarısız oldu (exit code ${result.exitCode}). Komut yanlış olabilir veya binary bulunamamış olabilir.`;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
348
361
|
return {
|
|
349
362
|
success: result.exitCode === 0,
|
|
350
363
|
output: output || "(çıktı yok)",
|
|
351
|
-
error:
|
|
364
|
+
error: errorMsg,
|
|
352
365
|
metadata: {
|
|
353
366
|
exit_code: result.exitCode,
|
|
354
367
|
stdout_length: result.stdout.length,
|
package/dist/ui/App.js
CHANGED
|
@@ -227,11 +227,20 @@ export function App({ session, initialMode, initialModel, cwd, projectRoot, init
|
|
|
227
227
|
break;
|
|
228
228
|
case "agent_tool_result": {
|
|
229
229
|
const status = event.result.success ? "ok" : "error";
|
|
230
|
+
let displayContent;
|
|
231
|
+
if (event.result.success) {
|
|
232
|
+
displayContent = (event.result.output || "").slice(0, 500);
|
|
233
|
+
}
|
|
234
|
+
else {
|
|
235
|
+
const err = event.result.error || "Hata";
|
|
236
|
+
const out = (event.result.output || "").trim();
|
|
237
|
+
displayContent = out
|
|
238
|
+
? `${err}\n\n${out.slice(0, 800)}`
|
|
239
|
+
: err;
|
|
240
|
+
}
|
|
230
241
|
pushMessage({
|
|
231
242
|
kind: "tool_result",
|
|
232
|
-
content:
|
|
233
|
-
? event.result.output.slice(0, 500)
|
|
234
|
-
: event.result.error || "Hata",
|
|
243
|
+
content: displayContent,
|
|
235
244
|
toolStatus: status,
|
|
236
245
|
});
|
|
237
246
|
void recorderRef.current.toolResult("unknown", event.result.success, event.result.output, event.result.error, event.stepId);
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigencydev/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "AIGENCY CLI — terminalden yapay zeka destekli kod üretimi, dosya yönetimi ve proje otomasyonu.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -48,11 +48,7 @@
|
|
|
48
48
|
"ai",
|
|
49
49
|
"coding-assistant"
|
|
50
50
|
],
|
|
51
|
-
"homepage": "https://aigency.dev/
|
|
52
|
-
"repository": {
|
|
53
|
-
"type": "git",
|
|
54
|
-
"url": "https://github.com/aigencydev/cli.git"
|
|
55
|
-
},
|
|
51
|
+
"homepage": "https://aigency.dev/developer/cli",
|
|
56
52
|
"bugs": {
|
|
57
53
|
"url": "https://aigency.dev/contact"
|
|
58
54
|
},
|