coding-agent-adapters 0.2.13 → 0.2.16
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/README.md +137 -85
- package/dist/index.cjs +409 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +45 -4
- package/dist/index.d.ts +45 -4
- package/dist/index.js +409 -23
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -153,6 +153,12 @@ declare class GeminiAdapter extends BaseCodingAdapter {
|
|
|
153
153
|
readonly adapterType = "gemini";
|
|
154
154
|
readonly displayName = "Google Gemini";
|
|
155
155
|
readonly installation: InstallationInfo;
|
|
156
|
+
/**
|
|
157
|
+
* Auto-response rules for Gemini CLI.
|
|
158
|
+
* Gemini uses Ink/React TUI with arrow-key radio menus.
|
|
159
|
+
* Source: FolderTrustDialog.tsx, MultiFolderTrustDialog.tsx, CloudFreePrivacyNotice.tsx
|
|
160
|
+
*/
|
|
161
|
+
readonly autoResponseRules: AutoResponseRule[];
|
|
156
162
|
getRecommendedModels(_credentials?: AgentCredentials): ModelRecommendations;
|
|
157
163
|
getCommand(): string;
|
|
158
164
|
getArgs(config: SpawnConfig): string[];
|
|
@@ -161,6 +167,15 @@ declare class GeminiAdapter extends BaseCodingAdapter {
|
|
|
161
167
|
detectBlockingPrompt(output: string): BlockingPromptDetection;
|
|
162
168
|
detectReady(output: string): boolean;
|
|
163
169
|
parseOutput(output: string): ParsedOutput | null;
|
|
170
|
+
/**
|
|
171
|
+
* Detect exit conditions specific to Gemini CLI.
|
|
172
|
+
* Source: FolderTrustDialog.tsx:127, LogoutConfirmationDialog.tsx:64
|
|
173
|
+
*/
|
|
174
|
+
detectExit(output: string): {
|
|
175
|
+
exited: boolean;
|
|
176
|
+
code?: number;
|
|
177
|
+
error?: string;
|
|
178
|
+
};
|
|
164
179
|
getPromptPattern(): RegExp;
|
|
165
180
|
getHealthCheckCommand(): string;
|
|
166
181
|
}
|
|
@@ -177,7 +192,8 @@ declare class CodexAdapter extends BaseCodingAdapter {
|
|
|
177
192
|
readonly installation: InstallationInfo;
|
|
178
193
|
/**
|
|
179
194
|
* Auto-response rules for OpenAI Codex CLI.
|
|
180
|
-
* Codex uses
|
|
195
|
+
* Codex uses ratatui/crossterm full-screen TUI with arrow-key menus.
|
|
196
|
+
* Source: trust_directory.rs, update_prompt.rs, model_migration.rs, cwd_prompt.rs, chatwidget.rs, main.rs
|
|
181
197
|
*/
|
|
182
198
|
readonly autoResponseRules: AutoResponseRule[];
|
|
183
199
|
getRecommendedModels(_credentials?: AgentCredentials): ModelRecommendations;
|
|
@@ -186,11 +202,21 @@ declare class CodexAdapter extends BaseCodingAdapter {
|
|
|
186
202
|
getEnv(config: SpawnConfig): Record<string, string>;
|
|
187
203
|
detectLogin(output: string): LoginDetection;
|
|
188
204
|
/**
|
|
189
|
-
* Detect blocking prompts specific to OpenAI Codex CLI
|
|
205
|
+
* Detect blocking prompts specific to OpenAI Codex CLI.
|
|
206
|
+
* Source: approval_overlay.rs, chatwidget.rs, request_user_input/mod.rs
|
|
190
207
|
*/
|
|
191
208
|
detectBlockingPrompt(output: string): BlockingPromptDetection;
|
|
192
209
|
detectReady(output: string): boolean;
|
|
193
210
|
parseOutput(output: string): ParsedOutput | null;
|
|
211
|
+
/**
|
|
212
|
+
* Detect exit conditions specific to Codex CLI.
|
|
213
|
+
* Source: main.rs:404, main.rs:414, main.rs:461
|
|
214
|
+
*/
|
|
215
|
+
detectExit(output: string): {
|
|
216
|
+
exited: boolean;
|
|
217
|
+
code?: number;
|
|
218
|
+
error?: string;
|
|
219
|
+
};
|
|
194
220
|
getPromptPattern(): RegExp;
|
|
195
221
|
getHealthCheckCommand(): string;
|
|
196
222
|
}
|
|
@@ -212,8 +238,10 @@ declare class AiderAdapter extends BaseCodingAdapter {
|
|
|
212
238
|
readonly installation: InstallationInfo;
|
|
213
239
|
/**
|
|
214
240
|
* Auto-response rules for Aider CLI.
|
|
215
|
-
* Aider uses plain text
|
|
216
|
-
*
|
|
241
|
+
* Aider uses plain text prompts via io.py:832 with (Y)es/(N)o format.
|
|
242
|
+
* All rules are responseType: 'text' — Aider never uses TUI menus.
|
|
243
|
+
*
|
|
244
|
+
* Decline rules come first to override the generic accept patterns.
|
|
217
245
|
*/
|
|
218
246
|
readonly autoResponseRules: AutoResponseRule[];
|
|
219
247
|
getRecommendedModels(credentials?: AgentCredentials): ModelRecommendations;
|
|
@@ -221,9 +249,22 @@ declare class AiderAdapter extends BaseCodingAdapter {
|
|
|
221
249
|
getArgs(config: SpawnConfig): string[];
|
|
222
250
|
getEnv(config: SpawnConfig): Record<string, string>;
|
|
223
251
|
detectLogin(output: string): LoginDetection;
|
|
252
|
+
/**
|
|
253
|
+
* Detect blocking prompts specific to Aider CLI.
|
|
254
|
+
* Source: io.py, onboarding.py, base_coder.py, report.py
|
|
255
|
+
*/
|
|
224
256
|
detectBlockingPrompt(output: string): BlockingPromptDetection;
|
|
225
257
|
detectReady(output: string): boolean;
|
|
226
258
|
parseOutput(output: string): ParsedOutput | null;
|
|
259
|
+
/**
|
|
260
|
+
* Detect exit conditions specific to Aider.
|
|
261
|
+
* Source: base_coder.py:994, base_coder.py:998, report.py:77, versioncheck.py:58
|
|
262
|
+
*/
|
|
263
|
+
detectExit(output: string): {
|
|
264
|
+
exited: boolean;
|
|
265
|
+
code?: number;
|
|
266
|
+
error?: string;
|
|
267
|
+
};
|
|
227
268
|
getPromptPattern(): RegExp;
|
|
228
269
|
getHealthCheckCommand(): string;
|
|
229
270
|
}
|