@opencode/client 0.0.0-dev-21269 → 0.0.0-dev-21289
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-x61gkv37.js → service-contender-3d7b8k62.js} +4 -4
- package/dist/chunks/{pty-handoff-1hkhww1g.js → service-contender-61wt4y9h.js} +14 -17
- package/dist/chunks/{pty-handoff-6vp15eh6.js → service-contender-6vp15eh6.js} +1 -1
- package/dist/chunks/{pty-handoff-8ye1ye6f.js → service-contender-8ye1ye6f.js} +2 -2
- package/dist/chunks/{pty-handoff-2wvmafzq.js → service-contender-91bd4p6h.js} +1 -1
- package/dist/chunks/{pty-handoff-f93mzqah.js → service-contender-f93mzqah.js} +3 -3
- package/dist/chunks/{pty-handoff-frbwqjmf.js → service-contender-frbwqjmf.js} +1 -1
- package/dist/chunks/{pty-handoff-mnyft54j.js → service-contender-mnyft54j.js} +2 -2
- package/dist/chunks/{pty-handoff-nv358xrg.js → service-contender-nv358xrg.js} +2 -2
- package/dist/chunks/{pty-handoff-jgqe9q94.js → service-contender-qdgrxmbx.js} +5 -5
- package/dist/chunks/{pty-handoff-t1xa31vm.js → service-contender-t1xa31vm.js} +1 -1
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +10 -24
- package/dist/effect/client.d.ts +126 -140
- package/dist/effect/client.js +8 -8
- package/dist/effect/generated/client-error.js +1 -1
- package/dist/effect/generated/client.d.ts +956 -970
- package/dist/effect/generated/client.js +3 -3
- package/dist/effect/generated/index.js +4 -4
- package/dist/effect/index.js +8 -8
- package/dist/effect/rpc.js +2 -2
- package/dist/effect/service.js +6 -6
- package/dist/promise/client.js +7 -7
- package/dist/promise/generated/client-error.js +1 -1
- package/dist/promise/generated/client.js +2 -2
- package/dist/promise/generated/index.js +8 -8
- package/dist/promise/generated/types.d.ts +168 -1462
- package/dist/promise/generated/types.js +1 -1
- package/dist/promise/index.js +10 -10
- 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 +12 -12
- package/dist/solid/pty.js +1 -1
- package/dist/solid/usage.js +1 -1
- package/package.json +4 -4
- /package/dist/chunks/{pty-handoff-6mptkzbc.js → service-contender-6mptkzbc.js} +0 -0
- /package/dist/chunks/{pty-handoff-7f0py9js.js → service-contender-7f0py9js.js} +0 -0
- /package/dist/chunks/{pty-handoff-8s2anffy.js → service-contender-8s2anffy.js} +0 -0
- /package/dist/chunks/{pty-handoff-9rqn6x4v.js → service-contender-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{pty-handoff-ezt8t3fk.js → service-contender-ezt8t3fk.js} +0 -0
- /package/dist/chunks/{pty-handoff-gne7h7mq.js → service-contender-gne7h7mq.js} +0 -0
- /package/dist/chunks/{pty-handoff-js54wxgp.js → service-contender-js54wxgp.js} +0 -0
- /package/dist/chunks/{pty-handoff-m2eywc8w.js → service-contender-m2eywc8w.js} +0 -0
- /package/dist/chunks/{pty-handoff-qav6mfdz.js → service-contender-qav6mfdz.js} +0 -0
- /package/dist/chunks/{pty-handoff-sxt88q69.js → service-contender-sxt88q69.js} +0 -0
- /package/dist/chunks/{pty-handoff-ve4aws36.js → service-contender-ve4aws36.js} +0 -0
- /package/dist/chunks/{pty-handoff-vmytr4q8.js → service-contender-vmytr4q8.js} +0 -0
- /package/dist/chunks/{pty-handoff-vyas3vgt.js → service-contender-vyas3vgt.js} +0 -0
- /package/dist/chunks/{pty-handoff-xgnj2w4v.js → service-contender-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{pty-handoff-ydhz1zrh.js → service-contender-ydhz1zrh.js} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make7
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-contender-frbwqjmf.js";
|
|
4
4
|
import {
|
|
5
5
|
make3
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-contender-nv358xrg.js";
|
|
7
7
|
import {
|
|
8
8
|
makeRpc2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./service-contender-6vp15eh6.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./service-contender-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/promise/client.ts
|
|
15
15
|
var exports_client = {};
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
isFormNotFoundError2,
|
|
3
3
|
isFormAlreadySettledError2,
|
|
4
4
|
isPermissionNotFoundError2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./service-contender-ezt8t3fk.js";
|
|
6
6
|
|
|
7
7
|
// src/solid/data.ts
|
|
8
8
|
import { Worktree } from "@opencode/schema/worktree";
|
|
@@ -690,7 +690,7 @@ function createData2(config) {
|
|
|
690
690
|
existing.error = undefined;
|
|
691
691
|
existing.finish = undefined;
|
|
692
692
|
existing.rawFinish = undefined;
|
|
693
|
-
existing.
|
|
693
|
+
existing.native = undefined;
|
|
694
694
|
existing.time.created = event.data.started;
|
|
695
695
|
existing.time.streamed = undefined;
|
|
696
696
|
existing.time.completed = undefined;
|
|
@@ -725,7 +725,7 @@ function createData2(config) {
|
|
|
725
725
|
assistant.time.completed = event.created;
|
|
726
726
|
assistant.finish = event.data.finish;
|
|
727
727
|
assistant.rawFinish = event.data.rawFinish;
|
|
728
|
-
assistant.
|
|
728
|
+
assistant.native = event.data.native;
|
|
729
729
|
assistant.cost = event.data.cost;
|
|
730
730
|
assistant.tokens = event.data.tokens;
|
|
731
731
|
if (event.data.snapshot)
|
|
@@ -738,7 +738,7 @@ function createData2(config) {
|
|
|
738
738
|
assistant.time.completed = event.created;
|
|
739
739
|
assistant.finish = event.data.finish ?? "error";
|
|
740
740
|
assistant.rawFinish = event.data.rawFinish;
|
|
741
|
-
assistant.
|
|
741
|
+
assistant.native = event.data.native;
|
|
742
742
|
assistant.error = event.data.error;
|
|
743
743
|
assistant.retry = undefined;
|
|
744
744
|
if (event.data.cost !== undefined && event.data.tokens !== undefined) {
|
|
@@ -789,7 +789,7 @@ function createData2(config) {
|
|
|
789
789
|
message.editTool(event.data.sessionID, event.data.assistantMessageID, event.data.id, (tool) => {
|
|
790
790
|
tool.time.ran = event.created;
|
|
791
791
|
tool.executed = event.data.executed;
|
|
792
|
-
tool.
|
|
792
|
+
tool.native = event.data.native;
|
|
793
793
|
tool.state = { status: "running", input: event.data.input, metadata: {} };
|
|
794
794
|
});
|
|
795
795
|
return;
|
|
@@ -810,7 +810,8 @@ function createData2(config) {
|
|
|
810
810
|
content: [...event.data.content]
|
|
811
811
|
};
|
|
812
812
|
tool.executed = event.data.executed || tool.executed === true;
|
|
813
|
-
|
|
813
|
+
if (event.data.native)
|
|
814
|
+
tool.native = { ...tool.native, ...event.data.native };
|
|
814
815
|
tool.time.completed = event.created;
|
|
815
816
|
});
|
|
816
817
|
return;
|
|
@@ -826,7 +827,8 @@ function createData2(config) {
|
|
|
826
827
|
content: event.data.content
|
|
827
828
|
};
|
|
828
829
|
tool.executed = event.data.executed || tool.executed === true;
|
|
829
|
-
|
|
830
|
+
if (event.data.native)
|
|
831
|
+
tool.native = { ...tool.native, ...event.data.native };
|
|
830
832
|
tool.time.completed = event.created;
|
|
831
833
|
});
|
|
832
834
|
return;
|
|
@@ -835,7 +837,7 @@ function createData2(config) {
|
|
|
835
837
|
assistant.content.push({
|
|
836
838
|
type: "reasoning",
|
|
837
839
|
text: "",
|
|
838
|
-
|
|
840
|
+
native: event.data.native,
|
|
839
841
|
time: { created: event.created }
|
|
840
842
|
});
|
|
841
843
|
});
|
|
@@ -849,8 +851,8 @@ function createData2(config) {
|
|
|
849
851
|
message.editReasoning(event.data.sessionID, event.data.assistantMessageID, (reasoning) => {
|
|
850
852
|
reasoning.text = event.data.text;
|
|
851
853
|
reasoning.time = { created: reasoning.time?.created ?? event.created, completed: event.created };
|
|
852
|
-
if (event.data.
|
|
853
|
-
reasoning.
|
|
854
|
+
if (event.data.native !== undefined)
|
|
855
|
+
reasoning.native = event.data.native;
|
|
854
856
|
});
|
|
855
857
|
return;
|
|
856
858
|
case "session.retry.scheduled":
|
|
@@ -870,7 +872,6 @@ function createData2(config) {
|
|
|
870
872
|
status: "running",
|
|
871
873
|
reason: event.data.reason,
|
|
872
874
|
summary: "",
|
|
873
|
-
recent: event.data.recent ?? "",
|
|
874
875
|
time: { created: event.created }
|
|
875
876
|
});
|
|
876
877
|
if (event.data.inputID)
|
|
@@ -946,10 +947,8 @@ function createData2(config) {
|
|
|
946
947
|
status: "completed",
|
|
947
948
|
reason: event.data.reason,
|
|
948
949
|
model: event.data.model,
|
|
949
|
-
|
|
950
|
-
providerContext: event.data.providerContext,
|
|
950
|
+
native: event.data.native,
|
|
951
951
|
summary: event.data.text,
|
|
952
|
-
recent: event.data.recent,
|
|
953
952
|
cost: event.data.cost,
|
|
954
953
|
tokens: event.data.tokens
|
|
955
954
|
});
|
|
@@ -961,10 +960,8 @@ function createData2(config) {
|
|
|
961
960
|
status: "completed",
|
|
962
961
|
reason: event.data.reason,
|
|
963
962
|
model: event.data.model,
|
|
964
|
-
|
|
965
|
-
providerContext: event.data.providerContext,
|
|
963
|
+
native: event.data.native,
|
|
966
964
|
summary: event.data.text,
|
|
967
|
-
recent: event.data.recent,
|
|
968
965
|
cost: event.data.cost,
|
|
969
966
|
tokens: event.data.tokens,
|
|
970
967
|
time: { created: event.created }
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defaultEnsureTiming2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-contender-xgnj2w4v.js";
|
|
4
4
|
import {
|
|
5
5
|
matchesVersion2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-contender-sxt88q69.js";
|
|
7
7
|
|
|
8
8
|
// src/service-probe.ts
|
|
9
9
|
import { homedir } from "node:os";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientApi2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-contender-vmytr4q8.js";
|
|
4
4
|
import {
|
|
5
5
|
ClientError3
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-contender-7f0py9js.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./service-contender-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/effect/generated/client.ts
|
|
12
12
|
var exports_client4 = {};
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
readError2,
|
|
4
4
|
event2,
|
|
5
5
|
eventType2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-contender-t1xa31vm.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./service-contender-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/effect/rpc.ts
|
|
12
12
|
var exports_rpc = {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientError2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-contender-js54wxgp.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-contender-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/promise/generated/client.ts
|
|
9
9
|
var exports_client2 = {};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make7
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-contender-frbwqjmf.js";
|
|
4
4
|
import {
|
|
5
5
|
ClientError3
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-contender-7f0py9js.js";
|
|
7
7
|
import {
|
|
8
8
|
make6
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./service-contender-f93mzqah.js";
|
|
10
10
|
import {
|
|
11
11
|
make5,
|
|
12
12
|
aborted2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./service-contender-mnyft54j.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./service-contender-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/effect/client.ts
|
|
19
19
|
var exports_client3 = {};
|
package/dist/contract.js
CHANGED
package/dist/effect/api/api.d.ts
CHANGED
|
@@ -24,8 +24,8 @@ import type { Workspace } from "@opencode/schema/workspace";
|
|
|
24
24
|
import type { Instruction } from "@opencode/schema/instruction";
|
|
25
25
|
import type { Snapshot } from "@opencode/schema/snapshot";
|
|
26
26
|
import type { Shell } from "@opencode/schema/shell";
|
|
27
|
-
import type { Provider } from "@opencode/schema/provider";
|
|
28
27
|
import type { Form } from "@opencode/schema/form";
|
|
28
|
+
import type { Provider } from "@opencode/schema/provider";
|
|
29
29
|
import type { Integration } from "@opencode/schema/integration";
|
|
30
30
|
import type { Mcp } from "@opencode/schema/mcp";
|
|
31
31
|
import type { Credential } from "@opencode/schema/credential";
|
|
@@ -1066,7 +1066,7 @@ export type SessionLogOutput = ({
|
|
|
1066
1066
|
readonly assistantMessageID: SessionMessage.ID;
|
|
1067
1067
|
readonly finish: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
|
|
1068
1068
|
readonly rawFinish?: string | undefined;
|
|
1069
|
-
readonly
|
|
1069
|
+
readonly native?: SessionMessage.Native | undefined;
|
|
1070
1070
|
readonly cost: Money.USD;
|
|
1071
1071
|
readonly tokens: {
|
|
1072
1072
|
readonly input: number;
|
|
@@ -1109,7 +1109,7 @@ export type SessionLogOutput = ({
|
|
|
1109
1109
|
};
|
|
1110
1110
|
readonly finish?: "content-filter" | undefined;
|
|
1111
1111
|
readonly rawFinish?: string | undefined;
|
|
1112
|
-
readonly
|
|
1112
|
+
readonly native?: SessionMessage.Native | undefined;
|
|
1113
1113
|
readonly cost?: Money.USD | undefined;
|
|
1114
1114
|
readonly tokens?: {
|
|
1115
1115
|
readonly input: number;
|
|
@@ -1165,7 +1165,7 @@ export type SessionLogOutput = ({
|
|
|
1165
1165
|
readonly assistantMessageID: SessionMessage.ID;
|
|
1166
1166
|
readonly ordinal: number;
|
|
1167
1167
|
readonly text: string;
|
|
1168
|
-
readonly
|
|
1168
|
+
readonly native?: SessionMessage.Native | undefined;
|
|
1169
1169
|
};
|
|
1170
1170
|
} | {
|
|
1171
1171
|
readonly id: Event.ID;
|
|
@@ -1187,7 +1187,7 @@ export type SessionLogOutput = ({
|
|
|
1187
1187
|
readonly sessionID: Session.ID;
|
|
1188
1188
|
readonly assistantMessageID: SessionMessage.ID;
|
|
1189
1189
|
readonly ordinal: number;
|
|
1190
|
-
readonly
|
|
1190
|
+
readonly native?: SessionMessage.Native | undefined;
|
|
1191
1191
|
};
|
|
1192
1192
|
} | {
|
|
1193
1193
|
readonly id: Event.ID;
|
|
@@ -1210,7 +1210,7 @@ export type SessionLogOutput = ({
|
|
|
1210
1210
|
readonly assistantMessageID: SessionMessage.ID;
|
|
1211
1211
|
readonly ordinal: number;
|
|
1212
1212
|
readonly text: string;
|
|
1213
|
-
readonly
|
|
1213
|
+
readonly native?: SessionMessage.Native | undefined;
|
|
1214
1214
|
};
|
|
1215
1215
|
} | {
|
|
1216
1216
|
readonly id: Event.ID;
|
|
@@ -1280,7 +1280,7 @@ export type SessionLogOutput = ({
|
|
|
1280
1280
|
readonly [x: string]: unknown;
|
|
1281
1281
|
};
|
|
1282
1282
|
readonly executed: boolean;
|
|
1283
|
-
readonly
|
|
1283
|
+
readonly native?: SessionMessage.Native | undefined;
|
|
1284
1284
|
};
|
|
1285
1285
|
} | {
|
|
1286
1286
|
readonly id: Event.ID;
|
|
@@ -1326,7 +1326,7 @@ export type SessionLogOutput = ({
|
|
|
1326
1326
|
readonly [x: string]: Schema.Json;
|
|
1327
1327
|
} | undefined;
|
|
1328
1328
|
readonly executed: boolean;
|
|
1329
|
-
readonly
|
|
1329
|
+
readonly native?: SessionMessage.Native | undefined;
|
|
1330
1330
|
};
|
|
1331
1331
|
} | {
|
|
1332
1332
|
readonly id: Event.ID;
|
|
@@ -1380,7 +1380,7 @@ export type SessionLogOutput = ({
|
|
|
1380
1380
|
readonly [x: string]: Schema.Json;
|
|
1381
1381
|
} | undefined;
|
|
1382
1382
|
readonly executed: boolean;
|
|
1383
|
-
readonly
|
|
1383
|
+
readonly native?: SessionMessage.Native | undefined;
|
|
1384
1384
|
};
|
|
1385
1385
|
} | {
|
|
1386
1386
|
readonly id: Event.ID;
|
|
@@ -1431,7 +1431,6 @@ export type SessionLogOutput = ({
|
|
|
1431
1431
|
readonly data: {
|
|
1432
1432
|
readonly sessionID: Session.ID;
|
|
1433
1433
|
readonly reason: "auto" | "manual";
|
|
1434
|
-
readonly recent: string;
|
|
1435
1434
|
readonly inputID?: SessionMessage.ID | undefined;
|
|
1436
1435
|
};
|
|
1437
1436
|
} | {
|
|
@@ -1454,21 +1453,8 @@ export type SessionLogOutput = ({
|
|
|
1454
1453
|
readonly sessionID: Session.ID;
|
|
1455
1454
|
readonly reason: "auto" | "manual";
|
|
1456
1455
|
readonly model?: Model.Ref | undefined;
|
|
1457
|
-
readonly
|
|
1458
|
-
readonly providerContext?: {
|
|
1459
|
-
readonly version: 1;
|
|
1460
|
-
readonly provenance: {
|
|
1461
|
-
readonly providerID: Provider.ID;
|
|
1462
|
-
readonly provider: string;
|
|
1463
|
-
readonly modelID: string;
|
|
1464
|
-
readonly route: string;
|
|
1465
|
-
readonly protocol: string;
|
|
1466
|
-
readonly endpoint: string;
|
|
1467
|
-
};
|
|
1468
|
-
readonly messages: Schema.Json;
|
|
1469
|
-
} | undefined;
|
|
1456
|
+
readonly native?: SessionMessage.Native | undefined;
|
|
1470
1457
|
readonly text: string;
|
|
1471
|
-
readonly recent: string;
|
|
1472
1458
|
readonly cost?: Money.USD | undefined;
|
|
1473
1459
|
readonly tokens?: {
|
|
1474
1460
|
readonly input: number;
|