shuvcode 2.0.0-alpha-19 → 2.0.0-alpha-20
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/client/api.d.ts +4 -2
- package/client/client.d.ts +269 -0
- package/client/client.js +13 -0
- package/client/generated/client.d.ts +13 -5
- package/client/generated/client.js +194 -139
- package/client/generated/types.d.ts +334 -113
- package/client/generated/types.js +6 -4
- package/client/index.d.ts +4 -2
- package/client/index.js +7 -7
- package/client/rpc.d.ts +32 -0
- package/client/rpc.js +86 -0
- package/client/service.js +10 -9
- package/package.json +13 -13
|
@@ -20,13 +20,28 @@ export type PluginSource = {
|
|
|
20
20
|
type: "builtin";
|
|
21
21
|
} | {
|
|
22
22
|
type: "package";
|
|
23
|
-
|
|
23
|
+
target: string;
|
|
24
|
+
version?: string;
|
|
25
|
+
outdated?: true;
|
|
26
|
+
updating?: true;
|
|
24
27
|
} | {
|
|
25
28
|
type: "local";
|
|
26
29
|
path: string;
|
|
27
30
|
} | {
|
|
28
31
|
type: "sdk";
|
|
29
32
|
};
|
|
33
|
+
export type PluginFeatures = {
|
|
34
|
+
server?: true;
|
|
35
|
+
tui?: true;
|
|
36
|
+
rpc?: true;
|
|
37
|
+
};
|
|
38
|
+
export type PluginState = {
|
|
39
|
+
status: "active";
|
|
40
|
+
} | {
|
|
41
|
+
status: "failed";
|
|
42
|
+
error: string;
|
|
43
|
+
ref?: string;
|
|
44
|
+
};
|
|
30
45
|
export type SessionForkBoundary = {
|
|
31
46
|
type: "before";
|
|
32
47
|
messageID: string;
|
|
@@ -204,20 +219,6 @@ export type SessionMessageCompactionRunning = {
|
|
|
204
219
|
summary: string;
|
|
205
220
|
recent: string;
|
|
206
221
|
};
|
|
207
|
-
export type SessionMessageCompactionCompleted = {
|
|
208
|
-
type: "compaction";
|
|
209
|
-
id: string;
|
|
210
|
-
metadata?: {
|
|
211
|
-
[x: string]: JsonValue;
|
|
212
|
-
};
|
|
213
|
-
time: {
|
|
214
|
-
created: number;
|
|
215
|
-
};
|
|
216
|
-
status: "completed";
|
|
217
|
-
reason: "auto" | "manual";
|
|
218
|
-
summary: string;
|
|
219
|
-
recent: string;
|
|
220
|
-
};
|
|
221
222
|
export type SessionActive = {
|
|
222
223
|
type: "running";
|
|
223
224
|
};
|
|
@@ -330,6 +331,7 @@ export type GenerateTextResponse = {
|
|
|
330
331
|
};
|
|
331
332
|
export type ProviderInfo = {
|
|
332
333
|
id: string;
|
|
334
|
+
canonical?: string;
|
|
333
335
|
integrationID?: string;
|
|
334
336
|
name: string;
|
|
335
337
|
activation: "auto" | "enabled" | "disabled";
|
|
@@ -501,6 +503,8 @@ export type FormMetadata = {
|
|
|
501
503
|
[x: string]: JsonValue;
|
|
502
504
|
};
|
|
503
505
|
export type FormValue = string | number | boolean | Array<string>;
|
|
506
|
+
export type FormValue1 = string | number | "Infinity" | "-Infinity" | "NaN" | boolean | Array<string>;
|
|
507
|
+
export type FormResponseID = string;
|
|
504
508
|
export type PermissionSource = {
|
|
505
509
|
type: "tool";
|
|
506
510
|
messageID: string;
|
|
@@ -512,6 +516,8 @@ export type PermissionSavedInfo = {
|
|
|
512
516
|
action: string;
|
|
513
517
|
resource: string;
|
|
514
518
|
};
|
|
519
|
+
export type PermissionReply = "once" | "always" | "reject";
|
|
520
|
+
export type PermissionResponseID = string;
|
|
515
521
|
export type FileSystemEntry = {
|
|
516
522
|
path: string;
|
|
517
523
|
type: "file" | "directory";
|
|
@@ -529,6 +535,9 @@ export type SkillInfo = {
|
|
|
529
535
|
location: string;
|
|
530
536
|
content: string;
|
|
531
537
|
};
|
|
538
|
+
export type RpcOutput = {
|
|
539
|
+
output?: any;
|
|
540
|
+
};
|
|
532
541
|
export type SessionDynamicToolDefinition1 = {
|
|
533
542
|
name: string;
|
|
534
543
|
description: string;
|
|
@@ -536,7 +545,6 @@ export type SessionDynamicToolDefinition1 = {
|
|
|
536
545
|
[x: string]: any;
|
|
537
546
|
};
|
|
538
547
|
};
|
|
539
|
-
export type PermissionReply = "once" | "always" | "reject";
|
|
540
548
|
export type Pty = {
|
|
541
549
|
id: string;
|
|
542
550
|
title: string;
|
|
@@ -686,6 +694,9 @@ export type WebSearchResult = {
|
|
|
686
694
|
published?: number;
|
|
687
695
|
};
|
|
688
696
|
};
|
|
697
|
+
export type ConfigWorktree = {
|
|
698
|
+
directory: string;
|
|
699
|
+
};
|
|
689
700
|
export type ProviderRequest = {
|
|
690
701
|
settings: ProviderSettings;
|
|
691
702
|
headers: {
|
|
@@ -701,16 +712,10 @@ export type PermissionRule = {
|
|
|
701
712
|
effect: PermissionEffect;
|
|
702
713
|
};
|
|
703
714
|
export type PluginInfo = {
|
|
704
|
-
id: string;
|
|
705
|
-
source: PluginSource;
|
|
706
|
-
status: "active";
|
|
707
|
-
tui: boolean;
|
|
708
|
-
} | {
|
|
709
715
|
id?: string;
|
|
710
716
|
source: PluginSource;
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
tui: boolean;
|
|
717
|
+
features: PluginFeatures;
|
|
718
|
+
state: PluginState;
|
|
714
719
|
};
|
|
715
720
|
export type SessionMessageLocationSwitched = {
|
|
716
721
|
id: string;
|
|
@@ -735,6 +740,18 @@ export type SessionInboxMovePayload = {
|
|
|
735
740
|
projectID: string;
|
|
736
741
|
subpath?: string;
|
|
737
742
|
};
|
|
743
|
+
export type V2EventRpc = {
|
|
744
|
+
id: string;
|
|
745
|
+
created: number;
|
|
746
|
+
metadata?: {
|
|
747
|
+
[x: string]: any;
|
|
748
|
+
} | undefined;
|
|
749
|
+
type: `${"rpc."}${string}`;
|
|
750
|
+
location: LocationRef;
|
|
751
|
+
data: {
|
|
752
|
+
[x: string]: any;
|
|
753
|
+
};
|
|
754
|
+
};
|
|
738
755
|
export type V2EventServerConnected = {
|
|
739
756
|
id: string;
|
|
740
757
|
metadata?: {
|
|
@@ -813,6 +830,22 @@ export type SessionMessageAssistantReasoning = {
|
|
|
813
830
|
completed?: number;
|
|
814
831
|
};
|
|
815
832
|
};
|
|
833
|
+
export type SessionMessageCompactionCompleted = {
|
|
834
|
+
type: "compaction";
|
|
835
|
+
id: string;
|
|
836
|
+
metadata?: {
|
|
837
|
+
[x: string]: JsonValue;
|
|
838
|
+
};
|
|
839
|
+
time: {
|
|
840
|
+
created: number;
|
|
841
|
+
};
|
|
842
|
+
status: "completed";
|
|
843
|
+
reason: "auto" | "manual";
|
|
844
|
+
model?: ModelRef;
|
|
845
|
+
providerState?: SessionMessageProviderState;
|
|
846
|
+
summary: string;
|
|
847
|
+
recent: string;
|
|
848
|
+
};
|
|
816
849
|
export type ToolContent = ToolTextContent | ToolFileContent;
|
|
817
850
|
export type SessionMessageAssistantRetry = {
|
|
818
851
|
attempt: number;
|
|
@@ -1295,26 +1328,6 @@ export type SessionCompactionStarted = {
|
|
|
1295
1328
|
inputID?: string;
|
|
1296
1329
|
};
|
|
1297
1330
|
};
|
|
1298
|
-
export type SessionCompactionEnded = {
|
|
1299
|
-
id: string;
|
|
1300
|
-
created: number;
|
|
1301
|
-
metadata?: {
|
|
1302
|
-
[x: string]: any;
|
|
1303
|
-
};
|
|
1304
|
-
type: "session.compaction.ended";
|
|
1305
|
-
durable: {
|
|
1306
|
-
aggregateID: string;
|
|
1307
|
-
seq: number;
|
|
1308
|
-
version: 1;
|
|
1309
|
-
};
|
|
1310
|
-
location?: LocationRef;
|
|
1311
|
-
data: {
|
|
1312
|
-
sessionID: string;
|
|
1313
|
-
reason: "auto" | "manual";
|
|
1314
|
-
text: string;
|
|
1315
|
-
recent: string;
|
|
1316
|
-
};
|
|
1317
|
-
};
|
|
1318
1331
|
export type SessionCompactionFailed = {
|
|
1319
1332
|
id: string;
|
|
1320
1333
|
created: number;
|
|
@@ -1606,18 +1619,6 @@ export type ReferenceUpdated = {
|
|
|
1606
1619
|
location?: LocationRef;
|
|
1607
1620
|
data: {};
|
|
1608
1621
|
};
|
|
1609
|
-
export type PluginAdded = {
|
|
1610
|
-
id: string;
|
|
1611
|
-
created: number;
|
|
1612
|
-
metadata?: {
|
|
1613
|
-
[x: string]: any;
|
|
1614
|
-
};
|
|
1615
|
-
type: "plugin.added";
|
|
1616
|
-
location?: LocationRef;
|
|
1617
|
-
data: {
|
|
1618
|
-
id: string;
|
|
1619
|
-
};
|
|
1620
|
-
};
|
|
1621
1622
|
export type PluginUpdated = {
|
|
1622
1623
|
id: string;
|
|
1623
1624
|
created: number;
|
|
@@ -2091,6 +2092,28 @@ export type SessionToolCalled = {
|
|
|
2091
2092
|
state?: SessionMessageProviderState1;
|
|
2092
2093
|
};
|
|
2093
2094
|
};
|
|
2095
|
+
export type SessionCompactionEnded = {
|
|
2096
|
+
id: string;
|
|
2097
|
+
created: number;
|
|
2098
|
+
metadata?: {
|
|
2099
|
+
[x: string]: any;
|
|
2100
|
+
};
|
|
2101
|
+
type: "session.compaction.ended";
|
|
2102
|
+
durable: {
|
|
2103
|
+
aggregateID: string;
|
|
2104
|
+
seq: number;
|
|
2105
|
+
version: 1;
|
|
2106
|
+
};
|
|
2107
|
+
location?: LocationRef;
|
|
2108
|
+
data: {
|
|
2109
|
+
sessionID: string;
|
|
2110
|
+
reason: "auto" | "manual";
|
|
2111
|
+
model?: ModelRef;
|
|
2112
|
+
providerState?: SessionMessageProviderState1;
|
|
2113
|
+
text: string;
|
|
2114
|
+
recent: string;
|
|
2115
|
+
};
|
|
2116
|
+
};
|
|
2094
2117
|
export type SessionMessageAssistantText1 = {
|
|
2095
2118
|
type: "text";
|
|
2096
2119
|
text: string;
|
|
@@ -2233,6 +2256,9 @@ export type ProjectUpdated = {
|
|
|
2233
2256
|
export type FormAnswer = {
|
|
2234
2257
|
[x: string]: FormValue;
|
|
2235
2258
|
};
|
|
2259
|
+
export type FormAnswer1 = {
|
|
2260
|
+
[x: string]: FormValue1;
|
|
2261
|
+
};
|
|
2236
2262
|
export type PermissionRequest = {
|
|
2237
2263
|
id: string;
|
|
2238
2264
|
sessionID: string;
|
|
@@ -2266,31 +2292,40 @@ export type PermissionAsked = {
|
|
|
2266
2292
|
message?: string;
|
|
2267
2293
|
};
|
|
2268
2294
|
};
|
|
2269
|
-
export type
|
|
2295
|
+
export type PermissionState = {
|
|
2296
|
+
status: "pending";
|
|
2297
|
+
} | {
|
|
2298
|
+
status: "answered";
|
|
2299
|
+
reply: PermissionReply;
|
|
2300
|
+
message?: string;
|
|
2301
|
+
} | {
|
|
2302
|
+
status: "cancelled";
|
|
2303
|
+
};
|
|
2304
|
+
export type PermissionReplied = {
|
|
2270
2305
|
id: string;
|
|
2271
2306
|
created: number;
|
|
2272
2307
|
metadata?: {
|
|
2273
2308
|
[x: string]: any;
|
|
2274
2309
|
};
|
|
2275
|
-
type: "
|
|
2310
|
+
type: "permission.replied";
|
|
2276
2311
|
location?: LocationRef;
|
|
2277
2312
|
data: {
|
|
2278
2313
|
sessionID: string;
|
|
2279
|
-
|
|
2314
|
+
requestID: string;
|
|
2315
|
+
reply: PermissionReply;
|
|
2280
2316
|
};
|
|
2281
2317
|
};
|
|
2282
|
-
export type
|
|
2318
|
+
export type SessionToolsUpdated = {
|
|
2283
2319
|
id: string;
|
|
2284
2320
|
created: number;
|
|
2285
2321
|
metadata?: {
|
|
2286
2322
|
[x: string]: any;
|
|
2287
2323
|
};
|
|
2288
|
-
type: "
|
|
2324
|
+
type: "session.tools.updated";
|
|
2289
2325
|
location?: LocationRef;
|
|
2290
2326
|
data: {
|
|
2291
2327
|
sessionID: string;
|
|
2292
|
-
|
|
2293
|
-
reply: PermissionReply;
|
|
2328
|
+
tools: Array<SessionDynamicToolDefinition1>;
|
|
2294
2329
|
};
|
|
2295
2330
|
};
|
|
2296
2331
|
export type PtyCreated = {
|
|
@@ -2594,6 +2629,7 @@ export type ModelInfo = {
|
|
|
2594
2629
|
id: string;
|
|
2595
2630
|
modelID: string;
|
|
2596
2631
|
providerID: string;
|
|
2632
|
+
canonical?: string;
|
|
2597
2633
|
family?: string;
|
|
2598
2634
|
name: string;
|
|
2599
2635
|
compatibility?: ModelCompatibility;
|
|
@@ -2644,6 +2680,24 @@ export type FormReplied = {
|
|
|
2644
2680
|
answer: FormAnswer;
|
|
2645
2681
|
};
|
|
2646
2682
|
};
|
|
2683
|
+
export type FormState1 = {
|
|
2684
|
+
status: "pending";
|
|
2685
|
+
} | {
|
|
2686
|
+
status: "answered";
|
|
2687
|
+
answer: FormAnswer1;
|
|
2688
|
+
} | {
|
|
2689
|
+
status: "cancelled";
|
|
2690
|
+
};
|
|
2691
|
+
export type PermissionReceipt = {
|
|
2692
|
+
request: PermissionRequest;
|
|
2693
|
+
state: PermissionState;
|
|
2694
|
+
available: boolean;
|
|
2695
|
+
responseID?: PermissionResponseID;
|
|
2696
|
+
time: {
|
|
2697
|
+
created: number;
|
|
2698
|
+
updated: number;
|
|
2699
|
+
};
|
|
2700
|
+
};
|
|
2647
2701
|
export type FormField1 = FormStringField1 | FormNumberField1 | FormIntegerField1 | FormBooleanField1 | FormMultiselectField1 | FormExternalField;
|
|
2648
2702
|
export type ReferenceInfo = {
|
|
2649
2703
|
name: string;
|
|
@@ -2677,7 +2731,7 @@ export type ConfigEntry = {
|
|
|
2677
2731
|
variant?: string;
|
|
2678
2732
|
};
|
|
2679
2733
|
default_agent?: string;
|
|
2680
|
-
|
|
2734
|
+
update?: "disable" | "notify" | "auto";
|
|
2681
2735
|
share?: "manual" | "auto" | "disabled";
|
|
2682
2736
|
enterprise?: {
|
|
2683
2737
|
url?: string;
|
|
@@ -2817,6 +2871,7 @@ export type ConfigEntry = {
|
|
|
2817
2871
|
model: string;
|
|
2818
2872
|
variant?: string;
|
|
2819
2873
|
};
|
|
2874
|
+
subagent?: boolean;
|
|
2820
2875
|
subtask?: boolean;
|
|
2821
2876
|
};
|
|
2822
2877
|
};
|
|
@@ -2842,6 +2897,7 @@ export type ConfigEntry = {
|
|
|
2842
2897
|
[x: string]: JsonValue;
|
|
2843
2898
|
};
|
|
2844
2899
|
}>;
|
|
2900
|
+
worktree?: ConfigWorktree;
|
|
2845
2901
|
warming?: boolean | {
|
|
2846
2902
|
prompt?: string;
|
|
2847
2903
|
interval?: string;
|
|
@@ -2849,6 +2905,7 @@ export type ConfigEntry = {
|
|
|
2849
2905
|
};
|
|
2850
2906
|
providers?: {
|
|
2851
2907
|
[x: string]: {
|
|
2908
|
+
canonical?: string;
|
|
2852
2909
|
name?: string;
|
|
2853
2910
|
env?: Array<string>;
|
|
2854
2911
|
package?: string;
|
|
@@ -3178,6 +3235,16 @@ export type SessionMessageContentUpdated = {
|
|
|
3178
3235
|
};
|
|
3179
3236
|
};
|
|
3180
3237
|
export type IntegrationMethod = IntegrationOAuthMethod | IntegrationCommandMethod | IntegrationKeyMethod | IntegrationEnvMethod;
|
|
3238
|
+
export type FormReceipt = {
|
|
3239
|
+
request: FormInfo;
|
|
3240
|
+
state: FormState1;
|
|
3241
|
+
available: boolean;
|
|
3242
|
+
responseID?: FormResponseID;
|
|
3243
|
+
time: {
|
|
3244
|
+
created: number;
|
|
3245
|
+
updated: number;
|
|
3246
|
+
};
|
|
3247
|
+
};
|
|
3181
3248
|
export type FormCreated = {
|
|
3182
3249
|
id: string;
|
|
3183
3250
|
created: number;
|
|
@@ -3211,13 +3278,8 @@ export type IntegrationInfo = {
|
|
|
3211
3278
|
methods: Array<IntegrationMethod>;
|
|
3212
3279
|
connections: Array<ConnectionInfo>;
|
|
3213
3280
|
};
|
|
3214
|
-
export type V2Event = ModelsDevRefreshed | CredentialUpdated | CredentialSwitched | IntegrationUpdated | CatalogUpdated | AgentUpdated | SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionViewed | SessionUsageUpdated | SessionDeleted | SessionForked | SessionInboxDelivered | SessionInboxEnqueued | SessionInboxCancelled | SessionInboxDeliveryChanged | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepStreamed | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextDelta | SessionTextEnded | SessionReasoningStarted | SessionReasoningDelta | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputDelta | SessionToolInputEnded | SessionToolCalled | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionDelta | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | SessionToolsUpdated | SessionToolDynamicRequested | SessionToolDynamicReplied | SessionToolDynamicCancelled | SessionMessageContentUpdated | FilesystemChanged | ReferenceUpdated | PermissionAsked | PermissionReplied |
|
|
3281
|
+
export type V2Event = ModelsDevRefreshed | CredentialUpdated | CredentialSwitched | IntegrationUpdated | CatalogUpdated | AgentUpdated | SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionViewed | SessionUsageUpdated | SessionDeleted | SessionForked | SessionInboxDelivered | SessionInboxEnqueued | SessionInboxCancelled | SessionInboxDeliveryChanged | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepStreamed | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextDelta | SessionTextEnded | SessionReasoningStarted | SessionReasoningDelta | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputDelta | SessionToolInputEnded | SessionToolCalled | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionDelta | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | SessionToolsUpdated | SessionToolDynamicRequested | SessionToolDynamicReplied | SessionToolDynamicCancelled | SessionMessageContentUpdated | FilesystemChanged | ReferenceUpdated | PermissionAsked | PermissionReplied | PluginUpdated | ProjectUpdated | WorktreeUpdated | WorktreeResolved | CommandUpdated | ConfigUpdated | SkillUpdated | PtyCreated | PtyUpdated | PtyExited | PtyDeleted | PersistentPtyAdded | PersistentPtyRemoved | ShellCreated | ShellExited | ShellDeleted | FormCreated | FormReplied | FormCancelled | WebsearchUpdated | SessionStatusUpdated | SessionIdle | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | InstallationUpdated | InstallationUpdateAvailable | VcsBranchUpdated | McpStatusChanged | McpResourcesChanged | V2EventRpc | V2EventServerConnected;
|
|
3215
3282
|
export type SessionLogItem = SessionEventDurable | EventLogSynced;
|
|
3216
|
-
export type UnauthorizedError = {
|
|
3217
|
-
readonly _tag: "UnauthorizedError";
|
|
3218
|
-
readonly message: string;
|
|
3219
|
-
};
|
|
3220
|
-
export declare const isUnauthorizedError: (value: unknown) => value is UnauthorizedError;
|
|
3221
3283
|
export type InvalidRequestError = {
|
|
3222
3284
|
readonly _tag: "InvalidRequestError";
|
|
3223
3285
|
readonly message: string;
|
|
@@ -3225,29 +3287,40 @@ export type InvalidRequestError = {
|
|
|
3225
3287
|
readonly field?: string | undefined;
|
|
3226
3288
|
};
|
|
3227
3289
|
export declare const isInvalidRequestError: (value: unknown) => value is InvalidRequestError;
|
|
3290
|
+
export type UnauthorizedError = {
|
|
3291
|
+
readonly _tag: "UnauthorizedError";
|
|
3292
|
+
readonly message: string;
|
|
3293
|
+
};
|
|
3294
|
+
export declare const isUnauthorizedError: (value: unknown) => value is UnauthorizedError;
|
|
3228
3295
|
export type AgentNotFoundError = {
|
|
3229
3296
|
readonly _tag: "AgentNotFoundError";
|
|
3230
3297
|
readonly agentID: string;
|
|
3231
3298
|
readonly message: string;
|
|
3232
3299
|
};
|
|
3233
3300
|
export declare const isAgentNotFoundError: (value: unknown) => value is AgentNotFoundError;
|
|
3301
|
+
export type ServiceUnavailableError = {
|
|
3302
|
+
readonly _tag: "ServiceUnavailableError";
|
|
3303
|
+
readonly message: string;
|
|
3304
|
+
readonly service?: string | undefined;
|
|
3305
|
+
};
|
|
3306
|
+
export declare const isServiceUnavailableError: (value: unknown) => value is ServiceUnavailableError;
|
|
3234
3307
|
export type InvalidCursorError = {
|
|
3235
3308
|
readonly _tag: "InvalidCursorError";
|
|
3236
3309
|
readonly message: string;
|
|
3237
3310
|
};
|
|
3238
3311
|
export declare const isInvalidCursorError: (value: unknown) => value is InvalidCursorError;
|
|
3239
|
-
export type ConflictError = {
|
|
3240
|
-
readonly _tag: "ConflictError";
|
|
3241
|
-
readonly message: string;
|
|
3242
|
-
readonly resource?: string | undefined;
|
|
3243
|
-
};
|
|
3244
|
-
export declare const isConflictError: (value: unknown) => value is ConflictError;
|
|
3245
3312
|
export type SessionNotFoundError = {
|
|
3246
3313
|
readonly _tag: "SessionNotFoundError";
|
|
3247
3314
|
readonly sessionID: string;
|
|
3248
3315
|
readonly message: string;
|
|
3249
3316
|
};
|
|
3250
3317
|
export declare const isSessionNotFoundError: (value: unknown) => value is SessionNotFoundError;
|
|
3318
|
+
export type ConflictError = {
|
|
3319
|
+
readonly _tag: "ConflictError";
|
|
3320
|
+
readonly message: string;
|
|
3321
|
+
readonly resource?: string | undefined;
|
|
3322
|
+
};
|
|
3323
|
+
export declare const isConflictError: (value: unknown) => value is ConflictError;
|
|
3251
3324
|
export type UnknownError = {
|
|
3252
3325
|
readonly _tag: "UnknownError";
|
|
3253
3326
|
readonly message: string;
|
|
@@ -3279,12 +3352,6 @@ export type SkillNotFoundError = {
|
|
|
3279
3352
|
readonly message: string;
|
|
3280
3353
|
};
|
|
3281
3354
|
export declare const isSkillNotFoundError: (value: unknown) => value is SkillNotFoundError;
|
|
3282
|
-
export type ServiceUnavailableError = {
|
|
3283
|
-
readonly _tag: "ServiceUnavailableError";
|
|
3284
|
-
readonly message: string;
|
|
3285
|
-
readonly service?: string | undefined;
|
|
3286
|
-
};
|
|
3287
|
-
export declare const isServiceUnavailableError: (value: unknown) => value is ServiceUnavailableError;
|
|
3288
3355
|
export type SessionBusyError = {
|
|
3289
3356
|
readonly _tag: "SessionBusyError";
|
|
3290
3357
|
readonly sessionID: string;
|
|
@@ -3322,24 +3389,38 @@ export type FormNotFoundError = {
|
|
|
3322
3389
|
readonly message: string;
|
|
3323
3390
|
};
|
|
3324
3391
|
export declare const isFormNotFoundError: (value: unknown) => value is FormNotFoundError;
|
|
3325
|
-
export type FormAlreadySettledError = {
|
|
3326
|
-
readonly _tag: "FormAlreadySettledError";
|
|
3327
|
-
readonly id: string;
|
|
3328
|
-
readonly message: string;
|
|
3329
|
-
};
|
|
3330
|
-
export declare const isFormAlreadySettledError: (value: unknown) => value is FormAlreadySettledError;
|
|
3331
3392
|
export type FormInvalidAnswerError = {
|
|
3332
3393
|
readonly _tag: "FormInvalidAnswerError";
|
|
3333
3394
|
readonly id: string;
|
|
3334
3395
|
readonly message: string;
|
|
3335
3396
|
};
|
|
3336
3397
|
export declare const isFormInvalidAnswerError: (value: unknown) => value is FormInvalidAnswerError;
|
|
3398
|
+
export type FormAlreadySettledError = {
|
|
3399
|
+
readonly _tag: "FormAlreadySettledError";
|
|
3400
|
+
readonly id: string;
|
|
3401
|
+
readonly message: string;
|
|
3402
|
+
};
|
|
3403
|
+
export declare const isFormAlreadySettledError: (value: unknown) => value is FormAlreadySettledError;
|
|
3337
3404
|
export type PermissionNotFoundError = {
|
|
3338
3405
|
readonly _tag: "PermissionNotFoundError";
|
|
3339
3406
|
readonly requestID: string;
|
|
3340
3407
|
readonly message: string;
|
|
3341
3408
|
};
|
|
3342
3409
|
export declare const isPermissionNotFoundError: (value: unknown) => value is PermissionNotFoundError;
|
|
3410
|
+
export type RpcError = {
|
|
3411
|
+
readonly _tag: "RpcError";
|
|
3412
|
+
readonly type: string;
|
|
3413
|
+
readonly message: string;
|
|
3414
|
+
readonly data?: unknown | undefined;
|
|
3415
|
+
};
|
|
3416
|
+
export declare const isRpcError: (value: unknown) => value is RpcError;
|
|
3417
|
+
export type RpcInternalError = {
|
|
3418
|
+
readonly _tag: "RpcInternalError";
|
|
3419
|
+
readonly type: "rpc.internal" | "rpc.invalid_output";
|
|
3420
|
+
readonly message: string;
|
|
3421
|
+
readonly data?: unknown | undefined;
|
|
3422
|
+
};
|
|
3423
|
+
export declare const isRpcInternalError: (value: unknown) => value is RpcInternalError;
|
|
3343
3424
|
export type PtyNotFoundError = {
|
|
3344
3425
|
readonly _tag: "PtyNotFoundError";
|
|
3345
3426
|
readonly ptyID: string;
|
|
@@ -3449,6 +3530,50 @@ export type PluginListOutput = {
|
|
|
3449
3530
|
};
|
|
3450
3531
|
data: Array<PluginInfo>;
|
|
3451
3532
|
};
|
|
3533
|
+
export type PluginAwaitActivationInput = {
|
|
3534
|
+
readonly location?: {
|
|
3535
|
+
readonly location?: {
|
|
3536
|
+
readonly directory?: string | undefined;
|
|
3537
|
+
readonly workspace?: string | undefined;
|
|
3538
|
+
} | undefined;
|
|
3539
|
+
}["location"];
|
|
3540
|
+
};
|
|
3541
|
+
export type PluginAwaitActivationOutput = void;
|
|
3542
|
+
export type PluginCheckInput = {
|
|
3543
|
+
readonly location?: {
|
|
3544
|
+
readonly location?: {
|
|
3545
|
+
readonly directory?: string | undefined;
|
|
3546
|
+
readonly workspace?: string | undefined;
|
|
3547
|
+
} | undefined;
|
|
3548
|
+
}["location"];
|
|
3549
|
+
readonly target?: {
|
|
3550
|
+
readonly target?: string | undefined;
|
|
3551
|
+
}["target"];
|
|
3552
|
+
};
|
|
3553
|
+
export type PluginCheckOutput = {
|
|
3554
|
+
location: {
|
|
3555
|
+
directory: string;
|
|
3556
|
+
workspaceID?: string;
|
|
3557
|
+
project: {
|
|
3558
|
+
id: string;
|
|
3559
|
+
directory: string;
|
|
3560
|
+
canonical: string;
|
|
3561
|
+
};
|
|
3562
|
+
};
|
|
3563
|
+
data: Array<PluginInfo>;
|
|
3564
|
+
};
|
|
3565
|
+
export type PluginUpdateInput = {
|
|
3566
|
+
readonly location?: {
|
|
3567
|
+
readonly location?: {
|
|
3568
|
+
readonly directory?: string | undefined;
|
|
3569
|
+
readonly workspace?: string | undefined;
|
|
3570
|
+
} | undefined;
|
|
3571
|
+
}["location"];
|
|
3572
|
+
readonly targets: {
|
|
3573
|
+
readonly targets: ReadonlyArray<string>;
|
|
3574
|
+
}["targets"];
|
|
3575
|
+
};
|
|
3576
|
+
export type PluginUpdateOutput = void;
|
|
3452
3577
|
export type SessionListInput = {
|
|
3453
3578
|
readonly workspace?: {
|
|
3454
3579
|
readonly workspace?: string | undefined;
|
|
@@ -4228,6 +4353,14 @@ export type SessionImportInput = {
|
|
|
4228
4353
|
};
|
|
4229
4354
|
readonly status: "completed";
|
|
4230
4355
|
readonly reason: "auto" | "manual";
|
|
4356
|
+
readonly model?: {
|
|
4357
|
+
readonly id: string;
|
|
4358
|
+
readonly providerID: string;
|
|
4359
|
+
readonly variant?: string;
|
|
4360
|
+
};
|
|
4361
|
+
readonly providerState?: {
|
|
4362
|
+
readonly [x: string]: JsonValue;
|
|
4363
|
+
};
|
|
4231
4364
|
readonly summary: string;
|
|
4232
4365
|
readonly recent: string;
|
|
4233
4366
|
} | {
|
|
@@ -4651,6 +4784,14 @@ export type SessionImportInput = {
|
|
|
4651
4784
|
};
|
|
4652
4785
|
readonly status: "completed";
|
|
4653
4786
|
readonly reason: "auto" | "manual";
|
|
4787
|
+
readonly model?: {
|
|
4788
|
+
readonly id: string;
|
|
4789
|
+
readonly providerID: string;
|
|
4790
|
+
readonly variant?: string;
|
|
4791
|
+
};
|
|
4792
|
+
readonly providerState?: {
|
|
4793
|
+
readonly [x: string]: JsonValue;
|
|
4794
|
+
};
|
|
4654
4795
|
readonly summary: string;
|
|
4655
4796
|
readonly recent: string;
|
|
4656
4797
|
} | {
|
|
@@ -5074,6 +5215,14 @@ export type SessionImportInput = {
|
|
|
5074
5215
|
};
|
|
5075
5216
|
readonly status: "completed";
|
|
5076
5217
|
readonly reason: "auto" | "manual";
|
|
5218
|
+
readonly model?: {
|
|
5219
|
+
readonly id: string;
|
|
5220
|
+
readonly providerID: string;
|
|
5221
|
+
readonly variant?: string;
|
|
5222
|
+
};
|
|
5223
|
+
readonly providerState?: {
|
|
5224
|
+
readonly [x: string]: JsonValue;
|
|
5225
|
+
};
|
|
5077
5226
|
readonly summary: string;
|
|
5078
5227
|
readonly recent: string;
|
|
5079
5228
|
} | {
|
|
@@ -7664,6 +7813,19 @@ export type FormStateInput = {
|
|
|
7664
7813
|
export type FormStateOutput = {
|
|
7665
7814
|
data: FormState;
|
|
7666
7815
|
}["data"];
|
|
7816
|
+
export type FormReceiptInput = {
|
|
7817
|
+
readonly sessionID: {
|
|
7818
|
+
readonly sessionID: string;
|
|
7819
|
+
readonly formID: string;
|
|
7820
|
+
}["sessionID"];
|
|
7821
|
+
readonly formID: {
|
|
7822
|
+
readonly sessionID: string;
|
|
7823
|
+
readonly formID: string;
|
|
7824
|
+
}["formID"];
|
|
7825
|
+
};
|
|
7826
|
+
export type FormReceiptOutput = {
|
|
7827
|
+
data: FormReceipt;
|
|
7828
|
+
}["data"];
|
|
7667
7829
|
export type FormReplyInput = {
|
|
7668
7830
|
readonly sessionID: {
|
|
7669
7831
|
readonly sessionID: string;
|
|
@@ -7675,9 +7837,16 @@ export type FormReplyInput = {
|
|
|
7675
7837
|
}["formID"];
|
|
7676
7838
|
readonly answer: {
|
|
7677
7839
|
readonly answer: {
|
|
7678
|
-
readonly [x: string]: string | number | boolean | ReadonlyArray<string>;
|
|
7840
|
+
readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
|
|
7679
7841
|
};
|
|
7842
|
+
readonly responseID?: string;
|
|
7680
7843
|
}["answer"];
|
|
7844
|
+
readonly responseID?: {
|
|
7845
|
+
readonly answer: {
|
|
7846
|
+
readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
|
|
7847
|
+
};
|
|
7848
|
+
readonly responseID?: string;
|
|
7849
|
+
}["responseID"];
|
|
7681
7850
|
};
|
|
7682
7851
|
export type FormReplyOutput = void;
|
|
7683
7852
|
export type FormCancelInput = {
|
|
@@ -7862,6 +8031,19 @@ export type PermissionGetInput = {
|
|
|
7862
8031
|
export type PermissionGetOutput = {
|
|
7863
8032
|
data: PermissionRequest;
|
|
7864
8033
|
}["data"];
|
|
8034
|
+
export type PermissionReceiptInput = {
|
|
8035
|
+
readonly sessionID: {
|
|
8036
|
+
readonly sessionID: string;
|
|
8037
|
+
readonly requestID: string;
|
|
8038
|
+
}["sessionID"];
|
|
8039
|
+
readonly requestID: {
|
|
8040
|
+
readonly sessionID: string;
|
|
8041
|
+
readonly requestID: string;
|
|
8042
|
+
}["requestID"];
|
|
8043
|
+
};
|
|
8044
|
+
export type PermissionReceiptOutput = {
|
|
8045
|
+
data: PermissionReceipt;
|
|
8046
|
+
}["data"];
|
|
7865
8047
|
export type PermissionReplyInput = {
|
|
7866
8048
|
readonly sessionID: {
|
|
7867
8049
|
readonly sessionID: string;
|
|
@@ -7874,11 +8056,18 @@ export type PermissionReplyInput = {
|
|
|
7874
8056
|
readonly reply: {
|
|
7875
8057
|
readonly reply: "once" | "always" | "reject";
|
|
7876
8058
|
readonly message?: string | undefined;
|
|
8059
|
+
readonly responseID?: string | undefined;
|
|
7877
8060
|
}["reply"];
|
|
7878
8061
|
readonly message?: {
|
|
7879
8062
|
readonly reply: "once" | "always" | "reject";
|
|
7880
8063
|
readonly message?: string | undefined;
|
|
8064
|
+
readonly responseID?: string | undefined;
|
|
7881
8065
|
}["message"];
|
|
8066
|
+
readonly responseID?: {
|
|
8067
|
+
readonly reply: "once" | "always" | "reject";
|
|
8068
|
+
readonly message?: string | undefined;
|
|
8069
|
+
readonly responseID?: string | undefined;
|
|
8070
|
+
}["responseID"];
|
|
7882
8071
|
};
|
|
7883
8072
|
export type PermissionReplyOutput = void;
|
|
7884
8073
|
export type FileReadInput = {
|
|
@@ -8009,6 +8198,26 @@ export type SkillListOutput = {
|
|
|
8009
8198
|
};
|
|
8010
8199
|
data: Array<SkillInfo>;
|
|
8011
8200
|
};
|
|
8201
|
+
export type RpcCallInput = {
|
|
8202
|
+
readonly rpcID: {
|
|
8203
|
+
readonly rpcID: string;
|
|
8204
|
+
readonly method: string;
|
|
8205
|
+
}["rpcID"];
|
|
8206
|
+
readonly method: {
|
|
8207
|
+
readonly rpcID: string;
|
|
8208
|
+
readonly method: string;
|
|
8209
|
+
}["method"];
|
|
8210
|
+
readonly location?: {
|
|
8211
|
+
readonly location?: {
|
|
8212
|
+
readonly directory?: string | undefined;
|
|
8213
|
+
readonly workspace?: string | undefined;
|
|
8214
|
+
} | undefined;
|
|
8215
|
+
}["location"];
|
|
8216
|
+
readonly input?: {
|
|
8217
|
+
readonly input: JsonValue;
|
|
8218
|
+
}["input"];
|
|
8219
|
+
};
|
|
8220
|
+
export type RpcCallOutput = RpcOutput;
|
|
8012
8221
|
export type EventSubscribeOutput = V2Event;
|
|
8013
8222
|
export type PtyListInput = {
|
|
8014
8223
|
readonly location?: {
|
|
@@ -8557,56 +8766,65 @@ export type ReferenceListOutput = {
|
|
|
8557
8766
|
data: Array<ReferenceInfo>;
|
|
8558
8767
|
};
|
|
8559
8768
|
export type WorktreeListInput = {
|
|
8560
|
-
readonly
|
|
8561
|
-
readonly
|
|
8562
|
-
|
|
8769
|
+
readonly location?: {
|
|
8770
|
+
readonly location?: {
|
|
8771
|
+
readonly directory?: string | undefined;
|
|
8772
|
+
readonly workspace?: string | undefined;
|
|
8773
|
+
} | undefined;
|
|
8774
|
+
}["location"];
|
|
8563
8775
|
};
|
|
8564
8776
|
export type WorktreeListOutput = WorktreeList;
|
|
8565
8777
|
export type WorktreeCreateInput = {
|
|
8566
|
-
readonly
|
|
8567
|
-
readonly
|
|
8568
|
-
|
|
8569
|
-
|
|
8570
|
-
|
|
8778
|
+
readonly location?: {
|
|
8779
|
+
readonly location?: {
|
|
8780
|
+
readonly directory?: string | undefined;
|
|
8781
|
+
readonly workspace?: string | undefined;
|
|
8782
|
+
} | undefined;
|
|
8783
|
+
}["location"];
|
|
8784
|
+
readonly strategy?: {
|
|
8785
|
+
readonly strategy?: string;
|
|
8571
8786
|
readonly from?: string;
|
|
8572
8787
|
readonly branch?: string;
|
|
8573
|
-
readonly directory
|
|
8788
|
+
readonly directory?: string;
|
|
8574
8789
|
readonly name?: string;
|
|
8575
8790
|
}["strategy"];
|
|
8576
8791
|
readonly from?: {
|
|
8577
|
-
readonly strategy
|
|
8792
|
+
readonly strategy?: string;
|
|
8578
8793
|
readonly from?: string;
|
|
8579
8794
|
readonly branch?: string;
|
|
8580
|
-
readonly directory
|
|
8795
|
+
readonly directory?: string;
|
|
8581
8796
|
readonly name?: string;
|
|
8582
8797
|
}["from"];
|
|
8583
8798
|
readonly branch?: {
|
|
8584
|
-
readonly strategy
|
|
8799
|
+
readonly strategy?: string;
|
|
8585
8800
|
readonly from?: string;
|
|
8586
8801
|
readonly branch?: string;
|
|
8587
|
-
readonly directory
|
|
8802
|
+
readonly directory?: string;
|
|
8588
8803
|
readonly name?: string;
|
|
8589
8804
|
}["branch"];
|
|
8590
|
-
readonly directory
|
|
8591
|
-
readonly strategy
|
|
8805
|
+
readonly directory?: {
|
|
8806
|
+
readonly strategy?: string;
|
|
8592
8807
|
readonly from?: string;
|
|
8593
8808
|
readonly branch?: string;
|
|
8594
|
-
readonly directory
|
|
8809
|
+
readonly directory?: string;
|
|
8595
8810
|
readonly name?: string;
|
|
8596
8811
|
}["directory"];
|
|
8597
8812
|
readonly name?: {
|
|
8598
|
-
readonly strategy
|
|
8813
|
+
readonly strategy?: string;
|
|
8599
8814
|
readonly from?: string;
|
|
8600
8815
|
readonly branch?: string;
|
|
8601
|
-
readonly directory
|
|
8816
|
+
readonly directory?: string;
|
|
8602
8817
|
readonly name?: string;
|
|
8603
8818
|
}["name"];
|
|
8604
8819
|
};
|
|
8605
8820
|
export type WorktreeCreateOutput = WorktreeInfo;
|
|
8606
8821
|
export type WorktreeRemoveInput = {
|
|
8607
|
-
readonly
|
|
8608
|
-
readonly
|
|
8609
|
-
|
|
8822
|
+
readonly location?: {
|
|
8823
|
+
readonly location?: {
|
|
8824
|
+
readonly directory?: string | undefined;
|
|
8825
|
+
readonly workspace?: string | undefined;
|
|
8826
|
+
} | undefined;
|
|
8827
|
+
}["location"];
|
|
8610
8828
|
readonly directory: {
|
|
8611
8829
|
readonly directory: string;
|
|
8612
8830
|
readonly force: boolean;
|
|
@@ -8618,9 +8836,12 @@ export type WorktreeRemoveInput = {
|
|
|
8618
8836
|
};
|
|
8619
8837
|
export type WorktreeRemoveOutput = void;
|
|
8620
8838
|
export type WorktreeRefreshInput = {
|
|
8621
|
-
readonly
|
|
8622
|
-
readonly
|
|
8623
|
-
|
|
8839
|
+
readonly location?: {
|
|
8840
|
+
readonly location?: {
|
|
8841
|
+
readonly directory?: string | undefined;
|
|
8842
|
+
readonly workspace?: string | undefined;
|
|
8843
|
+
} | undefined;
|
|
8844
|
+
}["location"];
|
|
8624
8845
|
};
|
|
8625
8846
|
export type WorktreeRefreshOutput = void;
|
|
8626
8847
|
export type WorkspaceCreateInput = {
|