@opencode-ai/client 0.0.0-next-15074 → 0.0.0-next-15075
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/effect/api/api.d.ts
CHANGED
|
@@ -141,6 +141,7 @@ export type Endpoint4_12Input = {
|
|
|
141
141
|
readonly text: Endpoint4_12Request["payload"]["text"];
|
|
142
142
|
readonly description?: Endpoint4_12Request["payload"]["description"];
|
|
143
143
|
readonly metadata?: Endpoint4_12Request["payload"]["metadata"];
|
|
144
|
+
readonly resume?: Endpoint4_12Request["payload"]["resume"];
|
|
144
145
|
};
|
|
145
146
|
export type Endpoint4_12Output = EffectValue<ReturnType<RawClient["server.session"]["session.synthetic"]>>;
|
|
146
147
|
export type SessionSyntheticOperation<E = never> = (input: Endpoint4_12Input) => Effect.Effect<Endpoint4_12Output, E>;
|
|
@@ -98,6 +98,7 @@ type Endpoint4_12Input = {
|
|
|
98
98
|
readonly text: Endpoint4_12Request["payload"]["text"];
|
|
99
99
|
readonly description?: Endpoint4_12Request["payload"]["description"];
|
|
100
100
|
readonly metadata?: Endpoint4_12Request["payload"]["metadata"];
|
|
101
|
+
readonly resume?: Endpoint4_12Request["payload"]["resume"];
|
|
101
102
|
};
|
|
102
103
|
type Endpoint4_13Request = Parameters<RawClient["server.session"]["session.shell"]>[0];
|
|
103
104
|
type Endpoint4_13Input = {
|
|
@@ -63,7 +63,12 @@ const Endpoint4_11 = (raw) => (input) => raw["session.skill"]({
|
|
|
63
63
|
}).pipe(Effect.mapError(mapClientError));
|
|
64
64
|
const Endpoint4_12 = (raw) => (input) => raw["session.synthetic"]({
|
|
65
65
|
params: { sessionID: input["sessionID"] },
|
|
66
|
-
payload: {
|
|
66
|
+
payload: {
|
|
67
|
+
text: input["text"],
|
|
68
|
+
description: input["description"],
|
|
69
|
+
metadata: input["metadata"],
|
|
70
|
+
resume: input["resume"],
|
|
71
|
+
},
|
|
67
72
|
}).pipe(Effect.mapError(mapClientError));
|
|
68
73
|
const Endpoint4_13 = (raw) => (input) => raw["session.shell"]({
|
|
69
74
|
params: { sessionID: input["sessionID"] },
|
|
@@ -281,7 +281,12 @@ export function make(options) {
|
|
|
281
281
|
synthetic: (input, requestOptions) => request({
|
|
282
282
|
method: "POST",
|
|
283
283
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/synthetic`,
|
|
284
|
-
body: {
|
|
284
|
+
body: {
|
|
285
|
+
text: input["text"],
|
|
286
|
+
description: input["description"],
|
|
287
|
+
metadata: input["metadata"],
|
|
288
|
+
resume: input["resume"],
|
|
289
|
+
},
|
|
285
290
|
successStatus: 204,
|
|
286
291
|
declaredStatuses: [404, 400, 401],
|
|
287
292
|
empty: true,
|
|
@@ -1139,6 +1139,7 @@ export type SessionSyntheticInput = {
|
|
|
1139
1139
|
readonly metadata?: {
|
|
1140
1140
|
readonly [x: string]: JsonValue;
|
|
1141
1141
|
};
|
|
1142
|
+
readonly resume?: boolean | null;
|
|
1142
1143
|
}["text"];
|
|
1143
1144
|
readonly description?: {
|
|
1144
1145
|
readonly text: string;
|
|
@@ -1146,6 +1147,7 @@ export type SessionSyntheticInput = {
|
|
|
1146
1147
|
readonly metadata?: {
|
|
1147
1148
|
readonly [x: string]: JsonValue;
|
|
1148
1149
|
};
|
|
1150
|
+
readonly resume?: boolean | null;
|
|
1149
1151
|
}["description"];
|
|
1150
1152
|
readonly metadata?: {
|
|
1151
1153
|
readonly text: string;
|
|
@@ -1153,7 +1155,16 @@ export type SessionSyntheticInput = {
|
|
|
1153
1155
|
readonly metadata?: {
|
|
1154
1156
|
readonly [x: string]: JsonValue;
|
|
1155
1157
|
};
|
|
1158
|
+
readonly resume?: boolean | null;
|
|
1156
1159
|
}["metadata"];
|
|
1160
|
+
readonly resume?: {
|
|
1161
|
+
readonly text: string;
|
|
1162
|
+
readonly description?: string | null;
|
|
1163
|
+
readonly metadata?: {
|
|
1164
|
+
readonly [x: string]: JsonValue;
|
|
1165
|
+
};
|
|
1166
|
+
readonly resume?: boolean | null;
|
|
1167
|
+
}["resume"];
|
|
1157
1168
|
};
|
|
1158
1169
|
export type SessionSyntheticOutput = void;
|
|
1159
1170
|
export type SessionShellInput = {
|
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-15075",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"typecheck": "tsgo --noEmit"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@opencode-ai/schema": "0.0.0-next-
|
|
45
|
-
"@opencode-ai/protocol": "0.0.0-next-
|
|
44
|
+
"@opencode-ai/schema": "0.0.0-next-15075",
|
|
45
|
+
"@opencode-ai/protocol": "0.0.0-next-15075"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"effect": "4.0.0-beta.83"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@effect/platform-node": "4.0.0-beta.83",
|
|
57
|
-
"@opencode-ai/httpapi-codegen": "0.0.0-next-
|
|
57
|
+
"@opencode-ai/httpapi-codegen": "0.0.0-next-15075",
|
|
58
58
|
"@tsconfig/bun": "1.0.9",
|
|
59
59
|
"@types/bun": "1.3.13",
|
|
60
60
|
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|