@hyperdrive.bot/paseo-protocol 0.3.33 → 0.3.35
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/messages.d.ts
CHANGED
|
@@ -924,6 +924,88 @@ export declare const ArchiveAgentRequestMessageSchema: z.ZodObject<{
|
|
|
924
924
|
* inside Claude Code. `taskId` names the shell the user dismissed (for
|
|
925
925
|
* symmetry/logging); the kill is the CLI's global stop-background-work action.
|
|
926
926
|
*/
|
|
927
|
+
export declare const BackgroundTaskStatusSchema: z.ZodEnum<{
|
|
928
|
+
running: "running";
|
|
929
|
+
completed: "completed";
|
|
930
|
+
failed: "failed";
|
|
931
|
+
canceled: "canceled";
|
|
932
|
+
}>;
|
|
933
|
+
/**
|
|
934
|
+
* One background shell an agent owns: a command the provider launched with
|
|
935
|
+
* `run_in_background` so it outlives the turn. Mirrors what the Claude Code CLI
|
|
936
|
+
* shows for its own background tasks -- the command, how long it has run, and
|
|
937
|
+
* where its output is being captured -- so paseo can surface the same view.
|
|
938
|
+
*/
|
|
939
|
+
export declare const BackgroundTaskPayloadSchema: z.ZodObject<{
|
|
940
|
+
agentId: z.ZodString;
|
|
941
|
+
agentTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
942
|
+
taskId: z.ZodString;
|
|
943
|
+
command: z.ZodNullable<z.ZodString>;
|
|
944
|
+
description: z.ZodNullable<z.ZodString>;
|
|
945
|
+
status: z.ZodEnum<{
|
|
946
|
+
running: "running";
|
|
947
|
+
completed: "completed";
|
|
948
|
+
failed: "failed";
|
|
949
|
+
canceled: "canceled";
|
|
950
|
+
}>;
|
|
951
|
+
startedAt: z.ZodString;
|
|
952
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
953
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
954
|
+
hasOutput: z.ZodBoolean;
|
|
955
|
+
}, z.core.$strip>;
|
|
956
|
+
export type BackgroundTaskPayload = z.infer<typeof BackgroundTaskPayloadSchema>;
|
|
957
|
+
/**
|
|
958
|
+
* List an agent's background shells, or every agent's when `agentId` is omitted.
|
|
959
|
+
* Fetched on demand (like `list_terminals_request`) rather than pushed on every
|
|
960
|
+
* snapshot, so the per-agent count stays the only thing on the hot path.
|
|
961
|
+
*/
|
|
962
|
+
export declare const ListBackgroundTasksRequestMessageSchema: z.ZodObject<{
|
|
963
|
+
type: z.ZodLiteral<"list_background_tasks_request">;
|
|
964
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
965
|
+
requestId: z.ZodString;
|
|
966
|
+
}, z.core.$strip>;
|
|
967
|
+
export declare const ListBackgroundTasksResponseSchema: z.ZodObject<{
|
|
968
|
+
type: z.ZodLiteral<"list_background_tasks_response">;
|
|
969
|
+
payload: z.ZodObject<{
|
|
970
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
971
|
+
agentId: z.ZodString;
|
|
972
|
+
agentTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
973
|
+
taskId: z.ZodString;
|
|
974
|
+
command: z.ZodNullable<z.ZodString>;
|
|
975
|
+
description: z.ZodNullable<z.ZodString>;
|
|
976
|
+
status: z.ZodEnum<{
|
|
977
|
+
running: "running";
|
|
978
|
+
completed: "completed";
|
|
979
|
+
failed: "failed";
|
|
980
|
+
canceled: "canceled";
|
|
981
|
+
}>;
|
|
982
|
+
startedAt: z.ZodString;
|
|
983
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
984
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
985
|
+
hasOutput: z.ZodBoolean;
|
|
986
|
+
}, z.core.$strip>>;
|
|
987
|
+
requestId: z.ZodString;
|
|
988
|
+
}, z.core.$strip>;
|
|
989
|
+
}, z.core.$strip>;
|
|
990
|
+
/** Read back a background shell's captured output (tailed and redacted). */
|
|
991
|
+
export declare const BackgroundTaskOutputRequestMessageSchema: z.ZodObject<{
|
|
992
|
+
type: z.ZodLiteral<"background_task_output_request">;
|
|
993
|
+
agentId: z.ZodString;
|
|
994
|
+
taskId: z.ZodString;
|
|
995
|
+
maxBytes: z.ZodOptional<z.ZodNumber>;
|
|
996
|
+
requestId: z.ZodString;
|
|
997
|
+
}, z.core.$strip>;
|
|
998
|
+
export declare const BackgroundTaskOutputResponseSchema: z.ZodObject<{
|
|
999
|
+
type: z.ZodLiteral<"background_task_output_response">;
|
|
1000
|
+
payload: z.ZodObject<{
|
|
1001
|
+
agentId: z.ZodString;
|
|
1002
|
+
taskId: z.ZodString;
|
|
1003
|
+
text: z.ZodNullable<z.ZodString>;
|
|
1004
|
+
truncated: z.ZodBoolean;
|
|
1005
|
+
byteSize: z.ZodNumber;
|
|
1006
|
+
requestId: z.ZodString;
|
|
1007
|
+
}, z.core.$strip>;
|
|
1008
|
+
}, z.core.$strip>;
|
|
927
1009
|
export declare const DismissBackgroundTaskRequestMessageSchema: z.ZodObject<{
|
|
928
1010
|
type: z.ZodLiteral<"dismiss_background_task_request">;
|
|
929
1011
|
agentId: z.ZodString;
|
|
@@ -1789,6 +1871,17 @@ export declare const GetProvidersSnapshotRequestMessageSchema: z.ZodObject<{
|
|
|
1789
1871
|
cwd: z.ZodOptional<z.ZodString>;
|
|
1790
1872
|
requestId: z.ZodString;
|
|
1791
1873
|
}, z.core.$strip>;
|
|
1874
|
+
/**
|
|
1875
|
+
* Re-read `agents.providers` from `$PASEO_HOME/config.json` into the live
|
|
1876
|
+
* provider registry without restarting the daemon. Unlike
|
|
1877
|
+
* `set_daemon_config_request` (which deep-merges a patch and can therefore only
|
|
1878
|
+
* add or update), this replaces the base override map, so providers deleted
|
|
1879
|
+
* from the file are actually removed.
|
|
1880
|
+
*/
|
|
1881
|
+
export declare const ProvidersReloadConfigRequestMessageSchema: z.ZodObject<{
|
|
1882
|
+
type: z.ZodLiteral<"providers.reload_config.request">;
|
|
1883
|
+
requestId: z.ZodString;
|
|
1884
|
+
}, z.core.$strip>;
|
|
1792
1885
|
export declare const RefreshProvidersSnapshotRequestMessageSchema: z.ZodObject<{
|
|
1793
1886
|
type: z.ZodLiteral<"refresh_providers_snapshot_request">;
|
|
1794
1887
|
cwd: z.ZodOptional<z.ZodString>;
|
|
@@ -3537,6 +3630,16 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
3537
3630
|
agentId: z.ZodString;
|
|
3538
3631
|
taskId: z.ZodString;
|
|
3539
3632
|
requestId: z.ZodString;
|
|
3633
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3634
|
+
type: z.ZodLiteral<"list_background_tasks_request">;
|
|
3635
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
3636
|
+
requestId: z.ZodString;
|
|
3637
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3638
|
+
type: z.ZodLiteral<"background_task_output_request">;
|
|
3639
|
+
agentId: z.ZodString;
|
|
3640
|
+
taskId: z.ZodString;
|
|
3641
|
+
maxBytes: z.ZodOptional<z.ZodNumber>;
|
|
3642
|
+
requestId: z.ZodString;
|
|
3540
3643
|
}, z.core.$strip>, z.ZodObject<{
|
|
3541
3644
|
type: z.ZodLiteral<"close_items_request">;
|
|
3542
3645
|
agentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -3978,6 +4081,9 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
3978
4081
|
type: z.ZodLiteral<"get_providers_snapshot_request">;
|
|
3979
4082
|
cwd: z.ZodOptional<z.ZodString>;
|
|
3980
4083
|
requestId: z.ZodString;
|
|
4084
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4085
|
+
type: z.ZodLiteral<"providers.reload_config.request">;
|
|
4086
|
+
requestId: z.ZodString;
|
|
3981
4087
|
}, z.core.$strip>, z.ZodObject<{
|
|
3982
4088
|
type: z.ZodLiteral<"refresh_providers_snapshot_request">;
|
|
3983
4089
|
cwd: z.ZodOptional<z.ZodString>;
|
|
@@ -11862,6 +11968,25 @@ export declare const GetProvidersSnapshotResponseMessageSchema: z.ZodObject<{
|
|
|
11862
11968
|
requestId: z.ZodString;
|
|
11863
11969
|
}, z.core.$strip>;
|
|
11864
11970
|
}, z.core.$strip>;
|
|
11971
|
+
/**
|
|
11972
|
+
* Result of a provider config reload. Reports provider *ids* only — never the
|
|
11973
|
+
* resolved `env`, which routinely holds API keys (see docs/custom-providers.md).
|
|
11974
|
+
*/
|
|
11975
|
+
export declare const ProvidersReloadConfigResponseMessageSchema: z.ZodObject<{
|
|
11976
|
+
type: z.ZodLiteral<"providers.reload_config.response">;
|
|
11977
|
+
payload: z.ZodObject<{
|
|
11978
|
+
added: z.ZodArray<z.ZodString>;
|
|
11979
|
+
updated: z.ZodArray<z.ZodString>;
|
|
11980
|
+
removed: z.ZodArray<z.ZodString>;
|
|
11981
|
+
unchanged: z.ZodArray<z.ZodString>;
|
|
11982
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
11983
|
+
provider: z.ZodString;
|
|
11984
|
+
label: z.ZodString;
|
|
11985
|
+
enabled: z.ZodBoolean;
|
|
11986
|
+
}, z.core.$strip>>;
|
|
11987
|
+
requestId: z.ZodString;
|
|
11988
|
+
}, z.core.$strip>;
|
|
11989
|
+
}, z.core.$strip>;
|
|
11865
11990
|
export declare const ProvidersSnapshotUpdateMessageSchema: z.ZodObject<{
|
|
11866
11991
|
type: z.ZodLiteral<"providers_snapshot_update">;
|
|
11867
11992
|
payload: z.ZodObject<{
|
|
@@ -16404,6 +16529,38 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
16404
16529
|
dismissed: z.ZodBoolean;
|
|
16405
16530
|
requestId: z.ZodString;
|
|
16406
16531
|
}, z.core.$strip>;
|
|
16532
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16533
|
+
type: z.ZodLiteral<"list_background_tasks_response">;
|
|
16534
|
+
payload: z.ZodObject<{
|
|
16535
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
16536
|
+
agentId: z.ZodString;
|
|
16537
|
+
agentTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16538
|
+
taskId: z.ZodString;
|
|
16539
|
+
command: z.ZodNullable<z.ZodString>;
|
|
16540
|
+
description: z.ZodNullable<z.ZodString>;
|
|
16541
|
+
status: z.ZodEnum<{
|
|
16542
|
+
running: "running";
|
|
16543
|
+
completed: "completed";
|
|
16544
|
+
failed: "failed";
|
|
16545
|
+
canceled: "canceled";
|
|
16546
|
+
}>;
|
|
16547
|
+
startedAt: z.ZodString;
|
|
16548
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
16549
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
16550
|
+
hasOutput: z.ZodBoolean;
|
|
16551
|
+
}, z.core.$strip>>;
|
|
16552
|
+
requestId: z.ZodString;
|
|
16553
|
+
}, z.core.$strip>;
|
|
16554
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16555
|
+
type: z.ZodLiteral<"background_task_output_response">;
|
|
16556
|
+
payload: z.ZodObject<{
|
|
16557
|
+
agentId: z.ZodString;
|
|
16558
|
+
taskId: z.ZodString;
|
|
16559
|
+
text: z.ZodNullable<z.ZodString>;
|
|
16560
|
+
truncated: z.ZodBoolean;
|
|
16561
|
+
byteSize: z.ZodNumber;
|
|
16562
|
+
requestId: z.ZodString;
|
|
16563
|
+
}, z.core.$strip>;
|
|
16407
16564
|
}, z.core.$strip>, z.ZodObject<{
|
|
16408
16565
|
type: z.ZodLiteral<"close_items_response">;
|
|
16409
16566
|
payload: z.ZodObject<{
|
|
@@ -17862,6 +18019,20 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
17862
18019
|
generatedAt: z.ZodString;
|
|
17863
18020
|
requestId: z.ZodString;
|
|
17864
18021
|
}, z.core.$strip>;
|
|
18022
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18023
|
+
type: z.ZodLiteral<"providers.reload_config.response">;
|
|
18024
|
+
payload: z.ZodObject<{
|
|
18025
|
+
added: z.ZodArray<z.ZodString>;
|
|
18026
|
+
updated: z.ZodArray<z.ZodString>;
|
|
18027
|
+
removed: z.ZodArray<z.ZodString>;
|
|
18028
|
+
unchanged: z.ZodArray<z.ZodString>;
|
|
18029
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
18030
|
+
provider: z.ZodString;
|
|
18031
|
+
label: z.ZodString;
|
|
18032
|
+
enabled: z.ZodBoolean;
|
|
18033
|
+
}, z.core.$strip>>;
|
|
18034
|
+
requestId: z.ZodString;
|
|
18035
|
+
}, z.core.$strip>;
|
|
17865
18036
|
}, z.core.$strip>, z.ZodObject<{
|
|
17866
18037
|
type: z.ZodLiteral<"providers_snapshot_update">;
|
|
17867
18038
|
payload: z.ZodObject<{
|
|
@@ -19344,6 +19515,9 @@ export type DaemonGetStatusResponse = z.infer<typeof DaemonGetStatusResponseSche
|
|
|
19344
19515
|
export type DaemonGetPairingOfferResponse = z.infer<typeof DaemonGetPairingOfferResponseSchema>;
|
|
19345
19516
|
export type DiagnosticsResponse = z.infer<typeof DiagnosticsResponseSchema>;
|
|
19346
19517
|
export type GetProvidersSnapshotResponseMessage = z.infer<typeof GetProvidersSnapshotResponseMessageSchema>;
|
|
19518
|
+
export type ProvidersReloadConfigRequestMessage = z.infer<typeof ProvidersReloadConfigRequestMessageSchema>;
|
|
19519
|
+
export type ProvidersReloadConfigResponseMessage = z.infer<typeof ProvidersReloadConfigResponseMessageSchema>;
|
|
19520
|
+
export type ProvidersReloadConfigPayload = ProvidersReloadConfigResponseMessage["payload"];
|
|
19347
19521
|
export type ProvidersSnapshotUpdateMessage = z.infer<typeof ProvidersSnapshotUpdateMessageSchema>;
|
|
19348
19522
|
export type RefreshProvidersSnapshotResponseMessage = z.infer<typeof RefreshProvidersSnapshotResponseMessageSchema>;
|
|
19349
19523
|
export type ProviderDiagnosticResponseMessage = z.infer<typeof ProviderDiagnosticResponseMessageSchema>;
|
|
@@ -19531,6 +19705,8 @@ export type ListCommandsResponse = z.infer<typeof ListCommandsResponseSchema>;
|
|
|
19531
19705
|
export type RegisterPushTokenMessage = z.infer<typeof RegisterPushTokenMessageSchema>;
|
|
19532
19706
|
export type ListTerminalsRequest = z.infer<typeof ListTerminalsRequestSchema>;
|
|
19533
19707
|
export type ListTerminalsResponse = z.infer<typeof ListTerminalsResponseSchema>;
|
|
19708
|
+
export type ListBackgroundTasksResponse = z.infer<typeof ListBackgroundTasksResponseSchema>;
|
|
19709
|
+
export type BackgroundTaskOutputResponse = z.infer<typeof BackgroundTaskOutputResponseSchema>;
|
|
19534
19710
|
export type SubscribeTerminalsRequest = z.infer<typeof SubscribeTerminalsRequestSchema>;
|
|
19535
19711
|
export type UnsubscribeTerminalsRequest = z.infer<typeof UnsubscribeTerminalsRequestSchema>;
|
|
19536
19712
|
export type TerminalsChanged = z.infer<typeof TerminalsChangedSchema>;
|
|
@@ -19929,6 +20105,16 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
19929
20105
|
agentId: z.ZodString;
|
|
19930
20106
|
taskId: z.ZodString;
|
|
19931
20107
|
requestId: z.ZodString;
|
|
20108
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
20109
|
+
type: z.ZodLiteral<"list_background_tasks_request">;
|
|
20110
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
20111
|
+
requestId: z.ZodString;
|
|
20112
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
20113
|
+
type: z.ZodLiteral<"background_task_output_request">;
|
|
20114
|
+
agentId: z.ZodString;
|
|
20115
|
+
taskId: z.ZodString;
|
|
20116
|
+
maxBytes: z.ZodOptional<z.ZodNumber>;
|
|
20117
|
+
requestId: z.ZodString;
|
|
19932
20118
|
}, z.core.$strip>, z.ZodObject<{
|
|
19933
20119
|
type: z.ZodLiteral<"close_items_request">;
|
|
19934
20120
|
agentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -20370,6 +20556,9 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
20370
20556
|
type: z.ZodLiteral<"get_providers_snapshot_request">;
|
|
20371
20557
|
cwd: z.ZodOptional<z.ZodString>;
|
|
20372
20558
|
requestId: z.ZodString;
|
|
20559
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
20560
|
+
type: z.ZodLiteral<"providers.reload_config.request">;
|
|
20561
|
+
requestId: z.ZodString;
|
|
20373
20562
|
}, z.core.$strip>, z.ZodObject<{
|
|
20374
20563
|
type: z.ZodLiteral<"refresh_providers_snapshot_request">;
|
|
20375
20564
|
cwd: z.ZodOptional<z.ZodString>;
|
|
@@ -25451,6 +25640,38 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
25451
25640
|
dismissed: z.ZodBoolean;
|
|
25452
25641
|
requestId: z.ZodString;
|
|
25453
25642
|
}, z.core.$strip>;
|
|
25643
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25644
|
+
type: z.ZodLiteral<"list_background_tasks_response">;
|
|
25645
|
+
payload: z.ZodObject<{
|
|
25646
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
25647
|
+
agentId: z.ZodString;
|
|
25648
|
+
agentTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25649
|
+
taskId: z.ZodString;
|
|
25650
|
+
command: z.ZodNullable<z.ZodString>;
|
|
25651
|
+
description: z.ZodNullable<z.ZodString>;
|
|
25652
|
+
status: z.ZodEnum<{
|
|
25653
|
+
running: "running";
|
|
25654
|
+
completed: "completed";
|
|
25655
|
+
failed: "failed";
|
|
25656
|
+
canceled: "canceled";
|
|
25657
|
+
}>;
|
|
25658
|
+
startedAt: z.ZodString;
|
|
25659
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
25660
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
25661
|
+
hasOutput: z.ZodBoolean;
|
|
25662
|
+
}, z.core.$strip>>;
|
|
25663
|
+
requestId: z.ZodString;
|
|
25664
|
+
}, z.core.$strip>;
|
|
25665
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25666
|
+
type: z.ZodLiteral<"background_task_output_response">;
|
|
25667
|
+
payload: z.ZodObject<{
|
|
25668
|
+
agentId: z.ZodString;
|
|
25669
|
+
taskId: z.ZodString;
|
|
25670
|
+
text: z.ZodNullable<z.ZodString>;
|
|
25671
|
+
truncated: z.ZodBoolean;
|
|
25672
|
+
byteSize: z.ZodNumber;
|
|
25673
|
+
requestId: z.ZodString;
|
|
25674
|
+
}, z.core.$strip>;
|
|
25454
25675
|
}, z.core.$strip>, z.ZodObject<{
|
|
25455
25676
|
type: z.ZodLiteral<"close_items_response">;
|
|
25456
25677
|
payload: z.ZodObject<{
|
|
@@ -26909,6 +27130,20 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
26909
27130
|
generatedAt: z.ZodString;
|
|
26910
27131
|
requestId: z.ZodString;
|
|
26911
27132
|
}, z.core.$strip>;
|
|
27133
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27134
|
+
type: z.ZodLiteral<"providers.reload_config.response">;
|
|
27135
|
+
payload: z.ZodObject<{
|
|
27136
|
+
added: z.ZodArray<z.ZodString>;
|
|
27137
|
+
updated: z.ZodArray<z.ZodString>;
|
|
27138
|
+
removed: z.ZodArray<z.ZodString>;
|
|
27139
|
+
unchanged: z.ZodArray<z.ZodString>;
|
|
27140
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
27141
|
+
provider: z.ZodString;
|
|
27142
|
+
label: z.ZodString;
|
|
27143
|
+
enabled: z.ZodBoolean;
|
|
27144
|
+
}, z.core.$strip>>;
|
|
27145
|
+
requestId: z.ZodString;
|
|
27146
|
+
}, z.core.$strip>;
|
|
26912
27147
|
}, z.core.$strip>, z.ZodObject<{
|
|
26913
27148
|
type: z.ZodLiteral<"providers_snapshot_update">;
|
|
26914
27149
|
payload: z.ZodObject<{
|
|
@@ -28668,6 +28903,16 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
28668
28903
|
agentId: z.ZodString;
|
|
28669
28904
|
taskId: z.ZodString;
|
|
28670
28905
|
requestId: z.ZodString;
|
|
28906
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
28907
|
+
type: z.ZodLiteral<"list_background_tasks_request">;
|
|
28908
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
28909
|
+
requestId: z.ZodString;
|
|
28910
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
28911
|
+
type: z.ZodLiteral<"background_task_output_request">;
|
|
28912
|
+
agentId: z.ZodString;
|
|
28913
|
+
taskId: z.ZodString;
|
|
28914
|
+
maxBytes: z.ZodOptional<z.ZodNumber>;
|
|
28915
|
+
requestId: z.ZodString;
|
|
28671
28916
|
}, z.core.$strip>, z.ZodObject<{
|
|
28672
28917
|
type: z.ZodLiteral<"close_items_request">;
|
|
28673
28918
|
agentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -29109,6 +29354,9 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
29109
29354
|
type: z.ZodLiteral<"get_providers_snapshot_request">;
|
|
29110
29355
|
cwd: z.ZodOptional<z.ZodString>;
|
|
29111
29356
|
requestId: z.ZodString;
|
|
29357
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29358
|
+
type: z.ZodLiteral<"providers.reload_config.request">;
|
|
29359
|
+
requestId: z.ZodString;
|
|
29112
29360
|
}, z.core.$strip>, z.ZodObject<{
|
|
29113
29361
|
type: z.ZodLiteral<"refresh_providers_snapshot_request">;
|
|
29114
29362
|
cwd: z.ZodOptional<z.ZodString>;
|
|
@@ -34192,6 +34440,38 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
34192
34440
|
dismissed: z.ZodBoolean;
|
|
34193
34441
|
requestId: z.ZodString;
|
|
34194
34442
|
}, z.core.$strip>;
|
|
34443
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
34444
|
+
type: z.ZodLiteral<"list_background_tasks_response">;
|
|
34445
|
+
payload: z.ZodObject<{
|
|
34446
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
34447
|
+
agentId: z.ZodString;
|
|
34448
|
+
agentTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34449
|
+
taskId: z.ZodString;
|
|
34450
|
+
command: z.ZodNullable<z.ZodString>;
|
|
34451
|
+
description: z.ZodNullable<z.ZodString>;
|
|
34452
|
+
status: z.ZodEnum<{
|
|
34453
|
+
running: "running";
|
|
34454
|
+
completed: "completed";
|
|
34455
|
+
failed: "failed";
|
|
34456
|
+
canceled: "canceled";
|
|
34457
|
+
}>;
|
|
34458
|
+
startedAt: z.ZodString;
|
|
34459
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
34460
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
34461
|
+
hasOutput: z.ZodBoolean;
|
|
34462
|
+
}, z.core.$strip>>;
|
|
34463
|
+
requestId: z.ZodString;
|
|
34464
|
+
}, z.core.$strip>;
|
|
34465
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
34466
|
+
type: z.ZodLiteral<"background_task_output_response">;
|
|
34467
|
+
payload: z.ZodObject<{
|
|
34468
|
+
agentId: z.ZodString;
|
|
34469
|
+
taskId: z.ZodString;
|
|
34470
|
+
text: z.ZodNullable<z.ZodString>;
|
|
34471
|
+
truncated: z.ZodBoolean;
|
|
34472
|
+
byteSize: z.ZodNumber;
|
|
34473
|
+
requestId: z.ZodString;
|
|
34474
|
+
}, z.core.$strip>;
|
|
34195
34475
|
}, z.core.$strip>, z.ZodObject<{
|
|
34196
34476
|
type: z.ZodLiteral<"close_items_response">;
|
|
34197
34477
|
payload: z.ZodObject<{
|
|
@@ -35650,6 +35930,20 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
35650
35930
|
generatedAt: z.ZodString;
|
|
35651
35931
|
requestId: z.ZodString;
|
|
35652
35932
|
}, z.core.$strip>;
|
|
35933
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
35934
|
+
type: z.ZodLiteral<"providers.reload_config.response">;
|
|
35935
|
+
payload: z.ZodObject<{
|
|
35936
|
+
added: z.ZodArray<z.ZodString>;
|
|
35937
|
+
updated: z.ZodArray<z.ZodString>;
|
|
35938
|
+
removed: z.ZodArray<z.ZodString>;
|
|
35939
|
+
unchanged: z.ZodArray<z.ZodString>;
|
|
35940
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
35941
|
+
provider: z.ZodString;
|
|
35942
|
+
label: z.ZodString;
|
|
35943
|
+
enabled: z.ZodBoolean;
|
|
35944
|
+
}, z.core.$strip>>;
|
|
35945
|
+
requestId: z.ZodString;
|
|
35946
|
+
}, z.core.$strip>;
|
|
35653
35947
|
}, z.core.$strip>, z.ZodObject<{
|
|
35654
35948
|
type: z.ZodLiteral<"providers_snapshot_update">;
|
|
35655
35949
|
payload: z.ZodObject<{
|
package/dist/messages.js
CHANGED
|
@@ -917,6 +917,65 @@ export const ArchiveAgentRequestMessageSchema = z.object({
|
|
|
917
917
|
* inside Claude Code. `taskId` names the shell the user dismissed (for
|
|
918
918
|
* symmetry/logging); the kill is the CLI's global stop-background-work action.
|
|
919
919
|
*/
|
|
920
|
+
export const BackgroundTaskStatusSchema = z.enum(["running", "completed", "failed", "canceled"]);
|
|
921
|
+
/**
|
|
922
|
+
* One background shell an agent owns: a command the provider launched with
|
|
923
|
+
* `run_in_background` so it outlives the turn. Mirrors what the Claude Code CLI
|
|
924
|
+
* shows for its own background tasks -- the command, how long it has run, and
|
|
925
|
+
* where its output is being captured -- so paseo can surface the same view.
|
|
926
|
+
*/
|
|
927
|
+
export const BackgroundTaskPayloadSchema = z.object({
|
|
928
|
+
agentId: z.string(),
|
|
929
|
+
/** Agent title at list time, so a cross-agent list reads without a join. */
|
|
930
|
+
agentTitle: z.string().nullable().optional(),
|
|
931
|
+
taskId: z.string(),
|
|
932
|
+
command: z.string().nullable(),
|
|
933
|
+
description: z.string().nullable(),
|
|
934
|
+
status: BackgroundTaskStatusSchema,
|
|
935
|
+
/** ISO start time, from the output file's birth time where one exists. */
|
|
936
|
+
startedAt: z.string(),
|
|
937
|
+
endedAt: z.string().nullable(),
|
|
938
|
+
summary: z.string().nullable(),
|
|
939
|
+
/** True when the provider captured output that can be read back. */
|
|
940
|
+
hasOutput: z.boolean(),
|
|
941
|
+
});
|
|
942
|
+
/**
|
|
943
|
+
* List an agent's background shells, or every agent's when `agentId` is omitted.
|
|
944
|
+
* Fetched on demand (like `list_terminals_request`) rather than pushed on every
|
|
945
|
+
* snapshot, so the per-agent count stays the only thing on the hot path.
|
|
946
|
+
*/
|
|
947
|
+
export const ListBackgroundTasksRequestMessageSchema = z.object({
|
|
948
|
+
type: z.literal("list_background_tasks_request"),
|
|
949
|
+
agentId: z.string().optional(),
|
|
950
|
+
requestId: z.string(),
|
|
951
|
+
});
|
|
952
|
+
export const ListBackgroundTasksResponseSchema = z.object({
|
|
953
|
+
type: z.literal("list_background_tasks_response"),
|
|
954
|
+
payload: z.object({
|
|
955
|
+
tasks: z.array(BackgroundTaskPayloadSchema),
|
|
956
|
+
requestId: z.string(),
|
|
957
|
+
}),
|
|
958
|
+
});
|
|
959
|
+
/** Read back a background shell's captured output (tailed and redacted). */
|
|
960
|
+
export const BackgroundTaskOutputRequestMessageSchema = z.object({
|
|
961
|
+
type: z.literal("background_task_output_request"),
|
|
962
|
+
agentId: z.string(),
|
|
963
|
+
taskId: z.string(),
|
|
964
|
+
maxBytes: z.number().int().positive().optional(),
|
|
965
|
+
requestId: z.string(),
|
|
966
|
+
});
|
|
967
|
+
export const BackgroundTaskOutputResponseSchema = z.object({
|
|
968
|
+
type: z.literal("background_task_output_response"),
|
|
969
|
+
payload: z.object({
|
|
970
|
+
agentId: z.string(),
|
|
971
|
+
taskId: z.string(),
|
|
972
|
+
/** Null when the shell is unknown to the daemon or captured nothing. */
|
|
973
|
+
text: z.string().nullable(),
|
|
974
|
+
truncated: z.boolean(),
|
|
975
|
+
byteSize: z.number().int().nonnegative(),
|
|
976
|
+
requestId: z.string(),
|
|
977
|
+
}),
|
|
978
|
+
});
|
|
920
979
|
export const DismissBackgroundTaskRequestMessageSchema = z.object({
|
|
921
980
|
type: z.literal("dismiss_background_task_request"),
|
|
922
981
|
agentId: z.string(),
|
|
@@ -1324,6 +1383,17 @@ export const GetProvidersSnapshotRequestMessageSchema = z.object({
|
|
|
1324
1383
|
cwd: z.string().optional(),
|
|
1325
1384
|
requestId: z.string(),
|
|
1326
1385
|
});
|
|
1386
|
+
/**
|
|
1387
|
+
* Re-read `agents.providers` from `$PASEO_HOME/config.json` into the live
|
|
1388
|
+
* provider registry without restarting the daemon. Unlike
|
|
1389
|
+
* `set_daemon_config_request` (which deep-merges a patch and can therefore only
|
|
1390
|
+
* add or update), this replaces the base override map, so providers deleted
|
|
1391
|
+
* from the file are actually removed.
|
|
1392
|
+
*/
|
|
1393
|
+
export const ProvidersReloadConfigRequestMessageSchema = z.object({
|
|
1394
|
+
type: z.literal("providers.reload_config.request"),
|
|
1395
|
+
requestId: z.string(),
|
|
1396
|
+
});
|
|
1327
1397
|
export const RefreshProvidersSnapshotRequestMessageSchema = z.object({
|
|
1328
1398
|
type: z.literal("refresh_providers_snapshot_request"),
|
|
1329
1399
|
cwd: z.string().optional(),
|
|
@@ -2427,6 +2497,8 @@ export const SessionInboundMessageSchema = z.discriminatedUnion("type", [
|
|
|
2427
2497
|
DeleteAgentRequestMessageSchema,
|
|
2428
2498
|
ArchiveAgentRequestMessageSchema,
|
|
2429
2499
|
DismissBackgroundTaskRequestMessageSchema,
|
|
2500
|
+
ListBackgroundTasksRequestMessageSchema,
|
|
2501
|
+
BackgroundTaskOutputRequestMessageSchema,
|
|
2430
2502
|
CloseItemsRequestMessageSchema,
|
|
2431
2503
|
UpdateAgentRequestMessageSchema,
|
|
2432
2504
|
ProjectRenameRequestSchema,
|
|
@@ -2458,6 +2530,7 @@ export const SessionInboundMessageSchema = z.discriminatedUnion("type", [
|
|
|
2458
2530
|
ListProviderFeaturesRequestMessageSchema,
|
|
2459
2531
|
ListAvailableProvidersRequestMessageSchema,
|
|
2460
2532
|
GetProvidersSnapshotRequestMessageSchema,
|
|
2533
|
+
ProvidersReloadConfigRequestMessageSchema,
|
|
2461
2534
|
RefreshProvidersSnapshotRequestMessageSchema,
|
|
2462
2535
|
ProviderDiagnosticRequestMessageSchema,
|
|
2463
2536
|
ProviderUsageListRequestMessageSchema,
|
|
@@ -4242,6 +4315,25 @@ export const GetProvidersSnapshotResponseMessageSchema = z.object({
|
|
|
4242
4315
|
requestId: z.string(),
|
|
4243
4316
|
}),
|
|
4244
4317
|
});
|
|
4318
|
+
/**
|
|
4319
|
+
* Result of a provider config reload. Reports provider *ids* only — never the
|
|
4320
|
+
* resolved `env`, which routinely holds API keys (see docs/custom-providers.md).
|
|
4321
|
+
*/
|
|
4322
|
+
export const ProvidersReloadConfigResponseMessageSchema = z.object({
|
|
4323
|
+
type: z.literal("providers.reload_config.response"),
|
|
4324
|
+
payload: z.object({
|
|
4325
|
+
added: z.array(z.string()),
|
|
4326
|
+
updated: z.array(z.string()),
|
|
4327
|
+
removed: z.array(z.string()),
|
|
4328
|
+
unchanged: z.array(z.string()),
|
|
4329
|
+
providers: z.array(z.object({
|
|
4330
|
+
provider: z.string(),
|
|
4331
|
+
label: z.string(),
|
|
4332
|
+
enabled: z.boolean(),
|
|
4333
|
+
})),
|
|
4334
|
+
requestId: z.string(),
|
|
4335
|
+
}),
|
|
4336
|
+
});
|
|
4245
4337
|
// COMPAT(providersSnapshot): added in v0.1.48, remove gating when all clients use snapshot
|
|
4246
4338
|
export const ProvidersSnapshotUpdateMessageSchema = z.object({
|
|
4247
4339
|
type: z.literal("providers_snapshot_update"),
|
|
@@ -4553,6 +4645,8 @@ export const SessionOutboundMessageSchema = z.discriminatedUnion("type", [
|
|
|
4553
4645
|
AgentDeletedMessageSchema,
|
|
4554
4646
|
AgentArchivedMessageSchema,
|
|
4555
4647
|
BackgroundTaskDismissedMessageSchema,
|
|
4648
|
+
ListBackgroundTasksResponseSchema,
|
|
4649
|
+
BackgroundTaskOutputResponseSchema,
|
|
4556
4650
|
CloseItemsResponseSchema,
|
|
4557
4651
|
CheckoutStatusResponseSchema,
|
|
4558
4652
|
CheckoutStatusUpdateSchema,
|
|
@@ -4595,6 +4689,7 @@ export const SessionOutboundMessageSchema = z.discriminatedUnion("type", [
|
|
|
4595
4689
|
ListProviderFeaturesResponseMessageSchema,
|
|
4596
4690
|
ListAvailableProvidersResponseSchema,
|
|
4597
4691
|
GetProvidersSnapshotResponseMessageSchema,
|
|
4692
|
+
ProvidersReloadConfigResponseMessageSchema,
|
|
4598
4693
|
ProvidersSnapshotUpdateMessageSchema,
|
|
4599
4694
|
RefreshProvidersSnapshotResponseMessageSchema,
|
|
4600
4695
|
ProviderDiagnosticResponseMessageSchema,
|
|
@@ -4072,6 +4072,38 @@ export declare const WSOutboundMessageSchema: {
|
|
|
4072
4072
|
dismissed: import("zod").ZodBoolean;
|
|
4073
4073
|
requestId: import("zod").ZodString;
|
|
4074
4074
|
}, import("zod/v4/core").$strip>;
|
|
4075
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
4076
|
+
type: import("zod").ZodLiteral<"list_background_tasks_response">;
|
|
4077
|
+
payload: import("zod").ZodObject<{
|
|
4078
|
+
tasks: import("zod").ZodArray<import("zod").ZodObject<{
|
|
4079
|
+
agentId: import("zod").ZodString;
|
|
4080
|
+
agentTitle: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
4081
|
+
taskId: import("zod").ZodString;
|
|
4082
|
+
command: import("zod").ZodNullable<import("zod").ZodString>;
|
|
4083
|
+
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
4084
|
+
status: import("zod").ZodEnum<{
|
|
4085
|
+
running: "running";
|
|
4086
|
+
completed: "completed";
|
|
4087
|
+
failed: "failed";
|
|
4088
|
+
canceled: "canceled";
|
|
4089
|
+
}>;
|
|
4090
|
+
startedAt: import("zod").ZodString;
|
|
4091
|
+
endedAt: import("zod").ZodNullable<import("zod").ZodString>;
|
|
4092
|
+
summary: import("zod").ZodNullable<import("zod").ZodString>;
|
|
4093
|
+
hasOutput: import("zod").ZodBoolean;
|
|
4094
|
+
}, import("zod/v4/core").$strip>>;
|
|
4095
|
+
requestId: import("zod").ZodString;
|
|
4096
|
+
}, import("zod/v4/core").$strip>;
|
|
4097
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
4098
|
+
type: import("zod").ZodLiteral<"background_task_output_response">;
|
|
4099
|
+
payload: import("zod").ZodObject<{
|
|
4100
|
+
agentId: import("zod").ZodString;
|
|
4101
|
+
taskId: import("zod").ZodString;
|
|
4102
|
+
text: import("zod").ZodNullable<import("zod").ZodString>;
|
|
4103
|
+
truncated: import("zod").ZodBoolean;
|
|
4104
|
+
byteSize: import("zod").ZodNumber;
|
|
4105
|
+
requestId: import("zod").ZodString;
|
|
4106
|
+
}, import("zod/v4/core").$strip>;
|
|
4075
4107
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
4076
4108
|
type: import("zod").ZodLiteral<"close_items_response">;
|
|
4077
4109
|
payload: import("zod").ZodObject<{
|
|
@@ -5530,6 +5562,20 @@ export declare const WSOutboundMessageSchema: {
|
|
|
5530
5562
|
generatedAt: import("zod").ZodString;
|
|
5531
5563
|
requestId: import("zod").ZodString;
|
|
5532
5564
|
}, import("zod/v4/core").$strip>;
|
|
5565
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
5566
|
+
type: import("zod").ZodLiteral<"providers.reload_config.response">;
|
|
5567
|
+
payload: import("zod").ZodObject<{
|
|
5568
|
+
added: import("zod").ZodArray<import("zod").ZodString>;
|
|
5569
|
+
updated: import("zod").ZodArray<import("zod").ZodString>;
|
|
5570
|
+
removed: import("zod").ZodArray<import("zod").ZodString>;
|
|
5571
|
+
unchanged: import("zod").ZodArray<import("zod").ZodString>;
|
|
5572
|
+
providers: import("zod").ZodArray<import("zod").ZodObject<{
|
|
5573
|
+
provider: import("zod").ZodString;
|
|
5574
|
+
label: import("zod").ZodString;
|
|
5575
|
+
enabled: import("zod").ZodBoolean;
|
|
5576
|
+
}, import("zod/v4/core").$strip>>;
|
|
5577
|
+
requestId: import("zod").ZodString;
|
|
5578
|
+
}, import("zod/v4/core").$strip>;
|
|
5533
5579
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
5534
5580
|
type: import("zod").ZodLiteral<"providers_snapshot_update">;
|
|
5535
5581
|
payload: import("zod").ZodObject<{
|