@opencode/server 0.0.0-dev-21465 → 0.0.0-dev-21479

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 (105) hide show
  1. package/dist/api.d.ts +679 -679
  2. package/dist/api.js +5 -5
  3. package/dist/auth.js +1 -1
  4. package/dist/chunks/{cors-0chp8crd.js → routes-0chp8crd.js} +1 -1
  5. package/dist/chunks/{cors-8137b89p.js → routes-0cppk2bc.js} +2 -2
  6. package/dist/chunks/{cors-3y8a8g3j.js → routes-2sy3c7de.js} +7 -7
  7. package/dist/chunks/{cors-h8ws5ssa.js → routes-3aej5azy.js} +1 -1
  8. package/dist/chunks/{cors-vb5yx5r0.js → routes-3atcw39t.js} +2 -2
  9. package/dist/chunks/{cors-4hhhes7w.js → routes-4gnb9897.js} +1 -1
  10. package/dist/chunks/{cors-fw98v1j8.js → routes-4m5b00d0.js} +3 -3
  11. package/dist/chunks/{cors-rb6bn0qm.js → routes-4t8kzarx.js} +7 -7
  12. package/dist/chunks/{cors-b56hqv74.js → routes-50bbk3b2.js} +3 -3
  13. package/dist/chunks/{cors-hxzy43nj.js → routes-6tcv58t1.js} +34 -34
  14. package/dist/chunks/{cors-4dv9a668.js → routes-6ypp9np2.js} +2 -2
  15. package/dist/chunks/{cors-tzrdfj7k.js → routes-783qq1th.js} +16 -16
  16. package/dist/chunks/{cors-z6sxg6td.js → routes-7b00qdf6.js} +1 -1
  17. package/dist/chunks/{cors-aey6dvfz.js → routes-7j4237sy.js} +3 -3
  18. package/dist/chunks/{cors-y7rrxyyg.js → routes-8g621t77.js} +6 -6
  19. package/dist/chunks/{cors-33prfkkd.js → routes-9mfgjndz.js} +3 -3
  20. package/dist/chunks/{cors-4zp76609.js → routes-ankhmcz6.js} +4 -4
  21. package/dist/chunks/{cors-anm12x33.js → routes-anm12x33.js} +1 -1
  22. package/dist/chunks/{cors-j4zqsxgy.js → routes-b3bmdkga.js} +1 -1
  23. package/dist/chunks/{cors-c6kb7fmf.js → routes-b8ygg5k2.js} +7 -7
  24. package/dist/chunks/{cors-wk806w00.js → routes-dr1f0hkr.js} +3 -3
  25. package/dist/chunks/{cors-yehasrps.js → routes-eaxk76q8.js} +2 -2
  26. package/dist/chunks/{cors-vbzm2jgm.js → routes-esbdfpyn.js} +2 -2
  27. package/dist/chunks/{cors-5zsr2h86.js → routes-ez8kk7rt.js} +1 -1
  28. package/dist/chunks/{cors-43r48nqn.js → routes-gsqctp76.js} +2 -2
  29. package/dist/chunks/{cors-97eb2r3v.js → routes-gx9nwmym.js} +2 -2
  30. package/dist/chunks/{cors-ssyxw8nc.js → routes-j1p3e665.js} +2 -2
  31. package/dist/chunks/{cors-0d864bga.js → routes-k8rzy6d4.js} +1 -1
  32. package/dist/chunks/{cors-bx47k33v.js → routes-krpsczf8.js} +2 -2
  33. package/dist/chunks/{cors-ptey1p5v.js → routes-mahm5rvs.js} +2 -2
  34. package/dist/chunks/{cors-ftaz8n62.js → routes-mhfbkkb7.js} +2 -2
  35. package/dist/chunks/{cors-rntbwr87.js → routes-mk2mz66m.js} +2 -2
  36. package/dist/chunks/{cors-08x9tjee.js → routes-n60r5keb.js} +1 -1
  37. package/dist/chunks/{cors-zessacar.js → routes-p6ct2ak8.js} +2 -2
  38. package/dist/chunks/{cors-9snwnvf8.js → routes-q8n44kky.js} +3 -3
  39. package/dist/chunks/{cors-qbh90c1d.js → routes-rc3nk1bx.js} +2 -2
  40. package/dist/chunks/{cors-ma4gq4kt.js → routes-t604mhvp.js} +2 -2
  41. package/dist/chunks/{cors-7vd5668a.js → routes-tp1rntzw.js} +1 -1
  42. package/dist/chunks/{cors-rf01ee6q.js → routes-vbanrv0z.js} +1 -1
  43. package/dist/chunks/{cors-cv0ajwc9.js → routes-vdtx70fv.js} +2 -2
  44. package/dist/chunks/{cors-4d1eemzq.js → routes-w0jn068c.js} +2 -2
  45. package/dist/chunks/{cors-383t61pr.js → routes-wv5twc2g.js} +7 -7
  46. package/dist/chunks/{cors-xsrtpxyd.js → routes-xsrtpxyd.js} +1 -1
  47. package/dist/chunks/{cors-yfz2nrjq.js → routes-yfz2nrjq.js} +1 -1
  48. package/dist/chunks/{cors-ewe1fzkk.js → routes-yv9sxhn9.js} +2 -2
  49. package/dist/cors.js +1 -1
  50. package/dist/event-feed.js +5 -5
  51. package/dist/fetch.js +48 -48
  52. package/dist/handlers/agent.js +6 -6
  53. package/dist/handlers/command.js +6 -6
  54. package/dist/handlers/config.js +6 -6
  55. package/dist/handlers/credential.js +6 -6
  56. package/dist/handlers/debug.js +6 -6
  57. package/dist/handlers/event.js +7 -7
  58. package/dist/handlers/form.js +6 -6
  59. package/dist/handlers/fs.js +6 -6
  60. package/dist/handlers/generate.js +6 -6
  61. package/dist/handlers/integration.js +6 -6
  62. package/dist/handlers/location.js +6 -6
  63. package/dist/handlers/mcp.js +6 -6
  64. package/dist/handlers/message.js +6 -6
  65. package/dist/handlers/migration.js +6 -6
  66. package/dist/handlers/model.js +6 -6
  67. package/dist/handlers/permission.js +6 -6
  68. package/dist/handlers/persistent-pty.js +8 -8
  69. package/dist/handlers/plugin.js +6 -6
  70. package/dist/handlers/project.js +6 -6
  71. package/dist/handlers/provider.js +6 -6
  72. package/dist/handlers/pty-socket.js +1 -1
  73. package/dist/handlers/pty.js +9 -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.js +44 -44
  86. package/dist/location.js +4 -4
  87. package/dist/middleware/authorization.js +2 -2
  88. package/dist/middleware/form-location.js +3 -3
  89. package/dist/middleware/schema-error.js +1 -1
  90. package/dist/middleware/session-location.js +3 -3
  91. package/dist/pairing.js +1 -1
  92. package/dist/process.js +50 -50
  93. package/dist/pty-environment.js +5 -5
  94. package/dist/request-tracing.js +1 -1
  95. package/dist/routes.js +47 -47
  96. package/dist/server-info.js +5 -5
  97. package/dist/service-status.js +1 -1
  98. package/dist/workerd.js +49 -49
  99. package/package.json +8 -8
  100. /package/dist/chunks/{cors-9rqn6x4v.js → routes-9rqn6x4v.js} +0 -0
  101. /package/dist/chunks/{cors-erzfdgke.js → routes-erzfdgke.js} +0 -0
  102. /package/dist/chunks/{cors-h6rt5k9s.js → routes-h6rt5k9s.js} +0 -0
  103. /package/dist/chunks/{cors-q4bn6dy8.js → routes-q4bn6dy8.js} +0 -0
  104. /package/dist/chunks/{cors-smaf4a18.js → routes-smaf4a18.js} +0 -0
  105. /package/dist/chunks/{cors-yc7nft6q.js → routes-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: "provider.updated";
6375
+ readonly type: "skill.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,26 +6384,14 @@ 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: "permission.asked";
6387
+ readonly type: "credential.switched";
6388
6388
  readonly location?: {
6389
6389
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6390
6390
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6391
6391
  } | undefined;
6392
6392
  readonly data: {
6393
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6394
- readonly action: string;
6395
- readonly resources: readonly string[];
6396
- readonly save?: readonly string[] | undefined;
6397
- readonly metadata?: {
6398
- readonly [x: string]: unknown;
6399
- } | undefined;
6400
- readonly source?: {
6401
- readonly type: "tool";
6402
- readonly messageID: string;
6403
- readonly id: string;
6404
- } | undefined;
6405
- readonly message?: string | undefined;
6406
- readonly id: string & import("effect/Brand").Brand<"Permission.ID">;
6393
+ readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
6394
+ readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
6407
6395
  };
6408
6396
  } | {
6409
6397
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6411,30 +6399,54 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6411
6399
  readonly metadata?: {
6412
6400
  readonly [x: string]: unknown;
6413
6401
  } | undefined;
6414
- readonly type: "permission.replied";
6402
+ readonly type: "credential.updated";
6415
6403
  readonly location?: {
6416
6404
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6417
6405
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6418
6406
  } | undefined;
6419
- readonly data: {
6420
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6421
- readonly requestID: string & import("effect/Brand").Brand<"Permission.ID">;
6422
- readonly reply: "always" | "once" | "reject";
6423
- };
6407
+ readonly data: {};
6424
6408
  } | {
6425
6409
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6426
6410
  readonly created: number;
6427
6411
  readonly metadata?: {
6428
6412
  readonly [x: string]: unknown;
6429
6413
  } | undefined;
6430
- readonly type: "filesystem.changed";
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">;
6419
+ };
6431
6420
  readonly location?: {
6432
6421
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6433
6422
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6434
6423
  } | undefined;
6435
6424
  readonly data: {
6436
- readonly file: string;
6437
- readonly event: "add" | "change" | "unlink";
6425
+ 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;
6430
+ };
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;
6438
6450
  };
6439
6451
  } | {
6440
6452
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6442,7 +6454,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6442
6454
  readonly metadata?: {
6443
6455
  readonly [x: string]: unknown;
6444
6456
  } | undefined;
6445
- readonly type: "worktree.resolved";
6457
+ readonly type: "session.agent.selected";
6446
6458
  readonly durable: {
6447
6459
  readonly aggregateID: string;
6448
6460
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6453,10 +6465,9 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6453
6465
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6454
6466
  } | undefined;
6455
6467
  readonly data: {
6456
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
6457
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6458
- readonly previous: string & import("effect/Brand").Brand<"Project.ID">;
6459
- readonly adopted?: readonly (string & import("effect/Brand").Brand<"Project.ID">)[] | undefined;
6468
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6469
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
6470
+ readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
6460
6471
  };
6461
6472
  } | {
6462
6473
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6464,13 +6475,28 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6464
6475
  readonly metadata?: {
6465
6476
  readonly [x: string]: unknown;
6466
6477
  } | undefined;
6467
- readonly type: "worktree.updated";
6478
+ readonly type: "session.model.selected";
6479
+ readonly durable: {
6480
+ readonly aggregateID: string;
6481
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6482
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6483
+ };
6468
6484
  readonly location?: {
6469
6485
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6470
6486
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6471
6487
  } | undefined;
6472
6488
  readonly data: {
6473
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
6489
+ 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;
6474
6500
  };
6475
6501
  } | {
6476
6502
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6478,13 +6504,24 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6478
6504
  readonly metadata?: {
6479
6505
  readonly [x: string]: unknown;
6480
6506
  } | undefined;
6481
- readonly type: "installation.update-available";
6507
+ readonly type: "session.moved";
6508
+ readonly durable: {
6509
+ readonly aggregateID: string;
6510
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6511
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6512
+ };
6482
6513
  readonly location?: {
6483
6514
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6484
6515
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6485
6516
  } | undefined;
6486
6517
  readonly data: {
6487
- readonly version: string;
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
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6488
6525
  };
6489
6526
  } | {
6490
6527
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6492,13 +6529,19 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6492
6529
  readonly metadata?: {
6493
6530
  readonly [x: string]: unknown;
6494
6531
  } | undefined;
6495
- readonly type: "installation.updated";
6532
+ readonly type: "session.renamed";
6533
+ readonly durable: {
6534
+ readonly aggregateID: string;
6535
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6536
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6537
+ };
6496
6538
  readonly location?: {
6497
6539
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6498
6540
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6499
6541
  } | undefined;
6500
6542
  readonly data: {
6501
- readonly version: string;
6543
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6544
+ readonly title: string;
6502
6545
  };
6503
6546
  } | {
6504
6547
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6506,37 +6549,21 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6506
6549
  readonly metadata?: {
6507
6550
  readonly [x: string]: unknown;
6508
6551
  } | undefined;
6509
- readonly type: "models-dev.refreshed";
6510
- readonly location?: {
6511
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6512
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6513
- } | undefined;
6514
- readonly data: {};
6515
- } | {
6516
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6517
- readonly created: number;
6518
- readonly metadata?: {
6519
- readonly [x: string]: unknown;
6520
- } | undefined;
6521
- readonly type: "reference.updated";
6522
- readonly location?: {
6523
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6524
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6525
- } | undefined;
6526
- readonly data: {};
6527
- } | {
6528
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6529
- readonly created: number;
6530
- readonly metadata?: {
6531
- readonly [x: string]: unknown;
6532
- } | undefined;
6533
- readonly type: "vcs.branch.updated";
6552
+ readonly type: "session.metadata.updated";
6553
+ readonly durable: {
6554
+ readonly aggregateID: string;
6555
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6556
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6557
+ };
6534
6558
  readonly location?: {
6535
6559
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6536
6560
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6537
6561
  } | undefined;
6538
6562
  readonly data: {
6539
- readonly branch?: string | undefined;
6563
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6564
+ readonly metadata: {
6565
+ readonly [x: string]: import("effect/Schema").Json;
6566
+ };
6540
6567
  };
6541
6568
  } | {
6542
6569
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6544,39 +6571,43 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6544
6571
  readonly metadata?: {
6545
6572
  readonly [x: string]: unknown;
6546
6573
  } | undefined;
6547
- readonly type: `rpc.${string}`;
6548
- readonly location: {
6549
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6550
- };
6551
- readonly data: {
6552
- readonly [x: string]: unknown;
6574
+ readonly type: "session.permissions";
6575
+ readonly durable: {
6576
+ readonly aggregateID: string;
6577
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6578
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6553
6579
  };
6554
- } | {
6555
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6556
- readonly created: number;
6557
- readonly metadata?: {
6558
- readonly [x: string]: unknown;
6559
- } | undefined;
6560
- readonly type: "location.shutdown";
6561
6580
  readonly location?: {
6562
6581
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6563
6582
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6564
6583
  } | undefined;
6565
- readonly data: {};
6584
+ readonly data: {
6585
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6586
+ readonly permissions: readonly {
6587
+ readonly action: string;
6588
+ readonly resource: string;
6589
+ readonly effect: "allow" | "ask" | "deny";
6590
+ }[];
6591
+ };
6566
6592
  } | {
6567
6593
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6568
6594
  readonly created: number;
6569
6595
  readonly metadata?: {
6570
6596
  readonly [x: string]: unknown;
6571
6597
  } | undefined;
6572
- readonly type: "credential.switched";
6598
+ readonly type: "session.viewed";
6599
+ readonly durable: {
6600
+ readonly aggregateID: string;
6601
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6602
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6603
+ };
6573
6604
  readonly location?: {
6574
6605
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6575
6606
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6576
6607
  } | undefined;
6577
6608
  readonly data: {
6578
- readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
6579
- readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
6609
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6610
+ readonly idle: number;
6580
6611
  };
6581
6612
  } | {
6582
6613
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6584,55 +6615,88 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6584
6615
  readonly metadata?: {
6585
6616
  readonly [x: string]: unknown;
6586
6617
  } | undefined;
6587
- readonly type: "credential.updated";
6618
+ readonly type: "session.archived";
6619
+ readonly durable: {
6620
+ readonly aggregateID: string;
6621
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6622
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6623
+ };
6588
6624
  readonly location?: {
6589
6625
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6590
6626
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6591
6627
  } | undefined;
6592
- readonly data: {};
6628
+ readonly data: {
6629
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6630
+ };
6593
6631
  } | {
6594
6632
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6595
6633
  readonly created: number;
6596
6634
  readonly metadata?: {
6597
6635
  readonly [x: string]: unknown;
6598
6636
  } | undefined;
6599
- readonly type: "integration.updated";
6637
+ readonly type: "session.unarchived";
6638
+ readonly durable: {
6639
+ readonly aggregateID: string;
6640
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6641
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6642
+ };
6600
6643
  readonly location?: {
6601
6644
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6602
6645
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6603
6646
  } | undefined;
6604
- readonly data: {};
6647
+ readonly data: {
6648
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6649
+ };
6605
6650
  } | {
6606
6651
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6607
6652
  readonly created: number;
6608
6653
  readonly metadata?: {
6609
6654
  readonly [x: string]: unknown;
6610
6655
  } | undefined;
6611
- readonly type: "model.updated";
6656
+ readonly type: "session.usage.updated";
6612
6657
  readonly location?: {
6613
6658
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6614
6659
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6615
6660
  } | undefined;
6616
- readonly data: {};
6661
+ readonly data: {
6662
+ 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
+ };
6617
6674
  } | {
6618
6675
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6619
6676
  readonly created: number;
6620
6677
  readonly metadata?: {
6621
6678
  readonly [x: string]: unknown;
6622
6679
  } | undefined;
6623
- readonly type: "agent.updated";
6680
+ readonly type: "session.deleted";
6681
+ readonly durable: {
6682
+ readonly aggregateID: string;
6683
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6684
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6685
+ };
6624
6686
  readonly location?: {
6625
6687
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6626
6688
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6627
6689
  } | undefined;
6628
- readonly data: {};
6690
+ readonly data: {
6691
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6692
+ };
6629
6693
  } | {
6630
6694
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6631
6695
  readonly created: number;
6632
6696
  readonly metadata?: {
6633
6697
  readonly [x: string]: unknown;
6634
6698
  } | undefined;
6635
- readonly type: "session.agent.selected";
6699
+ readonly type: "session.forked";
6636
6700
  readonly durable: {
6637
6701
  readonly aggregateID: string;
6638
6702
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6644,8 +6708,22 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6644
6708
  } | undefined;
6645
6709
  readonly data: {
6646
6710
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6647
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
6648
- readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
6711
+ readonly parentID: string & import("effect/Brand").Brand<"SessionID">;
6712
+ readonly boundary: {
6713
+ readonly type: "before";
6714
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6715
+ } | {
6716
+ readonly type: "through";
6717
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6718
+ };
6719
+ readonly instructions?: {
6720
+ readonly [x: string & import("effect/Brand").Brand<"Instruction.Key">]: string & import("effect/Brand").Brand<"Instruction.Hash">;
6721
+ } | undefined;
6722
+ readonly instructionEntries?: readonly {
6723
+ readonly key: string;
6724
+ readonly value: import("effect/Schema").Json;
6725
+ readonly removed: boolean;
6726
+ }[] | undefined;
6649
6727
  };
6650
6728
  } | {
6651
6729
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6653,7 +6731,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6653
6731
  readonly metadata?: {
6654
6732
  readonly [x: string]: unknown;
6655
6733
  } | undefined;
6656
- readonly type: "session.archived";
6734
+ readonly type: "session.inbox.delivered";
6657
6735
  readonly durable: {
6658
6736
  readonly aggregateID: string;
6659
6737
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6665,6 +6743,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6665
6743
  } | undefined;
6666
6744
  readonly data: {
6667
6745
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6746
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6668
6747
  };
6669
6748
  } | {
6670
6749
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6672,7 +6751,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6672
6751
  readonly metadata?: {
6673
6752
  readonly [x: string]: unknown;
6674
6753
  } | undefined;
6675
- readonly type: "session.compaction.ended";
6754
+ readonly type: "session.inbox.enqueued";
6676
6755
  readonly durable: {
6677
6756
  readonly aggregateID: string;
6678
6757
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6684,26 +6763,77 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6684
6763
  } | undefined;
6685
6764
  readonly data: {
6686
6765
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6687
- readonly reason: "auto" | "manual";
6688
- readonly model?: {
6689
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6690
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6691
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6692
- } | undefined;
6693
- readonly native?: {
6694
- readonly [x: string]: unknown;
6695
- } | undefined;
6696
- readonly text: string;
6697
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
6698
- readonly tokens?: {
6699
- readonly input: number;
6700
- readonly output: number;
6701
- readonly reasoning: number;
6702
- readonly cache: {
6703
- readonly read: number;
6704
- readonly write: number;
6766
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6767
+ readonly item: {
6768
+ readonly type: "user";
6769
+ readonly payload: {
6770
+ readonly text: string;
6771
+ readonly files?: readonly {
6772
+ readonly data: string;
6773
+ readonly mime: string;
6774
+ readonly source: {
6775
+ readonly type: "inline";
6776
+ } | {
6777
+ readonly type: "uri";
6778
+ readonly uri: string;
6779
+ };
6780
+ readonly name?: string | undefined;
6781
+ readonly description?: string | undefined;
6782
+ readonly mention?: {
6783
+ readonly start: number;
6784
+ readonly end: number;
6785
+ readonly text: string;
6786
+ } | undefined;
6787
+ }[] | undefined;
6788
+ readonly agents?: readonly {
6789
+ readonly name: string;
6790
+ readonly mention?: {
6791
+ readonly start: number;
6792
+ readonly end: number;
6793
+ readonly text: string;
6794
+ } | undefined;
6795
+ }[] | undefined;
6796
+ readonly skills?: readonly {
6797
+ readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
6798
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
6799
+ readonly text?: string | undefined;
6800
+ readonly mention?: {
6801
+ readonly start: number;
6802
+ readonly end: number;
6803
+ readonly text: string;
6804
+ } | undefined;
6805
+ }[] | undefined;
6806
+ readonly metadata?: {
6807
+ readonly [x: string]: unknown;
6808
+ } | undefined;
6809
+ };
6810
+ readonly delivery: "queue" | "steer";
6811
+ } | {
6812
+ readonly type: "synthetic";
6813
+ readonly payload: {
6814
+ readonly text: string;
6815
+ readonly description?: string | undefined;
6816
+ readonly metadata?: {
6817
+ readonly [x: string]: unknown;
6818
+ } | undefined;
6705
6819
  };
6706
- } | undefined;
6820
+ readonly delivery: "queue" | "steer";
6821
+ } | {
6822
+ readonly type: "compaction";
6823
+ readonly payload: {};
6824
+ readonly delivery: "queue" | "steer";
6825
+ } | {
6826
+ readonly type: "move";
6827
+ readonly payload: {
6828
+ readonly location: {
6829
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6830
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6831
+ };
6832
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
6833
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
6834
+ };
6835
+ readonly delivery: "queue" | "steer";
6836
+ };
6707
6837
  };
6708
6838
  } | {
6709
6839
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6711,7 +6841,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6711
6841
  readonly metadata?: {
6712
6842
  readonly [x: string]: unknown;
6713
6843
  } | undefined;
6714
- readonly type: "session.compaction.failed";
6844
+ readonly type: "session.inbox.cancelled";
6715
6845
  readonly durable: {
6716
6846
  readonly aggregateID: string;
6717
6847
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6723,27 +6853,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6723
6853
  } | undefined;
6724
6854
  readonly data: {
6725
6855
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6726
- readonly reason: "auto" | "manual";
6727
- readonly error: {
6728
- readonly type: string;
6729
- readonly message: string;
6730
- readonly status?: number | undefined;
6731
- readonly response?: {
6732
- readonly body: string;
6733
- } | undefined;
6734
- readonly retryAfterMs?: number | undefined;
6735
- };
6736
- readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
6737
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
6738
- readonly tokens?: {
6739
- readonly input: number;
6740
- readonly output: number;
6741
- readonly reasoning: number;
6742
- readonly cache: {
6743
- readonly read: number;
6744
- readonly write: number;
6745
- };
6746
- } | undefined;
6856
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6747
6857
  };
6748
6858
  } | {
6749
6859
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6751,7 +6861,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6751
6861
  readonly metadata?: {
6752
6862
  readonly [x: string]: unknown;
6753
6863
  } | undefined;
6754
- readonly type: "session.compaction.started";
6864
+ readonly type: "session.inbox.delivery.changed";
6755
6865
  readonly durable: {
6756
6866
  readonly aggregateID: string;
6757
6867
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6763,8 +6873,8 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6763
6873
  } | undefined;
6764
6874
  readonly data: {
6765
6875
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6766
- readonly reason: "auto" | "manual";
6767
- readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
6876
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6877
+ readonly delivery: "queue" | "steer";
6768
6878
  };
6769
6879
  } | {
6770
6880
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6772,7 +6882,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6772
6882
  readonly metadata?: {
6773
6883
  readonly [x: string]: unknown;
6774
6884
  } | undefined;
6775
- readonly type: "session.created";
6885
+ readonly type: "session.execution.started";
6776
6886
  readonly durable: {
6777
6887
  readonly aggregateID: string;
6778
6888
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6784,30 +6894,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6784
6894
  } | undefined;
6785
6895
  readonly data: {
6786
6896
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6787
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
6788
- readonly location: {
6789
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6790
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6791
- };
6792
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
6793
- readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
6794
- readonly slug: string;
6795
- readonly title?: string | undefined;
6796
- readonly agent?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
6797
- readonly model?: {
6798
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6799
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6800
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6801
- } | undefined;
6802
- readonly metadata?: {
6803
- readonly [x: string]: import("effect/Schema").Json;
6804
- } | undefined;
6805
- readonly permissions?: readonly {
6806
- readonly action: string;
6807
- readonly resource: string;
6808
- readonly effect: "allow" | "ask" | "deny";
6809
- }[] | undefined;
6810
- readonly version: string;
6811
6897
  };
6812
6898
  } | {
6813
6899
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6815,7 +6901,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6815
6901
  readonly metadata?: {
6816
6902
  readonly [x: string]: unknown;
6817
6903
  } | undefined;
6818
- readonly type: "session.deleted";
6904
+ readonly type: "session.execution.succeeded";
6819
6905
  readonly durable: {
6820
6906
  readonly aggregateID: string;
6821
6907
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6882,26 +6968,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6882
6968
  readonly metadata?: {
6883
6969
  readonly [x: string]: unknown;
6884
6970
  } | undefined;
6885
- readonly type: "session.execution.started";
6886
- readonly durable: {
6887
- readonly aggregateID: string;
6888
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6889
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6890
- };
6891
- readonly location?: {
6892
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6893
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6894
- } | undefined;
6895
- readonly data: {
6896
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6897
- };
6898
- } | {
6899
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6900
- readonly created: number;
6901
- readonly metadata?: {
6902
- readonly [x: string]: unknown;
6903
- } | undefined;
6904
- readonly type: "session.execution.succeeded";
6971
+ readonly type: "session.instructions.updated";
6905
6972
  readonly durable: {
6906
6973
  readonly aggregateID: string;
6907
6974
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6913,6 +6980,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6913
6980
  } | undefined;
6914
6981
  readonly data: {
6915
6982
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6983
+ readonly delta: {
6984
+ readonly [x: string]: "removed" | (string & import("effect/Brand").Brand<"Instruction.Hash">);
6985
+ };
6986
+ readonly text?: string | undefined;
6916
6987
  };
6917
6988
  } | {
6918
6989
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6920,7 +6991,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6920
6991
  readonly metadata?: {
6921
6992
  readonly [x: string]: unknown;
6922
6993
  } | undefined;
6923
- readonly type: "session.forked";
6994
+ readonly type: "session.synthetic";
6924
6995
  readonly durable: {
6925
6996
  readonly aggregateID: string;
6926
6997
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6932,22 +7003,11 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6932
7003
  } | undefined;
6933
7004
  readonly data: {
6934
7005
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6935
- readonly parentID: string & import("effect/Brand").Brand<"SessionID">;
6936
- readonly boundary: {
6937
- readonly type: "before";
6938
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6939
- } | {
6940
- readonly type: "through";
6941
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6942
- };
6943
- readonly instructions?: {
6944
- readonly [x: string & import("effect/Brand").Brand<"Instruction.Key">]: string & import("effect/Brand").Brand<"Instruction.Hash">;
7006
+ readonly text: string;
7007
+ readonly description?: string | undefined;
7008
+ readonly metadata?: {
7009
+ readonly [x: string]: unknown;
6945
7010
  } | undefined;
6946
- readonly instructionEntries?: readonly {
6947
- readonly key: string;
6948
- readonly value: import("effect/Schema").Json;
6949
- readonly removed: boolean;
6950
- }[] | undefined;
6951
7011
  };
6952
7012
  } | {
6953
7013
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6955,7 +7015,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6955
7015
  readonly metadata?: {
6956
7016
  readonly [x: string]: unknown;
6957
7017
  } | undefined;
6958
- readonly type: "session.inbox.cancelled";
7018
+ readonly type: "session.skill.activated";
6959
7019
  readonly durable: {
6960
7020
  readonly aggregateID: string;
6961
7021
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6967,7 +7027,9 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6967
7027
  } | undefined;
6968
7028
  readonly data: {
6969
7029
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6970
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7030
+ readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
7031
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
7032
+ readonly text: string;
6971
7033
  };
6972
7034
  } | {
6973
7035
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6975,7 +7037,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6975
7037
  readonly metadata?: {
6976
7038
  readonly [x: string]: unknown;
6977
7039
  } | undefined;
6978
- readonly type: "session.inbox.delivered";
7040
+ readonly type: "session.shell.started";
6979
7041
  readonly durable: {
6980
7042
  readonly aggregateID: string;
6981
7043
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6987,7 +7049,24 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6987
7049
  } | undefined;
6988
7050
  readonly data: {
6989
7051
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6990
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
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
+ };
7069
+ };
6991
7070
  };
6992
7071
  } | {
6993
7072
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6995,7 +7074,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6995
7074
  readonly metadata?: {
6996
7075
  readonly [x: string]: unknown;
6997
7076
  } | undefined;
6998
- readonly type: "session.inbox.delivery.changed";
7077
+ readonly type: "session.shell.ended";
6999
7078
  readonly durable: {
7000
7079
  readonly aggregateID: string;
7001
7080
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7007,8 +7086,30 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7007
7086
  } | undefined;
7008
7087
  readonly data: {
7009
7088
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7010
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7011
- readonly delivery: "queue" | "steer";
7089
+ readonly shell: {
7090
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
7091
+ readonly status: "exited" | "killed" | "running" | "timeout";
7092
+ readonly command: string;
7093
+ readonly cwd: string;
7094
+ readonly shell: string;
7095
+ readonly file: string;
7096
+ readonly pid?: number | undefined;
7097
+ readonly exit?: number | undefined;
7098
+ readonly signal?: string | undefined;
7099
+ readonly metadata: {
7100
+ readonly [x: string]: unknown;
7101
+ };
7102
+ readonly time: {
7103
+ readonly started: number;
7104
+ readonly completed?: number | undefined;
7105
+ };
7106
+ };
7107
+ readonly output: {
7108
+ readonly output: string;
7109
+ readonly cursor: number;
7110
+ readonly size: number;
7111
+ readonly truncated: boolean;
7112
+ };
7012
7113
  };
7013
7114
  } | {
7014
7115
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7016,7 +7117,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7016
7117
  readonly metadata?: {
7017
7118
  readonly [x: string]: unknown;
7018
7119
  } | undefined;
7019
- readonly type: "session.inbox.enqueued";
7120
+ readonly type: "session.step.started";
7020
7121
  readonly durable: {
7021
7122
  readonly aggregateID: string;
7022
7123
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7028,77 +7129,15 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7028
7129
  } | undefined;
7029
7130
  readonly data: {
7030
7131
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7031
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7032
- readonly item: {
7033
- readonly type: "user";
7034
- readonly payload: {
7035
- readonly text: string;
7036
- readonly files?: readonly {
7037
- readonly data: string;
7038
- readonly mime: string;
7039
- readonly source: {
7040
- readonly type: "inline";
7041
- } | {
7042
- readonly type: "uri";
7043
- readonly uri: string;
7044
- };
7045
- readonly name?: string | undefined;
7046
- readonly description?: string | undefined;
7047
- readonly mention?: {
7048
- readonly start: number;
7049
- readonly end: number;
7050
- readonly text: string;
7051
- } | undefined;
7052
- }[] | undefined;
7053
- readonly agents?: readonly {
7054
- readonly name: string;
7055
- readonly mention?: {
7056
- readonly start: number;
7057
- readonly end: number;
7058
- readonly text: string;
7059
- } | undefined;
7060
- }[] | undefined;
7061
- readonly skills?: readonly {
7062
- readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
7063
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
7064
- readonly text?: string | undefined;
7065
- readonly mention?: {
7066
- readonly start: number;
7067
- readonly end: number;
7068
- readonly text: string;
7069
- } | undefined;
7070
- }[] | undefined;
7071
- readonly metadata?: {
7072
- readonly [x: string]: unknown;
7073
- } | undefined;
7074
- };
7075
- readonly delivery: "queue" | "steer";
7076
- } | {
7077
- readonly type: "synthetic";
7078
- readonly payload: {
7079
- readonly text: string;
7080
- readonly description?: string | undefined;
7081
- readonly metadata?: {
7082
- readonly [x: string]: unknown;
7083
- } | undefined;
7084
- };
7085
- readonly delivery: "queue" | "steer";
7086
- } | {
7087
- readonly type: "compaction";
7088
- readonly payload: {};
7089
- readonly delivery: "queue" | "steer";
7090
- } | {
7091
- readonly type: "move";
7092
- readonly payload: {
7093
- readonly location: {
7094
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7095
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7096
- };
7097
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
7098
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
7099
- };
7100
- readonly delivery: "queue" | "steer";
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;
7101
7138
  };
7139
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7140
+ readonly started: number;
7102
7141
  };
7103
7142
  } | {
7104
7143
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7106,7 +7145,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7106
7145
  readonly metadata?: {
7107
7146
  readonly [x: string]: unknown;
7108
7147
  } | undefined;
7109
- readonly type: "session.instructions.updated";
7148
+ readonly type: "session.step.streamed";
7110
7149
  readonly durable: {
7111
7150
  readonly aggregateID: string;
7112
7151
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7118,10 +7157,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7118
7157
  } | undefined;
7119
7158
  readonly data: {
7120
7159
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7121
- readonly delta: {
7122
- readonly [x: string]: "removed" | (string & import("effect/Brand").Brand<"Instruction.Hash">);
7123
- };
7124
- readonly text?: string | undefined;
7160
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7125
7161
  };
7126
7162
  } | {
7127
7163
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7129,7 +7165,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7129
7165
  readonly metadata?: {
7130
7166
  readonly [x: string]: unknown;
7131
7167
  } | undefined;
7132
- readonly type: "session.metadata.updated";
7168
+ readonly type: "session.step.ended";
7133
7169
  readonly durable: {
7134
7170
  readonly aggregateID: string;
7135
7171
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7141,9 +7177,24 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7141
7177
  } | undefined;
7142
7178
  readonly data: {
7143
7179
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7144
- readonly metadata: {
7145
- readonly [x: string]: import("effect/Schema").Json;
7180
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7181
+ readonly finish: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown";
7182
+ readonly rawFinish?: string | undefined;
7183
+ readonly native?: {
7184
+ readonly [x: string]: unknown;
7185
+ } | undefined;
7186
+ readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
7187
+ readonly tokens: {
7188
+ readonly input: number;
7189
+ readonly output: number;
7190
+ readonly reasoning: number;
7191
+ readonly cache: {
7192
+ readonly read: number;
7193
+ readonly write: number;
7194
+ };
7146
7195
  };
7196
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7197
+ readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
7147
7198
  };
7148
7199
  } | {
7149
7200
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7151,7 +7202,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7151
7202
  readonly metadata?: {
7152
7203
  readonly [x: string]: unknown;
7153
7204
  } | undefined;
7154
- readonly type: "session.model.selected";
7205
+ readonly type: "session.step.failed";
7155
7206
  readonly durable: {
7156
7207
  readonly aggregateID: string;
7157
7208
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7163,16 +7214,33 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7163
7214
  } | undefined;
7164
7215
  readonly data: {
7165
7216
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7166
- readonly model: {
7167
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7168
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7169
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7217
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7218
+ readonly error: {
7219
+ readonly type: string;
7220
+ readonly message: string;
7221
+ readonly status?: number | undefined;
7222
+ readonly response?: {
7223
+ readonly body: string;
7224
+ } | undefined;
7225
+ readonly retryAfterMs?: number | undefined;
7170
7226
  };
7171
- readonly previous?: {
7172
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7173
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7174
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7227
+ readonly finish?: "content-filter" | undefined;
7228
+ readonly rawFinish?: string | undefined;
7229
+ readonly native?: {
7230
+ readonly [x: string]: unknown;
7231
+ } | undefined;
7232
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
7233
+ readonly tokens?: {
7234
+ readonly input: number;
7235
+ readonly output: number;
7236
+ readonly reasoning: number;
7237
+ readonly cache: {
7238
+ readonly read: number;
7239
+ readonly write: number;
7240
+ };
7175
7241
  } | undefined;
7242
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7243
+ readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
7176
7244
  };
7177
7245
  } | {
7178
7246
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7180,7 +7248,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7180
7248
  readonly metadata?: {
7181
7249
  readonly [x: string]: unknown;
7182
7250
  } | undefined;
7183
- readonly type: "session.moved";
7251
+ readonly type: "session.text.started";
7184
7252
  readonly durable: {
7185
7253
  readonly aggregateID: string;
7186
7254
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7191,13 +7259,9 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7191
7259
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7192
7260
  } | undefined;
7193
7261
  readonly data: {
7194
- readonly location: {
7195
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7196
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7197
- };
7198
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
7199
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
7200
7262
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7263
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7264
+ readonly ordinal: number;
7201
7265
  };
7202
7266
  } | {
7203
7267
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7205,7 +7269,24 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7205
7269
  readonly metadata?: {
7206
7270
  readonly [x: string]: unknown;
7207
7271
  } | undefined;
7208
- readonly type: "session.permissions";
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";
7209
7290
  readonly durable: {
7210
7291
  readonly aggregateID: string;
7211
7292
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7217,11 +7298,12 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7217
7298
  } | undefined;
7218
7299
  readonly data: {
7219
7300
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7220
- readonly permissions: readonly {
7221
- readonly action: string;
7222
- readonly resource: string;
7223
- readonly effect: "allow" | "ask" | "deny";
7224
- }[];
7301
+ 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;
7225
7307
  };
7226
7308
  } | {
7227
7309
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7229,7 +7311,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7229
7311
  readonly metadata?: {
7230
7312
  readonly [x: string]: unknown;
7231
7313
  } | undefined;
7232
- readonly type: "session.reasoning.ended";
7314
+ readonly type: "session.reasoning.started";
7233
7315
  readonly durable: {
7234
7316
  readonly aggregateID: string;
7235
7317
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7243,7 +7325,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7243
7325
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7244
7326
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7245
7327
  readonly ordinal: number;
7246
- readonly text: string;
7247
7328
  readonly native?: {
7248
7329
  readonly [x: string]: unknown;
7249
7330
  } | undefined;
@@ -7254,7 +7335,24 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7254
7335
  readonly metadata?: {
7255
7336
  readonly [x: string]: unknown;
7256
7337
  } | undefined;
7257
- readonly type: "session.reasoning.started";
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
+ };
7349
+ } | {
7350
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7351
+ readonly created: number;
7352
+ readonly metadata?: {
7353
+ readonly [x: string]: unknown;
7354
+ } | undefined;
7355
+ readonly type: "session.reasoning.ended";
7258
7356
  readonly durable: {
7259
7357
  readonly aggregateID: string;
7260
7358
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7268,6 +7366,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7268
7366
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7269
7367
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7270
7368
  readonly ordinal: number;
7369
+ readonly text: string;
7271
7370
  readonly native?: {
7272
7371
  readonly [x: string]: unknown;
7273
7372
  } | undefined;
@@ -7278,7 +7377,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7278
7377
  readonly metadata?: {
7279
7378
  readonly [x: string]: unknown;
7280
7379
  } | undefined;
7281
- readonly type: "session.renamed";
7380
+ readonly type: "session.tool.input.started";
7282
7381
  readonly durable: {
7283
7382
  readonly aggregateID: string;
7284
7383
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7290,7 +7389,9 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7290
7389
  } | undefined;
7291
7390
  readonly data: {
7292
7391
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7293
- readonly title: string;
7392
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7393
+ readonly id: string;
7394
+ readonly name: string;
7294
7395
  };
7295
7396
  } | {
7296
7397
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7298,7 +7399,24 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7298
7399
  readonly metadata?: {
7299
7400
  readonly [x: string]: unknown;
7300
7401
  } | undefined;
7301
- readonly type: "session.retry.scheduled";
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";
7302
7420
  readonly durable: {
7303
7421
  readonly aggregateID: string;
7304
7422
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7311,17 +7429,8 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7311
7429
  readonly data: {
7312
7430
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7313
7431
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7314
- readonly attempt: number;
7315
- readonly at: number;
7316
- readonly error: {
7317
- readonly type: string;
7318
- readonly message: string;
7319
- readonly status?: number | undefined;
7320
- readonly response?: {
7321
- readonly body: string;
7322
- } | undefined;
7323
- readonly retryAfterMs?: number | undefined;
7324
- };
7432
+ readonly id: string;
7433
+ readonly text: string;
7325
7434
  };
7326
7435
  } | {
7327
7436
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7329,7 +7438,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7329
7438
  readonly metadata?: {
7330
7439
  readonly [x: string]: unknown;
7331
7440
  } | undefined;
7332
- readonly type: "session.revert.cleared";
7441
+ readonly type: "session.tool.called";
7333
7442
  readonly durable: {
7334
7443
  readonly aggregateID: string;
7335
7444
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7341,6 +7450,15 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7341
7450
  } | undefined;
7342
7451
  readonly data: {
7343
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;
7459
+ readonly native?: {
7460
+ readonly [x: string]: unknown;
7461
+ } | undefined;
7344
7462
  };
7345
7463
  } | {
7346
7464
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7348,7 +7466,26 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7348
7466
  readonly metadata?: {
7349
7467
  readonly [x: string]: unknown;
7350
7468
  } | undefined;
7351
- readonly type: "session.revert.committed";
7469
+ readonly type: "session.tool.progress";
7470
+ readonly location?: {
7471
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7472
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7473
+ } | undefined;
7474
+ readonly data: {
7475
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7476
+ 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
+ };
7481
+ };
7482
+ } | {
7483
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7484
+ readonly created: number;
7485
+ readonly metadata?: {
7486
+ readonly [x: string]: unknown;
7487
+ } | undefined;
7488
+ readonly type: "session.tool.success";
7352
7489
  readonly durable: {
7353
7490
  readonly aggregateID: string;
7354
7491
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7360,7 +7497,32 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7360
7497
  } | undefined;
7361
7498
  readonly data: {
7362
7499
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7363
- readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
7500
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7501
+ 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;
7522
+ readonly executed: boolean;
7523
+ readonly native?: {
7524
+ readonly [x: string]: unknown;
7525
+ } | undefined;
7364
7526
  };
7365
7527
  } | {
7366
7528
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7368,7 +7530,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7368
7530
  readonly metadata?: {
7369
7531
  readonly [x: string]: unknown;
7370
7532
  } | undefined;
7371
- readonly type: "session.revert.staged";
7533
+ readonly type: "session.tool.failed";
7372
7534
  readonly durable: {
7373
7535
  readonly aggregateID: string;
7374
7536
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7380,18 +7542,41 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7380
7542
  } | undefined;
7381
7543
  readonly data: {
7382
7544
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7383
- readonly revert: {
7384
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7385
- readonly partID?: string | undefined;
7386
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7387
- readonly files?: readonly {
7388
- readonly file: string;
7389
- readonly patch: string;
7390
- readonly additions: number;
7391
- readonly deletions: number;
7392
- readonly status: "added" | "deleted" | "modified";
7393
- }[] | undefined;
7545
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7546
+ readonly id: string;
7547
+ readonly error: {
7548
+ readonly type: string;
7549
+ readonly message: string;
7550
+ readonly status?: number | undefined;
7551
+ readonly response?: {
7552
+ readonly body: string;
7553
+ } | undefined;
7554
+ readonly retryAfterMs?: number | undefined;
7394
7555
  };
7556
+ readonly content?: readonly [{
7557
+ readonly type: "text";
7558
+ readonly text: string;
7559
+ } | {
7560
+ readonly type: "file";
7561
+ readonly uri: string;
7562
+ readonly mime: string;
7563
+ readonly name?: string | undefined;
7564
+ }, ...({
7565
+ readonly type: "text";
7566
+ readonly text: string;
7567
+ } | {
7568
+ readonly type: "file";
7569
+ readonly uri: string;
7570
+ readonly mime: string;
7571
+ readonly name?: string | undefined;
7572
+ })[]] | undefined;
7573
+ readonly metadata?: {
7574
+ readonly [x: string]: import("effect/Schema").Json;
7575
+ } | undefined;
7576
+ readonly executed: boolean;
7577
+ readonly native?: {
7578
+ readonly [x: string]: unknown;
7579
+ } | undefined;
7395
7580
  };
7396
7581
  } | {
7397
7582
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7399,7 +7584,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7399
7584
  readonly metadata?: {
7400
7585
  readonly [x: string]: unknown;
7401
7586
  } | undefined;
7402
- readonly type: "session.shell.ended";
7587
+ readonly type: "session.retry.scheduled";
7403
7588
  readonly durable: {
7404
7589
  readonly aggregateID: string;
7405
7590
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7411,29 +7596,17 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7411
7596
  } | undefined;
7412
7597
  readonly data: {
7413
7598
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7414
- readonly shell: {
7415
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
7416
- readonly status: "exited" | "killed" | "running" | "timeout";
7417
- readonly command: string;
7418
- readonly cwd: string;
7419
- readonly shell: string;
7420
- readonly file: string;
7421
- readonly pid?: number | undefined;
7422
- readonly exit?: number | undefined;
7423
- readonly signal?: string | undefined;
7424
- readonly metadata: {
7425
- readonly [x: string]: unknown;
7426
- };
7427
- readonly time: {
7428
- readonly started: number;
7429
- readonly completed?: number | undefined;
7430
- };
7431
- };
7432
- readonly output: {
7433
- readonly output: string;
7434
- readonly cursor: number;
7435
- readonly size: number;
7436
- readonly truncated: boolean;
7599
+ 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;
7437
7610
  };
7438
7611
  };
7439
7612
  } | {
@@ -7442,7 +7615,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7442
7615
  readonly metadata?: {
7443
7616
  readonly [x: string]: unknown;
7444
7617
  } | undefined;
7445
- readonly type: "session.shell.started";
7618
+ readonly type: "session.compaction.started";
7446
7619
  readonly durable: {
7447
7620
  readonly aggregateID: string;
7448
7621
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7454,24 +7627,8 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7454
7627
  } | undefined;
7455
7628
  readonly data: {
7456
7629
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7457
- readonly shell: {
7458
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
7459
- readonly status: "exited" | "killed" | "running" | "timeout";
7460
- readonly command: string;
7461
- readonly cwd: string;
7462
- readonly shell: string;
7463
- readonly file: string;
7464
- readonly pid?: number | undefined;
7465
- readonly exit?: number | undefined;
7466
- readonly signal?: string | undefined;
7467
- readonly metadata: {
7468
- readonly [x: string]: unknown;
7469
- };
7470
- readonly time: {
7471
- readonly started: number;
7472
- readonly completed?: number | undefined;
7473
- };
7474
- };
7630
+ readonly reason: "auto" | "manual";
7631
+ readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
7475
7632
  };
7476
7633
  } | {
7477
7634
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7479,20 +7636,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7479
7636
  readonly metadata?: {
7480
7637
  readonly [x: string]: unknown;
7481
7638
  } | undefined;
7482
- readonly type: "session.skill.activated";
7483
- readonly durable: {
7484
- readonly aggregateID: string;
7485
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7486
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7487
- };
7639
+ readonly type: "session.compaction.delta";
7488
7640
  readonly location?: {
7489
7641
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7490
7642
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7491
7643
  } | undefined;
7492
7644
  readonly data: {
7493
7645
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7494
- readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
7495
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
7496
7646
  readonly text: string;
7497
7647
  };
7498
7648
  } | {
@@ -7501,7 +7651,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7501
7651
  readonly metadata?: {
7502
7652
  readonly [x: string]: unknown;
7503
7653
  } | undefined;
7504
- readonly type: "session.step.ended";
7654
+ readonly type: "session.compaction.ended";
7505
7655
  readonly durable: {
7506
7656
  readonly aggregateID: string;
7507
7657
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7513,14 +7663,18 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7513
7663
  } | undefined;
7514
7664
  readonly data: {
7515
7665
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7516
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7517
- readonly finish: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown";
7518
- readonly rawFinish?: string | undefined;
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;
7671
+ } | undefined;
7519
7672
  readonly native?: {
7520
7673
  readonly [x: string]: unknown;
7521
7674
  } | undefined;
7522
- readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
7523
- readonly tokens: {
7675
+ readonly text: string;
7676
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
7677
+ readonly tokens?: {
7524
7678
  readonly input: number;
7525
7679
  readonly output: number;
7526
7680
  readonly reasoning: number;
@@ -7528,9 +7682,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7528
7682
  readonly read: number;
7529
7683
  readonly write: number;
7530
7684
  };
7531
- };
7532
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7533
- readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
7685
+ } | undefined;
7534
7686
  };
7535
7687
  } | {
7536
7688
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7538,7 +7690,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7538
7690
  readonly metadata?: {
7539
7691
  readonly [x: string]: unknown;
7540
7692
  } | undefined;
7541
- readonly type: "session.step.failed";
7693
+ readonly type: "session.compaction.failed";
7542
7694
  readonly durable: {
7543
7695
  readonly aggregateID: string;
7544
7696
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7550,7 +7702,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7550
7702
  } | undefined;
7551
7703
  readonly data: {
7552
7704
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7553
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7705
+ readonly reason: "auto" | "manual";
7554
7706
  readonly error: {
7555
7707
  readonly type: string;
7556
7708
  readonly message: string;
@@ -7560,11 +7712,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7560
7712
  } | undefined;
7561
7713
  readonly retryAfterMs?: number | undefined;
7562
7714
  };
7563
- readonly finish?: "content-filter" | undefined;
7564
- readonly rawFinish?: string | undefined;
7565
- readonly native?: {
7566
- readonly [x: string]: unknown;
7567
- } | undefined;
7715
+ readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
7568
7716
  readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
7569
7717
  readonly tokens?: {
7570
7718
  readonly input: number;
@@ -7575,8 +7723,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7575
7723
  readonly write: number;
7576
7724
  };
7577
7725
  } | undefined;
7578
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7579
- readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
7580
7726
  };
7581
7727
  } | {
7582
7728
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7584,7 +7730,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7584
7730
  readonly metadata?: {
7585
7731
  readonly [x: string]: unknown;
7586
7732
  } | undefined;
7587
- readonly type: "session.step.started";
7733
+ readonly type: "session.revert.cleared";
7588
7734
  readonly durable: {
7589
7735
  readonly aggregateID: string;
7590
7736
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7596,15 +7742,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7596
7742
  } | undefined;
7597
7743
  readonly data: {
7598
7744
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7599
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7600
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
7601
- readonly model: {
7602
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7603
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7604
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7605
- };
7606
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7607
- readonly started: number;
7608
7745
  };
7609
7746
  } | {
7610
7747
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7612,7 +7749,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7612
7749
  readonly metadata?: {
7613
7750
  readonly [x: string]: unknown;
7614
7751
  } | undefined;
7615
- readonly type: "session.step.streamed";
7752
+ readonly type: "session.revert.committed";
7616
7753
  readonly durable: {
7617
7754
  readonly aggregateID: string;
7618
7755
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7624,7 +7761,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7624
7761
  } | undefined;
7625
7762
  readonly data: {
7626
7763
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7627
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7764
+ readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
7628
7765
  };
7629
7766
  } | {
7630
7767
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7632,7 +7769,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7632
7769
  readonly metadata?: {
7633
7770
  readonly [x: string]: unknown;
7634
7771
  } | undefined;
7635
- readonly type: "session.synthetic";
7772
+ readonly type: "session.revert.staged";
7636
7773
  readonly durable: {
7637
7774
  readonly aggregateID: string;
7638
7775
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7644,11 +7781,18 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7644
7781
  } | undefined;
7645
7782
  readonly data: {
7646
7783
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7647
- readonly text: string;
7648
- readonly description?: string | undefined;
7649
- readonly metadata?: {
7650
- readonly [x: string]: unknown;
7651
- } | undefined;
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
+ };
7652
7796
  };
7653
7797
  } | {
7654
7798
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7656,45 +7800,37 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7656
7800
  readonly metadata?: {
7657
7801
  readonly [x: string]: unknown;
7658
7802
  } | undefined;
7659
- readonly type: "session.text.ended";
7660
- readonly durable: {
7661
- readonly aggregateID: string;
7662
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7663
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7664
- };
7803
+ readonly type: "command.updated";
7665
7804
  readonly location?: {
7666
7805
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7667
7806
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7668
7807
  } | undefined;
7669
- readonly data: {
7670
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7671
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7672
- readonly ordinal: number;
7673
- readonly text: string;
7674
- readonly native?: {
7675
- readonly [x: string]: unknown;
7676
- } | undefined;
7677
- };
7808
+ readonly data: {};
7678
7809
  } | {
7679
7810
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7680
7811
  readonly created: number;
7681
7812
  readonly metadata?: {
7682
7813
  readonly [x: string]: unknown;
7683
7814
  } | undefined;
7684
- readonly type: "session.text.started";
7685
- readonly durable: {
7686
- readonly aggregateID: string;
7687
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7688
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7689
- };
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";
7690
7828
  readonly location?: {
7691
7829
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7692
7830
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7693
7831
  } | undefined;
7694
7832
  readonly data: {
7695
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7696
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7697
- readonly ordinal: number;
7833
+ readonly server: string;
7698
7834
  };
7699
7835
  } | {
7700
7836
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7702,27 +7838,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7702
7838
  readonly metadata?: {
7703
7839
  readonly [x: string]: unknown;
7704
7840
  } | undefined;
7705
- readonly type: "session.tool.called";
7706
- readonly durable: {
7707
- readonly aggregateID: string;
7708
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7709
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7710
- };
7841
+ readonly type: "mcp.status.changed";
7711
7842
  readonly location?: {
7712
7843
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7713
7844
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7714
7845
  } | undefined;
7715
7846
  readonly data: {
7716
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7717
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7718
- readonly id: string;
7719
- readonly input: {
7720
- readonly [x: string]: unknown;
7721
- };
7722
- readonly executed: boolean;
7723
- readonly native?: {
7724
- readonly [x: string]: unknown;
7725
- } | undefined;
7847
+ readonly server: string;
7726
7848
  };
7727
7849
  } | {
7728
7850
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7730,53 +7852,25 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7730
7852
  readonly metadata?: {
7731
7853
  readonly [x: string]: unknown;
7732
7854
  } | undefined;
7733
- readonly type: "session.tool.failed";
7734
- readonly durable: {
7735
- readonly aggregateID: string;
7736
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7737
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7738
- };
7855
+ readonly type: "plugin.updated";
7739
7856
  readonly location?: {
7740
7857
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7741
7858
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7742
7859
  } | undefined;
7743
- readonly data: {
7744
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7745
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7746
- readonly id: string;
7747
- readonly error: {
7748
- readonly type: string;
7749
- readonly message: string;
7750
- readonly status?: number | undefined;
7751
- readonly response?: {
7752
- readonly body: string;
7753
- } | undefined;
7754
- readonly retryAfterMs?: number | undefined;
7755
- };
7756
- readonly content?: readonly [{
7757
- readonly type: "text";
7758
- readonly text: string;
7759
- } | {
7760
- readonly type: "file";
7761
- readonly uri: string;
7762
- readonly mime: string;
7763
- readonly name?: string | undefined;
7764
- }, ...({
7765
- readonly type: "text";
7766
- readonly text: string;
7767
- } | {
7768
- readonly type: "file";
7769
- readonly uri: string;
7770
- readonly mime: string;
7771
- readonly name?: string | undefined;
7772
- })[]] | undefined;
7773
- readonly metadata?: {
7774
- readonly [x: string]: import("effect/Schema").Json;
7775
- } | undefined;
7776
- readonly executed: boolean;
7777
- readonly native?: {
7778
- readonly [x: string]: unknown;
7779
- } | 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";
7868
+ readonly location?: {
7869
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7870
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7871
+ } | undefined;
7872
+ readonly data: {
7873
+ readonly command: string;
7780
7874
  };
7781
7875
  } | {
7782
7876
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7784,20 +7878,12 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7784
7878
  readonly metadata?: {
7785
7879
  readonly [x: string]: unknown;
7786
7880
  } | undefined;
7787
- readonly type: "session.tool.input.ended";
7788
- readonly durable: {
7789
- readonly aggregateID: string;
7790
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7791
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7792
- };
7881
+ readonly type: "tui.prompt.append";
7793
7882
  readonly location?: {
7794
7883
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7795
7884
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7796
7885
  } | undefined;
7797
7886
  readonly data: {
7798
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7799
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7800
- readonly id: string;
7801
7887
  readonly text: string;
7802
7888
  };
7803
7889
  } | {
@@ -7806,21 +7892,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7806
7892
  readonly metadata?: {
7807
7893
  readonly [x: string]: unknown;
7808
7894
  } | undefined;
7809
- readonly type: "session.tool.input.started";
7810
- readonly durable: {
7811
- readonly aggregateID: string;
7812
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7813
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7814
- };
7895
+ readonly type: "tui.session.select";
7815
7896
  readonly location?: {
7816
7897
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7817
7898
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7818
7899
  } | undefined;
7819
7900
  readonly data: {
7820
7901
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7821
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7822
- readonly id: string;
7823
- readonly name: string;
7824
7902
  };
7825
7903
  } | {
7826
7904
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7828,44 +7906,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7828
7906
  readonly metadata?: {
7829
7907
  readonly [x: string]: unknown;
7830
7908
  } | undefined;
7831
- readonly type: "session.tool.success";
7832
- readonly durable: {
7833
- readonly aggregateID: string;
7834
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7835
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7836
- };
7909
+ readonly type: "tui.toast.show";
7837
7910
  readonly location?: {
7838
7911
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7839
7912
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7840
7913
  } | undefined;
7841
7914
  readonly data: {
7842
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7843
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7844
- readonly id: string;
7845
- readonly content: readonly [{
7846
- readonly type: "text";
7847
- readonly text: string;
7848
- } | {
7849
- readonly type: "file";
7850
- readonly uri: string;
7851
- readonly mime: string;
7852
- readonly name?: string | undefined;
7853
- }, ...({
7854
- readonly type: "text";
7855
- readonly text: string;
7856
- } | {
7857
- readonly type: "file";
7858
- readonly uri: string;
7859
- readonly mime: string;
7860
- readonly name?: string | undefined;
7861
- })[]];
7862
- readonly metadata?: {
7863
- readonly [x: string]: import("effect/Schema").Json;
7864
- } | undefined;
7865
- readonly executed: boolean;
7866
- readonly native?: {
7867
- readonly [x: string]: unknown;
7868
- } | undefined;
7915
+ readonly title?: string | undefined;
7916
+ readonly message: string;
7917
+ readonly variant: "error" | "info" | "success" | "warning";
7918
+ readonly duration: number;
7869
7919
  };
7870
7920
  } | {
7871
7921
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7873,123 +7923,86 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7873
7923
  readonly metadata?: {
7874
7924
  readonly [x: string]: unknown;
7875
7925
  } | undefined;
7876
- readonly type: "session.unarchived";
7877
- readonly durable: {
7878
- readonly aggregateID: string;
7879
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7880
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7881
- };
7926
+ readonly type: "location.shutdown";
7882
7927
  readonly location?: {
7883
7928
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7884
7929
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7885
7930
  } | undefined;
7886
- readonly data: {
7887
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7888
- };
7931
+ readonly data: {};
7889
7932
  } | {
7890
7933
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7891
7934
  readonly created: number;
7892
7935
  readonly metadata?: {
7893
7936
  readonly [x: string]: unknown;
7894
7937
  } | undefined;
7895
- readonly type: "session.viewed";
7896
- readonly durable: {
7897
- readonly aggregateID: string;
7898
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7899
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7900
- };
7938
+ readonly type: "models-dev.refreshed";
7901
7939
  readonly location?: {
7902
7940
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7903
7941
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7904
7942
  } | undefined;
7905
- readonly data: {
7906
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7907
- readonly idle: number;
7908
- };
7943
+ readonly data: {};
7909
7944
  } | {
7910
7945
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7911
7946
  readonly created: number;
7912
7947
  readonly metadata?: {
7913
7948
  readonly [x: string]: unknown;
7914
7949
  } | undefined;
7915
- readonly type: "session.compaction.delta";
7950
+ readonly type: "integration.updated";
7916
7951
  readonly location?: {
7917
7952
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7918
7953
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7919
7954
  } | undefined;
7920
- readonly data: {
7921
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7922
- readonly text: string;
7923
- };
7955
+ readonly data: {};
7924
7956
  } | {
7925
7957
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7926
7958
  readonly created: number;
7927
7959
  readonly metadata?: {
7928
7960
  readonly [x: string]: unknown;
7929
7961
  } | undefined;
7930
- readonly type: "session.reasoning.delta";
7962
+ readonly type: "provider.updated";
7931
7963
  readonly location?: {
7932
7964
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7933
7965
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7934
7966
  } | undefined;
7935
- readonly data: {
7936
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7937
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7938
- readonly ordinal: number;
7939
- readonly delta: string;
7940
- };
7967
+ readonly data: {};
7941
7968
  } | {
7942
7969
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7943
7970
  readonly created: number;
7944
7971
  readonly metadata?: {
7945
7972
  readonly [x: string]: unknown;
7946
7973
  } | undefined;
7947
- readonly type: "session.text.delta";
7974
+ readonly type: "model.updated";
7948
7975
  readonly location?: {
7949
7976
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7950
7977
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7951
7978
  } | undefined;
7952
- readonly data: {
7953
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7954
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7955
- readonly ordinal: number;
7956
- readonly delta: string;
7957
- };
7979
+ readonly data: {};
7958
7980
  } | {
7959
7981
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7960
7982
  readonly created: number;
7961
7983
  readonly metadata?: {
7962
7984
  readonly [x: string]: unknown;
7963
7985
  } | undefined;
7964
- readonly type: "session.tool.input.delta";
7986
+ readonly type: "agent.updated";
7965
7987
  readonly location?: {
7966
7988
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7967
7989
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7968
7990
  } | undefined;
7969
- readonly data: {
7970
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7971
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7972
- readonly id: string;
7973
- readonly delta: string;
7974
- };
7991
+ readonly data: {};
7975
7992
  } | {
7976
7993
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7977
7994
  readonly created: number;
7978
7995
  readonly metadata?: {
7979
7996
  readonly [x: string]: unknown;
7980
7997
  } | undefined;
7981
- readonly type: "session.tool.progress";
7998
+ readonly type: "filesystem.changed";
7982
7999
  readonly location?: {
7983
8000
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7984
8001
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7985
8002
  } | undefined;
7986
8003
  readonly data: {
7987
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7988
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7989
- readonly id: string;
7990
- readonly metadata: {
7991
- readonly [x: string]: import("effect/Schema").Json;
7992
- };
8004
+ readonly file: string;
8005
+ readonly event: "add" | "change" | "unlink";
7993
8006
  };
7994
8007
  } | {
7995
8008
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7997,23 +8010,38 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7997
8010
  readonly metadata?: {
7998
8011
  readonly [x: string]: unknown;
7999
8012
  } | undefined;
8000
- readonly type: "session.usage.updated";
8013
+ readonly type: "reference.updated";
8014
+ readonly location?: {
8015
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8016
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8017
+ } | undefined;
8018
+ readonly data: {};
8019
+ } | {
8020
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8021
+ readonly created: number;
8022
+ readonly metadata?: {
8023
+ readonly [x: string]: unknown;
8024
+ } | undefined;
8025
+ readonly type: "permission.asked";
8001
8026
  readonly location?: {
8002
8027
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8003
8028
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8004
8029
  } | undefined;
8005
8030
  readonly data: {
8006
8031
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8007
- readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
8008
- readonly tokens: {
8009
- readonly input: number;
8010
- readonly output: number;
8011
- readonly reasoning: number;
8012
- readonly cache: {
8013
- readonly read: number;
8014
- readonly write: number;
8015
- };
8016
- };
8032
+ readonly action: string;
8033
+ readonly resources: readonly string[];
8034
+ readonly save?: readonly string[] | undefined;
8035
+ readonly metadata?: {
8036
+ readonly [x: string]: unknown;
8037
+ } | undefined;
8038
+ readonly source?: {
8039
+ readonly type: "tool";
8040
+ readonly messageID: string;
8041
+ readonly id: string;
8042
+ } | undefined;
8043
+ readonly message?: string | undefined;
8044
+ readonly id: string & import("effect/Brand").Brand<"Permission.ID">;
8017
8045
  };
8018
8046
  } | {
8019
8047
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8021,12 +8049,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8021
8049
  readonly metadata?: {
8022
8050
  readonly [x: string]: unknown;
8023
8051
  } | undefined;
8024
- readonly type: "plugin.updated";
8052
+ readonly type: "permission.replied";
8025
8053
  readonly location?: {
8026
8054
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8027
8055
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8028
8056
  } | undefined;
8029
- readonly data: {};
8057
+ readonly data: {
8058
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8059
+ readonly requestID: string & import("effect/Brand").Brand<"Permission.ID">;
8060
+ readonly reply: "always" | "once" | "reject";
8061
+ };
8030
8062
  } | {
8031
8063
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8032
8064
  readonly created: number;
@@ -8065,36 +8097,36 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8065
8097
  readonly metadata?: {
8066
8098
  readonly [x: string]: unknown;
8067
8099
  } | undefined;
8068
- readonly type: "command.updated";
8100
+ readonly type: "worktree.resolved";
8101
+ readonly durable: {
8102
+ readonly aggregateID: string;
8103
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
8104
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
8105
+ };
8069
8106
  readonly location?: {
8070
8107
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8071
8108
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8072
8109
  } | undefined;
8073
- readonly data: {};
8074
- } | {
8075
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8076
- readonly created: number;
8077
- readonly metadata?: {
8078
- readonly [x: string]: unknown;
8079
- } | undefined;
8080
- readonly type: "config.updated";
8081
- readonly location?: {
8110
+ readonly data: {
8111
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
8082
8112
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8083
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8084
- } | undefined;
8085
- readonly data: {};
8113
+ readonly previous: string & import("effect/Brand").Brand<"Project.ID">;
8114
+ readonly adopted?: readonly (string & import("effect/Brand").Brand<"Project.ID">)[] | undefined;
8115
+ };
8086
8116
  } | {
8087
8117
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8088
8118
  readonly created: number;
8089
8119
  readonly metadata?: {
8090
8120
  readonly [x: string]: unknown;
8091
8121
  } | undefined;
8092
- readonly type: "skill.updated";
8122
+ readonly type: "worktree.updated";
8093
8123
  readonly location?: {
8094
8124
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8095
8125
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8096
8126
  } | undefined;
8097
- readonly data: {};
8127
+ readonly data: {
8128
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
8129
+ };
8098
8130
  } | {
8099
8131
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8100
8132
  readonly created: number;
@@ -8587,13 +8619,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8587
8619
  readonly metadata?: {
8588
8620
  readonly [x: string]: unknown;
8589
8621
  } | undefined;
8590
- readonly type: "tui.command.execute";
8622
+ readonly type: "installation.update-available";
8591
8623
  readonly location?: {
8592
8624
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8593
8625
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8594
8626
  } | undefined;
8595
8627
  readonly data: {
8596
- readonly command: string;
8628
+ readonly version: string;
8597
8629
  };
8598
8630
  } | {
8599
8631
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8601,13 +8633,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8601
8633
  readonly metadata?: {
8602
8634
  readonly [x: string]: unknown;
8603
8635
  } | undefined;
8604
- readonly type: "tui.prompt.append";
8636
+ readonly type: "installation.updated";
8605
8637
  readonly location?: {
8606
8638
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8607
8639
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8608
8640
  } | undefined;
8609
8641
  readonly data: {
8610
- readonly text: string;
8642
+ readonly version: string;
8611
8643
  };
8612
8644
  } | {
8613
8645
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8615,13 +8647,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8615
8647
  readonly metadata?: {
8616
8648
  readonly [x: string]: unknown;
8617
8649
  } | undefined;
8618
- readonly type: "tui.session.select";
8650
+ readonly type: "vcs.branch.updated";
8619
8651
  readonly location?: {
8620
8652
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8621
8653
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8622
8654
  } | undefined;
8623
8655
  readonly data: {
8624
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8656
+ readonly branch?: string | undefined;
8625
8657
  };
8626
8658
  } | {
8627
8659
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8629,44 +8661,12 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8629
8661
  readonly metadata?: {
8630
8662
  readonly [x: string]: unknown;
8631
8663
  } | undefined;
8632
- readonly type: "tui.toast.show";
8633
- readonly location?: {
8664
+ readonly type: `rpc.${string}`;
8665
+ readonly location: {
8634
8666
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8635
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8636
- } | undefined;
8637
- readonly data: {
8638
- readonly title?: string | undefined;
8639
- readonly message: string;
8640
- readonly variant: "error" | "info" | "success" | "warning";
8641
- readonly duration: number;
8642
8667
  };
8643
- } | {
8644
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8645
- readonly created: number;
8646
- readonly metadata?: {
8647
- readonly [x: string]: unknown;
8648
- } | undefined;
8649
- readonly type: "mcp.resources.changed";
8650
- readonly location?: {
8651
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8652
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8653
- } | undefined;
8654
8668
  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?: {
8661
8669
  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">;