@aiderdesk/aiderdesk 0.71.2-dev → 0.72.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 +87 -3
- package/out/renderer/assets/{AgentSettings-CGvSAJzP.js → AgentSettings-CEw1Tgyu.js} +133 -125
- package/out/renderer/assets/{InfoIcon-CWchJVTd.js → InfoIcon-B6bij_VJ.js} +1 -1
- package/out/renderer/assets/{Onboarding-DJOy0-Od.js → Onboarding-C2CtQOko.js} +4 -4
- package/out/renderer/assets/{ProviderHeader-BeAt2P8D.js → ProviderHeader-BCrdzdGT.js} +384 -165
- package/out/renderer/assets/{SettingsPage-iA6BPLfI.js → SettingsPage-CNCsKRS7.js} +647 -265
- package/out/renderer/assets/{UsageDashboard-Byo1Se6j.js → UsageDashboard-DtZ8GTj6.js} +3 -3
- package/out/renderer/assets/{arc-DMKtKWVp.js → arc-DnyT8oZ2.js} +1 -1
- package/out/renderer/assets/{architectureDiagram-3BPJPVTR-B6q0Xxlt.js → architectureDiagram-3BPJPVTR-Dus_2n--.js} +3 -3
- package/out/renderer/assets/{blockDiagram-GPEHLZMM-CwUkQOmu.js → blockDiagram-GPEHLZMM-A3REgcbw.js} +4 -4
- package/out/renderer/assets/{c4Diagram-AAUBKEIU-jfNF8o54.js → c4Diagram-AAUBKEIU-DksErR7z.js} +2 -2
- package/out/renderer/assets/{channel-CGSP36Ng.js → channel-DkjNDJNa.js} +1 -1
- package/out/renderer/assets/{chunk-2J33WTMH-m9o4-rdE.js → chunk-2J33WTMH-CrUC6pnQ.js} +1 -1
- package/out/renderer/assets/{chunk-4BX2VUAB-sBI0mD9g.js → chunk-4BX2VUAB-BulXGa1B.js} +1 -1
- package/out/renderer/assets/{chunk-55IACEB6-Bi-yVgmi.js → chunk-55IACEB6-pQjPbAe9.js} +1 -1
- package/out/renderer/assets/{chunk-727SXJPM-DeJ6FAqm.js → chunk-727SXJPM-BcqphFMh.js} +5 -5
- package/out/renderer/assets/{chunk-AQP2D5EJ-RYpGSg2J.js → chunk-AQP2D5EJ-DCREtqoW.js} +3 -3
- package/out/renderer/assets/{chunk-FMBD7UC4-DhXJts_9.js → chunk-FMBD7UC4-LFUgit2t.js} +1 -1
- package/out/renderer/assets/{chunk-ND2GUHAM-BmWa3jDz.js → chunk-ND2GUHAM-Bkunzp-9.js} +1 -1
- package/out/renderer/assets/{chunk-QZHKN3VN-BDCZFGDN.js → chunk-QZHKN3VN-foWYS4_y.js} +1 -1
- package/out/renderer/assets/{classDiagram-4FO5ZUOK-B5meZIas.js → classDiagram-4FO5ZUOK-CVbKiC6R.js} +6 -6
- package/out/renderer/assets/{classDiagram-v2-Q7XG4LA2-B5meZIas.js → classDiagram-v2-Q7XG4LA2-CVbKiC6R.js} +6 -6
- package/out/renderer/assets/{cose-bilkent-S5V4N54A-nN2TmyEI.js → cose-bilkent-S5V4N54A-Bw7reEuM.js} +1 -1
- package/out/renderer/assets/{dagre-BM42HDAG-CKF8Re4C.js → dagre-BM42HDAG-oGURKg82.js} +3 -3
- package/out/renderer/assets/{diagram-2AECGRRQ-BEz7N4-p.js → diagram-2AECGRRQ-kaoJ1YpU.js} +3 -3
- package/out/renderer/assets/{diagram-5GNKFQAL-DzixbxEI.js → diagram-5GNKFQAL-EvoHkNwk.js} +4 -4
- package/out/renderer/assets/{diagram-KO2AKTUF-DrU3hJT-.js → diagram-KO2AKTUF-D5N5hwBV.js} +3 -3
- package/out/renderer/assets/{diagram-LMA3HP47-DeV3p8aR.js → diagram-LMA3HP47-kKi9mSGe.js} +3 -3
- package/out/renderer/assets/{diagram-OG6HWLK6-DqkXt2nH.js → diagram-OG6HWLK6-BWJ9L5AP.js} +4 -4
- package/out/renderer/assets/{erDiagram-TEJ5UH35-BQPyNf4w.js → erDiagram-TEJ5UH35-d1W9ONuu.js} +4 -4
- package/out/renderer/assets/{flowDiagram-I6XJVG4X-D2v6iQ98.js → flowDiagram-I6XJVG4X-u5Xk-TTj.js} +6 -6
- package/out/renderer/assets/{ganttDiagram-6RSMTGT7-CkYOeW7M.js → ganttDiagram-6RSMTGT7-DiheBMSM.js} +3 -3
- package/out/renderer/assets/{gitGraphDiagram-PVQCEYII-g-Uk6P-N.js → gitGraphDiagram-PVQCEYII-B7hUlCNM.js} +4 -4
- package/out/renderer/assets/{graph-CV504Ptb.js → graph-D7JlCUW0.js} +1 -1
- package/out/renderer/assets/{index-U06SYLCN.js → index-3OKQF96N.js} +1 -1
- package/out/renderer/assets/{index-3BRmjDVt.js → index-BgXUknVd.js} +129 -30
- package/out/renderer/assets/{index-BKAL4gqM.js → index-ClS76F34.js} +1 -1
- package/out/renderer/assets/{index-BBiLtvNT.js → index-CzGef_M5.js} +1 -1
- package/out/renderer/assets/{index-BRRWavZT.js → index-D8P2TG70.js} +1 -1
- package/out/renderer/assets/{index-D4QsfuBU.css → index-DJwDiyPe.css} +8 -0
- package/out/renderer/assets/{index-Bup9YtMB.js → index-DOl0MdBC.js} +1 -1
- package/out/renderer/assets/{index-DWl6Lclq.js → index-DcFrLBMu.js} +1 -1
- package/out/renderer/assets/{index-McGZ6Dx1.js → index-Duwg55fn.js} +1 -1
- package/out/renderer/assets/{index-MWcT9iVP.js → index-biM8l5ZN.js} +3377 -1970
- package/out/renderer/assets/{index-BijIcXFX.js → index-gnQtDa4r.js} +1 -1
- package/out/renderer/assets/{infoDiagram-5YYISTIA-D7CDIKx-.js → infoDiagram-5YYISTIA-BNOwcP8d.js} +2 -2
- package/out/renderer/assets/{ishikawaDiagram-YF4QCWOH-Dy5lIJM3.js → ishikawaDiagram-YF4QCWOH-DZGvMXcI.js} +1 -1
- package/out/renderer/assets/{journeyDiagram-JHISSGLW-s4XQg-Ha.js → journeyDiagram-JHISSGLW-BF-SCAHN.js} +4 -4
- package/out/renderer/assets/{jsx-dev-runtime-D9-9kVso.js → jsx-dev-runtime-BZnUoQef.js} +1 -1
- package/out/renderer/assets/{kanban-definition-UN3LZRKU-BCWYozJY.js → kanban-definition-UN3LZRKU-Cp9SfO9v.js} +2 -2
- package/out/renderer/assets/{layout-DnWGEu0W.js → layout-BxWwRUTm.js} +2 -2
- package/out/renderer/assets/{linear-BP7dS-hv.js → linear-Cpdxqlgb.js} +1 -1
- package/out/renderer/assets/{mindmap-definition-RKZ34NQL-DpF4KI3g.js → mindmap-definition-RKZ34NQL-BtGsJF8k.js} +3 -3
- package/out/renderer/assets/{pieDiagram-4H26LBE5-B6ZbPky5.js → pieDiagram-4H26LBE5-choZS41J.js} +4 -4
- package/out/renderer/assets/{quadrantDiagram-W4KKPZXB-QcDi1tPp.js → quadrantDiagram-W4KKPZXB-CSEwIgFD.js} +2 -2
- package/out/renderer/assets/{requirementDiagram-4Y6WPE33-B1JR969o.js → requirementDiagram-4Y6WPE33-sCdLoMf0.js} +3 -3
- package/out/renderer/assets/{sankeyDiagram-5OEKKPKP-BJ5rhw2A.js → sankeyDiagram-5OEKKPKP-DunA5v4o.js} +1 -1
- package/out/renderer/assets/{sequenceDiagram-3UESZ5HK-AdtAIm4D.js → sequenceDiagram-3UESZ5HK-Cwz8rZA1.js} +3 -3
- package/out/renderer/assets/{stateDiagram-AJRCARHV--GQXQ4Qf.js → stateDiagram-AJRCARHV-VCMhb3e-.js} +6 -6
- package/out/renderer/assets/{stateDiagram-v2-BHNVJYJU-CQAnRm7m.js → stateDiagram-v2-BHNVJYJU-B9OcfdsH.js} +4 -4
- package/out/renderer/assets/{time-BUK5ZzpA.js → time-CtsiuOCL.js} +1 -1
- package/out/renderer/assets/{timeline-definition-PNZ67QCA-CRru39WZ.js → timeline-definition-PNZ67QCA-B36Hc_gQ.js} +2 -2
- package/out/renderer/assets/{vennDiagram-CIIHVFJN-KF7qF8WR.js → vennDiagram-CIIHVFJN-Dt2oWHz0.js} +1 -1
- package/out/renderer/assets/{wardley-L42UT6IY-D3pQt3SZ.js → wardley-L42UT6IY-DkWaUY9X.js} +1 -1
- package/out/renderer/assets/{wardleyDiagram-YWT4CUSO-D3zxlHug.js → wardleyDiagram-YWT4CUSO-BHFM3JNH.js} +3 -3
- package/out/renderer/assets/{xychartDiagram-2RQKCTM6-B_0-TgYJ.js → xychartDiagram-2RQKCTM6-2wqqMVJ7.js} +2 -2
- package/out/renderer/index.html +2 -2
- package/out/resources/connector/connector.py +6 -1
- package/out/runner.js +752 -313
- package/package.json +15 -19
- package/scripts/download-probe.mjs +9 -2
- package/scripts/generate-package.mjs +0 -1
- package/out/renderer/assets/gemini-cli-BKI4k4GP.png +0 -0
- package/patches/ai-sdk-provider-gemini-cli+1.5.1.patch +0 -373
package/out/cli.js
CHANGED
|
@@ -13,6 +13,10 @@ const pkgRoot = path.resolve(path.dirname(__filename), "..");
|
|
|
13
13
|
const resourcesDir = path.resolve(pkgRoot, "out", "resources");
|
|
14
14
|
const rendererDir = path.resolve(pkgRoot, "out", "renderer");
|
|
15
15
|
const runnerPath = path.resolve(pkgRoot, "out", "runner.js");
|
|
16
|
+
const probePlatformDir = process.platform === "win32" ? "win" : process.platform === "darwin" ? "macos" : "linux";
|
|
17
|
+
const probeExeName = process.platform === "win32" ? "probe.exe" : "probe";
|
|
18
|
+
const probeBinaryPath = path.join(resourcesDir, probePlatformDir, probeExeName);
|
|
19
|
+
const probeScriptPath = path.resolve(pkgRoot, "scripts", "download-probe.mjs");
|
|
16
20
|
function getPortFromEnv() {
|
|
17
21
|
const envPort = process.env.AIDER_DESK_PORT;
|
|
18
22
|
if (envPort) {
|
|
@@ -44,6 +48,61 @@ const c = {
|
|
|
44
48
|
boldWhite: (s) => `\x1B[1m\x1B[37m${s}\x1B[0m`,
|
|
45
49
|
bgCyanBlack: (s) => `\x1B[30m\x1B[46m${s}\x1B[0m`
|
|
46
50
|
};
|
|
51
|
+
function isProbeBinaryPresent() {
|
|
52
|
+
return fs.existsSync(probeBinaryPath);
|
|
53
|
+
}
|
|
54
|
+
function announce(line, sink, isError = false) {
|
|
55
|
+
if (sink) {
|
|
56
|
+
sink(line, isError);
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
const color = isError ? "\x1B[31m" : "\x1B[33m";
|
|
60
|
+
process.stderr.write(`${color}${line}\x1B[0m
|
|
61
|
+
`);
|
|
62
|
+
}
|
|
63
|
+
function ensureProbeBinary(onOutput) {
|
|
64
|
+
if (isProbeBinaryPresent()) return true;
|
|
65
|
+
const usePipe = typeof onOutput === "function";
|
|
66
|
+
announce(`Probe binary not found at ${probeBinaryPath}. Attempting to download...`, onOutput);
|
|
67
|
+
let result;
|
|
68
|
+
try {
|
|
69
|
+
result = child_process.spawnSync(process.execPath, [probeScriptPath, "--current-platform-only"], {
|
|
70
|
+
cwd: pkgRoot,
|
|
71
|
+
env: { ...process.env, RESOURCES_DIR: resourcesDir },
|
|
72
|
+
stdio: usePipe ? "pipe" : "inherit",
|
|
73
|
+
encoding: usePipe ? "utf8" : void 0
|
|
74
|
+
});
|
|
75
|
+
} catch (err) {
|
|
76
|
+
announce(`Failed to launch probe download script: ${err.message}`, onOutput, true);
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
if (result.error) {
|
|
80
|
+
announce(`Failed to download probe binary: ${result.error.message}`, onOutput, true);
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
if (usePipe) {
|
|
84
|
+
const stderr = result.stderr ?? "";
|
|
85
|
+
for (const rawLine of stderr.split("\n")) {
|
|
86
|
+
const line = rawLine.trim();
|
|
87
|
+
if (line) announce(line, onOutput, true);
|
|
88
|
+
}
|
|
89
|
+
const stdout = result.stdout ?? "";
|
|
90
|
+
for (const rawLine of stdout.split("\n")) {
|
|
91
|
+
const line = rawLine.trim();
|
|
92
|
+
if (line) announce(line, onOutput);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
if (typeof result.status === "number" && result.status !== 0) {
|
|
96
|
+
announce(`Probe download script exited with code ${result.status}.`, onOutput, true);
|
|
97
|
+
return false;
|
|
98
|
+
}
|
|
99
|
+
if (!isProbeBinaryPresent()) {
|
|
100
|
+
announce(`Probe binary still not found at ${probeBinaryPath} after download attempt.`, onOutput, true);
|
|
101
|
+
return false;
|
|
102
|
+
}
|
|
103
|
+
announce("Probe binary downloaded successfully.", onOutput);
|
|
104
|
+
return true;
|
|
105
|
+
}
|
|
47
106
|
function getRunnerEnv(port) {
|
|
48
107
|
const env = {
|
|
49
108
|
...process.env,
|
|
@@ -58,14 +117,25 @@ function getRunnerEnv(port) {
|
|
|
58
117
|
}
|
|
59
118
|
return env;
|
|
60
119
|
}
|
|
61
|
-
function spawnRunnerProcess(port, stdio) {
|
|
120
|
+
function spawnRunnerProcess(port, stdio, onEnsureProbeOutput) {
|
|
121
|
+
if (!ensureProbeBinary(onEnsureProbeOutput)) {
|
|
122
|
+
throw new Error(
|
|
123
|
+
"Probe binary is missing and could not be downloaded. Semantic search will not be available. Re-run the probe download manually: RESOURCES_DIR=./out/resources node scripts/download-probe.mjs --current-platform-only"
|
|
124
|
+
);
|
|
125
|
+
}
|
|
62
126
|
return child_process.spawn(process.execPath, [runnerPath], {
|
|
63
127
|
env: getRunnerEnv(port),
|
|
64
128
|
stdio
|
|
65
129
|
});
|
|
66
130
|
}
|
|
67
131
|
function spawnRunner(port, stdio) {
|
|
68
|
-
|
|
132
|
+
let child;
|
|
133
|
+
try {
|
|
134
|
+
child = spawnRunnerProcess(port, stdio);
|
|
135
|
+
} catch (err) {
|
|
136
|
+
console.error(`Failed to start: ${err.message}`);
|
|
137
|
+
process.exit(1);
|
|
138
|
+
}
|
|
69
139
|
const forwardSignal = (signal) => {
|
|
70
140
|
child.kill(signal);
|
|
71
141
|
};
|
|
@@ -151,7 +221,21 @@ class AiderDeskCli {
|
|
|
151
221
|
this.logBuffer.clear();
|
|
152
222
|
this.selectedMenuIndex = 0;
|
|
153
223
|
this.invalidate();
|
|
154
|
-
|
|
224
|
+
try {
|
|
225
|
+
this.childProcess = spawnRunnerProcess(
|
|
226
|
+
this.configuredPort,
|
|
227
|
+
["pipe", "pipe", "pipe"],
|
|
228
|
+
(line, isError) => {
|
|
229
|
+
this.logBuffer.push(isError ? c.red(line) : c.cyan(line));
|
|
230
|
+
}
|
|
231
|
+
);
|
|
232
|
+
} catch (err) {
|
|
233
|
+
this.logBuffer.push(c.red(`Failed to start: ${err.message}`));
|
|
234
|
+
this.state = "idle";
|
|
235
|
+
this.invalidate();
|
|
236
|
+
this.tui.requestRender();
|
|
237
|
+
return;
|
|
238
|
+
}
|
|
155
239
|
const handleOutput = (data) => {
|
|
156
240
|
const text = data.toString();
|
|
157
241
|
const lines = text.split("\n").filter((l) => l.trim());
|