@opencode/server 0.0.0-dev-21581 → 0.0.0-dev-21590

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 (109) hide show
  1. package/dist/api.d.ts +621 -621
  2. package/dist/api.js +5 -5
  3. package/dist/auth.js +1 -1
  4. package/dist/chunks/{server-info-4vaqgjp8.js → process-19dc7z8q.js} +2 -2
  5. package/dist/chunks/{server-info-1ahadpvw.js → process-1ahadpvw.js} +1 -1
  6. package/dist/chunks/{server-info-39nnfjx1.js → process-39nnfjx1.js} +1 -1
  7. package/dist/chunks/{server-info-97m5cgec.js → process-3gg5y4jd.js} +15 -38
  8. package/dist/chunks/{server-info-j1mmbxrj.js → process-4gfeqp77.js} +6 -6
  9. package/dist/chunks/{server-info-aajxxgqb.js → process-67kmywtk.js} +2 -2
  10. package/dist/chunks/{server-info-qbrxhger.js → process-6br0y3ag.js} +1 -1
  11. package/dist/chunks/{server-info-5bchp9s2.js → process-6kta5392.js} +2 -2
  12. package/dist/chunks/{server-info-7q8ata5b.js → process-6n9b1fbm.js} +3 -3
  13. package/dist/chunks/{server-info-g1bp01xw.js → process-6t8za67t.js} +2 -2
  14. package/dist/chunks/{server-info-6v4wsps6.js → process-6v4wsps6.js} +1 -1
  15. package/dist/chunks/{server-info-vg73xc24.js → process-74sf36cc.js} +1 -1
  16. package/dist/chunks/{server-info-rrf9gkkq.js → process-77mqkxfz.js} +2 -2
  17. package/dist/chunks/{server-info-z3e7v67k.js → process-7dtbad8d.js} +7 -7
  18. package/dist/chunks/{server-info-10jzh2zk.js → process-9k4wjdze.js} +3 -3
  19. package/dist/chunks/{server-info-cx6n6w5j.js → process-a39fepye.js} +3 -3
  20. package/dist/chunks/{server-info-scq1j2yg.js → process-aqzwjzmb.js} +1 -1
  21. package/dist/chunks/{server-info-g0g9ma1m.js → process-atk2et4d.js} +2 -2
  22. package/dist/chunks/{server-info-y7p3rgqn.js → process-cqhyyp3f.js} +2 -2
  23. package/dist/chunks/{server-info-k6dz4enc.js → process-dnwg64ce.js} +7 -7
  24. package/dist/chunks/{server-info-9h3s5d39.js → process-e54xd2ay.js} +3 -3
  25. package/dist/chunks/{server-info-xt7xrv1r.js → process-ej45n981.js} +2 -2
  26. package/dist/chunks/{server-info-yqrgyb4v.js → process-ejkda2vj.js} +34 -34
  27. package/dist/chunks/{server-info-026wrard.js → process-gb66h69v.js} +3 -3
  28. package/dist/chunks/{server-info-gqq6kfhc.js → process-gqq6kfhc.js} +1 -1
  29. package/dist/chunks/{server-info-zfjz2b4g.js → process-gv627jgt.js} +1 -1
  30. package/dist/chunks/{server-info-k8mh0c14.js → process-gx2yvssc.js} +3 -3
  31. package/dist/chunks/{server-info-j66ekhc9.js → process-hspp8v12.js} +2 -2
  32. package/dist/chunks/{server-info-n3hqkreg.js → process-j25hpmpx.js} +3 -3
  33. package/dist/chunks/{server-info-56rkpa1p.js → process-j49n4591.js} +6 -9
  34. package/dist/chunks/{server-info-j4at0y5c.js → process-j4at0y5c.js} +1 -1
  35. package/dist/chunks/{server-info-t7dxwnb0.js → process-j8p25vmv.js} +2 -2
  36. package/dist/chunks/{server-info-ksvmmk2r.js → process-m0y4004e.js} +1 -1
  37. package/dist/chunks/{server-info-j3626vk8.js → process-nvdz1s2r.js} +2 -2
  38. package/dist/chunks/{server-info-qxbay4x7.js → process-pcv0zm6m.js} +13 -17
  39. package/dist/chunks/{server-info-nmcxqxxx.js → process-q8cqvm6j.js} +2 -2
  40. package/dist/chunks/{server-info-vg7gkftg.js → process-s1vhsdh5.js} +2 -2
  41. package/dist/chunks/{server-info-axn7c0ev.js → process-s38aj5j6.js} +4 -4
  42. package/dist/chunks/{server-info-e2cx9grb.js → process-v1jdrp9c.js} +1 -1
  43. package/dist/chunks/{server-info-hxgz4x38.js → process-vtvdbwhg.js} +2 -2
  44. package/dist/chunks/{server-info-w9jcwh65.js → process-w9jcwh65.js} +1 -1
  45. package/dist/chunks/{server-info-2s3n8phw.js → process-wtxh433d.js} +2 -2
  46. package/dist/chunks/{server-info-vkgak0vv.js → process-xxxx0904.js} +2 -2
  47. package/dist/chunks/{server-info-yet0vexm.js → process-yet0vexm.js} +1 -1
  48. package/dist/cors.js +1 -1
  49. package/dist/event-feed.js +5 -5
  50. package/dist/fetch.js +47 -48
  51. package/dist/handlers/agent.js +6 -6
  52. package/dist/handlers/command.js +6 -6
  53. package/dist/handlers/config.js +6 -6
  54. package/dist/handlers/credential.js +6 -6
  55. package/dist/handlers/debug.js +6 -6
  56. package/dist/handlers/event.js +7 -7
  57. package/dist/handlers/form.js +6 -6
  58. package/dist/handlers/fs.js +6 -6
  59. package/dist/handlers/generate.js +6 -6
  60. package/dist/handlers/integration.js +6 -6
  61. package/dist/handlers/location.js +6 -6
  62. package/dist/handlers/mcp.js +6 -6
  63. package/dist/handlers/message.js +6 -6
  64. package/dist/handlers/migration.js +6 -6
  65. package/dist/handlers/model.js +6 -6
  66. package/dist/handlers/permission.js +6 -6
  67. package/dist/handlers/persistent-pty.js +8 -8
  68. package/dist/handlers/plugin.js +6 -6
  69. package/dist/handlers/project.js +6 -6
  70. package/dist/handlers/provider.js +6 -6
  71. package/dist/handlers/pty-socket.js +1 -1
  72. package/dist/handlers/pty.d.ts +1 -2
  73. package/dist/handlers/pty.js +8 -9
  74. package/dist/handlers/reference.js +6 -6
  75. package/dist/handlers/rpc.js +6 -6
  76. package/dist/handlers/server.js +9 -9
  77. package/dist/handlers/session-error.js +1 -1
  78. package/dist/handlers/session.js +6 -6
  79. package/dist/handlers/shell.js +6 -6
  80. package/dist/handlers/skill.js +6 -6
  81. package/dist/handlers/vcs.js +6 -6
  82. package/dist/handlers/voice.js +6 -6
  83. package/dist/handlers/websearch.js +6 -6
  84. package/dist/handlers/worktree.js +6 -6
  85. package/dist/handlers.d.ts +1 -1
  86. package/dist/handlers.js +43 -44
  87. package/dist/location.js +2 -2
  88. package/dist/middleware/authorization.js +2 -2
  89. package/dist/middleware/form-location.js +3 -3
  90. package/dist/middleware/schema-error.js +1 -1
  91. package/dist/middleware/session-location.js +3 -3
  92. package/dist/pairing.js +1 -1
  93. package/dist/process.js +49 -50
  94. package/dist/request-tracing.js +1 -1
  95. package/dist/routes.d.ts +2 -3
  96. package/dist/routes.js +46 -47
  97. package/dist/server-info.js +5 -5
  98. package/dist/service-status.js +1 -1
  99. package/dist/workerd.js +48 -49
  100. package/package.json +8 -8
  101. package/dist/chunks/server-info-pwazjqed.js +0 -23
  102. package/dist/pty-environment.d.ts +0 -13
  103. package/dist/pty-environment.js +0 -12
  104. /package/dist/chunks/{server-info-9rqn6x4v.js → process-9rqn6x4v.js} +0 -0
  105. /package/dist/chunks/{server-info-erzfdgke.js → process-erzfdgke.js} +0 -0
  106. /package/dist/chunks/{server-info-h6rt5k9s.js → process-h6rt5k9s.js} +0 -0
  107. /package/dist/chunks/{server-info-q4bn6dy8.js → process-q4bn6dy8.js} +0 -0
  108. /package/dist/chunks/{server-info-smaf4a18.js → process-smaf4a18.js} +0 -0
  109. /package/dist/chunks/{server-info-yc7nft6q.js → process-yc7nft6q.js} +0 -0
package/dist/api.d.ts CHANGED
@@ -6372,7 +6372,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6372
6372
  readonly metadata?: {
6373
6373
  readonly [x: string]: unknown;
6374
6374
  } | undefined;
6375
- readonly type: "skill.updated";
6375
+ readonly type: "integration.updated";
6376
6376
  readonly location?: {
6377
6377
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6378
6378
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -6384,14 +6384,43 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6384
6384
  readonly metadata?: {
6385
6385
  readonly [x: string]: unknown;
6386
6386
  } | undefined;
6387
- readonly type: "credential.switched";
6387
+ readonly type: "model.updated";
6388
+ readonly location?: {
6389
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6390
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6391
+ } | undefined;
6392
+ readonly data: {};
6393
+ } | {
6394
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6395
+ readonly created: number;
6396
+ readonly metadata?: {
6397
+ readonly [x: string]: unknown;
6398
+ } | undefined;
6399
+ readonly type: "project.updated";
6388
6400
  readonly location?: {
6389
6401
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6390
6402
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6391
6403
  } | undefined;
6392
6404
  readonly data: {
6393
- readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
6394
- readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
6405
+ readonly id: string & import("effect/Brand").Brand<"Project.ID">;
6406
+ readonly canonical: string & import("effect/Brand").Brand<"AbsolutePath">;
6407
+ readonly vcs?: string | undefined;
6408
+ readonly name?: string | undefined;
6409
+ readonly icon?: {
6410
+ readonly url?: string | undefined;
6411
+ readonly override?: string | undefined;
6412
+ readonly color?: string | undefined;
6413
+ } | undefined;
6414
+ readonly commands?: {
6415
+ readonly start?: string | undefined;
6416
+ } | undefined;
6417
+ readonly time: {
6418
+ readonly created: number;
6419
+ readonly updated: number;
6420
+ readonly active: number;
6421
+ readonly archived?: number | undefined;
6422
+ };
6423
+ readonly sandboxes: readonly string[];
6395
6424
  };
6396
6425
  } | {
6397
6426
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6399,7 +6428,68 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6399
6428
  readonly metadata?: {
6400
6429
  readonly [x: string]: unknown;
6401
6430
  } | undefined;
6402
- readonly type: "credential.updated";
6431
+ readonly type: "shell.created";
6432
+ readonly location?: {
6433
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6434
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6435
+ } | undefined;
6436
+ readonly data: {
6437
+ readonly info: {
6438
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
6439
+ readonly status: "exited" | "killed" | "running" | "timeout";
6440
+ readonly command: string;
6441
+ readonly cwd: string;
6442
+ readonly shell: string;
6443
+ readonly file: string;
6444
+ readonly pid?: number | undefined;
6445
+ readonly exit?: number | undefined;
6446
+ readonly signal?: string | undefined;
6447
+ readonly metadata: {
6448
+ readonly [x: string]: unknown;
6449
+ };
6450
+ readonly time: {
6451
+ readonly started: number;
6452
+ readonly completed?: number | undefined;
6453
+ };
6454
+ };
6455
+ };
6456
+ } | {
6457
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6458
+ readonly created: number;
6459
+ readonly metadata?: {
6460
+ readonly [x: string]: unknown;
6461
+ } | undefined;
6462
+ readonly type: "shell.deleted";
6463
+ readonly location?: {
6464
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6465
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6466
+ } | undefined;
6467
+ readonly data: {
6468
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
6469
+ };
6470
+ } | {
6471
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6472
+ readonly created: number;
6473
+ readonly metadata?: {
6474
+ readonly [x: string]: unknown;
6475
+ } | undefined;
6476
+ readonly type: "shell.exited";
6477
+ readonly location?: {
6478
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6479
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6480
+ } | undefined;
6481
+ readonly data: {
6482
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
6483
+ readonly exit?: number | undefined;
6484
+ readonly status: "exited" | "killed" | "running" | "timeout";
6485
+ };
6486
+ } | {
6487
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6488
+ readonly created: number;
6489
+ readonly metadata?: {
6490
+ readonly [x: string]: unknown;
6491
+ } | undefined;
6492
+ readonly type: "location.shutdown";
6403
6493
  readonly location?: {
6404
6494
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6405
6495
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -6411,42 +6501,94 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6411
6501
  readonly metadata?: {
6412
6502
  readonly [x: string]: unknown;
6413
6503
  } | undefined;
6414
- readonly type: "session.created";
6415
- readonly durable: {
6416
- readonly aggregateID: string;
6417
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6418
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6504
+ readonly type: "persistent-pty.added";
6505
+ readonly location?: {
6506
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6507
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6508
+ } | undefined;
6509
+ readonly data: {
6510
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6511
+ readonly terminal: {
6512
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
6513
+ readonly title: string;
6514
+ readonly command: string;
6515
+ readonly args: readonly string[];
6516
+ readonly cwd: string;
6517
+ readonly status: "exited" | "running";
6518
+ readonly pid: number;
6519
+ readonly exitCode?: number | undefined;
6520
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6521
+ readonly foregroundProcess: string | null;
6522
+ readonly size: {
6523
+ readonly cols: number;
6524
+ readonly rows: number;
6525
+ };
6526
+ readonly output: {
6527
+ readonly head: number;
6528
+ readonly tail: number;
6529
+ };
6530
+ };
6419
6531
  };
6532
+ } | {
6533
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6534
+ readonly created: number;
6535
+ readonly metadata?: {
6536
+ readonly [x: string]: unknown;
6537
+ } | undefined;
6538
+ readonly type: "persistent-pty.removed";
6420
6539
  readonly location?: {
6421
6540
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6422
6541
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6423
6542
  } | undefined;
6424
6543
  readonly data: {
6425
6544
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6426
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
6427
- readonly location: {
6428
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6429
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6545
+ readonly ptyID: string & import("effect/Brand").Brand<"PtyID">;
6546
+ };
6547
+ } | {
6548
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6549
+ readonly created: number;
6550
+ readonly metadata?: {
6551
+ readonly [x: string]: unknown;
6552
+ } | undefined;
6553
+ readonly type: "session.idle";
6554
+ readonly location?: {
6555
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6556
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6557
+ } | undefined;
6558
+ readonly data: {
6559
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6560
+ };
6561
+ } | {
6562
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6563
+ readonly created: number;
6564
+ readonly metadata?: {
6565
+ readonly [x: string]: unknown;
6566
+ } | undefined;
6567
+ readonly type: "session.status";
6568
+ readonly location?: {
6569
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6570
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6571
+ } | undefined;
6572
+ readonly data: {
6573
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6574
+ readonly status: {
6575
+ readonly type: "idle";
6576
+ } | {
6577
+ readonly type: "retry";
6578
+ readonly attempt: number;
6579
+ readonly message: string;
6580
+ readonly action?: {
6581
+ readonly reason: string;
6582
+ readonly provider: string;
6583
+ readonly title: string;
6584
+ readonly message: string;
6585
+ readonly label: string;
6586
+ readonly link?: string | undefined;
6587
+ } | undefined;
6588
+ readonly next: number;
6589
+ } | {
6590
+ readonly type: "busy";
6430
6591
  };
6431
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
6432
- readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
6433
- readonly slug: string;
6434
- readonly title?: string | undefined;
6435
- readonly agent?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
6436
- readonly model?: {
6437
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6438
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6439
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6440
- } | undefined;
6441
- readonly metadata?: {
6442
- readonly [x: string]: import("effect/Schema").Json;
6443
- } | undefined;
6444
- readonly permissions?: readonly {
6445
- readonly action: string;
6446
- readonly resource: string;
6447
- readonly effect: "allow" | "ask" | "deny";
6448
- }[] | undefined;
6449
- readonly version: string;
6450
6592
  };
6451
6593
  } | {
6452
6594
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6475,7 +6617,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6475
6617
  readonly metadata?: {
6476
6618
  readonly [x: string]: unknown;
6477
6619
  } | undefined;
6478
- readonly type: "session.model.selected";
6620
+ readonly type: "session.archived";
6479
6621
  readonly durable: {
6480
6622
  readonly aggregateID: string;
6481
6623
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6487,16 +6629,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6487
6629
  } | undefined;
6488
6630
  readonly data: {
6489
6631
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6490
- readonly model: {
6491
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6492
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6493
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6494
- };
6495
- readonly previous?: {
6496
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6497
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6498
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6499
- } | undefined;
6500
6632
  };
6501
6633
  } | {
6502
6634
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6504,7 +6636,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6504
6636
  readonly metadata?: {
6505
6637
  readonly [x: string]: unknown;
6506
6638
  } | undefined;
6507
- readonly type: "session.moved";
6639
+ readonly type: "session.compaction.ended";
6508
6640
  readonly durable: {
6509
6641
  readonly aggregateID: string;
6510
6642
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6515,13 +6647,27 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6515
6647
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6516
6648
  } | undefined;
6517
6649
  readonly data: {
6518
- readonly location: {
6519
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6520
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6521
- };
6522
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
6523
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
6524
6650
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6651
+ readonly reason: "auto" | "manual";
6652
+ readonly model?: {
6653
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6654
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6655
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6656
+ } | undefined;
6657
+ readonly native?: {
6658
+ readonly [x: string]: unknown;
6659
+ } | undefined;
6660
+ readonly text: string;
6661
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
6662
+ readonly tokens?: {
6663
+ readonly input: number;
6664
+ readonly output: number;
6665
+ readonly reasoning: number;
6666
+ readonly cache: {
6667
+ readonly read: number;
6668
+ readonly write: number;
6669
+ };
6670
+ } | undefined;
6525
6671
  };
6526
6672
  } | {
6527
6673
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6529,7 +6675,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6529
6675
  readonly metadata?: {
6530
6676
  readonly [x: string]: unknown;
6531
6677
  } | undefined;
6532
- readonly type: "session.renamed";
6678
+ readonly type: "session.compaction.failed";
6533
6679
  readonly durable: {
6534
6680
  readonly aggregateID: string;
6535
6681
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6541,7 +6687,27 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6541
6687
  } | undefined;
6542
6688
  readonly data: {
6543
6689
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6544
- readonly title: string;
6690
+ readonly reason: "auto" | "manual";
6691
+ readonly error: {
6692
+ readonly type: string;
6693
+ readonly message: string;
6694
+ readonly status?: number | undefined;
6695
+ readonly response?: {
6696
+ readonly body: string;
6697
+ } | undefined;
6698
+ readonly retryAfterMs?: number | undefined;
6699
+ };
6700
+ readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
6701
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
6702
+ readonly tokens?: {
6703
+ readonly input: number;
6704
+ readonly output: number;
6705
+ readonly reasoning: number;
6706
+ readonly cache: {
6707
+ readonly read: number;
6708
+ readonly write: number;
6709
+ };
6710
+ } | undefined;
6545
6711
  };
6546
6712
  } | {
6547
6713
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6549,7 +6715,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6549
6715
  readonly metadata?: {
6550
6716
  readonly [x: string]: unknown;
6551
6717
  } | undefined;
6552
- readonly type: "session.metadata.updated";
6718
+ readonly type: "session.compaction.started";
6553
6719
  readonly durable: {
6554
6720
  readonly aggregateID: string;
6555
6721
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6561,9 +6727,8 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6561
6727
  } | undefined;
6562
6728
  readonly data: {
6563
6729
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6564
- readonly metadata: {
6565
- readonly [x: string]: import("effect/Schema").Json;
6566
- };
6730
+ readonly reason: "auto" | "manual";
6731
+ readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
6567
6732
  };
6568
6733
  } | {
6569
6734
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6571,7 +6736,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6571
6736
  readonly metadata?: {
6572
6737
  readonly [x: string]: unknown;
6573
6738
  } | undefined;
6574
- readonly type: "session.permissions";
6739
+ readonly type: "session.created";
6575
6740
  readonly durable: {
6576
6741
  readonly aggregateID: string;
6577
6742
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6583,11 +6748,30 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6583
6748
  } | undefined;
6584
6749
  readonly data: {
6585
6750
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6586
- readonly permissions: readonly {
6751
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
6752
+ readonly location: {
6753
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6754
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6755
+ };
6756
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
6757
+ readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
6758
+ readonly slug: string;
6759
+ readonly title?: string | undefined;
6760
+ readonly agent?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
6761
+ readonly model?: {
6762
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6763
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6764
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6765
+ } | undefined;
6766
+ readonly metadata?: {
6767
+ readonly [x: string]: import("effect/Schema").Json;
6768
+ } | undefined;
6769
+ readonly permissions?: readonly {
6587
6770
  readonly action: string;
6588
6771
  readonly resource: string;
6589
6772
  readonly effect: "allow" | "ask" | "deny";
6590
- }[];
6773
+ }[] | undefined;
6774
+ readonly version: string;
6591
6775
  };
6592
6776
  } | {
6593
6777
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6595,7 +6779,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6595
6779
  readonly metadata?: {
6596
6780
  readonly [x: string]: unknown;
6597
6781
  } | undefined;
6598
- readonly type: "session.viewed";
6782
+ readonly type: "session.deleted";
6599
6783
  readonly durable: {
6600
6784
  readonly aggregateID: string;
6601
6785
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6607,7 +6791,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6607
6791
  } | undefined;
6608
6792
  readonly data: {
6609
6793
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6610
- readonly idle: number;
6611
6794
  };
6612
6795
  } | {
6613
6796
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6615,7 +6798,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6615
6798
  readonly metadata?: {
6616
6799
  readonly [x: string]: unknown;
6617
6800
  } | undefined;
6618
- readonly type: "session.archived";
6801
+ readonly type: "session.execution.failed";
6619
6802
  readonly durable: {
6620
6803
  readonly aggregateID: string;
6621
6804
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6627,6 +6810,15 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6627
6810
  } | undefined;
6628
6811
  readonly data: {
6629
6812
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6813
+ readonly error: {
6814
+ readonly type: string;
6815
+ readonly message: string;
6816
+ readonly status?: number | undefined;
6817
+ readonly response?: {
6818
+ readonly body: string;
6819
+ } | undefined;
6820
+ readonly retryAfterMs?: number | undefined;
6821
+ };
6630
6822
  };
6631
6823
  } | {
6632
6824
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6634,7 +6826,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6634
6826
  readonly metadata?: {
6635
6827
  readonly [x: string]: unknown;
6636
6828
  } | undefined;
6637
- readonly type: "session.unarchived";
6829
+ readonly type: "session.execution.interrupted";
6638
6830
  readonly durable: {
6639
6831
  readonly aggregateID: string;
6640
6832
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6646,6 +6838,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6646
6838
  } | undefined;
6647
6839
  readonly data: {
6648
6840
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6841
+ readonly reason: "inactivity" | "shutdown" | "superseded" | "user";
6649
6842
  };
6650
6843
  } | {
6651
6844
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6653,23 +6846,18 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6653
6846
  readonly metadata?: {
6654
6847
  readonly [x: string]: unknown;
6655
6848
  } | undefined;
6656
- readonly type: "session.usage.updated";
6849
+ readonly type: "session.execution.started";
6850
+ readonly durable: {
6851
+ readonly aggregateID: string;
6852
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6853
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6854
+ };
6657
6855
  readonly location?: {
6658
6856
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6659
6857
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6660
6858
  } | undefined;
6661
6859
  readonly data: {
6662
6860
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6663
- readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
6664
- readonly tokens: {
6665
- readonly input: number;
6666
- readonly output: number;
6667
- readonly reasoning: number;
6668
- readonly cache: {
6669
- readonly read: number;
6670
- readonly write: number;
6671
- };
6672
- };
6673
6861
  };
6674
6862
  } | {
6675
6863
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6677,7 +6865,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6677
6865
  readonly metadata?: {
6678
6866
  readonly [x: string]: unknown;
6679
6867
  } | undefined;
6680
- readonly type: "session.deleted";
6868
+ readonly type: "session.execution.succeeded";
6681
6869
  readonly durable: {
6682
6870
  readonly aggregateID: string;
6683
6871
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6725,6 +6913,26 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6725
6913
  readonly removed: boolean;
6726
6914
  }[] | undefined;
6727
6915
  };
6916
+ } | {
6917
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6918
+ readonly created: number;
6919
+ readonly metadata?: {
6920
+ readonly [x: string]: unknown;
6921
+ } | undefined;
6922
+ readonly type: "session.inbox.cancelled";
6923
+ readonly durable: {
6924
+ readonly aggregateID: string;
6925
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6926
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6927
+ };
6928
+ readonly location?: {
6929
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6930
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6931
+ } | undefined;
6932
+ readonly data: {
6933
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6934
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6935
+ };
6728
6936
  } | {
6729
6937
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6730
6938
  readonly created: number;
@@ -6745,6 +6953,27 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6745
6953
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6746
6954
  readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6747
6955
  };
6956
+ } | {
6957
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6958
+ readonly created: number;
6959
+ readonly metadata?: {
6960
+ readonly [x: string]: unknown;
6961
+ } | undefined;
6962
+ readonly type: "session.inbox.delivery.changed";
6963
+ readonly durable: {
6964
+ readonly aggregateID: string;
6965
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6966
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6967
+ };
6968
+ readonly location?: {
6969
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6970
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6971
+ } | undefined;
6972
+ readonly data: {
6973
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6974
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6975
+ readonly delivery: "queue" | "steer";
6976
+ };
6748
6977
  } | {
6749
6978
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6750
6979
  readonly created: number;
@@ -6841,7 +7070,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6841
7070
  readonly metadata?: {
6842
7071
  readonly [x: string]: unknown;
6843
7072
  } | undefined;
6844
- readonly type: "session.inbox.cancelled";
7073
+ readonly type: "session.instructions.updated";
6845
7074
  readonly durable: {
6846
7075
  readonly aggregateID: string;
6847
7076
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6853,7 +7082,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6853
7082
  } | undefined;
6854
7083
  readonly data: {
6855
7084
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6856
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7085
+ readonly delta: {
7086
+ readonly [x: string]: "removed" | (string & import("effect/Brand").Brand<"Instruction.Hash">);
7087
+ };
7088
+ readonly text?: string | undefined;
6857
7089
  };
6858
7090
  } | {
6859
7091
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6861,7 +7093,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6861
7093
  readonly metadata?: {
6862
7094
  readonly [x: string]: unknown;
6863
7095
  } | undefined;
6864
- readonly type: "session.inbox.delivery.changed";
7096
+ readonly type: "session.metadata.updated";
6865
7097
  readonly durable: {
6866
7098
  readonly aggregateID: string;
6867
7099
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6873,8 +7105,9 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6873
7105
  } | undefined;
6874
7106
  readonly data: {
6875
7107
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6876
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6877
- readonly delivery: "queue" | "steer";
7108
+ readonly metadata: {
7109
+ readonly [x: string]: import("effect/Schema").Json;
7110
+ };
6878
7111
  };
6879
7112
  } | {
6880
7113
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6882,7 +7115,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6882
7115
  readonly metadata?: {
6883
7116
  readonly [x: string]: unknown;
6884
7117
  } | undefined;
6885
- readonly type: "session.execution.started";
7118
+ readonly type: "session.model.selected";
6886
7119
  readonly durable: {
6887
7120
  readonly aggregateID: string;
6888
7121
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6894,6 +7127,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6894
7127
  } | undefined;
6895
7128
  readonly data: {
6896
7129
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7130
+ readonly model: {
7131
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7132
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7133
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7134
+ };
7135
+ readonly previous?: {
7136
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7137
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7138
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7139
+ } | undefined;
6897
7140
  };
6898
7141
  } | {
6899
7142
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6901,7 +7144,32 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6901
7144
  readonly metadata?: {
6902
7145
  readonly [x: string]: unknown;
6903
7146
  } | undefined;
6904
- readonly type: "session.execution.succeeded";
7147
+ readonly type: "session.moved";
7148
+ readonly durable: {
7149
+ readonly aggregateID: string;
7150
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7151
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7152
+ };
7153
+ readonly location?: {
7154
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7155
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7156
+ } | undefined;
7157
+ readonly data: {
7158
+ readonly location: {
7159
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7160
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7161
+ };
7162
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
7163
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
7164
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7165
+ };
7166
+ } | {
7167
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7168
+ readonly created: number;
7169
+ readonly metadata?: {
7170
+ readonly [x: string]: unknown;
7171
+ } | undefined;
7172
+ readonly type: "session.permissions";
6905
7173
  readonly durable: {
6906
7174
  readonly aggregateID: string;
6907
7175
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6913,6 +7181,11 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6913
7181
  } | undefined;
6914
7182
  readonly data: {
6915
7183
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7184
+ readonly permissions: readonly {
7185
+ readonly action: string;
7186
+ readonly resource: string;
7187
+ readonly effect: "allow" | "ask" | "deny";
7188
+ }[];
6916
7189
  };
6917
7190
  } | {
6918
7191
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6920,7 +7193,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6920
7193
  readonly metadata?: {
6921
7194
  readonly [x: string]: unknown;
6922
7195
  } | undefined;
6923
- readonly type: "session.execution.failed";
7196
+ readonly type: "session.reasoning.ended";
6924
7197
  readonly durable: {
6925
7198
  readonly aggregateID: string;
6926
7199
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6932,15 +7205,36 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6932
7205
  } | undefined;
6933
7206
  readonly data: {
6934
7207
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6935
- readonly error: {
6936
- readonly type: string;
6937
- readonly message: string;
6938
- readonly status?: number | undefined;
6939
- readonly response?: {
6940
- readonly body: string;
6941
- } | undefined;
6942
- readonly retryAfterMs?: number | undefined;
6943
- };
7208
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7209
+ readonly ordinal: number;
7210
+ readonly text: string;
7211
+ readonly native?: {
7212
+ readonly [x: string]: unknown;
7213
+ } | undefined;
7214
+ };
7215
+ } | {
7216
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7217
+ readonly created: number;
7218
+ readonly metadata?: {
7219
+ readonly [x: string]: unknown;
7220
+ } | undefined;
7221
+ readonly type: "session.reasoning.started";
7222
+ readonly durable: {
7223
+ readonly aggregateID: string;
7224
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7225
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7226
+ };
7227
+ readonly location?: {
7228
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7229
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7230
+ } | undefined;
7231
+ readonly data: {
7232
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7233
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7234
+ readonly ordinal: number;
7235
+ readonly native?: {
7236
+ readonly [x: string]: unknown;
7237
+ } | undefined;
6944
7238
  };
6945
7239
  } | {
6946
7240
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6948,7 +7242,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6948
7242
  readonly metadata?: {
6949
7243
  readonly [x: string]: unknown;
6950
7244
  } | undefined;
6951
- readonly type: "session.execution.interrupted";
7245
+ readonly type: "session.renamed";
6952
7246
  readonly durable: {
6953
7247
  readonly aggregateID: string;
6954
7248
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6960,7 +7254,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6960
7254
  } | undefined;
6961
7255
  readonly data: {
6962
7256
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6963
- readonly reason: "inactivity" | "shutdown" | "superseded" | "user";
7257
+ readonly title: string;
6964
7258
  };
6965
7259
  } | {
6966
7260
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6968,7 +7262,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6968
7262
  readonly metadata?: {
6969
7263
  readonly [x: string]: unknown;
6970
7264
  } | undefined;
6971
- readonly type: "session.instructions.updated";
7265
+ readonly type: "session.retry.scheduled";
6972
7266
  readonly durable: {
6973
7267
  readonly aggregateID: string;
6974
7268
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6980,10 +7274,18 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6980
7274
  } | undefined;
6981
7275
  readonly data: {
6982
7276
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6983
- readonly delta: {
6984
- readonly [x: string]: "removed" | (string & import("effect/Brand").Brand<"Instruction.Hash">);
7277
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7278
+ readonly attempt: number;
7279
+ readonly at: number;
7280
+ readonly error: {
7281
+ readonly type: string;
7282
+ readonly message: string;
7283
+ readonly status?: number | undefined;
7284
+ readonly response?: {
7285
+ readonly body: string;
7286
+ } | undefined;
7287
+ readonly retryAfterMs?: number | undefined;
6985
7288
  };
6986
- readonly text?: string | undefined;
6987
7289
  };
6988
7290
  } | {
6989
7291
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6991,7 +7293,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6991
7293
  readonly metadata?: {
6992
7294
  readonly [x: string]: unknown;
6993
7295
  } | undefined;
6994
- readonly type: "session.synthetic";
7296
+ readonly type: "session.revert.cleared";
6995
7297
  readonly durable: {
6996
7298
  readonly aggregateID: string;
6997
7299
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7003,11 +7305,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7003
7305
  } | undefined;
7004
7306
  readonly data: {
7005
7307
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7006
- readonly text: string;
7007
- readonly description?: string | undefined;
7008
- readonly metadata?: {
7009
- readonly [x: string]: unknown;
7010
- } | undefined;
7011
7308
  };
7012
7309
  } | {
7013
7310
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7015,7 +7312,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7015
7312
  readonly metadata?: {
7016
7313
  readonly [x: string]: unknown;
7017
7314
  } | undefined;
7018
- readonly type: "session.skill.activated";
7315
+ readonly type: "session.revert.committed";
7019
7316
  readonly durable: {
7020
7317
  readonly aggregateID: string;
7021
7318
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7027,9 +7324,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7027
7324
  } | undefined;
7028
7325
  readonly data: {
7029
7326
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7030
- readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
7031
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
7032
- readonly text: string;
7327
+ readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
7033
7328
  };
7034
7329
  } | {
7035
7330
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7037,7 +7332,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7037
7332
  readonly metadata?: {
7038
7333
  readonly [x: string]: unknown;
7039
7334
  } | undefined;
7040
- readonly type: "session.shell.started";
7335
+ readonly type: "session.revert.staged";
7041
7336
  readonly durable: {
7042
7337
  readonly aggregateID: string;
7043
7338
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7049,23 +7344,17 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7049
7344
  } | undefined;
7050
7345
  readonly data: {
7051
7346
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7052
- readonly shell: {
7053
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
7054
- readonly status: "exited" | "killed" | "running" | "timeout";
7055
- readonly command: string;
7056
- readonly cwd: string;
7057
- readonly shell: string;
7058
- readonly file: string;
7059
- readonly pid?: number | undefined;
7060
- readonly exit?: number | undefined;
7061
- readonly signal?: string | undefined;
7062
- readonly metadata: {
7063
- readonly [x: string]: unknown;
7064
- };
7065
- readonly time: {
7066
- readonly started: number;
7067
- readonly completed?: number | undefined;
7068
- };
7347
+ readonly revert: {
7348
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7349
+ readonly partID?: string | undefined;
7350
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7351
+ readonly files?: readonly {
7352
+ readonly file: string;
7353
+ readonly patch: string;
7354
+ readonly additions: number;
7355
+ readonly deletions: number;
7356
+ readonly status: "added" | "deleted" | "modified";
7357
+ }[] | undefined;
7069
7358
  };
7070
7359
  };
7071
7360
  } | {
@@ -7117,7 +7406,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7117
7406
  readonly metadata?: {
7118
7407
  readonly [x: string]: unknown;
7119
7408
  } | undefined;
7120
- readonly type: "session.step.started";
7409
+ readonly type: "session.shell.started";
7121
7410
  readonly durable: {
7122
7411
  readonly aggregateID: string;
7123
7412
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7129,15 +7418,24 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7129
7418
  } | undefined;
7130
7419
  readonly data: {
7131
7420
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7132
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7133
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
7134
- readonly model: {
7135
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7136
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7137
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7421
+ readonly shell: {
7422
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
7423
+ readonly status: "exited" | "killed" | "running" | "timeout";
7424
+ readonly command: string;
7425
+ readonly cwd: string;
7426
+ readonly shell: string;
7427
+ readonly file: string;
7428
+ readonly pid?: number | undefined;
7429
+ readonly exit?: number | undefined;
7430
+ readonly signal?: string | undefined;
7431
+ readonly metadata: {
7432
+ readonly [x: string]: unknown;
7433
+ };
7434
+ readonly time: {
7435
+ readonly started: number;
7436
+ readonly completed?: number | undefined;
7437
+ };
7138
7438
  };
7139
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7140
- readonly started: number;
7141
7439
  };
7142
7440
  } | {
7143
7441
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7145,7 +7443,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7145
7443
  readonly metadata?: {
7146
7444
  readonly [x: string]: unknown;
7147
7445
  } | undefined;
7148
- readonly type: "session.step.streamed";
7446
+ readonly type: "session.skill.activated";
7149
7447
  readonly durable: {
7150
7448
  readonly aggregateID: string;
7151
7449
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7157,7 +7455,9 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7157
7455
  } | undefined;
7158
7456
  readonly data: {
7159
7457
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7160
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7458
+ readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
7459
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
7460
+ readonly text: string;
7161
7461
  };
7162
7462
  } | {
7163
7463
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7248,45 +7548,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7248
7548
  readonly metadata?: {
7249
7549
  readonly [x: string]: unknown;
7250
7550
  } | undefined;
7251
- readonly type: "session.text.started";
7252
- readonly durable: {
7253
- readonly aggregateID: string;
7254
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7255
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7256
- };
7257
- readonly location?: {
7258
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7259
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7260
- } | undefined;
7261
- readonly data: {
7262
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7263
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7264
- readonly ordinal: number;
7265
- };
7266
- } | {
7267
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7268
- readonly created: number;
7269
- readonly metadata?: {
7270
- readonly [x: string]: unknown;
7271
- } | undefined;
7272
- readonly type: "session.text.delta";
7273
- readonly location?: {
7274
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7275
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7276
- } | undefined;
7277
- readonly data: {
7278
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7279
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7280
- readonly ordinal: number;
7281
- readonly delta: string;
7282
- };
7283
- } | {
7284
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7285
- readonly created: number;
7286
- readonly metadata?: {
7287
- readonly [x: string]: unknown;
7288
- } | undefined;
7289
- readonly type: "session.text.ended";
7551
+ readonly type: "session.step.started";
7290
7552
  readonly durable: {
7291
7553
  readonly aggregateID: string;
7292
7554
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7299,11 +7561,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7299
7561
  readonly data: {
7300
7562
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7301
7563
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7302
- readonly ordinal: number;
7303
- readonly text: string;
7304
- readonly native?: {
7305
- readonly [x: string]: unknown;
7306
- } | undefined;
7564
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
7565
+ readonly model: {
7566
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7567
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7568
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7569
+ };
7570
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7571
+ readonly started: number;
7307
7572
  };
7308
7573
  } | {
7309
7574
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7311,7 +7576,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7311
7576
  readonly metadata?: {
7312
7577
  readonly [x: string]: unknown;
7313
7578
  } | undefined;
7314
- readonly type: "session.reasoning.started";
7579
+ readonly type: "session.step.streamed";
7315
7580
  readonly durable: {
7316
7581
  readonly aggregateID: string;
7317
7582
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7324,27 +7589,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7324
7589
  readonly data: {
7325
7590
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7326
7591
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7327
- readonly ordinal: number;
7328
- readonly native?: {
7329
- readonly [x: string]: unknown;
7330
- } | undefined;
7331
- };
7332
- } | {
7333
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7334
- readonly created: number;
7335
- readonly metadata?: {
7336
- readonly [x: string]: unknown;
7337
- } | undefined;
7338
- readonly type: "session.reasoning.delta";
7339
- readonly location?: {
7340
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7341
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7342
- } | undefined;
7343
- readonly data: {
7344
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7345
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7346
- readonly ordinal: number;
7347
- readonly delta: string;
7348
7592
  };
7349
7593
  } | {
7350
7594
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7352,7 +7596,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7352
7596
  readonly metadata?: {
7353
7597
  readonly [x: string]: unknown;
7354
7598
  } | undefined;
7355
- readonly type: "session.reasoning.ended";
7599
+ readonly type: "session.synthetic";
7356
7600
  readonly durable: {
7357
7601
  readonly aggregateID: string;
7358
7602
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7364,10 +7608,9 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7364
7608
  } | undefined;
7365
7609
  readonly data: {
7366
7610
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7367
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7368
- readonly ordinal: number;
7369
7611
  readonly text: string;
7370
- readonly native?: {
7612
+ readonly description?: string | undefined;
7613
+ readonly metadata?: {
7371
7614
  readonly [x: string]: unknown;
7372
7615
  } | undefined;
7373
7616
  };
@@ -7377,68 +7620,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7377
7620
  readonly metadata?: {
7378
7621
  readonly [x: string]: unknown;
7379
7622
  } | undefined;
7380
- readonly type: "session.tool.input.started";
7381
- readonly durable: {
7382
- readonly aggregateID: string;
7383
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7384
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7385
- };
7386
- readonly location?: {
7387
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7388
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7389
- } | undefined;
7390
- readonly data: {
7391
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7392
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7393
- readonly id: string;
7394
- readonly name: string;
7395
- };
7396
- } | {
7397
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7398
- readonly created: number;
7399
- readonly metadata?: {
7400
- readonly [x: string]: unknown;
7401
- } | undefined;
7402
- readonly type: "session.tool.input.delta";
7403
- readonly location?: {
7404
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7405
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7406
- } | undefined;
7407
- readonly data: {
7408
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7409
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7410
- readonly id: string;
7411
- readonly delta: string;
7412
- };
7413
- } | {
7414
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7415
- readonly created: number;
7416
- readonly metadata?: {
7417
- readonly [x: string]: unknown;
7418
- } | undefined;
7419
- readonly type: "session.tool.input.ended";
7420
- readonly durable: {
7421
- readonly aggregateID: string;
7422
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7423
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7424
- };
7425
- readonly location?: {
7426
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7427
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7428
- } | undefined;
7429
- readonly data: {
7430
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7431
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7432
- readonly id: string;
7433
- readonly text: string;
7434
- };
7435
- } | {
7436
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7437
- readonly created: number;
7438
- readonly metadata?: {
7439
- readonly [x: string]: unknown;
7440
- } | undefined;
7441
- readonly type: "session.tool.called";
7623
+ readonly type: "session.text.ended";
7442
7624
  readonly durable: {
7443
7625
  readonly aggregateID: string;
7444
7626
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7448,14 +7630,11 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7448
7630
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7449
7631
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7450
7632
  } | undefined;
7451
- readonly data: {
7452
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7453
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7454
- readonly id: string;
7455
- readonly input: {
7456
- readonly [x: string]: unknown;
7457
- };
7458
- readonly executed: boolean;
7633
+ readonly data: {
7634
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7635
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7636
+ readonly ordinal: number;
7637
+ readonly text: string;
7459
7638
  readonly native?: {
7460
7639
  readonly [x: string]: unknown;
7461
7640
  } | undefined;
@@ -7466,7 +7645,12 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7466
7645
  readonly metadata?: {
7467
7646
  readonly [x: string]: unknown;
7468
7647
  } | undefined;
7469
- readonly type: "session.tool.progress";
7648
+ readonly type: "session.text.started";
7649
+ readonly durable: {
7650
+ readonly aggregateID: string;
7651
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7652
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7653
+ };
7470
7654
  readonly location?: {
7471
7655
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7472
7656
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7474,10 +7658,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7474
7658
  readonly data: {
7475
7659
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7476
7660
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7477
- readonly id: string;
7478
- readonly metadata: {
7479
- readonly [x: string]: import("effect/Schema").Json;
7480
- };
7661
+ readonly ordinal: number;
7481
7662
  };
7482
7663
  } | {
7483
7664
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7485,7 +7666,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7485
7666
  readonly metadata?: {
7486
7667
  readonly [x: string]: unknown;
7487
7668
  } | undefined;
7488
- readonly type: "session.tool.success";
7669
+ readonly type: "session.tool.called";
7489
7670
  readonly durable: {
7490
7671
  readonly aggregateID: string;
7491
7672
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7499,26 +7680,9 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7499
7680
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7500
7681
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7501
7682
  readonly id: string;
7502
- readonly content: readonly [{
7503
- readonly type: "text";
7504
- readonly text: string;
7505
- } | {
7506
- readonly type: "file";
7507
- readonly uri: string;
7508
- readonly mime: string;
7509
- readonly name?: string | undefined;
7510
- }, ...({
7511
- readonly type: "text";
7512
- readonly text: string;
7513
- } | {
7514
- readonly type: "file";
7515
- readonly uri: string;
7516
- readonly mime: string;
7517
- readonly name?: string | undefined;
7518
- })[]];
7519
- readonly metadata?: {
7520
- readonly [x: string]: import("effect/Schema").Json;
7521
- } | undefined;
7683
+ readonly input: {
7684
+ readonly [x: string]: unknown;
7685
+ };
7522
7686
  readonly executed: boolean;
7523
7687
  readonly native?: {
7524
7688
  readonly [x: string]: unknown;
@@ -7584,7 +7748,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7584
7748
  readonly metadata?: {
7585
7749
  readonly [x: string]: unknown;
7586
7750
  } | undefined;
7587
- readonly type: "session.retry.scheduled";
7751
+ readonly type: "session.tool.input.ended";
7588
7752
  readonly durable: {
7589
7753
  readonly aggregateID: string;
7590
7754
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7597,17 +7761,8 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7597
7761
  readonly data: {
7598
7762
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7599
7763
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7600
- readonly attempt: number;
7601
- readonly at: number;
7602
- readonly error: {
7603
- readonly type: string;
7604
- readonly message: string;
7605
- readonly status?: number | undefined;
7606
- readonly response?: {
7607
- readonly body: string;
7608
- } | undefined;
7609
- readonly retryAfterMs?: number | undefined;
7610
- };
7764
+ readonly id: string;
7765
+ readonly text: string;
7611
7766
  };
7612
7767
  } | {
7613
7768
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7615,7 +7770,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7615
7770
  readonly metadata?: {
7616
7771
  readonly [x: string]: unknown;
7617
7772
  } | undefined;
7618
- readonly type: "session.compaction.started";
7773
+ readonly type: "session.tool.input.started";
7619
7774
  readonly durable: {
7620
7775
  readonly aggregateID: string;
7621
7776
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7627,23 +7782,9 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7627
7782
  } | undefined;
7628
7783
  readonly data: {
7629
7784
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7630
- readonly reason: "auto" | "manual";
7631
- readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
7632
- };
7633
- } | {
7634
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7635
- readonly created: number;
7636
- readonly metadata?: {
7637
- readonly [x: string]: unknown;
7638
- } | undefined;
7639
- readonly type: "session.compaction.delta";
7640
- readonly location?: {
7641
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7642
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7643
- } | undefined;
7644
- readonly data: {
7645
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7646
- readonly text: string;
7785
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7786
+ readonly id: string;
7787
+ readonly name: string;
7647
7788
  };
7648
7789
  } | {
7649
7790
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7651,7 +7792,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7651
7792
  readonly metadata?: {
7652
7793
  readonly [x: string]: unknown;
7653
7794
  } | undefined;
7654
- readonly type: "session.compaction.ended";
7795
+ readonly type: "session.tool.success";
7655
7796
  readonly durable: {
7656
7797
  readonly aggregateID: string;
7657
7798
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7663,26 +7804,32 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7663
7804
  } | undefined;
7664
7805
  readonly data: {
7665
7806
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7666
- readonly reason: "auto" | "manual";
7667
- readonly model?: {
7668
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7669
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7670
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7807
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7808
+ readonly id: string;
7809
+ readonly content: readonly [{
7810
+ readonly type: "text";
7811
+ readonly text: string;
7812
+ } | {
7813
+ readonly type: "file";
7814
+ readonly uri: string;
7815
+ readonly mime: string;
7816
+ readonly name?: string | undefined;
7817
+ }, ...({
7818
+ readonly type: "text";
7819
+ readonly text: string;
7820
+ } | {
7821
+ readonly type: "file";
7822
+ readonly uri: string;
7823
+ readonly mime: string;
7824
+ readonly name?: string | undefined;
7825
+ })[]];
7826
+ readonly metadata?: {
7827
+ readonly [x: string]: import("effect/Schema").Json;
7671
7828
  } | undefined;
7829
+ readonly executed: boolean;
7672
7830
  readonly native?: {
7673
7831
  readonly [x: string]: unknown;
7674
7832
  } | undefined;
7675
- readonly text: string;
7676
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
7677
- readonly tokens?: {
7678
- readonly input: number;
7679
- readonly output: number;
7680
- readonly reasoning: number;
7681
- readonly cache: {
7682
- readonly read: number;
7683
- readonly write: number;
7684
- };
7685
- } | undefined;
7686
7833
  };
7687
7834
  } | {
7688
7835
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7690,7 +7837,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7690
7837
  readonly metadata?: {
7691
7838
  readonly [x: string]: unknown;
7692
7839
  } | undefined;
7693
- readonly type: "session.compaction.failed";
7840
+ readonly type: "session.unarchived";
7694
7841
  readonly durable: {
7695
7842
  readonly aggregateID: string;
7696
7843
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7702,27 +7849,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7702
7849
  } | undefined;
7703
7850
  readonly data: {
7704
7851
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7705
- readonly reason: "auto" | "manual";
7706
- readonly error: {
7707
- readonly type: string;
7708
- readonly message: string;
7709
- readonly status?: number | undefined;
7710
- readonly response?: {
7711
- readonly body: string;
7712
- } | undefined;
7713
- readonly retryAfterMs?: number | undefined;
7714
- };
7715
- readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
7716
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
7717
- readonly tokens?: {
7718
- readonly input: number;
7719
- readonly output: number;
7720
- readonly reasoning: number;
7721
- readonly cache: {
7722
- readonly read: number;
7723
- readonly write: number;
7724
- };
7725
- } | undefined;
7726
7852
  };
7727
7853
  } | {
7728
7854
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7730,7 +7856,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7730
7856
  readonly metadata?: {
7731
7857
  readonly [x: string]: unknown;
7732
7858
  } | undefined;
7733
- readonly type: "session.revert.cleared";
7859
+ readonly type: "session.viewed";
7734
7860
  readonly durable: {
7735
7861
  readonly aggregateID: string;
7736
7862
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7742,6 +7868,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7742
7868
  } | undefined;
7743
7869
  readonly data: {
7744
7870
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7871
+ readonly idle: number;
7745
7872
  };
7746
7873
  } | {
7747
7874
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7749,19 +7876,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7749
7876
  readonly metadata?: {
7750
7877
  readonly [x: string]: unknown;
7751
7878
  } | undefined;
7752
- readonly type: "session.revert.committed";
7753
- readonly durable: {
7754
- readonly aggregateID: string;
7755
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7756
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7757
- };
7879
+ readonly type: "session.compaction.delta";
7758
7880
  readonly location?: {
7759
7881
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7760
7882
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7761
7883
  } | undefined;
7762
7884
  readonly data: {
7763
7885
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7764
- readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
7886
+ readonly text: string;
7765
7887
  };
7766
7888
  } | {
7767
7889
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7769,82 +7891,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7769
7891
  readonly metadata?: {
7770
7892
  readonly [x: string]: unknown;
7771
7893
  } | undefined;
7772
- readonly type: "session.revert.staged";
7773
- readonly durable: {
7774
- readonly aggregateID: string;
7775
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7776
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7777
- };
7894
+ readonly type: "session.reasoning.delta";
7778
7895
  readonly location?: {
7779
7896
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7780
7897
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7781
7898
  } | undefined;
7782
7899
  readonly data: {
7783
7900
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7784
- readonly revert: {
7785
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7786
- readonly partID?: string | undefined;
7787
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7788
- readonly files?: readonly {
7789
- readonly file: string;
7790
- readonly patch: string;
7791
- readonly additions: number;
7792
- readonly deletions: number;
7793
- readonly status: "added" | "deleted" | "modified";
7794
- }[] | undefined;
7795
- };
7796
- };
7797
- } | {
7798
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7799
- readonly created: number;
7800
- readonly metadata?: {
7801
- readonly [x: string]: unknown;
7802
- } | undefined;
7803
- readonly type: "command.updated";
7804
- readonly location?: {
7805
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7806
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7807
- } | undefined;
7808
- readonly data: {};
7809
- } | {
7810
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7811
- readonly created: number;
7812
- readonly metadata?: {
7813
- readonly [x: string]: unknown;
7814
- } | undefined;
7815
- readonly type: "config.updated";
7816
- readonly location?: {
7817
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7818
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7819
- } | undefined;
7820
- readonly data: {};
7821
- } | {
7822
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7823
- readonly created: number;
7824
- readonly metadata?: {
7825
- readonly [x: string]: unknown;
7826
- } | undefined;
7827
- readonly type: "mcp.resources.changed";
7828
- readonly location?: {
7829
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7830
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7831
- } | undefined;
7832
- readonly data: {
7833
- readonly server: string;
7834
- };
7835
- } | {
7836
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7837
- readonly created: number;
7838
- readonly metadata?: {
7839
- readonly [x: string]: unknown;
7840
- } | undefined;
7841
- readonly type: "mcp.status.changed";
7842
- readonly location?: {
7843
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7844
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7845
- } | undefined;
7846
- readonly data: {
7847
- readonly server: string;
7901
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7902
+ readonly ordinal: number;
7903
+ readonly delta: string;
7848
7904
  };
7849
7905
  } | {
7850
7906
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7852,25 +7908,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7852
7908
  readonly metadata?: {
7853
7909
  readonly [x: string]: unknown;
7854
7910
  } | undefined;
7855
- readonly type: "plugin.updated";
7856
- readonly location?: {
7857
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7858
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7859
- } | undefined;
7860
- readonly data: {};
7861
- } | {
7862
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7863
- readonly created: number;
7864
- readonly metadata?: {
7865
- readonly [x: string]: unknown;
7866
- } | undefined;
7867
- readonly type: "tui.command.execute";
7911
+ readonly type: "session.text.delta";
7868
7912
  readonly location?: {
7869
7913
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7870
7914
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7871
7915
  } | undefined;
7872
7916
  readonly data: {
7873
- readonly command: string;
7917
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7918
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7919
+ readonly ordinal: number;
7920
+ readonly delta: string;
7874
7921
  };
7875
7922
  } | {
7876
7923
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7878,13 +7925,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7878
7925
  readonly metadata?: {
7879
7926
  readonly [x: string]: unknown;
7880
7927
  } | undefined;
7881
- readonly type: "tui.prompt.append";
7928
+ readonly type: "session.tool.input.delta";
7882
7929
  readonly location?: {
7883
7930
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7884
7931
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7885
7932
  } | undefined;
7886
7933
  readonly data: {
7887
- readonly text: string;
7934
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7935
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7936
+ readonly id: string;
7937
+ readonly delta: string;
7888
7938
  };
7889
7939
  } | {
7890
7940
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7892,13 +7942,18 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7892
7942
  readonly metadata?: {
7893
7943
  readonly [x: string]: unknown;
7894
7944
  } | undefined;
7895
- readonly type: "tui.session.select";
7945
+ readonly type: "session.tool.progress";
7896
7946
  readonly location?: {
7897
7947
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7898
7948
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7899
7949
  } | undefined;
7900
7950
  readonly data: {
7901
7951
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7952
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7953
+ readonly id: string;
7954
+ readonly metadata: {
7955
+ readonly [x: string]: import("effect/Schema").Json;
7956
+ };
7902
7957
  };
7903
7958
  } | {
7904
7959
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7906,16 +7961,23 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7906
7961
  readonly metadata?: {
7907
7962
  readonly [x: string]: unknown;
7908
7963
  } | undefined;
7909
- readonly type: "tui.toast.show";
7964
+ readonly type: "session.usage.updated";
7910
7965
  readonly location?: {
7911
7966
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7912
7967
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7913
7968
  } | undefined;
7914
7969
  readonly data: {
7915
- readonly title?: string | undefined;
7916
- readonly message: string;
7917
- readonly variant: "error" | "info" | "success" | "warning";
7918
- readonly duration: number;
7970
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7971
+ readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
7972
+ readonly tokens: {
7973
+ readonly input: number;
7974
+ readonly output: number;
7975
+ readonly reasoning: number;
7976
+ readonly cache: {
7977
+ readonly read: number;
7978
+ readonly write: number;
7979
+ };
7980
+ };
7919
7981
  };
7920
7982
  } | {
7921
7983
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7923,12 +7985,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7923
7985
  readonly metadata?: {
7924
7986
  readonly [x: string]: unknown;
7925
7987
  } | undefined;
7926
- readonly type: "location.shutdown";
7927
- readonly location?: {
7988
+ readonly type: `rpc.${string}`;
7989
+ readonly location: {
7928
7990
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7929
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7930
- } | undefined;
7931
- readonly data: {};
7991
+ };
7992
+ readonly data: {
7993
+ readonly [x: string]: unknown;
7994
+ };
7932
7995
  } | {
7933
7996
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7934
7997
  readonly created: number;
@@ -7947,19 +8010,22 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7947
8010
  readonly metadata?: {
7948
8011
  readonly [x: string]: unknown;
7949
8012
  } | undefined;
7950
- readonly type: "integration.updated";
8013
+ readonly type: "credential.switched";
7951
8014
  readonly location?: {
7952
8015
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7953
8016
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7954
8017
  } | undefined;
7955
- readonly data: {};
8018
+ readonly data: {
8019
+ readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
8020
+ readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
8021
+ };
7956
8022
  } | {
7957
8023
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7958
8024
  readonly created: number;
7959
8025
  readonly metadata?: {
7960
8026
  readonly [x: string]: unknown;
7961
8027
  } | undefined;
7962
- readonly type: "provider.updated";
8028
+ readonly type: "credential.updated";
7963
8029
  readonly location?: {
7964
8030
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7965
8031
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7971,7 +8037,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7971
8037
  readonly metadata?: {
7972
8038
  readonly [x: string]: unknown;
7973
8039
  } | undefined;
7974
- readonly type: "model.updated";
8040
+ readonly type: "provider.updated";
7975
8041
  readonly location?: {
7976
8042
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7977
8043
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -8065,32 +8131,12 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8065
8131
  readonly metadata?: {
8066
8132
  readonly [x: string]: unknown;
8067
8133
  } | undefined;
8068
- readonly type: "project.updated";
8134
+ readonly type: "plugin.updated";
8069
8135
  readonly location?: {
8070
8136
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8071
8137
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8072
8138
  } | undefined;
8073
- readonly data: {
8074
- readonly id: string & import("effect/Brand").Brand<"Project.ID">;
8075
- readonly canonical: string & import("effect/Brand").Brand<"AbsolutePath">;
8076
- readonly vcs?: string | undefined;
8077
- readonly name?: string | undefined;
8078
- readonly icon?: {
8079
- readonly url?: string | undefined;
8080
- readonly override?: string | undefined;
8081
- readonly color?: string | undefined;
8082
- } | undefined;
8083
- readonly commands?: {
8084
- readonly start?: string | undefined;
8085
- } | undefined;
8086
- readonly time: {
8087
- readonly created: number;
8088
- readonly updated: number;
8089
- readonly active: number;
8090
- readonly archived?: number | undefined;
8091
- };
8092
- readonly sandboxes: readonly string[];
8093
- };
8139
+ readonly data: {};
8094
8140
  } | {
8095
8141
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8096
8142
  readonly created: number;
@@ -8133,59 +8179,43 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8133
8179
  readonly metadata?: {
8134
8180
  readonly [x: string]: unknown;
8135
8181
  } | undefined;
8136
- readonly type: "pty.created";
8182
+ readonly type: "command.updated";
8137
8183
  readonly location?: {
8138
8184
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8139
8185
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8140
8186
  } | undefined;
8141
- readonly data: {
8142
- readonly info: {
8143
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
8144
- readonly title: string;
8145
- readonly command: string;
8146
- readonly args: readonly string[];
8147
- readonly cwd: string;
8148
- readonly status: "exited" | "running";
8149
- readonly pid: number;
8150
- readonly exitCode?: number | undefined;
8151
- };
8152
- };
8187
+ readonly data: {};
8153
8188
  } | {
8154
8189
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8155
8190
  readonly created: number;
8156
8191
  readonly metadata?: {
8157
8192
  readonly [x: string]: unknown;
8158
8193
  } | undefined;
8159
- readonly type: "pty.deleted";
8194
+ readonly type: "config.updated";
8160
8195
  readonly location?: {
8161
8196
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8162
8197
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8163
8198
  } | undefined;
8164
- readonly data: {
8165
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
8166
- };
8199
+ readonly data: {};
8167
8200
  } | {
8168
8201
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8169
8202
  readonly created: number;
8170
8203
  readonly metadata?: {
8171
8204
  readonly [x: string]: unknown;
8172
8205
  } | undefined;
8173
- readonly type: "pty.exited";
8206
+ readonly type: "skill.updated";
8174
8207
  readonly location?: {
8175
8208
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8176
8209
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8177
8210
  } | undefined;
8178
- readonly data: {
8179
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
8180
- readonly exitCode: number;
8181
- };
8211
+ readonly data: {};
8182
8212
  } | {
8183
8213
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8184
8214
  readonly created: number;
8185
8215
  readonly metadata?: {
8186
8216
  readonly [x: string]: unknown;
8187
8217
  } | undefined;
8188
- readonly type: "pty.updated";
8218
+ readonly type: "pty.created";
8189
8219
  readonly location?: {
8190
8220
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8191
8221
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -8208,33 +8238,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8208
8238
  readonly metadata?: {
8209
8239
  readonly [x: string]: unknown;
8210
8240
  } | undefined;
8211
- readonly type: "persistent-pty.added";
8241
+ readonly type: "pty.deleted";
8212
8242
  readonly location?: {
8213
8243
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8214
8244
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8215
8245
  } | undefined;
8216
8246
  readonly data: {
8217
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8218
- readonly terminal: {
8219
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
8220
- readonly title: string;
8221
- readonly command: string;
8222
- readonly args: readonly string[];
8223
- readonly cwd: string;
8224
- readonly status: "exited" | "running";
8225
- readonly pid: number;
8226
- readonly exitCode?: number | undefined;
8227
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8228
- readonly foregroundProcess: string | null;
8229
- readonly size: {
8230
- readonly cols: number;
8231
- readonly rows: number;
8232
- };
8233
- readonly output: {
8234
- readonly head: number;
8235
- readonly tail: number;
8236
- };
8237
- };
8247
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
8238
8248
  };
8239
8249
  } | {
8240
8250
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8242,14 +8252,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8242
8252
  readonly metadata?: {
8243
8253
  readonly [x: string]: unknown;
8244
8254
  } | undefined;
8245
- readonly type: "persistent-pty.removed";
8255
+ readonly type: "pty.exited";
8246
8256
  readonly location?: {
8247
8257
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8248
8258
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8249
8259
  } | undefined;
8250
8260
  readonly data: {
8251
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8252
- readonly ptyID: string & import("effect/Brand").Brand<"PtyID">;
8261
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
8262
+ readonly exitCode: number;
8253
8263
  };
8254
8264
  } | {
8255
8265
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8257,61 +8267,23 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8257
8267
  readonly metadata?: {
8258
8268
  readonly [x: string]: unknown;
8259
8269
  } | undefined;
8260
- readonly type: "shell.created";
8270
+ readonly type: "pty.updated";
8261
8271
  readonly location?: {
8262
8272
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8263
8273
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8264
8274
  } | undefined;
8265
8275
  readonly data: {
8266
8276
  readonly info: {
8267
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8268
- readonly status: "exited" | "killed" | "running" | "timeout";
8277
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
8278
+ readonly title: string;
8269
8279
  readonly command: string;
8280
+ readonly args: readonly string[];
8270
8281
  readonly cwd: string;
8271
- readonly shell: string;
8272
- readonly file: string;
8273
- readonly pid?: number | undefined;
8274
- readonly exit?: number | undefined;
8275
- readonly signal?: string | undefined;
8276
- readonly metadata: {
8277
- readonly [x: string]: unknown;
8278
- };
8279
- readonly time: {
8280
- readonly started: number;
8281
- readonly completed?: number | undefined;
8282
- };
8282
+ readonly status: "exited" | "running";
8283
+ readonly pid: number;
8284
+ readonly exitCode?: number | undefined;
8283
8285
  };
8284
8286
  };
8285
- } | {
8286
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8287
- readonly created: number;
8288
- readonly metadata?: {
8289
- readonly [x: string]: unknown;
8290
- } | undefined;
8291
- readonly type: "shell.deleted";
8292
- readonly location?: {
8293
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8294
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8295
- } | undefined;
8296
- readonly data: {
8297
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8298
- };
8299
- } | {
8300
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8301
- readonly created: number;
8302
- readonly metadata?: {
8303
- readonly [x: string]: unknown;
8304
- } | undefined;
8305
- readonly type: "shell.exited";
8306
- readonly location?: {
8307
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8308
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8309
- } | undefined;
8310
- readonly data: {
8311
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8312
- readonly exit?: number | undefined;
8313
- readonly status: "exited" | "killed" | "running" | "timeout";
8314
- };
8315
8287
  } | {
8316
8288
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8317
8289
  readonly created: number;
@@ -8573,13 +8545,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8573
8545
  readonly metadata?: {
8574
8546
  readonly [x: string]: unknown;
8575
8547
  } | undefined;
8576
- readonly type: "session.idle";
8548
+ readonly type: "tui.command.execute";
8577
8549
  readonly location?: {
8578
8550
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8579
8551
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8580
8552
  } | undefined;
8581
8553
  readonly data: {
8582
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8554
+ readonly command: string;
8583
8555
  };
8584
8556
  } | {
8585
8557
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8587,31 +8559,44 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8587
8559
  readonly metadata?: {
8588
8560
  readonly [x: string]: unknown;
8589
8561
  } | undefined;
8590
- readonly type: "session.status";
8562
+ readonly type: "tui.prompt.append";
8563
+ readonly location?: {
8564
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8565
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8566
+ } | undefined;
8567
+ readonly data: {
8568
+ readonly text: string;
8569
+ };
8570
+ } | {
8571
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8572
+ readonly created: number;
8573
+ readonly metadata?: {
8574
+ readonly [x: string]: unknown;
8575
+ } | undefined;
8576
+ readonly type: "tui.session.select";
8591
8577
  readonly location?: {
8592
8578
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8593
8579
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8594
8580
  } | undefined;
8595
8581
  readonly data: {
8596
8582
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8597
- readonly status: {
8598
- readonly type: "idle";
8599
- } | {
8600
- readonly type: "retry";
8601
- readonly attempt: number;
8602
- readonly message: string;
8603
- readonly action?: {
8604
- readonly reason: string;
8605
- readonly provider: string;
8606
- readonly title: string;
8607
- readonly message: string;
8608
- readonly label: string;
8609
- readonly link?: string | undefined;
8610
- } | undefined;
8611
- readonly next: number;
8612
- } | {
8613
- readonly type: "busy";
8614
- };
8583
+ };
8584
+ } | {
8585
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8586
+ readonly created: number;
8587
+ readonly metadata?: {
8588
+ readonly [x: string]: unknown;
8589
+ } | undefined;
8590
+ readonly type: "tui.toast.show";
8591
+ readonly location?: {
8592
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8593
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8594
+ } | undefined;
8595
+ readonly data: {
8596
+ readonly title?: string | undefined;
8597
+ readonly message: string;
8598
+ readonly variant: "error" | "info" | "success" | "warning";
8599
+ readonly duration: number;
8615
8600
  };
8616
8601
  } | {
8617
8602
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8661,12 +8646,27 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8661
8646
  readonly metadata?: {
8662
8647
  readonly [x: string]: unknown;
8663
8648
  } | undefined;
8664
- readonly type: `rpc.${string}`;
8665
- readonly location: {
8649
+ readonly type: "mcp.resources.changed";
8650
+ readonly location?: {
8666
8651
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8667
- };
8652
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8653
+ } | undefined;
8668
8654
  readonly data: {
8655
+ readonly server: string;
8656
+ };
8657
+ } | {
8658
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8659
+ readonly created: number;
8660
+ readonly metadata?: {
8669
8661
  readonly [x: string]: unknown;
8662
+ } | undefined;
8663
+ readonly type: "mcp.status.changed";
8664
+ readonly location?: {
8665
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8666
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8667
+ } | undefined;
8668
+ readonly data: {
8669
+ readonly server: string;
8670
8670
  };
8671
8671
  } | {
8672
8672
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;