@aiderdesk/aiderdesk 0.75.0 → 0.77.0
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/out/cli.js +124 -17
- package/out/renderer/assets/{AgentSettings-DX34HLFv.js → AgentSettings-B73lGg-P.js} +2 -2
- package/out/renderer/assets/{InfoIcon-DzyZQ7Ye.js → InfoIcon-BaDK-htg.js} +1 -1
- package/out/renderer/assets/{Onboarding-FwXfKZ8B.js → Onboarding-CttlAepw.js} +4 -4
- package/out/renderer/assets/{ProviderHeader-Cii9aAmV.js → ProviderHeader-B0-K9908.js} +2 -2
- package/out/renderer/assets/{SettingsPage-XanGltUZ.js → SettingsPage-BtyX7Wv1.js} +351 -284
- package/out/renderer/assets/{UsageDashboard-eHbvZTZC.js → UsageDashboard-CKuev9SP.js} +3 -3
- package/out/renderer/assets/{arc-CVfdiTl1.js → arc-CDCMm4PF.js} +1 -1
- package/out/renderer/assets/{architectureDiagram-3BPJPVTR-DsLLo_Ek.js → architectureDiagram-3BPJPVTR-DoyTFQYe.js} +4 -4
- package/out/renderer/assets/{blockDiagram-GPEHLZMM-eWy47S0_.js → blockDiagram-GPEHLZMM-CophuS51.js} +4 -4
- package/out/renderer/assets/{c4Diagram-AAUBKEIU-BH9b_e6y.js → c4Diagram-AAUBKEIU-Dc3YxNWW.js} +2 -2
- package/out/renderer/assets/{channel-D1z_mPGJ.js → channel-cZzRDUFG.js} +1 -1
- package/out/renderer/assets/{chunk-2J33WTMH-DK0Yw_7f.js → chunk-2J33WTMH-YV6ZtOyU.js} +1 -1
- package/out/renderer/assets/{chunk-4BX2VUAB-DIGR8Y5b.js → chunk-4BX2VUAB-DKNGjk29.js} +1 -1
- package/out/renderer/assets/{chunk-55IACEB6-DoCkLI5e.js → chunk-55IACEB6-MkIW5gHI.js} +1 -1
- package/out/renderer/assets/{chunk-727SXJPM-C2gQLzLi.js → chunk-727SXJPM-CPUXDO_8.js} +5 -5
- package/out/renderer/assets/{chunk-AQP2D5EJ-D83_SlRR.js → chunk-AQP2D5EJ-CYCp3XBh.js} +3 -3
- package/out/renderer/assets/{chunk-FMBD7UC4-CyiPoUsC.js → chunk-FMBD7UC4-DIj-DOVN.js} +1 -1
- package/out/renderer/assets/{chunk-ND2GUHAM-DfGsUYDD.js → chunk-ND2GUHAM-BWiS_Ttp.js} +1 -1
- package/out/renderer/assets/{chunk-QZHKN3VN-BhnTFlht.js → chunk-QZHKN3VN-4NHol9Dz.js} +1 -1
- package/out/renderer/assets/{classDiagram-4FO5ZUOK-Dy7E8tVe.js → classDiagram-4FO5ZUOK-C1yfJEIb.js} +6 -6
- package/out/renderer/assets/{classDiagram-v2-Q7XG4LA2-Dy7E8tVe.js → classDiagram-v2-Q7XG4LA2-C1yfJEIb.js} +6 -6
- package/out/renderer/assets/{cose-bilkent-S5V4N54A-Dsl61WN3.js → cose-bilkent-S5V4N54A-B8D60fQa.js} +2 -2
- package/out/renderer/assets/{cytoscape.esm-Bm8DJGmZ.js → cytoscape.esm-BNSvh83I.js} +957 -957
- package/out/renderer/assets/{dagre-BM42HDAG-D-u18G94.js → dagre-BM42HDAG-5_V5lQc0.js} +3 -3
- package/out/renderer/assets/{diagram-2AECGRRQ-BumP49Qp.js → diagram-2AECGRRQ-Bb4cbiKY.js} +3 -3
- package/out/renderer/assets/{diagram-5GNKFQAL-VpUN87Sw.js → diagram-5GNKFQAL-DQ_vjlxb.js} +4 -4
- package/out/renderer/assets/{diagram-KO2AKTUF-CXCWwzRa.js → diagram-KO2AKTUF-So0t9fVd.js} +3 -3
- package/out/renderer/assets/{diagram-LMA3HP47-vlOcStwn.js → diagram-LMA3HP47-CbSRJgt4.js} +3 -3
- package/out/renderer/assets/{diagram-OG6HWLK6-DS1BscxN.js → diagram-OG6HWLK6-Bls2tZCJ.js} +4 -4
- package/out/renderer/assets/{erDiagram-TEJ5UH35-DPi6-CLL.js → erDiagram-TEJ5UH35-CESbOlvh.js} +4 -4
- package/out/renderer/assets/{flowDiagram-I6XJVG4X-BYlX12Cd.js → flowDiagram-I6XJVG4X-B-35DKDx.js} +6 -6
- package/out/renderer/assets/{ganttDiagram-6RSMTGT7-BJQl-A9d.js → ganttDiagram-6RSMTGT7-BL1OQkTj.js} +3 -3
- package/out/renderer/assets/{gitGraphDiagram-PVQCEYII-CUFXx3IZ.js → gitGraphDiagram-PVQCEYII-SJkGLAAz.js} +4 -4
- package/out/renderer/assets/{graph-CbFubTTc.js → graph-BSxR7Gef.js} +1 -1
- package/out/renderer/assets/{index-BkdacTnN.js → index-BVOpoJw8.js} +1 -1
- package/out/renderer/assets/{index-B9iW9QmT.js → index-BqZxyppq.js} +1 -1
- package/out/renderer/assets/{index-DNlMJMPg.js → index-Cmn9J2p1.js} +11166 -7522
- package/out/renderer/assets/{index-Cg7tn967.js → index-DFODyrlX.js} +4 -4
- package/out/renderer/assets/{index-DeoI6jti.js → index-DGcKtfCM.js} +1 -1
- package/out/renderer/assets/{index-DCILJy4w.css → index-DVEVSdXO.css} +72 -884
- package/out/renderer/assets/{index-fD843lMX.js → index-DgDxO_E3.js} +1 -1
- package/out/renderer/assets/{index-C7885gEz.js → index-HJk8ZKtm.js} +1 -1
- package/out/renderer/assets/{index-B6R_BNfE.js → index-NF_MxNl9.js} +1 -1
- package/out/renderer/assets/{index-9GNr8q1O.js → index-VX8ukL4o.js} +1 -1
- package/out/renderer/assets/{index-DYKLRIHT.js → index-xCqv98zj.js} +1 -1
- package/out/renderer/assets/{infoDiagram-5YYISTIA-IWJLFUYz.js → infoDiagram-5YYISTIA-lRTvqfXx.js} +2 -2
- package/out/renderer/assets/{ishikawaDiagram-YF4QCWOH-BuNfm7cB.js → ishikawaDiagram-YF4QCWOH-CtsU-ctO.js} +1 -1
- package/out/renderer/assets/{journeyDiagram-JHISSGLW-CfceKUHO.js → journeyDiagram-JHISSGLW-3MrLeKXj.js} +4 -4
- package/out/renderer/assets/{jsx-dev-runtime-DT3FTts0.js → jsx-dev-runtime-BTcJ8PkQ.js} +1 -1
- package/out/renderer/assets/{kanban-definition-UN3LZRKU-Bb6YnEgS.js → kanban-definition-UN3LZRKU-CinUVJ12.js} +2 -2
- package/out/renderer/assets/{katex-DK1nL-FM.js → katex-Co8xHYNH.js} +193 -193
- package/out/renderer/assets/{layout-BkrDn6V9.js → layout-C9eRMSnE.js} +2 -2
- package/out/renderer/assets/{linear-jxO_dc8P.js → linear-WwW43_Ig.js} +1 -1
- package/out/renderer/assets/{mindmap-definition-RKZ34NQL-BPRx7p9A.js → mindmap-definition-RKZ34NQL-B-K0dkdA.js} +3 -3
- package/out/renderer/assets/{pieDiagram-4H26LBE5-CPR4AuPM.js → pieDiagram-4H26LBE5-eotxzUOT.js} +4 -4
- package/out/renderer/assets/pierre-dark-BL-l9r39.js +4 -0
- package/out/renderer/assets/pierre-dark-protanopia-deuteranopia-BBjGuJQU.js +4 -0
- package/out/renderer/assets/pierre-dark-soft-B6TBhICr.js +4 -0
- package/out/renderer/assets/pierre-dark-tritanopia-f-j_EX9A.js +4 -0
- package/out/renderer/assets/pierre-dark-vibrant-yElMGqZN.js +4 -0
- package/out/renderer/assets/pierre-light-BUzWTcjO.js +4 -0
- package/out/renderer/assets/pierre-light-protanopia-deuteranopia-DlvVSCaI.js +4 -0
- package/out/renderer/assets/pierre-light-soft-CCMU-Zh0.js +4 -0
- package/out/renderer/assets/pierre-light-tritanopia-v4xacE1C.js +4 -0
- package/out/renderer/assets/pierre-light-vibrant-BRUbQnMc.js +4 -0
- package/out/renderer/assets/{quadrantDiagram-W4KKPZXB-BKzlAr7m.js → quadrantDiagram-W4KKPZXB-BtKKvYmW.js} +2 -2
- package/out/renderer/assets/{requirementDiagram-4Y6WPE33-CUan3EZI.js → requirementDiagram-4Y6WPE33-k_JQl4AM.js} +3 -3
- package/out/renderer/assets/{sankeyDiagram-5OEKKPKP-y8X8qnX2.js → sankeyDiagram-5OEKKPKP-BVDWaFSn.js} +1 -1
- package/out/renderer/assets/{sequenceDiagram-3UESZ5HK-B4xv8iDW.js → sequenceDiagram-3UESZ5HK-dpVnolZO.js} +3 -3
- package/out/renderer/assets/{stateDiagram-AJRCARHV-DTPE2Z4L.js → stateDiagram-AJRCARHV-DYd-R9tJ.js} +6 -6
- package/out/renderer/assets/{stateDiagram-v2-BHNVJYJU-BmZ9o6q3.js → stateDiagram-v2-BHNVJYJU-CyE2HX6z.js} +4 -4
- package/out/renderer/assets/{time-D391Z6zp.js → time-Claj2vse.js} +1 -1
- package/out/renderer/assets/{timeline-definition-PNZ67QCA-DVLUB2HD.js → timeline-definition-PNZ67QCA-0vKYrH6S.js} +2 -2
- package/out/renderer/assets/{vennDiagram-CIIHVFJN-BGGBlVN1.js → vennDiagram-CIIHVFJN-op3DVQGG.js} +1 -1
- package/out/renderer/assets/{wardley-L42UT6IY-ZVVSjQUD.js → wardley-L42UT6IY-CsNzYaF9.js} +1 -1
- package/out/renderer/assets/{wardleyDiagram-YWT4CUSO-CRAH-LRw.js → wardleyDiagram-YWT4CUSO-D3jK8kAv.js} +3 -3
- package/out/renderer/assets/{worker-BdXuKH1Q.js → worker-CdcPcIJG.js} +322 -102
- package/out/renderer/assets/{xychartDiagram-2RQKCTM6-DQqvm7M3.js → xychartDiagram-2RQKCTM6-C9wPvZAU.js} +2 -2
- package/out/renderer/index.html +2 -2
- package/out/resources/connector/connector.py +3 -1
- package/out/resources/prompts/init-project.hbs +16 -42
- package/out/resources/prompts/system-prompt.hbs +25 -60
- package/out/resources/prompts/workflow.hbs +17 -52
- package/out/resources/skills/extension-creator/SKILL.md +1 -0
- package/out/resources/skills/extension-creator/references/event-types.md +38 -1
- package/out/resources/skills/extension-creator/references/extension-interface.md +50 -0
- package/out/resources/skills/extension-creator/references/ui-components.md +6 -0
- package/out/runner.js +1284 -242
- package/package.json +16 -16
- package/patches/{ai+7.0.28.patch → ai+7.0.37.patch} +3 -3
- package/out/renderer/assets/pierre-dark-C-Drv5KU.js +0 -4
- package/out/renderer/assets/pierre-dark-soft-Cd74uQaL.js +0 -4
- package/out/renderer/assets/pierre-light-CfQnmt6J.js +0 -4
- package/out/renderer/assets/pierre-light-soft-DMVdU74b.js +0 -4
- package/out/resources/linux/probe +0 -0
- package/out/resources/linux-x64/probe +0 -0
package/out/cli.js
CHANGED
|
@@ -1260,6 +1260,31 @@ const formatJSONLine = (type, raw) => {
|
|
|
1260
1260
|
const { taskId, baseDir, ...data } = raw;
|
|
1261
1261
|
return JSON.stringify({ type, taskId, projectDir: baseDir, data }) + "\n";
|
|
1262
1262
|
};
|
|
1263
|
+
const waitForServerReady = async (host, port, timeoutMs) => {
|
|
1264
|
+
const startTime = Date.now();
|
|
1265
|
+
const pollInterval = 100;
|
|
1266
|
+
while (Date.now() - startTime < timeoutMs) {
|
|
1267
|
+
try {
|
|
1268
|
+
const health = await fetchJSON$1(host, port, "/api/health", "GET");
|
|
1269
|
+
if (health.status === 200 && health.data.status === "ok") {
|
|
1270
|
+
return true;
|
|
1271
|
+
}
|
|
1272
|
+
} catch {
|
|
1273
|
+
}
|
|
1274
|
+
await new Promise((resolve) => setTimeout(resolve, pollInterval));
|
|
1275
|
+
}
|
|
1276
|
+
return false;
|
|
1277
|
+
};
|
|
1278
|
+
const killProcess = (child) => {
|
|
1279
|
+
if (!child.killed) {
|
|
1280
|
+
child.kill("SIGTERM");
|
|
1281
|
+
setTimeout(() => {
|
|
1282
|
+
if (!child.killed) {
|
|
1283
|
+
child.kill("SIGKILL");
|
|
1284
|
+
}
|
|
1285
|
+
}, 5e3);
|
|
1286
|
+
}
|
|
1287
|
+
};
|
|
1263
1288
|
const runPrompt = async (messages, opts) => {
|
|
1264
1289
|
const port = resolvePort(opts.port ? parseInt(opts.port) : void 0);
|
|
1265
1290
|
const host = opts.host || DEFAULT_HOST;
|
|
@@ -1277,18 +1302,45 @@ ${stdinContent}` : stdinContent;
|
|
|
1277
1302
|
process.stderr.write("Error: No prompt provided. Pass a message or pipe stdin.\n");
|
|
1278
1303
|
process.exit(1);
|
|
1279
1304
|
}
|
|
1305
|
+
let spawnedProcess = null;
|
|
1306
|
+
let serverHealthy = false;
|
|
1280
1307
|
try {
|
|
1281
1308
|
const health = await fetchJSON$1(host, port, "/api/health", "GET");
|
|
1282
|
-
|
|
1283
|
-
process.stderr.write("Error: AiderDesk server is not healthy.\n");
|
|
1284
|
-
process.exit(1);
|
|
1285
|
-
}
|
|
1309
|
+
serverHealthy = health.status === 200 && health.data.status === "ok";
|
|
1286
1310
|
} catch {
|
|
1287
|
-
|
|
1288
|
-
|
|
1311
|
+
}
|
|
1312
|
+
if (!serverHealthy) {
|
|
1313
|
+
if (opts.autostart) {
|
|
1314
|
+
process.stderr.write(`Starting AiderDesk server on port ${port}...
|
|
1315
|
+
`);
|
|
1316
|
+
try {
|
|
1317
|
+
spawnedProcess = spawnRunnerProcess(port, ["ignore", "ignore", "ignore"]);
|
|
1318
|
+
spawnedProcess.on("error", (err) => {
|
|
1319
|
+
process.stderr.write(`Error: Failed to start server: ${err.message}
|
|
1320
|
+
`);
|
|
1321
|
+
process.exit(1);
|
|
1322
|
+
});
|
|
1323
|
+
const ready = await waitForServerReady(host, port, 3e4);
|
|
1324
|
+
if (!ready) {
|
|
1325
|
+
process.stderr.write("Error: Server failed to start within 30 seconds.\n");
|
|
1326
|
+
if (spawnedProcess) {
|
|
1327
|
+
killProcess(spawnedProcess);
|
|
1328
|
+
}
|
|
1329
|
+
process.exit(1);
|
|
1330
|
+
}
|
|
1331
|
+
process.stderr.write("Server is ready.\n");
|
|
1332
|
+
} catch (err) {
|
|
1333
|
+
process.stderr.write(`Error: Failed to start server: ${err.message}
|
|
1334
|
+
`);
|
|
1335
|
+
process.exit(1);
|
|
1336
|
+
}
|
|
1337
|
+
} else {
|
|
1338
|
+
process.stderr.write(
|
|
1339
|
+
`Error: AiderDesk server is not running on ${host}:${port}. Start it first with 'aiderdesk' or 'aiderdesk start', or use --autostart.
|
|
1289
1340
|
`
|
|
1290
|
-
|
|
1291
|
-
|
|
1341
|
+
);
|
|
1342
|
+
process.exit(1);
|
|
1343
|
+
}
|
|
1292
1344
|
}
|
|
1293
1345
|
const requestBody = { prompt, projectDir };
|
|
1294
1346
|
if (opts.model) {
|
|
@@ -1308,6 +1360,9 @@ ${stdinContent}` : stdinContent;
|
|
|
1308
1360
|
let interrupted = false;
|
|
1309
1361
|
const handleInterrupt = (tui) => {
|
|
1310
1362
|
if (interrupted) {
|
|
1363
|
+
if (spawnedProcess) {
|
|
1364
|
+
killProcess(spawnedProcess);
|
|
1365
|
+
}
|
|
1311
1366
|
process.exit(130);
|
|
1312
1367
|
}
|
|
1313
1368
|
interrupted = true;
|
|
@@ -1318,8 +1373,18 @@ ${stdinContent}` : stdinContent;
|
|
|
1318
1373
|
if (!reqClosed) {
|
|
1319
1374
|
sseResponse.stream.destroy();
|
|
1320
1375
|
}
|
|
1321
|
-
void callInterrupt$1(host, port, projectDir, taskId).then(() =>
|
|
1322
|
-
|
|
1376
|
+
void callInterrupt$1(host, port, projectDir, taskId).then(() => {
|
|
1377
|
+
if (spawnedProcess) {
|
|
1378
|
+
killProcess(spawnedProcess);
|
|
1379
|
+
}
|
|
1380
|
+
process.exit(130);
|
|
1381
|
+
});
|
|
1382
|
+
setTimeout(() => {
|
|
1383
|
+
if (spawnedProcess) {
|
|
1384
|
+
killProcess(spawnedProcess);
|
|
1385
|
+
}
|
|
1386
|
+
process.exit(130);
|
|
1387
|
+
}, 2e3);
|
|
1323
1388
|
};
|
|
1324
1389
|
process.on("SIGINT", () => handleInterrupt());
|
|
1325
1390
|
process.on("SIGTERM", () => handleInterrupt());
|
|
@@ -1336,6 +1401,9 @@ ${stdinContent}` : stdinContent;
|
|
|
1336
1401
|
onInterrupt: (tui) => handleInterrupt(tui),
|
|
1337
1402
|
onDone: (success) => {
|
|
1338
1403
|
reqClosed = true;
|
|
1404
|
+
if (spawnedProcess) {
|
|
1405
|
+
killProcess(spawnedProcess);
|
|
1406
|
+
}
|
|
1339
1407
|
process.exit(success ? 0 : 1);
|
|
1340
1408
|
}
|
|
1341
1409
|
});
|
|
@@ -1346,9 +1414,30 @@ ${stdinContent}` : stdinContent;
|
|
|
1346
1414
|
let lastResponseCompleted = null;
|
|
1347
1415
|
const seenToolStarts = /* @__PURE__ */ new Set();
|
|
1348
1416
|
const seenToolEnds = /* @__PURE__ */ new Set();
|
|
1417
|
+
let showingThinking = false;
|
|
1418
|
+
let responseStarted = false;
|
|
1419
|
+
const clearThinking = () => {
|
|
1420
|
+
if (showingThinking) {
|
|
1421
|
+
process.stdout.write("\r\x1B[K");
|
|
1422
|
+
showingThinking = false;
|
|
1423
|
+
}
|
|
1424
|
+
};
|
|
1425
|
+
const showThinking = () => {
|
|
1426
|
+
if (!showingThinking) {
|
|
1427
|
+
process.stdout.write("\x1B[33mThinking...\x1B[0m");
|
|
1428
|
+
showingThinking = true;
|
|
1429
|
+
if (process.stdout.isTTY) {
|
|
1430
|
+
process.stdout.write("");
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
};
|
|
1349
1434
|
if (format === "text" && !quiet) {
|
|
1350
|
-
process.
|
|
1435
|
+
process.stdout.write(`Running prompt in ${projectDir}
|
|
1436
|
+
`);
|
|
1437
|
+
process.stdout.write(`\x1B[36m🧑 ${prompt}\x1B[0m
|
|
1438
|
+
|
|
1351
1439
|
`);
|
|
1440
|
+
showThinking();
|
|
1352
1441
|
}
|
|
1353
1442
|
for await (const event of eventStream) {
|
|
1354
1443
|
const eventData = parseEventData$1(event.data);
|
|
@@ -1360,6 +1449,8 @@ ${stdinContent}` : stdinContent;
|
|
|
1360
1449
|
} else if (format === "text" && !quiet) {
|
|
1361
1450
|
const text = eventData.chunk || "";
|
|
1362
1451
|
if (text) {
|
|
1452
|
+
clearThinking();
|
|
1453
|
+
responseStarted = true;
|
|
1363
1454
|
process.stdout.write(text);
|
|
1364
1455
|
currentResponseText += text;
|
|
1365
1456
|
}
|
|
@@ -1367,6 +1458,7 @@ ${stdinContent}` : stdinContent;
|
|
|
1367
1458
|
break;
|
|
1368
1459
|
}
|
|
1369
1460
|
case "response-completed": {
|
|
1461
|
+
clearThinking();
|
|
1370
1462
|
if (format === "json" && !quiet) {
|
|
1371
1463
|
process.stdout.write(formatJSONLine("response-completed", eventData));
|
|
1372
1464
|
} else if (quiet) {
|
|
@@ -1388,6 +1480,7 @@ ${stdinContent}` : stdinContent;
|
|
|
1388
1480
|
break;
|
|
1389
1481
|
}
|
|
1390
1482
|
case "stream-end": {
|
|
1483
|
+
clearThinking();
|
|
1391
1484
|
if (quiet && lastResponseCompleted) {
|
|
1392
1485
|
if (format === "json") {
|
|
1393
1486
|
process.stdout.write(formatJSONLine("response-completed", lastResponseCompleted));
|
|
@@ -1416,7 +1509,7 @@ ${stdinContent}` : stdinContent;
|
|
|
1416
1509
|
process.stdout.write(formatJSONLine("tool-start", eventData));
|
|
1417
1510
|
} else if (format === "text" && !quiet) {
|
|
1418
1511
|
const argsSummary = formatToolArgs(eventData.args);
|
|
1419
|
-
process.
|
|
1512
|
+
process.stdout.write(` \x1B[2m⚙ ${eventData.toolName}${argsSummary}\x1B[0m
|
|
1420
1513
|
`);
|
|
1421
1514
|
}
|
|
1422
1515
|
} else {
|
|
@@ -1429,7 +1522,7 @@ ${stdinContent}` : stdinContent;
|
|
|
1429
1522
|
} else if (format === "text" && !quiet) {
|
|
1430
1523
|
const hasError = eventData.response === "error";
|
|
1431
1524
|
const symbol = hasError ? "✗" : "✓";
|
|
1432
|
-
process.
|
|
1525
|
+
process.stdout.write(` \x1B[2m${symbol} ${eventData.toolName}\x1B[0m
|
|
1433
1526
|
`);
|
|
1434
1527
|
}
|
|
1435
1528
|
}
|
|
@@ -1439,9 +1532,20 @@ ${stdinContent}` : stdinContent;
|
|
|
1439
1532
|
case "log": {
|
|
1440
1533
|
if (format === "json" && !quiet) {
|
|
1441
1534
|
process.stdout.write(formatJSONLine("log", eventData));
|
|
1442
|
-
} else if (format === "text" &&
|
|
1443
|
-
|
|
1535
|
+
} else if (format === "text" && !quiet) {
|
|
1536
|
+
if (eventData.level === "error" && eventData.message) {
|
|
1537
|
+
clearThinking();
|
|
1538
|
+
process.stderr.write(`\x1B[31mError: ${eventData.message}\x1B[0m
|
|
1539
|
+
`);
|
|
1540
|
+
} else if (eventData.level === "loading") {
|
|
1541
|
+
if (eventData.message) {
|
|
1542
|
+
clearThinking();
|
|
1543
|
+
process.stdout.write(`\x1B[33m${eventData.message}\x1B[0m
|
|
1444
1544
|
`);
|
|
1545
|
+
} else if (!responseStarted) {
|
|
1546
|
+
showThinking();
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1445
1549
|
}
|
|
1446
1550
|
break;
|
|
1447
1551
|
}
|
|
@@ -1449,7 +1553,7 @@ ${stdinContent}` : stdinContent;
|
|
|
1449
1553
|
if (format === "json" && !quiet) {
|
|
1450
1554
|
process.stdout.write(formatJSONLine("ask-question", eventData));
|
|
1451
1555
|
} else if (format === "text" && eventData.question) {
|
|
1452
|
-
process.
|
|
1556
|
+
process.stdout.write(`
|
|
1453
1557
|
? ${eventData.question}
|
|
1454
1558
|
`);
|
|
1455
1559
|
}
|
|
@@ -1467,6 +1571,9 @@ ${stdinContent}` : stdinContent;
|
|
|
1467
1571
|
}
|
|
1468
1572
|
}
|
|
1469
1573
|
reqClosed = true;
|
|
1574
|
+
if (spawnedProcess) {
|
|
1575
|
+
killProcess(spawnedProcess);
|
|
1576
|
+
}
|
|
1470
1577
|
process.exit(finished ? 0 : 1);
|
|
1471
1578
|
};
|
|
1472
1579
|
const runInteractiveStream = async (args) => {
|
|
@@ -1567,7 +1674,7 @@ const runInteractiveStream = async (args) => {
|
|
|
1567
1674
|
}
|
|
1568
1675
|
};
|
|
1569
1676
|
function registerRunCommand(program2) {
|
|
1570
|
-
program2.command("run [message...]").description("Run a prompt non-interactively and stream output").option("-p, --port <port>", "server port (env: AIDER_DESK_PORT)", parseInt).option("--host <host>", `server host (default: ${DEFAULT_HOST})`).option("-f, --format <format>", "output format: text (default) or json", "text").option("-q, --quiet", "suppress progress indicators").option("-m, --model <model>", "model to use (format: provider/model, e.g. openai/gpt-4o)").option("-a, --agent-profile <id>", "agent profile ID to use").option("-t, --task-id <id>", "run on an existing task instead of creating a new one").action((messages, opts) => {
|
|
1677
|
+
program2.command("run [message...]").description("Run a prompt non-interactively and stream output").option("-p, --port <port>", "server port (env: AIDER_DESK_PORT)", parseInt).option("--host <host>", `server host (default: ${DEFAULT_HOST})`).option("-f, --format <format>", "output format: text (default) or json", "text").option("-q, --quiet", "suppress progress indicators").option("-m, --model <model>", "model to use (format: provider/model, e.g. openai/gpt-4o)").option("-a, --agent-profile <id>", "agent profile ID to use").option("-t, --task-id <id>", "run on an existing task instead of creating a new one").option("--autostart", "automatically start the server if not running and stop it when done").action((messages, opts) => {
|
|
1571
1678
|
runPrompt(messages, opts);
|
|
1572
1679
|
});
|
|
1573
1680
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as compilerRuntimeExports, a as clsx, j as jsxRuntimeExports, b2 as useTranslation, b0 as reactExports, c7 as Checkbox, b7 as Button, dD as HiEye, c9 as Input, cr as TextArea, dE as Trans, ck as CodeInline, dF as SUPPORTED_LANGUAGES, c8 as Select, cC as Tooltip, dG as MdInfoOutline, dH as useClickOutside, dI as FaEllipsisVertical, dJ as BiCut, dK as BiTrash, ch as BiCopy, dL as useSortable, dM as CSS, c6 as Slider, I as IconButton, cv as FaTimes, cA as ContextCompactionType, dN as TOOL_GROUP_NAME_SEPARATOR, dO as ToolApprovalState, cb as useApi, di as Accordion, dP as extractIpcErrorMessage, dQ as FaPencilAlt, cl as FaTrash, dR as POWER_TOOL_GROUP_NAME, dS as POWER_TOOL_BASH, dT as AIDER_TOOL_GROUP_NAME, dU as TODO_TOOL_GROUP_NAME, dV as TASKS_TOOL_GROUP_NAME, dW as MEMORY_TOOL_GROUP_NAME, dX as SKILLS_TOOL_GROUP_NAME, dY as MEMORY_TOOL_DESCRIPTIONS, dZ as MEMORY_TOOL_STORE, d_ as MEMORY_TOOL_RETRIEVE, d$ as MEMORY_TOOL_LIST, e0 as MEMORY_TOOL_UPDATE, e1 as MEMORY_TOOL_DELETE, e2 as TASKS_TOOL_DESCRIPTIONS, e3 as TASKS_TOOL_LIST_TASKS, e4 as TASKS_TOOL_GET_TASK, e5 as TASKS_TOOL_GET_TASK_MESSAGE, e6 as TASKS_TOOL_CREATE_TASK, e7 as TASKS_TOOL_DELETE_TASK, e8 as TASKS_TOOL_SEARCH_TASK, e9 as TODO_TOOL_DESCRIPTIONS, ea as TODO_TOOL_SET_ITEMS, eb as TODO_TOOL_GET_ITEMS, ec as TODO_TOOL_UPDATE_ITEM_COMPLETION, ed as TODO_TOOL_CLEAR_ITEMS, ee as POWER_TOOL_DESCRIPTIONS, ef as POWER_TOOL_FILE_EDIT, eg as POWER_TOOL_FILE_READ, eh as POWER_TOOL_FILE_WRITE, ei as POWER_TOOL_GLOB, ej as POWER_TOOL_GREP, ek as POWER_TOOL_SEMANTIC_SEARCH, el as POWER_TOOL_FETCH, em as AIDER_TOOL_DESCRIPTIONS, en as AIDER_TOOL_GET_CONTEXT_FILES, eo as AIDER_TOOL_ADD_CONTEXT_FILES, ep as AIDER_TOOL_DROP_CONTEXT_FILES, eq as AIDER_TOOL_RUN_PROMPT, cf as FaSyncAlt, cw as FaPlus, er as _extends$1, es as React, et as _objectWithoutPropertiesLoose$1, eu as InvocationMode, ev as ContextMemoryMode, ew as DEFAULT_AGENT_PROFILE, a$ as useModelProviders, ex as DEFAULT_AGENT_PROFILES, ey as useSensors, ez as useSensor, eA as sortableKeyboardCoordinates, eB as KeyboardSensor, eC as PointerSensor, cB as getProviderModelId, cU as FaChevronLeft, cV as FaChevronRight, eD as DndContext, eE as closestCenter, eF as SortableContext, eG as verticalListSortingStrategy, eH as FaPaste, eI as BiReset, eJ as ModelSelector, eK as arrayMove, aV as v4, ba as showErrorNotification } from "./index-
|
|
2
|
-
import { I as InfoIcon } from "./InfoIcon-
|
|
1
|
+
import { c as compilerRuntimeExports, a as clsx, j as jsxRuntimeExports, b2 as useTranslation, b0 as reactExports, c7 as Checkbox, b7 as Button, dD as HiEye, c9 as Input, cr as TextArea, dE as Trans, ck as CodeInline, dF as SUPPORTED_LANGUAGES, c8 as Select, cC as Tooltip, dG as MdInfoOutline, dH as useClickOutside, dI as FaEllipsisVertical, dJ as BiCut, dK as BiTrash, ch as BiCopy, dL as useSortable, dM as CSS, c6 as Slider, I as IconButton, cv as FaTimes, cA as ContextCompactionType, dN as TOOL_GROUP_NAME_SEPARATOR, dO as ToolApprovalState, cb as useApi, di as Accordion, dP as extractIpcErrorMessage, dQ as FaPencilAlt, cl as FaTrash, dR as POWER_TOOL_GROUP_NAME, dS as POWER_TOOL_BASH, dT as AIDER_TOOL_GROUP_NAME, dU as TODO_TOOL_GROUP_NAME, dV as TASKS_TOOL_GROUP_NAME, dW as MEMORY_TOOL_GROUP_NAME, dX as SKILLS_TOOL_GROUP_NAME, dY as MEMORY_TOOL_DESCRIPTIONS, dZ as MEMORY_TOOL_STORE, d_ as MEMORY_TOOL_RETRIEVE, d$ as MEMORY_TOOL_LIST, e0 as MEMORY_TOOL_UPDATE, e1 as MEMORY_TOOL_DELETE, e2 as TASKS_TOOL_DESCRIPTIONS, e3 as TASKS_TOOL_LIST_TASKS, e4 as TASKS_TOOL_GET_TASK, e5 as TASKS_TOOL_GET_TASK_MESSAGE, e6 as TASKS_TOOL_CREATE_TASK, e7 as TASKS_TOOL_DELETE_TASK, e8 as TASKS_TOOL_SEARCH_TASK, e9 as TODO_TOOL_DESCRIPTIONS, ea as TODO_TOOL_SET_ITEMS, eb as TODO_TOOL_GET_ITEMS, ec as TODO_TOOL_UPDATE_ITEM_COMPLETION, ed as TODO_TOOL_CLEAR_ITEMS, ee as POWER_TOOL_DESCRIPTIONS, ef as POWER_TOOL_FILE_EDIT, eg as POWER_TOOL_FILE_READ, eh as POWER_TOOL_FILE_WRITE, ei as POWER_TOOL_GLOB, ej as POWER_TOOL_GREP, ek as POWER_TOOL_SEMANTIC_SEARCH, el as POWER_TOOL_FETCH, em as AIDER_TOOL_DESCRIPTIONS, en as AIDER_TOOL_GET_CONTEXT_FILES, eo as AIDER_TOOL_ADD_CONTEXT_FILES, ep as AIDER_TOOL_DROP_CONTEXT_FILES, eq as AIDER_TOOL_RUN_PROMPT, cf as FaSyncAlt, cw as FaPlus, er as _extends$1, es as React, et as _objectWithoutPropertiesLoose$1, eu as InvocationMode, ev as ContextMemoryMode, ew as DEFAULT_AGENT_PROFILE, a$ as useModelProviders, ex as DEFAULT_AGENT_PROFILES, ey as useSensors, ez as useSensor, eA as sortableKeyboardCoordinates, eB as KeyboardSensor, eC as PointerSensor, cB as getProviderModelId, cU as FaChevronLeft, cV as FaChevronRight, eD as DndContext, eE as closestCenter, eF as SortableContext, eG as verticalListSortingStrategy, eH as FaPaste, eI as BiReset, eJ as ModelSelector, eK as arrayMove, aV as v4, ba as showErrorNotification } from "./index-Cmn9J2p1.js";
|
|
2
|
+
import { I as InfoIcon } from "./InfoIcon-BaDK-htg.js";
|
|
3
3
|
const getPathBasename = (inputPath) => {
|
|
4
4
|
if (!inputPath) {
|
|
5
5
|
return inputPath;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as compilerRuntimeExports, a as clsx, t as twMerge, j as jsxRuntimeExports, F as FaInfoCircle, I as IconButton } from "./index-
|
|
1
|
+
import { c as compilerRuntimeExports, a as clsx, t as twMerge, j as jsxRuntimeExports, F as FaInfoCircle, I as IconButton } from "./index-Cmn9J2p1.js";
|
|
2
2
|
const InfoIcon = (t0) => {
|
|
3
3
|
const $ = compilerRuntimeExports.c(13);
|
|
4
4
|
const {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as compilerRuntimeExports, a$ as useModelProviders, b0 as reactExports, j as jsxRuntimeExports, b1 as HiCheck, a as clsx, b2 as useTranslation, b3 as useNavigate, b4 as useSettingsStore, b5 as useSaveSettings, b6 as useAgents, b7 as Button, b8 as HiArrowLeft, b9 as HiArrowRight, ba as showErrorNotification, bb as lodashExports, bc as showInfoNotification, bd as ROUTES } from "./index-
|
|
2
|
-
import { A as AgentSettings, a as AiderSettings, L as LanguageSelector } from "./AgentSettings-
|
|
3
|
-
import { P as ProviderProfileForm, a as ProviderSelection, b as ProviderHeader } from "./ProviderHeader-
|
|
4
|
-
import "./InfoIcon-
|
|
1
|
+
import { c as compilerRuntimeExports, a$ as useModelProviders, b0 as reactExports, j as jsxRuntimeExports, b1 as HiCheck, a as clsx, b2 as useTranslation, b3 as useNavigate, b4 as useSettingsStore, b5 as useSaveSettings, b6 as useAgents, b7 as Button, b8 as HiArrowLeft, b9 as HiArrowRight, ba as showErrorNotification, bb as lodashExports, bc as showInfoNotification, bd as ROUTES } from "./index-Cmn9J2p1.js";
|
|
2
|
+
import { A as AgentSettings, a as AiderSettings, L as LanguageSelector } from "./AgentSettings-B73lGg-P.js";
|
|
3
|
+
import { P as ProviderProfileForm, a as ProviderSelection, b as ProviderHeader } from "./ProviderHeader-B0-K9908.js";
|
|
4
|
+
import "./InfoIcon-BaDK-htg.js";
|
|
5
5
|
const OnboardingProviderSetup = () => {
|
|
6
6
|
const $ = compilerRuntimeExports.c(21);
|
|
7
7
|
const {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as compilerRuntimeExports, b2 as useTranslation, j as jsxRuntimeExports, c7 as Checkbox, b0 as reactExports, c9 as Input, c8 as Select, c6 as Slider, dh as ReasoningEffort, di as Accordion, cr as TextArea, I as IconButton, f9 as FiArrowLeft, fa as AVAILABLE_PROVIDERS, cb as useApi, b4 as useSettingsStore, b5 as useSaveSettings, cC as Tooltip, F as FaInfoCircle, fb as FaExternalLinkAlt, fc as FaCheck, b7 as Button, cw as FaPlus, dg as getDefaultProviderParams, aV as v4, cl as FaTrash, fd as useResponsive, a as clsx, fe as FiMic, dq as FiEdit2, dt as FiTrash2, cm as ConfirmDialog, ff as FiCpu, fg as FaExclamationCircle, dv as FiPlus } from "./index-
|
|
2
|
-
import { I as InfoIcon } from "./InfoIcon-
|
|
1
|
+
import { c as compilerRuntimeExports, b2 as useTranslation, j as jsxRuntimeExports, c7 as Checkbox, b0 as reactExports, c9 as Input, c8 as Select, c6 as Slider, dh as ReasoningEffort, di as Accordion, cr as TextArea, I as IconButton, f9 as FiArrowLeft, fa as AVAILABLE_PROVIDERS, cb as useApi, b4 as useSettingsStore, b5 as useSaveSettings, cC as Tooltip, F as FaInfoCircle, fb as FaExternalLinkAlt, fc as FaCheck, b7 as Button, cw as FaPlus, dg as getDefaultProviderParams, aV as v4, cl as FaTrash, fd as useResponsive, a as clsx, fe as FiMic, dq as FiEdit2, dt as FiTrash2, cm as ConfirmDialog, ff as FiCpu, fg as FaExclamationCircle, dv as FiPlus } from "./index-Cmn9J2p1.js";
|
|
2
|
+
import { I as InfoIcon } from "./InfoIcon-BaDK-htg.js";
|
|
3
3
|
const DisableStreaming = (t0) => {
|
|
4
4
|
const $ = compilerRuntimeExports.c(13);
|
|
5
5
|
const {
|