@nikcli-ai/sdk 0.0.6 → 0.0.8
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/v2/gen/sdk.gen.d.ts +246 -1
- package/dist/v2/gen/sdk.gen.js +556 -0
- package/dist/v2/gen/types.gen.d.ts +844 -3
- package/package.json +2 -2
|
@@ -133,6 +133,13 @@ export type MessageOutputLengthError = {
|
|
|
133
133
|
[key: string]: unknown;
|
|
134
134
|
};
|
|
135
135
|
};
|
|
136
|
+
export type MessageContextOverflowError = {
|
|
137
|
+
name: "MessageContextOverflowError";
|
|
138
|
+
data: {
|
|
139
|
+
message: string;
|
|
140
|
+
responseBody?: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
136
143
|
export type MessageAbortedError = {
|
|
137
144
|
name: "MessageAbortedError";
|
|
138
145
|
data: {
|
|
@@ -169,7 +176,7 @@ export type AssistantMessage = {
|
|
|
169
176
|
created: number;
|
|
170
177
|
completed?: number;
|
|
171
178
|
};
|
|
172
|
-
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ApiError;
|
|
179
|
+
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageContextOverflowError | MessageAbortedError | StructuredOutputError | ApiError;
|
|
173
180
|
parentID: string;
|
|
174
181
|
modelID: string;
|
|
175
182
|
providerID: string;
|
|
@@ -567,6 +574,106 @@ export type EventSessionCompacted = {
|
|
|
567
574
|
sessionID: string;
|
|
568
575
|
};
|
|
569
576
|
};
|
|
577
|
+
export type EventMonitorCreated = {
|
|
578
|
+
type: "monitor.created";
|
|
579
|
+
properties: {
|
|
580
|
+
sessionID: string;
|
|
581
|
+
record: {
|
|
582
|
+
id: string;
|
|
583
|
+
sessionID: string;
|
|
584
|
+
messageID: string;
|
|
585
|
+
callID: string;
|
|
586
|
+
partID?: string;
|
|
587
|
+
title: string;
|
|
588
|
+
command: string;
|
|
589
|
+
cwd: string;
|
|
590
|
+
agent: string;
|
|
591
|
+
wake: boolean;
|
|
592
|
+
timeoutMs?: number;
|
|
593
|
+
status: "running" | "complete" | "error" | "timeout" | "cancelled";
|
|
594
|
+
pid?: number;
|
|
595
|
+
exitCode?: number;
|
|
596
|
+
signal?: string;
|
|
597
|
+
logPath: string;
|
|
598
|
+
commandPath: string;
|
|
599
|
+
pidPath: string;
|
|
600
|
+
exitCodePath: string;
|
|
601
|
+
preview?: string;
|
|
602
|
+
bytes?: number;
|
|
603
|
+
time: {
|
|
604
|
+
created: number;
|
|
605
|
+
updated: number;
|
|
606
|
+
completed?: number;
|
|
607
|
+
};
|
|
608
|
+
};
|
|
609
|
+
};
|
|
610
|
+
};
|
|
611
|
+
export type EventMonitorUpdated = {
|
|
612
|
+
type: "monitor.updated";
|
|
613
|
+
properties: {
|
|
614
|
+
sessionID: string;
|
|
615
|
+
record: {
|
|
616
|
+
id: string;
|
|
617
|
+
sessionID: string;
|
|
618
|
+
messageID: string;
|
|
619
|
+
callID: string;
|
|
620
|
+
partID?: string;
|
|
621
|
+
title: string;
|
|
622
|
+
command: string;
|
|
623
|
+
cwd: string;
|
|
624
|
+
agent: string;
|
|
625
|
+
wake: boolean;
|
|
626
|
+
timeoutMs?: number;
|
|
627
|
+
status: "running" | "complete" | "error" | "timeout" | "cancelled";
|
|
628
|
+
pid?: number;
|
|
629
|
+
exitCode?: number;
|
|
630
|
+
signal?: string;
|
|
631
|
+
logPath: string;
|
|
632
|
+
commandPath: string;
|
|
633
|
+
pidPath: string;
|
|
634
|
+
exitCodePath: string;
|
|
635
|
+
preview?: string;
|
|
636
|
+
bytes?: number;
|
|
637
|
+
time: {
|
|
638
|
+
created: number;
|
|
639
|
+
updated: number;
|
|
640
|
+
completed?: number;
|
|
641
|
+
};
|
|
642
|
+
};
|
|
643
|
+
};
|
|
644
|
+
};
|
|
645
|
+
export type EventMonitorOutput = {
|
|
646
|
+
type: "monitor.output";
|
|
647
|
+
properties: {
|
|
648
|
+
sessionID: string;
|
|
649
|
+
monitorID: string;
|
|
650
|
+
delta: string;
|
|
651
|
+
preview: string;
|
|
652
|
+
bytes: number;
|
|
653
|
+
status: "running" | "complete" | "error" | "timeout" | "cancelled";
|
|
654
|
+
};
|
|
655
|
+
};
|
|
656
|
+
export type EventMonitorCompleted = {
|
|
657
|
+
type: "monitor.completed";
|
|
658
|
+
properties: {
|
|
659
|
+
sessionID: string;
|
|
660
|
+
monitorID: string;
|
|
661
|
+
title: string;
|
|
662
|
+
status: "running" | "complete" | "error" | "timeout" | "cancelled";
|
|
663
|
+
exitCode: number | null;
|
|
664
|
+
logPath: string;
|
|
665
|
+
wake: boolean;
|
|
666
|
+
};
|
|
667
|
+
};
|
|
668
|
+
export type EventDelegationCompleted = {
|
|
669
|
+
type: "delegation.completed";
|
|
670
|
+
properties: {
|
|
671
|
+
delegationID: string;
|
|
672
|
+
parentSessionID: string;
|
|
673
|
+
status: "running" | "complete" | "error" | "timeout" | "cancelled";
|
|
674
|
+
title: string;
|
|
675
|
+
};
|
|
676
|
+
};
|
|
570
677
|
export type Todo = {
|
|
571
678
|
/**
|
|
572
679
|
* Brief description of the task
|
|
@@ -683,6 +790,20 @@ export type SessionGithub = {
|
|
|
683
790
|
publishedAt?: number;
|
|
684
791
|
publishError?: string;
|
|
685
792
|
};
|
|
793
|
+
export type SessionMobile = {
|
|
794
|
+
platforms: Array<"ios" | "android" | "expo" | "flutter" | "react-native">;
|
|
795
|
+
primaryPlatform: string;
|
|
796
|
+
method: string;
|
|
797
|
+
detectedAt: number;
|
|
798
|
+
buildStatus?: "unknown" | "building" | "succeeded" | "failed";
|
|
799
|
+
lastBuildAt?: number;
|
|
800
|
+
artifacts?: Array<{
|
|
801
|
+
platform: string;
|
|
802
|
+
path: string;
|
|
803
|
+
size?: number;
|
|
804
|
+
createdAt?: number;
|
|
805
|
+
}>;
|
|
806
|
+
};
|
|
686
807
|
export type PermissionAction = "allow" | "deny" | "ask";
|
|
687
808
|
export type PermissionRule = {
|
|
688
809
|
permission: string;
|
|
@@ -707,6 +828,7 @@ export type Session = {
|
|
|
707
828
|
url: string;
|
|
708
829
|
};
|
|
709
830
|
github?: SessionGithub;
|
|
831
|
+
mobile?: SessionMobile;
|
|
710
832
|
title: string;
|
|
711
833
|
version: string;
|
|
712
834
|
time: {
|
|
@@ -753,7 +875,7 @@ export type EventSessionError = {
|
|
|
753
875
|
type: "session.error";
|
|
754
876
|
properties: {
|
|
755
877
|
sessionID?: string;
|
|
756
|
-
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ApiError;
|
|
878
|
+
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageContextOverflowError | MessageAbortedError | StructuredOutputError | ApiError;
|
|
757
879
|
};
|
|
758
880
|
};
|
|
759
881
|
export type EventVcsBranchUpdated = {
|
|
@@ -897,7 +1019,7 @@ export type EventDbeditReplied = {
|
|
|
897
1019
|
reply: "accept" | "edit" | "reject";
|
|
898
1020
|
};
|
|
899
1021
|
};
|
|
900
|
-
export type Event = EventProjectUpdated | EventServerInstanceDisposed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerConnected | EventGlobalDisposed | EventLspClientDiagnostics | EventLspUpdated | EventFileEdited | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventTodoUpdated | EventFileWatcherUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventDbeditAsked | EventDbeditReplied;
|
|
1022
|
+
export type Event = EventProjectUpdated | EventServerInstanceDisposed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerConnected | EventGlobalDisposed | EventLspClientDiagnostics | EventLspUpdated | EventFileEdited | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventMonitorCreated | EventMonitorUpdated | EventMonitorOutput | EventMonitorCompleted | EventDelegationCompleted | EventTodoUpdated | EventFileWatcherUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventDbeditAsked | EventDbeditReplied;
|
|
901
1023
|
export type GlobalEvent = {
|
|
902
1024
|
directory: string;
|
|
903
1025
|
payload: Event;
|
|
@@ -1003,6 +1125,10 @@ export type KeybindsConfig = {
|
|
|
1003
1125
|
* Interrupt current session
|
|
1004
1126
|
*/
|
|
1005
1127
|
session_interrupt?: string;
|
|
1128
|
+
/**
|
|
1129
|
+
* Open the Codebro dossier
|
|
1130
|
+
*/
|
|
1131
|
+
session_codebro_open?: string;
|
|
1006
1132
|
/**
|
|
1007
1133
|
* Background current subtask and return to parent session
|
|
1008
1134
|
*/
|
|
@@ -1989,6 +2115,22 @@ export type Config = {
|
|
|
1989
2115
|
* Continue the agent loop when a tool call is denied
|
|
1990
2116
|
*/
|
|
1991
2117
|
continue_loop_on_deny?: boolean;
|
|
2118
|
+
/**
|
|
2119
|
+
* Enable automatic memory consolidation (brain) feature
|
|
2120
|
+
*/
|
|
2121
|
+
brain?: boolean;
|
|
2122
|
+
/**
|
|
2123
|
+
* Minimum hours between brain consolidation runs
|
|
2124
|
+
*/
|
|
2125
|
+
brainMinHours?: number;
|
|
2126
|
+
/**
|
|
2127
|
+
* Minimum number of sessions to trigger brain consolidation
|
|
2128
|
+
*/
|
|
2129
|
+
brainMinSessions?: number;
|
|
2130
|
+
/**
|
|
2131
|
+
* Enable memory file support for session context
|
|
2132
|
+
*/
|
|
2133
|
+
memory?: boolean;
|
|
1992
2134
|
/**
|
|
1993
2135
|
* Timeout in milliseconds for model context protocol (MCP) requests
|
|
1994
2136
|
*/
|
|
@@ -2147,6 +2289,33 @@ export type Config = {
|
|
|
2147
2289
|
};
|
|
2148
2290
|
};
|
|
2149
2291
|
};
|
|
2292
|
+
/**
|
|
2293
|
+
* Mobile development settings
|
|
2294
|
+
*/
|
|
2295
|
+
mobile?: {
|
|
2296
|
+
tophat?: {
|
|
2297
|
+
/**
|
|
2298
|
+
* Enable Tophat integration
|
|
2299
|
+
*/
|
|
2300
|
+
enabled?: boolean;
|
|
2301
|
+
/**
|
|
2302
|
+
* Custom path to tophatctl binary
|
|
2303
|
+
*/
|
|
2304
|
+
cliPath?: string;
|
|
2305
|
+
/**
|
|
2306
|
+
* Default target platform
|
|
2307
|
+
*/
|
|
2308
|
+
defaultPlatform?: "ios" | "android";
|
|
2309
|
+
/**
|
|
2310
|
+
* Default install destination
|
|
2311
|
+
*/
|
|
2312
|
+
defaultDestination?: "device" | "simulator" | "emulator";
|
|
2313
|
+
/**
|
|
2314
|
+
* Auto-detect mobile projects (default: true)
|
|
2315
|
+
*/
|
|
2316
|
+
autoDetect?: boolean;
|
|
2317
|
+
};
|
|
2318
|
+
};
|
|
2150
2319
|
};
|
|
2151
2320
|
export type Model = {
|
|
2152
2321
|
id: string;
|
|
@@ -2357,6 +2526,23 @@ export type MobileProject = {
|
|
|
2357
2526
|
sandboxes: Array<string>;
|
|
2358
2527
|
current: boolean;
|
|
2359
2528
|
};
|
|
2529
|
+
export type MobileTophatStatus = {
|
|
2530
|
+
available: boolean;
|
|
2531
|
+
providers: Array<{
|
|
2532
|
+
id: string;
|
|
2533
|
+
}>;
|
|
2534
|
+
devices: Array<{
|
|
2535
|
+
name: string;
|
|
2536
|
+
platform: string;
|
|
2537
|
+
}>;
|
|
2538
|
+
};
|
|
2539
|
+
export type MobileProjectType = {
|
|
2540
|
+
detected: boolean;
|
|
2541
|
+
platforms?: Array<string>;
|
|
2542
|
+
primaryPlatform?: string;
|
|
2543
|
+
method?: string;
|
|
2544
|
+
root?: string;
|
|
2545
|
+
};
|
|
2360
2546
|
export type MobileBootstrap = {
|
|
2361
2547
|
version: string;
|
|
2362
2548
|
auth: {
|
|
@@ -2383,6 +2569,8 @@ export type MobileBootstrap = {
|
|
|
2383
2569
|
avatar_url?: string;
|
|
2384
2570
|
};
|
|
2385
2571
|
};
|
|
2572
|
+
tophat?: MobileTophatStatus;
|
|
2573
|
+
mobileProject?: MobileProjectType;
|
|
2386
2574
|
};
|
|
2387
2575
|
export type MobilePromptHistoryEntry = {
|
|
2388
2576
|
id: string;
|
|
@@ -4149,6 +4337,115 @@ export type PermissionRespondResponses = {
|
|
|
4149
4337
|
200: boolean;
|
|
4150
4338
|
};
|
|
4151
4339
|
export type PermissionRespondResponse = PermissionRespondResponses[keyof PermissionRespondResponses];
|
|
4340
|
+
export type SessionMonitorData = {
|
|
4341
|
+
body?: never;
|
|
4342
|
+
path: {
|
|
4343
|
+
/**
|
|
4344
|
+
* Session ID
|
|
4345
|
+
*/
|
|
4346
|
+
sessionID: string;
|
|
4347
|
+
/**
|
|
4348
|
+
* Monitor ID
|
|
4349
|
+
*/
|
|
4350
|
+
monitorID: string;
|
|
4351
|
+
};
|
|
4352
|
+
query?: {
|
|
4353
|
+
directory?: string;
|
|
4354
|
+
workspace?: string;
|
|
4355
|
+
};
|
|
4356
|
+
url: "/session/{sessionID}/monitor/{monitorID}";
|
|
4357
|
+
};
|
|
4358
|
+
export type SessionMonitorErrors = {
|
|
4359
|
+
/**
|
|
4360
|
+
* Bad request
|
|
4361
|
+
*/
|
|
4362
|
+
400: BadRequestError;
|
|
4363
|
+
/**
|
|
4364
|
+
* Not found
|
|
4365
|
+
*/
|
|
4366
|
+
404: NotFoundError;
|
|
4367
|
+
};
|
|
4368
|
+
export type SessionMonitorError = SessionMonitorErrors[keyof SessionMonitorErrors];
|
|
4369
|
+
export type SessionMonitorResponses = {
|
|
4370
|
+
/**
|
|
4371
|
+
* Monitor metadata
|
|
4372
|
+
*/
|
|
4373
|
+
200: unknown;
|
|
4374
|
+
};
|
|
4375
|
+
export type SessionMonitorLogData = {
|
|
4376
|
+
body?: never;
|
|
4377
|
+
path: {
|
|
4378
|
+
/**
|
|
4379
|
+
* Session ID
|
|
4380
|
+
*/
|
|
4381
|
+
sessionID: string;
|
|
4382
|
+
/**
|
|
4383
|
+
* Monitor ID
|
|
4384
|
+
*/
|
|
4385
|
+
monitorID: string;
|
|
4386
|
+
};
|
|
4387
|
+
query?: {
|
|
4388
|
+
directory?: string;
|
|
4389
|
+
workspace?: string;
|
|
4390
|
+
/**
|
|
4391
|
+
* Number of lines to return
|
|
4392
|
+
*/
|
|
4393
|
+
lines?: number;
|
|
4394
|
+
};
|
|
4395
|
+
url: "/session/{sessionID}/monitor/{monitorID}/log";
|
|
4396
|
+
};
|
|
4397
|
+
export type SessionMonitorLogErrors = {
|
|
4398
|
+
/**
|
|
4399
|
+
* Bad request
|
|
4400
|
+
*/
|
|
4401
|
+
400: BadRequestError;
|
|
4402
|
+
/**
|
|
4403
|
+
* Not found
|
|
4404
|
+
*/
|
|
4405
|
+
404: NotFoundError;
|
|
4406
|
+
};
|
|
4407
|
+
export type SessionMonitorLogError = SessionMonitorLogErrors[keyof SessionMonitorLogErrors];
|
|
4408
|
+
export type SessionMonitorLogResponses = {
|
|
4409
|
+
/**
|
|
4410
|
+
* Monitor log snapshot
|
|
4411
|
+
*/
|
|
4412
|
+
200: unknown;
|
|
4413
|
+
};
|
|
4414
|
+
export type SessionMonitorCancelData = {
|
|
4415
|
+
body?: never;
|
|
4416
|
+
path: {
|
|
4417
|
+
/**
|
|
4418
|
+
* Session ID
|
|
4419
|
+
*/
|
|
4420
|
+
sessionID: string;
|
|
4421
|
+
/**
|
|
4422
|
+
* Monitor ID
|
|
4423
|
+
*/
|
|
4424
|
+
monitorID: string;
|
|
4425
|
+
};
|
|
4426
|
+
query?: {
|
|
4427
|
+
directory?: string;
|
|
4428
|
+
workspace?: string;
|
|
4429
|
+
};
|
|
4430
|
+
url: "/session/{sessionID}/monitor/{monitorID}/cancel";
|
|
4431
|
+
};
|
|
4432
|
+
export type SessionMonitorCancelErrors = {
|
|
4433
|
+
/**
|
|
4434
|
+
* Bad request
|
|
4435
|
+
*/
|
|
4436
|
+
400: BadRequestError;
|
|
4437
|
+
/**
|
|
4438
|
+
* Not found
|
|
4439
|
+
*/
|
|
4440
|
+
404: NotFoundError;
|
|
4441
|
+
};
|
|
4442
|
+
export type SessionMonitorCancelError = SessionMonitorCancelErrors[keyof SessionMonitorCancelErrors];
|
|
4443
|
+
export type SessionMonitorCancelResponses = {
|
|
4444
|
+
/**
|
|
4445
|
+
* Cancelled monitor
|
|
4446
|
+
*/
|
|
4447
|
+
200: unknown;
|
|
4448
|
+
};
|
|
4152
4449
|
export type PermissionReplyData = {
|
|
4153
4450
|
body?: {
|
|
4154
4451
|
reply: "once" | "always" | "reject";
|
|
@@ -4552,6 +4849,56 @@ export type ProviderOauthCallbackResponses = {
|
|
|
4552
4849
|
200: boolean;
|
|
4553
4850
|
};
|
|
4554
4851
|
export type ProviderOauthCallbackResponse = ProviderOauthCallbackResponses[keyof ProviderOauthCallbackResponses];
|
|
4852
|
+
export type PostUserRegisterData = {
|
|
4853
|
+
body?: {
|
|
4854
|
+
username: string;
|
|
4855
|
+
email: string;
|
|
4856
|
+
password: string;
|
|
4857
|
+
displayName?: string;
|
|
4858
|
+
};
|
|
4859
|
+
path?: never;
|
|
4860
|
+
query?: {
|
|
4861
|
+
directory?: string;
|
|
4862
|
+
workspace?: string;
|
|
4863
|
+
};
|
|
4864
|
+
url: "/user/register";
|
|
4865
|
+
};
|
|
4866
|
+
export type PostUserRegisterResponses = {
|
|
4867
|
+
200: unknown;
|
|
4868
|
+
};
|
|
4869
|
+
export type PostUserLoginData = {
|
|
4870
|
+
body?: {
|
|
4871
|
+
email: string;
|
|
4872
|
+
password: string;
|
|
4873
|
+
};
|
|
4874
|
+
path?: never;
|
|
4875
|
+
query?: {
|
|
4876
|
+
directory?: string;
|
|
4877
|
+
workspace?: string;
|
|
4878
|
+
};
|
|
4879
|
+
url: "/user/login";
|
|
4880
|
+
};
|
|
4881
|
+
export type PostUserLoginResponses = {
|
|
4882
|
+
200: unknown;
|
|
4883
|
+
};
|
|
4884
|
+
export type PatchUserIdData = {
|
|
4885
|
+
body?: {
|
|
4886
|
+
displayName?: string;
|
|
4887
|
+
password?: string;
|
|
4888
|
+
role?: "admin" | "user";
|
|
4889
|
+
};
|
|
4890
|
+
path: {
|
|
4891
|
+
id: string;
|
|
4892
|
+
};
|
|
4893
|
+
query?: {
|
|
4894
|
+
directory?: string;
|
|
4895
|
+
workspace?: string;
|
|
4896
|
+
};
|
|
4897
|
+
url: "/user/{id}";
|
|
4898
|
+
};
|
|
4899
|
+
export type PatchUserIdResponses = {
|
|
4900
|
+
200: unknown;
|
|
4901
|
+
};
|
|
4555
4902
|
export type MobileAuthTokenListData = {
|
|
4556
4903
|
body?: never;
|
|
4557
4904
|
path?: never;
|
|
@@ -4626,6 +4973,69 @@ export type MobileBootstrapResponses = {
|
|
|
4626
4973
|
200: MobileBootstrap;
|
|
4627
4974
|
};
|
|
4628
4975
|
export type MobileBootstrapResponse = MobileBootstrapResponses[keyof MobileBootstrapResponses];
|
|
4976
|
+
export type MobileTophatStatusData = {
|
|
4977
|
+
body?: never;
|
|
4978
|
+
path?: never;
|
|
4979
|
+
query?: {
|
|
4980
|
+
directory?: string;
|
|
4981
|
+
workspace?: string;
|
|
4982
|
+
};
|
|
4983
|
+
url: "/mobile/tophat/status";
|
|
4984
|
+
};
|
|
4985
|
+
export type MobileTophatStatusResponses = {
|
|
4986
|
+
/**
|
|
4987
|
+
* Tophat status
|
|
4988
|
+
*/
|
|
4989
|
+
200: MobileTophatStatus;
|
|
4990
|
+
};
|
|
4991
|
+
export type MobileTophatStatusResponse = MobileTophatStatusResponses[keyof MobileTophatStatusResponses];
|
|
4992
|
+
export type MobileTophatInstallUrlData = {
|
|
4993
|
+
body?: never;
|
|
4994
|
+
path?: never;
|
|
4995
|
+
query: {
|
|
4996
|
+
directory?: string;
|
|
4997
|
+
workspace?: string;
|
|
4998
|
+
url: string;
|
|
4999
|
+
platform?: "ios" | "android";
|
|
5000
|
+
};
|
|
5001
|
+
url: "/mobile/tophat/install-url";
|
|
5002
|
+
};
|
|
5003
|
+
export type MobileTophatInstallUrlErrors = {
|
|
5004
|
+
/**
|
|
5005
|
+
* Bad request
|
|
5006
|
+
*/
|
|
5007
|
+
400: BadRequestError;
|
|
5008
|
+
};
|
|
5009
|
+
export type MobileTophatInstallUrlError = MobileTophatInstallUrlErrors[keyof MobileTophatInstallUrlErrors];
|
|
5010
|
+
export type MobileTophatInstallUrlResponses = {
|
|
5011
|
+
/**
|
|
5012
|
+
* Install URLs
|
|
5013
|
+
*/
|
|
5014
|
+
200: {
|
|
5015
|
+
deepLink: string;
|
|
5016
|
+
localLink: string;
|
|
5017
|
+
};
|
|
5018
|
+
};
|
|
5019
|
+
export type MobileTophatInstallUrlResponse = MobileTophatInstallUrlResponses[keyof MobileTophatInstallUrlResponses];
|
|
5020
|
+
export type MobileExpoStatusData = {
|
|
5021
|
+
body?: never;
|
|
5022
|
+
path?: never;
|
|
5023
|
+
query?: {
|
|
5024
|
+
directory?: string;
|
|
5025
|
+
workspace?: string;
|
|
5026
|
+
};
|
|
5027
|
+
url: "/mobile/expo/status";
|
|
5028
|
+
};
|
|
5029
|
+
export type MobileExpoStatusResponses = {
|
|
5030
|
+
/**
|
|
5031
|
+
* Expo status
|
|
5032
|
+
*/
|
|
5033
|
+
200: {
|
|
5034
|
+
available: boolean;
|
|
5035
|
+
details: Array<string>;
|
|
5036
|
+
};
|
|
5037
|
+
};
|
|
5038
|
+
export type MobileExpoStatusResponse = MobileExpoStatusResponses[keyof MobileExpoStatusResponses];
|
|
4629
5039
|
export type MobileMemoryHistoryData = {
|
|
4630
5040
|
body?: never;
|
|
4631
5041
|
path?: never;
|
|
@@ -5340,6 +5750,328 @@ export type MobileSessionRenameResponses = {
|
|
|
5340
5750
|
};
|
|
5341
5751
|
};
|
|
5342
5752
|
export type MobileSessionRenameResponse = MobileSessionRenameResponses[keyof MobileSessionRenameResponses];
|
|
5753
|
+
export type MobileGitStatusData = {
|
|
5754
|
+
body?: never;
|
|
5755
|
+
path?: never;
|
|
5756
|
+
query?: {
|
|
5757
|
+
directory?: string;
|
|
5758
|
+
workspace?: string;
|
|
5759
|
+
};
|
|
5760
|
+
url: "/mobile/git/status";
|
|
5761
|
+
};
|
|
5762
|
+
export type MobileGitStatusResponses = {
|
|
5763
|
+
/**
|
|
5764
|
+
* Git status
|
|
5765
|
+
*/
|
|
5766
|
+
200: {
|
|
5767
|
+
branch: string;
|
|
5768
|
+
staged: Array<{
|
|
5769
|
+
status: "added";
|
|
5770
|
+
path: string;
|
|
5771
|
+
additions: number;
|
|
5772
|
+
deletions: number;
|
|
5773
|
+
} | {
|
|
5774
|
+
status: "modified";
|
|
5775
|
+
path: string;
|
|
5776
|
+
additions: number;
|
|
5777
|
+
deletions: number;
|
|
5778
|
+
} | {
|
|
5779
|
+
status: "deleted";
|
|
5780
|
+
path: string;
|
|
5781
|
+
} | {
|
|
5782
|
+
status: "renamed";
|
|
5783
|
+
path: string;
|
|
5784
|
+
oldPath: string;
|
|
5785
|
+
}>;
|
|
5786
|
+
unstaged: Array<{
|
|
5787
|
+
status: "added";
|
|
5788
|
+
path: string;
|
|
5789
|
+
additions: number;
|
|
5790
|
+
deletions: number;
|
|
5791
|
+
} | {
|
|
5792
|
+
status: "modified";
|
|
5793
|
+
path: string;
|
|
5794
|
+
additions: number;
|
|
5795
|
+
deletions: number;
|
|
5796
|
+
} | {
|
|
5797
|
+
status: "deleted";
|
|
5798
|
+
path: string;
|
|
5799
|
+
} | {
|
|
5800
|
+
status: "renamed";
|
|
5801
|
+
path: string;
|
|
5802
|
+
oldPath: string;
|
|
5803
|
+
}>;
|
|
5804
|
+
untracked: Array<string>;
|
|
5805
|
+
commitsAhead: number;
|
|
5806
|
+
commitsBehind: number;
|
|
5807
|
+
lastCommit?: {
|
|
5808
|
+
sha: string;
|
|
5809
|
+
message: string;
|
|
5810
|
+
author: string;
|
|
5811
|
+
timestamp: number;
|
|
5812
|
+
};
|
|
5813
|
+
};
|
|
5814
|
+
};
|
|
5815
|
+
export type MobileGitStatusResponse = MobileGitStatusResponses[keyof MobileGitStatusResponses];
|
|
5816
|
+
export type MobileGitDiffData = {
|
|
5817
|
+
body?: never;
|
|
5818
|
+
path?: never;
|
|
5819
|
+
query?: {
|
|
5820
|
+
directory?: string;
|
|
5821
|
+
workspace?: string;
|
|
5822
|
+
file?: string;
|
|
5823
|
+
};
|
|
5824
|
+
url: "/mobile/git/diff";
|
|
5825
|
+
};
|
|
5826
|
+
export type MobileGitDiffResponses = {
|
|
5827
|
+
/**
|
|
5828
|
+
* File diffs
|
|
5829
|
+
*/
|
|
5830
|
+
200: Array<{
|
|
5831
|
+
file: string;
|
|
5832
|
+
oldPath?: string;
|
|
5833
|
+
hunks: Array<{
|
|
5834
|
+
header: {
|
|
5835
|
+
oldStart: number;
|
|
5836
|
+
oldLines: number;
|
|
5837
|
+
newStart: number;
|
|
5838
|
+
newLines: number;
|
|
5839
|
+
};
|
|
5840
|
+
lines: Array<{
|
|
5841
|
+
type: "add" | "remove" | "context";
|
|
5842
|
+
text: string;
|
|
5843
|
+
oldLineNumber?: number;
|
|
5844
|
+
newLineNumber?: number;
|
|
5845
|
+
}>;
|
|
5846
|
+
}>;
|
|
5847
|
+
isBinary: boolean;
|
|
5848
|
+
additions: number;
|
|
5849
|
+
deletions: number;
|
|
5850
|
+
}>;
|
|
5851
|
+
};
|
|
5852
|
+
export type MobileGitDiffResponse = MobileGitDiffResponses[keyof MobileGitDiffResponses];
|
|
5853
|
+
export type MobileGitCommitsData = {
|
|
5854
|
+
body?: never;
|
|
5855
|
+
path?: never;
|
|
5856
|
+
query?: {
|
|
5857
|
+
directory?: string;
|
|
5858
|
+
workspace?: string;
|
|
5859
|
+
limit?: number;
|
|
5860
|
+
};
|
|
5861
|
+
url: "/mobile/git/commits";
|
|
5862
|
+
};
|
|
5863
|
+
export type MobileGitCommitsResponses = {
|
|
5864
|
+
/**
|
|
5865
|
+
* Commits
|
|
5866
|
+
*/
|
|
5867
|
+
200: Array<{
|
|
5868
|
+
sha: string;
|
|
5869
|
+
message: string;
|
|
5870
|
+
author: {
|
|
5871
|
+
name: string;
|
|
5872
|
+
email: string;
|
|
5873
|
+
};
|
|
5874
|
+
timestamp: number;
|
|
5875
|
+
filesCount: number;
|
|
5876
|
+
additions: number;
|
|
5877
|
+
deletions: number;
|
|
5878
|
+
}>;
|
|
5879
|
+
};
|
|
5880
|
+
export type MobileGitCommitsResponse = MobileGitCommitsResponses[keyof MobileGitCommitsResponses];
|
|
5881
|
+
export type MobileGitBranchesData = {
|
|
5882
|
+
body?: never;
|
|
5883
|
+
path?: never;
|
|
5884
|
+
query?: {
|
|
5885
|
+
directory?: string;
|
|
5886
|
+
workspace?: string;
|
|
5887
|
+
};
|
|
5888
|
+
url: "/mobile/git/branches";
|
|
5889
|
+
};
|
|
5890
|
+
export type MobileGitBranchesResponses = {
|
|
5891
|
+
/**
|
|
5892
|
+
* Branches
|
|
5893
|
+
*/
|
|
5894
|
+
200: Array<{
|
|
5895
|
+
name: string;
|
|
5896
|
+
isCurrent: boolean;
|
|
5897
|
+
isProtected: boolean;
|
|
5898
|
+
aheadBy: number;
|
|
5899
|
+
behindBy: number;
|
|
5900
|
+
}>;
|
|
5901
|
+
};
|
|
5902
|
+
export type MobileGitBranchesResponse = MobileGitBranchesResponses[keyof MobileGitBranchesResponses];
|
|
5903
|
+
export type MobileGitCommitData = {
|
|
5904
|
+
body?: {
|
|
5905
|
+
message: string;
|
|
5906
|
+
files?: Array<string>;
|
|
5907
|
+
amend?: boolean;
|
|
5908
|
+
};
|
|
5909
|
+
path?: never;
|
|
5910
|
+
query?: {
|
|
5911
|
+
directory?: string;
|
|
5912
|
+
workspace?: string;
|
|
5913
|
+
};
|
|
5914
|
+
url: "/mobile/git/commit";
|
|
5915
|
+
};
|
|
5916
|
+
export type MobileGitCommitErrors = {
|
|
5917
|
+
/**
|
|
5918
|
+
* Bad request
|
|
5919
|
+
*/
|
|
5920
|
+
400: BadRequestError;
|
|
5921
|
+
};
|
|
5922
|
+
export type MobileGitCommitError = MobileGitCommitErrors[keyof MobileGitCommitErrors];
|
|
5923
|
+
export type MobileGitCommitResponses = {
|
|
5924
|
+
/**
|
|
5925
|
+
* Commit created
|
|
5926
|
+
*/
|
|
5927
|
+
200: {
|
|
5928
|
+
sha: string;
|
|
5929
|
+
message: string;
|
|
5930
|
+
};
|
|
5931
|
+
};
|
|
5932
|
+
export type MobileGitCommitResponse = MobileGitCommitResponses[keyof MobileGitCommitResponses];
|
|
5933
|
+
export type MobileGitCheckoutData = {
|
|
5934
|
+
body?: {
|
|
5935
|
+
branch: string;
|
|
5936
|
+
create?: boolean;
|
|
5937
|
+
};
|
|
5938
|
+
path?: never;
|
|
5939
|
+
query?: {
|
|
5940
|
+
directory?: string;
|
|
5941
|
+
workspace?: string;
|
|
5942
|
+
};
|
|
5943
|
+
url: "/mobile/git/checkout";
|
|
5944
|
+
};
|
|
5945
|
+
export type MobileGitCheckoutErrors = {
|
|
5946
|
+
/**
|
|
5947
|
+
* Bad request
|
|
5948
|
+
*/
|
|
5949
|
+
400: BadRequestError;
|
|
5950
|
+
};
|
|
5951
|
+
export type MobileGitCheckoutError = MobileGitCheckoutErrors[keyof MobileGitCheckoutErrors];
|
|
5952
|
+
export type MobileGitCheckoutResponses = {
|
|
5953
|
+
/**
|
|
5954
|
+
* Branch switched
|
|
5955
|
+
*/
|
|
5956
|
+
200: {
|
|
5957
|
+
success: true;
|
|
5958
|
+
};
|
|
5959
|
+
};
|
|
5960
|
+
export type MobileGitCheckoutResponse = MobileGitCheckoutResponses[keyof MobileGitCheckoutResponses];
|
|
5961
|
+
export type MobileGitStageData = {
|
|
5962
|
+
body?: {
|
|
5963
|
+
files: Array<string>;
|
|
5964
|
+
};
|
|
5965
|
+
path?: never;
|
|
5966
|
+
query?: {
|
|
5967
|
+
directory?: string;
|
|
5968
|
+
workspace?: string;
|
|
5969
|
+
};
|
|
5970
|
+
url: "/mobile/git/stage";
|
|
5971
|
+
};
|
|
5972
|
+
export type MobileGitStageResponses = {
|
|
5973
|
+
/**
|
|
5974
|
+
* Files staged
|
|
5975
|
+
*/
|
|
5976
|
+
200: {
|
|
5977
|
+
success: true;
|
|
5978
|
+
};
|
|
5979
|
+
};
|
|
5980
|
+
export type MobileGitStageResponse = MobileGitStageResponses[keyof MobileGitStageResponses];
|
|
5981
|
+
export type MobileGitUnstageData = {
|
|
5982
|
+
body?: {
|
|
5983
|
+
files: Array<string>;
|
|
5984
|
+
};
|
|
5985
|
+
path?: never;
|
|
5986
|
+
query?: {
|
|
5987
|
+
directory?: string;
|
|
5988
|
+
workspace?: string;
|
|
5989
|
+
};
|
|
5990
|
+
url: "/mobile/git/unstage";
|
|
5991
|
+
};
|
|
5992
|
+
export type MobileGitUnstageResponses = {
|
|
5993
|
+
/**
|
|
5994
|
+
* Files unstaged
|
|
5995
|
+
*/
|
|
5996
|
+
200: {
|
|
5997
|
+
success: true;
|
|
5998
|
+
};
|
|
5999
|
+
};
|
|
6000
|
+
export type MobileGitUnstageResponse = MobileGitUnstageResponses[keyof MobileGitUnstageResponses];
|
|
6001
|
+
export type MobileGitDiscardData = {
|
|
6002
|
+
body?: {
|
|
6003
|
+
files: Array<string>;
|
|
6004
|
+
};
|
|
6005
|
+
path?: never;
|
|
6006
|
+
query?: {
|
|
6007
|
+
directory?: string;
|
|
6008
|
+
workspace?: string;
|
|
6009
|
+
};
|
|
6010
|
+
url: "/mobile/git/discard";
|
|
6011
|
+
};
|
|
6012
|
+
export type MobileGitDiscardResponses = {
|
|
6013
|
+
/**
|
|
6014
|
+
* Changes discarded
|
|
6015
|
+
*/
|
|
6016
|
+
200: {
|
|
6017
|
+
success: true;
|
|
6018
|
+
};
|
|
6019
|
+
};
|
|
6020
|
+
export type MobileGitDiscardResponse = MobileGitDiscardResponses[keyof MobileGitDiscardResponses];
|
|
6021
|
+
export type MobileGitPushData = {
|
|
6022
|
+
body?: never;
|
|
6023
|
+
path?: never;
|
|
6024
|
+
query?: {
|
|
6025
|
+
directory?: string;
|
|
6026
|
+
workspace?: string;
|
|
6027
|
+
upstream?: string;
|
|
6028
|
+
};
|
|
6029
|
+
url: "/mobile/git/push";
|
|
6030
|
+
};
|
|
6031
|
+
export type MobileGitPushErrors = {
|
|
6032
|
+
/**
|
|
6033
|
+
* Bad request
|
|
6034
|
+
*/
|
|
6035
|
+
400: BadRequestError;
|
|
6036
|
+
};
|
|
6037
|
+
export type MobileGitPushError = MobileGitPushErrors[keyof MobileGitPushErrors];
|
|
6038
|
+
export type MobileGitPushResponses = {
|
|
6039
|
+
/**
|
|
6040
|
+
* Branch pushed
|
|
6041
|
+
*/
|
|
6042
|
+
200: {
|
|
6043
|
+
success: true;
|
|
6044
|
+
pushed: boolean;
|
|
6045
|
+
};
|
|
6046
|
+
};
|
|
6047
|
+
export type MobileGitPushResponse = MobileGitPushResponses[keyof MobileGitPushResponses];
|
|
6048
|
+
export type MobileGitPullData = {
|
|
6049
|
+
body?: never;
|
|
6050
|
+
path?: never;
|
|
6051
|
+
query?: {
|
|
6052
|
+
directory?: string;
|
|
6053
|
+
workspace?: string;
|
|
6054
|
+
};
|
|
6055
|
+
url: "/mobile/git/pull";
|
|
6056
|
+
};
|
|
6057
|
+
export type MobileGitPullErrors = {
|
|
6058
|
+
/**
|
|
6059
|
+
* Bad request
|
|
6060
|
+
*/
|
|
6061
|
+
400: BadRequestError;
|
|
6062
|
+
};
|
|
6063
|
+
export type MobileGitPullError = MobileGitPullErrors[keyof MobileGitPullErrors];
|
|
6064
|
+
export type MobileGitPullResponses = {
|
|
6065
|
+
/**
|
|
6066
|
+
* Changes pulled
|
|
6067
|
+
*/
|
|
6068
|
+
200: {
|
|
6069
|
+
success: true;
|
|
6070
|
+
pulled: boolean;
|
|
6071
|
+
conflicts?: Array<string>;
|
|
6072
|
+
};
|
|
6073
|
+
};
|
|
6074
|
+
export type MobileGitPullResponse = MobileGitPullResponses[keyof MobileGitPullResponses];
|
|
5343
6075
|
export type FindTextData = {
|
|
5344
6076
|
body?: never;
|
|
5345
6077
|
path?: never;
|
|
@@ -5767,6 +6499,35 @@ export type McpDisconnectResponses = {
|
|
|
5767
6499
|
200: boolean;
|
|
5768
6500
|
};
|
|
5769
6501
|
export type McpDisconnectResponse = McpDisconnectResponses[keyof McpDisconnectResponses];
|
|
6502
|
+
export type McpToggleData = {
|
|
6503
|
+
body?: {
|
|
6504
|
+
enabled: boolean;
|
|
6505
|
+
};
|
|
6506
|
+
path: {
|
|
6507
|
+
name: string;
|
|
6508
|
+
};
|
|
6509
|
+
query?: {
|
|
6510
|
+
directory?: string;
|
|
6511
|
+
workspace?: string;
|
|
6512
|
+
};
|
|
6513
|
+
url: "/mcp/{name}/toggle";
|
|
6514
|
+
};
|
|
6515
|
+
export type McpToggleErrors = {
|
|
6516
|
+
/**
|
|
6517
|
+
* Not found
|
|
6518
|
+
*/
|
|
6519
|
+
404: NotFoundError;
|
|
6520
|
+
};
|
|
6521
|
+
export type McpToggleError = McpToggleErrors[keyof McpToggleErrors];
|
|
6522
|
+
export type McpToggleResponses = {
|
|
6523
|
+
/**
|
|
6524
|
+
* MCP server toggled successfully
|
|
6525
|
+
*/
|
|
6526
|
+
200: {
|
|
6527
|
+
[key: string]: McpStatus;
|
|
6528
|
+
};
|
|
6529
|
+
};
|
|
6530
|
+
export type McpToggleResponse = McpToggleResponses[keyof McpToggleResponses];
|
|
5770
6531
|
export type TuiAppendPromptData = {
|
|
5771
6532
|
body?: {
|
|
5772
6533
|
text: string;
|
|
@@ -6172,6 +6933,86 @@ export type AppSkillsResponses = {
|
|
|
6172
6933
|
}>;
|
|
6173
6934
|
};
|
|
6174
6935
|
export type AppSkillsResponse = AppSkillsResponses[keyof AppSkillsResponses];
|
|
6936
|
+
export type AppSkillCreateData = {
|
|
6937
|
+
body?: {
|
|
6938
|
+
/**
|
|
6939
|
+
* Skill name
|
|
6940
|
+
*/
|
|
6941
|
+
name: string;
|
|
6942
|
+
/**
|
|
6943
|
+
* Skill description
|
|
6944
|
+
*/
|
|
6945
|
+
description: string;
|
|
6946
|
+
/**
|
|
6947
|
+
* Optional category
|
|
6948
|
+
*/
|
|
6949
|
+
category?: string;
|
|
6950
|
+
/**
|
|
6951
|
+
* Optional tags
|
|
6952
|
+
*/
|
|
6953
|
+
tags?: Array<string>;
|
|
6954
|
+
/**
|
|
6955
|
+
* Optional markdown content
|
|
6956
|
+
*/
|
|
6957
|
+
content?: string;
|
|
6958
|
+
/**
|
|
6959
|
+
* Where to create (default: workspace)
|
|
6960
|
+
*/
|
|
6961
|
+
scope?: "workspace" | "global";
|
|
6962
|
+
};
|
|
6963
|
+
path?: never;
|
|
6964
|
+
query?: {
|
|
6965
|
+
directory?: string;
|
|
6966
|
+
workspace?: string;
|
|
6967
|
+
};
|
|
6968
|
+
url: "/skill";
|
|
6969
|
+
};
|
|
6970
|
+
export type AppSkillCreateErrors = {
|
|
6971
|
+
/**
|
|
6972
|
+
* Bad request
|
|
6973
|
+
*/
|
|
6974
|
+
400: BadRequestError;
|
|
6975
|
+
};
|
|
6976
|
+
export type AppSkillCreateError = AppSkillCreateErrors[keyof AppSkillCreateErrors];
|
|
6977
|
+
export type AppSkillCreateResponses = {
|
|
6978
|
+
/**
|
|
6979
|
+
* Created skill
|
|
6980
|
+
*/
|
|
6981
|
+
200: {
|
|
6982
|
+
name: string;
|
|
6983
|
+
description: string;
|
|
6984
|
+
location: string;
|
|
6985
|
+
category?: string;
|
|
6986
|
+
tags?: Array<string>;
|
|
6987
|
+
version?: string;
|
|
6988
|
+
};
|
|
6989
|
+
};
|
|
6990
|
+
export type AppSkillCreateResponse = AppSkillCreateResponses[keyof AppSkillCreateResponses];
|
|
6991
|
+
export type AppSkillDeleteData = {
|
|
6992
|
+
body?: never;
|
|
6993
|
+
path: {
|
|
6994
|
+
name: string;
|
|
6995
|
+
};
|
|
6996
|
+
query?: {
|
|
6997
|
+
directory?: string;
|
|
6998
|
+
workspace?: string;
|
|
6999
|
+
};
|
|
7000
|
+
url: "/skill/{name}";
|
|
7001
|
+
};
|
|
7002
|
+
export type AppSkillDeleteErrors = {
|
|
7003
|
+
/**
|
|
7004
|
+
* Bad request
|
|
7005
|
+
*/
|
|
7006
|
+
400: BadRequestError;
|
|
7007
|
+
};
|
|
7008
|
+
export type AppSkillDeleteError = AppSkillDeleteErrors[keyof AppSkillDeleteErrors];
|
|
7009
|
+
export type AppSkillDeleteResponses = {
|
|
7010
|
+
/**
|
|
7011
|
+
* Deleted
|
|
7012
|
+
*/
|
|
7013
|
+
200: boolean;
|
|
7014
|
+
};
|
|
7015
|
+
export type AppSkillDeleteResponse = AppSkillDeleteResponses[keyof AppSkillDeleteResponses];
|
|
6175
7016
|
export type LspStatusData = {
|
|
6176
7017
|
body?: never;
|
|
6177
7018
|
path?: never;
|