@opencode/client 0.0.0-dev-20800 → 0.0.0-dev-20801
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.
- package/dist/chunks/{pty-handoff-1y4a697q.js → contract-1y4a697q.js} +1 -1
- package/dist/chunks/{pty-handoff-8ye1ye6f.js → contract-2ny4vxct.js} +2 -2
- package/dist/chunks/contract-3xe3aqqq.js +30 -0
- package/dist/chunks/{pty-handoff-y2etg5bs.js → contract-7f0py9js.js} +2 -2
- package/dist/chunks/{pty-handoff-frbwqjmf.js → contract-frbwqjmf.js} +1 -1
- package/dist/chunks/{pty-handoff-5eexdrr4.js → contract-hzt178db.js} +1 -1
- package/dist/chunks/{pty-handoff-nwcpakzx.js → contract-js54wxgp.js} +2 -2
- package/dist/chunks/{pty-handoff-z6qdwcsf.js → contract-mnyft54j.js} +5 -5
- package/dist/chunks/{pty-handoff-qhs09f6z.js → contract-nt7y9tb6.js} +10 -10
- package/dist/chunks/{pty-handoff-qm3ebzrs.js → contract-steb0hnc.js} +17 -17
- package/dist/chunks/{pty-handoff-t1xa31vm.js → contract-t1xa31vm.js} +1 -1
- package/dist/chunks/{pty-handoff-9h52wrcy.js → contract-tbh3h57v.js} +19 -19
- package/dist/chunks/{pty-handoff-yze5j8cn.js → contract-yze5j8cn.js} +1 -1
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +67 -63
- package/dist/effect/client.js +12 -12
- package/dist/effect/generated/client-error.js +3 -3
- package/dist/effect/generated/client.js +5 -5
- package/dist/effect/generated/index.js +8 -8
- package/dist/effect/index.js +12 -12
- package/dist/effect/rpc.js +4 -4
- package/dist/effect/service.js +6 -6
- package/dist/promise/client.d.ts +2 -2
- package/dist/promise/client.js +11 -11
- package/dist/promise/generated/client-error.js +3 -3
- package/dist/promise/generated/client.d.ts +2 -2
- package/dist/promise/generated/client.js +4 -4
- package/dist/promise/generated/index.js +10 -10
- package/dist/promise/generated/types.d.ts +1647 -1621
- package/dist/promise/generated/types.js +1 -1
- package/dist/promise/index.js +13 -13
- package/dist/promise/rpc.js +2 -2
- package/dist/promise/service.js +6 -6
- package/dist/pty-handoff.js +1 -1
- package/dist/rpc-runtime.js +1 -1
- package/dist/service-contender.js +1 -1
- package/dist/service-probe.js +3 -3
- package/dist/service-timing.js +1 -1
- package/dist/service-version.js +1 -1
- package/dist/service.js +1 -1
- package/dist/shared-events.js +1 -1
- package/dist/solid/connection.js +1 -1
- package/dist/solid/data.js +9 -9
- package/dist/solid/index.js +11 -11
- package/dist/solid/pty.js +1 -1
- package/package.json +7 -7
- package/dist/chunks/pty-handoff-4g868gd9.js +0 -30
- /package/dist/chunks/{pty-handoff-6mptkzbc.js → contract-6mptkzbc.js} +0 -0
- /package/dist/chunks/{pty-handoff-9rqn6x4v.js → contract-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{pty-handoff-gne7h7mq.js → contract-gne7h7mq.js} +0 -0
- /package/dist/chunks/{pty-handoff-m2eywc8w.js → contract-m2eywc8w.js} +0 -0
- /package/dist/chunks/{pty-handoff-qav6mfdz.js → contract-qav6mfdz.js} +0 -0
- /package/dist/chunks/{pty-handoff-sxt88q69.js → contract-sxt88q69.js} +0 -0
- /package/dist/chunks/{pty-handoff-ve4aws36.js → contract-ve4aws36.js} +0 -0
- /package/dist/chunks/{pty-handoff-vmytr4q8.js → contract-vmytr4q8.js} +0 -0
- /package/dist/chunks/{pty-handoff-vt9jbch8.js → contract-vt9jbch8.js} +0 -0
- /package/dist/chunks/{pty-handoff-vyas3vgt.js → contract-vyas3vgt.js} +0 -0
- /package/dist/chunks/{pty-handoff-xgnj2w4v.js → contract-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{pty-handoff-ydhz1zrh.js → contract-ydhz1zrh.js} +0 -0
package/dist/effect/api/api.d.ts
CHANGED
|
@@ -6,7 +6,8 @@ import type { Session } from "@opencode/schema/session";
|
|
|
6
6
|
import type { AbsolutePath } from "@opencode/schema/schema";
|
|
7
7
|
import type { Project } from "@opencode/schema/project";
|
|
8
8
|
import type { RelativePath } from "@opencode/schema/schema";
|
|
9
|
-
import type {
|
|
9
|
+
import type { SessionsCursor } from "@opencode/protocol/groups/session";
|
|
10
|
+
import type { Money } from "@opencode/schema/money";
|
|
10
11
|
import type { Model } from "@opencode/schema/model";
|
|
11
12
|
import type { DateTime } from "effect";
|
|
12
13
|
import type { Permission } from "@opencode/schema/permission";
|
|
@@ -20,6 +21,9 @@ import type { InstructionEntry } from "@opencode/schema/instruction-entry";
|
|
|
20
21
|
import type { Schema } from "effect";
|
|
21
22
|
import type { Event } from "@opencode/schema/event";
|
|
22
23
|
import type { EventLog } from "@opencode/schema/event-log";
|
|
24
|
+
import type { Workspace } from "@opencode/schema/workspace";
|
|
25
|
+
import type { Instruction } from "@opencode/schema/instruction";
|
|
26
|
+
import type { Snapshot } from "@opencode/schema/snapshot";
|
|
23
27
|
import type { Shell } from "@opencode/schema/shell";
|
|
24
28
|
import type { Provider } from "@opencode/schema/provider";
|
|
25
29
|
import type { Form } from "@opencode/schema/form";
|
|
@@ -146,13 +150,13 @@ export type SessionListInput = {
|
|
|
146
150
|
readonly directory?: AbsolutePath | undefined;
|
|
147
151
|
readonly project?: Project.ID | undefined;
|
|
148
152
|
readonly subpath?: RelativePath | undefined;
|
|
149
|
-
readonly cursor?:
|
|
153
|
+
readonly cursor?: SessionsCursor | undefined;
|
|
150
154
|
};
|
|
151
155
|
export type SessionListOutput = {
|
|
152
156
|
readonly data: ReadonlyArray<Session.Info>;
|
|
153
157
|
readonly cursor: {
|
|
154
|
-
readonly previous?:
|
|
155
|
-
readonly next?:
|
|
158
|
+
readonly previous?: SessionsCursor | undefined;
|
|
159
|
+
readonly next?: SessionsCursor | undefined;
|
|
156
160
|
};
|
|
157
161
|
};
|
|
158
162
|
export type SessionListOperation<E = never> = (input?: SessionListInput) => Effect.Effect<SessionListOutput, E>;
|
|
@@ -181,7 +185,7 @@ export type SessionStatsOutput = {
|
|
|
181
185
|
readonly write: number;
|
|
182
186
|
};
|
|
183
187
|
};
|
|
184
|
-
readonly cost:
|
|
188
|
+
readonly cost: Money.USD;
|
|
185
189
|
readonly tools: {
|
|
186
190
|
readonly mode: "none";
|
|
187
191
|
} | {
|
|
@@ -227,7 +231,7 @@ export type SessionStatsOutput = {
|
|
|
227
231
|
readonly write: number;
|
|
228
232
|
};
|
|
229
233
|
};
|
|
230
|
-
readonly cost:
|
|
234
|
+
readonly cost: Money.USD;
|
|
231
235
|
}>;
|
|
232
236
|
};
|
|
233
237
|
export type SessionStatsOperation<E = never> = (input?: SessionStatsInput) => Effect.Effect<SessionStatsOutput, E>;
|
|
@@ -466,14 +470,14 @@ export type SessionLogOutput = ({
|
|
|
466
470
|
};
|
|
467
471
|
readonly location?: {
|
|
468
472
|
readonly directory: AbsolutePath;
|
|
469
|
-
readonly workspaceID?:
|
|
473
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
470
474
|
} | undefined;
|
|
471
475
|
readonly data: {
|
|
472
476
|
readonly sessionID: Session.ID;
|
|
473
477
|
readonly projectID: Project.ID;
|
|
474
478
|
readonly location: {
|
|
475
479
|
readonly directory: AbsolutePath;
|
|
476
|
-
readonly workspaceID?:
|
|
480
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
477
481
|
};
|
|
478
482
|
readonly subpath?: RelativePath | undefined;
|
|
479
483
|
readonly parentID?: Session.ID | undefined;
|
|
@@ -499,7 +503,7 @@ export type SessionLogOutput = ({
|
|
|
499
503
|
};
|
|
500
504
|
readonly location?: {
|
|
501
505
|
readonly directory: AbsolutePath;
|
|
502
|
-
readonly workspaceID?:
|
|
506
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
503
507
|
} | undefined;
|
|
504
508
|
readonly data: {
|
|
505
509
|
readonly sessionID: Session.ID;
|
|
@@ -520,7 +524,7 @@ export type SessionLogOutput = ({
|
|
|
520
524
|
};
|
|
521
525
|
readonly location?: {
|
|
522
526
|
readonly directory: AbsolutePath;
|
|
523
|
-
readonly workspaceID?:
|
|
527
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
524
528
|
} | undefined;
|
|
525
529
|
readonly data: {
|
|
526
530
|
readonly sessionID: Session.ID;
|
|
@@ -541,13 +545,13 @@ export type SessionLogOutput = ({
|
|
|
541
545
|
};
|
|
542
546
|
readonly location?: {
|
|
543
547
|
readonly directory: AbsolutePath;
|
|
544
|
-
readonly workspaceID?:
|
|
548
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
545
549
|
} | undefined;
|
|
546
550
|
readonly data: {
|
|
547
551
|
readonly sessionID: Session.ID;
|
|
548
552
|
readonly location: {
|
|
549
553
|
readonly directory: AbsolutePath;
|
|
550
|
-
readonly workspaceID?:
|
|
554
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
551
555
|
};
|
|
552
556
|
readonly projectID: Project.ID;
|
|
553
557
|
readonly subpath?: RelativePath | undefined;
|
|
@@ -566,7 +570,7 @@ export type SessionLogOutput = ({
|
|
|
566
570
|
};
|
|
567
571
|
readonly location?: {
|
|
568
572
|
readonly directory: AbsolutePath;
|
|
569
|
-
readonly workspaceID?:
|
|
573
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
570
574
|
} | undefined;
|
|
571
575
|
readonly data: {
|
|
572
576
|
readonly sessionID: Session.ID;
|
|
@@ -586,7 +590,7 @@ export type SessionLogOutput = ({
|
|
|
586
590
|
};
|
|
587
591
|
readonly location?: {
|
|
588
592
|
readonly directory: AbsolutePath;
|
|
589
|
-
readonly workspaceID?:
|
|
593
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
590
594
|
} | undefined;
|
|
591
595
|
readonly data: {
|
|
592
596
|
readonly sessionID: Session.ID;
|
|
@@ -606,7 +610,7 @@ export type SessionLogOutput = ({
|
|
|
606
610
|
};
|
|
607
611
|
readonly location?: {
|
|
608
612
|
readonly directory: AbsolutePath;
|
|
609
|
-
readonly workspaceID?:
|
|
613
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
610
614
|
} | undefined;
|
|
611
615
|
readonly data: {
|
|
612
616
|
readonly sessionID: Session.ID;
|
|
@@ -626,7 +630,7 @@ export type SessionLogOutput = ({
|
|
|
626
630
|
};
|
|
627
631
|
readonly location?: {
|
|
628
632
|
readonly directory: AbsolutePath;
|
|
629
|
-
readonly workspaceID?:
|
|
633
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
630
634
|
} | undefined;
|
|
631
635
|
readonly data: {
|
|
632
636
|
readonly sessionID: Session.ID;
|
|
@@ -646,7 +650,7 @@ export type SessionLogOutput = ({
|
|
|
646
650
|
};
|
|
647
651
|
readonly location?: {
|
|
648
652
|
readonly directory: AbsolutePath;
|
|
649
|
-
readonly workspaceID?:
|
|
653
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
650
654
|
} | undefined;
|
|
651
655
|
readonly data: {
|
|
652
656
|
readonly sessionID: Session.ID;
|
|
@@ -665,14 +669,14 @@ export type SessionLogOutput = ({
|
|
|
665
669
|
};
|
|
666
670
|
readonly location?: {
|
|
667
671
|
readonly directory: AbsolutePath;
|
|
668
|
-
readonly workspaceID?:
|
|
672
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
669
673
|
} | undefined;
|
|
670
674
|
readonly data: {
|
|
671
675
|
readonly sessionID: Session.ID;
|
|
672
676
|
readonly parentID: Session.ID;
|
|
673
677
|
readonly boundary: Session.ForkBoundary;
|
|
674
678
|
readonly instructions?: {
|
|
675
|
-
readonly [x:
|
|
679
|
+
readonly [x: Instruction.Key]: Instruction.Hash;
|
|
676
680
|
} | undefined;
|
|
677
681
|
readonly instructionEntries?: InstructionEntry.Snapshot | undefined;
|
|
678
682
|
};
|
|
@@ -690,7 +694,7 @@ export type SessionLogOutput = ({
|
|
|
690
694
|
};
|
|
691
695
|
readonly location?: {
|
|
692
696
|
readonly directory: AbsolutePath;
|
|
693
|
-
readonly workspaceID?:
|
|
697
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
694
698
|
} | undefined;
|
|
695
699
|
readonly data: {
|
|
696
700
|
readonly sessionID: Session.ID;
|
|
@@ -710,7 +714,7 @@ export type SessionLogOutput = ({
|
|
|
710
714
|
};
|
|
711
715
|
readonly location?: {
|
|
712
716
|
readonly directory: AbsolutePath;
|
|
713
|
-
readonly workspaceID?:
|
|
717
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
714
718
|
} | undefined;
|
|
715
719
|
readonly data: {
|
|
716
720
|
readonly sessionID: Session.ID;
|
|
@@ -731,7 +735,7 @@ export type SessionLogOutput = ({
|
|
|
731
735
|
};
|
|
732
736
|
readonly location?: {
|
|
733
737
|
readonly directory: AbsolutePath;
|
|
734
|
-
readonly workspaceID?:
|
|
738
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
735
739
|
} | undefined;
|
|
736
740
|
readonly data: {
|
|
737
741
|
readonly sessionID: Session.ID;
|
|
@@ -751,7 +755,7 @@ export type SessionLogOutput = ({
|
|
|
751
755
|
};
|
|
752
756
|
readonly location?: {
|
|
753
757
|
readonly directory: AbsolutePath;
|
|
754
|
-
readonly workspaceID?:
|
|
758
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
755
759
|
} | undefined;
|
|
756
760
|
readonly data: {
|
|
757
761
|
readonly sessionID: Session.ID;
|
|
@@ -772,7 +776,7 @@ export type SessionLogOutput = ({
|
|
|
772
776
|
};
|
|
773
777
|
readonly location?: {
|
|
774
778
|
readonly directory: AbsolutePath;
|
|
775
|
-
readonly workspaceID?:
|
|
779
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
776
780
|
} | undefined;
|
|
777
781
|
readonly data: {
|
|
778
782
|
readonly sessionID: Session.ID;
|
|
@@ -791,7 +795,7 @@ export type SessionLogOutput = ({
|
|
|
791
795
|
};
|
|
792
796
|
readonly location?: {
|
|
793
797
|
readonly directory: AbsolutePath;
|
|
794
|
-
readonly workspaceID?:
|
|
798
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
795
799
|
} | undefined;
|
|
796
800
|
readonly data: {
|
|
797
801
|
readonly sessionID: Session.ID;
|
|
@@ -810,7 +814,7 @@ export type SessionLogOutput = ({
|
|
|
810
814
|
};
|
|
811
815
|
readonly location?: {
|
|
812
816
|
readonly directory: AbsolutePath;
|
|
813
|
-
readonly workspaceID?:
|
|
817
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
814
818
|
} | undefined;
|
|
815
819
|
readonly data: {
|
|
816
820
|
readonly sessionID: Session.ID;
|
|
@@ -837,7 +841,7 @@ export type SessionLogOutput = ({
|
|
|
837
841
|
};
|
|
838
842
|
readonly location?: {
|
|
839
843
|
readonly directory: AbsolutePath;
|
|
840
|
-
readonly workspaceID?:
|
|
844
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
841
845
|
} | undefined;
|
|
842
846
|
readonly data: {
|
|
843
847
|
readonly sessionID: Session.ID;
|
|
@@ -857,12 +861,12 @@ export type SessionLogOutput = ({
|
|
|
857
861
|
};
|
|
858
862
|
readonly location?: {
|
|
859
863
|
readonly directory: AbsolutePath;
|
|
860
|
-
readonly workspaceID?:
|
|
864
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
861
865
|
} | undefined;
|
|
862
866
|
readonly data: {
|
|
863
867
|
readonly sessionID: Session.ID;
|
|
864
868
|
readonly delta: {
|
|
865
|
-
readonly [x: string]:
|
|
869
|
+
readonly [x: string]: Instruction.Hash | "removed";
|
|
866
870
|
};
|
|
867
871
|
readonly text?: string | undefined;
|
|
868
872
|
};
|
|
@@ -880,7 +884,7 @@ export type SessionLogOutput = ({
|
|
|
880
884
|
};
|
|
881
885
|
readonly location?: {
|
|
882
886
|
readonly directory: AbsolutePath;
|
|
883
|
-
readonly workspaceID?:
|
|
887
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
884
888
|
} | undefined;
|
|
885
889
|
readonly data: {
|
|
886
890
|
readonly sessionID: Session.ID;
|
|
@@ -904,7 +908,7 @@ export type SessionLogOutput = ({
|
|
|
904
908
|
};
|
|
905
909
|
readonly location?: {
|
|
906
910
|
readonly directory: AbsolutePath;
|
|
907
|
-
readonly workspaceID?:
|
|
911
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
908
912
|
} | undefined;
|
|
909
913
|
readonly data: {
|
|
910
914
|
readonly sessionID: Session.ID;
|
|
@@ -926,7 +930,7 @@ export type SessionLogOutput = ({
|
|
|
926
930
|
};
|
|
927
931
|
readonly location?: {
|
|
928
932
|
readonly directory: AbsolutePath;
|
|
929
|
-
readonly workspaceID?:
|
|
933
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
930
934
|
} | undefined;
|
|
931
935
|
readonly data: {
|
|
932
936
|
readonly sessionID: Session.ID;
|
|
@@ -946,7 +950,7 @@ export type SessionLogOutput = ({
|
|
|
946
950
|
};
|
|
947
951
|
readonly location?: {
|
|
948
952
|
readonly directory: AbsolutePath;
|
|
949
|
-
readonly workspaceID?:
|
|
953
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
950
954
|
} | undefined;
|
|
951
955
|
readonly data: {
|
|
952
956
|
readonly sessionID: Session.ID;
|
|
@@ -972,14 +976,14 @@ export type SessionLogOutput = ({
|
|
|
972
976
|
};
|
|
973
977
|
readonly location?: {
|
|
974
978
|
readonly directory: AbsolutePath;
|
|
975
|
-
readonly workspaceID?:
|
|
979
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
976
980
|
} | undefined;
|
|
977
981
|
readonly data: {
|
|
978
982
|
readonly sessionID: Session.ID;
|
|
979
983
|
readonly assistantMessageID: SessionMessage.ID;
|
|
980
984
|
readonly agent: Agent.ID;
|
|
981
985
|
readonly model: Model.Ref;
|
|
982
|
-
readonly snapshot?:
|
|
986
|
+
readonly snapshot?: Snapshot.ID | undefined;
|
|
983
987
|
readonly started: number;
|
|
984
988
|
};
|
|
985
989
|
} | {
|
|
@@ -996,7 +1000,7 @@ export type SessionLogOutput = ({
|
|
|
996
1000
|
};
|
|
997
1001
|
readonly location?: {
|
|
998
1002
|
readonly directory: AbsolutePath;
|
|
999
|
-
readonly workspaceID?:
|
|
1003
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
1000
1004
|
} | undefined;
|
|
1001
1005
|
readonly data: {
|
|
1002
1006
|
readonly sessionID: Session.ID;
|
|
@@ -1016,7 +1020,7 @@ export type SessionLogOutput = ({
|
|
|
1016
1020
|
};
|
|
1017
1021
|
readonly location?: {
|
|
1018
1022
|
readonly directory: AbsolutePath;
|
|
1019
|
-
readonly workspaceID?:
|
|
1023
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
1020
1024
|
} | undefined;
|
|
1021
1025
|
readonly data: {
|
|
1022
1026
|
readonly sessionID: Session.ID;
|
|
@@ -1024,7 +1028,7 @@ export type SessionLogOutput = ({
|
|
|
1024
1028
|
readonly finish: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
|
|
1025
1029
|
readonly rawFinish?: string | undefined;
|
|
1026
1030
|
readonly providerState?: SessionMessage.ProviderState | undefined;
|
|
1027
|
-
readonly cost:
|
|
1031
|
+
readonly cost: Money.USD;
|
|
1028
1032
|
readonly tokens: {
|
|
1029
1033
|
readonly input: number;
|
|
1030
1034
|
readonly output: number;
|
|
@@ -1034,7 +1038,7 @@ export type SessionLogOutput = ({
|
|
|
1034
1038
|
readonly write: number;
|
|
1035
1039
|
};
|
|
1036
1040
|
};
|
|
1037
|
-
readonly snapshot?:
|
|
1041
|
+
readonly snapshot?: Snapshot.ID | undefined;
|
|
1038
1042
|
readonly files?: ReadonlyArray<RelativePath> | undefined;
|
|
1039
1043
|
};
|
|
1040
1044
|
} | {
|
|
@@ -1051,7 +1055,7 @@ export type SessionLogOutput = ({
|
|
|
1051
1055
|
};
|
|
1052
1056
|
readonly location?: {
|
|
1053
1057
|
readonly directory: AbsolutePath;
|
|
1054
|
-
readonly workspaceID?:
|
|
1058
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
1055
1059
|
} | undefined;
|
|
1056
1060
|
readonly data: {
|
|
1057
1061
|
readonly sessionID: Session.ID;
|
|
@@ -1067,7 +1071,7 @@ export type SessionLogOutput = ({
|
|
|
1067
1071
|
readonly finish?: "content-filter" | undefined;
|
|
1068
1072
|
readonly rawFinish?: string | undefined;
|
|
1069
1073
|
readonly providerState?: SessionMessage.ProviderState | undefined;
|
|
1070
|
-
readonly cost?:
|
|
1074
|
+
readonly cost?: Money.USD | undefined;
|
|
1071
1075
|
readonly tokens?: {
|
|
1072
1076
|
readonly input: number;
|
|
1073
1077
|
readonly output: number;
|
|
@@ -1077,7 +1081,7 @@ export type SessionLogOutput = ({
|
|
|
1077
1081
|
readonly write: number;
|
|
1078
1082
|
};
|
|
1079
1083
|
} | undefined;
|
|
1080
|
-
readonly snapshot?:
|
|
1084
|
+
readonly snapshot?: Snapshot.ID | undefined;
|
|
1081
1085
|
readonly files?: ReadonlyArray<RelativePath> | undefined;
|
|
1082
1086
|
};
|
|
1083
1087
|
} | {
|
|
@@ -1094,7 +1098,7 @@ export type SessionLogOutput = ({
|
|
|
1094
1098
|
};
|
|
1095
1099
|
readonly location?: {
|
|
1096
1100
|
readonly directory: AbsolutePath;
|
|
1097
|
-
readonly workspaceID?:
|
|
1101
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
1098
1102
|
} | undefined;
|
|
1099
1103
|
readonly data: {
|
|
1100
1104
|
readonly sessionID: Session.ID;
|
|
@@ -1115,7 +1119,7 @@ export type SessionLogOutput = ({
|
|
|
1115
1119
|
};
|
|
1116
1120
|
readonly location?: {
|
|
1117
1121
|
readonly directory: AbsolutePath;
|
|
1118
|
-
readonly workspaceID?:
|
|
1122
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
1119
1123
|
} | undefined;
|
|
1120
1124
|
readonly data: {
|
|
1121
1125
|
readonly sessionID: Session.ID;
|
|
@@ -1138,7 +1142,7 @@ export type SessionLogOutput = ({
|
|
|
1138
1142
|
};
|
|
1139
1143
|
readonly location?: {
|
|
1140
1144
|
readonly directory: AbsolutePath;
|
|
1141
|
-
readonly workspaceID?:
|
|
1145
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
1142
1146
|
} | undefined;
|
|
1143
1147
|
readonly data: {
|
|
1144
1148
|
readonly sessionID: Session.ID;
|
|
@@ -1160,7 +1164,7 @@ export type SessionLogOutput = ({
|
|
|
1160
1164
|
};
|
|
1161
1165
|
readonly location?: {
|
|
1162
1166
|
readonly directory: AbsolutePath;
|
|
1163
|
-
readonly workspaceID?:
|
|
1167
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
1164
1168
|
} | undefined;
|
|
1165
1169
|
readonly data: {
|
|
1166
1170
|
readonly sessionID: Session.ID;
|
|
@@ -1183,7 +1187,7 @@ export type SessionLogOutput = ({
|
|
|
1183
1187
|
};
|
|
1184
1188
|
readonly location?: {
|
|
1185
1189
|
readonly directory: AbsolutePath;
|
|
1186
|
-
readonly workspaceID?:
|
|
1190
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
1187
1191
|
} | undefined;
|
|
1188
1192
|
readonly data: {
|
|
1189
1193
|
readonly sessionID: Session.ID;
|
|
@@ -1205,7 +1209,7 @@ export type SessionLogOutput = ({
|
|
|
1205
1209
|
};
|
|
1206
1210
|
readonly location?: {
|
|
1207
1211
|
readonly directory: AbsolutePath;
|
|
1208
|
-
readonly workspaceID?:
|
|
1212
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
1209
1213
|
} | undefined;
|
|
1210
1214
|
readonly data: {
|
|
1211
1215
|
readonly sessionID: Session.ID;
|
|
@@ -1227,7 +1231,7 @@ export type SessionLogOutput = ({
|
|
|
1227
1231
|
};
|
|
1228
1232
|
readonly location?: {
|
|
1229
1233
|
readonly directory: AbsolutePath;
|
|
1230
|
-
readonly workspaceID?:
|
|
1234
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
1231
1235
|
} | undefined;
|
|
1232
1236
|
readonly data: {
|
|
1233
1237
|
readonly sessionID: Session.ID;
|
|
@@ -1253,7 +1257,7 @@ export type SessionLogOutput = ({
|
|
|
1253
1257
|
};
|
|
1254
1258
|
readonly location?: {
|
|
1255
1259
|
readonly directory: AbsolutePath;
|
|
1256
|
-
readonly workspaceID?:
|
|
1260
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
1257
1261
|
} | undefined;
|
|
1258
1262
|
readonly data: {
|
|
1259
1263
|
readonly sessionID: Session.ID;
|
|
@@ -1299,7 +1303,7 @@ export type SessionLogOutput = ({
|
|
|
1299
1303
|
};
|
|
1300
1304
|
readonly location?: {
|
|
1301
1305
|
readonly directory: AbsolutePath;
|
|
1302
|
-
readonly workspaceID?:
|
|
1306
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
1303
1307
|
} | undefined;
|
|
1304
1308
|
readonly data: {
|
|
1305
1309
|
readonly sessionID: Session.ID;
|
|
@@ -1353,7 +1357,7 @@ export type SessionLogOutput = ({
|
|
|
1353
1357
|
};
|
|
1354
1358
|
readonly location?: {
|
|
1355
1359
|
readonly directory: AbsolutePath;
|
|
1356
|
-
readonly workspaceID?:
|
|
1360
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
1357
1361
|
} | undefined;
|
|
1358
1362
|
readonly data: {
|
|
1359
1363
|
readonly sessionID: Session.ID;
|
|
@@ -1383,7 +1387,7 @@ export type SessionLogOutput = ({
|
|
|
1383
1387
|
};
|
|
1384
1388
|
readonly location?: {
|
|
1385
1389
|
readonly directory: AbsolutePath;
|
|
1386
|
-
readonly workspaceID?:
|
|
1390
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
1387
1391
|
} | undefined;
|
|
1388
1392
|
readonly data: {
|
|
1389
1393
|
readonly sessionID: Session.ID;
|
|
@@ -1405,7 +1409,7 @@ export type SessionLogOutput = ({
|
|
|
1405
1409
|
};
|
|
1406
1410
|
readonly location?: {
|
|
1407
1411
|
readonly directory: AbsolutePath;
|
|
1408
|
-
readonly workspaceID?:
|
|
1412
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
1409
1413
|
} | undefined;
|
|
1410
1414
|
readonly data: {
|
|
1411
1415
|
readonly sessionID: Session.ID;
|
|
@@ -1426,7 +1430,7 @@ export type SessionLogOutput = ({
|
|
|
1426
1430
|
} | undefined;
|
|
1427
1431
|
readonly text: string;
|
|
1428
1432
|
readonly recent: string;
|
|
1429
|
-
readonly cost?:
|
|
1433
|
+
readonly cost?: Money.USD | undefined;
|
|
1430
1434
|
readonly tokens?: {
|
|
1431
1435
|
readonly input: number;
|
|
1432
1436
|
readonly output: number;
|
|
@@ -1451,7 +1455,7 @@ export type SessionLogOutput = ({
|
|
|
1451
1455
|
};
|
|
1452
1456
|
readonly location?: {
|
|
1453
1457
|
readonly directory: AbsolutePath;
|
|
1454
|
-
readonly workspaceID?:
|
|
1458
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
1455
1459
|
} | undefined;
|
|
1456
1460
|
readonly data: {
|
|
1457
1461
|
readonly sessionID: Session.ID;
|
|
@@ -1465,7 +1469,7 @@ export type SessionLogOutput = ({
|
|
|
1465
1469
|
} | undefined;
|
|
1466
1470
|
};
|
|
1467
1471
|
readonly inputID?: SessionMessage.ID | undefined;
|
|
1468
|
-
readonly cost?:
|
|
1472
|
+
readonly cost?: Money.USD | undefined;
|
|
1469
1473
|
readonly tokens?: {
|
|
1470
1474
|
readonly input: number;
|
|
1471
1475
|
readonly output: number;
|
|
@@ -1490,7 +1494,7 @@ export type SessionLogOutput = ({
|
|
|
1490
1494
|
};
|
|
1491
1495
|
readonly location?: {
|
|
1492
1496
|
readonly directory: AbsolutePath;
|
|
1493
|
-
readonly workspaceID?:
|
|
1497
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
1494
1498
|
} | undefined;
|
|
1495
1499
|
readonly data: {
|
|
1496
1500
|
readonly sessionID: Session.ID;
|
|
@@ -1510,7 +1514,7 @@ export type SessionLogOutput = ({
|
|
|
1510
1514
|
};
|
|
1511
1515
|
readonly location?: {
|
|
1512
1516
|
readonly directory: AbsolutePath;
|
|
1513
|
-
readonly workspaceID?:
|
|
1517
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
1514
1518
|
} | undefined;
|
|
1515
1519
|
readonly data: {
|
|
1516
1520
|
readonly sessionID: Session.ID;
|
|
@@ -1529,7 +1533,7 @@ export type SessionLogOutput = ({
|
|
|
1529
1533
|
};
|
|
1530
1534
|
readonly location?: {
|
|
1531
1535
|
readonly directory: AbsolutePath;
|
|
1532
|
-
readonly workspaceID?:
|
|
1536
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
1533
1537
|
} | undefined;
|
|
1534
1538
|
readonly data: {
|
|
1535
1539
|
readonly sessionID: Session.ID;
|
|
@@ -1549,12 +1553,12 @@ export type SessionLogOutput = ({
|
|
|
1549
1553
|
};
|
|
1550
1554
|
readonly location?: {
|
|
1551
1555
|
readonly directory: AbsolutePath;
|
|
1552
|
-
readonly workspaceID?:
|
|
1556
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
1553
1557
|
} | undefined;
|
|
1554
1558
|
readonly data: {
|
|
1555
1559
|
readonly sessionID: Session.ID;
|
|
1556
1560
|
readonly source: "title" | "compaction";
|
|
1557
|
-
readonly cost:
|
|
1561
|
+
readonly cost: Money.USD;
|
|
1558
1562
|
readonly tokens: {
|
|
1559
1563
|
readonly input: number;
|
|
1560
1564
|
readonly output: number;
|
|
@@ -1579,7 +1583,7 @@ export type SessionLogOutput = ({
|
|
|
1579
1583
|
};
|
|
1580
1584
|
readonly location?: {
|
|
1581
1585
|
readonly directory: AbsolutePath;
|
|
1582
|
-
readonly workspaceID?:
|
|
1586
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
1583
1587
|
} | undefined;
|
|
1584
1588
|
readonly data: {
|
|
1585
1589
|
readonly sessionID: Session.ID;
|
package/dist/effect/client.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
10
|
-
import"../chunks/
|
|
11
|
-
import"../chunks/
|
|
2
|
+
make4,
|
|
3
|
+
exports_client3
|
|
4
|
+
} from "../chunks/contract-steb0hnc.js";
|
|
5
|
+
import"../chunks/contract-mnyft54j.js";
|
|
6
|
+
import"../chunks/contract-6mptkzbc.js";
|
|
7
|
+
import"../chunks/contract-nt7y9tb6.js";
|
|
8
|
+
import"../chunks/contract-7f0py9js.js";
|
|
9
|
+
import"../chunks/contract-vmytr4q8.js";
|
|
10
|
+
import"../chunks/contract-frbwqjmf.js";
|
|
11
|
+
import"../chunks/contract-t1xa31vm.js";
|
|
12
12
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
exports_client3 as OpenCode,
|
|
14
|
+
make4 as make
|
|
15
15
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../chunks/
|
|
4
|
-
import"../../chunks/
|
|
5
|
-
import"../../chunks/
|
|
2
|
+
make6
|
|
3
|
+
} from "../../chunks/contract-nt7y9tb6.js";
|
|
4
|
+
import"../../chunks/contract-7f0py9js.js";
|
|
5
|
+
import"../../chunks/contract-vmytr4q8.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
make6 as make
|
|
8
8
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import"../../chunks/
|
|
1
|
+
import"../../chunks/contract-6mptkzbc.js";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../chunks/
|
|
3
|
+
exports_client4
|
|
4
|
+
} from "../../chunks/contract-nt7y9tb6.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../chunks/
|
|
8
|
-
import"../../chunks/
|
|
6
|
+
ClientError3
|
|
7
|
+
} from "../../chunks/contract-7f0py9js.js";
|
|
8
|
+
import"../../chunks/contract-vmytr4q8.js";
|
|
9
9
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
ClientError3 as ClientError,
|
|
11
|
+
exports_client4 as OpenCode
|
|
12
12
|
};
|
package/dist/effect/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
2
|
+
ClientError3
|
|
3
|
+
} from "../chunks/contract-7f0py9js.js";
|
|
4
|
+
import"../chunks/contract-vmytr4q8.js";
|
|
5
|
+
import"../chunks/contract-nt7y9tb6.js";
|
|
6
|
+
import"../chunks/contract-6mptkzbc.js";
|
|
7
|
+
import"../chunks/contract-frbwqjmf.js";
|
|
8
|
+
import"../chunks/contract-t1xa31vm.js";
|
|
9
|
+
import"../chunks/contract-mnyft54j.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "../chunks/
|
|
11
|
+
exports_client3
|
|
12
|
+
} from "../chunks/contract-steb0hnc.js";
|
|
13
13
|
|
|
14
14
|
// src/effect/index.ts
|
|
15
15
|
import { Agent } from "@opencode/schema/agent";
|
|
@@ -43,7 +43,7 @@ import { PromptInput } from "@opencode/schema/prompt-input";
|
|
|
43
43
|
export {
|
|
44
44
|
AbsolutePath,
|
|
45
45
|
Agent,
|
|
46
|
-
|
|
46
|
+
ClientError3 as ClientError,
|
|
47
47
|
Command,
|
|
48
48
|
Config,
|
|
49
49
|
Credential,
|
|
@@ -54,7 +54,7 @@ export {
|
|
|
54
54
|
Integration,
|
|
55
55
|
Location,
|
|
56
56
|
Model,
|
|
57
|
-
|
|
57
|
+
exports_client3 as OpenCode,
|
|
58
58
|
Permission,
|
|
59
59
|
PermissionSaved,
|
|
60
60
|
Project,
|
package/dist/effect/rpc.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
make5,
|
|
3
3
|
aborted2,
|
|
4
4
|
exports_rpc
|
|
5
|
-
} from "../chunks/
|
|
6
|
-
import"../chunks/
|
|
5
|
+
} from "../chunks/contract-mnyft54j.js";
|
|
6
|
+
import"../chunks/contract-t1xa31vm.js";
|
|
7
7
|
export {
|
|
8
8
|
exports_rpc as RpcClientRuntime,
|
|
9
9
|
aborted2 as aborted,
|
|
10
|
-
|
|
10
|
+
make5 as make
|
|
11
11
|
};
|