@opencode-ai/client 0.0.0-next-16318 → 0.0.0-next-16323
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.
|
@@ -164,7 +164,7 @@ export type ToolFileContent = {
|
|
|
164
164
|
type: "file";
|
|
165
165
|
uri: string;
|
|
166
166
|
mime: string;
|
|
167
|
-
name?: string;
|
|
167
|
+
name?: string | null;
|
|
168
168
|
};
|
|
169
169
|
export type SessionStructuredError = {
|
|
170
170
|
type: string;
|
|
@@ -240,6 +240,12 @@ export type SessionMessageProviderState6 = {
|
|
|
240
240
|
export type SessionMessageProviderState7 = {
|
|
241
241
|
[x: string]: any;
|
|
242
242
|
};
|
|
243
|
+
export type ToolFileContent1 = {
|
|
244
|
+
type: "file";
|
|
245
|
+
uri: string;
|
|
246
|
+
mime: string;
|
|
247
|
+
name?: string | undefined;
|
|
248
|
+
};
|
|
243
249
|
export type SessionMessageProviderState8 = {
|
|
244
250
|
[x: string]: any;
|
|
245
251
|
};
|
|
@@ -1820,7 +1826,7 @@ export type SessionMessageAssistantReasoning = {
|
|
|
1820
1826
|
completed?: number;
|
|
1821
1827
|
};
|
|
1822
1828
|
};
|
|
1823
|
-
export type
|
|
1829
|
+
export type ToolContent = ToolTextContent | ToolFileContent;
|
|
1824
1830
|
export type SessionMessageAssistantRetry = {
|
|
1825
1831
|
attempt: number;
|
|
1826
1832
|
at: number;
|
|
@@ -2070,6 +2076,7 @@ export type SessionToolCalled = {
|
|
|
2070
2076
|
state?: SessionMessageProviderState7;
|
|
2071
2077
|
};
|
|
2072
2078
|
};
|
|
2079
|
+
export type ToolContent1 = ToolTextContent | ToolFileContent1;
|
|
2073
2080
|
export type ModelCompatibility = {
|
|
2074
2081
|
reasoningField?: ModelReasoningField;
|
|
2075
2082
|
};
|
|
@@ -2515,7 +2522,7 @@ export type SessionMessageToolStateCompleted = {
|
|
|
2515
2522
|
input: {
|
|
2516
2523
|
[x: string]: JsonValue;
|
|
2517
2524
|
};
|
|
2518
|
-
content: [
|
|
2525
|
+
content: [ToolContent, ...Array<ToolContent>];
|
|
2519
2526
|
metadata?: {
|
|
2520
2527
|
[x: string]: JsonValue;
|
|
2521
2528
|
};
|
|
@@ -2526,11 +2533,12 @@ export type SessionMessageToolStateError = {
|
|
|
2526
2533
|
[x: string]: JsonValue;
|
|
2527
2534
|
};
|
|
2528
2535
|
error: SessionStructuredError;
|
|
2529
|
-
content?: [
|
|
2536
|
+
content?: [ToolContent, ...Array<ToolContent>];
|
|
2530
2537
|
metadata?: {
|
|
2531
2538
|
[x: string]: JsonValue;
|
|
2532
2539
|
};
|
|
2533
2540
|
};
|
|
2541
|
+
export type SessionMessageCompaction = SessionMessageCompactionRunning | SessionMessageCompactionCompleted | SessionMessageCompactionFailed;
|
|
2534
2542
|
export type SessionToolSuccess = {
|
|
2535
2543
|
id: string;
|
|
2536
2544
|
created: number;
|
|
@@ -2548,7 +2556,7 @@ export type SessionToolSuccess = {
|
|
|
2548
2556
|
sessionID: string;
|
|
2549
2557
|
assistantMessageID: string;
|
|
2550
2558
|
callID: string;
|
|
2551
|
-
content: [
|
|
2559
|
+
content: [ToolContent1, ...Array<ToolContent1>];
|
|
2552
2560
|
metadata?: {
|
|
2553
2561
|
[x: string]: JsonValue;
|
|
2554
2562
|
};
|
|
@@ -2574,7 +2582,7 @@ export type SessionToolFailed = {
|
|
|
2574
2582
|
assistantMessageID: string;
|
|
2575
2583
|
callID: string;
|
|
2576
2584
|
error: SessionStructuredError;
|
|
2577
|
-
content?: [
|
|
2585
|
+
content?: [ToolContent1, ...Array<ToolContent1>];
|
|
2578
2586
|
metadata?: {
|
|
2579
2587
|
[x: string]: JsonValue;
|
|
2580
2588
|
};
|
|
@@ -2582,7 +2590,6 @@ export type SessionToolFailed = {
|
|
|
2582
2590
|
resultState?: SessionMessageProviderState9;
|
|
2583
2591
|
};
|
|
2584
2592
|
};
|
|
2585
|
-
export type SessionMessageCompaction = SessionMessageCompactionRunning | SessionMessageCompactionCompleted | SessionMessageCompactionFailed;
|
|
2586
2593
|
export type ModelInfo = {
|
|
2587
2594
|
id: string;
|
|
2588
2595
|
modelID: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode-ai/client",
|
|
4
|
-
"version": "0.0.0-next-
|
|
4
|
+
"version": "0.0.0-next-16323",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"typecheck": "tsgo --noEmit"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@opencode-ai/schema": "0.0.0-next-
|
|
57
|
-
"@opencode-ai/protocol": "0.0.0-next-
|
|
56
|
+
"@opencode-ai/schema": "0.0.0-next-16323",
|
|
57
|
+
"@opencode-ai/protocol": "0.0.0-next-16323"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"effect": "4.0.0-beta.101"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@effect/platform-node": "4.0.0-beta.101",
|
|
69
|
-
"@opencode-ai/httpapi-codegen": "0.0.0-next-
|
|
69
|
+
"@opencode-ai/httpapi-codegen": "0.0.0-next-16323",
|
|
70
70
|
"@tsconfig/bun": "1.0.9",
|
|
71
71
|
"@types/bun": "1.3.13",
|
|
72
72
|
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|