linkshell-cli 0.10.73 → 0.10.75

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 (110) hide show
  1. package/dist/cli/src/commands/desktop-workspace.js +62 -9
  2. package/dist/cli/src/commands/desktop-workspace.js.map +1 -1
  3. package/dist/cli/src/commands/desktop.d.ts +15 -2
  4. package/dist/cli/src/commands/desktop.js +87 -1
  5. package/dist/cli/src/commands/desktop.js.map +1 -1
  6. package/dist/cli/src/commands/login-error.d.ts +9 -0
  7. package/dist/cli/src/commands/login-error.js +14 -0
  8. package/dist/cli/src/commands/login-error.js.map +1 -0
  9. package/dist/cli/src/commands/login.d.ts +2 -7
  10. package/dist/cli/src/commands/login.js +23 -52
  11. package/dist/cli/src/commands/login.js.map +1 -1
  12. package/dist/cli/src/commands/sign-in.d.ts +77 -0
  13. package/dist/cli/src/commands/sign-in.js +390 -0
  14. package/dist/cli/src/commands/sign-in.js.map +1 -0
  15. package/dist/cli/src/index.js +2 -1
  16. package/dist/cli/src/index.js.map +1 -1
  17. package/dist/cli/tsconfig.tsbuildinfo +1 -1
  18. package/dist/client-core/src/account-errors.d.ts +17 -0
  19. package/dist/client-core/src/account-errors.js +82 -0
  20. package/dist/client-core/src/account-errors.js.map +1 -0
  21. package/dist/gateway/src/relay.d.ts +1 -1
  22. package/dist/gateway/src/relay.js +8 -1
  23. package/dist/gateway/src/relay.js.map +1 -1
  24. package/dist/host/src/drivers/acp/antigravity.d.ts +13 -0
  25. package/dist/host/src/drivers/acp/antigravity.js +13 -0
  26. package/dist/host/src/drivers/acp/antigravity.js.map +1 -1
  27. package/dist/host/src/drivers/acp/driver.d.ts +23 -2
  28. package/dist/host/src/drivers/acp/driver.js +89 -5
  29. package/dist/host/src/drivers/acp/driver.js.map +1 -1
  30. package/dist/host/src/drivers/acp/mapper.d.ts +2 -0
  31. package/dist/host/src/drivers/acp/mapper.js +6 -1
  32. package/dist/host/src/drivers/acp/mapper.js.map +1 -1
  33. package/dist/host/src/drivers/claude/app-sessions.d.ts +58 -0
  34. package/dist/host/src/drivers/claude/app-sessions.js +183 -0
  35. package/dist/host/src/drivers/claude/app-sessions.js.map +1 -0
  36. package/dist/host/src/drivers/claude/driver.d.ts +37 -1
  37. package/dist/host/src/drivers/claude/driver.js +199 -9
  38. package/dist/host/src/drivers/claude/driver.js.map +1 -1
  39. package/dist/host/src/drivers/claude/holders.d.ts +3 -1
  40. package/dist/host/src/drivers/claude/holders.js +4 -0
  41. package/dist/host/src/drivers/claude/holders.js.map +1 -1
  42. package/dist/host/src/drivers/claude/routing.d.ts +19 -0
  43. package/dist/host/src/drivers/claude/routing.js +145 -0
  44. package/dist/host/src/drivers/claude/routing.js.map +1 -0
  45. package/dist/host/src/drivers/claude/transcript.d.ts +10 -0
  46. package/dist/host/src/drivers/claude/transcript.js +97 -22
  47. package/dist/host/src/drivers/claude/transcript.js.map +1 -1
  48. package/dist/host/src/drivers/codex/driver.d.ts +45 -2
  49. package/dist/host/src/drivers/codex/driver.js +288 -18
  50. package/dist/host/src/drivers/codex/driver.js.map +1 -1
  51. package/dist/host/src/drivers/codex/mapper.d.ts +41 -7
  52. package/dist/host/src/drivers/codex/mapper.js +167 -26
  53. package/dist/host/src/drivers/codex/mapper.js.map +1 -1
  54. package/dist/host/src/drivers/codex/mcp-apps.d.ts +69 -0
  55. package/dist/host/src/drivers/codex/mcp-apps.js +340 -0
  56. package/dist/host/src/drivers/codex/mcp-apps.js.map +1 -0
  57. package/dist/host/src/drivers/codex/settings.d.ts +13 -0
  58. package/dist/host/src/drivers/codex/settings.js +22 -6
  59. package/dist/host/src/drivers/codex/settings.js.map +1 -1
  60. package/dist/host/src/drivers/types.d.ts +82 -1
  61. package/dist/host/src/host.js +2 -1
  62. package/dist/host/src/host.js.map +1 -1
  63. package/dist/host/src/hub.d.ts +48 -1
  64. package/dist/host/src/hub.js +235 -13
  65. package/dist/host/src/hub.js.map +1 -1
  66. package/dist/host/src/rpc/mcp.d.ts +8 -0
  67. package/dist/host/src/rpc/mcp.js +33 -0
  68. package/dist/host/src/rpc/mcp.js.map +1 -0
  69. package/dist/host/src/rpc/server.js +27 -3
  70. package/dist/host/src/rpc/server.js.map +1 -1
  71. package/dist/host/src/side.d.ts +28 -0
  72. package/dist/host/src/side.js +142 -0
  73. package/dist/host/src/side.js.map +1 -0
  74. package/dist/host/src/store.d.ts +7 -0
  75. package/dist/host/src/store.js +27 -3
  76. package/dist/host/src/store.js.map +1 -1
  77. package/dist/host/src/terminals.d.ts +6 -0
  78. package/dist/host/src/terminals.js +29 -2
  79. package/dist/host/src/terminals.js.map +1 -1
  80. package/dist/host/src/usage.d.ts +5 -0
  81. package/dist/host/src/usage.js +10 -2
  82. package/dist/host/src/usage.js.map +1 -1
  83. package/dist/wire/src/envelopes.d.ts +53 -0
  84. package/dist/wire/src/envelopes.js +251 -0
  85. package/dist/wire/src/envelopes.js.map +1 -0
  86. package/dist/wire/src/index.d.ts +3 -0
  87. package/dist/wire/src/index.js +3 -0
  88. package/dist/wire/src/index.js.map +1 -1
  89. package/dist/wire/src/model.d.ts +54 -0
  90. package/dist/wire/src/model.js +28 -0
  91. package/dist/wire/src/model.js.map +1 -1
  92. package/dist/wire/src/rpc-mcp.d.ts +199 -0
  93. package/dist/wire/src/rpc-mcp.js +78 -0
  94. package/dist/wire/src/rpc-mcp.js.map +1 -0
  95. package/dist/wire/src/rpc.d.ts +823 -6
  96. package/dist/wire/src/rpc.js +64 -1
  97. package/dist/wire/src/rpc.js.map +1 -1
  98. package/dist/wire/src/side.d.ts +83 -0
  99. package/dist/wire/src/side.js +26 -0
  100. package/dist/wire/src/side.js.map +1 -0
  101. package/dist/wire/src/updates.d.ts +211 -0
  102. package/dist/wire/src/updates.js +14 -1
  103. package/dist/wire/src/updates.js.map +1 -1
  104. package/package.json +4 -4
  105. package/src/commands/desktop-workspace.ts +69 -11
  106. package/src/commands/desktop.ts +71 -1
  107. package/src/commands/login-error.ts +12 -0
  108. package/src/commands/login.ts +13 -62
  109. package/src/commands/sign-in.ts +408 -0
  110. package/src/index.ts +2 -1
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod";
2
+ import { mcpMethods } from "./rpc-mcp.js";
2
3
  export declare const rpcIdSchema: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
3
4
  export type RpcId = z.infer<typeof rpcIdSchema>;
4
5
  export declare const rpcErrorSchema: z.ZodObject<{
@@ -64,6 +65,14 @@ export type AppErrorCode = z.infer<typeof appErrorCodeSchema>;
64
65
  export declare const RPC_INVALID_PARAMS = -32602;
65
66
  export declare const RPC_METHOD_NOT_FOUND = -32601;
66
67
  export declare const RPC_APP_ERROR = -32000;
68
+ /**
69
+ * The host's RPC revision, in `machine.info`. Goes up when the host gains
70
+ * methods or notifications an app may rely on, so an app can tell the
71
+ * computer is older than itself and say so (an absent revision is 0).
72
+ * 1: side conversations (`sessions.side`), `machine.info.protocol` itself.
73
+ * 2: session terminals (`terminals.create` `sessionId`, `TerminalInfo.sessionId`).
74
+ */
75
+ export declare const HOST_PROTOCOL = 2;
67
76
  export declare const directoryEntrySchema: z.ZodObject<{
68
77
  name: z.ZodString;
69
78
  path: z.ZodString;
@@ -3898,6 +3907,7 @@ declare const coreMethods: {
3898
3907
  hostname: z.ZodString;
3899
3908
  platform: z.ZodString;
3900
3909
  hostVersion: z.ZodString;
3910
+ protocol: z.ZodOptional<z.ZodNumber>;
3901
3911
  home: z.ZodOptional<z.ZodString>;
3902
3912
  agents: z.ZodArray<z.ZodObject<{
3903
3913
  id: z.ZodString;
@@ -3928,6 +3938,7 @@ declare const coreMethods: {
3928
3938
  embeddedContext: z.ZodOptional<z.ZodBoolean>;
3929
3939
  acp: z.ZodOptional<z.ZodBoolean>;
3930
3940
  fork: z.ZodBoolean;
3941
+ side: z.ZodOptional<z.ZodBoolean>;
3931
3942
  models: z.ZodBoolean;
3932
3943
  modes: z.ZodBoolean;
3933
3944
  }, "strip", z.ZodTypeAny, {
@@ -3941,6 +3952,7 @@ declare const coreMethods: {
3941
3952
  audio?: boolean | undefined;
3942
3953
  embeddedContext?: boolean | undefined;
3943
3954
  acp?: boolean | undefined;
3955
+ side?: boolean | undefined;
3944
3956
  }, {
3945
3957
  interrupt: boolean;
3946
3958
  steer: boolean;
@@ -3952,6 +3964,7 @@ declare const coreMethods: {
3952
3964
  audio?: boolean | undefined;
3953
3965
  embeddedContext?: boolean | undefined;
3954
3966
  acp?: boolean | undefined;
3967
+ side?: boolean | undefined;
3955
3968
  }>;
3956
3969
  }, "strip", z.ZodTypeAny, {
3957
3970
  id: string;
@@ -3969,6 +3982,7 @@ declare const coreMethods: {
3969
3982
  audio?: boolean | undefined;
3970
3983
  embeddedContext?: boolean | undefined;
3971
3984
  acp?: boolean | undefined;
3985
+ side?: boolean | undefined;
3972
3986
  };
3973
3987
  version?: string | undefined;
3974
3988
  problem?: string | undefined;
@@ -3993,6 +4007,7 @@ declare const coreMethods: {
3993
4007
  audio?: boolean | undefined;
3994
4008
  embeddedContext?: boolean | undefined;
3995
4009
  acp?: boolean | undefined;
4010
+ side?: boolean | undefined;
3996
4011
  };
3997
4012
  version?: string | undefined;
3998
4013
  problem?: string | undefined;
@@ -4027,6 +4042,7 @@ declare const coreMethods: {
4027
4042
  audio?: boolean | undefined;
4028
4043
  embeddedContext?: boolean | undefined;
4029
4044
  acp?: boolean | undefined;
4045
+ side?: boolean | undefined;
4030
4046
  };
4031
4047
  version?: string | undefined;
4032
4048
  problem?: string | undefined;
@@ -4040,6 +4056,7 @@ declare const coreMethods: {
4040
4056
  hostname: string;
4041
4057
  platform: string;
4042
4058
  hostVersion: string;
4059
+ protocol?: number | undefined;
4043
4060
  home?: string | undefined;
4044
4061
  direct?: {
4045
4062
  iceServers: string[];
@@ -4062,6 +4079,7 @@ declare const coreMethods: {
4062
4079
  audio?: boolean | undefined;
4063
4080
  embeddedContext?: boolean | undefined;
4064
4081
  acp?: boolean | undefined;
4082
+ side?: boolean | undefined;
4065
4083
  };
4066
4084
  version?: string | undefined;
4067
4085
  problem?: string | undefined;
@@ -4075,6 +4093,7 @@ declare const coreMethods: {
4075
4093
  hostname: string;
4076
4094
  platform: string;
4077
4095
  hostVersion: string;
4096
+ protocol?: number | undefined;
4078
4097
  home?: string | undefined;
4079
4098
  direct?: {
4080
4099
  iceServers: string[];
@@ -4845,6 +4864,9 @@ declare const coreMethods: {
4845
4864
  branch: string;
4846
4865
  source: string;
4847
4866
  }>>;
4867
+ parentId: z.ZodOptional<z.ZodString>;
4868
+ forkedFrom: z.ZodOptional<z.ZodString>;
4869
+ appId: z.ZodOptional<z.ZodString>;
4848
4870
  subagents: z.ZodOptional<z.ZodObject<{
4849
4871
  total: z.ZodNumber;
4850
4872
  running: z.ZodNumber;
@@ -5030,6 +5052,9 @@ declare const coreMethods: {
5030
5052
  branch: string;
5031
5053
  source: string;
5032
5054
  } | undefined;
5055
+ parentId?: string | undefined;
5056
+ forkedFrom?: string | undefined;
5057
+ appId?: string | undefined;
5033
5058
  subagents?: {
5034
5059
  running: number;
5035
5060
  total: number;
@@ -5141,6 +5166,9 @@ declare const coreMethods: {
5141
5166
  branch: string;
5142
5167
  source: string;
5143
5168
  } | undefined;
5169
+ parentId?: string | undefined;
5170
+ forkedFrom?: string | undefined;
5171
+ appId?: string | undefined;
5144
5172
  subagents?: {
5145
5173
  running: number;
5146
5174
  total: number;
@@ -5317,6 +5345,9 @@ declare const coreMethods: {
5317
5345
  branch: string;
5318
5346
  source: string;
5319
5347
  } | undefined;
5348
+ parentId?: string | undefined;
5349
+ forkedFrom?: string | undefined;
5350
+ appId?: string | undefined;
5320
5351
  subagents?: {
5321
5352
  running: number;
5322
5353
  total: number;
@@ -5431,6 +5462,9 @@ declare const coreMethods: {
5431
5462
  branch: string;
5432
5463
  source: string;
5433
5464
  } | undefined;
5465
+ parentId?: string | undefined;
5466
+ forkedFrom?: string | undefined;
5467
+ appId?: string | undefined;
5434
5468
  subagents?: {
5435
5469
  running: number;
5436
5470
  total: number;
@@ -5443,6 +5477,66 @@ declare const coreMethods: {
5443
5477
  nextBefore?: number | undefined;
5444
5478
  }>;
5445
5479
  };
5480
+ /**
5481
+ * The models a new session of `agent` can start on, for choosing one before
5482
+ * there is a session (whose own list comes later, in its `ls_config`).
5483
+ * `current` is the one the agent takes when `sessions.create` names none:
5484
+ * its own default, which a new session keeps unless another is picked.
5485
+ * Agents that tell their models only to a session give what they said in
5486
+ * the latest one opened on this computer; never asked by starting one, so
5487
+ * empty until there has been one (`current` too may be missing then).
5488
+ * With an empty list `sessions.create` takes no model. Hosts older than
5489
+ * this method answer "method not found".
5490
+ */
5491
+ readonly "agents.models": {
5492
+ readonly params: z.ZodObject<{
5493
+ agent: z.ZodString;
5494
+ /** Where the session will work: an agent's project settings can choose another model. */
5495
+ cwd: z.ZodOptional<z.ZodString>;
5496
+ }, "strip", z.ZodTypeAny, {
5497
+ agent: string;
5498
+ cwd?: string | undefined;
5499
+ }, {
5500
+ agent: string;
5501
+ cwd?: string | undefined;
5502
+ }>;
5503
+ readonly result: z.ZodObject<{
5504
+ /** As a session's model option lists them (`group`: the heading some agents put models under). */
5505
+ models: z.ZodArray<z.ZodObject<{
5506
+ value: z.ZodString;
5507
+ name: z.ZodString;
5508
+ description: z.ZodOptional<z.ZodString>;
5509
+ group: z.ZodOptional<z.ZodString>;
5510
+ }, "strip", z.ZodTypeAny, {
5511
+ value: string;
5512
+ name: string;
5513
+ description?: string | undefined;
5514
+ group?: string | undefined;
5515
+ }, {
5516
+ value: string;
5517
+ name: string;
5518
+ description?: string | undefined;
5519
+ group?: string | undefined;
5520
+ }>, "many">;
5521
+ current: z.ZodOptional<z.ZodString>;
5522
+ }, "strip", z.ZodTypeAny, {
5523
+ models: {
5524
+ value: string;
5525
+ name: string;
5526
+ description?: string | undefined;
5527
+ group?: string | undefined;
5528
+ }[];
5529
+ current?: string | undefined;
5530
+ }, {
5531
+ models: {
5532
+ value: string;
5533
+ name: string;
5534
+ description?: string | undefined;
5535
+ group?: string | undefined;
5536
+ }[];
5537
+ current?: string | undefined;
5538
+ }>;
5539
+ };
5446
5540
  readonly "sessions.create": {
5447
5541
  readonly params: z.ZodObject<{
5448
5542
  agent: z.ZodString;
@@ -5511,6 +5605,7 @@ declare const coreMethods: {
5511
5605
  size?: number | undefined;
5512
5606
  }, z.ZodTypeDef, unknown>, "many">>;
5513
5607
  clientMessageId: z.ZodOptional<z.ZodString>;
5608
+ /** One of `agents.models`' values; absent: the agent's own default. */
5514
5609
  model: z.ZodOptional<z.ZodString>;
5515
5610
  /**
5516
5611
  * Start in a new git worktree of `cwd`'s repository (its own branch, from
@@ -6297,6 +6392,9 @@ declare const coreMethods: {
6297
6392
  branch: string;
6298
6393
  source: string;
6299
6394
  }>>;
6395
+ parentId: z.ZodOptional<z.ZodString>;
6396
+ forkedFrom: z.ZodOptional<z.ZodString>;
6397
+ appId: z.ZodOptional<z.ZodString>;
6300
6398
  subagents: z.ZodOptional<z.ZodObject<{
6301
6399
  total: z.ZodNumber;
6302
6400
  running: z.ZodNumber;
@@ -6482,6 +6580,9 @@ declare const coreMethods: {
6482
6580
  branch: string;
6483
6581
  source: string;
6484
6582
  } | undefined;
6583
+ parentId?: string | undefined;
6584
+ forkedFrom?: string | undefined;
6585
+ appId?: string | undefined;
6485
6586
  subagents?: {
6486
6587
  running: number;
6487
6588
  total: number;
@@ -6593,6 +6694,9 @@ declare const coreMethods: {
6593
6694
  branch: string;
6594
6695
  source: string;
6595
6696
  } | undefined;
6697
+ parentId?: string | undefined;
6698
+ forkedFrom?: string | undefined;
6699
+ appId?: string | undefined;
6596
6700
  subagents?: {
6597
6701
  running: number;
6598
6702
  total: number;
@@ -6768,6 +6872,9 @@ declare const coreMethods: {
6768
6872
  branch: string;
6769
6873
  source: string;
6770
6874
  } | undefined;
6875
+ parentId?: string | undefined;
6876
+ forkedFrom?: string | undefined;
6877
+ appId?: string | undefined;
6771
6878
  subagents?: {
6772
6879
  running: number;
6773
6880
  total: number;
@@ -6881,6 +6988,9 @@ declare const coreMethods: {
6881
6988
  branch: string;
6882
6989
  source: string;
6883
6990
  } | undefined;
6991
+ parentId?: string | undefined;
6992
+ forkedFrom?: string | undefined;
6993
+ appId?: string | undefined;
6884
6994
  subagents?: {
6885
6995
  running: number;
6886
6996
  total: number;
@@ -7614,6 +7724,9 @@ declare const coreMethods: {
7614
7724
  branch: string;
7615
7725
  source: string;
7616
7726
  }>>;
7727
+ parentId: z.ZodOptional<z.ZodString>;
7728
+ forkedFrom: z.ZodOptional<z.ZodString>;
7729
+ appId: z.ZodOptional<z.ZodString>;
7617
7730
  subagents: z.ZodOptional<z.ZodObject<{
7618
7731
  total: z.ZodNumber;
7619
7732
  running: z.ZodNumber;
@@ -7799,6 +7912,9 @@ declare const coreMethods: {
7799
7912
  branch: string;
7800
7913
  source: string;
7801
7914
  } | undefined;
7915
+ parentId?: string | undefined;
7916
+ forkedFrom?: string | undefined;
7917
+ appId?: string | undefined;
7802
7918
  subagents?: {
7803
7919
  running: number;
7804
7920
  total: number;
@@ -7910,6 +8026,9 @@ declare const coreMethods: {
7910
8026
  branch: string;
7911
8027
  source: string;
7912
8028
  } | undefined;
8029
+ parentId?: string | undefined;
8030
+ forkedFrom?: string | undefined;
8031
+ appId?: string | undefined;
7913
8032
  subagents?: {
7914
8033
  running: number;
7915
8034
  total: number;
@@ -8085,6 +8204,9 @@ declare const coreMethods: {
8085
8204
  branch: string;
8086
8205
  source: string;
8087
8206
  } | undefined;
8207
+ parentId?: string | undefined;
8208
+ forkedFrom?: string | undefined;
8209
+ appId?: string | undefined;
8088
8210
  subagents?: {
8089
8211
  running: number;
8090
8212
  total: number;
@@ -8198,6 +8320,9 @@ declare const coreMethods: {
8198
8320
  branch: string;
8199
8321
  source: string;
8200
8322
  } | undefined;
8323
+ parentId?: string | undefined;
8324
+ forkedFrom?: string | undefined;
8325
+ appId?: string | undefined;
8201
8326
  subagents?: {
8202
8327
  running: number;
8203
8328
  total: number;
@@ -8944,6 +9069,9 @@ declare const coreMethods: {
8944
9069
  branch: string;
8945
9070
  source: string;
8946
9071
  }>>;
9072
+ parentId: z.ZodOptional<z.ZodString>;
9073
+ forkedFrom: z.ZodOptional<z.ZodString>;
9074
+ appId: z.ZodOptional<z.ZodString>;
8947
9075
  subagents: z.ZodOptional<z.ZodObject<{
8948
9076
  total: z.ZodNumber;
8949
9077
  running: z.ZodNumber;
@@ -9129,6 +9257,9 @@ declare const coreMethods: {
9129
9257
  branch: string;
9130
9258
  source: string;
9131
9259
  } | undefined;
9260
+ parentId?: string | undefined;
9261
+ forkedFrom?: string | undefined;
9262
+ appId?: string | undefined;
9132
9263
  subagents?: {
9133
9264
  running: number;
9134
9265
  total: number;
@@ -9240,6 +9371,9 @@ declare const coreMethods: {
9240
9371
  branch: string;
9241
9372
  source: string;
9242
9373
  } | undefined;
9374
+ parentId?: string | undefined;
9375
+ forkedFrom?: string | undefined;
9376
+ appId?: string | undefined;
9243
9377
  subagents?: {
9244
9378
  running: number;
9245
9379
  total: number;
@@ -9416,6 +9550,9 @@ declare const coreMethods: {
9416
9550
  branch: string;
9417
9551
  source: string;
9418
9552
  } | undefined;
9553
+ parentId?: string | undefined;
9554
+ forkedFrom?: string | undefined;
9555
+ appId?: string | undefined;
9419
9556
  subagents?: {
9420
9557
  running: number;
9421
9558
  total: number;
@@ -9530,6 +9667,9 @@ declare const coreMethods: {
9530
9667
  branch: string;
9531
9668
  source: string;
9532
9669
  } | undefined;
9670
+ parentId?: string | undefined;
9671
+ forkedFrom?: string | undefined;
9672
+ appId?: string | undefined;
9533
9673
  subagents?: {
9534
9674
  running: number;
9535
9675
  total: number;
@@ -10327,14 +10467,37 @@ declare const coreMethods: {
10327
10467
  type: z.ZodLiteral<"mcp">;
10328
10468
  server: z.ZodString;
10329
10469
  tool: z.ZodString;
10470
+ app: z.ZodOptional<z.ZodObject<{
10471
+ resourceUri: z.ZodString;
10472
+ displayMode: z.ZodOptional<z.ZodEnum<["inline", "fullscreen"]>>;
10473
+ connector: z.ZodOptional<z.ZodString>;
10474
+ }, "strip", z.ZodTypeAny, {
10475
+ resourceUri: string;
10476
+ displayMode?: "inline" | "fullscreen" | undefined;
10477
+ connector?: string | undefined;
10478
+ }, {
10479
+ resourceUri: string;
10480
+ displayMode?: "inline" | "fullscreen" | undefined;
10481
+ connector?: string | undefined;
10482
+ }>>;
10330
10483
  }, "strip", z.ZodTypeAny, {
10331
10484
  type: "mcp";
10332
10485
  server: string;
10333
10486
  tool: string;
10487
+ app?: {
10488
+ resourceUri: string;
10489
+ displayMode?: "inline" | "fullscreen" | undefined;
10490
+ connector?: string | undefined;
10491
+ } | undefined;
10334
10492
  }, {
10335
10493
  type: "mcp";
10336
10494
  server: string;
10337
10495
  tool: string;
10496
+ app?: {
10497
+ resourceUri: string;
10498
+ displayMode?: "inline" | "fullscreen" | undefined;
10499
+ connector?: string | undefined;
10500
+ } | undefined;
10338
10501
  }>, z.ZodObject<{
10339
10502
  type: z.ZodLiteral<"subagent">;
10340
10503
  action: z.ZodDefault<z.ZodEnum<["spawn", "message", "wait", "stop", "resume", "list"]>>;
@@ -10703,6 +10866,11 @@ declare const coreMethods: {
10703
10866
  type: "mcp";
10704
10867
  server: string;
10705
10868
  tool: string;
10869
+ app?: {
10870
+ resourceUri: string;
10871
+ displayMode?: "inline" | "fullscreen" | undefined;
10872
+ connector?: string | undefined;
10873
+ } | undefined;
10706
10874
  } | {
10707
10875
  type: "subagent";
10708
10876
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -10799,6 +10967,11 @@ declare const coreMethods: {
10799
10967
  type: "mcp";
10800
10968
  server: string;
10801
10969
  tool: string;
10970
+ app?: {
10971
+ resourceUri: string;
10972
+ displayMode?: "inline" | "fullscreen" | undefined;
10973
+ connector?: string | undefined;
10974
+ } | undefined;
10802
10975
  } | {
10803
10976
  type: "subagent";
10804
10977
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -10882,14 +11055,37 @@ declare const coreMethods: {
10882
11055
  type: z.ZodLiteral<"mcp">;
10883
11056
  server: z.ZodString;
10884
11057
  tool: z.ZodString;
11058
+ app: z.ZodOptional<z.ZodObject<{
11059
+ resourceUri: z.ZodString;
11060
+ displayMode: z.ZodOptional<z.ZodEnum<["inline", "fullscreen"]>>;
11061
+ connector: z.ZodOptional<z.ZodString>;
11062
+ }, "strip", z.ZodTypeAny, {
11063
+ resourceUri: string;
11064
+ displayMode?: "inline" | "fullscreen" | undefined;
11065
+ connector?: string | undefined;
11066
+ }, {
11067
+ resourceUri: string;
11068
+ displayMode?: "inline" | "fullscreen" | undefined;
11069
+ connector?: string | undefined;
11070
+ }>>;
10885
11071
  }, "strip", z.ZodTypeAny, {
10886
11072
  type: "mcp";
10887
11073
  server: string;
10888
11074
  tool: string;
11075
+ app?: {
11076
+ resourceUri: string;
11077
+ displayMode?: "inline" | "fullscreen" | undefined;
11078
+ connector?: string | undefined;
11079
+ } | undefined;
10889
11080
  }, {
10890
11081
  type: "mcp";
10891
11082
  server: string;
10892
11083
  tool: string;
11084
+ app?: {
11085
+ resourceUri: string;
11086
+ displayMode?: "inline" | "fullscreen" | undefined;
11087
+ connector?: string | undefined;
11088
+ } | undefined;
10893
11089
  }>, z.ZodObject<{
10894
11090
  type: z.ZodLiteral<"subagent">;
10895
11091
  action: z.ZodDefault<z.ZodEnum<["spawn", "message", "wait", "stop", "resume", "list"]>>;
@@ -11438,6 +11634,11 @@ declare const coreMethods: {
11438
11634
  type: "mcp";
11439
11635
  server: string;
11440
11636
  tool: string;
11637
+ app?: {
11638
+ resourceUri: string;
11639
+ displayMode?: "inline" | "fullscreen" | undefined;
11640
+ connector?: string | undefined;
11641
+ } | undefined;
11441
11642
  } | {
11442
11643
  type: "subagent";
11443
11644
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -11537,6 +11738,11 @@ declare const coreMethods: {
11537
11738
  type: "mcp";
11538
11739
  server: string;
11539
11740
  tool: string;
11741
+ app?: {
11742
+ resourceUri: string;
11743
+ displayMode?: "inline" | "fullscreen" | undefined;
11744
+ connector?: string | undefined;
11745
+ } | undefined;
11540
11746
  } | {
11541
11747
  type: "subagent";
11542
11748
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -13189,6 +13395,11 @@ declare const coreMethods: {
13189
13395
  type: "mcp";
13190
13396
  server: string;
13191
13397
  tool: string;
13398
+ app?: {
13399
+ resourceUri: string;
13400
+ displayMode?: "inline" | "fullscreen" | undefined;
13401
+ connector?: string | undefined;
13402
+ } | undefined;
13192
13403
  } | {
13193
13404
  type: "subagent";
13194
13405
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -13347,6 +13558,11 @@ declare const coreMethods: {
13347
13558
  type: "mcp";
13348
13559
  server: string;
13349
13560
  tool: string;
13561
+ app?: {
13562
+ resourceUri: string;
13563
+ displayMode?: "inline" | "fullscreen" | undefined;
13564
+ connector?: string | undefined;
13565
+ } | undefined;
13350
13566
  } | {
13351
13567
  type: "subagent";
13352
13568
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -13748,6 +13964,11 @@ declare const coreMethods: {
13748
13964
  type: "mcp";
13749
13965
  server: string;
13750
13966
  tool: string;
13967
+ app?: {
13968
+ resourceUri: string;
13969
+ displayMode?: "inline" | "fullscreen" | undefined;
13970
+ connector?: string | undefined;
13971
+ } | undefined;
13751
13972
  } | {
13752
13973
  type: "subagent";
13753
13974
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -13844,6 +14065,11 @@ declare const coreMethods: {
13844
14065
  type: "mcp";
13845
14066
  server: string;
13846
14067
  tool: string;
14068
+ app?: {
14069
+ resourceUri: string;
14070
+ displayMode?: "inline" | "fullscreen" | undefined;
14071
+ connector?: string | undefined;
14072
+ } | undefined;
13847
14073
  } | {
13848
14074
  type: "subagent";
13849
14075
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -14497,6 +14723,11 @@ declare const coreMethods: {
14497
14723
  type: "mcp";
14498
14724
  server: string;
14499
14725
  tool: string;
14726
+ app?: {
14727
+ resourceUri: string;
14728
+ displayMode?: "inline" | "fullscreen" | undefined;
14729
+ connector?: string | undefined;
14730
+ } | undefined;
14500
14731
  } | {
14501
14732
  type: "subagent";
14502
14733
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -14655,6 +14886,11 @@ declare const coreMethods: {
14655
14886
  type: "mcp";
14656
14887
  server: string;
14657
14888
  tool: string;
14889
+ app?: {
14890
+ resourceUri: string;
14891
+ displayMode?: "inline" | "fullscreen" | undefined;
14892
+ connector?: string | undefined;
14893
+ } | undefined;
14658
14894
  } | {
14659
14895
  type: "subagent";
14660
14896
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -15059,6 +15295,11 @@ declare const coreMethods: {
15059
15295
  type: "mcp";
15060
15296
  server: string;
15061
15297
  tool: string;
15298
+ app?: {
15299
+ resourceUri: string;
15300
+ displayMode?: "inline" | "fullscreen" | undefined;
15301
+ connector?: string | undefined;
15302
+ } | undefined;
15062
15303
  } | {
15063
15304
  type: "subagent";
15064
15305
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -15155,6 +15396,11 @@ declare const coreMethods: {
15155
15396
  type: "mcp";
15156
15397
  server: string;
15157
15398
  tool: string;
15399
+ app?: {
15400
+ resourceUri: string;
15401
+ displayMode?: "inline" | "fullscreen" | undefined;
15402
+ connector?: string | undefined;
15403
+ } | undefined;
15158
15404
  } | {
15159
15405
  type: "subagent";
15160
15406
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -16568,14 +16814,37 @@ declare const coreMethods: {
16568
16814
  type: z.ZodLiteral<"mcp">;
16569
16815
  server: z.ZodString;
16570
16816
  tool: z.ZodString;
16817
+ app: z.ZodOptional<z.ZodObject<{
16818
+ resourceUri: z.ZodString;
16819
+ displayMode: z.ZodOptional<z.ZodEnum<["inline", "fullscreen"]>>;
16820
+ connector: z.ZodOptional<z.ZodString>;
16821
+ }, "strip", z.ZodTypeAny, {
16822
+ resourceUri: string;
16823
+ displayMode?: "inline" | "fullscreen" | undefined;
16824
+ connector?: string | undefined;
16825
+ }, {
16826
+ resourceUri: string;
16827
+ displayMode?: "inline" | "fullscreen" | undefined;
16828
+ connector?: string | undefined;
16829
+ }>>;
16571
16830
  }, "strip", z.ZodTypeAny, {
16572
16831
  type: "mcp";
16573
16832
  server: string;
16574
16833
  tool: string;
16834
+ app?: {
16835
+ resourceUri: string;
16836
+ displayMode?: "inline" | "fullscreen" | undefined;
16837
+ connector?: string | undefined;
16838
+ } | undefined;
16575
16839
  }, {
16576
16840
  type: "mcp";
16577
16841
  server: string;
16578
16842
  tool: string;
16843
+ app?: {
16844
+ resourceUri: string;
16845
+ displayMode?: "inline" | "fullscreen" | undefined;
16846
+ connector?: string | undefined;
16847
+ } | undefined;
16579
16848
  }>, z.ZodObject<{
16580
16849
  type: z.ZodLiteral<"subagent">;
16581
16850
  action: z.ZodDefault<z.ZodEnum<["spawn", "message", "wait", "stop", "resume", "list"]>>;
@@ -16944,6 +17213,11 @@ declare const coreMethods: {
16944
17213
  type: "mcp";
16945
17214
  server: string;
16946
17215
  tool: string;
17216
+ app?: {
17217
+ resourceUri: string;
17218
+ displayMode?: "inline" | "fullscreen" | undefined;
17219
+ connector?: string | undefined;
17220
+ } | undefined;
16947
17221
  } | {
16948
17222
  type: "subagent";
16949
17223
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -17040,6 +17314,11 @@ declare const coreMethods: {
17040
17314
  type: "mcp";
17041
17315
  server: string;
17042
17316
  tool: string;
17317
+ app?: {
17318
+ resourceUri: string;
17319
+ displayMode?: "inline" | "fullscreen" | undefined;
17320
+ connector?: string | undefined;
17321
+ } | undefined;
17043
17322
  } | {
17044
17323
  type: "subagent";
17045
17324
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -17123,14 +17402,37 @@ declare const coreMethods: {
17123
17402
  type: z.ZodLiteral<"mcp">;
17124
17403
  server: z.ZodString;
17125
17404
  tool: z.ZodString;
17405
+ app: z.ZodOptional<z.ZodObject<{
17406
+ resourceUri: z.ZodString;
17407
+ displayMode: z.ZodOptional<z.ZodEnum<["inline", "fullscreen"]>>;
17408
+ connector: z.ZodOptional<z.ZodString>;
17409
+ }, "strip", z.ZodTypeAny, {
17410
+ resourceUri: string;
17411
+ displayMode?: "inline" | "fullscreen" | undefined;
17412
+ connector?: string | undefined;
17413
+ }, {
17414
+ resourceUri: string;
17415
+ displayMode?: "inline" | "fullscreen" | undefined;
17416
+ connector?: string | undefined;
17417
+ }>>;
17126
17418
  }, "strip", z.ZodTypeAny, {
17127
17419
  type: "mcp";
17128
17420
  server: string;
17129
17421
  tool: string;
17422
+ app?: {
17423
+ resourceUri: string;
17424
+ displayMode?: "inline" | "fullscreen" | undefined;
17425
+ connector?: string | undefined;
17426
+ } | undefined;
17130
17427
  }, {
17131
17428
  type: "mcp";
17132
17429
  server: string;
17133
17430
  tool: string;
17431
+ app?: {
17432
+ resourceUri: string;
17433
+ displayMode?: "inline" | "fullscreen" | undefined;
17434
+ connector?: string | undefined;
17435
+ } | undefined;
17134
17436
  }>, z.ZodObject<{
17135
17437
  type: z.ZodLiteral<"subagent">;
17136
17438
  action: z.ZodDefault<z.ZodEnum<["spawn", "message", "wait", "stop", "resume", "list"]>>;
@@ -17679,6 +17981,11 @@ declare const coreMethods: {
17679
17981
  type: "mcp";
17680
17982
  server: string;
17681
17983
  tool: string;
17984
+ app?: {
17985
+ resourceUri: string;
17986
+ displayMode?: "inline" | "fullscreen" | undefined;
17987
+ connector?: string | undefined;
17988
+ } | undefined;
17682
17989
  } | {
17683
17990
  type: "subagent";
17684
17991
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -17778,6 +18085,11 @@ declare const coreMethods: {
17778
18085
  type: "mcp";
17779
18086
  server: string;
17780
18087
  tool: string;
18088
+ app?: {
18089
+ resourceUri: string;
18090
+ displayMode?: "inline" | "fullscreen" | undefined;
18091
+ connector?: string | undefined;
18092
+ } | undefined;
17781
18093
  } | {
17782
18094
  type: "subagent";
17783
18095
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -19430,6 +19742,11 @@ declare const coreMethods: {
19430
19742
  type: "mcp";
19431
19743
  server: string;
19432
19744
  tool: string;
19745
+ app?: {
19746
+ resourceUri: string;
19747
+ displayMode?: "inline" | "fullscreen" | undefined;
19748
+ connector?: string | undefined;
19749
+ } | undefined;
19433
19750
  } | {
19434
19751
  type: "subagent";
19435
19752
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -19588,6 +19905,11 @@ declare const coreMethods: {
19588
19905
  type: "mcp";
19589
19906
  server: string;
19590
19907
  tool: string;
19908
+ app?: {
19909
+ resourceUri: string;
19910
+ displayMode?: "inline" | "fullscreen" | undefined;
19911
+ connector?: string | undefined;
19912
+ } | undefined;
19591
19913
  } | {
19592
19914
  type: "subagent";
19593
19915
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -19989,6 +20311,11 @@ declare const coreMethods: {
19989
20311
  type: "mcp";
19990
20312
  server: string;
19991
20313
  tool: string;
20314
+ app?: {
20315
+ resourceUri: string;
20316
+ displayMode?: "inline" | "fullscreen" | undefined;
20317
+ connector?: string | undefined;
20318
+ } | undefined;
19992
20319
  } | {
19993
20320
  type: "subagent";
19994
20321
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -20085,6 +20412,11 @@ declare const coreMethods: {
20085
20412
  type: "mcp";
20086
20413
  server: string;
20087
20414
  tool: string;
20415
+ app?: {
20416
+ resourceUri: string;
20417
+ displayMode?: "inline" | "fullscreen" | undefined;
20418
+ connector?: string | undefined;
20419
+ } | undefined;
20088
20420
  } | {
20089
20421
  type: "subagent";
20090
20422
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -20736,6 +21068,11 @@ declare const coreMethods: {
20736
21068
  type: "mcp";
20737
21069
  server: string;
20738
21070
  tool: string;
21071
+ app?: {
21072
+ resourceUri: string;
21073
+ displayMode?: "inline" | "fullscreen" | undefined;
21074
+ connector?: string | undefined;
21075
+ } | undefined;
20739
21076
  } | {
20740
21077
  type: "subagent";
20741
21078
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -20894,6 +21231,11 @@ declare const coreMethods: {
20894
21231
  type: "mcp";
20895
21232
  server: string;
20896
21233
  tool: string;
21234
+ app?: {
21235
+ resourceUri: string;
21236
+ displayMode?: "inline" | "fullscreen" | undefined;
21237
+ connector?: string | undefined;
21238
+ } | undefined;
20897
21239
  } | {
20898
21240
  type: "subagent";
20899
21241
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -21297,6 +21639,11 @@ declare const coreMethods: {
21297
21639
  type: "mcp";
21298
21640
  server: string;
21299
21641
  tool: string;
21642
+ app?: {
21643
+ resourceUri: string;
21644
+ displayMode?: "inline" | "fullscreen" | undefined;
21645
+ connector?: string | undefined;
21646
+ } | undefined;
21300
21647
  } | {
21301
21648
  type: "subagent";
21302
21649
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -21393,6 +21740,11 @@ declare const coreMethods: {
21393
21740
  type: "mcp";
21394
21741
  server: string;
21395
21742
  tool: string;
21743
+ app?: {
21744
+ resourceUri: string;
21745
+ displayMode?: "inline" | "fullscreen" | undefined;
21746
+ connector?: string | undefined;
21747
+ } | undefined;
21396
21748
  } | {
21397
21749
  type: "subagent";
21398
21750
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -21675,6 +22027,223 @@ declare const coreMethods: {
21675
22027
  }[];
21676
22028
  }>;
21677
22029
  };
22030
+ /**
22031
+ * Asks in a side conversation of the session (a new one without `sideId`):
22032
+ * answered from what the session knows, never added to it. Returns once the
22033
+ * question is on its way; the answer comes in `session.side`. Only for an
22034
+ * agent whose capabilities say `side`.
22035
+ */
22036
+ readonly "sessions.side": {
22037
+ readonly params: z.ZodObject<{
22038
+ sessionId: z.ZodString;
22039
+ sideId: z.ZodOptional<z.ZodString>;
22040
+ text: z.ZodString;
22041
+ }, "strip", z.ZodTypeAny, {
22042
+ text: string;
22043
+ sessionId: string;
22044
+ sideId?: string | undefined;
22045
+ }, {
22046
+ text: string;
22047
+ sessionId: string;
22048
+ sideId?: string | undefined;
22049
+ }>;
22050
+ readonly result: z.ZodObject<{
22051
+ side: z.ZodObject<{
22052
+ sideId: z.ZodString;
22053
+ createdAt: z.ZodNumber;
22054
+ running: z.ZodBoolean;
22055
+ revision: z.ZodNumber;
22056
+ messages: z.ZodArray<z.ZodObject<{
22057
+ id: z.ZodString;
22058
+ role: z.ZodEnum<["user", "assistant"]>;
22059
+ text: z.ZodString;
22060
+ activity: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
22061
+ error: z.ZodOptional<z.ZodString>;
22062
+ }, "strip", z.ZodTypeAny, {
22063
+ text: string;
22064
+ id: string;
22065
+ role: "user" | "assistant";
22066
+ error?: string | undefined;
22067
+ activity?: string[] | undefined;
22068
+ }, {
22069
+ text: string;
22070
+ id: string;
22071
+ role: "user" | "assistant";
22072
+ error?: string | undefined;
22073
+ activity?: string[] | undefined;
22074
+ }>, "many">;
22075
+ }, "strip", z.ZodTypeAny, {
22076
+ running: boolean;
22077
+ createdAt: number;
22078
+ sideId: string;
22079
+ revision: number;
22080
+ messages: {
22081
+ text: string;
22082
+ id: string;
22083
+ role: "user" | "assistant";
22084
+ error?: string | undefined;
22085
+ activity?: string[] | undefined;
22086
+ }[];
22087
+ }, {
22088
+ running: boolean;
22089
+ createdAt: number;
22090
+ sideId: string;
22091
+ revision: number;
22092
+ messages: {
22093
+ text: string;
22094
+ id: string;
22095
+ role: "user" | "assistant";
22096
+ error?: string | undefined;
22097
+ activity?: string[] | undefined;
22098
+ }[];
22099
+ }>;
22100
+ }, "strip", z.ZodTypeAny, {
22101
+ side: {
22102
+ running: boolean;
22103
+ createdAt: number;
22104
+ sideId: string;
22105
+ revision: number;
22106
+ messages: {
22107
+ text: string;
22108
+ id: string;
22109
+ role: "user" | "assistant";
22110
+ error?: string | undefined;
22111
+ activity?: string[] | undefined;
22112
+ }[];
22113
+ };
22114
+ }, {
22115
+ side: {
22116
+ running: boolean;
22117
+ createdAt: number;
22118
+ sideId: string;
22119
+ revision: number;
22120
+ messages: {
22121
+ text: string;
22122
+ id: string;
22123
+ role: "user" | "assistant";
22124
+ error?: string | undefined;
22125
+ activity?: string[] | undefined;
22126
+ }[];
22127
+ };
22128
+ }>;
22129
+ };
22130
+ /** The session's open side conversations, oldest first. */
22131
+ readonly "sessions.sides": {
22132
+ readonly params: z.ZodObject<{
22133
+ sessionId: z.ZodString;
22134
+ }, "strip", z.ZodTypeAny, {
22135
+ sessionId: string;
22136
+ }, {
22137
+ sessionId: string;
22138
+ }>;
22139
+ readonly result: z.ZodObject<{
22140
+ sides: z.ZodArray<z.ZodObject<{
22141
+ sideId: z.ZodString;
22142
+ createdAt: z.ZodNumber;
22143
+ running: z.ZodBoolean;
22144
+ revision: z.ZodNumber;
22145
+ messages: z.ZodArray<z.ZodObject<{
22146
+ id: z.ZodString;
22147
+ role: z.ZodEnum<["user", "assistant"]>;
22148
+ text: z.ZodString;
22149
+ activity: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
22150
+ error: z.ZodOptional<z.ZodString>;
22151
+ }, "strip", z.ZodTypeAny, {
22152
+ text: string;
22153
+ id: string;
22154
+ role: "user" | "assistant";
22155
+ error?: string | undefined;
22156
+ activity?: string[] | undefined;
22157
+ }, {
22158
+ text: string;
22159
+ id: string;
22160
+ role: "user" | "assistant";
22161
+ error?: string | undefined;
22162
+ activity?: string[] | undefined;
22163
+ }>, "many">;
22164
+ }, "strip", z.ZodTypeAny, {
22165
+ running: boolean;
22166
+ createdAt: number;
22167
+ sideId: string;
22168
+ revision: number;
22169
+ messages: {
22170
+ text: string;
22171
+ id: string;
22172
+ role: "user" | "assistant";
22173
+ error?: string | undefined;
22174
+ activity?: string[] | undefined;
22175
+ }[];
22176
+ }, {
22177
+ running: boolean;
22178
+ createdAt: number;
22179
+ sideId: string;
22180
+ revision: number;
22181
+ messages: {
22182
+ text: string;
22183
+ id: string;
22184
+ role: "user" | "assistant";
22185
+ error?: string | undefined;
22186
+ activity?: string[] | undefined;
22187
+ }[];
22188
+ }>, "many">;
22189
+ }, "strip", z.ZodTypeAny, {
22190
+ sides: {
22191
+ running: boolean;
22192
+ createdAt: number;
22193
+ sideId: string;
22194
+ revision: number;
22195
+ messages: {
22196
+ text: string;
22197
+ id: string;
22198
+ role: "user" | "assistant";
22199
+ error?: string | undefined;
22200
+ activity?: string[] | undefined;
22201
+ }[];
22202
+ }[];
22203
+ }, {
22204
+ sides: {
22205
+ running: boolean;
22206
+ createdAt: number;
22207
+ sideId: string;
22208
+ revision: number;
22209
+ messages: {
22210
+ text: string;
22211
+ id: string;
22212
+ role: "user" | "assistant";
22213
+ error?: string | undefined;
22214
+ activity?: string[] | undefined;
22215
+ }[];
22216
+ }[];
22217
+ }>;
22218
+ };
22219
+ /** Stops the answer under way. */
22220
+ readonly "sessions.sideCancel": {
22221
+ readonly params: z.ZodObject<{
22222
+ sessionId: z.ZodString;
22223
+ sideId: z.ZodString;
22224
+ }, "strip", z.ZodTypeAny, {
22225
+ sessionId: string;
22226
+ sideId: string;
22227
+ }, {
22228
+ sessionId: string;
22229
+ sideId: string;
22230
+ }>;
22231
+ readonly result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
22232
+ };
22233
+ /** Ends a side conversation: it is forgotten, and whatever the agent kept for it let go. */
22234
+ readonly "sessions.sideClose": {
22235
+ readonly params: z.ZodObject<{
22236
+ sessionId: z.ZodString;
22237
+ sideId: z.ZodString;
22238
+ }, "strip", z.ZodTypeAny, {
22239
+ sessionId: string;
22240
+ sideId: string;
22241
+ }, {
22242
+ sessionId: string;
22243
+ sideId: string;
22244
+ }>;
22245
+ readonly result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
22246
+ };
21678
22247
  /** The commands this session left running in the background, and the ones that have ended; newest first. */
21679
22248
  readonly "sessions.tasks": {
21680
22249
  readonly params: z.ZodObject<{
@@ -23004,6 +23573,9 @@ declare const coreMethods: {
23004
23573
  branch: string;
23005
23574
  source: string;
23006
23575
  }>>;
23576
+ parentId: z.ZodOptional<z.ZodString>;
23577
+ forkedFrom: z.ZodOptional<z.ZodString>;
23578
+ appId: z.ZodOptional<z.ZodString>;
23007
23579
  subagents: z.ZodOptional<z.ZodObject<{
23008
23580
  total: z.ZodNumber;
23009
23581
  running: z.ZodNumber;
@@ -23189,6 +23761,9 @@ declare const coreMethods: {
23189
23761
  branch: string;
23190
23762
  source: string;
23191
23763
  } | undefined;
23764
+ parentId?: string | undefined;
23765
+ forkedFrom?: string | undefined;
23766
+ appId?: string | undefined;
23192
23767
  subagents?: {
23193
23768
  running: number;
23194
23769
  total: number;
@@ -23300,6 +23875,9 @@ declare const coreMethods: {
23300
23875
  branch: string;
23301
23876
  source: string;
23302
23877
  } | undefined;
23878
+ parentId?: string | undefined;
23879
+ forkedFrom?: string | undefined;
23880
+ appId?: string | undefined;
23303
23881
  subagents?: {
23304
23882
  running: number;
23305
23883
  total: number;
@@ -23475,6 +24053,9 @@ declare const coreMethods: {
23475
24053
  branch: string;
23476
24054
  source: string;
23477
24055
  } | undefined;
24056
+ parentId?: string | undefined;
24057
+ forkedFrom?: string | undefined;
24058
+ appId?: string | undefined;
23478
24059
  subagents?: {
23479
24060
  running: number;
23480
24061
  total: number;
@@ -23588,6 +24169,9 @@ declare const coreMethods: {
23588
24169
  branch: string;
23589
24170
  source: string;
23590
24171
  } | undefined;
24172
+ parentId?: string | undefined;
24173
+ forkedFrom?: string | undefined;
24174
+ appId?: string | undefined;
23591
24175
  subagents?: {
23592
24176
  running: number;
23593
24177
  total: number;
@@ -24313,6 +24897,9 @@ declare const coreMethods: {
24313
24897
  branch: string;
24314
24898
  source: string;
24315
24899
  }>>;
24900
+ parentId: z.ZodOptional<z.ZodString>;
24901
+ forkedFrom: z.ZodOptional<z.ZodString>;
24902
+ appId: z.ZodOptional<z.ZodString>;
24316
24903
  subagents: z.ZodOptional<z.ZodObject<{
24317
24904
  total: z.ZodNumber;
24318
24905
  running: z.ZodNumber;
@@ -24498,6 +25085,9 @@ declare const coreMethods: {
24498
25085
  branch: string;
24499
25086
  source: string;
24500
25087
  } | undefined;
25088
+ parentId?: string | undefined;
25089
+ forkedFrom?: string | undefined;
25090
+ appId?: string | undefined;
24501
25091
  subagents?: {
24502
25092
  running: number;
24503
25093
  total: number;
@@ -24609,6 +25199,9 @@ declare const coreMethods: {
24609
25199
  branch: string;
24610
25200
  source: string;
24611
25201
  } | undefined;
25202
+ parentId?: string | undefined;
25203
+ forkedFrom?: string | undefined;
25204
+ appId?: string | undefined;
24612
25205
  subagents?: {
24613
25206
  running: number;
24614
25207
  total: number;
@@ -24784,6 +25377,9 @@ declare const coreMethods: {
24784
25377
  branch: string;
24785
25378
  source: string;
24786
25379
  } | undefined;
25380
+ parentId?: string | undefined;
25381
+ forkedFrom?: string | undefined;
25382
+ appId?: string | undefined;
24787
25383
  subagents?: {
24788
25384
  running: number;
24789
25385
  total: number;
@@ -24897,6 +25493,9 @@ declare const coreMethods: {
24897
25493
  branch: string;
24898
25494
  source: string;
24899
25495
  } | undefined;
25496
+ parentId?: string | undefined;
25497
+ forkedFrom?: string | undefined;
25498
+ appId?: string | undefined;
24900
25499
  subagents?: {
24901
25500
  running: number;
24902
25501
  total: number;
@@ -25570,9 +26169,9 @@ declare const coreMethods: {
25570
26169
  revision?: string | undefined;
25571
26170
  }, {
25572
26171
  path: string;
26172
+ revision?: string | undefined;
25573
26173
  offset?: number | undefined;
25574
26174
  maxBytes?: number | undefined;
25575
- revision?: string | undefined;
25576
26175
  }>;
25577
26176
  readonly result: z.ZodObject<{
25578
26177
  size: z.ZodNumber;
@@ -25583,14 +26182,14 @@ declare const coreMethods: {
25583
26182
  }, "strip", z.ZodTypeAny, {
25584
26183
  data: string;
25585
26184
  size: number;
25586
- nextOffset: number;
25587
26185
  revision: string;
26186
+ nextOffset: number;
25588
26187
  done: boolean;
25589
26188
  }, {
25590
26189
  data: string;
25591
26190
  size: number;
25592
- nextOffset: number;
25593
26191
  revision: string;
26192
+ nextOffset: number;
25594
26193
  done: boolean;
25595
26194
  }>;
25596
26195
  };
@@ -25713,6 +26312,7 @@ declare const coreMethods: {
25713
26312
  command: z.ZodOptional<z.ZodString>;
25714
26313
  exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25715
26314
  interrupted: z.ZodOptional<z.ZodBoolean>;
26315
+ sessionId: z.ZodOptional<z.ZodString>;
25716
26316
  }, "strip", z.ZodTypeAny, {
25717
26317
  title: string;
25718
26318
  id: string;
@@ -25723,6 +26323,7 @@ declare const coreMethods: {
25723
26323
  activeAt: number;
25724
26324
  command?: string | undefined;
25725
26325
  exitCode?: number | null | undefined;
26326
+ sessionId?: string | undefined;
25726
26327
  interrupted?: boolean | undefined;
25727
26328
  }, {
25728
26329
  title: string;
@@ -25734,6 +26335,7 @@ declare const coreMethods: {
25734
26335
  activeAt: number;
25735
26336
  command?: string | undefined;
25736
26337
  exitCode?: number | null | undefined;
26338
+ sessionId?: string | undefined;
25737
26339
  interrupted?: boolean | undefined;
25738
26340
  }>, "many">;
25739
26341
  }, "strip", z.ZodTypeAny, {
@@ -25747,6 +26349,7 @@ declare const coreMethods: {
25747
26349
  activeAt: number;
25748
26350
  command?: string | undefined;
25749
26351
  exitCode?: number | null | undefined;
26352
+ sessionId?: string | undefined;
25750
26353
  interrupted?: boolean | undefined;
25751
26354
  }[];
25752
26355
  }, {
@@ -25760,6 +26363,7 @@ declare const coreMethods: {
25760
26363
  activeAt: number;
25761
26364
  command?: string | undefined;
25762
26365
  exitCode?: number | null | undefined;
26366
+ sessionId?: string | undefined;
25763
26367
  interrupted?: boolean | undefined;
25764
26368
  }[];
25765
26369
  }>;
@@ -25767,6 +26371,8 @@ declare const coreMethods: {
25767
26371
  readonly "terminals.create": {
25768
26372
  readonly params: z.ZodObject<{
25769
26373
  cwd: z.ZodOptional<z.ZodString>;
26374
+ /** Open it for this session, in its directory unless `cwd` says otherwise (see `TerminalInfo.sessionId`). */
26375
+ sessionId: z.ZodOptional<z.ZodString>;
25770
26376
  /** Run this in the shell right away (the shell stays open after it). */
25771
26377
  command: z.ZodOptional<z.ZodString>;
25772
26378
  cols: z.ZodDefault<z.ZodNumber>;
@@ -25775,9 +26381,11 @@ declare const coreMethods: {
25775
26381
  cols: number;
25776
26382
  rows: number;
25777
26383
  command?: string | undefined;
26384
+ sessionId?: string | undefined;
25778
26385
  cwd?: string | undefined;
25779
26386
  }, {
25780
26387
  command?: string | undefined;
26388
+ sessionId?: string | undefined;
25781
26389
  cwd?: string | undefined;
25782
26390
  cols?: number | undefined;
25783
26391
  rows?: number | undefined;
@@ -25794,6 +26402,7 @@ declare const coreMethods: {
25794
26402
  command: z.ZodOptional<z.ZodString>;
25795
26403
  exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25796
26404
  interrupted: z.ZodOptional<z.ZodBoolean>;
26405
+ sessionId: z.ZodOptional<z.ZodString>;
25797
26406
  }, "strip", z.ZodTypeAny, {
25798
26407
  title: string;
25799
26408
  id: string;
@@ -25804,6 +26413,7 @@ declare const coreMethods: {
25804
26413
  activeAt: number;
25805
26414
  command?: string | undefined;
25806
26415
  exitCode?: number | null | undefined;
26416
+ sessionId?: string | undefined;
25807
26417
  interrupted?: boolean | undefined;
25808
26418
  }, {
25809
26419
  title: string;
@@ -25815,6 +26425,7 @@ declare const coreMethods: {
25815
26425
  activeAt: number;
25816
26426
  command?: string | undefined;
25817
26427
  exitCode?: number | null | undefined;
26428
+ sessionId?: string | undefined;
25818
26429
  interrupted?: boolean | undefined;
25819
26430
  }>;
25820
26431
  }, "strip", z.ZodTypeAny, {
@@ -25828,6 +26439,7 @@ declare const coreMethods: {
25828
26439
  activeAt: number;
25829
26440
  command?: string | undefined;
25830
26441
  exitCode?: number | null | undefined;
26442
+ sessionId?: string | undefined;
25831
26443
  interrupted?: boolean | undefined;
25832
26444
  };
25833
26445
  }, {
@@ -25841,6 +26453,7 @@ declare const coreMethods: {
25841
26453
  activeAt: number;
25842
26454
  command?: string | undefined;
25843
26455
  exitCode?: number | null | undefined;
26456
+ sessionId?: string | undefined;
25844
26457
  interrupted?: boolean | undefined;
25845
26458
  };
25846
26459
  }>;
@@ -25882,6 +26495,7 @@ declare const coreMethods: {
25882
26495
  command: z.ZodOptional<z.ZodString>;
25883
26496
  exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25884
26497
  interrupted: z.ZodOptional<z.ZodBoolean>;
26498
+ sessionId: z.ZodOptional<z.ZodString>;
25885
26499
  }, "strip", z.ZodTypeAny, {
25886
26500
  title: string;
25887
26501
  id: string;
@@ -25892,6 +26506,7 @@ declare const coreMethods: {
25892
26506
  activeAt: number;
25893
26507
  command?: string | undefined;
25894
26508
  exitCode?: number | null | undefined;
26509
+ sessionId?: string | undefined;
25895
26510
  interrupted?: boolean | undefined;
25896
26511
  }, {
25897
26512
  title: string;
@@ -25903,6 +26518,7 @@ declare const coreMethods: {
25903
26518
  activeAt: number;
25904
26519
  command?: string | undefined;
25905
26520
  exitCode?: number | null | undefined;
26521
+ sessionId?: string | undefined;
25906
26522
  interrupted?: boolean | undefined;
25907
26523
  }>;
25908
26524
  /** Output to write before any `terminal.output` that follows. */
@@ -25951,6 +26567,7 @@ declare const coreMethods: {
25951
26567
  activeAt: number;
25952
26568
  command?: string | undefined;
25953
26569
  exitCode?: number | null | undefined;
26570
+ sessionId?: string | undefined;
25954
26571
  interrupted?: boolean | undefined;
25955
26572
  };
25956
26573
  seq: number;
@@ -25978,6 +26595,7 @@ declare const coreMethods: {
25978
26595
  activeAt: number;
25979
26596
  command?: string | undefined;
25980
26597
  exitCode?: number | null | undefined;
26598
+ sessionId?: string | undefined;
25981
26599
  interrupted?: boolean | undefined;
25982
26600
  };
25983
26601
  seq: number;
@@ -26289,15 +26907,15 @@ declare const coreMethods: {
26289
26907
  recording: boolean | null;
26290
26908
  ffmpeg: boolean;
26291
26909
  control: boolean | null;
26292
- problem?: string | undefined;
26293
26910
  app?: string | undefined;
26911
+ problem?: string | undefined;
26294
26912
  }, {
26295
26913
  supported: boolean;
26296
26914
  recording: boolean | null;
26297
26915
  ffmpeg: boolean;
26298
26916
  control: boolean | null;
26299
- problem?: string | undefined;
26300
26917
  app?: string | undefined;
26918
+ problem?: string | undefined;
26301
26919
  }>;
26302
26920
  };
26303
26921
  /** Bytes to the host's end of a stream (base64). */
@@ -26325,7 +26943,7 @@ declare const coreMethods: {
26325
26943
  readonly result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
26326
26944
  };
26327
26945
  };
26328
- export declare const methods: typeof coreMethods & typeof acpMethods;
26946
+ export declare const methods: typeof coreMethods & typeof acpMethods & typeof mcpMethods;
26329
26947
  export type MethodName = keyof typeof methods;
26330
26948
  export type MethodParams<M extends MethodName> = z.input<(typeof methods)[M]["params"]>;
26331
26949
  export type MethodResult<M extends MethodName> = z.infer<(typeof methods)[M]["result"]>;
@@ -26361,6 +26979,7 @@ export declare const notifications: {
26361
26979
  embeddedContext: z.ZodOptional<z.ZodBoolean>;
26362
26980
  acp: z.ZodOptional<z.ZodBoolean>;
26363
26981
  fork: z.ZodBoolean;
26982
+ side: z.ZodOptional<z.ZodBoolean>;
26364
26983
  models: z.ZodBoolean;
26365
26984
  modes: z.ZodBoolean;
26366
26985
  }, "strip", z.ZodTypeAny, {
@@ -26374,6 +26993,7 @@ export declare const notifications: {
26374
26993
  audio?: boolean | undefined;
26375
26994
  embeddedContext?: boolean | undefined;
26376
26995
  acp?: boolean | undefined;
26996
+ side?: boolean | undefined;
26377
26997
  }, {
26378
26998
  interrupt: boolean;
26379
26999
  steer: boolean;
@@ -26385,6 +27005,7 @@ export declare const notifications: {
26385
27005
  audio?: boolean | undefined;
26386
27006
  embeddedContext?: boolean | undefined;
26387
27007
  acp?: boolean | undefined;
27008
+ side?: boolean | undefined;
26388
27009
  }>;
26389
27010
  }, "strip", z.ZodTypeAny, {
26390
27011
  id: string;
@@ -26402,6 +27023,7 @@ export declare const notifications: {
26402
27023
  audio?: boolean | undefined;
26403
27024
  embeddedContext?: boolean | undefined;
26404
27025
  acp?: boolean | undefined;
27026
+ side?: boolean | undefined;
26405
27027
  };
26406
27028
  version?: string | undefined;
26407
27029
  problem?: string | undefined;
@@ -26426,6 +27048,7 @@ export declare const notifications: {
26426
27048
  audio?: boolean | undefined;
26427
27049
  embeddedContext?: boolean | undefined;
26428
27050
  acp?: boolean | undefined;
27051
+ side?: boolean | undefined;
26429
27052
  };
26430
27053
  version?: string | undefined;
26431
27054
  problem?: string | undefined;
@@ -26452,6 +27075,7 @@ export declare const notifications: {
26452
27075
  audio?: boolean | undefined;
26453
27076
  embeddedContext?: boolean | undefined;
26454
27077
  acp?: boolean | undefined;
27078
+ side?: boolean | undefined;
26455
27079
  };
26456
27080
  version?: string | undefined;
26457
27081
  problem?: string | undefined;
@@ -26478,6 +27102,7 @@ export declare const notifications: {
26478
27102
  audio?: boolean | undefined;
26479
27103
  embeddedContext?: boolean | undefined;
26480
27104
  acp?: boolean | undefined;
27105
+ side?: boolean | undefined;
26481
27106
  };
26482
27107
  version?: string | undefined;
26483
27108
  problem?: string | undefined;
@@ -28146,14 +28771,37 @@ export declare const notifications: {
28146
28771
  type: z.ZodLiteral<"mcp">;
28147
28772
  server: z.ZodString;
28148
28773
  tool: z.ZodString;
28774
+ app: z.ZodOptional<z.ZodObject<{
28775
+ resourceUri: z.ZodString;
28776
+ displayMode: z.ZodOptional<z.ZodEnum<["inline", "fullscreen"]>>;
28777
+ connector: z.ZodOptional<z.ZodString>;
28778
+ }, "strip", z.ZodTypeAny, {
28779
+ resourceUri: string;
28780
+ displayMode?: "inline" | "fullscreen" | undefined;
28781
+ connector?: string | undefined;
28782
+ }, {
28783
+ resourceUri: string;
28784
+ displayMode?: "inline" | "fullscreen" | undefined;
28785
+ connector?: string | undefined;
28786
+ }>>;
28149
28787
  }, "strip", z.ZodTypeAny, {
28150
28788
  type: "mcp";
28151
28789
  server: string;
28152
28790
  tool: string;
28791
+ app?: {
28792
+ resourceUri: string;
28793
+ displayMode?: "inline" | "fullscreen" | undefined;
28794
+ connector?: string | undefined;
28795
+ } | undefined;
28153
28796
  }, {
28154
28797
  type: "mcp";
28155
28798
  server: string;
28156
28799
  tool: string;
28800
+ app?: {
28801
+ resourceUri: string;
28802
+ displayMode?: "inline" | "fullscreen" | undefined;
28803
+ connector?: string | undefined;
28804
+ } | undefined;
28157
28805
  }>, z.ZodObject<{
28158
28806
  type: z.ZodLiteral<"subagent">;
28159
28807
  action: z.ZodDefault<z.ZodEnum<["spawn", "message", "wait", "stop", "resume", "list"]>>;
@@ -28522,6 +29170,11 @@ export declare const notifications: {
28522
29170
  type: "mcp";
28523
29171
  server: string;
28524
29172
  tool: string;
29173
+ app?: {
29174
+ resourceUri: string;
29175
+ displayMode?: "inline" | "fullscreen" | undefined;
29176
+ connector?: string | undefined;
29177
+ } | undefined;
28525
29178
  } | {
28526
29179
  type: "subagent";
28527
29180
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -28618,6 +29271,11 @@ export declare const notifications: {
28618
29271
  type: "mcp";
28619
29272
  server: string;
28620
29273
  tool: string;
29274
+ app?: {
29275
+ resourceUri: string;
29276
+ displayMode?: "inline" | "fullscreen" | undefined;
29277
+ connector?: string | undefined;
29278
+ } | undefined;
28621
29279
  } | {
28622
29280
  type: "subagent";
28623
29281
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -28701,14 +29359,37 @@ export declare const notifications: {
28701
29359
  type: z.ZodLiteral<"mcp">;
28702
29360
  server: z.ZodString;
28703
29361
  tool: z.ZodString;
29362
+ app: z.ZodOptional<z.ZodObject<{
29363
+ resourceUri: z.ZodString;
29364
+ displayMode: z.ZodOptional<z.ZodEnum<["inline", "fullscreen"]>>;
29365
+ connector: z.ZodOptional<z.ZodString>;
29366
+ }, "strip", z.ZodTypeAny, {
29367
+ resourceUri: string;
29368
+ displayMode?: "inline" | "fullscreen" | undefined;
29369
+ connector?: string | undefined;
29370
+ }, {
29371
+ resourceUri: string;
29372
+ displayMode?: "inline" | "fullscreen" | undefined;
29373
+ connector?: string | undefined;
29374
+ }>>;
28704
29375
  }, "strip", z.ZodTypeAny, {
28705
29376
  type: "mcp";
28706
29377
  server: string;
28707
29378
  tool: string;
29379
+ app?: {
29380
+ resourceUri: string;
29381
+ displayMode?: "inline" | "fullscreen" | undefined;
29382
+ connector?: string | undefined;
29383
+ } | undefined;
28708
29384
  }, {
28709
29385
  type: "mcp";
28710
29386
  server: string;
28711
29387
  tool: string;
29388
+ app?: {
29389
+ resourceUri: string;
29390
+ displayMode?: "inline" | "fullscreen" | undefined;
29391
+ connector?: string | undefined;
29392
+ } | undefined;
28712
29393
  }>, z.ZodObject<{
28713
29394
  type: z.ZodLiteral<"subagent">;
28714
29395
  action: z.ZodDefault<z.ZodEnum<["spawn", "message", "wait", "stop", "resume", "list"]>>;
@@ -29257,6 +29938,11 @@ export declare const notifications: {
29257
29938
  type: "mcp";
29258
29939
  server: string;
29259
29940
  tool: string;
29941
+ app?: {
29942
+ resourceUri: string;
29943
+ displayMode?: "inline" | "fullscreen" | undefined;
29944
+ connector?: string | undefined;
29945
+ } | undefined;
29260
29946
  } | {
29261
29947
  type: "subagent";
29262
29948
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -29356,6 +30042,11 @@ export declare const notifications: {
29356
30042
  type: "mcp";
29357
30043
  server: string;
29358
30044
  tool: string;
30045
+ app?: {
30046
+ resourceUri: string;
30047
+ displayMode?: "inline" | "fullscreen" | undefined;
30048
+ connector?: string | undefined;
30049
+ } | undefined;
29359
30050
  } | {
29360
30051
  type: "subagent";
29361
30052
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -31008,6 +31699,11 @@ export declare const notifications: {
31008
31699
  type: "mcp";
31009
31700
  server: string;
31010
31701
  tool: string;
31702
+ app?: {
31703
+ resourceUri: string;
31704
+ displayMode?: "inline" | "fullscreen" | undefined;
31705
+ connector?: string | undefined;
31706
+ } | undefined;
31011
31707
  } | {
31012
31708
  type: "subagent";
31013
31709
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -31166,6 +31862,11 @@ export declare const notifications: {
31166
31862
  type: "mcp";
31167
31863
  server: string;
31168
31864
  tool: string;
31865
+ app?: {
31866
+ resourceUri: string;
31867
+ displayMode?: "inline" | "fullscreen" | undefined;
31868
+ connector?: string | undefined;
31869
+ } | undefined;
31169
31870
  } | {
31170
31871
  type: "subagent";
31171
31872
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -31567,6 +32268,11 @@ export declare const notifications: {
31567
32268
  type: "mcp";
31568
32269
  server: string;
31569
32270
  tool: string;
32271
+ app?: {
32272
+ resourceUri: string;
32273
+ displayMode?: "inline" | "fullscreen" | undefined;
32274
+ connector?: string | undefined;
32275
+ } | undefined;
31570
32276
  } | {
31571
32277
  type: "subagent";
31572
32278
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -31663,6 +32369,11 @@ export declare const notifications: {
31663
32369
  type: "mcp";
31664
32370
  server: string;
31665
32371
  tool: string;
32372
+ app?: {
32373
+ resourceUri: string;
32374
+ displayMode?: "inline" | "fullscreen" | undefined;
32375
+ connector?: string | undefined;
32376
+ } | undefined;
31666
32377
  } | {
31667
32378
  type: "subagent";
31668
32379
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -32660,6 +33371,9 @@ export declare const notifications: {
32660
33371
  branch: string;
32661
33372
  source: string;
32662
33373
  }>>;
33374
+ parentId: z.ZodOptional<z.ZodString>;
33375
+ forkedFrom: z.ZodOptional<z.ZodString>;
33376
+ appId: z.ZodOptional<z.ZodString>;
32663
33377
  subagents: z.ZodOptional<z.ZodObject<{
32664
33378
  total: z.ZodNumber;
32665
33379
  running: z.ZodNumber;
@@ -32845,6 +33559,9 @@ export declare const notifications: {
32845
33559
  branch: string;
32846
33560
  source: string;
32847
33561
  } | undefined;
33562
+ parentId?: string | undefined;
33563
+ forkedFrom?: string | undefined;
33564
+ appId?: string | undefined;
32848
33565
  subagents?: {
32849
33566
  running: number;
32850
33567
  total: number;
@@ -32956,6 +33673,9 @@ export declare const notifications: {
32956
33673
  branch: string;
32957
33674
  source: string;
32958
33675
  } | undefined;
33676
+ parentId?: string | undefined;
33677
+ forkedFrom?: string | undefined;
33678
+ appId?: string | undefined;
32959
33679
  subagents?: {
32960
33680
  running: number;
32961
33681
  total: number;
@@ -33131,6 +33851,9 @@ export declare const notifications: {
33131
33851
  branch: string;
33132
33852
  source: string;
33133
33853
  } | undefined;
33854
+ parentId?: string | undefined;
33855
+ forkedFrom?: string | undefined;
33856
+ appId?: string | undefined;
33134
33857
  subagents?: {
33135
33858
  running: number;
33136
33859
  total: number;
@@ -33244,6 +33967,9 @@ export declare const notifications: {
33244
33967
  branch: string;
33245
33968
  source: string;
33246
33969
  } | undefined;
33970
+ parentId?: string | undefined;
33971
+ forkedFrom?: string | undefined;
33972
+ appId?: string | undefined;
33247
33973
  subagents?: {
33248
33974
  running: number;
33249
33975
  total: number;
@@ -33254,6 +33980,92 @@ export declare const notifications: {
33254
33980
  } | undefined;
33255
33981
  };
33256
33982
  }>;
33983
+ /** A side conversation changed (to every client), or ended (`closed`). */
33984
+ readonly "session.side": z.ZodObject<{
33985
+ sessionId: z.ZodString;
33986
+ side: z.ZodObject<{
33987
+ sideId: z.ZodString;
33988
+ createdAt: z.ZodNumber;
33989
+ running: z.ZodBoolean;
33990
+ revision: z.ZodNumber;
33991
+ messages: z.ZodArray<z.ZodObject<{
33992
+ id: z.ZodString;
33993
+ role: z.ZodEnum<["user", "assistant"]>;
33994
+ text: z.ZodString;
33995
+ activity: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
33996
+ error: z.ZodOptional<z.ZodString>;
33997
+ }, "strip", z.ZodTypeAny, {
33998
+ text: string;
33999
+ id: string;
34000
+ role: "user" | "assistant";
34001
+ error?: string | undefined;
34002
+ activity?: string[] | undefined;
34003
+ }, {
34004
+ text: string;
34005
+ id: string;
34006
+ role: "user" | "assistant";
34007
+ error?: string | undefined;
34008
+ activity?: string[] | undefined;
34009
+ }>, "many">;
34010
+ }, "strip", z.ZodTypeAny, {
34011
+ running: boolean;
34012
+ createdAt: number;
34013
+ sideId: string;
34014
+ revision: number;
34015
+ messages: {
34016
+ text: string;
34017
+ id: string;
34018
+ role: "user" | "assistant";
34019
+ error?: string | undefined;
34020
+ activity?: string[] | undefined;
34021
+ }[];
34022
+ }, {
34023
+ running: boolean;
34024
+ createdAt: number;
34025
+ sideId: string;
34026
+ revision: number;
34027
+ messages: {
34028
+ text: string;
34029
+ id: string;
34030
+ role: "user" | "assistant";
34031
+ error?: string | undefined;
34032
+ activity?: string[] | undefined;
34033
+ }[];
34034
+ }>;
34035
+ closed: z.ZodOptional<z.ZodBoolean>;
34036
+ }, "strip", z.ZodTypeAny, {
34037
+ sessionId: string;
34038
+ side: {
34039
+ running: boolean;
34040
+ createdAt: number;
34041
+ sideId: string;
34042
+ revision: number;
34043
+ messages: {
34044
+ text: string;
34045
+ id: string;
34046
+ role: "user" | "assistant";
34047
+ error?: string | undefined;
34048
+ activity?: string[] | undefined;
34049
+ }[];
34050
+ };
34051
+ closed?: boolean | undefined;
34052
+ }, {
34053
+ sessionId: string;
34054
+ side: {
34055
+ running: boolean;
34056
+ createdAt: number;
34057
+ sideId: string;
34058
+ revision: number;
34059
+ messages: {
34060
+ text: string;
34061
+ id: string;
34062
+ role: "user" | "assistant";
34063
+ error?: string | undefined;
34064
+ activity?: string[] | undefined;
34065
+ }[];
34066
+ };
34067
+ closed?: boolean | undefined;
34068
+ }>;
33257
34069
  /** A session was deleted (from any device, or natively by the agent). */
33258
34070
  readonly "session.removed": z.ZodObject<{
33259
34071
  sessionId: z.ZodString;
@@ -33438,6 +34250,7 @@ export declare const notifications: {
33438
34250
  command: z.ZodOptional<z.ZodString>;
33439
34251
  exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
33440
34252
  interrupted: z.ZodOptional<z.ZodBoolean>;
34253
+ sessionId: z.ZodOptional<z.ZodString>;
33441
34254
  }, "strip", z.ZodTypeAny, {
33442
34255
  title: string;
33443
34256
  id: string;
@@ -33448,6 +34261,7 @@ export declare const notifications: {
33448
34261
  activeAt: number;
33449
34262
  command?: string | undefined;
33450
34263
  exitCode?: number | null | undefined;
34264
+ sessionId?: string | undefined;
33451
34265
  interrupted?: boolean | undefined;
33452
34266
  }, {
33453
34267
  title: string;
@@ -33459,6 +34273,7 @@ export declare const notifications: {
33459
34273
  activeAt: number;
33460
34274
  command?: string | undefined;
33461
34275
  exitCode?: number | null | undefined;
34276
+ sessionId?: string | undefined;
33462
34277
  interrupted?: boolean | undefined;
33463
34278
  }>;
33464
34279
  closed: z.ZodOptional<z.ZodBoolean>;
@@ -33473,6 +34288,7 @@ export declare const notifications: {
33473
34288
  activeAt: number;
33474
34289
  command?: string | undefined;
33475
34290
  exitCode?: number | null | undefined;
34291
+ sessionId?: string | undefined;
33476
34292
  interrupted?: boolean | undefined;
33477
34293
  };
33478
34294
  closed?: boolean | undefined;
@@ -33487,6 +34303,7 @@ export declare const notifications: {
33487
34303
  activeAt: number;
33488
34304
  command?: string | undefined;
33489
34305
  exitCode?: number | null | undefined;
34306
+ sessionId?: string | undefined;
33490
34307
  interrupted?: boolean | undefined;
33491
34308
  };
33492
34309
  closed?: boolean | undefined;