@opencode/server 0.0.0-dev-21240 → 0.0.0-dev-21246

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 +1066 -1066
  2. package/dist/api.js +5 -5
  3. package/dist/auth.js +1 -1
  4. package/dist/chunks/{location-n60r5keb.js → pty-environment-08x9tjee.js} +1 -1
  5. package/dist/chunks/{location-k8rzy6d4.js → pty-environment-0d864bga.js} +1 -1
  6. package/dist/chunks/{location-wv5twc2g.js → pty-environment-0d9kah4z.js} +8 -8
  7. package/dist/chunks/{location-cf4yyzsc.js → pty-environment-0fzrgn4b.js} +6 -6
  8. package/dist/chunks/{location-4t8kzarx.js → pty-environment-1vx9a8e5.js} +7 -7
  9. package/dist/chunks/{location-2sy3c7de.js → pty-environment-2sy3c7de.js} +1 -1
  10. package/dist/chunks/{location-9tbfz195.js → pty-environment-307mcdyb.js} +19 -19
  11. package/dist/chunks/{location-9mfgjndz.js → pty-environment-33prfkkd.js} +3 -3
  12. package/dist/chunks/{location-w0p20v2m.js → pty-environment-3c4x7dkr.js} +32 -32
  13. package/dist/chunks/{location-gsqctp76.js → pty-environment-43r48nqn.js} +2 -2
  14. package/dist/chunks/{location-w0jn068c.js → pty-environment-4d1eemzq.js} +2 -2
  15. package/dist/chunks/{location-6ypp9np2.js → pty-environment-4dv9a668.js} +2 -2
  16. package/dist/chunks/{location-4gnb9897.js → pty-environment-4hhhes7w.js} +1 -1
  17. package/dist/chunks/{location-ez8kk7rt.js → pty-environment-5zsr2h86.js} +1 -1
  18. package/dist/chunks/{location-jqrn6kzd.js → pty-environment-686p2xfa.js} +2 -2
  19. package/dist/chunks/{location-59z90t31.js → pty-environment-7504xb9s.js} +8 -8
  20. package/dist/chunks/{location-tp1rntzw.js → pty-environment-7vd5668a.js} +1 -1
  21. package/dist/chunks/{location-0cppk2bc.js → pty-environment-8137b89p.js} +2 -2
  22. package/dist/chunks/{location-ghk96rjy.js → pty-environment-93wjydnn.js} +7 -7
  23. package/dist/chunks/{location-gx9nwmym.js → pty-environment-97eb2r3v.js} +2 -2
  24. package/dist/chunks/{location-q8n44kky.js → pty-environment-9snwnvf8.js} +3 -3
  25. package/dist/chunks/{location-anm12x33.js → pty-environment-anm12x33.js} +1 -1
  26. package/dist/chunks/{location-50bbk3b2.js → pty-environment-b56hqv74.js} +3 -3
  27. package/dist/chunks/{location-krpsczf8.js → pty-environment-bx47k33v.js} +2 -2
  28. package/dist/chunks/{location-vdtx70fv.js → pty-environment-cv0ajwc9.js} +2 -2
  29. package/dist/chunks/{location-yv9sxhn9.js → pty-environment-ewe1fzkk.js} +2 -2
  30. package/dist/chunks/{location-mhfbkkb7.js → pty-environment-ftaz8n62.js} +2 -2
  31. package/dist/chunks/{location-3aej5azy.js → pty-environment-h8ws5ssa.js} +1 -1
  32. package/dist/chunks/{location-b3bmdkga.js → pty-environment-j4zqsxgy.js} +1 -1
  33. package/dist/chunks/{location-ankhmcz6.js → pty-environment-m4pd4211.js} +2 -2
  34. package/dist/chunks/{location-mahm5rvs.js → pty-environment-ptey1p5v.js} +2 -2
  35. package/dist/chunks/{location-rc3nk1bx.js → pty-environment-qbh90c1d.js} +2 -2
  36. package/dist/chunks/{location-vbanrv0z.js → pty-environment-rf01ee6q.js} +1 -1
  37. package/dist/chunks/{location-mk2mz66m.js → pty-environment-rntbwr87.js} +2 -2
  38. package/dist/chunks/{location-x6486bry.js → pty-environment-sstsrjtg.js} +8 -8
  39. package/dist/chunks/{location-j1p3e665.js → pty-environment-ssyxw8nc.js} +2 -2
  40. package/dist/chunks/{location-7j4237sy.js → pty-environment-tavn74n1.js} +3 -3
  41. package/dist/chunks/{location-3atcw39t.js → pty-environment-vb5yx5r0.js} +2 -2
  42. package/dist/chunks/{location-esbdfpyn.js → pty-environment-vbzm2jgm.js} +2 -2
  43. package/dist/chunks/{location-dr1f0hkr.js → pty-environment-wk806w00.js} +3 -3
  44. package/dist/chunks/{location-5w24ch67.js → pty-environment-xsrtpxyd.js} +4 -4
  45. package/dist/chunks/{location-eaxk76q8.js → pty-environment-yehasrps.js} +2 -2
  46. package/dist/chunks/{location-yfz2nrjq.js → pty-environment-yfz2nrjq.js} +1 -1
  47. package/dist/chunks/{location-7b00qdf6.js → pty-environment-z6sxg6td.js} +1 -1
  48. package/dist/chunks/{location-p6ct2ak8.js → pty-environment-zessacar.js} +2 -2
  49. package/dist/cors.js +1 -1
  50. package/dist/event-feed.js +1 -1
  51. package/dist/fetch.js +50 -50
  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 +5 -5
  92. package/dist/process.js +52 -52
  93. package/dist/pty-environment.js +7 -7
  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 +3 -3
  98. package/dist/workerd.js +51 -51
  99. package/package.json +8 -8
  100. /package/dist/chunks/{location-9rqn6x4v.js → pty-environment-9rqn6x4v.js} +0 -0
  101. /package/dist/chunks/{location-erzfdgke.js → pty-environment-erzfdgke.js} +0 -0
  102. /package/dist/chunks/{location-h6rt5k9s.js → pty-environment-h6rt5k9s.js} +0 -0
  103. /package/dist/chunks/{location-q4bn6dy8.js → pty-environment-q4bn6dy8.js} +0 -0
  104. /package/dist/chunks/{location-smaf4a18.js → pty-environment-smaf4a18.js} +0 -0
  105. /package/dist/chunks/{location-yc7nft6q.js → pty-environment-yc7nft6q.js} +0 -0
package/dist/api.d.ts CHANGED
@@ -6460,19 +6460,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6460
6460
  readonly metadata?: {
6461
6461
  readonly [x: string]: unknown;
6462
6462
  } | undefined;
6463
- readonly type: "integration.updated";
6464
- readonly location?: {
6465
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6466
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6467
- } | undefined;
6468
- readonly data: {};
6469
- } | {
6470
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6471
- readonly created: number;
6472
- readonly metadata?: {
6473
- readonly [x: string]: unknown;
6474
- } | undefined;
6475
- readonly type: "model.updated";
6463
+ readonly type: "skill.updated";
6476
6464
  readonly location?: {
6477
6465
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6478
6466
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -6484,31 +6472,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6484
6472
  readonly metadata?: {
6485
6473
  readonly [x: string]: unknown;
6486
6474
  } | undefined;
6487
- readonly type: "project.updated";
6475
+ readonly type: "form.cancelled";
6488
6476
  readonly location?: {
6489
6477
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6490
6478
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6491
6479
  } | undefined;
6492
6480
  readonly data: {
6493
- readonly id: string & import("effect/Brand").Brand<"Project.ID">;
6494
- readonly canonical: string & import("effect/Brand").Brand<"AbsolutePath">;
6495
- readonly vcs?: string | undefined;
6496
- readonly name?: string | undefined;
6497
- readonly icon?: {
6498
- readonly url?: string | undefined;
6499
- readonly override?: string | undefined;
6500
- readonly color?: string | undefined;
6501
- } | undefined;
6502
- readonly commands?: {
6503
- readonly start?: string | undefined;
6504
- } | undefined;
6505
- readonly time: {
6506
- readonly created: number;
6507
- readonly updated: number;
6508
- readonly active: number;
6509
- readonly archived?: number | undefined;
6510
- };
6511
- readonly sandboxes: readonly string[];
6481
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
6482
+ readonly sessionID: string;
6512
6483
  };
6513
6484
  } | {
6514
6485
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6516,149 +6487,208 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6516
6487
  readonly metadata?: {
6517
6488
  readonly [x: string]: unknown;
6518
6489
  } | undefined;
6519
- readonly type: "location.shutdown";
6520
- readonly location?: {
6521
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6522
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6523
- } | undefined;
6524
- readonly data: {};
6525
- } | {
6526
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6527
- readonly created: number;
6528
- readonly metadata?: {
6529
- readonly [x: string]: unknown;
6530
- } | undefined;
6531
- readonly type: "persistent-pty.added";
6490
+ readonly type: "form.created";
6532
6491
  readonly location?: {
6533
6492
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6534
6493
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6535
6494
  } | undefined;
6536
6495
  readonly data: {
6537
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6538
- readonly terminal: {
6539
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
6496
+ readonly form: {
6497
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
6498
+ readonly sessionID: string;
6540
6499
  readonly title: string;
6541
- readonly command: string;
6542
- readonly args: readonly string[];
6543
- readonly cwd: string;
6544
- readonly status: "exited" | "running";
6545
- readonly pid: number;
6546
- readonly exitCode?: number | undefined;
6547
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6548
- readonly foregroundProcess: string | null;
6549
- readonly size: {
6550
- readonly cols: number;
6551
- readonly rows: number;
6552
- };
6553
- readonly output: {
6554
- readonly head: number;
6555
- readonly tail: number;
6556
- };
6557
- };
6558
- };
6559
- } | {
6560
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6561
- readonly created: number;
6562
- readonly metadata?: {
6563
- readonly [x: string]: unknown;
6564
- } | undefined;
6565
- readonly type: "persistent-pty.removed";
6566
- readonly location?: {
6567
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6568
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6569
- } | undefined;
6570
- readonly data: {
6571
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6572
- readonly ptyID: string & import("effect/Brand").Brand<"PtyID">;
6573
- };
6574
- } | {
6575
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6576
- readonly created: number;
6577
- readonly metadata?: {
6578
- readonly [x: string]: unknown;
6579
- } | undefined;
6580
- readonly type: "session.inbox.enqueued";
6581
- readonly durable: {
6582
- readonly aggregateID: string;
6583
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6584
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6585
- };
6586
- readonly location?: {
6587
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6588
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6589
- } | undefined;
6590
- readonly data: {
6591
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6592
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6593
- readonly item: {
6594
- readonly type: "user";
6595
- readonly payload: {
6596
- readonly text: string;
6597
- readonly files?: readonly {
6598
- readonly data: string;
6599
- readonly mime: string;
6600
- readonly source: {
6601
- readonly type: "inline";
6602
- } | {
6603
- readonly type: "uri";
6604
- readonly uri: string;
6605
- };
6606
- readonly name?: string | undefined;
6500
+ readonly metadata?: {
6501
+ readonly [x: string]: unknown;
6502
+ } | undefined;
6503
+ readonly fields: readonly [{
6504
+ readonly key: string;
6505
+ readonly title?: string | undefined;
6506
+ readonly description?: string | undefined;
6507
+ readonly required?: boolean | undefined;
6508
+ readonly hidden?: boolean | undefined;
6509
+ readonly when?: readonly {
6510
+ readonly key: string;
6511
+ readonly op: "eq" | "neq";
6512
+ readonly value: string | number | boolean;
6513
+ }[] | undefined;
6514
+ readonly type: "string";
6515
+ readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
6516
+ readonly minLength?: number | undefined;
6517
+ readonly maxLength?: number | undefined;
6518
+ readonly pattern?: string | undefined;
6519
+ readonly placeholder?: string | undefined;
6520
+ readonly default?: string | undefined;
6521
+ readonly options?: readonly {
6522
+ readonly value: string;
6523
+ readonly label: string;
6607
6524
  readonly description?: string | undefined;
6608
- readonly mention?: {
6609
- readonly start: number;
6610
- readonly end: number;
6611
- readonly text: string;
6612
- } | undefined;
6613
6525
  }[] | undefined;
6614
- readonly agents?: readonly {
6615
- readonly name: string;
6616
- readonly mention?: {
6617
- readonly start: number;
6618
- readonly end: number;
6619
- readonly text: string;
6620
- } | undefined;
6526
+ readonly custom?: boolean | undefined;
6527
+ } | {
6528
+ readonly key: string;
6529
+ readonly title?: string | undefined;
6530
+ readonly description?: string | undefined;
6531
+ readonly required?: boolean | undefined;
6532
+ readonly hidden?: boolean | undefined;
6533
+ readonly when?: readonly {
6534
+ readonly key: string;
6535
+ readonly op: "eq" | "neq";
6536
+ readonly value: string | number | boolean;
6621
6537
  }[] | undefined;
6622
- readonly skills?: readonly {
6623
- readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
6624
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
6625
- readonly text?: string | undefined;
6626
- readonly mention?: {
6627
- readonly start: number;
6628
- readonly end: number;
6629
- readonly text: string;
6630
- } | undefined;
6538
+ readonly type: "number";
6539
+ readonly minimum?: number | undefined;
6540
+ readonly maximum?: number | undefined;
6541
+ readonly default?: number | undefined;
6542
+ } | {
6543
+ readonly key: string;
6544
+ readonly title?: string | undefined;
6545
+ readonly description?: string | undefined;
6546
+ readonly required?: boolean | undefined;
6547
+ readonly hidden?: boolean | undefined;
6548
+ readonly when?: readonly {
6549
+ readonly key: string;
6550
+ readonly op: "eq" | "neq";
6551
+ readonly value: string | number | boolean;
6631
6552
  }[] | undefined;
6632
- readonly metadata?: {
6633
- readonly [x: string]: unknown;
6634
- } | undefined;
6635
- };
6636
- readonly delivery: "queue" | "steer";
6637
- } | {
6638
- readonly type: "synthetic";
6639
- readonly payload: {
6640
- readonly text: string;
6553
+ readonly type: "integer";
6554
+ readonly minimum?: number | undefined;
6555
+ readonly maximum?: number | undefined;
6556
+ readonly default?: number | undefined;
6557
+ } | {
6558
+ readonly key: string;
6559
+ readonly title?: string | undefined;
6641
6560
  readonly description?: string | undefined;
6642
- readonly metadata?: {
6643
- readonly [x: string]: unknown;
6644
- } | undefined;
6645
- };
6646
- readonly delivery: "queue" | "steer";
6647
- } | {
6648
- readonly type: "compaction";
6649
- readonly payload: {};
6650
- readonly delivery: "queue" | "steer";
6651
- } | {
6652
- readonly type: "move";
6653
- readonly payload: {
6654
- readonly location: {
6655
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6656
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6657
- };
6658
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
6659
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
6660
- };
6661
- readonly delivery: "queue" | "steer";
6561
+ readonly required?: boolean | undefined;
6562
+ readonly hidden?: boolean | undefined;
6563
+ readonly when?: readonly {
6564
+ readonly key: string;
6565
+ readonly op: "eq" | "neq";
6566
+ readonly value: string | number | boolean;
6567
+ }[] | undefined;
6568
+ readonly type: "boolean";
6569
+ readonly default?: boolean | undefined;
6570
+ } | {
6571
+ readonly key: string;
6572
+ readonly title?: string | undefined;
6573
+ readonly description?: string | undefined;
6574
+ readonly required?: boolean | undefined;
6575
+ readonly hidden?: boolean | undefined;
6576
+ readonly when?: readonly {
6577
+ readonly key: string;
6578
+ readonly op: "eq" | "neq";
6579
+ readonly value: string | number | boolean;
6580
+ }[] | undefined;
6581
+ readonly type: "multiselect";
6582
+ readonly options: readonly {
6583
+ readonly value: string;
6584
+ readonly label: string;
6585
+ readonly description?: string | undefined;
6586
+ }[];
6587
+ readonly minItems?: number | undefined;
6588
+ readonly maxItems?: number | undefined;
6589
+ readonly custom?: boolean | undefined;
6590
+ readonly default?: readonly string[] | undefined;
6591
+ } | {
6592
+ readonly key: string;
6593
+ readonly type: "external";
6594
+ readonly url: string;
6595
+ readonly title?: string | undefined;
6596
+ readonly description?: string | undefined;
6597
+ }, ...({
6598
+ readonly key: string;
6599
+ readonly title?: string | undefined;
6600
+ readonly description?: string | undefined;
6601
+ readonly required?: boolean | undefined;
6602
+ readonly hidden?: boolean | undefined;
6603
+ readonly when?: readonly {
6604
+ readonly key: string;
6605
+ readonly op: "eq" | "neq";
6606
+ readonly value: string | number | boolean;
6607
+ }[] | undefined;
6608
+ readonly type: "string";
6609
+ readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
6610
+ readonly minLength?: number | undefined;
6611
+ readonly maxLength?: number | undefined;
6612
+ readonly pattern?: string | undefined;
6613
+ readonly placeholder?: string | undefined;
6614
+ readonly default?: string | undefined;
6615
+ readonly options?: readonly {
6616
+ readonly value: string;
6617
+ readonly label: string;
6618
+ readonly description?: string | undefined;
6619
+ }[] | undefined;
6620
+ readonly custom?: boolean | undefined;
6621
+ } | {
6622
+ readonly key: string;
6623
+ readonly title?: string | undefined;
6624
+ readonly description?: string | undefined;
6625
+ readonly required?: boolean | undefined;
6626
+ readonly hidden?: boolean | undefined;
6627
+ readonly when?: readonly {
6628
+ readonly key: string;
6629
+ readonly op: "eq" | "neq";
6630
+ readonly value: string | number | boolean;
6631
+ }[] | undefined;
6632
+ readonly type: "number";
6633
+ readonly minimum?: number | undefined;
6634
+ readonly maximum?: number | undefined;
6635
+ readonly default?: number | undefined;
6636
+ } | {
6637
+ readonly key: string;
6638
+ readonly title?: string | undefined;
6639
+ readonly description?: string | undefined;
6640
+ readonly required?: boolean | undefined;
6641
+ readonly hidden?: boolean | undefined;
6642
+ readonly when?: readonly {
6643
+ readonly key: string;
6644
+ readonly op: "eq" | "neq";
6645
+ readonly value: string | number | boolean;
6646
+ }[] | undefined;
6647
+ readonly type: "integer";
6648
+ readonly minimum?: number | undefined;
6649
+ readonly maximum?: number | undefined;
6650
+ readonly default?: number | undefined;
6651
+ } | {
6652
+ readonly key: string;
6653
+ readonly title?: string | undefined;
6654
+ readonly description?: string | undefined;
6655
+ readonly required?: boolean | undefined;
6656
+ readonly hidden?: boolean | undefined;
6657
+ readonly when?: readonly {
6658
+ readonly key: string;
6659
+ readonly op: "eq" | "neq";
6660
+ readonly value: string | number | boolean;
6661
+ }[] | undefined;
6662
+ readonly type: "boolean";
6663
+ readonly default?: boolean | undefined;
6664
+ } | {
6665
+ readonly key: string;
6666
+ readonly title?: string | undefined;
6667
+ readonly description?: string | undefined;
6668
+ readonly required?: boolean | undefined;
6669
+ readonly hidden?: boolean | undefined;
6670
+ readonly when?: readonly {
6671
+ readonly key: string;
6672
+ readonly op: "eq" | "neq";
6673
+ readonly value: string | number | boolean;
6674
+ }[] | undefined;
6675
+ readonly type: "multiselect";
6676
+ readonly options: readonly {
6677
+ readonly value: string;
6678
+ readonly label: string;
6679
+ readonly description?: string | undefined;
6680
+ }[];
6681
+ readonly minItems?: number | undefined;
6682
+ readonly maxItems?: number | undefined;
6683
+ readonly custom?: boolean | undefined;
6684
+ readonly default?: readonly string[] | undefined;
6685
+ } | {
6686
+ readonly key: string;
6687
+ readonly type: "external";
6688
+ readonly url: string;
6689
+ readonly title?: string | undefined;
6690
+ readonly description?: string | undefined;
6691
+ })[]];
6662
6692
  };
6663
6693
  };
6664
6694
  } | {
@@ -6667,80 +6697,17 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6667
6697
  readonly metadata?: {
6668
6698
  readonly [x: string]: unknown;
6669
6699
  } | undefined;
6670
- readonly type: "session.inbox.cancelled";
6671
- readonly durable: {
6672
- readonly aggregateID: string;
6673
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6674
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6675
- };
6676
- readonly location?: {
6677
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6678
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6679
- } | undefined;
6680
- readonly data: {
6681
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6682
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6683
- };
6684
- } | {
6685
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6686
- readonly created: number;
6687
- readonly metadata?: {
6688
- readonly [x: string]: unknown;
6689
- } | undefined;
6690
- readonly type: "session.inbox.delivery.changed";
6691
- readonly durable: {
6692
- readonly aggregateID: string;
6693
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6694
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6695
- };
6696
- readonly location?: {
6697
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6698
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6699
- } | undefined;
6700
- readonly data: {
6701
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6702
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6703
- readonly delivery: "queue" | "steer";
6704
- };
6705
- } | {
6706
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6707
- readonly created: number;
6708
- readonly metadata?: {
6709
- readonly [x: string]: unknown;
6710
- } | undefined;
6711
- readonly type: "session.agent.selected";
6712
- readonly durable: {
6713
- readonly aggregateID: string;
6714
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6715
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6716
- };
6717
- readonly location?: {
6718
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6719
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6720
- } | undefined;
6721
- readonly data: {
6722
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6723
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
6724
- readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
6725
- };
6726
- } | {
6727
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6728
- readonly created: number;
6729
- readonly metadata?: {
6730
- readonly [x: string]: unknown;
6731
- } | undefined;
6732
- readonly type: "session.archived";
6733
- readonly durable: {
6734
- readonly aggregateID: string;
6735
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6736
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6737
- };
6700
+ readonly type: "form.replied";
6738
6701
  readonly location?: {
6739
6702
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6740
6703
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6741
6704
  } | undefined;
6742
6705
  readonly data: {
6743
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6706
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
6707
+ readonly sessionID: string;
6708
+ readonly answer: {
6709
+ readonly [x: string]: string | number | boolean | readonly string[];
6710
+ };
6744
6711
  };
6745
6712
  } | {
6746
6713
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6748,51 +6715,30 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6748
6715
  readonly metadata?: {
6749
6716
  readonly [x: string]: unknown;
6750
6717
  } | undefined;
6751
- readonly type: "session.compaction.ended";
6752
- readonly durable: {
6753
- readonly aggregateID: string;
6754
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6755
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6756
- };
6718
+ readonly type: "shell.created";
6757
6719
  readonly location?: {
6758
6720
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6759
6721
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6760
6722
  } | undefined;
6761
6723
  readonly data: {
6762
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6763
- readonly reason: "auto" | "manual";
6764
- readonly model?: {
6765
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6766
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6767
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6768
- } | undefined;
6769
- readonly providerState?: {
6770
- readonly [x: string]: unknown;
6771
- } | undefined;
6772
- readonly providerContext?: {
6773
- readonly version: 1;
6774
- readonly provenance: {
6775
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6776
- readonly provider: string;
6777
- readonly modelID: string;
6778
- readonly route: string;
6779
- readonly protocol: string;
6780
- readonly endpoint: string;
6724
+ readonly info: {
6725
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
6726
+ readonly status: "exited" | "killed" | "running" | "timeout";
6727
+ readonly command: string;
6728
+ readonly cwd: string;
6729
+ readonly shell: string;
6730
+ readonly file: string;
6731
+ readonly pid?: number | undefined;
6732
+ readonly exit?: number | undefined;
6733
+ readonly signal?: string | undefined;
6734
+ readonly metadata: {
6735
+ readonly [x: string]: unknown;
6781
6736
  };
6782
- readonly messages: import("effect/Schema").Json;
6783
- } | undefined;
6784
- readonly text: string;
6785
- readonly recent: string;
6786
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
6787
- readonly tokens?: {
6788
- readonly input: number;
6789
- readonly output: number;
6790
- readonly reasoning: number;
6791
- readonly cache: {
6792
- readonly read: number;
6793
- readonly write: number;
6737
+ readonly time: {
6738
+ readonly started: number;
6739
+ readonly completed?: number | undefined;
6794
6740
  };
6795
- } | undefined;
6741
+ };
6796
6742
  };
6797
6743
  } | {
6798
6744
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6800,38 +6746,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6800
6746
  readonly metadata?: {
6801
6747
  readonly [x: string]: unknown;
6802
6748
  } | undefined;
6803
- readonly type: "session.compaction.failed";
6804
- readonly durable: {
6805
- readonly aggregateID: string;
6806
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6807
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6808
- };
6749
+ readonly type: "shell.deleted";
6809
6750
  readonly location?: {
6810
6751
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6811
6752
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6812
6753
  } | undefined;
6813
6754
  readonly data: {
6814
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6815
- readonly reason: "auto" | "manual";
6816
- readonly error: {
6817
- readonly type: string;
6818
- readonly message: string;
6819
- readonly status?: number | undefined;
6820
- readonly response?: {
6821
- readonly body: string;
6822
- } | undefined;
6823
- };
6824
- readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
6825
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
6826
- readonly tokens?: {
6827
- readonly input: number;
6828
- readonly output: number;
6829
- readonly reasoning: number;
6830
- readonly cache: {
6831
- readonly read: number;
6832
- readonly write: number;
6833
- };
6834
- } | undefined;
6755
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
6835
6756
  };
6836
6757
  } | {
6837
6758
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6839,21 +6760,15 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6839
6760
  readonly metadata?: {
6840
6761
  readonly [x: string]: unknown;
6841
6762
  } | undefined;
6842
- readonly type: "session.compaction.started";
6843
- readonly durable: {
6844
- readonly aggregateID: string;
6845
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6846
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6847
- };
6763
+ readonly type: "shell.exited";
6848
6764
  readonly location?: {
6849
6765
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6850
6766
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6851
6767
  } | undefined;
6852
6768
  readonly data: {
6853
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6854
- readonly reason: "auto" | "manual";
6855
- readonly recent: string;
6856
- readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
6769
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
6770
+ readonly exit?: number | undefined;
6771
+ readonly status: "exited" | "killed" | "running" | "timeout";
6857
6772
  };
6858
6773
  } | {
6859
6774
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6861,88 +6776,37 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6861
6776
  readonly metadata?: {
6862
6777
  readonly [x: string]: unknown;
6863
6778
  } | undefined;
6864
- readonly type: "session.created";
6865
- readonly durable: {
6866
- readonly aggregateID: string;
6867
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6868
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6869
- };
6779
+ readonly type: "command.updated";
6870
6780
  readonly location?: {
6871
6781
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6872
6782
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6873
6783
  } | undefined;
6874
- readonly data: {
6875
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6876
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
6877
- readonly location: {
6878
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6879
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6880
- };
6881
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
6882
- readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
6883
- readonly slug: string;
6884
- readonly title?: string | undefined;
6885
- readonly agent?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
6886
- readonly model?: {
6887
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6888
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6889
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6890
- } | undefined;
6891
- readonly metadata?: {
6892
- readonly [x: string]: import("effect/Schema").Json;
6893
- } | undefined;
6894
- readonly permissions?: readonly {
6895
- readonly action: string;
6896
- readonly resource: string;
6897
- readonly effect: "allow" | "ask" | "deny";
6898
- }[] | undefined;
6899
- readonly version: string;
6900
- };
6784
+ readonly data: {};
6901
6785
  } | {
6902
6786
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6903
6787
  readonly created: number;
6904
6788
  readonly metadata?: {
6905
6789
  readonly [x: string]: unknown;
6906
6790
  } | undefined;
6907
- readonly type: "session.deleted";
6908
- readonly durable: {
6909
- readonly aggregateID: string;
6910
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6911
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6912
- };
6791
+ readonly type: "config.updated";
6913
6792
  readonly location?: {
6914
6793
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6915
6794
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6916
6795
  } | undefined;
6917
- readonly data: {
6918
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6919
- };
6796
+ readonly data: {};
6920
6797
  } | {
6921
6798
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6922
6799
  readonly created: number;
6923
6800
  readonly metadata?: {
6924
6801
  readonly [x: string]: unknown;
6925
6802
  } | undefined;
6926
- readonly type: "session.execution.failed";
6927
- readonly durable: {
6928
- readonly aggregateID: string;
6929
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6930
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6931
- };
6803
+ readonly type: "mcp.resources.changed";
6932
6804
  readonly location?: {
6933
6805
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6934
6806
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6935
6807
  } | undefined;
6936
6808
  readonly data: {
6937
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6938
- readonly error: {
6939
- readonly type: string;
6940
- readonly message: string;
6941
- readonly status?: number | undefined;
6942
- readonly response?: {
6943
- readonly body: string;
6944
- } | undefined;
6945
- };
6809
+ readonly server: string;
6946
6810
  };
6947
6811
  } | {
6948
6812
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6950,19 +6814,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6950
6814
  readonly metadata?: {
6951
6815
  readonly [x: string]: unknown;
6952
6816
  } | undefined;
6953
- readonly type: "session.execution.interrupted";
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
- };
6817
+ readonly type: "mcp.status.changed";
6959
6818
  readonly location?: {
6960
6819
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6961
6820
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6962
6821
  } | undefined;
6963
6822
  readonly data: {
6964
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6965
- readonly reason: "inactivity" | "shutdown" | "superseded" | "user";
6823
+ readonly server: string;
6966
6824
  };
6967
6825
  } | {
6968
6826
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6970,31 +6828,19 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6970
6828
  readonly metadata?: {
6971
6829
  readonly [x: string]: unknown;
6972
6830
  } | undefined;
6973
- readonly type: "session.execution.started";
6974
- readonly durable: {
6975
- readonly aggregateID: string;
6976
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6977
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6978
- };
6831
+ readonly type: "plugin.updated";
6979
6832
  readonly location?: {
6980
6833
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6981
6834
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6982
6835
  } | undefined;
6983
- readonly data: {
6984
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6985
- };
6836
+ readonly data: {};
6986
6837
  } | {
6987
6838
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6988
6839
  readonly created: number;
6989
6840
  readonly metadata?: {
6990
6841
  readonly [x: string]: unknown;
6991
6842
  } | undefined;
6992
- readonly type: "session.execution.succeeded";
6993
- readonly durable: {
6994
- readonly aggregateID: string;
6995
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6996
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6997
- };
6843
+ readonly type: "session.idle";
6998
6844
  readonly location?: {
6999
6845
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7000
6846
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7008,34 +6854,31 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7008
6854
  readonly metadata?: {
7009
6855
  readonly [x: string]: unknown;
7010
6856
  } | undefined;
7011
- readonly type: "session.forked";
7012
- readonly durable: {
7013
- readonly aggregateID: string;
7014
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7015
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7016
- };
6857
+ readonly type: "session.status";
7017
6858
  readonly location?: {
7018
6859
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7019
6860
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7020
6861
  } | undefined;
7021
6862
  readonly data: {
7022
6863
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7023
- readonly parentID: string & import("effect/Brand").Brand<"SessionID">;
7024
- readonly boundary: {
7025
- readonly type: "before";
7026
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6864
+ readonly status: {
6865
+ readonly type: "idle";
7027
6866
  } | {
7028
- readonly type: "through";
7029
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6867
+ readonly type: "retry";
6868
+ readonly attempt: number;
6869
+ readonly message: string;
6870
+ readonly action?: {
6871
+ readonly reason: string;
6872
+ readonly provider: string;
6873
+ readonly title: string;
6874
+ readonly message: string;
6875
+ readonly label: string;
6876
+ readonly link?: string | undefined;
6877
+ } | undefined;
6878
+ readonly next: number;
6879
+ } | {
6880
+ readonly type: "busy";
7030
6881
  };
7031
- readonly instructions?: {
7032
- readonly [x: string & import("effect/Brand").Brand<"Instruction.Key">]: string & import("effect/Brand").Brand<"Instruction.Hash">;
7033
- } | undefined;
7034
- readonly instructionEntries?: readonly {
7035
- readonly key: string;
7036
- readonly value: import("effect/Schema").Json;
7037
- readonly removed: boolean;
7038
- }[] | undefined;
7039
6882
  };
7040
6883
  } | {
7041
6884
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7043,7 +6886,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7043
6886
  readonly metadata?: {
7044
6887
  readonly [x: string]: unknown;
7045
6888
  } | undefined;
7046
- readonly type: "session.inbox.delivered";
6889
+ readonly type: "session.agent.selected";
7047
6890
  readonly durable: {
7048
6891
  readonly aggregateID: string;
7049
6892
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7055,7 +6898,8 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7055
6898
  } | undefined;
7056
6899
  readonly data: {
7057
6900
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7058
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6901
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
6902
+ readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
7059
6903
  };
7060
6904
  } | {
7061
6905
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7063,7 +6907,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7063
6907
  readonly metadata?: {
7064
6908
  readonly [x: string]: unknown;
7065
6909
  } | undefined;
7066
- readonly type: "session.instructions.updated";
6910
+ readonly type: "session.archived";
7067
6911
  readonly durable: {
7068
6912
  readonly aggregateID: string;
7069
6913
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7075,10 +6919,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7075
6919
  } | undefined;
7076
6920
  readonly data: {
7077
6921
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7078
- readonly delta: {
7079
- readonly [x: string]: "removed" | (string & import("effect/Brand").Brand<"Instruction.Hash">);
7080
- };
7081
- readonly text?: string | undefined;
7082
6922
  };
7083
6923
  } | {
7084
6924
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7086,7 +6926,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7086
6926
  readonly metadata?: {
7087
6927
  readonly [x: string]: unknown;
7088
6928
  } | undefined;
7089
- readonly type: "session.metadata.updated";
6929
+ readonly type: "session.compaction.ended";
7090
6930
  readonly durable: {
7091
6931
  readonly aggregateID: string;
7092
6932
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7098,9 +6938,39 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7098
6938
  } | undefined;
7099
6939
  readonly data: {
7100
6940
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7101
- readonly metadata: {
7102
- readonly [x: string]: import("effect/Schema").Json;
7103
- };
6941
+ readonly reason: "auto" | "manual";
6942
+ readonly model?: {
6943
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6944
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6945
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6946
+ } | undefined;
6947
+ readonly providerState?: {
6948
+ readonly [x: string]: unknown;
6949
+ } | undefined;
6950
+ readonly providerContext?: {
6951
+ readonly version: 1;
6952
+ readonly provenance: {
6953
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6954
+ readonly provider: string;
6955
+ readonly modelID: string;
6956
+ readonly route: string;
6957
+ readonly protocol: string;
6958
+ readonly endpoint: string;
6959
+ };
6960
+ readonly messages: import("effect/Schema").Json;
6961
+ } | undefined;
6962
+ readonly text: string;
6963
+ readonly recent: string;
6964
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
6965
+ readonly tokens?: {
6966
+ readonly input: number;
6967
+ readonly output: number;
6968
+ readonly reasoning: number;
6969
+ readonly cache: {
6970
+ readonly read: number;
6971
+ readonly write: number;
6972
+ };
6973
+ } | undefined;
7104
6974
  };
7105
6975
  } | {
7106
6976
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7108,7 +6978,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7108
6978
  readonly metadata?: {
7109
6979
  readonly [x: string]: unknown;
7110
6980
  } | undefined;
7111
- readonly type: "session.model.selected";
6981
+ readonly type: "session.compaction.failed";
7112
6982
  readonly durable: {
7113
6983
  readonly aggregateID: string;
7114
6984
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7120,15 +6990,25 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7120
6990
  } | undefined;
7121
6991
  readonly data: {
7122
6992
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7123
- readonly model: {
7124
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7125
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7126
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6993
+ readonly reason: "auto" | "manual";
6994
+ readonly error: {
6995
+ readonly type: string;
6996
+ readonly message: string;
6997
+ readonly status?: number | undefined;
6998
+ readonly response?: {
6999
+ readonly body: string;
7000
+ } | undefined;
7127
7001
  };
7128
- readonly previous?: {
7129
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7130
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7131
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7002
+ readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
7003
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
7004
+ readonly tokens?: {
7005
+ readonly input: number;
7006
+ readonly output: number;
7007
+ readonly reasoning: number;
7008
+ readonly cache: {
7009
+ readonly read: number;
7010
+ readonly write: number;
7011
+ };
7132
7012
  } | undefined;
7133
7013
  };
7134
7014
  } | {
@@ -7137,7 +7017,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7137
7017
  readonly metadata?: {
7138
7018
  readonly [x: string]: unknown;
7139
7019
  } | undefined;
7140
- readonly type: "session.moved";
7020
+ readonly type: "session.compaction.started";
7141
7021
  readonly durable: {
7142
7022
  readonly aggregateID: string;
7143
7023
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7148,13 +7028,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7148
7028
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7149
7029
  } | undefined;
7150
7030
  readonly data: {
7151
- readonly location: {
7152
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7153
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7154
- };
7155
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
7156
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
7157
7031
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7032
+ readonly reason: "auto" | "manual";
7033
+ readonly recent: string;
7034
+ readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
7158
7035
  };
7159
7036
  } | {
7160
7037
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7162,7 +7039,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7162
7039
  readonly metadata?: {
7163
7040
  readonly [x: string]: unknown;
7164
7041
  } | undefined;
7165
- readonly type: "session.permissions";
7042
+ readonly type: "session.created";
7166
7043
  readonly durable: {
7167
7044
  readonly aggregateID: string;
7168
7045
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7174,11 +7051,30 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7174
7051
  } | undefined;
7175
7052
  readonly data: {
7176
7053
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7177
- readonly permissions: readonly {
7054
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
7055
+ readonly location: {
7056
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7057
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7058
+ };
7059
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
7060
+ readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
7061
+ readonly slug: string;
7062
+ readonly title?: string | undefined;
7063
+ readonly agent?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
7064
+ readonly model?: {
7065
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7066
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7067
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7068
+ } | undefined;
7069
+ readonly metadata?: {
7070
+ readonly [x: string]: import("effect/Schema").Json;
7071
+ } | undefined;
7072
+ readonly permissions?: readonly {
7178
7073
  readonly action: string;
7179
7074
  readonly resource: string;
7180
7075
  readonly effect: "allow" | "ask" | "deny";
7181
- }[];
7076
+ }[] | undefined;
7077
+ readonly version: string;
7182
7078
  };
7183
7079
  } | {
7184
7080
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7186,7 +7082,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7186
7082
  readonly metadata?: {
7187
7083
  readonly [x: string]: unknown;
7188
7084
  } | undefined;
7189
- readonly type: "session.reasoning.ended";
7085
+ readonly type: "session.deleted";
7190
7086
  readonly durable: {
7191
7087
  readonly aggregateID: string;
7192
7088
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7198,12 +7094,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7198
7094
  } | undefined;
7199
7095
  readonly data: {
7200
7096
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7201
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7202
- readonly ordinal: number;
7203
- readonly text: string;
7204
- readonly state?: {
7205
- readonly [x: string]: unknown;
7206
- } | undefined;
7207
7097
  };
7208
7098
  } | {
7209
7099
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7211,7 +7101,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7211
7101
  readonly metadata?: {
7212
7102
  readonly [x: string]: unknown;
7213
7103
  } | undefined;
7214
- readonly type: "session.reasoning.started";
7104
+ readonly type: "session.execution.failed";
7215
7105
  readonly durable: {
7216
7106
  readonly aggregateID: string;
7217
7107
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7223,11 +7113,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7223
7113
  } | undefined;
7224
7114
  readonly data: {
7225
7115
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7226
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7227
- readonly ordinal: number;
7228
- readonly state?: {
7229
- readonly [x: string]: unknown;
7230
- } | undefined;
7116
+ readonly error: {
7117
+ readonly type: string;
7118
+ readonly message: string;
7119
+ readonly status?: number | undefined;
7120
+ readonly response?: {
7121
+ readonly body: string;
7122
+ } | undefined;
7123
+ };
7231
7124
  };
7232
7125
  } | {
7233
7126
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7235,7 +7128,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7235
7128
  readonly metadata?: {
7236
7129
  readonly [x: string]: unknown;
7237
7130
  } | undefined;
7238
- readonly type: "session.renamed";
7131
+ readonly type: "session.execution.interrupted";
7239
7132
  readonly durable: {
7240
7133
  readonly aggregateID: string;
7241
7134
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7247,7 +7140,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7247
7140
  } | undefined;
7248
7141
  readonly data: {
7249
7142
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7250
- readonly title: string;
7143
+ readonly reason: "inactivity" | "shutdown" | "superseded" | "user";
7251
7144
  };
7252
7145
  } | {
7253
7146
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7255,7 +7148,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7255
7148
  readonly metadata?: {
7256
7149
  readonly [x: string]: unknown;
7257
7150
  } | undefined;
7258
- readonly type: "session.retry.scheduled";
7151
+ readonly type: "session.execution.started";
7259
7152
  readonly durable: {
7260
7153
  readonly aggregateID: string;
7261
7154
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7267,17 +7160,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7267
7160
  } | undefined;
7268
7161
  readonly data: {
7269
7162
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7270
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7271
- readonly attempt: number;
7272
- readonly at: number;
7273
- readonly error: {
7274
- readonly type: string;
7275
- readonly message: string;
7276
- readonly status?: number | undefined;
7277
- readonly response?: {
7278
- readonly body: string;
7279
- } | undefined;
7280
- };
7281
7163
  };
7282
7164
  } | {
7283
7165
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7285,7 +7167,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7285
7167
  readonly metadata?: {
7286
7168
  readonly [x: string]: unknown;
7287
7169
  } | undefined;
7288
- readonly type: "session.revert.cleared";
7170
+ readonly type: "session.execution.succeeded";
7289
7171
  readonly durable: {
7290
7172
  readonly aggregateID: string;
7291
7173
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7304,7 +7186,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7304
7186
  readonly metadata?: {
7305
7187
  readonly [x: string]: unknown;
7306
7188
  } | undefined;
7307
- readonly type: "session.revert.committed";
7189
+ readonly type: "session.forked";
7308
7190
  readonly durable: {
7309
7191
  readonly aggregateID: string;
7310
7192
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7316,7 +7198,22 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7316
7198
  } | undefined;
7317
7199
  readonly data: {
7318
7200
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7319
- readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
7201
+ readonly parentID: string & import("effect/Brand").Brand<"SessionID">;
7202
+ readonly boundary: {
7203
+ readonly type: "before";
7204
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7205
+ } | {
7206
+ readonly type: "through";
7207
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7208
+ };
7209
+ readonly instructions?: {
7210
+ readonly [x: string & import("effect/Brand").Brand<"Instruction.Key">]: string & import("effect/Brand").Brand<"Instruction.Hash">;
7211
+ } | undefined;
7212
+ readonly instructionEntries?: readonly {
7213
+ readonly key: string;
7214
+ readonly value: import("effect/Schema").Json;
7215
+ readonly removed: boolean;
7216
+ }[] | undefined;
7320
7217
  };
7321
7218
  } | {
7322
7219
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7324,7 +7221,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7324
7221
  readonly metadata?: {
7325
7222
  readonly [x: string]: unknown;
7326
7223
  } | undefined;
7327
- readonly type: "session.revert.staged";
7224
+ readonly type: "session.inbox.cancelled";
7328
7225
  readonly durable: {
7329
7226
  readonly aggregateID: string;
7330
7227
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7336,18 +7233,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7336
7233
  } | undefined;
7337
7234
  readonly data: {
7338
7235
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7339
- readonly revert: {
7340
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7341
- readonly partID?: string | undefined;
7342
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7343
- readonly files?: readonly {
7344
- readonly file: string;
7345
- readonly patch: string;
7346
- readonly additions: number;
7347
- readonly deletions: number;
7348
- readonly status: "added" | "deleted" | "modified";
7349
- }[] | undefined;
7350
- };
7236
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7351
7237
  };
7352
7238
  } | {
7353
7239
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7355,7 +7241,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7355
7241
  readonly metadata?: {
7356
7242
  readonly [x: string]: unknown;
7357
7243
  } | undefined;
7358
- readonly type: "session.shell.ended";
7244
+ readonly type: "session.inbox.delivered";
7359
7245
  readonly durable: {
7360
7246
  readonly aggregateID: string;
7361
7247
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7367,30 +7253,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7367
7253
  } | undefined;
7368
7254
  readonly data: {
7369
7255
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7370
- readonly shell: {
7371
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
7372
- readonly status: "exited" | "killed" | "running" | "timeout";
7373
- readonly command: string;
7374
- readonly cwd: string;
7375
- readonly shell: string;
7376
- readonly file: string;
7377
- readonly pid?: number | undefined;
7378
- readonly exit?: number | undefined;
7379
- readonly signal?: string | undefined;
7380
- readonly metadata: {
7381
- readonly [x: string]: unknown;
7382
- };
7383
- readonly time: {
7384
- readonly started: number;
7385
- readonly completed?: number | undefined;
7386
- };
7387
- };
7388
- readonly output: {
7389
- readonly output: string;
7390
- readonly cursor: number;
7391
- readonly size: number;
7392
- readonly truncated: boolean;
7393
- };
7256
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7394
7257
  };
7395
7258
  } | {
7396
7259
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7398,7 +7261,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7398
7261
  readonly metadata?: {
7399
7262
  readonly [x: string]: unknown;
7400
7263
  } | undefined;
7401
- readonly type: "session.shell.started";
7264
+ readonly type: "session.inbox.delivery.changed";
7402
7265
  readonly durable: {
7403
7266
  readonly aggregateID: string;
7404
7267
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7410,24 +7273,8 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7410
7273
  } | undefined;
7411
7274
  readonly data: {
7412
7275
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7413
- readonly shell: {
7414
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
7415
- readonly status: "exited" | "killed" | "running" | "timeout";
7416
- readonly command: string;
7417
- readonly cwd: string;
7418
- readonly shell: string;
7419
- readonly file: string;
7420
- readonly pid?: number | undefined;
7421
- readonly exit?: number | undefined;
7422
- readonly signal?: string | undefined;
7423
- readonly metadata: {
7424
- readonly [x: string]: unknown;
7425
- };
7426
- readonly time: {
7427
- readonly started: number;
7428
- readonly completed?: number | undefined;
7429
- };
7430
- };
7276
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7277
+ readonly delivery: "queue" | "steer";
7431
7278
  };
7432
7279
  } | {
7433
7280
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7435,7 +7282,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7435
7282
  readonly metadata?: {
7436
7283
  readonly [x: string]: unknown;
7437
7284
  } | undefined;
7438
- readonly type: "session.skill.activated";
7285
+ readonly type: "session.inbox.enqueued";
7439
7286
  readonly durable: {
7440
7287
  readonly aggregateID: string;
7441
7288
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7447,9 +7294,77 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7447
7294
  } | undefined;
7448
7295
  readonly data: {
7449
7296
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7450
- readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
7451
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
7452
- readonly text: string;
7297
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7298
+ readonly item: {
7299
+ readonly type: "user";
7300
+ readonly payload: {
7301
+ readonly text: string;
7302
+ readonly files?: readonly {
7303
+ readonly data: string;
7304
+ readonly mime: string;
7305
+ readonly source: {
7306
+ readonly type: "inline";
7307
+ } | {
7308
+ readonly type: "uri";
7309
+ readonly uri: string;
7310
+ };
7311
+ readonly name?: string | undefined;
7312
+ readonly description?: string | undefined;
7313
+ readonly mention?: {
7314
+ readonly start: number;
7315
+ readonly end: number;
7316
+ readonly text: string;
7317
+ } | undefined;
7318
+ }[] | undefined;
7319
+ readonly agents?: readonly {
7320
+ readonly name: string;
7321
+ readonly mention?: {
7322
+ readonly start: number;
7323
+ readonly end: number;
7324
+ readonly text: string;
7325
+ } | undefined;
7326
+ }[] | undefined;
7327
+ readonly skills?: readonly {
7328
+ readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
7329
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
7330
+ readonly text?: string | undefined;
7331
+ readonly mention?: {
7332
+ readonly start: number;
7333
+ readonly end: number;
7334
+ readonly text: string;
7335
+ } | undefined;
7336
+ }[] | undefined;
7337
+ readonly metadata?: {
7338
+ readonly [x: string]: unknown;
7339
+ } | undefined;
7340
+ };
7341
+ readonly delivery: "queue" | "steer";
7342
+ } | {
7343
+ readonly type: "synthetic";
7344
+ readonly payload: {
7345
+ readonly text: string;
7346
+ readonly description?: string | undefined;
7347
+ readonly metadata?: {
7348
+ readonly [x: string]: unknown;
7349
+ } | undefined;
7350
+ };
7351
+ readonly delivery: "queue" | "steer";
7352
+ } | {
7353
+ readonly type: "compaction";
7354
+ readonly payload: {};
7355
+ readonly delivery: "queue" | "steer";
7356
+ } | {
7357
+ readonly type: "move";
7358
+ readonly payload: {
7359
+ readonly location: {
7360
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7361
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7362
+ };
7363
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
7364
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
7365
+ };
7366
+ readonly delivery: "queue" | "steer";
7367
+ };
7453
7368
  };
7454
7369
  } | {
7455
7370
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7457,7 +7372,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7457
7372
  readonly metadata?: {
7458
7373
  readonly [x: string]: unknown;
7459
7374
  } | undefined;
7460
- readonly type: "session.step.ended";
7375
+ readonly type: "session.instructions.updated";
7461
7376
  readonly durable: {
7462
7377
  readonly aggregateID: string;
7463
7378
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7469,24 +7384,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7469
7384
  } | undefined;
7470
7385
  readonly data: {
7471
7386
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7472
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7473
- readonly finish: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown";
7474
- readonly rawFinish?: string | undefined;
7475
- readonly providerState?: {
7476
- readonly [x: string]: unknown;
7477
- } | undefined;
7478
- readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
7479
- readonly tokens: {
7480
- readonly input: number;
7481
- readonly output: number;
7482
- readonly reasoning: number;
7483
- readonly cache: {
7484
- readonly read: number;
7485
- readonly write: number;
7486
- };
7387
+ readonly delta: {
7388
+ readonly [x: string]: "removed" | (string & import("effect/Brand").Brand<"Instruction.Hash">);
7487
7389
  };
7488
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7489
- readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
7390
+ readonly text?: string | undefined;
7490
7391
  };
7491
7392
  } | {
7492
7393
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7494,7 +7395,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7494
7395
  readonly metadata?: {
7495
7396
  readonly [x: string]: unknown;
7496
7397
  } | undefined;
7497
- readonly type: "session.step.failed";
7398
+ readonly type: "session.metadata.updated";
7498
7399
  readonly durable: {
7499
7400
  readonly aggregateID: string;
7500
7401
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7506,32 +7407,9 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7506
7407
  } | undefined;
7507
7408
  readonly data: {
7508
7409
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7509
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7510
- readonly error: {
7511
- readonly type: string;
7512
- readonly message: string;
7513
- readonly status?: number | undefined;
7514
- readonly response?: {
7515
- readonly body: string;
7516
- } | undefined;
7410
+ readonly metadata: {
7411
+ readonly [x: string]: import("effect/Schema").Json;
7517
7412
  };
7518
- readonly finish?: "content-filter" | undefined;
7519
- readonly rawFinish?: string | undefined;
7520
- readonly providerState?: {
7521
- readonly [x: string]: unknown;
7522
- } | undefined;
7523
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
7524
- readonly tokens?: {
7525
- readonly input: number;
7526
- readonly output: number;
7527
- readonly reasoning: number;
7528
- readonly cache: {
7529
- readonly read: number;
7530
- readonly write: number;
7531
- };
7532
- } | undefined;
7533
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7534
- readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
7535
7413
  };
7536
7414
  } | {
7537
7415
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7539,7 +7417,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7539
7417
  readonly metadata?: {
7540
7418
  readonly [x: string]: unknown;
7541
7419
  } | undefined;
7542
- readonly type: "session.step.started";
7420
+ readonly type: "session.model.selected";
7543
7421
  readonly durable: {
7544
7422
  readonly aggregateID: string;
7545
7423
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7551,15 +7429,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7551
7429
  } | undefined;
7552
7430
  readonly data: {
7553
7431
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7554
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7555
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
7556
7432
  readonly model: {
7557
7433
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7558
7434
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7559
7435
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7560
7436
  };
7561
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7562
- readonly started: number;
7437
+ readonly previous?: {
7438
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7439
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7440
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7441
+ } | undefined;
7563
7442
  };
7564
7443
  } | {
7565
7444
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7567,7 +7446,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7567
7446
  readonly metadata?: {
7568
7447
  readonly [x: string]: unknown;
7569
7448
  } | undefined;
7570
- readonly type: "session.step.streamed";
7449
+ readonly type: "session.moved";
7571
7450
  readonly durable: {
7572
7451
  readonly aggregateID: string;
7573
7452
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7578,8 +7457,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7578
7457
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7579
7458
  } | undefined;
7580
7459
  readonly data: {
7460
+ readonly location: {
7461
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7462
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7463
+ };
7464
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
7465
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
7581
7466
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7582
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7583
7467
  };
7584
7468
  } | {
7585
7469
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7587,7 +7471,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7587
7471
  readonly metadata?: {
7588
7472
  readonly [x: string]: unknown;
7589
7473
  } | undefined;
7590
- readonly type: "session.synthetic";
7474
+ readonly type: "session.permissions";
7591
7475
  readonly durable: {
7592
7476
  readonly aggregateID: string;
7593
7477
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7599,11 +7483,11 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7599
7483
  } | undefined;
7600
7484
  readonly data: {
7601
7485
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7602
- readonly text: string;
7603
- readonly description?: string | undefined;
7604
- readonly metadata?: {
7605
- readonly [x: string]: unknown;
7606
- } | undefined;
7486
+ readonly permissions: readonly {
7487
+ readonly action: string;
7488
+ readonly resource: string;
7489
+ readonly effect: "allow" | "ask" | "deny";
7490
+ }[];
7607
7491
  };
7608
7492
  } | {
7609
7493
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7611,7 +7495,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7611
7495
  readonly metadata?: {
7612
7496
  readonly [x: string]: unknown;
7613
7497
  } | undefined;
7614
- readonly type: "session.text.ended";
7498
+ readonly type: "session.reasoning.ended";
7615
7499
  readonly durable: {
7616
7500
  readonly aggregateID: string;
7617
7501
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7636,7 +7520,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7636
7520
  readonly metadata?: {
7637
7521
  readonly [x: string]: unknown;
7638
7522
  } | undefined;
7639
- readonly type: "session.text.started";
7523
+ readonly type: "session.reasoning.started";
7640
7524
  readonly durable: {
7641
7525
  readonly aggregateID: string;
7642
7526
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7650,6 +7534,9 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7650
7534
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7651
7535
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7652
7536
  readonly ordinal: number;
7537
+ readonly state?: {
7538
+ readonly [x: string]: unknown;
7539
+ } | undefined;
7653
7540
  };
7654
7541
  } | {
7655
7542
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7657,7 +7544,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7657
7544
  readonly metadata?: {
7658
7545
  readonly [x: string]: unknown;
7659
7546
  } | undefined;
7660
- readonly type: "session.tool.called";
7547
+ readonly type: "session.renamed";
7661
7548
  readonly durable: {
7662
7549
  readonly aggregateID: string;
7663
7550
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7669,15 +7556,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7669
7556
  } | undefined;
7670
7557
  readonly data: {
7671
7558
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7672
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7673
- readonly id: string;
7674
- readonly input: {
7675
- readonly [x: string]: unknown;
7676
- };
7677
- readonly executed: boolean;
7678
- readonly state?: {
7679
- readonly [x: string]: unknown;
7680
- } | undefined;
7559
+ readonly title: string;
7681
7560
  };
7682
7561
  } | {
7683
7562
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7685,7 +7564,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7685
7564
  readonly metadata?: {
7686
7565
  readonly [x: string]: unknown;
7687
7566
  } | undefined;
7688
- readonly type: "session.tool.failed";
7567
+ readonly type: "session.retry.scheduled";
7689
7568
  readonly durable: {
7690
7569
  readonly aggregateID: string;
7691
7570
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7698,39 +7577,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7698
7577
  readonly data: {
7699
7578
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7700
7579
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7701
- readonly id: string;
7580
+ readonly attempt: number;
7581
+ readonly at: number;
7702
7582
  readonly error: {
7703
7583
  readonly type: string;
7704
7584
  readonly message: string;
7705
7585
  readonly status?: number | undefined;
7706
7586
  readonly response?: {
7707
7587
  readonly body: string;
7708
- } | undefined;
7709
- };
7710
- readonly content?: readonly [{
7711
- readonly type: "text";
7712
- readonly text: string;
7713
- } | {
7714
- readonly type: "file";
7715
- readonly uri: string;
7716
- readonly mime: string;
7717
- readonly name?: string | undefined;
7718
- }, ...({
7719
- readonly type: "text";
7720
- readonly text: string;
7721
- } | {
7722
- readonly type: "file";
7723
- readonly uri: string;
7724
- readonly mime: string;
7725
- readonly name?: string | undefined;
7726
- })[]] | undefined;
7727
- readonly metadata?: {
7728
- readonly [x: string]: import("effect/Schema").Json;
7729
- } | undefined;
7730
- readonly executed: boolean;
7731
- readonly resultState?: {
7732
- readonly [x: string]: unknown;
7733
- } | undefined;
7588
+ } | undefined;
7589
+ };
7734
7590
  };
7735
7591
  } | {
7736
7592
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7738,7 +7594,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7738
7594
  readonly metadata?: {
7739
7595
  readonly [x: string]: unknown;
7740
7596
  } | undefined;
7741
- readonly type: "session.tool.input.ended";
7597
+ readonly type: "session.revert.cleared";
7742
7598
  readonly durable: {
7743
7599
  readonly aggregateID: string;
7744
7600
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7750,9 +7606,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7750
7606
  } | undefined;
7751
7607
  readonly data: {
7752
7608
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7753
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7754
- readonly id: string;
7755
- readonly text: string;
7756
7609
  };
7757
7610
  } | {
7758
7611
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7760,7 +7613,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7760
7613
  readonly metadata?: {
7761
7614
  readonly [x: string]: unknown;
7762
7615
  } | undefined;
7763
- readonly type: "session.tool.input.started";
7616
+ readonly type: "session.revert.committed";
7764
7617
  readonly durable: {
7765
7618
  readonly aggregateID: string;
7766
7619
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7772,9 +7625,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7772
7625
  } | undefined;
7773
7626
  readonly data: {
7774
7627
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7775
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7776
- readonly id: string;
7777
- readonly name: string;
7628
+ readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
7778
7629
  };
7779
7630
  } | {
7780
7631
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7782,7 +7633,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7782
7633
  readonly metadata?: {
7783
7634
  readonly [x: string]: unknown;
7784
7635
  } | undefined;
7785
- readonly type: "session.tool.success";
7636
+ readonly type: "session.revert.staged";
7786
7637
  readonly durable: {
7787
7638
  readonly aggregateID: string;
7788
7639
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7794,32 +7645,18 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7794
7645
  } | undefined;
7795
7646
  readonly data: {
7796
7647
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7797
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7798
- readonly id: string;
7799
- readonly content: readonly [{
7800
- readonly type: "text";
7801
- readonly text: string;
7802
- } | {
7803
- readonly type: "file";
7804
- readonly uri: string;
7805
- readonly mime: string;
7806
- readonly name?: string | undefined;
7807
- }, ...({
7808
- readonly type: "text";
7809
- readonly text: string;
7810
- } | {
7811
- readonly type: "file";
7812
- readonly uri: string;
7813
- readonly mime: string;
7814
- readonly name?: string | undefined;
7815
- })[]];
7816
- readonly metadata?: {
7817
- readonly [x: string]: import("effect/Schema").Json;
7818
- } | undefined;
7819
- readonly executed: boolean;
7820
- readonly resultState?: {
7821
- readonly [x: string]: unknown;
7822
- } | undefined;
7648
+ readonly revert: {
7649
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7650
+ readonly partID?: string | undefined;
7651
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7652
+ readonly files?: readonly {
7653
+ readonly file: string;
7654
+ readonly patch: string;
7655
+ readonly additions: number;
7656
+ readonly deletions: number;
7657
+ readonly status: "added" | "deleted" | "modified";
7658
+ }[] | undefined;
7659
+ };
7823
7660
  };
7824
7661
  } | {
7825
7662
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7827,7 +7664,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7827
7664
  readonly metadata?: {
7828
7665
  readonly [x: string]: unknown;
7829
7666
  } | undefined;
7830
- readonly type: "session.unarchived";
7667
+ readonly type: "session.shell.ended";
7831
7668
  readonly durable: {
7832
7669
  readonly aggregateID: string;
7833
7670
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7839,6 +7676,30 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7839
7676
  } | undefined;
7840
7677
  readonly data: {
7841
7678
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7679
+ readonly shell: {
7680
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
7681
+ readonly status: "exited" | "killed" | "running" | "timeout";
7682
+ readonly command: string;
7683
+ readonly cwd: string;
7684
+ readonly shell: string;
7685
+ readonly file: string;
7686
+ readonly pid?: number | undefined;
7687
+ readonly exit?: number | undefined;
7688
+ readonly signal?: string | undefined;
7689
+ readonly metadata: {
7690
+ readonly [x: string]: unknown;
7691
+ };
7692
+ readonly time: {
7693
+ readonly started: number;
7694
+ readonly completed?: number | undefined;
7695
+ };
7696
+ };
7697
+ readonly output: {
7698
+ readonly output: string;
7699
+ readonly cursor: number;
7700
+ readonly size: number;
7701
+ readonly truncated: boolean;
7702
+ };
7842
7703
  };
7843
7704
  } | {
7844
7705
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7846,7 +7707,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7846
7707
  readonly metadata?: {
7847
7708
  readonly [x: string]: unknown;
7848
7709
  } | undefined;
7849
- readonly type: "session.viewed";
7710
+ readonly type: "session.shell.started";
7850
7711
  readonly durable: {
7851
7712
  readonly aggregateID: string;
7852
7713
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7858,7 +7719,24 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7858
7719
  } | undefined;
7859
7720
  readonly data: {
7860
7721
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7861
- readonly idle: number;
7722
+ readonly shell: {
7723
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
7724
+ readonly status: "exited" | "killed" | "running" | "timeout";
7725
+ readonly command: string;
7726
+ readonly cwd: string;
7727
+ readonly shell: string;
7728
+ readonly file: string;
7729
+ readonly pid?: number | undefined;
7730
+ readonly exit?: number | undefined;
7731
+ readonly signal?: string | undefined;
7732
+ readonly metadata: {
7733
+ readonly [x: string]: unknown;
7734
+ };
7735
+ readonly time: {
7736
+ readonly started: number;
7737
+ readonly completed?: number | undefined;
7738
+ };
7739
+ };
7862
7740
  };
7863
7741
  } | {
7864
7742
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7866,13 +7744,20 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7866
7744
  readonly metadata?: {
7867
7745
  readonly [x: string]: unknown;
7868
7746
  } | undefined;
7869
- readonly type: "session.compaction.delta";
7747
+ readonly type: "session.skill.activated";
7748
+ readonly durable: {
7749
+ readonly aggregateID: string;
7750
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7751
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7752
+ };
7870
7753
  readonly location?: {
7871
7754
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7872
7755
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7873
7756
  } | undefined;
7874
7757
  readonly data: {
7875
7758
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7759
+ readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
7760
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
7876
7761
  readonly text: string;
7877
7762
  };
7878
7763
  } | {
@@ -7881,7 +7766,12 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7881
7766
  readonly metadata?: {
7882
7767
  readonly [x: string]: unknown;
7883
7768
  } | undefined;
7884
- readonly type: "session.reasoning.delta";
7769
+ readonly type: "session.step.ended";
7770
+ readonly durable: {
7771
+ readonly aggregateID: string;
7772
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7773
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7774
+ };
7885
7775
  readonly location?: {
7886
7776
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7887
7777
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7889,8 +7779,23 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7889
7779
  readonly data: {
7890
7780
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7891
7781
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7892
- readonly ordinal: number;
7893
- readonly delta: string;
7782
+ readonly finish: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown";
7783
+ readonly rawFinish?: string | undefined;
7784
+ readonly providerState?: {
7785
+ readonly [x: string]: unknown;
7786
+ } | undefined;
7787
+ readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
7788
+ readonly tokens: {
7789
+ readonly input: number;
7790
+ readonly output: number;
7791
+ readonly reasoning: number;
7792
+ readonly cache: {
7793
+ readonly read: number;
7794
+ readonly write: number;
7795
+ };
7796
+ };
7797
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7798
+ readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
7894
7799
  };
7895
7800
  } | {
7896
7801
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7898,7 +7803,12 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7898
7803
  readonly metadata?: {
7899
7804
  readonly [x: string]: unknown;
7900
7805
  } | undefined;
7901
- readonly type: "session.text.delta";
7806
+ readonly type: "session.step.failed";
7807
+ readonly durable: {
7808
+ readonly aggregateID: string;
7809
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7810
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7811
+ };
7902
7812
  readonly location?: {
7903
7813
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7904
7814
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7906,8 +7816,31 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7906
7816
  readonly data: {
7907
7817
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7908
7818
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7909
- readonly ordinal: number;
7910
- readonly delta: string;
7819
+ readonly error: {
7820
+ readonly type: string;
7821
+ readonly message: string;
7822
+ readonly status?: number | undefined;
7823
+ readonly response?: {
7824
+ readonly body: string;
7825
+ } | undefined;
7826
+ };
7827
+ readonly finish?: "content-filter" | undefined;
7828
+ readonly rawFinish?: string | undefined;
7829
+ readonly providerState?: {
7830
+ readonly [x: string]: unknown;
7831
+ } | undefined;
7832
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
7833
+ readonly tokens?: {
7834
+ readonly input: number;
7835
+ readonly output: number;
7836
+ readonly reasoning: number;
7837
+ readonly cache: {
7838
+ readonly read: number;
7839
+ readonly write: number;
7840
+ };
7841
+ } | undefined;
7842
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7843
+ readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
7911
7844
  };
7912
7845
  } | {
7913
7846
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7915,7 +7848,12 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7915
7848
  readonly metadata?: {
7916
7849
  readonly [x: string]: unknown;
7917
7850
  } | undefined;
7918
- readonly type: "session.tool.input.delta";
7851
+ readonly type: "session.step.started";
7852
+ readonly durable: {
7853
+ readonly aggregateID: string;
7854
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7855
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7856
+ };
7919
7857
  readonly location?: {
7920
7858
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7921
7859
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7923,8 +7861,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7923
7861
  readonly data: {
7924
7862
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7925
7863
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7926
- readonly id: string;
7927
- readonly delta: string;
7864
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
7865
+ readonly model: {
7866
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7867
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7868
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7869
+ };
7870
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7871
+ readonly started: number;
7928
7872
  };
7929
7873
  } | {
7930
7874
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7932,7 +7876,12 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7932
7876
  readonly metadata?: {
7933
7877
  readonly [x: string]: unknown;
7934
7878
  } | undefined;
7935
- readonly type: "session.tool.progress";
7879
+ readonly type: "session.step.streamed";
7880
+ readonly durable: {
7881
+ readonly aggregateID: string;
7882
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7883
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7884
+ };
7936
7885
  readonly location?: {
7937
7886
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7938
7887
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7940,10 +7889,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7940
7889
  readonly data: {
7941
7890
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7942
7891
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7943
- readonly id: string;
7944
- readonly metadata: {
7945
- readonly [x: string]: import("effect/Schema").Json;
7946
- };
7947
7892
  };
7948
7893
  } | {
7949
7894
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7951,23 +7896,23 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7951
7896
  readonly metadata?: {
7952
7897
  readonly [x: string]: unknown;
7953
7898
  } | undefined;
7954
- readonly type: "session.usage.updated";
7899
+ readonly type: "session.synthetic";
7900
+ readonly durable: {
7901
+ readonly aggregateID: string;
7902
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7903
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7904
+ };
7955
7905
  readonly location?: {
7956
7906
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7957
7907
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7958
7908
  } | undefined;
7959
7909
  readonly data: {
7960
7910
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7961
- readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
7962
- readonly tokens: {
7963
- readonly input: number;
7964
- readonly output: number;
7965
- readonly reasoning: number;
7966
- readonly cache: {
7967
- readonly read: number;
7968
- readonly write: number;
7969
- };
7970
- };
7911
+ readonly text: string;
7912
+ readonly description?: string | undefined;
7913
+ readonly metadata?: {
7914
+ readonly [x: string]: unknown;
7915
+ } | undefined;
7971
7916
  };
7972
7917
  } | {
7973
7918
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7975,7 +7920,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7975
7920
  readonly metadata?: {
7976
7921
  readonly [x: string]: unknown;
7977
7922
  } | undefined;
7978
- readonly type: "worktree.resolved";
7923
+ readonly type: "session.text.ended";
7979
7924
  readonly durable: {
7980
7925
  readonly aggregateID: string;
7981
7926
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7986,10 +7931,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7986
7931
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7987
7932
  } | undefined;
7988
7933
  readonly data: {
7989
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
7990
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7991
- readonly previous: string & import("effect/Brand").Brand<"Project.ID">;
7992
- readonly adopted?: readonly (string & import("effect/Brand").Brand<"Project.ID">)[] | undefined;
7934
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7935
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7936
+ readonly ordinal: number;
7937
+ readonly text: string;
7938
+ readonly state?: {
7939
+ readonly [x: string]: unknown;
7940
+ } | undefined;
7993
7941
  };
7994
7942
  } | {
7995
7943
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7997,40 +7945,48 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7997
7945
  readonly metadata?: {
7998
7946
  readonly [x: string]: unknown;
7999
7947
  } | undefined;
8000
- readonly type: "worktree.updated";
8001
- readonly location?: {
8002
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8003
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8004
- } | undefined;
8005
- readonly data: {
8006
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
7948
+ readonly type: "session.text.started";
7949
+ readonly durable: {
7950
+ readonly aggregateID: string;
7951
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7952
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
8007
7953
  };
8008
- } | {
8009
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8010
- readonly created: number;
8011
- readonly metadata?: {
8012
- readonly [x: string]: unknown;
8013
- } | undefined;
8014
- readonly type: "models-dev.refreshed";
8015
7954
  readonly location?: {
8016
7955
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8017
7956
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8018
7957
  } | undefined;
8019
- readonly data: {};
7958
+ readonly data: {
7959
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7960
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7961
+ readonly ordinal: number;
7962
+ };
8020
7963
  } | {
8021
7964
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8022
7965
  readonly created: number;
8023
7966
  readonly metadata?: {
8024
7967
  readonly [x: string]: unknown;
8025
7968
  } | undefined;
8026
- readonly type: "credential.switched";
7969
+ readonly type: "session.tool.called";
7970
+ readonly durable: {
7971
+ readonly aggregateID: string;
7972
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7973
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7974
+ };
8027
7975
  readonly location?: {
8028
7976
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8029
7977
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8030
7978
  } | undefined;
8031
7979
  readonly data: {
8032
- readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
8033
- readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
7980
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7981
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7982
+ readonly id: string;
7983
+ readonly input: {
7984
+ readonly [x: string]: unknown;
7985
+ };
7986
+ readonly executed: boolean;
7987
+ readonly state?: {
7988
+ readonly [x: string]: unknown;
7989
+ } | undefined;
8034
7990
  };
8035
7991
  } | {
8036
7992
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8038,50 +7994,141 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8038
7994
  readonly metadata?: {
8039
7995
  readonly [x: string]: unknown;
8040
7996
  } | undefined;
8041
- readonly type: "credential.updated";
7997
+ readonly type: "session.tool.failed";
7998
+ readonly durable: {
7999
+ readonly aggregateID: string;
8000
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
8001
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
8002
+ };
8042
8003
  readonly location?: {
8043
8004
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8044
8005
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8045
8006
  } | undefined;
8046
- readonly data: {};
8007
+ readonly data: {
8008
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8009
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8010
+ readonly id: string;
8011
+ readonly error: {
8012
+ readonly type: string;
8013
+ readonly message: string;
8014
+ readonly status?: number | undefined;
8015
+ readonly response?: {
8016
+ readonly body: string;
8017
+ } | undefined;
8018
+ };
8019
+ readonly content?: readonly [{
8020
+ readonly type: "text";
8021
+ readonly text: string;
8022
+ } | {
8023
+ readonly type: "file";
8024
+ readonly uri: string;
8025
+ readonly mime: string;
8026
+ readonly name?: string | undefined;
8027
+ }, ...({
8028
+ readonly type: "text";
8029
+ readonly text: string;
8030
+ } | {
8031
+ readonly type: "file";
8032
+ readonly uri: string;
8033
+ readonly mime: string;
8034
+ readonly name?: string | undefined;
8035
+ })[]] | undefined;
8036
+ readonly metadata?: {
8037
+ readonly [x: string]: import("effect/Schema").Json;
8038
+ } | undefined;
8039
+ readonly executed: boolean;
8040
+ readonly resultState?: {
8041
+ readonly [x: string]: unknown;
8042
+ } | undefined;
8043
+ };
8047
8044
  } | {
8048
8045
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8049
8046
  readonly created: number;
8050
8047
  readonly metadata?: {
8051
8048
  readonly [x: string]: unknown;
8052
8049
  } | undefined;
8053
- readonly type: "provider.updated";
8050
+ readonly type: "session.tool.input.ended";
8051
+ readonly durable: {
8052
+ readonly aggregateID: string;
8053
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
8054
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
8055
+ };
8054
8056
  readonly location?: {
8055
8057
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8056
8058
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8057
8059
  } | undefined;
8058
- readonly data: {};
8060
+ readonly data: {
8061
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8062
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8063
+ readonly id: string;
8064
+ readonly text: string;
8065
+ };
8059
8066
  } | {
8060
8067
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8061
8068
  readonly created: number;
8062
8069
  readonly metadata?: {
8063
8070
  readonly [x: string]: unknown;
8064
8071
  } | undefined;
8065
- readonly type: "agent.updated";
8072
+ readonly type: "session.tool.input.started";
8073
+ readonly durable: {
8074
+ readonly aggregateID: string;
8075
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
8076
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
8077
+ };
8066
8078
  readonly location?: {
8067
8079
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8068
8080
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8069
8081
  } | undefined;
8070
- readonly data: {};
8082
+ readonly data: {
8083
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8084
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8085
+ readonly id: string;
8086
+ readonly name: string;
8087
+ };
8071
8088
  } | {
8072
8089
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8073
8090
  readonly created: number;
8074
8091
  readonly metadata?: {
8075
8092
  readonly [x: string]: unknown;
8076
8093
  } | undefined;
8077
- readonly type: "filesystem.changed";
8094
+ readonly type: "session.tool.success";
8095
+ readonly durable: {
8096
+ readonly aggregateID: string;
8097
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
8098
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
8099
+ };
8078
8100
  readonly location?: {
8079
8101
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8080
8102
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8081
8103
  } | undefined;
8082
8104
  readonly data: {
8083
- readonly file: string;
8084
- readonly event: "add" | "change" | "unlink";
8105
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8106
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8107
+ readonly id: string;
8108
+ readonly content: readonly [{
8109
+ readonly type: "text";
8110
+ readonly text: string;
8111
+ } | {
8112
+ readonly type: "file";
8113
+ readonly uri: string;
8114
+ readonly mime: string;
8115
+ readonly name?: string | undefined;
8116
+ }, ...({
8117
+ readonly type: "text";
8118
+ readonly text: string;
8119
+ } | {
8120
+ readonly type: "file";
8121
+ readonly uri: string;
8122
+ readonly mime: string;
8123
+ readonly name?: string | undefined;
8124
+ })[]];
8125
+ readonly metadata?: {
8126
+ readonly [x: string]: import("effect/Schema").Json;
8127
+ } | undefined;
8128
+ readonly executed: boolean;
8129
+ readonly resultState?: {
8130
+ readonly [x: string]: unknown;
8131
+ } | undefined;
8085
8132
  };
8086
8133
  } | {
8087
8134
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8089,38 +8136,38 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8089
8136
  readonly metadata?: {
8090
8137
  readonly [x: string]: unknown;
8091
8138
  } | undefined;
8092
- readonly type: "reference.updated";
8139
+ readonly type: "session.unarchived";
8140
+ readonly durable: {
8141
+ readonly aggregateID: string;
8142
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
8143
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
8144
+ };
8093
8145
  readonly location?: {
8094
8146
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8095
8147
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8096
8148
  } | undefined;
8097
- readonly data: {};
8149
+ readonly data: {
8150
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8151
+ };
8098
8152
  } | {
8099
8153
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8100
8154
  readonly created: number;
8101
8155
  readonly metadata?: {
8102
8156
  readonly [x: string]: unknown;
8103
8157
  } | undefined;
8104
- readonly type: "permission.asked";
8158
+ readonly type: "session.viewed";
8159
+ readonly durable: {
8160
+ readonly aggregateID: string;
8161
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
8162
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
8163
+ };
8105
8164
  readonly location?: {
8106
8165
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8107
8166
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8108
8167
  } | undefined;
8109
8168
  readonly data: {
8110
8169
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8111
- readonly action: string;
8112
- readonly resources: readonly string[];
8113
- readonly save?: readonly string[] | undefined;
8114
- readonly metadata?: {
8115
- readonly [x: string]: unknown;
8116
- } | undefined;
8117
- readonly source?: {
8118
- readonly type: "tool";
8119
- readonly messageID: string;
8120
- readonly id: string;
8121
- } | undefined;
8122
- readonly message?: string | undefined;
8123
- readonly id: string & import("effect/Brand").Brand<"Permission.ID">;
8170
+ readonly idle: number;
8124
8171
  };
8125
8172
  } | {
8126
8173
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8128,15 +8175,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8128
8175
  readonly metadata?: {
8129
8176
  readonly [x: string]: unknown;
8130
8177
  } | undefined;
8131
- readonly type: "permission.replied";
8178
+ readonly type: "session.compaction.delta";
8132
8179
  readonly location?: {
8133
8180
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8134
8181
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8135
8182
  } | undefined;
8136
8183
  readonly data: {
8137
8184
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8138
- readonly requestID: string & import("effect/Brand").Brand<"Permission.ID">;
8139
- readonly reply: "always" | "once" | "reject";
8185
+ readonly text: string;
8140
8186
  };
8141
8187
  } | {
8142
8188
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8144,69 +8190,92 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8144
8190
  readonly metadata?: {
8145
8191
  readonly [x: string]: unknown;
8146
8192
  } | undefined;
8147
- readonly type: "plugin.updated";
8193
+ readonly type: "session.reasoning.delta";
8148
8194
  readonly location?: {
8149
8195
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8150
8196
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8151
8197
  } | undefined;
8152
- readonly data: {};
8198
+ readonly data: {
8199
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8200
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8201
+ readonly ordinal: number;
8202
+ readonly delta: string;
8203
+ };
8153
8204
  } | {
8154
8205
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8155
8206
  readonly created: number;
8156
8207
  readonly metadata?: {
8157
8208
  readonly [x: string]: unknown;
8158
8209
  } | undefined;
8159
- readonly type: "command.updated";
8210
+ readonly type: "session.text.delta";
8160
8211
  readonly location?: {
8161
8212
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8162
8213
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8163
8214
  } | undefined;
8164
- readonly data: {};
8215
+ readonly data: {
8216
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8217
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8218
+ readonly ordinal: number;
8219
+ readonly delta: string;
8220
+ };
8165
8221
  } | {
8166
8222
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8167
8223
  readonly created: number;
8168
8224
  readonly metadata?: {
8169
8225
  readonly [x: string]: unknown;
8170
8226
  } | undefined;
8171
- readonly type: "config.updated";
8227
+ readonly type: "session.tool.input.delta";
8172
8228
  readonly location?: {
8173
8229
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8174
8230
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8175
8231
  } | undefined;
8176
- readonly data: {};
8232
+ readonly data: {
8233
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8234
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8235
+ readonly id: string;
8236
+ readonly delta: string;
8237
+ };
8177
8238
  } | {
8178
8239
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8179
8240
  readonly created: number;
8180
8241
  readonly metadata?: {
8181
8242
  readonly [x: string]: unknown;
8182
8243
  } | undefined;
8183
- readonly type: "skill.updated";
8244
+ readonly type: "session.tool.progress";
8184
8245
  readonly location?: {
8185
8246
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8186
8247
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8187
8248
  } | undefined;
8188
- readonly data: {};
8249
+ readonly data: {
8250
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8251
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8252
+ readonly id: string;
8253
+ readonly metadata: {
8254
+ readonly [x: string]: import("effect/Schema").Json;
8255
+ };
8256
+ };
8189
8257
  } | {
8190
8258
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8191
8259
  readonly created: number;
8192
8260
  readonly metadata?: {
8193
8261
  readonly [x: string]: unknown;
8194
8262
  } | undefined;
8195
- readonly type: "pty.created";
8263
+ readonly type: "session.usage.updated";
8196
8264
  readonly location?: {
8197
8265
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8198
8266
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8199
8267
  } | undefined;
8200
8268
  readonly data: {
8201
- readonly info: {
8202
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
8203
- readonly title: string;
8204
- readonly command: string;
8205
- readonly args: readonly string[];
8206
- readonly cwd: string;
8207
- readonly status: "exited" | "running";
8208
- readonly pid: number;
8209
- readonly exitCode?: number | undefined;
8269
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8270
+ readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
8271
+ readonly tokens: {
8272
+ readonly input: number;
8273
+ readonly output: number;
8274
+ readonly reasoning: number;
8275
+ readonly cache: {
8276
+ readonly read: number;
8277
+ readonly write: number;
8278
+ };
8210
8279
  };
8211
8280
  };
8212
8281
  } | {
@@ -8215,13 +8284,12 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8215
8284
  readonly metadata?: {
8216
8285
  readonly [x: string]: unknown;
8217
8286
  } | undefined;
8218
- readonly type: "pty.deleted";
8219
- readonly location?: {
8287
+ readonly type: `rpc.${string}`;
8288
+ readonly location: {
8220
8289
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8221
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8222
- } | undefined;
8290
+ };
8223
8291
  readonly data: {
8224
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
8292
+ readonly [x: string]: unknown;
8225
8293
  };
8226
8294
  } | {
8227
8295
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8229,68 +8297,38 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8229
8297
  readonly metadata?: {
8230
8298
  readonly [x: string]: unknown;
8231
8299
  } | undefined;
8232
- readonly type: "pty.exited";
8300
+ readonly type: "location.shutdown";
8233
8301
  readonly location?: {
8234
8302
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8235
8303
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8236
8304
  } | undefined;
8237
- readonly data: {
8238
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
8239
- readonly exitCode: number;
8240
- };
8305
+ readonly data: {};
8241
8306
  } | {
8242
8307
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8243
8308
  readonly created: number;
8244
8309
  readonly metadata?: {
8245
8310
  readonly [x: string]: unknown;
8246
8311
  } | undefined;
8247
- readonly type: "pty.updated";
8312
+ readonly type: "models-dev.refreshed";
8248
8313
  readonly location?: {
8249
8314
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8250
8315
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8251
8316
  } | undefined;
8252
- readonly data: {
8253
- readonly info: {
8254
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
8255
- readonly title: string;
8256
- readonly command: string;
8257
- readonly args: readonly string[];
8258
- readonly cwd: string;
8259
- readonly status: "exited" | "running";
8260
- readonly pid: number;
8261
- readonly exitCode?: number | undefined;
8262
- };
8263
- };
8317
+ readonly data: {};
8264
8318
  } | {
8265
8319
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8266
8320
  readonly created: number;
8267
8321
  readonly metadata?: {
8268
8322
  readonly [x: string]: unknown;
8269
8323
  } | undefined;
8270
- readonly type: "shell.created";
8324
+ readonly type: "credential.switched";
8271
8325
  readonly location?: {
8272
8326
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8273
8327
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8274
8328
  } | undefined;
8275
8329
  readonly data: {
8276
- readonly info: {
8277
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8278
- readonly status: "exited" | "killed" | "running" | "timeout";
8279
- readonly command: string;
8280
- readonly cwd: string;
8281
- readonly shell: string;
8282
- readonly file: string;
8283
- readonly pid?: number | undefined;
8284
- readonly exit?: number | undefined;
8285
- readonly signal?: string | undefined;
8286
- readonly metadata: {
8287
- readonly [x: string]: unknown;
8288
- };
8289
- readonly time: {
8290
- readonly started: number;
8291
- readonly completed?: number | undefined;
8292
- };
8293
- };
8330
+ readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
8331
+ readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
8294
8332
  };
8295
8333
  } | {
8296
8334
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8298,272 +8336,74 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8298
8336
  readonly metadata?: {
8299
8337
  readonly [x: string]: unknown;
8300
8338
  } | undefined;
8301
- readonly type: "shell.deleted";
8339
+ readonly type: "credential.updated";
8302
8340
  readonly location?: {
8303
8341
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8304
8342
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8305
8343
  } | undefined;
8306
- readonly data: {
8307
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8308
- };
8344
+ readonly data: {};
8309
8345
  } | {
8310
8346
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8311
8347
  readonly created: number;
8312
8348
  readonly metadata?: {
8313
8349
  readonly [x: string]: unknown;
8314
8350
  } | undefined;
8315
- readonly type: "shell.exited";
8351
+ readonly type: "integration.updated";
8316
8352
  readonly location?: {
8317
8353
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8318
8354
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8319
8355
  } | undefined;
8320
- readonly data: {
8321
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8322
- readonly exit?: number | undefined;
8323
- readonly status: "exited" | "killed" | "running" | "timeout";
8324
- };
8356
+ readonly data: {};
8325
8357
  } | {
8326
8358
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8327
8359
  readonly created: number;
8328
8360
  readonly metadata?: {
8329
8361
  readonly [x: string]: unknown;
8330
8362
  } | undefined;
8331
- readonly type: "form.cancelled";
8363
+ readonly type: "provider.updated";
8332
8364
  readonly location?: {
8333
8365
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8334
8366
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8335
8367
  } | undefined;
8336
- readonly data: {
8337
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
8338
- readonly sessionID: string;
8339
- };
8368
+ readonly data: {};
8340
8369
  } | {
8341
8370
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8342
8371
  readonly created: number;
8343
8372
  readonly metadata?: {
8344
8373
  readonly [x: string]: unknown;
8345
8374
  } | undefined;
8346
- readonly type: "form.created";
8375
+ readonly type: "model.updated";
8347
8376
  readonly location?: {
8348
8377
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8349
8378
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8350
8379
  } | undefined;
8351
- readonly data: {
8352
- readonly form: {
8353
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
8354
- readonly sessionID: string;
8355
- readonly title: string;
8356
- readonly metadata?: {
8357
- readonly [x: string]: unknown;
8358
- } | undefined;
8359
- readonly fields: readonly [{
8360
- readonly key: string;
8361
- readonly title?: string | undefined;
8362
- readonly description?: string | undefined;
8363
- readonly required?: boolean | undefined;
8364
- readonly hidden?: boolean | undefined;
8365
- readonly when?: readonly {
8366
- readonly key: string;
8367
- readonly op: "eq" | "neq";
8368
- readonly value: string | number | boolean;
8369
- }[] | undefined;
8370
- readonly type: "string";
8371
- readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
8372
- readonly minLength?: number | undefined;
8373
- readonly maxLength?: number | undefined;
8374
- readonly pattern?: string | undefined;
8375
- readonly placeholder?: string | undefined;
8376
- readonly default?: string | undefined;
8377
- readonly options?: readonly {
8378
- readonly value: string;
8379
- readonly label: string;
8380
- readonly description?: string | undefined;
8381
- }[] | undefined;
8382
- readonly custom?: boolean | undefined;
8383
- } | {
8384
- readonly key: string;
8385
- readonly title?: string | undefined;
8386
- readonly description?: string | undefined;
8387
- readonly required?: boolean | undefined;
8388
- readonly hidden?: boolean | undefined;
8389
- readonly when?: readonly {
8390
- readonly key: string;
8391
- readonly op: "eq" | "neq";
8392
- readonly value: string | number | boolean;
8393
- }[] | undefined;
8394
- readonly type: "number";
8395
- readonly minimum?: number | undefined;
8396
- readonly maximum?: number | undefined;
8397
- readonly default?: number | undefined;
8398
- } | {
8399
- readonly key: string;
8400
- readonly title?: string | undefined;
8401
- readonly description?: string | undefined;
8402
- readonly required?: boolean | undefined;
8403
- readonly hidden?: boolean | undefined;
8404
- readonly when?: readonly {
8405
- readonly key: string;
8406
- readonly op: "eq" | "neq";
8407
- readonly value: string | number | boolean;
8408
- }[] | undefined;
8409
- readonly type: "integer";
8410
- readonly minimum?: number | undefined;
8411
- readonly maximum?: number | undefined;
8412
- readonly default?: number | undefined;
8413
- } | {
8414
- readonly key: string;
8415
- readonly title?: string | undefined;
8416
- readonly description?: string | undefined;
8417
- readonly required?: boolean | undefined;
8418
- readonly hidden?: boolean | undefined;
8419
- readonly when?: readonly {
8420
- readonly key: string;
8421
- readonly op: "eq" | "neq";
8422
- readonly value: string | number | boolean;
8423
- }[] | undefined;
8424
- readonly type: "boolean";
8425
- readonly default?: boolean | undefined;
8426
- } | {
8427
- readonly key: string;
8428
- readonly title?: string | undefined;
8429
- readonly description?: string | undefined;
8430
- readonly required?: boolean | undefined;
8431
- readonly hidden?: boolean | undefined;
8432
- readonly when?: readonly {
8433
- readonly key: string;
8434
- readonly op: "eq" | "neq";
8435
- readonly value: string | number | boolean;
8436
- }[] | undefined;
8437
- readonly type: "multiselect";
8438
- readonly options: readonly {
8439
- readonly value: string;
8440
- readonly label: string;
8441
- readonly description?: string | undefined;
8442
- }[];
8443
- readonly minItems?: number | undefined;
8444
- readonly maxItems?: number | undefined;
8445
- readonly custom?: boolean | undefined;
8446
- readonly default?: readonly string[] | undefined;
8447
- } | {
8448
- readonly key: string;
8449
- readonly type: "external";
8450
- readonly url: string;
8451
- readonly title?: string | undefined;
8452
- readonly description?: string | undefined;
8453
- }, ...({
8454
- readonly key: string;
8455
- readonly title?: string | undefined;
8456
- readonly description?: string | undefined;
8457
- readonly required?: boolean | undefined;
8458
- readonly hidden?: boolean | undefined;
8459
- readonly when?: readonly {
8460
- readonly key: string;
8461
- readonly op: "eq" | "neq";
8462
- readonly value: string | number | boolean;
8463
- }[] | undefined;
8464
- readonly type: "string";
8465
- readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
8466
- readonly minLength?: number | undefined;
8467
- readonly maxLength?: number | undefined;
8468
- readonly pattern?: string | undefined;
8469
- readonly placeholder?: string | undefined;
8470
- readonly default?: string | undefined;
8471
- readonly options?: readonly {
8472
- readonly value: string;
8473
- readonly label: string;
8474
- readonly description?: string | undefined;
8475
- }[] | undefined;
8476
- readonly custom?: boolean | undefined;
8477
- } | {
8478
- readonly key: string;
8479
- readonly title?: string | undefined;
8480
- readonly description?: string | undefined;
8481
- readonly required?: boolean | undefined;
8482
- readonly hidden?: boolean | undefined;
8483
- readonly when?: readonly {
8484
- readonly key: string;
8485
- readonly op: "eq" | "neq";
8486
- readonly value: string | number | boolean;
8487
- }[] | undefined;
8488
- readonly type: "number";
8489
- readonly minimum?: number | undefined;
8490
- readonly maximum?: number | undefined;
8491
- readonly default?: number | undefined;
8492
- } | {
8493
- readonly key: string;
8494
- readonly title?: string | undefined;
8495
- readonly description?: string | undefined;
8496
- readonly required?: boolean | undefined;
8497
- readonly hidden?: boolean | undefined;
8498
- readonly when?: readonly {
8499
- readonly key: string;
8500
- readonly op: "eq" | "neq";
8501
- readonly value: string | number | boolean;
8502
- }[] | undefined;
8503
- readonly type: "integer";
8504
- readonly minimum?: number | undefined;
8505
- readonly maximum?: number | undefined;
8506
- readonly default?: number | undefined;
8507
- } | {
8508
- readonly key: string;
8509
- readonly title?: string | undefined;
8510
- readonly description?: string | undefined;
8511
- readonly required?: boolean | undefined;
8512
- readonly hidden?: boolean | undefined;
8513
- readonly when?: readonly {
8514
- readonly key: string;
8515
- readonly op: "eq" | "neq";
8516
- readonly value: string | number | boolean;
8517
- }[] | undefined;
8518
- readonly type: "boolean";
8519
- readonly default?: boolean | undefined;
8520
- } | {
8521
- readonly key: string;
8522
- readonly title?: string | undefined;
8523
- readonly description?: string | undefined;
8524
- readonly required?: boolean | undefined;
8525
- readonly hidden?: boolean | undefined;
8526
- readonly when?: readonly {
8527
- readonly key: string;
8528
- readonly op: "eq" | "neq";
8529
- readonly value: string | number | boolean;
8530
- }[] | undefined;
8531
- readonly type: "multiselect";
8532
- readonly options: readonly {
8533
- readonly value: string;
8534
- readonly label: string;
8535
- readonly description?: string | undefined;
8536
- }[];
8537
- readonly minItems?: number | undefined;
8538
- readonly maxItems?: number | undefined;
8539
- readonly custom?: boolean | undefined;
8540
- readonly default?: readonly string[] | undefined;
8541
- } | {
8542
- readonly key: string;
8543
- readonly type: "external";
8544
- readonly url: string;
8545
- readonly title?: string | undefined;
8546
- readonly description?: string | undefined;
8547
- })[]];
8548
- };
8549
- };
8380
+ readonly data: {};
8381
+ } | {
8382
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8383
+ readonly created: number;
8384
+ readonly metadata?: {
8385
+ readonly [x: string]: unknown;
8386
+ } | undefined;
8387
+ readonly type: "agent.updated";
8388
+ readonly location?: {
8389
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8390
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8391
+ } | undefined;
8392
+ readonly data: {};
8550
8393
  } | {
8551
8394
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8552
8395
  readonly created: number;
8553
8396
  readonly metadata?: {
8554
8397
  readonly [x: string]: unknown;
8555
8398
  } | undefined;
8556
- readonly type: "form.replied";
8399
+ readonly type: "filesystem.changed";
8557
8400
  readonly location?: {
8558
8401
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8559
8402
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8560
8403
  } | undefined;
8561
8404
  readonly data: {
8562
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
8563
- readonly sessionID: string;
8564
- readonly answer: {
8565
- readonly [x: string]: string | number | boolean | readonly string[];
8566
- };
8405
+ readonly file: string;
8406
+ readonly event: "add" | "change" | "unlink";
8567
8407
  };
8568
8408
  } | {
8569
8409
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8571,7 +8411,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8571
8411
  readonly metadata?: {
8572
8412
  readonly [x: string]: unknown;
8573
8413
  } | undefined;
8574
- readonly type: "websearch.updated";
8414
+ readonly type: "reference.updated";
8575
8415
  readonly location?: {
8576
8416
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8577
8417
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -8583,13 +8423,26 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8583
8423
  readonly metadata?: {
8584
8424
  readonly [x: string]: unknown;
8585
8425
  } | undefined;
8586
- readonly type: "session.idle";
8426
+ readonly type: "permission.asked";
8587
8427
  readonly location?: {
8588
8428
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8589
8429
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8590
8430
  } | undefined;
8591
8431
  readonly data: {
8592
8432
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8433
+ readonly action: string;
8434
+ readonly resources: readonly string[];
8435
+ readonly save?: readonly string[] | undefined;
8436
+ readonly metadata?: {
8437
+ readonly [x: string]: unknown;
8438
+ } | undefined;
8439
+ readonly source?: {
8440
+ readonly type: "tool";
8441
+ readonly messageID: string;
8442
+ readonly id: string;
8443
+ } | undefined;
8444
+ readonly message?: string | undefined;
8445
+ readonly id: string & import("effect/Brand").Brand<"Permission.ID">;
8593
8446
  };
8594
8447
  } | {
8595
8448
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8597,31 +8450,47 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8597
8450
  readonly metadata?: {
8598
8451
  readonly [x: string]: unknown;
8599
8452
  } | undefined;
8600
- readonly type: "session.status";
8453
+ readonly type: "permission.replied";
8601
8454
  readonly location?: {
8602
8455
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8603
8456
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8604
8457
  } | undefined;
8605
8458
  readonly data: {
8606
8459
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8607
- readonly status: {
8608
- readonly type: "idle";
8609
- } | {
8610
- readonly type: "retry";
8611
- readonly attempt: number;
8612
- readonly message: string;
8613
- readonly action?: {
8614
- readonly reason: string;
8615
- readonly provider: string;
8616
- readonly title: string;
8617
- readonly message: string;
8618
- readonly label: string;
8619
- readonly link?: string | undefined;
8620
- } | undefined;
8621
- readonly next: number;
8622
- } | {
8623
- readonly type: "busy";
8460
+ readonly requestID: string & import("effect/Brand").Brand<"Permission.ID">;
8461
+ readonly reply: "always" | "once" | "reject";
8462
+ };
8463
+ } | {
8464
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8465
+ readonly created: number;
8466
+ readonly metadata?: {
8467
+ readonly [x: string]: unknown;
8468
+ } | undefined;
8469
+ readonly type: "project.updated";
8470
+ readonly location?: {
8471
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8472
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8473
+ } | undefined;
8474
+ readonly data: {
8475
+ readonly id: string & import("effect/Brand").Brand<"Project.ID">;
8476
+ readonly canonical: string & import("effect/Brand").Brand<"AbsolutePath">;
8477
+ readonly vcs?: string | undefined;
8478
+ readonly name?: string | undefined;
8479
+ readonly icon?: {
8480
+ readonly url?: string | undefined;
8481
+ readonly override?: string | undefined;
8482
+ readonly color?: string | undefined;
8483
+ } | undefined;
8484
+ readonly commands?: {
8485
+ readonly start?: string | undefined;
8486
+ } | undefined;
8487
+ readonly time: {
8488
+ readonly created: number;
8489
+ readonly updated: number;
8490
+ readonly active: number;
8491
+ readonly archived?: number | undefined;
8624
8492
  };
8493
+ readonly sandboxes: readonly string[];
8625
8494
  };
8626
8495
  } | {
8627
8496
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8629,13 +8498,21 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8629
8498
  readonly metadata?: {
8630
8499
  readonly [x: string]: unknown;
8631
8500
  } | undefined;
8632
- readonly type: "tui.command.execute";
8501
+ readonly type: "worktree.resolved";
8502
+ readonly durable: {
8503
+ readonly aggregateID: string;
8504
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
8505
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
8506
+ };
8633
8507
  readonly location?: {
8634
8508
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8635
8509
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8636
8510
  } | undefined;
8637
8511
  readonly data: {
8638
- readonly command: string;
8512
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
8513
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8514
+ readonly previous: string & import("effect/Brand").Brand<"Project.ID">;
8515
+ readonly adopted?: readonly (string & import("effect/Brand").Brand<"Project.ID">)[] | undefined;
8639
8516
  };
8640
8517
  } | {
8641
8518
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8643,13 +8520,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8643
8520
  readonly metadata?: {
8644
8521
  readonly [x: string]: unknown;
8645
8522
  } | undefined;
8646
- readonly type: "tui.prompt.append";
8523
+ readonly type: "worktree.updated";
8647
8524
  readonly location?: {
8648
8525
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8649
8526
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8650
8527
  } | undefined;
8651
8528
  readonly data: {
8652
- readonly text: string;
8529
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
8653
8530
  };
8654
8531
  } | {
8655
8532
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8657,13 +8534,22 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8657
8534
  readonly metadata?: {
8658
8535
  readonly [x: string]: unknown;
8659
8536
  } | undefined;
8660
- readonly type: "tui.session.select";
8537
+ readonly type: "pty.created";
8661
8538
  readonly location?: {
8662
8539
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8663
8540
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8664
8541
  } | undefined;
8665
8542
  readonly data: {
8666
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8543
+ readonly info: {
8544
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
8545
+ readonly title: string;
8546
+ readonly command: string;
8547
+ readonly args: readonly string[];
8548
+ readonly cwd: string;
8549
+ readonly status: "exited" | "running";
8550
+ readonly pid: number;
8551
+ readonly exitCode?: number | undefined;
8552
+ };
8667
8553
  };
8668
8554
  } | {
8669
8555
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8671,16 +8557,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8671
8557
  readonly metadata?: {
8672
8558
  readonly [x: string]: unknown;
8673
8559
  } | undefined;
8674
- readonly type: "tui.toast.show";
8560
+ readonly type: "pty.deleted";
8675
8561
  readonly location?: {
8676
8562
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8677
8563
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8678
8564
  } | undefined;
8679
8565
  readonly data: {
8680
- readonly title?: string | undefined;
8681
- readonly message: string;
8682
- readonly variant: "error" | "info" | "success" | "warning";
8683
- readonly duration: number;
8566
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
8684
8567
  };
8685
8568
  } | {
8686
8569
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8688,13 +8571,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8688
8571
  readonly metadata?: {
8689
8572
  readonly [x: string]: unknown;
8690
8573
  } | undefined;
8691
- readonly type: "installation.update-available";
8574
+ readonly type: "pty.exited";
8692
8575
  readonly location?: {
8693
8576
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8694
8577
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8695
8578
  } | undefined;
8696
8579
  readonly data: {
8697
- readonly version: string;
8580
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
8581
+ readonly exitCode: number;
8698
8582
  };
8699
8583
  } | {
8700
8584
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8702,13 +8586,22 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8702
8586
  readonly metadata?: {
8703
8587
  readonly [x: string]: unknown;
8704
8588
  } | undefined;
8705
- readonly type: "installation.updated";
8589
+ readonly type: "pty.updated";
8706
8590
  readonly location?: {
8707
8591
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8708
8592
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8709
8593
  } | undefined;
8710
8594
  readonly data: {
8711
- readonly version: string;
8595
+ readonly info: {
8596
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
8597
+ readonly title: string;
8598
+ readonly command: string;
8599
+ readonly args: readonly string[];
8600
+ readonly cwd: string;
8601
+ readonly status: "exited" | "running";
8602
+ readonly pid: number;
8603
+ readonly exitCode?: number | undefined;
8604
+ };
8712
8605
  };
8713
8606
  } | {
8714
8607
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8716,13 +8609,33 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8716
8609
  readonly metadata?: {
8717
8610
  readonly [x: string]: unknown;
8718
8611
  } | undefined;
8719
- readonly type: "vcs.branch.updated";
8612
+ readonly type: "persistent-pty.added";
8720
8613
  readonly location?: {
8721
8614
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8722
8615
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8723
8616
  } | undefined;
8724
8617
  readonly data: {
8725
- readonly branch?: string | undefined;
8618
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8619
+ readonly terminal: {
8620
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
8621
+ readonly title: string;
8622
+ readonly command: string;
8623
+ readonly args: readonly string[];
8624
+ readonly cwd: string;
8625
+ readonly status: "exited" | "running";
8626
+ readonly pid: number;
8627
+ readonly exitCode?: number | undefined;
8628
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8629
+ readonly foregroundProcess: string | null;
8630
+ readonly size: {
8631
+ readonly cols: number;
8632
+ readonly rows: number;
8633
+ };
8634
+ readonly output: {
8635
+ readonly head: number;
8636
+ readonly tail: number;
8637
+ };
8638
+ };
8726
8639
  };
8727
8640
  } | {
8728
8641
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8730,13 +8643,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8730
8643
  readonly metadata?: {
8731
8644
  readonly [x: string]: unknown;
8732
8645
  } | undefined;
8733
- readonly type: "mcp.resources.changed";
8646
+ readonly type: "persistent-pty.removed";
8734
8647
  readonly location?: {
8735
8648
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8736
8649
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8737
8650
  } | undefined;
8738
8651
  readonly data: {
8739
- readonly server: string;
8652
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8653
+ readonly ptyID: string & import("effect/Brand").Brand<"PtyID">;
8740
8654
  };
8741
8655
  } | {
8742
8656
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8744,13 +8658,25 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8744
8658
  readonly metadata?: {
8745
8659
  readonly [x: string]: unknown;
8746
8660
  } | undefined;
8747
- readonly type: "mcp.status.changed";
8661
+ readonly type: "websearch.updated";
8662
+ readonly location?: {
8663
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8664
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8665
+ } | undefined;
8666
+ readonly data: {};
8667
+ } | {
8668
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8669
+ readonly created: number;
8670
+ readonly metadata?: {
8671
+ readonly [x: string]: unknown;
8672
+ } | undefined;
8673
+ readonly type: "tui.command.execute";
8748
8674
  readonly location?: {
8749
8675
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8750
8676
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8751
8677
  } | undefined;
8752
8678
  readonly data: {
8753
- readonly server: string;
8679
+ readonly command: string;
8754
8680
  };
8755
8681
  } | {
8756
8682
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8758,12 +8684,86 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8758
8684
  readonly metadata?: {
8759
8685
  readonly [x: string]: unknown;
8760
8686
  } | undefined;
8761
- readonly type: `rpc.${string}`;
8762
- readonly location: {
8687
+ readonly type: "tui.prompt.append";
8688
+ readonly location?: {
8689
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8690
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8691
+ } | undefined;
8692
+ readonly data: {
8693
+ readonly text: string;
8694
+ };
8695
+ } | {
8696
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8697
+ readonly created: number;
8698
+ readonly metadata?: {
8699
+ readonly [x: string]: unknown;
8700
+ } | undefined;
8701
+ readonly type: "tui.session.select";
8702
+ readonly location?: {
8703
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8704
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8705
+ } | undefined;
8706
+ readonly data: {
8707
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8708
+ };
8709
+ } | {
8710
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8711
+ readonly created: number;
8712
+ readonly metadata?: {
8713
+ readonly [x: string]: unknown;
8714
+ } | undefined;
8715
+ readonly type: "tui.toast.show";
8716
+ readonly location?: {
8717
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8718
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8719
+ } | undefined;
8720
+ readonly data: {
8721
+ readonly title?: string | undefined;
8722
+ readonly message: string;
8723
+ readonly variant: "error" | "info" | "success" | "warning";
8724
+ readonly duration: number;
8725
+ };
8726
+ } | {
8727
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8728
+ readonly created: number;
8729
+ readonly metadata?: {
8730
+ readonly [x: string]: unknown;
8731
+ } | undefined;
8732
+ readonly type: "installation.update-available";
8733
+ readonly location?: {
8763
8734
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8735
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8736
+ } | undefined;
8737
+ readonly data: {
8738
+ readonly version: string;
8764
8739
  };
8740
+ } | {
8741
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8742
+ readonly created: number;
8743
+ readonly metadata?: {
8744
+ readonly [x: string]: unknown;
8745
+ } | undefined;
8746
+ readonly type: "installation.updated";
8747
+ readonly location?: {
8748
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8749
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8750
+ } | undefined;
8765
8751
  readonly data: {
8752
+ readonly version: string;
8753
+ };
8754
+ } | {
8755
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8756
+ readonly created: number;
8757
+ readonly metadata?: {
8766
8758
  readonly [x: string]: unknown;
8759
+ } | undefined;
8760
+ readonly type: "vcs.branch.updated";
8761
+ readonly location?: {
8762
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8763
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8764
+ } | undefined;
8765
+ readonly data: {
8766
+ readonly branch?: string | undefined;
8767
8767
  };
8768
8768
  } | {
8769
8769
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;