@opencode/protocol 0.0.0-dev-21627 → 0.0.0-dev-21641

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