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