@neovate/code 0.19.0 → 0.20.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/cli.mjs +1842 -1899
- package/dist/index.d.ts +223 -1
- package/dist/index.mjs +1842 -1899
- package/package.json +22 -23
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,9 @@ import type { OpenAIProvider } from '@ai-sdk/openai';
|
|
|
4
4
|
import * as z from 'zod';
|
|
5
5
|
import { z as _zod } from 'zod';
|
|
6
6
|
|
|
7
|
+
/** Supported application types for open and detect operations */
|
|
8
|
+
declare type App = 'cursor' | 'vscode' | 'vscode-insiders' | 'zed' | 'windsurf' | 'iterm' | 'warp' | 'terminal' | 'antigravity' | 'finder' | 'sourcetree';
|
|
9
|
+
|
|
7
10
|
declare type ApprovalCategory = 'read' | 'write' | 'command' | 'network' | 'ask';
|
|
8
11
|
|
|
9
12
|
declare type ApprovalContext = {
|
|
@@ -177,6 +180,7 @@ export declare class Context {
|
|
|
177
180
|
mcpManager: MCPManager;
|
|
178
181
|
backgroundTaskManager: BackgroundTaskManager;
|
|
179
182
|
messageBus?: MessageBus;
|
|
183
|
+
plugins: (string | Plugin_2)[];
|
|
180
184
|
constructor(opts: ContextOpts);
|
|
181
185
|
apply(applyOpts: Omit<PluginApplyOpts, 'pluginContext'>): Promise<any>;
|
|
182
186
|
destroy(): Promise<void>;
|
|
@@ -205,6 +209,7 @@ declare type ContextOpts = {
|
|
|
205
209
|
mcpManager: MCPManager;
|
|
206
210
|
backgroundTaskManager: BackgroundTaskManager;
|
|
207
211
|
messageBus?: MessageBus;
|
|
212
|
+
plugins: (string | Plugin_2)[];
|
|
208
213
|
};
|
|
209
214
|
|
|
210
215
|
declare interface CreateTaskInput {
|
|
@@ -247,6 +252,12 @@ declare type DiffViewerReturnDisplay = {
|
|
|
247
252
|
|
|
248
253
|
declare type Enforce = 'pre' | 'post';
|
|
249
254
|
|
|
255
|
+
/** Standard error response */
|
|
256
|
+
declare type ErrorResponse = {
|
|
257
|
+
success: false;
|
|
258
|
+
error: string;
|
|
259
|
+
};
|
|
260
|
+
|
|
250
261
|
declare type EventHandler = (data: any) => void;
|
|
251
262
|
|
|
252
263
|
declare type EventMessage = BaseMessage & {
|
|
@@ -255,6 +266,72 @@ declare type EventMessage = BaseMessage & {
|
|
|
255
266
|
data: any;
|
|
256
267
|
};
|
|
257
268
|
|
|
269
|
+
declare type GitCloneInput = {
|
|
270
|
+
url: string;
|
|
271
|
+
destination: string;
|
|
272
|
+
taskId?: string;
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
declare type GitCloneOutput = {
|
|
276
|
+
success: boolean;
|
|
277
|
+
data?: {
|
|
278
|
+
clonePath: string;
|
|
279
|
+
repoName: string;
|
|
280
|
+
};
|
|
281
|
+
error?: string;
|
|
282
|
+
errorCode?: string;
|
|
283
|
+
needsCredentials?: boolean;
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
declare type GitCommitInput = {
|
|
287
|
+
cwd: string;
|
|
288
|
+
message: string;
|
|
289
|
+
noVerify?: boolean;
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
declare type GitCreateBranchInput = {
|
|
293
|
+
cwd: string;
|
|
294
|
+
name: string;
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
declare type GitCreateBranchOutput = {
|
|
298
|
+
success: boolean;
|
|
299
|
+
data?: {
|
|
300
|
+
branchName: string;
|
|
301
|
+
wasRenamed: boolean;
|
|
302
|
+
};
|
|
303
|
+
error?: string;
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
declare type GitPushInput = {
|
|
307
|
+
cwd: string;
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
declare type GitStageInput = {
|
|
311
|
+
cwd: string;
|
|
312
|
+
all?: boolean;
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
declare type GitStatusInput = {
|
|
316
|
+
cwd: string;
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
declare type GitStatusOutput = {
|
|
320
|
+
success: boolean;
|
|
321
|
+
data?: {
|
|
322
|
+
isRepo: boolean;
|
|
323
|
+
hasUncommittedChanges: boolean;
|
|
324
|
+
hasStagedChanges: boolean;
|
|
325
|
+
isGitInstalled: boolean;
|
|
326
|
+
isUserConfigured: {
|
|
327
|
+
name: boolean;
|
|
328
|
+
email: boolean;
|
|
329
|
+
};
|
|
330
|
+
isMerging: boolean;
|
|
331
|
+
};
|
|
332
|
+
error?: string;
|
|
333
|
+
};
|
|
334
|
+
|
|
258
335
|
/**
|
|
259
336
|
* Central type registry for all message bus handlers.
|
|
260
337
|
* Maps handler method names to their input and output types.
|
|
@@ -276,6 +353,36 @@ declare type HandlerMap = {
|
|
|
276
353
|
input: ConfigListInput;
|
|
277
354
|
output: ConfigListOutput;
|
|
278
355
|
};
|
|
356
|
+
'git.clone': {
|
|
357
|
+
input: GitCloneInput;
|
|
358
|
+
output: GitCloneOutput;
|
|
359
|
+
};
|
|
360
|
+
'git.clone.cancel': {
|
|
361
|
+
input: {
|
|
362
|
+
taskId: string;
|
|
363
|
+
};
|
|
364
|
+
output: SuccessResponse;
|
|
365
|
+
};
|
|
366
|
+
'git.status': {
|
|
367
|
+
input: GitStatusInput;
|
|
368
|
+
output: GitStatusOutput;
|
|
369
|
+
};
|
|
370
|
+
'git.stage': {
|
|
371
|
+
input: GitStageInput;
|
|
372
|
+
output: SuccessResponse | ErrorResponse;
|
|
373
|
+
};
|
|
374
|
+
'git.commit': {
|
|
375
|
+
input: GitCommitInput;
|
|
376
|
+
output: SuccessResponse | ErrorResponse;
|
|
377
|
+
};
|
|
378
|
+
'git.push': {
|
|
379
|
+
input: GitPushInput;
|
|
380
|
+
output: SuccessResponse | ErrorResponse;
|
|
381
|
+
};
|
|
382
|
+
'git.createBranch': {
|
|
383
|
+
input: GitCreateBranchInput;
|
|
384
|
+
output: GitCreateBranchOutput;
|
|
385
|
+
};
|
|
279
386
|
'mcp.getStatus': {
|
|
280
387
|
input: McpGetStatusInput;
|
|
281
388
|
output: McpGetStatusOutput;
|
|
@@ -340,6 +447,10 @@ declare type HandlerMap = {
|
|
|
340
447
|
input: ProjectWorkspacesCreateGithubPRInput;
|
|
341
448
|
output: ProjectWorkspacesCreateGithubPROutput;
|
|
342
449
|
};
|
|
450
|
+
'project.generateCommit': {
|
|
451
|
+
input: ProjectGenerateCommitInput;
|
|
452
|
+
output: ProjectGenerateCommitOutput;
|
|
453
|
+
};
|
|
343
454
|
'providers.list': {
|
|
344
455
|
input: ProvidersListInput;
|
|
345
456
|
output: ProvidersListOutput;
|
|
@@ -352,6 +463,10 @@ declare type HandlerMap = {
|
|
|
352
463
|
input: SessionMessagesListInput;
|
|
353
464
|
output: SessionMessagesListOutput;
|
|
354
465
|
};
|
|
466
|
+
'session.getModel': {
|
|
467
|
+
input: SessionGetModelInput;
|
|
468
|
+
output: SessionGetModelOutput;
|
|
469
|
+
};
|
|
355
470
|
'session.send': {
|
|
356
471
|
input: SessionSendInput;
|
|
357
472
|
output: SessionSendOutput;
|
|
@@ -400,6 +515,18 @@ declare type HandlerMap = {
|
|
|
400
515
|
input: SessionConfigRemoveDirectoryInput;
|
|
401
516
|
output: SuccessResponse;
|
|
402
517
|
};
|
|
518
|
+
'session.config.set': {
|
|
519
|
+
input: SessionConfigSetInput;
|
|
520
|
+
output: SuccessResponse;
|
|
521
|
+
};
|
|
522
|
+
'session.config.get': {
|
|
523
|
+
input: SessionConfigGetInput;
|
|
524
|
+
output: SessionConfigGetOutput;
|
|
525
|
+
};
|
|
526
|
+
'session.config.remove': {
|
|
527
|
+
input: SessionConfigRemoveInput;
|
|
528
|
+
output: SuccessResponse;
|
|
529
|
+
};
|
|
403
530
|
'sessions.list': {
|
|
404
531
|
input: SessionsListInput;
|
|
405
532
|
output: SessionsListOutput;
|
|
@@ -452,6 +579,14 @@ declare type HandlerMap = {
|
|
|
452
579
|
input: UtilsToolExecuteBashInput;
|
|
453
580
|
output: UtilsToolExecuteBashOutput;
|
|
454
581
|
};
|
|
582
|
+
'utils.open': {
|
|
583
|
+
input: UtilsOpenInput;
|
|
584
|
+
output: SuccessResponse;
|
|
585
|
+
};
|
|
586
|
+
'utils.detectApps': {
|
|
587
|
+
input: UtilsDetectAppsInput;
|
|
588
|
+
output: UtilsDetectAppsOutput;
|
|
589
|
+
};
|
|
455
590
|
toolApproval: {
|
|
456
591
|
input: ToolApprovalInput;
|
|
457
592
|
output: ToolApprovalOutput;
|
|
@@ -951,6 +1086,26 @@ declare type ProjectClearContextInput = {
|
|
|
951
1086
|
cwd?: string;
|
|
952
1087
|
};
|
|
953
1088
|
|
|
1089
|
+
declare type ProjectGenerateCommitInput = {
|
|
1090
|
+
cwd: string;
|
|
1091
|
+
language?: string;
|
|
1092
|
+
systemPrompt?: string;
|
|
1093
|
+
model?: string;
|
|
1094
|
+
diff?: string;
|
|
1095
|
+
fileList?: string;
|
|
1096
|
+
};
|
|
1097
|
+
|
|
1098
|
+
declare type ProjectGenerateCommitOutput = {
|
|
1099
|
+
success: boolean;
|
|
1100
|
+
error?: string;
|
|
1101
|
+
data?: {
|
|
1102
|
+
commitMessage: string;
|
|
1103
|
+
branchName: string;
|
|
1104
|
+
isBreakingChange: boolean;
|
|
1105
|
+
summary: string;
|
|
1106
|
+
};
|
|
1107
|
+
};
|
|
1108
|
+
|
|
954
1109
|
declare type ProjectGetRepoInfoInput = {
|
|
955
1110
|
cwd: string;
|
|
956
1111
|
};
|
|
@@ -1206,18 +1361,44 @@ declare type SessionConfigGetAdditionalDirectoriesOutput = {
|
|
|
1206
1361
|
};
|
|
1207
1362
|
};
|
|
1208
1363
|
|
|
1364
|
+
declare type SessionConfigGetInput = {
|
|
1365
|
+
cwd: string;
|
|
1366
|
+
sessionId: string;
|
|
1367
|
+
key?: string;
|
|
1368
|
+
};
|
|
1369
|
+
|
|
1370
|
+
declare type SessionConfigGetOutput = {
|
|
1371
|
+
success: boolean;
|
|
1372
|
+
data: {
|
|
1373
|
+
value: any;
|
|
1374
|
+
};
|
|
1375
|
+
};
|
|
1376
|
+
|
|
1209
1377
|
declare type SessionConfigRemoveDirectoryInput = {
|
|
1210
1378
|
cwd: string;
|
|
1211
1379
|
sessionId: string;
|
|
1212
1380
|
directory: string;
|
|
1213
1381
|
};
|
|
1214
1382
|
|
|
1383
|
+
declare type SessionConfigRemoveInput = {
|
|
1384
|
+
cwd: string;
|
|
1385
|
+
sessionId: string;
|
|
1386
|
+
key: string;
|
|
1387
|
+
};
|
|
1388
|
+
|
|
1215
1389
|
declare type SessionConfigSetApprovalModeInput = {
|
|
1216
1390
|
cwd: string;
|
|
1217
1391
|
sessionId: string;
|
|
1218
1392
|
approvalMode: ApprovalMode;
|
|
1219
1393
|
};
|
|
1220
1394
|
|
|
1395
|
+
declare type SessionConfigSetInput = {
|
|
1396
|
+
cwd: string;
|
|
1397
|
+
sessionId: string;
|
|
1398
|
+
key: string;
|
|
1399
|
+
value: any;
|
|
1400
|
+
};
|
|
1401
|
+
|
|
1221
1402
|
declare type SessionConfigSetPastedImageMapInput = {
|
|
1222
1403
|
cwd: string;
|
|
1223
1404
|
sessionId: string;
|
|
@@ -1236,6 +1417,29 @@ declare type SessionConfigSetSummaryInput = {
|
|
|
1236
1417
|
summary: string;
|
|
1237
1418
|
};
|
|
1238
1419
|
|
|
1420
|
+
declare type SessionGetModelInput = {
|
|
1421
|
+
cwd: string;
|
|
1422
|
+
sessionId: string;
|
|
1423
|
+
includeModelInfo?: boolean;
|
|
1424
|
+
};
|
|
1425
|
+
|
|
1426
|
+
declare type SessionGetModelOutput = {
|
|
1427
|
+
success: true;
|
|
1428
|
+
data: {
|
|
1429
|
+
model: string | null;
|
|
1430
|
+
};
|
|
1431
|
+
} | {
|
|
1432
|
+
success: true;
|
|
1433
|
+
data: {
|
|
1434
|
+
model: string | null;
|
|
1435
|
+
modelInfo: ModelInfo | null;
|
|
1436
|
+
providers: ProvidersMap;
|
|
1437
|
+
};
|
|
1438
|
+
} | {
|
|
1439
|
+
success: false;
|
|
1440
|
+
error: any;
|
|
1441
|
+
};
|
|
1442
|
+
|
|
1239
1443
|
declare type SessionInitializeInput = {
|
|
1240
1444
|
cwd: string;
|
|
1241
1445
|
sessionId?: string;
|
|
@@ -1375,7 +1579,7 @@ declare type StatusGetOutput = {
|
|
|
1375
1579
|
|
|
1376
1580
|
/** Standard success response without data */
|
|
1377
1581
|
declare type SuccessResponse = {
|
|
1378
|
-
success:
|
|
1582
|
+
success: true;
|
|
1379
1583
|
};
|
|
1380
1584
|
|
|
1381
1585
|
declare type SystemMessage = {
|
|
@@ -1535,6 +1739,18 @@ declare type UserMessage = {
|
|
|
1535
1739
|
hidden?: boolean;
|
|
1536
1740
|
};
|
|
1537
1741
|
|
|
1742
|
+
declare type UtilsDetectAppsInput = {
|
|
1743
|
+
cwd: string;
|
|
1744
|
+
apps?: App[];
|
|
1745
|
+
};
|
|
1746
|
+
|
|
1747
|
+
declare type UtilsDetectAppsOutput = {
|
|
1748
|
+
success: boolean;
|
|
1749
|
+
data: {
|
|
1750
|
+
apps: App[];
|
|
1751
|
+
};
|
|
1752
|
+
};
|
|
1753
|
+
|
|
1538
1754
|
declare type UtilsFilesListInput = {
|
|
1539
1755
|
cwd: string;
|
|
1540
1756
|
query?: string;
|
|
@@ -1559,6 +1775,12 @@ declare type UtilsGetPathsOutput = {
|
|
|
1559
1775
|
};
|
|
1560
1776
|
};
|
|
1561
1777
|
|
|
1778
|
+
declare type UtilsOpenInput = {
|
|
1779
|
+
cwd: string;
|
|
1780
|
+
sessionId?: string;
|
|
1781
|
+
app: App;
|
|
1782
|
+
};
|
|
1783
|
+
|
|
1562
1784
|
declare type UtilsQueryInput = {
|
|
1563
1785
|
userPrompt: string;
|
|
1564
1786
|
cwd: string;
|