@neovate/code 0.18.2 → 0.19.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 +1505 -1337
- package/dist/index.d.ts +876 -2
- package/dist/index.mjs +1505 -1337
- package/dist/mcps/chrome-devtools-mcp.mjs +97 -97
- package/package.json +24 -23
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ 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
|
-
declare type ApprovalCategory = 'read' | 'write' | 'command' | 'network';
|
|
7
|
+
declare type ApprovalCategory = 'read' | 'write' | 'command' | 'network' | 'ask';
|
|
8
8
|
|
|
9
9
|
declare type ApprovalContext = {
|
|
10
10
|
toolName: string;
|
|
@@ -96,6 +96,44 @@ declare type Config = {
|
|
|
96
96
|
autoUpdate?: boolean;
|
|
97
97
|
browser?: boolean;
|
|
98
98
|
temperature?: number;
|
|
99
|
+
httpProxy?: string;
|
|
100
|
+
desktop?: DesktopConfig;
|
|
101
|
+
/**
|
|
102
|
+
* Extensions configuration for third-party custom agents.
|
|
103
|
+
* Allows arbitrary nested configuration without validation.
|
|
104
|
+
*/
|
|
105
|
+
extensions?: Record<string, any>;
|
|
106
|
+
/**
|
|
107
|
+
* Tools configuration for enabling/disabling specific tools.
|
|
108
|
+
* Key is the tool name, value is boolean (false to disable).
|
|
109
|
+
*/
|
|
110
|
+
tools?: Record<string, boolean>;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
declare type ConfigGetInput = {
|
|
114
|
+
cwd: string;
|
|
115
|
+
isGlobal: boolean;
|
|
116
|
+
key: string;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
declare type ConfigGetOutput = {
|
|
120
|
+
success: boolean;
|
|
121
|
+
data: {
|
|
122
|
+
value: any;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
declare type ConfigListInput = {
|
|
127
|
+
cwd: string;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
declare type ConfigListOutput = {
|
|
131
|
+
success: boolean;
|
|
132
|
+
data: {
|
|
133
|
+
globalConfigDir: string;
|
|
134
|
+
projectConfigDir: string;
|
|
135
|
+
config: any;
|
|
136
|
+
};
|
|
99
137
|
};
|
|
100
138
|
|
|
101
139
|
export declare class _ConfigManager {
|
|
@@ -113,6 +151,20 @@ export declare class _ConfigManager {
|
|
|
113
151
|
updateConfig(global: boolean, newConfig: Partial<Config>): void;
|
|
114
152
|
}
|
|
115
153
|
|
|
154
|
+
declare type ConfigRemoveInput = {
|
|
155
|
+
cwd: string;
|
|
156
|
+
isGlobal: boolean;
|
|
157
|
+
key: string;
|
|
158
|
+
values?: string[];
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
declare type ConfigSetInput = {
|
|
162
|
+
cwd: string;
|
|
163
|
+
isGlobal: boolean;
|
|
164
|
+
key: string;
|
|
165
|
+
value: string;
|
|
166
|
+
};
|
|
167
|
+
|
|
116
168
|
export declare class Context {
|
|
117
169
|
#private;
|
|
118
170
|
cwd: string;
|
|
@@ -163,6 +215,7 @@ declare interface CreateTaskInput {
|
|
|
163
215
|
|
|
164
216
|
export declare function createTool<TSchema extends z.ZodTypeAny>(config: {
|
|
165
217
|
name: string;
|
|
218
|
+
displayName?: string;
|
|
166
219
|
description: string;
|
|
167
220
|
parameters: TSchema;
|
|
168
221
|
execute: (params: z.output<TSchema>) => Promise<ToolResult> | ToolResult;
|
|
@@ -173,6 +226,13 @@ export declare function createTool<TSchema extends z.ZodTypeAny>(config: {
|
|
|
173
226
|
}) => string;
|
|
174
227
|
}): Tool<TSchema>;
|
|
175
228
|
|
|
229
|
+
declare type DesktopConfig = {
|
|
230
|
+
theme?: 'light' | 'dark' | 'system';
|
|
231
|
+
sendMessageWith?: 'enter' | 'cmdEnter';
|
|
232
|
+
terminalFont?: string;
|
|
233
|
+
terminalFontSize?: number;
|
|
234
|
+
};
|
|
235
|
+
|
|
176
236
|
declare type DiffViewerReturnDisplay = {
|
|
177
237
|
type: 'diff_viewer';
|
|
178
238
|
originalContent: string | {
|
|
@@ -195,6 +255,209 @@ declare type EventMessage = BaseMessage & {
|
|
|
195
255
|
data: any;
|
|
196
256
|
};
|
|
197
257
|
|
|
258
|
+
/**
|
|
259
|
+
* Central type registry for all message bus handlers.
|
|
260
|
+
* Maps handler method names to their input and output types.
|
|
261
|
+
*/
|
|
262
|
+
declare type HandlerMap = {
|
|
263
|
+
'config.get': {
|
|
264
|
+
input: ConfigGetInput;
|
|
265
|
+
output: ConfigGetOutput;
|
|
266
|
+
};
|
|
267
|
+
'config.set': {
|
|
268
|
+
input: ConfigSetInput;
|
|
269
|
+
output: SuccessResponse;
|
|
270
|
+
};
|
|
271
|
+
'config.remove': {
|
|
272
|
+
input: ConfigRemoveInput;
|
|
273
|
+
output: SuccessResponse;
|
|
274
|
+
};
|
|
275
|
+
'config.list': {
|
|
276
|
+
input: ConfigListInput;
|
|
277
|
+
output: ConfigListOutput;
|
|
278
|
+
};
|
|
279
|
+
'mcp.getStatus': {
|
|
280
|
+
input: McpGetStatusInput;
|
|
281
|
+
output: McpGetStatusOutput;
|
|
282
|
+
};
|
|
283
|
+
'mcp.reconnect': {
|
|
284
|
+
input: McpReconnectInput;
|
|
285
|
+
output: McpReconnectOutput;
|
|
286
|
+
};
|
|
287
|
+
'mcp.list': {
|
|
288
|
+
input: McpListInput;
|
|
289
|
+
output: McpListOutput;
|
|
290
|
+
};
|
|
291
|
+
'models.list': {
|
|
292
|
+
input: ModelsListInput;
|
|
293
|
+
output: ModelsListOutput;
|
|
294
|
+
};
|
|
295
|
+
'outputStyles.list': {
|
|
296
|
+
input: OutputStylesListInput;
|
|
297
|
+
output: OutputStylesListOutput;
|
|
298
|
+
};
|
|
299
|
+
'project.addHistory': {
|
|
300
|
+
input: ProjectAddHistoryInput;
|
|
301
|
+
output: SuccessResponse;
|
|
302
|
+
};
|
|
303
|
+
'project.clearContext': {
|
|
304
|
+
input: ProjectClearContextInput;
|
|
305
|
+
output: SuccessResponse;
|
|
306
|
+
};
|
|
307
|
+
'project.addMemory': {
|
|
308
|
+
input: ProjectAddMemoryInput;
|
|
309
|
+
output: SuccessResponse;
|
|
310
|
+
};
|
|
311
|
+
'project.analyzeContext': {
|
|
312
|
+
input: ProjectAnalyzeContextInput;
|
|
313
|
+
output: ProjectAnalyzeContextOutput;
|
|
314
|
+
};
|
|
315
|
+
'project.getRepoInfo': {
|
|
316
|
+
input: ProjectGetRepoInfoInput;
|
|
317
|
+
output: ProjectGetRepoInfoOutput;
|
|
318
|
+
};
|
|
319
|
+
'project.workspaces.list': {
|
|
320
|
+
input: ProjectWorkspacesListInput;
|
|
321
|
+
output: ProjectWorkspacesListOutput;
|
|
322
|
+
};
|
|
323
|
+
'project.workspaces.get': {
|
|
324
|
+
input: ProjectWorkspacesGetInput;
|
|
325
|
+
output: ProjectWorkspacesGetOutput;
|
|
326
|
+
};
|
|
327
|
+
'project.workspaces.create': {
|
|
328
|
+
input: ProjectWorkspacesCreateInput;
|
|
329
|
+
output: ProjectWorkspacesCreateOutput;
|
|
330
|
+
};
|
|
331
|
+
'project.workspaces.delete': {
|
|
332
|
+
input: ProjectWorkspacesDeleteInput;
|
|
333
|
+
output: ProjectWorkspacesDeleteOutput;
|
|
334
|
+
};
|
|
335
|
+
'project.workspaces.merge': {
|
|
336
|
+
input: ProjectWorkspacesMergeInput;
|
|
337
|
+
output: ProjectWorkspacesMergeOutput;
|
|
338
|
+
};
|
|
339
|
+
'project.workspaces.createGithubPR': {
|
|
340
|
+
input: ProjectWorkspacesCreateGithubPRInput;
|
|
341
|
+
output: ProjectWorkspacesCreateGithubPROutput;
|
|
342
|
+
};
|
|
343
|
+
'providers.list': {
|
|
344
|
+
input: ProvidersListInput;
|
|
345
|
+
output: ProvidersListOutput;
|
|
346
|
+
};
|
|
347
|
+
'session.initialize': {
|
|
348
|
+
input: SessionInitializeInput;
|
|
349
|
+
output: SessionInitializeOutput;
|
|
350
|
+
};
|
|
351
|
+
'session.messages.list': {
|
|
352
|
+
input: SessionMessagesListInput;
|
|
353
|
+
output: SessionMessagesListOutput;
|
|
354
|
+
};
|
|
355
|
+
'session.send': {
|
|
356
|
+
input: SessionSendInput;
|
|
357
|
+
output: SessionSendOutput;
|
|
358
|
+
};
|
|
359
|
+
'session.cancel': {
|
|
360
|
+
input: SessionCancelInput;
|
|
361
|
+
output: SuccessResponse;
|
|
362
|
+
};
|
|
363
|
+
'session.addMessages': {
|
|
364
|
+
input: SessionAddMessagesInput;
|
|
365
|
+
output: SuccessResponse;
|
|
366
|
+
};
|
|
367
|
+
'session.compact': {
|
|
368
|
+
input: SessionCompactInput;
|
|
369
|
+
output: SessionCompactOutput;
|
|
370
|
+
};
|
|
371
|
+
'session.config.setApprovalMode': {
|
|
372
|
+
input: SessionConfigSetApprovalModeInput;
|
|
373
|
+
output: SuccessResponse;
|
|
374
|
+
};
|
|
375
|
+
'session.config.addApprovalTools': {
|
|
376
|
+
input: SessionConfigAddApprovalToolsInput;
|
|
377
|
+
output: SuccessResponse;
|
|
378
|
+
};
|
|
379
|
+
'session.config.setSummary': {
|
|
380
|
+
input: SessionConfigSetSummaryInput;
|
|
381
|
+
output: SuccessResponse;
|
|
382
|
+
};
|
|
383
|
+
'session.config.setPastedTextMap': {
|
|
384
|
+
input: SessionConfigSetPastedTextMapInput;
|
|
385
|
+
output: SuccessResponse;
|
|
386
|
+
};
|
|
387
|
+
'session.config.setPastedImageMap': {
|
|
388
|
+
input: SessionConfigSetPastedImageMapInput;
|
|
389
|
+
output: SuccessResponse;
|
|
390
|
+
};
|
|
391
|
+
'session.config.getAdditionalDirectories': {
|
|
392
|
+
input: SessionConfigGetAdditionalDirectoriesInput;
|
|
393
|
+
output: SessionConfigGetAdditionalDirectoriesOutput;
|
|
394
|
+
};
|
|
395
|
+
'session.config.addDirectory': {
|
|
396
|
+
input: SessionConfigAddDirectoryInput;
|
|
397
|
+
output: SuccessResponse;
|
|
398
|
+
};
|
|
399
|
+
'session.config.removeDirectory': {
|
|
400
|
+
input: SessionConfigRemoveDirectoryInput;
|
|
401
|
+
output: SuccessResponse;
|
|
402
|
+
};
|
|
403
|
+
'sessions.list': {
|
|
404
|
+
input: SessionsListInput;
|
|
405
|
+
output: SessionsListOutput;
|
|
406
|
+
};
|
|
407
|
+
'sessions.resume': {
|
|
408
|
+
input: SessionsResumeInput;
|
|
409
|
+
output: SessionsResumeOutput;
|
|
410
|
+
};
|
|
411
|
+
'slashCommand.list': {
|
|
412
|
+
input: SlashCommandListInput;
|
|
413
|
+
output: SlashCommandListOutput;
|
|
414
|
+
};
|
|
415
|
+
'slashCommand.get': {
|
|
416
|
+
input: SlashCommandGetInput;
|
|
417
|
+
output: SlashCommandGetOutput;
|
|
418
|
+
};
|
|
419
|
+
'slashCommand.execute': {
|
|
420
|
+
input: SlashCommandExecuteInput;
|
|
421
|
+
output: SlashCommandExecuteOutput;
|
|
422
|
+
};
|
|
423
|
+
'status.get': {
|
|
424
|
+
input: StatusGetInput;
|
|
425
|
+
output: StatusGetOutput;
|
|
426
|
+
};
|
|
427
|
+
'utils.query': {
|
|
428
|
+
input: UtilsQueryInput;
|
|
429
|
+
output: UtilsQueryOutput;
|
|
430
|
+
};
|
|
431
|
+
'utils.quickQuery': {
|
|
432
|
+
input: UtilsQuickQueryInput;
|
|
433
|
+
output: UtilsQuickQueryOutput;
|
|
434
|
+
};
|
|
435
|
+
'utils.summarizeMessage': {
|
|
436
|
+
input: UtilsSummarizeMessageInput;
|
|
437
|
+
output: UtilsSummarizeMessageOutput;
|
|
438
|
+
};
|
|
439
|
+
'utils.getPaths': {
|
|
440
|
+
input: UtilsGetPathsInput;
|
|
441
|
+
output: UtilsGetPathsOutput;
|
|
442
|
+
};
|
|
443
|
+
'utils.telemetry': {
|
|
444
|
+
input: UtilsTelemetryInput;
|
|
445
|
+
output: SuccessResponse;
|
|
446
|
+
};
|
|
447
|
+
'utils.files.list': {
|
|
448
|
+
input: UtilsFilesListInput;
|
|
449
|
+
output: UtilsFilesListOutput;
|
|
450
|
+
};
|
|
451
|
+
'utils.tool.executeBash': {
|
|
452
|
+
input: UtilsToolExecuteBashInput;
|
|
453
|
+
output: UtilsToolExecuteBashOutput;
|
|
454
|
+
};
|
|
455
|
+
toolApproval: {
|
|
456
|
+
input: ToolApprovalInput;
|
|
457
|
+
output: ToolApprovalOutput;
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
|
|
198
461
|
declare type ImagePart = {
|
|
199
462
|
type: 'image';
|
|
200
463
|
data: string;
|
|
@@ -242,6 +505,28 @@ declare interface MCPConfig {
|
|
|
242
505
|
headers?: Record<string, string>;
|
|
243
506
|
}
|
|
244
507
|
|
|
508
|
+
declare type McpGetStatusInput = {
|
|
509
|
+
cwd: string;
|
|
510
|
+
};
|
|
511
|
+
|
|
512
|
+
declare type McpGetStatusOutput = {
|
|
513
|
+
success: boolean;
|
|
514
|
+
error?: string;
|
|
515
|
+
data: {
|
|
516
|
+
servers: Record<string, {
|
|
517
|
+
status: string;
|
|
518
|
+
error?: string;
|
|
519
|
+
toolCount: number;
|
|
520
|
+
tools: string[];
|
|
521
|
+
}>;
|
|
522
|
+
configs: Record<string, McpServerConfig>;
|
|
523
|
+
globalConfigPath: string;
|
|
524
|
+
projectConfigPath: string;
|
|
525
|
+
isReady: boolean;
|
|
526
|
+
isLoading: boolean;
|
|
527
|
+
};
|
|
528
|
+
};
|
|
529
|
+
|
|
245
530
|
declare type McpHttpServerConfig = {
|
|
246
531
|
type: 'http';
|
|
247
532
|
url: string;
|
|
@@ -249,6 +534,30 @@ declare type McpHttpServerConfig = {
|
|
|
249
534
|
headers?: Record<string, string>;
|
|
250
535
|
};
|
|
251
536
|
|
|
537
|
+
declare type McpListInput = {
|
|
538
|
+
cwd: string;
|
|
539
|
+
};
|
|
540
|
+
|
|
541
|
+
declare type McpListOutput = {
|
|
542
|
+
success: boolean;
|
|
543
|
+
data: {
|
|
544
|
+
projectServers: Record<string, McpServerConfig>;
|
|
545
|
+
globalServers: Record<string, McpServerConfig>;
|
|
546
|
+
activeServers: Record<string, {
|
|
547
|
+
status: 'pending' | 'connecting' | 'connected' | 'failed' | 'disconnected';
|
|
548
|
+
config: McpServerConfig;
|
|
549
|
+
error?: string;
|
|
550
|
+
toolCount?: number;
|
|
551
|
+
tools: string[];
|
|
552
|
+
scope: 'global' | 'project';
|
|
553
|
+
}>;
|
|
554
|
+
projectConfigPath: string;
|
|
555
|
+
globalConfigPath: string;
|
|
556
|
+
isReady: boolean;
|
|
557
|
+
isLoading: boolean;
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
|
|
252
561
|
declare class MCPManager {
|
|
253
562
|
#private;
|
|
254
563
|
private servers;
|
|
@@ -280,6 +589,17 @@ declare class MCPManager {
|
|
|
280
589
|
private _isTemporaryError;
|
|
281
590
|
}
|
|
282
591
|
|
|
592
|
+
declare type McpReconnectInput = {
|
|
593
|
+
cwd: string;
|
|
594
|
+
serverName: string;
|
|
595
|
+
};
|
|
596
|
+
|
|
597
|
+
declare type McpReconnectOutput = {
|
|
598
|
+
success: boolean;
|
|
599
|
+
message?: string;
|
|
600
|
+
error?: string;
|
|
601
|
+
};
|
|
602
|
+
|
|
283
603
|
declare type McpServerConfig = McpStdioServerConfig | McpSSEServerConfig | McpHttpServerConfig;
|
|
284
604
|
|
|
285
605
|
declare type MCPServerStatus = 'pending' | 'connecting' | 'connected' | 'failed' | 'disconnected';
|
|
@@ -304,16 +624,20 @@ declare type Message = RequestMessage | ResponseMessage | EventMessage;
|
|
|
304
624
|
declare type Message_2 = SystemMessage | UserMessage | AssistantMessage | ToolMessage | ToolMessage2;
|
|
305
625
|
|
|
306
626
|
declare class MessageBus extends EventEmitter {
|
|
627
|
+
messageHandlers: Map<string, MessageHandler>;
|
|
307
628
|
private transport?;
|
|
308
629
|
private pendingRequests;
|
|
309
|
-
private messageHandlers;
|
|
310
630
|
private eventHandlers;
|
|
311
631
|
constructor();
|
|
312
632
|
setTransport(transport: MessageTransport): void;
|
|
313
633
|
isConnected(): boolean;
|
|
634
|
+
request<K extends keyof HandlerMap>(method: K, params: HandlerMap[K]['input'], options?: {
|
|
635
|
+
timeout?: number;
|
|
636
|
+
}): Promise<HandlerMap[K]['output']>;
|
|
314
637
|
request(method: string, params: any, options?: {
|
|
315
638
|
timeout?: number;
|
|
316
639
|
}): Promise<any>;
|
|
640
|
+
registerHandler<K extends keyof HandlerMap>(method: K, handler: (data: HandlerMap[K]['input']) => Promise<HandlerMap[K]['output']>): void;
|
|
317
641
|
registerHandler(method: string, handler: MessageHandler): void;
|
|
318
642
|
unregisterHandler(method: string): void;
|
|
319
643
|
emitEvent(event: string, data: any): Promise<void>;
|
|
@@ -384,6 +708,32 @@ declare interface ModelModalities {
|
|
|
384
708
|
output: ('text' | 'audio' | 'image')[];
|
|
385
709
|
}
|
|
386
710
|
|
|
711
|
+
declare type ModelsListInput = {
|
|
712
|
+
cwd: string;
|
|
713
|
+
};
|
|
714
|
+
|
|
715
|
+
declare type ModelsListOutput = {
|
|
716
|
+
success: boolean;
|
|
717
|
+
data: {
|
|
718
|
+
groupedModels: Array<{
|
|
719
|
+
provider: string;
|
|
720
|
+
providerId: string;
|
|
721
|
+
models: Array<{
|
|
722
|
+
name: string;
|
|
723
|
+
modelId: string;
|
|
724
|
+
value: string;
|
|
725
|
+
}>;
|
|
726
|
+
}>;
|
|
727
|
+
currentModel: any;
|
|
728
|
+
currentModelInfo: {
|
|
729
|
+
providerName: string;
|
|
730
|
+
modelName: string;
|
|
731
|
+
modelId: string;
|
|
732
|
+
modelContextLimit: number;
|
|
733
|
+
} | null;
|
|
734
|
+
};
|
|
735
|
+
};
|
|
736
|
+
|
|
387
737
|
declare type NormalizedMessage = Message_2 & {
|
|
388
738
|
type: 'message';
|
|
389
739
|
timestamp: string;
|
|
@@ -408,6 +758,21 @@ declare type OutputStyleOpts = {
|
|
|
408
758
|
prompt: string;
|
|
409
759
|
};
|
|
410
760
|
|
|
761
|
+
declare type OutputStylesListInput = {
|
|
762
|
+
cwd: string;
|
|
763
|
+
};
|
|
764
|
+
|
|
765
|
+
declare type OutputStylesListOutput = {
|
|
766
|
+
success: boolean;
|
|
767
|
+
data: {
|
|
768
|
+
outputStyles: Array<{
|
|
769
|
+
name: string;
|
|
770
|
+
description: string;
|
|
771
|
+
}>;
|
|
772
|
+
currentOutputStyle: any;
|
|
773
|
+
};
|
|
774
|
+
};
|
|
775
|
+
|
|
411
776
|
declare class Paths {
|
|
412
777
|
globalConfigDir: string;
|
|
413
778
|
globalProjectDir: string;
|
|
@@ -538,6 +903,158 @@ declare class PluginManager {
|
|
|
538
903
|
apply({ hook, args, memo, type, pluginContext, }: PluginApplyOpts): Promise<any>;
|
|
539
904
|
}
|
|
540
905
|
|
|
906
|
+
declare type ProjectAddHistoryInput = {
|
|
907
|
+
cwd: string;
|
|
908
|
+
history: string;
|
|
909
|
+
};
|
|
910
|
+
|
|
911
|
+
declare type ProjectAddMemoryInput = {
|
|
912
|
+
cwd: string;
|
|
913
|
+
global: boolean;
|
|
914
|
+
rule: string;
|
|
915
|
+
};
|
|
916
|
+
|
|
917
|
+
declare type ProjectAnalyzeContextInput = {
|
|
918
|
+
cwd: string;
|
|
919
|
+
sessionId: string;
|
|
920
|
+
};
|
|
921
|
+
|
|
922
|
+
declare type ProjectAnalyzeContextOutput = {
|
|
923
|
+
success: boolean;
|
|
924
|
+
error?: string;
|
|
925
|
+
data?: {
|
|
926
|
+
systemPrompt: {
|
|
927
|
+
tokens: number;
|
|
928
|
+
percentage: number;
|
|
929
|
+
};
|
|
930
|
+
systemTools: {
|
|
931
|
+
tokens: number;
|
|
932
|
+
percentage: number;
|
|
933
|
+
};
|
|
934
|
+
mcpTools: {
|
|
935
|
+
tokens: number;
|
|
936
|
+
percentage: number;
|
|
937
|
+
};
|
|
938
|
+
messages: {
|
|
939
|
+
tokens: number;
|
|
940
|
+
percentage: number;
|
|
941
|
+
};
|
|
942
|
+
freeSpace: {
|
|
943
|
+
tokens: number;
|
|
944
|
+
percentage: number;
|
|
945
|
+
};
|
|
946
|
+
totalContextWindow: number;
|
|
947
|
+
};
|
|
948
|
+
};
|
|
949
|
+
|
|
950
|
+
declare type ProjectClearContextInput = {
|
|
951
|
+
cwd?: string;
|
|
952
|
+
};
|
|
953
|
+
|
|
954
|
+
declare type ProjectGetRepoInfoInput = {
|
|
955
|
+
cwd: string;
|
|
956
|
+
};
|
|
957
|
+
|
|
958
|
+
declare type ProjectGetRepoInfoOutput = {
|
|
959
|
+
success: boolean;
|
|
960
|
+
error?: string;
|
|
961
|
+
data?: {
|
|
962
|
+
repoData: {
|
|
963
|
+
path: string;
|
|
964
|
+
name: string;
|
|
965
|
+
workspaceIds: string[];
|
|
966
|
+
metadata: {
|
|
967
|
+
lastAccessed: number;
|
|
968
|
+
settings: any;
|
|
969
|
+
};
|
|
970
|
+
gitRemote: {
|
|
971
|
+
originUrl: string | null;
|
|
972
|
+
defaultBranch: string | null;
|
|
973
|
+
syncStatus: any;
|
|
974
|
+
};
|
|
975
|
+
};
|
|
976
|
+
};
|
|
977
|
+
};
|
|
978
|
+
|
|
979
|
+
declare type ProjectWorkspacesCreateGithubPRInput = {
|
|
980
|
+
cwd: string;
|
|
981
|
+
name: string;
|
|
982
|
+
title?: string;
|
|
983
|
+
description?: string;
|
|
984
|
+
baseBranch?: string;
|
|
985
|
+
};
|
|
986
|
+
|
|
987
|
+
declare type ProjectWorkspacesCreateGithubPROutput = {
|
|
988
|
+
success: boolean;
|
|
989
|
+
error?: string;
|
|
990
|
+
data?: {
|
|
991
|
+
prUrl: string;
|
|
992
|
+
prNumber: number;
|
|
993
|
+
};
|
|
994
|
+
};
|
|
995
|
+
|
|
996
|
+
declare type ProjectWorkspacesCreateInput = {
|
|
997
|
+
cwd: string;
|
|
998
|
+
name?: string;
|
|
999
|
+
skipUpdate?: boolean;
|
|
1000
|
+
};
|
|
1001
|
+
|
|
1002
|
+
declare type ProjectWorkspacesCreateOutput = {
|
|
1003
|
+
success: boolean;
|
|
1004
|
+
error?: string;
|
|
1005
|
+
data?: {
|
|
1006
|
+
workspace: {
|
|
1007
|
+
name: string;
|
|
1008
|
+
path: string;
|
|
1009
|
+
branch: string;
|
|
1010
|
+
};
|
|
1011
|
+
};
|
|
1012
|
+
};
|
|
1013
|
+
|
|
1014
|
+
declare type ProjectWorkspacesDeleteInput = {
|
|
1015
|
+
cwd: string;
|
|
1016
|
+
name: string;
|
|
1017
|
+
force?: boolean;
|
|
1018
|
+
};
|
|
1019
|
+
|
|
1020
|
+
declare type ProjectWorkspacesDeleteOutput = {
|
|
1021
|
+
success: boolean;
|
|
1022
|
+
error?: string;
|
|
1023
|
+
};
|
|
1024
|
+
|
|
1025
|
+
declare type ProjectWorkspacesGetInput = {
|
|
1026
|
+
cwd: string;
|
|
1027
|
+
workspaceId: string;
|
|
1028
|
+
};
|
|
1029
|
+
|
|
1030
|
+
declare type ProjectWorkspacesGetOutput = {
|
|
1031
|
+
success: boolean;
|
|
1032
|
+
error?: string;
|
|
1033
|
+
data?: WorkspaceData;
|
|
1034
|
+
};
|
|
1035
|
+
|
|
1036
|
+
declare type ProjectWorkspacesListInput = {
|
|
1037
|
+
cwd: string;
|
|
1038
|
+
};
|
|
1039
|
+
|
|
1040
|
+
declare type ProjectWorkspacesListOutput = {
|
|
1041
|
+
success: boolean;
|
|
1042
|
+
error?: string;
|
|
1043
|
+
data?: {
|
|
1044
|
+
workspaces: WorkspaceData[];
|
|
1045
|
+
};
|
|
1046
|
+
};
|
|
1047
|
+
|
|
1048
|
+
declare type ProjectWorkspacesMergeInput = {
|
|
1049
|
+
cwd: string;
|
|
1050
|
+
name: string;
|
|
1051
|
+
};
|
|
1052
|
+
|
|
1053
|
+
declare type ProjectWorkspacesMergeOutput = {
|
|
1054
|
+
success: boolean;
|
|
1055
|
+
error?: string;
|
|
1056
|
+
};
|
|
1057
|
+
|
|
541
1058
|
declare interface PromptCommand extends BaseSlashCommand {
|
|
542
1059
|
type: 'prompt';
|
|
543
1060
|
progressMessage?: string;
|
|
@@ -564,11 +1081,31 @@ declare interface Provider {
|
|
|
564
1081
|
baseURL?: string;
|
|
565
1082
|
apiKey?: string;
|
|
566
1083
|
headers?: Record<string, string>;
|
|
1084
|
+
httpProxy?: string;
|
|
567
1085
|
};
|
|
568
1086
|
}
|
|
569
1087
|
|
|
570
1088
|
declare type ProviderConfig = Partial<Omit<Provider, 'createModel'>>;
|
|
571
1089
|
|
|
1090
|
+
declare type ProvidersListInput = {
|
|
1091
|
+
cwd: string;
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1094
|
+
declare type ProvidersListOutput = {
|
|
1095
|
+
success: boolean;
|
|
1096
|
+
data: {
|
|
1097
|
+
providers: Array<{
|
|
1098
|
+
id: string;
|
|
1099
|
+
name: string;
|
|
1100
|
+
doc?: string;
|
|
1101
|
+
env?: string[];
|
|
1102
|
+
apiEnv?: string[];
|
|
1103
|
+
validEnvs: string[];
|
|
1104
|
+
hasApiKey: boolean;
|
|
1105
|
+
}>;
|
|
1106
|
+
};
|
|
1107
|
+
};
|
|
1108
|
+
|
|
572
1109
|
declare type ProvidersMap = Record<string, Provider>;
|
|
573
1110
|
|
|
574
1111
|
export declare function _query(opts: {
|
|
@@ -578,8 +1115,12 @@ export declare function _query(opts: {
|
|
|
578
1115
|
model?: ModelInfo;
|
|
579
1116
|
systemPrompt?: string;
|
|
580
1117
|
onMessage?: (message: NormalizedMessage) => Promise<void>;
|
|
1118
|
+
thinking?: ThinkingConfig | false;
|
|
1119
|
+
responseFormat?: ResponseFormat;
|
|
581
1120
|
}): Promise<LoopResult>;
|
|
582
1121
|
|
|
1122
|
+
declare type ReasoningEffort = 'low' | 'medium' | 'high';
|
|
1123
|
+
|
|
583
1124
|
declare type ReasoningPart = {
|
|
584
1125
|
type: 'reasoning';
|
|
585
1126
|
text: string;
|
|
@@ -591,6 +1132,15 @@ declare type RequestMessage = BaseMessage & {
|
|
|
591
1132
|
params: any;
|
|
592
1133
|
};
|
|
593
1134
|
|
|
1135
|
+
declare type ResponseFormat = {
|
|
1136
|
+
type: 'text';
|
|
1137
|
+
} | {
|
|
1138
|
+
type: 'json';
|
|
1139
|
+
schema?: any;
|
|
1140
|
+
name?: string;
|
|
1141
|
+
description?: string;
|
|
1142
|
+
};
|
|
1143
|
+
|
|
594
1144
|
declare type ResponseMessage = BaseMessage & {
|
|
595
1145
|
type: 'response';
|
|
596
1146
|
result?: any;
|
|
@@ -607,13 +1157,227 @@ export declare function runNeovate(opts: {
|
|
|
607
1157
|
upgrade?: UpgradeOptions;
|
|
608
1158
|
}): Promise<void>;
|
|
609
1159
|
|
|
1160
|
+
declare type SessionAddMessagesInput = {
|
|
1161
|
+
cwd: string;
|
|
1162
|
+
sessionId: string;
|
|
1163
|
+
messages: Message_2[];
|
|
1164
|
+
parentUuid?: string;
|
|
1165
|
+
};
|
|
1166
|
+
|
|
1167
|
+
declare type SessionCancelInput = {
|
|
1168
|
+
cwd: string;
|
|
1169
|
+
sessionId: string;
|
|
1170
|
+
};
|
|
1171
|
+
|
|
1172
|
+
declare type SessionCompactInput = {
|
|
1173
|
+
cwd: string;
|
|
1174
|
+
sessionId: string;
|
|
1175
|
+
messages: NormalizedMessage[];
|
|
1176
|
+
};
|
|
1177
|
+
|
|
1178
|
+
declare type SessionCompactOutput = {
|
|
1179
|
+
success: boolean;
|
|
1180
|
+
data: {
|
|
1181
|
+
summary: string;
|
|
1182
|
+
};
|
|
1183
|
+
};
|
|
1184
|
+
|
|
1185
|
+
declare type SessionConfigAddApprovalToolsInput = {
|
|
1186
|
+
cwd: string;
|
|
1187
|
+
sessionId: string;
|
|
1188
|
+
approvalTool: string;
|
|
1189
|
+
};
|
|
1190
|
+
|
|
1191
|
+
declare type SessionConfigAddDirectoryInput = {
|
|
1192
|
+
cwd: string;
|
|
1193
|
+
sessionId: string;
|
|
1194
|
+
directory: string;
|
|
1195
|
+
};
|
|
1196
|
+
|
|
1197
|
+
declare type SessionConfigGetAdditionalDirectoriesInput = {
|
|
1198
|
+
cwd: string;
|
|
1199
|
+
sessionId: string;
|
|
1200
|
+
};
|
|
1201
|
+
|
|
1202
|
+
declare type SessionConfigGetAdditionalDirectoriesOutput = {
|
|
1203
|
+
success: boolean;
|
|
1204
|
+
data: {
|
|
1205
|
+
directories: string[];
|
|
1206
|
+
};
|
|
1207
|
+
};
|
|
1208
|
+
|
|
1209
|
+
declare type SessionConfigRemoveDirectoryInput = {
|
|
1210
|
+
cwd: string;
|
|
1211
|
+
sessionId: string;
|
|
1212
|
+
directory: string;
|
|
1213
|
+
};
|
|
1214
|
+
|
|
1215
|
+
declare type SessionConfigSetApprovalModeInput = {
|
|
1216
|
+
cwd: string;
|
|
1217
|
+
sessionId: string;
|
|
1218
|
+
approvalMode: ApprovalMode;
|
|
1219
|
+
};
|
|
1220
|
+
|
|
1221
|
+
declare type SessionConfigSetPastedImageMapInput = {
|
|
1222
|
+
cwd: string;
|
|
1223
|
+
sessionId: string;
|
|
1224
|
+
pastedImageMap: Record<string, string>;
|
|
1225
|
+
};
|
|
1226
|
+
|
|
1227
|
+
declare type SessionConfigSetPastedTextMapInput = {
|
|
1228
|
+
cwd: string;
|
|
1229
|
+
sessionId: string;
|
|
1230
|
+
pastedTextMap: Record<string, string>;
|
|
1231
|
+
};
|
|
1232
|
+
|
|
1233
|
+
declare type SessionConfigSetSummaryInput = {
|
|
1234
|
+
cwd: string;
|
|
1235
|
+
sessionId: string;
|
|
1236
|
+
summary: string;
|
|
1237
|
+
};
|
|
1238
|
+
|
|
1239
|
+
declare type SessionInitializeInput = {
|
|
1240
|
+
cwd: string;
|
|
1241
|
+
sessionId?: string;
|
|
1242
|
+
};
|
|
1243
|
+
|
|
1244
|
+
declare type SessionInitializeOutput = {
|
|
1245
|
+
success: boolean;
|
|
1246
|
+
error?: any;
|
|
1247
|
+
data: {
|
|
1248
|
+
productName: string;
|
|
1249
|
+
productASCIIArt: string | undefined;
|
|
1250
|
+
version: string;
|
|
1251
|
+
model: any;
|
|
1252
|
+
planModel: string | undefined;
|
|
1253
|
+
initializeModelError: string | null;
|
|
1254
|
+
providers: any;
|
|
1255
|
+
approvalMode: ApprovalMode;
|
|
1256
|
+
sessionSummary: string | undefined;
|
|
1257
|
+
pastedTextMap: Record<string, string>;
|
|
1258
|
+
pastedImageMap: Record<string, string>;
|
|
1259
|
+
};
|
|
1260
|
+
};
|
|
1261
|
+
|
|
1262
|
+
declare type SessionMessagesListInput = {
|
|
1263
|
+
cwd: string;
|
|
1264
|
+
sessionId: string;
|
|
1265
|
+
};
|
|
1266
|
+
|
|
1267
|
+
declare type SessionMessagesListOutput = {
|
|
1268
|
+
success: boolean;
|
|
1269
|
+
data: {
|
|
1270
|
+
messages: NormalizedMessage[];
|
|
1271
|
+
};
|
|
1272
|
+
};
|
|
1273
|
+
|
|
1274
|
+
declare type SessionSendInput = {
|
|
1275
|
+
message: string | null;
|
|
1276
|
+
cwd: string;
|
|
1277
|
+
sessionId: string | undefined;
|
|
1278
|
+
planMode: boolean;
|
|
1279
|
+
model?: string;
|
|
1280
|
+
attachments?: ImagePart[];
|
|
1281
|
+
parentUuid?: string;
|
|
1282
|
+
thinking?: ThinkingConfig;
|
|
1283
|
+
};
|
|
1284
|
+
|
|
1285
|
+
declare type SessionSendOutput = any;
|
|
1286
|
+
|
|
1287
|
+
declare type SessionsListInput = {
|
|
1288
|
+
cwd: string;
|
|
1289
|
+
};
|
|
1290
|
+
|
|
1291
|
+
declare type SessionsListOutput = {
|
|
1292
|
+
success: boolean;
|
|
1293
|
+
data: {
|
|
1294
|
+
sessions: Array<{
|
|
1295
|
+
sessionId: string;
|
|
1296
|
+
modified: Date;
|
|
1297
|
+
created: Date;
|
|
1298
|
+
messageCount: number;
|
|
1299
|
+
summary: string;
|
|
1300
|
+
}>;
|
|
1301
|
+
};
|
|
1302
|
+
};
|
|
1303
|
+
|
|
1304
|
+
declare type SessionsResumeInput = {
|
|
1305
|
+
cwd: string;
|
|
1306
|
+
sessionId: string;
|
|
1307
|
+
};
|
|
1308
|
+
|
|
1309
|
+
declare type SessionsResumeOutput = {
|
|
1310
|
+
success: boolean;
|
|
1311
|
+
data: {
|
|
1312
|
+
sessionId: string;
|
|
1313
|
+
logFile: string;
|
|
1314
|
+
};
|
|
1315
|
+
};
|
|
1316
|
+
|
|
610
1317
|
declare type SlashCommand = LocalCommand | LocalJSXCommand | PromptCommand;
|
|
611
1318
|
|
|
1319
|
+
declare type SlashCommandExecuteInput = {
|
|
1320
|
+
cwd: string;
|
|
1321
|
+
sessionId: string;
|
|
1322
|
+
command: string;
|
|
1323
|
+
args: string;
|
|
1324
|
+
};
|
|
1325
|
+
|
|
1326
|
+
declare type SlashCommandExecuteOutput = {
|
|
1327
|
+
success: boolean;
|
|
1328
|
+
data: {
|
|
1329
|
+
messages: any[];
|
|
1330
|
+
};
|
|
1331
|
+
};
|
|
1332
|
+
|
|
1333
|
+
declare type SlashCommandGetInput = {
|
|
1334
|
+
cwd: string;
|
|
1335
|
+
command: string;
|
|
1336
|
+
};
|
|
1337
|
+
|
|
1338
|
+
declare type SlashCommandGetOutput = {
|
|
1339
|
+
success: boolean;
|
|
1340
|
+
data: {
|
|
1341
|
+
commandEntry: any;
|
|
1342
|
+
};
|
|
1343
|
+
};
|
|
1344
|
+
|
|
1345
|
+
declare type SlashCommandListInput = {
|
|
1346
|
+
cwd: string;
|
|
1347
|
+
};
|
|
1348
|
+
|
|
1349
|
+
declare type SlashCommandListOutput = {
|
|
1350
|
+
success: boolean;
|
|
1351
|
+
data: {
|
|
1352
|
+
slashCommands: any[];
|
|
1353
|
+
};
|
|
1354
|
+
};
|
|
1355
|
+
|
|
612
1356
|
declare type Status = Record<string, {
|
|
613
1357
|
description?: string;
|
|
614
1358
|
items: string[];
|
|
615
1359
|
}>;
|
|
616
1360
|
|
|
1361
|
+
declare type StatusGetInput = {
|
|
1362
|
+
cwd: string;
|
|
1363
|
+
sessionId: string;
|
|
1364
|
+
};
|
|
1365
|
+
|
|
1366
|
+
declare type StatusGetOutput = {
|
|
1367
|
+
success: boolean;
|
|
1368
|
+
data: {
|
|
1369
|
+
status: Record<string, {
|
|
1370
|
+
description?: string;
|
|
1371
|
+
items: string[];
|
|
1372
|
+
}>;
|
|
1373
|
+
};
|
|
1374
|
+
};
|
|
1375
|
+
|
|
1376
|
+
/** Standard success response without data */
|
|
1377
|
+
declare type SuccessResponse = {
|
|
1378
|
+
success: boolean;
|
|
1379
|
+
};
|
|
1380
|
+
|
|
617
1381
|
declare type SystemMessage = {
|
|
618
1382
|
role: 'system';
|
|
619
1383
|
content: string;
|
|
@@ -630,6 +1394,10 @@ declare type TextPart = {
|
|
|
630
1394
|
text: string;
|
|
631
1395
|
};
|
|
632
1396
|
|
|
1397
|
+
declare type ThinkingConfig = {
|
|
1398
|
+
effort: ReasoningEffort;
|
|
1399
|
+
};
|
|
1400
|
+
|
|
633
1401
|
declare type TodoItem = _zod.infer<typeof TodoItemSchema>;
|
|
634
1402
|
|
|
635
1403
|
declare const TodoItemSchema: _zod.ZodObject<{
|
|
@@ -676,6 +1444,16 @@ declare type ToolApprovalInfo = {
|
|
|
676
1444
|
category?: ApprovalCategory;
|
|
677
1445
|
};
|
|
678
1446
|
|
|
1447
|
+
declare type ToolApprovalInput = {
|
|
1448
|
+
toolUse: ToolUse;
|
|
1449
|
+
category?: ApprovalCategory;
|
|
1450
|
+
};
|
|
1451
|
+
|
|
1452
|
+
declare type ToolApprovalOutput = {
|
|
1453
|
+
approved: boolean;
|
|
1454
|
+
params?: Record<string, unknown>;
|
|
1455
|
+
};
|
|
1456
|
+
|
|
679
1457
|
declare type ToolContent = Array<ToolResultPart>;
|
|
680
1458
|
|
|
681
1459
|
declare type ToolMessage = {
|
|
@@ -757,6 +1535,102 @@ declare type UserMessage = {
|
|
|
757
1535
|
hidden?: boolean;
|
|
758
1536
|
};
|
|
759
1537
|
|
|
1538
|
+
declare type UtilsFilesListInput = {
|
|
1539
|
+
cwd: string;
|
|
1540
|
+
query?: string;
|
|
1541
|
+
};
|
|
1542
|
+
|
|
1543
|
+
declare type UtilsFilesListOutput = {
|
|
1544
|
+
success: boolean;
|
|
1545
|
+
data: {
|
|
1546
|
+
files: any[];
|
|
1547
|
+
};
|
|
1548
|
+
};
|
|
1549
|
+
|
|
1550
|
+
declare type UtilsGetPathsInput = {
|
|
1551
|
+
cwd: string;
|
|
1552
|
+
maxFiles?: number;
|
|
1553
|
+
};
|
|
1554
|
+
|
|
1555
|
+
declare type UtilsGetPathsOutput = {
|
|
1556
|
+
success: boolean;
|
|
1557
|
+
data: {
|
|
1558
|
+
paths: string[];
|
|
1559
|
+
};
|
|
1560
|
+
};
|
|
1561
|
+
|
|
1562
|
+
declare type UtilsQueryInput = {
|
|
1563
|
+
userPrompt: string;
|
|
1564
|
+
cwd: string;
|
|
1565
|
+
systemPrompt?: string;
|
|
1566
|
+
model?: string;
|
|
1567
|
+
thinking?: ThinkingConfig;
|
|
1568
|
+
responseFormat?: ResponseFormat;
|
|
1569
|
+
};
|
|
1570
|
+
|
|
1571
|
+
declare type UtilsQueryOutput = any;
|
|
1572
|
+
|
|
1573
|
+
declare type UtilsQuickQueryInput = {
|
|
1574
|
+
userPrompt: string;
|
|
1575
|
+
cwd: string;
|
|
1576
|
+
systemPrompt?: string;
|
|
1577
|
+
model?: string;
|
|
1578
|
+
thinking?: ThinkingConfig;
|
|
1579
|
+
responseFormat?: ResponseFormat;
|
|
1580
|
+
};
|
|
1581
|
+
|
|
1582
|
+
declare type UtilsQuickQueryOutput = any;
|
|
1583
|
+
|
|
1584
|
+
declare type UtilsSummarizeMessageInput = {
|
|
1585
|
+
message: string;
|
|
1586
|
+
cwd: string;
|
|
1587
|
+
model?: string;
|
|
1588
|
+
};
|
|
1589
|
+
|
|
1590
|
+
declare type UtilsSummarizeMessageOutput = any;
|
|
1591
|
+
|
|
1592
|
+
declare type UtilsTelemetryInput = {
|
|
1593
|
+
cwd: string;
|
|
1594
|
+
name: string;
|
|
1595
|
+
payload: Record<string, any>;
|
|
1596
|
+
};
|
|
1597
|
+
|
|
1598
|
+
declare type UtilsToolExecuteBashInput = {
|
|
1599
|
+
cwd: string;
|
|
1600
|
+
command: string;
|
|
1601
|
+
};
|
|
1602
|
+
|
|
1603
|
+
declare type UtilsToolExecuteBashOutput = {
|
|
1604
|
+
success: boolean;
|
|
1605
|
+
data?: any;
|
|
1606
|
+
error?: {
|
|
1607
|
+
message: string;
|
|
1608
|
+
};
|
|
1609
|
+
};
|
|
1610
|
+
|
|
1611
|
+
declare type WorkspaceData = {
|
|
1612
|
+
id: string;
|
|
1613
|
+
repoPath: string;
|
|
1614
|
+
branch: string;
|
|
1615
|
+
worktreePath: string;
|
|
1616
|
+
sessionIds: string[];
|
|
1617
|
+
gitState: {
|
|
1618
|
+
currentCommit: string;
|
|
1619
|
+
isDirty: boolean;
|
|
1620
|
+
pendingChanges: string[];
|
|
1621
|
+
};
|
|
1622
|
+
metadata: {
|
|
1623
|
+
createdAt: number;
|
|
1624
|
+
description: string;
|
|
1625
|
+
status: 'active' | 'archived' | 'stale';
|
|
1626
|
+
};
|
|
1627
|
+
context: {
|
|
1628
|
+
activeFiles: string[];
|
|
1629
|
+
settings: any;
|
|
1630
|
+
preferences: Record<string, unknown>;
|
|
1631
|
+
};
|
|
1632
|
+
};
|
|
1633
|
+
|
|
760
1634
|
export { _zod }
|
|
761
1635
|
|
|
762
1636
|
export { }
|