@getpaseo/server 0.1.13 → 0.1.15

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.
Files changed (65) hide show
  1. package/dist/server/client/daemon-client.d.ts +84 -77
  2. package/dist/server/client/daemon-client.d.ts.map +1 -1
  3. package/dist/server/client/daemon-client.js +252 -265
  4. package/dist/server/client/daemon-client.js.map +1 -1
  5. package/dist/server/server/agent/agent-manager.d.ts +2 -1
  6. package/dist/server/server/agent/agent-manager.d.ts.map +1 -1
  7. package/dist/server/server/agent/agent-manager.js +23 -0
  8. package/dist/server/server/agent/agent-manager.js.map +1 -1
  9. package/dist/server/server/agent/agent-sdk-types.d.ts +0 -15
  10. package/dist/server/server/agent/agent-sdk-types.d.ts.map +1 -1
  11. package/dist/server/server/agent/providers/claude-agent.d.ts.map +1 -1
  12. package/dist/server/server/agent/providers/claude-agent.js +263 -35
  13. package/dist/server/server/agent/providers/claude-agent.js.map +1 -1
  14. package/dist/server/server/agent/providers/codex-app-server-agent.d.ts.map +1 -1
  15. package/dist/server/server/agent/providers/codex-app-server-agent.js +85 -36
  16. package/dist/server/server/agent/providers/codex-app-server-agent.js.map +1 -1
  17. package/dist/server/server/bootstrap.d.ts.map +1 -1
  18. package/dist/server/server/bootstrap.js +3 -1
  19. package/dist/server/server/bootstrap.js.map +1 -1
  20. package/dist/server/server/daemon-version.d.ts +5 -0
  21. package/dist/server/server/daemon-version.d.ts.map +1 -0
  22. package/dist/server/server/daemon-version.js +22 -0
  23. package/dist/server/server/daemon-version.js.map +1 -0
  24. package/dist/server/server/dictation/dictation-stream-manager.d.ts +1 -0
  25. package/dist/server/server/dictation/dictation-stream-manager.d.ts.map +1 -1
  26. package/dist/server/server/dictation/dictation-stream-manager.js +32 -1
  27. package/dist/server/server/dictation/dictation-stream-manager.js.map +1 -1
  28. package/dist/server/server/package-version.d.ts +13 -0
  29. package/dist/server/server/package-version.d.ts.map +1 -0
  30. package/dist/server/server/package-version.js +47 -0
  31. package/dist/server/server/package-version.js.map +1 -0
  32. package/dist/server/server/persisted-config.d.ts +2 -2
  33. package/dist/server/server/pid-lock.d.ts.map +1 -1
  34. package/dist/server/server/pid-lock.js +16 -2
  35. package/dist/server/server/pid-lock.js.map +1 -1
  36. package/dist/server/server/session.d.ts +20 -20
  37. package/dist/server/server/session.d.ts.map +1 -1
  38. package/dist/server/server/session.js +871 -798
  39. package/dist/server/server/session.js.map +1 -1
  40. package/dist/server/server/websocket-server.d.ts +5 -1
  41. package/dist/server/server/websocket-server.d.ts.map +1 -1
  42. package/dist/server/server/websocket-server.js +27 -16
  43. package/dist/server/server/websocket-server.js.map +1 -1
  44. package/dist/server/shared/agent-attention-notification.d.ts +40 -0
  45. package/dist/server/shared/agent-attention-notification.d.ts.map +1 -0
  46. package/dist/server/shared/agent-attention-notification.js +130 -0
  47. package/dist/server/shared/agent-attention-notification.js.map +1 -0
  48. package/dist/server/shared/messages.d.ts +886 -410
  49. package/dist/server/shared/messages.d.ts.map +1 -1
  50. package/dist/server/shared/messages.js +272 -267
  51. package/dist/server/shared/messages.js.map +1 -1
  52. package/dist/server/utils/checkout-git.d.ts +3 -0
  53. package/dist/server/utils/checkout-git.d.ts.map +1 -1
  54. package/dist/server/utils/checkout-git.js +102 -23
  55. package/dist/server/utils/checkout-git.js.map +1 -1
  56. package/dist/server/utils/directory-suggestions.d.ts +15 -0
  57. package/dist/server/utils/directory-suggestions.d.ts.map +1 -1
  58. package/dist/server/utils/directory-suggestions.js +348 -21
  59. package/dist/server/utils/directory-suggestions.js.map +1 -1
  60. package/dist/server/utils/worktree-metadata.d.ts +4 -4
  61. package/dist/server/utils/worktree.d.ts +1 -0
  62. package/dist/server/utils/worktree.d.ts.map +1 -1
  63. package/dist/server/utils/worktree.js +41 -77
  64. package/dist/server/utils/worktree.js.map +1 -1
  65. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
- import { z } from "zod";
2
- import type { AgentCapabilityFlags, AgentModelDefinition, AgentMode, AgentPermissionRequest, AgentPermissionResponse, AgentPersistenceHandle, AgentRuntimeInfo, AgentTimelineItem, AgentUsage } from "../server/agent/agent-sdk-types.js";
1
+ import { z } from 'zod';
2
+ import type { AgentCapabilityFlags, AgentModelDefinition, AgentMode, AgentPermissionRequest, AgentPermissionResponse, AgentPersistenceHandle, AgentRuntimeInfo, AgentTimelineItem, AgentUsage } from '../server/agent/agent-sdk-types.js';
3
3
  export declare const AgentStatusSchema: z.ZodEnum<["initializing", "idle", "running", "error", "closed"]>;
4
4
  export declare const AgentPermissionResponseSchema: z.ZodType<AgentPermissionResponse>;
5
5
  export declare const AgentPermissionRequestPayloadSchema: z.ZodType<AgentPermissionRequest>;
@@ -106,18 +106,69 @@ export declare const AgentStreamEventPayloadSchema: z.ZodDiscriminatedUnion<"typ
106
106
  reason: z.ZodEnum<["finished", "error", "permission"]>;
107
107
  timestamp: z.ZodString;
108
108
  shouldNotify: z.ZodBoolean;
109
+ notification: z.ZodOptional<z.ZodObject<{
110
+ title: z.ZodString;
111
+ body: z.ZodString;
112
+ data: z.ZodObject<{
113
+ serverId: z.ZodString;
114
+ agentId: z.ZodString;
115
+ reason: z.ZodEnum<["finished", "error", "permission"]>;
116
+ }, "strip", z.ZodTypeAny, {
117
+ agentId: string;
118
+ reason: "finished" | "error" | "permission";
119
+ serverId: string;
120
+ }, {
121
+ agentId: string;
122
+ reason: "finished" | "error" | "permission";
123
+ serverId: string;
124
+ }>;
125
+ }, "strip", z.ZodTypeAny, {
126
+ title: string;
127
+ body: string;
128
+ data: {
129
+ agentId: string;
130
+ reason: "finished" | "error" | "permission";
131
+ serverId: string;
132
+ };
133
+ }, {
134
+ title: string;
135
+ body: string;
136
+ data: {
137
+ agentId: string;
138
+ reason: "finished" | "error" | "permission";
139
+ serverId: string;
140
+ };
141
+ }>>;
109
142
  }, "strip", z.ZodTypeAny, {
110
143
  reason: "finished" | "error" | "permission";
111
144
  provider: string;
112
145
  type: "attention_required";
113
146
  timestamp: string;
114
147
  shouldNotify: boolean;
148
+ notification?: {
149
+ title: string;
150
+ body: string;
151
+ data: {
152
+ agentId: string;
153
+ reason: "finished" | "error" | "permission";
154
+ serverId: string;
155
+ };
156
+ } | undefined;
115
157
  }, {
116
158
  reason: "finished" | "error" | "permission";
117
159
  provider: string;
118
160
  type: "attention_required";
119
161
  timestamp: string;
120
162
  shouldNotify: boolean;
163
+ notification?: {
164
+ title: string;
165
+ body: string;
166
+ data: {
167
+ agentId: string;
168
+ reason: "finished" | "error" | "permission";
169
+ serverId: string;
170
+ };
171
+ } | undefined;
121
172
  }>]>;
122
173
  export declare const AgentSnapshotPayloadSchema: z.ZodObject<{
123
174
  id: z.ZodString;
@@ -1550,15 +1601,15 @@ export declare const CheckoutPrCreateRequestSchema: z.ZodObject<{
1550
1601
  type: "checkout_pr_create_request";
1551
1602
  requestId: string;
1552
1603
  title?: string | undefined;
1553
- baseRef?: string | undefined;
1554
1604
  body?: string | undefined;
1605
+ baseRef?: string | undefined;
1555
1606
  }, {
1556
1607
  cwd: string;
1557
1608
  type: "checkout_pr_create_request";
1558
1609
  requestId: string;
1559
1610
  title?: string | undefined;
1560
- baseRef?: string | undefined;
1561
1611
  body?: string | undefined;
1612
+ baseRef?: string | undefined;
1562
1613
  }>;
1563
1614
  export declare const CheckoutPrStatusRequestSchema: z.ZodObject<{
1564
1615
  type: z.ZodLiteral<"checkout_pr_status_request">;
@@ -1611,18 +1662,27 @@ export declare const BranchSuggestionsRequestSchema: z.ZodObject<{
1611
1662
  export declare const DirectorySuggestionsRequestSchema: z.ZodObject<{
1612
1663
  type: z.ZodLiteral<"directory_suggestions_request">;
1613
1664
  query: z.ZodString;
1665
+ cwd: z.ZodOptional<z.ZodString>;
1666
+ includeFiles: z.ZodOptional<z.ZodBoolean>;
1667
+ includeDirectories: z.ZodOptional<z.ZodBoolean>;
1614
1668
  limit: z.ZodOptional<z.ZodNumber>;
1615
1669
  requestId: z.ZodString;
1616
1670
  }, "strip", z.ZodTypeAny, {
1617
1671
  type: "directory_suggestions_request";
1618
1672
  query: string;
1619
1673
  requestId: string;
1674
+ cwd?: string | undefined;
1620
1675
  limit?: number | undefined;
1676
+ includeFiles?: boolean | undefined;
1677
+ includeDirectories?: boolean | undefined;
1621
1678
  }, {
1622
1679
  type: "directory_suggestions_request";
1623
1680
  query: string;
1624
1681
  requestId: string;
1682
+ cwd?: string | undefined;
1625
1683
  limit?: number | undefined;
1684
+ includeFiles?: boolean | undefined;
1685
+ includeDirectories?: boolean | undefined;
1626
1686
  }>;
1627
1687
  export declare const PaseoWorktreeListRequestSchema: z.ZodObject<{
1628
1688
  type: z.ZodLiteral<"paseo_worktree_list_request">;
@@ -1755,34 +1815,48 @@ export declare const PingMessageSchema: z.ZodObject<{
1755
1815
  export declare const ListCommandsRequestSchema: z.ZodObject<{
1756
1816
  type: z.ZodLiteral<"list_commands_request">;
1757
1817
  agentId: z.ZodString;
1818
+ draftConfig: z.ZodOptional<z.ZodObject<{
1819
+ provider: z.ZodEnum<[string, ...string[]]>;
1820
+ cwd: z.ZodString;
1821
+ modeId: z.ZodOptional<z.ZodString>;
1822
+ model: z.ZodOptional<z.ZodString>;
1823
+ thinkingOptionId: z.ZodOptional<z.ZodString>;
1824
+ }, "strip", z.ZodTypeAny, {
1825
+ provider: string;
1826
+ cwd: string;
1827
+ modeId?: string | undefined;
1828
+ model?: string | undefined;
1829
+ thinkingOptionId?: string | undefined;
1830
+ }, {
1831
+ provider: string;
1832
+ cwd: string;
1833
+ modeId?: string | undefined;
1834
+ model?: string | undefined;
1835
+ thinkingOptionId?: string | undefined;
1836
+ }>>;
1758
1837
  requestId: z.ZodString;
1759
1838
  }, "strip", z.ZodTypeAny, {
1760
1839
  agentId: string;
1761
1840
  type: "list_commands_request";
1762
1841
  requestId: string;
1842
+ draftConfig?: {
1843
+ provider: string;
1844
+ cwd: string;
1845
+ modeId?: string | undefined;
1846
+ model?: string | undefined;
1847
+ thinkingOptionId?: string | undefined;
1848
+ } | undefined;
1763
1849
  }, {
1764
1850
  agentId: string;
1765
1851
  type: "list_commands_request";
1766
1852
  requestId: string;
1767
- }>;
1768
- export declare const ExecuteCommandRequestSchema: z.ZodObject<{
1769
- type: z.ZodLiteral<"execute_command_request">;
1770
- agentId: z.ZodString;
1771
- commandName: z.ZodString;
1772
- args: z.ZodOptional<z.ZodString>;
1773
- requestId: z.ZodString;
1774
- }, "strip", z.ZodTypeAny, {
1775
- agentId: string;
1776
- type: "execute_command_request";
1777
- requestId: string;
1778
- commandName: string;
1779
- args?: string | undefined;
1780
- }, {
1781
- agentId: string;
1782
- type: "execute_command_request";
1783
- requestId: string;
1784
- commandName: string;
1785
- args?: string | undefined;
1853
+ draftConfig?: {
1854
+ provider: string;
1855
+ cwd: string;
1856
+ modeId?: string | undefined;
1857
+ model?: string | undefined;
1858
+ thinkingOptionId?: string | undefined;
1859
+ } | undefined;
1786
1860
  }>;
1787
1861
  export declare const RegisterPushTokenMessageSchema: z.ZodObject<{
1788
1862
  type: z.ZodLiteral<"register_push_token">;
@@ -3053,15 +3127,15 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
3053
3127
  type: "checkout_pr_create_request";
3054
3128
  requestId: string;
3055
3129
  title?: string | undefined;
3056
- baseRef?: string | undefined;
3057
3130
  body?: string | undefined;
3131
+ baseRef?: string | undefined;
3058
3132
  }, {
3059
3133
  cwd: string;
3060
3134
  type: "checkout_pr_create_request";
3061
3135
  requestId: string;
3062
3136
  title?: string | undefined;
3063
- baseRef?: string | undefined;
3064
3137
  body?: string | undefined;
3138
+ baseRef?: string | undefined;
3065
3139
  }>, z.ZodObject<{
3066
3140
  type: z.ZodLiteral<"checkout_pr_status_request">;
3067
3141
  cwd: z.ZodString;
@@ -3110,18 +3184,27 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
3110
3184
  }>, z.ZodObject<{
3111
3185
  type: z.ZodLiteral<"directory_suggestions_request">;
3112
3186
  query: z.ZodString;
3187
+ cwd: z.ZodOptional<z.ZodString>;
3188
+ includeFiles: z.ZodOptional<z.ZodBoolean>;
3189
+ includeDirectories: z.ZodOptional<z.ZodBoolean>;
3113
3190
  limit: z.ZodOptional<z.ZodNumber>;
3114
3191
  requestId: z.ZodString;
3115
3192
  }, "strip", z.ZodTypeAny, {
3116
3193
  type: "directory_suggestions_request";
3117
3194
  query: string;
3118
3195
  requestId: string;
3196
+ cwd?: string | undefined;
3119
3197
  limit?: number | undefined;
3198
+ includeFiles?: boolean | undefined;
3199
+ includeDirectories?: boolean | undefined;
3120
3200
  }, {
3121
3201
  type: "directory_suggestions_request";
3122
3202
  query: string;
3123
3203
  requestId: string;
3204
+ cwd?: string | undefined;
3124
3205
  limit?: number | undefined;
3206
+ includeFiles?: boolean | undefined;
3207
+ includeDirectories?: boolean | undefined;
3125
3208
  }>, z.ZodObject<{
3126
3209
  type: z.ZodLiteral<"paseo_worktree_list_request">;
3127
3210
  cwd: z.ZodOptional<z.ZodString>;
@@ -3245,33 +3328,48 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
3245
3328
  }>, z.ZodObject<{
3246
3329
  type: z.ZodLiteral<"list_commands_request">;
3247
3330
  agentId: z.ZodString;
3331
+ draftConfig: z.ZodOptional<z.ZodObject<{
3332
+ provider: z.ZodEnum<[string, ...string[]]>;
3333
+ cwd: z.ZodString;
3334
+ modeId: z.ZodOptional<z.ZodString>;
3335
+ model: z.ZodOptional<z.ZodString>;
3336
+ thinkingOptionId: z.ZodOptional<z.ZodString>;
3337
+ }, "strip", z.ZodTypeAny, {
3338
+ provider: string;
3339
+ cwd: string;
3340
+ modeId?: string | undefined;
3341
+ model?: string | undefined;
3342
+ thinkingOptionId?: string | undefined;
3343
+ }, {
3344
+ provider: string;
3345
+ cwd: string;
3346
+ modeId?: string | undefined;
3347
+ model?: string | undefined;
3348
+ thinkingOptionId?: string | undefined;
3349
+ }>>;
3248
3350
  requestId: z.ZodString;
3249
3351
  }, "strip", z.ZodTypeAny, {
3250
3352
  agentId: string;
3251
3353
  type: "list_commands_request";
3252
3354
  requestId: string;
3355
+ draftConfig?: {
3356
+ provider: string;
3357
+ cwd: string;
3358
+ modeId?: string | undefined;
3359
+ model?: string | undefined;
3360
+ thinkingOptionId?: string | undefined;
3361
+ } | undefined;
3253
3362
  }, {
3254
3363
  agentId: string;
3255
3364
  type: "list_commands_request";
3256
3365
  requestId: string;
3257
- }>, z.ZodObject<{
3258
- type: z.ZodLiteral<"execute_command_request">;
3259
- agentId: z.ZodString;
3260
- commandName: z.ZodString;
3261
- args: z.ZodOptional<z.ZodString>;
3262
- requestId: z.ZodString;
3263
- }, "strip", z.ZodTypeAny, {
3264
- agentId: string;
3265
- type: "execute_command_request";
3266
- requestId: string;
3267
- commandName: string;
3268
- args?: string | undefined;
3269
- }, {
3270
- agentId: string;
3271
- type: "execute_command_request";
3272
- requestId: string;
3273
- commandName: string;
3274
- args?: string | undefined;
3366
+ draftConfig?: {
3367
+ provider: string;
3368
+ cwd: string;
3369
+ modeId?: string | undefined;
3370
+ model?: string | undefined;
3371
+ thinkingOptionId?: string | undefined;
3372
+ } | undefined;
3275
3373
  }>, z.ZodObject<{
3276
3374
  type: z.ZodLiteral<"register_push_token">;
3277
3375
  token: z.ZodString;
@@ -3988,6 +4086,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodEffects<z.ZodObject<{
3988
4086
  status: z.ZodLiteral<"server_info">;
3989
4087
  serverId: z.ZodString;
3990
4088
  hostname: z.ZodOptional<z.ZodEffects<z.ZodUnknown, string | null, unknown>>;
4089
+ version: z.ZodOptional<z.ZodEffects<z.ZodUnknown, string | null, unknown>>;
3991
4090
  capabilities: z.ZodEffects<z.ZodOptional<z.ZodUnknown>, z.objectOutputType<{
3992
4091
  voice: z.ZodOptional<z.ZodObject<{
3993
4092
  dictation: z.ZodObject<{
@@ -4034,6 +4133,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodEffects<z.ZodObject<{
4034
4133
  status: z.ZodLiteral<"server_info">;
4035
4134
  serverId: z.ZodString;
4036
4135
  hostname: z.ZodOptional<z.ZodEffects<z.ZodUnknown, string | null, unknown>>;
4136
+ version: z.ZodOptional<z.ZodEffects<z.ZodUnknown, string | null, unknown>>;
4037
4137
  capabilities: z.ZodEffects<z.ZodOptional<z.ZodUnknown>, z.objectOutputType<{
4038
4138
  voice: z.ZodOptional<z.ZodObject<{
4039
4139
  dictation: z.ZodObject<{
@@ -4080,6 +4180,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodEffects<z.ZodObject<{
4080
4180
  status: z.ZodLiteral<"server_info">;
4081
4181
  serverId: z.ZodString;
4082
4182
  hostname: z.ZodOptional<z.ZodEffects<z.ZodUnknown, string | null, unknown>>;
4183
+ version: z.ZodOptional<z.ZodEffects<z.ZodUnknown, string | null, unknown>>;
4083
4184
  capabilities: z.ZodEffects<z.ZodOptional<z.ZodUnknown>, z.objectOutputType<{
4084
4185
  voice: z.ZodOptional<z.ZodObject<{
4085
4186
  dictation: z.ZodObject<{
@@ -4124,6 +4225,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodEffects<z.ZodObject<{
4124
4225
  }, z.ZodTypeAny, "passthrough"> | undefined, unknown>;
4125
4226
  }, z.ZodTypeAny, "passthrough">>, {
4126
4227
  hostname: string | null;
4228
+ version: string | null;
4127
4229
  status: "server_info";
4128
4230
  serverId: string;
4129
4231
  capabilities?: z.objectOutputType<{
@@ -4172,6 +4274,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodEffects<z.ZodObject<{
4172
4274
  status: z.ZodLiteral<"server_info">;
4173
4275
  serverId: z.ZodString;
4174
4276
  hostname: z.ZodOptional<z.ZodEffects<z.ZodUnknown, string | null, unknown>>;
4277
+ version: z.ZodOptional<z.ZodEffects<z.ZodUnknown, string | null, unknown>>;
4175
4278
  capabilities: z.ZodEffects<z.ZodOptional<z.ZodUnknown>, z.objectOutputType<{
4176
4279
  voice: z.ZodOptional<z.ZodObject<{
4177
4280
  dictation: z.ZodObject<{
@@ -5780,18 +5883,69 @@ export declare const AgentStreamMessageSchema: z.ZodObject<{
5780
5883
  reason: z.ZodEnum<["finished", "error", "permission"]>;
5781
5884
  timestamp: z.ZodString;
5782
5885
  shouldNotify: z.ZodBoolean;
5886
+ notification: z.ZodOptional<z.ZodObject<{
5887
+ title: z.ZodString;
5888
+ body: z.ZodString;
5889
+ data: z.ZodObject<{
5890
+ serverId: z.ZodString;
5891
+ agentId: z.ZodString;
5892
+ reason: z.ZodEnum<["finished", "error", "permission"]>;
5893
+ }, "strip", z.ZodTypeAny, {
5894
+ agentId: string;
5895
+ reason: "finished" | "error" | "permission";
5896
+ serverId: string;
5897
+ }, {
5898
+ agentId: string;
5899
+ reason: "finished" | "error" | "permission";
5900
+ serverId: string;
5901
+ }>;
5902
+ }, "strip", z.ZodTypeAny, {
5903
+ title: string;
5904
+ body: string;
5905
+ data: {
5906
+ agentId: string;
5907
+ reason: "finished" | "error" | "permission";
5908
+ serverId: string;
5909
+ };
5910
+ }, {
5911
+ title: string;
5912
+ body: string;
5913
+ data: {
5914
+ agentId: string;
5915
+ reason: "finished" | "error" | "permission";
5916
+ serverId: string;
5917
+ };
5918
+ }>>;
5783
5919
  }, "strip", z.ZodTypeAny, {
5784
5920
  reason: "finished" | "error" | "permission";
5785
5921
  provider: string;
5786
5922
  type: "attention_required";
5787
5923
  timestamp: string;
5788
5924
  shouldNotify: boolean;
5925
+ notification?: {
5926
+ title: string;
5927
+ body: string;
5928
+ data: {
5929
+ agentId: string;
5930
+ reason: "finished" | "error" | "permission";
5931
+ serverId: string;
5932
+ };
5933
+ } | undefined;
5789
5934
  }, {
5790
5935
  reason: "finished" | "error" | "permission";
5791
5936
  provider: string;
5792
5937
  type: "attention_required";
5793
5938
  timestamp: string;
5794
5939
  shouldNotify: boolean;
5940
+ notification?: {
5941
+ title: string;
5942
+ body: string;
5943
+ data: {
5944
+ agentId: string;
5945
+ reason: "finished" | "error" | "permission";
5946
+ serverId: string;
5947
+ };
5948
+ } | undefined;
5795
5949
  }>]>;
5796
5950
  timestamp: z.ZodString;
5797
5951
  seq: z.ZodOptional<z.ZodNumber>;
@@ -5837,6 +5991,15 @@ export declare const AgentStreamMessageSchema: z.ZodObject<{
5837
5991
  type: "attention_required";
5838
5992
  timestamp: string;
5839
5993
  shouldNotify: boolean;
5994
+ notification?: {
5995
+ title: string;
5996
+ body: string;
5997
+ data: {
5998
+ agentId: string;
5999
+ reason: "finished" | "error" | "permission";
6000
+ serverId: string;
6001
+ };
6002
+ } | undefined;
5840
6003
  };
5841
6004
  seq?: number | undefined;
5842
6005
  epoch?: string | undefined;
@@ -5881,6 +6044,15 @@ export declare const AgentStreamMessageSchema: z.ZodObject<{
5881
6044
  type: "attention_required";
5882
6045
  timestamp: string;
5883
6046
  shouldNotify: boolean;
6047
+ notification?: {
6048
+ title: string;
6049
+ body: string;
6050
+ data: {
6051
+ agentId: string;
6052
+ reason: "finished" | "error" | "permission";
6053
+ serverId: string;
6054
+ };
6055
+ } | undefined;
5884
6056
  };
5885
6057
  seq?: number | undefined;
5886
6058
  epoch?: string | undefined;
@@ -5928,6 +6100,15 @@ export declare const AgentStreamMessageSchema: z.ZodObject<{
5928
6100
  type: "attention_required";
5929
6101
  timestamp: string;
5930
6102
  shouldNotify: boolean;
6103
+ notification?: {
6104
+ title: string;
6105
+ body: string;
6106
+ data: {
6107
+ agentId: string;
6108
+ reason: "finished" | "error" | "permission";
6109
+ serverId: string;
6110
+ };
6111
+ } | undefined;
5931
6112
  };
5932
6113
  seq?: number | undefined;
5933
6114
  epoch?: string | undefined;
@@ -5975,6 +6156,15 @@ export declare const AgentStreamMessageSchema: z.ZodObject<{
5975
6156
  type: "attention_required";
5976
6157
  timestamp: string;
5977
6158
  shouldNotify: boolean;
6159
+ notification?: {
6160
+ title: string;
6161
+ body: string;
6162
+ data: {
6163
+ agentId: string;
6164
+ reason: "finished" | "error" | "permission";
6165
+ serverId: string;
6166
+ };
6167
+ } | undefined;
5978
6168
  };
5979
6169
  seq?: number | undefined;
5980
6170
  epoch?: string | undefined;
@@ -7791,6 +7981,7 @@ export declare const CheckoutStatusResponseSchema: z.ZodObject<{
7791
7981
  baseRef: z.ZodNull;
7792
7982
  aheadBehind: z.ZodNull;
7793
7983
  aheadOfOrigin: z.ZodNull;
7984
+ behindOfOrigin: z.ZodNull;
7794
7985
  hasRemote: z.ZodBoolean;
7795
7986
  remoteUrl: z.ZodNull;
7796
7987
  }, "strip", z.ZodTypeAny, {
@@ -7809,6 +8000,7 @@ export declare const CheckoutStatusResponseSchema: z.ZodObject<{
7809
8000
  isDirty: null;
7810
8001
  aheadBehind: null;
7811
8002
  aheadOfOrigin: null;
8003
+ behindOfOrigin: null;
7812
8004
  hasRemote: boolean;
7813
8005
  }, {
7814
8006
  error: {
@@ -7826,6 +8018,7 @@ export declare const CheckoutStatusResponseSchema: z.ZodObject<{
7826
8018
  isDirty: null;
7827
8019
  aheadBehind: null;
7828
8020
  aheadOfOrigin: null;
8021
+ behindOfOrigin: null;
7829
8022
  hasRemote: boolean;
7830
8023
  }>, z.ZodObject<{
7831
8024
  cwd: z.ZodString;
@@ -7858,6 +8051,7 @@ export declare const CheckoutStatusResponseSchema: z.ZodObject<{
7858
8051
  behind: number;
7859
8052
  }>>;
7860
8053
  aheadOfOrigin: z.ZodNullable<z.ZodNumber>;
8054
+ behindOfOrigin: z.ZodNullable<z.ZodNumber>;
7861
8055
  hasRemote: z.ZodBoolean;
7862
8056
  remoteUrl: z.ZodNullable<z.ZodString>;
7863
8057
  }, "strip", z.ZodTypeAny, {
@@ -7879,6 +8073,7 @@ export declare const CheckoutStatusResponseSchema: z.ZodObject<{
7879
8073
  behind: number;
7880
8074
  } | null;
7881
8075
  aheadOfOrigin: number | null;
8076
+ behindOfOrigin: number | null;
7882
8077
  hasRemote: boolean;
7883
8078
  }, {
7884
8079
  error: {
@@ -7899,6 +8094,7 @@ export declare const CheckoutStatusResponseSchema: z.ZodObject<{
7899
8094
  behind: number;
7900
8095
  } | null;
7901
8096
  aheadOfOrigin: number | null;
8097
+ behindOfOrigin: number | null;
7902
8098
  hasRemote: boolean;
7903
8099
  }>, z.ZodObject<{
7904
8100
  cwd: z.ZodString;
@@ -7932,6 +8128,7 @@ export declare const CheckoutStatusResponseSchema: z.ZodObject<{
7932
8128
  behind: number;
7933
8129
  }>>;
7934
8130
  aheadOfOrigin: z.ZodNullable<z.ZodNumber>;
8131
+ behindOfOrigin: z.ZodNullable<z.ZodNumber>;
7935
8132
  hasRemote: z.ZodBoolean;
7936
8133
  remoteUrl: z.ZodNullable<z.ZodString>;
7937
8134
  }, "strip", z.ZodTypeAny, {
@@ -7954,6 +8151,7 @@ export declare const CheckoutStatusResponseSchema: z.ZodObject<{
7954
8151
  behind: number;
7955
8152
  } | null;
7956
8153
  aheadOfOrigin: number | null;
8154
+ behindOfOrigin: number | null;
7957
8155
  hasRemote: boolean;
7958
8156
  }, {
7959
8157
  error: {
@@ -7975,6 +8173,7 @@ export declare const CheckoutStatusResponseSchema: z.ZodObject<{
7975
8173
  behind: number;
7976
8174
  } | null;
7977
8175
  aheadOfOrigin: number | null;
8176
+ behindOfOrigin: number | null;
7978
8177
  hasRemote: boolean;
7979
8178
  }>]>;
7980
8179
  }, "strip", z.ZodTypeAny, {
@@ -7995,6 +8194,7 @@ export declare const CheckoutStatusResponseSchema: z.ZodObject<{
7995
8194
  isDirty: null;
7996
8195
  aheadBehind: null;
7997
8196
  aheadOfOrigin: null;
8197
+ behindOfOrigin: null;
7998
8198
  hasRemote: boolean;
7999
8199
  } | {
8000
8200
  error: {
@@ -8015,6 +8215,7 @@ export declare const CheckoutStatusResponseSchema: z.ZodObject<{
8015
8215
  behind: number;
8016
8216
  } | null;
8017
8217
  aheadOfOrigin: number | null;
8218
+ behindOfOrigin: number | null;
8018
8219
  hasRemote: boolean;
8019
8220
  } | {
8020
8221
  error: {
@@ -8036,6 +8237,7 @@ export declare const CheckoutStatusResponseSchema: z.ZodObject<{
8036
8237
  behind: number;
8037
8238
  } | null;
8038
8239
  aheadOfOrigin: number | null;
8240
+ behindOfOrigin: number | null;
8039
8241
  hasRemote: boolean;
8040
8242
  };
8041
8243
  }, {
@@ -8056,6 +8258,7 @@ export declare const CheckoutStatusResponseSchema: z.ZodObject<{
8056
8258
  isDirty: null;
8057
8259
  aheadBehind: null;
8058
8260
  aheadOfOrigin: null;
8261
+ behindOfOrigin: null;
8059
8262
  hasRemote: boolean;
8060
8263
  } | {
8061
8264
  error: {
@@ -8076,6 +8279,7 @@ export declare const CheckoutStatusResponseSchema: z.ZodObject<{
8076
8279
  behind: number;
8077
8280
  } | null;
8078
8281
  aheadOfOrigin: number | null;
8282
+ behindOfOrigin: number | null;
8079
8283
  hasRemote: boolean;
8080
8284
  } | {
8081
8285
  error: {
@@ -8097,6 +8301,7 @@ export declare const CheckoutStatusResponseSchema: z.ZodObject<{
8097
8301
  behind: number;
8098
8302
  } | null;
8099
8303
  aheadOfOrigin: number | null;
8304
+ behindOfOrigin: number | null;
8100
8305
  hasRemote: boolean;
8101
8306
  };
8102
8307
  }>;
@@ -8899,18 +9104,21 @@ export declare const CheckoutPrStatusResponseSchema: z.ZodObject<{
8899
9104
  state: z.ZodString;
8900
9105
  baseRefName: z.ZodString;
8901
9106
  headRefName: z.ZodString;
9107
+ isMerged: z.ZodBoolean;
8902
9108
  }, "strip", z.ZodTypeAny, {
8903
9109
  title: string;
8904
9110
  url: string;
8905
9111
  state: string;
8906
9112
  baseRefName: string;
8907
9113
  headRefName: string;
9114
+ isMerged: boolean;
8908
9115
  }, {
8909
9116
  title: string;
8910
9117
  url: string;
8911
9118
  state: string;
8912
9119
  baseRefName: string;
8913
9120
  headRefName: string;
9121
+ isMerged: boolean;
8914
9122
  }>>;
8915
9123
  githubFeaturesEnabled: z.ZodBoolean;
8916
9124
  error: z.ZodNullable<z.ZodObject<{
@@ -8936,6 +9144,7 @@ export declare const CheckoutPrStatusResponseSchema: z.ZodObject<{
8936
9144
  state: string;
8937
9145
  baseRefName: string;
8938
9146
  headRefName: string;
9147
+ isMerged: boolean;
8939
9148
  } | null;
8940
9149
  requestId: string;
8941
9150
  githubFeaturesEnabled: boolean;
@@ -8951,6 +9160,7 @@ export declare const CheckoutPrStatusResponseSchema: z.ZodObject<{
8951
9160
  state: string;
8952
9161
  baseRefName: string;
8953
9162
  headRefName: string;
9163
+ isMerged: boolean;
8954
9164
  } | null;
8955
9165
  requestId: string;
8956
9166
  githubFeaturesEnabled: boolean;
@@ -8969,6 +9179,7 @@ export declare const CheckoutPrStatusResponseSchema: z.ZodObject<{
8969
9179
  state: string;
8970
9180
  baseRefName: string;
8971
9181
  headRefName: string;
9182
+ isMerged: boolean;
8972
9183
  } | null;
8973
9184
  requestId: string;
8974
9185
  githubFeaturesEnabled: boolean;
@@ -8987,6 +9198,7 @@ export declare const CheckoutPrStatusResponseSchema: z.ZodObject<{
8987
9198
  state: string;
8988
9199
  baseRefName: string;
8989
9200
  headRefName: string;
9201
+ isMerged: boolean;
8990
9202
  } | null;
8991
9203
  requestId: string;
8992
9204
  githubFeaturesEnabled: boolean;
@@ -9066,21 +9278,43 @@ export declare const DirectorySuggestionsResponseSchema: z.ZodObject<{
9066
9278
  type: z.ZodLiteral<"directory_suggestions_response">;
9067
9279
  payload: z.ZodObject<{
9068
9280
  directories: z.ZodArray<z.ZodString, "many">;
9281
+ entries: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
9282
+ path: z.ZodString;
9283
+ kind: z.ZodEnum<["file", "directory"]>;
9284
+ }, "strip", z.ZodTypeAny, {
9285
+ path: string;
9286
+ kind: "file" | "directory";
9287
+ }, {
9288
+ path: string;
9289
+ kind: "file" | "directory";
9290
+ }>, "many">>>;
9069
9291
  error: z.ZodNullable<z.ZodString>;
9070
9292
  requestId: z.ZodString;
9071
9293
  }, "strip", z.ZodTypeAny, {
9072
9294
  error: string | null;
9295
+ entries: {
9296
+ path: string;
9297
+ kind: "file" | "directory";
9298
+ }[];
9073
9299
  requestId: string;
9074
9300
  directories: string[];
9075
9301
  }, {
9076
9302
  error: string | null;
9077
9303
  requestId: string;
9078
9304
  directories: string[];
9305
+ entries?: {
9306
+ path: string;
9307
+ kind: "file" | "directory";
9308
+ }[] | undefined;
9079
9309
  }>;
9080
9310
  }, "strip", z.ZodTypeAny, {
9081
9311
  type: "directory_suggestions_response";
9082
9312
  payload: {
9083
9313
  error: string | null;
9314
+ entries: {
9315
+ path: string;
9316
+ kind: "file" | "directory";
9317
+ }[];
9084
9318
  requestId: string;
9085
9319
  directories: string[];
9086
9320
  };
@@ -9090,6 +9324,10 @@ export declare const DirectorySuggestionsResponseSchema: z.ZodObject<{
9090
9324
  error: string | null;
9091
9325
  requestId: string;
9092
9326
  directories: string[];
9327
+ entries?: {
9328
+ path: string;
9329
+ kind: "file" | "directory";
9330
+ }[] | undefined;
9093
9331
  };
9094
9332
  }>;
9095
9333
  export declare const PaseoWorktreeListResponseSchema: z.ZodObject<{
@@ -9809,69 +10047,6 @@ export declare const ListCommandsResponseSchema: z.ZodObject<{
9809
10047
  requestId: string;
9810
10048
  };
9811
10049
  }>;
9812
- export declare const ExecuteCommandResponseSchema: z.ZodObject<{
9813
- type: z.ZodLiteral<"execute_command_response">;
9814
- payload: z.ZodObject<{
9815
- agentId: z.ZodString;
9816
- result: z.ZodNullable<z.ZodObject<{
9817
- text: z.ZodString;
9818
- timeline: z.ZodArray<z.ZodType<AgentTimelineItem, z.ZodTypeDef, unknown>, "many">;
9819
- usage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
9820
- }, "strip", z.ZodTypeAny, {
9821
- text: string;
9822
- timeline: AgentTimelineItem[];
9823
- usage?: AgentUsage | undefined;
9824
- }, {
9825
- text: string;
9826
- timeline: unknown[];
9827
- usage?: AgentUsage | undefined;
9828
- }>>;
9829
- error: z.ZodNullable<z.ZodString>;
9830
- requestId: z.ZodString;
9831
- }, "strip", z.ZodTypeAny, {
9832
- error: string | null;
9833
- agentId: string;
9834
- requestId: string;
9835
- result: {
9836
- text: string;
9837
- timeline: AgentTimelineItem[];
9838
- usage?: AgentUsage | undefined;
9839
- } | null;
9840
- }, {
9841
- error: string | null;
9842
- agentId: string;
9843
- requestId: string;
9844
- result: {
9845
- text: string;
9846
- timeline: unknown[];
9847
- usage?: AgentUsage | undefined;
9848
- } | null;
9849
- }>;
9850
- }, "strip", z.ZodTypeAny, {
9851
- type: "execute_command_response";
9852
- payload: {
9853
- error: string | null;
9854
- agentId: string;
9855
- requestId: string;
9856
- result: {
9857
- text: string;
9858
- timeline: AgentTimelineItem[];
9859
- usage?: AgentUsage | undefined;
9860
- } | null;
9861
- };
9862
- }, {
9863
- type: "execute_command_response";
9864
- payload: {
9865
- error: string | null;
9866
- agentId: string;
9867
- requestId: string;
9868
- result: {
9869
- text: string;
9870
- timeline: unknown[];
9871
- usage?: AgentUsage | undefined;
9872
- } | null;
9873
- };
9874
- }>;
9875
10050
  export declare const ListTerminalsResponseSchema: z.ZodObject<{
9876
10051
  type: z.ZodLiteral<"list_terminals_response">;
9877
10052
  payload: z.ZodObject<{
@@ -11667,18 +11842,69 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
11667
11842
  reason: z.ZodEnum<["finished", "error", "permission"]>;
11668
11843
  timestamp: z.ZodString;
11669
11844
  shouldNotify: z.ZodBoolean;
11845
+ notification: z.ZodOptional<z.ZodObject<{
11846
+ title: z.ZodString;
11847
+ body: z.ZodString;
11848
+ data: z.ZodObject<{
11849
+ serverId: z.ZodString;
11850
+ agentId: z.ZodString;
11851
+ reason: z.ZodEnum<["finished", "error", "permission"]>;
11852
+ }, "strip", z.ZodTypeAny, {
11853
+ agentId: string;
11854
+ reason: "finished" | "error" | "permission";
11855
+ serverId: string;
11856
+ }, {
11857
+ agentId: string;
11858
+ reason: "finished" | "error" | "permission";
11859
+ serverId: string;
11860
+ }>;
11861
+ }, "strip", z.ZodTypeAny, {
11862
+ title: string;
11863
+ body: string;
11864
+ data: {
11865
+ agentId: string;
11866
+ reason: "finished" | "error" | "permission";
11867
+ serverId: string;
11868
+ };
11869
+ }, {
11870
+ title: string;
11871
+ body: string;
11872
+ data: {
11873
+ agentId: string;
11874
+ reason: "finished" | "error" | "permission";
11875
+ serverId: string;
11876
+ };
11877
+ }>>;
11670
11878
  }, "strip", z.ZodTypeAny, {
11671
11879
  reason: "finished" | "error" | "permission";
11672
11880
  provider: string;
11673
11881
  type: "attention_required";
11674
11882
  timestamp: string;
11675
11883
  shouldNotify: boolean;
11884
+ notification?: {
11885
+ title: string;
11886
+ body: string;
11887
+ data: {
11888
+ agentId: string;
11889
+ reason: "finished" | "error" | "permission";
11890
+ serverId: string;
11891
+ };
11892
+ } | undefined;
11676
11893
  }, {
11677
11894
  reason: "finished" | "error" | "permission";
11678
11895
  provider: string;
11679
11896
  type: "attention_required";
11680
11897
  timestamp: string;
11681
11898
  shouldNotify: boolean;
11899
+ notification?: {
11900
+ title: string;
11901
+ body: string;
11902
+ data: {
11903
+ agentId: string;
11904
+ reason: "finished" | "error" | "permission";
11905
+ serverId: string;
11906
+ };
11907
+ } | undefined;
11682
11908
  }>]>;
11683
11909
  timestamp: z.ZodString;
11684
11910
  seq: z.ZodOptional<z.ZodNumber>;
@@ -11724,6 +11950,15 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
11724
11950
  type: "attention_required";
11725
11951
  timestamp: string;
11726
11952
  shouldNotify: boolean;
11953
+ notification?: {
11954
+ title: string;
11955
+ body: string;
11956
+ data: {
11957
+ agentId: string;
11958
+ reason: "finished" | "error" | "permission";
11959
+ serverId: string;
11960
+ };
11961
+ } | undefined;
11727
11962
  };
11728
11963
  seq?: number | undefined;
11729
11964
  epoch?: string | undefined;
@@ -11768,6 +12003,15 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
11768
12003
  type: "attention_required";
11769
12004
  timestamp: string;
11770
12005
  shouldNotify: boolean;
12006
+ notification?: {
12007
+ title: string;
12008
+ body: string;
12009
+ data: {
12010
+ agentId: string;
12011
+ reason: "finished" | "error" | "permission";
12012
+ serverId: string;
12013
+ };
12014
+ } | undefined;
11771
12015
  };
11772
12016
  seq?: number | undefined;
11773
12017
  epoch?: string | undefined;
@@ -11815,6 +12059,15 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
11815
12059
  type: "attention_required";
11816
12060
  timestamp: string;
11817
12061
  shouldNotify: boolean;
12062
+ notification?: {
12063
+ title: string;
12064
+ body: string;
12065
+ data: {
12066
+ agentId: string;
12067
+ reason: "finished" | "error" | "permission";
12068
+ serverId: string;
12069
+ };
12070
+ } | undefined;
11818
12071
  };
11819
12072
  seq?: number | undefined;
11820
12073
  epoch?: string | undefined;
@@ -11862,6 +12115,15 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
11862
12115
  type: "attention_required";
11863
12116
  timestamp: string;
11864
12117
  shouldNotify: boolean;
12118
+ notification?: {
12119
+ title: string;
12120
+ body: string;
12121
+ data: {
12122
+ agentId: string;
12123
+ reason: "finished" | "error" | "permission";
12124
+ serverId: string;
12125
+ };
12126
+ } | undefined;
11865
12127
  };
11866
12128
  seq?: number | undefined;
11867
12129
  epoch?: string | undefined;
@@ -13629,6 +13891,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13629
13891
  baseRef: z.ZodNull;
13630
13892
  aheadBehind: z.ZodNull;
13631
13893
  aheadOfOrigin: z.ZodNull;
13894
+ behindOfOrigin: z.ZodNull;
13632
13895
  hasRemote: z.ZodBoolean;
13633
13896
  remoteUrl: z.ZodNull;
13634
13897
  }, "strip", z.ZodTypeAny, {
@@ -13647,6 +13910,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13647
13910
  isDirty: null;
13648
13911
  aheadBehind: null;
13649
13912
  aheadOfOrigin: null;
13913
+ behindOfOrigin: null;
13650
13914
  hasRemote: boolean;
13651
13915
  }, {
13652
13916
  error: {
@@ -13664,6 +13928,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13664
13928
  isDirty: null;
13665
13929
  aheadBehind: null;
13666
13930
  aheadOfOrigin: null;
13931
+ behindOfOrigin: null;
13667
13932
  hasRemote: boolean;
13668
13933
  }>, z.ZodObject<{
13669
13934
  cwd: z.ZodString;
@@ -13696,6 +13961,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13696
13961
  behind: number;
13697
13962
  }>>;
13698
13963
  aheadOfOrigin: z.ZodNullable<z.ZodNumber>;
13964
+ behindOfOrigin: z.ZodNullable<z.ZodNumber>;
13699
13965
  hasRemote: z.ZodBoolean;
13700
13966
  remoteUrl: z.ZodNullable<z.ZodString>;
13701
13967
  }, "strip", z.ZodTypeAny, {
@@ -13717,6 +13983,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13717
13983
  behind: number;
13718
13984
  } | null;
13719
13985
  aheadOfOrigin: number | null;
13986
+ behindOfOrigin: number | null;
13720
13987
  hasRemote: boolean;
13721
13988
  }, {
13722
13989
  error: {
@@ -13737,6 +14004,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13737
14004
  behind: number;
13738
14005
  } | null;
13739
14006
  aheadOfOrigin: number | null;
14007
+ behindOfOrigin: number | null;
13740
14008
  hasRemote: boolean;
13741
14009
  }>, z.ZodObject<{
13742
14010
  cwd: z.ZodString;
@@ -13770,6 +14038,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13770
14038
  behind: number;
13771
14039
  }>>;
13772
14040
  aheadOfOrigin: z.ZodNullable<z.ZodNumber>;
14041
+ behindOfOrigin: z.ZodNullable<z.ZodNumber>;
13773
14042
  hasRemote: z.ZodBoolean;
13774
14043
  remoteUrl: z.ZodNullable<z.ZodString>;
13775
14044
  }, "strip", z.ZodTypeAny, {
@@ -13792,6 +14061,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13792
14061
  behind: number;
13793
14062
  } | null;
13794
14063
  aheadOfOrigin: number | null;
14064
+ behindOfOrigin: number | null;
13795
14065
  hasRemote: boolean;
13796
14066
  }, {
13797
14067
  error: {
@@ -13813,6 +14083,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13813
14083
  behind: number;
13814
14084
  } | null;
13815
14085
  aheadOfOrigin: number | null;
14086
+ behindOfOrigin: number | null;
13816
14087
  hasRemote: boolean;
13817
14088
  }>]>;
13818
14089
  }, "strip", z.ZodTypeAny, {
@@ -13833,6 +14104,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13833
14104
  isDirty: null;
13834
14105
  aheadBehind: null;
13835
14106
  aheadOfOrigin: null;
14107
+ behindOfOrigin: null;
13836
14108
  hasRemote: boolean;
13837
14109
  } | {
13838
14110
  error: {
@@ -13853,6 +14125,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13853
14125
  behind: number;
13854
14126
  } | null;
13855
14127
  aheadOfOrigin: number | null;
14128
+ behindOfOrigin: number | null;
13856
14129
  hasRemote: boolean;
13857
14130
  } | {
13858
14131
  error: {
@@ -13874,6 +14147,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13874
14147
  behind: number;
13875
14148
  } | null;
13876
14149
  aheadOfOrigin: number | null;
14150
+ behindOfOrigin: number | null;
13877
14151
  hasRemote: boolean;
13878
14152
  };
13879
14153
  }, {
@@ -13894,6 +14168,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13894
14168
  isDirty: null;
13895
14169
  aheadBehind: null;
13896
14170
  aheadOfOrigin: null;
14171
+ behindOfOrigin: null;
13897
14172
  hasRemote: boolean;
13898
14173
  } | {
13899
14174
  error: {
@@ -13914,6 +14189,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13914
14189
  behind: number;
13915
14190
  } | null;
13916
14191
  aheadOfOrigin: number | null;
14192
+ behindOfOrigin: number | null;
13917
14193
  hasRemote: boolean;
13918
14194
  } | {
13919
14195
  error: {
@@ -13935,6 +14211,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13935
14211
  behind: number;
13936
14212
  } | null;
13937
14213
  aheadOfOrigin: number | null;
14214
+ behindOfOrigin: number | null;
13938
14215
  hasRemote: boolean;
13939
14216
  };
13940
14217
  }>, z.ZodObject<{
@@ -14729,18 +15006,21 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
14729
15006
  state: z.ZodString;
14730
15007
  baseRefName: z.ZodString;
14731
15008
  headRefName: z.ZodString;
15009
+ isMerged: z.ZodBoolean;
14732
15010
  }, "strip", z.ZodTypeAny, {
14733
15011
  title: string;
14734
15012
  url: string;
14735
15013
  state: string;
14736
15014
  baseRefName: string;
14737
15015
  headRefName: string;
15016
+ isMerged: boolean;
14738
15017
  }, {
14739
15018
  title: string;
14740
15019
  url: string;
14741
15020
  state: string;
14742
15021
  baseRefName: string;
14743
15022
  headRefName: string;
15023
+ isMerged: boolean;
14744
15024
  }>>;
14745
15025
  githubFeaturesEnabled: z.ZodBoolean;
14746
15026
  error: z.ZodNullable<z.ZodObject<{
@@ -14766,6 +15046,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
14766
15046
  state: string;
14767
15047
  baseRefName: string;
14768
15048
  headRefName: string;
15049
+ isMerged: boolean;
14769
15050
  } | null;
14770
15051
  requestId: string;
14771
15052
  githubFeaturesEnabled: boolean;
@@ -14781,6 +15062,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
14781
15062
  state: string;
14782
15063
  baseRefName: string;
14783
15064
  headRefName: string;
15065
+ isMerged: boolean;
14784
15066
  } | null;
14785
15067
  requestId: string;
14786
15068
  githubFeaturesEnabled: boolean;
@@ -14799,6 +15081,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
14799
15081
  state: string;
14800
15082
  baseRefName: string;
14801
15083
  headRefName: string;
15084
+ isMerged: boolean;
14802
15085
  } | null;
14803
15086
  requestId: string;
14804
15087
  githubFeaturesEnabled: boolean;
@@ -14817,6 +15100,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
14817
15100
  state: string;
14818
15101
  baseRefName: string;
14819
15102
  headRefName: string;
15103
+ isMerged: boolean;
14820
15104
  } | null;
14821
15105
  requestId: string;
14822
15106
  githubFeaturesEnabled: boolean;
@@ -14893,21 +15177,43 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
14893
15177
  type: z.ZodLiteral<"directory_suggestions_response">;
14894
15178
  payload: z.ZodObject<{
14895
15179
  directories: z.ZodArray<z.ZodString, "many">;
15180
+ entries: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
15181
+ path: z.ZodString;
15182
+ kind: z.ZodEnum<["file", "directory"]>;
15183
+ }, "strip", z.ZodTypeAny, {
15184
+ path: string;
15185
+ kind: "file" | "directory";
15186
+ }, {
15187
+ path: string;
15188
+ kind: "file" | "directory";
15189
+ }>, "many">>>;
14896
15190
  error: z.ZodNullable<z.ZodString>;
14897
15191
  requestId: z.ZodString;
14898
15192
  }, "strip", z.ZodTypeAny, {
14899
15193
  error: string | null;
15194
+ entries: {
15195
+ path: string;
15196
+ kind: "file" | "directory";
15197
+ }[];
14900
15198
  requestId: string;
14901
15199
  directories: string[];
14902
15200
  }, {
14903
15201
  error: string | null;
14904
15202
  requestId: string;
14905
15203
  directories: string[];
15204
+ entries?: {
15205
+ path: string;
15206
+ kind: "file" | "directory";
15207
+ }[] | undefined;
14906
15208
  }>;
14907
15209
  }, "strip", z.ZodTypeAny, {
14908
15210
  type: "directory_suggestions_response";
14909
15211
  payload: {
14910
15212
  error: string | null;
15213
+ entries: {
15214
+ path: string;
15215
+ kind: "file" | "directory";
15216
+ }[];
14911
15217
  requestId: string;
14912
15218
  directories: string[];
14913
15219
  };
@@ -14917,6 +15223,10 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
14917
15223
  error: string | null;
14918
15224
  requestId: string;
14919
15225
  directories: string[];
15226
+ entries?: {
15227
+ path: string;
15228
+ kind: "file" | "directory";
15229
+ }[] | undefined;
14920
15230
  };
14921
15231
  }>, z.ZodObject<{
14922
15232
  type: z.ZodLiteral<"paseo_worktree_list_response">;
@@ -15615,68 +15925,6 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
15615
15925
  }[];
15616
15926
  requestId: string;
15617
15927
  };
15618
- }>, z.ZodObject<{
15619
- type: z.ZodLiteral<"execute_command_response">;
15620
- payload: z.ZodObject<{
15621
- agentId: z.ZodString;
15622
- result: z.ZodNullable<z.ZodObject<{
15623
- text: z.ZodString;
15624
- timeline: z.ZodArray<z.ZodType<AgentTimelineItem, z.ZodTypeDef, unknown>, "many">;
15625
- usage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
15626
- }, "strip", z.ZodTypeAny, {
15627
- text: string;
15628
- timeline: AgentTimelineItem[];
15629
- usage?: AgentUsage | undefined;
15630
- }, {
15631
- text: string;
15632
- timeline: unknown[];
15633
- usage?: AgentUsage | undefined;
15634
- }>>;
15635
- error: z.ZodNullable<z.ZodString>;
15636
- requestId: z.ZodString;
15637
- }, "strip", z.ZodTypeAny, {
15638
- error: string | null;
15639
- agentId: string;
15640
- requestId: string;
15641
- result: {
15642
- text: string;
15643
- timeline: AgentTimelineItem[];
15644
- usage?: AgentUsage | undefined;
15645
- } | null;
15646
- }, {
15647
- error: string | null;
15648
- agentId: string;
15649
- requestId: string;
15650
- result: {
15651
- text: string;
15652
- timeline: unknown[];
15653
- usage?: AgentUsage | undefined;
15654
- } | null;
15655
- }>;
15656
- }, "strip", z.ZodTypeAny, {
15657
- type: "execute_command_response";
15658
- payload: {
15659
- error: string | null;
15660
- agentId: string;
15661
- requestId: string;
15662
- result: {
15663
- text: string;
15664
- timeline: AgentTimelineItem[];
15665
- usage?: AgentUsage | undefined;
15666
- } | null;
15667
- };
15668
- }, {
15669
- type: "execute_command_response";
15670
- payload: {
15671
- error: string | null;
15672
- agentId: string;
15673
- requestId: string;
15674
- result: {
15675
- text: string;
15676
- timeline: unknown[];
15677
- usage?: AgentUsage | undefined;
15678
- } | null;
15679
- };
15680
15928
  }>, z.ZodObject<{
15681
15929
  type: z.ZodLiteral<"list_terminals_response">;
15682
15930
  payload: z.ZodObject<{
@@ -16581,8 +16829,6 @@ export type ClearAgentAttentionMessage = z.infer<typeof ClearAgentAttentionMessa
16581
16829
  export type ClientHeartbeatMessage = z.infer<typeof ClientHeartbeatMessageSchema>;
16582
16830
  export type ListCommandsRequest = z.infer<typeof ListCommandsRequestSchema>;
16583
16831
  export type ListCommandsResponse = z.infer<typeof ListCommandsResponseSchema>;
16584
- export type ExecuteCommandRequest = z.infer<typeof ExecuteCommandRequestSchema>;
16585
- export type ExecuteCommandResponse = z.infer<typeof ExecuteCommandResponseSchema>;
16586
16832
  export type RegisterPushTokenMessage = z.infer<typeof RegisterPushTokenMessageSchema>;
16587
16833
  export type ListTerminalsRequest = z.infer<typeof ListTerminalsRequestSchema>;
16588
16834
  export type ListTerminalsResponse = z.infer<typeof ListTerminalsResponseSchema>;
@@ -17690,15 +17936,15 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
17690
17936
  type: "checkout_pr_create_request";
17691
17937
  requestId: string;
17692
17938
  title?: string | undefined;
17693
- baseRef?: string | undefined;
17694
17939
  body?: string | undefined;
17940
+ baseRef?: string | undefined;
17695
17941
  }, {
17696
17942
  cwd: string;
17697
17943
  type: "checkout_pr_create_request";
17698
17944
  requestId: string;
17699
17945
  title?: string | undefined;
17700
- baseRef?: string | undefined;
17701
17946
  body?: string | undefined;
17947
+ baseRef?: string | undefined;
17702
17948
  }>, z.ZodObject<{
17703
17949
  type: z.ZodLiteral<"checkout_pr_status_request">;
17704
17950
  cwd: z.ZodString;
@@ -17747,18 +17993,27 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
17747
17993
  }>, z.ZodObject<{
17748
17994
  type: z.ZodLiteral<"directory_suggestions_request">;
17749
17995
  query: z.ZodString;
17996
+ cwd: z.ZodOptional<z.ZodString>;
17997
+ includeFiles: z.ZodOptional<z.ZodBoolean>;
17998
+ includeDirectories: z.ZodOptional<z.ZodBoolean>;
17750
17999
  limit: z.ZodOptional<z.ZodNumber>;
17751
18000
  requestId: z.ZodString;
17752
18001
  }, "strip", z.ZodTypeAny, {
17753
18002
  type: "directory_suggestions_request";
17754
18003
  query: string;
17755
18004
  requestId: string;
18005
+ cwd?: string | undefined;
17756
18006
  limit?: number | undefined;
18007
+ includeFiles?: boolean | undefined;
18008
+ includeDirectories?: boolean | undefined;
17757
18009
  }, {
17758
18010
  type: "directory_suggestions_request";
17759
18011
  query: string;
17760
18012
  requestId: string;
18013
+ cwd?: string | undefined;
17761
18014
  limit?: number | undefined;
18015
+ includeFiles?: boolean | undefined;
18016
+ includeDirectories?: boolean | undefined;
17762
18017
  }>, z.ZodObject<{
17763
18018
  type: z.ZodLiteral<"paseo_worktree_list_request">;
17764
18019
  cwd: z.ZodOptional<z.ZodString>;
@@ -17882,33 +18137,48 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
17882
18137
  }>, z.ZodObject<{
17883
18138
  type: z.ZodLiteral<"list_commands_request">;
17884
18139
  agentId: z.ZodString;
18140
+ draftConfig: z.ZodOptional<z.ZodObject<{
18141
+ provider: z.ZodEnum<[string, ...string[]]>;
18142
+ cwd: z.ZodString;
18143
+ modeId: z.ZodOptional<z.ZodString>;
18144
+ model: z.ZodOptional<z.ZodString>;
18145
+ thinkingOptionId: z.ZodOptional<z.ZodString>;
18146
+ }, "strip", z.ZodTypeAny, {
18147
+ provider: string;
18148
+ cwd: string;
18149
+ modeId?: string | undefined;
18150
+ model?: string | undefined;
18151
+ thinkingOptionId?: string | undefined;
18152
+ }, {
18153
+ provider: string;
18154
+ cwd: string;
18155
+ modeId?: string | undefined;
18156
+ model?: string | undefined;
18157
+ thinkingOptionId?: string | undefined;
18158
+ }>>;
17885
18159
  requestId: z.ZodString;
17886
18160
  }, "strip", z.ZodTypeAny, {
17887
18161
  agentId: string;
17888
18162
  type: "list_commands_request";
17889
18163
  requestId: string;
18164
+ draftConfig?: {
18165
+ provider: string;
18166
+ cwd: string;
18167
+ modeId?: string | undefined;
18168
+ model?: string | undefined;
18169
+ thinkingOptionId?: string | undefined;
18170
+ } | undefined;
17890
18171
  }, {
17891
18172
  agentId: string;
17892
18173
  type: "list_commands_request";
17893
18174
  requestId: string;
17894
- }>, z.ZodObject<{
17895
- type: z.ZodLiteral<"execute_command_request">;
17896
- agentId: z.ZodString;
17897
- commandName: z.ZodString;
17898
- args: z.ZodOptional<z.ZodString>;
17899
- requestId: z.ZodString;
17900
- }, "strip", z.ZodTypeAny, {
17901
- agentId: string;
17902
- type: "execute_command_request";
17903
- requestId: string;
17904
- commandName: string;
17905
- args?: string | undefined;
17906
- }, {
17907
- agentId: string;
17908
- type: "execute_command_request";
17909
- requestId: string;
17910
- commandName: string;
17911
- args?: string | undefined;
18175
+ draftConfig?: {
18176
+ provider: string;
18177
+ cwd: string;
18178
+ modeId?: string | undefined;
18179
+ model?: string | undefined;
18180
+ thinkingOptionId?: string | undefined;
18181
+ } | undefined;
17912
18182
  }>, z.ZodObject<{
17913
18183
  type: z.ZodLiteral<"register_push_token">;
17914
18184
  token: z.ZodString;
@@ -18379,8 +18649,8 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
18379
18649
  type: "checkout_pr_create_request";
18380
18650
  requestId: string;
18381
18651
  title?: string | undefined;
18382
- baseRef?: string | undefined;
18383
18652
  body?: string | undefined;
18653
+ baseRef?: string | undefined;
18384
18654
  } | {
18385
18655
  cwd: string;
18386
18656
  type: "checkout_pr_status_request";
@@ -18400,7 +18670,10 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
18400
18670
  type: "directory_suggestions_request";
18401
18671
  query: string;
18402
18672
  requestId: string;
18673
+ cwd?: string | undefined;
18403
18674
  limit?: number | undefined;
18675
+ includeFiles?: boolean | undefined;
18676
+ includeDirectories?: boolean | undefined;
18404
18677
  } | {
18405
18678
  type: "paseo_worktree_list_request";
18406
18679
  requestId: string;
@@ -18445,12 +18718,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
18445
18718
  agentId: string;
18446
18719
  type: "list_commands_request";
18447
18720
  requestId: string;
18448
- } | {
18449
- agentId: string;
18450
- type: "execute_command_request";
18451
- requestId: string;
18452
- commandName: string;
18453
- args?: string | undefined;
18721
+ draftConfig?: {
18722
+ provider: string;
18723
+ cwd: string;
18724
+ modeId?: string | undefined;
18725
+ model?: string | undefined;
18726
+ thinkingOptionId?: string | undefined;
18727
+ } | undefined;
18454
18728
  } | {
18455
18729
  type: "register_push_token";
18456
18730
  token: string;
@@ -18782,8 +19056,8 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
18782
19056
  type: "checkout_pr_create_request";
18783
19057
  requestId: string;
18784
19058
  title?: string | undefined;
18785
- baseRef?: string | undefined;
18786
19059
  body?: string | undefined;
19060
+ baseRef?: string | undefined;
18787
19061
  } | {
18788
19062
  cwd: string;
18789
19063
  type: "checkout_pr_status_request";
@@ -18803,7 +19077,10 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
18803
19077
  type: "directory_suggestions_request";
18804
19078
  query: string;
18805
19079
  requestId: string;
19080
+ cwd?: string | undefined;
18806
19081
  limit?: number | undefined;
19082
+ includeFiles?: boolean | undefined;
19083
+ includeDirectories?: boolean | undefined;
18807
19084
  } | {
18808
19085
  type: "paseo_worktree_list_request";
18809
19086
  requestId: string;
@@ -18848,12 +19125,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
18848
19125
  agentId: string;
18849
19126
  type: "list_commands_request";
18850
19127
  requestId: string;
18851
- } | {
18852
- agentId: string;
18853
- type: "execute_command_request";
18854
- requestId: string;
18855
- commandName: string;
18856
- args?: string | undefined;
19128
+ draftConfig?: {
19129
+ provider: string;
19130
+ cwd: string;
19131
+ modeId?: string | undefined;
19132
+ model?: string | undefined;
19133
+ thinkingOptionId?: string | undefined;
19134
+ } | undefined;
18857
19135
  } | {
18858
19136
  type: "register_push_token";
18859
19137
  token: string;
@@ -19892,18 +20170,69 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
19892
20170
  reason: z.ZodEnum<["finished", "error", "permission"]>;
19893
20171
  timestamp: z.ZodString;
19894
20172
  shouldNotify: z.ZodBoolean;
20173
+ notification: z.ZodOptional<z.ZodObject<{
20174
+ title: z.ZodString;
20175
+ body: z.ZodString;
20176
+ data: z.ZodObject<{
20177
+ serverId: z.ZodString;
20178
+ agentId: z.ZodString;
20179
+ reason: z.ZodEnum<["finished", "error", "permission"]>;
20180
+ }, "strip", z.ZodTypeAny, {
20181
+ agentId: string;
20182
+ reason: "finished" | "error" | "permission";
20183
+ serverId: string;
20184
+ }, {
20185
+ agentId: string;
20186
+ reason: "finished" | "error" | "permission";
20187
+ serverId: string;
20188
+ }>;
20189
+ }, "strip", z.ZodTypeAny, {
20190
+ title: string;
20191
+ body: string;
20192
+ data: {
20193
+ agentId: string;
20194
+ reason: "finished" | "error" | "permission";
20195
+ serverId: string;
20196
+ };
20197
+ }, {
20198
+ title: string;
20199
+ body: string;
20200
+ data: {
20201
+ agentId: string;
20202
+ reason: "finished" | "error" | "permission";
20203
+ serverId: string;
20204
+ };
20205
+ }>>;
19895
20206
  }, "strip", z.ZodTypeAny, {
19896
20207
  reason: "finished" | "error" | "permission";
19897
20208
  provider: string;
19898
20209
  type: "attention_required";
19899
20210
  timestamp: string;
19900
20211
  shouldNotify: boolean;
20212
+ notification?: {
20213
+ title: string;
20214
+ body: string;
20215
+ data: {
20216
+ agentId: string;
20217
+ reason: "finished" | "error" | "permission";
20218
+ serverId: string;
20219
+ };
20220
+ } | undefined;
19901
20221
  }, {
19902
20222
  reason: "finished" | "error" | "permission";
19903
20223
  provider: string;
19904
20224
  type: "attention_required";
19905
20225
  timestamp: string;
19906
20226
  shouldNotify: boolean;
20227
+ notification?: {
20228
+ title: string;
20229
+ body: string;
20230
+ data: {
20231
+ agentId: string;
20232
+ reason: "finished" | "error" | "permission";
20233
+ serverId: string;
20234
+ };
20235
+ } | undefined;
19907
20236
  }>]>;
19908
20237
  timestamp: z.ZodString;
19909
20238
  seq: z.ZodOptional<z.ZodNumber>;
@@ -19949,6 +20278,15 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
19949
20278
  type: "attention_required";
19950
20279
  timestamp: string;
19951
20280
  shouldNotify: boolean;
20281
+ notification?: {
20282
+ title: string;
20283
+ body: string;
20284
+ data: {
20285
+ agentId: string;
20286
+ reason: "finished" | "error" | "permission";
20287
+ serverId: string;
20288
+ };
20289
+ } | undefined;
19952
20290
  };
19953
20291
  seq?: number | undefined;
19954
20292
  epoch?: string | undefined;
@@ -19993,6 +20331,15 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
19993
20331
  type: "attention_required";
19994
20332
  timestamp: string;
19995
20333
  shouldNotify: boolean;
20334
+ notification?: {
20335
+ title: string;
20336
+ body: string;
20337
+ data: {
20338
+ agentId: string;
20339
+ reason: "finished" | "error" | "permission";
20340
+ serverId: string;
20341
+ };
20342
+ } | undefined;
19996
20343
  };
19997
20344
  seq?: number | undefined;
19998
20345
  epoch?: string | undefined;
@@ -20040,6 +20387,15 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
20040
20387
  type: "attention_required";
20041
20388
  timestamp: string;
20042
20389
  shouldNotify: boolean;
20390
+ notification?: {
20391
+ title: string;
20392
+ body: string;
20393
+ data: {
20394
+ agentId: string;
20395
+ reason: "finished" | "error" | "permission";
20396
+ serverId: string;
20397
+ };
20398
+ } | undefined;
20043
20399
  };
20044
20400
  seq?: number | undefined;
20045
20401
  epoch?: string | undefined;
@@ -20087,6 +20443,15 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
20087
20443
  type: "attention_required";
20088
20444
  timestamp: string;
20089
20445
  shouldNotify: boolean;
20446
+ notification?: {
20447
+ title: string;
20448
+ body: string;
20449
+ data: {
20450
+ agentId: string;
20451
+ reason: "finished" | "error" | "permission";
20452
+ serverId: string;
20453
+ };
20454
+ } | undefined;
20090
20455
  };
20091
20456
  seq?: number | undefined;
20092
20457
  epoch?: string | undefined;
@@ -21854,6 +22219,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
21854
22219
  baseRef: z.ZodNull;
21855
22220
  aheadBehind: z.ZodNull;
21856
22221
  aheadOfOrigin: z.ZodNull;
22222
+ behindOfOrigin: z.ZodNull;
21857
22223
  hasRemote: z.ZodBoolean;
21858
22224
  remoteUrl: z.ZodNull;
21859
22225
  }, "strip", z.ZodTypeAny, {
@@ -21872,6 +22238,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
21872
22238
  isDirty: null;
21873
22239
  aheadBehind: null;
21874
22240
  aheadOfOrigin: null;
22241
+ behindOfOrigin: null;
21875
22242
  hasRemote: boolean;
21876
22243
  }, {
21877
22244
  error: {
@@ -21889,6 +22256,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
21889
22256
  isDirty: null;
21890
22257
  aheadBehind: null;
21891
22258
  aheadOfOrigin: null;
22259
+ behindOfOrigin: null;
21892
22260
  hasRemote: boolean;
21893
22261
  }>, z.ZodObject<{
21894
22262
  cwd: z.ZodString;
@@ -21921,6 +22289,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
21921
22289
  behind: number;
21922
22290
  }>>;
21923
22291
  aheadOfOrigin: z.ZodNullable<z.ZodNumber>;
22292
+ behindOfOrigin: z.ZodNullable<z.ZodNumber>;
21924
22293
  hasRemote: z.ZodBoolean;
21925
22294
  remoteUrl: z.ZodNullable<z.ZodString>;
21926
22295
  }, "strip", z.ZodTypeAny, {
@@ -21942,6 +22311,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
21942
22311
  behind: number;
21943
22312
  } | null;
21944
22313
  aheadOfOrigin: number | null;
22314
+ behindOfOrigin: number | null;
21945
22315
  hasRemote: boolean;
21946
22316
  }, {
21947
22317
  error: {
@@ -21962,6 +22332,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
21962
22332
  behind: number;
21963
22333
  } | null;
21964
22334
  aheadOfOrigin: number | null;
22335
+ behindOfOrigin: number | null;
21965
22336
  hasRemote: boolean;
21966
22337
  }>, z.ZodObject<{
21967
22338
  cwd: z.ZodString;
@@ -21995,6 +22366,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
21995
22366
  behind: number;
21996
22367
  }>>;
21997
22368
  aheadOfOrigin: z.ZodNullable<z.ZodNumber>;
22369
+ behindOfOrigin: z.ZodNullable<z.ZodNumber>;
21998
22370
  hasRemote: z.ZodBoolean;
21999
22371
  remoteUrl: z.ZodNullable<z.ZodString>;
22000
22372
  }, "strip", z.ZodTypeAny, {
@@ -22017,6 +22389,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
22017
22389
  behind: number;
22018
22390
  } | null;
22019
22391
  aheadOfOrigin: number | null;
22392
+ behindOfOrigin: number | null;
22020
22393
  hasRemote: boolean;
22021
22394
  }, {
22022
22395
  error: {
@@ -22038,6 +22411,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
22038
22411
  behind: number;
22039
22412
  } | null;
22040
22413
  aheadOfOrigin: number | null;
22414
+ behindOfOrigin: number | null;
22041
22415
  hasRemote: boolean;
22042
22416
  }>]>;
22043
22417
  }, "strip", z.ZodTypeAny, {
@@ -22058,6 +22432,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
22058
22432
  isDirty: null;
22059
22433
  aheadBehind: null;
22060
22434
  aheadOfOrigin: null;
22435
+ behindOfOrigin: null;
22061
22436
  hasRemote: boolean;
22062
22437
  } | {
22063
22438
  error: {
@@ -22078,6 +22453,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
22078
22453
  behind: number;
22079
22454
  } | null;
22080
22455
  aheadOfOrigin: number | null;
22456
+ behindOfOrigin: number | null;
22081
22457
  hasRemote: boolean;
22082
22458
  } | {
22083
22459
  error: {
@@ -22099,6 +22475,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
22099
22475
  behind: number;
22100
22476
  } | null;
22101
22477
  aheadOfOrigin: number | null;
22478
+ behindOfOrigin: number | null;
22102
22479
  hasRemote: boolean;
22103
22480
  };
22104
22481
  }, {
@@ -22119,6 +22496,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
22119
22496
  isDirty: null;
22120
22497
  aheadBehind: null;
22121
22498
  aheadOfOrigin: null;
22499
+ behindOfOrigin: null;
22122
22500
  hasRemote: boolean;
22123
22501
  } | {
22124
22502
  error: {
@@ -22139,6 +22517,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
22139
22517
  behind: number;
22140
22518
  } | null;
22141
22519
  aheadOfOrigin: number | null;
22520
+ behindOfOrigin: number | null;
22142
22521
  hasRemote: boolean;
22143
22522
  } | {
22144
22523
  error: {
@@ -22160,6 +22539,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
22160
22539
  behind: number;
22161
22540
  } | null;
22162
22541
  aheadOfOrigin: number | null;
22542
+ behindOfOrigin: number | null;
22163
22543
  hasRemote: boolean;
22164
22544
  };
22165
22545
  }>, z.ZodObject<{
@@ -22954,18 +23334,21 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
22954
23334
  state: z.ZodString;
22955
23335
  baseRefName: z.ZodString;
22956
23336
  headRefName: z.ZodString;
23337
+ isMerged: z.ZodBoolean;
22957
23338
  }, "strip", z.ZodTypeAny, {
22958
23339
  title: string;
22959
23340
  url: string;
22960
23341
  state: string;
22961
23342
  baseRefName: string;
22962
23343
  headRefName: string;
23344
+ isMerged: boolean;
22963
23345
  }, {
22964
23346
  title: string;
22965
23347
  url: string;
22966
23348
  state: string;
22967
23349
  baseRefName: string;
22968
23350
  headRefName: string;
23351
+ isMerged: boolean;
22969
23352
  }>>;
22970
23353
  githubFeaturesEnabled: z.ZodBoolean;
22971
23354
  error: z.ZodNullable<z.ZodObject<{
@@ -22991,6 +23374,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
22991
23374
  state: string;
22992
23375
  baseRefName: string;
22993
23376
  headRefName: string;
23377
+ isMerged: boolean;
22994
23378
  } | null;
22995
23379
  requestId: string;
22996
23380
  githubFeaturesEnabled: boolean;
@@ -23006,6 +23390,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23006
23390
  state: string;
23007
23391
  baseRefName: string;
23008
23392
  headRefName: string;
23393
+ isMerged: boolean;
23009
23394
  } | null;
23010
23395
  requestId: string;
23011
23396
  githubFeaturesEnabled: boolean;
@@ -23024,6 +23409,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23024
23409
  state: string;
23025
23410
  baseRefName: string;
23026
23411
  headRefName: string;
23412
+ isMerged: boolean;
23027
23413
  } | null;
23028
23414
  requestId: string;
23029
23415
  githubFeaturesEnabled: boolean;
@@ -23042,6 +23428,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23042
23428
  state: string;
23043
23429
  baseRefName: string;
23044
23430
  headRefName: string;
23431
+ isMerged: boolean;
23045
23432
  } | null;
23046
23433
  requestId: string;
23047
23434
  githubFeaturesEnabled: boolean;
@@ -23118,21 +23505,43 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23118
23505
  type: z.ZodLiteral<"directory_suggestions_response">;
23119
23506
  payload: z.ZodObject<{
23120
23507
  directories: z.ZodArray<z.ZodString, "many">;
23508
+ entries: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
23509
+ path: z.ZodString;
23510
+ kind: z.ZodEnum<["file", "directory"]>;
23511
+ }, "strip", z.ZodTypeAny, {
23512
+ path: string;
23513
+ kind: "file" | "directory";
23514
+ }, {
23515
+ path: string;
23516
+ kind: "file" | "directory";
23517
+ }>, "many">>>;
23121
23518
  error: z.ZodNullable<z.ZodString>;
23122
23519
  requestId: z.ZodString;
23123
23520
  }, "strip", z.ZodTypeAny, {
23124
23521
  error: string | null;
23522
+ entries: {
23523
+ path: string;
23524
+ kind: "file" | "directory";
23525
+ }[];
23125
23526
  requestId: string;
23126
23527
  directories: string[];
23127
23528
  }, {
23128
23529
  error: string | null;
23129
23530
  requestId: string;
23130
23531
  directories: string[];
23532
+ entries?: {
23533
+ path: string;
23534
+ kind: "file" | "directory";
23535
+ }[] | undefined;
23131
23536
  }>;
23132
23537
  }, "strip", z.ZodTypeAny, {
23133
23538
  type: "directory_suggestions_response";
23134
23539
  payload: {
23135
23540
  error: string | null;
23541
+ entries: {
23542
+ path: string;
23543
+ kind: "file" | "directory";
23544
+ }[];
23136
23545
  requestId: string;
23137
23546
  directories: string[];
23138
23547
  };
@@ -23142,6 +23551,10 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23142
23551
  error: string | null;
23143
23552
  requestId: string;
23144
23553
  directories: string[];
23554
+ entries?: {
23555
+ path: string;
23556
+ kind: "file" | "directory";
23557
+ }[] | undefined;
23145
23558
  };
23146
23559
  }>, z.ZodObject<{
23147
23560
  type: z.ZodLiteral<"paseo_worktree_list_response">;
@@ -23840,68 +24253,6 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23840
24253
  }[];
23841
24254
  requestId: string;
23842
24255
  };
23843
- }>, z.ZodObject<{
23844
- type: z.ZodLiteral<"execute_command_response">;
23845
- payload: z.ZodObject<{
23846
- agentId: z.ZodString;
23847
- result: z.ZodNullable<z.ZodObject<{
23848
- text: z.ZodString;
23849
- timeline: z.ZodArray<z.ZodType<AgentTimelineItem, z.ZodTypeDef, unknown>, "many">;
23850
- usage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
23851
- }, "strip", z.ZodTypeAny, {
23852
- text: string;
23853
- timeline: AgentTimelineItem[];
23854
- usage?: AgentUsage | undefined;
23855
- }, {
23856
- text: string;
23857
- timeline: unknown[];
23858
- usage?: AgentUsage | undefined;
23859
- }>>;
23860
- error: z.ZodNullable<z.ZodString>;
23861
- requestId: z.ZodString;
23862
- }, "strip", z.ZodTypeAny, {
23863
- error: string | null;
23864
- agentId: string;
23865
- requestId: string;
23866
- result: {
23867
- text: string;
23868
- timeline: AgentTimelineItem[];
23869
- usage?: AgentUsage | undefined;
23870
- } | null;
23871
- }, {
23872
- error: string | null;
23873
- agentId: string;
23874
- requestId: string;
23875
- result: {
23876
- text: string;
23877
- timeline: unknown[];
23878
- usage?: AgentUsage | undefined;
23879
- } | null;
23880
- }>;
23881
- }, "strip", z.ZodTypeAny, {
23882
- type: "execute_command_response";
23883
- payload: {
23884
- error: string | null;
23885
- agentId: string;
23886
- requestId: string;
23887
- result: {
23888
- text: string;
23889
- timeline: AgentTimelineItem[];
23890
- usage?: AgentUsage | undefined;
23891
- } | null;
23892
- };
23893
- }, {
23894
- type: "execute_command_response";
23895
- payload: {
23896
- error: string | null;
23897
- agentId: string;
23898
- requestId: string;
23899
- result: {
23900
- text: string;
23901
- timeline: unknown[];
23902
- usage?: AgentUsage | undefined;
23903
- } | null;
23904
- };
23905
24256
  }>, z.ZodObject<{
23906
24257
  type: z.ZodLiteral<"list_terminals_response">;
23907
24258
  payload: z.ZodObject<{
@@ -24965,6 +25316,15 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
24965
25316
  type: "attention_required";
24966
25317
  timestamp: string;
24967
25318
  shouldNotify: boolean;
25319
+ notification?: {
25320
+ title: string;
25321
+ body: string;
25322
+ data: {
25323
+ agentId: string;
25324
+ reason: "finished" | "error" | "permission";
25325
+ serverId: string;
25326
+ };
25327
+ } | undefined;
24968
25328
  };
24969
25329
  seq?: number | undefined;
24970
25330
  epoch?: string | undefined;
@@ -25220,6 +25580,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
25220
25580
  isDirty: null;
25221
25581
  aheadBehind: null;
25222
25582
  aheadOfOrigin: null;
25583
+ behindOfOrigin: null;
25223
25584
  hasRemote: boolean;
25224
25585
  } | {
25225
25586
  error: {
@@ -25240,6 +25601,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
25240
25601
  behind: number;
25241
25602
  } | null;
25242
25603
  aheadOfOrigin: number | null;
25604
+ behindOfOrigin: number | null;
25243
25605
  hasRemote: boolean;
25244
25606
  } | {
25245
25607
  error: {
@@ -25261,6 +25623,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
25261
25623
  behind: number;
25262
25624
  } | null;
25263
25625
  aheadOfOrigin: number | null;
25626
+ behindOfOrigin: number | null;
25264
25627
  hasRemote: boolean;
25265
25628
  };
25266
25629
  } | {
@@ -25398,6 +25761,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
25398
25761
  state: string;
25399
25762
  baseRefName: string;
25400
25763
  headRefName: string;
25764
+ isMerged: boolean;
25401
25765
  } | null;
25402
25766
  requestId: string;
25403
25767
  githubFeaturesEnabled: boolean;
@@ -25422,6 +25786,10 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
25422
25786
  type: "directory_suggestions_response";
25423
25787
  payload: {
25424
25788
  error: string | null;
25789
+ entries: {
25790
+ path: string;
25791
+ kind: "file" | "directory";
25792
+ }[];
25425
25793
  requestId: string;
25426
25794
  directories: string[];
25427
25795
  };
@@ -25556,18 +25924,6 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
25556
25924
  }[];
25557
25925
  requestId: string;
25558
25926
  };
25559
- } | {
25560
- type: "execute_command_response";
25561
- payload: {
25562
- error: string | null;
25563
- agentId: string;
25564
- requestId: string;
25565
- result: {
25566
- text: string;
25567
- timeline: AgentTimelineItem[];
25568
- usage?: AgentUsage | undefined;
25569
- } | null;
25570
- };
25571
25927
  } | {
25572
25928
  type: "list_terminals_response";
25573
25929
  payload: {
@@ -25952,6 +26308,15 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
25952
26308
  type: "attention_required";
25953
26309
  timestamp: string;
25954
26310
  shouldNotify: boolean;
26311
+ notification?: {
26312
+ title: string;
26313
+ body: string;
26314
+ data: {
26315
+ agentId: string;
26316
+ reason: "finished" | "error" | "permission";
26317
+ serverId: string;
26318
+ };
26319
+ } | undefined;
25955
26320
  };
25956
26321
  seq?: number | undefined;
25957
26322
  epoch?: string | undefined;
@@ -26207,6 +26572,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
26207
26572
  isDirty: null;
26208
26573
  aheadBehind: null;
26209
26574
  aheadOfOrigin: null;
26575
+ behindOfOrigin: null;
26210
26576
  hasRemote: boolean;
26211
26577
  } | {
26212
26578
  error: {
@@ -26227,6 +26593,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
26227
26593
  behind: number;
26228
26594
  } | null;
26229
26595
  aheadOfOrigin: number | null;
26596
+ behindOfOrigin: number | null;
26230
26597
  hasRemote: boolean;
26231
26598
  } | {
26232
26599
  error: {
@@ -26248,6 +26615,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
26248
26615
  behind: number;
26249
26616
  } | null;
26250
26617
  aheadOfOrigin: number | null;
26618
+ behindOfOrigin: number | null;
26251
26619
  hasRemote: boolean;
26252
26620
  };
26253
26621
  } | {
@@ -26385,6 +26753,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
26385
26753
  state: string;
26386
26754
  baseRefName: string;
26387
26755
  headRefName: string;
26756
+ isMerged: boolean;
26388
26757
  } | null;
26389
26758
  requestId: string;
26390
26759
  githubFeaturesEnabled: boolean;
@@ -26411,6 +26780,10 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
26411
26780
  error: string | null;
26412
26781
  requestId: string;
26413
26782
  directories: string[];
26783
+ entries?: {
26784
+ path: string;
26785
+ kind: "file" | "directory";
26786
+ }[] | undefined;
26414
26787
  };
26415
26788
  } | {
26416
26789
  type: "paseo_worktree_list_response";
@@ -26543,18 +26916,6 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
26543
26916
  }[];
26544
26917
  requestId: string;
26545
26918
  };
26546
- } | {
26547
- type: "execute_command_response";
26548
- payload: {
26549
- error: string | null;
26550
- agentId: string;
26551
- requestId: string;
26552
- result: {
26553
- text: string;
26554
- timeline: unknown[];
26555
- usage?: AgentUsage | undefined;
26556
- } | null;
26557
- };
26558
26919
  } | {
26559
26920
  type: "list_terminals_response";
26560
26921
  payload: {
@@ -27766,15 +28127,15 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
27766
28127
  type: "checkout_pr_create_request";
27767
28128
  requestId: string;
27768
28129
  title?: string | undefined;
27769
- baseRef?: string | undefined;
27770
28130
  body?: string | undefined;
28131
+ baseRef?: string | undefined;
27771
28132
  }, {
27772
28133
  cwd: string;
27773
28134
  type: "checkout_pr_create_request";
27774
28135
  requestId: string;
27775
28136
  title?: string | undefined;
27776
- baseRef?: string | undefined;
27777
28137
  body?: string | undefined;
28138
+ baseRef?: string | undefined;
27778
28139
  }>, z.ZodObject<{
27779
28140
  type: z.ZodLiteral<"checkout_pr_status_request">;
27780
28141
  cwd: z.ZodString;
@@ -27823,18 +28184,27 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
27823
28184
  }>, z.ZodObject<{
27824
28185
  type: z.ZodLiteral<"directory_suggestions_request">;
27825
28186
  query: z.ZodString;
28187
+ cwd: z.ZodOptional<z.ZodString>;
28188
+ includeFiles: z.ZodOptional<z.ZodBoolean>;
28189
+ includeDirectories: z.ZodOptional<z.ZodBoolean>;
27826
28190
  limit: z.ZodOptional<z.ZodNumber>;
27827
28191
  requestId: z.ZodString;
27828
28192
  }, "strip", z.ZodTypeAny, {
27829
28193
  type: "directory_suggestions_request";
27830
28194
  query: string;
27831
28195
  requestId: string;
28196
+ cwd?: string | undefined;
27832
28197
  limit?: number | undefined;
28198
+ includeFiles?: boolean | undefined;
28199
+ includeDirectories?: boolean | undefined;
27833
28200
  }, {
27834
28201
  type: "directory_suggestions_request";
27835
28202
  query: string;
27836
28203
  requestId: string;
28204
+ cwd?: string | undefined;
27837
28205
  limit?: number | undefined;
28206
+ includeFiles?: boolean | undefined;
28207
+ includeDirectories?: boolean | undefined;
27838
28208
  }>, z.ZodObject<{
27839
28209
  type: z.ZodLiteral<"paseo_worktree_list_request">;
27840
28210
  cwd: z.ZodOptional<z.ZodString>;
@@ -27958,33 +28328,48 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
27958
28328
  }>, z.ZodObject<{
27959
28329
  type: z.ZodLiteral<"list_commands_request">;
27960
28330
  agentId: z.ZodString;
28331
+ draftConfig: z.ZodOptional<z.ZodObject<{
28332
+ provider: z.ZodEnum<[string, ...string[]]>;
28333
+ cwd: z.ZodString;
28334
+ modeId: z.ZodOptional<z.ZodString>;
28335
+ model: z.ZodOptional<z.ZodString>;
28336
+ thinkingOptionId: z.ZodOptional<z.ZodString>;
28337
+ }, "strip", z.ZodTypeAny, {
28338
+ provider: string;
28339
+ cwd: string;
28340
+ modeId?: string | undefined;
28341
+ model?: string | undefined;
28342
+ thinkingOptionId?: string | undefined;
28343
+ }, {
28344
+ provider: string;
28345
+ cwd: string;
28346
+ modeId?: string | undefined;
28347
+ model?: string | undefined;
28348
+ thinkingOptionId?: string | undefined;
28349
+ }>>;
27961
28350
  requestId: z.ZodString;
27962
28351
  }, "strip", z.ZodTypeAny, {
27963
28352
  agentId: string;
27964
28353
  type: "list_commands_request";
27965
28354
  requestId: string;
28355
+ draftConfig?: {
28356
+ provider: string;
28357
+ cwd: string;
28358
+ modeId?: string | undefined;
28359
+ model?: string | undefined;
28360
+ thinkingOptionId?: string | undefined;
28361
+ } | undefined;
27966
28362
  }, {
27967
28363
  agentId: string;
27968
28364
  type: "list_commands_request";
27969
28365
  requestId: string;
27970
- }>, z.ZodObject<{
27971
- type: z.ZodLiteral<"execute_command_request">;
27972
- agentId: z.ZodString;
27973
- commandName: z.ZodString;
27974
- args: z.ZodOptional<z.ZodString>;
27975
- requestId: z.ZodString;
27976
- }, "strip", z.ZodTypeAny, {
27977
- agentId: string;
27978
- type: "execute_command_request";
27979
- requestId: string;
27980
- commandName: string;
27981
- args?: string | undefined;
27982
- }, {
27983
- agentId: string;
27984
- type: "execute_command_request";
27985
- requestId: string;
27986
- commandName: string;
27987
- args?: string | undefined;
28366
+ draftConfig?: {
28367
+ provider: string;
28368
+ cwd: string;
28369
+ modeId?: string | undefined;
28370
+ model?: string | undefined;
28371
+ thinkingOptionId?: string | undefined;
28372
+ } | undefined;
27988
28373
  }>, z.ZodObject<{
27989
28374
  type: z.ZodLiteral<"register_push_token">;
27990
28375
  token: z.ZodString;
@@ -28455,8 +28840,8 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
28455
28840
  type: "checkout_pr_create_request";
28456
28841
  requestId: string;
28457
28842
  title?: string | undefined;
28458
- baseRef?: string | undefined;
28459
28843
  body?: string | undefined;
28844
+ baseRef?: string | undefined;
28460
28845
  } | {
28461
28846
  cwd: string;
28462
28847
  type: "checkout_pr_status_request";
@@ -28476,7 +28861,10 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
28476
28861
  type: "directory_suggestions_request";
28477
28862
  query: string;
28478
28863
  requestId: string;
28864
+ cwd?: string | undefined;
28479
28865
  limit?: number | undefined;
28866
+ includeFiles?: boolean | undefined;
28867
+ includeDirectories?: boolean | undefined;
28480
28868
  } | {
28481
28869
  type: "paseo_worktree_list_request";
28482
28870
  requestId: string;
@@ -28521,12 +28909,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
28521
28909
  agentId: string;
28522
28910
  type: "list_commands_request";
28523
28911
  requestId: string;
28524
- } | {
28525
- agentId: string;
28526
- type: "execute_command_request";
28527
- requestId: string;
28528
- commandName: string;
28529
- args?: string | undefined;
28912
+ draftConfig?: {
28913
+ provider: string;
28914
+ cwd: string;
28915
+ modeId?: string | undefined;
28916
+ model?: string | undefined;
28917
+ thinkingOptionId?: string | undefined;
28918
+ } | undefined;
28530
28919
  } | {
28531
28920
  type: "register_push_token";
28532
28921
  token: string;
@@ -28858,8 +29247,8 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
28858
29247
  type: "checkout_pr_create_request";
28859
29248
  requestId: string;
28860
29249
  title?: string | undefined;
28861
- baseRef?: string | undefined;
28862
29250
  body?: string | undefined;
29251
+ baseRef?: string | undefined;
28863
29252
  } | {
28864
29253
  cwd: string;
28865
29254
  type: "checkout_pr_status_request";
@@ -28879,7 +29268,10 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
28879
29268
  type: "directory_suggestions_request";
28880
29269
  query: string;
28881
29270
  requestId: string;
29271
+ cwd?: string | undefined;
28882
29272
  limit?: number | undefined;
29273
+ includeFiles?: boolean | undefined;
29274
+ includeDirectories?: boolean | undefined;
28883
29275
  } | {
28884
29276
  type: "paseo_worktree_list_request";
28885
29277
  requestId: string;
@@ -28924,12 +29316,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
28924
29316
  agentId: string;
28925
29317
  type: "list_commands_request";
28926
29318
  requestId: string;
28927
- } | {
28928
- agentId: string;
28929
- type: "execute_command_request";
28930
- requestId: string;
28931
- commandName: string;
28932
- args?: string | undefined;
29319
+ draftConfig?: {
29320
+ provider: string;
29321
+ cwd: string;
29322
+ modeId?: string | undefined;
29323
+ model?: string | undefined;
29324
+ thinkingOptionId?: string | undefined;
29325
+ } | undefined;
28933
29326
  } | {
28934
29327
  type: "register_push_token";
28935
29328
  token: string;
@@ -29974,18 +30367,69 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
29974
30367
  reason: z.ZodEnum<["finished", "error", "permission"]>;
29975
30368
  timestamp: z.ZodString;
29976
30369
  shouldNotify: z.ZodBoolean;
30370
+ notification: z.ZodOptional<z.ZodObject<{
30371
+ title: z.ZodString;
30372
+ body: z.ZodString;
30373
+ data: z.ZodObject<{
30374
+ serverId: z.ZodString;
30375
+ agentId: z.ZodString;
30376
+ reason: z.ZodEnum<["finished", "error", "permission"]>;
30377
+ }, "strip", z.ZodTypeAny, {
30378
+ agentId: string;
30379
+ reason: "finished" | "error" | "permission";
30380
+ serverId: string;
30381
+ }, {
30382
+ agentId: string;
30383
+ reason: "finished" | "error" | "permission";
30384
+ serverId: string;
30385
+ }>;
30386
+ }, "strip", z.ZodTypeAny, {
30387
+ title: string;
30388
+ body: string;
30389
+ data: {
30390
+ agentId: string;
30391
+ reason: "finished" | "error" | "permission";
30392
+ serverId: string;
30393
+ };
30394
+ }, {
30395
+ title: string;
30396
+ body: string;
30397
+ data: {
30398
+ agentId: string;
30399
+ reason: "finished" | "error" | "permission";
30400
+ serverId: string;
30401
+ };
30402
+ }>>;
29977
30403
  }, "strip", z.ZodTypeAny, {
29978
30404
  reason: "finished" | "error" | "permission";
29979
30405
  provider: string;
29980
30406
  type: "attention_required";
29981
30407
  timestamp: string;
29982
30408
  shouldNotify: boolean;
30409
+ notification?: {
30410
+ title: string;
30411
+ body: string;
30412
+ data: {
30413
+ agentId: string;
30414
+ reason: "finished" | "error" | "permission";
30415
+ serverId: string;
30416
+ };
30417
+ } | undefined;
29983
30418
  }, {
29984
30419
  reason: "finished" | "error" | "permission";
29985
30420
  provider: string;
29986
30421
  type: "attention_required";
29987
30422
  timestamp: string;
29988
30423
  shouldNotify: boolean;
30424
+ notification?: {
30425
+ title: string;
30426
+ body: string;
30427
+ data: {
30428
+ agentId: string;
30429
+ reason: "finished" | "error" | "permission";
30430
+ serverId: string;
30431
+ };
30432
+ } | undefined;
29989
30433
  }>]>;
29990
30434
  timestamp: z.ZodString;
29991
30435
  seq: z.ZodOptional<z.ZodNumber>;
@@ -30031,6 +30475,15 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
30031
30475
  type: "attention_required";
30032
30476
  timestamp: string;
30033
30477
  shouldNotify: boolean;
30478
+ notification?: {
30479
+ title: string;
30480
+ body: string;
30481
+ data: {
30482
+ agentId: string;
30483
+ reason: "finished" | "error" | "permission";
30484
+ serverId: string;
30485
+ };
30486
+ } | undefined;
30034
30487
  };
30035
30488
  seq?: number | undefined;
30036
30489
  epoch?: string | undefined;
@@ -30075,6 +30528,15 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
30075
30528
  type: "attention_required";
30076
30529
  timestamp: string;
30077
30530
  shouldNotify: boolean;
30531
+ notification?: {
30532
+ title: string;
30533
+ body: string;
30534
+ data: {
30535
+ agentId: string;
30536
+ reason: "finished" | "error" | "permission";
30537
+ serverId: string;
30538
+ };
30539
+ } | undefined;
30078
30540
  };
30079
30541
  seq?: number | undefined;
30080
30542
  epoch?: string | undefined;
@@ -30122,6 +30584,15 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
30122
30584
  type: "attention_required";
30123
30585
  timestamp: string;
30124
30586
  shouldNotify: boolean;
30587
+ notification?: {
30588
+ title: string;
30589
+ body: string;
30590
+ data: {
30591
+ agentId: string;
30592
+ reason: "finished" | "error" | "permission";
30593
+ serverId: string;
30594
+ };
30595
+ } | undefined;
30125
30596
  };
30126
30597
  seq?: number | undefined;
30127
30598
  epoch?: string | undefined;
@@ -30169,6 +30640,15 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
30169
30640
  type: "attention_required";
30170
30641
  timestamp: string;
30171
30642
  shouldNotify: boolean;
30643
+ notification?: {
30644
+ title: string;
30645
+ body: string;
30646
+ data: {
30647
+ agentId: string;
30648
+ reason: "finished" | "error" | "permission";
30649
+ serverId: string;
30650
+ };
30651
+ } | undefined;
30172
30652
  };
30173
30653
  seq?: number | undefined;
30174
30654
  epoch?: string | undefined;
@@ -31936,6 +32416,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
31936
32416
  baseRef: z.ZodNull;
31937
32417
  aheadBehind: z.ZodNull;
31938
32418
  aheadOfOrigin: z.ZodNull;
32419
+ behindOfOrigin: z.ZodNull;
31939
32420
  hasRemote: z.ZodBoolean;
31940
32421
  remoteUrl: z.ZodNull;
31941
32422
  }, "strip", z.ZodTypeAny, {
@@ -31954,6 +32435,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
31954
32435
  isDirty: null;
31955
32436
  aheadBehind: null;
31956
32437
  aheadOfOrigin: null;
32438
+ behindOfOrigin: null;
31957
32439
  hasRemote: boolean;
31958
32440
  }, {
31959
32441
  error: {
@@ -31971,6 +32453,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
31971
32453
  isDirty: null;
31972
32454
  aheadBehind: null;
31973
32455
  aheadOfOrigin: null;
32456
+ behindOfOrigin: null;
31974
32457
  hasRemote: boolean;
31975
32458
  }>, z.ZodObject<{
31976
32459
  cwd: z.ZodString;
@@ -32003,6 +32486,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
32003
32486
  behind: number;
32004
32487
  }>>;
32005
32488
  aheadOfOrigin: z.ZodNullable<z.ZodNumber>;
32489
+ behindOfOrigin: z.ZodNullable<z.ZodNumber>;
32006
32490
  hasRemote: z.ZodBoolean;
32007
32491
  remoteUrl: z.ZodNullable<z.ZodString>;
32008
32492
  }, "strip", z.ZodTypeAny, {
@@ -32024,6 +32508,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
32024
32508
  behind: number;
32025
32509
  } | null;
32026
32510
  aheadOfOrigin: number | null;
32511
+ behindOfOrigin: number | null;
32027
32512
  hasRemote: boolean;
32028
32513
  }, {
32029
32514
  error: {
@@ -32044,6 +32529,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
32044
32529
  behind: number;
32045
32530
  } | null;
32046
32531
  aheadOfOrigin: number | null;
32532
+ behindOfOrigin: number | null;
32047
32533
  hasRemote: boolean;
32048
32534
  }>, z.ZodObject<{
32049
32535
  cwd: z.ZodString;
@@ -32077,6 +32563,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
32077
32563
  behind: number;
32078
32564
  }>>;
32079
32565
  aheadOfOrigin: z.ZodNullable<z.ZodNumber>;
32566
+ behindOfOrigin: z.ZodNullable<z.ZodNumber>;
32080
32567
  hasRemote: z.ZodBoolean;
32081
32568
  remoteUrl: z.ZodNullable<z.ZodString>;
32082
32569
  }, "strip", z.ZodTypeAny, {
@@ -32099,6 +32586,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
32099
32586
  behind: number;
32100
32587
  } | null;
32101
32588
  aheadOfOrigin: number | null;
32589
+ behindOfOrigin: number | null;
32102
32590
  hasRemote: boolean;
32103
32591
  }, {
32104
32592
  error: {
@@ -32120,6 +32608,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
32120
32608
  behind: number;
32121
32609
  } | null;
32122
32610
  aheadOfOrigin: number | null;
32611
+ behindOfOrigin: number | null;
32123
32612
  hasRemote: boolean;
32124
32613
  }>]>;
32125
32614
  }, "strip", z.ZodTypeAny, {
@@ -32140,6 +32629,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
32140
32629
  isDirty: null;
32141
32630
  aheadBehind: null;
32142
32631
  aheadOfOrigin: null;
32632
+ behindOfOrigin: null;
32143
32633
  hasRemote: boolean;
32144
32634
  } | {
32145
32635
  error: {
@@ -32160,6 +32650,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
32160
32650
  behind: number;
32161
32651
  } | null;
32162
32652
  aheadOfOrigin: number | null;
32653
+ behindOfOrigin: number | null;
32163
32654
  hasRemote: boolean;
32164
32655
  } | {
32165
32656
  error: {
@@ -32181,6 +32672,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
32181
32672
  behind: number;
32182
32673
  } | null;
32183
32674
  aheadOfOrigin: number | null;
32675
+ behindOfOrigin: number | null;
32184
32676
  hasRemote: boolean;
32185
32677
  };
32186
32678
  }, {
@@ -32201,6 +32693,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
32201
32693
  isDirty: null;
32202
32694
  aheadBehind: null;
32203
32695
  aheadOfOrigin: null;
32696
+ behindOfOrigin: null;
32204
32697
  hasRemote: boolean;
32205
32698
  } | {
32206
32699
  error: {
@@ -32221,6 +32714,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
32221
32714
  behind: number;
32222
32715
  } | null;
32223
32716
  aheadOfOrigin: number | null;
32717
+ behindOfOrigin: number | null;
32224
32718
  hasRemote: boolean;
32225
32719
  } | {
32226
32720
  error: {
@@ -32242,6 +32736,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
32242
32736
  behind: number;
32243
32737
  } | null;
32244
32738
  aheadOfOrigin: number | null;
32739
+ behindOfOrigin: number | null;
32245
32740
  hasRemote: boolean;
32246
32741
  };
32247
32742
  }>, z.ZodObject<{
@@ -33036,18 +33531,21 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
33036
33531
  state: z.ZodString;
33037
33532
  baseRefName: z.ZodString;
33038
33533
  headRefName: z.ZodString;
33534
+ isMerged: z.ZodBoolean;
33039
33535
  }, "strip", z.ZodTypeAny, {
33040
33536
  title: string;
33041
33537
  url: string;
33042
33538
  state: string;
33043
33539
  baseRefName: string;
33044
33540
  headRefName: string;
33541
+ isMerged: boolean;
33045
33542
  }, {
33046
33543
  title: string;
33047
33544
  url: string;
33048
33545
  state: string;
33049
33546
  baseRefName: string;
33050
33547
  headRefName: string;
33548
+ isMerged: boolean;
33051
33549
  }>>;
33052
33550
  githubFeaturesEnabled: z.ZodBoolean;
33053
33551
  error: z.ZodNullable<z.ZodObject<{
@@ -33073,6 +33571,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
33073
33571
  state: string;
33074
33572
  baseRefName: string;
33075
33573
  headRefName: string;
33574
+ isMerged: boolean;
33076
33575
  } | null;
33077
33576
  requestId: string;
33078
33577
  githubFeaturesEnabled: boolean;
@@ -33088,6 +33587,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
33088
33587
  state: string;
33089
33588
  baseRefName: string;
33090
33589
  headRefName: string;
33590
+ isMerged: boolean;
33091
33591
  } | null;
33092
33592
  requestId: string;
33093
33593
  githubFeaturesEnabled: boolean;
@@ -33106,6 +33606,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
33106
33606
  state: string;
33107
33607
  baseRefName: string;
33108
33608
  headRefName: string;
33609
+ isMerged: boolean;
33109
33610
  } | null;
33110
33611
  requestId: string;
33111
33612
  githubFeaturesEnabled: boolean;
@@ -33124,6 +33625,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
33124
33625
  state: string;
33125
33626
  baseRefName: string;
33126
33627
  headRefName: string;
33628
+ isMerged: boolean;
33127
33629
  } | null;
33128
33630
  requestId: string;
33129
33631
  githubFeaturesEnabled: boolean;
@@ -33200,21 +33702,43 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
33200
33702
  type: z.ZodLiteral<"directory_suggestions_response">;
33201
33703
  payload: z.ZodObject<{
33202
33704
  directories: z.ZodArray<z.ZodString, "many">;
33705
+ entries: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
33706
+ path: z.ZodString;
33707
+ kind: z.ZodEnum<["file", "directory"]>;
33708
+ }, "strip", z.ZodTypeAny, {
33709
+ path: string;
33710
+ kind: "file" | "directory";
33711
+ }, {
33712
+ path: string;
33713
+ kind: "file" | "directory";
33714
+ }>, "many">>>;
33203
33715
  error: z.ZodNullable<z.ZodString>;
33204
33716
  requestId: z.ZodString;
33205
33717
  }, "strip", z.ZodTypeAny, {
33206
33718
  error: string | null;
33719
+ entries: {
33720
+ path: string;
33721
+ kind: "file" | "directory";
33722
+ }[];
33207
33723
  requestId: string;
33208
33724
  directories: string[];
33209
33725
  }, {
33210
33726
  error: string | null;
33211
33727
  requestId: string;
33212
33728
  directories: string[];
33729
+ entries?: {
33730
+ path: string;
33731
+ kind: "file" | "directory";
33732
+ }[] | undefined;
33213
33733
  }>;
33214
33734
  }, "strip", z.ZodTypeAny, {
33215
33735
  type: "directory_suggestions_response";
33216
33736
  payload: {
33217
33737
  error: string | null;
33738
+ entries: {
33739
+ path: string;
33740
+ kind: "file" | "directory";
33741
+ }[];
33218
33742
  requestId: string;
33219
33743
  directories: string[];
33220
33744
  };
@@ -33224,6 +33748,10 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
33224
33748
  error: string | null;
33225
33749
  requestId: string;
33226
33750
  directories: string[];
33751
+ entries?: {
33752
+ path: string;
33753
+ kind: "file" | "directory";
33754
+ }[] | undefined;
33227
33755
  };
33228
33756
  }>, z.ZodObject<{
33229
33757
  type: z.ZodLiteral<"paseo_worktree_list_response">;
@@ -33922,68 +34450,6 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
33922
34450
  }[];
33923
34451
  requestId: string;
33924
34452
  };
33925
- }>, z.ZodObject<{
33926
- type: z.ZodLiteral<"execute_command_response">;
33927
- payload: z.ZodObject<{
33928
- agentId: z.ZodString;
33929
- result: z.ZodNullable<z.ZodObject<{
33930
- text: z.ZodString;
33931
- timeline: z.ZodArray<z.ZodType<AgentTimelineItem, z.ZodTypeDef, unknown>, "many">;
33932
- usage: z.ZodOptional<z.ZodType<AgentUsage, z.ZodTypeDef, AgentUsage>>;
33933
- }, "strip", z.ZodTypeAny, {
33934
- text: string;
33935
- timeline: AgentTimelineItem[];
33936
- usage?: AgentUsage | undefined;
33937
- }, {
33938
- text: string;
33939
- timeline: unknown[];
33940
- usage?: AgentUsage | undefined;
33941
- }>>;
33942
- error: z.ZodNullable<z.ZodString>;
33943
- requestId: z.ZodString;
33944
- }, "strip", z.ZodTypeAny, {
33945
- error: string | null;
33946
- agentId: string;
33947
- requestId: string;
33948
- result: {
33949
- text: string;
33950
- timeline: AgentTimelineItem[];
33951
- usage?: AgentUsage | undefined;
33952
- } | null;
33953
- }, {
33954
- error: string | null;
33955
- agentId: string;
33956
- requestId: string;
33957
- result: {
33958
- text: string;
33959
- timeline: unknown[];
33960
- usage?: AgentUsage | undefined;
33961
- } | null;
33962
- }>;
33963
- }, "strip", z.ZodTypeAny, {
33964
- type: "execute_command_response";
33965
- payload: {
33966
- error: string | null;
33967
- agentId: string;
33968
- requestId: string;
33969
- result: {
33970
- text: string;
33971
- timeline: AgentTimelineItem[];
33972
- usage?: AgentUsage | undefined;
33973
- } | null;
33974
- };
33975
- }, {
33976
- type: "execute_command_response";
33977
- payload: {
33978
- error: string | null;
33979
- agentId: string;
33980
- requestId: string;
33981
- result: {
33982
- text: string;
33983
- timeline: unknown[];
33984
- usage?: AgentUsage | undefined;
33985
- } | null;
33986
- };
33987
34453
  }>, z.ZodObject<{
33988
34454
  type: z.ZodLiteral<"list_terminals_response">;
33989
34455
  payload: z.ZodObject<{
@@ -35047,6 +35513,15 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
35047
35513
  type: "attention_required";
35048
35514
  timestamp: string;
35049
35515
  shouldNotify: boolean;
35516
+ notification?: {
35517
+ title: string;
35518
+ body: string;
35519
+ data: {
35520
+ agentId: string;
35521
+ reason: "finished" | "error" | "permission";
35522
+ serverId: string;
35523
+ };
35524
+ } | undefined;
35050
35525
  };
35051
35526
  seq?: number | undefined;
35052
35527
  epoch?: string | undefined;
@@ -35302,6 +35777,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
35302
35777
  isDirty: null;
35303
35778
  aheadBehind: null;
35304
35779
  aheadOfOrigin: null;
35780
+ behindOfOrigin: null;
35305
35781
  hasRemote: boolean;
35306
35782
  } | {
35307
35783
  error: {
@@ -35322,6 +35798,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
35322
35798
  behind: number;
35323
35799
  } | null;
35324
35800
  aheadOfOrigin: number | null;
35801
+ behindOfOrigin: number | null;
35325
35802
  hasRemote: boolean;
35326
35803
  } | {
35327
35804
  error: {
@@ -35343,6 +35820,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
35343
35820
  behind: number;
35344
35821
  } | null;
35345
35822
  aheadOfOrigin: number | null;
35823
+ behindOfOrigin: number | null;
35346
35824
  hasRemote: boolean;
35347
35825
  };
35348
35826
  } | {
@@ -35480,6 +35958,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
35480
35958
  state: string;
35481
35959
  baseRefName: string;
35482
35960
  headRefName: string;
35961
+ isMerged: boolean;
35483
35962
  } | null;
35484
35963
  requestId: string;
35485
35964
  githubFeaturesEnabled: boolean;
@@ -35504,6 +35983,10 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
35504
35983
  type: "directory_suggestions_response";
35505
35984
  payload: {
35506
35985
  error: string | null;
35986
+ entries: {
35987
+ path: string;
35988
+ kind: "file" | "directory";
35989
+ }[];
35507
35990
  requestId: string;
35508
35991
  directories: string[];
35509
35992
  };
@@ -35638,18 +36121,6 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
35638
36121
  }[];
35639
36122
  requestId: string;
35640
36123
  };
35641
- } | {
35642
- type: "execute_command_response";
35643
- payload: {
35644
- error: string | null;
35645
- agentId: string;
35646
- requestId: string;
35647
- result: {
35648
- text: string;
35649
- timeline: AgentTimelineItem[];
35650
- usage?: AgentUsage | undefined;
35651
- } | null;
35652
- };
35653
36124
  } | {
35654
36125
  type: "list_terminals_response";
35655
36126
  payload: {
@@ -36034,6 +36505,15 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
36034
36505
  type: "attention_required";
36035
36506
  timestamp: string;
36036
36507
  shouldNotify: boolean;
36508
+ notification?: {
36509
+ title: string;
36510
+ body: string;
36511
+ data: {
36512
+ agentId: string;
36513
+ reason: "finished" | "error" | "permission";
36514
+ serverId: string;
36515
+ };
36516
+ } | undefined;
36037
36517
  };
36038
36518
  seq?: number | undefined;
36039
36519
  epoch?: string | undefined;
@@ -36289,6 +36769,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
36289
36769
  isDirty: null;
36290
36770
  aheadBehind: null;
36291
36771
  aheadOfOrigin: null;
36772
+ behindOfOrigin: null;
36292
36773
  hasRemote: boolean;
36293
36774
  } | {
36294
36775
  error: {
@@ -36309,6 +36790,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
36309
36790
  behind: number;
36310
36791
  } | null;
36311
36792
  aheadOfOrigin: number | null;
36793
+ behindOfOrigin: number | null;
36312
36794
  hasRemote: boolean;
36313
36795
  } | {
36314
36796
  error: {
@@ -36330,6 +36812,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
36330
36812
  behind: number;
36331
36813
  } | null;
36332
36814
  aheadOfOrigin: number | null;
36815
+ behindOfOrigin: number | null;
36333
36816
  hasRemote: boolean;
36334
36817
  };
36335
36818
  } | {
@@ -36467,6 +36950,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
36467
36950
  state: string;
36468
36951
  baseRefName: string;
36469
36952
  headRefName: string;
36953
+ isMerged: boolean;
36470
36954
  } | null;
36471
36955
  requestId: string;
36472
36956
  githubFeaturesEnabled: boolean;
@@ -36493,6 +36977,10 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
36493
36977
  error: string | null;
36494
36978
  requestId: string;
36495
36979
  directories: string[];
36980
+ entries?: {
36981
+ path: string;
36982
+ kind: "file" | "directory";
36983
+ }[] | undefined;
36496
36984
  };
36497
36985
  } | {
36498
36986
  type: "paseo_worktree_list_response";
@@ -36625,18 +37113,6 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
36625
37113
  }[];
36626
37114
  requestId: string;
36627
37115
  };
36628
- } | {
36629
- type: "execute_command_response";
36630
- payload: {
36631
- error: string | null;
36632
- agentId: string;
36633
- requestId: string;
36634
- result: {
36635
- text: string;
36636
- timeline: unknown[];
36637
- usage?: AgentUsage | undefined;
36638
- } | null;
36639
- };
36640
37116
  } | {
36641
37117
  type: "list_terminals_response";
36642
37118
  payload: {