@opencode/server 0.0.0-dev-21385 → 0.0.0-dev-21390

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/dist/api.d.ts +919 -919
  2. package/dist/api.js +5 -5
  3. package/dist/auth.js +1 -1
  4. package/dist/chunks/{location-4nbah0zs.js → routes-026wrard.js} +3 -3
  5. package/dist/chunks/{location-nnsgc8by.js → routes-10jzh2zk.js} +3 -3
  6. package/dist/chunks/{location-4gnb9897.js → routes-1ahadpvw.js} +1 -1
  7. package/dist/chunks/{location-s0qm098c.js → routes-2s3n8phw.js} +2 -2
  8. package/dist/chunks/{location-jk5edc6h.js → routes-4vaqgjp8.js} +2 -2
  9. package/dist/chunks/{location-8t0ckx4f.js → routes-56rkpa1p.js} +2 -2
  10. package/dist/chunks/{location-fazm2c7b.js → routes-5bchp9s2.js} +2 -2
  11. package/dist/chunks/{location-ed6be65y.js → routes-60zq8cdy.js} +34 -34
  12. package/dist/chunks/{location-bkk2wfbz.js → routes-75c938bc.js} +7 -7
  13. package/dist/chunks/{location-zfbzqd0e.js → routes-7q8ata5b.js} +1 -1
  14. package/dist/chunks/{location-9xt2rqzw.js → routes-80m2nhf2.js} +7 -7
  15. package/dist/chunks/{location-emkxpff3.js → routes-9h3s5d39.js} +3 -3
  16. package/dist/chunks/{location-fysmzcya.js → routes-aajxxgqb.js} +2 -2
  17. package/dist/chunks/{location-anm12x33.js → routes-anm12x33.js} +1 -1
  18. package/dist/chunks/{location-g0rzwe5g.js → routes-c6kb7fmf.js} +7 -7
  19. package/dist/chunks/{location-rjpqaa8h.js → routes-d0efjmp3.js} +4 -4
  20. package/dist/chunks/{location-apeppj4j.js → routes-dc18tjnc.js} +3 -3
  21. package/dist/chunks/{location-jg29ckcn.js → routes-dsvj9z63.js} +3 -3
  22. package/dist/chunks/{location-qx5ydgm0.js → routes-e2cx9grb.js} +1 -1
  23. package/dist/chunks/{location-gt91kkbm.js → routes-ewdf1m8k.js} +2 -2
  24. package/dist/chunks/{location-tgw85yqb.js → routes-f0ee5g9h.js} +8 -8
  25. package/dist/chunks/{location-wexwfee0.js → routes-g0g9ma1m.js} +2 -2
  26. package/dist/chunks/{location-jd2d9483.js → routes-g1bp01xw.js} +2 -2
  27. package/dist/chunks/{location-50bbk3b2.js → routes-gqq6kfhc.js} +3 -3
  28. package/dist/chunks/{location-t4c683g8.js → routes-hxgz4x38.js} +2 -2
  29. package/dist/chunks/{location-rhdada90.js → routes-j3626vk8.js} +2 -2
  30. package/dist/chunks/{location-547pgmmc.js → routes-j66ekhc9.js} +2 -2
  31. package/dist/chunks/{location-w4e9jgda.js → routes-ksvmmk2r.js} +1 -1
  32. package/dist/chunks/{location-yeebkdj0.js → routes-n3hqkreg.js} +2 -2
  33. package/dist/chunks/{location-gw6rc7x0.js → routes-nmcxqxxx.js} +2 -2
  34. package/dist/chunks/{location-7xe5pzvy.js → routes-qbrxhger.js} +1 -1
  35. package/dist/chunks/{location-jqpaf77b.js → routes-qzy4qrwc.js} +16 -16
  36. package/dist/chunks/{location-qcfps8nc.js → routes-rrf9gkkq.js} +2 -2
  37. package/dist/chunks/{location-xwnn9gpm.js → routes-rys6nden.js} +2 -2
  38. package/dist/chunks/{location-3d7qdbre.js → routes-scq1j2yg.js} +1 -1
  39. package/dist/chunks/{location-byt4hbw9.js → routes-sstsrjtg.js} +7 -7
  40. package/dist/chunks/{location-gq8jw616.js → routes-t7dxwnb0.js} +2 -2
  41. package/dist/chunks/{location-tp6qcw6t.js → routes-vg73xc24.js} +1 -1
  42. package/dist/chunks/{location-cpp0zjdy.js → routes-vkgak0vv.js} +2 -2
  43. package/dist/chunks/{location-xsrtpxyd.js → routes-xsrtpxyd.js} +1 -1
  44. package/dist/chunks/{location-z6z134jc.js → routes-xt7xrv1r.js} +2 -2
  45. package/dist/chunks/{location-g7sdbt1s.js → routes-y7p3rgqn.js} +2 -2
  46. package/dist/chunks/{location-b3bmdkga.js → routes-yet0vexm.js} +1 -1
  47. package/dist/chunks/{location-yfz2nrjq.js → routes-yfz2nrjq.js} +1 -1
  48. package/dist/chunks/{location-hwqxzcvy.js → routes-zfjz2b4g.js} +1 -1
  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 +3 -3
  92. package/dist/process.js +50 -50
  93. package/dist/pty-environment.js +5 -5
  94. package/dist/request-tracing.js +1 -1
  95. package/dist/routes.js +47 -47
  96. package/dist/server-info.js +5 -5
  97. package/dist/service-status.js +1 -1
  98. package/dist/workerd.js +49 -49
  99. package/package.json +8 -8
  100. /package/dist/chunks/{location-9rqn6x4v.js → routes-9rqn6x4v.js} +0 -0
  101. /package/dist/chunks/{location-erzfdgke.js → routes-erzfdgke.js} +0 -0
  102. /package/dist/chunks/{location-h6rt5k9s.js → routes-h6rt5k9s.js} +0 -0
  103. /package/dist/chunks/{location-q4bn6dy8.js → routes-q4bn6dy8.js} +0 -0
  104. /package/dist/chunks/{location-smaf4a18.js → routes-smaf4a18.js} +0 -0
  105. /package/dist/chunks/{location-yc7nft6q.js → routes-yc7nft6q.js} +0 -0
package/dist/api.d.ts CHANGED
@@ -1454,7 +1454,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1454
1454
  readonly text: import("effect/Schema").String;
1455
1455
  }>>, never, never>;
1456
1456
  }> & {
1457
- create: (input: import("@opencode/schema/prompt").FileAttachment) => {
1457
+ create: (input: import("@opencode/schema").FileAttachment) => {
1458
1458
  readonly data: string;
1459
1459
  readonly mime: string;
1460
1460
  readonly source: {
@@ -1492,7 +1492,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1492
1492
  readonly text: import("effect/Schema").String;
1493
1493
  }>>, never, never>;
1494
1494
  }> & {
1495
- create: (input: import("@opencode/schema/prompt").FileAttachment) => {
1495
+ create: (input: import("@opencode/schema").FileAttachment) => {
1496
1496
  readonly data: string;
1497
1497
  readonly mime: string;
1498
1498
  readonly source: {
@@ -1637,7 +1637,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1637
1637
  readonly text: import("effect/Schema").String;
1638
1638
  }>>, never, never>;
1639
1639
  }> & {
1640
- create: (input: import("@opencode/schema/prompt").FileAttachment) => {
1640
+ create: (input: import("@opencode/schema").FileAttachment) => {
1641
1641
  readonly data: string;
1642
1642
  readonly mime: string;
1643
1643
  readonly source: {
@@ -1675,7 +1675,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1675
1675
  readonly text: import("effect/Schema").String;
1676
1676
  }>>, never, never>;
1677
1677
  }> & {
1678
- create: (input: import("@opencode/schema/prompt").FileAttachment) => {
1678
+ create: (input: import("@opencode/schema").FileAttachment) => {
1679
1679
  readonly data: string;
1680
1680
  readonly mime: string;
1681
1681
  readonly source: {
@@ -6372,26 +6372,224 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6372
6372
  readonly metadata?: {
6373
6373
  readonly [x: string]: unknown;
6374
6374
  } | undefined;
6375
- readonly type: "skill.updated";
6375
+ readonly type: "form.cancelled";
6376
6376
  readonly location?: {
6377
6377
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6378
6378
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6379
6379
  } | undefined;
6380
- readonly data: {};
6380
+ readonly data: {
6381
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
6382
+ readonly sessionID: string;
6383
+ };
6381
6384
  } | {
6382
6385
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6383
6386
  readonly created: number;
6384
6387
  readonly metadata?: {
6385
6388
  readonly [x: string]: unknown;
6386
6389
  } | undefined;
6387
- readonly type: "credential.switched";
6390
+ readonly type: "form.created";
6388
6391
  readonly location?: {
6389
6392
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6390
6393
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6391
6394
  } | undefined;
6392
6395
  readonly data: {
6393
- readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
6394
- readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
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
+ })[]];
6592
+ };
6395
6593
  };
6396
6594
  } | {
6397
6595
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6399,55 +6597,30 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6399
6597
  readonly metadata?: {
6400
6598
  readonly [x: string]: unknown;
6401
6599
  } | undefined;
6402
- readonly type: "credential.updated";
6600
+ readonly type: "form.replied";
6403
6601
  readonly location?: {
6404
6602
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6405
6603
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6406
6604
  } | undefined;
6407
- readonly data: {};
6605
+ 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[];
6610
+ };
6611
+ };
6408
6612
  } | {
6409
6613
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6410
6614
  readonly created: number;
6411
6615
  readonly metadata?: {
6412
6616
  readonly [x: string]: unknown;
6413
6617
  } | 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
- };
6618
+ readonly type: "agent.updated";
6420
6619
  readonly location?: {
6421
6620
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6422
6621
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6423
6622
  } | undefined;
6424
- readonly data: {
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
- };
6623
+ readonly data: {};
6451
6624
  } | {
6452
6625
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6453
6626
  readonly created: number;
@@ -6475,7 +6648,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6475
6648
  readonly metadata?: {
6476
6649
  readonly [x: string]: unknown;
6477
6650
  } | undefined;
6478
- readonly type: "session.model.selected";
6651
+ readonly type: "session.archived";
6479
6652
  readonly durable: {
6480
6653
  readonly aggregateID: string;
6481
6654
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6487,16 +6660,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6487
6660
  } | undefined;
6488
6661
  readonly data: {
6489
6662
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6490
- readonly model: {
6491
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6492
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6493
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6494
- };
6495
- readonly previous?: {
6496
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6497
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6498
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6499
- } | undefined;
6500
6663
  };
6501
6664
  } | {
6502
6665
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6504,7 +6667,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6504
6667
  readonly metadata?: {
6505
6668
  readonly [x: string]: unknown;
6506
6669
  } | undefined;
6507
- readonly type: "session.moved";
6670
+ readonly type: "session.compaction.ended";
6508
6671
  readonly durable: {
6509
6672
  readonly aggregateID: string;
6510
6673
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6515,13 +6678,27 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6515
6678
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6516
6679
  } | undefined;
6517
6680
  readonly data: {
6518
- readonly location: {
6519
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6520
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6521
- };
6522
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
6523
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
6524
6681
  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?: {
6694
+ readonly input: number;
6695
+ readonly output: number;
6696
+ readonly reasoning: number;
6697
+ readonly cache: {
6698
+ readonly read: number;
6699
+ readonly write: number;
6700
+ };
6701
+ } | undefined;
6525
6702
  };
6526
6703
  } | {
6527
6704
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6529,7 +6706,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6529
6706
  readonly metadata?: {
6530
6707
  readonly [x: string]: unknown;
6531
6708
  } | undefined;
6532
- readonly type: "session.renamed";
6709
+ readonly type: "session.compaction.failed";
6533
6710
  readonly durable: {
6534
6711
  readonly aggregateID: string;
6535
6712
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6541,7 +6718,27 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6541
6718
  } | undefined;
6542
6719
  readonly data: {
6543
6720
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6544
- readonly title: string;
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;
6545
6742
  };
6546
6743
  } | {
6547
6744
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6549,7 +6746,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6549
6746
  readonly metadata?: {
6550
6747
  readonly [x: string]: unknown;
6551
6748
  } | undefined;
6552
- readonly type: "session.metadata.updated";
6749
+ readonly type: "session.compaction.started";
6553
6750
  readonly durable: {
6554
6751
  readonly aggregateID: string;
6555
6752
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6561,9 +6758,8 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6561
6758
  } | undefined;
6562
6759
  readonly data: {
6563
6760
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6564
- readonly metadata: {
6565
- readonly [x: string]: import("effect/Schema").Json;
6566
- };
6761
+ readonly reason: "auto" | "manual";
6762
+ readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
6567
6763
  };
6568
6764
  } | {
6569
6765
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6571,7 +6767,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6571
6767
  readonly metadata?: {
6572
6768
  readonly [x: string]: unknown;
6573
6769
  } | undefined;
6574
- readonly type: "session.permissions";
6770
+ readonly type: "session.created";
6575
6771
  readonly durable: {
6576
6772
  readonly aggregateID: string;
6577
6773
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6583,11 +6779,30 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6583
6779
  } | undefined;
6584
6780
  readonly data: {
6585
6781
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6586
- readonly permissions: readonly {
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 {
6587
6801
  readonly action: string;
6588
6802
  readonly resource: string;
6589
6803
  readonly effect: "allow" | "ask" | "deny";
6590
- }[];
6804
+ }[] | undefined;
6805
+ readonly version: string;
6591
6806
  };
6592
6807
  } | {
6593
6808
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6595,7 +6810,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6595
6810
  readonly metadata?: {
6596
6811
  readonly [x: string]: unknown;
6597
6812
  } | undefined;
6598
- readonly type: "session.viewed";
6813
+ readonly type: "session.deleted";
6599
6814
  readonly durable: {
6600
6815
  readonly aggregateID: string;
6601
6816
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6607,7 +6822,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6607
6822
  } | undefined;
6608
6823
  readonly data: {
6609
6824
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6610
- readonly idle: number;
6611
6825
  };
6612
6826
  } | {
6613
6827
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6615,7 +6829,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6615
6829
  readonly metadata?: {
6616
6830
  readonly [x: string]: unknown;
6617
6831
  } | undefined;
6618
- readonly type: "session.archived";
6832
+ readonly type: "session.execution.failed";
6619
6833
  readonly durable: {
6620
6834
  readonly aggregateID: string;
6621
6835
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6627,6 +6841,15 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6627
6841
  } | undefined;
6628
6842
  readonly data: {
6629
6843
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6844
+ readonly error: {
6845
+ readonly type: string;
6846
+ readonly message: string;
6847
+ readonly status?: number | undefined;
6848
+ readonly response?: {
6849
+ readonly body: string;
6850
+ } | undefined;
6851
+ readonly retryAfterMs?: number | undefined;
6852
+ };
6630
6853
  };
6631
6854
  } | {
6632
6855
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6634,7 +6857,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6634
6857
  readonly metadata?: {
6635
6858
  readonly [x: string]: unknown;
6636
6859
  } | undefined;
6637
- readonly type: "session.unarchived";
6860
+ readonly type: "session.execution.interrupted";
6638
6861
  readonly durable: {
6639
6862
  readonly aggregateID: string;
6640
6863
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6646,6 +6869,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6646
6869
  } | undefined;
6647
6870
  readonly data: {
6648
6871
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6872
+ readonly reason: "inactivity" | "shutdown" | "superseded" | "user";
6649
6873
  };
6650
6874
  } | {
6651
6875
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6653,23 +6877,18 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6653
6877
  readonly metadata?: {
6654
6878
  readonly [x: string]: unknown;
6655
6879
  } | undefined;
6656
- readonly type: "session.usage.updated";
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
+ };
6657
6886
  readonly location?: {
6658
6887
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6659
6888
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6660
6889
  } | undefined;
6661
6890
  readonly data: {
6662
6891
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6663
- readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
6664
- readonly tokens: {
6665
- readonly input: number;
6666
- readonly output: number;
6667
- readonly reasoning: number;
6668
- readonly cache: {
6669
- readonly read: number;
6670
- readonly write: number;
6671
- };
6672
- };
6673
6892
  };
6674
6893
  } | {
6675
6894
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6677,7 +6896,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6677
6896
  readonly metadata?: {
6678
6897
  readonly [x: string]: unknown;
6679
6898
  } | undefined;
6680
- readonly type: "session.deleted";
6899
+ readonly type: "session.execution.succeeded";
6681
6900
  readonly durable: {
6682
6901
  readonly aggregateID: string;
6683
6902
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6725,6 +6944,26 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6725
6944
  readonly removed: boolean;
6726
6945
  }[] | undefined;
6727
6946
  };
6947
+ } | {
6948
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6949
+ readonly created: number;
6950
+ readonly metadata?: {
6951
+ readonly [x: string]: unknown;
6952
+ } | undefined;
6953
+ readonly type: "session.inbox.cancelled";
6954
+ readonly durable: {
6955
+ readonly aggregateID: string;
6956
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6957
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6958
+ };
6959
+ readonly location?: {
6960
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6961
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6962
+ } | undefined;
6963
+ readonly data: {
6964
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6965
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6966
+ };
6728
6967
  } | {
6729
6968
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6730
6969
  readonly created: number;
@@ -6745,6 +6984,27 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6745
6984
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6746
6985
  readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6747
6986
  };
6987
+ } | {
6988
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6989
+ readonly created: number;
6990
+ readonly metadata?: {
6991
+ readonly [x: string]: unknown;
6992
+ } | undefined;
6993
+ readonly type: "session.inbox.delivery.changed";
6994
+ readonly durable: {
6995
+ readonly aggregateID: string;
6996
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6997
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6998
+ };
6999
+ readonly location?: {
7000
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7001
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7002
+ } | undefined;
7003
+ readonly data: {
7004
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7005
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7006
+ readonly delivery: "queue" | "steer";
7007
+ };
6748
7008
  } | {
6749
7009
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6750
7010
  readonly created: number;
@@ -6841,7 +7101,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6841
7101
  readonly metadata?: {
6842
7102
  readonly [x: string]: unknown;
6843
7103
  } | undefined;
6844
- readonly type: "session.inbox.cancelled";
7104
+ readonly type: "session.instructions.updated";
6845
7105
  readonly durable: {
6846
7106
  readonly aggregateID: string;
6847
7107
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6853,7 +7113,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6853
7113
  } | undefined;
6854
7114
  readonly data: {
6855
7115
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6856
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7116
+ readonly delta: {
7117
+ readonly [x: string]: "removed" | (string & import("effect/Brand").Brand<"Instruction.Hash">);
7118
+ };
7119
+ readonly text?: string | undefined;
6857
7120
  };
6858
7121
  } | {
6859
7122
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6861,7 +7124,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6861
7124
  readonly metadata?: {
6862
7125
  readonly [x: string]: unknown;
6863
7126
  } | undefined;
6864
- readonly type: "session.inbox.delivery.changed";
7127
+ readonly type: "session.metadata.updated";
6865
7128
  readonly durable: {
6866
7129
  readonly aggregateID: string;
6867
7130
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6873,8 +7136,9 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6873
7136
  } | undefined;
6874
7137
  readonly data: {
6875
7138
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6876
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6877
- readonly delivery: "queue" | "steer";
7139
+ readonly metadata: {
7140
+ readonly [x: string]: import("effect/Schema").Json;
7141
+ };
6878
7142
  };
6879
7143
  } | {
6880
7144
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6882,7 +7146,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6882
7146
  readonly metadata?: {
6883
7147
  readonly [x: string]: unknown;
6884
7148
  } | undefined;
6885
- readonly type: "session.execution.started";
7149
+ readonly type: "session.model.selected";
6886
7150
  readonly durable: {
6887
7151
  readonly aggregateID: string;
6888
7152
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6894,6 +7158,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6894
7158
  } | undefined;
6895
7159
  readonly data: {
6896
7160
  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;
7170
+ } | undefined;
6897
7171
  };
6898
7172
  } | {
6899
7173
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6901,7 +7175,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6901
7175
  readonly metadata?: {
6902
7176
  readonly [x: string]: unknown;
6903
7177
  } | undefined;
6904
- readonly type: "session.execution.succeeded";
7178
+ readonly type: "session.moved";
6905
7179
  readonly durable: {
6906
7180
  readonly aggregateID: string;
6907
7181
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6912,6 +7186,12 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6912
7186
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6913
7187
  } | undefined;
6914
7188
  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;
6915
7195
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6916
7196
  };
6917
7197
  } | {
@@ -6920,7 +7200,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6920
7200
  readonly metadata?: {
6921
7201
  readonly [x: string]: unknown;
6922
7202
  } | undefined;
6923
- readonly type: "session.execution.failed";
7203
+ readonly type: "session.permissions";
6924
7204
  readonly durable: {
6925
7205
  readonly aggregateID: string;
6926
7206
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6932,15 +7212,11 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6932
7212
  } | undefined;
6933
7213
  readonly data: {
6934
7214
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6935
- readonly error: {
6936
- readonly type: string;
6937
- readonly message: string;
6938
- readonly status?: number | undefined;
6939
- readonly response?: {
6940
- readonly body: string;
6941
- } | undefined;
6942
- readonly retryAfterMs?: number | undefined;
6943
- };
7215
+ readonly permissions: readonly {
7216
+ readonly action: string;
7217
+ readonly resource: string;
7218
+ readonly effect: "allow" | "ask" | "deny";
7219
+ }[];
6944
7220
  };
6945
7221
  } | {
6946
7222
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6948,7 +7224,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6948
7224
  readonly metadata?: {
6949
7225
  readonly [x: string]: unknown;
6950
7226
  } | undefined;
6951
- readonly type: "session.execution.interrupted";
7227
+ readonly type: "session.reasoning.ended";
6952
7228
  readonly durable: {
6953
7229
  readonly aggregateID: string;
6954
7230
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6960,7 +7236,12 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6960
7236
  } | undefined;
6961
7237
  readonly data: {
6962
7238
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6963
- readonly reason: "inactivity" | "shutdown" | "superseded" | "user";
7239
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7240
+ readonly ordinal: number;
7241
+ readonly text: string;
7242
+ readonly native?: {
7243
+ readonly [x: string]: unknown;
7244
+ } | undefined;
6964
7245
  };
6965
7246
  } | {
6966
7247
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6968,7 +7249,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6968
7249
  readonly metadata?: {
6969
7250
  readonly [x: string]: unknown;
6970
7251
  } | undefined;
6971
- readonly type: "session.instructions.updated";
7252
+ readonly type: "session.reasoning.started";
6972
7253
  readonly durable: {
6973
7254
  readonly aggregateID: string;
6974
7255
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6980,10 +7261,11 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6980
7261
  } | undefined;
6981
7262
  readonly data: {
6982
7263
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6983
- readonly delta: {
6984
- readonly [x: string]: "removed" | (string & import("effect/Brand").Brand<"Instruction.Hash">);
6985
- };
6986
- readonly text?: string | undefined;
7264
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7265
+ readonly ordinal: number;
7266
+ readonly native?: {
7267
+ readonly [x: string]: unknown;
7268
+ } | undefined;
6987
7269
  };
6988
7270
  } | {
6989
7271
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6991,7 +7273,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6991
7273
  readonly metadata?: {
6992
7274
  readonly [x: string]: unknown;
6993
7275
  } | undefined;
6994
- readonly type: "session.synthetic";
7276
+ readonly type: "session.renamed";
6995
7277
  readonly durable: {
6996
7278
  readonly aggregateID: string;
6997
7279
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7003,11 +7285,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7003
7285
  } | undefined;
7004
7286
  readonly data: {
7005
7287
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7006
- readonly text: string;
7007
- readonly description?: string | undefined;
7008
- readonly metadata?: {
7009
- readonly [x: string]: unknown;
7010
- } | undefined;
7288
+ readonly title: string;
7011
7289
  };
7012
7290
  } | {
7013
7291
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7015,7 +7293,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7015
7293
  readonly metadata?: {
7016
7294
  readonly [x: string]: unknown;
7017
7295
  } | undefined;
7018
- readonly type: "session.skill.activated";
7296
+ readonly type: "session.retry.scheduled";
7019
7297
  readonly durable: {
7020
7298
  readonly aggregateID: string;
7021
7299
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7027,17 +7305,26 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7027
7305
  } | undefined;
7028
7306
  readonly data: {
7029
7307
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7030
- readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
7031
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
7032
- readonly text: string;
7033
- };
7034
- } | {
7035
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7308
+ 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
+ };
7320
+ };
7321
+ } | {
7322
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7036
7323
  readonly created: number;
7037
7324
  readonly metadata?: {
7038
7325
  readonly [x: string]: unknown;
7039
7326
  } | undefined;
7040
- readonly type: "session.shell.started";
7327
+ readonly type: "session.revert.cleared";
7041
7328
  readonly durable: {
7042
7329
  readonly aggregateID: string;
7043
7330
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7049,23 +7336,56 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7049
7336
  } | undefined;
7050
7337
  readonly data: {
7051
7338
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7052
- readonly shell: {
7053
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
7054
- readonly status: "exited" | "killed" | "running" | "timeout";
7055
- readonly command: string;
7056
- readonly cwd: string;
7057
- readonly shell: string;
7058
- readonly file: string;
7059
- readonly pid?: number | undefined;
7060
- readonly exit?: number | undefined;
7061
- readonly signal?: string | undefined;
7062
- readonly metadata: {
7063
- readonly [x: string]: unknown;
7064
- };
7065
- readonly time: {
7066
- readonly started: number;
7067
- readonly completed?: number | undefined;
7068
- };
7339
+ };
7340
+ } | {
7341
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7342
+ readonly created: number;
7343
+ readonly metadata?: {
7344
+ readonly [x: string]: unknown;
7345
+ } | undefined;
7346
+ readonly type: "session.revert.committed";
7347
+ readonly durable: {
7348
+ readonly aggregateID: string;
7349
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7350
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7351
+ };
7352
+ readonly location?: {
7353
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7354
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7355
+ } | undefined;
7356
+ readonly data: {
7357
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7358
+ readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
7359
+ };
7360
+ } | {
7361
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7362
+ readonly created: number;
7363
+ readonly metadata?: {
7364
+ readonly [x: string]: unknown;
7365
+ } | 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
+ };
7372
+ readonly location?: {
7373
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7374
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7375
+ } | undefined;
7376
+ readonly data: {
7377
+ 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;
7069
7389
  };
7070
7390
  };
7071
7391
  } | {
@@ -7117,7 +7437,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7117
7437
  readonly metadata?: {
7118
7438
  readonly [x: string]: unknown;
7119
7439
  } | undefined;
7120
- readonly type: "session.step.started";
7440
+ readonly type: "session.shell.started";
7121
7441
  readonly durable: {
7122
7442
  readonly aggregateID: string;
7123
7443
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7129,15 +7449,24 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7129
7449
  } | undefined;
7130
7450
  readonly data: {
7131
7451
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7132
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7133
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
7134
- readonly model: {
7135
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7136
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7137
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
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
+ };
7138
7469
  };
7139
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7140
- readonly started: number;
7141
7470
  };
7142
7471
  } | {
7143
7472
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7145,7 +7474,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7145
7474
  readonly metadata?: {
7146
7475
  readonly [x: string]: unknown;
7147
7476
  } | undefined;
7148
- readonly type: "session.step.streamed";
7477
+ readonly type: "session.skill.activated";
7149
7478
  readonly durable: {
7150
7479
  readonly aggregateID: string;
7151
7480
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7157,7 +7486,9 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7157
7486
  } | undefined;
7158
7487
  readonly data: {
7159
7488
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7160
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7489
+ readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
7490
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
7491
+ readonly text: string;
7161
7492
  };
7162
7493
  } | {
7163
7494
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7248,7 +7579,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7248
7579
  readonly metadata?: {
7249
7580
  readonly [x: string]: unknown;
7250
7581
  } | undefined;
7251
- readonly type: "session.text.started";
7582
+ readonly type: "session.step.started";
7252
7583
  readonly durable: {
7253
7584
  readonly aggregateID: string;
7254
7585
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7261,7 +7592,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7261
7592
  readonly data: {
7262
7593
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7263
7594
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7264
- readonly ordinal: number;
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
+ };
7601
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7602
+ readonly started: number;
7265
7603
  };
7266
7604
  } | {
7267
7605
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7269,7 +7607,12 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7269
7607
  readonly metadata?: {
7270
7608
  readonly [x: string]: unknown;
7271
7609
  } | undefined;
7272
- readonly type: "session.text.delta";
7610
+ readonly type: "session.step.streamed";
7611
+ readonly durable: {
7612
+ readonly aggregateID: string;
7613
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7614
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7615
+ };
7273
7616
  readonly location?: {
7274
7617
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7275
7618
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7277,8 +7620,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7277
7620
  readonly data: {
7278
7621
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7279
7622
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7280
- readonly ordinal: number;
7281
- readonly delta: string;
7282
7623
  };
7283
7624
  } | {
7284
7625
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7286,7 +7627,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7286
7627
  readonly metadata?: {
7287
7628
  readonly [x: string]: unknown;
7288
7629
  } | undefined;
7289
- readonly type: "session.text.ended";
7630
+ readonly type: "session.synthetic";
7290
7631
  readonly durable: {
7291
7632
  readonly aggregateID: string;
7292
7633
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7298,10 +7639,9 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7298
7639
  } | undefined;
7299
7640
  readonly data: {
7300
7641
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7301
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7302
- readonly ordinal: number;
7303
7642
  readonly text: string;
7304
- readonly native?: {
7643
+ readonly description?: string | undefined;
7644
+ readonly metadata?: {
7305
7645
  readonly [x: string]: unknown;
7306
7646
  } | undefined;
7307
7647
  };
@@ -7311,7 +7651,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7311
7651
  readonly metadata?: {
7312
7652
  readonly [x: string]: unknown;
7313
7653
  } | undefined;
7314
- readonly type: "session.reasoning.started";
7654
+ readonly type: "session.text.ended";
7315
7655
  readonly durable: {
7316
7656
  readonly aggregateID: string;
7317
7657
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7325,6 +7665,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7325
7665
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7326
7666
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7327
7667
  readonly ordinal: number;
7668
+ readonly text: string;
7328
7669
  readonly native?: {
7329
7670
  readonly [x: string]: unknown;
7330
7671
  } | undefined;
@@ -7335,7 +7676,12 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7335
7676
  readonly metadata?: {
7336
7677
  readonly [x: string]: unknown;
7337
7678
  } | undefined;
7338
- readonly type: "session.reasoning.delta";
7679
+ readonly type: "session.text.started";
7680
+ readonly durable: {
7681
+ readonly aggregateID: string;
7682
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7683
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7684
+ };
7339
7685
  readonly location?: {
7340
7686
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7341
7687
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7344,7 +7690,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7344
7690
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7345
7691
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7346
7692
  readonly ordinal: number;
7347
- readonly delta: string;
7348
7693
  };
7349
7694
  } | {
7350
7695
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7352,7 +7697,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7352
7697
  readonly metadata?: {
7353
7698
  readonly [x: string]: unknown;
7354
7699
  } | undefined;
7355
- readonly type: "session.reasoning.ended";
7700
+ readonly type: "session.tool.called";
7356
7701
  readonly durable: {
7357
7702
  readonly aggregateID: string;
7358
7703
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7365,8 +7710,11 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7365
7710
  readonly data: {
7366
7711
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7367
7712
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7368
- readonly ordinal: number;
7369
- readonly text: string;
7713
+ readonly id: string;
7714
+ readonly input: {
7715
+ readonly [x: string]: unknown;
7716
+ };
7717
+ readonly executed: boolean;
7370
7718
  readonly native?: {
7371
7719
  readonly [x: string]: unknown;
7372
7720
  } | undefined;
@@ -7377,7 +7725,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7377
7725
  readonly metadata?: {
7378
7726
  readonly [x: string]: unknown;
7379
7727
  } | undefined;
7380
- readonly type: "session.tool.input.started";
7728
+ readonly type: "session.tool.failed";
7381
7729
  readonly durable: {
7382
7730
  readonly aggregateID: string;
7383
7731
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7391,24 +7739,39 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7391
7739
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7392
7740
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7393
7741
  readonly id: string;
7394
- readonly name: string;
7395
- };
7396
- } | {
7397
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7398
- readonly created: number;
7399
- readonly metadata?: {
7400
- readonly [x: string]: unknown;
7401
- } | undefined;
7402
- readonly type: "session.tool.input.delta";
7403
- readonly location?: {
7404
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7405
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7406
- } | undefined;
7407
- readonly data: {
7408
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7409
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7410
- readonly id: string;
7411
- readonly delta: string;
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;
7412
7775
  };
7413
7776
  } | {
7414
7777
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7438,7 +7801,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7438
7801
  readonly metadata?: {
7439
7802
  readonly [x: string]: unknown;
7440
7803
  } | undefined;
7441
- readonly type: "session.tool.called";
7804
+ readonly type: "session.tool.input.started";
7442
7805
  readonly durable: {
7443
7806
  readonly aggregateID: string;
7444
7807
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7452,32 +7815,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7452
7815
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7453
7816
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7454
7817
  readonly id: string;
7455
- readonly input: {
7456
- readonly [x: string]: unknown;
7457
- };
7458
- readonly executed: boolean;
7459
- readonly native?: {
7460
- readonly [x: string]: unknown;
7461
- } | undefined;
7462
- };
7463
- } | {
7464
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7465
- readonly created: number;
7466
- readonly metadata?: {
7467
- readonly [x: string]: unknown;
7468
- } | undefined;
7469
- readonly type: "session.tool.progress";
7470
- readonly location?: {
7471
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7472
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7473
- } | undefined;
7474
- readonly data: {
7475
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7476
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7477
- readonly id: string;
7478
- readonly metadata: {
7479
- readonly [x: string]: import("effect/Schema").Json;
7480
- };
7818
+ readonly name: string;
7481
7819
  };
7482
7820
  } | {
7483
7821
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7530,7 +7868,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7530
7868
  readonly metadata?: {
7531
7869
  readonly [x: string]: unknown;
7532
7870
  } | undefined;
7533
- readonly type: "session.tool.failed";
7871
+ readonly type: "session.unarchived";
7534
7872
  readonly durable: {
7535
7873
  readonly aggregateID: string;
7536
7874
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7542,41 +7880,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7542
7880
  } | undefined;
7543
7881
  readonly data: {
7544
7882
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7545
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7546
- readonly id: string;
7547
- readonly error: {
7548
- readonly type: string;
7549
- readonly message: string;
7550
- readonly status?: number | undefined;
7551
- readonly response?: {
7552
- readonly body: string;
7553
- } | undefined;
7554
- readonly retryAfterMs?: number | undefined;
7555
- };
7556
- readonly content?: readonly [{
7557
- readonly type: "text";
7558
- readonly text: string;
7559
- } | {
7560
- readonly type: "file";
7561
- readonly uri: string;
7562
- readonly mime: string;
7563
- readonly name?: string | undefined;
7564
- }, ...({
7565
- readonly type: "text";
7566
- readonly text: string;
7567
- } | {
7568
- readonly type: "file";
7569
- readonly uri: string;
7570
- readonly mime: string;
7571
- readonly name?: string | undefined;
7572
- })[]] | undefined;
7573
- readonly metadata?: {
7574
- readonly [x: string]: import("effect/Schema").Json;
7575
- } | undefined;
7576
- readonly executed: boolean;
7577
- readonly native?: {
7578
- readonly [x: string]: unknown;
7579
- } | undefined;
7580
7883
  };
7581
7884
  } | {
7582
7885
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7584,7 +7887,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7584
7887
  readonly metadata?: {
7585
7888
  readonly [x: string]: unknown;
7586
7889
  } | undefined;
7587
- readonly type: "session.retry.scheduled";
7890
+ readonly type: "session.viewed";
7588
7891
  readonly durable: {
7589
7892
  readonly aggregateID: string;
7590
7893
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7596,18 +7899,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7596
7899
  } | undefined;
7597
7900
  readonly data: {
7598
7901
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7599
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7600
- readonly attempt: number;
7601
- readonly at: number;
7602
- readonly error: {
7603
- readonly type: string;
7604
- readonly message: string;
7605
- readonly status?: number | undefined;
7606
- readonly response?: {
7607
- readonly body: string;
7608
- } | undefined;
7609
- readonly retryAfterMs?: number | undefined;
7610
- };
7902
+ readonly idle: number;
7611
7903
  };
7612
7904
  } | {
7613
7905
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7615,20 +7907,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7615
7907
  readonly metadata?: {
7616
7908
  readonly [x: string]: unknown;
7617
7909
  } | undefined;
7618
- readonly type: "session.compaction.started";
7619
- readonly durable: {
7620
- readonly aggregateID: string;
7621
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7622
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7623
- };
7910
+ readonly type: "session.compaction.delta";
7624
7911
  readonly location?: {
7625
7912
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7626
7913
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7627
7914
  } | undefined;
7628
7915
  readonly data: {
7629
7916
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7630
- readonly reason: "auto" | "manual";
7631
- readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
7917
+ readonly text: string;
7632
7918
  };
7633
7919
  } | {
7634
7920
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7636,14 +7922,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7636
7922
  readonly metadata?: {
7637
7923
  readonly [x: string]: unknown;
7638
7924
  } | undefined;
7639
- readonly type: "session.compaction.delta";
7925
+ readonly type: "session.reasoning.delta";
7640
7926
  readonly location?: {
7641
7927
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7642
7928
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7643
7929
  } | undefined;
7644
7930
  readonly data: {
7645
7931
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7646
- readonly text: string;
7932
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7933
+ readonly ordinal: number;
7934
+ readonly delta: string;
7647
7935
  };
7648
7936
  } | {
7649
7937
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7651,38 +7939,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7651
7939
  readonly metadata?: {
7652
7940
  readonly [x: string]: unknown;
7653
7941
  } | undefined;
7654
- readonly type: "session.compaction.ended";
7655
- readonly durable: {
7656
- readonly aggregateID: string;
7657
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7658
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7659
- };
7942
+ readonly type: "session.text.delta";
7660
7943
  readonly location?: {
7661
7944
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7662
7945
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7663
7946
  } | undefined;
7664
7947
  readonly data: {
7665
7948
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7666
- readonly reason: "auto" | "manual";
7667
- readonly model?: {
7668
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7669
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7670
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7671
- } | undefined;
7672
- readonly native?: {
7673
- readonly [x: string]: unknown;
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;
7949
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7950
+ readonly ordinal: number;
7951
+ readonly delta: string;
7686
7952
  };
7687
7953
  } | {
7688
7954
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7690,39 +7956,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7690
7956
  readonly metadata?: {
7691
7957
  readonly [x: string]: unknown;
7692
7958
  } | undefined;
7693
- readonly type: "session.compaction.failed";
7694
- readonly durable: {
7695
- readonly aggregateID: string;
7696
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7697
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7698
- };
7959
+ readonly type: "session.tool.input.delta";
7699
7960
  readonly location?: {
7700
7961
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7701
7962
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7702
7963
  } | undefined;
7703
7964
  readonly data: {
7704
7965
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7705
- readonly reason: "auto" | "manual";
7706
- readonly error: {
7707
- readonly type: string;
7708
- readonly message: string;
7709
- readonly status?: number | undefined;
7710
- readonly response?: {
7711
- readonly body: string;
7712
- } | undefined;
7713
- readonly retryAfterMs?: number | undefined;
7714
- };
7715
- readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
7716
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
7717
- readonly tokens?: {
7718
- readonly input: number;
7719
- readonly output: number;
7720
- readonly reasoning: number;
7721
- readonly cache: {
7722
- readonly read: number;
7723
- readonly write: number;
7724
- };
7725
- } | undefined;
7966
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7967
+ readonly id: string;
7968
+ readonly delta: string;
7726
7969
  };
7727
7970
  } | {
7728
7971
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7730,18 +7973,18 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7730
7973
  readonly metadata?: {
7731
7974
  readonly [x: string]: unknown;
7732
7975
  } | undefined;
7733
- readonly type: "session.revert.cleared";
7734
- readonly durable: {
7735
- readonly aggregateID: string;
7736
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7737
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7738
- };
7976
+ readonly type: "session.tool.progress";
7739
7977
  readonly location?: {
7740
7978
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7741
7979
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7742
7980
  } | undefined;
7743
7981
  readonly data: {
7744
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
+ };
7745
7988
  };
7746
7989
  } | {
7747
7990
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7749,19 +7992,23 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7749
7992
  readonly metadata?: {
7750
7993
  readonly [x: string]: unknown;
7751
7994
  } | undefined;
7752
- readonly type: "session.revert.committed";
7753
- readonly durable: {
7754
- readonly aggregateID: string;
7755
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7756
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7757
- };
7995
+ readonly type: "session.usage.updated";
7758
7996
  readonly location?: {
7759
7997
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7760
7998
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7761
7999
  } | undefined;
7762
8000
  readonly data: {
7763
8001
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7764
- readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
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
+ };
7765
8012
  };
7766
8013
  } | {
7767
8014
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7769,68 +8016,70 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7769
8016
  readonly metadata?: {
7770
8017
  readonly [x: string]: unknown;
7771
8018
  } | undefined;
7772
- readonly type: "session.revert.staged";
7773
- readonly durable: {
7774
- readonly aggregateID: string;
7775
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7776
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7777
- };
8019
+ readonly type: "websearch.updated";
7778
8020
  readonly location?: {
7779
8021
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7780
8022
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7781
8023
  } | undefined;
7782
- readonly data: {
7783
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7784
- readonly revert: {
7785
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7786
- readonly partID?: string | undefined;
7787
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7788
- readonly files?: readonly {
7789
- readonly file: string;
7790
- readonly patch: string;
7791
- readonly additions: number;
7792
- readonly deletions: number;
7793
- readonly status: "added" | "deleted" | "modified";
7794
- }[] | undefined;
7795
- };
7796
- };
8024
+ readonly data: {};
7797
8025
  } | {
7798
8026
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7799
8027
  readonly created: number;
7800
8028
  readonly metadata?: {
7801
8029
  readonly [x: string]: unknown;
7802
8030
  } | undefined;
7803
- readonly type: "command.updated";
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
+ };
7804
8037
  readonly location?: {
7805
8038
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7806
8039
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7807
8040
  } | undefined;
7808
- readonly data: {};
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
+ };
7809
8047
  } | {
7810
8048
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7811
8049
  readonly created: number;
7812
8050
  readonly metadata?: {
7813
8051
  readonly [x: string]: unknown;
7814
8052
  } | undefined;
7815
- readonly type: "config.updated";
8053
+ readonly type: "worktree.updated";
7816
8054
  readonly location?: {
7817
8055
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7818
8056
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7819
8057
  } | undefined;
7820
- readonly data: {};
8058
+ readonly data: {
8059
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
8060
+ };
7821
8061
  } | {
7822
8062
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7823
8063
  readonly created: number;
7824
8064
  readonly metadata?: {
7825
8065
  readonly [x: string]: unknown;
7826
8066
  } | undefined;
7827
- readonly type: "mcp.resources.changed";
8067
+ readonly type: "pty.created";
7828
8068
  readonly location?: {
7829
8069
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7830
8070
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7831
8071
  } | undefined;
7832
8072
  readonly data: {
7833
- readonly server: string;
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
+ };
7834
8083
  };
7835
8084
  } | {
7836
8085
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7838,13 +8087,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7838
8087
  readonly metadata?: {
7839
8088
  readonly [x: string]: unknown;
7840
8089
  } | undefined;
7841
- readonly type: "mcp.status.changed";
8090
+ readonly type: "pty.deleted";
7842
8091
  readonly location?: {
7843
8092
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7844
8093
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7845
8094
  } | undefined;
7846
8095
  readonly data: {
7847
- readonly server: string;
8096
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
7848
8097
  };
7849
8098
  } | {
7850
8099
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7852,25 +8101,37 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7852
8101
  readonly metadata?: {
7853
8102
  readonly [x: string]: unknown;
7854
8103
  } | undefined;
7855
- readonly type: "plugin.updated";
8104
+ readonly type: "pty.exited";
7856
8105
  readonly location?: {
7857
8106
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7858
8107
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7859
8108
  } | undefined;
7860
- readonly data: {};
8109
+ readonly data: {
8110
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
8111
+ readonly exitCode: number;
8112
+ };
7861
8113
  } | {
7862
8114
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7863
8115
  readonly created: number;
7864
8116
  readonly metadata?: {
7865
8117
  readonly [x: string]: unknown;
7866
8118
  } | undefined;
7867
- readonly type: "tui.command.execute";
8119
+ readonly type: "pty.updated";
7868
8120
  readonly location?: {
7869
8121
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7870
8122
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7871
8123
  } | undefined;
7872
8124
  readonly data: {
7873
- readonly command: string;
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
+ };
7874
8135
  };
7875
8136
  } | {
7876
8137
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7878,13 +8139,33 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7878
8139
  readonly metadata?: {
7879
8140
  readonly [x: string]: unknown;
7880
8141
  } | undefined;
7881
- readonly type: "tui.prompt.append";
8142
+ readonly type: "persistent-pty.added";
7882
8143
  readonly location?: {
7883
8144
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7884
8145
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7885
8146
  } | undefined;
7886
8147
  readonly data: {
7887
- readonly text: string;
8148
+ 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
+ };
7888
8169
  };
7889
8170
  } | {
7890
8171
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7892,13 +8173,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7892
8173
  readonly metadata?: {
7893
8174
  readonly [x: string]: unknown;
7894
8175
  } | undefined;
7895
- readonly type: "tui.session.select";
8176
+ readonly type: "persistent-pty.removed";
7896
8177
  readonly location?: {
7897
8178
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7898
8179
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7899
8180
  } | undefined;
7900
8181
  readonly data: {
7901
8182
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8183
+ readonly ptyID: string & import("effect/Brand").Brand<"PtyID">;
7902
8184
  };
7903
8185
  } | {
7904
8186
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7906,24 +8188,19 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7906
8188
  readonly metadata?: {
7907
8189
  readonly [x: string]: unknown;
7908
8190
  } | undefined;
7909
- readonly type: "tui.toast.show";
8191
+ readonly type: "location.shutdown";
7910
8192
  readonly location?: {
7911
8193
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7912
8194
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7913
8195
  } | undefined;
7914
- readonly data: {
7915
- readonly title?: string | undefined;
7916
- readonly message: string;
7917
- readonly variant: "error" | "info" | "success" | "warning";
7918
- readonly duration: number;
7919
- };
8196
+ readonly data: {};
7920
8197
  } | {
7921
8198
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7922
8199
  readonly created: number;
7923
8200
  readonly metadata?: {
7924
8201
  readonly [x: string]: unknown;
7925
8202
  } | undefined;
7926
- readonly type: "location.shutdown";
8203
+ readonly type: "models-dev.refreshed";
7927
8204
  readonly location?: {
7928
8205
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7929
8206
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7935,19 +8212,22 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7935
8212
  readonly metadata?: {
7936
8213
  readonly [x: string]: unknown;
7937
8214
  } | undefined;
7938
- readonly type: "models-dev.refreshed";
8215
+ readonly type: "credential.switched";
7939
8216
  readonly location?: {
7940
8217
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7941
8218
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7942
8219
  } | undefined;
7943
- readonly data: {};
8220
+ readonly data: {
8221
+ readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
8222
+ readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
8223
+ };
7944
8224
  } | {
7945
8225
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7946
8226
  readonly created: number;
7947
8227
  readonly metadata?: {
7948
8228
  readonly [x: string]: unknown;
7949
8229
  } | undefined;
7950
- readonly type: "integration.updated";
8230
+ readonly type: "credential.updated";
7951
8231
  readonly location?: {
7952
8232
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7953
8233
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7959,7 +8239,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7959
8239
  readonly metadata?: {
7960
8240
  readonly [x: string]: unknown;
7961
8241
  } | undefined;
7962
- readonly type: "provider.updated";
8242
+ readonly type: "integration.updated";
7963
8243
  readonly location?: {
7964
8244
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7965
8245
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7971,7 +8251,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7971
8251
  readonly metadata?: {
7972
8252
  readonly [x: string]: unknown;
7973
8253
  } | undefined;
7974
- readonly type: "model.updated";
8254
+ readonly type: "provider.updated";
7975
8255
  readonly location?: {
7976
8256
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7977
8257
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7983,7 +8263,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7983
8263
  readonly metadata?: {
7984
8264
  readonly [x: string]: unknown;
7985
8265
  } | undefined;
7986
- readonly type: "agent.updated";
8266
+ readonly type: "model.updated";
7987
8267
  readonly location?: {
7988
8268
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7989
8269
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -8012,530 +8292,36 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8012
8292
  } | undefined;
8013
8293
  readonly type: "reference.updated";
8014
8294
  readonly location?: {
8015
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8016
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8017
- } | undefined;
8018
- readonly data: {};
8019
- } | {
8020
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8021
- readonly created: number;
8022
- readonly metadata?: {
8023
- readonly [x: string]: unknown;
8024
- } | undefined;
8025
- readonly type: "permission.asked";
8026
- readonly location?: {
8027
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8028
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8029
- } | undefined;
8030
- readonly data: {
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">;
8045
- };
8046
- } | {
8047
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8048
- readonly created: number;
8049
- readonly metadata?: {
8050
- readonly [x: string]: unknown;
8051
- } | undefined;
8052
- readonly type: "permission.replied";
8053
- readonly location?: {
8054
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8055
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8056
- } | undefined;
8057
- readonly data: {
8058
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8059
- readonly requestID: string & import("effect/Brand").Brand<"Permission.ID">;
8060
- readonly reply: "always" | "once" | "reject";
8061
- };
8062
- } | {
8063
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8064
- readonly created: number;
8065
- readonly metadata?: {
8066
- readonly [x: string]: unknown;
8067
- } | undefined;
8068
- readonly type: "project.updated";
8069
- readonly location?: {
8070
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8071
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8072
- } | undefined;
8073
- readonly data: {
8074
- readonly id: string & import("effect/Brand").Brand<"Project.ID">;
8075
- readonly canonical: string & import("effect/Brand").Brand<"AbsolutePath">;
8076
- readonly vcs?: string | undefined;
8077
- readonly name?: string | undefined;
8078
- readonly icon?: {
8079
- readonly url?: string | undefined;
8080
- readonly override?: string | undefined;
8081
- readonly color?: string | undefined;
8082
- } | undefined;
8083
- readonly commands?: {
8084
- readonly start?: string | undefined;
8085
- } | undefined;
8086
- readonly time: {
8087
- readonly created: number;
8088
- readonly updated: number;
8089
- readonly active: number;
8090
- readonly archived?: number | undefined;
8091
- };
8092
- readonly sandboxes: readonly string[];
8093
- };
8094
- } | {
8095
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8096
- readonly created: number;
8097
- readonly metadata?: {
8098
- readonly [x: string]: unknown;
8099
- } | undefined;
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
- };
8106
- readonly location?: {
8107
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8108
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8109
- } | undefined;
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
- };
8116
- } | {
8117
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8118
- readonly created: number;
8119
- readonly metadata?: {
8120
- readonly [x: string]: unknown;
8121
- } | undefined;
8122
- readonly type: "worktree.updated";
8123
- readonly location?: {
8124
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8125
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8126
- } | undefined;
8127
- readonly data: {
8128
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
8129
- };
8130
- } | {
8131
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8132
- readonly created: number;
8133
- readonly metadata?: {
8134
- readonly [x: string]: unknown;
8135
- } | undefined;
8136
- readonly type: "pty.created";
8137
- readonly location?: {
8138
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8139
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8140
- } | undefined;
8141
- readonly data: {
8142
- readonly info: {
8143
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
8144
- readonly title: string;
8145
- readonly command: string;
8146
- readonly args: readonly string[];
8147
- readonly cwd: string;
8148
- readonly status: "exited" | "running";
8149
- readonly pid: number;
8150
- readonly exitCode?: number | undefined;
8151
- };
8152
- };
8153
- } | {
8154
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8155
- readonly created: number;
8156
- readonly metadata?: {
8157
- readonly [x: string]: unknown;
8158
- } | undefined;
8159
- readonly type: "pty.deleted";
8160
- readonly location?: {
8161
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8162
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8163
- } | undefined;
8164
- readonly data: {
8165
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
8166
- };
8167
- } | {
8168
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8169
- readonly created: number;
8170
- readonly metadata?: {
8171
- readonly [x: string]: unknown;
8172
- } | undefined;
8173
- readonly type: "pty.exited";
8174
- readonly location?: {
8175
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8176
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8177
- } | undefined;
8178
- readonly data: {
8179
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
8180
- readonly exitCode: number;
8181
- };
8182
- } | {
8183
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8184
- readonly created: number;
8185
- readonly metadata?: {
8186
- readonly [x: string]: unknown;
8187
- } | undefined;
8188
- readonly type: "pty.updated";
8189
- readonly location?: {
8190
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8191
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8192
- } | undefined;
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
- };
8205
- } | {
8206
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8207
- readonly created: number;
8208
- readonly metadata?: {
8209
- readonly [x: string]: unknown;
8210
- } | undefined;
8211
- readonly type: "persistent-pty.added";
8212
- readonly location?: {
8213
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8214
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8215
- } | undefined;
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
- };
8239
- } | {
8240
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8241
- readonly created: number;
8242
- readonly metadata?: {
8243
- readonly [x: string]: unknown;
8244
- } | undefined;
8245
- readonly type: "persistent-pty.removed";
8246
- readonly location?: {
8247
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8248
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8249
- } | undefined;
8250
- readonly data: {
8251
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8252
- readonly ptyID: string & import("effect/Brand").Brand<"PtyID">;
8253
- };
8254
- } | {
8255
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8256
- readonly created: number;
8257
- readonly metadata?: {
8258
- readonly [x: string]: unknown;
8259
- } | undefined;
8260
- readonly type: "shell.created";
8261
- readonly location?: {
8262
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8263
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8264
- } | undefined;
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
- };
8285
- } | {
8286
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8287
- readonly created: number;
8288
- readonly metadata?: {
8289
- readonly [x: string]: unknown;
8290
- } | undefined;
8291
- readonly type: "shell.deleted";
8292
- readonly location?: {
8293
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8294
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8295
- } | undefined;
8296
- readonly data: {
8297
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8298
- };
8299
- } | {
8300
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8301
- readonly created: number;
8302
- readonly metadata?: {
8303
- readonly [x: string]: unknown;
8304
- } | undefined;
8305
- readonly type: "shell.exited";
8306
- readonly location?: {
8307
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8308
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8309
- } | undefined;
8310
- readonly data: {
8311
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8312
- readonly exit?: number | undefined;
8313
- readonly status: "exited" | "killed" | "running" | "timeout";
8314
- };
8315
- } | {
8316
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8317
- readonly created: number;
8318
- readonly metadata?: {
8319
- readonly [x: string]: unknown;
8320
- } | undefined;
8321
- readonly type: "form.cancelled";
8322
- readonly location?: {
8323
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8324
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8325
- } | undefined;
8326
- readonly data: {
8327
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
8328
- readonly sessionID: string;
8329
- };
8330
- } | {
8331
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8332
- readonly created: number;
8333
- readonly metadata?: {
8334
- readonly [x: string]: unknown;
8335
- } | undefined;
8336
- readonly type: "form.created";
8337
- readonly location?: {
8338
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8339
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8340
- } | undefined;
8341
- readonly data: {
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
- })[]];
8538
- };
8295
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8296
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8297
+ } | undefined;
8298
+ readonly data: {};
8299
+ } | {
8300
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8301
+ readonly created: number;
8302
+ readonly metadata?: {
8303
+ readonly [x: string]: unknown;
8304
+ } | undefined;
8305
+ readonly type: "permission.asked";
8306
+ readonly location?: {
8307
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8308
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8309
+ } | undefined;
8310
+ readonly data: {
8311
+ readonly 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">;
8539
8325
  };
8540
8326
  } | {
8541
8327
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8543,17 +8329,59 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8543
8329
  readonly metadata?: {
8544
8330
  readonly [x: string]: unknown;
8545
8331
  } | undefined;
8546
- readonly type: "form.replied";
8332
+ readonly type: "permission.replied";
8547
8333
  readonly location?: {
8548
8334
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8549
8335
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8550
8336
  } | undefined;
8551
8337
  readonly data: {
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[];
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";
8341
+ };
8342
+ } | {
8343
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8344
+ readonly created: number;
8345
+ readonly metadata?: {
8346
+ readonly [x: string]: unknown;
8347
+ } | undefined;
8348
+ readonly type: "plugin.updated";
8349
+ readonly location?: {
8350
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8351
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8352
+ } | undefined;
8353
+ readonly data: {};
8354
+ } | {
8355
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8356
+ readonly created: number;
8357
+ readonly metadata?: {
8358
+ readonly [x: string]: unknown;
8359
+ } | undefined;
8360
+ readonly type: "project.updated";
8361
+ readonly location?: {
8362
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8363
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8364
+ } | undefined;
8365
+ 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;
8556
8383
  };
8384
+ readonly sandboxes: readonly string[];
8557
8385
  };
8558
8386
  } | {
8559
8387
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8561,12 +8389,97 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8561
8389
  readonly metadata?: {
8562
8390
  readonly [x: string]: unknown;
8563
8391
  } | undefined;
8564
- readonly type: "websearch.updated";
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";
8565
8405
  readonly location?: {
8566
8406
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8567
8407
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8568
8408
  } | undefined;
8569
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";
8429
+ readonly location?: {
8430
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8431
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8432
+ } | undefined;
8433
+ 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
+ };
8451
+ };
8452
+ };
8453
+ } | {
8454
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8455
+ readonly created: number;
8456
+ readonly metadata?: {
8457
+ readonly [x: string]: unknown;
8458
+ } | 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";
8474
+ readonly location?: {
8475
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8476
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8477
+ } | 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
+ };
8570
8483
  } | {
8571
8484
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8572
8485
  readonly created: number;
@@ -8613,6 +8526,65 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8613
8526
  readonly type: "busy";
8614
8527
  };
8615
8528
  };
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
+ };
8616
8588
  } | {
8617
8589
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8618
8590
  readonly created: number;
@@ -8655,6 +8627,34 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8655
8627
  readonly data: {
8656
8628
  readonly branch?: string | undefined;
8657
8629
  };
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;