@otto-code/protocol 0.9.7 → 0.9.8

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.
@@ -3245,6 +3245,17 @@ export declare const ProviderSubagentListRequestMessageSchema: z.ZodObject<{
3245
3245
  parentAgentId: z.ZodString;
3246
3246
  requestId: z.ZodString;
3247
3247
  }, z.core.$strip>;
3248
+ export declare const ProviderSubagentControlRequestMessageSchema: z.ZodObject<{
3249
+ type: z.ZodLiteral<"agent.provider_subagents.control.request">;
3250
+ requestId: z.ZodString;
3251
+ parentAgentId: z.ZodString;
3252
+ subagentId: z.ZodString;
3253
+ action: z.ZodEnum<{
3254
+ archive: "archive";
3255
+ stop: "stop";
3256
+ }>;
3257
+ allowStopParent: z.ZodOptional<z.ZodBoolean>;
3258
+ }, z.core.$strip>;
3248
3259
  export declare const ProviderSubagentTimelineRequestMessageSchema: z.ZodObject<{
3249
3260
  type: z.ZodLiteral<"agent.provider_subagents.timeline.get.request">;
3250
3261
  parentAgentId: z.ZodString;
@@ -4889,6 +4900,56 @@ export declare const ProjectIconRequestSchema: z.ZodObject<{
4889
4900
  cwd: z.ZodString;
4890
4901
  requestId: z.ZodString;
4891
4902
  }, z.core.$strip>;
4903
+ export declare const BrowserHistoryEntrySchema: z.ZodObject<{
4904
+ url: z.ZodString;
4905
+ title: z.ZodString;
4906
+ visitedAt: z.ZodString;
4907
+ }, z.core.$strip>;
4908
+ export type BrowserHistoryEntry = z.infer<typeof BrowserHistoryEntrySchema>;
4909
+ export declare const BrowserHistorySearchRequestSchema: z.ZodObject<{
4910
+ type: z.ZodLiteral<"browser.history.search.request">;
4911
+ workspaceId: z.ZodString;
4912
+ query: z.ZodString;
4913
+ requestId: z.ZodString;
4914
+ }, z.core.$strip>;
4915
+ export declare const BrowserHistoryRecordRequestSchema: z.ZodObject<{
4916
+ type: z.ZodLiteral<"browser.history.record.request">;
4917
+ workspaceId: z.ZodString;
4918
+ url: z.ZodString;
4919
+ title: z.ZodString;
4920
+ requestId: z.ZodString;
4921
+ }, z.core.$strip>;
4922
+ export declare const BrowserHistoryClearRequestSchema: z.ZodObject<{
4923
+ type: z.ZodLiteral<"browser.history.clear.request">;
4924
+ projectId: z.ZodString;
4925
+ requestId: z.ZodString;
4926
+ }, z.core.$strip>;
4927
+ export declare const BrowserHistorySearchResponseSchema: z.ZodObject<{
4928
+ type: z.ZodLiteral<"browser.history.search.response">;
4929
+ payload: z.ZodObject<{
4930
+ entries: z.ZodArray<z.ZodObject<{
4931
+ url: z.ZodString;
4932
+ title: z.ZodString;
4933
+ visitedAt: z.ZodString;
4934
+ }, z.core.$strip>>;
4935
+ error: z.ZodNullable<z.ZodString>;
4936
+ requestId: z.ZodString;
4937
+ }, z.core.$strip>;
4938
+ }, z.core.$strip>;
4939
+ export declare const BrowserHistoryRecordResponseSchema: z.ZodObject<{
4940
+ type: z.ZodLiteral<"browser.history.record.response">;
4941
+ payload: z.ZodObject<{
4942
+ error: z.ZodNullable<z.ZodString>;
4943
+ requestId: z.ZodString;
4944
+ }, z.core.$strip>;
4945
+ }, z.core.$strip>;
4946
+ export declare const BrowserHistoryClearResponseSchema: z.ZodObject<{
4947
+ type: z.ZodLiteral<"browser.history.clear.response">;
4948
+ payload: z.ZodObject<{
4949
+ error: z.ZodNullable<z.ZodString>;
4950
+ requestId: z.ZodString;
4951
+ }, z.core.$strip>;
4952
+ }, z.core.$strip>;
4892
4953
  export declare const ProjectIconGetRequestSchema: z.ZodObject<{
4893
4954
  type: z.ZodLiteral<"project.icon.get.request">;
4894
4955
  projectId: z.ZodString;
@@ -5293,6 +5354,14 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
5293
5354
  ready: "ready";
5294
5355
  detached: "detached";
5295
5356
  }>>;
5357
+ viewportMode: z.ZodOptional<z.ZodEnum<{
5358
+ responsive: "responsive";
5359
+ fixed: "fixed";
5360
+ }>>;
5361
+ viewportWidth: z.ZodOptional<z.ZodNumber>;
5362
+ viewportHeight: z.ZodOptional<z.ZodNumber>;
5363
+ paneWidth: z.ZodOptional<z.ZodNumber>;
5364
+ paneHeight: z.ZodOptional<z.ZodNumber>;
5296
5365
  }, z.core.$strip>>;
5297
5366
  }, z.core.$strip>, z.ZodObject<{
5298
5367
  command: z.ZodLiteral<"new_tab">;
@@ -7457,6 +7526,16 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
7457
7526
  type: z.ZodLiteral<"agent.provider_subagents.list.request">;
7458
7527
  parentAgentId: z.ZodString;
7459
7528
  requestId: z.ZodString;
7529
+ }, z.core.$strip>, z.ZodObject<{
7530
+ type: z.ZodLiteral<"agent.provider_subagents.control.request">;
7531
+ requestId: z.ZodString;
7532
+ parentAgentId: z.ZodString;
7533
+ subagentId: z.ZodString;
7534
+ action: z.ZodEnum<{
7535
+ archive: "archive";
7536
+ stop: "stop";
7537
+ }>;
7538
+ allowStopParent: z.ZodOptional<z.ZodBoolean>;
7460
7539
  }, z.core.$strip>, z.ZodObject<{
7461
7540
  type: z.ZodLiteral<"agent.provider_subagents.timeline.get.request">;
7462
7541
  parentAgentId: z.ZodString;
@@ -9101,6 +9180,21 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
9101
9180
  type: z.ZodLiteral<"project.icon.get.request">;
9102
9181
  projectId: z.ZodString;
9103
9182
  requestId: z.ZodString;
9183
+ }, z.core.$strip>, z.ZodObject<{
9184
+ type: z.ZodLiteral<"browser.history.search.request">;
9185
+ workspaceId: z.ZodString;
9186
+ query: z.ZodString;
9187
+ requestId: z.ZodString;
9188
+ }, z.core.$strip>, z.ZodObject<{
9189
+ type: z.ZodLiteral<"browser.history.record.request">;
9190
+ workspaceId: z.ZodString;
9191
+ url: z.ZodString;
9192
+ title: z.ZodString;
9193
+ requestId: z.ZodString;
9194
+ }, z.core.$strip>, z.ZodObject<{
9195
+ type: z.ZodLiteral<"browser.history.clear.request">;
9196
+ projectId: z.ZodString;
9197
+ requestId: z.ZodString;
9104
9198
  }, z.core.$strip>, z.ZodObject<{
9105
9199
  type: z.ZodLiteral<"file_download_token_request">;
9106
9200
  cwd: z.ZodString;
@@ -10032,6 +10126,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
10032
10126
  brainLogPush: z.ZodOptional<z.ZodBoolean>;
10033
10127
  brainLogWatch: z.ZodOptional<z.ZodBoolean>;
10034
10128
  agentForkContext: z.ZodOptional<z.ZodBoolean>;
10129
+ browserHistory: z.ZodOptional<z.ZodBoolean>;
10035
10130
  providerRemove: z.ZodOptional<z.ZodBoolean>;
10036
10131
  agentContextUsage: z.ZodOptional<z.ZodBoolean>;
10037
10132
  artifacts: z.ZodOptional<z.ZodBoolean>;
@@ -10141,6 +10236,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
10141
10236
  agentWorkspaceTransfer: z.ZodOptional<z.ZodBoolean>;
10142
10237
  agentForkContextCursor: z.ZodOptional<z.ZodBoolean>;
10143
10238
  providerSubagents: z.ZodOptional<z.ZodBoolean>;
10239
+ providerSubagentControl: z.ZodOptional<z.ZodBoolean>;
10144
10240
  workspacePinning: z.ZodOptional<z.ZodBoolean>;
10145
10241
  hubRelationship: z.ZodOptional<z.ZodBoolean>;
10146
10242
  projectGithubClone: z.ZodOptional<z.ZodBoolean>;
@@ -10246,6 +10342,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
10246
10342
  brainLogPush?: boolean | undefined;
10247
10343
  brainLogWatch?: boolean | undefined;
10248
10344
  agentForkContext?: boolean | undefined;
10345
+ browserHistory?: boolean | undefined;
10249
10346
  providerRemove?: boolean | undefined;
10250
10347
  agentContextUsage?: boolean | undefined;
10251
10348
  artifacts?: boolean | undefined;
@@ -10356,6 +10453,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
10356
10453
  agentWorkspaceTransfer?: boolean | undefined;
10357
10454
  agentForkContextCursor?: boolean | undefined;
10358
10455
  providerSubagents?: boolean | undefined;
10456
+ providerSubagentControl?: boolean | undefined;
10359
10457
  workspacePinning?: boolean | undefined;
10360
10458
  hubRelationship?: boolean | undefined;
10361
10459
  projectGithubClone?: boolean | undefined;
@@ -10462,6 +10560,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
10462
10560
  brainLogPush?: boolean | undefined;
10463
10561
  brainLogWatch?: boolean | undefined;
10464
10562
  agentForkContext?: boolean | undefined;
10563
+ browserHistory?: boolean | undefined;
10465
10564
  providerRemove?: boolean | undefined;
10466
10565
  agentContextUsage?: boolean | undefined;
10467
10566
  artifacts?: boolean | undefined;
@@ -10572,6 +10671,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
10572
10671
  agentWorkspaceTransfer?: boolean | undefined;
10573
10672
  agentForkContextCursor?: boolean | undefined;
10574
10673
  providerSubagents?: boolean | undefined;
10674
+ providerSubagentControl?: boolean | undefined;
10575
10675
  workspacePinning?: boolean | undefined;
10576
10676
  hubRelationship?: boolean | undefined;
10577
10677
  projectGithubClone?: boolean | undefined;
@@ -17328,6 +17428,11 @@ export declare const ProviderSubagentDescriptorPayloadSchema: z.ZodObject<{
17328
17428
  toolCallId: z.ZodNullable<z.ZodString>;
17329
17429
  cwd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17330
17430
  subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17431
+ archivedAt: z.ZodOptional<z.ZodString>;
17432
+ stopScope: z.ZodOptional<z.ZodEnum<{
17433
+ child: "child";
17434
+ parent: "parent";
17435
+ }>>;
17331
17436
  }, z.core.$strip>;
17332
17437
  export type ProviderSubagentDescriptorPayload = z.infer<typeof ProviderSubagentDescriptorPayloadSchema>;
17333
17438
  export declare const ProviderSubagentListResponseMessageSchema: z.ZodObject<{
@@ -17352,10 +17457,24 @@ export declare const ProviderSubagentListResponseMessageSchema: z.ZodObject<{
17352
17457
  toolCallId: z.ZodNullable<z.ZodString>;
17353
17458
  cwd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17354
17459
  subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17460
+ archivedAt: z.ZodOptional<z.ZodString>;
17461
+ stopScope: z.ZodOptional<z.ZodEnum<{
17462
+ child: "child";
17463
+ parent: "parent";
17464
+ }>>;
17355
17465
  }, z.core.$strip>>;
17356
17466
  error: z.ZodNullable<z.ZodString>;
17357
17467
  }, z.core.$strip>;
17358
17468
  }, z.core.$strip>;
17469
+ export declare const ProviderSubagentControlResponseMessageSchema: z.ZodObject<{
17470
+ type: z.ZodLiteral<"agent.provider_subagents.control.response">;
17471
+ payload: z.ZodObject<{
17472
+ requestId: z.ZodString;
17473
+ parentAgentId: z.ZodString;
17474
+ subagentId: z.ZodString;
17475
+ error: z.ZodNullable<z.ZodString>;
17476
+ }, z.core.$strip>;
17477
+ }, z.core.$strip>;
17359
17478
  export declare const ProviderSubagentTimelineResponseMessageSchema: z.ZodObject<{
17360
17479
  type: z.ZodLiteral<"agent.provider_subagents.timeline.get.response">;
17361
17480
  payload: z.ZodObject<{
@@ -17408,6 +17527,11 @@ export declare const ProviderSubagentUpdateMessageSchema: z.ZodObject<{
17408
17527
  toolCallId: z.ZodNullable<z.ZodString>;
17409
17528
  cwd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17410
17529
  subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17530
+ archivedAt: z.ZodOptional<z.ZodString>;
17531
+ stopScope: z.ZodOptional<z.ZodEnum<{
17532
+ child: "child";
17533
+ parent: "parent";
17534
+ }>>;
17411
17535
  }, z.core.$strip>;
17412
17536
  }, z.core.$strip>, z.ZodObject<{
17413
17537
  kind: z.ZodLiteral<"timeline">;
@@ -28924,9 +29048,22 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
28924
29048
  toolCallId: z.ZodNullable<z.ZodString>;
28925
29049
  cwd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28926
29050
  subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29051
+ archivedAt: z.ZodOptional<z.ZodString>;
29052
+ stopScope: z.ZodOptional<z.ZodEnum<{
29053
+ child: "child";
29054
+ parent: "parent";
29055
+ }>>;
28927
29056
  }, z.core.$strip>>;
28928
29057
  error: z.ZodNullable<z.ZodString>;
28929
29058
  }, z.core.$strip>;
29059
+ }, z.core.$strip>, z.ZodObject<{
29060
+ type: z.ZodLiteral<"agent.provider_subagents.control.response">;
29061
+ payload: z.ZodObject<{
29062
+ requestId: z.ZodString;
29063
+ parentAgentId: z.ZodString;
29064
+ subagentId: z.ZodString;
29065
+ error: z.ZodNullable<z.ZodString>;
29066
+ }, z.core.$strip>;
28930
29067
  }, z.core.$strip>, z.ZodObject<{
28931
29068
  type: z.ZodLiteral<"agent.provider_subagents.timeline.get.response">;
28932
29069
  payload: z.ZodObject<{
@@ -28978,6 +29115,11 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
28978
29115
  toolCallId: z.ZodNullable<z.ZodString>;
28979
29116
  cwd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28980
29117
  subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29118
+ archivedAt: z.ZodOptional<z.ZodString>;
29119
+ stopScope: z.ZodOptional<z.ZodEnum<{
29120
+ child: "child";
29121
+ parent: "parent";
29122
+ }>>;
28981
29123
  }, z.core.$strip>;
28982
29124
  }, z.core.$strip>, z.ZodObject<{
28983
29125
  kind: z.ZodLiteral<"timeline">;
@@ -37523,6 +37665,29 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
37523
37665
  error: z.ZodNullable<z.ZodString>;
37524
37666
  requestId: z.ZodString;
37525
37667
  }, z.core.$strip>;
37668
+ }, z.core.$strip>, z.ZodObject<{
37669
+ type: z.ZodLiteral<"browser.history.search.response">;
37670
+ payload: z.ZodObject<{
37671
+ entries: z.ZodArray<z.ZodObject<{
37672
+ url: z.ZodString;
37673
+ title: z.ZodString;
37674
+ visitedAt: z.ZodString;
37675
+ }, z.core.$strip>>;
37676
+ error: z.ZodNullable<z.ZodString>;
37677
+ requestId: z.ZodString;
37678
+ }, z.core.$strip>;
37679
+ }, z.core.$strip>, z.ZodObject<{
37680
+ type: z.ZodLiteral<"browser.history.record.response">;
37681
+ payload: z.ZodObject<{
37682
+ error: z.ZodNullable<z.ZodString>;
37683
+ requestId: z.ZodString;
37684
+ }, z.core.$strip>;
37685
+ }, z.core.$strip>, z.ZodObject<{
37686
+ type: z.ZodLiteral<"browser.history.clear.response">;
37687
+ payload: z.ZodObject<{
37688
+ error: z.ZodNullable<z.ZodString>;
37689
+ requestId: z.ZodString;
37690
+ }, z.core.$strip>;
37526
37691
  }, z.core.$strip>, z.ZodObject<{
37527
37692
  type: z.ZodLiteral<"file_download_token_response">;
37528
37693
  payload: z.ZodObject<{
@@ -42379,6 +42544,14 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
42379
42544
  ready: "ready";
42380
42545
  detached: "detached";
42381
42546
  }>>;
42547
+ viewportMode: z.ZodOptional<z.ZodEnum<{
42548
+ responsive: "responsive";
42549
+ fixed: "fixed";
42550
+ }>>;
42551
+ viewportWidth: z.ZodOptional<z.ZodNumber>;
42552
+ viewportHeight: z.ZodOptional<z.ZodNumber>;
42553
+ paneWidth: z.ZodOptional<z.ZodNumber>;
42554
+ paneHeight: z.ZodOptional<z.ZodNumber>;
42382
42555
  }, z.core.$strip>>;
42383
42556
  }, z.core.$strip>, z.ZodObject<{
42384
42557
  command: z.ZodLiteral<"new_tab">;
@@ -44543,6 +44716,16 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
44543
44716
  type: z.ZodLiteral<"agent.provider_subagents.list.request">;
44544
44717
  parentAgentId: z.ZodString;
44545
44718
  requestId: z.ZodString;
44719
+ }, z.core.$strip>, z.ZodObject<{
44720
+ type: z.ZodLiteral<"agent.provider_subagents.control.request">;
44721
+ requestId: z.ZodString;
44722
+ parentAgentId: z.ZodString;
44723
+ subagentId: z.ZodString;
44724
+ action: z.ZodEnum<{
44725
+ archive: "archive";
44726
+ stop: "stop";
44727
+ }>;
44728
+ allowStopParent: z.ZodOptional<z.ZodBoolean>;
44546
44729
  }, z.core.$strip>, z.ZodObject<{
44547
44730
  type: z.ZodLiteral<"agent.provider_subagents.timeline.get.request">;
44548
44731
  parentAgentId: z.ZodString;
@@ -46187,6 +46370,21 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
46187
46370
  type: z.ZodLiteral<"project.icon.get.request">;
46188
46371
  projectId: z.ZodString;
46189
46372
  requestId: z.ZodString;
46373
+ }, z.core.$strip>, z.ZodObject<{
46374
+ type: z.ZodLiteral<"browser.history.search.request">;
46375
+ workspaceId: z.ZodString;
46376
+ query: z.ZodString;
46377
+ requestId: z.ZodString;
46378
+ }, z.core.$strip>, z.ZodObject<{
46379
+ type: z.ZodLiteral<"browser.history.record.request">;
46380
+ workspaceId: z.ZodString;
46381
+ url: z.ZodString;
46382
+ title: z.ZodString;
46383
+ requestId: z.ZodString;
46384
+ }, z.core.$strip>, z.ZodObject<{
46385
+ type: z.ZodLiteral<"browser.history.clear.request">;
46386
+ projectId: z.ZodString;
46387
+ requestId: z.ZodString;
46190
46388
  }, z.core.$strip>, z.ZodObject<{
46191
46389
  type: z.ZodLiteral<"file_download_token_request">;
46192
46390
  cwd: z.ZodString;
@@ -52092,9 +52290,22 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
52092
52290
  toolCallId: z.ZodNullable<z.ZodString>;
52093
52291
  cwd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52094
52292
  subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52293
+ archivedAt: z.ZodOptional<z.ZodString>;
52294
+ stopScope: z.ZodOptional<z.ZodEnum<{
52295
+ child: "child";
52296
+ parent: "parent";
52297
+ }>>;
52095
52298
  }, z.core.$strip>>;
52096
52299
  error: z.ZodNullable<z.ZodString>;
52097
52300
  }, z.core.$strip>;
52301
+ }, z.core.$strip>, z.ZodObject<{
52302
+ type: z.ZodLiteral<"agent.provider_subagents.control.response">;
52303
+ payload: z.ZodObject<{
52304
+ requestId: z.ZodString;
52305
+ parentAgentId: z.ZodString;
52306
+ subagentId: z.ZodString;
52307
+ error: z.ZodNullable<z.ZodString>;
52308
+ }, z.core.$strip>;
52098
52309
  }, z.core.$strip>, z.ZodObject<{
52099
52310
  type: z.ZodLiteral<"agent.provider_subagents.timeline.get.response">;
52100
52311
  payload: z.ZodObject<{
@@ -52146,6 +52357,11 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
52146
52357
  toolCallId: z.ZodNullable<z.ZodString>;
52147
52358
  cwd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52148
52359
  subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52360
+ archivedAt: z.ZodOptional<z.ZodString>;
52361
+ stopScope: z.ZodOptional<z.ZodEnum<{
52362
+ child: "child";
52363
+ parent: "parent";
52364
+ }>>;
52149
52365
  }, z.core.$strip>;
52150
52366
  }, z.core.$strip>, z.ZodObject<{
52151
52367
  kind: z.ZodLiteral<"timeline">;
@@ -60691,6 +60907,29 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
60691
60907
  error: z.ZodNullable<z.ZodString>;
60692
60908
  requestId: z.ZodString;
60693
60909
  }, z.core.$strip>;
60910
+ }, z.core.$strip>, z.ZodObject<{
60911
+ type: z.ZodLiteral<"browser.history.search.response">;
60912
+ payload: z.ZodObject<{
60913
+ entries: z.ZodArray<z.ZodObject<{
60914
+ url: z.ZodString;
60915
+ title: z.ZodString;
60916
+ visitedAt: z.ZodString;
60917
+ }, z.core.$strip>>;
60918
+ error: z.ZodNullable<z.ZodString>;
60919
+ requestId: z.ZodString;
60920
+ }, z.core.$strip>;
60921
+ }, z.core.$strip>, z.ZodObject<{
60922
+ type: z.ZodLiteral<"browser.history.record.response">;
60923
+ payload: z.ZodObject<{
60924
+ error: z.ZodNullable<z.ZodString>;
60925
+ requestId: z.ZodString;
60926
+ }, z.core.$strip>;
60927
+ }, z.core.$strip>, z.ZodObject<{
60928
+ type: z.ZodLiteral<"browser.history.clear.response">;
60929
+ payload: z.ZodObject<{
60930
+ error: z.ZodNullable<z.ZodString>;
60931
+ requestId: z.ZodString;
60932
+ }, z.core.$strip>;
60694
60933
  }, z.core.$strip>, z.ZodObject<{
60695
60934
  type: z.ZodLiteral<"file_download_token_response">;
60696
60935
  payload: z.ZodObject<{
@@ -65179,6 +65418,14 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
65179
65418
  ready: "ready";
65180
65419
  detached: "detached";
65181
65420
  }>>;
65421
+ viewportMode: z.ZodOptional<z.ZodEnum<{
65422
+ responsive: "responsive";
65423
+ fixed: "fixed";
65424
+ }>>;
65425
+ viewportWidth: z.ZodOptional<z.ZodNumber>;
65426
+ viewportHeight: z.ZodOptional<z.ZodNumber>;
65427
+ paneWidth: z.ZodOptional<z.ZodNumber>;
65428
+ paneHeight: z.ZodOptional<z.ZodNumber>;
65182
65429
  }, z.core.$strip>>;
65183
65430
  }, z.core.$strip>, z.ZodObject<{
65184
65431
  command: z.ZodLiteral<"new_tab">;
@@ -67343,6 +67590,16 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
67343
67590
  type: z.ZodLiteral<"agent.provider_subagents.list.request">;
67344
67591
  parentAgentId: z.ZodString;
67345
67592
  requestId: z.ZodString;
67593
+ }, z.core.$strip>, z.ZodObject<{
67594
+ type: z.ZodLiteral<"agent.provider_subagents.control.request">;
67595
+ requestId: z.ZodString;
67596
+ parentAgentId: z.ZodString;
67597
+ subagentId: z.ZodString;
67598
+ action: z.ZodEnum<{
67599
+ archive: "archive";
67600
+ stop: "stop";
67601
+ }>;
67602
+ allowStopParent: z.ZodOptional<z.ZodBoolean>;
67346
67603
  }, z.core.$strip>, z.ZodObject<{
67347
67604
  type: z.ZodLiteral<"agent.provider_subagents.timeline.get.request">;
67348
67605
  parentAgentId: z.ZodString;
@@ -68987,6 +69244,21 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
68987
69244
  type: z.ZodLiteral<"project.icon.get.request">;
68988
69245
  projectId: z.ZodString;
68989
69246
  requestId: z.ZodString;
69247
+ }, z.core.$strip>, z.ZodObject<{
69248
+ type: z.ZodLiteral<"browser.history.search.request">;
69249
+ workspaceId: z.ZodString;
69250
+ query: z.ZodString;
69251
+ requestId: z.ZodString;
69252
+ }, z.core.$strip>, z.ZodObject<{
69253
+ type: z.ZodLiteral<"browser.history.record.request">;
69254
+ workspaceId: z.ZodString;
69255
+ url: z.ZodString;
69256
+ title: z.ZodString;
69257
+ requestId: z.ZodString;
69258
+ }, z.core.$strip>, z.ZodObject<{
69259
+ type: z.ZodLiteral<"browser.history.clear.request">;
69260
+ projectId: z.ZodString;
69261
+ requestId: z.ZodString;
68990
69262
  }, z.core.$strip>, z.ZodObject<{
68991
69263
  type: z.ZodLiteral<"file_download_token_request">;
68992
69264
  cwd: z.ZodString;
@@ -74894,9 +75166,22 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
74894
75166
  toolCallId: z.ZodNullable<z.ZodString>;
74895
75167
  cwd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74896
75168
  subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75169
+ archivedAt: z.ZodOptional<z.ZodString>;
75170
+ stopScope: z.ZodOptional<z.ZodEnum<{
75171
+ child: "child";
75172
+ parent: "parent";
75173
+ }>>;
74897
75174
  }, z.core.$strip>>;
74898
75175
  error: z.ZodNullable<z.ZodString>;
74899
75176
  }, z.core.$strip>;
75177
+ }, z.core.$strip>, z.ZodObject<{
75178
+ type: z.ZodLiteral<"agent.provider_subagents.control.response">;
75179
+ payload: z.ZodObject<{
75180
+ requestId: z.ZodString;
75181
+ parentAgentId: z.ZodString;
75182
+ subagentId: z.ZodString;
75183
+ error: z.ZodNullable<z.ZodString>;
75184
+ }, z.core.$strip>;
74900
75185
  }, z.core.$strip>, z.ZodObject<{
74901
75186
  type: z.ZodLiteral<"agent.provider_subagents.timeline.get.response">;
74902
75187
  payload: z.ZodObject<{
@@ -74948,6 +75233,11 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
74948
75233
  toolCallId: z.ZodNullable<z.ZodString>;
74949
75234
  cwd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74950
75235
  subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75236
+ archivedAt: z.ZodOptional<z.ZodString>;
75237
+ stopScope: z.ZodOptional<z.ZodEnum<{
75238
+ child: "child";
75239
+ parent: "parent";
75240
+ }>>;
74951
75241
  }, z.core.$strip>;
74952
75242
  }, z.core.$strip>, z.ZodObject<{
74953
75243
  kind: z.ZodLiteral<"timeline">;
@@ -83493,6 +83783,29 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
83493
83783
  error: z.ZodNullable<z.ZodString>;
83494
83784
  requestId: z.ZodString;
83495
83785
  }, z.core.$strip>;
83786
+ }, z.core.$strip>, z.ZodObject<{
83787
+ type: z.ZodLiteral<"browser.history.search.response">;
83788
+ payload: z.ZodObject<{
83789
+ entries: z.ZodArray<z.ZodObject<{
83790
+ url: z.ZodString;
83791
+ title: z.ZodString;
83792
+ visitedAt: z.ZodString;
83793
+ }, z.core.$strip>>;
83794
+ error: z.ZodNullable<z.ZodString>;
83795
+ requestId: z.ZodString;
83796
+ }, z.core.$strip>;
83797
+ }, z.core.$strip>, z.ZodObject<{
83798
+ type: z.ZodLiteral<"browser.history.record.response">;
83799
+ payload: z.ZodObject<{
83800
+ error: z.ZodNullable<z.ZodString>;
83801
+ requestId: z.ZodString;
83802
+ }, z.core.$strip>;
83803
+ }, z.core.$strip>, z.ZodObject<{
83804
+ type: z.ZodLiteral<"browser.history.clear.response">;
83805
+ payload: z.ZodObject<{
83806
+ error: z.ZodNullable<z.ZodString>;
83807
+ requestId: z.ZodString;
83808
+ }, z.core.$strip>;
83496
83809
  }, z.core.$strip>, z.ZodObject<{
83497
83810
  type: z.ZodLiteral<"file_download_token_response">;
83498
83811
  payload: z.ZodObject<{
package/dist/messages.js CHANGED
@@ -1978,6 +1978,14 @@ export const ProviderSubagentListRequestMessageSchema = z.object({
1978
1978
  parentAgentId: z.string(),
1979
1979
  requestId: z.string(),
1980
1980
  });
1981
+ export const ProviderSubagentControlRequestMessageSchema = z.object({
1982
+ type: z.literal("agent.provider_subagents.control.request"),
1983
+ requestId: z.string(),
1984
+ parentAgentId: z.string(),
1985
+ subagentId: z.string(),
1986
+ action: z.enum(["stop", "archive"]),
1987
+ allowStopParent: z.boolean().optional(),
1988
+ });
1981
1989
  export const ProviderSubagentTimelineRequestMessageSchema = z.object({
1982
1990
  type: z.literal("agent.provider_subagents.timeline.get.request"),
1983
1991
  parentAgentId: z.string(),
@@ -3132,6 +3140,45 @@ export const ProjectIconRequestSchema = z.object({
3132
3140
  cwd: z.string(),
3133
3141
  requestId: z.string(),
3134
3142
  });
3143
+ export const BrowserHistoryEntrySchema = z.object({
3144
+ url: z.string().max(8192),
3145
+ title: z.string().max(512),
3146
+ visitedAt: z.string(),
3147
+ });
3148
+ export const BrowserHistorySearchRequestSchema = z.object({
3149
+ type: z.literal("browser.history.search.request"),
3150
+ workspaceId: z.string(),
3151
+ query: z.string().max(8192),
3152
+ requestId: z.string(),
3153
+ });
3154
+ export const BrowserHistoryRecordRequestSchema = z.object({
3155
+ type: z.literal("browser.history.record.request"),
3156
+ workspaceId: z.string(),
3157
+ url: z.string().max(8192),
3158
+ title: z.string().max(512),
3159
+ requestId: z.string(),
3160
+ });
3161
+ export const BrowserHistoryClearRequestSchema = z.object({
3162
+ type: z.literal("browser.history.clear.request"),
3163
+ projectId: z.string(),
3164
+ requestId: z.string(),
3165
+ });
3166
+ export const BrowserHistorySearchResponseSchema = z.object({
3167
+ type: z.literal("browser.history.search.response"),
3168
+ payload: z.object({
3169
+ entries: z.array(BrowserHistoryEntrySchema),
3170
+ error: z.string().nullable(),
3171
+ requestId: z.string(),
3172
+ }),
3173
+ });
3174
+ export const BrowserHistoryRecordResponseSchema = z.object({
3175
+ type: z.literal("browser.history.record.response"),
3176
+ payload: z.object({ error: z.string().nullable(), requestId: z.string() }),
3177
+ });
3178
+ export const BrowserHistoryClearResponseSchema = z.object({
3179
+ type: z.literal("browser.history.clear.response"),
3180
+ payload: z.object({ error: z.string().nullable(), requestId: z.string() }),
3181
+ });
3135
3182
  export const ProjectIconGetRequestSchema = z.object({
3136
3183
  type: z.literal("project.icon.get.request"),
3137
3184
  projectId: z.string(),
@@ -3609,6 +3656,7 @@ export const SessionInboundMessageSchema = z.discriminatedUnion("type", [
3609
3656
  FetchAgentTimelineRequestMessageSchema,
3610
3657
  AgentTimelineListPromptsRequestMessageSchema,
3611
3658
  ProviderSubagentListRequestMessageSchema,
3659
+ ProviderSubagentControlRequestMessageSchema,
3612
3660
  ProviderSubagentTimelineRequestMessageSchema,
3613
3661
  SetAgentTimelineSubscriptionRequestMessageSchema,
3614
3662
  AgentForkContextRequestMessageSchema,
@@ -3738,6 +3786,9 @@ export const SessionInboundMessageSchema = z.discriminatedUnion("type", [
3738
3786
  FileEntryDeleteRequestSchema,
3739
3787
  ProjectIconRequestSchema,
3740
3788
  ProjectIconGetRequestSchema,
3789
+ BrowserHistorySearchRequestSchema,
3790
+ BrowserHistoryRecordRequestSchema,
3791
+ BrowserHistoryClearRequestSchema,
3741
3792
  FileDownloadTokenRequestSchema,
3742
3793
  FileUploadRequestSchema,
3743
3794
  FileWriteRequestSchema,
@@ -4150,6 +4201,7 @@ export const ServerInfoStatusPayloadSchema = z
4150
4201
  brainLogWatch: z.boolean().optional(),
4151
4202
  // COMPAT(agentForkContext): added in v0.1.102, remove gate after 2026-12-28.
4152
4203
  agentForkContext: z.boolean().optional(),
4204
+ browserHistory: z.boolean().optional(),
4153
4205
  // COMPAT(providerRemove): added in v0.1.105, drop the gate when daemon floor >= v0.1.105.
4154
4206
  providerRemove: z.boolean().optional(),
4155
4207
  // COMPAT(agentContextUsage): added in v0.3.4, drop the gate when daemon floor >= v0.3.4.
@@ -4580,6 +4632,7 @@ export const ServerInfoStatusPayloadSchema = z
4580
4632
  agentForkContextCursor: z.boolean().optional(),
4581
4633
  // COMPAT(providerSubagents): added in v0.1.107, remove gate after 2027-01-12.
4582
4634
  providerSubagents: z.boolean().optional(),
4635
+ providerSubagentControl: z.boolean().optional(),
4583
4636
  // COMPAT(workspacePinning): added in v0.1.107, remove gate after 2027-01-12.
4584
4637
  workspacePinning: z.boolean().optional(),
4585
4638
  // COMPAT(hubRelationship): added in v0.1.X, drop the gate when floor >= v0.1.X.
@@ -5628,6 +5681,8 @@ export const ProviderSubagentDescriptorPayloadSchema = z.object({
5628
5681
  // Compact provider-owned context for the shared track. Providers choose what belongs here and
5629
5682
  // format it for display; clients must not parse provider-specific facts out of this string.
5630
5683
  subtitle: z.string().nullable().optional(),
5684
+ archivedAt: z.string().optional(),
5685
+ stopScope: z.enum(["child", "parent"]).optional(),
5631
5686
  });
5632
5687
  export const ProviderSubagentListResponseMessageSchema = z.object({
5633
5688
  type: z.literal("agent.provider_subagents.list.response"),
@@ -5638,6 +5693,15 @@ export const ProviderSubagentListResponseMessageSchema = z.object({
5638
5693
  error: z.string().nullable(),
5639
5694
  }),
5640
5695
  });
5696
+ export const ProviderSubagentControlResponseMessageSchema = z.object({
5697
+ type: z.literal("agent.provider_subagents.control.response"),
5698
+ payload: z.object({
5699
+ requestId: z.string(),
5700
+ parentAgentId: z.string(),
5701
+ subagentId: z.string(),
5702
+ error: z.string().nullable(),
5703
+ }),
5704
+ });
5641
5705
  export const ProviderSubagentTimelineResponseMessageSchema = z.object({
5642
5706
  type: z.literal("agent.provider_subagents.timeline.get.response"),
5643
5707
  payload: z.object({
@@ -7573,6 +7637,7 @@ export const SessionOutboundMessageSchema = z.discriminatedUnion("type", [
7573
7637
  FetchAgentTimelineResponseMessageSchema,
7574
7638
  AgentTimelineListPromptsResponseMessageSchema,
7575
7639
  ProviderSubagentListResponseMessageSchema,
7640
+ ProviderSubagentControlResponseMessageSchema,
7576
7641
  ProviderSubagentTimelineResponseMessageSchema,
7577
7642
  ProviderSubagentUpdateMessageSchema,
7578
7643
  SetAgentTimelineSubscriptionResponseMessageSchema,
@@ -7806,6 +7871,9 @@ export const SessionOutboundMessageSchema = z.discriminatedUnion("type", [
7806
7871
  FileUpdateSchema,
7807
7872
  ProjectIconResponseSchema,
7808
7873
  ProjectIconGetResponseSchema,
7874
+ BrowserHistorySearchResponseSchema,
7875
+ BrowserHistoryRecordResponseSchema,
7876
+ BrowserHistoryClearResponseSchema,
7809
7877
  FileDownloadTokenResponseSchema,
7810
7878
  FileUploadResponseSchema,
7811
7879
  FileWriteResponseSchema,