@linkshell/gateway 0.6.6 → 0.6.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2636,6 +2636,7 @@ export declare const methods: {
2636
2636
  action: z.ZodDefault<z.ZodEnum<["spawn", "message", "wait", "stop", "resume", "list"]>>;
2637
2637
  task: z.ZodOptional<z.ZodString>;
2638
2638
  agentType: z.ZodOptional<z.ZodString>;
2639
+ name: z.ZodOptional<z.ZodString>;
2639
2640
  model: z.ZodOptional<z.ZodString>;
2640
2641
  state: z.ZodOptional<z.ZodEnum<["pending", "running", "paused", "completed", "failed", "stopped", "unknown"]>>;
2641
2642
  workflow: z.ZodOptional<z.ZodObject<{
@@ -2765,6 +2766,7 @@ export declare const methods: {
2765
2766
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
2766
2767
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
2767
2768
  model?: string | undefined;
2769
+ name?: string | undefined;
2768
2770
  task?: string | undefined;
2769
2771
  agentType?: string | undefined;
2770
2772
  workflow?: {
@@ -2801,6 +2803,7 @@ export declare const methods: {
2801
2803
  type: "subagent";
2802
2804
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
2803
2805
  model?: string | undefined;
2806
+ name?: string | undefined;
2804
2807
  task?: string | undefined;
2805
2808
  agentType?: string | undefined;
2806
2809
  workflow?: {
@@ -2907,6 +2910,7 @@ export declare const methods: {
2907
2910
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
2908
2911
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
2909
2912
  model?: string | undefined;
2913
+ name?: string | undefined;
2910
2914
  task?: string | undefined;
2911
2915
  agentType?: string | undefined;
2912
2916
  workflow?: {
@@ -3010,6 +3014,7 @@ export declare const methods: {
3010
3014
  type: "subagent";
3011
3015
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
3012
3016
  model?: string | undefined;
3017
+ name?: string | undefined;
3013
3018
  task?: string | undefined;
3014
3019
  agentType?: string | undefined;
3015
3020
  workflow?: {
@@ -3123,6 +3128,7 @@ export declare const methods: {
3123
3128
  action: z.ZodDefault<z.ZodEnum<["spawn", "message", "wait", "stop", "resume", "list"]>>;
3124
3129
  task: z.ZodOptional<z.ZodString>;
3125
3130
  agentType: z.ZodOptional<z.ZodString>;
3131
+ name: z.ZodOptional<z.ZodString>;
3126
3132
  model: z.ZodOptional<z.ZodString>;
3127
3133
  state: z.ZodOptional<z.ZodEnum<["pending", "running", "paused", "completed", "failed", "stopped", "unknown"]>>;
3128
3134
  workflow: z.ZodOptional<z.ZodObject<{
@@ -3252,6 +3258,7 @@ export declare const methods: {
3252
3258
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
3253
3259
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
3254
3260
  model?: string | undefined;
3261
+ name?: string | undefined;
3255
3262
  task?: string | undefined;
3256
3263
  agentType?: string | undefined;
3257
3264
  workflow?: {
@@ -3288,6 +3295,7 @@ export declare const methods: {
3288
3295
  type: "subagent";
3289
3296
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
3290
3297
  model?: string | undefined;
3298
+ name?: string | undefined;
3291
3299
  task?: string | undefined;
3292
3300
  agentType?: string | undefined;
3293
3301
  workflow?: {
@@ -3512,6 +3520,7 @@ export declare const methods: {
3512
3520
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
3513
3521
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
3514
3522
  model?: string | undefined;
3523
+ name?: string | undefined;
3515
3524
  task?: string | undefined;
3516
3525
  agentType?: string | undefined;
3517
3526
  workflow?: {
@@ -3611,6 +3620,7 @@ export declare const methods: {
3611
3620
  type: "subagent";
3612
3621
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
3613
3622
  model?: string | undefined;
3623
+ name?: string | undefined;
3614
3624
  task?: string | undefined;
3615
3625
  agentType?: string | undefined;
3616
3626
  workflow?: {
@@ -4313,6 +4323,7 @@ export declare const methods: {
4313
4323
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
4314
4324
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
4315
4325
  model?: string | undefined;
4326
+ name?: string | undefined;
4316
4327
  task?: string | undefined;
4317
4328
  agentType?: string | undefined;
4318
4329
  workflow?: {
@@ -4416,6 +4427,7 @@ export declare const methods: {
4416
4427
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
4417
4428
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
4418
4429
  model?: string | undefined;
4430
+ name?: string | undefined;
4419
4431
  task?: string | undefined;
4420
4432
  agentType?: string | undefined;
4421
4433
  workflow?: {
@@ -4707,6 +4719,7 @@ export declare const methods: {
4707
4719
  type: "subagent";
4708
4720
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
4709
4721
  model?: string | undefined;
4722
+ name?: string | undefined;
4710
4723
  task?: string | undefined;
4711
4724
  agentType?: string | undefined;
4712
4725
  workflow?: {
@@ -4810,6 +4823,7 @@ export declare const methods: {
4810
4823
  type: "subagent";
4811
4824
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
4812
4825
  model?: string | undefined;
4826
+ name?: string | undefined;
4813
4827
  task?: string | undefined;
4814
4828
  agentType?: string | undefined;
4815
4829
  workflow?: {
@@ -5107,6 +5121,7 @@ export declare const methods: {
5107
5121
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
5108
5122
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
5109
5123
  model?: string | undefined;
5124
+ name?: string | undefined;
5110
5125
  task?: string | undefined;
5111
5126
  agentType?: string | undefined;
5112
5127
  workflow?: {
@@ -5210,6 +5225,7 @@ export declare const methods: {
5210
5225
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
5211
5226
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
5212
5227
  model?: string | undefined;
5228
+ name?: string | undefined;
5213
5229
  task?: string | undefined;
5214
5230
  agentType?: string | undefined;
5215
5231
  workflow?: {
@@ -5504,6 +5520,7 @@ export declare const methods: {
5504
5520
  type: "subagent";
5505
5521
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
5506
5522
  model?: string | undefined;
5523
+ name?: string | undefined;
5507
5524
  task?: string | undefined;
5508
5525
  agentType?: string | undefined;
5509
5526
  workflow?: {
@@ -5607,6 +5624,7 @@ export declare const methods: {
5607
5624
  type: "subagent";
5608
5625
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
5609
5626
  model?: string | undefined;
5627
+ name?: string | undefined;
5610
5628
  task?: string | undefined;
5611
5629
  agentType?: string | undefined;
5612
5630
  workflow?: {
@@ -5849,6 +5867,7 @@ export declare const methods: {
5849
5867
  parentToolCallId: z.ZodOptional<z.ZodString>;
5850
5868
  task: z.ZodString;
5851
5869
  agentType: z.ZodOptional<z.ZodString>;
5870
+ name: z.ZodOptional<z.ZodString>;
5852
5871
  running: z.ZodBoolean;
5853
5872
  failed: z.ZodOptional<z.ZodBoolean>;
5854
5873
  startedAt: z.ZodNumber;
@@ -5985,6 +6004,7 @@ export declare const methods: {
5985
6004
  failed?: boolean | undefined;
5986
6005
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
5987
6006
  endedAt?: number | undefined;
6007
+ name?: string | undefined;
5988
6008
  parentToolCallId?: string | undefined;
5989
6009
  agentType?: string | undefined;
5990
6010
  workflow?: {
@@ -6026,6 +6046,7 @@ export declare const methods: {
6026
6046
  failed?: boolean | undefined;
6027
6047
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
6028
6048
  endedAt?: number | undefined;
6049
+ name?: string | undefined;
6029
6050
  parentToolCallId?: string | undefined;
6030
6051
  agentType?: string | undefined;
6031
6052
  workflow?: {
@@ -6069,6 +6090,7 @@ export declare const methods: {
6069
6090
  failed?: boolean | undefined;
6070
6091
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
6071
6092
  endedAt?: number | undefined;
6093
+ name?: string | undefined;
6072
6094
  parentToolCallId?: string | undefined;
6073
6095
  agentType?: string | undefined;
6074
6096
  workflow?: {
@@ -6112,6 +6134,7 @@ export declare const methods: {
6112
6134
  failed?: boolean | undefined;
6113
6135
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
6114
6136
  endedAt?: number | undefined;
6137
+ name?: string | undefined;
6115
6138
  parentToolCallId?: string | undefined;
6116
6139
  agentType?: string | undefined;
6117
6140
  workflow?: {
@@ -6561,6 +6584,7 @@ export declare const methods: {
6561
6584
  action: z.ZodDefault<z.ZodEnum<["spawn", "message", "wait", "stop", "resume", "list"]>>;
6562
6585
  task: z.ZodOptional<z.ZodString>;
6563
6586
  agentType: z.ZodOptional<z.ZodString>;
6587
+ name: z.ZodOptional<z.ZodString>;
6564
6588
  model: z.ZodOptional<z.ZodString>;
6565
6589
  state: z.ZodOptional<z.ZodEnum<["pending", "running", "paused", "completed", "failed", "stopped", "unknown"]>>;
6566
6590
  workflow: z.ZodOptional<z.ZodObject<{
@@ -6690,6 +6714,7 @@ export declare const methods: {
6690
6714
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
6691
6715
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
6692
6716
  model?: string | undefined;
6717
+ name?: string | undefined;
6693
6718
  task?: string | undefined;
6694
6719
  agentType?: string | undefined;
6695
6720
  workflow?: {
@@ -6726,6 +6751,7 @@ export declare const methods: {
6726
6751
  type: "subagent";
6727
6752
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
6728
6753
  model?: string | undefined;
6754
+ name?: string | undefined;
6729
6755
  task?: string | undefined;
6730
6756
  agentType?: string | undefined;
6731
6757
  workflow?: {
@@ -6832,6 +6858,7 @@ export declare const methods: {
6832
6858
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
6833
6859
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
6834
6860
  model?: string | undefined;
6861
+ name?: string | undefined;
6835
6862
  task?: string | undefined;
6836
6863
  agentType?: string | undefined;
6837
6864
  workflow?: {
@@ -6935,6 +6962,7 @@ export declare const methods: {
6935
6962
  type: "subagent";
6936
6963
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
6937
6964
  model?: string | undefined;
6965
+ name?: string | undefined;
6938
6966
  task?: string | undefined;
6939
6967
  agentType?: string | undefined;
6940
6968
  workflow?: {
@@ -7048,6 +7076,7 @@ export declare const methods: {
7048
7076
  action: z.ZodDefault<z.ZodEnum<["spawn", "message", "wait", "stop", "resume", "list"]>>;
7049
7077
  task: z.ZodOptional<z.ZodString>;
7050
7078
  agentType: z.ZodOptional<z.ZodString>;
7079
+ name: z.ZodOptional<z.ZodString>;
7051
7080
  model: z.ZodOptional<z.ZodString>;
7052
7081
  state: z.ZodOptional<z.ZodEnum<["pending", "running", "paused", "completed", "failed", "stopped", "unknown"]>>;
7053
7082
  workflow: z.ZodOptional<z.ZodObject<{
@@ -7177,6 +7206,7 @@ export declare const methods: {
7177
7206
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
7178
7207
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
7179
7208
  model?: string | undefined;
7209
+ name?: string | undefined;
7180
7210
  task?: string | undefined;
7181
7211
  agentType?: string | undefined;
7182
7212
  workflow?: {
@@ -7213,6 +7243,7 @@ export declare const methods: {
7213
7243
  type: "subagent";
7214
7244
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
7215
7245
  model?: string | undefined;
7246
+ name?: string | undefined;
7216
7247
  task?: string | undefined;
7217
7248
  agentType?: string | undefined;
7218
7249
  workflow?: {
@@ -7437,6 +7468,7 @@ export declare const methods: {
7437
7468
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
7438
7469
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
7439
7470
  model?: string | undefined;
7471
+ name?: string | undefined;
7440
7472
  task?: string | undefined;
7441
7473
  agentType?: string | undefined;
7442
7474
  workflow?: {
@@ -7536,6 +7568,7 @@ export declare const methods: {
7536
7568
  type: "subagent";
7537
7569
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
7538
7570
  model?: string | undefined;
7571
+ name?: string | undefined;
7539
7572
  task?: string | undefined;
7540
7573
  agentType?: string | undefined;
7541
7574
  workflow?: {
@@ -8238,6 +8271,7 @@ export declare const methods: {
8238
8271
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
8239
8272
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
8240
8273
  model?: string | undefined;
8274
+ name?: string | undefined;
8241
8275
  task?: string | undefined;
8242
8276
  agentType?: string | undefined;
8243
8277
  workflow?: {
@@ -8341,6 +8375,7 @@ export declare const methods: {
8341
8375
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
8342
8376
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
8343
8377
  model?: string | undefined;
8378
+ name?: string | undefined;
8344
8379
  task?: string | undefined;
8345
8380
  agentType?: string | undefined;
8346
8381
  workflow?: {
@@ -8632,6 +8667,7 @@ export declare const methods: {
8632
8667
  type: "subagent";
8633
8668
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
8634
8669
  model?: string | undefined;
8670
+ name?: string | undefined;
8635
8671
  task?: string | undefined;
8636
8672
  agentType?: string | undefined;
8637
8673
  workflow?: {
@@ -8735,6 +8771,7 @@ export declare const methods: {
8735
8771
  type: "subagent";
8736
8772
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
8737
8773
  model?: string | undefined;
8774
+ name?: string | undefined;
8738
8775
  task?: string | undefined;
8739
8776
  agentType?: string | undefined;
8740
8777
  workflow?: {
@@ -9030,6 +9067,7 @@ export declare const methods: {
9030
9067
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
9031
9068
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
9032
9069
  model?: string | undefined;
9070
+ name?: string | undefined;
9033
9071
  task?: string | undefined;
9034
9072
  agentType?: string | undefined;
9035
9073
  workflow?: {
@@ -9133,6 +9171,7 @@ export declare const methods: {
9133
9171
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
9134
9172
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
9135
9173
  model?: string | undefined;
9174
+ name?: string | undefined;
9136
9175
  task?: string | undefined;
9137
9176
  agentType?: string | undefined;
9138
9177
  workflow?: {
@@ -9426,6 +9465,7 @@ export declare const methods: {
9426
9465
  type: "subagent";
9427
9466
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
9428
9467
  model?: string | undefined;
9468
+ name?: string | undefined;
9429
9469
  task?: string | undefined;
9430
9470
  agentType?: string | undefined;
9431
9471
  workflow?: {
@@ -9529,6 +9569,7 @@ export declare const methods: {
9529
9569
  type: "subagent";
9530
9570
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
9531
9571
  model?: string | undefined;
9572
+ name?: string | undefined;
9532
9573
  task?: string | undefined;
9533
9574
  agentType?: string | undefined;
9534
9575
  workflow?: {
@@ -12074,16 +12115,19 @@ export declare const methods: {
12074
12115
  fromSeq: z.ZodOptional<z.ZodNumber>;
12075
12116
  replayFormat: z.ZodOptional<z.ZodLiteral<"frames-v1">>;
12076
12117
  fromFrame: z.ZodOptional<z.ZodNumber>;
12118
+ snapshot: z.ZodOptional<z.ZodBoolean>;
12077
12119
  }, "strip", z.ZodTypeAny, {
12078
12120
  terminalId: string;
12079
12121
  fromSeq?: number | undefined;
12080
12122
  replayFormat?: "frames-v1" | undefined;
12081
12123
  fromFrame?: number | undefined;
12124
+ snapshot?: boolean | undefined;
12082
12125
  }, {
12083
12126
  terminalId: string;
12084
12127
  fromSeq?: number | undefined;
12085
12128
  replayFormat?: "frames-v1" | undefined;
12086
12129
  fromFrame?: number | undefined;
12130
+ snapshot?: boolean | undefined;
12087
12131
  }>;
12088
12132
  readonly result: z.ZodObject<{
12089
12133
  terminal: z.ZodObject<{
@@ -12136,6 +12180,25 @@ export declare const methods: {
12136
12180
  afterFrame: number;
12137
12181
  throughFrame: number;
12138
12182
  }>>;
12183
+ state: z.ZodOptional<z.ZodObject<{
12184
+ snapshotId: z.ZodString;
12185
+ length: z.ZodNumber;
12186
+ frame: z.ZodNumber;
12187
+ cols: z.ZodNumber;
12188
+ rows: z.ZodNumber;
12189
+ }, "strip", z.ZodTypeAny, {
12190
+ length: number;
12191
+ cols: number;
12192
+ rows: number;
12193
+ snapshotId: string;
12194
+ frame: number;
12195
+ }, {
12196
+ length: number;
12197
+ cols: number;
12198
+ rows: number;
12199
+ snapshotId: string;
12200
+ frame: number;
12201
+ }>>;
12139
12202
  }, "strip", z.ZodTypeAny, {
12140
12203
  terminal: {
12141
12204
  id: string;
@@ -12152,6 +12215,13 @@ export declare const methods: {
12152
12215
  seq: number;
12153
12216
  replay: string;
12154
12217
  reset: boolean;
12218
+ state?: {
12219
+ length: number;
12220
+ cols: number;
12221
+ rows: number;
12222
+ snapshotId: string;
12223
+ frame: number;
12224
+ } | undefined;
12155
12225
  recording?: {
12156
12226
  afterFrame: number;
12157
12227
  throughFrame: number;
@@ -12172,12 +12242,47 @@ export declare const methods: {
12172
12242
  seq: number;
12173
12243
  replay: string;
12174
12244
  reset: boolean;
12245
+ state?: {
12246
+ length: number;
12247
+ cols: number;
12248
+ rows: number;
12249
+ snapshotId: string;
12250
+ frame: number;
12251
+ } | undefined;
12175
12252
  recording?: {
12176
12253
  afterFrame: number;
12177
12254
  throughFrame: number;
12178
12255
  } | undefined;
12179
12256
  }>;
12180
12257
  };
12258
+ readonly "terminals.state": {
12259
+ readonly params: z.ZodObject<{
12260
+ terminalId: z.ZodString;
12261
+ snapshotId: z.ZodString;
12262
+ offset: z.ZodNumber;
12263
+ }, "strip", z.ZodTypeAny, {
12264
+ terminalId: string;
12265
+ offset: number;
12266
+ snapshotId: string;
12267
+ }, {
12268
+ terminalId: string;
12269
+ offset: number;
12270
+ snapshotId: string;
12271
+ }>;
12272
+ readonly result: z.ZodObject<{
12273
+ data: z.ZodString;
12274
+ nextOffset: z.ZodNumber;
12275
+ done: z.ZodBoolean;
12276
+ }, "strip", z.ZodTypeAny, {
12277
+ data: string;
12278
+ nextOffset: number;
12279
+ done: boolean;
12280
+ }, {
12281
+ data: string;
12282
+ nextOffset: number;
12283
+ done: boolean;
12284
+ }>;
12285
+ };
12181
12286
  readonly "terminals.replay": {
12182
12287
  readonly params: z.ZodObject<{
12183
12288
  terminalId: z.ZodString;
@@ -12212,6 +12317,7 @@ export declare const methods: {
12212
12317
  nextFrame: z.ZodNumber;
12213
12318
  done: z.ZodBoolean;
12214
12319
  }, "strip", z.ZodTypeAny, {
12320
+ done: boolean;
12215
12321
  frames: {
12216
12322
  cols: number;
12217
12323
  rows: number;
@@ -12219,8 +12325,8 @@ export declare const methods: {
12219
12325
  frame: number;
12220
12326
  }[];
12221
12327
  nextFrame: number;
12222
- done: boolean;
12223
12328
  }, {
12329
+ done: boolean;
12224
12330
  frames: {
12225
12331
  cols: number;
12226
12332
  rows: number;
@@ -12228,7 +12334,6 @@ export declare const methods: {
12228
12334
  frame: number;
12229
12335
  }[];
12230
12336
  nextFrame: number;
12231
- done: boolean;
12232
12337
  }>;
12233
12338
  };
12234
12339
  readonly "terminals.detach": {
@@ -12877,6 +12982,7 @@ export declare const notifications: {
12877
12982
  action: z.ZodDefault<z.ZodEnum<["spawn", "message", "wait", "stop", "resume", "list"]>>;
12878
12983
  task: z.ZodOptional<z.ZodString>;
12879
12984
  agentType: z.ZodOptional<z.ZodString>;
12985
+ name: z.ZodOptional<z.ZodString>;
12880
12986
  model: z.ZodOptional<z.ZodString>;
12881
12987
  state: z.ZodOptional<z.ZodEnum<["pending", "running", "paused", "completed", "failed", "stopped", "unknown"]>>;
12882
12988
  workflow: z.ZodOptional<z.ZodObject<{
@@ -13006,6 +13112,7 @@ export declare const notifications: {
13006
13112
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
13007
13113
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
13008
13114
  model?: string | undefined;
13115
+ name?: string | undefined;
13009
13116
  task?: string | undefined;
13010
13117
  agentType?: string | undefined;
13011
13118
  workflow?: {
@@ -13042,6 +13149,7 @@ export declare const notifications: {
13042
13149
  type: "subagent";
13043
13150
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
13044
13151
  model?: string | undefined;
13152
+ name?: string | undefined;
13045
13153
  task?: string | undefined;
13046
13154
  agentType?: string | undefined;
13047
13155
  workflow?: {
@@ -13148,6 +13256,7 @@ export declare const notifications: {
13148
13256
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
13149
13257
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
13150
13258
  model?: string | undefined;
13259
+ name?: string | undefined;
13151
13260
  task?: string | undefined;
13152
13261
  agentType?: string | undefined;
13153
13262
  workflow?: {
@@ -13251,6 +13360,7 @@ export declare const notifications: {
13251
13360
  type: "subagent";
13252
13361
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
13253
13362
  model?: string | undefined;
13363
+ name?: string | undefined;
13254
13364
  task?: string | undefined;
13255
13365
  agentType?: string | undefined;
13256
13366
  workflow?: {
@@ -13364,6 +13474,7 @@ export declare const notifications: {
13364
13474
  action: z.ZodDefault<z.ZodEnum<["spawn", "message", "wait", "stop", "resume", "list"]>>;
13365
13475
  task: z.ZodOptional<z.ZodString>;
13366
13476
  agentType: z.ZodOptional<z.ZodString>;
13477
+ name: z.ZodOptional<z.ZodString>;
13367
13478
  model: z.ZodOptional<z.ZodString>;
13368
13479
  state: z.ZodOptional<z.ZodEnum<["pending", "running", "paused", "completed", "failed", "stopped", "unknown"]>>;
13369
13480
  workflow: z.ZodOptional<z.ZodObject<{
@@ -13493,6 +13604,7 @@ export declare const notifications: {
13493
13604
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
13494
13605
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
13495
13606
  model?: string | undefined;
13607
+ name?: string | undefined;
13496
13608
  task?: string | undefined;
13497
13609
  agentType?: string | undefined;
13498
13610
  workflow?: {
@@ -13529,6 +13641,7 @@ export declare const notifications: {
13529
13641
  type: "subagent";
13530
13642
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
13531
13643
  model?: string | undefined;
13644
+ name?: string | undefined;
13532
13645
  task?: string | undefined;
13533
13646
  agentType?: string | undefined;
13534
13647
  workflow?: {
@@ -13753,6 +13866,7 @@ export declare const notifications: {
13753
13866
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
13754
13867
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
13755
13868
  model?: string | undefined;
13869
+ name?: string | undefined;
13756
13870
  task?: string | undefined;
13757
13871
  agentType?: string | undefined;
13758
13872
  workflow?: {
@@ -13852,6 +13966,7 @@ export declare const notifications: {
13852
13966
  type: "subagent";
13853
13967
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
13854
13968
  model?: string | undefined;
13969
+ name?: string | undefined;
13855
13970
  task?: string | undefined;
13856
13971
  agentType?: string | undefined;
13857
13972
  workflow?: {
@@ -14554,6 +14669,7 @@ export declare const notifications: {
14554
14669
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
14555
14670
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
14556
14671
  model?: string | undefined;
14672
+ name?: string | undefined;
14557
14673
  task?: string | undefined;
14558
14674
  agentType?: string | undefined;
14559
14675
  workflow?: {
@@ -14657,6 +14773,7 @@ export declare const notifications: {
14657
14773
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
14658
14774
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
14659
14775
  model?: string | undefined;
14776
+ name?: string | undefined;
14660
14777
  task?: string | undefined;
14661
14778
  agentType?: string | undefined;
14662
14779
  workflow?: {
@@ -14948,6 +15065,7 @@ export declare const notifications: {
14948
15065
  type: "subagent";
14949
15066
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
14950
15067
  model?: string | undefined;
15068
+ name?: string | undefined;
14951
15069
  task?: string | undefined;
14952
15070
  agentType?: string | undefined;
14953
15071
  workflow?: {
@@ -15051,6 +15169,7 @@ export declare const notifications: {
15051
15169
  type: "subagent";
15052
15170
  state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
15053
15171
  model?: string | undefined;
15172
+ name?: string | undefined;
15054
15173
  task?: string | undefined;
15055
15174
  agentType?: string | undefined;
15056
15175
  workflow?: {
@@ -427,7 +427,8 @@ export const methods = {
427
427
  */
428
428
  "terminals.attach": {
429
429
  params: z.object({ terminalId: z.string().min(1), fromSeq: z.number().int().min(0).optional(),
430
- replayFormat: z.literal("frames-v1").optional(), fromFrame: z.number().int().min(0).optional() }),
430
+ replayFormat: z.literal("frames-v1").optional(), fromFrame: z.number().int().min(0).optional(),
431
+ snapshot: z.boolean().optional() }),
431
432
  result: z.object({
432
433
  terminal: terminalInfoSchema,
433
434
  /** Output to write before any `terminal.output` that follows. */
@@ -437,8 +438,13 @@ export const methods = {
437
438
  /** The last output seq `replay` covers; later chunks arrive as `terminal.output`. */
438
439
  seq: z.number().int(),
439
440
  recording: z.object({ afterFrame: z.number().int(), throughFrame: z.number().int() }).optional(),
441
+ state: z.object({ snapshotId: z.string(), length: z.number().int().min(0), frame: z.number().int().min(0), cols: z.number().int().min(1), rows: z.number().int().min(1) }).optional(),
440
442
  }),
441
443
  },
444
+ "terminals.state": {
445
+ params: z.object({ terminalId: z.string().min(1), snapshotId: z.string().min(1), offset: z.number().int().min(0) }),
446
+ result: z.object({ data: z.string(), nextOffset: z.number().int().min(0), done: z.boolean() }),
447
+ },
442
448
  "terminals.replay": {
443
449
  params: z.object({ terminalId: z.string().min(1), afterFrame: z.number().int().min(0), throughFrame: z.number().int().min(0) }),
444
450
  result: z.object({