@opencode/server 2.1.2 → 2.1.3

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 (106) hide show
  1. package/dist/api.d.ts +1041 -1041
  2. package/dist/api.js +5 -5
  3. package/dist/auth.js +1 -1
  4. package/dist/chunks/{request-tracing-xgbwf6ck.js → service-status-0f489yfb.js} +34 -34
  5. package/dist/chunks/{request-tracing-547pgmmc.js → service-status-0znmasm1.js} +2 -2
  6. package/dist/chunks/{request-tracing-z6z134jc.js → service-status-10kexchg.js} +2 -2
  7. package/dist/chunks/{request-tracing-emkxpff3.js → service-status-11d378s5.js} +3 -3
  8. package/dist/chunks/{request-tracing-gw6rc7x0.js → service-status-1qc831kp.js} +2 -2
  9. package/dist/chunks/{request-tracing-w4e9jgda.js → service-status-2e16a9cc.js} +1 -1
  10. package/dist/chunks/{request-tracing-rhdada90.js → service-status-2f9g7rg2.js} +2 -2
  11. package/dist/chunks/{request-tracing-4gnb9897.js → service-status-3154e7fk.js} +1 -1
  12. package/dist/chunks/{request-tracing-nnsgc8by.js → service-status-53jj3zgg.js} +3 -3
  13. package/dist/chunks/{request-tracing-eyzmgmqx.js → service-status-5680j7c4.js} +14 -14
  14. package/dist/chunks/{request-tracing-s0qm098c.js → service-status-5adf1am9.js} +2 -2
  15. package/dist/chunks/{request-tracing-fazm2c7b.js → service-status-5ewqf72w.js} +2 -2
  16. package/dist/chunks/{request-tracing-t4c683g8.js → service-status-6e6jjne7.js} +2 -2
  17. package/dist/chunks/{request-tracing-zfbzqd0e.js → service-status-6tj91hdj.js} +1 -1
  18. package/dist/chunks/{request-tracing-sc3gatcy.js → service-status-6tjqh8g4.js} +3 -3
  19. package/dist/chunks/{request-tracing-yfz2nrjq.js → service-status-6v4wsps6.js} +1 -1
  20. package/dist/chunks/{request-tracing-rw96z9cx.js → service-status-79n3507d.js} +3 -3
  21. package/dist/chunks/{request-tracing-3d7qdbre.js → service-status-7qrtcnv4.js} +1 -1
  22. package/dist/chunks/{request-tracing-5qadbb61.js → service-status-7scj3y0h.js} +4 -4
  23. package/dist/chunks/{request-tracing-qcfps8nc.js → service-status-a30hykaf.js} +2 -2
  24. package/dist/chunks/{request-tracing-hwqxzcvy.js → service-status-c2hv5jmf.js} +1 -1
  25. package/dist/chunks/service-status-crt28xe4.js +41 -0
  26. package/dist/chunks/{request-tracing-5w24ch67.js → service-status-e6e4kz0w.js} +1 -1
  27. package/dist/chunks/{request-tracing-50bbk3b2.js → service-status-gymtz25n.js} +3 -3
  28. package/dist/chunks/{request-tracing-yeebkdj0.js → service-status-hwdnjend.js} +2 -2
  29. package/dist/chunks/{request-tracing-8t0ckx4f.js → service-status-j3461ttv.js} +2 -2
  30. package/dist/chunks/{request-tracing-anm12x33.js → service-status-j4at0y5c.js} +1 -1
  31. package/dist/chunks/{request-tracing-jd2d9483.js → service-status-jwf0kwqx.js} +2 -2
  32. package/dist/chunks/{request-tracing-5ybpxcad.js → service-status-k6dz4enc.js} +4 -4
  33. package/dist/chunks/{request-tracing-7xe5pzvy.js → service-status-krqg3gd2.js} +1 -1
  34. package/dist/chunks/{request-tracing-jk5edc6h.js → service-status-pf9k0dqe.js} +2 -2
  35. package/dist/chunks/{request-tracing-bs0wtx09.js → service-status-q6jxy1hn.js} +5 -5
  36. package/dist/chunks/{request-tracing-4nbah0zs.js → service-status-r82dtfrk.js} +3 -3
  37. package/dist/chunks/{request-tracing-qx5ydgm0.js → service-status-rj8tbp10.js} +1 -1
  38. package/dist/chunks/{request-tracing-1ya81ktr.js → service-status-rkmbbexc.js} +2 -2
  39. package/dist/chunks/{request-tracing-kr61w04k.js → service-status-vb61dkrm.js} +1 -1
  40. package/dist/chunks/{request-tracing-tp6qcw6t.js → service-status-vg0x3zn0.js} +1 -1
  41. package/dist/chunks/{request-tracing-g0rzwe5g.js → service-status-x2cwbfak.js} +1 -1
  42. package/dist/chunks/{request-tracing-b3bmdkga.js → service-status-x74w7e1f.js} +1 -1
  43. package/dist/chunks/{request-tracing-cpp0zjdy.js → service-status-xcxwzp6z.js} +2 -2
  44. package/dist/chunks/{request-tracing-wexwfee0.js → service-status-y89d99mz.js} +2 -2
  45. package/dist/chunks/{request-tracing-fysmzcya.js → service-status-yzwm8eeq.js} +2 -2
  46. package/dist/chunks/{request-tracing-g7sdbt1s.js → service-status-z554rpg5.js} +2 -2
  47. package/dist/chunks/{request-tracing-gq8jw616.js → service-status-z9g9xjb3.js} +2 -2
  48. package/dist/chunks/{request-tracing-bkk2wfbz.js → service-status-zy1wt1f8.js} +5 -5
  49. package/dist/cors.js +1 -1
  50. package/dist/event-feed.js +3 -3
  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 +3 -3
  94. package/dist/request-tracing.js +1 -1
  95. package/dist/routes.js +47 -47
  96. package/dist/server-info.js +1 -1
  97. package/dist/service-status.js +1 -1
  98. package/dist/workerd.js +49 -49
  99. package/package.json +9 -9
  100. package/dist/chunks/request-tracing-xwnn9gpm.js +0 -30
  101. /package/dist/chunks/{request-tracing-9rqn6x4v.js → service-status-9rqn6x4v.js} +0 -0
  102. /package/dist/chunks/{request-tracing-erzfdgke.js → service-status-erzfdgke.js} +0 -0
  103. /package/dist/chunks/{request-tracing-h6rt5k9s.js → service-status-h6rt5k9s.js} +0 -0
  104. /package/dist/chunks/{request-tracing-q4bn6dy8.js → service-status-q4bn6dy8.js} +0 -0
  105. /package/dist/chunks/{request-tracing-smaf4a18.js → service-status-smaf4a18.js} +0 -0
  106. /package/dist/chunks/{request-tracing-yc7nft6q.js → service-status-yc7nft6q.js} +0 -0
package/dist/api.d.ts CHANGED
@@ -6372,14 +6372,26 @@ 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: "form.cancelled";
6375
+ readonly type: "skill.updated";
6376
+ readonly location?: {
6377
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6378
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6379
+ } | undefined;
6380
+ readonly data: {};
6381
+ } | {
6382
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6383
+ readonly created: number;
6384
+ readonly metadata?: {
6385
+ readonly [x: string]: unknown;
6386
+ } | undefined;
6387
+ readonly type: "credential.switched";
6376
6388
  readonly location?: {
6377
6389
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6378
6390
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6379
6391
  } | undefined;
6380
6392
  readonly data: {
6381
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
6382
- readonly sessionID: string;
6393
+ readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
6394
+ readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
6383
6395
  };
6384
6396
  } | {
6385
6397
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6387,209 +6399,104 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6387
6399
  readonly metadata?: {
6388
6400
  readonly [x: string]: unknown;
6389
6401
  } | undefined;
6390
- readonly type: "form.created";
6402
+ readonly type: "credential.updated";
6403
+ readonly location?: {
6404
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6405
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6406
+ } | undefined;
6407
+ readonly data: {};
6408
+ } | {
6409
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6410
+ readonly created: number;
6411
+ readonly metadata?: {
6412
+ readonly [x: string]: unknown;
6413
+ } | undefined;
6414
+ readonly type: "session.created";
6415
+ readonly durable: {
6416
+ readonly aggregateID: string;
6417
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6418
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6419
+ };
6391
6420
  readonly location?: {
6392
6421
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6393
6422
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6394
6423
  } | undefined;
6395
6424
  readonly data: {
6396
- readonly form: {
6397
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
6398
- readonly sessionID: string;
6399
- readonly title: string;
6400
- readonly metadata?: {
6401
- readonly [x: string]: unknown;
6402
- } | undefined;
6403
- readonly fields: readonly [{
6404
- readonly key: string;
6405
- readonly title?: string | undefined;
6406
- readonly description?: string | undefined;
6407
- readonly required?: boolean | undefined;
6408
- readonly hidden?: boolean | undefined;
6409
- readonly when?: readonly {
6410
- readonly key: string;
6411
- readonly op: "eq" | "neq";
6412
- readonly value: string | number | boolean;
6413
- }[] | undefined;
6414
- readonly type: "string";
6415
- readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
6416
- readonly minLength?: number | undefined;
6417
- readonly maxLength?: number | undefined;
6418
- readonly pattern?: string | undefined;
6419
- readonly placeholder?: string | undefined;
6420
- readonly default?: string | undefined;
6421
- readonly options?: readonly {
6422
- readonly value: string;
6423
- readonly label: string;
6424
- readonly description?: string | undefined;
6425
- }[] | undefined;
6426
- readonly custom?: boolean | undefined;
6427
- } | {
6428
- readonly key: string;
6429
- readonly title?: string | undefined;
6430
- readonly description?: string | undefined;
6431
- readonly required?: boolean | undefined;
6432
- readonly hidden?: boolean | undefined;
6433
- readonly when?: readonly {
6434
- readonly key: string;
6435
- readonly op: "eq" | "neq";
6436
- readonly value: string | number | boolean;
6437
- }[] | undefined;
6438
- readonly type: "number";
6439
- readonly minimum?: number | undefined;
6440
- readonly maximum?: number | undefined;
6441
- readonly default?: number | undefined;
6442
- } | {
6443
- readonly key: string;
6444
- readonly title?: string | undefined;
6445
- readonly description?: string | undefined;
6446
- readonly required?: boolean | undefined;
6447
- readonly hidden?: boolean | undefined;
6448
- readonly when?: readonly {
6449
- readonly key: string;
6450
- readonly op: "eq" | "neq";
6451
- readonly value: string | number | boolean;
6452
- }[] | undefined;
6453
- readonly type: "integer";
6454
- readonly minimum?: number | undefined;
6455
- readonly maximum?: number | undefined;
6456
- readonly default?: number | undefined;
6457
- } | {
6458
- readonly key: string;
6459
- readonly title?: string | undefined;
6460
- readonly description?: string | undefined;
6461
- readonly required?: boolean | undefined;
6462
- readonly hidden?: boolean | undefined;
6463
- readonly when?: readonly {
6464
- readonly key: string;
6465
- readonly op: "eq" | "neq";
6466
- readonly value: string | number | boolean;
6467
- }[] | undefined;
6468
- readonly type: "boolean";
6469
- readonly default?: boolean | undefined;
6470
- } | {
6471
- readonly key: string;
6472
- readonly title?: string | undefined;
6473
- readonly description?: string | undefined;
6474
- readonly required?: boolean | undefined;
6475
- readonly hidden?: boolean | undefined;
6476
- readonly when?: readonly {
6477
- readonly key: string;
6478
- readonly op: "eq" | "neq";
6479
- readonly value: string | number | boolean;
6480
- }[] | undefined;
6481
- readonly type: "multiselect";
6482
- readonly options: readonly {
6483
- readonly value: string;
6484
- readonly label: string;
6485
- readonly description?: string | undefined;
6486
- }[];
6487
- readonly minItems?: number | undefined;
6488
- readonly maxItems?: number | undefined;
6489
- readonly custom?: boolean | undefined;
6490
- readonly default?: readonly string[] | undefined;
6491
- } | {
6492
- readonly key: string;
6493
- readonly type: "external";
6494
- readonly url: string;
6495
- readonly title?: string | undefined;
6496
- readonly description?: string | undefined;
6497
- }, ...({
6498
- readonly key: string;
6499
- readonly title?: string | undefined;
6500
- readonly description?: string | undefined;
6501
- readonly required?: boolean | undefined;
6502
- readonly hidden?: boolean | undefined;
6503
- readonly when?: readonly {
6504
- readonly key: string;
6505
- readonly op: "eq" | "neq";
6506
- readonly value: string | number | boolean;
6507
- }[] | undefined;
6508
- readonly type: "string";
6509
- readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
6510
- readonly minLength?: number | undefined;
6511
- readonly maxLength?: number | undefined;
6512
- readonly pattern?: string | undefined;
6513
- readonly placeholder?: string | undefined;
6514
- readonly default?: string | undefined;
6515
- readonly options?: readonly {
6516
- readonly value: string;
6517
- readonly label: string;
6518
- readonly description?: string | undefined;
6519
- }[] | undefined;
6520
- readonly custom?: boolean | undefined;
6521
- } | {
6522
- readonly key: string;
6523
- readonly title?: string | undefined;
6524
- readonly description?: string | undefined;
6525
- readonly required?: boolean | undefined;
6526
- readonly hidden?: boolean | undefined;
6527
- readonly when?: readonly {
6528
- readonly key: string;
6529
- readonly op: "eq" | "neq";
6530
- readonly value: string | number | boolean;
6531
- }[] | undefined;
6532
- readonly type: "number";
6533
- readonly minimum?: number | undefined;
6534
- readonly maximum?: number | undefined;
6535
- readonly default?: number | undefined;
6536
- } | {
6537
- readonly key: string;
6538
- readonly title?: string | undefined;
6539
- readonly description?: string | undefined;
6540
- readonly required?: boolean | undefined;
6541
- readonly hidden?: boolean | undefined;
6542
- readonly when?: readonly {
6543
- readonly key: string;
6544
- readonly op: "eq" | "neq";
6545
- readonly value: string | number | boolean;
6546
- }[] | undefined;
6547
- readonly type: "integer";
6548
- readonly minimum?: number | undefined;
6549
- readonly maximum?: number | undefined;
6550
- readonly default?: number | undefined;
6551
- } | {
6552
- readonly key: string;
6553
- readonly title?: string | undefined;
6554
- readonly description?: string | undefined;
6555
- readonly required?: boolean | undefined;
6556
- readonly hidden?: boolean | undefined;
6557
- readonly when?: readonly {
6558
- readonly key: string;
6559
- readonly op: "eq" | "neq";
6560
- readonly value: string | number | boolean;
6561
- }[] | undefined;
6562
- readonly type: "boolean";
6563
- readonly default?: boolean | undefined;
6564
- } | {
6565
- readonly key: string;
6566
- readonly title?: string | undefined;
6567
- readonly description?: string | undefined;
6568
- readonly required?: boolean | undefined;
6569
- readonly hidden?: boolean | undefined;
6570
- readonly when?: readonly {
6571
- readonly key: string;
6572
- readonly op: "eq" | "neq";
6573
- readonly value: string | number | boolean;
6574
- }[] | undefined;
6575
- readonly type: "multiselect";
6576
- readonly options: readonly {
6577
- readonly value: string;
6578
- readonly label: string;
6579
- readonly description?: string | undefined;
6580
- }[];
6581
- readonly minItems?: number | undefined;
6582
- readonly maxItems?: number | undefined;
6583
- readonly custom?: boolean | undefined;
6584
- readonly default?: readonly string[] | undefined;
6585
- } | {
6586
- readonly key: string;
6587
- readonly type: "external";
6588
- readonly url: string;
6589
- readonly title?: string | undefined;
6590
- readonly description?: string | undefined;
6591
- })[]];
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;
6450
+ };
6451
+ } | {
6452
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6453
+ readonly created: number;
6454
+ readonly metadata?: {
6455
+ readonly [x: string]: unknown;
6456
+ } | undefined;
6457
+ readonly type: "session.agent.selected";
6458
+ readonly durable: {
6459
+ readonly aggregateID: string;
6460
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6461
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6462
+ };
6463
+ readonly location?: {
6464
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6465
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6466
+ } | undefined;
6467
+ readonly data: {
6468
+ readonly 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;
6471
+ };
6472
+ } | {
6473
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6474
+ readonly created: number;
6475
+ readonly metadata?: {
6476
+ readonly [x: string]: unknown;
6477
+ } | undefined;
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
+ };
6484
+ readonly location?: {
6485
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6486
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6487
+ } | undefined;
6488
+ readonly data: {
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;
6592
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;
6593
6500
  };
6594
6501
  } | {
6595
6502
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6597,17 +6504,24 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6597
6504
  readonly metadata?: {
6598
6505
  readonly [x: string]: unknown;
6599
6506
  } | undefined;
6600
- readonly type: "form.replied";
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
+ };
6601
6513
  readonly location?: {
6602
6514
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6603
6515
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6604
6516
  } | undefined;
6605
6517
  readonly data: {
6606
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
6607
- readonly sessionID: string;
6608
- readonly answer: {
6609
- readonly [x: string]: string | number | boolean | readonly string[];
6518
+ readonly location: {
6519
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6520
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6610
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">;
6611
6525
  };
6612
6526
  } | {
6613
6527
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6615,19 +6529,27 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6615
6529
  readonly metadata?: {
6616
6530
  readonly [x: string]: unknown;
6617
6531
  } | undefined;
6618
- readonly type: "agent.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
+ };
6619
6538
  readonly location?: {
6620
6539
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6621
6540
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6622
6541
  } | undefined;
6623
- readonly data: {};
6542
+ readonly data: {
6543
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6544
+ readonly title: string;
6545
+ };
6624
6546
  } | {
6625
6547
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6626
6548
  readonly created: number;
6627
6549
  readonly metadata?: {
6628
6550
  readonly [x: string]: unknown;
6629
6551
  } | undefined;
6630
- readonly type: "session.agent.selected";
6552
+ readonly type: "session.metadata.updated";
6631
6553
  readonly durable: {
6632
6554
  readonly aggregateID: string;
6633
6555
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6639,8 +6561,53 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6639
6561
  } | undefined;
6640
6562
  readonly data: {
6641
6563
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6642
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
6643
- readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
6564
+ readonly metadata: {
6565
+ readonly [x: string]: import("effect/Schema").Json;
6566
+ };
6567
+ };
6568
+ } | {
6569
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6570
+ readonly created: number;
6571
+ readonly metadata?: {
6572
+ readonly [x: string]: unknown;
6573
+ } | undefined;
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">;
6579
+ };
6580
+ readonly location?: {
6581
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6582
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6583
+ } | undefined;
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
+ };
6592
+ } | {
6593
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6594
+ readonly created: number;
6595
+ readonly metadata?: {
6596
+ readonly [x: string]: unknown;
6597
+ } | undefined;
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
+ };
6604
+ readonly location?: {
6605
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6606
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6607
+ } | undefined;
6608
+ readonly data: {
6609
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6610
+ readonly idle: number;
6644
6611
  };
6645
6612
  } | {
6646
6613
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6667,7 +6634,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6667
6634
  readonly metadata?: {
6668
6635
  readonly [x: string]: unknown;
6669
6636
  } | undefined;
6670
- readonly type: "session.compaction.ended";
6637
+ readonly type: "session.unarchived";
6671
6638
  readonly durable: {
6672
6639
  readonly aggregateID: string;
6673
6640
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6679,18 +6646,22 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6679
6646
  } | undefined;
6680
6647
  readonly data: {
6681
6648
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6682
- readonly reason: "auto" | "manual";
6683
- readonly model?: {
6684
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6685
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6686
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6687
- } | undefined;
6688
- readonly native?: {
6689
- readonly [x: string]: unknown;
6690
- } | undefined;
6691
- readonly text: string;
6692
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
6693
- readonly tokens?: {
6649
+ };
6650
+ } | {
6651
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6652
+ readonly created: number;
6653
+ readonly metadata?: {
6654
+ readonly [x: string]: unknown;
6655
+ } | undefined;
6656
+ readonly type: "session.usage.updated";
6657
+ readonly location?: {
6658
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6659
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6660
+ } | undefined;
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: {
6694
6665
  readonly input: number;
6695
6666
  readonly output: number;
6696
6667
  readonly reasoning: number;
@@ -6698,7 +6669,171 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6698
6669
  readonly read: number;
6699
6670
  readonly write: number;
6700
6671
  };
6701
- } | undefined;
6672
+ };
6673
+ };
6674
+ } | {
6675
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6676
+ readonly created: number;
6677
+ readonly metadata?: {
6678
+ readonly [x: string]: unknown;
6679
+ } | undefined;
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
+ };
6686
+ readonly location?: {
6687
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6688
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6689
+ } | undefined;
6690
+ readonly data: {
6691
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6692
+ };
6693
+ } | {
6694
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6695
+ readonly created: number;
6696
+ readonly metadata?: {
6697
+ readonly [x: string]: unknown;
6698
+ } | undefined;
6699
+ readonly type: "session.forked";
6700
+ readonly durable: {
6701
+ readonly aggregateID: string;
6702
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6703
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6704
+ };
6705
+ readonly location?: {
6706
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6707
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6708
+ } | undefined;
6709
+ readonly data: {
6710
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
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;
6727
+ };
6728
+ } | {
6729
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6730
+ readonly created: number;
6731
+ readonly metadata?: {
6732
+ readonly [x: string]: unknown;
6733
+ } | undefined;
6734
+ readonly type: "session.inbox.delivered";
6735
+ readonly durable: {
6736
+ readonly aggregateID: string;
6737
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6738
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6739
+ };
6740
+ readonly location?: {
6741
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6742
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6743
+ } | undefined;
6744
+ readonly data: {
6745
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6746
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6747
+ };
6748
+ } | {
6749
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6750
+ readonly created: number;
6751
+ readonly metadata?: {
6752
+ readonly [x: string]: unknown;
6753
+ } | undefined;
6754
+ readonly type: "session.inbox.enqueued";
6755
+ readonly durable: {
6756
+ readonly aggregateID: string;
6757
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6758
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6759
+ };
6760
+ readonly location?: {
6761
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6762
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6763
+ } | undefined;
6764
+ readonly data: {
6765
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
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;
6819
+ };
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
+ };
6702
6837
  };
6703
6838
  } | {
6704
6839
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6706,7 +6841,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6706
6841
  readonly metadata?: {
6707
6842
  readonly [x: string]: unknown;
6708
6843
  } | undefined;
6709
- readonly type: "session.compaction.failed";
6844
+ readonly type: "session.inbox.cancelled";
6710
6845
  readonly durable: {
6711
6846
  readonly aggregateID: string;
6712
6847
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6718,27 +6853,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6718
6853
  } | undefined;
6719
6854
  readonly data: {
6720
6855
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6721
- readonly reason: "auto" | "manual";
6722
- readonly error: {
6723
- readonly type: string;
6724
- readonly message: string;
6725
- readonly status?: number | undefined;
6726
- readonly response?: {
6727
- readonly body: string;
6728
- } | undefined;
6729
- readonly retryAfterMs?: number | undefined;
6730
- };
6731
- readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
6732
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
6733
- readonly tokens?: {
6734
- readonly input: number;
6735
- readonly output: number;
6736
- readonly reasoning: number;
6737
- readonly cache: {
6738
- readonly read: number;
6739
- readonly write: number;
6740
- };
6741
- } | undefined;
6856
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6742
6857
  };
6743
6858
  } | {
6744
6859
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6746,7 +6861,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6746
6861
  readonly metadata?: {
6747
6862
  readonly [x: string]: unknown;
6748
6863
  } | undefined;
6749
- readonly type: "session.compaction.started";
6864
+ readonly type: "session.inbox.delivery.changed";
6750
6865
  readonly durable: {
6751
6866
  readonly aggregateID: string;
6752
6867
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6758,8 +6873,8 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6758
6873
  } | undefined;
6759
6874
  readonly data: {
6760
6875
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6761
- readonly reason: "auto" | "manual";
6762
- 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";
6763
6878
  };
6764
6879
  } | {
6765
6880
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6767,7 +6882,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6767
6882
  readonly metadata?: {
6768
6883
  readonly [x: string]: unknown;
6769
6884
  } | undefined;
6770
- readonly type: "session.created";
6885
+ readonly type: "session.execution.started";
6771
6886
  readonly durable: {
6772
6887
  readonly aggregateID: string;
6773
6888
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6779,30 +6894,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6779
6894
  } | undefined;
6780
6895
  readonly data: {
6781
6896
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6782
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
6783
- readonly location: {
6784
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6785
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6786
- };
6787
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
6788
- readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
6789
- readonly slug: string;
6790
- readonly title?: string | undefined;
6791
- readonly agent?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
6792
- readonly model?: {
6793
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6794
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6795
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6796
- } | undefined;
6797
- readonly metadata?: {
6798
- readonly [x: string]: import("effect/Schema").Json;
6799
- } | undefined;
6800
- readonly permissions?: readonly {
6801
- readonly action: string;
6802
- readonly resource: string;
6803
- readonly effect: "allow" | "ask" | "deny";
6804
- }[] | undefined;
6805
- readonly version: string;
6806
6897
  };
6807
6898
  } | {
6808
6899
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6810,7 +6901,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6810
6901
  readonly metadata?: {
6811
6902
  readonly [x: string]: unknown;
6812
6903
  } | undefined;
6813
- readonly type: "session.deleted";
6904
+ readonly type: "session.execution.succeeded";
6814
6905
  readonly durable: {
6815
6906
  readonly aggregateID: string;
6816
6907
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6877,45 +6968,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6877
6968
  readonly metadata?: {
6878
6969
  readonly [x: string]: unknown;
6879
6970
  } | undefined;
6880
- readonly type: "session.execution.started";
6881
- readonly durable: {
6882
- readonly aggregateID: string;
6883
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6884
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6885
- };
6886
- readonly location?: {
6887
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6888
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6889
- } | undefined;
6890
- readonly data: {
6891
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6892
- };
6893
- } | {
6894
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6895
- readonly created: number;
6896
- readonly metadata?: {
6897
- readonly [x: string]: unknown;
6898
- } | undefined;
6899
- readonly type: "session.execution.succeeded";
6900
- readonly durable: {
6901
- readonly aggregateID: string;
6902
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6903
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6904
- };
6905
- readonly location?: {
6906
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6907
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6908
- } | undefined;
6909
- readonly data: {
6910
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6911
- };
6912
- } | {
6913
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6914
- readonly created: number;
6915
- readonly metadata?: {
6916
- readonly [x: string]: unknown;
6917
- } | undefined;
6918
- readonly type: "session.forked";
6971
+ readonly type: "session.instructions.updated";
6919
6972
  readonly durable: {
6920
6973
  readonly aggregateID: string;
6921
6974
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6927,22 +6980,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6927
6980
  } | undefined;
6928
6981
  readonly data: {
6929
6982
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6930
- readonly parentID: string & import("effect/Brand").Brand<"SessionID">;
6931
- readonly boundary: {
6932
- readonly type: "before";
6933
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6934
- } | {
6935
- readonly type: "through";
6936
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6983
+ readonly delta: {
6984
+ readonly [x: string]: "removed" | (string & import("effect/Brand").Brand<"Instruction.Hash">);
6937
6985
  };
6938
- readonly instructions?: {
6939
- readonly [x: string & import("effect/Brand").Brand<"Instruction.Key">]: string & import("effect/Brand").Brand<"Instruction.Hash">;
6940
- } | undefined;
6941
- readonly instructionEntries?: readonly {
6942
- readonly key: string;
6943
- readonly value: import("effect/Schema").Json;
6944
- readonly removed: boolean;
6945
- }[] | undefined;
6986
+ readonly text?: string | undefined;
6946
6987
  };
6947
6988
  } | {
6948
6989
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6950,7 +6991,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6950
6991
  readonly metadata?: {
6951
6992
  readonly [x: string]: unknown;
6952
6993
  } | undefined;
6953
- readonly type: "session.inbox.cancelled";
6994
+ readonly type: "session.synthetic";
6954
6995
  readonly durable: {
6955
6996
  readonly aggregateID: string;
6956
6997
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6962,7 +7003,11 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6962
7003
  } | undefined;
6963
7004
  readonly data: {
6964
7005
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6965
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7006
+ readonly text: string;
7007
+ readonly description?: string | undefined;
7008
+ readonly metadata?: {
7009
+ readonly [x: string]: unknown;
7010
+ } | undefined;
6966
7011
  };
6967
7012
  } | {
6968
7013
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6970,7 +7015,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6970
7015
  readonly metadata?: {
6971
7016
  readonly [x: string]: unknown;
6972
7017
  } | undefined;
6973
- readonly type: "session.inbox.delivered";
7018
+ readonly type: "session.skill.activated";
6974
7019
  readonly durable: {
6975
7020
  readonly aggregateID: string;
6976
7021
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6982,7 +7027,9 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6982
7027
  } | undefined;
6983
7028
  readonly data: {
6984
7029
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6985
- 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;
6986
7033
  };
6987
7034
  } | {
6988
7035
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6990,7 +7037,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6990
7037
  readonly metadata?: {
6991
7038
  readonly [x: string]: unknown;
6992
7039
  } | undefined;
6993
- readonly type: "session.inbox.delivery.changed";
7040
+ readonly type: "session.shell.started";
6994
7041
  readonly durable: {
6995
7042
  readonly aggregateID: string;
6996
7043
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7002,8 +7049,24 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7002
7049
  } | undefined;
7003
7050
  readonly data: {
7004
7051
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7005
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7006
- readonly delivery: "queue" | "steer";
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
+ };
7007
7070
  };
7008
7071
  } | {
7009
7072
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7011,7 +7074,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7011
7074
  readonly metadata?: {
7012
7075
  readonly [x: string]: unknown;
7013
7076
  } | undefined;
7014
- readonly type: "session.inbox.enqueued";
7077
+ readonly type: "session.shell.ended";
7015
7078
  readonly durable: {
7016
7079
  readonly aggregateID: string;
7017
7080
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7023,76 +7086,29 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7023
7086
  } | undefined;
7024
7087
  readonly data: {
7025
7088
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7026
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7027
- readonly item: {
7028
- readonly type: "user";
7029
- readonly payload: {
7030
- readonly text: string;
7031
- readonly files?: readonly {
7032
- readonly data: string;
7033
- readonly mime: string;
7034
- readonly source: {
7035
- readonly type: "inline";
7036
- } | {
7037
- readonly type: "uri";
7038
- readonly uri: string;
7039
- };
7040
- readonly name?: string | undefined;
7041
- readonly description?: string | undefined;
7042
- readonly mention?: {
7043
- readonly start: number;
7044
- readonly end: number;
7045
- readonly text: string;
7046
- } | undefined;
7047
- }[] | undefined;
7048
- readonly agents?: readonly {
7049
- readonly name: string;
7050
- readonly mention?: {
7051
- readonly start: number;
7052
- readonly end: number;
7053
- readonly text: string;
7054
- } | undefined;
7055
- }[] | undefined;
7056
- readonly skills?: readonly {
7057
- readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
7058
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
7059
- readonly text?: string | undefined;
7060
- readonly mention?: {
7061
- readonly start: number;
7062
- readonly end: number;
7063
- readonly text: string;
7064
- } | undefined;
7065
- }[] | undefined;
7066
- readonly metadata?: {
7067
- readonly [x: string]: unknown;
7068
- } | undefined;
7069
- };
7070
- readonly delivery: "queue" | "steer";
7071
- } | {
7072
- readonly type: "synthetic";
7073
- readonly payload: {
7074
- readonly text: string;
7075
- readonly description?: string | undefined;
7076
- readonly metadata?: {
7077
- readonly [x: string]: unknown;
7078
- } | undefined;
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;
7079
7101
  };
7080
- readonly delivery: "queue" | "steer";
7081
- } | {
7082
- readonly type: "compaction";
7083
- readonly payload: {};
7084
- readonly delivery: "queue" | "steer";
7085
- } | {
7086
- readonly type: "move";
7087
- readonly payload: {
7088
- readonly location: {
7089
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7090
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7091
- };
7092
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
7093
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
7102
+ readonly time: {
7103
+ readonly started: number;
7104
+ readonly completed?: number | undefined;
7094
7105
  };
7095
- readonly delivery: "queue" | "steer";
7106
+ };
7107
+ readonly output: {
7108
+ readonly output: string;
7109
+ readonly cursor: number;
7110
+ readonly size: number;
7111
+ readonly truncated: boolean;
7096
7112
  };
7097
7113
  };
7098
7114
  } | {
@@ -7101,7 +7117,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7101
7117
  readonly metadata?: {
7102
7118
  readonly [x: string]: unknown;
7103
7119
  } | undefined;
7104
- readonly type: "session.instructions.updated";
7120
+ readonly type: "session.step.started";
7105
7121
  readonly durable: {
7106
7122
  readonly aggregateID: string;
7107
7123
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7113,10 +7129,15 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7113
7129
  } | undefined;
7114
7130
  readonly data: {
7115
7131
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7116
- readonly delta: {
7117
- readonly [x: string]: "removed" | (string & import("effect/Brand").Brand<"Instruction.Hash">);
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;
7118
7138
  };
7119
- readonly text?: string | undefined;
7139
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7140
+ readonly started: number;
7120
7141
  };
7121
7142
  } | {
7122
7143
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7124,7 +7145,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7124
7145
  readonly metadata?: {
7125
7146
  readonly [x: string]: unknown;
7126
7147
  } | undefined;
7127
- readonly type: "session.metadata.updated";
7148
+ readonly type: "session.step.streamed";
7128
7149
  readonly durable: {
7129
7150
  readonly aggregateID: string;
7130
7151
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7136,9 +7157,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7136
7157
  } | undefined;
7137
7158
  readonly data: {
7138
7159
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7139
- readonly metadata: {
7140
- readonly [x: string]: import("effect/Schema").Json;
7141
- };
7160
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7142
7161
  };
7143
7162
  } | {
7144
7163
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7146,7 +7165,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7146
7165
  readonly metadata?: {
7147
7166
  readonly [x: string]: unknown;
7148
7167
  } | undefined;
7149
- readonly type: "session.model.selected";
7168
+ readonly type: "session.step.ended";
7150
7169
  readonly durable: {
7151
7170
  readonly aggregateID: string;
7152
7171
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7158,16 +7177,24 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7158
7177
  } | undefined;
7159
7178
  readonly data: {
7160
7179
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7161
- readonly model: {
7162
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7163
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7164
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7165
- };
7166
- readonly previous?: {
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;
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;
7170
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
+ };
7195
+ };
7196
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7197
+ readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
7171
7198
  };
7172
7199
  } | {
7173
7200
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7175,7 +7202,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7175
7202
  readonly metadata?: {
7176
7203
  readonly [x: string]: unknown;
7177
7204
  } | undefined;
7178
- readonly type: "session.moved";
7205
+ readonly type: "session.step.failed";
7179
7206
  readonly durable: {
7180
7207
  readonly aggregateID: string;
7181
7208
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7186,13 +7213,34 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7186
7213
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7187
7214
  } | undefined;
7188
7215
  readonly data: {
7189
- readonly location: {
7190
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7191
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7192
- };
7193
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
7194
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
7195
7216
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
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;
7226
+ };
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
+ };
7241
+ } | undefined;
7242
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7243
+ readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
7196
7244
  };
7197
7245
  } | {
7198
7246
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7200,7 +7248,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7200
7248
  readonly metadata?: {
7201
7249
  readonly [x: string]: unknown;
7202
7250
  } | undefined;
7203
- readonly type: "session.permissions";
7251
+ readonly type: "session.text.started";
7204
7252
  readonly durable: {
7205
7253
  readonly aggregateID: string;
7206
7254
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7212,11 +7260,8 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7212
7260
  } | undefined;
7213
7261
  readonly data: {
7214
7262
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7215
- readonly permissions: readonly {
7216
- readonly action: string;
7217
- readonly resource: string;
7218
- readonly effect: "allow" | "ask" | "deny";
7219
- }[];
7263
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7264
+ readonly ordinal: number;
7220
7265
  };
7221
7266
  } | {
7222
7267
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7224,12 +7269,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7224
7269
  readonly metadata?: {
7225
7270
  readonly [x: string]: unknown;
7226
7271
  } | undefined;
7227
- readonly type: "session.reasoning.ended";
7228
- readonly durable: {
7229
- readonly aggregateID: string;
7230
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7231
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7232
- };
7272
+ readonly type: "session.text.delta";
7233
7273
  readonly location?: {
7234
7274
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7235
7275
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7238,10 +7278,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7238
7278
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7239
7279
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7240
7280
  readonly ordinal: number;
7241
- readonly text: string;
7242
- readonly native?: {
7243
- readonly [x: string]: unknown;
7244
- } | undefined;
7281
+ readonly delta: string;
7245
7282
  };
7246
7283
  } | {
7247
7284
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7249,7 +7286,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7249
7286
  readonly metadata?: {
7250
7287
  readonly [x: string]: unknown;
7251
7288
  } | undefined;
7252
- readonly type: "session.reasoning.started";
7289
+ readonly type: "session.text.ended";
7253
7290
  readonly durable: {
7254
7291
  readonly aggregateID: string;
7255
7292
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7263,6 +7300,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7263
7300
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7264
7301
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7265
7302
  readonly ordinal: number;
7303
+ readonly text: string;
7266
7304
  readonly native?: {
7267
7305
  readonly [x: string]: unknown;
7268
7306
  } | undefined;
@@ -7273,7 +7311,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7273
7311
  readonly metadata?: {
7274
7312
  readonly [x: string]: unknown;
7275
7313
  } | undefined;
7276
- readonly type: "session.renamed";
7314
+ readonly type: "session.reasoning.started";
7277
7315
  readonly durable: {
7278
7316
  readonly aggregateID: string;
7279
7317
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7285,7 +7323,11 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7285
7323
  } | undefined;
7286
7324
  readonly data: {
7287
7325
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7288
- readonly title: string;
7326
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7327
+ readonly ordinal: number;
7328
+ readonly native?: {
7329
+ readonly [x: string]: unknown;
7330
+ } | undefined;
7289
7331
  };
7290
7332
  } | {
7291
7333
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7293,12 +7335,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7293
7335
  readonly metadata?: {
7294
7336
  readonly [x: string]: unknown;
7295
7337
  } | undefined;
7296
- readonly type: "session.retry.scheduled";
7297
- readonly durable: {
7298
- readonly aggregateID: string;
7299
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7300
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7301
- };
7338
+ readonly type: "session.reasoning.delta";
7302
7339
  readonly location?: {
7303
7340
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7304
7341
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7306,17 +7343,8 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7306
7343
  readonly data: {
7307
7344
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7308
7345
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7309
- readonly attempt: number;
7310
- readonly at: number;
7311
- readonly error: {
7312
- readonly type: string;
7313
- readonly message: string;
7314
- readonly status?: number | undefined;
7315
- readonly response?: {
7316
- readonly body: string;
7317
- } | undefined;
7318
- readonly retryAfterMs?: number | undefined;
7319
- };
7346
+ readonly ordinal: number;
7347
+ readonly delta: string;
7320
7348
  };
7321
7349
  } | {
7322
7350
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7324,7 +7352,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7324
7352
  readonly metadata?: {
7325
7353
  readonly [x: string]: unknown;
7326
7354
  } | undefined;
7327
- readonly type: "session.revert.cleared";
7355
+ readonly type: "session.reasoning.ended";
7328
7356
  readonly durable: {
7329
7357
  readonly aggregateID: string;
7330
7358
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7336,6 +7364,12 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7336
7364
  } | undefined;
7337
7365
  readonly data: {
7338
7366
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7367
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7368
+ readonly ordinal: number;
7369
+ readonly text: string;
7370
+ readonly native?: {
7371
+ readonly [x: string]: unknown;
7372
+ } | undefined;
7339
7373
  };
7340
7374
  } | {
7341
7375
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7343,7 +7377,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7343
7377
  readonly metadata?: {
7344
7378
  readonly [x: string]: unknown;
7345
7379
  } | undefined;
7346
- readonly type: "session.revert.committed";
7380
+ readonly type: "session.tool.input.started";
7347
7381
  readonly durable: {
7348
7382
  readonly aggregateID: string;
7349
7383
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7355,7 +7389,9 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7355
7389
  } | undefined;
7356
7390
  readonly data: {
7357
7391
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7358
- readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
7392
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7393
+ readonly id: string;
7394
+ readonly name: string;
7359
7395
  };
7360
7396
  } | {
7361
7397
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7363,30 +7399,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7363
7399
  readonly metadata?: {
7364
7400
  readonly [x: string]: unknown;
7365
7401
  } | undefined;
7366
- readonly type: "session.revert.staged";
7367
- readonly durable: {
7368
- readonly aggregateID: string;
7369
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7370
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7371
- };
7402
+ readonly type: "session.tool.input.delta";
7372
7403
  readonly location?: {
7373
7404
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7374
7405
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7375
7406
  } | undefined;
7376
7407
  readonly data: {
7377
7408
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7378
- readonly revert: {
7379
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7380
- readonly partID?: string | undefined;
7381
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7382
- readonly files?: readonly {
7383
- readonly file: string;
7384
- readonly patch: string;
7385
- readonly additions: number;
7386
- readonly deletions: number;
7387
- readonly status: "added" | "deleted" | "modified";
7388
- }[] | undefined;
7389
- };
7409
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7410
+ readonly id: string;
7411
+ readonly delta: string;
7390
7412
  };
7391
7413
  } | {
7392
7414
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7394,7 +7416,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7394
7416
  readonly metadata?: {
7395
7417
  readonly [x: string]: unknown;
7396
7418
  } | undefined;
7397
- readonly type: "session.shell.ended";
7419
+ readonly type: "session.tool.input.ended";
7398
7420
  readonly durable: {
7399
7421
  readonly aggregateID: string;
7400
7422
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7406,30 +7428,9 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7406
7428
  } | undefined;
7407
7429
  readonly data: {
7408
7430
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7409
- readonly shell: {
7410
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
7411
- readonly status: "exited" | "killed" | "running" | "timeout";
7412
- readonly command: string;
7413
- readonly cwd: string;
7414
- readonly shell: string;
7415
- readonly file: string;
7416
- readonly pid?: number | undefined;
7417
- readonly exit?: number | undefined;
7418
- readonly signal?: string | undefined;
7419
- readonly metadata: {
7420
- readonly [x: string]: unknown;
7421
- };
7422
- readonly time: {
7423
- readonly started: number;
7424
- readonly completed?: number | undefined;
7425
- };
7426
- };
7427
- readonly output: {
7428
- readonly output: string;
7429
- readonly cursor: number;
7430
- readonly size: number;
7431
- readonly truncated: boolean;
7432
- };
7431
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7432
+ readonly id: string;
7433
+ readonly text: string;
7433
7434
  };
7434
7435
  } | {
7435
7436
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7437,7 +7438,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7437
7438
  readonly metadata?: {
7438
7439
  readonly [x: string]: unknown;
7439
7440
  } | undefined;
7440
- readonly type: "session.shell.started";
7441
+ readonly type: "session.tool.called";
7441
7442
  readonly durable: {
7442
7443
  readonly aggregateID: string;
7443
7444
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7449,24 +7450,15 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7449
7450
  } | undefined;
7450
7451
  readonly data: {
7451
7452
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7452
- readonly shell: {
7453
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
7454
- readonly status: "exited" | "killed" | "running" | "timeout";
7455
- readonly command: string;
7456
- readonly cwd: string;
7457
- readonly shell: string;
7458
- readonly file: string;
7459
- readonly pid?: number | undefined;
7460
- readonly exit?: number | undefined;
7461
- readonly signal?: string | undefined;
7462
- readonly metadata: {
7463
- readonly [x: string]: unknown;
7464
- };
7465
- readonly time: {
7466
- readonly started: number;
7467
- readonly completed?: number | undefined;
7468
- };
7453
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7454
+ readonly id: string;
7455
+ readonly input: {
7456
+ readonly [x: string]: unknown;
7469
7457
  };
7458
+ readonly executed: boolean;
7459
+ readonly native?: {
7460
+ readonly [x: string]: unknown;
7461
+ } | undefined;
7470
7462
  };
7471
7463
  } | {
7472
7464
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7474,21 +7466,18 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7474
7466
  readonly metadata?: {
7475
7467
  readonly [x: string]: unknown;
7476
7468
  } | undefined;
7477
- readonly type: "session.skill.activated";
7478
- readonly durable: {
7479
- readonly aggregateID: string;
7480
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7481
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7482
- };
7469
+ readonly type: "session.tool.progress";
7483
7470
  readonly location?: {
7484
7471
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7485
7472
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7486
7473
  } | undefined;
7487
7474
  readonly data: {
7488
7475
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7489
- readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
7490
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
7491
- readonly text: string;
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
+ };
7492
7481
  };
7493
7482
  } | {
7494
7483
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7496,7 +7485,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7496
7485
  readonly metadata?: {
7497
7486
  readonly [x: string]: unknown;
7498
7487
  } | undefined;
7499
- readonly type: "session.step.ended";
7488
+ readonly type: "session.tool.success";
7500
7489
  readonly durable: {
7501
7490
  readonly aggregateID: string;
7502
7491
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7509,23 +7498,31 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7509
7498
  readonly data: {
7510
7499
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7511
7500
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7512
- readonly finish: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown";
7513
- readonly rawFinish?: string | undefined;
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;
7514
7523
  readonly native?: {
7515
7524
  readonly [x: string]: unknown;
7516
7525
  } | undefined;
7517
- readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
7518
- readonly tokens: {
7519
- readonly input: number;
7520
- readonly output: number;
7521
- readonly reasoning: number;
7522
- readonly cache: {
7523
- readonly read: number;
7524
- readonly write: number;
7525
- };
7526
- };
7527
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7528
- readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
7529
7526
  };
7530
7527
  } | {
7531
7528
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7533,7 +7530,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7533
7530
  readonly metadata?: {
7534
7531
  readonly [x: string]: unknown;
7535
7532
  } | undefined;
7536
- readonly type: "session.step.failed";
7533
+ readonly type: "session.tool.failed";
7537
7534
  readonly durable: {
7538
7535
  readonly aggregateID: string;
7539
7536
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7546,6 +7543,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7546
7543
  readonly data: {
7547
7544
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7548
7545
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7546
+ readonly id: string;
7549
7547
  readonly error: {
7550
7548
  readonly type: string;
7551
7549
  readonly message: string;
@@ -7555,23 +7553,30 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7555
7553
  } | undefined;
7556
7554
  readonly retryAfterMs?: number | undefined;
7557
7555
  };
7558
- readonly finish?: "content-filter" | undefined;
7559
- readonly rawFinish?: string | undefined;
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;
7560
7577
  readonly native?: {
7561
7578
  readonly [x: string]: unknown;
7562
7579
  } | undefined;
7563
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
7564
- readonly tokens?: {
7565
- readonly input: number;
7566
- readonly output: number;
7567
- readonly reasoning: number;
7568
- readonly cache: {
7569
- readonly read: number;
7570
- readonly write: number;
7571
- };
7572
- } | undefined;
7573
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7574
- readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
7575
7580
  };
7576
7581
  } | {
7577
7582
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7579,7 +7584,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7579
7584
  readonly metadata?: {
7580
7585
  readonly [x: string]: unknown;
7581
7586
  } | undefined;
7582
- readonly type: "session.step.started";
7587
+ readonly type: "session.retry.scheduled";
7583
7588
  readonly durable: {
7584
7589
  readonly aggregateID: string;
7585
7590
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7592,14 +7597,17 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7592
7597
  readonly data: {
7593
7598
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7594
7599
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7595
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
7596
- readonly model: {
7597
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7598
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7599
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
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;
7600
7610
  };
7601
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7602
- readonly started: number;
7603
7611
  };
7604
7612
  } | {
7605
7613
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7607,7 +7615,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7607
7615
  readonly metadata?: {
7608
7616
  readonly [x: string]: unknown;
7609
7617
  } | undefined;
7610
- readonly type: "session.step.streamed";
7618
+ readonly type: "session.compaction.started";
7611
7619
  readonly durable: {
7612
7620
  readonly aggregateID: string;
7613
7621
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7619,7 +7627,8 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7619
7627
  } | undefined;
7620
7628
  readonly data: {
7621
7629
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7622
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7630
+ readonly reason: "auto" | "manual";
7631
+ readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
7623
7632
  };
7624
7633
  } | {
7625
7634
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7627,12 +7636,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7627
7636
  readonly metadata?: {
7628
7637
  readonly [x: string]: unknown;
7629
7638
  } | undefined;
7630
- readonly type: "session.synthetic";
7631
- readonly durable: {
7632
- readonly aggregateID: string;
7633
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7634
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7635
- };
7639
+ readonly type: "session.compaction.delta";
7636
7640
  readonly location?: {
7637
7641
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7638
7642
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7640,10 +7644,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7640
7644
  readonly data: {
7641
7645
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7642
7646
  readonly text: string;
7643
- readonly description?: string | undefined;
7644
- readonly metadata?: {
7645
- readonly [x: string]: unknown;
7646
- } | undefined;
7647
7647
  };
7648
7648
  } | {
7649
7649
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7651,7 +7651,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7651
7651
  readonly metadata?: {
7652
7652
  readonly [x: string]: unknown;
7653
7653
  } | undefined;
7654
- readonly type: "session.text.ended";
7654
+ readonly type: "session.compaction.ended";
7655
7655
  readonly durable: {
7656
7656
  readonly aggregateID: string;
7657
7657
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7663,12 +7663,26 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7663
7663
  } | undefined;
7664
7664
  readonly data: {
7665
7665
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7666
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7667
- readonly ordinal: number;
7668
- readonly text: string;
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;
7669
7672
  readonly native?: {
7670
7673
  readonly [x: string]: unknown;
7671
7674
  } | undefined;
7675
+ readonly text: string;
7676
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
7677
+ readonly tokens?: {
7678
+ readonly input: number;
7679
+ readonly output: number;
7680
+ readonly reasoning: number;
7681
+ readonly cache: {
7682
+ readonly read: number;
7683
+ readonly write: number;
7684
+ };
7685
+ } | undefined;
7672
7686
  };
7673
7687
  } | {
7674
7688
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7676,7 +7690,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7676
7690
  readonly metadata?: {
7677
7691
  readonly [x: string]: unknown;
7678
7692
  } | undefined;
7679
- readonly type: "session.text.started";
7693
+ readonly type: "session.compaction.failed";
7680
7694
  readonly durable: {
7681
7695
  readonly aggregateID: string;
7682
7696
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7688,8 +7702,27 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7688
7702
  } | undefined;
7689
7703
  readonly data: {
7690
7704
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7691
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7692
- readonly ordinal: number;
7705
+ readonly reason: "auto" | "manual";
7706
+ readonly error: {
7707
+ readonly type: string;
7708
+ readonly message: string;
7709
+ readonly status?: number | undefined;
7710
+ readonly response?: {
7711
+ readonly body: string;
7712
+ } | undefined;
7713
+ readonly retryAfterMs?: number | undefined;
7714
+ };
7715
+ readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
7716
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
7717
+ readonly tokens?: {
7718
+ readonly input: number;
7719
+ readonly output: number;
7720
+ readonly reasoning: number;
7721
+ readonly cache: {
7722
+ readonly read: number;
7723
+ readonly write: number;
7724
+ };
7725
+ } | undefined;
7693
7726
  };
7694
7727
  } | {
7695
7728
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7697,7 +7730,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7697
7730
  readonly metadata?: {
7698
7731
  readonly [x: string]: unknown;
7699
7732
  } | undefined;
7700
- readonly type: "session.tool.called";
7733
+ readonly type: "session.revert.cleared";
7701
7734
  readonly durable: {
7702
7735
  readonly aggregateID: string;
7703
7736
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7709,15 +7742,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7709
7742
  } | undefined;
7710
7743
  readonly data: {
7711
7744
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7712
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7713
- readonly id: string;
7714
- readonly input: {
7715
- readonly [x: string]: unknown;
7716
- };
7717
- readonly executed: boolean;
7718
- readonly native?: {
7719
- readonly [x: string]: unknown;
7720
- } | undefined;
7721
7745
  };
7722
7746
  } | {
7723
7747
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7725,7 +7749,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7725
7749
  readonly metadata?: {
7726
7750
  readonly [x: string]: unknown;
7727
7751
  } | undefined;
7728
- readonly type: "session.tool.failed";
7752
+ readonly type: "session.revert.committed";
7729
7753
  readonly durable: {
7730
7754
  readonly aggregateID: string;
7731
7755
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7737,41 +7761,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7737
7761
  } | undefined;
7738
7762
  readonly data: {
7739
7763
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7740
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7741
- readonly id: string;
7742
- readonly error: {
7743
- readonly type: string;
7744
- readonly message: string;
7745
- readonly status?: number | undefined;
7746
- readonly response?: {
7747
- readonly body: string;
7748
- } | undefined;
7749
- readonly retryAfterMs?: number | undefined;
7750
- };
7751
- readonly content?: readonly [{
7752
- readonly type: "text";
7753
- readonly text: string;
7754
- } | {
7755
- readonly type: "file";
7756
- readonly uri: string;
7757
- readonly mime: string;
7758
- readonly name?: string | undefined;
7759
- }, ...({
7760
- readonly type: "text";
7761
- readonly text: string;
7762
- } | {
7763
- readonly type: "file";
7764
- readonly uri: string;
7765
- readonly mime: string;
7766
- readonly name?: string | undefined;
7767
- })[]] | undefined;
7768
- readonly metadata?: {
7769
- readonly [x: string]: import("effect/Schema").Json;
7770
- } | undefined;
7771
- readonly executed: boolean;
7772
- readonly native?: {
7773
- readonly [x: string]: unknown;
7774
- } | undefined;
7764
+ readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
7775
7765
  };
7776
7766
  } | {
7777
7767
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7779,7 +7769,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7779
7769
  readonly metadata?: {
7780
7770
  readonly [x: string]: unknown;
7781
7771
  } | undefined;
7782
- readonly type: "session.tool.input.ended";
7772
+ readonly type: "session.revert.staged";
7783
7773
  readonly durable: {
7784
7774
  readonly aggregateID: string;
7785
7775
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7791,9 +7781,18 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7791
7781
  } | undefined;
7792
7782
  readonly data: {
7793
7783
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7794
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7795
- readonly id: string;
7796
- readonly text: string;
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
+ };
7797
7796
  };
7798
7797
  } | {
7799
7798
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7801,66 +7800,37 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7801
7800
  readonly metadata?: {
7802
7801
  readonly [x: string]: unknown;
7803
7802
  } | undefined;
7804
- readonly type: "session.tool.input.started";
7805
- readonly durable: {
7806
- readonly aggregateID: string;
7807
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7808
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7809
- };
7803
+ readonly type: "command.updated";
7810
7804
  readonly location?: {
7811
7805
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7812
7806
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7813
7807
  } | undefined;
7814
- readonly data: {
7815
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7816
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7817
- readonly id: string;
7818
- readonly name: string;
7819
- };
7808
+ readonly data: {};
7809
+ } | {
7810
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7811
+ readonly created: number;
7812
+ readonly metadata?: {
7813
+ readonly [x: string]: unknown;
7814
+ } | undefined;
7815
+ readonly type: "config.updated";
7816
+ readonly location?: {
7817
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7818
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7819
+ } | undefined;
7820
+ readonly data: {};
7820
7821
  } | {
7821
7822
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7822
7823
  readonly created: number;
7823
7824
  readonly metadata?: {
7824
7825
  readonly [x: string]: unknown;
7825
7826
  } | undefined;
7826
- readonly type: "session.tool.success";
7827
- readonly durable: {
7828
- readonly aggregateID: string;
7829
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7830
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7831
- };
7827
+ readonly type: "mcp.resources.changed";
7832
7828
  readonly location?: {
7833
7829
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7834
7830
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7835
7831
  } | undefined;
7836
7832
  readonly data: {
7837
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7838
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7839
- readonly id: string;
7840
- readonly content: readonly [{
7841
- readonly type: "text";
7842
- readonly text: string;
7843
- } | {
7844
- readonly type: "file";
7845
- readonly uri: string;
7846
- readonly mime: string;
7847
- readonly name?: string | undefined;
7848
- }, ...({
7849
- readonly type: "text";
7850
- readonly text: string;
7851
- } | {
7852
- readonly type: "file";
7853
- readonly uri: string;
7854
- readonly mime: string;
7855
- readonly name?: string | undefined;
7856
- })[]];
7857
- readonly metadata?: {
7858
- readonly [x: string]: import("effect/Schema").Json;
7859
- } | undefined;
7860
- readonly executed: boolean;
7861
- readonly native?: {
7862
- readonly [x: string]: unknown;
7863
- } | undefined;
7833
+ readonly server: string;
7864
7834
  };
7865
7835
  } | {
7866
7836
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7868,18 +7838,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7868
7838
  readonly metadata?: {
7869
7839
  readonly [x: string]: unknown;
7870
7840
  } | undefined;
7871
- readonly type: "session.unarchived";
7872
- readonly durable: {
7873
- readonly aggregateID: string;
7874
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7875
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7876
- };
7841
+ readonly type: "mcp.status.changed";
7877
7842
  readonly location?: {
7878
7843
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7879
7844
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7880
7845
  } | undefined;
7881
7846
  readonly data: {
7882
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7847
+ readonly server: string;
7883
7848
  };
7884
7849
  } | {
7885
7850
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7887,34 +7852,25 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7887
7852
  readonly metadata?: {
7888
7853
  readonly [x: string]: unknown;
7889
7854
  } | undefined;
7890
- readonly type: "session.viewed";
7891
- readonly durable: {
7892
- readonly aggregateID: string;
7893
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7894
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7895
- };
7855
+ readonly type: "plugin.updated";
7896
7856
  readonly location?: {
7897
7857
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7898
7858
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7899
7859
  } | undefined;
7900
- readonly data: {
7901
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7902
- readonly idle: number;
7903
- };
7860
+ readonly data: {};
7904
7861
  } | {
7905
7862
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7906
7863
  readonly created: number;
7907
7864
  readonly metadata?: {
7908
7865
  readonly [x: string]: unknown;
7909
7866
  } | undefined;
7910
- readonly type: "session.compaction.delta";
7867
+ readonly type: "tui.command.execute";
7911
7868
  readonly location?: {
7912
7869
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7913
7870
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7914
7871
  } | undefined;
7915
7872
  readonly data: {
7916
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7917
- readonly text: string;
7873
+ readonly command: string;
7918
7874
  };
7919
7875
  } | {
7920
7876
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7922,16 +7878,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7922
7878
  readonly metadata?: {
7923
7879
  readonly [x: string]: unknown;
7924
7880
  } | undefined;
7925
- readonly type: "session.reasoning.delta";
7881
+ readonly type: "tui.prompt.append";
7926
7882
  readonly location?: {
7927
7883
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7928
7884
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7929
7885
  } | undefined;
7930
7886
  readonly data: {
7931
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7932
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7933
- readonly ordinal: number;
7934
- readonly delta: string;
7887
+ readonly text: string;
7935
7888
  };
7936
7889
  } | {
7937
7890
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7939,16 +7892,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7939
7892
  readonly metadata?: {
7940
7893
  readonly [x: string]: unknown;
7941
7894
  } | undefined;
7942
- readonly type: "session.text.delta";
7895
+ readonly type: "tui.session.select";
7943
7896
  readonly location?: {
7944
7897
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7945
7898
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7946
7899
  } | undefined;
7947
7900
  readonly data: {
7948
7901
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7949
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7950
- readonly ordinal: number;
7951
- readonly delta: string;
7952
7902
  };
7953
7903
  } | {
7954
7904
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7956,16 +7906,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7956
7906
  readonly metadata?: {
7957
7907
  readonly [x: string]: unknown;
7958
7908
  } | undefined;
7959
- readonly type: "session.tool.input.delta";
7909
+ readonly type: "tui.toast.show";
7960
7910
  readonly location?: {
7961
7911
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7962
7912
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7963
7913
  } | undefined;
7964
7914
  readonly data: {
7965
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7966
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7967
- readonly id: string;
7968
- readonly delta: string;
7915
+ readonly title?: string | undefined;
7916
+ readonly message: string;
7917
+ readonly variant: "error" | "info" | "success" | "warning";
7918
+ readonly duration: number;
7969
7919
  };
7970
7920
  } | {
7971
7921
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7973,50 +7923,31 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7973
7923
  readonly metadata?: {
7974
7924
  readonly [x: string]: unknown;
7975
7925
  } | undefined;
7976
- readonly type: "session.tool.progress";
7926
+ readonly type: "location.shutdown";
7977
7927
  readonly location?: {
7978
7928
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7979
7929
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7980
7930
  } | undefined;
7981
- readonly data: {
7982
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7983
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7984
- readonly id: string;
7985
- readonly metadata: {
7986
- readonly [x: string]: import("effect/Schema").Json;
7987
- };
7988
- };
7931
+ readonly data: {};
7989
7932
  } | {
7990
7933
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7991
7934
  readonly created: number;
7992
7935
  readonly metadata?: {
7993
7936
  readonly [x: string]: unknown;
7994
7937
  } | undefined;
7995
- readonly type: "session.usage.updated";
7938
+ readonly type: "models-dev.refreshed";
7996
7939
  readonly location?: {
7997
7940
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7998
7941
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7999
7942
  } | undefined;
8000
- readonly data: {
8001
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8002
- readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
8003
- readonly tokens: {
8004
- readonly input: number;
8005
- readonly output: number;
8006
- readonly reasoning: number;
8007
- readonly cache: {
8008
- readonly read: number;
8009
- readonly write: number;
8010
- };
8011
- };
8012
- };
7943
+ readonly data: {};
8013
7944
  } | {
8014
7945
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8015
7946
  readonly created: number;
8016
7947
  readonly metadata?: {
8017
7948
  readonly [x: string]: unknown;
8018
7949
  } | undefined;
8019
- readonly type: "websearch.updated";
7950
+ readonly type: "integration.updated";
8020
7951
  readonly location?: {
8021
7952
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8022
7953
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -8028,72 +7959,50 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8028
7959
  readonly metadata?: {
8029
7960
  readonly [x: string]: unknown;
8030
7961
  } | undefined;
8031
- readonly type: "worktree.resolved";
8032
- readonly durable: {
8033
- readonly aggregateID: string;
8034
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
8035
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
8036
- };
7962
+ readonly type: "provider.updated";
8037
7963
  readonly location?: {
8038
7964
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8039
7965
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8040
7966
  } | undefined;
8041
- readonly data: {
8042
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
8043
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8044
- readonly previous: string & import("effect/Brand").Brand<"Project.ID">;
8045
- readonly adopted?: readonly (string & import("effect/Brand").Brand<"Project.ID">)[] | undefined;
8046
- };
7967
+ readonly data: {};
8047
7968
  } | {
8048
7969
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8049
7970
  readonly created: number;
8050
7971
  readonly metadata?: {
8051
7972
  readonly [x: string]: unknown;
8052
7973
  } | undefined;
8053
- readonly type: "worktree.updated";
7974
+ readonly type: "model.updated";
8054
7975
  readonly location?: {
8055
7976
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8056
7977
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8057
7978
  } | undefined;
8058
- readonly data: {
8059
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
8060
- };
7979
+ readonly data: {};
8061
7980
  } | {
8062
7981
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8063
7982
  readonly created: number;
8064
7983
  readonly metadata?: {
8065
7984
  readonly [x: string]: unknown;
8066
7985
  } | undefined;
8067
- readonly type: "pty.created";
7986
+ readonly type: "agent.updated";
8068
7987
  readonly location?: {
8069
7988
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8070
7989
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8071
7990
  } | undefined;
8072
- readonly data: {
8073
- readonly info: {
8074
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
8075
- readonly title: string;
8076
- readonly command: string;
8077
- readonly args: readonly string[];
8078
- readonly cwd: string;
8079
- readonly status: "exited" | "running";
8080
- readonly pid: number;
8081
- readonly exitCode?: number | undefined;
8082
- };
8083
- };
7991
+ readonly data: {};
8084
7992
  } | {
8085
7993
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8086
7994
  readonly created: number;
8087
7995
  readonly metadata?: {
8088
7996
  readonly [x: string]: unknown;
8089
7997
  } | undefined;
8090
- readonly type: "pty.deleted";
7998
+ readonly type: "filesystem.changed";
8091
7999
  readonly location?: {
8092
8000
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8093
8001
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8094
8002
  } | undefined;
8095
8003
  readonly data: {
8096
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
8004
+ readonly file: string;
8005
+ readonly event: "add" | "change" | "unlink";
8097
8006
  };
8098
8007
  } | {
8099
8008
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8101,37 +8010,38 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8101
8010
  readonly metadata?: {
8102
8011
  readonly [x: string]: unknown;
8103
8012
  } | undefined;
8104
- readonly type: "pty.exited";
8013
+ readonly type: "reference.updated";
8105
8014
  readonly location?: {
8106
8015
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8107
8016
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8108
8017
  } | undefined;
8109
- readonly data: {
8110
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
8111
- readonly exitCode: number;
8112
- };
8018
+ readonly data: {};
8113
8019
  } | {
8114
8020
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8115
8021
  readonly created: number;
8116
8022
  readonly metadata?: {
8117
8023
  readonly [x: string]: unknown;
8118
8024
  } | undefined;
8119
- readonly type: "pty.updated";
8025
+ readonly type: "permission.asked";
8120
8026
  readonly location?: {
8121
8027
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8122
8028
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8123
8029
  } | undefined;
8124
8030
  readonly data: {
8125
- readonly info: {
8126
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
8127
- readonly title: string;
8128
- readonly command: string;
8129
- readonly args: readonly string[];
8130
- readonly cwd: string;
8131
- readonly status: "exited" | "running";
8132
- readonly pid: number;
8133
- readonly exitCode?: number | undefined;
8134
- };
8031
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
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">;
8135
8045
  };
8136
8046
  } | {
8137
8047
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8139,33 +8049,15 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8139
8049
  readonly metadata?: {
8140
8050
  readonly [x: string]: unknown;
8141
8051
  } | undefined;
8142
- readonly type: "persistent-pty.added";
8052
+ readonly type: "permission.replied";
8143
8053
  readonly location?: {
8144
8054
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8145
8055
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8146
8056
  } | undefined;
8147
8057
  readonly data: {
8148
8058
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8149
- readonly terminal: {
8150
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
8151
- readonly title: string;
8152
- readonly command: string;
8153
- readonly args: readonly string[];
8154
- readonly cwd: string;
8155
- readonly status: "exited" | "running";
8156
- readonly pid: number;
8157
- readonly exitCode?: number | undefined;
8158
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8159
- readonly foregroundProcess: string | null;
8160
- readonly size: {
8161
- readonly cols: number;
8162
- readonly rows: number;
8163
- };
8164
- readonly output: {
8165
- readonly head: number;
8166
- readonly tail: number;
8167
- };
8168
- };
8059
+ readonly requestID: string & import("effect/Brand").Brand<"Permission.ID">;
8060
+ readonly reply: "always" | "once" | "reject";
8169
8061
  };
8170
8062
  } | {
8171
8063
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8173,14 +8065,31 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8173
8065
  readonly metadata?: {
8174
8066
  readonly [x: string]: unknown;
8175
8067
  } | undefined;
8176
- readonly type: "persistent-pty.removed";
8068
+ readonly type: "project.updated";
8177
8069
  readonly location?: {
8178
8070
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8179
8071
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8180
8072
  } | undefined;
8181
8073
  readonly data: {
8182
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8183
- readonly ptyID: string & import("effect/Brand").Brand<"PtyID">;
8074
+ readonly id: string & import("effect/Brand").Brand<"Project.ID">;
8075
+ readonly canonical: string & import("effect/Brand").Brand<"AbsolutePath">;
8076
+ readonly vcs?: string | undefined;
8077
+ readonly name?: string | undefined;
8078
+ readonly icon?: {
8079
+ readonly url?: string | undefined;
8080
+ readonly override?: string | undefined;
8081
+ readonly color?: string | undefined;
8082
+ } | undefined;
8083
+ readonly commands?: {
8084
+ readonly start?: string | undefined;
8085
+ } | undefined;
8086
+ readonly time: {
8087
+ readonly created: number;
8088
+ readonly updated: number;
8089
+ readonly active: number;
8090
+ readonly archived?: number | undefined;
8091
+ };
8092
+ readonly sandboxes: readonly string[];
8184
8093
  };
8185
8094
  } | {
8186
8095
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8188,38 +8097,58 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8188
8097
  readonly metadata?: {
8189
8098
  readonly [x: string]: unknown;
8190
8099
  } | undefined;
8191
- readonly type: "location.shutdown";
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
+ };
8192
8106
  readonly location?: {
8193
8107
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8194
8108
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8195
8109
  } | undefined;
8196
- readonly data: {};
8110
+ readonly data: {
8111
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
8112
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8113
+ readonly previous: string & import("effect/Brand").Brand<"Project.ID">;
8114
+ readonly adopted?: readonly (string & import("effect/Brand").Brand<"Project.ID">)[] | undefined;
8115
+ };
8197
8116
  } | {
8198
8117
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8199
8118
  readonly created: number;
8200
8119
  readonly metadata?: {
8201
8120
  readonly [x: string]: unknown;
8202
8121
  } | undefined;
8203
- readonly type: "models-dev.refreshed";
8122
+ readonly type: "worktree.updated";
8204
8123
  readonly location?: {
8205
8124
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8206
8125
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8207
8126
  } | undefined;
8208
- readonly data: {};
8127
+ readonly data: {
8128
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
8129
+ };
8209
8130
  } | {
8210
8131
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8211
8132
  readonly created: number;
8212
8133
  readonly metadata?: {
8213
8134
  readonly [x: string]: unknown;
8214
8135
  } | undefined;
8215
- readonly type: "credential.switched";
8136
+ readonly type: "pty.created";
8216
8137
  readonly location?: {
8217
8138
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8218
8139
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8219
8140
  } | undefined;
8220
8141
  readonly data: {
8221
- readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
8222
- readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
8142
+ readonly info: {
8143
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
8144
+ readonly title: string;
8145
+ readonly command: string;
8146
+ readonly args: readonly string[];
8147
+ readonly cwd: string;
8148
+ readonly status: "exited" | "running";
8149
+ readonly pid: number;
8150
+ readonly exitCode?: number | undefined;
8151
+ };
8223
8152
  };
8224
8153
  } | {
8225
8154
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8227,62 +8156,100 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8227
8156
  readonly metadata?: {
8228
8157
  readonly [x: string]: unknown;
8229
8158
  } | undefined;
8230
- readonly type: "credential.updated";
8159
+ readonly type: "pty.deleted";
8231
8160
  readonly location?: {
8232
8161
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8233
8162
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8234
8163
  } | undefined;
8235
- readonly data: {};
8164
+ readonly data: {
8165
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
8166
+ };
8236
8167
  } | {
8237
8168
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8238
8169
  readonly created: number;
8239
8170
  readonly metadata?: {
8240
8171
  readonly [x: string]: unknown;
8241
8172
  } | undefined;
8242
- readonly type: "integration.updated";
8173
+ readonly type: "pty.exited";
8243
8174
  readonly location?: {
8244
8175
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8245
8176
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8246
8177
  } | undefined;
8247
- readonly data: {};
8178
+ readonly data: {
8179
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
8180
+ readonly exitCode: number;
8181
+ };
8248
8182
  } | {
8249
8183
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8250
8184
  readonly created: number;
8251
8185
  readonly metadata?: {
8252
8186
  readonly [x: string]: unknown;
8253
8187
  } | undefined;
8254
- readonly type: "provider.updated";
8188
+ readonly type: "pty.updated";
8255
8189
  readonly location?: {
8256
8190
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8257
8191
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8258
8192
  } | undefined;
8259
- readonly data: {};
8193
+ readonly data: {
8194
+ readonly info: {
8195
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
8196
+ readonly title: string;
8197
+ readonly command: string;
8198
+ readonly args: readonly string[];
8199
+ readonly cwd: string;
8200
+ readonly status: "exited" | "running";
8201
+ readonly pid: number;
8202
+ readonly exitCode?: number | undefined;
8203
+ };
8204
+ };
8260
8205
  } | {
8261
8206
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8262
8207
  readonly created: number;
8263
8208
  readonly metadata?: {
8264
8209
  readonly [x: string]: unknown;
8265
8210
  } | undefined;
8266
- readonly type: "model.updated";
8211
+ readonly type: "persistent-pty.added";
8267
8212
  readonly location?: {
8268
8213
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8269
8214
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8270
8215
  } | undefined;
8271
- readonly data: {};
8216
+ readonly data: {
8217
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8218
+ readonly terminal: {
8219
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
8220
+ readonly title: string;
8221
+ readonly command: string;
8222
+ readonly args: readonly string[];
8223
+ readonly cwd: string;
8224
+ readonly status: "exited" | "running";
8225
+ readonly pid: number;
8226
+ readonly exitCode?: number | undefined;
8227
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8228
+ readonly foregroundProcess: string | null;
8229
+ readonly size: {
8230
+ readonly cols: number;
8231
+ readonly rows: number;
8232
+ };
8233
+ readonly output: {
8234
+ readonly head: number;
8235
+ readonly tail: number;
8236
+ };
8237
+ };
8238
+ };
8272
8239
  } | {
8273
8240
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8274
8241
  readonly created: number;
8275
8242
  readonly metadata?: {
8276
8243
  readonly [x: string]: unknown;
8277
8244
  } | undefined;
8278
- readonly type: "filesystem.changed";
8245
+ readonly type: "persistent-pty.removed";
8279
8246
  readonly location?: {
8280
8247
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8281
8248
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8282
8249
  } | undefined;
8283
8250
  readonly data: {
8284
- readonly file: string;
8285
- readonly event: "add" | "change" | "unlink";
8251
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8252
+ readonly ptyID: string & import("effect/Brand").Brand<"PtyID">;
8286
8253
  };
8287
8254
  } | {
8288
8255
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8290,38 +8257,44 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8290
8257
  readonly metadata?: {
8291
8258
  readonly [x: string]: unknown;
8292
8259
  } | undefined;
8293
- readonly type: "reference.updated";
8260
+ readonly type: "shell.created";
8294
8261
  readonly location?: {
8295
8262
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8296
8263
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8297
8264
  } | undefined;
8298
- readonly data: {};
8265
+ readonly data: {
8266
+ readonly info: {
8267
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8268
+ readonly status: "exited" | "killed" | "running" | "timeout";
8269
+ readonly command: string;
8270
+ readonly cwd: string;
8271
+ readonly shell: string;
8272
+ readonly file: string;
8273
+ readonly pid?: number | undefined;
8274
+ readonly exit?: number | undefined;
8275
+ readonly signal?: string | undefined;
8276
+ readonly metadata: {
8277
+ readonly [x: string]: unknown;
8278
+ };
8279
+ readonly time: {
8280
+ readonly started: number;
8281
+ readonly completed?: number | undefined;
8282
+ };
8283
+ };
8284
+ };
8299
8285
  } | {
8300
8286
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8301
8287
  readonly created: number;
8302
8288
  readonly metadata?: {
8303
8289
  readonly [x: string]: unknown;
8304
8290
  } | undefined;
8305
- readonly type: "permission.asked";
8291
+ readonly type: "shell.deleted";
8306
8292
  readonly location?: {
8307
8293
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8308
8294
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8309
8295
  } | undefined;
8310
8296
  readonly data: {
8311
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8312
- readonly action: string;
8313
- readonly resources: readonly string[];
8314
- readonly save?: readonly string[] | undefined;
8315
- readonly metadata?: {
8316
- readonly [x: string]: unknown;
8317
- } | undefined;
8318
- readonly source?: {
8319
- readonly type: "tool";
8320
- readonly messageID: string;
8321
- readonly id: string;
8322
- } | undefined;
8323
- readonly message?: string | undefined;
8324
- readonly id: string & import("effect/Brand").Brand<"Permission.ID">;
8297
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8325
8298
  };
8326
8299
  } | {
8327
8300
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8329,15 +8302,15 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8329
8302
  readonly metadata?: {
8330
8303
  readonly [x: string]: unknown;
8331
8304
  } | undefined;
8332
- readonly type: "permission.replied";
8305
+ readonly type: "shell.exited";
8333
8306
  readonly location?: {
8334
8307
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8335
8308
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8336
8309
  } | undefined;
8337
8310
  readonly data: {
8338
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8339
- readonly requestID: string & import("effect/Brand").Brand<"Permission.ID">;
8340
- readonly reply: "always" | "once" | "reject";
8311
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8312
+ readonly exit?: number | undefined;
8313
+ readonly status: "exited" | "killed" | "running" | "timeout";
8341
8314
  };
8342
8315
  } | {
8343
8316
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8345,43 +8318,224 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8345
8318
  readonly metadata?: {
8346
8319
  readonly [x: string]: unknown;
8347
8320
  } | undefined;
8348
- readonly type: "plugin.updated";
8321
+ readonly type: "form.cancelled";
8349
8322
  readonly location?: {
8350
8323
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8351
8324
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8352
8325
  } | undefined;
8353
- readonly data: {};
8326
+ readonly data: {
8327
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
8328
+ readonly sessionID: string;
8329
+ };
8354
8330
  } | {
8355
8331
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8356
8332
  readonly created: number;
8357
8333
  readonly metadata?: {
8358
8334
  readonly [x: string]: unknown;
8359
8335
  } | undefined;
8360
- readonly type: "project.updated";
8336
+ readonly type: "form.created";
8361
8337
  readonly location?: {
8362
8338
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8363
8339
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8364
8340
  } | undefined;
8365
8341
  readonly data: {
8366
- readonly id: string & import("effect/Brand").Brand<"Project.ID">;
8367
- readonly canonical: string & import("effect/Brand").Brand<"AbsolutePath">;
8368
- readonly vcs?: string | undefined;
8369
- readonly name?: string | undefined;
8370
- readonly icon?: {
8371
- readonly url?: string | undefined;
8372
- readonly override?: string | undefined;
8373
- readonly color?: string | undefined;
8374
- } | undefined;
8375
- readonly commands?: {
8376
- readonly start?: string | undefined;
8377
- } | undefined;
8378
- readonly time: {
8379
- readonly created: number;
8380
- readonly updated: number;
8381
- readonly active: number;
8382
- readonly archived?: number | undefined;
8342
+ readonly form: {
8343
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
8344
+ readonly sessionID: string;
8345
+ readonly title: string;
8346
+ readonly metadata?: {
8347
+ readonly [x: string]: unknown;
8348
+ } | undefined;
8349
+ readonly fields: readonly [{
8350
+ readonly key: string;
8351
+ readonly title?: string | undefined;
8352
+ readonly description?: string | undefined;
8353
+ readonly required?: boolean | undefined;
8354
+ readonly hidden?: boolean | undefined;
8355
+ readonly when?: readonly {
8356
+ readonly key: string;
8357
+ readonly op: "eq" | "neq";
8358
+ readonly value: string | number | boolean;
8359
+ }[] | undefined;
8360
+ readonly type: "string";
8361
+ readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
8362
+ readonly minLength?: number | undefined;
8363
+ readonly maxLength?: number | undefined;
8364
+ readonly pattern?: string | undefined;
8365
+ readonly placeholder?: string | undefined;
8366
+ readonly default?: string | undefined;
8367
+ readonly options?: readonly {
8368
+ readonly value: string;
8369
+ readonly label: string;
8370
+ readonly description?: string | undefined;
8371
+ }[] | undefined;
8372
+ readonly custom?: boolean | undefined;
8373
+ } | {
8374
+ readonly key: string;
8375
+ readonly title?: string | undefined;
8376
+ readonly description?: string | undefined;
8377
+ readonly required?: boolean | undefined;
8378
+ readonly hidden?: boolean | undefined;
8379
+ readonly when?: readonly {
8380
+ readonly key: string;
8381
+ readonly op: "eq" | "neq";
8382
+ readonly value: string | number | boolean;
8383
+ }[] | undefined;
8384
+ readonly type: "number";
8385
+ readonly minimum?: number | undefined;
8386
+ readonly maximum?: number | undefined;
8387
+ readonly default?: number | undefined;
8388
+ } | {
8389
+ readonly key: string;
8390
+ readonly title?: string | undefined;
8391
+ readonly description?: string | undefined;
8392
+ readonly required?: boolean | undefined;
8393
+ readonly hidden?: boolean | undefined;
8394
+ readonly when?: readonly {
8395
+ readonly key: string;
8396
+ readonly op: "eq" | "neq";
8397
+ readonly value: string | number | boolean;
8398
+ }[] | undefined;
8399
+ readonly type: "integer";
8400
+ readonly minimum?: number | undefined;
8401
+ readonly maximum?: number | undefined;
8402
+ readonly default?: number | undefined;
8403
+ } | {
8404
+ readonly key: string;
8405
+ readonly title?: string | undefined;
8406
+ readonly description?: string | undefined;
8407
+ readonly required?: boolean | undefined;
8408
+ readonly hidden?: boolean | undefined;
8409
+ readonly when?: readonly {
8410
+ readonly key: string;
8411
+ readonly op: "eq" | "neq";
8412
+ readonly value: string | number | boolean;
8413
+ }[] | undefined;
8414
+ readonly type: "boolean";
8415
+ readonly default?: boolean | undefined;
8416
+ } | {
8417
+ readonly key: string;
8418
+ readonly title?: string | undefined;
8419
+ readonly description?: string | undefined;
8420
+ readonly required?: boolean | undefined;
8421
+ readonly hidden?: boolean | undefined;
8422
+ readonly when?: readonly {
8423
+ readonly key: string;
8424
+ readonly op: "eq" | "neq";
8425
+ readonly value: string | number | boolean;
8426
+ }[] | undefined;
8427
+ readonly type: "multiselect";
8428
+ readonly options: readonly {
8429
+ readonly value: string;
8430
+ readonly label: string;
8431
+ readonly description?: string | undefined;
8432
+ }[];
8433
+ readonly minItems?: number | undefined;
8434
+ readonly maxItems?: number | undefined;
8435
+ readonly custom?: boolean | undefined;
8436
+ readonly default?: readonly string[] | undefined;
8437
+ } | {
8438
+ readonly key: string;
8439
+ readonly type: "external";
8440
+ readonly url: string;
8441
+ readonly title?: string | undefined;
8442
+ readonly description?: string | undefined;
8443
+ }, ...({
8444
+ readonly key: string;
8445
+ readonly title?: string | undefined;
8446
+ readonly description?: string | undefined;
8447
+ readonly required?: boolean | undefined;
8448
+ readonly hidden?: boolean | undefined;
8449
+ readonly when?: readonly {
8450
+ readonly key: string;
8451
+ readonly op: "eq" | "neq";
8452
+ readonly value: string | number | boolean;
8453
+ }[] | undefined;
8454
+ readonly type: "string";
8455
+ readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
8456
+ readonly minLength?: number | undefined;
8457
+ readonly maxLength?: number | undefined;
8458
+ readonly pattern?: string | undefined;
8459
+ readonly placeholder?: string | undefined;
8460
+ readonly default?: string | undefined;
8461
+ readonly options?: readonly {
8462
+ readonly value: string;
8463
+ readonly label: string;
8464
+ readonly description?: string | undefined;
8465
+ }[] | undefined;
8466
+ readonly custom?: boolean | undefined;
8467
+ } | {
8468
+ readonly key: string;
8469
+ readonly title?: string | undefined;
8470
+ readonly description?: string | undefined;
8471
+ readonly required?: boolean | undefined;
8472
+ readonly hidden?: boolean | undefined;
8473
+ readonly when?: readonly {
8474
+ readonly key: string;
8475
+ readonly op: "eq" | "neq";
8476
+ readonly value: string | number | boolean;
8477
+ }[] | undefined;
8478
+ readonly type: "number";
8479
+ readonly minimum?: number | undefined;
8480
+ readonly maximum?: number | undefined;
8481
+ readonly default?: number | undefined;
8482
+ } | {
8483
+ readonly key: string;
8484
+ readonly title?: string | undefined;
8485
+ readonly description?: string | undefined;
8486
+ readonly required?: boolean | undefined;
8487
+ readonly hidden?: boolean | undefined;
8488
+ readonly when?: readonly {
8489
+ readonly key: string;
8490
+ readonly op: "eq" | "neq";
8491
+ readonly value: string | number | boolean;
8492
+ }[] | undefined;
8493
+ readonly type: "integer";
8494
+ readonly minimum?: number | undefined;
8495
+ readonly maximum?: number | undefined;
8496
+ readonly default?: number | undefined;
8497
+ } | {
8498
+ readonly key: string;
8499
+ readonly title?: string | undefined;
8500
+ readonly description?: string | undefined;
8501
+ readonly required?: boolean | undefined;
8502
+ readonly hidden?: boolean | undefined;
8503
+ readonly when?: readonly {
8504
+ readonly key: string;
8505
+ readonly op: "eq" | "neq";
8506
+ readonly value: string | number | boolean;
8507
+ }[] | undefined;
8508
+ readonly type: "boolean";
8509
+ readonly default?: boolean | undefined;
8510
+ } | {
8511
+ readonly key: string;
8512
+ readonly title?: string | undefined;
8513
+ readonly description?: string | undefined;
8514
+ readonly required?: boolean | undefined;
8515
+ readonly hidden?: boolean | undefined;
8516
+ readonly when?: readonly {
8517
+ readonly key: string;
8518
+ readonly op: "eq" | "neq";
8519
+ readonly value: string | number | boolean;
8520
+ }[] | undefined;
8521
+ readonly type: "multiselect";
8522
+ readonly options: readonly {
8523
+ readonly value: string;
8524
+ readonly label: string;
8525
+ readonly description?: string | undefined;
8526
+ }[];
8527
+ readonly minItems?: number | undefined;
8528
+ readonly maxItems?: number | undefined;
8529
+ readonly custom?: boolean | undefined;
8530
+ readonly default?: readonly string[] | undefined;
8531
+ } | {
8532
+ readonly key: string;
8533
+ readonly type: "external";
8534
+ readonly url: string;
8535
+ readonly title?: string | undefined;
8536
+ readonly description?: string | undefined;
8537
+ })[]];
8383
8538
  };
8384
- readonly sandboxes: readonly string[];
8385
8539
  };
8386
8540
  } | {
8387
8541
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8389,65 +8543,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8389
8543
  readonly metadata?: {
8390
8544
  readonly [x: string]: unknown;
8391
8545
  } | undefined;
8392
- readonly type: "command.updated";
8393
- readonly location?: {
8394
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8395
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8396
- } | undefined;
8397
- readonly data: {};
8398
- } | {
8399
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8400
- readonly created: number;
8401
- readonly metadata?: {
8402
- readonly [x: string]: unknown;
8403
- } | undefined;
8404
- readonly type: "config.updated";
8405
- readonly location?: {
8406
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8407
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8408
- } | undefined;
8409
- readonly data: {};
8410
- } | {
8411
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8412
- readonly created: number;
8413
- readonly metadata?: {
8414
- readonly [x: string]: unknown;
8415
- } | undefined;
8416
- readonly type: "skill.updated";
8417
- readonly location?: {
8418
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8419
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8420
- } | undefined;
8421
- readonly data: {};
8422
- } | {
8423
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8424
- readonly created: number;
8425
- readonly metadata?: {
8426
- readonly [x: string]: unknown;
8427
- } | undefined;
8428
- readonly type: "shell.created";
8546
+ readonly type: "form.replied";
8429
8547
  readonly location?: {
8430
8548
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8431
8549
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8432
8550
  } | undefined;
8433
8551
  readonly data: {
8434
- readonly info: {
8435
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8436
- readonly status: "exited" | "killed" | "running" | "timeout";
8437
- readonly command: string;
8438
- readonly cwd: string;
8439
- readonly shell: string;
8440
- readonly file: string;
8441
- readonly pid?: number | undefined;
8442
- readonly exit?: number | undefined;
8443
- readonly signal?: string | undefined;
8444
- readonly metadata: {
8445
- readonly [x: string]: unknown;
8446
- };
8447
- readonly time: {
8448
- readonly started: number;
8449
- readonly completed?: number | undefined;
8450
- };
8552
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
8553
+ readonly sessionID: string;
8554
+ readonly answer: {
8555
+ readonly [x: string]: string | number | boolean | readonly string[];
8451
8556
  };
8452
8557
  };
8453
8558
  } | {
@@ -8456,30 +8561,12 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8456
8561
  readonly metadata?: {
8457
8562
  readonly [x: string]: unknown;
8458
8563
  } | undefined;
8459
- readonly type: "shell.deleted";
8460
- readonly location?: {
8461
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8462
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8463
- } | undefined;
8464
- readonly data: {
8465
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8466
- };
8467
- } | {
8468
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8469
- readonly created: number;
8470
- readonly metadata?: {
8471
- readonly [x: string]: unknown;
8472
- } | undefined;
8473
- readonly type: "shell.exited";
8564
+ readonly type: "websearch.updated";
8474
8565
  readonly location?: {
8475
8566
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8476
8567
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8477
8568
  } | undefined;
8478
- readonly data: {
8479
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8480
- readonly exit?: number | undefined;
8481
- readonly status: "exited" | "killed" | "running" | "timeout";
8482
- };
8569
+ readonly data: {};
8483
8570
  } | {
8484
8571
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8485
8572
  readonly created: number;
@@ -8526,65 +8613,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8526
8613
  readonly type: "busy";
8527
8614
  };
8528
8615
  };
8529
- } | {
8530
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8531
- readonly created: number;
8532
- readonly metadata?: {
8533
- readonly [x: string]: unknown;
8534
- } | undefined;
8535
- readonly type: "tui.command.execute";
8536
- readonly location?: {
8537
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8538
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8539
- } | undefined;
8540
- readonly data: {
8541
- readonly command: string;
8542
- };
8543
- } | {
8544
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8545
- readonly created: number;
8546
- readonly metadata?: {
8547
- readonly [x: string]: unknown;
8548
- } | undefined;
8549
- readonly type: "tui.prompt.append";
8550
- readonly location?: {
8551
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8552
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8553
- } | undefined;
8554
- readonly data: {
8555
- readonly text: string;
8556
- };
8557
- } | {
8558
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8559
- readonly created: number;
8560
- readonly metadata?: {
8561
- readonly [x: string]: unknown;
8562
- } | undefined;
8563
- readonly type: "tui.session.select";
8564
- readonly location?: {
8565
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8566
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8567
- } | undefined;
8568
- readonly data: {
8569
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8570
- };
8571
- } | {
8572
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8573
- readonly created: number;
8574
- readonly metadata?: {
8575
- readonly [x: string]: unknown;
8576
- } | undefined;
8577
- readonly type: "tui.toast.show";
8578
- readonly location?: {
8579
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8580
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8581
- } | undefined;
8582
- readonly data: {
8583
- readonly title?: string | undefined;
8584
- readonly message: string;
8585
- readonly variant: "error" | "info" | "success" | "warning";
8586
- readonly duration: number;
8587
- };
8588
8616
  } | {
8589
8617
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8590
8618
  readonly created: number;
@@ -8627,34 +8655,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8627
8655
  readonly data: {
8628
8656
  readonly branch?: string | undefined;
8629
8657
  };
8630
- } | {
8631
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8632
- readonly created: number;
8633
- readonly metadata?: {
8634
- readonly [x: string]: unknown;
8635
- } | undefined;
8636
- readonly type: "mcp.resources.changed";
8637
- readonly location?: {
8638
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8639
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8640
- } | undefined;
8641
- readonly data: {
8642
- readonly server: string;
8643
- };
8644
- } | {
8645
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8646
- readonly created: number;
8647
- readonly metadata?: {
8648
- readonly [x: string]: unknown;
8649
- } | undefined;
8650
- readonly type: "mcp.status.changed";
8651
- readonly location?: {
8652
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8653
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8654
- } | undefined;
8655
- readonly data: {
8656
- readonly server: string;
8657
- };
8658
8658
  } | {
8659
8659
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8660
8660
  readonly created: number;