@getpaseo/protocol 0.1.100 → 0.1.102-beta.2
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 +443 -114
- package/dist/messages.js +72 -2
- package/dist/provider-icon-names.js +1 -0
- package/package.json +1 -1
package/dist/messages.d.ts
CHANGED
|
@@ -389,12 +389,25 @@ export declare const GitHubIssueAttachmentSchema: z.ZodObject<{
|
|
|
389
389
|
url: z.ZodString;
|
|
390
390
|
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
391
391
|
}, z.core.$strip>;
|
|
392
|
-
export declare const TextAttachmentSchema: z.ZodObject<{
|
|
392
|
+
export declare const TextAttachmentSchema: z.ZodPipe<z.ZodObject<{
|
|
393
393
|
type: z.ZodLiteral<"text">;
|
|
394
394
|
mimeType: z.ZodLiteral<"text/plain">;
|
|
395
|
+
contextKind: z.ZodOptional<z.ZodString>;
|
|
395
396
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
396
397
|
text: z.ZodString;
|
|
397
|
-
}, z.core.$strip
|
|
398
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
399
|
+
contextKind?: string | undefined;
|
|
400
|
+
type: "text";
|
|
401
|
+
mimeType: "text/plain";
|
|
402
|
+
text: string;
|
|
403
|
+
title?: string | null | undefined;
|
|
404
|
+
}, {
|
|
405
|
+
type: "text";
|
|
406
|
+
mimeType: "text/plain";
|
|
407
|
+
text: string;
|
|
408
|
+
contextKind?: string | undefined;
|
|
409
|
+
title?: string | null | undefined;
|
|
410
|
+
}>>;
|
|
398
411
|
export declare const ReviewAttachmentContextLineSchema: z.ZodObject<{
|
|
399
412
|
oldLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
400
413
|
newLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
@@ -503,12 +516,25 @@ export declare const AgentAttachmentSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
503
516
|
title: z.ZodString;
|
|
504
517
|
url: z.ZodString;
|
|
505
518
|
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
506
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
519
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
507
520
|
type: z.ZodLiteral<"text">;
|
|
508
521
|
mimeType: z.ZodLiteral<"text/plain">;
|
|
522
|
+
contextKind: z.ZodOptional<z.ZodString>;
|
|
509
523
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
510
524
|
text: z.ZodString;
|
|
511
|
-
}, z.core.$strip>, z.
|
|
525
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
526
|
+
contextKind?: string | undefined;
|
|
527
|
+
type: "text";
|
|
528
|
+
mimeType: "text/plain";
|
|
529
|
+
text: string;
|
|
530
|
+
title?: string | null | undefined;
|
|
531
|
+
}, {
|
|
532
|
+
type: "text";
|
|
533
|
+
mimeType: "text/plain";
|
|
534
|
+
text: string;
|
|
535
|
+
contextKind?: string | undefined;
|
|
536
|
+
title?: string | null | undefined;
|
|
537
|
+
}>>, z.ZodObject<{
|
|
512
538
|
type: z.ZodLiteral<"review">;
|
|
513
539
|
mimeType: z.ZodLiteral<"application/paseo-review">;
|
|
514
540
|
cwd: z.ZodString;
|
|
@@ -567,6 +593,12 @@ export declare const SendAgentMessageSchema: z.ZodObject<{
|
|
|
567
593
|
mimeType: z.ZodString;
|
|
568
594
|
}, z.core.$strip>>>;
|
|
569
595
|
attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
|
|
596
|
+
contextKind?: string | undefined;
|
|
597
|
+
type: "text";
|
|
598
|
+
mimeType: "text/plain";
|
|
599
|
+
text: string;
|
|
600
|
+
title?: string | null | undefined;
|
|
601
|
+
} | {
|
|
570
602
|
type: "github_pr";
|
|
571
603
|
mimeType: "application/github-pr";
|
|
572
604
|
number: number;
|
|
@@ -582,11 +614,6 @@ export declare const SendAgentMessageSchema: z.ZodObject<{
|
|
|
582
614
|
title: string;
|
|
583
615
|
url: string;
|
|
584
616
|
body?: string | null | undefined;
|
|
585
|
-
} | {
|
|
586
|
-
type: "text";
|
|
587
|
-
mimeType: "text/plain";
|
|
588
|
-
text: string;
|
|
589
|
-
title?: string | null | undefined;
|
|
590
617
|
} | {
|
|
591
618
|
type: "review";
|
|
592
619
|
mimeType: "application/paseo-review";
|
|
@@ -756,6 +783,12 @@ export declare const SendAgentMessageRequestSchema: z.ZodObject<{
|
|
|
756
783
|
mimeType: z.ZodString;
|
|
757
784
|
}, z.core.$strip>>>;
|
|
758
785
|
attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
|
|
786
|
+
contextKind?: string | undefined;
|
|
787
|
+
type: "text";
|
|
788
|
+
mimeType: "text/plain";
|
|
789
|
+
text: string;
|
|
790
|
+
title?: string | null | undefined;
|
|
791
|
+
} | {
|
|
759
792
|
type: "github_pr";
|
|
760
793
|
mimeType: "application/github-pr";
|
|
761
794
|
number: number;
|
|
@@ -771,11 +804,6 @@ export declare const SendAgentMessageRequestSchema: z.ZodObject<{
|
|
|
771
804
|
title: string;
|
|
772
805
|
url: string;
|
|
773
806
|
body?: string | null | undefined;
|
|
774
|
-
} | {
|
|
775
|
-
type: "text";
|
|
776
|
-
mimeType: "text/plain";
|
|
777
|
-
text: string;
|
|
778
|
-
title?: string | null | undefined;
|
|
779
807
|
} | {
|
|
780
808
|
type: "review";
|
|
781
809
|
mimeType: "application/paseo-review";
|
|
@@ -826,6 +854,10 @@ export declare const DaemonGetPairingOfferRequestSchema: z.ZodObject<{
|
|
|
826
854
|
type: z.ZodLiteral<"daemon.get_pairing_offer.request">;
|
|
827
855
|
requestId: z.ZodString;
|
|
828
856
|
}, z.core.$strip>;
|
|
857
|
+
export declare const DiagnosticsRequestSchema: z.ZodObject<{
|
|
858
|
+
type: z.ZodLiteral<"diagnostics.request">;
|
|
859
|
+
requestId: z.ZodString;
|
|
860
|
+
}, z.core.$strip>;
|
|
829
861
|
export declare const GetDaemonConfigRequestMessageSchema: z.ZodObject<{
|
|
830
862
|
type: z.ZodLiteral<"get_daemon_config_request">;
|
|
831
863
|
requestId: z.ZodString;
|
|
@@ -1000,6 +1032,12 @@ export declare const CreateAgentRequestMessageSchema: z.ZodObject<{
|
|
|
1000
1032
|
mimeType: z.ZodString;
|
|
1001
1033
|
}, z.core.$strip>>>;
|
|
1002
1034
|
attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
|
|
1035
|
+
contextKind?: string | undefined;
|
|
1036
|
+
type: "text";
|
|
1037
|
+
mimeType: "text/plain";
|
|
1038
|
+
text: string;
|
|
1039
|
+
title?: string | null | undefined;
|
|
1040
|
+
} | {
|
|
1003
1041
|
type: "github_pr";
|
|
1004
1042
|
mimeType: "application/github-pr";
|
|
1005
1043
|
number: number;
|
|
@@ -1015,11 +1053,6 @@ export declare const CreateAgentRequestMessageSchema: z.ZodObject<{
|
|
|
1015
1053
|
title: string;
|
|
1016
1054
|
url: string;
|
|
1017
1055
|
body?: string | null | undefined;
|
|
1018
|
-
} | {
|
|
1019
|
-
type: "text";
|
|
1020
|
-
mimeType: "text/plain";
|
|
1021
|
-
text: string;
|
|
1022
|
-
title?: string | null | undefined;
|
|
1023
1056
|
} | {
|
|
1024
1057
|
type: "review";
|
|
1025
1058
|
mimeType: "application/paseo-review";
|
|
@@ -1188,6 +1221,10 @@ export declare const ShutdownServerRequestMessageSchema: z.ZodObject<{
|
|
|
1188
1221
|
type: z.ZodLiteral<"shutdown_server_request">;
|
|
1189
1222
|
requestId: z.ZodString;
|
|
1190
1223
|
}, z.core.$strip>;
|
|
1224
|
+
export declare const DaemonUpdateRequestMessageSchema: z.ZodObject<{
|
|
1225
|
+
type: z.ZodLiteral<"daemon.update.request">;
|
|
1226
|
+
requestId: z.ZodString;
|
|
1227
|
+
}, z.core.$strip>;
|
|
1191
1228
|
export declare const AgentTimelineCursorSchema: z.ZodObject<{
|
|
1192
1229
|
epoch: z.ZodString;
|
|
1193
1230
|
seq: z.ZodNumber;
|
|
@@ -1211,6 +1248,12 @@ export declare const FetchAgentTimelineRequestMessageSchema: z.ZodObject<{
|
|
|
1211
1248
|
canonical: "canonical";
|
|
1212
1249
|
}>>;
|
|
1213
1250
|
}, z.core.$strip>;
|
|
1251
|
+
export declare const AgentForkContextRequestMessageSchema: z.ZodObject<{
|
|
1252
|
+
type: z.ZodLiteral<"agent.fork_context.request">;
|
|
1253
|
+
agentId: z.ZodString;
|
|
1254
|
+
boundaryMessageId: z.ZodOptional<z.ZodString>;
|
|
1255
|
+
requestId: z.ZodString;
|
|
1256
|
+
}, z.core.$strip>;
|
|
1214
1257
|
export declare const SetAgentModeRequestMessageSchema: z.ZodObject<{
|
|
1215
1258
|
type: z.ZodLiteral<"set_agent_mode_request">;
|
|
1216
1259
|
agentId: z.ZodString;
|
|
@@ -1618,6 +1661,12 @@ export declare const PaseoWorktreeArchiveRequestSchema: z.ZodObject<{
|
|
|
1618
1661
|
export declare const FirstAgentContextSchema: z.ZodObject<{
|
|
1619
1662
|
prompt: z.ZodOptional<z.ZodString>;
|
|
1620
1663
|
attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
|
|
1664
|
+
contextKind?: string | undefined;
|
|
1665
|
+
type: "text";
|
|
1666
|
+
mimeType: "text/plain";
|
|
1667
|
+
text: string;
|
|
1668
|
+
title?: string | null | undefined;
|
|
1669
|
+
} | {
|
|
1621
1670
|
type: "github_pr";
|
|
1622
1671
|
mimeType: "application/github-pr";
|
|
1623
1672
|
number: number;
|
|
@@ -1633,11 +1682,6 @@ export declare const FirstAgentContextSchema: z.ZodObject<{
|
|
|
1633
1682
|
title: string;
|
|
1634
1683
|
url: string;
|
|
1635
1684
|
body?: string | null | undefined;
|
|
1636
|
-
} | {
|
|
1637
|
-
type: "text";
|
|
1638
|
-
mimeType: "text/plain";
|
|
1639
|
-
text: string;
|
|
1640
|
-
title?: string | null | undefined;
|
|
1641
1685
|
} | {
|
|
1642
1686
|
type: "review";
|
|
1643
1687
|
mimeType: "application/paseo-review";
|
|
@@ -1681,6 +1725,12 @@ export declare const CreatePaseoWorktreeRequestSchema: z.ZodObject<{
|
|
|
1681
1725
|
worktreeSlug: z.ZodOptional<z.ZodString>;
|
|
1682
1726
|
nameContext: z.ZodOptional<z.ZodString>;
|
|
1683
1727
|
attachments: z.ZodOptional<z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
|
|
1728
|
+
contextKind?: string | undefined;
|
|
1729
|
+
type: "text";
|
|
1730
|
+
mimeType: "text/plain";
|
|
1731
|
+
text: string;
|
|
1732
|
+
title?: string | null | undefined;
|
|
1733
|
+
} | {
|
|
1684
1734
|
type: "github_pr";
|
|
1685
1735
|
mimeType: "application/github-pr";
|
|
1686
1736
|
number: number;
|
|
@@ -1696,11 +1746,6 @@ export declare const CreatePaseoWorktreeRequestSchema: z.ZodObject<{
|
|
|
1696
1746
|
title: string;
|
|
1697
1747
|
url: string;
|
|
1698
1748
|
body?: string | null | undefined;
|
|
1699
|
-
} | {
|
|
1700
|
-
type: "text";
|
|
1701
|
-
mimeType: "text/plain";
|
|
1702
|
-
text: string;
|
|
1703
|
-
title?: string | null | undefined;
|
|
1704
1749
|
} | {
|
|
1705
1750
|
type: "review";
|
|
1706
1751
|
mimeType: "application/paseo-review";
|
|
@@ -1739,6 +1784,12 @@ export declare const CreatePaseoWorktreeRequestSchema: z.ZodObject<{
|
|
|
1739
1784
|
firstAgentContext: z.ZodOptional<z.ZodObject<{
|
|
1740
1785
|
prompt: z.ZodOptional<z.ZodString>;
|
|
1741
1786
|
attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
|
|
1787
|
+
contextKind?: string | undefined;
|
|
1788
|
+
type: "text";
|
|
1789
|
+
mimeType: "text/plain";
|
|
1790
|
+
text: string;
|
|
1791
|
+
title?: string | null | undefined;
|
|
1792
|
+
} | {
|
|
1742
1793
|
type: "github_pr";
|
|
1743
1794
|
mimeType: "application/github-pr";
|
|
1744
1795
|
number: number;
|
|
@@ -1754,11 +1805,6 @@ export declare const CreatePaseoWorktreeRequestSchema: z.ZodObject<{
|
|
|
1754
1805
|
title: string;
|
|
1755
1806
|
url: string;
|
|
1756
1807
|
body?: string | null | undefined;
|
|
1757
|
-
} | {
|
|
1758
|
-
type: "text";
|
|
1759
|
-
mimeType: "text/plain";
|
|
1760
|
-
text: string;
|
|
1761
|
-
title?: string | null | undefined;
|
|
1762
1808
|
} | {
|
|
1763
1809
|
type: "review";
|
|
1764
1810
|
mimeType: "application/paseo-review";
|
|
@@ -1845,6 +1891,12 @@ export declare const WorkspaceCreateRequestSchema: z.ZodObject<{
|
|
|
1845
1891
|
firstAgentContext: z.ZodOptional<z.ZodObject<{
|
|
1846
1892
|
prompt: z.ZodOptional<z.ZodString>;
|
|
1847
1893
|
attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
|
|
1894
|
+
contextKind?: string | undefined;
|
|
1895
|
+
type: "text";
|
|
1896
|
+
mimeType: "text/plain";
|
|
1897
|
+
text: string;
|
|
1898
|
+
title?: string | null | undefined;
|
|
1899
|
+
} | {
|
|
1848
1900
|
type: "github_pr";
|
|
1849
1901
|
mimeType: "application/github-pr";
|
|
1850
1902
|
number: number;
|
|
@@ -1860,11 +1912,6 @@ export declare const WorkspaceCreateRequestSchema: z.ZodObject<{
|
|
|
1860
1912
|
title: string;
|
|
1861
1913
|
url: string;
|
|
1862
1914
|
body?: string | null | undefined;
|
|
1863
|
-
} | {
|
|
1864
|
-
type: "text";
|
|
1865
|
-
mimeType: "text/plain";
|
|
1866
|
-
text: string;
|
|
1867
|
-
title?: string | null | undefined;
|
|
1868
1915
|
} | {
|
|
1869
1916
|
type: "review";
|
|
1870
1917
|
mimeType: "application/paseo-review";
|
|
@@ -2268,6 +2315,12 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2268
2315
|
mimeType: z.ZodString;
|
|
2269
2316
|
}, z.core.$strip>>>;
|
|
2270
2317
|
attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
|
|
2318
|
+
contextKind?: string | undefined;
|
|
2319
|
+
type: "text";
|
|
2320
|
+
mimeType: "text/plain";
|
|
2321
|
+
text: string;
|
|
2322
|
+
title?: string | null | undefined;
|
|
2323
|
+
} | {
|
|
2271
2324
|
type: "github_pr";
|
|
2272
2325
|
mimeType: "application/github-pr";
|
|
2273
2326
|
number: number;
|
|
@@ -2283,11 +2336,6 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2283
2336
|
title: string;
|
|
2284
2337
|
url: string;
|
|
2285
2338
|
body?: string | null | undefined;
|
|
2286
|
-
} | {
|
|
2287
|
-
type: "text";
|
|
2288
|
-
mimeType: "text/plain";
|
|
2289
|
-
text: string;
|
|
2290
|
-
title?: string | null | undefined;
|
|
2291
2339
|
} | {
|
|
2292
2340
|
type: "review";
|
|
2293
2341
|
mimeType: "application/paseo-review";
|
|
@@ -2334,6 +2382,9 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2334
2382
|
}, z.core.$strip>, z.ZodObject<{
|
|
2335
2383
|
type: z.ZodLiteral<"daemon.get_pairing_offer.request">;
|
|
2336
2384
|
requestId: z.ZodString;
|
|
2385
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2386
|
+
type: z.ZodLiteral<"diagnostics.request">;
|
|
2387
|
+
requestId: z.ZodString;
|
|
2337
2388
|
}, z.core.$strip>, z.ZodObject<{
|
|
2338
2389
|
type: z.ZodLiteral<"get_daemon_config_request">;
|
|
2339
2390
|
requestId: z.ZodString;
|
|
@@ -2474,6 +2525,12 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2474
2525
|
mimeType: z.ZodString;
|
|
2475
2526
|
}, z.core.$strip>>>;
|
|
2476
2527
|
attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
|
|
2528
|
+
contextKind?: string | undefined;
|
|
2529
|
+
type: "text";
|
|
2530
|
+
mimeType: "text/plain";
|
|
2531
|
+
text: string;
|
|
2532
|
+
title?: string | null | undefined;
|
|
2533
|
+
} | {
|
|
2477
2534
|
type: "github_pr";
|
|
2478
2535
|
mimeType: "application/github-pr";
|
|
2479
2536
|
number: number;
|
|
@@ -2489,11 +2546,6 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2489
2546
|
title: string;
|
|
2490
2547
|
url: string;
|
|
2491
2548
|
body?: string | null | undefined;
|
|
2492
|
-
} | {
|
|
2493
|
-
type: "text";
|
|
2494
|
-
mimeType: "text/plain";
|
|
2495
|
-
text: string;
|
|
2496
|
-
title?: string | null | undefined;
|
|
2497
2549
|
} | {
|
|
2498
2550
|
type: "review";
|
|
2499
2551
|
mimeType: "application/paseo-review";
|
|
@@ -2659,6 +2711,9 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2659
2711
|
type: z.ZodLiteral<"restart_server_request">;
|
|
2660
2712
|
reason: z.ZodOptional<z.ZodString>;
|
|
2661
2713
|
requestId: z.ZodString;
|
|
2714
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2715
|
+
type: z.ZodLiteral<"daemon.update.request">;
|
|
2716
|
+
requestId: z.ZodString;
|
|
2662
2717
|
}, z.core.$strip>, z.ZodObject<{
|
|
2663
2718
|
type: z.ZodLiteral<"fetch_agent_timeline_request">;
|
|
2664
2719
|
agentId: z.ZodString;
|
|
@@ -2677,6 +2732,11 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2677
2732
|
projected: "projected";
|
|
2678
2733
|
canonical: "canonical";
|
|
2679
2734
|
}>>;
|
|
2735
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2736
|
+
type: z.ZodLiteral<"agent.fork_context.request">;
|
|
2737
|
+
agentId: z.ZodString;
|
|
2738
|
+
boundaryMessageId: z.ZodOptional<z.ZodString>;
|
|
2739
|
+
requestId: z.ZodString;
|
|
2680
2740
|
}, z.core.$strip>, z.ZodObject<{
|
|
2681
2741
|
type: z.ZodLiteral<"set_agent_mode_request">;
|
|
2682
2742
|
agentId: z.ZodString;
|
|
@@ -2898,6 +2958,12 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2898
2958
|
worktreeSlug: z.ZodOptional<z.ZodString>;
|
|
2899
2959
|
nameContext: z.ZodOptional<z.ZodString>;
|
|
2900
2960
|
attachments: z.ZodOptional<z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
|
|
2961
|
+
contextKind?: string | undefined;
|
|
2962
|
+
type: "text";
|
|
2963
|
+
mimeType: "text/plain";
|
|
2964
|
+
text: string;
|
|
2965
|
+
title?: string | null | undefined;
|
|
2966
|
+
} | {
|
|
2901
2967
|
type: "github_pr";
|
|
2902
2968
|
mimeType: "application/github-pr";
|
|
2903
2969
|
number: number;
|
|
@@ -2913,11 +2979,6 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2913
2979
|
title: string;
|
|
2914
2980
|
url: string;
|
|
2915
2981
|
body?: string | null | undefined;
|
|
2916
|
-
} | {
|
|
2917
|
-
type: "text";
|
|
2918
|
-
mimeType: "text/plain";
|
|
2919
|
-
text: string;
|
|
2920
|
-
title?: string | null | undefined;
|
|
2921
2982
|
} | {
|
|
2922
2983
|
type: "review";
|
|
2923
2984
|
mimeType: "application/paseo-review";
|
|
@@ -2956,6 +3017,12 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2956
3017
|
firstAgentContext: z.ZodOptional<z.ZodObject<{
|
|
2957
3018
|
prompt: z.ZodOptional<z.ZodString>;
|
|
2958
3019
|
attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
|
|
3020
|
+
contextKind?: string | undefined;
|
|
3021
|
+
type: "text";
|
|
3022
|
+
mimeType: "text/plain";
|
|
3023
|
+
text: string;
|
|
3024
|
+
title?: string | null | undefined;
|
|
3025
|
+
} | {
|
|
2959
3026
|
type: "github_pr";
|
|
2960
3027
|
mimeType: "application/github-pr";
|
|
2961
3028
|
number: number;
|
|
@@ -2971,11 +3038,6 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
2971
3038
|
title: string;
|
|
2972
3039
|
url: string;
|
|
2973
3040
|
body?: string | null | undefined;
|
|
2974
|
-
} | {
|
|
2975
|
-
type: "text";
|
|
2976
|
-
mimeType: "text/plain";
|
|
2977
|
-
text: string;
|
|
2978
|
-
title?: string | null | undefined;
|
|
2979
3041
|
} | {
|
|
2980
3042
|
type: "review";
|
|
2981
3043
|
mimeType: "application/paseo-review";
|
|
@@ -3055,6 +3117,12 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
3055
3117
|
firstAgentContext: z.ZodOptional<z.ZodObject<{
|
|
3056
3118
|
prompt: z.ZodOptional<z.ZodString>;
|
|
3057
3119
|
attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
|
|
3120
|
+
contextKind?: string | undefined;
|
|
3121
|
+
type: "text";
|
|
3122
|
+
mimeType: "text/plain";
|
|
3123
|
+
text: string;
|
|
3124
|
+
title?: string | null | undefined;
|
|
3125
|
+
} | {
|
|
3058
3126
|
type: "github_pr";
|
|
3059
3127
|
mimeType: "application/github-pr";
|
|
3060
3128
|
number: number;
|
|
@@ -3070,11 +3138,6 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
3070
3138
|
title: string;
|
|
3071
3139
|
url: string;
|
|
3072
3140
|
body?: string | null | undefined;
|
|
3073
|
-
} | {
|
|
3074
|
-
type: "text";
|
|
3075
|
-
mimeType: "text/plain";
|
|
3076
|
-
text: string;
|
|
3077
|
-
title?: string | null | undefined;
|
|
3078
3141
|
} | {
|
|
3079
3142
|
type: "review";
|
|
3080
3143
|
mimeType: "application/paseo-review";
|
|
@@ -3609,6 +3672,9 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
3609
3672
|
worktreeRestore: z.ZodOptional<z.ZodBoolean>;
|
|
3610
3673
|
providerUsageList: z.ZodOptional<z.ZodBoolean>;
|
|
3611
3674
|
agentDetach: z.ZodOptional<z.ZodBoolean>;
|
|
3675
|
+
daemonDiagnostics: z.ZodOptional<z.ZodBoolean>;
|
|
3676
|
+
daemonSelfUpdate: z.ZodOptional<z.ZodBoolean>;
|
|
3677
|
+
agentForkContext: z.ZodOptional<z.ZodBoolean>;
|
|
3612
3678
|
}, z.core.$strip>>;
|
|
3613
3679
|
}, z.core.$loose>, z.ZodTransform<{
|
|
3614
3680
|
hostname: string | null;
|
|
@@ -3642,6 +3708,9 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
3642
3708
|
worktreeRestore?: boolean | undefined;
|
|
3643
3709
|
providerUsageList?: boolean | undefined;
|
|
3644
3710
|
agentDetach?: boolean | undefined;
|
|
3711
|
+
daemonDiagnostics?: boolean | undefined;
|
|
3712
|
+
daemonSelfUpdate?: boolean | undefined;
|
|
3713
|
+
agentForkContext?: boolean | undefined;
|
|
3645
3714
|
} | undefined;
|
|
3646
3715
|
}, {
|
|
3647
3716
|
[x: string]: unknown;
|
|
@@ -3676,6 +3745,9 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
3676
3745
|
worktreeRestore?: boolean | undefined;
|
|
3677
3746
|
providerUsageList?: boolean | undefined;
|
|
3678
3747
|
agentDetach?: boolean | undefined;
|
|
3748
|
+
daemonDiagnostics?: boolean | undefined;
|
|
3749
|
+
daemonSelfUpdate?: boolean | undefined;
|
|
3750
|
+
agentForkContext?: boolean | undefined;
|
|
3679
3751
|
} | undefined;
|
|
3680
3752
|
}>>;
|
|
3681
3753
|
export declare const StatusMessageSchema: z.ZodObject<{
|
|
@@ -7167,6 +7239,35 @@ export declare const FetchAgentTimelineResponseMessageSchema: z.ZodObject<{
|
|
|
7167
7239
|
error: z.ZodNullable<z.ZodString>;
|
|
7168
7240
|
}, z.core.$strip>;
|
|
7169
7241
|
}, z.core.$strip>;
|
|
7242
|
+
export declare const AgentForkContextResponseMessageSchema: z.ZodObject<{
|
|
7243
|
+
type: z.ZodLiteral<"agent.fork_context.response">;
|
|
7244
|
+
payload: z.ZodObject<{
|
|
7245
|
+
requestId: z.ZodString;
|
|
7246
|
+
agentId: z.ZodString;
|
|
7247
|
+
attachment: z.ZodNullable<z.ZodPipe<z.ZodObject<{
|
|
7248
|
+
type: z.ZodLiteral<"text">;
|
|
7249
|
+
mimeType: z.ZodLiteral<"text/plain">;
|
|
7250
|
+
contextKind: z.ZodOptional<z.ZodString>;
|
|
7251
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7252
|
+
text: z.ZodString;
|
|
7253
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
7254
|
+
contextKind?: string | undefined;
|
|
7255
|
+
type: "text";
|
|
7256
|
+
mimeType: "text/plain";
|
|
7257
|
+
text: string;
|
|
7258
|
+
title?: string | null | undefined;
|
|
7259
|
+
}, {
|
|
7260
|
+
type: "text";
|
|
7261
|
+
mimeType: "text/plain";
|
|
7262
|
+
text: string;
|
|
7263
|
+
contextKind?: string | undefined;
|
|
7264
|
+
title?: string | null | undefined;
|
|
7265
|
+
}>>>;
|
|
7266
|
+
itemCount: z.ZodNumber;
|
|
7267
|
+
boundaryMessageId: z.ZodNullable<z.ZodString>;
|
|
7268
|
+
error: z.ZodNullable<z.ZodString>;
|
|
7269
|
+
}, z.core.$strip>;
|
|
7270
|
+
}, z.core.$strip>;
|
|
7170
7271
|
export declare const CancelAgentResponseMessageSchema: z.ZodObject<{
|
|
7171
7272
|
type: z.ZodLiteral<"cancel_agent_response">;
|
|
7172
7273
|
payload: z.ZodObject<{
|
|
@@ -7889,6 +7990,13 @@ export declare const DaemonGetPairingOfferResponseSchema: z.ZodObject<{
|
|
|
7889
7990
|
relayEnabled: z.ZodBoolean;
|
|
7890
7991
|
}, z.core.$loose>;
|
|
7891
7992
|
}, z.core.$strip>;
|
|
7993
|
+
export declare const DiagnosticsResponseSchema: z.ZodObject<{
|
|
7994
|
+
type: z.ZodLiteral<"diagnostics.response">;
|
|
7995
|
+
payload: z.ZodObject<{
|
|
7996
|
+
requestId: z.ZodString;
|
|
7997
|
+
diagnostic: z.ZodString;
|
|
7998
|
+
}, z.core.$loose>;
|
|
7999
|
+
}, z.core.$strip>;
|
|
7892
8000
|
export declare const SetDaemonConfigResponseMessageSchema: z.ZodObject<{
|
|
7893
8001
|
type: z.ZodLiteral<"set_daemon_config_response">;
|
|
7894
8002
|
payload: z.ZodObject<{
|
|
@@ -10070,6 +10178,30 @@ export declare const TerminalAttentionRequiredSchema: z.ZodObject<{
|
|
|
10070
10178
|
shouldNotify: z.ZodBoolean;
|
|
10071
10179
|
}, z.core.$strip>;
|
|
10072
10180
|
}, z.core.$strip>;
|
|
10181
|
+
export declare const DaemonUpdateResponseSchema: z.ZodObject<{
|
|
10182
|
+
type: z.ZodLiteral<"daemon.update.response">;
|
|
10183
|
+
payload: z.ZodObject<{
|
|
10184
|
+
requestId: z.ZodString;
|
|
10185
|
+
success: z.ZodBoolean;
|
|
10186
|
+
error: z.ZodNullable<z.ZodString>;
|
|
10187
|
+
previousVersion: z.ZodNullable<z.ZodString>;
|
|
10188
|
+
newVersion: z.ZodNullable<z.ZodString>;
|
|
10189
|
+
}, z.core.$strip>;
|
|
10190
|
+
}, z.core.$strip>;
|
|
10191
|
+
export type DaemonUpdateResponse = z.infer<typeof DaemonUpdateResponseSchema>;
|
|
10192
|
+
export declare const DaemonUpdateProgressMessageSchema: z.ZodObject<{
|
|
10193
|
+
type: z.ZodLiteral<"daemon.update.progress">;
|
|
10194
|
+
payload: z.ZodObject<{
|
|
10195
|
+
requestId: z.ZodString;
|
|
10196
|
+
phase: z.ZodEnum<{
|
|
10197
|
+
starting: "starting";
|
|
10198
|
+
downloading: "downloading";
|
|
10199
|
+
installing: "installing";
|
|
10200
|
+
complete: "complete";
|
|
10201
|
+
}>;
|
|
10202
|
+
}, z.core.$strip>;
|
|
10203
|
+
}, z.core.$strip>;
|
|
10204
|
+
export type DaemonUpdateProgressMessage = z.infer<typeof DaemonUpdateProgressMessageSchema>;
|
|
10073
10205
|
export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10074
10206
|
type: z.ZodLiteral<"activity_log">;
|
|
10075
10207
|
payload: z.ZodObject<{
|
|
@@ -12460,6 +12592,34 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
12460
12592
|
}, z.core.$strip>>;
|
|
12461
12593
|
error: z.ZodNullable<z.ZodString>;
|
|
12462
12594
|
}, z.core.$strip>;
|
|
12595
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12596
|
+
type: z.ZodLiteral<"agent.fork_context.response">;
|
|
12597
|
+
payload: z.ZodObject<{
|
|
12598
|
+
requestId: z.ZodString;
|
|
12599
|
+
agentId: z.ZodString;
|
|
12600
|
+
attachment: z.ZodNullable<z.ZodPipe<z.ZodObject<{
|
|
12601
|
+
type: z.ZodLiteral<"text">;
|
|
12602
|
+
mimeType: z.ZodLiteral<"text/plain">;
|
|
12603
|
+
contextKind: z.ZodOptional<z.ZodString>;
|
|
12604
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12605
|
+
text: z.ZodString;
|
|
12606
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
12607
|
+
contextKind?: string | undefined;
|
|
12608
|
+
type: "text";
|
|
12609
|
+
mimeType: "text/plain";
|
|
12610
|
+
text: string;
|
|
12611
|
+
title?: string | null | undefined;
|
|
12612
|
+
}, {
|
|
12613
|
+
type: "text";
|
|
12614
|
+
mimeType: "text/plain";
|
|
12615
|
+
text: string;
|
|
12616
|
+
contextKind?: string | undefined;
|
|
12617
|
+
title?: string | null | undefined;
|
|
12618
|
+
}>>>;
|
|
12619
|
+
itemCount: z.ZodNumber;
|
|
12620
|
+
boundaryMessageId: z.ZodNullable<z.ZodString>;
|
|
12621
|
+
error: z.ZodNullable<z.ZodString>;
|
|
12622
|
+
}, z.core.$strip>;
|
|
12463
12623
|
}, z.core.$strip>, z.ZodObject<{
|
|
12464
12624
|
type: z.ZodLiteral<"cancel_agent_response">;
|
|
12465
12625
|
payload: z.ZodObject<{
|
|
@@ -13074,6 +13234,12 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
13074
13234
|
qr: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13075
13235
|
relayEnabled: z.ZodBoolean;
|
|
13076
13236
|
}, z.core.$loose>;
|
|
13237
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13238
|
+
type: z.ZodLiteral<"diagnostics.response">;
|
|
13239
|
+
payload: z.ZodObject<{
|
|
13240
|
+
requestId: z.ZodString;
|
|
13241
|
+
diagnostic: z.ZodString;
|
|
13242
|
+
}, z.core.$loose>;
|
|
13077
13243
|
}, z.core.$strip>, z.ZodObject<{
|
|
13078
13244
|
type: z.ZodLiteral<"get_daemon_config_response">;
|
|
13079
13245
|
payload: z.ZodObject<{
|
|
@@ -16053,6 +16219,26 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
16053
16219
|
}, z.core.$strip>>;
|
|
16054
16220
|
error: z.ZodNullable<z.ZodString>;
|
|
16055
16221
|
}, z.core.$strip>;
|
|
16222
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16223
|
+
type: z.ZodLiteral<"daemon.update.progress">;
|
|
16224
|
+
payload: z.ZodObject<{
|
|
16225
|
+
requestId: z.ZodString;
|
|
16226
|
+
phase: z.ZodEnum<{
|
|
16227
|
+
starting: "starting";
|
|
16228
|
+
downloading: "downloading";
|
|
16229
|
+
installing: "installing";
|
|
16230
|
+
complete: "complete";
|
|
16231
|
+
}>;
|
|
16232
|
+
}, z.core.$strip>;
|
|
16233
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16234
|
+
type: z.ZodLiteral<"daemon.update.response">;
|
|
16235
|
+
payload: z.ZodObject<{
|
|
16236
|
+
requestId: z.ZodString;
|
|
16237
|
+
success: z.ZodBoolean;
|
|
16238
|
+
error: z.ZodNullable<z.ZodString>;
|
|
16239
|
+
previousVersion: z.ZodNullable<z.ZodString>;
|
|
16240
|
+
newVersion: z.ZodNullable<z.ZodString>;
|
|
16241
|
+
}, z.core.$strip>;
|
|
16056
16242
|
}, z.core.$strip>], "type">;
|
|
16057
16243
|
export type SessionOutboundMessage = z.infer<typeof SessionOutboundMessageSchema>;
|
|
16058
16244
|
export type ActivityLogMessage = z.infer<typeof ActivityLogMessageSchema>;
|
|
@@ -16093,6 +16279,7 @@ export type LegacyOpenInEditorResponseMessage = z.infer<typeof LegacyOpenInEdito
|
|
|
16093
16279
|
export type ArchiveWorkspaceResponseMessage = z.infer<typeof ArchiveWorkspaceResponseMessageSchema>;
|
|
16094
16280
|
export type FetchAgentResponseMessage = z.infer<typeof FetchAgentResponseMessageSchema>;
|
|
16095
16281
|
export type FetchAgentTimelineResponseMessage = z.infer<typeof FetchAgentTimelineResponseMessageSchema>;
|
|
16282
|
+
export type AgentForkContextResponseMessage = z.infer<typeof AgentForkContextResponseMessageSchema>;
|
|
16096
16283
|
export type CancelAgentResponseMessage = z.infer<typeof CancelAgentResponseMessageSchema>;
|
|
16097
16284
|
export type SendAgentMessageResponseMessage = z.infer<typeof SendAgentMessageResponseMessageSchema>;
|
|
16098
16285
|
export type SetVoiceModeResponseMessage = z.infer<typeof SetVoiceModeResponseMessageSchema>;
|
|
@@ -16121,6 +16308,7 @@ export type ListProviderFeaturesResponseMessage = z.infer<typeof ListProviderFea
|
|
|
16121
16308
|
export type ListAvailableProvidersResponse = z.infer<typeof ListAvailableProvidersResponseSchema>;
|
|
16122
16309
|
export type DaemonGetStatusResponse = z.infer<typeof DaemonGetStatusResponseSchema>;
|
|
16123
16310
|
export type DaemonGetPairingOfferResponse = z.infer<typeof DaemonGetPairingOfferResponseSchema>;
|
|
16311
|
+
export type DiagnosticsResponse = z.infer<typeof DiagnosticsResponseSchema>;
|
|
16124
16312
|
export type GetProvidersSnapshotResponseMessage = z.infer<typeof GetProvidersSnapshotResponseMessageSchema>;
|
|
16125
16313
|
export type ProvidersSnapshotUpdateMessage = z.infer<typeof ProvidersSnapshotUpdateMessageSchema>;
|
|
16126
16314
|
export type RefreshProvidersSnapshotResponseMessage = z.infer<typeof RefreshProvidersSnapshotResponseMessageSchema>;
|
|
@@ -16160,6 +16348,7 @@ export type FetchAgentHistoryRequestMessage = z.infer<typeof FetchAgentHistoryRe
|
|
|
16160
16348
|
export type FetchRecentProviderSessionsRequestMessage = z.infer<typeof FetchRecentProviderSessionsRequestMessageSchema>;
|
|
16161
16349
|
export type FetchWorkspacesRequestMessage = z.infer<typeof FetchWorkspacesRequestMessageSchema>;
|
|
16162
16350
|
export type FetchAgentRequestMessage = z.infer<typeof FetchAgentRequestMessageSchema>;
|
|
16351
|
+
export type AgentForkContextRequestMessage = z.infer<typeof AgentForkContextRequestMessageSchema>;
|
|
16163
16352
|
export type SendAgentMessageRequest = z.infer<typeof SendAgentMessageRequestSchema>;
|
|
16164
16353
|
export type WaitForFinishRequest = z.infer<typeof WaitForFinishRequestSchema>;
|
|
16165
16354
|
export type DictationStreamStartMessage = z.infer<typeof DictationStreamStartMessageSchema>;
|
|
@@ -16522,6 +16711,12 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
16522
16711
|
mimeType: z.ZodString;
|
|
16523
16712
|
}, z.core.$strip>>>;
|
|
16524
16713
|
attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
|
|
16714
|
+
contextKind?: string | undefined;
|
|
16715
|
+
type: "text";
|
|
16716
|
+
mimeType: "text/plain";
|
|
16717
|
+
text: string;
|
|
16718
|
+
title?: string | null | undefined;
|
|
16719
|
+
} | {
|
|
16525
16720
|
type: "github_pr";
|
|
16526
16721
|
mimeType: "application/github-pr";
|
|
16527
16722
|
number: number;
|
|
@@ -16537,11 +16732,6 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
16537
16732
|
title: string;
|
|
16538
16733
|
url: string;
|
|
16539
16734
|
body?: string | null | undefined;
|
|
16540
|
-
} | {
|
|
16541
|
-
type: "text";
|
|
16542
|
-
mimeType: "text/plain";
|
|
16543
|
-
text: string;
|
|
16544
|
-
title?: string | null | undefined;
|
|
16545
16735
|
} | {
|
|
16546
16736
|
type: "review";
|
|
16547
16737
|
mimeType: "application/paseo-review";
|
|
@@ -16588,6 +16778,9 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
16588
16778
|
}, z.core.$strip>, z.ZodObject<{
|
|
16589
16779
|
type: z.ZodLiteral<"daemon.get_pairing_offer.request">;
|
|
16590
16780
|
requestId: z.ZodString;
|
|
16781
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16782
|
+
type: z.ZodLiteral<"diagnostics.request">;
|
|
16783
|
+
requestId: z.ZodString;
|
|
16591
16784
|
}, z.core.$strip>, z.ZodObject<{
|
|
16592
16785
|
type: z.ZodLiteral<"get_daemon_config_request">;
|
|
16593
16786
|
requestId: z.ZodString;
|
|
@@ -16728,6 +16921,12 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
16728
16921
|
mimeType: z.ZodString;
|
|
16729
16922
|
}, z.core.$strip>>>;
|
|
16730
16923
|
attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
|
|
16924
|
+
contextKind?: string | undefined;
|
|
16925
|
+
type: "text";
|
|
16926
|
+
mimeType: "text/plain";
|
|
16927
|
+
text: string;
|
|
16928
|
+
title?: string | null | undefined;
|
|
16929
|
+
} | {
|
|
16731
16930
|
type: "github_pr";
|
|
16732
16931
|
mimeType: "application/github-pr";
|
|
16733
16932
|
number: number;
|
|
@@ -16743,11 +16942,6 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
16743
16942
|
title: string;
|
|
16744
16943
|
url: string;
|
|
16745
16944
|
body?: string | null | undefined;
|
|
16746
|
-
} | {
|
|
16747
|
-
type: "text";
|
|
16748
|
-
mimeType: "text/plain";
|
|
16749
|
-
text: string;
|
|
16750
|
-
title?: string | null | undefined;
|
|
16751
16945
|
} | {
|
|
16752
16946
|
type: "review";
|
|
16753
16947
|
mimeType: "application/paseo-review";
|
|
@@ -16913,6 +17107,9 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
16913
17107
|
type: z.ZodLiteral<"restart_server_request">;
|
|
16914
17108
|
reason: z.ZodOptional<z.ZodString>;
|
|
16915
17109
|
requestId: z.ZodString;
|
|
17110
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
17111
|
+
type: z.ZodLiteral<"daemon.update.request">;
|
|
17112
|
+
requestId: z.ZodString;
|
|
16916
17113
|
}, z.core.$strip>, z.ZodObject<{
|
|
16917
17114
|
type: z.ZodLiteral<"fetch_agent_timeline_request">;
|
|
16918
17115
|
agentId: z.ZodString;
|
|
@@ -16931,6 +17128,11 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
16931
17128
|
projected: "projected";
|
|
16932
17129
|
canonical: "canonical";
|
|
16933
17130
|
}>>;
|
|
17131
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
17132
|
+
type: z.ZodLiteral<"agent.fork_context.request">;
|
|
17133
|
+
agentId: z.ZodString;
|
|
17134
|
+
boundaryMessageId: z.ZodOptional<z.ZodString>;
|
|
17135
|
+
requestId: z.ZodString;
|
|
16934
17136
|
}, z.core.$strip>, z.ZodObject<{
|
|
16935
17137
|
type: z.ZodLiteral<"set_agent_mode_request">;
|
|
16936
17138
|
agentId: z.ZodString;
|
|
@@ -17152,6 +17354,12 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
17152
17354
|
worktreeSlug: z.ZodOptional<z.ZodString>;
|
|
17153
17355
|
nameContext: z.ZodOptional<z.ZodString>;
|
|
17154
17356
|
attachments: z.ZodOptional<z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
|
|
17357
|
+
contextKind?: string | undefined;
|
|
17358
|
+
type: "text";
|
|
17359
|
+
mimeType: "text/plain";
|
|
17360
|
+
text: string;
|
|
17361
|
+
title?: string | null | undefined;
|
|
17362
|
+
} | {
|
|
17155
17363
|
type: "github_pr";
|
|
17156
17364
|
mimeType: "application/github-pr";
|
|
17157
17365
|
number: number;
|
|
@@ -17167,11 +17375,6 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
17167
17375
|
title: string;
|
|
17168
17376
|
url: string;
|
|
17169
17377
|
body?: string | null | undefined;
|
|
17170
|
-
} | {
|
|
17171
|
-
type: "text";
|
|
17172
|
-
mimeType: "text/plain";
|
|
17173
|
-
text: string;
|
|
17174
|
-
title?: string | null | undefined;
|
|
17175
17378
|
} | {
|
|
17176
17379
|
type: "review";
|
|
17177
17380
|
mimeType: "application/paseo-review";
|
|
@@ -17210,6 +17413,12 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
17210
17413
|
firstAgentContext: z.ZodOptional<z.ZodObject<{
|
|
17211
17414
|
prompt: z.ZodOptional<z.ZodString>;
|
|
17212
17415
|
attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
|
|
17416
|
+
contextKind?: string | undefined;
|
|
17417
|
+
type: "text";
|
|
17418
|
+
mimeType: "text/plain";
|
|
17419
|
+
text: string;
|
|
17420
|
+
title?: string | null | undefined;
|
|
17421
|
+
} | {
|
|
17213
17422
|
type: "github_pr";
|
|
17214
17423
|
mimeType: "application/github-pr";
|
|
17215
17424
|
number: number;
|
|
@@ -17225,11 +17434,6 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
17225
17434
|
title: string;
|
|
17226
17435
|
url: string;
|
|
17227
17436
|
body?: string | null | undefined;
|
|
17228
|
-
} | {
|
|
17229
|
-
type: "text";
|
|
17230
|
-
mimeType: "text/plain";
|
|
17231
|
-
text: string;
|
|
17232
|
-
title?: string | null | undefined;
|
|
17233
17437
|
} | {
|
|
17234
17438
|
type: "review";
|
|
17235
17439
|
mimeType: "application/paseo-review";
|
|
@@ -17309,6 +17513,12 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
17309
17513
|
firstAgentContext: z.ZodOptional<z.ZodObject<{
|
|
17310
17514
|
prompt: z.ZodOptional<z.ZodString>;
|
|
17311
17515
|
attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
|
|
17516
|
+
contextKind?: string | undefined;
|
|
17517
|
+
type: "text";
|
|
17518
|
+
mimeType: "text/plain";
|
|
17519
|
+
text: string;
|
|
17520
|
+
title?: string | null | undefined;
|
|
17521
|
+
} | {
|
|
17312
17522
|
type: "github_pr";
|
|
17313
17523
|
mimeType: "application/github-pr";
|
|
17314
17524
|
number: number;
|
|
@@ -17324,11 +17534,6 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
17324
17534
|
title: string;
|
|
17325
17535
|
url: string;
|
|
17326
17536
|
body?: string | null | undefined;
|
|
17327
|
-
} | {
|
|
17328
|
-
type: "text";
|
|
17329
|
-
mimeType: "text/plain";
|
|
17330
|
-
text: string;
|
|
17331
|
-
title?: string | null | undefined;
|
|
17332
17537
|
} | {
|
|
17333
17538
|
type: "review";
|
|
17334
17539
|
mimeType: "application/paseo-review";
|
|
@@ -20088,6 +20293,34 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
20088
20293
|
}, z.core.$strip>>;
|
|
20089
20294
|
error: z.ZodNullable<z.ZodString>;
|
|
20090
20295
|
}, z.core.$strip>;
|
|
20296
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
20297
|
+
type: z.ZodLiteral<"agent.fork_context.response">;
|
|
20298
|
+
payload: z.ZodObject<{
|
|
20299
|
+
requestId: z.ZodString;
|
|
20300
|
+
agentId: z.ZodString;
|
|
20301
|
+
attachment: z.ZodNullable<z.ZodPipe<z.ZodObject<{
|
|
20302
|
+
type: z.ZodLiteral<"text">;
|
|
20303
|
+
mimeType: z.ZodLiteral<"text/plain">;
|
|
20304
|
+
contextKind: z.ZodOptional<z.ZodString>;
|
|
20305
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20306
|
+
text: z.ZodString;
|
|
20307
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
20308
|
+
contextKind?: string | undefined;
|
|
20309
|
+
type: "text";
|
|
20310
|
+
mimeType: "text/plain";
|
|
20311
|
+
text: string;
|
|
20312
|
+
title?: string | null | undefined;
|
|
20313
|
+
}, {
|
|
20314
|
+
type: "text";
|
|
20315
|
+
mimeType: "text/plain";
|
|
20316
|
+
text: string;
|
|
20317
|
+
contextKind?: string | undefined;
|
|
20318
|
+
title?: string | null | undefined;
|
|
20319
|
+
}>>>;
|
|
20320
|
+
itemCount: z.ZodNumber;
|
|
20321
|
+
boundaryMessageId: z.ZodNullable<z.ZodString>;
|
|
20322
|
+
error: z.ZodNullable<z.ZodString>;
|
|
20323
|
+
}, z.core.$strip>;
|
|
20091
20324
|
}, z.core.$strip>, z.ZodObject<{
|
|
20092
20325
|
type: z.ZodLiteral<"cancel_agent_response">;
|
|
20093
20326
|
payload: z.ZodObject<{
|
|
@@ -20702,6 +20935,12 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
20702
20935
|
qr: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20703
20936
|
relayEnabled: z.ZodBoolean;
|
|
20704
20937
|
}, z.core.$loose>;
|
|
20938
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
20939
|
+
type: z.ZodLiteral<"diagnostics.response">;
|
|
20940
|
+
payload: z.ZodObject<{
|
|
20941
|
+
requestId: z.ZodString;
|
|
20942
|
+
diagnostic: z.ZodString;
|
|
20943
|
+
}, z.core.$loose>;
|
|
20705
20944
|
}, z.core.$strip>, z.ZodObject<{
|
|
20706
20945
|
type: z.ZodLiteral<"get_daemon_config_response">;
|
|
20707
20946
|
payload: z.ZodObject<{
|
|
@@ -23681,6 +23920,26 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
23681
23920
|
}, z.core.$strip>>;
|
|
23682
23921
|
error: z.ZodNullable<z.ZodString>;
|
|
23683
23922
|
}, z.core.$strip>;
|
|
23923
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23924
|
+
type: z.ZodLiteral<"daemon.update.progress">;
|
|
23925
|
+
payload: z.ZodObject<{
|
|
23926
|
+
requestId: z.ZodString;
|
|
23927
|
+
phase: z.ZodEnum<{
|
|
23928
|
+
starting: "starting";
|
|
23929
|
+
downloading: "downloading";
|
|
23930
|
+
installing: "installing";
|
|
23931
|
+
complete: "complete";
|
|
23932
|
+
}>;
|
|
23933
|
+
}, z.core.$strip>;
|
|
23934
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23935
|
+
type: z.ZodLiteral<"daemon.update.response">;
|
|
23936
|
+
payload: z.ZodObject<{
|
|
23937
|
+
requestId: z.ZodString;
|
|
23938
|
+
success: z.ZodBoolean;
|
|
23939
|
+
error: z.ZodNullable<z.ZodString>;
|
|
23940
|
+
previousVersion: z.ZodNullable<z.ZodString>;
|
|
23941
|
+
newVersion: z.ZodNullable<z.ZodString>;
|
|
23942
|
+
}, z.core.$strip>;
|
|
23684
23943
|
}, z.core.$strip>], "type">;
|
|
23685
23944
|
}, z.core.$strip>;
|
|
23686
23945
|
export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -23877,6 +24136,12 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
23877
24136
|
mimeType: z.ZodString;
|
|
23878
24137
|
}, z.core.$strip>>>;
|
|
23879
24138
|
attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
|
|
24139
|
+
contextKind?: string | undefined;
|
|
24140
|
+
type: "text";
|
|
24141
|
+
mimeType: "text/plain";
|
|
24142
|
+
text: string;
|
|
24143
|
+
title?: string | null | undefined;
|
|
24144
|
+
} | {
|
|
23880
24145
|
type: "github_pr";
|
|
23881
24146
|
mimeType: "application/github-pr";
|
|
23882
24147
|
number: number;
|
|
@@ -23892,11 +24157,6 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
23892
24157
|
title: string;
|
|
23893
24158
|
url: string;
|
|
23894
24159
|
body?: string | null | undefined;
|
|
23895
|
-
} | {
|
|
23896
|
-
type: "text";
|
|
23897
|
-
mimeType: "text/plain";
|
|
23898
|
-
text: string;
|
|
23899
|
-
title?: string | null | undefined;
|
|
23900
24160
|
} | {
|
|
23901
24161
|
type: "review";
|
|
23902
24162
|
mimeType: "application/paseo-review";
|
|
@@ -23943,6 +24203,9 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
23943
24203
|
}, z.core.$strip>, z.ZodObject<{
|
|
23944
24204
|
type: z.ZodLiteral<"daemon.get_pairing_offer.request">;
|
|
23945
24205
|
requestId: z.ZodString;
|
|
24206
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24207
|
+
type: z.ZodLiteral<"diagnostics.request">;
|
|
24208
|
+
requestId: z.ZodString;
|
|
23946
24209
|
}, z.core.$strip>, z.ZodObject<{
|
|
23947
24210
|
type: z.ZodLiteral<"get_daemon_config_request">;
|
|
23948
24211
|
requestId: z.ZodString;
|
|
@@ -24083,6 +24346,12 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
24083
24346
|
mimeType: z.ZodString;
|
|
24084
24347
|
}, z.core.$strip>>>;
|
|
24085
24348
|
attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
|
|
24349
|
+
contextKind?: string | undefined;
|
|
24350
|
+
type: "text";
|
|
24351
|
+
mimeType: "text/plain";
|
|
24352
|
+
text: string;
|
|
24353
|
+
title?: string | null | undefined;
|
|
24354
|
+
} | {
|
|
24086
24355
|
type: "github_pr";
|
|
24087
24356
|
mimeType: "application/github-pr";
|
|
24088
24357
|
number: number;
|
|
@@ -24098,11 +24367,6 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
24098
24367
|
title: string;
|
|
24099
24368
|
url: string;
|
|
24100
24369
|
body?: string | null | undefined;
|
|
24101
|
-
} | {
|
|
24102
|
-
type: "text";
|
|
24103
|
-
mimeType: "text/plain";
|
|
24104
|
-
text: string;
|
|
24105
|
-
title?: string | null | undefined;
|
|
24106
24370
|
} | {
|
|
24107
24371
|
type: "review";
|
|
24108
24372
|
mimeType: "application/paseo-review";
|
|
@@ -24268,6 +24532,9 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
24268
24532
|
type: z.ZodLiteral<"restart_server_request">;
|
|
24269
24533
|
reason: z.ZodOptional<z.ZodString>;
|
|
24270
24534
|
requestId: z.ZodString;
|
|
24535
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24536
|
+
type: z.ZodLiteral<"daemon.update.request">;
|
|
24537
|
+
requestId: z.ZodString;
|
|
24271
24538
|
}, z.core.$strip>, z.ZodObject<{
|
|
24272
24539
|
type: z.ZodLiteral<"fetch_agent_timeline_request">;
|
|
24273
24540
|
agentId: z.ZodString;
|
|
@@ -24286,6 +24553,11 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
24286
24553
|
projected: "projected";
|
|
24287
24554
|
canonical: "canonical";
|
|
24288
24555
|
}>>;
|
|
24556
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24557
|
+
type: z.ZodLiteral<"agent.fork_context.request">;
|
|
24558
|
+
agentId: z.ZodString;
|
|
24559
|
+
boundaryMessageId: z.ZodOptional<z.ZodString>;
|
|
24560
|
+
requestId: z.ZodString;
|
|
24289
24561
|
}, z.core.$strip>, z.ZodObject<{
|
|
24290
24562
|
type: z.ZodLiteral<"set_agent_mode_request">;
|
|
24291
24563
|
agentId: z.ZodString;
|
|
@@ -24507,6 +24779,12 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
24507
24779
|
worktreeSlug: z.ZodOptional<z.ZodString>;
|
|
24508
24780
|
nameContext: z.ZodOptional<z.ZodString>;
|
|
24509
24781
|
attachments: z.ZodOptional<z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
|
|
24782
|
+
contextKind?: string | undefined;
|
|
24783
|
+
type: "text";
|
|
24784
|
+
mimeType: "text/plain";
|
|
24785
|
+
text: string;
|
|
24786
|
+
title?: string | null | undefined;
|
|
24787
|
+
} | {
|
|
24510
24788
|
type: "github_pr";
|
|
24511
24789
|
mimeType: "application/github-pr";
|
|
24512
24790
|
number: number;
|
|
@@ -24522,11 +24800,6 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
24522
24800
|
title: string;
|
|
24523
24801
|
url: string;
|
|
24524
24802
|
body?: string | null | undefined;
|
|
24525
|
-
} | {
|
|
24526
|
-
type: "text";
|
|
24527
|
-
mimeType: "text/plain";
|
|
24528
|
-
text: string;
|
|
24529
|
-
title?: string | null | undefined;
|
|
24530
24803
|
} | {
|
|
24531
24804
|
type: "review";
|
|
24532
24805
|
mimeType: "application/paseo-review";
|
|
@@ -24565,6 +24838,12 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
24565
24838
|
firstAgentContext: z.ZodOptional<z.ZodObject<{
|
|
24566
24839
|
prompt: z.ZodOptional<z.ZodString>;
|
|
24567
24840
|
attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
|
|
24841
|
+
contextKind?: string | undefined;
|
|
24842
|
+
type: "text";
|
|
24843
|
+
mimeType: "text/plain";
|
|
24844
|
+
text: string;
|
|
24845
|
+
title?: string | null | undefined;
|
|
24846
|
+
} | {
|
|
24568
24847
|
type: "github_pr";
|
|
24569
24848
|
mimeType: "application/github-pr";
|
|
24570
24849
|
number: number;
|
|
@@ -24580,11 +24859,6 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
24580
24859
|
title: string;
|
|
24581
24860
|
url: string;
|
|
24582
24861
|
body?: string | null | undefined;
|
|
24583
|
-
} | {
|
|
24584
|
-
type: "text";
|
|
24585
|
-
mimeType: "text/plain";
|
|
24586
|
-
text: string;
|
|
24587
|
-
title?: string | null | undefined;
|
|
24588
24862
|
} | {
|
|
24589
24863
|
type: "review";
|
|
24590
24864
|
mimeType: "application/paseo-review";
|
|
@@ -24664,6 +24938,12 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
24664
24938
|
firstAgentContext: z.ZodOptional<z.ZodObject<{
|
|
24665
24939
|
prompt: z.ZodOptional<z.ZodString>;
|
|
24666
24940
|
attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
|
|
24941
|
+
contextKind?: string | undefined;
|
|
24942
|
+
type: "text";
|
|
24943
|
+
mimeType: "text/plain";
|
|
24944
|
+
text: string;
|
|
24945
|
+
title?: string | null | undefined;
|
|
24946
|
+
} | {
|
|
24667
24947
|
type: "github_pr";
|
|
24668
24948
|
mimeType: "application/github-pr";
|
|
24669
24949
|
number: number;
|
|
@@ -24679,11 +24959,6 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
24679
24959
|
title: string;
|
|
24680
24960
|
url: string;
|
|
24681
24961
|
body?: string | null | undefined;
|
|
24682
|
-
} | {
|
|
24683
|
-
type: "text";
|
|
24684
|
-
mimeType: "text/plain";
|
|
24685
|
-
text: string;
|
|
24686
|
-
title?: string | null | undefined;
|
|
24687
24962
|
} | {
|
|
24688
24963
|
type: "review";
|
|
24689
24964
|
mimeType: "application/paseo-review";
|
|
@@ -27445,6 +27720,34 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
27445
27720
|
}, z.core.$strip>>;
|
|
27446
27721
|
error: z.ZodNullable<z.ZodString>;
|
|
27447
27722
|
}, z.core.$strip>;
|
|
27723
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27724
|
+
type: z.ZodLiteral<"agent.fork_context.response">;
|
|
27725
|
+
payload: z.ZodObject<{
|
|
27726
|
+
requestId: z.ZodString;
|
|
27727
|
+
agentId: z.ZodString;
|
|
27728
|
+
attachment: z.ZodNullable<z.ZodPipe<z.ZodObject<{
|
|
27729
|
+
type: z.ZodLiteral<"text">;
|
|
27730
|
+
mimeType: z.ZodLiteral<"text/plain">;
|
|
27731
|
+
contextKind: z.ZodOptional<z.ZodString>;
|
|
27732
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27733
|
+
text: z.ZodString;
|
|
27734
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
27735
|
+
contextKind?: string | undefined;
|
|
27736
|
+
type: "text";
|
|
27737
|
+
mimeType: "text/plain";
|
|
27738
|
+
text: string;
|
|
27739
|
+
title?: string | null | undefined;
|
|
27740
|
+
}, {
|
|
27741
|
+
type: "text";
|
|
27742
|
+
mimeType: "text/plain";
|
|
27743
|
+
text: string;
|
|
27744
|
+
contextKind?: string | undefined;
|
|
27745
|
+
title?: string | null | undefined;
|
|
27746
|
+
}>>>;
|
|
27747
|
+
itemCount: z.ZodNumber;
|
|
27748
|
+
boundaryMessageId: z.ZodNullable<z.ZodString>;
|
|
27749
|
+
error: z.ZodNullable<z.ZodString>;
|
|
27750
|
+
}, z.core.$strip>;
|
|
27448
27751
|
}, z.core.$strip>, z.ZodObject<{
|
|
27449
27752
|
type: z.ZodLiteral<"cancel_agent_response">;
|
|
27450
27753
|
payload: z.ZodObject<{
|
|
@@ -28059,6 +28362,12 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
28059
28362
|
qr: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28060
28363
|
relayEnabled: z.ZodBoolean;
|
|
28061
28364
|
}, z.core.$loose>;
|
|
28365
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
28366
|
+
type: z.ZodLiteral<"diagnostics.response">;
|
|
28367
|
+
payload: z.ZodObject<{
|
|
28368
|
+
requestId: z.ZodString;
|
|
28369
|
+
diagnostic: z.ZodString;
|
|
28370
|
+
}, z.core.$loose>;
|
|
28062
28371
|
}, z.core.$strip>, z.ZodObject<{
|
|
28063
28372
|
type: z.ZodLiteral<"get_daemon_config_response">;
|
|
28064
28373
|
payload: z.ZodObject<{
|
|
@@ -31038,6 +31347,26 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
31038
31347
|
}, z.core.$strip>>;
|
|
31039
31348
|
error: z.ZodNullable<z.ZodString>;
|
|
31040
31349
|
}, z.core.$strip>;
|
|
31350
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31351
|
+
type: z.ZodLiteral<"daemon.update.progress">;
|
|
31352
|
+
payload: z.ZodObject<{
|
|
31353
|
+
requestId: z.ZodString;
|
|
31354
|
+
phase: z.ZodEnum<{
|
|
31355
|
+
starting: "starting";
|
|
31356
|
+
downloading: "downloading";
|
|
31357
|
+
installing: "installing";
|
|
31358
|
+
complete: "complete";
|
|
31359
|
+
}>;
|
|
31360
|
+
}, z.core.$strip>;
|
|
31361
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31362
|
+
type: z.ZodLiteral<"daemon.update.response">;
|
|
31363
|
+
payload: z.ZodObject<{
|
|
31364
|
+
requestId: z.ZodString;
|
|
31365
|
+
success: z.ZodBoolean;
|
|
31366
|
+
error: z.ZodNullable<z.ZodString>;
|
|
31367
|
+
previousVersion: z.ZodNullable<z.ZodString>;
|
|
31368
|
+
newVersion: z.ZodNullable<z.ZodString>;
|
|
31369
|
+
}, z.core.$strip>;
|
|
31041
31370
|
}, z.core.$strip>], "type">;
|
|
31042
31371
|
}, z.core.$strip>], "type">;
|
|
31043
31372
|
export type WSInboundMessage = z.infer<typeof WSInboundMessageSchema>;
|
package/dist/messages.js
CHANGED
|
@@ -669,12 +669,18 @@ export const GitHubIssueAttachmentSchema = z.object({
|
|
|
669
669
|
url: z.string(),
|
|
670
670
|
body: z.string().nullable().optional(),
|
|
671
671
|
});
|
|
672
|
-
export const TextAttachmentSchema = z
|
|
672
|
+
export const TextAttachmentSchema = z
|
|
673
|
+
.object({
|
|
673
674
|
type: z.literal("text"),
|
|
674
675
|
mimeType: z.literal("text/plain"),
|
|
676
|
+
contextKind: z.string().optional(),
|
|
675
677
|
title: z.string().nullable().optional(),
|
|
676
678
|
text: z.string(),
|
|
677
|
-
})
|
|
679
|
+
})
|
|
680
|
+
.transform(({ contextKind, ...attachment }) => ({
|
|
681
|
+
...attachment,
|
|
682
|
+
...(contextKind === "chat_history" ? { contextKind } : {}),
|
|
683
|
+
}));
|
|
678
684
|
export const ReviewAttachmentContextLineSchema = z.object({
|
|
679
685
|
oldLineNumber: z.number().int().positive().nullable(),
|
|
680
686
|
newLineNumber: z.number().int().positive().nullable(),
|
|
@@ -859,6 +865,10 @@ export const DaemonGetPairingOfferRequestSchema = z.object({
|
|
|
859
865
|
type: z.literal("daemon.get_pairing_offer.request"),
|
|
860
866
|
requestId: z.string(),
|
|
861
867
|
});
|
|
868
|
+
export const DiagnosticsRequestSchema = z.object({
|
|
869
|
+
type: z.literal("diagnostics.request"),
|
|
870
|
+
requestId: z.string(),
|
|
871
|
+
});
|
|
862
872
|
export const GetDaemonConfigRequestMessageSchema = z.object({
|
|
863
873
|
type: z.literal("get_daemon_config_request"),
|
|
864
874
|
requestId: z.string(),
|
|
@@ -1017,6 +1027,10 @@ export const ShutdownServerRequestMessageSchema = z.object({
|
|
|
1017
1027
|
type: z.literal("shutdown_server_request"),
|
|
1018
1028
|
requestId: z.string(),
|
|
1019
1029
|
});
|
|
1030
|
+
export const DaemonUpdateRequestMessageSchema = z.object({
|
|
1031
|
+
type: z.literal("daemon.update.request"),
|
|
1032
|
+
requestId: z.string(),
|
|
1033
|
+
});
|
|
1020
1034
|
export const AgentTimelineCursorSchema = z.object({
|
|
1021
1035
|
epoch: z.string(),
|
|
1022
1036
|
seq: z.number().int().nonnegative(),
|
|
@@ -1032,6 +1046,12 @@ export const FetchAgentTimelineRequestMessageSchema = z.object({
|
|
|
1032
1046
|
// Default should be projected for app timeline loading.
|
|
1033
1047
|
projection: z.enum(["projected", "canonical"]).optional(),
|
|
1034
1048
|
});
|
|
1049
|
+
export const AgentForkContextRequestMessageSchema = z.object({
|
|
1050
|
+
type: z.literal("agent.fork_context.request"),
|
|
1051
|
+
agentId: z.string(),
|
|
1052
|
+
boundaryMessageId: z.string().optional(),
|
|
1053
|
+
requestId: z.string(),
|
|
1054
|
+
});
|
|
1035
1055
|
export const SetAgentModeRequestMessageSchema = z.object({
|
|
1036
1056
|
type: z.literal("set_agent_mode_request"),
|
|
1037
1057
|
agentId: z.string(),
|
|
@@ -1696,6 +1716,7 @@ export const SessionInboundMessageSchema = z.discriminatedUnion("type", [
|
|
|
1696
1716
|
WaitForFinishRequestSchema,
|
|
1697
1717
|
DaemonGetStatusRequestSchema,
|
|
1698
1718
|
DaemonGetPairingOfferRequestSchema,
|
|
1719
|
+
DiagnosticsRequestSchema,
|
|
1699
1720
|
GetDaemonConfigRequestMessageSchema,
|
|
1700
1721
|
SetDaemonConfigRequestMessageSchema,
|
|
1701
1722
|
ReadProjectConfigRequestMessageSchema,
|
|
@@ -1719,7 +1740,9 @@ export const SessionInboundMessageSchema = z.discriminatedUnion("type", [
|
|
|
1719
1740
|
CancelAgentRequestMessageSchema,
|
|
1720
1741
|
ShutdownServerRequestMessageSchema,
|
|
1721
1742
|
RestartServerRequestMessageSchema,
|
|
1743
|
+
DaemonUpdateRequestMessageSchema,
|
|
1722
1744
|
FetchAgentTimelineRequestMessageSchema,
|
|
1745
|
+
AgentForkContextRequestMessageSchema,
|
|
1723
1746
|
SetAgentModeRequestMessageSchema,
|
|
1724
1747
|
SetAgentModelRequestMessageSchema,
|
|
1725
1748
|
SetAgentThinkingRequestMessageSchema,
|
|
@@ -1970,6 +1993,12 @@ export const ServerInfoStatusPayloadSchema = z
|
|
|
1970
1993
|
providerUsageList: z.boolean().optional(),
|
|
1971
1994
|
// COMPAT(agentDetach): added in v0.1.98, remove gate after 2026-12-19 once daemon floor >= v0.1.98.
|
|
1972
1995
|
agentDetach: z.boolean().optional(),
|
|
1996
|
+
// COMPAT(daemonDiagnostics): added in v0.1.100, remove gate after 2026-12-25 once daemon floor >= v0.1.100.
|
|
1997
|
+
daemonDiagnostics: z.boolean().optional(),
|
|
1998
|
+
// COMPAT(daemonSelfUpdate): added in v0.1.93, remove gate after 2026-12-13.
|
|
1999
|
+
daemonSelfUpdate: z.boolean().optional(),
|
|
2000
|
+
// COMPAT(agentForkContext): added in v0.1.102, remove gate after 2026-12-28.
|
|
2001
|
+
agentForkContext: z.boolean().optional(),
|
|
1973
2002
|
})
|
|
1974
2003
|
.optional(),
|
|
1975
2004
|
})
|
|
@@ -2504,6 +2533,17 @@ export const FetchAgentTimelineResponseMessageSchema = z.object({
|
|
|
2504
2533
|
error: z.string().nullable(),
|
|
2505
2534
|
}),
|
|
2506
2535
|
});
|
|
2536
|
+
export const AgentForkContextResponseMessageSchema = z.object({
|
|
2537
|
+
type: z.literal("agent.fork_context.response"),
|
|
2538
|
+
payload: z.object({
|
|
2539
|
+
requestId: z.string(),
|
|
2540
|
+
agentId: z.string(),
|
|
2541
|
+
attachment: TextAttachmentSchema.nullable(),
|
|
2542
|
+
itemCount: z.number().int().nonnegative(),
|
|
2543
|
+
boundaryMessageId: z.string().nullable(),
|
|
2544
|
+
error: z.string().nullable(),
|
|
2545
|
+
}),
|
|
2546
|
+
});
|
|
2507
2547
|
export const CancelAgentResponseMessageSchema = z.object({
|
|
2508
2548
|
type: z.literal("cancel_agent_response"),
|
|
2509
2549
|
payload: z.object({
|
|
@@ -2614,6 +2654,15 @@ export const DaemonGetPairingOfferResponseSchema = z.object({
|
|
|
2614
2654
|
})
|
|
2615
2655
|
.passthrough(),
|
|
2616
2656
|
});
|
|
2657
|
+
export const DiagnosticsResponseSchema = z.object({
|
|
2658
|
+
type: z.literal("diagnostics.response"),
|
|
2659
|
+
payload: z
|
|
2660
|
+
.object({
|
|
2661
|
+
requestId: z.string(),
|
|
2662
|
+
diagnostic: z.string(),
|
|
2663
|
+
})
|
|
2664
|
+
.passthrough(),
|
|
2665
|
+
});
|
|
2617
2666
|
export const SetDaemonConfigResponseMessageSchema = z.object({
|
|
2618
2667
|
type: z.literal("set_daemon_config_response"),
|
|
2619
2668
|
payload: z
|
|
@@ -3550,6 +3599,23 @@ export const TerminalAttentionRequiredSchema = z.object({
|
|
|
3550
3599
|
shouldNotify: z.boolean(),
|
|
3551
3600
|
}),
|
|
3552
3601
|
});
|
|
3602
|
+
export const DaemonUpdateResponseSchema = z.object({
|
|
3603
|
+
type: z.literal("daemon.update.response"),
|
|
3604
|
+
payload: z.object({
|
|
3605
|
+
requestId: z.string(),
|
|
3606
|
+
success: z.boolean(),
|
|
3607
|
+
error: z.string().nullable(),
|
|
3608
|
+
previousVersion: z.string().nullable(),
|
|
3609
|
+
newVersion: z.string().nullable(),
|
|
3610
|
+
}),
|
|
3611
|
+
});
|
|
3612
|
+
export const DaemonUpdateProgressMessageSchema = z.object({
|
|
3613
|
+
type: z.literal("daemon.update.progress"),
|
|
3614
|
+
payload: z.object({
|
|
3615
|
+
requestId: z.string(),
|
|
3616
|
+
phase: z.enum(["starting", "downloading", "installing", "complete"]),
|
|
3617
|
+
}),
|
|
3618
|
+
});
|
|
3553
3619
|
export const SessionOutboundMessageSchema = z.discriminatedUnion("type", [
|
|
3554
3620
|
ActivityLogMessageSchema,
|
|
3555
3621
|
AssistantChunkMessageSchema,
|
|
@@ -3584,6 +3650,7 @@ export const SessionOutboundMessageSchema = z.discriminatedUnion("type", [
|
|
|
3584
3650
|
ArchiveWorkspaceResponseMessageSchema,
|
|
3585
3651
|
FetchAgentResponseMessageSchema,
|
|
3586
3652
|
FetchAgentTimelineResponseMessageSchema,
|
|
3653
|
+
AgentForkContextResponseMessageSchema,
|
|
3587
3654
|
CancelAgentResponseMessageSchema,
|
|
3588
3655
|
ClearAgentAttentionResponseMessageSchema,
|
|
3589
3656
|
WorkspaceCreateResponseSchema,
|
|
@@ -3592,6 +3659,7 @@ export const SessionOutboundMessageSchema = z.discriminatedUnion("type", [
|
|
|
3592
3659
|
SetVoiceModeResponseMessageSchema,
|
|
3593
3660
|
DaemonGetStatusResponseSchema,
|
|
3594
3661
|
DaemonGetPairingOfferResponseSchema,
|
|
3662
|
+
DiagnosticsResponseSchema,
|
|
3595
3663
|
GetDaemonConfigResponseMessageSchema,
|
|
3596
3664
|
SetDaemonConfigResponseMessageSchema,
|
|
3597
3665
|
ReadProjectConfigResponseMessageSchema,
|
|
@@ -3684,6 +3752,8 @@ export const SessionOutboundMessageSchema = z.discriminatedUnion("type", [
|
|
|
3684
3752
|
LoopInspectResponseSchema,
|
|
3685
3753
|
LoopLogsResponseSchema,
|
|
3686
3754
|
LoopStopResponseSchema,
|
|
3755
|
+
DaemonUpdateProgressMessageSchema,
|
|
3756
|
+
DaemonUpdateResponseSchema,
|
|
3687
3757
|
]);
|
|
3688
3758
|
// ============================================================================
|
|
3689
3759
|
// WebSocket Level Messages (wraps session messages)
|