@getpaseo/protocol 0.1.97 → 0.1.98
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/agent-types.d.ts +10 -0
- package/dist/messages.d.ts +588 -1
- package/dist/messages.js +101 -6
- package/package.json +1 -1
package/dist/agent-types.d.ts
CHANGED
|
@@ -3,6 +3,16 @@ export type AgentProvider = string;
|
|
|
3
3
|
export interface AgentMetadata {
|
|
4
4
|
[key: string]: unknown;
|
|
5
5
|
}
|
|
6
|
+
export type AgentProviderNotice = {
|
|
7
|
+
type: "info";
|
|
8
|
+
message: string;
|
|
9
|
+
} | {
|
|
10
|
+
type: "warning";
|
|
11
|
+
message: string;
|
|
12
|
+
} | {
|
|
13
|
+
type: "error";
|
|
14
|
+
message: string;
|
|
15
|
+
};
|
|
6
16
|
/**
|
|
7
17
|
* Stdio-based MCP server (spawns a subprocess).
|
|
8
18
|
*/
|
package/dist/messages.d.ts
CHANGED
|
@@ -76,7 +76,7 @@ export declare const MutableDaemonConfigPatchSchema: z.ZodObject<{
|
|
|
76
76
|
}, z.core.$loose>;
|
|
77
77
|
export type MutableDaemonConfig = z.infer<typeof MutableDaemonConfigSchema>;
|
|
78
78
|
export type MutableDaemonConfigPatch = z.infer<typeof MutableDaemonConfigPatchSchema>;
|
|
79
|
-
import type { AgentCapabilityFlags, AgentModelDefinition, AgentMode, AgentPermissionRequest, AgentPermissionResponse, AgentPersistenceHandle, ProviderStatus, AgentRuntimeInfo, AgentTimelineItem, AgentUsage } from "./agent-types.js";
|
|
79
|
+
import type { AgentCapabilityFlags, AgentModelDefinition, AgentMode, AgentPermissionRequest, AgentPermissionResponse, AgentPersistenceHandle, ProviderStatus, AgentRuntimeInfo, AgentTimelineItem, AgentProviderNotice, AgentUsage } from "./agent-types.js";
|
|
80
80
|
export declare const AgentStatusSchema: z.ZodEnum<{
|
|
81
81
|
error: "error";
|
|
82
82
|
initializing: "initializing";
|
|
@@ -1115,6 +1115,10 @@ export declare const ProviderDiagnosticRequestMessageSchema: z.ZodObject<{
|
|
|
1115
1115
|
provider: z.ZodString;
|
|
1116
1116
|
requestId: z.ZodString;
|
|
1117
1117
|
}, z.core.$strip>;
|
|
1118
|
+
export declare const ProviderUsageListRequestMessageSchema: z.ZodObject<{
|
|
1119
|
+
type: z.ZodLiteral<"provider.usage.list.request">;
|
|
1120
|
+
requestId: z.ZodString;
|
|
1121
|
+
}, z.core.$strip>;
|
|
1118
1122
|
export declare const ResumeAgentRequestMessageSchema: z.ZodObject<{
|
|
1119
1123
|
type: z.ZodLiteral<"resume_agent_request">;
|
|
1120
1124
|
handle: z.ZodType<AgentPersistenceHandle | null, unknown, z.core.$ZodTypeInternals<AgentPersistenceHandle | null, unknown>>;
|
|
@@ -1220,6 +1224,7 @@ export declare const SetAgentModeResponseMessageSchema: z.ZodObject<{
|
|
|
1220
1224
|
agentId: z.ZodString;
|
|
1221
1225
|
accepted: z.ZodBoolean;
|
|
1222
1226
|
error: z.ZodNullable<z.ZodString>;
|
|
1227
|
+
notice: z.ZodOptional<z.ZodNullable<z.ZodType<AgentProviderNotice, unknown, z.core.$ZodTypeInternals<AgentProviderNotice, unknown>>>>;
|
|
1223
1228
|
}, z.core.$strip>;
|
|
1224
1229
|
}, z.core.$strip>;
|
|
1225
1230
|
export declare const SetAgentModelRequestMessageSchema: z.ZodObject<{
|
|
@@ -1235,6 +1240,7 @@ export declare const SetAgentModelResponseMessageSchema: z.ZodObject<{
|
|
|
1235
1240
|
agentId: z.ZodString;
|
|
1236
1241
|
accepted: z.ZodBoolean;
|
|
1237
1242
|
error: z.ZodNullable<z.ZodString>;
|
|
1243
|
+
notice: z.ZodOptional<z.ZodNullable<z.ZodType<AgentProviderNotice, unknown, z.core.$ZodTypeInternals<AgentProviderNotice, unknown>>>>;
|
|
1238
1244
|
}, z.core.$strip>;
|
|
1239
1245
|
}, z.core.$strip>;
|
|
1240
1246
|
export declare const SetAgentThinkingRequestMessageSchema: z.ZodObject<{
|
|
@@ -1250,6 +1256,7 @@ export declare const SetAgentThinkingResponseMessageSchema: z.ZodObject<{
|
|
|
1250
1256
|
agentId: z.ZodString;
|
|
1251
1257
|
accepted: z.ZodBoolean;
|
|
1252
1258
|
error: z.ZodNullable<z.ZodString>;
|
|
1259
|
+
notice: z.ZodOptional<z.ZodNullable<z.ZodType<AgentProviderNotice, unknown, z.core.$ZodTypeInternals<AgentProviderNotice, unknown>>>>;
|
|
1253
1260
|
}, z.core.$strip>;
|
|
1254
1261
|
}, z.core.$strip>;
|
|
1255
1262
|
export declare const SetAgentFeatureRequestMessageSchema: z.ZodObject<{
|
|
@@ -1266,6 +1273,22 @@ export declare const SetAgentFeatureResponseMessageSchema: z.ZodObject<{
|
|
|
1266
1273
|
agentId: z.ZodString;
|
|
1267
1274
|
accepted: z.ZodBoolean;
|
|
1268
1275
|
error: z.ZodNullable<z.ZodString>;
|
|
1276
|
+
notice: z.ZodOptional<z.ZodNullable<z.ZodType<AgentProviderNotice, unknown, z.core.$ZodTypeInternals<AgentProviderNotice, unknown>>>>;
|
|
1277
|
+
}, z.core.$strip>;
|
|
1278
|
+
}, z.core.$strip>;
|
|
1279
|
+
export declare const AgentDetachRequestMessageSchema: z.ZodObject<{
|
|
1280
|
+
type: z.ZodLiteral<"agent.detach.request">;
|
|
1281
|
+
agentId: z.ZodString;
|
|
1282
|
+
requestId: z.ZodString;
|
|
1283
|
+
}, z.core.$strip>;
|
|
1284
|
+
export declare const AgentDetachResponseMessageSchema: z.ZodObject<{
|
|
1285
|
+
type: z.ZodLiteral<"agent.detach.response">;
|
|
1286
|
+
payload: z.ZodObject<{
|
|
1287
|
+
requestId: z.ZodString;
|
|
1288
|
+
agentId: z.ZodString;
|
|
1289
|
+
accepted: z.ZodBoolean;
|
|
1290
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1291
|
+
notice: z.ZodOptional<z.ZodNullable<z.ZodType<AgentProviderNotice, unknown, z.core.$ZodTypeInternals<AgentProviderNotice, unknown>>>>;
|
|
1269
1292
|
}, z.core.$strip>;
|
|
1270
1293
|
}, z.core.$strip>;
|
|
1271
1294
|
export declare const AgentRewindModeSchema: z.ZodEnum<{
|
|
@@ -1300,6 +1323,7 @@ export declare const UpdateAgentResponseMessageSchema: z.ZodObject<{
|
|
|
1300
1323
|
agentId: z.ZodString;
|
|
1301
1324
|
accepted: z.ZodBoolean;
|
|
1302
1325
|
error: z.ZodNullable<z.ZodString>;
|
|
1326
|
+
notice: z.ZodOptional<z.ZodNullable<z.ZodType<AgentProviderNotice, unknown, z.core.$ZodTypeInternals<AgentProviderNotice, unknown>>>>;
|
|
1303
1327
|
}, z.core.$strip>;
|
|
1304
1328
|
}, z.core.$strip>;
|
|
1305
1329
|
export declare const ProjectRenameResponsePayloadSchema: z.ZodObject<{
|
|
@@ -1804,6 +1828,11 @@ export declare const OpenProjectRequestSchema: z.ZodObject<{
|
|
|
1804
1828
|
cwd: z.ZodString;
|
|
1805
1829
|
requestId: z.ZodString;
|
|
1806
1830
|
}, z.core.$strip>;
|
|
1831
|
+
export declare const ProjectAddRequestSchema: z.ZodObject<{
|
|
1832
|
+
type: z.ZodLiteral<"project.add.request">;
|
|
1833
|
+
cwd: z.ZodString;
|
|
1834
|
+
requestId: z.ZodString;
|
|
1835
|
+
}, z.core.$strip>;
|
|
1807
1836
|
export declare const ArchiveWorkspaceRequestSchema: z.ZodObject<{
|
|
1808
1837
|
type: z.ZodLiteral<"archive_workspace_request">;
|
|
1809
1838
|
workspaceId: z.ZodString;
|
|
@@ -2564,6 +2593,9 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2564
2593
|
type: z.ZodLiteral<"provider_diagnostic_request">;
|
|
2565
2594
|
provider: z.ZodString;
|
|
2566
2595
|
requestId: z.ZodString;
|
|
2596
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2597
|
+
type: z.ZodLiteral<"provider.usage.list.request">;
|
|
2598
|
+
requestId: z.ZodString;
|
|
2567
2599
|
}, z.core.$strip>, z.ZodObject<{
|
|
2568
2600
|
type: z.ZodLiteral<"resume_agent_request">;
|
|
2569
2601
|
handle: z.ZodType<AgentPersistenceHandle | null, unknown, z.core.$ZodTypeInternals<AgentPersistenceHandle | null, unknown>>;
|
|
@@ -2666,6 +2698,10 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2666
2698
|
featureId: z.ZodString;
|
|
2667
2699
|
value: z.ZodUnknown;
|
|
2668
2700
|
requestId: z.ZodString;
|
|
2701
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2702
|
+
type: z.ZodLiteral<"agent.detach.request">;
|
|
2703
|
+
agentId: z.ZodString;
|
|
2704
|
+
requestId: z.ZodString;
|
|
2669
2705
|
}, z.core.$strip>, z.ZodObject<{
|
|
2670
2706
|
type: z.ZodLiteral<"agent.rewind.request">;
|
|
2671
2707
|
agentId: z.ZodString;
|
|
@@ -3004,6 +3040,10 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
3004
3040
|
type: z.ZodLiteral<"open_project_request">;
|
|
3005
3041
|
cwd: z.ZodString;
|
|
3006
3042
|
requestId: z.ZodString;
|
|
3043
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3044
|
+
type: z.ZodLiteral<"project.add.request">;
|
|
3045
|
+
cwd: z.ZodString;
|
|
3046
|
+
requestId: z.ZodString;
|
|
3007
3047
|
}, z.core.$strip>, z.ZodObject<{
|
|
3008
3048
|
type: z.ZodLiteral<"archive_workspace_request">;
|
|
3009
3049
|
workspaceId: z.ZodString;
|
|
@@ -3565,7 +3605,10 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
3565
3605
|
checkoutRefresh: z.ZodOptional<z.ZodBoolean>;
|
|
3566
3606
|
workspaceMultiplicity: z.ZodOptional<z.ZodBoolean>;
|
|
3567
3607
|
projectRemove: z.ZodOptional<z.ZodBoolean>;
|
|
3608
|
+
projectAdd: z.ZodOptional<z.ZodBoolean>;
|
|
3568
3609
|
worktreeRestore: z.ZodOptional<z.ZodBoolean>;
|
|
3610
|
+
providerUsageList: z.ZodOptional<z.ZodBoolean>;
|
|
3611
|
+
agentDetach: z.ZodOptional<z.ZodBoolean>;
|
|
3569
3612
|
}, z.core.$strip>>;
|
|
3570
3613
|
}, z.core.$loose>, z.ZodTransform<{
|
|
3571
3614
|
hostname: string | null;
|
|
@@ -3595,7 +3638,10 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
3595
3638
|
checkoutRefresh?: boolean | undefined;
|
|
3596
3639
|
workspaceMultiplicity?: boolean | undefined;
|
|
3597
3640
|
projectRemove?: boolean | undefined;
|
|
3641
|
+
projectAdd?: boolean | undefined;
|
|
3598
3642
|
worktreeRestore?: boolean | undefined;
|
|
3643
|
+
providerUsageList?: boolean | undefined;
|
|
3644
|
+
agentDetach?: boolean | undefined;
|
|
3599
3645
|
} | undefined;
|
|
3600
3646
|
}, {
|
|
3601
3647
|
[x: string]: unknown;
|
|
@@ -3626,7 +3672,10 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
3626
3672
|
checkoutRefresh?: boolean | undefined;
|
|
3627
3673
|
workspaceMultiplicity?: boolean | undefined;
|
|
3628
3674
|
projectRemove?: boolean | undefined;
|
|
3675
|
+
projectAdd?: boolean | undefined;
|
|
3629
3676
|
worktreeRestore?: boolean | undefined;
|
|
3677
|
+
providerUsageList?: boolean | undefined;
|
|
3678
|
+
agentDetach?: boolean | undefined;
|
|
3630
3679
|
} | undefined;
|
|
3631
3680
|
}>>;
|
|
3632
3681
|
export declare const StatusMessageSchema: z.ZodObject<{
|
|
@@ -6783,6 +6832,27 @@ export declare const OpenProjectResponseMessageSchema: z.ZodObject<{
|
|
|
6783
6832
|
}>>>>;
|
|
6784
6833
|
}, z.core.$strip>;
|
|
6785
6834
|
}, z.core.$strip>;
|
|
6835
|
+
export declare const ProjectAddResponseSchema: z.ZodObject<{
|
|
6836
|
+
type: z.ZodLiteral<"project.add.response">;
|
|
6837
|
+
payload: z.ZodObject<{
|
|
6838
|
+
requestId: z.ZodString;
|
|
6839
|
+
project: z.ZodNullable<z.ZodObject<{
|
|
6840
|
+
projectId: z.ZodString;
|
|
6841
|
+
projectDisplayName: z.ZodString;
|
|
6842
|
+
projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6843
|
+
projectRootPath: z.ZodString;
|
|
6844
|
+
projectKind: z.ZodEnum<{
|
|
6845
|
+
git: "git";
|
|
6846
|
+
directory: "directory";
|
|
6847
|
+
non_git: "non_git";
|
|
6848
|
+
}>;
|
|
6849
|
+
}, z.core.$strip>>;
|
|
6850
|
+
error: z.ZodNullable<z.ZodString>;
|
|
6851
|
+
errorCode: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
6852
|
+
directory_not_found: "directory_not_found";
|
|
6853
|
+
}>>>>;
|
|
6854
|
+
}, z.core.$strip>;
|
|
6855
|
+
}, z.core.$strip>;
|
|
6786
6856
|
export declare const StartWorkspaceScriptResponseMessageSchema: z.ZodObject<{
|
|
6787
6857
|
type: z.ZodLiteral<"start_workspace_script_response">;
|
|
6788
6858
|
payload: z.ZodObject<{
|
|
@@ -9591,6 +9661,190 @@ export declare const ProviderDiagnosticResponseMessageSchema: z.ZodObject<{
|
|
|
9591
9661
|
requestId: z.ZodString;
|
|
9592
9662
|
}, z.core.$strip>;
|
|
9593
9663
|
}, z.core.$strip>;
|
|
9664
|
+
export declare const ProviderUsageToneSchema: z.ZodEnum<{
|
|
9665
|
+
warning: "warning";
|
|
9666
|
+
default: "default";
|
|
9667
|
+
danger: "danger";
|
|
9668
|
+
ok: "ok";
|
|
9669
|
+
}>;
|
|
9670
|
+
export declare const ProviderUsageStatusSchema: z.ZodEnum<{
|
|
9671
|
+
error: "error";
|
|
9672
|
+
unavailable: "unavailable";
|
|
9673
|
+
available: "available";
|
|
9674
|
+
}>;
|
|
9675
|
+
export declare const ProviderUsageWindowSchema: z.ZodObject<{
|
|
9676
|
+
id: z.ZodString;
|
|
9677
|
+
label: z.ZodString;
|
|
9678
|
+
usedPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9679
|
+
remainingPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9680
|
+
resetsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9681
|
+
runsOutAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9682
|
+
shortfallPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9683
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
9684
|
+
warning: "warning";
|
|
9685
|
+
default: "default";
|
|
9686
|
+
danger: "danger";
|
|
9687
|
+
ok: "ok";
|
|
9688
|
+
}>>;
|
|
9689
|
+
}, z.core.$strip>;
|
|
9690
|
+
export declare const ProviderUsageBalanceSchema: z.ZodObject<{
|
|
9691
|
+
id: z.ZodString;
|
|
9692
|
+
label: z.ZodString;
|
|
9693
|
+
used: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9694
|
+
remaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9695
|
+
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9696
|
+
unit: z.ZodEnum<{
|
|
9697
|
+
tokens: "tokens";
|
|
9698
|
+
usd: "usd";
|
|
9699
|
+
credits: "credits";
|
|
9700
|
+
requests: "requests";
|
|
9701
|
+
}>;
|
|
9702
|
+
resetsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9703
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
9704
|
+
warning: "warning";
|
|
9705
|
+
default: "default";
|
|
9706
|
+
danger: "danger";
|
|
9707
|
+
ok: "ok";
|
|
9708
|
+
}>>;
|
|
9709
|
+
}, z.core.$strip>;
|
|
9710
|
+
export declare const ProviderUsageDetailSchema: z.ZodObject<{
|
|
9711
|
+
id: z.ZodString;
|
|
9712
|
+
label: z.ZodString;
|
|
9713
|
+
value: z.ZodString;
|
|
9714
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
9715
|
+
warning: "warning";
|
|
9716
|
+
default: "default";
|
|
9717
|
+
danger: "danger";
|
|
9718
|
+
ok: "ok";
|
|
9719
|
+
}>>;
|
|
9720
|
+
}, z.core.$strip>;
|
|
9721
|
+
export declare const ProviderUsageSchema: z.ZodObject<{
|
|
9722
|
+
providerId: z.ZodString;
|
|
9723
|
+
displayName: z.ZodString;
|
|
9724
|
+
status: z.ZodEnum<{
|
|
9725
|
+
error: "error";
|
|
9726
|
+
unavailable: "unavailable";
|
|
9727
|
+
available: "available";
|
|
9728
|
+
}>;
|
|
9729
|
+
planLabel: z.ZodNullable<z.ZodString>;
|
|
9730
|
+
sourceLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9731
|
+
fetchedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9732
|
+
nextRefreshAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9733
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
9734
|
+
id: z.ZodString;
|
|
9735
|
+
label: z.ZodString;
|
|
9736
|
+
usedPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9737
|
+
remainingPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9738
|
+
resetsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9739
|
+
runsOutAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9740
|
+
shortfallPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9741
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
9742
|
+
warning: "warning";
|
|
9743
|
+
default: "default";
|
|
9744
|
+
danger: "danger";
|
|
9745
|
+
ok: "ok";
|
|
9746
|
+
}>>;
|
|
9747
|
+
}, z.core.$strip>>;
|
|
9748
|
+
balances: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9749
|
+
id: z.ZodString;
|
|
9750
|
+
label: z.ZodString;
|
|
9751
|
+
used: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9752
|
+
remaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9753
|
+
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9754
|
+
unit: z.ZodEnum<{
|
|
9755
|
+
tokens: "tokens";
|
|
9756
|
+
usd: "usd";
|
|
9757
|
+
credits: "credits";
|
|
9758
|
+
requests: "requests";
|
|
9759
|
+
}>;
|
|
9760
|
+
resetsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9761
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
9762
|
+
warning: "warning";
|
|
9763
|
+
default: "default";
|
|
9764
|
+
danger: "danger";
|
|
9765
|
+
ok: "ok";
|
|
9766
|
+
}>>;
|
|
9767
|
+
}, z.core.$strip>>>;
|
|
9768
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9769
|
+
id: z.ZodString;
|
|
9770
|
+
label: z.ZodString;
|
|
9771
|
+
value: z.ZodString;
|
|
9772
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
9773
|
+
warning: "warning";
|
|
9774
|
+
default: "default";
|
|
9775
|
+
danger: "danger";
|
|
9776
|
+
ok: "ok";
|
|
9777
|
+
}>>;
|
|
9778
|
+
}, z.core.$strip>>>;
|
|
9779
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9780
|
+
}, z.core.$strip>;
|
|
9781
|
+
export declare const ProviderUsageListResponseMessageSchema: z.ZodObject<{
|
|
9782
|
+
type: z.ZodLiteral<"provider.usage.list.response">;
|
|
9783
|
+
payload: z.ZodObject<{
|
|
9784
|
+
requestId: z.ZodString;
|
|
9785
|
+
fetchedAt: z.ZodString;
|
|
9786
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
9787
|
+
providerId: z.ZodString;
|
|
9788
|
+
displayName: z.ZodString;
|
|
9789
|
+
status: z.ZodEnum<{
|
|
9790
|
+
error: "error";
|
|
9791
|
+
unavailable: "unavailable";
|
|
9792
|
+
available: "available";
|
|
9793
|
+
}>;
|
|
9794
|
+
planLabel: z.ZodNullable<z.ZodString>;
|
|
9795
|
+
sourceLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9796
|
+
fetchedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9797
|
+
nextRefreshAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9798
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
9799
|
+
id: z.ZodString;
|
|
9800
|
+
label: z.ZodString;
|
|
9801
|
+
usedPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9802
|
+
remainingPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9803
|
+
resetsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9804
|
+
runsOutAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9805
|
+
shortfallPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9806
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
9807
|
+
warning: "warning";
|
|
9808
|
+
default: "default";
|
|
9809
|
+
danger: "danger";
|
|
9810
|
+
ok: "ok";
|
|
9811
|
+
}>>;
|
|
9812
|
+
}, z.core.$strip>>;
|
|
9813
|
+
balances: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9814
|
+
id: z.ZodString;
|
|
9815
|
+
label: z.ZodString;
|
|
9816
|
+
used: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9817
|
+
remaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9818
|
+
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9819
|
+
unit: z.ZodEnum<{
|
|
9820
|
+
tokens: "tokens";
|
|
9821
|
+
usd: "usd";
|
|
9822
|
+
credits: "credits";
|
|
9823
|
+
requests: "requests";
|
|
9824
|
+
}>;
|
|
9825
|
+
resetsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9826
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
9827
|
+
warning: "warning";
|
|
9828
|
+
default: "default";
|
|
9829
|
+
danger: "danger";
|
|
9830
|
+
ok: "ok";
|
|
9831
|
+
}>>;
|
|
9832
|
+
}, z.core.$strip>>>;
|
|
9833
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9834
|
+
id: z.ZodString;
|
|
9835
|
+
label: z.ZodString;
|
|
9836
|
+
value: z.ZodString;
|
|
9837
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
9838
|
+
warning: "warning";
|
|
9839
|
+
default: "default";
|
|
9840
|
+
danger: "danger";
|
|
9841
|
+
ok: "ok";
|
|
9842
|
+
}>>;
|
|
9843
|
+
}, z.core.$strip>>>;
|
|
9844
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9845
|
+
}, z.core.$strip>>;
|
|
9846
|
+
}, z.core.$strip>;
|
|
9847
|
+
}, z.core.$strip>;
|
|
9594
9848
|
export declare const ListCommandsResponseSchema: z.ZodObject<{
|
|
9595
9849
|
type: z.ZodLiteral<"list_commands_response">;
|
|
9596
9850
|
payload: z.ZodObject<{
|
|
@@ -11481,6 +11735,26 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
11481
11735
|
hasMore: z.ZodBoolean;
|
|
11482
11736
|
}, z.core.$strip>;
|
|
11483
11737
|
}, z.core.$strip>;
|
|
11738
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11739
|
+
type: z.ZodLiteral<"project.add.response">;
|
|
11740
|
+
payload: z.ZodObject<{
|
|
11741
|
+
requestId: z.ZodString;
|
|
11742
|
+
project: z.ZodNullable<z.ZodObject<{
|
|
11743
|
+
projectId: z.ZodString;
|
|
11744
|
+
projectDisplayName: z.ZodString;
|
|
11745
|
+
projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11746
|
+
projectRootPath: z.ZodString;
|
|
11747
|
+
projectKind: z.ZodEnum<{
|
|
11748
|
+
git: "git";
|
|
11749
|
+
directory: "directory";
|
|
11750
|
+
non_git: "non_git";
|
|
11751
|
+
}>;
|
|
11752
|
+
}, z.core.$strip>>;
|
|
11753
|
+
error: z.ZodNullable<z.ZodString>;
|
|
11754
|
+
errorCode: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
11755
|
+
directory_not_found: "directory_not_found";
|
|
11756
|
+
}>>>>;
|
|
11757
|
+
}, z.core.$strip>;
|
|
11484
11758
|
}, z.core.$strip>, z.ZodObject<{
|
|
11485
11759
|
type: z.ZodLiteral<"open_project_response">;
|
|
11486
11760
|
payload: z.ZodObject<{
|
|
@@ -12987,6 +13261,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
12987
13261
|
agentId: z.ZodString;
|
|
12988
13262
|
accepted: z.ZodBoolean;
|
|
12989
13263
|
error: z.ZodNullable<z.ZodString>;
|
|
13264
|
+
notice: z.ZodOptional<z.ZodNullable<z.ZodType<AgentProviderNotice, unknown, z.core.$ZodTypeInternals<AgentProviderNotice, unknown>>>>;
|
|
12990
13265
|
}, z.core.$strip>;
|
|
12991
13266
|
}, z.core.$strip>, z.ZodObject<{
|
|
12992
13267
|
type: z.ZodLiteral<"set_agent_model_response">;
|
|
@@ -12995,6 +13270,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
12995
13270
|
agentId: z.ZodString;
|
|
12996
13271
|
accepted: z.ZodBoolean;
|
|
12997
13272
|
error: z.ZodNullable<z.ZodString>;
|
|
13273
|
+
notice: z.ZodOptional<z.ZodNullable<z.ZodType<AgentProviderNotice, unknown, z.core.$ZodTypeInternals<AgentProviderNotice, unknown>>>>;
|
|
12998
13274
|
}, z.core.$strip>;
|
|
12999
13275
|
}, z.core.$strip>, z.ZodObject<{
|
|
13000
13276
|
type: z.ZodLiteral<"set_agent_thinking_response">;
|
|
@@ -13003,6 +13279,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
13003
13279
|
agentId: z.ZodString;
|
|
13004
13280
|
accepted: z.ZodBoolean;
|
|
13005
13281
|
error: z.ZodNullable<z.ZodString>;
|
|
13282
|
+
notice: z.ZodOptional<z.ZodNullable<z.ZodType<AgentProviderNotice, unknown, z.core.$ZodTypeInternals<AgentProviderNotice, unknown>>>>;
|
|
13006
13283
|
}, z.core.$strip>;
|
|
13007
13284
|
}, z.core.$strip>, z.ZodObject<{
|
|
13008
13285
|
type: z.ZodLiteral<"set_agent_feature_response">;
|
|
@@ -13011,6 +13288,16 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
13011
13288
|
agentId: z.ZodString;
|
|
13012
13289
|
accepted: z.ZodBoolean;
|
|
13013
13290
|
error: z.ZodNullable<z.ZodString>;
|
|
13291
|
+
notice: z.ZodOptional<z.ZodNullable<z.ZodType<AgentProviderNotice, unknown, z.core.$ZodTypeInternals<AgentProviderNotice, unknown>>>>;
|
|
13292
|
+
}, z.core.$strip>;
|
|
13293
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13294
|
+
type: z.ZodLiteral<"agent.detach.response">;
|
|
13295
|
+
payload: z.ZodObject<{
|
|
13296
|
+
requestId: z.ZodString;
|
|
13297
|
+
agentId: z.ZodString;
|
|
13298
|
+
accepted: z.ZodBoolean;
|
|
13299
|
+
error: z.ZodNullable<z.ZodString>;
|
|
13300
|
+
notice: z.ZodOptional<z.ZodNullable<z.ZodType<AgentProviderNotice, unknown, z.core.$ZodTypeInternals<AgentProviderNotice, unknown>>>>;
|
|
13014
13301
|
}, z.core.$strip>;
|
|
13015
13302
|
}, z.core.$strip>, z.ZodObject<{
|
|
13016
13303
|
type: z.ZodLiteral<"agent.rewind.response">;
|
|
@@ -13027,6 +13314,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
13027
13314
|
agentId: z.ZodString;
|
|
13028
13315
|
accepted: z.ZodBoolean;
|
|
13029
13316
|
error: z.ZodNullable<z.ZodString>;
|
|
13317
|
+
notice: z.ZodOptional<z.ZodNullable<z.ZodType<AgentProviderNotice, unknown, z.core.$ZodTypeInternals<AgentProviderNotice, unknown>>>>;
|
|
13030
13318
|
}, z.core.$strip>;
|
|
13031
13319
|
}, z.core.$strip>, z.ZodObject<{
|
|
13032
13320
|
type: z.ZodLiteral<"project.rename.response">;
|
|
@@ -14585,6 +14873,72 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
14585
14873
|
diagnostic: z.ZodString;
|
|
14586
14874
|
requestId: z.ZodString;
|
|
14587
14875
|
}, z.core.$strip>;
|
|
14876
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14877
|
+
type: z.ZodLiteral<"provider.usage.list.response">;
|
|
14878
|
+
payload: z.ZodObject<{
|
|
14879
|
+
requestId: z.ZodString;
|
|
14880
|
+
fetchedAt: z.ZodString;
|
|
14881
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
14882
|
+
providerId: z.ZodString;
|
|
14883
|
+
displayName: z.ZodString;
|
|
14884
|
+
status: z.ZodEnum<{
|
|
14885
|
+
error: "error";
|
|
14886
|
+
unavailable: "unavailable";
|
|
14887
|
+
available: "available";
|
|
14888
|
+
}>;
|
|
14889
|
+
planLabel: z.ZodNullable<z.ZodString>;
|
|
14890
|
+
sourceLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14891
|
+
fetchedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14892
|
+
nextRefreshAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14893
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
14894
|
+
id: z.ZodString;
|
|
14895
|
+
label: z.ZodString;
|
|
14896
|
+
usedPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14897
|
+
remainingPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14898
|
+
resetsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14899
|
+
runsOutAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14900
|
+
shortfallPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14901
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
14902
|
+
warning: "warning";
|
|
14903
|
+
default: "default";
|
|
14904
|
+
danger: "danger";
|
|
14905
|
+
ok: "ok";
|
|
14906
|
+
}>>;
|
|
14907
|
+
}, z.core.$strip>>;
|
|
14908
|
+
balances: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14909
|
+
id: z.ZodString;
|
|
14910
|
+
label: z.ZodString;
|
|
14911
|
+
used: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14912
|
+
remaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14913
|
+
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14914
|
+
unit: z.ZodEnum<{
|
|
14915
|
+
tokens: "tokens";
|
|
14916
|
+
usd: "usd";
|
|
14917
|
+
credits: "credits";
|
|
14918
|
+
requests: "requests";
|
|
14919
|
+
}>;
|
|
14920
|
+
resetsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14921
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
14922
|
+
warning: "warning";
|
|
14923
|
+
default: "default";
|
|
14924
|
+
danger: "danger";
|
|
14925
|
+
ok: "ok";
|
|
14926
|
+
}>>;
|
|
14927
|
+
}, z.core.$strip>>>;
|
|
14928
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14929
|
+
id: z.ZodString;
|
|
14930
|
+
label: z.ZodString;
|
|
14931
|
+
value: z.ZodString;
|
|
14932
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
14933
|
+
warning: "warning";
|
|
14934
|
+
default: "default";
|
|
14935
|
+
danger: "danger";
|
|
14936
|
+
ok: "ok";
|
|
14937
|
+
}>>;
|
|
14938
|
+
}, z.core.$strip>>>;
|
|
14939
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14940
|
+
}, z.core.$strip>>;
|
|
14941
|
+
}, z.core.$strip>;
|
|
14588
14942
|
}, z.core.$strip>, z.ZodObject<{
|
|
14589
14943
|
type: z.ZodLiteral<"list_commands_response">;
|
|
14590
14944
|
payload: z.ZodObject<{
|
|
@@ -15730,6 +16084,7 @@ export type FetchAgentsResponseMessage = z.infer<typeof FetchAgentsResponseMessa
|
|
|
15730
16084
|
export type FetchAgentHistoryResponseMessage = z.infer<typeof FetchAgentHistoryResponseMessageSchema>;
|
|
15731
16085
|
export type FetchRecentProviderSessionsResponseMessage = z.infer<typeof FetchRecentProviderSessionsResponseMessageSchema>;
|
|
15732
16086
|
export type FetchWorkspacesResponseMessage = z.infer<typeof FetchWorkspacesResponseMessageSchema>;
|
|
16087
|
+
export type ProjectAddResponse = z.infer<typeof ProjectAddResponseSchema>;
|
|
15733
16088
|
export type ScriptStatusUpdateMessage = z.infer<typeof ScriptStatusUpdateMessageSchema>;
|
|
15734
16089
|
export type OpenProjectResponseMessage = z.infer<typeof OpenProjectResponseMessageSchema>;
|
|
15735
16090
|
export type StartWorkspaceScriptResponseMessage = z.infer<typeof StartWorkspaceScriptResponseMessageSchema>;
|
|
@@ -15745,6 +16100,7 @@ export type SetAgentModeResponseMessage = z.infer<typeof SetAgentModeResponseMes
|
|
|
15745
16100
|
export type SetAgentModelResponseMessage = z.infer<typeof SetAgentModelResponseMessageSchema>;
|
|
15746
16101
|
export type SetAgentThinkingResponseMessage = z.infer<typeof SetAgentThinkingResponseMessageSchema>;
|
|
15747
16102
|
export type SetAgentFeatureResponseMessage = z.infer<typeof SetAgentFeatureResponseMessageSchema>;
|
|
16103
|
+
export type AgentDetachResponseMessage = z.infer<typeof AgentDetachResponseMessageSchema>;
|
|
15748
16104
|
export type AgentRewindResponseMessage = z.infer<typeof AgentRewindResponseMessageSchema>;
|
|
15749
16105
|
export type UpdateAgentResponseMessage = z.infer<typeof UpdateAgentResponseMessageSchema>;
|
|
15750
16106
|
export type ProjectRenameResponse = z.infer<typeof ProjectRenameResponseSchema>;
|
|
@@ -15769,6 +16125,13 @@ export type GetProvidersSnapshotResponseMessage = z.infer<typeof GetProvidersSna
|
|
|
15769
16125
|
export type ProvidersSnapshotUpdateMessage = z.infer<typeof ProvidersSnapshotUpdateMessageSchema>;
|
|
15770
16126
|
export type RefreshProvidersSnapshotResponseMessage = z.infer<typeof RefreshProvidersSnapshotResponseMessageSchema>;
|
|
15771
16127
|
export type ProviderDiagnosticResponseMessage = z.infer<typeof ProviderDiagnosticResponseMessageSchema>;
|
|
16128
|
+
export type ProviderUsageTone = z.infer<typeof ProviderUsageToneSchema>;
|
|
16129
|
+
export type ProviderUsageStatus = z.infer<typeof ProviderUsageStatusSchema>;
|
|
16130
|
+
export type ProviderUsage = z.infer<typeof ProviderUsageSchema>;
|
|
16131
|
+
export type ProviderUsageWindow = z.infer<typeof ProviderUsageWindowSchema>;
|
|
16132
|
+
export type ProviderUsageBalance = z.infer<typeof ProviderUsageBalanceSchema>;
|
|
16133
|
+
export type ProviderUsageDetail = z.infer<typeof ProviderUsageDetailSchema>;
|
|
16134
|
+
export type ProviderUsageListResponseMessage = z.infer<typeof ProviderUsageListResponseMessageSchema>;
|
|
15772
16135
|
export type ChatCreateResponse = z.infer<typeof ChatCreateResponseSchema>;
|
|
15773
16136
|
export type ChatListResponse = z.infer<typeof ChatListResponseSchema>;
|
|
15774
16137
|
export type ChatInspectResponse = z.infer<typeof ChatInspectResponseSchema>;
|
|
@@ -15846,6 +16209,7 @@ export type SetAgentModeRequestMessage = z.infer<typeof SetAgentModeRequestMessa
|
|
|
15846
16209
|
export type SetAgentModelRequestMessage = z.infer<typeof SetAgentModelRequestMessageSchema>;
|
|
15847
16210
|
export type SetAgentThinkingRequestMessage = z.infer<typeof SetAgentThinkingRequestMessageSchema>;
|
|
15848
16211
|
export type SetAgentFeatureRequestMessage = z.infer<typeof SetAgentFeatureRequestMessageSchema>;
|
|
16212
|
+
export type AgentDetachRequestMessage = z.infer<typeof AgentDetachRequestMessageSchema>;
|
|
15849
16213
|
export type AgentPermissionResponseMessage = z.infer<typeof AgentPermissionResponseMessageSchema>;
|
|
15850
16214
|
export type CheckoutStatusRequest = z.infer<typeof CheckoutStatusRequestSchema>;
|
|
15851
16215
|
export type CheckoutStatusResponse = z.infer<typeof CheckoutStatusResponseSchema>;
|
|
@@ -15912,6 +16276,7 @@ export type WorkspaceSetupStatusRequest = z.infer<typeof WorkspaceSetupStatusReq
|
|
|
15912
16276
|
export type LegacyListAvailableEditorsRequest = z.infer<typeof LegacyListAvailableEditorsRequestSchema>;
|
|
15913
16277
|
export type LegacyOpenInEditorRequest = z.infer<typeof LegacyOpenInEditorRequestSchema>;
|
|
15914
16278
|
export type OpenProjectRequest = z.infer<typeof OpenProjectRequestSchema>;
|
|
16279
|
+
export type ProjectAddRequest = z.infer<typeof ProjectAddRequestSchema>;
|
|
15915
16280
|
export type ArchiveWorkspaceRequest = z.infer<typeof ArchiveWorkspaceRequestSchema>;
|
|
15916
16281
|
export type WorkspaceClearAttentionRequest = z.infer<typeof WorkspaceClearAttentionRequestSchema>;
|
|
15917
16282
|
export type FileExplorerRequest = z.infer<typeof FileExplorerRequestSchema>;
|
|
@@ -16482,6 +16847,9 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
16482
16847
|
type: z.ZodLiteral<"provider_diagnostic_request">;
|
|
16483
16848
|
provider: z.ZodString;
|
|
16484
16849
|
requestId: z.ZodString;
|
|
16850
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16851
|
+
type: z.ZodLiteral<"provider.usage.list.request">;
|
|
16852
|
+
requestId: z.ZodString;
|
|
16485
16853
|
}, z.core.$strip>, z.ZodObject<{
|
|
16486
16854
|
type: z.ZodLiteral<"resume_agent_request">;
|
|
16487
16855
|
handle: z.ZodType<AgentPersistenceHandle | null, unknown, z.core.$ZodTypeInternals<AgentPersistenceHandle | null, unknown>>;
|
|
@@ -16584,6 +16952,10 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
16584
16952
|
featureId: z.ZodString;
|
|
16585
16953
|
value: z.ZodUnknown;
|
|
16586
16954
|
requestId: z.ZodString;
|
|
16955
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16956
|
+
type: z.ZodLiteral<"agent.detach.request">;
|
|
16957
|
+
agentId: z.ZodString;
|
|
16958
|
+
requestId: z.ZodString;
|
|
16587
16959
|
}, z.core.$strip>, z.ZodObject<{
|
|
16588
16960
|
type: z.ZodLiteral<"agent.rewind.request">;
|
|
16589
16961
|
agentId: z.ZodString;
|
|
@@ -16922,6 +17294,10 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
16922
17294
|
type: z.ZodLiteral<"open_project_request">;
|
|
16923
17295
|
cwd: z.ZodString;
|
|
16924
17296
|
requestId: z.ZodString;
|
|
17297
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
17298
|
+
type: z.ZodLiteral<"project.add.request">;
|
|
17299
|
+
cwd: z.ZodString;
|
|
17300
|
+
requestId: z.ZodString;
|
|
16925
17301
|
}, z.core.$strip>, z.ZodObject<{
|
|
16926
17302
|
type: z.ZodLiteral<"archive_workspace_request">;
|
|
16927
17303
|
workspaceId: z.ZodString;
|
|
@@ -18987,6 +19363,26 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
18987
19363
|
hasMore: z.ZodBoolean;
|
|
18988
19364
|
}, z.core.$strip>;
|
|
18989
19365
|
}, z.core.$strip>;
|
|
19366
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
19367
|
+
type: z.ZodLiteral<"project.add.response">;
|
|
19368
|
+
payload: z.ZodObject<{
|
|
19369
|
+
requestId: z.ZodString;
|
|
19370
|
+
project: z.ZodNullable<z.ZodObject<{
|
|
19371
|
+
projectId: z.ZodString;
|
|
19372
|
+
projectDisplayName: z.ZodString;
|
|
19373
|
+
projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19374
|
+
projectRootPath: z.ZodString;
|
|
19375
|
+
projectKind: z.ZodEnum<{
|
|
19376
|
+
git: "git";
|
|
19377
|
+
directory: "directory";
|
|
19378
|
+
non_git: "non_git";
|
|
19379
|
+
}>;
|
|
19380
|
+
}, z.core.$strip>>;
|
|
19381
|
+
error: z.ZodNullable<z.ZodString>;
|
|
19382
|
+
errorCode: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
19383
|
+
directory_not_found: "directory_not_found";
|
|
19384
|
+
}>>>>;
|
|
19385
|
+
}, z.core.$strip>;
|
|
18990
19386
|
}, z.core.$strip>, z.ZodObject<{
|
|
18991
19387
|
type: z.ZodLiteral<"open_project_response">;
|
|
18992
19388
|
payload: z.ZodObject<{
|
|
@@ -20493,6 +20889,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
20493
20889
|
agentId: z.ZodString;
|
|
20494
20890
|
accepted: z.ZodBoolean;
|
|
20495
20891
|
error: z.ZodNullable<z.ZodString>;
|
|
20892
|
+
notice: z.ZodOptional<z.ZodNullable<z.ZodType<AgentProviderNotice, unknown, z.core.$ZodTypeInternals<AgentProviderNotice, unknown>>>>;
|
|
20496
20893
|
}, z.core.$strip>;
|
|
20497
20894
|
}, z.core.$strip>, z.ZodObject<{
|
|
20498
20895
|
type: z.ZodLiteral<"set_agent_model_response">;
|
|
@@ -20501,6 +20898,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
20501
20898
|
agentId: z.ZodString;
|
|
20502
20899
|
accepted: z.ZodBoolean;
|
|
20503
20900
|
error: z.ZodNullable<z.ZodString>;
|
|
20901
|
+
notice: z.ZodOptional<z.ZodNullable<z.ZodType<AgentProviderNotice, unknown, z.core.$ZodTypeInternals<AgentProviderNotice, unknown>>>>;
|
|
20504
20902
|
}, z.core.$strip>;
|
|
20505
20903
|
}, z.core.$strip>, z.ZodObject<{
|
|
20506
20904
|
type: z.ZodLiteral<"set_agent_thinking_response">;
|
|
@@ -20509,6 +20907,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
20509
20907
|
agentId: z.ZodString;
|
|
20510
20908
|
accepted: z.ZodBoolean;
|
|
20511
20909
|
error: z.ZodNullable<z.ZodString>;
|
|
20910
|
+
notice: z.ZodOptional<z.ZodNullable<z.ZodType<AgentProviderNotice, unknown, z.core.$ZodTypeInternals<AgentProviderNotice, unknown>>>>;
|
|
20512
20911
|
}, z.core.$strip>;
|
|
20513
20912
|
}, z.core.$strip>, z.ZodObject<{
|
|
20514
20913
|
type: z.ZodLiteral<"set_agent_feature_response">;
|
|
@@ -20517,6 +20916,16 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
20517
20916
|
agentId: z.ZodString;
|
|
20518
20917
|
accepted: z.ZodBoolean;
|
|
20519
20918
|
error: z.ZodNullable<z.ZodString>;
|
|
20919
|
+
notice: z.ZodOptional<z.ZodNullable<z.ZodType<AgentProviderNotice, unknown, z.core.$ZodTypeInternals<AgentProviderNotice, unknown>>>>;
|
|
20920
|
+
}, z.core.$strip>;
|
|
20921
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
20922
|
+
type: z.ZodLiteral<"agent.detach.response">;
|
|
20923
|
+
payload: z.ZodObject<{
|
|
20924
|
+
requestId: z.ZodString;
|
|
20925
|
+
agentId: z.ZodString;
|
|
20926
|
+
accepted: z.ZodBoolean;
|
|
20927
|
+
error: z.ZodNullable<z.ZodString>;
|
|
20928
|
+
notice: z.ZodOptional<z.ZodNullable<z.ZodType<AgentProviderNotice, unknown, z.core.$ZodTypeInternals<AgentProviderNotice, unknown>>>>;
|
|
20520
20929
|
}, z.core.$strip>;
|
|
20521
20930
|
}, z.core.$strip>, z.ZodObject<{
|
|
20522
20931
|
type: z.ZodLiteral<"agent.rewind.response">;
|
|
@@ -20533,6 +20942,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
20533
20942
|
agentId: z.ZodString;
|
|
20534
20943
|
accepted: z.ZodBoolean;
|
|
20535
20944
|
error: z.ZodNullable<z.ZodString>;
|
|
20945
|
+
notice: z.ZodOptional<z.ZodNullable<z.ZodType<AgentProviderNotice, unknown, z.core.$ZodTypeInternals<AgentProviderNotice, unknown>>>>;
|
|
20536
20946
|
}, z.core.$strip>;
|
|
20537
20947
|
}, z.core.$strip>, z.ZodObject<{
|
|
20538
20948
|
type: z.ZodLiteral<"project.rename.response">;
|
|
@@ -22091,6 +22501,72 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
22091
22501
|
diagnostic: z.ZodString;
|
|
22092
22502
|
requestId: z.ZodString;
|
|
22093
22503
|
}, z.core.$strip>;
|
|
22504
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22505
|
+
type: z.ZodLiteral<"provider.usage.list.response">;
|
|
22506
|
+
payload: z.ZodObject<{
|
|
22507
|
+
requestId: z.ZodString;
|
|
22508
|
+
fetchedAt: z.ZodString;
|
|
22509
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
22510
|
+
providerId: z.ZodString;
|
|
22511
|
+
displayName: z.ZodString;
|
|
22512
|
+
status: z.ZodEnum<{
|
|
22513
|
+
error: "error";
|
|
22514
|
+
unavailable: "unavailable";
|
|
22515
|
+
available: "available";
|
|
22516
|
+
}>;
|
|
22517
|
+
planLabel: z.ZodNullable<z.ZodString>;
|
|
22518
|
+
sourceLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22519
|
+
fetchedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22520
|
+
nextRefreshAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22521
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
22522
|
+
id: z.ZodString;
|
|
22523
|
+
label: z.ZodString;
|
|
22524
|
+
usedPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22525
|
+
remainingPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22526
|
+
resetsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22527
|
+
runsOutAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22528
|
+
shortfallPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22529
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
22530
|
+
warning: "warning";
|
|
22531
|
+
default: "default";
|
|
22532
|
+
danger: "danger";
|
|
22533
|
+
ok: "ok";
|
|
22534
|
+
}>>;
|
|
22535
|
+
}, z.core.$strip>>;
|
|
22536
|
+
balances: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
22537
|
+
id: z.ZodString;
|
|
22538
|
+
label: z.ZodString;
|
|
22539
|
+
used: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22540
|
+
remaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22541
|
+
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22542
|
+
unit: z.ZodEnum<{
|
|
22543
|
+
tokens: "tokens";
|
|
22544
|
+
usd: "usd";
|
|
22545
|
+
credits: "credits";
|
|
22546
|
+
requests: "requests";
|
|
22547
|
+
}>;
|
|
22548
|
+
resetsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22549
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
22550
|
+
warning: "warning";
|
|
22551
|
+
default: "default";
|
|
22552
|
+
danger: "danger";
|
|
22553
|
+
ok: "ok";
|
|
22554
|
+
}>>;
|
|
22555
|
+
}, z.core.$strip>>>;
|
|
22556
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
22557
|
+
id: z.ZodString;
|
|
22558
|
+
label: z.ZodString;
|
|
22559
|
+
value: z.ZodString;
|
|
22560
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
22561
|
+
warning: "warning";
|
|
22562
|
+
default: "default";
|
|
22563
|
+
danger: "danger";
|
|
22564
|
+
ok: "ok";
|
|
22565
|
+
}>>;
|
|
22566
|
+
}, z.core.$strip>>>;
|
|
22567
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22568
|
+
}, z.core.$strip>>;
|
|
22569
|
+
}, z.core.$strip>;
|
|
22094
22570
|
}, z.core.$strip>, z.ZodObject<{
|
|
22095
22571
|
type: z.ZodLiteral<"list_commands_response">;
|
|
22096
22572
|
payload: z.ZodObject<{
|
|
@@ -23726,6 +24202,9 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
23726
24202
|
type: z.ZodLiteral<"provider_diagnostic_request">;
|
|
23727
24203
|
provider: z.ZodString;
|
|
23728
24204
|
requestId: z.ZodString;
|
|
24205
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24206
|
+
type: z.ZodLiteral<"provider.usage.list.request">;
|
|
24207
|
+
requestId: z.ZodString;
|
|
23729
24208
|
}, z.core.$strip>, z.ZodObject<{
|
|
23730
24209
|
type: z.ZodLiteral<"resume_agent_request">;
|
|
23731
24210
|
handle: z.ZodType<AgentPersistenceHandle | null, unknown, z.core.$ZodTypeInternals<AgentPersistenceHandle | null, unknown>>;
|
|
@@ -23828,6 +24307,10 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
23828
24307
|
featureId: z.ZodString;
|
|
23829
24308
|
value: z.ZodUnknown;
|
|
23830
24309
|
requestId: z.ZodString;
|
|
24310
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24311
|
+
type: z.ZodLiteral<"agent.detach.request">;
|
|
24312
|
+
agentId: z.ZodString;
|
|
24313
|
+
requestId: z.ZodString;
|
|
23831
24314
|
}, z.core.$strip>, z.ZodObject<{
|
|
23832
24315
|
type: z.ZodLiteral<"agent.rewind.request">;
|
|
23833
24316
|
agentId: z.ZodString;
|
|
@@ -24166,6 +24649,10 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
24166
24649
|
type: z.ZodLiteral<"open_project_request">;
|
|
24167
24650
|
cwd: z.ZodString;
|
|
24168
24651
|
requestId: z.ZodString;
|
|
24652
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24653
|
+
type: z.ZodLiteral<"project.add.request">;
|
|
24654
|
+
cwd: z.ZodString;
|
|
24655
|
+
requestId: z.ZodString;
|
|
24169
24656
|
}, z.core.$strip>, z.ZodObject<{
|
|
24170
24657
|
type: z.ZodLiteral<"archive_workspace_request">;
|
|
24171
24658
|
workspaceId: z.ZodString;
|
|
@@ -26233,6 +26720,26 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
26233
26720
|
hasMore: z.ZodBoolean;
|
|
26234
26721
|
}, z.core.$strip>;
|
|
26235
26722
|
}, z.core.$strip>;
|
|
26723
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
26724
|
+
type: z.ZodLiteral<"project.add.response">;
|
|
26725
|
+
payload: z.ZodObject<{
|
|
26726
|
+
requestId: z.ZodString;
|
|
26727
|
+
project: z.ZodNullable<z.ZodObject<{
|
|
26728
|
+
projectId: z.ZodString;
|
|
26729
|
+
projectDisplayName: z.ZodString;
|
|
26730
|
+
projectCustomName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26731
|
+
projectRootPath: z.ZodString;
|
|
26732
|
+
projectKind: z.ZodEnum<{
|
|
26733
|
+
git: "git";
|
|
26734
|
+
directory: "directory";
|
|
26735
|
+
non_git: "non_git";
|
|
26736
|
+
}>;
|
|
26737
|
+
}, z.core.$strip>>;
|
|
26738
|
+
error: z.ZodNullable<z.ZodString>;
|
|
26739
|
+
errorCode: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
26740
|
+
directory_not_found: "directory_not_found";
|
|
26741
|
+
}>>>>;
|
|
26742
|
+
}, z.core.$strip>;
|
|
26236
26743
|
}, z.core.$strip>, z.ZodObject<{
|
|
26237
26744
|
type: z.ZodLiteral<"open_project_response">;
|
|
26238
26745
|
payload: z.ZodObject<{
|
|
@@ -27739,6 +28246,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
27739
28246
|
agentId: z.ZodString;
|
|
27740
28247
|
accepted: z.ZodBoolean;
|
|
27741
28248
|
error: z.ZodNullable<z.ZodString>;
|
|
28249
|
+
notice: z.ZodOptional<z.ZodNullable<z.ZodType<AgentProviderNotice, unknown, z.core.$ZodTypeInternals<AgentProviderNotice, unknown>>>>;
|
|
27742
28250
|
}, z.core.$strip>;
|
|
27743
28251
|
}, z.core.$strip>, z.ZodObject<{
|
|
27744
28252
|
type: z.ZodLiteral<"set_agent_model_response">;
|
|
@@ -27747,6 +28255,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
27747
28255
|
agentId: z.ZodString;
|
|
27748
28256
|
accepted: z.ZodBoolean;
|
|
27749
28257
|
error: z.ZodNullable<z.ZodString>;
|
|
28258
|
+
notice: z.ZodOptional<z.ZodNullable<z.ZodType<AgentProviderNotice, unknown, z.core.$ZodTypeInternals<AgentProviderNotice, unknown>>>>;
|
|
27750
28259
|
}, z.core.$strip>;
|
|
27751
28260
|
}, z.core.$strip>, z.ZodObject<{
|
|
27752
28261
|
type: z.ZodLiteral<"set_agent_thinking_response">;
|
|
@@ -27755,6 +28264,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
27755
28264
|
agentId: z.ZodString;
|
|
27756
28265
|
accepted: z.ZodBoolean;
|
|
27757
28266
|
error: z.ZodNullable<z.ZodString>;
|
|
28267
|
+
notice: z.ZodOptional<z.ZodNullable<z.ZodType<AgentProviderNotice, unknown, z.core.$ZodTypeInternals<AgentProviderNotice, unknown>>>>;
|
|
27758
28268
|
}, z.core.$strip>;
|
|
27759
28269
|
}, z.core.$strip>, z.ZodObject<{
|
|
27760
28270
|
type: z.ZodLiteral<"set_agent_feature_response">;
|
|
@@ -27763,6 +28273,16 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
27763
28273
|
agentId: z.ZodString;
|
|
27764
28274
|
accepted: z.ZodBoolean;
|
|
27765
28275
|
error: z.ZodNullable<z.ZodString>;
|
|
28276
|
+
notice: z.ZodOptional<z.ZodNullable<z.ZodType<AgentProviderNotice, unknown, z.core.$ZodTypeInternals<AgentProviderNotice, unknown>>>>;
|
|
28277
|
+
}, z.core.$strip>;
|
|
28278
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
28279
|
+
type: z.ZodLiteral<"agent.detach.response">;
|
|
28280
|
+
payload: z.ZodObject<{
|
|
28281
|
+
requestId: z.ZodString;
|
|
28282
|
+
agentId: z.ZodString;
|
|
28283
|
+
accepted: z.ZodBoolean;
|
|
28284
|
+
error: z.ZodNullable<z.ZodString>;
|
|
28285
|
+
notice: z.ZodOptional<z.ZodNullable<z.ZodType<AgentProviderNotice, unknown, z.core.$ZodTypeInternals<AgentProviderNotice, unknown>>>>;
|
|
27766
28286
|
}, z.core.$strip>;
|
|
27767
28287
|
}, z.core.$strip>, z.ZodObject<{
|
|
27768
28288
|
type: z.ZodLiteral<"agent.rewind.response">;
|
|
@@ -27779,6 +28299,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
27779
28299
|
agentId: z.ZodString;
|
|
27780
28300
|
accepted: z.ZodBoolean;
|
|
27781
28301
|
error: z.ZodNullable<z.ZodString>;
|
|
28302
|
+
notice: z.ZodOptional<z.ZodNullable<z.ZodType<AgentProviderNotice, unknown, z.core.$ZodTypeInternals<AgentProviderNotice, unknown>>>>;
|
|
27782
28303
|
}, z.core.$strip>;
|
|
27783
28304
|
}, z.core.$strip>, z.ZodObject<{
|
|
27784
28305
|
type: z.ZodLiteral<"project.rename.response">;
|
|
@@ -29337,6 +29858,72 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
29337
29858
|
diagnostic: z.ZodString;
|
|
29338
29859
|
requestId: z.ZodString;
|
|
29339
29860
|
}, z.core.$strip>;
|
|
29861
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29862
|
+
type: z.ZodLiteral<"provider.usage.list.response">;
|
|
29863
|
+
payload: z.ZodObject<{
|
|
29864
|
+
requestId: z.ZodString;
|
|
29865
|
+
fetchedAt: z.ZodString;
|
|
29866
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
29867
|
+
providerId: z.ZodString;
|
|
29868
|
+
displayName: z.ZodString;
|
|
29869
|
+
status: z.ZodEnum<{
|
|
29870
|
+
error: "error";
|
|
29871
|
+
unavailable: "unavailable";
|
|
29872
|
+
available: "available";
|
|
29873
|
+
}>;
|
|
29874
|
+
planLabel: z.ZodNullable<z.ZodString>;
|
|
29875
|
+
sourceLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29876
|
+
fetchedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29877
|
+
nextRefreshAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29878
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
29879
|
+
id: z.ZodString;
|
|
29880
|
+
label: z.ZodString;
|
|
29881
|
+
usedPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29882
|
+
remainingPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29883
|
+
resetsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29884
|
+
runsOutAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29885
|
+
shortfallPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29886
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
29887
|
+
warning: "warning";
|
|
29888
|
+
default: "default";
|
|
29889
|
+
danger: "danger";
|
|
29890
|
+
ok: "ok";
|
|
29891
|
+
}>>;
|
|
29892
|
+
}, z.core.$strip>>;
|
|
29893
|
+
balances: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
29894
|
+
id: z.ZodString;
|
|
29895
|
+
label: z.ZodString;
|
|
29896
|
+
used: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29897
|
+
remaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29898
|
+
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29899
|
+
unit: z.ZodEnum<{
|
|
29900
|
+
tokens: "tokens";
|
|
29901
|
+
usd: "usd";
|
|
29902
|
+
credits: "credits";
|
|
29903
|
+
requests: "requests";
|
|
29904
|
+
}>;
|
|
29905
|
+
resetsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29906
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
29907
|
+
warning: "warning";
|
|
29908
|
+
default: "default";
|
|
29909
|
+
danger: "danger";
|
|
29910
|
+
ok: "ok";
|
|
29911
|
+
}>>;
|
|
29912
|
+
}, z.core.$strip>>>;
|
|
29913
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
29914
|
+
id: z.ZodString;
|
|
29915
|
+
label: z.ZodString;
|
|
29916
|
+
value: z.ZodString;
|
|
29917
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
29918
|
+
warning: "warning";
|
|
29919
|
+
default: "default";
|
|
29920
|
+
danger: "danger";
|
|
29921
|
+
ok: "ok";
|
|
29922
|
+
}>>;
|
|
29923
|
+
}, z.core.$strip>>>;
|
|
29924
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29925
|
+
}, z.core.$strip>>;
|
|
29926
|
+
}, z.core.$strip>;
|
|
29340
29927
|
}, z.core.$strip>, z.ZodObject<{
|
|
29341
29928
|
type: z.ZodLiteral<"list_commands_response">;
|
|
29342
29929
|
payload: z.ZodObject<{
|
package/dist/messages.js
CHANGED
|
@@ -98,6 +98,11 @@ const AgentSelectOptionSchema = z.object({
|
|
|
98
98
|
isDefault: z.boolean().optional(),
|
|
99
99
|
metadata: z.record(z.string(), z.unknown()).optional(),
|
|
100
100
|
});
|
|
101
|
+
const AgentProviderNoticeSchema = z.discriminatedUnion("type", [
|
|
102
|
+
z.object({ type: z.literal("info"), message: z.string() }),
|
|
103
|
+
z.object({ type: z.literal("warning"), message: z.string() }),
|
|
104
|
+
z.object({ type: z.literal("error"), message: z.string() }),
|
|
105
|
+
]);
|
|
101
106
|
export const AgentFeatureToggleSchema = z.object({
|
|
102
107
|
type: z.literal("toggle"),
|
|
103
108
|
id: z.string(),
|
|
@@ -973,6 +978,10 @@ export const ProviderDiagnosticRequestMessageSchema = z.object({
|
|
|
973
978
|
provider: AgentProviderSchema,
|
|
974
979
|
requestId: z.string(),
|
|
975
980
|
});
|
|
981
|
+
export const ProviderUsageListRequestMessageSchema = z.object({
|
|
982
|
+
type: z.literal("provider.usage.list.request"),
|
|
983
|
+
requestId: z.string(),
|
|
984
|
+
});
|
|
976
985
|
export const ResumeAgentRequestMessageSchema = z.object({
|
|
977
986
|
type: z.literal("resume_agent_request"),
|
|
978
987
|
handle: AgentPersistenceHandleSchema,
|
|
@@ -1034,6 +1043,7 @@ const AgentActionResponsePayloadSchema = z.object({
|
|
|
1034
1043
|
agentId: z.string(),
|
|
1035
1044
|
accepted: z.boolean(),
|
|
1036
1045
|
error: z.string().nullable(),
|
|
1046
|
+
notice: AgentProviderNoticeSchema.nullable().optional(),
|
|
1037
1047
|
});
|
|
1038
1048
|
export const SetAgentModeResponseMessageSchema = z.object({
|
|
1039
1049
|
type: z.literal("set_agent_mode_response"),
|
|
@@ -1070,6 +1080,15 @@ export const SetAgentFeatureResponseMessageSchema = z.object({
|
|
|
1070
1080
|
type: z.literal("set_agent_feature_response"),
|
|
1071
1081
|
payload: AgentActionResponsePayloadSchema,
|
|
1072
1082
|
});
|
|
1083
|
+
export const AgentDetachRequestMessageSchema = z.object({
|
|
1084
|
+
type: z.literal("agent.detach.request"),
|
|
1085
|
+
agentId: z.string(),
|
|
1086
|
+
requestId: z.string(),
|
|
1087
|
+
});
|
|
1088
|
+
export const AgentDetachResponseMessageSchema = z.object({
|
|
1089
|
+
type: z.literal("agent.detach.response"),
|
|
1090
|
+
payload: AgentActionResponsePayloadSchema,
|
|
1091
|
+
});
|
|
1073
1092
|
export const AgentRewindModeSchema = z.enum(["conversation", "files", "both"]);
|
|
1074
1093
|
export const AgentRewindRequestMessageSchema = z.object({
|
|
1075
1094
|
type: z.literal("agent.rewind.request"),
|
|
@@ -1402,6 +1421,11 @@ export const OpenProjectRequestSchema = z.object({
|
|
|
1402
1421
|
cwd: z.string(),
|
|
1403
1422
|
requestId: z.string(),
|
|
1404
1423
|
});
|
|
1424
|
+
export const ProjectAddRequestSchema = z.object({
|
|
1425
|
+
type: z.literal("project.add.request"),
|
|
1426
|
+
cwd: z.string(),
|
|
1427
|
+
requestId: z.string(),
|
|
1428
|
+
});
|
|
1405
1429
|
export const ArchiveWorkspaceRequestSchema = z.object({
|
|
1406
1430
|
type: z.literal("archive_workspace_request"),
|
|
1407
1431
|
workspaceId: z.string(),
|
|
@@ -1688,6 +1712,7 @@ export const SessionInboundMessageSchema = z.discriminatedUnion("type", [
|
|
|
1688
1712
|
GetProvidersSnapshotRequestMessageSchema,
|
|
1689
1713
|
RefreshProvidersSnapshotRequestMessageSchema,
|
|
1690
1714
|
ProviderDiagnosticRequestMessageSchema,
|
|
1715
|
+
ProviderUsageListRequestMessageSchema,
|
|
1691
1716
|
ResumeAgentRequestMessageSchema,
|
|
1692
1717
|
ImportAgentRequestMessageSchema,
|
|
1693
1718
|
RefreshAgentRequestMessageSchema,
|
|
@@ -1699,6 +1724,7 @@ export const SessionInboundMessageSchema = z.discriminatedUnion("type", [
|
|
|
1699
1724
|
SetAgentModelRequestMessageSchema,
|
|
1700
1725
|
SetAgentThinkingRequestMessageSchema,
|
|
1701
1726
|
SetAgentFeatureRequestMessageSchema,
|
|
1727
|
+
AgentDetachRequestMessageSchema,
|
|
1702
1728
|
AgentRewindRequestMessageSchema,
|
|
1703
1729
|
AgentPermissionResponseMessageSchema,
|
|
1704
1730
|
CheckoutStatusRequestSchema,
|
|
@@ -1732,6 +1758,7 @@ export const SessionInboundMessageSchema = z.discriminatedUnion("type", [
|
|
|
1732
1758
|
LegacyListAvailableEditorsRequestSchema,
|
|
1733
1759
|
LegacyOpenInEditorRequestSchema,
|
|
1734
1760
|
OpenProjectRequestSchema,
|
|
1761
|
+
ProjectAddRequestSchema,
|
|
1735
1762
|
ArchiveWorkspaceRequestSchema,
|
|
1736
1763
|
WorkspaceCreateRequestSchema,
|
|
1737
1764
|
WorkspaceClearAttentionRequestSchema,
|
|
@@ -1935,8 +1962,14 @@ export const ServerInfoStatusPayloadSchema = z
|
|
|
1935
1962
|
workspaceMultiplicity: z.boolean().optional(),
|
|
1936
1963
|
// COMPAT(projectRemove): added in v0.1.97, drop the gate when floor >= v0.1.97.
|
|
1937
1964
|
projectRemove: z.boolean().optional(),
|
|
1965
|
+
// COMPAT(projectAdd): added in v0.1.97, drop the gate when floor >= v0.1.97.
|
|
1966
|
+
projectAdd: z.boolean().optional(),
|
|
1938
1967
|
// COMPAT(worktreeRestore): added in v0.1.97, drop the gate when floor >= v0.1.97
|
|
1939
1968
|
worktreeRestore: z.boolean().optional(),
|
|
1969
|
+
// COMPAT(providerUsageList): added in v0.1.98, drop the gate when daemon floor >= v0.1.98.
|
|
1970
|
+
providerUsageList: z.boolean().optional(),
|
|
1971
|
+
// COMPAT(agentDetach): added in v0.1.98, remove gate after 2026-12-19 once daemon floor >= v0.1.98.
|
|
1972
|
+
agentDetach: z.boolean().optional(),
|
|
1940
1973
|
})
|
|
1941
1974
|
.optional(),
|
|
1942
1975
|
})
|
|
@@ -2288,8 +2321,9 @@ export const FetchRecentProviderSessionsResponseMessageSchema = z.object({
|
|
|
2288
2321
|
}),
|
|
2289
2322
|
});
|
|
2290
2323
|
// COMPAT(workspaceProjects): added in v0.1.97, drop the optional gate when floor >= v0.1.97.
|
|
2291
|
-
// A project parent that has zero active workspaces. The sidebar renders
|
|
2292
|
-
//
|
|
2324
|
+
// A project parent that has zero active workspaces. The sidebar renders the
|
|
2325
|
+
// project row with a new-workspace child so projects persist after their last
|
|
2326
|
+
// workspace is archived.
|
|
2293
2327
|
export const WorkspaceProjectDescriptorPayloadSchema = z.object({
|
|
2294
2328
|
projectId: z.string(),
|
|
2295
2329
|
projectDisplayName: z.string(),
|
|
@@ -2326,10 +2360,10 @@ export const WorkspaceUpdateMessageSchema = z.object({
|
|
|
2326
2360
|
id: z.string(),
|
|
2327
2361
|
// COMPAT(workspaceProjects): added in v0.1.97, drop the optional gate when floor >= v0.1.97.
|
|
2328
2362
|
// When archiving this workspace leaves its project with no active
|
|
2329
|
-
// workspaces, the daemon includes the
|
|
2330
|
-
//
|
|
2331
|
-
//
|
|
2332
|
-
//
|
|
2363
|
+
// workspaces, the daemon includes the project parent so the sidebar keeps
|
|
2364
|
+
// rendering it without waiting for a full re-hydration. Old daemons omit
|
|
2365
|
+
// it; old clients ignore it and surface the project on their next
|
|
2366
|
+
// workspace fetch instead.
|
|
2333
2367
|
emptyProject: WorkspaceProjectDescriptorPayloadSchema.optional(),
|
|
2334
2368
|
// Project removal is represented on the existing workspace update channel
|
|
2335
2369
|
// so old clients can still parse the message and ignore the extra field.
|
|
@@ -2376,6 +2410,15 @@ export const OpenProjectResponseMessageSchema = z.object({
|
|
|
2376
2410
|
errorCode: z.enum(["directory_not_found"]).nullish().catch(null),
|
|
2377
2411
|
}),
|
|
2378
2412
|
});
|
|
2413
|
+
export const ProjectAddResponseSchema = z.object({
|
|
2414
|
+
type: z.literal("project.add.response"),
|
|
2415
|
+
payload: z.object({
|
|
2416
|
+
requestId: z.string(),
|
|
2417
|
+
project: WorkspaceProjectDescriptorPayloadSchema.nullable(),
|
|
2418
|
+
error: z.string().nullable(),
|
|
2419
|
+
errorCode: z.enum(["directory_not_found"]).nullish().catch(null),
|
|
2420
|
+
}),
|
|
2421
|
+
});
|
|
2379
2422
|
export const StartWorkspaceScriptResponseMessageSchema = z.object({
|
|
2380
2423
|
type: z.literal("start_workspace_script_response"),
|
|
2381
2424
|
payload: z.object({
|
|
@@ -3313,6 +3356,55 @@ export const ProviderDiagnosticResponseMessageSchema = z.object({
|
|
|
3313
3356
|
requestId: z.string(),
|
|
3314
3357
|
}),
|
|
3315
3358
|
});
|
|
3359
|
+
export const ProviderUsageToneSchema = z.enum(["default", "ok", "warning", "danger"]);
|
|
3360
|
+
export const ProviderUsageStatusSchema = z.enum(["available", "unavailable", "error"]);
|
|
3361
|
+
export const ProviderUsageWindowSchema = z.object({
|
|
3362
|
+
id: z.string(),
|
|
3363
|
+
label: z.string(),
|
|
3364
|
+
usedPct: z.number().nullable().optional(),
|
|
3365
|
+
remainingPct: z.number().nullable().optional(),
|
|
3366
|
+
resetsAt: z.string().nullable().optional(),
|
|
3367
|
+
runsOutAt: z.string().nullable().optional(),
|
|
3368
|
+
shortfallPct: z.number().nullable().optional(),
|
|
3369
|
+
tone: ProviderUsageToneSchema.optional(),
|
|
3370
|
+
});
|
|
3371
|
+
export const ProviderUsageBalanceSchema = z.object({
|
|
3372
|
+
id: z.string(),
|
|
3373
|
+
label: z.string(),
|
|
3374
|
+
used: z.number().nullable().optional(),
|
|
3375
|
+
remaining: z.number().nullable().optional(),
|
|
3376
|
+
limit: z.number().nullable().optional(),
|
|
3377
|
+
unit: z.enum(["usd", "credits", "requests", "tokens"]),
|
|
3378
|
+
resetsAt: z.string().nullable().optional(),
|
|
3379
|
+
tone: ProviderUsageToneSchema.optional(),
|
|
3380
|
+
});
|
|
3381
|
+
export const ProviderUsageDetailSchema = z.object({
|
|
3382
|
+
id: z.string(),
|
|
3383
|
+
label: z.string(),
|
|
3384
|
+
value: z.string(),
|
|
3385
|
+
tone: ProviderUsageToneSchema.optional(),
|
|
3386
|
+
});
|
|
3387
|
+
export const ProviderUsageSchema = z.object({
|
|
3388
|
+
providerId: z.string(),
|
|
3389
|
+
displayName: z.string(),
|
|
3390
|
+
status: ProviderUsageStatusSchema,
|
|
3391
|
+
planLabel: z.string().nullable(),
|
|
3392
|
+
sourceLabel: z.string().nullable().optional(),
|
|
3393
|
+
fetchedAt: z.string().nullable().optional(),
|
|
3394
|
+
nextRefreshAt: z.string().nullable().optional(),
|
|
3395
|
+
windows: z.array(ProviderUsageWindowSchema),
|
|
3396
|
+
balances: z.array(ProviderUsageBalanceSchema).optional(),
|
|
3397
|
+
details: z.array(ProviderUsageDetailSchema).optional(),
|
|
3398
|
+
error: z.string().nullable().optional(),
|
|
3399
|
+
});
|
|
3400
|
+
export const ProviderUsageListResponseMessageSchema = z.object({
|
|
3401
|
+
type: z.literal("provider.usage.list.response"),
|
|
3402
|
+
payload: z.object({
|
|
3403
|
+
requestId: z.string(),
|
|
3404
|
+
fetchedAt: z.string(),
|
|
3405
|
+
providers: z.array(ProviderUsageSchema),
|
|
3406
|
+
}),
|
|
3407
|
+
});
|
|
3316
3408
|
const AgentSlashCommandSchema = z.object({
|
|
3317
3409
|
name: z.string(),
|
|
3318
3410
|
description: z.string(),
|
|
@@ -3484,6 +3576,7 @@ export const SessionOutboundMessageSchema = z.discriminatedUnion("type", [
|
|
|
3484
3576
|
FetchAgentHistoryResponseMessageSchema,
|
|
3485
3577
|
FetchRecentProviderSessionsResponseMessageSchema,
|
|
3486
3578
|
FetchWorkspacesResponseMessageSchema,
|
|
3579
|
+
ProjectAddResponseSchema,
|
|
3487
3580
|
OpenProjectResponseMessageSchema,
|
|
3488
3581
|
StartWorkspaceScriptResponseMessageSchema,
|
|
3489
3582
|
LegacyListAvailableEditorsResponseMessageSchema,
|
|
@@ -3507,6 +3600,7 @@ export const SessionOutboundMessageSchema = z.discriminatedUnion("type", [
|
|
|
3507
3600
|
SetAgentModelResponseMessageSchema,
|
|
3508
3601
|
SetAgentThinkingResponseMessageSchema,
|
|
3509
3602
|
SetAgentFeatureResponseMessageSchema,
|
|
3603
|
+
AgentDetachResponseMessageSchema,
|
|
3510
3604
|
AgentRewindResponseMessageSchema,
|
|
3511
3605
|
UpdateAgentResponseMessageSchema,
|
|
3512
3606
|
ProjectRenameResponseSchema,
|
|
@@ -3558,6 +3652,7 @@ export const SessionOutboundMessageSchema = z.discriminatedUnion("type", [
|
|
|
3558
3652
|
ProvidersSnapshotUpdateMessageSchema,
|
|
3559
3653
|
RefreshProvidersSnapshotResponseMessageSchema,
|
|
3560
3654
|
ProviderDiagnosticResponseMessageSchema,
|
|
3655
|
+
ProviderUsageListResponseMessageSchema,
|
|
3561
3656
|
ListCommandsResponseSchema,
|
|
3562
3657
|
ListTerminalsResponseSchema,
|
|
3563
3658
|
TerminalsChangedSchema,
|