@opencode/client 0.0.0-dev-19555 → 0.0.0-dev-19557

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.
@@ -2,7 +2,6 @@ import type { Effect, Stream } from "effect";
2
2
  import type { Location } from "@opencode/schema/location";
3
3
  import type { Agent } from "@opencode/schema/agent";
4
4
  import type { Plugin } from "@opencode/schema/plugin";
5
- import type { Workspace } from "@opencode/schema/workspace";
6
5
  import type { Session } from "@opencode/schema/session";
7
6
  import type { AbsolutePath } from "@opencode/schema/schema";
8
7
  import type { Project } from "@opencode/schema/project";
@@ -50,10 +49,9 @@ export interface ServerApi<E = never> {
50
49
  export type LocationGetInput = {
51
50
  readonly location?: {
52
51
  readonly directory?: string | undefined;
53
- readonly workspace?: string | undefined;
54
52
  } | undefined;
55
53
  };
56
- export type LocationGetOutput = Location.Info;
54
+ export type LocationGetOutput = Location.PublicInfo;
57
55
  export type LocationGetOperation<E = never> = (input?: LocationGetInput) => Effect.Effect<LocationGetOutput, E>;
58
56
  export interface LocationApi<E = never> {
59
57
  readonly get: LocationGetOperation<E>;
@@ -61,11 +59,10 @@ export interface LocationApi<E = never> {
61
59
  export type AgentListInput = {
62
60
  readonly location?: {
63
61
  readonly directory?: string | undefined;
64
- readonly workspace?: string | undefined;
65
62
  } | undefined;
66
63
  };
67
64
  export type AgentListOutput = {
68
- readonly location: Location.Info;
65
+ readonly location: Location.PublicInfo;
69
66
  readonly data: ReadonlyArray<Agent.Info>;
70
67
  };
71
68
  export type AgentListOperation<E = never> = (input?: AgentListInput) => Effect.Effect<AgentListOutput, E>;
@@ -73,11 +70,10 @@ export type AgentGetInput = {
73
70
  readonly agentID: Agent.ID;
74
71
  readonly location?: {
75
72
  readonly directory?: string | undefined;
76
- readonly workspace?: string | undefined;
77
73
  } | undefined;
78
74
  };
79
75
  export type AgentGetOutput = {
80
- readonly location: Location.Info;
76
+ readonly location: Location.PublicInfo;
81
77
  readonly data: Agent.Info;
82
78
  };
83
79
  export type AgentGetOperation<E = never> = (input: AgentGetInput) => Effect.Effect<AgentGetOutput, E>;
@@ -88,18 +84,16 @@ export interface AgentApi<E = never> {
88
84
  export type PluginListInput = {
89
85
  readonly location?: {
90
86
  readonly directory?: string | undefined;
91
- readonly workspace?: string | undefined;
92
87
  } | undefined;
93
88
  };
94
89
  export type PluginListOutput = {
95
- readonly location: Location.Info;
90
+ readonly location: Location.PublicInfo;
96
91
  readonly data: ReadonlyArray<Plugin.Info>;
97
92
  };
98
93
  export type PluginListOperation<E = never> = (input?: PluginListInput) => Effect.Effect<PluginListOutput, E>;
99
94
  export type PluginAwaitActivationInput = {
100
95
  readonly location?: {
101
96
  readonly directory?: string | undefined;
102
- readonly workspace?: string | undefined;
103
97
  } | undefined;
104
98
  };
105
99
  export type PluginAwaitActivationOutput = void;
@@ -107,19 +101,17 @@ export type PluginAwaitActivationOperation<E = never> = (input?: PluginAwaitActi
107
101
  export type PluginCheckInput = {
108
102
  readonly location?: {
109
103
  readonly directory?: string | undefined;
110
- readonly workspace?: string | undefined;
111
104
  } | undefined;
112
105
  readonly target?: string | undefined;
113
106
  };
114
107
  export type PluginCheckOutput = {
115
- readonly location: Location.Info;
108
+ readonly location: Location.PublicInfo;
116
109
  readonly data: ReadonlyArray<Plugin.Info>;
117
110
  };
118
111
  export type PluginCheckOperation<E = never> = (input?: PluginCheckInput) => Effect.Effect<PluginCheckOutput, E>;
119
112
  export type PluginUpdateInput = {
120
113
  readonly location?: {
121
114
  readonly directory?: string | undefined;
122
- readonly workspace?: string | undefined;
123
115
  } | undefined;
124
116
  readonly targets: ReadonlyArray<string>;
125
117
  };
@@ -132,7 +124,6 @@ export interface PluginApi<E = never> {
132
124
  readonly update: PluginUpdateOperation<E>;
133
125
  }
134
126
  export type SessionListInput = {
135
- readonly workspace?: Workspace.ID | undefined;
136
127
  readonly limit?: number | undefined;
137
128
  readonly order?: "asc" | "desc" | undefined;
138
129
  readonly search?: string | undefined;
@@ -230,7 +221,7 @@ export type SessionCreateInput = {
230
221
  readonly title?: string | undefined;
231
222
  readonly agent?: Agent.ID | undefined;
232
223
  readonly model?: Model.Ref | undefined;
233
- readonly location?: Location.Ref | undefined;
224
+ readonly location?: Location.PublicRef | undefined;
234
225
  readonly metadata?: Session.Metadata | undefined;
235
226
  readonly permissions?: Permission.Ruleset | undefined;
236
227
  };
@@ -239,7 +230,7 @@ export type SessionCreateOperation<E = never> = (input?: SessionCreateInput) =>
239
230
  export type SessionImportInput = {
240
231
  readonly info: Session.Info;
241
232
  readonly messages: ReadonlyArray<SessionMessage.Info>;
242
- readonly location?: Location.Ref | undefined;
233
+ readonly location?: Location.PublicRef | undefined;
243
234
  };
244
235
  export type SessionImportOutput = Session.Info;
245
236
  export type SessionImportOperation<E = never> = (input: SessionImportInput) => Effect.Effect<SessionImportOutput, E>;
@@ -295,7 +286,6 @@ export type SessionRenameOperation<E = never> = (input: SessionRenameInput) => E
295
286
  export type SessionMoveInput = {
296
287
  readonly sessionID: Session.ID;
297
288
  readonly directory: AbsolutePath;
298
- readonly workspaceID?: Workspace.ID | undefined;
299
289
  readonly delivery?: SessionInbox.Delivery | undefined;
300
290
  };
301
291
  export type SessionMoveOutput = void;
@@ -462,11 +452,17 @@ export type SessionLogOutput = ({
462
452
  readonly seq: Event.Seq;
463
453
  readonly version: Event.Version;
464
454
  };
465
- readonly location?: Location.Ref | undefined;
455
+ readonly location?: {
456
+ readonly directory: AbsolutePath;
457
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
458
+ } | undefined;
466
459
  readonly data: {
467
460
  readonly sessionID: Session.ID;
468
461
  readonly projectID: Project.ID;
469
- readonly location: Location.Ref;
462
+ readonly location: {
463
+ readonly directory: AbsolutePath;
464
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
465
+ };
470
466
  readonly subpath?: RelativePath | undefined;
471
467
  readonly parentID?: Session.ID | undefined;
472
468
  readonly slug: string;
@@ -489,7 +485,10 @@ export type SessionLogOutput = ({
489
485
  readonly seq: Event.Seq;
490
486
  readonly version: Event.Version;
491
487
  };
492
- readonly location?: Location.Ref | undefined;
488
+ readonly location?: {
489
+ readonly directory: AbsolutePath;
490
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
491
+ } | undefined;
493
492
  readonly data: {
494
493
  readonly sessionID: Session.ID;
495
494
  readonly agent: Agent.ID;
@@ -507,7 +506,10 @@ export type SessionLogOutput = ({
507
506
  readonly seq: Event.Seq;
508
507
  readonly version: Event.Version;
509
508
  };
510
- readonly location?: Location.Ref | undefined;
509
+ readonly location?: {
510
+ readonly directory: AbsolutePath;
511
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
512
+ } | undefined;
511
513
  readonly data: {
512
514
  readonly sessionID: Session.ID;
513
515
  readonly model: Model.Ref;
@@ -525,10 +527,16 @@ export type SessionLogOutput = ({
525
527
  readonly seq: Event.Seq;
526
528
  readonly version: Event.Version;
527
529
  };
528
- readonly location?: Location.Ref | undefined;
530
+ readonly location?: {
531
+ readonly directory: AbsolutePath;
532
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
533
+ } | undefined;
529
534
  readonly data: {
530
535
  readonly sessionID: Session.ID;
531
- readonly location: Location.Ref;
536
+ readonly location: {
537
+ readonly directory: AbsolutePath;
538
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
539
+ };
532
540
  readonly projectID: Project.ID;
533
541
  readonly subpath?: RelativePath | undefined;
534
542
  };
@@ -544,7 +552,10 @@ export type SessionLogOutput = ({
544
552
  readonly seq: Event.Seq;
545
553
  readonly version: Event.Version;
546
554
  };
547
- readonly location?: Location.Ref | undefined;
555
+ readonly location?: {
556
+ readonly directory: AbsolutePath;
557
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
558
+ } | undefined;
548
559
  readonly data: {
549
560
  readonly sessionID: Session.ID;
550
561
  readonly title: string;
@@ -561,7 +572,10 @@ export type SessionLogOutput = ({
561
572
  readonly seq: Event.Seq;
562
573
  readonly version: Event.Version;
563
574
  };
564
- readonly location?: Location.Ref | undefined;
575
+ readonly location?: {
576
+ readonly directory: AbsolutePath;
577
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
578
+ } | undefined;
565
579
  readonly data: {
566
580
  readonly sessionID: Session.ID;
567
581
  readonly permissions: Permission.Ruleset;
@@ -578,7 +592,10 @@ export type SessionLogOutput = ({
578
592
  readonly seq: Event.Seq;
579
593
  readonly version: Event.Version;
580
594
  };
581
- readonly location?: Location.Ref | undefined;
595
+ readonly location?: {
596
+ readonly directory: AbsolutePath;
597
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
598
+ } | undefined;
582
599
  readonly data: {
583
600
  readonly sessionID: Session.ID;
584
601
  readonly idle: number;
@@ -595,7 +612,10 @@ export type SessionLogOutput = ({
595
612
  readonly seq: Event.Seq;
596
613
  readonly version: Event.Version;
597
614
  };
598
- readonly location?: Location.Ref | undefined;
615
+ readonly location?: {
616
+ readonly directory: AbsolutePath;
617
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
618
+ } | undefined;
599
619
  readonly data: {
600
620
  readonly sessionID: Session.ID;
601
621
  };
@@ -611,7 +631,10 @@ export type SessionLogOutput = ({
611
631
  readonly seq: Event.Seq;
612
632
  readonly version: Event.Version;
613
633
  };
614
- readonly location?: Location.Ref | undefined;
634
+ readonly location?: {
635
+ readonly directory: AbsolutePath;
636
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
637
+ } | undefined;
615
638
  readonly data: {
616
639
  readonly sessionID: Session.ID;
617
640
  readonly parentID: Session.ID;
@@ -633,7 +656,10 @@ export type SessionLogOutput = ({
633
656
  readonly seq: Event.Seq;
634
657
  readonly version: Event.Version;
635
658
  };
636
- readonly location?: Location.Ref | undefined;
659
+ readonly location?: {
660
+ readonly directory: AbsolutePath;
661
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
662
+ } | undefined;
637
663
  readonly data: {
638
664
  readonly sessionID: Session.ID;
639
665
  readonly inboxID: SessionMessage.ID;
@@ -650,7 +676,10 @@ export type SessionLogOutput = ({
650
676
  readonly seq: Event.Seq;
651
677
  readonly version: Event.Version;
652
678
  };
653
- readonly location?: Location.Ref | undefined;
679
+ readonly location?: {
680
+ readonly directory: AbsolutePath;
681
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
682
+ } | undefined;
654
683
  readonly data: {
655
684
  readonly sessionID: Session.ID;
656
685
  readonly inboxID: SessionMessage.ID;
@@ -668,7 +697,10 @@ export type SessionLogOutput = ({
668
697
  readonly seq: Event.Seq;
669
698
  readonly version: Event.Version;
670
699
  };
671
- readonly location?: Location.Ref | undefined;
700
+ readonly location?: {
701
+ readonly directory: AbsolutePath;
702
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
703
+ } | undefined;
672
704
  readonly data: {
673
705
  readonly sessionID: Session.ID;
674
706
  readonly inboxID: SessionMessage.ID;
@@ -685,7 +717,10 @@ export type SessionLogOutput = ({
685
717
  readonly seq: Event.Seq;
686
718
  readonly version: Event.Version;
687
719
  };
688
- readonly location?: Location.Ref | undefined;
720
+ readonly location?: {
721
+ readonly directory: AbsolutePath;
722
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
723
+ } | undefined;
689
724
  readonly data: {
690
725
  readonly sessionID: Session.ID;
691
726
  readonly inboxID: SessionMessage.ID;
@@ -703,7 +738,10 @@ export type SessionLogOutput = ({
703
738
  readonly seq: Event.Seq;
704
739
  readonly version: Event.Version;
705
740
  };
706
- readonly location?: Location.Ref | undefined;
741
+ readonly location?: {
742
+ readonly directory: AbsolutePath;
743
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
744
+ } | undefined;
707
745
  readonly data: {
708
746
  readonly sessionID: Session.ID;
709
747
  };
@@ -719,7 +757,10 @@ export type SessionLogOutput = ({
719
757
  readonly seq: Event.Seq;
720
758
  readonly version: Event.Version;
721
759
  };
722
- readonly location?: Location.Ref | undefined;
760
+ readonly location?: {
761
+ readonly directory: AbsolutePath;
762
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
763
+ } | undefined;
723
764
  readonly data: {
724
765
  readonly sessionID: Session.ID;
725
766
  };
@@ -735,7 +776,10 @@ export type SessionLogOutput = ({
735
776
  readonly seq: Event.Seq;
736
777
  readonly version: Event.Version;
737
778
  };
738
- readonly location?: Location.Ref | undefined;
779
+ readonly location?: {
780
+ readonly directory: AbsolutePath;
781
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
782
+ } | undefined;
739
783
  readonly data: {
740
784
  readonly sessionID: Session.ID;
741
785
  readonly error: {
@@ -756,7 +800,10 @@ export type SessionLogOutput = ({
756
800
  readonly seq: Event.Seq;
757
801
  readonly version: Event.Version;
758
802
  };
759
- readonly location?: Location.Ref | undefined;
803
+ readonly location?: {
804
+ readonly directory: AbsolutePath;
805
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
806
+ } | undefined;
760
807
  readonly data: {
761
808
  readonly sessionID: Session.ID;
762
809
  readonly reason: "user" | "shutdown" | "superseded" | "inactivity";
@@ -773,7 +820,10 @@ export type SessionLogOutput = ({
773
820
  readonly seq: Event.Seq;
774
821
  readonly version: Event.Version;
775
822
  };
776
- readonly location?: Location.Ref | undefined;
823
+ readonly location?: {
824
+ readonly directory: AbsolutePath;
825
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
826
+ } | undefined;
777
827
  readonly data: {
778
828
  readonly sessionID: Session.ID;
779
829
  readonly delta: {
@@ -793,7 +843,10 @@ export type SessionLogOutput = ({
793
843
  readonly seq: Event.Seq;
794
844
  readonly version: Event.Version;
795
845
  };
796
- readonly location?: Location.Ref | undefined;
846
+ readonly location?: {
847
+ readonly directory: AbsolutePath;
848
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
849
+ } | undefined;
797
850
  readonly data: {
798
851
  readonly sessionID: Session.ID;
799
852
  readonly text: string;
@@ -814,7 +867,10 @@ export type SessionLogOutput = ({
814
867
  readonly seq: Event.Seq;
815
868
  readonly version: Event.Version;
816
869
  };
817
- readonly location?: Location.Ref | undefined;
870
+ readonly location?: {
871
+ readonly directory: AbsolutePath;
872
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
873
+ } | undefined;
818
874
  readonly data: {
819
875
  readonly sessionID: Session.ID;
820
876
  readonly id: Skill.ID;
@@ -833,7 +889,10 @@ export type SessionLogOutput = ({
833
889
  readonly seq: Event.Seq;
834
890
  readonly version: Event.Version;
835
891
  };
836
- readonly location?: Location.Ref | undefined;
892
+ readonly location?: {
893
+ readonly directory: AbsolutePath;
894
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
895
+ } | undefined;
837
896
  readonly data: {
838
897
  readonly sessionID: Session.ID;
839
898
  readonly shell: Shell.Info;
@@ -850,7 +909,10 @@ export type SessionLogOutput = ({
850
909
  readonly seq: Event.Seq;
851
910
  readonly version: Event.Version;
852
911
  };
853
- readonly location?: Location.Ref | undefined;
912
+ readonly location?: {
913
+ readonly directory: AbsolutePath;
914
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
915
+ } | undefined;
854
916
  readonly data: {
855
917
  readonly sessionID: Session.ID;
856
918
  readonly shell: Shell.Info;
@@ -873,7 +935,10 @@ export type SessionLogOutput = ({
873
935
  readonly seq: Event.Seq;
874
936
  readonly version: Event.Version;
875
937
  };
876
- readonly location?: Location.Ref | undefined;
938
+ readonly location?: {
939
+ readonly directory: AbsolutePath;
940
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
941
+ } | undefined;
877
942
  readonly data: {
878
943
  readonly sessionID: Session.ID;
879
944
  readonly assistantMessageID: SessionMessage.ID;
@@ -893,7 +958,10 @@ export type SessionLogOutput = ({
893
958
  readonly seq: Event.Seq;
894
959
  readonly version: Event.Version;
895
960
  };
896
- readonly location?: Location.Ref | undefined;
961
+ readonly location?: {
962
+ readonly directory: AbsolutePath;
963
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
964
+ } | undefined;
897
965
  readonly data: {
898
966
  readonly sessionID: Session.ID;
899
967
  readonly assistantMessageID: SessionMessage.ID;
@@ -910,7 +978,10 @@ export type SessionLogOutput = ({
910
978
  readonly seq: Event.Seq;
911
979
  readonly version: Event.Version;
912
980
  };
913
- readonly location?: Location.Ref | undefined;
981
+ readonly location?: {
982
+ readonly directory: AbsolutePath;
983
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
984
+ } | undefined;
914
985
  readonly data: {
915
986
  readonly sessionID: Session.ID;
916
987
  readonly assistantMessageID: SessionMessage.ID;
@@ -942,7 +1013,10 @@ export type SessionLogOutput = ({
942
1013
  readonly seq: Event.Seq;
943
1014
  readonly version: Event.Version;
944
1015
  };
945
- readonly location?: Location.Ref | undefined;
1016
+ readonly location?: {
1017
+ readonly directory: AbsolutePath;
1018
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
1019
+ } | undefined;
946
1020
  readonly data: {
947
1021
  readonly sessionID: Session.ID;
948
1022
  readonly assistantMessageID: SessionMessage.ID;
@@ -979,7 +1053,10 @@ export type SessionLogOutput = ({
979
1053
  readonly seq: Event.Seq;
980
1054
  readonly version: Event.Version;
981
1055
  };
982
- readonly location?: Location.Ref | undefined;
1056
+ readonly location?: {
1057
+ readonly directory: AbsolutePath;
1058
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
1059
+ } | undefined;
983
1060
  readonly data: {
984
1061
  readonly sessionID: Session.ID;
985
1062
  readonly assistantMessageID: SessionMessage.ID;
@@ -997,7 +1074,10 @@ export type SessionLogOutput = ({
997
1074
  readonly seq: Event.Seq;
998
1075
  readonly version: Event.Version;
999
1076
  };
1000
- readonly location?: Location.Ref | undefined;
1077
+ readonly location?: {
1078
+ readonly directory: AbsolutePath;
1079
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
1080
+ } | undefined;
1001
1081
  readonly data: {
1002
1082
  readonly sessionID: Session.ID;
1003
1083
  readonly assistantMessageID: SessionMessage.ID;
@@ -1017,7 +1097,10 @@ export type SessionLogOutput = ({
1017
1097
  readonly seq: Event.Seq;
1018
1098
  readonly version: Event.Version;
1019
1099
  };
1020
- readonly location?: Location.Ref | undefined;
1100
+ readonly location?: {
1101
+ readonly directory: AbsolutePath;
1102
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
1103
+ } | undefined;
1021
1104
  readonly data: {
1022
1105
  readonly sessionID: Session.ID;
1023
1106
  readonly assistantMessageID: SessionMessage.ID;
@@ -1036,7 +1119,10 @@ export type SessionLogOutput = ({
1036
1119
  readonly seq: Event.Seq;
1037
1120
  readonly version: Event.Version;
1038
1121
  };
1039
- readonly location?: Location.Ref | undefined;
1122
+ readonly location?: {
1123
+ readonly directory: AbsolutePath;
1124
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
1125
+ } | undefined;
1040
1126
  readonly data: {
1041
1127
  readonly sessionID: Session.ID;
1042
1128
  readonly assistantMessageID: SessionMessage.ID;
@@ -1056,7 +1142,10 @@ export type SessionLogOutput = ({
1056
1142
  readonly seq: Event.Seq;
1057
1143
  readonly version: Event.Version;
1058
1144
  };
1059
- readonly location?: Location.Ref | undefined;
1145
+ readonly location?: {
1146
+ readonly directory: AbsolutePath;
1147
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
1148
+ } | undefined;
1060
1149
  readonly data: {
1061
1150
  readonly sessionID: Session.ID;
1062
1151
  readonly assistantMessageID: SessionMessage.ID;
@@ -1075,7 +1164,10 @@ export type SessionLogOutput = ({
1075
1164
  readonly seq: Event.Seq;
1076
1165
  readonly version: Event.Version;
1077
1166
  };
1078
- readonly location?: Location.Ref | undefined;
1167
+ readonly location?: {
1168
+ readonly directory: AbsolutePath;
1169
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
1170
+ } | undefined;
1079
1171
  readonly data: {
1080
1172
  readonly sessionID: Session.ID;
1081
1173
  readonly assistantMessageID: SessionMessage.ID;
@@ -1094,7 +1186,10 @@ export type SessionLogOutput = ({
1094
1186
  readonly seq: Event.Seq;
1095
1187
  readonly version: Event.Version;
1096
1188
  };
1097
- readonly location?: Location.Ref | undefined;
1189
+ readonly location?: {
1190
+ readonly directory: AbsolutePath;
1191
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
1192
+ } | undefined;
1098
1193
  readonly data: {
1099
1194
  readonly sessionID: Session.ID;
1100
1195
  readonly assistantMessageID: SessionMessage.ID;
@@ -1117,7 +1212,10 @@ export type SessionLogOutput = ({
1117
1212
  readonly seq: Event.Seq;
1118
1213
  readonly version: Event.Version;
1119
1214
  };
1120
- readonly location?: Location.Ref | undefined;
1215
+ readonly location?: {
1216
+ readonly directory: AbsolutePath;
1217
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
1218
+ } | undefined;
1121
1219
  readonly data: {
1122
1220
  readonly sessionID: Session.ID;
1123
1221
  readonly assistantMessageID: SessionMessage.ID;
@@ -1160,7 +1258,10 @@ export type SessionLogOutput = ({
1160
1258
  readonly seq: Event.Seq;
1161
1259
  readonly version: Event.Version;
1162
1260
  };
1163
- readonly location?: Location.Ref | undefined;
1261
+ readonly location?: {
1262
+ readonly directory: AbsolutePath;
1263
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
1264
+ } | undefined;
1164
1265
  readonly data: {
1165
1266
  readonly sessionID: Session.ID;
1166
1267
  readonly assistantMessageID: SessionMessage.ID;
@@ -1208,7 +1309,10 @@ export type SessionLogOutput = ({
1208
1309
  readonly seq: Event.Seq;
1209
1310
  readonly version: Event.Version;
1210
1311
  };
1211
- readonly location?: Location.Ref | undefined;
1312
+ readonly location?: {
1313
+ readonly directory: AbsolutePath;
1314
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
1315
+ } | undefined;
1212
1316
  readonly data: {
1213
1317
  readonly sessionID: Session.ID;
1214
1318
  readonly assistantMessageID: SessionMessage.ID;
@@ -1232,7 +1336,10 @@ export type SessionLogOutput = ({
1232
1336
  readonly seq: Event.Seq;
1233
1337
  readonly version: Event.Version;
1234
1338
  };
1235
- readonly location?: Location.Ref | undefined;
1339
+ readonly location?: {
1340
+ readonly directory: AbsolutePath;
1341
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
1342
+ } | undefined;
1236
1343
  readonly data: {
1237
1344
  readonly sessionID: Session.ID;
1238
1345
  readonly reason: "auto" | "manual";
@@ -1251,7 +1358,10 @@ export type SessionLogOutput = ({
1251
1358
  readonly seq: Event.Seq;
1252
1359
  readonly version: Event.Version;
1253
1360
  };
1254
- readonly location?: Location.Ref | undefined;
1361
+ readonly location?: {
1362
+ readonly directory: AbsolutePath;
1363
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
1364
+ } | undefined;
1255
1365
  readonly data: {
1256
1366
  readonly sessionID: Session.ID;
1257
1367
  readonly reason: "auto" | "manual";
@@ -1294,7 +1404,10 @@ export type SessionLogOutput = ({
1294
1404
  readonly seq: Event.Seq;
1295
1405
  readonly version: Event.Version;
1296
1406
  };
1297
- readonly location?: Location.Ref | undefined;
1407
+ readonly location?: {
1408
+ readonly directory: AbsolutePath;
1409
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
1410
+ } | undefined;
1298
1411
  readonly data: {
1299
1412
  readonly sessionID: Session.ID;
1300
1413
  readonly reason: "auto" | "manual";
@@ -1327,7 +1440,10 @@ export type SessionLogOutput = ({
1327
1440
  readonly seq: Event.Seq;
1328
1441
  readonly version: Event.Version;
1329
1442
  };
1330
- readonly location?: Location.Ref | undefined;
1443
+ readonly location?: {
1444
+ readonly directory: AbsolutePath;
1445
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
1446
+ } | undefined;
1331
1447
  readonly data: {
1332
1448
  readonly sessionID: Session.ID;
1333
1449
  readonly revert: Session.Revert;
@@ -1344,7 +1460,10 @@ export type SessionLogOutput = ({
1344
1460
  readonly seq: Event.Seq;
1345
1461
  readonly version: Event.Version;
1346
1462
  };
1347
- readonly location?: Location.Ref | undefined;
1463
+ readonly location?: {
1464
+ readonly directory: AbsolutePath;
1465
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
1466
+ } | undefined;
1348
1467
  readonly data: {
1349
1468
  readonly sessionID: Session.ID;
1350
1469
  };
@@ -1360,7 +1479,10 @@ export type SessionLogOutput = ({
1360
1479
  readonly seq: Event.Seq;
1361
1480
  readonly version: Event.Version;
1362
1481
  };
1363
- readonly location?: Location.Ref | undefined;
1482
+ readonly location?: {
1483
+ readonly directory: AbsolutePath;
1484
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
1485
+ } | undefined;
1364
1486
  readonly data: {
1365
1487
  readonly sessionID: Session.ID;
1366
1488
  readonly to: SessionMessage.ID;
@@ -1377,7 +1499,10 @@ export type SessionLogOutput = ({
1377
1499
  readonly seq: Event.Seq;
1378
1500
  readonly version: Event.Version;
1379
1501
  };
1380
- readonly location?: Location.Ref | undefined;
1502
+ readonly location?: {
1503
+ readonly directory: AbsolutePath;
1504
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
1505
+ } | undefined;
1381
1506
  readonly data: {
1382
1507
  readonly sessionID: Session.ID;
1383
1508
  readonly source: "title" | "compaction";
@@ -1404,7 +1529,10 @@ export type SessionLogOutput = ({
1404
1529
  readonly seq: Event.Seq;
1405
1530
  readonly version: Event.Version;
1406
1531
  };
1407
- readonly location?: Location.Ref | undefined;
1532
+ readonly location?: {
1533
+ readonly directory: AbsolutePath;
1534
+ readonly workspaceID?: (string & Brand.Brand<"Workspace.ID">) | undefined;
1535
+ } | undefined;
1408
1536
  readonly data: {
1409
1537
  readonly sessionID: Session.ID;
1410
1538
  readonly messageID: SessionMessage.ID;
@@ -1515,22 +1643,20 @@ export interface MessageApi<E = never> {
1515
1643
  export type ModelListInput = {
1516
1644
  readonly location?: {
1517
1645
  readonly directory?: string | undefined;
1518
- readonly workspace?: string | undefined;
1519
1646
  } | undefined;
1520
1647
  };
1521
1648
  export type ModelListOutput = {
1522
- readonly location: Location.Info;
1649
+ readonly location: Location.PublicInfo;
1523
1650
  readonly data: ReadonlyArray<Model.Info>;
1524
1651
  };
1525
1652
  export type ModelListOperation<E = never> = (input?: ModelListInput) => Effect.Effect<ModelListOutput, E>;
1526
1653
  export type ModelDefaultInput = {
1527
1654
  readonly location?: {
1528
1655
  readonly directory?: string | undefined;
1529
- readonly workspace?: string | undefined;
1530
1656
  } | undefined;
1531
1657
  };
1532
1658
  export type ModelDefaultOutput = {
1533
- readonly location: Location.Info;
1659
+ readonly location: Location.PublicInfo;
1534
1660
  readonly data: Model.Info | undefined;
1535
1661
  };
1536
1662
  export type ModelDefaultOperation<E = never> = (input?: ModelDefaultInput) => Effect.Effect<ModelDefaultOutput, E>;
@@ -1552,11 +1678,10 @@ export interface GenerateApi<E = never> {
1552
1678
  export type ProviderListInput = {
1553
1679
  readonly location?: {
1554
1680
  readonly directory?: string | undefined;
1555
- readonly workspace?: string | undefined;
1556
1681
  } | undefined;
1557
1682
  };
1558
1683
  export type ProviderListOutput = {
1559
- readonly location: Location.Info;
1684
+ readonly location: Location.PublicInfo;
1560
1685
  readonly data: ReadonlyArray<Provider.Info>;
1561
1686
  };
1562
1687
  export type ProviderListOperation<E = never> = (input?: ProviderListInput) => Effect.Effect<ProviderListOutput, E>;
@@ -1564,11 +1689,10 @@ export type ProviderGetInput = {
1564
1689
  readonly providerID: Provider.ID;
1565
1690
  readonly location?: {
1566
1691
  readonly directory?: string | undefined;
1567
- readonly workspace?: string | undefined;
1568
1692
  } | undefined;
1569
1693
  };
1570
1694
  export type ProviderGetOutput = {
1571
- readonly location: Location.Info;
1695
+ readonly location: Location.PublicInfo;
1572
1696
  readonly data: Provider.Info;
1573
1697
  };
1574
1698
  export type ProviderGetOperation<E = never> = (input: ProviderGetInput) => Effect.Effect<ProviderGetOutput, E>;
@@ -1579,11 +1703,10 @@ export interface ProviderApi<E = never> {
1579
1703
  export type IntegrationListInput = {
1580
1704
  readonly location?: {
1581
1705
  readonly directory?: string | undefined;
1582
- readonly workspace?: string | undefined;
1583
1706
  } | undefined;
1584
1707
  };
1585
1708
  export type IntegrationListOutput = {
1586
- readonly location: Location.Info;
1709
+ readonly location: Location.PublicInfo;
1587
1710
  readonly data: ReadonlyArray<Integration.Info>;
1588
1711
  };
1589
1712
  export type IntegrationListOperation<E = never> = (input?: IntegrationListInput) => Effect.Effect<IntegrationListOutput, E>;
@@ -1591,18 +1714,16 @@ export type IntegrationGetInput = {
1591
1714
  readonly integrationID: Integration.ID;
1592
1715
  readonly location?: {
1593
1716
  readonly directory?: string | undefined;
1594
- readonly workspace?: string | undefined;
1595
1717
  } | undefined;
1596
1718
  };
1597
1719
  export type IntegrationGetOutput = {
1598
- readonly location: Location.Info;
1720
+ readonly location: Location.PublicInfo;
1599
1721
  readonly data: Integration.Info | undefined;
1600
1722
  };
1601
1723
  export type IntegrationGetOperation<E = never> = (input: IntegrationGetInput) => Effect.Effect<IntegrationGetOutput, E>;
1602
1724
  export type IntegrationWellknownAddInput = {
1603
1725
  readonly location?: {
1604
1726
  readonly directory?: string | undefined;
1605
- readonly workspace?: string | undefined;
1606
1727
  } | undefined;
1607
1728
  readonly url: string;
1608
1729
  };
@@ -1612,7 +1733,6 @@ export type IntegrationConnectKeyInput = {
1612
1733
  readonly integrationID: Integration.ID;
1613
1734
  readonly location?: {
1614
1735
  readonly directory?: string | undefined;
1615
- readonly workspace?: string | undefined;
1616
1736
  } | undefined;
1617
1737
  readonly key: string;
1618
1738
  readonly answer?: Form.Answer | undefined;
@@ -1624,14 +1744,13 @@ export type IntegrationOauthConnectInput = {
1624
1744
  readonly integrationID: Integration.ID;
1625
1745
  readonly location?: {
1626
1746
  readonly directory?: string | undefined;
1627
- readonly workspace?: string | undefined;
1628
1747
  } | undefined;
1629
1748
  readonly methodID: Integration.MethodID;
1630
1749
  readonly answer?: Form.Answer | undefined;
1631
1750
  readonly label?: string | undefined;
1632
1751
  };
1633
1752
  export type IntegrationOauthConnectOutput = {
1634
- readonly location: Location.Info;
1753
+ readonly location: Location.PublicInfo;
1635
1754
  readonly data: Integration.Attempt;
1636
1755
  };
1637
1756
  export type IntegrationOauthConnectOperation<E = never> = (input: IntegrationOauthConnectInput) => Effect.Effect<IntegrationOauthConnectOutput, E>;
@@ -1640,11 +1759,10 @@ export type IntegrationOauthStatusInput = {
1640
1759
  readonly attemptID: Integration.AttemptID;
1641
1760
  readonly location?: {
1642
1761
  readonly directory?: string | undefined;
1643
- readonly workspace?: string | undefined;
1644
1762
  } | undefined;
1645
1763
  };
1646
1764
  export type IntegrationOauthStatusOutput = {
1647
- readonly location: Location.Info;
1765
+ readonly location: Location.PublicInfo;
1648
1766
  readonly data: Integration.AttemptStatus;
1649
1767
  };
1650
1768
  export type IntegrationOauthStatusOperation<E = never> = (input: IntegrationOauthStatusInput) => Effect.Effect<IntegrationOauthStatusOutput, E>;
@@ -1653,7 +1771,6 @@ export type IntegrationOauthCompleteInput = {
1653
1771
  readonly attemptID: Integration.AttemptID;
1654
1772
  readonly location?: {
1655
1773
  readonly directory?: string | undefined;
1656
- readonly workspace?: string | undefined;
1657
1774
  } | undefined;
1658
1775
  readonly code?: string | undefined;
1659
1776
  };
@@ -1664,7 +1781,6 @@ export type IntegrationOauthCancelInput = {
1664
1781
  readonly attemptID: Integration.AttemptID;
1665
1782
  readonly location?: {
1666
1783
  readonly directory?: string | undefined;
1667
- readonly workspace?: string | undefined;
1668
1784
  } | undefined;
1669
1785
  };
1670
1786
  export type IntegrationOauthCancelOutput = void;
@@ -1673,13 +1789,12 @@ export type IntegrationCommandConnectInput = {
1673
1789
  readonly integrationID: Integration.ID;
1674
1790
  readonly location?: {
1675
1791
  readonly directory?: string | undefined;
1676
- readonly workspace?: string | undefined;
1677
1792
  } | undefined;
1678
1793
  readonly methodID: Integration.MethodID;
1679
1794
  readonly label?: string | undefined;
1680
1795
  };
1681
1796
  export type IntegrationCommandConnectOutput = {
1682
- readonly location: Location.Info;
1797
+ readonly location: Location.PublicInfo;
1683
1798
  readonly data: Integration.CommandAttempt;
1684
1799
  };
1685
1800
  export type IntegrationCommandConnectOperation<E = never> = (input: IntegrationCommandConnectInput) => Effect.Effect<IntegrationCommandConnectOutput, E>;
@@ -1688,11 +1803,10 @@ export type IntegrationCommandStatusInput = {
1688
1803
  readonly attemptID: Integration.AttemptID;
1689
1804
  readonly location?: {
1690
1805
  readonly directory?: string | undefined;
1691
- readonly workspace?: string | undefined;
1692
1806
  } | undefined;
1693
1807
  };
1694
1808
  export type IntegrationCommandStatusOutput = {
1695
- readonly location: Location.Info;
1809
+ readonly location: Location.PublicInfo;
1696
1810
  readonly data: Integration.CommandAttemptStatus;
1697
1811
  };
1698
1812
  export type IntegrationCommandStatusOperation<E = never> = (input: IntegrationCommandStatusInput) => Effect.Effect<IntegrationCommandStatusOutput, E>;
@@ -1701,7 +1815,6 @@ export type IntegrationCommandCancelInput = {
1701
1815
  readonly attemptID: Integration.AttemptID;
1702
1816
  readonly location?: {
1703
1817
  readonly directory?: string | undefined;
1704
- readonly workspace?: string | undefined;
1705
1818
  } | undefined;
1706
1819
  };
1707
1820
  export type IntegrationCommandCancelOutput = void;
@@ -1730,11 +1843,10 @@ export interface IntegrationApi<E = never> {
1730
1843
  export type McpListInput = {
1731
1844
  readonly location?: {
1732
1845
  readonly directory?: string | undefined;
1733
- readonly workspace?: string | undefined;
1734
1846
  } | undefined;
1735
1847
  };
1736
1848
  export type McpListOutput = {
1737
- readonly location: Location.Info;
1849
+ readonly location: Location.PublicInfo;
1738
1850
  readonly data: ReadonlyArray<Mcp.Server>;
1739
1851
  };
1740
1852
  export type McpListOperation<E = never> = (input?: McpListInput) => Effect.Effect<McpListOutput, E>;
@@ -1742,7 +1854,6 @@ export type McpAddInput = {
1742
1854
  readonly server: string;
1743
1855
  readonly location?: {
1744
1856
  readonly directory?: string | undefined;
1745
- readonly workspace?: string | undefined;
1746
1857
  } | undefined;
1747
1858
  readonly config: Mcp.LocalConfig | Mcp.RemoteConfig;
1748
1859
  };
@@ -1752,7 +1863,6 @@ export type McpRemoveInput = {
1752
1863
  readonly server: string;
1753
1864
  readonly location?: {
1754
1865
  readonly directory?: string | undefined;
1755
- readonly workspace?: string | undefined;
1756
1866
  } | undefined;
1757
1867
  };
1758
1868
  export type McpRemoveOutput = void;
@@ -1761,7 +1871,6 @@ export type McpConnectInput = {
1761
1871
  readonly server: string;
1762
1872
  readonly location?: {
1763
1873
  readonly directory?: string | undefined;
1764
- readonly workspace?: string | undefined;
1765
1874
  } | undefined;
1766
1875
  };
1767
1876
  export type McpConnectOutput = void;
@@ -1770,7 +1879,6 @@ export type McpDisconnectInput = {
1770
1879
  readonly server: string;
1771
1880
  readonly location?: {
1772
1881
  readonly directory?: string | undefined;
1773
- readonly workspace?: string | undefined;
1774
1882
  } | undefined;
1775
1883
  };
1776
1884
  export type McpDisconnectOutput = void;
@@ -1778,11 +1886,10 @@ export type McpDisconnectOperation<E = never> = (input: McpDisconnectInput) => E
1778
1886
  export type McpResourceCatalogInput = {
1779
1887
  readonly location?: {
1780
1888
  readonly directory?: string | undefined;
1781
- readonly workspace?: string | undefined;
1782
1889
  } | undefined;
1783
1890
  };
1784
1891
  export type McpResourceCatalogOutput = {
1785
- readonly location: Location.Info;
1892
+ readonly location: Location.PublicInfo;
1786
1893
  readonly data: Mcp.ResourceCatalog;
1787
1894
  };
1788
1895
  export type McpResourceCatalogOperation<E = never> = (input?: McpResourceCatalogInput) => Effect.Effect<McpResourceCatalogOutput, E>;
@@ -1800,7 +1907,6 @@ export type CredentialUpdateInput = {
1800
1907
  readonly credentialID: Credential.ID;
1801
1908
  readonly location?: {
1802
1909
  readonly directory?: string | undefined;
1803
- readonly workspace?: string | undefined;
1804
1910
  } | undefined;
1805
1911
  readonly label: string;
1806
1912
  };
@@ -1810,7 +1916,6 @@ export type CredentialActivateInput = {
1810
1916
  readonly credentialID: Credential.ID;
1811
1917
  readonly location?: {
1812
1918
  readonly directory?: string | undefined;
1813
- readonly workspace?: string | undefined;
1814
1919
  } | undefined;
1815
1920
  };
1816
1921
  export type CredentialActivateOutput = void;
@@ -1819,7 +1924,6 @@ export type CredentialRemoveInput = {
1819
1924
  readonly credentialID: Credential.ID;
1820
1925
  readonly location?: {
1821
1926
  readonly directory?: string | undefined;
1822
- readonly workspace?: string | undefined;
1823
1927
  } | undefined;
1824
1928
  };
1825
1929
  export type CredentialRemoveOutput = void;
@@ -1847,11 +1951,10 @@ export interface ProjectApi<E = never> {
1847
1951
  export type FormRequestListInput = {
1848
1952
  readonly location?: {
1849
1953
  readonly directory?: string | undefined;
1850
- readonly workspace?: string | undefined;
1851
1954
  } | undefined;
1852
1955
  };
1853
1956
  export type FormRequestListOutput = {
1854
- readonly location: Location.Info;
1957
+ readonly location: Location.PublicInfo;
1855
1958
  readonly data: ReadonlyArray<Form.Info>;
1856
1959
  };
1857
1960
  export type FormRequestListOperation<E = never> = (input?: FormRequestListInput) => Effect.Effect<FormRequestListOutput, E>;
@@ -1908,11 +2011,10 @@ export interface FormApi<E = never> {
1908
2011
  export type PermissionRequestListInput = {
1909
2012
  readonly location?: {
1910
2013
  readonly directory?: string | undefined;
1911
- readonly workspace?: string | undefined;
1912
2014
  } | undefined;
1913
2015
  };
1914
2016
  export type PermissionRequestListOutput = {
1915
- readonly location: Location.Info;
2017
+ readonly location: Location.PublicInfo;
1916
2018
  readonly data: ReadonlyArray<Permission.Request>;
1917
2019
  };
1918
2020
  export type PermissionRequestListOperation<E = never> = (input?: PermissionRequestListInput) => Effect.Effect<PermissionRequestListOutput, E>;
@@ -1985,26 +2087,24 @@ export interface PermissionApi<E = never> {
1985
2087
  export type FileListInput = {
1986
2088
  readonly location?: {
1987
2089
  readonly directory?: string | undefined;
1988
- readonly workspace?: string | undefined;
1989
2090
  } | undefined;
1990
2091
  readonly path?: string | undefined;
1991
2092
  };
1992
2093
  export type FileListOutput = {
1993
- readonly location: Location.Info;
2094
+ readonly location: Location.PublicInfo;
1994
2095
  readonly data: ReadonlyArray<FileSystem.Entry>;
1995
2096
  };
1996
2097
  export type FileListOperation<E = never> = (input?: FileListInput) => Effect.Effect<FileListOutput, E>;
1997
2098
  export type FileFindInput = {
1998
2099
  readonly location?: {
1999
2100
  readonly directory?: string | undefined;
2000
- readonly workspace?: string | undefined;
2001
2101
  } | undefined;
2002
2102
  readonly query: string;
2003
2103
  readonly type?: "file" | "directory" | undefined;
2004
2104
  readonly limit?: number | undefined;
2005
2105
  };
2006
2106
  export type FileFindOutput = {
2007
- readonly location: Location.Info;
2107
+ readonly location: Location.PublicInfo;
2008
2108
  readonly data: ReadonlyArray<FileSystem.Entry>;
2009
2109
  };
2010
2110
  export type FileFindOperation<E = never> = (input: FileFindInput) => Effect.Effect<FileFindOutput, E>;
@@ -2015,11 +2115,10 @@ export interface FileApi<E = never> {
2015
2115
  export type CommandListInput = {
2016
2116
  readonly location?: {
2017
2117
  readonly directory?: string | undefined;
2018
- readonly workspace?: string | undefined;
2019
2118
  } | undefined;
2020
2119
  };
2021
2120
  export type CommandListOutput = {
2022
- readonly location: Location.Info;
2121
+ readonly location: Location.PublicInfo;
2023
2122
  readonly data: ReadonlyArray<Command.Info>;
2024
2123
  };
2025
2124
  export type CommandListOperation<E = never> = (input?: CommandListInput) => Effect.Effect<CommandListOutput, E>;
@@ -2029,11 +2128,10 @@ export interface CommandApi<E = never> {
2029
2128
  export type SkillListInput = {
2030
2129
  readonly location?: {
2031
2130
  readonly directory?: string | undefined;
2032
- readonly workspace?: string | undefined;
2033
2131
  } | undefined;
2034
2132
  };
2035
2133
  export type SkillListOutput = {
2036
- readonly location: Location.Info;
2134
+ readonly location: Location.PublicInfo;
2037
2135
  readonly data: ReadonlyArray<Skill.Info>;
2038
2136
  };
2039
2137
  export type SkillListOperation<E = never> = (input?: SkillListInput) => Effect.Effect<SkillListOutput, E>;
@@ -2045,7 +2143,6 @@ export type RpcCallInput = {
2045
2143
  readonly method: string;
2046
2144
  readonly location?: {
2047
2145
  readonly directory?: string | undefined;
2048
- readonly workspace?: string | undefined;
2049
2146
  } | undefined;
2050
2147
  readonly input?: unknown | undefined;
2051
2148
  };
@@ -2064,18 +2161,16 @@ export interface EventApi<E = never> {
2064
2161
  export type PtyListInput = {
2065
2162
  readonly location?: {
2066
2163
  readonly directory?: string | undefined;
2067
- readonly workspace?: string | undefined;
2068
2164
  } | undefined;
2069
2165
  };
2070
2166
  export type PtyListOutput = {
2071
- readonly location: Location.Info;
2167
+ readonly location: Location.PublicInfo;
2072
2168
  readonly data: ReadonlyArray<Pty.Info>;
2073
2169
  };
2074
2170
  export type PtyListOperation<E = never> = (input?: PtyListInput) => Effect.Effect<PtyListOutput, E>;
2075
2171
  export type PtyCreateInput = {
2076
2172
  readonly location?: {
2077
2173
  readonly directory?: string | undefined;
2078
- readonly workspace?: string | undefined;
2079
2174
  } | undefined;
2080
2175
  readonly command?: string | undefined;
2081
2176
  readonly args?: ReadonlyArray<string> | undefined;
@@ -2086,7 +2181,7 @@ export type PtyCreateInput = {
2086
2181
  } | undefined;
2087
2182
  };
2088
2183
  export type PtyCreateOutput = {
2089
- readonly location: Location.Info;
2184
+ readonly location: Location.PublicInfo;
2090
2185
  readonly data: Pty.Info;
2091
2186
  };
2092
2187
  export type PtyCreateOperation<E = never> = (input?: PtyCreateInput) => Effect.Effect<PtyCreateOutput, E>;
@@ -2094,11 +2189,10 @@ export type PtyGetInput = {
2094
2189
  readonly ptyID: Pty.ID;
2095
2190
  readonly location?: {
2096
2191
  readonly directory?: string | undefined;
2097
- readonly workspace?: string | undefined;
2098
2192
  } | undefined;
2099
2193
  };
2100
2194
  export type PtyGetOutput = {
2101
- readonly location: Location.Info;
2195
+ readonly location: Location.PublicInfo;
2102
2196
  readonly data: Pty.Info;
2103
2197
  };
2104
2198
  export type PtyGetOperation<E = never> = (input: PtyGetInput) => Effect.Effect<PtyGetOutput, E>;
@@ -2106,7 +2200,6 @@ export type PtyUpdateInput = {
2106
2200
  readonly ptyID: Pty.ID;
2107
2201
  readonly location?: {
2108
2202
  readonly directory?: string | undefined;
2109
- readonly workspace?: string | undefined;
2110
2203
  } | undefined;
2111
2204
  readonly title?: string | undefined;
2112
2205
  readonly size?: {
@@ -2115,7 +2208,7 @@ export type PtyUpdateInput = {
2115
2208
  } | undefined;
2116
2209
  };
2117
2210
  export type PtyUpdateOutput = {
2118
- readonly location: Location.Info;
2211
+ readonly location: Location.PublicInfo;
2119
2212
  readonly data: Pty.Info;
2120
2213
  };
2121
2214
  export type PtyUpdateOperation<E = never> = (input: PtyUpdateInput) => Effect.Effect<PtyUpdateOutput, E>;
@@ -2123,7 +2216,6 @@ export type PtyRemoveInput = {
2123
2216
  readonly ptyID: Pty.ID;
2124
2217
  readonly location?: {
2125
2218
  readonly directory?: string | undefined;
2126
- readonly workspace?: string | undefined;
2127
2219
  } | undefined;
2128
2220
  };
2129
2221
  export type PtyRemoveOutput = void;
@@ -2132,12 +2224,11 @@ export type PtyConnectTokenInput = {
2132
2224
  readonly ptyID: Pty.ID;
2133
2225
  readonly location?: {
2134
2226
  readonly directory?: string | undefined;
2135
- readonly workspace?: string | undefined;
2136
2227
  } | undefined;
2137
2228
  readonly "x-opencode-ticket"?: string | undefined;
2138
2229
  };
2139
2230
  export type PtyConnectTokenOutput = {
2140
- readonly location: Location.Info;
2231
+ readonly location: Location.PublicInfo;
2141
2232
  readonly data: PtyTicket.ConnectToken;
2142
2233
  };
2143
2234
  export type PtyConnectTokenOperation<E = never> = (input: PtyConnectTokenInput) => Effect.Effect<PtyConnectTokenOutput, E>;
@@ -2354,18 +2445,16 @@ export interface ExperimentalApi<E = never> {
2354
2445
  export type ShellListInput = {
2355
2446
  readonly location?: {
2356
2447
  readonly directory?: string | undefined;
2357
- readonly workspace?: string | undefined;
2358
2448
  } | undefined;
2359
2449
  };
2360
2450
  export type ShellListOutput = {
2361
- readonly location: Location.Info;
2451
+ readonly location: Location.PublicInfo;
2362
2452
  readonly data: ReadonlyArray<Shell.Info>;
2363
2453
  };
2364
2454
  export type ShellListOperation<E = never> = (input?: ShellListInput) => Effect.Effect<ShellListOutput, E>;
2365
2455
  export type ShellCreateInput = {
2366
2456
  readonly location?: {
2367
2457
  readonly directory?: string | undefined;
2368
- readonly workspace?: string | undefined;
2369
2458
  } | undefined;
2370
2459
  readonly command: string;
2371
2460
  readonly cwd?: string | undefined;
@@ -2375,7 +2464,7 @@ export type ShellCreateInput = {
2375
2464
  } | undefined;
2376
2465
  };
2377
2466
  export type ShellCreateOutput = {
2378
- readonly location: Location.Info;
2467
+ readonly location: Location.PublicInfo;
2379
2468
  readonly data: Shell.Info;
2380
2469
  };
2381
2470
  export type ShellCreateOperation<E = never> = (input: ShellCreateInput) => Effect.Effect<ShellCreateOutput, E>;
@@ -2383,11 +2472,10 @@ export type ShellGetInput = {
2383
2472
  readonly id: Shell.ID;
2384
2473
  readonly location?: {
2385
2474
  readonly directory?: string | undefined;
2386
- readonly workspace?: string | undefined;
2387
2475
  } | undefined;
2388
2476
  };
2389
2477
  export type ShellGetOutput = {
2390
- readonly location: Location.Info;
2478
+ readonly location: Location.PublicInfo;
2391
2479
  readonly data: Shell.Info;
2392
2480
  };
2393
2481
  export type ShellGetOperation<E = never> = (input: ShellGetInput) => Effect.Effect<ShellGetOutput, E>;
@@ -2395,12 +2483,11 @@ export type ShellTimeoutInput = {
2395
2483
  readonly id: Shell.ID;
2396
2484
  readonly location?: {
2397
2485
  readonly directory?: string | undefined;
2398
- readonly workspace?: string | undefined;
2399
2486
  } | undefined;
2400
2487
  readonly timeout: number;
2401
2488
  };
2402
2489
  export type ShellTimeoutOutput = {
2403
- readonly location: Location.Info;
2490
+ readonly location: Location.PublicInfo;
2404
2491
  readonly data: Shell.Info;
2405
2492
  };
2406
2493
  export type ShellTimeoutOperation<E = never> = (input: ShellTimeoutInput) => Effect.Effect<ShellTimeoutOutput, E>;
@@ -2408,13 +2495,12 @@ export type ShellOutputInput = {
2408
2495
  readonly id: Shell.ID;
2409
2496
  readonly location?: {
2410
2497
  readonly directory?: string | undefined;
2411
- readonly workspace?: string | undefined;
2412
2498
  } | undefined;
2413
2499
  readonly cursor?: number | undefined;
2414
2500
  readonly limit?: number | undefined;
2415
2501
  };
2416
2502
  export type ShellOutputOutput = {
2417
- readonly location: Location.Info;
2503
+ readonly location: Location.PublicInfo;
2418
2504
  readonly data: {
2419
2505
  readonly output: string;
2420
2506
  readonly cursor: number;
@@ -2427,7 +2513,6 @@ export type ShellRemoveInput = {
2427
2513
  readonly id: Shell.ID;
2428
2514
  readonly location?: {
2429
2515
  readonly directory?: string | undefined;
2430
- readonly workspace?: string | undefined;
2431
2516
  } | undefined;
2432
2517
  };
2433
2518
  export type ShellRemoveOutput = void;
@@ -2443,11 +2528,10 @@ export interface ShellApi<E = never> {
2443
2528
  export type ReferenceListInput = {
2444
2529
  readonly location?: {
2445
2530
  readonly directory?: string | undefined;
2446
- readonly workspace?: string | undefined;
2447
2531
  } | undefined;
2448
2532
  };
2449
2533
  export type ReferenceListOutput = {
2450
- readonly location: Location.Info;
2534
+ readonly location: Location.PublicInfo;
2451
2535
  readonly data: ReadonlyArray<Reference.Info>;
2452
2536
  };
2453
2537
  export type ReferenceListOperation<E = never> = (input?: ReferenceListInput) => Effect.Effect<ReferenceListOutput, E>;
@@ -2457,7 +2541,6 @@ export interface ReferenceApi<E = never> {
2457
2541
  export type WorktreeListInput = {
2458
2542
  readonly location?: {
2459
2543
  readonly directory?: string | undefined;
2460
- readonly workspace?: string | undefined;
2461
2544
  } | undefined;
2462
2545
  };
2463
2546
  export type WorktreeListOutput = Worktree.List;
@@ -2465,7 +2548,6 @@ export type WorktreeListOperation<E = never> = (input?: WorktreeListInput) => Ef
2465
2548
  export type WorktreeCreateInput = {
2466
2549
  readonly location?: {
2467
2550
  readonly directory?: string | undefined;
2468
- readonly workspace?: string | undefined;
2469
2551
  } | undefined;
2470
2552
  readonly strategy?: Worktree.StrategyID | undefined;
2471
2553
  readonly from?: AbsolutePath | undefined;
@@ -2478,7 +2560,6 @@ export type WorktreeCreateOperation<E = never> = (input?: WorktreeCreateInput) =
2478
2560
  export type WorktreeRemoveInput = {
2479
2561
  readonly location?: {
2480
2562
  readonly directory?: string | undefined;
2481
- readonly workspace?: string | undefined;
2482
2563
  } | undefined;
2483
2564
  readonly directory: AbsolutePath;
2484
2565
  readonly force: boolean;
@@ -2488,7 +2569,6 @@ export type WorktreeRemoveOperation<E = never> = (input: WorktreeRemoveInput) =>
2488
2569
  export type WorktreeRefreshInput = {
2489
2570
  readonly location?: {
2490
2571
  readonly directory?: string | undefined;
2491
- readonly workspace?: string | undefined;
2492
2572
  } | undefined;
2493
2573
  };
2494
2574
  export type WorktreeRefreshOutput = void;
@@ -2499,78 +2579,58 @@ export interface WorktreeApi<E = never> {
2499
2579
  readonly remove: WorktreeRemoveOperation<E>;
2500
2580
  readonly refresh: WorktreeRefreshOperation<E>;
2501
2581
  }
2502
- export type WorkspaceCreateInput = {
2503
- readonly id?: Workspace.ID | undefined;
2504
- readonly provider: string;
2505
- };
2506
- export type WorkspaceCreateOutput = Workspace.ID;
2507
- export type WorkspaceCreateOperation<E = never> = (input: WorkspaceCreateInput) => Effect.Effect<WorkspaceCreateOutput, E>;
2508
- export type WorkspaceDestroyInput = {
2509
- readonly workspaceID: Workspace.ID;
2510
- };
2511
- export type WorkspaceDestroyOutput = Workspace.DestroyResult;
2512
- export type WorkspaceDestroyOperation<E = never> = (input: WorkspaceDestroyInput) => Effect.Effect<WorkspaceDestroyOutput, E>;
2513
- export interface WorkspaceApi<E = never> {
2514
- readonly create: WorkspaceCreateOperation<E>;
2515
- readonly destroy: WorkspaceDestroyOperation<E>;
2516
- }
2517
2582
  export type VcsGetInput = {
2518
2583
  readonly location?: {
2519
2584
  readonly directory?: string | undefined;
2520
- readonly workspace?: string | undefined;
2521
2585
  } | undefined;
2522
2586
  };
2523
2587
  export type VcsGetOutput = {
2524
- readonly location: Location.Info;
2588
+ readonly location: Location.PublicInfo;
2525
2589
  readonly data: Vcs.Info;
2526
2590
  };
2527
2591
  export type VcsGetOperation<E = never> = (input?: VcsGetInput) => Effect.Effect<VcsGetOutput, E>;
2528
2592
  export type VcsBaseInput = {
2529
2593
  readonly location?: {
2530
2594
  readonly directory?: string | undefined;
2531
- readonly workspace?: string | undefined;
2532
2595
  } | undefined;
2533
2596
  };
2534
2597
  export type VcsBaseOutput = {
2535
- readonly location: Location.Info;
2598
+ readonly location: Location.PublicInfo;
2536
2599
  readonly data: Vcs.Base | null;
2537
2600
  };
2538
2601
  export type VcsBaseOperation<E = never> = (input?: VcsBaseInput) => Effect.Effect<VcsBaseOutput, E>;
2539
2602
  export type VcsStatusInput = {
2540
2603
  readonly location?: {
2541
2604
  readonly directory?: string | undefined;
2542
- readonly workspace?: string | undefined;
2543
2605
  } | undefined;
2544
2606
  };
2545
2607
  export type VcsStatusOutput = {
2546
- readonly location: Location.Info;
2608
+ readonly location: Location.PublicInfo;
2547
2609
  readonly data: ReadonlyArray<Vcs.FileStatus>;
2548
2610
  };
2549
2611
  export type VcsStatusOperation<E = never> = (input?: VcsStatusInput) => Effect.Effect<VcsStatusOutput, E>;
2550
2612
  export type VcsBranchesInput = {
2551
2613
  readonly location?: {
2552
2614
  readonly directory?: string | undefined;
2553
- readonly workspace?: string | undefined;
2554
2615
  } | undefined;
2555
2616
  readonly search?: string | undefined;
2556
2617
  readonly limit?: number | undefined;
2557
2618
  };
2558
2619
  export type VcsBranchesOutput = {
2559
- readonly location: Location.Info;
2620
+ readonly location: Location.PublicInfo;
2560
2621
  readonly data: Vcs.BranchList;
2561
2622
  };
2562
2623
  export type VcsBranchesOperation<E = never> = (input?: VcsBranchesInput) => Effect.Effect<VcsBranchesOutput, E>;
2563
2624
  export type VcsDiffInput = {
2564
2625
  readonly location?: {
2565
2626
  readonly directory?: string | undefined;
2566
- readonly workspace?: string | undefined;
2567
2627
  } | undefined;
2568
2628
  readonly mode: Vcs.Mode;
2569
2629
  readonly base?: string | undefined;
2570
2630
  readonly context?: number | undefined;
2571
2631
  };
2572
2632
  export type VcsDiffOutput = {
2573
- readonly location: Location.Info;
2633
+ readonly location: Location.PublicInfo;
2574
2634
  readonly data: ReadonlyArray<FileDiff.Info>;
2575
2635
  };
2576
2636
  export type VcsDiffOperation<E = never> = (input: VcsDiffInput) => Effect.Effect<VcsDiffOutput, E>;
@@ -2581,12 +2641,11 @@ export interface VcsApi<E = never> {
2581
2641
  readonly branches: VcsBranchesOperation<E>;
2582
2642
  readonly diff: VcsDiffOperation<E>;
2583
2643
  }
2584
- export type DebugLocationListOutput = ReadonlyArray<Location.Ref>;
2644
+ export type DebugLocationListOutput = ReadonlyArray<Location.PublicRef>;
2585
2645
  export type DebugLocationListOperation<E = never> = () => Effect.Effect<DebugLocationListOutput, E>;
2586
2646
  export type DebugLocationEvictInput = {
2587
2647
  readonly location?: {
2588
2648
  readonly directory?: string | undefined;
2589
- readonly workspace?: string | undefined;
2590
2649
  } | undefined;
2591
2650
  };
2592
2651
  export type DebugLocationEvictOutput = void;
@@ -2619,24 +2678,22 @@ export interface MigrationApi<E = never> {
2619
2678
  export type WebsearchProvidersInput = {
2620
2679
  readonly location?: {
2621
2680
  readonly directory?: string | undefined;
2622
- readonly workspace?: string | undefined;
2623
2681
  } | undefined;
2624
2682
  };
2625
2683
  export type WebsearchProvidersOutput = {
2626
- readonly location: Location.Info;
2684
+ readonly location: Location.PublicInfo;
2627
2685
  readonly data: ReadonlyArray<WebSearch.Provider>;
2628
2686
  };
2629
2687
  export type WebsearchProvidersOperation<E = never> = (input?: WebsearchProvidersInput) => Effect.Effect<WebsearchProvidersOutput, E>;
2630
2688
  export type WebsearchQueryInput = {
2631
2689
  readonly location?: {
2632
2690
  readonly directory?: string | undefined;
2633
- readonly workspace?: string | undefined;
2634
2691
  } | undefined;
2635
2692
  readonly query: string;
2636
2693
  readonly providerID?: WebSearch.ID | undefined;
2637
2694
  };
2638
2695
  export type WebsearchQueryOutput = {
2639
- readonly location: Location.Info;
2696
+ readonly location: Location.PublicInfo;
2640
2697
  readonly data: WebSearch.Response;
2641
2698
  };
2642
2699
  export type WebsearchQueryOperation<E = never> = (input: WebsearchQueryInput) => Effect.Effect<WebsearchQueryOutput, E>;
@@ -2647,7 +2704,6 @@ export interface WebsearchApi<E = never> {
2647
2704
  export type ConfigGetInput = {
2648
2705
  readonly location?: {
2649
2706
  readonly directory?: string | undefined;
2650
- readonly workspace?: string | undefined;
2651
2707
  } | undefined;
2652
2708
  };
2653
2709
  export type ConfigGetOutput = ReadonlyArray<Config.Entry>;
@@ -2700,7 +2756,6 @@ export interface AppApi<E = never> {
2700
2756
  readonly shell: ShellApi<E>;
2701
2757
  readonly reference: ReferenceApi<E>;
2702
2758
  readonly worktree: WorktreeApi<E>;
2703
- readonly workspace: WorkspaceApi<E>;
2704
2759
  readonly vcs: VcsApi<E>;
2705
2760
  readonly debug: DebugApi<E>;
2706
2761
  readonly migration: MigrationApi<E>;