linkshell-cli 0.10.74 → 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 (99) 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 +13 -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/host/src/drivers/acp/antigravity.d.ts +13 -0
  22. package/dist/host/src/drivers/acp/antigravity.js +13 -0
  23. package/dist/host/src/drivers/acp/antigravity.js.map +1 -1
  24. package/dist/host/src/drivers/acp/driver.d.ts +14 -1
  25. package/dist/host/src/drivers/acp/driver.js +45 -3
  26. package/dist/host/src/drivers/acp/driver.js.map +1 -1
  27. package/dist/host/src/drivers/acp/mapper.d.ts +2 -0
  28. package/dist/host/src/drivers/acp/mapper.js +6 -1
  29. package/dist/host/src/drivers/acp/mapper.js.map +1 -1
  30. package/dist/host/src/drivers/claude/app-sessions.d.ts +58 -0
  31. package/dist/host/src/drivers/claude/app-sessions.js +183 -0
  32. package/dist/host/src/drivers/claude/app-sessions.js.map +1 -0
  33. package/dist/host/src/drivers/claude/driver.d.ts +22 -1
  34. package/dist/host/src/drivers/claude/driver.js +95 -10
  35. package/dist/host/src/drivers/claude/driver.js.map +1 -1
  36. package/dist/host/src/drivers/claude/holders.d.ts +3 -1
  37. package/dist/host/src/drivers/claude/holders.js +4 -0
  38. package/dist/host/src/drivers/claude/holders.js.map +1 -1
  39. package/dist/host/src/drivers/claude/routing.d.ts +19 -0
  40. package/dist/host/src/drivers/claude/routing.js +145 -0
  41. package/dist/host/src/drivers/claude/routing.js.map +1 -0
  42. package/dist/host/src/drivers/claude/transcript.d.ts +10 -0
  43. package/dist/host/src/drivers/claude/transcript.js +97 -22
  44. package/dist/host/src/drivers/claude/transcript.js.map +1 -1
  45. package/dist/host/src/drivers/codex/driver.d.ts +15 -0
  46. package/dist/host/src/drivers/codex/driver.js +47 -9
  47. package/dist/host/src/drivers/codex/driver.js.map +1 -1
  48. package/dist/host/src/drivers/codex/mapper.d.ts +41 -7
  49. package/dist/host/src/drivers/codex/mapper.js +167 -26
  50. package/dist/host/src/drivers/codex/mapper.js.map +1 -1
  51. package/dist/host/src/drivers/codex/mcp-apps.d.ts +69 -0
  52. package/dist/host/src/drivers/codex/mcp-apps.js +340 -0
  53. package/dist/host/src/drivers/codex/mcp-apps.js.map +1 -0
  54. package/dist/host/src/drivers/codex/settings.d.ts +13 -0
  55. package/dist/host/src/drivers/codex/settings.js +22 -6
  56. package/dist/host/src/drivers/codex/settings.js.map +1 -1
  57. package/dist/host/src/drivers/types.d.ts +50 -1
  58. package/dist/host/src/hub.d.ts +33 -1
  59. package/dist/host/src/hub.js +157 -13
  60. package/dist/host/src/hub.js.map +1 -1
  61. package/dist/host/src/rpc/mcp.d.ts +8 -0
  62. package/dist/host/src/rpc/mcp.js +33 -0
  63. package/dist/host/src/rpc/mcp.js.map +1 -0
  64. package/dist/host/src/rpc/server.js +16 -2
  65. package/dist/host/src/rpc/server.js.map +1 -1
  66. package/dist/host/src/store.d.ts +7 -0
  67. package/dist/host/src/store.js +27 -3
  68. package/dist/host/src/store.js.map +1 -1
  69. package/dist/host/src/terminals.d.ts +6 -0
  70. package/dist/host/src/terminals.js +29 -2
  71. package/dist/host/src/terminals.js.map +1 -1
  72. package/dist/host/src/usage.d.ts +5 -0
  73. package/dist/host/src/usage.js +10 -2
  74. package/dist/host/src/usage.js.map +1 -1
  75. package/dist/wire/src/envelopes.d.ts +53 -0
  76. package/dist/wire/src/envelopes.js +251 -0
  77. package/dist/wire/src/envelopes.js.map +1 -0
  78. package/dist/wire/src/index.d.ts +2 -0
  79. package/dist/wire/src/index.js +2 -0
  80. package/dist/wire/src/index.js.map +1 -1
  81. package/dist/wire/src/model.d.ts +32 -0
  82. package/dist/wire/src/model.js +24 -0
  83. package/dist/wire/src/model.js.map +1 -1
  84. package/dist/wire/src/rpc-mcp.d.ts +199 -0
  85. package/dist/wire/src/rpc-mcp.js +78 -0
  86. package/dist/wire/src/rpc-mcp.js.map +1 -0
  87. package/dist/wire/src/rpc.d.ts +494 -4
  88. package/dist/wire/src/rpc.js +30 -2
  89. package/dist/wire/src/rpc.js.map +1 -1
  90. package/dist/wire/src/updates.d.ts +211 -0
  91. package/dist/wire/src/updates.js +14 -1
  92. package/dist/wire/src/updates.js.map +1 -1
  93. package/package.json +4 -4
  94. package/src/commands/desktop-workspace.ts +69 -11
  95. package/src/commands/desktop.ts +71 -1
  96. package/src/commands/login-error.ts +12 -0
  97. package/src/commands/login.ts +13 -62
  98. package/src/commands/sign-in.ts +408 -0
  99. 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<{
@@ -69,8 +70,9 @@ export declare const RPC_APP_ERROR = -32000;
69
70
  * methods or notifications an app may rely on, so an app can tell the
70
71
  * computer is older than itself and say so (an absent revision is 0).
71
72
  * 1: side conversations (`sessions.side`), `machine.info.protocol` itself.
73
+ * 2: session terminals (`terminals.create` `sessionId`, `TerminalInfo.sessionId`).
72
74
  */
73
- export declare const HOST_PROTOCOL = 1;
75
+ export declare const HOST_PROTOCOL = 2;
74
76
  export declare const directoryEntrySchema: z.ZodObject<{
75
77
  name: z.ZodString;
76
78
  path: z.ZodString;
@@ -4862,6 +4864,9 @@ declare const coreMethods: {
4862
4864
  branch: string;
4863
4865
  source: string;
4864
4866
  }>>;
4867
+ parentId: z.ZodOptional<z.ZodString>;
4868
+ forkedFrom: z.ZodOptional<z.ZodString>;
4869
+ appId: z.ZodOptional<z.ZodString>;
4865
4870
  subagents: z.ZodOptional<z.ZodObject<{
4866
4871
  total: z.ZodNumber;
4867
4872
  running: z.ZodNumber;
@@ -5047,6 +5052,9 @@ declare const coreMethods: {
5047
5052
  branch: string;
5048
5053
  source: string;
5049
5054
  } | undefined;
5055
+ parentId?: string | undefined;
5056
+ forkedFrom?: string | undefined;
5057
+ appId?: string | undefined;
5050
5058
  subagents?: {
5051
5059
  running: number;
5052
5060
  total: number;
@@ -5158,6 +5166,9 @@ declare const coreMethods: {
5158
5166
  branch: string;
5159
5167
  source: string;
5160
5168
  } | undefined;
5169
+ parentId?: string | undefined;
5170
+ forkedFrom?: string | undefined;
5171
+ appId?: string | undefined;
5161
5172
  subagents?: {
5162
5173
  running: number;
5163
5174
  total: number;
@@ -5334,6 +5345,9 @@ declare const coreMethods: {
5334
5345
  branch: string;
5335
5346
  source: string;
5336
5347
  } | undefined;
5348
+ parentId?: string | undefined;
5349
+ forkedFrom?: string | undefined;
5350
+ appId?: string | undefined;
5337
5351
  subagents?: {
5338
5352
  running: number;
5339
5353
  total: number;
@@ -5448,6 +5462,9 @@ declare const coreMethods: {
5448
5462
  branch: string;
5449
5463
  source: string;
5450
5464
  } | undefined;
5465
+ parentId?: string | undefined;
5466
+ forkedFrom?: string | undefined;
5467
+ appId?: string | undefined;
5451
5468
  subagents?: {
5452
5469
  running: number;
5453
5470
  total: number;
@@ -5460,6 +5477,66 @@ declare const coreMethods: {
5460
5477
  nextBefore?: number | undefined;
5461
5478
  }>;
5462
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
+ };
5463
5540
  readonly "sessions.create": {
5464
5541
  readonly params: z.ZodObject<{
5465
5542
  agent: z.ZodString;
@@ -5528,6 +5605,7 @@ declare const coreMethods: {
5528
5605
  size?: number | undefined;
5529
5606
  }, z.ZodTypeDef, unknown>, "many">>;
5530
5607
  clientMessageId: z.ZodOptional<z.ZodString>;
5608
+ /** One of `agents.models`' values; absent: the agent's own default. */
5531
5609
  model: z.ZodOptional<z.ZodString>;
5532
5610
  /**
5533
5611
  * Start in a new git worktree of `cwd`'s repository (its own branch, from
@@ -6314,6 +6392,9 @@ declare const coreMethods: {
6314
6392
  branch: string;
6315
6393
  source: string;
6316
6394
  }>>;
6395
+ parentId: z.ZodOptional<z.ZodString>;
6396
+ forkedFrom: z.ZodOptional<z.ZodString>;
6397
+ appId: z.ZodOptional<z.ZodString>;
6317
6398
  subagents: z.ZodOptional<z.ZodObject<{
6318
6399
  total: z.ZodNumber;
6319
6400
  running: z.ZodNumber;
@@ -6499,6 +6580,9 @@ declare const coreMethods: {
6499
6580
  branch: string;
6500
6581
  source: string;
6501
6582
  } | undefined;
6583
+ parentId?: string | undefined;
6584
+ forkedFrom?: string | undefined;
6585
+ appId?: string | undefined;
6502
6586
  subagents?: {
6503
6587
  running: number;
6504
6588
  total: number;
@@ -6610,6 +6694,9 @@ declare const coreMethods: {
6610
6694
  branch: string;
6611
6695
  source: string;
6612
6696
  } | undefined;
6697
+ parentId?: string | undefined;
6698
+ forkedFrom?: string | undefined;
6699
+ appId?: string | undefined;
6613
6700
  subagents?: {
6614
6701
  running: number;
6615
6702
  total: number;
@@ -6785,6 +6872,9 @@ declare const coreMethods: {
6785
6872
  branch: string;
6786
6873
  source: string;
6787
6874
  } | undefined;
6875
+ parentId?: string | undefined;
6876
+ forkedFrom?: string | undefined;
6877
+ appId?: string | undefined;
6788
6878
  subagents?: {
6789
6879
  running: number;
6790
6880
  total: number;
@@ -6898,6 +6988,9 @@ declare const coreMethods: {
6898
6988
  branch: string;
6899
6989
  source: string;
6900
6990
  } | undefined;
6991
+ parentId?: string | undefined;
6992
+ forkedFrom?: string | undefined;
6993
+ appId?: string | undefined;
6901
6994
  subagents?: {
6902
6995
  running: number;
6903
6996
  total: number;
@@ -7631,6 +7724,9 @@ declare const coreMethods: {
7631
7724
  branch: string;
7632
7725
  source: string;
7633
7726
  }>>;
7727
+ parentId: z.ZodOptional<z.ZodString>;
7728
+ forkedFrom: z.ZodOptional<z.ZodString>;
7729
+ appId: z.ZodOptional<z.ZodString>;
7634
7730
  subagents: z.ZodOptional<z.ZodObject<{
7635
7731
  total: z.ZodNumber;
7636
7732
  running: z.ZodNumber;
@@ -7816,6 +7912,9 @@ declare const coreMethods: {
7816
7912
  branch: string;
7817
7913
  source: string;
7818
7914
  } | undefined;
7915
+ parentId?: string | undefined;
7916
+ forkedFrom?: string | undefined;
7917
+ appId?: string | undefined;
7819
7918
  subagents?: {
7820
7919
  running: number;
7821
7920
  total: number;
@@ -7927,6 +8026,9 @@ declare const coreMethods: {
7927
8026
  branch: string;
7928
8027
  source: string;
7929
8028
  } | undefined;
8029
+ parentId?: string | undefined;
8030
+ forkedFrom?: string | undefined;
8031
+ appId?: string | undefined;
7930
8032
  subagents?: {
7931
8033
  running: number;
7932
8034
  total: number;
@@ -8102,6 +8204,9 @@ declare const coreMethods: {
8102
8204
  branch: string;
8103
8205
  source: string;
8104
8206
  } | undefined;
8207
+ parentId?: string | undefined;
8208
+ forkedFrom?: string | undefined;
8209
+ appId?: string | undefined;
8105
8210
  subagents?: {
8106
8211
  running: number;
8107
8212
  total: number;
@@ -8215,6 +8320,9 @@ declare const coreMethods: {
8215
8320
  branch: string;
8216
8321
  source: string;
8217
8322
  } | undefined;
8323
+ parentId?: string | undefined;
8324
+ forkedFrom?: string | undefined;
8325
+ appId?: string | undefined;
8218
8326
  subagents?: {
8219
8327
  running: number;
8220
8328
  total: number;
@@ -8961,6 +9069,9 @@ declare const coreMethods: {
8961
9069
  branch: string;
8962
9070
  source: string;
8963
9071
  }>>;
9072
+ parentId: z.ZodOptional<z.ZodString>;
9073
+ forkedFrom: z.ZodOptional<z.ZodString>;
9074
+ appId: z.ZodOptional<z.ZodString>;
8964
9075
  subagents: z.ZodOptional<z.ZodObject<{
8965
9076
  total: z.ZodNumber;
8966
9077
  running: z.ZodNumber;
@@ -9146,6 +9257,9 @@ declare const coreMethods: {
9146
9257
  branch: string;
9147
9258
  source: string;
9148
9259
  } | undefined;
9260
+ parentId?: string | undefined;
9261
+ forkedFrom?: string | undefined;
9262
+ appId?: string | undefined;
9149
9263
  subagents?: {
9150
9264
  running: number;
9151
9265
  total: number;
@@ -9257,6 +9371,9 @@ declare const coreMethods: {
9257
9371
  branch: string;
9258
9372
  source: string;
9259
9373
  } | undefined;
9374
+ parentId?: string | undefined;
9375
+ forkedFrom?: string | undefined;
9376
+ appId?: string | undefined;
9260
9377
  subagents?: {
9261
9378
  running: number;
9262
9379
  total: number;
@@ -9433,6 +9550,9 @@ declare const coreMethods: {
9433
9550
  branch: string;
9434
9551
  source: string;
9435
9552
  } | undefined;
9553
+ parentId?: string | undefined;
9554
+ forkedFrom?: string | undefined;
9555
+ appId?: string | undefined;
9436
9556
  subagents?: {
9437
9557
  running: number;
9438
9558
  total: number;
@@ -9547,6 +9667,9 @@ declare const coreMethods: {
9547
9667
  branch: string;
9548
9668
  source: string;
9549
9669
  } | undefined;
9670
+ parentId?: string | undefined;
9671
+ forkedFrom?: string | undefined;
9672
+ appId?: string | undefined;
9550
9673
  subagents?: {
9551
9674
  running: number;
9552
9675
  total: number;
@@ -10344,14 +10467,37 @@ declare const coreMethods: {
10344
10467
  type: z.ZodLiteral<"mcp">;
10345
10468
  server: z.ZodString;
10346
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
+ }>>;
10347
10483
  }, "strip", z.ZodTypeAny, {
10348
10484
  type: "mcp";
10349
10485
  server: string;
10350
10486
  tool: string;
10487
+ app?: {
10488
+ resourceUri: string;
10489
+ displayMode?: "inline" | "fullscreen" | undefined;
10490
+ connector?: string | undefined;
10491
+ } | undefined;
10351
10492
  }, {
10352
10493
  type: "mcp";
10353
10494
  server: string;
10354
10495
  tool: string;
10496
+ app?: {
10497
+ resourceUri: string;
10498
+ displayMode?: "inline" | "fullscreen" | undefined;
10499
+ connector?: string | undefined;
10500
+ } | undefined;
10355
10501
  }>, z.ZodObject<{
10356
10502
  type: z.ZodLiteral<"subagent">;
10357
10503
  action: z.ZodDefault<z.ZodEnum<["spawn", "message", "wait", "stop", "resume", "list"]>>;
@@ -10720,6 +10866,11 @@ declare const coreMethods: {
10720
10866
  type: "mcp";
10721
10867
  server: string;
10722
10868
  tool: string;
10869
+ app?: {
10870
+ resourceUri: string;
10871
+ displayMode?: "inline" | "fullscreen" | undefined;
10872
+ connector?: string | undefined;
10873
+ } | undefined;
10723
10874
  } | {
10724
10875
  type: "subagent";
10725
10876
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -10816,6 +10967,11 @@ declare const coreMethods: {
10816
10967
  type: "mcp";
10817
10968
  server: string;
10818
10969
  tool: string;
10970
+ app?: {
10971
+ resourceUri: string;
10972
+ displayMode?: "inline" | "fullscreen" | undefined;
10973
+ connector?: string | undefined;
10974
+ } | undefined;
10819
10975
  } | {
10820
10976
  type: "subagent";
10821
10977
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -10899,14 +11055,37 @@ declare const coreMethods: {
10899
11055
  type: z.ZodLiteral<"mcp">;
10900
11056
  server: z.ZodString;
10901
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
+ }>>;
10902
11071
  }, "strip", z.ZodTypeAny, {
10903
11072
  type: "mcp";
10904
11073
  server: string;
10905
11074
  tool: string;
11075
+ app?: {
11076
+ resourceUri: string;
11077
+ displayMode?: "inline" | "fullscreen" | undefined;
11078
+ connector?: string | undefined;
11079
+ } | undefined;
10906
11080
  }, {
10907
11081
  type: "mcp";
10908
11082
  server: string;
10909
11083
  tool: string;
11084
+ app?: {
11085
+ resourceUri: string;
11086
+ displayMode?: "inline" | "fullscreen" | undefined;
11087
+ connector?: string | undefined;
11088
+ } | undefined;
10910
11089
  }>, z.ZodObject<{
10911
11090
  type: z.ZodLiteral<"subagent">;
10912
11091
  action: z.ZodDefault<z.ZodEnum<["spawn", "message", "wait", "stop", "resume", "list"]>>;
@@ -11455,6 +11634,11 @@ declare const coreMethods: {
11455
11634
  type: "mcp";
11456
11635
  server: string;
11457
11636
  tool: string;
11637
+ app?: {
11638
+ resourceUri: string;
11639
+ displayMode?: "inline" | "fullscreen" | undefined;
11640
+ connector?: string | undefined;
11641
+ } | undefined;
11458
11642
  } | {
11459
11643
  type: "subagent";
11460
11644
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -11554,6 +11738,11 @@ declare const coreMethods: {
11554
11738
  type: "mcp";
11555
11739
  server: string;
11556
11740
  tool: string;
11741
+ app?: {
11742
+ resourceUri: string;
11743
+ displayMode?: "inline" | "fullscreen" | undefined;
11744
+ connector?: string | undefined;
11745
+ } | undefined;
11557
11746
  } | {
11558
11747
  type: "subagent";
11559
11748
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -13206,6 +13395,11 @@ declare const coreMethods: {
13206
13395
  type: "mcp";
13207
13396
  server: string;
13208
13397
  tool: string;
13398
+ app?: {
13399
+ resourceUri: string;
13400
+ displayMode?: "inline" | "fullscreen" | undefined;
13401
+ connector?: string | undefined;
13402
+ } | undefined;
13209
13403
  } | {
13210
13404
  type: "subagent";
13211
13405
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -13364,6 +13558,11 @@ declare const coreMethods: {
13364
13558
  type: "mcp";
13365
13559
  server: string;
13366
13560
  tool: string;
13561
+ app?: {
13562
+ resourceUri: string;
13563
+ displayMode?: "inline" | "fullscreen" | undefined;
13564
+ connector?: string | undefined;
13565
+ } | undefined;
13367
13566
  } | {
13368
13567
  type: "subagent";
13369
13568
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -13765,6 +13964,11 @@ declare const coreMethods: {
13765
13964
  type: "mcp";
13766
13965
  server: string;
13767
13966
  tool: string;
13967
+ app?: {
13968
+ resourceUri: string;
13969
+ displayMode?: "inline" | "fullscreen" | undefined;
13970
+ connector?: string | undefined;
13971
+ } | undefined;
13768
13972
  } | {
13769
13973
  type: "subagent";
13770
13974
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -13861,6 +14065,11 @@ declare const coreMethods: {
13861
14065
  type: "mcp";
13862
14066
  server: string;
13863
14067
  tool: string;
14068
+ app?: {
14069
+ resourceUri: string;
14070
+ displayMode?: "inline" | "fullscreen" | undefined;
14071
+ connector?: string | undefined;
14072
+ } | undefined;
13864
14073
  } | {
13865
14074
  type: "subagent";
13866
14075
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -14514,6 +14723,11 @@ declare const coreMethods: {
14514
14723
  type: "mcp";
14515
14724
  server: string;
14516
14725
  tool: string;
14726
+ app?: {
14727
+ resourceUri: string;
14728
+ displayMode?: "inline" | "fullscreen" | undefined;
14729
+ connector?: string | undefined;
14730
+ } | undefined;
14517
14731
  } | {
14518
14732
  type: "subagent";
14519
14733
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -14672,6 +14886,11 @@ declare const coreMethods: {
14672
14886
  type: "mcp";
14673
14887
  server: string;
14674
14888
  tool: string;
14889
+ app?: {
14890
+ resourceUri: string;
14891
+ displayMode?: "inline" | "fullscreen" | undefined;
14892
+ connector?: string | undefined;
14893
+ } | undefined;
14675
14894
  } | {
14676
14895
  type: "subagent";
14677
14896
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -15076,6 +15295,11 @@ declare const coreMethods: {
15076
15295
  type: "mcp";
15077
15296
  server: string;
15078
15297
  tool: string;
15298
+ app?: {
15299
+ resourceUri: string;
15300
+ displayMode?: "inline" | "fullscreen" | undefined;
15301
+ connector?: string | undefined;
15302
+ } | undefined;
15079
15303
  } | {
15080
15304
  type: "subagent";
15081
15305
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -15172,6 +15396,11 @@ declare const coreMethods: {
15172
15396
  type: "mcp";
15173
15397
  server: string;
15174
15398
  tool: string;
15399
+ app?: {
15400
+ resourceUri: string;
15401
+ displayMode?: "inline" | "fullscreen" | undefined;
15402
+ connector?: string | undefined;
15403
+ } | undefined;
15175
15404
  } | {
15176
15405
  type: "subagent";
15177
15406
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -16585,14 +16814,37 @@ declare const coreMethods: {
16585
16814
  type: z.ZodLiteral<"mcp">;
16586
16815
  server: z.ZodString;
16587
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
+ }>>;
16588
16830
  }, "strip", z.ZodTypeAny, {
16589
16831
  type: "mcp";
16590
16832
  server: string;
16591
16833
  tool: string;
16834
+ app?: {
16835
+ resourceUri: string;
16836
+ displayMode?: "inline" | "fullscreen" | undefined;
16837
+ connector?: string | undefined;
16838
+ } | undefined;
16592
16839
  }, {
16593
16840
  type: "mcp";
16594
16841
  server: string;
16595
16842
  tool: string;
16843
+ app?: {
16844
+ resourceUri: string;
16845
+ displayMode?: "inline" | "fullscreen" | undefined;
16846
+ connector?: string | undefined;
16847
+ } | undefined;
16596
16848
  }>, z.ZodObject<{
16597
16849
  type: z.ZodLiteral<"subagent">;
16598
16850
  action: z.ZodDefault<z.ZodEnum<["spawn", "message", "wait", "stop", "resume", "list"]>>;
@@ -16961,6 +17213,11 @@ declare const coreMethods: {
16961
17213
  type: "mcp";
16962
17214
  server: string;
16963
17215
  tool: string;
17216
+ app?: {
17217
+ resourceUri: string;
17218
+ displayMode?: "inline" | "fullscreen" | undefined;
17219
+ connector?: string | undefined;
17220
+ } | undefined;
16964
17221
  } | {
16965
17222
  type: "subagent";
16966
17223
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -17057,6 +17314,11 @@ declare const coreMethods: {
17057
17314
  type: "mcp";
17058
17315
  server: string;
17059
17316
  tool: string;
17317
+ app?: {
17318
+ resourceUri: string;
17319
+ displayMode?: "inline" | "fullscreen" | undefined;
17320
+ connector?: string | undefined;
17321
+ } | undefined;
17060
17322
  } | {
17061
17323
  type: "subagent";
17062
17324
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -17140,14 +17402,37 @@ declare const coreMethods: {
17140
17402
  type: z.ZodLiteral<"mcp">;
17141
17403
  server: z.ZodString;
17142
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
+ }>>;
17143
17418
  }, "strip", z.ZodTypeAny, {
17144
17419
  type: "mcp";
17145
17420
  server: string;
17146
17421
  tool: string;
17422
+ app?: {
17423
+ resourceUri: string;
17424
+ displayMode?: "inline" | "fullscreen" | undefined;
17425
+ connector?: string | undefined;
17426
+ } | undefined;
17147
17427
  }, {
17148
17428
  type: "mcp";
17149
17429
  server: string;
17150
17430
  tool: string;
17431
+ app?: {
17432
+ resourceUri: string;
17433
+ displayMode?: "inline" | "fullscreen" | undefined;
17434
+ connector?: string | undefined;
17435
+ } | undefined;
17151
17436
  }>, z.ZodObject<{
17152
17437
  type: z.ZodLiteral<"subagent">;
17153
17438
  action: z.ZodDefault<z.ZodEnum<["spawn", "message", "wait", "stop", "resume", "list"]>>;
@@ -17696,6 +17981,11 @@ declare const coreMethods: {
17696
17981
  type: "mcp";
17697
17982
  server: string;
17698
17983
  tool: string;
17984
+ app?: {
17985
+ resourceUri: string;
17986
+ displayMode?: "inline" | "fullscreen" | undefined;
17987
+ connector?: string | undefined;
17988
+ } | undefined;
17699
17989
  } | {
17700
17990
  type: "subagent";
17701
17991
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -17795,6 +18085,11 @@ declare const coreMethods: {
17795
18085
  type: "mcp";
17796
18086
  server: string;
17797
18087
  tool: string;
18088
+ app?: {
18089
+ resourceUri: string;
18090
+ displayMode?: "inline" | "fullscreen" | undefined;
18091
+ connector?: string | undefined;
18092
+ } | undefined;
17798
18093
  } | {
17799
18094
  type: "subagent";
17800
18095
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -19447,6 +19742,11 @@ declare const coreMethods: {
19447
19742
  type: "mcp";
19448
19743
  server: string;
19449
19744
  tool: string;
19745
+ app?: {
19746
+ resourceUri: string;
19747
+ displayMode?: "inline" | "fullscreen" | undefined;
19748
+ connector?: string | undefined;
19749
+ } | undefined;
19450
19750
  } | {
19451
19751
  type: "subagent";
19452
19752
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -19605,6 +19905,11 @@ declare const coreMethods: {
19605
19905
  type: "mcp";
19606
19906
  server: string;
19607
19907
  tool: string;
19908
+ app?: {
19909
+ resourceUri: string;
19910
+ displayMode?: "inline" | "fullscreen" | undefined;
19911
+ connector?: string | undefined;
19912
+ } | undefined;
19608
19913
  } | {
19609
19914
  type: "subagent";
19610
19915
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -20006,6 +20311,11 @@ declare const coreMethods: {
20006
20311
  type: "mcp";
20007
20312
  server: string;
20008
20313
  tool: string;
20314
+ app?: {
20315
+ resourceUri: string;
20316
+ displayMode?: "inline" | "fullscreen" | undefined;
20317
+ connector?: string | undefined;
20318
+ } | undefined;
20009
20319
  } | {
20010
20320
  type: "subagent";
20011
20321
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -20102,6 +20412,11 @@ declare const coreMethods: {
20102
20412
  type: "mcp";
20103
20413
  server: string;
20104
20414
  tool: string;
20415
+ app?: {
20416
+ resourceUri: string;
20417
+ displayMode?: "inline" | "fullscreen" | undefined;
20418
+ connector?: string | undefined;
20419
+ } | undefined;
20105
20420
  } | {
20106
20421
  type: "subagent";
20107
20422
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -20753,6 +21068,11 @@ declare const coreMethods: {
20753
21068
  type: "mcp";
20754
21069
  server: string;
20755
21070
  tool: string;
21071
+ app?: {
21072
+ resourceUri: string;
21073
+ displayMode?: "inline" | "fullscreen" | undefined;
21074
+ connector?: string | undefined;
21075
+ } | undefined;
20756
21076
  } | {
20757
21077
  type: "subagent";
20758
21078
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -20911,6 +21231,11 @@ declare const coreMethods: {
20911
21231
  type: "mcp";
20912
21232
  server: string;
20913
21233
  tool: string;
21234
+ app?: {
21235
+ resourceUri: string;
21236
+ displayMode?: "inline" | "fullscreen" | undefined;
21237
+ connector?: string | undefined;
21238
+ } | undefined;
20914
21239
  } | {
20915
21240
  type: "subagent";
20916
21241
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -21314,6 +21639,11 @@ declare const coreMethods: {
21314
21639
  type: "mcp";
21315
21640
  server: string;
21316
21641
  tool: string;
21642
+ app?: {
21643
+ resourceUri: string;
21644
+ displayMode?: "inline" | "fullscreen" | undefined;
21645
+ connector?: string | undefined;
21646
+ } | undefined;
21317
21647
  } | {
21318
21648
  type: "subagent";
21319
21649
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -21410,6 +21740,11 @@ declare const coreMethods: {
21410
21740
  type: "mcp";
21411
21741
  server: string;
21412
21742
  tool: string;
21743
+ app?: {
21744
+ resourceUri: string;
21745
+ displayMode?: "inline" | "fullscreen" | undefined;
21746
+ connector?: string | undefined;
21747
+ } | undefined;
21413
21748
  } | {
21414
21749
  type: "subagent";
21415
21750
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -23238,6 +23573,9 @@ declare const coreMethods: {
23238
23573
  branch: string;
23239
23574
  source: string;
23240
23575
  }>>;
23576
+ parentId: z.ZodOptional<z.ZodString>;
23577
+ forkedFrom: z.ZodOptional<z.ZodString>;
23578
+ appId: z.ZodOptional<z.ZodString>;
23241
23579
  subagents: z.ZodOptional<z.ZodObject<{
23242
23580
  total: z.ZodNumber;
23243
23581
  running: z.ZodNumber;
@@ -23423,6 +23761,9 @@ declare const coreMethods: {
23423
23761
  branch: string;
23424
23762
  source: string;
23425
23763
  } | undefined;
23764
+ parentId?: string | undefined;
23765
+ forkedFrom?: string | undefined;
23766
+ appId?: string | undefined;
23426
23767
  subagents?: {
23427
23768
  running: number;
23428
23769
  total: number;
@@ -23534,6 +23875,9 @@ declare const coreMethods: {
23534
23875
  branch: string;
23535
23876
  source: string;
23536
23877
  } | undefined;
23878
+ parentId?: string | undefined;
23879
+ forkedFrom?: string | undefined;
23880
+ appId?: string | undefined;
23537
23881
  subagents?: {
23538
23882
  running: number;
23539
23883
  total: number;
@@ -23709,6 +24053,9 @@ declare const coreMethods: {
23709
24053
  branch: string;
23710
24054
  source: string;
23711
24055
  } | undefined;
24056
+ parentId?: string | undefined;
24057
+ forkedFrom?: string | undefined;
24058
+ appId?: string | undefined;
23712
24059
  subagents?: {
23713
24060
  running: number;
23714
24061
  total: number;
@@ -23822,6 +24169,9 @@ declare const coreMethods: {
23822
24169
  branch: string;
23823
24170
  source: string;
23824
24171
  } | undefined;
24172
+ parentId?: string | undefined;
24173
+ forkedFrom?: string | undefined;
24174
+ appId?: string | undefined;
23825
24175
  subagents?: {
23826
24176
  running: number;
23827
24177
  total: number;
@@ -24547,6 +24897,9 @@ declare const coreMethods: {
24547
24897
  branch: string;
24548
24898
  source: string;
24549
24899
  }>>;
24900
+ parentId: z.ZodOptional<z.ZodString>;
24901
+ forkedFrom: z.ZodOptional<z.ZodString>;
24902
+ appId: z.ZodOptional<z.ZodString>;
24550
24903
  subagents: z.ZodOptional<z.ZodObject<{
24551
24904
  total: z.ZodNumber;
24552
24905
  running: z.ZodNumber;
@@ -24732,6 +25085,9 @@ declare const coreMethods: {
24732
25085
  branch: string;
24733
25086
  source: string;
24734
25087
  } | undefined;
25088
+ parentId?: string | undefined;
25089
+ forkedFrom?: string | undefined;
25090
+ appId?: string | undefined;
24735
25091
  subagents?: {
24736
25092
  running: number;
24737
25093
  total: number;
@@ -24843,6 +25199,9 @@ declare const coreMethods: {
24843
25199
  branch: string;
24844
25200
  source: string;
24845
25201
  } | undefined;
25202
+ parentId?: string | undefined;
25203
+ forkedFrom?: string | undefined;
25204
+ appId?: string | undefined;
24846
25205
  subagents?: {
24847
25206
  running: number;
24848
25207
  total: number;
@@ -25018,6 +25377,9 @@ declare const coreMethods: {
25018
25377
  branch: string;
25019
25378
  source: string;
25020
25379
  } | undefined;
25380
+ parentId?: string | undefined;
25381
+ forkedFrom?: string | undefined;
25382
+ appId?: string | undefined;
25021
25383
  subagents?: {
25022
25384
  running: number;
25023
25385
  total: number;
@@ -25131,6 +25493,9 @@ declare const coreMethods: {
25131
25493
  branch: string;
25132
25494
  source: string;
25133
25495
  } | undefined;
25496
+ parentId?: string | undefined;
25497
+ forkedFrom?: string | undefined;
25498
+ appId?: string | undefined;
25134
25499
  subagents?: {
25135
25500
  running: number;
25136
25501
  total: number;
@@ -25947,6 +26312,7 @@ declare const coreMethods: {
25947
26312
  command: z.ZodOptional<z.ZodString>;
25948
26313
  exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25949
26314
  interrupted: z.ZodOptional<z.ZodBoolean>;
26315
+ sessionId: z.ZodOptional<z.ZodString>;
25950
26316
  }, "strip", z.ZodTypeAny, {
25951
26317
  title: string;
25952
26318
  id: string;
@@ -25957,6 +26323,7 @@ declare const coreMethods: {
25957
26323
  activeAt: number;
25958
26324
  command?: string | undefined;
25959
26325
  exitCode?: number | null | undefined;
26326
+ sessionId?: string | undefined;
25960
26327
  interrupted?: boolean | undefined;
25961
26328
  }, {
25962
26329
  title: string;
@@ -25968,6 +26335,7 @@ declare const coreMethods: {
25968
26335
  activeAt: number;
25969
26336
  command?: string | undefined;
25970
26337
  exitCode?: number | null | undefined;
26338
+ sessionId?: string | undefined;
25971
26339
  interrupted?: boolean | undefined;
25972
26340
  }>, "many">;
25973
26341
  }, "strip", z.ZodTypeAny, {
@@ -25981,6 +26349,7 @@ declare const coreMethods: {
25981
26349
  activeAt: number;
25982
26350
  command?: string | undefined;
25983
26351
  exitCode?: number | null | undefined;
26352
+ sessionId?: string | undefined;
25984
26353
  interrupted?: boolean | undefined;
25985
26354
  }[];
25986
26355
  }, {
@@ -25994,6 +26363,7 @@ declare const coreMethods: {
25994
26363
  activeAt: number;
25995
26364
  command?: string | undefined;
25996
26365
  exitCode?: number | null | undefined;
26366
+ sessionId?: string | undefined;
25997
26367
  interrupted?: boolean | undefined;
25998
26368
  }[];
25999
26369
  }>;
@@ -26001,6 +26371,8 @@ declare const coreMethods: {
26001
26371
  readonly "terminals.create": {
26002
26372
  readonly params: z.ZodObject<{
26003
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>;
26004
26376
  /** Run this in the shell right away (the shell stays open after it). */
26005
26377
  command: z.ZodOptional<z.ZodString>;
26006
26378
  cols: z.ZodDefault<z.ZodNumber>;
@@ -26009,9 +26381,11 @@ declare const coreMethods: {
26009
26381
  cols: number;
26010
26382
  rows: number;
26011
26383
  command?: string | undefined;
26384
+ sessionId?: string | undefined;
26012
26385
  cwd?: string | undefined;
26013
26386
  }, {
26014
26387
  command?: string | undefined;
26388
+ sessionId?: string | undefined;
26015
26389
  cwd?: string | undefined;
26016
26390
  cols?: number | undefined;
26017
26391
  rows?: number | undefined;
@@ -26028,6 +26402,7 @@ declare const coreMethods: {
26028
26402
  command: z.ZodOptional<z.ZodString>;
26029
26403
  exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26030
26404
  interrupted: z.ZodOptional<z.ZodBoolean>;
26405
+ sessionId: z.ZodOptional<z.ZodString>;
26031
26406
  }, "strip", z.ZodTypeAny, {
26032
26407
  title: string;
26033
26408
  id: string;
@@ -26038,6 +26413,7 @@ declare const coreMethods: {
26038
26413
  activeAt: number;
26039
26414
  command?: string | undefined;
26040
26415
  exitCode?: number | null | undefined;
26416
+ sessionId?: string | undefined;
26041
26417
  interrupted?: boolean | undefined;
26042
26418
  }, {
26043
26419
  title: string;
@@ -26049,6 +26425,7 @@ declare const coreMethods: {
26049
26425
  activeAt: number;
26050
26426
  command?: string | undefined;
26051
26427
  exitCode?: number | null | undefined;
26428
+ sessionId?: string | undefined;
26052
26429
  interrupted?: boolean | undefined;
26053
26430
  }>;
26054
26431
  }, "strip", z.ZodTypeAny, {
@@ -26062,6 +26439,7 @@ declare const coreMethods: {
26062
26439
  activeAt: number;
26063
26440
  command?: string | undefined;
26064
26441
  exitCode?: number | null | undefined;
26442
+ sessionId?: string | undefined;
26065
26443
  interrupted?: boolean | undefined;
26066
26444
  };
26067
26445
  }, {
@@ -26075,6 +26453,7 @@ declare const coreMethods: {
26075
26453
  activeAt: number;
26076
26454
  command?: string | undefined;
26077
26455
  exitCode?: number | null | undefined;
26456
+ sessionId?: string | undefined;
26078
26457
  interrupted?: boolean | undefined;
26079
26458
  };
26080
26459
  }>;
@@ -26116,6 +26495,7 @@ declare const coreMethods: {
26116
26495
  command: z.ZodOptional<z.ZodString>;
26117
26496
  exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26118
26497
  interrupted: z.ZodOptional<z.ZodBoolean>;
26498
+ sessionId: z.ZodOptional<z.ZodString>;
26119
26499
  }, "strip", z.ZodTypeAny, {
26120
26500
  title: string;
26121
26501
  id: string;
@@ -26126,6 +26506,7 @@ declare const coreMethods: {
26126
26506
  activeAt: number;
26127
26507
  command?: string | undefined;
26128
26508
  exitCode?: number | null | undefined;
26509
+ sessionId?: string | undefined;
26129
26510
  interrupted?: boolean | undefined;
26130
26511
  }, {
26131
26512
  title: string;
@@ -26137,6 +26518,7 @@ declare const coreMethods: {
26137
26518
  activeAt: number;
26138
26519
  command?: string | undefined;
26139
26520
  exitCode?: number | null | undefined;
26521
+ sessionId?: string | undefined;
26140
26522
  interrupted?: boolean | undefined;
26141
26523
  }>;
26142
26524
  /** Output to write before any `terminal.output` that follows. */
@@ -26185,6 +26567,7 @@ declare const coreMethods: {
26185
26567
  activeAt: number;
26186
26568
  command?: string | undefined;
26187
26569
  exitCode?: number | null | undefined;
26570
+ sessionId?: string | undefined;
26188
26571
  interrupted?: boolean | undefined;
26189
26572
  };
26190
26573
  seq: number;
@@ -26212,6 +26595,7 @@ declare const coreMethods: {
26212
26595
  activeAt: number;
26213
26596
  command?: string | undefined;
26214
26597
  exitCode?: number | null | undefined;
26598
+ sessionId?: string | undefined;
26215
26599
  interrupted?: boolean | undefined;
26216
26600
  };
26217
26601
  seq: number;
@@ -26523,15 +26907,15 @@ declare const coreMethods: {
26523
26907
  recording: boolean | null;
26524
26908
  ffmpeg: boolean;
26525
26909
  control: boolean | null;
26526
- problem?: string | undefined;
26527
26910
  app?: string | undefined;
26911
+ problem?: string | undefined;
26528
26912
  }, {
26529
26913
  supported: boolean;
26530
26914
  recording: boolean | null;
26531
26915
  ffmpeg: boolean;
26532
26916
  control: boolean | null;
26533
- problem?: string | undefined;
26534
26917
  app?: string | undefined;
26918
+ problem?: string | undefined;
26535
26919
  }>;
26536
26920
  };
26537
26921
  /** Bytes to the host's end of a stream (base64). */
@@ -26559,7 +26943,7 @@ declare const coreMethods: {
26559
26943
  readonly result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
26560
26944
  };
26561
26945
  };
26562
- export declare const methods: typeof coreMethods & typeof acpMethods;
26946
+ export declare const methods: typeof coreMethods & typeof acpMethods & typeof mcpMethods;
26563
26947
  export type MethodName = keyof typeof methods;
26564
26948
  export type MethodParams<M extends MethodName> = z.input<(typeof methods)[M]["params"]>;
26565
26949
  export type MethodResult<M extends MethodName> = z.infer<(typeof methods)[M]["result"]>;
@@ -28387,14 +28771,37 @@ export declare const notifications: {
28387
28771
  type: z.ZodLiteral<"mcp">;
28388
28772
  server: z.ZodString;
28389
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
+ }>>;
28390
28787
  }, "strip", z.ZodTypeAny, {
28391
28788
  type: "mcp";
28392
28789
  server: string;
28393
28790
  tool: string;
28791
+ app?: {
28792
+ resourceUri: string;
28793
+ displayMode?: "inline" | "fullscreen" | undefined;
28794
+ connector?: string | undefined;
28795
+ } | undefined;
28394
28796
  }, {
28395
28797
  type: "mcp";
28396
28798
  server: string;
28397
28799
  tool: string;
28800
+ app?: {
28801
+ resourceUri: string;
28802
+ displayMode?: "inline" | "fullscreen" | undefined;
28803
+ connector?: string | undefined;
28804
+ } | undefined;
28398
28805
  }>, z.ZodObject<{
28399
28806
  type: z.ZodLiteral<"subagent">;
28400
28807
  action: z.ZodDefault<z.ZodEnum<["spawn", "message", "wait", "stop", "resume", "list"]>>;
@@ -28763,6 +29170,11 @@ export declare const notifications: {
28763
29170
  type: "mcp";
28764
29171
  server: string;
28765
29172
  tool: string;
29173
+ app?: {
29174
+ resourceUri: string;
29175
+ displayMode?: "inline" | "fullscreen" | undefined;
29176
+ connector?: string | undefined;
29177
+ } | undefined;
28766
29178
  } | {
28767
29179
  type: "subagent";
28768
29180
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -28859,6 +29271,11 @@ export declare const notifications: {
28859
29271
  type: "mcp";
28860
29272
  server: string;
28861
29273
  tool: string;
29274
+ app?: {
29275
+ resourceUri: string;
29276
+ displayMode?: "inline" | "fullscreen" | undefined;
29277
+ connector?: string | undefined;
29278
+ } | undefined;
28862
29279
  } | {
28863
29280
  type: "subagent";
28864
29281
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -28942,14 +29359,37 @@ export declare const notifications: {
28942
29359
  type: z.ZodLiteral<"mcp">;
28943
29360
  server: z.ZodString;
28944
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
+ }>>;
28945
29375
  }, "strip", z.ZodTypeAny, {
28946
29376
  type: "mcp";
28947
29377
  server: string;
28948
29378
  tool: string;
29379
+ app?: {
29380
+ resourceUri: string;
29381
+ displayMode?: "inline" | "fullscreen" | undefined;
29382
+ connector?: string | undefined;
29383
+ } | undefined;
28949
29384
  }, {
28950
29385
  type: "mcp";
28951
29386
  server: string;
28952
29387
  tool: string;
29388
+ app?: {
29389
+ resourceUri: string;
29390
+ displayMode?: "inline" | "fullscreen" | undefined;
29391
+ connector?: string | undefined;
29392
+ } | undefined;
28953
29393
  }>, z.ZodObject<{
28954
29394
  type: z.ZodLiteral<"subagent">;
28955
29395
  action: z.ZodDefault<z.ZodEnum<["spawn", "message", "wait", "stop", "resume", "list"]>>;
@@ -29498,6 +29938,11 @@ export declare const notifications: {
29498
29938
  type: "mcp";
29499
29939
  server: string;
29500
29940
  tool: string;
29941
+ app?: {
29942
+ resourceUri: string;
29943
+ displayMode?: "inline" | "fullscreen" | undefined;
29944
+ connector?: string | undefined;
29945
+ } | undefined;
29501
29946
  } | {
29502
29947
  type: "subagent";
29503
29948
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -29597,6 +30042,11 @@ export declare const notifications: {
29597
30042
  type: "mcp";
29598
30043
  server: string;
29599
30044
  tool: string;
30045
+ app?: {
30046
+ resourceUri: string;
30047
+ displayMode?: "inline" | "fullscreen" | undefined;
30048
+ connector?: string | undefined;
30049
+ } | undefined;
29600
30050
  } | {
29601
30051
  type: "subagent";
29602
30052
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -31249,6 +31699,11 @@ export declare const notifications: {
31249
31699
  type: "mcp";
31250
31700
  server: string;
31251
31701
  tool: string;
31702
+ app?: {
31703
+ resourceUri: string;
31704
+ displayMode?: "inline" | "fullscreen" | undefined;
31705
+ connector?: string | undefined;
31706
+ } | undefined;
31252
31707
  } | {
31253
31708
  type: "subagent";
31254
31709
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -31407,6 +31862,11 @@ export declare const notifications: {
31407
31862
  type: "mcp";
31408
31863
  server: string;
31409
31864
  tool: string;
31865
+ app?: {
31866
+ resourceUri: string;
31867
+ displayMode?: "inline" | "fullscreen" | undefined;
31868
+ connector?: string | undefined;
31869
+ } | undefined;
31410
31870
  } | {
31411
31871
  type: "subagent";
31412
31872
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
@@ -31808,6 +32268,11 @@ export declare const notifications: {
31808
32268
  type: "mcp";
31809
32269
  server: string;
31810
32270
  tool: string;
32271
+ app?: {
32272
+ resourceUri: string;
32273
+ displayMode?: "inline" | "fullscreen" | undefined;
32274
+ connector?: string | undefined;
32275
+ } | undefined;
31811
32276
  } | {
31812
32277
  type: "subagent";
31813
32278
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -31904,6 +32369,11 @@ export declare const notifications: {
31904
32369
  type: "mcp";
31905
32370
  server: string;
31906
32371
  tool: string;
32372
+ app?: {
32373
+ resourceUri: string;
32374
+ displayMode?: "inline" | "fullscreen" | undefined;
32375
+ connector?: string | undefined;
32376
+ } | undefined;
31907
32377
  } | {
31908
32378
  type: "subagent";
31909
32379
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
@@ -32901,6 +33371,9 @@ export declare const notifications: {
32901
33371
  branch: string;
32902
33372
  source: string;
32903
33373
  }>>;
33374
+ parentId: z.ZodOptional<z.ZodString>;
33375
+ forkedFrom: z.ZodOptional<z.ZodString>;
33376
+ appId: z.ZodOptional<z.ZodString>;
32904
33377
  subagents: z.ZodOptional<z.ZodObject<{
32905
33378
  total: z.ZodNumber;
32906
33379
  running: z.ZodNumber;
@@ -33086,6 +33559,9 @@ export declare const notifications: {
33086
33559
  branch: string;
33087
33560
  source: string;
33088
33561
  } | undefined;
33562
+ parentId?: string | undefined;
33563
+ forkedFrom?: string | undefined;
33564
+ appId?: string | undefined;
33089
33565
  subagents?: {
33090
33566
  running: number;
33091
33567
  total: number;
@@ -33197,6 +33673,9 @@ export declare const notifications: {
33197
33673
  branch: string;
33198
33674
  source: string;
33199
33675
  } | undefined;
33676
+ parentId?: string | undefined;
33677
+ forkedFrom?: string | undefined;
33678
+ appId?: string | undefined;
33200
33679
  subagents?: {
33201
33680
  running: number;
33202
33681
  total: number;
@@ -33372,6 +33851,9 @@ export declare const notifications: {
33372
33851
  branch: string;
33373
33852
  source: string;
33374
33853
  } | undefined;
33854
+ parentId?: string | undefined;
33855
+ forkedFrom?: string | undefined;
33856
+ appId?: string | undefined;
33375
33857
  subagents?: {
33376
33858
  running: number;
33377
33859
  total: number;
@@ -33485,6 +33967,9 @@ export declare const notifications: {
33485
33967
  branch: string;
33486
33968
  source: string;
33487
33969
  } | undefined;
33970
+ parentId?: string | undefined;
33971
+ forkedFrom?: string | undefined;
33972
+ appId?: string | undefined;
33488
33973
  subagents?: {
33489
33974
  running: number;
33490
33975
  total: number;
@@ -33765,6 +34250,7 @@ export declare const notifications: {
33765
34250
  command: z.ZodOptional<z.ZodString>;
33766
34251
  exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
33767
34252
  interrupted: z.ZodOptional<z.ZodBoolean>;
34253
+ sessionId: z.ZodOptional<z.ZodString>;
33768
34254
  }, "strip", z.ZodTypeAny, {
33769
34255
  title: string;
33770
34256
  id: string;
@@ -33775,6 +34261,7 @@ export declare const notifications: {
33775
34261
  activeAt: number;
33776
34262
  command?: string | undefined;
33777
34263
  exitCode?: number | null | undefined;
34264
+ sessionId?: string | undefined;
33778
34265
  interrupted?: boolean | undefined;
33779
34266
  }, {
33780
34267
  title: string;
@@ -33786,6 +34273,7 @@ export declare const notifications: {
33786
34273
  activeAt: number;
33787
34274
  command?: string | undefined;
33788
34275
  exitCode?: number | null | undefined;
34276
+ sessionId?: string | undefined;
33789
34277
  interrupted?: boolean | undefined;
33790
34278
  }>;
33791
34279
  closed: z.ZodOptional<z.ZodBoolean>;
@@ -33800,6 +34288,7 @@ export declare const notifications: {
33800
34288
  activeAt: number;
33801
34289
  command?: string | undefined;
33802
34290
  exitCode?: number | null | undefined;
34291
+ sessionId?: string | undefined;
33803
34292
  interrupted?: boolean | undefined;
33804
34293
  };
33805
34294
  closed?: boolean | undefined;
@@ -33814,6 +34303,7 @@ export declare const notifications: {
33814
34303
  activeAt: number;
33815
34304
  command?: string | undefined;
33816
34305
  exitCode?: number | null | undefined;
34306
+ sessionId?: string | undefined;
33817
34307
  interrupted?: boolean | undefined;
33818
34308
  };
33819
34309
  closed?: boolean | undefined;